@quidgest/ui 0.17.2 → 0.17.3
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/dist/json/api.json +1 -1
- package/dist/ui.esm.js +980 -9022
- package/dist/ui.js +971 -45
- package/dist/ui.min.js +792 -875
- package/dist/ui.scss +1 -1
- package/esm/_virtual/_plugin-vue_export-helper.js +7 -8
- package/esm/_virtual/_rolldown/runtime.js +11 -0
- package/esm/components/QAccordion/QAccordion.vue.js +45 -43
- package/esm/components/QAccordion/QAccordion2.vue.js +5 -0
- package/esm/components/QAccordion/QAccordionItem.vue.js +33 -39
- package/esm/components/QAccordion/QAccordionItem2.vue.js +5 -0
- package/esm/components/QAccordion/index.js +7 -8
- package/esm/components/QAvatar/QAvatar.vue.js +41 -48
- package/esm/components/QAvatar/QAvatar2.vue.js +5 -0
- package/esm/components/QAvatar/index.js +6 -6
- package/esm/components/QBadge/QBadge.vue.js +98 -142
- package/esm/components/QBadge/QBadge2.vue.js +5 -0
- package/esm/components/QBadge/constants.js +4 -11
- package/esm/components/QBadge/index.js +6 -6
- package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +38 -49
- package/esm/components/QBadgeIndicator/QBadgeIndicator2.vue.js +5 -0
- package/esm/components/QBadgeIndicator/index.js +6 -6
- package/esm/components/QButton/QButton.vue.js +73 -84
- package/esm/components/QButton/QButton2.vue.js +5 -0
- package/esm/components/QButton/index.js +6 -6
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +33 -37
- package/esm/components/QButtonGroup/QButtonGroup2.vue.js +5 -0
- package/esm/components/QButtonGroup/index.js +6 -6
- package/esm/components/QCard/QCard.vue.js +91 -133
- package/esm/components/QCard/QCard2.vue.js +5 -0
- package/esm/components/QCard/index.js +6 -6
- package/esm/components/QCarousel/QCarousel.vue.js +247 -354
- package/esm/components/QCarousel/QCarousel2.vue.js +5 -0
- package/esm/components/QCarousel/constants.js +10 -15
- package/esm/components/QCarousel/index.js +6 -6
- package/esm/components/QCheckbox/QCheckbox.vue.js +133 -143
- package/esm/components/QCheckbox/QCheckbox2.vue.js +5 -0
- package/esm/components/QCheckbox/QCheckboxLabel.vue.js +31 -32
- package/esm/components/QCheckbox/QCheckboxLabel2.vue.js +5 -0
- package/esm/components/QCheckbox/constants.js +6 -10
- package/esm/components/QCheckbox/index.js +7 -8
- package/esm/components/QCollapsible/QCollapsible.vue.js +90 -136
- package/esm/components/QCollapsible/QCollapsible2.vue.js +5 -0
- package/esm/components/QCollapsible/constants.js +5 -7
- package/esm/components/QCollapsible/index.js +6 -6
- package/esm/components/QColorPicker/QColorPicker.vue.js +96 -100
- package/esm/components/QColorPicker/QColorPicker2.vue.js +5 -0
- package/esm/components/QColorPicker/constants.js +4 -6
- package/esm/components/QColorPicker/index.js +6 -6
- package/esm/components/QCombobox/QCombobox.vue.js +316 -364
- package/esm/components/QCombobox/QCombobox2.vue.js +5 -0
- package/esm/components/QCombobox/constants.js +12 -13
- package/esm/components/QCombobox/index.js +6 -6
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +1119 -1449
- package/esm/components/QDateTimePicker/QDateTimePicker2.vue.js +5 -0
- package/esm/components/QDateTimePicker/constants.js +72 -91
- package/esm/components/QDateTimePicker/index.js +6 -6
- package/esm/components/QDefaultsProvider/QDefaultsProvider.vue.js +15 -15
- package/esm/components/QDefaultsProvider/QDefaultsProvider2.vue.js +5 -0
- package/esm/components/QDefaultsProvider/index.js +6 -6
- package/esm/components/QDialog/QDialog.vue.js +175 -226
- package/esm/components/QDialog/QDialog2.vue.js +5 -0
- package/esm/components/QDialog/QDialogProvider.vue.js +26 -35
- package/esm/components/QDialog/QDialogProvider2.vue.js +5 -0
- package/esm/components/QDialog/constants.js +11 -23
- package/esm/components/QDialog/index.js +7 -8
- package/esm/components/QDismissibleLayer/QDismissibleLayer.vue.js +63 -69
- package/esm/components/QDismissibleLayer/QDismissibleLayer2.vue.js +5 -0
- package/esm/components/QDismissibleLayer/index.js +6 -6
- package/esm/components/QDivider/QDivider.vue.js +39 -62
- package/esm/components/QDivider/QDivider2.vue.js +5 -0
- package/esm/components/QDivider/index.js +6 -6
- package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +54 -64
- package/esm/components/QDropdownMenu/QDropdownMenu2.vue.js +5 -0
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +196 -215
- package/esm/components/QDropdownMenu/QDropdownMenuContent2.vue.js +5 -0
- package/esm/components/QDropdownMenu/constants.js +4 -8
- package/esm/components/QDropdownMenu/index.js +6 -6
- package/esm/components/QField/QField.vue.js +74 -90
- package/esm/components/QField/QField2.vue.js +5 -0
- package/esm/components/QField/index.js +6 -6
- package/esm/components/QFileUpload/QFileUpload.vue.js +156 -241
- package/esm/components/QFileUpload/QFileUpload2.vue.js +5 -0
- package/esm/components/QFileUpload/constants.js +16 -27
- package/esm/components/QFileUpload/index.js +6 -6
- package/esm/components/QFocusWrap/QFocusWrap.vue.js +89 -118
- package/esm/components/QFocusWrap/QFocusWrap2.vue.js +5 -0
- package/esm/components/QFocusWrap/index.js +6 -6
- package/esm/components/QGrid/QCol.vue.js +33 -48
- package/esm/components/QGrid/QCol2.vue.js +5 -0
- package/esm/components/QGrid/QContainer.vue.js +11 -23
- package/esm/components/QGrid/QContainer2.vue.js +5 -0
- package/esm/components/QGrid/QRow.vue.js +24 -35
- package/esm/components/QGrid/QRow2.vue.js +5 -0
- package/esm/components/QGrid/QSpacer.vue.js +9 -9
- package/esm/components/QGrid/index.js +9 -12
- package/esm/components/QGroupBox/QGroupBox.vue.js +32 -43
- package/esm/components/QGroupBox/QGroupBox2.vue.js +5 -0
- package/esm/components/QGroupBox/index.js +6 -6
- package/esm/components/QIcon/InlineSvg.js +92 -129
- package/esm/components/QIcon/QIcon.vue.js +40 -42
- package/esm/components/QIcon/QIcon2.vue.js +5 -0
- package/esm/components/QIcon/QIconFont.vue.js +26 -20
- package/esm/components/QIcon/QIconFont2.vue.js +5 -0
- package/esm/components/QIcon/QIconImg.vue.js +23 -19
- package/esm/components/QIcon/QIconImg2.vue.js +5 -0
- package/esm/components/QIcon/QIconSvg.vue.js +40 -31
- package/esm/components/QIcon/QIconSvg2.vue.js +5 -0
- package/esm/components/QIcon/index.js +9 -12
- package/esm/components/QInputGroup/QInputGroup.vue.js +62 -89
- package/esm/components/QInputGroup/QInputGroup2.vue.js +5 -0
- package/esm/components/QInputGroup/index.js +6 -6
- package/esm/components/QLabel/QLabel.vue.js +33 -43
- package/esm/components/QLabel/QLabel2.vue.js +5 -0
- package/esm/components/QLabel/index.js +6 -6
- package/esm/components/QLineLoader/QLineLoader.vue.js +26 -26
- package/esm/components/QLineLoader/QLineLoader2.vue.js +5 -0
- package/esm/components/QLineLoader/index.js +6 -6
- package/esm/components/QList/QList.vue.js +229 -241
- package/esm/components/QList/QList2.vue.js +5 -0
- package/esm/components/QList/QListItem.vue.js +84 -118
- package/esm/components/QList/QListItem2.vue.js +5 -0
- package/esm/components/QList/QListItemGroup.vue.js +25 -28
- package/esm/components/QList/QListItemGroup2.vue.js +5 -0
- package/esm/components/QList/constants.js +6 -10
- package/esm/components/QList/index.js +8 -10
- package/esm/components/QMeter/QMeter.vue.js +39 -61
- package/esm/components/QMeter/QMeter2.vue.js +5 -0
- package/esm/components/QMeter/index.js +6 -6
- package/esm/components/QOverlay/QOverlay.vue.js +282 -322
- package/esm/components/QOverlay/QOverlay2.vue.js +5 -0
- package/esm/components/QOverlay/index.js +6 -6
- package/esm/components/QPasswordField/QPasswordField.vue.js +142 -163
- package/esm/components/QPasswordField/QPasswordField2.vue.js +5 -0
- package/esm/components/QPasswordField/QPasswordFieldMessages.vue.js +11 -27
- package/esm/components/QPasswordField/QPasswordFieldMessages2.vue.js +5 -0
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +82 -103
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay2.vue.js +5 -0
- package/esm/components/QPasswordField/constants.js +6 -10
- package/esm/components/QPasswordField/index.js +6 -6
- package/esm/components/QPopover/QPopover.vue.js +74 -95
- package/esm/components/QPopover/QPopover2.vue.js +5 -0
- package/esm/components/QPopover/index.js +6 -6
- package/esm/components/QPropertyList/QPropertyList.vue.js +109 -154
- package/esm/components/QPropertyList/QPropertyList2.vue.js +5 -0
- package/esm/components/QPropertyList/QPropertyListGroup.vue.js +46 -68
- package/esm/components/QPropertyList/QPropertyListGroup2.vue.js +5 -0
- package/esm/components/QPropertyList/QPropertyListPanel.vue.js +24 -47
- package/esm/components/QPropertyList/QPropertyListPanel2.vue.js +5 -0
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +60 -80
- package/esm/components/QPropertyList/QPropertyListRow2.vue.js +5 -0
- package/esm/components/QPropertyList/constants.js +6 -13
- package/esm/components/QPropertyList/index.js +9 -12
- package/esm/components/QRadioGroup/QRadioButton.vue.js +99 -96
- package/esm/components/QRadioGroup/QRadioButton2.vue.js +5 -0
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +79 -87
- package/esm/components/QRadioGroup/QRadioGroup2.vue.js +5 -0
- package/esm/components/QRadioGroup/index.js +7 -8
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue.js +49 -51
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar2.vue.js +5 -0
- package/esm/components/QRemoveScrollBar/constants.js +4 -8
- package/esm/components/QRemoveScrollBar/index.js +6 -6
- package/esm/components/QRemoveScrollBar/utils/gap.js +24 -22
- package/esm/components/QRemoveScrollBar/utils/stylesheet.js +19 -20
- package/esm/components/QSelect/QSelect.vue.js +399 -583
- package/esm/components/QSelect/QSelect2.vue.js +5 -0
- package/esm/components/QSelect/constants.js +14 -15
- package/esm/components/QSelect/index.js +6 -6
- package/esm/components/QSidebar/QSidebar.vue.js +133 -157
- package/esm/components/QSidebar/QSidebar2.vue.js +5 -0
- package/esm/components/QSidebar/QSidebarAnchor.vue.js +79 -110
- package/esm/components/QSidebar/QSidebarAnchor2.vue.js +5 -0
- package/esm/components/QSidebar/QSidebarPanel.vue.js +68 -88
- package/esm/components/QSidebar/QSidebarPanel2.vue.js +5 -0
- package/esm/components/QSidebar/index.js +6 -6
- package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +28 -35
- package/esm/components/QSkeletonLoader/QSkeletonLoader2.vue.js +5 -0
- package/esm/components/QSkeletonLoader/index.js +6 -6
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +19 -21
- package/esm/components/QSpinnerLoader/QSpinnerLoader2.vue.js +5 -0
- package/esm/components/QSpinnerLoader/index.js +6 -6
- package/esm/components/QSwitch/QSwitch.vue.js +83 -124
- package/esm/components/QSwitch/QSwitch2.vue.js +5 -0
- package/esm/components/QSwitch/index.js +6 -6
- package/esm/components/QTextArea/QTextArea.vue.js +113 -110
- package/esm/components/QTextArea/QTextArea2.vue.js +5 -0
- package/esm/components/QTextArea/index.js +6 -6
- package/esm/components/QTextField/QTextField.vue.js +115 -118
- package/esm/components/QTextField/QTextField2.vue.js +5 -0
- package/esm/components/QTextField/index.js +7 -6
- package/esm/components/QTextField/types.js +5 -7
- package/esm/components/QThemeProvider/QThemeProvider.vue.js +31 -33
- package/esm/components/QThemeProvider/QThemeProvider2.vue.js +5 -0
- package/esm/components/QThemeProvider/index.js +6 -6
- package/esm/components/QToast/QToast.vue.js +140 -213
- package/esm/components/QToast/QToast2.vue.js +5 -0
- package/esm/components/QToast/QToaster.vue.js +38 -47
- package/esm/components/QToast/QToaster2.vue.js +5 -0
- package/esm/components/QToast/constants.js +4 -8
- package/esm/components/QToast/index.js +7 -8
- package/esm/components/QToggle/QToggle.vue.js +39 -42
- package/esm/components/QToggle/QToggle2.vue.js +5 -0
- package/esm/components/QToggle/index.js +6 -6
- package/esm/components/QToggleGroup/QToggleGroup.vue.js +55 -49
- package/esm/components/QToggleGroup/QToggleGroup2.vue.js +5 -0
- package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +33 -43
- package/esm/components/QToggleGroup/QToggleGroupItem2.vue.js +5 -0
- package/esm/components/QToggleGroup/index.js +7 -8
- package/esm/components/QTooltip/QTooltip.vue.js +93 -113
- package/esm/components/QTooltip/QTooltip2.vue.js +5 -0
- package/esm/components/QTooltip/index.js +6 -6
- package/esm/components/__internal__/QChevron/QChevron.vue.js +28 -30
- package/esm/components/__internal__/QChevron/QChevron2.vue.js +5 -0
- package/esm/components/__internal__/QChevron/constants.js +4 -8
- package/esm/components/__internal__/QChevron/index.js +6 -6
- package/esm/components/__internal__/QClearButton/QClearButton.vue.js +39 -44
- package/esm/components/__internal__/QClearButton/QClearButton2.vue.js +5 -0
- package/esm/components/__internal__/QClearButton/constants.js +4 -11
- package/esm/components/__internal__/QClearButton/index.js +6 -6
- package/esm/components/index.js +117 -113
- package/esm/composables/defaults.js +22 -27
- package/esm/composables/overlay.js +125 -135
- package/esm/composables/theme.js +13 -20
- package/esm/composables/uid.js +7 -8
- package/esm/composables/useColor/index.js +41 -42
- package/esm/composables/useDialog/index.js +28 -27
- package/esm/composables/useDismissibleLayerStack/index.js +31 -30
- package/esm/composables/useDropZone/index.js +43 -61
- package/esm/composables/useGroup/index.js +33 -39
- package/esm/composables/useInputMask/index.d.ts.map +1 -1
- package/esm/composables/useInputMask/index.js +384 -396
- package/esm/composables/useTextareaAutosize/index.js +18 -21
- package/esm/composables/useToast/index.js +30 -32
- package/esm/composables/useToast/types.js +4 -4
- package/esm/framework.js +56 -59
- package/esm/index.js +14 -18
- package/esm/symbols/dismissibleLayer.js +4 -4
- package/esm/templates/index.js +9 -5
- package/esm/templates/theme.js +109 -110
- package/esm/utils/color/contrast.js +10 -11
- package/esm/utils/color/conversion.js +44 -54
- package/esm/utils/color/manipulate.js +14 -19
- package/esm/utils/color/merge.js +43 -48
- package/esm/utils/color/parse.js +23 -23
- package/esm/utils/date.js +456 -463
- package/esm/utils/download.js +14 -15
- package/esm/utils/getElement.js +5 -5
- package/esm/utils/index.js +48 -44
- package/esm/utils/isEmpty.js +5 -5
- package/esm/utils/isObject.js +5 -5
- package/esm/utils/merge.js +12 -16
- package/esm/utils/setupPropsProxy.js +21 -28
- package/esm/utils/string.js +7 -7
- package/esm/utils/theme.js +41 -57
- package/esm/vendors/uuid/dist/native.js +3 -4
- package/esm/vendors/uuid/dist/rng.js +10 -12
- package/esm/vendors/uuid/dist/stringify.js +7 -8
- package/esm/vendors/uuid/dist/v4.js +18 -15
- package/package.json +12 -12
- package/esm/components/QAccordion/QAccordion.vue2.js +0 -4
- package/esm/components/QAccordion/QAccordionItem.vue2.js +0 -4
- package/esm/components/QAvatar/QAvatar.vue2.js +0 -4
- package/esm/components/QBadge/QBadge.vue2.js +0 -4
- package/esm/components/QBadgeIndicator/QBadgeIndicator.vue2.js +0 -4
- package/esm/components/QButton/QButton.vue2.js +0 -4
- package/esm/components/QButtonGroup/QButtonGroup.vue2.js +0 -4
- package/esm/components/QCard/QCard.vue2.js +0 -4
- package/esm/components/QCarousel/QCarousel.vue2.js +0 -4
- package/esm/components/QCheckbox/QCheckbox.vue2.js +0 -4
- package/esm/components/QCheckbox/QCheckboxLabel.vue2.js +0 -4
- package/esm/components/QCollapsible/QCollapsible.vue2.js +0 -4
- package/esm/components/QColorPicker/QColorPicker.vue2.js +0 -4
- package/esm/components/QCombobox/QCombobox.vue2.js +0 -4
- package/esm/components/QDateTimePicker/QDateTimePicker.vue2.js +0 -4
- package/esm/components/QDefaultsProvider/QDefaultsProvider.vue2.js +0 -4
- package/esm/components/QDialog/QDialog.vue2.js +0 -4
- package/esm/components/QDialog/QDialogProvider.vue2.js +0 -4
- package/esm/components/QDismissibleLayer/QDismissibleLayer.vue2.js +0 -4
- package/esm/components/QDivider/QDivider.vue2.js +0 -4
- package/esm/components/QDropdownMenu/QDropdownMenu.vue2.js +0 -4
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue2.js +0 -4
- package/esm/components/QField/QField.vue2.js +0 -4
- package/esm/components/QFileUpload/QFileUpload.vue2.js +0 -4
- package/esm/components/QFocusWrap/QFocusWrap.vue2.js +0 -4
- package/esm/components/QGrid/QCol.vue2.js +0 -4
- package/esm/components/QGrid/QContainer.vue2.js +0 -4
- package/esm/components/QGrid/QRow.vue2.js +0 -4
- package/esm/components/QGroupBox/QGroupBox.vue2.js +0 -4
- package/esm/components/QIcon/QIcon.vue2.js +0 -4
- package/esm/components/QIcon/QIconFont.vue2.js +0 -4
- package/esm/components/QIcon/QIconImg.vue2.js +0 -4
- package/esm/components/QIcon/QIconSvg.vue2.js +0 -4
- package/esm/components/QInputGroup/QInputGroup.vue2.js +0 -4
- package/esm/components/QLabel/QLabel.vue2.js +0 -4
- package/esm/components/QLineLoader/QLineLoader.vue2.js +0 -4
- package/esm/components/QList/QList.vue2.js +0 -4
- package/esm/components/QList/QListItem.vue2.js +0 -4
- package/esm/components/QList/QListItemGroup.vue2.js +0 -4
- package/esm/components/QMeter/QMeter.vue2.js +0 -4
- package/esm/components/QOverlay/QOverlay.vue2.js +0 -4
- package/esm/components/QPasswordField/QPasswordField.vue2.js +0 -4
- package/esm/components/QPasswordField/QPasswordFieldMessages.vue2.js +0 -4
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue2.js +0 -4
- package/esm/components/QPopover/QPopover.vue2.js +0 -4
- package/esm/components/QPropertyList/QPropertyList.vue2.js +0 -4
- package/esm/components/QPropertyList/QPropertyListGroup.vue2.js +0 -4
- package/esm/components/QPropertyList/QPropertyListPanel.vue2.js +0 -4
- package/esm/components/QPropertyList/QPropertyListRow.vue2.js +0 -4
- package/esm/components/QRadioGroup/QRadioButton.vue2.js +0 -4
- package/esm/components/QRadioGroup/QRadioGroup.vue2.js +0 -4
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue2.js +0 -4
- package/esm/components/QSelect/QSelect.vue2.js +0 -4
- package/esm/components/QSidebar/QSidebar.vue2.js +0 -4
- package/esm/components/QSidebar/QSidebarAnchor.vue2.js +0 -4
- package/esm/components/QSidebar/QSidebarPanel.vue2.js +0 -4
- package/esm/components/QSkeletonLoader/QSkeletonLoader.vue2.js +0 -4
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue2.js +0 -4
- package/esm/components/QSwitch/QSwitch.vue2.js +0 -4
- package/esm/components/QTextArea/QTextArea.vue2.js +0 -4
- package/esm/components/QTextField/QTextField.vue2.js +0 -4
- package/esm/components/QThemeProvider/QThemeProvider.vue2.js +0 -4
- package/esm/components/QToast/QToast.vue2.js +0 -4
- package/esm/components/QToast/QToaster.vue2.js +0 -4
- package/esm/components/QToggle/QToggle.vue2.js +0 -4
- package/esm/components/QToggleGroup/QToggleGroup.vue2.js +0 -4
- package/esm/components/QToggleGroup/QToggleGroupItem.vue2.js +0 -4
- package/esm/components/QTooltip/QTooltip.vue2.js +0 -4
- package/esm/components/__internal__/QChevron/QChevron.vue2.js +0 -4
- package/esm/components/__internal__/QClearButton/QClearButton.vue2.js +0 -4
|
@@ -1,1450 +1,1120 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { QSwitch as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
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
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
o(I),
|
|
1119
|
-
Q({ ref_for: !0 }, r.icons.down),
|
|
1120
|
-
null,
|
|
1121
|
-
16
|
|
1122
|
-
/* FULL_PROPS */
|
|
1123
|
-
)
|
|
1124
|
-
]),
|
|
1125
|
-
_: 1
|
|
1126
|
-
/* STABLE */
|
|
1127
|
-
}, 8, ["title", "onClick"])
|
|
1128
|
-
]),
|
|
1129
|
-
t[1] || (t[1] = k(
|
|
1130
|
-
"div",
|
|
1131
|
-
{ class: "q-date-time-picker__time-separator" },
|
|
1132
|
-
":",
|
|
1133
|
-
-1
|
|
1134
|
-
/* CACHED */
|
|
1135
|
-
)),
|
|
1136
|
-
k("div", wa, [
|
|
1137
|
-
i(o(p), {
|
|
1138
|
-
variant: "ghost",
|
|
1139
|
-
title: r.texts.increaseMinute,
|
|
1140
|
-
onClick: (l) => yn(n - 1)
|
|
1141
|
-
}, {
|
|
1142
|
-
default: b(() => [
|
|
1143
|
-
i(
|
|
1144
|
-
o(I),
|
|
1145
|
-
Q({ ref_for: !0 }, r.icons.up),
|
|
1146
|
-
null,
|
|
1147
|
-
16
|
|
1148
|
-
/* FULL_PROPS */
|
|
1149
|
-
)
|
|
1150
|
-
]),
|
|
1151
|
-
_: 1
|
|
1152
|
-
/* STABLE */
|
|
1153
|
-
}, 8, ["title", "onClick"]),
|
|
1154
|
-
i(o(Fe), {
|
|
1155
|
-
class: "q-date-time-picker__time-number",
|
|
1156
|
-
size: "small",
|
|
1157
|
-
inputmode: "numeric",
|
|
1158
|
-
"max-length": 2,
|
|
1159
|
-
"model-value": o(tt)(dn(n - 1)),
|
|
1160
|
-
onKeydown: (l) => Ke(l, "minutes", n - 1),
|
|
1161
|
-
"onUpdate:modelValue": (l) => yt(l, n - 1)
|
|
1162
|
-
}, null, 8, ["model-value", "onKeydown", "onUpdate:modelValue"]),
|
|
1163
|
-
i(o(p), {
|
|
1164
|
-
variant: "ghost",
|
|
1165
|
-
title: r.texts.decreaseMinute,
|
|
1166
|
-
onClick: (l) => hn(n - 1)
|
|
1167
|
-
}, {
|
|
1168
|
-
default: b(() => [
|
|
1169
|
-
i(
|
|
1170
|
-
o(I),
|
|
1171
|
-
Q({ ref_for: !0 }, r.icons.down),
|
|
1172
|
-
null,
|
|
1173
|
-
16
|
|
1174
|
-
/* FULL_PROPS */
|
|
1175
|
-
)
|
|
1176
|
-
]),
|
|
1177
|
-
_: 1
|
|
1178
|
-
/* STABLE */
|
|
1179
|
-
}, 8, ["title", "onClick"])
|
|
1180
|
-
]),
|
|
1181
|
-
De.value ? (m(), S(
|
|
1182
|
-
Y,
|
|
1183
|
-
{ key: 0 },
|
|
1184
|
-
[
|
|
1185
|
-
t[0] || (t[0] = k(
|
|
1186
|
-
"div",
|
|
1187
|
-
{ class: "q-date-time-picker__time-separator" },
|
|
1188
|
-
":",
|
|
1189
|
-
-1
|
|
1190
|
-
/* CACHED */
|
|
1191
|
-
)),
|
|
1192
|
-
k("div", Ma, [
|
|
1193
|
-
i(o(p), {
|
|
1194
|
-
variant: "ghost",
|
|
1195
|
-
title: r.texts.increaseSecond,
|
|
1196
|
-
onClick: (l) => bn(n - 1)
|
|
1197
|
-
}, {
|
|
1198
|
-
default: b(() => [
|
|
1199
|
-
i(
|
|
1200
|
-
o(I),
|
|
1201
|
-
Q({ ref_for: !0 }, r.icons.up),
|
|
1202
|
-
null,
|
|
1203
|
-
16
|
|
1204
|
-
/* FULL_PROPS */
|
|
1205
|
-
)
|
|
1206
|
-
]),
|
|
1207
|
-
_: 1
|
|
1208
|
-
/* STABLE */
|
|
1209
|
-
}, 8, ["title", "onClick"]),
|
|
1210
|
-
i(o(Fe), {
|
|
1211
|
-
class: "q-date-time-picker__time-number",
|
|
1212
|
-
size: "small",
|
|
1213
|
-
inputmode: "numeric",
|
|
1214
|
-
"max-length": 2,
|
|
1215
|
-
"model-value": o(tt)(vn(n - 1)),
|
|
1216
|
-
onKeydown: (l) => Ke(l, "seconds", n - 1),
|
|
1217
|
-
"onUpdate:modelValue": (l) => ht(l, n - 1)
|
|
1218
|
-
}, null, 8, ["model-value", "onKeydown", "onUpdate:modelValue"]),
|
|
1219
|
-
i(o(p), {
|
|
1220
|
-
variant: "ghost",
|
|
1221
|
-
title: r.texts.decreaseSecond,
|
|
1222
|
-
onClick: (l) => kn(n - 1)
|
|
1223
|
-
}, {
|
|
1224
|
-
default: b(() => [
|
|
1225
|
-
i(
|
|
1226
|
-
o(I),
|
|
1227
|
-
Q({ ref_for: !0 }, r.icons.down),
|
|
1228
|
-
null,
|
|
1229
|
-
16
|
|
1230
|
-
/* FULL_PROPS */
|
|
1231
|
-
)
|
|
1232
|
-
]),
|
|
1233
|
-
_: 1
|
|
1234
|
-
/* STABLE */
|
|
1235
|
-
}, 8, ["title", "onClick"])
|
|
1236
|
-
])
|
|
1237
|
-
],
|
|
1238
|
-
64
|
|
1239
|
-
/* STABLE_FRAGMENT */
|
|
1240
|
-
)) : x("v-if", !0)
|
|
1241
|
-
])
|
|
1242
|
-
]))),
|
|
1243
|
-
128
|
|
1244
|
-
/* KEYED_FRAGMENT */
|
|
1245
|
-
))
|
|
1246
|
-
])
|
|
1247
|
-
],
|
|
1248
|
-
2112
|
|
1249
|
-
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
1250
|
-
)) : w.value === "month" ? (m(), S(
|
|
1251
|
-
Y,
|
|
1252
|
-
{ key: 2 },
|
|
1253
|
-
[
|
|
1254
|
-
x(" Month View "),
|
|
1255
|
-
k("div", Ta, [
|
|
1256
|
-
(m(!0), S(
|
|
1257
|
-
Y,
|
|
1258
|
-
null,
|
|
1259
|
-
_e(Kt.value, (n, l) => (m(), W(o(p), {
|
|
1260
|
-
key: l,
|
|
1261
|
-
ref_for: !0,
|
|
1262
|
-
ref: (u) => Yt(u, l),
|
|
1263
|
-
"data-testid": "q-date-time-picker-month-option",
|
|
1264
|
-
"data-month-index": l,
|
|
1265
|
-
disabled: y.value === l,
|
|
1266
|
-
label: n,
|
|
1267
|
-
title: xe(l),
|
|
1268
|
-
variant: "ghost",
|
|
1269
|
-
onClick: () => z(l, !0)
|
|
1270
|
-
}, null, 8, ["data-month-index", "disabled", "label", "title", "onClick"]))),
|
|
1271
|
-
128
|
|
1272
|
-
/* KEYED_FRAGMENT */
|
|
1273
|
-
))
|
|
1274
|
-
])
|
|
1275
|
-
],
|
|
1276
|
-
2112
|
|
1277
|
-
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
1278
|
-
)) : w.value === "year" ? (m(), S(
|
|
1279
|
-
Y,
|
|
1280
|
-
{ key: 3 },
|
|
1281
|
-
[
|
|
1282
|
-
x(" Year View "),
|
|
1283
|
-
k("div", xa, [
|
|
1284
|
-
k("div", Ia, [
|
|
1285
|
-
i(o(p), {
|
|
1286
|
-
variant: "ghost",
|
|
1287
|
-
disabled: !st.value,
|
|
1288
|
-
title: r.texts.previousYears,
|
|
1289
|
-
onClick: jt
|
|
1290
|
-
}, {
|
|
1291
|
-
default: b(() => [
|
|
1292
|
-
i(
|
|
1293
|
-
o(I),
|
|
1294
|
-
G(X(r.icons.back)),
|
|
1295
|
-
null,
|
|
1296
|
-
16
|
|
1297
|
-
/* FULL_PROPS */
|
|
1298
|
-
)
|
|
1299
|
-
]),
|
|
1300
|
-
_: 1
|
|
1301
|
-
/* STABLE */
|
|
1302
|
-
}, 8, ["disabled", "title"]),
|
|
1303
|
-
k(
|
|
1304
|
-
"div",
|
|
1305
|
-
Ha,
|
|
1306
|
-
Xe(Ie.value.startYear) + " - " + Xe(Ie.value.endYear),
|
|
1307
|
-
1
|
|
1308
|
-
/* TEXT */
|
|
1309
|
-
),
|
|
1310
|
-
i(o(p), {
|
|
1311
|
-
variant: "ghost",
|
|
1312
|
-
disabled: !ct.value,
|
|
1313
|
-
title: r.texts.nextYears,
|
|
1314
|
-
onClick: Wt
|
|
1315
|
-
}, {
|
|
1316
|
-
default: b(() => [
|
|
1317
|
-
i(
|
|
1318
|
-
o(I),
|
|
1319
|
-
G(X(r.icons.forward)),
|
|
1320
|
-
null,
|
|
1321
|
-
16
|
|
1322
|
-
/* FULL_PROPS */
|
|
1323
|
-
)
|
|
1324
|
-
]),
|
|
1325
|
-
_: 1
|
|
1326
|
-
/* STABLE */
|
|
1327
|
-
}, 8, ["disabled", "title"])
|
|
1328
|
-
]),
|
|
1329
|
-
k("div", Sa, [
|
|
1330
|
-
(m(!0), S(
|
|
1331
|
-
Y,
|
|
1332
|
-
null,
|
|
1333
|
-
_e(Xt.value, (n, l) => (m(), W(o(p), {
|
|
1334
|
-
key: l,
|
|
1335
|
-
ref_for: !0,
|
|
1336
|
-
ref: (u) => At(u, n),
|
|
1337
|
-
"data-testid": "q-date-time-picker-year-option",
|
|
1338
|
-
"data-year": n,
|
|
1339
|
-
disabled: h.value === n,
|
|
1340
|
-
label: n.toString(),
|
|
1341
|
-
title: n,
|
|
1342
|
-
variant: "ghost",
|
|
1343
|
-
onClick: () => se(n, !0)
|
|
1344
|
-
}, null, 8, ["data-year", "disabled", "label", "title", "onClick"]))),
|
|
1345
|
-
128
|
|
1346
|
-
/* KEYED_FRAGMENT */
|
|
1347
|
-
))
|
|
1348
|
-
])
|
|
1349
|
-
])
|
|
1350
|
-
],
|
|
1351
|
-
2112
|
|
1352
|
-
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
1353
|
-
)) : x("v-if", !0),
|
|
1354
|
-
k("div", Ca, [
|
|
1355
|
-
E.value ? x("v-if", !0) : (m(), W(o(p), {
|
|
1356
|
-
key: 0,
|
|
1357
|
-
variant: "ghost",
|
|
1358
|
-
disabled: Nt.value,
|
|
1359
|
-
title: r.texts.today,
|
|
1360
|
-
onClick: ln
|
|
1361
|
-
}, {
|
|
1362
|
-
default: b(() => [
|
|
1363
|
-
i(
|
|
1364
|
-
o(I),
|
|
1365
|
-
G(X(r.icons.today)),
|
|
1366
|
-
null,
|
|
1367
|
-
16
|
|
1368
|
-
/* FULL_PROPS */
|
|
1369
|
-
)
|
|
1370
|
-
]),
|
|
1371
|
-
_: 1
|
|
1372
|
-
/* STABLE */
|
|
1373
|
-
}, 8, ["disabled", "title"])),
|
|
1374
|
-
re.value && w.value === "date" ? (m(), W(o(p), {
|
|
1375
|
-
key: 1,
|
|
1376
|
-
ref: "toggleTime",
|
|
1377
|
-
"data-testid": "q-date-time-picker-toggle-time",
|
|
1378
|
-
variant: "ghost",
|
|
1379
|
-
title: r.texts.toggleMode,
|
|
1380
|
-
onClick: je
|
|
1381
|
-
}, {
|
|
1382
|
-
default: b(() => [
|
|
1383
|
-
i(
|
|
1384
|
-
o(I),
|
|
1385
|
-
G(X(r.icons.clock)),
|
|
1386
|
-
null,
|
|
1387
|
-
16
|
|
1388
|
-
/* FULL_PROPS */
|
|
1389
|
-
)
|
|
1390
|
-
]),
|
|
1391
|
-
_: 1
|
|
1392
|
-
/* STABLE */
|
|
1393
|
-
}, 8, ["title"])) : w.value !== "date" && !E.value ? (m(), W(o(p), {
|
|
1394
|
-
key: 2,
|
|
1395
|
-
"data-testid": "q-date-time-picker-toggle-date",
|
|
1396
|
-
variant: "ghost",
|
|
1397
|
-
title: r.texts.toggleMode,
|
|
1398
|
-
onClick: On
|
|
1399
|
-
}, {
|
|
1400
|
-
default: b(() => [
|
|
1401
|
-
i(
|
|
1402
|
-
o(I),
|
|
1403
|
-
G(X(r.icons.calendar)),
|
|
1404
|
-
null,
|
|
1405
|
-
16
|
|
1406
|
-
/* FULL_PROPS */
|
|
1407
|
-
)
|
|
1408
|
-
]),
|
|
1409
|
-
_: 1
|
|
1410
|
-
/* STABLE */
|
|
1411
|
-
}, 8, ["title"])) : x("v-if", !0),
|
|
1412
|
-
r.clearable ? (m(), W(o(p), {
|
|
1413
|
-
key: 3,
|
|
1414
|
-
"data-testid": "q-date-time-picker-clear",
|
|
1415
|
-
variant: "ghost",
|
|
1416
|
-
disabled: !Oe.value,
|
|
1417
|
-
title: r.texts.clearValue,
|
|
1418
|
-
onClick: en
|
|
1419
|
-
}, {
|
|
1420
|
-
default: b(() => [
|
|
1421
|
-
i(
|
|
1422
|
-
o(I),
|
|
1423
|
-
G(X(r.icons.delete)),
|
|
1424
|
-
null,
|
|
1425
|
-
16
|
|
1426
|
-
/* FULL_PROPS */
|
|
1427
|
-
)
|
|
1428
|
-
]),
|
|
1429
|
-
_: 1
|
|
1430
|
-
/* STABLE */
|
|
1431
|
-
}, 8, ["disabled", "title"])) : x("v-if", !0)
|
|
1432
|
-
])
|
|
1433
|
-
],
|
|
1434
|
-
544
|
|
1435
|
-
/* NEED_HYDRATION, NEED_PATCH */
|
|
1436
|
-
)
|
|
1437
|
-
]),
|
|
1438
|
-
_: 1
|
|
1439
|
-
/* STABLE */
|
|
1440
|
-
}, 8, ["model-value", "anchor", "inline"])) : x("v-if", !0)
|
|
1441
|
-
],
|
|
1442
|
-
64
|
|
1443
|
-
/* STABLE_FRAGMENT */
|
|
1444
|
-
);
|
|
1445
|
-
};
|
|
1446
|
-
}
|
|
1
|
+
import { QButton as e } from "../QButton/index.js";
|
|
2
|
+
import { QIcon as t } from "../QIcon/index.js";
|
|
3
|
+
import { QTextField as n } from "../QTextField/index.js";
|
|
4
|
+
import { QOverlay as r } from "../QOverlay/index.js";
|
|
5
|
+
import { DEFAULT_ICONS as i, DEFAULT_TEXTS as a, MONTH_NAMES as o, WEEKDAY_NAMES as s } from "./constants.js";
|
|
6
|
+
import { QSwitch as c } from "../QSwitch/index.js";
|
|
7
|
+
import { applyMask as ee, clampNumericSegments as te, resolveCursorPosition as ne, useInputMask as re } from "../../composables/useInputMask/index.js";
|
|
8
|
+
import { convertDatePatternToMask as ie, formatDate as l, formatUsesSeconds as ae, formatUsesTime as oe, getDaysInMonth as se, getFirstDayOfMonth as ce, inputIncludesTimePortion as le, isBetween as ue, isSameDay as de, isTimeOnlyFormat as fe, padNumber as pe, parseDate as u, parseDateWithCompletion as me, parseIsoDate as he, uses12HourFormat as ge } from "../../utils/date.js";
|
|
9
|
+
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as _e, createVNode as _, defineComponent as ve, guardReactiveProps as v, mergeModels as y, mergeProps as b, nextTick as x, normalizeClass as ye, normalizeProps as S, onBeforeUnmount as be, openBlock as C, ref as w, renderList as xe, renderSlot as Se, toDisplayString as Ce, unref as T, useModel as we, useTemplateRef as E, watch as Te, withCtx as D } from "vue";
|
|
10
|
+
//#region src/components/QDateTimePicker/QDateTimePicker.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
+
var Ee = {
|
|
12
|
+
key: 0,
|
|
13
|
+
ref: "calendar",
|
|
14
|
+
class: "q-date-time-picker__calendar"
|
|
15
|
+
}, De = { class: "q-date-time-picker__header" }, Oe = { class: "q-date-time-picker__weekdays" }, ke = { class: "q-date-time-picker__time" }, Ae = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "q-date-time-picker__time-period"
|
|
18
|
+
}, je = { class: "q-date-time-picker__time-inputs" }, Me = { class: "q-date-time-picker__time-input-group" }, Ne = { class: "q-date-time-picker__time-input-group" }, Pe = { class: "q-date-time-picker__time-input-group" }, Fe = { class: "q-date-time-picker__month-grid" }, Ie = { class: "q-date-time-picker__year" }, Le = { class: "q-date-time-picker__year-change" }, Re = { class: "q-date-time-picker__year-interval" }, ze = { class: "q-date-time-picker__year-grid" }, Be = { class: "q-date-time-picker__bottom-bar" }, O = 1001, k = 9999, Ve = 26, He = "a[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex]:not([tabindex=\"-1\"]), [contenteditable]", Ue = /*@__PURE__*/ ve({
|
|
19
|
+
inheritAttrs: !1,
|
|
20
|
+
__name: "QDateTimePicker",
|
|
21
|
+
props: /*@__PURE__*/ y({
|
|
22
|
+
id: {},
|
|
23
|
+
class: {},
|
|
24
|
+
label: {},
|
|
25
|
+
required: { type: Boolean },
|
|
26
|
+
for: {},
|
|
27
|
+
labelPosition: {},
|
|
28
|
+
size: {},
|
|
29
|
+
readonly: { type: Boolean },
|
|
30
|
+
disabled: { type: Boolean },
|
|
31
|
+
invalid: { type: Boolean },
|
|
32
|
+
placeholder: {},
|
|
33
|
+
inline: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: !1
|
|
36
|
+
},
|
|
37
|
+
clearable: { type: Boolean },
|
|
38
|
+
format: { default: "dd/MM/yyyy HH:mm" },
|
|
39
|
+
range: { type: Boolean },
|
|
40
|
+
icons: { default: () => i },
|
|
41
|
+
texts: { default: () => a }
|
|
42
|
+
}, {
|
|
43
|
+
modelValue: {},
|
|
44
|
+
modelModifiers: {}
|
|
45
|
+
}),
|
|
46
|
+
emits: ["update:modelValue"],
|
|
47
|
+
setup(i) {
|
|
48
|
+
let a = i, ve = we(i, "modelValue"), y = f({
|
|
49
|
+
get: () => ve.value,
|
|
50
|
+
set: (e) => ve.value = e || void 0
|
|
51
|
+
}), Ue = f(() => a.readonly || a.disabled ? void 0 : a.placeholder), We = f(() => oe(a.format)), Ge = f(() => ae(a.format)), A = f(() => ge(a.format)), j = f(() => fe(a.format)), Ke = f(() => L.value === (/* @__PURE__ */ new Date()).getMonth() && R.value === (/* @__PURE__ */ new Date()).getFullYear()), M = w(!1), qe = w(!1), N = w(""), P = w(null), F = w(!1), Je = 0, I = w("date"), L = w((/* @__PURE__ */ new Date()).getMonth()), R = w((/* @__PURE__ */ new Date()).getFullYear()), Ye = w((/* @__PURE__ */ new Date()).getFullYear()), Xe = null, z = !1, Ze = !1, Qe = !1, B = null;
|
|
52
|
+
function $e() {
|
|
53
|
+
queueMicrotask(() => {
|
|
54
|
+
requestAnimationFrame(() => {
|
|
55
|
+
let e = Q(), t = document.activeElement;
|
|
56
|
+
e && (t === e || t instanceof Node && V.value?.contains(t)) && (z = !0);
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
let et = E("field"), V = E("menu"), tt = E("calendar"), nt = E("monthHeader"), rt = E("yearHeader"), it = E("toggleTime"), at = /* @__PURE__ */ new Map(), ot = /* @__PURE__ */ new Map();
|
|
61
|
+
function st(e) {
|
|
62
|
+
if (!e) return null;
|
|
63
|
+
if (e instanceof HTMLElement) return e;
|
|
64
|
+
if (typeof e == "object" && "$el" in e) {
|
|
65
|
+
let t = e.$el;
|
|
66
|
+
return t instanceof HTMLElement ? t : null;
|
|
67
|
+
}
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
function ct(e, t) {
|
|
71
|
+
let n = st(e);
|
|
72
|
+
n ? at.set(t, n) : at.delete(t);
|
|
73
|
+
}
|
|
74
|
+
function lt(e, t) {
|
|
75
|
+
let n = st(e);
|
|
76
|
+
n ? ot.set(t, n) : ot.delete(t);
|
|
77
|
+
}
|
|
78
|
+
function ut(e) {
|
|
79
|
+
st(e)?.focus();
|
|
80
|
+
}
|
|
81
|
+
let H = f(() => ({
|
|
82
|
+
getMonthIndex: (e, t) => {
|
|
83
|
+
let n = e.toLowerCase();
|
|
84
|
+
return o.findIndex((e) => {
|
|
85
|
+
let r = a.texts[e] ?? e;
|
|
86
|
+
return (t ? r.substring(0, 3) : r).toLowerCase() === n;
|
|
87
|
+
});
|
|
88
|
+
},
|
|
89
|
+
getWeekdayIndex: (e, t) => {
|
|
90
|
+
let n = e.toLowerCase();
|
|
91
|
+
for (let e = 0; e < 7; e++) {
|
|
92
|
+
let r = s[(e + 6) % 7], i = a.texts[r] ?? r;
|
|
93
|
+
if ((t ? i.substring(0, 3) : i).toLowerCase() === n) return e;
|
|
94
|
+
}
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
})), U = f(() => {
|
|
98
|
+
let e = y.value;
|
|
99
|
+
return e ? e instanceof Date ? e : Array.isArray(e) && e.length > 0 ? e[0] : typeof e == "string" ? X(e) : null : null;
|
|
100
|
+
}), dt = f(() => {
|
|
101
|
+
let e = y.value;
|
|
102
|
+
return Array.isArray(e) && e.length > 1 ? e[1] : null;
|
|
103
|
+
}), W = w(null), ft = w(null), G = w(null), K = w(!1), pt = f(() => !K.value || !W.value ? U.value : G.value && G.value < W.value ? G.value : W.value), mt = f(() => {
|
|
104
|
+
if (!a.range) return U.value;
|
|
105
|
+
if (!K.value || !W.value) return dt.value;
|
|
106
|
+
let e = G.value ?? ft.value;
|
|
107
|
+
return e ? e < W.value ? W.value : e : null;
|
|
108
|
+
}), q = f(() => ({
|
|
109
|
+
getMonthName: (e, t) => {
|
|
110
|
+
let n = St(e);
|
|
111
|
+
return t ? n.substring(0, 3) : n;
|
|
112
|
+
},
|
|
113
|
+
getWeekdayName: (e, t) => {
|
|
114
|
+
let n = s[(e + 6) % 7], r = a.texts[n] ?? n;
|
|
115
|
+
return t ? r.substring(0, 3) : r;
|
|
116
|
+
}
|
|
117
|
+
})), ht = f(() => {
|
|
118
|
+
let e = y.value;
|
|
119
|
+
if (!e) return "";
|
|
120
|
+
if (Array.isArray(e)) return e.map((e) => e instanceof Date ? l(e, a.format, q.value) : e).join(" - ");
|
|
121
|
+
if (e instanceof Date) return l(e, a.format, q.value);
|
|
122
|
+
if (typeof e == "string") {
|
|
123
|
+
let t = X(e);
|
|
124
|
+
return t ? l(t, a.format, q.value) : String(e);
|
|
125
|
+
}
|
|
126
|
+
return String(e);
|
|
127
|
+
}), gt = f(() => P.value ?? ht.value);
|
|
128
|
+
function _t() {
|
|
129
|
+
N.value = gt.value;
|
|
130
|
+
}
|
|
131
|
+
Te(gt, () => {
|
|
132
|
+
qe.value || _t();
|
|
133
|
+
}, { immediate: !0 });
|
|
134
|
+
let vt = f(() => {
|
|
135
|
+
let e = ce(new Date(R.value, L.value, 1)), t = se(L.value, R.value), n = (e.getDay() + 6) % 7, r = [], i = L.value === 0 ? 11 : L.value - 1, a = L.value === 0 ? R.value - 1 : R.value, o = se(i, a);
|
|
136
|
+
for (let e = n - 1; e >= 0; e--) yt(r, new Date(a, i, o - e), !1);
|
|
137
|
+
for (let e = 1; e <= t; e++) yt(r, new Date(R.value, L.value, e), !0);
|
|
138
|
+
let s = 7 - r.length % 7, c = s === 7 ? 0 : s;
|
|
139
|
+
for (let e = 1; e <= c; e++) yt(r, new Date(R.value, L.value + 1, e), !1);
|
|
140
|
+
return r;
|
|
141
|
+
});
|
|
142
|
+
function yt(e, t, n) {
|
|
143
|
+
let r = pt.value, i = mt.value, a = t.getFullYear(), o = a < O || a > k;
|
|
144
|
+
e.push({
|
|
145
|
+
date: t,
|
|
146
|
+
isCurrentMonth: n,
|
|
147
|
+
isToday: de(t, /* @__PURE__ */ new Date()),
|
|
148
|
+
isSelected: r ? de(t, r) : !1,
|
|
149
|
+
isRangeStart: !!r && de(t, r),
|
|
150
|
+
isRangeEnd: !!i && de(t, i),
|
|
151
|
+
isInRange: r && i ? ue(t, r, i) : !1,
|
|
152
|
+
isDisabled: o
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
let bt = f(() => s.map((e) => {
|
|
156
|
+
let t = e;
|
|
157
|
+
return a.texts[t]?.substring(0, 2) ?? e;
|
|
158
|
+
})), xt = f(() => Array.from({ length: 12 }, (e, t) => St(t, 3)));
|
|
159
|
+
function St(e, t = 0) {
|
|
160
|
+
let n = o[e], r = a.texts[n] ?? o[e];
|
|
161
|
+
return t <= 0 ? r : r.substring(0, t);
|
|
162
|
+
}
|
|
163
|
+
function Ct(e) {
|
|
164
|
+
let t = e - Math.floor(Ve / 2), n = t + Ve;
|
|
165
|
+
return t < O && (t = O, n = Math.min(t + Ve, k)), n > k && (n = k, t = Math.max(O, n - Ve)), {
|
|
166
|
+
startYear: t,
|
|
167
|
+
endYear: n
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
function wt(e) {
|
|
171
|
+
let { startYear: t, endYear: n } = Ct(e);
|
|
172
|
+
return Array.from({ length: n - t + 1 }, (e, n) => t + n);
|
|
173
|
+
}
|
|
174
|
+
function Tt() {
|
|
175
|
+
Ot.value && (Ye.value -= Ve);
|
|
176
|
+
}
|
|
177
|
+
function Et() {
|
|
178
|
+
kt.value && (Ye.value += Ve);
|
|
179
|
+
}
|
|
180
|
+
let Dt = f(() => Ct(Ye.value)), Ot = f(() => Dt.value.startYear > O), kt = f(() => Dt.value.endYear < k), At = f(() => L.value === 0 ? R.value - 1 : R.value), jt = f(() => L.value === 11 ? R.value + 1 : R.value), Mt = f(() => At.value >= O), Nt = f(() => jt.value <= k), Pt = f(() => wt(Ye.value)), Ft = f(() => j.value ? a.icons.clock : a.icons.calendar), It = f(() => ie(a.format)), Lt = f(() => `${It.value} - ${It.value}`);
|
|
181
|
+
re(() => et?.value?.inputRef, () => a.range ? Lt.value : It.value), Te(() => et?.value?.inputRef, (e, t, n) => {
|
|
182
|
+
let r = qn(e);
|
|
183
|
+
B = r, r && (r.addEventListener("click", Wn), r.addEventListener("paste", Pn, !0), n(() => {
|
|
184
|
+
B = null, r.removeEventListener("click", Wn), r.removeEventListener("paste", Pn, !0);
|
|
185
|
+
}));
|
|
186
|
+
}, { flush: "post" }), Te(y, () => {
|
|
187
|
+
P.value = null, _t();
|
|
188
|
+
});
|
|
189
|
+
function Rt(e) {
|
|
190
|
+
return e === void 0 ? !1 : typeof e == "string" ? e.trim().length > 0 : e instanceof Date ? !0 : Array.isArray(e) ? e.length > 0 : !1;
|
|
191
|
+
}
|
|
192
|
+
let zt = f(() => a.clearable && !a.readonly && !a.disabled && Rt(y.value));
|
|
193
|
+
function Bt() {
|
|
194
|
+
zt.value && (Qt(), y.value = void 0, N.value = "", ar());
|
|
195
|
+
}
|
|
196
|
+
function Vt(e) {
|
|
197
|
+
!a.range || !K.value || !W.value || e.getFullYear() < O || e.getFullYear() > k || (G.value = new Date(e));
|
|
198
|
+
}
|
|
199
|
+
function Ht() {
|
|
200
|
+
G.value = null;
|
|
201
|
+
}
|
|
202
|
+
function Ut(e) {
|
|
203
|
+
let t = e.currentTarget, n = e.relatedTarget;
|
|
204
|
+
!t || n && t.contains(n) || Ht();
|
|
205
|
+
}
|
|
206
|
+
function Wt(e) {
|
|
207
|
+
if (!a.range || !K.value || !W.value) return;
|
|
208
|
+
let t = e.touches.item(0);
|
|
209
|
+
if (!t) return;
|
|
210
|
+
let n = document.elementFromPoint(t.clientX, t.clientY)?.closest("[data-day-index]");
|
|
211
|
+
if (!n) return;
|
|
212
|
+
let r = Number(n.dataset.dayIndex);
|
|
213
|
+
if (Number.isNaN(r)) return;
|
|
214
|
+
let i = vt.value[r];
|
|
215
|
+
i && Vt(i.date);
|
|
216
|
+
}
|
|
217
|
+
function Gt(e) {
|
|
218
|
+
if (!(a.readonly || a.disabled) && !(e.getFullYear() < O || e.getFullYear() > k)) if (a.range) if (K.value) {
|
|
219
|
+
let t = W.value ?? new Date(e), n = new Date(e), [r, i] = n < t ? [n, t] : [t, n];
|
|
220
|
+
We.value && i.setHours(23, 59, Ge.value ? 59 : 0, 0), y.value = [r, i], W.value = null, ft.value = null, G.value = null, K.value = !1;
|
|
221
|
+
} else {
|
|
222
|
+
let t = new Date(e);
|
|
223
|
+
We.value && W.value && t.setHours(W.value.getHours(), W.value.getMinutes(), W.value.getSeconds(), W.value.getMilliseconds()), W.value = t, ft.value = null, G.value = null, K.value = !0;
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
let t = new Date(e);
|
|
227
|
+
U.value && !An(U.value) ? t.setHours(U.value.getHours(), U.value.getMinutes(), U.value.getSeconds()) : We.value && jn(t), y.value = t;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
function Kt(e, t) {
|
|
231
|
+
R.value = e, t && er("year");
|
|
232
|
+
}
|
|
233
|
+
function J(e, t) {
|
|
234
|
+
L.value = e, t && er("month");
|
|
235
|
+
}
|
|
236
|
+
function qt() {
|
|
237
|
+
Mt.value && (L.value === 0 ? (J(11), Kt(R.value - 1)) : J(L.value - 1));
|
|
238
|
+
}
|
|
239
|
+
function Jt() {
|
|
240
|
+
Nt.value && (L.value === 11 ? (J(0), Kt(R.value + 1)) : J(L.value + 1));
|
|
241
|
+
}
|
|
242
|
+
function Yt() {
|
|
243
|
+
J((/* @__PURE__ */ new Date()).getMonth()), Kt((/* @__PURE__ */ new Date()).getFullYear()), $n();
|
|
244
|
+
}
|
|
245
|
+
function Xt() {
|
|
246
|
+
let e = U.value, t = y.value;
|
|
247
|
+
if (a.range && Array.isArray(t) && t.length > 0) {
|
|
248
|
+
let n = t[0];
|
|
249
|
+
n instanceof Date ? e = n : typeof n == "string" && (e = u(n, a.format, H.value));
|
|
250
|
+
}
|
|
251
|
+
e ??= /* @__PURE__ */ new Date(), J(e.getMonth()), Kt(e.getFullYear()), $n();
|
|
252
|
+
}
|
|
253
|
+
function Zt(e) {
|
|
254
|
+
return a.range ? e === 1 ? dt.value ?? ft.value : U.value ?? W.value : U.value;
|
|
255
|
+
}
|
|
256
|
+
function Qt() {
|
|
257
|
+
W.value = null, ft.value = null, G.value = null, K.value = !1;
|
|
258
|
+
}
|
|
259
|
+
function $t(e, t) {
|
|
260
|
+
return t < e ? [new Date(t), new Date(e)] : [new Date(e), new Date(t)];
|
|
261
|
+
}
|
|
262
|
+
function en() {
|
|
263
|
+
if (!a.range || !j.value) return;
|
|
264
|
+
let e = y.value;
|
|
265
|
+
if (!Array.isArray(e) || e.length < 2) return;
|
|
266
|
+
let t = e[0], n = e[1];
|
|
267
|
+
!(t instanceof Date) || !(n instanceof Date) || n >= t || (y.value = $t(t, n));
|
|
268
|
+
}
|
|
269
|
+
function tn(e, t) {
|
|
270
|
+
if (!a.range) {
|
|
271
|
+
y.value = t;
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
274
|
+
if (j.value) {
|
|
275
|
+
e === 0 ? W.value = t : ft.value = t;
|
|
276
|
+
let n = e === 0 ? t : U.value ?? W.value, r = e === 1 ? t : dt.value;
|
|
277
|
+
if (!n || !r) return;
|
|
278
|
+
y.value = [new Date(n), new Date(r)], Qt();
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
if (K.value) {
|
|
282
|
+
e === 0 && (W.value = t);
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
285
|
+
let n = U.value, r = dt.value;
|
|
286
|
+
!n || !r || (y.value = e === 1 ? [n, t] : [t, r]);
|
|
287
|
+
}
|
|
288
|
+
function Y(e, t) {
|
|
289
|
+
let n = Zt(e) ?? (() => {
|
|
290
|
+
let e = /* @__PURE__ */ new Date();
|
|
291
|
+
return e.setHours(0, 0, 0, 0), e;
|
|
292
|
+
})(), r = new Date(n);
|
|
293
|
+
t(r), tn(e, r);
|
|
294
|
+
}
|
|
295
|
+
function nn(e) {
|
|
296
|
+
let t = Zt(e);
|
|
297
|
+
if (!t) return A.value ? 12 : 0;
|
|
298
|
+
let n = t.getHours();
|
|
299
|
+
return A.value ? n % 12 || 12 : n;
|
|
300
|
+
}
|
|
301
|
+
function rn(e) {
|
|
302
|
+
return Zt(e)?.getMinutes() ?? 0;
|
|
303
|
+
}
|
|
304
|
+
function an(e) {
|
|
305
|
+
return Zt(e)?.getSeconds() ?? 0;
|
|
306
|
+
}
|
|
307
|
+
function on(e) {
|
|
308
|
+
let t = Zt(e);
|
|
309
|
+
return t ? t.getHours() >= 12 : !1;
|
|
310
|
+
}
|
|
311
|
+
function sn(e, t) {
|
|
312
|
+
return t ? e === 12 ? 12 : e + 12 : e === 12 ? 0 : e;
|
|
313
|
+
}
|
|
314
|
+
function cn(e) {
|
|
315
|
+
Y(e, (e) => {
|
|
316
|
+
if (A.value) {
|
|
317
|
+
let t = e.getHours() % 12 || 12, n = t >= 12 ? 1 : t + 1, r = e.getHours() >= 12;
|
|
318
|
+
e.setHours(sn(n, r));
|
|
319
|
+
} else e.setHours(e.getHours() >= 23 ? 0 : e.getHours() + 1);
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
function ln(e) {
|
|
323
|
+
Y(e, (e) => {
|
|
324
|
+
if (A.value) {
|
|
325
|
+
let t = e.getHours() % 12 || 12, n = t <= 1 ? 12 : t - 1, r = e.getHours() >= 12;
|
|
326
|
+
e.setHours(sn(n, r));
|
|
327
|
+
} else e.setHours(e.getHours() <= 0 ? 23 : e.getHours() - 1);
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
function un(e) {
|
|
331
|
+
Y(e, (e) => {
|
|
332
|
+
e.setMinutes(e.getMinutes() >= 59 ? 0 : e.getMinutes() + 1);
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
function dn(e) {
|
|
336
|
+
Y(e, (e) => {
|
|
337
|
+
e.setMinutes(e.getMinutes() <= 0 ? 59 : e.getMinutes() - 1);
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
function fn(e) {
|
|
341
|
+
Y(e, (e) => {
|
|
342
|
+
e.setSeconds(e.getSeconds() >= 59 ? 0 : e.getSeconds() + 1);
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
function pn(e) {
|
|
346
|
+
Y(e, (e) => {
|
|
347
|
+
e.setSeconds(e.getSeconds() <= 0 ? 59 : e.getSeconds() - 1);
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
function mn(e) {
|
|
351
|
+
return (e ?? "").replace(/\D/g, "");
|
|
352
|
+
}
|
|
353
|
+
function hn(e) {
|
|
354
|
+
return Math.min(23, Math.max(0, e));
|
|
355
|
+
}
|
|
356
|
+
function gn(e) {
|
|
357
|
+
return Math.min(12, Math.max(1, e));
|
|
358
|
+
}
|
|
359
|
+
function _n(e) {
|
|
360
|
+
return Math.min(59, Math.max(0, e));
|
|
361
|
+
}
|
|
362
|
+
function vn(e, t) {
|
|
363
|
+
let n = mn(e).slice(0, 2);
|
|
364
|
+
if (n === "") return;
|
|
365
|
+
let r = Number.parseInt(n, 10);
|
|
366
|
+
if (Number.isNaN(r)) return;
|
|
367
|
+
let i = A.value ? gn(r) : hn(r);
|
|
368
|
+
Y(t, (e) => {
|
|
369
|
+
A.value ? e.setHours(sn(i, e.getHours() >= 12)) : e.setHours(i);
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
function yn(e, t) {
|
|
373
|
+
let n = mn(e).slice(0, 2);
|
|
374
|
+
if (n === "") return;
|
|
375
|
+
let r = Number.parseInt(n, 10);
|
|
376
|
+
if (Number.isNaN(r)) return;
|
|
377
|
+
let i = _n(r);
|
|
378
|
+
Y(t, (e) => {
|
|
379
|
+
e.setMinutes(i);
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
function bn(e, t) {
|
|
383
|
+
let n = mn(e).slice(0, 2);
|
|
384
|
+
if (n === "") return;
|
|
385
|
+
let r = Number.parseInt(n, 10);
|
|
386
|
+
if (Number.isNaN(r)) return;
|
|
387
|
+
let i = _n(r);
|
|
388
|
+
Y(t, (e) => {
|
|
389
|
+
e.setSeconds(i);
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
async function xn(e, t, n) {
|
|
393
|
+
if (e.ctrlKey || e.altKey || e.metaKey || !/^\d$/.test(e.key)) return;
|
|
394
|
+
let r = e.target;
|
|
395
|
+
if (!r) return;
|
|
396
|
+
let i = r.selectionStart, a = r.selectionEnd;
|
|
397
|
+
if (i === null || a === null || i !== a || r.maxLength <= 0 || r.value.length < r.maxLength || i >= r.value.length) return;
|
|
398
|
+
e.preventDefault();
|
|
399
|
+
let o = `${r.value.slice(0, i)}${e.key}${r.value.slice(i + 1)}`;
|
|
400
|
+
t === "hours" ? vn(o, n) : t === "minutes" ? yn(o, n) : bn(o, n);
|
|
401
|
+
let s = Math.min(i + 1, r.maxLength);
|
|
402
|
+
await x(), r.setSelectionRange(s, s);
|
|
403
|
+
}
|
|
404
|
+
function Sn(e, t) {
|
|
405
|
+
Y(t, (t) => {
|
|
406
|
+
let n = t.getHours() % 12 || 12;
|
|
407
|
+
t.setHours(sn(n, e));
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
async function Cn(e, t, n, r) {
|
|
411
|
+
if (!e) return;
|
|
412
|
+
let i = ne(t, n, r), a = () => e.setSelectionRange(i, i);
|
|
413
|
+
a(), await x(), a(), await new Promise((e) => {
|
|
414
|
+
requestAnimationFrame(() => {
|
|
415
|
+
a(), e();
|
|
416
|
+
});
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
async function wn(e, t, n, r) {
|
|
420
|
+
if (n === t) {
|
|
421
|
+
N.value !== n && (N.value = n);
|
|
422
|
+
return;
|
|
423
|
+
}
|
|
424
|
+
N.value = n, await Cn(e, t, n, r);
|
|
425
|
+
}
|
|
426
|
+
function X(e, t) {
|
|
427
|
+
let n = e.trim();
|
|
428
|
+
return n ? u(n, a.format, H.value) || he(n) || Kn(n) || (t?.complete ? me(n, a.format, H.value) : null) : null;
|
|
429
|
+
}
|
|
430
|
+
async function Tn(e) {
|
|
431
|
+
if (Je > 0) return;
|
|
432
|
+
if (a.readonly || a.disabled) {
|
|
433
|
+
_t();
|
|
434
|
+
return;
|
|
435
|
+
}
|
|
436
|
+
let t = Q(), n = t?.selectionStart ?? 0, r = e ?? "";
|
|
437
|
+
if (!r) {
|
|
438
|
+
y.value = void 0, P.value = null, N.value = "", F.value = !1;
|
|
439
|
+
return;
|
|
440
|
+
}
|
|
441
|
+
if (a.range) {
|
|
442
|
+
let e = En(r);
|
|
443
|
+
if (e) {
|
|
444
|
+
y.value = e, P.value = null, N.value = e.map((e) => l(e, a.format, q.value)).join(" - "), F.value = !1;
|
|
445
|
+
return;
|
|
446
|
+
}
|
|
447
|
+
let i = ee(r, Lt.value);
|
|
448
|
+
await wn(t, r, i, n), P.value = i;
|
|
449
|
+
let o = En(i);
|
|
450
|
+
if (o) {
|
|
451
|
+
y.value = o, P.value = null;
|
|
452
|
+
let e = o.map((e) => l(e, a.format, q.value)).join(" - ");
|
|
453
|
+
e !== i && (N.value = e, await Cn(t, i, e, n)), F.value = !1;
|
|
454
|
+
}
|
|
455
|
+
return;
|
|
456
|
+
}
|
|
457
|
+
let i = X(r);
|
|
458
|
+
if (i) {
|
|
459
|
+
let e = Z(i, r);
|
|
460
|
+
y.value = e, P.value = null, N.value = l(e, a.format, q.value), F.value = !1;
|
|
461
|
+
return;
|
|
462
|
+
}
|
|
463
|
+
let o = te(ee(r, It.value), a.format), s = o, c = u(o, a.format, H.value);
|
|
464
|
+
if (!c) {
|
|
465
|
+
let e = u(r, a.format, H.value);
|
|
466
|
+
e && (s = r, c = e);
|
|
467
|
+
}
|
|
468
|
+
if (!c) {
|
|
469
|
+
let e = On(a.format);
|
|
470
|
+
e && (c = u(o, e, H.value) ?? u(r, e, H.value));
|
|
471
|
+
}
|
|
472
|
+
if (await wn(t, r, s, n), P.value = s, c) {
|
|
473
|
+
let e = Z(c, r);
|
|
474
|
+
y.value = e, P.value = null;
|
|
475
|
+
let i = l(e, a.format, q.value);
|
|
476
|
+
i !== s && (N.value = i, await Cn(t, s, i, n)), F.value = !1;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
function En(e, t) {
|
|
480
|
+
let n = e.split(" - ");
|
|
481
|
+
if (n.length !== 2) return null;
|
|
482
|
+
let r = (e) => X(e, t), i = r(n[0] ?? ""), a = r(n[1] ?? "");
|
|
483
|
+
return !i || !a ? null : a < i ? [a, i] : [i, a];
|
|
484
|
+
}
|
|
485
|
+
function Dn() {
|
|
486
|
+
if (a.readonly || a.disabled) return !1;
|
|
487
|
+
let e = P.value ?? N.value;
|
|
488
|
+
if (!e) return !1;
|
|
489
|
+
if (a.range) {
|
|
490
|
+
let t = En(ee(e, Lt.value), { complete: !0 });
|
|
491
|
+
return t ? (y.value = t, P.value = null, F.value = !1, N.value = t.map((e) => l(e, a.format, q.value)).join(" - "), !0) : (P.value = null, y.value = void 0, F.value = !0, N.value = "", !1);
|
|
492
|
+
}
|
|
493
|
+
let t = te(ee(e, It.value), a.format), n = X(e, { complete: !0 }) ?? me(t, a.format, H.value);
|
|
494
|
+
if (!n) return P.value = null, y.value = void 0, F.value = !0, N.value = "", !1;
|
|
495
|
+
let r = X(e) || le(t, a.format) ? n : Z(n, t);
|
|
496
|
+
return y.value = r, P.value = null, F.value = !1, N.value = l(r, a.format, q.value), !0;
|
|
497
|
+
}
|
|
498
|
+
function On(e) {
|
|
499
|
+
let t = e.replace(/[\sT]+(?:'[^']*'|HH|H|hh|h|mm|m|ss|s|SSS|S|a).*$/i, "").trim();
|
|
500
|
+
return t && t !== e ? t : null;
|
|
501
|
+
}
|
|
502
|
+
function kn(e) {
|
|
503
|
+
return !We.value || X(e) || le(e, a.format) ? !0 : /\dT\d|\d{1,2}:\d{2}/.test(e);
|
|
504
|
+
}
|
|
505
|
+
function An(e) {
|
|
506
|
+
return e.getHours() === 0 && e.getMinutes() === 0 && e.getSeconds() === 0 && e.getMilliseconds() === 0;
|
|
507
|
+
}
|
|
508
|
+
function jn(e) {
|
|
509
|
+
let t = /* @__PURE__ */ new Date();
|
|
510
|
+
e.setHours(t.getHours(), t.getMinutes(), Ge.value ? t.getSeconds() : 0, Ge.value ? t.getMilliseconds() : 0);
|
|
511
|
+
}
|
|
512
|
+
function Z(e, t) {
|
|
513
|
+
if (a.range || !We.value || t !== void 0 && kn(t)) return e;
|
|
514
|
+
let n = new Date(e);
|
|
515
|
+
return jn(n), n;
|
|
516
|
+
}
|
|
517
|
+
function Mn(e) {
|
|
518
|
+
if (a.range) return En(e);
|
|
519
|
+
let t = u(e, a.format, H.value);
|
|
520
|
+
if (t) return Z(t, e);
|
|
521
|
+
let n = he(e);
|
|
522
|
+
if (n) return Z(n, e);
|
|
523
|
+
let r = Kn(e);
|
|
524
|
+
if (r) return Z(r, e);
|
|
525
|
+
let i = me(e, a.format, H.value);
|
|
526
|
+
if (i) return Z(i, e);
|
|
527
|
+
let o = On(a.format);
|
|
528
|
+
if (o) {
|
|
529
|
+
let t = u(e, o, H.value);
|
|
530
|
+
if (t) return Z(t, e);
|
|
531
|
+
}
|
|
532
|
+
return null;
|
|
533
|
+
}
|
|
534
|
+
async function Nn(e) {
|
|
535
|
+
if (F.value = !1, P.value = null, Array.isArray(e)) {
|
|
536
|
+
let t = e.map((e) => l(e, a.format, q.value)).join(" - ");
|
|
537
|
+
Je += 1, y.value = e, N.value = t, await x(), --Je;
|
|
538
|
+
return;
|
|
539
|
+
}
|
|
540
|
+
let t = l(e, a.format, q.value);
|
|
541
|
+
Je += 1, y.value = e, N.value = t, await x(), --Je;
|
|
542
|
+
}
|
|
543
|
+
function Pn(e) {
|
|
544
|
+
if (a.readonly || a.disabled) {
|
|
545
|
+
e.preventDefault();
|
|
546
|
+
return;
|
|
547
|
+
}
|
|
548
|
+
let t = e.clipboardData?.getData("text/plain")?.trim() || e.clipboardData?.getData("text")?.trim() || "";
|
|
549
|
+
if (!t) {
|
|
550
|
+
e.preventDefault();
|
|
551
|
+
return;
|
|
552
|
+
}
|
|
553
|
+
let n = Mn(t);
|
|
554
|
+
if (!n) {
|
|
555
|
+
e.preventDefault();
|
|
556
|
+
return;
|
|
557
|
+
}
|
|
558
|
+
e.preventDefault(), Nn(n);
|
|
559
|
+
}
|
|
560
|
+
function Fn(e) {
|
|
561
|
+
let t = e.target;
|
|
562
|
+
if (!(t instanceof Element) || !V.value) return null;
|
|
563
|
+
let n = t.closest("button, input, select, textarea, a[href], [tabindex], [contenteditable]");
|
|
564
|
+
return n && V.value.contains(n) ? n : null;
|
|
565
|
+
}
|
|
566
|
+
function In(e) {
|
|
567
|
+
return !(e.matches(":disabled") || e.getAttribute("aria-disabled") === "true" || e.getAttribute("tabindex") === "-1");
|
|
568
|
+
}
|
|
569
|
+
function Ln(e) {
|
|
570
|
+
if (!(e.target instanceof Node) || !V.value?.contains(e.target)) return;
|
|
571
|
+
Ze = !0;
|
|
572
|
+
let t = Fn(e);
|
|
573
|
+
t && !In(t) && e.preventDefault();
|
|
574
|
+
}
|
|
575
|
+
function Rn() {
|
|
576
|
+
return V.value ? Array.from(V.value.querySelectorAll(He)).filter((e) => e.offsetWidth > 0 || e.offsetHeight > 0 || e.getClientRects().length > 0) : [];
|
|
577
|
+
}
|
|
578
|
+
function zn() {
|
|
579
|
+
let e = Q();
|
|
580
|
+
if (!e) return;
|
|
581
|
+
let t = Array.from(document.querySelectorAll(He)).filter((e) => e.offsetWidth > 0 || e.offsetHeight > 0 || e.getClientRects().length > 0), n = t.indexOf(e);
|
|
582
|
+
n >= 0 && n < t.length - 1 && t[n + 1]?.focus();
|
|
583
|
+
}
|
|
584
|
+
function Bn(e) {
|
|
585
|
+
if (e.key !== "Tab" || !M.value || a.readonly || a.disabled) return;
|
|
586
|
+
if (e.shiftKey) {
|
|
587
|
+
z = !1, M.value = !1;
|
|
588
|
+
return;
|
|
589
|
+
}
|
|
590
|
+
let [t] = Rn();
|
|
591
|
+
t && (e.preventDefault(), Ze = !0, t.focus());
|
|
592
|
+
}
|
|
593
|
+
async function Vn(e) {
|
|
594
|
+
if (e.key !== "Tab") return;
|
|
595
|
+
let t = Rn();
|
|
596
|
+
if (!t.length) return;
|
|
597
|
+
let n = t[0], r = t[t.length - 1], i = document.activeElement;
|
|
598
|
+
if (e.shiftKey) {
|
|
599
|
+
if (i !== n) return;
|
|
600
|
+
e.preventDefault(), Ze = !0, ar();
|
|
601
|
+
return;
|
|
602
|
+
}
|
|
603
|
+
i === r && (e.preventDefault(), Qe = !0, M.value = !1, await x(), zn());
|
|
604
|
+
}
|
|
605
|
+
async function Hn(e) {
|
|
606
|
+
if (Dn(), Ze) {
|
|
607
|
+
Ze = !1;
|
|
608
|
+
return;
|
|
609
|
+
}
|
|
610
|
+
let t = e?.relatedTarget;
|
|
611
|
+
if (t instanceof Node && V.value?.contains(t)) return;
|
|
612
|
+
await x();
|
|
613
|
+
let n = Q(), r = document.activeElement;
|
|
614
|
+
n !== r && (r instanceof Node && V.value?.contains(r) || (z = !1, M.value = !1, qe.value = !1, _t()));
|
|
615
|
+
}
|
|
616
|
+
function Un() {
|
|
617
|
+
if (!(a.readonly || a.disabled)) {
|
|
618
|
+
if (qe.value = !0, z) {
|
|
619
|
+
z = !1;
|
|
620
|
+
return;
|
|
621
|
+
}
|
|
622
|
+
M.value ||= !0;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
function Wn() {
|
|
626
|
+
a.readonly || a.disabled || (z = !1, M.value = !0);
|
|
627
|
+
}
|
|
628
|
+
function Gn(e) {
|
|
629
|
+
e || $e(), M.value = e;
|
|
630
|
+
}
|
|
631
|
+
function Kn(e) {
|
|
632
|
+
let t = he(e);
|
|
633
|
+
if (t) return t;
|
|
634
|
+
let n = /[A-Za-z]/.test(e), r = /^\d{4}[-/]\d{1,2}[-/]\d{1,2}(?:[ T]\d{1,2}:\d{2}(?::\d{2})?)?$/.test(e);
|
|
635
|
+
if (!n && !r) return null;
|
|
636
|
+
let i = new Date(e);
|
|
637
|
+
return Number.isNaN(i.getTime()) ? null : i;
|
|
638
|
+
}
|
|
639
|
+
function qn(e) {
|
|
640
|
+
return e instanceof HTMLInputElement ? e : typeof e == "object" && e && "value" in e && e.value instanceof HTMLInputElement ? e.value : null;
|
|
641
|
+
}
|
|
642
|
+
function Q() {
|
|
643
|
+
if (B) return B;
|
|
644
|
+
let e = qn(et.value?.inputRef);
|
|
645
|
+
if (e) return B = e, e;
|
|
646
|
+
let t = st(et.value?.fieldRef)?.querySelector(".q-text-field__input") ?? null;
|
|
647
|
+
return t ? (B = t, t) : null;
|
|
648
|
+
}
|
|
649
|
+
function Jn(e) {
|
|
650
|
+
return e.isSelected || e.isRangeStart || e.isRangeEnd ? "bold" : e.isInRange ? "tonal" : "ghost";
|
|
651
|
+
}
|
|
652
|
+
function Yn(e) {
|
|
653
|
+
V.value?.style.setProperty("--q-date-view-height", `${Math.max(0, e)}px`);
|
|
654
|
+
}
|
|
655
|
+
async function Xn() {
|
|
656
|
+
if (!M.value || j.value) {
|
|
657
|
+
Yn(0);
|
|
658
|
+
return;
|
|
659
|
+
}
|
|
660
|
+
I.value === "date" && (await x(), Yn(tt.value?.getBoundingClientRect().height ?? 0));
|
|
661
|
+
}
|
|
662
|
+
function $() {
|
|
663
|
+
Xe?.disconnect(), Xe = null;
|
|
664
|
+
}
|
|
665
|
+
async function Zn() {
|
|
666
|
+
!M.value || j.value || I.value !== "date" || (await x(), tt.value && ($(), Xe = new MutationObserver(() => {
|
|
667
|
+
Xn();
|
|
668
|
+
}), Xe.observe(tt.value, {
|
|
669
|
+
childList: !0,
|
|
670
|
+
subtree: !0,
|
|
671
|
+
attributes: !0,
|
|
672
|
+
characterData: !0
|
|
673
|
+
}), Xn()));
|
|
674
|
+
}
|
|
675
|
+
function Qn() {
|
|
676
|
+
I.value = "time", $();
|
|
677
|
+
}
|
|
678
|
+
function $n() {
|
|
679
|
+
I.value = "date", Zn();
|
|
680
|
+
}
|
|
681
|
+
async function er(e) {
|
|
682
|
+
V.value?.focus(), $n(), await x(), ut(e === "year" ? rt.value : e === "month" ? nt.value : e === "time" ? it.value : null);
|
|
683
|
+
}
|
|
684
|
+
function tr() {
|
|
685
|
+
let e = I.value;
|
|
686
|
+
e !== "date" && er(e);
|
|
687
|
+
}
|
|
688
|
+
async function nr() {
|
|
689
|
+
$(), I.value = "month", await x();
|
|
690
|
+
let e = at.get(L.value);
|
|
691
|
+
e?.scrollIntoView({ block: "center" }), e?.focus();
|
|
692
|
+
}
|
|
693
|
+
async function rr() {
|
|
694
|
+
$(), Ye.value = R.value, I.value = "year", await x(), ot.get(Ye.value)?.scrollIntoView({ block: "center" });
|
|
695
|
+
}
|
|
696
|
+
async function ir(e) {
|
|
697
|
+
if (e.key !== "Escape") return;
|
|
698
|
+
if (z = !0, I.value === "date" || j.value) {
|
|
699
|
+
e.preventDefault(), M.value = !1, await x(), ur();
|
|
700
|
+
return;
|
|
701
|
+
}
|
|
702
|
+
e.preventDefault();
|
|
703
|
+
let t = I.value;
|
|
704
|
+
await er(t);
|
|
705
|
+
}
|
|
706
|
+
function ar() {
|
|
707
|
+
Q()?.focus();
|
|
708
|
+
}
|
|
709
|
+
function or(e) {
|
|
710
|
+
return !e || e === document.body || e === document.documentElement;
|
|
711
|
+
}
|
|
712
|
+
function sr(e, t) {
|
|
713
|
+
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\"])");
|
|
714
|
+
}
|
|
715
|
+
function cr(e) {
|
|
716
|
+
let t = Q();
|
|
717
|
+
return t ? e === t || !e || !e.isConnected || or(e) || V.value?.contains(e) ? !0 : !sr(e, t) : !1;
|
|
718
|
+
}
|
|
719
|
+
function lr() {
|
|
720
|
+
if (Qe) return;
|
|
721
|
+
let e = Q();
|
|
722
|
+
!e || !cr(document.activeElement) || (z = !0, e.focus());
|
|
723
|
+
}
|
|
724
|
+
function ur() {
|
|
725
|
+
x().then(() => {
|
|
726
|
+
requestAnimationFrame(() => {
|
|
727
|
+
requestAnimationFrame(() => {
|
|
728
|
+
lr();
|
|
729
|
+
});
|
|
730
|
+
});
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
function dr() {
|
|
734
|
+
if (Qe) {
|
|
735
|
+
Qe = !1;
|
|
736
|
+
return;
|
|
737
|
+
}
|
|
738
|
+
ur();
|
|
739
|
+
}
|
|
740
|
+
function fr() {
|
|
741
|
+
$e();
|
|
742
|
+
let e = Qe;
|
|
743
|
+
Qe &&= !1, e || (z = !0, ur());
|
|
744
|
+
}
|
|
745
|
+
return Te(y, () => {
|
|
746
|
+
U.value && (J(U.value.getMonth()), Kt(U.value.getFullYear()));
|
|
747
|
+
}), Te(M, (e, t) => {
|
|
748
|
+
if (j.value) {
|
|
749
|
+
$(), Yn(0), e ? (document.addEventListener("keydown", ir, { capture: !0 }), Qn()) : (t && (en(), fr()), document.removeEventListener("keydown", ir, { capture: !0 }));
|
|
750
|
+
return;
|
|
751
|
+
}
|
|
752
|
+
Qt(), e ? (document.addEventListener("keydown", ir, { capture: !0 }), Xt(), Zn()) : (t && fr(), document.removeEventListener("keydown", ir, { capture: !0 }), $(), Yn(0));
|
|
753
|
+
}), Te(j, (e) => {
|
|
754
|
+
e && $(), M.value = !1, e && Yn(0), e ? Qn() : $n();
|
|
755
|
+
}, { immediate: !0 }), be(() => {
|
|
756
|
+
$(), document.removeEventListener("keydown", ir, { capture: !0 });
|
|
757
|
+
}), (i, o) => (C(), h(d, null, [_(T(n), b({
|
|
758
|
+
id: a.id,
|
|
759
|
+
ref: "field",
|
|
760
|
+
"model-value": N.value,
|
|
761
|
+
class: ["q-date-time-picker", a.class],
|
|
762
|
+
clearable: zt.value,
|
|
763
|
+
"aria-label": a.label,
|
|
764
|
+
label: a.label,
|
|
765
|
+
"label-position": a.labelPosition,
|
|
766
|
+
readonly: a.readonly,
|
|
767
|
+
disabled: a.disabled,
|
|
768
|
+
placeholder: Ue.value,
|
|
769
|
+
required: a.required,
|
|
770
|
+
size: a.size,
|
|
771
|
+
invalid: a.invalid || F.value
|
|
772
|
+
}, i.$attrs, {
|
|
773
|
+
onBlur: Hn,
|
|
774
|
+
"onClick:clear": ar,
|
|
775
|
+
onFocusin: Un,
|
|
776
|
+
onKeydown: Bn,
|
|
777
|
+
"onUpdate:modelValue": Tn
|
|
778
|
+
}), _e({
|
|
779
|
+
prepend: D(() => [_(T(t), b({ class: "q-date-time-picker__input-icon" }, Ft.value), null, 16)]),
|
|
780
|
+
_: 2
|
|
781
|
+
}, [i.$slots.extras ? {
|
|
782
|
+
name: "extras",
|
|
783
|
+
fn: D(() => [Se(i.$slots, "extras")]),
|
|
784
|
+
key: "0"
|
|
785
|
+
} : void 0]), 1040, [
|
|
786
|
+
"id",
|
|
787
|
+
"model-value",
|
|
788
|
+
"class",
|
|
789
|
+
"clearable",
|
|
790
|
+
"aria-label",
|
|
791
|
+
"label",
|
|
792
|
+
"label-position",
|
|
793
|
+
"readonly",
|
|
794
|
+
"disabled",
|
|
795
|
+
"placeholder",
|
|
796
|
+
"required",
|
|
797
|
+
"size",
|
|
798
|
+
"invalid"
|
|
799
|
+
]), !a.readonly && !a.disabled ? (C(), p(T(r), {
|
|
800
|
+
key: 0,
|
|
801
|
+
"model-value": M.value,
|
|
802
|
+
anchor: et.value?.fieldRef,
|
|
803
|
+
inline: a.inline,
|
|
804
|
+
offset: 8,
|
|
805
|
+
placement: "bottom",
|
|
806
|
+
trigger: "manual",
|
|
807
|
+
arrow: "",
|
|
808
|
+
"non-modal": "",
|
|
809
|
+
spy: "",
|
|
810
|
+
onLeave: dr,
|
|
811
|
+
"onUpdate:modelValue": Gn
|
|
812
|
+
}, {
|
|
813
|
+
default: D(() => [g("div", {
|
|
814
|
+
ref: "menu",
|
|
815
|
+
class: "q-date-time-picker__menu",
|
|
816
|
+
tabindex: "-1",
|
|
817
|
+
onPointerdownCapture: Ln,
|
|
818
|
+
onKeydown: Vn
|
|
819
|
+
}, [
|
|
820
|
+
m(" Calendar View "),
|
|
821
|
+
I.value === "date" ? (C(), h("div", Ee, [
|
|
822
|
+
m(" Header "),
|
|
823
|
+
g("div", De, [
|
|
824
|
+
_(T(e), {
|
|
825
|
+
variant: "ghost",
|
|
826
|
+
disabled: !Mt.value,
|
|
827
|
+
title: a.texts.previousMonth,
|
|
828
|
+
onClick: qt
|
|
829
|
+
}, {
|
|
830
|
+
default: D(() => [_(T(t), S(v(a.icons.back)), null, 16)]),
|
|
831
|
+
_: 1
|
|
832
|
+
}, 8, ["disabled", "title"]),
|
|
833
|
+
_(T(e), {
|
|
834
|
+
ref: "monthHeader",
|
|
835
|
+
"data-testid": "q-date-time-picker-month-header",
|
|
836
|
+
variant: "ghost",
|
|
837
|
+
label: St(L.value, 3),
|
|
838
|
+
title: a.texts.pickMonth,
|
|
839
|
+
onClick: nr
|
|
840
|
+
}, null, 8, ["label", "title"]),
|
|
841
|
+
_(T(e), {
|
|
842
|
+
ref: "yearHeader",
|
|
843
|
+
"data-testid": "q-date-time-picker-year-header",
|
|
844
|
+
variant: "ghost",
|
|
845
|
+
label: R.value.toString(),
|
|
846
|
+
title: a.texts.pickYear,
|
|
847
|
+
onClick: rr
|
|
848
|
+
}, null, 8, ["label", "title"]),
|
|
849
|
+
_(T(e), {
|
|
850
|
+
variant: "ghost",
|
|
851
|
+
disabled: !Nt.value,
|
|
852
|
+
title: a.texts.nextMonth,
|
|
853
|
+
onClick: Jt
|
|
854
|
+
}, {
|
|
855
|
+
default: D(() => [_(T(t), S(v(a.icons.forward)), null, 16)]),
|
|
856
|
+
_: 1
|
|
857
|
+
}, 8, ["disabled", "title"])
|
|
858
|
+
]),
|
|
859
|
+
m(" Weekday Headers "),
|
|
860
|
+
g("div", Oe, [(C(!0), h(d, null, xe(bt.value, (e) => (C(), h("div", {
|
|
861
|
+
key: e,
|
|
862
|
+
class: "q-date-time-picker__weekday"
|
|
863
|
+
}, Ce(e), 1))), 128))]),
|
|
864
|
+
m(" Days Grid "),
|
|
865
|
+
g("div", {
|
|
866
|
+
class: "q-date-time-picker__days",
|
|
867
|
+
onMouseleave: Ht,
|
|
868
|
+
onFocusout: Ut,
|
|
869
|
+
onTouchstartPassive: Wt,
|
|
870
|
+
onTouchmovePassive: Wt
|
|
871
|
+
}, [(C(!0), h(d, null, xe(vt.value, (t, n) => (C(), p(T(e), {
|
|
872
|
+
key: n,
|
|
873
|
+
"data-day-index": n,
|
|
874
|
+
class: ye(["q-date-time-picker__day", {
|
|
875
|
+
"q-date-time-picker__day--other-month": !t.isCurrentMonth,
|
|
876
|
+
"q-date-time-picker__day--today": t.isToday,
|
|
877
|
+
"q-date-time-picker__day--selected": t.isSelected,
|
|
878
|
+
"q-date-time-picker__day--in-range": t.isInRange,
|
|
879
|
+
"q-date-time-picker__day--range-start": t.isRangeStart,
|
|
880
|
+
"q-date-time-picker__day--range-end": t.isRangeEnd
|
|
881
|
+
}]),
|
|
882
|
+
label: t.date.getDate().toString(),
|
|
883
|
+
variant: Jn(t),
|
|
884
|
+
disabled: t.isDisabled,
|
|
885
|
+
onMouseenter: () => Vt(t.date),
|
|
886
|
+
onFocus: () => Vt(t.date),
|
|
887
|
+
onClick: () => Gt(t.date)
|
|
888
|
+
}, null, 8, [
|
|
889
|
+
"data-day-index",
|
|
890
|
+
"class",
|
|
891
|
+
"label",
|
|
892
|
+
"variant",
|
|
893
|
+
"disabled",
|
|
894
|
+
"onMouseenter",
|
|
895
|
+
"onFocus",
|
|
896
|
+
"onClick"
|
|
897
|
+
]))), 128))], 32)
|
|
898
|
+
], 512)) : I.value === "time" ? (C(), h(d, { key: 1 }, [m(" Time View "), g("div", ke, [(C(!0), h(d, null, xe(a.range ? 2 : 1, (r) => (C(), h("div", {
|
|
899
|
+
key: r,
|
|
900
|
+
class: "q-date-time-picker__time-group"
|
|
901
|
+
}, [
|
|
902
|
+
A.value ? (C(), h("div", Ae, [_(T(c), {
|
|
903
|
+
"model-value": on(r - 1),
|
|
904
|
+
"show-state-labels": "",
|
|
905
|
+
size: "small",
|
|
906
|
+
"false-label": a.texts.am,
|
|
907
|
+
"true-label": a.texts.pm,
|
|
908
|
+
"onUpdate:modelValue": (e) => Sn(e ?? !1, r - 1)
|
|
909
|
+
}, null, 8, [
|
|
910
|
+
"model-value",
|
|
911
|
+
"false-label",
|
|
912
|
+
"true-label",
|
|
913
|
+
"onUpdate:modelValue"
|
|
914
|
+
])])) : m("v-if", !0),
|
|
915
|
+
m(" Time Inputs "),
|
|
916
|
+
g("div", je, [
|
|
917
|
+
g("div", Me, [
|
|
918
|
+
_(T(e), {
|
|
919
|
+
variant: "ghost",
|
|
920
|
+
title: a.texts.increaseHour,
|
|
921
|
+
onClick: (e) => cn(r - 1)
|
|
922
|
+
}, {
|
|
923
|
+
default: D(() => [_(T(t), b({ ref_for: !0 }, a.icons.up), null, 16)]),
|
|
924
|
+
_: 1
|
|
925
|
+
}, 8, ["title", "onClick"]),
|
|
926
|
+
_(T(n), {
|
|
927
|
+
class: "q-date-time-picker__time-number",
|
|
928
|
+
size: "small",
|
|
929
|
+
inputmode: "numeric",
|
|
930
|
+
"max-length": 2,
|
|
931
|
+
"model-value": T(pe)(nn(r - 1)),
|
|
932
|
+
onKeydown: (e) => xn(e, "hours", r - 1),
|
|
933
|
+
"onUpdate:modelValue": (e) => vn(e, r - 1)
|
|
934
|
+
}, null, 8, [
|
|
935
|
+
"model-value",
|
|
936
|
+
"onKeydown",
|
|
937
|
+
"onUpdate:modelValue"
|
|
938
|
+
]),
|
|
939
|
+
_(T(e), {
|
|
940
|
+
variant: "ghost",
|
|
941
|
+
title: a.texts.decreaseHour,
|
|
942
|
+
onClick: (e) => ln(r - 1)
|
|
943
|
+
}, {
|
|
944
|
+
default: D(() => [_(T(t), b({ ref_for: !0 }, a.icons.down), null, 16)]),
|
|
945
|
+
_: 1
|
|
946
|
+
}, 8, ["title", "onClick"])
|
|
947
|
+
]),
|
|
948
|
+
o[1] ||= g("div", { class: "q-date-time-picker__time-separator" }, ":", -1),
|
|
949
|
+
g("div", Ne, [
|
|
950
|
+
_(T(e), {
|
|
951
|
+
variant: "ghost",
|
|
952
|
+
title: a.texts.increaseMinute,
|
|
953
|
+
onClick: (e) => un(r - 1)
|
|
954
|
+
}, {
|
|
955
|
+
default: D(() => [_(T(t), b({ ref_for: !0 }, a.icons.up), null, 16)]),
|
|
956
|
+
_: 1
|
|
957
|
+
}, 8, ["title", "onClick"]),
|
|
958
|
+
_(T(n), {
|
|
959
|
+
class: "q-date-time-picker__time-number",
|
|
960
|
+
size: "small",
|
|
961
|
+
inputmode: "numeric",
|
|
962
|
+
"max-length": 2,
|
|
963
|
+
"model-value": T(pe)(rn(r - 1)),
|
|
964
|
+
onKeydown: (e) => xn(e, "minutes", r - 1),
|
|
965
|
+
"onUpdate:modelValue": (e) => yn(e, r - 1)
|
|
966
|
+
}, null, 8, [
|
|
967
|
+
"model-value",
|
|
968
|
+
"onKeydown",
|
|
969
|
+
"onUpdate:modelValue"
|
|
970
|
+
]),
|
|
971
|
+
_(T(e), {
|
|
972
|
+
variant: "ghost",
|
|
973
|
+
title: a.texts.decreaseMinute,
|
|
974
|
+
onClick: (e) => dn(r - 1)
|
|
975
|
+
}, {
|
|
976
|
+
default: D(() => [_(T(t), b({ ref_for: !0 }, a.icons.down), null, 16)]),
|
|
977
|
+
_: 1
|
|
978
|
+
}, 8, ["title", "onClick"])
|
|
979
|
+
]),
|
|
980
|
+
Ge.value ? (C(), h(d, { key: 0 }, [o[0] ||= g("div", { class: "q-date-time-picker__time-separator" }, ":", -1), g("div", Pe, [
|
|
981
|
+
_(T(e), {
|
|
982
|
+
variant: "ghost",
|
|
983
|
+
title: a.texts.increaseSecond,
|
|
984
|
+
onClick: (e) => fn(r - 1)
|
|
985
|
+
}, {
|
|
986
|
+
default: D(() => [_(T(t), b({ ref_for: !0 }, a.icons.up), null, 16)]),
|
|
987
|
+
_: 1
|
|
988
|
+
}, 8, ["title", "onClick"]),
|
|
989
|
+
_(T(n), {
|
|
990
|
+
class: "q-date-time-picker__time-number",
|
|
991
|
+
size: "small",
|
|
992
|
+
inputmode: "numeric",
|
|
993
|
+
"max-length": 2,
|
|
994
|
+
"model-value": T(pe)(an(r - 1)),
|
|
995
|
+
onKeydown: (e) => xn(e, "seconds", r - 1),
|
|
996
|
+
"onUpdate:modelValue": (e) => bn(e, r - 1)
|
|
997
|
+
}, null, 8, [
|
|
998
|
+
"model-value",
|
|
999
|
+
"onKeydown",
|
|
1000
|
+
"onUpdate:modelValue"
|
|
1001
|
+
]),
|
|
1002
|
+
_(T(e), {
|
|
1003
|
+
variant: "ghost",
|
|
1004
|
+
title: a.texts.decreaseSecond,
|
|
1005
|
+
onClick: (e) => pn(r - 1)
|
|
1006
|
+
}, {
|
|
1007
|
+
default: D(() => [_(T(t), b({ ref_for: !0 }, a.icons.down), null, 16)]),
|
|
1008
|
+
_: 1
|
|
1009
|
+
}, 8, ["title", "onClick"])
|
|
1010
|
+
])], 64)) : m("v-if", !0)
|
|
1011
|
+
])
|
|
1012
|
+
]))), 128))])], 2112)) : I.value === "month" ? (C(), h(d, { key: 2 }, [m(" Month View "), g("div", Fe, [(C(!0), h(d, null, xe(xt.value, (t, n) => (C(), p(T(e), {
|
|
1013
|
+
key: n,
|
|
1014
|
+
ref_for: !0,
|
|
1015
|
+
ref: (e) => ct(e, n),
|
|
1016
|
+
"data-testid": "q-date-time-picker-month-option",
|
|
1017
|
+
"data-month-index": n,
|
|
1018
|
+
disabled: L.value === n,
|
|
1019
|
+
label: t,
|
|
1020
|
+
title: St(n),
|
|
1021
|
+
variant: "ghost",
|
|
1022
|
+
onClick: () => J(n, !0)
|
|
1023
|
+
}, null, 8, [
|
|
1024
|
+
"data-month-index",
|
|
1025
|
+
"disabled",
|
|
1026
|
+
"label",
|
|
1027
|
+
"title",
|
|
1028
|
+
"onClick"
|
|
1029
|
+
]))), 128))])], 2112)) : I.value === "year" ? (C(), h(d, { key: 3 }, [m(" Year View "), g("div", Ie, [g("div", Le, [
|
|
1030
|
+
_(T(e), {
|
|
1031
|
+
variant: "ghost",
|
|
1032
|
+
disabled: !Ot.value,
|
|
1033
|
+
title: a.texts.previousYears,
|
|
1034
|
+
onClick: Tt
|
|
1035
|
+
}, {
|
|
1036
|
+
default: D(() => [_(T(t), S(v(a.icons.back)), null, 16)]),
|
|
1037
|
+
_: 1
|
|
1038
|
+
}, 8, ["disabled", "title"]),
|
|
1039
|
+
g("div", Re, Ce(Dt.value.startYear) + " - " + Ce(Dt.value.endYear), 1),
|
|
1040
|
+
_(T(e), {
|
|
1041
|
+
variant: "ghost",
|
|
1042
|
+
disabled: !kt.value,
|
|
1043
|
+
title: a.texts.nextYears,
|
|
1044
|
+
onClick: Et
|
|
1045
|
+
}, {
|
|
1046
|
+
default: D(() => [_(T(t), S(v(a.icons.forward)), null, 16)]),
|
|
1047
|
+
_: 1
|
|
1048
|
+
}, 8, ["disabled", "title"])
|
|
1049
|
+
]), g("div", ze, [(C(!0), h(d, null, xe(Pt.value, (t, n) => (C(), p(T(e), {
|
|
1050
|
+
key: n,
|
|
1051
|
+
ref_for: !0,
|
|
1052
|
+
ref: (e) => lt(e, t),
|
|
1053
|
+
"data-testid": "q-date-time-picker-year-option",
|
|
1054
|
+
"data-year": t,
|
|
1055
|
+
disabled: R.value === t,
|
|
1056
|
+
label: t.toString(),
|
|
1057
|
+
title: t,
|
|
1058
|
+
variant: "ghost",
|
|
1059
|
+
onClick: () => Kt(t, !0)
|
|
1060
|
+
}, null, 8, [
|
|
1061
|
+
"data-year",
|
|
1062
|
+
"disabled",
|
|
1063
|
+
"label",
|
|
1064
|
+
"title",
|
|
1065
|
+
"onClick"
|
|
1066
|
+
]))), 128))])])], 2112)) : m("v-if", !0),
|
|
1067
|
+
g("div", Be, [
|
|
1068
|
+
j.value ? m("v-if", !0) : (C(), p(T(e), {
|
|
1069
|
+
key: 0,
|
|
1070
|
+
variant: "ghost",
|
|
1071
|
+
disabled: Ke.value,
|
|
1072
|
+
title: a.texts.today,
|
|
1073
|
+
onClick: Yt
|
|
1074
|
+
}, {
|
|
1075
|
+
default: D(() => [_(T(t), S(v(a.icons.today)), null, 16)]),
|
|
1076
|
+
_: 1
|
|
1077
|
+
}, 8, ["disabled", "title"])),
|
|
1078
|
+
We.value && I.value === "date" ? (C(), p(T(e), {
|
|
1079
|
+
key: 1,
|
|
1080
|
+
ref: "toggleTime",
|
|
1081
|
+
"data-testid": "q-date-time-picker-toggle-time",
|
|
1082
|
+
variant: "ghost",
|
|
1083
|
+
title: a.texts.toggleMode,
|
|
1084
|
+
onClick: Qn
|
|
1085
|
+
}, {
|
|
1086
|
+
default: D(() => [_(T(t), S(v(a.icons.clock)), null, 16)]),
|
|
1087
|
+
_: 1
|
|
1088
|
+
}, 8, ["title"])) : I.value !== "date" && !j.value ? (C(), p(T(e), {
|
|
1089
|
+
key: 2,
|
|
1090
|
+
"data-testid": "q-date-time-picker-toggle-date",
|
|
1091
|
+
variant: "ghost",
|
|
1092
|
+
title: a.texts.toggleMode,
|
|
1093
|
+
onClick: tr
|
|
1094
|
+
}, {
|
|
1095
|
+
default: D(() => [_(T(t), S(v(a.icons.calendar)), null, 16)]),
|
|
1096
|
+
_: 1
|
|
1097
|
+
}, 8, ["title"])) : m("v-if", !0),
|
|
1098
|
+
a.clearable ? (C(), p(T(e), {
|
|
1099
|
+
key: 3,
|
|
1100
|
+
"data-testid": "q-date-time-picker-clear",
|
|
1101
|
+
variant: "ghost",
|
|
1102
|
+
disabled: !zt.value,
|
|
1103
|
+
title: a.texts.clearValue,
|
|
1104
|
+
onClick: Bt
|
|
1105
|
+
}, {
|
|
1106
|
+
default: D(() => [_(T(t), S(v(a.icons.delete)), null, 16)]),
|
|
1107
|
+
_: 1
|
|
1108
|
+
}, 8, ["disabled", "title"])) : m("v-if", !0)
|
|
1109
|
+
])
|
|
1110
|
+
], 544)]),
|
|
1111
|
+
_: 1
|
|
1112
|
+
}, 8, [
|
|
1113
|
+
"model-value",
|
|
1114
|
+
"anchor",
|
|
1115
|
+
"inline"
|
|
1116
|
+
])) : m("v-if", !0)], 64));
|
|
1117
|
+
}
|
|
1447
1118
|
});
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
};
|
|
1119
|
+
//#endregion
|
|
1120
|
+
export { Ue as default };
|