@nhtio/lucid-resourceful-vue-components 0.1.0-master-e14740ea → 0.1.0-master-dc6af70b
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-CEYzcx0y.mjs} +8 -8
- package/{VBtn-DhfYEt9V.mjs.map → VBtn-CEYzcx0y.mjs.map} +1 -1
- package/{VDatePicker-D0OTAyvJ.mjs → VDatePicker-BHcvHHhM.mjs} +133 -133
- package/{VDatePicker-D0OTAyvJ.mjs.map → VDatePicker-BHcvHHhM.mjs.map} +1 -1
- package/{VEmptyState-BFrXSTJ-.mjs → VEmptyState-CkYtN0q5.mjs} +84 -84
- package/{VEmptyState-BFrXSTJ-.mjs.map → VEmptyState-CkYtN0q5.mjs.map} +1 -1
- package/{VHover-DLvOmsjv.mjs → VHover-Bj6QrQff.mjs} +3 -3
- package/{VHover-DLvOmsjv.mjs.map → VHover-Bj6QrQff.mjs.map} +1 -1
- package/{VListItem-LNaoM8S4.mjs → VListItem-BnxAmKd_.mjs} +55 -55
- package/{VListItem-LNaoM8S4.mjs.map → VListItem-BnxAmKd_.mjs.map} +1 -1
- package/{VMenu-9rTbTKtH.mjs → VMenu-BSB7YSpb.mjs} +28 -28
- package/{VMenu-9rTbTKtH.mjs.map → VMenu-BSB7YSpb.mjs.map} +1 -1
- package/{VPicker-BGuRD0KW.mjs → VPicker-DMOVvCIE.mjs} +5 -5
- package/{VPicker-BGuRD0KW.mjs.map → VPicker-DMOVvCIE.mjs.map} +1 -1
- package/{VRadioGroup-Dx_wEqzl.mjs → VRadioGroup-ByydeX8x.mjs} +21 -21
- package/{VRadioGroup-Dx_wEqzl.mjs.map → VRadioGroup-ByydeX8x.mjs.map} +1 -1
- package/{VRow-DaLdbIGw.mjs → VRow-Dmn82Xaa.mjs} +18 -18
- package/{VRow-DaLdbIGw.mjs.map → VRow-Dmn82Xaa.mjs.map} +1 -1
- package/{VSheet-DnIfs-1c.mjs → VSheet-B9ALb0PQ.mjs} +14 -14
- package/{VSheet-DnIfs-1c.mjs.map → VSheet-B9ALb0PQ.mjs.map} +1 -1
- package/{actions-8bWGsB-p.mjs → actions-BEmdy8bu.mjs} +11 -11
- package/{actions-8bWGsB-p.mjs.map → actions-BEmdy8bu.mjs.map} +1 -1
- package/{alert-IW1AIWZw.mjs → alert-DftADRGk.mjs} +13 -13
- package/{alert-IW1AIWZw.mjs.map → alert-DftADRGk.mjs.map} +1 -1
- package/{bigint-Jmfa2L4S.mjs → bigint-DiC37zMo.mjs} +6 -6
- package/{bigint-Jmfa2L4S.mjs.map → bigint-DiC37zMo.mjs.map} +1 -1
- package/{boolean-BEY7eBxf.mjs → boolean-DZDryWHA.mjs} +74 -74
- package/{boolean-BEY7eBxf.mjs.map → boolean-DZDryWHA.mjs.map} +1 -1
- package/{clipboard-BoKd7mFG.mjs → clipboard--JAZokR3.mjs} +14 -14
- package/{clipboard-BoKd7mFG.mjs.map → clipboard--JAZokR3.mjs.map} +1 -1
- package/{colorUtils-DmtKYNgW.mjs → colorUtils-I1lKouL3.mjs} +3 -3
- package/{colorUtils-DmtKYNgW.mjs.map → colorUtils-I1lKouL3.mjs.map} +1 -1
- package/{common-BeDAn4wu.mjs → common-BDwb9uGU.mjs} +8881 -8880
- package/common-BDwb9uGU.mjs.map +1 -0
- package/{component-CjPpW_A2.mjs → component-C-qp70Rp.mjs} +2 -2
- package/{component-CjPpW_A2.mjs.map → component-C-qp70Rp.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-CRXioSFP.mjs → console-CAez8ceh.mjs} +2 -2
- package/{console-CRXioSFP.mjs.map → console-CAez8ceh.mjs.map} +1 -1
- package/{custom-Y1WJVKP9.mjs → custom-Tm6_792A.mjs} +12 -12
- package/{custom-Y1WJVKP9.mjs.map → custom-Tm6_792A.mjs.map} +1 -1
- package/{date-BxEeCNWD.mjs → date-CxaBVvlO.mjs} +10 -10
- package/{date-BxEeCNWD.mjs.map → date-CxaBVvlO.mjs.map} +1 -1
- package/{date_time-6kpv7eDF.mjs → date_time-DhABUkGT.mjs} +169 -169
- package/{date_time-6kpv7eDF.mjs.map → date_time-DhABUkGT.mjs.map} +1 -1
- package/{display-DvzWa1QO.mjs → display-BdjbLG1_.mjs} +32 -32
- package/{display-DvzWa1QO.mjs.map → display-BdjbLG1_.mjs.map} +1 -1
- package/{display-CO0pTIEs.mjs → display-DPktlWOz.mjs} +42 -42
- package/{display-CO0pTIEs.mjs.map → display-DPktlWOz.mjs.map} +1 -1
- package/{display-kAyhIPBH.mjs → display-DazBkrbZ.mjs} +7 -7
- package/{display-kAyhIPBH.mjs.map → display-DazBkrbZ.mjs.map} +1 -1
- package/{elevation-CMzO50xm.mjs → elevation-DFBVIqom.mjs} +56 -56
- package/{elevation-CMzO50xm.mjs.map → elevation-DFBVIqom.mjs.map} +1 -1
- package/{enum-noYU2Cqh.mjs → enum-KB4xPkOL.mjs} +9 -9
- package/{enum-noYU2Cqh.mjs.map → enum-KB4xPkOL.mjs.map} +1 -1
- package/factories.mjs +1 -1
- package/{field_composer-DpJx0Oz1.mjs → field_composer-CLJuJevf.mjs} +7 -7
- package/{field_composer-DpJx0Oz1.mjs.map → field_composer-CLJuJevf.mjs.map} +1 -1
- package/{form-CDLcDPyU.mjs → form-9YRVcrxM.mjs} +17 -17
- package/{form-CDLcDPyU.mjs.map → form-9YRVcrxM.mjs.map} +1 -1
- package/{guards-B99p3BPj.mjs → guards-BrpRx6ly.mjs} +2 -2
- package/{guards-B99p3BPj.mjs.map → guards-BrpRx6ly.mjs.map} +1 -1
- package/guards.mjs +4 -4
- package/helpers.mjs +6 -6
- package/{index-B2rKM3mR.mjs → index-BaOM0Cyz.mjs} +8 -8
- package/{index-B2rKM3mR.mjs.map → index-BaOM0Cyz.mjs.map} +1 -1
- package/{index-C9UuBVyI.mjs → index-BkjiQEyJ.mjs} +12 -12
- package/{index-C9UuBVyI.mjs.map → index-BkjiQEyJ.mjs.map} +1 -1
- package/{index-slHxe6b-.mjs → index-Bs4A8qUO.mjs} +2 -2
- package/{index-slHxe6b-.mjs.map → index-Bs4A8qUO.mjs.map} +1 -1
- package/{index-BUpccfIz.mjs → index-BsazeUn6.mjs} +3 -3
- package/{index-BUpccfIz.mjs.map → index-BsazeUn6.mjs.map} +1 -1
- package/{index-BaWthszI.mjs → index-CWwCXXNl.mjs} +2 -2
- package/{index-BaWthszI.mjs.map → index-CWwCXXNl.mjs.map} +1 -1
- package/{index-Bi050X9r.mjs → index-DBXOwXpe.mjs} +6 -6
- package/{index-Bi050X9r.mjs.map → index-DBXOwXpe.mjs.map} +1 -1
- package/{index-CzI9mHIx.mjs → index-DDobJ49b.mjs} +7 -7
- package/{index-CzI9mHIx.mjs.map → index-DDobJ49b.mjs.map} +1 -1
- package/{index-CIvylvfa.mjs → index-DwOjHbRP.mjs} +44 -44
- package/{index-CIvylvfa.mjs.map → index-DwOjHbRP.mjs.map} +1 -1
- package/{index-bXmNb9jX.mjs → index-UxsEIZVi.mjs} +4 -4
- package/{index-bXmNb9jX.mjs.map → index-UxsEIZVi.mjs.map} +1 -1
- package/index.mjs +47 -47
- package/{integer-BIJ4_I8y.mjs → integer-uzh0nwpb.mjs} +3 -3
- package/{integer-BIJ4_I8y.mjs.map → integer-uzh0nwpb.mjs.map} +1 -1
- package/{mdi-CqMJqgQi.mjs → mdi-C9DbASEx.mjs} +40 -40
- package/{mdi-CqMJqgQi.mjs.map → mdi-C9DbASEx.mjs.map} +1 -1
- package/{number-z_LAINPM.mjs → number-CfHLDQFY.mjs} +28 -28
- package/{number-z_LAINPM.mjs.map → number-CfHLDQFY.mjs.map} +1 -1
- package/package.json +46 -46
- package/{position-Ai5XksAO.mjs → position-CPuNp03H.mjs} +2 -2
- package/{position-Ai5XksAO.mjs.map → position-CPuNp03H.mjs.map} +1 -1
- package/{props-BYX22zcE.mjs → props-Cq9daNwa.mjs} +4 -4
- package/{props-BYX22zcE.mjs.map → props-Cq9daNwa.mjs.map} +1 -1
- package/{props-p4f5Pa5h.mjs → props-KPFuptNy.mjs} +8 -8
- package/{props-p4f5Pa5h.mjs.map → props-KPFuptNy.mjs.map} +1 -1
- package/{renderers-BKUvrrVm.mjs → renderers-COT3aAu3.mjs} +13 -13
- package/{renderers-BKUvrrVm.mjs.map → renderers-COT3aAu3.mjs.map} +1 -1
- package/{string-Dmr8SRMf.mjs → string-DvwPf_Ob.mjs} +61 -61
- package/{string-Dmr8SRMf.mjs.map → string-DvwPf_Ob.mjs.map} +1 -1
- package/{unsigned_integer-BliPiCXO.mjs → unsigned_integer-C9nrNAn_.mjs} +4 -4
- package/{unsigned_integer-BliPiCXO.mjs.map → unsigned_integer-C9nrNAn_.mjs.map} +1 -1
- package/useRender-Dpj9Jrbr.mjs +9 -0
- package/{useRender-BD1xw5zG.mjs.map → useRender-Dpj9Jrbr.mjs.map} +1 -1
- package/{utils-DqXWb-4f.mjs → utils-DxV2ZNaE.mjs} +10 -10
- package/{utils-DqXWb-4f.mjs.map → utils-DxV2ZNaE.mjs.map} +1 -1
- package/{validation-DS3tTSk5.mjs → validation-CZ6xx4aX.mjs} +4 -4
- package/{validation-DS3tTSk5.mjs.map → validation-CZ6xx4aX.mjs.map} +1 -1
- package/VBtn.css +0 -1
- package/VDatePicker.css +0 -1
- package/VEmptyState.css +0 -1
- package/VListItem.css +0 -1
- package/VMenu.css +0 -1
- package/VPicker.css +0 -1
- package/VRadioGroup.css +0 -1
- package/VSheet.css +0 -1
- package/actions.css +0 -1
- package/boolean.css +0 -1
- package/clipboard.css +0 -1
- package/common-BeDAn4wu.mjs.map +0 -1
- package/common.css +0 -1
- package/date_time.css +0 -1
- package/display.css +0 -1
- package/display2.css +0 -1
- package/elevation.css +0 -1
- package/index.css +0 -1
- package/mdi.css +0 -1
- package/number.css +0 -1
- package/string.css +0 -1
- package/useRender-BD1xw5zG.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 {
|
|
6
|
-
import { D as N, a as
|
|
7
|
-
import { u as Qn } from "./field_composer-
|
|
8
|
-
import { T as el } from "./index-
|
|
9
|
-
import { c as Lt, d as tl, V as nl, I as ft } from "./elevation-
|
|
2
|
+
import { S as Ve } from "./index-CWwCXXNl.mjs";
|
|
3
|
+
import { R as Nn } from "./custom-Tm6_792A.mjs";
|
|
4
|
+
import { d as dt } from "./index-DXdh_Con.mjs";
|
|
5
|
+
import { a as Yn, x as jn, y as Xn, o as vt, i as ht, t as mt, c as qn, s as nt } from "./utils-DxV2ZNaE.mjs";
|
|
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-CLJuJevf.mjs";
|
|
8
|
+
import { T as el } from "./index-BsazeUn6.mjs";
|
|
9
|
+
import { c as Lt, d as tl, V as nl, I as ft } from "./elevation-DFBVIqom.mjs";
|
|
10
10
|
import { w as ll } from "./warning-D1tzZbaa.mjs";
|
|
11
|
-
import { C as al, E as ol, t as il, F as Ze, G as ul, H as sl, I as rl,
|
|
12
|
-
import { m as xl, V as Vl } from "./VDatePicker-
|
|
11
|
+
import { C as al, E as ol, t as il, F as Ze, G as ul, H as sl, I as rl, V as $t, J as cl, K as dl, a as gt, L as vl, M as ml, x as fl, N as hl, O as gl, v as yl, c as bl, b as pl, m as wl, d as Ut, e as kl, f as _l } from "./common-BDwb9uGU.mjs";
|
|
12
|
+
import { m as xl, V as Vl } from "./VDatePicker-BHcvHHhM.mjs";
|
|
13
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 Cl, toRef as Te, withDirectives as tn, inject as nn, vShow as Sl, createTextVNode as yt, onMounted as bt, h as b, defineComponent as Tl, toRefs as xe, onUnmounted as Il } from "vue";
|
|
14
|
-
import { r as ln, K as Pl, L as Dl, M as Ml, N as El, o as Bl, c as Fl, d as Rl, e as zl, O as Al, P as Hl, f as Wl, g as an, V as Ol, b as Ll } from "./mdi-
|
|
15
|
-
import { g as be, p as pe, ar as kt,
|
|
16
|
-
import { V as jt, m as va } from "./VPicker-
|
|
17
|
-
import { V as ma } from "./VSheet-
|
|
18
|
-
import { V as fa } from "./VMenu-
|
|
19
|
-
import { V as Xt } from "./VListItem-
|
|
20
|
-
import { V as ha } from "./display-
|
|
21
|
-
|
|
14
|
+
import { r as ln, K as Pl, L as Dl, M as Ml, N as El, o as Bl, c as Fl, d as Rl, e as zl, O as Al, P as Hl, f as Wl, g as an, V as Ol, b as Ll } from "./mdi-C9DbASEx.mjs";
|
|
15
|
+
import { g as be, p as pe, ar as kt, o as we, V as ce, F as Qe, as as $l, at as Ul, au as on, f as Nl, A as Yl, T as at, af as jl, D as pt, av as lt, ab as Xl, q as ql, r as un, y as sn, u as je, an as Gl, aw as Kl, aq as Zl, a4 as Jl, h as rn, al as Ql, a8 as ea, ax as ta, ay as na, a0 as la, X as aa, ak as Nt, a as Ne, az as oa, a6 as ia, aA as ua, E as sa, aB as ra, aC as Yt, aD as ca, aE as _t, c as da } from "./display-BdjbLG1_.mjs";
|
|
16
|
+
import { V as jt, m as va } from "./VPicker-DMOVvCIE.mjs";
|
|
17
|
+
import { V as ma } from "./VSheet-B9ALb0PQ.mjs";
|
|
18
|
+
import { V as fa } from "./VMenu-BSB7YSpb.mjs";
|
|
19
|
+
import { V as Xt } from "./VListItem-BnxAmKd_.mjs";
|
|
20
|
+
import { V as ha } from "./display-DPktlWOz.mjs";
|
|
21
|
+
const xt = Symbol.for("vuetify:v-tabs"), cn = pe({
|
|
22
22
|
fixed: Boolean,
|
|
23
23
|
sliderColor: String,
|
|
24
24
|
hideSlider: Boolean,
|
|
@@ -32,7 +32,7 @@ import './date_time.css';const xt = Symbol.for("vuetify:v-tabs"), dn = pe({
|
|
|
32
32
|
}), ["active", "block", "flat", "location", "position", "symbol"])
|
|
33
33
|
}, "VTab"), ga = be()({
|
|
34
34
|
name: "VTab",
|
|
35
|
-
props:
|
|
35
|
+
props: cn(),
|
|
36
36
|
setup(e, o) {
|
|
37
37
|
let {
|
|
38
38
|
slots: s,
|
|
@@ -47,9 +47,9 @@ import './date_time.css';const xt = Symbol.for("vuetify:v-tabs"), dn = pe({
|
|
|
47
47
|
value: m
|
|
48
48
|
} = h;
|
|
49
49
|
if (m) {
|
|
50
|
-
const
|
|
51
|
-
if (!
|
|
52
|
-
const O = getComputedStyle(
|
|
50
|
+
const q = l.value?.$el.parentElement?.querySelector(".v-tab--selected .v-tab__slider"), H = g.value;
|
|
51
|
+
if (!q || !H) return;
|
|
52
|
+
const O = getComputedStyle(q).color, R = q.getBoundingClientRect(), G = H.getBoundingClientRect(), d = C.value ? "x" : "y", B = C.value ? "X" : "Y", D = C.value ? "right" : "bottom", k = C.value ? "width" : "height", p = R[d], L = G[d], _ = p > L ? R[D] - G[D] : R[d] - G[d], 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
53
|
Pl(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"],
|
|
@@ -61,8 +61,8 @@ import './date_time.css';const xt = Symbol.for("vuetify:v-tabs"), dn = pe({
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
return we(() => {
|
|
64
|
-
const h =
|
|
65
|
-
return S(
|
|
64
|
+
const h = ce.filterProps(e);
|
|
65
|
+
return S(ce, Q({
|
|
66
66
|
symbol: xt,
|
|
67
67
|
ref: l,
|
|
68
68
|
class: ["v-tab", e.class],
|
|
@@ -161,7 +161,7 @@ function xa(e, o) {
|
|
|
161
161
|
const wt = {
|
|
162
162
|
mounted: _a,
|
|
163
163
|
unmounted: xa
|
|
164
|
-
},
|
|
164
|
+
}, dn = 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,8 +200,8 @@ const wt = {
|
|
|
200
200
|
transitionDuration: Number,
|
|
201
201
|
...sn(),
|
|
202
202
|
...un(),
|
|
203
|
-
...
|
|
204
|
-
}, "VWindow"),
|
|
203
|
+
...ql()
|
|
204
|
+
}, "VWindow"), qt = be()({
|
|
205
205
|
name: "VWindow",
|
|
206
206
|
directives: {
|
|
207
207
|
vTouch: wt
|
|
@@ -225,8 +225,8 @@ const wt = {
|
|
|
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),
|
|
229
|
-
ye(
|
|
228
|
+
}), h = Ce(0), m = T(void 0), q = v(() => l.items.value.findIndex((D) => l.selected.value.includes(D.id)));
|
|
229
|
+
ye(q, (D, k) => {
|
|
230
230
|
let p;
|
|
231
231
|
const L = {
|
|
232
232
|
left: 0,
|
|
@@ -249,21 +249,21 @@ const wt = {
|
|
|
249
249
|
});
|
|
250
250
|
}, {
|
|
251
251
|
flush: "sync"
|
|
252
|
-
}), Cl(
|
|
252
|
+
}), Cl(dn, {
|
|
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 ||
|
|
259
|
+
const H = Te(() => e.continuous || q.value !== 0), O = Te(() => e.continuous || q.value !== l.items.value.length - 1);
|
|
260
260
|
function R() {
|
|
261
261
|
H.value && l.prev();
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function G() {
|
|
264
264
|
O.value && l.next();
|
|
265
265
|
}
|
|
266
|
-
const
|
|
266
|
+
const d = v(() => {
|
|
267
267
|
const D = [], k = {
|
|
268
268
|
icon: y.value ? e.nextIcon : e.prevIcon,
|
|
269
269
|
class: `v-window__${C.value ? "right" : "left"}`,
|
|
@@ -272,7 +272,7 @@ const wt = {
|
|
|
272
272
|
};
|
|
273
273
|
D.push(H.value ? s.prev ? s.prev({
|
|
274
274
|
props: k
|
|
275
|
-
}) : S(
|
|
275
|
+
}) : S(ce, 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"}`,
|
|
@@ -281,14 +281,14 @@ const wt = {
|
|
|
281
281
|
};
|
|
282
282
|
return D.push(O.value ? s.next ? s.next({
|
|
283
283
|
props: p
|
|
284
|
-
}) : S(
|
|
284
|
+
}) : S(ce, p, null) : A("div", null, null)), D;
|
|
285
285
|
}), B = v(() => e.touch === !1 ? e.touch : {
|
|
286
286
|
...{
|
|
287
287
|
left: () => {
|
|
288
|
-
C.value ? R() :
|
|
288
|
+
C.value ? R() : G();
|
|
289
289
|
},
|
|
290
290
|
right: () => {
|
|
291
|
-
C.value ?
|
|
291
|
+
C.value ? G() : R();
|
|
292
292
|
},
|
|
293
293
|
start: (k) => {
|
|
294
294
|
let {
|
|
@@ -323,7 +323,7 @@ const wt = {
|
|
|
323
323
|
}, {
|
|
324
324
|
"v-window__controls--right": e.verticalArrows === "right"
|
|
325
325
|
}])
|
|
326
|
-
}, [
|
|
326
|
+
}, [d.value])]), s.additional?.({
|
|
327
327
|
group: l
|
|
328
328
|
})]
|
|
329
329
|
}), [[wt, B.value]])), {
|
|
@@ -351,8 +351,8 @@ const wt = {
|
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
353
|
return we(() => {
|
|
354
|
-
const l =
|
|
355
|
-
return S(
|
|
354
|
+
const l = qt.filterProps(e);
|
|
355
|
+
return S(qt, Q({
|
|
356
356
|
_as: "VTabsWindow"
|
|
357
357
|
}, l, {
|
|
358
358
|
modelValue: u.value,
|
|
@@ -376,7 +376,7 @@ const wt = {
|
|
|
376
376
|
...sn(),
|
|
377
377
|
...Zl(),
|
|
378
378
|
...El()
|
|
379
|
-
}, "VWindowItem"),
|
|
379
|
+
}, "VWindowItem"), Gt = be()({
|
|
380
380
|
name: "VWindowItem",
|
|
381
381
|
directives: {
|
|
382
382
|
vTouch: wt
|
|
@@ -389,7 +389,7 @@ const wt = {
|
|
|
389
389
|
let {
|
|
390
390
|
slots: s
|
|
391
391
|
} = o;
|
|
392
|
-
const t = nn(
|
|
392
|
+
const t = nn(dn), y = Gl(e, vn), {
|
|
393
393
|
isBooted: u
|
|
394
394
|
} = al();
|
|
395
395
|
if (!t || !y) throw new Error("[Vuetify] VWindowItem must be used inside VWindow");
|
|
@@ -421,7 +421,7 @@ const wt = {
|
|
|
421
421
|
onEnter: h
|
|
422
422
|
} : !1;
|
|
423
423
|
}), {
|
|
424
|
-
hasContent:
|
|
424
|
+
hasContent: q
|
|
425
425
|
} = Ml(e, y.isSelected);
|
|
426
426
|
return we(() => S(Kl, {
|
|
427
427
|
transition: m.value,
|
|
@@ -430,7 +430,7 @@ const wt = {
|
|
|
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
|
-
}, [
|
|
433
|
+
}, [q.value && s.default?.()]), [[Sl, y.isSelected.value]])]
|
|
434
434
|
})), {
|
|
435
435
|
groupItem: y
|
|
436
436
|
};
|
|
@@ -445,8 +445,8 @@ const wt = {
|
|
|
445
445
|
slots: s
|
|
446
446
|
} = o;
|
|
447
447
|
return we(() => {
|
|
448
|
-
const t =
|
|
449
|
-
return S(
|
|
448
|
+
const t = Gt.filterProps(e);
|
|
449
|
+
return S(Gt, Q({
|
|
450
450
|
_as: "VTabsWindowItem"
|
|
451
451
|
}, t, {
|
|
452
452
|
class: ["v-tabs-window-item", e.class],
|
|
@@ -481,7 +481,7 @@ const Pa = pe({
|
|
|
481
481
|
},
|
|
482
482
|
hideSlider: Boolean,
|
|
483
483
|
sliderColor: String,
|
|
484
|
-
...ta(
|
|
484
|
+
...ta(cn(), ["spaced"]),
|
|
485
485
|
...tl({
|
|
486
486
|
mandatory: "force",
|
|
487
487
|
selectedClass: "v-tab-item--selected"
|
|
@@ -600,32 +600,32 @@ const Pa = pe({
|
|
|
600
600
|
} = at(), u = T(), l = Ce(!1), g = Ce(!0), C = Ce(!1), E = T(), U = T(), h = Ce(-1);
|
|
601
601
|
let m = !1;
|
|
602
602
|
const {
|
|
603
|
-
items:
|
|
603
|
+
items: q,
|
|
604
604
|
transformIn: H,
|
|
605
605
|
transformOut: O
|
|
606
606
|
} = ol(e), {
|
|
607
607
|
textColorClasses: R,
|
|
608
|
-
textColorStyles:
|
|
609
|
-
} = kt(() => u.value?.color),
|
|
608
|
+
textColorStyles: G
|
|
609
|
+
} = kt(() => u.value?.color), d = je(e, "modelValue", [], (a) => H(la(a)), (a) => {
|
|
610
610
|
const z = O(a);
|
|
611
611
|
return e.multiple ? z : z[0] ?? null;
|
|
612
|
-
}), B = il(e), D = v(() => !!(e.chips || t.chip)), k = v(() => D.value || !!t.selection), p = Ce(!e.multiple && !k.value ?
|
|
612
|
+
}), B = il(e), D = v(() => !!(e.chips || t.chip)), k = v(() => D.value || !!t.selection), p = Ce(!e.multiple && !k.value ? d.value[0]?.title ?? "" : ""), L = Ce(null), _ = v({
|
|
613
613
|
get: () => p.value,
|
|
614
614
|
set: async (a) => {
|
|
615
|
-
if (p.value = a ?? "", a === null || a === "" && !e.multiple && !k.value ?
|
|
615
|
+
if (p.value = a ?? "", a === null || a === "" && !e.multiple && !k.value ? d.value = [] : !e.multiple && !k.value && (d.value = [Ze(e, a)], Ee(() => U.value?.scrollToIndex(0))), a && e.multiple && e.delimiters?.length) {
|
|
616
616
|
const z = e.delimiters.map(aa).join("|"), j = a.split(new RegExp(`(?:${z})+`));
|
|
617
617
|
if (j.length > 1) {
|
|
618
|
-
for (let
|
|
619
|
-
|
|
618
|
+
for (let c of j)
|
|
619
|
+
c = c.trim(), c && (Y(Ze(e, c)), await Ee());
|
|
620
620
|
p.value = "";
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
a || (h.value = -1), g.value = !a;
|
|
624
624
|
}
|
|
625
|
-
}), ne = v(() => typeof e.counterValue == "function" ? e.counterValue(
|
|
626
|
-
filteredItems:
|
|
625
|
+
}), ne = v(() => typeof e.counterValue == "function" ? e.counterValue(d.value) : typeof e.counterValue == "number" ? e.counterValue : e.multiple ? d.value.length : _.value.length), {
|
|
626
|
+
filteredItems: de,
|
|
627
627
|
getMatches: fe
|
|
628
|
-
} = ul(e,
|
|
628
|
+
} = ul(e, q, () => L.value ?? (e.alwaysFilter || !g.value ? _.value : "")), i = v(() => e.hideSelected && L.value === null ? de.value.filter((a) => !d.value.some((z) => z.value === a.value)) : de.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
630
|
set: (a) => {
|
|
631
631
|
W.value && !a && E.value?.ΨopenChildren.size || a && x.value || (W.value = a);
|
|
@@ -638,10 +638,10 @@ const Pa = pe({
|
|
|
638
638
|
} = sl(e, f);
|
|
639
639
|
ye(p, (a) => {
|
|
640
640
|
m ? Ee(() => m = !1) : l.value && !f.value && (f.value = !0), s("update:search", a);
|
|
641
|
-
}), ye(
|
|
641
|
+
}), ye(d, (a) => {
|
|
642
642
|
!e.multiple && !k.value && (p.value = a[0]?.title ?? "");
|
|
643
643
|
});
|
|
644
|
-
const w = v(() =>
|
|
644
|
+
const w = v(() => d.value.map((a) => a.value)), I = v(() => (e.autoSelectFirst === !0 || e.autoSelectFirst === "exact" && _.value === i.value[0]?.title) && i.value.length > 0 && !g.value && !C.value), ae = T(), he = rl(ae, u);
|
|
645
645
|
function ke(a) {
|
|
646
646
|
m = !0, Ee(() => m = !1), e.openOnClear && (f.value = !0);
|
|
647
647
|
}
|
|
@@ -656,30 +656,30 @@ const Pa = pe({
|
|
|
656
656
|
}
|
|
657
657
|
function ze(a) {
|
|
658
658
|
if (ra(a) || B.isReadonly.value) return;
|
|
659
|
-
const z = u.value?.selectionStart, j =
|
|
660
|
-
if (["Enter", "ArrowDown", "ArrowUp"].includes(a.key) && a.preventDefault(), ["Enter", "ArrowDown"].includes(a.key) && (f.value = !0), ["Escape"].includes(a.key) && (f.value = !1), I.value && ["Enter", "Tab"].includes(a.key) && !
|
|
659
|
+
const z = u.value?.selectionStart, j = d.value.length;
|
|
660
|
+
if (["Enter", "ArrowDown", "ArrowUp"].includes(a.key) && a.preventDefault(), ["Enter", "ArrowDown"].includes(a.key) && (f.value = !0), ["Escape"].includes(a.key) && (f.value = !1), I.value && ["Enter", "Tab"].includes(a.key) && !d.value.some((c) => {
|
|
661
661
|
let {
|
|
662
662
|
value: V
|
|
663
|
-
} =
|
|
663
|
+
} = c;
|
|
664
664
|
return V === i.value[0].value;
|
|
665
|
-
}) && Y(
|
|
666
|
-
if (!e.multiple && k.value &&
|
|
665
|
+
}) && Y(de.value[0]), a.key === "ArrowDown" && I.value && ae.value?.focus("next"), a.key === "Enter" && _.value && (Y(Ze(e, _.value), !0, !0), k.value && (p.value = "")), ["Backspace", "Delete"].includes(a.key)) {
|
|
666
|
+
if (!e.multiple && k.value && d.value.length > 0 && !_.value) return Y(d.value[0], !1);
|
|
667
667
|
if (~h.value) {
|
|
668
668
|
a.preventDefault();
|
|
669
|
-
const
|
|
670
|
-
Y(
|
|
669
|
+
const c = h.value;
|
|
670
|
+
Y(d.value[h.value], !1), h.value = c >= j - 1 ? j - 2 : c;
|
|
671
671
|
} else a.key === "Backspace" && !_.value && (h.value = j - 1);
|
|
672
672
|
return;
|
|
673
673
|
}
|
|
674
674
|
if (e.multiple)
|
|
675
675
|
if (a.key === "ArrowLeft") {
|
|
676
676
|
if (h.value < 0 && z && z > 0) return;
|
|
677
|
-
const
|
|
678
|
-
|
|
677
|
+
const c = h.value > -1 ? h.value - 1 : j - 1;
|
|
678
|
+
d.value[c] ? h.value = c : (h.value = -1, u.value?.setSelectionRange(_.value.length, _.value.length));
|
|
679
679
|
} else if (a.key === "ArrowRight") {
|
|
680
680
|
if (h.value < 0) return;
|
|
681
|
-
const
|
|
682
|
-
|
|
681
|
+
const c = h.value + 1;
|
|
682
|
+
d.value[c] ? h.value = c : (h.value = -1, u.value?.setSelectionRange(0, 0));
|
|
683
683
|
} else ~h.value && Yt(a) && (h.value = -1);
|
|
684
684
|
}
|
|
685
685
|
function Ae() {
|
|
@@ -692,15 +692,15 @@ const Pa = pe({
|
|
|
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
693
|
if (!(!a || a.props.disabled))
|
|
694
694
|
if (e.multiple) {
|
|
695
|
-
const
|
|
696
|
-
if (~
|
|
697
|
-
const $ = V ? [...
|
|
698
|
-
$.splice(
|
|
699
|
-
} else V && (
|
|
695
|
+
const c = d.value.findIndex(($) => (e.valueComparator || Nt)($.value, a.value)), V = z ?? !~c;
|
|
696
|
+
if (~c) {
|
|
697
|
+
const $ = V ? [...d.value, a] : [...d.value];
|
|
698
|
+
$.splice(c, 1), d.value = $;
|
|
699
|
+
} else V && (d.value = [...d.value, a]);
|
|
700
700
|
e.clearOnSelect && (_.value = "");
|
|
701
701
|
} else {
|
|
702
|
-
const
|
|
703
|
-
|
|
702
|
+
const c = z !== !1;
|
|
703
|
+
d.value = c ? [a] : [], (!g.value || e.alwaysFilter) && p.value && (L.value = p.value), p.value = c && !k.value ? a.title : "", Ee(() => {
|
|
704
704
|
f.value = j, g.value = !0;
|
|
705
705
|
});
|
|
706
706
|
}
|
|
@@ -720,33 +720,33 @@ const Pa = pe({
|
|
|
720
720
|
return;
|
|
721
721
|
}
|
|
722
722
|
if (!k.value) return;
|
|
723
|
-
|
|
723
|
+
d.value.some((j) => {
|
|
724
724
|
let {
|
|
725
|
-
title:
|
|
725
|
+
title: c
|
|
726
726
|
} = j;
|
|
727
|
-
return
|
|
727
|
+
return c === _.value;
|
|
728
728
|
}) ? p.value = "" : Y(Ze(e, _.value));
|
|
729
729
|
}
|
|
730
730
|
}), ye(f, (a) => {
|
|
731
|
-
if (!e.hideSelected && a &&
|
|
732
|
-
const z = i.value.findIndex((j) =>
|
|
731
|
+
if (!e.hideSelected && a && d.value.length && g.value) {
|
|
732
|
+
const z = i.value.findIndex((j) => d.value.some((c) => (e.valueComparator || Nt)(c.value, j.value)));
|
|
733
733
|
pt && window.requestAnimationFrame(() => {
|
|
734
734
|
z >= 0 && U.value?.scrollToIndex(z);
|
|
735
735
|
});
|
|
736
736
|
}
|
|
737
737
|
a && (L.value = null);
|
|
738
|
-
}), ye(
|
|
738
|
+
}), ye(q, (a, z) => {
|
|
739
739
|
f.value || l.value && !z.length && a.length && (f.value = !0);
|
|
740
740
|
}), we(() => {
|
|
741
|
-
const a = !!(!e.hideNoData || i.value.length || t["prepend-item"] || t["append-item"] || t["no-data"]), z =
|
|
741
|
+
const a = !!(!e.hideNoData || i.value.length || t["prepend-item"] || t["append-item"] || t["no-data"]), z = d.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": (
|
|
746
|
+
"onUpdate:modelValue": (c) => _.value = c,
|
|
747
747
|
focused: l.value,
|
|
748
|
-
"onUpdate:focused": (
|
|
749
|
-
validationValue:
|
|
748
|
+
"onUpdate:focused": (c) => l.value = c,
|
|
749
|
+
validationValue: d.externalValue,
|
|
750
750
|
counterValue: ne.value,
|
|
751
751
|
dirty: z,
|
|
752
752
|
class: ["v-combobox", {
|
|
@@ -770,7 +770,7 @@ const Pa = pe({
|
|
|
770
770
|
id: K.value,
|
|
771
771
|
ref: E,
|
|
772
772
|
modelValue: f.value,
|
|
773
|
-
"onUpdate:modelValue": (
|
|
773
|
+
"onUpdate:modelValue": (c) => f.value = c,
|
|
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: () => [a && S(
|
|
784
|
+
default: () => [a && S(cl, Q({
|
|
785
785
|
ref: ae,
|
|
786
786
|
filterable: !0,
|
|
787
787
|
selected: w.value,
|
|
788
788
|
selectStrategy: e.multiple ? "independent" : "single-independent",
|
|
789
|
-
onMousedown: (
|
|
789
|
+
onMousedown: (c) => c.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(dl, {
|
|
802
802
|
ref: U,
|
|
803
803
|
renderless: !0,
|
|
804
804
|
items: i.value,
|
|
805
805
|
itemKey: "value"
|
|
806
806
|
}, {
|
|
807
|
-
default: (
|
|
807
|
+
default: (c) => {
|
|
808
808
|
let {
|
|
809
809
|
item: V,
|
|
810
810
|
index: $,
|
|
811
811
|
itemRef: We
|
|
812
|
-
} =
|
|
812
|
+
} = c;
|
|
813
813
|
const Ie = Q(V.props, {
|
|
814
814
|
ref: We,
|
|
815
815
|
key: V.value,
|
|
@@ -854,9 +854,9 @@ const Pa = pe({
|
|
|
854
854
|
}
|
|
855
855
|
}), t["append-item"]?.()]
|
|
856
856
|
})]
|
|
857
|
-
}),
|
|
857
|
+
}), d.value.map((c, V) => {
|
|
858
858
|
function $(oe) {
|
|
859
|
-
oe.stopPropagation(), oe.preventDefault(), Y(
|
|
859
|
+
oe.stopPropagation(), oe.preventDefault(), Y(c, !1);
|
|
860
860
|
}
|
|
861
861
|
const We = {
|
|
862
862
|
"onClick:close": $,
|
|
@@ -869,25 +869,25 @@ const Pa = pe({
|
|
|
869
869
|
modelValue: !0,
|
|
870
870
|
"onUpdate:modelValue": void 0
|
|
871
871
|
}, Ie = D.value ? !!t.chip : !!t.selection, Pe = Ie ? ua(D.value ? t.chip({
|
|
872
|
-
item:
|
|
872
|
+
item: c,
|
|
873
873
|
index: V,
|
|
874
874
|
props: We
|
|
875
875
|
}) : t.selection({
|
|
876
|
-
item:
|
|
876
|
+
item: c,
|
|
877
877
|
index: V
|
|
878
878
|
})) : void 0;
|
|
879
879
|
if (!(Ie && !Pe))
|
|
880
880
|
return A("div", {
|
|
881
|
-
key:
|
|
881
|
+
key: c.value,
|
|
882
882
|
class: te(["v-combobox__selection", V === h.value && ["v-combobox__selection--selected", R.value]]),
|
|
883
|
-
style: Ye(V === h.value ?
|
|
883
|
+
style: Ye(V === h.value ? G.value : {})
|
|
884
884
|
}, [D.value ? t.chip ? S(sa, {
|
|
885
885
|
key: "chip-defaults",
|
|
886
886
|
defaults: {
|
|
887
887
|
VChip: {
|
|
888
888
|
closable: e.closableChips,
|
|
889
889
|
size: "small",
|
|
890
|
-
text:
|
|
890
|
+
text: c.title
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
893
|
}, {
|
|
@@ -896,16 +896,16 @@ const Pa = pe({
|
|
|
896
896
|
key: "chip",
|
|
897
897
|
closable: e.closableChips,
|
|
898
898
|
size: "small",
|
|
899
|
-
text:
|
|
900
|
-
disabled:
|
|
899
|
+
text: c.title,
|
|
900
|
+
disabled: c.props.disabled
|
|
901
901
|
}, We), null) : Pe ?? A("span", {
|
|
902
902
|
class: "v-combobox__selection-text"
|
|
903
|
-
}, [
|
|
903
|
+
}, [c.title, e.multiple && V < d.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 c = arguments.length, V = new Array(c), $ = 0; $ < c; $++)
|
|
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",
|
|
@@ -925,7 +925,7 @@ const Pa = pe({
|
|
|
925
925
|
menu: f,
|
|
926
926
|
search: _,
|
|
927
927
|
selectionIndex: h,
|
|
928
|
-
filteredItems:
|
|
928
|
+
filteredItems: de,
|
|
929
929
|
select: Y
|
|
930
930
|
}, u);
|
|
931
931
|
}
|
|
@@ -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), l = T(!1), g = T(null), C = T(null), E =
|
|
980
|
+
const t = T(null), y = T(null), u = T(void 0), l = T(!1), g = T(null), C = T(null), E = ca((r) => s("change", r), 750), {
|
|
981
981
|
textColorClasses: U,
|
|
982
982
|
textColorStyles: h
|
|
983
983
|
} = kt(() => e.color), {
|
|
984
984
|
backgroundColorClasses: m,
|
|
985
|
-
backgroundColorStyles:
|
|
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),
|
|
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), d = 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 = d.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 !== d.value);
|
|
1009
1009
|
I !== e.displayedValue && k(I), E(I);
|
|
1010
1010
|
}
|
|
1011
1011
|
function _(r) {
|
|
@@ -1014,11 +1014,11 @@ const Ba = pe({
|
|
|
1014
1014
|
function ne(r) {
|
|
1015
1015
|
return _(r) ? B.value : 1;
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function de(r) {
|
|
1018
1018
|
const w = e.rotate * Math.PI / 180;
|
|
1019
1019
|
return {
|
|
1020
|
-
x: Math.sin((r - e.min) *
|
|
1021
|
-
y: -Math.cos((r - e.min) *
|
|
1020
|
+
x: Math.sin((r - e.min) * G.value + w) * ne(r),
|
|
1021
|
+
y: -Math.cos((r - e.min) * G.value + w) * ne(r)
|
|
1022
1022
|
};
|
|
1023
1023
|
}
|
|
1024
1024
|
function fe(r, w) {
|
|
@@ -1029,7 +1029,7 @@ const Ba = pe({
|
|
|
1029
1029
|
const {
|
|
1030
1030
|
x: w,
|
|
1031
1031
|
y: I
|
|
1032
|
-
} =
|
|
1032
|
+
} = de(r);
|
|
1033
1033
|
return {
|
|
1034
1034
|
left: `${Math.round(50 + w * 50)}%`,
|
|
1035
1035
|
top: `${Math.round(50 + I * 50)}%`
|
|
@@ -1095,17 +1095,17 @@ 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 * (d.value - e.min)}deg) scaleY(${ne(d.value)})`
|
|
1099
1099
|
}, h.value])
|
|
1100
1100
|
}, null), D.value.map((r) => {
|
|
1101
|
-
const w = r ===
|
|
1101
|
+
const w = r === d.value;
|
|
1102
1102
|
return A("div", {
|
|
1103
1103
|
class: te([{
|
|
1104
1104
|
"v-time-picker-clock__item": !0,
|
|
1105
1105
|
"v-time-picker-clock__item--active": w,
|
|
1106
1106
|
"v-time-picker-clock__item--disabled": e.disabled || !p(r)
|
|
1107
1107
|
}, w && m.value]),
|
|
1108
|
-
style: Ye([i(r), w &&
|
|
1108
|
+
style: Ye([i(r), w && q.value])
|
|
1109
1109
|
}, [A("span", null, [e.format(r)])]);
|
|
1110
1110
|
})])]));
|
|
1111
1111
|
}
|
|
@@ -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(ce, {
|
|
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(ce, {
|
|
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(ce, {
|
|
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(ce, {
|
|
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(ce, {
|
|
1210
1210
|
active: e.period === "pm",
|
|
1211
1211
|
color: e.period === "pm" ? e.color : void 0,
|
|
1212
1212
|
class: te({
|
|
@@ -1268,7 +1268,7 @@ const Aa = pe({
|
|
|
1268
1268
|
} = o;
|
|
1269
1269
|
const {
|
|
1270
1270
|
t: y
|
|
1271
|
-
} = at(), u = T(null), l = T(null), g = T(null), C = T(null), E = T(null), U = T(null), h = je(e, "period", "am"), m = je(e, "viewMode", "hour"),
|
|
1271
|
+
} = at(), u = T(null), l = 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;
|
|
@@ -1283,7 +1283,7 @@ const Aa = pe({
|
|
|
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
1288
|
const W = (!O.value || u.value === null || O.value(u.value)) && (!R.value || l.value === null || R.value(l.value));
|
|
1289
1289
|
if (e.allowedSeconds instanceof Array ? i = (he) => e.allowedSeconds.includes(he) : i = e.allowedSeconds, !e.min && !e.max)
|
|
@@ -1293,7 +1293,7 @@ const Aa = pe({
|
|
|
1293
1293
|
const ke = 3600 * u.value + 60 * l.value + he;
|
|
1294
1294
|
return ke >= I && ke <= ae && W && (!i || i(he));
|
|
1295
1295
|
};
|
|
1296
|
-
}),
|
|
1296
|
+
}), d = 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
|
});
|
|
@@ -1324,7 +1324,7 @@ const Aa = pe({
|
|
|
1324
1324
|
function _(i, x) {
|
|
1325
1325
|
const W = O.value;
|
|
1326
1326
|
if (!W) return x;
|
|
1327
|
-
const f =
|
|
1327
|
+
const f = d.value ? x < 12 ? hn : za : Ra;
|
|
1328
1328
|
return ((f.find((le) => W((le + x) % f.length + f[0])) || 0) + x) % f.length + f[0];
|
|
1329
1329
|
}
|
|
1330
1330
|
function ne(i) {
|
|
@@ -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 de(i) {
|
|
1338
|
+
m.value === "hour" ? u.value = d.value ? p(i, h.value) : i : m.value === "minute" ? l.value = i : g.value = i;
|
|
1339
1339
|
}
|
|
1340
1340
|
function fe(i) {
|
|
1341
1341
|
switch (m.value || "hour") {
|
|
@@ -1363,7 +1363,7 @@ 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: d.value,
|
|
1367
1367
|
hour: u.value,
|
|
1368
1368
|
minute: l.value,
|
|
1369
1369
|
period: h.value,
|
|
@@ -1371,19 +1371,19 @@ const Aa = pe({
|
|
|
1371
1371
|
viewMode: m.value,
|
|
1372
1372
|
"onUpdate:period": (f) => ne(f),
|
|
1373
1373
|
"onUpdate:viewMode": (f) => m.value = f,
|
|
1374
|
-
ref:
|
|
1374
|
+
ref: q
|
|
1375
1375
|
}), null),
|
|
1376
1376
|
default: () => S(Kt, Q(W, {
|
|
1377
|
-
allowedValues: m.value === "hour" ? O.value : m.value === "minute" ? R.value :
|
|
1378
|
-
double: m.value === "hour" && !
|
|
1379
|
-
format: m.value === "hour" ?
|
|
1380
|
-
max: m.value === "hour" ?
|
|
1381
|
-
min: m.value === "hour" &&
|
|
1377
|
+
allowedValues: m.value === "hour" ? O.value : m.value === "minute" ? R.value : G.value,
|
|
1378
|
+
double: m.value === "hour" && !d.value,
|
|
1379
|
+
format: m.value === "hour" ? d.value ? k : (f) => f : (f) => Be(f, 2),
|
|
1380
|
+
max: m.value === "hour" ? d.value && h.value === "am" ? 11 : 23 : 59,
|
|
1381
|
+
min: m.value === "hour" && d.value && h.value === "pm" ? 12 : 0,
|
|
1382
1382
|
size: 20,
|
|
1383
1383
|
step: m.value === "hour" ? 1 : 5,
|
|
1384
1384
|
modelValue: m.value === "hour" ? u.value : m.value === "minute" ? l.value : g.value,
|
|
1385
1385
|
onChange: fe,
|
|
1386
|
-
onInput:
|
|
1386
|
+
onInput: de,
|
|
1387
1387
|
ref: H
|
|
1388
1388
|
}), null),
|
|
1389
1389
|
actions: t.actions
|
|
@@ -1519,7 +1519,7 @@ const Aa = pe({
|
|
|
1519
1519
|
emits: Oa,
|
|
1520
1520
|
slots: Object,
|
|
1521
1521
|
setup(e, { emit: o, slots: s }) {
|
|
1522
|
-
const t =
|
|
1522
|
+
const t = Gn(), { mobile: y } = Un(), {
|
|
1523
1523
|
modelValue: u,
|
|
1524
1524
|
theme: l,
|
|
1525
1525
|
rounded: g,
|
|
@@ -1528,12 +1528,12 @@ const Aa = pe({
|
|
|
1528
1528
|
class: U,
|
|
1529
1529
|
style: h,
|
|
1530
1530
|
bgColor: m,
|
|
1531
|
-
clearable:
|
|
1531
|
+
clearable: q,
|
|
1532
1532
|
clearIcon: H,
|
|
1533
1533
|
active: O,
|
|
1534
1534
|
color: R,
|
|
1535
|
-
baseColor:
|
|
1536
|
-
dirty:
|
|
1535
|
+
baseColor: G,
|
|
1536
|
+
dirty: d,
|
|
1537
1537
|
disabled: B,
|
|
1538
1538
|
glow: D,
|
|
1539
1539
|
error: k,
|
|
@@ -1541,7 +1541,7 @@ const Aa = pe({
|
|
|
1541
1541
|
iconColor: L,
|
|
1542
1542
|
label: _,
|
|
1543
1543
|
persistentClear: ne,
|
|
1544
|
-
reverse:
|
|
1544
|
+
reverse: de,
|
|
1545
1545
|
singleLine: fe,
|
|
1546
1546
|
variant: i,
|
|
1547
1547
|
focused: x,
|
|
@@ -1568,7 +1568,7 @@ const Aa = pe({
|
|
|
1568
1568
|
role: a,
|
|
1569
1569
|
displayFormat: z,
|
|
1570
1570
|
displayLocale: j,
|
|
1571
|
-
displayTimezone:
|
|
1571
|
+
displayTimezone: c,
|
|
1572
1572
|
renderMode: V,
|
|
1573
1573
|
multiple: $,
|
|
1574
1574
|
choices: We,
|
|
@@ -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 c.value == "string" && c.value !== "" && M.isValid) {
|
|
1637
1637
|
let ee = M;
|
|
1638
|
-
|
|
1638
|
+
c.value === "UTC" ? ee = ee.setZone("utc") : ee = ee.setZone(c.value), ee.isValid && (M = ee);
|
|
1639
1639
|
}
|
|
1640
1640
|
if (!M.isValid) return "";
|
|
1641
1641
|
switch (z.value) {
|
|
@@ -1668,12 +1668,12 @@ const Aa = pe({
|
|
|
1668
1668
|
class: st.value,
|
|
1669
1669
|
style: h.value,
|
|
1670
1670
|
bgColor: m.value,
|
|
1671
|
-
clearable:
|
|
1671
|
+
clearable: q.value,
|
|
1672
1672
|
clearIcon: H.value,
|
|
1673
1673
|
active: O.value,
|
|
1674
1674
|
color: R.value,
|
|
1675
|
-
baseColor:
|
|
1676
|
-
dirty:
|
|
1675
|
+
baseColor: G.value,
|
|
1676
|
+
dirty: d.value,
|
|
1677
1677
|
disabled: B.value,
|
|
1678
1678
|
glow: D.value,
|
|
1679
1679
|
error: k.value,
|
|
@@ -1681,7 +1681,7 @@ const Aa = pe({
|
|
|
1681
1681
|
iconColor: L.value,
|
|
1682
1682
|
label: _.value,
|
|
1683
1683
|
persistentClear: ne.value,
|
|
1684
|
-
reverse:
|
|
1684
|
+
reverse: de.value,
|
|
1685
1685
|
singleLine: fe.value,
|
|
1686
1686
|
variant: i.value,
|
|
1687
1687
|
focused: x.value,
|
|
@@ -1711,17 +1711,17 @@ const Aa = pe({
|
|
|
1711
1711
|
onChange: Sn.value,
|
|
1712
1712
|
onInput: Tn.value
|
|
1713
1713
|
})
|
|
1714
|
-
), tt = T(), En = T(), Pt = T(), Bn = T(), Fn = T(), Dt = Kn(), Rn = Zn(), Mt = Jn(), ie = T(void 0), X = T(void 0), Z = T(void 0), se = T(null), Se = T(),
|
|
1715
|
-
() => y.value ||
|
|
1714
|
+
), tt = T(), En = T(), Pt = T(), Bn = T(), Fn = T(), Dt = Kn(), Rn = Zn(), Mt = Jn(), ie = T(void 0), X = T(void 0), Z = T(void 0), se = T(null), Se = T(), qe = T(0), $e = v(
|
|
1715
|
+
() => y.value || qe.value !== 0 && qe.value < 420
|
|
1716
1716
|
);
|
|
1717
|
-
let
|
|
1717
|
+
let Ge;
|
|
1718
1718
|
const zn = (re) => {
|
|
1719
1719
|
for (const M of re)
|
|
1720
1720
|
if (M.contentBoxSize) {
|
|
1721
1721
|
const ee = Array.isArray(M.contentBoxSize) ? M.contentBoxSize[0] : M.contentBoxSize;
|
|
1722
|
-
|
|
1722
|
+
qe.value = ee.inlineSize;
|
|
1723
1723
|
} else
|
|
1724
|
-
|
|
1724
|
+
qe.value = M.contentRect.width;
|
|
1725
1725
|
}, An = (re) => {
|
|
1726
1726
|
const M = Se.value && Se.value.$el || null;
|
|
1727
1727
|
return M && re.target && M.contains(re.target) || se.value !== null;
|
|
@@ -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
|
+
}), ct = (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 = ct(
|
|
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 = ct(
|
|
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 = ct(
|
|
1800
1800
|
ie.value,
|
|
1801
1801
|
rt.value,
|
|
1802
1802
|
Z.value
|
|
@@ -1819,7 +1819,7 @@ const Aa = pe({
|
|
|
1819
1819
|
se.value = n ? se.value || "date" : null;
|
|
1820
1820
|
}
|
|
1821
1821
|
}), zt = v(
|
|
1822
|
-
() =>
|
|
1822
|
+
() => dt(
|
|
1823
1823
|
{
|
|
1824
1824
|
modelValue: De.value,
|
|
1825
1825
|
retainFocus: !0,
|
|
@@ -1832,16 +1832,16 @@ const Aa = pe({
|
|
|
1832
1832
|
}
|
|
1833
1833
|
)
|
|
1834
1834
|
), Ln = v(
|
|
1835
|
-
() =>
|
|
1835
|
+
() => dt(zt.value, {
|
|
1836
1836
|
maxWidth: 500,
|
|
1837
1837
|
maxHeight: 600
|
|
1838
1838
|
})
|
|
1839
1839
|
), $n = v(
|
|
1840
|
-
() =>
|
|
1840
|
+
() => dt(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(
|
|
1844
|
+
}, Ue = () => b(da, { src: ll }), Ht = v(
|
|
1845
1845
|
() => b(Ol, { class: ["d-flex", "flex-column"] }, () => [
|
|
1846
1846
|
b(
|
|
1847
1847
|
Ut,
|
|
@@ -1888,7 +1888,7 @@ const Aa = pe({
|
|
|
1888
1888
|
}),
|
|
1889
1889
|
b(kl, {}, () => [
|
|
1890
1890
|
b(
|
|
1891
|
-
|
|
1891
|
+
ce,
|
|
1892
1892
|
{
|
|
1893
1893
|
icon: !0,
|
|
1894
1894
|
onClick: () => {
|
|
@@ -2000,7 +2000,7 @@ const Aa = pe({
|
|
|
2000
2000
|
]
|
|
2001
2001
|
)
|
|
2002
2002
|
])
|
|
2003
|
-
), Wt =
|
|
2003
|
+
), Wt = qn("append-inner", s);
|
|
2004
2004
|
return b(
|
|
2005
2005
|
Nn,
|
|
2006
2006
|
{
|
|
@@ -2134,7 +2134,7 @@ const Aa = pe({
|
|
|
2134
2134
|
}
|
|
2135
2135
|
},
|
|
2136
2136
|
b(
|
|
2137
|
-
|
|
2137
|
+
ce,
|
|
2138
2138
|
{
|
|
2139
2139
|
ref: En,
|
|
2140
2140
|
ariaHidden: !0,
|
|
@@ -2205,7 +2205,7 @@ const Aa = pe({
|
|
|
2205
2205
|
}
|
|
2206
2206
|
},
|
|
2207
2207
|
b(
|
|
2208
|
-
|
|
2208
|
+
ce,
|
|
2209
2209
|
{
|
|
2210
2210
|
ref: Bn,
|
|
2211
2211
|
ariaHidden: !0,
|
|
@@ -2246,7 +2246,7 @@ const Aa = pe({
|
|
|
2246
2246
|
}
|
|
2247
2247
|
},
|
|
2248
2248
|
b(
|
|
2249
|
-
|
|
2249
|
+
ce,
|
|
2250
2250
|
{
|
|
2251
2251
|
ref: Fn,
|
|
2252
2252
|
ariaHidden: !0,
|
|
@@ -2295,9 +2295,9 @@ const Aa = pe({
|
|
|
2295
2295
|
e.modelValue
|
|
2296
2296
|
);
|
|
2297
2297
|
return bt(() => La()), bt(() => {
|
|
2298
|
-
Se.value && Se.value.$el && (
|
|
2298
|
+
Se.value && Se.value.$el && (qe.value = Se.value.$el.clientWidth, Ge = new ResizeObserver(zn), Ge.observe(Se.value.$el));
|
|
2299
2299
|
}), Il(() => {
|
|
2300
|
-
|
|
2300
|
+
Ge && (Ge.disconnect(), Ge = void 0);
|
|
2301
2301
|
}), Wn;
|
|
2302
2302
|
}
|
|
2303
2303
|
});
|
|
@@ -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-DhABUkGT.mjs.map
|