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