@signal24/vue-foundation 4.25.2 → 4.25.3
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/tsconfig.app.tsbuildinfo +1 -1
- package/dist/vue-foundation.es.js +145 -145
- package/package.json +1 -1
- package/src/components/vf-smart-select.vue +15 -10
|
@@ -25,18 +25,18 @@ const nn = {
|
|
|
25
25
|
},
|
|
26
26
|
emits: ["update:modelValue"],
|
|
27
27
|
setup(e, { emit: t }) {
|
|
28
|
-
const n = e, o = t,
|
|
28
|
+
const n = e, o = t, l = T(null), s = M(() => l.value ? l.value.map((p) => {
|
|
29
29
|
const E = p;
|
|
30
30
|
return n.preprocesor ? n.preprocesor(E) : n.displayKey ? E[n.displayKey] : "";
|
|
31
31
|
}) : null), a = T(n.modelValue ?? null);
|
|
32
|
-
H(() => n.loadFn,
|
|
32
|
+
H(() => n.loadFn, r), H(
|
|
33
33
|
() => n.modelValue,
|
|
34
34
|
() => a.value = n.modelValue
|
|
35
35
|
), H(a, () => o("update:modelValue", a.value));
|
|
36
|
-
async function
|
|
37
|
-
|
|
36
|
+
async function r() {
|
|
37
|
+
l.value = await n.loadFn();
|
|
38
38
|
}
|
|
39
|
-
return _(
|
|
39
|
+
return _(r), (u, p) => s.value ? ne((b(), k("select", {
|
|
40
40
|
key: 1,
|
|
41
41
|
"onUpdate:modelValue": p[0] || (p[0] = (E) => a.value = E)
|
|
42
42
|
}, [
|
|
@@ -45,7 +45,7 @@ const nn = {
|
|
|
45
45
|
var w;
|
|
46
46
|
return b(), k("option", {
|
|
47
47
|
key: v,
|
|
48
|
-
value: (w =
|
|
48
|
+
value: (w = l.value) == null ? void 0 : w[v]
|
|
49
49
|
}, W(E), 9, sn);
|
|
50
50
|
}), 128))
|
|
51
51
|
], 512)), [
|
|
@@ -54,21 +54,21 @@ const nn = {
|
|
|
54
54
|
B("option", null, W(n.loadingText || "Loading..."), 1)
|
|
55
55
|
]));
|
|
56
56
|
}
|
|
57
|
-
}),
|
|
57
|
+
}), ln = /* @__PURE__ */ R({
|
|
58
58
|
__name: "overlay-anchor",
|
|
59
59
|
props: {
|
|
60
60
|
overlayId: {},
|
|
61
61
|
anchor: {}
|
|
62
62
|
},
|
|
63
63
|
setup(e) {
|
|
64
|
-
const t = e, n = t.anchor instanceof HTMLElement ? t.anchor : t.anchor.el, o = T({ visibility: "hidden", top: "0", left: "0" }),
|
|
64
|
+
const t = e, n = t.anchor instanceof HTMLElement ? t.anchor : t.anchor.el, o = T({ visibility: "hidden", top: "0", left: "0" }), l = T([]), s = we();
|
|
65
65
|
_(a);
|
|
66
66
|
function a() {
|
|
67
67
|
if (!s) return;
|
|
68
|
-
const p = s.vnode.el, { styles: E, classes: v } =
|
|
69
|
-
o.value = E,
|
|
68
|
+
const p = s.vnode.el, { styles: E, classes: v } = r(p, n);
|
|
69
|
+
o.value = E, l.value = v;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function r(p, E) {
|
|
72
72
|
const v = t.anchor instanceof HTMLElement ? {} : t.anchor, w = E.getBoundingClientRect(), g = p.getBoundingClientRect();
|
|
73
73
|
v.matchWidth && (g.width = w.width), v.matchHeight && (g.height = w.height);
|
|
74
74
|
const c = v.class ? Array.isArray(v.class) ? v.class : [v.class] : [];
|
|
@@ -103,7 +103,7 @@ const nn = {
|
|
|
103
103
|
window.addEventListener("click", u);
|
|
104
104
|
}, 10);
|
|
105
105
|
}), (p, E) => (b(), k("div", {
|
|
106
|
-
class: $(["vf-overlay-anchor",
|
|
106
|
+
class: $(["vf-overlay-anchor", l.value]),
|
|
107
107
|
style: $t(o.value),
|
|
108
108
|
onClick: Ee(u, ["stop"])
|
|
109
109
|
}, [
|
|
@@ -111,7 +111,7 @@ const nn = {
|
|
|
111
111
|
], 6));
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
|
-
let
|
|
114
|
+
let rn = 0;
|
|
115
115
|
const N = Bt([]), Wo = R({
|
|
116
116
|
setup() {
|
|
117
117
|
return () => ie("div", [
|
|
@@ -122,13 +122,13 @@ const N = Bt([]), Wo = R({
|
|
|
122
122
|
function ke(e, t, n) {
|
|
123
123
|
const o = document.getElementById("vf-overlay-target") ?? document.createElement("div");
|
|
124
124
|
o.id = "vf-overlay-target", o.removeAttribute("inert"), document.body.appendChild(o);
|
|
125
|
-
const
|
|
126
|
-
id:
|
|
125
|
+
const l = String(++rn), s = Nt(e), a = ie(s, t), r = n != null && n.anchor ? ie(ln, { overlayId: l, anchor: n.anchor }, () => [a]) : void 0, u = {
|
|
126
|
+
id: l,
|
|
127
127
|
component: s,
|
|
128
128
|
props: t,
|
|
129
129
|
options: n ?? {},
|
|
130
130
|
vnode: a,
|
|
131
|
-
wrapperVnode:
|
|
131
|
+
wrapperVnode: r
|
|
132
132
|
};
|
|
133
133
|
return N.push(u), u;
|
|
134
134
|
}
|
|
@@ -148,42 +148,42 @@ function un(e) {
|
|
|
148
148
|
const t = N.findIndex((n) => n.id === e);
|
|
149
149
|
return t >= 0 ? (N[t].props.callback(), !0) : !1;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function le(e) {
|
|
152
152
|
const t = N.indexOf(e);
|
|
153
153
|
t >= 0 && N.splice(t, 1);
|
|
154
154
|
}
|
|
155
155
|
async function Te(e, t, n) {
|
|
156
156
|
return new Promise((o) => {
|
|
157
|
-
let
|
|
158
|
-
const a = { ...t, callback: async (
|
|
157
|
+
let l = null;
|
|
158
|
+
const a = { ...t, callback: async (r) => {
|
|
159
159
|
if (n != null && n.onCallback) {
|
|
160
|
-
const u = n.onCallback(
|
|
160
|
+
const u = n.onCallback(r);
|
|
161
161
|
if (typeof u == "object" && "then" in u && typeof u.then == "function" && await u === !1)
|
|
162
162
|
return;
|
|
163
163
|
}
|
|
164
|
-
|
|
164
|
+
le(l), o(r);
|
|
165
165
|
} };
|
|
166
|
-
|
|
166
|
+
l = ke(e, a, n);
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function re(e, t) {
|
|
170
170
|
return typeof e == "object" && !(e instanceof Error) ? {
|
|
171
171
|
...e,
|
|
172
172
|
classes: e.classes ?? []
|
|
173
173
|
} : { title: t ? e : void 0, message: t ?? e, classes: [] };
|
|
174
174
|
}
|
|
175
175
|
async function cn(e, t) {
|
|
176
|
-
await Te(ue,
|
|
176
|
+
await Te(ue, re(e, t));
|
|
177
177
|
}
|
|
178
178
|
async function Uo(e, t) {
|
|
179
|
-
const n =
|
|
179
|
+
const n = re(e, t);
|
|
180
180
|
return await Te(ue, {
|
|
181
181
|
...n,
|
|
182
182
|
shouldConfirm: !0
|
|
183
183
|
}) === !0;
|
|
184
184
|
}
|
|
185
185
|
async function Po(e, t) {
|
|
186
|
-
const n =
|
|
186
|
+
const n = re(e, t);
|
|
187
187
|
return await Te(ue, {
|
|
188
188
|
...n,
|
|
189
189
|
shouldConfirm: !0,
|
|
@@ -191,14 +191,14 @@ async function Po(e, t) {
|
|
|
191
191
|
}) === !0;
|
|
192
192
|
}
|
|
193
193
|
function qo(e, t) {
|
|
194
|
-
const n =
|
|
194
|
+
const n = re(e, t), o = ke(ue, {
|
|
195
195
|
...n,
|
|
196
196
|
isBare: !0,
|
|
197
197
|
classes: ["wait", ...n.classes],
|
|
198
198
|
callback: () => {
|
|
199
199
|
}
|
|
200
200
|
});
|
|
201
|
-
return () =>
|
|
201
|
+
return () => le(o);
|
|
202
202
|
}
|
|
203
203
|
const F = {
|
|
204
204
|
unhandledErrorSupportText: "please contact support",
|
|
@@ -242,8 +242,8 @@ async function Yo(e) {
|
|
|
242
242
|
}
|
|
243
243
|
const Z = Symbol("MaskState");
|
|
244
244
|
function Xo(e, t) {
|
|
245
|
-
var
|
|
246
|
-
const n = (
|
|
245
|
+
var l;
|
|
246
|
+
const n = (l = e.$) == null ? void 0 : l.vnode.el, o = n.closest(".vf-modal");
|
|
247
247
|
return vn(o ?? n, t);
|
|
248
248
|
}
|
|
249
249
|
function Zo(e) {
|
|
@@ -263,27 +263,27 @@ function st(e) {
|
|
|
263
263
|
}
|
|
264
264
|
const ge = Symbol("FormMaskState");
|
|
265
265
|
function mn(e, t, n) {
|
|
266
|
-
const o = e instanceof Element ? e :
|
|
266
|
+
const o = e instanceof Element ? e : lt(e);
|
|
267
267
|
if (!o) return () => {
|
|
268
268
|
};
|
|
269
269
|
o.classList.add("vf-masked");
|
|
270
|
-
const
|
|
270
|
+
const l = t instanceof Element ? t : o.querySelectorAll(t ?? 'button:not([disabled]):not([type="button"])')[0];
|
|
271
271
|
let s;
|
|
272
|
-
|
|
273
|
-
const
|
|
274
|
-
return
|
|
275
|
-
disabledElements:
|
|
276
|
-
waitButton:
|
|
272
|
+
l && (s = l.tagName === "INPUT" ? l.value : l.innerHTML, l.setAttribute("disabled", "disabled"), l.innerText = n ?? "Please wait...");
|
|
273
|
+
const r = [...o.querySelectorAll("input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled])")];
|
|
274
|
+
return r.forEach((u) => u.setAttribute("disabled", "disabled")), o[ge] = {
|
|
275
|
+
disabledElements: r,
|
|
276
|
+
waitButton: l,
|
|
277
277
|
buttonHtml: s
|
|
278
278
|
}, () => it(o);
|
|
279
279
|
}
|
|
280
280
|
function it(e) {
|
|
281
|
-
const t = e instanceof Element ? e :
|
|
281
|
+
const t = e instanceof Element ? e : lt(e);
|
|
282
282
|
if (!t) return;
|
|
283
283
|
const n = t[ge];
|
|
284
284
|
n && (t.classList.remove("vf-masked"), n.disabledElements.forEach((o) => o.removeAttribute("disabled")), n.waitButton && (n.waitButton.innerHTML = n.buttonHtml, n.waitButton.removeAttribute("disabled")), delete t[ge]);
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function lt(e) {
|
|
287
287
|
var n;
|
|
288
288
|
const t = (n = e == null ? void 0 : e.$) == null ? void 0 : n.vnode.el;
|
|
289
289
|
return t ? t.tagName === "FORM" ? t : t.querySelector("form") : null;
|
|
@@ -307,20 +307,20 @@ const pn = ["id"], hn = {
|
|
|
307
307
|
setup(e, { expose: t }) {
|
|
308
308
|
const n = we(), o = e;
|
|
309
309
|
t({ mask: v, unmask: w, hide: g, unhide: c });
|
|
310
|
-
const
|
|
310
|
+
const l = T(), s = T(), a = T(!1), r = M(() => tt([...Array.isArray(o.class) ? o.class : [o.class], a.value && "hidden"]));
|
|
311
311
|
_(() => {
|
|
312
312
|
var d;
|
|
313
|
-
document.body.classList.add("vf-modal-open"), o.closeOnMaskClick && (window.addEventListener("keydown", p), (d =
|
|
313
|
+
document.body.classList.add("vf-modal-open"), o.closeOnMaskClick && (window.addEventListener("keydown", p), (d = l.value) == null || d.addEventListener("click", u));
|
|
314
314
|
}), be(() => {
|
|
315
315
|
window.removeEventListener("keydown", p), document.body.querySelectorAll(".vf-modal").length > 0 || document.body.classList.remove("vf-modal-open");
|
|
316
316
|
});
|
|
317
317
|
function u(d) {
|
|
318
|
-
d.target ==
|
|
318
|
+
d.target == l.value && E();
|
|
319
319
|
}
|
|
320
320
|
function p(d) {
|
|
321
321
|
if (d.key === "Esc" || d.key === "Escape") {
|
|
322
322
|
const S = document.querySelectorAll(".vf-modal-wrap");
|
|
323
|
-
S[S.length - 1] ===
|
|
323
|
+
S[S.length - 1] === l.value && E();
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
function E() {
|
|
@@ -341,8 +341,8 @@ const pn = ["id"], hn = {
|
|
|
341
341
|
return (d, S) => (b(), k("div", {
|
|
342
342
|
id: d.id,
|
|
343
343
|
ref_key: "overlay",
|
|
344
|
-
ref:
|
|
345
|
-
class: $(["vf-overlay vf-modal-wrap",
|
|
344
|
+
ref: l,
|
|
345
|
+
class: $(["vf-overlay vf-modal-wrap", r.value])
|
|
346
346
|
}, [
|
|
347
347
|
B("form", {
|
|
348
348
|
ref_key: "form",
|
|
@@ -382,7 +382,7 @@ const pn = ["id"], hn = {
|
|
|
382
382
|
},
|
|
383
383
|
setup(e) {
|
|
384
384
|
const t = e, n = M(() => t.message instanceof Error ? dn(t.message) : t.message);
|
|
385
|
-
return (o,
|
|
385
|
+
return (o, l) => {
|
|
386
386
|
const s = Rt("autofocus");
|
|
387
387
|
return b(), Je(wn, {
|
|
388
388
|
class: $(["vf-alert", ...o.classes ?? []])
|
|
@@ -416,21 +416,21 @@ const pn = ["id"], hn = {
|
|
|
416
416
|
o.shouldConfirm ? (b(), k(oe, { key: 0 }, [
|
|
417
417
|
ne((b(), k("button", {
|
|
418
418
|
class: "primary",
|
|
419
|
-
onClick:
|
|
420
|
-
},
|
|
419
|
+
onClick: l[0] || (l[0] = () => o.callback(!0))
|
|
420
|
+
}, l[3] || (l[3] = [
|
|
421
421
|
X("Confirm")
|
|
422
422
|
]))), [
|
|
423
423
|
[s]
|
|
424
424
|
]),
|
|
425
425
|
B("button", {
|
|
426
426
|
class: "default",
|
|
427
|
-
onClick:
|
|
427
|
+
onClick: l[1] || (l[1] = () => o.callback(!1))
|
|
428
428
|
}, "Cancel")
|
|
429
429
|
], 64)) : ne((b(), k("button", {
|
|
430
430
|
key: 1,
|
|
431
431
|
class: "default",
|
|
432
|
-
onClick:
|
|
433
|
-
},
|
|
432
|
+
onClick: l[2] || (l[2] = () => o.callback(!0))
|
|
433
|
+
}, l[4] || (l[4] = [
|
|
434
434
|
X("OK")
|
|
435
435
|
]))), [
|
|
436
436
|
[s]
|
|
@@ -459,39 +459,39 @@ var kn = {
|
|
|
459
459
|
negativePattern: "-!#",
|
|
460
460
|
format: Mn,
|
|
461
461
|
fromCents: !1
|
|
462
|
-
},
|
|
462
|
+
}, rt = function(t) {
|
|
463
463
|
return Math.round(t);
|
|
464
464
|
}, Se = function(t) {
|
|
465
465
|
return Math.pow(10, t);
|
|
466
466
|
}, Tn = function(t, n) {
|
|
467
|
-
return
|
|
467
|
+
return rt(t / n) * n;
|
|
468
468
|
}, Cn = /(\d)(?=(\d{3})+\b)/g, Sn = /(\d)(?=(\d\d)+\d\b)/g;
|
|
469
469
|
function V(e, t) {
|
|
470
470
|
var n = this;
|
|
471
471
|
if (!(n instanceof V))
|
|
472
472
|
return new V(e, t);
|
|
473
|
-
var o = Object.assign({}, kn, t),
|
|
474
|
-
n.intValue = s, n.value = s /
|
|
473
|
+
var o = Object.assign({}, kn, t), l = Se(o.precision), s = te(e, o);
|
|
474
|
+
n.intValue = s, n.value = s / l, o.increment = o.increment || 1 / l, o.useVedic ? o.groups = Sn : o.groups = Cn, this.s = o, this.p = l;
|
|
475
475
|
}
|
|
476
476
|
function te(e, t) {
|
|
477
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, o = 0,
|
|
478
|
-
if (E &&
|
|
477
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, o = 0, l = t.decimal, s = t.errorOnInvalid, a = t.precision, r = t.fromCents, u = Se(a), p = typeof e == "number", E = e instanceof V;
|
|
478
|
+
if (E && r)
|
|
479
479
|
return e.intValue;
|
|
480
480
|
if (p || E)
|
|
481
481
|
o = E ? e.value : e;
|
|
482
482
|
else if (typeof e == "string") {
|
|
483
|
-
var v = new RegExp("[^-\\d" +
|
|
483
|
+
var v = new RegExp("[^-\\d" + l + "]", "g"), w = new RegExp("\\" + l, "g");
|
|
484
484
|
o = e.replace(/\((.*)\)/, "-$1").replace(v, "").replace(w, "."), o = o || 0;
|
|
485
485
|
} else {
|
|
486
486
|
if (s)
|
|
487
487
|
throw Error("Invalid Input");
|
|
488
488
|
o = 0;
|
|
489
489
|
}
|
|
490
|
-
return
|
|
490
|
+
return r || (o *= u, o = o.toFixed(4)), n ? rt(o) : o;
|
|
491
491
|
}
|
|
492
492
|
function Mn(e, t) {
|
|
493
|
-
var n = t.pattern, o = t.negativePattern,
|
|
494
|
-
return (e.value >= 0 ? n : o).replace("!",
|
|
493
|
+
var n = t.pattern, o = t.negativePattern, l = t.symbol, s = t.separator, a = t.decimal, r = t.groups, u = ("" + e).replace(/^-/, "").split("."), p = u[0], E = u[1];
|
|
494
|
+
return (e.value >= 0 ? n : o).replace("!", l).replace("#", p.replace(r, "$1" + s) + (E ? a + E : ""));
|
|
495
495
|
}
|
|
496
496
|
V.prototype = {
|
|
497
497
|
/**
|
|
@@ -500,8 +500,8 @@ V.prototype = {
|
|
|
500
500
|
* @returns {currency}
|
|
501
501
|
*/
|
|
502
502
|
add: function(t) {
|
|
503
|
-
var n = this.intValue, o = this.s,
|
|
504
|
-
return V((n += te(t, o)) / (o.fromCents ? 1 :
|
|
503
|
+
var n = this.intValue, o = this.s, l = this.p;
|
|
504
|
+
return V((n += te(t, o)) / (o.fromCents ? 1 : l), o);
|
|
505
505
|
},
|
|
506
506
|
/**
|
|
507
507
|
* Subtracts value.
|
|
@@ -509,8 +509,8 @@ V.prototype = {
|
|
|
509
509
|
* @returns {currency}
|
|
510
510
|
*/
|
|
511
511
|
subtract: function(t) {
|
|
512
|
-
var n = this.intValue, o = this.s,
|
|
513
|
-
return V((n -= te(t, o)) / (o.fromCents ? 1 :
|
|
512
|
+
var n = this.intValue, o = this.s, l = this.p;
|
|
513
|
+
return V((n -= te(t, o)) / (o.fromCents ? 1 : l), o);
|
|
514
514
|
},
|
|
515
515
|
/**
|
|
516
516
|
* Multiplies values.
|
|
@@ -537,9 +537,9 @@ V.prototype = {
|
|
|
537
537
|
* @returns {array}
|
|
538
538
|
*/
|
|
539
539
|
distribute: function(t) {
|
|
540
|
-
for (var n = this.intValue, o = this.p,
|
|
541
|
-
var p = V(a / u,
|
|
542
|
-
|
|
540
|
+
for (var n = this.intValue, o = this.p, l = this.s, s = [], a = Math[n >= 0 ? "floor" : "ceil"](n / t), r = Math.abs(n - a * t), u = l.fromCents ? 1 : o; t !== 0; t--) {
|
|
541
|
+
var p = V(a / u, l);
|
|
542
|
+
r-- > 0 && (p = p[n >= 0 ? "add" : "subtract"](1 / u)), s.push(p);
|
|
543
543
|
}
|
|
544
544
|
return s;
|
|
545
545
|
},
|
|
@@ -601,11 +601,11 @@ function In() {
|
|
|
601
601
|
}
|
|
602
602
|
const Fn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), je = { randomUUID: Fn };
|
|
603
603
|
function On(e, t, n) {
|
|
604
|
-
var
|
|
604
|
+
var l;
|
|
605
605
|
if (je.randomUUID && !e)
|
|
606
606
|
return je.randomUUID();
|
|
607
607
|
e = e || {};
|
|
608
|
-
const o = e.random ?? ((
|
|
608
|
+
const o = e.random ?? ((l = e.rng) == null ? void 0 : l.call(e)) ?? In();
|
|
609
609
|
if (o.length < 16)
|
|
610
610
|
throw new Error("Random bytes length must be >= 16");
|
|
611
611
|
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, Ln(o);
|
|
@@ -670,11 +670,11 @@ const An = ["disabled", "placeholder", "required", "name"], $n = {
|
|
|
670
670
|
},
|
|
671
671
|
emits: ["optionsLoaded", "update:modelValue"],
|
|
672
672
|
setup(e, { expose: t, emit: n }) {
|
|
673
|
-
const o = Symbol("null"),
|
|
673
|
+
const o = Symbol("null"), l = Symbol("create"), s = e, a = n;
|
|
674
674
|
t({
|
|
675
675
|
addRemoteOption: Dt
|
|
676
676
|
});
|
|
677
|
-
const
|
|
677
|
+
const r = T(), u = T(), p = T(), E = T(!1), v = T(!1), w = T([]), g = T(!1), c = T(""), d = T(null), S = T(null), O = T(!1), L = T(null), xe = T(!1), ht = M(() => s.showCreateTextOnNewItem ?? !0), yt = M(() => s.prependOptions ?? []), gt = M(() => s.appendOptions ?? []), Ie = M(() => !!s.disabled), wt = M(() => !v.value && s.preload ? "Loading..." : s.nullTitle ? s.nullTitle : s.placeholder || ""), Et = M(() => s.noResultsText || "No options match your search."), q = M(() => s.valueExtractor ? s.valueExtractor : s.valueField ? (i) => i[s.valueField] : null), z = M(() => s.keyExtractor ? s.keyExtractor : s.keyField ? (i) => String(i[s.keyField]) : q.value ? (i) => String(q.value(i)) : null), ce = M(() => s.groupFormatter ? s.groupFormatter : s.groupField ? (i) => String(i[s.groupField]) : null), de = M(() => s.formatter ? s.formatter : s.labelField ? (i) => String(i[s.labelField]) : (i) => String(i)), Fe = M(() => [...yt.value, ...w.value, ...gt.value]), Oe = M(() => !!(s.groupField || s.groupFormatter)), fe = M(() => Fe.value.map((i, m) => {
|
|
678
678
|
var _e, Ne, Re;
|
|
679
679
|
const h = (_e = ce.value) == null ? void 0 : _e.call(ce, i), f = de.value(i), y = (Ne = s.subtitleFormatter) == null ? void 0 : Ne.call(s, i), C = f ? f.trim().toLowerCase() : "", Be = y ? y.trim().toLowerCase() : "", ee = [];
|
|
680
680
|
return s.searchFields ? s.searchFields.forEach((We) => {
|
|
@@ -702,7 +702,7 @@ const An = ["disabled", "placeholder", "required", "name"], $n = {
|
|
|
702
702
|
subtitle: (C = y.subtitle) == null ? void 0 : C.replace(f, "<mark>$1</mark>")
|
|
703
703
|
};
|
|
704
704
|
}), xe.value && (i.find((C) => C.searchContent === m) !== void 0 || i.push({
|
|
705
|
-
key:
|
|
705
|
+
key: l,
|
|
706
706
|
title: ht.value ? "Create <strong>" + c.value.trim() + "</strong>..." : c.value.trim()
|
|
707
707
|
}));
|
|
708
708
|
}
|
|
@@ -735,15 +735,15 @@ const An = ["disabled", "placeholder", "required", "name"], $n = {
|
|
|
735
735
|
}), H(c, () => {
|
|
736
736
|
g.value && !s.remoteSearch && !c.value.trim().length && (g.value = !1);
|
|
737
737
|
}), H(O, () => {
|
|
738
|
-
O.value ? setTimeout(It, 0) : (g.value = !1, c.value = S.value
|
|
738
|
+
O.value ? setTimeout(It, 0) : (g.value = !1, c.value = S.value ?? "", p.value && (p.value.style.visibility = "hidden"));
|
|
739
739
|
}), H(I, () => {
|
|
740
740
|
var i;
|
|
741
|
-
s.modelValue &&
|
|
741
|
+
s.modelValue !== null && d.value === null && me(), (L.value !== null || g.value) && !I.value.find((m) => m.key == L.value) && (L.value = ((i = I.value[0]) == null ? void 0 : i.key) ?? o);
|
|
742
742
|
}), _(async () => {
|
|
743
743
|
xe.value = s.onCreateItem !== void 0, s.options ? (w.value = [...s.options], v.value = !0) : s.preload && await De(), me(), H(d, () => {
|
|
744
744
|
d.value !== s.modelValue && a(
|
|
745
745
|
"update:modelValue",
|
|
746
|
-
d.value && q.value ? q.value(d.value) : d.value
|
|
746
|
+
d.value !== null && q.value !== null ? q.value(d.value) : d.value
|
|
747
747
|
);
|
|
748
748
|
}), s.remoteSearch && H(c, qt(kt, 250));
|
|
749
749
|
});
|
|
@@ -752,7 +752,7 @@ const An = ["disabled", "placeholder", "required", "name"], $n = {
|
|
|
752
752
|
}
|
|
753
753
|
async function He() {
|
|
754
754
|
var m;
|
|
755
|
-
const i = s.remoteSearch && g.value && c.value ? c.value : null;
|
|
755
|
+
const i = s.remoteSearch && g.value && c.value.length ? c.value : null;
|
|
756
756
|
E.value = !0, w.value = await ((m = s.loadOptions) == null ? void 0 : m.call(s, i)) ?? [], E.value = !1, v.value = !0;
|
|
757
757
|
}
|
|
758
758
|
function kt() {
|
|
@@ -814,7 +814,7 @@ const An = ["disabled", "placeholder", "required", "name"], $n = {
|
|
|
814
814
|
v.value || De(), s.optionsListId && ((i = p.value) == null || i.setAttribute("id", s.optionsListId)), Ft();
|
|
815
815
|
}
|
|
816
816
|
function Ft() {
|
|
817
|
-
const i =
|
|
817
|
+
const i = r.value.getBoundingClientRect(), m = i.y + i.height + 2, h = i.x, f = p.value, y = window.getComputedStyle(r.value);
|
|
818
818
|
for (let C in y)
|
|
819
819
|
/^(font|text)/.test(C) && (f.style[C] = y[C]);
|
|
820
820
|
if (f.style.top = m + "px", f.style.left = h + "px", f.style.minWidth = i.width + "px", !y.maxHeight || y.maxHeight == "none") {
|
|
@@ -841,19 +841,19 @@ const An = ["disabled", "placeholder", "required", "name"], $n = {
|
|
|
841
841
|
}
|
|
842
842
|
function Ae(i) {
|
|
843
843
|
var m, h;
|
|
844
|
-
if (g.value = !1, i.key
|
|
844
|
+
if (g.value = !1, i.key === o)
|
|
845
845
|
c.value = "", d.value = null, S.value = null;
|
|
846
|
-
else if (i.key ===
|
|
846
|
+
else if (i.key === l) {
|
|
847
847
|
const f = c.value.trim();
|
|
848
848
|
c.value = "", d.value = null, S.value = null, (m = s.onCreateItem) == null || m.call(s, f);
|
|
849
849
|
} else {
|
|
850
850
|
const y = fe.value.find((C) => C.key == i.key).ref;
|
|
851
|
-
d.value = y, S.value = de.value(y), c.value = S.value
|
|
851
|
+
d.value = y, S.value = de.value(y), c.value = S.value ?? "";
|
|
852
852
|
}
|
|
853
853
|
(h = u.value) == null || h.blur(), $e();
|
|
854
854
|
}
|
|
855
855
|
function me() {
|
|
856
|
-
s.modelValue ? (d.value = q.value ? Fe.value.find((i) => s.modelValue === q.value(i)) : s.modelValue, S.value = d.value ? de.value(d.value) : null, c.value = S.value
|
|
856
|
+
s.modelValue !== null ? (d.value = q.value ? Fe.value.find((i) => s.modelValue === q.value(i)) : s.modelValue, S.value = d.value !== null ? de.value(d.value) : null, c.value = S.value ?? "") : (d.value = null, S.value = null, c.value = "");
|
|
857
857
|
}
|
|
858
858
|
function Dt(i) {
|
|
859
859
|
w.value.unshift(i);
|
|
@@ -861,7 +861,7 @@ const An = ["disabled", "placeholder", "required", "name"], $n = {
|
|
|
861
861
|
function $e() {
|
|
862
862
|
var y;
|
|
863
863
|
if (!s.autoNext) return;
|
|
864
|
-
let i = (y =
|
|
864
|
+
let i = (y = r.value) == null ? void 0 : y.parentElement;
|
|
865
865
|
for (; i && i.tagName !== "FORM" && i.tagName !== "BODY"; )
|
|
866
866
|
i = i.parentElement;
|
|
867
867
|
if (!i) return;
|
|
@@ -872,7 +872,7 @@ const An = ["disabled", "placeholder", "required", "name"], $n = {
|
|
|
872
872
|
}
|
|
873
873
|
return (i, m) => (b(), k("div", {
|
|
874
874
|
ref_key: "el",
|
|
875
|
-
ref:
|
|
875
|
+
ref: r,
|
|
876
876
|
class: $(["vf-smart-select", { disabled: Ie.value, open: O.value }])
|
|
877
877
|
}, [
|
|
878
878
|
ne(B("input", {
|
|
@@ -951,27 +951,27 @@ const An = ["disabled", "placeholder", "required", "name"], $n = {
|
|
|
951
951
|
},
|
|
952
952
|
emits: ["update:modelValue"],
|
|
953
953
|
setup(e, { emit: t }) {
|
|
954
|
-
const n = e, o = M(() => Array.isArray(n.options) ? n.options.map((
|
|
955
|
-
value:
|
|
954
|
+
const n = e, o = M(() => Array.isArray(n.options) ? n.options.map((r) => ({ value: r, label: String(r) })) : Object.entries(n.options).map(([r, u]) => ({
|
|
955
|
+
value: r,
|
|
956
956
|
label: u
|
|
957
|
-
}))),
|
|
957
|
+
}))), l = M(() => n.formatter ? (r) => n.formatter(r.label, r.value) : (r) => r.label), s = t, a = T(o.value.find((r) => r.value === n.modelValue) ?? null);
|
|
958
958
|
return H(
|
|
959
959
|
() => n.modelValue,
|
|
960
|
-
(
|
|
961
|
-
a.value = o.value.find((u) => u.value ===
|
|
960
|
+
(r) => {
|
|
961
|
+
a.value = o.value.find((u) => u.value === r) ?? null;
|
|
962
962
|
}
|
|
963
|
-
), H(a, (
|
|
963
|
+
), H(a, (r) => {
|
|
964
964
|
var p;
|
|
965
|
-
const u =
|
|
965
|
+
const u = r ? (p = o.value.find((E) => nt(E, r))) == null ? void 0 : p.value : null;
|
|
966
966
|
s("update:modelValue", u ?? null);
|
|
967
|
-
}), (
|
|
967
|
+
}), (r, u) => (b(), Je(Un, {
|
|
968
968
|
modelValue: a.value,
|
|
969
969
|
"onUpdate:modelValue": u[0] || (u[0] = (p) => a.value = p),
|
|
970
970
|
options: o.value,
|
|
971
|
-
formatter:
|
|
972
|
-
"null-title":
|
|
973
|
-
placeholder:
|
|
974
|
-
name:
|
|
971
|
+
formatter: l.value,
|
|
972
|
+
"null-title": r.nullTitle,
|
|
973
|
+
placeholder: r.placeholder,
|
|
974
|
+
name: r.name
|
|
975
975
|
}, null, 8, ["modelValue", "options", "formatter", "null-title", "placeholder", "name"]));
|
|
976
976
|
}
|
|
977
977
|
});
|
|
@@ -1002,20 +1002,20 @@ const Pn = { class: "content" }, qn = { class: "message" }, zn = {
|
|
|
1002
1002
|
const o = T();
|
|
1003
1003
|
return t.durationSecs !== null && _(() => {
|
|
1004
1004
|
var s;
|
|
1005
|
-
const
|
|
1005
|
+
const l = t.durationSecs ?? 5;
|
|
1006
1006
|
(s = o.value) == null || s.animate([{ width: "0%" }, { width: "100%" }], {
|
|
1007
|
-
duration:
|
|
1007
|
+
duration: l * 1e3,
|
|
1008
1008
|
easing: "linear"
|
|
1009
|
-
}), setTimeout(() => t.callback(),
|
|
1010
|
-
}), (
|
|
1011
|
-
class: $(["vf-toast",
|
|
1009
|
+
}), setTimeout(() => t.callback(), l * 1e3);
|
|
1010
|
+
}), (l, s) => (b(), k("div", {
|
|
1011
|
+
class: $(["vf-toast", l.className]),
|
|
1012
1012
|
onClick: Ee(n, ["stop"])
|
|
1013
1013
|
}, [
|
|
1014
1014
|
B("div", Pn, [
|
|
1015
|
-
B("div", qn, W(
|
|
1016
|
-
|
|
1015
|
+
B("div", qn, W(l.message), 1),
|
|
1016
|
+
l.disableClose ? A("", !0) : (b(), k("div", zn, "x"))
|
|
1017
1017
|
]),
|
|
1018
|
-
|
|
1018
|
+
l.durationSecs !== null ? (b(), k("div", Kn, [
|
|
1019
1019
|
B("div", {
|
|
1020
1020
|
ref_key: "progressInnerEl",
|
|
1021
1021
|
ref: o,
|
|
@@ -1028,13 +1028,13 @@ const Pn = { class: "content" }, qn = { class: "message" }, zn = {
|
|
|
1028
1028
|
function ts(e) {
|
|
1029
1029
|
const t = ke(Yn, {
|
|
1030
1030
|
...e,
|
|
1031
|
-
callback: () =>
|
|
1031
|
+
callback: () => le(t)
|
|
1032
1032
|
});
|
|
1033
|
-
return () =>
|
|
1033
|
+
return () => le(t);
|
|
1034
1034
|
}
|
|
1035
1035
|
function Xn(e) {
|
|
1036
|
-
const t = Math.floor(Math.log(e) / Math.log(1024)), o = (e / Math.pow(1024, t)).toFixed(2),
|
|
1037
|
-
return `${o} ${
|
|
1036
|
+
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];
|
|
1037
|
+
return `${o} ${l}`;
|
|
1038
1038
|
}
|
|
1039
1039
|
function Zn(e) {
|
|
1040
1040
|
return e != null && String(e).length ? e : "-";
|
|
@@ -1069,10 +1069,10 @@ function so(e, t) {
|
|
|
1069
1069
|
function io(e, t) {
|
|
1070
1070
|
return V(e).divide(t).value;
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function lo(e, t) {
|
|
1073
1073
|
return e && P(new Date(e), t ?? F.defaultDateFormat);
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function ro(e, t) {
|
|
1076
1076
|
return e && P(new Date(e), t ?? F.defaultTimeFormat);
|
|
1077
1077
|
}
|
|
1078
1078
|
function ao(e, t) {
|
|
@@ -1094,8 +1094,8 @@ const Ue = {
|
|
|
1094
1094
|
desnake: oo,
|
|
1095
1095
|
usCurrency: so,
|
|
1096
1096
|
divide: io,
|
|
1097
|
-
date:
|
|
1098
|
-
time:
|
|
1097
|
+
date: lo,
|
|
1098
|
+
time: ro,
|
|
1099
1099
|
dateTime: ao,
|
|
1100
1100
|
oneDayForward: uo
|
|
1101
1101
|
}, ns = (e) => ({
|
|
@@ -1111,8 +1111,8 @@ function ss(e, t) {
|
|
|
1111
1111
|
n.classList.add("vf-overlay"), n.addEventListener("click", v), document.body.appendChild(n);
|
|
1112
1112
|
const o = document.createElement("div");
|
|
1113
1113
|
o.classList.add("vf-context-menu"), o.style.position = "absolute", n.appendChild(o);
|
|
1114
|
-
const
|
|
1115
|
-
|
|
1114
|
+
const l = e.currentTarget;
|
|
1115
|
+
l.style.userSelect = "none", l.classList.add("context-menu-active"), t.targetClass && l.classList.add(t.targetClass), t.class && o.classList.add(t.class), t.items.forEach((g) => {
|
|
1116
1116
|
if (g == "-") {
|
|
1117
1117
|
const d = document.createElement("div");
|
|
1118
1118
|
d.classList.add("separator"), o.appendChild(d);
|
|
@@ -1121,12 +1121,12 @@ function ss(e, t) {
|
|
|
1121
1121
|
const c = document.createElement("div");
|
|
1122
1122
|
c.classList.add("item"), c.style.userSelect = "none", c.innerText = g.title, o.appendChild(c), g.class && c.classList.add(g.class), g.shouldConfirm ? c.addEventListener("click", (d) => w(d, c, g.handler)) : c.addEventListener("click", () => g.handler());
|
|
1123
1123
|
});
|
|
1124
|
-
const s = window.innerWidth - e.clientX, a = window.innerHeight - e.clientY,
|
|
1124
|
+
const s = window.innerWidth - e.clientX, a = window.innerHeight - e.clientY, r = o.offsetHeight, u = o.offsetWidth, p = s < u ? e.clientX - u - 1 : e.clientX + 1, E = a < r ? e.clientY - r - 1 : e.clientY + 1;
|
|
1125
1125
|
o.style.left = p + "px", o.style.top = E + "px", setTimeout(() => {
|
|
1126
1126
|
o.style.width = o.offsetWidth + "px";
|
|
1127
1127
|
}, 50);
|
|
1128
1128
|
function v() {
|
|
1129
|
-
t.targetClass &&
|
|
1129
|
+
t.targetClass && l.classList.remove(t.targetClass), l.classList.remove("context-menu-active"), l.style.userSelect = "", n.remove();
|
|
1130
1130
|
}
|
|
1131
1131
|
function w(g, c, d) {
|
|
1132
1132
|
if (c.classList.contains("pending-confirm"))
|
|
@@ -1143,10 +1143,10 @@ const co = (e) => new Promise((t) => setTimeout(t, e)), is = (e) => co(e * 1e3);
|
|
|
1143
1143
|
function fo(e) {
|
|
1144
1144
|
return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
1145
1145
|
}
|
|
1146
|
-
function
|
|
1146
|
+
function ls(e, t) {
|
|
1147
1147
|
return e != null ? Yt(e) : t;
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1149
|
+
function rs(e, t) {
|
|
1150
1150
|
const n = { ...e };
|
|
1151
1151
|
for (const o of t)
|
|
1152
1152
|
n[o] === "" && (n[o] = null);
|
|
@@ -1158,8 +1158,8 @@ function as(e, t) {
|
|
|
1158
1158
|
onError(n, o) {
|
|
1159
1159
|
var s;
|
|
1160
1160
|
n instanceof tn && n.response.status === 422 && typeof n.body == "object" && n.body && "error" in n.body && typeof n.body.error == "string" && (n = new ae(n.body.error));
|
|
1161
|
-
const
|
|
1162
|
-
return
|
|
1161
|
+
const l = (s = t.onError) == null ? void 0 : s.call(t, n, o);
|
|
1162
|
+
return l !== void 0 ? l : n;
|
|
1163
1163
|
}
|
|
1164
1164
|
});
|
|
1165
1165
|
}
|
|
@@ -1177,14 +1177,14 @@ function vo(e, t) {
|
|
|
1177
1177
|
t.windowScrolledToBottom && (n.window = new G(window, t.windowScrolledToBottom)), e[Me] = n;
|
|
1178
1178
|
}
|
|
1179
1179
|
function mo(e) {
|
|
1180
|
-
var n, o,
|
|
1180
|
+
var n, o, l;
|
|
1181
1181
|
const t = e[Me];
|
|
1182
|
-
(n = t == null ? void 0 : t.el) == null || n.install(), (o = t == null ? void 0 : t.ancestor) == null || o.install(), (
|
|
1182
|
+
(n = t == null ? void 0 : t.el) == null || n.install(), (o = t == null ? void 0 : t.ancestor) == null || o.install(), (l = t == null ? void 0 : t.window) == null || l.install();
|
|
1183
1183
|
}
|
|
1184
1184
|
function Pe(e) {
|
|
1185
|
-
var n, o,
|
|
1185
|
+
var n, o, l;
|
|
1186
1186
|
const t = e[Me];
|
|
1187
|
-
(n = t == null ? void 0 : t.el) == null || n.uninstall(), (o = t == null ? void 0 : t.ancestor) == null || o.uninstall(), (
|
|
1187
|
+
(n = t == null ? void 0 : t.el) == null || n.uninstall(), (o = t == null ? void 0 : t.ancestor) == null || o.uninstall(), (l = t == null ? void 0 : t.window) == null || l.uninstall();
|
|
1188
1188
|
}
|
|
1189
1189
|
const ye = ["auto", "scroll"];
|
|
1190
1190
|
function ut(e) {
|
|
@@ -1227,8 +1227,8 @@ const ho = {
|
|
|
1227
1227
|
}, K = Symbol("ConfirmState");
|
|
1228
1228
|
function yo(e, t) {
|
|
1229
1229
|
e.addEventListener("click", (n) => {
|
|
1230
|
-
var a,
|
|
1231
|
-
const o = Date.now(),
|
|
1230
|
+
var a, r;
|
|
1231
|
+
const o = Date.now(), l = ((a = t.value) == null ? void 0 : a.text) !== void 0 ? t.value.text : "Confirm";
|
|
1232
1232
|
if (e[K]) {
|
|
1233
1233
|
if (o - e[K].initTime < 300)
|
|
1234
1234
|
return;
|
|
@@ -1241,10 +1241,10 @@ function yo(e, t) {
|
|
|
1241
1241
|
preconfirmHtml: e.innerHTML,
|
|
1242
1242
|
resetHandler: () => {
|
|
1243
1243
|
var u;
|
|
1244
|
-
|
|
1244
|
+
l && (e.innerHTML = s.preconfirmHtml), (u = t.value) != null && u.class && e.classList.remove(t.value.class), e.blur(), e.removeEventListener("mouseout", s.resetHandler), delete e[K];
|
|
1245
1245
|
}
|
|
1246
1246
|
};
|
|
1247
|
-
e[K] = s,
|
|
1247
|
+
e[K] = s, l && (e.innerHTML = l), (r = t.value) != null && r.class && e.classList.add(t.value.class), e.addEventListener("mouseout", s.resetHandler);
|
|
1248
1248
|
});
|
|
1249
1249
|
}
|
|
1250
1250
|
const go = {
|
|
@@ -1270,10 +1270,10 @@ function bo(e, t) {
|
|
|
1270
1270
|
if (!t.value)
|
|
1271
1271
|
return ((p = e.attributes.getNamedItem("placeholder")) == null ? void 0 : p.value) ?? "";
|
|
1272
1272
|
let n = "";
|
|
1273
|
-
const o = t.value.replace(/ /g, "T").replace(/\.\d+Z$/, "Z"),
|
|
1273
|
+
const o = t.value.replace(/ /g, "T").replace(/\.\d+Z$/, "Z"), l = e.attributes.getNamedItem("local") !== null ? o.replace(/Z$/, "") : o.replace(/(Z|\+00:00)?$/, "Z"), s = new Date(l);
|
|
1274
1274
|
e.attributes.getNamedItem("display-utc") !== null && s.setMinutes(s.getMinutes() - s.getTimezoneOffset());
|
|
1275
1275
|
let a = (E = e.attributes.getNamedItem("format")) == null ? void 0 : E.value;
|
|
1276
|
-
const
|
|
1276
|
+
const r = e.attributes.getNamedItem("date-only") !== null;
|
|
1277
1277
|
if (!a && e.attributes.getNamedItem("relative-date") !== null) {
|
|
1278
1278
|
const v = /* @__PURE__ */ new Date();
|
|
1279
1279
|
v.getFullYear() === s.getFullYear() && v.getMonth() === s.getMonth() && v.getDate() === s.getDate() && (n = "at", a = "HH:mm");
|
|
@@ -1282,10 +1282,10 @@ function bo(e, t) {
|
|
|
1282
1282
|
let v = null;
|
|
1283
1283
|
const w = /* @__PURE__ */ new Date();
|
|
1284
1284
|
w.getFullYear() === s.getFullYear() ? (w.getMonth() !== s.getMonth() || w.getDate() !== s.getDate()) && (v = "M/d") : v = "M/d/yy";
|
|
1285
|
-
const g =
|
|
1285
|
+
const g = r ? null : F.defaultTimeFormat;
|
|
1286
1286
|
a = tt([v, g]).join(" ");
|
|
1287
1287
|
}
|
|
1288
|
-
a || (
|
|
1288
|
+
a || (r ? a = F.defaultDateFormat : a = `${F.defaultDateFormat} ${F.defaultTimeFormat}`);
|
|
1289
1289
|
let u = P(s, a);
|
|
1290
1290
|
return n && (u = n + " " + u), u;
|
|
1291
1291
|
}
|
|
@@ -1313,9 +1313,9 @@ function Xe(e, t) {
|
|
|
1313
1313
|
var a;
|
|
1314
1314
|
if (t.value == t.oldValue) return;
|
|
1315
1315
|
if (!t.value) return dt(e);
|
|
1316
|
-
const n = new Date(t.value), o = (a = e.attributes.getNamedItem("base-time")) == null ? void 0 : a.value,
|
|
1316
|
+
const n = new Date(t.value), o = (a = e.attributes.getNamedItem("base-time")) == null ? void 0 : a.value, l = n.getTime() - (o ? new Date(o).getTime() - t.value * 1e3 : 0), s = e.getAttribute("no-seconds") === null;
|
|
1317
1317
|
e[Q] || Le.push(e), e[Q] = {
|
|
1318
|
-
startTs:
|
|
1318
|
+
startTs: l,
|
|
1319
1319
|
includeSeconds: s
|
|
1320
1320
|
}, ct(e);
|
|
1321
1321
|
}
|
|
@@ -1329,10 +1329,10 @@ function dt(e) {
|
|
|
1329
1329
|
function Mo(e, t) {
|
|
1330
1330
|
const n = [], o = Math.floor(e / 86400);
|
|
1331
1331
|
o && n.push(o + "d"), e -= o * 86400;
|
|
1332
|
-
const
|
|
1333
|
-
(o ||
|
|
1332
|
+
const l = Math.floor(e / 3600);
|
|
1333
|
+
(o || l) && n.push(l + "h"), e -= l * 3600;
|
|
1334
1334
|
const s = Math.floor(e / 60);
|
|
1335
|
-
return (o ||
|
|
1335
|
+
return (o || l || s) && n.push(s + "m"), t ? n.length || n.push("0m") : (e -= s * 60, n.push(e + "s")), n.join(" ");
|
|
1336
1336
|
}
|
|
1337
1337
|
const Lo = {
|
|
1338
1338
|
mounted: ft,
|
|
@@ -1389,11 +1389,11 @@ function Ge(e, t) {
|
|
|
1389
1389
|
var o;
|
|
1390
1390
|
let n = ((o = e.attributes.getNamedItem("tip")) == null ? void 0 : o.value) ?? t.value;
|
|
1391
1391
|
if (t.value || (n = null), n) {
|
|
1392
|
-
const
|
|
1392
|
+
const l = {
|
|
1393
1393
|
content: n,
|
|
1394
1394
|
html: e.getAttribute("html") !== null
|
|
1395
1395
|
};
|
|
1396
|
-
e[J] ? e[J].configure(
|
|
1396
|
+
e[J] ? e[J].configure(l) : e[J] = new Do(e, l);
|
|
1397
1397
|
} else
|
|
1398
1398
|
pt(e);
|
|
1399
1399
|
}
|
|
@@ -1437,9 +1437,9 @@ class Do {
|
|
|
1437
1437
|
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);
|
|
1438
1438
|
}
|
|
1439
1439
|
handleMouseMove(t) {
|
|
1440
|
-
const n = this.tipEl.offsetWidth, o = this.tipEl.offsetHeight,
|
|
1441
|
-
let a = t.pageX + 10,
|
|
1442
|
-
a + n >
|
|
1440
|
+
const n = this.tipEl.offsetWidth, o = this.tipEl.offsetHeight, l = window.innerWidth, s = window.innerHeight;
|
|
1441
|
+
let a = t.pageX + 10, r = t.pageY + 20;
|
|
1442
|
+
a + n > l && (a = t.pageX - 5 - n), r + o > s && (r = t.pageY - 5 - o), this.tipEl.style.left = a + "px", this.tipEl.style.top = r + "px", this.lastMoveEvt = t;
|
|
1443
1443
|
}
|
|
1444
1444
|
checkMoveEvent() {
|
|
1445
1445
|
var t;
|
|
@@ -1463,7 +1463,7 @@ export {
|
|
|
1463
1463
|
Qo as VfEzSmartSelect,
|
|
1464
1464
|
wn as VfModal,
|
|
1465
1465
|
Un as VfSmartSelect,
|
|
1466
|
-
|
|
1466
|
+
ls as cloneProp,
|
|
1467
1467
|
zo as configureVf,
|
|
1468
1468
|
as as configureVfOpenApiClient,
|
|
1469
1469
|
ns as createFilters,
|
|
@@ -1486,9 +1486,9 @@ export {
|
|
|
1486
1486
|
vn as maskEl,
|
|
1487
1487
|
mn as maskForm,
|
|
1488
1488
|
Go as nl2br,
|
|
1489
|
-
|
|
1489
|
+
rs as nullifyEmptyInputs,
|
|
1490
1490
|
Te as presentOverlay,
|
|
1491
|
-
|
|
1491
|
+
le as removeOverlayInjection,
|
|
1492
1492
|
os as replaceElement,
|
|
1493
1493
|
cn as showAlert,
|
|
1494
1494
|
Uo as showConfirm,
|