@quidgest/ui 0.31.2 → 0.32.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 +39 -0
- package/dist/json/api.json +1027 -243
- package/dist/manifest/components.json +1 -0
- package/dist/ui.css +849 -277
- package/dist/ui.esm.js +1584 -1360
- package/dist/ui.min.css +1 -1
- package/dist/ui.scss +940 -300
- package/lib/components/QAccordion/QAccordion.d.ts +1 -1
- package/lib/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/lib/components/QAccordion/QAccordionItem.d.ts.map +1 -1
- package/lib/components/QAccordion/QAccordionItem.vue.js +5 -5
- package/lib/components/QAccordion/index.d.ts +6 -6
- package/lib/components/QAccordion/types.d.ts +2 -2
- package/lib/components/QAccordion/types.d.ts.map +1 -1
- package/lib/components/QAlert/QAlert.d.ts +1 -1
- package/lib/components/QAlert/QAlert.d.ts.map +1 -1
- package/lib/components/QAlert/QAlert.vue.js +78 -74
- package/lib/components/QAlert/index.d.ts +3 -3
- package/lib/components/QAlert/types.d.ts +20 -2
- package/lib/components/QAlert/types.d.ts.map +1 -1
- package/lib/components/QAvatar/QAvatar.d.ts +1 -1
- package/lib/components/QAvatar/index.d.ts +3 -3
- package/lib/components/QBadge/QBadge.d.ts +1 -1
- package/lib/components/QBadge/QBadge.d.ts.map +1 -1
- package/lib/components/QBadge/QBadge.vue.js +64 -55
- package/lib/components/QBadge/index.d.ts +3 -3
- package/lib/components/QBadge/types.d.ts +2 -2
- package/lib/components/QBadge/types.d.ts.map +1 -1
- package/lib/components/QBadgeIndicator/QBadgeIndicator.vue.js +2 -3
- package/lib/components/QBreadcrumbs/QBreadcrumb.d.ts +6 -6
- package/lib/components/QBreadcrumbs/QBreadcrumb.vue.js +3 -3
- package/lib/components/QBreadcrumbs/QBreadcrumbs.d.ts +1 -1
- package/lib/components/QBreadcrumbs/QBreadcrumbs.d.ts.map +1 -1
- package/lib/components/QBreadcrumbs/QBreadcrumbs.vue.js +31 -31
- package/lib/components/QBreadcrumbs/context.d.ts +2 -1
- package/lib/components/QBreadcrumbs/context.d.ts.map +1 -1
- package/lib/components/QBreadcrumbs/index.d.ts +9 -9
- package/lib/components/QBreadcrumbs/types.d.ts +2 -2
- package/lib/components/QBreadcrumbs/types.d.ts.map +1 -1
- package/lib/components/QButton/QButton.d.ts +2 -2
- package/lib/components/QButton/QButton.d.ts.map +1 -1
- package/lib/components/QButton/QButton.vue.js +53 -49
- package/lib/components/QButton/index.d.ts +6 -6
- package/lib/components/QButton/types.d.ts +2 -2
- package/lib/components/QButton/types.d.ts.map +1 -1
- package/lib/components/QCard/QCard.vue.js +9 -20
- package/lib/components/QCarousel/QCarousel.d.ts +4 -4
- package/lib/components/QCarousel/QCarousel.d.ts.map +1 -1
- package/lib/components/QCarousel/QCarousel.vue.js +10 -16
- package/lib/components/QCarousel/index.d.ts +14 -14
- package/lib/components/QCarousel/types.d.ts +2 -2
- package/lib/components/QCarousel/types.d.ts.map +1 -1
- package/lib/components/QCheckbox/QCheckbox.d.ts +3 -22
- package/lib/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/lib/components/QCheckbox/QCheckbox.vue.js +98 -100
- package/lib/components/QCheckbox/constants.d.ts +9 -0
- package/lib/components/QCheckbox/constants.d.ts.map +1 -1
- package/lib/components/QCheckbox/constants.js +4 -4
- package/lib/components/QCheckbox/index.d.ts +10 -72
- package/lib/components/QCheckbox/index.d.ts.map +1 -1
- package/lib/components/QCheckbox/types.d.ts +2 -8
- package/lib/components/QCheckbox/types.d.ts.map +1 -1
- package/lib/components/QCollapsible/QCollapsible.d.ts +1 -1
- package/lib/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/lib/components/QCollapsible/QCollapsible.vue.js +20 -27
- package/lib/components/QCollapsible/index.d.ts +6 -6
- package/lib/components/QCollapsible/types.d.ts +2 -2
- package/lib/components/QCollapsible/types.d.ts.map +1 -1
- package/lib/components/QColorPicker/QColorPicker.d.ts +4 -18
- package/lib/components/QColorPicker/QColorPicker.d.ts.map +1 -1
- package/lib/components/QColorPicker/QColorPicker.vue.js +52 -35
- package/lib/components/QColorPicker/constants.d.ts +4 -0
- package/lib/components/QColorPicker/constants.d.ts.map +1 -1
- package/lib/components/QColorPicker/index.d.ts +13 -57
- package/lib/components/QColorPicker/index.d.ts.map +1 -1
- package/lib/components/QColorPicker/types.d.ts +2 -2
- package/lib/components/QColorPicker/types.d.ts.map +1 -1
- package/lib/components/QCombobox/QCombobox.d.ts +355 -299
- package/lib/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/lib/components/QCombobox/QCombobox.vue.js +236 -190
- package/lib/components/QCombobox/constants.d.ts +5 -0
- package/lib/components/QCombobox/constants.d.ts.map +1 -1
- package/lib/components/QCombobox/constants.js +1 -0
- package/lib/components/QCombobox/index.d.ts +265 -424
- package/lib/components/QCombobox/index.d.ts.map +1 -1
- package/lib/components/QCombobox/types.d.ts +2 -2
- package/lib/components/QCombobox/types.d.ts.map +1 -1
- package/lib/components/QDateTimePicker/QDateTimePicker.d.ts +106 -229
- package/lib/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/lib/components/QDateTimePicker/QDateTimePicker.vue.js +829 -722
- package/lib/components/QDateTimePicker/constants.d.ts +6 -1
- package/lib/components/QDateTimePicker/constants.d.ts.map +1 -1
- package/lib/components/QDateTimePicker/constants.js +2 -1
- package/lib/components/QDateTimePicker/index.d.ts +73 -229
- package/lib/components/QDateTimePicker/index.d.ts.map +1 -1
- package/lib/components/QDateTimePicker/types.d.ts +2 -1
- package/lib/components/QDateTimePicker/types.d.ts.map +1 -1
- package/lib/components/QDialog/QDialog.d.ts +22 -10
- package/lib/components/QDialog/QDialog.d.ts.map +1 -1
- package/lib/components/QDialog/QDialog.vue.js +143 -108
- package/lib/components/QDialog/QDialogProvider.d.ts.map +1 -1
- package/lib/components/QDialog/QDialogProvider.vue.js +8 -3
- package/lib/components/QDialog/constants.d.ts +19 -1
- package/lib/components/QDialog/constants.d.ts.map +1 -1
- package/lib/components/QDialog/constants.js +16 -11
- package/lib/components/QDialog/index.d.ts +39 -23
- package/lib/components/QDialog/index.d.ts.map +1 -1
- package/lib/components/QDialog/types.d.ts +24 -13
- package/lib/components/QDialog/types.d.ts.map +1 -1
- package/lib/components/QDivider/QDivider.d.ts.map +1 -1
- package/lib/components/QDivider/QDivider.vue.js +23 -13
- package/lib/components/QDivider/types.d.ts +9 -0
- package/lib/components/QDivider/types.d.ts.map +1 -1
- package/lib/components/QDrawer/QDrawer.d.ts +71 -0
- package/lib/components/QDrawer/QDrawer.d.ts.map +1 -0
- package/lib/components/QDrawer/QDrawer.vue.js +458 -0
- package/lib/components/QDrawer/QDrawer2.vue.js +5 -0
- package/lib/components/QDrawer/constants.d.ts +22 -0
- package/lib/components/QDrawer/constants.d.ts.map +1 -0
- package/lib/components/QDrawer/constants.js +14 -0
- package/lib/components/QDrawer/index.d.ts +214 -0
- package/lib/components/QDrawer/index.d.ts.map +1 -0
- package/lib/components/QDrawer/index.js +6 -0
- package/lib/components/QDrawer/types.d.ts +221 -0
- package/lib/components/QDrawer/types.d.ts.map +1 -0
- package/lib/components/QDropdownMenu/QDropdownMenu.d.ts +1 -1
- package/lib/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
- package/lib/components/QDropdownMenu/QDropdownMenu.vue.js +59 -52
- package/lib/components/QDropdownMenu/QDropdownMenuContent.d.ts +118 -42
- package/lib/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/lib/components/QDropdownMenu/QDropdownMenuContent.vue.js +213 -185
- package/lib/components/QDropdownMenu/ids.d.ts +6 -0
- package/lib/components/QDropdownMenu/ids.d.ts.map +1 -1
- package/lib/components/QDropdownMenu/ids.js +4 -1
- package/lib/components/QDropdownMenu/index.d.ts +6 -6
- package/lib/components/QDropdownMenu/types.d.ts +6 -4
- package/lib/components/QDropdownMenu/types.d.ts.map +1 -1
- package/lib/components/QField/QField.d.ts +18 -17
- package/lib/components/QField/QField.d.ts.map +1 -1
- package/lib/components/QField/QField.vue.js +65 -50
- package/lib/components/QField/constants.d.ts +10 -3
- package/lib/components/QField/constants.d.ts.map +1 -1
- package/lib/components/QField/constants.js +4 -2
- package/lib/components/QField/index.d.ts +12 -11
- package/lib/components/QField/index.d.ts.map +1 -1
- package/lib/components/QField/types.d.ts +6 -5
- package/lib/components/QField/types.d.ts.map +1 -1
- package/lib/components/QFileUpload/QFileUpload.d.ts +28 -54
- package/lib/components/QFileUpload/QFileUpload.d.ts.map +1 -1
- package/lib/components/QFileUpload/QFileUpload.vue.js +43 -39
- package/lib/components/QFileUpload/constants.d.ts +4 -0
- package/lib/components/QFileUpload/constants.d.ts.map +1 -1
- package/lib/components/QFileUpload/index.d.ts +25 -105
- package/lib/components/QFileUpload/index.d.ts.map +1 -1
- package/lib/components/QFileUpload/types.d.ts +2 -1
- package/lib/components/QFileUpload/types.d.ts.map +1 -1
- package/lib/components/QFocusWrap/QFocusWrap.d.ts +1 -0
- package/lib/components/QFocusWrap/QFocusWrap.d.ts.map +1 -1
- package/lib/components/QFocusWrap/QFocusWrap.vue.js +60 -41
- package/lib/components/QFocusWrap/index.d.ts +3 -0
- package/lib/components/QFocusWrap/index.d.ts.map +1 -1
- package/lib/components/QFocusWrap/stack.d.ts +15 -0
- package/lib/components/QFocusWrap/stack.d.ts.map +1 -0
- package/lib/components/QFocusWrap/stack.js +11 -0
- package/lib/components/QFocusWrap/types.d.ts +8 -0
- package/lib/components/QFocusWrap/types.d.ts.map +1 -1
- package/lib/components/QGauge/QGauge.d.ts.map +1 -1
- package/lib/components/QGauge/QGauge.vue.js +87 -86
- package/lib/components/QGrid/QRow.d.ts +1 -1
- package/lib/components/QGrid/index.d.ts +3 -3
- package/lib/components/QIcon/QSvgSymbol.d.ts +1 -1
- package/lib/components/QIcon/QSvgSymbol.d.ts.map +1 -1
- package/lib/components/QIcon/QSvgSymbol.vue.js +31 -31
- package/lib/components/QIcon/utils/svgSource.d.ts +2 -2
- package/lib/components/QIcon/utils/svgSource.d.ts.map +1 -1
- package/lib/components/QInputGroup/QInputGroup.d.ts +27 -24
- package/lib/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/lib/components/QInputGroup/QInputGroup.vue.js +19 -11
- package/lib/components/QInputGroup/index.d.ts +14 -12
- package/lib/components/QInputGroup/index.d.ts.map +1 -1
- package/lib/components/QLabel/QLabel.vue.js +1 -2
- package/lib/components/QList/QList.d.ts +46 -17
- package/lib/components/QList/QList.d.ts.map +1 -1
- package/lib/components/QList/QList.vue.js +470 -195
- package/lib/components/QList/QListItem.d.ts +1 -1
- package/lib/components/QList/QListItem.d.ts.map +1 -1
- package/lib/components/QList/QListItem.vue.js +33 -32
- package/lib/components/QList/QListItemGroup.vue.js +1 -1
- package/lib/components/QList/constants.d.ts +26 -0
- package/lib/components/QList/constants.d.ts.map +1 -1
- package/lib/components/QList/context.d.ts +12 -1
- package/lib/components/QList/context.d.ts.map +1 -1
- package/lib/components/QList/context.js +2 -2
- package/lib/components/QList/index.d.ts +79 -22
- package/lib/components/QList/index.d.ts.map +1 -1
- package/lib/components/QList/types.d.ts +11 -9
- package/lib/components/QList/types.d.ts.map +1 -1
- package/lib/components/QMeter/QMeter.d.ts.map +1 -1
- package/lib/components/QMeter/QMeter.vue.js +27 -26
- package/lib/components/QObfuscation/QObfuscation.d.ts +8 -26
- package/lib/components/QObfuscation/QObfuscation.d.ts.map +1 -1
- package/lib/components/QObfuscation/QObfuscation.vue.js +137 -113
- package/lib/components/QObfuscation/constants.d.ts +4 -0
- package/lib/components/QObfuscation/constants.d.ts.map +1 -1
- package/lib/components/QObfuscation/index.d.ts +26 -81
- package/lib/components/QObfuscation/index.d.ts.map +1 -1
- package/lib/components/QObfuscation/types.d.ts +10 -1
- package/lib/components/QObfuscation/types.d.ts.map +1 -1
- package/lib/components/QOverflow/QOverflow.d.ts +7 -3
- package/lib/components/QOverflow/QOverflow.d.ts.map +1 -1
- package/lib/components/QOverflow/QOverflow.vue.js +131 -108
- package/lib/components/QOverflow/constants.d.ts +4 -1
- package/lib/components/QOverflow/constants.d.ts.map +1 -1
- package/lib/components/QOverflow/index.d.ts +3 -3
- package/lib/components/QOverflow/types.d.ts +7 -4
- package/lib/components/QOverflow/types.d.ts.map +1 -1
- package/lib/components/QOverlay/QOverlay.d.ts +14 -5
- package/lib/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/lib/components/QOverlay/QOverlay.vue.js +183 -158
- package/lib/components/QOverlay/index.d.ts +105 -13
- package/lib/components/QOverlay/index.d.ts.map +1 -1
- package/lib/components/QOverlay/layers.d.ts +21 -0
- package/lib/components/QOverlay/layers.d.ts.map +1 -0
- package/lib/components/QOverlay/layers.js +11 -0
- package/lib/components/QOverlay/types.d.ts +0 -6
- package/lib/components/QOverlay/types.d.ts.map +1 -1
- package/lib/components/QPasswordField/QPasswordField.d.ts +52 -170
- package/lib/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/lib/components/QPasswordField/QPasswordField.vue.js +8 -3
- package/lib/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +2 -3
- package/lib/components/QPasswordField/constants.d.ts +4 -0
- package/lib/components/QPasswordField/constants.d.ts.map +1 -1
- package/lib/components/QPasswordField/index.d.ts +29 -170
- package/lib/components/QPasswordField/index.d.ts.map +1 -1
- package/lib/components/QPasswordField/types.d.ts +2 -1
- package/lib/components/QPasswordField/types.d.ts.map +1 -1
- package/lib/components/QPhoneField/QPhoneField.d.ts +485 -622
- package/lib/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/lib/components/QPhoneField/QPhoneField.vue.js +20 -13
- package/lib/components/QPhoneField/constants.d.ts +4 -0
- package/lib/components/QPhoneField/constants.d.ts.map +1 -1
- package/lib/components/QPhoneField/index.d.ts +257 -393
- package/lib/components/QPhoneField/index.d.ts.map +1 -1
- package/lib/components/QPhoneField/types.d.ts +5 -2
- package/lib/components/QPhoneField/types.d.ts.map +1 -1
- package/lib/components/QPopover/QPopover.d.ts +1 -1
- package/lib/components/QPopover/QPopover.d.ts.map +1 -1
- package/lib/components/QPopover/QPopover.vue.js +64 -42
- package/lib/components/QPopover/index.d.ts +3 -3
- package/lib/components/QPopover/types.d.ts +7 -2
- package/lib/components/QPopover/types.d.ts.map +1 -1
- package/lib/components/QProgress/QProgress.d.ts.map +1 -1
- package/lib/components/QProgress/QProgress.vue.js +47 -46
- package/lib/components/QPropertyList/QPropertyList.d.ts +1 -1
- package/lib/components/QPropertyList/QPropertyList.d.ts.map +1 -1
- package/lib/components/QPropertyList/QPropertyList.vue.js +3 -3
- package/lib/components/QPropertyList/QPropertyListGroup.d.ts +1 -1
- package/lib/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
- package/lib/components/QPropertyList/QPropertyListRow.d.ts +1 -1
- package/lib/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/lib/components/QPropertyList/QPropertyListRow.vue.js +59 -44
- package/lib/components/QPropertyList/index.d.ts +8 -8
- package/lib/components/QPropertyList/index.d.ts.map +1 -1
- package/lib/components/QPropertyList/types.d.ts +3 -3
- package/lib/components/QPropertyList/types.d.ts.map +1 -1
- package/lib/components/QRadioGroup/QRadioButton.d.ts.map +1 -1
- package/lib/components/QRadioGroup/QRadioButton.vue.js +5 -2
- package/lib/components/QRadioGroup/QRadioGroup.d.ts +1 -1
- package/lib/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
- package/lib/components/QRadioGroup/QRadioGroup.vue.js +19 -18
- package/lib/components/QRadioGroup/index.d.ts +1 -6
- package/lib/components/QRadioGroup/index.d.ts.map +1 -1
- package/lib/components/QRadioGroup/types.d.ts +0 -6
- package/lib/components/QRadioGroup/types.d.ts.map +1 -1
- package/lib/components/QSection/QSection.d.ts +3 -3
- package/lib/components/QSection/QSection.d.ts.map +1 -1
- package/lib/components/QSection/QSection.vue.js +52 -45
- package/lib/components/QSection/index.d.ts +4 -4
- package/lib/components/QSection/types.d.ts +10 -2
- package/lib/components/QSection/types.d.ts.map +1 -1
- package/lib/components/QSelect/QSelect.d.ts +306 -114
- package/lib/components/QSelect/QSelect.d.ts.map +1 -1
- package/lib/components/QSelect/QSelect.vue.js +274 -250
- package/lib/components/QSelect/constants.d.ts +4 -0
- package/lib/components/QSelect/constants.d.ts.map +1 -1
- package/lib/components/QSelect/index.d.ts +173 -144
- package/lib/components/QSelect/index.d.ts.map +1 -1
- package/lib/components/QSelect/types.d.ts +4 -2
- package/lib/components/QSelect/types.d.ts.map +1 -1
- package/lib/components/QSidebar/QSidebar.d.ts +9 -9
- package/lib/components/QSidebar/QSidebar.d.ts.map +1 -1
- package/lib/components/QSidebar/QSidebar.vue.js +2 -2
- package/lib/components/QSidebar/QSidebarAnchor.d.ts +1 -1
- package/lib/components/QSidebar/QSidebarAnchor.d.ts.map +1 -1
- package/lib/components/QSidebar/QSidebarAnchor.vue.js +4 -4
- package/lib/components/QSidebar/QSidebarItem.d.ts +7 -7
- package/lib/components/QSidebar/QSidebarItem.vue.js +3 -3
- package/lib/components/QSidebar/QSidebarPanel.d.ts +3 -3
- package/lib/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
- package/lib/components/QSidebar/QSidebarPanel.vue.js +81 -140
- package/lib/components/QSidebar/constants.d.ts.map +1 -1
- package/lib/components/QSidebar/constants.js +4 -5
- package/lib/components/QSidebar/index.d.ts +24 -24
- package/lib/components/QSidebar/types.d.ts +7 -6
- package/lib/components/QSidebar/types.d.ts.map +1 -1
- package/lib/components/QSteps/QStepHeader.d.ts +2 -1
- package/lib/components/QSteps/QStepHeader.d.ts.map +1 -1
- package/lib/components/QSteps/QStepHeader.vue.js +3 -4
- package/lib/components/QSteps/QSteps.d.ts +8 -8
- package/lib/components/QSteps/QSteps.d.ts.map +1 -1
- package/lib/components/QSteps/QSteps.vue.js +9 -6
- package/lib/components/QSteps/QStepsNav.d.ts +2 -1
- package/lib/components/QSteps/QStepsNav.d.ts.map +1 -1
- package/lib/components/QSteps/index.d.ts +12 -12
- package/lib/components/QSteps/types.d.ts +2 -2
- package/lib/components/QSteps/types.d.ts.map +1 -1
- package/lib/components/QSwitch/QSwitch.d.ts +39 -26
- package/lib/components/QSwitch/QSwitch.d.ts.map +1 -1
- package/lib/components/QSwitch/QSwitch.vue.js +64 -58
- package/lib/components/QSwitch/constants.d.ts +20 -0
- package/lib/components/QSwitch/constants.d.ts.map +1 -0
- package/lib/components/QSwitch/constants.js +9 -0
- package/lib/components/QSwitch/index.d.ts +56 -18
- package/lib/components/QSwitch/index.d.ts.map +1 -1
- package/lib/components/QSwitch/types.d.ts +21 -3
- package/lib/components/QSwitch/types.d.ts.map +1 -1
- package/lib/components/QTabs/QTab.d.ts +12 -12
- package/lib/components/QTabs/QTab.vue.js +3 -3
- package/lib/components/QTabs/QTabs.d.ts +9 -9
- package/lib/components/QTabs/QTabs.d.ts.map +1 -1
- package/lib/components/QTabs/QTabs.vue.js +92 -80
- package/lib/components/QTabs/index.d.ts +16 -16
- package/lib/components/QTabs/types.d.ts +2 -2
- package/lib/components/QTabs/types.d.ts.map +1 -1
- package/lib/components/QTextArea/QTextArea.d.ts +1 -0
- package/lib/components/QTextArea/QTextArea.d.ts.map +1 -1
- package/lib/components/QTextArea/QTextArea.vue.js +6 -1
- package/lib/components/QTextArea/index.d.ts +1 -0
- package/lib/components/QTextArea/index.d.ts.map +1 -1
- package/lib/components/QTextField/QTextField.d.ts +30 -42
- package/lib/components/QTextField/QTextField.d.ts.map +1 -1
- package/lib/components/QTextField/QTextField.vue.js +7 -2
- package/lib/components/QTextField/constants.d.ts +4 -0
- package/lib/components/QTextField/constants.d.ts.map +1 -1
- package/lib/components/QTextField/index.d.ts +26 -69
- package/lib/components/QTextField/index.d.ts.map +1 -1
- package/lib/components/QTextField/types.d.ts +2 -1
- package/lib/components/QTextField/types.d.ts.map +1 -1
- package/lib/components/QToast/QToast.d.ts +1 -1
- package/lib/components/QToast/QToast.d.ts.map +1 -1
- package/lib/components/QToast/QToast.vue.js +148 -134
- package/lib/components/QToast/QToaster.d.ts +3 -1
- package/lib/components/QToast/QToaster.d.ts.map +1 -1
- package/lib/components/QToast/QToaster.vue.js +74 -46
- package/lib/components/QToast/index.d.ts +9 -7
- package/lib/components/QToast/index.d.ts.map +1 -1
- package/lib/components/QToast/types.d.ts +2 -2
- package/lib/components/QToast/types.d.ts.map +1 -1
- package/lib/components/QToggle/QToggle.d.ts.map +1 -1
- package/lib/components/QToggle/QToggle.vue.js +2 -0
- package/lib/components/QToggle/index.d.ts +3 -3
- package/lib/components/QToggleGroup/QToggleGroupItem.d.ts +8 -1
- package/lib/components/QToggleGroup/QToggleGroupItem.d.ts.map +1 -1
- package/lib/components/QToggleGroup/QToggleGroupItem.vue.js +67 -16
- package/lib/components/QToggleGroup/index.d.ts +24 -3
- package/lib/components/QToggleGroup/index.d.ts.map +1 -1
- package/lib/components/QTooltip/QTooltip.d.ts +1 -1
- package/lib/components/QTooltip/QTooltip.vue.js +1 -1
- package/lib/components/QTooltip/index.d.ts +3 -3
- package/lib/components/__internal__/QChevron/QChevron.d.ts +1 -1
- package/lib/components/__internal__/QChevron/QChevron.d.ts.map +1 -1
- package/lib/components/__internal__/QChevron/index.d.ts +3 -3
- package/lib/components/__internal__/QChevron/types.d.ts +2 -2
- package/lib/components/__internal__/QChevron/types.d.ts.map +1 -1
- package/lib/components/__internal__/QClearButton/QClearButton.d.ts +1 -1
- package/lib/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
- package/lib/components/__internal__/QClearButton/index.d.ts +1 -1
- package/lib/components/__internal__/QClearButton/types.d.ts +2 -2
- package/lib/components/__internal__/QClearButton/types.d.ts.map +1 -1
- package/lib/components/__internal__/QHelpPopover/QHelpPopover.d.ts +7 -7
- package/lib/components/__internal__/QHelpPopover/QHelpPopover.d.ts.map +1 -1
- package/lib/components/__internal__/QHelpPopover/QHelpPopover.vue.js +3 -6
- package/lib/components/__internal__/QHelpPopover/index.d.ts +7 -7
- package/lib/components/__internal__/QHelpPopover/types.d.ts +2 -2
- package/lib/components/__internal__/QHelpPopover/types.d.ts.map +1 -1
- package/lib/components/__internal__/QListboxPanel/QListboxPanel.d.ts +34 -0
- package/lib/components/__internal__/QListboxPanel/QListboxPanel.d.ts.map +1 -0
- package/lib/components/__internal__/QListboxPanel/QListboxPanel.vue.js +76 -0
- package/lib/components/__internal__/QListboxPanel/QListboxPanel2.vue.js +5 -0
- package/lib/components/__internal__/QListboxPanel/constants.d.ts +17 -0
- package/lib/components/__internal__/QListboxPanel/constants.d.ts.map +1 -0
- package/lib/components/__internal__/QListboxPanel/constants.js +4 -0
- package/lib/components/__internal__/QListboxPanel/index.d.ts +52 -0
- package/lib/components/__internal__/QListboxPanel/index.d.ts.map +1 -0
- package/lib/components/__internal__/QListboxPanel/index.js +7 -0
- package/lib/components/__internal__/QListboxPanel/types.d.ts +50 -0
- package/lib/components/__internal__/QListboxPanel/types.d.ts.map +1 -0
- package/lib/components/__internal__/QListboxPanel/utils.d.ts +4 -0
- package/lib/components/__internal__/QListboxPanel/utils.d.ts.map +1 -0
- package/lib/components/__internal__/QListboxPanel/utils.js +6 -0
- package/lib/components/__internal__/QRequiredIndicator/QRequiredIndicator.vue.js +1 -1
- package/lib/components/__internal__/QResizeHandle/QResizeButtons.d.ts +16 -0
- package/lib/components/__internal__/QResizeHandle/QResizeButtons.d.ts.map +1 -0
- package/lib/components/__internal__/QResizeHandle/QResizeButtons.vue.js +72 -0
- package/lib/components/__internal__/QResizeHandle/QResizeButtons2.vue.js +5 -0
- package/lib/components/__internal__/QResizeHandle/QResizeHandle.d.ts +15 -0
- package/lib/components/__internal__/QResizeHandle/QResizeHandle.d.ts.map +1 -0
- package/lib/components/__internal__/QResizeHandle/QResizeHandle.vue.js +74 -0
- package/lib/components/__internal__/QResizeHandle/QResizeHandle2.vue.js +5 -0
- package/lib/components/__internal__/QResizeHandle/constants.d.ts +22 -0
- package/lib/components/__internal__/QResizeHandle/constants.d.ts.map +1 -0
- package/lib/components/__internal__/QResizeHandle/constants.js +10 -0
- package/lib/components/__internal__/QResizeHandle/index.d.ts +28 -0
- package/lib/components/__internal__/QResizeHandle/index.d.ts.map +1 -0
- package/lib/components/__internal__/QResizeHandle/index.js +7 -0
- package/lib/components/__internal__/QResizeHandle/types.d.ts +107 -0
- package/lib/components/__internal__/QResizeHandle/types.d.ts.map +1 -0
- package/lib/components/__internal__/QResizeHandle/useEdgeResize.d.ts +42 -0
- package/lib/components/__internal__/QResizeHandle/useEdgeResize.d.ts.map +1 -0
- package/lib/components/__internal__/QResizeHandle/useEdgeResize.js +36 -0
- package/lib/components/__internal__/QResizeHandle/useResizePane.d.ts +39 -0
- package/lib/components/__internal__/QResizeHandle/useResizePane.d.ts.map +1 -0
- package/lib/components/__internal__/QResizeHandle/useResizePane.js +22 -0
- package/lib/components/__internal__/QSafeTriangle/QSafeTriangle.d.ts +2 -2
- package/lib/components/__internal__/QSafeTriangle/QSafeTriangle.vue.js +1 -1
- package/lib/components/__internal__/QSafeTriangle/index.d.ts +2 -2
- package/lib/components/__internal__/QSeverityContent/QSeverityContent.d.ts +24 -0
- package/lib/components/__internal__/QSeverityContent/QSeverityContent.d.ts.map +1 -0
- package/lib/components/__internal__/QSeverityContent/QSeverityContent.vue.js +58 -0
- package/lib/components/__internal__/QSeverityContent/QSeverityContent2.vue.js +5 -0
- package/lib/components/__internal__/QSeverityContent/index.d.ts +31 -0
- package/lib/components/__internal__/QSeverityContent/index.d.ts.map +1 -0
- package/lib/components/__internal__/QSeverityContent/index.js +6 -0
- package/lib/components/__internal__/QSeverityContent/types.d.ts +67 -0
- package/lib/components/__internal__/QSeverityContent/types.d.ts.map +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +72 -70
- package/lib/composables/useColor/index.d.ts +7 -3
- package/lib/composables/useColor/index.d.ts.map +1 -1
- package/lib/composables/useColor/index.js +40 -38
- package/lib/composables/useColor/types.d.ts +5 -4
- package/lib/composables/useColor/types.d.ts.map +1 -1
- package/lib/composables/useDialog/_internal.js +1 -1
- package/lib/composables/useDialog/types.d.ts +6 -2
- package/lib/composables/useDialog/types.d.ts.map +1 -1
- package/lib/composables/useScrollTabStop/index.d.ts +17 -0
- package/lib/composables/useScrollTabStop/index.d.ts.map +1 -0
- package/lib/composables/useScrollTabStop/index.js +45 -0
- package/lib/composables/useVirtualList/index.d.ts +73 -0
- package/lib/composables/useVirtualList/index.d.ts.map +1 -0
- package/lib/composables/useVirtualList/index.js +83 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/types/component.d.ts +12 -5
- package/lib/types/component.d.ts.map +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/utils/boundedValue.d.ts +20 -0
- package/lib/utils/boundedValue.d.ts.map +1 -0
- package/lib/utils/boundedValue.js +9 -0
- package/lib/utils/color/blend.d.ts +13 -0
- package/lib/utils/color/blend.d.ts.map +1 -1
- package/lib/utils/color/blend.js +6 -3
- package/lib/utils/color/contrast.d.ts +19 -0
- package/lib/utils/color/contrast.d.ts.map +1 -1
- package/lib/utils/color/contrast.js +26 -11
- package/lib/utils/color/index.d.ts +1 -1
- package/lib/utils/color/index.d.ts.map +1 -1
- package/lib/utils/date.d.ts +18 -8
- package/lib/utils/date.d.ts.map +1 -1
- package/lib/utils/date.js +26 -14
- package/lib/utils/index.js +14 -13
- package/lib/utils/overlay.d.ts +6 -0
- package/lib/utils/overlay.d.ts.map +1 -1
- package/lib/utils/overlay.js +10 -10
- package/lib/utils/popupLabel.d.ts +15 -0
- package/lib/utils/popupLabel.d.ts.map +1 -0
- package/lib/utils/popupLabel.js +6 -0
- package/lib/utils/railWidth.d.ts +15 -0
- package/lib/utils/railWidth.d.ts.map +1 -0
- package/lib/utils/railWidth.js +4 -0
- package/lib/utils/safeTriangle.d.ts +4 -4
- package/lib/utils/safeTriangle.d.ts.map +1 -1
- package/lib/utils/slots.d.ts +11 -2
- package/lib/utils/slots.d.ts.map +1 -1
- package/lib/utils/slots.js +7 -4
- package/lib/utils/theme.d.ts +3 -3
- package/lib/utils/theme.d.ts.map +1 -1
- package/lib/utils/theme.js +31 -31
- package/package.json +1 -1
|
@@ -2,18 +2,16 @@ import { useId as e } from "../../composables/useId/index.js";
|
|
|
2
2
|
import { QIcon as t } from "../QIcon/index.js";
|
|
3
3
|
import { getElement as n } from "../../utils/getElement.js";
|
|
4
4
|
import { QOverlay as r } from "../QOverlay/index.js";
|
|
5
|
-
import {
|
|
5
|
+
import { hasSlotContent as i } from "../../utils/slots.js";
|
|
6
|
+
import { DEFAULT_ICONS as a } from "./constants.js";
|
|
6
7
|
import { getRenderedListItems as ee } from "../QList/groupListItems.js";
|
|
7
8
|
import { QList as te } from "../QList/index.js";
|
|
8
9
|
import { QSafeTriangle as ne } from "../__internal__/QSafeTriangle/index.js";
|
|
9
10
|
import { useSafeTriangle as re } from "../../composables/useSafeTriangle/index.js";
|
|
10
11
|
import { menuListId as ie } from "./ids.js";
|
|
11
|
-
import { Fragment as
|
|
12
|
+
import { Fragment as ae, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as oe, createSlots as se, createVNode as u, defineComponent as d, guardReactiveProps as f, mergeModels as p, nextTick as m, normalizeClass as h, normalizeProps as g, openBlock as _, ref as v, renderSlot as y, resolveComponent as ce, toDisplayString as le, toRef as ue, unref as b, useModel as x, useSlots as de, useTemplateRef as S, watch as C, withCtx as w, withModifiers as fe } from "vue";
|
|
12
13
|
//#region src/components/QDropdownMenu/QDropdownMenuContent.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var
|
|
14
|
-
key: 0,
|
|
15
|
-
class: "q-dropdown-menu__extra"
|
|
16
|
-
}, D = /*@__PURE__*/ d({
|
|
14
|
+
var pe = ["id"], T = /*@__PURE__*/ d({
|
|
17
15
|
__name: "QDropdownMenuContent",
|
|
18
16
|
props: /*@__PURE__*/ p({
|
|
19
17
|
id: {},
|
|
@@ -29,7 +27,7 @@ var E = {
|
|
|
29
27
|
inline: { type: Boolean },
|
|
30
28
|
delay: { default: 500 },
|
|
31
29
|
trigger: { default: "hover" },
|
|
32
|
-
icons: { default: () =>
|
|
30
|
+
icons: { default: () => a },
|
|
33
31
|
depth: { default: 0 },
|
|
34
32
|
offset: { default: 6 },
|
|
35
33
|
crossOffset: { default: -5 }
|
|
@@ -46,49 +44,76 @@ var E = {
|
|
|
46
44
|
"focus-previous",
|
|
47
45
|
"focus-next"
|
|
48
46
|
], ["update:modelValue", "update:highlighted"]),
|
|
49
|
-
setup(
|
|
50
|
-
let
|
|
51
|
-
function
|
|
47
|
+
setup(a, { expose: d, emit: p }) {
|
|
48
|
+
let T = a, E = p, D = de(), O = x(a, "modelValue"), k = x(a, "highlighted"), A = e(ue(T, "id"));
|
|
49
|
+
function me() {
|
|
50
|
+
return T.activator && n(T.activator)?.id || void 0;
|
|
51
|
+
}
|
|
52
|
+
let j = v(void 0), M = v([]);
|
|
53
|
+
function N(e) {
|
|
54
|
+
let t = T.items?.findIndex((t) => t[T.itemValue] === e[T.itemValue]);
|
|
55
|
+
return `${A.value}_extra_${t}`;
|
|
56
|
+
}
|
|
57
|
+
function he(e) {
|
|
58
|
+
return !!e.extraInfo && !i(D["item.append"], { props: { item: e } });
|
|
59
|
+
}
|
|
60
|
+
function ge() {
|
|
61
|
+
let e = !1, t = T.items?.map((t) => he(t) ? (e = !0, {
|
|
62
|
+
...t,
|
|
63
|
+
ariaDescribedby: [t.ariaDescribedby, N(t)].filter(Boolean).join(" ")
|
|
64
|
+
}) : t);
|
|
65
|
+
return e ? t : T.items;
|
|
66
|
+
}
|
|
67
|
+
function P(e) {
|
|
68
|
+
return T.items?.find((t) => t[T.itemValue] === e[T.itemValue]) ?? e;
|
|
69
|
+
}
|
|
70
|
+
let F = o(() => ee(T.items, T.groups)), I = o(() => T.depth === 0 ? "click" : "manual"), L = o(() => T.depth === 0 ? 4 : T.offset), _e = o(() => T.depth === 0 ? void 0 : T.crossOffset), R = S("list"), z = S("body"), B = v(null), ve = o(() => "right-start"), V = o(() => T.trigger !== "hover" || j.value === void 0 ? !1 : ((T.items?.find((e) => e[T.itemValue] === j.value))?.items?.length ?? 0) > 0);
|
|
71
|
+
function ye(e) {
|
|
52
72
|
return "syncHoverFromPoint" in e && "getMenuRect" in e && "getMenuRoot" in e && "hasOpenSubmenu" in e;
|
|
53
73
|
}
|
|
54
|
-
function
|
|
55
|
-
if (e &&
|
|
56
|
-
|
|
74
|
+
function be(e, t) {
|
|
75
|
+
if (e && j.value === t && ye(e)) {
|
|
76
|
+
B.value = e;
|
|
57
77
|
return;
|
|
58
78
|
}
|
|
59
|
-
!e &&
|
|
79
|
+
!e && j.value === t && (B.value = null);
|
|
60
80
|
}
|
|
61
|
-
async function
|
|
81
|
+
async function xe() {
|
|
62
82
|
await m(), await m(), U();
|
|
63
|
-
let { x: e, y: t } =
|
|
64
|
-
|
|
83
|
+
let { x: e, y: t } = Ae();
|
|
84
|
+
B.value?.syncHoverFromPoint(e, t);
|
|
65
85
|
}
|
|
66
|
-
function
|
|
67
|
-
return
|
|
86
|
+
function Se() {
|
|
87
|
+
return B.value?.getMenuRect() ?? null;
|
|
68
88
|
}
|
|
69
|
-
function
|
|
70
|
-
return
|
|
89
|
+
function Ce() {
|
|
90
|
+
return B.value?.getMenuRoot() ?? null;
|
|
71
91
|
}
|
|
72
|
-
function
|
|
73
|
-
return
|
|
92
|
+
function we() {
|
|
93
|
+
return B.value?.hasOpenSubmenu() ?? !1;
|
|
74
94
|
}
|
|
75
|
-
let { visible:
|
|
76
|
-
enabled:
|
|
77
|
-
placement:
|
|
78
|
-
getParentRect: () =>
|
|
79
|
-
getContentRect:
|
|
80
|
-
getContentRoot:
|
|
81
|
-
shouldSuppressLeave:
|
|
95
|
+
let { visible: Te, top: Ee, left: De, width: Oe, height: H, path: ke, refresh: U, getLastPointer: Ae } = re({
|
|
96
|
+
enabled: V,
|
|
97
|
+
placement: ve,
|
|
98
|
+
getParentRect: () => z.value?.getBoundingClientRect() ?? null,
|
|
99
|
+
getContentRect: Se,
|
|
100
|
+
getContentRoot: Ce,
|
|
101
|
+
shouldSuppressLeave: we,
|
|
82
102
|
onLeave: J,
|
|
83
103
|
onEnterContent: (e, t) => {
|
|
84
|
-
|
|
104
|
+
B.value?.syncHoverFromPoint(e, t);
|
|
85
105
|
}
|
|
86
106
|
});
|
|
87
|
-
C(
|
|
88
|
-
|
|
107
|
+
C(j, (e, t) => {
|
|
108
|
+
let n = B.value?.getMenuRoot();
|
|
109
|
+
t !== void 0 && n?.contains(document.activeElement) && je(k.value ?? t), B.value = null;
|
|
89
110
|
});
|
|
90
|
-
function
|
|
91
|
-
let
|
|
111
|
+
function je(e) {
|
|
112
|
+
let t = F.value.findIndex((t) => t[T.itemValue] === e);
|
|
113
|
+
R.value?.getItem(t)?.focus();
|
|
114
|
+
}
|
|
115
|
+
function Me(e, t) {
|
|
116
|
+
let n = z.value;
|
|
92
117
|
if (!n) return;
|
|
93
118
|
let r = document.elementsFromPoint(e, t);
|
|
94
119
|
for (let e of r) {
|
|
@@ -97,27 +122,27 @@ var E = {
|
|
|
97
122
|
if (!t || !n.contains(t) || t.closest(".q-dropdown-menu__body") !== n) continue;
|
|
98
123
|
let r = t.getAttribute("data-key");
|
|
99
124
|
if (r === null) continue;
|
|
100
|
-
let i =
|
|
101
|
-
if (i) return i[
|
|
125
|
+
let i = T.items?.find((e) => String(e[T.itemValue]) === r);
|
|
126
|
+
if (i) return i[T.itemValue];
|
|
102
127
|
}
|
|
103
128
|
}
|
|
104
129
|
function W(e, t) {
|
|
105
|
-
if (
|
|
106
|
-
let n =
|
|
130
|
+
if (T.trigger !== "hover") return;
|
|
131
|
+
let n = Me(e, t);
|
|
107
132
|
n !== void 0 && G(n);
|
|
108
133
|
}
|
|
109
|
-
function
|
|
134
|
+
function Ne(e) {
|
|
110
135
|
U(e.clientX, e.clientY), W(e.clientX, e.clientY);
|
|
111
136
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
137
|
+
function Pe(e) {
|
|
138
|
+
V.value && W(e.clientX, e.clientY), U(e.clientX, e.clientY);
|
|
114
139
|
}
|
|
115
|
-
function
|
|
116
|
-
|
|
117
|
-
let t =
|
|
118
|
-
|
|
140
|
+
function Fe(e) {
|
|
141
|
+
M.value = T.items?.find((t) => t[T.itemValue] === e)?.items ?? [];
|
|
142
|
+
let t = M.value.length > 0;
|
|
143
|
+
k.value = e, t ? $(e) : K(e);
|
|
119
144
|
}
|
|
120
|
-
function
|
|
145
|
+
function Ie(e) {
|
|
121
146
|
if (!(e.altKey || e.ctrlKey || e.metaKey)) switch ([
|
|
122
147
|
"Enter",
|
|
123
148
|
"ArrowDown",
|
|
@@ -127,11 +152,11 @@ var E = {
|
|
|
127
152
|
"Tab"
|
|
128
153
|
].includes(e.key) && (e.preventDefault(), e.stopPropagation()), e.key) {
|
|
129
154
|
case "ArrowRight":
|
|
130
|
-
let t =
|
|
131
|
-
(t || t === 0) &&
|
|
155
|
+
let t = R.value?.getActiveItemIndex();
|
|
156
|
+
(t || t === 0) && F.value[t] && (k.value = F.value[t].key, $(F.value[t].key));
|
|
132
157
|
break;
|
|
133
158
|
case "ArrowLeft":
|
|
134
|
-
|
|
159
|
+
T.depth > 0 && Y();
|
|
135
160
|
break;
|
|
136
161
|
case "Escape":
|
|
137
162
|
Y();
|
|
@@ -142,181 +167,184 @@ var E = {
|
|
|
142
167
|
}
|
|
143
168
|
}
|
|
144
169
|
function G(e) {
|
|
145
|
-
|
|
170
|
+
T.trigger === "hover" && (k.value = e, $(e));
|
|
146
171
|
}
|
|
147
172
|
function K(e) {
|
|
148
|
-
|
|
173
|
+
E("select", e), X();
|
|
149
174
|
}
|
|
150
|
-
function
|
|
175
|
+
function Le() {
|
|
151
176
|
q?.contains(document.activeElement) ? Y() : J();
|
|
152
177
|
}
|
|
153
178
|
let q = null;
|
|
154
|
-
C(
|
|
179
|
+
C(z, (e) => {
|
|
155
180
|
e && (q = e);
|
|
156
181
|
});
|
|
157
182
|
function J() {
|
|
158
|
-
|
|
183
|
+
j.value = void 0, k.value = void 0;
|
|
159
184
|
}
|
|
160
185
|
function Y(e = "previous") {
|
|
161
|
-
J(),
|
|
186
|
+
J(), O.value = !1, E(e === "next" ? "focus-next" : "focus-previous");
|
|
162
187
|
}
|
|
163
188
|
function X(e = "previous") {
|
|
164
|
-
Y(e),
|
|
189
|
+
Y(e), E("hide", e);
|
|
165
190
|
}
|
|
166
191
|
function Z(e) {
|
|
167
192
|
let t = e.target;
|
|
168
|
-
|
|
193
|
+
z.value?.contains(t) || T.activator && n(T.activator)?.contains(t) || X();
|
|
169
194
|
}
|
|
170
195
|
let Q = ["mousedown", "touchstart"];
|
|
171
|
-
|
|
196
|
+
T.depth === 0 && C(() => j.value !== void 0, (e, t, n) => {
|
|
172
197
|
e && (Q.forEach((e) => document.addEventListener(e, Z, {
|
|
173
198
|
capture: !0,
|
|
174
199
|
passive: !0
|
|
175
200
|
})), n(() => Q.forEach((e) => document.removeEventListener(e, Z, { capture: !0 }))));
|
|
176
201
|
});
|
|
177
202
|
function $(e) {
|
|
178
|
-
|
|
203
|
+
j.value = (T.items?.find((t) => t[T.itemValue] === e))?.items?.length ? e : void 0;
|
|
179
204
|
}
|
|
180
|
-
function
|
|
181
|
-
let e =
|
|
182
|
-
|
|
205
|
+
function Re() {
|
|
206
|
+
let e = F.value.findIndex((e) => e[T.itemValue] === j.value), t = R.value?.getItem(e);
|
|
207
|
+
j.value = void 0, k.value = void 0, t?.focus();
|
|
183
208
|
}
|
|
184
|
-
function
|
|
185
|
-
m(() =>
|
|
209
|
+
function ze() {
|
|
210
|
+
m(() => R.value?.$el.focus());
|
|
186
211
|
}
|
|
187
|
-
function
|
|
188
|
-
|
|
212
|
+
function Be() {
|
|
213
|
+
E("open"), ze();
|
|
189
214
|
}
|
|
190
215
|
return d({
|
|
191
216
|
getMenuRect: () => {
|
|
192
|
-
let e =
|
|
217
|
+
let e = z.value;
|
|
193
218
|
return e ? (e.closest(".q-overlay") ?? e).getBoundingClientRect() : null;
|
|
194
219
|
},
|
|
195
|
-
getMenuRoot: () =>
|
|
196
|
-
hasOpenSubmenu: () =>
|
|
220
|
+
getMenuRoot: () => z.value?.closest(".q-overlay") ?? z.value,
|
|
221
|
+
hasOpenSubmenu: () => j.value === void 0 ? !1 : ((T.items?.find((e) => e[T.itemValue] === j.value))?.items?.length ?? 0) > 0,
|
|
197
222
|
syncHoverFromPoint: W
|
|
198
223
|
}), (e, n) => {
|
|
199
|
-
let i =
|
|
224
|
+
let i = ce("q-dropdown-menu-content", !0);
|
|
200
225
|
return _(), s(b(r), {
|
|
201
|
-
id: b(
|
|
202
|
-
modelValue:
|
|
203
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
204
|
-
anchor:
|
|
205
|
-
appearance:
|
|
206
|
-
inline:
|
|
207
|
-
delay:
|
|
208
|
-
offset:
|
|
209
|
-
"cross-offset":
|
|
210
|
-
placement:
|
|
211
|
-
transition:
|
|
212
|
-
class: h(
|
|
213
|
-
trigger:
|
|
226
|
+
id: b(A),
|
|
227
|
+
modelValue: O.value,
|
|
228
|
+
"onUpdate:modelValue": n[0] ||= (e) => O.value = e,
|
|
229
|
+
anchor: T.activator,
|
|
230
|
+
appearance: T.appearance,
|
|
231
|
+
inline: T.inline,
|
|
232
|
+
delay: T.delay,
|
|
233
|
+
offset: L.value,
|
|
234
|
+
"cross-offset": _e.value,
|
|
235
|
+
placement: T.placement,
|
|
236
|
+
transition: T.transition,
|
|
237
|
+
class: h(T.class),
|
|
238
|
+
trigger: I.value,
|
|
214
239
|
"scroll-lock": "",
|
|
215
240
|
"non-modal": "",
|
|
216
|
-
onEnter:
|
|
217
|
-
onLeave:
|
|
241
|
+
onEnter: Be,
|
|
242
|
+
onLeave: Le
|
|
218
243
|
}, {
|
|
219
|
-
default: w(() => [
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}, {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
"items",
|
|
284
|
-
"groups",
|
|
285
|
-
"appearance",
|
|
286
|
-
"transition",
|
|
287
|
-
"delay",
|
|
288
|
-
"trigger",
|
|
289
|
-
"icons",
|
|
290
|
-
"depth"
|
|
291
|
-
])) : c("v-if", !0)], 64)) : c("v-if", !0)]),
|
|
292
|
-
_: 3
|
|
293
|
-
}, 8, [
|
|
244
|
+
default: w(() => [oe("div", {
|
|
245
|
+
ref: "body",
|
|
246
|
+
class: "q-dropdown-menu__body",
|
|
247
|
+
"data-testid": "dropdown-content",
|
|
248
|
+
tabindex: "-1",
|
|
249
|
+
onPointerenter: Ne,
|
|
250
|
+
onPointermove: Pe,
|
|
251
|
+
onKeydown: fe(Ie, ["stop"])
|
|
252
|
+
}, [
|
|
253
|
+
y(e.$slots, "prepend"),
|
|
254
|
+
u(b(te), {
|
|
255
|
+
id: b(ie)(b(A)),
|
|
256
|
+
ref: "list",
|
|
257
|
+
role: "menu",
|
|
258
|
+
"aria-labelledby": me(),
|
|
259
|
+
class: "q-dropdown-menu__items",
|
|
260
|
+
highlighted: k.value,
|
|
261
|
+
items: ge(),
|
|
262
|
+
groups: T.groups,
|
|
263
|
+
"item-label": T.itemLabel,
|
|
264
|
+
"item-value": T.itemValue,
|
|
265
|
+
selectable: !1,
|
|
266
|
+
"select-on-tab": !1,
|
|
267
|
+
icons: T.icons,
|
|
268
|
+
onClick: Fe,
|
|
269
|
+
"onMouseenter:item": G
|
|
270
|
+
}, {
|
|
271
|
+
item: w(({ item: t }) => [y(e.$slots, "item", { item: P(t) })]),
|
|
272
|
+
"item.append": w(({ item: n, element: r }) => [y(e.$slots, "item.append", { item: P(n) }, () => [n.extraInfo ? (_(), l("span", {
|
|
273
|
+
key: 0,
|
|
274
|
+
id: N(n),
|
|
275
|
+
class: "q-dropdown-menu__extra"
|
|
276
|
+
}, le(n.extraInfo), 9, pe)) : c("", !0)]), n.items?.length > 0 ? (_(), l(ae, { key: 0 }, [u(b(t), g(f(T.icons.expand)), null, 16), j.value === n.key ? (_(), s(i, {
|
|
277
|
+
key: 0,
|
|
278
|
+
id: `${b(A)}_submenu`,
|
|
279
|
+
ref: (e) => be(e, n.key),
|
|
280
|
+
"model-value": "",
|
|
281
|
+
class: h(T.class),
|
|
282
|
+
activator: r,
|
|
283
|
+
"item-value": T.itemValue,
|
|
284
|
+
"item-label": T.itemLabel,
|
|
285
|
+
items: n.items,
|
|
286
|
+
groups: n.groups,
|
|
287
|
+
appearance: T.appearance,
|
|
288
|
+
transition: T.transition,
|
|
289
|
+
delay: T.delay,
|
|
290
|
+
trigger: T.trigger,
|
|
291
|
+
icons: T.icons,
|
|
292
|
+
depth: T.depth + 1,
|
|
293
|
+
placement: "right-start",
|
|
294
|
+
"non-modal": "",
|
|
295
|
+
inline: "",
|
|
296
|
+
onOpen: xe,
|
|
297
|
+
onHide: X,
|
|
298
|
+
onSelect: K,
|
|
299
|
+
onFocusPrevious: Re
|
|
300
|
+
}, se({
|
|
301
|
+
item: w((t) => [y(e.$slots, "item", g(f(t)))]),
|
|
302
|
+
_: 2
|
|
303
|
+
}, [D["item.append"] ? {
|
|
304
|
+
name: "item.append",
|
|
305
|
+
fn: w((t) => [y(e.$slots, "item.append", g(f(t)))]),
|
|
306
|
+
key: "0"
|
|
307
|
+
} : void 0]), 1032, [
|
|
294
308
|
"id",
|
|
295
|
-
"
|
|
296
|
-
"
|
|
309
|
+
"class",
|
|
310
|
+
"activator",
|
|
311
|
+
"item-value",
|
|
312
|
+
"item-label",
|
|
297
313
|
"items",
|
|
298
314
|
"groups",
|
|
299
|
-
"
|
|
300
|
-
"
|
|
301
|
-
"
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
"
|
|
314
|
-
"
|
|
315
|
-
"
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
315
|
+
"appearance",
|
|
316
|
+
"transition",
|
|
317
|
+
"delay",
|
|
318
|
+
"trigger",
|
|
319
|
+
"icons",
|
|
320
|
+
"depth"
|
|
321
|
+
])) : c("", !0)], 64)) : c("", !0)]),
|
|
322
|
+
_: 3
|
|
323
|
+
}, 8, [
|
|
324
|
+
"id",
|
|
325
|
+
"aria-labelledby",
|
|
326
|
+
"highlighted",
|
|
327
|
+
"items",
|
|
328
|
+
"groups",
|
|
329
|
+
"item-label",
|
|
330
|
+
"item-value",
|
|
331
|
+
"icons"
|
|
332
|
+
]),
|
|
333
|
+
y(e.$slots, "append")
|
|
334
|
+
], 544), b(Te) ? (_(), s(b(ne), {
|
|
335
|
+
key: 0,
|
|
336
|
+
top: b(Ee),
|
|
337
|
+
left: b(De),
|
|
338
|
+
width: b(Oe),
|
|
339
|
+
height: b(H),
|
|
340
|
+
path: b(ke)
|
|
341
|
+
}, null, 8, [
|
|
342
|
+
"top",
|
|
343
|
+
"left",
|
|
344
|
+
"width",
|
|
345
|
+
"height",
|
|
346
|
+
"path"
|
|
347
|
+
])) : c("", !0)]),
|
|
320
348
|
_: 3
|
|
321
349
|
}, 8, [
|
|
322
350
|
"id",
|
|
@@ -336,4 +364,4 @@ var E = {
|
|
|
336
364
|
}
|
|
337
365
|
});
|
|
338
366
|
//#endregion
|
|
339
|
-
export {
|
|
367
|
+
export { T as default };
|
|
@@ -5,4 +5,10 @@
|
|
|
5
5
|
* @param menuId - The id of the menu level (`QDropdownMenuContent`).
|
|
6
6
|
*/
|
|
7
7
|
export declare function menuListId(menuId: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* Id the menu gives an activator that has none, so the activator can name the menu.
|
|
10
|
+
*
|
|
11
|
+
* @param menuId - The id of the menu (`QDropdownMenu`).
|
|
12
|
+
*/
|
|
13
|
+
export declare function activatorFallbackId(menuId: string): string;
|
|
8
14
|
//# sourceMappingURL=ids.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids.d.ts","sourceRoot":"","sources":["../../../src/components/QDropdownMenu/ids.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEjD"}
|
|
1
|
+
{"version":3,"file":"ids.d.ts","sourceRoot":"","sources":["../../../src/components/QDropdownMenu/ids.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE1D"}
|
|
@@ -13,10 +13,10 @@ declare const QDropdownMenu: {
|
|
|
13
13
|
inline?: boolean;
|
|
14
14
|
delay?: number;
|
|
15
15
|
trigger?: import('..').QOverlayTrigger;
|
|
16
|
-
icons?: typeof import('./constants').DEFAULT_ICONS
|
|
16
|
+
icons?: import('../..').QIcons<keyof typeof import('./constants').DEFAULT_ICONS>;
|
|
17
17
|
}> & Readonly<{
|
|
18
|
-
onSelect?: ((item: any) => any) | undefined;
|
|
19
18
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
19
|
+
onSelect?: ((item: any) => any) | undefined;
|
|
20
20
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
21
|
"update:modelValue": (value: boolean) => any;
|
|
22
22
|
} & {
|
|
@@ -44,10 +44,10 @@ declare const QDropdownMenu: {
|
|
|
44
44
|
inline?: boolean;
|
|
45
45
|
delay?: number;
|
|
46
46
|
trigger?: import('..').QOverlayTrigger;
|
|
47
|
-
icons?: typeof import('./constants').DEFAULT_ICONS
|
|
47
|
+
icons?: import('../..').QIcons<keyof typeof import('./constants').DEFAULT_ICONS>;
|
|
48
48
|
}> & Readonly<{
|
|
49
|
-
onSelect?: ((item: any) => any) | undefined;
|
|
50
49
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
50
|
+
onSelect?: ((item: any) => any) | undefined;
|
|
51
51
|
}>, {}, {}, {}, {}, {
|
|
52
52
|
inline: boolean;
|
|
53
53
|
}>;
|
|
@@ -68,10 +68,10 @@ declare const QDropdownMenu: {
|
|
|
68
68
|
inline?: boolean;
|
|
69
69
|
delay?: number;
|
|
70
70
|
trigger?: import('..').QOverlayTrigger;
|
|
71
|
-
icons?: typeof import('./constants').DEFAULT_ICONS
|
|
71
|
+
icons?: import('../..').QIcons<keyof typeof import('./constants').DEFAULT_ICONS>;
|
|
72
72
|
}> & Readonly<{
|
|
73
|
-
onSelect?: ((item: any) => any) | undefined;
|
|
74
73
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
74
|
+
onSelect?: ((item: any) => any) | undefined;
|
|
75
75
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
76
76
|
"update:modelValue": (value: boolean) => any;
|
|
77
77
|
} & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Appearance, Placement, Trigger } from '../../utils/overlay';
|
|
2
|
-
import { QBaseComponentProps } from '../../types/component';
|
|
2
|
+
import { QBaseComponentProps, QIcons } from '../../types/component';
|
|
3
3
|
import { Selector } from '../../utils/getElement';
|
|
4
4
|
import { QListItemData, QListItemGroupData } from '../QList/types';
|
|
5
5
|
import { DEFAULT_ICONS } from './constants';
|
|
@@ -7,7 +7,8 @@ export type QDropdownMenuProps = QBaseComponentProps & {
|
|
|
7
7
|
/**
|
|
8
8
|
* The DOM element used to activate the dropdown menu, such as a button. It takes the states
|
|
9
9
|
* of a menu button (`aria-haspopup`, `aria-expanded` and, while the menu is open,
|
|
10
|
-
* `aria-controls`), and its `id` names the menu.
|
|
10
|
+
* `aria-controls`), and its `id` names the menu. An activator without an `id` gets one
|
|
11
|
+
* while it opens the menu.
|
|
11
12
|
*
|
|
12
13
|
* @category Identification
|
|
13
14
|
*/
|
|
@@ -25,7 +26,8 @@ export type QDropdownMenuProps = QBaseComponentProps & {
|
|
|
25
26
|
*/
|
|
26
27
|
itemLabel?: string;
|
|
27
28
|
/**
|
|
28
|
-
* The list of available items for selection.
|
|
29
|
+
* The list of available items for selection. An item's `extraInfo`, such as a shortcut,
|
|
30
|
+
* shows at its end and describes it, unless the `item.append` slot replaces it.
|
|
29
31
|
*
|
|
30
32
|
* @category Content
|
|
31
33
|
*/
|
|
@@ -80,7 +82,7 @@ export type QDropdownMenuProps = QBaseComponentProps & {
|
|
|
80
82
|
*
|
|
81
83
|
* @category Configuration
|
|
82
84
|
*/
|
|
83
|
-
icons?: typeof DEFAULT_ICONS
|
|
85
|
+
icons?: QIcons<keyof typeof DEFAULT_ICONS>;
|
|
84
86
|
};
|
|
85
87
|
export type QDropdownMenuContentProps = QDropdownMenuProps & {
|
|
86
88
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QDropdownMenu/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AACzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QDropdownMenu/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AACzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAAG;IACtD;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAA;IAEpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,aAAa,EAAE,CAAA;IAEvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAA;IAE7B;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,UAAU,CAAA;IAEvB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,OAAO,aAAa,CAAC,CAAA;CAC1C,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG,kBAAkB,GAAG;IAC5D;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG;IACzC,WAAW,EAAE,MAAM,OAAO,GAAG,IAAI,CAAA;IACjC,WAAW,EAAE,MAAM,WAAW,GAAG,IAAI,CAAA;IACrC,cAAc,EAAE,MAAM,OAAO,CAAA;IAC7B,kBAAkB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CAC9D,CAAA"}
|