@signal24/vue-foundation 4.21.1 → 4.23.0
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/dist/src/components/modal-helpers.d.ts +10 -6
- package/dist/src/components/overlay-anchor.vue.d.ts +2 -3198
- package/dist/src/components/vf-modal.vue.d.ts +2 -17
- package/dist/src/components/vf-smart-select.vue.d.ts +4 -3
- package/dist/src/helpers/error.d.ts +1 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/vue-foundation.es.js +170 -166
- package/eslint.config.mjs +6 -3
- package/package.json +20 -20
- package/src/helpers/error.ts +8 -1
|
@@ -4,7 +4,7 @@ var F = (e, t, n) => St(e, typeof t != "symbol" ? t + "" : t, n);
|
|
|
4
4
|
import { defineComponent as _, ref as T, computed as x, watch as O, onMounted as V, createElementBlock as b, withDirectives as J, openBlock as E, createElementVNode as D, toDisplayString as U, createCommentVNode as A, Fragment as ee, renderList as he, vModelSelect as Ct, getCurrentInstance as pe, withModifiers as ye, normalizeStyle as Lt, normalizeClass as B, renderSlot as j, reactive as Mt, h as te, Teleport as xt, markRaw as It, onBeforeUnmount as ge, resolveDirective as Ht, createBlock as qe, createSlots as Ft, withCtx as ce, createTextVNode as Q, vModelText as Ot, onActivated as ze, onDeactivated as Ke } from "vue";
|
|
5
5
|
import { compact as Ye, debounce as At, isEqual as Xe, startCase as Dt, upperFirst as Bt, cloneDeep as $t, remove as Vt, last as Nt } from "lodash";
|
|
6
6
|
import { escapeHtml as _t } from "@vue/shared";
|
|
7
|
-
import { escapeHtml as
|
|
7
|
+
import { escapeHtml as jo } from "@vue/shared";
|
|
8
8
|
import { configureOpenApiClient as Rt, OpenApiError as Wt } from "@signal24/openapi-client-codegen/browser";
|
|
9
9
|
import { format as ve } from "date-fns";
|
|
10
10
|
const Ut = {
|
|
@@ -13,7 +13,7 @@ const Ut = {
|
|
|
13
13
|
}, jt = {
|
|
14
14
|
key: 0,
|
|
15
15
|
value: null
|
|
16
|
-
}, Pt = ["value"],
|
|
16
|
+
}, Pt = ["value"], ho = /* @__PURE__ */ _({
|
|
17
17
|
__name: "vf-ajax-select",
|
|
18
18
|
props: {
|
|
19
19
|
modelValue: {},
|
|
@@ -112,7 +112,7 @@ const Ut = {
|
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
114
|
let zt = 0;
|
|
115
|
-
const N = Mt([]),
|
|
115
|
+
const N = Mt([]), po = _({
|
|
116
116
|
setup() {
|
|
117
117
|
return () => te("div", [
|
|
118
118
|
he(N, (e) => te(xt, { key: e.id, to: "#vf-overlay-target" }, [e.wrapperVnode ?? e.vnode]))
|
|
@@ -132,7 +132,7 @@ function we(e, t, n) {
|
|
|
132
132
|
};
|
|
133
133
|
return N.push(d), d;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function yo(e) {
|
|
136
136
|
e.$ && Ze(e.$);
|
|
137
137
|
}
|
|
138
138
|
function Ze(e) {
|
|
@@ -175,14 +175,14 @@ function oe(e, t) {
|
|
|
175
175
|
async function Xt(e, t) {
|
|
176
176
|
await Ee(se, oe(e, t));
|
|
177
177
|
}
|
|
178
|
-
async function
|
|
178
|
+
async function go(e, t) {
|
|
179
179
|
const n = oe(e, t);
|
|
180
180
|
return await Ee(se, {
|
|
181
181
|
...n,
|
|
182
182
|
shouldConfirm: !0
|
|
183
183
|
}) === !0;
|
|
184
184
|
}
|
|
185
|
-
async function
|
|
185
|
+
async function wo(e, t) {
|
|
186
186
|
const n = oe(e, t);
|
|
187
187
|
return await Ee(se, {
|
|
188
188
|
...n,
|
|
@@ -190,7 +190,7 @@ async function go(e, t) {
|
|
|
190
190
|
classes: ["destructive", ...n.classes]
|
|
191
191
|
}) === !0;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Eo(e, t) {
|
|
194
194
|
const n = oe(e, t), o = we(se, {
|
|
195
195
|
...n,
|
|
196
196
|
isBare: !0,
|
|
@@ -206,7 +206,7 @@ const $ = {
|
|
|
206
206
|
defaultDateFormat: "M/d/yy",
|
|
207
207
|
defaultTimeFormat: "H:mm"
|
|
208
208
|
};
|
|
209
|
-
function
|
|
209
|
+
function bo(e) {
|
|
210
210
|
Object.assign($, e);
|
|
211
211
|
}
|
|
212
212
|
class le extends Error {
|
|
@@ -222,9 +222,12 @@ ${be(e).message}
|
|
|
222
222
|
Please refresh the page and try again. If this error persists, ${$.unhandledErrorSupportText}.`;
|
|
223
223
|
}
|
|
224
224
|
function be(e) {
|
|
225
|
-
return e
|
|
225
|
+
return Gt(e) ? e : new Error(String(e));
|
|
226
226
|
}
|
|
227
|
-
|
|
227
|
+
function Gt(e) {
|
|
228
|
+
return e instanceof Error || typeof e == "object" && e !== null && "message" in e && "name" in e;
|
|
229
|
+
}
|
|
230
|
+
async function ko(e, t) {
|
|
228
231
|
const n = be(e);
|
|
229
232
|
return n instanceof le || $.errorHandler(n), Xt({
|
|
230
233
|
title: t == null ? void 0 : t.title,
|
|
@@ -232,22 +235,22 @@ async function bo(e, t) {
|
|
|
232
235
|
classes: t == null ? void 0 : t.classes
|
|
233
236
|
});
|
|
234
237
|
}
|
|
235
|
-
async function
|
|
238
|
+
async function To(e) {
|
|
236
239
|
const t = be(e);
|
|
237
240
|
t instanceof le || $.errorHandler(t);
|
|
238
241
|
}
|
|
239
242
|
const K = Symbol("MaskState");
|
|
240
|
-
function
|
|
243
|
+
function So(e, t) {
|
|
241
244
|
var i;
|
|
242
245
|
const n = (i = e.$) == null ? void 0 : i.vnode.el, o = n.closest(".vf-modal");
|
|
243
|
-
return
|
|
246
|
+
return Qt(o ?? n, t);
|
|
244
247
|
}
|
|
245
|
-
function
|
|
248
|
+
function Co(e) {
|
|
246
249
|
var o;
|
|
247
250
|
const t = (o = e.$) == null ? void 0 : o.vnode.el, n = t.closest(".vf-modal");
|
|
248
251
|
return Ge(n ?? t);
|
|
249
252
|
}
|
|
250
|
-
function
|
|
253
|
+
function Qt(e, t) {
|
|
251
254
|
if (!e[K]) {
|
|
252
255
|
const n = document.createElement("div");
|
|
253
256
|
n.classList.add("vf-mask"), e.appendChild(n), e[K] = { maskEl: n };
|
|
@@ -258,7 +261,7 @@ function Ge(e) {
|
|
|
258
261
|
e[K] && e.removeChild(e[K].maskEl);
|
|
259
262
|
}
|
|
260
263
|
const me = Symbol("FormMaskState");
|
|
261
|
-
function
|
|
264
|
+
function Jt(e, t, n) {
|
|
262
265
|
const o = e instanceof Element ? e : Je(e);
|
|
263
266
|
if (!o) return () => {
|
|
264
267
|
};
|
|
@@ -284,13 +287,13 @@ function Je(e) {
|
|
|
284
287
|
const t = (n = e == null ? void 0 : e.$) == null ? void 0 : n.vnode.el;
|
|
285
288
|
return t ? t.tagName === "FORM" ? t : t.querySelector("form") : null;
|
|
286
289
|
}
|
|
287
|
-
const
|
|
290
|
+
const en = ["id"], tn = {
|
|
288
291
|
key: 0,
|
|
289
292
|
class: "vf-modal-header"
|
|
290
|
-
},
|
|
293
|
+
}, nn = { class: "vf-modal-content" }, on = {
|
|
291
294
|
key: 1,
|
|
292
295
|
class: "vf-modal-footer"
|
|
293
|
-
},
|
|
296
|
+
}, ln = /* @__PURE__ */ _({
|
|
294
297
|
__name: "vf-modal",
|
|
295
298
|
props: {
|
|
296
299
|
id: {},
|
|
@@ -323,7 +326,7 @@ const Jt = ["id"], en = {
|
|
|
323
326
|
Ze(n);
|
|
324
327
|
}
|
|
325
328
|
function f() {
|
|
326
|
-
return
|
|
329
|
+
return Jt(l.value), () => w();
|
|
327
330
|
}
|
|
328
331
|
function w() {
|
|
329
332
|
Qe(l.value);
|
|
@@ -347,7 +350,7 @@ const Jt = ["id"], en = {
|
|
|
347
350
|
class: B(["vf-modal", { scrolls: c.scrolls }]),
|
|
348
351
|
onSubmit: S[0] || (S[0] = ye((I) => c.$emit("formSubmit"), ["prevent"]))
|
|
349
352
|
}, [
|
|
350
|
-
c.$slots.header ? (E(), b("div",
|
|
353
|
+
c.$slots.header ? (E(), b("div", tn, [
|
|
351
354
|
j(c.$slots, "header"),
|
|
352
355
|
o.closeX ? (E(), b("i", {
|
|
353
356
|
key: 0,
|
|
@@ -355,16 +358,16 @@ const Jt = ["id"], en = {
|
|
|
355
358
|
onClick: k
|
|
356
359
|
})) : A("", !0)
|
|
357
360
|
])) : A("", !0),
|
|
358
|
-
D("div",
|
|
361
|
+
D("div", nn, [
|
|
359
362
|
j(c.$slots, "default")
|
|
360
363
|
]),
|
|
361
|
-
c.$slots.footer ? (E(), b("div",
|
|
364
|
+
c.$slots.footer ? (E(), b("div", on, [
|
|
362
365
|
j(c.$slots, "footer")
|
|
363
366
|
])) : A("", !0)
|
|
364
367
|
], 34)
|
|
365
|
-
], 10,
|
|
368
|
+
], 10, en));
|
|
366
369
|
}
|
|
367
|
-
}),
|
|
370
|
+
}), sn = ["innerHtml"], rn = ["innerText"], se = /* @__PURE__ */ _({
|
|
368
371
|
__name: "vf-alert-modal",
|
|
369
372
|
props: {
|
|
370
373
|
isBare: { type: Boolean },
|
|
@@ -380,7 +383,7 @@ const Jt = ["id"], en = {
|
|
|
380
383
|
const t = e, n = x(() => t.message instanceof Error ? Zt(t.message) : t.message);
|
|
381
384
|
return (o, i) => {
|
|
382
385
|
const l = Ht("autofocus");
|
|
383
|
-
return E(), qe(
|
|
386
|
+
return E(), qe(ln, {
|
|
384
387
|
class: B(["vf-alert", ...o.classes ?? []])
|
|
385
388
|
}, Ft({
|
|
386
389
|
default: ce(() => [
|
|
@@ -392,10 +395,10 @@ const Jt = ["id"], en = {
|
|
|
392
395
|
key: 1,
|
|
393
396
|
innerHtml: o.message,
|
|
394
397
|
class: "user-message"
|
|
395
|
-
}, null, 8,
|
|
398
|
+
}, null, 8, sn)) : (E(), b("div", {
|
|
396
399
|
key: 2,
|
|
397
400
|
innerText: n.value
|
|
398
|
-
}, null, 8,
|
|
401
|
+
}, null, 8, rn))
|
|
399
402
|
]),
|
|
400
403
|
_: 2
|
|
401
404
|
}, [
|
|
@@ -440,53 +443,53 @@ const Jt = ["id"], en = {
|
|
|
440
443
|
}), M = [];
|
|
441
444
|
for (let e = 0; e < 256; ++e)
|
|
442
445
|
M.push((e + 256).toString(16).slice(1));
|
|
443
|
-
function
|
|
446
|
+
function an(e, t = 0) {
|
|
444
447
|
return (M[e[t + 0]] + M[e[t + 1]] + M[e[t + 2]] + M[e[t + 3]] + "-" + M[e[t + 4]] + M[e[t + 5]] + "-" + M[e[t + 6]] + M[e[t + 7]] + "-" + M[e[t + 8]] + M[e[t + 9]] + "-" + M[e[t + 10]] + M[e[t + 11]] + M[e[t + 12]] + M[e[t + 13]] + M[e[t + 14]] + M[e[t + 15]]).toLowerCase();
|
|
445
448
|
}
|
|
446
449
|
let de;
|
|
447
|
-
const
|
|
448
|
-
function
|
|
450
|
+
const un = new Uint8Array(16);
|
|
451
|
+
function cn() {
|
|
449
452
|
if (!de) {
|
|
450
453
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
451
454
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
452
455
|
de = crypto.getRandomValues.bind(crypto);
|
|
453
456
|
}
|
|
454
|
-
return de(
|
|
457
|
+
return de(un);
|
|
455
458
|
}
|
|
456
|
-
const
|
|
457
|
-
function
|
|
459
|
+
const dn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Be = { randomUUID: dn };
|
|
460
|
+
function fn(e, t, n) {
|
|
458
461
|
var i;
|
|
459
462
|
if (Be.randomUUID && !e)
|
|
460
463
|
return Be.randomUUID();
|
|
461
464
|
e = e || {};
|
|
462
|
-
const o = e.random ?? ((i = e.rng) == null ? void 0 : i.call(e)) ??
|
|
465
|
+
const o = e.random ?? ((i = e.rng) == null ? void 0 : i.call(e)) ?? cn();
|
|
463
466
|
if (o.length < 16)
|
|
464
467
|
throw new Error("Random bytes length must be >= 16");
|
|
465
|
-
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128,
|
|
468
|
+
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, an(o);
|
|
466
469
|
}
|
|
467
|
-
function
|
|
470
|
+
function Lo(e) {
|
|
468
471
|
return e.replace(/\n/g, "<br>");
|
|
469
472
|
}
|
|
470
|
-
function
|
|
473
|
+
function vn(e) {
|
|
471
474
|
return e.replace(/_/g, " ");
|
|
472
475
|
}
|
|
473
|
-
function
|
|
476
|
+
function mn(e) {
|
|
474
477
|
const t = e.replace(/\D/g, "").replace(/^1/, "");
|
|
475
478
|
return t.length != 10 ? e : "(" + t.substring(0, 3) + ") " + t.substring(3, 6) + "-" + t.substring(6);
|
|
476
479
|
}
|
|
477
|
-
function
|
|
480
|
+
function hn(e, t = 1) {
|
|
478
481
|
return "$" + (Number(e) / t).toFixed(3).replace(/0$/, "").replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
479
482
|
}
|
|
480
|
-
function
|
|
481
|
-
return
|
|
483
|
+
function Mo() {
|
|
484
|
+
return fn();
|
|
482
485
|
}
|
|
483
|
-
const
|
|
486
|
+
const pn = ["disabled", "placeholder", "required"], yn = {
|
|
484
487
|
key: 0,
|
|
485
488
|
class: "no-results"
|
|
486
|
-
},
|
|
489
|
+
}, gn = ["onMousemove", "onMousedown"], wn = ["innerHTML"], En = ["innerHTML"], bn = {
|
|
487
490
|
key: 0,
|
|
488
491
|
class: "no-results"
|
|
489
|
-
},
|
|
492
|
+
}, kn = "`1234567890-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", Tn = /* @__PURE__ */ _({
|
|
490
493
|
__name: "vf-smart-select",
|
|
491
494
|
props: {
|
|
492
495
|
modelValue: {},
|
|
@@ -617,7 +620,7 @@ const hn = ["disabled", "placeholder", "required"], pn = {
|
|
|
617
620
|
a.value.length > 1 && (p.value = !0);
|
|
618
621
|
return;
|
|
619
622
|
}
|
|
620
|
-
!s.metaKey &&
|
|
623
|
+
!s.metaKey && kn.includes(s.key) && (p.value = !0);
|
|
621
624
|
}
|
|
622
625
|
}
|
|
623
626
|
function mt() {
|
|
@@ -722,7 +725,7 @@ const hn = ["disabled", "placeholder", "required"], pn = {
|
|
|
722
725
|
onKeydown: vt,
|
|
723
726
|
onFocus: mt,
|
|
724
727
|
onBlur: gt
|
|
725
|
-
}, null, 42,
|
|
728
|
+
}, null, 42, pn), [
|
|
726
729
|
[Ot, a.value]
|
|
727
730
|
]),
|
|
728
731
|
I.value ? (E(), b("div", {
|
|
@@ -744,25 +747,25 @@ const hn = ["disabled", "placeholder", "required"], pn = {
|
|
|
744
747
|
D("div", {
|
|
745
748
|
class: "title",
|
|
746
749
|
innerHTML: m.title
|
|
747
|
-
}, null, 8,
|
|
750
|
+
}, null, 8, wn),
|
|
748
751
|
m.subtitle ? (E(), b("div", {
|
|
749
752
|
key: 0,
|
|
750
753
|
class: "subtitle",
|
|
751
754
|
innerHTML: m.subtitle
|
|
752
|
-
}, null, 8,
|
|
755
|
+
}, null, 8, En)) : A("", !0)
|
|
753
756
|
])
|
|
754
|
-
], 42,
|
|
757
|
+
], 42, gn);
|
|
755
758
|
}), 128)),
|
|
756
|
-
!H.value.length && a.value ? (E(), b("div",
|
|
759
|
+
!H.value.length && a.value ? (E(), b("div", bn, [
|
|
757
760
|
j(s.$slots, "no-results", {}, () => [
|
|
758
761
|
Q(U(dt.value), 1)
|
|
759
762
|
])
|
|
760
763
|
])) : A("", !0)
|
|
761
|
-
], 64)) : (E(), b("div",
|
|
764
|
+
], 64)) : (E(), b("div", yn, "Loading..."))
|
|
762
765
|
], 512)) : A("", !0)
|
|
763
766
|
], 2));
|
|
764
767
|
}
|
|
765
|
-
}),
|
|
768
|
+
}), xo = /* @__PURE__ */ _({
|
|
766
769
|
__name: "vf-ez-smart-select",
|
|
767
770
|
props: {
|
|
768
771
|
modelValue: {},
|
|
@@ -786,7 +789,7 @@ const hn = ["disabled", "placeholder", "required"], pn = {
|
|
|
786
789
|
var g;
|
|
787
790
|
const d = r ? (g = o.value.find((k) => Xe(k, r))) == null ? void 0 : g.value : null;
|
|
788
791
|
l("update:modelValue", d ?? null);
|
|
789
|
-
}), (r, d) => (E(), qe(
|
|
792
|
+
}), (r, d) => (E(), qe(Tn, {
|
|
790
793
|
modelValue: u.value,
|
|
791
794
|
"onUpdate:modelValue": d[0] || (d[0] = (g) => u.value = g),
|
|
792
795
|
options: o.value,
|
|
@@ -796,16 +799,16 @@ const hn = ["disabled", "placeholder", "required"], pn = {
|
|
|
796
799
|
}, null, 8, ["modelValue", "options", "formatter", "null-title", "placeholder"]));
|
|
797
800
|
}
|
|
798
801
|
});
|
|
799
|
-
function
|
|
802
|
+
function Io() {
|
|
800
803
|
return T();
|
|
801
804
|
}
|
|
802
|
-
const
|
|
805
|
+
const Sn = { class: "content" }, Cn = { class: "message" }, Ln = {
|
|
803
806
|
key: 0,
|
|
804
807
|
class: "close"
|
|
805
|
-
},
|
|
808
|
+
}, Mn = {
|
|
806
809
|
key: 0,
|
|
807
810
|
class: "progress-bar"
|
|
808
|
-
},
|
|
811
|
+
}, xn = /* @__PURE__ */ _({
|
|
809
812
|
__name: "vf-toast",
|
|
810
813
|
props: {
|
|
811
814
|
message: {},
|
|
@@ -832,11 +835,11 @@ const Tn = { class: "content" }, Sn = { class: "message" }, Cn = {
|
|
|
832
835
|
class: B(["vf-toast", i.className]),
|
|
833
836
|
onClick: ye(n, ["stop"])
|
|
834
837
|
}, [
|
|
835
|
-
D("div",
|
|
836
|
-
D("div",
|
|
837
|
-
i.disableClose ? A("", !0) : (E(), b("div",
|
|
838
|
+
D("div", Sn, [
|
|
839
|
+
D("div", Cn, U(i.message), 1),
|
|
840
|
+
i.disableClose ? A("", !0) : (E(), b("div", Ln, "x"))
|
|
838
841
|
]),
|
|
839
|
-
i.durationSecs !== null ? (E(), b("div",
|
|
842
|
+
i.durationSecs !== null ? (E(), b("div", Mn, [
|
|
840
843
|
D("div", {
|
|
841
844
|
ref_key: "progressInnerEl",
|
|
842
845
|
ref: o,
|
|
@@ -846,64 +849,64 @@ const Tn = { class: "content" }, Sn = { class: "message" }, Cn = {
|
|
|
846
849
|
], 2));
|
|
847
850
|
}
|
|
848
851
|
});
|
|
849
|
-
function
|
|
850
|
-
const t = we(
|
|
852
|
+
function Ho(e) {
|
|
853
|
+
const t = we(xn, {
|
|
851
854
|
...e,
|
|
852
855
|
callback: () => ne(t)
|
|
853
856
|
});
|
|
854
857
|
return () => ne(t);
|
|
855
858
|
}
|
|
856
|
-
function
|
|
859
|
+
function In(e) {
|
|
857
860
|
const t = Math.floor(Math.log(e) / Math.log(1024)), o = (e / Math.pow(1024, t)).toFixed(2), i = ["B", "KB", "MB", "GB", "TB"][t];
|
|
858
861
|
return `${o} ${i}`;
|
|
859
862
|
}
|
|
860
|
-
function In(e) {
|
|
861
|
-
return e != null && String(e).length ? e : "-";
|
|
862
|
-
}
|
|
863
863
|
function Hn(e) {
|
|
864
|
-
return e
|
|
864
|
+
return e != null && String(e).length ? e : "-";
|
|
865
865
|
}
|
|
866
866
|
function Fn(e) {
|
|
867
|
-
return e
|
|
867
|
+
return e || "-";
|
|
868
868
|
}
|
|
869
869
|
function On(e) {
|
|
870
|
-
return e &&
|
|
870
|
+
return e === null || typeof e == "string" && !/^\d+$/.test(e) ? e : Rn(Number(e));
|
|
871
871
|
}
|
|
872
872
|
function An(e) {
|
|
873
|
-
return e
|
|
873
|
+
return e && mn(e);
|
|
874
874
|
}
|
|
875
875
|
function Dn(e) {
|
|
876
|
-
return e ?
|
|
876
|
+
return e ? Bt(e) : null;
|
|
877
877
|
}
|
|
878
878
|
function Bn(e) {
|
|
879
|
-
return e ? e
|
|
879
|
+
return e ? Dt(e) : null;
|
|
880
880
|
}
|
|
881
881
|
function $n(e) {
|
|
882
|
-
return e ?
|
|
882
|
+
return e ? e.toUpperCase() : null;
|
|
883
883
|
}
|
|
884
|
-
function Vn(e
|
|
885
|
-
return
|
|
884
|
+
function Vn(e) {
|
|
885
|
+
return e ? vn(e) : null;
|
|
886
|
+
}
|
|
887
|
+
function Nn(e, t = 1) {
|
|
888
|
+
return hn(e, t);
|
|
886
889
|
}
|
|
887
890
|
const $e = {
|
|
888
|
-
bytes:
|
|
889
|
-
dash:
|
|
890
|
-
dashZeros:
|
|
891
|
-
number:
|
|
892
|
-
phone:
|
|
893
|
-
upperFirst:
|
|
894
|
-
startCase:
|
|
895
|
-
upperCase:
|
|
896
|
-
desnake:
|
|
897
|
-
usCurrency:
|
|
898
|
-
},
|
|
891
|
+
bytes: In,
|
|
892
|
+
dash: Hn,
|
|
893
|
+
dashZeros: Fn,
|
|
894
|
+
number: On,
|
|
895
|
+
phone: An,
|
|
896
|
+
upperFirst: Dn,
|
|
897
|
+
startCase: Bn,
|
|
898
|
+
upperCase: $n,
|
|
899
|
+
desnake: Vn,
|
|
900
|
+
usCurrency: Nn
|
|
901
|
+
}, Fo = (e) => ({
|
|
899
902
|
...$e,
|
|
900
903
|
...e($e)
|
|
901
904
|
});
|
|
902
|
-
function
|
|
905
|
+
function Oo(e, t, n) {
|
|
903
906
|
const o = typeof t == "function" ? e.findIndex(t) : e.indexOf(t);
|
|
904
907
|
return o === -1 ? !1 : (e.splice(o, 1, n), !0);
|
|
905
908
|
}
|
|
906
|
-
function
|
|
909
|
+
function Ao(e, t) {
|
|
907
910
|
const n = document.createElement("div");
|
|
908
911
|
n.classList.add("vf-overlay"), n.addEventListener("click", f), document.body.appendChild(n);
|
|
909
912
|
const o = document.createElement("div");
|
|
@@ -936,20 +939,20 @@ function Oo(e, t) {
|
|
|
936
939
|
a.addEventListener("mouseleave", I), p.stopPropagation();
|
|
937
940
|
}
|
|
938
941
|
}
|
|
939
|
-
const
|
|
940
|
-
function
|
|
942
|
+
const _n = (e) => new Promise((t) => setTimeout(t, e)), Do = (e) => _n(e * 1e3);
|
|
943
|
+
function Rn(e) {
|
|
941
944
|
return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
942
945
|
}
|
|
943
|
-
function
|
|
946
|
+
function Bo(e, t) {
|
|
944
947
|
return e != null ? $t(e) : t;
|
|
945
948
|
}
|
|
946
|
-
function
|
|
949
|
+
function $o(e, t) {
|
|
947
950
|
const n = { ...e };
|
|
948
951
|
for (const o of t)
|
|
949
952
|
n[o] === "" && (n[o] = null);
|
|
950
953
|
return n;
|
|
951
954
|
}
|
|
952
|
-
function
|
|
955
|
+
function Vo(e, t) {
|
|
953
956
|
Rt(e, {
|
|
954
957
|
...t,
|
|
955
958
|
onError(n, o) {
|
|
@@ -961,11 +964,11 @@ function $o(e, t) {
|
|
|
961
964
|
});
|
|
962
965
|
}
|
|
963
966
|
const ke = Symbol("HookState");
|
|
964
|
-
function
|
|
967
|
+
function No(e, t) {
|
|
965
968
|
const n = t ?? pe();
|
|
966
|
-
V(() =>
|
|
969
|
+
V(() => Wn(n, e), n), ze(() => Un(n), n), Ke(() => Ve(n), n), ge(() => Ve(n), n);
|
|
967
970
|
}
|
|
968
|
-
function
|
|
971
|
+
function Wn(e, t) {
|
|
969
972
|
const n = {};
|
|
970
973
|
if (t.elScrolledToBottom && (n.el = new Y(e.vnode.el, t.elScrolledToBottom)), t.ancestorScrolledToBottom) {
|
|
971
974
|
const o = et(e.vnode.el);
|
|
@@ -973,7 +976,7 @@ function Rn(e, t) {
|
|
|
973
976
|
}
|
|
974
977
|
t.windowScrolledToBottom && (n.window = new Y(window, t.windowScrolledToBottom)), e[ke] = n;
|
|
975
978
|
}
|
|
976
|
-
function
|
|
979
|
+
function Un(e) {
|
|
977
980
|
var n, o, i;
|
|
978
981
|
const t = e[ke];
|
|
979
982
|
(n = t == null ? void 0 : t.el) == null || n.install(), (o = t == null ? void 0 : t.ancestor) == null || o.install(), (i = t == null ? void 0 : t.window) == null || i.install();
|
|
@@ -1006,10 +1009,10 @@ class Y {
|
|
|
1006
1009
|
Math.ceil(this.el.scrollTop + this.el.clientHeight + 5) >= this.el.scrollHeight ? this.isTripped || (this.handler(t), this.isTripped = !0) : this.isTripped && (this.isTripped = !1);
|
|
1007
1010
|
}
|
|
1008
1011
|
}
|
|
1009
|
-
function
|
|
1012
|
+
function _o(e) {
|
|
1010
1013
|
V(() => window.addEventListener("resize", e)), ze(() => window.addEventListener("resize", e)), Ke(() => window.removeEventListener("resize", e)), ge(() => window.removeEventListener("resize", e));
|
|
1011
1014
|
}
|
|
1012
|
-
const
|
|
1015
|
+
const jn = {
|
|
1013
1016
|
mounted: _e,
|
|
1014
1017
|
updated: _e
|
|
1015
1018
|
}, Ne = Symbol("HasAutoFocused");
|
|
@@ -1019,10 +1022,10 @@ function _e(e, t) {
|
|
|
1019
1022
|
const n = ["BUTTON", "INPUT", "TEXTAREA", "SELECT"].indexOf(e.tagName) > -1 ? e : e.querySelectorAll("input")[0];
|
|
1020
1023
|
setTimeout(() => n.focus(), 10);
|
|
1021
1024
|
}
|
|
1022
|
-
const
|
|
1023
|
-
mounted:
|
|
1025
|
+
const Pn = {
|
|
1026
|
+
mounted: qn
|
|
1024
1027
|
}, q = Symbol("ConfirmState");
|
|
1025
|
-
function
|
|
1028
|
+
function qn(e, t) {
|
|
1026
1029
|
e.addEventListener("click", (n) => {
|
|
1027
1030
|
var u, r;
|
|
1028
1031
|
const o = Date.now(), i = ((u = t.value) == null ? void 0 : u.text) !== void 0 ? t.value.text : "Confirm";
|
|
@@ -1044,10 +1047,10 @@ function Pn(e, t) {
|
|
|
1044
1047
|
e[q] = l, i && (e.innerHTML = i), (r = t.value) != null && r.class && e.classList.add(t.value.class), e.addEventListener("mouseout", l.resetHandler);
|
|
1045
1048
|
});
|
|
1046
1049
|
}
|
|
1047
|
-
const
|
|
1048
|
-
beforeMount:
|
|
1050
|
+
const zn = {
|
|
1051
|
+
beforeMount: Kn
|
|
1049
1052
|
};
|
|
1050
|
-
function
|
|
1053
|
+
function Kn(e) {
|
|
1051
1054
|
e.addEventListener("blur", () => {
|
|
1052
1055
|
let t = e.value;
|
|
1053
1056
|
/^\d{1,2}\/\d{1,2}$/.test(t) && (t += "/" + ve(/* @__PURE__ */ new Date(), "yy"));
|
|
@@ -1055,14 +1058,14 @@ function zn(e) {
|
|
|
1055
1058
|
isNaN(n) ? e.value = "" : e.value = ve(n, "MM/dd/yyyy"), e.dispatchEvent(new Event("input"));
|
|
1056
1059
|
});
|
|
1057
1060
|
}
|
|
1058
|
-
const
|
|
1061
|
+
const Yn = {
|
|
1059
1062
|
beforeMount: Re,
|
|
1060
1063
|
updated: Re
|
|
1061
1064
|
};
|
|
1062
1065
|
function Re(e, t) {
|
|
1063
|
-
t.value == t.oldValue && e.innerHTML.length || (e.innerText =
|
|
1066
|
+
t.value == t.oldValue && e.innerHTML.length || (e.innerText = Xn(e, t));
|
|
1064
1067
|
}
|
|
1065
|
-
function
|
|
1068
|
+
function Xn(e, t) {
|
|
1066
1069
|
var g, k;
|
|
1067
1070
|
if (!t.value)
|
|
1068
1071
|
return ((g = e.attributes.getNamedItem("placeholder")) == null ? void 0 : g.value) ?? "";
|
|
@@ -1086,26 +1089,26 @@ function Yn(e, t) {
|
|
|
1086
1089
|
let d = ve(l, u);
|
|
1087
1090
|
return n && (d = n + " " + d), d;
|
|
1088
1091
|
}
|
|
1089
|
-
const
|
|
1092
|
+
const Zn = {
|
|
1090
1093
|
beforeMount: We,
|
|
1091
1094
|
updated: We,
|
|
1092
|
-
unmounted:
|
|
1095
|
+
unmounted: Gn
|
|
1093
1096
|
};
|
|
1094
1097
|
function We(e, t) {
|
|
1095
1098
|
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");
|
|
1096
1099
|
}
|
|
1097
|
-
function
|
|
1100
|
+
function Gn(e) {
|
|
1098
1101
|
e.tagName === "LABEL" && (e.classList.remove("disabled"), e = e.querySelector("input")), e.removeAttribute("disabled");
|
|
1099
1102
|
}
|
|
1100
|
-
const
|
|
1103
|
+
const Qn = {
|
|
1101
1104
|
beforeMount: Ue,
|
|
1102
1105
|
updated: Ue,
|
|
1103
1106
|
unmounted: nt
|
|
1104
1107
|
}, Z = Symbol("HasAutoFocused"), Te = [];
|
|
1105
|
-
function
|
|
1108
|
+
function Jn() {
|
|
1106
1109
|
Te.forEach(tt);
|
|
1107
1110
|
}
|
|
1108
|
-
setInterval(
|
|
1111
|
+
setInterval(Jn, 1e3);
|
|
1109
1112
|
function Ue(e, t) {
|
|
1110
1113
|
var u;
|
|
1111
1114
|
if (t.value == t.oldValue) return;
|
|
@@ -1118,12 +1121,12 @@ function Ue(e, t) {
|
|
|
1118
1121
|
}
|
|
1119
1122
|
function tt(e) {
|
|
1120
1123
|
const t = e[Z], n = Math.round((Date.now() - t.startTs) / 1e3);
|
|
1121
|
-
e.innerText =
|
|
1124
|
+
e.innerText = eo(n, t.includeSeconds);
|
|
1122
1125
|
}
|
|
1123
1126
|
function nt(e) {
|
|
1124
1127
|
e[Z] && (Vt(Te, e), delete e[Z]), e.innerText = "-";
|
|
1125
1128
|
}
|
|
1126
|
-
function
|
|
1129
|
+
function eo(e, t) {
|
|
1127
1130
|
const n = [], o = Math.floor(e / 86400);
|
|
1128
1131
|
o && n.push(o + "d"), e -= o * 86400;
|
|
1129
1132
|
const i = Math.floor(e / 3600);
|
|
@@ -1131,9 +1134,9 @@ function Jn(e, t) {
|
|
|
1131
1134
|
const l = Math.floor(e / 60);
|
|
1132
1135
|
return (o || i || l) && n.push(l + "m"), t ? n.length || n.push("0m") : (e -= l * 60, n.push(e + "s")), n.join(" ");
|
|
1133
1136
|
}
|
|
1134
|
-
const
|
|
1137
|
+
const to = {
|
|
1135
1138
|
mounted: ot,
|
|
1136
|
-
updated:
|
|
1139
|
+
updated: no,
|
|
1137
1140
|
unmounted: lt
|
|
1138
1141
|
}, R = /* @__PURE__ */ new Map();
|
|
1139
1142
|
function ot(e, t) {
|
|
@@ -1147,7 +1150,7 @@ function lt(e, t) {
|
|
|
1147
1150
|
}
|
|
1148
1151
|
R.size === 0 && window.removeEventListener("keydown", st);
|
|
1149
1152
|
}
|
|
1150
|
-
function
|
|
1153
|
+
function no(e, t) {
|
|
1151
1154
|
lt(e, t), ot(e, t);
|
|
1152
1155
|
}
|
|
1153
1156
|
function st(e) {
|
|
@@ -1158,7 +1161,7 @@ function st(e) {
|
|
|
1158
1161
|
o == null || o.click(), e.preventDefault();
|
|
1159
1162
|
}
|
|
1160
1163
|
}
|
|
1161
|
-
const z = Symbol("InfiniteScrollHandler"),
|
|
1164
|
+
const z = Symbol("InfiniteScrollHandler"), oo = {
|
|
1162
1165
|
mounted(e, t) {
|
|
1163
1166
|
e[z] = new Y(e, t.value);
|
|
1164
1167
|
},
|
|
@@ -1170,14 +1173,14 @@ const z = Symbol("InfiniteScrollHandler"), no = {
|
|
|
1170
1173
|
var t;
|
|
1171
1174
|
(t = e[z]) == null || t.uninstall(), delete e[z];
|
|
1172
1175
|
}
|
|
1173
|
-
},
|
|
1176
|
+
}, lo = {
|
|
1174
1177
|
beforeMount: je,
|
|
1175
1178
|
updated: je
|
|
1176
1179
|
};
|
|
1177
1180
|
function je(e, t) {
|
|
1178
1181
|
e.tagName == "LABEL" && (e = e.querySelector("input")), t.value ? e.setAttribute("readonly", "readonly") : e.removeAttribute("readonly");
|
|
1179
1182
|
}
|
|
1180
|
-
const
|
|
1183
|
+
const so = {
|
|
1181
1184
|
mounted: Pe,
|
|
1182
1185
|
updated: Pe,
|
|
1183
1186
|
unmounted: it
|
|
@@ -1190,7 +1193,7 @@ function Pe(e, t) {
|
|
|
1190
1193
|
content: n,
|
|
1191
1194
|
html: e.getAttribute("html") !== null
|
|
1192
1195
|
};
|
|
1193
|
-
e[X] ? e[X].configure(i) : e[X] = new
|
|
1196
|
+
e[X] ? e[X].configure(i) : e[X] = new io(e, i);
|
|
1194
1197
|
} else
|
|
1195
1198
|
it(e);
|
|
1196
1199
|
}
|
|
@@ -1198,7 +1201,7 @@ function it(e) {
|
|
|
1198
1201
|
var t;
|
|
1199
1202
|
(t = e[X]) == null || t.destroy(), delete e[X];
|
|
1200
1203
|
}
|
|
1201
|
-
class
|
|
1204
|
+
class io {
|
|
1202
1205
|
constructor(t, n) {
|
|
1203
1206
|
F(this, "lastMoveEvt");
|
|
1204
1207
|
F(this, "checkInterval");
|
|
@@ -1246,60 +1249,61 @@ class so {
|
|
|
1246
1249
|
this.shouldShow = !1, this.removeTooltip(), this.el.removeEventListener("mouseenter", this.handleTargetMouseEnterWithContext), this.el.removeEventListener("mouseleave", this.handleTargetMouseLeaveWithContext), this.el.removeEventListener("click", this.handleTargetMouseLeaveWithContext);
|
|
1247
1250
|
}
|
|
1248
1251
|
}
|
|
1249
|
-
function
|
|
1250
|
-
e.directive("autofocus",
|
|
1252
|
+
function ro(e) {
|
|
1253
|
+
e.directive("autofocus", jn), e.directive("confirm-button", Pn), e.directive("date-input", zn), e.directive("datetime", Yn), e.directive("disabled", Zn), e.directive("duration", Qn), e.directive("hotkey", to), e.directive("infinite-scroll", oo), e.directive("readonly", lo), e.directive("tooltip", so);
|
|
1251
1254
|
}
|
|
1252
|
-
function
|
|
1253
|
-
|
|
1255
|
+
function Ro(e) {
|
|
1256
|
+
ro(e);
|
|
1254
1257
|
}
|
|
1255
1258
|
export {
|
|
1256
|
-
|
|
1259
|
+
po as OverlayContainer,
|
|
1257
1260
|
le as UserError,
|
|
1258
|
-
|
|
1261
|
+
ho as VfAjaxSelect,
|
|
1259
1262
|
se as VfAlertModal,
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1263
|
+
xo as VfEzSmartSelect,
|
|
1264
|
+
ln as VfModal,
|
|
1265
|
+
Tn as VfSmartSelect,
|
|
1266
|
+
Bo as cloneProp,
|
|
1267
|
+
bo as configureVf,
|
|
1268
|
+
Vo as configureVfOpenApiClient,
|
|
1269
|
+
Fo as createFilters,
|
|
1267
1270
|
we as createOverlayInjection,
|
|
1268
|
-
|
|
1271
|
+
vn as desnakeCase,
|
|
1269
1272
|
Yt as dismissOverlayInjectionById,
|
|
1270
|
-
|
|
1273
|
+
yo as dismissOverlayInjectionByInstance,
|
|
1271
1274
|
Ze as dismissOverlayInjectionByInternalInstance,
|
|
1272
1275
|
Kt as dismissOverlayInjectionByVnode,
|
|
1273
|
-
|
|
1276
|
+
jo as escapeHtml,
|
|
1274
1277
|
Zt as formatError,
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
Qt as
|
|
1284
|
-
|
|
1285
|
-
|
|
1278
|
+
Rn as formatNumber,
|
|
1279
|
+
mn as formatPhone,
|
|
1280
|
+
hn as formatUSCurrency,
|
|
1281
|
+
To as handleError,
|
|
1282
|
+
ko as handleErrorAndAlert,
|
|
1283
|
+
Ro as installVf,
|
|
1284
|
+
Gt as isError,
|
|
1285
|
+
So as maskComponent,
|
|
1286
|
+
Qt as maskEl,
|
|
1287
|
+
Jt as maskForm,
|
|
1288
|
+
Lo as nl2br,
|
|
1289
|
+
$o as nullifyEmptyInputs,
|
|
1286
1290
|
Ee as presentOverlay,
|
|
1287
1291
|
ne as removeOverlayInjection,
|
|
1288
|
-
|
|
1292
|
+
Oo as replaceElement,
|
|
1289
1293
|
Xt as showAlert,
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1294
|
+
go as showConfirm,
|
|
1295
|
+
wo as showConfirmDestroy,
|
|
1296
|
+
Ao as showContextMenu,
|
|
1297
|
+
Ho as showToast,
|
|
1298
|
+
Eo as showWait,
|
|
1299
|
+
_n as sleep,
|
|
1300
|
+
Do as sleepSecs,
|
|
1297
1301
|
be as toError,
|
|
1298
|
-
|
|
1302
|
+
Co as unmaskComponent,
|
|
1299
1303
|
Ge as unmaskEl,
|
|
1300
1304
|
Qe as unmaskForm,
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
+
No as useInfiniteScroll,
|
|
1306
|
+
_o as useResizeWatcher,
|
|
1307
|
+
Mo as uuid,
|
|
1308
|
+
Io as vfModalRef
|
|
1305
1309
|
};
|