@quidgest/ui 0.28.0 → 0.30.0
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/CHANGELOG.md +110 -8
- package/README.md +15 -14
- package/dist/json/api.json +2692 -1005
- package/dist/manifest/components.json +0 -1
- package/dist/ui.css +136 -97
- package/dist/ui.esm.js +1246 -1159
- package/dist/ui.min.css +1 -1
- package/dist/ui.scss +157 -50
- package/esm/components/QAccordion/QAccordion.d.ts +3 -3
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordion.vue.js +35 -30
- package/esm/components/QAccordion/QAccordionItem.d.ts +4 -1
- package/esm/components/QAccordion/QAccordionItem.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordionItem.vue.js +40 -6
- package/esm/components/QAccordion/index.d.ts +23 -11
- package/esm/components/QAccordion/index.d.ts.map +1 -1
- package/esm/components/QAccordion/types.d.ts +8 -0
- package/esm/components/QAccordion/types.d.ts.map +1 -1
- package/esm/components/QAlert/QAlert.d.ts +1 -1
- package/esm/components/QAlert/index.d.ts +3 -3
- package/esm/components/QAvatar/QAvatar.d.ts +1 -1
- package/esm/components/QAvatar/QAvatar.d.ts.map +1 -1
- package/esm/components/QAvatar/QAvatar.vue.js +19 -12
- package/esm/components/QAvatar/index.d.ts +3 -3
- package/esm/components/QAvatar/types.d.ts +2 -1
- package/esm/components/QAvatar/types.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +36 -37
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
- package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +23 -13
- package/esm/components/QBadgeIndicator/types.d.ts +13 -0
- package/esm/components/QBadgeIndicator/types.d.ts.map +1 -1
- package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts.map +1 -1
- package/esm/components/QBreadcrumbs/QBreadcrumbs.vue.js +31 -31
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +54 -48
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +18 -18
- package/esm/components/QCard/QCard.d.ts.map +1 -1
- package/esm/components/QCard/QCard.vue.js +48 -32
- package/esm/components/QCard/types.d.ts +9 -0
- package/esm/components/QCard/types.d.ts.map +1 -1
- package/esm/components/QCarousel/QCarousel.d.ts +2 -1
- package/esm/components/QCarousel/QCarousel.d.ts.map +1 -1
- package/esm/components/QCarousel/QCarousel.vue.js +120 -112
- package/esm/components/QCarousel/constants.d.ts +1 -0
- package/esm/components/QCarousel/constants.d.ts.map +1 -1
- package/esm/components/QCarousel/constants.js +2 -1
- package/esm/components/QCarousel/index.d.ts +9 -3
- package/esm/components/QCarousel/index.d.ts.map +1 -1
- package/esm/components/QCarousel/types.d.ts +9 -1
- package/esm/components/QCarousel/types.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.d.ts +0 -2
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +41 -36
- package/esm/components/QCheckbox/index.d.ts +3 -1
- package/esm/components/QCheckbox/index.d.ts.map +1 -1
- package/esm/components/QCheckbox/types.d.ts +8 -0
- package/esm/components/QCheckbox/types.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.d.ts +1 -0
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +55 -47
- package/esm/components/QCollapsible/index.d.ts +6 -0
- package/esm/components/QCollapsible/index.d.ts.map +1 -1
- package/esm/components/QCollapsible/types.d.ts +9 -0
- package/esm/components/QCollapsible/types.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.vue.js +5 -3
- package/esm/components/QColorPicker/index.d.ts +3 -0
- package/esm/components/QColorPicker/index.d.ts.map +1 -1
- package/esm/components/QColorPicker/types.d.ts +7 -0
- package/esm/components/QColorPicker/types.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +16 -0
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +264 -233
- package/esm/components/QCombobox/constants.d.ts +1 -0
- package/esm/components/QCombobox/constants.d.ts.map +1 -1
- package/esm/components/QCombobox/constants.js +1 -0
- package/esm/components/QCombobox/index.d.ts +21 -0
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QCombobox/types.d.ts +8 -0
- package/esm/components/QCombobox/types.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts +180 -0
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +636 -561
- package/esm/components/QDateTimePicker/index.d.ts +90 -0
- package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.d.ts +1 -1
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +6 -4
- package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -1
- package/esm/components/QDialog/index.d.ts +6 -6
- package/esm/components/QDialog/types.d.ts +6 -4
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +3 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +84 -27
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +17 -2
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +218 -173
- package/esm/components/QDropdownMenu/ids.d.ts +8 -0
- package/esm/components/QDropdownMenu/ids.d.ts.map +1 -0
- package/esm/components/QDropdownMenu/ids.js +6 -0
- package/esm/components/QDropdownMenu/index.d.ts +9 -3
- package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/types.d.ts +3 -1
- package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
- package/esm/components/QField/QField.d.ts +2 -0
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +68 -61
- package/esm/components/QField/ids.d.ts +15 -0
- package/esm/components/QField/ids.d.ts.map +1 -0
- package/esm/components/QField/ids.js +10 -0
- package/esm/components/QField/index.d.ts +2 -0
- package/esm/components/QField/index.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.d.ts +355 -0
- package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.vue.js +137 -104
- package/esm/components/QFileUpload/constants.d.ts +2 -0
- package/esm/components/QFileUpload/constants.d.ts.map +1 -1
- package/esm/components/QFileUpload/constants.js +3 -1
- package/esm/components/QFileUpload/index.d.ts +182 -0
- package/esm/components/QFileUpload/index.d.ts.map +1 -1
- package/esm/components/QFocusWrap/QFocusWrap.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.vue.js +2 -1
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.vue.js +1 -0
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QIcon/QSvgSymbol.d.ts.map +1 -1
- package/esm/components/QIcon/QSvgSymbol.vue.js +31 -31
- package/esm/components/QInputGroup/QInputGroup.d.ts +5 -0
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +74 -41
- package/esm/components/QInputGroup/index.d.ts +3 -0
- package/esm/components/QInputGroup/index.d.ts.map +1 -1
- package/esm/components/QInputGroup/types.d.ts +15 -1
- package/esm/components/QInputGroup/types.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.vue.js +21 -19
- package/esm/components/QLabel/ids.d.ts +9 -0
- package/esm/components/QLabel/ids.d.ts.map +1 -0
- package/esm/components/QLabel/ids.js +6 -0
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/QLineLoader.vue.js +15 -14
- package/esm/components/QList/QList.d.ts +9 -3
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +137 -116
- package/esm/components/QList/QListItem.d.ts +6 -2
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +61 -44
- package/esm/components/QList/context.d.ts +8 -0
- package/esm/components/QList/context.d.ts.map +1 -0
- package/esm/components/QList/context.js +4 -0
- package/esm/components/QList/index.d.ts +6 -1
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QList/types.d.ts +16 -0
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QMeter/QMeter.d.ts.map +1 -1
- package/esm/components/QMeter/QMeter.vue.js +38 -19
- package/esm/components/QMeter/index.d.ts +2 -10
- package/esm/components/QMeter/index.d.ts.map +1 -1
- package/esm/components/QMeter/types.d.ts +9 -1
- package/esm/components/QMeter/types.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.vue.js +42 -26
- package/esm/components/QObfuscation/index.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.d.ts +6 -1
- package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.vue.js +142 -126
- package/esm/components/QOverflow/index.d.ts +3 -3
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +193 -155
- package/esm/components/QOverlay/types.d.ts +9 -2
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.d.ts +5 -0
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.vue.js +75 -64
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +5 -2
- package/esm/components/QPasswordField/index.d.ts +8 -0
- package/esm/components/QPasswordField/index.d.ts.map +1 -1
- package/esm/components/QPasswordField/types.d.ts +14 -0
- package/esm/components/QPasswordField/types.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.d.ts +218 -21
- package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.vue.js +98 -102
- package/esm/components/QPhoneField/constants.d.ts +2 -1
- package/esm/components/QPhoneField/constants.d.ts.map +1 -1
- package/esm/components/QPhoneField/constants.js +1 -1
- package/esm/components/QPhoneField/index.d.ts +118 -17
- package/esm/components/QPhoneField/index.d.ts.map +1 -1
- package/esm/components/QPhoneField/types.d.ts +5 -2
- package/esm/components/QPhoneField/types.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.d.ts +1 -1
- package/esm/components/QPopover/index.d.ts +3 -3
- package/esm/components/QProgress/QProgress.d.ts.map +1 -1
- package/esm/components/QProgress/QProgress.vue.js +1 -1
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +63 -61
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +2 -2
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +2 -2
- package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +58 -46
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue.js +7 -7
- package/esm/components/QRemoveScrollBar/utils/gap.d.ts +0 -6
- package/esm/components/QRemoveScrollBar/utils/gap.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/utils/gap.js +12 -18
- package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts +11 -0
- package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/utils/stylesheet.js +5 -5
- package/esm/components/QSection/QSection.d.ts.map +1 -1
- package/esm/components/QSection/QSection.vue.js +3 -2
- package/esm/components/QSection/types.d.ts +3 -4
- package/esm/components/QSection/types.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +163 -0
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +422 -344
- package/esm/components/QSelect/constants.d.ts +2 -0
- package/esm/components/QSelect/constants.d.ts.map +1 -1
- package/esm/components/QSelect/constants.js +3 -1
- package/esm/components/QSelect/index.d.ts +92 -0
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSelect/types.d.ts +8 -0
- package/esm/components/QSelect/types.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.vue.js +1 -2
- package/esm/components/QSidebar/QSidebarAnchor.vue.js +1 -1
- package/esm/components/QSidebar/QSidebarItem.d.ts +1 -0
- package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.vue.js +4 -1
- package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarPanel.vue.js +93 -32
- package/esm/components/QSidebar/context.d.ts +3 -3
- package/esm/components/QSidebar/context.d.ts.map +1 -1
- package/esm/components/QSidebar/index.d.ts +3 -0
- package/esm/components/QSidebar/index.d.ts.map +1 -1
- package/esm/components/QSidebar/types.d.ts +20 -1
- package/esm/components/QSidebar/types.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +16 -15
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +11 -10
- package/esm/components/QSteps/QSteps.d.ts +7 -6
- package/esm/components/QSteps/QSteps.d.ts.map +1 -1
- package/esm/components/QSteps/QSteps.vue.js +175 -162
- package/esm/components/QSteps/QStepsNav.d.ts +7 -0
- package/esm/components/QSteps/QStepsNav.d.ts.map +1 -1
- package/esm/components/QSteps/QStepsNav.vue.js +29 -15
- package/esm/components/QSteps/constants.d.ts +4 -2
- package/esm/components/QSteps/constants.d.ts.map +1 -1
- package/esm/components/QSteps/constants.js +2 -0
- package/esm/components/QSteps/index.d.ts +2 -2
- package/esm/components/QSteps/types.d.ts +2 -1
- package/esm/components/QSteps/types.d.ts.map +1 -1
- package/esm/components/QSwitch/QSwitch.d.ts +2 -0
- package/esm/components/QSwitch/QSwitch.d.ts.map +1 -1
- package/esm/components/QSwitch/QSwitch.vue.js +12 -2
- package/esm/components/QSwitch/index.d.ts +4 -0
- package/esm/components/QSwitch/index.d.ts.map +1 -1
- package/esm/components/QSwitch/types.d.ts +8 -0
- package/esm/components/QSwitch/types.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.vue.js +3 -2
- package/esm/components/QTabs/QTabs.d.ts +4 -4
- package/esm/components/QTabs/QTabs.d.ts.map +1 -1
- package/esm/components/QTabs/QTabs.vue.js +86 -85
- package/esm/components/QTabs/context.d.ts +3 -3
- package/esm/components/QTabs/context.d.ts.map +1 -1
- package/esm/components/QTabs/index.d.ts +2 -2
- package/esm/components/QTextArea/QTextArea.d.ts +1 -1
- package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.vue.js +30 -25
- package/esm/components/QTextArea/index.d.ts +3 -3
- package/esm/components/QTextField/QTextField.d.ts +4 -0
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +5 -3
- package/esm/components/QTextField/index.d.ts +2 -0
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QToast/QToast.d.ts +1 -0
- package/esm/components/QToast/QToast.d.ts.map +1 -1
- package/esm/components/QToast/QToast.vue.js +92 -85
- package/esm/components/QToast/QToaster.d.ts.map +1 -1
- package/esm/components/QToast/index.d.ts +6 -0
- package/esm/components/QToast/index.d.ts.map +1 -1
- package/esm/components/QToast/types.d.ts +11 -3
- package/esm/components/QToast/types.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroup.d.ts +3 -3
- package/esm/components/QToggleGroup/QToggleGroup.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroup.vue.js +34 -31
- package/esm/components/QToggleGroup/index.d.ts +8 -8
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +19 -11
- package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
- package/esm/components/__internal__/QHelpPopover/QHelpPopover.d.ts.map +1 -1
- package/esm/composables/defaults.d.ts +10 -0
- package/esm/composables/defaults.d.ts.map +1 -1
- package/esm/composables/defaults.js +8 -5
- package/esm/composables/useDialog/_internal.js +8 -11
- package/esm/composables/useDialog/index.js +1 -2
- package/esm/composables/useDialog/types.d.ts.map +1 -1
- package/esm/composables/useDropZone/index.d.ts +1 -11
- package/esm/composables/useDropZone/index.d.ts.map +1 -1
- package/esm/composables/useDropZone/index.js +23 -26
- package/esm/composables/useGroup/index.d.ts.map +1 -1
- package/esm/composables/useGroup/index.js +15 -15
- package/esm/composables/useOverlayScope/index.d.ts +29 -0
- package/esm/composables/useOverlayScope/index.d.ts.map +1 -0
- package/esm/composables/useOverlayScope/index.js +23 -0
- package/esm/composables/useTextareaAutosize/index.d.ts +3 -1
- package/esm/composables/useTextareaAutosize/index.d.ts.map +1 -1
- package/esm/composables/useTextareaAutosize/index.js +6 -6
- package/esm/composables/useToast/_internal.js +10 -15
- package/esm/composables/useToast/index.js +1 -2
- package/esm/composables/useToast/types.d.ts.map +1 -1
- package/esm/framework.js +14 -12
- package/esm/index.d.ts +1 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/symbols/overlayScope.d.ts +4 -0
- package/esm/symbols/overlayScope.d.ts.map +1 -0
- package/esm/symbols/overlayScope.js +4 -0
- package/esm/types/component.d.ts +8 -0
- package/esm/types/component.d.ts.map +1 -1
- package/esm/types/index.d.ts +1 -1
- package/esm/types/index.d.ts.map +1 -1
- package/esm/utils/color/parse.d.ts.map +1 -1
- package/esm/utils/color/parse.js +3 -10
- package/esm/utils/date.d.ts +35 -13
- package/esm/utils/date.d.ts.map +1 -1
- package/esm/utils/date.js +313 -253
- package/esm/utils/focus.d.ts +10 -0
- package/esm/utils/focus.d.ts.map +1 -1
- package/esm/utils/focus.js +5 -2
- package/esm/utils/loader.d.ts +19 -0
- package/esm/utils/loader.d.ts.map +1 -0
- package/esm/utils/loader.js +6 -0
- package/esm/utils/mask.d.ts +1 -0
- package/esm/utils/mask.d.ts.map +1 -1
- package/esm/utils/mask.js +42 -100
- package/esm/utils/overlay.d.ts +13 -1
- package/esm/utils/overlay.d.ts.map +1 -1
- package/esm/utils/overlay.js +55 -41
- package/esm/utils/safeTriangle.d.ts.map +1 -1
- package/esm/utils/safeTriangle.js +2 -2
- package/esm/utils/setupPropsProxy.d.ts +3 -1
- package/esm/utils/setupPropsProxy.d.ts.map +1 -1
- package/esm/utils/setupPropsProxy.js +2 -2
- package/package.json +28 -24
- package/dist/ui.js +0 -1859
- package/dist/ui.min.js +0 -1859
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QHelpPopover.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QHelpPopover/QHelpPopover.vue"],"names":[],"mappings":"AA2BA;AAsFC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAW1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"QHelpPopover.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QHelpPopover/QHelpPopover.vue"],"names":[],"mappings":"AA2BA;AAsFC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAW1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAsLgnkB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;AAvBjxkB,wBASG"}
|
|
@@ -11,6 +11,16 @@ export declare function useDefaults(): ComputedRef<QComponentDefaults | undefine
|
|
|
11
11
|
* @param defaults - The default values to be provided or updated.
|
|
12
12
|
*/
|
|
13
13
|
export declare function provideDefaults(defaults: MaybeRefOrGetter<QDefaults>): void;
|
|
14
|
+
/**
|
|
15
|
+
* Passes a boolean prop down with {@link provideDefaults}: `true` when it is set, `undefined`
|
|
16
|
+
* otherwise. `toRef(props, 'disabled')` would pass `false` when the prop is not set, since Vue
|
|
17
|
+
* casts a missing boolean prop to `false`, and that `false` would override the children's own
|
|
18
|
+
* default and the one the app sets for them.
|
|
19
|
+
*
|
|
20
|
+
* @param flag - Reads the boolean prop.
|
|
21
|
+
* @returns The value to pass in the defaults.
|
|
22
|
+
*/
|
|
23
|
+
export declare function booleanDefault(flag: () => boolean | undefined): ComputedRef<true | undefined>;
|
|
14
24
|
/**
|
|
15
25
|
* Function to inject default values using the Vue.js `inject` function.
|
|
16
26
|
* It retrieves the default values from the specified symbol and ensures
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/composables/defaults.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAOxD,eAAO,MAAM,eAAe,eAAe,CAAA;AAE3C,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,kBAAkB,CAAC,CAAA;AAEnE,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,CAAA;AAEjE,wBAAgB,WAAW,IAAI,WAAW,CAAC,kBAAkB,GAAG,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/composables/defaults.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAOxD,eAAO,MAAM,eAAe,eAAe,CAAA;AAE3C,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,kBAAkB,CAAC,CAAA;AAEnE,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,CAAA;AAEjE,wBAAgB,WAAW,IAAI,WAAW,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAezE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,gBAAgB,CAAC,SAAS,CAAC,GAAG,IAAI,CAY3E;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC,IAAI,GAAG,SAAS,CAAC,CAE7F;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAAC,SAAS,CAAC,CAMvD"}
|
|
@@ -8,18 +8,21 @@ function l() {
|
|
|
8
8
|
if (!e) throw Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
9
9
|
let i = e.type.name ?? e.type.__name;
|
|
10
10
|
if (!i) throw Error("[Quidgest UI] Could not determine component name");
|
|
11
|
-
let a =
|
|
12
|
-
return n(() => t(
|
|
11
|
+
let a = f();
|
|
12
|
+
return n(() => t(a.value?.Global, a.value?.[i]));
|
|
13
13
|
}
|
|
14
14
|
function u(r) {
|
|
15
15
|
if (e(r)) return;
|
|
16
|
-
let i =
|
|
16
|
+
let i = f(), l = o(s(r));
|
|
17
17
|
a(c, n(() => e(l.value) ? i.value : t(i.value, l.value)));
|
|
18
18
|
}
|
|
19
|
-
function d() {
|
|
19
|
+
function d(e) {
|
|
20
|
+
return n(() => e() || void 0);
|
|
21
|
+
}
|
|
22
|
+
function f() {
|
|
20
23
|
let e = i(c, void 0);
|
|
21
24
|
if (!e) throw Error("[Quidgest UI] Could not find defaults instance");
|
|
22
25
|
return e;
|
|
23
26
|
}
|
|
24
27
|
//#endregion
|
|
25
|
-
export { c as DEFAULTS_SYMBOL, d as injectDefaults, u as provideDefaults, l as useDefaults };
|
|
28
|
+
export { c as DEFAULTS_SYMBOL, d as booleanDefault, f as injectDefaults, u as provideDefaults, l as useDefaults };
|
|
@@ -2,10 +2,8 @@ import { inject as e, ref as t } from "vue";
|
|
|
2
2
|
//#region src/composables/useDialog/_internal.ts
|
|
3
3
|
var n = Symbol.for("q-dialog");
|
|
4
4
|
function r(e, t) {
|
|
5
|
-
let n = e.dialogs.value[t];
|
|
6
|
-
|
|
7
|
-
let r = e.pendingByKey.get(n.entryKey);
|
|
8
|
-
r && !r.settled && (r.reject(/* @__PURE__ */ Error("Dialog removed before it was ready")), e.pendingByKey.delete(n.entryKey)), (n.handlers?.onLeave?.() ?? !0) && e.dialogs.value.splice(t, 1);
|
|
5
|
+
let n = e.dialogs.value[t], r = e.pendingByKey.get(n.entryKey);
|
|
6
|
+
r && (r.reject(/* @__PURE__ */ Error("Dialog removed before it was ready")), e.pendingByKey.delete(n.entryKey)), (n.handlers?.onLeave?.() ?? !0) && e.dialogs.value.splice(t, 1);
|
|
9
7
|
}
|
|
10
8
|
function i(e, t) {
|
|
11
9
|
return e.dialogs.value.some((e) => e.id === t || e.props.id === t);
|
|
@@ -14,7 +12,7 @@ function a(e, t) {
|
|
|
14
12
|
let n = e.dialogs.value.findIndex((e) => e.props.id === t && e.id === void 0);
|
|
15
13
|
if (n === -1) return;
|
|
16
14
|
let r = e.dialogs.value[n], i = e.pendingByKey.get(r.entryKey);
|
|
17
|
-
i &&
|
|
15
|
+
i && (i.reject(/* @__PURE__ */ Error("Dialog canceled")), e.pendingByKey.delete(r.entryKey)), e.dialogs.value.splice(n, 1);
|
|
18
16
|
}
|
|
19
17
|
function o() {
|
|
20
18
|
let e = t([]), n = /* @__PURE__ */ new Map(), r = 0, i = 0;
|
|
@@ -23,11 +21,11 @@ function o() {
|
|
|
23
21
|
if (!i) return;
|
|
24
22
|
i.id = r;
|
|
25
23
|
let a = n.get(t);
|
|
26
|
-
|
|
24
|
+
a && (a.resolve(r), n.delete(t), i.handlers?.onEnter?.());
|
|
27
25
|
}
|
|
28
26
|
function o(t, n) {
|
|
29
27
|
let r = e.value.find((e) => e.entryKey === t);
|
|
30
|
-
|
|
28
|
+
r && (r.id = n);
|
|
31
29
|
}
|
|
32
30
|
function s() {
|
|
33
31
|
return `dialog-${++r}`;
|
|
@@ -40,10 +38,9 @@ function o() {
|
|
|
40
38
|
i++;
|
|
41
39
|
}
|
|
42
40
|
function u() {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
41
|
+
i--;
|
|
42
|
+
for (let [, e] of n) e.reject(/* @__PURE__ */ Error("Dialog provider unmounted before the dialog was ready"));
|
|
43
|
+
n.clear(), e.value = [];
|
|
47
44
|
}
|
|
48
45
|
return {
|
|
49
46
|
dialogs: e,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useDialog/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAO,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useDialog/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAO,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AA8EnG;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,EAAE,YAAY,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAA;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAA;CAC1B,CAAA;AAeD;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;;;OAIG;IACH,OAAO,EAAE,WAAW,CAAC,WAAW,EAAE,CAAC,CAAA;IAEnC;;;;;OAKG;IACH,SAAS,EAAE,CACV,KAAK,EAAE,YAAY,EACnB,OAAO,CAAC,EAAE,cAAc,EACxB,QAAQ,CAAC,EAAE,eAAe,KACtB,OAAO,CAAC,MAAM,CAAC,CAAA;IAEpB;;;OAGG;IACH,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAElC;;;OAGG;IACH,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC,CAAA"}
|
|
@@ -2,30 +2,20 @@ import { MaybeRef, Ref } from 'vue';
|
|
|
2
2
|
interface DropZoneOptions {
|
|
3
3
|
/** Callback fired when valid files are dropped */
|
|
4
4
|
onDrop?: (files: File[]) => void;
|
|
5
|
-
/** Callback fired when files are dragged over the drop zone */
|
|
6
|
-
onDragOver?: (event: DragEvent) => void;
|
|
7
|
-
/** Callback fired when files are dragged out of the drop zone */
|
|
8
|
-
onDragLeave?: (event: DragEvent) => void;
|
|
9
5
|
/** Array of accepted MIME types or file patterns (e.g., 'image/*', '.pdf') */
|
|
10
6
|
accept?: MaybeRef<string[]>;
|
|
11
7
|
/** Whether to allow multiple files to be dropped */
|
|
12
8
|
multiple?: MaybeRef<boolean>;
|
|
13
|
-
/** Maximum allowed file size in bytes */
|
|
14
|
-
maxSize?: number;
|
|
15
9
|
/** Whether the drop zone is enabled */
|
|
16
10
|
enabled?: MaybeRef<boolean>;
|
|
17
11
|
}
|
|
18
12
|
interface UseDropZoneReturn {
|
|
19
13
|
/** Whether files are currently being dragged over the drop zone */
|
|
20
14
|
isOverDropZone: Ref<boolean>;
|
|
21
|
-
/** Whether the currently dragged files
|
|
15
|
+
/** Whether the zone would take the currently dragged files: their count and types fit */
|
|
22
16
|
isValid: Ref<boolean>;
|
|
23
17
|
/** Whether the drop zone is currently enabled */
|
|
24
18
|
isEnabled: Ref<boolean>;
|
|
25
|
-
/** Function to enable the drop zone */
|
|
26
|
-
enable: () => void;
|
|
27
|
-
/** Function to disable the drop zone */
|
|
28
|
-
disable: () => void;
|
|
29
19
|
}
|
|
30
20
|
/**
|
|
31
21
|
* Vue composable for handling file drag and drop with validation
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useDropZone/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAKxC,UAAU,eAAe;IACxB,kDAAkD;IAClD,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAA;IAChC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useDropZone/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAKxC,UAAU,eAAe;IACxB,kDAAkD;IAClD,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAA;IAChC,8EAA8E;IAC9E,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAA;IAC3B,oDAAoD;IACpD,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAC5B,uCAAuC;IACvC,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;CAC3B;AAED,UAAU,iBAAiB;IAC1B,mEAAmE;IACnE,cAAc,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAC5B,yFAAyF;IACzF,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACrB,iDAAiD;IACjD,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAC1B,UAAU,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EACnC,OAAO,GAAE,eAAoB,GAC3B,iBAAiB,CAwInB"}
|
|
@@ -1,43 +1,40 @@
|
|
|
1
1
|
import { isRef as e, onMounted as t, onUnmounted as n, ref as r, unref as i, watch as a } from "vue";
|
|
2
2
|
//#region src/composables/useDropZone/index.ts
|
|
3
3
|
function o(o, s = {}) {
|
|
4
|
-
let { onDrop: c,
|
|
5
|
-
let t = i(
|
|
4
|
+
let { onDrop: c, accept: l = [], multiple: u, enabled: d = !0 } = s, f = 0, p = r(!1), m = r(!1), h = r(i(d)), g = (e) => {
|
|
5
|
+
let t = i(l);
|
|
6
6
|
return t.length === 0 || t.some((t) => e.match(t));
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
}, _ = (e) => g(e.type), v = () => {
|
|
8
|
+
f = 0, p.value = !1, m.value = !1;
|
|
9
|
+
}, y = (e) => {
|
|
10
|
+
let t = Array.from(e.dataTransfer?.items || []).filter((e) => e.kind === "file");
|
|
11
|
+
return !i(u) && t.length > 1 ? !1 : t.some((e) => g(e.type));
|
|
12
|
+
}, b = (e) => {
|
|
13
|
+
if (e.preventDefault(), !h.value) return;
|
|
14
|
+
v();
|
|
12
15
|
let t = Array.from(e.dataTransfer?.files || []);
|
|
13
|
-
if (!i(
|
|
14
|
-
let n = t.filter(
|
|
16
|
+
if (!i(u) && t.length > 1) return;
|
|
17
|
+
let n = t.filter(_);
|
|
15
18
|
n.length && c && c(n);
|
|
19
|
+
}, x = (e) => {
|
|
20
|
+
e.preventDefault(), h.value && (m.value = y(e), f++, f === 1 && (p.value = !0));
|
|
21
|
+
}, S = (e) => {
|
|
22
|
+
h.value && (e.preventDefault(), f--, f === 0 && (p.value = !1, m.value = !1));
|
|
16
23
|
}, C = (e) => {
|
|
17
|
-
|
|
18
|
-
}, w = (e) => {
|
|
19
|
-
v.value && (e.preventDefault(), h--, h === 0 && (g.value = !1, _.value = !1, u?.(e)));
|
|
20
|
-
}, T = (e) => {
|
|
21
|
-
v.value && e.preventDefault();
|
|
24
|
+
e.preventDefault(), (!h.value || !m.value) && e.dataTransfer && (e.dataTransfer.dropEffect = "none");
|
|
22
25
|
};
|
|
23
26
|
return s.enabled && e(s.enabled) && a(s.enabled, (e) => {
|
|
24
|
-
|
|
27
|
+
h.value = e, e || v();
|
|
25
28
|
}), t(() => {
|
|
26
29
|
let e = o.value;
|
|
27
|
-
e && (e.addEventListener("drop",
|
|
30
|
+
e && (e.addEventListener("drop", b), e.addEventListener("dragenter", x), e.addEventListener("dragleave", S), e.addEventListener("dragover", C));
|
|
28
31
|
}), n(() => {
|
|
29
32
|
let e = o.value;
|
|
30
|
-
e && (e.removeEventListener("drop",
|
|
33
|
+
e && (e.removeEventListener("drop", b), e.removeEventListener("dragenter", x), e.removeEventListener("dragleave", S), e.removeEventListener("dragover", C));
|
|
31
34
|
}), {
|
|
32
|
-
isOverDropZone:
|
|
33
|
-
isValid:
|
|
34
|
-
isEnabled:
|
|
35
|
-
enable: () => {
|
|
36
|
-
v.value = !0;
|
|
37
|
-
},
|
|
38
|
-
disable: () => {
|
|
39
|
-
v.value = !1, x();
|
|
40
|
-
}
|
|
35
|
+
isOverDropZone: p,
|
|
36
|
+
isValid: m,
|
|
37
|
+
isEnabled: h
|
|
41
38
|
};
|
|
42
39
|
}
|
|
43
40
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useGroup/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAKnE,qDAAqD;AACrD,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAyB,CAAA;AAE/E,KAAK,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,SAAS,CAAA;AAEpC;;;GAGG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC;IAC7B;;;;OAIG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;IAE5B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAE5B;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,MAAM,CAAC,CAAC;IACxB;;;;OAIG;IACH,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;IAEtB;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAE9B;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAA;IAElB;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useGroup/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAKnE,qDAAqD;AACrD,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAyB,CAAA;AAE/E,KAAK,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,SAAS,CAAA;AAEpC;;;GAGG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC;IAC7B;;;;OAIG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;IAE5B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAE5B;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,MAAM,CAAC,CAAC;IACxB;;;;OAIG;IACH,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;IAEtB;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAE9B;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAA;IAElB;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CA2B9D;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,aAAa,GAAG,SAAS,CA4DhF"}
|
|
@@ -3,14 +3,14 @@ import { computed as e, inject as t, isRef as n, provide as r, ref as i, unref a
|
|
|
3
3
|
var s = Symbol.for("q-group");
|
|
4
4
|
function c(t) {
|
|
5
5
|
let c = {
|
|
6
|
-
active: i(u(t)),
|
|
6
|
+
active: i(u(a(t.active), a(t.multiple))),
|
|
7
7
|
multiple: e(() => a(t.multiple) || !1),
|
|
8
8
|
required: e(() => a(t.required) || !1)
|
|
9
9
|
};
|
|
10
10
|
return n(t.active) && o(t.active, (e) => {
|
|
11
11
|
c.active.value = e;
|
|
12
12
|
}), o(() => c.multiple.value, (e) => {
|
|
13
|
-
|
|
13
|
+
c.active.value = u(c.active.value, e);
|
|
14
14
|
}), r(s, c), c;
|
|
15
15
|
}
|
|
16
16
|
function l(n) {
|
|
@@ -21,27 +21,27 @@ function l(n) {
|
|
|
21
21
|
return Array.isArray(r.active.value) ? r.active.value?.includes(e) : r.active.value === e;
|
|
22
22
|
});
|
|
23
23
|
return o(() => a(n), (e, t) => {
|
|
24
|
-
if (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
r.active.value === t && (r.active.value = e);
|
|
24
|
+
if (Array.isArray(r.active.value)) {
|
|
25
|
+
let n = r.active.value.indexOf(t);
|
|
26
|
+
if (n === -1) return;
|
|
27
|
+
let i = [...r.active.value];
|
|
28
|
+
i[n] = e, r.active.value = i;
|
|
29
|
+
return;
|
|
33
30
|
}
|
|
31
|
+
r.active.value === t && (r.active.value = e);
|
|
34
32
|
}), {
|
|
35
33
|
isActive: i,
|
|
36
34
|
toggle: () => {
|
|
37
35
|
let e = a(n);
|
|
38
|
-
|
|
36
|
+
if (r.multiple.value) {
|
|
37
|
+
let t = u(r.active.value, !0);
|
|
38
|
+
t.includes(e) ? (!r.required?.value || t.length > 1) && (r.active.value = t.filter((t) => t !== e)) : r.active.value = [...t, e];
|
|
39
|
+
} else r.active.value === e ? r.required?.value || (r.active.value = void 0) : r.active.value = e;
|
|
39
40
|
}
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
|
-
function u(e) {
|
|
43
|
-
|
|
44
|
-
return t ? Array.isArray(n) ? n : n === void 0 ? [] : [n] : Array.isArray(n) ? n.length === 1 ? n[0] : void 0 : n;
|
|
43
|
+
function u(e, t) {
|
|
44
|
+
return t ? Array.isArray(e) ? e : e == null ? [] : [e] : Array.isArray(e) ? e.length === 1 ? e[0] : void 0 : e;
|
|
45
45
|
}
|
|
46
46
|
//#endregion
|
|
47
47
|
export { s as GroupSymbol, c as useGroup, l as useGroupItem };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export type QOverlayScope = {
|
|
3
|
+
/**
|
|
4
|
+
* Adds the element of an open overlay to the scope, and to every scope around it.
|
|
5
|
+
*
|
|
6
|
+
* @param element - The overlay's root element.
|
|
7
|
+
* @returns A function that removes the element again.
|
|
8
|
+
*/
|
|
9
|
+
register(element: HTMLElement): () => void;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Makes the overlays opened by the components inside this one part of it. Overlays are
|
|
13
|
+
* teleported out of the component's element, so `contains` on that element misses them, and
|
|
14
|
+
* their events never reach it. Only overlays rendered inside the component register, so a
|
|
15
|
+
* dialog or menu the app opens elsewhere stays outside.
|
|
16
|
+
*
|
|
17
|
+
* @param onFocusOut - Called for each `focusout` inside an open overlay of the scope.
|
|
18
|
+
* @returns `contains`, which tells whether a node is inside an open overlay of the scope.
|
|
19
|
+
*/
|
|
20
|
+
export declare function provideOverlayScope(onFocusOut: (event: FocusEvent) => void): {
|
|
21
|
+
contains: (node: Node) => boolean;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Registers an overlay with the nearest overlay scope while its element exists.
|
|
25
|
+
*
|
|
26
|
+
* @param element - The overlay's root element, `null` while the overlay is closed.
|
|
27
|
+
*/
|
|
28
|
+
export declare function useOverlayScopeItem(element: Readonly<Ref<HTMLElement | null>>): void;
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useOverlayScope/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAK9B,MAAM,MAAM,aAAa,GAAG;IAC3B;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,IAAI,CAAA;CAC1C,CAAA;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;qBAoBxD,IAAI;EAEtB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC,QAiB7E"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OverlayScopeKey as e } from "../../symbols/overlayScope.js";
|
|
2
|
+
import { inject as t, onBeforeUnmount as n, provide as r, watch as i } from "vue";
|
|
3
|
+
//#region src/composables/useOverlayScope/index.ts
|
|
4
|
+
function a(n) {
|
|
5
|
+
let i = t(e, null), a = /* @__PURE__ */ new Set();
|
|
6
|
+
return r(e, { register(e) {
|
|
7
|
+
a.add(e), e.addEventListener("focusout", n);
|
|
8
|
+
let t = i?.register(e);
|
|
9
|
+
return () => {
|
|
10
|
+
a.delete(e), e.removeEventListener("focusout", n), t?.();
|
|
11
|
+
};
|
|
12
|
+
} }), { contains: (e) => [...a].some((t) => t.contains(e)) };
|
|
13
|
+
}
|
|
14
|
+
function o(r) {
|
|
15
|
+
let a = t(e, null);
|
|
16
|
+
if (!a) return;
|
|
17
|
+
let o;
|
|
18
|
+
i(r, (e) => {
|
|
19
|
+
o?.(), o = e ? a.register(e) : void 0;
|
|
20
|
+
}, { immediate: !0 }), n(() => o?.());
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { a as provideOverlayScope, o as useOverlayScopeItem };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue';
|
|
1
|
+
import { ComputedRef, WatchSource } from 'vue';
|
|
2
2
|
interface UseTextareaAutosizeOptions {
|
|
3
3
|
element: ComputedRef<HTMLTextAreaElement | undefined>;
|
|
4
|
+
/** The text in the textarea. The textarea resizes after it changes, typed or set from code. */
|
|
5
|
+
value?: WatchSource<string | undefined>;
|
|
4
6
|
styleProp?: 'height' | 'minHeight';
|
|
5
7
|
}
|
|
6
8
|
export declare function useTextareaAutosize(options: UseTextareaAutosizeOptions): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useTextareaAutosize/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,WAAW,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useTextareaAutosize/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,KAAK,CAAA;AAE/D,UAAU,0BAA0B;IACnC,OAAO,EAAE,WAAW,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAA;IACrD,+FAA+F;IAC/F,KAAK,CAAC,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACvC,SAAS,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAClC;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,0BAA0B;;;EA+BtE"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { watch as e } from "vue";
|
|
2
2
|
//#region src/composables/useTextareaAutosize/index.ts
|
|
3
3
|
function t(t) {
|
|
4
|
-
let { element: n,
|
|
4
|
+
let { element: n, value: r, styleProp: i = "height" } = t, a = () => {
|
|
5
5
|
let e = n.value;
|
|
6
6
|
if (!e) return;
|
|
7
|
-
e.style[
|
|
7
|
+
e.style[i] = "auto";
|
|
8
8
|
let t = e.scrollHeight;
|
|
9
|
-
e.style[
|
|
10
|
-
},
|
|
9
|
+
e.style[i] = `${t}px`;
|
|
10
|
+
}, o = e(n, a), s = r ? e(r, a, { flush: "post" }) : () => {};
|
|
11
11
|
return {
|
|
12
|
-
triggerResize:
|
|
12
|
+
triggerResize: a,
|
|
13
13
|
stop: () => {
|
|
14
|
-
|
|
14
|
+
o(), s();
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
}
|
|
@@ -2,20 +2,15 @@ import { inject as e, ref as t } from "vue";
|
|
|
2
2
|
//#region src/composables/useToast/_internal.ts
|
|
3
3
|
var n = Symbol.for("q-toast");
|
|
4
4
|
function r(e, t, n) {
|
|
5
|
-
|
|
6
|
-
if (!r || r.settled) {
|
|
7
|
-
e.delete(t);
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
r.reject(n), e.delete(t);
|
|
5
|
+
e.get(t)?.reject(n), e.delete(t);
|
|
11
6
|
}
|
|
12
7
|
function i(e, t) {
|
|
13
|
-
for (let [, n] of e) n.
|
|
8
|
+
for (let [, n] of e) n.reject(t);
|
|
14
9
|
e.clear();
|
|
15
10
|
}
|
|
16
11
|
function a(e, t) {
|
|
17
12
|
let n = e.toasts.value[t];
|
|
18
|
-
|
|
13
|
+
r(e.pendingByKey, n.entryKey, /* @__PURE__ */ Error("Toast removed before it was ready")), e.toasts.value.splice(t, 1), e.flushQueue();
|
|
19
14
|
}
|
|
20
15
|
function o(e, t) {
|
|
21
16
|
let n = e.toasts.value.findIndex((e) => e.id === t);
|
|
@@ -87,21 +82,21 @@ function u() {
|
|
|
87
82
|
if (!i) return;
|
|
88
83
|
i.id = n;
|
|
89
84
|
let a = r.get(t);
|
|
90
|
-
|
|
85
|
+
a && (a.resolve(n), r.delete(t));
|
|
91
86
|
}
|
|
92
87
|
function p(t, n) {
|
|
93
88
|
let r = e.value.find((e) => e.entryKey === t);
|
|
94
|
-
|
|
89
|
+
r && (r.id = n);
|
|
95
90
|
}
|
|
96
91
|
function m(t, r) {
|
|
97
92
|
let i = e.value.find((e) => e.entryKey === t) ?? n.value.find((e) => e.entryKey === t);
|
|
98
93
|
i && (i.remainingTimeout = r);
|
|
99
94
|
}
|
|
100
95
|
function h(t) {
|
|
101
|
-
let
|
|
102
|
-
if (!
|
|
103
|
-
let
|
|
104
|
-
return delete
|
|
96
|
+
let n = e.value.find((e) => e.entryKey === t);
|
|
97
|
+
if (!n || n.remainingTimeout === void 0) return;
|
|
98
|
+
let r = n.remainingTimeout;
|
|
99
|
+
return delete n.remainingTimeout, r;
|
|
105
100
|
}
|
|
106
101
|
function g(t) {
|
|
107
102
|
let n = e.value.find((e) => e.entryKey === t);
|
|
@@ -118,7 +113,7 @@ function u() {
|
|
|
118
113
|
s++;
|
|
119
114
|
}
|
|
120
115
|
function b() {
|
|
121
|
-
s
|
|
116
|
+
s--, i(r, /* @__PURE__ */ Error("QToaster unmounted before the toast was ready")), e.value = [], n.value = [];
|
|
122
117
|
}
|
|
123
118
|
return {
|
|
124
119
|
toasts: e,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useToast/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAO,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useToast/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAO,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAyI1D;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG;IACxB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,EAAE,WAAW,CAAA;CAClB,CAAA;AA0BD;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B;;;;OAIG;IACH,MAAM,EAAE,WAAW,CAAC,UAAU,EAAE,CAAC,CAAA;IAEjC;;;;;;;OAOG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;IAEjD;;;;;OAKG;IACH,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAEjC;;;;;;OAMG;IACH,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CACjC,CAAA"}
|
package/esm/framework.js
CHANGED
|
@@ -20,18 +20,20 @@ function m(e = {}) {
|
|
|
20
20
|
}
|
|
21
21
|
function h(n, o) {
|
|
22
22
|
let s = [], c;
|
|
23
|
-
if (o)
|
|
24
|
-
let
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
if (o) {
|
|
24
|
+
for (let n of o.themes) {
|
|
25
|
+
let r = {
|
|
26
|
+
...n.mode === "light" ? t : e,
|
|
27
|
+
...n.colors
|
|
28
|
+
};
|
|
29
|
+
s.push({
|
|
30
|
+
name: n.name,
|
|
31
|
+
mode: n.mode,
|
|
32
|
+
scheme: r
|
|
33
|
+
}), n.name === o.defaultTheme && (c = n.name);
|
|
34
|
+
}
|
|
35
|
+
!c && s.length && (c = s[0].name, console.warn(`[Quidgest UI] createFramework: the default theme "${o.defaultTheme}" is not one of the themes, so "${c}" is used`));
|
|
36
|
+
} else {
|
|
35
37
|
let n = [{
|
|
36
38
|
name: "light",
|
|
37
39
|
mode: "light",
|
package/esm/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as utils from './utils';
|
|
|
5
5
|
export declare const createFramework: (options?: QFrameworkConfig) => import('vue').Plugin;
|
|
6
6
|
export { templates, components, utils };
|
|
7
7
|
export * from './composables';
|
|
8
|
-
export type { QBaseComponentProps, QComponentSize, QHelpDisplay, QLive, QSelectionLabelPlacement } from './types';
|
|
8
|
+
export type { QBaseComponentProps, QComponentSize, QHelpDisplay, QLive, QOptionOverflow, QSelectionLabelPlacement } from './types';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
10
10
|
declare module '@vue/runtime-core' {
|
|
11
11
|
export interface GlobalComponents {
|
|
@@ -76,7 +76,6 @@ declare module '@vue/runtime-core' {
|
|
|
76
76
|
QTab: typeof import('@quidgest/ui/components')['QTab']
|
|
77
77
|
QTextArea: typeof import('@quidgest/ui/components')['QTextArea']
|
|
78
78
|
QTextField: typeof import('@quidgest/ui/components')['QTextField']
|
|
79
|
-
DEFAULT_TEXTS: typeof import('@quidgest/ui/components')['DEFAULT_TEXTS']
|
|
80
79
|
QThemeProvider: typeof import('@quidgest/ui/components')['QThemeProvider']
|
|
81
80
|
QToast: typeof import('@quidgest/ui/components')['QToast']
|
|
82
81
|
QToaster: typeof import('@quidgest/ui/components')['QToaster']
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAIhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEnD,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAIhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEnD,eAAO,MAAM,eAAe,GAAI,UAAS,gBAAqB,yBAE7D,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,CAAA;AACvC,cAAc,eAAe,CAAA;AAC7B,YAAY,EACX,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,KAAK,EACL,eAAe,EACf,wBAAwB,EACxB,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlayScope.d.ts","sourceRoot":"","sources":["../../src/symbols/overlayScope.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAEnE,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,aAAa,CAA8B,CAAA"}
|
package/esm/types/component.d.ts
CHANGED
|
@@ -49,4 +49,12 @@ export type QHelpDisplay = 'tooltip' | 'popover' | 'subtext';
|
|
|
49
49
|
* Shared by `QAlert` and `QToast`.
|
|
50
50
|
*/
|
|
51
51
|
export type QLive = 'assertive' | 'polite' | 'off';
|
|
52
|
+
/**
|
|
53
|
+
* How long option labels overflow in a dropdown relative to the field width.
|
|
54
|
+
* - `wrap`: menu matches the field; labels wrap onto multiple lines.
|
|
55
|
+
* - `truncate`: menu matches the field; labels ellipsize. A cut-off label shows its full text in a native `title` on hover (accessible name unchanged).
|
|
56
|
+
* - `fit-content`: menu grows to the longest option, even when wider than the field.
|
|
57
|
+
* Shared by `QSelect` and `QCombobox`.
|
|
58
|
+
*/
|
|
59
|
+
export type QOptionOverflow = 'truncate' | 'wrap' | 'fit-content';
|
|
52
60
|
//# sourceMappingURL=component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/types/component.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG;IACjC;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAEzD;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,GAAG,KAAK,CAAA;AAEtD;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;AAE5D;;;;;;GAMG;AACH,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG,QAAQ,GAAG,KAAK,CAAA"}
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/types/component.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG;IACjC;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAEzD;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,GAAG,KAAK,CAAA;AAEtD;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;AAE5D;;;;;;GAMG;AACH,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG,QAAQ,GAAG,KAAK,CAAA;AAElD;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,MAAM,GAAG,aAAa,CAAA"}
|
package/esm/types/index.d.ts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* Add new exports here **only if** the type is meant to be
|
|
15
15
|
* consumed by applications or other packages.
|
|
16
16
|
*/
|
|
17
|
-
export type { QBaseComponentProps, QComponentSize, QHelpDisplay, QLive, QSelectionLabelPlacement } from './component';
|
|
17
|
+
export type { QBaseComponentProps, QComponentSize, QHelpDisplay, QLive, QOptionOverflow, QSelectionLabelPlacement } from './component';
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,YAAY,EACX,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,KAAK,EACL,wBAAwB,EACxB,MAAM,aAAa,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,YAAY,EACX,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,KAAK,EACL,eAAe,EACf,wBAAwB,EACxB,MAAM,aAAa,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../src/utils/color/parse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AASlC;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,YAAY,EAAE,MAAM,EAAE,eAAe,GAAE,OAAe,GAAG,OAAO,CAQ1F;
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../src/utils/color/parse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AASlC;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,YAAY,EAAE,MAAM,EAAE,eAAe,GAAE,OAAe,GAAG,OAAO,CAQ1F;AAiMD;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,CAExD;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,CAS5D;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAQ7C"}
|
package/esm/utils/color/parse.js
CHANGED
|
@@ -21,20 +21,13 @@ function s(e) {
|
|
|
21
21
|
}
|
|
22
22
|
function c(e) {
|
|
23
23
|
let t = e.trim(), n = t.match(/^(-?\d*\.?\d+)%$/);
|
|
24
|
-
if (n)
|
|
25
|
-
let e = Number.parseFloat(n[1]);
|
|
26
|
-
return Number.isNaN(e) ? void 0 : a(e / 100 * 255);
|
|
27
|
-
}
|
|
24
|
+
if (n) return a(Number.parseFloat(n[1]) / 100 * 255);
|
|
28
25
|
let r = t.match(/^(-?\d*\.?\d+)$/);
|
|
29
|
-
if (
|
|
30
|
-
let i = Number.parseFloat(r[1]);
|
|
31
|
-
if (!Number.isNaN(i)) return a(i);
|
|
26
|
+
if (r) return a(Number.parseFloat(r[1]));
|
|
32
27
|
}
|
|
33
28
|
function l(e) {
|
|
34
29
|
let t = e.trim().toLowerCase().match(/^(-?\d*\.?\d+)(deg)?$/);
|
|
35
|
-
if (
|
|
36
|
-
let n = Number.parseFloat(t[1]);
|
|
37
|
-
if (!Number.isNaN(n)) return (n % 360 + 360) % 360;
|
|
30
|
+
if (t) return (Number.parseFloat(t[1]) % 360 + 360) % 360;
|
|
38
31
|
}
|
|
39
32
|
function u(e) {
|
|
40
33
|
let t = e.trim();
|