@nhtio/lucid-resourceful-vue-components 0.1.0-master-e14740ea → 1.20251107.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{VBtn-DhfYEt9V.mjs → VBtn-C_58hP1L.mjs} +7 -7
- package/{VBtn-DhfYEt9V.mjs.map → VBtn-C_58hP1L.mjs.map} +1 -1
- package/{VDatePicker-D0OTAyvJ.mjs → VDatePicker-CKxKmuCC.mjs} +165 -165
- package/{VDatePicker-D0OTAyvJ.mjs.map → VDatePicker-CKxKmuCC.mjs.map} +1 -1
- package/{VEmptyState-BFrXSTJ-.mjs → VEmptyState-CjqRy_Xt.mjs} +40 -40
- package/{VEmptyState-BFrXSTJ-.mjs.map → VEmptyState-CjqRy_Xt.mjs.map} +1 -1
- package/{VHover-DLvOmsjv.mjs → VHover-D-sydp3P.mjs} +3 -3
- package/{VHover-DLvOmsjv.mjs.map → VHover-D-sydp3P.mjs.map} +1 -1
- package/{VListItem-LNaoM8S4.mjs → VListItem-DNNkp2dc.mjs} +55 -55
- package/{VListItem-LNaoM8S4.mjs.map → VListItem-DNNkp2dc.mjs.map} +1 -1
- package/{VMenu-9rTbTKtH.mjs → VMenu-oGwvgLV1.mjs} +28 -28
- package/{VMenu-9rTbTKtH.mjs.map → VMenu-oGwvgLV1.mjs.map} +1 -1
- package/{VPicker-BGuRD0KW.mjs → VPicker-EfRj-X6U.mjs} +4 -4
- package/{VPicker-BGuRD0KW.mjs.map → VPicker-EfRj-X6U.mjs.map} +1 -1
- package/{VRadioGroup-Dx_wEqzl.mjs → VRadioGroup-CDf6CGwX.mjs} +21 -21
- package/{VRadioGroup-Dx_wEqzl.mjs.map → VRadioGroup-CDf6CGwX.mjs.map} +1 -1
- package/{VRow-DaLdbIGw.mjs → VRow-Da2fdUPu.mjs} +17 -17
- package/{VRow-DaLdbIGw.mjs.map → VRow-Da2fdUPu.mjs.map} +1 -1
- package/{VSheet-DnIfs-1c.mjs → VSheet-DdygPJlo.mjs} +13 -13
- package/{VSheet-DnIfs-1c.mjs.map → VSheet-DdygPJlo.mjs.map} +1 -1
- package/{actions-8bWGsB-p.mjs → actions-5gxlWcWt.mjs} +14 -14
- package/{actions-8bWGsB-p.mjs.map → actions-5gxlWcWt.mjs.map} +1 -1
- package/{alert-IW1AIWZw.mjs → alert-C6Dxm9jn.mjs} +13 -13
- package/{alert-IW1AIWZw.mjs.map → alert-C6Dxm9jn.mjs.map} +1 -1
- package/{bigint-Jmfa2L4S.mjs → bigint-CqXe_geE.mjs} +6 -6
- package/{bigint-Jmfa2L4S.mjs.map → bigint-CqXe_geE.mjs.map} +1 -1
- package/{boolean-BEY7eBxf.mjs → boolean-BaevWx3k.mjs} +39 -39
- package/{boolean-BEY7eBxf.mjs.map → boolean-BaevWx3k.mjs.map} +1 -1
- package/{clipboard-BoKd7mFG.mjs → clipboard-CGd9vMCV.mjs} +51 -51
- package/{clipboard-BoKd7mFG.mjs.map → clipboard-CGd9vMCV.mjs.map} +1 -1
- package/{colorUtils-DmtKYNgW.mjs → colorUtils-BdpqbLZS.mjs} +3 -3
- package/{colorUtils-DmtKYNgW.mjs.map → colorUtils-BdpqbLZS.mjs.map} +1 -1
- package/{common-BeDAn4wu.mjs → common-DrsZRUoj.mjs} +8881 -8880
- package/common-DrsZRUoj.mjs.map +1 -0
- package/common.css +1 -1
- package/{component-CjPpW_A2.mjs → component-DhEJuSE6.mjs} +2 -2
- package/{component-CjPpW_A2.mjs.map → component-DhEJuSE6.mjs.map} +1 -1
- package/components/autorefresh_controller.mjs +1 -1
- package/components/control_button.mjs +1 -1
- package/components/control_button_bar.mjs +2 -2
- package/components/control_menu.mjs +1 -1
- package/components/custom_field.mjs +1 -1
- package/components/exporter.mjs +1 -1
- package/components/fields/bigint.mjs +1 -1
- package/components/fields/boolean.mjs +1 -1
- package/components/fields/date.mjs +1 -1
- package/components/fields/date_time.mjs +1 -1
- package/components/fields/enum.mjs +1 -1
- package/components/fields/integer.mjs +1 -1
- package/components/fields/number.mjs +1 -1
- package/components/fields/string.mjs +1 -1
- package/components/fields/unsigned_integer.mjs +1 -1
- package/components/fields.mjs +9 -9
- package/components/form_with_validation.mjs +1 -1
- package/components/resourceful_alerter.mjs +1 -1
- package/components/resourceful_index.mjs +1 -1
- package/components/resourceful_record.mjs +2 -2
- package/components/resourceful_record_default_form.mjs +1 -1
- package/components/resourceful_record_form.mjs +1 -1
- package/components/sortable.mjs +1 -1
- package/components/svg_icon.mjs +1 -1
- package/components/timezone_picker.mjs +1 -1
- package/components.mjs +23 -23
- package/composables.mjs +8 -8
- package/{console-CRXioSFP.mjs → console-Dgoi3FwV.mjs} +2 -2
- package/{console-CRXioSFP.mjs.map → console-Dgoi3FwV.mjs.map} +1 -1
- package/{custom-Y1WJVKP9.mjs → custom-CXFDPB_N.mjs} +17 -17
- package/{custom-Y1WJVKP9.mjs.map → custom-CXFDPB_N.mjs.map} +1 -1
- package/{date-BxEeCNWD.mjs → date-BXNqToRH.mjs} +21 -21
- package/{date-BxEeCNWD.mjs.map → date-BXNqToRH.mjs.map} +1 -1
- package/{date_time-6kpv7eDF.mjs → date_time-DuRO8DS4.mjs} +299 -299
- package/{date_time-6kpv7eDF.mjs.map → date_time-DuRO8DS4.mjs.map} +1 -1
- package/{display-CO0pTIEs.mjs → display-BL-pquAI.mjs} +41 -41
- package/{display-CO0pTIEs.mjs.map → display-BL-pquAI.mjs.map} +1 -1
- package/{display-kAyhIPBH.mjs → display-DCHGPqrW.mjs} +7 -7
- package/{display-kAyhIPBH.mjs.map → display-DCHGPqrW.mjs.map} +1 -1
- package/{display-DvzWa1QO.mjs → display-TF26EjNQ.mjs} +40 -40
- package/{display-DvzWa1QO.mjs.map → display-TF26EjNQ.mjs.map} +1 -1
- package/{elevation-CMzO50xm.mjs → elevation-j7bb-vGU.mjs} +81 -81
- package/{elevation-CMzO50xm.mjs.map → elevation-j7bb-vGU.mjs.map} +1 -1
- package/{enum-noYU2Cqh.mjs → enum-CRgh6TfR.mjs} +22 -22
- package/{enum-noYU2Cqh.mjs.map → enum-CRgh6TfR.mjs.map} +1 -1
- package/factories.mjs +1 -1
- package/{field_composer-DpJx0Oz1.mjs → field_composer-CjKCvP50.mjs} +7 -7
- package/{field_composer-DpJx0Oz1.mjs.map → field_composer-CjKCvP50.mjs.map} +1 -1
- package/{form-CDLcDPyU.mjs → form-CFjPqvRf.mjs} +45 -45
- package/{form-CDLcDPyU.mjs.map → form-CFjPqvRf.mjs.map} +1 -1
- package/{guards-B99p3BPj.mjs → guards-Cby4QwzY.mjs} +2 -2
- package/{guards-B99p3BPj.mjs.map → guards-Cby4QwzY.mjs.map} +1 -1
- package/guards.mjs +4 -4
- package/helpers.mjs +6 -6
- package/{index-bXmNb9jX.mjs → index-B8OnsqN1.mjs} +10 -10
- package/{index-bXmNb9jX.mjs.map → index-B8OnsqN1.mjs.map} +1 -1
- package/{index-BaWthszI.mjs → index-C-PCfO1S.mjs} +2 -2
- package/{index-BaWthszI.mjs.map → index-C-PCfO1S.mjs.map} +1 -1
- package/{index-C9UuBVyI.mjs → index-CZg-HOo9.mjs} +12 -12
- package/{index-C9UuBVyI.mjs.map → index-CZg-HOo9.mjs.map} +1 -1
- package/{index-B2rKM3mR.mjs → index-ChVCZ8iE.mjs} +21 -21
- package/{index-B2rKM3mR.mjs.map → index-ChVCZ8iE.mjs.map} +1 -1
- package/{index-CzI9mHIx.mjs → index-Cou5qTHe.mjs} +13 -13
- package/{index-CzI9mHIx.mjs.map → index-Cou5qTHe.mjs.map} +1 -1
- package/{index-Bi050X9r.mjs → index-DM8E6faO.mjs} +8 -8
- package/{index-Bi050X9r.mjs.map → index-DM8E6faO.mjs.map} +1 -1
- package/{index-CIvylvfa.mjs → index-DSLt7-cJ.mjs} +43 -43
- package/{index-CIvylvfa.mjs.map → index-DSLt7-cJ.mjs.map} +1 -1
- package/{index-slHxe6b-.mjs → index-VpcXNOpn.mjs} +2 -2
- package/{index-slHxe6b-.mjs.map → index-VpcXNOpn.mjs.map} +1 -1
- package/{index-BUpccfIz.mjs → index-fiZltUBs.mjs} +3 -3
- package/{index-BUpccfIz.mjs.map → index-fiZltUBs.mjs.map} +1 -1
- package/index.mjs +31 -31
- package/{integer-BIJ4_I8y.mjs → integer-Dy0xpFif.mjs} +5 -5
- package/{integer-BIJ4_I8y.mjs.map → integer-Dy0xpFif.mjs.map} +1 -1
- package/{mdi-CqMJqgQi.mjs → mdi-BQSh-ess.mjs} +54 -54
- package/{mdi-CqMJqgQi.mjs.map → mdi-BQSh-ess.mjs.map} +1 -1
- package/{number-z_LAINPM.mjs → number-DWCew87L.mjs} +101 -101
- package/{number-z_LAINPM.mjs.map → number-DWCew87L.mjs.map} +1 -1
- package/package.json +38 -38
- package/{position-Ai5XksAO.mjs → position-B9VPkbhU.mjs} +2 -2
- package/{position-Ai5XksAO.mjs.map → position-B9VPkbhU.mjs.map} +1 -1
- package/{props-p4f5Pa5h.mjs → props-Cjpc9pre.mjs} +4 -4
- package/{props-p4f5Pa5h.mjs.map → props-Cjpc9pre.mjs.map} +1 -1
- package/{props-BYX22zcE.mjs → props-DQlQ6VDP.mjs} +6 -6
- package/{props-BYX22zcE.mjs.map → props-DQlQ6VDP.mjs.map} +1 -1
- package/{renderers-BKUvrrVm.mjs → renderers-hznWrh2D.mjs} +13 -13
- package/{renderers-BKUvrrVm.mjs.map → renderers-hznWrh2D.mjs.map} +1 -1
- package/{string-Dmr8SRMf.mjs → string-BTd_Gwx-.mjs} +136 -136
- package/{string-Dmr8SRMf.mjs.map → string-BTd_Gwx-.mjs.map} +1 -1
- package/{unsigned_integer-BliPiCXO.mjs → unsigned_integer-CfxxFKrO.mjs} +4 -4
- package/{unsigned_integer-BliPiCXO.mjs.map → unsigned_integer-CfxxFKrO.mjs.map} +1 -1
- package/useRender-CfNJA_8a.mjs +9 -0
- package/{useRender-BD1xw5zG.mjs.map → useRender-CfNJA_8a.mjs.map} +1 -1
- package/{utils-DqXWb-4f.mjs → utils-D3ZGaTyv.mjs} +48 -48
- package/{utils-DqXWb-4f.mjs.map → utils-D3ZGaTyv.mjs.map} +1 -1
- package/{validation-DS3tTSk5.mjs → validation-BobMyGeq.mjs} +4 -4
- package/{validation-DS3tTSk5.mjs.map → validation-BobMyGeq.mjs.map} +1 -1
- package/common-BeDAn4wu.mjs.map +0 -1
- package/useRender-BD1xw5zG.mjs +0 -9
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { inject as _t, reactive as xt, watch as Pe, computed as x, createElementVNode as O, normalizeClass as p, createVNode as $, normalizeStyle as At, ref as Yt, shallowRef as ie, toRef as we, createTextVNode as $t, watchEffect as Ke, mergeProps as G, withDirectives as Ot, Fragment as It } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { V as K } from "./VBtn-
|
|
4
|
-
import { z as Lt } from "./mdi-
|
|
5
|
-
import { V as Ie, m as Rt } from "./VPicker-
|
|
6
|
-
import { p as
|
|
7
|
-
import { m as fe } from "./component-
|
|
8
|
-
import { i as me, b as tt, G as at, c as nt, H as ye, I as
|
|
9
|
-
import { g as R, I as ce, m as ra, b as ia } from "./elevation-
|
|
10
|
-
import { u as
|
|
11
|
-
import { A as rt, Q as oa } from "./common-
|
|
12
|
-
import { m as sa, u as da } from "./position-
|
|
2
|
+
import { N as ve, g as Z, p as Q, o as q, av as Se, V as J, M as oe, h as Nt, aw as Qe, E as Ze, a9 as Wt, u as F, a0 as se, F as ee, aE as qe, I as Oe, aY as Bt, A as jt, ah as Tt } from "./display-TF26EjNQ.mjs";
|
|
3
|
+
import { V as K } from "./VBtn-C_58hP1L.mjs";
|
|
4
|
+
import { z as Lt } from "./mdi-BQSh-ess.mjs";
|
|
5
|
+
import { V as Ie, m as Rt } from "./VPicker-EfRj-X6U.mjs";
|
|
6
|
+
import { p as j, E as D, aC as Me, Q as M, am as Xe, z as Ce, aD as Et, V as Ft, a6 as Ht, O as _e, ad as de, x as te, M as Ut, W as ue, C as Ve, aE as zt, aF as pe, N as et, L as E, ai as Gt, S as Jt, U as Kt, F as Qt } from "./utils-D3ZGaTyv.mjs";
|
|
7
|
+
import { m as fe } from "./component-DhEJuSE6.mjs";
|
|
8
|
+
import { i as me, b as tt, G as at, c as nt, H as ye, I as he, u as xe, M as lt, g as Ae, J as H, K as Zt, m as qt, j as Xt, x as pt, k as ea, p as ta, l as aa, B as na, n as la } from "./display-BL-pquAI.mjs";
|
|
9
|
+
import { g as R, I as ce, m as ra, b as ia } from "./elevation-j7bb-vGU.mjs";
|
|
10
|
+
import { u as U } from "./useRender-CfNJA_8a.mjs";
|
|
11
|
+
import { A as rt, Q as oa } from "./common-DrsZRUoj.mjs";
|
|
12
|
+
import { m as sa, u as da } from "./position-B9VPkbhU.mjs";
|
|
13
13
|
import './VDatePicker.css';const ua = Lt("v-spacer", "div", "VSpacer"), ca = Symbol.for("vuetify:date-options");
|
|
14
14
|
function va(e, t, l) {
|
|
15
15
|
const a = it(e, t, l), n = [t];
|
|
@@ -91,7 +91,7 @@ const ot = Q({
|
|
|
91
91
|
function s() {
|
|
92
92
|
l("click:year");
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function h() {
|
|
95
95
|
l("click:month");
|
|
96
96
|
}
|
|
97
97
|
return q(() => O("div", {
|
|
@@ -106,7 +106,7 @@ const ot = Q({
|
|
|
106
106
|
text: e.text,
|
|
107
107
|
variant: "text",
|
|
108
108
|
rounded: !0,
|
|
109
|
-
onClick:
|
|
109
|
+
onClick: h
|
|
110
110
|
}, null), $(J, {
|
|
111
111
|
class: "v-date-picker-controls__mode-btn",
|
|
112
112
|
"data-testid": "year-btn",
|
|
@@ -235,11 +235,11 @@ const ot = Q({
|
|
|
235
235
|
},
|
|
236
236
|
weekdayFormat: String
|
|
237
237
|
}, "calendar");
|
|
238
|
-
function
|
|
239
|
-
const t = ae(), l =
|
|
238
|
+
function ha(e) {
|
|
239
|
+
const t = ae(), l = F(e, "modelValue", [], (i) => se(i).map((f) => t.date(f))), a = x(() => e.displayValue ? t.date(e.displayValue) : l.value.length > 0 ? t.date(l.value[0]) : e.min ? t.date(e.min) : Array.isArray(e.allowedDates) ? t.date(e.allowedDates[0]) : t.date()), n = F(e, "year", void 0, (i) => {
|
|
240
240
|
const f = i != null ? Number(i) : t.getYear(a.value);
|
|
241
241
|
return t.startOfYear(t.setYear(t.date(), f));
|
|
242
|
-
}, (i) => t.getYear(i)), y =
|
|
242
|
+
}, (i) => t.getYear(i)), y = F(e, "month", void 0, (i) => {
|
|
243
243
|
const f = i != null ? Number(i) : t.getMonth(a.value), v = t.setYear(t.startOfMonth(t.date()), t.getYear(n.value));
|
|
244
244
|
return t.setMonth(v, f);
|
|
245
245
|
}, (i) => t.getMonth(i)), m = x(() => {
|
|
@@ -266,7 +266,7 @@ function ka(e) {
|
|
|
266
266
|
isEnd: o,
|
|
267
267
|
isHidden: _ && !e.showAdjacentMonths,
|
|
268
268
|
isSame: V,
|
|
269
|
-
isSelected: l.value.some((
|
|
269
|
+
isSelected: l.value.some((T) => t.isSameDay(v, T)),
|
|
270
270
|
isStart: P,
|
|
271
271
|
isToday: t.isSameDay(v, f),
|
|
272
272
|
isWeekEnd: w % C === C - 1,
|
|
@@ -287,7 +287,7 @@ function ka(e) {
|
|
|
287
287
|
}), s = x(() => {
|
|
288
288
|
const i = r.value.flat(), f = t.date();
|
|
289
289
|
return c(i, f);
|
|
290
|
-
}),
|
|
290
|
+
}), h = x(() => r.value.map((i) => i.length ? t.getWeek(i[0], e.firstDayOfWeek, e.firstDayOfYear) : null));
|
|
291
291
|
function b(i) {
|
|
292
292
|
if (e.disabled) return !0;
|
|
293
293
|
const f = t.date(i);
|
|
@@ -301,7 +301,7 @@ function ka(e) {
|
|
|
301
301
|
model: l,
|
|
302
302
|
weeksInMonth: r,
|
|
303
303
|
weekdayLabels: m,
|
|
304
|
-
weekNumbers:
|
|
304
|
+
weekNumbers: h
|
|
305
305
|
};
|
|
306
306
|
}
|
|
307
307
|
const st = Q({
|
|
@@ -338,8 +338,8 @@ const st = Q({
|
|
|
338
338
|
model: r,
|
|
339
339
|
weekNumbers: c,
|
|
340
340
|
weekdayLabels: d
|
|
341
|
-
} =
|
|
342
|
-
e.multiple === "range" && r.value.length > 0 && (
|
|
341
|
+
} = ha(e), s = ae(), h = ie(), b = ie(), i = ie(!1), f = we(() => i.value ? e.reverseTransition : e.transition);
|
|
342
|
+
e.multiple === "range" && r.value.length > 0 && (h.value = r.value[0], r.value.length > 1 && (b.value = r.value[r.value.length - 1]));
|
|
343
343
|
const v = x(() => {
|
|
344
344
|
const o = ["number", "string"].includes(typeof e.multiple) ? Number(e.multiple) : 1 / 0;
|
|
345
345
|
return r.value.length >= o;
|
|
@@ -349,16 +349,16 @@ const st = Q({
|
|
|
349
349
|
});
|
|
350
350
|
function w(o) {
|
|
351
351
|
const V = s.startOfDay(o);
|
|
352
|
-
if (r.value.length === 0 ?
|
|
353
|
-
|
|
352
|
+
if (r.value.length === 0 ? h.value = void 0 : r.value.length === 1 && (h.value = r.value[0], b.value = void 0), !h.value)
|
|
353
|
+
h.value = V, r.value = [h.value];
|
|
354
354
|
else if (b.value)
|
|
355
|
-
|
|
355
|
+
h.value = o, b.value = void 0, r.value = [h.value];
|
|
356
356
|
else {
|
|
357
|
-
if (s.isSameDay(V,
|
|
358
|
-
|
|
357
|
+
if (s.isSameDay(V, h.value)) {
|
|
358
|
+
h.value = void 0, r.value = [];
|
|
359
359
|
return;
|
|
360
|
-
} else s.isBefore(V,
|
|
361
|
-
r.value = va(s,
|
|
360
|
+
} else s.isBefore(V, h.value) ? (b.value = s.endOfDay(h.value), h.value = V) : b.value = s.endOfDay(V);
|
|
361
|
+
r.value = va(s, h.value, b.value);
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
function Y(o) {
|
|
@@ -437,7 +437,7 @@ const st = Q({
|
|
|
437
437
|
modelValue: Number,
|
|
438
438
|
year: Number,
|
|
439
439
|
allowedMonths: [Array, Function]
|
|
440
|
-
}, "VDatePickerMonths"),
|
|
440
|
+
}, "VDatePickerMonths"), je = Z()({
|
|
441
441
|
name: "VDatePickerMonths",
|
|
442
442
|
props: dt(),
|
|
443
443
|
emits: {
|
|
@@ -448,14 +448,14 @@ const st = Q({
|
|
|
448
448
|
emit: l,
|
|
449
449
|
slots: a
|
|
450
450
|
} = t;
|
|
451
|
-
const n = ae(), y =
|
|
451
|
+
const n = ae(), y = F(e, "modelValue"), m = x(() => {
|
|
452
452
|
let c = n.startOfYear(n.date());
|
|
453
453
|
return e.year && (c = n.setYear(c, e.year)), qe(12).map((d) => {
|
|
454
|
-
const s = n.format(c, "monthShort"),
|
|
454
|
+
const s = n.format(c, "monthShort"), h = n.format(c, "month"), b = !!(!r(d) || e.min && n.isAfter(n.startOfMonth(n.date(e.min)), c) || e.max && n.isAfter(c, n.startOfMonth(n.date(e.max))));
|
|
455
455
|
return c = n.getNextMonth(c), {
|
|
456
456
|
isDisabled: b,
|
|
457
457
|
text: s,
|
|
458
|
-
label:
|
|
458
|
+
label: h,
|
|
459
459
|
value: d
|
|
460
460
|
};
|
|
461
461
|
});
|
|
@@ -482,9 +482,9 @@ const st = Q({
|
|
|
482
482
|
rounded: !0,
|
|
483
483
|
text: c.text,
|
|
484
484
|
variant: y.value === c.value ? "flat" : "text",
|
|
485
|
-
onClick: () =>
|
|
485
|
+
onClick: () => h(d)
|
|
486
486
|
};
|
|
487
|
-
function
|
|
487
|
+
function h(b) {
|
|
488
488
|
if (y.value === b) {
|
|
489
489
|
l("update:modelValue", y.value);
|
|
490
490
|
return;
|
|
@@ -507,7 +507,7 @@ const st = Q({
|
|
|
507
507
|
max: null,
|
|
508
508
|
modelValue: Number,
|
|
509
509
|
allowedYears: [Array, Function]
|
|
510
|
-
}, "VDatePickerYears"),
|
|
510
|
+
}, "VDatePickerYears"), Te = Z()({
|
|
511
511
|
name: "VDatePickerYears",
|
|
512
512
|
props: ut(),
|
|
513
513
|
directives: {
|
|
@@ -521,12 +521,12 @@ const st = Q({
|
|
|
521
521
|
emit: l,
|
|
522
522
|
slots: a
|
|
523
523
|
} = t;
|
|
524
|
-
const n = ae(), y =
|
|
524
|
+
const n = ae(), y = F(e, "modelValue"), m = x(() => {
|
|
525
525
|
const s = n.getYear(n.date());
|
|
526
|
-
let
|
|
527
|
-
e.min && (
|
|
526
|
+
let h = s - 100, b = s + 52;
|
|
527
|
+
e.min && (h = n.getYear(n.date(e.min))), e.max && (b = n.getYear(n.date(e.max)));
|
|
528
528
|
let i = n.startOfYear(n.date());
|
|
529
|
-
return i = n.setYear(i,
|
|
529
|
+
return i = n.setYear(i, h), qe(b - h + 1, h).map((f) => {
|
|
530
530
|
const v = n.format(i, "year");
|
|
531
531
|
return i = n.setYear(i, n.getYear(i) + 1), {
|
|
532
532
|
text: v,
|
|
@@ -554,7 +554,7 @@ const st = Q({
|
|
|
554
554
|
}
|
|
555
555
|
}, [O("div", {
|
|
556
556
|
class: "v-date-picker-years__content"
|
|
557
|
-
}, [m.value.map((s,
|
|
557
|
+
}, [m.value.map((s, h) => {
|
|
558
558
|
const b = {
|
|
559
559
|
ref: y.value === s.value ? r : void 0,
|
|
560
560
|
active: y.value === s.value,
|
|
@@ -573,7 +573,7 @@ const st = Q({
|
|
|
573
573
|
};
|
|
574
574
|
return a.year?.({
|
|
575
575
|
year: s,
|
|
576
|
-
i:
|
|
576
|
+
i: h,
|
|
577
577
|
props: b
|
|
578
578
|
}) ?? $(J, G({
|
|
579
579
|
key: "month"
|
|
@@ -584,7 +584,7 @@ const st = Q({
|
|
|
584
584
|
once: !0
|
|
585
585
|
}]])), {};
|
|
586
586
|
}
|
|
587
|
-
}),
|
|
587
|
+
}), ka = Q({
|
|
588
588
|
// TODO: implement in v3.5
|
|
589
589
|
// calendarIcon: {
|
|
590
590
|
// type: String,
|
|
@@ -623,7 +623,7 @@ const st = Q({
|
|
|
623
623
|
modelValue: null
|
|
624
624
|
}, "VDatePicker"), Qa = Z()({
|
|
625
625
|
name: "VDatePicker",
|
|
626
|
-
props:
|
|
626
|
+
props: ka(),
|
|
627
627
|
emits: {
|
|
628
628
|
"update:modelValue": (e) => !0,
|
|
629
629
|
"update:month": (e) => !0,
|
|
@@ -640,21 +640,21 @@ const st = Q({
|
|
|
640
640
|
t: y
|
|
641
641
|
} = ve(), {
|
|
642
642
|
rtlClasses: m
|
|
643
|
-
} =
|
|
643
|
+
} = jt(), r = F(e, "modelValue", void 0, (u) => se(u).map((k) => n.date(k)), (u) => e.multiple ? u : u[0]), c = F(e, "viewMode"), d = x(() => {
|
|
644
644
|
const u = n.date(e.min);
|
|
645
645
|
return e.min && n.isValid(u) ? u : null;
|
|
646
646
|
}), s = x(() => {
|
|
647
647
|
const u = n.date(e.max);
|
|
648
648
|
return e.max && n.isValid(u) ? u : null;
|
|
649
|
-
}),
|
|
649
|
+
}), h = x(() => {
|
|
650
650
|
const u = n.date();
|
|
651
|
-
let
|
|
652
|
-
return r.value?.[0] ?
|
|
653
|
-
}), b = we(() => e.headerColor ?? e.color), i =
|
|
654
|
-
get: () => Number(i.value ?? n.getMonth(n.startOfMonth(
|
|
651
|
+
let k = u;
|
|
652
|
+
return r.value?.[0] ? k = n.date(r.value[0]) : d.value && n.isBefore(u, d.value) ? k = d.value : s.value && n.isAfter(u, s.value) && (k = s.value), k && n.isValid(k) ? k : u;
|
|
653
|
+
}), b = we(() => e.headerColor ?? e.color), i = F(e, "month"), f = x({
|
|
654
|
+
get: () => Number(i.value ?? n.getMonth(n.startOfMonth(h.value))),
|
|
655
655
|
set: (u) => i.value = u
|
|
656
|
-
}), v =
|
|
657
|
-
get: () => Number(v.value ?? n.getYear(n.startOfYear(n.setMonth(
|
|
656
|
+
}), v = F(e, "year"), w = x({
|
|
657
|
+
get: () => Number(v.value ?? n.getYear(n.startOfYear(n.setMonth(h.value, f.value)))),
|
|
658
658
|
set: (u) => v.value = u
|
|
659
659
|
}), Y = ie(!1), _ = x(() => e.multiple && r.value.length > 1 ? y("$vuetify.datePicker.itemsSelected", r.value.length) : r.value[0] && n.isValid(r.value[0]) ? n.format(n.date(r.value[0]), "normalDateWithWeekday") : y(e.header)), P = x(() => {
|
|
660
660
|
let u = n.date();
|
|
@@ -665,46 +665,46 @@ const st = Q({
|
|
|
665
665
|
if (c.value !== "month")
|
|
666
666
|
u.push("prev", "next");
|
|
667
667
|
else {
|
|
668
|
-
let
|
|
669
|
-
if (
|
|
670
|
-
const A = n.addDays(n.startOfMonth(
|
|
668
|
+
let k = n.date();
|
|
669
|
+
if (k = n.startOfMonth(k), k = n.setMonth(k, f.value), k = n.setYear(k, w.value), d.value) {
|
|
670
|
+
const A = n.addDays(n.startOfMonth(k), -1);
|
|
671
671
|
n.isAfter(d.value, A) && u.push("prev");
|
|
672
672
|
}
|
|
673
673
|
if (s.value) {
|
|
674
|
-
const A = n.addDays(n.endOfMonth(
|
|
674
|
+
const A = n.addDays(n.endOfMonth(k), 1);
|
|
675
675
|
n.isAfter(A, s.value) && u.push("next");
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
678
|
return u;
|
|
679
|
-
}), C = x(() => e.allowedYears ||
|
|
680
|
-
function le(u,
|
|
679
|
+
}), C = x(() => e.allowedYears || ke), T = x(() => e.allowedMonths || ge);
|
|
680
|
+
function le(u, k) {
|
|
681
681
|
const A = e.allowedDates;
|
|
682
682
|
if (typeof A != "function") return !0;
|
|
683
|
-
const I = 1 + it(n, u,
|
|
683
|
+
const I = 1 + it(n, u, k);
|
|
684
684
|
for (let N = 0; N < I; N++)
|
|
685
685
|
if (A(n.addDays(u, N))) return !0;
|
|
686
686
|
return !1;
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function ke(u) {
|
|
689
689
|
if (typeof e.allowedDates == "function") {
|
|
690
|
-
const
|
|
691
|
-
return le(
|
|
690
|
+
const k = n.parseISO(`${u}-01-01`);
|
|
691
|
+
return le(k, n.endOfYear(k));
|
|
692
692
|
}
|
|
693
693
|
if (Array.isArray(e.allowedDates) && e.allowedDates.length) {
|
|
694
|
-
for (const
|
|
695
|
-
if (n.getYear(n.date(
|
|
694
|
+
for (const k of e.allowedDates)
|
|
695
|
+
if (n.getYear(n.date(k)) === u) return !0;
|
|
696
696
|
return !1;
|
|
697
697
|
}
|
|
698
698
|
return !0;
|
|
699
699
|
}
|
|
700
700
|
function ge(u) {
|
|
701
701
|
if (typeof e.allowedDates == "function") {
|
|
702
|
-
const
|
|
702
|
+
const k = String(u + 1).padStart(2, "0"), A = n.parseISO(`${w.value}-${k}-01`);
|
|
703
703
|
return le(A, n.endOfMonth(A));
|
|
704
704
|
}
|
|
705
705
|
if (Array.isArray(e.allowedDates) && e.allowedDates.length) {
|
|
706
|
-
for (const
|
|
707
|
-
if (n.getYear(n.date(
|
|
706
|
+
for (const k of e.allowedDates)
|
|
707
|
+
if (n.getYear(n.date(k)) === w.value && n.getMonth(n.date(k)) === u) return !0;
|
|
708
708
|
return !1;
|
|
709
709
|
}
|
|
710
710
|
return !0;
|
|
@@ -730,13 +730,13 @@ const st = Q({
|
|
|
730
730
|
function g() {
|
|
731
731
|
c.value === "year" && z();
|
|
732
732
|
}
|
|
733
|
-
return Pe(r, (u,
|
|
734
|
-
const A = se(
|
|
733
|
+
return Pe(r, (u, k) => {
|
|
734
|
+
const A = se(k), I = se(u);
|
|
735
735
|
if (!I.length) return;
|
|
736
736
|
const N = n.date(A[A.length - 1]), W = n.date(I[I.length - 1]), S = n.getMonth(W), B = n.getYear(W);
|
|
737
737
|
S !== f.value && (f.value = S, L()), B !== w.value && (w.value = B, g()), Y.value = n.isBefore(N, W);
|
|
738
738
|
}), q(() => {
|
|
739
|
-
const u = Ie.filterProps(e),
|
|
739
|
+
const u = Ie.filterProps(e), k = Ne.filterProps(e), A = We.filterProps(e), I = Be.filterProps(e), N = ee(je.filterProps(e), ["modelValue"]), W = ee(Te.filterProps(e), ["modelValue"]), S = {
|
|
740
740
|
color: b.value,
|
|
741
741
|
header: _.value,
|
|
742
742
|
transition: o.value
|
|
@@ -767,17 +767,17 @@ const st = Q({
|
|
|
767
767
|
prepend: a.prepend,
|
|
768
768
|
append: a.append
|
|
769
769
|
}),
|
|
770
|
-
default: () => O(It, null, [$(Ne, G(
|
|
770
|
+
default: () => O(It, null, [$(Ne, G(k, {
|
|
771
771
|
disabled: V.value,
|
|
772
772
|
text: P.value,
|
|
773
773
|
"onClick:next": De,
|
|
774
774
|
"onClick:prev": be,
|
|
775
775
|
"onClick:month": X,
|
|
776
776
|
"onClick:year": z
|
|
777
|
-
}), null), $(
|
|
777
|
+
}), null), $(Tt, {
|
|
778
778
|
hideOnLeave: !0
|
|
779
779
|
}, {
|
|
780
|
-
default: () => [c.value === "months" ? $(
|
|
780
|
+
default: () => [c.value === "months" ? $(je, G({
|
|
781
781
|
key: "date-picker-months"
|
|
782
782
|
}, N, {
|
|
783
783
|
modelValue: f.value,
|
|
@@ -785,10 +785,10 @@ const st = Q({
|
|
|
785
785
|
min: d.value,
|
|
786
786
|
max: s.value,
|
|
787
787
|
year: w.value,
|
|
788
|
-
allowedMonths:
|
|
788
|
+
allowedMonths: T.value
|
|
789
789
|
}), {
|
|
790
790
|
month: a.month
|
|
791
|
-
}) : c.value === "year" ? $(
|
|
791
|
+
}) : c.value === "year" ? $(Te, G({
|
|
792
792
|
key: "date-picker-years"
|
|
793
793
|
}, W, {
|
|
794
794
|
modelValue: w.value,
|
|
@@ -817,7 +817,7 @@ const st = Q({
|
|
|
817
817
|
});
|
|
818
818
|
}), {};
|
|
819
819
|
}
|
|
820
|
-
}), ga =
|
|
820
|
+
}), ga = j({
|
|
821
821
|
fluid: {
|
|
822
822
|
type: Boolean,
|
|
823
823
|
default: !1
|
|
@@ -837,7 +837,7 @@ R()({
|
|
|
837
837
|
} = at(), {
|
|
838
838
|
dimensionStyles: a
|
|
839
839
|
} = nt(e);
|
|
840
|
-
return
|
|
840
|
+
return U(() => D(e.tag, {
|
|
841
841
|
class: ["v-container", {
|
|
842
842
|
"v-container--fluid": e.fluid
|
|
843
843
|
}, l.value, e.class],
|
|
@@ -891,7 +891,7 @@ const ba = [
|
|
|
891
891
|
"center",
|
|
892
892
|
"baseline",
|
|
893
893
|
"stretch"
|
|
894
|
-
], wa =
|
|
894
|
+
], wa = j(
|
|
895
895
|
{
|
|
896
896
|
cols: {
|
|
897
897
|
type: [Boolean, String, Number],
|
|
@@ -965,23 +965,23 @@ function $e(e, t) {
|
|
|
965
965
|
{}
|
|
966
966
|
);
|
|
967
967
|
}
|
|
968
|
-
const Va = [...Ye, "baseline", "stretch"], yt = (e) => Va.includes(e),
|
|
968
|
+
const Va = [...Ye, "baseline", "stretch"], yt = (e) => Va.includes(e), ht = $e("align", () => ({
|
|
969
969
|
type: String,
|
|
970
970
|
default: null,
|
|
971
971
|
validator: yt
|
|
972
|
-
})), Pa = [...Ye, ...mt],
|
|
972
|
+
})), Pa = [...Ye, ...mt], kt = (e) => Pa.includes(e), gt = $e(
|
|
973
973
|
"justify",
|
|
974
974
|
() => ({
|
|
975
975
|
type: String,
|
|
976
976
|
default: null,
|
|
977
|
-
validator:
|
|
977
|
+
validator: kt
|
|
978
978
|
})
|
|
979
979
|
), Sa = [...Ye, ...mt, "stretch"], Dt = (e) => Sa.includes(e), bt = $e("alignContent", () => ({
|
|
980
980
|
type: String,
|
|
981
981
|
default: null,
|
|
982
982
|
validator: Dt
|
|
983
983
|
})), Re = {
|
|
984
|
-
align: Object.keys(
|
|
984
|
+
align: Object.keys(ht),
|
|
985
985
|
justify: Object.keys(gt),
|
|
986
986
|
alignContent: Object.keys(bt)
|
|
987
987
|
}, Ma = {
|
|
@@ -999,7 +999,7 @@ function Ca(e, t, l) {
|
|
|
999
999
|
return a += `-${l}`, a.toLowerCase();
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
|
-
const _a =
|
|
1002
|
+
const _a = j(
|
|
1003
1003
|
{
|
|
1004
1004
|
dense: Boolean,
|
|
1005
1005
|
noGutters: Boolean,
|
|
@@ -1008,11 +1008,11 @@ const _a = T(
|
|
|
1008
1008
|
default: null,
|
|
1009
1009
|
validator: yt
|
|
1010
1010
|
},
|
|
1011
|
-
...
|
|
1011
|
+
...ht,
|
|
1012
1012
|
justify: {
|
|
1013
1013
|
type: String,
|
|
1014
1014
|
default: null,
|
|
1015
|
-
validator:
|
|
1015
|
+
validator: kt
|
|
1016
1016
|
},
|
|
1017
1017
|
...gt,
|
|
1018
1018
|
alignContent: {
|
|
@@ -1059,7 +1059,7 @@ R()({
|
|
|
1059
1059
|
};
|
|
1060
1060
|
}
|
|
1061
1061
|
});
|
|
1062
|
-
const xa = rt("v-spacer", "div", "VSpacer"), wt =
|
|
1062
|
+
const xa = rt("v-spacer", "div", "VSpacer"), wt = j({
|
|
1063
1063
|
active: {
|
|
1064
1064
|
type: [String, Array],
|
|
1065
1065
|
default: void 0
|
|
@@ -1101,7 +1101,7 @@ const xa = rt("v-spacer", "div", "VSpacer"), wt = T({
|
|
|
1101
1101
|
}) {
|
|
1102
1102
|
const {
|
|
1103
1103
|
t: l
|
|
1104
|
-
} =
|
|
1104
|
+
} = he(), a = M(() => Array.isArray(e.disabled) ? e.disabled.includes("text") : !!e.disabled), n = M(() => Array.isArray(e.disabled) ? e.disabled.includes("mode") : !!e.disabled), y = M(() => Array.isArray(e.disabled) ? e.disabled.includes("prev") : !!e.disabled), m = M(() => Array.isArray(e.disabled) ? e.disabled.includes("next") : !!e.disabled);
|
|
1105
1105
|
function r() {
|
|
1106
1106
|
t("click:prev");
|
|
1107
1107
|
}
|
|
@@ -1114,7 +1114,7 @@ const xa = rt("v-spacer", "div", "VSpacer"), wt = T({
|
|
|
1114
1114
|
function s() {
|
|
1115
1115
|
t("click:month");
|
|
1116
1116
|
}
|
|
1117
|
-
return
|
|
1117
|
+
return U(() => D("div", {
|
|
1118
1118
|
class: ["v-date-picker-controls"],
|
|
1119
1119
|
style: {
|
|
1120
1120
|
"--v-date-picker-controls-height": Ce(e.controlHeight)
|
|
@@ -1156,13 +1156,13 @@ const xa = rt("v-spacer", "div", "VSpacer"), wt = T({
|
|
|
1156
1156
|
onClick: c
|
|
1157
1157
|
}, null)])])), {};
|
|
1158
1158
|
}
|
|
1159
|
-
}), Aa =
|
|
1159
|
+
}), Aa = j({
|
|
1160
1160
|
appendIcon: ce,
|
|
1161
1161
|
color: String,
|
|
1162
1162
|
header: String,
|
|
1163
1163
|
transition: String,
|
|
1164
1164
|
onClick: Et()
|
|
1165
|
-
}, "VDatePickerHeader"),
|
|
1165
|
+
}, "VDatePickerHeader"), Fe = R()({
|
|
1166
1166
|
name: "VDatePickerHeader",
|
|
1167
1167
|
props: Aa(),
|
|
1168
1168
|
emits: {
|
|
@@ -1183,7 +1183,7 @@ const xa = rt("v-spacer", "div", "VSpacer"), wt = T({
|
|
|
1183
1183
|
function m() {
|
|
1184
1184
|
t("click:append");
|
|
1185
1185
|
}
|
|
1186
|
-
return
|
|
1186
|
+
return U(() => {
|
|
1187
1187
|
const r = !!(l.default || e.header), c = !!(l.append || e.appendIcon);
|
|
1188
1188
|
return D("div", {
|
|
1189
1189
|
class: ["v-date-picker-header", {
|
|
@@ -1245,7 +1245,7 @@ function $a(e, t, l) {
|
|
|
1245
1245
|
return l && n.push(e.endOfDay(l)), n;
|
|
1246
1246
|
}
|
|
1247
1247
|
function Oa(e, t) {
|
|
1248
|
-
const l =
|
|
1248
|
+
const l = Ht(
|
|
1249
1249
|
typeof e.adapter == "function" ? new e.adapter({
|
|
1250
1250
|
locale: e.locale[t.current.value] ?? t.current.value,
|
|
1251
1251
|
formats: e.formats
|
|
@@ -1256,13 +1256,13 @@ function Oa(e, t) {
|
|
|
1256
1256
|
}), l;
|
|
1257
1257
|
}
|
|
1258
1258
|
function ne() {
|
|
1259
|
-
const e =
|
|
1259
|
+
const e = Ft(Ya);
|
|
1260
1260
|
if (!e)
|
|
1261
1261
|
throw new Error("[Vuetify] Could not find injected date options");
|
|
1262
|
-
const t =
|
|
1262
|
+
const t = he();
|
|
1263
1263
|
return Oa(e, t);
|
|
1264
1264
|
}
|
|
1265
|
-
const Ia =
|
|
1265
|
+
const Ia = j(
|
|
1266
1266
|
{
|
|
1267
1267
|
allowedDates: [Array, Function],
|
|
1268
1268
|
disabled: {
|
|
@@ -1293,12 +1293,12 @@ const Ia = T(
|
|
|
1293
1293
|
"calendar"
|
|
1294
1294
|
);
|
|
1295
1295
|
function Na(e) {
|
|
1296
|
-
const t = ne(), l =
|
|
1296
|
+
const t = ne(), l = H(
|
|
1297
1297
|
e,
|
|
1298
1298
|
"modelValue",
|
|
1299
1299
|
[],
|
|
1300
1300
|
(i) => de(i).map((f) => t.date(f))
|
|
1301
|
-
), a = M(() => e.displayValue ? t.date(e.displayValue) : l.value.length > 0 ? t.date(l.value[0]) : e.min ? t.date(e.min) : Array.isArray(e.allowedDates) ? t.date(e.allowedDates[0]) : t.date()), n =
|
|
1301
|
+
), a = M(() => e.displayValue ? t.date(e.displayValue) : l.value.length > 0 ? t.date(l.value[0]) : e.min ? t.date(e.min) : Array.isArray(e.allowedDates) ? t.date(e.allowedDates[0]) : t.date()), n = H(
|
|
1302
1302
|
e,
|
|
1303
1303
|
"year",
|
|
1304
1304
|
void 0,
|
|
@@ -1307,7 +1307,7 @@ function Na(e) {
|
|
|
1307
1307
|
return t.startOfYear(t.setYear(t.date(), f));
|
|
1308
1308
|
},
|
|
1309
1309
|
(i) => t.getYear(i)
|
|
1310
|
-
), y =
|
|
1310
|
+
), y = H(
|
|
1311
1311
|
e,
|
|
1312
1312
|
"month",
|
|
1313
1313
|
void 0,
|
|
@@ -1347,7 +1347,7 @@ function Na(e) {
|
|
|
1347
1347
|
isHidden: _ && !e.showAdjacentMonths,
|
|
1348
1348
|
isSame: V,
|
|
1349
1349
|
isSelected: l.value.some(
|
|
1350
|
-
(
|
|
1350
|
+
(T) => t.isSameDay(v, T)
|
|
1351
1351
|
),
|
|
1352
1352
|
isStart: P,
|
|
1353
1353
|
isToday: t.isSameDay(v, f),
|
|
@@ -1372,7 +1372,7 @@ function Na(e) {
|
|
|
1372
1372
|
}), s = M(() => {
|
|
1373
1373
|
const i = r.value.flat(), f = t.date();
|
|
1374
1374
|
return c(i, f);
|
|
1375
|
-
}),
|
|
1375
|
+
}), h = M(() => r.value.map((i) => i.length ? t.getWeek(i[0], e.firstDayOfWeek) : null));
|
|
1376
1376
|
function b(i) {
|
|
1377
1377
|
if (e.disabled) return !0;
|
|
1378
1378
|
const f = t.date(i);
|
|
@@ -1388,10 +1388,10 @@ function Na(e) {
|
|
|
1388
1388
|
model: l,
|
|
1389
1389
|
weeksInMonth: r,
|
|
1390
1390
|
weekdayLabels: m,
|
|
1391
|
-
weekNumbers:
|
|
1391
|
+
weekNumbers: h
|
|
1392
1392
|
};
|
|
1393
1393
|
}
|
|
1394
|
-
const Vt =
|
|
1394
|
+
const Vt = j({
|
|
1395
1395
|
color: String,
|
|
1396
1396
|
hideWeekdays: Boolean,
|
|
1397
1397
|
multiple: [Boolean, Number, String],
|
|
@@ -1405,7 +1405,7 @@ const Vt = T({
|
|
|
1405
1405
|
default: "picker-reverse-transition"
|
|
1406
1406
|
},
|
|
1407
1407
|
...te(Ia(), ["displayValue"])
|
|
1408
|
-
}, "VDatePickerMonth"),
|
|
1408
|
+
}, "VDatePickerMonth"), He = R()({
|
|
1409
1409
|
name: "VDatePickerMonth",
|
|
1410
1410
|
props: Vt(),
|
|
1411
1411
|
emits: {
|
|
@@ -1417,15 +1417,15 @@ const Vt = T({
|
|
|
1417
1417
|
emit: t,
|
|
1418
1418
|
slots: l
|
|
1419
1419
|
}) {
|
|
1420
|
-
const a =
|
|
1420
|
+
const a = Ut(), {
|
|
1421
1421
|
t: n
|
|
1422
|
-
} =
|
|
1422
|
+
} = he(), {
|
|
1423
1423
|
daysInMonth: y,
|
|
1424
1424
|
model: m,
|
|
1425
1425
|
weekNumbers: r,
|
|
1426
1426
|
weekdayLabels: c
|
|
1427
|
-
} = Na(e), d = ne(), s = ue(),
|
|
1428
|
-
e.multiple === "range" && m.value.length > 0 && (s.value = m.value[0], m.value.length > 1 && (
|
|
1427
|
+
} = Na(e), d = ne(), s = ue(), h = ue(), b = ue(!1), i = Ve(() => b.value ? e.reverseTransition : e.transition);
|
|
1428
|
+
e.multiple === "range" && m.value.length > 0 && (s.value = m.value[0], m.value.length > 1 && (h.value = m.value[m.value.length - 1]));
|
|
1429
1429
|
const f = M(() => {
|
|
1430
1430
|
const P = ["number", "string"].includes(typeof e.multiple) ? Number(e.multiple) : 1 / 0;
|
|
1431
1431
|
return m.value.length >= P;
|
|
@@ -1435,16 +1435,16 @@ const Vt = T({
|
|
|
1435
1435
|
});
|
|
1436
1436
|
function v(P) {
|
|
1437
1437
|
const o = d.startOfDay(P);
|
|
1438
|
-
if (m.value.length === 0 ? s.value = void 0 : m.value.length === 1 && (s.value = m.value[0],
|
|
1438
|
+
if (m.value.length === 0 ? s.value = void 0 : m.value.length === 1 && (s.value = m.value[0], h.value = void 0), !s.value)
|
|
1439
1439
|
s.value = o, m.value = [s.value];
|
|
1440
|
-
else if (
|
|
1441
|
-
s.value = P,
|
|
1440
|
+
else if (h.value)
|
|
1441
|
+
s.value = P, h.value = void 0, m.value = [s.value];
|
|
1442
1442
|
else {
|
|
1443
1443
|
if (d.isSameDay(o, s.value)) {
|
|
1444
1444
|
s.value = void 0, m.value = [];
|
|
1445
1445
|
return;
|
|
1446
|
-
} else d.isBefore(o, s.value) ? (
|
|
1447
|
-
m.value = $a(d, s.value,
|
|
1446
|
+
} else d.isBefore(o, s.value) ? (h.value = d.endOfDay(s.value), s.value = o) : h.value = d.endOfDay(o);
|
|
1447
|
+
m.value = $a(d, s.value, h.value);
|
|
1448
1448
|
}
|
|
1449
1449
|
}
|
|
1450
1450
|
function w(P) {
|
|
@@ -1463,7 +1463,7 @@ const Vt = T({
|
|
|
1463
1463
|
function _(P) {
|
|
1464
1464
|
e.multiple === "range" ? v(P) : e.multiple ? Y(P) : m.value = [P];
|
|
1465
1465
|
}
|
|
1466
|
-
|
|
1466
|
+
U(() => D("div", {
|
|
1467
1467
|
class: "v-date-picker-month",
|
|
1468
1468
|
style: {
|
|
1469
1469
|
"--v-date-picker-days-in-week": e.weekdays.length
|
|
@@ -1489,7 +1489,7 @@ const Vt = T({
|
|
|
1489
1489
|
class: ["v-date-picker-month__day", "v-date-picker-month__weekday"]
|
|
1490
1490
|
}, [o])), y.value.map((o, V) => {
|
|
1491
1491
|
var C;
|
|
1492
|
-
const
|
|
1492
|
+
const T = {
|
|
1493
1493
|
props: {
|
|
1494
1494
|
class: "v-date-picker-month__day-btn",
|
|
1495
1495
|
color: o.isSelected || o.isToday ? e.color : void 0,
|
|
@@ -1514,12 +1514,12 @@ const Vt = T({
|
|
|
1514
1514
|
"v-date-picker-month__day--week-start": o.isWeekStart
|
|
1515
1515
|
}],
|
|
1516
1516
|
"data-v-date": o.isDisabled ? void 0 : o.isoDate
|
|
1517
|
-
}, [(e.showAdjacentMonths || !o.isAdjacent) && (((C = l.day) == null ? void 0 : C.call(l,
|
|
1517
|
+
}, [(e.showAdjacentMonths || !o.isAdjacent) && (((C = l.day) == null ? void 0 : C.call(l, T)) ?? D(K, T.props, null))]);
|
|
1518
1518
|
})])];
|
|
1519
1519
|
}
|
|
1520
1520
|
})]));
|
|
1521
1521
|
}
|
|
1522
|
-
}), Pt =
|
|
1522
|
+
}), Pt = j({
|
|
1523
1523
|
color: String,
|
|
1524
1524
|
height: [String, Number],
|
|
1525
1525
|
min: null,
|
|
@@ -1527,7 +1527,7 @@ const Vt = T({
|
|
|
1527
1527
|
modelValue: Number,
|
|
1528
1528
|
year: Number,
|
|
1529
1529
|
allowedMonths: [Array, Function]
|
|
1530
|
-
}, "VDatePickerMonths"),
|
|
1530
|
+
}, "VDatePickerMonths"), Ue = R()({
|
|
1531
1531
|
name: "VDatePickerMonths",
|
|
1532
1532
|
props: Pt(),
|
|
1533
1533
|
emits: {
|
|
@@ -1537,12 +1537,12 @@ const Vt = T({
|
|
|
1537
1537
|
emit: t,
|
|
1538
1538
|
slots: l
|
|
1539
1539
|
}) {
|
|
1540
|
-
const a = ne(), n =
|
|
1540
|
+
const a = ne(), n = H(e, "modelValue"), y = M(() => {
|
|
1541
1541
|
let r = a.startOfYear(a.date());
|
|
1542
1542
|
return e.year && (r = a.setYear(r, e.year)), pe(12).map((c) => {
|
|
1543
|
-
const d = a.format(r, "monthShort"), s = a.format(r, "month"),
|
|
1543
|
+
const d = a.format(r, "monthShort"), s = a.format(r, "month"), h = !!(!m(c) || e.min && a.isAfter(a.startOfMonth(a.date(e.min)), r) || e.max && a.isAfter(r, a.startOfMonth(a.date(e.max))));
|
|
1544
1544
|
return r = a.getNextMonth(r), {
|
|
1545
|
-
isDisabled:
|
|
1545
|
+
isDisabled: h,
|
|
1546
1546
|
text: d,
|
|
1547
1547
|
label: s,
|
|
1548
1548
|
value: c
|
|
@@ -1555,7 +1555,7 @@ const Vt = T({
|
|
|
1555
1555
|
function m(r) {
|
|
1556
1556
|
return Array.isArray(e.allowedMonths) && e.allowedMonths.length ? e.allowedMonths.includes(r) : typeof e.allowedMonths == "function" ? e.allowedMonths(r) : !0;
|
|
1557
1557
|
}
|
|
1558
|
-
return
|
|
1558
|
+
return U(() => D("div", {
|
|
1559
1559
|
class: "v-date-picker-months",
|
|
1560
1560
|
style: {
|
|
1561
1561
|
height: Ce(e.height)
|
|
@@ -1572,9 +1572,9 @@ const Vt = T({
|
|
|
1572
1572
|
rounded: !0,
|
|
1573
1573
|
text: r.text,
|
|
1574
1574
|
variant: n.value === r.value ? "flat" : "text",
|
|
1575
|
-
onClick: () =>
|
|
1575
|
+
onClick: () => h(c)
|
|
1576
1576
|
};
|
|
1577
|
-
function
|
|
1577
|
+
function h(b) {
|
|
1578
1578
|
if (n.value === b) {
|
|
1579
1579
|
t("update:modelValue", n.value);
|
|
1580
1580
|
return;
|
|
@@ -1590,7 +1590,7 @@ const Vt = T({
|
|
|
1590
1590
|
}, s), null);
|
|
1591
1591
|
})])])), {};
|
|
1592
1592
|
}
|
|
1593
|
-
}), St =
|
|
1593
|
+
}), St = j({
|
|
1594
1594
|
color: String,
|
|
1595
1595
|
height: [String, Number],
|
|
1596
1596
|
min: null,
|
|
@@ -1610,12 +1610,12 @@ const Vt = T({
|
|
|
1610
1610
|
emit: t,
|
|
1611
1611
|
slots: l
|
|
1612
1612
|
}) {
|
|
1613
|
-
const a = ne(), n =
|
|
1613
|
+
const a = ne(), n = H(e, "modelValue"), y = M(() => {
|
|
1614
1614
|
const d = a.getYear(a.date());
|
|
1615
|
-
let s = d - 100,
|
|
1616
|
-
e.min && (s = a.getYear(a.date(e.min))), e.max && (
|
|
1615
|
+
let s = d - 100, h = d + 52;
|
|
1616
|
+
e.min && (s = a.getYear(a.date(e.min))), e.max && (h = a.getYear(a.date(e.max)));
|
|
1617
1617
|
let b = a.startOfYear(a.date());
|
|
1618
|
-
return b = a.setYear(b, s), pe(
|
|
1618
|
+
return b = a.setYear(b, s), pe(h - s + 1, s).map((i) => {
|
|
1619
1619
|
const f = a.format(b, "year");
|
|
1620
1620
|
return b = a.setYear(b, a.getYear(b) + 1), {
|
|
1621
1621
|
text: f,
|
|
@@ -1637,7 +1637,7 @@ const Vt = T({
|
|
|
1637
1637
|
function c(d) {
|
|
1638
1638
|
return Array.isArray(e.allowedYears) && e.allowedYears.length ? e.allowedYears.includes(d) : typeof e.allowedYears == "function" ? e.allowedYears(d) : !0;
|
|
1639
1639
|
}
|
|
1640
|
-
return
|
|
1640
|
+
return U(() => Jt(D("div", {
|
|
1641
1641
|
class: "v-date-picker-years",
|
|
1642
1642
|
style: {
|
|
1643
1643
|
height: Ce(e.height)
|
|
@@ -1645,7 +1645,7 @@ const Vt = T({
|
|
|
1645
1645
|
}, [D("div", {
|
|
1646
1646
|
class: "v-date-picker-years__content"
|
|
1647
1647
|
}, [y.value.map((d, s) => {
|
|
1648
|
-
var
|
|
1648
|
+
var h;
|
|
1649
1649
|
const b = {
|
|
1650
1650
|
ref: n.value === d.value ? m : void 0,
|
|
1651
1651
|
active: n.value === d.value,
|
|
@@ -1662,7 +1662,7 @@ const Vt = T({
|
|
|
1662
1662
|
n.value = d.value;
|
|
1663
1663
|
}
|
|
1664
1664
|
};
|
|
1665
|
-
return ((
|
|
1665
|
+
return ((h = l.year) == null ? void 0 : h.call(l, {
|
|
1666
1666
|
year: d,
|
|
1667
1667
|
i: s,
|
|
1668
1668
|
props: b
|
|
@@ -1675,7 +1675,7 @@ const Vt = T({
|
|
|
1675
1675
|
once: !0
|
|
1676
1676
|
}]])), {};
|
|
1677
1677
|
}
|
|
1678
|
-
}), Wa = rt("v-picker-title"), Mt =
|
|
1678
|
+
}), Wa = rt("v-picker-title"), Mt = j({
|
|
1679
1679
|
color: String,
|
|
1680
1680
|
...ea(),
|
|
1681
1681
|
...fe(),
|
|
@@ -1710,12 +1710,12 @@ const Vt = T({
|
|
|
1710
1710
|
} = da(e), {
|
|
1711
1711
|
roundedClasses: s
|
|
1712
1712
|
} = la(e);
|
|
1713
|
-
return
|
|
1713
|
+
return U(() => D(e.tag, {
|
|
1714
1714
|
class: ["v-sheet", l.value, a.value, y.value, r.value, d.value, s.value, e.class],
|
|
1715
1715
|
style: [n.value, m.value, c.value, e.style]
|
|
1716
1716
|
}, t)), {};
|
|
1717
1717
|
}
|
|
1718
|
-
}), Ct =
|
|
1718
|
+
}), Ct = j({
|
|
1719
1719
|
bgColor: String,
|
|
1720
1720
|
divided: Boolean,
|
|
1721
1721
|
landscape: Boolean,
|
|
@@ -1732,7 +1732,7 @@ const Vt = T({
|
|
|
1732
1732
|
backgroundColorClasses: l,
|
|
1733
1733
|
backgroundColorStyles: a
|
|
1734
1734
|
} = xe(() => e.color);
|
|
1735
|
-
return
|
|
1735
|
+
return U(() => {
|
|
1736
1736
|
const n = Ge.filterProps(e), y = !!(e.title || t.title);
|
|
1737
1737
|
return D(Ge, E(n, {
|
|
1738
1738
|
color: e.bgColor,
|
|
@@ -1776,7 +1776,7 @@ const Vt = T({
|
|
|
1776
1776
|
});
|
|
1777
1777
|
}), {};
|
|
1778
1778
|
}
|
|
1779
|
-
}), Ba =
|
|
1779
|
+
}), Ba = j({
|
|
1780
1780
|
// TODO: implement in v3.5
|
|
1781
1781
|
// calendarIcon: {
|
|
1782
1782
|
// type: String,
|
|
@@ -1830,9 +1830,9 @@ R()({
|
|
|
1830
1830
|
}) {
|
|
1831
1831
|
const a = ne(), {
|
|
1832
1832
|
t: n
|
|
1833
|
-
} =
|
|
1833
|
+
} = he(), {
|
|
1834
1834
|
rtlClasses: y
|
|
1835
|
-
} = at(), m =
|
|
1835
|
+
} = at(), m = H(e, "modelValue", void 0, (g) => de(g).map((u) => a.date(u)), (g) => e.multiple ? g : g[0]), r = H(e, "viewMode"), c = M(() => {
|
|
1836
1836
|
const g = a.date(e.min);
|
|
1837
1837
|
return e.min && a.isValid(g) ? g : null;
|
|
1838
1838
|
}), d = M(() => {
|
|
@@ -1841,12 +1841,12 @@ R()({
|
|
|
1841
1841
|
}), s = M(() => {
|
|
1842
1842
|
var g;
|
|
1843
1843
|
const u = a.date();
|
|
1844
|
-
let
|
|
1845
|
-
return (g = m.value) != null && g[0] ?
|
|
1846
|
-
}),
|
|
1844
|
+
let k = u;
|
|
1845
|
+
return (g = m.value) != null && g[0] ? k = a.date(m.value[0]) : c.value && a.isBefore(u, c.value) ? k = c.value : d.value && a.isAfter(u, d.value) && (k = d.value), k && a.isValid(k) ? k : u;
|
|
1846
|
+
}), h = Ve(() => e.headerColor ?? e.color), b = H(e, "month"), i = M({
|
|
1847
1847
|
get: () => Number(b.value ?? a.getMonth(a.startOfMonth(s.value))),
|
|
1848
1848
|
set: (g) => b.value = g
|
|
1849
|
-
}), f =
|
|
1849
|
+
}), f = H(e, "year"), v = M({
|
|
1850
1850
|
get: () => Number(f.value ?? a.getYear(a.startOfYear(a.setMonth(s.value, i.value)))),
|
|
1851
1851
|
set: (g) => f.value = g
|
|
1852
1852
|
}), w = ue(!1), Y = M(() => e.multiple && m.value.length > 1 ? n("$vuetify.datePicker.itemsSelected", m.value.length) : m.value[0] && a.isValid(m.value[0]) ? a.format(a.date(m.value[0]), "normalDateWithWeekday") : n(e.header)), _ = M(() => {
|
|
@@ -1860,28 +1860,28 @@ R()({
|
|
|
1860
1860
|
else {
|
|
1861
1861
|
let u = a.date();
|
|
1862
1862
|
if (u = a.startOfMonth(u), u = a.setMonth(u, i.value), u = a.setYear(u, v.value), c.value) {
|
|
1863
|
-
const
|
|
1864
|
-
a.isAfter(c.value,
|
|
1863
|
+
const k = a.addDays(a.startOfMonth(u), -1);
|
|
1864
|
+
a.isAfter(c.value, k) && g.push("prev");
|
|
1865
1865
|
}
|
|
1866
1866
|
if (d.value) {
|
|
1867
|
-
const
|
|
1868
|
-
a.isAfter(
|
|
1867
|
+
const k = a.addDays(a.endOfMonth(u), 1);
|
|
1868
|
+
a.isAfter(k, d.value) && g.push("next");
|
|
1869
1869
|
}
|
|
1870
1870
|
}
|
|
1871
1871
|
return g;
|
|
1872
|
-
}), V = M(() => e.allowedYears || le), C = M(() => e.allowedMonths ||
|
|
1873
|
-
function
|
|
1874
|
-
const
|
|
1875
|
-
if (typeof
|
|
1872
|
+
}), V = M(() => e.allowedYears || le), C = M(() => e.allowedMonths || ke);
|
|
1873
|
+
function T(g, u) {
|
|
1874
|
+
const k = e.allowedDates;
|
|
1875
|
+
if (typeof k != "function") return !0;
|
|
1876
1876
|
const A = a.getDiff(u, g, "days");
|
|
1877
1877
|
for (let I = 0; I < A; I++)
|
|
1878
|
-
if (
|
|
1878
|
+
if (k(a.addDays(g, I))) return !0;
|
|
1879
1879
|
return !1;
|
|
1880
1880
|
}
|
|
1881
1881
|
function le(g) {
|
|
1882
1882
|
if (typeof e.allowedDates == "function") {
|
|
1883
1883
|
const u = a.parseISO(`${g}-01-01`);
|
|
1884
|
-
return
|
|
1884
|
+
return T(u, a.endOfYear(u));
|
|
1885
1885
|
}
|
|
1886
1886
|
if (Array.isArray(e.allowedDates) && e.allowedDates.length) {
|
|
1887
1887
|
for (const u of e.allowedDates)
|
|
@@ -1890,10 +1890,10 @@ R()({
|
|
|
1890
1890
|
}
|
|
1891
1891
|
return !0;
|
|
1892
1892
|
}
|
|
1893
|
-
function
|
|
1893
|
+
function ke(g) {
|
|
1894
1894
|
if (typeof e.allowedDates == "function") {
|
|
1895
|
-
const u = String(g + 1).padStart(2, "0"),
|
|
1896
|
-
return
|
|
1895
|
+
const u = String(g + 1).padStart(2, "0"), k = a.parseISO(`${v.value}-${u}-01`);
|
|
1896
|
+
return T(k, a.endOfMonth(k));
|
|
1897
1897
|
}
|
|
1898
1898
|
if (Array.isArray(e.allowedDates) && e.allowedDates.length) {
|
|
1899
1899
|
for (const u of e.allowedDates)
|
|
@@ -1924,18 +1924,18 @@ R()({
|
|
|
1924
1924
|
r.value === "year" && X();
|
|
1925
1925
|
}
|
|
1926
1926
|
return _e(m, (g, u) => {
|
|
1927
|
-
const
|
|
1927
|
+
const k = de(u), A = de(g);
|
|
1928
1928
|
if (!A.length) return;
|
|
1929
|
-
const I = a.date(
|
|
1929
|
+
const I = a.date(k[k.length - 1]), N = a.date(A[A.length - 1]), W = a.getMonth(N), S = a.getYear(N);
|
|
1930
1930
|
W !== i.value && (i.value = W, z()), S !== v.value && (v.value = S, L()), w.value = a.isBefore(I, N);
|
|
1931
|
-
}),
|
|
1932
|
-
const g = Je.filterProps(e), u = Ee.filterProps(e),
|
|
1933
|
-
color:
|
|
1931
|
+
}), U(() => {
|
|
1932
|
+
const g = Je.filterProps(e), u = Ee.filterProps(e), k = Fe.filterProps(e), A = He.filterProps(e), I = te(Ue.filterProps(e), ["modelValue"]), N = te(ze.filterProps(e), ["modelValue"]), W = {
|
|
1933
|
+
color: h.value,
|
|
1934
1934
|
header: Y.value,
|
|
1935
1935
|
transition: P.value
|
|
1936
1936
|
};
|
|
1937
1937
|
return D(Je, E(g, {
|
|
1938
|
-
color:
|
|
1938
|
+
color: h.value,
|
|
1939
1939
|
class: ["v-date-picker", `v-date-picker--${r.value}`, {
|
|
1940
1940
|
"v-date-picker--show-week": e.showWeek
|
|
1941
1941
|
}, y.value, e.class],
|
|
@@ -1958,9 +1958,9 @@ R()({
|
|
|
1958
1958
|
var S;
|
|
1959
1959
|
return [(S = l.header) == null ? void 0 : S.call(l, W)];
|
|
1960
1960
|
}
|
|
1961
|
-
}) : D(
|
|
1961
|
+
}) : D(Fe, E({
|
|
1962
1962
|
key: "header"
|
|
1963
|
-
},
|
|
1963
|
+
}, k, W, {
|
|
1964
1964
|
onClick: r.value !== "month" ? be : void 0
|
|
1965
1965
|
}), {
|
|
1966
1966
|
prepend: l.prepend,
|
|
@@ -1976,7 +1976,7 @@ R()({
|
|
|
1976
1976
|
}), null), D(oa, {
|
|
1977
1977
|
hideOnLeave: !0
|
|
1978
1978
|
}, {
|
|
1979
|
-
default: () => [r.value === "months" ? D(
|
|
1979
|
+
default: () => [r.value === "months" ? D(Ue, E({
|
|
1980
1980
|
key: "date-picker-months"
|
|
1981
1981
|
}, I, {
|
|
1982
1982
|
modelValue: i.value,
|
|
@@ -1997,7 +1997,7 @@ R()({
|
|
|
1997
1997
|
allowedYears: V.value
|
|
1998
1998
|
}), {
|
|
1999
1999
|
year: l.year
|
|
2000
|
-
}) : D(
|
|
2000
|
+
}) : D(He, E({
|
|
2001
2001
|
key: "date-picker-month"
|
|
2002
2002
|
}, A, {
|
|
2003
2003
|
modelValue: m.value,
|
|
@@ -2022,4 +2022,4 @@ export {
|
|
|
2022
2022
|
ua as a,
|
|
2023
2023
|
Ba as m
|
|
2024
2024
|
};
|
|
2025
|
-
//# sourceMappingURL=VDatePicker-
|
|
2025
|
+
//# sourceMappingURL=VDatePicker-CKxKmuCC.mjs.map
|