@nhtio/lucid-resourceful-vue-components 0.1.0-master-e14740ea → 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-DhfYEt9V.mjs → VBtn-C4WCntKg.mjs} +8 -8
- package/{VBtn-DhfYEt9V.mjs.map → VBtn-C4WCntKg.mjs.map} +1 -1
- package/{VDatePicker-D0OTAyvJ.mjs → VDatePicker-DOCNk-HL.mjs} +166 -166
- package/{VDatePicker-D0OTAyvJ.mjs.map → VDatePicker-DOCNk-HL.mjs.map} +1 -1
- package/{VEmptyState-BFrXSTJ-.mjs → VEmptyState-CfouFZTg.mjs} +41 -41
- package/{VEmptyState-BFrXSTJ-.mjs.map → VEmptyState-CfouFZTg.mjs.map} +1 -1
- package/{VHover-DLvOmsjv.mjs → VHover-DvUhdfsL.mjs} +3 -3
- package/{VHover-DLvOmsjv.mjs.map → VHover-DvUhdfsL.mjs.map} +1 -1
- package/{VListItem-LNaoM8S4.mjs → VListItem-BT-NXJyi.mjs} +56 -56
- package/{VListItem-LNaoM8S4.mjs.map → VListItem-BT-NXJyi.mjs.map} +1 -1
- package/{VMenu-9rTbTKtH.mjs → VMenu-Bk2NN8qb.mjs} +28 -28
- package/{VMenu-9rTbTKtH.mjs.map → VMenu-Bk2NN8qb.mjs.map} +1 -1
- package/{VPicker-BGuRD0KW.mjs → VPicker-DmY6CdER.mjs} +5 -5
- package/{VPicker-BGuRD0KW.mjs.map → VPicker-DmY6CdER.mjs.map} +1 -1
- package/{VRadioGroup-Dx_wEqzl.mjs → VRadioGroup-BO7XdtLS.mjs} +21 -21
- package/{VRadioGroup-Dx_wEqzl.mjs.map → VRadioGroup-BO7XdtLS.mjs.map} +1 -1
- package/{VRow-DaLdbIGw.mjs → VRow-BhNJcY5-.mjs} +17 -17
- package/{VRow-DaLdbIGw.mjs.map → VRow-BhNJcY5-.mjs.map} +1 -1
- package/{VSheet-DnIfs-1c.mjs → VSheet-Bkr-m6FE.mjs} +14 -14
- package/{VSheet-DnIfs-1c.mjs.map → VSheet-Bkr-m6FE.mjs.map} +1 -1
- package/{actions-8bWGsB-p.mjs → actions-ORUmfJR5.mjs} +15 -15
- package/{actions-8bWGsB-p.mjs.map → actions-ORUmfJR5.mjs.map} +1 -1
- package/{alert-IW1AIWZw.mjs → alert-pFT7pWTZ.mjs} +97 -94
- package/alert-pFT7pWTZ.mjs.map +1 -0
- package/{bigint-Jmfa2L4S.mjs → bigint-CCM0aPaS.mjs} +6 -6
- package/{bigint-Jmfa2L4S.mjs.map → bigint-CCM0aPaS.mjs.map} +1 -1
- package/{boolean-BEY7eBxf.mjs → boolean-1-MOJPSu.mjs} +40 -40
- package/{boolean-BEY7eBxf.mjs.map → boolean-1-MOJPSu.mjs.map} +1 -1
- package/{clipboard-BoKd7mFG.mjs → clipboard-CdGABqm1.mjs} +51 -51
- package/{clipboard-BoKd7mFG.mjs.map → clipboard-CdGABqm1.mjs.map} +1 -1
- package/{colorUtils-DmtKYNgW.mjs → colorUtils-BdpqbLZS.mjs} +3 -3
- package/{colorUtils-DmtKYNgW.mjs.map → colorUtils-BdpqbLZS.mjs.map} +1 -1
- package/{common-BeDAn4wu.mjs → common-Bi5RUD-n.mjs} +8881 -8880
- package/common-Bi5RUD-n.mjs.map +1 -0
- package/{component-CjPpW_A2.mjs → component-DhEJuSE6.mjs} +2 -2
- package/{component-CjPpW_A2.mjs.map → component-DhEJuSE6.mjs.map} +1 -1
- package/components/autorefresh_controller.mjs +1 -1
- package/components/control_button.mjs +1 -1
- package/components/control_button_bar.mjs +2 -2
- package/components/control_menu.mjs +1 -1
- package/components/custom_field.mjs +1 -1
- package/components/exporter.mjs +1 -1
- package/components/fields/bigint.mjs +1 -1
- package/components/fields/boolean.mjs +1 -1
- package/components/fields/date.mjs +1 -1
- package/components/fields/date_time.mjs +1 -1
- package/components/fields/enum.mjs +1 -1
- package/components/fields/integer.mjs +1 -1
- package/components/fields/number.mjs +1 -1
- package/components/fields/string.mjs +1 -1
- package/components/fields/unsigned_integer.mjs +1 -1
- package/components/fields.mjs +9 -9
- package/components/form_with_validation.mjs +1 -1
- package/components/resourceful_alerter.mjs +1 -1
- package/components/resourceful_index.mjs +1 -1
- package/components/resourceful_record.mjs +2 -2
- package/components/resourceful_record_default_form.mjs +1 -1
- package/components/resourceful_record_form.mjs +1 -1
- package/components/sortable.mjs +1 -1
- package/components/svg_icon.mjs +1 -1
- package/components/timezone_picker.mjs +1 -1
- package/components.mjs +23 -23
- package/composables.mjs +8 -8
- package/{console-CRXioSFP.mjs → console-Dgoi3FwV.mjs} +2 -2
- package/{console-CRXioSFP.mjs.map → console-Dgoi3FwV.mjs.map} +1 -1
- package/{custom-Y1WJVKP9.mjs → custom-DQmbYYPh.mjs} +17 -17
- package/{custom-Y1WJVKP9.mjs.map → custom-DQmbYYPh.mjs.map} +1 -1
- package/{date-BxEeCNWD.mjs → date-E_8RP3gK.mjs} +21 -21
- package/{date-BxEeCNWD.mjs.map → date-E_8RP3gK.mjs.map} +1 -1
- package/{date_time-6kpv7eDF.mjs → date_time-BmYl2TFi.mjs} +300 -300
- package/{date_time-6kpv7eDF.mjs.map → date_time-BmYl2TFi.mjs.map} +1 -1
- package/{display-kAyhIPBH.mjs → display-B089h_sz.mjs} +30 -28
- package/display-B089h_sz.mjs.map +1 -0
- package/{display-CO0pTIEs.mjs → display-dv4cOwRN.mjs} +42 -42
- package/{display-CO0pTIEs.mjs.map → display-dv4cOwRN.mjs.map} +1 -1
- package/{display-DvzWa1QO.mjs → display-fXo4JeIS.mjs} +41 -41
- package/{display-DvzWa1QO.mjs.map → display-fXo4JeIS.mjs.map} +1 -1
- package/{elevation-CMzO50xm.mjs → elevation-YNOj0hSa.mjs} +82 -82
- package/{elevation-CMzO50xm.mjs.map → elevation-YNOj0hSa.mjs.map} +1 -1
- package/{enum-noYU2Cqh.mjs → enum-8itqseZa.mjs} +22 -22
- package/{enum-noYU2Cqh.mjs.map → enum-8itqseZa.mjs.map} +1 -1
- package/factories.mjs +1 -1
- package/{field_composer-DpJx0Oz1.mjs → field_composer-ugYyDQNY.mjs} +7 -7
- package/{field_composer-DpJx0Oz1.mjs.map → field_composer-ugYyDQNY.mjs.map} +1 -1
- package/{form-CDLcDPyU.mjs → form-BtDnRXYm.mjs} +45 -45
- package/{form-CDLcDPyU.mjs.map → form-BtDnRXYm.mjs.map} +1 -1
- package/{guards-B99p3BPj.mjs → guards-Cby4QwzY.mjs} +2 -2
- package/{guards-B99p3BPj.mjs.map → guards-Cby4QwzY.mjs.map} +1 -1
- package/guards.mjs +4 -4
- package/helpers.mjs +6 -6
- package/{index-C9UuBVyI.mjs → index-3XRUa28C.mjs} +12 -12
- package/{index-C9UuBVyI.mjs.map → index-3XRUa28C.mjs.map} +1 -1
- package/{index-CzI9mHIx.mjs → index-BCQmj6cf.mjs} +13 -13
- package/{index-CzI9mHIx.mjs.map → index-BCQmj6cf.mjs.map} +1 -1
- package/{index-bXmNb9jX.mjs → index-BgevbZTt.mjs} +10 -10
- package/{index-bXmNb9jX.mjs.map → index-BgevbZTt.mjs.map} +1 -1
- package/{index-BaWthszI.mjs → index-C-PCfO1S.mjs} +2 -2
- package/{index-BaWthszI.mjs.map → index-C-PCfO1S.mjs.map} +1 -1
- package/{index-Bi050X9r.mjs → index-CSyOYGEi.mjs} +8 -8
- package/{index-Bi050X9r.mjs.map → index-CSyOYGEi.mjs.map} +1 -1
- package/{index-CIvylvfa.mjs → index-D9i1PRci.mjs} +5701 -5698
- package/{index-CIvylvfa.mjs.map → index-D9i1PRci.mjs.map} +1 -1
- package/{index-B2rKM3mR.mjs → index-DWv9iKZs.mjs} +21 -21
- package/{index-B2rKM3mR.mjs.map → index-DWv9iKZs.mjs.map} +1 -1
- package/{index-slHxe6b-.mjs → index-VpcXNOpn.mjs} +2 -2
- package/{index-slHxe6b-.mjs.map → index-VpcXNOpn.mjs.map} +1 -1
- package/{index-BUpccfIz.mjs → index-fiZltUBs.mjs} +3 -3
- package/{index-BUpccfIz.mjs.map → index-fiZltUBs.mjs.map} +1 -1
- package/index.mjs +31 -31
- package/{integer-BIJ4_I8y.mjs → integer-W2_SlKV1.mjs} +5 -5
- package/{integer-BIJ4_I8y.mjs.map → integer-W2_SlKV1.mjs.map} +1 -1
- package/{mdi-CqMJqgQi.mjs → mdi-DC1jeTJJ.mjs} +55 -55
- package/{mdi-CqMJqgQi.mjs.map → mdi-DC1jeTJJ.mjs.map} +1 -1
- package/{number-z_LAINPM.mjs → number-DgwZBxOw.mjs} +101 -101
- package/{number-z_LAINPM.mjs.map → number-DgwZBxOw.mjs.map} +1 -1
- package/package.json +31 -31
- package/{position-Ai5XksAO.mjs → position-B9VPkbhU.mjs} +2 -2
- package/{position-Ai5XksAO.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-p4f5Pa5h.mjs → props-COvhL78L.mjs} +4 -4
- package/{props-p4f5Pa5h.mjs.map → props-COvhL78L.mjs.map} +1 -1
- package/{props-BYX22zcE.mjs → props-GYFmAF5-.mjs} +6 -6
- package/{props-BYX22zcE.mjs.map → props-GYFmAF5-.mjs.map} +1 -1
- package/{renderers-BKUvrrVm.mjs → renderers-BP4li2WT.mjs} +13 -13
- package/{renderers-BKUvrrVm.mjs.map → renderers-BP4li2WT.mjs.map} +1 -1
- package/{string-Dmr8SRMf.mjs → string-RfpfCwEn.mjs} +137 -137
- package/{string-Dmr8SRMf.mjs.map → string-RfpfCwEn.mjs.map} +1 -1
- package/{unsigned_integer-BliPiCXO.mjs → unsigned_integer-Cg6tbRJj.mjs} +4 -4
- package/{unsigned_integer-BliPiCXO.mjs.map → unsigned_integer-Cg6tbRJj.mjs.map} +1 -1
- package/useRender-CfNJA_8a.mjs +9 -0
- package/{useRender-BD1xw5zG.mjs.map → useRender-CfNJA_8a.mjs.map} +1 -1
- package/{utils-DqXWb-4f.mjs → utils-D3ZGaTyv.mjs} +48 -48
- package/{utils-DqXWb-4f.mjs.map → utils-D3ZGaTyv.mjs.map} +1 -1
- package/{validation-DS3tTSk5.mjs → validation-BF_JkNWB.mjs} +4 -4
- package/{validation-DS3tTSk5.mjs.map → validation-BF_JkNWB.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/alert-IW1AIWZw.mjs.map +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-kAyhIPBH.mjs.map +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,31 +1,31 @@
|
|
|
1
|
-
import { S as H } from "./index-
|
|
2
|
-
import { n as
|
|
3
|
-
import { u as
|
|
4
|
-
import { p as
|
|
5
|
-
import { onScopeDispose as ln, ref as an, computed as o, shallowRef as Ce, watchEffect as rn, toRef as
|
|
6
|
-
import { I as ee } from "./elevation-
|
|
7
|
-
import { t as cn,
|
|
8
|
-
import { r as pn,
|
|
9
|
-
import { g as In, p as xn,
|
|
10
|
-
|
|
1
|
+
import { S as H } from "./index-C-PCfO1S.mjs";
|
|
2
|
+
import { n as Qe } from "./numeral-zjPCiY2K.mjs";
|
|
3
|
+
import { u as Ye } from "./field_composer-ugYyDQNY.mjs";
|
|
4
|
+
import { p as Ze, x as Je, d as en, w as nn, s as tn, a as ye } from "./utils-D3ZGaTyv.mjs";
|
|
5
|
+
import { onScopeDispose as ln, ref as an, computed as o, shallowRef as Ce, watchEffect as rn, toRef as Y, watch as Pe, onMounted as un, createElementVNode as R, createVNode as I, Fragment as Z, mergeProps as on, nextTick as J, h as D, defineComponent as sn, toRefs as x } from "vue";
|
|
6
|
+
import { I as ee } from "./elevation-YNOj0hSa.mjs";
|
|
7
|
+
import { t as cn, V as De, a as ne, v as dn, m as mn, c as vn, b as fn } from "./common-Bi5RUD-n.mjs";
|
|
8
|
+
import { r as pn, m as bn, A as gn, B as hn, C as Nn, d as Vn } from "./mdi-DC1jeTJJ.mjs";
|
|
9
|
+
import { g as In, p as xn, N as wn, u as yn, O as be, o as Cn, V as te, E as Fe, F as Pn, P as Dn, Q as Fn } from "./display-fXo4JeIS.mjs";
|
|
10
|
+
const kn = 50, Sn = 500;
|
|
11
11
|
function En(e) {
|
|
12
12
|
let {
|
|
13
|
-
toggleUpDown:
|
|
13
|
+
toggleUpDown: U
|
|
14
14
|
} = e, a = -1, g = -1;
|
|
15
15
|
ln(f);
|
|
16
|
-
function
|
|
17
|
-
f(),
|
|
18
|
-
g = window.setInterval(() =>
|
|
16
|
+
function w(i) {
|
|
17
|
+
f(), F(i), window.addEventListener("pointerup", f), document.addEventListener("blur", f), a = window.setTimeout(() => {
|
|
18
|
+
g = window.setInterval(() => F(i), kn);
|
|
19
19
|
}, Sn);
|
|
20
20
|
}
|
|
21
21
|
function f() {
|
|
22
22
|
window.clearTimeout(a), window.clearInterval(g), window.removeEventListener("pointerup", f), document.removeEventListener("blur", f);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
24
|
+
function F(i) {
|
|
25
|
+
U(i === "up");
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
|
-
holdStart:
|
|
28
|
+
holdStart: w,
|
|
29
29
|
holdStop: f
|
|
30
30
|
};
|
|
31
31
|
}
|
|
@@ -74,19 +74,19 @@ const Rn = xn({
|
|
|
74
74
|
"update:focused": (e) => !0,
|
|
75
75
|
"update:modelValue": (e) => !0
|
|
76
76
|
},
|
|
77
|
-
setup(e,
|
|
77
|
+
setup(e, U) {
|
|
78
78
|
let {
|
|
79
79
|
slots: a
|
|
80
|
-
} =
|
|
80
|
+
} = U;
|
|
81
81
|
const g = an(), {
|
|
82
|
-
holdStart:
|
|
82
|
+
holdStart: w,
|
|
83
83
|
holdStop: f
|
|
84
84
|
} = En({
|
|
85
|
-
toggleUpDown:
|
|
86
|
-
}),
|
|
85
|
+
toggleUpDown: O
|
|
86
|
+
}), F = cn(e), i = o(() => F.isDisabled.value || F.isReadonly.value), T = Ce(e.focused), {
|
|
87
87
|
decimalSeparator: W
|
|
88
|
-
} =
|
|
89
|
-
function
|
|
88
|
+
} = wn(), s = o(() => e.decimalSeparator?.[0] || W.value);
|
|
89
|
+
function y(n) {
|
|
90
90
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e.precision, d = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
91
91
|
const v = t == null ? String(n) : n.toFixed(t);
|
|
92
92
|
if (T.value && d)
|
|
@@ -96,9 +96,9 @@ const Rn = xn({
|
|
|
96
96
|
let [V, c] = v.split(".");
|
|
97
97
|
return c = (c ?? "").padEnd(e.minFractionDigits, "0").replace(new RegExp(`(?<=\\d{${e.minFractionDigits}})0+$`, "g"), ""), [V, c].filter(Boolean).join(s.value);
|
|
98
98
|
}
|
|
99
|
-
const l =
|
|
99
|
+
const l = yn(e, "modelValue", null, (n) => n ?? null, (n) => n == null ? n ?? null : be(Number(n), e.min, e.max)), C = Ce(null);
|
|
100
100
|
rn(() => {
|
|
101
|
-
T.value && !i.value && Number(C.value?.replace(s.value, ".")) === l.value || (l.value == null ? C.value = null : isNaN(l.value) || (C.value =
|
|
101
|
+
T.value && !i.value && Number(C.value?.replace(s.value, ".")) === l.value || (l.value == null ? C.value = null : isNaN(l.value) || (C.value = y(l.value)));
|
|
102
102
|
});
|
|
103
103
|
const r = o({
|
|
104
104
|
get: () => C.value,
|
|
@@ -110,38 +110,38 @@ const Rn = xn({
|
|
|
110
110
|
const t = Number(n.replace(s.value, "."));
|
|
111
111
|
!isNaN(t) && t <= e.max && t >= e.min && (l.value = t, C.value = n);
|
|
112
112
|
}
|
|
113
|
-
}), $ = o(() => i.value ? !1 : (l.value ?? 0) + e.step <= e.max), A = o(() => i.value ? !1 : (l.value ?? 0) - e.step >= e.min), u = o(() => e.hideInput ? "stacked" : e.controlVariant), L =
|
|
113
|
+
}), $ = o(() => i.value ? !1 : (l.value ?? 0) + e.step <= e.max), A = o(() => i.value ? !1 : (l.value ?? 0) - e.step >= e.min), u = o(() => e.hideInput ? "stacked" : e.controlVariant), L = Y(() => u.value === "split" ? "$plus" : "$collapse"), j = Y(() => u.value === "split" ? "$minus" : "$expand"), M = Y(() => u.value === "split" ? "default" : "small"), z = Y(() => u.value === "stacked" ? "auto" : "100%"), le = {
|
|
114
114
|
props: {
|
|
115
|
-
onClick:
|
|
115
|
+
onClick: B,
|
|
116
116
|
onPointerup: h,
|
|
117
117
|
onPointerdown: K,
|
|
118
118
|
onPointercancel: h
|
|
119
119
|
}
|
|
120
120
|
}, ae = {
|
|
121
121
|
props: {
|
|
122
|
-
onClick:
|
|
122
|
+
onClick: B,
|
|
123
123
|
onPointerup: h,
|
|
124
124
|
onPointerdown: X,
|
|
125
125
|
onPointercancel: h
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
128
|
Pe(() => e.precision, () => q()), Pe(() => e.minFractionDigits, () => q()), un(() => {
|
|
129
|
-
|
|
129
|
+
_();
|
|
130
130
|
});
|
|
131
131
|
function G(n) {
|
|
132
132
|
if (n == null) return 0;
|
|
133
133
|
const t = n.toString(), d = t.indexOf(".");
|
|
134
134
|
return ~d ? t.length - d : 0;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function O() {
|
|
137
137
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
138
138
|
if (i.value) return;
|
|
139
139
|
if (l.value == null) {
|
|
140
|
-
r.value =
|
|
140
|
+
r.value = y(be(0, e.min, e.max));
|
|
141
141
|
return;
|
|
142
142
|
}
|
|
143
143
|
let t = Math.max(G(l.value), G(e.step));
|
|
144
|
-
e.precision != null && (t = Math.max(t, e.precision)), n ? $.value && (r.value =
|
|
144
|
+
e.precision != null && (t = Math.max(t, e.precision)), n ? $.value && (r.value = y(l.value + e.step, t)) : A.value && (r.value = y(l.value - e.step, t));
|
|
145
145
|
}
|
|
146
146
|
function re(n) {
|
|
147
147
|
if (!n.data) return;
|
|
@@ -150,37 +150,37 @@ const Rn = xn({
|
|
|
150
150
|
selectionStart: v,
|
|
151
151
|
selectionEnd: V
|
|
152
152
|
} = t ?? {}, c = d ? d.slice(0, v) + n.data + d.slice(V) : n.data, N = Dn(c, e.precision, s.value);
|
|
153
|
-
if (new RegExp(`^-?\\d*${
|
|
153
|
+
if (new RegExp(`^-?\\d*${Fn(s.value)}?\\d*$`).test(c) || (n.preventDefault(), t.value = N, J(() => r.value = N)), e.precision != null) {
|
|
154
154
|
if (c.split(s.value)[1]?.length > e.precision) {
|
|
155
|
-
n.preventDefault(), t.value = N,
|
|
156
|
-
const
|
|
157
|
-
t.setSelectionRange(
|
|
155
|
+
n.preventDefault(), t.value = N, J(() => r.value = N);
|
|
156
|
+
const k = (v ?? 0) + n.data.length;
|
|
157
|
+
t.setSelectionRange(k, k);
|
|
158
158
|
}
|
|
159
|
-
e.precision === 0 && c.endsWith(s.value) && (n.preventDefault(), t.value = N,
|
|
159
|
+
e.precision === 0 && c.endsWith(s.value) && (n.preventDefault(), t.value = N, J(() => r.value = N));
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
async function ue(n) {
|
|
163
|
-
["Enter", "ArrowLeft", "ArrowRight", "Backspace", "Delete", "Tab"].includes(n.key) || n.ctrlKey || ["ArrowDown", "ArrowUp"].includes(n.key) && (n.preventDefault(), n.stopPropagation(),
|
|
163
|
+
["Enter", "ArrowLeft", "ArrowRight", "Backspace", "Delete", "Tab"].includes(n.key) || n.ctrlKey || ["ArrowDown", "ArrowUp"].includes(n.key) && (n.preventDefault(), n.stopPropagation(), _(), await J(), n.key === "ArrowDown" ? O(!1) : O());
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function B(n) {
|
|
166
166
|
n.stopPropagation();
|
|
167
167
|
}
|
|
168
168
|
function h(n) {
|
|
169
169
|
n.currentTarget?.releasePointerCapture(n.pointerId), n.preventDefault(), f();
|
|
170
170
|
}
|
|
171
171
|
function K(n) {
|
|
172
|
-
n.currentTarget?.setPointerCapture(n.pointerId), n.preventDefault(), n.stopPropagation(),
|
|
172
|
+
n.currentTarget?.setPointerCapture(n.pointerId), n.preventDefault(), n.stopPropagation(), w("up");
|
|
173
173
|
}
|
|
174
174
|
function X(n) {
|
|
175
|
-
n.currentTarget?.setPointerCapture(n.pointerId), n.preventDefault(), n.stopPropagation(),
|
|
175
|
+
n.currentTarget?.setPointerCapture(n.pointerId), n.preventDefault(), n.stopPropagation(), w("down");
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function _() {
|
|
178
178
|
if (i.value || !g.value) return;
|
|
179
179
|
const n = g.value.value, t = Number(n.replace(s.value, "."));
|
|
180
|
-
n && !isNaN(t) ? r.value =
|
|
180
|
+
n && !isNaN(t) ? r.value = y(be(t, e.min, e.max)) : r.value = null;
|
|
181
181
|
}
|
|
182
182
|
function q() {
|
|
183
|
-
i.value || (r.value = l.value !== null && !isNaN(l.value) ?
|
|
183
|
+
i.value || (r.value = l.value !== null && !isNaN(l.value) ? y(l.value, e.precision, !1) : null);
|
|
184
184
|
}
|
|
185
185
|
function oe() {
|
|
186
186
|
if (!i.value) {
|
|
@@ -195,7 +195,7 @@ const Rn = xn({
|
|
|
195
195
|
oe();
|
|
196
196
|
}
|
|
197
197
|
function se() {
|
|
198
|
-
|
|
198
|
+
_();
|
|
199
199
|
}
|
|
200
200
|
return Cn(() => {
|
|
201
201
|
const {
|
|
@@ -204,12 +204,12 @@ const Rn = xn({
|
|
|
204
204
|
...d
|
|
205
205
|
} = De.filterProps(e);
|
|
206
206
|
function v() {
|
|
207
|
-
return a.increment ? I(
|
|
207
|
+
return a.increment ? I(Fe, {
|
|
208
208
|
key: "increment-defaults",
|
|
209
209
|
defaults: {
|
|
210
210
|
VBtn: {
|
|
211
211
|
disabled: !$.value,
|
|
212
|
-
height:
|
|
212
|
+
height: z.value,
|
|
213
213
|
size: M.value,
|
|
214
214
|
icon: L.value,
|
|
215
215
|
variant: "text"
|
|
@@ -221,10 +221,10 @@ const Rn = xn({
|
|
|
221
221
|
"aria-hidden": "true",
|
|
222
222
|
"data-testid": "increment",
|
|
223
223
|
disabled: !$.value,
|
|
224
|
-
height:
|
|
224
|
+
height: z.value,
|
|
225
225
|
icon: L.value,
|
|
226
226
|
key: "increment-btn",
|
|
227
|
-
onClick:
|
|
227
|
+
onClick: B,
|
|
228
228
|
onPointerdown: K,
|
|
229
229
|
onPointerup: h,
|
|
230
230
|
onPointercancel: h,
|
|
@@ -234,12 +234,12 @@ const Rn = xn({
|
|
|
234
234
|
}, null);
|
|
235
235
|
}
|
|
236
236
|
function V() {
|
|
237
|
-
return a.decrement ? I(
|
|
237
|
+
return a.decrement ? I(Fe, {
|
|
238
238
|
key: "decrement-defaults",
|
|
239
239
|
defaults: {
|
|
240
240
|
VBtn: {
|
|
241
241
|
disabled: !A.value,
|
|
242
|
-
height:
|
|
242
|
+
height: z.value,
|
|
243
243
|
size: M.value,
|
|
244
244
|
icon: j.value,
|
|
245
245
|
variant: "text"
|
|
@@ -251,10 +251,10 @@ const Rn = xn({
|
|
|
251
251
|
"aria-hidden": "true",
|
|
252
252
|
"data-testid": "decrement",
|
|
253
253
|
disabled: !A.value,
|
|
254
|
-
height:
|
|
254
|
+
height: z.value,
|
|
255
255
|
icon: j.value,
|
|
256
256
|
key: "decrement-btn",
|
|
257
|
-
onClick:
|
|
257
|
+
onClick: B,
|
|
258
258
|
onPointerdown: X,
|
|
259
259
|
onPointerup: h,
|
|
260
260
|
onPointercancel: h,
|
|
@@ -275,15 +275,15 @@ const Rn = xn({
|
|
|
275
275
|
vertical: !0
|
|
276
276
|
}, null) : void 0;
|
|
277
277
|
}
|
|
278
|
-
const
|
|
278
|
+
const k = u.value === "split" ? R("div", {
|
|
279
279
|
class: "v-number-input__control"
|
|
280
280
|
}, [I(ne, {
|
|
281
281
|
vertical: !0
|
|
282
|
-
}, null), v()]) : e.reverse || u.value === "hidden" ? void 0 : R(
|
|
282
|
+
}, null), v()]) : e.reverse || u.value === "hidden" ? void 0 : R(Z, null, [N(), c()]), S = a["append-inner"] || k, Q = u.value === "split" ? R("div", {
|
|
283
283
|
class: "v-number-input__control"
|
|
284
284
|
}, [V(), I(ne, {
|
|
285
285
|
vertical: !0
|
|
286
|
-
}, null)]) : e.reverse && u.value !== "hidden" ? R(
|
|
286
|
+
}, null)]) : e.reverse && u.value !== "hidden" ? R(Z, null, [c(), N()]) : void 0, ce = a["prepend-inner"] || Q;
|
|
287
287
|
return I(De, on({
|
|
288
288
|
ref: g
|
|
289
289
|
}, d, {
|
|
@@ -311,17 +311,17 @@ const Rn = xn({
|
|
|
311
311
|
"append-inner": S ? function() {
|
|
312
312
|
for (var p = arguments.length, E = new Array(p), b = 0; b < p; b++)
|
|
313
313
|
E[b] = arguments[b];
|
|
314
|
-
return R(
|
|
314
|
+
return R(Z, null, [a["append-inner"]?.(...E), k]);
|
|
315
315
|
} : void 0,
|
|
316
316
|
"prepend-inner": ce ? function() {
|
|
317
317
|
for (var p = arguments.length, E = new Array(p), b = 0; b < p; b++)
|
|
318
318
|
E[b] = arguments[b];
|
|
319
|
-
return R(
|
|
319
|
+
return R(Z, null, [Q, a["prepend-inner"]?.(...E)]);
|
|
320
320
|
} : void 0
|
|
321
321
|
});
|
|
322
322
|
}), pn({}, g);
|
|
323
323
|
}
|
|
324
|
-
}), An =
|
|
324
|
+
}), An = Ze(
|
|
325
325
|
{
|
|
326
326
|
controlVariant: {
|
|
327
327
|
type: String,
|
|
@@ -349,10 +349,10 @@ const Rn = xn({
|
|
|
349
349
|
type: Number,
|
|
350
350
|
default: 0
|
|
351
351
|
},
|
|
352
|
-
...
|
|
352
|
+
...Je(mn(), ["modelValue", "validationValue"])
|
|
353
353
|
},
|
|
354
354
|
"VNumberInput"
|
|
355
|
-
), ge = (e) => !!(typeof e == "bigint" || typeof e == "number" && !Number.isNaN(e) && Number.isFinite(e)),
|
|
355
|
+
), ge = (e) => !!(typeof e == "bigint" || typeof e == "number" && !Number.isNaN(e) && Number.isFinite(e)), ke = (e) => typeof e > "u" || e === null ? !0 : Array.isArray(e) ? e.every(ge) : ge(e), { makeProps: Mn, emits: zn } = en(
|
|
356
356
|
{
|
|
357
357
|
...nn(
|
|
358
358
|
An({
|
|
@@ -421,27 +421,27 @@ const Rn = xn({
|
|
|
421
421
|
...fn()
|
|
422
422
|
},
|
|
423
423
|
{
|
|
424
|
-
"update:modelValue": (e) =>
|
|
425
|
-
"update:model-value": (e) =>
|
|
424
|
+
"update:modelValue": (e) => ke(e),
|
|
425
|
+
"update:model-value": (e) => ke(e),
|
|
426
426
|
...vn
|
|
427
427
|
},
|
|
428
428
|
"RNumberField"
|
|
429
429
|
), Gn = sn({
|
|
430
430
|
name: "RNumberField",
|
|
431
431
|
props: Mn(),
|
|
432
|
-
emits:
|
|
432
|
+
emits: zn,
|
|
433
433
|
slots: Object,
|
|
434
|
-
setup(e, { emit:
|
|
434
|
+
setup(e, { emit: U, slots: a }) {
|
|
435
435
|
const {
|
|
436
436
|
focused: g,
|
|
437
|
-
disabled:
|
|
437
|
+
disabled: w,
|
|
438
438
|
error: f,
|
|
439
|
-
errorMessages:
|
|
439
|
+
errorMessages: F,
|
|
440
440
|
maxErrors: i,
|
|
441
441
|
name: T,
|
|
442
442
|
label: W,
|
|
443
443
|
readonly: s,
|
|
444
|
-
validateOn:
|
|
444
|
+
validateOn: y,
|
|
445
445
|
theme: l,
|
|
446
446
|
width: C,
|
|
447
447
|
maxWidth: r,
|
|
@@ -451,18 +451,18 @@ const Rn = xn({
|
|
|
451
451
|
style: L,
|
|
452
452
|
id: j,
|
|
453
453
|
baseColor: M,
|
|
454
|
-
color:
|
|
454
|
+
color: z,
|
|
455
455
|
glow: le,
|
|
456
456
|
iconColor: ae,
|
|
457
457
|
hideDetails: G,
|
|
458
|
-
hint:
|
|
458
|
+
hint: O,
|
|
459
459
|
persistentHint: re,
|
|
460
460
|
messages: ue,
|
|
461
|
-
direction:
|
|
461
|
+
direction: B,
|
|
462
462
|
modelValue: h,
|
|
463
463
|
renderMode: K,
|
|
464
464
|
multiple: X,
|
|
465
|
-
choices:
|
|
465
|
+
choices: _,
|
|
466
466
|
allowUnspecifiedChoices: q,
|
|
467
467
|
to: oe,
|
|
468
468
|
href: ie,
|
|
@@ -474,9 +474,9 @@ const Rn = xn({
|
|
|
474
474
|
suffix: V,
|
|
475
475
|
role: c,
|
|
476
476
|
noValuesText: N,
|
|
477
|
-
clearIcon:
|
|
477
|
+
clearIcon: k,
|
|
478
478
|
controlVariant: S,
|
|
479
|
-
min:
|
|
479
|
+
min: Q,
|
|
480
480
|
max: ce,
|
|
481
481
|
step: p,
|
|
482
482
|
precision: E,
|
|
@@ -487,9 +487,9 @@ const Rn = xn({
|
|
|
487
487
|
expandIcon: Te,
|
|
488
488
|
dirty: Ae,
|
|
489
489
|
onBlur: Me,
|
|
490
|
-
onChange:
|
|
491
|
-
onInput:
|
|
492
|
-
} = x(e),
|
|
490
|
+
onChange: ze,
|
|
491
|
+
onInput: Be
|
|
492
|
+
} = x(e), Ue = o(() => (P) => ge(P) ? Qe(P.toString()).format(b.value) : ""), $e = {
|
|
493
493
|
style: L,
|
|
494
494
|
label: W,
|
|
495
495
|
density: A,
|
|
@@ -500,14 +500,14 @@ const Rn = xn({
|
|
|
500
500
|
menuIcon: se,
|
|
501
501
|
active: n,
|
|
502
502
|
theme: l,
|
|
503
|
-
disabled:
|
|
503
|
+
disabled: w,
|
|
504
504
|
variant: t,
|
|
505
505
|
prefix: d,
|
|
506
506
|
persistentPlaceholder: v,
|
|
507
507
|
suffix: V,
|
|
508
508
|
role: c,
|
|
509
509
|
focused: g,
|
|
510
|
-
choices:
|
|
510
|
+
choices: _,
|
|
511
511
|
allowUnspecifiedChoices: q,
|
|
512
512
|
class: u,
|
|
513
513
|
"onUpdate:focused": x(e)["onUpdate:focused"],
|
|
@@ -521,14 +521,14 @@ const Rn = xn({
|
|
|
521
521
|
}, de = o(
|
|
522
522
|
() => tn({
|
|
523
523
|
focused: g.value,
|
|
524
|
-
disabled:
|
|
524
|
+
disabled: w.value,
|
|
525
525
|
error: f.value,
|
|
526
|
-
errorMessages:
|
|
526
|
+
errorMessages: F.value,
|
|
527
527
|
maxErrors: i.value,
|
|
528
528
|
name: T.value,
|
|
529
529
|
label: W.value,
|
|
530
530
|
readonly: s.value,
|
|
531
|
-
validateOn:
|
|
531
|
+
validateOn: y.value,
|
|
532
532
|
theme: l.value,
|
|
533
533
|
width: C.value,
|
|
534
534
|
maxWidth: r.value,
|
|
@@ -538,18 +538,18 @@ const Rn = xn({
|
|
|
538
538
|
style: L.value,
|
|
539
539
|
id: j.value,
|
|
540
540
|
baseColor: M.value,
|
|
541
|
-
color:
|
|
541
|
+
color: z.value,
|
|
542
542
|
glow: le.value,
|
|
543
543
|
iconColor: ae.value,
|
|
544
544
|
hideDetails: G.value,
|
|
545
|
-
hint:
|
|
545
|
+
hint: O.value,
|
|
546
546
|
persistentHint: re.value,
|
|
547
547
|
messages: ue.value,
|
|
548
|
-
direction:
|
|
548
|
+
direction: B.value,
|
|
549
549
|
variant: t.value,
|
|
550
|
-
clearIcon:
|
|
550
|
+
clearIcon: k.value,
|
|
551
551
|
controlVariant: S.value,
|
|
552
|
-
min:
|
|
552
|
+
min: Q.value,
|
|
553
553
|
max: ce.value,
|
|
554
554
|
step: p.value,
|
|
555
555
|
precision: E.value,
|
|
@@ -560,18 +560,18 @@ const Rn = xn({
|
|
|
560
560
|
role: c.value,
|
|
561
561
|
dirty: Ae.value,
|
|
562
562
|
onBlur: Me.value,
|
|
563
|
-
onChange:
|
|
564
|
-
onInput:
|
|
563
|
+
onChange: ze.value,
|
|
564
|
+
onInput: Be.value
|
|
565
565
|
})
|
|
566
566
|
), Le = o(
|
|
567
567
|
() => S.value === "split" ? Se.value : Re.value
|
|
568
|
-
),
|
|
568
|
+
), Oe = o(
|
|
569
569
|
() => S.value === "split" ? Ee.value : Te.value
|
|
570
570
|
), he = o(
|
|
571
571
|
() => S.value === "split" ? "default" : "small"
|
|
572
572
|
), Ne = o(
|
|
573
573
|
() => S.value === "stacked" ? "auto" : "100%"
|
|
574
|
-
), Ve = o(() =>
|
|
574
|
+
), Ve = o(() => w.value || s.value), _e = ({
|
|
575
575
|
props: P,
|
|
576
576
|
isMultiAdd: Ie,
|
|
577
577
|
add: We
|
|
@@ -598,7 +598,7 @@ const Rn = xn({
|
|
|
598
598
|
disabled: !Ge.value,
|
|
599
599
|
flat: !0,
|
|
600
600
|
height: Ne.value,
|
|
601
|
-
icon:
|
|
601
|
+
icon: Oe.value,
|
|
602
602
|
onClick: me,
|
|
603
603
|
onPointerup: ve,
|
|
604
604
|
onPointerdown: fe,
|
|
@@ -606,7 +606,7 @@ const Rn = xn({
|
|
|
606
606
|
size: he.value,
|
|
607
607
|
tabindex: "-1"
|
|
608
608
|
});
|
|
609
|
-
}, xe =
|
|
609
|
+
}, xe = ye("increment", a), we = ye("decrement", a), qe = typeof P.modelValue == "number" ? P.modelValue : null;
|
|
610
610
|
return D(
|
|
611
611
|
Tn,
|
|
612
612
|
{
|
|
@@ -628,15 +628,15 @@ const Rn = xn({
|
|
|
628
628
|
),
|
|
629
629
|
decrement: (...m) => (
|
|
630
630
|
// @ts-expect-error
|
|
631
|
-
|
|
631
|
+
we ? we(...m) : Xe(...m)
|
|
632
632
|
)
|
|
633
633
|
}
|
|
634
634
|
);
|
|
635
|
-
}, { composed: He } =
|
|
635
|
+
}, { composed: He } = Ye(
|
|
636
636
|
$e,
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
637
|
+
Ue,
|
|
638
|
+
_e,
|
|
639
|
+
U,
|
|
640
640
|
e["onUpdate:modelValue"],
|
|
641
641
|
e["onUpdate:model-value"],
|
|
642
642
|
h,
|
|
@@ -649,6 +649,6 @@ export {
|
|
|
649
649
|
Gn as R,
|
|
650
650
|
Mn as a,
|
|
651
651
|
An as m,
|
|
652
|
-
|
|
652
|
+
zn as r
|
|
653
653
|
};
|
|
654
|
-
//# sourceMappingURL=number-
|
|
654
|
+
//# sourceMappingURL=number-DgwZBxOw.mjs.map
|