@ianicdev/datatables2 0.9.2 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/{Columns-lW5ifpVY.js → Columns-B64hflPY.js} +1 -1
  2. package/dist/{Columns-5FUNk8-6.cjs → Columns-pLOuRhAC.cjs} +1 -1
  3. package/dist/{Comparison-B_jdQPdW.cjs → Comparison-BsWPXIK9.cjs} +1 -1
  4. package/dist/{Comparison-OWm3KG63.js → Comparison-C71jtSIZ.js} +1 -1
  5. package/dist/{Datepicker-BDXMvB6Q.cjs → Datepicker-CPtt0ijC.cjs} +1 -1
  6. package/dist/{Datepicker-D0Yzqhky.js → Datepicker-CvjupU9U.js} +195 -198
  7. package/dist/{Download-Dv6nv_kh.js → Download-4ogxb-Lj.js} +1 -1
  8. package/dist/{Download-DZv0Co50.cjs → Download-DTpPvrPw.cjs} +1 -1
  9. package/dist/{Options-Dmq3tFGa.cjs → Options-5Tlk5YZS.cjs} +1 -1
  10. package/dist/{Options-CvAQ7vuJ.js → Options-Dk4_4s-_.js} +1 -1
  11. package/dist/{RefreshTable-vbz6jP_l.js → RefreshTable-BrJqnTHL.js} +2 -2
  12. package/dist/{RefreshTable-DQt3K_wT.cjs → RefreshTable-r899CLh4.cjs} +1 -1
  13. package/dist/{Search-KNaJ43Yv.js → Search-BH0AYSqQ.js} +2 -2
  14. package/dist/{Search-w6O09lLl.cjs → Search-BOG516wl.cjs} +1 -1
  15. package/dist/{Table-Bfa_XCKK.cjs → Table-CVTCiyiN.cjs} +1 -1
  16. package/dist/{Table-P3KDor2k.js → Table-W4uL06m9.js} +2 -2
  17. package/dist/{TableServer-CraUFndq.cjs → TableServer-B9bdMMXy.cjs} +1 -1
  18. package/dist/{TableServer-C7VVLhRY.js → TableServer-DpHY_0iH.js} +3 -3
  19. package/dist/{cellRender-BSERCH_s.js → cellRender-BR9T7e_e.js} +2 -2
  20. package/dist/{cellRender-AyOlbHkM.cjs → cellRender-C_ptyFuE.cjs} +1 -1
  21. package/dist/{dataTables-oPwexOUF.cjs → dataTables-Bl5jz-ty.cjs} +1 -1
  22. package/dist/{dataTables-DqHE-hm9.js → dataTables-vJ0uHxvT.js} +1 -1
  23. package/dist/datatables.cjs +1 -1
  24. package/dist/datatables.js +1 -1
  25. package/dist/{index-Wzi3PVax.cjs → index-A8BkndpA.cjs} +1 -1
  26. package/dist/index-BbB0cyxd.cjs +1 -0
  27. package/dist/{index-BjboPrMg.js → index-Himr5435.js} +1 -1
  28. package/dist/{index-FhbzpwmS.js → index-YnQ5w4Wr.js} +209 -209
  29. package/package.json +1 -1
  30. package/dist/index-BwtJBnu1.cjs +0 -1
@@ -1,7 +1,7 @@
1
- import { createVNode as w, mergeProps as O, createElementVNode as x, normalizeStyle as pe, normalizeClass as K, inject as He, reactive as Le, watch as oe, ref as re, watchEffect as fe, computed as V, Fragment as ie, shallowRef as Z, toRef as ee, createTextVNode as Je, withDirectives as ze, mergeModels as Ke, useModel as Ze, createBlock as qe, openBlock as Ge, unref as he, isRef as Qe } from "vue";
2
- import ne from "moment";
3
- import { c as Ye, g as N, p as $, P as _e, u as R, e as ve, T as q, K as F, aY as ke, J as Xe, a9 as T, ax as me, I as le, W as Oe, H as et, N as X, S as j, aU as Ie, ay as ge, aZ as tt, a0 as at, am as nt, ag as lt, aj as rt, a1 as it, aD as ot, a2 as ut, ao as dt } from "./dataTables-DqHE-hm9.js";
4
- import { j as De, m as st, g as be, l as ct, n as ft } from "./index-FhbzpwmS.js";
1
+ import { createVNode as w, mergeProps as O, createElementVNode as x, normalizeStyle as pe, normalizeClass as Z, inject as He, reactive as Le, watch as oe, ref as re, watchEffect as fe, computed as V, Fragment as ie, shallowRef as q, toRef as te, createTextVNode as Je, withDirectives as ze, mergeModels as Ke, useModel as Ze, createBlock as qe, openBlock as Ge, unref as he, isRef as Qe } from "vue";
2
+ import E from "moment";
3
+ import { c as Ye, g as N, p as $, P as _e, u as R, e as ve, T as G, K as F, aY as ke, J as Xe, a9 as T, ax as me, I as le, W as Oe, H as et, N as ee, S as H, aU as Ie, ay as ge, aZ as tt, a0 as at, am as nt, ag as lt, aj as rt, a1 as it, aD as ot, a2 as ut, ao as dt } from "./dataTables-vJ0uHxvT.js";
4
+ import { j as De, m as st, g as be, l as ct, n as ft } from "./index-YnQ5w4Wr.js";
5
5
  const vt = Ye("v-picker-title"), Fe = $({
6
6
  bgColor: String,
7
7
  divided: Boolean,
@@ -22,7 +22,7 @@ const vt = Ye("v-picker-title"), Fe = $({
22
22
  backgroundColorStyles: t
23
23
  } = _e(() => e.color);
24
24
  return R(() => {
25
- const i = De.filterProps(e), u = !e.hideTitle && !!(e.title || r.title);
25
+ const i = De.filterProps(e), d = !e.hideTitle && !!(e.title || r.title);
26
26
  return w(De, O(i, {
27
27
  color: e.bgColor,
28
28
  class: ["v-picker", {
@@ -34,9 +34,9 @@ const vt = Ye("v-picker-title"), Fe = $({
34
34
  }), {
35
35
  default: () => [!e.hideHeader && x("div", {
36
36
  key: "header",
37
- class: K([n.value]),
37
+ class: Z([n.value]),
38
38
  style: pe([t.value])
39
- }, [u && w(vt, {
39
+ }, [d && w(vt, {
40
40
  key: "picker-title"
41
41
  }, {
42
42
  default: () => [r.title?.() ?? e.title]
@@ -63,8 +63,8 @@ const vt = Ye("v-picker-title"), Fe = $({
63
63
  function Be(e, a, r) {
64
64
  const n = $e(e, a, r), t = [a];
65
65
  for (let i = 1; i < n; i++) {
66
- const u = e.addDays(a, i);
67
- t.push(u);
66
+ const d = e.addDays(a, i);
67
+ t.push(d);
68
68
  }
69
69
  return r && t.push(e.endOfDay(r)), t;
70
70
  }
@@ -81,10 +81,10 @@ function yt(e, a) {
81
81
  r.locale = e.locale[n] ?? n ?? r.locale;
82
82
  }), r;
83
83
  }
84
- function H() {
84
+ function L() {
85
85
  const e = He(mt);
86
86
  if (!e) throw new Error("[Vuetify] Could not find injected date options");
87
- const a = q();
87
+ const a = G();
88
88
  return yt(e, a);
89
89
  }
90
90
  const Te = $({
@@ -121,12 +121,12 @@ const Te = $({
121
121
  i.value = structuredClone(ke(t.value));
122
122
  });
123
123
  const {
124
- t: u
125
- } = q(), s = V(() => Xe(t.value, i.value));
126
- function d(l) {
127
- return typeof e.disabled == "boolean" ? e.disabled : Array.isArray(e.disabled) ? e.disabled.includes(l) : s.value;
124
+ t: d
125
+ } = G(), u = V(() => Xe(t.value, i.value));
126
+ function s(l) {
127
+ return typeof e.disabled == "boolean" ? e.disabled : Array.isArray(e.disabled) ? e.disabled.includes(l) : u.value;
128
128
  }
129
- const k = V(() => d("save")), f = V(() => d("cancel"));
129
+ const k = V(() => s("save")), f = V(() => s("cancel"));
130
130
  function h() {
131
131
  t.value = i.value, r("save", i.value);
132
132
  }
@@ -139,13 +139,13 @@ const Te = $({
139
139
  variant: "text",
140
140
  color: e.color,
141
141
  onClick: D,
142
- text: u(e.cancelText)
142
+ text: d(e.cancelText)
143
143
  }, l), null), w(T, O({
144
144
  disabled: k.value,
145
145
  variant: "text",
146
146
  color: e.color,
147
147
  onClick: h,
148
- text: u(e.okText)
148
+ text: d(e.okText)
149
149
  }, l), null)]);
150
150
  }
151
151
  let p = !1;
@@ -153,14 +153,14 @@ const Te = $({
153
153
  model: i,
154
154
  save: h,
155
155
  cancel: D,
156
- isPristine: s.value,
156
+ isPristine: u.value,
157
157
  get actions() {
158
158
  return p = !0, S;
159
159
  }
160
160
  }), !e.hideActions && !p && S()])), {
161
161
  save: h,
162
162
  cancel: D,
163
- isPristine: s
163
+ isPristine: u
164
164
  };
165
165
  }
166
166
  }), ht = Ye("v-spacer", "div", "VSpacer"), We = $({
@@ -206,8 +206,8 @@ const Te = $({
206
206
  } = a;
207
207
  const {
208
208
  t: n
209
- } = q(), t = V(() => Array.isArray(e.disabled) ? e.disabled.includes("text") : !!e.disabled), i = V(() => Array.isArray(e.disabled) ? e.disabled.includes("mode") : !!e.disabled), u = V(() => Array.isArray(e.disabled) ? e.disabled.includes("prev") : !!e.disabled), s = V(() => Array.isArray(e.disabled) ? e.disabled.includes("next") : !!e.disabled);
210
- function d() {
209
+ } = G(), t = V(() => Array.isArray(e.disabled) ? e.disabled.includes("text") : !!e.disabled), i = V(() => Array.isArray(e.disabled) ? e.disabled.includes("mode") : !!e.disabled), d = V(() => Array.isArray(e.disabled) ? e.disabled.includes("prev") : !!e.disabled), u = V(() => Array.isArray(e.disabled) ? e.disabled.includes("next") : !!e.disabled);
210
+ function s() {
211
211
  r("click:prev");
212
212
  }
213
213
  function k() {
@@ -220,7 +220,7 @@ const Te = $({
220
220
  r("click:month");
221
221
  }
222
222
  return R(() => x("div", {
223
- class: K(["v-date-picker-controls"]),
223
+ class: Z(["v-date-picker-controls"]),
224
224
  style: {
225
225
  "--v-date-picker-controls-height": me(e.controlHeight)
226
226
  }
@@ -245,15 +245,15 @@ const Te = $({
245
245
  class: "v-date-picker-controls__month"
246
246
  }, [w(T, {
247
247
  "data-testid": "prev-month",
248
- disabled: u.value,
248
+ disabled: d.value,
249
249
  density: "comfortable",
250
250
  icon: e.prevIcon,
251
251
  variant: "text",
252
252
  "aria-label": n("$vuetify.datePicker.ariaLabel.previousMonth"),
253
- onClick: d
253
+ onClick: s
254
254
  }, null), w(T, {
255
255
  "data-testid": "next-month",
256
- disabled: s.value,
256
+ disabled: u.value,
257
257
  icon: e.nextIcon,
258
258
  density: "comfortable",
259
259
  variant: "text",
@@ -283,24 +283,24 @@ const Te = $({
283
283
  backgroundColorClasses: t,
284
284
  backgroundColorStyles: i
285
285
  } = _e(() => e.color);
286
- function u() {
286
+ function d() {
287
287
  r("click");
288
288
  }
289
- function s() {
289
+ function u() {
290
290
  r("click:append");
291
291
  }
292
292
  return R(() => {
293
- const d = !!(n.default || e.header), k = !!(n.append || e.appendIcon);
293
+ const s = !!(n.default || e.header), k = !!(n.append || e.appendIcon);
294
294
  return x("div", {
295
- class: K(["v-date-picker-header", {
295
+ class: Z(["v-date-picker-header", {
296
296
  "v-date-picker-header--clickable": !!e.onClick
297
297
  }, t.value]),
298
298
  style: pe(i.value),
299
- onClick: u
299
+ onClick: d
300
300
  }, [n.prepend && x("div", {
301
301
  key: "prepend",
302
302
  class: "v-date-picker-header__prepend"
303
- }, [n.prepend()]), d && w(Oe, {
303
+ }, [n.prepend()]), s && w(Oe, {
304
304
  key: "content",
305
305
  name: e.transition
306
306
  }, {
@@ -325,7 +325,7 @@ const Te = $({
325
325
  key: "append-btn",
326
326
  icon: e.appendIcon,
327
327
  variant: "text",
328
- onClick: s
328
+ onClick: u
329
329
  }, null)])]);
330
330
  }), {};
331
331
  }
@@ -361,16 +361,16 @@ const Te = $({
361
361
  weekdayFormat: String
362
362
  }, "calendar");
363
363
  function Dt(e) {
364
- const a = H(), r = F(e, "modelValue", [], (l) => X(l).map((y) => a.date(y))), n = V(() => 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 = F(e, "year", void 0, (l) => {
364
+ const a = L(), r = F(e, "modelValue", [], (l) => ee(l).map((y) => a.date(y))), n = V(() => 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 = F(e, "year", void 0, (l) => {
365
365
  const y = l != null ? Number(l) : a.getYear(n.value);
366
366
  return a.startOfYear(a.setYear(a.date(), y));
367
367
  }, (l) => a.getYear(l)), i = F(e, "month", void 0, (l) => {
368
368
  const y = l != null ? Number(l) : a.getMonth(n.value), c = a.setYear(a.startOfMonth(a.date()), a.getYear(t.value));
369
369
  return a.setMonth(c, y);
370
- }, (l) => a.getMonth(l)), u = V(() => {
370
+ }, (l) => a.getMonth(l)), d = V(() => {
371
371
  const l = a.toJsDate(a.startOfWeek(a.date(), e.firstDayOfWeek)).getDay();
372
372
  return a.getWeekdays(e.firstDayOfWeek, e.weekdayFormat).filter((y, c) => e.weekdays.includes((c + l) % 7));
373
- }), s = V(() => {
373
+ }), u = V(() => {
374
374
  const l = a.getWeekArray(i.value, e.firstDayOfWeek), y = l.flat(), c = 42;
375
375
  if (e.weeksInMonth === "static" && y.length < c) {
376
376
  const b = y[y.length - 1];
@@ -380,9 +380,9 @@ function Dt(e) {
380
380
  }
381
381
  return l;
382
382
  });
383
- function d(l, y) {
383
+ function s(l, y) {
384
384
  return l.filter((c) => e.weekdays.includes(a.toJsDate(c).getDay())).map((c, b) => {
385
- const C = a.toISO(c), o = !a.isSameMonth(c, i.value), P = a.isSameDay(c, a.startOfMonth(i.value)), Y = a.isSameDay(c, a.endOfMonth(i.value)), G = a.isSameDay(c, i.value), W = e.weekdays.length;
385
+ const C = a.toISO(c), o = !a.isSameMonth(c, i.value), P = a.isSameDay(c, a.startOfMonth(i.value)), Y = a.isSameDay(c, a.endOfMonth(i.value)), Q = a.isSameDay(c, i.value), W = e.weekdays.length;
386
386
  return {
387
387
  date: c,
388
388
  formatted: a.format(c, "keyboardDate"),
@@ -390,8 +390,8 @@ function Dt(e) {
390
390
  isDisabled: p(c),
391
391
  isEnd: Y,
392
392
  isHidden: o && !e.showAdjacentMonths,
393
- isSame: G,
394
- isSelected: r.value.some((z) => a.isSameDay(c, z)),
393
+ isSame: Q,
394
+ isSelected: r.value.some((K) => a.isSameDay(c, K)),
395
395
  isStart: P,
396
396
  isToday: a.isSameDay(c, y),
397
397
  isWeekEnd: b % W === W - 1,
@@ -408,11 +408,11 @@ function Dt(e) {
408
408
  for (let b = 0; b <= 6; b++)
409
409
  y.push(a.addDays(l, b));
410
410
  const c = a.date();
411
- return d(y, c);
411
+ return s(y, c);
412
412
  }), f = V(() => {
413
- const l = s.value.flat(), y = a.date();
414
- return d(l, y);
415
- }), h = V(() => s.value.map((l) => l.length ? a.getWeek(l[0], e.firstDayOfWeek, e.firstDayOfYear) : null)), {
413
+ const l = u.value.flat(), y = a.date();
414
+ return s(l, y);
415
+ }), h = V(() => u.value.map((l) => l.length ? a.getWeek(l[0], e.firstDayOfWeek, e.firstDayOfYear) : null)), {
416
416
  minDate: D,
417
417
  maxDate: S
418
418
  } = ye(e);
@@ -425,28 +425,28 @@ function Dt(e) {
425
425
  displayValue: n,
426
426
  daysInMonth: f,
427
427
  daysInWeek: k,
428
- genDays: d,
428
+ genDays: s,
429
429
  model: r,
430
- weeksInMonth: s,
431
- weekdayLabels: u,
430
+ weeksInMonth: u,
431
+ weekdayLabels: d,
432
432
  weekNumbers: h
433
433
  };
434
434
  }
435
435
  function ye(e) {
436
- const a = H(), r = V(() => {
436
+ const a = L(), r = V(() => {
437
437
  if (!e.min) return null;
438
- const u = a.date(e.min);
439
- return a.isValid(u) ? u : null;
438
+ const d = a.date(e.min);
439
+ return a.isValid(d) ? d : null;
440
440
  }), n = V(() => {
441
441
  if (!e.max) return null;
442
- const u = a.date(e.max);
443
- return a.isValid(u) ? u : null;
442
+ const d = a.date(e.max);
443
+ return a.isValid(d) ? d : null;
444
444
  });
445
- function t(u) {
446
- return r.value && a.isBefore(u, r.value) ? r.value : n.value && a.isAfter(u, n.value) ? n.value : u;
445
+ function t(d) {
446
+ return r.value && a.isBefore(d, r.value) ? r.value : n.value && a.isAfter(d, n.value) ? n.value : d;
447
447
  }
448
- function i(u) {
449
- return (!r.value || a.isAfter(u, r.value)) && (!n.value || a.isBefore(u, n.value));
448
+ function i(d) {
449
+ return (!r.value || a.isAfter(d, r.value)) && (!n.value || a.isBefore(d, n.value));
450
450
  }
451
451
  return {
452
452
  minDate: r,
@@ -468,7 +468,7 @@ const Ne = $({
468
468
  type: String,
469
469
  default: "picker-reverse-transition"
470
470
  },
471
- ...j(gt(), ["displayValue"])
471
+ ...H(gt(), ["displayValue"])
472
472
  }, "VDatePickerMonth"), Me = N()({
473
473
  name: "VDatePickerMonth",
474
474
  props: Ne(),
@@ -484,32 +484,32 @@ const Ne = $({
484
484
  } = a;
485
485
  const t = re(), {
486
486
  t: i
487
- } = q(), {
488
- daysInMonth: u,
489
- model: s,
490
- weekNumbers: d,
487
+ } = G(), {
488
+ daysInMonth: d,
489
+ model: u,
490
+ weekNumbers: s,
491
491
  weekdayLabels: k
492
- } = Dt(e), f = H(), h = Z(), D = Z(), S = Z(!1), p = ee(() => S.value ? e.reverseTransition : e.transition);
493
- e.multiple === "range" && s.value.length > 0 && (h.value = s.value[0], s.value.length > 1 && (D.value = s.value[s.value.length - 1]));
492
+ } = Dt(e), f = L(), h = q(), D = q(), S = q(!1), p = te(() => S.value ? e.reverseTransition : e.transition);
493
+ e.multiple === "range" && u.value.length > 0 && (h.value = u.value[0], u.value.length > 1 && (D.value = u.value[u.value.length - 1]));
494
494
  const l = V(() => {
495
495
  const o = ["number", "string"].includes(typeof e.multiple) ? Number(e.multiple) : 1 / 0;
496
- return s.value.length >= o;
496
+ return u.value.length >= o;
497
497
  });
498
- oe(u, (o, P) => {
498
+ oe(d, (o, P) => {
499
499
  P && (S.value = f.isBefore(o[0].date, P[0].date));
500
500
  });
501
501
  function y(o) {
502
502
  const P = f.startOfDay(o);
503
- if (s.value.length === 0 ? h.value = void 0 : s.value.length === 1 && (h.value = s.value[0], D.value = void 0), !h.value)
504
- h.value = P, s.value = [h.value];
503
+ if (u.value.length === 0 ? h.value = void 0 : u.value.length === 1 && (h.value = u.value[0], D.value = void 0), !h.value)
504
+ h.value = P, u.value = [h.value];
505
505
  else if (D.value)
506
- h.value = o, D.value = void 0, s.value = [h.value];
506
+ h.value = o, D.value = void 0, u.value = [h.value];
507
507
  else {
508
508
  if (f.isSameDay(P, h.value)) {
509
- h.value = void 0, s.value = [];
509
+ h.value = void 0, u.value = [];
510
510
  return;
511
511
  } else f.isBefore(P, h.value) ? (D.value = f.endOfDay(h.value), h.value = P) : D.value = f.endOfDay(P);
512
- s.value = Be(f, h.value, D.value);
512
+ u.value = Be(f, h.value, D.value);
513
513
  }
514
514
  }
515
515
  function c(o) {
@@ -517,16 +517,16 @@ const Ne = $({
517
517
  return i(`$vuetify.datePicker.ariaLabel.${Y}`, P);
518
518
  }
519
519
  function b(o) {
520
- const P = s.value.findIndex((Y) => f.isSameDay(Y, o));
520
+ const P = u.value.findIndex((Y) => f.isSameDay(Y, o));
521
521
  if (P === -1)
522
- s.value = [...s.value, o];
522
+ u.value = [...u.value, o];
523
523
  else {
524
- const Y = [...s.value];
525
- Y.splice(P, 1), s.value = Y;
524
+ const Y = [...u.value];
525
+ Y.splice(P, 1), u.value = Y;
526
526
  }
527
527
  }
528
528
  function C(o) {
529
- e.multiple === "range" ? y(o) : e.multiple ? b(o) : s.value = [o];
529
+ e.multiple === "range" ? y(o) : e.multiple ? b(o) : u.value = [o];
530
530
  }
531
531
  R(() => x("div", {
532
532
  class: "v-date-picker-month",
@@ -539,18 +539,18 @@ const Ne = $({
539
539
  }, [!e.hideWeekdays && x("div", {
540
540
  key: "hide-week-days",
541
541
  class: "v-date-picker-month__day"
542
- }, [Je(" ")]), d.value.map((o) => x("div", {
543
- class: K(["v-date-picker-month__day", "v-date-picker-month__day--adjacent"])
542
+ }, [Je(" ")]), s.value.map((o) => x("div", {
543
+ class: Z(["v-date-picker-month__day", "v-date-picker-month__day--adjacent"])
544
544
  }, [o]))]), w(Oe, {
545
545
  name: p.value
546
546
  }, {
547
547
  default: () => [x("div", {
548
548
  ref: t,
549
- key: u.value[0].date?.toString(),
549
+ key: d.value[0].date?.toString(),
550
550
  class: "v-date-picker-month__days"
551
551
  }, [!e.hideWeekdays && k.value.map((o) => x("div", {
552
- class: K(["v-date-picker-month__day", "v-date-picker-month__weekday"])
553
- }, [o])), u.value.map((o, P) => {
552
+ class: Z(["v-date-picker-month__day", "v-date-picker-month__weekday"])
553
+ }, [o])), d.value.map((o, P) => {
554
554
  const Y = {
555
555
  props: {
556
556
  class: "v-date-picker-month__day-btn",
@@ -568,7 +568,7 @@ const Ne = $({
568
568
  i: P
569
569
  };
570
570
  return l.value && !o.isSelected && (o.isDisabled = !0), x("div", {
571
- class: K(["v-date-picker-month__day", {
571
+ class: Z(["v-date-picker-month__day", {
572
572
  "v-date-picker-month__day--adjacent": o.isAdjacent,
573
573
  "v-date-picker-month__day--hide-adjacent": o.isHidden,
574
574
  "v-date-picker-month__day--selected": o.isSelected,
@@ -599,11 +599,11 @@ const Ne = $({
599
599
  emit: r,
600
600
  slots: n
601
601
  } = a;
602
- const t = H(), i = F(e, "modelValue"), u = V(() => {
603
- let d = t.startOfYear(t.date());
604
- return e.year && (d = t.setYear(d, e.year)), Ie(12).map((k) => {
605
- const f = t.format(d, "monthShort"), h = t.format(d, "month"), D = !!(!s(k) || e.min && t.isAfter(t.startOfMonth(t.date(e.min)), d) || e.max && t.isAfter(d, t.startOfMonth(t.date(e.max))));
606
- return d = t.getNextMonth(d), {
602
+ const t = L(), i = F(e, "modelValue"), d = V(() => {
603
+ let s = t.startOfYear(t.date());
604
+ return e.year && (s = t.setYear(s, e.year)), Ie(12).map((k) => {
605
+ const f = t.format(s, "monthShort"), h = t.format(s, "month"), D = !!(!u(k) || e.min && t.isAfter(t.startOfMonth(t.date(e.min)), s) || e.max && t.isAfter(s, t.startOfMonth(t.date(e.max))));
606
+ return s = t.getNextMonth(s), {
607
607
  isDisabled: D,
608
608
  text: f,
609
609
  label: h,
@@ -614,8 +614,8 @@ const Ne = $({
614
614
  fe(() => {
615
615
  i.value = i.value ?? t.getMonth(t.date());
616
616
  });
617
- function s(d) {
618
- return Array.isArray(e.allowedMonths) && e.allowedMonths.length ? e.allowedMonths.includes(d) : typeof e.allowedMonths == "function" ? e.allowedMonths(d) : !0;
617
+ function u(s) {
618
+ return Array.isArray(e.allowedMonths) && e.allowedMonths.length ? e.allowedMonths.includes(s) : typeof e.allowedMonths == "function" ? e.allowedMonths(s) : !0;
619
619
  }
620
620
  return R(() => x("div", {
621
621
  class: "v-date-picker-months",
@@ -624,15 +624,15 @@ const Ne = $({
624
624
  }
625
625
  }, [x("div", {
626
626
  class: "v-date-picker-months__content"
627
- }, [u.value.map((d, k) => {
627
+ }, [d.value.map((s, k) => {
628
628
  const f = {
629
629
  active: i.value === k,
630
- ariaLabel: d.label,
630
+ ariaLabel: s.label,
631
631
  color: i.value === k ? e.color : void 0,
632
- disabled: d.isDisabled,
632
+ disabled: s.isDisabled,
633
633
  rounded: !0,
634
- text: d.text,
635
- variant: i.value === d.value ? "flat" : "text",
634
+ text: s.text,
635
+ variant: i.value === s.value ? "flat" : "text",
636
636
  onClick: () => h(k)
637
637
  };
638
638
  function h(D) {
@@ -643,7 +643,7 @@ const Ne = $({
643
643
  i.value = D;
644
644
  }
645
645
  return n.month?.({
646
- month: d,
646
+ month: s,
647
647
  i: k,
648
648
  props: f
649
649
  }) ?? w(T, O({
@@ -672,7 +672,7 @@ const Ne = $({
672
672
  emit: r,
673
673
  slots: n
674
674
  } = a;
675
- const t = H(), i = F(e, "modelValue"), u = V(() => {
675
+ const t = L(), i = F(e, "modelValue"), d = V(() => {
676
676
  const f = t.getYear(t.date());
677
677
  let h = f - 100, D = f + 52;
678
678
  e.min && (h = t.getYear(t.date(e.min))), e.max && (D = t.getYear(t.date(e.max)));
@@ -689,9 +689,9 @@ const Ne = $({
689
689
  fe(() => {
690
690
  i.value = i.value ?? t.getYear(t.date());
691
691
  });
692
- const s = tt();
693
- function d() {
694
- s.el?.focus(), s.el?.scrollIntoView({
692
+ const u = tt();
693
+ function s() {
694
+ u.el?.focus(), u.el?.scrollIntoView({
695
695
  block: "center"
696
696
  });
697
697
  }
@@ -705,9 +705,9 @@ const Ne = $({
705
705
  }
706
706
  }, [x("div", {
707
707
  class: "v-date-picker-years__content"
708
- }, [u.value.map((f, h) => {
708
+ }, [d.value.map((f, h) => {
709
709
  const D = {
710
- ref: i.value === f.value ? s : void 0,
710
+ ref: i.value === f.value ? u : void 0,
711
711
  active: i.value === f.value,
712
712
  color: i.value === f.value ? e.color : void 0,
713
713
  rounded: !0,
@@ -730,7 +730,7 @@ const Ne = $({
730
730
  key: "month"
731
731
  }, D), null);
732
732
  })])]), [[ge, {
733
- handler: d
733
+ handler: s
734
734
  }, null, {
735
735
  once: !0
736
736
  }]])), {};
@@ -766,8 +766,8 @@ const Ne = $({
766
766
  ...Ne({
767
767
  weeksInMonth: "static"
768
768
  }),
769
- ...j(Re(), ["modelValue"]),
770
- ...j(Ue(), ["modelValue"]),
769
+ ...H(Re(), ["modelValue"]),
770
+ ...H(Ue(), ["modelValue"]),
771
771
  ...Fe({
772
772
  title: "$vuetify.datePicker.title"
773
773
  }),
@@ -787,30 +787,30 @@ const Ne = $({
787
787
  emit: r,
788
788
  slots: n
789
789
  } = a;
790
- const t = H(), {
790
+ const t = L(), {
791
791
  t: i
792
- } = q(), {
793
- rtlClasses: u
794
- } = at(), s = F(e, "modelValue", void 0, (v) => X(v).map((g) => t.date(g)), (v) => e.multiple ? v : v[0]), d = F(e, "viewMode"), {
792
+ } = G(), {
793
+ rtlClasses: d
794
+ } = at(), u = F(e, "modelValue", void 0, (v) => ee(v).map((g) => t.date(g)), (v) => e.multiple ? v : v[0]), s = F(e, "viewMode"), {
795
795
  minDate: k,
796
796
  maxDate: f,
797
797
  clampDate: h
798
798
  } = ye(e), D = V(() => {
799
- const v = t.date(), g = s.value?.[0] ? t.date(s.value[0]) : h(v);
799
+ const v = t.date(), g = u.value?.[0] ? t.date(u.value[0]) : h(v);
800
800
  return g && t.isValid(g) ? g : v;
801
- }), S = ee(() => e.headerColor ?? e.color), p = F(e, "month"), l = V({
801
+ }), S = te(() => e.headerColor ?? e.color), p = F(e, "month"), l = V({
802
802
  get: () => Number(p.value ?? t.getMonth(t.startOfMonth(D.value))),
803
803
  set: (v) => p.value = v
804
804
  }), y = F(e, "year"), c = V({
805
805
  get: () => Number(y.value ?? t.getYear(t.startOfYear(t.setMonth(D.value, l.value)))),
806
806
  set: (v) => y.value = v
807
- }), b = Z(!1), C = V(() => e.multiple && s.value.length > 1 ? i("$vuetify.datePicker.itemsSelected", s.value.length) : s.value[0] && t.isValid(s.value[0]) ? t.format(t.date(s.value[0]), "normalDateWithWeekday") : i(e.header)), o = V(() => {
807
+ }), b = q(!1), C = V(() => e.multiple && u.value.length > 1 ? i("$vuetify.datePicker.itemsSelected", u.value.length) : u.value[0] && t.isValid(u.value[0]) ? t.format(t.date(u.value[0]), "normalDateWithWeekday") : i(e.header)), o = V(() => {
808
808
  let v = t.date();
809
809
  return v = t.setDate(v, 1), v = t.setMonth(v, l.value), v = t.setYear(v, c.value), t.format(v, "monthAndYear");
810
- }), P = ee(() => `date-picker-header${b.value ? "-reverse" : ""}-transition`), Y = V(() => {
810
+ }), P = te(() => `date-picker-header${b.value ? "-reverse" : ""}-transition`), Y = V(() => {
811
811
  if (e.disabled) return !0;
812
812
  const v = [];
813
- if (d.value !== "month")
813
+ if (s.value !== "month")
814
814
  v.push("prev", "next");
815
815
  else {
816
816
  let g = t.date();
@@ -824,8 +824,8 @@ const Ne = $({
824
824
  }
825
825
  }
826
826
  return v;
827
- }), G = V(() => e.allowedYears || ue), W = V(() => e.allowedMonths || te);
828
- function z(v, g) {
827
+ }), Q = V(() => e.allowedYears || ue), W = V(() => e.allowedMonths || ae);
828
+ function K(v, g) {
829
829
  const M = e.allowedDates;
830
830
  if (typeof M != "function") return !0;
831
831
  const B = 1 + $e(t, v, g);
@@ -836,7 +836,7 @@ const Ne = $({
836
836
  function ue(v) {
837
837
  if (typeof e.allowedDates == "function") {
838
838
  const g = t.parseISO(`${v}-01-01`);
839
- return z(g, t.endOfYear(g));
839
+ return K(g, t.endOfYear(g));
840
840
  }
841
841
  if (Array.isArray(e.allowedDates) && e.allowedDates.length) {
842
842
  for (const g of e.allowedDates)
@@ -845,10 +845,10 @@ const Ne = $({
845
845
  }
846
846
  return !0;
847
847
  }
848
- function te(v) {
848
+ function ae(v) {
849
849
  if (typeof e.allowedDates == "function") {
850
850
  const g = String(v + 1).padStart(2, "0"), M = t.parseISO(`${c.value}-${g}-01`);
851
- return z(M, t.endOfMonth(M));
851
+ return K(M, t.endOfMonth(M));
852
852
  }
853
853
  if (Array.isArray(e.allowedDates) && e.allowedDates.length) {
854
854
  for (const g of e.allowedDates)
@@ -864,36 +864,36 @@ const Ne = $({
864
864
  l.value > 0 ? l.value-- : (c.value--, l.value = 11, A()), m();
865
865
  }
866
866
  function ce() {
867
- d.value = "month";
867
+ s.value = "month";
868
868
  }
869
- function ae() {
870
- d.value = d.value === "months" ? "month" : "months";
869
+ function ne() {
870
+ s.value = s.value === "months" ? "month" : "months";
871
871
  }
872
- function Q() {
873
- d.value = d.value === "year" ? "month" : "year";
872
+ function X() {
873
+ s.value = s.value === "year" ? "month" : "year";
874
874
  }
875
875
  function m() {
876
- d.value === "months" && ae();
876
+ s.value === "months" && ne();
877
877
  }
878
878
  function A() {
879
- d.value === "year" && Q();
879
+ s.value === "year" && X();
880
880
  }
881
- return oe(s, (v, g) => {
882
- const M = X(g), B = X(v);
881
+ return oe(u, (v, g) => {
882
+ const M = ee(g), B = ee(v);
883
883
  if (!B.length) return;
884
- const I = t.date(M[M.length - 1]), L = t.date(B[B.length - 1]), U = t.getMonth(L), _ = t.getYear(L);
885
- U !== l.value && (l.value = U, m()), _ !== c.value && (c.value = _, A()), b.value = t.isBefore(I, L);
884
+ const I = t.date(M[M.length - 1]), J = t.date(B[B.length - 1]), U = t.getMonth(J), _ = t.getYear(J);
885
+ U !== l.value && (l.value = U, m()), _ !== c.value && (c.value = _, A()), b.value = t.isBefore(I, J);
886
886
  }), R(() => {
887
- const v = Ve.filterProps(e), g = Pe.filterProps(e), M = xe.filterProps(e), B = Me.filterProps(e), I = j(Se.filterProps(e), ["modelValue"]), L = j(Ce.filterProps(e), ["modelValue"]), U = {
887
+ const v = Ve.filterProps(e), g = Pe.filterProps(e), M = xe.filterProps(e), B = Me.filterProps(e), I = H(Se.filterProps(e), ["modelValue"]), J = H(Ce.filterProps(e), ["modelValue"]), U = {
888
888
  color: S.value,
889
889
  header: C.value,
890
890
  transition: P.value
891
891
  };
892
892
  return w(Ve, O(v, {
893
893
  color: S.value,
894
- class: ["v-date-picker", `v-date-picker--${d.value}`, {
894
+ class: ["v-date-picker", `v-date-picker--${s.value}`, {
895
895
  "v-date-picker--show-week": e.showWeek
896
- }, u.value, e.class],
896
+ }, d.value, e.class],
897
897
  style: e.style
898
898
  }), {
899
899
  title: () => n.title?.() ?? x("div", {
@@ -910,7 +910,7 @@ const Ne = $({
910
910
  }) : w(xe, O({
911
911
  key: "header"
912
912
  }, M, U, {
913
- onClick: d.value !== "month" ? ce : void 0
913
+ onClick: s.value !== "month" ? ce : void 0
914
914
  }), {
915
915
  prepend: n.prepend,
916
916
  append: n.append
@@ -920,12 +920,12 @@ const Ne = $({
920
920
  text: o.value,
921
921
  "onClick:next": de,
922
922
  "onClick:prev": se,
923
- "onClick:month": ae,
924
- "onClick:year": Q
923
+ "onClick:month": ne,
924
+ "onClick:year": X
925
925
  }), null), w(nt, {
926
926
  hideOnLeave: !0
927
927
  }, {
928
- default: () => [d.value === "months" ? w(Se, O({
928
+ default: () => [s.value === "months" ? w(Se, O({
929
929
  key: "date-picker-months"
930
930
  }, I, {
931
931
  modelValue: l.value,
@@ -936,21 +936,21 @@ const Ne = $({
936
936
  allowedMonths: W.value
937
937
  }), {
938
938
  month: n.month
939
- }) : d.value === "year" ? w(Ce, O({
939
+ }) : s.value === "year" ? w(Ce, O({
940
940
  key: "date-picker-years"
941
- }, L, {
941
+ }, J, {
942
942
  modelValue: c.value,
943
943
  "onUpdate:modelValue": [(_) => c.value = _, A],
944
944
  min: k.value,
945
945
  max: f.value,
946
- allowedYears: G.value
946
+ allowedYears: Q.value
947
947
  }), {
948
948
  year: n.year
949
949
  }) : w(Me, O({
950
950
  key: "date-picker-month"
951
951
  }, B, {
952
- modelValue: s.value,
953
- "onUpdate:modelValue": (_) => s.value = _,
952
+ modelValue: u.value,
953
+ "onUpdate:modelValue": (_) => u.value = _,
954
954
  month: l.value,
955
955
  "onUpdate:month": [(_) => l.value = _, m],
956
956
  year: c.value,
@@ -966,7 +966,7 @@ const Ne = $({
966
966
  }), {};
967
967
  }
968
968
  });
969
- class E {
969
+ class j {
970
970
  constructor(a, r) {
971
971
  this.order = a, this.separator = r;
972
972
  }
@@ -979,30 +979,30 @@ class E {
979
979
  return ["y", "m", "d"].every((n) => r.includes(n)) && ["/", "-", "."].some((n) => a.includes(n));
980
980
  }
981
981
  static parse(a) {
982
- if (!E.canBeParsed(a))
982
+ if (!j.canBeParsed(a))
983
983
  throw new Error(`[${a}] cannot be parsed into date format specification`);
984
- const r = a.toLowerCase().split("").filter((t, i, u) => "dmy".includes(t) && u.indexOf(t) === i).join(""), n = ["/", "-", "."].find((t) => a.includes(t));
985
- return new E(r, n);
984
+ const r = a.toLowerCase().split("").filter((t, i, d) => "dmy".includes(t) && d.indexOf(t) === i).join(""), n = ["/", "-", "."].find((t) => a.includes(t));
985
+ return new j(r, n);
986
986
  }
987
987
  }
988
988
  const bt = $({
989
989
  inputFormat: {
990
990
  type: String,
991
- validator: (e) => !e || E.canBeParsed(e)
991
+ validator: (e) => !e || j.canBeParsed(e)
992
992
  }
993
993
  }, "date-format");
994
994
  function Vt(e, a) {
995
- const r = H();
995
+ const r = L();
996
996
  function n() {
997
- const d = a.value ?? "en-US", k = Intl.DateTimeFormat(d, {
997
+ const s = a.value ?? "en-US", k = Intl.DateTimeFormat(s, {
998
998
  year: "numeric",
999
999
  month: "2-digit",
1000
1000
  day: "2-digit"
1001
1001
  }).format(r.toJsDate(r.parseISO("1999-12-07"))).replace(/(07)|(٠٧)|(٢٩)|(۱۶)|(০৭)/, "dd").replace(/(12)|(١٢)|(٠٨)|(۰۹)|(১২)/, "mm").replace(/(1999)|(2542)|(١٩٩٩)|(١٤٢٠)|(۱۳۷۸)|(১৯৯৯)/, "yyyy").replace(/[^ymd\-/.]/g, "").replace(/\.$/, "");
1002
- return E.canBeParsed(k) ? k : (lt(`Date format inferred from locale [${d}] is invalid: [${k}]`), "mm/dd/yyyy");
1002
+ return j.canBeParsed(k) ? k : (lt(`Date format inferred from locale [${s}] is invalid: [${k}]`), "mm/dd/yyyy");
1003
1003
  }
1004
- const t = ee(() => E.canBeParsed(e.inputFormat) ? E.parse(e.inputFormat) : E.parse(n()));
1005
- function i(d) {
1004
+ const t = te(() => j.canBeParsed(e.inputFormat) ? j.parse(e.inputFormat) : j.parse(n()));
1005
+ function i(s) {
1006
1006
  function k(b) {
1007
1007
  const C = b.trim().split(t.value.separator);
1008
1008
  return {
@@ -1030,7 +1030,7 @@ function Vt(e, a) {
1030
1030
  const o = ~~(C / 100) * 100;
1031
1031
  return b < 50 ? o + b : o - 100 + b;
1032
1032
  }
1033
- const D = k(d), S = f(D);
1033
+ const D = k(s), S = f(D);
1034
1034
  if (!S) return null;
1035
1035
  const {
1036
1036
  year: p,
@@ -1039,18 +1039,18 @@ function Vt(e, a) {
1039
1039
  } = S, c = (b) => String(b).padStart(2, "0");
1040
1040
  return r.parseISO(`${p}-${c(l)}-${c(y)}`);
1041
1041
  }
1042
- function u(d) {
1043
- return !!i(d);
1042
+ function d(s) {
1043
+ return !!i(s);
1044
1044
  }
1045
- function s(d) {
1046
- const k = r.toISO(d).split("T")[0].split("-");
1045
+ function u(s) {
1046
+ const k = r.toISO(s).split("T")[0].split("-");
1047
1047
  return t.value.order.split("").map((f) => k["ymd".indexOf(f)]).join(t.value.separator);
1048
1048
  }
1049
1049
  return {
1050
- isValid: u,
1050
+ isValid: d,
1051
1051
  parseDate: i,
1052
- formatDate: s,
1053
- parserFormat: ee(() => t.value.format)
1052
+ formatDate: u,
1053
+ parserFormat: te(() => t.value.format)
1054
1054
  };
1055
1055
  }
1056
1056
  const wt = $({
@@ -1078,7 +1078,7 @@ const wt = $({
1078
1078
  ...ct({
1079
1079
  prependIcon: "$calendar"
1080
1080
  }),
1081
- ...j(Ee({
1081
+ ...H(Ee({
1082
1082
  hideHeader: !0,
1083
1083
  showAdjacentMonths: !0
1084
1084
  }), ["active", "location", "rounded", "height", "minHeight", "maxHeight"])
@@ -1100,9 +1100,9 @@ const wt = $({
1100
1100
  const {
1101
1101
  t,
1102
1102
  current: i
1103
- } = q(), u = H(), {
1104
- isValid: s,
1105
- parseDate: d,
1103
+ } = G(), d = L(), {
1104
+ isValid: u,
1105
+ parseDate: s,
1106
1106
  formatDate: k,
1107
1107
  parserFormat: f
1108
1108
  } = Vt(e, i), {
@@ -1110,31 +1110,31 @@ const wt = $({
1110
1110
  } = rt(e), {
1111
1111
  clampDate: D,
1112
1112
  isInAllowedRange: S
1113
- } = ye(e), p = () => e.multiple ? [] : null, l = F(e, "modelValue", p(), (m) => Array.isArray(m) ? m.map((A) => u.toJsDate(A)) : m && u.toJsDate(m), (m) => Array.isArray(m) ? m.map((A) => u.date(A)) : m && u.date(m)), y = F(e, "menu"), c = Z(!1), b = Z(e.focused), C = re(), o = re(["save"]);
1113
+ } = ye(e), p = () => e.multiple ? [] : null, l = F(e, "modelValue", p(), (m) => Array.isArray(m) ? m.map((A) => d.toJsDate(A)) : m && d.toJsDate(m), (m) => Array.isArray(m) ? m.map((A) => d.date(A)) : m && d.date(m)), y = F(e, "menu"), c = q(!1), b = q(e.focused), C = re(), o = re(["save"]);
1114
1114
  function P(m) {
1115
- return typeof e.displayFormat == "function" ? e.displayFormat(m) : e.displayFormat ? u.format(m, e.displayFormat ?? "keyboardDate") : k(m);
1115
+ return typeof e.displayFormat == "function" ? e.displayFormat(m) : e.displayFormat ? d.format(m, e.displayFormat ?? "keyboardDate") : k(m);
1116
1116
  }
1117
1117
  const Y = V(() => {
1118
- const m = X(l.value);
1118
+ const m = ee(l.value);
1119
1119
  if (!m.length) return null;
1120
1120
  if (e.multiple === !0)
1121
1121
  return t("$vuetify.datePicker.itemsSelected", m.length);
1122
1122
  if (e.multiple === "range") {
1123
1123
  const A = m[0], v = m[m.length - 1];
1124
- return !u.isValid(A) || !u.isValid(v) ? "" : `${P(u.date(A))} - ${P(u.date(v))}`;
1124
+ return !d.isValid(A) || !d.isValid(v) ? "" : `${P(d.date(A))} - ${P(d.date(v))}`;
1125
1125
  }
1126
- return u.isValid(l.value) ? P(u.date(l.value)) : "";
1127
- }), G = V(() => {
1126
+ return d.isValid(l.value) ? P(d.date(l.value)) : "";
1127
+ }), Q = V(() => {
1128
1128
  if (h.value)
1129
1129
  return c.value ? "text" : "none";
1130
- }), W = V(() => !e.disabled && !e.readonly), z = V(() => e.updateOn.length ? !(h.value && c.value) && e.readonly : !0);
1130
+ }), W = V(() => !e.disabled && !e.readonly), K = V(() => e.updateOn.length ? !(h.value && c.value) && e.readonly : !0);
1131
1131
  oe(y, (m) => {
1132
1132
  m || (c.value = !1, o.value = ["save"]);
1133
1133
  });
1134
1134
  function ue(m) {
1135
- m.key === "Enter" && ((!y.value || !b.value) && (y.value = !0), e.updateOn.includes("enter") && !e.readonly && Q(m.target));
1135
+ m.key === "Enter" && ((!y.value || !b.value) && (y.value = !0), e.updateOn.includes("enter") && !e.readonly && X(m.target));
1136
1136
  }
1137
- function te(m) {
1137
+ function ae(m) {
1138
1138
  m.preventDefault(), m.stopPropagation(), y.value && h.value ? c.value = !0 : y.value = !0;
1139
1139
  }
1140
1140
  function de() {
@@ -1146,44 +1146,44 @@ const wt = $({
1146
1146
  function ce(m) {
1147
1147
  m == null && (l.value = p());
1148
1148
  }
1149
- function ae(m) {
1150
- e.updateOn.includes("blur") && !e.readonly && Q(m.target), h.value && c.value && !b.value && (y.value = !1, c.value = !1);
1149
+ function ne(m) {
1150
+ e.updateOn.includes("blur") && !e.readonly && X(m.target), h.value && c.value && !b.value && (y.value = !1, c.value = !1);
1151
1151
  }
1152
- function Q(m) {
1152
+ function X(m) {
1153
1153
  let {
1154
1154
  value: A
1155
1155
  } = m;
1156
1156
  if (!A.trim())
1157
1157
  l.value = p();
1158
1158
  else if (!e.multiple)
1159
- s(A) && (l.value = D(d(A)));
1159
+ u(A) && (l.value = D(s(A)));
1160
1160
  else {
1161
1161
  const v = A.trim().split(/\D+-\D+|[^\d\-/.]+/);
1162
- if (v.every(s))
1162
+ if (v.every(u))
1163
1163
  if (e.multiple === "range") {
1164
- const [g, M] = v.map(d).map(D).toSorted((B, I) => u.isAfter(B, I) ? 1 : -1);
1165
- l.value = Be(u, g, M);
1164
+ const [g, M] = v.map(s).map(D).toSorted((B, I) => d.isAfter(B, I) ? 1 : -1);
1165
+ l.value = Be(d, g, M);
1166
1166
  } else
1167
- l.value = v.map(d).filter(S);
1167
+ l.value = v.map(s).filter(S);
1168
1168
  }
1169
1169
  }
1170
1170
  return R(() => {
1171
- const m = we.filterProps(e), A = Ae.filterProps(j(e, ["active", "bgColor", "color", "location", "rounded", "maxWidth", "minWidth", "width"])), v = it(n, ["title", "header", "day", "month", "year"]), g = be.filterProps(j(e, ["placeholder"]));
1171
+ const m = we.filterProps(e), A = Ae.filterProps(H(e, ["active", "bgColor", "color", "location", "rounded", "maxWidth", "minWidth", "width"])), v = it(n, ["title", "header", "day", "month", "year"]), g = be.filterProps(H(e, ["placeholder"]));
1172
1172
  return w(be, O({
1173
1173
  ref: C
1174
1174
  }, g, {
1175
1175
  class: e.class,
1176
1176
  style: e.style,
1177
1177
  modelValue: Y.value,
1178
- inputmode: G.value,
1178
+ inputmode: Q.value,
1179
1179
  placeholder: e.placeholder ?? f.value,
1180
- readonly: z.value,
1180
+ readonly: K.value,
1181
1181
  onKeydown: W.value ? ue : void 0,
1182
1182
  focused: y.value || b.value,
1183
- onBlur: ae,
1183
+ onBlur: ne,
1184
1184
  validationValue: l.value,
1185
- "onClick:control": W.value ? te : void 0,
1186
- "onClick:prepend": W.value ? te : void 0,
1185
+ "onClick:control": W.value ? ae : void 0,
1186
+ "onClick:prepend": W.value ? ae : void 0,
1187
1187
  "onUpdate:modelValue": ce,
1188
1188
  "onUpdate:focused": (M) => b.value = M
1189
1189
  }), {
@@ -1209,21 +1209,21 @@ const wt = $({
1209
1209
  let {
1210
1210
  actions: B,
1211
1211
  model: I,
1212
- save: L,
1212
+ save: J,
1213
1213
  cancel: U,
1214
1214
  isPristine: _
1215
1215
  } = M;
1216
- function je(J) {
1217
- e.hideActions ? (l.value = J, e.multiple || (y.value = !1)) : I.value = J, r("save", J), o.value = [];
1216
+ function je(z) {
1217
+ e.hideActions ? (l.value = z, e.multiple || (y.value = !1)) : I.value = z, r("save", z), o.value = [];
1218
1218
  }
1219
1219
  return w(Ae, O(A, {
1220
1220
  modelValue: e.hideActions ? l.value : I.value,
1221
- "onUpdate:modelValue": (J) => je(J),
1222
- onMousedown: (J) => J.preventDefault()
1221
+ "onUpdate:modelValue": (z) => je(z),
1222
+ onMousedown: (z) => z.preventDefault()
1223
1223
  }), {
1224
1224
  ...v,
1225
1225
  actions: e.hideActions ? void 0 : () => n.actions?.({
1226
- save: L,
1226
+ save: J,
1227
1227
  cancel: U,
1228
1228
  isPristine: _
1229
1229
  }) ?? B()
@@ -1250,20 +1250,17 @@ const wt = $({
1250
1250
  const a = Ze(e, "modelValue"), r = e, n = V({
1251
1251
  get: () => {
1252
1252
  const t = r.returnFormat, i = Array.isArray(a.value);
1253
- let u;
1254
- if (a.value)
1255
- return i && a.value.length ? u = a.value.map(
1256
- (s) => new Date(ne(s, t).format())
1257
- ) : u = new Date(ne(a.value, t).format()), u;
1253
+ let d;
1254
+ return i ? d = a.value.filter((u) => E(u, t).isValid()).map((u) => new Date(E(u, t).format())) : E(a.value, t).isValid() && (d = new Date(E(a.value, t).format())), d;
1258
1255
  },
1259
1256
  set: (t) => {
1260
1257
  const i = r.returnFormat;
1261
- Array.isArray(t) && t.length ? a.value = t.map((s) => ne(s).format(i)) : a.value = ne(t).format(i);
1258
+ Array.isArray(t) ? a.value = t.filter((u) => E(u).isValid()).map((u) => E(u).format(i)) : a.value = E(t).isValid() ? E(t).format(i) : void 0;
1262
1259
  }
1263
1260
  });
1264
1261
  return (t, i) => (Ge(), qe(he(Pt), {
1265
1262
  modelValue: he(n),
1266
- "onUpdate:modelValue": i[0] || (i[0] = (u) => Qe(n) ? n.value = u : null)
1263
+ "onUpdate:modelValue": i[0] || (i[0] = (d) => Qe(n) ? n.value = d : null)
1267
1264
  }, null, 8, ["modelValue"]));
1268
1265
  }
1269
1266
  };