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