@quidgest/ui 0.31.2 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/dist/json/api.json +1027 -243
- package/dist/manifest/components.json +1 -0
- package/dist/ui.css +849 -277
- package/dist/ui.esm.js +1584 -1360
- package/dist/ui.min.css +1 -1
- package/dist/ui.scss +940 -300
- package/lib/components/QAccordion/QAccordion.d.ts +1 -1
- package/lib/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/lib/components/QAccordion/QAccordionItem.d.ts.map +1 -1
- package/lib/components/QAccordion/QAccordionItem.vue.js +5 -5
- package/lib/components/QAccordion/index.d.ts +6 -6
- package/lib/components/QAccordion/types.d.ts +2 -2
- package/lib/components/QAccordion/types.d.ts.map +1 -1
- package/lib/components/QAlert/QAlert.d.ts +1 -1
- package/lib/components/QAlert/QAlert.d.ts.map +1 -1
- package/lib/components/QAlert/QAlert.vue.js +78 -74
- package/lib/components/QAlert/index.d.ts +3 -3
- package/lib/components/QAlert/types.d.ts +20 -2
- package/lib/components/QAlert/types.d.ts.map +1 -1
- package/lib/components/QAvatar/QAvatar.d.ts +1 -1
- package/lib/components/QAvatar/index.d.ts +3 -3
- package/lib/components/QBadge/QBadge.d.ts +1 -1
- package/lib/components/QBadge/QBadge.d.ts.map +1 -1
- package/lib/components/QBadge/QBadge.vue.js +64 -55
- package/lib/components/QBadge/index.d.ts +3 -3
- package/lib/components/QBadge/types.d.ts +2 -2
- package/lib/components/QBadge/types.d.ts.map +1 -1
- package/lib/components/QBadgeIndicator/QBadgeIndicator.vue.js +2 -3
- package/lib/components/QBreadcrumbs/QBreadcrumb.d.ts +6 -6
- package/lib/components/QBreadcrumbs/QBreadcrumb.vue.js +3 -3
- package/lib/components/QBreadcrumbs/QBreadcrumbs.d.ts +1 -1
- package/lib/components/QBreadcrumbs/QBreadcrumbs.d.ts.map +1 -1
- package/lib/components/QBreadcrumbs/QBreadcrumbs.vue.js +31 -31
- package/lib/components/QBreadcrumbs/context.d.ts +2 -1
- package/lib/components/QBreadcrumbs/context.d.ts.map +1 -1
- package/lib/components/QBreadcrumbs/index.d.ts +9 -9
- package/lib/components/QBreadcrumbs/types.d.ts +2 -2
- package/lib/components/QBreadcrumbs/types.d.ts.map +1 -1
- package/lib/components/QButton/QButton.d.ts +2 -2
- package/lib/components/QButton/QButton.d.ts.map +1 -1
- package/lib/components/QButton/QButton.vue.js +53 -49
- package/lib/components/QButton/index.d.ts +6 -6
- package/lib/components/QButton/types.d.ts +2 -2
- package/lib/components/QButton/types.d.ts.map +1 -1
- package/lib/components/QCard/QCard.vue.js +9 -20
- package/lib/components/QCarousel/QCarousel.d.ts +4 -4
- package/lib/components/QCarousel/QCarousel.d.ts.map +1 -1
- package/lib/components/QCarousel/QCarousel.vue.js +10 -16
- package/lib/components/QCarousel/index.d.ts +14 -14
- package/lib/components/QCarousel/types.d.ts +2 -2
- package/lib/components/QCarousel/types.d.ts.map +1 -1
- package/lib/components/QCheckbox/QCheckbox.d.ts +3 -22
- package/lib/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/lib/components/QCheckbox/QCheckbox.vue.js +98 -100
- package/lib/components/QCheckbox/constants.d.ts +9 -0
- package/lib/components/QCheckbox/constants.d.ts.map +1 -1
- package/lib/components/QCheckbox/constants.js +4 -4
- package/lib/components/QCheckbox/index.d.ts +10 -72
- package/lib/components/QCheckbox/index.d.ts.map +1 -1
- package/lib/components/QCheckbox/types.d.ts +2 -8
- package/lib/components/QCheckbox/types.d.ts.map +1 -1
- package/lib/components/QCollapsible/QCollapsible.d.ts +1 -1
- package/lib/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/lib/components/QCollapsible/QCollapsible.vue.js +20 -27
- package/lib/components/QCollapsible/index.d.ts +6 -6
- package/lib/components/QCollapsible/types.d.ts +2 -2
- package/lib/components/QCollapsible/types.d.ts.map +1 -1
- package/lib/components/QColorPicker/QColorPicker.d.ts +4 -18
- package/lib/components/QColorPicker/QColorPicker.d.ts.map +1 -1
- package/lib/components/QColorPicker/QColorPicker.vue.js +52 -35
- package/lib/components/QColorPicker/constants.d.ts +4 -0
- package/lib/components/QColorPicker/constants.d.ts.map +1 -1
- package/lib/components/QColorPicker/index.d.ts +13 -57
- package/lib/components/QColorPicker/index.d.ts.map +1 -1
- package/lib/components/QColorPicker/types.d.ts +2 -2
- package/lib/components/QColorPicker/types.d.ts.map +1 -1
- package/lib/components/QCombobox/QCombobox.d.ts +355 -299
- package/lib/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/lib/components/QCombobox/QCombobox.vue.js +236 -190
- package/lib/components/QCombobox/constants.d.ts +5 -0
- package/lib/components/QCombobox/constants.d.ts.map +1 -1
- package/lib/components/QCombobox/constants.js +1 -0
- package/lib/components/QCombobox/index.d.ts +265 -424
- package/lib/components/QCombobox/index.d.ts.map +1 -1
- package/lib/components/QCombobox/types.d.ts +2 -2
- package/lib/components/QCombobox/types.d.ts.map +1 -1
- package/lib/components/QDateTimePicker/QDateTimePicker.d.ts +106 -229
- package/lib/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/lib/components/QDateTimePicker/QDateTimePicker.vue.js +829 -722
- package/lib/components/QDateTimePicker/constants.d.ts +6 -1
- package/lib/components/QDateTimePicker/constants.d.ts.map +1 -1
- package/lib/components/QDateTimePicker/constants.js +2 -1
- package/lib/components/QDateTimePicker/index.d.ts +73 -229
- package/lib/components/QDateTimePicker/index.d.ts.map +1 -1
- package/lib/components/QDateTimePicker/types.d.ts +2 -1
- package/lib/components/QDateTimePicker/types.d.ts.map +1 -1
- package/lib/components/QDialog/QDialog.d.ts +22 -10
- package/lib/components/QDialog/QDialog.d.ts.map +1 -1
- package/lib/components/QDialog/QDialog.vue.js +143 -108
- package/lib/components/QDialog/QDialogProvider.d.ts.map +1 -1
- package/lib/components/QDialog/QDialogProvider.vue.js +8 -3
- package/lib/components/QDialog/constants.d.ts +19 -1
- package/lib/components/QDialog/constants.d.ts.map +1 -1
- package/lib/components/QDialog/constants.js +16 -11
- package/lib/components/QDialog/index.d.ts +39 -23
- package/lib/components/QDialog/index.d.ts.map +1 -1
- package/lib/components/QDialog/types.d.ts +24 -13
- package/lib/components/QDialog/types.d.ts.map +1 -1
- package/lib/components/QDivider/QDivider.d.ts.map +1 -1
- package/lib/components/QDivider/QDivider.vue.js +23 -13
- package/lib/components/QDivider/types.d.ts +9 -0
- package/lib/components/QDivider/types.d.ts.map +1 -1
- package/lib/components/QDrawer/QDrawer.d.ts +71 -0
- package/lib/components/QDrawer/QDrawer.d.ts.map +1 -0
- package/lib/components/QDrawer/QDrawer.vue.js +458 -0
- package/lib/components/QDrawer/QDrawer2.vue.js +5 -0
- package/lib/components/QDrawer/constants.d.ts +22 -0
- package/lib/components/QDrawer/constants.d.ts.map +1 -0
- package/lib/components/QDrawer/constants.js +14 -0
- package/lib/components/QDrawer/index.d.ts +214 -0
- package/lib/components/QDrawer/index.d.ts.map +1 -0
- package/lib/components/QDrawer/index.js +6 -0
- package/lib/components/QDrawer/types.d.ts +221 -0
- package/lib/components/QDrawer/types.d.ts.map +1 -0
- package/lib/components/QDropdownMenu/QDropdownMenu.d.ts +1 -1
- package/lib/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
- package/lib/components/QDropdownMenu/QDropdownMenu.vue.js +59 -52
- package/lib/components/QDropdownMenu/QDropdownMenuContent.d.ts +118 -42
- package/lib/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/lib/components/QDropdownMenu/QDropdownMenuContent.vue.js +213 -185
- package/lib/components/QDropdownMenu/ids.d.ts +6 -0
- package/lib/components/QDropdownMenu/ids.d.ts.map +1 -1
- package/lib/components/QDropdownMenu/ids.js +4 -1
- package/lib/components/QDropdownMenu/index.d.ts +6 -6
- package/lib/components/QDropdownMenu/types.d.ts +6 -4
- package/lib/components/QDropdownMenu/types.d.ts.map +1 -1
- package/lib/components/QField/QField.d.ts +18 -17
- package/lib/components/QField/QField.d.ts.map +1 -1
- package/lib/components/QField/QField.vue.js +65 -50
- package/lib/components/QField/constants.d.ts +10 -3
- package/lib/components/QField/constants.d.ts.map +1 -1
- package/lib/components/QField/constants.js +4 -2
- package/lib/components/QField/index.d.ts +12 -11
- package/lib/components/QField/index.d.ts.map +1 -1
- package/lib/components/QField/types.d.ts +6 -5
- package/lib/components/QField/types.d.ts.map +1 -1
- package/lib/components/QFileUpload/QFileUpload.d.ts +28 -54
- package/lib/components/QFileUpload/QFileUpload.d.ts.map +1 -1
- package/lib/components/QFileUpload/QFileUpload.vue.js +43 -39
- package/lib/components/QFileUpload/constants.d.ts +4 -0
- package/lib/components/QFileUpload/constants.d.ts.map +1 -1
- package/lib/components/QFileUpload/index.d.ts +25 -105
- package/lib/components/QFileUpload/index.d.ts.map +1 -1
- package/lib/components/QFileUpload/types.d.ts +2 -1
- package/lib/components/QFileUpload/types.d.ts.map +1 -1
- package/lib/components/QFocusWrap/QFocusWrap.d.ts +1 -0
- package/lib/components/QFocusWrap/QFocusWrap.d.ts.map +1 -1
- package/lib/components/QFocusWrap/QFocusWrap.vue.js +60 -41
- package/lib/components/QFocusWrap/index.d.ts +3 -0
- package/lib/components/QFocusWrap/index.d.ts.map +1 -1
- package/lib/components/QFocusWrap/stack.d.ts +15 -0
- package/lib/components/QFocusWrap/stack.d.ts.map +1 -0
- package/lib/components/QFocusWrap/stack.js +11 -0
- package/lib/components/QFocusWrap/types.d.ts +8 -0
- package/lib/components/QFocusWrap/types.d.ts.map +1 -1
- package/lib/components/QGauge/QGauge.d.ts.map +1 -1
- package/lib/components/QGauge/QGauge.vue.js +87 -86
- package/lib/components/QGrid/QRow.d.ts +1 -1
- package/lib/components/QGrid/index.d.ts +3 -3
- package/lib/components/QIcon/QSvgSymbol.d.ts +1 -1
- package/lib/components/QIcon/QSvgSymbol.d.ts.map +1 -1
- package/lib/components/QIcon/QSvgSymbol.vue.js +31 -31
- package/lib/components/QIcon/utils/svgSource.d.ts +2 -2
- package/lib/components/QIcon/utils/svgSource.d.ts.map +1 -1
- package/lib/components/QInputGroup/QInputGroup.d.ts +27 -24
- package/lib/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/lib/components/QInputGroup/QInputGroup.vue.js +19 -11
- package/lib/components/QInputGroup/index.d.ts +14 -12
- package/lib/components/QInputGroup/index.d.ts.map +1 -1
- package/lib/components/QLabel/QLabel.vue.js +1 -2
- package/lib/components/QList/QList.d.ts +46 -17
- package/lib/components/QList/QList.d.ts.map +1 -1
- package/lib/components/QList/QList.vue.js +470 -195
- package/lib/components/QList/QListItem.d.ts +1 -1
- package/lib/components/QList/QListItem.d.ts.map +1 -1
- package/lib/components/QList/QListItem.vue.js +33 -32
- package/lib/components/QList/QListItemGroup.vue.js +1 -1
- package/lib/components/QList/constants.d.ts +26 -0
- package/lib/components/QList/constants.d.ts.map +1 -1
- package/lib/components/QList/context.d.ts +12 -1
- package/lib/components/QList/context.d.ts.map +1 -1
- package/lib/components/QList/context.js +2 -2
- package/lib/components/QList/index.d.ts +79 -22
- package/lib/components/QList/index.d.ts.map +1 -1
- package/lib/components/QList/types.d.ts +11 -9
- package/lib/components/QList/types.d.ts.map +1 -1
- package/lib/components/QMeter/QMeter.d.ts.map +1 -1
- package/lib/components/QMeter/QMeter.vue.js +27 -26
- package/lib/components/QObfuscation/QObfuscation.d.ts +8 -26
- package/lib/components/QObfuscation/QObfuscation.d.ts.map +1 -1
- package/lib/components/QObfuscation/QObfuscation.vue.js +137 -113
- package/lib/components/QObfuscation/constants.d.ts +4 -0
- package/lib/components/QObfuscation/constants.d.ts.map +1 -1
- package/lib/components/QObfuscation/index.d.ts +26 -81
- package/lib/components/QObfuscation/index.d.ts.map +1 -1
- package/lib/components/QObfuscation/types.d.ts +10 -1
- package/lib/components/QObfuscation/types.d.ts.map +1 -1
- package/lib/components/QOverflow/QOverflow.d.ts +7 -3
- package/lib/components/QOverflow/QOverflow.d.ts.map +1 -1
- package/lib/components/QOverflow/QOverflow.vue.js +131 -108
- package/lib/components/QOverflow/constants.d.ts +4 -1
- package/lib/components/QOverflow/constants.d.ts.map +1 -1
- package/lib/components/QOverflow/index.d.ts +3 -3
- package/lib/components/QOverflow/types.d.ts +7 -4
- package/lib/components/QOverflow/types.d.ts.map +1 -1
- package/lib/components/QOverlay/QOverlay.d.ts +14 -5
- package/lib/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/lib/components/QOverlay/QOverlay.vue.js +183 -158
- package/lib/components/QOverlay/index.d.ts +105 -13
- package/lib/components/QOverlay/index.d.ts.map +1 -1
- package/lib/components/QOverlay/layers.d.ts +21 -0
- package/lib/components/QOverlay/layers.d.ts.map +1 -0
- package/lib/components/QOverlay/layers.js +11 -0
- package/lib/components/QOverlay/types.d.ts +0 -6
- package/lib/components/QOverlay/types.d.ts.map +1 -1
- package/lib/components/QPasswordField/QPasswordField.d.ts +52 -170
- package/lib/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/lib/components/QPasswordField/QPasswordField.vue.js +8 -3
- package/lib/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +2 -3
- package/lib/components/QPasswordField/constants.d.ts +4 -0
- package/lib/components/QPasswordField/constants.d.ts.map +1 -1
- package/lib/components/QPasswordField/index.d.ts +29 -170
- package/lib/components/QPasswordField/index.d.ts.map +1 -1
- package/lib/components/QPasswordField/types.d.ts +2 -1
- package/lib/components/QPasswordField/types.d.ts.map +1 -1
- package/lib/components/QPhoneField/QPhoneField.d.ts +485 -622
- package/lib/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/lib/components/QPhoneField/QPhoneField.vue.js +20 -13
- package/lib/components/QPhoneField/constants.d.ts +4 -0
- package/lib/components/QPhoneField/constants.d.ts.map +1 -1
- package/lib/components/QPhoneField/index.d.ts +257 -393
- package/lib/components/QPhoneField/index.d.ts.map +1 -1
- package/lib/components/QPhoneField/types.d.ts +5 -2
- package/lib/components/QPhoneField/types.d.ts.map +1 -1
- package/lib/components/QPopover/QPopover.d.ts +1 -1
- package/lib/components/QPopover/QPopover.d.ts.map +1 -1
- package/lib/components/QPopover/QPopover.vue.js +64 -42
- package/lib/components/QPopover/index.d.ts +3 -3
- package/lib/components/QPopover/types.d.ts +7 -2
- package/lib/components/QPopover/types.d.ts.map +1 -1
- package/lib/components/QProgress/QProgress.d.ts.map +1 -1
- package/lib/components/QProgress/QProgress.vue.js +47 -46
- package/lib/components/QPropertyList/QPropertyList.d.ts +1 -1
- package/lib/components/QPropertyList/QPropertyList.d.ts.map +1 -1
- package/lib/components/QPropertyList/QPropertyList.vue.js +3 -3
- package/lib/components/QPropertyList/QPropertyListGroup.d.ts +1 -1
- package/lib/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
- package/lib/components/QPropertyList/QPropertyListRow.d.ts +1 -1
- package/lib/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/lib/components/QPropertyList/QPropertyListRow.vue.js +59 -44
- package/lib/components/QPropertyList/index.d.ts +8 -8
- package/lib/components/QPropertyList/index.d.ts.map +1 -1
- package/lib/components/QPropertyList/types.d.ts +3 -3
- package/lib/components/QPropertyList/types.d.ts.map +1 -1
- package/lib/components/QRadioGroup/QRadioButton.d.ts.map +1 -1
- package/lib/components/QRadioGroup/QRadioButton.vue.js +5 -2
- package/lib/components/QRadioGroup/QRadioGroup.d.ts +1 -1
- package/lib/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
- package/lib/components/QRadioGroup/QRadioGroup.vue.js +19 -18
- package/lib/components/QRadioGroup/index.d.ts +1 -6
- package/lib/components/QRadioGroup/index.d.ts.map +1 -1
- package/lib/components/QRadioGroup/types.d.ts +0 -6
- package/lib/components/QRadioGroup/types.d.ts.map +1 -1
- package/lib/components/QSection/QSection.d.ts +3 -3
- package/lib/components/QSection/QSection.d.ts.map +1 -1
- package/lib/components/QSection/QSection.vue.js +52 -45
- package/lib/components/QSection/index.d.ts +4 -4
- package/lib/components/QSection/types.d.ts +10 -2
- package/lib/components/QSection/types.d.ts.map +1 -1
- package/lib/components/QSelect/QSelect.d.ts +306 -114
- package/lib/components/QSelect/QSelect.d.ts.map +1 -1
- package/lib/components/QSelect/QSelect.vue.js +274 -250
- package/lib/components/QSelect/constants.d.ts +4 -0
- package/lib/components/QSelect/constants.d.ts.map +1 -1
- package/lib/components/QSelect/index.d.ts +173 -144
- package/lib/components/QSelect/index.d.ts.map +1 -1
- package/lib/components/QSelect/types.d.ts +4 -2
- package/lib/components/QSelect/types.d.ts.map +1 -1
- package/lib/components/QSidebar/QSidebar.d.ts +9 -9
- package/lib/components/QSidebar/QSidebar.d.ts.map +1 -1
- package/lib/components/QSidebar/QSidebar.vue.js +2 -2
- package/lib/components/QSidebar/QSidebarAnchor.d.ts +1 -1
- package/lib/components/QSidebar/QSidebarAnchor.d.ts.map +1 -1
- package/lib/components/QSidebar/QSidebarAnchor.vue.js +4 -4
- package/lib/components/QSidebar/QSidebarItem.d.ts +7 -7
- package/lib/components/QSidebar/QSidebarItem.vue.js +3 -3
- package/lib/components/QSidebar/QSidebarPanel.d.ts +3 -3
- package/lib/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
- package/lib/components/QSidebar/QSidebarPanel.vue.js +81 -140
- package/lib/components/QSidebar/constants.d.ts.map +1 -1
- package/lib/components/QSidebar/constants.js +4 -5
- package/lib/components/QSidebar/index.d.ts +24 -24
- package/lib/components/QSidebar/types.d.ts +7 -6
- package/lib/components/QSidebar/types.d.ts.map +1 -1
- package/lib/components/QSteps/QStepHeader.d.ts +2 -1
- package/lib/components/QSteps/QStepHeader.d.ts.map +1 -1
- package/lib/components/QSteps/QStepHeader.vue.js +3 -4
- package/lib/components/QSteps/QSteps.d.ts +8 -8
- package/lib/components/QSteps/QSteps.d.ts.map +1 -1
- package/lib/components/QSteps/QSteps.vue.js +9 -6
- package/lib/components/QSteps/QStepsNav.d.ts +2 -1
- package/lib/components/QSteps/QStepsNav.d.ts.map +1 -1
- package/lib/components/QSteps/index.d.ts +12 -12
- package/lib/components/QSteps/types.d.ts +2 -2
- package/lib/components/QSteps/types.d.ts.map +1 -1
- package/lib/components/QSwitch/QSwitch.d.ts +39 -26
- package/lib/components/QSwitch/QSwitch.d.ts.map +1 -1
- package/lib/components/QSwitch/QSwitch.vue.js +64 -58
- package/lib/components/QSwitch/constants.d.ts +20 -0
- package/lib/components/QSwitch/constants.d.ts.map +1 -0
- package/lib/components/QSwitch/constants.js +9 -0
- package/lib/components/QSwitch/index.d.ts +56 -18
- package/lib/components/QSwitch/index.d.ts.map +1 -1
- package/lib/components/QSwitch/types.d.ts +21 -3
- package/lib/components/QSwitch/types.d.ts.map +1 -1
- package/lib/components/QTabs/QTab.d.ts +12 -12
- package/lib/components/QTabs/QTab.vue.js +3 -3
- package/lib/components/QTabs/QTabs.d.ts +9 -9
- package/lib/components/QTabs/QTabs.d.ts.map +1 -1
- package/lib/components/QTabs/QTabs.vue.js +92 -80
- package/lib/components/QTabs/index.d.ts +16 -16
- package/lib/components/QTabs/types.d.ts +2 -2
- package/lib/components/QTabs/types.d.ts.map +1 -1
- package/lib/components/QTextArea/QTextArea.d.ts +1 -0
- package/lib/components/QTextArea/QTextArea.d.ts.map +1 -1
- package/lib/components/QTextArea/QTextArea.vue.js +6 -1
- package/lib/components/QTextArea/index.d.ts +1 -0
- package/lib/components/QTextArea/index.d.ts.map +1 -1
- package/lib/components/QTextField/QTextField.d.ts +30 -42
- package/lib/components/QTextField/QTextField.d.ts.map +1 -1
- package/lib/components/QTextField/QTextField.vue.js +7 -2
- package/lib/components/QTextField/constants.d.ts +4 -0
- package/lib/components/QTextField/constants.d.ts.map +1 -1
- package/lib/components/QTextField/index.d.ts +26 -69
- package/lib/components/QTextField/index.d.ts.map +1 -1
- package/lib/components/QTextField/types.d.ts +2 -1
- package/lib/components/QTextField/types.d.ts.map +1 -1
- package/lib/components/QToast/QToast.d.ts +1 -1
- package/lib/components/QToast/QToast.d.ts.map +1 -1
- package/lib/components/QToast/QToast.vue.js +148 -134
- package/lib/components/QToast/QToaster.d.ts +3 -1
- package/lib/components/QToast/QToaster.d.ts.map +1 -1
- package/lib/components/QToast/QToaster.vue.js +74 -46
- package/lib/components/QToast/index.d.ts +9 -7
- package/lib/components/QToast/index.d.ts.map +1 -1
- package/lib/components/QToast/types.d.ts +2 -2
- package/lib/components/QToast/types.d.ts.map +1 -1
- package/lib/components/QToggle/QToggle.d.ts.map +1 -1
- package/lib/components/QToggle/QToggle.vue.js +2 -0
- package/lib/components/QToggle/index.d.ts +3 -3
- package/lib/components/QToggleGroup/QToggleGroupItem.d.ts +8 -1
- package/lib/components/QToggleGroup/QToggleGroupItem.d.ts.map +1 -1
- package/lib/components/QToggleGroup/QToggleGroupItem.vue.js +67 -16
- package/lib/components/QToggleGroup/index.d.ts +24 -3
- package/lib/components/QToggleGroup/index.d.ts.map +1 -1
- package/lib/components/QTooltip/QTooltip.d.ts +1 -1
- package/lib/components/QTooltip/QTooltip.vue.js +1 -1
- package/lib/components/QTooltip/index.d.ts +3 -3
- package/lib/components/__internal__/QChevron/QChevron.d.ts +1 -1
- package/lib/components/__internal__/QChevron/QChevron.d.ts.map +1 -1
- package/lib/components/__internal__/QChevron/index.d.ts +3 -3
- package/lib/components/__internal__/QChevron/types.d.ts +2 -2
- package/lib/components/__internal__/QChevron/types.d.ts.map +1 -1
- package/lib/components/__internal__/QClearButton/QClearButton.d.ts +1 -1
- package/lib/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
- package/lib/components/__internal__/QClearButton/index.d.ts +1 -1
- package/lib/components/__internal__/QClearButton/types.d.ts +2 -2
- package/lib/components/__internal__/QClearButton/types.d.ts.map +1 -1
- package/lib/components/__internal__/QHelpPopover/QHelpPopover.d.ts +7 -7
- package/lib/components/__internal__/QHelpPopover/QHelpPopover.d.ts.map +1 -1
- package/lib/components/__internal__/QHelpPopover/QHelpPopover.vue.js +3 -6
- package/lib/components/__internal__/QHelpPopover/index.d.ts +7 -7
- package/lib/components/__internal__/QHelpPopover/types.d.ts +2 -2
- package/lib/components/__internal__/QHelpPopover/types.d.ts.map +1 -1
- package/lib/components/__internal__/QListboxPanel/QListboxPanel.d.ts +34 -0
- package/lib/components/__internal__/QListboxPanel/QListboxPanel.d.ts.map +1 -0
- package/lib/components/__internal__/QListboxPanel/QListboxPanel.vue.js +76 -0
- package/lib/components/__internal__/QListboxPanel/QListboxPanel2.vue.js +5 -0
- package/lib/components/__internal__/QListboxPanel/constants.d.ts +17 -0
- package/lib/components/__internal__/QListboxPanel/constants.d.ts.map +1 -0
- package/lib/components/__internal__/QListboxPanel/constants.js +4 -0
- package/lib/components/__internal__/QListboxPanel/index.d.ts +52 -0
- package/lib/components/__internal__/QListboxPanel/index.d.ts.map +1 -0
- package/lib/components/__internal__/QListboxPanel/index.js +7 -0
- package/lib/components/__internal__/QListboxPanel/types.d.ts +50 -0
- package/lib/components/__internal__/QListboxPanel/types.d.ts.map +1 -0
- package/lib/components/__internal__/QListboxPanel/utils.d.ts +4 -0
- package/lib/components/__internal__/QListboxPanel/utils.d.ts.map +1 -0
- package/lib/components/__internal__/QListboxPanel/utils.js +6 -0
- package/lib/components/__internal__/QRequiredIndicator/QRequiredIndicator.vue.js +1 -1
- package/lib/components/__internal__/QResizeHandle/QResizeButtons.d.ts +16 -0
- package/lib/components/__internal__/QResizeHandle/QResizeButtons.d.ts.map +1 -0
- package/lib/components/__internal__/QResizeHandle/QResizeButtons.vue.js +72 -0
- package/lib/components/__internal__/QResizeHandle/QResizeButtons2.vue.js +5 -0
- package/lib/components/__internal__/QResizeHandle/QResizeHandle.d.ts +15 -0
- package/lib/components/__internal__/QResizeHandle/QResizeHandle.d.ts.map +1 -0
- package/lib/components/__internal__/QResizeHandle/QResizeHandle.vue.js +74 -0
- package/lib/components/__internal__/QResizeHandle/QResizeHandle2.vue.js +5 -0
- package/lib/components/__internal__/QResizeHandle/constants.d.ts +22 -0
- package/lib/components/__internal__/QResizeHandle/constants.d.ts.map +1 -0
- package/lib/components/__internal__/QResizeHandle/constants.js +10 -0
- package/lib/components/__internal__/QResizeHandle/index.d.ts +28 -0
- package/lib/components/__internal__/QResizeHandle/index.d.ts.map +1 -0
- package/lib/components/__internal__/QResizeHandle/index.js +7 -0
- package/lib/components/__internal__/QResizeHandle/types.d.ts +107 -0
- package/lib/components/__internal__/QResizeHandle/types.d.ts.map +1 -0
- package/lib/components/__internal__/QResizeHandle/useEdgeResize.d.ts +42 -0
- package/lib/components/__internal__/QResizeHandle/useEdgeResize.d.ts.map +1 -0
- package/lib/components/__internal__/QResizeHandle/useEdgeResize.js +36 -0
- package/lib/components/__internal__/QResizeHandle/useResizePane.d.ts +39 -0
- package/lib/components/__internal__/QResizeHandle/useResizePane.d.ts.map +1 -0
- package/lib/components/__internal__/QResizeHandle/useResizePane.js +22 -0
- package/lib/components/__internal__/QSafeTriangle/QSafeTriangle.d.ts +2 -2
- package/lib/components/__internal__/QSafeTriangle/QSafeTriangle.vue.js +1 -1
- package/lib/components/__internal__/QSafeTriangle/index.d.ts +2 -2
- package/lib/components/__internal__/QSeverityContent/QSeverityContent.d.ts +24 -0
- package/lib/components/__internal__/QSeverityContent/QSeverityContent.d.ts.map +1 -0
- package/lib/components/__internal__/QSeverityContent/QSeverityContent.vue.js +58 -0
- package/lib/components/__internal__/QSeverityContent/QSeverityContent2.vue.js +5 -0
- package/lib/components/__internal__/QSeverityContent/index.d.ts +31 -0
- package/lib/components/__internal__/QSeverityContent/index.d.ts.map +1 -0
- package/lib/components/__internal__/QSeverityContent/index.js +6 -0
- package/lib/components/__internal__/QSeverityContent/types.d.ts +67 -0
- package/lib/components/__internal__/QSeverityContent/types.d.ts.map +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +72 -70
- package/lib/composables/useColor/index.d.ts +7 -3
- package/lib/composables/useColor/index.d.ts.map +1 -1
- package/lib/composables/useColor/index.js +40 -38
- package/lib/composables/useColor/types.d.ts +5 -4
- package/lib/composables/useColor/types.d.ts.map +1 -1
- package/lib/composables/useDialog/_internal.js +1 -1
- package/lib/composables/useDialog/types.d.ts +6 -2
- package/lib/composables/useDialog/types.d.ts.map +1 -1
- package/lib/composables/useScrollTabStop/index.d.ts +17 -0
- package/lib/composables/useScrollTabStop/index.d.ts.map +1 -0
- package/lib/composables/useScrollTabStop/index.js +45 -0
- package/lib/composables/useVirtualList/index.d.ts +73 -0
- package/lib/composables/useVirtualList/index.d.ts.map +1 -0
- package/lib/composables/useVirtualList/index.js +83 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/types/component.d.ts +12 -5
- package/lib/types/component.d.ts.map +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/utils/boundedValue.d.ts +20 -0
- package/lib/utils/boundedValue.d.ts.map +1 -0
- package/lib/utils/boundedValue.js +9 -0
- package/lib/utils/color/blend.d.ts +13 -0
- package/lib/utils/color/blend.d.ts.map +1 -1
- package/lib/utils/color/blend.js +6 -3
- package/lib/utils/color/contrast.d.ts +19 -0
- package/lib/utils/color/contrast.d.ts.map +1 -1
- package/lib/utils/color/contrast.js +26 -11
- package/lib/utils/color/index.d.ts +1 -1
- package/lib/utils/color/index.d.ts.map +1 -1
- package/lib/utils/date.d.ts +18 -8
- package/lib/utils/date.d.ts.map +1 -1
- package/lib/utils/date.js +26 -14
- package/lib/utils/index.js +14 -13
- package/lib/utils/overlay.d.ts +6 -0
- package/lib/utils/overlay.d.ts.map +1 -1
- package/lib/utils/overlay.js +10 -10
- package/lib/utils/popupLabel.d.ts +15 -0
- package/lib/utils/popupLabel.d.ts.map +1 -0
- package/lib/utils/popupLabel.js +6 -0
- package/lib/utils/railWidth.d.ts +15 -0
- package/lib/utils/railWidth.d.ts.map +1 -0
- package/lib/utils/railWidth.js +4 -0
- package/lib/utils/safeTriangle.d.ts +4 -4
- package/lib/utils/safeTriangle.d.ts.map +1 -1
- package/lib/utils/slots.d.ts +11 -2
- package/lib/utils/slots.d.ts.map +1 -1
- package/lib/utils/slots.js +7 -4
- package/lib/utils/theme.d.ts +3 -3
- package/lib/utils/theme.d.ts.map +1 -1
- package/lib/utils/theme.js +31 -31
- package/package.json +1 -1
|
@@ -14,23 +14,38 @@ function o(e, t) {
|
|
|
14
14
|
let n = Math.max(e, t), r = Math.min(e, t);
|
|
15
15
|
return (n + .05) / (r + .05);
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
var s = 16, c = {
|
|
18
|
+
r: 0,
|
|
19
|
+
g: 0,
|
|
20
|
+
b: 0
|
|
21
|
+
}, l = {
|
|
22
|
+
r: 255,
|
|
23
|
+
g: 255,
|
|
24
|
+
b: 255
|
|
25
|
+
};
|
|
26
|
+
function u(e, t, n = 4.5) {
|
|
27
|
+
return d(e, [r(t)], n);
|
|
28
|
+
}
|
|
29
|
+
function d(i, u, d = 4.5) {
|
|
30
|
+
let f = u.map(a), p = (e) => {
|
|
31
|
+
let t = a(e);
|
|
32
|
+
return Math.min(...f.map((e) => o(t, e)));
|
|
33
|
+
}, m = r(i);
|
|
34
|
+
if (p(m) >= d) return i;
|
|
35
|
+
let h = p(c) > p(l), g = (e) => h ? t(m, e) : n(m, e), _ = 0, v = 100, y = g(100);
|
|
36
|
+
for (let e = 0; e < s; e++) {
|
|
37
|
+
let e = (_ + v) / 2, t = g(e);
|
|
38
|
+
p(t) >= d ? (y = t, v = e) : _ = e;
|
|
24
39
|
}
|
|
25
|
-
return e(
|
|
40
|
+
return e(y);
|
|
26
41
|
}
|
|
27
|
-
function
|
|
42
|
+
function f(e) {
|
|
28
43
|
let t = a(e), n = o(t, 0);
|
|
29
44
|
return o(t, 1) >= n ? "#fff" : "#000";
|
|
30
45
|
}
|
|
31
|
-
function
|
|
46
|
+
function p(t) {
|
|
32
47
|
let n = r(t);
|
|
33
48
|
return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, e(n);
|
|
34
49
|
}
|
|
35
50
|
//#endregion
|
|
36
|
-
export {
|
|
51
|
+
export { u as ensureContrast, d as ensureContrastOnAll, p as getComplementaryColor, o as getContrastRatio, f as getContrastingColor, a as getRelativeLuminance };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/color/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/color/index.ts"],"names":[],"mappings":"AACA,OAAO,EACN,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EACrB,MAAM,YAAY,CAAA;AACnB,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA"}
|
package/lib/utils/date.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export declare function parseIsoDate(dateStr: string): Date | null;
|
|
|
55
55
|
* @example
|
|
56
56
|
* completePartialDateInput('11/11/1987 1', 'dd/MM/yyyy HH:mm:ss') => '11/11/1987 10:00:00'
|
|
57
57
|
*/
|
|
58
|
-
export declare function completePartialDateInput(dateStr: string, format: string, labels?:
|
|
58
|
+
export declare function completePartialDateInput(dateStr: string, format: string, labels?: QDateParserLabels): string | null;
|
|
59
59
|
/**
|
|
60
60
|
* Whether user input includes digits in the time portion of the format.
|
|
61
61
|
* @param dateStr Raw user input.
|
|
@@ -70,7 +70,7 @@ export declare function inputIncludesTimePortion(dateStr: string, format: string
|
|
|
70
70
|
* @param options Passed to `parseDate`.
|
|
71
71
|
* @returns Parsed `Date` instance or `null` when parsing fails.
|
|
72
72
|
*/
|
|
73
|
-
export declare function parseDateWithCompletion(dateStr: string, format: string, labels?:
|
|
73
|
+
export declare function parseDateWithCompletion(dateStr: string, format: string, labels?: QDateParserLabels, options?: {
|
|
74
74
|
ignoreWeekday?: boolean;
|
|
75
75
|
}): Date | null;
|
|
76
76
|
/**
|
|
@@ -110,7 +110,7 @@ export declare function isBetween(date: Date, startDate: Date, endDate: Date): b
|
|
|
110
110
|
/**
|
|
111
111
|
* Formats a date according to a format string.
|
|
112
112
|
*/
|
|
113
|
-
export type
|
|
113
|
+
export type QDateFormatterLabels = {
|
|
114
114
|
/**
|
|
115
115
|
* Returns month label for zero-based month index.
|
|
116
116
|
* @param month Zero-based month index (`0` = January).
|
|
@@ -129,15 +129,15 @@ export type DateFormatterLabels = {
|
|
|
129
129
|
/**
|
|
130
130
|
* Optional parsing label resolvers used by `parseDate`. English names are always read too.
|
|
131
131
|
*/
|
|
132
|
-
export type
|
|
132
|
+
export type QDateParserLabels = {
|
|
133
133
|
/**
|
|
134
|
-
* Returns the localized month name to read, as `
|
|
134
|
+
* Returns the localized month name to read, as `QDateFormatterLabels` does.
|
|
135
135
|
* @param month Zero-based month index (`0` = January).
|
|
136
136
|
* @param short Whether the short name (`MMM`) is wanted.
|
|
137
137
|
*/
|
|
138
138
|
getMonthName?: (month: number, short: boolean) => string;
|
|
139
139
|
/**
|
|
140
|
-
* Returns the localized weekday name to read, as `
|
|
140
|
+
* Returns the localized weekday name to read, as `QDateFormatterLabels` does.
|
|
141
141
|
* @param weekday Sunday-based weekday index (`0` = Sunday).
|
|
142
142
|
* @param short Whether the short name (`EEE`) is wanted.
|
|
143
143
|
*/
|
|
@@ -161,7 +161,7 @@ export type DateParserLabels = {
|
|
|
161
161
|
* @param labels Optional localized text resolvers for month/weekday names.
|
|
162
162
|
* @returns Formatted date string.
|
|
163
163
|
*/
|
|
164
|
-
export declare function formatDate(date: Date, format: string, labels?:
|
|
164
|
+
export declare function formatDate(date: Date, format: string, labels?: QDateFormatterLabels): string;
|
|
165
165
|
/**
|
|
166
166
|
* Parses a date string according to a format string.
|
|
167
167
|
* Supports quoted literals, milliseconds, meridiem, and textual month/weekday tokens. A weekday
|
|
@@ -173,7 +173,7 @@ export declare function formatDate(date: Date, format: string, labels?: DateForm
|
|
|
173
173
|
* text a user edits: changing the day leaves the old weekday in place until it is written again.
|
|
174
174
|
* @returns Parsed `Date` instance or `null` when parsing fails.
|
|
175
175
|
*/
|
|
176
|
-
export declare function parseDate(dateStr: string, format: string, labels?:
|
|
176
|
+
export declare function parseDate(dateStr: string, format: string, labels?: QDateParserLabels, options?: {
|
|
177
177
|
ignoreWeekday?: boolean;
|
|
178
178
|
}): Date | null;
|
|
179
179
|
/**
|
|
@@ -250,4 +250,14 @@ export declare function clampDayByMonthYear(value: string, tokens: string[]): st
|
|
|
250
250
|
export declare function clampNumericSegments(value: string, format: string, options?: {
|
|
251
251
|
padMaxDigits: boolean;
|
|
252
252
|
}): string;
|
|
253
|
+
/**
|
|
254
|
+
* Pads fully-typed numeric segments to their width for the provided format, such as
|
|
255
|
+
* `5/4/2026 9:05` to `05/04/2026 09:05` in `dd/MM/yyyy HH:mm`. Unlike
|
|
256
|
+
* {@link clampNumericSegments}, it never changes a value: a date or time that does not exist,
|
|
257
|
+
* such as `31/02/2026`, stays as it is, for a parser to reject.
|
|
258
|
+
* @param value Masked user input.
|
|
259
|
+
* @param format Date/time format pattern.
|
|
260
|
+
* @returns Input with its numeric segments padded.
|
|
261
|
+
*/
|
|
262
|
+
export declare function padNumericSegments(value: string, format: string): string;
|
|
253
263
|
//# sourceMappingURL=date.d.ts.map
|
package/lib/utils/date.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAmE/D;AAYD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED;;;;GAIG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iB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAElD;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACvC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GACX,MAAM,GAAG,IAAI,CAiBf;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAY1F;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAwE3E;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE;IAAE,YAAY,EAAE,OAAO,CAAA;CAAE,GACjC,MAAM,CAKR;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAExE"}
|
package/lib/utils/date.js
CHANGED
|
@@ -588,12 +588,24 @@ function I(e, t) {
|
|
|
588
588
|
return i;
|
|
589
589
|
}
|
|
590
590
|
function L(e, t, n) {
|
|
591
|
-
|
|
592
|
-
|
|
591
|
+
return z(e, t, {
|
|
592
|
+
padMaxDigits: n?.padMaxDigits ?? !1,
|
|
593
|
+
clamp: !0
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
function R(e, t) {
|
|
597
|
+
return z(e, t, {
|
|
598
|
+
padMaxDigits: !0,
|
|
599
|
+
clamp: !1
|
|
600
|
+
});
|
|
601
|
+
}
|
|
602
|
+
function z(e, t, n) {
|
|
603
|
+
let { clamp: r } = n, i = t.match(d) ?? [], a = e, s = 0;
|
|
604
|
+
for (let e of i) {
|
|
593
605
|
if (e.startsWith("'")) {
|
|
594
|
-
let t = P(
|
|
606
|
+
let t = P(a, s, e);
|
|
595
607
|
if (t === null) break;
|
|
596
|
-
|
|
608
|
+
s = t;
|
|
597
609
|
continue;
|
|
598
610
|
}
|
|
599
611
|
let t = e === "yyyy" ? 4 : e === "yy" ? 2 : e === "SSS" ? 3 : e === "S" ? 1 : [
|
|
@@ -611,19 +623,19 @@ function L(e, t, n) {
|
|
|
611
623
|
"s"
|
|
612
624
|
].includes(e) ? 2 : 0;
|
|
613
625
|
if (t === 0) {
|
|
614
|
-
let t = P(
|
|
626
|
+
let t = P(a, s, e);
|
|
615
627
|
if (t === null) break;
|
|
616
|
-
|
|
628
|
+
s = t;
|
|
617
629
|
continue;
|
|
618
630
|
}
|
|
619
|
-
let
|
|
620
|
-
if (!
|
|
621
|
-
let
|
|
622
|
-
if (!(
|
|
623
|
-
let
|
|
624
|
-
|
|
631
|
+
let i = a.slice(s).match(/^\d+/)?.[0]?.slice(0, t) ?? "";
|
|
632
|
+
if (!i) continue;
|
|
633
|
+
let c = s + i.length;
|
|
634
|
+
if (!(i.length === t || c < a.length && !/\d/.test(a[c]))) continue;
|
|
635
|
+
let l = Number.parseInt(i, 10), u = n.padMaxDigits ? o(i, t) : i, d = r ? F(e, u, l) : u;
|
|
636
|
+
a = `${a.slice(0, s)}${d}${a.slice(c)}`, s += d.length;
|
|
625
637
|
}
|
|
626
|
-
return I(
|
|
638
|
+
return r ? I(a, i) : a;
|
|
627
639
|
}
|
|
628
640
|
//#endregion
|
|
629
|
-
export { A as addDays, j as addMonths, P as advancePastFormatLiteral, I as clampDayByMonthYear, L as clampNumericSegments, v as completePartialDateInput, e as convertDatePatternToMask, E as formatDate, r as formatUsesSeconds, n as formatUsesTime, S as getDaysInMonth, k as getEndOfDay, M as getFirstDayOfMonth, C as getFirstDayOfWeek, N as getLastDayOfMonth, O as getStartOfDay, y as inputIncludesTimePortion, T as isBetween, x as isLeapYear, w as isSameDay, a as isTimeOnlyFormat, F as normalizeNumericToken, o as padNumber, D as parseDate, b as parseDateWithCompletion, c as parseIsoDate, i as uses12HourFormat };
|
|
641
|
+
export { A as addDays, j as addMonths, P as advancePastFormatLiteral, I as clampDayByMonthYear, L as clampNumericSegments, v as completePartialDateInput, e as convertDatePatternToMask, E as formatDate, r as formatUsesSeconds, n as formatUsesTime, S as getDaysInMonth, k as getEndOfDay, M as getFirstDayOfMonth, C as getFirstDayOfWeek, N as getLastDayOfMonth, O as getStartOfDay, y as inputIncludesTimePortion, T as isBetween, x as isLeapYear, w as isSameDay, a as isTimeOnlyFormat, F as normalizeNumericToken, o as padNumber, R as padNumericSegments, D as parseDate, b as parseDateWithCompletion, c as parseIsoDate, i as uses12HourFormat };
|
package/lib/utils/index.js
CHANGED
|
@@ -6,19 +6,19 @@ import { ensureContrast as f, getComplementaryColor as p, getContrastRatio as m,
|
|
|
6
6
|
import { mergeColorSchemes as _ } from "./color/merge.js";
|
|
7
7
|
import { THEME_COLOR_KEYS as v, isThemeColor as y, isUnsupportedColor as b } from "./color/theme-colors.js";
|
|
8
8
|
import { hasSlotContent as x } from "./slots.js";
|
|
9
|
-
import { addDays as S, addMonths as C, advancePastFormatLiteral as w, clampDayByMonthYear as T, clampNumericSegments as E, completePartialDateInput as D, convertDatePatternToMask as O, formatDate as k, formatUsesSeconds as A, formatUsesTime as j, getDaysInMonth as M, getEndOfDay as N, getFirstDayOfMonth as P, getFirstDayOfWeek as F, getLastDayOfMonth as I, getStartOfDay as L, inputIncludesTimePortion as R, isBetween as z, isLeapYear as B, isSameDay as V, isTimeOnlyFormat as H, normalizeNumericToken as U, padNumber as W,
|
|
10
|
-
import { applyMask as
|
|
11
|
-
import { DENSITIES as
|
|
9
|
+
import { addDays as S, addMonths as C, advancePastFormatLiteral as w, clampDayByMonthYear as T, clampNumericSegments as E, completePartialDateInput as D, convertDatePatternToMask as O, formatDate as k, formatUsesSeconds as A, formatUsesTime as j, getDaysInMonth as M, getEndOfDay as N, getFirstDayOfMonth as P, getFirstDayOfWeek as F, getLastDayOfMonth as I, getStartOfDay as L, inputIncludesTimePortion as R, isBetween as z, isLeapYear as B, isSameDay as V, isTimeOnlyFormat as H, normalizeNumericToken as U, padNumber as W, padNumericSegments as G, parseDate as K, parseDateWithCompletion as q, parseIsoDate as J, uses12HourFormat as Y } from "./date.js";
|
|
10
|
+
import { applyMask as X } from "./mask.js";
|
|
11
|
+
import { DENSITIES as Z, getGlobalDensity as Q, setGlobalDensity as $ } from "./density.js";
|
|
12
12
|
//#region src/utils/index.ts
|
|
13
|
-
var
|
|
13
|
+
var ee = /* @__PURE__ */ e({
|
|
14
14
|
COLOR_SCHEME_DARKEN_AMOUNT: () => 40,
|
|
15
15
|
COLOR_SCHEME_LIGHTEN_AMOUNT: () => 75,
|
|
16
|
-
DENSITIES: () =>
|
|
16
|
+
DENSITIES: () => Z,
|
|
17
17
|
THEME_COLOR_KEYS: () => v,
|
|
18
18
|
addDays: () => S,
|
|
19
19
|
addMonths: () => C,
|
|
20
20
|
advancePastFormatLiteral: () => w,
|
|
21
|
-
applyMask: () =>
|
|
21
|
+
applyMask: () => X,
|
|
22
22
|
clampDayByMonthYear: () => T,
|
|
23
23
|
clampNumericSegments: () => E,
|
|
24
24
|
completePartialDateInput: () => D,
|
|
@@ -35,7 +35,7 @@ var $ = /* @__PURE__ */ e({
|
|
|
35
35
|
getEndOfDay: () => N,
|
|
36
36
|
getFirstDayOfMonth: () => P,
|
|
37
37
|
getFirstDayOfWeek: () => F,
|
|
38
|
-
getGlobalDensity: () =>
|
|
38
|
+
getGlobalDensity: () => Q,
|
|
39
39
|
getLastDayOfMonth: () => I,
|
|
40
40
|
getRelativeLuminance: () => g,
|
|
41
41
|
getStartOfDay: () => L,
|
|
@@ -54,17 +54,18 @@ var $ = /* @__PURE__ */ e({
|
|
|
54
54
|
mergeColorSchemes: () => _,
|
|
55
55
|
normalizeNumericToken: () => U,
|
|
56
56
|
padNumber: () => W,
|
|
57
|
+
padNumericSegments: () => G,
|
|
57
58
|
parseColor: () => l,
|
|
58
|
-
parseDate: () =>
|
|
59
|
-
parseDateWithCompletion: () =>
|
|
60
|
-
parseIsoDate: () =>
|
|
59
|
+
parseDate: () => K,
|
|
60
|
+
parseDateWithCompletion: () => q,
|
|
61
|
+
parseIsoDate: () => J,
|
|
61
62
|
rgbToHex: () => r,
|
|
62
63
|
rgbToHsl: () => i,
|
|
63
64
|
rgbToVariableString: () => a,
|
|
64
|
-
setGlobalDensity: () =>
|
|
65
|
+
setGlobalDensity: () => $,
|
|
65
66
|
tryParseColor: () => u,
|
|
66
67
|
tryParseRgb: () => d,
|
|
67
|
-
uses12HourFormat: () =>
|
|
68
|
+
uses12HourFormat: () => Y
|
|
68
69
|
});
|
|
69
70
|
//#endregion
|
|
70
|
-
export {
|
|
71
|
+
export { Z as DENSITIES, v as THEME_COLOR_KEYS, S as addDays, C as addMonths, w as advancePastFormatLiteral, X as applyMask, T as clampDayByMonthYear, E as clampNumericSegments, D as completePartialDateInput, O as convertDatePatternToMask, o as darken, f as ensureContrast, k as formatDate, A as formatUsesSeconds, j as formatUsesTime, p as getComplementaryColor, m as getContrastRatio, h as getContrastingColor, M as getDaysInMonth, N as getEndOfDay, P as getFirstDayOfMonth, F as getFirstDayOfWeek, Q as getGlobalDensity, I as getLastDayOfMonth, g as getRelativeLuminance, L as getStartOfDay, x as hasSlotContent, t as hslToRgb, n as hueToRgb, R as inputIncludesTimePortion, z as isBetween, B as isLeapYear, V as isSameDay, y as isThemeColor, H as isTimeOnlyFormat, b as isUnsupportedColor, c as isValidHex, s as lighten, _ as mergeColorSchemes, U as normalizeNumericToken, W as padNumber, G as padNumericSegments, l as parseColor, K as parseDate, q as parseDateWithCompletion, J as parseIsoDate, r as rgbToHex, i as rgbToHsl, a as rgbToVariableString, $ as setGlobalDensity, u as tryParseColor, d as tryParseRgb, Y as uses12HourFormat, ee as utils_exports };
|
package/lib/utils/overlay.d.ts
CHANGED
|
@@ -58,6 +58,12 @@ export type ComputePositionOptions = {
|
|
|
58
58
|
* Whether to compute the position of the overlay arrow.
|
|
59
59
|
*/
|
|
60
60
|
arrow?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The narrowest the overlay can be without scrolling sideways, such as the minimum width of a
|
|
63
|
+
* menu. Beside its anchor (`left` or `right`), an overlay with less room than that goes over
|
|
64
|
+
* the anchor instead of shrinking to scroll sideways. Defaults to 0.
|
|
65
|
+
*/
|
|
66
|
+
minWidth?: number;
|
|
61
67
|
};
|
|
62
68
|
/**
|
|
63
69
|
* Result of computing the position of the overlay.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/utils/overlay.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,UAAU,CAAA;AAE/C;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;AAElD;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,GAAG,GAAG,GAAG,CAAA;AAE5B;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;AAEtD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,KAAK,CAAA;AAEvC;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,GAAG,IAAI,IAAI,SAAS,EAAE,CAAA;AAErD;;GAEG;AACH,MAAM,WAAW,MAAM;IACtB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACT;AAED;;GAEG;AACH,MAAM,WAAW,IAAI;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,WAAW,CAAC,E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AAO,CAAC,MAAM,CAAC,CAAA;IAE7B;;OAEG;IACH,SAAS,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,OAAO,CAAC,EAAE,IAAI,CAAA;CACd;AAKD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC9B,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,OAAO,EAClB,OAAO,CAAC,EAAE,OAAO,EACjB,OAAO,CAAC,EAAE,sBAAsB,GAC9B,qBAAqB,CA+DvB;AA0RD,gBAAgB;AAEhB;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAGtD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAE3D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAG/D;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAGrF;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAE7D;AAED,kFAAkF;AAClF,eAAO,MAAM,uBAAuB,IAAI,CAAA;AAExC;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CACnC,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,EAAE,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,GAC5B,MAAM,CAcR"}
|
package/lib/utils/overlay.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
//#region src/utils/overlay.ts
|
|
2
2
|
var e = 8;
|
|
3
3
|
function t(t, u, p, m) {
|
|
4
|
-
let g = m?.offset ?? 0, _ = m?.crossOffset ?? 0, v = m?.placement ?? "bottom", y = t.getBoundingClientRect(), b = u.getBoundingClientRect(), x = p?.getBoundingClientRect(), S = n(y, b, v, g), C = d(S) === "y" ? "height" : "width", w = l(y, b, S, g), T = b[C] + w - e, E = h(w) && T <= 0,
|
|
5
|
-
h(w) ?
|
|
6
|
-
let
|
|
7
|
-
width: Math.min(b.width,
|
|
8
|
-
height: Math.min(b.height,
|
|
9
|
-
} : b,
|
|
4
|
+
let g = m?.offset ?? 0, _ = m?.crossOffset ?? 0, v = m?.placement ?? "bottom", y = t.getBoundingClientRect(), b = u.getBoundingClientRect(), x = p?.getBoundingClientRect(), S = n(y, b, v, g), C = d(S) === "y" ? "height" : "width", w = l(y, b, S, g), T = b[C] + w - e, E = C === "width" ? m?.minWidth ?? 0 : 0, D = h(w) && (T <= 0 || T < E), O;
|
|
5
|
+
h(w) ? D || (O = T) : O = b[C];
|
|
6
|
+
let k = i(b, S, O), A = k ? {
|
|
7
|
+
width: Math.min(b.width, k.width),
|
|
8
|
+
height: Math.min(b.height, k.height)
|
|
9
|
+
} : b, j = r(o(a(c(y, A, S), S, g), S, _), A, D ? ["x", "y"] : [f(S)]), M;
|
|
10
10
|
if (m?.arrow) {
|
|
11
11
|
if (!x) throw Error("[Quidgest UI] The arrow element must exist to compute its position");
|
|
12
|
-
|
|
12
|
+
D || (M = s(j, y, A, x, S));
|
|
13
13
|
}
|
|
14
14
|
return {
|
|
15
|
-
overlayCoords:
|
|
16
|
-
arrowCoords:
|
|
15
|
+
overlayCoords: j,
|
|
16
|
+
arrowCoords: M,
|
|
17
17
|
placement: S,
|
|
18
|
-
maxSize:
|
|
18
|
+
maxSize: k
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
function n(e, t, n, r) {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The accessible name of a combobox's popup, which takes the combobox's name: the `aria-label`
|
|
3
|
+
* the app gives the component, or else the text of the `<label>` elements that point at its
|
|
4
|
+
* input. That is the field's own label, or one outside it, such as a `QPropertyList` row label.
|
|
5
|
+
* An `aria-labelledby` on the component names both the combobox and the popup, so the component
|
|
6
|
+
* passes it to the popup as it is. A popup with no name fails WCAG 4.1.2.
|
|
7
|
+
*
|
|
8
|
+
* Call it in the render that opening the popup causes, so the labels are those on the page then.
|
|
9
|
+
*
|
|
10
|
+
* @param ariaLabel - The `aria-label` the app gave the component, from its attrs.
|
|
11
|
+
* @param input - The input of the combobox.
|
|
12
|
+
* @returns The name, or `undefined` when the combobox has none.
|
|
13
|
+
*/
|
|
14
|
+
export declare function getPopupLabel(ariaLabel: unknown, input: HTMLInputElement | null | undefined): string | undefined;
|
|
15
|
+
//# sourceMappingURL=popupLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popupLabel.d.ts","sourceRoot":"","sources":["../../src/utils/popupLabel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAC5B,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,gBAAgB,GAAG,IAAI,GAAG,SAAS,GACxC,MAAM,GAAG,SAAS,CAMpB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default rail (mini) width as a CSS length.
|
|
3
|
+
*
|
|
4
|
+
* Reads `--q-rail-width` when the app sets it, otherwise the spacing-scale
|
|
5
|
+
* expression. Shared by `QDrawer` (`railWidth` default) and `.q-sidebar-anchor`
|
|
6
|
+
* so both stay aligned when the token changes.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DEFAULT_RAIL_WIDTH = "var(--q-rail-width, calc(var(--q-space-1) * 12.5))";
|
|
9
|
+
/**
|
|
10
|
+
* Regular-density CSS-pixel equivalent of the fallback inside
|
|
11
|
+
* {@link DEFAULT_RAIL_WIDTH} at a 16px root (`0.25rem × 12.5` → 50). For clamp
|
|
12
|
+
* math such as `QDrawer`'s `minWidth` (does not read a live CSS variable).
|
|
13
|
+
*/
|
|
14
|
+
export declare const DEFAULT_RAIL_WIDTH_PX = 50;
|
|
15
|
+
//# sourceMappingURL=railWidth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"railWidth.d.ts","sourceRoot":"","sources":["../../src/utils/railWidth.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,uDAAuD,CAAA;AAEtF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,KAAK,CAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Placement } from './overlay';
|
|
2
|
-
export type
|
|
2
|
+
export type QSafeTriangleGeometry = {
|
|
3
3
|
left: number;
|
|
4
4
|
top: number;
|
|
5
5
|
width: number;
|
|
6
6
|
height: number;
|
|
7
7
|
path: string;
|
|
8
8
|
};
|
|
9
|
-
export type
|
|
9
|
+
export type QSafeTriangleVertices = {
|
|
10
10
|
a: {
|
|
11
11
|
x: number;
|
|
12
12
|
y: number;
|
|
@@ -49,11 +49,11 @@ export declare function resolveSafeTrianglePlacement(preferred: Placement, paren
|
|
|
49
49
|
/**
|
|
50
50
|
* Builds safe triangle vertices for a submenu placement.
|
|
51
51
|
*/
|
|
52
|
-
export declare function getSafeTriangleVertices(placement: Placement, contentRect: DOMRect, cursorX: number, cursorY: number):
|
|
52
|
+
export declare function getSafeTriangleVertices(placement: Placement, contentRect: DOMRect, cursorX: number, cursorY: number): QSafeTriangleVertices | null;
|
|
53
53
|
/**
|
|
54
54
|
* Builds SVG geometry for the safe triangle overlay.
|
|
55
55
|
*/
|
|
56
|
-
export declare function getSafeTriangleGeometry(placement: Placement, contentRect: DOMRect, cursorX: number, cursorY: number):
|
|
56
|
+
export declare function getSafeTriangleGeometry(placement: Placement, contentRect: DOMRect, cursorX: number, cursorY: number): QSafeTriangleGeometry | null;
|
|
57
57
|
/**
|
|
58
58
|
* Returns whether the pointer is inside any submenu body nested under a menu panel.
|
|
59
59
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safeTriangle.d.ts","sourceRoot":"","sources":["../../src/utils/safeTriangle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAE1C,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"safeTriangle.d.ts","sourceRoot":"","sources":["../../src/utils/safeTriangle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAE1C,MAAM,MAAM,qBAAqB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IACnC,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IAC3B,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IAC3B,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,KAAK,GAAG;IACnB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACT,CAAA;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAE1E;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAChC,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,EAC3B,CAAC,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,EAC3B,CAAC,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GACzB,OAAO,CAYT;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAC3C,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,OAAO,GAAG,IAAI,EAC1B,WAAW,EAAE,OAAO,GAAG,IAAI,GACzB,SAAS,CASX;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACtC,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,OAAO,EACpB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACb,qBAAqB,GAAG,IAAI,CAmB9B;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACtC,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,OAAO,EACpB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACb,qBAAqB,GAAG,IAAI,CA4C9B;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACtC,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,WAAW,EAAE,WAAW,GAAG,IAAI,GAC7B,OAAO,CAMT;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC3C,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,OAAO,GAAG,IAAI,EAC1B,WAAW,EAAE,OAAO,GAAG,IAAI,EAC3B,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,KAAK,GAAG,IAAI,EAClB,WAAW,CAAC,EAAE,WAAW,GAAG,IAAI,GAC9B,OAAO,CAYT"}
|
package/lib/utils/slots.d.ts
CHANGED
|
@@ -15,6 +15,14 @@ export type QHasSlotContentOptions = {
|
|
|
15
15
|
* that content in place of an empty slot, or the check and the page disagree.
|
|
16
16
|
*/
|
|
17
17
|
ignoreBlankText?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Whether only text counts as content: text that is not blank, on its own or inside an
|
|
20
|
+
* element or a fragment. What a component renders, such as a `QIcon`, is not looked into, so
|
|
21
|
+
* a slot with only an icon has no text. Use it where text in a slot is another way to set a
|
|
22
|
+
* label, such as `<q-button><q-icon icon="content-copy" /> Copy</q-button>`. Blank text never
|
|
23
|
+
* counts, whatever `ignoreBlankText` says. Defaults to `false`.
|
|
24
|
+
*/
|
|
25
|
+
textOnly?: boolean;
|
|
18
26
|
};
|
|
19
27
|
/**
|
|
20
28
|
* Whether a slot renders anything: a node that is not a comment, looking inside fragments.
|
|
@@ -23,7 +31,7 @@ export type QHasSlotContentOptions = {
|
|
|
23
31
|
* false `v-if`, which Vue renders as a comment. `$slots.name` is set all the same, so a wrapper
|
|
24
32
|
* shown on it would render empty. By default this is exactly the rule Vue uses to show a slot's
|
|
25
33
|
* fallback content (`ensureValidVNode`), so a check and a fallback never disagree. Only
|
|
26
|
-
* `ignoreBlankText`
|
|
34
|
+
* `ignoreBlankText` and `textOnly` depart from it.
|
|
27
35
|
*
|
|
28
36
|
* Call it while rendering, in the template or a function the template calls, never in a
|
|
29
37
|
* `computed`: the slots object is not reactive, so a computed keeps its first answer.
|
|
@@ -36,7 +44,8 @@ export type QHasSlotContentOptions = {
|
|
|
36
44
|
* ```
|
|
37
45
|
*
|
|
38
46
|
* @param slot - The slot, from `$slots` or `useSlots()`. Its props type does not matter.
|
|
39
|
-
* @param options - The props to pass to a scoped slot,
|
|
47
|
+
* @param options - The props to pass to a scoped slot, whether blank text counts, and whether
|
|
48
|
+
* only text does.
|
|
40
49
|
* @returns Whether the slot renders content.
|
|
41
50
|
*/
|
|
42
51
|
export declare function hasSlotContent(slot: ((props: never) => unknown) | undefined, options?: QHasSlotContentOptions): boolean;
|
package/lib/utils/slots.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slots.d.ts","sourceRoot":"","sources":["../../src/utils/slots.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,0CAA0C;AAC1C,MAAM,MAAM,sBAAsB,GAAG;IACpC,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAE/B;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"slots.d.ts","sourceRoot":"","sources":["../../src/utils/slots.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,0CAA0C;AAC1C,MAAM,MAAM,sBAAsB,GAAG;IACpC,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAE/B;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IAEzB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,cAAc,CAC7B,IAAI,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC,GAAG,SAAS,EAC7C,OAAO,GAAE,sBAA2B,GAClC,OAAO,CAST"}
|
package/lib/utils/slots.js
CHANGED
|
@@ -3,12 +3,15 @@ import { Comment as e, Fragment as t, Text as n, isVNode as r } from "vue";
|
|
|
3
3
|
function i(e, t = {}) {
|
|
4
4
|
if (e === void 0) return !1;
|
|
5
5
|
let n = e(t.props ?? {});
|
|
6
|
-
return a(Array.isArray(n) ? n : [n], t.ignoreBlankText ?? !1);
|
|
6
|
+
return t.textOnly ? o(n) : a(Array.isArray(n) ? n : [n], t.ignoreBlankText ?? !1);
|
|
7
7
|
}
|
|
8
|
-
function a(i,
|
|
9
|
-
return i.some((i) => r(i) ? i.type === e ? !1 : i.type === t ? Array.isArray(i.children) && a(i.children,
|
|
8
|
+
function a(i, o) {
|
|
9
|
+
return i.some((i) => r(i) ? i.type === e ? !1 : i.type === t ? Array.isArray(i.children) && a(i.children, o) : i.type === n ? !(o && s(i.children)) : !0 : !(o && s(i)));
|
|
10
10
|
}
|
|
11
|
-
function o(
|
|
11
|
+
function o(i) {
|
|
12
|
+
return typeof i == "string" ? !s(i) : typeof i == "number" ? !0 : Array.isArray(i) ? i.some(o) : !r(i) || i.type === e ? !1 : (typeof i.type == "string" || i.type === n || i.type === t) && o(i.children);
|
|
13
|
+
}
|
|
14
|
+
function s(e) {
|
|
12
15
|
return typeof e == "string" && e.trim() === "";
|
|
13
16
|
}
|
|
14
17
|
//#endregion
|
package/lib/utils/theme.d.ts
CHANGED
|
@@ -13,9 +13,9 @@ declare const TINTED_COLORS: readonly ["primary", "info", "success", "warning",
|
|
|
13
13
|
* Derives the focus ring color of a scheme: `primary`, darkened or lightened on the same
|
|
14
14
|
* hue until it clears {@link FOCUS_RING_MINIMUM_RATIO} against the surfaces focusable
|
|
15
15
|
* elements sit on: `background`, `container`, and the 12% tonal tints of `primary`, `info`,
|
|
16
|
-
* `success`, `warning` and `danger` over the background
|
|
17
|
-
* theme). A `primary` that already passes is used as is, so the
|
|
18
|
-
* wherever the theme allows it.
|
|
16
|
+
* `success`, `warning` and `danger` over the background, as the browser paints them (the
|
|
17
|
+
* darkest of them on a light theme). A `primary` that already passes is used as is, so the
|
|
18
|
+
* ring keeps the brand color wherever the theme allows it.
|
|
19
19
|
*
|
|
20
20
|
* The surfaces are expected to sit on the same side of the scale (all light or all dark),
|
|
21
21
|
* as in every built-in theme; a 12% tint stays on the background's side. A light background
|
package/lib/utils/theme.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/utils/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAQ3C,eAAO,MAAM,aAAa,YAAY,CAAA;AAEtC;;;GAG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,UAAU,CAAC,KAAK,EAAE,MAAM,UAOvC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,EACjB,MAAM,EAAE,YAAY,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC,CAAC,GAC3C,cAAc,CAmBhB;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,UAEzC"}
|
package/lib/utils/theme.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import { rgbToHex as e } from "./color/conversion.js";
|
|
2
2
|
import { parseColor as t } from "./color/parse.js";
|
|
3
3
|
import { ensureContrast as n } from "./color/contrast.js";
|
|
4
|
-
import { TONAL_SURFACE_ALPHA as r, blendOver as i } from "./color/blend.js";
|
|
5
|
-
import { toKebabCase as
|
|
6
|
-
import { computed as
|
|
4
|
+
import { TONAL_SURFACE_ALPHA as r, blendOver as i, paintedAlpha as a } from "./color/blend.js";
|
|
5
|
+
import { toKebabCase as o } from "./string.js";
|
|
6
|
+
import { computed as s } from "vue";
|
|
7
7
|
//#region src/utils/theme.ts
|
|
8
|
-
var
|
|
8
|
+
var c = "q-theme", l = [
|
|
9
9
|
"primary",
|
|
10
10
|
"info",
|
|
11
11
|
"success",
|
|
12
12
|
"warning",
|
|
13
13
|
"danger"
|
|
14
14
|
];
|
|
15
|
-
function
|
|
16
|
-
let
|
|
17
|
-
let
|
|
18
|
-
return
|
|
15
|
+
function u(o) {
|
|
16
|
+
let s = t(o.background), c = l.flatMap((n) => {
|
|
17
|
+
let c = o[n];
|
|
18
|
+
return c ? [e(i(t(c), s, a(r)))] : [];
|
|
19
19
|
});
|
|
20
20
|
return [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
...
|
|
24
|
-
].reduce((e, t) => n(e, t, 3),
|
|
21
|
+
o.background,
|
|
22
|
+
o.container,
|
|
23
|
+
...c
|
|
24
|
+
].reduce((e, t) => n(e, t, 3), o.primary);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
let e = document.getElementById(
|
|
28
|
-
return e || (e = document.createElement("style"), e.id =
|
|
26
|
+
function d() {
|
|
27
|
+
let e = document.getElementById(c);
|
|
28
|
+
return e || (e = document.createElement("style"), e.id = c, document.head.appendChild(e)), e;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
let n = `.${
|
|
30
|
+
function f(e) {
|
|
31
|
+
let n = `.${g(e.name)} {\n`, r = e.scheme, i;
|
|
32
32
|
for (i in r) {
|
|
33
33
|
let e = r[i];
|
|
34
34
|
if (e) {
|
|
35
|
-
n += ` ${
|
|
35
|
+
n += ` ${m(i)}: ${e};\n`;
|
|
36
36
|
let r = t(e);
|
|
37
|
-
n += ` ${
|
|
37
|
+
n += ` ${m(i)}-rgb: ${r.r} ${r.g} ${r.b};\n`;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
return r.primary && r.background && r.container && (n += ` ${
|
|
40
|
+
return r.primary && r.background && r.container && (n += ` ${m("focusRing")}: ${u(r)};\n`), n += "}\n", n;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
let t = e.map(
|
|
42
|
+
function p(e) {
|
|
43
|
+
let t = e.map(f).join("\n"), n = d();
|
|
44
44
|
n.textContent = t;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return e ? `--q-theme-${
|
|
46
|
+
function m(e) {
|
|
47
|
+
return e ? `--q-theme-${o(e)}` : "";
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
let n =
|
|
49
|
+
function h(e, t) {
|
|
50
|
+
let n = s(() => {
|
|
51
51
|
let n = t.value.find((t) => t.name === e.value);
|
|
52
52
|
if (!n) throw Error(`[Quidgest UI] Theme "${e.value}" not found`);
|
|
53
53
|
return n;
|
|
@@ -56,12 +56,12 @@ function m(e, t) {
|
|
|
56
56
|
name: e,
|
|
57
57
|
current: n,
|
|
58
58
|
themes: t,
|
|
59
|
-
class:
|
|
60
|
-
css:
|
|
59
|
+
class: s(() => g(n.value.name)),
|
|
60
|
+
css: s(() => f(n.value))
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
return `q-theme--${
|
|
63
|
+
function g(e) {
|
|
64
|
+
return `q-theme--${o(e)}`;
|
|
65
65
|
}
|
|
66
66
|
//#endregion
|
|
67
|
-
export {
|
|
67
|
+
export { c as THEME_NODE_ID, h as createThemeInstance, p as generateRootStyle, f as generateThemeCss, u as getFocusRingColor, g as getThemeClass, d as getThemeNode, m as toProperty };
|