@signal24/vue-foundation 4.25.7 → 4.25.8
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var $t = Object.defineProperty;
|
|
2
2
|
var Bt = (e, t, n) => t in e ? $t(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var O = (e, t, n) => Bt(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { defineComponent as R, ref as S, computed as T, watch as D, onMounted as _, createElementBlock as k, withDirectives as oe, openBlock as b, createElementVNode as $, toDisplayString as W, createCommentVNode as V, Fragment as se, renderList as ie, vModelSelect as _t, getCurrentInstance as Ee, withModifiers as be, normalizeStyle as Nt, normalizeClass as A, renderSlot as U, reactive as Rt, h as le, Teleport as Wt, markRaw as Ut, onBeforeUnmount as ae, resolveDirective as jt, createBlock as
|
|
5
|
-
import { compact as
|
|
4
|
+
import { defineComponent as R, ref as S, computed as T, watch as D, onMounted as _, createElementBlock as k, withDirectives as oe, openBlock as b, createElementVNode as $, toDisplayString as W, createCommentVNode as V, Fragment as se, renderList as ie, vModelSelect as _t, getCurrentInstance as Ee, withModifiers as be, normalizeStyle as Nt, normalizeClass as A, renderSlot as U, reactive as Rt, h as le, Teleport as Wt, markRaw as Ut, onBeforeUnmount as ae, resolveDirective as jt, createBlock as tt, createSlots as Pt, withCtx as he, createTextVNode as Z, vModelText as qt, onActivated as nt, onDeactivated as ot } from "vue";
|
|
5
|
+
import { compact as st, cloneDeep as zt, uniq as Kt, groupBy as Yt, debounce as Xt, isEqual as it, startCase as Zt, upperFirst as Gt, remove as Jt, last as Qt } from "lodash";
|
|
6
6
|
import { configureOpenApiClient as en, OpenApiError as tn } from "@signal24/openapi-client-codegen/browser";
|
|
7
7
|
import { escapeHtml as nn } from "@vue/shared";
|
|
8
8
|
import { escapeHtml as ys } from "@vue/shared";
|
|
@@ -133,9 +133,9 @@ function ke(e, t, n) {
|
|
|
133
133
|
return N.push(u), u;
|
|
134
134
|
}
|
|
135
135
|
function qo(e) {
|
|
136
|
-
e.$ &&
|
|
136
|
+
e.$ && lt(e.$);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function lt(e) {
|
|
139
139
|
let t = e;
|
|
140
140
|
for (; t && !dn(t.vnode); )
|
|
141
141
|
t = t.parent;
|
|
@@ -249,21 +249,21 @@ function Jo(e, t) {
|
|
|
249
249
|
function Qo(e) {
|
|
250
250
|
var o;
|
|
251
251
|
const t = (o = e.$) == null ? void 0 : o.vnode.el, n = t.closest(".vf-modal");
|
|
252
|
-
return
|
|
252
|
+
return rt(n ?? t);
|
|
253
253
|
}
|
|
254
254
|
function hn(e, t) {
|
|
255
255
|
if (!e[G]) {
|
|
256
256
|
const n = document.createElement("div");
|
|
257
257
|
n.classList.add("vf-mask"), e.appendChild(n), e[G] = { maskEl: n };
|
|
258
258
|
}
|
|
259
|
-
return e[G].maskEl.innerText = t ?? "", () =>
|
|
259
|
+
return e[G].maskEl.innerText = t ?? "", () => rt(e);
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function rt(e) {
|
|
262
262
|
e[G] && e.removeChild(e[G].maskEl);
|
|
263
263
|
}
|
|
264
264
|
const we = Symbol("FormMaskState");
|
|
265
265
|
function yn(e, t, n) {
|
|
266
|
-
const o = e instanceof Element ? e :
|
|
266
|
+
const o = e instanceof Element ? e : ut(e);
|
|
267
267
|
if (!o) return () => {
|
|
268
268
|
};
|
|
269
269
|
o.classList.add("vf-masked");
|
|
@@ -275,15 +275,15 @@ function yn(e, t, n) {
|
|
|
275
275
|
disabledElements: r,
|
|
276
276
|
waitButton: l,
|
|
277
277
|
buttonHtml: s
|
|
278
|
-
}, () =>
|
|
278
|
+
}, () => at(o);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
const t = e instanceof Element ? e :
|
|
280
|
+
function at(e) {
|
|
281
|
+
const t = e instanceof Element ? e : ut(e);
|
|
282
282
|
if (!t) return;
|
|
283
283
|
const n = t[we];
|
|
284
284
|
n && (t.classList.remove("vf-masked"), n.disabledElements.forEach((o) => o.removeAttribute("disabled")), n.waitButton && (n.waitButton.innerHTML = n.buttonHtml, n.waitButton.removeAttribute("disabled")), delete t[we]);
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function ut(e) {
|
|
287
287
|
var n;
|
|
288
288
|
const t = (n = e == null ? void 0 : e.$) == null ? void 0 : n.vnode.el;
|
|
289
289
|
return t ? t.tagName === "FORM" ? t : t.querySelector("form") : null;
|
|
@@ -307,7 +307,7 @@ const gn = ["id"], wn = {
|
|
|
307
307
|
setup(e, { expose: t }) {
|
|
308
308
|
const n = Ee(), o = e;
|
|
309
309
|
t({ mask: p, unmask: y, hide: c, unhide: f });
|
|
310
|
-
const l = S(), s = S(), a = S(!1), r = T(() =>
|
|
310
|
+
const l = S(), s = S(), a = S(!1), r = T(() => st([...Array.isArray(o.class) ? o.class : [o.class], a.value && "hidden"]));
|
|
311
311
|
_(() => {
|
|
312
312
|
var g;
|
|
313
313
|
document.body.classList.add("vf-modal-open"), o.closeOnMaskClick && (window.addEventListener("keydown", m), (g = l.value) == null || g.addEventListener("click", u));
|
|
@@ -324,13 +324,13 @@ const gn = ["id"], wn = {
|
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
function E() {
|
|
327
|
-
|
|
327
|
+
lt(n);
|
|
328
328
|
}
|
|
329
329
|
function p() {
|
|
330
330
|
return yn(s.value), () => y();
|
|
331
331
|
}
|
|
332
332
|
function y() {
|
|
333
|
-
|
|
333
|
+
at(s.value);
|
|
334
334
|
}
|
|
335
335
|
function c() {
|
|
336
336
|
return a.value = !0, () => f();
|
|
@@ -384,7 +384,7 @@ const gn = ["id"], wn = {
|
|
|
384
384
|
const t = e, n = T(() => t.message instanceof Error ? mn(t.message) : t.message);
|
|
385
385
|
return (o, l) => {
|
|
386
386
|
const s = jt("autofocus");
|
|
387
|
-
return b(),
|
|
387
|
+
return b(), tt(kn, {
|
|
388
388
|
class: A(["vf-alert", ...o.classes ?? []])
|
|
389
389
|
}, Pt({
|
|
390
390
|
default: he(() => [
|
|
@@ -492,7 +492,7 @@ function ss(e, t) {
|
|
|
492
492
|
n[o] === "" && (n[o] = null);
|
|
493
493
|
return n;
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function Pe(e) {
|
|
496
496
|
return e != null;
|
|
497
497
|
}
|
|
498
498
|
function is(e, t) {
|
|
@@ -523,12 +523,12 @@ var Ln = {
|
|
|
523
523
|
negativePattern: "-!#",
|
|
524
524
|
format: On,
|
|
525
525
|
fromCents: !1
|
|
526
|
-
},
|
|
526
|
+
}, ct = function(t) {
|
|
527
527
|
return Math.round(t);
|
|
528
528
|
}, Se = function(t) {
|
|
529
529
|
return Math.pow(10, t);
|
|
530
530
|
}, xn = function(t, n) {
|
|
531
|
-
return
|
|
531
|
+
return ct(t / n) * n;
|
|
532
532
|
}, Fn = /(\d)(?=(\d{3})+\b)/g, In = /(\d)(?=(\d\d)+\d\b)/g;
|
|
533
533
|
function H(e, t) {
|
|
534
534
|
var n = this;
|
|
@@ -551,7 +551,7 @@ function ne(e, t) {
|
|
|
551
551
|
throw Error("Invalid Input");
|
|
552
552
|
o = 0;
|
|
553
553
|
}
|
|
554
|
-
return r || (o *= u, o = o.toFixed(4)), n ?
|
|
554
|
+
return r || (o *= u, o = o.toFixed(4)), n ? ct(o) : o;
|
|
555
555
|
}
|
|
556
556
|
function On(e, t) {
|
|
557
557
|
var n = t.pattern, o = t.negativePattern, l = t.symbol, s = t.separator, a = t.decimal, r = t.groups, u = ("" + e).replace(/^-/, "").split("."), m = u[0], E = u[1];
|
|
@@ -663,11 +663,11 @@ function Vn() {
|
|
|
663
663
|
}
|
|
664
664
|
return ye(Hn);
|
|
665
665
|
}
|
|
666
|
-
const An = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
666
|
+
const An = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), qe = { randomUUID: An };
|
|
667
667
|
function $n(e, t, n) {
|
|
668
668
|
var l;
|
|
669
|
-
if (
|
|
670
|
-
return
|
|
669
|
+
if (qe.randomUUID && !e)
|
|
670
|
+
return qe.randomUUID();
|
|
671
671
|
e = e || {};
|
|
672
672
|
const o = e.random ?? ((l = e.rng) == null ? void 0 : l.call(e)) ?? Vn();
|
|
673
673
|
if (o.length < 16)
|
|
@@ -682,7 +682,7 @@ function Bn(e) {
|
|
|
682
682
|
}
|
|
683
683
|
function _n(e) {
|
|
684
684
|
const t = e.replace(/\D/g, "").replace(/^1/, "");
|
|
685
|
-
return t.length
|
|
685
|
+
return t.length !== 10 ? e : "(" + t.substring(0, 3) + ") " + t.substring(3, 6) + "-" + t.substring(6);
|
|
686
686
|
}
|
|
687
687
|
function Nn(e, t) {
|
|
688
688
|
return H(e).divide(t ?? I.defaultCurrencyDivisor).format();
|
|
@@ -740,13 +740,13 @@ const Rn = ["disabled", "placeholder", "required", "name"], Wn = {
|
|
|
740
740
|
t({
|
|
741
741
|
addRemoteOption: At
|
|
742
742
|
});
|
|
743
|
-
const r = S(), u = S(), m = S(), E = S(!1), p = S(), y = S(!1), c = S(""), f = S(null), g = S(null), M = S(!1), L = S(null), B = S(!1),
|
|
744
|
-
var
|
|
745
|
-
const h = (
|
|
746
|
-
return s.searchFields ? s.searchFields.forEach((
|
|
747
|
-
i[
|
|
748
|
-
}) : (te.push(C),
|
|
749
|
-
key: ((
|
|
743
|
+
const r = S(), u = S(), m = S(), E = S(!1), p = S(), y = S(!1), c = S(""), f = S(null), g = S(null), M = S(!1), L = S(null), B = S(!1), wt = T(() => s.showCreateTextOnNewItem ?? !0), q = T(() => !!(s.options || p.value)), Et = T(() => s.options ?? p.value ?? []), bt = T(() => s.prependOptions ?? []), kt = T(() => s.appendOptions ?? []), xe = T(() => !!s.disabled || !q.value && !s.loadOptions), Tt = T(() => !q.value && s.preload ? "Loading..." : s.nullTitle ? s.nullTitle : s.placeholder || ""), Ct = T(() => s.noResultsText || "No options match your search."), z = T(() => s.valueExtractor ? s.valueExtractor : s.valueField ? (i) => i[s.valueField] : null), K = T(() => s.keyExtractor ? s.keyExtractor : s.keyField ? (i) => String(i[s.keyField]) : z.value ? (i) => String(z.value(i)) : null), fe = T(() => s.groupFormatter ? s.groupFormatter : s.groupField ? (i) => String(i[s.groupField]) : null), Fe = T(() => s.formatter ? s.formatter : s.labelField ? (i) => String(i[s.labelField]) : (i) => String(i)), Ie = T(() => s.selectionFormatter ? s.selectionFormatter : Fe.value), Oe = T(() => [...bt.value, ...Et.value, ...kt.value]), De = T(() => !!(s.groupField || s.groupFormatter)), ve = T(() => Oe.value.map((i, v) => {
|
|
744
|
+
var Re, We, Ue;
|
|
745
|
+
const h = (Re = fe.value) == null ? void 0 : Re.call(fe, i), d = Fe.value(i), w = (We = s.subtitleFormatter) == null ? void 0 : We.call(s, i), C = d ? d.trim().toLowerCase() : "", Ne = w ? w.trim().toLowerCase() : "", te = [];
|
|
746
|
+
return s.searchFields ? s.searchFields.forEach((je) => {
|
|
747
|
+
i[je] && te.push(String(i[je]).toLowerCase());
|
|
748
|
+
}) : (te.push(C), Ne && te.push(Ne)), {
|
|
749
|
+
key: ((Ue = K.value) == null ? void 0 : Ue.call(K, i)) ?? String(v),
|
|
750
750
|
group: h,
|
|
751
751
|
title: d,
|
|
752
752
|
subtitle: w,
|
|
@@ -769,7 +769,7 @@ const Rn = ["disabled", "placeholder", "required", "name"], Wn = {
|
|
|
769
769
|
};
|
|
770
770
|
}), B.value && (i.find((C) => C.searchContent === v) !== void 0 || i.push({
|
|
771
771
|
key: l,
|
|
772
|
-
title:
|
|
772
|
+
title: wt.value ? "Create <strong>" + c.value.trim() + "</strong>..." : c.value.trim()
|
|
773
773
|
}));
|
|
774
774
|
}
|
|
775
775
|
} else s.nullTitle && i.unshift({
|
|
@@ -777,7 +777,7 @@ const Rn = ["disabled", "placeholder", "required", "name"], Wn = {
|
|
|
777
777
|
title: s.nullTitle
|
|
778
778
|
});
|
|
779
779
|
return i;
|
|
780
|
-
}),
|
|
780
|
+
}), St = T(() => {
|
|
781
781
|
if (!De.value)
|
|
782
782
|
return [
|
|
783
783
|
{
|
|
@@ -792,7 +792,7 @@ const Rn = ["disabled", "placeholder", "required", "name"], Wn = {
|
|
|
792
792
|
}));
|
|
793
793
|
});
|
|
794
794
|
D(() => s.modelValue, pe), D(ve, () => {
|
|
795
|
-
M.value && setTimeout(
|
|
795
|
+
M.value && setTimeout($e, 0);
|
|
796
796
|
}), D(c, () => {
|
|
797
797
|
y.value && !s.remoteSearch && !c.value.trim().length && (y.value = !1);
|
|
798
798
|
}), D(M, () => {
|
|
@@ -801,12 +801,12 @@ const Rn = ["disabled", "placeholder", "required", "name"], Wn = {
|
|
|
801
801
|
var i;
|
|
802
802
|
s.modelValue !== null && f.value === null && pe(), (L.value !== null || y.value) && !F.value.find((v) => v.key == L.value) && (L.value = ((i = F.value[0]) == null ? void 0 : i.key) ?? o);
|
|
803
803
|
}), _(async () => {
|
|
804
|
-
B.value = s.onCreateItem !== void 0, s.loadOptions && s.preload && await He(), !s.options && (s.valueField || s.valueExtractor) ? c.value = s.loadingText ?? "..." : pe(), D(f, () => {
|
|
804
|
+
B.value = s.onCreateItem !== void 0, s.loadOptions && s.preload && await He(), !s.options && (s.valueField || s.valueExtractor) && (!s.loadOptions || s.preload) ? c.value = s.loadingText ?? "..." : pe(), D(f, () => {
|
|
805
805
|
f.value !== s.modelValue && a(
|
|
806
806
|
"update:modelValue",
|
|
807
|
-
|
|
807
|
+
Pe(f.value) && z.value !== null ? z.value(f.value) : f.value
|
|
808
808
|
);
|
|
809
|
-
}), s.remoteSearch && D(c, Xt(
|
|
809
|
+
}), s.remoteSearch && D(c, Xt(Mt, 250));
|
|
810
810
|
}), ae(() => {
|
|
811
811
|
var i;
|
|
812
812
|
(i = m.value) == null || i.remove();
|
|
@@ -817,14 +817,14 @@ const Rn = ["disabled", "placeholder", "required", "name"], Wn = {
|
|
|
817
817
|
async function Ve() {
|
|
818
818
|
var v;
|
|
819
819
|
const i = s.remoteSearch && y.value && c.value.length ? c.value : null;
|
|
820
|
-
E.value = !0, p.value = await ((v = s.loadOptions) == null ? void 0 : v.call(s, i)) ?? [], E.value = !1;
|
|
820
|
+
E.value = !0, p.value = await ((v = s.loadOptions) == null ? void 0 : v.call(s, i)) ?? [], E.value = !1, Ae();
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function Mt() {
|
|
823
823
|
y.value && (Ve(), y.value = c.value.trim().length > 0);
|
|
824
824
|
}
|
|
825
|
-
function
|
|
825
|
+
function Lt(i) {
|
|
826
826
|
if (i.key == "Escape") {
|
|
827
|
-
i.stopPropagation(), i.target.blur(),
|
|
827
|
+
i.stopPropagation(), i.target.blur(), _e();
|
|
828
828
|
return;
|
|
829
829
|
}
|
|
830
830
|
if (!(i.key == "ArrowLeft" || i.key == "ArrowRight") && i.key != "Tab") {
|
|
@@ -841,7 +841,7 @@ const Rn = ["disabled", "placeholder", "required", "name"], Wn = {
|
|
|
841
841
|
if (i.key == "Enter") {
|
|
842
842
|
i.preventDefault();
|
|
843
843
|
const v = F.value.find((h) => h.key == L.value);
|
|
844
|
-
if (v) return
|
|
844
|
+
if (v) return Be(v);
|
|
845
845
|
}
|
|
846
846
|
if (i.key === "Delete" || i.key === "Backspace") {
|
|
847
847
|
c.value.length > 1 && (y.value = !0);
|
|
@@ -850,13 +850,13 @@ const Rn = ["disabled", "placeholder", "required", "name"], Wn = {
|
|
|
850
850
|
!i.metaKey && Kn.includes(i.key) && (y.value = !0);
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
|
-
function
|
|
854
|
-
|
|
853
|
+
function xt() {
|
|
854
|
+
Ae(), M.value = !0, setTimeout(() => {
|
|
855
855
|
var i;
|
|
856
856
|
return (i = u.value) == null ? void 0 : i.select();
|
|
857
857
|
}, 0);
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function Ae(i) {
|
|
860
860
|
f.value ? L.value = Ft(f.value) : s.nullTitle && (L.value = o);
|
|
861
861
|
}
|
|
862
862
|
function Ft(i) {
|
|
@@ -867,7 +867,7 @@ const Rn = ["disabled", "placeholder", "required", "name"], Wn = {
|
|
|
867
867
|
const v = F.value.find((w) => w.ref === i);
|
|
868
868
|
if (v)
|
|
869
869
|
return v;
|
|
870
|
-
const h = s.keyExtractor ? (w, C) => s.keyExtractor(w) === s.keyExtractor(C) :
|
|
870
|
+
const h = s.keyExtractor ? (w, C) => s.keyExtractor(w) === s.keyExtractor(C) : it, d = F.value.find((w) => h(w.ref, i));
|
|
871
871
|
return d || null;
|
|
872
872
|
}
|
|
873
873
|
function Ot() {
|
|
@@ -885,9 +885,9 @@ const Rn = ["disabled", "placeholder", "required", "name"], Wn = {
|
|
|
885
885
|
const C = window.innerHeight - v - 12;
|
|
886
886
|
d.style.maxHeight = C + "px";
|
|
887
887
|
}
|
|
888
|
-
d.style.visibility = "visible", document.body.appendChild(d), setTimeout(
|
|
888
|
+
d.style.visibility = "visible", document.body.appendChild(d), setTimeout($e, 0);
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function $e() {
|
|
891
891
|
if (!q.value || !L.value) return;
|
|
892
892
|
const i = F.value.findIndex((d) => d.key == L.value), v = m.value, h = v == null ? void 0 : v.querySelectorAll(".option")[i];
|
|
893
893
|
h && (v.scrollTop = h.offsetTop);
|
|
@@ -903,7 +903,7 @@ const Rn = ["disabled", "placeholder", "required", "name"], Wn = {
|
|
|
903
903
|
const d = m.value, w = d == null ? void 0 : d.querySelectorAll(".option")[h];
|
|
904
904
|
w && (w.offsetTop < d.scrollTop ? d.scrollTop = w.offsetTop : w.offsetTop + w.offsetHeight > d.scrollTop + d.clientHeight && (d.scrollTop = w.offsetTop + w.offsetHeight - d.clientHeight));
|
|
905
905
|
}
|
|
906
|
-
function
|
|
906
|
+
function Be(i) {
|
|
907
907
|
var v, h;
|
|
908
908
|
if (y.value = !1, i.key === o)
|
|
909
909
|
c.value = "", f.value = null, g.value = null;
|
|
@@ -914,15 +914,15 @@ const Rn = ["disabled", "placeholder", "required", "name"], Wn = {
|
|
|
914
914
|
const w = ve.value.find((C) => C.key == i.key).ref;
|
|
915
915
|
f.value = w, g.value = Ie.value(w), c.value = g.value ?? "";
|
|
916
916
|
}
|
|
917
|
-
(h = u.value) == null || h.blur(),
|
|
917
|
+
(h = u.value) == null || h.blur(), _e();
|
|
918
918
|
}
|
|
919
919
|
function pe() {
|
|
920
|
-
s.modelValue !== null ? (f.value = z.value ? Oe.value.find((i) => s.modelValue === z.value(i)) : s.modelValue, g.value =
|
|
920
|
+
s.modelValue !== null ? (f.value = z.value ? Oe.value.find((i) => s.modelValue === z.value(i)) : s.modelValue, g.value = Pe(f.value) ? Ie.value(f.value) : null, c.value = g.value ?? "") : (f.value = null, g.value = null, c.value = "");
|
|
921
921
|
}
|
|
922
922
|
function At(i) {
|
|
923
923
|
p.value.unshift(i);
|
|
924
924
|
}
|
|
925
|
-
function
|
|
925
|
+
function _e() {
|
|
926
926
|
var w;
|
|
927
927
|
if (!s.autoNext) return;
|
|
928
928
|
let i = (w = r.value) == null ? void 0 : w.parentElement;
|
|
@@ -946,12 +946,12 @@ const Rn = ["disabled", "placeholder", "required", "name"], Wn = {
|
|
|
946
946
|
type: "text",
|
|
947
947
|
disabled: xe.value,
|
|
948
948
|
class: A({ nullable: !!i.nullTitle }),
|
|
949
|
-
placeholder:
|
|
949
|
+
placeholder: Tt.value,
|
|
950
950
|
required: i.required,
|
|
951
951
|
name: i.name,
|
|
952
952
|
"data-1p-ignore": "",
|
|
953
|
-
onKeydown:
|
|
954
|
-
onFocus:
|
|
953
|
+
onKeydown: Lt,
|
|
954
|
+
onFocus: xt,
|
|
955
955
|
onBlur: Ot
|
|
956
956
|
}, null, 42, Rn), [
|
|
957
957
|
[qt, c.value]
|
|
@@ -962,7 +962,7 @@ const Rn = ["disabled", "placeholder", "required", "name"], Wn = {
|
|
|
962
962
|
ref: m,
|
|
963
963
|
class: A(["vf-smart-select-options", { grouped: De.value }])
|
|
964
964
|
}, [
|
|
965
|
-
q.value ? (b(!0), k(se, { key: 1 }, ie(
|
|
965
|
+
q.value ? (b(!0), k(se, { key: 1 }, ie(St.value, (h) => (b(), k("div", {
|
|
966
966
|
key: h.groupTitle,
|
|
967
967
|
class: "group"
|
|
968
968
|
}, [
|
|
@@ -979,7 +979,7 @@ const Rn = ["disabled", "placeholder", "required", "name"], Wn = {
|
|
|
979
979
|
key: d.key,
|
|
980
980
|
class: A(["option", [L.value === d.key && "highlighted", d.ref && ((w = i.classForOption) == null ? void 0 : w.call(i, d.ref))]]),
|
|
981
981
|
onMousemove: (C) => Vt(d),
|
|
982
|
-
onMousedown: (C) =>
|
|
982
|
+
onMousedown: (C) => Be(d)
|
|
983
983
|
}, [
|
|
984
984
|
U(i.$slots, "option", { option: d }, () => [
|
|
985
985
|
$("div", {
|
|
@@ -996,7 +996,7 @@ const Rn = ["disabled", "placeholder", "required", "name"], Wn = {
|
|
|
996
996
|
}), 128)),
|
|
997
997
|
!F.value.length && c.value ? (b(), k("div", zn, [
|
|
998
998
|
U(i.$slots, "no-results", {}, () => [
|
|
999
|
-
Z(W(
|
|
999
|
+
Z(W(Ct.value), 1)
|
|
1000
1000
|
])
|
|
1001
1001
|
])) : V("", !0)
|
|
1002
1002
|
]))), 128)) : (b(), k("div", Wn, "Loading..."))
|
|
@@ -1026,9 +1026,9 @@ const Rn = ["disabled", "placeholder", "required", "name"], Wn = {
|
|
|
1026
1026
|
}
|
|
1027
1027
|
), D(a, (r) => {
|
|
1028
1028
|
var m;
|
|
1029
|
-
const u = r ? (m = o.value.find((E) =>
|
|
1029
|
+
const u = r ? (m = o.value.find((E) => it(E, r))) == null ? void 0 : m.value : null;
|
|
1030
1030
|
s("update:modelValue", u ?? null);
|
|
1031
|
-
}), (r, u) => (b(),
|
|
1031
|
+
}), (r, u) => (b(), tt(Yn, {
|
|
1032
1032
|
modelValue: a.value,
|
|
1033
1033
|
"onUpdate:modelValue": u[0] || (u[0] = (m) => a.value = m),
|
|
1034
1034
|
options: o.value,
|
|
@@ -1115,14 +1115,14 @@ function so(e) {
|
|
|
1115
1115
|
function io(e) {
|
|
1116
1116
|
return e ? Gt(e) : null;
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1118
|
+
function dt(e) {
|
|
1119
1119
|
return e ? Zt(e) : null;
|
|
1120
1120
|
}
|
|
1121
1121
|
function lo(e) {
|
|
1122
1122
|
return e ? e.toUpperCase() : null;
|
|
1123
1123
|
}
|
|
1124
1124
|
function ro(e) {
|
|
1125
|
-
return e ?
|
|
1125
|
+
return e ? dt(e.toLowerCase()) : null;
|
|
1126
1126
|
}
|
|
1127
1127
|
function ao(e) {
|
|
1128
1128
|
return e ? Bn(e) : null;
|
|
@@ -1145,14 +1145,14 @@ function mo(e, t) {
|
|
|
1145
1145
|
function po(e) {
|
|
1146
1146
|
return e && P(on(sn(e, "yyyy-MM-dd", /* @__PURE__ */ new Date()), 1), I.defaultDateFormat);
|
|
1147
1147
|
}
|
|
1148
|
-
const
|
|
1148
|
+
const ze = {
|
|
1149
1149
|
bytes: eo,
|
|
1150
1150
|
dash: to,
|
|
1151
1151
|
dashZeros: no,
|
|
1152
1152
|
number: oo,
|
|
1153
1153
|
phone: so,
|
|
1154
1154
|
upperFirst: io,
|
|
1155
|
-
startCase:
|
|
1155
|
+
startCase: dt,
|
|
1156
1156
|
upperCase: lo,
|
|
1157
1157
|
upperWords: ro,
|
|
1158
1158
|
desnake: ao,
|
|
@@ -1163,17 +1163,17 @@ const qe = {
|
|
|
1163
1163
|
dateTime: mo,
|
|
1164
1164
|
oneDayForward: po
|
|
1165
1165
|
}, ds = (e) => ({
|
|
1166
|
-
...
|
|
1167
|
-
...e(
|
|
1166
|
+
...ze,
|
|
1167
|
+
...e(ze)
|
|
1168
1168
|
}), Me = Symbol("HookState");
|
|
1169
1169
|
function fs(e, t) {
|
|
1170
1170
|
const n = t ?? Ee();
|
|
1171
|
-
_(() => ho(n, e), n),
|
|
1171
|
+
_(() => ho(n, e), n), nt(() => yo(n), n), ot(() => Ke(n), n), ae(() => Ke(n), n);
|
|
1172
1172
|
}
|
|
1173
1173
|
function ho(e, t) {
|
|
1174
1174
|
const n = {};
|
|
1175
1175
|
if (t.elScrolledToBottom && (n.el = new J(e.vnode.el, t.elScrolledToBottom)), t.ancestorScrolledToBottom) {
|
|
1176
|
-
const o =
|
|
1176
|
+
const o = ft(e.vnode.el);
|
|
1177
1177
|
o ? n.ancestor = new J(o, t.ancestorScrolledToBottom) : console.warn("[VueFoundation] No scollable ancestor found for component:", e);
|
|
1178
1178
|
}
|
|
1179
1179
|
t.windowScrolledToBottom && (n.window = new J(window, t.windowScrolledToBottom)), e[Me] = n;
|
|
@@ -1183,17 +1183,17 @@ function yo(e) {
|
|
|
1183
1183
|
const t = e[Me];
|
|
1184
1184
|
(n = t == null ? void 0 : t.el) == null || n.install(), (o = t == null ? void 0 : t.ancestor) == null || o.install(), (l = t == null ? void 0 : t.window) == null || l.install();
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function Ke(e) {
|
|
1187
1187
|
var n, o, l;
|
|
1188
1188
|
const t = e[Me];
|
|
1189
1189
|
(n = t == null ? void 0 : t.el) == null || n.uninstall(), (o = t == null ? void 0 : t.ancestor) == null || o.uninstall(), (l = t == null ? void 0 : t.window) == null || l.uninstall();
|
|
1190
1190
|
}
|
|
1191
1191
|
const ge = ["auto", "scroll"];
|
|
1192
|
-
function
|
|
1192
|
+
function ft(e) {
|
|
1193
1193
|
const t = e.parentElement;
|
|
1194
1194
|
if (!t) return null;
|
|
1195
1195
|
const n = window.getComputedStyle(t);
|
|
1196
|
-
return ge.includes(n.overflow) || ge.includes(n.overflowX) || ge.includes(n.overflowY) ? t :
|
|
1196
|
+
return ge.includes(n.overflow) || ge.includes(n.overflowX) || ge.includes(n.overflowY) ? t : ft(t);
|
|
1197
1197
|
}
|
|
1198
1198
|
class J {
|
|
1199
1199
|
constructor(t, n) {
|
|
@@ -1212,15 +1212,15 @@ class J {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
1214
|
function vs(e) {
|
|
1215
|
-
_(() => window.addEventListener("resize", e)),
|
|
1215
|
+
_(() => window.addEventListener("resize", e)), nt(() => window.addEventListener("resize", e)), ot(() => window.removeEventListener("resize", e)), ae(() => window.removeEventListener("resize", e));
|
|
1216
1216
|
}
|
|
1217
1217
|
const go = {
|
|
1218
|
-
mounted:
|
|
1219
|
-
updated:
|
|
1220
|
-
},
|
|
1221
|
-
function
|
|
1222
|
-
if (t.value === void 0 && e[
|
|
1223
|
-
e[
|
|
1218
|
+
mounted: Xe,
|
|
1219
|
+
updated: Xe
|
|
1220
|
+
}, Ye = Symbol("HasAutoFocused");
|
|
1221
|
+
function Xe(e, t) {
|
|
1222
|
+
if (t.value === void 0 && e[Ye] || t.value !== void 0 && !t.value || t.oldValue !== void 0 && t.value == t.oldValue) return;
|
|
1223
|
+
e[Ye] = !0;
|
|
1224
1224
|
const n = ["BUTTON", "INPUT", "TEXTAREA", "SELECT"].indexOf(e.tagName) > -1 ? e : e.querySelectorAll("input")[0];
|
|
1225
1225
|
setTimeout(() => n.focus(), 10);
|
|
1226
1226
|
}
|
|
@@ -1261,10 +1261,10 @@ function ko(e) {
|
|
|
1261
1261
|
});
|
|
1262
1262
|
}
|
|
1263
1263
|
const To = {
|
|
1264
|
-
beforeMount:
|
|
1265
|
-
updated:
|
|
1264
|
+
beforeMount: Ze,
|
|
1265
|
+
updated: Ze
|
|
1266
1266
|
};
|
|
1267
|
-
function
|
|
1267
|
+
function Ze(e, t) {
|
|
1268
1268
|
t.value == t.oldValue && e.innerHTML.length || (e.innerText = Co(e, t));
|
|
1269
1269
|
}
|
|
1270
1270
|
function Co(e, t) {
|
|
@@ -1285,47 +1285,47 @@ function Co(e, t) {
|
|
|
1285
1285
|
const y = /* @__PURE__ */ new Date();
|
|
1286
1286
|
y.getFullYear() === s.getFullYear() ? (y.getMonth() !== s.getMonth() || y.getDate() !== s.getDate()) && (p = "M/d") : p = "M/d/yy";
|
|
1287
1287
|
const c = r ? null : I.defaultTimeFormat;
|
|
1288
|
-
a =
|
|
1288
|
+
a = st([p, c]).join(" ");
|
|
1289
1289
|
}
|
|
1290
1290
|
a || (r ? a = I.defaultDateFormat : a = `${I.defaultDateFormat} ${I.defaultTimeFormat}`);
|
|
1291
1291
|
let u = P(s, a);
|
|
1292
1292
|
return n && (u = n + " " + u), u;
|
|
1293
1293
|
}
|
|
1294
1294
|
const So = {
|
|
1295
|
-
beforeMount:
|
|
1296
|
-
updated:
|
|
1295
|
+
beforeMount: Ge,
|
|
1296
|
+
updated: Ge,
|
|
1297
1297
|
unmounted: Mo
|
|
1298
1298
|
};
|
|
1299
|
-
function
|
|
1299
|
+
function Ge(e, t) {
|
|
1300
1300
|
e.tagName === "LABEL" && (t.value ? e.classList.remove("disabled") : e.classList.add("disabled"), e = e.querySelector("input")), t.value ? e.setAttribute("disabled", "disabled") : e.removeAttribute("disabled");
|
|
1301
1301
|
}
|
|
1302
1302
|
function Mo(e) {
|
|
1303
1303
|
e.tagName === "LABEL" && (e.classList.remove("disabled"), e = e.querySelector("input")), e.removeAttribute("disabled");
|
|
1304
1304
|
}
|
|
1305
1305
|
const Lo = {
|
|
1306
|
-
beforeMount:
|
|
1307
|
-
updated:
|
|
1308
|
-
unmounted:
|
|
1306
|
+
beforeMount: Je,
|
|
1307
|
+
updated: Je,
|
|
1308
|
+
unmounted: mt
|
|
1309
1309
|
}, ee = Symbol("HasAutoFocused"), Le = [];
|
|
1310
1310
|
function xo() {
|
|
1311
|
-
Le.forEach(
|
|
1311
|
+
Le.forEach(vt);
|
|
1312
1312
|
}
|
|
1313
1313
|
setInterval(xo, 1e3);
|
|
1314
|
-
function
|
|
1314
|
+
function Je(e, t) {
|
|
1315
1315
|
var a;
|
|
1316
1316
|
if (t.value == t.oldValue) return;
|
|
1317
|
-
if (!t.value) return
|
|
1317
|
+
if (!t.value) return mt(e);
|
|
1318
1318
|
const n = new Date(t.value), o = (a = e.attributes.getNamedItem("base-time")) == null ? void 0 : a.value, l = n.getTime() - (o ? new Date(o).getTime() - t.value * 1e3 : 0), s = e.getAttribute("no-seconds") === null;
|
|
1319
1319
|
e[ee] || Le.push(e), e[ee] = {
|
|
1320
1320
|
startTs: l,
|
|
1321
1321
|
includeSeconds: s
|
|
1322
|
-
},
|
|
1322
|
+
}, vt(e);
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function vt(e) {
|
|
1325
1325
|
const t = e[ee], n = Math.round((Date.now() - t.startTs) / 1e3);
|
|
1326
1326
|
e.innerText = Fo(n, t.includeSeconds);
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1328
|
+
function mt(e) {
|
|
1329
1329
|
e[ee] && (Jt(Le, e), delete e[ee]), e.innerText = "-";
|
|
1330
1330
|
}
|
|
1331
1331
|
function Fo(e, t) {
|
|
@@ -1337,25 +1337,25 @@ function Fo(e, t) {
|
|
|
1337
1337
|
return (o || l || s) && n.push(s + "m"), t ? n.length || n.push("0m") : (e -= s * 60, n.push(e + "s")), n.join(" ");
|
|
1338
1338
|
}
|
|
1339
1339
|
const Io = {
|
|
1340
|
-
mounted:
|
|
1340
|
+
mounted: pt,
|
|
1341
1341
|
updated: Oo,
|
|
1342
|
-
unmounted:
|
|
1342
|
+
unmounted: ht
|
|
1343
1343
|
}, j = /* @__PURE__ */ new Map();
|
|
1344
|
-
function mt(e, t) {
|
|
1345
|
-
j.size === 0 && window.addEventListener("keydown", ht), j.set(t.value.toLowerCase(), [...j.get(t.value.toLowerCase()) ?? [], e]);
|
|
1346
|
-
}
|
|
1347
1344
|
function pt(e, t) {
|
|
1345
|
+
j.size === 0 && window.addEventListener("keydown", yt), j.set(t.value.toLowerCase(), [...j.get(t.value.toLowerCase()) ?? [], e]);
|
|
1346
|
+
}
|
|
1347
|
+
function ht(e, t) {
|
|
1348
1348
|
const n = j.get(t.value.toLowerCase());
|
|
1349
1349
|
if (n) {
|
|
1350
1350
|
const o = n.indexOf(e);
|
|
1351
1351
|
o !== -1 && n.splice(o, 1), n.length === 0 && j.delete(t.value.toLowerCase());
|
|
1352
1352
|
}
|
|
1353
|
-
j.size === 0 && window.removeEventListener("keydown",
|
|
1353
|
+
j.size === 0 && window.removeEventListener("keydown", yt);
|
|
1354
1354
|
}
|
|
1355
1355
|
function Oo(e, t) {
|
|
1356
|
-
|
|
1356
|
+
ht(e, t), pt(e, t);
|
|
1357
1357
|
}
|
|
1358
|
-
function
|
|
1358
|
+
function yt(e) {
|
|
1359
1359
|
if (typeof e.key != "string") return;
|
|
1360
1360
|
const t = e.key.toLowerCase(), n = j.get(t);
|
|
1361
1361
|
if (n) {
|
|
@@ -1376,18 +1376,18 @@ const X = Symbol("InfiniteScrollHandler"), Do = {
|
|
|
1376
1376
|
(t = e[X]) == null || t.uninstall(), delete e[X];
|
|
1377
1377
|
}
|
|
1378
1378
|
}, Ho = {
|
|
1379
|
-
beforeMount:
|
|
1380
|
-
updated:
|
|
1379
|
+
beforeMount: Qe,
|
|
1380
|
+
updated: Qe
|
|
1381
1381
|
};
|
|
1382
|
-
function
|
|
1382
|
+
function Qe(e, t) {
|
|
1383
1383
|
e.tagName == "LABEL" && (e = e.querySelector("input")), t.value ? e.setAttribute("readonly", "readonly") : e.removeAttribute("readonly");
|
|
1384
1384
|
}
|
|
1385
1385
|
const Vo = {
|
|
1386
|
-
mounted:
|
|
1387
|
-
updated:
|
|
1388
|
-
unmounted:
|
|
1386
|
+
mounted: et,
|
|
1387
|
+
updated: et,
|
|
1388
|
+
unmounted: gt
|
|
1389
1389
|
}, Q = Symbol("TooltipState");
|
|
1390
|
-
function
|
|
1390
|
+
function et(e, t) {
|
|
1391
1391
|
var o;
|
|
1392
1392
|
let n = ((o = e.attributes.getNamedItem("tip")) == null ? void 0 : o.value) ?? t.value;
|
|
1393
1393
|
if (t.value || (n = null), n) {
|
|
@@ -1397,9 +1397,9 @@ function Qe(e, t) {
|
|
|
1397
1397
|
};
|
|
1398
1398
|
e[Q] ? e[Q].configure(l) : e[Q] = new Ao(e, l);
|
|
1399
1399
|
} else
|
|
1400
|
-
|
|
1400
|
+
gt(e);
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function gt(e) {
|
|
1403
1403
|
var t;
|
|
1404
1404
|
(t = e[Q]) == null || t.destroy(), delete e[Q];
|
|
1405
1405
|
}
|
|
@@ -1473,7 +1473,7 @@ export {
|
|
|
1473
1473
|
Bn as desnakeCase,
|
|
1474
1474
|
fn as dismissOverlayInjectionById,
|
|
1475
1475
|
qo as dismissOverlayInjectionByInstance,
|
|
1476
|
-
|
|
1476
|
+
lt as dismissOverlayInjectionByInternalInstance,
|
|
1477
1477
|
dn as dismissOverlayInjectionByVnode,
|
|
1478
1478
|
ys as escapeHtml,
|
|
1479
1479
|
mn as formatError,
|
|
@@ -1484,7 +1484,7 @@ export {
|
|
|
1484
1484
|
Zo as handleErrorAndAlert,
|
|
1485
1485
|
ms as installVf,
|
|
1486
1486
|
pn as isError,
|
|
1487
|
-
|
|
1487
|
+
Pe as isNotNullOrUndefined,
|
|
1488
1488
|
Jo as maskComponent,
|
|
1489
1489
|
hn as maskEl,
|
|
1490
1490
|
yn as maskForm,
|
|
@@ -1503,8 +1503,8 @@ export {
|
|
|
1503
1503
|
ns as sleepSecs,
|
|
1504
1504
|
Ce as toError,
|
|
1505
1505
|
Qo as unmaskComponent,
|
|
1506
|
-
|
|
1507
|
-
|
|
1506
|
+
rt as unmaskEl,
|
|
1507
|
+
at as unmaskForm,
|
|
1508
1508
|
fs as useInfiniteScroll,
|
|
1509
1509
|
vs as useResizeWatcher,
|
|
1510
1510
|
rs as uuid,
|
package/package.json
CHANGED