@quidgest/ui 0.31.1 → 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 +46 -0
- package/dist/json/api.json +1032 -243
- package/dist/manifest/components.json +1 -0
- package/dist/ui.css +859 -285
- package/dist/ui.esm.js +1584 -1360
- package/dist/ui.min.css +1 -1
- package/dist/ui.scss +949 -305
- 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
|
@@ -5,26 +5,40 @@ import { QOverlay as i } from "../QOverlay/index.js";
|
|
|
5
5
|
import { QButton as a } from "../QButton/index.js";
|
|
6
6
|
import { QTextField as o } from "../QTextField/index.js";
|
|
7
7
|
import { useFieldError as s } from "../../composables/useFieldError/index.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
8
|
+
import { getPopupLabel as ee } from "../../utils/popupLabel.js";
|
|
9
|
+
import { DEFAULT_ICONS as te, DEFAULT_TEXTS as ne, MONTH_NAMES as re, WEEKDAY_NAMES as ie } from "./constants.js";
|
|
10
|
+
import { QSwitch as ae } from "../QSwitch/index.js";
|
|
11
|
+
import { addDays as oe, convertDatePatternToMask as se, formatDate as ce, formatUsesSeconds as le, formatUsesTime as ue, getDaysInMonth as de, getFirstDayOfMonth as fe, inputIncludesTimePortion as pe, isBetween as me, isSameDay as c, isTimeOnlyFormat as he, padNumber as ge, padNumericSegments as _e, parseDate as ve, parseDateWithCompletion as ye, parseIsoDate as be, uses12HourFormat as xe } from "../../utils/date.js";
|
|
12
|
+
import { applyMask as Se } from "../../utils/mask.js";
|
|
13
|
+
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Ce, createTextVNode as we, createVNode as h, defineComponent as g, guardReactiveProps as _, mergeModels as Te, mergeProps as v, nextTick as y, normalizeClass as Ee, normalizeProps as b, onBeforeUnmount as De, openBlock as x, ref as S, renderList as Oe, renderSlot as ke, toDisplayString as Ae, toRef as je, unref as C, useAttrs as Me, useModel as Ne, useSlots as Pe, useTemplateRef as w, watch as T, withCtx as E } from "vue";
|
|
13
14
|
//#region src/components/QDateTimePicker/QDateTimePicker.vue?vue&type=script&setup=true&lang.ts
|
|
14
|
-
var
|
|
15
|
+
var Fe = [
|
|
16
|
+
"id",
|
|
17
|
+
"aria-label",
|
|
18
|
+
"aria-labelledby"
|
|
19
|
+
], Ie = {
|
|
15
20
|
key: 0,
|
|
16
21
|
ref: "calendar",
|
|
17
22
|
class: "q-date-time-picker__calendar"
|
|
18
|
-
},
|
|
23
|
+
}, Le = { class: "q-date-time-picker__header" }, Re = ["aria-label", "aria-multiselectable"], ze = {
|
|
19
24
|
role: "row",
|
|
20
25
|
class: "q-date-time-picker__weekdays"
|
|
21
|
-
},
|
|
26
|
+
}, Be = ["aria-label"], Ve = {
|
|
27
|
+
key: 1,
|
|
28
|
+
class: "q-date-time-picker__time"
|
|
29
|
+
}, He = ["role", "aria-label"], Ue = {
|
|
22
30
|
key: 0,
|
|
23
31
|
class: "q-date-time-picker__time-period"
|
|
24
|
-
},
|
|
32
|
+
}, We = { class: "q-date-time-picker__time-inputs" }, Ge = { class: "q-date-time-picker__time-input-group" }, Ke = { class: "q-date-time-picker__time-input-group" }, qe = { class: "q-date-time-picker__time-input-group" }, Je = {
|
|
33
|
+
key: 2,
|
|
34
|
+
class: "q-date-time-picker__month-grid"
|
|
35
|
+
}, Ye = {
|
|
36
|
+
key: 3,
|
|
37
|
+
class: "q-date-time-picker__year"
|
|
38
|
+
}, Xe = { class: "q-date-time-picker__year-change" }, Ze = { class: "q-date-time-picker__year-interval" }, Qe = { class: "q-date-time-picker__year-grid" }, $e = { class: "q-date-time-picker__bottom-bar" }, D = 1001, O = 9999, et = 26, tt = /*@__PURE__*/ g({
|
|
25
39
|
inheritAttrs: !1,
|
|
26
40
|
__name: "QDateTimePicker",
|
|
27
|
-
props: /*@__PURE__*/
|
|
41
|
+
props: /*@__PURE__*/ Te({
|
|
28
42
|
id: {},
|
|
29
43
|
class: {},
|
|
30
44
|
label: {},
|
|
@@ -33,8 +47,8 @@ var Pe = {
|
|
|
33
47
|
labelPosition: {},
|
|
34
48
|
help: {},
|
|
35
49
|
helpDisplay: {},
|
|
36
|
-
icons: { default: () =>
|
|
37
|
-
texts: { default: () =>
|
|
50
|
+
icons: { default: () => te },
|
|
51
|
+
texts: { default: () => ne },
|
|
38
52
|
size: {},
|
|
39
53
|
readonly: { type: Boolean },
|
|
40
54
|
disabled: { type: Boolean },
|
|
@@ -51,22 +65,22 @@ var Pe = {
|
|
|
51
65
|
modelValue: {},
|
|
52
66
|
modelModifiers: {}
|
|
53
67
|
}),
|
|
54
|
-
emits: /*@__PURE__*/
|
|
55
|
-
setup(
|
|
56
|
-
let g =
|
|
57
|
-
get: () =>
|
|
58
|
-
set: (e) =>
|
|
59
|
-
}),
|
|
60
|
-
function
|
|
68
|
+
emits: /*@__PURE__*/ Te(["open", "close"], ["update:modelValue"]),
|
|
69
|
+
setup(te, { emit: ne }) {
|
|
70
|
+
let g = te, Te = ne, tt = { ignoreWeekday: !0 }, nt = e(je(g, "id")), rt = Me(), it = u(() => `${nt.value}_menu`), at = u(() => !g.readonly && !g.disabled), ot = Ne(te, "modelValue"), k = u({
|
|
71
|
+
get: () => ot.value,
|
|
72
|
+
set: (e) => ot.value = e || void 0
|
|
73
|
+
}), st = u(() => g.readonly || g.disabled ? void 0 : g.placeholder), ct = u(() => ue(g.format)), lt = u(() => le(g.format)), A = u(() => xe(g.format)), j = u(() => he(g.format)), ut = u(() => I.value === (/* @__PURE__ */ new Date()).getMonth() && L.value === (/* @__PURE__ */ new Date()).getFullYear()), M = S(!1), dt = S(!1), N = S(""), P = S(null), F = S("date"), I = S((/* @__PURE__ */ new Date()).getMonth()), L = S((/* @__PURE__ */ new Date()).getFullYear()), ft = S((/* @__PURE__ */ new Date()).getFullYear()), pt = null, R = !1, mt = !1, ht = !1, z = null;
|
|
74
|
+
function gt() {
|
|
61
75
|
queueMicrotask(() => {
|
|
62
76
|
requestAnimationFrame(() => {
|
|
63
|
-
let e =
|
|
64
|
-
e && (t === e || t instanceof Node &&
|
|
77
|
+
let e = Pr(), t = document.activeElement;
|
|
78
|
+
e && (t === e || t instanceof Node && V.value?.contains(t)) && (R = !0);
|
|
65
79
|
});
|
|
66
80
|
});
|
|
67
81
|
}
|
|
68
|
-
let
|
|
69
|
-
function
|
|
82
|
+
let B = w("field"), V = w("menu"), _t = w("calendar"), vt = w("monthHeader"), yt = w("yearHeader"), bt = w("toggleTime"), xt = w("toggleDate"), St = /* @__PURE__ */ new Map(), Ct = /* @__PURE__ */ new Map();
|
|
83
|
+
function wt(e) {
|
|
70
84
|
if (!e) return null;
|
|
71
85
|
if (e instanceof HTMLElement) return e;
|
|
72
86
|
if (typeof e == "object" && "$el" in e) {
|
|
@@ -75,189 +89,209 @@ var Pe = {
|
|
|
75
89
|
}
|
|
76
90
|
return null;
|
|
77
91
|
}
|
|
78
|
-
function
|
|
79
|
-
let n =
|
|
80
|
-
n ?
|
|
92
|
+
function Tt(e, t) {
|
|
93
|
+
let n = wt(e);
|
|
94
|
+
n ? St.set(t, n) : St.delete(t);
|
|
81
95
|
}
|
|
82
|
-
function
|
|
83
|
-
let n =
|
|
84
|
-
n ?
|
|
96
|
+
function Et(e, t) {
|
|
97
|
+
let n = wt(e);
|
|
98
|
+
n ? Ct.set(t, n) : Ct.delete(t);
|
|
85
99
|
}
|
|
86
|
-
function
|
|
87
|
-
|
|
100
|
+
function Dt(e) {
|
|
101
|
+
wt(e)?.focus();
|
|
102
|
+
}
|
|
103
|
+
function Ot() {
|
|
104
|
+
return !!V.value?.contains(document.activeElement);
|
|
105
|
+
}
|
|
106
|
+
let H = S(null);
|
|
107
|
+
function kt(e, t) {
|
|
108
|
+
return !t && H.value !== e;
|
|
109
|
+
}
|
|
110
|
+
function At() {
|
|
111
|
+
Ot() && V.value?.focus();
|
|
88
112
|
}
|
|
89
113
|
let U = u(() => {
|
|
90
114
|
let e = k.value;
|
|
91
|
-
return e ? e instanceof Date ? e : Array.isArray(e) && e.length > 0 ? e[0] : typeof e == "string" ?
|
|
92
|
-
}),
|
|
115
|
+
return e ? e instanceof Date ? e : Array.isArray(e) && e.length > 0 ? e[0] : typeof e == "string" ? dr(e) : null : null;
|
|
116
|
+
}), jt = u(() => {
|
|
93
117
|
let e = k.value;
|
|
94
118
|
return Array.isArray(e) && e.length > 1 ? e[1] : null;
|
|
95
|
-
}), W = S(null), G = S(null), K = S(null), q = S(!1),
|
|
119
|
+
}), W = S(null), G = S(null), K = S(null), q = S(!1), Mt = u(() => !q.value || !W.value ? U.value : K.value && K.value < W.value ? K.value : W.value), Nt = u(() => {
|
|
96
120
|
if (!g.range) return U.value;
|
|
97
|
-
if (!q.value || !W.value) return
|
|
121
|
+
if (!q.value || !W.value) return jt.value;
|
|
98
122
|
let e = K.value ?? G.value;
|
|
99
123
|
return e ? e < W.value ? W.value : e : null;
|
|
100
124
|
}), J = u(() => ({
|
|
101
125
|
getMonthName: (e, t) => {
|
|
102
|
-
let n =
|
|
126
|
+
let n = an(e);
|
|
103
127
|
return t ? n.substring(0, 3) : n;
|
|
104
128
|
},
|
|
105
129
|
getWeekdayName: (e, t) => {
|
|
106
|
-
let n =
|
|
130
|
+
let n = ie[(e + 6) % 7], r = g.texts[n] ?? n;
|
|
107
131
|
return t ? r.substring(0, 3) : r;
|
|
108
132
|
}
|
|
109
|
-
})),
|
|
133
|
+
})), Pt = u(() => J.value), Ft = u(() => {
|
|
110
134
|
let e = k.value;
|
|
111
135
|
if (!e) return "";
|
|
112
|
-
if (Array.isArray(e)) return e.map((e) => e instanceof Date ?
|
|
113
|
-
if (e instanceof Date) return
|
|
136
|
+
if (Array.isArray(e)) return e.map((e) => e instanceof Date ? ce(e, g.format, J.value) : e).join(" - ");
|
|
137
|
+
if (e instanceof Date) return ce(e, g.format, J.value);
|
|
114
138
|
if (typeof e == "string") {
|
|
115
|
-
let t =
|
|
116
|
-
return t ?
|
|
139
|
+
let t = dr(e);
|
|
140
|
+
return t ? ce(t, g.format, J.value) : String(e);
|
|
117
141
|
}
|
|
118
142
|
return String(e);
|
|
119
|
-
}),
|
|
120
|
-
if (!
|
|
121
|
-
let e =
|
|
143
|
+
}), It = u(() => P.value ?? Ft.value), Lt = S(!1), Rt = u(() => {
|
|
144
|
+
if (!Lt.value) return;
|
|
145
|
+
let e = ce(/* @__PURE__ */ new Date(), g.format, J.value), t = g.range ? `${e} - ${e}` : e;
|
|
122
146
|
return g.texts.invalidValue.replace("{0}", t);
|
|
123
|
-
}), { isInvalid:
|
|
147
|
+
}), { isInvalid: zt, showsAppErrors: Bt } = s({
|
|
124
148
|
invalid: () => g.invalid,
|
|
125
|
-
error:
|
|
126
|
-
slots:
|
|
149
|
+
error: Rt,
|
|
150
|
+
slots: Pe()
|
|
127
151
|
});
|
|
128
|
-
function
|
|
129
|
-
|
|
152
|
+
function Vt() {
|
|
153
|
+
N.value = It.value;
|
|
130
154
|
}
|
|
131
|
-
|
|
132
|
-
|
|
155
|
+
T(It, () => {
|
|
156
|
+
dt.value || Vt();
|
|
133
157
|
}, { immediate: !0 });
|
|
134
|
-
let
|
|
135
|
-
let e =
|
|
136
|
-
for (let e =
|
|
137
|
-
for (let e = 1; e <= t; e++)
|
|
138
|
-
let
|
|
139
|
-
for (let e = 1; e <=
|
|
140
|
-
return
|
|
158
|
+
let Ht = u(() => {
|
|
159
|
+
let e = fe(new Date(L.value, I.value, 1)), t = de(I.value, L.value), n = (e.getDay() + 6) % 7, r = 6 - Math.ceil((n + t) / 7), i = n + Math.floor(r / 2) * 7, a = [], o = I.value === 0 ? 11 : I.value - 1, s = I.value === 0 ? L.value - 1 : L.value, ee = de(o, s);
|
|
160
|
+
for (let e = i - 1; e >= 0; e--) Ut(a, new Date(s, o, ee - e), !1);
|
|
161
|
+
for (let e = 1; e <= t; e++) Ut(a, new Date(L.value, I.value, e), !0);
|
|
162
|
+
let te = 42 - a.length;
|
|
163
|
+
for (let e = 1; e <= te; e++) Ut(a, new Date(L.value, I.value + 1, e), !1);
|
|
164
|
+
return a;
|
|
141
165
|
});
|
|
142
|
-
function
|
|
143
|
-
let r =
|
|
166
|
+
function Ut(e, t, n) {
|
|
167
|
+
let r = Mt.value, i = Nt.value, a = t.getFullYear(), o = a < D || a > O;
|
|
144
168
|
e.push({
|
|
145
169
|
date: t,
|
|
146
170
|
isCurrentMonth: n,
|
|
147
|
-
isToday:
|
|
148
|
-
isSelected: r ?
|
|
149
|
-
isRangeStart: !!r &&
|
|
150
|
-
isRangeEnd: !!i &&
|
|
151
|
-
isInRange: r && i ?
|
|
171
|
+
isToday: c(t, /* @__PURE__ */ new Date()),
|
|
172
|
+
isSelected: r ? c(t, r) : !1,
|
|
173
|
+
isRangeStart: !!r && c(t, r),
|
|
174
|
+
isRangeEnd: !!i && c(t, i),
|
|
175
|
+
isInRange: r && i ? me(t, r, i) : !1,
|
|
152
176
|
isDisabled: o
|
|
153
177
|
});
|
|
154
178
|
}
|
|
155
|
-
let
|
|
179
|
+
let Wt = u(() => ie.map((e) => {
|
|
156
180
|
let t = e;
|
|
157
181
|
return g.texts[t]?.substring(0, 2) ?? e;
|
|
158
|
-
})),
|
|
182
|
+
})), Gt = u(() => {
|
|
159
183
|
let e = [];
|
|
160
|
-
return
|
|
184
|
+
return Ht.value.forEach((t, n) => {
|
|
161
185
|
n % 7 == 0 && e.push([]), e[e.length - 1].push({
|
|
162
186
|
day: t,
|
|
163
187
|
index: n
|
|
164
188
|
});
|
|
165
189
|
}), e;
|
|
166
190
|
});
|
|
167
|
-
function
|
|
168
|
-
let t =
|
|
191
|
+
function Kt(e) {
|
|
192
|
+
let t = ie[e];
|
|
169
193
|
return g.texts[t] ?? t;
|
|
170
194
|
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
195
|
+
function qt(e) {
|
|
196
|
+
if (g.range && q.value && W.value) return c(e, W.value);
|
|
197
|
+
let t = U.value;
|
|
198
|
+
if (!t) return !1;
|
|
199
|
+
let n = g.range ? jt.value : null;
|
|
200
|
+
return n ? c(e, t) || c(e, n) || me(e, t, n) : c(e, t);
|
|
201
|
+
}
|
|
202
|
+
function Jt() {
|
|
203
|
+
return ee(rt["aria-label"], B.value?.inputRef);
|
|
204
|
+
}
|
|
205
|
+
let Yt = u(() => typeof rt["aria-labelledby"] == "string" ? rt["aria-labelledby"] : void 0), Xt = u(() => `${an(I.value)} ${L.value}`);
|
|
206
|
+
function Zt(e) {
|
|
207
|
+
return `${Kt((e.getDay() + 6) % 7)}, ${e.getDate()} ${an(e.getMonth())} ${e.getFullYear()}`;
|
|
174
208
|
}
|
|
175
|
-
let
|
|
176
|
-
let e =
|
|
209
|
+
let Qt = S(null), $t = u(() => {
|
|
210
|
+
let e = Ht.value;
|
|
177
211
|
for (let t of [
|
|
178
|
-
|
|
179
|
-
|
|
212
|
+
Qt.value,
|
|
213
|
+
Mt.value,
|
|
180
214
|
/* @__PURE__ */ new Date()
|
|
181
215
|
]) {
|
|
182
216
|
if (!t) continue;
|
|
183
|
-
let n = e.findIndex((e) => e.isCurrentMonth && !e.isDisabled &&
|
|
217
|
+
let n = e.findIndex((e) => e.isCurrentMonth && !e.isDisabled && c(e.date, t));
|
|
184
218
|
if (n >= 0) return n;
|
|
185
219
|
}
|
|
186
220
|
return e.findIndex((e) => e.isCurrentMonth && !e.isDisabled);
|
|
187
221
|
});
|
|
188
|
-
function
|
|
189
|
-
let n = new Date(e.getFullYear(), e.getMonth() + t, 1), r =
|
|
222
|
+
function en(e, t) {
|
|
223
|
+
let n = new Date(e.getFullYear(), e.getMonth() + t, 1), r = de(n.getMonth(), n.getFullYear());
|
|
190
224
|
return new Date(n.getFullYear(), n.getMonth(), Math.min(e.getDate(), r));
|
|
191
225
|
}
|
|
192
|
-
function
|
|
226
|
+
function tn(e) {
|
|
193
227
|
if (e.ctrlKey || e.altKey || e.metaKey) return;
|
|
194
|
-
let t = e.target.closest("[data-day-index]"), n =
|
|
228
|
+
let t = e.target.closest("[data-day-index]"), n = Ht.value[Number(t?.getAttribute("data-day-index"))];
|
|
195
229
|
if (!n) return;
|
|
196
230
|
let { date: r } = n, i = (r.getDay() + 6) % 7, a = e.shiftKey ? 12 : 1, o = {
|
|
197
|
-
ArrowLeft: () =>
|
|
198
|
-
ArrowRight: () =>
|
|
199
|
-
ArrowUp: () =>
|
|
200
|
-
ArrowDown: () =>
|
|
201
|
-
Home: () =>
|
|
202
|
-
End: () =>
|
|
203
|
-
PageUp: () =>
|
|
204
|
-
PageDown: () =>
|
|
231
|
+
ArrowLeft: () => oe(r, -1),
|
|
232
|
+
ArrowRight: () => oe(r, 1),
|
|
233
|
+
ArrowUp: () => oe(r, -7),
|
|
234
|
+
ArrowDown: () => oe(r, 7),
|
|
235
|
+
Home: () => oe(r, -i),
|
|
236
|
+
End: () => oe(r, 6 - i),
|
|
237
|
+
PageUp: () => en(r, -a),
|
|
238
|
+
PageDown: () => en(r, a)
|
|
205
239
|
}[e.key];
|
|
206
|
-
o && (e.preventDefault(),
|
|
240
|
+
o && (e.preventDefault(), nn(o()));
|
|
207
241
|
}
|
|
208
|
-
async function
|
|
242
|
+
async function nn(e) {
|
|
209
243
|
let t = e.getFullYear();
|
|
210
|
-
t <
|
|
244
|
+
t < D || t > O || (Qt.value = e, (e.getMonth() !== I.value || t !== L.value) && (X(e.getMonth()), Y(t)), await y(), V.value?.querySelector(`[data-day-index="${$t.value}"]`)?.focus());
|
|
211
245
|
}
|
|
212
|
-
let
|
|
213
|
-
function
|
|
214
|
-
let n =
|
|
246
|
+
let rn = u(() => Array.from({ length: 12 }, (e, t) => an(t, 3)));
|
|
247
|
+
function an(e, t = 0) {
|
|
248
|
+
let n = re[e], r = g.texts[n] ?? re[e];
|
|
215
249
|
return t <= 0 ? r : r.substring(0, t);
|
|
216
250
|
}
|
|
217
|
-
function
|
|
218
|
-
let t = e - Math.floor(
|
|
219
|
-
return t <
|
|
251
|
+
function on(e) {
|
|
252
|
+
let t = e - Math.floor(et / 2), n = t + et;
|
|
253
|
+
return t < D && (t = D, n = Math.min(t + et, O)), n > O && (n = O, t = Math.max(D, n - et)), {
|
|
220
254
|
startYear: t,
|
|
221
255
|
endYear: n
|
|
222
256
|
};
|
|
223
257
|
}
|
|
224
|
-
function
|
|
225
|
-
let { startYear: t, endYear: n } =
|
|
258
|
+
function sn(e) {
|
|
259
|
+
let { startYear: t, endYear: n } = on(e);
|
|
226
260
|
return Array.from({ length: n - t + 1 }, (e, n) => t + n);
|
|
227
261
|
}
|
|
228
|
-
function
|
|
229
|
-
|
|
262
|
+
function cn() {
|
|
263
|
+
dn.value && (ft.value -= et);
|
|
230
264
|
}
|
|
231
|
-
function
|
|
232
|
-
|
|
265
|
+
function ln() {
|
|
266
|
+
fn.value && (ft.value += et);
|
|
233
267
|
}
|
|
234
|
-
let
|
|
235
|
-
|
|
236
|
-
let r =
|
|
237
|
-
|
|
238
|
-
|
|
268
|
+
let un = u(() => on(ft.value)), dn = u(() => un.value.startYear > D), fn = u(() => un.value.endYear < O), pn = u(() => I.value === 0 ? L.value - 1 : L.value), mn = u(() => I.value === 11 ? L.value + 1 : L.value), hn = u(() => pn.value >= D), gn = u(() => mn.value <= O), _n = u(() => sn(ft.value)), vn = u(() => j.value ? g.icons.clock : g.icons.calendar), yn = u(() => `${g.format} - ${g.format}`), bn = u(() => se(g.format)), xn = u(() => `${bn.value} - ${bn.value}`);
|
|
269
|
+
T(() => B?.value?.inputRef, (e, t, n) => {
|
|
270
|
+
let r = Nr(e);
|
|
271
|
+
z = r, r && (r.addEventListener("click", Ar), n(() => {
|
|
272
|
+
z = null, r.removeEventListener("click", Ar);
|
|
239
273
|
}));
|
|
240
|
-
}, { flush: "post" }),
|
|
241
|
-
|
|
274
|
+
}, { flush: "post" }), T(k, () => {
|
|
275
|
+
P.value = null, Lt.value = !1, Vt();
|
|
242
276
|
});
|
|
243
|
-
function
|
|
277
|
+
function Sn(e) {
|
|
244
278
|
return e === void 0 ? !1 : typeof e == "string" ? e.trim().length > 0 : e instanceof Date ? !0 : Array.isArray(e) ? e.length > 0 : !1;
|
|
245
279
|
}
|
|
246
|
-
let
|
|
247
|
-
function
|
|
248
|
-
|
|
280
|
+
let Cn = u(() => g.clearable && !g.readonly && !g.disabled && Sn(k.value));
|
|
281
|
+
function wn() {
|
|
282
|
+
Cn.value && (Rn(), k.value = void 0, N.value = "", Jr());
|
|
249
283
|
}
|
|
250
|
-
function
|
|
251
|
-
!g.range || !q.value || !W.value || e.getFullYear() <
|
|
284
|
+
function Tn(e) {
|
|
285
|
+
!g.range || !q.value || !W.value || e.getFullYear() < D || e.getFullYear() > O || (K.value = new Date(e));
|
|
252
286
|
}
|
|
253
|
-
function
|
|
287
|
+
function En() {
|
|
254
288
|
K.value = null;
|
|
255
289
|
}
|
|
256
|
-
function
|
|
290
|
+
function Dn(e) {
|
|
257
291
|
let t = e.currentTarget, n = e.relatedTarget;
|
|
258
|
-
!t || n && t.contains(n) ||
|
|
292
|
+
!t || n && t.contains(n) || En();
|
|
259
293
|
}
|
|
260
|
-
function
|
|
294
|
+
function On(e) {
|
|
261
295
|
if (!g.range || !q.value || !W.value) return;
|
|
262
296
|
let t = e.touches.item(0);
|
|
263
297
|
if (!t) return;
|
|
@@ -265,215 +299,242 @@ var Pe = {
|
|
|
265
299
|
if (!n) return;
|
|
266
300
|
let r = Number(n.dataset.dayIndex);
|
|
267
301
|
if (Number.isNaN(r)) return;
|
|
268
|
-
let i =
|
|
269
|
-
i &&
|
|
302
|
+
let i = Ht.value[r];
|
|
303
|
+
i && Tn(i.date);
|
|
270
304
|
}
|
|
271
|
-
function
|
|
272
|
-
|
|
305
|
+
async function kn(e) {
|
|
306
|
+
let t = Ot();
|
|
307
|
+
if (An(e), !t || (Qt.value = e, await y(), !M.value)) return;
|
|
308
|
+
let n = Ht.value.findIndex((t) => c(t.date, e));
|
|
309
|
+
V.value?.querySelector(`[data-day-index="${n >= 0 ? n : $t.value}"]`)?.focus();
|
|
310
|
+
}
|
|
311
|
+
function An(e) {
|
|
312
|
+
if (!(g.readonly || g.disabled) && !(e.getFullYear() < D || e.getFullYear() > O)) if (g.range) if (!q.value) W.value = new Date(e), G.value = null, K.value = null, q.value = !0;
|
|
273
313
|
else {
|
|
274
314
|
let t = W.value, n = new Date(e), [r, i] = n < t ? [n, t] : [t, n];
|
|
275
|
-
|
|
315
|
+
ct.value && i.setHours(23, 59, lt.value ? 59 : 0, 0), k.value = [r, i], W.value = null, G.value = null, K.value = null, q.value = !1;
|
|
276
316
|
}
|
|
277
317
|
else {
|
|
278
318
|
let t = new Date(e);
|
|
279
|
-
U.value && !
|
|
319
|
+
U.value && !yr(U.value) ? t.setHours(U.value.getHours(), U.value.getMinutes(), U.value.getSeconds()) : ct.value && br(t), k.value = t;
|
|
280
320
|
}
|
|
281
321
|
}
|
|
282
|
-
function
|
|
283
|
-
|
|
322
|
+
function jn(e) {
|
|
323
|
+
X(e, !0);
|
|
284
324
|
}
|
|
285
|
-
function
|
|
286
|
-
|
|
325
|
+
function Mn(e) {
|
|
326
|
+
Y(e, !0);
|
|
287
327
|
}
|
|
288
328
|
function Y(e, t) {
|
|
289
|
-
|
|
329
|
+
L.value = e, t && Hr("year");
|
|
290
330
|
}
|
|
291
331
|
function X(e, t) {
|
|
292
|
-
|
|
332
|
+
I.value = e, t && Hr("month");
|
|
293
333
|
}
|
|
294
|
-
function
|
|
295
|
-
|
|
334
|
+
function Nn() {
|
|
335
|
+
hn.value && (I.value === 0 ? (X(11), Y(L.value - 1)) : X(I.value - 1));
|
|
296
336
|
}
|
|
297
|
-
function
|
|
298
|
-
|
|
337
|
+
function Pn() {
|
|
338
|
+
gn.value && (I.value === 11 ? (X(0), Y(L.value + 1)) : X(I.value + 1));
|
|
299
339
|
}
|
|
300
|
-
function
|
|
301
|
-
X((/* @__PURE__ */ new Date()).getMonth()), Y((/* @__PURE__ */ new Date()).getFullYear()),
|
|
340
|
+
function Fn() {
|
|
341
|
+
ut.value || (X((/* @__PURE__ */ new Date()).getMonth()), Y((/* @__PURE__ */ new Date()).getFullYear()), Vr());
|
|
302
342
|
}
|
|
303
|
-
function
|
|
343
|
+
function In() {
|
|
304
344
|
let e = U.value ?? /* @__PURE__ */ new Date();
|
|
305
|
-
X(e.getMonth()), Y(e.getFullYear()),
|
|
345
|
+
X(e.getMonth()), Y(e.getFullYear()), Vr();
|
|
306
346
|
}
|
|
307
|
-
function
|
|
308
|
-
return g.range ? q.value ? e === 1 ? G.value : W.value : e === 1 ?
|
|
347
|
+
function Ln(e) {
|
|
348
|
+
return g.range ? q.value ? e === 1 ? G.value : W.value : e === 1 ? jt.value ?? G.value : U.value ?? W.value : U.value;
|
|
309
349
|
}
|
|
310
|
-
function
|
|
350
|
+
function Rn() {
|
|
311
351
|
W.value = null, G.value = null, K.value = null, q.value = !1;
|
|
312
352
|
}
|
|
313
|
-
function
|
|
314
|
-
if (!g.range || !
|
|
353
|
+
function zn() {
|
|
354
|
+
if (!g.range || !j.value) return;
|
|
315
355
|
let e = k.value;
|
|
316
356
|
if (!Array.isArray(e) || e.length < 2) return;
|
|
317
357
|
let t = e[0], n = e[1];
|
|
318
358
|
!(t instanceof Date) || !(n instanceof Date) || n >= t || (k.value = [new Date(n), new Date(t)]);
|
|
319
359
|
}
|
|
320
|
-
function
|
|
360
|
+
function Bn(e, t) {
|
|
321
361
|
if (!g.range) {
|
|
322
362
|
k.value = t;
|
|
323
363
|
return;
|
|
324
364
|
}
|
|
325
|
-
if (
|
|
365
|
+
if (j.value) {
|
|
326
366
|
e === 0 ? W.value = t : G.value = t;
|
|
327
|
-
let n = e === 0 ? t : U.value ?? W.value, r = e === 1 ? t :
|
|
367
|
+
let n = e === 0 ? t : U.value ?? W.value, r = e === 1 ? t : jt.value;
|
|
328
368
|
if (!n || !r) return;
|
|
329
|
-
k.value = [new Date(n), new Date(r)],
|
|
369
|
+
k.value = [new Date(n), new Date(r)], Rn();
|
|
330
370
|
return;
|
|
331
371
|
}
|
|
332
372
|
if (q.value) {
|
|
333
373
|
e === 0 && (W.value = t);
|
|
334
374
|
return;
|
|
335
375
|
}
|
|
336
|
-
let n = U.value, r =
|
|
376
|
+
let n = U.value, r = jt.value;
|
|
337
377
|
!n || !r || (k.value = e === 1 ? [n, t] : [t, r]);
|
|
338
378
|
}
|
|
339
379
|
function Z(e, t) {
|
|
340
|
-
let n =
|
|
380
|
+
let n = Ln(e) ?? (() => {
|
|
341
381
|
let e = /* @__PURE__ */ new Date();
|
|
342
382
|
return e.setHours(0, 0, 0, 0), e;
|
|
343
383
|
})(), r = new Date(n);
|
|
344
|
-
t(r),
|
|
384
|
+
t(r), Bn(e, r);
|
|
345
385
|
}
|
|
346
|
-
function
|
|
347
|
-
let t =
|
|
348
|
-
if (!t) return
|
|
386
|
+
function Vn(e) {
|
|
387
|
+
let t = Ln(e);
|
|
388
|
+
if (!t) return A.value ? 12 : 0;
|
|
349
389
|
let n = t.getHours();
|
|
350
|
-
return
|
|
390
|
+
return A.value ? n % 12 || 12 : n;
|
|
351
391
|
}
|
|
352
|
-
function
|
|
353
|
-
return
|
|
392
|
+
function Hn(e) {
|
|
393
|
+
return Ln(e)?.getMinutes() ?? 0;
|
|
354
394
|
}
|
|
355
|
-
function
|
|
356
|
-
return
|
|
395
|
+
function Un(e) {
|
|
396
|
+
return Ln(e)?.getSeconds() ?? 0;
|
|
357
397
|
}
|
|
358
|
-
function
|
|
359
|
-
let t =
|
|
398
|
+
function Wn(e) {
|
|
399
|
+
let t = Ln(e);
|
|
360
400
|
return t ? t.getHours() >= 12 : !1;
|
|
361
401
|
}
|
|
362
402
|
function Q(e, t) {
|
|
363
403
|
return t ? e === 12 ? 12 : e + 12 : e === 12 ? 0 : e;
|
|
364
404
|
}
|
|
365
|
-
function
|
|
405
|
+
function Gn(e, t) {
|
|
366
406
|
let n = e >= 12, r = e % 12 || 12;
|
|
367
407
|
return t === 1 ? r >= 12 ? Q(1, n) : r === 11 ? Q(12, !n) : Q(r + 1, n) : r <= 1 ? Q(12, n) : r === 12 ? Q(11, !n) : Q(r - 1, n);
|
|
368
408
|
}
|
|
369
|
-
function
|
|
409
|
+
function Kn(e) {
|
|
370
410
|
Z(e, (e) => {
|
|
371
|
-
|
|
411
|
+
A.value ? e.setHours(Gn(e.getHours(), 1)) : e.setHours(e.getHours() >= 23 ? 0 : e.getHours() + 1);
|
|
372
412
|
});
|
|
373
413
|
}
|
|
374
|
-
function
|
|
414
|
+
function qn(e) {
|
|
375
415
|
Z(e, (e) => {
|
|
376
|
-
|
|
416
|
+
A.value ? e.setHours(Gn(e.getHours(), -1)) : e.setHours(e.getHours() <= 0 ? 23 : e.getHours() - 1);
|
|
377
417
|
});
|
|
378
418
|
}
|
|
379
|
-
function
|
|
419
|
+
function Jn(e) {
|
|
380
420
|
Z(e, (e) => {
|
|
381
421
|
e.setMinutes(e.getMinutes() >= 59 ? 0 : e.getMinutes() + 1);
|
|
382
422
|
});
|
|
383
423
|
}
|
|
384
|
-
function
|
|
424
|
+
function Yn(e) {
|
|
385
425
|
Z(e, (e) => {
|
|
386
426
|
e.setMinutes(e.getMinutes() <= 0 ? 59 : e.getMinutes() - 1);
|
|
387
427
|
});
|
|
388
428
|
}
|
|
389
|
-
function
|
|
429
|
+
function Xn(e) {
|
|
390
430
|
Z(e, (e) => {
|
|
391
431
|
e.setSeconds(e.getSeconds() >= 59 ? 0 : e.getSeconds() + 1);
|
|
392
432
|
});
|
|
393
433
|
}
|
|
394
|
-
function
|
|
434
|
+
function Zn(e) {
|
|
395
435
|
Z(e, (e) => {
|
|
396
436
|
e.setSeconds(e.getSeconds() <= 0 ? 59 : e.getSeconds() - 1);
|
|
397
437
|
});
|
|
398
438
|
}
|
|
399
|
-
function
|
|
439
|
+
function Qn(e) {
|
|
400
440
|
return (e ?? "").replace(/\D/g, "");
|
|
401
441
|
}
|
|
402
|
-
function
|
|
442
|
+
function $n(e) {
|
|
403
443
|
return Math.min(23, Math.max(0, e));
|
|
404
444
|
}
|
|
405
|
-
function
|
|
445
|
+
function er(e) {
|
|
406
446
|
return Math.min(12, Math.max(1, e));
|
|
407
447
|
}
|
|
408
|
-
function
|
|
448
|
+
function tr(e) {
|
|
409
449
|
return Math.min(59, Math.max(0, e));
|
|
410
450
|
}
|
|
411
|
-
function
|
|
412
|
-
let n =
|
|
451
|
+
function nr(e, t) {
|
|
452
|
+
let n = Qn(e).slice(0, 2);
|
|
413
453
|
if (n === "") return;
|
|
414
|
-
let r = Number.parseInt(n, 10), i =
|
|
415
|
-
Z(t, (e) => {
|
|
416
|
-
|
|
417
|
-
});
|
|
454
|
+
let r = Number.parseInt(n, 10), i = A.value ? er(r) : $n(r);
|
|
455
|
+
return Z(t, (e) => {
|
|
456
|
+
A.value ? e.setHours(Q(i, e.getHours() >= 12)) : e.setHours(i);
|
|
457
|
+
}), i;
|
|
418
458
|
}
|
|
419
|
-
function
|
|
420
|
-
let n =
|
|
459
|
+
function rr(e, t) {
|
|
460
|
+
let n = Qn(e).slice(0, 2);
|
|
421
461
|
if (n === "") return;
|
|
422
|
-
let r =
|
|
423
|
-
Z(t, (e) => {
|
|
462
|
+
let r = tr(Number.parseInt(n, 10));
|
|
463
|
+
return Z(t, (e) => {
|
|
424
464
|
e.setMinutes(r);
|
|
425
|
-
});
|
|
465
|
+
}), r;
|
|
426
466
|
}
|
|
427
|
-
function
|
|
428
|
-
let n =
|
|
467
|
+
function ir(e, t) {
|
|
468
|
+
let n = Qn(e).slice(0, 2);
|
|
429
469
|
if (n === "") return;
|
|
430
|
-
let r =
|
|
431
|
-
Z(t, (e) => {
|
|
470
|
+
let r = tr(Number.parseInt(n, 10));
|
|
471
|
+
return Z(t, (e) => {
|
|
432
472
|
e.setSeconds(r);
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
|
|
473
|
+
}), r;
|
|
474
|
+
}
|
|
475
|
+
let ar = S(null);
|
|
476
|
+
function or(e, t) {
|
|
477
|
+
let n = ar.value;
|
|
478
|
+
return n?.field === e && n.index === t ? n.text : ge(e === "hours" ? Vn(t) : e === "minutes" ? Hn(t) : Un(t));
|
|
479
|
+
}
|
|
480
|
+
function sr(e, t, n) {
|
|
481
|
+
let r;
|
|
482
|
+
r = t === "hours" ? nr(e, n) : t === "minutes" ? rr(e, n) : ir(e, n);
|
|
483
|
+
let i = Qn(e).slice(0, 2);
|
|
484
|
+
ar.value = r === void 0 || Number.parseInt(i, 10) === r ? {
|
|
485
|
+
field: t,
|
|
486
|
+
index: n,
|
|
487
|
+
text: e ?? ""
|
|
488
|
+
} : null;
|
|
489
|
+
}
|
|
490
|
+
function cr(e, t, n) {
|
|
491
|
+
let r = e.relatedTarget ?? document.activeElement;
|
|
492
|
+
if (r && e.currentTarget.contains(r)) return;
|
|
493
|
+
let i = ar.value;
|
|
494
|
+
i?.field === t && i.index === n && (ar.value = null);
|
|
495
|
+
}
|
|
496
|
+
async function lr(e, t, n) {
|
|
436
497
|
if (e.ctrlKey || e.altKey || e.metaKey || !/^\d$/.test(e.key)) return;
|
|
437
498
|
let r = e.target, i = r.selectionStart, a = r.selectionEnd;
|
|
438
|
-
if (i === null || a === null || i !== a || r.maxLength <= 0 || r.value.length < r.maxLength
|
|
499
|
+
if (i === null || a === null || i !== a || r.maxLength <= 0 || r.value.length < r.maxLength) return;
|
|
439
500
|
e.preventDefault();
|
|
440
|
-
let o =
|
|
441
|
-
|
|
442
|
-
let s = Math.min(i + 1, r.maxLength);
|
|
501
|
+
let o = i >= r.value.length;
|
|
502
|
+
sr(o ? e.key : `${r.value.slice(0, i)}${e.key}${r.value.slice(i + 1)}`, t, n);
|
|
503
|
+
let s = o ? 1 : Math.min(i + 1, r.maxLength);
|
|
443
504
|
await y(), r.setSelectionRange(s, s);
|
|
444
505
|
}
|
|
445
|
-
function
|
|
506
|
+
function ur(e, t) {
|
|
446
507
|
Z(t, (t) => {
|
|
447
508
|
let n = t.getHours() % 12 || 12;
|
|
448
509
|
t.setHours(Q(n, e));
|
|
449
510
|
});
|
|
450
511
|
}
|
|
451
|
-
function
|
|
512
|
+
function dr(e, t) {
|
|
452
513
|
let n = e.trim();
|
|
453
514
|
if (!n) return null;
|
|
454
|
-
let r =
|
|
515
|
+
let r = ve(n, g.format, Pt.value, tt);
|
|
455
516
|
if (r) return r;
|
|
456
|
-
let i =
|
|
517
|
+
let i = be(n);
|
|
457
518
|
if (i) return i;
|
|
458
519
|
if (t?.complete) {
|
|
459
|
-
let e =
|
|
520
|
+
let e = ye(n, g.format, Pt.value, tt);
|
|
460
521
|
if (e) return e;
|
|
461
522
|
}
|
|
462
|
-
return
|
|
523
|
+
return Mr(n);
|
|
463
524
|
}
|
|
464
|
-
function
|
|
525
|
+
function fr(e) {
|
|
465
526
|
if (g.readonly || g.disabled) {
|
|
466
|
-
|
|
527
|
+
Vt();
|
|
467
528
|
return;
|
|
468
529
|
}
|
|
469
530
|
let t = e ?? "";
|
|
470
|
-
|
|
531
|
+
P.value = t, N.value = t;
|
|
471
532
|
}
|
|
472
|
-
function
|
|
533
|
+
function pr(e, t) {
|
|
473
534
|
let n = e.split(" - ");
|
|
474
535
|
if (n.length !== 2) return null;
|
|
475
|
-
let r = n[0]?.trim() ?? "", i = n[1]?.trim() ?? "", a =
|
|
476
|
-
return !a || !o ? null : (
|
|
536
|
+
let r = n[0]?.trim() ?? "", i = n[1]?.trim() ?? "", a = dr(r, t), o = dr(i, t);
|
|
537
|
+
return !a || !o ? null : (gr(r) && gr(i) ? o < a : Date.UTC(o.getFullYear(), o.getMonth(), o.getDate()) < Date.UTC(a.getFullYear(), a.getMonth(), a.getDate())) ? {
|
|
477
538
|
range: [o, a],
|
|
478
539
|
startSource: i,
|
|
479
540
|
endSource: r
|
|
@@ -483,286 +544,299 @@ var Pe = {
|
|
|
483
544
|
endSource: i
|
|
484
545
|
};
|
|
485
546
|
}
|
|
486
|
-
function
|
|
547
|
+
function mr() {
|
|
487
548
|
if (g.readonly || g.disabled) return !1;
|
|
488
|
-
let e =
|
|
489
|
-
if (!e) return
|
|
549
|
+
let e = _e(P.value ?? N.value, g.range ? yn.value : g.format);
|
|
550
|
+
if (!e) return P.value = null, Lt.value = !1, Sn(k.value) && (k.value = void 0), N.value = "", !1;
|
|
490
551
|
if (g.range) {
|
|
491
|
-
let t =
|
|
552
|
+
let t = Se(e, xn.value), n = pr(e, { complete: !0 }) ?? pr(t, { complete: !0 });
|
|
492
553
|
if (n) {
|
|
493
|
-
let e =
|
|
494
|
-
return k.value = e,
|
|
554
|
+
let e = vr(n.range, n.startSource, n.endSource);
|
|
555
|
+
return k.value = e, P.value = null, Lt.value = !1, N.value = e.map((e) => ce(e, g.format, J.value)).join(" - "), !0;
|
|
495
556
|
}
|
|
496
|
-
return
|
|
557
|
+
return hr();
|
|
497
558
|
}
|
|
498
|
-
let t =
|
|
499
|
-
if (!n) return
|
|
500
|
-
let r =
|
|
501
|
-
return k.value = r,
|
|
559
|
+
let t = Se(e, bn.value), n = dr(e, { complete: !0 }) ?? ye(t, g.format, Pt.value, tt);
|
|
560
|
+
if (!n) return hr();
|
|
561
|
+
let r = _r(n, e, t);
|
|
562
|
+
return k.value = r, P.value = null, Lt.value = !1, N.value = ce(r, g.format, J.value), !0;
|
|
502
563
|
}
|
|
503
|
-
function
|
|
504
|
-
return
|
|
564
|
+
function hr() {
|
|
565
|
+
return Lt.value = P.value !== null, !1;
|
|
505
566
|
}
|
|
506
|
-
function
|
|
507
|
-
return !
|
|
567
|
+
function gr(e) {
|
|
568
|
+
return !ct.value || pe(e, g.format) ? !0 : /\dT\d/i.test(e) || /\d{1,2}:\d{2}/.test(e);
|
|
508
569
|
}
|
|
509
|
-
function
|
|
510
|
-
if (!
|
|
570
|
+
function _r(e, ...t) {
|
|
571
|
+
if (!ct.value || g.range || t.some((e) => gr(e))) return e;
|
|
511
572
|
let n = new Date(e);
|
|
512
|
-
return
|
|
573
|
+
return br(n), n;
|
|
513
574
|
}
|
|
514
|
-
function
|
|
515
|
-
if (!
|
|
575
|
+
function vr(e, t, n) {
|
|
576
|
+
if (!ct.value) return e;
|
|
516
577
|
let [r, i] = e, a = new Date(r), o = new Date(i);
|
|
517
|
-
return
|
|
578
|
+
return gr(t) || a.setHours(0, 0, 0, 0), gr(n) || o.setHours(23, 59, lt.value ? 59 : 0, 0), [a, o];
|
|
518
579
|
}
|
|
519
|
-
function
|
|
580
|
+
function yr(e) {
|
|
520
581
|
return e.getHours() === 0 && e.getMinutes() === 0 && e.getSeconds() === 0 && e.getMilliseconds() === 0;
|
|
521
582
|
}
|
|
522
|
-
function
|
|
583
|
+
function br(e) {
|
|
523
584
|
let t = /* @__PURE__ */ new Date();
|
|
524
|
-
e.setHours(t.getHours(), t.getMinutes(),
|
|
585
|
+
e.setHours(t.getHours(), t.getMinutes(), lt.value ? t.getSeconds() : 0, lt.value ? t.getMilliseconds() : 0);
|
|
525
586
|
}
|
|
526
|
-
function
|
|
587
|
+
function xr(e) {
|
|
527
588
|
let t = e.target;
|
|
528
|
-
if (!(t instanceof Element) || !
|
|
589
|
+
if (!(t instanceof Element) || !V.value) return null;
|
|
529
590
|
let n = t.closest("button, input, select, textarea, a[href], [tabindex], [contenteditable]");
|
|
530
|
-
return n &&
|
|
591
|
+
return n && V.value.contains(n) ? n : null;
|
|
531
592
|
}
|
|
532
|
-
function
|
|
593
|
+
function Sr(e) {
|
|
533
594
|
return !(e.matches(":disabled") || e.getAttribute("aria-disabled") === "true" || e.getAttribute("tabindex") === "-1");
|
|
534
595
|
}
|
|
535
|
-
function
|
|
536
|
-
if (!(e.target instanceof Node) || !
|
|
537
|
-
|
|
538
|
-
let t =
|
|
539
|
-
t && !
|
|
596
|
+
function Cr(e) {
|
|
597
|
+
if (!(e.target instanceof Node) || !V.value?.contains(e.target)) return;
|
|
598
|
+
mt = !0;
|
|
599
|
+
let t = xr(e);
|
|
600
|
+
t && !Sr(t) && e.preventDefault();
|
|
540
601
|
}
|
|
541
|
-
function
|
|
542
|
-
return
|
|
602
|
+
function wr() {
|
|
603
|
+
return V.value ? r(V.value).filter((e) => !(Number(e.getAttribute("tabindex")) < 0)) : [];
|
|
543
604
|
}
|
|
544
|
-
async function
|
|
605
|
+
async function Tr(e) {
|
|
545
606
|
if (!(g.readonly || g.disabled)) {
|
|
546
607
|
if (e.key === "Enter") {
|
|
547
|
-
e.preventDefault(),
|
|
608
|
+
e.preventDefault(), mr();
|
|
548
609
|
return;
|
|
549
|
-
} else if (e.key === "Tab")
|
|
610
|
+
} else if (e.key === "Tab") V.value?.setAttribute("inert", ""), ht = !0, M.value = !1;
|
|
550
611
|
else if (e.key === "ArrowDown") {
|
|
551
|
-
|
|
552
|
-
let [t] =
|
|
612
|
+
M.value = !0, await y();
|
|
613
|
+
let [t] = wr();
|
|
553
614
|
if (!t) return;
|
|
554
|
-
e.preventDefault(),
|
|
615
|
+
e.preventDefault(), mt = !0, t.focus();
|
|
555
616
|
}
|
|
556
617
|
}
|
|
557
618
|
}
|
|
558
|
-
function
|
|
559
|
-
|
|
619
|
+
function Er() {
|
|
620
|
+
Jr();
|
|
560
621
|
}
|
|
561
|
-
function
|
|
622
|
+
function Dr(e) {
|
|
562
623
|
if (e.key !== "Tab") return;
|
|
563
|
-
let t =
|
|
624
|
+
let t = wr();
|
|
564
625
|
if (!t.length) return;
|
|
565
626
|
let r = t[0], i = t[t.length - 1], a = document.activeElement;
|
|
566
627
|
if (e.shiftKey) {
|
|
567
628
|
if (a !== r) return;
|
|
568
|
-
e.preventDefault(),
|
|
629
|
+
e.preventDefault(), mt = !1, Jr();
|
|
569
630
|
return;
|
|
570
631
|
}
|
|
571
632
|
if (a !== i) return;
|
|
572
|
-
e.preventDefault(),
|
|
573
|
-
let o =
|
|
574
|
-
s ? s.focus() :
|
|
633
|
+
e.preventDefault(), ht = !1, M.value = !1;
|
|
634
|
+
let o = B.value?.$el, s = o ? n(o, V.value) : void 0;
|
|
635
|
+
s ? s.focus() : Jr();
|
|
575
636
|
}
|
|
576
|
-
async function
|
|
577
|
-
if (
|
|
578
|
-
|
|
637
|
+
async function Or(e) {
|
|
638
|
+
if (mr(), mt) {
|
|
639
|
+
mt = !1;
|
|
579
640
|
return;
|
|
580
641
|
}
|
|
581
642
|
let t = e?.relatedTarget;
|
|
582
|
-
if (t instanceof Node &&
|
|
643
|
+
if (t instanceof Node && V.value?.contains(t)) return;
|
|
583
644
|
await y();
|
|
584
|
-
let n =
|
|
585
|
-
n !== r && (r instanceof Node &&
|
|
645
|
+
let n = Pr(), r = document.activeElement;
|
|
646
|
+
n !== r && (r instanceof Node && V.value?.contains(r) || (R = !1, M.value = !1, dt.value = !1));
|
|
586
647
|
}
|
|
587
|
-
function
|
|
648
|
+
function kr() {
|
|
588
649
|
if (!(g.readonly || g.disabled)) {
|
|
589
|
-
if (
|
|
590
|
-
|
|
650
|
+
if (dt.value = !0, R) {
|
|
651
|
+
R = !1;
|
|
591
652
|
return;
|
|
592
653
|
}
|
|
593
|
-
|
|
654
|
+
M.value ||= !0;
|
|
594
655
|
}
|
|
595
656
|
}
|
|
596
|
-
function
|
|
597
|
-
g.readonly || g.disabled || (
|
|
657
|
+
function Ar() {
|
|
658
|
+
g.readonly || g.disabled || (R = !1, M.value = !0);
|
|
598
659
|
}
|
|
599
|
-
function
|
|
600
|
-
e ||
|
|
660
|
+
function jr(e) {
|
|
661
|
+
e || gt(), M.value = e ?? !1;
|
|
601
662
|
}
|
|
602
|
-
function
|
|
603
|
-
let t =
|
|
663
|
+
function Mr(e) {
|
|
664
|
+
let t = be(e);
|
|
604
665
|
if (t) return t;
|
|
605
666
|
let n = /[A-Za-z]/.test(e), r = e.match(/^(\d{4})[-/](\d{1,2})[-/](\d{1,2})(?:[ T]\d{1,2}:\d{2}(?::\d{2})?)?$/);
|
|
606
667
|
if (!n && !r) return null;
|
|
607
668
|
if (r) {
|
|
608
669
|
let [, e, t, n] = r.map(Number);
|
|
609
|
-
if (n >
|
|
670
|
+
if (n > de(t - 1, e)) return null;
|
|
610
671
|
}
|
|
611
672
|
let i = new Date(e);
|
|
612
|
-
|
|
673
|
+
if (Number.isNaN(i.getTime())) return null;
|
|
674
|
+
if (!r) {
|
|
675
|
+
let t = e.replace(/\d{1,2}:\d{2}(?::\d{2})?/g, " ").match(/\b\d{1,2}\b/g);
|
|
676
|
+
if (t?.length === 1 && Number(t[0]) !== i.getDate()) return null;
|
|
677
|
+
}
|
|
678
|
+
return i;
|
|
613
679
|
}
|
|
614
|
-
function
|
|
680
|
+
function Nr(e) {
|
|
615
681
|
return e instanceof HTMLInputElement ? e : typeof e == "object" && e && "value" in e && e.value instanceof HTMLInputElement ? e.value : null;
|
|
616
682
|
}
|
|
617
|
-
function
|
|
618
|
-
if (
|
|
619
|
-
let e =
|
|
620
|
-
if (e) return
|
|
621
|
-
let t =
|
|
622
|
-
return t ? (
|
|
683
|
+
function Pr() {
|
|
684
|
+
if (z) return z;
|
|
685
|
+
let e = Nr(B.value?.inputRef);
|
|
686
|
+
if (e) return z = e, e;
|
|
687
|
+
let t = wt(B.value?.fieldRef)?.querySelector(".q-text-field__input") ?? null;
|
|
688
|
+
return t ? (z = t, t) : null;
|
|
623
689
|
}
|
|
624
|
-
function
|
|
690
|
+
function Fr(e) {
|
|
625
691
|
return e.isSelected || e.isRangeStart || e.isRangeEnd ? "bold" : e.isInRange ? "tonal" : "ghost";
|
|
626
692
|
}
|
|
627
|
-
function
|
|
628
|
-
|
|
693
|
+
function Ir(e) {
|
|
694
|
+
V.value?.style.setProperty("--q-date-view-height", `${Math.max(0, e)}px`);
|
|
629
695
|
}
|
|
630
|
-
async function
|
|
631
|
-
if (!
|
|
632
|
-
|
|
696
|
+
async function Lr() {
|
|
697
|
+
if (!M.value || j.value) {
|
|
698
|
+
Ir(0);
|
|
633
699
|
return;
|
|
634
700
|
}
|
|
635
|
-
|
|
701
|
+
F.value === "date" && (await y(), Ir(_t.value?.getBoundingClientRect().height ?? 0));
|
|
636
702
|
}
|
|
637
703
|
function $() {
|
|
638
|
-
|
|
704
|
+
pt?.disconnect(), pt = null;
|
|
639
705
|
}
|
|
640
|
-
async function
|
|
641
|
-
!
|
|
642
|
-
|
|
643
|
-
}),
|
|
706
|
+
async function Rr() {
|
|
707
|
+
!M.value || j.value || F.value !== "date" || (await y(), _t.value && ($(), pt = new MutationObserver(() => {
|
|
708
|
+
Lr();
|
|
709
|
+
}), pt.observe(_t.value, {
|
|
644
710
|
childList: !0,
|
|
645
711
|
subtree: !0,
|
|
646
712
|
attributes: !0,
|
|
647
713
|
characterData: !0
|
|
648
|
-
}),
|
|
714
|
+
}), Lr()));
|
|
649
715
|
}
|
|
650
|
-
function
|
|
651
|
-
|
|
716
|
+
function zr() {
|
|
717
|
+
F.value = "time", $();
|
|
652
718
|
}
|
|
653
|
-
async function
|
|
654
|
-
|
|
719
|
+
async function Br() {
|
|
720
|
+
At(), zr(), await y(), Dt(xt.value);
|
|
655
721
|
}
|
|
656
|
-
function
|
|
657
|
-
|
|
722
|
+
function Vr() {
|
|
723
|
+
F.value = "date", Rr();
|
|
658
724
|
}
|
|
659
|
-
async function
|
|
660
|
-
|
|
725
|
+
async function Hr(e) {
|
|
726
|
+
V.value?.focus(), Vr(), await y(), Dt(e === "year" ? yt.value : e === "month" ? vt.value : e === "time" ? bt.value : null);
|
|
661
727
|
}
|
|
662
|
-
function
|
|
663
|
-
let e =
|
|
664
|
-
e !== "date" &&
|
|
728
|
+
function Ur() {
|
|
729
|
+
let e = F.value;
|
|
730
|
+
e !== "date" && Hr(e);
|
|
665
731
|
}
|
|
666
|
-
async function
|
|
667
|
-
$(),
|
|
668
|
-
let e =
|
|
732
|
+
async function Wr() {
|
|
733
|
+
At(), $(), F.value = "month", await y();
|
|
734
|
+
let e = St.get(I.value);
|
|
669
735
|
e?.scrollIntoView({ block: "center" }), e?.focus();
|
|
670
736
|
}
|
|
671
|
-
async function
|
|
672
|
-
$(),
|
|
673
|
-
let e =
|
|
737
|
+
async function Gr() {
|
|
738
|
+
At(), $(), ft.value = L.value, F.value = "year", await y();
|
|
739
|
+
let e = Ct.get(ft.value);
|
|
674
740
|
e?.scrollIntoView({ block: "center" }), e?.focus();
|
|
675
741
|
}
|
|
676
|
-
async function
|
|
742
|
+
async function Kr(e) {
|
|
677
743
|
if (e.key !== "Escape") return;
|
|
678
|
-
if (
|
|
679
|
-
e.preventDefault(),
|
|
744
|
+
if (R = !0, F.value === "date" || j.value) {
|
|
745
|
+
e.preventDefault(), Ot() && Jr(), M.value = !1, await y(), $r();
|
|
680
746
|
return;
|
|
681
747
|
}
|
|
682
748
|
e.preventDefault();
|
|
683
|
-
let t =
|
|
684
|
-
await
|
|
749
|
+
let t = F.value;
|
|
750
|
+
await Hr(t);
|
|
685
751
|
}
|
|
686
|
-
function
|
|
687
|
-
|
|
752
|
+
function qr(e) {
|
|
753
|
+
Kr(e);
|
|
688
754
|
}
|
|
689
|
-
function
|
|
690
|
-
|
|
755
|
+
function Jr() {
|
|
756
|
+
Pr()?.focus();
|
|
691
757
|
}
|
|
692
|
-
function
|
|
758
|
+
function Yr(e) {
|
|
693
759
|
return !e || e === document.body || e === document.documentElement;
|
|
694
760
|
}
|
|
695
|
-
function
|
|
761
|
+
function Xr(e, t) {
|
|
696
762
|
return e.closest(".q-date-time-picker__menu") || t.closest(".q-date-time-picker")?.contains(e) || !(e instanceof HTMLElement) ? !1 : e.tabIndex >= 0 || e.matches("input, select, textarea, button, a[href], [tabindex]:not([tabindex=\"-1\"])");
|
|
697
763
|
}
|
|
698
|
-
function
|
|
699
|
-
let t =
|
|
700
|
-
return t ? e === t || !e || !e.isConnected ||
|
|
764
|
+
function Zr(e) {
|
|
765
|
+
let t = Pr();
|
|
766
|
+
return t ? e === t || !e || !e.isConnected || Yr(e) || V.value?.contains(e) ? !0 : !Xr(e, t) : !1;
|
|
701
767
|
}
|
|
702
|
-
function
|
|
703
|
-
if (
|
|
704
|
-
let e =
|
|
705
|
-
!e || !
|
|
768
|
+
function Qr() {
|
|
769
|
+
if (ht) return;
|
|
770
|
+
let e = Pr();
|
|
771
|
+
!e || !Zr(document.activeElement) || (R = !0, e.focus());
|
|
706
772
|
}
|
|
707
|
-
function
|
|
773
|
+
function $r() {
|
|
708
774
|
y().then(() => {
|
|
709
775
|
requestAnimationFrame(() => {
|
|
710
776
|
requestAnimationFrame(() => {
|
|
711
|
-
|
|
777
|
+
Qr();
|
|
712
778
|
});
|
|
713
779
|
});
|
|
714
780
|
});
|
|
715
781
|
}
|
|
716
|
-
function
|
|
717
|
-
|
|
718
|
-
let e =
|
|
719
|
-
|
|
782
|
+
function ei() {
|
|
783
|
+
gt();
|
|
784
|
+
let e = ht;
|
|
785
|
+
ht = !1, !e && (R = !0, $r());
|
|
720
786
|
}
|
|
721
|
-
return
|
|
787
|
+
return T(k, () => {
|
|
722
788
|
U.value && (X(U.value.getMonth()), Y(U.value.getFullYear()));
|
|
723
|
-
}),
|
|
724
|
-
if (e && t === !1 ?
|
|
725
|
-
$(),
|
|
789
|
+
}), T(M, (e, t) => {
|
|
790
|
+
if (e && t === !1 ? Te("open") : !e && t === !0 && Te("close"), e || (Qt.value = null), j.value) {
|
|
791
|
+
$(), Ir(0), e ? (document.addEventListener("keydown", qr, { capture: !0 }), zr()) : (t && (zn(), ei()), document.removeEventListener("keydown", qr, { capture: !0 }));
|
|
726
792
|
return;
|
|
727
793
|
}
|
|
728
|
-
|
|
729
|
-
}),
|
|
730
|
-
e && $(),
|
|
731
|
-
}, { immediate: !0 }),
|
|
732
|
-
$(), document.removeEventListener("keydown",
|
|
794
|
+
Rn(), e ? (document.addEventListener("keydown", qr, { capture: !0 }), In(), Rr()) : (t && ei(), document.removeEventListener("keydown", qr, { capture: !0 }), $(), Ir(0));
|
|
795
|
+
}), T(j, (e) => {
|
|
796
|
+
e && $(), M.value = !1, e && Ir(0), e ? zr() : Vr();
|
|
797
|
+
}, { immediate: !0 }), De(() => {
|
|
798
|
+
$(), document.removeEventListener("keydown", qr, { capture: !0 });
|
|
733
799
|
}), (e, n) => (x(), p(l, null, [h(C(o), v({
|
|
734
|
-
id: C(
|
|
800
|
+
id: C(nt),
|
|
735
801
|
ref: "field",
|
|
736
|
-
"model-value":
|
|
802
|
+
"model-value": N.value,
|
|
737
803
|
class: ["q-date-time-picker", g.class],
|
|
738
|
-
clearable:
|
|
804
|
+
clearable: Cn.value,
|
|
739
805
|
label: g.label,
|
|
740
806
|
"label-position": g.labelPosition,
|
|
741
807
|
readonly: g.readonly,
|
|
742
808
|
disabled: g.disabled,
|
|
743
|
-
placeholder:
|
|
809
|
+
placeholder: st.value,
|
|
744
810
|
required: g.required,
|
|
745
811
|
size: g.size,
|
|
746
|
-
invalid: C(
|
|
812
|
+
invalid: C(zt),
|
|
747
813
|
help: g.help,
|
|
748
814
|
"help-display": g.helpDisplay,
|
|
749
815
|
icons: g.icons,
|
|
750
|
-
texts: g.texts
|
|
816
|
+
texts: g.texts,
|
|
817
|
+
role: at.value ? "combobox" : void 0,
|
|
818
|
+
"aria-haspopup": at.value ? "dialog" : void 0,
|
|
819
|
+
"aria-expanded": at.value ? M.value : void 0,
|
|
820
|
+
"aria-controls": at.value && M.value ? it.value : void 0
|
|
751
821
|
}, e.$attrs, {
|
|
752
|
-
onBlur:
|
|
753
|
-
"onClick:clear":
|
|
754
|
-
onDrop:
|
|
755
|
-
onFocusin:
|
|
756
|
-
onKeydown:
|
|
757
|
-
"onUpdate:modelValue":
|
|
758
|
-
}),
|
|
759
|
-
prepend:
|
|
760
|
-
errors:
|
|
822
|
+
onBlur: Or,
|
|
823
|
+
"onClick:clear": wn,
|
|
824
|
+
onDrop: Er,
|
|
825
|
+
onFocusin: kr,
|
|
826
|
+
onKeydown: Tr,
|
|
827
|
+
"onUpdate:modelValue": fr
|
|
828
|
+
}), Ce({
|
|
829
|
+
prepend: E(() => [h(C(t), v({ class: "q-date-time-picker__input-icon" }, vn.value), null, 16)]),
|
|
830
|
+
errors: E(() => [C(Bt)() ? ke(e.$slots, "errors", { key: 0 }) : Rt.value ? (x(), p(l, { key: 1 }, [we(Ae(Rt.value), 1)], 64)) : f("", !0)]),
|
|
761
831
|
_: 2
|
|
762
|
-
}, [e.$slots.
|
|
763
|
-
name: "
|
|
764
|
-
fn:
|
|
832
|
+
}, [e.$slots.warnings ? {
|
|
833
|
+
name: "warnings",
|
|
834
|
+
fn: E(() => [ke(e.$slots, "warnings")]),
|
|
765
835
|
key: "0"
|
|
836
|
+
} : void 0, e.$slots.extras ? {
|
|
837
|
+
name: "extras",
|
|
838
|
+
fn: E(() => [ke(e.$slots, "extras")]),
|
|
839
|
+
key: "1"
|
|
766
840
|
} : void 0]), 1040, [
|
|
767
841
|
"id",
|
|
768
842
|
"model-value",
|
|
@@ -779,11 +853,15 @@ var Pe = {
|
|
|
779
853
|
"help",
|
|
780
854
|
"help-display",
|
|
781
855
|
"icons",
|
|
782
|
-
"texts"
|
|
783
|
-
|
|
856
|
+
"texts",
|
|
857
|
+
"role",
|
|
858
|
+
"aria-haspopup",
|
|
859
|
+
"aria-expanded",
|
|
860
|
+
"aria-controls"
|
|
861
|
+
]), at.value ? (x(), d(C(i), {
|
|
784
862
|
key: 0,
|
|
785
|
-
"model-value":
|
|
786
|
-
anchor:
|
|
863
|
+
"model-value": M.value,
|
|
864
|
+
anchor: B.value?.fieldRef,
|
|
787
865
|
inline: g.inline,
|
|
788
866
|
offset: 8,
|
|
789
867
|
placement: "bottom",
|
|
@@ -791,388 +869,417 @@ var Pe = {
|
|
|
791
869
|
arrow: "",
|
|
792
870
|
"non-modal": "",
|
|
793
871
|
spy: "",
|
|
794
|
-
"onUpdate:modelValue":
|
|
872
|
+
"onUpdate:modelValue": jr
|
|
795
873
|
}, {
|
|
796
|
-
default:
|
|
874
|
+
default: E(() => [m("div", {
|
|
875
|
+
id: it.value,
|
|
797
876
|
ref: "menu",
|
|
798
|
-
|
|
877
|
+
role: "dialog",
|
|
878
|
+
class: Ee(["q-date-time-picker__menu", { "q-date-time-picker__menu--time-only": j.value }]),
|
|
879
|
+
"aria-label": Jt(),
|
|
880
|
+
"aria-labelledby": Yt.value,
|
|
799
881
|
tabindex: "-1",
|
|
800
|
-
onPointerdownCapture:
|
|
801
|
-
onKeydown:
|
|
802
|
-
}, [
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
onClick: Dr
|
|
831
|
-
}, null, 8, ["label", "title"]),
|
|
832
|
-
h(C(a), {
|
|
833
|
-
variant: "ghost",
|
|
834
|
-
disabled: !nn.value,
|
|
835
|
-
title: g.texts.nextMonth,
|
|
836
|
-
onClick: bn
|
|
837
|
-
}, {
|
|
838
|
-
default: T(() => [h(C(t), b(_(g.icons.forward)), null, 16)]),
|
|
839
|
-
_: 1
|
|
840
|
-
}, 8, ["disabled", "title"])
|
|
841
|
-
]),
|
|
842
|
-
f(" Days Grid: one Tab stop, and the arrow keys move through the days "),
|
|
843
|
-
m("div", {
|
|
844
|
-
role: "grid",
|
|
845
|
-
class: "q-date-time-picker__grid",
|
|
846
|
-
"aria-label": Lt.value
|
|
847
|
-
}, [
|
|
848
|
-
m("div", Le, [(x(!0), p(l, null, De(Pt.value, (e, t) => (x(), p("div", {
|
|
849
|
-
key: e,
|
|
850
|
-
role: "columnheader",
|
|
851
|
-
class: "q-date-time-picker__weekday",
|
|
852
|
-
"aria-label": It(t)
|
|
853
|
-
}, ke(e), 9, Re))), 128))]),
|
|
854
|
-
f(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions -- Hover and touch preview of a range; the day buttons inside take the keyboard "),
|
|
855
|
-
m("div", {
|
|
856
|
-
class: "q-date-time-picker__days",
|
|
857
|
-
onMouseleave: pn,
|
|
858
|
-
onFocusout: mn,
|
|
859
|
-
onKeydown: Ht,
|
|
860
|
-
onTouchstartPassive: hn,
|
|
861
|
-
onTouchmovePassive: hn
|
|
862
|
-
}, [(x(!0), p(l, null, De(Ft.value, (e, t) => (x(), p("div", {
|
|
863
|
-
key: t,
|
|
864
|
-
role: "row",
|
|
865
|
-
class: "q-date-time-picker__week"
|
|
866
|
-
}, [(x(!0), p(l, null, De(e, ({ day: e, index: t }) => (x(), d(C(a), {
|
|
867
|
-
key: t,
|
|
868
|
-
role: "gridcell",
|
|
869
|
-
"data-day-index": t,
|
|
870
|
-
class: Te(["q-date-time-picker__day", {
|
|
871
|
-
"q-date-time-picker__day--other-month": !e.isCurrentMonth,
|
|
872
|
-
"q-date-time-picker__day--today": e.isToday,
|
|
873
|
-
"q-date-time-picker__day--selected": e.isSelected,
|
|
874
|
-
"q-date-time-picker__day--in-range": e.isInRange,
|
|
875
|
-
"q-date-time-picker__day--range-start": e.isRangeStart,
|
|
876
|
-
"q-date-time-picker__day--range-end": e.isRangeEnd
|
|
877
|
-
}]),
|
|
878
|
-
label: e.date.getDate().toString(),
|
|
879
|
-
"aria-label": Rt(e.date),
|
|
880
|
-
"aria-selected": e.isSelected || e.isInRange || e.isRangeEnd,
|
|
881
|
-
"aria-current": e.isToday ? "date" : void 0,
|
|
882
|
-
tabindex: t === Bt.value ? 0 : -1,
|
|
883
|
-
variant: _r(e),
|
|
884
|
-
disabled: e.isDisabled,
|
|
885
|
-
onMouseenter: () => fn(e.date),
|
|
886
|
-
onFocus: () => fn(e.date),
|
|
887
|
-
onClick: () => gn(e.date)
|
|
888
|
-
}, null, 8, [
|
|
889
|
-
"data-day-index",
|
|
890
|
-
"class",
|
|
891
|
-
"label",
|
|
892
|
-
"aria-label",
|
|
893
|
-
"aria-selected",
|
|
894
|
-
"aria-current",
|
|
895
|
-
"tabindex",
|
|
896
|
-
"variant",
|
|
897
|
-
"disabled",
|
|
898
|
-
"onMouseenter",
|
|
899
|
-
"onFocus",
|
|
900
|
-
"onClick"
|
|
901
|
-
]))), 128))]))), 128))], 32)
|
|
902
|
-
], 8, Ie)
|
|
903
|
-
], 512)) : I.value === "time" ? (x(), p(l, { key: 1 }, [f(" Time View "), m("div", ze, [(x(!0), p(l, null, De(g.range ? 2 : 1, (e) => (x(), p("div", {
|
|
904
|
-
key: e,
|
|
905
|
-
class: "q-date-time-picker__time-group",
|
|
906
|
-
role: g.range ? "group" : void 0,
|
|
907
|
-
"aria-label": g.range ? e === 1 ? g.texts.startTime : g.texts.endTime : void 0
|
|
908
|
-
}, [
|
|
909
|
-
j.value ? (x(), p("div", Ve, [h(C(ie), {
|
|
910
|
-
"model-value": An(e - 1),
|
|
911
|
-
"show-state-labels": "",
|
|
912
|
-
size: "small",
|
|
913
|
-
"aria-label": g.texts.pm,
|
|
914
|
-
"false-label": g.texts.am,
|
|
915
|
-
"true-label": g.texts.pm,
|
|
916
|
-
"onUpdate:modelValue": (t) => Kn(t ?? !1, e - 1)
|
|
917
|
-
}, null, 8, [
|
|
918
|
-
"model-value",
|
|
919
|
-
"aria-label",
|
|
920
|
-
"false-label",
|
|
921
|
-
"true-label",
|
|
922
|
-
"onUpdate:modelValue"
|
|
923
|
-
])])) : f("v-if", !0),
|
|
924
|
-
f(" Time Inputs "),
|
|
925
|
-
m("div", He, [
|
|
926
|
-
m("div", Ue, [
|
|
927
|
-
h(C(a), {
|
|
928
|
-
variant: "ghost",
|
|
929
|
-
title: g.texts.increaseHour,
|
|
930
|
-
"aria-label": g.texts.increaseHour,
|
|
931
|
-
onClick: (t) => Mn(e - 1)
|
|
932
|
-
}, {
|
|
933
|
-
default: T(() => [h(C(t), v({ ref_for: !0 }, g.icons.up), null, 16)]),
|
|
934
|
-
_: 1
|
|
935
|
-
}, 8, [
|
|
936
|
-
"title",
|
|
937
|
-
"aria-label",
|
|
938
|
-
"onClick"
|
|
939
|
-
]),
|
|
940
|
-
h(C(o), {
|
|
941
|
-
class: "q-date-time-picker__time-number",
|
|
942
|
-
size: "small",
|
|
943
|
-
inputmode: "numeric",
|
|
944
|
-
icons: g.icons,
|
|
945
|
-
texts: g.texts,
|
|
946
|
-
"max-length": 2,
|
|
947
|
-
"aria-label": g.texts.hours,
|
|
948
|
-
"model-value": C(ge)(Dn(e - 1)),
|
|
949
|
-
onKeydown: (t) => Gn(t, "hours", e - 1),
|
|
950
|
-
"onUpdate:modelValue": (t) => Hn(t, e - 1)
|
|
951
|
-
}, null, 8, [
|
|
952
|
-
"icons",
|
|
953
|
-
"texts",
|
|
954
|
-
"aria-label",
|
|
955
|
-
"model-value",
|
|
956
|
-
"onKeydown",
|
|
957
|
-
"onUpdate:modelValue"
|
|
958
|
-
]),
|
|
959
|
-
h(C(a), {
|
|
960
|
-
variant: "ghost",
|
|
961
|
-
title: g.texts.decreaseHour,
|
|
962
|
-
"aria-label": g.texts.decreaseHour,
|
|
963
|
-
onClick: (t) => Nn(e - 1)
|
|
964
|
-
}, {
|
|
965
|
-
default: T(() => [h(C(t), v({ ref_for: !0 }, g.icons.down), null, 16)]),
|
|
966
|
-
_: 1
|
|
967
|
-
}, 8, [
|
|
968
|
-
"title",
|
|
969
|
-
"aria-label",
|
|
970
|
-
"onClick"
|
|
971
|
-
])
|
|
972
|
-
]),
|
|
973
|
-
n[1] ||= m("div", { class: "q-date-time-picker__time-separator" }, ":", -1),
|
|
974
|
-
m("div", We, [
|
|
975
|
-
h(C(a), {
|
|
976
|
-
variant: "ghost",
|
|
977
|
-
title: g.texts.increaseMinute,
|
|
978
|
-
"aria-label": g.texts.increaseMinute,
|
|
979
|
-
onClick: (t) => Pn(e - 1)
|
|
980
|
-
}, {
|
|
981
|
-
default: T(() => [h(C(t), v({ ref_for: !0 }, g.icons.up), null, 16)]),
|
|
982
|
-
_: 1
|
|
983
|
-
}, 8, [
|
|
984
|
-
"title",
|
|
985
|
-
"aria-label",
|
|
986
|
-
"onClick"
|
|
987
|
-
]),
|
|
988
|
-
h(C(o), {
|
|
989
|
-
class: "q-date-time-picker__time-number",
|
|
990
|
-
size: "small",
|
|
991
|
-
inputmode: "numeric",
|
|
992
|
-
icons: g.icons,
|
|
993
|
-
texts: g.texts,
|
|
994
|
-
"max-length": 2,
|
|
995
|
-
"aria-label": g.texts.minutes,
|
|
996
|
-
"model-value": C(ge)(On(e - 1)),
|
|
997
|
-
onKeydown: (t) => Gn(t, "minutes", e - 1),
|
|
998
|
-
"onUpdate:modelValue": (t) => Un(t, e - 1)
|
|
999
|
-
}, null, 8, [
|
|
1000
|
-
"icons",
|
|
1001
|
-
"texts",
|
|
1002
|
-
"aria-label",
|
|
1003
|
-
"model-value",
|
|
1004
|
-
"onKeydown",
|
|
1005
|
-
"onUpdate:modelValue"
|
|
1006
|
-
]),
|
|
1007
|
-
h(C(a), {
|
|
1008
|
-
variant: "ghost",
|
|
1009
|
-
title: g.texts.decreaseMinute,
|
|
1010
|
-
"aria-label": g.texts.decreaseMinute,
|
|
1011
|
-
onClick: (t) => Fn(e - 1)
|
|
1012
|
-
}, {
|
|
1013
|
-
default: T(() => [h(C(t), v({ ref_for: !0 }, g.icons.down), null, 16)]),
|
|
1014
|
-
_: 1
|
|
1015
|
-
}, 8, [
|
|
1016
|
-
"title",
|
|
1017
|
-
"aria-label",
|
|
1018
|
-
"onClick"
|
|
1019
|
-
])
|
|
1020
|
-
]),
|
|
1021
|
-
nt.value ? (x(), p(l, { key: 0 }, [n[0] ||= m("div", { class: "q-date-time-picker__time-separator" }, ":", -1), m("div", Ge, [
|
|
1022
|
-
h(C(a), {
|
|
1023
|
-
variant: "ghost",
|
|
1024
|
-
title: g.texts.increaseSecond,
|
|
1025
|
-
"aria-label": g.texts.increaseSecond,
|
|
1026
|
-
onClick: (t) => In(e - 1)
|
|
1027
|
-
}, {
|
|
1028
|
-
default: T(() => [h(C(t), v({ ref_for: !0 }, g.icons.up), null, 16)]),
|
|
1029
|
-
_: 1
|
|
1030
|
-
}, 8, [
|
|
1031
|
-
"title",
|
|
1032
|
-
"aria-label",
|
|
1033
|
-
"onClick"
|
|
1034
|
-
]),
|
|
1035
|
-
h(C(o), {
|
|
1036
|
-
class: "q-date-time-picker__time-number",
|
|
1037
|
-
size: "small",
|
|
1038
|
-
inputmode: "numeric",
|
|
1039
|
-
icons: g.icons,
|
|
1040
|
-
texts: g.texts,
|
|
1041
|
-
"max-length": 2,
|
|
1042
|
-
"aria-label": g.texts.seconds,
|
|
1043
|
-
"model-value": C(ge)(kn(e - 1)),
|
|
1044
|
-
onKeydown: (t) => Gn(t, "seconds", e - 1),
|
|
1045
|
-
"onUpdate:modelValue": (t) => Wn(t, e - 1)
|
|
1046
|
-
}, null, 8, [
|
|
1047
|
-
"icons",
|
|
1048
|
-
"texts",
|
|
1049
|
-
"aria-label",
|
|
1050
|
-
"model-value",
|
|
1051
|
-
"onKeydown",
|
|
1052
|
-
"onUpdate:modelValue"
|
|
1053
|
-
]),
|
|
1054
|
-
h(C(a), {
|
|
1055
|
-
variant: "ghost",
|
|
1056
|
-
title: g.texts.decreaseSecond,
|
|
1057
|
-
"aria-label": g.texts.decreaseSecond,
|
|
1058
|
-
onClick: (t) => Ln(e - 1)
|
|
1059
|
-
}, {
|
|
1060
|
-
default: T(() => [h(C(t), v({ ref_for: !0 }, g.icons.down), null, 16)]),
|
|
1061
|
-
_: 1
|
|
1062
|
-
}, 8, [
|
|
1063
|
-
"title",
|
|
1064
|
-
"aria-label",
|
|
1065
|
-
"onClick"
|
|
1066
|
-
])
|
|
1067
|
-
])], 64)) : f("v-if", !0)
|
|
1068
|
-
])
|
|
1069
|
-
], 8, Be))), 128))])], 2112)) : I.value === "month" ? (x(), p(l, { key: 2 }, [f(" Month View "), m("div", Ke, [(x(!0), p(l, null, De(Wt.value, (e, t) => (x(), d(C(a), {
|
|
1070
|
-
key: t,
|
|
1071
|
-
ref_for: !0,
|
|
1072
|
-
ref: (e) => vt(e, t),
|
|
1073
|
-
"data-testid": "q-date-time-picker-month-option",
|
|
1074
|
-
"data-month-index": t,
|
|
1075
|
-
"aria-disabled": L.value === t || void 0,
|
|
1076
|
-
label: e,
|
|
1077
|
-
title: Gt(t),
|
|
882
|
+
onPointerdownCapture: Cr,
|
|
883
|
+
onKeydown: Dr
|
|
884
|
+
}, [F.value === "date" ? (x(), p("div", Ie, [m("div", Le, [
|
|
885
|
+
h(C(a), {
|
|
886
|
+
variant: "ghost",
|
|
887
|
+
disabled: kt("previousMonth", hn.value),
|
|
888
|
+
"aria-disabled": !hn.value || void 0,
|
|
889
|
+
title: g.texts.previousMonth,
|
|
890
|
+
onFocus: n[0] ||= (e) => H.value = "previousMonth",
|
|
891
|
+
onBlur: n[1] ||= (e) => H.value = null,
|
|
892
|
+
onClick: Nn
|
|
893
|
+
}, {
|
|
894
|
+
default: E(() => [h(C(t), b(_(g.icons.back)), null, 16)]),
|
|
895
|
+
_: 1
|
|
896
|
+
}, 8, [
|
|
897
|
+
"disabled",
|
|
898
|
+
"aria-disabled",
|
|
899
|
+
"title"
|
|
900
|
+
]),
|
|
901
|
+
h(C(a), {
|
|
902
|
+
ref: "monthHeader",
|
|
903
|
+
"data-testid": "q-date-time-picker-month-header",
|
|
904
|
+
variant: "ghost",
|
|
905
|
+
label: an(I.value, 3),
|
|
906
|
+
title: g.texts.pickMonth,
|
|
907
|
+
onClick: Wr
|
|
908
|
+
}, null, 8, ["label", "title"]),
|
|
909
|
+
h(C(a), {
|
|
910
|
+
ref: "yearHeader",
|
|
911
|
+
"data-testid": "q-date-time-picker-year-header",
|
|
1078
912
|
variant: "ghost",
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
913
|
+
label: L.value.toString(),
|
|
914
|
+
title: g.texts.pickYear,
|
|
915
|
+
onClick: Gr
|
|
916
|
+
}, null, 8, ["label", "title"]),
|
|
917
|
+
h(C(a), {
|
|
918
|
+
variant: "ghost",
|
|
919
|
+
disabled: kt("nextMonth", gn.value),
|
|
920
|
+
"aria-disabled": !gn.value || void 0,
|
|
921
|
+
title: g.texts.nextMonth,
|
|
922
|
+
onFocus: n[2] ||= (e) => H.value = "nextMonth",
|
|
923
|
+
onBlur: n[3] ||= (e) => H.value = null,
|
|
924
|
+
onClick: Pn
|
|
925
|
+
}, {
|
|
926
|
+
default: E(() => [h(C(t), b(_(g.icons.forward)), null, 16)]),
|
|
927
|
+
_: 1
|
|
928
|
+
}, 8, [
|
|
929
|
+
"disabled",
|
|
1082
930
|
"aria-disabled",
|
|
1083
|
-
"
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
931
|
+
"title"
|
|
932
|
+
])
|
|
933
|
+
]), m("div", {
|
|
934
|
+
role: "grid",
|
|
935
|
+
class: "q-date-time-picker__grid",
|
|
936
|
+
"aria-label": Xt.value,
|
|
937
|
+
"aria-multiselectable": g.range || void 0
|
|
938
|
+
}, [m("div", ze, [(x(!0), p(l, null, Oe(Wt.value, (e, t) => (x(), p("div", {
|
|
939
|
+
key: e,
|
|
940
|
+
role: "columnheader",
|
|
941
|
+
class: "q-date-time-picker__weekday",
|
|
942
|
+
"aria-label": Kt(t)
|
|
943
|
+
}, Ae(e), 9, Be))), 128))]), m("div", {
|
|
944
|
+
class: "q-date-time-picker__days",
|
|
945
|
+
onMouseleave: En,
|
|
946
|
+
onFocusout: Dn,
|
|
947
|
+
onKeydown: tn,
|
|
948
|
+
onTouchstartPassive: On,
|
|
949
|
+
onTouchmovePassive: On
|
|
950
|
+
}, [(x(!0), p(l, null, Oe(Gt.value, (e, t) => (x(), p("div", {
|
|
951
|
+
key: t,
|
|
952
|
+
role: "row",
|
|
953
|
+
class: "q-date-time-picker__week"
|
|
954
|
+
}, [(x(!0), p(l, null, Oe(e, ({ day: e, index: t }) => (x(), d(C(a), {
|
|
955
|
+
key: t,
|
|
956
|
+
role: "gridcell",
|
|
957
|
+
"data-day-index": t,
|
|
958
|
+
class: Ee(["q-date-time-picker__day", {
|
|
959
|
+
"q-date-time-picker__day--other-month": !e.isCurrentMonth,
|
|
960
|
+
"q-date-time-picker__day--today": e.isToday,
|
|
961
|
+
"q-date-time-picker__day--selected": e.isSelected,
|
|
962
|
+
"q-date-time-picker__day--in-range": e.isInRange,
|
|
963
|
+
"q-date-time-picker__day--range-start": e.isRangeStart,
|
|
964
|
+
"q-date-time-picker__day--range-end": e.isRangeEnd
|
|
965
|
+
}]),
|
|
966
|
+
label: e.date.getDate().toString(),
|
|
967
|
+
"aria-label": Zt(e.date),
|
|
968
|
+
"aria-selected": qt(e.date),
|
|
969
|
+
"aria-current": e.isToday ? "date" : void 0,
|
|
970
|
+
tabindex: t === $t.value ? 0 : -1,
|
|
971
|
+
variant: Fr(e),
|
|
972
|
+
disabled: e.isDisabled,
|
|
973
|
+
onMouseenter: () => Tn(e.date),
|
|
974
|
+
onFocus: () => Tn(e.date),
|
|
975
|
+
onClick: () => kn(e.date)
|
|
976
|
+
}, null, 8, [
|
|
977
|
+
"data-day-index",
|
|
978
|
+
"class",
|
|
979
|
+
"label",
|
|
980
|
+
"aria-label",
|
|
981
|
+
"aria-selected",
|
|
982
|
+
"aria-current",
|
|
983
|
+
"tabindex",
|
|
984
|
+
"variant",
|
|
985
|
+
"disabled",
|
|
986
|
+
"onMouseenter",
|
|
987
|
+
"onFocus",
|
|
988
|
+
"onClick"
|
|
989
|
+
]))), 128))]))), 128))], 32)], 8, Re)], 512)) : F.value === "time" ? (x(), p("div", Ve, [(x(!0), p(l, null, Oe(g.range ? 2 : 1, (e) => (x(), p("div", {
|
|
990
|
+
key: e,
|
|
991
|
+
class: "q-date-time-picker__time-group",
|
|
992
|
+
role: g.range ? "group" : void 0,
|
|
993
|
+
"aria-label": g.range ? e === 1 ? g.texts.startTime : g.texts.endTime : void 0
|
|
994
|
+
}, [A.value ? (x(), p("div", Ue, [h(C(ae), {
|
|
995
|
+
"model-value": Wn(e - 1),
|
|
996
|
+
"show-state-labels": "",
|
|
997
|
+
size: "small",
|
|
998
|
+
"aria-label": g.texts.pm,
|
|
999
|
+
"false-label": g.texts.am,
|
|
1000
|
+
"true-label": g.texts.pm,
|
|
1001
|
+
"onUpdate:modelValue": (t) => ur(t ?? !1, e - 1)
|
|
1002
|
+
}, null, 8, [
|
|
1003
|
+
"model-value",
|
|
1004
|
+
"aria-label",
|
|
1005
|
+
"false-label",
|
|
1006
|
+
"true-label",
|
|
1007
|
+
"onUpdate:modelValue"
|
|
1008
|
+
])])) : f("", !0), m("div", We, [
|
|
1009
|
+
m("div", Ge, [
|
|
1087
1010
|
h(C(a), {
|
|
1088
1011
|
variant: "ghost",
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
onClick:
|
|
1012
|
+
title: g.texts.increaseHour,
|
|
1013
|
+
"aria-label": g.texts.increaseHour,
|
|
1014
|
+
onClick: (t) => Kn(e - 1)
|
|
1092
1015
|
}, {
|
|
1093
|
-
default:
|
|
1016
|
+
default: E(() => [h(C(t), v({ ref_for: !0 }, g.icons.up), null, 16)]),
|
|
1094
1017
|
_: 1
|
|
1095
|
-
}, 8, [
|
|
1096
|
-
|
|
1018
|
+
}, 8, [
|
|
1019
|
+
"title",
|
|
1020
|
+
"aria-label",
|
|
1021
|
+
"onClick"
|
|
1022
|
+
]),
|
|
1023
|
+
h(C(o), {
|
|
1024
|
+
class: "q-date-time-picker__time-number",
|
|
1025
|
+
size: "small",
|
|
1026
|
+
inputmode: "numeric",
|
|
1027
|
+
icons: g.icons,
|
|
1028
|
+
texts: g.texts,
|
|
1029
|
+
"max-length": 2,
|
|
1030
|
+
"aria-label": g.texts.hours,
|
|
1031
|
+
"model-value": or("hours", e - 1),
|
|
1032
|
+
onKeydown: (t) => lr(t, "hours", e - 1),
|
|
1033
|
+
onFocusout: (t) => cr(t, "hours", e - 1),
|
|
1034
|
+
"onUpdate:modelValue": (t) => sr(t, "hours", e - 1)
|
|
1035
|
+
}, null, 8, [
|
|
1036
|
+
"icons",
|
|
1037
|
+
"texts",
|
|
1038
|
+
"aria-label",
|
|
1039
|
+
"model-value",
|
|
1040
|
+
"onKeydown",
|
|
1041
|
+
"onFocusout",
|
|
1042
|
+
"onUpdate:modelValue"
|
|
1043
|
+
]),
|
|
1097
1044
|
h(C(a), {
|
|
1098
1045
|
variant: "ghost",
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
onClick:
|
|
1046
|
+
title: g.texts.decreaseHour,
|
|
1047
|
+
"aria-label": g.texts.decreaseHour,
|
|
1048
|
+
onClick: (t) => qn(e - 1)
|
|
1102
1049
|
}, {
|
|
1103
|
-
default:
|
|
1050
|
+
default: E(() => [h(C(t), v({ ref_for: !0 }, g.icons.down), null, 16)]),
|
|
1104
1051
|
_: 1
|
|
1105
|
-
}, 8, [
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
title: e,
|
|
1115
|
-
variant: "ghost",
|
|
1116
|
-
onClick: () => vn(e)
|
|
1117
|
-
}, null, 8, [
|
|
1118
|
-
"data-year",
|
|
1119
|
-
"aria-disabled",
|
|
1120
|
-
"label",
|
|
1121
|
-
"title",
|
|
1122
|
-
"onClick"
|
|
1123
|
-
]))), 128))])])], 2112)) : f("v-if", !0),
|
|
1124
|
-
m("div", Ze, [
|
|
1125
|
-
M.value ? f("v-if", !0) : (x(), d(C(a), {
|
|
1126
|
-
key: 0,
|
|
1052
|
+
}, 8, [
|
|
1053
|
+
"title",
|
|
1054
|
+
"aria-label",
|
|
1055
|
+
"onClick"
|
|
1056
|
+
])
|
|
1057
|
+
]),
|
|
1058
|
+
n[11] ||= m("div", { class: "q-date-time-picker__time-separator" }, ":", -1),
|
|
1059
|
+
m("div", Ke, [
|
|
1060
|
+
h(C(a), {
|
|
1127
1061
|
variant: "ghost",
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
onClick:
|
|
1062
|
+
title: g.texts.increaseMinute,
|
|
1063
|
+
"aria-label": g.texts.increaseMinute,
|
|
1064
|
+
onClick: (t) => Jn(e - 1)
|
|
1131
1065
|
}, {
|
|
1132
|
-
default:
|
|
1066
|
+
default: E(() => [h(C(t), v({ ref_for: !0 }, g.icons.up), null, 16)]),
|
|
1133
1067
|
_: 1
|
|
1134
|
-
}, 8, [
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1068
|
+
}, 8, [
|
|
1069
|
+
"title",
|
|
1070
|
+
"aria-label",
|
|
1071
|
+
"onClick"
|
|
1072
|
+
]),
|
|
1073
|
+
h(C(o), {
|
|
1074
|
+
class: "q-date-time-picker__time-number",
|
|
1075
|
+
size: "small",
|
|
1076
|
+
inputmode: "numeric",
|
|
1077
|
+
icons: g.icons,
|
|
1078
|
+
texts: g.texts,
|
|
1079
|
+
"max-length": 2,
|
|
1080
|
+
"aria-label": g.texts.minutes,
|
|
1081
|
+
"model-value": or("minutes", e - 1),
|
|
1082
|
+
onKeydown: (t) => lr(t, "minutes", e - 1),
|
|
1083
|
+
onFocusout: (t) => cr(t, "minutes", e - 1),
|
|
1084
|
+
"onUpdate:modelValue": (t) => sr(t, "minutes", e - 1)
|
|
1085
|
+
}, null, 8, [
|
|
1086
|
+
"icons",
|
|
1087
|
+
"texts",
|
|
1088
|
+
"aria-label",
|
|
1089
|
+
"model-value",
|
|
1090
|
+
"onKeydown",
|
|
1091
|
+
"onFocusout",
|
|
1092
|
+
"onUpdate:modelValue"
|
|
1093
|
+
]),
|
|
1094
|
+
h(C(a), {
|
|
1139
1095
|
variant: "ghost",
|
|
1140
|
-
title: g.texts.
|
|
1141
|
-
|
|
1096
|
+
title: g.texts.decreaseMinute,
|
|
1097
|
+
"aria-label": g.texts.decreaseMinute,
|
|
1098
|
+
onClick: (t) => Yn(e - 1)
|
|
1142
1099
|
}, {
|
|
1143
|
-
default:
|
|
1100
|
+
default: E(() => [h(C(t), v({ ref_for: !0 }, g.icons.down), null, 16)]),
|
|
1144
1101
|
_: 1
|
|
1145
|
-
}, 8, [
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
"
|
|
1102
|
+
}, 8, [
|
|
1103
|
+
"title",
|
|
1104
|
+
"aria-label",
|
|
1105
|
+
"onClick"
|
|
1106
|
+
])
|
|
1107
|
+
]),
|
|
1108
|
+
lt.value ? (x(), p(l, { key: 0 }, [n[10] ||= m("div", { class: "q-date-time-picker__time-separator" }, ":", -1), m("div", qe, [
|
|
1109
|
+
h(C(a), {
|
|
1149
1110
|
variant: "ghost",
|
|
1150
|
-
title: g.texts.
|
|
1151
|
-
|
|
1111
|
+
title: g.texts.increaseSecond,
|
|
1112
|
+
"aria-label": g.texts.increaseSecond,
|
|
1113
|
+
onClick: (t) => Xn(e - 1)
|
|
1152
1114
|
}, {
|
|
1153
|
-
default:
|
|
1115
|
+
default: E(() => [h(C(t), v({ ref_for: !0 }, g.icons.up), null, 16)]),
|
|
1154
1116
|
_: 1
|
|
1155
|
-
}, 8, [
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
"
|
|
1117
|
+
}, 8, [
|
|
1118
|
+
"title",
|
|
1119
|
+
"aria-label",
|
|
1120
|
+
"onClick"
|
|
1121
|
+
]),
|
|
1122
|
+
h(C(o), {
|
|
1123
|
+
class: "q-date-time-picker__time-number",
|
|
1124
|
+
size: "small",
|
|
1125
|
+
inputmode: "numeric",
|
|
1126
|
+
icons: g.icons,
|
|
1127
|
+
texts: g.texts,
|
|
1128
|
+
"max-length": 2,
|
|
1129
|
+
"aria-label": g.texts.seconds,
|
|
1130
|
+
"model-value": or("seconds", e - 1),
|
|
1131
|
+
onKeydown: (t) => lr(t, "seconds", e - 1),
|
|
1132
|
+
onFocusout: (t) => cr(t, "seconds", e - 1),
|
|
1133
|
+
"onUpdate:modelValue": (t) => sr(t, "seconds", e - 1)
|
|
1134
|
+
}, null, 8, [
|
|
1135
|
+
"icons",
|
|
1136
|
+
"texts",
|
|
1137
|
+
"aria-label",
|
|
1138
|
+
"model-value",
|
|
1139
|
+
"onKeydown",
|
|
1140
|
+
"onFocusout",
|
|
1141
|
+
"onUpdate:modelValue"
|
|
1142
|
+
]),
|
|
1143
|
+
h(C(a), {
|
|
1159
1144
|
variant: "ghost",
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
onClick:
|
|
1145
|
+
title: g.texts.decreaseSecond,
|
|
1146
|
+
"aria-label": g.texts.decreaseSecond,
|
|
1147
|
+
onClick: (t) => Zn(e - 1)
|
|
1163
1148
|
}, {
|
|
1164
|
-
default:
|
|
1149
|
+
default: E(() => [h(C(t), v({ ref_for: !0 }, g.icons.down), null, 16)]),
|
|
1165
1150
|
_: 1
|
|
1166
|
-
}, 8, [
|
|
1151
|
+
}, 8, [
|
|
1152
|
+
"title",
|
|
1153
|
+
"aria-label",
|
|
1154
|
+
"onClick"
|
|
1155
|
+
])
|
|
1156
|
+
])], 64)) : f("", !0)
|
|
1157
|
+
])], 8, He))), 128))])) : F.value === "month" ? (x(), p("div", Je, [(x(!0), p(l, null, Oe(rn.value, (e, t) => (x(), d(C(a), {
|
|
1158
|
+
key: t,
|
|
1159
|
+
ref_for: !0,
|
|
1160
|
+
ref: (e) => Tt(e, t),
|
|
1161
|
+
"data-testid": "q-date-time-picker-month-option",
|
|
1162
|
+
"data-month-index": t,
|
|
1163
|
+
"aria-current": I.value === t || void 0,
|
|
1164
|
+
label: e,
|
|
1165
|
+
title: an(t),
|
|
1166
|
+
variant: "ghost",
|
|
1167
|
+
onClick: () => jn(t)
|
|
1168
|
+
}, null, 8, [
|
|
1169
|
+
"data-month-index",
|
|
1170
|
+
"aria-current",
|
|
1171
|
+
"label",
|
|
1172
|
+
"title",
|
|
1173
|
+
"onClick"
|
|
1174
|
+
]))), 128))])) : F.value === "year" ? (x(), p("div", Ye, [m("div", Xe, [
|
|
1175
|
+
h(C(a), {
|
|
1176
|
+
variant: "ghost",
|
|
1177
|
+
disabled: kt("previousYears", dn.value),
|
|
1178
|
+
"aria-disabled": !dn.value || void 0,
|
|
1179
|
+
title: g.texts.previousYears,
|
|
1180
|
+
onFocus: n[4] ||= (e) => H.value = "previousYears",
|
|
1181
|
+
onBlur: n[5] ||= (e) => H.value = null,
|
|
1182
|
+
onClick: cn
|
|
1183
|
+
}, {
|
|
1184
|
+
default: E(() => [h(C(t), b(_(g.icons.back)), null, 16)]),
|
|
1185
|
+
_: 1
|
|
1186
|
+
}, 8, [
|
|
1187
|
+
"disabled",
|
|
1188
|
+
"aria-disabled",
|
|
1189
|
+
"title"
|
|
1190
|
+
]),
|
|
1191
|
+
m("div", Ze, Ae(un.value.startYear) + " - " + Ae(un.value.endYear), 1),
|
|
1192
|
+
h(C(a), {
|
|
1193
|
+
variant: "ghost",
|
|
1194
|
+
disabled: kt("nextYears", fn.value),
|
|
1195
|
+
"aria-disabled": !fn.value || void 0,
|
|
1196
|
+
title: g.texts.nextYears,
|
|
1197
|
+
onFocus: n[6] ||= (e) => H.value = "nextYears",
|
|
1198
|
+
onBlur: n[7] ||= (e) => H.value = null,
|
|
1199
|
+
onClick: ln
|
|
1200
|
+
}, {
|
|
1201
|
+
default: E(() => [h(C(t), b(_(g.icons.forward)), null, 16)]),
|
|
1202
|
+
_: 1
|
|
1203
|
+
}, 8, [
|
|
1204
|
+
"disabled",
|
|
1205
|
+
"aria-disabled",
|
|
1206
|
+
"title"
|
|
1167
1207
|
])
|
|
1168
|
-
],
|
|
1208
|
+
]), m("div", Qe, [(x(!0), p(l, null, Oe(_n.value, (e, t) => (x(), d(C(a), {
|
|
1209
|
+
key: t,
|
|
1210
|
+
ref_for: !0,
|
|
1211
|
+
ref: (t) => Et(t, e),
|
|
1212
|
+
"data-testid": "q-date-time-picker-year-option",
|
|
1213
|
+
"data-year": e,
|
|
1214
|
+
"aria-current": L.value === e || void 0,
|
|
1215
|
+
label: e.toString(),
|
|
1216
|
+
title: e,
|
|
1217
|
+
variant: "ghost",
|
|
1218
|
+
onClick: () => Mn(e)
|
|
1219
|
+
}, null, 8, [
|
|
1220
|
+
"data-year",
|
|
1221
|
+
"aria-current",
|
|
1222
|
+
"label",
|
|
1223
|
+
"title",
|
|
1224
|
+
"onClick"
|
|
1225
|
+
]))), 128))])])) : f("", !0), m("div", $e, [
|
|
1226
|
+
j.value ? f("", !0) : (x(), d(C(a), {
|
|
1227
|
+
key: 0,
|
|
1228
|
+
variant: "ghost",
|
|
1229
|
+
disabled: kt("today", !ut.value),
|
|
1230
|
+
"aria-disabled": ut.value || void 0,
|
|
1231
|
+
title: g.texts.today,
|
|
1232
|
+
onFocus: n[8] ||= (e) => H.value = "today",
|
|
1233
|
+
onBlur: n[9] ||= (e) => H.value = null,
|
|
1234
|
+
onClick: Fn
|
|
1235
|
+
}, {
|
|
1236
|
+
default: E(() => [h(C(t), b(_(g.icons.today)), null, 16)]),
|
|
1237
|
+
_: 1
|
|
1238
|
+
}, 8, [
|
|
1239
|
+
"disabled",
|
|
1240
|
+
"aria-disabled",
|
|
1241
|
+
"title"
|
|
1242
|
+
])),
|
|
1243
|
+
ct.value && F.value === "date" ? (x(), d(C(a), {
|
|
1244
|
+
key: 1,
|
|
1245
|
+
ref: "toggleTime",
|
|
1246
|
+
"data-testid": "q-date-time-picker-toggle-time",
|
|
1247
|
+
variant: "ghost",
|
|
1248
|
+
title: g.texts.pickTime,
|
|
1249
|
+
onClick: Br
|
|
1250
|
+
}, {
|
|
1251
|
+
default: E(() => [h(C(t), b(_(g.icons.clock)), null, 16)]),
|
|
1252
|
+
_: 1
|
|
1253
|
+
}, 8, ["title"])) : F.value !== "date" && !j.value ? (x(), d(C(a), {
|
|
1254
|
+
key: 2,
|
|
1255
|
+
ref: "toggleDate",
|
|
1256
|
+
"data-testid": "q-date-time-picker-toggle-date",
|
|
1257
|
+
variant: "ghost",
|
|
1258
|
+
title: g.texts.pickDate,
|
|
1259
|
+
onClick: Ur
|
|
1260
|
+
}, {
|
|
1261
|
+
default: E(() => [h(C(t), b(_(g.icons.calendar)), null, 16)]),
|
|
1262
|
+
_: 1
|
|
1263
|
+
}, 8, ["title"])) : f("", !0),
|
|
1264
|
+
g.clearable ? (x(), d(C(a), {
|
|
1265
|
+
key: 3,
|
|
1266
|
+
"data-testid": "q-date-time-picker-clear",
|
|
1267
|
+
variant: "ghost",
|
|
1268
|
+
disabled: !Cn.value,
|
|
1269
|
+
title: g.texts.clearValue,
|
|
1270
|
+
onClick: wn
|
|
1271
|
+
}, {
|
|
1272
|
+
default: E(() => [h(C(t), b(_(g.icons.delete)), null, 16)]),
|
|
1273
|
+
_: 1
|
|
1274
|
+
}, 8, ["disabled", "title"])) : f("", !0)
|
|
1275
|
+
])], 42, Fe)]),
|
|
1169
1276
|
_: 1
|
|
1170
1277
|
}, 8, [
|
|
1171
1278
|
"model-value",
|
|
1172
1279
|
"anchor",
|
|
1173
1280
|
"inline"
|
|
1174
|
-
])) : f("
|
|
1281
|
+
])) : f("", !0)], 64));
|
|
1175
1282
|
}
|
|
1176
1283
|
});
|
|
1177
1284
|
//#endregion
|
|
1178
|
-
export {
|
|
1285
|
+
export { tt as default };
|