@signal24/vue-foundation 4.29.2 → 4.29.4
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,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as N, ref as S, computed as T, watch as
|
|
2
|
-
import { compact as tt, cloneDeep as
|
|
3
|
-
import { configureOpenApiClient as
|
|
4
|
-
import { escapeHtml as
|
|
5
|
-
import { escapeHtml as
|
|
6
|
-
import { format as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as N, ref as S, computed as T, watch as O, onMounted as _, createElementBlock as k, withDirectives as ie, openBlock as b, createElementVNode as $, toDisplayString as R, createCommentVNode as V, Fragment as re, renderList as le, vModelSelect as Ht, getCurrentInstance as be, withModifiers as ke, normalizeStyle as At, normalizeClass as H, renderSlot as W, reactive as $t, h as ae, Teleport as Bt, markRaw as _t, onBeforeUnmount as ue, resolveDirective as Nt, createBlock as Je, createSlots as Rt, withCtx as he, createTextVNode as X, vModelText as Wt, onActivated as Qe, onDeactivated as et } from "vue";
|
|
2
|
+
import { compact as tt, cloneDeep as jt, uniq as Pt, groupBy as Ut, isEqual as we, debounce as qt, startCase as zt, upperFirst as Kt, remove as Yt, last as Xt } from "lodash";
|
|
3
|
+
import { configureOpenApiClient as Zt, OpenApiError as Gt } from "@signal24/openapi-client-codegen";
|
|
4
|
+
import { escapeHtml as Jt } from "@vue/shared";
|
|
5
|
+
import { escapeHtml as vs } from "@vue/shared";
|
|
6
|
+
import { format as P, addDays as Qt, parse as en } from "date-fns";
|
|
7
|
+
const tn = {
|
|
8
8
|
key: 0,
|
|
9
9
|
disabled: ""
|
|
10
|
-
},
|
|
10
|
+
}, nn = {
|
|
11
11
|
key: 0,
|
|
12
12
|
value: null
|
|
13
|
-
},
|
|
13
|
+
}, on = ["value"], No = /* @__PURE__ */ N({
|
|
14
14
|
__name: "vf-ajax-select",
|
|
15
15
|
props: {
|
|
16
16
|
modelValue: {},
|
|
@@ -22,29 +22,29 @@ const en = {
|
|
|
22
22
|
},
|
|
23
23
|
emits: ["update:modelValue"],
|
|
24
24
|
setup(e, { emit: t }) {
|
|
25
|
-
const n = e, o = t,
|
|
26
|
-
const E =
|
|
25
|
+
const n = e, o = t, r = S(null), s = T(() => r.value ? r.value.map((c) => {
|
|
26
|
+
const E = c;
|
|
27
27
|
return n.preprocesor ? n.preprocesor(E) : n.displayKey ? E[n.displayKey] : "";
|
|
28
|
-
}) : null),
|
|
29
|
-
|
|
28
|
+
}) : null), a = S(n.modelValue ?? null);
|
|
29
|
+
O(() => n.loadFn, l), O(
|
|
30
30
|
() => n.modelValue,
|
|
31
|
-
() =>
|
|
32
|
-
),
|
|
33
|
-
async function
|
|
34
|
-
|
|
31
|
+
() => a.value = n.modelValue
|
|
32
|
+
), O(a, () => o("update:modelValue", a.value));
|
|
33
|
+
async function l() {
|
|
34
|
+
r.value = await n.loadFn();
|
|
35
35
|
}
|
|
36
|
-
return _(
|
|
36
|
+
return _(l), (u, c) => s.value ? ie((b(), k("select", {
|
|
37
37
|
key: 1,
|
|
38
|
-
"onUpdate:modelValue":
|
|
38
|
+
"onUpdate:modelValue": c[0] || (c[0] = (E) => a.value = E)
|
|
39
39
|
}, [
|
|
40
|
-
n.nullText ? (b(), k("option",
|
|
41
|
-
(b(!0), k(
|
|
40
|
+
n.nullText ? (b(), k("option", nn, R(n.nullText), 1)) : V("", !0),
|
|
41
|
+
(b(!0), k(re, null, le(s.value, (E, h) => (b(), k("option", {
|
|
42
42
|
key: h,
|
|
43
|
-
value:
|
|
44
|
-
}, R(E), 9,
|
|
43
|
+
value: r.value?.[h]
|
|
44
|
+
}, R(E), 9, on))), 128))
|
|
45
45
|
], 512)), [
|
|
46
|
-
[
|
|
47
|
-
]) : (b(), k("select",
|
|
46
|
+
[Ht, a.value]
|
|
47
|
+
]) : (b(), k("select", tn, [
|
|
48
48
|
$("option", null, R(n.loadingText || "Loading..."), 1)
|
|
49
49
|
]));
|
|
50
50
|
}
|
|
@@ -55,92 +55,92 @@ const en = {
|
|
|
55
55
|
defaultTimeFormat: "H:mm",
|
|
56
56
|
defaultCurrencyDivisor: 1
|
|
57
57
|
};
|
|
58
|
-
function
|
|
58
|
+
function Ro(e) {
|
|
59
59
|
Object.assign(F, e);
|
|
60
60
|
}
|
|
61
|
-
const
|
|
61
|
+
const sn = /* @__PURE__ */ N({
|
|
62
62
|
__name: "overlay-anchor",
|
|
63
63
|
props: {
|
|
64
64
|
overlayId: {},
|
|
65
65
|
anchor: {}
|
|
66
66
|
},
|
|
67
67
|
setup(e) {
|
|
68
|
-
const t = e, n = t.anchor instanceof HTMLElement ? t.anchor : t.anchor.el, o = S({ visibility: "hidden", top: "0", left: "0" }),
|
|
69
|
-
_(
|
|
70
|
-
function
|
|
68
|
+
const t = e, n = t.anchor instanceof HTMLElement ? t.anchor : t.anchor.el, o = S({ visibility: "hidden", top: "0", left: "0" }), r = S([]), s = be();
|
|
69
|
+
_(a);
|
|
70
|
+
function a() {
|
|
71
71
|
if (!s) return;
|
|
72
|
-
const
|
|
73
|
-
o.value = E,
|
|
72
|
+
const c = s.vnode.el, { styles: E, classes: h } = l(c, n);
|
|
73
|
+
o.value = E, r.value = h;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
const h = t.anchor instanceof HTMLElement ? {} : t.anchor, g = E.getBoundingClientRect(),
|
|
77
|
-
h.matchWidth && (
|
|
75
|
+
function l(c, E) {
|
|
76
|
+
const h = t.anchor instanceof HTMLElement ? {} : t.anchor, g = E.getBoundingClientRect(), d = c.getBoundingClientRect();
|
|
77
|
+
h.matchWidth && (d.width = g.width), h.matchHeight && (d.height = g.height);
|
|
78
78
|
const f = h.class ? Array.isArray(h.class) ? h.class : [h.class] : [];
|
|
79
79
|
let m, C;
|
|
80
80
|
if (h.y === "center")
|
|
81
|
-
m = g.top + g.height / 2 -
|
|
81
|
+
m = g.top + g.height / 2 - d.height / 2, f.push("anchored-center-y");
|
|
82
82
|
else {
|
|
83
|
-
const B = (g.bottom +
|
|
84
|
-
m = B ? g.bottom : g.top -
|
|
83
|
+
const B = (g.bottom + d.height < window.innerHeight || h.y === "below") && h.y !== "above";
|
|
84
|
+
m = B ? g.bottom : g.top - d.height, f.push(B ? "anchored-top" : "anchored-bottom");
|
|
85
85
|
}
|
|
86
86
|
if (h.x === "center")
|
|
87
|
-
C = g.left + g.width / 2 -
|
|
87
|
+
C = g.left + g.width / 2 - d.width / 2, f.push("anchored-center-x");
|
|
88
88
|
else {
|
|
89
|
-
const B = (g.left +
|
|
90
|
-
C = B ? g.left : g.right -
|
|
89
|
+
const B = (g.left + d.width < window.innerWidth || h.x === "left") && h.x !== "right";
|
|
90
|
+
C = B ? g.left : g.right - d.width, f.push(B ? "anchored-left" : "anchored-right");
|
|
91
91
|
}
|
|
92
92
|
return {
|
|
93
93
|
styles: {
|
|
94
94
|
top: `${m}px`,
|
|
95
95
|
left: `${C}px`,
|
|
96
|
-
...h.matchWidth ? { width: `${
|
|
97
|
-
...h.matchHeight ? { height: `${
|
|
96
|
+
...h.matchWidth ? { width: `${d.width}px` } : {},
|
|
97
|
+
...h.matchHeight ? { height: `${d.height}px` } : {}
|
|
98
98
|
},
|
|
99
99
|
classes: f
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
window.removeEventListener("click",
|
|
102
|
+
function u() {
|
|
103
|
+
window.removeEventListener("click", u), an(t.overlayId);
|
|
104
104
|
}
|
|
105
105
|
return _(() => {
|
|
106
106
|
setTimeout(() => {
|
|
107
|
-
window.addEventListener("click",
|
|
107
|
+
window.addEventListener("click", u);
|
|
108
108
|
}, 10);
|
|
109
|
-
}), (
|
|
110
|
-
class: H(["vf-overlay-anchor",
|
|
111
|
-
style:
|
|
112
|
-
onClick: ke(
|
|
109
|
+
}), (c, E) => (b(), k("div", {
|
|
110
|
+
class: H(["vf-overlay-anchor", r.value]),
|
|
111
|
+
style: At(o.value),
|
|
112
|
+
onClick: ke(u, ["stop"])
|
|
113
113
|
}, [
|
|
114
|
-
W(
|
|
114
|
+
W(c.$slots, "default")
|
|
115
115
|
], 6));
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
|
-
let
|
|
119
|
-
const A =
|
|
120
|
-
|
|
118
|
+
let rn = 0;
|
|
119
|
+
const A = $t([]);
|
|
120
|
+
O(A, () => {
|
|
121
121
|
F.onOverlaysChanged?.(A.length);
|
|
122
122
|
});
|
|
123
|
-
const
|
|
123
|
+
const Wo = N({
|
|
124
124
|
setup() {
|
|
125
125
|
return () => ae("div", [
|
|
126
|
-
|
|
126
|
+
le(A, (e) => ae(Bt, { key: e.id, to: "#vf-overlay-target" }, [e.wrapperVnode ?? e.vnode]))
|
|
127
127
|
]);
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
130
|
function ce(e, t, n) {
|
|
131
131
|
const o = document.getElementById("vf-overlay-target") ?? document.createElement("div");
|
|
132
132
|
o.id = "vf-overlay-target", o.removeAttribute("inert"), document.body.appendChild(o);
|
|
133
|
-
const
|
|
134
|
-
id:
|
|
133
|
+
const r = String(++rn), s = _t(e), a = ae(s, t), l = n?.anchor ? ae(sn, { overlayId: r, anchor: n.anchor }, () => [a]) : void 0, u = {
|
|
134
|
+
id: r,
|
|
135
135
|
component: s,
|
|
136
136
|
props: t,
|
|
137
137
|
options: n ?? {},
|
|
138
|
-
vnode:
|
|
139
|
-
wrapperVnode:
|
|
138
|
+
vnode: a,
|
|
139
|
+
wrapperVnode: l
|
|
140
140
|
};
|
|
141
|
-
return A.push(
|
|
141
|
+
return A.push(u), u;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function jo(e) {
|
|
144
144
|
e.$ && nt(e.$);
|
|
145
145
|
}
|
|
146
146
|
function nt(e) {
|
|
@@ -152,7 +152,7 @@ function ln(e) {
|
|
|
152
152
|
const t = A.findIndex((n) => n.vnode.component === e.component);
|
|
153
153
|
return t >= 0 ? (A[t].props.callback(), !0) : !1;
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function an(e) {
|
|
156
156
|
const t = A.findIndex((n) => n.id === e);
|
|
157
157
|
return t >= 0 ? (A[t].props.callback(), !0) : !1;
|
|
158
158
|
}
|
|
@@ -162,19 +162,19 @@ function Q(e) {
|
|
|
162
162
|
}
|
|
163
163
|
async function Te(e, t, n) {
|
|
164
164
|
return new Promise((o) => {
|
|
165
|
-
let
|
|
166
|
-
const
|
|
165
|
+
let r = null;
|
|
166
|
+
const a = { ...t, callback: async (l) => {
|
|
167
167
|
if (n?.onCallback) {
|
|
168
|
-
const
|
|
169
|
-
if (typeof
|
|
168
|
+
const u = n.onCallback(l);
|
|
169
|
+
if (typeof u == "object" && "then" in u && typeof u.then == "function" && await u === !1)
|
|
170
170
|
return;
|
|
171
171
|
}
|
|
172
|
-
Q(
|
|
172
|
+
Q(r), o(l);
|
|
173
173
|
} };
|
|
174
|
-
|
|
174
|
+
r = ce(e, a, n);
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
|
-
async function
|
|
177
|
+
async function un(e, t) {
|
|
178
178
|
const n = e.vnode.component.props;
|
|
179
179
|
for (const o in t)
|
|
180
180
|
n[o] = t[o];
|
|
@@ -185,10 +185,10 @@ function te(e, t) {
|
|
|
185
185
|
classes: e.classes ?? []
|
|
186
186
|
} : { title: t ? e : void 0, message: t ?? e, classes: [] };
|
|
187
187
|
}
|
|
188
|
-
async function
|
|
188
|
+
async function cn(e, t) {
|
|
189
189
|
await Te(ne, te(e, t));
|
|
190
190
|
}
|
|
191
|
-
async function
|
|
191
|
+
async function Po(e, t) {
|
|
192
192
|
const n = te(e, t);
|
|
193
193
|
return await Te(ne, {
|
|
194
194
|
...n,
|
|
@@ -203,7 +203,7 @@ async function Uo(e, t) {
|
|
|
203
203
|
classes: ["destructive", ...n.classes]
|
|
204
204
|
}) === !0;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function qo(e, t) {
|
|
207
207
|
const n = te(e, t), o = ce(ne, {
|
|
208
208
|
...n,
|
|
209
209
|
isBare: !0,
|
|
@@ -213,7 +213,7 @@ function Po(e, t) {
|
|
|
213
213
|
});
|
|
214
214
|
return () => Q(o);
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function zo(e, t) {
|
|
217
217
|
const n = te(e, t), o = ce(ne, {
|
|
218
218
|
...n,
|
|
219
219
|
isBare: !0,
|
|
@@ -222,8 +222,8 @@ function qo(e, t) {
|
|
|
222
222
|
}
|
|
223
223
|
});
|
|
224
224
|
return {
|
|
225
|
-
update: (
|
|
226
|
-
|
|
225
|
+
update: (r) => {
|
|
226
|
+
un(o, { message: r });
|
|
227
227
|
},
|
|
228
228
|
dismiss: () => Q(o)
|
|
229
229
|
};
|
|
@@ -233,7 +233,7 @@ class de extends Error {
|
|
|
233
233
|
super(t), this.name = "UserError";
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function dn(e) {
|
|
237
237
|
return e instanceof de ? e.message : `An application error has occurred:
|
|
238
238
|
|
|
239
239
|
${Se(e).message}
|
|
@@ -241,33 +241,33 @@ ${Se(e).message}
|
|
|
241
241
|
Please refresh the page and try again. If this error persists, ${F.unhandledErrorSupportText}.`;
|
|
242
242
|
}
|
|
243
243
|
function Se(e) {
|
|
244
|
-
return
|
|
244
|
+
return fn(e) ? e : new Error(String(e));
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function fn(e) {
|
|
247
247
|
return e instanceof Error || typeof e == "object" && e !== null && "message" in e && "name" in e;
|
|
248
248
|
}
|
|
249
|
-
async function
|
|
249
|
+
async function Ko(e, t) {
|
|
250
250
|
const n = Se(e);
|
|
251
|
-
return n instanceof de || F.errorHandler(n),
|
|
251
|
+
return n instanceof de || F.errorHandler(n), cn({
|
|
252
252
|
title: t?.title,
|
|
253
253
|
message: n,
|
|
254
254
|
classes: t?.classes
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
|
-
async function
|
|
257
|
+
async function Yo(e) {
|
|
258
258
|
const t = Se(e);
|
|
259
259
|
t instanceof de || F.errorHandler(t);
|
|
260
260
|
}
|
|
261
261
|
const Z = Symbol("MaskState");
|
|
262
|
-
function
|
|
262
|
+
function Xo(e, t) {
|
|
263
263
|
const n = e.$?.vnode.el, o = n.closest(".vf-modal");
|
|
264
|
-
return
|
|
264
|
+
return pn(o ?? n, t);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function Zo(e) {
|
|
267
267
|
const t = e.$?.vnode.el, n = t.closest(".vf-modal");
|
|
268
268
|
return ot(n ?? t);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function pn(e, t) {
|
|
271
271
|
if (!e[Z]) {
|
|
272
272
|
const n = document.createElement("div");
|
|
273
273
|
n.classList.add("vf-mask"), e.appendChild(n), e[Z] = { maskEl: n };
|
|
@@ -278,18 +278,18 @@ function ot(e) {
|
|
|
278
278
|
e[Z] && e.removeChild(e[Z].maskEl);
|
|
279
279
|
}
|
|
280
280
|
const Ee = Symbol("FormMaskState");
|
|
281
|
-
function
|
|
281
|
+
function vn(e, t, n) {
|
|
282
282
|
const o = e instanceof Element ? e : it(e);
|
|
283
283
|
if (!o) return () => {
|
|
284
284
|
};
|
|
285
285
|
o.classList.add("vf-masked");
|
|
286
|
-
const
|
|
286
|
+
const r = t instanceof Element ? t : o.querySelectorAll(t ?? 'button:not([disabled]):not([type="button"])')[0];
|
|
287
287
|
let s;
|
|
288
|
-
|
|
289
|
-
const
|
|
290
|
-
return
|
|
291
|
-
disabledElements:
|
|
292
|
-
waitButton:
|
|
288
|
+
r && (s = r.tagName === "INPUT" ? r.value : r.innerHTML, r.setAttribute("disabled", "disabled"), r.innerText = n ?? "Please wait...");
|
|
289
|
+
const l = [...o.querySelectorAll("input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled])")];
|
|
290
|
+
return l.forEach((u) => u.setAttribute("disabled", "disabled")), o[Ee] = {
|
|
291
|
+
disabledElements: l,
|
|
292
|
+
waitButton: r,
|
|
293
293
|
buttonHtml: s
|
|
294
294
|
}, () => st(o);
|
|
295
295
|
}
|
|
@@ -303,13 +303,13 @@ function it(e) {
|
|
|
303
303
|
const t = e?.$?.vnode.el;
|
|
304
304
|
return t ? t.tagName === "FORM" ? t : t.querySelector("form") : null;
|
|
305
305
|
}
|
|
306
|
-
const
|
|
306
|
+
const mn = ["id"], hn = {
|
|
307
307
|
key: 0,
|
|
308
308
|
class: "vf-modal-header"
|
|
309
|
-
},
|
|
309
|
+
}, yn = { class: "vf-modal-content" }, gn = {
|
|
310
310
|
key: 1,
|
|
311
311
|
class: "vf-modal-footer"
|
|
312
|
-
},
|
|
312
|
+
}, wn = /* @__PURE__ */ N({
|
|
313
313
|
__name: "vf-modal",
|
|
314
314
|
props: {
|
|
315
315
|
id: {},
|
|
@@ -321,42 +321,42 @@ const vn = ["id"], mn = {
|
|
|
321
321
|
emits: ["formSubmit"],
|
|
322
322
|
setup(e, { expose: t }) {
|
|
323
323
|
const n = be(), o = e;
|
|
324
|
-
t({ mask: h, unmask: g, hide:
|
|
325
|
-
const
|
|
324
|
+
t({ mask: h, unmask: g, hide: d, unhide: f });
|
|
325
|
+
const r = S(), s = S(), a = S(!1), l = T(() => tt([...Array.isArray(o.class) ? o.class : [o.class], a.value && "hidden"]));
|
|
326
326
|
_(() => {
|
|
327
|
-
document.body.classList.add("vf-modal-open"), o.closeOnMaskClick && (window.addEventListener("keydown",
|
|
327
|
+
document.body.classList.add("vf-modal-open"), o.closeOnMaskClick && (window.addEventListener("keydown", c), r.value?.addEventListener("click", u));
|
|
328
328
|
}), ue(() => {
|
|
329
|
-
window.removeEventListener("keydown",
|
|
329
|
+
window.removeEventListener("keydown", c), document.body.querySelectorAll(".vf-modal").length > 0 || document.body.classList.remove("vf-modal-open");
|
|
330
330
|
});
|
|
331
|
-
function
|
|
332
|
-
m.target ==
|
|
331
|
+
function u(m) {
|
|
332
|
+
m.target == r.value && E();
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function c(m) {
|
|
335
335
|
if (m.key === "Esc" || m.key === "Escape") {
|
|
336
336
|
const C = document.querySelectorAll(".vf-modal-wrap");
|
|
337
|
-
C[C.length - 1] ===
|
|
337
|
+
C[C.length - 1] === r.value && E();
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
function E() {
|
|
341
341
|
nt(n);
|
|
342
342
|
}
|
|
343
343
|
function h() {
|
|
344
|
-
return
|
|
344
|
+
return vn(s.value), () => g();
|
|
345
345
|
}
|
|
346
346
|
function g() {
|
|
347
347
|
st(s.value);
|
|
348
348
|
}
|
|
349
|
-
function
|
|
350
|
-
return
|
|
349
|
+
function d() {
|
|
350
|
+
return a.value = !0, () => f();
|
|
351
351
|
}
|
|
352
352
|
function f() {
|
|
353
|
-
|
|
353
|
+
a.value = !1;
|
|
354
354
|
}
|
|
355
355
|
return (m, C) => (b(), k("div", {
|
|
356
356
|
id: m.id,
|
|
357
357
|
ref_key: "overlay",
|
|
358
|
-
ref:
|
|
359
|
-
class: H(["vf-overlay vf-modal-wrap",
|
|
358
|
+
ref: r,
|
|
359
|
+
class: H(["vf-overlay vf-modal-wrap", l.value])
|
|
360
360
|
}, [
|
|
361
361
|
$("form", {
|
|
362
362
|
ref_key: "form",
|
|
@@ -365,7 +365,7 @@ const vn = ["id"], mn = {
|
|
|
365
365
|
class: H(["vf-modal", { scrolls: m.scrolls }]),
|
|
366
366
|
onSubmit: C[0] || (C[0] = ke((x) => m.$emit("formSubmit"), ["prevent"]))
|
|
367
367
|
}, [
|
|
368
|
-
m.$slots.header ? (b(), k("div",
|
|
368
|
+
m.$slots.header ? (b(), k("div", hn, [
|
|
369
369
|
W(m.$slots, "header"),
|
|
370
370
|
o.closeX ? (b(), k("i", {
|
|
371
371
|
key: 0,
|
|
@@ -373,16 +373,16 @@ const vn = ["id"], mn = {
|
|
|
373
373
|
onClick: E
|
|
374
374
|
})) : V("", !0)
|
|
375
375
|
])) : V("", !0),
|
|
376
|
-
$("div",
|
|
376
|
+
$("div", yn, [
|
|
377
377
|
W(m.$slots, "default")
|
|
378
378
|
]),
|
|
379
|
-
m.$slots.footer ? (b(), k("div",
|
|
379
|
+
m.$slots.footer ? (b(), k("div", gn, [
|
|
380
380
|
W(m.$slots, "footer")
|
|
381
381
|
])) : V("", !0)
|
|
382
382
|
], 34)
|
|
383
|
-
], 10,
|
|
383
|
+
], 10, mn));
|
|
384
384
|
}
|
|
385
|
-
}),
|
|
385
|
+
}), En = ["innerHtml"], bn = ["innerText"], ne = /* @__PURE__ */ N({
|
|
386
386
|
__name: "vf-alert-modal",
|
|
387
387
|
props: {
|
|
388
388
|
isBare: { type: Boolean },
|
|
@@ -395,12 +395,12 @@ const vn = ["id"], mn = {
|
|
|
395
395
|
callback: { type: Function }
|
|
396
396
|
},
|
|
397
397
|
setup(e) {
|
|
398
|
-
const t = e, n = T(() => t.message instanceof Error ?
|
|
399
|
-
return (o,
|
|
400
|
-
const s =
|
|
401
|
-
return b(), Je(
|
|
398
|
+
const t = e, n = T(() => t.message instanceof Error ? dn(t.message) : t.message);
|
|
399
|
+
return (o, r) => {
|
|
400
|
+
const s = Nt("autofocus");
|
|
401
|
+
return b(), Je(wn, {
|
|
402
402
|
class: H(["vf-alert", ...o.classes ?? []])
|
|
403
|
-
},
|
|
403
|
+
}, Rt({
|
|
404
404
|
default: he(() => [
|
|
405
405
|
o.iconClass ? (b(), k("i", {
|
|
406
406
|
key: 0,
|
|
@@ -410,10 +410,10 @@ const vn = ["id"], mn = {
|
|
|
410
410
|
key: 1,
|
|
411
411
|
innerHtml: o.message,
|
|
412
412
|
class: "user-message"
|
|
413
|
-
}, null, 8,
|
|
413
|
+
}, null, 8, En)) : (b(), k("div", {
|
|
414
414
|
key: 2,
|
|
415
415
|
innerText: n.value
|
|
416
|
-
}, null, 8,
|
|
416
|
+
}, null, 8, bn))
|
|
417
417
|
]),
|
|
418
418
|
_: 2
|
|
419
419
|
}, [
|
|
@@ -427,24 +427,24 @@ const vn = ["id"], mn = {
|
|
|
427
427
|
o.isBare ? void 0 : {
|
|
428
428
|
name: "footer",
|
|
429
429
|
fn: he(() => [
|
|
430
|
-
o.shouldConfirm ? (b(), k(
|
|
430
|
+
o.shouldConfirm ? (b(), k(re, { key: 0 }, [
|
|
431
431
|
ie((b(), k("button", {
|
|
432
432
|
class: "primary",
|
|
433
|
-
onClick:
|
|
434
|
-
},
|
|
433
|
+
onClick: r[0] || (r[0] = () => o.callback(!0))
|
|
434
|
+
}, r[3] || (r[3] = [
|
|
435
435
|
X("Confirm")
|
|
436
436
|
]))), [
|
|
437
437
|
[s]
|
|
438
438
|
]),
|
|
439
439
|
$("button", {
|
|
440
440
|
class: "default",
|
|
441
|
-
onClick:
|
|
441
|
+
onClick: r[1] || (r[1] = () => o.callback(!1))
|
|
442
442
|
}, "Cancel")
|
|
443
443
|
], 64)) : ie((b(), k("button", {
|
|
444
444
|
key: 1,
|
|
445
445
|
class: "default",
|
|
446
|
-
onClick:
|
|
447
|
-
},
|
|
446
|
+
onClick: r[2] || (r[2] = () => o.callback(!0))
|
|
447
|
+
}, r[4] || (r[4] = [
|
|
448
448
|
X("OK")
|
|
449
449
|
]))), [
|
|
450
450
|
[s]
|
|
@@ -456,33 +456,33 @@ const vn = ["id"], mn = {
|
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
458
|
});
|
|
459
|
-
function
|
|
459
|
+
function Go(e, t, n) {
|
|
460
460
|
const o = typeof t == "function" ? e.findIndex(t) : e.indexOf(t);
|
|
461
461
|
return o === -1 ? !1 : (e.splice(o, 1, n), !0);
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function Jo(e, t) {
|
|
464
464
|
const n = document.createElement("div");
|
|
465
465
|
n.classList.add("vf-overlay"), n.addEventListener("click", h), document.body.appendChild(n);
|
|
466
466
|
const o = document.createElement("div");
|
|
467
467
|
o.classList.add("vf-context-menu"), o.style.position = "absolute", n.appendChild(o);
|
|
468
|
-
const
|
|
469
|
-
|
|
470
|
-
if (
|
|
468
|
+
const r = e.currentTarget;
|
|
469
|
+
r.style.userSelect = "none", r.classList.add("context-menu-active"), t.targetClass && r.classList.add(t.targetClass), t.class && o.classList.add(t.class), t.items.forEach((d) => {
|
|
470
|
+
if (d == "-") {
|
|
471
471
|
const m = document.createElement("div");
|
|
472
472
|
m.classList.add("separator"), o.appendChild(m);
|
|
473
473
|
return;
|
|
474
474
|
}
|
|
475
475
|
const f = document.createElement("div");
|
|
476
|
-
f.classList.add("item"), f.style.userSelect = "none", f.innerText =
|
|
476
|
+
f.classList.add("item"), f.style.userSelect = "none", f.innerText = d.title, o.appendChild(f), d.class && f.classList.add(d.class), d.shouldConfirm ? f.addEventListener("click", (m) => g(m, f, d.handler)) : f.addEventListener("click", () => d.handler());
|
|
477
477
|
});
|
|
478
|
-
const s = window.innerWidth - e.clientX,
|
|
479
|
-
o.style.left =
|
|
478
|
+
const s = window.innerWidth - e.clientX, a = window.innerHeight - e.clientY, l = o.offsetHeight, u = o.offsetWidth, c = s < u ? e.clientX - u - 1 : e.clientX + 1, E = a < l ? e.clientY - l - 1 : e.clientY + 1;
|
|
479
|
+
o.style.left = c + "px", o.style.top = E + "px", setTimeout(() => {
|
|
480
480
|
o.style.width = o.offsetWidth + "px";
|
|
481
481
|
}, 50);
|
|
482
482
|
function h() {
|
|
483
|
-
t.targetClass &&
|
|
483
|
+
t.targetClass && r.classList.remove(t.targetClass), r.classList.remove("context-menu-active"), r.style.userSelect = "", n.remove();
|
|
484
484
|
}
|
|
485
|
-
function g(
|
|
485
|
+
function g(d, f, m) {
|
|
486
486
|
if (f.classList.contains("pending-confirm"))
|
|
487
487
|
return m();
|
|
488
488
|
const C = f.innerHTML;
|
|
@@ -490,17 +490,17 @@ function Go(e, t) {
|
|
|
490
490
|
const x = () => {
|
|
491
491
|
f.classList.remove("pending-confirm"), f.innerHTML = C, f.removeEventListener("mouseleave", x);
|
|
492
492
|
};
|
|
493
|
-
f.addEventListener("mouseleave", x),
|
|
493
|
+
f.addEventListener("mouseleave", x), d.stopPropagation();
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
const
|
|
497
|
-
function
|
|
496
|
+
const kn = (e) => new Promise((t) => setTimeout(t, e)), Qo = (e) => kn(e * 1e3);
|
|
497
|
+
function Tn(e) {
|
|
498
498
|
return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
499
499
|
}
|
|
500
|
-
function Qo(e, t) {
|
|
501
|
-
return e != null ? Wt(e) : t;
|
|
502
|
-
}
|
|
503
500
|
function es(e, t) {
|
|
501
|
+
return e != null ? jt(e) : t;
|
|
502
|
+
}
|
|
503
|
+
function ts(e, t) {
|
|
504
504
|
const n = { ...e };
|
|
505
505
|
for (const o of t)
|
|
506
506
|
n[o] === "" && (n[o] = null);
|
|
@@ -509,13 +509,13 @@ function es(e, t) {
|
|
|
509
509
|
function We(e) {
|
|
510
510
|
return e != null;
|
|
511
511
|
}
|
|
512
|
-
function
|
|
513
|
-
|
|
512
|
+
function ns(e, t) {
|
|
513
|
+
Zt(e, {
|
|
514
514
|
...t,
|
|
515
515
|
onError(n, o) {
|
|
516
|
-
n instanceof
|
|
517
|
-
const
|
|
518
|
-
return
|
|
516
|
+
n instanceof Gt && n.response.status === 422 && typeof n.body == "object" && n.body && "error" in n.body && typeof n.body.error == "string" && (n = new de(n.body.error));
|
|
517
|
+
const r = t.onError?.(n, o);
|
|
518
|
+
return r !== void 0 ? r : n;
|
|
519
519
|
}
|
|
520
520
|
});
|
|
521
521
|
}
|
|
@@ -526,7 +526,7 @@ function ts(e, t) {
|
|
|
526
526
|
* Copyright (c) 2021 Jason Wilson
|
|
527
527
|
* Released under MIT license
|
|
528
528
|
*/
|
|
529
|
-
var
|
|
529
|
+
var Sn = {
|
|
530
530
|
symbol: "$",
|
|
531
531
|
separator: ",",
|
|
532
532
|
decimal: ".",
|
|
@@ -534,41 +534,41 @@ var Tn = {
|
|
|
534
534
|
precision: 2,
|
|
535
535
|
pattern: "!#",
|
|
536
536
|
negativePattern: "-!#",
|
|
537
|
-
format:
|
|
537
|
+
format: Ln,
|
|
538
538
|
fromCents: !1
|
|
539
|
-
},
|
|
539
|
+
}, rt = function(t) {
|
|
540
540
|
return Math.round(t);
|
|
541
541
|
}, Ce = function(t) {
|
|
542
542
|
return Math.pow(10, t);
|
|
543
|
-
},
|
|
544
|
-
return
|
|
545
|
-
},
|
|
543
|
+
}, Cn = function(t, n) {
|
|
544
|
+
return rt(t / n) * n;
|
|
545
|
+
}, xn = /(\d)(?=(\d{3})+\b)/g, Mn = /(\d)(?=(\d\d)+\d\b)/g;
|
|
546
546
|
function D(e, t) {
|
|
547
547
|
var n = this;
|
|
548
548
|
if (!(n instanceof D))
|
|
549
549
|
return new D(e, t);
|
|
550
|
-
var o = Object.assign({},
|
|
551
|
-
n.intValue = s, n.value = s /
|
|
550
|
+
var o = Object.assign({}, Sn, t), r = Ce(o.precision), s = se(e, o);
|
|
551
|
+
n.intValue = s, n.value = s / r, o.increment = o.increment || 1 / r, o.useVedic ? o.groups = Mn : o.groups = xn, this.s = o, this.p = r;
|
|
552
552
|
}
|
|
553
553
|
function se(e, t) {
|
|
554
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, o = 0,
|
|
555
|
-
if (E &&
|
|
554
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, o = 0, r = t.decimal, s = t.errorOnInvalid, a = t.precision, l = t.fromCents, u = Ce(a), c = typeof e == "number", E = e instanceof D;
|
|
555
|
+
if (E && l)
|
|
556
556
|
return e.intValue;
|
|
557
|
-
if (
|
|
557
|
+
if (c || E)
|
|
558
558
|
o = E ? e.value : e;
|
|
559
559
|
else if (typeof e == "string") {
|
|
560
|
-
var h = new RegExp("[^-\\d" +
|
|
560
|
+
var h = new RegExp("[^-\\d" + r + "]", "g"), g = new RegExp("\\" + r, "g");
|
|
561
561
|
o = e.replace(/\((.*)\)/, "-$1").replace(h, "").replace(g, "."), o = o || 0;
|
|
562
562
|
} else {
|
|
563
563
|
if (s)
|
|
564
564
|
throw Error("Invalid Input");
|
|
565
565
|
o = 0;
|
|
566
566
|
}
|
|
567
|
-
return
|
|
567
|
+
return l || (o *= u, o = o.toFixed(4)), n ? rt(o) : o;
|
|
568
568
|
}
|
|
569
|
-
function
|
|
570
|
-
var n = t.pattern, o = t.negativePattern,
|
|
571
|
-
return (e.value >= 0 ? n : o).replace("!",
|
|
569
|
+
function Ln(e, t) {
|
|
570
|
+
var n = t.pattern, o = t.negativePattern, r = t.symbol, s = t.separator, a = t.decimal, l = t.groups, u = ("" + e).replace(/^-/, "").split("."), c = u[0], E = u[1];
|
|
571
|
+
return (e.value >= 0 ? n : o).replace("!", r).replace("#", c.replace(l, "$1" + s) + (E ? a + E : ""));
|
|
572
572
|
}
|
|
573
573
|
D.prototype = {
|
|
574
574
|
/**
|
|
@@ -577,8 +577,8 @@ D.prototype = {
|
|
|
577
577
|
* @returns {currency}
|
|
578
578
|
*/
|
|
579
579
|
add: function(t) {
|
|
580
|
-
var n = this.intValue, o = this.s,
|
|
581
|
-
return D((n += se(t, o)) / (o.fromCents ? 1 :
|
|
580
|
+
var n = this.intValue, o = this.s, r = this.p;
|
|
581
|
+
return D((n += se(t, o)) / (o.fromCents ? 1 : r), o);
|
|
582
582
|
},
|
|
583
583
|
/**
|
|
584
584
|
* Subtracts value.
|
|
@@ -586,8 +586,8 @@ D.prototype = {
|
|
|
586
586
|
* @returns {currency}
|
|
587
587
|
*/
|
|
588
588
|
subtract: function(t) {
|
|
589
|
-
var n = this.intValue, o = this.s,
|
|
590
|
-
return D((n -= se(t, o)) / (o.fromCents ? 1 :
|
|
589
|
+
var n = this.intValue, o = this.s, r = this.p;
|
|
590
|
+
return D((n -= se(t, o)) / (o.fromCents ? 1 : r), o);
|
|
591
591
|
},
|
|
592
592
|
/**
|
|
593
593
|
* Multiplies values.
|
|
@@ -614,9 +614,9 @@ D.prototype = {
|
|
|
614
614
|
* @returns {array}
|
|
615
615
|
*/
|
|
616
616
|
distribute: function(t) {
|
|
617
|
-
for (var n = this.intValue, o = this.p,
|
|
618
|
-
var
|
|
619
|
-
|
|
617
|
+
for (var n = this.intValue, o = this.p, r = this.s, s = [], a = Math[n >= 0 ? "floor" : "ceil"](n / t), l = Math.abs(n - a * t), u = r.fromCents ? 1 : o; t !== 0; t--) {
|
|
618
|
+
var c = D(a / u, r);
|
|
619
|
+
l-- > 0 && (c = c[n >= 0 ? "add" : "subtract"](1 / u)), s.push(c);
|
|
620
620
|
}
|
|
621
621
|
return s;
|
|
622
622
|
},
|
|
@@ -650,7 +650,7 @@ D.prototype = {
|
|
|
650
650
|
*/
|
|
651
651
|
toString: function() {
|
|
652
652
|
var t = this.intValue, n = this.p, o = this.s;
|
|
653
|
-
return
|
|
653
|
+
return Cn(t / n, o.increment).toFixed(o.precision);
|
|
654
654
|
},
|
|
655
655
|
/**
|
|
656
656
|
* Value for JSON serialization.
|
|
@@ -663,55 +663,55 @@ D.prototype = {
|
|
|
663
663
|
const M = [];
|
|
664
664
|
for (let e = 0; e < 256; ++e)
|
|
665
665
|
M.push((e + 256).toString(16).slice(1));
|
|
666
|
-
function
|
|
666
|
+
function Fn(e, t = 0) {
|
|
667
667
|
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();
|
|
668
668
|
}
|
|
669
669
|
let ye;
|
|
670
|
-
const
|
|
670
|
+
const In = new Uint8Array(16);
|
|
671
671
|
function On() {
|
|
672
672
|
if (!ye) {
|
|
673
673
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
674
674
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
675
675
|
ye = crypto.getRandomValues.bind(crypto);
|
|
676
676
|
}
|
|
677
|
-
return ye(
|
|
677
|
+
return ye(In);
|
|
678
678
|
}
|
|
679
|
-
const
|
|
680
|
-
function
|
|
679
|
+
const Dn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), je = { randomUUID: Dn };
|
|
680
|
+
function Vn(e, t, n) {
|
|
681
681
|
if (je.randomUUID && !e)
|
|
682
682
|
return je.randomUUID();
|
|
683
683
|
e = e || {};
|
|
684
684
|
const o = e.random ?? e.rng?.() ?? On();
|
|
685
685
|
if (o.length < 16)
|
|
686
686
|
throw new Error("Random bytes length must be >= 16");
|
|
687
|
-
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128,
|
|
687
|
+
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, Fn(o);
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function os(e) {
|
|
690
690
|
return e.replace(/\n/g, "<br>");
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function Hn(e) {
|
|
693
693
|
return e.replace(/_/g, " ");
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function An(e) {
|
|
696
696
|
const t = e.replace(/\D/g, "").replace(/^1/, "");
|
|
697
697
|
return t.length !== 10 ? e : "(" + t.substring(0, 3) + ") " + t.substring(3, 6) + "-" + t.substring(6);
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function $n(e, t) {
|
|
700
700
|
return D(e).divide(t ?? F.defaultCurrencyDivisor).format();
|
|
701
701
|
}
|
|
702
|
-
function
|
|
703
|
-
return
|
|
702
|
+
function ss() {
|
|
703
|
+
return Vn();
|
|
704
704
|
}
|
|
705
|
-
const
|
|
705
|
+
const Bn = ["disabled", "placeholder", "required", "name"], _n = {
|
|
706
706
|
key: 0,
|
|
707
707
|
class: "no-results"
|
|
708
|
-
},
|
|
708
|
+
}, Nn = {
|
|
709
709
|
key: 0,
|
|
710
710
|
class: "group-title"
|
|
711
|
-
},
|
|
711
|
+
}, Rn = ["onMousemove", "onMousedown"], Wn = ["innerHTML"], jn = ["innerHTML"], Pn = {
|
|
712
712
|
key: 1,
|
|
713
713
|
class: "no-results"
|
|
714
|
-
}, Un = "`1234567890-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM",
|
|
714
|
+
}, Un = "`1234567890-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", qn = /* @__PURE__ */ N({
|
|
715
715
|
__name: "vf-smart-select",
|
|
716
716
|
props: {
|
|
717
717
|
modelValue: {},
|
|
@@ -748,36 +748,36 @@ const $n = ["disabled", "placeholder", "required", "name"], Bn = {
|
|
|
748
748
|
},
|
|
749
749
|
emits: ["optionsLoaded", "update:modelValue"],
|
|
750
750
|
setup(e, { expose: t, emit: n }) {
|
|
751
|
-
const o = Symbol("null"),
|
|
751
|
+
const o = Symbol("null"), r = Symbol("create"), s = e, a = n;
|
|
752
752
|
t({
|
|
753
|
-
addRemoteOption:
|
|
753
|
+
addRemoteOption: Vt
|
|
754
754
|
});
|
|
755
|
-
const
|
|
756
|
-
const v = bt.value?.(i), p = Fe.value(i),
|
|
755
|
+
const l = S(), u = S(), c = S(), E = S(!1), h = S(), g = S(!1), d = S(""), f = S(null), m = S(null), C = S(!1), x = S(null), B = S(!1), mt = T(() => s.showCreateTextOnNewItem ?? !0), U = T(() => !!(s.options || h.value)), ht = T(() => s.options ?? h.value ?? []), yt = T(() => s.prependOptions ?? []), gt = T(() => s.appendOptions ?? []), Le = T(() => !!s.disabled || !U.value && !s.loadOptions), fe = T(() => s.loadingText || "..."), wt = T(() => !U.value && (!s.loadOptions || s.preload || s.modelValue && (s.valueField || s.valueExtractor)) ? fe.value : s.nullTitle ? s.nullTitle : s.placeholder || ""), Et = T(() => s.noResultsText || "No options match your search."), q = T(() => s.valueExtractor ? s.valueExtractor : s.valueField ? (i) => i[s.valueField] : null), pe = T(() => s.keyExtractor ? s.keyExtractor : s.keyField ? (i) => String(i[s.keyField]) : q.value ? (i) => String(q.value(i)) : null), bt = 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(() => [...yt.value, ...ht.value, ...gt.value]), De = T(() => !!(s.groupField || s.groupFormatter)), ve = T(() => Oe.value.map((i, y) => {
|
|
756
|
+
const v = bt.value?.(i), p = Fe.value(i), w = s.subtitleFormatter?.(i), I = p ? p.trim().toLowerCase() : "", Ne = w ? w.trim().toLowerCase() : "", oe = [];
|
|
757
757
|
return s.searchFields ? s.searchFields.forEach((Re) => {
|
|
758
758
|
i[Re] && oe.push(String(i[Re]).toLowerCase());
|
|
759
|
-
}) : (oe.push(
|
|
760
|
-
key:
|
|
759
|
+
}) : (oe.push(I), Ne && oe.push(Ne)), {
|
|
760
|
+
key: pe.value?.(i) ?? String(y),
|
|
761
761
|
group: v,
|
|
762
762
|
title: p,
|
|
763
|
-
subtitle:
|
|
763
|
+
subtitle: w,
|
|
764
764
|
searchContent: oe.join(""),
|
|
765
765
|
ref: i
|
|
766
766
|
};
|
|
767
767
|
})), L = T(() => {
|
|
768
|
-
let i = [...
|
|
768
|
+
let i = [...ve.value];
|
|
769
769
|
if (g.value) {
|
|
770
|
-
const
|
|
771
|
-
if (
|
|
772
|
-
i = i.filter((
|
|
773
|
-
const v =
|
|
774
|
-
i = i.map((
|
|
775
|
-
...
|
|
776
|
-
title:
|
|
777
|
-
subtitle:
|
|
778
|
-
})), B.value && (i.find((
|
|
779
|
-
key:
|
|
780
|
-
title: mt.value ? "Create <strong>" +
|
|
770
|
+
const y = d.value.trim().toLowerCase();
|
|
771
|
+
if (y.length) {
|
|
772
|
+
i = i.filter((w) => w.searchContent.includes(y));
|
|
773
|
+
const v = Jt(d.value).replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), p = new RegExp(`(${v})`, "ig");
|
|
774
|
+
i = i.map((w) => ({
|
|
775
|
+
...w,
|
|
776
|
+
title: w.title.replace(p, "<mark>$1</mark>"),
|
|
777
|
+
subtitle: w.subtitle?.replace(p, "<mark>$1</mark>")
|
|
778
|
+
})), B.value && (i.find((I) => I.searchContent === y) !== void 0 || i.push({
|
|
779
|
+
key: r,
|
|
780
|
+
title: mt.value ? "Create <strong>" + d.value.trim() + "</strong>..." : d.value.trim()
|
|
781
781
|
}));
|
|
782
782
|
}
|
|
783
783
|
} else s.nullTitle && i.unshift({
|
|
@@ -793,37 +793,37 @@ const $n = ["disabled", "placeholder", "required", "name"], Bn = {
|
|
|
793
793
|
options: L.value
|
|
794
794
|
}
|
|
795
795
|
];
|
|
796
|
-
const i =
|
|
796
|
+
const i = Pt(L.value.map((v) => v.group ?? "")), y = Ut(L.value, (v) => v.group ?? "");
|
|
797
797
|
return i.map((v) => ({
|
|
798
798
|
groupTitle: v,
|
|
799
|
-
options:
|
|
799
|
+
options: y[v]
|
|
800
800
|
}));
|
|
801
801
|
});
|
|
802
|
-
|
|
802
|
+
O(() => s.modelValue, z), O(ve, () => {
|
|
803
803
|
C.value && setTimeout($e, 0);
|
|
804
|
-
}),
|
|
805
|
-
g.value && !s.remoteSearch && !
|
|
806
|
-
}),
|
|
807
|
-
C.value ? setTimeout(
|
|
808
|
-
}),
|
|
809
|
-
s.modelValue !== null && f.value === null &&
|
|
804
|
+
}), O(d, () => {
|
|
805
|
+
g.value && !s.remoteSearch && !d.value.trim().length && (g.value = !1);
|
|
806
|
+
}), O(C, () => {
|
|
807
|
+
C.value ? setTimeout(It, 0) : (g.value = !1, d.value = m.value ?? "", c.value && (c.value.style.visibility = "hidden"));
|
|
808
|
+
}), O(L, () => {
|
|
809
|
+
s.modelValue !== null && f.value === null && z(), (x.value !== null || g.value) && !L.value.find((i) => i.key == x.value) && (x.value = L.value[0]?.key ?? o);
|
|
810
810
|
}), _(async () => {
|
|
811
|
-
B.value = s.onCreateItem !== void 0, s.loadOptions && s.preload
|
|
811
|
+
B.value = s.onCreateItem !== void 0, s.loadOptions && s.preload ? await Ve() : !s.options && !s.loadOptions && (s.valueField || s.valueExtractor) || z(), O(f, () => {
|
|
812
812
|
const i = We(f.value) && q.value !== null ? q.value(f.value) : f.value;
|
|
813
|
-
we(s.modelValue, i) ||
|
|
814
|
-
}), s.remoteSearch &&
|
|
813
|
+
we(s.modelValue, i) || a("update:modelValue", i);
|
|
814
|
+
}), s.remoteSearch && O(d, qt(Tt, 250));
|
|
815
815
|
}), ue(() => {
|
|
816
|
-
|
|
816
|
+
c.value?.remove();
|
|
817
817
|
});
|
|
818
818
|
async function Ve() {
|
|
819
|
-
await He(), h.value &&
|
|
819
|
+
await He(!0), z(), h.value && a("optionsLoaded", h.value);
|
|
820
820
|
}
|
|
821
|
-
async function He() {
|
|
822
|
-
const
|
|
823
|
-
E.value = !0, h.value = await s.loadOptions?.(
|
|
821
|
+
async function He(i = !1) {
|
|
822
|
+
const y = s.remoteSearch && g.value && d.value.length ? d.value : null;
|
|
823
|
+
E.value = !0, h.value = await s.loadOptions?.(y) ?? [], E.value = !1, i && z(), Ae();
|
|
824
824
|
}
|
|
825
825
|
function Tt() {
|
|
826
|
-
g.value && (He(), g.value =
|
|
826
|
+
g.value && (He(), g.value = d.value.trim().length > 0);
|
|
827
827
|
}
|
|
828
828
|
function St(i) {
|
|
829
829
|
if (i.key == "Escape") {
|
|
@@ -831,114 +831,117 @@ const $n = ["disabled", "placeholder", "required", "name"], Bn = {
|
|
|
831
831
|
return;
|
|
832
832
|
}
|
|
833
833
|
if (!(i.key == "ArrowLeft" || i.key == "ArrowRight") && i.key != "Tab") {
|
|
834
|
-
if (!
|
|
834
|
+
if (!U.value) {
|
|
835
835
|
g.value || i.preventDefault();
|
|
836
836
|
return;
|
|
837
837
|
}
|
|
838
838
|
if (i.key == "ArrowUp" || i.key == "ArrowDown")
|
|
839
|
-
return i.preventDefault(),
|
|
839
|
+
return i.preventDefault(), me(i.key == "ArrowUp" ? -1 : 1);
|
|
840
840
|
if (i.key == "PageUp" || i.key == "PageDown")
|
|
841
|
-
return i.preventDefault(),
|
|
841
|
+
return i.preventDefault(), me(i.key == "PageUp" ? -10 : 10);
|
|
842
842
|
if (i.key == "Home" || i.key == "End")
|
|
843
|
-
return i.preventDefault(),
|
|
843
|
+
return i.preventDefault(), me(i.key == "Home" ? -Number.MAX_SAFE_INTEGER : Number.MAX_SAFE_INTEGER);
|
|
844
844
|
if (i.key == "Enter") {
|
|
845
845
|
i.preventDefault();
|
|
846
|
-
const
|
|
847
|
-
if (
|
|
846
|
+
const y = L.value.find((v) => v.key == x.value);
|
|
847
|
+
if (y) return Be(y);
|
|
848
848
|
}
|
|
849
849
|
if (i.key === "Delete" || i.key === "Backspace") {
|
|
850
|
-
|
|
850
|
+
d.value.length > 1 && (g.value = !0);
|
|
851
851
|
return;
|
|
852
852
|
}
|
|
853
853
|
!i.metaKey && Un.includes(i.key) && (g.value = !0);
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
856
|
function Ct() {
|
|
857
|
-
|
|
857
|
+
g.value = !0;
|
|
858
858
|
}
|
|
859
|
-
function
|
|
860
|
-
|
|
859
|
+
function xt() {
|
|
860
|
+
Ae(), C.value = !0, setTimeout(() => u.value?.select(), 0);
|
|
861
861
|
}
|
|
862
|
-
function
|
|
863
|
-
|
|
862
|
+
function Ae(i) {
|
|
863
|
+
f.value ? x.value = Mt(f.value) : s.nullTitle && (x.value = o);
|
|
864
864
|
}
|
|
865
865
|
function Mt(i) {
|
|
866
|
-
|
|
867
|
-
if (w)
|
|
868
|
-
return w;
|
|
869
|
-
const v = s.keyExtractor ? (y, O) => s.keyExtractor(y) === s.keyExtractor(O) : we, p = L.value.find((y) => v(y.ref, i));
|
|
870
|
-
return p || null;
|
|
866
|
+
return pe.value ? pe.value(f.value) : Lt(i)?.key ?? "";
|
|
871
867
|
}
|
|
872
|
-
function Lt() {
|
|
873
|
-
|
|
868
|
+
function Lt(i) {
|
|
869
|
+
const y = L.value.find((w) => w.ref === i);
|
|
870
|
+
if (y)
|
|
871
|
+
return y;
|
|
872
|
+
const v = s.keyExtractor ? (w, I) => s.keyExtractor(w) === s.keyExtractor(I) : we, p = L.value.find((w) => v(w.ref, i));
|
|
873
|
+
return p || null;
|
|
874
874
|
}
|
|
875
875
|
function Ft() {
|
|
876
|
-
|
|
876
|
+
s.debug || (!d.value.length && s.nullTitle && (f.value = null, m.value = null), C.value = !1);
|
|
877
|
+
}
|
|
878
|
+
function It() {
|
|
879
|
+
U.value || Ve(), s.optionsListId && c.value?.setAttribute("id", s.optionsListId), Ot();
|
|
877
880
|
}
|
|
878
881
|
function Ot() {
|
|
879
|
-
const i =
|
|
880
|
-
for (let
|
|
881
|
-
/^(font|text)/.test(
|
|
882
|
-
if (p.style.top =
|
|
883
|
-
const
|
|
884
|
-
p.style.maxHeight =
|
|
882
|
+
const i = l.value.getBoundingClientRect(), y = i.y + i.height + 2, v = i.x, p = c.value, w = window.getComputedStyle(l.value);
|
|
883
|
+
for (let I in w)
|
|
884
|
+
/^(font|text)/.test(I) && (p.style[I] = w[I]);
|
|
885
|
+
if (p.style.top = y + "px", p.style.left = v + "px", p.style.minWidth = i.width + "px", !w.maxHeight || w.maxHeight == "none") {
|
|
886
|
+
const I = window.innerHeight - y - 12;
|
|
887
|
+
p.style.maxHeight = I + "px";
|
|
885
888
|
}
|
|
886
889
|
p.style.visibility = "visible", document.body.appendChild(p), setTimeout($e, 0);
|
|
887
890
|
}
|
|
888
891
|
function $e() {
|
|
889
|
-
if (!
|
|
890
|
-
const i = L.value.findIndex((p) => p.key == x.value),
|
|
891
|
-
v && (
|
|
892
|
+
if (!U.value || !x.value) return;
|
|
893
|
+
const i = L.value.findIndex((p) => p.key == x.value), y = c.value, v = y?.querySelectorAll(".option")[i];
|
|
894
|
+
v && (y.scrollTop = v.offsetTop);
|
|
892
895
|
}
|
|
893
|
-
function
|
|
896
|
+
function Dt(i) {
|
|
894
897
|
x.value = i ? i.key : null;
|
|
895
898
|
}
|
|
896
|
-
function
|
|
897
|
-
const
|
|
898
|
-
let v =
|
|
899
|
-
if (v < 0 ? v = 0 : v >= L.value.length && (v = L.value.length - 1),
|
|
899
|
+
function me(i) {
|
|
900
|
+
const y = L.value.findIndex((I) => I.key == x.value);
|
|
901
|
+
let v = y + i;
|
|
902
|
+
if (v < 0 ? v = 0 : v >= L.value.length && (v = L.value.length - 1), y == v) return;
|
|
900
903
|
x.value = L.value[v].key;
|
|
901
|
-
const p =
|
|
902
|
-
|
|
904
|
+
const p = c.value, w = p?.querySelectorAll(".option")[v];
|
|
905
|
+
w && (w.offsetTop < p.scrollTop ? p.scrollTop = w.offsetTop : w.offsetTop + w.offsetHeight > p.scrollTop + p.clientHeight && (p.scrollTop = w.offsetTop + w.offsetHeight - p.clientHeight));
|
|
903
906
|
}
|
|
904
907
|
function Be(i) {
|
|
905
908
|
if (g.value = !1, i.key === o)
|
|
906
|
-
|
|
907
|
-
else if (i.key ===
|
|
908
|
-
const
|
|
909
|
-
|
|
909
|
+
d.value = "", f.value = null, m.value = null;
|
|
910
|
+
else if (i.key === r) {
|
|
911
|
+
const y = d.value.trim();
|
|
912
|
+
d.value = "", f.value = null, m.value = null, s.onCreateItem?.(y);
|
|
910
913
|
} else {
|
|
911
|
-
const v =
|
|
912
|
-
f.value = v, m.value =
|
|
914
|
+
const v = ve.value.find((p) => p.key == i.key).ref;
|
|
915
|
+
f.value = v, m.value = Ie.value(v), d.value = m.value ?? "";
|
|
913
916
|
}
|
|
914
|
-
|
|
917
|
+
u.value?.blur(), _e();
|
|
915
918
|
}
|
|
916
|
-
function
|
|
917
|
-
s.modelValue !== null ? (f.value = q.value ?
|
|
919
|
+
function z() {
|
|
920
|
+
s.modelValue !== null ? (f.value = q.value ? Oe.value.find((i) => s.modelValue === q.value(i)) : s.modelValue, m.value = We(f.value) ? Ie.value(f.value) : null, d.value = m.value ?? "") : (f.value = null, m.value = null, d.value = "");
|
|
918
921
|
}
|
|
919
|
-
function
|
|
922
|
+
function Vt(i) {
|
|
920
923
|
h.value.unshift(i);
|
|
921
924
|
}
|
|
922
925
|
function _e() {
|
|
923
926
|
if (!s.autoNext) return;
|
|
924
|
-
let i =
|
|
927
|
+
let i = l.value?.parentElement;
|
|
925
928
|
for (; i && i.tagName !== "FORM" && i.tagName !== "BODY"; )
|
|
926
929
|
i = i.parentElement;
|
|
927
930
|
if (!i) return;
|
|
928
|
-
const
|
|
929
|
-
if (!
|
|
930
|
-
const v = Array.from(
|
|
931
|
+
const y = i.querySelectorAll('input, button, textarea, select, [tabindex]:not([tabindex="-1"])');
|
|
932
|
+
if (!y) return;
|
|
933
|
+
const v = Array.from(y).findIndex((w) => w === u.value), p = y[v + 1];
|
|
931
934
|
p && setTimeout(() => p.focus(), 0);
|
|
932
935
|
}
|
|
933
|
-
return (i,
|
|
936
|
+
return (i, y) => (b(), k("div", {
|
|
934
937
|
ref_key: "el",
|
|
935
|
-
ref:
|
|
938
|
+
ref: l,
|
|
936
939
|
class: H(["vf-smart-select", { disabled: Le.value, open: C.value }])
|
|
937
940
|
}, [
|
|
938
941
|
ie($("input", {
|
|
939
942
|
ref_key: "searchField",
|
|
940
|
-
ref:
|
|
941
|
-
"onUpdate:modelValue":
|
|
943
|
+
ref: u,
|
|
944
|
+
"onUpdate:modelValue": y[0] || (y[0] = (v) => d.value = v),
|
|
942
945
|
type: "text",
|
|
943
946
|
disabled: Le.value,
|
|
944
947
|
class: H({ nullable: !!i.nullTitle }),
|
|
@@ -947,56 +950,57 @@ const $n = ["disabled", "placeholder", "required", "name"], Bn = {
|
|
|
947
950
|
name: i.name,
|
|
948
951
|
"data-1p-ignore": "",
|
|
949
952
|
onKeydown: St,
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
953
|
+
onPaste: Ct,
|
|
954
|
+
onFocus: xt,
|
|
955
|
+
onBlur: Ft
|
|
956
|
+
}, null, 42, Bn), [
|
|
957
|
+
[Wt, d.value]
|
|
954
958
|
]),
|
|
955
959
|
C.value ? (b(), k("div", {
|
|
956
960
|
key: 0,
|
|
957
961
|
ref_key: "optionsContainer",
|
|
958
|
-
ref:
|
|
962
|
+
ref: c,
|
|
959
963
|
class: H(["vf-smart-select-options", { grouped: De.value }])
|
|
960
964
|
}, [
|
|
961
|
-
|
|
965
|
+
U.value ? (b(!0), k(re, { key: 1 }, le(kt.value, (v) => (b(), k("div", {
|
|
962
966
|
key: v.groupTitle,
|
|
963
967
|
class: "group"
|
|
964
968
|
}, [
|
|
965
|
-
v.groupTitle ? (b(), k("div",
|
|
969
|
+
v.groupTitle ? (b(), k("div", Nn, [
|
|
966
970
|
W(i.$slots, "group", {
|
|
967
971
|
group: v.groupTitle
|
|
968
972
|
}, () => [
|
|
969
973
|
X(R(v.groupTitle), 1)
|
|
970
974
|
])
|
|
971
975
|
])) : V("", !0),
|
|
972
|
-
(b(!0), k(
|
|
976
|
+
(b(!0), k(re, null, le(v.options, (p) => (b(), k("div", {
|
|
973
977
|
key: p.key,
|
|
974
978
|
class: H(["option", [x.value === p.key && "highlighted", p.ref && i.classForOption?.(p.ref)]]),
|
|
975
|
-
onMousemove: (
|
|
976
|
-
onMousedown: (
|
|
979
|
+
onMousemove: (w) => Dt(p),
|
|
980
|
+
onMousedown: (w) => Be(p)
|
|
977
981
|
}, [
|
|
978
982
|
W(i.$slots, "option", { option: p }, () => [
|
|
979
983
|
$("div", {
|
|
980
984
|
class: "title",
|
|
981
985
|
innerHTML: p.title
|
|
982
|
-
}, null, 8,
|
|
986
|
+
}, null, 8, Wn),
|
|
983
987
|
p.subtitle ? (b(), k("div", {
|
|
984
988
|
key: 0,
|
|
985
989
|
class: "subtitle",
|
|
986
990
|
innerHTML: p.subtitle
|
|
987
|
-
}, null, 8,
|
|
991
|
+
}, null, 8, jn)) : V("", !0)
|
|
988
992
|
])
|
|
989
|
-
], 42,
|
|
990
|
-
!L.value.length &&
|
|
993
|
+
], 42, Rn))), 128)),
|
|
994
|
+
!L.value.length && d.value ? (b(), k("div", Pn, [
|
|
991
995
|
W(i.$slots, "no-results", {}, () => [
|
|
992
996
|
X(R(Et.value), 1)
|
|
993
997
|
])
|
|
994
998
|
])) : V("", !0)
|
|
995
|
-
]))), 128)) : (b(), k("div",
|
|
999
|
+
]))), 128)) : (b(), k("div", _n, "Loading..."))
|
|
996
1000
|
], 2)) : V("", !0)
|
|
997
1001
|
], 2));
|
|
998
1002
|
}
|
|
999
|
-
}),
|
|
1003
|
+
}), is = /* @__PURE__ */ N({
|
|
1000
1004
|
__name: "vf-ez-smart-select",
|
|
1001
1005
|
props: {
|
|
1002
1006
|
modelValue: {},
|
|
@@ -1008,39 +1012,39 @@ const $n = ["disabled", "placeholder", "required", "name"], Bn = {
|
|
|
1008
1012
|
},
|
|
1009
1013
|
emits: ["update:modelValue"],
|
|
1010
1014
|
setup(e, { emit: t }) {
|
|
1011
|
-
const n = e, o = T(() => Array.isArray(n.options) ? n.options.map((
|
|
1012
|
-
value:
|
|
1013
|
-
label:
|
|
1014
|
-
}))),
|
|
1015
|
-
return
|
|
1015
|
+
const n = e, o = T(() => Array.isArray(n.options) ? n.options.map((l) => ({ value: l, label: String(l) })) : Object.entries(n.options).map(([l, u]) => ({
|
|
1016
|
+
value: l,
|
|
1017
|
+
label: u
|
|
1018
|
+
}))), r = T(() => n.formatter ? (l) => n.formatter(l.label, l.value) : (l) => l.label), s = t, a = S(o.value.find((l) => l.value === n.modelValue) ?? null);
|
|
1019
|
+
return O(
|
|
1016
1020
|
() => n.modelValue,
|
|
1017
|
-
(
|
|
1018
|
-
|
|
1021
|
+
(l) => {
|
|
1022
|
+
a.value = o.value.find((u) => u.value === l) ?? null;
|
|
1019
1023
|
}
|
|
1020
|
-
),
|
|
1021
|
-
const
|
|
1022
|
-
s("update:modelValue",
|
|
1023
|
-
}), (
|
|
1024
|
-
modelValue:
|
|
1025
|
-
"onUpdate:modelValue":
|
|
1024
|
+
), O(a, (l) => {
|
|
1025
|
+
const u = l ? o.value.find((c) => we(c, l))?.value : null;
|
|
1026
|
+
s("update:modelValue", u ?? null);
|
|
1027
|
+
}), (l, u) => (b(), Je(qn, {
|
|
1028
|
+
modelValue: a.value,
|
|
1029
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => a.value = c),
|
|
1026
1030
|
options: o.value,
|
|
1027
|
-
formatter:
|
|
1028
|
-
"null-title":
|
|
1029
|
-
placeholder:
|
|
1030
|
-
name:
|
|
1031
|
+
formatter: r.value,
|
|
1032
|
+
"null-title": l.nullTitle,
|
|
1033
|
+
placeholder: l.placeholder,
|
|
1034
|
+
name: l.name
|
|
1031
1035
|
}, null, 8, ["modelValue", "options", "formatter", "null-title", "placeholder", "name"]));
|
|
1032
1036
|
}
|
|
1033
1037
|
});
|
|
1034
|
-
function
|
|
1038
|
+
function rs() {
|
|
1035
1039
|
return S();
|
|
1036
1040
|
}
|
|
1037
|
-
const
|
|
1041
|
+
const zn = { class: "content" }, Kn = { class: "message" }, Yn = {
|
|
1038
1042
|
key: 0,
|
|
1039
1043
|
class: "close"
|
|
1040
|
-
},
|
|
1044
|
+
}, Xn = {
|
|
1041
1045
|
key: 0,
|
|
1042
1046
|
class: "progress-bar"
|
|
1043
|
-
},
|
|
1047
|
+
}, Zn = /* @__PURE__ */ N({
|
|
1044
1048
|
__name: "vf-toast",
|
|
1045
1049
|
props: {
|
|
1046
1050
|
position: {},
|
|
@@ -1058,20 +1062,20 @@ const qn = { class: "content" }, zn = { class: "message" }, Kn = {
|
|
|
1058
1062
|
}
|
|
1059
1063
|
const o = S();
|
|
1060
1064
|
return t.durationSecs !== null && _(() => {
|
|
1061
|
-
const
|
|
1065
|
+
const r = t.durationSecs ?? 5;
|
|
1062
1066
|
o.value?.animate([{ width: "0%" }, { width: "100%" }], {
|
|
1063
|
-
duration:
|
|
1067
|
+
duration: r * 1e3,
|
|
1064
1068
|
easing: "linear"
|
|
1065
|
-
}), setTimeout(() => t.callback(),
|
|
1066
|
-
}), (
|
|
1067
|
-
class: H(["vf-toast", [
|
|
1069
|
+
}), setTimeout(() => t.callback(), r * 1e3);
|
|
1070
|
+
}), (r, s) => (b(), k("div", {
|
|
1071
|
+
class: H(["vf-toast", [r.className, { top: r.position === "top", bottom: r.position !== "top" }]]),
|
|
1068
1072
|
onClick: ke(n, ["stop"])
|
|
1069
1073
|
}, [
|
|
1070
|
-
$("div",
|
|
1071
|
-
$("div",
|
|
1072
|
-
|
|
1074
|
+
$("div", zn, [
|
|
1075
|
+
$("div", Kn, R(r.message), 1),
|
|
1076
|
+
r.disableClose ? V("", !0) : (b(), k("div", Yn, "x"))
|
|
1073
1077
|
]),
|
|
1074
|
-
|
|
1078
|
+
r.durationSecs !== null ? (b(), k("div", Xn, [
|
|
1075
1079
|
$("div", {
|
|
1076
1080
|
ref_key: "progressInnerEl",
|
|
1077
1081
|
ref: o,
|
|
@@ -1082,87 +1086,87 @@ const qn = { class: "content" }, zn = { class: "message" }, Kn = {
|
|
|
1082
1086
|
}
|
|
1083
1087
|
});
|
|
1084
1088
|
function ls(e) {
|
|
1085
|
-
const t = ce(
|
|
1089
|
+
const t = ce(Zn, {
|
|
1086
1090
|
...e,
|
|
1087
1091
|
callback: () => Q(t)
|
|
1088
1092
|
});
|
|
1089
1093
|
return () => Q(t);
|
|
1090
1094
|
}
|
|
1091
|
-
function Zn(e) {
|
|
1092
|
-
const t = Math.floor(Math.log(e) / Math.log(1024)), o = (e / Math.pow(1024, t)).toFixed(2), l = ["B", "KB", "MB", "GB", "TB"][t];
|
|
1093
|
-
return `${o} ${l}`;
|
|
1094
|
-
}
|
|
1095
1095
|
function Gn(e) {
|
|
1096
|
-
|
|
1096
|
+
const t = Math.floor(Math.log(e) / Math.log(1024)), o = (e / Math.pow(1024, t)).toFixed(2), r = ["B", "KB", "MB", "GB", "TB"][t];
|
|
1097
|
+
return `${o} ${r}`;
|
|
1097
1098
|
}
|
|
1098
1099
|
function Jn(e) {
|
|
1099
|
-
return e
|
|
1100
|
+
return e != null && String(e).length ? e : "-";
|
|
1100
1101
|
}
|
|
1101
1102
|
function Qn(e) {
|
|
1102
|
-
return e
|
|
1103
|
+
return e || "-";
|
|
1103
1104
|
}
|
|
1104
1105
|
function eo(e) {
|
|
1105
|
-
return e &&
|
|
1106
|
+
return e === null || typeof e == "string" && !/^\d+$/.test(e) ? e : Tn(Number(e));
|
|
1106
1107
|
}
|
|
1107
1108
|
function to(e) {
|
|
1108
|
-
return e
|
|
1109
|
-
}
|
|
1110
|
-
function rt(e) {
|
|
1111
|
-
return e ? qt(e) : null;
|
|
1109
|
+
return e && An(e);
|
|
1112
1110
|
}
|
|
1113
1111
|
function no(e) {
|
|
1114
|
-
return e ? e
|
|
1112
|
+
return e ? Kt(e) : null;
|
|
1113
|
+
}
|
|
1114
|
+
function lt(e) {
|
|
1115
|
+
return e ? zt(e) : null;
|
|
1115
1116
|
}
|
|
1116
1117
|
function oo(e) {
|
|
1117
|
-
return e ?
|
|
1118
|
+
return e ? e.toUpperCase() : null;
|
|
1118
1119
|
}
|
|
1119
1120
|
function so(e) {
|
|
1120
|
-
return e ?
|
|
1121
|
+
return e ? lt(e.toLowerCase()) : null;
|
|
1122
|
+
}
|
|
1123
|
+
function io(e) {
|
|
1124
|
+
return e ? Hn(e) : null;
|
|
1121
1125
|
}
|
|
1122
|
-
function
|
|
1123
|
-
return
|
|
1126
|
+
function ro(e, t) {
|
|
1127
|
+
return $n(e, t);
|
|
1124
1128
|
}
|
|
1125
1129
|
function lo(e, t) {
|
|
1126
1130
|
return D(e).divide(t).value;
|
|
1127
1131
|
}
|
|
1128
|
-
function ro(e, t) {
|
|
1129
|
-
return e && U(new Date(e), t ?? F.defaultDateFormat);
|
|
1130
|
-
}
|
|
1131
1132
|
function ao(e, t) {
|
|
1132
|
-
return e &&
|
|
1133
|
+
return e && P(new Date(e), t ?? F.defaultDateFormat);
|
|
1133
1134
|
}
|
|
1134
1135
|
function uo(e, t) {
|
|
1135
|
-
return e &&
|
|
1136
|
-
}
|
|
1137
|
-
function co(e) {
|
|
1138
|
-
return e &&
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1136
|
+
return e && P(new Date(e), t ?? F.defaultTimeFormat);
|
|
1137
|
+
}
|
|
1138
|
+
function co(e, t) {
|
|
1139
|
+
return e && P(new Date(e), t ?? `${F.defaultDateFormat} ${F.defaultTimeFormat}`);
|
|
1140
|
+
}
|
|
1141
|
+
function fo(e) {
|
|
1142
|
+
return e && P(Qt(en(e, "yyyy-MM-dd", /* @__PURE__ */ new Date()), 1), F.defaultDateFormat);
|
|
1143
|
+
}
|
|
1144
|
+
const Pe = {
|
|
1145
|
+
bytes: Gn,
|
|
1146
|
+
dash: Jn,
|
|
1147
|
+
dashZeros: Qn,
|
|
1148
|
+
number: eo,
|
|
1149
|
+
phone: to,
|
|
1150
|
+
upperFirst: no,
|
|
1151
|
+
startCase: lt,
|
|
1152
|
+
upperCase: oo,
|
|
1153
|
+
upperWords: so,
|
|
1154
|
+
desnake: io,
|
|
1155
|
+
usCurrency: ro,
|
|
1152
1156
|
divide: lo,
|
|
1153
|
-
date:
|
|
1154
|
-
time:
|
|
1155
|
-
dateTime:
|
|
1156
|
-
oneDayForward:
|
|
1157
|
-
},
|
|
1158
|
-
...
|
|
1159
|
-
...e(
|
|
1157
|
+
date: ao,
|
|
1158
|
+
time: uo,
|
|
1159
|
+
dateTime: co,
|
|
1160
|
+
oneDayForward: fo
|
|
1161
|
+
}, as = (e) => ({
|
|
1162
|
+
...Pe,
|
|
1163
|
+
...e(Pe)
|
|
1160
1164
|
}), xe = Symbol("HookState");
|
|
1161
|
-
function
|
|
1165
|
+
function us(e, t) {
|
|
1162
1166
|
const n = t ?? be();
|
|
1163
|
-
_(() =>
|
|
1167
|
+
_(() => po(n, e), n), Qe(() => vo(n), n), et(() => Ue(n), n), ue(() => Ue(n), n);
|
|
1164
1168
|
}
|
|
1165
|
-
function
|
|
1169
|
+
function po(e, t) {
|
|
1166
1170
|
const n = {};
|
|
1167
1171
|
if (t.elScrolledToBottom && (n.el = new G(e.vnode.el, t.elScrolledToBottom)), t.ancestorScrolledToBottom) {
|
|
1168
1172
|
const o = at(e.vnode.el);
|
|
@@ -1170,11 +1174,11 @@ function fo(e, t) {
|
|
|
1170
1174
|
}
|
|
1171
1175
|
t.windowScrolledToBottom && (n.window = new G(window, t.windowScrolledToBottom)), e[xe] = n;
|
|
1172
1176
|
}
|
|
1173
|
-
function
|
|
1177
|
+
function vo(e) {
|
|
1174
1178
|
const t = e[xe];
|
|
1175
1179
|
t?.el?.install(), t?.ancestor?.install(), t?.window?.install();
|
|
1176
1180
|
}
|
|
1177
|
-
function
|
|
1181
|
+
function Ue(e) {
|
|
1178
1182
|
const t = e[xe];
|
|
1179
1183
|
t?.el?.uninstall(), t?.ancestor?.uninstall(), t?.window?.uninstall();
|
|
1180
1184
|
}
|
|
@@ -1201,10 +1205,10 @@ class G {
|
|
|
1201
1205
|
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);
|
|
1202
1206
|
}
|
|
1203
1207
|
}
|
|
1204
|
-
function
|
|
1208
|
+
function cs(e) {
|
|
1205
1209
|
_(() => window.addEventListener("resize", e)), Qe(() => window.addEventListener("resize", e)), et(() => window.removeEventListener("resize", e)), ue(() => window.removeEventListener("resize", e));
|
|
1206
1210
|
}
|
|
1207
|
-
const
|
|
1211
|
+
const mo = {
|
|
1208
1212
|
mounted: ze,
|
|
1209
1213
|
updated: ze
|
|
1210
1214
|
}, qe = Symbol("HasAutoFocused");
|
|
@@ -1214,12 +1218,12 @@ function ze(e, t) {
|
|
|
1214
1218
|
const n = ["BUTTON", "INPUT", "TEXTAREA", "SELECT"].indexOf(e.tagName) > -1 ? e : e.querySelectorAll("input")[0];
|
|
1215
1219
|
setTimeout(() => n.focus(), 10);
|
|
1216
1220
|
}
|
|
1217
|
-
const
|
|
1218
|
-
mounted:
|
|
1221
|
+
const ho = {
|
|
1222
|
+
mounted: yo
|
|
1219
1223
|
}, K = Symbol("ConfirmState");
|
|
1220
|
-
function
|
|
1224
|
+
function yo(e, t) {
|
|
1221
1225
|
e.addEventListener("click", (n) => {
|
|
1222
|
-
const o = Date.now(),
|
|
1226
|
+
const o = Date.now(), r = t.value?.text !== void 0 ? t.value.text : "Confirm";
|
|
1223
1227
|
if (e[K]) {
|
|
1224
1228
|
if (o - e[K].initTime < 300)
|
|
1225
1229
|
return;
|
|
@@ -1231,100 +1235,100 @@ function ho(e, t) {
|
|
|
1231
1235
|
initTime: o,
|
|
1232
1236
|
preconfirmHtml: e.innerHTML,
|
|
1233
1237
|
resetHandler: () => {
|
|
1234
|
-
|
|
1238
|
+
r && (e.innerHTML = s.preconfirmHtml), t.value?.class && e.classList.remove(t.value.class), e.blur(), e.removeEventListener("mouseout", s.resetHandler), delete e[K];
|
|
1235
1239
|
}
|
|
1236
1240
|
};
|
|
1237
|
-
e[K] = s,
|
|
1241
|
+
e[K] = s, r && (e.innerHTML = r), t.value?.class && e.classList.add(t.value.class), e.addEventListener("mouseout", s.resetHandler);
|
|
1238
1242
|
});
|
|
1239
1243
|
}
|
|
1240
|
-
const
|
|
1241
|
-
beforeMount:
|
|
1244
|
+
const go = {
|
|
1245
|
+
beforeMount: wo
|
|
1242
1246
|
};
|
|
1243
|
-
function
|
|
1247
|
+
function wo(e) {
|
|
1244
1248
|
e.addEventListener("blur", () => {
|
|
1245
1249
|
let t = e.value;
|
|
1246
|
-
/^\d{1,2}\/\d{1,2}$/.test(t) && (t += "/" +
|
|
1250
|
+
/^\d{1,2}\/\d{1,2}$/.test(t) && (t += "/" + P(/* @__PURE__ */ new Date(), "yy"));
|
|
1247
1251
|
const n = Date.parse(t);
|
|
1248
|
-
isNaN(n) ? e.value = "" : e.value =
|
|
1252
|
+
isNaN(n) ? e.value = "" : e.value = P(n, "MM/dd/yyyy"), e.dispatchEvent(new Event("input"));
|
|
1249
1253
|
});
|
|
1250
1254
|
}
|
|
1251
|
-
const
|
|
1255
|
+
const Eo = {
|
|
1252
1256
|
beforeMount: Ke,
|
|
1253
1257
|
updated: Ke
|
|
1254
1258
|
};
|
|
1255
1259
|
function Ke(e, t) {
|
|
1256
|
-
t.value == t.oldValue && e.innerHTML.length || (e.innerText =
|
|
1260
|
+
t.value == t.oldValue && e.innerHTML.length || (e.innerText = bo(e, t));
|
|
1257
1261
|
}
|
|
1258
|
-
function
|
|
1262
|
+
function bo(e, t) {
|
|
1259
1263
|
if (!t.value)
|
|
1260
1264
|
return e.attributes.getNamedItem("placeholder")?.value ?? "";
|
|
1261
1265
|
let n = "";
|
|
1262
|
-
const o = t.value.replace(/ /g, "T").replace(/\.\d+Z$/, "Z"),
|
|
1266
|
+
const o = t.value.replace(/ /g, "T").replace(/\.\d+Z$/, "Z"), r = e.attributes.getNamedItem("local") !== null ? o.replace(/Z$/, "") : o.replace(/(Z|\+00:00)?$/, "Z"), s = new Date(r);
|
|
1263
1267
|
e.attributes.getNamedItem("display-utc") !== null && s.setMinutes(s.getMinutes() - s.getTimezoneOffset());
|
|
1264
|
-
let
|
|
1265
|
-
const
|
|
1266
|
-
if (!
|
|
1267
|
-
const
|
|
1268
|
-
|
|
1268
|
+
let a = e.attributes.getNamedItem("format")?.value;
|
|
1269
|
+
const l = e.attributes.getNamedItem("date-only") !== null;
|
|
1270
|
+
if (!a && e.attributes.getNamedItem("relative-date") !== null) {
|
|
1271
|
+
const c = /* @__PURE__ */ new Date();
|
|
1272
|
+
c.getFullYear() === s.getFullYear() && c.getMonth() === s.getMonth() && c.getDate() === s.getDate() && (n = "at", a = "HH:mm");
|
|
1269
1273
|
}
|
|
1270
|
-
if (!
|
|
1271
|
-
let
|
|
1274
|
+
if (!a && e.attributes.getNamedItem("simplified-date") !== null) {
|
|
1275
|
+
let c = null;
|
|
1272
1276
|
const E = /* @__PURE__ */ new Date();
|
|
1273
|
-
E.getFullYear() === s.getFullYear() ? (E.getMonth() !== s.getMonth() || E.getDate() !== s.getDate()) && (
|
|
1274
|
-
const h =
|
|
1275
|
-
|
|
1277
|
+
E.getFullYear() === s.getFullYear() ? (E.getMonth() !== s.getMonth() || E.getDate() !== s.getDate()) && (c = "M/d") : c = "M/d/yy";
|
|
1278
|
+
const h = l ? null : F.defaultTimeFormat;
|
|
1279
|
+
a = tt([c, h]).join(" ");
|
|
1276
1280
|
}
|
|
1277
|
-
|
|
1278
|
-
let
|
|
1279
|
-
return n && (
|
|
1281
|
+
a || (l ? a = F.defaultDateFormat : a = `${F.defaultDateFormat} ${F.defaultTimeFormat}`);
|
|
1282
|
+
let u = P(s, a);
|
|
1283
|
+
return n && (u = n + " " + u), u;
|
|
1280
1284
|
}
|
|
1281
|
-
const
|
|
1285
|
+
const ko = {
|
|
1282
1286
|
beforeMount: Ye,
|
|
1283
1287
|
updated: Ye,
|
|
1284
|
-
unmounted:
|
|
1288
|
+
unmounted: To
|
|
1285
1289
|
};
|
|
1286
1290
|
function Ye(e, t) {
|
|
1287
1291
|
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");
|
|
1288
1292
|
}
|
|
1289
|
-
function
|
|
1293
|
+
function To(e) {
|
|
1290
1294
|
e.tagName === "LABEL" && (e.classList.remove("disabled"), e = e.querySelector("input")), e.removeAttribute("disabled");
|
|
1291
1295
|
}
|
|
1292
|
-
const
|
|
1296
|
+
const So = {
|
|
1293
1297
|
beforeMount: Xe,
|
|
1294
1298
|
updated: Xe,
|
|
1295
1299
|
unmounted: ct
|
|
1296
1300
|
}, ee = Symbol("HasAutoFocused"), Me = [];
|
|
1297
|
-
function
|
|
1301
|
+
function Co() {
|
|
1298
1302
|
Me.forEach(ut);
|
|
1299
1303
|
}
|
|
1300
|
-
setInterval(
|
|
1304
|
+
setInterval(Co, 1e3);
|
|
1301
1305
|
function Xe(e, t) {
|
|
1302
1306
|
if (t.value == t.oldValue) return;
|
|
1303
1307
|
if (!t.value) return ct(e);
|
|
1304
|
-
const n = new Date(t.value), o = e.attributes.getNamedItem("base-time")?.value,
|
|
1308
|
+
const n = new Date(t.value), o = e.attributes.getNamedItem("base-time")?.value, r = n.getTime() - (o ? new Date(o).getTime() - t.value * 1e3 : 0), s = e.getAttribute("no-seconds") === null;
|
|
1305
1309
|
e[ee] || Me.push(e), e[ee] = {
|
|
1306
|
-
startTs:
|
|
1310
|
+
startTs: r,
|
|
1307
1311
|
includeSeconds: s
|
|
1308
1312
|
}, ut(e);
|
|
1309
1313
|
}
|
|
1310
1314
|
function ut(e) {
|
|
1311
1315
|
const t = e[ee], n = Math.round((Date.now() - t.startTs) / 1e3);
|
|
1312
|
-
e.innerText =
|
|
1316
|
+
e.innerText = xo(n, t.includeSeconds);
|
|
1313
1317
|
}
|
|
1314
1318
|
function ct(e) {
|
|
1315
|
-
e[ee] && (
|
|
1319
|
+
e[ee] && (Yt(Me, e), delete e[ee]), e.innerText = "-";
|
|
1316
1320
|
}
|
|
1317
|
-
function
|
|
1321
|
+
function xo(e, t) {
|
|
1318
1322
|
const n = [], o = Math.floor(e / 86400);
|
|
1319
1323
|
o && n.push(o + "d"), e -= o * 86400;
|
|
1320
|
-
const
|
|
1321
|
-
(o ||
|
|
1324
|
+
const r = Math.floor(e / 3600);
|
|
1325
|
+
(o || r) && n.push(r + "h"), e -= r * 3600;
|
|
1322
1326
|
const s = Math.floor(e / 60);
|
|
1323
|
-
return (o ||
|
|
1327
|
+
return (o || r || s) && n.push(s + "m"), t ? n.length || n.push("0m") : (e -= s * 60, n.push(e + "s")), n.join(" ");
|
|
1324
1328
|
}
|
|
1325
|
-
const
|
|
1329
|
+
const Mo = {
|
|
1326
1330
|
mounted: dt,
|
|
1327
|
-
updated:
|
|
1331
|
+
updated: Lo,
|
|
1328
1332
|
unmounted: ft
|
|
1329
1333
|
}, j = /* @__PURE__ */ new Map();
|
|
1330
1334
|
function dt(e, t) {
|
|
@@ -1338,15 +1342,15 @@ function ft(e, t) {
|
|
|
1338
1342
|
}
|
|
1339
1343
|
j.size === 0 && window.removeEventListener("keydown", pt);
|
|
1340
1344
|
}
|
|
1341
|
-
function
|
|
1345
|
+
function Lo(e, t) {
|
|
1342
1346
|
ft(e, t), dt(e, t);
|
|
1343
1347
|
}
|
|
1344
1348
|
function pt(e) {
|
|
1345
1349
|
if (typeof e.key != "string") return;
|
|
1346
1350
|
const t = e.key.toLowerCase(), n = j.get(t);
|
|
1347
|
-
n && (
|
|
1351
|
+
n && (Xt(n)?.click(), e.preventDefault());
|
|
1348
1352
|
}
|
|
1349
|
-
const Y = Symbol("InfiniteScrollHandler"),
|
|
1353
|
+
const Y = Symbol("InfiniteScrollHandler"), Fo = {
|
|
1350
1354
|
mounted(e, t) {
|
|
1351
1355
|
e[Y] = new G(e, t.value);
|
|
1352
1356
|
},
|
|
@@ -1356,7 +1360,7 @@ const Y = Symbol("InfiniteScrollHandler"), Lo = {
|
|
|
1356
1360
|
unmounted(e) {
|
|
1357
1361
|
e[Y]?.uninstall(), delete e[Y];
|
|
1358
1362
|
}
|
|
1359
|
-
},
|
|
1363
|
+
}, Io = {
|
|
1360
1364
|
beforeMount: Ze,
|
|
1361
1365
|
updated: Ze
|
|
1362
1366
|
};
|
|
@@ -1375,14 +1379,14 @@ function Ge(e, t) {
|
|
|
1375
1379
|
content: n,
|
|
1376
1380
|
html: e.getAttribute("html") !== null
|
|
1377
1381
|
};
|
|
1378
|
-
e[J] ? e[J].configure(o) : e[J] = new
|
|
1382
|
+
e[J] ? e[J].configure(o) : e[J] = new Do(e, o);
|
|
1379
1383
|
} else
|
|
1380
1384
|
vt(e);
|
|
1381
1385
|
}
|
|
1382
1386
|
function vt(e) {
|
|
1383
1387
|
e[J]?.destroy(), delete e[J];
|
|
1384
1388
|
}
|
|
1385
|
-
class
|
|
1389
|
+
class Do {
|
|
1386
1390
|
constructor(t, n) {
|
|
1387
1391
|
this.el = t, this.config = n, t.addEventListener("mouseenter", this.handleTargetMouseEnterWithContext), t.addEventListener("mouseleave", this.handleTargetMouseLeaveWithContext), t.addEventListener("click", this.handleTargetMouseLeaveWithContext);
|
|
1388
1392
|
}
|
|
@@ -1418,9 +1422,9 @@ class Io {
|
|
|
1418
1422
|
this.shouldShow || this.tipEl && (this.tipEl.remove(), this.tipEl = void 0, this.titleEl = void 0, this.contentEl = void 0, this.checkInterval && (clearInterval(this.checkInterval), this.checkInterval = void 0), window.removeEventListener("mousemove", this.handleMouseMoveWithContext), this.mouseMoveBound = !1);
|
|
1419
1423
|
}
|
|
1420
1424
|
handleMouseMove(t) {
|
|
1421
|
-
const n = this.tipEl.offsetWidth, o = this.tipEl.offsetHeight,
|
|
1422
|
-
let
|
|
1423
|
-
|
|
1425
|
+
const n = this.tipEl.offsetWidth, o = this.tipEl.offsetHeight, r = window.innerWidth, s = window.innerHeight;
|
|
1426
|
+
let a = t.pageX + 10, l = t.pageY + 20;
|
|
1427
|
+
a + n > r && (a = Math.max(10, t.pageX - 5 - n)), l + o > s && (l = Math.max(10, t.pageY - 5 - o)), this.tipEl.style.left = a + "px", this.tipEl.style.top = l + "px", this.lastMoveEvt = t;
|
|
1424
1428
|
}
|
|
1425
1429
|
checkMoveEvent() {
|
|
1426
1430
|
this.lastMoveEvt && this.tipEl !== this.lastMoveEvt.target && (this.tipEl?.contains(this.lastMoveEvt.target) || this.handleTargetMouseLeave());
|
|
@@ -1429,64 +1433,64 @@ class Io {
|
|
|
1429
1433
|
this.shouldShow = !1, this.removeTooltip(), this.el.removeEventListener("mouseenter", this.handleTargetMouseEnterWithContext), this.el.removeEventListener("mouseleave", this.handleTargetMouseLeaveWithContext), this.el.removeEventListener("click", this.handleTargetMouseLeaveWithContext);
|
|
1430
1434
|
}
|
|
1431
1435
|
}
|
|
1432
|
-
function
|
|
1433
|
-
e.directive("autofocus",
|
|
1436
|
+
function Vo(e) {
|
|
1437
|
+
e.directive("autofocus", mo), e.directive("confirm-button", ho), e.directive("date-input", go), e.directive("datetime", Eo), e.directive("disabled", ko), e.directive("duration", So), e.directive("hotkey", Mo), e.directive("infinite-scroll", Fo), e.directive("readonly", Io), e.directive("tooltip", Oo);
|
|
1434
1438
|
}
|
|
1435
|
-
function
|
|
1436
|
-
|
|
1439
|
+
function ds(e) {
|
|
1440
|
+
Vo(e);
|
|
1437
1441
|
}
|
|
1438
1442
|
export {
|
|
1439
|
-
|
|
1443
|
+
Wo as OverlayContainer,
|
|
1440
1444
|
de as UserError,
|
|
1441
|
-
|
|
1445
|
+
No as VfAjaxSelect,
|
|
1442
1446
|
ne as VfAlertModal,
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1447
|
+
is as VfEzSmartSelect,
|
|
1448
|
+
wn as VfModal,
|
|
1449
|
+
qn as VfSmartSelect,
|
|
1450
|
+
es as cloneProp,
|
|
1451
|
+
Ro as configureVf,
|
|
1452
|
+
ns as configureVfOpenApiClient,
|
|
1453
|
+
as as createFilters,
|
|
1450
1454
|
ce as createOverlayInjection,
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1455
|
+
Hn as desnakeCase,
|
|
1456
|
+
an as dismissOverlayInjectionById,
|
|
1457
|
+
jo as dismissOverlayInjectionByInstance,
|
|
1454
1458
|
nt as dismissOverlayInjectionByInternalInstance,
|
|
1455
1459
|
ln as dismissOverlayInjectionByVnode,
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1460
|
+
vs as escapeHtml,
|
|
1461
|
+
dn as formatError,
|
|
1462
|
+
Tn as formatNumber,
|
|
1463
|
+
An as formatPhone,
|
|
1464
|
+
$n as formatUSCurrency,
|
|
1465
|
+
Yo as handleError,
|
|
1466
|
+
Ko as handleErrorAndAlert,
|
|
1467
|
+
ds as installVf,
|
|
1468
|
+
fn as isError,
|
|
1465
1469
|
We as isNotNullOrUndefined,
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1470
|
+
Xo as maskComponent,
|
|
1471
|
+
pn as maskEl,
|
|
1472
|
+
vn as maskForm,
|
|
1473
|
+
os as nl2br,
|
|
1474
|
+
ts as nullifyEmptyInputs,
|
|
1471
1475
|
Te as presentOverlay,
|
|
1472
1476
|
Q as removeOverlayInjection,
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1477
|
+
Go as replaceElement,
|
|
1478
|
+
cn as showAlert,
|
|
1479
|
+
Po as showConfirm,
|
|
1476
1480
|
Uo as showConfirmDestroy,
|
|
1477
|
-
|
|
1478
|
-
|
|
1481
|
+
Jo as showContextMenu,
|
|
1482
|
+
zo as showMutableWait,
|
|
1479
1483
|
ls as showToast,
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1484
|
+
qo as showWait,
|
|
1485
|
+
kn as sleep,
|
|
1486
|
+
Qo as sleepSecs,
|
|
1483
1487
|
Se as toError,
|
|
1484
|
-
|
|
1488
|
+
Zo as unmaskComponent,
|
|
1485
1489
|
ot as unmaskEl,
|
|
1486
1490
|
st as unmaskForm,
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1491
|
+
un as updateOverlayProps,
|
|
1492
|
+
us as useInfiniteScroll,
|
|
1493
|
+
cs as useResizeWatcher,
|
|
1494
|
+
ss as uuid,
|
|
1495
|
+
rs as vfModalRef
|
|
1492
1496
|
};
|