@quidgest/ui 0.27.0 → 0.28.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 +60 -0
- package/dist/json/api.json +1287 -297
- package/dist/manifest/components.json +1 -1
- package/dist/ui.css +595 -148
- package/dist/ui.esm.js +1565 -1527
- package/dist/ui.js +1138 -1100
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1138 -1100
- package/dist/ui.scss +402 -127
- package/esm/components/QAccordion/QAccordion.d.ts +5 -1
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordion.vue.js +28 -23
- package/esm/components/QAccordion/constants.d.ts +9 -0
- package/esm/components/QAccordion/constants.d.ts.map +1 -0
- package/esm/components/QAccordion/constants.js +5 -0
- package/esm/components/QAccordion/index.d.ts +18 -3
- package/esm/components/QAccordion/index.d.ts.map +1 -1
- package/esm/components/QAccordion/types.d.ts +17 -0
- package/esm/components/QAccordion/types.d.ts.map +1 -1
- package/esm/components/QAlert/QAlert.d.ts +68 -0
- package/esm/components/QAlert/QAlert.d.ts.map +1 -0
- package/esm/components/QAlert/QAlert.vue.js +113 -0
- package/esm/components/QAlert/QAlert2.vue.js +5 -0
- package/esm/components/QAlert/constants.d.ts +25 -0
- package/esm/components/QAlert/constants.d.ts.map +1 -0
- package/esm/components/QAlert/constants.js +11 -0
- package/esm/components/QAlert/index.d.ts +56 -0
- package/esm/components/QAlert/index.d.ts.map +1 -0
- package/esm/components/QAlert/index.js +6 -0
- package/esm/components/QAlert/types.d.ts +85 -0
- package/esm/components/QAlert/types.d.ts.map +1 -0
- package/esm/components/QAvatar/QAvatar.d.ts +1 -1
- package/esm/components/QAvatar/index.d.ts +3 -3
- package/esm/components/QAvatar/types.d.ts +1 -1
- package/esm/components/QAvatar/types.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.d.ts +1 -1
- package/esm/components/QBadge/QBadge.vue.js +10 -10
- package/esm/components/QBadge/constants.d.ts +1 -1
- package/esm/components/QBadge/constants.js +1 -1
- package/esm/components/QBadge/index.d.ts +3 -3
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
- package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +14 -10
- package/esm/components/QBreadcrumbs/QBreadcrumb.d.ts +17 -4
- package/esm/components/QBreadcrumbs/QBreadcrumb.d.ts.map +1 -1
- package/esm/components/QBreadcrumbs/QBreadcrumb.vue.js +12 -7
- package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts.map +1 -1
- package/esm/components/QBreadcrumbs/QBreadcrumbs.vue.js +26 -32
- package/esm/components/QBreadcrumbs/constants.d.ts +11 -2
- package/esm/components/QBreadcrumbs/constants.d.ts.map +1 -1
- package/esm/components/QBreadcrumbs/constants.js +5 -3
- package/esm/components/QBreadcrumbs/context.d.ts +5 -5
- package/esm/components/QBreadcrumbs/context.d.ts.map +1 -1
- package/esm/components/QBreadcrumbs/index.d.ts +17 -4
- package/esm/components/QBreadcrumbs/index.d.ts.map +1 -1
- package/esm/components/QBreadcrumbs/types.d.ts +2 -0
- package/esm/components/QBreadcrumbs/types.d.ts.map +1 -1
- package/esm/components/QButton/QButton.d.ts +12 -4
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +118 -66
- package/esm/components/QButton/constants.d.ts +11 -0
- package/esm/components/QButton/constants.d.ts.map +1 -0
- package/esm/components/QButton/constants.js +5 -0
- package/esm/components/QButton/index.d.ts +15 -4
- package/esm/components/QButton/index.d.ts.map +1 -1
- package/esm/components/QButton/types.d.ts +52 -0
- package/esm/components/QButton/types.d.ts.map +1 -1
- package/esm/components/QCard/QCard.d.ts.map +1 -1
- package/esm/components/QCard/QCard.vue.js +51 -48
- package/esm/components/QCarousel/QCarousel.d.ts +1 -1
- package/esm/components/QCarousel/QCarousel.vue.js +8 -8
- package/esm/components/QCarousel/constants.d.ts +2 -2
- package/esm/components/QCarousel/constants.js +2 -2
- package/esm/components/QCarousel/index.d.ts +3 -3
- package/esm/components/QCheckbox/QCheckbox.d.ts +18 -4
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +115 -94
- package/esm/components/QCheckbox/constants.d.ts +3 -0
- package/esm/components/QCheckbox/constants.d.ts.map +1 -1
- package/esm/components/QCheckbox/constants.js +4 -2
- package/esm/components/QCheckbox/index.d.ts +57 -46
- package/esm/components/QCheckbox/index.d.ts.map +1 -1
- package/esm/components/QCheckbox/index.js +2 -3
- package/esm/components/QCheckbox/types.d.ts +10 -7
- package/esm/components/QCheckbox/types.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.d.ts +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +23 -23
- package/esm/components/QCollapsible/index.d.ts +3 -3
- package/esm/components/QColorPicker/QColorPicker.d.ts +19 -2
- package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.vue.js +41 -30
- package/esm/components/QColorPicker/constants.d.ts +10 -0
- package/esm/components/QColorPicker/constants.d.ts.map +1 -1
- package/esm/components/QColorPicker/constants.js +6 -2
- package/esm/components/QColorPicker/index.d.ts +63 -6
- package/esm/components/QColorPicker/index.d.ts.map +1 -1
- package/esm/components/QColorPicker/types.d.ts +11 -3
- package/esm/components/QColorPicker/types.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +668 -256
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +157 -145
- package/esm/components/QCombobox/constants.d.ts +10 -0
- package/esm/components/QCombobox/constants.d.ts.map +1 -1
- package/esm/components/QCombobox/constants.js +13 -5
- package/esm/components/QCombobox/index.d.ts +889 -635
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QCombobox/types.d.ts +4 -2
- package/esm/components/QCombobox/types.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts +568 -49
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +97 -72
- package/esm/components/QDateTimePicker/constants.d.ts +4 -0
- package/esm/components/QDateTimePicker/constants.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/constants.js +12 -6
- package/esm/components/QDateTimePicker/index.d.ts +492 -32
- package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/types.d.ts +4 -2
- package/esm/components/QDateTimePicker/types.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.d.ts +1 -1
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +28 -24
- package/esm/components/QDialog/constants.d.ts +8 -0
- package/esm/components/QDialog/constants.d.ts.map +1 -1
- package/esm/components/QDialog/constants.js +9 -4
- package/esm/components/QDialog/index.d.ts +3 -3
- package/esm/components/QDialog/types.d.ts +4 -2
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +0 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +21 -15
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +135 -132
- package/esm/components/QDropdownMenu/constants.d.ts +6 -0
- package/esm/components/QDropdownMenu/constants.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/constants.js +6 -2
- package/esm/components/QDropdownMenu/index.d.ts +3 -6
- package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/types.d.ts +9 -7
- package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
- package/esm/components/QField/QField.d.ts +228 -3
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +99 -36
- package/esm/components/QField/constants.d.ts +11 -0
- package/esm/components/QField/constants.d.ts.map +1 -0
- package/esm/components/QField/constants.js +5 -0
- package/esm/components/QField/index.d.ts +129 -5
- package/esm/components/QField/index.d.ts.map +1 -1
- package/esm/components/QField/types.d.ts +37 -1
- package/esm/components/QField/types.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.d.ts +35 -3
- package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.vue.js +72 -53
- package/esm/components/QFileUpload/constants.d.ts +4 -0
- package/esm/components/QFileUpload/constants.d.ts.map +1 -1
- package/esm/components/QFileUpload/constants.js +6 -3
- package/esm/components/QFileUpload/index.d.ts +108 -9
- package/esm/components/QFileUpload/index.d.ts.map +1 -1
- package/esm/components/QFocusWrap/QFocusWrap.d.ts.map +1 -1
- package/esm/components/QFocusWrap/QFocusWrap.vue.js +38 -51
- package/esm/components/QIcon/QIconFont.d.ts +1 -3
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.vue.js +2 -2
- package/esm/components/QIcon/QIconSvg.d.ts +1 -3
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconSvg.vue.js +1 -1
- package/esm/components/QIcon/QSvgSymbol.d.ts +3 -2
- package/esm/components/QIcon/QSvgSymbol.d.ts.map +1 -1
- package/esm/components/QIcon/QSvgSymbol.vue.js +36 -39
- package/esm/components/QIcon/index.d.ts +2 -6
- package/esm/components/QIcon/index.d.ts.map +1 -1
- package/esm/components/QIcon/index.js +6 -6
- package/esm/components/QIcon/types.d.ts +7 -3
- package/esm/components/QIcon/types.d.ts.map +1 -1
- package/esm/components/QIcon/utils/svgSource.d.ts +18 -0
- package/esm/components/QIcon/utils/svgSource.d.ts.map +1 -0
- package/esm/components/QIcon/utils/svgSource.js +27 -0
- package/esm/components/QInputGroup/QInputGroup.d.ts +263 -12
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +20 -5
- package/esm/components/QInputGroup/index.d.ts +138 -9
- package/esm/components/QInputGroup/index.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.vue.js +1 -0
- package/esm/components/QList/QList.d.ts +12 -10
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +128 -125
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +1 -1
- package/esm/components/QList/groupListItems.d.ts +25 -0
- package/esm/components/QList/groupListItems.d.ts.map +1 -0
- package/esm/components/QList/groupListItems.js +18 -0
- package/esm/components/QList/index.d.ts +8 -5
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QList/types.d.ts +7 -0
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.d.ts +28 -3
- package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.vue.js +119 -89
- package/esm/components/QObfuscation/constants.d.ts +4 -0
- package/esm/components/QObfuscation/constants.d.ts.map +1 -1
- package/esm/components/QObfuscation/constants.js +6 -3
- package/esm/components/QObfuscation/index.d.ts +83 -9
- package/esm/components/QObfuscation/index.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.vue.js +8 -8
- package/esm/components/QOverflow/constants.d.ts +6 -3
- package/esm/components/QOverflow/constants.d.ts.map +1 -1
- package/esm/components/QOverflow/constants.js +2 -2
- package/esm/components/QOverlay/QOverlay.d.ts +2 -2
- package/esm/components/QOverlay/index.d.ts +6 -6
- package/esm/components/QPasswordField/QPasswordField.d.ts +411 -25
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.vue.js +46 -35
- package/esm/components/QPasswordField/constants.d.ts +8 -0
- package/esm/components/QPasswordField/constants.d.ts.map +1 -1
- package/esm/components/QPasswordField/constants.js +8 -3
- package/esm/components/QPasswordField/index.d.ts +268 -15
- package/esm/components/QPasswordField/index.d.ts.map +1 -1
- package/esm/components/QPasswordField/types.d.ts +4 -2
- package/esm/components/QPasswordField/types.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.d.ts +1588 -118
- package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.vue.js +194 -168
- package/esm/components/QPhoneField/constants.d.ts +24 -0
- package/esm/components/QPhoneField/constants.d.ts.map +1 -1
- package/esm/components/QPhoneField/constants.js +14 -3
- package/esm/components/QPhoneField/index.d.ts +900 -64
- package/esm/components/QPhoneField/index.d.ts.map +1 -1
- package/esm/components/QPhoneField/types.d.ts +10 -2
- package/esm/components/QPhoneField/types.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.d.ts +1 -1
- package/esm/components/QPopover/index.d.ts +3 -3
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +61 -59
- package/esm/components/QPropertyList/QPropertyListGroup.vue.js +5 -6
- package/esm/components/QPropertyList/QPropertyListPanel.vue.js +0 -1
- package/esm/components/QPropertyList/QPropertyListRow.d.ts +1 -1
- package/esm/components/QPropertyList/index.d.ts +2 -4
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QPropertyList/types.d.ts +0 -12
- package/esm/components/QPropertyList/types.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.d.ts +1 -1
- package/esm/components/QRadioGroup/QRadioButton.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +49 -45
- package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +52 -37
- package/esm/components/QRadioGroup/index.d.ts +3 -3
- package/esm/components/QRadioGroup/types.d.ts +5 -4
- package/esm/components/QRadioGroup/types.d.ts.map +1 -1
- package/esm/components/QSection/QSection.d.ts +11 -3
- package/esm/components/QSection/QSection.d.ts.map +1 -1
- package/esm/components/QSection/QSection.vue.js +76 -21
- package/esm/components/QSection/constants.d.ts +11 -0
- package/esm/components/QSection/constants.d.ts.map +1 -0
- package/esm/components/QSection/constants.js +5 -0
- package/esm/components/QSection/index.d.ts +12 -1
- package/esm/components/QSection/index.d.ts.map +1 -1
- package/esm/components/QSection/types.d.ts +39 -0
- package/esm/components/QSection/types.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +320 -36
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +210 -177
- package/esm/components/QSelect/constants.d.ts +14 -1
- package/esm/components/QSelect/constants.d.ts.map +1 -1
- package/esm/components/QSelect/constants.js +14 -8
- package/esm/components/QSelect/index.d.ts +248 -28
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSelect/types.d.ts +4 -2
- package/esm/components/QSelect/types.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.vue.js +68 -67
- package/esm/components/QSidebar/QSidebarItem.d.ts +32 -2
- package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
- package/esm/components/QSidebar/index.d.ts +16 -1
- package/esm/components/QSidebar/index.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/index.js +3 -3
- package/esm/components/QSteps/QStepHeader.d.ts.map +1 -1
- package/esm/components/QSteps/QStepHeader.vue.js +1 -0
- package/esm/components/QSteps/QSteps.d.ts.map +1 -1
- package/esm/components/QSteps/QSteps.vue.js +154 -126
- package/esm/components/QSteps/QStepsNav.vue.js +6 -6
- package/esm/components/QSteps/constants.d.ts +16 -1
- package/esm/components/QSteps/constants.d.ts.map +1 -1
- package/esm/components/QSteps/constants.js +6 -3
- package/esm/components/QSteps/types.d.ts +11 -3
- package/esm/components/QSteps/types.d.ts.map +1 -1
- package/esm/components/QSwitch/QSwitch.d.ts +195 -0
- package/esm/components/QSwitch/QSwitch.d.ts.map +1 -1
- package/esm/components/QSwitch/QSwitch.vue.js +96 -56
- package/esm/components/QSwitch/index.d.ts +197 -2
- package/esm/components/QSwitch/index.d.ts.map +1 -1
- package/esm/components/QSwitch/types.d.ts +2 -1
- package/esm/components/QSwitch/types.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.d.ts +35 -12
- package/esm/components/QTabs/QTab.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.vue.js +77 -67
- package/esm/components/QTabs/QTabs.d.ts +3 -0
- package/esm/components/QTabs/QTabs.d.ts.map +1 -1
- package/esm/components/QTabs/QTabs.vue.js +64 -52
- package/esm/components/QTabs/constants.d.ts +24 -2
- package/esm/components/QTabs/constants.d.ts.map +1 -1
- package/esm/components/QTabs/constants.js +9 -0
- package/esm/components/QTabs/index.d.ts +32 -13
- package/esm/components/QTabs/index.d.ts.map +1 -1
- package/esm/components/QTabs/types.d.ts +26 -2
- package/esm/components/QTabs/types.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.vue.js +61 -47
- package/esm/components/QTextArea/index.d.ts +3 -3
- package/esm/components/QTextField/QTextField.d.ts +277 -11
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +70 -55
- package/esm/components/QTextField/constants.d.ts +9 -0
- package/esm/components/QTextField/constants.d.ts.map +1 -1
- package/esm/components/QTextField/constants.js +10 -3
- package/esm/components/QTextField/index.d.ts +192 -11
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/QTextField/index.js +4 -4
- package/esm/components/QTextField/types.d.ts +10 -2
- package/esm/components/QTextField/types.d.ts.map +1 -1
- package/esm/components/QToast/QToast.d.ts +4 -2
- package/esm/components/QToast/QToast.d.ts.map +1 -1
- package/esm/components/QToast/QToast.vue.js +153 -103
- package/esm/components/QToast/QToaster.d.ts +1 -1
- package/esm/components/QToast/QToaster.d.ts.map +1 -1
- package/esm/components/QToast/QToaster.vue.js +59 -29
- package/esm/components/QToast/constants.d.ts +18 -0
- package/esm/components/QToast/constants.d.ts.map +1 -1
- package/esm/components/QToast/constants.js +9 -2
- package/esm/components/QToast/context.d.ts +24 -0
- package/esm/components/QToast/context.d.ts.map +1 -0
- package/esm/components/QToast/context.js +4 -0
- package/esm/components/QToast/index.d.ts +12 -7
- package/esm/components/QToast/index.d.ts.map +1 -1
- package/esm/components/QToast/types.d.ts +23 -3
- package/esm/components/QToast/types.d.ts.map +1 -1
- package/esm/components/QToggle/QToggle.d.ts +2 -2
- package/esm/components/QToggle/QToggle.d.ts.map +1 -1
- package/esm/components/QToggle/QToggle.vue.js +13 -0
- package/esm/components/QToggle/index.d.ts +16 -1
- package/esm/components/QToggle/index.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroupItem.d.ts +2 -2
- package/esm/components/QToggleGroup/QToggleGroupItem.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +20 -7
- package/esm/components/QToggleGroup/index.d.ts +1 -1
- package/esm/components/QToggleGroup/types.d.ts +8 -1
- package/esm/components/QToggleGroup/types.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.d.ts +1 -1
- package/esm/components/QTooltip/index.d.ts +3 -3
- package/esm/components/__internal__/QChevron/QChevron.vue.js +5 -5
- package/esm/components/__internal__/QClearButton/QClearButton.d.ts +1 -1
- package/esm/components/__internal__/QClearButton/QClearButton.vue.js +4 -4
- package/esm/components/__internal__/QClearButton/index.d.ts +1 -1
- package/esm/components/__internal__/QClearButton/index.d.ts.map +1 -1
- package/esm/components/__internal__/QHelpPopover/QHelpPopover.d.ts +99 -0
- package/esm/components/__internal__/QHelpPopover/QHelpPopover.d.ts.map +1 -0
- package/esm/components/__internal__/QHelpPopover/QHelpPopover.vue.js +60 -0
- package/esm/components/__internal__/QHelpPopover/QHelpPopover2.vue.js +5 -0
- package/esm/components/__internal__/QHelpPopover/constants.d.ts +9 -0
- package/esm/components/__internal__/QHelpPopover/constants.d.ts.map +1 -0
- package/esm/components/__internal__/QHelpPopover/constants.js +4 -0
- package/esm/components/__internal__/QHelpPopover/index.d.ts +98 -0
- package/esm/components/__internal__/QHelpPopover/index.d.ts.map +1 -0
- package/esm/components/__internal__/QHelpPopover/index.js +6 -0
- package/esm/components/__internal__/QHelpPopover/resolveHelp.d.ts +50 -0
- package/esm/components/__internal__/QHelpPopover/resolveHelp.d.ts.map +1 -0
- package/esm/components/__internal__/QHelpPopover/resolveHelp.js +27 -0
- package/esm/components/__internal__/QHelpPopover/types.d.ts +32 -0
- package/esm/components/__internal__/QHelpPopover/types.d.ts.map +1 -0
- package/esm/components/__internal__/QSafeTriangle/QSafeTriangle.d.ts +2 -2
- package/esm/components/__internal__/QSafeTriangle/index.d.ts +2 -2
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +132 -131
- package/esm/composables/useColor/index.d.ts +31 -21
- package/esm/composables/useColor/index.d.ts.map +1 -1
- package/esm/composables/useColor/index.js +58 -49
- package/esm/composables/useColor/types.d.ts +19 -6
- package/esm/composables/useColor/types.d.ts.map +1 -1
- package/esm/composables/useDialog/types.d.ts +3 -3
- package/esm/composables/useDialog/types.d.ts.map +1 -1
- package/esm/composables/useToast/_internal.js +13 -8
- package/esm/composables/useToast/types.d.ts +3 -3
- package/esm/composables/useToast/types.d.ts.map +1 -1
- package/esm/index.d.ts +2 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/types/component.d.ts +23 -0
- package/esm/types/component.d.ts.map +1 -1
- package/esm/types/index.d.ts +1 -1
- package/esm/types/index.d.ts.map +1 -1
- package/esm/utils/color/merge.d.ts.map +1 -1
- package/esm/utils/focus.d.ts +35 -0
- package/esm/utils/focus.d.ts.map +1 -0
- package/esm/utils/focus.js +27 -0
- package/esm/utils/overlay.js +2 -2
- package/esm/utils/severity.d.ts +40 -0
- package/esm/utils/severity.d.ts.map +1 -0
- package/esm/utils/severity.js +25 -0
- package/esm/utils/theme.js +12 -12
- package/package.json +1 -1
- package/esm/components/QCheckbox/QCheckboxLabel.d.ts +0 -18
- package/esm/components/QCheckbox/QCheckboxLabel.d.ts.map +0 -1
- package/esm/components/QCheckbox/QCheckboxLabel.vue.js +0 -32
- package/esm/components/QCheckbox/QCheckboxLabel2.vue.js +0 -5
|
@@ -1,18 +1,32 @@
|
|
|
1
1
|
import { useId as e } from "../../composables/useId/index.js";
|
|
2
2
|
import { rgbToHex as t } from "../../utils/color/conversion.js";
|
|
3
3
|
import { lighten as n } from "../../utils/color/manipulate.js";
|
|
4
|
-
import { parseColor as
|
|
5
|
-
import { ensureContrast as
|
|
6
|
-
import { useColor as
|
|
4
|
+
import { parseColor as ee } from "../../utils/color/parse.js";
|
|
5
|
+
import { ensureContrast as r } from "../../utils/color/contrast.js";
|
|
6
|
+
import { useColor as i } from "../../composables/useColor/index.js";
|
|
7
|
+
import { QIcon as a } from "../QIcon/index.js";
|
|
7
8
|
import { QButton as o } from "../QButton/index.js";
|
|
8
|
-
import { QCard as
|
|
9
|
-
import {
|
|
10
|
-
import { QCol as
|
|
11
|
-
import { ToastSymbol as
|
|
12
|
-
import { DEFAULT_ICONS as
|
|
13
|
-
import {
|
|
9
|
+
import { QCard as te } from "../QCard/index.js";
|
|
10
|
+
import { getDefaultLive as ne, isSeverity as s } from "../../utils/severity.js";
|
|
11
|
+
import { QCol as c, QContainer as l, QRow as u } from "../QGrid/index.js";
|
|
12
|
+
import { ToastSymbol as re } from "../../composables/useToast/_internal.js";
|
|
13
|
+
import { DEFAULT_ICONS as d, DEFAULT_TEXTS as f } from "./constants.js";
|
|
14
|
+
import { ToasterSymbol as p } from "./context.js";
|
|
15
|
+
import { computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as ie, createTextVNode as ae, createVNode as y, defineComponent as b, guardReactiveProps as x, inject as S, mergeProps as C, normalizeClass as w, normalizeProps as T, normalizeStyle as E, onMounted as D, onUnmounted as O, openBlock as k, renderSlot as A, toDisplayString as j, toRef as M, unref as N, watch as oe, withCtx as P } from "vue";
|
|
14
16
|
//#region src/components/QToast/QToast.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
-
var
|
|
17
|
+
var se = {
|
|
18
|
+
class: "q-toast__icon",
|
|
19
|
+
"aria-hidden": "true"
|
|
20
|
+
}, ce = { class: "q-toast__title" }, le = {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: "q-sr-only"
|
|
23
|
+
}, F = {
|
|
24
|
+
class: "q-toast__icon",
|
|
25
|
+
"aria-hidden": "true"
|
|
26
|
+
}, I = {
|
|
27
|
+
key: 0,
|
|
28
|
+
class: "q-sr-only"
|
|
29
|
+
}, L = /*@__PURE__*/ b({
|
|
16
30
|
__name: "QToast",
|
|
17
31
|
props: {
|
|
18
32
|
id: {},
|
|
@@ -24,135 +38,170 @@ var I = { class: "q-toast__title" }, L = /*@__PURE__*/ x({
|
|
|
24
38
|
elevation: { default: "medium" },
|
|
25
39
|
variant: { default: "tonal" },
|
|
26
40
|
timeout: { default: 5e3 },
|
|
27
|
-
|
|
28
|
-
|
|
41
|
+
live: {},
|
|
42
|
+
icons: { default: () => d },
|
|
43
|
+
texts: { default: () => f },
|
|
29
44
|
entryKey: { default: void 0 }
|
|
30
45
|
},
|
|
31
46
|
emits: ["dismiss"],
|
|
32
|
-
setup(
|
|
33
|
-
let
|
|
34
|
-
|
|
35
|
-
e === t || !
|
|
47
|
+
setup(d, { emit: f }) {
|
|
48
|
+
let b = d, L = f, R = e(M(b, "id")), z = b.entryKey ? S(re, null) : null;
|
|
49
|
+
b.entryKey && (z?.registerToastEntry(b.entryKey, R.value), oe(R, (e, t) => {
|
|
50
|
+
e === t || !b.entryKey || z?.updateToastEntryId(b.entryKey, e);
|
|
36
51
|
}));
|
|
37
|
-
let { style:
|
|
38
|
-
|
|
52
|
+
let B = S(p, null), { style: V } = i(M(b, "color")), H = m(() => s(b.color) ? b.color : void 0), U = m(() => H.value ? b.icons[H.value] : void 0), W = m(() => b.live ?? ne(b.color)), ue = m(() => {
|
|
53
|
+
if (!(B || W.value === "off")) return W.value === "assertive" ? "alert" : "status";
|
|
54
|
+
}), G = m(() => [
|
|
55
|
+
H.value ? b.texts[H.value] : void 0,
|
|
56
|
+
b.title,
|
|
57
|
+
b.text
|
|
58
|
+
].filter(Boolean).join(" "));
|
|
59
|
+
function de() {
|
|
60
|
+
let e = W.value;
|
|
61
|
+
!B || e === "off" || !G.value || b.entryKey && z && !z.markAnnounced(b.entryKey) || B.announce(G.value, e);
|
|
62
|
+
}
|
|
63
|
+
let fe = m(() => {
|
|
64
|
+
let e = b.block ? "q-toast--block" : void 0, t = b.title ? "q-toast--vertical" : void 0;
|
|
39
65
|
return [
|
|
40
66
|
"q-toast",
|
|
41
|
-
`q-toast--${
|
|
67
|
+
`q-toast--${b.variant}`,
|
|
42
68
|
e,
|
|
43
69
|
t,
|
|
44
|
-
|
|
70
|
+
b.class
|
|
45
71
|
];
|
|
46
|
-
}),
|
|
47
|
-
let e =
|
|
48
|
-
if (e) return t(n(
|
|
49
|
-
}),
|
|
50
|
-
let e =
|
|
51
|
-
if (!(!e || !
|
|
52
|
-
}),
|
|
53
|
-
"--q-toast-main-color":
|
|
54
|
-
"--q-toast-on-main-color":
|
|
55
|
-
"--q-toast-hover-color":
|
|
56
|
-
"--q-toast-text-color":
|
|
57
|
-
"--q-toast-tonal-text-color":
|
|
58
|
-
"--q-toast-tonal-color":
|
|
59
|
-
} : { "--q-toast-tonal-color":
|
|
60
|
-
function
|
|
61
|
-
|
|
72
|
+
}), K = m(() => {
|
|
73
|
+
let e = V.value?.mainColor;
|
|
74
|
+
if (e) return t(n(ee(e), 88));
|
|
75
|
+
}), pe = m(() => {
|
|
76
|
+
let e = V.value?.mainColor;
|
|
77
|
+
if (!(!e || !K.value)) return r(e, K.value);
|
|
78
|
+
}), me = m(() => V.value ? {
|
|
79
|
+
"--q-toast-main-color": V.value.mainColor,
|
|
80
|
+
"--q-toast-on-main-color": V.value.onMainColor,
|
|
81
|
+
"--q-toast-hover-color": V.value.hoverColor,
|
|
82
|
+
"--q-toast-text-color": V.value.textColor,
|
|
83
|
+
"--q-toast-tonal-text-color": pe.value,
|
|
84
|
+
"--q-toast-tonal-color": K.value
|
|
85
|
+
} : { "--q-toast-tonal-color": K.value }), q = m(() => b.variant === "bold" ? "bold" : "ghost"), J = m(() => b.variant === "tonal" && V.value?.hoverColor ? V.value.hoverColor : b.color), Y, X, Z;
|
|
86
|
+
function Q() {
|
|
87
|
+
Y !== void 0 && (window.clearTimeout(Y), Y = void 0), X = void 0, Z = void 0, L("dismiss");
|
|
62
88
|
}
|
|
63
|
-
function
|
|
64
|
-
|
|
89
|
+
function $(e) {
|
|
90
|
+
Z = e, X = Date.now(), Y = window.setTimeout(Q, e);
|
|
65
91
|
}
|
|
66
92
|
return D(() => {
|
|
67
|
-
if (!
|
|
68
|
-
|
|
93
|
+
if (de(), !b.entryKey) {
|
|
94
|
+
b.timeout > 0 && $(b.timeout);
|
|
69
95
|
return;
|
|
70
96
|
}
|
|
71
|
-
let e = z?.consumeRemainingTimeout(
|
|
97
|
+
let e = z?.consumeRemainingTimeout(b.entryKey);
|
|
72
98
|
if (e !== void 0) {
|
|
73
|
-
e > 0 ?
|
|
99
|
+
e > 0 ? $(e) : Q();
|
|
74
100
|
return;
|
|
75
101
|
}
|
|
76
|
-
|
|
102
|
+
b.timeout > 0 && $(b.timeout);
|
|
77
103
|
}), O(() => {
|
|
78
|
-
if (
|
|
79
|
-
let e = Date.now() -
|
|
80
|
-
z.setRemainingTimeout(
|
|
104
|
+
if (Y !== void 0 && (window.clearTimeout(Y), b.entryKey && z && X !== void 0 && Z !== void 0)) {
|
|
105
|
+
let e = Date.now() - X, t = Math.max(0, Z - e);
|
|
106
|
+
z.setRemainingTimeout(b.entryKey, t);
|
|
81
107
|
}
|
|
82
|
-
}), (e, t) => (k(),
|
|
108
|
+
}), (e, t) => (k(), h(N(te), {
|
|
83
109
|
id: N(R),
|
|
84
|
-
elevation:
|
|
85
|
-
width:
|
|
86
|
-
class: w(
|
|
87
|
-
style: E(
|
|
88
|
-
|
|
89
|
-
|
|
110
|
+
elevation: b.elevation,
|
|
111
|
+
width: b.block ? "block" : void 0,
|
|
112
|
+
class: w(fe.value),
|
|
113
|
+
style: E(me.value),
|
|
114
|
+
role: ue.value
|
|
115
|
+
}, ie({
|
|
116
|
+
default: P(() => [y(N(l), {
|
|
90
117
|
fluid: "",
|
|
91
118
|
class: "q-toast__body"
|
|
92
119
|
}, {
|
|
93
|
-
default:
|
|
120
|
+
default: P(() => [y(N(u), {
|
|
94
121
|
align: "center",
|
|
95
122
|
justify: "between"
|
|
96
123
|
}, {
|
|
97
|
-
default:
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
124
|
+
default: P(() => [
|
|
125
|
+
!b.title && (e.$slots.icon || U.value) ? (k(), h(N(c), {
|
|
126
|
+
key: 0,
|
|
127
|
+
cols: "auto"
|
|
128
|
+
}, {
|
|
129
|
+
default: P(() => [v("span", F, [A(e.$slots, "icon", {}, () => [U.value ? (k(), h(N(a), T(C({ key: 0 }, U.value)), null, 16)) : g("v-if", !0)])])]),
|
|
130
|
+
_: 3
|
|
131
|
+
})) : g("v-if", !0),
|
|
132
|
+
y(N(c), null, {
|
|
133
|
+
default: P(() => [H.value && !b.title ? (k(), _("span", I, j(b.texts[H.value]), 1)) : g("v-if", !0), A(e.$slots, "default", {}, () => [v("span", null, j(b.text), 1)])]),
|
|
134
|
+
_: 3
|
|
135
|
+
}),
|
|
136
|
+
b.title ? g("v-if", !0) : (k(), h(N(c), {
|
|
137
|
+
key: 1,
|
|
138
|
+
cols: "auto"
|
|
110
139
|
}, {
|
|
111
|
-
default:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
140
|
+
default: P(() => [A(e.$slots, "dismiss", {}, () => [y(N(o), {
|
|
141
|
+
class: "q-toast__dismiss",
|
|
142
|
+
variant: q.value,
|
|
143
|
+
color: J.value,
|
|
144
|
+
"aria-label": b.texts.dismiss,
|
|
145
|
+
onClick: Q
|
|
146
|
+
}, {
|
|
147
|
+
default: P(() => [y(N(a), T(x(b.icons.close)), null, 16)]),
|
|
148
|
+
_: 1
|
|
149
|
+
}, 8, [
|
|
150
|
+
"variant",
|
|
151
|
+
"color",
|
|
152
|
+
"aria-label"
|
|
153
|
+
])])]),
|
|
154
|
+
_: 3
|
|
155
|
+
}))
|
|
156
|
+
]),
|
|
120
157
|
_: 3
|
|
121
158
|
})]),
|
|
122
159
|
_: 3
|
|
123
160
|
})]),
|
|
124
161
|
_: 2
|
|
125
|
-
}, [
|
|
162
|
+
}, [b.title ? {
|
|
126
163
|
name: "header",
|
|
127
|
-
fn:
|
|
128
|
-
default:
|
|
164
|
+
fn: P(() => [y(N(l), { fluid: "" }, {
|
|
165
|
+
default: P(() => [y(N(u), {
|
|
129
166
|
align: "center",
|
|
130
167
|
justify: "between"
|
|
131
168
|
}, {
|
|
132
|
-
default:
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
])]),
|
|
138
|
-
_: 3
|
|
139
|
-
}), b(N(l), { cols: "auto" }, {
|
|
140
|
-
default: F(() => [A(e.$slots, "dismiss", {}, () => [b(N(o), {
|
|
141
|
-
class: "q-toast__dismiss",
|
|
142
|
-
variant: G.value,
|
|
143
|
-
color: K.value,
|
|
144
|
-
"aria-label": x.texts.dismiss,
|
|
145
|
-
onClick: X
|
|
169
|
+
default: P(() => [
|
|
170
|
+
g(" With a title, the icon sits next to it. Otherwise it sits next to the text. "),
|
|
171
|
+
e.$slots.icon || U.value ? (k(), h(N(c), {
|
|
172
|
+
key: 0,
|
|
173
|
+
cols: "auto"
|
|
146
174
|
}, {
|
|
147
|
-
default:
|
|
148
|
-
_:
|
|
149
|
-
},
|
|
150
|
-
|
|
151
|
-
"
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
175
|
+
default: P(() => [v("span", se, [A(e.$slots, "icon", {}, () => [U.value ? (k(), h(N(a), T(C({ key: 0 }, U.value)), null, 16)) : g("v-if", !0)])])]),
|
|
176
|
+
_: 3
|
|
177
|
+
})) : g("v-if", !0),
|
|
178
|
+
y(N(c), null, {
|
|
179
|
+
default: P(() => [v("div", ce, [
|
|
180
|
+
e.$slots["title.prepend"] ? A(e.$slots, "title.prepend", { key: 0 }) : g("v-if", !0),
|
|
181
|
+
g(" With a title, the severity text goes inside the heading, so it is also read when navigating by headings "),
|
|
182
|
+
v("h4", null, [H.value ? (k(), _("span", le, j(b.texts[H.value]), 1)) : g("v-if", !0), ae(" " + j(b.title), 1)]),
|
|
183
|
+
e.$slots["title.append"] ? A(e.$slots, "title.append", { key: 1 }) : g("v-if", !0)
|
|
184
|
+
])]),
|
|
185
|
+
_: 3
|
|
186
|
+
}),
|
|
187
|
+
y(N(c), { cols: "auto" }, {
|
|
188
|
+
default: P(() => [A(e.$slots, "dismiss", {}, () => [y(N(o), {
|
|
189
|
+
class: "q-toast__dismiss",
|
|
190
|
+
variant: q.value,
|
|
191
|
+
color: J.value,
|
|
192
|
+
"aria-label": b.texts.dismiss,
|
|
193
|
+
onClick: Q
|
|
194
|
+
}, {
|
|
195
|
+
default: P(() => [y(N(a), T(x(b.icons.close)), null, 16)]),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, [
|
|
198
|
+
"variant",
|
|
199
|
+
"color",
|
|
200
|
+
"aria-label"
|
|
201
|
+
])])]),
|
|
202
|
+
_: 3
|
|
203
|
+
})
|
|
204
|
+
]),
|
|
156
205
|
_: 3
|
|
157
206
|
})]),
|
|
158
207
|
_: 3
|
|
@@ -163,7 +212,8 @@ var I = { class: "q-toast__title" }, L = /*@__PURE__*/ x({
|
|
|
163
212
|
"elevation",
|
|
164
213
|
"width",
|
|
165
214
|
"class",
|
|
166
|
-
"style"
|
|
215
|
+
"style",
|
|
216
|
+
"role"
|
|
167
217
|
]));
|
|
168
218
|
}
|
|
169
219
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
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, {}, HTMLDivElement>;
|
|
5
5
|
export default _default;
|
|
6
6
|
//# 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":"AA6CA;AAiLC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;;;;AAgNvC,wBAQG"}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { useId as e } from "../../composables/useId/index.js";
|
|
2
2
|
import { injectToastInstance as t, removeToastByEntryKey as n } from "../../composables/useToast/_internal.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { ANNOUNCEMENT_LIFETIME as r } from "./constants.js";
|
|
4
|
+
import { ToasterSymbol as i } from "./context.js";
|
|
5
|
+
import { QToast as a } from "./index.js";
|
|
6
|
+
import { Fragment as o, TransitionGroup as s, computed as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, mergeProps as m, normalizeClass as h, onUnmounted as g, openBlock as _, provide as v, ref as y, renderList as b, toDisplayString as x, toRef as S, unref as C, watch as w, withCtx as T } from "vue";
|
|
5
7
|
//#region src/components/QToast/QToaster.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
8
|
+
var E = ["id", "data-placement"], D = {
|
|
9
|
+
class: "q-sr-only",
|
|
10
|
+
role: "status",
|
|
11
|
+
"aria-atomic": "false"
|
|
12
|
+
}, O = {
|
|
13
|
+
class: "q-sr-only",
|
|
14
|
+
role: "alert",
|
|
15
|
+
"aria-atomic": "false"
|
|
16
|
+
}, k = /*@__PURE__*/ p({
|
|
7
17
|
__name: "QToaster",
|
|
8
18
|
props: {
|
|
9
19
|
id: {},
|
|
@@ -12,34 +22,54 @@ var b = /*@__PURE__*/ u({
|
|
|
12
22
|
maxToasts: {},
|
|
13
23
|
reverseOrder: { type: Boolean }
|
|
14
24
|
},
|
|
15
|
-
setup(
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
let
|
|
19
|
-
let e = [...
|
|
20
|
-
return
|
|
25
|
+
setup(p) {
|
|
26
|
+
let k = p, A = e(S(k, "id")), j = t(), { toasts: M } = j;
|
|
27
|
+
j.registerToaster(), g(() => j.unregisterToaster()), w(() => k.maxToasts, (e) => j.setMaxToasts(e), { immediate: !0 });
|
|
28
|
+
let N = c(() => {
|
|
29
|
+
let e = [...M.value];
|
|
30
|
+
return k.reverseOrder ? e.reverse() : e;
|
|
21
31
|
});
|
|
22
|
-
function
|
|
23
|
-
n(
|
|
32
|
+
function P(e) {
|
|
33
|
+
n(j, e.entryKey);
|
|
24
34
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
let F = y([]), I = y([]), L = /* @__PURE__ */ new Set(), R = 0;
|
|
36
|
+
function z(e, t) {
|
|
37
|
+
let n = window.setTimeout(() => {
|
|
38
|
+
L.delete(n), e();
|
|
39
|
+
}, t);
|
|
40
|
+
L.add(n);
|
|
41
|
+
}
|
|
42
|
+
function B(e, t) {
|
|
43
|
+
let n = t === "assertive" ? I : F, i = ++R;
|
|
44
|
+
z(() => {
|
|
45
|
+
n.value.push({
|
|
46
|
+
key: i,
|
|
47
|
+
text: e
|
|
48
|
+
}), z(() => {
|
|
49
|
+
n.value = n.value.filter((e) => e.key !== i);
|
|
50
|
+
}, r);
|
|
51
|
+
}, 100);
|
|
52
|
+
}
|
|
53
|
+
return v(i, { announce: B }), g(() => {
|
|
54
|
+
for (let e of L) window.clearTimeout(e);
|
|
55
|
+
L.clear();
|
|
56
|
+
}), (e, t) => (_(), u("div", {
|
|
57
|
+
id: C(A),
|
|
58
|
+
class: h(["q-toaster", k.class]),
|
|
59
|
+
"data-placement": k.placement
|
|
60
|
+
}, [
|
|
61
|
+
f(s, { name: "q-toast-stack" }, {
|
|
62
|
+
default: T(() => [(_(!0), u(o, null, b(N.value, (e) => (_(), u("div", {
|
|
63
|
+
key: e.entryKey,
|
|
64
|
+
class: "q-toast__container"
|
|
65
|
+
}, [f(C(a), m({ "entry-key": e.entryKey }, { ref_for: !0 }, e.props, { onDismiss: () => P(e) }), null, 16, ["entry-key", "onDismiss"])]))), 128))]),
|
|
66
|
+
_: 1
|
|
67
|
+
}),
|
|
68
|
+
l("\n The toasts announce themselves here. These regions are on the page before any toast\n appears, so screen readers pick up each message added to them. `aria-atomic=\"false\"`\n reads only the new message, not the ones still in the region.\n "),
|
|
69
|
+
d("div", D, [(_(!0), u(o, null, b(F.value, (e) => (_(), u("div", { key: e.key }, x(e.text), 1))), 128))]),
|
|
70
|
+
d("div", O, [(_(!0), u(o, null, b(I.value, (e) => (_(), u("div", { key: e.key }, x(e.text), 1))), 128))])
|
|
71
|
+
], 10, E));
|
|
42
72
|
}
|
|
43
73
|
});
|
|
44
74
|
//#endregion
|
|
45
|
-
export {
|
|
75
|
+
export { k as default };
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
export declare const DEFAULT_TEXTS: {
|
|
2
2
|
dismiss: string;
|
|
3
|
+
info: string;
|
|
4
|
+
success: string;
|
|
5
|
+
warning: string;
|
|
6
|
+
danger: string;
|
|
3
7
|
};
|
|
4
8
|
export declare const DEFAULT_ICONS: {
|
|
5
9
|
close: {
|
|
6
10
|
icon: string;
|
|
7
11
|
};
|
|
12
|
+
info: {
|
|
13
|
+
icon: string;
|
|
14
|
+
};
|
|
15
|
+
success: {
|
|
16
|
+
icon: string;
|
|
17
|
+
};
|
|
18
|
+
warning: {
|
|
19
|
+
icon: string;
|
|
20
|
+
};
|
|
21
|
+
danger: {
|
|
22
|
+
icon: string;
|
|
23
|
+
};
|
|
8
24
|
};
|
|
25
|
+
export declare const ANNOUNCEMENT_DELAY = 100;
|
|
26
|
+
export declare const ANNOUNCEMENT_LIFETIME = 7000;
|
|
9
27
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/constants.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa;;;;;;CAGQ,CAAA;AAGlC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;CAKY,CAAA;AAItC,eAAO,MAAM,kBAAkB,MAAM,CAAA;AAIrC,eAAO,MAAM,qBAAqB,OAAO,CAAA"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
+
import { SEVERITY_ICONS as e, SEVERITY_TEXTS as t } from "../../utils/severity.js";
|
|
1
2
|
//#region src/components/QToast/constants.ts
|
|
2
|
-
var
|
|
3
|
+
var n = {
|
|
4
|
+
...t,
|
|
5
|
+
dismiss: "Dismiss"
|
|
6
|
+
}, r = {
|
|
7
|
+
...e,
|
|
8
|
+
close: { icon: "close" }
|
|
9
|
+
}, i = 7e3;
|
|
3
10
|
//#endregion
|
|
4
|
-
export {
|
|
11
|
+
export { i as ANNOUNCEMENT_LIFETIME, r as DEFAULT_ICONS, n as DEFAULT_TEXTS };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
import { QLive } from '../../types/component';
|
|
3
|
+
/**
|
|
4
|
+
* Provide/inject context that {@link QToaster} gives the toasts it renders.
|
|
5
|
+
*
|
|
6
|
+
* The toaster owns live regions that are on the page before any toast appears.
|
|
7
|
+
* Screen readers often skip a live region inserted together with its message, so the
|
|
8
|
+
* toasts announce themselves through these regions instead of their own role.
|
|
9
|
+
*/
|
|
10
|
+
export type QToasterContext = {
|
|
11
|
+
/**
|
|
12
|
+
* Announces a message to screen readers.
|
|
13
|
+
*
|
|
14
|
+
* @param message - The text to announce.
|
|
15
|
+
* @param live - `assertive` interrupts the user (`role="alert"`), `polite` waits until
|
|
16
|
+
* they are idle (`role="status"`).
|
|
17
|
+
*/
|
|
18
|
+
announce: (message: string, live: Exclude<QLive, 'off'>) => void;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Injection key for the {@link QToasterContext} provided by `QToaster`.
|
|
22
|
+
*/
|
|
23
|
+
export declare const ToasterSymbol: InjectionKey<QToasterContext>;
|
|
24
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAElD;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B;;;;;;OAMG;IACH,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,CAAA;CAChE,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC,eAAe,CAAuB,CAAA"}
|
|
@@ -7,6 +7,7 @@ declare const QToast: {
|
|
|
7
7
|
elevation?: import('..').QCardElevation;
|
|
8
8
|
variant?: import('./types').QToastVariant;
|
|
9
9
|
timeout?: number;
|
|
10
|
+
live?: import('../..').QLive;
|
|
10
11
|
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
11
12
|
texts?: typeof import('./constants').DEFAULT_TEXTS;
|
|
12
13
|
} & {
|
|
@@ -16,11 +17,11 @@ declare const QToast: {
|
|
|
16
17
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
17
18
|
dismiss: () => any;
|
|
18
19
|
}, import('vue').PublicProps, {
|
|
19
|
-
variant: import('./types').QToastVariant;
|
|
20
20
|
color: string;
|
|
21
|
-
|
|
21
|
+
variant: import('./types').QToastVariant;
|
|
22
22
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
23
23
|
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
24
|
+
elevation: import('..').QCardElevation;
|
|
24
25
|
entryKey: string;
|
|
25
26
|
timeout: number;
|
|
26
27
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -38,6 +39,7 @@ declare const QToast: {
|
|
|
38
39
|
elevation?: import('..').QCardElevation;
|
|
39
40
|
variant?: import('./types').QToastVariant;
|
|
40
41
|
timeout?: number;
|
|
42
|
+
live?: import('../..').QLive;
|
|
41
43
|
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
42
44
|
texts?: typeof import('./constants').DEFAULT_TEXTS;
|
|
43
45
|
} & {
|
|
@@ -45,11 +47,11 @@ declare const QToast: {
|
|
|
45
47
|
}> & Readonly<{
|
|
46
48
|
onDismiss?: (() => any) | undefined;
|
|
47
49
|
}>, {}, {}, {}, {}, {
|
|
48
|
-
variant: import('./types').QToastVariant;
|
|
49
50
|
color: string;
|
|
50
|
-
|
|
51
|
+
variant: import('./types').QToastVariant;
|
|
51
52
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
52
53
|
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
54
|
+
elevation: import('..').QCardElevation;
|
|
53
55
|
entryKey: string;
|
|
54
56
|
timeout: number;
|
|
55
57
|
}>;
|
|
@@ -64,6 +66,7 @@ declare const QToast: {
|
|
|
64
66
|
elevation?: import('..').QCardElevation;
|
|
65
67
|
variant?: import('./types').QToastVariant;
|
|
66
68
|
timeout?: number;
|
|
69
|
+
live?: import('../..').QLive;
|
|
67
70
|
icons?: typeof import('./constants').DEFAULT_ICONS;
|
|
68
71
|
texts?: typeof import('./constants').DEFAULT_TEXTS;
|
|
69
72
|
} & {
|
|
@@ -73,15 +76,17 @@ declare const QToast: {
|
|
|
73
76
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
74
77
|
dismiss: () => any;
|
|
75
78
|
}, string, {
|
|
76
|
-
variant: import('./types').QToastVariant;
|
|
77
79
|
color: string;
|
|
78
|
-
|
|
80
|
+
variant: import('./types').QToastVariant;
|
|
79
81
|
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
80
82
|
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
83
|
+
elevation: import('..').QCardElevation;
|
|
81
84
|
entryKey: string;
|
|
82
85
|
timeout: number;
|
|
83
86
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
84
87
|
$slots: {
|
|
88
|
+
icon?(_: {}): any;
|
|
89
|
+
icon?(_: {}): any;
|
|
85
90
|
'title.prepend'?(_: {}): any;
|
|
86
91
|
'title.append'?(_: {}): any;
|
|
87
92
|
dismiss?(_: {}): any;
|
|
@@ -91,7 +96,7 @@ declare const QToast: {
|
|
|
91
96
|
});
|
|
92
97
|
declare const QToaster: import('vue').DefineComponent<import('./types').QToasterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./types').QToasterProps> & Readonly<{}>, {
|
|
93
98
|
placement: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center";
|
|
94
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
99
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
95
100
|
export { QToast, QToaster };
|
|
96
101
|
export * from './types';
|
|
97
102
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2B,CAAA;AACvC,QAAA,MAAM,QAAQ;;wFAA6B,CAAA;AAG3C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAA;AAG3B,cAAc,SAAS,CAAA"}
|