bt-core-app 2.2.10 → 2.2.12
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 +22 -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 +420 -407
- package/dist/components/BT-Avatar.vue.mjs +31 -31
- package/dist/components/BT-Background-Task.vue.mjs +52 -52
- package/dist/components/BT-Blade-Item.vue.mjs +110 -100
- package/dist/components/BT-Blade-Items.vue.mjs +1 -1
- package/dist/components/BT-Blade-Items.vue2.mjs +411 -399
- package/dist/components/BT-Blade-Steps.vue.mjs +2 -2
- package/dist/components/BT-Blade-Steps.vue2.mjs +641 -626
- package/dist/components/BT-Blade.vue.mjs +201 -192
- package/dist/components/BT-Btn.vue.mjs +23 -25
- package/dist/components/BT-Camera-Overlay.vue.mjs +144 -142
- 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 +264 -249
- 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 +96 -85
- package/dist/components/BT-Divider.vue.mjs +20 -21
- package/dist/components/BT-Drag-Counter.vue.mjs +1 -1
- package/dist/components/BT-Drag-Counter.vue2.mjs +89 -89
- package/dist/components/BT-Entity.vue.mjs +82 -82
- package/dist/components/BT-Error.vue.mjs +26 -27
- 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 +346 -325
- package/dist/components/BT-Form-Field.vue.mjs +88 -81
- package/dist/components/BT-Form.vue.mjs +280 -269
- package/dist/components/BT-Header-Option.vue.mjs +21 -19
- 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 +1 -1
- package/dist/components/BT-Number.vue2.mjs +17 -19
- package/dist/components/BT-Numpad.vue.mjs +147 -144
- package/dist/components/BT-Select-List-Box.vue.mjs +287 -276
- 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 +113 -112
- package/dist/components/BT-Signature.vue.mjs +96 -96
- package/dist/components/BT-Slider.vue.mjs +109 -103
- package/dist/components/BT-Square-Check.vue.mjs +65 -65
- 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 +5 -2
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { keys as i } from "../../util/helpers.mjs";
|
|
2
|
+
const f = (t) => {
|
|
3
|
+
const {
|
|
4
|
+
touchstartX: o,
|
|
5
|
+
touchendX: n,
|
|
6
|
+
touchstartY: c,
|
|
7
|
+
touchendY: u
|
|
8
|
+
} = t, e = 0.5, s = 16;
|
|
9
|
+
t.offsetX = n - o, t.offsetY = u - c, Math.abs(t.offsetY) < e * Math.abs(t.offsetX) && (t.left && n < o - s && t.left(t), t.right && n > o + s && t.right(t)), Math.abs(t.offsetX) < e * Math.abs(t.offsetY) && (t.up && u < c - s && t.up(t), t.down && u > c + s && t.down(t));
|
|
10
|
+
};
|
|
11
|
+
function l(t, o) {
|
|
12
|
+
var c;
|
|
13
|
+
const n = t.changedTouches[0];
|
|
14
|
+
o.touchstartX = n.clientX, o.touchstartY = n.clientY, (c = o.start) == null || c.call(o, {
|
|
15
|
+
originalEvent: t,
|
|
16
|
+
...o
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function m(t, o) {
|
|
20
|
+
var c;
|
|
21
|
+
const n = t.changedTouches[0];
|
|
22
|
+
o.touchendX = n.clientX, o.touchendY = n.clientY, (c = o.end) == null || c.call(o, {
|
|
23
|
+
originalEvent: t,
|
|
24
|
+
...o
|
|
25
|
+
}), f(o);
|
|
26
|
+
}
|
|
27
|
+
function X(t, o) {
|
|
28
|
+
var c;
|
|
29
|
+
const n = t.changedTouches[0];
|
|
30
|
+
o.touchmoveX = n.clientX, o.touchmoveY = n.clientY, (c = o.move) == null || c.call(o, {
|
|
31
|
+
originalEvent: t,
|
|
32
|
+
...o
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function Y() {
|
|
36
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
37
|
+
const o = {
|
|
38
|
+
touchstartX: 0,
|
|
39
|
+
touchstartY: 0,
|
|
40
|
+
touchendX: 0,
|
|
41
|
+
touchendY: 0,
|
|
42
|
+
touchmoveX: 0,
|
|
43
|
+
touchmoveY: 0,
|
|
44
|
+
offsetX: 0,
|
|
45
|
+
offsetY: 0,
|
|
46
|
+
left: t.left,
|
|
47
|
+
right: t.right,
|
|
48
|
+
up: t.up,
|
|
49
|
+
down: t.down,
|
|
50
|
+
start: t.start,
|
|
51
|
+
move: t.move,
|
|
52
|
+
end: t.end
|
|
53
|
+
};
|
|
54
|
+
return {
|
|
55
|
+
touchstart: (n) => l(n, o),
|
|
56
|
+
touchend: (n) => m(n, o),
|
|
57
|
+
touchmove: (n) => X(n, o)
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function a(t, o) {
|
|
61
|
+
var h;
|
|
62
|
+
const n = o.value, c = n != null && n.parent ? t.parentElement : t, u = (n == null ? void 0 : n.options) ?? {
|
|
63
|
+
passive: !0
|
|
64
|
+
}, e = (h = o.instance) == null ? void 0 : h.$.uid;
|
|
65
|
+
if (!c || e === void 0)
|
|
66
|
+
return;
|
|
67
|
+
const s = Y(o.value);
|
|
68
|
+
c._touchHandlers = c._touchHandlers ?? /* @__PURE__ */ Object.create(null), c._touchHandlers[e] = s, i(s).forEach((d) => {
|
|
69
|
+
c.addEventListener(d, s[d], u);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
function v(t, o) {
|
|
73
|
+
var e, s;
|
|
74
|
+
const n = (e = o.value) != null && e.parent ? t.parentElement : t, c = (s = o.instance) == null ? void 0 : s.$.uid;
|
|
75
|
+
if (!(n != null && n._touchHandlers) || c === void 0)
|
|
76
|
+
return;
|
|
77
|
+
const u = n._touchHandlers[c];
|
|
78
|
+
i(u).forEach((h) => {
|
|
79
|
+
n.removeEventListener(h, u[h]);
|
|
80
|
+
}), delete n._touchHandlers[c];
|
|
81
|
+
}
|
|
82
|
+
const g = {
|
|
83
|
+
mounted: a,
|
|
84
|
+
unmounted: v
|
|
85
|
+
}, H = g;
|
|
86
|
+
export {
|
|
87
|
+
g as Touch,
|
|
88
|
+
H as default
|
|
89
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { createVNode as i, mergeProps as k, createElementVNode as t, normalizeClass as v, normalizeStyle as u } from "vue";
|
|
2
|
+
import "../../../../../../../_virtual/VPicker.sass.mjs";
|
|
3
|
+
import { VPickerTitle as f } from "./VPickerTitle.mjs";
|
|
4
|
+
import { VDefaultsProvider as p } from "../../components/VDefaultsProvider/VDefaultsProvider.mjs";
|
|
5
|
+
import { makeVSheetProps as h, VSheet as l } from "../../components/VSheet/VSheet.mjs";
|
|
6
|
+
import { useBackgroundColor as P } from "../../composables/color.mjs";
|
|
7
|
+
import { propsFactory as V } from "../../util/propsFactory.mjs";
|
|
8
|
+
import { genericComponent as g } from "../../util/defineComponent.mjs";
|
|
9
|
+
import { useRender as y } from "../../util/useRender.mjs";
|
|
10
|
+
const C = V({
|
|
11
|
+
bgColor: String,
|
|
12
|
+
divided: Boolean,
|
|
13
|
+
landscape: Boolean,
|
|
14
|
+
title: String,
|
|
15
|
+
hideHeader: Boolean,
|
|
16
|
+
hideTitle: Boolean,
|
|
17
|
+
...h()
|
|
18
|
+
}, "VPicker"), N = g()({
|
|
19
|
+
name: "VPicker",
|
|
20
|
+
props: C(),
|
|
21
|
+
setup(r, c) {
|
|
22
|
+
let {
|
|
23
|
+
slots: e
|
|
24
|
+
} = c;
|
|
25
|
+
const {
|
|
26
|
+
backgroundColorClasses: d,
|
|
27
|
+
backgroundColorStyles: n
|
|
28
|
+
} = P(() => r.color);
|
|
29
|
+
return y(() => {
|
|
30
|
+
const s = l.filterProps(r), m = !r.hideTitle && !!(r.title || e.title);
|
|
31
|
+
return i(l, k(s, {
|
|
32
|
+
color: r.bgColor,
|
|
33
|
+
class: ["v-picker", {
|
|
34
|
+
"v-picker--divided": r.divided,
|
|
35
|
+
"v-picker--landscape": r.landscape,
|
|
36
|
+
"v-picker--with-actions": !!e.actions
|
|
37
|
+
}, r.class],
|
|
38
|
+
style: r.style
|
|
39
|
+
}), {
|
|
40
|
+
default: () => {
|
|
41
|
+
var o;
|
|
42
|
+
return [!r.hideHeader && t("div", {
|
|
43
|
+
key: "header",
|
|
44
|
+
class: v(["v-picker__header-wrapper", d.value]),
|
|
45
|
+
style: u([n.value])
|
|
46
|
+
}, [m && i(f, {
|
|
47
|
+
key: "picker-title"
|
|
48
|
+
}, {
|
|
49
|
+
default: () => {
|
|
50
|
+
var a;
|
|
51
|
+
return [((a = e.title) == null ? void 0 : a.call(e)) ?? r.title];
|
|
52
|
+
}
|
|
53
|
+
}), e.header && t("div", {
|
|
54
|
+
class: "v-picker__header"
|
|
55
|
+
}, [e.header()])]), t("div", {
|
|
56
|
+
class: "v-picker__body"
|
|
57
|
+
}, [(o = e.default) == null ? void 0 : o.call(e)]), e.actions && i(p, {
|
|
58
|
+
defaults: {
|
|
59
|
+
VBtn: {
|
|
60
|
+
slim: !0,
|
|
61
|
+
variant: "text"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
default: () => [t("div", {
|
|
66
|
+
class: "v-picker__actions"
|
|
67
|
+
}, [e.actions()])]
|
|
68
|
+
})];
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}), {};
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
export {
|
|
75
|
+
N as VPicker,
|
|
76
|
+
C as makeVPickerProps
|
|
77
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { inject as r, toRef as t } from "vue";
|
|
2
|
+
const i = Symbol.for("vuetify:rules");
|
|
3
|
+
function u(o) {
|
|
4
|
+
const e = r(i, null);
|
|
5
|
+
if (!o) {
|
|
6
|
+
if (!e)
|
|
7
|
+
throw new Error("Could not find Vuetify rules injection");
|
|
8
|
+
return e.aliases;
|
|
9
|
+
}
|
|
10
|
+
return (e == null ? void 0 : e.resolve(o)) ?? t(o);
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
i as RulesSymbol,
|
|
14
|
+
u as useRules
|
|
15
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { includes as r } from "./helpers.mjs";
|
|
2
|
+
const l = ["top", "bottom"], f = ["start", "end", "left", "right"];
|
|
3
|
+
function s(t, e) {
|
|
4
|
+
let [i, n] = t.split(" ");
|
|
5
|
+
return n || (n = r(l, i) ? "start" : r(f, i) ? "top" : "center"), {
|
|
6
|
+
side: o(i, e),
|
|
7
|
+
align: o(n, e)
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function o(t, e) {
|
|
11
|
+
return t === "start" ? e ? "right" : "left" : t === "end" ? e ? "left" : "right" : t;
|
|
12
|
+
}
|
|
13
|
+
function u(t) {
|
|
14
|
+
return {
|
|
15
|
+
side: {
|
|
16
|
+
center: "center",
|
|
17
|
+
top: "bottom",
|
|
18
|
+
bottom: "top",
|
|
19
|
+
left: "right",
|
|
20
|
+
right: "left"
|
|
21
|
+
}[t.side],
|
|
22
|
+
align: t.align
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function c(t) {
|
|
26
|
+
return {
|
|
27
|
+
side: t.side,
|
|
28
|
+
align: {
|
|
29
|
+
center: "center",
|
|
30
|
+
top: "bottom",
|
|
31
|
+
bottom: "top",
|
|
32
|
+
left: "right",
|
|
33
|
+
right: "left"
|
|
34
|
+
}[t.align]
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function d(t) {
|
|
38
|
+
return {
|
|
39
|
+
side: t.align,
|
|
40
|
+
align: t.side
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function p(t) {
|
|
44
|
+
return r(l, t.side) ? "y" : "x";
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
c as flipAlign,
|
|
48
|
+
d as flipCorner,
|
|
49
|
+
u as flipSide,
|
|
50
|
+
p as getAxis,
|
|
51
|
+
s as parseAnchor,
|
|
52
|
+
o as toPhysical
|
|
53
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Box as f } from "./box.mjs";
|
|
2
|
+
function y(r) {
|
|
3
|
+
const i = new f(r), o = getComputedStyle(r), t = o.transform;
|
|
4
|
+
if (t) {
|
|
5
|
+
let e, n, s, m, a;
|
|
6
|
+
if (t.startsWith("matrix3d("))
|
|
7
|
+
e = t.slice(9, -1).split(/, /), n = Number(e[0]), s = Number(e[5]), m = Number(e[12]), a = Number(e[13]);
|
|
8
|
+
else if (t.startsWith("matrix("))
|
|
9
|
+
e = t.slice(7, -1).split(/, /), n = Number(e[0]), s = Number(e[3]), m = Number(e[4]), a = Number(e[5]);
|
|
10
|
+
else
|
|
11
|
+
return new f(i);
|
|
12
|
+
const u = o.transformOrigin, h = i.x - m - (1 - n) * parseFloat(u), c = i.y - a - (1 - s) * parseFloat(u.slice(u.indexOf(" ") + 1)), d = n ? i.width / n : r.offsetWidth + 1, l = s ? i.height / s : r.offsetHeight + 1;
|
|
13
|
+
return new f({
|
|
14
|
+
x: h,
|
|
15
|
+
y: c,
|
|
16
|
+
width: d,
|
|
17
|
+
height: l
|
|
18
|
+
});
|
|
19
|
+
} else
|
|
20
|
+
return new f(i);
|
|
21
|
+
}
|
|
22
|
+
function p(r, i, o) {
|
|
23
|
+
if (typeof r.animate > "u")
|
|
24
|
+
return {
|
|
25
|
+
finished: Promise.resolve()
|
|
26
|
+
};
|
|
27
|
+
let t;
|
|
28
|
+
try {
|
|
29
|
+
t = r.animate(i, o);
|
|
30
|
+
} catch {
|
|
31
|
+
return {
|
|
32
|
+
finished: Promise.resolve()
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
return typeof t.finished > "u" && (t.finished = new Promise((e) => {
|
|
36
|
+
t.onfinish = () => {
|
|
37
|
+
e(t);
|
|
38
|
+
};
|
|
39
|
+
})), t;
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
p as animate,
|
|
43
|
+
y as nullifyTransforms
|
|
44
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { isOn as a, eventName as m } from "./helpers.mjs";
|
|
2
|
+
const f = /* @__PURE__ */ new WeakMap();
|
|
3
|
+
function u(n, s) {
|
|
4
|
+
Object.keys(s).forEach((e) => {
|
|
5
|
+
if (a(e)) {
|
|
6
|
+
const o = m(e), t = f.get(n);
|
|
7
|
+
if (s[e] == null)
|
|
8
|
+
t == null || t.forEach((i) => {
|
|
9
|
+
const [c, r] = i;
|
|
10
|
+
c === o && (n.removeEventListener(o, r), t.delete(i));
|
|
11
|
+
});
|
|
12
|
+
else if (!t || ![...t].some((i) => i[0] === o && i[1] === s[e])) {
|
|
13
|
+
n.addEventListener(o, s[e]);
|
|
14
|
+
const i = t || /* @__PURE__ */ new Set();
|
|
15
|
+
i.add([o, s[e]]), f.has(n) || f.set(n, i);
|
|
16
|
+
}
|
|
17
|
+
} else
|
|
18
|
+
s[e] == null ? n.removeAttribute(e) : n.setAttribute(e, s[e]);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function b(n, s) {
|
|
22
|
+
Object.keys(s).forEach((e) => {
|
|
23
|
+
if (a(e)) {
|
|
24
|
+
const o = m(e), t = f.get(n);
|
|
25
|
+
t == null || t.forEach((i) => {
|
|
26
|
+
const [c, r] = i;
|
|
27
|
+
c === o && (n.removeEventListener(o, r), t.delete(i));
|
|
28
|
+
});
|
|
29
|
+
} else
|
|
30
|
+
n.removeAttribute(e);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
u as bindProps,
|
|
35
|
+
b as unbindProps
|
|
36
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
class i {
|
|
2
|
+
constructor(t) {
|
|
3
|
+
const o = document.body.currentCSSZoom ?? 1, r = t instanceof Element, n = r ? 1 + (1 - o) / o : 1, {
|
|
4
|
+
x: h,
|
|
5
|
+
y: s,
|
|
6
|
+
width: c,
|
|
7
|
+
height: u
|
|
8
|
+
} = r ? t.getBoundingClientRect() : t;
|
|
9
|
+
this.x = h * n, this.y = s * n, this.width = c * n, this.height = u * n;
|
|
10
|
+
}
|
|
11
|
+
get top() {
|
|
12
|
+
return this.y;
|
|
13
|
+
}
|
|
14
|
+
get bottom() {
|
|
15
|
+
return this.y + this.height;
|
|
16
|
+
}
|
|
17
|
+
get left() {
|
|
18
|
+
return this.x;
|
|
19
|
+
}
|
|
20
|
+
get right() {
|
|
21
|
+
return this.x + this.width;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function l(e, t) {
|
|
25
|
+
return {
|
|
26
|
+
x: {
|
|
27
|
+
before: Math.max(0, t.left - e.left),
|
|
28
|
+
after: Math.max(0, e.right - t.right)
|
|
29
|
+
},
|
|
30
|
+
y: {
|
|
31
|
+
before: Math.max(0, t.top - e.top),
|
|
32
|
+
after: Math.max(0, e.bottom - t.bottom)
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function a(e) {
|
|
37
|
+
if (Array.isArray(e)) {
|
|
38
|
+
const t = document.body.currentCSSZoom ?? 1, o = 1 + (1 - t) / t;
|
|
39
|
+
return new i({
|
|
40
|
+
x: e[0] * o,
|
|
41
|
+
y: e[1] * o,
|
|
42
|
+
width: 0 * o,
|
|
43
|
+
height: 0 * o
|
|
44
|
+
});
|
|
45
|
+
} else
|
|
46
|
+
return new i(e);
|
|
47
|
+
}
|
|
48
|
+
function m(e) {
|
|
49
|
+
if (e === document.documentElement)
|
|
50
|
+
if (visualViewport) {
|
|
51
|
+
const t = document.body.currentCSSZoom ?? 1;
|
|
52
|
+
return new i({
|
|
53
|
+
x: visualViewport.scale > 1 ? 0 : visualViewport.offsetLeft,
|
|
54
|
+
y: visualViewport.scale > 1 ? 0 : visualViewport.offsetTop,
|
|
55
|
+
width: visualViewport.width * visualViewport.scale / t,
|
|
56
|
+
height: visualViewport.height * visualViewport.scale / t
|
|
57
|
+
});
|
|
58
|
+
} else
|
|
59
|
+
return new i({
|
|
60
|
+
x: 0,
|
|
61
|
+
y: 0,
|
|
62
|
+
width: document.documentElement.clientWidth,
|
|
63
|
+
height: document.documentElement.clientHeight
|
|
64
|
+
});
|
|
65
|
+
else
|
|
66
|
+
return new i(e);
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
i as Box,
|
|
70
|
+
m as getElementBox,
|
|
71
|
+
l as getOverflow,
|
|
72
|
+
a as getTargetBox
|
|
73
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const r = 0.2126729, a = 0.7151522, e = 0.072175, A = 0.55, u = 0.58, x = 0.57, P = 0.62, s = 0.03, T = 1.45, Y = 5e-4, v = 1.25, S = 1.25, m = 0.078, R = 12.82051282051282, c = 0.06, b = 1e-3;
|
|
2
|
+
function W(C, l) {
|
|
3
|
+
const f = (C.r / 255) ** 2.4, B = (C.g / 255) ** 2.4, G = (C.b / 255) ** 2.4, g = (l.r / 255) ** 2.4, h = (l.g / 255) ** 2.4, p = (l.b / 255) ** 2.4;
|
|
4
|
+
let o = f * r + B * a + G * e, n = g * r + h * a + p * e;
|
|
5
|
+
if (o <= s && (o += (s - o) ** T), n <= s && (n += (s - n) ** T), Math.abs(n - o) < Y)
|
|
6
|
+
return 0;
|
|
7
|
+
let i;
|
|
8
|
+
if (n > o) {
|
|
9
|
+
const t = (n ** A - o ** u) * v;
|
|
10
|
+
i = t < b ? 0 : t < m ? t - t * R * c : t - c;
|
|
11
|
+
} else {
|
|
12
|
+
const t = (n ** P - o ** x) * S;
|
|
13
|
+
i = t > -b ? 0 : t > -m ? t - t * R * c : t + c;
|
|
14
|
+
}
|
|
15
|
+
return i * 100;
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
W as APCAcontrast
|
|
19
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const f = [[0.4124, 0.3576, 0.1805], [0.2126, 0.7152, 0.0722], [0.0193, 0.1192, 0.9505]], i = (t) => t <= 0.04045 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4;
|
|
2
|
+
function x(t) {
|
|
3
|
+
let {
|
|
4
|
+
r: o,
|
|
5
|
+
g: s,
|
|
6
|
+
b: e
|
|
7
|
+
} = t;
|
|
8
|
+
const a = [0, 0, 0], n = i, c = f;
|
|
9
|
+
o = n(o / 255), s = n(s / 255), e = n(e / 255);
|
|
10
|
+
for (let r = 0; r < 3; ++r)
|
|
11
|
+
a[r] = c[r][0] * o + c[r][1] * s + c[r][2] * e;
|
|
12
|
+
return a;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
x as toXYZ
|
|
16
|
+
};
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { APCAcontrast as g } from "./color/APCA.mjs";
|
|
2
|
+
import { consoleWarn as l } from "./console.mjs";
|
|
3
|
+
import { has as p, chunk as S, padEnd as m } from "./helpers.mjs";
|
|
4
|
+
import { toXYZ as M } from "./color/transformSRGB.mjs";
|
|
5
|
+
function C(t) {
|
|
6
|
+
return !!t && /^(#|var\(--|(rgb|hsl)a?\()/.test(t);
|
|
7
|
+
}
|
|
8
|
+
function w(t) {
|
|
9
|
+
return C(t) && !/^((rgb|hsl)a?\()?var\(--/.test(t);
|
|
10
|
+
}
|
|
11
|
+
const b = /^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/, $ = {
|
|
12
|
+
rgb: (t, n, e, s) => ({
|
|
13
|
+
r: t,
|
|
14
|
+
g: n,
|
|
15
|
+
b: e,
|
|
16
|
+
a: s
|
|
17
|
+
}),
|
|
18
|
+
rgba: (t, n, e, s) => ({
|
|
19
|
+
r: t,
|
|
20
|
+
g: n,
|
|
21
|
+
b: e,
|
|
22
|
+
a: s
|
|
23
|
+
}),
|
|
24
|
+
hsl: (t, n, e, s) => F({
|
|
25
|
+
h: t,
|
|
26
|
+
s: n,
|
|
27
|
+
l: e,
|
|
28
|
+
a: s
|
|
29
|
+
}),
|
|
30
|
+
hsla: (t, n, e, s) => F({
|
|
31
|
+
h: t,
|
|
32
|
+
s: n,
|
|
33
|
+
l: e,
|
|
34
|
+
a: s
|
|
35
|
+
}),
|
|
36
|
+
hsv: (t, n, e, s) => u({
|
|
37
|
+
h: t,
|
|
38
|
+
s: n,
|
|
39
|
+
v: e,
|
|
40
|
+
a: s
|
|
41
|
+
}),
|
|
42
|
+
hsva: (t, n, e, s) => u({
|
|
43
|
+
h: t,
|
|
44
|
+
s: n,
|
|
45
|
+
v: e,
|
|
46
|
+
a: s
|
|
47
|
+
})
|
|
48
|
+
};
|
|
49
|
+
function h(t) {
|
|
50
|
+
if (typeof t == "number")
|
|
51
|
+
return (isNaN(t) || t < 0 || t > 16777215) && l(`'${t}' is not a valid hex color`), {
|
|
52
|
+
r: (t & 16711680) >> 16,
|
|
53
|
+
g: (t & 65280) >> 8,
|
|
54
|
+
b: t & 255
|
|
55
|
+
};
|
|
56
|
+
if (typeof t == "string" && b.test(t)) {
|
|
57
|
+
const {
|
|
58
|
+
groups: n
|
|
59
|
+
} = t.match(b), {
|
|
60
|
+
fn: e,
|
|
61
|
+
values: s
|
|
62
|
+
} = n, r = s.split(/,\s*|\s*\/\s*|\s+/).map((i, a) => i.endsWith("%") || // unitless slv are %
|
|
63
|
+
a > 0 && a < 3 && ["hsl", "hsla", "hsv", "hsva"].includes(e) ? parseFloat(i) / 100 : parseFloat(i));
|
|
64
|
+
return $[e](...r);
|
|
65
|
+
} else if (typeof t == "string") {
|
|
66
|
+
let n = t.startsWith("#") ? t.slice(1) : t;
|
|
67
|
+
[3, 4].includes(n.length) ? n = n.split("").map((s) => s + s).join("") : [6, 8].includes(n.length) || l(`'${t}' is not a valid hex(a) color`);
|
|
68
|
+
const e = parseInt(n, 16);
|
|
69
|
+
return (isNaN(e) || e < 0 || e > 4294967295) && l(`'${t}' is not a valid hex(a) color`), H(n);
|
|
70
|
+
} else if (typeof t == "object") {
|
|
71
|
+
if (p(t, ["r", "g", "b"]))
|
|
72
|
+
return t;
|
|
73
|
+
if (p(t, ["h", "s", "l"]))
|
|
74
|
+
return u(v(t));
|
|
75
|
+
if (p(t, ["h", "s", "v"]))
|
|
76
|
+
return u(t);
|
|
77
|
+
}
|
|
78
|
+
throw new TypeError(`Invalid color: ${t == null ? t : String(t) || t.constructor.name}
|
|
79
|
+
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`);
|
|
80
|
+
}
|
|
81
|
+
function u(t) {
|
|
82
|
+
const {
|
|
83
|
+
h: n,
|
|
84
|
+
s: e,
|
|
85
|
+
v: s,
|
|
86
|
+
a: r
|
|
87
|
+
} = t, i = (o) => {
|
|
88
|
+
const f = (o + n / 60) % 6;
|
|
89
|
+
return s - s * e * Math.max(Math.min(f, 4 - f, 1), 0);
|
|
90
|
+
}, a = [i(5), i(3), i(1)].map((o) => Math.round(o * 255));
|
|
91
|
+
return {
|
|
92
|
+
r: a[0],
|
|
93
|
+
g: a[1],
|
|
94
|
+
b: a[2],
|
|
95
|
+
a: r
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function F(t) {
|
|
99
|
+
return u(v(t));
|
|
100
|
+
}
|
|
101
|
+
function x(t) {
|
|
102
|
+
if (!t)
|
|
103
|
+
return {
|
|
104
|
+
h: 0,
|
|
105
|
+
s: 1,
|
|
106
|
+
v: 1,
|
|
107
|
+
a: 1
|
|
108
|
+
};
|
|
109
|
+
const n = t.r / 255, e = t.g / 255, s = t.b / 255, r = Math.max(n, e, s), i = Math.min(n, e, s);
|
|
110
|
+
let a = 0;
|
|
111
|
+
r !== i && (r === n ? a = 60 * (0 + (e - s) / (r - i)) : r === e ? a = 60 * (2 + (s - n) / (r - i)) : r === s && (a = 60 * (4 + (n - e) / (r - i)))), a < 0 && (a = a + 360);
|
|
112
|
+
const o = r === 0 ? 0 : (r - i) / r, f = [a, o, r];
|
|
113
|
+
return {
|
|
114
|
+
h: f[0],
|
|
115
|
+
s: f[1],
|
|
116
|
+
v: f[2],
|
|
117
|
+
a: t.a
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
function L(t) {
|
|
121
|
+
const {
|
|
122
|
+
h: n,
|
|
123
|
+
s: e,
|
|
124
|
+
v: s,
|
|
125
|
+
a: r
|
|
126
|
+
} = t, i = s - s * e / 2, a = i === 1 || i === 0 ? 0 : (s - i) / Math.min(i, 1 - i);
|
|
127
|
+
return {
|
|
128
|
+
h: n,
|
|
129
|
+
s: a,
|
|
130
|
+
l: i,
|
|
131
|
+
a: r
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function v(t) {
|
|
135
|
+
const {
|
|
136
|
+
h: n,
|
|
137
|
+
s: e,
|
|
138
|
+
l: s,
|
|
139
|
+
a: r
|
|
140
|
+
} = t, i = s + e * Math.min(s, 1 - s), a = i === 0 ? 0 : 2 - 2 * s / i;
|
|
141
|
+
return {
|
|
142
|
+
h: n,
|
|
143
|
+
s: a,
|
|
144
|
+
v: i,
|
|
145
|
+
a: r
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
function V(t) {
|
|
149
|
+
let {
|
|
150
|
+
r: n,
|
|
151
|
+
g: e,
|
|
152
|
+
b: s,
|
|
153
|
+
a: r
|
|
154
|
+
} = t;
|
|
155
|
+
return r === void 0 ? `rgb(${n}, ${e}, ${s})` : `rgba(${n}, ${e}, ${s}, ${r})`;
|
|
156
|
+
}
|
|
157
|
+
function N(t) {
|
|
158
|
+
return V(u(t));
|
|
159
|
+
}
|
|
160
|
+
function c(t) {
|
|
161
|
+
const n = Math.round(t).toString(16);
|
|
162
|
+
return ("00".substr(0, 2 - n.length) + n).toUpperCase();
|
|
163
|
+
}
|
|
164
|
+
function R(t) {
|
|
165
|
+
let {
|
|
166
|
+
r: n,
|
|
167
|
+
g: e,
|
|
168
|
+
b: s,
|
|
169
|
+
a: r
|
|
170
|
+
} = t;
|
|
171
|
+
return `#${[c(n), c(e), c(s), r !== void 0 ? c(Math.round(r * 255)) : ""].join("")}`;
|
|
172
|
+
}
|
|
173
|
+
function H(t) {
|
|
174
|
+
t = B(t);
|
|
175
|
+
let [n, e, s, r] = S(t, 2).map((i) => parseInt(i, 16));
|
|
176
|
+
return r = r === void 0 ? r : r / 255, {
|
|
177
|
+
r: n,
|
|
178
|
+
g: e,
|
|
179
|
+
b: s,
|
|
180
|
+
a: r
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
function W(t) {
|
|
184
|
+
const n = H(t);
|
|
185
|
+
return x(n);
|
|
186
|
+
}
|
|
187
|
+
function E(t) {
|
|
188
|
+
return R(u(t));
|
|
189
|
+
}
|
|
190
|
+
function B(t) {
|
|
191
|
+
return t.startsWith("#") && (t = t.slice(1)), t = t.replace(/([^0-9a-f])/gi, "F"), (t.length === 3 || t.length === 4) && (t = t.split("").map((n) => n + n).join("")), t.length !== 6 && (t = m(m(t, 6), 8, "F")), t;
|
|
192
|
+
}
|
|
193
|
+
function d(t) {
|
|
194
|
+
const n = h(t);
|
|
195
|
+
return M(n)[1];
|
|
196
|
+
}
|
|
197
|
+
function I(t, n) {
|
|
198
|
+
const e = d(t), s = d(n), r = Math.max(e, s), i = Math.min(e, s);
|
|
199
|
+
return (r + 0.05) / (i + 0.05);
|
|
200
|
+
}
|
|
201
|
+
function T(t) {
|
|
202
|
+
const n = Math.abs(g(h(0), h(t)));
|
|
203
|
+
return Math.abs(g(h(16777215), h(t))) > Math.min(n, 50) ? "#fff" : "#000";
|
|
204
|
+
}
|
|
205
|
+
export {
|
|
206
|
+
v as HSLtoHSV,
|
|
207
|
+
F as HSLtoRGB,
|
|
208
|
+
N as HSVtoCSS,
|
|
209
|
+
L as HSVtoHSL,
|
|
210
|
+
E as HSVtoHex,
|
|
211
|
+
u as HSVtoRGB,
|
|
212
|
+
W as HexToHSV,
|
|
213
|
+
H as HexToRGB,
|
|
214
|
+
V as RGBtoCSS,
|
|
215
|
+
x as RGBtoHSV,
|
|
216
|
+
R as RGBtoHex,
|
|
217
|
+
I as getContrast,
|
|
218
|
+
T as getForeground,
|
|
219
|
+
d as getLuma,
|
|
220
|
+
C as isCssColor,
|
|
221
|
+
w as isParsableColor,
|
|
222
|
+
h as parseColor,
|
|
223
|
+
B as parseHex
|
|
224
|
+
};
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import { warn as
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { warn as i } from "vue";
|
|
2
|
+
function s(r) {
|
|
3
|
+
i(`Vuetify: ${r}`);
|
|
4
|
+
}
|
|
5
|
+
function t(r) {
|
|
6
|
+
i(`Vuetify error: ${r}`);
|
|
7
|
+
}
|
|
8
|
+
function u(r, o) {
|
|
9
|
+
o = Array.isArray(o) ? o.slice(0, -1).map((f) => `'${f}'`).join(", ") + ` or '${o.at(-1)}'` : `'${o}'`, i(`[Vuetify UPGRADE] '${r}' is deprecated, use ${o} instead.`);
|
|
4
10
|
}
|
|
5
11
|
export {
|
|
6
|
-
t as
|
|
12
|
+
t as consoleError,
|
|
13
|
+
s as consoleWarn,
|
|
14
|
+
u as deprecate
|
|
7
15
|
};
|