@quidgest/ui 0.31.2 → 0.32.1
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 +63 -0
- package/dist/json/api.json +1278 -324
- package/dist/manifest/components.json +1 -0
- package/dist/ui.css +1183 -428
- package/dist/ui.esm.js +1640 -1393
- package/dist/ui.min.css +1 -1
- package/dist/ui.scss +1354 -386
- 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 +87 -73
- package/lib/components/QAlert/index.d.ts +3 -3
- package/lib/components/QAlert/types.d.ts +32 -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 +72 -55
- package/lib/components/QBadge/index.d.ts +3 -3
- package/lib/components/QBadge/types.d.ts +13 -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 +894 -765
- 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/QDefaultsProvider/QDefaultsProvider.vue.js +4 -2
- package/lib/components/QDefaultsProvider/types.d.ts +10 -0
- package/lib/components/QDefaultsProvider/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 +461 -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 +235 -195
- 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 +10 -9
- 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 +153 -124
- package/lib/components/QGauge/types.d.ts +16 -1
- package/lib/components/QGauge/types.d.ts.map +1 -1
- 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 +35 -31
- package/lib/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/lib/components/QInputGroup/QInputGroup.vue.js +96 -49
- package/lib/components/QInputGroup/index.d.ts +14 -12
- package/lib/components/QInputGroup/index.d.ts.map +1 -1
- package/lib/components/QLabel/QLabel.d.ts.map +1 -1
- package/lib/components/QLabel/QLabel.vue.js +2 -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 +51 -43
- 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/QMeter/types.d.ts +3 -0
- package/lib/components/QMeter/types.d.ts.map +1 -1
- 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 +194 -166
- 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 +491 -622
- package/lib/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/lib/components/QPhoneField/QPhoneField.vue.js +21 -14
- 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 +260 -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 +66 -46
- package/lib/components/QProgress/types.d.ts +3 -0
- package/lib/components/QProgress/types.d.ts.map +1 -1
- 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 +2 -2
- 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 +4 -9
- 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 +312 -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 +176 -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 +78 -47
- 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/defaults.d.ts +25 -1
- package/lib/composables/defaults.d.ts.map +1 -1
- package/lib/composables/defaults.js +15 -7
- package/lib/composables/useColor/index.d.ts +9 -3
- package/lib/composables/useColor/index.d.ts.map +1 -1
- package/lib/composables/useColor/index.js +50 -42
- package/lib/composables/useColor/types.d.ts +17 -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/bidi.d.ts +27 -0
- package/lib/utils/bidi.d.ts.map +1 -0
- package/lib/utils/bidi.js +15 -0
- 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
|
@@ -10,25 +10,14 @@ import { hasSlotContent as o } from "../../utils/slots.js";
|
|
|
10
10
|
import { QButton as s } from "../QButton/index.js";
|
|
11
11
|
import { QCard as re } from "../QCard/index.js";
|
|
12
12
|
import { getDefaultLive as ie, isSeverity as ae } from "../../utils/severity.js";
|
|
13
|
-
import {
|
|
13
|
+
import { QSeverityContent as c } from "../__internal__/QSeverityContent/index.js";
|
|
14
|
+
import { QCol as l, QContainer as u, QRow as d } from "../QGrid/index.js";
|
|
14
15
|
import { ToastSymbol as oe } from "../../composables/useToast/_internal.js";
|
|
15
|
-
import { DEFAULT_ICONS as
|
|
16
|
+
import { DEFAULT_ICONS as f, DEFAULT_TEXTS as p } from "./constants.js";
|
|
16
17
|
import { ToasterSymbol as se } from "./context.js";
|
|
17
|
-
import { computed as
|
|
18
|
+
import { computed as m, createBlock as h, createCommentVNode as g, createElementVNode as ce, createSlots as _, createVNode as v, defineComponent as y, guardReactiveProps as b, inject as x, normalizeClass as le, normalizeProps as S, normalizeStyle as ue, onBeforeUnmount as de, onMounted as fe, onUnmounted as pe, openBlock as C, renderSlot as w, toDisplayString as me, toRef as T, unref as E, useTemplateRef as he, watch as ge, withCtx as D } from "vue";
|
|
18
19
|
//#region src/components/QToast/QToast.vue?vue&type=script&setup=true&lang.ts
|
|
19
|
-
var
|
|
20
|
-
class: "q-toast__icon",
|
|
21
|
-
"aria-hidden": "true"
|
|
22
|
-
}, ye = { class: "q-toast__title" }, be = {
|
|
23
|
-
key: 0,
|
|
24
|
-
class: "q-sr-only"
|
|
25
|
-
}, xe = {
|
|
26
|
-
class: "q-toast__icon",
|
|
27
|
-
"aria-hidden": "true"
|
|
28
|
-
}, Se = {
|
|
29
|
-
key: 0,
|
|
30
|
-
class: "q-sr-only"
|
|
31
|
-
}, A = /*@__PURE__*/ y({
|
|
20
|
+
var _e = { class: "q-toast__title" }, O = /*@__PURE__*/ y({
|
|
32
21
|
__name: "QToast",
|
|
33
22
|
props: {
|
|
34
23
|
id: {},
|
|
@@ -42,31 +31,31 @@ var ve = {
|
|
|
42
31
|
variant: { default: "tonal" },
|
|
43
32
|
timeout: { default: 5e3 },
|
|
44
33
|
live: {},
|
|
45
|
-
icons: { default: () =>
|
|
46
|
-
texts: { default: () =>
|
|
34
|
+
icons: { default: () => f },
|
|
35
|
+
texts: { default: () => p },
|
|
47
36
|
entryKey: { default: void 0 }
|
|
48
37
|
},
|
|
49
38
|
emits: ["dismiss"],
|
|
50
|
-
setup(
|
|
51
|
-
let y =
|
|
39
|
+
setup(f, { emit: p }) {
|
|
40
|
+
let y = f, O = p, k = e(T(y, "id")), A = y.entryKey ? x(oe, null) : null;
|
|
52
41
|
if (y.entryKey) {
|
|
53
42
|
let e = y.entryKey;
|
|
54
|
-
|
|
55
|
-
|
|
43
|
+
A?.registerToastEntry(e, k.value), ge(k, (t) => {
|
|
44
|
+
A?.updateToastEntryId(e, t);
|
|
56
45
|
});
|
|
57
46
|
}
|
|
58
|
-
let
|
|
59
|
-
if (!(
|
|
60
|
-
}),
|
|
61
|
-
|
|
47
|
+
let j = x(se, null), { style: M } = te(T(y, "color")), N = m(() => ae(y.color) ? y.color : void 0), ve = m(() => y.headingLevel >= 1 && y.headingLevel <= 6 ? `h${y.headingLevel}` : "div"), P = m(() => N.value ? y.icons[N.value] : void 0), F = m(() => y.live ?? ie(y.color)), ye = m(() => {
|
|
48
|
+
if (!(j || F.value === "off")) return F.value === "assertive" ? "alert" : "status";
|
|
49
|
+
}), I = m(() => [
|
|
50
|
+
N.value ? y.texts[N.value] : void 0,
|
|
62
51
|
y.title,
|
|
63
52
|
y.text
|
|
64
53
|
].filter(Boolean).join(" "));
|
|
65
|
-
function
|
|
66
|
-
let e =
|
|
67
|
-
!
|
|
54
|
+
function be() {
|
|
55
|
+
let e = F.value;
|
|
56
|
+
!j || e === "off" || !I.value || y.entryKey && A && !A.markAnnounced(y.entryKey) || j.announce(I.value, e);
|
|
68
57
|
}
|
|
69
|
-
let
|
|
58
|
+
let xe = m(() => {
|
|
70
59
|
let e = y.block ? "q-toast--block" : void 0, t = y.title ? "q-toast--vertical" : void 0;
|
|
71
60
|
return [
|
|
72
61
|
"q-toast",
|
|
@@ -75,76 +64,76 @@ var ve = {
|
|
|
75
64
|
t,
|
|
76
65
|
y.class
|
|
77
66
|
];
|
|
78
|
-
}),
|
|
79
|
-
let e =
|
|
67
|
+
}), L = m(() => {
|
|
68
|
+
let e = M.value?.mainColor;
|
|
80
69
|
if (e) return t(n(r(e), 88));
|
|
81
|
-
}),
|
|
82
|
-
let e =
|
|
83
|
-
if (!(!e || !
|
|
84
|
-
}),
|
|
85
|
-
"--q-toast-main-color":
|
|
86
|
-
"--q-toast-on-main-color":
|
|
87
|
-
"--q-toast-hover-color":
|
|
88
|
-
"--q-toast-text-color":
|
|
89
|
-
"--q-toast-tonal-text-color":
|
|
90
|
-
"--q-toast-tonal-color":
|
|
91
|
-
} : {}),
|
|
92
|
-
function
|
|
93
|
-
return
|
|
70
|
+
}), Se = m(() => {
|
|
71
|
+
let e = M.value?.mainColor;
|
|
72
|
+
if (!(!e || !L.value)) return ee(e, L.value);
|
|
73
|
+
}), Ce = m(() => M.value ? {
|
|
74
|
+
"--q-toast-main-color": M.value.mainColor,
|
|
75
|
+
"--q-toast-on-main-color": M.value.onMainColor,
|
|
76
|
+
"--q-toast-hover-color": M.value.hoverColor,
|
|
77
|
+
"--q-toast-text-color": M.value.textColor,
|
|
78
|
+
"--q-toast-tonal-text-color": Se.value,
|
|
79
|
+
"--q-toast-tonal-color": L.value
|
|
80
|
+
} : {}), R = m(() => y.variant === "bold" ? "bold" : "ghost"), z = m(() => y.variant === "tonal" && M.value?.hoverColor ? M.value.hoverColor : y.color), we = he("root");
|
|
81
|
+
function B() {
|
|
82
|
+
return we.value?.$el;
|
|
94
83
|
}
|
|
95
|
-
let
|
|
96
|
-
function
|
|
97
|
-
let e =
|
|
84
|
+
let V, H, U, W, G = !1, K = !1, q = j?.focusOrigin ?? {};
|
|
85
|
+
function Te() {
|
|
86
|
+
let e = B();
|
|
98
87
|
return e ? Array.from(e.querySelectorAll(a)).some((e) => !e.closest(".q-toast__dismiss-area")) : !1;
|
|
99
88
|
}
|
|
100
|
-
function
|
|
101
|
-
return
|
|
89
|
+
function J() {
|
|
90
|
+
return N.value === "danger" || Te();
|
|
102
91
|
}
|
|
103
|
-
function
|
|
104
|
-
return
|
|
92
|
+
function Y() {
|
|
93
|
+
return V !== void 0 && H !== void 0 && U !== void 0 ? Math.max(0, U - (Date.now() - H)) : W;
|
|
105
94
|
}
|
|
106
|
-
function
|
|
107
|
-
|
|
95
|
+
function X() {
|
|
96
|
+
V !== void 0 && window.clearTimeout(V), V = void 0, H = void 0, U = void 0, W = void 0;
|
|
108
97
|
}
|
|
109
98
|
function Z() {
|
|
110
|
-
|
|
99
|
+
X(), O("dismiss");
|
|
111
100
|
}
|
|
112
101
|
function Q(e) {
|
|
113
|
-
if (!
|
|
114
|
-
if (
|
|
115
|
-
|
|
102
|
+
if (!J()) {
|
|
103
|
+
if (G || K) {
|
|
104
|
+
W = e;
|
|
116
105
|
return;
|
|
117
106
|
}
|
|
118
|
-
|
|
119
|
-
|
|
107
|
+
U = e, H = Date.now(), V = window.setTimeout(() => {
|
|
108
|
+
V = void 0, J() || Z();
|
|
120
109
|
}, e);
|
|
121
110
|
}
|
|
122
111
|
}
|
|
123
|
-
function
|
|
124
|
-
if (
|
|
125
|
-
let e =
|
|
126
|
-
window.clearTimeout(
|
|
112
|
+
function Ee() {
|
|
113
|
+
if (V === void 0) return;
|
|
114
|
+
let e = Y();
|
|
115
|
+
window.clearTimeout(V), V = void 0, W = e;
|
|
127
116
|
}
|
|
128
117
|
function $() {
|
|
129
|
-
if (
|
|
130
|
-
let e =
|
|
131
|
-
|
|
118
|
+
if (W === void 0) return;
|
|
119
|
+
let e = W;
|
|
120
|
+
W = void 0, Q(e);
|
|
132
121
|
}
|
|
133
|
-
function
|
|
134
|
-
|
|
122
|
+
function De() {
|
|
123
|
+
G = !0, Ee();
|
|
135
124
|
}
|
|
136
|
-
function
|
|
137
|
-
|
|
125
|
+
function Oe() {
|
|
126
|
+
G = !1, $();
|
|
138
127
|
}
|
|
139
|
-
function
|
|
140
|
-
let t = e.relatedTarget, n =
|
|
141
|
-
t instanceof HTMLElement && !r?.contains(t) && (
|
|
128
|
+
function ke(e) {
|
|
129
|
+
let t = e.relatedTarget, n = B(), r = n?.closest(".q-toaster") ?? n;
|
|
130
|
+
t instanceof HTMLElement && !r?.contains(t) && (q.element = t), K = !0, Ee();
|
|
142
131
|
}
|
|
143
|
-
function
|
|
132
|
+
function Ae(e) {
|
|
144
133
|
let t = e.relatedTarget ?? document.activeElement;
|
|
145
|
-
|
|
134
|
+
B()?.contains(t) || (K = !1, $());
|
|
146
135
|
}
|
|
147
|
-
function
|
|
136
|
+
function je(e) {
|
|
148
137
|
let t = e.closest(".q-toast__container")?.nextElementSibling;
|
|
149
138
|
for (; t;) {
|
|
150
139
|
let e = t.querySelector(a);
|
|
@@ -152,71 +141,83 @@ var ve = {
|
|
|
152
141
|
t = t.nextElementSibling;
|
|
153
142
|
}
|
|
154
143
|
}
|
|
155
|
-
return
|
|
156
|
-
if (
|
|
144
|
+
return fe(() => {
|
|
145
|
+
if (be(), !y.entryKey) {
|
|
157
146
|
y.timeout > 0 && Q(y.timeout);
|
|
158
147
|
return;
|
|
159
148
|
}
|
|
160
|
-
let e =
|
|
149
|
+
let e = A?.consumeRemainingTimeout(y.entryKey);
|
|
161
150
|
if (e !== void 0) {
|
|
162
151
|
e > 0 ? Q(e) : Z();
|
|
163
152
|
return;
|
|
164
153
|
}
|
|
165
154
|
y.timeout > 0 && Q(y.timeout);
|
|
166
|
-
}),
|
|
167
|
-
let e =
|
|
155
|
+
}), de(() => {
|
|
156
|
+
let e = B();
|
|
168
157
|
if (!e?.contains(document.activeElement)) return;
|
|
169
|
-
let t =
|
|
170
|
-
(
|
|
171
|
-
}),
|
|
172
|
-
let e =
|
|
173
|
-
|
|
174
|
-
}), (e, t) => (
|
|
175
|
-
id:
|
|
158
|
+
let t = q.element;
|
|
159
|
+
(je(e) ?? (t?.isConnected ? t : void 0) ?? ne(e))?.focus();
|
|
160
|
+
}), pe(() => {
|
|
161
|
+
let e = Y();
|
|
162
|
+
X(), y.entryKey && A && e !== void 0 && A.setRemainingTimeout(y.entryKey, e);
|
|
163
|
+
}), (e, t) => (C(), h(E(re), {
|
|
164
|
+
id: E(k),
|
|
176
165
|
ref: "root",
|
|
177
166
|
elevation: y.elevation,
|
|
178
167
|
width: y.block ? "block" : void 0,
|
|
179
|
-
class:
|
|
180
|
-
style:
|
|
181
|
-
role:
|
|
182
|
-
onMouseenter:
|
|
183
|
-
onMouseleave:
|
|
184
|
-
onFocusin:
|
|
185
|
-
onFocusout:
|
|
186
|
-
},
|
|
187
|
-
default:
|
|
168
|
+
class: le(xe.value),
|
|
169
|
+
style: ue(Ce.value),
|
|
170
|
+
role: ye.value,
|
|
171
|
+
onMouseenter: De,
|
|
172
|
+
onMouseleave: Oe,
|
|
173
|
+
onFocusin: ke,
|
|
174
|
+
onFocusout: Ae
|
|
175
|
+
}, _({
|
|
176
|
+
default: D(() => [v(E(u), {
|
|
188
177
|
fluid: "",
|
|
189
178
|
class: "q-toast__body"
|
|
190
179
|
}, {
|
|
191
|
-
default:
|
|
192
|
-
align: "
|
|
180
|
+
default: D(() => [v(E(d), {
|
|
181
|
+
align: "start",
|
|
193
182
|
justify: "between"
|
|
194
183
|
}, {
|
|
195
|
-
default:
|
|
196
|
-
!y.title && (
|
|
184
|
+
default: D(() => [
|
|
185
|
+
!y.title && (P.value || E(o)(e.$slots.icon)) ? (C(), h(E(l), {
|
|
197
186
|
key: 0,
|
|
198
187
|
cols: "auto"
|
|
199
188
|
}, {
|
|
200
|
-
default:
|
|
189
|
+
default: D(() => [v(E(c), {
|
|
190
|
+
part: "icon",
|
|
191
|
+
"icon-class": "q-toast__icon",
|
|
192
|
+
"severity-icon": P.value
|
|
193
|
+
}, _({ _: 2 }, [e.$slots.icon ? {
|
|
194
|
+
name: "icon",
|
|
195
|
+
fn: D(() => [w(e.$slots, "icon")]),
|
|
196
|
+
key: "0"
|
|
197
|
+
} : void 0]), 1032, ["severity-icon"])]),
|
|
201
198
|
_: 3
|
|
202
|
-
})) :
|
|
203
|
-
v(
|
|
204
|
-
default:
|
|
199
|
+
})) : g("", !0),
|
|
200
|
+
v(E(l), null, {
|
|
201
|
+
default: D(() => [N.value && !y.title ? (C(), h(E(c), {
|
|
202
|
+
key: 0,
|
|
203
|
+
part: "label",
|
|
204
|
+
"severity-text": y.texts[N.value]
|
|
205
|
+
}, null, 8, ["severity-text"])) : g("", !0), w(e.$slots, "default", {}, () => [ce("span", null, me(y.text), 1)])]),
|
|
205
206
|
_: 3
|
|
206
207
|
}),
|
|
207
|
-
y.title ?
|
|
208
|
+
y.title ? g("", !0) : (C(), h(E(l), {
|
|
208
209
|
key: 1,
|
|
209
210
|
cols: "auto",
|
|
210
211
|
class: "q-toast__dismiss-area"
|
|
211
212
|
}, {
|
|
212
|
-
default:
|
|
213
|
+
default: D(() => [w(e.$slots, "dismiss", {}, () => [v(E(s), {
|
|
213
214
|
class: "q-toast__dismiss",
|
|
214
|
-
variant:
|
|
215
|
-
color:
|
|
215
|
+
variant: R.value,
|
|
216
|
+
color: z.value,
|
|
216
217
|
"aria-label": y.texts.dismiss,
|
|
217
218
|
onClick: Z
|
|
218
219
|
}, {
|
|
219
|
-
default:
|
|
220
|
+
default: D(() => [v(E(i), S(b(y.icons.close)), null, 16)]),
|
|
220
221
|
_: 1
|
|
221
222
|
}, 8, [
|
|
222
223
|
"variant",
|
|
@@ -233,44 +234,57 @@ var ve = {
|
|
|
233
234
|
_: 2
|
|
234
235
|
}, [y.title ? {
|
|
235
236
|
name: "header",
|
|
236
|
-
fn:
|
|
237
|
-
default:
|
|
238
|
-
align: "
|
|
237
|
+
fn: D(() => [v(E(u), { fluid: "" }, {
|
|
238
|
+
default: D(() => [v(E(d), {
|
|
239
|
+
align: "start",
|
|
239
240
|
justify: "between"
|
|
240
241
|
}, {
|
|
241
|
-
default:
|
|
242
|
-
|
|
243
|
-
I.value || O(o)(e.$slots.icon) ? (w(), m(O(c), {
|
|
242
|
+
default: D(() => [
|
|
243
|
+
P.value || E(o)(e.$slots.icon) ? (C(), h(E(l), {
|
|
244
244
|
key: 0,
|
|
245
245
|
cols: "auto"
|
|
246
246
|
}, {
|
|
247
|
-
default:
|
|
247
|
+
default: D(() => [v(E(c), {
|
|
248
|
+
part: "icon",
|
|
249
|
+
"icon-class": "q-toast__icon",
|
|
250
|
+
"severity-icon": P.value
|
|
251
|
+
}, _({ _: 2 }, [e.$slots.icon ? {
|
|
252
|
+
name: "icon",
|
|
253
|
+
fn: D(() => [w(e.$slots, "icon")]),
|
|
254
|
+
key: "0"
|
|
255
|
+
} : void 0]), 1032, ["severity-icon"])]),
|
|
248
256
|
_: 3
|
|
249
|
-
})) :
|
|
250
|
-
v(
|
|
251
|
-
default:
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
})) : g("", !0),
|
|
258
|
+
v(E(l), null, {
|
|
259
|
+
default: D(() => [ce("div", _e, [
|
|
260
|
+
w(e.$slots, "title.prepend"),
|
|
261
|
+
v(E(c), {
|
|
262
|
+
part: "label",
|
|
263
|
+
"title-class": "q-toast__title-text",
|
|
264
|
+
title: y.title,
|
|
265
|
+
"severity-text": N.value ? y.texts[N.value] : void 0,
|
|
266
|
+
"heading-tag": ve.value
|
|
267
|
+
}, null, 8, [
|
|
268
|
+
"title",
|
|
269
|
+
"severity-text",
|
|
270
|
+
"heading-tag"
|
|
271
|
+
]),
|
|
272
|
+
w(e.$slots, "title.append")
|
|
259
273
|
])]),
|
|
260
274
|
_: 3
|
|
261
275
|
}),
|
|
262
|
-
v(
|
|
276
|
+
v(E(l), {
|
|
263
277
|
cols: "auto",
|
|
264
278
|
class: "q-toast__dismiss-area"
|
|
265
279
|
}, {
|
|
266
|
-
default:
|
|
280
|
+
default: D(() => [w(e.$slots, "dismiss", {}, () => [v(E(s), {
|
|
267
281
|
class: "q-toast__dismiss",
|
|
268
|
-
variant:
|
|
269
|
-
color:
|
|
282
|
+
variant: R.value,
|
|
283
|
+
color: z.value,
|
|
270
284
|
"aria-label": y.texts.dismiss,
|
|
271
285
|
onClick: Z
|
|
272
286
|
}, {
|
|
273
|
-
default:
|
|
287
|
+
default: D(() => [v(E(i), S(b(y.icons.close)), null, 16)]),
|
|
274
288
|
_: 1
|
|
275
289
|
}, 8, [
|
|
276
290
|
"variant",
|
|
@@ -296,4 +310,4 @@ var ve = {
|
|
|
296
310
|
}
|
|
297
311
|
});
|
|
298
312
|
//#endregion
|
|
299
|
-
export {
|
|
313
|
+
export { O as default };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { QToasterProps } from '.';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<QToasterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QToasterProps> & Readonly<{}>, {
|
|
3
3
|
placement: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center";
|
|
4
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
4
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
5
|
+
root: HTMLDivElement;
|
|
6
|
+
}, any>;
|
|
5
7
|
export default _default;
|
|
6
8
|
//# sourceMappingURL=QToaster.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QToaster.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToaster.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QToaster.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToaster.vue"],"names":[],"mappings":"AAyDA;AAmRC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;;;;;;AAmUvC,wBAQG"}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { provideOuterDefaults as e } from "../../composables/defaults.js";
|
|
2
|
+
import { useId as t } from "../../composables/useId/index.js";
|
|
3
|
+
import { modalLayers as n } from "../QOverlay/layers.js";
|
|
4
|
+
import { injectToastInstance as r, removeToastByEntryKey as i } from "../../composables/useToast/_internal.js";
|
|
5
|
+
import { ANNOUNCEMENT_LIFETIME as a } from "./constants.js";
|
|
6
|
+
import { ToasterSymbol as o } from "./context.js";
|
|
7
|
+
import { QToast as s } from "./index.js";
|
|
8
|
+
import { Fragment as c, Teleport as l, TransitionGroup as u, computed as d, createBlock as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as g, mergeProps as _, normalizeClass as v, onMounted as y, onUnmounted as b, openBlock as x, provide as S, ref as C, renderList as w, toDisplayString as T, toRef as E, unref as D, useTemplateRef as O, watch as k, withCtx as A } from "vue";
|
|
7
9
|
//#region src/components/QToast/QToaster.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var
|
|
10
|
+
var j = ["id", "data-placement"], M = {
|
|
9
11
|
class: "q-sr-only",
|
|
10
12
|
role: "status",
|
|
11
13
|
"aria-atomic": "false"
|
|
12
|
-
},
|
|
14
|
+
}, N = {
|
|
13
15
|
class: "q-sr-only",
|
|
14
16
|
role: "alert",
|
|
15
17
|
"aria-atomic": "false"
|
|
16
|
-
},
|
|
18
|
+
}, P = /*@__PURE__*/ g({
|
|
17
19
|
__name: "QToaster",
|
|
18
20
|
props: {
|
|
19
21
|
id: {},
|
|
@@ -22,57 +24,86 @@ var E = ["id", "data-placement"], D = {
|
|
|
22
24
|
maxToasts: {},
|
|
23
25
|
reverseOrder: { type: Boolean }
|
|
24
26
|
},
|
|
25
|
-
setup(
|
|
26
|
-
let
|
|
27
|
-
|
|
28
|
-
let
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
setup(g) {
|
|
28
|
+
let P = g;
|
|
29
|
+
e();
|
|
30
|
+
let F = t(E(P, "id")), I = r(), { toasts: L } = I;
|
|
31
|
+
I.registerToaster(), b(() => I.unregisterToaster()), k(() => P.maxToasts, (e) => I.setMaxToasts(e), { immediate: !0 });
|
|
32
|
+
let R = d(() => n.value.at(-1)), z = O("root"), B = C(!1), V = d(() => {
|
|
33
|
+
if (!B.value) return P.placement;
|
|
34
|
+
let [e, t] = P.placement.split("-");
|
|
35
|
+
return `${e === "top" ? "bottom" : "top"}-${t}`;
|
|
31
36
|
});
|
|
32
|
-
function
|
|
33
|
-
|
|
37
|
+
function H(e, t, n) {
|
|
38
|
+
return e.reduce((e, r) => {
|
|
39
|
+
let i = Math.min(r.right, t.right) - Math.max(r.left, t.left), a = Math.min(r.bottom + n, t.bottom) - Math.max(r.top + n, t.top);
|
|
40
|
+
return e + (i > 0 && a > 0 ? i * a : 0);
|
|
41
|
+
}, 0);
|
|
34
42
|
}
|
|
35
|
-
|
|
36
|
-
|
|
43
|
+
function U() {
|
|
44
|
+
let e = z.value, t = document.activeElement;
|
|
45
|
+
if (!e || !t || t === document.body || e.contains(t)) return;
|
|
46
|
+
let n = Array.from(e.querySelectorAll(".q-toast__container:not(.q-toast-stack-leave-active)"), (e) => e.getBoundingClientRect()), r = getComputedStyle(e), i = e.getBoundingClientRect(), a = i.top + (parseFloat(r.paddingTop) || 0), o = i.bottom - (parseFloat(r.paddingBottom) || 0), s = Math.min(...n.map((e) => e.top)), c = Math.max(...n.map((e) => e.bottom));
|
|
47
|
+
if (c - s >= o - a) return;
|
|
48
|
+
let l = V.value.startsWith("top") ? o - c : a - s, u = t.getBoundingClientRect(), d = H(n, u, 0), f = H(n, u, l), p = B.value ? f : d, m = B.value ? d : f;
|
|
49
|
+
B.value = p > 0 && m < p;
|
|
50
|
+
}
|
|
51
|
+
y(() => document.addEventListener("focusin", U)), b(() => document.removeEventListener("focusin", U));
|
|
52
|
+
let W = d(() => {
|
|
53
|
+
let e = [...L.value];
|
|
54
|
+
return P.reverseOrder ? e.reverse() : e;
|
|
55
|
+
});
|
|
56
|
+
function G(e) {
|
|
57
|
+
i(I, e.entryKey);
|
|
58
|
+
}
|
|
59
|
+
let K = C([]), q = C([]), J = /* @__PURE__ */ new Set(), Y = 0;
|
|
60
|
+
function X(e, t) {
|
|
37
61
|
let n = window.setTimeout(() => {
|
|
38
|
-
|
|
62
|
+
J.delete(n), e();
|
|
39
63
|
}, t);
|
|
40
|
-
|
|
64
|
+
J.add(n);
|
|
41
65
|
}
|
|
42
|
-
function
|
|
43
|
-
let n = t === "assertive" ?
|
|
44
|
-
|
|
66
|
+
function Z(e, t) {
|
|
67
|
+
let n = t === "assertive" ? q : K, r = ++Y;
|
|
68
|
+
X(() => {
|
|
45
69
|
n.value.push({
|
|
46
|
-
key:
|
|
70
|
+
key: r,
|
|
47
71
|
text: e
|
|
48
|
-
}),
|
|
49
|
-
n.value = n.value.filter((e) => e.key !==
|
|
50
|
-
},
|
|
72
|
+
}), X(() => {
|
|
73
|
+
n.value = n.value.filter((e) => e.key !== r);
|
|
74
|
+
}, a);
|
|
51
75
|
}, 100);
|
|
52
76
|
}
|
|
53
|
-
return
|
|
54
|
-
announce:
|
|
77
|
+
return S(o, {
|
|
78
|
+
announce: Z,
|
|
55
79
|
focusOrigin: {}
|
|
56
|
-
}),
|
|
57
|
-
for (let e of
|
|
58
|
-
|
|
59
|
-
}), (e, t) => (
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
80
|
+
}), b(() => {
|
|
81
|
+
for (let e of J) window.clearTimeout(e);
|
|
82
|
+
J.clear();
|
|
83
|
+
}), (e, t) => (x(), p(c, null, [
|
|
84
|
+
(x(), f(l, {
|
|
85
|
+
to: R.value ?? "body",
|
|
86
|
+
disabled: !R.value
|
|
87
|
+
}, [m("div", {
|
|
88
|
+
id: D(F),
|
|
89
|
+
ref: "root",
|
|
90
|
+
class: v(["q-toaster", P.class]),
|
|
91
|
+
"data-placement": V.value
|
|
92
|
+
}, [h(u, {
|
|
93
|
+
name: "q-toast-stack",
|
|
94
|
+
onAfterEnter: U,
|
|
95
|
+
onAfterLeave: U
|
|
96
|
+
}, {
|
|
97
|
+
default: A(() => [(x(!0), p(c, null, w(W.value, (e) => (x(), p("div", {
|
|
66
98
|
key: e.entryKey,
|
|
67
99
|
class: "q-toast__container"
|
|
68
|
-
}, [
|
|
100
|
+
}, [h(D(s), _({ "entry-key": e.entryKey }, { ref_for: !0 }, e.props, { onDismiss: () => G(e) }), null, 16, ["entry-key", "onDismiss"])]))), 128))]),
|
|
69
101
|
_: 1
|
|
70
|
-
}),
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
], 10, E));
|
|
102
|
+
})], 10, j)], 8, ["to", "disabled"])),
|
|
103
|
+
m("div", M, [(x(!0), p(c, null, w(K.value, (e) => (x(), p("div", { key: e.key }, T(e.text), 1))), 128))]),
|
|
104
|
+
m("div", N, [(x(!0), p(c, null, w(q.value, (e) => (x(), p("div", { key: e.key }, T(e.text), 1))), 128))])
|
|
105
|
+
], 64));
|
|
75
106
|
}
|
|
76
107
|
});
|
|
77
108
|
//#endregion
|
|
78
|
-
export {
|
|
109
|
+
export { P as default };
|
|
@@ -9,7 +9,7 @@ declare const QToast: {
|
|
|
9
9
|
variant?: import('./types').QToastVariant;
|
|
10
10
|
timeout?: number;
|
|
11
11
|
live?: import('../..').QLive;
|
|
12
|
-
icons?: typeof import('./constants').DEFAULT_ICONS
|
|
12
|
+
icons?: import('../..').QIcons<keyof typeof import('./constants').DEFAULT_ICONS>;
|
|
13
13
|
texts?: typeof import('./constants').DEFAULT_TEXTS;
|
|
14
14
|
} & {
|
|
15
15
|
entryKey?: string;
|
|
@@ -21,7 +21,7 @@ declare const QToast: {
|
|
|
21
21
|
color: string;
|
|
22
22
|
variant: import('./types').QToastVariant;
|
|
23
23
|
headingLevel: number;
|
|
24
|
-
icons: typeof import('./constants').DEFAULT_ICONS
|
|
24
|
+
icons: import('../..').QIcons<keyof typeof import('./constants').DEFAULT_ICONS>;
|
|
25
25
|
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
26
26
|
elevation: import('..').QCardElevation;
|
|
27
27
|
entryKey: string;
|
|
@@ -112,7 +112,7 @@ declare const QToast: {
|
|
|
112
112
|
variant?: import('./types').QToastVariant;
|
|
113
113
|
timeout?: number;
|
|
114
114
|
live?: import('../..').QLive;
|
|
115
|
-
icons?: typeof import('./constants').DEFAULT_ICONS
|
|
115
|
+
icons?: import('../..').QIcons<keyof typeof import('./constants').DEFAULT_ICONS>;
|
|
116
116
|
texts?: typeof import('./constants').DEFAULT_TEXTS;
|
|
117
117
|
} & {
|
|
118
118
|
entryKey?: string;
|
|
@@ -122,7 +122,7 @@ declare const QToast: {
|
|
|
122
122
|
color: string;
|
|
123
123
|
variant: import('./types').QToastVariant;
|
|
124
124
|
headingLevel: number;
|
|
125
|
-
icons: typeof import('./constants').DEFAULT_ICONS
|
|
125
|
+
icons: import('../..').QIcons<keyof typeof import('./constants').DEFAULT_ICONS>;
|
|
126
126
|
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
127
127
|
elevation: import('..').QCardElevation;
|
|
128
128
|
entryKey: string;
|
|
@@ -141,7 +141,7 @@ declare const QToast: {
|
|
|
141
141
|
variant?: import('./types').QToastVariant;
|
|
142
142
|
timeout?: number;
|
|
143
143
|
live?: import('../..').QLive;
|
|
144
|
-
icons?: typeof import('./constants').DEFAULT_ICONS
|
|
144
|
+
icons?: import('../..').QIcons<keyof typeof import('./constants').DEFAULT_ICONS>;
|
|
145
145
|
texts?: typeof import('./constants').DEFAULT_TEXTS;
|
|
146
146
|
} & {
|
|
147
147
|
entryKey?: string;
|
|
@@ -153,7 +153,7 @@ declare const QToast: {
|
|
|
153
153
|
color: string;
|
|
154
154
|
variant: import('./types').QToastVariant;
|
|
155
155
|
headingLevel: number;
|
|
156
|
-
icons: typeof import('./constants').DEFAULT_ICONS
|
|
156
|
+
icons: import('../..').QIcons<keyof typeof import('./constants').DEFAULT_ICONS>;
|
|
157
157
|
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
158
158
|
elevation: import('..').QCardElevation;
|
|
159
159
|
entryKey: string;
|
|
@@ -171,7 +171,9 @@ declare const QToast: {
|
|
|
171
171
|
});
|
|
172
172
|
declare const QToaster: import('vue').DefineComponent<import('./types').QToasterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./types').QToasterProps> & Readonly<{}>, {
|
|
173
173
|
placement: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center";
|
|
174
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
174
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
175
|
+
root: HTMLDivElement;
|
|
176
|
+
}, any>;
|
|
175
177
|
export { QToast, QToaster };
|
|
176
178
|
export * from './types';
|
|
177
179
|
//# sourceMappingURL=index.d.ts.map
|