@signal24/vue-foundation 4.3.6 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/index.d.ts +1 -1
- package/dist/src/components/overlay-anchor.vue.d.ts +25 -0
- package/dist/src/components/overlay-container.d.ts +51 -0
- package/dist/src/components/overlay-types.d.ts +9 -0
- package/dist/src/helpers/mask.d.ts +1 -1
- package/dist/vue-foundation.css +1 -1
- package/dist/vue-foundation.es.js +530 -471
- package/package.json +1 -1
- package/src/components/alert-helpers.ts +6 -6
- package/src/components/index.ts +1 -1
- package/src/components/modal.vue +16 -18
- package/src/components/overlay-anchor.vue +103 -0
- package/src/components/overlay-container.ts +176 -0
- package/src/components/overlay-types.ts +10 -0
- package/src/helpers/mask.ts +1 -1
- package/dist/src/components/modal-container.d.ts +0 -33
- package/src/components/modal-container.ts +0 -131
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { debounce as
|
|
6
|
-
import { escapeHtml as
|
|
7
|
-
import { escapeHtml as
|
|
8
|
-
import { format as
|
|
9
|
-
const
|
|
1
|
+
var Be = Object.defineProperty;
|
|
2
|
+
var Ve = (e, t, n) => t in e ? Be(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var g = (e, t, n) => (Ve(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
+
import { defineComponent as x, defineProps as Fe, defineEmits as Re, ref as b, computed as N, openBlock as u, createElementBlock as f, createElementVNode as k, toDisplayString as H, withDirectives as K, createCommentVNode as T, Fragment as U, renderList as G, vModelSelect as Ne, getCurrentInstance as Q, onMounted as _, normalizeClass as w, normalizeStyle as Ke, withModifiers as ge, renderSlot as R, reactive as Ue, h as W, Teleport as We, markRaw as je, onBeforeUnmount as J, resolveDirective as Ee, createBlock as Oe, createSlots as Pe, withCtx as z, createTextVNode as se, vModelText as qe, watch as oe, onActivated as Te, onDeactivated as we } from "vue";
|
|
5
|
+
import { debounce as ze, isEqual as be, upperFirst as Xe, startCase as Ye, cloneDeep as Ze, remove as Ge } from "lodash";
|
|
6
|
+
import { escapeHtml as Qe } from "@vue/shared";
|
|
7
|
+
import { escapeHtml as Xn } from "@vue/shared";
|
|
8
|
+
import { format as Y } from "date-fns";
|
|
9
|
+
const Je = x({
|
|
10
10
|
setup() {
|
|
11
|
-
const e =
|
|
12
|
-
|
|
13
|
-
const t =
|
|
11
|
+
const e = Fe();
|
|
12
|
+
Re(["update:modelValue"]);
|
|
13
|
+
const t = b(null), n = N(() => t.value ? t.value.map((o) => e.preprocesor ? e.preprocesor(o) : o[e.displayKey ?? ""]) : null), i = b(e.modelValue ?? null);
|
|
14
14
|
return { props: e, options: t, renderOptions: n, selectedItem: i };
|
|
15
15
|
},
|
|
16
16
|
watch: {
|
|
@@ -32,190 +32,250 @@ const Ze = D({
|
|
|
32
32
|
this.options = await this.props.loadFn();
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
}),
|
|
35
|
+
}), ke = (e, t) => {
|
|
36
36
|
const n = e.__vccOpts || e;
|
|
37
37
|
for (const [i, s] of t)
|
|
38
38
|
n[i] = s;
|
|
39
39
|
return n;
|
|
40
|
-
},
|
|
40
|
+
}, et = {
|
|
41
41
|
key: 0,
|
|
42
42
|
disabled: ""
|
|
43
|
-
},
|
|
43
|
+
}, tt = {
|
|
44
44
|
key: 0,
|
|
45
45
|
value: null
|
|
46
|
-
},
|
|
47
|
-
function
|
|
48
|
-
return e.renderOptions ?
|
|
46
|
+
}, nt = ["value"];
|
|
47
|
+
function it(e, t, n, i, s, o) {
|
|
48
|
+
return e.renderOptions ? K((u(), f("select", {
|
|
49
49
|
key: 1,
|
|
50
50
|
"onUpdate:modelValue": t[0] || (t[0] = (r) => e.selectedItem = r)
|
|
51
51
|
}, [
|
|
52
|
-
e.props.nullText ? (
|
|
53
|
-
(
|
|
54
|
-
var
|
|
55
|
-
return
|
|
52
|
+
e.props.nullText ? (u(), f("option", tt, H(e.props.nullText), 1)) : T("", !0),
|
|
53
|
+
(u(!0), f(U, null, G(e.renderOptions, (r, l) => {
|
|
54
|
+
var c;
|
|
55
|
+
return u(), f("option", {
|
|
56
56
|
key: l,
|
|
57
|
-
value: (
|
|
58
|
-
},
|
|
57
|
+
value: (c = e.options) == null ? void 0 : c[l]
|
|
58
|
+
}, H(r), 9, nt);
|
|
59
59
|
}), 128))
|
|
60
60
|
], 512)), [
|
|
61
|
-
[
|
|
62
|
-
]) : (
|
|
63
|
-
|
|
61
|
+
[Ne, e.selectedItem]
|
|
62
|
+
]) : (u(), f("select", et, [
|
|
63
|
+
k("option", null, H(e.props.loadingText || "Loading..."), 1)
|
|
64
64
|
]));
|
|
65
65
|
}
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
const wn = /* @__PURE__ */ ke(Je, [["render", it]]), st = ["onClick"], ot = /* @__PURE__ */ x({
|
|
67
|
+
__name: "overlay-anchor",
|
|
68
|
+
props: {
|
|
69
|
+
overlayId: {},
|
|
70
|
+
anchor: {}
|
|
71
|
+
},
|
|
72
|
+
setup(e) {
|
|
73
|
+
const t = e, n = t.anchor instanceof HTMLElement ? t.anchor : t.anchor.el, i = b({ visibility: "hidden", top: "0", left: "0" }), s = b([]), o = Q();
|
|
74
|
+
_(r);
|
|
75
|
+
function r() {
|
|
76
|
+
const m = o.vnode.el, { styles: h, classes: a } = l(m, n);
|
|
77
|
+
i.value = h, s.value = a;
|
|
78
|
+
}
|
|
79
|
+
function l(m, h) {
|
|
80
|
+
const a = t.anchor instanceof HTMLElement ? {} : t.anchor, p = h.getBoundingClientRect(), d = m.getBoundingClientRect();
|
|
81
|
+
a.matchWidth && (d.width = p.width), a.matchHeight && (d.height = p.height);
|
|
82
|
+
const y = a.class ? Array.isArray(a.class) ? a.class : [a.class] : [];
|
|
83
|
+
let E, S;
|
|
84
|
+
if (a.y === "center")
|
|
85
|
+
E = p.top + p.height / 2 - d.height / 2, y.push("anchored-center-y");
|
|
86
|
+
else {
|
|
87
|
+
const L = (p.bottom + d.height < window.innerHeight || a.y === "below") && a.y !== "above";
|
|
88
|
+
E = L ? p.bottom : p.top - d.height, y.push(L ? "anchored-top" : "anchored-bottom");
|
|
89
|
+
}
|
|
90
|
+
if (a.x === "center")
|
|
91
|
+
S = p.left + p.width / 2 - d.width / 2, y.push("anchored-center-x");
|
|
92
|
+
else {
|
|
93
|
+
const L = (p.left + d.width < window.innerWidth || a.x === "left") && a.x !== "right";
|
|
94
|
+
S = L ? p.left : p.right - d.width, y.push(L ? "anchored-left" : "anchored-right");
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
styles: {
|
|
98
|
+
top: `${E}px`,
|
|
99
|
+
left: `${S}px`,
|
|
100
|
+
...a.matchWidth ? { width: `${d.width}px` } : {},
|
|
101
|
+
...a.matchHeight ? { height: `${d.height}px` } : {}
|
|
102
|
+
},
|
|
103
|
+
classes: y
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
function c() {
|
|
107
|
+
window.removeEventListener("click", c), at(t.overlayId);
|
|
108
|
+
}
|
|
109
|
+
return _(() => {
|
|
110
|
+
setTimeout(() => {
|
|
111
|
+
window.addEventListener("click", c);
|
|
112
|
+
}, 10);
|
|
113
|
+
}), (m, h) => (u(), f("div", {
|
|
114
|
+
class: w(["vf-overlay-anchor", s.value]),
|
|
115
|
+
style: Ke(i.value),
|
|
116
|
+
onClick: ge(c, ["stop"])
|
|
117
|
+
}, [
|
|
118
|
+
R(m.$slots, "default")
|
|
119
|
+
], 14, st));
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
let lt = 0;
|
|
123
|
+
const O = Ue([]), bn = x({
|
|
69
124
|
setup() {
|
|
70
|
-
return () =>
|
|
71
|
-
|
|
125
|
+
return () => W("div", [
|
|
126
|
+
G(O, (e) => W(We, { key: e.id, to: "#vf-overlay-target" }, [e.wrapperVnode ?? e.vnode]))
|
|
72
127
|
]);
|
|
73
128
|
}
|
|
74
129
|
});
|
|
75
|
-
function
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
const
|
|
79
|
-
id:
|
|
80
|
-
component:
|
|
130
|
+
function Se(e, t, n) {
|
|
131
|
+
const i = document.getElementById("vf-overlay-target") ?? document.createElement("div");
|
|
132
|
+
i.id = "vf-overlay-target", i.removeAttribute("inert"), document.body.appendChild(i);
|
|
133
|
+
const s = String(++lt), o = je(e), r = W(o, t), l = n != null && n.anchor ? W(ot, { overlayId: s, anchor: n.anchor }, () => [r]) : void 0, c = {
|
|
134
|
+
id: s,
|
|
135
|
+
component: o,
|
|
81
136
|
props: t,
|
|
82
|
-
|
|
137
|
+
options: n ?? {},
|
|
138
|
+
vnode: r,
|
|
139
|
+
wrapperVnode: l
|
|
83
140
|
};
|
|
84
|
-
return O.push(
|
|
141
|
+
return O.push(c), c;
|
|
85
142
|
}
|
|
86
|
-
function
|
|
87
|
-
|
|
88
|
-
t >= 0 && O.splice(t, 1);
|
|
143
|
+
function kn(e) {
|
|
144
|
+
xe(e.$);
|
|
89
145
|
}
|
|
90
|
-
function
|
|
91
|
-
ke(e.$);
|
|
92
|
-
}
|
|
93
|
-
function ke(e) {
|
|
146
|
+
function xe(e) {
|
|
94
147
|
let t = e;
|
|
95
|
-
for (; t && !
|
|
148
|
+
for (; t && !rt(t.vnode); )
|
|
96
149
|
t = t.parent;
|
|
97
150
|
}
|
|
98
|
-
function
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
151
|
+
function rt(e) {
|
|
152
|
+
const t = O.findIndex((n) => n.vnode.component === e.component);
|
|
153
|
+
return t >= 0 ? (O[t].props.callback(), !0) : !1;
|
|
154
|
+
}
|
|
155
|
+
function at(e) {
|
|
156
|
+
const t = O.findIndex((n) => n.id === e);
|
|
157
|
+
return t >= 0 ? (O[t].props.callback(), !0) : !1;
|
|
158
|
+
}
|
|
159
|
+
function Le(e) {
|
|
160
|
+
const t = O.indexOf(e);
|
|
161
|
+
t >= 0 && O.splice(t, 1);
|
|
102
162
|
}
|
|
103
|
-
async function
|
|
104
|
-
return new Promise((
|
|
105
|
-
let
|
|
106
|
-
const
|
|
107
|
-
|
|
163
|
+
async function ee(e, t, n) {
|
|
164
|
+
return new Promise((i) => {
|
|
165
|
+
let s = null;
|
|
166
|
+
const r = { ...t, callback: (l) => {
|
|
167
|
+
Le(s), i(l);
|
|
108
168
|
} };
|
|
109
|
-
|
|
169
|
+
s = Se(e, r, n);
|
|
110
170
|
});
|
|
111
171
|
}
|
|
112
|
-
function
|
|
172
|
+
function j(e, t) {
|
|
113
173
|
return { title: t ? e : void 0, message: t ?? e };
|
|
114
174
|
}
|
|
115
|
-
async function
|
|
116
|
-
await
|
|
175
|
+
async function le(e, t) {
|
|
176
|
+
await ee(q, j(e, t));
|
|
117
177
|
}
|
|
118
|
-
async function
|
|
119
|
-
return await
|
|
120
|
-
...
|
|
178
|
+
async function Sn(e, t) {
|
|
179
|
+
return await ee(q, {
|
|
180
|
+
...j(e, t),
|
|
121
181
|
shouldConfirm: !0
|
|
122
182
|
}) === !0;
|
|
123
183
|
}
|
|
124
|
-
async function
|
|
125
|
-
return await
|
|
126
|
-
...
|
|
184
|
+
async function xn(e, t) {
|
|
185
|
+
return await ee(q, {
|
|
186
|
+
...j(e, t),
|
|
127
187
|
shouldConfirm: !0,
|
|
128
188
|
classes: ["destructive"]
|
|
129
189
|
}) === !0;
|
|
130
190
|
}
|
|
131
|
-
function
|
|
132
|
-
const n =
|
|
133
|
-
...
|
|
191
|
+
function Ln(e, t) {
|
|
192
|
+
const n = Se(q, {
|
|
193
|
+
...j(e, t),
|
|
134
194
|
isBare: !0,
|
|
135
195
|
classes: ["wait"],
|
|
136
196
|
callback: () => {
|
|
137
197
|
}
|
|
138
198
|
});
|
|
139
|
-
return () =>
|
|
199
|
+
return () => Le(n);
|
|
140
200
|
}
|
|
141
|
-
const
|
|
201
|
+
const V = {
|
|
142
202
|
unhandledErrorSupportText: "please contact support",
|
|
143
203
|
errorHandler: (e) => console.error("Unhandled error:", e),
|
|
144
204
|
defaultDateTimeFormat: "MM/dd/yy HH:mm"
|
|
145
205
|
};
|
|
146
|
-
function
|
|
147
|
-
Object.assign(
|
|
206
|
+
function Cn(e) {
|
|
207
|
+
Object.assign(V, e);
|
|
148
208
|
}
|
|
149
|
-
class
|
|
209
|
+
class P extends Error {
|
|
150
210
|
constructor(t) {
|
|
151
211
|
super(t), this.name = "UserError";
|
|
152
212
|
}
|
|
153
213
|
}
|
|
154
|
-
function
|
|
155
|
-
return e instanceof
|
|
214
|
+
function ct(e) {
|
|
215
|
+
return e instanceof P ? e.message : `An application error has occurred:
|
|
156
216
|
|
|
157
|
-
${
|
|
217
|
+
${te(e).message}
|
|
158
218
|
|
|
159
|
-
Please refresh the page and try again. If this error persists, ${
|
|
219
|
+
Please refresh the page and try again. If this error persists, ${V.unhandledErrorSupportText}.`;
|
|
160
220
|
}
|
|
161
|
-
function
|
|
221
|
+
function te(e) {
|
|
162
222
|
return e instanceof Error ? e : new Error(String(e));
|
|
163
223
|
}
|
|
164
|
-
async function
|
|
165
|
-
const n =
|
|
166
|
-
return n instanceof
|
|
224
|
+
async function Mn(e, t) {
|
|
225
|
+
const n = te(e);
|
|
226
|
+
return n instanceof P || V.errorHandler(n), t ? le(t, n) : le(n);
|
|
167
227
|
}
|
|
168
|
-
async function
|
|
169
|
-
const t =
|
|
170
|
-
t instanceof
|
|
228
|
+
async function In(e) {
|
|
229
|
+
const t = te(e);
|
|
230
|
+
t instanceof P || V.errorHandler(t);
|
|
171
231
|
}
|
|
172
|
-
const
|
|
173
|
-
function
|
|
232
|
+
const D = Symbol("MaskState");
|
|
233
|
+
function Hn(e, t) {
|
|
174
234
|
const n = e.$.vnode.el, i = n.closest(".vf-modal");
|
|
175
|
-
return
|
|
235
|
+
return dt(i ?? n, t);
|
|
176
236
|
}
|
|
177
|
-
function
|
|
237
|
+
function Dn(e) {
|
|
178
238
|
const t = e.$.vnode.el, n = t.closest(".vf-modal");
|
|
179
|
-
return
|
|
239
|
+
return Ce(n ?? t);
|
|
180
240
|
}
|
|
181
|
-
function
|
|
182
|
-
if (!e[
|
|
241
|
+
function dt(e, t) {
|
|
242
|
+
if (!e[D]) {
|
|
183
243
|
const n = document.createElement("div");
|
|
184
|
-
n.classList.add("vf-mask"), e.appendChild(n), e[
|
|
244
|
+
n.classList.add("vf-mask"), e.appendChild(n), e[D] = { maskEl: n };
|
|
185
245
|
}
|
|
186
|
-
return e[
|
|
246
|
+
return e[D].maskEl.innerText = t ?? "", () => Ce(e);
|
|
187
247
|
}
|
|
188
|
-
function
|
|
189
|
-
e[
|
|
248
|
+
function Ce(e) {
|
|
249
|
+
e[D] && e.removeChild(e[D].maskEl);
|
|
190
250
|
}
|
|
191
|
-
const
|
|
192
|
-
function
|
|
193
|
-
const i = e instanceof Element ? e :
|
|
251
|
+
const Z = Symbol("FormMaskState");
|
|
252
|
+
function ut(e, t, n) {
|
|
253
|
+
const i = e instanceof Element ? e : Ie(e);
|
|
194
254
|
i.classList.add("vf-masked");
|
|
195
255
|
const s = t instanceof Element ? t : i.querySelectorAll(t ?? 'button:not([disabled]):not([type="button"])')[0], o = s.tagName === "INPUT" ? s.value : s.innerHTML;
|
|
196
256
|
s.setAttribute("disabled", "disabled"), s.innerText = n ?? "Please wait...";
|
|
197
257
|
const l = [...i.querySelectorAll("input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled])")];
|
|
198
|
-
return l.forEach((
|
|
258
|
+
return l.forEach((c) => c.setAttribute("disabled", "disabled")), i[Z] = {
|
|
199
259
|
disabledElements: l,
|
|
200
260
|
waitButton: s,
|
|
201
261
|
buttonHtml: o
|
|
202
|
-
}, () =>
|
|
262
|
+
}, () => Me(i);
|
|
203
263
|
}
|
|
204
|
-
function
|
|
205
|
-
const t = e instanceof Element ? e :
|
|
206
|
-
n && (t.classList.remove("vf-masked"), n.disabledElements.forEach((i) => i.removeAttribute("disabled")), n.waitButton.innerHTML = n.buttonHtml, n.waitButton.removeAttribute("disabled"), delete t[
|
|
264
|
+
function Me(e) {
|
|
265
|
+
const t = e instanceof Element ? e : Ie(e), n = t[Z];
|
|
266
|
+
n && (t.classList.remove("vf-masked"), n.disabledElements.forEach((i) => i.removeAttribute("disabled")), n.waitButton.innerHTML = n.buttonHtml, n.waitButton.removeAttribute("disabled"), delete t[Z]);
|
|
207
267
|
}
|
|
208
|
-
function
|
|
268
|
+
function Ie(e) {
|
|
209
269
|
const t = e.$.vnode.el;
|
|
210
270
|
return t.tagName === "FORM" ? t : t.querySelector("form");
|
|
211
271
|
}
|
|
212
|
-
const
|
|
272
|
+
const ht = ["id"], ft = {
|
|
213
273
|
key: 0,
|
|
214
274
|
class: "vf-modal-header"
|
|
215
|
-
},
|
|
275
|
+
}, pt = { class: "vf-modal-content" }, mt = {
|
|
216
276
|
key: 1,
|
|
217
277
|
class: "vf-modal-footer"
|
|
218
|
-
},
|
|
278
|
+
}, vt = /* @__PURE__ */ x({
|
|
219
279
|
__name: "modal",
|
|
220
280
|
props: {
|
|
221
281
|
id: {},
|
|
@@ -226,67 +286,65 @@ const lt = ["id"], rt = {
|
|
|
226
286
|
},
|
|
227
287
|
emits: ["formSubmit"],
|
|
228
288
|
setup(e, { expose: t }) {
|
|
229
|
-
const n = e, i =
|
|
230
|
-
t({ mask:
|
|
231
|
-
const s =
|
|
232
|
-
|
|
233
|
-
var
|
|
234
|
-
document.body.classList.add("vf-modal-open"), n.closeOnMaskClick && (window.addEventListener("keydown", l), (
|
|
235
|
-
}),
|
|
289
|
+
const n = e, i = Q();
|
|
290
|
+
t({ mask: m, unmask: h });
|
|
291
|
+
const s = b(), o = b();
|
|
292
|
+
_(() => {
|
|
293
|
+
var a;
|
|
294
|
+
document.body.classList.add("vf-modal-open"), n.closeOnMaskClick && (window.addEventListener("keydown", l), (a = s.value) == null || a.addEventListener("click", r));
|
|
295
|
+
}), J(() => {
|
|
236
296
|
window.removeEventListener("keydown", l), document.body.querySelectorAll(".vf-modal").length > 0 || document.body.classList.remove("vf-modal-open");
|
|
237
297
|
});
|
|
238
|
-
function r(
|
|
239
|
-
|
|
298
|
+
function r(a) {
|
|
299
|
+
a.target == s.value && c();
|
|
240
300
|
}
|
|
241
|
-
function l(
|
|
242
|
-
if (
|
|
243
|
-
const
|
|
244
|
-
|
|
301
|
+
function l(a) {
|
|
302
|
+
if (a.key === "Esc" || a.key === "Escape") {
|
|
303
|
+
const p = document.querySelectorAll(".vf-modal-wrap");
|
|
304
|
+
p[p.length - 1] === s.value && c();
|
|
245
305
|
}
|
|
246
306
|
}
|
|
247
|
-
function
|
|
248
|
-
|
|
307
|
+
function c() {
|
|
308
|
+
xe(i);
|
|
249
309
|
}
|
|
250
|
-
function
|
|
251
|
-
|
|
310
|
+
function m() {
|
|
311
|
+
ut(o.value);
|
|
252
312
|
}
|
|
253
313
|
function h() {
|
|
254
|
-
|
|
314
|
+
Me(o.value);
|
|
255
315
|
}
|
|
256
|
-
return (
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
316
|
+
return (a, p) => (u(), f("div", {
|
|
317
|
+
id: a.id,
|
|
318
|
+
class: w(["vf-overlay vf-modal-wrap", n.class]),
|
|
319
|
+
ref_key: "overlay",
|
|
320
|
+
ref: s
|
|
321
|
+
}, [
|
|
322
|
+
k("form", {
|
|
323
|
+
action: ".",
|
|
324
|
+
class: w(["vf-modal", { scrolls: a.scrolls }]),
|
|
325
|
+
onSubmit: p[0] || (p[0] = ge((d) => a.$emit("formSubmit"), ["prevent"])),
|
|
326
|
+
ref_key: "form",
|
|
327
|
+
ref: o
|
|
262
328
|
}, [
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
U(d.$slots, "default")
|
|
280
|
-
]),
|
|
281
|
-
d.$slots.footer ? (c(), u("div", ct, [
|
|
282
|
-
U(d.$slots, "footer")
|
|
283
|
-
])) : T("", !0)
|
|
284
|
-
], 34)
|
|
285
|
-
], 10, lt)
|
|
286
|
-
]));
|
|
329
|
+
a.$slots.header ? (u(), f("div", ft, [
|
|
330
|
+
R(a.$slots, "header"),
|
|
331
|
+
n.closeX ? (u(), f("i", {
|
|
332
|
+
key: 0,
|
|
333
|
+
class: "close",
|
|
334
|
+
onClick: c
|
|
335
|
+
})) : T("", !0)
|
|
336
|
+
])) : T("", !0),
|
|
337
|
+
k("div", pt, [
|
|
338
|
+
R(a.$slots, "default")
|
|
339
|
+
]),
|
|
340
|
+
a.$slots.footer ? (u(), f("div", mt, [
|
|
341
|
+
R(a.$slots, "footer")
|
|
342
|
+
])) : T("", !0)
|
|
343
|
+
], 34)
|
|
344
|
+
], 10, ht));
|
|
287
345
|
}
|
|
288
346
|
});
|
|
289
|
-
const
|
|
347
|
+
const yt = ["innerHtml"], gt = ["innerText"], q = /* @__PURE__ */ x({
|
|
290
348
|
__name: "alert-modal",
|
|
291
349
|
props: {
|
|
292
350
|
isBare: { type: Boolean },
|
|
@@ -298,53 +356,53 @@ const ut = ["innerHtml"], ht = ["innerText"], R = /* @__PURE__ */ D({
|
|
|
298
356
|
callback: { type: Function }
|
|
299
357
|
},
|
|
300
358
|
setup(e) {
|
|
301
|
-
const t = e, n =
|
|
359
|
+
const t = e, n = N(() => t.message instanceof Error ? ct(t.message) : t.message);
|
|
302
360
|
return (i, s) => {
|
|
303
|
-
const o =
|
|
304
|
-
return
|
|
305
|
-
class:
|
|
306
|
-
},
|
|
307
|
-
default:
|
|
308
|
-
i.isHtml ? (
|
|
361
|
+
const o = Ee("autofocus");
|
|
362
|
+
return u(), Oe(vt, {
|
|
363
|
+
class: w(["vf-alert", i.classes])
|
|
364
|
+
}, Pe({
|
|
365
|
+
default: z(() => [
|
|
366
|
+
i.isHtml ? (u(), f("div", {
|
|
309
367
|
key: 0,
|
|
310
368
|
innerHtml: i.message,
|
|
311
369
|
class: "user-message"
|
|
312
|
-
}, null, 8,
|
|
370
|
+
}, null, 8, yt)) : (u(), f("div", {
|
|
313
371
|
key: 1,
|
|
314
372
|
innerText: n.value
|
|
315
|
-
}, null, 8,
|
|
373
|
+
}, null, 8, gt))
|
|
316
374
|
]),
|
|
317
375
|
_: 2
|
|
318
376
|
}, [
|
|
319
377
|
i.title ? {
|
|
320
378
|
name: "header",
|
|
321
|
-
fn:
|
|
322
|
-
|
|
379
|
+
fn: z(() => [
|
|
380
|
+
k("h1", null, H(i.title), 1)
|
|
323
381
|
]),
|
|
324
382
|
key: "0"
|
|
325
383
|
} : void 0,
|
|
326
384
|
i.isBare ? void 0 : {
|
|
327
385
|
name: "footer",
|
|
328
|
-
fn:
|
|
329
|
-
i.shouldConfirm ? (
|
|
330
|
-
|
|
386
|
+
fn: z(() => [
|
|
387
|
+
i.shouldConfirm ? (u(), f(U, { key: 0 }, [
|
|
388
|
+
K((u(), f("button", {
|
|
331
389
|
class: "primary",
|
|
332
390
|
onClick: s[0] || (s[0] = () => i.callback(!0))
|
|
333
391
|
}, [
|
|
334
|
-
|
|
392
|
+
se("Confirm")
|
|
335
393
|
])), [
|
|
336
394
|
[o]
|
|
337
395
|
]),
|
|
338
|
-
|
|
396
|
+
k("button", {
|
|
339
397
|
class: "default",
|
|
340
398
|
onClick: s[1] || (s[1] = () => i.callback(!1))
|
|
341
399
|
}, "Cancel")
|
|
342
|
-
], 64)) :
|
|
400
|
+
], 64)) : K((u(), f("button", {
|
|
343
401
|
key: 1,
|
|
344
402
|
class: "default",
|
|
345
403
|
onClick: s[2] || (s[2] = () => i.callback(!0))
|
|
346
404
|
}, [
|
|
347
|
-
|
|
405
|
+
se("OK")
|
|
348
406
|
])), [
|
|
349
407
|
[o]
|
|
350
408
|
])
|
|
@@ -355,52 +413,52 @@ const ut = ["innerHtml"], ht = ["innerText"], R = /* @__PURE__ */ D({
|
|
|
355
413
|
};
|
|
356
414
|
}
|
|
357
415
|
});
|
|
358
|
-
let
|
|
359
|
-
const
|
|
360
|
-
function
|
|
361
|
-
if (!
|
|
416
|
+
let F;
|
|
417
|
+
const Et = new Uint8Array(16);
|
|
418
|
+
function Ot() {
|
|
419
|
+
if (!F && (F = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !F))
|
|
362
420
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
363
|
-
return
|
|
421
|
+
return F(Et);
|
|
364
422
|
}
|
|
365
|
-
const
|
|
423
|
+
const v = [];
|
|
366
424
|
for (let e = 0; e < 256; ++e)
|
|
367
|
-
|
|
368
|
-
function
|
|
369
|
-
return (
|
|
425
|
+
v.push((e + 256).toString(16).slice(1));
|
|
426
|
+
function Tt(e, t = 0) {
|
|
427
|
+
return (v[e[t + 0]] + v[e[t + 1]] + v[e[t + 2]] + v[e[t + 3]] + "-" + v[e[t + 4]] + v[e[t + 5]] + "-" + v[e[t + 6]] + v[e[t + 7]] + "-" + v[e[t + 8]] + v[e[t + 9]] + "-" + v[e[t + 10]] + v[e[t + 11]] + v[e[t + 12]] + v[e[t + 13]] + v[e[t + 14]] + v[e[t + 15]]).toLowerCase();
|
|
370
428
|
}
|
|
371
|
-
const
|
|
372
|
-
randomUUID:
|
|
429
|
+
const wt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), re = {
|
|
430
|
+
randomUUID: wt
|
|
373
431
|
};
|
|
374
|
-
function
|
|
375
|
-
if (
|
|
376
|
-
return
|
|
432
|
+
function bt(e, t, n) {
|
|
433
|
+
if (re.randomUUID && !t && !e)
|
|
434
|
+
return re.randomUUID();
|
|
377
435
|
e = e || {};
|
|
378
|
-
const i = e.random || (e.rng ||
|
|
436
|
+
const i = e.random || (e.rng || Ot)();
|
|
379
437
|
if (i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, t) {
|
|
380
438
|
n = n || 0;
|
|
381
439
|
for (let s = 0; s < 16; ++s)
|
|
382
440
|
t[n + s] = i[s];
|
|
383
441
|
return t;
|
|
384
442
|
}
|
|
385
|
-
return
|
|
443
|
+
return Tt(i);
|
|
386
444
|
}
|
|
387
|
-
function
|
|
445
|
+
function An(e) {
|
|
388
446
|
return e.replace(/\n/g, "<br>");
|
|
389
447
|
}
|
|
390
|
-
function
|
|
448
|
+
function kt(e) {
|
|
391
449
|
return e.replace(/_/g, " ");
|
|
392
450
|
}
|
|
393
|
-
function
|
|
451
|
+
function St(e) {
|
|
394
452
|
const t = e.replace(/\D/g, "").replace(/^1/, "");
|
|
395
453
|
return t.length != 10 ? e : "(" + t.substring(0, 3) + ") " + t.substring(3, 6) + "-" + t.substring(6);
|
|
396
454
|
}
|
|
397
|
-
function
|
|
455
|
+
function xt(e) {
|
|
398
456
|
return "$" + Number(e).toFixed(3).replace(/0$/, "").replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
399
457
|
}
|
|
400
|
-
function
|
|
401
|
-
return
|
|
458
|
+
function $n() {
|
|
459
|
+
return bt();
|
|
402
460
|
}
|
|
403
|
-
const
|
|
461
|
+
const C = Symbol("null"), ae = Symbol("create"), Lt = "`1234567890-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", Ct = {
|
|
404
462
|
props: {
|
|
405
463
|
modelValue: {
|
|
406
464
|
type: null,
|
|
@@ -477,13 +535,13 @@ const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@
|
|
|
477
535
|
},
|
|
478
536
|
optionsDescriptors() {
|
|
479
537
|
return this.allOptions.map((e, t) => {
|
|
480
|
-
var l,
|
|
538
|
+
var l, c;
|
|
481
539
|
const n = this.formatter(e), i = (l = this.subtitleFormatter) == null ? void 0 : l.call(this, e), s = n ? n.trim().toLowerCase() : "", o = i ? i.trim().toLowerCase() : "", r = [];
|
|
482
|
-
return this.searchFields ? this.searchFields.forEach((
|
|
483
|
-
e[
|
|
540
|
+
return this.searchFields ? this.searchFields.forEach((m) => {
|
|
541
|
+
e[m] && r.push(String(e[m]).toLowerCase());
|
|
484
542
|
}) : (r.push(s), o && r.push(o)), {
|
|
485
543
|
// eslint-disable-next-line vue/no-use-computed-property-like-method
|
|
486
|
-
key: ((
|
|
544
|
+
key: ((c = this.effectiveKeyExtractor) == null ? void 0 : c.call(this, e)) ?? String(t),
|
|
487
545
|
title: n,
|
|
488
546
|
subtitle: i,
|
|
489
547
|
searchContent: r.join(""),
|
|
@@ -497,7 +555,7 @@ const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@
|
|
|
497
555
|
const t = this.searchText.trim().toLowerCase();
|
|
498
556
|
if (t.length) {
|
|
499
557
|
e = e.filter((s) => s.searchContent.includes(t));
|
|
500
|
-
const n =
|
|
558
|
+
const n = Qe(this.searchText).replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), i = new RegExp(`(${n})`, "ig");
|
|
501
559
|
e = e.map((s) => {
|
|
502
560
|
var o;
|
|
503
561
|
return {
|
|
@@ -506,13 +564,13 @@ const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@
|
|
|
506
564
|
subtitle: (o = s.subtitle) == null ? void 0 : o.replace(i, "<mark>$1</mark>")
|
|
507
565
|
};
|
|
508
566
|
}), this.shouldShowCreateOption && (e.find((o) => o.searchContent === t) !== void 0 || e.push({
|
|
509
|
-
key:
|
|
567
|
+
key: ae,
|
|
510
568
|
title: "Create <strong>" + this.searchText.trim() + "</strong>..."
|
|
511
569
|
}));
|
|
512
570
|
}
|
|
513
571
|
} else
|
|
514
572
|
this.nullTitle && e.unshift({
|
|
515
|
-
key:
|
|
573
|
+
key: C,
|
|
516
574
|
title: this.nullTitle
|
|
517
575
|
});
|
|
518
576
|
return e;
|
|
@@ -538,7 +596,7 @@ const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@
|
|
|
538
596
|
},
|
|
539
597
|
effectiveOptions() {
|
|
540
598
|
var e;
|
|
541
|
-
this.modelValue && !this.selectedOption && this.handleValueChanged(), this.highlightedOptionKey && !this.effectiveOptions.find((t) => t.key == this.highlightedOptionKey) && (this.highlightedOptionKey = ((e = this.effectiveOptions[0]) == null ? void 0 : e.key) ??
|
|
599
|
+
this.modelValue && !this.selectedOption && this.handleValueChanged(), this.highlightedOptionKey && !this.effectiveOptions.find((t) => t.key == this.highlightedOptionKey) && (this.highlightedOptionKey = ((e = this.effectiveOptions[0]) == null ? void 0 : e.key) ?? C);
|
|
542
600
|
}
|
|
543
601
|
},
|
|
544
602
|
async mounted() {
|
|
@@ -547,7 +605,7 @@ const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@
|
|
|
547
605
|
"update:modelValue",
|
|
548
606
|
this.selectedOption && this.valueExtractor ? this.valueExtractor(this.selectedOption) : this.selectedOption
|
|
549
607
|
);
|
|
550
|
-
}), this.remoteSearch && this.$watch("searchText",
|
|
608
|
+
}), this.remoteSearch && this.$watch("searchText", ze(this.reloadOptionsIfSearching, 250));
|
|
551
609
|
},
|
|
552
610
|
methods: {
|
|
553
611
|
async loadRemoteOptions() {
|
|
@@ -592,7 +650,7 @@ const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@
|
|
|
592
650
|
this.searchText.length > 1 && (this.isSearching = !0);
|
|
593
651
|
return;
|
|
594
652
|
}
|
|
595
|
-
!e.metaKey &&
|
|
653
|
+
!e.metaKey && Lt.includes(e.key) && (this.isSearching = !0);
|
|
596
654
|
}
|
|
597
655
|
},
|
|
598
656
|
handleInputFocused() {
|
|
@@ -600,7 +658,7 @@ const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@
|
|
|
600
658
|
},
|
|
601
659
|
setHighlightedOptionKey(e) {
|
|
602
660
|
var t;
|
|
603
|
-
this.selectedOption ? this.highlightedOptionKey = this.getOptionKey(this.selectedOption) : e ? this.highlightedOptionKey = ((t = this.effectiveOptions) == null ? void 0 : t[0].key) ??
|
|
661
|
+
this.selectedOption ? this.highlightedOptionKey = this.getOptionKey(this.selectedOption) : e ? this.highlightedOptionKey = ((t = this.effectiveOptions) == null ? void 0 : t[0].key) ?? C : this.nullTitle && (this.highlightedOptionKey = C);
|
|
604
662
|
},
|
|
605
663
|
getOptionKey(e) {
|
|
606
664
|
var t;
|
|
@@ -610,7 +668,7 @@ const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@
|
|
|
610
668
|
const t = this.effectiveOptions.find((i) => i.ref === e);
|
|
611
669
|
if (t)
|
|
612
670
|
return t;
|
|
613
|
-
const n = this.effectiveOptions.find((i) =>
|
|
671
|
+
const n = this.effectiveOptions.find((i) => be(i.ref, e));
|
|
614
672
|
return n || null;
|
|
615
673
|
},
|
|
616
674
|
handleInputBlurred() {
|
|
@@ -648,9 +706,9 @@ const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@
|
|
|
648
706
|
s.offsetTop < i.scrollTop ? i.scrollTop = s.offsetTop : s.offsetTop + s.offsetHeight > i.scrollTop + i.clientHeight && (i.scrollTop = s.offsetTop + s.offsetHeight - i.clientHeight);
|
|
649
707
|
},
|
|
650
708
|
selectOption(e) {
|
|
651
|
-
if (this.isSearching = !1, e.key ==
|
|
709
|
+
if (this.isSearching = !1, e.key == C)
|
|
652
710
|
this.searchText = "", this.selectedOption = null, this.selectedOptionTitle = null;
|
|
653
|
-
else if (e.key ===
|
|
711
|
+
else if (e.key === ae) {
|
|
654
712
|
const t = this.searchText.trim();
|
|
655
713
|
this.searchText = "", this.selectedOption = null, this.selectedOptionTitle = null, this.$emit("createItem", t);
|
|
656
714
|
} else {
|
|
@@ -667,61 +725,61 @@ const w = Symbol("null"), le = Symbol("create"), Ot = "`1234567890-=[]\\;',./~!@
|
|
|
667
725
|
}
|
|
668
726
|
}
|
|
669
727
|
};
|
|
670
|
-
const
|
|
728
|
+
const Mt = ["placeholder"], It = {
|
|
671
729
|
key: 0,
|
|
672
730
|
ref: "optionsContainer",
|
|
673
731
|
class: "vf-smart-select-options"
|
|
674
|
-
},
|
|
732
|
+
}, Ht = {
|
|
675
733
|
key: 0,
|
|
676
734
|
class: "no-results"
|
|
677
|
-
},
|
|
735
|
+
}, Dt = ["onMousemove", "onMousedown"], At = ["innerHTML"], $t = ["innerHTML"], _t = {
|
|
678
736
|
key: 0,
|
|
679
737
|
class: "no-results"
|
|
680
738
|
};
|
|
681
|
-
function
|
|
682
|
-
const r =
|
|
683
|
-
return
|
|
684
|
-
class:
|
|
739
|
+
function Bt(e, t, n, i, s, o) {
|
|
740
|
+
const r = Ee("disabled");
|
|
741
|
+
return u(), f("div", {
|
|
742
|
+
class: w(["vf-smart-select", { disabled: o.effectiveDisabled, open: e.shouldDisplayOptions }])
|
|
685
743
|
}, [
|
|
686
|
-
|
|
744
|
+
K(k("input", {
|
|
687
745
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => e.searchText = l),
|
|
688
746
|
ref: "searchField",
|
|
689
747
|
type: "text",
|
|
690
|
-
class:
|
|
748
|
+
class: w({ nullable: !!n.nullTitle }),
|
|
691
749
|
onKeydown: t[1] || (t[1] = (...l) => o.handleKeyDown && o.handleKeyDown(...l)),
|
|
692
750
|
placeholder: o.effectivePlaceholder,
|
|
693
751
|
onFocus: t[2] || (t[2] = (...l) => o.handleInputFocused && o.handleInputFocused(...l)),
|
|
694
752
|
onBlur: t[3] || (t[3] = (...l) => o.handleInputBlurred && o.handleInputBlurred(...l))
|
|
695
|
-
}, null, 42,
|
|
696
|
-
[
|
|
753
|
+
}, null, 42, Mt), [
|
|
754
|
+
[qe, e.searchText],
|
|
697
755
|
[r, o.effectiveDisabled]
|
|
698
756
|
]),
|
|
699
|
-
e.shouldDisplayOptions ? (
|
|
700
|
-
e.isLoaded ? (
|
|
701
|
-
(
|
|
757
|
+
e.shouldDisplayOptions ? (u(), f("div", It, [
|
|
758
|
+
e.isLoaded ? (u(), f(U, { key: 1 }, [
|
|
759
|
+
(u(!0), f(U, null, G(o.effectiveOptions, (l) => (u(), f("div", {
|
|
702
760
|
key: String(l.key),
|
|
703
|
-
class:
|
|
761
|
+
class: w(["option", {
|
|
704
762
|
highlighted: e.highlightedOptionKey === l.key
|
|
705
763
|
}]),
|
|
706
|
-
onMousemove: (
|
|
707
|
-
onMousedown: (
|
|
764
|
+
onMousemove: (c) => o.handleOptionHover(l),
|
|
765
|
+
onMousedown: (c) => o.selectOption(l)
|
|
708
766
|
}, [
|
|
709
|
-
|
|
767
|
+
k("div", {
|
|
710
768
|
class: "title",
|
|
711
769
|
innerHTML: l.title
|
|
712
|
-
}, null, 8,
|
|
713
|
-
l.subtitle ? (
|
|
770
|
+
}, null, 8, At),
|
|
771
|
+
l.subtitle ? (u(), f("div", {
|
|
714
772
|
key: 0,
|
|
715
773
|
class: "subtitle",
|
|
716
774
|
innerHTML: l.subtitle
|
|
717
|
-
}, null, 8,
|
|
718
|
-
], 42,
|
|
719
|
-
!o.effectiveOptions.length && e.searchText ? (
|
|
720
|
-
], 64)) : (
|
|
775
|
+
}, null, 8, $t)) : T("", !0)
|
|
776
|
+
], 42, Dt))), 128)),
|
|
777
|
+
!o.effectiveOptions.length && e.searchText ? (u(), f("div", _t, H(o.effectiveNoResultsText), 1)) : T("", !0)
|
|
778
|
+
], 64)) : (u(), f("div", Ht, "Loading..."))
|
|
721
779
|
], 512)) : T("", !0)
|
|
722
780
|
], 2);
|
|
723
781
|
}
|
|
724
|
-
const
|
|
782
|
+
const Vt = /* @__PURE__ */ ke(Ct, [["render", Bt]]), _n = /* @__PURE__ */ x({
|
|
725
783
|
__name: "ez-smart-select",
|
|
726
784
|
props: {
|
|
727
785
|
modelValue: {},
|
|
@@ -732,185 +790,185 @@ const Ht = /* @__PURE__ */ be(bt, [["render", It]]), Cn = /* @__PURE__ */ D({
|
|
|
732
790
|
},
|
|
733
791
|
emits: ["update:modelValue"],
|
|
734
792
|
setup(e, { emit: t }) {
|
|
735
|
-
const n = e, i =
|
|
793
|
+
const n = e, i = N(() => Array.isArray(n.options) ? n.options.map((r) => ({ value: r, label: r })) : Object.entries(n.options).map(([r, l]) => ({
|
|
736
794
|
value: r,
|
|
737
795
|
label: l
|
|
738
|
-
}))), s =
|
|
796
|
+
}))), s = N(() => n.formatter ? (r) => {
|
|
739
797
|
var l;
|
|
740
798
|
return (l = n.formatter) == null ? void 0 : l.call(n, r.label);
|
|
741
|
-
} : (r) => r.label), o =
|
|
742
|
-
return
|
|
799
|
+
} : (r) => r.label), o = b(i.value.find((r) => r.value === n.modelValue) ?? null);
|
|
800
|
+
return oe(
|
|
743
801
|
() => n.modelValue,
|
|
744
802
|
(r) => {
|
|
745
803
|
o.value = i.value.find((l) => l.value === r) ?? null;
|
|
746
804
|
}
|
|
747
|
-
),
|
|
805
|
+
), oe(o, (r) => {
|
|
748
806
|
var l;
|
|
749
|
-
t("update:modelValue", r ? ((l = i.value.find((
|
|
750
|
-
}), (r, l) => (
|
|
807
|
+
t("update:modelValue", r ? ((l = i.value.find((c) => be(c, r))) == null ? void 0 : l.value) ?? null : null);
|
|
808
|
+
}), (r, l) => (u(), Oe(Vt, {
|
|
751
809
|
modelValue: o.value,
|
|
752
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
810
|
+
"onUpdate:modelValue": l[0] || (l[0] = (c) => o.value = c),
|
|
753
811
|
options: i.value,
|
|
754
812
|
formatter: s.value,
|
|
755
813
|
"null-title": r.nullTitle
|
|
756
814
|
}, null, 8, ["modelValue", "options", "formatter", "null-title"]));
|
|
757
815
|
}
|
|
758
816
|
});
|
|
759
|
-
function
|
|
817
|
+
function Ft(e) {
|
|
760
818
|
const t = Math.floor(Math.log(e) / Math.log(1024)), i = (e / Math.pow(1024, t)).toFixed(2), s = ["B", "KB", "MB", "GB", "TB"][t];
|
|
761
819
|
return `${i} ${s}`;
|
|
762
820
|
}
|
|
763
|
-
function
|
|
821
|
+
function Rt(e) {
|
|
764
822
|
return e != null && String(e).length ? e : "-";
|
|
765
823
|
}
|
|
766
|
-
function
|
|
824
|
+
function Nt(e) {
|
|
767
825
|
return e || "-";
|
|
768
826
|
}
|
|
769
|
-
function
|
|
770
|
-
return e === null || typeof e == "string" && !/^\d+$/.test(e) ? e :
|
|
827
|
+
function Kt(e) {
|
|
828
|
+
return e === null || typeof e == "string" && !/^\d+$/.test(e) ? e : Yt(Number(e));
|
|
771
829
|
}
|
|
772
|
-
function
|
|
773
|
-
return e &&
|
|
830
|
+
function Ut(e) {
|
|
831
|
+
return e && St(e);
|
|
774
832
|
}
|
|
775
|
-
function
|
|
776
|
-
return e ?
|
|
833
|
+
function Wt(e) {
|
|
834
|
+
return e ? Xe(e) : null;
|
|
777
835
|
}
|
|
778
|
-
function
|
|
779
|
-
return e ?
|
|
836
|
+
function jt(e) {
|
|
837
|
+
return e ? Ye(e) : null;
|
|
780
838
|
}
|
|
781
|
-
function
|
|
839
|
+
function Pt(e) {
|
|
782
840
|
return e ? e.toUpperCase() : null;
|
|
783
841
|
}
|
|
784
|
-
function
|
|
785
|
-
return e ?
|
|
786
|
-
}
|
|
787
|
-
function
|
|
788
|
-
return
|
|
789
|
-
}
|
|
790
|
-
const
|
|
791
|
-
bytes:
|
|
792
|
-
dash:
|
|
793
|
-
dashZeros:
|
|
794
|
-
number:
|
|
795
|
-
phone:
|
|
796
|
-
upperFirst:
|
|
797
|
-
startCase:
|
|
798
|
-
upperCase:
|
|
799
|
-
desnake:
|
|
800
|
-
usCurrency:
|
|
801
|
-
},
|
|
802
|
-
...
|
|
803
|
-
...e(
|
|
842
|
+
function qt(e) {
|
|
843
|
+
return e ? kt(e) : null;
|
|
844
|
+
}
|
|
845
|
+
function zt(e) {
|
|
846
|
+
return xt(e);
|
|
847
|
+
}
|
|
848
|
+
const ce = {
|
|
849
|
+
bytes: Ft,
|
|
850
|
+
dash: Rt,
|
|
851
|
+
dashZeros: Nt,
|
|
852
|
+
number: Kt,
|
|
853
|
+
phone: Ut,
|
|
854
|
+
upperFirst: Wt,
|
|
855
|
+
startCase: jt,
|
|
856
|
+
upperCase: Pt,
|
|
857
|
+
desnake: qt,
|
|
858
|
+
usCurrency: zt
|
|
859
|
+
}, Bn = (e) => ({
|
|
860
|
+
...ce,
|
|
861
|
+
...e(ce)
|
|
804
862
|
});
|
|
805
|
-
function
|
|
863
|
+
function Vn(e, t, n) {
|
|
806
864
|
const i = typeof t == "function" ? e.findIndex(t) : e.indexOf(t);
|
|
807
865
|
return i === -1 ? !1 : (e.splice(i, 1, n), !0);
|
|
808
866
|
}
|
|
809
|
-
function
|
|
867
|
+
function Fn(e, t) {
|
|
810
868
|
const n = document.createElement("div");
|
|
811
|
-
n.classList.add("vf-overlay"), n.addEventListener("click",
|
|
869
|
+
n.classList.add("vf-overlay"), n.addEventListener("click", a), document.body.appendChild(n);
|
|
812
870
|
const i = document.createElement("div");
|
|
813
871
|
i.classList.add("vf-context-menu"), i.style.position = "absolute", n.appendChild(i);
|
|
814
872
|
const s = e.currentTarget;
|
|
815
|
-
s.style.userSelect = "none", s.classList.add("context-menu-active"), t.targetClass && s.classList.add(t.targetClass), t.class && i.classList.add(t.class), t.items.forEach((
|
|
816
|
-
if (
|
|
817
|
-
const
|
|
818
|
-
|
|
873
|
+
s.style.userSelect = "none", s.classList.add("context-menu-active"), t.targetClass && s.classList.add(t.targetClass), t.class && i.classList.add(t.class), t.items.forEach((d) => {
|
|
874
|
+
if (d == "-") {
|
|
875
|
+
const E = document.createElement("div");
|
|
876
|
+
E.classList.add("separator"), i.appendChild(E);
|
|
819
877
|
return;
|
|
820
878
|
}
|
|
821
|
-
const
|
|
822
|
-
|
|
879
|
+
const y = document.createElement("div");
|
|
880
|
+
y.classList.add("item"), y.style.userSelect = "none", y.innerText = d.title, i.appendChild(y), d.class && y.classList.add(d.class), d.shouldConfirm ? y.addEventListener("click", () => p(y, d.handler)) : y.addEventListener("click", () => d.handler());
|
|
823
881
|
});
|
|
824
|
-
const o = window.innerWidth - e.clientX, r = window.innerHeight - e.clientY, l = i.offsetHeight,
|
|
825
|
-
i.style.left =
|
|
882
|
+
const o = window.innerWidth - e.clientX, r = window.innerHeight - e.clientY, l = i.offsetHeight, c = i.offsetWidth, m = o < c ? e.clientX - c - 1 : e.clientX + 1, h = r < l ? e.clientY - l - 1 : e.clientY + 1;
|
|
883
|
+
i.style.left = m + "px", i.style.top = h + "px", setTimeout(() => {
|
|
826
884
|
i.style.width = i.offsetWidth + "px";
|
|
827
885
|
}, 50);
|
|
828
|
-
function
|
|
886
|
+
function a() {
|
|
829
887
|
t.targetClass && s.classList.remove(t.targetClass), s.classList.remove("context-menu-active"), s.style.userSelect = "", n.remove();
|
|
830
888
|
}
|
|
831
|
-
function
|
|
832
|
-
if (
|
|
833
|
-
return
|
|
834
|
-
const
|
|
835
|
-
|
|
836
|
-
const
|
|
837
|
-
|
|
889
|
+
function p(d, y) {
|
|
890
|
+
if (d.classList.contains("pending-confirm"))
|
|
891
|
+
return y();
|
|
892
|
+
const E = d.innerHTML;
|
|
893
|
+
d.classList.add("pending-confirm"), d.innerText = "Confirm";
|
|
894
|
+
const S = () => {
|
|
895
|
+
d.classList.remove("pending-confirm"), d.innerHTML = E, d.removeEventListener("mouseleave", S);
|
|
838
896
|
};
|
|
839
|
-
|
|
897
|
+
d.addEventListener("mouseleave", S), e.stopPropagation();
|
|
840
898
|
}
|
|
841
899
|
}
|
|
842
|
-
const
|
|
843
|
-
function
|
|
900
|
+
const Xt = (e) => new Promise((t) => setTimeout(t, e)), Rn = (e) => Xt(e * 1e3);
|
|
901
|
+
function Yt(e) {
|
|
844
902
|
return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
845
903
|
}
|
|
846
|
-
function
|
|
847
|
-
return e != null ?
|
|
904
|
+
function Nn(e, t) {
|
|
905
|
+
return e != null ? Ze(e) : t;
|
|
848
906
|
}
|
|
849
|
-
function
|
|
907
|
+
function Kn(e, t) {
|
|
850
908
|
const n = { ...e };
|
|
851
909
|
for (const i of t)
|
|
852
910
|
n[i] === "" && (n[i] = null);
|
|
853
911
|
return n;
|
|
854
912
|
}
|
|
855
|
-
function
|
|
913
|
+
function Zt(e) {
|
|
856
914
|
return e instanceof Error && "status" in e && "body" in e;
|
|
857
915
|
}
|
|
858
|
-
function
|
|
916
|
+
function Un({ apiClient: e, onRequest: t, onError: n, CancelablePromise: i }) {
|
|
859
917
|
const s = e.request.request.bind(e.request);
|
|
860
|
-
e.request.request = (o) => (t && (o = t(o)), new i((r, l,
|
|
861
|
-
const
|
|
862
|
-
|
|
863
|
-
if (
|
|
918
|
+
e.request.request = (o) => (t && (o = t(o)), new i((r, l, c) => {
|
|
919
|
+
const m = s(o);
|
|
920
|
+
c(m.cancel), m.then(r).catch((h) => {
|
|
921
|
+
if (Zt(h) && typeof h.body == "object" && "error" in h.body) {
|
|
864
922
|
if (h.status === 422)
|
|
865
|
-
return l(new
|
|
923
|
+
return l(new P(h.body.error));
|
|
866
924
|
h.message = `${h.body.error} (${h.status})`;
|
|
867
925
|
}
|
|
868
926
|
if (n) {
|
|
869
|
-
const
|
|
870
|
-
if (
|
|
927
|
+
const a = n(h, o);
|
|
928
|
+
if (a === null)
|
|
871
929
|
return;
|
|
872
|
-
if (
|
|
873
|
-
return l(
|
|
930
|
+
if (a instanceof Error)
|
|
931
|
+
return l(a);
|
|
874
932
|
}
|
|
875
933
|
l(h);
|
|
876
934
|
});
|
|
877
935
|
}));
|
|
878
936
|
}
|
|
879
|
-
const
|
|
880
|
-
function
|
|
881
|
-
const n = t ??
|
|
882
|
-
|
|
937
|
+
const ne = Symbol("HookState");
|
|
938
|
+
function Wn(e, t) {
|
|
939
|
+
const n = t ?? Q();
|
|
940
|
+
_(() => Gt(n, e), n), Te(() => Qt(n), n), we(() => de(n), n), J(() => de(n), n);
|
|
883
941
|
}
|
|
884
|
-
function
|
|
942
|
+
function Gt(e, t) {
|
|
885
943
|
const n = {};
|
|
886
|
-
if (t.elScrolledToBottom && (n.el = new
|
|
887
|
-
const i =
|
|
888
|
-
i ? n.ancestor = new
|
|
944
|
+
if (t.elScrolledToBottom && (n.el = new A(e.vnode.el, t.elScrolledToBottom)), t.ancestorScrolledToBottom) {
|
|
945
|
+
const i = He(e.vnode.el);
|
|
946
|
+
i ? n.ancestor = new A(i, t.ancestorScrolledToBottom) : console.warn("[VueFoundation] No scollable ancestor found for component:", e);
|
|
889
947
|
}
|
|
890
|
-
t.windowScrolledToBottom && (n.window = new
|
|
948
|
+
t.windowScrolledToBottom && (n.window = new A(window, t.windowScrolledToBottom)), e[ne] = n;
|
|
891
949
|
}
|
|
892
|
-
function
|
|
950
|
+
function Qt(e) {
|
|
893
951
|
var n, i, s;
|
|
894
|
-
const t = e[
|
|
952
|
+
const t = e[ne];
|
|
895
953
|
(n = t == null ? void 0 : t.el) == null || n.install(), (i = t == null ? void 0 : t.ancestor) == null || i.install(), (s = t == null ? void 0 : t.window) == null || s.install();
|
|
896
954
|
}
|
|
897
|
-
function
|
|
955
|
+
function de(e) {
|
|
898
956
|
var n, i, s;
|
|
899
|
-
const t = e[
|
|
957
|
+
const t = e[ne];
|
|
900
958
|
(n = t == null ? void 0 : t.el) == null || n.uninstall(), (i = t == null ? void 0 : t.ancestor) == null || i.uninstall(), (s = t == null ? void 0 : t.window) == null || s.uninstall();
|
|
901
959
|
}
|
|
902
|
-
const
|
|
903
|
-
function
|
|
960
|
+
const X = ["auto", "scroll"];
|
|
961
|
+
function He(e) {
|
|
904
962
|
const t = e.parentElement;
|
|
905
963
|
if (!t)
|
|
906
964
|
return null;
|
|
907
965
|
const n = window.getComputedStyle(t);
|
|
908
|
-
return
|
|
966
|
+
return X.includes(n.overflow) || X.includes(n.overflowX) || X.includes(n.overflowY) ? t : He(t);
|
|
909
967
|
}
|
|
910
|
-
class
|
|
968
|
+
class A {
|
|
911
969
|
constructor(t, n) {
|
|
912
|
-
|
|
913
|
-
|
|
970
|
+
g(this, "isTripped", !1);
|
|
971
|
+
g(this, "onScrollWithContext", this.onScroll.bind(this));
|
|
914
972
|
this.el = t, this.handler = n, this.install();
|
|
915
973
|
}
|
|
916
974
|
install() {
|
|
@@ -923,30 +981,30 @@ class L {
|
|
|
923
981
|
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);
|
|
924
982
|
}
|
|
925
983
|
}
|
|
926
|
-
function
|
|
927
|
-
|
|
984
|
+
function jn(e) {
|
|
985
|
+
_(() => window.addEventListener("resize", e)), Te(() => window.addEventListener("resize", e)), we(() => window.removeEventListener("resize", e)), J(() => window.removeEventListener("resize", e));
|
|
928
986
|
}
|
|
929
|
-
const
|
|
930
|
-
mounted:
|
|
931
|
-
updated:
|
|
932
|
-
},
|
|
933
|
-
function
|
|
934
|
-
if (t.value === void 0 && e[
|
|
987
|
+
const Jt = {
|
|
988
|
+
mounted: he,
|
|
989
|
+
updated: he
|
|
990
|
+
}, ue = Symbol("HasAutoFocused");
|
|
991
|
+
function he(e, t) {
|
|
992
|
+
if (t.value === void 0 && e[ue] || t.value !== void 0 && !t.value || t.oldValue !== void 0 && t.value == t.oldValue)
|
|
935
993
|
return;
|
|
936
|
-
e[
|
|
994
|
+
e[ue] = !0;
|
|
937
995
|
const n = ["BUTTON", "INPUT", "TEXTAREA", "SELECT"].indexOf(e.tagName) > -1 ? e : e.querySelectorAll("input")[0];
|
|
938
996
|
setTimeout(() => n.focus(), 10);
|
|
939
997
|
}
|
|
940
|
-
const
|
|
941
|
-
mounted:
|
|
942
|
-
},
|
|
943
|
-
function
|
|
998
|
+
const en = {
|
|
999
|
+
mounted: tn
|
|
1000
|
+
}, M = Symbol("ConfirmState");
|
|
1001
|
+
function tn(e) {
|
|
944
1002
|
e.addEventListener("click", (t) => {
|
|
945
1003
|
const n = Date.now();
|
|
946
|
-
if (e[
|
|
947
|
-
if (n - e[
|
|
1004
|
+
if (e[M]) {
|
|
1005
|
+
if (n - e[M].initTime < 300)
|
|
948
1006
|
return;
|
|
949
|
-
e[
|
|
1007
|
+
e[M].resetHandler(), e.dispatchEvent(new Event("confirm"));
|
|
950
1008
|
return;
|
|
951
1009
|
}
|
|
952
1010
|
t.preventDefault(), t.stopImmediatePropagation();
|
|
@@ -954,86 +1012,86 @@ function Yt(e) {
|
|
|
954
1012
|
initTime: n,
|
|
955
1013
|
preconfirmHtml: e.innerHTML,
|
|
956
1014
|
resetHandler: () => {
|
|
957
|
-
e.innerHTML = i.preconfirmHtml, e.blur(), e.removeEventListener("mouseout", i.resetHandler), delete e[
|
|
1015
|
+
e.innerHTML = i.preconfirmHtml, e.blur(), e.removeEventListener("mouseout", i.resetHandler), delete e[M];
|
|
958
1016
|
}
|
|
959
1017
|
};
|
|
960
|
-
e[
|
|
1018
|
+
e[M] = i, e.innerHTML = "Confirm", e.addEventListener("mouseout", i.resetHandler);
|
|
961
1019
|
});
|
|
962
1020
|
}
|
|
963
|
-
const
|
|
964
|
-
beforeMount:
|
|
1021
|
+
const nn = {
|
|
1022
|
+
beforeMount: sn
|
|
965
1023
|
};
|
|
966
|
-
function
|
|
1024
|
+
function sn(e) {
|
|
967
1025
|
e.addEventListener("blur", () => {
|
|
968
1026
|
let t = e.value;
|
|
969
|
-
/^\d{1,2}\/\d{1,2}$/.test(t) && (t += "/" +
|
|
1027
|
+
/^\d{1,2}\/\d{1,2}$/.test(t) && (t += "/" + Y(/* @__PURE__ */ new Date(), "yy"));
|
|
970
1028
|
const n = Date.parse(t);
|
|
971
|
-
isNaN(n) ? e.value = "" : e.value =
|
|
1029
|
+
isNaN(n) ? e.value = "" : e.value = Y(n, "MM/dd/yyyy"), e.dispatchEvent(new Event("input"));
|
|
972
1030
|
});
|
|
973
1031
|
}
|
|
974
|
-
const
|
|
975
|
-
beforeMount:
|
|
976
|
-
updated:
|
|
1032
|
+
const on = {
|
|
1033
|
+
beforeMount: fe,
|
|
1034
|
+
updated: fe
|
|
977
1035
|
};
|
|
978
|
-
function
|
|
979
|
-
t.value == t.oldValue && e.innerHTML.length || (e.innerText =
|
|
1036
|
+
function fe(e, t) {
|
|
1037
|
+
t.value == t.oldValue && e.innerHTML.length || (e.innerText = ln(e, t));
|
|
980
1038
|
}
|
|
981
|
-
function
|
|
982
|
-
var
|
|
1039
|
+
function ln(e, t) {
|
|
1040
|
+
var c, m;
|
|
983
1041
|
if (!t.value)
|
|
984
|
-
return ((
|
|
1042
|
+
return ((c = e.attributes.getNamedItem("placeholder")) == null ? void 0 : c.value) ?? "";
|
|
985
1043
|
let n = "";
|
|
986
1044
|
const i = t.value.replace(/ /g, "T").replace(/\.\d+Z$/, "Z"), s = e.attributes.getNamedItem("local") !== null ? i.replace(/Z$/, "") : i.replace(/(Z|\+00:00)?$/, "Z"), o = new Date(s);
|
|
987
1045
|
e.attributes.getNamedItem("display-utc") !== null && o.setMinutes(o.getMinutes() - o.getTimezoneOffset());
|
|
988
|
-
let r = (
|
|
1046
|
+
let r = (m = e.attributes.getNamedItem("format")) == null ? void 0 : m.value;
|
|
989
1047
|
if (!r && e.attributes.getNamedItem("relative-date") !== null) {
|
|
990
1048
|
const h = /* @__PURE__ */ new Date();
|
|
991
1049
|
h.getFullYear() == o.getFullYear() && h.getMonth() == o.getMonth() && h.getDate() == o.getDate() && (n = "at", r = "HH:mm");
|
|
992
1050
|
}
|
|
993
|
-
r || (r =
|
|
994
|
-
let l =
|
|
1051
|
+
r || (r = V.defaultDateTimeFormat);
|
|
1052
|
+
let l = Y(o, r);
|
|
995
1053
|
return n && (l = n + " " + l), l;
|
|
996
1054
|
}
|
|
997
|
-
const
|
|
998
|
-
beforeMount:
|
|
999
|
-
updated:
|
|
1000
|
-
unmounted:
|
|
1055
|
+
const rn = {
|
|
1056
|
+
beforeMount: pe,
|
|
1057
|
+
updated: pe,
|
|
1058
|
+
unmounted: an
|
|
1001
1059
|
};
|
|
1002
|
-
function
|
|
1060
|
+
function pe(e, t) {
|
|
1003
1061
|
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");
|
|
1004
1062
|
}
|
|
1005
|
-
function
|
|
1063
|
+
function an(e) {
|
|
1006
1064
|
e.tagName === "LABEL" && (e.classList.remove("disabled"), e = e.querySelector("input")), e.removeAttribute("disabled");
|
|
1007
1065
|
}
|
|
1008
|
-
const
|
|
1009
|
-
beforeMount:
|
|
1010
|
-
updated:
|
|
1011
|
-
unmounted:
|
|
1012
|
-
},
|
|
1013
|
-
function
|
|
1014
|
-
|
|
1066
|
+
const cn = {
|
|
1067
|
+
beforeMount: me,
|
|
1068
|
+
updated: me,
|
|
1069
|
+
unmounted: Ae
|
|
1070
|
+
}, B = Symbol("HasAutoFocused"), ie = [];
|
|
1071
|
+
function dn() {
|
|
1072
|
+
ie.forEach(De);
|
|
1015
1073
|
}
|
|
1016
|
-
setInterval(
|
|
1017
|
-
function
|
|
1074
|
+
setInterval(dn, 1e3);
|
|
1075
|
+
function me(e, t) {
|
|
1018
1076
|
var r;
|
|
1019
1077
|
if (t.value == t.oldValue)
|
|
1020
1078
|
return;
|
|
1021
1079
|
if (!t.value)
|
|
1022
|
-
return
|
|
1080
|
+
return Ae(e);
|
|
1023
1081
|
const n = new Date(t.value), i = (r = e.attributes.getNamedItem("base-time")) == null ? void 0 : r.value, s = n.getTime() - (i ? new Date(i).getTime() - t.value * 1e3 : 0), o = e.getAttribute("no-seconds") === null;
|
|
1024
|
-
e[
|
|
1082
|
+
e[B] || ie.push(e), e[B] = {
|
|
1025
1083
|
startTs: s,
|
|
1026
1084
|
includeSeconds: o
|
|
1027
|
-
},
|
|
1085
|
+
}, De(e);
|
|
1028
1086
|
}
|
|
1029
|
-
function
|
|
1030
|
-
const t = e[
|
|
1031
|
-
e.innerText =
|
|
1087
|
+
function De(e) {
|
|
1088
|
+
const t = e[B], n = Math.round((Date.now() - t.startTs) / 1e3);
|
|
1089
|
+
e.innerText = un(n, t.includeSeconds);
|
|
1032
1090
|
}
|
|
1033
|
-
function
|
|
1034
|
-
e[
|
|
1091
|
+
function Ae(e) {
|
|
1092
|
+
e[B] && (Ge(ie, e), delete e[B]), e.innerText = "-";
|
|
1035
1093
|
}
|
|
1036
|
-
function
|
|
1094
|
+
function un(e, t) {
|
|
1037
1095
|
const n = [], i = Math.floor(e / 86400);
|
|
1038
1096
|
i && n.push(i + "d"), e -= i * 86400;
|
|
1039
1097
|
const s = Math.floor(e / 3600);
|
|
@@ -1041,31 +1099,31 @@ function on(e, t) {
|
|
|
1041
1099
|
const o = Math.floor(e / 60);
|
|
1042
1100
|
return (i || s || o) && n.push(o + "m"), t ? n.length || n.push("0m") : (e -= o * 60, n.push(e + "s")), n.join(" ");
|
|
1043
1101
|
}
|
|
1044
|
-
const
|
|
1102
|
+
const I = Symbol("InfiniteScrollHandler"), hn = {
|
|
1045
1103
|
mounted(e, t) {
|
|
1046
|
-
e[
|
|
1104
|
+
e[I] = new A(e, t.value);
|
|
1047
1105
|
},
|
|
1048
1106
|
updated(e, t) {
|
|
1049
1107
|
var n;
|
|
1050
|
-
(n = e[
|
|
1108
|
+
(n = e[I]) == null || n.uninstall(), e[I] = new A(e, t.value);
|
|
1051
1109
|
},
|
|
1052
1110
|
unmounted(e) {
|
|
1053
1111
|
var t;
|
|
1054
|
-
(t = e[
|
|
1112
|
+
(t = e[I]) == null || t.uninstall(), delete e[I];
|
|
1055
1113
|
}
|
|
1056
|
-
},
|
|
1057
|
-
beforeMount:
|
|
1058
|
-
updated:
|
|
1114
|
+
}, fn = {
|
|
1115
|
+
beforeMount: ve,
|
|
1116
|
+
updated: ve
|
|
1059
1117
|
};
|
|
1060
|
-
function
|
|
1118
|
+
function ve(e, t) {
|
|
1061
1119
|
e.tagName == "LABEL" && (e = e.querySelector("input")), t.value ? e.setAttribute("readonly", "readonly") : e.removeAttribute("readonly");
|
|
1062
1120
|
}
|
|
1063
|
-
const
|
|
1064
|
-
mounted:
|
|
1065
|
-
updated:
|
|
1066
|
-
unmounted:
|
|
1067
|
-
},
|
|
1068
|
-
function
|
|
1121
|
+
const pn = {
|
|
1122
|
+
mounted: ye,
|
|
1123
|
+
updated: ye,
|
|
1124
|
+
unmounted: $e
|
|
1125
|
+
}, $ = Symbol("TooltipState");
|
|
1126
|
+
function ye(e, t) {
|
|
1069
1127
|
var i;
|
|
1070
1128
|
let n = ((i = e.attributes.getNamedItem("tip")) == null ? void 0 : i.value) ?? t.value;
|
|
1071
1129
|
if (t.value || (n = null), n) {
|
|
@@ -1073,26 +1131,26 @@ function me(e, t) {
|
|
|
1073
1131
|
content: n,
|
|
1074
1132
|
html: e.getAttribute("html") !== null
|
|
1075
1133
|
};
|
|
1076
|
-
e[
|
|
1134
|
+
e[$] ? e[$].configure(s) : e[$] = new mn(e, s);
|
|
1077
1135
|
} else
|
|
1078
|
-
|
|
1136
|
+
$e(e);
|
|
1079
1137
|
}
|
|
1080
|
-
function
|
|
1138
|
+
function $e(e) {
|
|
1081
1139
|
var t;
|
|
1082
|
-
(t = e[
|
|
1140
|
+
(t = e[$]) == null || t.destroy(), delete e[$];
|
|
1083
1141
|
}
|
|
1084
|
-
class
|
|
1142
|
+
class mn {
|
|
1085
1143
|
constructor(t, n) {
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1144
|
+
g(this, "lastMoveEvt");
|
|
1145
|
+
g(this, "checkInterval");
|
|
1146
|
+
g(this, "shouldShow", !1);
|
|
1147
|
+
g(this, "tipEl");
|
|
1148
|
+
g(this, "titleEl");
|
|
1149
|
+
g(this, "contentEl");
|
|
1150
|
+
g(this, "mouseMoveBound", !1);
|
|
1151
|
+
g(this, "handleMouseMoveWithContext", this.handleMouseMove.bind(this));
|
|
1152
|
+
g(this, "handleTargetMouseEnterWithContext", this.handleTargetMouseEnter.bind(this));
|
|
1153
|
+
g(this, "handleTargetMouseLeaveWithContext", this.handleTargetMouseLeave.bind(this));
|
|
1096
1154
|
this.el = t, this.config = n, t.addEventListener("mouseenter", this.handleTargetMouseEnterWithContext), t.addEventListener("mouseleave", this.handleTargetMouseLeaveWithContext);
|
|
1097
1155
|
}
|
|
1098
1156
|
configure(t) {
|
|
@@ -1129,58 +1187,59 @@ class cn {
|
|
|
1129
1187
|
this.shouldShow = !1, this.removeTooltip(), this.el.removeEventListener("mouseenter", this.handleTargetMouseEnterWithContext), this.el.removeEventListener("mouseleave", this.handleTargetMouseLeaveWithContext);
|
|
1130
1188
|
}
|
|
1131
1189
|
}
|
|
1132
|
-
function
|
|
1133
|
-
e.directive("autofocus",
|
|
1190
|
+
function vn(e) {
|
|
1191
|
+
e.directive("autofocus", Jt), e.directive("confirm-button", en), e.directive("date-input", nn), e.directive("datetime", on), e.directive("disabled", rn), e.directive("duration", cn), e.directive("infinite-scroll", hn), e.directive("readonly", fn), e.directive("tooltip", pn);
|
|
1134
1192
|
}
|
|
1135
|
-
function
|
|
1136
|
-
|
|
1193
|
+
function Pn(e) {
|
|
1194
|
+
vn(e);
|
|
1137
1195
|
}
|
|
1138
1196
|
export {
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1197
|
+
bn as OverlayContainer,
|
|
1198
|
+
P as UserError,
|
|
1199
|
+
wn as VfAjaxSelect,
|
|
1200
|
+
q as VfAlertModal,
|
|
1201
|
+
_n as VfEzSmartSelect,
|
|
1202
|
+
vt as VfModal,
|
|
1203
|
+
Vt as VfSmartSelect,
|
|
1204
|
+
Nn as cloneProp,
|
|
1205
|
+
Cn as configureVf,
|
|
1206
|
+
Bn as createFilters,
|
|
1207
|
+
Se as createOverlayInjection,
|
|
1208
|
+
kt as desnakeCase,
|
|
1209
|
+
at as dismissOverlayInjectionById,
|
|
1210
|
+
kn as dismissOverlayInjectionByInstance,
|
|
1211
|
+
xe as dismissOverlayInjectionByInternalInstance,
|
|
1212
|
+
rt as dismissOverlayInjectionByVnode,
|
|
1213
|
+
Xn as escapeHtml,
|
|
1214
|
+
ct as formatError,
|
|
1215
|
+
Yt as formatNumber,
|
|
1216
|
+
St as formatPhone,
|
|
1217
|
+
xt as formatUSCurrency,
|
|
1218
|
+
In as handleError,
|
|
1219
|
+
Mn as handleErrorAndAlert,
|
|
1220
|
+
Un as installApiClientInterceptors,
|
|
1221
|
+
Pn as installVf,
|
|
1222
|
+
Zt as isApiError,
|
|
1223
|
+
Hn as maskComponent,
|
|
1224
|
+
dt as maskEl,
|
|
1225
|
+
ut as maskForm,
|
|
1226
|
+
An as nl2br,
|
|
1227
|
+
Kn as nullifyEmptyInputs,
|
|
1228
|
+
ee as presentOverlay,
|
|
1229
|
+
Le as removeOverlayInjection,
|
|
1230
|
+
Vn as replaceElement,
|
|
1231
|
+
le as showAlert,
|
|
1232
|
+
Sn as showConfirm,
|
|
1233
|
+
xn as showConfirmDestroy,
|
|
1234
|
+
Fn as showContextMenu,
|
|
1235
|
+
Ln as showWait,
|
|
1236
|
+
Xt as sleep,
|
|
1237
|
+
Rn as sleepSecs,
|
|
1238
|
+
te as toError,
|
|
1239
|
+
Dn as unmaskComponent,
|
|
1240
|
+
Ce as unmaskEl,
|
|
1241
|
+
Me as unmaskForm,
|
|
1242
|
+
Wn as useInfiniteScroll,
|
|
1243
|
+
jn as useResizeWatcher,
|
|
1244
|
+
$n as uuid
|
|
1186
1245
|
};
|