@quidgest/ui 0.27.1 → 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 +50 -0
- package/dist/json/api.json +1287 -297
- package/dist/manifest/components.json +1 -1
- package/dist/ui.css +594 -147
- package/dist/ui.esm.js +1561 -1526
- package/dist/ui.js +1127 -1092
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1127 -1092
- package/dist/ui.scss +401 -126
- 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 +23 -14
- 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/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
|
@@ -19,16 +19,19 @@ export declare function resolveOnMainColor(rawColor: string, isUtilityColor: boo
|
|
|
19
19
|
/**
|
|
20
20
|
* Resolves hover colors for `useColor`.
|
|
21
21
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* Every color gets the same hover, derived from the color itself: theme colors such as
|
|
23
|
+
* `primary`, other scheme keys, and custom CSS colors. The hover moves away from the
|
|
24
|
+
* scheme background, darker on a light theme and lighter on a dark one (the other way
|
|
25
|
+
* when that changes the color by less than 1.3:1 and the other direction changes it
|
|
26
|
+
* more), with WCAG `onHover`. The scheme's `*Dark` tokens are not read: a theme that sets
|
|
27
|
+
* only its base colors keeps the default `*Dark` values, which would not match them.
|
|
25
28
|
*
|
|
26
|
-
* @param
|
|
27
|
-
* @param isUtilityColor - Whether `rawColor` is a BEM theme utility key.
|
|
28
|
-
* @param scheme - The active color scheme.
|
|
29
|
+
* @param scheme - The active color scheme. Its background sets the direction.
|
|
29
30
|
* @param mainRgb - Parsed RGB of the resolved main color.
|
|
31
|
+
* @param surfaceRgb - Parsed RGB of the surface the component sits on, which sets the
|
|
32
|
+
* direction instead of the scheme background.
|
|
30
33
|
*/
|
|
31
|
-
export declare function resolveHoverStyle(
|
|
34
|
+
export declare function resolveHoverStyle(scheme: Readonly<QColorScheme>, mainRgb: RGB, surfaceRgb?: RGB): HoverStyle;
|
|
32
35
|
/**
|
|
33
36
|
* A composable function that processes and returns color-related information and styles.
|
|
34
37
|
*
|
|
@@ -39,41 +42,48 @@ export declare function resolveHoverStyle(rawColor: string, isUtilityColor: bool
|
|
|
39
42
|
*
|
|
40
43
|
* `style.onMainColor` uses the theme's own `on*` token for theme utility keys when
|
|
41
44
|
* present (e.g. `onPrimary`), falling back to WCAG relative luminance otherwise.
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* `
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* (
|
|
45
|
+
* Every color gets its hover the same way, theme colors included: `hoverColor` moves away
|
|
46
|
+
* from the theme background by `COLOR_SCHEME_DARKEN_AMOUNT`, darker on a light theme and
|
|
47
|
+
* lighter on a dark one (the other way when that changes the color by less than 1.3:1
|
|
48
|
+
* and the other direction changes it more), and `onHoverColor` is the WCAG contrasting
|
|
49
|
+
* color for it. The scheme's `*Dark` / `on*Dark` tokens are not used for hover.
|
|
50
|
+
* Components bind those values as CSS variables for both utility and custom colors.
|
|
51
|
+
*
|
|
52
|
+
* Everything measured against a background (the hover direction, `textColor`,
|
|
53
|
+
* `hoverTextColor` and the tint) uses the theme background, or `surface` when the
|
|
54
|
+
* component sits on another color, such as a white button on a primary banner.
|
|
50
55
|
*
|
|
51
56
|
* @param color - A theme utility key or CSS color value. Can be provided as a ref or plain string.
|
|
57
|
+
* @param surface - The theme key or CSS color the component sits on. Defaults to the theme
|
|
58
|
+
* background. Can be provided as a ref or plain string.
|
|
52
59
|
*
|
|
53
60
|
* @returns {QUseColorReturn} An object containing:
|
|
54
61
|
* - isUtilityColor: A computed boolean indicating if the color is a theme utility key
|
|
55
62
|
* - style: A computed object containing:
|
|
56
63
|
* - mainColor: The resolved color value
|
|
57
64
|
* - onMainColor: Scheme `on*` for utilities when present, otherwise WCAG contrast
|
|
58
|
-
* - hoverColor:
|
|
59
|
-
* - onHoverColor:
|
|
60
|
-
* - textColor: `mainColor` darkened or lightened until it clears 4.5:1 on a 12% tint of itself over the
|
|
61
|
-
* - hoverTextColor: `hoverColor` adjusted the same way against a 6% tint of the hover color over the
|
|
65
|
+
* - hoverColor: The main color darkened on a light surface or lightened on a dark one, the other way when that barely shows
|
|
66
|
+
* - onHoverColor: WCAG contrasting color for the hover color
|
|
67
|
+
* - textColor: `mainColor` darkened or lightened until it clears 4.5:1 on a 12% tint of itself over the surface
|
|
68
|
+
* - hoverTextColor: `hoverColor` adjusted the same way against a 6% tint of the hover color over the surface, for ghost and text hover
|
|
69
|
+
* - tintColor / tintColorRgb: A pale version of the color for selection and highlight surfaces, like the scheme's `*Light` tokens
|
|
62
70
|
*
|
|
63
71
|
* @example
|
|
64
72
|
* ```ts
|
|
65
73
|
* const { isUtilityColor, style } = useColor('primary')
|
|
66
74
|
* // or
|
|
67
75
|
* const { isUtilityColor, style } = useColor(ref('#FF0000'))
|
|
76
|
+
* // or, for a button on a primary banner
|
|
77
|
+
* const { isUtilityColor, style } = useColor('background', 'primary')
|
|
68
78
|
* ```
|
|
69
79
|
*/
|
|
70
|
-
export declare function useColor(color: MaybeRef<string | undefined>): QUseColorReturn;
|
|
80
|
+
export declare function useColor(color: MaybeRef<string | undefined>, surface?: MaybeRef<string | undefined>): QUseColorReturn;
|
|
71
81
|
/**
|
|
72
82
|
* Resolves a color scheme key against a color scheme while preserving CSS and custom colors.
|
|
73
83
|
*
|
|
74
84
|
* Looks up any key present on the scheme (base, Light/Dark variants, and `on*` tokens).
|
|
75
85
|
* {@link isThemeColor} remains narrower and is only used for theme-key classification
|
|
76
|
-
* (`isUtilityColor`
|
|
86
|
+
* (`isUtilityColor`).
|
|
77
87
|
*
|
|
78
88
|
* This pure variant is useful when a component needs to resolve a dynamic collection of
|
|
79
89
|
* colors and therefore cannot create one `useColor` instance per collection entry.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useColor/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useColor/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AA4B1D,KAAK,UAAU,GAAG,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,eAAe,GAAG,cAAc,CAAC,CAAA;AA0GpF;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CACjC,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,OAAO,EACvB,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC,EAC9B,OAAO,EAAE,GAAG,GACV,MAAM,CAUR;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAChC,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC,EAC9B,OAAO,EAAE,GAAG,EACZ,UAAU,GAAE,GAAmC,GAC7C,UAAU,CAEZ;AA2BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,QAAQ,CACvB,KAAK,EAAE,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,EACnC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,GACpC,eAAe,CAmDjB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,MAAM,CAQlF"}
|
|
@@ -1,86 +1,95 @@
|
|
|
1
1
|
import { rgbToHex as e, rgbToVariableString as t } from "../../utils/color/conversion.js";
|
|
2
|
-
import { darken as n } from "../../utils/color/manipulate.js";
|
|
3
|
-
import { parseColor as
|
|
4
|
-
import { ensureContrast as
|
|
5
|
-
import { isThemeColor as
|
|
6
|
-
import { useTheme as
|
|
7
|
-
import { computed as
|
|
2
|
+
import { darken as n, lighten as r } from "../../utils/color/manipulate.js";
|
|
3
|
+
import { parseColor as i } from "../../utils/color/parse.js";
|
|
4
|
+
import { ensureContrast as a, getContrastRatio as o, getContrastingColor as s, getRelativeLuminance as c } from "../../utils/color/contrast.js";
|
|
5
|
+
import { isThemeColor as l, isUnsupportedColor as u } from "../../utils/color/theme-colors.js";
|
|
6
|
+
import { useTheme as d } from "../theme.js";
|
|
7
|
+
import { computed as f, unref as p } from "vue";
|
|
8
8
|
//#region src/composables/useColor/index.ts
|
|
9
|
-
function
|
|
9
|
+
function m(e) {
|
|
10
10
|
typeof process < "u" && process.env.NODE_ENV === "production" || console.warn(`[Quidgest UI] useColor: unable to resolve color "${e}"`);
|
|
11
11
|
}
|
|
12
|
-
var
|
|
13
|
-
function
|
|
12
|
+
var h = .12, g = .06, _ = .15;
|
|
13
|
+
function v(e) {
|
|
14
|
+
return s(e) === "#000";
|
|
15
|
+
}
|
|
16
|
+
function y(e, t) {
|
|
17
|
+
return v(t) ? r(e, 75) : b(e, t, _);
|
|
18
|
+
}
|
|
19
|
+
function b(e, t, n) {
|
|
14
20
|
return {
|
|
15
21
|
r: Math.round(e.r * n + t.r * (1 - n)),
|
|
16
22
|
g: Math.round(e.g * n + t.g * (1 - n)),
|
|
17
23
|
b: Math.round(e.b * n + t.b * (1 - n))
|
|
18
24
|
};
|
|
19
25
|
}
|
|
20
|
-
|
|
21
|
-
|
|
26
|
+
var x = 1.3;
|
|
27
|
+
function S(e, t) {
|
|
28
|
+
return o(c(e), c(t));
|
|
29
|
+
}
|
|
30
|
+
function C(i, a) {
|
|
31
|
+
let o = n(i, 25), c = r(i, 25), [l, u] = v(a) ? [o, c] : [c, o], d = S(i, l), f = d >= x || d >= S(i, u) ? l : u;
|
|
22
32
|
return {
|
|
23
|
-
hoverColor: e(
|
|
24
|
-
hoverColorRgb: t(
|
|
25
|
-
onHoverColor:
|
|
33
|
+
hoverColor: e(f),
|
|
34
|
+
hoverColorRgb: t(f),
|
|
35
|
+
onHoverColor: s(f)
|
|
26
36
|
};
|
|
27
37
|
}
|
|
28
|
-
function
|
|
38
|
+
function w(e, t, n, r) {
|
|
29
39
|
if (t) {
|
|
30
40
|
let t = n[`on${e.charAt(0).toUpperCase()}${e.slice(1)}`];
|
|
31
41
|
if (typeof t == "string") return t;
|
|
32
42
|
}
|
|
33
|
-
return
|
|
43
|
+
return s(r);
|
|
34
44
|
}
|
|
35
|
-
function
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
d(o);
|
|
47
|
-
}
|
|
45
|
+
function T(e, t, n = i(e.background)) {
|
|
46
|
+
return C(t, n);
|
|
47
|
+
}
|
|
48
|
+
function E(e, t) {
|
|
49
|
+
let n = i(t.background);
|
|
50
|
+
if (!e) return n;
|
|
51
|
+
if (u(e)) return m(e), n;
|
|
52
|
+
try {
|
|
53
|
+
return i(O(e, t));
|
|
54
|
+
} catch {
|
|
55
|
+
return m(e), n;
|
|
48
56
|
}
|
|
49
|
-
return h(o);
|
|
50
57
|
}
|
|
51
|
-
function
|
|
52
|
-
let
|
|
58
|
+
function D(n, r) {
|
|
59
|
+
let o = f(() => p(n)), s = d(), c = f(() => o.value ? l(o.value) : !1);
|
|
53
60
|
return {
|
|
54
|
-
isUtilityColor:
|
|
55
|
-
style:
|
|
56
|
-
let n =
|
|
61
|
+
isUtilityColor: c,
|
|
62
|
+
style: f(() => {
|
|
63
|
+
let n = o.value;
|
|
57
64
|
if (!n) return;
|
|
58
|
-
if (!
|
|
59
|
-
|
|
65
|
+
if (!c.value && u(n)) {
|
|
66
|
+
m(n);
|
|
60
67
|
return;
|
|
61
68
|
}
|
|
62
|
-
let
|
|
69
|
+
let l = s.current.value.scheme, d = O(n, l), f;
|
|
63
70
|
try {
|
|
64
|
-
|
|
71
|
+
f = i(d);
|
|
65
72
|
} catch {
|
|
66
|
-
|
|
73
|
+
m(n);
|
|
67
74
|
return;
|
|
68
75
|
}
|
|
69
|
-
let
|
|
76
|
+
let _ = w(n, c.value, l, f), v = E(p(r), l), x = T(l, f, v), S = a(d, e(b(f, v, h))), C = x.hoverColor ?? d, D = a(C, e(b(i(C), v, g))), k = y(f, v);
|
|
70
77
|
return {
|
|
71
|
-
mainColor:
|
|
72
|
-
mainColorRgb: t(
|
|
73
|
-
onMainColor:
|
|
74
|
-
textColor:
|
|
75
|
-
hoverTextColor:
|
|
76
|
-
|
|
78
|
+
mainColor: d,
|
|
79
|
+
mainColorRgb: t(f),
|
|
80
|
+
onMainColor: _,
|
|
81
|
+
textColor: S,
|
|
82
|
+
hoverTextColor: D,
|
|
83
|
+
tintColor: e(k),
|
|
84
|
+
tintColorRgb: t(k),
|
|
85
|
+
...x
|
|
77
86
|
};
|
|
78
87
|
})
|
|
79
88
|
};
|
|
80
89
|
}
|
|
81
|
-
function
|
|
90
|
+
function O(e, t) {
|
|
82
91
|
let n = e.trim();
|
|
83
92
|
return Object.prototype.hasOwnProperty.call(t, n) ? t[n] ?? e : e;
|
|
84
93
|
}
|
|
85
94
|
//#endregion
|
|
86
|
-
export {
|
|
95
|
+
export { O as resolveColor, T as resolveHoverStyle, w as resolveOnMainColor, D as useColor };
|
|
@@ -19,21 +19,34 @@ export interface QColorStyle {
|
|
|
19
19
|
/**
|
|
20
20
|
* Text color for tonal, outlined, ghost, and text treatments.
|
|
21
21
|
* `mainColor` adjusted on the same hue until it clears 4.5:1 against a
|
|
22
|
-
* 12% tint of itself over the theme background
|
|
23
|
-
*
|
|
24
|
-
* such as a light tonal toast in the dark theme, needs its own measurement.
|
|
22
|
+
* 12% tint of itself over the surface: the theme background, or the `surface`
|
|
23
|
+
* passed to `useColor`. Unchanged when it already passes.
|
|
25
24
|
*/
|
|
26
25
|
textColor: string;
|
|
27
26
|
/**
|
|
28
27
|
* Text color for ghost and text treatments while hovered.
|
|
29
28
|
* `hoverColor` adjusted until it clears 4.5:1 against a 6% tint of the
|
|
30
|
-
* hover color over the
|
|
29
|
+
* hover color over the surface (the ghost hover fill).
|
|
31
30
|
* Unchanged when it already passes.
|
|
32
31
|
*/
|
|
33
32
|
hoverTextColor: string;
|
|
33
|
+
/**
|
|
34
|
+
* A pale version of the color for selection and highlight surfaces, like the scheme's
|
|
35
|
+
* `*Light` tokens. On a light surface it is the color lightened by
|
|
36
|
+
* `COLOR_SCHEME_LIGHTEN_AMOUNT`, the same as the default light theme's tokens; on a
|
|
37
|
+
* dark one, such as a dark theme's background, it is the color blended 15% over it.
|
|
38
|
+
*/
|
|
39
|
+
tintColor: string;
|
|
40
|
+
/**
|
|
41
|
+
* The RGB representation of the tint color, to combine with an alpha channel.
|
|
42
|
+
*/
|
|
43
|
+
tintColorRgb: string;
|
|
34
44
|
/**
|
|
35
45
|
* Optional color to be used when the component is in hover state.
|
|
36
|
-
*
|
|
46
|
+
* The main color moved away from the surface by `COLOR_SCHEME_DARKEN_AMOUNT`,
|
|
47
|
+
* for theme and custom colors alike: darker on a light surface, lighter on a dark one,
|
|
48
|
+
* and the other way when that changes the color by less than 1.3:1 and the other
|
|
49
|
+
* direction changes it more. The scheme's `*Dark` tokens are not used.
|
|
37
50
|
*/
|
|
38
51
|
hoverColor?: string;
|
|
39
52
|
/**
|
|
@@ -42,7 +55,7 @@ export interface QColorStyle {
|
|
|
42
55
|
hoverColorRgb?: string;
|
|
43
56
|
/**
|
|
44
57
|
* Optional color to be used for content when the component is in hover state.
|
|
45
|
-
*
|
|
58
|
+
* The WCAG contrasting color (black or white) for the hover color.
|
|
46
59
|
*/
|
|
47
60
|
onHoverColor?: string;
|
|
48
61
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useColor/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAEtC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;IAEpB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAA;IAEnB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useColor/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAEtC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;IAEpB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAA;IAEnB;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;;;;OAKG;IACH,cAAc,EAAE,MAAM,CAAA;IAEtB;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;IAEpB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,cAAc,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAEpC;;OAEG;IACH,KAAK,EAAE,WAAW,CAAC,WAAW,GAAG,SAAS,CAAC,CAAA;CAC3C"}
|
|
@@ -41,16 +41,16 @@ export type QUseDialogReturn = {
|
|
|
41
41
|
* Rejects when `props.id` is already used by an active dialog.
|
|
42
42
|
* Resolves with the dialog id once the component registers it during setup.
|
|
43
43
|
*/
|
|
44
|
-
addDialog(props: QDialogProps, options?: QDialogOptions, handlers?: QDialogHandlers)
|
|
44
|
+
addDialog: (props: QDialogProps, options?: QDialogOptions, handlers?: QDialogHandlers) => Promise<string>;
|
|
45
45
|
/**
|
|
46
46
|
* Removes a mounted dialog by id.
|
|
47
47
|
* Throws when no mounted dialog with that id exists.
|
|
48
48
|
*/
|
|
49
|
-
removeDialog(id: string)
|
|
49
|
+
removeDialog: (id: string) => void;
|
|
50
50
|
/**
|
|
51
51
|
* Cancels a dialog that has not registered yet.
|
|
52
52
|
* Matches `props.id` from `addDialog`. No-op when no matching entry exists.
|
|
53
53
|
*/
|
|
54
|
-
cancelDialog(id: string)
|
|
54
|
+
cancelDialog: (id: string) => void;
|
|
55
55
|
};
|
|
56
56
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useDialog/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAO,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AA+EnG;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,EAAE,YAAY,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAA;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAA;CAC1B,CAAA;AAeD;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;;;OAIG;IACH,OAAO,EAAE,WAAW,CAAC,WAAW,EAAE,CAAC,CAAA;IAEnC;;;;;OAKG;IACH,SAAS,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useDialog/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAO,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AA+EnG;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,EAAE,YAAY,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAA;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAA;CAC1B,CAAA;AAeD;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;;;OAIG;IACH,OAAO,EAAE,WAAW,CAAC,WAAW,EAAE,CAAC,CAAA;IAEnC;;;;;OAKG;IACH,SAAS,EAAE,CACV,KAAK,EAAE,YAAY,EACnB,OAAO,CAAC,EAAE,cAAc,EACxB,QAAQ,CAAC,EAAE,eAAe,KACtB,OAAO,CAAC,MAAM,CAAC,CAAA;IAEpB;;;OAGG;IACH,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAElC;;;OAGG;IACH,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC,CAAA"}
|
|
@@ -103,17 +103,21 @@ function u() {
|
|
|
103
103
|
let i = r.remainingTimeout;
|
|
104
104
|
return delete r.remainingTimeout, i;
|
|
105
105
|
}
|
|
106
|
-
function g() {
|
|
107
|
-
|
|
106
|
+
function g(t) {
|
|
107
|
+
let n = e.value.find((e) => e.entryKey === t);
|
|
108
|
+
return !n || n.announced ? !1 : (n.announced = !0, !0);
|
|
108
109
|
}
|
|
109
110
|
function _() {
|
|
110
|
-
return
|
|
111
|
+
return `toast-${++o}`;
|
|
111
112
|
}
|
|
112
113
|
function v() {
|
|
114
|
+
return s > 0;
|
|
115
|
+
}
|
|
116
|
+
function y() {
|
|
113
117
|
if (s > 0) throw Error("Only one QToaster may be mounted per app.");
|
|
114
118
|
s++;
|
|
115
119
|
}
|
|
116
|
-
function
|
|
120
|
+
function b() {
|
|
117
121
|
s = Math.max(0, s - 1), !(s > 0) && (i(r, /* @__PURE__ */ Error("QToaster unmounted before the toast was ready")), e.value = [], n.value = []);
|
|
118
122
|
}
|
|
119
123
|
return {
|
|
@@ -127,10 +131,11 @@ function u() {
|
|
|
127
131
|
updateToastEntryId: p,
|
|
128
132
|
setRemainingTimeout: m,
|
|
129
133
|
consumeRemainingTimeout: h,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
markAnnounced: g,
|
|
135
|
+
nextEntryKey: _,
|
|
136
|
+
hasToaster: v,
|
|
137
|
+
registerToaster: y,
|
|
138
|
+
unregisterToaster: b
|
|
134
139
|
};
|
|
135
140
|
}
|
|
136
141
|
function d() {
|
|
@@ -34,14 +34,14 @@ export type QUseToastReturn = {
|
|
|
34
34
|
* When `maxToasts` is set and the stack is full, the toast waits in a queue and the
|
|
35
35
|
* promise stays pending until a slot opens and the toast registers during setup.
|
|
36
36
|
*/
|
|
37
|
-
addToast(props: QToastProps)
|
|
37
|
+
addToast: (props: QToastProps) => Promise<string>;
|
|
38
38
|
/**
|
|
39
39
|
* Removes a toast that has already registered its public id — mounted or demoted
|
|
40
40
|
* into the queue. Throws when no toast with that registered id exists.
|
|
41
41
|
* For never-mounted queue entries or not-yet-registered mounts, use `cancelToast`
|
|
42
42
|
* with `props.id`. Demoted toasts accept either API.
|
|
43
43
|
*/
|
|
44
|
-
removeToast(id: string)
|
|
44
|
+
removeToast: (id: string) => void;
|
|
45
45
|
/**
|
|
46
46
|
* Cancels a never-mounted queue entry, a demoted queue entry, or a mount that has
|
|
47
47
|
* not registered yet. Matches `props.id` from `addToast` (demotion copies the
|
|
@@ -49,6 +49,6 @@ export type QUseToastReturn = {
|
|
|
49
49
|
* For registered mounted toasts, use `removeToast`. Rejects an unsettled
|
|
50
50
|
* `addToast` promise with "Toast canceled".
|
|
51
51
|
*/
|
|
52
|
-
cancelToast(id: string)
|
|
52
|
+
cancelToast: (id: string) => void;
|
|
53
53
|
};
|
|
54
54
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useToast/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAO,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useToast/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAO,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AA0I1D;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG;IACxB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,EAAE,WAAW,CAAA;CAClB,CAAA;AA0BD;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B;;;;OAIG;IACH,MAAM,EAAE,WAAW,CAAC,UAAU,EAAE,CAAC,CAAA;IAEjC;;;;;;;OAOG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;IAEjD;;;;;OAKG;IACH,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAEjC;;;;;;OAMG;IACH,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CACjC,CAAA"}
|
package/esm/index.d.ts
CHANGED
|
@@ -5,12 +5,13 @@ import * as utils from './utils';
|
|
|
5
5
|
export declare const createFramework: (options?: QFrameworkConfig) => import('vue').Plugin;
|
|
6
6
|
export { templates, components, utils };
|
|
7
7
|
export * from './composables';
|
|
8
|
-
export type { QBaseComponentProps, QComponentSize } from './types';
|
|
8
|
+
export type { QBaseComponentProps, QComponentSize, QHelpDisplay, QLive, QSelectionLabelPlacement } from './types';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
10
10
|
declare module '@vue/runtime-core' {
|
|
11
11
|
export interface GlobalComponents {
|
|
12
12
|
QAccordion: typeof import('@quidgest/ui/components')['QAccordion']
|
|
13
13
|
QAccordionItem: typeof import('@quidgest/ui/components')['QAccordionItem']
|
|
14
|
+
QAlert: typeof import('@quidgest/ui/components')['QAlert']
|
|
14
15
|
QAvatar: typeof import('@quidgest/ui/components')['QAvatar']
|
|
15
16
|
QBadge: typeof import('@quidgest/ui/components')['QBadge']
|
|
16
17
|
QBadgeIndicator: typeof import('@quidgest/ui/components')['QBadgeIndicator']
|
|
@@ -21,7 +22,6 @@ declare module '@vue/runtime-core' {
|
|
|
21
22
|
QCard: typeof import('@quidgest/ui/components')['QCard']
|
|
22
23
|
QCarousel: typeof import('@quidgest/ui/components')['QCarousel']
|
|
23
24
|
QCheckbox: typeof import('@quidgest/ui/components')['QCheckbox']
|
|
24
|
-
QCheckboxLabel: typeof import('@quidgest/ui/components')['QCheckboxLabel']
|
|
25
25
|
QCollapsible: typeof import('@quidgest/ui/components')['QCollapsible']
|
|
26
26
|
QColorPicker: typeof import('@quidgest/ui/components')['QColorPicker']
|
|
27
27
|
QCombobox: typeof import('@quidgest/ui/components')['QCombobox']
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAIhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEnD,eAAO,MAAM,eAAe,aAAa,gBAAgB,yBAExD,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,CAAA;AACvC,cAAc,eAAe,CAAA;AAC7B,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAIhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEnD,eAAO,MAAM,eAAe,aAAa,gBAAgB,yBAExD,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,CAAA;AACvC,cAAc,eAAe,CAAA;AAC7B,YAAY,EACX,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,KAAK,EACL,wBAAwB,EACxB,MAAM,SAAS,CAAA"}
|
package/esm/types/component.d.ts
CHANGED
|
@@ -26,4 +26,27 @@ export type QBaseComponentProps = {
|
|
|
26
26
|
* inherit the global scale with no extra class.
|
|
27
27
|
*/
|
|
28
28
|
export type QComponentSize = 'small' | 'medium' | 'large';
|
|
29
|
+
/**
|
|
30
|
+
* Where a selection control's label sits relative to the control.
|
|
31
|
+
* `end` places the label after the control. `start` places it before.
|
|
32
|
+
* Shared by `QCheckbox` and `QRadioButton`. Not a `QLabel` position.
|
|
33
|
+
*/
|
|
34
|
+
export type QSelectionLabelPlacement = 'start' | 'end';
|
|
35
|
+
/**
|
|
36
|
+
* How help text is presented on a component.
|
|
37
|
+
* Tooltip, popover, and subtext are alternatives.
|
|
38
|
+
* - `popover`: a help button opens the text.
|
|
39
|
+
* - `tooltip`: the text shows on hover of the control or title, or focus of the
|
|
40
|
+
* control (see each component's `helpDisplay`).
|
|
41
|
+
* - `subtext`: the text is always visible under the control or title.
|
|
42
|
+
*/
|
|
43
|
+
export type QHelpDisplay = 'tooltip' | 'popover' | 'subtext';
|
|
44
|
+
/**
|
|
45
|
+
* How screen readers announce a component's message.
|
|
46
|
+
* - `assertive`: interrupts the user (`role="alert"`).
|
|
47
|
+
* - `polite`: waits until the user is idle (`role="status"`).
|
|
48
|
+
* - `off`: does not announce it.
|
|
49
|
+
* Shared by `QAlert` and `QToast`.
|
|
50
|
+
*/
|
|
51
|
+
export type QLive = 'assertive' | 'polite' | 'off';
|
|
29
52
|
//# sourceMappingURL=component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/types/component.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG;IACjC;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA"}
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/types/component.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG;IACjC;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAEzD;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,GAAG,KAAK,CAAA;AAEtD;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;AAE5D;;;;;;GAMG;AACH,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG,QAAQ,GAAG,KAAK,CAAA"}
|
package/esm/types/index.d.ts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* Add new exports here **only if** the type is meant to be
|
|
15
15
|
* consumed by applications or other packages.
|
|
16
16
|
*/
|
|
17
|
-
export type { QBaseComponentProps, QComponentSize } from './component';
|
|
17
|
+
export type { QBaseComponentProps, QComponentSize, QHelpDisplay, QLive, QSelectionLabelPlacement } from './component';
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,YAAY,EACX,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,KAAK,EACL,wBAAwB,EACxB,MAAM,aAAa,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/utils/color/merge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,SAAS,CAAA;AAQ7D;;GAEG;AACH,eAAO,MAAM,2BAA2B,KAAK,CAAA;AAE7C;;;GAGG;AACH,eAAO,MAAM,0BAA0B,KAAK,CAAA;AAE5C;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/utils/color/merge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,SAAS,CAAA;AAQ7D;;GAEG;AACH,eAAO,MAAM,2BAA2B,KAAK,CAAA;AAE7C;;;GAGG;AACH,eAAO,MAAM,0BAA0B,KAAK,CAAA;AAE5C;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,YAAY,CAgGzF"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the rendered elements in `container` that match {@link TABBABLE_SELECTOR},
|
|
3
|
+
* in document order. Skips the focus walls of `QFocusWrap`.
|
|
4
|
+
*
|
|
5
|
+
* @param container - The element or document to search.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getTabbableElements(container: ParentNode): HTMLElement[];
|
|
8
|
+
/**
|
|
9
|
+
* Finds the tabbable element next to `element` inside `container`: the first one after
|
|
10
|
+
* it in document order, or the last one before it when nothing follows. That is where
|
|
11
|
+
* Tab would have gone, so the focus order stays intact (WCAG 2.4.3).
|
|
12
|
+
*
|
|
13
|
+
* Skips elements inside `element` and elements with a negative `tabindex`.
|
|
14
|
+
*
|
|
15
|
+
* @param element - The element about to be removed.
|
|
16
|
+
* @param container - Where to look. Defaults to the whole document.
|
|
17
|
+
* @returns The element to focus, or `undefined` when the container has none.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getAdjacentTabbable(element: Element, container?: ParentNode): HTMLElement | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Finds where focus should go when `element` leaves the page while focus is inside it.
|
|
22
|
+
* Removing the focused element would otherwise drop focus on `<body>`, and screen
|
|
23
|
+
* readers lose their place.
|
|
24
|
+
*
|
|
25
|
+
* Inside an overlay, such as an open `QDialog` or `QPopover`, the search stays in the
|
|
26
|
+
* overlay's content: an element of the page behind a modal dialog is not a valid target.
|
|
27
|
+
* When nothing else in the overlay can take focus, the content element itself takes it
|
|
28
|
+
* (it has `tabindex="-1"`), so focus stays in the dialog. Outside overlays, the search
|
|
29
|
+
* covers the whole document.
|
|
30
|
+
*
|
|
31
|
+
* @param element - The element about to be removed.
|
|
32
|
+
* @returns The element to focus, or `undefined` when the page has none.
|
|
33
|
+
*/
|
|
34
|
+
export declare function getFocusTargetOnRemoval(element: Element): HTMLElement | undefined;
|
|
35
|
+
//# sourceMappingURL=focus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focus.d.ts","sourceRoot":"","sources":["../../src/utils/focus.ts"],"names":[],"mappings":"AA0BA;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,UAAU,GAAG,WAAW,EAAE,CAMxE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAClC,OAAO,EAAE,OAAO,EAChB,SAAS,GAAE,UAAkC,GAC3C,WAAW,GAAG,SAAS,CAczB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,CAKjF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region src/utils/focus.ts
|
|
2
|
+
var e = [
|
|
3
|
+
"a[href]",
|
|
4
|
+
"area[href]",
|
|
5
|
+
"input:not([disabled])",
|
|
6
|
+
"select:not([disabled])",
|
|
7
|
+
"textarea:not([disabled])",
|
|
8
|
+
"button:not([disabled])",
|
|
9
|
+
"iframe",
|
|
10
|
+
"object",
|
|
11
|
+
"embed",
|
|
12
|
+
"[tabindex]:not([tabindex=\"-1\"])",
|
|
13
|
+
"[contenteditable]"
|
|
14
|
+
].join(","), t = ".q-overlay__content";
|
|
15
|
+
function n(t) {
|
|
16
|
+
return Array.from(t.querySelectorAll(e)).filter((e) => (e.offsetWidth > 0 || e.offsetHeight > 0 || e.getClientRects().length > 0) && !e.getAttribute("data-focus-wall"));
|
|
17
|
+
}
|
|
18
|
+
function r(e, t = e.ownerDocument) {
|
|
19
|
+
let r = n(t).filter((t) => !(Number(t.getAttribute("tabindex")) < 0) && !e.contains(t)), i = r.findIndex((t) => e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING);
|
|
20
|
+
return i >= 0 ? r[i] : r[r.length - 1];
|
|
21
|
+
}
|
|
22
|
+
function i(e) {
|
|
23
|
+
let n = e.closest(t);
|
|
24
|
+
return n ? r(e, n) ?? n : r(e);
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { r as getAdjacentTabbable, i as getFocusTargetOnRemoval, n as getTabbableElements };
|
package/esm/utils/overlay.js
CHANGED
|
@@ -91,7 +91,7 @@ function s(e, t, n) {
|
|
|
91
91
|
case "end":
|
|
92
92
|
s[l] += u;
|
|
93
93
|
break;
|
|
94
|
-
default: throw Error(`[Quidgest UI] Invalid alignment value: ${i}`);
|
|
94
|
+
default: throw Error(`[Quidgest UI] Invalid alignment value: ${String(i)}`);
|
|
95
95
|
}
|
|
96
96
|
return s;
|
|
97
97
|
}
|
|
@@ -110,7 +110,7 @@ function c(e, t, n, r) {
|
|
|
110
110
|
case "right":
|
|
111
111
|
a = window.innerWidth - e.right - (t.width + r);
|
|
112
112
|
break;
|
|
113
|
-
default: throw Error(`[Quidgest UI] Invalid side value: ${i}`);
|
|
113
|
+
default: throw Error(`[Quidgest UI] Invalid side value: ${String(i)}`);
|
|
114
114
|
}
|
|
115
115
|
return a;
|
|
116
116
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { QLive } from '../types/component';
|
|
2
|
+
export declare const SEVERITIES: readonly ["info", "success", "warning", "danger"];
|
|
3
|
+
/** A theme color that carries a severity. */
|
|
4
|
+
export type QSeverity = (typeof SEVERITIES)[number];
|
|
5
|
+
export declare const SEVERITY_ICONS: {
|
|
6
|
+
info: {
|
|
7
|
+
icon: string;
|
|
8
|
+
};
|
|
9
|
+
success: {
|
|
10
|
+
icon: string;
|
|
11
|
+
};
|
|
12
|
+
warning: {
|
|
13
|
+
icon: string;
|
|
14
|
+
};
|
|
15
|
+
danger: {
|
|
16
|
+
icon: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare const SEVERITY_TEXTS: {
|
|
20
|
+
info: string;
|
|
21
|
+
success: string;
|
|
22
|
+
warning: string;
|
|
23
|
+
danger: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Checks whether a color is one of the severity theme colors.
|
|
27
|
+
*
|
|
28
|
+
* @param color - The color value to check.
|
|
29
|
+
* @returns True for `info`, `success`, `warning` and `danger`.
|
|
30
|
+
*/
|
|
31
|
+
export declare function isSeverity(color: string): color is QSeverity;
|
|
32
|
+
/**
|
|
33
|
+
* The default politeness of a message in the given color. Warnings and errors interrupt
|
|
34
|
+
* the user. Every other color waits until they are idle.
|
|
35
|
+
*
|
|
36
|
+
* @param color - The color of the alert or toast.
|
|
37
|
+
* @returns `assertive` for `warning` and `danger`, otherwise `polite`.
|
|
38
|
+
*/
|
|
39
|
+
export declare function getDefaultLive(color: string): Exclude<QLive, 'off'>;
|
|
40
|
+
//# sourceMappingURL=severity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"severity.d.ts","sourceRoot":"","sources":["../../src/utils/severity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAI/C,eAAO,MAAM,UAAU,mDAAoD,CAAA;AAE3E,6CAA6C;AAC7C,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAA;AAGnD,eAAO,MAAM,cAAc;;;;;;;;;;;;;CAac,CAAA;AAIzC,eAAO,MAAM,cAAc;;;;;CAKU,CAAA;AAErC;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAE5D;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAEnE"}
|