@signal24/vue-foundation 4.7.4 → 4.9.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.vue.d.ts +3 -1
- package/dist/src/helpers/openapi.d.ts +1 -1
- package/dist/src/vite-plugins/vite-openapi-plugin.js +1 -1
- package/dist/vue-foundation.es.js +191 -179
- package/package.json +23 -23
- package/src/helpers/openapi.ts +1 -1
- package/src/vite-plugins/vite-openapi-plugin.ts +1 -1
- package/tsconfig.vite-plugins.json +1 -0
|
@@ -23,7 +23,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
23
23
|
unmask: typeof unmask;
|
|
24
24
|
hide: typeof hide;
|
|
25
25
|
unhide: typeof unhide;
|
|
26
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
26
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
+
formSubmit: (...args: any[]) => void;
|
|
28
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
29
|
id: {
|
|
28
30
|
type: import("vue").PropType<string>;
|
|
29
31
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { installOpenApiClientInterceptors } from '@signal24/openapi-client-codegen/
|
|
1
|
+
import { installOpenApiClientInterceptors } from '@signal24/openapi-client-codegen/browser';
|
|
2
2
|
export declare function installApiClientInterceptors(clientOptions: Parameters<typeof installOpenApiClientInterceptors>[0]): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createWatchfulOpenapiClientGenerators } from '@signal24/openapi-client-codegen/
|
|
1
|
+
import { createWatchfulOpenapiClientGenerators } from '@signal24/openapi-client-codegen/node';
|
|
2
2
|
export function openapiClientGeneratorPlugin() {
|
|
3
3
|
let generators = null;
|
|
4
4
|
return {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var Ne = (e, t, n) => t in e ?
|
|
1
|
+
var Ve = Object.defineProperty;
|
|
2
|
+
var Ne = (e, t, n) => t in e ? Ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var v = (e, t, n) => (Ne(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { compact as Ye, debounce as Ze, isEqual as
|
|
4
|
+
import { defineComponent as x, defineProps as Re, defineEmits as Ue, ref as w, computed as F, openBlock as u, createElementBlock as f, createElementVNode as T, toDisplayString as C, withDirectives as K, createCommentVNode as O, Fragment as j, renderList as J, vModelSelect as Ke, getCurrentInstance as ee, onMounted as L, normalizeClass as k, normalizeStyle as je, withModifiers as te, renderSlot as U, reactive as We, h as W, Teleport as Pe, markRaw as qe, onBeforeUnmount as ne, resolveDirective as Oe, createBlock as ke, createSlots as ze, withCtx as Y, createTextVNode as ce, vModelText as Xe, watch as de, onActivated as Se, onDeactivated as xe } from "vue";
|
|
5
|
+
import { compact as Ye, debounce as Ze, isEqual as Ce, upperFirst as Ge, startCase as Qe, cloneDeep as Je, remove as et } from "lodash";
|
|
6
6
|
import { escapeHtml as tt } from "@vue/shared";
|
|
7
|
-
import { escapeHtml as
|
|
7
|
+
import { escapeHtml as ri } from "@vue/shared";
|
|
8
8
|
import { format as G } from "date-fns";
|
|
9
|
-
const nt =
|
|
9
|
+
const nt = x({
|
|
10
10
|
setup() {
|
|
11
11
|
const e = Re();
|
|
12
|
-
|
|
13
|
-
const t =
|
|
12
|
+
Ue(["update:modelValue"]);
|
|
13
|
+
const t = w(null), n = F(() => t.value ? t.value.map((o) => e.preprocesor ? e.preprocesor(o) : o[e.displayKey ?? ""]) : null), i = w(e.modelValue ?? null);
|
|
14
14
|
return { props: e, options: t, renderOptions: n, selectedItem: i };
|
|
15
15
|
},
|
|
16
16
|
watch: {
|
|
@@ -49,28 +49,28 @@ function lt(e, t, n, i, s, o) {
|
|
|
49
49
|
key: 1,
|
|
50
50
|
"onUpdate:modelValue": t[0] || (t[0] = (r) => e.selectedItem = r)
|
|
51
51
|
}, [
|
|
52
|
-
e.props.nullText ? (u(), f("option", st,
|
|
53
|
-
(u(!0), f(
|
|
52
|
+
e.props.nullText ? (u(), f("option", st, C(e.props.nullText), 1)) : O("", !0),
|
|
53
|
+
(u(!0), f(j, null, J(e.renderOptions, (r, l) => {
|
|
54
54
|
var c;
|
|
55
55
|
return u(), f("option", {
|
|
56
56
|
key: l,
|
|
57
57
|
value: (c = e.options) == null ? void 0 : c[l]
|
|
58
|
-
},
|
|
58
|
+
}, C(r), 9, ot);
|
|
59
59
|
}), 128))
|
|
60
60
|
], 512)), [
|
|
61
61
|
[Ke, e.selectedItem]
|
|
62
62
|
]) : (u(), f("select", it, [
|
|
63
|
-
|
|
63
|
+
T("option", null, C(e.props.loadingText || "Loading..."), 1)
|
|
64
64
|
]));
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const $n = /* @__PURE__ */ Le(nt, [["render", lt]]), rt = ["onClick"], at = /* @__PURE__ */ x({
|
|
67
67
|
__name: "overlay-anchor",
|
|
68
68
|
props: {
|
|
69
69
|
overlayId: {},
|
|
70
70
|
anchor: {}
|
|
71
71
|
},
|
|
72
72
|
setup(e) {
|
|
73
|
-
const t = e, n = t.anchor instanceof HTMLElement ? t.anchor : t.anchor.el, i =
|
|
73
|
+
const t = e, n = t.anchor instanceof HTMLElement ? t.anchor : t.anchor.el, i = w({ visibility: "hidden", top: "0", left: "0" }), s = w([]), o = ee();
|
|
74
74
|
L(r);
|
|
75
75
|
function r() {
|
|
76
76
|
const h = o.vnode.el, { styles: b, classes: m } = l(h, n);
|
|
@@ -112,15 +112,15 @@ const _n = /* @__PURE__ */ Le(nt, [["render", lt]]), rt = ["onClick"], at = /* @
|
|
|
112
112
|
}, 10);
|
|
113
113
|
}), (h, b) => (u(), f("div", {
|
|
114
114
|
class: k(["vf-overlay-anchor", s.value]),
|
|
115
|
-
style:
|
|
115
|
+
style: je(i.value),
|
|
116
116
|
onClick: te(c, ["stop"])
|
|
117
117
|
}, [
|
|
118
|
-
|
|
118
|
+
U(h.$slots, "default")
|
|
119
119
|
], 14, rt));
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
122
|
let ct = 0;
|
|
123
|
-
const S = We([]),
|
|
123
|
+
const S = We([]), An = x({
|
|
124
124
|
setup() {
|
|
125
125
|
return () => W("div", [
|
|
126
126
|
J(S, (e) => W(Pe, { key: e.id, to: "#vf-overlay-target" }, [e.wrapperVnode ?? e.vnode]))
|
|
@@ -140,7 +140,7 @@ function ie(e, t, n) {
|
|
|
140
140
|
};
|
|
141
141
|
return S.push(c), c;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Bn(e) {
|
|
144
144
|
Me(e.$);
|
|
145
145
|
}
|
|
146
146
|
function Me(e) {
|
|
@@ -172,23 +172,23 @@ async function se(e, t, n) {
|
|
|
172
172
|
function q(e, t) {
|
|
173
173
|
return { title: t ? e : void 0, message: t ?? e };
|
|
174
174
|
}
|
|
175
|
-
async function
|
|
175
|
+
async function ue(e, t) {
|
|
176
176
|
await se(X, q(e, t));
|
|
177
177
|
}
|
|
178
|
-
async function
|
|
178
|
+
async function Fn(e, t) {
|
|
179
179
|
return await se(X, {
|
|
180
180
|
...q(e, t),
|
|
181
181
|
shouldConfirm: !0
|
|
182
182
|
}) === !0;
|
|
183
183
|
}
|
|
184
|
-
async function
|
|
184
|
+
async function Vn(e, t) {
|
|
185
185
|
return await se(X, {
|
|
186
186
|
...q(e, t),
|
|
187
187
|
shouldConfirm: !0,
|
|
188
188
|
classes: ["destructive"]
|
|
189
189
|
}) === !0;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function Nn(e, t) {
|
|
192
192
|
const n = ie(X, {
|
|
193
193
|
...q(e, t),
|
|
194
194
|
isBare: !0,
|
|
@@ -203,7 +203,7 @@ const N = {
|
|
|
203
203
|
errorHandler: (e) => console.error("Unhandled error:", e),
|
|
204
204
|
defaultDateTimeFormat: "MM/dd/yy HH:mm"
|
|
205
205
|
};
|
|
206
|
-
function
|
|
206
|
+
function Rn(e) {
|
|
207
207
|
Object.assign(N, e);
|
|
208
208
|
}
|
|
209
209
|
class z extends Error {
|
|
@@ -221,11 +221,11 @@ Please refresh the page and try again. If this error persists, ${N.unhandledErro
|
|
|
221
221
|
function oe(e) {
|
|
222
222
|
return e instanceof Error ? e : new Error(String(e));
|
|
223
223
|
}
|
|
224
|
-
async function
|
|
224
|
+
async function Un(e, t) {
|
|
225
225
|
const n = oe(e);
|
|
226
|
-
return n instanceof z || N.errorHandler(n), t ?
|
|
226
|
+
return n instanceof z || N.errorHandler(n), t ? ue(t, n) : ue(n);
|
|
227
227
|
}
|
|
228
|
-
async function
|
|
228
|
+
async function Kn(e) {
|
|
229
229
|
const t = oe(e);
|
|
230
230
|
t instanceof z || N.errorHandler(t);
|
|
231
231
|
}
|
|
@@ -234,7 +234,7 @@ function jn(e, t) {
|
|
|
234
234
|
const n = e.$.vnode.el, i = n.closest(".vf-modal");
|
|
235
235
|
return ft(i ?? n, t);
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function Wn(e) {
|
|
238
238
|
const t = e.$.vnode.el, n = t.closest(".vf-modal");
|
|
239
239
|
return Ie(n ?? t);
|
|
240
240
|
}
|
|
@@ -276,7 +276,7 @@ const mt = ["id"], vt = {
|
|
|
276
276
|
}, yt = { class: "vf-modal-content" }, gt = {
|
|
277
277
|
key: 1,
|
|
278
278
|
class: "vf-modal-footer"
|
|
279
|
-
}, bt = /* @__PURE__ */
|
|
279
|
+
}, bt = /* @__PURE__ */ x({
|
|
280
280
|
__name: "modal",
|
|
281
281
|
props: {
|
|
282
282
|
id: {},
|
|
@@ -289,7 +289,7 @@ const mt = ["id"], vt = {
|
|
|
289
289
|
setup(e, { expose: t }) {
|
|
290
290
|
const n = e, i = ee();
|
|
291
291
|
t({ mask: m, unmask: y, hide: p, unhide: a });
|
|
292
|
-
const s =
|
|
292
|
+
const s = w(), o = w(), r = w(!1), l = F(() => Ye([n.class, r.value && "hidden"]));
|
|
293
293
|
L(() => {
|
|
294
294
|
var d;
|
|
295
295
|
document.body.classList.add("vf-modal-open"), n.closeOnMaskClick && (window.addEventListener("keydown", h), (d = s.value) == null || d.addEventListener("click", c));
|
|
@@ -326,7 +326,7 @@ const mt = ["id"], vt = {
|
|
|
326
326
|
ref_key: "overlay",
|
|
327
327
|
ref: s
|
|
328
328
|
}, [
|
|
329
|
-
|
|
329
|
+
T("form", {
|
|
330
330
|
action: ".",
|
|
331
331
|
class: k(["vf-modal", { scrolls: d.scrolls }]),
|
|
332
332
|
onSubmit: E[0] || (E[0] = te((M) => d.$emit("formSubmit"), ["prevent"])),
|
|
@@ -334,24 +334,24 @@ const mt = ["id"], vt = {
|
|
|
334
334
|
ref: o
|
|
335
335
|
}, [
|
|
336
336
|
d.$slots.header ? (u(), f("div", vt, [
|
|
337
|
-
|
|
337
|
+
U(d.$slots, "header"),
|
|
338
338
|
n.closeX ? (u(), f("i", {
|
|
339
339
|
key: 0,
|
|
340
340
|
class: "close",
|
|
341
341
|
onClick: b
|
|
342
342
|
})) : O("", !0)
|
|
343
343
|
])) : O("", !0),
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
T("div", yt, [
|
|
345
|
+
U(d.$slots, "default")
|
|
346
346
|
]),
|
|
347
347
|
d.$slots.footer ? (u(), f("div", gt, [
|
|
348
|
-
|
|
348
|
+
U(d.$slots, "footer")
|
|
349
349
|
])) : O("", !0)
|
|
350
350
|
], 34)
|
|
351
351
|
], 10, mt));
|
|
352
352
|
}
|
|
353
353
|
});
|
|
354
|
-
const Et = ["innerHtml"],
|
|
354
|
+
const Et = ["innerHtml"], Tt = ["innerText"], X = /* @__PURE__ */ x({
|
|
355
355
|
__name: "alert-modal",
|
|
356
356
|
props: {
|
|
357
357
|
isBare: { type: Boolean },
|
|
@@ -363,7 +363,7 @@ const Et = ["innerHtml"], wt = ["innerText"], X = /* @__PURE__ */ C({
|
|
|
363
363
|
callback: { type: Function }
|
|
364
364
|
},
|
|
365
365
|
setup(e) {
|
|
366
|
-
const t = e, n =
|
|
366
|
+
const t = e, n = F(() => t.message instanceof Error ? ht(t.message) : t.message);
|
|
367
367
|
return (i, s) => {
|
|
368
368
|
const o = Oe("autofocus");
|
|
369
369
|
return u(), ke(bt, {
|
|
@@ -377,30 +377,30 @@ const Et = ["innerHtml"], wt = ["innerText"], X = /* @__PURE__ */ C({
|
|
|
377
377
|
}, null, 8, Et)) : (u(), f("div", {
|
|
378
378
|
key: 1,
|
|
379
379
|
innerText: n.value
|
|
380
|
-
}, null, 8,
|
|
380
|
+
}, null, 8, Tt))
|
|
381
381
|
]),
|
|
382
382
|
_: 2
|
|
383
383
|
}, [
|
|
384
384
|
i.title ? {
|
|
385
385
|
name: "header",
|
|
386
386
|
fn: Y(() => [
|
|
387
|
-
|
|
387
|
+
T("h1", null, C(i.title), 1)
|
|
388
388
|
]),
|
|
389
389
|
key: "0"
|
|
390
390
|
} : void 0,
|
|
391
391
|
i.isBare ? void 0 : {
|
|
392
392
|
name: "footer",
|
|
393
393
|
fn: Y(() => [
|
|
394
|
-
i.shouldConfirm ? (u(), f(
|
|
394
|
+
i.shouldConfirm ? (u(), f(j, { key: 0 }, [
|
|
395
395
|
K((u(), f("button", {
|
|
396
396
|
class: "primary",
|
|
397
397
|
onClick: s[0] || (s[0] = () => i.callback(!0))
|
|
398
398
|
}, [
|
|
399
|
-
|
|
399
|
+
ce("Confirm")
|
|
400
400
|
])), [
|
|
401
401
|
[o]
|
|
402
402
|
]),
|
|
403
|
-
|
|
403
|
+
T("button", {
|
|
404
404
|
class: "default",
|
|
405
405
|
onClick: s[1] || (s[1] = () => i.callback(!1))
|
|
406
406
|
}, "Cancel")
|
|
@@ -409,7 +409,7 @@ const Et = ["innerHtml"], wt = ["innerText"], X = /* @__PURE__ */ C({
|
|
|
409
409
|
class: "default",
|
|
410
410
|
onClick: s[2] || (s[2] = () => i.callback(!0))
|
|
411
411
|
}, [
|
|
412
|
-
|
|
412
|
+
ce("OK")
|
|
413
413
|
])), [
|
|
414
414
|
[o]
|
|
415
415
|
])
|
|
@@ -421,24 +421,24 @@ const Et = ["innerHtml"], wt = ["innerText"], X = /* @__PURE__ */ C({
|
|
|
421
421
|
}
|
|
422
422
|
});
|
|
423
423
|
let R;
|
|
424
|
-
const
|
|
424
|
+
const wt = new Uint8Array(16);
|
|
425
425
|
function Ot() {
|
|
426
426
|
if (!R && (R = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !R))
|
|
427
427
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
428
|
-
return R(
|
|
428
|
+
return R(wt);
|
|
429
429
|
}
|
|
430
430
|
const g = [];
|
|
431
431
|
for (let e = 0; e < 256; ++e)
|
|
432
432
|
g.push((e + 256).toString(16).slice(1));
|
|
433
433
|
function kt(e, t = 0) {
|
|
434
|
-
return
|
|
434
|
+
return g[e[t + 0]] + g[e[t + 1]] + g[e[t + 2]] + g[e[t + 3]] + "-" + g[e[t + 4]] + g[e[t + 5]] + "-" + g[e[t + 6]] + g[e[t + 7]] + "-" + g[e[t + 8]] + g[e[t + 9]] + "-" + g[e[t + 10]] + g[e[t + 11]] + g[e[t + 12]] + g[e[t + 13]] + g[e[t + 14]] + g[e[t + 15]];
|
|
435
435
|
}
|
|
436
|
-
const St = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
436
|
+
const St = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), he = {
|
|
437
437
|
randomUUID: St
|
|
438
438
|
};
|
|
439
|
-
function
|
|
440
|
-
if (
|
|
441
|
-
return
|
|
439
|
+
function xt(e, t, n) {
|
|
440
|
+
if (he.randomUUID && !t && !e)
|
|
441
|
+
return he.randomUUID();
|
|
442
442
|
e = e || {};
|
|
443
443
|
const i = e.random || (e.rng || Ot)();
|
|
444
444
|
if (i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, t) {
|
|
@@ -449,10 +449,10 @@ function Ct(e, t, n) {
|
|
|
449
449
|
}
|
|
450
450
|
return kt(i);
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function Pn(e) {
|
|
453
453
|
return e.replace(/\n/g, "<br>");
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function Ct(e) {
|
|
456
456
|
return e.replace(/_/g, " ");
|
|
457
457
|
}
|
|
458
458
|
function Lt(e) {
|
|
@@ -462,10 +462,10 @@ function Lt(e) {
|
|
|
462
462
|
function Mt(e) {
|
|
463
463
|
return "$" + Number(e).toFixed(3).replace(/0$/, "").replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
464
464
|
}
|
|
465
|
-
function
|
|
466
|
-
return
|
|
465
|
+
function qn() {
|
|
466
|
+
return xt();
|
|
467
467
|
}
|
|
468
|
-
const H = Symbol("null"),
|
|
468
|
+
const H = Symbol("null"), fe = Symbol("create"), It = "`1234567890-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", Ht = {
|
|
469
469
|
props: {
|
|
470
470
|
modelValue: {
|
|
471
471
|
type: null,
|
|
@@ -571,7 +571,7 @@ const H = Symbol("null"), he = Symbol("create"), It = "`1234567890-=[]\\;',./~!@
|
|
|
571
571
|
subtitle: (o = s.subtitle) == null ? void 0 : o.replace(i, "<mark>$1</mark>")
|
|
572
572
|
};
|
|
573
573
|
}), this.shouldShowCreateOption && (e.find((o) => o.searchContent === t) !== void 0 || e.push({
|
|
574
|
-
key:
|
|
574
|
+
key: fe,
|
|
575
575
|
title: "Create <strong>" + this.searchText.trim() + "</strong>..."
|
|
576
576
|
}));
|
|
577
577
|
}
|
|
@@ -670,7 +670,7 @@ const H = Symbol("null"), he = Symbol("create"), It = "`1234567890-=[]\\;',./~!@
|
|
|
670
670
|
const t = this.effectiveOptions.find((i) => i.ref === e);
|
|
671
671
|
if (t)
|
|
672
672
|
return t;
|
|
673
|
-
const n = this.effectiveOptions.find((i) =>
|
|
673
|
+
const n = this.effectiveOptions.find((i) => Ce(i.ref, e));
|
|
674
674
|
return n || null;
|
|
675
675
|
},
|
|
676
676
|
handleInputBlurred() {
|
|
@@ -711,7 +711,7 @@ const H = Symbol("null"), he = Symbol("create"), It = "`1234567890-=[]\\;',./~!@
|
|
|
711
711
|
var t;
|
|
712
712
|
if (this.isSearching = !1, e.key == H)
|
|
713
713
|
this.searchText = "", this.selectedOption = null, this.selectedOptionTitle = null;
|
|
714
|
-
else if (e.key ===
|
|
714
|
+
else if (e.key === fe) {
|
|
715
715
|
const n = this.searchText.trim();
|
|
716
716
|
this.searchText = "", this.selectedOption = null, this.selectedOptionTitle = null, (t = this.onCreateItem) == null || t.call(this, n);
|
|
717
717
|
} else {
|
|
@@ -735,7 +735,7 @@ const _t = ["placeholder", "required"], Dt = {
|
|
|
735
735
|
}, $t = {
|
|
736
736
|
key: 0,
|
|
737
737
|
class: "no-results"
|
|
738
|
-
}, At = ["onMousemove", "onMousedown"], Bt = ["innerHTML"],
|
|
738
|
+
}, At = ["onMousemove", "onMousedown"], Bt = ["innerHTML"], Ft = ["innerHTML"], Vt = {
|
|
739
739
|
key: 0,
|
|
740
740
|
class: "no-results"
|
|
741
741
|
};
|
|
@@ -744,7 +744,7 @@ function Nt(e, t, n, i, s, o) {
|
|
|
744
744
|
return u(), f("div", {
|
|
745
745
|
class: k(["vf-smart-select", { disabled: o.effectiveDisabled, open: e.shouldDisplayOptions }])
|
|
746
746
|
}, [
|
|
747
|
-
K(
|
|
747
|
+
K(T("input", {
|
|
748
748
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => e.searchText = l),
|
|
749
749
|
ref: "searchField",
|
|
750
750
|
type: "text",
|
|
@@ -759,8 +759,8 @@ function Nt(e, t, n, i, s, o) {
|
|
|
759
759
|
[r, o.effectiveDisabled]
|
|
760
760
|
]),
|
|
761
761
|
e.shouldDisplayOptions ? (u(), f("div", Dt, [
|
|
762
|
-
e.isLoaded ? (u(), f(
|
|
763
|
-
(u(!0), f(
|
|
762
|
+
e.isLoaded ? (u(), f(j, { key: 1 }, [
|
|
763
|
+
(u(!0), f(j, null, J(o.effectiveOptions, (l) => (u(), f("div", {
|
|
764
764
|
key: String(l.key),
|
|
765
765
|
class: k(["option", {
|
|
766
766
|
highlighted: e.highlightedOptionKey === l.key
|
|
@@ -768,7 +768,7 @@ function Nt(e, t, n, i, s, o) {
|
|
|
768
768
|
onMousemove: (c) => o.handleOptionHover(l),
|
|
769
769
|
onMousedown: (c) => o.selectOption(l)
|
|
770
770
|
}, [
|
|
771
|
-
|
|
771
|
+
T("div", {
|
|
772
772
|
class: "title",
|
|
773
773
|
innerHTML: l.title
|
|
774
774
|
}, null, 8, Bt),
|
|
@@ -776,14 +776,14 @@ function Nt(e, t, n, i, s, o) {
|
|
|
776
776
|
key: 0,
|
|
777
777
|
class: "subtitle",
|
|
778
778
|
innerHTML: l.subtitle
|
|
779
|
-
}, null, 8,
|
|
779
|
+
}, null, 8, Ft)) : O("", !0)
|
|
780
780
|
], 42, At))), 128)),
|
|
781
|
-
!o.effectiveOptions.length && e.searchText ? (u(), f("div",
|
|
781
|
+
!o.effectiveOptions.length && e.searchText ? (u(), f("div", Vt, C(o.effectiveNoResultsText), 1)) : O("", !0)
|
|
782
782
|
], 64)) : (u(), f("div", $t, "Loading..."))
|
|
783
783
|
], 512)) : O("", !0)
|
|
784
784
|
], 2);
|
|
785
785
|
}
|
|
786
|
-
const Rt = /* @__PURE__ */ Le(Ht, [["render", Nt]]),
|
|
786
|
+
const Rt = /* @__PURE__ */ Le(Ht, [["render", Nt]]), zn = /* @__PURE__ */ x({
|
|
787
787
|
__name: "ez-smart-select",
|
|
788
788
|
props: {
|
|
789
789
|
modelValue: {},
|
|
@@ -794,21 +794,21 @@ const Rt = /* @__PURE__ */ Le(Ht, [["render", Nt]]), Pn = /* @__PURE__ */ C({
|
|
|
794
794
|
},
|
|
795
795
|
emits: ["update:modelValue"],
|
|
796
796
|
setup(e, { emit: t }) {
|
|
797
|
-
const n = e, i =
|
|
797
|
+
const n = e, i = F(() => Array.isArray(n.options) ? n.options.map((r) => ({ value: r, label: r })) : Object.entries(n.options).map(([r, l]) => ({
|
|
798
798
|
value: r,
|
|
799
799
|
label: l
|
|
800
|
-
}))), s =
|
|
800
|
+
}))), s = F(() => n.formatter ? (r) => {
|
|
801
801
|
var l;
|
|
802
802
|
return (l = n.formatter) == null ? void 0 : l.call(n, r.label);
|
|
803
|
-
} : (r) => r.label), o =
|
|
804
|
-
return
|
|
803
|
+
} : (r) => r.label), o = w(i.value.find((r) => r.value === n.modelValue) ?? null);
|
|
804
|
+
return de(
|
|
805
805
|
() => n.modelValue,
|
|
806
806
|
(r) => {
|
|
807
807
|
o.value = i.value.find((l) => l.value === r) ?? null;
|
|
808
808
|
}
|
|
809
|
-
),
|
|
809
|
+
), de(o, (r) => {
|
|
810
810
|
var l;
|
|
811
|
-
t("update:modelValue", r ? ((l = i.value.find((c) =>
|
|
811
|
+
t("update:modelValue", r ? ((l = i.value.find((c) => Ce(c, r))) == null ? void 0 : l.value) ?? null : null);
|
|
812
812
|
}), (r, l) => (u(), ke(Rt, {
|
|
813
813
|
modelValue: o.value,
|
|
814
814
|
"onUpdate:modelValue": l[0] || (l[0] = (c) => o.value = c),
|
|
@@ -817,13 +817,13 @@ const Rt = /* @__PURE__ */ Le(Ht, [["render", Nt]]), Pn = /* @__PURE__ */ C({
|
|
|
817
817
|
"null-title": r.nullTitle
|
|
818
818
|
}, null, 8, ["modelValue", "options", "formatter", "null-title"]));
|
|
819
819
|
}
|
|
820
|
-
}),
|
|
820
|
+
}), Ut = ["onClick"], Kt = { class: "content" }, jt = { class: "message" }, Wt = {
|
|
821
821
|
key: 0,
|
|
822
822
|
class: "close"
|
|
823
823
|
}, Pt = {
|
|
824
824
|
key: 0,
|
|
825
825
|
class: "progress-bar"
|
|
826
|
-
}, qt = /* @__PURE__ */
|
|
826
|
+
}, qt = /* @__PURE__ */ x({
|
|
827
827
|
__name: "toast",
|
|
828
828
|
props: {
|
|
829
829
|
message: {},
|
|
@@ -838,7 +838,7 @@ const Rt = /* @__PURE__ */ Le(Ht, [["render", Nt]]), Pn = /* @__PURE__ */ C({
|
|
|
838
838
|
function n() {
|
|
839
839
|
t.onClick ? t.onClick() : t.disableClose || t.callback();
|
|
840
840
|
}
|
|
841
|
-
const i =
|
|
841
|
+
const i = w();
|
|
842
842
|
return t.durationSecs !== null && L(() => {
|
|
843
843
|
var o;
|
|
844
844
|
const s = t.durationSecs ?? 5;
|
|
@@ -850,21 +850,21 @@ const Rt = /* @__PURE__ */ Le(Ht, [["render", Nt]]), Pn = /* @__PURE__ */ C({
|
|
|
850
850
|
class: k(["vf-toast", s.className]),
|
|
851
851
|
onClick: te(n, ["stop"])
|
|
852
852
|
}, [
|
|
853
|
-
|
|
854
|
-
|
|
853
|
+
T("div", Kt, [
|
|
854
|
+
T("div", jt, C(s.message), 1),
|
|
855
855
|
s.disableClose ? O("", !0) : (u(), f("div", Wt, "x"))
|
|
856
856
|
]),
|
|
857
857
|
s.durationSecs !== null ? (u(), f("div", Pt, [
|
|
858
|
-
|
|
858
|
+
T("div", {
|
|
859
859
|
ref_key: "progressInnerEl",
|
|
860
860
|
ref: i,
|
|
861
861
|
class: "inner"
|
|
862
862
|
}, null, 512)
|
|
863
863
|
])) : O("", !0)
|
|
864
|
-
], 10,
|
|
864
|
+
], 10, Ut));
|
|
865
865
|
}
|
|
866
866
|
});
|
|
867
|
-
function
|
|
867
|
+
function Xn(e) {
|
|
868
868
|
const t = ie(qt, {
|
|
869
869
|
...e,
|
|
870
870
|
callback: () => P(t)
|
|
@@ -897,12 +897,12 @@ function en(e) {
|
|
|
897
897
|
return e ? e.toUpperCase() : null;
|
|
898
898
|
}
|
|
899
899
|
function tn(e) {
|
|
900
|
-
return e ?
|
|
900
|
+
return e ? Ct(e) : null;
|
|
901
901
|
}
|
|
902
902
|
function nn(e) {
|
|
903
903
|
return Mt(e);
|
|
904
904
|
}
|
|
905
|
-
const
|
|
905
|
+
const pe = {
|
|
906
906
|
bytes: zt,
|
|
907
907
|
dash: Xt,
|
|
908
908
|
dashZeros: Yt,
|
|
@@ -913,15 +913,15 @@ const fe = {
|
|
|
913
913
|
upperCase: en,
|
|
914
914
|
desnake: tn,
|
|
915
915
|
usCurrency: nn
|
|
916
|
-
},
|
|
917
|
-
...
|
|
918
|
-
...e(
|
|
916
|
+
}, Yn = (e) => ({
|
|
917
|
+
...pe,
|
|
918
|
+
...e(pe)
|
|
919
919
|
});
|
|
920
|
-
function
|
|
920
|
+
function Zn(e, t, n) {
|
|
921
921
|
const i = typeof t == "function" ? e.findIndex(t) : e.indexOf(t);
|
|
922
922
|
return i === -1 ? !1 : (e.splice(i, 1, n), !0);
|
|
923
923
|
}
|
|
924
|
-
function
|
|
924
|
+
function Gn(e, t) {
|
|
925
925
|
const n = document.createElement("div");
|
|
926
926
|
n.classList.add("vf-overlay"), n.addEventListener("click", m), document.body.appendChild(n);
|
|
927
927
|
const i = document.createElement("div");
|
|
@@ -954,14 +954,14 @@ function Yn(e, t) {
|
|
|
954
954
|
a.addEventListener("mouseleave", M), p.stopPropagation();
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
|
-
const sn = (e) => new Promise((t) => setTimeout(t, e)),
|
|
957
|
+
const sn = (e) => new Promise((t) => setTimeout(t, e)), Qn = (e) => sn(e * 1e3);
|
|
958
958
|
function on(e) {
|
|
959
959
|
return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function Jn(e, t) {
|
|
962
962
|
return e != null ? Je(e) : t;
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function ei(e, t) {
|
|
965
965
|
const n = { ...e };
|
|
966
966
|
for (const i of t)
|
|
967
967
|
n[i] === "" && (n[i] = null);
|
|
@@ -972,7 +972,7 @@ function De(e) {
|
|
|
972
972
|
}
|
|
973
973
|
function ln({ apiClient: e, wrapper: t, onRequest: n, onError: i, afterRequest: s, CancelablePromise: o }) {
|
|
974
974
|
const r = e.request.request.bind(e.request), l = t ?? ((c, h) => h(c));
|
|
975
|
-
e.request.request = (c) => l(c, (h) => (h =
|
|
975
|
+
e.request.request = (c) => l(c, (h) => (h = cn(h), n && (h = n(h)), new o((b, m, y) => {
|
|
976
976
|
const p = r(h);
|
|
977
977
|
y(p.cancel), p.then(b).catch((a) => {
|
|
978
978
|
if (De(a) && typeof a.body == "object" && "error" in a.body && (a.message = `${a.body.error} (${a.status})`), i) {
|
|
@@ -986,31 +986,43 @@ function ln({ apiClient: e, wrapper: t, onRequest: n, onError: i, afterRequest:
|
|
|
986
986
|
}).finally(() => s == null ? void 0 : s(h));
|
|
987
987
|
})));
|
|
988
988
|
}
|
|
989
|
-
class
|
|
990
|
-
constructor(
|
|
989
|
+
class le {
|
|
990
|
+
constructor() {
|
|
991
991
|
v(this, "validator", null);
|
|
992
992
|
v(this, "lastModifiedDate", null);
|
|
993
993
|
v(this, "size", 0);
|
|
994
994
|
v(this, "path", "");
|
|
995
995
|
v(this, "name", "");
|
|
996
996
|
v(this, "type", "");
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
class rn extends le {
|
|
1000
|
+
constructor(n) {
|
|
1001
|
+
super();
|
|
997
1002
|
v(this, "blob");
|
|
998
|
-
this.blob =
|
|
1003
|
+
this.blob = n;
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
class an extends le {
|
|
1007
|
+
constructor(n) {
|
|
1008
|
+
super();
|
|
1009
|
+
v(this, "uri");
|
|
1010
|
+
this.uri = n.uri, this.name = n.name ?? void 0, this.type = n.type ?? void 0;
|
|
999
1011
|
}
|
|
1000
1012
|
}
|
|
1001
|
-
function
|
|
1002
|
-
if (
|
|
1013
|
+
function cn(e) {
|
|
1014
|
+
if (typeof e.body != "object" || !Object.values(e.body).some((s) => s instanceof le))
|
|
1003
1015
|
return e;
|
|
1004
|
-
const n =
|
|
1016
|
+
const n = new FormData(), i = {};
|
|
1005
1017
|
for (const [s, o] of Object.entries(e.body))
|
|
1006
|
-
o instanceof
|
|
1007
|
-
return n._payload
|
|
1018
|
+
o instanceof an ? n.append(s, o) : o instanceof rn ? n.append(s, o.blob) : i[s] = o;
|
|
1019
|
+
return n.append("_payload", JSON.stringify(i)), {
|
|
1008
1020
|
...e,
|
|
1009
|
-
|
|
1010
|
-
|
|
1021
|
+
mediaType: void 0,
|
|
1022
|
+
body: n
|
|
1011
1023
|
};
|
|
1012
1024
|
}
|
|
1013
|
-
function
|
|
1025
|
+
function ti(e) {
|
|
1014
1026
|
ln({
|
|
1015
1027
|
...e,
|
|
1016
1028
|
onError(t, n) {
|
|
@@ -1019,27 +1031,27 @@ function Jn(e) {
|
|
|
1019
1031
|
}
|
|
1020
1032
|
});
|
|
1021
1033
|
}
|
|
1022
|
-
const
|
|
1023
|
-
function
|
|
1034
|
+
const re = Symbol("HookState");
|
|
1035
|
+
function ni(e, t) {
|
|
1024
1036
|
const n = t ?? ee();
|
|
1025
|
-
L(() =>
|
|
1037
|
+
L(() => dn(n, e), n), Se(() => un(n), n), xe(() => me(n), n), ne(() => me(n), n);
|
|
1026
1038
|
}
|
|
1027
|
-
function
|
|
1039
|
+
function dn(e, t) {
|
|
1028
1040
|
const n = {};
|
|
1029
1041
|
if (t.elScrolledToBottom && (n.el = new A(e.vnode.el, t.elScrolledToBottom)), t.ancestorScrolledToBottom) {
|
|
1030
1042
|
const i = $e(e.vnode.el);
|
|
1031
1043
|
i ? n.ancestor = new A(i, t.ancestorScrolledToBottom) : console.warn("[VueFoundation] No scollable ancestor found for component:", e);
|
|
1032
1044
|
}
|
|
1033
|
-
t.windowScrolledToBottom && (n.window = new A(window, t.windowScrolledToBottom)), e[
|
|
1045
|
+
t.windowScrolledToBottom && (n.window = new A(window, t.windowScrolledToBottom)), e[re] = n;
|
|
1034
1046
|
}
|
|
1035
|
-
function
|
|
1047
|
+
function un(e) {
|
|
1036
1048
|
var n, i, s;
|
|
1037
|
-
const t = e[
|
|
1049
|
+
const t = e[re];
|
|
1038
1050
|
(n = t == null ? void 0 : t.el) == null || n.install(), (i = t == null ? void 0 : t.ancestor) == null || i.install(), (s = t == null ? void 0 : t.window) == null || s.install();
|
|
1039
1051
|
}
|
|
1040
1052
|
function me(e) {
|
|
1041
1053
|
var n, i, s;
|
|
1042
|
-
const t = e[
|
|
1054
|
+
const t = e[re];
|
|
1043
1055
|
(n = t == null ? void 0 : t.el) == null || n.uninstall(), (i = t == null ? void 0 : t.ancestor) == null || i.uninstall(), (s = t == null ? void 0 : t.window) == null || s.uninstall();
|
|
1044
1056
|
}
|
|
1045
1057
|
const Z = ["auto", "scroll"];
|
|
@@ -1066,10 +1078,10 @@ class A {
|
|
|
1066
1078
|
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);
|
|
1067
1079
|
}
|
|
1068
1080
|
}
|
|
1069
|
-
function
|
|
1070
|
-
L(() => window.addEventListener("resize", e)), Se(() => window.addEventListener("resize", e)),
|
|
1081
|
+
function ii(e) {
|
|
1082
|
+
L(() => window.addEventListener("resize", e)), Se(() => window.addEventListener("resize", e)), xe(() => window.removeEventListener("resize", e)), ne(() => window.removeEventListener("resize", e));
|
|
1071
1083
|
}
|
|
1072
|
-
const
|
|
1084
|
+
const hn = {
|
|
1073
1085
|
mounted: ye,
|
|
1074
1086
|
updated: ye
|
|
1075
1087
|
}, ve = Symbol("HasAutoFocused");
|
|
@@ -1080,10 +1092,10 @@ function ye(e, t) {
|
|
|
1080
1092
|
const n = ["BUTTON", "INPUT", "TEXTAREA", "SELECT"].indexOf(e.tagName) > -1 ? e : e.querySelectorAll("input")[0];
|
|
1081
1093
|
setTimeout(() => n.focus(), 10);
|
|
1082
1094
|
}
|
|
1083
|
-
const
|
|
1084
|
-
mounted:
|
|
1095
|
+
const fn = {
|
|
1096
|
+
mounted: pn
|
|
1085
1097
|
}, _ = Symbol("ConfirmState");
|
|
1086
|
-
function
|
|
1098
|
+
function pn(e) {
|
|
1087
1099
|
e.addEventListener("click", (t) => {
|
|
1088
1100
|
const n = Date.now();
|
|
1089
1101
|
if (e[_]) {
|
|
@@ -1103,10 +1115,10 @@ function hn(e) {
|
|
|
1103
1115
|
e[_] = i, e.innerHTML = "Confirm", e.addEventListener("mouseout", i.resetHandler);
|
|
1104
1116
|
});
|
|
1105
1117
|
}
|
|
1106
|
-
const
|
|
1107
|
-
beforeMount:
|
|
1118
|
+
const mn = {
|
|
1119
|
+
beforeMount: vn
|
|
1108
1120
|
};
|
|
1109
|
-
function
|
|
1121
|
+
function vn(e) {
|
|
1110
1122
|
e.addEventListener("blur", () => {
|
|
1111
1123
|
let t = e.value;
|
|
1112
1124
|
/^\d{1,2}\/\d{1,2}$/.test(t) && (t += "/" + G(/* @__PURE__ */ new Date(), "yy"));
|
|
@@ -1114,14 +1126,14 @@ function pn(e) {
|
|
|
1114
1126
|
isNaN(n) ? e.value = "" : e.value = G(n, "MM/dd/yyyy"), e.dispatchEvent(new Event("input"));
|
|
1115
1127
|
});
|
|
1116
1128
|
}
|
|
1117
|
-
const
|
|
1129
|
+
const yn = {
|
|
1118
1130
|
beforeMount: ge,
|
|
1119
1131
|
updated: ge
|
|
1120
1132
|
};
|
|
1121
1133
|
function ge(e, t) {
|
|
1122
|
-
t.value == t.oldValue && e.innerHTML.length || (e.innerText =
|
|
1134
|
+
t.value == t.oldValue && e.innerHTML.length || (e.innerText = gn(e, t));
|
|
1123
1135
|
}
|
|
1124
|
-
function
|
|
1136
|
+
function gn(e, t) {
|
|
1125
1137
|
var c, h;
|
|
1126
1138
|
if (!t.value)
|
|
1127
1139
|
return ((c = e.attributes.getNamedItem("placeholder")) == null ? void 0 : c.value) ?? "";
|
|
@@ -1137,26 +1149,26 @@ function vn(e, t) {
|
|
|
1137
1149
|
let l = G(o, r);
|
|
1138
1150
|
return n && (l = n + " " + l), l;
|
|
1139
1151
|
}
|
|
1140
|
-
const
|
|
1152
|
+
const bn = {
|
|
1141
1153
|
beforeMount: be,
|
|
1142
1154
|
updated: be,
|
|
1143
|
-
unmounted:
|
|
1155
|
+
unmounted: En
|
|
1144
1156
|
};
|
|
1145
1157
|
function be(e, t) {
|
|
1146
1158
|
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");
|
|
1147
1159
|
}
|
|
1148
|
-
function
|
|
1160
|
+
function En(e) {
|
|
1149
1161
|
e.tagName === "LABEL" && (e.classList.remove("disabled"), e = e.querySelector("input")), e.removeAttribute("disabled");
|
|
1150
1162
|
}
|
|
1151
|
-
const
|
|
1163
|
+
const Tn = {
|
|
1152
1164
|
beforeMount: Ee,
|
|
1153
1165
|
updated: Ee,
|
|
1154
1166
|
unmounted: Be
|
|
1155
|
-
},
|
|
1156
|
-
function
|
|
1157
|
-
|
|
1167
|
+
}, V = Symbol("HasAutoFocused"), ae = [];
|
|
1168
|
+
function wn() {
|
|
1169
|
+
ae.forEach(Ae);
|
|
1158
1170
|
}
|
|
1159
|
-
setInterval(
|
|
1171
|
+
setInterval(wn, 1e3);
|
|
1160
1172
|
function Ee(e, t) {
|
|
1161
1173
|
var r;
|
|
1162
1174
|
if (t.value == t.oldValue)
|
|
@@ -1164,19 +1176,19 @@ function Ee(e, t) {
|
|
|
1164
1176
|
if (!t.value)
|
|
1165
1177
|
return Be(e);
|
|
1166
1178
|
const n = new Date(t.value), i = (r = e.attributes.getNamedItem("base-time")) == null ? void 0 : r.value, s = n.getTime() - (i ? new Date(i).getTime() - t.value * 1e3 : 0), o = e.getAttribute("no-seconds") === null;
|
|
1167
|
-
e[
|
|
1179
|
+
e[V] || ae.push(e), e[V] = {
|
|
1168
1180
|
startTs: s,
|
|
1169
1181
|
includeSeconds: o
|
|
1170
1182
|
}, Ae(e);
|
|
1171
1183
|
}
|
|
1172
1184
|
function Ae(e) {
|
|
1173
|
-
const t = e[
|
|
1174
|
-
e.innerText =
|
|
1185
|
+
const t = e[V], n = Math.round((Date.now() - t.startTs) / 1e3);
|
|
1186
|
+
e.innerText = On(n, t.includeSeconds);
|
|
1175
1187
|
}
|
|
1176
1188
|
function Be(e) {
|
|
1177
|
-
e[
|
|
1189
|
+
e[V] && (et(ae, e), delete e[V]), e.innerText = "-";
|
|
1178
1190
|
}
|
|
1179
|
-
function
|
|
1191
|
+
function On(e, t) {
|
|
1180
1192
|
const n = [], i = Math.floor(e / 86400);
|
|
1181
1193
|
i && n.push(i + "d"), e -= i * 86400;
|
|
1182
1194
|
const s = Math.floor(e / 3600);
|
|
@@ -1184,7 +1196,7 @@ function wn(e, t) {
|
|
|
1184
1196
|
const o = Math.floor(e / 60);
|
|
1185
1197
|
return (i || s || o) && n.push(o + "m"), t ? n.length || n.push("0m") : (e -= o * 60, n.push(e + "s")), n.join(" ");
|
|
1186
1198
|
}
|
|
1187
|
-
const D = Symbol("InfiniteScrollHandler"),
|
|
1199
|
+
const D = Symbol("InfiniteScrollHandler"), kn = {
|
|
1188
1200
|
mounted(e, t) {
|
|
1189
1201
|
e[D] = new A(e, t.value);
|
|
1190
1202
|
},
|
|
@@ -1196,19 +1208,19 @@ const D = Symbol("InfiniteScrollHandler"), Tn = {
|
|
|
1196
1208
|
var t;
|
|
1197
1209
|
(t = e[D]) == null || t.uninstall(), delete e[D];
|
|
1198
1210
|
}
|
|
1199
|
-
},
|
|
1200
|
-
beforeMount:
|
|
1201
|
-
updated:
|
|
1211
|
+
}, Sn = {
|
|
1212
|
+
beforeMount: Te,
|
|
1213
|
+
updated: Te
|
|
1202
1214
|
};
|
|
1203
|
-
function
|
|
1215
|
+
function Te(e, t) {
|
|
1204
1216
|
e.tagName == "LABEL" && (e = e.querySelector("input")), t.value ? e.setAttribute("readonly", "readonly") : e.removeAttribute("readonly");
|
|
1205
1217
|
}
|
|
1206
|
-
const
|
|
1207
|
-
mounted:
|
|
1208
|
-
updated:
|
|
1209
|
-
unmounted:
|
|
1218
|
+
const xn = {
|
|
1219
|
+
mounted: we,
|
|
1220
|
+
updated: we,
|
|
1221
|
+
unmounted: Fe
|
|
1210
1222
|
}, B = Symbol("TooltipState");
|
|
1211
|
-
function
|
|
1223
|
+
function we(e, t) {
|
|
1212
1224
|
var i;
|
|
1213
1225
|
let n = ((i = e.attributes.getNamedItem("tip")) == null ? void 0 : i.value) ?? t.value;
|
|
1214
1226
|
if (t.value || (n = null), n) {
|
|
@@ -1216,15 +1228,15 @@ function Te(e, t) {
|
|
|
1216
1228
|
content: n,
|
|
1217
1229
|
html: e.getAttribute("html") !== null
|
|
1218
1230
|
};
|
|
1219
|
-
e[B] ? e[B].configure(s) : e[B] = new
|
|
1231
|
+
e[B] ? e[B].configure(s) : e[B] = new Cn(e, s);
|
|
1220
1232
|
} else
|
|
1221
|
-
|
|
1233
|
+
Fe(e);
|
|
1222
1234
|
}
|
|
1223
|
-
function
|
|
1235
|
+
function Fe(e) {
|
|
1224
1236
|
var t;
|
|
1225
1237
|
(t = e[B]) == null || t.destroy(), delete e[B];
|
|
1226
1238
|
}
|
|
1227
|
-
class
|
|
1239
|
+
class Cn {
|
|
1228
1240
|
constructor(t, n) {
|
|
1229
1241
|
v(this, "lastMoveEvt");
|
|
1230
1242
|
v(this, "checkInterval");
|
|
@@ -1272,59 +1284,59 @@ class Sn {
|
|
|
1272
1284
|
this.shouldShow = !1, this.removeTooltip(), this.el.removeEventListener("mouseenter", this.handleTargetMouseEnterWithContext), this.el.removeEventListener("mouseleave", this.handleTargetMouseLeaveWithContext);
|
|
1273
1285
|
}
|
|
1274
1286
|
}
|
|
1275
|
-
function
|
|
1276
|
-
e.directive("autofocus",
|
|
1287
|
+
function Ln(e) {
|
|
1288
|
+
e.directive("autofocus", hn), e.directive("confirm-button", fn), e.directive("date-input", mn), e.directive("datetime", yn), e.directive("disabled", bn), e.directive("duration", Tn), e.directive("infinite-scroll", kn), e.directive("readonly", Sn), e.directive("tooltip", xn);
|
|
1277
1289
|
}
|
|
1278
|
-
function
|
|
1279
|
-
|
|
1290
|
+
function si(e) {
|
|
1291
|
+
Ln(e);
|
|
1280
1292
|
}
|
|
1281
1293
|
export {
|
|
1282
|
-
|
|
1294
|
+
An as OverlayContainer,
|
|
1283
1295
|
z as UserError,
|
|
1284
|
-
|
|
1296
|
+
$n as VfAjaxSelect,
|
|
1285
1297
|
X as VfAlertModal,
|
|
1286
|
-
|
|
1298
|
+
zn as VfEzSmartSelect,
|
|
1287
1299
|
bt as VfModal,
|
|
1288
1300
|
Rt as VfSmartSelect,
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1301
|
+
Jn as cloneProp,
|
|
1302
|
+
Rn as configureVf,
|
|
1303
|
+
Yn as createFilters,
|
|
1292
1304
|
ie as createOverlayInjection,
|
|
1293
|
-
|
|
1305
|
+
Ct as desnakeCase,
|
|
1294
1306
|
ut as dismissOverlayInjectionById,
|
|
1295
|
-
|
|
1307
|
+
Bn as dismissOverlayInjectionByInstance,
|
|
1296
1308
|
Me as dismissOverlayInjectionByInternalInstance,
|
|
1297
1309
|
dt as dismissOverlayInjectionByVnode,
|
|
1298
|
-
|
|
1310
|
+
ri as escapeHtml,
|
|
1299
1311
|
ht as formatError,
|
|
1300
1312
|
on as formatNumber,
|
|
1301
1313
|
Lt as formatPhone,
|
|
1302
1314
|
Mt as formatUSCurrency,
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1315
|
+
Kn as handleError,
|
|
1316
|
+
Un as handleErrorAndAlert,
|
|
1317
|
+
ti as installApiClientInterceptors,
|
|
1318
|
+
si as installVf,
|
|
1307
1319
|
jn as maskComponent,
|
|
1308
1320
|
ft as maskEl,
|
|
1309
1321
|
pt as maskForm,
|
|
1310
|
-
|
|
1311
|
-
|
|
1322
|
+
Pn as nl2br,
|
|
1323
|
+
ei as nullifyEmptyInputs,
|
|
1312
1324
|
se as presentOverlay,
|
|
1313
1325
|
P as removeOverlayInjection,
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1326
|
+
Zn as replaceElement,
|
|
1327
|
+
ue as showAlert,
|
|
1328
|
+
Fn as showConfirm,
|
|
1329
|
+
Vn as showConfirmDestroy,
|
|
1330
|
+
Gn as showContextMenu,
|
|
1331
|
+
Xn as showToast,
|
|
1332
|
+
Nn as showWait,
|
|
1321
1333
|
sn as sleep,
|
|
1322
|
-
|
|
1334
|
+
Qn as sleepSecs,
|
|
1323
1335
|
oe as toError,
|
|
1324
|
-
|
|
1336
|
+
Wn as unmaskComponent,
|
|
1325
1337
|
Ie as unmaskEl,
|
|
1326
1338
|
He as unmaskForm,
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1339
|
+
ni as useInfiniteScroll,
|
|
1340
|
+
ii as useResizeWatcher,
|
|
1341
|
+
qn as uuid
|
|
1330
1342
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signal24/vue-foundation",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.9.0",
|
|
5
5
|
"description": "Common components, directives, and helpers for Vue 3 apps",
|
|
6
6
|
"module": "./dist/vue-foundation.es.js",
|
|
7
7
|
"exports": {
|
|
@@ -34,39 +34,39 @@
|
|
|
34
34
|
},
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"dependencies": {
|
|
37
|
+
"@signal24/openapi-client-codegen": "^1.1.0",
|
|
37
38
|
"date-fns": "^2.30.0",
|
|
38
39
|
"lodash": "^4.17.21",
|
|
39
|
-
"type-fest": "^4.
|
|
40
|
-
"uuid": "^9.0.
|
|
40
|
+
"type-fest": "^4.5.0",
|
|
41
|
+
"uuid": "^9.0.1",
|
|
41
42
|
"vue": "^3.3.4"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"@nabla/vite-plugin-eslint": "^1.5.0",
|
|
45
|
-
"@rushstack/eslint-patch": "^1.
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@types/
|
|
49
|
-
"@types/
|
|
50
|
-
"@types/
|
|
51
|
-
"@
|
|
52
|
-
"@vitejs/plugin-vue": "^4.2.3",
|
|
46
|
+
"@rushstack/eslint-patch": "^1.5.1",
|
|
47
|
+
"@tsconfig/node18": "^18.2.2",
|
|
48
|
+
"@types/jsdom": "^21.1.4",
|
|
49
|
+
"@types/lodash": "^4.14.200",
|
|
50
|
+
"@types/node": "^20.8.7",
|
|
51
|
+
"@types/uuid": "^9.0.6",
|
|
52
|
+
"@vitejs/plugin-vue": "^4.4.0",
|
|
53
53
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
54
|
-
"@vue/eslint-config-typescript": "^
|
|
54
|
+
"@vue/eslint-config-typescript": "^12.0.0",
|
|
55
55
|
"@vue/test-utils": "^2.4.1",
|
|
56
56
|
"@vue/tsconfig": "^0.4.0",
|
|
57
|
-
"cypress": "^
|
|
58
|
-
"eslint": "^8.
|
|
59
|
-
"eslint-plugin-cypress": "^2.
|
|
57
|
+
"cypress": "^13.3.1",
|
|
58
|
+
"eslint": "^8.51.0",
|
|
59
|
+
"eslint-plugin-cypress": "^2.15.1",
|
|
60
60
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
61
61
|
"eslint-plugin-unused-imports": "^3.0.0",
|
|
62
|
-
"eslint-plugin-vue": "^9.
|
|
62
|
+
"eslint-plugin-vue": "^9.17.0",
|
|
63
63
|
"jsdom": "^22.1.0",
|
|
64
|
-
"prettier": "^3.0.
|
|
65
|
-
"sass": "^1.
|
|
66
|
-
"start-server-and-test": "^2.0.
|
|
67
|
-
"typescript": "~5.
|
|
68
|
-
"vite": "^4.
|
|
69
|
-
"vitest": "^0.
|
|
70
|
-
"vue-tsc": "^1.8.
|
|
64
|
+
"prettier": "^3.0.3",
|
|
65
|
+
"sass": "^1.69.4",
|
|
66
|
+
"start-server-and-test": "^2.0.1",
|
|
67
|
+
"typescript": "~5.2.2",
|
|
68
|
+
"vite": "^4.5.0",
|
|
69
|
+
"vitest": "^0.34.6",
|
|
70
|
+
"vue-tsc": "^1.8.19"
|
|
71
71
|
}
|
|
72
72
|
}
|
package/src/helpers/openapi.ts
CHANGED