bt-core-app 2.2.4 → 2.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/VAlert.sass.mjs +1 -0
- package/dist/_virtual/VAvatar.sass.mjs +1 -0
- package/dist/_virtual/VBtn.sass.mjs +1 -0
- package/dist/_virtual/VBtnGroup.sass.mjs +1 -0
- package/dist/_virtual/VBtnToggle.sass.mjs +1 -0
- package/dist/_virtual/VCard.sass.mjs +1 -0
- package/dist/_virtual/VCheckbox.sass.mjs +1 -0
- package/dist/_virtual/VChip.sass.mjs +1 -0
- package/dist/_virtual/VChipGroup.sass.mjs +1 -0
- package/dist/_virtual/VColorPicker.sass.mjs +1 -0
- package/dist/_virtual/VColorPickerCanvas.sass.mjs +1 -0
- package/dist/_virtual/VColorPickerEdit.sass.mjs +1 -0
- package/dist/_virtual/VColorPickerPreview.sass.mjs +1 -0
- package/dist/_virtual/VColorPickerSwatches.sass.mjs +1 -0
- package/dist/_virtual/VCombobox.sass.mjs +1 -0
- package/dist/_virtual/VContainer.sass.mjs +1 -0
- package/dist/_virtual/VCounter.sass.mjs +1 -0
- package/dist/_virtual/VDialog.sass.mjs +1 -0
- package/dist/_virtual/VDivider.sass.mjs +1 -0
- package/dist/_virtual/VField.sass.mjs +1 -0
- package/dist/_virtual/VGrid.sass.mjs +1 -0
- package/dist/_virtual/VIcon.sass.mjs +1 -0
- package/dist/_virtual/VImg.sass.mjs +1 -0
- package/dist/_virtual/VInput.sass.mjs +1 -0
- package/dist/_virtual/VLabel.sass.mjs +1 -0
- package/dist/_virtual/VList.sass.mjs +1 -0
- package/dist/_virtual/VListItem.sass.mjs +1 -0
- package/dist/_virtual/VMenu.sass.mjs +1 -0
- package/dist/_virtual/VMessages.sass.mjs +1 -0
- package/dist/_virtual/VNavigationDrawer.sass.mjs +1 -0
- package/dist/_virtual/VOverlay.sass.mjs +1 -0
- package/dist/_virtual/VPagination.sass.mjs +1 -0
- package/dist/_virtual/VPicker.sass.mjs +1 -0
- package/dist/_virtual/VProgressCircular.sass.mjs +1 -0
- package/dist/_virtual/VProgressLinear.sass.mjs +1 -0
- package/dist/_virtual/VRating.sass.mjs +1 -0
- package/dist/_virtual/VResponsive.sass.mjs +1 -0
- package/dist/_virtual/VRipple.sass.mjs +1 -0
- package/dist/_virtual/VSelect.sass.mjs +1 -0
- package/dist/_virtual/VSelectionControl.sass.mjs +1 -0
- package/dist/_virtual/VSelectionControlGroup.sass.mjs +1 -0
- package/dist/_virtual/VSheet.sass.mjs +1 -0
- package/dist/_virtual/VSlideGroup.sass.mjs +1 -0
- package/dist/_virtual/VSlider.sass.mjs +1 -0
- package/dist/_virtual/VSliderThumb.sass.mjs +1 -0
- package/dist/_virtual/VSliderTrack.sass.mjs +1 -0
- package/dist/_virtual/VSpacer.sass.mjs +1 -0
- package/dist/_virtual/VSwitch.sass.mjs +1 -0
- package/dist/_virtual/VTab.sass.mjs +1 -0
- package/dist/_virtual/VTable.sass.mjs +1 -0
- package/dist/_virtual/VTabs.sass.mjs +1 -0
- package/dist/_virtual/VTextField.sass.mjs +1 -0
- package/dist/_virtual/VTextarea.sass.mjs +1 -0
- package/dist/_virtual/VToolbar.sass.mjs +1 -0
- package/dist/_virtual/VVirtualScroll.sass.mjs +1 -0
- package/dist/_virtual/VWindow.sass.mjs +1 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VAlert/VAlert.mjs +196 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VAlert/VAlertTitle.mjs +5 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VAvatar/VAvatar.mjs +92 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs +220 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VBtnGroup/VBtnGroup.mjs +68 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VBtnToggle/VBtnToggle.mjs +57 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCard/VCard.mjs +180 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCard/VCardActions.mjs +32 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCard/VCardItem.mjs +118 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCard/VCardSubtitle.mjs +29 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCard/VCardText.mjs +29 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCard/VCardTitle.mjs +5 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCheckbox/VCheckbox.mjs +74 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCheckbox/VCheckboxBtn.mjs +53 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VChip/VChip.mjs +263 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VChipGroup/VChipGroup.mjs +87 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPicker.mjs +161 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPickerCanvas.mjs +166 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPickerEdit.mjs +97 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPickerPreview.mjs +123 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPickerSwatches.mjs +72 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/util/index.mjs +193 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCombobox/VCombobox.mjs +501 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCounter/VCounter.mjs +51 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VDefaultsProvider/VDefaultsProvider.mjs +39 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VDialog/VDialog.mjs +103 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VDivider/VDivider.mjs +82 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VField/VField.mjs +295 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VField/VFieldLabel.mjs +28 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VForm/VForm.mjs +53 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VGrid/VCol.mjs +98 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VGrid/VContainer.mjs +41 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VGrid/VRow.mjs +104 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VGrid/VSpacer.mjs +6 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VHover/VHover.mjs +41 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VIcon/VIcon.mjs +77 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VImg/VImg.mjs +248 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VInput/InputIcon.mjs +40 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VInput/VInput.mjs +154 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VLabel/VLabel.mjs +36 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VList/VList.mjs +281 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VList/VListChildren.mjs +104 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VList/VListGroup.mjs +129 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VList/VListItem.mjs +312 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VList/VListItemSubtitle.mjs +29 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VList/VListItemTitle.mjs +5 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VList/VListSubheader.mjs +50 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VList/list.mjs +38 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VMenu/VMenu.mjs +132 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VMenu/shared.mjs +4 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VMessages/VMessages.mjs +55 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +247 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VNavigationDrawer/sticky.mjs +44 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VNavigationDrawer/touch.mjs +100 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VOverlay/VOverlay.mjs +291 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VOverlay/locationStrategies.mjs +292 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VOverlay/requestNewFrame.mjs +15 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VOverlay/scrollStrategies.mjs +91 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VOverlay/useActivator.mjs +179 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VOverlay/util/point.mjs +42 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VPagination/VPagination.mjs +315 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VProgressCircular/VProgressCircular.mjs +129 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VProgressLinear/VProgressLinear.mjs +195 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VProgressLinear/chunks.mjs +53 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VRating/VRating.mjs +217 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VResponsive/VResponsive.mjs +56 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSelect/VSelect.mjs +475 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSelect/useScrolling.mjs +57 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSelectionControl/VSelectionControl.mjs +183 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs +106 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSheet/VSheet.mjs +61 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlideGroup/VSlideGroup.mjs +287 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlideGroup/helpers.mjs +54 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlider/VSlider.mjs +159 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlider/VSliderThumb.mjs +176 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlider/VSliderTrack.mjs +109 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlider/slider.mjs +242 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSwitch/VSwitch.mjs +172 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTable/VTable.mjs +66 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTabs/VTab.mjs +126 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTabs/VTabs.mjs +153 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTabs/VTabsWindow.mjs +48 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTabs/VTabsWindowItem.mjs +29 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTabs/shared.mjs +4 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTextField/VTextField.mjs +204 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTextarea/VTextarea.mjs +258 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VToolbar/VToolbar.mjs +167 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VToolbar/VToolbarItems.mjs +38 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VToolbar/VToolbarTitle.mjs +37 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VVirtualScroll/VVirtualScroll.mjs +106 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VVirtualScroll/VVirtualScrollItem.mjs +47 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VWindow/VWindow.mjs +211 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VWindow/VWindowItem.mjs +93 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/transitions/createTransition.mjs +113 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/transitions/dialog-transition.mjs +136 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/transitions/expand-transition.mjs +52 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs +23 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/autocomplete.mjs +21 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/autofocus.mjs +14 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/border.mjs +19 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/color.mjs +69 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/component.mjs +11 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/defaults.mjs +70 -45
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/delay.mjs +34 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/density.mjs +20 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/dimensions.mjs +23 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/display.mjs +32 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/elevation.mjs +25 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/filter.mjs +125 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/focus.mjs +31 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/focusGroups.mjs +54 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/focusTrap.mjs +97 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/form.mjs +112 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/forwardRefs.mjs +78 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/goto.mjs +86 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/group.mjs +169 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/hydration.mjs +20 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/iconSizes.mjs +21 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/icons.mjs +73 -40
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/intersectionObserver.mjs +24 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/layout.mjs +43 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/lazy.mjs +21 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/list-items.mjs +120 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/loader.mjs +38 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/locale.mjs +22 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/location.mjs +49 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/menuActivator.mjs +24 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/nested/activeStrategies.mjs +102 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/nested/nested.mjs +315 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/nested/openStrategies.mjs +60 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/nested/selectStrategies.mjs +206 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/position.mjs +22 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/proxiedModel.mjs +35 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/refs.mjs +15 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/resizeObserver.mjs +26 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/reveal.mjs +21 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/rounded.mjs +30 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/router.mjs +97 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/scopeId.mjs +12 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/selectLink.mjs +16 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/size.mjs +27 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/ssrBoot.mjs +17 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/stack.mjs +39 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/tag.mjs +10 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/teleport.mjs +21 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/theme.mjs +32 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/toggleScope.mjs +19 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/touch.mjs +73 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/transition.mjs +34 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/validation.mjs +139 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/variant.mjs +53 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/virtual.mjs +164 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/directives/click-outside/index.mjs +62 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/directives/intersect/index.mjs +41 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/directives/ripple/index.mjs +183 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/directives/touch/index.mjs +89 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/labs/VPicker/VPicker.mjs +77 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/labs/VPicker/VPickerTitle.mjs +5 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/labs/rules/rules.mjs +15 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/anchor.mjs +53 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/animation.mjs +44 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/bindProps.mjs +36 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/box.mjs +73 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/color/APCA.mjs +19 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/color/transformSRGB.mjs +16 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/colorUtils.mjs +224 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/console.mjs +12 -4
- package/dist/bt-core/core/node_modules/vuetify/lib/util/createSimpleFunctional.mjs +31 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/deepEqual.mjs +37 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/dom.mjs +14 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/easing.mjs +23 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/getCurrentInstance.mjs +13 -6
- package/dist/bt-core/core/node_modules/vuetify/lib/util/getScrollParent.mjs +34 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/globals.mjs +8 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/helpers.mjs +408 -28
- package/dist/bt-core/core/node_modules/vuetify/lib/util/isFixedPosition.mjs +11 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/throttle.mjs +25 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/useRender.mjs +8 -0
- package/dist/components/BT-Assistant-Menu.vue.mjs +226 -211
- package/dist/components/BT-Avatar.vue.mjs +31 -31
- package/dist/components/BT-Background-Task.vue.mjs +30 -28
- package/dist/components/BT-Blade-Item.vue.mjs +111 -102
- package/dist/components/BT-Blade-Items.vue.mjs +2 -2
- package/dist/components/BT-Blade-Items.vue2.mjs +413 -402
- package/dist/components/BT-Blade-Steps.vue.mjs +1 -1
- package/dist/components/BT-Blade-Steps.vue2.mjs +597 -583
- package/dist/components/BT-Blade.vue.mjs +108 -97
- package/dist/components/BT-Btn.vue.mjs +23 -25
- package/dist/components/BT-Camera-Overlay.vue.mjs +72 -68
- package/dist/components/BT-Col.vue.mjs +17 -19
- package/dist/components/BT-Color-Picker-Menu.vue.mjs +51 -49
- package/dist/components/BT-Cosmetics-Menu.vue.mjs +180 -173
- package/dist/components/BT-Cron.vue.mjs +249 -235
- package/dist/components/BT-Date-Select.vue.mjs +46 -47
- package/dist/components/BT-Demo-Profile-Select.vue.mjs +40 -40
- package/dist/components/BT-Dialog-Confirm.vue.mjs +39 -39
- package/dist/components/BT-Dialog-Date.vue.mjs +22 -19
- package/dist/components/BT-Dialog-Number.vue.mjs +125 -121
- package/dist/components/BT-Dialog-Select.vue.mjs +107 -97
- package/dist/components/BT-Divider.vue.mjs +20 -21
- package/dist/components/BT-Drag-Counter.vue.mjs +2 -2
- package/dist/components/BT-Drag-Counter.vue2.mjs +58 -56
- package/dist/components/BT-Entity.vue.mjs +50 -48
- package/dist/components/BT-Error.vue.mjs +16 -15
- package/dist/components/BT-Field-Checkbox.vue.mjs +30 -31
- package/dist/components/BT-Field-Date.vue.mjs +87 -84
- package/dist/components/BT-Field-Entity.vue.mjs +20 -16
- package/dist/components/BT-Field-Select-Simple.vue.mjs +24 -26
- package/dist/components/BT-Field-Select.vue.mjs +32 -34
- package/dist/components/BT-Field-String.vue.mjs +54 -52
- package/dist/components/BT-Field-Switch.vue.mjs +44 -43
- package/dist/components/BT-Field-Tags.vue.mjs +57 -55
- package/dist/components/BT-Field-Textarea.vue.mjs +44 -43
- package/dist/components/BT-Field-Trigger.vue.mjs +276 -270
- package/dist/components/BT-Field.vue.mjs +39 -38
- package/dist/components/BT-Form-Builder.vue.mjs +342 -322
- package/dist/components/BT-Form-Field.vue.mjs +81 -75
- package/dist/components/BT-Form.vue.mjs +263 -253
- package/dist/components/BT-Header-Option.vue.mjs +10 -9
- package/dist/components/BT-Image-Select.vue.mjs +186 -177
- package/dist/components/BT-Json.vue.mjs +29 -30
- package/dist/components/BT-Loader.vue.mjs +32 -31
- package/dist/components/BT-Nav-Sidebar.vue.mjs +130 -124
- package/dist/components/BT-Number.vue.mjs +2 -2
- package/dist/components/BT-Number.vue2.mjs +17 -19
- package/dist/components/BT-Numpad.vue.mjs +71 -66
- package/dist/components/BT-Select-List-Box.vue.mjs +157 -144
- package/dist/components/BT-Select-Simple.vue.mjs +21 -23
- package/dist/components/BT-Select.vue.mjs +36 -37
- package/dist/components/BT-Signature-Overlay.vue.mjs +63 -60
- package/dist/components/BT-Signature.vue.mjs +66 -64
- package/dist/components/BT-Slider.vue.mjs +69 -61
- package/dist/components/BT-Square-Check.vue.mjs +24 -22
- package/dist/components/BT-Status-Item.vue.mjs +18 -16
- package/dist/components/BT-Tags.vue.mjs +21 -22
- package/dist/components/BT-Tour.vue.mjs +69 -65
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { ref as K, shallowRef as Q, computed as i, toRef as f, watch as v, readonly as U, createElementVNode as l, Fragment as X, createVNode as d, mergeProps as R, Transition as Y, nextTick as Z } from "vue";
|
|
2
|
+
import "../../../../../../../_virtual/VNavigationDrawer.sass.mjs";
|
|
3
|
+
import { useSticky as ee } from "./sticky.mjs";
|
|
4
|
+
import { useTouch as ae } from "./touch.mjs";
|
|
5
|
+
import { makeBorderProps as te, useBorder as oe } from "../../composables/border.mjs";
|
|
6
|
+
import { useBackgroundColor as T } from "../../composables/color.mjs";
|
|
7
|
+
import { makeComponentProps as re } from "../../composables/component.mjs";
|
|
8
|
+
import { provideDefaults as ie } from "../../composables/defaults.mjs";
|
|
9
|
+
import { makeDelayProps as le, useDelay as ne } from "../../composables/delay.mjs";
|
|
10
|
+
import { makeDisplayProps as ue, useDisplay as se } from "../../composables/display.mjs";
|
|
11
|
+
import { makeElevationProps as me, useElevation as ve } from "../../composables/elevation.mjs";
|
|
12
|
+
import { makeFocusTrapProps as de, useFocusTrap as ce } from "../../composables/focusTrap.mjs";
|
|
13
|
+
import { makeLayoutItemProps as ge, useLayoutItem as fe } from "../../composables/layout.mjs";
|
|
14
|
+
import { useProxiedModel as ye } from "../../composables/proxiedModel.mjs";
|
|
15
|
+
import { makeRoundedProps as he, useRounded as ke } from "../../composables/rounded.mjs";
|
|
16
|
+
import { useRouter as we } from "../../composables/router.mjs";
|
|
17
|
+
import { useScopeId as be } from "../../composables/scopeId.mjs";
|
|
18
|
+
import { useSsrBoot as Se } from "../../composables/ssrBoot.mjs";
|
|
19
|
+
import { makeTagProps as Ce } from "../../composables/tag.mjs";
|
|
20
|
+
import { makeThemeProps as Be, provideTheme as Pe } from "../../composables/theme.mjs";
|
|
21
|
+
import { useToggleScope as y } from "../../composables/toggleScope.mjs";
|
|
22
|
+
import { useRtl as pe } from "../../composables/locale.mjs";
|
|
23
|
+
import { toPhysical as Ve } from "../../util/anchor.mjs";
|
|
24
|
+
import { VImg as De } from "../VImg/VImg.mjs";
|
|
25
|
+
import { VDefaultsProvider as Re } from "../VDefaultsProvider/VDefaultsProvider.mjs";
|
|
26
|
+
import { propsFactory as Te } from "../../util/propsFactory.mjs";
|
|
27
|
+
import { omit as Ie } from "../../util/helpers.mjs";
|
|
28
|
+
import { genericComponent as Ne } from "../../util/defineComponent.mjs";
|
|
29
|
+
import { useRender as _e } from "../../util/useRender.mjs";
|
|
30
|
+
const xe = ["start", "end", "left", "right", "top", "bottom"], We = Te({
|
|
31
|
+
color: String,
|
|
32
|
+
disableResizeWatcher: Boolean,
|
|
33
|
+
disableRouteWatcher: Boolean,
|
|
34
|
+
expandOnHover: Boolean,
|
|
35
|
+
floating: Boolean,
|
|
36
|
+
modelValue: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: null
|
|
39
|
+
},
|
|
40
|
+
permanent: Boolean,
|
|
41
|
+
rail: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: null
|
|
44
|
+
},
|
|
45
|
+
railWidth: {
|
|
46
|
+
type: [Number, String],
|
|
47
|
+
default: 56
|
|
48
|
+
},
|
|
49
|
+
scrim: {
|
|
50
|
+
type: [Boolean, String],
|
|
51
|
+
default: !0
|
|
52
|
+
},
|
|
53
|
+
image: String,
|
|
54
|
+
temporary: Boolean,
|
|
55
|
+
persistent: Boolean,
|
|
56
|
+
touchless: Boolean,
|
|
57
|
+
width: {
|
|
58
|
+
type: [Number, String],
|
|
59
|
+
default: 256
|
|
60
|
+
},
|
|
61
|
+
location: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: "start",
|
|
64
|
+
validator: (e) => xe.includes(e)
|
|
65
|
+
},
|
|
66
|
+
sticky: Boolean,
|
|
67
|
+
...te(),
|
|
68
|
+
...re(),
|
|
69
|
+
...le(),
|
|
70
|
+
...ue({
|
|
71
|
+
mobile: null
|
|
72
|
+
}),
|
|
73
|
+
...me(),
|
|
74
|
+
...ge(),
|
|
75
|
+
...he(),
|
|
76
|
+
...Ie(de(), ["disableInitialFocus"]),
|
|
77
|
+
...Ce({
|
|
78
|
+
tag: "nav"
|
|
79
|
+
}),
|
|
80
|
+
...Be()
|
|
81
|
+
}, "VNavigationDrawer"), ma = Ne()({
|
|
82
|
+
name: "VNavigationDrawer",
|
|
83
|
+
props: We(),
|
|
84
|
+
emits: {
|
|
85
|
+
"update:modelValue": (e) => !0,
|
|
86
|
+
"update:rail": (e) => !0
|
|
87
|
+
},
|
|
88
|
+
setup(e, I) {
|
|
89
|
+
let {
|
|
90
|
+
attrs: N,
|
|
91
|
+
emit: _,
|
|
92
|
+
slots: a
|
|
93
|
+
} = I;
|
|
94
|
+
const {
|
|
95
|
+
isRtl: x
|
|
96
|
+
} = pe(), {
|
|
97
|
+
themeClasses: W
|
|
98
|
+
} = Pe(e), {
|
|
99
|
+
borderClasses: H
|
|
100
|
+
} = oe(e), {
|
|
101
|
+
backgroundColorClasses: O,
|
|
102
|
+
backgroundColorStyles: z
|
|
103
|
+
} = T(() => e.color), {
|
|
104
|
+
elevationClasses: E
|
|
105
|
+
} = ve(e), {
|
|
106
|
+
displayClasses: F,
|
|
107
|
+
mobile: h
|
|
108
|
+
} = se(e), {
|
|
109
|
+
roundedClasses: L
|
|
110
|
+
} = ke(e), k = we(), o = ye(e, "modelValue", null, (t) => !!t), {
|
|
111
|
+
ssrBootStyles: M
|
|
112
|
+
} = Se(), {
|
|
113
|
+
scopeId: w
|
|
114
|
+
} = be(), n = K(), u = Q(!1), {
|
|
115
|
+
runOpenDelay: A,
|
|
116
|
+
runCloseDelay: $
|
|
117
|
+
} = ne(e, (t) => {
|
|
118
|
+
u.value = t;
|
|
119
|
+
}), c = i(() => e.rail && e.expandOnHover && u.value ? Number(e.width) : Number(e.rail ? e.railWidth : e.width)), s = i(() => Ve(e.location, x.value)), b = f(() => e.persistent), r = i(() => !e.permanent && (h.value || e.temporary)), g = i(() => e.sticky && !r.value && s.value !== "bottom");
|
|
120
|
+
ce(e, {
|
|
121
|
+
isActive: o,
|
|
122
|
+
localTop: r,
|
|
123
|
+
contentEl: n
|
|
124
|
+
}), y(() => e.expandOnHover && e.rail != null, () => {
|
|
125
|
+
v(u, (t) => _("update:rail", !t));
|
|
126
|
+
}), y(() => !e.disableResizeWatcher, () => {
|
|
127
|
+
v(r, (t) => !e.permanent && Z(() => o.value = !t));
|
|
128
|
+
}), y(() => !e.disableRouteWatcher && !!k, () => {
|
|
129
|
+
v(k.currentRoute, () => r.value && (o.value = !1));
|
|
130
|
+
}), v(() => e.permanent, (t) => {
|
|
131
|
+
t && (o.value = !0);
|
|
132
|
+
}), e.modelValue == null && !r.value && (o.value = e.permanent || !h.value);
|
|
133
|
+
const {
|
|
134
|
+
isDragging: m,
|
|
135
|
+
dragProgress: S
|
|
136
|
+
} = ae({
|
|
137
|
+
el: n,
|
|
138
|
+
isActive: o,
|
|
139
|
+
isTemporary: r,
|
|
140
|
+
width: c,
|
|
141
|
+
touchless: f(() => e.touchless),
|
|
142
|
+
position: s
|
|
143
|
+
}), j = i(() => {
|
|
144
|
+
const t = r.value ? 0 : e.rail && e.expandOnHover ? Number(e.railWidth) : c.value;
|
|
145
|
+
return m.value ? t * S.value : t;
|
|
146
|
+
}), {
|
|
147
|
+
layoutItemStyles: C,
|
|
148
|
+
layoutItemScrimStyles: q
|
|
149
|
+
} = fe({
|
|
150
|
+
id: e.name,
|
|
151
|
+
order: i(() => parseInt(e.order, 10)),
|
|
152
|
+
position: s,
|
|
153
|
+
layoutSize: j,
|
|
154
|
+
elementSize: c,
|
|
155
|
+
active: U(o),
|
|
156
|
+
disableTransitions: f(() => m.value),
|
|
157
|
+
absolute: i(() => (
|
|
158
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
159
|
+
e.absolute || g.value && typeof B.value != "string"
|
|
160
|
+
))
|
|
161
|
+
}), {
|
|
162
|
+
isStuck: B,
|
|
163
|
+
stickyStyles: G
|
|
164
|
+
} = ee({
|
|
165
|
+
rootEl: n,
|
|
166
|
+
isSticky: g,
|
|
167
|
+
layoutItemStyles: C
|
|
168
|
+
}), P = T(() => typeof e.scrim == "string" ? e.scrim : null), J = i(() => ({
|
|
169
|
+
...m.value ? {
|
|
170
|
+
opacity: S.value * 0.2,
|
|
171
|
+
transition: "none"
|
|
172
|
+
} : void 0,
|
|
173
|
+
...q.value
|
|
174
|
+
}));
|
|
175
|
+
return ie({
|
|
176
|
+
VList: {
|
|
177
|
+
bgColor: "transparent"
|
|
178
|
+
}
|
|
179
|
+
}), _e(() => {
|
|
180
|
+
const t = a.image || e.image;
|
|
181
|
+
return l(X, null, [d(e.tag, R({
|
|
182
|
+
ref: n,
|
|
183
|
+
onMouseenter: A,
|
|
184
|
+
onMouseleave: $,
|
|
185
|
+
class: ["v-navigation-drawer", `v-navigation-drawer--${s.value}`, {
|
|
186
|
+
"v-navigation-drawer--expand-on-hover": e.expandOnHover,
|
|
187
|
+
"v-navigation-drawer--floating": e.floating,
|
|
188
|
+
"v-navigation-drawer--is-hovering": u.value,
|
|
189
|
+
"v-navigation-drawer--rail": e.rail,
|
|
190
|
+
"v-navigation-drawer--temporary": r.value,
|
|
191
|
+
"v-navigation-drawer--persistent": b.value,
|
|
192
|
+
"v-navigation-drawer--active": o.value,
|
|
193
|
+
"v-navigation-drawer--sticky": g.value
|
|
194
|
+
}, W.value, O.value, H.value, F.value, E.value, L.value, e.class],
|
|
195
|
+
style: [z.value, C.value, M.value, G.value, e.style],
|
|
196
|
+
inert: !o.value
|
|
197
|
+
}, w, N), {
|
|
198
|
+
default: () => {
|
|
199
|
+
var p, V, D;
|
|
200
|
+
return [t && l("div", {
|
|
201
|
+
key: "image",
|
|
202
|
+
class: "v-navigation-drawer__img"
|
|
203
|
+
}, [a.image ? d(Re, {
|
|
204
|
+
key: "image-defaults",
|
|
205
|
+
disabled: !e.image,
|
|
206
|
+
defaults: {
|
|
207
|
+
VImg: {
|
|
208
|
+
alt: "",
|
|
209
|
+
cover: !0,
|
|
210
|
+
height: "inherit",
|
|
211
|
+
src: e.image
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}, a.image) : d(De, {
|
|
215
|
+
key: "image-img",
|
|
216
|
+
alt: "",
|
|
217
|
+
cover: !0,
|
|
218
|
+
height: "inherit",
|
|
219
|
+
src: e.image
|
|
220
|
+
}, null)]), a.prepend && l("div", {
|
|
221
|
+
class: "v-navigation-drawer__prepend"
|
|
222
|
+
}, [(p = a.prepend) == null ? void 0 : p.call(a)]), l("div", {
|
|
223
|
+
class: "v-navigation-drawer__content"
|
|
224
|
+
}, [(V = a.default) == null ? void 0 : V.call(a)]), a.append && l("div", {
|
|
225
|
+
class: "v-navigation-drawer__append"
|
|
226
|
+
}, [(D = a.append) == null ? void 0 : D.call(a)])];
|
|
227
|
+
}
|
|
228
|
+
}), d(Y, {
|
|
229
|
+
name: "fade-transition"
|
|
230
|
+
}, {
|
|
231
|
+
default: () => [r.value && (m.value || o.value) && !!e.scrim && l("div", R({
|
|
232
|
+
class: ["v-navigation-drawer__scrim", P.backgroundColorClasses.value],
|
|
233
|
+
style: [J.value, P.backgroundColorStyles.value],
|
|
234
|
+
onClick: () => {
|
|
235
|
+
b.value || (o.value = !1);
|
|
236
|
+
}
|
|
237
|
+
}, w), null)]
|
|
238
|
+
})]);
|
|
239
|
+
}), {
|
|
240
|
+
isStuck: B
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
export {
|
|
245
|
+
ma as VNavigationDrawer,
|
|
246
|
+
We as makeVNavigationDrawerProps
|
|
247
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { shallowRef as d, computed as f, onMounted as y, watch as h, onBeforeUnmount as g } from "vue";
|
|
2
|
+
import { convertToUnit as S } from "../../util/helpers.mjs";
|
|
3
|
+
function Y(p) {
|
|
4
|
+
let {
|
|
5
|
+
rootEl: s,
|
|
6
|
+
isSticky: r,
|
|
7
|
+
layoutItemStyles: c
|
|
8
|
+
} = p;
|
|
9
|
+
const e = d(!1), o = d(0), w = f(() => {
|
|
10
|
+
const t = typeof e.value == "boolean" ? "top" : e.value;
|
|
11
|
+
return [r.value ? {
|
|
12
|
+
top: "auto",
|
|
13
|
+
bottom: "auto",
|
|
14
|
+
height: void 0
|
|
15
|
+
} : void 0, e.value ? {
|
|
16
|
+
[t]: S(o.value)
|
|
17
|
+
} : {
|
|
18
|
+
top: c.value.top
|
|
19
|
+
}];
|
|
20
|
+
});
|
|
21
|
+
y(() => {
|
|
22
|
+
h(r, (t) => {
|
|
23
|
+
t ? window.addEventListener("scroll", i, {
|
|
24
|
+
passive: !0
|
|
25
|
+
}) : window.removeEventListener("scroll", i);
|
|
26
|
+
}, {
|
|
27
|
+
immediate: !0
|
|
28
|
+
});
|
|
29
|
+
}), g(() => {
|
|
30
|
+
window.removeEventListener("scroll", i);
|
|
31
|
+
});
|
|
32
|
+
let v = 0;
|
|
33
|
+
function i() {
|
|
34
|
+
const t = v > window.scrollY ? "up" : "down", n = s.value.getBoundingClientRect(), l = parseFloat(c.value.top ?? 0), u = window.scrollY - Math.max(0, o.value - l), m = n.height + Math.max(o.value, l) - window.scrollY - window.innerHeight, a = parseFloat(getComputedStyle(s.value).getPropertyValue("--v-body-scroll-y")) || 0;
|
|
35
|
+
n.height < window.innerHeight - l ? (e.value = "top", o.value = l) : t === "up" && e.value === "bottom" || t === "down" && e.value === "top" ? (o.value = window.scrollY + n.top - a, e.value = !0) : t === "down" && m <= 0 ? (o.value = 0, e.value = "bottom") : t === "up" && u <= 0 && (a ? e.value !== "top" && (o.value = -u + a + l, e.value = "top") : (o.value = n.top + u, e.value = "top")), v = window.scrollY;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
isStuck: e,
|
|
39
|
+
stickyStyles: w
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
Y as useSticky
|
|
44
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { useToggleScope as S } from "../../composables/toggleScope.mjs";
|
|
2
|
+
import { useVelocity as V } from "../../composables/touch.mjs";
|
|
3
|
+
import { onMounted as Z, onBeforeUnmount as z, computed as X, shallowRef as T, watchEffect as A, onScopeDispose as B } from "vue";
|
|
4
|
+
import { clamp as O } from "../../util/helpers.mjs";
|
|
5
|
+
function q(Y) {
|
|
6
|
+
let {
|
|
7
|
+
el: h,
|
|
8
|
+
isActive: f,
|
|
9
|
+
isTemporary: H,
|
|
10
|
+
width: a,
|
|
11
|
+
touchless: D,
|
|
12
|
+
position: t
|
|
13
|
+
} = Y;
|
|
14
|
+
Z(() => {
|
|
15
|
+
window.addEventListener("touchstart", M, {
|
|
16
|
+
passive: !0
|
|
17
|
+
}), window.addEventListener("touchmove", x, {
|
|
18
|
+
passive: !1
|
|
19
|
+
}), window.addEventListener("touchend", L, {
|
|
20
|
+
passive: !0
|
|
21
|
+
});
|
|
22
|
+
}), z(() => {
|
|
23
|
+
window.removeEventListener("touchstart", M), window.removeEventListener("touchmove", x), window.removeEventListener("touchend", L);
|
|
24
|
+
});
|
|
25
|
+
const c = X(() => ["left", "right"].includes(t.value)), {
|
|
26
|
+
addMovement: g,
|
|
27
|
+
endTouch: W,
|
|
28
|
+
getVelocity: $
|
|
29
|
+
} = V();
|
|
30
|
+
let m = !1;
|
|
31
|
+
const v = T(!1), i = T(0), r = T(0);
|
|
32
|
+
let p;
|
|
33
|
+
function y(e, n) {
|
|
34
|
+
return (t.value === "left" ? e : t.value === "right" ? document.documentElement.clientWidth - e : t.value === "top" ? e : t.value === "bottom" ? document.documentElement.clientHeight - e : d()) - (n ? a.value : 0);
|
|
35
|
+
}
|
|
36
|
+
function b(e) {
|
|
37
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
38
|
+
const l = t.value === "left" ? (e - r.value) / a.value : t.value === "right" ? (document.documentElement.clientWidth - e - r.value) / a.value : t.value === "top" ? (e - r.value) / a.value : t.value === "bottom" ? (document.documentElement.clientHeight - e - r.value) / a.value : d();
|
|
39
|
+
return n ? O(l) : l;
|
|
40
|
+
}
|
|
41
|
+
function M(e) {
|
|
42
|
+
if (D.value)
|
|
43
|
+
return;
|
|
44
|
+
const n = e.changedTouches[0].clientX, l = e.changedTouches[0].clientY, o = 25, u = t.value === "left" ? n < o : t.value === "right" ? n > document.documentElement.clientWidth - o : t.value === "top" ? l < o : t.value === "bottom" ? l > document.documentElement.clientHeight - o : d(), s = f.value && (t.value === "left" ? n < a.value : t.value === "right" ? n > document.documentElement.clientWidth - a.value : t.value === "top" ? l < a.value : t.value === "bottom" ? l > document.documentElement.clientHeight - a.value : d());
|
|
45
|
+
(u || s || f.value && H.value) && (p = [n, l], r.value = y(c.value ? n : l, f.value), i.value = b(c.value ? n : l), m = r.value > -20 && r.value < 80, W(e), g(e));
|
|
46
|
+
}
|
|
47
|
+
function x(e) {
|
|
48
|
+
const n = e.changedTouches[0].clientX, l = e.changedTouches[0].clientY;
|
|
49
|
+
if (m) {
|
|
50
|
+
if (!e.cancelable) {
|
|
51
|
+
m = !1;
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
const u = Math.abs(n - p[0]), s = Math.abs(l - p[1]);
|
|
55
|
+
(c.value ? u > s && u > 3 : s > u && s > 3) ? (v.value = !0, m = !1) : (c.value ? s : u) > 3 && (m = !1);
|
|
56
|
+
}
|
|
57
|
+
if (!v.value)
|
|
58
|
+
return;
|
|
59
|
+
e.preventDefault(), g(e);
|
|
60
|
+
const o = b(c.value ? n : l, !1);
|
|
61
|
+
i.value = Math.max(0, Math.min(1, o)), o > 1 ? r.value = y(c.value ? n : l, !0) : o < 0 && (r.value = y(c.value ? n : l, !1));
|
|
62
|
+
}
|
|
63
|
+
function L(e) {
|
|
64
|
+
if (m = !1, !v.value)
|
|
65
|
+
return;
|
|
66
|
+
g(e), v.value = !1;
|
|
67
|
+
const n = $(e.changedTouches[0].identifier), l = Math.abs(n.x), o = Math.abs(n.y);
|
|
68
|
+
(c.value ? l > o && l > 400 : o > l && o > 3) ? f.value = n.direction === ({
|
|
69
|
+
left: "right",
|
|
70
|
+
right: "left",
|
|
71
|
+
top: "down",
|
|
72
|
+
bottom: "up"
|
|
73
|
+
}[t.value] || d()) : f.value = i.value > 0.5;
|
|
74
|
+
}
|
|
75
|
+
const w = X(() => v.value ? {
|
|
76
|
+
transform: t.value === "left" ? `translateX(calc(-100% + ${i.value * a.value}px))` : t.value === "right" ? `translateX(calc(100% - ${i.value * a.value}px))` : t.value === "top" ? `translateY(calc(-100% + ${i.value * a.value}px))` : t.value === "bottom" ? `translateY(calc(100% - ${i.value * a.value}px))` : d(),
|
|
77
|
+
transition: "none"
|
|
78
|
+
} : void 0);
|
|
79
|
+
return S(v, () => {
|
|
80
|
+
var l, o;
|
|
81
|
+
const e = ((l = h.value) == null ? void 0 : l.style.transform) ?? null, n = ((o = h.value) == null ? void 0 : o.style.transition) ?? null;
|
|
82
|
+
A(() => {
|
|
83
|
+
var u, s, E, P;
|
|
84
|
+
(s = h.value) == null || s.style.setProperty("transform", ((u = w.value) == null ? void 0 : u.transform) || "none"), (P = h.value) == null || P.style.setProperty("transition", ((E = w.value) == null ? void 0 : E.transition) || null);
|
|
85
|
+
}), B(() => {
|
|
86
|
+
var u, s;
|
|
87
|
+
(u = h.value) == null || u.style.setProperty("transform", e), (s = h.value) == null || s.style.setProperty("transition", n);
|
|
88
|
+
});
|
|
89
|
+
}), {
|
|
90
|
+
isDragging: v,
|
|
91
|
+
dragProgress: i,
|
|
92
|
+
dragStyles: w
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function d() {
|
|
96
|
+
throw new Error();
|
|
97
|
+
}
|
|
98
|
+
export {
|
|
99
|
+
q as useTouch
|
|
100
|
+
};
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { ref as k, computed as te, watch as p, onBeforeUnmount as oe, createElementVNode as S, Fragment as ae, mergeProps as c, createVNode as E, Teleport as ne, withDirectives as re, vShow as le, Transition as ie } from "vue";
|
|
2
|
+
import "../../../../../../../_virtual/VOverlay.sass.mjs";
|
|
3
|
+
import { makeLocationStrategyProps as se, useLocationStrategies as ue } from "./locationStrategies.mjs";
|
|
4
|
+
import { makeScrollStrategyProps as ce, useScrollStrategies as me } from "./scrollStrategies.mjs";
|
|
5
|
+
import { makeActivatorProps as ve, useActivator as fe } from "./useActivator.mjs";
|
|
6
|
+
import { useBackgroundColor as de } from "../../composables/color.mjs";
|
|
7
|
+
import { makeComponentProps as ye } from "../../composables/component.mjs";
|
|
8
|
+
import { makeDimensionProps as ge, useDimension as ke } from "../../composables/dimensions.mjs";
|
|
9
|
+
import { makeFocusTrapProps as Se, useFocusTrap as Ee } from "../../composables/focusTrap.mjs";
|
|
10
|
+
import { useHydration as be } from "../../composables/hydration.mjs";
|
|
11
|
+
import { makeLazyProps as we, useLazy as Ce } from "../../composables/lazy.mjs";
|
|
12
|
+
import { useRtl as pe } from "../../composables/locale.mjs";
|
|
13
|
+
import { useProxiedModel as Be } from "../../composables/proxiedModel.mjs";
|
|
14
|
+
import { useRouter as Pe, useBackButton as Te } from "../../composables/router.mjs";
|
|
15
|
+
import { useScopeId as Le } from "../../composables/scopeId.mjs";
|
|
16
|
+
import { useStack as he } from "../../composables/stack.mjs";
|
|
17
|
+
import { useTeleport as Ae } from "../../composables/teleport.mjs";
|
|
18
|
+
import { makeThemeProps as Oe, provideTheme as Ve } from "../../composables/theme.mjs";
|
|
19
|
+
import { useToggleScope as Re } from "../../composables/toggleScope.mjs";
|
|
20
|
+
import { makeTransitionProps as Ne, MaybeTransition as _e } from "../../composables/transition.mjs";
|
|
21
|
+
import A from "../../directives/click-outside/index.mjs";
|
|
22
|
+
import { getScrollParent as Ie } from "../../util/getScrollParent.mjs";
|
|
23
|
+
import { propsFactory as Fe } from "../../util/propsFactory.mjs";
|
|
24
|
+
import { genericComponent as xe } from "../../util/defineComponent.mjs";
|
|
25
|
+
import { omit as ze, convertToUnit as Me } from "../../util/helpers.mjs";
|
|
26
|
+
import { getCurrentInstance as De } from "../../util/getCurrentInstance.mjs";
|
|
27
|
+
import { IN_BROWSER as O } from "../../util/globals.mjs";
|
|
28
|
+
import { animate as Ke } from "../../util/animation.mjs";
|
|
29
|
+
import { useRender as Ge } from "../../util/useRender.mjs";
|
|
30
|
+
import { standardEasing as Ue } from "../../util/easing.mjs";
|
|
31
|
+
function je(e) {
|
|
32
|
+
const {
|
|
33
|
+
modelValue: B,
|
|
34
|
+
color: r,
|
|
35
|
+
...b
|
|
36
|
+
} = e;
|
|
37
|
+
return E(ie, {
|
|
38
|
+
name: "fade-transition",
|
|
39
|
+
appear: !0
|
|
40
|
+
}, {
|
|
41
|
+
default: () => [e.modelValue && S("div", c({
|
|
42
|
+
class: ["v-overlay__scrim", e.color.backgroundColorClasses.value],
|
|
43
|
+
style: e.color.backgroundColorStyles.value
|
|
44
|
+
}, b), null)]
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
const He = Fe({
|
|
48
|
+
absolute: Boolean,
|
|
49
|
+
attach: [Boolean, String, Object],
|
|
50
|
+
closeOnBack: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: !0
|
|
53
|
+
},
|
|
54
|
+
contained: Boolean,
|
|
55
|
+
contentClass: null,
|
|
56
|
+
contentProps: null,
|
|
57
|
+
disabled: Boolean,
|
|
58
|
+
opacity: [Number, String],
|
|
59
|
+
noClickAnimation: Boolean,
|
|
60
|
+
modelValue: Boolean,
|
|
61
|
+
persistent: Boolean,
|
|
62
|
+
scrim: {
|
|
63
|
+
type: [Boolean, String],
|
|
64
|
+
default: !0
|
|
65
|
+
},
|
|
66
|
+
zIndex: {
|
|
67
|
+
type: [Number, String],
|
|
68
|
+
default: 2e3
|
|
69
|
+
},
|
|
70
|
+
...ve(),
|
|
71
|
+
...ye(),
|
|
72
|
+
...ge(),
|
|
73
|
+
...we(),
|
|
74
|
+
...se(),
|
|
75
|
+
...ce(),
|
|
76
|
+
...Se(),
|
|
77
|
+
...Oe(),
|
|
78
|
+
...Ne()
|
|
79
|
+
}, "VOverlay"), Ct = xe()({
|
|
80
|
+
name: "VOverlay",
|
|
81
|
+
directives: {
|
|
82
|
+
vClickOutside: A
|
|
83
|
+
},
|
|
84
|
+
inheritAttrs: !1,
|
|
85
|
+
props: {
|
|
86
|
+
_disableGlobalStack: Boolean,
|
|
87
|
+
...ze(He(), ["disableInitialFocus"])
|
|
88
|
+
},
|
|
89
|
+
emits: {
|
|
90
|
+
"click:outside": (e) => !0,
|
|
91
|
+
"update:modelValue": (e) => !0,
|
|
92
|
+
keydown: (e) => !0,
|
|
93
|
+
afterEnter: () => !0,
|
|
94
|
+
afterLeave: () => !0
|
|
95
|
+
},
|
|
96
|
+
setup(e, B) {
|
|
97
|
+
let {
|
|
98
|
+
slots: r,
|
|
99
|
+
attrs: b,
|
|
100
|
+
emit: i
|
|
101
|
+
} = B;
|
|
102
|
+
const V = De("VOverlay"), m = k(), v = k(), n = k(), P = Be(e, "modelValue"), o = te({
|
|
103
|
+
get: () => P.value,
|
|
104
|
+
set: (t) => {
|
|
105
|
+
t && e.disabled || (P.value = t);
|
|
106
|
+
}
|
|
107
|
+
}), {
|
|
108
|
+
themeClasses: R
|
|
109
|
+
} = Ve(e), {
|
|
110
|
+
rtlClasses: N,
|
|
111
|
+
isRtl: _
|
|
112
|
+
} = pe(), {
|
|
113
|
+
hasContent: I,
|
|
114
|
+
onAfterLeave: F
|
|
115
|
+
} = Ce(e, o), x = de(() => typeof e.scrim == "string" ? e.scrim : null), {
|
|
116
|
+
globalTop: f,
|
|
117
|
+
localTop: d,
|
|
118
|
+
stackStyles: z
|
|
119
|
+
} = he(o, () => e.zIndex, e._disableGlobalStack), {
|
|
120
|
+
activatorEl: l,
|
|
121
|
+
activatorRef: M,
|
|
122
|
+
target: y,
|
|
123
|
+
targetEl: D,
|
|
124
|
+
targetRef: K,
|
|
125
|
+
activatorEvents: G,
|
|
126
|
+
contentEvents: U,
|
|
127
|
+
scrimEvents: j
|
|
128
|
+
} = fe(e, {
|
|
129
|
+
isActive: o,
|
|
130
|
+
isTop: d,
|
|
131
|
+
contentEl: n
|
|
132
|
+
}), {
|
|
133
|
+
teleportTarget: w
|
|
134
|
+
} = Ae(() => {
|
|
135
|
+
var s, u, h;
|
|
136
|
+
const t = e.attach || e.contained;
|
|
137
|
+
if (t)
|
|
138
|
+
return t;
|
|
139
|
+
const a = ((s = l == null ? void 0 : l.value) == null ? void 0 : s.getRootNode()) || ((h = (u = V.proxy) == null ? void 0 : u.$el) == null ? void 0 : h.getRootNode());
|
|
140
|
+
return a instanceof ShadowRoot ? a : !1;
|
|
141
|
+
}), {
|
|
142
|
+
dimensionStyles: H
|
|
143
|
+
} = ke(e), W = be(), {
|
|
144
|
+
scopeId: $
|
|
145
|
+
} = Le();
|
|
146
|
+
p(() => e.disabled, (t) => {
|
|
147
|
+
t && (o.value = !1);
|
|
148
|
+
});
|
|
149
|
+
const {
|
|
150
|
+
contentStyles: q,
|
|
151
|
+
updateLocation: T
|
|
152
|
+
} = ue(e, {
|
|
153
|
+
isRtl: _,
|
|
154
|
+
contentEl: n,
|
|
155
|
+
target: y,
|
|
156
|
+
isActive: o
|
|
157
|
+
});
|
|
158
|
+
me(e, {
|
|
159
|
+
root: m,
|
|
160
|
+
contentEl: n,
|
|
161
|
+
targetEl: D,
|
|
162
|
+
target: y,
|
|
163
|
+
isActive: o,
|
|
164
|
+
updateLocation: T
|
|
165
|
+
});
|
|
166
|
+
function J(t) {
|
|
167
|
+
i("click:outside", t), e.persistent ? g() : o.value = !1;
|
|
168
|
+
}
|
|
169
|
+
function Q(t) {
|
|
170
|
+
return o.value && d.value && // If using scrim, only close if clicking on it rather than anything opened on top
|
|
171
|
+
(!e.scrim || t.target === v.value || t instanceof MouseEvent && t.shadowTarget === v.value);
|
|
172
|
+
}
|
|
173
|
+
Ee(e, {
|
|
174
|
+
isActive: o,
|
|
175
|
+
localTop: d,
|
|
176
|
+
contentEl: n,
|
|
177
|
+
activatorEl: l
|
|
178
|
+
}), O && p(o, (t) => {
|
|
179
|
+
t ? window.addEventListener("keydown", C) : window.removeEventListener("keydown", C);
|
|
180
|
+
}, {
|
|
181
|
+
immediate: !0
|
|
182
|
+
}), oe(() => {
|
|
183
|
+
O && window.removeEventListener("keydown", C);
|
|
184
|
+
});
|
|
185
|
+
function C(t) {
|
|
186
|
+
var a, s, u;
|
|
187
|
+
t.key === "Escape" && f.value && ((a = n.value) != null && a.contains(document.activeElement) || i("keydown", t), e.persistent ? g() : (o.value = !1, (s = n.value) != null && s.contains(document.activeElement) && ((u = l.value) == null || u.focus())));
|
|
188
|
+
}
|
|
189
|
+
function X(t) {
|
|
190
|
+
t.key === "Escape" && !f.value || i("keydown", t);
|
|
191
|
+
}
|
|
192
|
+
const Y = Pe();
|
|
193
|
+
Re(() => e.closeOnBack, () => {
|
|
194
|
+
Te(Y, (t) => {
|
|
195
|
+
f.value && o.value ? (t(!1), e.persistent ? g() : o.value = !1) : t();
|
|
196
|
+
});
|
|
197
|
+
});
|
|
198
|
+
const L = k();
|
|
199
|
+
p(() => o.value && (e.absolute || e.contained) && w.value == null, (t) => {
|
|
200
|
+
if (t) {
|
|
201
|
+
const a = Ie(m.value);
|
|
202
|
+
a && a !== document.scrollingElement && (L.value = a.scrollTop);
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
function g() {
|
|
206
|
+
e.noClickAnimation || n.value && Ke(n.value, [{
|
|
207
|
+
transformOrigin: "center"
|
|
208
|
+
}, {
|
|
209
|
+
transform: "scale(1.03)"
|
|
210
|
+
}, {
|
|
211
|
+
transformOrigin: "center"
|
|
212
|
+
}], {
|
|
213
|
+
duration: 150,
|
|
214
|
+
easing: Ue
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
function Z() {
|
|
218
|
+
i("afterEnter");
|
|
219
|
+
}
|
|
220
|
+
function ee() {
|
|
221
|
+
F(), i("afterLeave");
|
|
222
|
+
}
|
|
223
|
+
return Ge(() => {
|
|
224
|
+
var t;
|
|
225
|
+
return S(ae, null, [(t = r.activator) == null ? void 0 : t.call(r, {
|
|
226
|
+
isActive: o.value,
|
|
227
|
+
targetRef: K,
|
|
228
|
+
props: c({
|
|
229
|
+
ref: M
|
|
230
|
+
}, G.value, e.activatorProps)
|
|
231
|
+
}), W.value && I.value && E(ne, {
|
|
232
|
+
disabled: !w.value,
|
|
233
|
+
to: w.value
|
|
234
|
+
}, {
|
|
235
|
+
default: () => [S("div", c({
|
|
236
|
+
class: ["v-overlay", {
|
|
237
|
+
"v-overlay--absolute": e.absolute || e.contained,
|
|
238
|
+
"v-overlay--active": o.value,
|
|
239
|
+
"v-overlay--contained": e.contained
|
|
240
|
+
}, R.value, N.value, e.class],
|
|
241
|
+
style: [z.value, {
|
|
242
|
+
"--v-overlay-opacity": e.opacity,
|
|
243
|
+
top: Me(L.value)
|
|
244
|
+
}, e.style],
|
|
245
|
+
ref: m,
|
|
246
|
+
onKeydown: X
|
|
247
|
+
}, $, b), [E(je, c({
|
|
248
|
+
color: x,
|
|
249
|
+
modelValue: o.value && !!e.scrim,
|
|
250
|
+
ref: v
|
|
251
|
+
}, j.value), null), E(_e, {
|
|
252
|
+
appear: !0,
|
|
253
|
+
persisted: !0,
|
|
254
|
+
transition: e.transition,
|
|
255
|
+
target: y.value,
|
|
256
|
+
onAfterEnter: Z,
|
|
257
|
+
onAfterLeave: ee
|
|
258
|
+
}, {
|
|
259
|
+
default: () => {
|
|
260
|
+
var a;
|
|
261
|
+
return [re(S("div", c({
|
|
262
|
+
ref: n,
|
|
263
|
+
class: ["v-overlay__content", e.contentClass],
|
|
264
|
+
style: [H.value, q.value]
|
|
265
|
+
}, U.value, e.contentProps), [(a = r.default) == null ? void 0 : a.call(r, {
|
|
266
|
+
isActive: o
|
|
267
|
+
})]), [[le, o.value], [A, {
|
|
268
|
+
handler: J,
|
|
269
|
+
closeConditional: Q,
|
|
270
|
+
include: () => [l.value]
|
|
271
|
+
}]])];
|
|
272
|
+
}
|
|
273
|
+
})])]
|
|
274
|
+
})]);
|
|
275
|
+
}), {
|
|
276
|
+
activatorEl: l,
|
|
277
|
+
scrimEl: v,
|
|
278
|
+
target: y,
|
|
279
|
+
animateClick: g,
|
|
280
|
+
contentEl: n,
|
|
281
|
+
rootEl: m,
|
|
282
|
+
globalTop: f,
|
|
283
|
+
localTop: d,
|
|
284
|
+
updateLocation: T
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
export {
|
|
289
|
+
Ct as VOverlay,
|
|
290
|
+
He as makeVOverlayProps
|
|
291
|
+
};
|