@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,18 +1,18 @@
|
|
|
1
1
|
import { useDisplay as Wa } from "vuetify";
|
|
2
|
-
import { S as ie } from "./index-
|
|
2
|
+
import { S as ie } from "./index-C-PCfO1S.mjs";
|
|
3
3
|
import { d as He } from "./index-DXdh_Con.mjs";
|
|
4
|
-
import { u as Ga } from "./field_composer-
|
|
5
|
-
import {
|
|
6
|
-
import { createVNode as I, mergeProps as
|
|
7
|
-
import { I as we } from "./elevation-
|
|
8
|
-
import { t as nt, w as ot, j as oa, p as rt, r as it, P as st, c as ct, b as ut, m as dt, d as vt, V as ra, e as ft, a as mt, f as ht } from "./common-
|
|
9
|
-
import { r as bt, Q as gt, R as kt, S as pt, T as yt, U as St,
|
|
10
|
-
import { V as Ct } from "./VHover-
|
|
11
|
-
import { g as
|
|
12
|
-
import { V as qt } from "./VMenu-
|
|
13
|
-
import { V as Xt, a as Yt } from "./VListItem-
|
|
14
|
-
import { V as da, m as Qt } from "./VPicker-
|
|
15
|
-
import { V as Jt } from "./display-
|
|
4
|
+
import { u as Ga } from "./field_composer-ugYyDQNY.mjs";
|
|
5
|
+
import { d as qa, x as Xa, t as la, a as na } from "./utils-D3ZGaTyv.mjs";
|
|
6
|
+
import { createVNode as I, mergeProps as Me, createElementVNode as v, withDirectives as Oe, vShow as ha, shallowRef as Ve, ref as O, computed as u, watch as Ee, onMounted as Ya, normalizeStyle as q, normalizeClass as D, normalizeProps as Qa, guardReactiveProps as Ja, toRef as ae, provide as Za, nextTick as et, inject as ba, Fragment as ga, onUnmounted as at, onBeforeMount as tt, h as o, defineComponent as lt, toRefs as te } from "vue";
|
|
7
|
+
import { I as we } from "./elevation-YNOj0hSa.mjs";
|
|
8
|
+
import { t as nt, w as ot, j as oa, p as rt, r as it, P as st, c as ct, b as ut, m as dt, d as vt, V as ra, e as ft, a as mt, f as ht } from "./common-Bi5RUD-n.mjs";
|
|
9
|
+
import { r as bt, Q as gt, R as kt, S as pt, T as yt, U as St, d as $e, V as ia } from "./mdi-DC1jeTJJ.mjs";
|
|
10
|
+
import { V as Ct } from "./VHover-DvUhdfsL.mjs";
|
|
11
|
+
import { g as De, p as X, h as Be, n as ka, N as Ge, ar as pa, aF as wt, l as Vt, j as xt, o as le, aG as Pt, aw as It, a as M, x as _t, aH as Ft, q as Rt, r as Et, s as ya, v as Mt, y as me, M as Sa, aI as xe, O as ve, av as $, ag as Bt, aJ as Dt, aK as Tt, aL as Ca, aM as Nt, aN as Ae, aO as Te, aP as Ke, aQ as Re, V as de, aR as sa, A as Ne, aE as Lt, w as zt, a2 as ca, k as Ht, aS as Ot, _ as $t, u as je, aT as ua, aU as wa, aV as qe, aW as At, ak as Kt, aX as jt, ac as Ut, al as Wt, ax as Gt } from "./display-fXo4JeIS.mjs";
|
|
12
|
+
import { V as qt } from "./VMenu-Bk2NN8qb.mjs";
|
|
13
|
+
import { V as Xt, a as Yt } from "./VListItem-BT-NXJyi.mjs";
|
|
14
|
+
import { V as da, m as Qt } from "./VPicker-DmY6CdER.mjs";
|
|
15
|
+
import { V as Jt } from "./display-dv4cOwRN.mjs";
|
|
16
16
|
const Zt = X({
|
|
17
17
|
bordered: Boolean,
|
|
18
18
|
color: String,
|
|
@@ -34,7 +34,7 @@ const Zt = X({
|
|
|
34
34
|
offsetY: [Number, String],
|
|
35
35
|
textColor: String,
|
|
36
36
|
...me(),
|
|
37
|
-
...
|
|
37
|
+
...Mt({
|
|
38
38
|
location: "top end"
|
|
39
39
|
}),
|
|
40
40
|
...ya(),
|
|
@@ -44,7 +44,7 @@ const Zt = X({
|
|
|
44
44
|
transition: "scale-rotate-transition"
|
|
45
45
|
}),
|
|
46
46
|
..._t()
|
|
47
|
-
}, "VBadge"), va =
|
|
47
|
+
}, "VBadge"), va = De()({
|
|
48
48
|
name: "VBadge",
|
|
49
49
|
inheritAttrs: !1,
|
|
50
50
|
props: Zt(),
|
|
@@ -52,7 +52,7 @@ const Zt = X({
|
|
|
52
52
|
const {
|
|
53
53
|
backgroundColorClasses: t,
|
|
54
54
|
backgroundColorStyles: r
|
|
55
|
-
} =
|
|
55
|
+
} = Be(() => e.color), {
|
|
56
56
|
roundedClasses: n
|
|
57
57
|
} = ka(e), {
|
|
58
58
|
t: s
|
|
@@ -68,7 +68,7 @@ const Zt = X({
|
|
|
68
68
|
} = xt(e);
|
|
69
69
|
return le(() => {
|
|
70
70
|
const b = Number(e.content), g = !e.max || isNaN(b) ? e.content : b <= Number(e.max) ? b : `${e.max}+`, [w, C] = Pt(a.attrs, ["aria-atomic", "aria-label", "aria-live", "role", "title"]);
|
|
71
|
-
return I(e.tag,
|
|
71
|
+
return I(e.tag, Me({
|
|
72
72
|
class: ["v-badge", {
|
|
73
73
|
"v-badge--bordered": e.bordered,
|
|
74
74
|
"v-badge--dot": e.dot,
|
|
@@ -83,14 +83,14 @@ const Zt = X({
|
|
|
83
83
|
}, [a.slots.default?.(), I(It, {
|
|
84
84
|
transition: e.transition
|
|
85
85
|
}, {
|
|
86
|
-
default: () => [Oe(v("span",
|
|
86
|
+
default: () => [Oe(v("span", Me({
|
|
87
87
|
class: ["v-badge__badge", d.value, t.value, n.value, l.value],
|
|
88
88
|
style: [r.value, i.value, m.value, e.inline ? {} : k.value],
|
|
89
89
|
"aria-atomic": "true",
|
|
90
90
|
"aria-label": s(e.label, b),
|
|
91
91
|
"aria-live": "polite",
|
|
92
92
|
role: "status"
|
|
93
|
-
}, w), [e.dot ? void 0 : a.slots.badge ? a.slots.badge?.() : e.icon ? I(
|
|
93
|
+
}, w), [e.dot ? void 0 : a.slots.badge ? a.slots.badge?.() : e.icon ? I(M, {
|
|
94
94
|
icon: e.icon
|
|
95
95
|
}, null) : g]), [[ha, e.modelValue]])]
|
|
96
96
|
})])]
|
|
@@ -156,7 +156,7 @@ const Zt = X({
|
|
|
156
156
|
};
|
|
157
157
|
}), {
|
|
158
158
|
resizeRef: m
|
|
159
|
-
} =
|
|
159
|
+
} = Bt((f) => {
|
|
160
160
|
if (!m.el?.offsetParent) return;
|
|
161
161
|
const {
|
|
162
162
|
width: h,
|
|
@@ -167,13 +167,13 @@ const Zt = X({
|
|
|
167
167
|
function b(f, h, p) {
|
|
168
168
|
const {
|
|
169
169
|
left: x,
|
|
170
|
-
top:
|
|
171
|
-
width:
|
|
172
|
-
height:
|
|
170
|
+
top: N,
|
|
171
|
+
width: B,
|
|
172
|
+
height: L
|
|
173
173
|
} = p;
|
|
174
174
|
d.value = {
|
|
175
|
-
x: ve(f - x, 0,
|
|
176
|
-
y: ve(h -
|
|
175
|
+
x: ve(f - x, 0, B),
|
|
176
|
+
y: ve(h - N, 0, L)
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
179
|
function g(f) {
|
|
@@ -182,13 +182,13 @@ const Zt = X({
|
|
|
182
182
|
function w(f) {
|
|
183
183
|
if (e.disabled || !n.value) return;
|
|
184
184
|
r.value = !0;
|
|
185
|
-
const h =
|
|
185
|
+
const h = Dt(f);
|
|
186
186
|
b(h.clientX, h.clientY, n.value.getBoundingClientRect());
|
|
187
187
|
}
|
|
188
188
|
function C() {
|
|
189
189
|
window.removeEventListener("mousemove", w), window.removeEventListener("mouseup", C), window.removeEventListener("touchmove", w), window.removeEventListener("touchend", C);
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function T() {
|
|
192
192
|
if (!n.value) return;
|
|
193
193
|
const f = n.value, h = f.getContext("2d");
|
|
194
194
|
if (!h) return;
|
|
@@ -197,10 +197,10 @@ const Zt = X({
|
|
|
197
197
|
const x = h.createLinearGradient(0, 0, 0, f.height);
|
|
198
198
|
x.addColorStop(0, "hsla(0, 0%, 0%, 0)"), x.addColorStop(1, "hsla(0, 0%, 0%, 1)"), h.fillStyle = x, h.fillRect(0, 0, f.width, f.height);
|
|
199
199
|
}
|
|
200
|
-
return Ee(() => e.color?.h,
|
|
200
|
+
return Ee(() => e.color?.h, T, {
|
|
201
201
|
immediate: !0
|
|
202
202
|
}), Ee(() => [s.value, l.value], (f, h) => {
|
|
203
|
-
|
|
203
|
+
T(), i.value = {
|
|
204
204
|
x: d.value.x * f[0] / h[0],
|
|
205
205
|
y: d.value.y * f[1] / h[1]
|
|
206
206
|
};
|
|
@@ -221,9 +221,9 @@ const Zt = X({
|
|
|
221
221
|
}, {
|
|
222
222
|
deep: !0,
|
|
223
223
|
immediate: !0
|
|
224
|
-
}), Ya(() =>
|
|
224
|
+
}), Ya(() => T()), le(() => v("div", {
|
|
225
225
|
ref: m,
|
|
226
|
-
class:
|
|
226
|
+
class: D(["v-color-picker-canvas", e.class]),
|
|
227
227
|
style: q(e.style),
|
|
228
228
|
onMousedown: g,
|
|
229
229
|
onTouchstartPassive: g
|
|
@@ -232,7 +232,7 @@ const Zt = X({
|
|
|
232
232
|
width: s.value,
|
|
233
233
|
height: l.value
|
|
234
234
|
}, null), e.color && v("div", {
|
|
235
|
-
class:
|
|
235
|
+
class: D(["v-color-picker-canvas__dot", {
|
|
236
236
|
"v-color-picker-canvas__dot--disabled": e.disabled
|
|
237
237
|
}]),
|
|
238
238
|
style: q(k.value)
|
|
@@ -283,7 +283,7 @@ const ye = {
|
|
|
283
283
|
s: 0,
|
|
284
284
|
v: 0,
|
|
285
285
|
a: 1
|
|
286
|
-
},
|
|
286
|
+
}, Ue = {
|
|
287
287
|
inputProps: {
|
|
288
288
|
type: "number",
|
|
289
289
|
min: 0
|
|
@@ -335,10 +335,10 @@ const ye = {
|
|
|
335
335
|
localeKey: "alphaInput"
|
|
336
336
|
}],
|
|
337
337
|
to: Ke,
|
|
338
|
-
from:
|
|
338
|
+
from: Te
|
|
339
339
|
}, nl = {
|
|
340
|
-
...
|
|
341
|
-
inputs:
|
|
340
|
+
...Ue,
|
|
341
|
+
inputs: Ue.inputs?.slice(0, 3)
|
|
342
342
|
}, We = {
|
|
343
343
|
inputProps: {
|
|
344
344
|
type: "number",
|
|
@@ -391,7 +391,7 @@ const ye = {
|
|
|
391
391
|
localeKey: "alphaInput"
|
|
392
392
|
}],
|
|
393
393
|
to: Ae,
|
|
394
|
-
from:
|
|
394
|
+
from: Nt
|
|
395
395
|
}, ol = {
|
|
396
396
|
...We,
|
|
397
397
|
inputs: We.inputs.slice(0, 3)
|
|
@@ -406,7 +406,7 @@ const ye = {
|
|
|
406
406
|
localeKey: "hexaInput"
|
|
407
407
|
}],
|
|
408
408
|
to: Ca,
|
|
409
|
-
from:
|
|
409
|
+
from: Tt
|
|
410
410
|
}, rl = {
|
|
411
411
|
...Va,
|
|
412
412
|
inputs: [{
|
|
@@ -417,7 +417,7 @@ const ye = {
|
|
|
417
417
|
}]
|
|
418
418
|
}, fe = {
|
|
419
419
|
rgb: nl,
|
|
420
|
-
rgba:
|
|
420
|
+
rgba: Ue,
|
|
421
421
|
hsl: ol,
|
|
422
422
|
hsla: We,
|
|
423
423
|
hex: rl,
|
|
@@ -485,7 +485,7 @@ const ye = {
|
|
|
485
485
|
});
|
|
486
486
|
});
|
|
487
487
|
return le(() => v("div", {
|
|
488
|
-
class:
|
|
488
|
+
class: D(["v-color-picker-edit", e.class]),
|
|
489
489
|
style: q(e.style)
|
|
490
490
|
}, [s.value?.map((l) => I(il, l, null)), n.value.length > 1 && I(de, {
|
|
491
491
|
icon: "$unfold",
|
|
@@ -598,21 +598,21 @@ const vl = X({
|
|
|
598
598
|
} = e;
|
|
599
599
|
const i = nt(a), {
|
|
600
600
|
isRtl: d
|
|
601
|
-
} =
|
|
601
|
+
} = Ne(), k = ae(() => a.reverse), m = u(() => a.direction === "vertical"), b = u(() => m.value !== k.value), {
|
|
602
602
|
min: g,
|
|
603
603
|
max: w,
|
|
604
604
|
step: C,
|
|
605
|
-
decimals:
|
|
605
|
+
decimals: T,
|
|
606
606
|
roundValue: f
|
|
607
|
-
} = t, h = u(() => parseInt(a.thumbSize, 10)), p = u(() => parseInt(a.tickSize, 10)), x = u(() => parseInt(a.trackSize, 10)),
|
|
607
|
+
} = t, h = u(() => parseInt(a.thumbSize, 10)), p = u(() => parseInt(a.tickSize, 10)), x = u(() => parseInt(a.trackSize, 10)), N = u(() => (w.value - g.value) / C.value), B = u(() => a.error || i.isDisabled.value ? void 0 : a.thumbColor ?? a.color), L = u(() => a.error || i.isDisabled.value ? void 0 : a.thumbColor), j = u(() => a.error || i.isDisabled.value ? void 0 : a.trackColor ?? a.color), U = u(() => a.error || i.isDisabled.value ? void 0 : a.trackFillColor ?? a.color), P = Ve(!1), _ = Ve(0), R = O(), S = O();
|
|
608
608
|
function z(c) {
|
|
609
609
|
const y = R.value?.$el;
|
|
610
610
|
if (!y) return;
|
|
611
611
|
const W = a.direction === "vertical", be = W ? "top" : "left", ue = W ? "height" : "width", Pe = W ? "clientY" : "clientX", {
|
|
612
612
|
[be]: Ie,
|
|
613
613
|
[ue]: ee
|
|
614
|
-
} = y.getBoundingClientRect(),
|
|
615
|
-
let ge = ve((
|
|
614
|
+
} = y.getBoundingClientRect(), Le = dl(c, Pe);
|
|
615
|
+
let ge = ve((Le - Ie - _.value) / ee) || 0;
|
|
616
616
|
return (W ? b.value : b.value !== d.value) && (ge = 1 - ge), f(g.value + ge * (w.value - g.value));
|
|
617
617
|
}
|
|
618
618
|
const A = (c) => {
|
|
@@ -664,7 +664,7 @@ const vl = X({
|
|
|
664
664
|
value: parseFloat(c),
|
|
665
665
|
position: oe(parseFloat(c)),
|
|
666
666
|
label: a.ticks[c]
|
|
667
|
-
})) :
|
|
667
|
+
})) : N.value !== 1 / 0 ? Lt(N.value + 1).map((c) => {
|
|
668
668
|
const y = g.value + c * C.value;
|
|
669
669
|
return {
|
|
670
670
|
value: y,
|
|
@@ -678,7 +678,7 @@ const vl = X({
|
|
|
678
678
|
})), F = {
|
|
679
679
|
activeThumbRef: S,
|
|
680
680
|
color: ae(() => a.color),
|
|
681
|
-
decimals:
|
|
681
|
+
decimals: T,
|
|
682
682
|
disabled: i.isDisabled,
|
|
683
683
|
direction: ae(() => a.direction),
|
|
684
684
|
elevation: ae(() => a.elevation),
|
|
@@ -689,7 +689,7 @@ const vl = X({
|
|
|
689
689
|
max: w,
|
|
690
690
|
mousePressed: P,
|
|
691
691
|
noKeyboard: ae(() => a.noKeyboard),
|
|
692
|
-
numTicks:
|
|
692
|
+
numTicks: N,
|
|
693
693
|
onSliderMousedown: Z,
|
|
694
694
|
onSliderTouchstart: J,
|
|
695
695
|
parsedTicks: he,
|
|
@@ -702,14 +702,14 @@ const vl = X({
|
|
|
702
702
|
startOffset: _,
|
|
703
703
|
step: C,
|
|
704
704
|
thumbSize: h,
|
|
705
|
-
thumbColor:
|
|
706
|
-
thumbLabelColor:
|
|
705
|
+
thumbColor: B,
|
|
706
|
+
thumbLabelColor: L,
|
|
707
707
|
thumbLabel: ae(() => a.thumbLabel),
|
|
708
708
|
ticks: ae(() => a.ticks),
|
|
709
709
|
tickSize: p,
|
|
710
|
-
trackColor:
|
|
710
|
+
trackColor: j,
|
|
711
711
|
trackContainerRef: R,
|
|
712
|
-
trackFillColor:
|
|
712
|
+
trackFillColor: U,
|
|
713
713
|
trackSize: x,
|
|
714
714
|
vertical: m
|
|
715
715
|
};
|
|
@@ -739,7 +739,7 @@ const vl = X({
|
|
|
739
739
|
name: String,
|
|
740
740
|
noKeyboard: Boolean,
|
|
741
741
|
...me()
|
|
742
|
-
}, "VSliderThumb"), bl =
|
|
742
|
+
}, "VSliderThumb"), bl = De()({
|
|
743
743
|
name: "VSliderThumb",
|
|
744
744
|
directives: {
|
|
745
745
|
vRipple: ca
|
|
@@ -756,7 +756,7 @@ const vl = X({
|
|
|
756
756
|
const n = ba(Xe), {
|
|
757
757
|
isRtl: s,
|
|
758
758
|
rtlClasses: l
|
|
759
|
-
} =
|
|
759
|
+
} = Ne();
|
|
760
760
|
if (!n) throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");
|
|
761
761
|
const {
|
|
762
762
|
min: i,
|
|
@@ -767,23 +767,23 @@ const vl = X({
|
|
|
767
767
|
disabled: g,
|
|
768
768
|
thumbSize: w,
|
|
769
769
|
thumbLabel: C,
|
|
770
|
-
direction:
|
|
770
|
+
direction: T,
|
|
771
771
|
isReversed: f,
|
|
772
772
|
vertical: h,
|
|
773
773
|
readonly: p,
|
|
774
774
|
elevation: x,
|
|
775
|
-
mousePressed:
|
|
776
|
-
decimals:
|
|
777
|
-
indexFromEnd:
|
|
778
|
-
} = n,
|
|
779
|
-
elevationClasses:
|
|
780
|
-
} = Ht(
|
|
775
|
+
mousePressed: N,
|
|
776
|
+
decimals: B,
|
|
777
|
+
indexFromEnd: L
|
|
778
|
+
} = n, j = u(() => g.value ? void 0 : x.value), {
|
|
779
|
+
elevationClasses: U
|
|
780
|
+
} = Ht(j), {
|
|
781
781
|
textColorClasses: P,
|
|
782
782
|
textColorStyles: _
|
|
783
783
|
} = pa(k), {
|
|
784
784
|
backgroundColorClasses: R,
|
|
785
785
|
backgroundColorStyles: S
|
|
786
|
-
} =
|
|
786
|
+
} = Be(m), {
|
|
787
787
|
pageup: z,
|
|
788
788
|
pagedown: A,
|
|
789
789
|
end: se,
|
|
@@ -798,7 +798,7 @@ const vl = X({
|
|
|
798
798
|
E.preventDefault();
|
|
799
799
|
const c = b.value || 0.1, y = (d.value - i.value) / c;
|
|
800
800
|
if ([K, Q, ne, J].includes(E.key)) {
|
|
801
|
-
const be = (h.value ? [s.value ? K : Q, f.value ? ne : J] :
|
|
801
|
+
const be = (h.value ? [s.value ? K : Q, f.value ? ne : J] : L.value !== s.value ? [K, J] : [Q, J]).includes(E.key) ? 1 : -1, ue = E.shiftKey ? 2 : E.ctrlKey ? 1 : 0;
|
|
802
802
|
be === -1 && F === d.value && !ue && !Number.isInteger(y) ? F = F - y % 1 * c : F = F + be * c * oe.value[ue];
|
|
803
803
|
} else if (E.key === Y)
|
|
804
804
|
F = i.value;
|
|
@@ -815,11 +815,11 @@ const vl = X({
|
|
|
815
815
|
F != null && r("update:modelValue", F);
|
|
816
816
|
}
|
|
817
817
|
return le(() => {
|
|
818
|
-
const E = $(
|
|
818
|
+
const E = $(L.value ? 100 - e.position : e.position, "%");
|
|
819
819
|
return v("div", {
|
|
820
|
-
class:
|
|
820
|
+
class: D(["v-slider-thumb", {
|
|
821
821
|
"v-slider-thumb--focused": e.focused,
|
|
822
|
-
"v-slider-thumb--pressed": e.focused &&
|
|
822
|
+
"v-slider-thumb--pressed": e.focused && N.value
|
|
823
823
|
}, e.class, l.value]),
|
|
824
824
|
style: q([{
|
|
825
825
|
"--v-slider-thumb-position": E,
|
|
@@ -832,13 +832,13 @@ const vl = X({
|
|
|
832
832
|
"aria-valuemax": d.value,
|
|
833
833
|
"aria-valuenow": e.modelValue,
|
|
834
834
|
"aria-readonly": !!p.value,
|
|
835
|
-
"aria-orientation":
|
|
835
|
+
"aria-orientation": T.value,
|
|
836
836
|
onKeydown: p.value ? void 0 : he
|
|
837
837
|
}, [v("div", {
|
|
838
|
-
class:
|
|
838
|
+
class: D(["v-slider-thumb__surface", P.value, U.value]),
|
|
839
839
|
style: q(_.value)
|
|
840
840
|
}, null), Oe(v("div", {
|
|
841
|
-
class:
|
|
841
|
+
class: D(["v-slider-thumb__ripple", P.value]),
|
|
842
842
|
style: q(_.value)
|
|
843
843
|
}, null), [[ca, e.ripple, null, {
|
|
844
844
|
circle: !0,
|
|
@@ -849,11 +849,11 @@ const vl = X({
|
|
|
849
849
|
default: () => [Oe(v("div", {
|
|
850
850
|
class: "v-slider-thumb__label-container"
|
|
851
851
|
}, [v("div", {
|
|
852
|
-
class:
|
|
852
|
+
class: D(["v-slider-thumb__label", R.value]),
|
|
853
853
|
style: q(S.value)
|
|
854
854
|
}, [v("div", null, [t["thumb-label"]?.({
|
|
855
855
|
modelValue: e.modelValue
|
|
856
|
-
}) ?? e.modelValue.toFixed(b.value ?
|
|
856
|
+
}) ?? e.modelValue.toFixed(b.value ? B.value : 1)]), v("div", {
|
|
857
857
|
class: "v-slider-thumb__label-wedge"
|
|
858
858
|
}, null)])]), [[ha, C.value && e.focused || C.value === "always"]])]
|
|
859
859
|
})]);
|
|
@@ -869,7 +869,7 @@ const vl = X({
|
|
|
869
869
|
required: !0
|
|
870
870
|
},
|
|
871
871
|
...me()
|
|
872
|
-
}, "VSliderTrack"), kl =
|
|
872
|
+
}, "VSliderTrack"), kl = De()({
|
|
873
873
|
name: "VSliderTrack",
|
|
874
874
|
props: gl(),
|
|
875
875
|
emits: {},
|
|
@@ -891,32 +891,32 @@ const vl = X({
|
|
|
891
891
|
vertical: g,
|
|
892
892
|
min: w,
|
|
893
893
|
max: C,
|
|
894
|
-
indexFromEnd:
|
|
894
|
+
indexFromEnd: T
|
|
895
895
|
} = r, {
|
|
896
896
|
roundedClasses: f
|
|
897
897
|
} = ka(l), {
|
|
898
898
|
backgroundColorClasses: h,
|
|
899
899
|
backgroundColorStyles: p
|
|
900
|
-
} =
|
|
900
|
+
} = Be(m), {
|
|
901
901
|
backgroundColorClasses: x,
|
|
902
|
-
backgroundColorStyles:
|
|
903
|
-
} =
|
|
904
|
-
[
|
|
905
|
-
[
|
|
906
|
-
})),
|
|
907
|
-
[
|
|
908
|
-
[
|
|
902
|
+
backgroundColorStyles: N
|
|
903
|
+
} = Be(k), B = u(() => `inset-${g.value ? "block" : "inline"}-${T.value ? "end" : "start"}`), L = u(() => g.value ? "height" : "width"), j = u(() => ({
|
|
904
|
+
[B.value]: "0%",
|
|
905
|
+
[L.value]: "100%"
|
|
906
|
+
})), U = u(() => e.stop - e.start), P = u(() => ({
|
|
907
|
+
[B.value]: $(e.start, "%"),
|
|
908
|
+
[L.value]: $(U.value, "%")
|
|
909
909
|
})), _ = u(() => i.value ? (g.value ? s.value.slice().reverse() : s.value).map((S, z) => {
|
|
910
910
|
const A = S.value !== w.value && S.value !== C.value ? $(S.position, "%") : void 0;
|
|
911
911
|
return v("div", {
|
|
912
912
|
key: S.value,
|
|
913
|
-
class:
|
|
913
|
+
class: D(["v-slider-track__tick", {
|
|
914
914
|
"v-slider-track__tick--filled": S.position >= e.start && S.position <= e.stop,
|
|
915
915
|
"v-slider-track__tick--first": S.value === w.value,
|
|
916
916
|
"v-slider-track__tick--last": S.value === C.value
|
|
917
917
|
}]),
|
|
918
918
|
style: {
|
|
919
|
-
[
|
|
919
|
+
[B.value]: A
|
|
920
920
|
}
|
|
921
921
|
}, [(S.label || t["tick-label"]) && v("div", {
|
|
922
922
|
class: "v-slider-track__tick-label"
|
|
@@ -926,27 +926,27 @@ const vl = X({
|
|
|
926
926
|
}) ?? S.label])]);
|
|
927
927
|
}) : []);
|
|
928
928
|
return le(() => v("div", {
|
|
929
|
-
class:
|
|
929
|
+
class: D(["v-slider-track", f.value, e.class]),
|
|
930
930
|
style: q([{
|
|
931
931
|
"--v-slider-track-size": $(b.value),
|
|
932
932
|
"--v-slider-tick-size": $(d.value)
|
|
933
933
|
}, e.style])
|
|
934
934
|
}, [v("div", {
|
|
935
|
-
class:
|
|
935
|
+
class: D(["v-slider-track__background", x.value, {
|
|
936
936
|
"v-slider-track__background--opacity": !!n.value || !m.value
|
|
937
937
|
}]),
|
|
938
938
|
style: {
|
|
939
|
-
...
|
|
940
|
-
...
|
|
939
|
+
...j.value,
|
|
940
|
+
...N.value
|
|
941
941
|
}
|
|
942
942
|
}, null), v("div", {
|
|
943
|
-
class:
|
|
943
|
+
class: D(["v-slider-track__fill", h.value]),
|
|
944
944
|
style: {
|
|
945
945
|
...P.value,
|
|
946
946
|
...p.value
|
|
947
947
|
}
|
|
948
948
|
}, null), i.value && v("div", {
|
|
949
|
-
class:
|
|
949
|
+
class: D(["v-slider-track__ticks", {
|
|
950
950
|
"v-slider-track__ticks--always-show": i.value === "always"
|
|
951
951
|
}])
|
|
952
952
|
}, [_.value])])), {};
|
|
@@ -959,7 +959,7 @@ const vl = X({
|
|
|
959
959
|
type: [Number, String],
|
|
960
960
|
default: 0
|
|
961
961
|
}
|
|
962
|
-
}, "VSlider"), fa =
|
|
962
|
+
}, "VSlider"), fa = De()({
|
|
963
963
|
name: "VSlider",
|
|
964
964
|
props: pl(),
|
|
965
965
|
emits: {
|
|
@@ -975,19 +975,19 @@ const vl = X({
|
|
|
975
975
|
} = a;
|
|
976
976
|
const n = O(), s = O(), {
|
|
977
977
|
rtlClasses: l
|
|
978
|
-
} =
|
|
978
|
+
} = Ne(), i = fl(e), d = je(e, "modelValue", void 0, (P) => i.roundValue(P ?? i.min.value)), {
|
|
979
979
|
min: k,
|
|
980
980
|
max: m,
|
|
981
981
|
mousePressed: b,
|
|
982
982
|
roundValue: g,
|
|
983
983
|
onSliderMousedown: w,
|
|
984
984
|
onSliderTouchstart: C,
|
|
985
|
-
trackContainerRef:
|
|
985
|
+
trackContainerRef: T,
|
|
986
986
|
position: f,
|
|
987
987
|
hasLabels: h,
|
|
988
988
|
disabled: p,
|
|
989
989
|
readonly: x,
|
|
990
|
-
noKeyboard:
|
|
990
|
+
noKeyboard: N
|
|
991
991
|
} = ml({
|
|
992
992
|
props: e,
|
|
993
993
|
steps: i,
|
|
@@ -1009,23 +1009,23 @@ const vl = X({
|
|
|
1009
1009
|
},
|
|
1010
1010
|
getActiveThumb: () => n.value?.$el
|
|
1011
1011
|
}), {
|
|
1012
|
-
isFocused:
|
|
1013
|
-
focus:
|
|
1014
|
-
blur:
|
|
1015
|
-
} = ot(e),
|
|
1012
|
+
isFocused: B,
|
|
1013
|
+
focus: L,
|
|
1014
|
+
blur: j
|
|
1015
|
+
} = ot(e), U = u(() => f(d.value));
|
|
1016
1016
|
return le(() => {
|
|
1017
1017
|
const P = oa.filterProps(e), _ = !!(e.label || t.label || t.prepend);
|
|
1018
|
-
return I(oa,
|
|
1018
|
+
return I(oa, Me({
|
|
1019
1019
|
ref: s,
|
|
1020
1020
|
class: ["v-slider", {
|
|
1021
1021
|
"v-slider--has-labels": !!t["tick-label"] || h.value,
|
|
1022
|
-
"v-slider--focused":
|
|
1022
|
+
"v-slider--focused": B.value,
|
|
1023
1023
|
"v-slider--pressed": b.value,
|
|
1024
1024
|
"v-slider--disabled": p.value
|
|
1025
1025
|
}, l.value, e.class],
|
|
1026
1026
|
style: e.style
|
|
1027
1027
|
}, P, {
|
|
1028
|
-
focused:
|
|
1028
|
+
focused: B.value
|
|
1029
1029
|
}), {
|
|
1030
1030
|
...t,
|
|
1031
1031
|
prepend: _ ? (R) => v(ga, null, [t.label?.(R) ?? (e.label ? I(rt, {
|
|
@@ -1050,24 +1050,24 @@ const vl = X({
|
|
|
1050
1050
|
tabindex: "-1",
|
|
1051
1051
|
value: d.value
|
|
1052
1052
|
}, null), I(kl, {
|
|
1053
|
-
ref:
|
|
1053
|
+
ref: T,
|
|
1054
1054
|
start: 0,
|
|
1055
|
-
stop:
|
|
1055
|
+
stop: U.value
|
|
1056
1056
|
}, {
|
|
1057
1057
|
"tick-label": t["tick-label"]
|
|
1058
1058
|
}), I(bl, {
|
|
1059
1059
|
ref: n,
|
|
1060
1060
|
"aria-describedby": z.value,
|
|
1061
|
-
focused:
|
|
1062
|
-
noKeyboard:
|
|
1061
|
+
focused: B.value,
|
|
1062
|
+
noKeyboard: N.value,
|
|
1063
1063
|
min: k.value,
|
|
1064
1064
|
max: m.value,
|
|
1065
1065
|
modelValue: d.value,
|
|
1066
1066
|
"onUpdate:modelValue": (A) => d.value = A,
|
|
1067
|
-
position:
|
|
1067
|
+
position: U.value,
|
|
1068
1068
|
elevation: e.elevation,
|
|
1069
|
-
onFocus:
|
|
1070
|
-
onBlur:
|
|
1069
|
+
onFocus: L,
|
|
1070
|
+
onBlur: j,
|
|
1071
1071
|
ripple: e.ripple,
|
|
1072
1072
|
name: e.name
|
|
1073
1073
|
}, {
|
|
@@ -1111,7 +1111,7 @@ const vl = X({
|
|
|
1111
1111
|
try {
|
|
1112
1112
|
const i = await l.open({
|
|
1113
1113
|
signal: n.signal
|
|
1114
|
-
}), d =
|
|
1114
|
+
}), d = Te(qe(i.sRGBHex));
|
|
1115
1115
|
t("update:color", {
|
|
1116
1116
|
...e.color ?? ye,
|
|
1117
1117
|
...d
|
|
@@ -1120,7 +1120,7 @@ const vl = X({
|
|
|
1120
1120
|
}
|
|
1121
1121
|
}
|
|
1122
1122
|
return le(() => v("div", {
|
|
1123
|
-
class:
|
|
1123
|
+
class: D(["v-color-picker-preview", {
|
|
1124
1124
|
"v-color-picker-preview--hide-alpha": e.hideAlpha
|
|
1125
1125
|
}, e.class]),
|
|
1126
1126
|
style: q(e.style)
|
|
@@ -1341,7 +1341,7 @@ const vl = X({
|
|
|
1341
1341
|
accent2: "#b2ff59",
|
|
1342
1342
|
accent3: "#76ff03",
|
|
1343
1343
|
accent4: "#64dd17"
|
|
1344
|
-
},
|
|
1344
|
+
}, Ml = {
|
|
1345
1345
|
base: "#cddc39",
|
|
1346
1346
|
lighten5: "#f9fbe7",
|
|
1347
1347
|
lighten4: "#f0f4c3",
|
|
@@ -1356,7 +1356,7 @@ const vl = X({
|
|
|
1356
1356
|
accent2: "#eeff41",
|
|
1357
1357
|
accent3: "#c6ff00",
|
|
1358
1358
|
accent4: "#aeea00"
|
|
1359
|
-
},
|
|
1359
|
+
}, Bl = {
|
|
1360
1360
|
base: "#ffeb3b",
|
|
1361
1361
|
lighten5: "#fffde7",
|
|
1362
1362
|
lighten4: "#fff9c4",
|
|
@@ -1371,7 +1371,7 @@ const vl = X({
|
|
|
1371
1371
|
accent2: "#ffff00",
|
|
1372
1372
|
accent3: "#ffea00",
|
|
1373
1373
|
accent4: "#ffd600"
|
|
1374
|
-
},
|
|
1374
|
+
}, Dl = {
|
|
1375
1375
|
base: "#ffc107",
|
|
1376
1376
|
lighten5: "#fff8e1",
|
|
1377
1377
|
lighten4: "#ffecb3",
|
|
@@ -1386,7 +1386,7 @@ const vl = X({
|
|
|
1386
1386
|
accent2: "#ffd740",
|
|
1387
1387
|
accent3: "#ffc400",
|
|
1388
1388
|
accent4: "#ffab00"
|
|
1389
|
-
},
|
|
1389
|
+
}, Tl = {
|
|
1390
1390
|
base: "#ff9800",
|
|
1391
1391
|
lighten5: "#fff3e0",
|
|
1392
1392
|
lighten4: "#ffe0b2",
|
|
@@ -1401,7 +1401,7 @@ const vl = X({
|
|
|
1401
1401
|
accent2: "#ffab40",
|
|
1402
1402
|
accent3: "#ff9100",
|
|
1403
1403
|
accent4: "#ff6d00"
|
|
1404
|
-
},
|
|
1404
|
+
}, Nl = {
|
|
1405
1405
|
base: "#ff5722",
|
|
1406
1406
|
lighten5: "#fbe9e7",
|
|
1407
1407
|
lighten4: "#ffccbc",
|
|
@@ -1416,7 +1416,7 @@ const vl = X({
|
|
|
1416
1416
|
accent2: "#ff6e40",
|
|
1417
1417
|
accent3: "#ff3d00",
|
|
1418
1418
|
accent4: "#dd2c00"
|
|
1419
|
-
},
|
|
1419
|
+
}, Ll = {
|
|
1420
1420
|
base: "#795548",
|
|
1421
1421
|
lighten5: "#efebe9",
|
|
1422
1422
|
lighten4: "#d7ccc8",
|
|
@@ -1465,12 +1465,12 @@ const vl = X({
|
|
|
1465
1465
|
teal: Fl,
|
|
1466
1466
|
green: Rl,
|
|
1467
1467
|
lightGreen: El,
|
|
1468
|
-
lime:
|
|
1469
|
-
yellow:
|
|
1470
|
-
amber:
|
|
1471
|
-
orange:
|
|
1472
|
-
deepOrange:
|
|
1473
|
-
brown:
|
|
1468
|
+
lime: Ml,
|
|
1469
|
+
yellow: Bl,
|
|
1470
|
+
amber: Dl,
|
|
1471
|
+
orange: Tl,
|
|
1472
|
+
deepOrange: Nl,
|
|
1473
|
+
brown: Ll,
|
|
1474
1474
|
blueGrey: zl,
|
|
1475
1475
|
grey: Hl,
|
|
1476
1476
|
shades: Ol
|
|
@@ -1490,7 +1490,7 @@ function Kl(e) {
|
|
|
1490
1490
|
return t.base ? [t.base, t.darken4, t.darken3, t.darken2, t.darken1, t.lighten1, t.lighten2, t.lighten3, t.lighten4, t.lighten5] : [t.black, t.white, t.transparent];
|
|
1491
1491
|
});
|
|
1492
1492
|
}
|
|
1493
|
-
const
|
|
1493
|
+
const jl = xe({
|
|
1494
1494
|
name: "VColorPickerSwatches",
|
|
1495
1495
|
props: Al(),
|
|
1496
1496
|
emits: {
|
|
@@ -1501,14 +1501,14 @@ const Ul = xe({
|
|
|
1501
1501
|
emit: t
|
|
1502
1502
|
} = a;
|
|
1503
1503
|
return le(() => v("div", {
|
|
1504
|
-
class:
|
|
1504
|
+
class: D(["v-color-picker-swatches", e.class]),
|
|
1505
1505
|
style: q([{
|
|
1506
1506
|
maxHeight: $(e.maxHeight)
|
|
1507
1507
|
}, e.style])
|
|
1508
1508
|
}, [v("div", null, [e.swatches.map((r) => v("div", {
|
|
1509
1509
|
class: "v-color-picker-swatches__swatch"
|
|
1510
1510
|
}, [r.map((n) => {
|
|
1511
|
-
const s = qe(n), l =
|
|
1511
|
+
const s = qe(n), l = Te(s), i = At(s);
|
|
1512
1512
|
return v("div", {
|
|
1513
1513
|
class: "v-color-picker-swatches__color",
|
|
1514
1514
|
onClick: () => l && t("update:color", l)
|
|
@@ -1516,14 +1516,14 @@ const Ul = xe({
|
|
|
1516
1516
|
style: {
|
|
1517
1517
|
background: i
|
|
1518
1518
|
}
|
|
1519
|
-
}, [e.color && Kt(e.color, l) ? I(
|
|
1519
|
+
}, [e.color && Kt(e.color, l) ? I(M, {
|
|
1520
1520
|
size: "x-small",
|
|
1521
1521
|
icon: "$success",
|
|
1522
|
-
color:
|
|
1522
|
+
color: jt(n, "#FFFFFF") > 2 ? "white" : "black"
|
|
1523
1523
|
}, null) : void 0])]);
|
|
1524
1524
|
})]))])])), {};
|
|
1525
1525
|
}
|
|
1526
|
-
}),
|
|
1526
|
+
}), Ul = X({
|
|
1527
1527
|
canvasHeight: {
|
|
1528
1528
|
type: [String, Number],
|
|
1529
1529
|
default: 150
|
|
@@ -1561,7 +1561,7 @@ const Ul = xe({
|
|
|
1561
1561
|
...Gt(xa(), ["hideEyeDropper", "eyeDropperIcon"])
|
|
1562
1562
|
}, "VColorPicker"), Wl = xe({
|
|
1563
1563
|
name: "VColorPicker",
|
|
1564
|
-
props:
|
|
1564
|
+
props: Ul(),
|
|
1565
1565
|
emits: {
|
|
1566
1566
|
"update:modelValue": (e) => !0,
|
|
1567
1567
|
"update:mode": (e) => !0
|
|
@@ -1570,13 +1570,13 @@ const Ul = xe({
|
|
|
1570
1570
|
let {
|
|
1571
1571
|
slots: t
|
|
1572
1572
|
} = a;
|
|
1573
|
-
const r =
|
|
1573
|
+
const r = je(e, "mode"), n = O(null), s = je(e, "modelValue", void 0, (m) => {
|
|
1574
1574
|
if (m == null || m === "") return null;
|
|
1575
1575
|
let b;
|
|
1576
1576
|
try {
|
|
1577
|
-
b =
|
|
1577
|
+
b = Te(qe(m));
|
|
1578
1578
|
} catch (g) {
|
|
1579
|
-
return
|
|
1579
|
+
return Ut(g), null;
|
|
1580
1580
|
}
|
|
1581
1581
|
return b;
|
|
1582
1582
|
}, (m) => m ? ll(m, e.modelValue) : null), l = u(() => s.value ? {
|
|
@@ -1584,7 +1584,7 @@ const Ul = xe({
|
|
|
1584
1584
|
h: n.value ?? s.value.h
|
|
1585
1585
|
} : null), {
|
|
1586
1586
|
rtlClasses: i
|
|
1587
|
-
} =
|
|
1587
|
+
} = Ne();
|
|
1588
1588
|
let d = !0;
|
|
1589
1589
|
Ee(s, (m) => {
|
|
1590
1590
|
if (!d) {
|
|
@@ -1608,7 +1608,7 @@ const Ul = xe({
|
|
|
1608
1608
|
}
|
|
1609
1609
|
}), le(() => {
|
|
1610
1610
|
const m = da.filterProps(e);
|
|
1611
|
-
return I(da,
|
|
1611
|
+
return I(da, Me(m, {
|
|
1612
1612
|
class: ["v-color-picker", i.value, e.class],
|
|
1613
1613
|
style: [{
|
|
1614
1614
|
"--v-color-picker-color-hsv": wa({
|
|
@@ -1645,7 +1645,7 @@ const Ul = xe({
|
|
|
1645
1645
|
color: l.value,
|
|
1646
1646
|
"onUpdate:color": k,
|
|
1647
1647
|
disabled: e.disabled
|
|
1648
|
-
}, null)]), e.showSwatches && I(
|
|
1648
|
+
}, null)]), e.showSwatches && I(jl, {
|
|
1649
1649
|
key: "swatches",
|
|
1650
1650
|
color: l.value,
|
|
1651
1651
|
"onUpdate:color": k,
|
|
@@ -1742,16 +1742,16 @@ const Ul = xe({
|
|
|
1742
1742
|
clearable: g,
|
|
1743
1743
|
clearIcon: w,
|
|
1744
1744
|
active: C,
|
|
1745
|
-
color:
|
|
1745
|
+
color: T,
|
|
1746
1746
|
baseColor: f,
|
|
1747
1747
|
dirty: h,
|
|
1748
1748
|
disabled: p,
|
|
1749
1749
|
glow: x,
|
|
1750
|
-
error:
|
|
1751
|
-
flat:
|
|
1752
|
-
iconColor:
|
|
1753
|
-
label:
|
|
1754
|
-
persistentClear:
|
|
1750
|
+
error: N,
|
|
1751
|
+
flat: B,
|
|
1752
|
+
iconColor: L,
|
|
1753
|
+
label: j,
|
|
1754
|
+
persistentClear: U,
|
|
1755
1755
|
reverse: P,
|
|
1756
1756
|
singleLine: _,
|
|
1757
1757
|
variant: R,
|
|
@@ -1778,7 +1778,7 @@ const Ul = xe({
|
|
|
1778
1778
|
suffix: Pe,
|
|
1779
1779
|
role: Ie,
|
|
1780
1780
|
format: ee,
|
|
1781
|
-
renderMode:
|
|
1781
|
+
renderMode: Le,
|
|
1782
1782
|
multiple: ge,
|
|
1783
1783
|
choices: Pa,
|
|
1784
1784
|
allowUnspecifiedChoices: Ia,
|
|
@@ -1792,10 +1792,10 @@ const Ul = xe({
|
|
|
1792
1792
|
passwordMaskIcon: G,
|
|
1793
1793
|
colorPickerIcon: Ra,
|
|
1794
1794
|
colorPickerModeIcon: Ea,
|
|
1795
|
-
onBlur:
|
|
1796
|
-
onChange:
|
|
1797
|
-
onInput:
|
|
1798
|
-
} = te(e),
|
|
1795
|
+
onBlur: Ma,
|
|
1796
|
+
onChange: Ba,
|
|
1797
|
+
onInput: Da
|
|
1798
|
+
} = te(e), Ta = u(() => {
|
|
1799
1799
|
if (ge.value) return Se.value;
|
|
1800
1800
|
switch (ee.value) {
|
|
1801
1801
|
case "email":
|
|
@@ -1807,16 +1807,16 @@ const Ul = xe({
|
|
|
1807
1807
|
default:
|
|
1808
1808
|
return Se.value;
|
|
1809
1809
|
}
|
|
1810
|
-
}),
|
|
1810
|
+
}), Na = {
|
|
1811
1811
|
style: m,
|
|
1812
|
-
label:
|
|
1812
|
+
label: j,
|
|
1813
1813
|
density: Z,
|
|
1814
|
-
renderMode:
|
|
1814
|
+
renderMode: Le,
|
|
1815
1815
|
multiple: ge,
|
|
1816
1816
|
choices: Pa,
|
|
1817
1817
|
allowUnspecifiedChoices: Ia,
|
|
1818
1818
|
to: _e.value ? O(void 0) : _a,
|
|
1819
|
-
href:
|
|
1819
|
+
href: Ta,
|
|
1820
1820
|
menuIcon: Fa,
|
|
1821
1821
|
active: C,
|
|
1822
1822
|
theme: s,
|
|
@@ -1836,7 +1836,7 @@ const Ul = xe({
|
|
|
1836
1836
|
"onClick:prepend": te(e)["onClick:prepend"],
|
|
1837
1837
|
"onMousedown:control": te(e)["onMousedown:control"],
|
|
1838
1838
|
"onClick:control": te(e)["onClick:control"]
|
|
1839
|
-
}, re = O(!1),
|
|
1839
|
+
}, re = O(!1), La = u(() => {
|
|
1840
1840
|
switch (ee.value) {
|
|
1841
1841
|
case "color":
|
|
1842
1842
|
return (V) => o("span", { class: ["d-inline-flex", "align-center"] }, [
|
|
@@ -1863,7 +1863,7 @@ const Ul = xe({
|
|
|
1863
1863
|
class: ["ms-2"],
|
|
1864
1864
|
...pe ? pe.props : {}
|
|
1865
1865
|
},
|
|
1866
|
-
() => o(
|
|
1866
|
+
() => o(M, {
|
|
1867
1867
|
icon: re.value ? Qe.value : Ye.value,
|
|
1868
1868
|
size: "small"
|
|
1869
1869
|
})
|
|
@@ -1874,52 +1874,52 @@ const Ul = xe({
|
|
|
1874
1874
|
"span",
|
|
1875
1875
|
{ class: ["d-flex", "align-center"] },
|
|
1876
1876
|
re.value ? [o("span", {}, ze), Ce] : [
|
|
1877
|
-
o(
|
|
1877
|
+
o(M, {
|
|
1878
1878
|
icon: G.value,
|
|
1879
1879
|
density: "compact",
|
|
1880
1880
|
class: ["px-0", "mx-0"]
|
|
1881
1881
|
}),
|
|
1882
|
-
o(
|
|
1882
|
+
o(M, {
|
|
1883
1883
|
icon: G.value,
|
|
1884
1884
|
density: "compact",
|
|
1885
1885
|
class: ["px-0", "mx-0"]
|
|
1886
1886
|
}),
|
|
1887
|
-
o(
|
|
1887
|
+
o(M, {
|
|
1888
1888
|
icon: G.value,
|
|
1889
1889
|
density: "compact",
|
|
1890
1890
|
class: ["px-0", "mx-0"]
|
|
1891
1891
|
}),
|
|
1892
|
-
o(
|
|
1892
|
+
o(M, {
|
|
1893
1893
|
icon: G.value,
|
|
1894
1894
|
density: "compact",
|
|
1895
1895
|
class: ["px-0", "mx-0"]
|
|
1896
1896
|
}),
|
|
1897
|
-
o(
|
|
1897
|
+
o(M, {
|
|
1898
1898
|
icon: G.value,
|
|
1899
1899
|
density: "compact",
|
|
1900
1900
|
class: ["px-0", "mx-0"]
|
|
1901
1901
|
}),
|
|
1902
|
-
o(
|
|
1902
|
+
o(M, {
|
|
1903
1903
|
icon: G.value,
|
|
1904
1904
|
density: "compact",
|
|
1905
1905
|
class: ["px-0", "mx-0"]
|
|
1906
1906
|
}),
|
|
1907
|
-
o(
|
|
1907
|
+
o(M, {
|
|
1908
1908
|
icon: G.value,
|
|
1909
1909
|
density: "compact",
|
|
1910
1910
|
class: ["px-0", "mx-0"]
|
|
1911
1911
|
}),
|
|
1912
|
-
o(
|
|
1912
|
+
o(M, {
|
|
1913
1913
|
icon: G.value,
|
|
1914
1914
|
density: "compact",
|
|
1915
1915
|
class: ["px-0", "mx-0"]
|
|
1916
1916
|
}),
|
|
1917
|
-
o(
|
|
1917
|
+
o(M, {
|
|
1918
1918
|
icon: G.value,
|
|
1919
1919
|
density: "compact",
|
|
1920
1920
|
class: ["px-0", "mx-0"]
|
|
1921
1921
|
}),
|
|
1922
|
-
o(
|
|
1922
|
+
o(M, {
|
|
1923
1923
|
icon: G.value,
|
|
1924
1924
|
density: "compact",
|
|
1925
1925
|
class: ["px-0", "mx-0"]
|
|
@@ -1943,16 +1943,16 @@ const Ul = xe({
|
|
|
1943
1943
|
clearable: g.value,
|
|
1944
1944
|
clearIcon: w.value,
|
|
1945
1945
|
active: C.value,
|
|
1946
|
-
color:
|
|
1946
|
+
color: T.value,
|
|
1947
1947
|
baseColor: f.value,
|
|
1948
1948
|
dirty: h.value,
|
|
1949
1949
|
disabled: p.value,
|
|
1950
1950
|
glow: x.value,
|
|
1951
|
-
error:
|
|
1952
|
-
flat:
|
|
1953
|
-
iconColor:
|
|
1954
|
-
label:
|
|
1955
|
-
persistentClear:
|
|
1951
|
+
error: N.value,
|
|
1952
|
+
flat: B.value,
|
|
1953
|
+
iconColor: L.value,
|
|
1954
|
+
label: j.value,
|
|
1955
|
+
persistentClear: U.value,
|
|
1956
1956
|
reverse: P.value,
|
|
1957
1957
|
singleLine: _.value,
|
|
1958
1958
|
variant: R.value,
|
|
@@ -1979,11 +1979,11 @@ const Ul = xe({
|
|
|
1979
1979
|
suffix: Pe.value,
|
|
1980
1980
|
role: Ie.value,
|
|
1981
1981
|
// @ts-ignore
|
|
1982
|
-
onBlur:
|
|
1982
|
+
onBlur: Ma.value,
|
|
1983
1983
|
// @ts-ignore
|
|
1984
|
-
onChange:
|
|
1984
|
+
onChange: Ba.value,
|
|
1985
1985
|
// @ts-ignore
|
|
1986
|
-
onInput:
|
|
1986
|
+
onInput: Da.value
|
|
1987
1987
|
})
|
|
1988
1988
|
), za = O(), ke = O(!1), Fe = O("hex"), Ha = u(() => ({
|
|
1989
1989
|
ref: za,
|
|
@@ -2016,7 +2016,7 @@ const Ul = xe({
|
|
|
2016
2016
|
re.value = !re.value;
|
|
2017
2017
|
}
|
|
2018
2018
|
},
|
|
2019
|
-
() => o(
|
|
2019
|
+
() => o(M, {
|
|
2020
2020
|
icon: re.value ? Qe.value : Ye.value
|
|
2021
2021
|
})
|
|
2022
2022
|
);
|
|
@@ -2024,7 +2024,7 @@ const Ul = xe({
|
|
|
2024
2024
|
return o(
|
|
2025
2025
|
de,
|
|
2026
2026
|
Ha.value,
|
|
2027
|
-
() => o(
|
|
2027
|
+
() => o(M, {
|
|
2028
2028
|
icon: Ra.value
|
|
2029
2029
|
})
|
|
2030
2030
|
);
|
|
@@ -2063,7 +2063,7 @@ const Ul = xe({
|
|
|
2063
2063
|
})
|
|
2064
2064
|
), Ka = u(
|
|
2065
2065
|
() => He(ea.value, {})
|
|
2066
|
-
),
|
|
2066
|
+
), ja = ({
|
|
2067
2067
|
props: V,
|
|
2068
2068
|
add: ze,
|
|
2069
2069
|
isMultiAdd: Ce
|
|
@@ -2107,7 +2107,7 @@ const Ul = xe({
|
|
|
2107
2107
|
variant: "text"
|
|
2108
2108
|
},
|
|
2109
2109
|
() => [
|
|
2110
|
-
o(
|
|
2110
|
+
o(M, {
|
|
2111
2111
|
icon: Ea.value,
|
|
2112
2112
|
class: ["me-2"]
|
|
2113
2113
|
}),
|
|
@@ -2145,7 +2145,7 @@ const Ul = xe({
|
|
|
2145
2145
|
}
|
|
2146
2146
|
},
|
|
2147
2147
|
() => [
|
|
2148
|
-
o(
|
|
2148
|
+
o(M, {
|
|
2149
2149
|
icon: () => o(ie, { d: $e })
|
|
2150
2150
|
})
|
|
2151
2151
|
]
|
|
@@ -2198,17 +2198,17 @@ const Ul = xe({
|
|
|
2198
2198
|
]
|
|
2199
2199
|
}
|
|
2200
2200
|
);
|
|
2201
|
-
}, { composed:
|
|
2202
|
-
La,
|
|
2201
|
+
}, { composed: Ua } = Ga(
|
|
2203
2202
|
Na,
|
|
2204
|
-
|
|
2203
|
+
La,
|
|
2204
|
+
ja,
|
|
2205
2205
|
a,
|
|
2206
2206
|
e["onUpdate:modelValue"],
|
|
2207
2207
|
e["onUpdate:model-value"],
|
|
2208
2208
|
n,
|
|
2209
2209
|
e.modelValue
|
|
2210
2210
|
);
|
|
2211
|
-
return
|
|
2211
|
+
return Ua;
|
|
2212
2212
|
}
|
|
2213
2213
|
});
|
|
2214
2214
|
export {
|
|
@@ -2217,4 +2217,4 @@ export {
|
|
|
2217
2217
|
fn as a,
|
|
2218
2218
|
Gl as b
|
|
2219
2219
|
};
|
|
2220
|
-
//# sourceMappingURL=string-
|
|
2220
|
+
//# sourceMappingURL=string-RfpfCwEn.mjs.map
|