@ianicdev/datatables2 0.11.6 → 0.12.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.
Files changed (55) hide show
  1. package/dist/{Comparison-zf9wgAkk.cjs → Comparison-Cjz-f6QE.cjs} +1 -1
  2. package/dist/{Comparison-DL9ojj3w.js → Comparison-c7-5FHzt.js} +1 -1
  3. package/dist/{Datepicker-Duwv3zQB.js → Datepicker-D8R5O3nA.js} +514 -509
  4. package/dist/Datepicker-tYZiV7pL.cjs +2 -0
  5. package/dist/Options-BqEPdV4P.cjs +1 -0
  6. package/dist/Options-t9XPNKFJ.js +222 -0
  7. package/dist/{RefreshTable-Cc0I1PA5.cjs → RefreshTable-BK-a6F4w.cjs} +1 -1
  8. package/dist/{RefreshTable-Cn3y6Lyg.js → RefreshTable-BMZFOov3.js} +2 -2
  9. package/dist/{Search-BUb6ZctR.js → Search-CcSzJ7EN.js} +19 -19
  10. package/dist/Search-ggJbFRUZ.cjs +1 -0
  11. package/dist/{Table-DRC6dqmS.cjs → Table-Cd3b9yno.cjs} +1 -1
  12. package/dist/{Table-D5xj84Hx.js → Table-DFgbsnAr.js} +3 -3
  13. package/dist/{TableServer-BrktC88-.cjs → TableServer-CkRGzG9m.cjs} +1 -1
  14. package/dist/{TableServer-DGx2_VC7.js → TableServer-RGxAza7r.js} +3 -3
  15. package/dist/cellRender-BrYyjDR0.js +2363 -0
  16. package/dist/cellRender-yRAYLhMZ.cjs +1 -0
  17. package/dist/{dataTables-BEIZ1GFJ.js → dataTables-BwYZVAqY.js} +2339 -2167
  18. package/dist/dataTables-CT4H3tPX.cjs +4 -0
  19. package/dist/datatables.cjs +1 -1
  20. package/dist/datatables.js +1 -1
  21. package/dist/datatables2.css +1 -1
  22. package/dist/index-Bascl9Tm.cjs +1 -0
  23. package/dist/{index-A7VzNfop.js → index-Bra3YXTV.js} +2 -2
  24. package/dist/{index-Db7uKS4O.cjs → index-CI5-YbRX.cjs} +1 -1
  25. package/dist/{index-C9IAfraU.cjs → index-CLiQ28nF.cjs} +1 -1
  26. package/dist/{index-kEBJD9Uz.cjs → index-CRNAJrYh.cjs} +1 -1
  27. package/dist/{index-BfwTwETw.js → index-CWXBoVzR.js} +9 -9
  28. package/dist/{index-DdbT75rv.js → index-hM02sYDS.js} +2 -2
  29. package/dist/index-vAe2qE0y.js +4610 -0
  30. package/dist/{index.es-DB0V-0tm.js → index.es-BMrS5t0X.js} +1 -1
  31. package/dist/{index.es-DZnpWbiI.cjs → index.es-bmkO-qSm.cjs} +1 -1
  32. package/dist/{jspdf-BDAGZhm6.cjs → jspdf-BCsjByej.cjs} +24 -24
  33. package/dist/{jspdf-DpfxfImq.js → jspdf-BEHFm2qd.js} +480 -464
  34. package/dist/useColumns-GzXxHCN7.cjs +1 -0
  35. package/dist/{useColumns-Dmca5HPg.js → useColumns-qXPhS6kv.js} +303 -286
  36. package/dist/{useDownload-DVYhgsLa.js → useDownload-B9YtKO_M.js} +1 -1
  37. package/dist/{useDownload-YBEDFv5z.cjs → useDownload-CELkYaWd.cjs} +1 -1
  38. package/dist/useRefreshTable-B3JWG3uB.cjs +1 -0
  39. package/dist/useRefreshTable-C01Fva1U.js +17 -0
  40. package/lib/locale/de.js +9 -0
  41. package/lib/locale/el.js +9 -0
  42. package/lib/locale/en.js +8 -0
  43. package/package.json +5 -5
  44. package/dist/Datepicker-Dg15YseP.cjs +0 -2
  45. package/dist/Options-BE82c0Zz.cjs +0 -1
  46. package/dist/Options-CurNvolo.js +0 -108
  47. package/dist/Search-CvOD_IHr.cjs +0 -1
  48. package/dist/cellRender-DN6k6hHB.js +0 -2252
  49. package/dist/cellRender-DcK06KSn.cjs +0 -1
  50. package/dist/dataTables-DocfWkcv.cjs +0 -4
  51. package/dist/index-CqeIrUKn.cjs +0 -1
  52. package/dist/index-DIJYRSnI.js +0 -4482
  53. package/dist/useColumns-FMszZoTi.cjs +0 -1
  54. package/dist/useRefreshTable-BjtSww_t.cjs +0 -1
  55. package/dist/useRefreshTable-BoTF0YZF.js +0 -18
@@ -1,36 +1,36 @@
1
- import { inject as Ke, reactive as Ze, watch as ce, createVNode as b, mergeProps as B, createElementVNode as P, normalizeStyle as Te, normalizeClass as ie, ref as se, watchEffect as ge, computed as w, Fragment as Q, shallowRef as le, toRef as z, createTextVNode as qe, withDirectives as Xe, useModel as Ge, openBlock as Qe, createBlock as et, unref as De, isRef as tt, mergeModels as at } from "vue";
1
+ import { inject as Ze, reactive as qe, watch as ce, createVNode as D, mergeProps as B, createElementVNode as P, normalizeStyle as Fe, normalizeClass as ie, ref as se, watchEffect as ge, computed as w, Fragment as Q, shallowRef as le, toRef as z, createTextVNode as Xe, withDirectives as Ge, useModel as Qe, openBlock as et, createBlock as tt, unref as De, isRef as at, mergeModels as nt } from "vue";
2
2
  import G from "moment";
3
- import { y as oe, aJ as Fe, g as K, Y as $e, h as Z, L as fe, p as j, E as L, aZ as Ve, v as nt, aL as F, ak as ve, k as de, a9 as Be, X as lt, a4 as te, a7 as H, aV as We, an as xe, a_ as rt, u as it, V as ot, a as ut, b as dt, af as st, at as ct, ao as ft, o as vt } from "./dataTables-BEIZ1GFJ.js";
4
- import { n as Pe, x as mt, y as yt, z as ht, i as we, A as kt, B as gt } from "./index-DIJYRSnI.js";
3
+ import { y as oe, aJ as Be, g as K, Y as $e, h as Z, L as fe, p as j, E, aZ as Ve, v as lt, aL as F, ak as ve, k as de, a9 as We, X as rt, a4 as te, a7 as H, aV as Ne, an as xe, a_ as Pe, u as it, V as ot, a as ut, b as dt, af as st, at as ct, ao as ft, o as vt } from "./dataTables-BwYZVAqY.js";
4
+ import { p as we, x as mt, y as yt, z as ht, i as Me, A as kt, B as gt } from "./index-vAe2qE0y.js";
5
5
  const bt = /* @__PURE__ */ Symbol.for("vuetify:date-options");
6
- function Ne(e, a, l) {
7
- const n = Ee(e, a, l), t = [a];
8
- for (let i = 1; i < n; i++) {
9
- const o = e.addDays(a, i);
10
- t.push(o);
6
+ function Re(e, a, r) {
7
+ const l = Ee(e, a, r), t = [a];
8
+ for (let o = 1; o < l; o++) {
9
+ const u = e.addDays(a, o);
10
+ t.push(u);
11
11
  }
12
- return l && t.push(e.endOfDay(l)), t;
12
+ return r && t.push(e.endOfDay(r)), t;
13
13
  }
14
- function Ee(e, a, l) {
15
- const n = [`${e.toISO(l ?? a).split("T")[0]}T00:00:00Z`, `${e.toISO(a).split("T")[0]}T00:00:00Z`];
16
- return typeof e.date() == "string" ? e.getDiff(n[0], n[1], "days") : e.getDiff(e.date(n[0]), e.date(n[1]), "days");
14
+ function Ee(e, a, r) {
15
+ const l = [`${e.toISO(r ?? a).split("T")[0]}T00:00:00Z`, `${e.toISO(a).split("T")[0]}T00:00:00Z`];
16
+ return typeof e.date() == "string" ? e.getDiff(l[0], l[1], "days") : e.getDiff(e.date(l[0]), e.date(l[1]), "days");
17
17
  }
18
18
  function Dt(e, a) {
19
- const l = Ze(typeof e.adapter == "function" ? new e.adapter({
19
+ const r = qe(typeof e.adapter == "function" ? new e.adapter({
20
20
  locale: e.locale[a.current.value] ?? a.current.value,
21
21
  formats: e.formats
22
22
  }) : e.adapter);
23
- return ce(a.current, (n) => {
24
- l.locale = e.locale[n] ?? n ?? l.locale;
25
- }), l;
23
+ return ce(a.current, (l) => {
24
+ r.locale = e.locale[l] ?? l ?? r.locale;
25
+ }), r;
26
26
  }
27
27
  function ae() {
28
- const e = Ke(bt);
28
+ const e = Ze(bt);
29
29
  if (!e) throw new Error("[Vuetify] Could not find injected date options");
30
30
  const a = oe();
31
31
  return Dt(e, a);
32
32
  }
33
- const Vt = Fe("v-picker-title"), Le = j({
33
+ const Vt = Be("v-picker-title"), Le = j({
34
34
  bgColor: String,
35
35
  divided: Boolean,
36
36
  landscape: Boolean,
@@ -38,41 +38,41 @@ const Vt = Fe("v-picker-title"), Le = j({
38
38
  hideHeader: Boolean,
39
39
  hideTitle: Boolean,
40
40
  ...mt()
41
- }, "VPicker"), Me = K()({
41
+ }, "VPicker"), Se = K()({
42
42
  name: "VPicker",
43
43
  props: Le(),
44
44
  setup(e, a) {
45
45
  let {
46
- slots: l
46
+ slots: r
47
47
  } = a;
48
48
  const {
49
- backgroundColorClasses: n,
49
+ backgroundColorClasses: l,
50
50
  backgroundColorStyles: t
51
51
  } = $e(() => e.color);
52
52
  return Z(() => {
53
- const i = Pe.filterProps(e), o = !e.hideTitle && !!(e.title || l.title);
54
- return b(Pe, B(i, {
53
+ const o = we.filterProps(e), u = !e.hideTitle && !!(e.title || r.title);
54
+ return D(we, B(o, {
55
55
  color: e.bgColor,
56
56
  class: ["v-picker", {
57
57
  "v-picker--divided": e.divided,
58
58
  "v-picker--landscape": e.landscape,
59
- "v-picker--with-actions": !!l.actions
59
+ "v-picker--with-actions": !!r.actions
60
60
  }, e.class],
61
61
  style: e.style
62
62
  }), {
63
63
  default: () => [!e.hideHeader && P("div", {
64
64
  key: "header",
65
- class: ie(["v-picker__header-wrapper", n.value]),
66
- style: Te([t.value])
67
- }, [o && b(Vt, {
65
+ class: ie(["v-picker__header-wrapper", l.value]),
66
+ style: Fe([t.value])
67
+ }, [u && D(Vt, {
68
68
  key: "picker-title"
69
69
  }, {
70
- default: () => [l.title?.() ?? e.title]
71
- }), l.header && P("div", {
70
+ default: () => [r.title?.() ?? e.title]
71
+ }), r.header && P("div", {
72
72
  class: "v-picker__header"
73
- }, [l.header()])]), P("div", {
73
+ }, [r.header()])]), P("div", {
74
74
  class: "v-picker__body"
75
- }, [l.default?.()]), l.actions && b(fe, {
75
+ }, [r.default?.()]), r.actions && D(fe, {
76
76
  defaults: {
77
77
  VBtn: {
78
78
  slim: !0,
@@ -82,12 +82,12 @@ const Vt = Fe("v-picker-title"), Le = j({
82
82
  }, {
83
83
  default: () => [P("div", {
84
84
  class: "v-picker__actions"
85
- }, [l.actions()])]
85
+ }, [r.actions()])]
86
86
  })]
87
87
  });
88
88
  }), {};
89
89
  }
90
- }), Re = j({
90
+ }), je = j({
91
91
  modelValue: null,
92
92
  color: String,
93
93
  cancelText: {
@@ -103,9 +103,9 @@ const Vt = Fe("v-picker-title"), Le = j({
103
103
  default: void 0
104
104
  },
105
105
  hideActions: Boolean
106
- }, "VConfirmEdit"), Se = K()({
106
+ }, "VConfirmEdit"), Ce = K()({
107
107
  name: "VConfirmEdit",
108
- props: Re(),
108
+ props: je(),
109
109
  emits: {
110
110
  cancel: () => !0,
111
111
  save: (e) => !0,
@@ -113,57 +113,57 @@ const Vt = Fe("v-picker-title"), Le = j({
113
113
  },
114
114
  setup(e, a) {
115
115
  let {
116
- emit: l,
117
- slots: n
116
+ emit: r,
117
+ slots: l
118
118
  } = a;
119
- const t = L(e, "modelValue"), i = se();
119
+ const t = E(e, "modelValue"), o = se();
120
120
  ge(() => {
121
- i.value = structuredClone(Ve(t.value));
121
+ o.value = structuredClone(Ve(t.value));
122
122
  });
123
123
  const {
124
- t: o
125
- } = oe(), c = w(() => nt(t.value, i.value));
126
- function d(r) {
127
- return typeof e.disabled == "boolean" ? e.disabled : Array.isArray(e.disabled) ? e.disabled.includes(r) : c.value;
124
+ t: u
125
+ } = oe(), c = w(() => lt(t.value, o.value));
126
+ function d(n) {
127
+ return typeof e.disabled == "boolean" ? e.disabled : Array.isArray(e.disabled) ? e.disabled.includes(n) : c.value;
128
128
  }
129
- const h = w(() => d("save")), g = w(() => d("cancel"));
130
- function f() {
131
- t.value = i.value, l("save", i.value);
129
+ const y = w(() => d("save")), g = w(() => d("cancel"));
130
+ function b() {
131
+ t.value = o.value, r("save", o.value);
132
132
  }
133
- function D() {
134
- i.value = structuredClone(Ve(t.value)), l("cancel");
133
+ function m() {
134
+ o.value = structuredClone(Ve(t.value)), r("cancel");
135
135
  }
136
- function C(r) {
137
- return P(Q, null, [b(F, B({
136
+ function S(n) {
137
+ return P(Q, null, [D(F, B({
138
138
  disabled: g.value,
139
139
  variant: "text",
140
140
  color: e.color,
141
- onClick: D,
142
- text: o(e.cancelText)
143
- }, r), null), b(F, B({
144
- disabled: h.value,
141
+ onClick: m,
142
+ text: u(e.cancelText)
143
+ }, n), null), D(F, B({
144
+ disabled: y.value,
145
145
  variant: "text",
146
146
  color: e.color,
147
- onClick: f,
148
- text: o(e.okText)
149
- }, r), null)]);
147
+ onClick: b,
148
+ text: u(e.okText)
149
+ }, n), null)]);
150
150
  }
151
151
  let Y = !1;
152
- return Z(() => P(Q, null, [n.default?.({
153
- model: i,
154
- save: f,
155
- cancel: D,
152
+ return Z(() => P(Q, null, [l.default?.({
153
+ model: o,
154
+ save: b,
155
+ cancel: m,
156
156
  isPristine: c.value,
157
157
  get actions() {
158
- return Y = !0, C;
158
+ return Y = !0, S;
159
159
  }
160
- }), !e.hideActions && !Y && C()])), {
161
- save: f,
162
- cancel: D,
160
+ }), !e.hideActions && !Y && S()])), {
161
+ save: b,
162
+ cancel: m,
163
163
  isPristine: c
164
164
  };
165
165
  }
166
- }), Ce = Fe("v-spacer", "div", "VSpacer"), je = j({
166
+ }), Ae = Be("v-spacer", "div", "VSpacer"), Ue = j({
167
167
  active: {
168
168
  type: [String, Array],
169
169
  default: void 0
@@ -197,9 +197,9 @@ const Vt = Fe("v-picker-title"), Le = j({
197
197
  type: String,
198
198
  default: "month"
199
199
  }
200
- }, "VDatePickerControls"), Ae = K()({
200
+ }, "VDatePickerControls"), Ye = K()({
201
201
  name: "VDatePickerControls",
202
- props: je(),
202
+ props: Ue(),
203
203
  emits: {
204
204
  "click:year": () => !0,
205
205
  "click:month": () => !0,
@@ -210,134 +210,134 @@ const Vt = Fe("v-picker-title"), Le = j({
210
210
  },
211
211
  setup(e, a) {
212
212
  let {
213
- emit: l,
214
- slots: n
213
+ emit: r,
214
+ slots: l
215
215
  } = a;
216
216
  const {
217
217
  t
218
- } = oe(), i = w(() => Array.isArray(e.disabled) ? e.disabled.includes("text") : !!e.disabled), o = w(() => Array.isArray(e.disabled) ? e.disabled.includes("mode") : !!e.disabled), c = w(() => Array.isArray(e.disabled) ? e.disabled.includes("prev-month") : !!e.disabled), d = w(() => Array.isArray(e.disabled) ? e.disabled.includes("next-month") : !!e.disabled), h = w(() => Array.isArray(e.disabled) ? e.disabled.includes("prev-year") : !!e.disabled), g = w(() => Array.isArray(e.disabled) ? e.disabled.includes("next-year") : !!e.disabled);
219
- function f() {
220
- l("click:prev");
218
+ } = oe(), o = w(() => Array.isArray(e.disabled) ? e.disabled.includes("text") : !!e.disabled), u = w(() => Array.isArray(e.disabled) ? e.disabled.includes("mode") : !!e.disabled), c = w(() => Array.isArray(e.disabled) ? e.disabled.includes("prev-month") : !!e.disabled), d = w(() => Array.isArray(e.disabled) ? e.disabled.includes("next-month") : !!e.disabled), y = w(() => Array.isArray(e.disabled) ? e.disabled.includes("prev-year") : !!e.disabled), g = w(() => Array.isArray(e.disabled) ? e.disabled.includes("next-year") : !!e.disabled);
219
+ function b() {
220
+ r("click:prev");
221
221
  }
222
- function D() {
223
- l("click:next");
222
+ function m() {
223
+ r("click:next");
224
224
  }
225
- function C() {
226
- l("click:prev-year");
225
+ function S() {
226
+ r("click:prev-year");
227
227
  }
228
228
  function Y() {
229
- l("click:next-year");
229
+ r("click:next-year");
230
230
  }
231
- function r() {
232
- l("click:year");
231
+ function n() {
232
+ r("click:year");
233
233
  }
234
- function m() {
235
- l("click:month");
234
+ function f() {
235
+ r("click:month");
236
236
  }
237
237
  return Z(() => {
238
- const u = {
238
+ const i = {
239
239
  VBtn: {
240
240
  density: "comfortable",
241
241
  variant: "text"
242
242
  }
243
- }, V = b(F, {
243
+ }, V = D(F, {
244
244
  "data-testid": "prev-month",
245
245
  disabled: c.value,
246
246
  icon: e.prevIcon,
247
247
  "aria-label": t("$vuetify.datePicker.ariaLabel.previousMonth"),
248
- onClick: f
249
- }, null), S = b(F, {
248
+ onClick: b
249
+ }, null), C = D(F, {
250
250
  "data-testid": "next-month",
251
251
  disabled: d.value,
252
252
  icon: e.nextIcon,
253
253
  "aria-label": t("$vuetify.datePicker.ariaLabel.nextMonth"),
254
- onClick: D
255
- }, null), A = b(F, {
254
+ onClick: m
255
+ }, null), A = D(F, {
256
256
  "data-testid": "prev-year",
257
- disabled: h.value,
257
+ disabled: y.value,
258
258
  icon: e.prevIcon,
259
259
  "aria-label": t("$vuetify.datePicker.ariaLabel.previousYear"),
260
- onClick: C
261
- }, null), I = b(F, {
260
+ onClick: S
261
+ }, null), _ = D(F, {
262
262
  "data-testid": "next-year",
263
263
  disabled: g.value,
264
264
  icon: e.nextIcon,
265
265
  "aria-label": t("$vuetify.datePicker.ariaLabel.nextYear"),
266
266
  onClick: Y
267
- }, null), s = b(F, {
267
+ }, null), s = D(F, {
268
268
  class: "v-date-picker-controls__only-month-btn",
269
269
  "data-testid": "month-btn",
270
270
  density: "default",
271
- disabled: i.value,
271
+ disabled: o.value,
272
272
  text: e.monthText,
273
273
  appendIcon: e.modeIcon,
274
274
  rounded: !0,
275
275
  "aria-label": t("$vuetify.datePicker.ariaLabel.selectMonth"),
276
- onClick: m
277
- }, null), x = b(F, {
276
+ onClick: f
277
+ }, null), x = D(F, {
278
278
  class: "v-date-picker-controls__only-year-btn",
279
279
  "data-testid": "year-btn",
280
280
  density: "default",
281
- disabled: o.value,
281
+ disabled: u.value,
282
282
  text: e.yearText,
283
283
  appendIcon: e.modeIcon,
284
284
  rounded: !0,
285
285
  "aria-label": t("$vuetify.datePicker.ariaLabel.selectYear"),
286
- onClick: r
287
- }, null), M = b(F, {
286
+ onClick: n
287
+ }, null), M = D(F, {
288
288
  class: "v-date-picker-controls__year-btn",
289
289
  "data-testid": "year-btn",
290
290
  density: "default",
291
- disabled: o.value,
291
+ disabled: u.value,
292
292
  text: e.text,
293
293
  appendIcon: e.modeIcon,
294
294
  rounded: !0,
295
295
  "aria-label": t("$vuetify.datePicker.ariaLabel.selectYear"),
296
- onClick: r
297
- }, null), _ = P(Q, null, [b(F, {
296
+ onClick: n
297
+ }, null), I = P(Q, null, [D(F, {
298
298
  class: "v-date-picker-controls__month-btn",
299
299
  "data-testid": "month-btn",
300
300
  height: "36",
301
- disabled: i.value,
301
+ disabled: o.value,
302
302
  text: e.text,
303
303
  rounded: !0,
304
304
  "aria-label": t("$vuetify.datePicker.ariaLabel.selectMonth"),
305
- onClick: m
306
- }, null), b(F, {
305
+ onClick: f
306
+ }, null), D(F, {
307
307
  class: "v-date-picker-controls__mode-btn",
308
308
  "data-testid": "year-btn",
309
- disabled: o.value,
309
+ disabled: u.value,
310
310
  icon: e.modeIcon,
311
311
  "aria-label": t("$vuetify.datePicker.ariaLabel.selectYear"),
312
- onClick: r
312
+ onClick: n
313
313
  }, null)]), W = {
314
314
  viewMode: e.viewMode,
315
315
  disabled: Array.isArray(e.disabled) ? e.disabled : [],
316
316
  monthYearText: e.text ?? "",
317
317
  monthText: e.monthText ?? "",
318
318
  yearText: e.yearText ?? "",
319
- openMonths: m,
320
- openYears: r,
321
- prevMonth: f,
322
- nextMonth: D,
323
- prevYear: C,
319
+ openMonths: f,
320
+ openYears: n,
321
+ prevMonth: b,
322
+ nextMonth: m,
323
+ prevYear: S,
324
324
  nextYear: Y
325
- }, q = P(Q, null, [e.noMonthPicker ? M : _, b(Ce, null, null), P("div", {
325
+ }, q = P(Q, null, [e.noMonthPicker ? M : I, D(Ae, null, null), P("div", {
326
326
  class: "v-date-picker-controls__month"
327
- }, [V, S])]), ne = P(Q, null, [P("div", {
327
+ }, [V, C])]), ne = P(Q, null, [P("div", {
328
328
  class: "v-date-picker-controls__month"
329
- }, [V, s, S]), b(Ce, null, null), P("div", {
329
+ }, [V, s, C]), D(Ae, null, null), P("div", {
330
330
  class: "v-date-picker-controls__year"
331
- }, [A, x, I])]);
332
- return b(fe, {
333
- defaults: u
331
+ }, [A, x, _])]);
332
+ return D(fe, {
333
+ defaults: i
334
334
  }, {
335
335
  default: () => [P("div", {
336
336
  class: ie(["v-date-picker-controls", `v-date-picker-controls--variant-${e.controlVariant}`]),
337
337
  style: {
338
338
  "--v-date-picker-controls-height": ve(e.controlHeight)
339
339
  }
340
- }, [n.default?.(W) ?? P(Q, null, [e.controlVariant === "modal" && q, e.controlVariant === "docked" && ne])])]
340
+ }, [l.default?.(W) ?? P(Q, null, [e.controlVariant === "modal" && q, e.controlVariant === "docked" && ne])])]
341
341
  });
342
342
  }), {};
343
343
  }
@@ -346,8 +346,8 @@ const Vt = Fe("v-picker-title"), Le = j({
346
346
  color: String,
347
347
  header: String,
348
348
  transition: String,
349
- onClick: lt()
350
- }, "VDatePickerHeader"), Ye = K()({
349
+ onClick: rt()
350
+ }, "VDatePickerHeader"), pe = K()({
351
351
  name: "VDatePickerHeader",
352
352
  props: xt(),
353
353
  emits: {
@@ -356,41 +356,41 @@ const Vt = Fe("v-picker-title"), Le = j({
356
356
  },
357
357
  setup(e, a) {
358
358
  let {
359
- emit: l,
360
- slots: n
359
+ emit: r,
360
+ slots: l
361
361
  } = a;
362
362
  const {
363
363
  backgroundColorClasses: t,
364
- backgroundColorStyles: i
364
+ backgroundColorStyles: o
365
365
  } = $e(() => e.color);
366
- function o() {
367
- l("click");
366
+ function u() {
367
+ r("click");
368
368
  }
369
369
  function c() {
370
- l("click:append");
370
+ r("click:append");
371
371
  }
372
372
  return Z(() => {
373
- const d = !!(n.default || e.header), h = !!(n.append || e.appendIcon);
373
+ const d = !!(l.default || e.header), y = !!(l.append || e.appendIcon);
374
374
  return P("div", {
375
375
  class: ie(["v-date-picker-header", {
376
376
  "v-date-picker-header--clickable": !!e.onClick
377
377
  }, t.value]),
378
- style: Te(i.value),
379
- onClick: o
380
- }, [n.prepend && P("div", {
378
+ style: Fe(o.value),
379
+ onClick: u
380
+ }, [l.prepend && P("div", {
381
381
  key: "prepend",
382
382
  class: "v-date-picker-header__prepend"
383
- }, [n.prepend()]), d && b(Be, {
383
+ }, [l.prepend()]), d && D(We, {
384
384
  key: "content",
385
385
  name: e.transition
386
386
  }, {
387
387
  default: () => [P("div", {
388
388
  key: e.header,
389
389
  class: "v-date-picker-header__content"
390
- }, [n.default?.() ?? e.header])]
391
- }), h && P("div", {
390
+ }, [l.default?.() ?? e.header])]
391
+ }), y && P("div", {
392
392
  class: "v-date-picker-header__append"
393
- }, [n.append ? b(fe, {
393
+ }, [l.append ? D(fe, {
394
394
  key: "append-defaults",
395
395
  disabled: !e.appendIcon,
396
396
  defaults: {
@@ -400,8 +400,8 @@ const Vt = Fe("v-picker-title"), Le = j({
400
400
  }
401
401
  }
402
402
  }, {
403
- default: () => [n.append?.()]
404
- }) : b(F, {
403
+ default: () => [l.append?.()]
404
+ }) : D(F, {
405
405
  key: "append-btn",
406
406
  icon: e.appendIcon,
407
407
  variant: "text",
@@ -441,105 +441,106 @@ const Vt = Fe("v-picker-title"), Le = j({
441
441
  weekdayFormat: String
442
442
  }, "calendar");
443
443
  function wt(e) {
444
- const a = ae(), l = L(e, "modelValue", [], (r) => te(r).map((m) => a.date(m))), n = w(() => e.displayValue ? a.date(e.displayValue) : l.value.length > 0 ? a.date(l.value[0]) : e.min ? a.date(e.min) : Array.isArray(e.allowedDates) ? a.date(e.allowedDates[0]) : a.date()), t = L(e, "year", void 0, (r) => {
445
- const m = r != null ? Number(r) : a.getYear(n.value);
446
- return a.startOfYear(a.setYear(a.date(), m));
447
- }, (r) => a.getYear(r)), i = L(e, "month", void 0, (r) => {
448
- const m = r != null ? Number(r) : a.getMonth(n.value), u = a.setYear(a.startOfMonth(a.date()), a.getYear(t.value));
449
- return a.setMonth(u, m);
450
- }, (r) => a.getMonth(r)), o = w(() => {
451
- const r = a.toJsDate(a.startOfWeek(a.date(), e.firstDayOfWeek)).getDay();
452
- return a.getWeekdays(e.firstDayOfWeek, e.weekdayFormat).filter((m, u) => e.weekdays.includes((u + r) % 7));
444
+ const a = ae(), r = E(e, "modelValue", [], (n) => te(n).map((f) => a.date(f))), l = w(() => e.displayValue ? a.date(e.displayValue) : r.value.length > 0 ? a.date(r.value[0]) : e.min ? a.date(e.min) : Array.isArray(e.allowedDates) ? a.date(e.allowedDates[0]) : a.date()), t = E(e, "year", void 0, (n) => {
445
+ const f = n != null ? Number(n) : a.getYear(l.value);
446
+ return a.startOfYear(a.setYear(a.date(), f));
447
+ }, (n) => a.getYear(n)), o = E(e, "month", void 0, (n) => {
448
+ const f = n != null ? Number(n) : a.getMonth(l.value), i = a.setYear(a.startOfMonth(a.date()), a.getYear(t.value));
449
+ return a.setMonth(i, f);
450
+ }, (n) => a.getMonth(n)), u = w(() => {
451
+ const n = a.toJsDate(a.startOfWeek(a.date(), e.firstDayOfWeek)).getDay();
452
+ return a.getWeekdays(e.firstDayOfWeek, e.weekdayFormat).filter((f, i) => e.weekdays.includes((i + n) % 7));
453
453
  }), c = w(() => {
454
- const r = a.getWeekArray(i.value, e.firstDayOfWeek), m = r.flat(), u = 42;
455
- if (e.weeksInMonth === "static" && m.length < u) {
456
- const V = m[m.length - 1];
457
- let S = [];
458
- for (let A = 1; A <= u - m.length; A++)
459
- S.push(a.addDays(V, A)), A % 7 === 0 && (r.push(S), S = []);
454
+ const n = a.getWeekArray(o.value, e.firstDayOfWeek), f = n.flat(), i = 42;
455
+ if (e.weeksInMonth === "static" && f.length < i) {
456
+ const V = f[f.length - 1];
457
+ let C = [];
458
+ for (let A = 1; A <= i - f.length; A++)
459
+ C.push(a.addDays(V, A)), A % 7 === 0 && (n.push(C), C = []);
460
460
  }
461
- return r;
461
+ return n;
462
462
  });
463
- function d(r, m) {
464
- return r.filter((u) => e.weekdays.includes(a.toJsDate(u).getDay())).map((u, V) => {
465
- const S = a.toISO(u), A = !a.isSameMonth(u, i.value), I = a.isSameDay(u, a.startOfMonth(i.value)), s = a.isSameDay(u, a.endOfMonth(i.value)), x = a.isSameDay(u, i.value), M = e.weekdays.length;
463
+ function d(n, f) {
464
+ return n.filter((i) => e.weekdays.includes(a.toJsDate(i).getDay())).map((i, V) => {
465
+ const C = a.toISO(i), A = !a.isSameMonth(i, o.value), _ = a.isSameDay(i, a.startOfMonth(o.value)), s = a.isSameDay(i, a.endOfMonth(o.value)), x = a.isSameDay(i, o.value), M = e.weekdays.length;
466
466
  return {
467
- date: u,
468
- formatted: a.format(u, "keyboardDate"),
467
+ date: i,
468
+ formatted: a.format(i, "keyboardDate"),
469
469
  isAdjacent: A,
470
- isDisabled: Y(u),
470
+ isDisabled: Y(i),
471
471
  isEnd: s,
472
472
  isHidden: A && !e.showAdjacentMonths,
473
473
  isSame: x,
474
- isSelected: l.value.some((_) => a.isSameDay(u, _)),
475
- isStart: I,
476
- isToday: a.isSameDay(u, m),
474
+ isSelected: r.value.some((I) => a.isSameDay(i, I)),
475
+ isStart: _,
476
+ isToday: a.isSameDay(i, f),
477
477
  isWeekEnd: V % M === M - 1,
478
478
  isWeekStart: V % M === 0,
479
- isoDate: S,
480
- localized: a.format(u, "dayOfMonth"),
481
- month: a.getMonth(u),
482
- year: a.getYear(u)
479
+ isoDate: C,
480
+ localized: a.format(i, "dayOfMonth"),
481
+ month: a.getMonth(i),
482
+ year: a.getYear(i)
483
483
  };
484
484
  });
485
485
  }
486
- const h = w(() => {
487
- const r = a.startOfWeek(n.value, e.firstDayOfWeek), m = [];
486
+ const y = w(() => {
487
+ const n = a.startOfWeek(l.value, e.firstDayOfWeek), f = [];
488
488
  for (let V = 0; V <= 6; V++)
489
- m.push(a.addDays(r, V));
490
- const u = a.date();
491
- return d(m, u);
489
+ f.push(a.addDays(n, V));
490
+ const i = a.date();
491
+ return d(f, i);
492
492
  }), g = w(() => {
493
- const r = c.value.flat(), m = a.date();
494
- return d(r, m);
495
- }), f = w(() => c.value.map((r) => r.length ? a.getWeek(r[0], e.firstDayOfWeek, e.firstDayOfYear) : null)), {
496
- minDate: D,
497
- maxDate: C
493
+ const n = c.value.flat(), f = a.date();
494
+ return d(n, f);
495
+ }), b = w(() => c.value.map((n) => n.length ? a.getWeek(n[0], e.firstDayOfWeek, e.firstDayOfYear) : null)), {
496
+ minDate: m,
497
+ maxDate: S
498
498
  } = be(e);
499
- function Y(r) {
499
+ function Y(n) {
500
500
  if (e.disabled) return !0;
501
- const m = a.date(r);
502
- return D.value && a.isBefore(a.endOfDay(m), D.value) || C.value && a.isAfter(m, C.value) ? !0 : Array.isArray(e.allowedDates) && e.allowedDates.length > 0 ? !e.allowedDates.some((u) => a.isSameDay(a.date(u), m)) : typeof e.allowedDates == "function" ? !e.allowedDates(m) : !1;
501
+ const f = a.date(n);
502
+ return m.value && a.isBefore(a.endOfDay(f), m.value) || S.value && a.isAfter(f, S.value) ? !0 : Array.isArray(e.allowedDates) && e.allowedDates.length > 0 ? !e.allowedDates.some((i) => a.isSameDay(a.date(i), f)) : typeof e.allowedDates == "function" ? !e.allowedDates(f) : !1;
503
503
  }
504
504
  return {
505
- displayValue: n,
505
+ displayValue: l,
506
506
  daysInMonth: g,
507
- daysInWeek: h,
507
+ daysInWeek: y,
508
508
  genDays: d,
509
- model: l,
509
+ model: r,
510
510
  weeksInMonth: c,
511
- weekdayLabels: o,
512
- weekNumbers: f
511
+ weekdayLabels: u,
512
+ weekNumbers: b
513
513
  };
514
514
  }
515
515
  function be(e) {
516
- const a = ae(), l = w(() => {
516
+ const a = ae(), r = w(() => {
517
517
  if (!e.min) return null;
518
- const o = a.date(e.min);
519
- return a.isValid(o) ? o : null;
520
- }), n = w(() => {
518
+ const u = a.date(e.min);
519
+ return a.isValid(u) ? u : null;
520
+ }), l = w(() => {
521
521
  if (!e.max) return null;
522
- const o = a.date(e.max);
523
- return a.isValid(o) ? o : null;
522
+ const u = a.date(e.max);
523
+ return a.isValid(u) ? u : null;
524
524
  });
525
- function t(o) {
526
- return l.value && a.isBefore(o, l.value) ? l.value : n.value && a.isAfter(o, n.value) ? n.value : o;
525
+ function t(u) {
526
+ return r.value && a.isBefore(u, r.value) ? r.value : l.value && a.isAfter(u, l.value) ? l.value : u;
527
527
  }
528
- function i(o) {
529
- return (!l.value || a.isAfter(o, l.value)) && (!n.value || a.isBefore(o, n.value));
528
+ function o(u) {
529
+ return (!r.value || a.isAfter(u, r.value)) && (!l.value || a.isBefore(u, l.value));
530
530
  }
531
531
  return {
532
- minDate: l,
533
- maxDate: n,
532
+ minDate: r,
533
+ maxDate: l,
534
534
  clampDate: t,
535
- isInAllowedRange: i
535
+ isInAllowedRange: o
536
536
  };
537
537
  }
538
- const Ue = j({
538
+ const He = j({
539
539
  color: String,
540
540
  hideWeekdays: Boolean,
541
541
  multiple: [Boolean, Number, String],
542
542
  showWeek: Boolean,
543
+ readonly: Boolean,
543
544
  transition: {
544
545
  type: String,
545
546
  default: "picker-transition"
@@ -557,9 +558,9 @@ const Ue = j({
557
558
  default: () => null
558
559
  },
559
560
  ...H(Pt(), ["displayValue"])
560
- }, "VDatePickerMonth"), pe = K()({
561
+ }, "VDatePickerMonth"), _e = K()({
561
562
  name: "VDatePickerMonth",
562
- props: Ue(),
563
+ props: He(),
563
564
  emits: {
564
565
  "update:modelValue": (e) => !0,
565
566
  "update:month": (e) => !0,
@@ -567,42 +568,42 @@ const Ue = j({
567
568
  },
568
569
  setup(e, a) {
569
570
  let {
570
- emit: l,
571
- slots: n
571
+ emit: r,
572
+ slots: l
572
573
  } = a;
573
574
  const t = se(), {
574
- t: i
575
+ t: o
575
576
  } = oe(), {
576
- daysInMonth: o,
577
+ daysInMonth: u,
577
578
  model: c,
578
579
  weekNumbers: d,
579
- weekdayLabels: h
580
- } = wt(e), g = ae(), f = le(), D = le(), C = le(!1), Y = z(() => C.value ? e.reverseTransition : e.transition);
581
- e.multiple === "range" && c.value.length > 0 && (f.value = c.value[0], c.value.length > 1 && (D.value = c.value[c.value.length - 1]));
582
- const r = w(() => {
580
+ weekdayLabels: y
581
+ } = wt(e), g = ae(), b = le(), m = le(), S = le(!1), Y = z(() => S.value ? e.reverseTransition : e.transition);
582
+ e.multiple === "range" && c.value.length > 0 && (b.value = c.value[0], c.value.length > 1 && (m.value = c.value[c.value.length - 1]));
583
+ const n = w(() => {
583
584
  const s = ["number", "string"].includes(typeof e.multiple) ? Number(e.multiple) : 1 / 0;
584
585
  return c.value.length >= s;
585
586
  });
586
- ce(o, (s, x) => {
587
- x && (C.value = g.isBefore(s[0].date, x[0].date));
587
+ ce(u, (s, x) => {
588
+ x && (S.value = g.isBefore(s[0].date, x[0].date));
588
589
  });
589
- function m(s) {
590
+ function f(s) {
590
591
  const x = g.startOfDay(s);
591
- if (c.value.length === 0 ? f.value = void 0 : c.value.length === 1 && (f.value = c.value[0], D.value = void 0), !f.value)
592
- f.value = x, c.value = [f.value];
593
- else if (D.value)
594
- f.value = s, D.value = void 0, c.value = [f.value];
592
+ if (c.value.length === 0 ? b.value = void 0 : c.value.length === 1 && (b.value = c.value[0], m.value = void 0), !b.value)
593
+ b.value = x, c.value = [b.value];
594
+ else if (m.value)
595
+ b.value = s, m.value = void 0, c.value = [b.value];
595
596
  else {
596
- if (g.isSameDay(x, f.value)) {
597
- f.value = void 0, c.value = [];
597
+ if (g.isSameDay(x, b.value)) {
598
+ b.value = void 0, c.value = [];
598
599
  return;
599
- } else g.isBefore(x, f.value) ? (D.value = g.endOfDay(f.value), f.value = x) : D.value = g.endOfDay(x);
600
- c.value = Ne(g, f.value, D.value);
600
+ } else g.isBefore(x, b.value) ? (m.value = g.endOfDay(b.value), b.value = x) : m.value = g.endOfDay(x);
601
+ c.value = Re(g, b.value, m.value);
601
602
  }
602
603
  }
603
- function u(s) {
604
+ function i(s) {
604
605
  const x = g.format(s.date, "fullDateWithWeekday"), M = s.isToday ? "currentDate" : "selectDate";
605
- return i(`$vuetify.datePicker.ariaLabel.${M}`, x);
606
+ return o(`$vuetify.datePicker.ariaLabel.${M}`, x);
606
607
  }
607
608
  function V(s) {
608
609
  const x = c.value.findIndex((M) => g.isSameDay(M, s));
@@ -613,25 +614,25 @@ const Ue = j({
613
614
  M.splice(x, 1), c.value = M;
614
615
  }
615
616
  }
616
- function S(s) {
617
- e.multiple === "range" ? m(s) : e.multiple ? V(s) : c.value = [s];
617
+ function C(s) {
618
+ e.multiple === "range" ? f(s) : e.multiple ? V(s) : c.value = [s];
618
619
  }
619
620
  function A(s) {
620
621
  const {
621
622
  events: x,
622
623
  eventColor: M
623
624
  } = e;
624
- let _, W = [];
625
- if (Array.isArray(x) ? _ = x.includes(s) : x instanceof Function ? _ = x(s) || !1 : x ? _ = x[s] || !1 : _ = !1, _)
626
- _ !== !0 ? W = te(_) : typeof M == "string" ? W = [M] : typeof M == "function" ? W = te(M(s)) : Array.isArray(M) ? W = M : typeof M == "object" && M !== null && (W = te(M[s]));
625
+ let I, W = [];
626
+ if (Array.isArray(x) ? I = x.includes(s) : x instanceof Function ? I = x(s) || !1 : x ? I = x[s] || !1 : I = !1, I)
627
+ I !== !0 ? W = te(I) : typeof M == "string" ? W = [M] : typeof M == "function" ? W = te(M(s)) : Array.isArray(M) ? W = M : typeof M == "object" && M !== null && (W = te(M[s]));
627
628
  else return [];
628
629
  return W.length ? W.filter(Boolean).map((q) => typeof q == "string" ? q : "surface-variant") : ["surface-variant"];
629
630
  }
630
- function I(s) {
631
+ function _(s) {
631
632
  const x = A(s);
632
633
  return x.length ? P("div", {
633
634
  class: "v-date-picker-month__events"
634
- }, [x.map((M) => b(yt, {
635
+ }, [x.map((M) => D(yt, {
635
636
  dot: !0,
636
637
  color: M
637
638
  }, null))]) : null;
@@ -647,34 +648,35 @@ const Ue = j({
647
648
  }, [!e.hideWeekdays && P("div", {
648
649
  key: "hide-week-days",
649
650
  class: "v-date-picker-month__day"
650
- }, [qe(" ")]), d.value.map((s) => P("div", {
651
+ }, [Xe(" ")]), d.value.map((s) => P("div", {
651
652
  class: ie(["v-date-picker-month__day", "v-date-picker-month__day--adjacent"])
652
- }, [s]))]), b(Be, {
653
+ }, [s]))]), D(We, {
653
654
  name: Y.value
654
655
  }, {
655
656
  default: () => [P("div", {
656
657
  ref: t,
657
- key: o.value[0].date?.toString(),
658
+ key: u.value[0].date?.toString(),
658
659
  class: "v-date-picker-month__days"
659
- }, [!e.hideWeekdays && h.value.map((s) => P("div", {
660
+ }, [!e.hideWeekdays && y.value.map((s) => P("div", {
660
661
  class: ie(["v-date-picker-month__day", "v-date-picker-month__weekday"])
661
- }, [s])), o.value.map((s, x) => {
662
+ }, [s])), u.value.map((s, x) => {
662
663
  const M = {
663
664
  props: {
664
665
  class: "v-date-picker-month__day-btn",
665
666
  color: s.isSelected || s.isToday ? e.color : void 0,
666
667
  disabled: s.isDisabled,
668
+ readonly: e.readonly,
667
669
  icon: !0,
668
670
  ripple: !1,
669
671
  variant: s.isSelected ? "flat" : s.isToday ? "outlined" : "text",
670
- "aria-label": u(s),
672
+ "aria-label": i(s),
671
673
  "aria-current": s.isToday ? "date" : void 0,
672
- onClick: () => S(s.date)
674
+ onClick: () => C(s.date)
673
675
  },
674
676
  item: s,
675
677
  i: x
676
678
  };
677
- return r.value && !s.isSelected && (s.isDisabled = !0), P("div", {
679
+ return n.value && !s.isSelected && (s.isDisabled = !0), P("div", {
678
680
  class: ie(["v-date-picker-month__day", {
679
681
  "v-date-picker-month__day--adjacent": s.isAdjacent,
680
682
  "v-date-picker-month__day--hide-adjacent": s.isHidden,
@@ -683,13 +685,13 @@ const Ue = j({
683
685
  "v-date-picker-month__day--week-start": s.isWeekStart
684
686
  }]),
685
687
  "data-v-date": s.isDisabled ? void 0 : s.isoDate
686
- }, [(e.showAdjacentMonths || !s.isAdjacent) && (n.day?.(M) ?? b(F, M.props, {
687
- default: () => [s.localized, I(s.isoDate)]
688
+ }, [(e.showAdjacentMonths || !s.isAdjacent) && (l.day?.(M) ?? D(F, M.props, {
689
+ default: () => [s.localized, _(s.isoDate)]
688
690
  }))]);
689
691
  })])]
690
692
  })]));
691
693
  }
692
- }), He = j({
694
+ }), Je = j({
693
695
  color: String,
694
696
  height: [String, Number],
695
697
  min: null,
@@ -697,31 +699,31 @@ const Ue = j({
697
699
  modelValue: Number,
698
700
  year: Number,
699
701
  allowedMonths: [Array, Function]
700
- }, "VDatePickerMonths"), _e = K()({
702
+ }, "VDatePickerMonths"), Ie = K()({
701
703
  name: "VDatePickerMonths",
702
- props: He(),
704
+ props: Je(),
703
705
  emits: {
704
706
  "update:modelValue": (e) => !0
705
707
  },
706
708
  setup(e, a) {
707
709
  let {
708
- emit: l,
709
- slots: n
710
+ emit: r,
711
+ slots: l
710
712
  } = a;
711
- const t = ae(), i = L(e, "modelValue"), o = w(() => {
713
+ const t = ae(), o = E(e, "modelValue"), u = w(() => {
712
714
  let d = t.startOfYear(t.date());
713
- return e.year && (d = t.setYear(d, e.year)), We(12).map((h) => {
714
- const g = t.format(d, "monthShort"), f = t.format(d, "month"), D = !!(!c(h) || e.min && t.isAfter(t.startOfMonth(t.date(e.min)), d) || e.max && t.isAfter(d, t.startOfMonth(t.date(e.max))));
715
+ return e.year && (d = t.setYear(d, e.year)), Ne(12).map((y) => {
716
+ const g = t.format(d, "monthShort"), b = t.format(d, "month"), m = !!(!c(y) || e.min && t.isAfter(t.startOfMonth(t.date(e.min)), d) || e.max && t.isAfter(d, t.startOfMonth(t.date(e.max))));
715
717
  return d = t.getNextMonth(d), {
716
- isDisabled: D,
718
+ isDisabled: m,
717
719
  text: g,
718
- label: f,
719
- value: h
720
+ label: b,
721
+ value: y
720
722
  };
721
723
  });
722
724
  });
723
725
  ge(() => {
724
- i.value = i.value ?? t.getMonth(t.date());
726
+ o.value = o.value ?? t.getMonth(t.date());
725
727
  });
726
728
  function c(d) {
727
729
  return Array.isArray(e.allowedMonths) && e.allowedMonths.length ? e.allowedMonths.includes(d) : typeof e.allowedMonths == "function" ? e.allowedMonths(d) : !0;
@@ -733,43 +735,43 @@ const Ue = j({
733
735
  }
734
736
  }, [P("div", {
735
737
  class: "v-date-picker-months__content"
736
- }, [o.value.map((d, h) => {
738
+ }, [u.value.map((d, y) => {
737
739
  const g = {
738
- active: i.value === h,
740
+ active: o.value === y,
739
741
  ariaLabel: d.label,
740
- color: i.value === h ? e.color : void 0,
742
+ color: o.value === y ? e.color : void 0,
741
743
  disabled: d.isDisabled,
742
744
  rounded: !0,
743
745
  text: d.text,
744
- variant: i.value === d.value ? "flat" : "text",
745
- onClick: () => f(h)
746
+ variant: o.value === d.value ? "flat" : "text",
747
+ onClick: () => b(y)
746
748
  };
747
- function f(D) {
748
- if (i.value === D) {
749
- l("update:modelValue", i.value);
749
+ function b(m) {
750
+ if (o.value === m) {
751
+ r("update:modelValue", o.value);
750
752
  return;
751
753
  }
752
- i.value = D;
754
+ o.value = m;
753
755
  }
754
- return n.month?.({
756
+ return l.month?.({
755
757
  month: d,
756
- i: h,
758
+ i: y,
757
759
  props: g
758
- }) ?? b(F, B({
760
+ }) ?? D(F, B({
759
761
  key: "month"
760
762
  }, g), null);
761
763
  })])])), {};
762
764
  }
763
- }), Je = j({
765
+ }), ze = j({
764
766
  color: String,
765
767
  height: [String, Number],
766
768
  min: null,
767
769
  max: null,
768
770
  modelValue: Number,
769
771
  allowedYears: [Array, Function]
770
- }, "VDatePickerYears"), Ie = K()({
772
+ }, "VDatePickerYears"), Oe = K()({
771
773
  name: "VDatePickerYears",
772
- props: Je(),
774
+ props: ze(),
773
775
  directives: {
774
776
  vIntersect: xe
775
777
  },
@@ -778,77 +780,79 @@ const Ue = j({
778
780
  },
779
781
  setup(e, a) {
780
782
  let {
781
- emit: l,
782
- slots: n
783
+ emit: r,
784
+ slots: l
783
785
  } = a;
784
- const t = ae(), i = L(e, "modelValue"), o = le(!1), c = w(() => {
785
- const f = t.getYear(t.date());
786
- let D = f - 100, C = f + 52;
787
- e.min && (D = t.getYear(t.date(e.min))), e.max && (C = t.getYear(t.date(e.max)));
788
- let Y = t.startOfYear(t.date());
789
- return Y = t.setYear(Y, D), We(C - D + 1, D).map((r) => {
790
- const m = t.format(Y, "year");
791
- return Y = t.setYear(Y, t.getYear(Y) + 1), {
792
- text: m,
793
- value: r,
794
- isDisabled: !g(r)
786
+ const t = ae(), o = E(e, "modelValue"), u = le(!1), c = w(() => {
787
+ const m = t.getYear(t.date());
788
+ let S = m - 100, Y = m + 52;
789
+ e.min && (S = t.getYear(t.date(e.min))), e.max && (Y = t.getYear(t.date(e.max)));
790
+ let n = t.startOfYear(t.date());
791
+ return n = t.setYear(n, S), Ne(Y - S + 1, S).map((f) => {
792
+ const i = t.format(n, "year");
793
+ return n = t.setYear(n, t.getYear(n) + 1), {
794
+ text: i,
795
+ value: f,
796
+ isDisabled: !b(f)
795
797
  };
796
798
  });
797
799
  });
798
800
  ge(() => {
799
- i.value = i.value ?? t.getYear(t.date());
801
+ o.value = o.value ?? t.getYear(t.date());
800
802
  });
801
- const d = rt();
802
- function h() {
803
- d.el?.scrollIntoView({
804
- block: "center"
805
- });
803
+ const d = Pe(), y = Pe();
804
+ function g() {
805
+ const m = d.el, S = y.el;
806
+ if (!m || !S) return;
807
+ const Y = m.getBoundingClientRect(), n = S.getBoundingClientRect();
808
+ m.scrollTop += n.top - Y.top - m.clientHeight / 2 + n.height / 2;
806
809
  }
807
- function g(f) {
808
- return Array.isArray(e.allowedYears) && e.allowedYears.length ? e.allowedYears.includes(f) : typeof e.allowedYears == "function" ? e.allowedYears(f) : !0;
810
+ function b(m) {
811
+ return Array.isArray(e.allowedYears) && e.allowedYears.length ? e.allowedYears.includes(m) : typeof e.allowedYears == "function" ? e.allowedYears(m) : !0;
809
812
  }
810
- return Z(() => Xe(P("div", {
813
+ return Z(() => Ge(P("div", {
811
814
  class: "v-date-picker-years",
815
+ ref: d,
812
816
  style: {
813
817
  height: ve(e.height)
814
818
  }
815
819
  }, [P("div", {
816
820
  class: "v-date-picker-years__content",
817
- onFocus: () => d.el?.focus(),
818
- onFocusin: () => o.value = !0,
819
- onFocusout: () => o.value = !1,
820
- tabindex: o.value ? -1 : 0
821
- }, [c.value.map((f, D) => {
822
- const C = {
823
- ref: i.value === f.value ? d : void 0,
824
- active: i.value === f.value,
825
- color: i.value === f.value ? e.color : void 0,
821
+ onFocus: () => y.el?.focus(),
822
+ onFocusin: () => u.value = !0,
823
+ onFocusout: () => u.value = !1,
824
+ tabindex: u.value ? -1 : 0
825
+ }, [c.value.map((m, S) => {
826
+ const Y = {
827
+ ref: o.value === m.value ? y : void 0,
828
+ active: o.value === m.value,
829
+ color: o.value === m.value ? e.color : void 0,
826
830
  rounded: !0,
827
- text: f.text,
828
- disabled: f.isDisabled,
829
- variant: i.value === f.value ? "flat" : "text",
831
+ text: m.text,
832
+ disabled: m.isDisabled,
833
+ variant: o.value === m.value ? "flat" : "text",
830
834
  onClick: () => {
831
- if (i.value === f.value) {
832
- l("update:modelValue", i.value);
835
+ if (o.value === m.value) {
836
+ r("update:modelValue", o.value);
833
837
  return;
834
838
  }
835
- i.value = f.value;
839
+ o.value = m.value;
836
840
  }
837
841
  };
838
- return n.year?.({
839
- year: f,
840
- i: D,
841
- props: C
842
- }) ?? b(F, B({
842
+ return l.year?.({
843
+ year: m,
844
+ i: S,
845
+ props: Y
846
+ }) ?? D(F, B({
843
847
  key: "month"
844
- }, C), null);
848
+ }, Y), null);
845
849
  })])]), [[xe, {
846
- handler: h
850
+ handler: g
847
851
  }, null, {
848
852
  once: !0
849
853
  }]])), {};
850
854
  }
851
- }), ze = j({
855
+ }), Ke = j({
852
856
  // TODO: implement in v3.5
853
857
  // calendarIcon: {
854
858
  // type: String,
@@ -880,19 +884,19 @@ const Ue = j({
880
884
  default: "normalDateWithWeekday"
881
885
  },
882
886
  landscapeHeaderWidth: [Number, String],
883
- ...H(je(), ["active", "monthText", "yearText"]),
884
- ...Ue({
887
+ ...H(Ue(), ["active", "monthText", "yearText"]),
888
+ ...He({
885
889
  weeksInMonth: "static"
886
890
  }),
887
- ...H(He(), ["modelValue"]),
888
891
  ...H(Je(), ["modelValue"]),
892
+ ...H(ze(), ["modelValue"]),
889
893
  ...Le({
890
894
  title: "$vuetify.datePicker.title"
891
895
  }),
892
896
  modelValue: null
893
- }, "VDatePicker"), Oe = K()({
897
+ }, "VDatePicker"), Te = K()({
894
898
  name: "VDatePicker",
895
- props: ze(),
899
+ props: Ke(),
896
900
  emits: {
897
901
  "update:modelValue": (e) => !0,
898
902
  "update:month": (e) => !0,
@@ -902,45 +906,45 @@ const Ue = j({
902
906
  },
903
907
  setup(e, a) {
904
908
  let {
905
- emit: l,
906
- slots: n
909
+ emit: r,
910
+ slots: l
907
911
  } = a;
908
912
  const t = ae(), {
909
- t: i
913
+ t: o
910
914
  } = oe(), {
911
- rtlClasses: o
912
- } = it(), c = L(e, "modelValue", void 0, (v) => te(v).map((k) => t.date(k)), (v) => e.multiple ? v : v[0]), d = L(e, "viewMode"), {
913
- minDate: h,
915
+ rtlClasses: u
916
+ } = it(), c = E(e, "modelValue", void 0, (v) => te(v).map((k) => t.date(k)), (v) => e.multiple ? v : v[0]), d = E(e, "viewMode"), {
917
+ minDate: y,
914
918
  maxDate: g,
915
- clampDate: f
916
- } = be(e), D = w(() => {
917
- const v = t.date(), k = c.value?.[0] ? t.date(c.value[0]) : f(v);
919
+ clampDate: b
920
+ } = be(e), m = w(() => {
921
+ const v = t.date(), k = c.value?.[0] ? t.date(c.value[0]) : b(v);
918
922
  return k && t.isValid(k) ? k : v;
919
- }), C = z(() => e.headerColor ?? e.color), Y = L(e, "month"), r = w({
920
- get: () => Number(Y.value ?? t.getMonth(t.startOfMonth(D.value))),
923
+ }), S = z(() => e.headerColor ?? e.color), Y = E(e, "month"), n = w({
924
+ get: () => Number(Y.value ?? t.getMonth(t.startOfMonth(m.value))),
921
925
  set: (v) => Y.value = v
922
- }), m = L(e, "year"), u = w({
923
- get: () => Number(m.value ?? t.getYear(t.startOfYear(t.setMonth(D.value, r.value)))),
924
- set: (v) => m.value = v
925
- }), V = le(!1), S = w(() => {
926
+ }), f = E(e, "year"), i = w({
927
+ get: () => Number(f.value ?? t.getYear(t.startOfYear(t.setMonth(m.value, n.value)))),
928
+ set: (v) => f.value = v
929
+ }), V = le(!1), C = w(() => {
926
930
  if (e.multiple && c.value.length > 1)
927
- return i("$vuetify.datePicker.itemsSelected", c.value.length);
928
- const v = c.value[0] && t.isValid(c.value[0]) ? t.format(t.date(c.value[0]), e.headerDateFormat) : i(e.header);
931
+ return o("$vuetify.datePicker.itemsSelected", c.value.length);
932
+ const v = c.value[0] && t.isValid(c.value[0]) ? t.format(t.date(c.value[0]), e.headerDateFormat) : o(e.header);
929
933
  return e.landscape && v.split(" ").length === 3 ? v.replace(" ", `
930
934
  `) : v;
931
935
  }), A = z(() => {
932
936
  let v = t.date();
933
- return v = t.setDate(v, 1), v = t.setMonth(v, r.value), v = t.setYear(v, u.value), v;
934
- }), I = z(() => t.format(A.value, "monthAndYear")), s = z(() => t.format(A.value, "monthShort")), x = z(() => t.format(A.value, "year")), M = z(() => `date-picker-header${V.value ? "-reverse" : ""}-transition`), _ = w(() => {
937
+ return v = t.setDate(v, 1), v = t.setMonth(v, n.value), v = t.setYear(v, i.value), v;
938
+ }), _ = z(() => t.format(A.value, "monthAndYear")), s = z(() => t.format(A.value, "monthShort")), x = z(() => t.format(A.value, "year")), M = z(() => `date-picker-header${V.value ? "-reverse" : ""}-transition`), I = w(() => {
935
939
  if (e.disabled) return !0;
936
940
  const v = [];
937
941
  if (d.value !== "month")
938
942
  v.push("prev-month", "next-month", "prev-year", "next-year");
939
943
  else {
940
944
  let k = t.date();
941
- if (k = t.startOfMonth(k), k = t.setMonth(k, r.value), k = t.setYear(k, u.value), h.value) {
945
+ if (k = t.startOfMonth(k), k = t.setMonth(k, n.value), k = t.setYear(k, i.value), y.value) {
942
946
  const O = t.addDays(t.startOfMonth(k), -1), N = t.addDays(t.startOfYear(k), -1);
943
- t.isAfter(h.value, O) && v.push("prev-month"), t.isAfter(h.value, N) && v.push("prev-year");
947
+ t.isAfter(y.value, O) && v.push("prev-month"), t.isAfter(y.value, N) && v.push("prev-year");
944
948
  }
945
949
  if (g.value) {
946
950
  const O = t.addDays(t.endOfMonth(k), 1), N = t.addDays(t.endOfYear(k), 1);
@@ -971,47 +975,47 @@ const Ue = j({
971
975
  }
972
976
  function ye(v) {
973
977
  if (typeof e.allowedDates == "function") {
974
- const k = String(v + 1).padStart(2, "0"), O = t.parseISO(`${u.value}-${k}-01`);
978
+ const k = String(v + 1).padStart(2, "0"), O = t.parseISO(`${i.value}-${k}-01`);
975
979
  return ne(O, t.endOfMonth(O));
976
980
  }
977
981
  if (Array.isArray(e.allowedDates) && e.allowedDates.length) {
978
982
  for (const k of e.allowedDates)
979
- if (t.getYear(t.date(k)) === u.value && t.getMonth(t.date(k)) === v) return !0;
983
+ if (t.getYear(t.date(k)) === i.value && t.getMonth(t.date(k)) === v) return !0;
980
984
  return !1;
981
985
  }
982
986
  return !0;
983
987
  }
984
988
  function he() {
985
- r.value < 11 ? r.value++ : (u.value++, r.value = 0, p()), J();
989
+ n.value < 11 ? n.value++ : (i.value++, n.value = 0, p()), J();
986
990
  }
987
991
  function ke() {
988
- r.value > 0 ? r.value-- : (u.value--, r.value = 11, p()), J();
992
+ n.value > 0 ? n.value-- : (i.value--, n.value = 11, p()), J();
989
993
  }
990
994
  function ue() {
991
- if (u.value++, g.value) {
992
- const v = String(r.value + 1).padStart(2, "0"), k = t.parseISO(`${u.value}-${v}-01`);
993
- t.isAfter(k, g.value) && (r.value = t.getMonth(g.value));
995
+ if (i.value++, g.value) {
996
+ const v = String(n.value + 1).padStart(2, "0"), k = t.parseISO(`${i.value}-${v}-01`);
997
+ t.isAfter(k, g.value) && (n.value = t.getMonth(g.value));
994
998
  }
995
999
  p();
996
1000
  }
997
- function y() {
998
- if (u.value--, h.value) {
999
- const v = String(r.value + 1).padStart(2, "0"), k = t.endOfMonth(t.parseISO(`${u.value}-${v}-01`));
1000
- t.isAfter(h.value, k) && (r.value = t.getMonth(h.value));
1001
+ function h() {
1002
+ if (i.value--, y.value) {
1003
+ const v = String(n.value + 1).padStart(2, "0"), k = t.endOfMonth(t.parseISO(`${i.value}-${v}-01`));
1004
+ t.isAfter(y.value, k) && (n.value = t.getMonth(y.value));
1001
1005
  }
1002
1006
  p();
1003
1007
  }
1004
1008
  function T() {
1005
1009
  d.value = "month";
1006
1010
  }
1007
- function R() {
1011
+ function L() {
1008
1012
  d.value = d.value === "months" ? "month" : "months";
1009
1013
  }
1010
1014
  function re() {
1011
1015
  d.value = d.value === "year" ? "month" : "year";
1012
1016
  }
1013
1017
  function J() {
1014
- d.value === "months" && R();
1018
+ d.value === "months" && L();
1015
1019
  }
1016
1020
  function p() {
1017
1021
  d.value === "year" && re();
@@ -1021,117 +1025,117 @@ const Ue = j({
1021
1025
  if (!N.length) return;
1022
1026
  const U = t.date(O[O.length - 1]), X = t.date(N[N.length - 1]);
1023
1027
  if (t.isSameDay(U, X)) return;
1024
- const $ = t.getMonth(X), E = t.getYear(X);
1025
- $ !== r.value && (r.value = $, J()), E !== u.value && (u.value = E, p()), V.value = t.isBefore(U, X);
1028
+ const $ = t.getMonth(X), R = t.getYear(X);
1029
+ $ !== n.value && (n.value = $, J()), R !== i.value && (i.value = R, p()), V.value = t.isBefore(U, X);
1026
1030
  }), Z(() => {
1027
- const v = Me.filterProps(e), k = H(Ae.filterProps(e), ["viewMode"]), O = Ye.filterProps(e), N = pe.filterProps(e), U = H(_e.filterProps(e), ["modelValue"]), X = H(Ie.filterProps(e), ["modelValue"]), $ = {
1028
- color: C.value,
1029
- header: S.value,
1031
+ const v = Se.filterProps(e), k = H(Ye.filterProps(e), ["viewMode"]), O = pe.filterProps(e), N = _e.filterProps(e), U = H(Ie.filterProps(e), ["modelValue"]), X = H(Oe.filterProps(e), ["modelValue"]), $ = {
1032
+ color: S.value,
1033
+ header: C.value,
1030
1034
  transition: M.value
1031
1035
  };
1032
- return b(Me, B(v, {
1033
- color: C.value,
1036
+ return D(Se, B(v, {
1037
+ color: S.value,
1034
1038
  class: ["v-date-picker", `v-date-picker--${d.value}`, {
1035
1039
  "v-date-picker--show-week": e.showWeek
1036
- }, o.value, e.class],
1040
+ }, u.value, e.class],
1037
1041
  style: [{
1038
1042
  "--v-date-picker-landscape-header-width": ve(e.landscapeHeaderWidth)
1039
1043
  }, e.style]
1040
1044
  }), {
1041
- title: () => n.title?.() ?? P("div", {
1045
+ title: () => l.title?.() ?? P("div", {
1042
1046
  class: "v-date-picker__title"
1043
- }, [i(e.title)]),
1044
- header: () => n.header ? b(fe, {
1047
+ }, [o(e.title)]),
1048
+ header: () => l.header ? D(fe, {
1045
1049
  defaults: {
1046
1050
  VDatePickerHeader: {
1047
1051
  ...$
1048
1052
  }
1049
1053
  }
1050
1054
  }, {
1051
- default: () => [n.header?.($)]
1052
- }) : b(Ye, B({
1055
+ default: () => [l.header?.($)]
1056
+ }) : D(pe, B({
1053
1057
  key: "header"
1054
1058
  }, O, $, {
1055
1059
  onClick: d.value !== "month" ? T : void 0
1056
1060
  }), {
1057
- prepend: n.prepend,
1058
- append: n.append
1061
+ prepend: l.prepend,
1062
+ append: l.append
1059
1063
  }),
1060
- default: () => P(Q, null, [b(Ae, B(k, {
1061
- disabled: _.value,
1064
+ default: () => P(Q, null, [D(Ye, B(k, {
1065
+ disabled: I.value,
1062
1066
  viewMode: d.value,
1063
- text: I.value,
1067
+ text: _.value,
1064
1068
  monthText: s.value,
1065
1069
  yearText: x.value,
1066
1070
  "onClick:next": he,
1067
1071
  "onClick:prev": ke,
1068
1072
  "onClick:nextYear": ue,
1069
- "onClick:prevYear": y,
1070
- "onClick:month": R,
1073
+ "onClick:prevYear": h,
1074
+ "onClick:month": L,
1071
1075
  "onClick:year": re
1072
1076
  }), {
1073
- default: n.controls
1074
- }), b(ot, {
1077
+ default: l.controls
1078
+ }), D(ot, {
1075
1079
  hideOnLeave: !0
1076
1080
  }, {
1077
- default: () => [d.value === "months" ? b(_e, B({
1081
+ default: () => [d.value === "months" ? D(Ie, B({
1078
1082
  key: "date-picker-months"
1079
1083
  }, U, {
1080
- modelValue: r.value,
1081
- "onUpdate:modelValue": [(E) => r.value = E, J],
1082
- min: h.value,
1084
+ modelValue: n.value,
1085
+ "onUpdate:modelValue": [(R) => n.value = R, J],
1086
+ min: y.value,
1083
1087
  max: g.value,
1084
- year: u.value,
1088
+ year: i.value,
1085
1089
  allowedMonths: q.value
1086
1090
  }), {
1087
- month: n.month
1088
- }) : d.value === "year" ? b(Ie, B({
1091
+ month: l.month
1092
+ }) : d.value === "year" ? D(Oe, B({
1089
1093
  key: "date-picker-years"
1090
1094
  }, X, {
1091
- modelValue: u.value,
1092
- "onUpdate:modelValue": [(E) => u.value = E, p],
1093
- min: h.value,
1095
+ modelValue: i.value,
1096
+ "onUpdate:modelValue": [(R) => i.value = R, p],
1097
+ min: y.value,
1094
1098
  max: g.value,
1095
1099
  allowedYears: W.value
1096
1100
  }), {
1097
- year: n.year
1098
- }) : b(pe, B({
1101
+ year: l.year
1102
+ }) : D(_e, B({
1099
1103
  key: "date-picker-month"
1100
1104
  }, N, {
1101
1105
  modelValue: c.value,
1102
- "onUpdate:modelValue": (E) => c.value = E,
1103
- month: r.value,
1104
- "onUpdate:month": [(E) => r.value = E, J],
1105
- year: u.value,
1106
- "onUpdate:year": [(E) => u.value = E, p],
1107
- min: h.value,
1106
+ "onUpdate:modelValue": (R) => c.value = R,
1107
+ month: n.value,
1108
+ "onUpdate:month": [(R) => n.value = R, J],
1109
+ year: i.value,
1110
+ "onUpdate:year": [(R) => i.value = R, p],
1111
+ min: y.value,
1108
1112
  max: g.value
1109
1113
  }), {
1110
- day: n.day
1114
+ day: l.day
1111
1115
  })]
1112
1116
  })]),
1113
- actions: n.actions
1117
+ actions: l.actions
1114
1118
  });
1115
1119
  }), {};
1116
1120
  }
1117
1121
  });
1118
1122
  class ee {
1119
- constructor(a, l) {
1120
- this.order = a, this.separator = l;
1123
+ constructor(a, r) {
1124
+ this.order = a, this.separator = r;
1121
1125
  }
1122
1126
  get format() {
1123
1127
  return this.order.split("").map((a) => `${a}${a}`).join(this.separator).replace("yy", "yyyy");
1124
1128
  }
1125
1129
  static canBeParsed(a) {
1126
1130
  if (typeof a != "string") return !1;
1127
- const l = a.toLowerCase();
1128
- return ["y", "m", "d"].every((n) => l.includes(n)) && ["/", "-", "."].some((n) => a.includes(n));
1131
+ const r = a.toLowerCase();
1132
+ return ["y", "m", "d"].every((l) => r.includes(l)) && ["/", "-", "."].some((l) => a.includes(l));
1129
1133
  }
1130
1134
  static parse(a) {
1131
1135
  if (!ee.canBeParsed(a))
1132
1136
  throw new Error(`[${a}] cannot be parsed into date format specification`);
1133
- const l = a.toLowerCase().split("").filter((t, i, o) => "dmy".includes(t) && o.indexOf(t) === i).join(""), n = ["/", "-", "."].find((t) => a.includes(t));
1134
- return new ee(l, n);
1137
+ const r = a.toLowerCase().split("").filter((t, o, u) => "dmy".includes(t) && u.indexOf(t) === o).join(""), l = ["/", "-", "."].find((t) => a.includes(t));
1138
+ return new ee(r, l);
1135
1139
  }
1136
1140
  }
1137
1141
  const Mt = j({
@@ -1141,63 +1145,63 @@ const Mt = j({
1141
1145
  }
1142
1146
  }, "date-format");
1143
1147
  function St(e, a) {
1144
- const l = ae();
1145
- function n() {
1146
- const d = a.value ?? "en-US", h = Intl.DateTimeFormat(d, {
1148
+ const r = ae();
1149
+ function l() {
1150
+ const d = a.value ?? "en-US", y = Intl.DateTimeFormat(d, {
1147
1151
  year: "numeric",
1148
1152
  month: "2-digit",
1149
1153
  day: "2-digit"
1150
- }).format(l.toJsDate(l.parseISO("1999-12-07"))).replace(/(07)|(٠٧)|(٢٩)|(۱۶)|(০৭)/, "dd").replace(/(12)|(١٢)|(٠٨)|(۰۹)|(১২)/, "mm").replace(/(1999)|(2542)|(١٩٩٩)|(١٤٢٠)|(۱۳۷۸)|(১৯৯৯)/, "yyyy").replace(/[^ymd\-/.]/g, "").replace(/\.$/, "");
1151
- return ee.canBeParsed(h) ? h : (ut(`Date format inferred from locale [${d}] is invalid: [${h}]`), "mm/dd/yyyy");
1154
+ }).format(r.toJsDate(r.parseISO("1999-12-07"))).replace(/(07)|(٠٧)|(٢٩)|(۱۶)|(০৭)/, "dd").replace(/(12)|(١٢)|(٠٨)|(۰۹)|(১২)/, "mm").replace(/(1999)|(2542)|(١٩٩٩)|(١٤٢٠)|(۱۳۷۸)|(১৯৯৯)/, "yyyy").replace(/[^ymd\-/.]/g, "").replace(/\.$/, "");
1155
+ return ee.canBeParsed(y) ? y : (ut(`Date format inferred from locale [${d}] is invalid: [${y}]`), "mm/dd/yyyy");
1152
1156
  }
1153
- const t = z(() => ee.canBeParsed(e.inputFormat) ? ee.parse(e.inputFormat) : ee.parse(n()));
1154
- function i(d) {
1155
- function h(V) {
1156
- const S = V.trim().split(t.value.separator);
1157
+ const t = z(() => ee.canBeParsed(e.inputFormat) ? ee.parse(e.inputFormat) : ee.parse(l()));
1158
+ function o(d) {
1159
+ function y(V) {
1160
+ const C = V.trim().split(t.value.separator);
1157
1161
  return {
1158
- y: Number(S[t.value.order.indexOf("y")]),
1159
- m: Number(S[t.value.order.indexOf("m")]),
1160
- d: Number(S[t.value.order.indexOf("d")])
1162
+ y: Number(C[t.value.order.indexOf("y")]),
1163
+ m: Number(C[t.value.order.indexOf("m")]),
1164
+ d: Number(C[t.value.order.indexOf("d")])
1161
1165
  };
1162
1166
  }
1163
1167
  function g(V) {
1164
1168
  const {
1165
- y: S,
1169
+ y: C,
1166
1170
  m: A,
1167
- d: I
1171
+ d: _
1168
1172
  } = V;
1169
- return !S || !A || !I || A < 1 || A > 12 || I < 1 || I > 31 ? null : {
1170
- year: f(S),
1173
+ return !C || !A || !_ || A < 1 || A > 12 || _ < 1 || _ > 31 ? null : {
1174
+ year: b(C),
1171
1175
  month: A,
1172
- day: I
1176
+ day: _
1173
1177
  };
1174
1178
  }
1175
- function f(V) {
1176
- const S = l.getYear(l.date());
1177
- if (V > 100 || S % 100 >= 50)
1179
+ function b(V) {
1180
+ const C = r.getYear(r.date());
1181
+ if (V > 100 || C % 100 >= 50)
1178
1182
  return V;
1179
- const A = ~~(S / 100) * 100;
1183
+ const A = ~~(C / 100) * 100;
1180
1184
  return V < 50 ? A + V : A - 100 + V;
1181
1185
  }
1182
- const D = h(d), C = g(D);
1183
- if (!C) return null;
1186
+ const m = y(d), S = g(m);
1187
+ if (!S) return null;
1184
1188
  const {
1185
1189
  year: Y,
1186
- month: r,
1187
- day: m
1188
- } = C, u = (V) => String(V).padStart(2, "0");
1189
- return l.parseISO(`${Y}-${u(r)}-${u(m)}`);
1190
+ month: n,
1191
+ day: f
1192
+ } = S, i = (V) => String(V).padStart(2, "0");
1193
+ return r.parseISO(`${Y}-${i(n)}-${i(f)}`);
1190
1194
  }
1191
- function o(d) {
1192
- return !!i(d);
1195
+ function u(d) {
1196
+ return !!o(d);
1193
1197
  }
1194
1198
  function c(d) {
1195
- const h = l.toISO(d).split("T")[0].split("-");
1196
- return t.value.order.split("").map((g) => h["ymd".indexOf(g)]).join(t.value.separator);
1199
+ const y = r.toISO(d).split("T")[0].split("-");
1200
+ return t.value.order.split("").map((g) => y["ymd".indexOf(g)]).join(t.value.separator);
1197
1201
  }
1198
1202
  return {
1199
- isValid: o,
1200
- parseDate: i,
1203
+ isValid: u,
1204
+ parseDate: o,
1201
1205
  formatDate: c,
1202
1206
  parserFormat: z(() => t.value.format)
1203
1207
  };
@@ -1212,6 +1216,7 @@ const Ct = j({
1212
1216
  default: "bottom start"
1213
1217
  },
1214
1218
  menu: Boolean,
1219
+ menuProps: Object,
1215
1220
  updateOn: {
1216
1221
  type: Array,
1217
1222
  default: () => ["blur", "enter"]
@@ -1222,13 +1227,13 @@ const Ct = j({
1222
1227
  mobile: null
1223
1228
  }),
1224
1229
  ...gt(),
1225
- ...Re({
1230
+ ...je({
1226
1231
  hideActions: !0
1227
1232
  }),
1228
1233
  ...kt({
1229
1234
  prependIcon: "$calendar"
1230
1235
  }),
1231
- ...H(ze({
1236
+ ...H(Ke({
1232
1237
  hideHeader: !0,
1233
1238
  showAdjacentMonths: !0
1234
1239
  }), ["location", "rounded", "height", "minHeight", "maxHeight"])
@@ -1244,87 +1249,87 @@ const Ct = j({
1244
1249
  },
1245
1250
  setup(e, a) {
1246
1251
  let {
1247
- emit: l,
1248
- slots: n
1252
+ emit: r,
1253
+ slots: l
1249
1254
  } = a;
1250
1255
  const {
1251
1256
  t,
1252
- current: i
1253
- } = oe(), o = ae(), {
1257
+ current: o
1258
+ } = oe(), u = ae(), {
1254
1259
  isValid: c,
1255
1260
  parseDate: d,
1256
- formatDate: h,
1261
+ formatDate: y,
1257
1262
  parserFormat: g
1258
- } = St(e, i), {
1259
- mobile: f
1263
+ } = St(e, o), {
1264
+ mobile: b
1260
1265
  } = dt(e), {
1261
- InputIcon: D
1266
+ InputIcon: m
1262
1267
  } = ht(e), {
1263
- clampDate: C,
1268
+ clampDate: S,
1264
1269
  isInAllowedRange: Y
1265
- } = be(e), r = () => e.multiple ? [] : null, m = L(e, "modelValue", r(), (y) => Array.isArray(y) ? y.map((T) => o.toJsDate(T)) : y && o.toJsDate(y), (y) => Array.isArray(y) ? y.map((T) => o.date(T)) : y && o.date(y)), u = L(e, "menu"), V = le(!1), S = le(e.focused), A = se(), I = se(["save"]);
1266
- function s(y) {
1267
- return typeof e.displayFormat == "function" ? e.displayFormat(y) : e.displayFormat ? o.format(y, e.displayFormat ?? "keyboardDate") : h(y);
1270
+ } = be(e), n = () => e.multiple ? [] : null, f = E(e, "modelValue", n(), (h) => Array.isArray(h) ? h.map((T) => u.toJsDate(T)) : h && u.toJsDate(h), (h) => Array.isArray(h) ? h.map((T) => u.date(T)) : h && u.date(h)), i = E(e, "menu"), V = le(!1), C = le(e.focused), A = se(), _ = se(["save"]);
1271
+ function s(h) {
1272
+ return typeof e.displayFormat == "function" ? e.displayFormat(h) : e.displayFormat ? u.format(h, e.displayFormat ?? "keyboardDate") : y(h);
1268
1273
  }
1269
1274
  const x = w(() => {
1270
- const y = te(m.value);
1271
- if (!y.length) return null;
1275
+ const h = te(f.value);
1276
+ if (!h.length) return null;
1272
1277
  if (e.multiple === !0)
1273
- return t("$vuetify.datePicker.itemsSelected", y.length);
1278
+ return t("$vuetify.datePicker.itemsSelected", h.length);
1274
1279
  if (e.multiple === "range") {
1275
- const T = y[0], R = y[y.length - 1];
1276
- return !o.isValid(T) || !o.isValid(R) ? "" : `${s(o.date(T))} - ${s(o.date(R))}`;
1280
+ const T = h[0], L = h[h.length - 1];
1281
+ return !u.isValid(T) || !u.isValid(L) ? "" : `${s(u.date(T))} - ${s(u.date(L))}`;
1277
1282
  }
1278
- return o.isValid(m.value) ? s(o.date(m.value)) : "";
1283
+ return u.isValid(f.value) ? s(u.date(f.value)) : "";
1279
1284
  }), M = w(() => {
1280
- if (f.value)
1285
+ if (b.value)
1281
1286
  return V.value ? "text" : "none";
1282
- }), _ = w(() => !e.disabled && !e.readonly), W = w(() => e.updateOn.length ? !(f.value && V.value) && e.readonly : !0);
1283
- ce(u, (y) => {
1284
- y || (V.value = !1, I.value = ["save"]);
1287
+ }), I = w(() => !e.disabled && !e.readonly), W = w(() => e.updateOn.length ? !(b.value && V.value) && e.readonly : !0);
1288
+ ce(i, (h) => {
1289
+ h || (V.value = !1, _.value = ["save"]);
1285
1290
  });
1286
- function q(y) {
1287
- y.key === "Enter" && ((!u.value || !S.value) && (u.value = !0), e.updateOn.includes("enter") && !e.readonly && ue(y.target));
1291
+ function q(h) {
1292
+ h.key === "Enter" && ((!i.value || !C.value) && (i.value = !0), e.updateOn.includes("enter") && !e.readonly && ue(h.target));
1288
1293
  }
1289
- function ne(y) {
1290
- y.preventDefault(), y.stopPropagation(), u.value && f.value ? V.value = !0 : u.value = !0;
1294
+ function ne(h) {
1295
+ e.disabled || (h.preventDefault(), h.stopPropagation(), i.value && b.value ? V.value = !e.readonly : i.value = !0);
1291
1296
  }
1292
1297
  function me() {
1293
- l("cancel"), u.value = !1, V.value = !1;
1298
+ r("cancel"), i.value = !1, V.value = !1;
1294
1299
  }
1295
- function ye(y) {
1296
- l("save", y), u.value = !1;
1300
+ function ye(h) {
1301
+ r("save", h), i.value = !1;
1297
1302
  }
1298
- function he(y) {
1299
- y == null && (m.value = r());
1303
+ function he(h) {
1304
+ h == null && (f.value = n());
1300
1305
  }
1301
- function ke(y) {
1302
- e.updateOn.includes("blur") && !e.readonly && ue(y.target), f.value && V.value && !S.value && (u.value = !1, V.value = !1);
1306
+ function ke(h) {
1307
+ e.updateOn.includes("blur") && !e.readonly && ue(h.target), b.value && V.value && !C.value && (i.value = !1, V.value = !1);
1303
1308
  }
1304
- function ue(y) {
1309
+ function ue(h) {
1305
1310
  let {
1306
1311
  value: T
1307
- } = y;
1312
+ } = h;
1308
1313
  if (!T.trim())
1309
- m.value = r();
1314
+ f.value = n();
1310
1315
  else if (!e.multiple)
1311
- c(T) && (m.value = C(d(T)));
1316
+ c(T) && (f.value = S(d(T)));
1312
1317
  else {
1313
- const R = T.trim().split(/\D+-\D+|[^\d\-/.]+/);
1314
- if (R.every(c))
1318
+ const L = T.trim().split(/\D+-\D+|[^\d\-/.]+/);
1319
+ if (L.every(c))
1315
1320
  if (e.multiple === "range") {
1316
- const [re, J] = R.map(d).map(C).toSorted((p, v) => o.isAfter(p, v) ? 1 : -1);
1317
- m.value = Ne(o, re, J);
1321
+ const [re, J] = L.map(d).map(S).toSorted((p, v) => u.isAfter(p, v) ? 1 : -1);
1322
+ f.value = Re(u, re, J);
1318
1323
  } else
1319
- m.value = R.map(d).filter(Y);
1324
+ f.value = L.map(d).filter(Y);
1320
1325
  }
1321
1326
  }
1322
1327
  return Z(() => {
1323
- const y = !!(e.prependIcon || n.prepend), T = Se.filterProps(e), R = {
1324
- ...Oe.filterProps(H(e, ["active", "bgColor", "color", "location", "rounded", "maxWidth", "minWidth", "width"])),
1328
+ const h = !!(e.prependIcon || l.prepend), T = Ce.filterProps(e), L = {
1329
+ ...Te.filterProps(H(e, ["active", "bgColor", "color", "location", "rounded", "maxWidth", "minWidth", "width"])),
1325
1330
  ...e.pickerProps
1326
- }, re = st(n, ["title", "header", "day", "month", "year"]), J = we.filterProps(H(e, ["placeholder"]));
1327
- return b(we, B({
1331
+ }, re = st(l, ["title", "header", "day", "month", "year"]), J = Me.filterProps(H(e, ["placeholder"]));
1332
+ return D(Me, B({
1328
1333
  ref: A
1329
1334
  }, J, {
1330
1335
  class: ["v-date-input", e.class],
@@ -1333,29 +1338,29 @@ const Ct = j({
1333
1338
  inputmode: M.value,
1334
1339
  placeholder: e.placeholder ?? g.value,
1335
1340
  readonly: W.value,
1336
- onKeydown: _.value ? q : void 0,
1337
- focused: u.value || S.value,
1341
+ onKeydown: I.value ? q : void 0,
1342
+ focused: i.value || C.value,
1338
1343
  onBlur: ke,
1339
- validationValue: m.value,
1340
- "onClick:control": _.value ? ne : void 0,
1344
+ validationValue: f.value,
1345
+ "onClick:control": ne,
1341
1346
  "onUpdate:modelValue": he,
1342
- "onUpdate:focused": (p) => S.value = p
1347
+ "onUpdate:focused": (p) => C.value = p
1343
1348
  }), {
1344
- ...n,
1345
- default: () => P(Q, null, [b(ct, {
1346
- modelValue: u.value,
1347
- "onUpdate:modelValue": (p) => u.value = p,
1349
+ ...l,
1350
+ default: () => P(Q, null, [D(ct, B({
1351
+ modelValue: i.value,
1352
+ "onUpdate:modelValue": (p) => i.value = p,
1348
1353
  activator: "parent",
1349
1354
  minWidth: "0",
1350
- eager: S.value,
1355
+ eager: C.value,
1351
1356
  location: e.location,
1352
1357
  closeOnContentClick: !1,
1353
1358
  openOnClick: !1
1354
- }, {
1355
- default: () => [b(Se, B(T, {
1356
- modelValue: m.value,
1357
- "onUpdate:modelValue": (p) => m.value = p,
1358
- disabled: I.value,
1359
+ }, e.menuProps), {
1360
+ default: () => [D(Ce, B(T, {
1361
+ modelValue: f.value,
1362
+ "onUpdate:modelValue": (p) => f.value = p,
1363
+ disabled: _.value,
1359
1364
  onSave: ye,
1360
1365
  onCancel: me
1361
1366
  }), {
@@ -1368,15 +1373,15 @@ const Ct = j({
1368
1373
  isPristine: U
1369
1374
  } = p;
1370
1375
  function X($) {
1371
- e.hideActions ? (m.value = $, e.multiple || (u.value = !1)) : k.value = $, l("save", $), I.value = [];
1376
+ e.hideActions ? (f.value = $, e.multiple || (i.value = !1)) : k.value = $, r("save", $), _.value = [];
1372
1377
  }
1373
- return b(Oe, B(R, {
1374
- modelValue: e.hideActions ? m.value : k.value,
1378
+ return D(Te, B(L, {
1379
+ modelValue: e.hideActions ? f.value : k.value,
1375
1380
  "onUpdate:modelValue": ($) => X($),
1376
1381
  onMousedown: ($) => $.preventDefault()
1377
1382
  }), {
1378
1383
  ...re,
1379
- actions: e.hideActions ? void 0 : () => n.actions?.({
1384
+ actions: e.hideActions ? void 0 : () => l.actions?.({
1380
1385
  save: O,
1381
1386
  cancel: N,
1382
1387
  isPristine: U
@@ -1384,19 +1389,19 @@ const Ct = j({
1384
1389
  });
1385
1390
  }
1386
1391
  })]
1387
- }), n.default?.()]),
1388
- prepend: y ? (p) => n.prepend ? n.prepend(p) : e.prependIcon && b(D, {
1392
+ }), l.default?.()]),
1393
+ prepend: h ? (p) => l.prepend ? l.prepend(p) : e.prependIcon && D(m, {
1389
1394
  key: "prepend-icon",
1390
1395
  name: "prepend",
1391
1396
  tabindex: e["onClick:prepend"] ? void 0 : -1,
1392
- onClick: _.value ? ne : void 0
1397
+ onClick: I.value ? ne : void 0
1393
1398
  }, null) : void 0
1394
1399
  });
1395
1400
  }), ft({}, A);
1396
1401
  }
1397
1402
  }), Ot = {
1398
1403
  __name: "Datepicker",
1399
- props: /* @__PURE__ */ at({
1404
+ props: /* @__PURE__ */ nt({
1400
1405
  returnFormat: {
1401
1406
  type: String,
1402
1407
  default: "DD-MM-YYYY"
@@ -1407,20 +1412,20 @@ const Ct = j({
1407
1412
  }),
1408
1413
  emits: ["update:modelValue"],
1409
1414
  setup(e) {
1410
- const a = Ge(e, "modelValue"), l = e, n = w({
1415
+ const a = Qe(e, "modelValue"), r = e, l = w({
1411
1416
  get: () => {
1412
- const t = l.returnFormat, i = Array.isArray(a.value);
1413
- let o;
1414
- return i ? o = a.value.filter((c) => G(c, t).isValid()).map((c) => new Date(G(c, t).format())) : G(a.value, t).isValid() && (o = new Date(G(a.value, t).format())), o;
1417
+ const t = r.returnFormat, o = Array.isArray(a.value);
1418
+ let u;
1419
+ return o ? u = a.value.filter((c) => G(c, t).isValid()).map((c) => new Date(G(c, t).format())) : G(a.value, t).isValid() && (u = new Date(G(a.value, t).format())), u;
1415
1420
  },
1416
1421
  set: (t) => {
1417
- const i = l.returnFormat;
1418
- Array.isArray(t) ? a.value = t.filter((c) => G(c).isValid()).map((c) => G(c).format(i)) : a.value = G(t).isValid() ? G(t).format(i) : void 0;
1422
+ const o = r.returnFormat;
1423
+ Array.isArray(t) ? a.value = t.filter((c) => G(c).isValid()).map((c) => G(c).format(o)) : a.value = G(t).isValid() ? G(t).format(o) : void 0;
1419
1424
  }
1420
1425
  });
1421
- return (t, i) => (Qe(), et(De(At), {
1422
- modelValue: De(n),
1423
- "onUpdate:modelValue": i[0] || (i[0] = (o) => tt(n) ? n.value = o : null)
1426
+ return (t, o) => (et(), tt(De(At), {
1427
+ modelValue: De(l),
1428
+ "onUpdate:modelValue": o[0] || (o[0] = (u) => at(l) ? l.value = u : null)
1424
1429
  }, null, 8, ["modelValue"]));
1425
1430
  }
1426
1431
  };