@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,26 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { QIcon as t } from "../QIcon/index.js";
|
|
3
|
+
import { getNextTabbable as n } from "../../utils/focus.js";
|
|
4
4
|
import { QOverlay as r } from "../QOverlay/index.js";
|
|
5
5
|
import { QPopover as i } from "../QPopover/index.js";
|
|
6
6
|
import { QSpinnerLoader as a } from "../QSpinnerLoader/index.js";
|
|
7
|
-
import { mergeDescribedBy as
|
|
8
|
-
import { QButton as
|
|
9
|
-
import { QChevron as
|
|
10
|
-
import { QBadge as
|
|
11
|
-
import { QList as
|
|
12
|
-
import { QField as
|
|
13
|
-
import { QClearButton as
|
|
14
|
-
import { DEFAULT_ICONS as
|
|
15
|
-
import { Fragment as
|
|
7
|
+
import { mergeDescribedBy as o } from "../__internal__/QHelpPopover/resolveHelp.js";
|
|
8
|
+
import { QButton as ee } from "../QButton/index.js";
|
|
9
|
+
import { QChevron as s } from "../__internal__/QChevron/index.js";
|
|
10
|
+
import { QBadge as c } from "../QBadge/index.js";
|
|
11
|
+
import { QList as te } from "../QList/index.js";
|
|
12
|
+
import { QField as ne } from "../QField/index.js";
|
|
13
|
+
import { QClearButton as re } from "../__internal__/QClearButton/index.js";
|
|
14
|
+
import { DEFAULT_ICONS as l, DEFAULT_TEXTS as ie } from "./constants.js";
|
|
15
|
+
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as ae, createTextVNode as g, createVNode as _, defineComponent as oe, mergeModels as v, mergeProps as y, nextTick as b, normalizeClass as se, normalizeProps as ce, onBeforeUnmount as le, onMounted as ue, openBlock as x, ref as de, renderList as fe, renderSlot as S, toDisplayString as C, toHandlers as pe, toRef as me, unref as w, useAttrs as he, useModel as ge, useTemplateRef as T, watch as E, withCtx as D, withModifiers as _e } from "vue";
|
|
16
16
|
//#region src/components/QSelect/QSelect.vue?vue&type=script&setup=true&lang.ts
|
|
17
|
-
var
|
|
17
|
+
var ve = {
|
|
18
18
|
key: 0,
|
|
19
19
|
ref: "valueContainer",
|
|
20
20
|
class: "q-select__value-container"
|
|
21
|
-
},
|
|
21
|
+
}, ye = {
|
|
22
22
|
key: 1,
|
|
23
23
|
class: "q-select__multi-value"
|
|
24
|
+
}, be = {
|
|
25
|
+
key: 1,
|
|
26
|
+
ref: "separatorMeasure",
|
|
27
|
+
class: "q-select__separator-measure q-select__multi-value--hidden"
|
|
24
28
|
}, xe = {
|
|
25
29
|
key: 1,
|
|
26
30
|
class: "q-select__value"
|
|
@@ -29,18 +33,30 @@ var ye = {
|
|
|
29
33
|
class: "q-select__placeholder"
|
|
30
34
|
}, Ce = [
|
|
31
35
|
"id",
|
|
36
|
+
"value",
|
|
37
|
+
"aria-invalid",
|
|
32
38
|
"aria-describedby",
|
|
33
39
|
"tabindex",
|
|
34
40
|
"aria-expanded",
|
|
35
41
|
"aria-controls",
|
|
42
|
+
"aria-required",
|
|
43
|
+
"aria-readonly",
|
|
44
|
+
"aria-disabled",
|
|
45
|
+
"aria-busy",
|
|
36
46
|
"aria-keyshortcuts"
|
|
37
|
-
], we =
|
|
47
|
+
], we = {
|
|
48
|
+
class: "q-sr-only",
|
|
49
|
+
role: "status"
|
|
50
|
+
}, Te = ["data-key"], Ee = {
|
|
38
51
|
key: 0,
|
|
39
52
|
class: "q-select__loader"
|
|
40
|
-
},
|
|
53
|
+
}, De = {
|
|
54
|
+
key: 2,
|
|
55
|
+
class: "q-select__loader"
|
|
56
|
+
}, O = ", ", k = /*@__PURE__*/ oe({
|
|
41
57
|
inheritAttrs: !1,
|
|
42
58
|
__name: "QSelect",
|
|
43
|
-
props: /*@__PURE__*/
|
|
59
|
+
props: /*@__PURE__*/ v({
|
|
44
60
|
id: {},
|
|
45
61
|
class: {},
|
|
46
62
|
label: {},
|
|
@@ -49,8 +65,8 @@ var ye = {
|
|
|
49
65
|
labelPosition: {},
|
|
50
66
|
help: {},
|
|
51
67
|
helpDisplay: {},
|
|
52
|
-
icons: { default: () =>
|
|
53
|
-
texts: { default: () =>
|
|
68
|
+
icons: { default: () => l },
|
|
69
|
+
texts: { default: () => ie },
|
|
54
70
|
size: {},
|
|
55
71
|
readonly: { type: Boolean },
|
|
56
72
|
disabled: { type: Boolean },
|
|
@@ -65,6 +81,7 @@ var ye = {
|
|
|
65
81
|
default: !0
|
|
66
82
|
},
|
|
67
83
|
multiple: { type: Boolean },
|
|
84
|
+
overflow: { default: "wrap" },
|
|
68
85
|
badges: { type: Boolean },
|
|
69
86
|
loading: { type: Boolean },
|
|
70
87
|
emptyValue: {},
|
|
@@ -79,75 +96,90 @@ var ye = {
|
|
|
79
96
|
},
|
|
80
97
|
openModifiers: {}
|
|
81
98
|
}),
|
|
82
|
-
emits: /*@__PURE__*/
|
|
99
|
+
emits: /*@__PURE__*/ v([
|
|
83
100
|
"before-show",
|
|
84
101
|
"before-hide",
|
|
85
102
|
"show",
|
|
86
103
|
"hide"
|
|
87
104
|
], ["update:modelValue", "update:open"]),
|
|
88
|
-
setup(
|
|
89
|
-
let
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
105
|
+
setup(l, { expose: ie, emit: oe }) {
|
|
106
|
+
let v = l, k = oe, A = ge(l, "modelValue"), j = e(me(v, "id")), M = he(), Oe = d(() => `${j.value}_input`), ke = d(() => `${j.value}_listbox`), N = ge(l, "open"), P = d(() => !!(N.value && !v.loading && v.items?.length)), Ae = d(() => !N.value || P.value ? "" : v.loading ? v.texts.loading : v.texts.noData), je = d(() => v.overflow === "fit-content" ? "auto" : "anchor"), F = de(0), I = !0, L = !1, R = T("trigger"), Me = d(() => typeof M["aria-describedby"] == "string" ? M["aria-describedby"] : void 0), z = T("input"), Ne = d(() => v.readonly && !v.disabled ? { click: () => void 0 } : {}), Pe = d(() => {
|
|
107
|
+
let e = Be.value?.$el;
|
|
108
|
+
return e?.querySelector("button") ?? e;
|
|
109
|
+
});
|
|
110
|
+
function Fe() {
|
|
111
|
+
return typeof M["aria-label"] == "string" ? M["aria-label"] : Array.from(z.value?.labels ?? []).map((e) => e.textContent?.trim()).filter(Boolean).join(" ") || void 0;
|
|
112
|
+
}
|
|
113
|
+
let Ie = T("list"), B = T("content"), Le = T("valueContainer"), Re = T("allBadges"), ze = T("allPlainTexts"), Be = T("hiddenItemsCountBadge"), V = T("counterMeasure"), Ve = T("separatorMeasure"), H = null, U = /* @__PURE__ */ new Set(), W = null;
|
|
114
|
+
function He() {
|
|
115
|
+
W && clearTimeout(W), W = setTimeout(() => {
|
|
96
116
|
$();
|
|
97
117
|
}, 120);
|
|
98
118
|
}
|
|
99
|
-
|
|
119
|
+
function Ue(e) {
|
|
120
|
+
if (!H) return;
|
|
121
|
+
let t = new Set(e);
|
|
122
|
+
for (let e of U) t.has(e) || (H.unobserve(e), U.delete(e));
|
|
123
|
+
for (let e of t) U.has(e) || (H.observe(e), U.add(e));
|
|
124
|
+
}
|
|
125
|
+
ue(() => {
|
|
100
126
|
$();
|
|
101
127
|
let e = R.value?.fieldRef;
|
|
102
|
-
e && (
|
|
103
|
-
|
|
104
|
-
}),
|
|
105
|
-
}),
|
|
106
|
-
|
|
128
|
+
e && (H = new ResizeObserver(() => {
|
|
129
|
+
He();
|
|
130
|
+
}), H.observe(e));
|
|
131
|
+
}), le(() => {
|
|
132
|
+
H?.disconnect(), U.clear(), W && clearTimeout(W);
|
|
107
133
|
});
|
|
108
|
-
let
|
|
109
|
-
if (
|
|
110
|
-
let e =
|
|
134
|
+
let G = d(() => K.value.length === 0), K = d(() => {
|
|
135
|
+
if (v.multiple) return (A.value ?? []).map((e) => Ge(e)).filter((e) => !!e);
|
|
136
|
+
let e = A.value === void 0 ? void 0 : Ge(A.value);
|
|
111
137
|
return e ? [e] : [];
|
|
112
|
-
}),
|
|
138
|
+
}), We = d(() => {
|
|
113
139
|
let e = /* @__PURE__ */ new Map();
|
|
114
|
-
return
|
|
140
|
+
return v.items?.forEach((t, n) => {
|
|
115
141
|
e.set(t.key, n);
|
|
116
142
|
}), e;
|
|
117
|
-
}),
|
|
118
|
-
function
|
|
119
|
-
return
|
|
143
|
+
}), q = d(() => K.value?.map(Y).filter(Boolean).join(", ")), J = d(() => v.clearable && !v.readonly && !v.disabled && !v.loading && !G.value);
|
|
144
|
+
function Ge(e) {
|
|
145
|
+
return v.items?.find((t) => t[v.itemValue] === e);
|
|
120
146
|
}
|
|
121
|
-
function
|
|
122
|
-
|
|
147
|
+
function Ke(e) {
|
|
148
|
+
let t = K.value[e]?.[v.itemValue];
|
|
149
|
+
X(A.value.filter((e) => e !== t));
|
|
123
150
|
}
|
|
124
|
-
function
|
|
125
|
-
return e?.[
|
|
151
|
+
function Y(e) {
|
|
152
|
+
return e?.[v.itemLabel] ?? "";
|
|
126
153
|
}
|
|
127
|
-
function
|
|
128
|
-
return e + 1 <
|
|
154
|
+
function qe(e) {
|
|
155
|
+
return e + 1 < K.value.length - F.value ? O : "";
|
|
129
156
|
}
|
|
130
|
-
function
|
|
131
|
-
Array.isArray(e) ?
|
|
157
|
+
function X(e) {
|
|
158
|
+
Array.isArray(e) ? A.value = e.sort((e, t) => We.value.get(e) - We.value.get(t)) : (A.value = e, Q(!L));
|
|
132
159
|
}
|
|
133
|
-
function
|
|
134
|
-
|
|
160
|
+
function Z() {
|
|
161
|
+
X(v.emptyValue), it();
|
|
135
162
|
}
|
|
136
|
-
function
|
|
163
|
+
function Je(e) {
|
|
137
164
|
let t = e.relatedTarget;
|
|
138
|
-
!
|
|
165
|
+
!B.value?.contains(t) && !R.value?.fieldRef?.contains(t) && Q(!1);
|
|
139
166
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
167
|
+
function Ye() {
|
|
168
|
+
N.value || v.readonly || v.disabled || (I = !0, k("before-show"), N.value = !0);
|
|
142
169
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
170
|
+
function Q(e = !0) {
|
|
171
|
+
N.value &&= (I = e, k("before-hide"), !1);
|
|
145
172
|
}
|
|
146
|
-
function
|
|
147
|
-
|
|
173
|
+
function Xe(e) {
|
|
174
|
+
N.value && (e.target?.closest("input, button, a, [tabindex]") || e.preventDefault());
|
|
148
175
|
}
|
|
149
|
-
function
|
|
150
|
-
|
|
176
|
+
function Ze() {
|
|
177
|
+
v.readonly || v.disabled || (N.value ? Q() : Ye());
|
|
178
|
+
}
|
|
179
|
+
function Qe(e) {
|
|
180
|
+
if (!e.key || v.readonly || v.disabled) return;
|
|
181
|
+
let t = e.altKey && e.key === "ArrowDown" && !N.value;
|
|
182
|
+
(e.altKey || e.ctrlKey || e.metaKey) && !t || ([
|
|
151
183
|
"Enter",
|
|
152
184
|
" ",
|
|
153
185
|
"ArrowDown",
|
|
@@ -159,317 +191,363 @@ var ye = {
|
|
|
159
191
|
"Enter",
|
|
160
192
|
" ",
|
|
161
193
|
"ArrowDown"
|
|
162
|
-
].includes(e.key) &&
|
|
194
|
+
].includes(e.key) && Ye(), ["Escape", "Tab"].includes(e.key) && (N.value ? Q(e.key !== "Tab") : J.value && e.key === "Escape" && Z()), J.value && e.key === "Delete" && Z());
|
|
163
195
|
}
|
|
164
|
-
function
|
|
165
|
-
e.key
|
|
196
|
+
function $e(e) {
|
|
197
|
+
if (e.key !== "Tab") {
|
|
198
|
+
Qe(e);
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
e.preventDefault(), L = !0;
|
|
202
|
+
let t = !e.shiftKey, r = B.value;
|
|
203
|
+
b(() => {
|
|
204
|
+
L = !1, Q(!1);
|
|
205
|
+
let e = R.value?.$el;
|
|
206
|
+
((t && e ? n(e, r) : void 0) ?? z.value)?.focus();
|
|
207
|
+
});
|
|
166
208
|
}
|
|
167
|
-
|
|
168
|
-
|
|
209
|
+
function et(e) {
|
|
210
|
+
e.preventDefault();
|
|
169
211
|
}
|
|
170
|
-
function
|
|
171
|
-
|
|
212
|
+
function tt() {
|
|
213
|
+
Q(!1);
|
|
172
214
|
}
|
|
173
|
-
function
|
|
174
|
-
|
|
215
|
+
async function nt() {
|
|
216
|
+
await b(), v.loading ? B.value?.focus() : at(), k("show");
|
|
217
|
+
}
|
|
218
|
+
function rt() {
|
|
219
|
+
I && it(), I = !0, k("hide");
|
|
220
|
+
}
|
|
221
|
+
function it() {
|
|
222
|
+
z.value?.focus();
|
|
175
223
|
}
|
|
176
|
-
function
|
|
177
|
-
|
|
224
|
+
function at() {
|
|
225
|
+
Ie.value?.$el.focus();
|
|
178
226
|
}
|
|
179
227
|
async function $() {
|
|
180
|
-
if (await
|
|
181
|
-
|
|
228
|
+
if (await b(), await b(), !v.multiple || !Le.value || G.value) {
|
|
229
|
+
F.value = 0;
|
|
182
230
|
return;
|
|
183
231
|
}
|
|
184
|
-
let e =
|
|
185
|
-
if (
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
else break;
|
|
232
|
+
let e = Le.value, t = e.getBoundingClientRect().width, n = parseFloat(getComputedStyle(e).columnGap) || 0, r = V.value?.$el.getBoundingClientRect().width ?? 0, i = v.badges ? (Re.value ?? []).map((e) => e.$el) : ze.value ?? [], a = i.map((e) => e.getBoundingClientRect().width), o = Ve.value?.getBoundingClientRect().width ?? 0;
|
|
233
|
+
if (Ue(V.value ? [...i, V.value.$el] : i), a.reduce((e, t) => e + t, 0) + n * (a.length - 1) - o <= t) {
|
|
234
|
+
F.value = 0;
|
|
235
|
+
return;
|
|
189
236
|
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
if (
|
|
193
|
-
|
|
237
|
+
let ee = r, s = 0;
|
|
238
|
+
for (let e of a) {
|
|
239
|
+
if (ee + n + e - o > t) break;
|
|
240
|
+
ee += n + e, s++;
|
|
194
241
|
}
|
|
195
|
-
|
|
242
|
+
F.value = a.length - s;
|
|
196
243
|
}
|
|
197
|
-
return E(() =>
|
|
198
|
-
!e &&
|
|
199
|
-
}), E(() =>
|
|
200
|
-
|
|
201
|
-
() =>
|
|
202
|
-
() =>
|
|
244
|
+
return E(() => v.loading, (e) => {
|
|
245
|
+
!e && N.value && b(at);
|
|
246
|
+
}), E(() => v.badges, $), E(K, $, { deep: !0 }), E(() => v.clearable, $), E([
|
|
247
|
+
N,
|
|
248
|
+
() => v.readonly,
|
|
249
|
+
() => v.disabled
|
|
203
250
|
], ([e, t, n]) => {
|
|
204
|
-
e && (t || n) &&
|
|
251
|
+
e && (t || n) && Q(!1);
|
|
205
252
|
}, {
|
|
206
253
|
flush: "sync",
|
|
207
254
|
immediate: !0
|
|
208
|
-
}),
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
size: "small",
|
|
244
|
-
focusable: !1,
|
|
245
|
-
color: h.readonly || h.disabled ? "neutral" : void 0,
|
|
246
|
-
disabled: h.readonly || h.disabled,
|
|
247
|
-
removable: !h.readonly && !h.disabled && (!h.required || H.value.length > 1),
|
|
248
|
-
icons: h.icons,
|
|
249
|
-
texts: h.texts,
|
|
250
|
-
"onClick:remove": () => Le(t)
|
|
251
|
-
}, {
|
|
252
|
-
default: D(() => [e?.icon ? (b(), u(w(n), g({
|
|
255
|
+
}), ie({ focusList: at }), (e, n) => (x(), m(u, null, [
|
|
256
|
+
_(w(ne), {
|
|
257
|
+
id: w(j),
|
|
258
|
+
ref: "trigger",
|
|
259
|
+
label: v.label,
|
|
260
|
+
for: Oe.value,
|
|
261
|
+
"label-position": v.labelPosition,
|
|
262
|
+
required: v.required,
|
|
263
|
+
class: se([
|
|
264
|
+
"q-select",
|
|
265
|
+
{
|
|
266
|
+
"q-select--readonly": v.readonly,
|
|
267
|
+
"q-select--disabled": v.disabled
|
|
268
|
+
},
|
|
269
|
+
v.class
|
|
270
|
+
]),
|
|
271
|
+
readonly: v.readonly,
|
|
272
|
+
disabled: v.disabled,
|
|
273
|
+
"data-loading": v.loading,
|
|
274
|
+
size: v.size,
|
|
275
|
+
invalid: v.invalid,
|
|
276
|
+
help: v.help,
|
|
277
|
+
"help-display": v.helpDisplay,
|
|
278
|
+
icons: v.icons,
|
|
279
|
+
texts: v.texts,
|
|
280
|
+
onMousedown: Xe,
|
|
281
|
+
onClick: Ze,
|
|
282
|
+
onKeydown: Qe
|
|
283
|
+
}, ae({
|
|
284
|
+
default: D(({ describedBy: n, invalid: r }) => [S(e.$slots, "value", {
|
|
285
|
+
empty: G.value,
|
|
286
|
+
items: K.value,
|
|
287
|
+
value: A.value
|
|
288
|
+
}, () => [G.value ? (x(), m("span", Se, [!v.readonly && !v.disabled ? (x(), m(u, { key: 0 }, [g(C(v.texts.placeholder), 1)], 64)) : p("v-if", !0)])) : (x(), m(u, { key: 0 }, [v.badges || v.multiple ? (x(), m("span", ve, [v.multiple ? (x(), m(u, { key: 0 }, [
|
|
289
|
+
(x(!0), m(u, null, fe(K.value, (e, n) => (x(), m(u, { key: `visible-${n}` }, [n < K.value.length - F.value ? (x(), m(u, { key: 0 }, [v.badges ? (x(), f(w(c), {
|
|
253
290
|
key: 0,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
291
|
+
pill: "",
|
|
292
|
+
size: "small",
|
|
293
|
+
focusable: !1,
|
|
294
|
+
color: v.readonly || v.disabled ? "neutral" : void 0,
|
|
295
|
+
disabled: v.readonly || v.disabled,
|
|
296
|
+
removable: !v.readonly && !v.disabled && (!v.required || K.value.length > 1),
|
|
297
|
+
icons: v.icons,
|
|
298
|
+
texts: v.texts,
|
|
299
|
+
"onClick:remove": () => Ke(n)
|
|
300
|
+
}, {
|
|
301
|
+
default: D(() => [e?.icon ? (x(), f(w(t), y({
|
|
302
|
+
key: 0,
|
|
303
|
+
ref_for: !0
|
|
304
|
+
}, e.icon), null, 16)) : p("v-if", !0), g(" " + C(Y(e)), 1)]),
|
|
305
|
+
_: 2
|
|
306
|
+
}, 1032, [
|
|
307
|
+
"color",
|
|
308
|
+
"disabled",
|
|
309
|
+
"removable",
|
|
310
|
+
"icons",
|
|
311
|
+
"texts",
|
|
312
|
+
"onClick:remove"
|
|
313
|
+
])) : v.multiple ? (x(), m("span", ye, C(Y(e) + qe(n)), 1)) : p("v-if", !0)], 64)) : p("v-if", !0)], 64))), 128)),
|
|
314
|
+
F.value > 0 ? (x(), m(u, { key: 0 }, [_(w(c), y({
|
|
315
|
+
ref: "hiddenItemsCountBadge",
|
|
316
|
+
pill: "",
|
|
317
|
+
size: "small",
|
|
318
|
+
focusable: v.readonly && !v.disabled,
|
|
319
|
+
icons: v.icons,
|
|
320
|
+
texts: v.texts,
|
|
321
|
+
class: ["q-select__badge-count", { "q-select__badge-count--clickable": v.readonly || v.disabled }]
|
|
322
|
+
}, pe(Ne.value)), {
|
|
323
|
+
default: D(() => [g(" +" + C(F.value), 1)]),
|
|
324
|
+
_: 1
|
|
325
|
+
}, 16, [
|
|
326
|
+
"focusable",
|
|
327
|
+
"icons",
|
|
328
|
+
"texts",
|
|
329
|
+
"class"
|
|
330
|
+
]), v.readonly || v.disabled ? (x(), f(w(i), {
|
|
331
|
+
key: 0,
|
|
332
|
+
anchor: Pe.value,
|
|
333
|
+
text: q.value,
|
|
334
|
+
placement: "bottom-start"
|
|
335
|
+
}, {
|
|
336
|
+
default: D(() => [g(C(q.value), 1)]),
|
|
337
|
+
_: 1
|
|
338
|
+
}, 8, ["anchor", "text"])) : p("v-if", !0)], 64)) : p("v-if", !0),
|
|
339
|
+
(x(!0), m(u, null, fe(K.value, (e, n) => (x(), m(u, { key: `measure-${n}` }, [v.badges ? (x(), f(w(c), {
|
|
340
|
+
key: 0,
|
|
341
|
+
ref_for: !0,
|
|
342
|
+
ref: "allBadges",
|
|
343
|
+
pill: "",
|
|
344
|
+
size: "small",
|
|
345
|
+
focusable: !1,
|
|
346
|
+
color: v.readonly || v.disabled ? "neutral" : void 0,
|
|
347
|
+
disabled: "",
|
|
348
|
+
class: "q-select__badge-hidden",
|
|
349
|
+
icons: v.icons,
|
|
350
|
+
texts: v.texts,
|
|
351
|
+
removable: !v.readonly && !v.disabled && (!v.required || K.value.length > 1)
|
|
352
|
+
}, {
|
|
353
|
+
default: D(() => [e?.icon ? (x(), f(w(t), y({
|
|
354
|
+
key: 0,
|
|
355
|
+
ref_for: !0
|
|
356
|
+
}, e.icon), null, 16)) : p("v-if", !0), g(" " + C(Y(e)), 1)]),
|
|
357
|
+
_: 2
|
|
358
|
+
}, 1032, [
|
|
359
|
+
"color",
|
|
360
|
+
"icons",
|
|
361
|
+
"texts",
|
|
362
|
+
"removable"
|
|
363
|
+
])) : v.multiple ? (x(), m(u, { key: 1 }, [p(" Always with the separator, so its width does not change with the count "), h("span", {
|
|
364
|
+
ref_for: !0,
|
|
365
|
+
ref: "allPlainTexts",
|
|
366
|
+
class: "q-select__multi-value--hidden"
|
|
367
|
+
}, C(Y(e) + O), 513)], 2112)) : p("v-if", !0)], 64))), 128)),
|
|
368
|
+
p(" The separator alone, which the last item shown goes without "),
|
|
369
|
+
v.badges ? p("v-if", !0) : (x(), m("span", be, C(O), 512)),
|
|
370
|
+
p(" The widest counter it can show, so the count keeps room for it "),
|
|
371
|
+
_(w(c), {
|
|
372
|
+
ref: "counterMeasure",
|
|
373
|
+
pill: "",
|
|
374
|
+
size: "small",
|
|
375
|
+
focusable: !1,
|
|
376
|
+
icons: v.icons,
|
|
377
|
+
texts: v.texts,
|
|
378
|
+
class: "q-select__badge-count-measure q-select__badge-hidden"
|
|
379
|
+
}, {
|
|
380
|
+
default: D(() => [g(" +" + C(K.value.length), 1)]),
|
|
381
|
+
_: 1
|
|
382
|
+
}, 8, ["icons", "texts"])
|
|
383
|
+
], 64)) : (x(), f(w(c), {
|
|
384
|
+
key: 1,
|
|
267
385
|
pill: "",
|
|
268
386
|
size: "small",
|
|
269
387
|
focusable: !1,
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
388
|
+
disabled: v.readonly || v.disabled,
|
|
389
|
+
removable: !v.readonly && !v.disabled && !v.required,
|
|
390
|
+
icons: v.icons,
|
|
391
|
+
texts: v.texts,
|
|
392
|
+
"onClick:remove": Z
|
|
273
393
|
}, {
|
|
274
|
-
default: D(() => [p("
|
|
394
|
+
default: D(() => [K.value[0]?.icon ? (x(), f(w(t), ce(y({ key: 0 }, K.value[0].icon)), null, 16)) : p("v-if", !0), g(" " + C(Y(K.value[0])), 1)]),
|
|
275
395
|
_: 1
|
|
276
396
|
}, 8, [
|
|
397
|
+
"disabled",
|
|
398
|
+
"removable",
|
|
277
399
|
"icons",
|
|
278
|
-
"texts"
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
disabled:
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
400
|
+
"texts"
|
|
401
|
+
]))], 512)) : (x(), m("span", xe, C(q.value), 1))], 64))]), h("input", y({
|
|
402
|
+
id: Oe.value,
|
|
403
|
+
ref: "input",
|
|
404
|
+
value: q.value,
|
|
405
|
+
"aria-invalid": r || void 0
|
|
406
|
+
}, e.$attrs, {
|
|
407
|
+
"aria-describedby": w(o)(n, Me.value),
|
|
408
|
+
class: "q-select__input",
|
|
409
|
+
inputmode: "none",
|
|
410
|
+
type: "text",
|
|
411
|
+
autocomplete: "off",
|
|
412
|
+
tabindex: v.disabled ? -1 : 0,
|
|
413
|
+
role: "combobox",
|
|
414
|
+
"aria-expanded": P.value,
|
|
415
|
+
"aria-controls": P.value ? ke.value : void 0,
|
|
416
|
+
"aria-haspopup": "listbox",
|
|
417
|
+
"aria-required": v.required || void 0,
|
|
418
|
+
"aria-readonly": v.readonly || void 0,
|
|
419
|
+
"aria-disabled": v.disabled || void 0,
|
|
420
|
+
"aria-busy": v.loading || void 0,
|
|
421
|
+
"aria-keyshortcuts": J.value ? "Delete" : void 0,
|
|
422
|
+
onBeforeinput: et
|
|
423
|
+
}), null, 16, Ce)]),
|
|
424
|
+
append: D(() => [
|
|
425
|
+
S(e.$slots, "append"),
|
|
426
|
+
J.value ? (x(), f(w(re), {
|
|
304
427
|
key: 0,
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
"
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
}
|
|
428
|
+
icons: v.icons,
|
|
429
|
+
texts: v.texts,
|
|
430
|
+
onClick: Z
|
|
431
|
+
}, null, 8, ["icons", "texts"])) : p("v-if", !0),
|
|
432
|
+
v.readonly ? p("v-if", !0) : (x(), f(w(ee), {
|
|
433
|
+
key: 1,
|
|
434
|
+
class: "q-select__chevron",
|
|
435
|
+
"aria-label": v.texts.showOptions,
|
|
436
|
+
variant: "ghost",
|
|
437
|
+
color: "neutral",
|
|
438
|
+
borderless: "",
|
|
439
|
+
tabindex: -1,
|
|
440
|
+
disabled: v.disabled,
|
|
441
|
+
onClick: Ze
|
|
442
|
+
}, {
|
|
443
|
+
default: D(() => [_(w(s), {
|
|
444
|
+
"model-value": N.value,
|
|
445
|
+
icons: v.icons
|
|
446
|
+
}, null, 8, ["model-value", "icons"])]),
|
|
447
|
+
_: 1
|
|
448
|
+
}, 8, ["aria-label", "disabled"]))
|
|
449
|
+
]),
|
|
450
|
+
_: 2
|
|
451
|
+
}, [K.value.length === 1 && K.value[0].icon && !v.badges || e.$slots.prepend ? {
|
|
452
|
+
name: "prepend",
|
|
453
|
+
fn: D(() => [S(e.$slots, "prepend"), K.value.length === 1 && K.value[0].icon && !v.badges ? (x(), f(w(t), ce(y({ key: 0 }, K.value[0].icon)), null, 16)) : p("v-if", !0)]),
|
|
454
|
+
key: "0"
|
|
455
|
+
} : void 0, e.$slots.extras ? {
|
|
456
|
+
name: "extras",
|
|
457
|
+
fn: D(() => [S(e.$slots, "extras")]),
|
|
458
|
+
key: "1"
|
|
459
|
+
} : void 0]), 1032, [
|
|
460
|
+
"id",
|
|
461
|
+
"label",
|
|
462
|
+
"for",
|
|
463
|
+
"label-position",
|
|
464
|
+
"required",
|
|
465
|
+
"class",
|
|
466
|
+
"readonly",
|
|
333
467
|
"disabled",
|
|
334
|
-
"
|
|
468
|
+
"data-loading",
|
|
469
|
+
"size",
|
|
470
|
+
"invalid",
|
|
471
|
+
"help",
|
|
472
|
+
"help-display",
|
|
335
473
|
"icons",
|
|
336
474
|
"texts"
|
|
337
|
-
]))], 512)) : (b(), f("span", xe, S(U.value), 1))], 64))]), _e(se("input", g({
|
|
338
|
-
id: M.value,
|
|
339
|
-
ref: "input",
|
|
340
|
-
"onUpdate:modelValue": t[0] ||= (e) => U.value = e
|
|
341
|
-
}, e.$attrs, {
|
|
342
|
-
"aria-describedby": w(ee)(r, Ee.value),
|
|
343
|
-
class: "q-select__input",
|
|
344
|
-
inputmode: "none",
|
|
345
|
-
type: "text",
|
|
346
|
-
autocomplete: "off",
|
|
347
|
-
tabindex: h.disabled ? -1 : 0,
|
|
348
|
-
role: "combobox",
|
|
349
|
-
"aria-expanded": F.value,
|
|
350
|
-
"aria-controls": F.value ? N.value : void 0,
|
|
351
|
-
"aria-haspopup": "listbox",
|
|
352
|
-
"aria-keyshortcuts": W.value ? "Delete" : void 0,
|
|
353
|
-
onKeydown: Ve
|
|
354
|
-
}), null, 16, Ce), [[ge, U.value]])]),
|
|
355
|
-
append: D(() => [
|
|
356
|
-
x(e.$slots, "append"),
|
|
357
|
-
W.value ? (b(), u(w(ae), {
|
|
358
|
-
key: 0,
|
|
359
|
-
icons: h.icons,
|
|
360
|
-
texts: h.texts,
|
|
361
|
-
onClick: q
|
|
362
|
-
}, null, 8, ["icons", "texts"])) : d("v-if", !0),
|
|
363
|
-
h.readonly ? d("v-if", !0) : (b(), u(w(te), {
|
|
364
|
-
key: 1,
|
|
365
|
-
class: "q-select__chevron",
|
|
366
|
-
"aria-label": h.texts.showOptions,
|
|
367
|
-
variant: "ghost",
|
|
368
|
-
color: "neutral",
|
|
369
|
-
borderless: "",
|
|
370
|
-
tabindex: -1,
|
|
371
|
-
disabled: h.disabled,
|
|
372
|
-
onClick: Be
|
|
373
|
-
}, {
|
|
374
|
-
default: D(() => [m(w(ne), {
|
|
375
|
-
"model-value": F.value,
|
|
376
|
-
icons: h.icons
|
|
377
|
-
}, null, 8, ["model-value", "icons"])]),
|
|
378
|
-
_: 1
|
|
379
|
-
}, 8, ["aria-label", "disabled"]))
|
|
380
475
|
]),
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
"
|
|
445
|
-
"
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
"required",
|
|
456
|
-
"multiple",
|
|
457
|
-
"model-value",
|
|
458
|
-
"items",
|
|
459
|
-
"groups",
|
|
460
|
-
"item-label",
|
|
461
|
-
"item-value",
|
|
462
|
-
"select-on-tab"
|
|
463
|
-
])),
|
|
464
|
-
x(e.$slots, "body.append")
|
|
465
|
-
], 40, we)]),
|
|
466
|
-
_: 3
|
|
467
|
-
}, 8, [
|
|
468
|
-
"modelValue",
|
|
469
|
-
"inline",
|
|
470
|
-
"anchor"
|
|
471
|
-
])], 64));
|
|
476
|
+
h("span", we, C(Ae.value), 1),
|
|
477
|
+
_(w(r), {
|
|
478
|
+
"model-value": N.value,
|
|
479
|
+
spy: "",
|
|
480
|
+
"non-modal": "",
|
|
481
|
+
trigger: "manual",
|
|
482
|
+
placement: "bottom-start",
|
|
483
|
+
width: je.value,
|
|
484
|
+
"scroll-lock": "",
|
|
485
|
+
inline: v.inline,
|
|
486
|
+
anchor: v.overlayAnchor ?? R.value?.fieldRef,
|
|
487
|
+
offset: 2,
|
|
488
|
+
"onUpdate:modelValue": tt,
|
|
489
|
+
onEnter: nt,
|
|
490
|
+
onLeave: rt
|
|
491
|
+
}, {
|
|
492
|
+
default: D(() => [p(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions -- Takes the keys and focus of the list inside it "), h("div", {
|
|
493
|
+
ref: "content",
|
|
494
|
+
"data-testid": "combobox-dropdown",
|
|
495
|
+
"data-key": w(j),
|
|
496
|
+
class: "q-select__body",
|
|
497
|
+
tabindex: "-1",
|
|
498
|
+
onFocusout: Je,
|
|
499
|
+
onKeydown: _e($e, ["stop"])
|
|
500
|
+
}, [
|
|
501
|
+
S(e.$slots, "body.prepend"),
|
|
502
|
+
v.loading ? (x(), m("div", Ee, [_(w(a), { size: 24 })])) : v.items?.length ? (x(), f(w(te), {
|
|
503
|
+
key: 1,
|
|
504
|
+
id: ke.value,
|
|
505
|
+
ref: "list",
|
|
506
|
+
class: se(["q-select__items", `q-select__items--${v.overflow}`]),
|
|
507
|
+
label: Fe(),
|
|
508
|
+
"aria-labelledby": w(M)["aria-labelledby"],
|
|
509
|
+
selectable: "",
|
|
510
|
+
icons: v.icons,
|
|
511
|
+
required: v.required,
|
|
512
|
+
multiple: v.multiple,
|
|
513
|
+
"model-value": A.value,
|
|
514
|
+
items: v.items,
|
|
515
|
+
groups: l.groups,
|
|
516
|
+
"item-label": v.itemLabel,
|
|
517
|
+
"item-value": v.itemValue,
|
|
518
|
+
"item-title": v.overflow === "truncate",
|
|
519
|
+
"select-on-tab": v.selectOnTab,
|
|
520
|
+
"onUpdate:modelValue": X
|
|
521
|
+
}, {
|
|
522
|
+
item: D(({ item: t }) => [S(e.$slots, "item", { item: t })]),
|
|
523
|
+
_: 3
|
|
524
|
+
}, 8, [
|
|
525
|
+
"id",
|
|
526
|
+
"class",
|
|
527
|
+
"label",
|
|
528
|
+
"aria-labelledby",
|
|
529
|
+
"icons",
|
|
530
|
+
"required",
|
|
531
|
+
"multiple",
|
|
532
|
+
"model-value",
|
|
533
|
+
"items",
|
|
534
|
+
"groups",
|
|
535
|
+
"item-label",
|
|
536
|
+
"item-value",
|
|
537
|
+
"item-title",
|
|
538
|
+
"select-on-tab"
|
|
539
|
+
])) : (x(), m("div", De, C(v.texts.noData), 1)),
|
|
540
|
+
S(e.$slots, "body.append")
|
|
541
|
+
], 40, Te)]),
|
|
542
|
+
_: 3
|
|
543
|
+
}, 8, [
|
|
544
|
+
"model-value",
|
|
545
|
+
"width",
|
|
546
|
+
"inline",
|
|
547
|
+
"anchor"
|
|
548
|
+
])
|
|
549
|
+
], 64));
|
|
472
550
|
}
|
|
473
551
|
});
|
|
474
552
|
//#endregion
|
|
475
|
-
export {
|
|
553
|
+
export { k as default };
|