@nhtio/lucid-resourceful-vue-components 0.1.0-master-dc6af70b → 0.1.0-master-54839a90
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-CEYzcx0y.mjs → VBtn-C4WCntKg.mjs} +7 -7
- package/{VBtn-CEYzcx0y.mjs.map → VBtn-C4WCntKg.mjs.map} +1 -1
- package/{VDatePicker-BHcvHHhM.mjs → VDatePicker-DOCNk-HL.mjs} +61 -61
- package/{VDatePicker-BHcvHHhM.mjs.map → VDatePicker-DOCNk-HL.mjs.map} +1 -1
- package/{VEmptyState-CkYtN0q5.mjs → VEmptyState-CfouFZTg.mjs} +51 -51
- package/{VEmptyState-CkYtN0q5.mjs.map → VEmptyState-CfouFZTg.mjs.map} +1 -1
- package/{VHover-Bj6QrQff.mjs → VHover-DvUhdfsL.mjs} +3 -3
- package/{VHover-Bj6QrQff.mjs.map → VHover-DvUhdfsL.mjs.map} +1 -1
- package/{VListItem-BnxAmKd_.mjs → VListItem-BT-NXJyi.mjs} +36 -36
- package/{VListItem-BnxAmKd_.mjs.map → VListItem-BT-NXJyi.mjs.map} +1 -1
- package/{VMenu-BSB7YSpb.mjs → VMenu-Bk2NN8qb.mjs} +3 -3
- package/{VMenu-BSB7YSpb.mjs.map → VMenu-Bk2NN8qb.mjs.map} +1 -1
- package/{VPicker-DMOVvCIE.mjs → VPicker-DmY6CdER.mjs} +4 -4
- package/{VPicker-DMOVvCIE.mjs.map → VPicker-DmY6CdER.mjs.map} +1 -1
- package/{VRadioGroup-ByydeX8x.mjs → VRadioGroup-BO7XdtLS.mjs} +15 -15
- package/{VRadioGroup-ByydeX8x.mjs.map → VRadioGroup-BO7XdtLS.mjs.map} +1 -1
- package/{VRow-Dmn82Xaa.mjs → VRow-BhNJcY5-.mjs} +7 -7
- package/{VRow-Dmn82Xaa.mjs.map → VRow-BhNJcY5-.mjs.map} +1 -1
- package/{VSheet-B9ALb0PQ.mjs → VSheet-Bkr-m6FE.mjs} +2 -2
- package/{VSheet-B9ALb0PQ.mjs.map → VSheet-Bkr-m6FE.mjs.map} +1 -1
- package/{actions-BEmdy8bu.mjs → actions-ORUmfJR5.mjs} +14 -14
- package/{actions-BEmdy8bu.mjs.map → actions-ORUmfJR5.mjs.map} +1 -1
- package/{alert-DftADRGk.mjs → alert-pFT7pWTZ.mjs} +97 -94
- package/alert-pFT7pWTZ.mjs.map +1 -0
- package/{bigint-DiC37zMo.mjs → bigint-CCM0aPaS.mjs} +6 -6
- package/{bigint-DiC37zMo.mjs.map → bigint-CCM0aPaS.mjs.map} +1 -1
- package/{boolean-DZDryWHA.mjs → boolean-1-MOJPSu.mjs} +43 -43
- package/{boolean-DZDryWHA.mjs.map → boolean-1-MOJPSu.mjs.map} +1 -1
- package/{clipboard--JAZokR3.mjs → clipboard-CdGABqm1.mjs} +49 -49
- package/{clipboard--JAZokR3.mjs.map → clipboard-CdGABqm1.mjs.map} +1 -1
- package/{colorUtils-I1lKouL3.mjs → colorUtils-BdpqbLZS.mjs} +3 -3
- package/{colorUtils-I1lKouL3.mjs.map → colorUtils-BdpqbLZS.mjs.map} +1 -1
- package/{common-BDwb9uGU.mjs → common-Bi5RUD-n.mjs} +13 -13
- package/{common-BDwb9uGU.mjs.map → common-Bi5RUD-n.mjs.map} +1 -1
- package/{component-C-qp70Rp.mjs → component-DhEJuSE6.mjs} +2 -2
- package/{component-C-qp70Rp.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 +11 -11
- package/{console-CAez8ceh.mjs → console-Dgoi3FwV.mjs} +2 -2
- package/{console-CAez8ceh.mjs.map → console-Dgoi3FwV.mjs.map} +1 -1
- package/{custom-Tm6_792A.mjs → custom-DQmbYYPh.mjs} +21 -21
- package/{custom-Tm6_792A.mjs.map → custom-DQmbYYPh.mjs.map} +1 -1
- package/{date-CxaBVvlO.mjs → date-E_8RP3gK.mjs} +21 -21
- package/{date-CxaBVvlO.mjs.map → date-E_8RP3gK.mjs.map} +1 -1
- package/{date_time-DhABUkGT.mjs → date_time-BmYl2TFi.mjs} +348 -348
- package/{date_time-DhABUkGT.mjs.map → date_time-BmYl2TFi.mjs.map} +1 -1
- package/{display-DazBkrbZ.mjs → display-B089h_sz.mjs} +27 -25
- package/display-B089h_sz.mjs.map +1 -0
- package/{display-DPktlWOz.mjs → display-dv4cOwRN.mjs} +9 -9
- package/{display-DPktlWOz.mjs.map → display-dv4cOwRN.mjs.map} +1 -1
- package/{display-BdjbLG1_.mjs → display-fXo4JeIS.mjs} +15 -15
- package/{display-BdjbLG1_.mjs.map → display-fXo4JeIS.mjs.map} +1 -1
- package/{elevation-DFBVIqom.mjs → elevation-YNOj0hSa.mjs} +38 -38
- package/{elevation-DFBVIqom.mjs.map → elevation-YNOj0hSa.mjs.map} +1 -1
- package/{enum-KB4xPkOL.mjs → enum-8itqseZa.mjs} +22 -22
- package/{enum-KB4xPkOL.mjs.map → enum-8itqseZa.mjs.map} +1 -1
- package/factories.mjs +1 -1
- package/{field_composer-CLJuJevf.mjs → field_composer-ugYyDQNY.mjs} +3 -3
- package/{field_composer-CLJuJevf.mjs.map → field_composer-ugYyDQNY.mjs.map} +1 -1
- package/{form-9YRVcrxM.mjs → form-BtDnRXYm.mjs} +45 -45
- package/{form-9YRVcrxM.mjs.map → form-BtDnRXYm.mjs.map} +1 -1
- package/{guards-BrpRx6ly.mjs → guards-Cby4QwzY.mjs} +2 -2
- package/{guards-BrpRx6ly.mjs.map → guards-Cby4QwzY.mjs.map} +1 -1
- package/guards.mjs +4 -4
- package/helpers.mjs +6 -6
- package/{index-BkjiQEyJ.mjs → index-3XRUa28C.mjs} +12 -12
- package/{index-BkjiQEyJ.mjs.map → index-3XRUa28C.mjs.map} +1 -1
- package/{index-DDobJ49b.mjs → index-BCQmj6cf.mjs} +13 -13
- package/{index-DDobJ49b.mjs.map → index-BCQmj6cf.mjs.map} +1 -1
- package/{index-UxsEIZVi.mjs → index-BgevbZTt.mjs} +10 -10
- package/{index-UxsEIZVi.mjs.map → index-BgevbZTt.mjs.map} +1 -1
- package/{index-CWwCXXNl.mjs → index-C-PCfO1S.mjs} +2 -2
- package/{index-CWwCXXNl.mjs.map → index-C-PCfO1S.mjs.map} +1 -1
- package/{index-DBXOwXpe.mjs → index-CSyOYGEi.mjs} +8 -8
- package/{index-DBXOwXpe.mjs.map → index-CSyOYGEi.mjs.map} +1 -1
- package/{index-DwOjHbRP.mjs → index-D9i1PRci.mjs} +5700 -5697
- package/{index-DwOjHbRP.mjs.map → index-D9i1PRci.mjs.map} +1 -1
- package/{index-BaOM0Cyz.mjs → index-DWv9iKZs.mjs} +21 -21
- package/{index-BaOM0Cyz.mjs.map → index-DWv9iKZs.mjs.map} +1 -1
- package/{index-Bs4A8qUO.mjs → index-VpcXNOpn.mjs} +2 -2
- package/{index-Bs4A8qUO.mjs.map → index-VpcXNOpn.mjs.map} +1 -1
- package/{index-BsazeUn6.mjs → index-fiZltUBs.mjs} +3 -3
- package/{index-BsazeUn6.mjs.map → index-fiZltUBs.mjs.map} +1 -1
- package/index.mjs +47 -47
- package/{integer-uzh0nwpb.mjs → integer-W2_SlKV1.mjs} +5 -5
- package/{integer-uzh0nwpb.mjs.map → integer-W2_SlKV1.mjs.map} +1 -1
- package/{mdi-C9DbASEx.mjs → mdi-DC1jeTJJ.mjs} +18 -18
- package/{mdi-C9DbASEx.mjs.map → mdi-DC1jeTJJ.mjs.map} +1 -1
- package/{number-CfHLDQFY.mjs → number-DgwZBxOw.mjs} +85 -85
- package/{number-CfHLDQFY.mjs.map → number-DgwZBxOw.mjs.map} +1 -1
- package/package.json +32 -32
- package/{position-CPuNp03H.mjs → position-B9VPkbhU.mjs} +2 -2
- package/{position-CPuNp03H.mjs.map → position-B9VPkbhU.mjs.map} +1 -1
- package/private/control-button-bar/props.d.ts +10 -10
- package/private/fields/bigint.d.ts +128 -128
- package/private/fields/boolean.d.ts +68 -68
- package/private/fields/common.d.ts +16 -16
- package/private/fields/custom.d.ts +2 -2
- package/private/fields/date.d.ts +24 -24
- package/private/fields/date_time.d.ts +24 -24
- package/private/fields/enum.d.ts +68 -68
- package/private/fields/integer.d.ts +107 -107
- package/private/fields/multiple.d.ts +17 -17
- package/private/fields/number.d.ts +46 -46
- package/private/fields/read_mode_renderer.d.ts +17 -17
- package/private/fields/string.d.ts +24 -24
- package/private/fields/unsigned_integer.d.ts +107 -107
- package/private/filtration/filter_group_condition_element.d.ts +36 -36
- package/private/resourceful-index/index.d.ts +17 -17
- package/private/resourceful-index/partials/_controls.d.ts +1 -1
- package/private/resourceful-index/partials/_per_page_selector.d.ts +1 -1
- package/private/resourceful-index/props.d.ts +34 -34
- package/private/resourceful-record/form.d.ts +12 -12
- package/private/resourceful-record/index.d.ts +13 -13
- package/private/resourceful-record/props.d.ts +20 -20
- package/private/sortable/index.d.ts +1 -1
- package/{props-KPFuptNy.mjs → props-COvhL78L.mjs} +8 -8
- package/{props-KPFuptNy.mjs.map → props-COvhL78L.mjs.map} +1 -1
- package/{props-Cq9daNwa.mjs → props-GYFmAF5-.mjs} +6 -6
- package/{props-Cq9daNwa.mjs.map → props-GYFmAF5-.mjs.map} +1 -1
- package/{renderers-COT3aAu3.mjs → renderers-BP4li2WT.mjs} +13 -13
- package/{renderers-COT3aAu3.mjs.map → renderers-BP4li2WT.mjs.map} +1 -1
- package/{string-DvwPf_Ob.mjs → string-RfpfCwEn.mjs} +180 -180
- package/{string-DvwPf_Ob.mjs.map → string-RfpfCwEn.mjs.map} +1 -1
- package/{unsigned_integer-C9nrNAn_.mjs → unsigned_integer-Cg6tbRJj.mjs} +4 -4
- package/{unsigned_integer-C9nrNAn_.mjs.map → unsigned_integer-Cg6tbRJj.mjs.map} +1 -1
- package/useRender-CfNJA_8a.mjs +9 -0
- package/{useRender-Dpj9Jrbr.mjs.map → useRender-CfNJA_8a.mjs.map} +1 -1
- package/{utils-DxV2ZNaE.mjs → utils-D3ZGaTyv.mjs} +50 -50
- package/{utils-DxV2ZNaE.mjs.map → utils-D3ZGaTyv.mjs.map} +1 -1
- package/{validation-CZ6xx4aX.mjs → validation-BF_JkNWB.mjs} +4 -4
- package/{validation-CZ6xx4aX.mjs.map → validation-BF_JkNWB.mjs.map} +1 -1
- package/alert-DftADRGk.mjs.map +0 -1
- package/display-DazBkrbZ.mjs.map +0 -1
- package/useRender-Dpj9Jrbr.mjs +0 -9
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { useDisplay as Un } from "vuetify";
|
|
2
|
-
import { S as Ve } from "./index-
|
|
3
|
-
import { R as Nn } from "./custom-
|
|
4
|
-
import { d as
|
|
5
|
-
import {
|
|
2
|
+
import { S as Ve } from "./index-C-PCfO1S.mjs";
|
|
3
|
+
import { R as Nn } from "./custom-DQmbYYPh.mjs";
|
|
4
|
+
import { d as ct } from "./index-DXdh_Con.mjs";
|
|
5
|
+
import { d as Yn, w as jn, x as Xn, o as vt, i as ht, t as mt, a as qn, s as nt } from "./utils-D3ZGaTyv.mjs";
|
|
6
6
|
import { D as N, a as Gn, j as Kn, h as Zn, i as Jn, F as Ot } from "./ioc-Du_Tgg-1.mjs";
|
|
7
|
-
import { u as Qn } from "./field_composer-
|
|
8
|
-
import { T as
|
|
9
|
-
import { c as Lt, d as
|
|
10
|
-
import { w as
|
|
11
|
-
import { C as
|
|
12
|
-
import { m as
|
|
13
|
-
import { ref as T, computed as v, createVNode as S, mergeProps as Q, createElementVNode as A, Fragment as Je, normalizeStyle as Ye, normalizeClass as te, shallowRef as Ce, watch as ye, nextTick as Ee, provide as
|
|
14
|
-
import { r as
|
|
15
|
-
import { g as be, p as pe, ar as kt, o as we, V as
|
|
16
|
-
import { V as jt, m as
|
|
17
|
-
import { V as
|
|
18
|
-
import { V as
|
|
19
|
-
import { V as Xt } from "./VListItem-
|
|
20
|
-
import { V as
|
|
21
|
-
const xt = Symbol.for("vuetify:v-tabs"),
|
|
7
|
+
import { u as Qn } from "./field_composer-ugYyDQNY.mjs";
|
|
8
|
+
import { T as ea } from "./index-fiZltUBs.mjs";
|
|
9
|
+
import { c as Lt, d as ta, V as na, I as ft } from "./elevation-YNOj0hSa.mjs";
|
|
10
|
+
import { w as aa } from "./warning-D1tzZbaa.mjs";
|
|
11
|
+
import { C as la, E as oa, t as ia, F as Ze, G as ua, H as sa, I as ra, V as $t, J as da, K as ca, a as gt, L as va, M as ma, x as fa, N as ha, O as ga, v as ya, c as ba, b as pa, m as wa, d as Ut, e as ka, f as _a } from "./common-Bi5RUD-n.mjs";
|
|
12
|
+
import { m as xa, V as Va } from "./VDatePicker-DOCNk-HL.mjs";
|
|
13
|
+
import { ref as T, computed as v, createVNode as S, mergeProps as Q, createElementVNode as A, Fragment as Je, normalizeStyle as Ye, normalizeClass as te, shallowRef as Ce, watch as ye, nextTick as Ee, provide as Ca, toRef as Te, withDirectives as tn, inject as nn, vShow as Sa, createTextVNode as yt, onMounted as bt, h as b, defineComponent as Ta, toRefs as xe, onUnmounted as Ia } from "vue";
|
|
14
|
+
import { r as an, K as Pa, L as Da, M as Ma, N as Ea, o as Ba, m as Fa, a as Ra, b as za, O as Aa, P as Ha, c as Wa, d as ln, V as Oa, e as La } from "./mdi-DC1jeTJJ.mjs";
|
|
15
|
+
import { g as be, p as pe, ar as kt, o as we, V as de, F as Qe, as as $a, at as Ua, au as on, f as Na, A as Ya, N as lt, af as ja, D as pt, av as at, ab as Xa, q as qa, r as un, y as sn, u as je, an as Ga, aw as Ka, aq as Za, a4 as Ja, h as rn, al as Qa, a8 as el, ax as tl, ay as nl, a0 as al, Q as ll, ak as Nt, a as Ne, az as ol, a6 as il, aA as ul, E as sl, aB as rl, aC as Yt, aD as dl, aE as _t, c as cl } from "./display-fXo4JeIS.mjs";
|
|
16
|
+
import { V as jt, m as vl } from "./VPicker-DmY6CdER.mjs";
|
|
17
|
+
import { V as ml } from "./VSheet-Bkr-m6FE.mjs";
|
|
18
|
+
import { V as fl } from "./VMenu-Bk2NN8qb.mjs";
|
|
19
|
+
import { V as Xt } from "./VListItem-BT-NXJyi.mjs";
|
|
20
|
+
import { V as hl } from "./display-dv4cOwRN.mjs";
|
|
21
|
+
const xt = Symbol.for("vuetify:v-tabs"), dn = pe({
|
|
22
22
|
fixed: Boolean,
|
|
23
23
|
sliderColor: String,
|
|
24
24
|
hideSlider: Boolean,
|
|
@@ -26,13 +26,13 @@ const xt = Symbol.for("vuetify:v-tabs"), cn = pe({
|
|
|
26
26
|
type: String,
|
|
27
27
|
default: "horizontal"
|
|
28
28
|
},
|
|
29
|
-
...Qe($
|
|
29
|
+
...Qe($a({
|
|
30
30
|
selectedClass: "v-tab--selected",
|
|
31
31
|
variant: "text"
|
|
32
32
|
}), ["active", "block", "flat", "location", "position", "symbol"])
|
|
33
|
-
}, "VTab"),
|
|
33
|
+
}, "VTab"), gl = be()({
|
|
34
34
|
name: "VTab",
|
|
35
|
-
props:
|
|
35
|
+
props: dn(),
|
|
36
36
|
setup(e, o) {
|
|
37
37
|
let {
|
|
38
38
|
slots: s,
|
|
@@ -41,30 +41,30 @@ const xt = Symbol.for("vuetify:v-tabs"), cn = pe({
|
|
|
41
41
|
const {
|
|
42
42
|
textColorClasses: y,
|
|
43
43
|
textColorStyles: u
|
|
44
|
-
} = kt(() => e.sliderColor),
|
|
44
|
+
} = kt(() => e.sliderColor), a = T(), g = T(), C = v(() => e.direction === "horizontal"), E = v(() => a.value?.group?.isSelected.value ?? !1);
|
|
45
45
|
function U(h) {
|
|
46
46
|
let {
|
|
47
47
|
value: m
|
|
48
48
|
} = h;
|
|
49
49
|
if (m) {
|
|
50
|
-
const q =
|
|
50
|
+
const q = a.value?.$el.parentElement?.querySelector(".v-tab--selected .v-tab__slider"), H = g.value;
|
|
51
51
|
if (!q || !H) return;
|
|
52
|
-
const O = getComputedStyle(q).color, R = q.getBoundingClientRect(), G = H.getBoundingClientRect(),
|
|
53
|
-
|
|
52
|
+
const O = getComputedStyle(q).color, R = q.getBoundingClientRect(), G = H.getBoundingClientRect(), c = C.value ? "x" : "y", B = C.value ? "X" : "Y", D = C.value ? "right" : "bottom", k = C.value ? "width" : "height", p = R[c], L = G[c], _ = p > L ? R[D] - G[D] : R[c] - G[c], ne = Math.sign(_) > 0 ? C.value ? "right" : "bottom" : Math.sign(_) < 0 ? C.value ? "left" : "top" : "center", fe = (Math.abs(_) + (Math.sign(_) < 0 ? R[k] : G[k])) / Math.max(R[k], G[k]) || 0, i = R[k] / G[k] || 0, x = 1.5;
|
|
53
|
+
Pa(H, {
|
|
54
54
|
backgroundColor: [O, "currentcolor"],
|
|
55
55
|
transform: [`translate${B}(${_}px) scale${B}(${i})`, `translate${B}(${_ / x}px) scale${B}(${(fe - 1) / x + 1})`, "none"],
|
|
56
56
|
transformOrigin: Array(3).fill(ne)
|
|
57
57
|
}, {
|
|
58
58
|
duration: 225,
|
|
59
|
-
easing:
|
|
59
|
+
easing: Ua
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
return we(() => {
|
|
64
|
-
const h =
|
|
65
|
-
return S(
|
|
64
|
+
const h = de.filterProps(e);
|
|
65
|
+
return S(de, Q({
|
|
66
66
|
symbol: xt,
|
|
67
|
-
ref:
|
|
67
|
+
ref: a,
|
|
68
68
|
class: ["v-tab", e.class],
|
|
69
69
|
style: e.style,
|
|
70
70
|
tabindex: E.value ? 0 : -1,
|
|
@@ -83,39 +83,39 @@ const xt = Symbol.for("vuetify:v-tabs"), cn = pe({
|
|
|
83
83
|
style: Ye(u.value)
|
|
84
84
|
}, null)])
|
|
85
85
|
});
|
|
86
|
-
}),
|
|
86
|
+
}), an({}, a);
|
|
87
87
|
}
|
|
88
|
-
}),
|
|
88
|
+
}), yl = (e) => {
|
|
89
89
|
const {
|
|
90
90
|
touchstartX: o,
|
|
91
91
|
touchendX: s,
|
|
92
92
|
touchstartY: t,
|
|
93
93
|
touchendY: y
|
|
94
|
-
} = e, u = 0.5,
|
|
95
|
-
e.offsetX = s - o, e.offsetY = y - t, Math.abs(e.offsetY) < u * Math.abs(e.offsetX) && (e.left && s < o -
|
|
94
|
+
} = e, u = 0.5, a = 16;
|
|
95
|
+
e.offsetX = s - o, e.offsetY = y - t, Math.abs(e.offsetY) < u * Math.abs(e.offsetX) && (e.left && s < o - a && e.left(e), e.right && s > o + a && e.right(e)), Math.abs(e.offsetX) < u * Math.abs(e.offsetY) && (e.up && y < t - a && e.up(e), e.down && y > t + a && e.down(e));
|
|
96
96
|
};
|
|
97
|
-
function
|
|
97
|
+
function bl(e, o) {
|
|
98
98
|
const s = e.changedTouches[0];
|
|
99
99
|
o.touchstartX = s.clientX, o.touchstartY = s.clientY, o.start?.({
|
|
100
100
|
originalEvent: e,
|
|
101
101
|
...o
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function pl(e, o) {
|
|
105
105
|
const s = e.changedTouches[0];
|
|
106
106
|
o.touchendX = s.clientX, o.touchendY = s.clientY, o.end?.({
|
|
107
107
|
originalEvent: e,
|
|
108
108
|
...o
|
|
109
|
-
}),
|
|
109
|
+
}), yl(o);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function wl(e, o) {
|
|
112
112
|
const s = e.changedTouches[0];
|
|
113
113
|
o.touchmoveX = s.clientX, o.touchmoveY = s.clientY, o.move?.({
|
|
114
114
|
originalEvent: e,
|
|
115
115
|
...o
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function kl() {
|
|
119
119
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
120
120
|
const o = {
|
|
121
121
|
touchstartX: 0,
|
|
@@ -135,22 +135,22 @@ function ka() {
|
|
|
135
135
|
end: e.end
|
|
136
136
|
};
|
|
137
137
|
return {
|
|
138
|
-
touchstart: (s) =>
|
|
139
|
-
touchend: (s) =>
|
|
140
|
-
touchmove: (s) =>
|
|
138
|
+
touchstart: (s) => bl(s, o),
|
|
139
|
+
touchend: (s) => pl(s, o),
|
|
140
|
+
touchmove: (s) => wl(s, o)
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function _l(e, o) {
|
|
144
144
|
const s = o.value, t = s?.parent ? e.parentElement : e, y = s?.options ?? {
|
|
145
145
|
passive: !0
|
|
146
146
|
}, u = o.instance?.$.uid;
|
|
147
147
|
if (!t || u === void 0) return;
|
|
148
|
-
const
|
|
149
|
-
t._touchHandlers = t._touchHandlers ?? /* @__PURE__ */ Object.create(null), t._touchHandlers[u] =
|
|
150
|
-
t.addEventListener(g,
|
|
148
|
+
const a = kl(o.value);
|
|
149
|
+
t._touchHandlers = t._touchHandlers ?? /* @__PURE__ */ Object.create(null), t._touchHandlers[u] = a, on(a).forEach((g) => {
|
|
150
|
+
t.addEventListener(g, a[g], y);
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function xl(e, o) {
|
|
154
154
|
const s = o.value?.parent ? e.parentElement : e, t = o.instance?.$.uid;
|
|
155
155
|
if (!s?._touchHandlers || t === void 0) return;
|
|
156
156
|
const y = s._touchHandlers[t];
|
|
@@ -159,9 +159,9 @@ function xa(e, o) {
|
|
|
159
159
|
}), delete s._touchHandlers[t];
|
|
160
160
|
}
|
|
161
161
|
const wt = {
|
|
162
|
-
mounted:
|
|
163
|
-
unmounted:
|
|
164
|
-
},
|
|
162
|
+
mounted: _l,
|
|
163
|
+
unmounted: xl
|
|
164
|
+
}, cn = Symbol.for("vuetify:v-window"), vn = Symbol.for("vuetify:v-window-group"), mn = pe({
|
|
165
165
|
continuous: Boolean,
|
|
166
166
|
nextIcon: {
|
|
167
167
|
type: [Boolean, String, Function, Object],
|
|
@@ -200,7 +200,7 @@ const wt = {
|
|
|
200
200
|
transitionDuration: Number,
|
|
201
201
|
...sn(),
|
|
202
202
|
...un(),
|
|
203
|
-
...
|
|
203
|
+
...qa()
|
|
204
204
|
}, "VWindow"), qt = be()({
|
|
205
205
|
name: "VWindow",
|
|
206
206
|
directives: {
|
|
@@ -216,24 +216,24 @@ const wt = {
|
|
|
216
216
|
} = o;
|
|
217
217
|
const {
|
|
218
218
|
themeClasses: t
|
|
219
|
-
} =
|
|
219
|
+
} = Na(e), {
|
|
220
220
|
isRtl: y
|
|
221
|
-
} =
|
|
221
|
+
} = Ya(), {
|
|
222
222
|
t: u
|
|
223
|
-
} =
|
|
223
|
+
} = lt(), a = ja(e, vn), g = T(), C = v(() => y.value ? !e.reverse : e.reverse), E = Ce(!1), U = v(() => {
|
|
224
224
|
if (e.crossfade)
|
|
225
225
|
return "v-window-crossfade-transition";
|
|
226
226
|
const D = e.direction === "vertical" ? "y" : "x", p = (C.value ? !E.value : E.value) ? "-reverse" : "";
|
|
227
227
|
return `v-window-${D}${p}-transition`;
|
|
228
|
-
}), h = Ce(0), m = T(void 0), q = v(() =>
|
|
228
|
+
}), h = Ce(0), m = T(void 0), q = v(() => a.items.value.findIndex((D) => a.selected.value.includes(D.id)));
|
|
229
229
|
ye(q, (D, k) => {
|
|
230
230
|
let p;
|
|
231
231
|
const L = {
|
|
232
232
|
left: 0,
|
|
233
233
|
top: 0
|
|
234
234
|
};
|
|
235
|
-
pt && k >= 0 && (p =
|
|
236
|
-
const _ =
|
|
235
|
+
pt && k >= 0 && (p = Da(g.value), L.left = p?.scrollLeft, L.top = p?.scrollTop);
|
|
236
|
+
const _ = a.items.value.length, ne = _ - 1;
|
|
237
237
|
_ <= 2 ? E.value = D < k : D === ne && k === 0 ? E.value = !0 : D === 0 && k === ne ? E.value = !1 : E.value = D < k, Ee(() => {
|
|
238
238
|
if (!pt || !p) return;
|
|
239
239
|
p.scrollTop !== L.top && p.scrollTo({
|
|
@@ -249,39 +249,39 @@ const wt = {
|
|
|
249
249
|
});
|
|
250
250
|
}, {
|
|
251
251
|
flush: "sync"
|
|
252
|
-
}),
|
|
252
|
+
}), Ca(cn, {
|
|
253
253
|
transition: U,
|
|
254
254
|
isReversed: E,
|
|
255
255
|
transitionCount: h,
|
|
256
256
|
transitionHeight: m,
|
|
257
257
|
rootRef: g
|
|
258
258
|
});
|
|
259
|
-
const H = Te(() => e.continuous || q.value !== 0), O = Te(() => e.continuous || q.value !==
|
|
259
|
+
const H = Te(() => e.continuous || q.value !== 0), O = Te(() => e.continuous || q.value !== a.items.value.length - 1);
|
|
260
260
|
function R() {
|
|
261
|
-
H.value &&
|
|
261
|
+
H.value && a.prev();
|
|
262
262
|
}
|
|
263
263
|
function G() {
|
|
264
|
-
O.value &&
|
|
264
|
+
O.value && a.next();
|
|
265
265
|
}
|
|
266
|
-
const
|
|
266
|
+
const c = v(() => {
|
|
267
267
|
const D = [], k = {
|
|
268
268
|
icon: y.value ? e.nextIcon : e.prevIcon,
|
|
269
269
|
class: `v-window__${C.value ? "right" : "left"}`,
|
|
270
|
-
onClick:
|
|
270
|
+
onClick: a.prev,
|
|
271
271
|
"aria-label": u("$vuetify.carousel.prev")
|
|
272
272
|
};
|
|
273
273
|
D.push(H.value ? s.prev ? s.prev({
|
|
274
274
|
props: k
|
|
275
|
-
}) : S(
|
|
275
|
+
}) : S(de, k, null) : A("div", null, null));
|
|
276
276
|
const p = {
|
|
277
277
|
icon: y.value ? e.prevIcon : e.nextIcon,
|
|
278
278
|
class: `v-window__${C.value ? "left" : "right"}`,
|
|
279
|
-
onClick:
|
|
279
|
+
onClick: a.next,
|
|
280
280
|
"aria-label": u("$vuetify.carousel.next")
|
|
281
281
|
};
|
|
282
282
|
return D.push(O.value ? s.next ? s.next({
|
|
283
283
|
props: p
|
|
284
|
-
}) : S(
|
|
284
|
+
}) : S(de, p, null) : A("div", null, null)), D;
|
|
285
285
|
}), B = v(() => e.touch === !1 ? e.touch : {
|
|
286
286
|
...{
|
|
287
287
|
left: () => {
|
|
@@ -306,8 +306,8 @@ const wt = {
|
|
|
306
306
|
"v-window--vertical-arrows": !!e.verticalArrows,
|
|
307
307
|
"v-window--crossfade": !!e.crossfade
|
|
308
308
|
}, t.value, e.class]),
|
|
309
|
-
style: Ye([e.style, e.transitionDuration && !
|
|
310
|
-
"--v-window-transition-duration":
|
|
309
|
+
style: Ye([e.style, e.transitionDuration && !Xa ? {
|
|
310
|
+
"--v-window-transition-duration": at(e.transitionDuration, "ms")
|
|
311
311
|
} : void 0])
|
|
312
312
|
}, {
|
|
313
313
|
default: () => [A("div", {
|
|
@@ -316,25 +316,25 @@ const wt = {
|
|
|
316
316
|
height: m.value
|
|
317
317
|
}
|
|
318
318
|
}, [s.default?.({
|
|
319
|
-
group:
|
|
319
|
+
group: a
|
|
320
320
|
}), e.showArrows !== !1 && A("div", {
|
|
321
321
|
class: te(["v-window__controls", {
|
|
322
322
|
"v-window__controls--left": e.verticalArrows === "left" || e.verticalArrows === !0
|
|
323
323
|
}, {
|
|
324
324
|
"v-window__controls--right": e.verticalArrows === "right"
|
|
325
325
|
}])
|
|
326
|
-
}, [
|
|
327
|
-
group:
|
|
326
|
+
}, [c.value])]), s.additional?.({
|
|
327
|
+
group: a
|
|
328
328
|
})]
|
|
329
329
|
}), [[wt, B.value]])), {
|
|
330
|
-
group:
|
|
330
|
+
group: a
|
|
331
331
|
};
|
|
332
332
|
}
|
|
333
|
-
}),
|
|
333
|
+
}), Vl = pe({
|
|
334
334
|
...Qe(mn(), ["continuous", "nextIcon", "prevIcon", "showArrows", "touch", "mandatory"])
|
|
335
|
-
}, "VTabsWindow"),
|
|
335
|
+
}, "VTabsWindow"), Cl = be()({
|
|
336
336
|
name: "VTabsWindow",
|
|
337
|
-
props:
|
|
337
|
+
props: Vl(),
|
|
338
338
|
emits: {
|
|
339
339
|
"update:modelValue": (e) => !0
|
|
340
340
|
},
|
|
@@ -344,17 +344,17 @@ const wt = {
|
|
|
344
344
|
} = o;
|
|
345
345
|
const t = nn(xt, null), y = je(e, "modelValue"), u = v({
|
|
346
346
|
get() {
|
|
347
|
-
return y.value != null || !t ? y.value : t.items.value.find((
|
|
347
|
+
return y.value != null || !t ? y.value : t.items.value.find((a) => t.selected.value.includes(a.id))?.value;
|
|
348
348
|
},
|
|
349
|
-
set(
|
|
350
|
-
y.value =
|
|
349
|
+
set(a) {
|
|
350
|
+
y.value = a;
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
353
|
return we(() => {
|
|
354
|
-
const
|
|
354
|
+
const a = qt.filterProps(e);
|
|
355
355
|
return S(qt, Q({
|
|
356
356
|
_as: "VTabsWindow"
|
|
357
|
-
},
|
|
357
|
+
}, a, {
|
|
358
358
|
modelValue: u.value,
|
|
359
359
|
"onUpdate:modelValue": (g) => u.value = g,
|
|
360
360
|
class: ["v-tabs-window", e.class],
|
|
@@ -374,8 +374,8 @@ const wt = {
|
|
|
374
374
|
default: void 0
|
|
375
375
|
},
|
|
376
376
|
...sn(),
|
|
377
|
-
...
|
|
378
|
-
...
|
|
377
|
+
...Za(),
|
|
378
|
+
...Ea()
|
|
379
379
|
}, "VWindowItem"), Gt = be()({
|
|
380
380
|
name: "VWindowItem",
|
|
381
381
|
directives: {
|
|
@@ -389,23 +389,23 @@ const wt = {
|
|
|
389
389
|
let {
|
|
390
390
|
slots: s
|
|
391
391
|
} = o;
|
|
392
|
-
const t = nn(
|
|
392
|
+
const t = nn(cn), y = Ga(e, vn), {
|
|
393
393
|
isBooted: u
|
|
394
|
-
} =
|
|
394
|
+
} = la();
|
|
395
395
|
if (!t || !y) throw new Error("[Vuetify] VWindowItem must be used inside VWindow");
|
|
396
|
-
const
|
|
396
|
+
const a = Ce(!1), g = v(() => u.value && (t.isReversed.value ? e.reverseTransition !== !1 : e.transition !== !1));
|
|
397
397
|
function C() {
|
|
398
|
-
!
|
|
398
|
+
!a.value || !t || (a.value = !1, t.transitionCount.value > 0 && (t.transitionCount.value -= 1, t.transitionCount.value === 0 && (t.transitionHeight.value = void 0)));
|
|
399
399
|
}
|
|
400
400
|
function E() {
|
|
401
|
-
|
|
401
|
+
a.value || !t || (a.value = !0, t.transitionCount.value === 0 && (t.transitionHeight.value = at(t.rootRef.value?.clientHeight)), t.transitionCount.value += 1);
|
|
402
402
|
}
|
|
403
403
|
function U() {
|
|
404
404
|
C();
|
|
405
405
|
}
|
|
406
406
|
function h(H) {
|
|
407
|
-
|
|
408
|
-
!g.value || !
|
|
407
|
+
a.value && Ee(() => {
|
|
408
|
+
!g.value || !a.value || !t || (t.transitionHeight.value = at(H.clientHeight));
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
411
|
const m = v(() => {
|
|
@@ -422,24 +422,24 @@ const wt = {
|
|
|
422
422
|
} : !1;
|
|
423
423
|
}), {
|
|
424
424
|
hasContent: q
|
|
425
|
-
} =
|
|
426
|
-
return we(() => S(
|
|
425
|
+
} = Ma(e, y.isSelected);
|
|
426
|
+
return we(() => S(Ka, {
|
|
427
427
|
transition: m.value,
|
|
428
428
|
disabled: !u.value
|
|
429
429
|
}, {
|
|
430
430
|
default: () => [tn(A("div", {
|
|
431
431
|
class: te(["v-window-item", y.selectedClass.value, e.class]),
|
|
432
432
|
style: Ye(e.style)
|
|
433
|
-
}, [q.value && s.default?.()]), [[
|
|
433
|
+
}, [q.value && s.default?.()]), [[Sa, y.isSelected.value]])]
|
|
434
434
|
})), {
|
|
435
435
|
groupItem: y
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
|
-
}),
|
|
438
|
+
}), Sl = pe({
|
|
439
439
|
...fn()
|
|
440
|
-
}, "VTabsWindowItem"),
|
|
440
|
+
}, "VTabsWindowItem"), Tl = be()({
|
|
441
441
|
name: "VTabsWindowItem",
|
|
442
|
-
props:
|
|
442
|
+
props: Sl(),
|
|
443
443
|
setup(e, o) {
|
|
444
444
|
let {
|
|
445
445
|
slots: s
|
|
@@ -455,13 +455,13 @@ const wt = {
|
|
|
455
455
|
}), {};
|
|
456
456
|
}
|
|
457
457
|
});
|
|
458
|
-
function
|
|
459
|
-
return e ? e.map((o) =>
|
|
458
|
+
function Il(e) {
|
|
459
|
+
return e ? e.map((o) => nl(o) ? o : {
|
|
460
460
|
text: o,
|
|
461
461
|
value: o
|
|
462
462
|
}) : [];
|
|
463
463
|
}
|
|
464
|
-
const
|
|
464
|
+
const Pl = pe({
|
|
465
465
|
alignTabs: {
|
|
466
466
|
type: String,
|
|
467
467
|
default: "start"
|
|
@@ -481,16 +481,16 @@ const Pa = pe({
|
|
|
481
481
|
},
|
|
482
482
|
hideSlider: Boolean,
|
|
483
483
|
sliderColor: String,
|
|
484
|
-
...
|
|
485
|
-
...
|
|
484
|
+
...tl(dn(), ["spaced"]),
|
|
485
|
+
...ta({
|
|
486
486
|
mandatory: "force",
|
|
487
487
|
selectedClass: "v-tab-item--selected"
|
|
488
488
|
}),
|
|
489
|
-
...
|
|
489
|
+
...el(),
|
|
490
490
|
...un()
|
|
491
|
-
}, "VTabs"),
|
|
491
|
+
}, "VTabs"), Dl = be()({
|
|
492
492
|
name: "VTabs",
|
|
493
|
-
props:
|
|
493
|
+
props: Pl(),
|
|
494
494
|
emits: {
|
|
495
495
|
"update:modelValue": (e) => !0
|
|
496
496
|
},
|
|
@@ -499,15 +499,15 @@ const Pa = pe({
|
|
|
499
499
|
attrs: s,
|
|
500
500
|
slots: t
|
|
501
501
|
} = o;
|
|
502
|
-
const y = je(e, "modelValue"), u = v(() =>
|
|
503
|
-
densityClasses:
|
|
504
|
-
} =
|
|
502
|
+
const y = je(e, "modelValue"), u = v(() => Il(e.items)), {
|
|
503
|
+
densityClasses: a
|
|
504
|
+
} = Ja(e), {
|
|
505
505
|
backgroundColorClasses: g,
|
|
506
506
|
backgroundColorStyles: C
|
|
507
507
|
} = rn(() => e.bgColor), {
|
|
508
508
|
scopeId: E
|
|
509
|
-
} =
|
|
510
|
-
return
|
|
509
|
+
} = Ba();
|
|
510
|
+
return Qa({
|
|
511
511
|
VTab: {
|
|
512
512
|
color: Te(() => e.color),
|
|
513
513
|
direction: Te(() => e.direction),
|
|
@@ -525,16 +525,16 @@ const Pa = pe({
|
|
|
525
525
|
"v-tabs--fixed-tabs": e.fixedTabs,
|
|
526
526
|
"v-tabs--grow": e.grow,
|
|
527
527
|
"v-tabs--stacked": e.stacked
|
|
528
|
-
},
|
|
528
|
+
}, a.value, g.value, e.class],
|
|
529
529
|
style: [{
|
|
530
|
-
"--v-tabs-height":
|
|
530
|
+
"--v-tabs-height": at(e.height)
|
|
531
531
|
}, C.value, e.style],
|
|
532
532
|
role: "tablist",
|
|
533
533
|
symbol: xt
|
|
534
534
|
}, E, s), {
|
|
535
535
|
default: () => [t.default?.() ?? u.value.map((m) => t.tab?.({
|
|
536
536
|
item: m
|
|
537
|
-
}) ?? S(
|
|
537
|
+
}) ?? S(gl, Q(m, {
|
|
538
538
|
key: m.text,
|
|
539
539
|
value: m.value,
|
|
540
540
|
spaced: e.spaced
|
|
@@ -543,14 +543,14 @@ const Pa = pe({
|
|
|
543
543
|
item: m
|
|
544
544
|
}) : void 0
|
|
545
545
|
}))]
|
|
546
|
-
}), h && S(
|
|
546
|
+
}), h && S(Cl, Q({
|
|
547
547
|
modelValue: y.value,
|
|
548
548
|
"onUpdate:modelValue": (m) => y.value = m,
|
|
549
549
|
key: "tabs-window"
|
|
550
550
|
}, E), {
|
|
551
551
|
default: () => [u.value.map((m) => t.item?.({
|
|
552
552
|
item: m
|
|
553
|
-
}) ?? S(
|
|
553
|
+
}) ?? S(Tl, {
|
|
554
554
|
value: m.value
|
|
555
555
|
}, {
|
|
556
556
|
default: () => t[`item.${m.value}`]?.({
|
|
@@ -560,7 +560,7 @@ const Pa = pe({
|
|
|
560
560
|
})]);
|
|
561
561
|
}), {};
|
|
562
562
|
}
|
|
563
|
-
}),
|
|
563
|
+
}), Ml = pe({
|
|
564
564
|
alwaysFilter: Boolean,
|
|
565
565
|
autoSelectFirst: {
|
|
566
566
|
type: [Boolean, String]
|
|
@@ -570,20 +570,20 @@ const Pa = pe({
|
|
|
570
570
|
default: !0
|
|
571
571
|
},
|
|
572
572
|
delimiters: Array,
|
|
573
|
-
...
|
|
573
|
+
...ga({
|
|
574
574
|
filterKeys: ["title"]
|
|
575
575
|
}),
|
|
576
|
-
...
|
|
576
|
+
...ha({
|
|
577
577
|
hideNoData: !0,
|
|
578
578
|
returnObject: !0
|
|
579
579
|
}),
|
|
580
|
-
...Qe(
|
|
580
|
+
...Qe(ya({
|
|
581
581
|
modelValue: null,
|
|
582
582
|
role: "combobox"
|
|
583
583
|
}), ["validationValue", "dirty", "appendInnerIcon"])
|
|
584
|
-
}, "VCombobox"),
|
|
584
|
+
}, "VCombobox"), El = be()({
|
|
585
585
|
name: "VCombobox",
|
|
586
|
-
props:
|
|
586
|
+
props: Ml(),
|
|
587
587
|
emits: {
|
|
588
588
|
"update:focused": (e) => !0,
|
|
589
589
|
"update:modelValue": (e) => !0,
|
|
@@ -597,156 +597,156 @@ const Pa = pe({
|
|
|
597
597
|
} = o;
|
|
598
598
|
const {
|
|
599
599
|
t: y
|
|
600
|
-
} =
|
|
600
|
+
} = lt(), u = T(), a = Ce(!1), g = Ce(!0), C = Ce(!1), E = T(), U = T(), h = Ce(-1);
|
|
601
601
|
let m = !1;
|
|
602
602
|
const {
|
|
603
603
|
items: q,
|
|
604
604
|
transformIn: H,
|
|
605
605
|
transformOut: O
|
|
606
|
-
} =
|
|
606
|
+
} = oa(e), {
|
|
607
607
|
textColorClasses: R,
|
|
608
608
|
textColorStyles: G
|
|
609
|
-
} = kt(() => u.value?.color),
|
|
610
|
-
const z = O(
|
|
609
|
+
} = kt(() => u.value?.color), c = je(e, "modelValue", [], (l) => H(al(l)), (l) => {
|
|
610
|
+
const z = O(l);
|
|
611
611
|
return e.multiple ? z : z[0] ?? null;
|
|
612
|
-
}), B =
|
|
612
|
+
}), B = ia(e), D = v(() => !!(e.chips || t.chip)), k = v(() => D.value || !!t.selection), p = Ce(!e.multiple && !k.value ? c.value[0]?.title ?? "" : ""), L = Ce(null), _ = v({
|
|
613
613
|
get: () => p.value,
|
|
614
|
-
set: async (
|
|
615
|
-
if (p.value =
|
|
616
|
-
const z = e.delimiters.map(
|
|
614
|
+
set: async (l) => {
|
|
615
|
+
if (p.value = l ?? "", l === null || l === "" && !e.multiple && !k.value ? c.value = [] : !e.multiple && !k.value && (c.value = [Ze(e, l)], Ee(() => U.value?.scrollToIndex(0))), l && e.multiple && e.delimiters?.length) {
|
|
616
|
+
const z = e.delimiters.map(ll).join("|"), j = l.split(new RegExp(`(?:${z})+`));
|
|
617
617
|
if (j.length > 1) {
|
|
618
|
-
for (let
|
|
619
|
-
|
|
618
|
+
for (let d of j)
|
|
619
|
+
d = d.trim(), d && (Y(Ze(e, d)), await Ee());
|
|
620
620
|
p.value = "";
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
|
|
623
|
+
l || (h.value = -1), g.value = !l;
|
|
624
624
|
}
|
|
625
|
-
}), ne = v(() => typeof e.counterValue == "function" ? e.counterValue(
|
|
626
|
-
filteredItems:
|
|
625
|
+
}), ne = v(() => typeof e.counterValue == "function" ? e.counterValue(c.value) : typeof e.counterValue == "number" ? e.counterValue : e.multiple ? c.value.length : _.value.length), {
|
|
626
|
+
filteredItems: ce,
|
|
627
627
|
getMatches: fe
|
|
628
|
-
} =
|
|
628
|
+
} = ua(e, q, () => L.value ?? (e.alwaysFilter || !g.value ? _.value : "")), i = v(() => e.hideSelected && L.value === null ? ce.value.filter((l) => !c.value.some((z) => z.value === l.value)) : ce.value), x = v(() => e.hideNoData && !i.value.length || B.isReadonly.value || B.isDisabled.value), W = je(e, "menu"), f = v({
|
|
629
629
|
get: () => W.value,
|
|
630
|
-
set: (
|
|
631
|
-
W.value && !
|
|
630
|
+
set: (l) => {
|
|
631
|
+
W.value && !l && E.value?.ΨopenChildren.size || l && x.value || (W.value = l);
|
|
632
632
|
}
|
|
633
633
|
}), {
|
|
634
634
|
menuId: K,
|
|
635
|
-
ariaExpanded:
|
|
635
|
+
ariaExpanded: ae,
|
|
636
636
|
ariaControls: ve,
|
|
637
637
|
ariaLabel: r
|
|
638
|
-
} =
|
|
639
|
-
ye(p, (
|
|
640
|
-
m ? Ee(() => m = !1) :
|
|
641
|
-
}), ye(
|
|
642
|
-
!e.multiple && !k.value && (p.value =
|
|
638
|
+
} = sa(e, f);
|
|
639
|
+
ye(p, (l) => {
|
|
640
|
+
m ? Ee(() => m = !1) : a.value && !f.value && (f.value = !0), s("update:search", l);
|
|
641
|
+
}), ye(c, (l) => {
|
|
642
|
+
!e.multiple && !k.value && (p.value = l[0]?.title ?? "");
|
|
643
643
|
});
|
|
644
|
-
const w = v(() =>
|
|
645
|
-
function ke(
|
|
644
|
+
const w = v(() => c.value.map((l) => l.value)), I = v(() => (e.autoSelectFirst === !0 || e.autoSelectFirst === "exact" && _.value === i.value[0]?.title) && i.value.length > 0 && !g.value && !C.value), le = T(), he = ra(le, u);
|
|
645
|
+
function ke(l) {
|
|
646
646
|
m = !0, Ee(() => m = !1), e.openOnClear && (f.value = !0);
|
|
647
647
|
}
|
|
648
648
|
function Xe() {
|
|
649
649
|
x.value || (f.value = !0);
|
|
650
650
|
}
|
|
651
|
-
function Fe(
|
|
652
|
-
x.value || (
|
|
651
|
+
function Fe(l) {
|
|
652
|
+
x.value || (a.value && (l.preventDefault(), l.stopPropagation()), f.value = !f.value);
|
|
653
653
|
}
|
|
654
|
-
function Re(
|
|
655
|
-
(Yt(
|
|
654
|
+
function Re(l) {
|
|
655
|
+
(Yt(l) || l.key === "Backspace") && u.value?.focus();
|
|
656
656
|
}
|
|
657
|
-
function ze(
|
|
658
|
-
if (
|
|
659
|
-
const z = u.value?.selectionStart, j =
|
|
660
|
-
if (["Enter", "ArrowDown", "ArrowUp"].includes(
|
|
657
|
+
function ze(l) {
|
|
658
|
+
if (rl(l) || B.isReadonly.value) return;
|
|
659
|
+
const z = u.value?.selectionStart, j = c.value.length;
|
|
660
|
+
if (["Enter", "ArrowDown", "ArrowUp"].includes(l.key) && l.preventDefault(), ["Enter", "ArrowDown"].includes(l.key) && (f.value = !0), ["Escape"].includes(l.key) && (f.value = !1), I.value && ["Enter", "Tab"].includes(l.key) && !c.value.some((d) => {
|
|
661
661
|
let {
|
|
662
662
|
value: V
|
|
663
|
-
} =
|
|
663
|
+
} = d;
|
|
664
664
|
return V === i.value[0].value;
|
|
665
|
-
}) && Y(
|
|
666
|
-
if (!e.multiple && k.value &&
|
|
665
|
+
}) && Y(ce.value[0]), l.key === "ArrowDown" && I.value && le.value?.focus("next"), l.key === "Enter" && _.value && (Y(Ze(e, _.value), !0, !0), k.value && (p.value = "")), ["Backspace", "Delete"].includes(l.key)) {
|
|
666
|
+
if (!e.multiple && k.value && c.value.length > 0 && !_.value) return Y(c.value[0], !1);
|
|
667
667
|
if (~h.value) {
|
|
668
|
-
|
|
669
|
-
const
|
|
670
|
-
Y(
|
|
671
|
-
} else
|
|
668
|
+
l.preventDefault();
|
|
669
|
+
const d = h.value;
|
|
670
|
+
Y(c.value[h.value], !1), h.value = d >= j - 1 ? j - 2 : d;
|
|
671
|
+
} else l.key === "Backspace" && !_.value && (h.value = j - 1);
|
|
672
672
|
return;
|
|
673
673
|
}
|
|
674
674
|
if (e.multiple)
|
|
675
|
-
if (
|
|
675
|
+
if (l.key === "ArrowLeft") {
|
|
676
676
|
if (h.value < 0 && z && z > 0) return;
|
|
677
|
-
const
|
|
678
|
-
|
|
679
|
-
} else if (
|
|
677
|
+
const d = h.value > -1 ? h.value - 1 : j - 1;
|
|
678
|
+
c.value[d] ? h.value = d : (h.value = -1, u.value?.setSelectionRange(_.value.length, _.value.length));
|
|
679
|
+
} else if (l.key === "ArrowRight") {
|
|
680
680
|
if (h.value < 0) return;
|
|
681
|
-
const
|
|
682
|
-
|
|
683
|
-
} else ~h.value && Yt(
|
|
681
|
+
const d = h.value + 1;
|
|
682
|
+
c.value[d] ? h.value = d : (h.value = -1, u.value?.setSelectionRange(0, 0));
|
|
683
|
+
} else ~h.value && Yt(l) && (h.value = -1);
|
|
684
684
|
}
|
|
685
685
|
function Ae() {
|
|
686
686
|
e.eager && U.value?.calculateVisibleItems();
|
|
687
687
|
}
|
|
688
688
|
function He() {
|
|
689
|
-
|
|
689
|
+
a.value && u.value?.focus(), g.value = !0, L.value = null;
|
|
690
690
|
}
|
|
691
|
-
function Y(
|
|
691
|
+
function Y(l) {
|
|
692
692
|
let z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, j = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
693
|
-
if (!(!
|
|
693
|
+
if (!(!l || l.props.disabled))
|
|
694
694
|
if (e.multiple) {
|
|
695
|
-
const
|
|
696
|
-
if (~
|
|
697
|
-
const $ = V ? [...
|
|
698
|
-
$.splice(
|
|
699
|
-
} else V && (
|
|
695
|
+
const d = c.value.findIndex(($) => (e.valueComparator || Nt)($.value, l.value)), V = z ?? !~d;
|
|
696
|
+
if (~d) {
|
|
697
|
+
const $ = V ? [...c.value, l] : [...c.value];
|
|
698
|
+
$.splice(d, 1), c.value = $;
|
|
699
|
+
} else V && (c.value = [...c.value, l]);
|
|
700
700
|
e.clearOnSelect && (_.value = "");
|
|
701
701
|
} else {
|
|
702
|
-
const
|
|
703
|
-
|
|
702
|
+
const d = z !== !1;
|
|
703
|
+
c.value = d ? [l] : [], (!g.value || e.alwaysFilter) && p.value && (L.value = p.value), p.value = d && !k.value ? l.title : "", Ee(() => {
|
|
704
704
|
f.value = j, g.value = !0;
|
|
705
705
|
});
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
function _e(
|
|
709
|
-
|
|
708
|
+
function _e(l) {
|
|
709
|
+
a.value = !0, setTimeout(() => {
|
|
710
710
|
C.value = !0;
|
|
711
711
|
});
|
|
712
712
|
}
|
|
713
|
-
function et(
|
|
713
|
+
function et(l) {
|
|
714
714
|
C.value = !1;
|
|
715
715
|
}
|
|
716
|
-
return ye(
|
|
717
|
-
if (!(
|
|
716
|
+
return ye(a, (l, z) => {
|
|
717
|
+
if (!(l || l === z) && (h.value = -1, f.value = !1, _.value)) {
|
|
718
718
|
if (e.multiple) {
|
|
719
719
|
Y(Ze(e, _.value));
|
|
720
720
|
return;
|
|
721
721
|
}
|
|
722
722
|
if (!k.value) return;
|
|
723
|
-
|
|
723
|
+
c.value.some((j) => {
|
|
724
724
|
let {
|
|
725
|
-
title:
|
|
725
|
+
title: d
|
|
726
726
|
} = j;
|
|
727
|
-
return
|
|
727
|
+
return d === _.value;
|
|
728
728
|
}) ? p.value = "" : Y(Ze(e, _.value));
|
|
729
729
|
}
|
|
730
|
-
}), ye(f, (
|
|
731
|
-
if (!e.hideSelected &&
|
|
732
|
-
const z = i.value.findIndex((j) =>
|
|
730
|
+
}), ye(f, (l) => {
|
|
731
|
+
if (!e.hideSelected && l && c.value.length && g.value) {
|
|
732
|
+
const z = i.value.findIndex((j) => c.value.some((d) => (e.valueComparator || Nt)(d.value, j.value)));
|
|
733
733
|
pt && window.requestAnimationFrame(() => {
|
|
734
734
|
z >= 0 && U.value?.scrollToIndex(z);
|
|
735
735
|
});
|
|
736
736
|
}
|
|
737
|
-
|
|
738
|
-
}), ye(q, (
|
|
739
|
-
f.value ||
|
|
737
|
+
l && (L.value = null);
|
|
738
|
+
}), ye(q, (l, z) => {
|
|
739
|
+
f.value || a.value && !z.length && l.length && (f.value = !0);
|
|
740
740
|
}), we(() => {
|
|
741
|
-
const
|
|
741
|
+
const l = !!(!e.hideNoData || i.value.length || t["prepend-item"] || t["append-item"] || t["no-data"]), z = c.value.length > 0, j = $t.filterProps(e);
|
|
742
742
|
return S($t, Q({
|
|
743
743
|
ref: u
|
|
744
744
|
}, j, {
|
|
745
745
|
modelValue: _.value,
|
|
746
|
-
"onUpdate:modelValue": (
|
|
747
|
-
focused:
|
|
748
|
-
"onUpdate:focused": (
|
|
749
|
-
validationValue:
|
|
746
|
+
"onUpdate:modelValue": (d) => _.value = d,
|
|
747
|
+
focused: a.value,
|
|
748
|
+
"onUpdate:focused": (d) => a.value = d,
|
|
749
|
+
validationValue: c.externalValue,
|
|
750
750
|
counterValue: ne.value,
|
|
751
751
|
dirty: z,
|
|
752
752
|
class: ["v-combobox", {
|
|
@@ -762,15 +762,15 @@ const Pa = pe({
|
|
|
762
762
|
"onClick:clear": ke,
|
|
763
763
|
"onMousedown:control": Xe,
|
|
764
764
|
onKeydown: ze,
|
|
765
|
-
"aria-expanded":
|
|
765
|
+
"aria-expanded": ae.value,
|
|
766
766
|
"aria-controls": ve.value
|
|
767
767
|
}), {
|
|
768
768
|
...t,
|
|
769
|
-
default: () => A(Je, null, [S(
|
|
769
|
+
default: () => A(Je, null, [S(fl, Q({
|
|
770
770
|
id: K.value,
|
|
771
771
|
ref: E,
|
|
772
772
|
modelValue: f.value,
|
|
773
|
-
"onUpdate:modelValue": (
|
|
773
|
+
"onUpdate:modelValue": (d) => f.value = d,
|
|
774
774
|
activator: "parent",
|
|
775
775
|
contentClass: "v-combobox__content",
|
|
776
776
|
disabled: x.value,
|
|
@@ -781,12 +781,12 @@ const Pa = pe({
|
|
|
781
781
|
onAfterEnter: Ae,
|
|
782
782
|
onAfterLeave: He
|
|
783
783
|
}, e.menuProps), {
|
|
784
|
-
default: () => [
|
|
785
|
-
ref:
|
|
784
|
+
default: () => [l && S(da, Q({
|
|
785
|
+
ref: le,
|
|
786
786
|
filterable: !0,
|
|
787
787
|
selected: w.value,
|
|
788
788
|
selectStrategy: e.multiple ? "independent" : "single-independent",
|
|
789
|
-
onMousedown: (
|
|
789
|
+
onMousedown: (d) => d.preventDefault(),
|
|
790
790
|
selectable: !0,
|
|
791
791
|
onKeydown: Re,
|
|
792
792
|
onFocusin: _e,
|
|
@@ -798,18 +798,18 @@ const Pa = pe({
|
|
|
798
798
|
default: () => [t["prepend-item"]?.(), !i.value.length && !e.hideNoData && (t["no-data"]?.() ?? S(Xt, {
|
|
799
799
|
key: "no-data",
|
|
800
800
|
title: y(e.noDataText)
|
|
801
|
-
}, null)), S(
|
|
801
|
+
}, null)), S(ca, {
|
|
802
802
|
ref: U,
|
|
803
803
|
renderless: !0,
|
|
804
804
|
items: i.value,
|
|
805
805
|
itemKey: "value"
|
|
806
806
|
}, {
|
|
807
|
-
default: (
|
|
807
|
+
default: (d) => {
|
|
808
808
|
let {
|
|
809
809
|
item: V,
|
|
810
810
|
index: $,
|
|
811
811
|
itemRef: We
|
|
812
|
-
} =
|
|
812
|
+
} = d;
|
|
813
813
|
const Ie = Q(V.props, {
|
|
814
814
|
ref: We,
|
|
815
815
|
key: V.value,
|
|
@@ -824,7 +824,7 @@ const Pa = pe({
|
|
|
824
824
|
}), null) : V.type === "subheader" ? t.subheader?.({
|
|
825
825
|
props: V.raw,
|
|
826
826
|
index: $
|
|
827
|
-
}) ?? S(
|
|
827
|
+
}) ?? S(va, Q(V.props, {
|
|
828
828
|
key: `subheader-${$}`
|
|
829
829
|
}), null) : t.item?.({
|
|
830
830
|
item: V,
|
|
@@ -837,26 +837,26 @@ const Pa = pe({
|
|
|
837
837
|
let {
|
|
838
838
|
isSelected: oe
|
|
839
839
|
} = Pe;
|
|
840
|
-
return A(Je, null, [e.multiple && !e.hideSelected ? S(
|
|
840
|
+
return A(Je, null, [e.multiple && !e.hideSelected ? S(fa, {
|
|
841
841
|
key: V.value,
|
|
842
842
|
modelValue: oe,
|
|
843
843
|
ripple: !1,
|
|
844
844
|
tabindex: "-1",
|
|
845
845
|
onClick: (ot) => ot.preventDefault()
|
|
846
|
-
}, null) : void 0, V.props.prependAvatar && S(
|
|
846
|
+
}, null) : void 0, V.props.prependAvatar && S(il, {
|
|
847
847
|
image: V.props.prependAvatar
|
|
848
848
|
}, null), V.props.prependIcon && S(Ne, {
|
|
849
849
|
icon: V.props.prependIcon
|
|
850
850
|
}, null)]);
|
|
851
851
|
},
|
|
852
|
-
title: () => g.value ? V.title :
|
|
852
|
+
title: () => g.value ? V.title : ma("v-combobox", V.title, fe(V)?.title)
|
|
853
853
|
});
|
|
854
854
|
}
|
|
855
855
|
}), t["append-item"]?.()]
|
|
856
856
|
})]
|
|
857
|
-
}),
|
|
857
|
+
}), c.value.map((d, V) => {
|
|
858
858
|
function $(oe) {
|
|
859
|
-
oe.stopPropagation(), oe.preventDefault(), Y(
|
|
859
|
+
oe.stopPropagation(), oe.preventDefault(), Y(d, !1);
|
|
860
860
|
}
|
|
861
861
|
const We = {
|
|
862
862
|
"onClick:close": $,
|
|
@@ -868,64 +868,64 @@ const Pa = pe({
|
|
|
868
868
|
},
|
|
869
869
|
modelValue: !0,
|
|
870
870
|
"onUpdate:modelValue": void 0
|
|
871
|
-
}, Ie = D.value ? !!t.chip : !!t.selection, Pe = Ie ?
|
|
872
|
-
item:
|
|
871
|
+
}, Ie = D.value ? !!t.chip : !!t.selection, Pe = Ie ? ul(D.value ? t.chip({
|
|
872
|
+
item: d,
|
|
873
873
|
index: V,
|
|
874
874
|
props: We
|
|
875
875
|
}) : t.selection({
|
|
876
|
-
item:
|
|
876
|
+
item: d,
|
|
877
877
|
index: V
|
|
878
878
|
})) : void 0;
|
|
879
879
|
if (!(Ie && !Pe))
|
|
880
880
|
return A("div", {
|
|
881
|
-
key:
|
|
881
|
+
key: d.value,
|
|
882
882
|
class: te(["v-combobox__selection", V === h.value && ["v-combobox__selection--selected", R.value]]),
|
|
883
883
|
style: Ye(V === h.value ? G.value : {})
|
|
884
|
-
}, [D.value ? t.chip ? S(
|
|
884
|
+
}, [D.value ? t.chip ? S(sl, {
|
|
885
885
|
key: "chip-defaults",
|
|
886
886
|
defaults: {
|
|
887
887
|
VChip: {
|
|
888
888
|
closable: e.closableChips,
|
|
889
889
|
size: "small",
|
|
890
|
-
text:
|
|
890
|
+
text: d.title
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
893
|
}, {
|
|
894
894
|
default: () => [Pe]
|
|
895
|
-
}) : S(
|
|
895
|
+
}) : S(na, Q({
|
|
896
896
|
key: "chip",
|
|
897
897
|
closable: e.closableChips,
|
|
898
898
|
size: "small",
|
|
899
|
-
text:
|
|
900
|
-
disabled:
|
|
899
|
+
text: d.title,
|
|
900
|
+
disabled: d.props.disabled
|
|
901
901
|
}, We), null) : Pe ?? A("span", {
|
|
902
902
|
class: "v-combobox__selection-text"
|
|
903
|
-
}, [
|
|
903
|
+
}, [d.title, e.multiple && V < c.value.length - 1 && A("span", {
|
|
904
904
|
class: "v-combobox__selection-comma"
|
|
905
905
|
}, [yt(",")])])]);
|
|
906
906
|
})]),
|
|
907
907
|
"append-inner": function() {
|
|
908
|
-
for (var
|
|
908
|
+
for (var d = arguments.length, V = new Array(d), $ = 0; $ < d; $++)
|
|
909
909
|
V[$] = arguments[$];
|
|
910
910
|
return A(Je, null, [t["append-inner"]?.(...V), (!e.hideNoData || e.items.length) && e.menuIcon ? S(Ne, {
|
|
911
911
|
class: "v-combobox__menu-icon",
|
|
912
912
|
color: u.value?.fieldIconColor,
|
|
913
913
|
icon: e.menuIcon,
|
|
914
914
|
onMousedown: Fe,
|
|
915
|
-
onClick:
|
|
915
|
+
onClick: ol,
|
|
916
916
|
"aria-label": r.value,
|
|
917
917
|
title: r.value,
|
|
918
918
|
tabindex: "-1"
|
|
919
919
|
}, null) : void 0]);
|
|
920
920
|
}
|
|
921
921
|
});
|
|
922
|
-
}),
|
|
923
|
-
isFocused:
|
|
922
|
+
}), an({
|
|
923
|
+
isFocused: a,
|
|
924
924
|
isPristine: g,
|
|
925
925
|
menu: f,
|
|
926
926
|
search: _,
|
|
927
927
|
selectionIndex: h,
|
|
928
|
-
filteredItems:
|
|
928
|
+
filteredItems: ce,
|
|
929
929
|
select: Y
|
|
930
930
|
}, u);
|
|
931
931
|
}
|
|
@@ -934,7 +934,7 @@ function Be(e) {
|
|
|
934
934
|
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
|
|
935
935
|
return String(e).padStart(o, "0");
|
|
936
936
|
}
|
|
937
|
-
const
|
|
937
|
+
const Bl = pe({
|
|
938
938
|
allowedValues: Function,
|
|
939
939
|
ampm: Boolean,
|
|
940
940
|
color: String,
|
|
@@ -968,7 +968,7 @@ const Ba = pe({
|
|
|
968
968
|
}
|
|
969
969
|
}, "VTimePickerClock"), Kt = be()({
|
|
970
970
|
name: "VTimePickerClock",
|
|
971
|
-
props:
|
|
971
|
+
props: Bl(),
|
|
972
972
|
emits: {
|
|
973
973
|
change: (e) => !0,
|
|
974
974
|
input: (e) => !0
|
|
@@ -977,13 +977,13 @@ const Ba = pe({
|
|
|
977
977
|
let {
|
|
978
978
|
emit: s
|
|
979
979
|
} = o;
|
|
980
|
-
const t = T(null), y = T(null), u = T(void 0),
|
|
980
|
+
const t = T(null), y = T(null), u = T(void 0), a = T(!1), g = T(null), C = T(null), E = dl((r) => s("change", r), 750), {
|
|
981
981
|
textColorClasses: U,
|
|
982
982
|
textColorStyles: h
|
|
983
983
|
} = kt(() => e.color), {
|
|
984
984
|
backgroundColorClasses: m,
|
|
985
985
|
backgroundColorStyles: q
|
|
986
|
-
} = rn(() => e.color), H = v(() => e.max - e.min + 1), O = v(() => e.double ? H.value / 2 : H.value), R = v(() => 360 / O.value), G = v(() => R.value * Math.PI / 180),
|
|
986
|
+
} = rn(() => e.color), H = v(() => e.max - e.min + 1), O = v(() => e.double ? H.value / 2 : H.value), R = v(() => 360 / O.value), G = v(() => R.value * Math.PI / 180), c = v(() => e.modelValue == null ? e.min : e.modelValue), B = v(() => 0.62), D = v(() => {
|
|
987
987
|
const r = [];
|
|
988
988
|
for (let w = e.min; w <= e.max; w = w + e.step)
|
|
989
989
|
r.push(w);
|
|
@@ -1002,10 +1002,10 @@ const Ba = pe({
|
|
|
1002
1002
|
if (!e.scrollable || e.disabled) return;
|
|
1003
1003
|
r.preventDefault();
|
|
1004
1004
|
const w = Math.sign(-r.deltaY || 1);
|
|
1005
|
-
let I =
|
|
1005
|
+
let I = c.value;
|
|
1006
1006
|
do
|
|
1007
1007
|
I = I + w, I = (I - e.min + H.value) % H.value + e.min;
|
|
1008
|
-
while (!p(I) && I !==
|
|
1008
|
+
while (!p(I) && I !== c.value);
|
|
1009
1009
|
I !== e.displayedValue && k(I), E(I);
|
|
1010
1010
|
}
|
|
1011
1011
|
function _(r) {
|
|
@@ -1014,7 +1014,7 @@ const Ba = pe({
|
|
|
1014
1014
|
function ne(r) {
|
|
1015
1015
|
return _(r) ? B.value : 1;
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function ce(r) {
|
|
1018
1018
|
const w = e.rotate * Math.PI / 180;
|
|
1019
1019
|
return {
|
|
1020
1020
|
x: Math.sin((r - e.min) * G.value + w) * ne(r),
|
|
@@ -1029,15 +1029,15 @@ const Ba = pe({
|
|
|
1029
1029
|
const {
|
|
1030
1030
|
x: w,
|
|
1031
1031
|
y: I
|
|
1032
|
-
} =
|
|
1032
|
+
} = ce(r);
|
|
1033
1033
|
return {
|
|
1034
1034
|
left: `${Math.round(50 + w * 50)}%`,
|
|
1035
1035
|
top: `${Math.round(50 + I * 50)}%`
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
1038
|
function x(r, w) {
|
|
1039
|
-
const I = w.x - r.x,
|
|
1040
|
-
return Math.sqrt(I * I +
|
|
1039
|
+
const I = w.x - r.x, le = w.y - r.y;
|
|
1040
|
+
return Math.sqrt(I * I + le * le);
|
|
1041
1041
|
}
|
|
1042
1042
|
function W(r, w) {
|
|
1043
1043
|
const I = 2 * Math.atan2(w.y - r.y - x(r, w), w.x - r.x);
|
|
@@ -1047,11 +1047,11 @@ const Ba = pe({
|
|
|
1047
1047
|
g.value === null && (g.value = r), C.value = r, k(r);
|
|
1048
1048
|
}
|
|
1049
1049
|
function K(r) {
|
|
1050
|
-
if (r.preventDefault(), !
|
|
1050
|
+
if (r.preventDefault(), !a.value && r.type !== "click" || !t.value) return;
|
|
1051
1051
|
const {
|
|
1052
1052
|
width: w,
|
|
1053
1053
|
top: I,
|
|
1054
|
-
left:
|
|
1054
|
+
left: le
|
|
1055
1055
|
} = t.value?.getBoundingClientRect(), {
|
|
1056
1056
|
width: he
|
|
1057
1057
|
} = y.value?.getBoundingClientRect() ?? {
|
|
@@ -1063,18 +1063,18 @@ const Ba = pe({
|
|
|
1063
1063
|
x: w / 2,
|
|
1064
1064
|
y: -w / 2
|
|
1065
1065
|
}, Re = {
|
|
1066
|
-
x: ke -
|
|
1066
|
+
x: ke - le,
|
|
1067
1067
|
y: I - Xe
|
|
1068
1068
|
}, ze = Math.round(W(Fe, Re) - e.rotate + 360) % 360, Ae = e.double && x(Fe, Re) < (he + he * B.value) / 4, He = Math.ceil(15 / R.value);
|
|
1069
1069
|
let Y;
|
|
1070
1070
|
for (let _e = 0; _e < He; _e++)
|
|
1071
1071
|
if (Y = fe(ze + _e * R.value, Ae), p(Y) || (Y = fe(ze - _e * R.value, Ae), p(Y))) return f(Y);
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1074
|
-
e.disabled || (r.preventDefault(), window.addEventListener("mousemove", K), window.addEventListener("touchmove", K), window.addEventListener("mouseup", ve), window.addEventListener("touchend", ve), g.value = null, C.value = null,
|
|
1073
|
+
function ae(r) {
|
|
1074
|
+
e.disabled || (r.preventDefault(), window.addEventListener("mousemove", K), window.addEventListener("touchmove", K), window.addEventListener("mouseup", ve), window.addEventListener("touchend", ve), g.value = null, C.value = null, a.value = !0, K(r));
|
|
1075
1075
|
}
|
|
1076
1076
|
function ve(r) {
|
|
1077
|
-
r.stopPropagation(), window.removeEventListener("mousemove", K), window.removeEventListener("touchmove", K), window.removeEventListener("mouseup", ve), window.removeEventListener("touchend", ve),
|
|
1077
|
+
r.stopPropagation(), window.removeEventListener("mousemove", K), window.removeEventListener("touchmove", K), window.removeEventListener("mouseup", ve), window.removeEventListener("touchend", ve), a.value = !1, C.value !== null && p(C.value) && s("change", C.value);
|
|
1078
1078
|
}
|
|
1079
1079
|
we(() => A("div", {
|
|
1080
1080
|
class: te([{
|
|
@@ -1082,8 +1082,8 @@ const Ba = pe({
|
|
|
1082
1082
|
"v-time-picker-clock--indeterminate": e.modelValue == null,
|
|
1083
1083
|
"v-time-picker-clock--readonly": e.readonly
|
|
1084
1084
|
}]),
|
|
1085
|
-
onMousedown:
|
|
1086
|
-
onTouchstart:
|
|
1085
|
+
onMousedown: ae,
|
|
1086
|
+
onTouchstart: ae,
|
|
1087
1087
|
onWheel: L,
|
|
1088
1088
|
ref: t
|
|
1089
1089
|
}, [A("div", {
|
|
@@ -1095,10 +1095,10 @@ const Ba = pe({
|
|
|
1095
1095
|
"v-time-picker-clock__hand--inner": _(e.modelValue)
|
|
1096
1096
|
}, U.value]),
|
|
1097
1097
|
style: Ye([{
|
|
1098
|
-
transform: `rotate(${e.rotate + R.value * (
|
|
1098
|
+
transform: `rotate(${e.rotate + R.value * (c.value - e.min)}deg) scaleY(${ne(c.value)})`
|
|
1099
1099
|
}, h.value])
|
|
1100
1100
|
}, null), D.value.map((r) => {
|
|
1101
|
-
const w = r ===
|
|
1101
|
+
const w = r === c.value;
|
|
1102
1102
|
return A("div", {
|
|
1103
1103
|
class: te([{
|
|
1104
1104
|
"v-time-picker-clock__item": !0,
|
|
@@ -1109,7 +1109,7 @@ const Ba = pe({
|
|
|
1109
1109
|
}, [A("span", null, [e.format(r)])]);
|
|
1110
1110
|
})])]));
|
|
1111
1111
|
}
|
|
1112
|
-
}),
|
|
1112
|
+
}), Fl = pe({
|
|
1113
1113
|
ampm: Boolean,
|
|
1114
1114
|
color: String,
|
|
1115
1115
|
disabled: Boolean,
|
|
@@ -1123,7 +1123,7 @@ const Ba = pe({
|
|
|
1123
1123
|
viewMode: String
|
|
1124
1124
|
}, "VTimePickerControls"), Zt = be()({
|
|
1125
1125
|
name: "VTimePickerControls",
|
|
1126
|
-
props:
|
|
1126
|
+
props: Fl(),
|
|
1127
1127
|
emits: {
|
|
1128
1128
|
"update:period": (e) => !0,
|
|
1129
1129
|
"update:viewMode": (e) => !0
|
|
@@ -1135,7 +1135,7 @@ const Ba = pe({
|
|
|
1135
1135
|
} = o;
|
|
1136
1136
|
const {
|
|
1137
1137
|
t: y
|
|
1138
|
-
} =
|
|
1138
|
+
} = lt();
|
|
1139
1139
|
return we(() => {
|
|
1140
1140
|
let u = e.hour;
|
|
1141
1141
|
return e.ampm && (u = u ? (u - 1) % 12 + 1 : 12), A("div", {
|
|
@@ -1145,7 +1145,7 @@ const Ba = pe({
|
|
|
1145
1145
|
"v-time-picker-controls__time": !0,
|
|
1146
1146
|
"v-time-picker-controls__time--with-seconds": e.useSeconds
|
|
1147
1147
|
})
|
|
1148
|
-
}, [S(
|
|
1148
|
+
}, [S(de, {
|
|
1149
1149
|
active: e.viewMode === "hour",
|
|
1150
1150
|
color: e.viewMode === "hour" ? e.color : void 0,
|
|
1151
1151
|
disabled: e.disabled,
|
|
@@ -1161,7 +1161,7 @@ const Ba = pe({
|
|
|
1161
1161
|
class: te(["v-time-picker-controls__time__separator", {
|
|
1162
1162
|
"v-time-picker-controls--with-seconds__time__separator": e.useSeconds
|
|
1163
1163
|
}])
|
|
1164
|
-
}, [yt(":")]), S(
|
|
1164
|
+
}, [yt(":")]), S(de, {
|
|
1165
1165
|
active: e.viewMode === "minute",
|
|
1166
1166
|
color: e.viewMode === "minute" ? e.color : void 0,
|
|
1167
1167
|
class: te({
|
|
@@ -1179,7 +1179,7 @@ const Ba = pe({
|
|
|
1179
1179
|
"v-time-picker-controls--with-seconds__time__separator": e.useSeconds
|
|
1180
1180
|
}]),
|
|
1181
1181
|
key: "secondsDivider"
|
|
1182
|
-
}, [yt(":")]), e.useSeconds && S(
|
|
1182
|
+
}, [yt(":")]), e.useSeconds && S(de, {
|
|
1183
1183
|
key: "secondsVal",
|
|
1184
1184
|
active: e.viewMode === "second",
|
|
1185
1185
|
color: e.viewMode === "second" ? e.color : void 0,
|
|
@@ -1194,7 +1194,7 @@ const Ba = pe({
|
|
|
1194
1194
|
text: e.second == null ? "--" : Be(e.second)
|
|
1195
1195
|
}, null), e.ampm && A("div", {
|
|
1196
1196
|
class: "v-time-picker-controls__ampm"
|
|
1197
|
-
}, [S(
|
|
1197
|
+
}, [S(de, {
|
|
1198
1198
|
active: e.period === "am",
|
|
1199
1199
|
color: e.period === "am" ? e.color : void 0,
|
|
1200
1200
|
class: te({
|
|
@@ -1206,7 +1206,7 @@ const Ba = pe({
|
|
|
1206
1206
|
text: y("$vuetify.timePicker.am"),
|
|
1207
1207
|
variant: e.disabled && e.period === "am" ? "elevated" : "tonal",
|
|
1208
1208
|
onClick: () => e.period !== "am" ? s("update:period", "am") : null
|
|
1209
|
-
}, null), S(
|
|
1209
|
+
}, null), S(de, {
|
|
1210
1210
|
active: e.period === "pm",
|
|
1211
1211
|
color: e.period === "pm" ? e.color : void 0,
|
|
1212
1212
|
class: te({
|
|
@@ -1221,9 +1221,9 @@ const Ba = pe({
|
|
|
1221
1221
|
}, null)])])]);
|
|
1222
1222
|
}), {};
|
|
1223
1223
|
}
|
|
1224
|
-
}),
|
|
1224
|
+
}), Rl = _t(24), hn = _t(12), zl = hn.map((e) => e + 12);
|
|
1225
1225
|
_t(60);
|
|
1226
|
-
const
|
|
1226
|
+
const Al = pe({
|
|
1227
1227
|
allowedHours: [Function, Array],
|
|
1228
1228
|
allowedMinutes: [Function, Array],
|
|
1229
1229
|
allowedSeconds: [Function, Array],
|
|
@@ -1247,12 +1247,12 @@ const Aa = pe({
|
|
|
1247
1247
|
readonly: Boolean,
|
|
1248
1248
|
scrollable: Boolean,
|
|
1249
1249
|
useSeconds: Boolean,
|
|
1250
|
-
...Qe(
|
|
1250
|
+
...Qe(vl({
|
|
1251
1251
|
title: "$vuetify.timePicker.title"
|
|
1252
1252
|
}), ["landscape"])
|
|
1253
|
-
}, "VTimePicker"),
|
|
1253
|
+
}, "VTimePicker"), Hl = be()({
|
|
1254
1254
|
name: "VTimePicker",
|
|
1255
|
-
props:
|
|
1255
|
+
props: Al(),
|
|
1256
1256
|
emits: {
|
|
1257
1257
|
"update:hour": (e) => !0,
|
|
1258
1258
|
"update:minute": (e) => !0,
|
|
@@ -1268,7 +1268,7 @@ const Aa = pe({
|
|
|
1268
1268
|
} = o;
|
|
1269
1269
|
const {
|
|
1270
1270
|
t: y
|
|
1271
|
-
} =
|
|
1271
|
+
} = lt(), u = T(null), a = T(null), g = T(null), C = T(null), E = T(null), U = T(null), h = je(e, "period", "am"), m = je(e, "viewMode", "hour"), q = T(null), H = T(null), O = v(() => {
|
|
1272
1272
|
let i;
|
|
1273
1273
|
if (e.allowedHours instanceof Array ? i = (f) => e.allowedHours.includes(f) : i = e.allowedHours, !e.min && !e.max) return i;
|
|
1274
1274
|
const x = e.min ? Number(e.min.split(":")[0]) : 0, W = e.max ? Number(e.max.split(":")[0]) : 23;
|
|
@@ -1278,27 +1278,27 @@ const Aa = pe({
|
|
|
1278
1278
|
const x = !O.value || u.value === null || O.value(u.value);
|
|
1279
1279
|
if (e.allowedMinutes instanceof Array ? i = (w) => e.allowedMinutes.includes(w) : i = e.allowedMinutes, !e.min && !e.max)
|
|
1280
1280
|
return x ? i : () => !1;
|
|
1281
|
-
const [W, f] = e.min ? e.min.split(":").map(Number) : [0, 0], [K,
|
|
1281
|
+
const [W, f] = e.min ? e.min.split(":").map(Number) : [0, 0], [K, ae] = e.max ? e.max.split(":").map(Number) : [23, 59], ve = W * 60 + Number(f), r = K * 60 + Number(ae);
|
|
1282
1282
|
return (w) => {
|
|
1283
1283
|
const I = 60 * u.value + w;
|
|
1284
1284
|
return I >= ve && I <= r && x && (!i || i(w));
|
|
1285
1285
|
};
|
|
1286
1286
|
}), G = v(() => {
|
|
1287
1287
|
let i;
|
|
1288
|
-
const W = (!O.value || u.value === null || O.value(u.value)) && (!R.value ||
|
|
1288
|
+
const W = (!O.value || u.value === null || O.value(u.value)) && (!R.value || a.value === null || R.value(a.value));
|
|
1289
1289
|
if (e.allowedSeconds instanceof Array ? i = (he) => e.allowedSeconds.includes(he) : i = e.allowedSeconds, !e.min && !e.max)
|
|
1290
1290
|
return W ? i : () => !1;
|
|
1291
|
-
const [f, K,
|
|
1291
|
+
const [f, K, ae] = e.min ? e.min.split(":").map(Number) : [0, 0, 0], [ve, r, w] = e.max ? e.max.split(":").map(Number) : [23, 59, 59], I = f * 3600 + K * 60 + Number(ae || 0), le = ve * 3600 + r * 60 + Number(w || 0);
|
|
1292
1292
|
return (he) => {
|
|
1293
|
-
const ke = 3600 * u.value + 60 *
|
|
1294
|
-
return ke >= I && ke <=
|
|
1293
|
+
const ke = 3600 * u.value + 60 * a.value + he;
|
|
1294
|
+
return ke >= I && ke <= le && W && (!i || i(he));
|
|
1295
1295
|
};
|
|
1296
|
-
}),
|
|
1296
|
+
}), c = v(() => e.format === "ampm");
|
|
1297
1297
|
ye(() => e.period, (i) => ne(i)), ye(() => e.modelValue, (i) => L(i)), bt(() => {
|
|
1298
1298
|
L(e.modelValue);
|
|
1299
1299
|
});
|
|
1300
1300
|
function B() {
|
|
1301
|
-
return u.value != null &&
|
|
1301
|
+
return u.value != null && a.value != null && (!e.useSeconds || g.value != null) ? `${Be(u.value)}:${Be(a.value)}` + (e.useSeconds ? `:${Be(g.value)}` : "") : null;
|
|
1302
1302
|
}
|
|
1303
1303
|
function D() {
|
|
1304
1304
|
const i = B();
|
|
@@ -1312,20 +1312,20 @@ const Aa = pe({
|
|
|
1312
1312
|
}
|
|
1313
1313
|
function L(i) {
|
|
1314
1314
|
if (i == null || i === "")
|
|
1315
|
-
u.value = null,
|
|
1315
|
+
u.value = null, a.value = null, g.value = null;
|
|
1316
1316
|
else if (i instanceof Date)
|
|
1317
|
-
u.value = i.getHours(),
|
|
1317
|
+
u.value = i.getHours(), a.value = i.getMinutes(), g.value = i.getSeconds();
|
|
1318
1318
|
else {
|
|
1319
1319
|
const [x, , W, , f, K] = i.trim().toLowerCase().match(/^(\d+):(\d+)(:(\d+))?([ap]m)?$/) || new Array(6);
|
|
1320
|
-
u.value = K ? p(parseInt(x, 10), K) : parseInt(x, 10),
|
|
1320
|
+
u.value = K ? p(parseInt(x, 10), K) : parseInt(x, 10), a.value = parseInt(W, 10), g.value = parseInt(f || 0, 10);
|
|
1321
1321
|
}
|
|
1322
1322
|
h.value = u.value == null || u.value < 12 ? "am" : "pm";
|
|
1323
1323
|
}
|
|
1324
1324
|
function _(i, x) {
|
|
1325
1325
|
const W = O.value;
|
|
1326
1326
|
if (!W) return x;
|
|
1327
|
-
const f =
|
|
1328
|
-
return ((f.find((
|
|
1327
|
+
const f = c.value ? x < 12 ? hn : zl : Rl;
|
|
1328
|
+
return ((f.find((ae) => W((ae + x) % f.length + f[0])) || 0) + x) % f.length + f[0];
|
|
1329
1329
|
}
|
|
1330
1330
|
function ne(i) {
|
|
1331
1331
|
if (h.value = i, u.value != null) {
|
|
@@ -1334,8 +1334,8 @@ const Aa = pe({
|
|
|
1334
1334
|
}
|
|
1335
1335
|
return s("update:period", i), D(), !0;
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1338
|
-
m.value === "hour" ? u.value =
|
|
1337
|
+
function ce(i) {
|
|
1338
|
+
m.value === "hour" ? u.value = c.value ? p(i, h.value) : i : m.value === "minute" ? a.value = i : g.value = i;
|
|
1339
1339
|
}
|
|
1340
1340
|
function fe(i) {
|
|
1341
1341
|
switch (m.value || "hour") {
|
|
@@ -1349,8 +1349,8 @@ const Aa = pe({
|
|
|
1349
1349
|
s("update:second", i);
|
|
1350
1350
|
break;
|
|
1351
1351
|
}
|
|
1352
|
-
const x = u.value !== null &&
|
|
1353
|
-
m.value === "hour" ? m.value = "minute" : e.useSeconds && m.value === "minute" && (m.value = "second"), !(u.value === C.value &&
|
|
1352
|
+
const x = u.value !== null && a.value !== null && (e.useSeconds ? g.value !== null : !0);
|
|
1353
|
+
m.value === "hour" ? m.value = "minute" : e.useSeconds && m.value === "minute" && (m.value = "second"), !(u.value === C.value && a.value === E.value && (!e.useSeconds || g.value === U.value) || B() === null) && (C.value = u.value, E.value = a.value, e.useSeconds && (U.value = g.value), x && D());
|
|
1354
1354
|
}
|
|
1355
1355
|
we(() => {
|
|
1356
1356
|
const i = jt.filterProps(e), x = Zt.filterProps(e), W = Kt.filterProps(Qe(e, ["format", "modelValue", "min", "max"]));
|
|
@@ -1363,9 +1363,9 @@ const Aa = pe({
|
|
|
1363
1363
|
class: "v-time-picker__title"
|
|
1364
1364
|
}, [y(e.title)]),
|
|
1365
1365
|
header: () => S(Zt, Q(x, {
|
|
1366
|
-
ampm:
|
|
1366
|
+
ampm: c.value,
|
|
1367
1367
|
hour: u.value,
|
|
1368
|
-
minute:
|
|
1368
|
+
minute: a.value,
|
|
1369
1369
|
period: h.value,
|
|
1370
1370
|
second: g.value,
|
|
1371
1371
|
viewMode: m.value,
|
|
@@ -1375,15 +1375,15 @@ const Aa = pe({
|
|
|
1375
1375
|
}), null),
|
|
1376
1376
|
default: () => S(Kt, Q(W, {
|
|
1377
1377
|
allowedValues: m.value === "hour" ? O.value : m.value === "minute" ? R.value : G.value,
|
|
1378
|
-
double: m.value === "hour" && !
|
|
1379
|
-
format: m.value === "hour" ?
|
|
1380
|
-
max: m.value === "hour" ?
|
|
1381
|
-
min: m.value === "hour" &&
|
|
1378
|
+
double: m.value === "hour" && !c.value,
|
|
1379
|
+
format: m.value === "hour" ? c.value ? k : (f) => f : (f) => Be(f, 2),
|
|
1380
|
+
max: m.value === "hour" ? c.value && h.value === "am" ? 11 : 23 : 59,
|
|
1381
|
+
min: m.value === "hour" && c.value && h.value === "pm" ? 12 : 0,
|
|
1382
1382
|
size: 20,
|
|
1383
1383
|
step: m.value === "hour" ? 1 : 5,
|
|
1384
|
-
modelValue: m.value === "hour" ? u.value : m.value === "minute" ?
|
|
1384
|
+
modelValue: m.value === "hour" ? u.value : m.value === "minute" ? a.value : g.value,
|
|
1385
1385
|
onChange: fe,
|
|
1386
|
-
onInput:
|
|
1386
|
+
onInput: ce,
|
|
1387
1387
|
ref: H
|
|
1388
1388
|
}), null),
|
|
1389
1389
|
actions: t.actions
|
|
@@ -1400,11 +1400,11 @@ const Aa = pe({
|
|
|
1400
1400
|
"fullWithSeconds",
|
|
1401
1401
|
"huge",
|
|
1402
1402
|
"hugeWithSeconds"
|
|
1403
|
-
], Jt = (e) => !(typeof e != "string" || !N.fromISO(e).isValid), Qt = (e) => e === null || typeof e > "u" ? !0 : Array.isArray(e) ? e.every((o) => Jt(o)) : Jt(e), { makeProps:
|
|
1403
|
+
], Jt = (e) => !(typeof e != "string" || !N.fromISO(e).isValid), Qt = (e) => e === null || typeof e > "u" ? !0 : Array.isArray(e) ? e.every((o) => Jt(o)) : Jt(e), { makeProps: Wl, emits: Ol } = Yn(
|
|
1404
1404
|
{
|
|
1405
1405
|
...Xn(
|
|
1406
|
-
|
|
1407
|
-
clearIcon: () => b(Ve, { d:
|
|
1406
|
+
wa({
|
|
1407
|
+
clearIcon: () => b(Ve, { d: ln })
|
|
1408
1408
|
}),
|
|
1409
1409
|
[
|
|
1410
1410
|
"appendIcon",
|
|
@@ -1446,7 +1446,7 @@ const Aa = pe({
|
|
|
1446
1446
|
},
|
|
1447
1447
|
datePickerIcon: {
|
|
1448
1448
|
type: ft,
|
|
1449
|
-
default: () => b(Ve, { d:
|
|
1449
|
+
default: () => b(Ve, { d: Wa })
|
|
1450
1450
|
},
|
|
1451
1451
|
dateTerm: {
|
|
1452
1452
|
type: String,
|
|
@@ -1454,7 +1454,7 @@ const Aa = pe({
|
|
|
1454
1454
|
},
|
|
1455
1455
|
timePickerIcon: {
|
|
1456
1456
|
type: ft,
|
|
1457
|
-
default: () => b(Ve, { d:
|
|
1457
|
+
default: () => b(Ve, { d: Ha })
|
|
1458
1458
|
},
|
|
1459
1459
|
timeTerm: {
|
|
1460
1460
|
type: String,
|
|
@@ -1462,7 +1462,7 @@ const Aa = pe({
|
|
|
1462
1462
|
},
|
|
1463
1463
|
timezonePickerIcon: {
|
|
1464
1464
|
type: ft,
|
|
1465
|
-
default: () => b(Ve, { d:
|
|
1465
|
+
default: () => b(Ve, { d: Aa })
|
|
1466
1466
|
},
|
|
1467
1467
|
timePickerFormat: {
|
|
1468
1468
|
type: String,
|
|
@@ -1481,22 +1481,22 @@ const Aa = pe({
|
|
|
1481
1481
|
default: void 0
|
|
1482
1482
|
},
|
|
1483
1483
|
...jn(
|
|
1484
|
-
|
|
1485
|
-
prevIcon: () => b(Ve, { d:
|
|
1486
|
-
nextIcon: () => b(Ve, { d:
|
|
1487
|
-
modeIcon: () => b(Ve, { d:
|
|
1484
|
+
xa({
|
|
1485
|
+
prevIcon: () => b(Ve, { d: za }),
|
|
1486
|
+
nextIcon: () => b(Ve, { d: Ra }),
|
|
1487
|
+
modeIcon: () => b(Ve, { d: Fa })
|
|
1488
1488
|
}),
|
|
1489
1489
|
["firstDayOfWeek", "showWeek", "prevIcon", "nextIcon", "modeIcon"]
|
|
1490
1490
|
),
|
|
1491
|
-
...
|
|
1491
|
+
...pa()
|
|
1492
1492
|
},
|
|
1493
1493
|
{
|
|
1494
1494
|
"update:modelValue": (e) => Qt(e),
|
|
1495
1495
|
"update:model-value": (e) => Qt(e),
|
|
1496
|
-
...
|
|
1496
|
+
...ba
|
|
1497
1497
|
},
|
|
1498
1498
|
"RDateTimeField"
|
|
1499
|
-
),
|
|
1499
|
+
), Ll = () => {
|
|
1500
1500
|
const e = "resourceful-field-datetime-style";
|
|
1501
1501
|
if (!document.getElementById(e)) {
|
|
1502
1502
|
const o = document.createElement("style");
|
|
@@ -1513,15 +1513,15 @@ const Aa = pe({
|
|
|
1513
1513
|
if (o.isValid) return o;
|
|
1514
1514
|
}
|
|
1515
1515
|
}
|
|
1516
|
-
}, co =
|
|
1516
|
+
}, co = Ta({
|
|
1517
1517
|
name: "RDateTimeField",
|
|
1518
|
-
props:
|
|
1519
|
-
emits:
|
|
1518
|
+
props: Wl(),
|
|
1519
|
+
emits: Ol,
|
|
1520
1520
|
slots: Object,
|
|
1521
1521
|
setup(e, { emit: o, slots: s }) {
|
|
1522
1522
|
const t = Gn(), { mobile: y } = Un(), {
|
|
1523
1523
|
modelValue: u,
|
|
1524
|
-
theme:
|
|
1524
|
+
theme: a,
|
|
1525
1525
|
rounded: g,
|
|
1526
1526
|
tile: C,
|
|
1527
1527
|
loading: E,
|
|
@@ -1533,7 +1533,7 @@ const Aa = pe({
|
|
|
1533
1533
|
active: O,
|
|
1534
1534
|
color: R,
|
|
1535
1535
|
baseColor: G,
|
|
1536
|
-
dirty:
|
|
1536
|
+
dirty: c,
|
|
1537
1537
|
disabled: B,
|
|
1538
1538
|
glow: D,
|
|
1539
1539
|
error: k,
|
|
@@ -1541,19 +1541,19 @@ const Aa = pe({
|
|
|
1541
1541
|
iconColor: L,
|
|
1542
1542
|
label: _,
|
|
1543
1543
|
persistentClear: ne,
|
|
1544
|
-
reverse:
|
|
1544
|
+
reverse: ce,
|
|
1545
1545
|
singleLine: fe,
|
|
1546
1546
|
variant: i,
|
|
1547
1547
|
focused: x,
|
|
1548
1548
|
errorMessages: W,
|
|
1549
1549
|
maxErrors: f,
|
|
1550
1550
|
name: K,
|
|
1551
|
-
readonly:
|
|
1551
|
+
readonly: ae,
|
|
1552
1552
|
validateOn: ve,
|
|
1553
1553
|
width: r,
|
|
1554
1554
|
minWidth: w,
|
|
1555
1555
|
maxWidth: I,
|
|
1556
|
-
density:
|
|
1556
|
+
density: le,
|
|
1557
1557
|
id: he,
|
|
1558
1558
|
hideDetails: ke,
|
|
1559
1559
|
hint: Xe,
|
|
@@ -1565,10 +1565,10 @@ const Aa = pe({
|
|
|
1565
1565
|
placeholder: Y,
|
|
1566
1566
|
persistentPlaceholder: _e,
|
|
1567
1567
|
suffix: et,
|
|
1568
|
-
role:
|
|
1568
|
+
role: l,
|
|
1569
1569
|
displayFormat: z,
|
|
1570
1570
|
displayLocale: j,
|
|
1571
|
-
displayTimezone:
|
|
1571
|
+
displayTimezone: d,
|
|
1572
1572
|
renderMode: V,
|
|
1573
1573
|
multiple: $,
|
|
1574
1574
|
choices: We,
|
|
@@ -1576,7 +1576,7 @@ const Aa = pe({
|
|
|
1576
1576
|
to: Pe,
|
|
1577
1577
|
href: oe,
|
|
1578
1578
|
menuIcon: ot,
|
|
1579
|
-
noValuesText: $
|
|
1579
|
+
noValuesText: $l,
|
|
1580
1580
|
datePickerIcon: Vt,
|
|
1581
1581
|
timePickerIcon: Ct,
|
|
1582
1582
|
firstDayOfWeek: gn,
|
|
@@ -1599,7 +1599,7 @@ const Aa = pe({
|
|
|
1599
1599
|
), In = v(() => kn.value || t("general.date")), Pn = v(() => _n.value || t("general.time")), Tt = v(() => xn.value || t("general.timezone")), Oe = v(() => en(bn.value)), Le = v(() => en(yn.value)), Dn = {
|
|
1600
1600
|
style: h,
|
|
1601
1601
|
label: _,
|
|
1602
|
-
density:
|
|
1602
|
+
density: le,
|
|
1603
1603
|
renderMode: V,
|
|
1604
1604
|
multiple: $,
|
|
1605
1605
|
choices: We,
|
|
@@ -1608,13 +1608,13 @@ const Aa = pe({
|
|
|
1608
1608
|
href: oe,
|
|
1609
1609
|
menuIcon: ot,
|
|
1610
1610
|
active: O,
|
|
1611
|
-
theme:
|
|
1611
|
+
theme: a,
|
|
1612
1612
|
disabled: B,
|
|
1613
1613
|
variant: i,
|
|
1614
1614
|
prefix: He,
|
|
1615
1615
|
persistentPlaceholder: _e,
|
|
1616
1616
|
suffix: et,
|
|
1617
|
-
role:
|
|
1617
|
+
role: l,
|
|
1618
1618
|
focused: x,
|
|
1619
1619
|
class: st,
|
|
1620
1620
|
"onUpdate:focused": xe(e)["onUpdate:focused"],
|
|
@@ -1633,9 +1633,9 @@ const Aa = pe({
|
|
|
1633
1633
|
const ee = M.setLocale(j.value);
|
|
1634
1634
|
ee.isValid && (M = ee);
|
|
1635
1635
|
}
|
|
1636
|
-
if (typeof
|
|
1636
|
+
if (typeof d.value == "string" && d.value !== "" && M.isValid) {
|
|
1637
1637
|
let ee = M;
|
|
1638
|
-
|
|
1638
|
+
d.value === "UTC" ? ee = ee.setZone("utc") : ee = ee.setZone(d.value), ee.isValid && (M = ee);
|
|
1639
1639
|
}
|
|
1640
1640
|
if (!M.isValid) return "";
|
|
1641
1641
|
switch (z.value) {
|
|
@@ -1661,7 +1661,7 @@ const Aa = pe({
|
|
|
1661
1661
|
}
|
|
1662
1662
|
), Mn = v(
|
|
1663
1663
|
() => ({
|
|
1664
|
-
theme:
|
|
1664
|
+
theme: a.value,
|
|
1665
1665
|
rounded: g.value,
|
|
1666
1666
|
tile: C.value,
|
|
1667
1667
|
loading: E.value,
|
|
@@ -1673,7 +1673,7 @@ const Aa = pe({
|
|
|
1673
1673
|
active: O.value,
|
|
1674
1674
|
color: R.value,
|
|
1675
1675
|
baseColor: G.value,
|
|
1676
|
-
dirty:
|
|
1676
|
+
dirty: c.value,
|
|
1677
1677
|
disabled: B.value,
|
|
1678
1678
|
glow: D.value,
|
|
1679
1679
|
error: k.value,
|
|
@@ -1681,19 +1681,19 @@ const Aa = pe({
|
|
|
1681
1681
|
iconColor: L.value,
|
|
1682
1682
|
label: _.value,
|
|
1683
1683
|
persistentClear: ne.value,
|
|
1684
|
-
reverse:
|
|
1684
|
+
reverse: ce.value,
|
|
1685
1685
|
singleLine: fe.value,
|
|
1686
1686
|
variant: i.value,
|
|
1687
1687
|
focused: x.value,
|
|
1688
1688
|
errorMessages: W.value,
|
|
1689
1689
|
maxErrors: f.value,
|
|
1690
1690
|
name: K.value,
|
|
1691
|
-
readonly:
|
|
1691
|
+
readonly: ae.value,
|
|
1692
1692
|
validateOn: ve.value,
|
|
1693
1693
|
width: r.value,
|
|
1694
1694
|
minWidth: w.value,
|
|
1695
1695
|
maxWidth: I.value,
|
|
1696
|
-
density:
|
|
1696
|
+
density: le.value,
|
|
1697
1697
|
id: he.value,
|
|
1698
1698
|
hideDetails: ke.value,
|
|
1699
1699
|
hint: Xe.value,
|
|
@@ -1705,7 +1705,7 @@ const Aa = pe({
|
|
|
1705
1705
|
placeholder: Y.value,
|
|
1706
1706
|
persistentPlaceholder: _e.value,
|
|
1707
1707
|
suffix: et.value,
|
|
1708
|
-
role:
|
|
1708
|
+
role: l.value,
|
|
1709
1709
|
type: "date",
|
|
1710
1710
|
onBlur: Cn.value,
|
|
1711
1711
|
onChange: Sn.value,
|
|
@@ -1734,7 +1734,7 @@ const Aa = pe({
|
|
|
1734
1734
|
if (typeof X.value != "string" || X.value === "") return X.value;
|
|
1735
1735
|
const n = X.value.split(":");
|
|
1736
1736
|
return n.length === 2 && n.push("00"), n.join(":");
|
|
1737
|
-
}),
|
|
1737
|
+
}), dt = (n, P, J) => {
|
|
1738
1738
|
const me = [n, P];
|
|
1739
1739
|
if (me.some((ue) => typeof ue > "u")) return;
|
|
1740
1740
|
if (me.some((ue) => ue === null || ue === "")) return null;
|
|
@@ -1748,7 +1748,7 @@ const Aa = pe({
|
|
|
1748
1748
|
return F;
|
|
1749
1749
|
}, Ke = v({
|
|
1750
1750
|
get: () => {
|
|
1751
|
-
const n =
|
|
1751
|
+
const n = dt(
|
|
1752
1752
|
ie.value,
|
|
1753
1753
|
rt.value,
|
|
1754
1754
|
Z.value
|
|
@@ -1784,7 +1784,7 @@ const Aa = pe({
|
|
|
1784
1784
|
() => Le.value ? Le.value.toISODate() ?? void 0 : void 0
|
|
1785
1785
|
), Ft = v(() => {
|
|
1786
1786
|
if (!Oe.value) return;
|
|
1787
|
-
const n =
|
|
1787
|
+
const n = dt(
|
|
1788
1788
|
ie.value,
|
|
1789
1789
|
rt.value,
|
|
1790
1790
|
Z.value
|
|
@@ -1796,7 +1796,7 @@ const Aa = pe({
|
|
|
1796
1796
|
return "23:59:59";
|
|
1797
1797
|
}), Rt = v(() => {
|
|
1798
1798
|
if (!Le.value) return;
|
|
1799
|
-
const n =
|
|
1799
|
+
const n = dt(
|
|
1800
1800
|
ie.value,
|
|
1801
1801
|
rt.value,
|
|
1802
1802
|
Z.value
|
|
@@ -1819,11 +1819,11 @@ const Aa = pe({
|
|
|
1819
1819
|
se.value = n ? se.value || "date" : null;
|
|
1820
1820
|
}
|
|
1821
1821
|
}), zt = v(
|
|
1822
|
-
() =>
|
|
1822
|
+
() => ct(
|
|
1823
1823
|
{
|
|
1824
1824
|
modelValue: De.value,
|
|
1825
1825
|
retainFocus: !0,
|
|
1826
|
-
theme: mt(
|
|
1826
|
+
theme: mt(a)
|
|
1827
1827
|
},
|
|
1828
1828
|
{
|
|
1829
1829
|
"onUpdate:modelValue": (n) => {
|
|
@@ -1832,17 +1832,17 @@ const Aa = pe({
|
|
|
1832
1832
|
}
|
|
1833
1833
|
)
|
|
1834
1834
|
), Ln = v(
|
|
1835
|
-
() =>
|
|
1835
|
+
() => ct(zt.value, {
|
|
1836
1836
|
maxWidth: 500,
|
|
1837
1837
|
maxHeight: 600
|
|
1838
1838
|
})
|
|
1839
1839
|
), $n = v(
|
|
1840
|
-
() =>
|
|
1840
|
+
() => ct(zt.value, {})
|
|
1841
1841
|
), At = (n) => {
|
|
1842
1842
|
let P = null;
|
|
1843
1843
|
n instanceof Date ? P = N.fromJSDate(n).toLocal().toISODate() : typeof n == "string" ? P = n : n === null && (P = null), ie.value = P, !X.value && De.value && (se.value = "time");
|
|
1844
|
-
}, Ue = () => b(
|
|
1845
|
-
() => b(
|
|
1844
|
+
}, Ue = () => b(cl, { src: aa }), Ht = v(
|
|
1845
|
+
() => b(Oa, { class: ["d-flex", "flex-column"] }, () => [
|
|
1846
1846
|
b(
|
|
1847
1847
|
Ut,
|
|
1848
1848
|
{
|
|
@@ -1852,7 +1852,7 @@ const Aa = pe({
|
|
|
1852
1852
|
density: "compact"
|
|
1853
1853
|
},
|
|
1854
1854
|
() => [
|
|
1855
|
-
b(
|
|
1855
|
+
b(Dl, {
|
|
1856
1856
|
grow: !0,
|
|
1857
1857
|
showArrows: !0,
|
|
1858
1858
|
items: [
|
|
@@ -1886,9 +1886,9 @@ const Aa = pe({
|
|
|
1886
1886
|
typeof n == "string" && ["date", "time", "timezone"].includes(n) && (se.value = n);
|
|
1887
1887
|
}
|
|
1888
1888
|
}),
|
|
1889
|
-
b(
|
|
1889
|
+
b(ka, {}, () => [
|
|
1890
1890
|
b(
|
|
1891
|
-
|
|
1891
|
+
de,
|
|
1892
1892
|
{
|
|
1893
1893
|
icon: !0,
|
|
1894
1894
|
onClick: () => {
|
|
@@ -1897,7 +1897,7 @@ const Aa = pe({
|
|
|
1897
1897
|
},
|
|
1898
1898
|
() => [
|
|
1899
1899
|
b(Ne, {
|
|
1900
|
-
icon: () => b(Ve, { d:
|
|
1900
|
+
icon: () => b(Ve, { d: ln })
|
|
1901
1901
|
})
|
|
1902
1902
|
]
|
|
1903
1903
|
)
|
|
@@ -1905,7 +1905,7 @@ const Aa = pe({
|
|
|
1905
1905
|
]
|
|
1906
1906
|
),
|
|
1907
1907
|
b(gt, { class: ["flex-grow-0"] }),
|
|
1908
|
-
se.value !== "date" ? null : b(
|
|
1908
|
+
se.value !== "date" ? null : b(Va, {
|
|
1909
1909
|
bgColor: "transparent",
|
|
1910
1910
|
disabled: B.value,
|
|
1911
1911
|
divided: !1,
|
|
@@ -1924,7 +1924,7 @@ const Aa = pe({
|
|
|
1924
1924
|
"onUpdate:model-value": (n) => At(n),
|
|
1925
1925
|
"onUpdate:modelValue": (n) => At(n)
|
|
1926
1926
|
}),
|
|
1927
|
-
se.value !== "time" ? null : b(
|
|
1927
|
+
se.value !== "time" ? null : b(Hl, {
|
|
1928
1928
|
bgColor: "transparent",
|
|
1929
1929
|
disabled: B.value,
|
|
1930
1930
|
divided: !1,
|
|
@@ -1946,7 +1946,7 @@ const Aa = pe({
|
|
|
1946
1946
|
}
|
|
1947
1947
|
}),
|
|
1948
1948
|
se.value !== "timezone" ? null : b(
|
|
1949
|
-
|
|
1949
|
+
ml,
|
|
1950
1950
|
{
|
|
1951
1951
|
bgColor: "transparent",
|
|
1952
1952
|
divided: !1,
|
|
@@ -1967,14 +1967,14 @@ const Aa = pe({
|
|
|
1967
1967
|
b(
|
|
1968
1968
|
"div",
|
|
1969
1969
|
{ class: ["py-1", "w-100"] },
|
|
1970
|
-
b(
|
|
1970
|
+
b(El, {
|
|
1971
1971
|
hideDetails: !0,
|
|
1972
1972
|
variant: "outlined",
|
|
1973
1973
|
density: "compact",
|
|
1974
1974
|
disabled: B.value,
|
|
1975
1975
|
clearable: !B.value,
|
|
1976
1976
|
clearIcon: H.value,
|
|
1977
|
-
menuIcon: () => b(Ve, { d:
|
|
1977
|
+
menuIcon: () => b(Ve, { d: La }),
|
|
1978
1978
|
label: Tt.value,
|
|
1979
1979
|
items: Dt,
|
|
1980
1980
|
itemTitle: "label",
|
|
@@ -1988,7 +1988,7 @@ const Aa = pe({
|
|
|
1988
1988
|
]
|
|
1989
1989
|
),
|
|
1990
1990
|
b(gt, { class: ["flex-grow-0", "my-2"] }),
|
|
1991
|
-
b(
|
|
1991
|
+
b(ea, {
|
|
1992
1992
|
class: ["flex-grow-1"],
|
|
1993
1993
|
modelValue: Z.value ?? null,
|
|
1994
1994
|
disabled: B.value,
|
|
@@ -2015,7 +2015,7 @@ const Aa = pe({
|
|
|
2015
2015
|
modelValue: Ke.value,
|
|
2016
2016
|
active: !0,
|
|
2017
2017
|
hideDetails: ee ? !0 : ke.value,
|
|
2018
|
-
readonly: ee ? !1 : y.value ? !0 :
|
|
2018
|
+
readonly: ee ? !1 : y.value ? !0 : ae.value || !1,
|
|
2019
2019
|
class: ee ? ["resourceful__field__datetime"] : st.value,
|
|
2020
2020
|
onKeydown: (n) => {
|
|
2021
2021
|
n.key === "Enter" && queueMicrotask(() => M());
|
|
@@ -2055,7 +2055,7 @@ const Aa = pe({
|
|
|
2055
2055
|
modelValue: void 0,
|
|
2056
2056
|
"onUpdate:model-value": void 0,
|
|
2057
2057
|
"onUpdate:modelValue": void 0
|
|
2058
|
-
}), ge = ee ? !1 : $e.value ? !0 :
|
|
2058
|
+
}), ge = ee ? !1 : $e.value ? !0 : ae.value || !1, Me = ae.value || B.value || me.disabled || !1;
|
|
2059
2059
|
return b(
|
|
2060
2060
|
"div",
|
|
2061
2061
|
{
|
|
@@ -2134,7 +2134,7 @@ const Aa = pe({
|
|
|
2134
2134
|
}
|
|
2135
2135
|
},
|
|
2136
2136
|
b(
|
|
2137
|
-
|
|
2137
|
+
de,
|
|
2138
2138
|
{
|
|
2139
2139
|
ref: En,
|
|
2140
2140
|
ariaHidden: !0,
|
|
@@ -2144,7 +2144,7 @@ const Aa = pe({
|
|
|
2144
2144
|
icon: !0,
|
|
2145
2145
|
size: "small",
|
|
2146
2146
|
variant: "text",
|
|
2147
|
-
density: mt(
|
|
2147
|
+
density: mt(le),
|
|
2148
2148
|
modelValue: De.value,
|
|
2149
2149
|
onClick: (F) => {
|
|
2150
2150
|
F.preventDefault(), F.stopPropagation(), F.stopImmediatePropagation(), se.value = "date";
|
|
@@ -2205,7 +2205,7 @@ const Aa = pe({
|
|
|
2205
2205
|
}
|
|
2206
2206
|
},
|
|
2207
2207
|
b(
|
|
2208
|
-
|
|
2208
|
+
de,
|
|
2209
2209
|
{
|
|
2210
2210
|
ref: Bn,
|
|
2211
2211
|
ariaHidden: !0,
|
|
@@ -2215,7 +2215,7 @@ const Aa = pe({
|
|
|
2215
2215
|
icon: !0,
|
|
2216
2216
|
size: "small",
|
|
2217
2217
|
variant: "text",
|
|
2218
|
-
density: mt(
|
|
2218
|
+
density: mt(le),
|
|
2219
2219
|
modelValue: De.value,
|
|
2220
2220
|
onClick: (F) => {
|
|
2221
2221
|
F.preventDefault(), F.stopPropagation(), F.stopImmediatePropagation(), se.value = "time";
|
|
@@ -2246,7 +2246,7 @@ const Aa = pe({
|
|
|
2246
2246
|
}
|
|
2247
2247
|
},
|
|
2248
2248
|
b(
|
|
2249
|
-
|
|
2249
|
+
de,
|
|
2250
2250
|
{
|
|
2251
2251
|
ref: Fn,
|
|
2252
2252
|
ariaHidden: !0,
|
|
@@ -2278,7 +2278,7 @@ const Aa = pe({
|
|
|
2278
2278
|
);
|
|
2279
2279
|
},
|
|
2280
2280
|
"append-inner": (...n) => [
|
|
2281
|
-
y.value ? b(
|
|
2281
|
+
y.value ? b(_a, $n.value, () => Ht.value) : b(hl, Ln.value, () => Ht.value),
|
|
2282
2282
|
// @ts-expect-error
|
|
2283
2283
|
Wt ? Wt(...n) : null
|
|
2284
2284
|
]
|
|
@@ -2294,9 +2294,9 @@ const Aa = pe({
|
|
|
2294
2294
|
u,
|
|
2295
2295
|
e.modelValue
|
|
2296
2296
|
);
|
|
2297
|
-
return bt(() =>
|
|
2297
|
+
return bt(() => Ll()), bt(() => {
|
|
2298
2298
|
Se.value && Se.value.$el && (qe.value = Se.value.$el.clientWidth, Ge = new ResizeObserver(zn), Ge.observe(Se.value.$el));
|
|
2299
|
-
}),
|
|
2299
|
+
}), Ia(() => {
|
|
2300
2300
|
Ge && (Ge.disconnect(), Ge = void 0);
|
|
2301
2301
|
}), Wn;
|
|
2302
2302
|
}
|
|
@@ -2305,4 +2305,4 @@ export {
|
|
|
2305
2305
|
co as R,
|
|
2306
2306
|
ro as a
|
|
2307
2307
|
};
|
|
2308
|
-
//# sourceMappingURL=date_time-
|
|
2308
|
+
//# sourceMappingURL=date_time-BmYl2TFi.mjs.map
|