@signal24/vue-foundation 4.3.7 → 4.5.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/src/helpers/openapi.d.ts +10 -0
- package/dist/vue-foundation.css +1 -1
- package/dist/vue-foundation.es.js +533 -449
- 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/src/helpers/openapi.ts +38 -0
- package/dist/src/components/modal-container.d.ts +0 -44
- package/src/components/modal-container.ts +0 -147
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var m = (e, t, n) => (
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { debounce as
|
|
6
|
-
import { escapeHtml as
|
|
7
|
-
import { escapeHtml as
|
|
8
|
-
import { format as
|
|
9
|
-
const
|
|
1
|
+
var Ve = Object.defineProperty;
|
|
2
|
+
var Fe = (e, t, n) => t in e ? Ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var m = (e, t, n) => (Fe(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
+
import { defineComponent as x, defineProps as Re, defineEmits as Ne, ref as w, computed as N, openBlock as u, createElementBlock as f, createElementVNode as k, toDisplayString as H, withDirectives as K, createCommentVNode as b, Fragment as U, renderList as G, vModelSelect as Ke, getCurrentInstance as Q, onMounted as B, normalizeClass as T, normalizeStyle as Ue, withModifiers as Ee, renderSlot as R, reactive as je, h as j, Teleport as We, markRaw as Pe, onBeforeUnmount as J, resolveDirective as Oe, createBlock as be, createSlots as qe, withCtx as z, createTextVNode as se, vModelText as ze, watch as oe, onActivated as Te, onDeactivated as we } from "vue";
|
|
5
|
+
import { debounce as Xe, isEqual as ke, upperFirst as Ye, startCase as Ze, cloneDeep as Ge, remove as Qe } from "lodash";
|
|
6
|
+
import { escapeHtml as Je } from "@vue/shared";
|
|
7
|
+
import { escapeHtml as Zn } from "@vue/shared";
|
|
8
|
+
import { format as Y } from "date-fns";
|
|
9
|
+
const et = x({
|
|
10
10
|
setup() {
|
|
11
|
-
const e =
|
|
12
|
-
|
|
13
|
-
const t =
|
|
11
|
+
const e = Re();
|
|
12
|
+
Ne(["update:modelValue"]);
|
|
13
|
+
const t = w(null), n = N(() => t.value ? t.value.map((o) => e.preprocesor ? e.preprocesor(o) : o[e.displayKey ?? ""]) : null), i = w(e.modelValue ?? null);
|
|
14
14
|
return { props: e, options: t, renderOptions: n, selectedItem: i };
|
|
15
15
|
},
|
|
16
16
|
watch: {
|
|
@@ -32,190 +32,250 @@ const Ze = D({
|
|
|
32
32
|
this.options = await this.props.loadFn();
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
}),
|
|
35
|
+
}), Se = (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
|
+
}, tt = {
|
|
41
41
|
key: 0,
|
|
42
42
|
disabled: ""
|
|
43
|
-
},
|
|
43
|
+
}, nt = {
|
|
44
44
|
key: 0,
|
|
45
45
|
value: null
|
|
46
|
-
},
|
|
47
|
-
function
|
|
48
|
-
return e.renderOptions ?
|
|
46
|
+
}, it = ["value"];
|
|
47
|
+
function st(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", nt, H(e.props.nullText), 1)) : b("", !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, it);
|
|
59
59
|
}), 128))
|
|
60
60
|
], 512)), [
|
|
61
|
-
[
|
|
62
|
-
]) : (
|
|
63
|
-
|
|
61
|
+
[Ke, e.selectedItem]
|
|
62
|
+
]) : (u(), f("select", tt, [
|
|
63
|
+
k("option", null, H(e.props.loadingText || "Loading..."), 1)
|
|
64
64
|
]));
|
|
65
65
|
}
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
const kn = /* @__PURE__ */ Se(et, [["render", st]]), ot = ["onClick"], lt = /* @__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 = w({ visibility: "hidden", top: "0", left: "0" }), s = w([]), o = Q();
|
|
74
|
+
B(r);
|
|
75
|
+
function r() {
|
|
76
|
+
const v = o.vnode.el, { styles: h, classes: a } = l(v, n);
|
|
77
|
+
i.value = h, s.value = a;
|
|
78
|
+
}
|
|
79
|
+
function l(v, h) {
|
|
80
|
+
const a = t.anchor instanceof HTMLElement ? {} : t.anchor, p = h.getBoundingClientRect(), d = v.getBoundingClientRect();
|
|
81
|
+
a.matchWidth && (d.width = p.width), a.matchHeight && (d.height = p.height);
|
|
82
|
+
const g = 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, g.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, g.push(L ? "anchored-top" : "anchored-bottom");
|
|
89
|
+
}
|
|
90
|
+
if (a.x === "center")
|
|
91
|
+
S = p.left + p.width / 2 - d.width / 2, g.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, g.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: g
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
function c() {
|
|
107
|
+
window.removeEventListener("click", c), ct(t.overlayId);
|
|
108
|
+
}
|
|
109
|
+
return B(() => {
|
|
110
|
+
setTimeout(() => {
|
|
111
|
+
window.addEventListener("click", c);
|
|
112
|
+
}, 10);
|
|
113
|
+
}), (v, h) => (u(), f("div", {
|
|
114
|
+
class: T(["vf-overlay-anchor", s.value]),
|
|
115
|
+
style: Ue(i.value),
|
|
116
|
+
onClick: Ee(c, ["stop"])
|
|
117
|
+
}, [
|
|
118
|
+
R(v.$slots, "default")
|
|
119
|
+
], 14, ot));
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
let rt = 0;
|
|
123
|
+
const O = je([]), Sn = x({
|
|
69
124
|
setup() {
|
|
70
|
-
return () =>
|
|
71
|
-
|
|
125
|
+
return () => j("div", [
|
|
126
|
+
G(O, (e) => j(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 xe(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(++rt), o = Pe(e), r = j(o, t), l = n != null && n.anchor ? j(lt, { 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);
|
|
89
|
-
}
|
|
90
|
-
function yn(e) {
|
|
91
|
-
ke(e.$);
|
|
143
|
+
function xn(e) {
|
|
144
|
+
Le(e.$);
|
|
92
145
|
}
|
|
93
|
-
function
|
|
146
|
+
function Le(e) {
|
|
94
147
|
let t = e;
|
|
95
|
-
for (; t && !
|
|
148
|
+
for (; t && !at(t.vnode); )
|
|
96
149
|
t = t.parent;
|
|
97
150
|
}
|
|
98
|
-
function
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
151
|
+
function at(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 ct(e) {
|
|
156
|
+
const t = O.findIndex((n) => n.id === e);
|
|
157
|
+
return t >= 0 ? (O[t].props.callback(), !0) : !1;
|
|
158
|
+
}
|
|
159
|
+
function Ce(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
|
+
Ce(s), i(l);
|
|
108
168
|
} };
|
|
109
|
-
|
|
169
|
+
s = xe(e, r, n);
|
|
110
170
|
});
|
|
111
171
|
}
|
|
112
|
-
function
|
|
172
|
+
function W(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, W(e, t));
|
|
117
177
|
}
|
|
118
|
-
async function
|
|
119
|
-
return await
|
|
120
|
-
...
|
|
178
|
+
async function Ln(e, t) {
|
|
179
|
+
return await ee(q, {
|
|
180
|
+
...W(e, t),
|
|
121
181
|
shouldConfirm: !0
|
|
122
182
|
}) === !0;
|
|
123
183
|
}
|
|
124
|
-
async function
|
|
125
|
-
return await
|
|
126
|
-
...
|
|
184
|
+
async function Cn(e, t) {
|
|
185
|
+
return await ee(q, {
|
|
186
|
+
...W(e, t),
|
|
127
187
|
shouldConfirm: !0,
|
|
128
188
|
classes: ["destructive"]
|
|
129
189
|
}) === !0;
|
|
130
190
|
}
|
|
131
|
-
function
|
|
132
|
-
const n =
|
|
133
|
-
...
|
|
191
|
+
function Mn(e, t) {
|
|
192
|
+
const n = xe(q, {
|
|
193
|
+
...W(e, t),
|
|
134
194
|
isBare: !0,
|
|
135
195
|
classes: ["wait"],
|
|
136
196
|
callback: () => {
|
|
137
197
|
}
|
|
138
198
|
});
|
|
139
|
-
return () =>
|
|
199
|
+
return () => Ce(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 In(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 dt(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 Hn(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 Dn(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 An(e, t) {
|
|
174
234
|
const n = e.$.vnode.el, i = n.closest(".vf-modal");
|
|
175
|
-
return
|
|
235
|
+
return ut(i ?? n, t);
|
|
176
236
|
}
|
|
177
|
-
function
|
|
237
|
+
function $n(e) {
|
|
178
238
|
const t = e.$.vnode.el, n = t.closest(".vf-modal");
|
|
179
239
|
return Me(n ?? t);
|
|
180
240
|
}
|
|
181
|
-
function
|
|
182
|
-
if (!e[
|
|
241
|
+
function ut(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 ?? "", () => Me(e);
|
|
187
247
|
}
|
|
188
248
|
function Me(e) {
|
|
189
|
-
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 ht(e, t, n) {
|
|
253
|
+
const i = e instanceof Element ? e : He(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
|
+
}, () => Ie(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 Ie(e) {
|
|
265
|
+
const t = e instanceof Element ? e : He(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 He(e) {
|
|
209
269
|
const t = e.$.vnode.el;
|
|
210
270
|
return t.tagName === "FORM" ? t : t.querySelector("form");
|
|
211
271
|
}
|
|
212
|
-
const
|
|
272
|
+
const ft = ["id"], pt = {
|
|
213
273
|
key: 0,
|
|
214
274
|
class: "vf-modal-header"
|
|
215
|
-
},
|
|
275
|
+
}, mt = { class: "vf-modal-content" }, vt = {
|
|
216
276
|
key: 1,
|
|
217
277
|
class: "vf-modal-footer"
|
|
218
|
-
},
|
|
278
|
+
}, yt = /* @__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 =
|
|
289
|
+
const n = e, i = Q();
|
|
230
290
|
t({ mask: v, unmask: h });
|
|
231
|
-
const s =
|
|
232
|
-
|
|
233
|
-
var
|
|
234
|
-
document.body.classList.add("vf-modal-open"), n.closeOnMaskClick && (window.addEventListener("keydown", l), (
|
|
235
|
-
}),
|
|
291
|
+
const s = w(), o = w();
|
|
292
|
+
B(() => {
|
|
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
|
+
Le(i);
|
|
249
309
|
}
|
|
250
310
|
function v() {
|
|
251
|
-
|
|
311
|
+
ht(o.value);
|
|
252
312
|
}
|
|
253
313
|
function h() {
|
|
254
|
-
|
|
314
|
+
Ie(o.value);
|
|
255
315
|
}
|
|
256
|
-
return (
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
316
|
+
return (a, p) => (u(), f("div", {
|
|
317
|
+
id: a.id,
|
|
318
|
+
class: T(["vf-overlay vf-modal-wrap", n.class]),
|
|
319
|
+
ref_key: "overlay",
|
|
320
|
+
ref: s
|
|
321
|
+
}, [
|
|
322
|
+
k("form", {
|
|
323
|
+
action: ".",
|
|
324
|
+
class: T(["vf-modal", { scrolls: a.scrolls }]),
|
|
325
|
+
onSubmit: p[0] || (p[0] = Ee((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", pt, [
|
|
330
|
+
R(a.$slots, "header"),
|
|
331
|
+
n.closeX ? (u(), f("i", {
|
|
332
|
+
key: 0,
|
|
333
|
+
class: "close",
|
|
334
|
+
onClick: c
|
|
335
|
+
})) : b("", !0)
|
|
336
|
+
])) : b("", !0),
|
|
337
|
+
k("div", mt, [
|
|
338
|
+
R(a.$slots, "default")
|
|
339
|
+
]),
|
|
340
|
+
a.$slots.footer ? (u(), f("div", vt, [
|
|
341
|
+
R(a.$slots, "footer")
|
|
342
|
+
])) : b("", !0)
|
|
343
|
+
], 34)
|
|
344
|
+
], 10, ft));
|
|
287
345
|
}
|
|
288
346
|
});
|
|
289
|
-
const
|
|
347
|
+
const gt = ["innerHtml"], Et = ["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 ? dt(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 = Oe("autofocus");
|
|
362
|
+
return u(), be(yt, {
|
|
363
|
+
class: T(["vf-alert", i.classes])
|
|
364
|
+
}, qe({
|
|
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, gt)) : (u(), f("div", {
|
|
313
371
|
key: 1,
|
|
314
372
|
innerText: n.value
|
|
315
|
-
}, null, 8,
|
|
373
|
+
}, null, 8, Et))
|
|
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 Ot = new Uint8Array(16);
|
|
418
|
+
function bt() {
|
|
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(Ot);
|
|
364
422
|
}
|
|
365
|
-
const
|
|
423
|
+
const y = [];
|
|
366
424
|
for (let e = 0; e < 256; ++e)
|
|
367
|
-
|
|
368
|
-
function
|
|
369
|
-
return (
|
|
425
|
+
y.push((e + 256).toString(16).slice(1));
|
|
426
|
+
function Tt(e, t = 0) {
|
|
427
|
+
return (y[e[t + 0]] + y[e[t + 1]] + y[e[t + 2]] + y[e[t + 3]] + "-" + y[e[t + 4]] + y[e[t + 5]] + "-" + y[e[t + 6]] + y[e[t + 7]] + "-" + y[e[t + 8]] + y[e[t + 9]] + "-" + y[e[t + 10]] + y[e[t + 11]] + y[e[t + 12]] + y[e[t + 13]] + y[e[t + 14]] + y[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 kt(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 || bt)();
|
|
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 Bn(e) {
|
|
388
446
|
return e.replace(/\n/g, "<br>");
|
|
389
447
|
}
|
|
390
|
-
function
|
|
448
|
+
function St(e) {
|
|
391
449
|
return e.replace(/_/g, " ");
|
|
392
450
|
}
|
|
393
|
-
function
|
|
451
|
+
function xt(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 Lt(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 kt();
|
|
402
460
|
}
|
|
403
|
-
const
|
|
461
|
+
const C = Symbol("null"), ae = Symbol("create"), Ct = "`1234567890-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM", Mt = {
|
|
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
540
|
return this.searchFields ? this.searchFields.forEach((v) => {
|
|
483
541
|
e[v] && r.push(String(e[v]).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 = Je(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", Xe(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 && Ct.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) => ke(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 It = ["placeholder"], Ht = {
|
|
671
729
|
key: 0,
|
|
672
730
|
ref: "optionsContainer",
|
|
673
731
|
class: "vf-smart-select-options"
|
|
674
|
-
},
|
|
732
|
+
}, Dt = {
|
|
675
733
|
key: 0,
|
|
676
734
|
class: "no-results"
|
|
677
|
-
},
|
|
735
|
+
}, At = ["onMousemove", "onMousedown"], $t = ["innerHTML"], Bt = ["innerHTML"], _t = {
|
|
678
736
|
key: 0,
|
|
679
737
|
class: "no-results"
|
|
680
738
|
};
|
|
681
|
-
function
|
|
682
|
-
const r =
|
|
683
|
-
return
|
|
684
|
-
class:
|
|
739
|
+
function Vt(e, t, n, i, s, o) {
|
|
740
|
+
const r = Oe("disabled");
|
|
741
|
+
return u(), f("div", {
|
|
742
|
+
class: T(["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: T({ 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, It), [
|
|
754
|
+
[ze, e.searchText],
|
|
697
755
|
[r, o.effectiveDisabled]
|
|
698
756
|
]),
|
|
699
|
-
e.shouldDisplayOptions ? (
|
|
700
|
-
e.isLoaded ? (
|
|
701
|
-
(
|
|
757
|
+
e.shouldDisplayOptions ? (u(), f("div", Ht, [
|
|
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: T(["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, $t),
|
|
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)) : (
|
|
721
|
-
], 512)) :
|
|
775
|
+
}, null, 8, Bt)) : b("", !0)
|
|
776
|
+
], 42, At))), 128)),
|
|
777
|
+
!o.effectiveOptions.length && e.searchText ? (u(), f("div", _t, H(o.effectiveNoResultsText), 1)) : b("", !0)
|
|
778
|
+
], 64)) : (u(), f("div", Dt, "Loading..."))
|
|
779
|
+
], 512)) : b("", !0)
|
|
722
780
|
], 2);
|
|
723
781
|
}
|
|
724
|
-
const
|
|
782
|
+
const Ft = /* @__PURE__ */ Se(Mt, [["render", Vt]]), Vn = /* @__PURE__ */ x({
|
|
725
783
|
__name: "ez-smart-select",
|
|
726
784
|
props: {
|
|
727
785
|
modelValue: {},
|
|
@@ -732,182 +790,206 @@ 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 = w(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) => ke(c, r))) == null ? void 0 : l.value) ?? null : null);
|
|
808
|
+
}), (r, l) => (u(), be(Ft, {
|
|
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 Rt(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 Nt(e) {
|
|
764
822
|
return e != null && String(e).length ? e : "-";
|
|
765
823
|
}
|
|
766
|
-
function
|
|
824
|
+
function Kt(e) {
|
|
767
825
|
return e || "-";
|
|
768
826
|
}
|
|
769
|
-
function
|
|
770
|
-
return e === null || typeof e == "string" && !/^\d+$/.test(e) ? e :
|
|
827
|
+
function Ut(e) {
|
|
828
|
+
return e === null || typeof e == "string" && !/^\d+$/.test(e) ? e : Zt(Number(e));
|
|
771
829
|
}
|
|
772
|
-
function
|
|
773
|
-
return e &&
|
|
830
|
+
function jt(e) {
|
|
831
|
+
return e && xt(e);
|
|
774
832
|
}
|
|
775
|
-
function
|
|
776
|
-
return e ?
|
|
833
|
+
function Wt(e) {
|
|
834
|
+
return e ? Ye(e) : null;
|
|
777
835
|
}
|
|
778
|
-
function
|
|
779
|
-
return e ?
|
|
836
|
+
function Pt(e) {
|
|
837
|
+
return e ? Ze(e) : null;
|
|
780
838
|
}
|
|
781
|
-
function
|
|
839
|
+
function qt(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 zt(e) {
|
|
843
|
+
return e ? St(e) : null;
|
|
844
|
+
}
|
|
845
|
+
function Xt(e) {
|
|
846
|
+
return Lt(e);
|
|
847
|
+
}
|
|
848
|
+
const ce = {
|
|
849
|
+
bytes: Rt,
|
|
850
|
+
dash: Nt,
|
|
851
|
+
dashZeros: Kt,
|
|
852
|
+
number: Ut,
|
|
853
|
+
phone: jt,
|
|
854
|
+
upperFirst: Wt,
|
|
855
|
+
startCase: Pt,
|
|
856
|
+
upperCase: qt,
|
|
857
|
+
desnake: zt,
|
|
858
|
+
usCurrency: Xt
|
|
859
|
+
}, Fn = (e) => ({
|
|
860
|
+
...ce,
|
|
861
|
+
...e(ce)
|
|
804
862
|
});
|
|
805
|
-
function
|
|
863
|
+
function Rn(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 Nn(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
879
|
const g = document.createElement("div");
|
|
822
|
-
g.classList.add("item"), g.style.userSelect = "none", g.innerText =
|
|
880
|
+
g.classList.add("item"), g.style.userSelect = "none", g.innerText = d.title, i.appendChild(g), d.class && g.classList.add(d.class), d.shouldConfirm ? g.addEventListener("click", () => p(g, d.handler)) : g.addEventListener("click", () => d.handler());
|
|
823
881
|
});
|
|
824
|
-
const o = window.innerWidth - e.clientX, r = window.innerHeight - e.clientY, l = i.offsetHeight,
|
|
882
|
+
const o = window.innerWidth - e.clientX, r = window.innerHeight - e.clientY, l = i.offsetHeight, c = i.offsetWidth, v = o < c ? e.clientX - c - 1 : e.clientX + 1, h = r < l ? e.clientY - l - 1 : e.clientY + 1;
|
|
825
883
|
i.style.left = v + "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 (
|
|
889
|
+
function p(d, g) {
|
|
890
|
+
if (d.classList.contains("pending-confirm"))
|
|
833
891
|
return g();
|
|
834
|
-
const
|
|
835
|
-
|
|
836
|
-
const
|
|
837
|
-
|
|
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 Yt = (e) => new Promise((t) => setTimeout(t, e)), Kn = (e) => Yt(e * 1e3);
|
|
901
|
+
function Zt(e) {
|
|
844
902
|
return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
845
903
|
}
|
|
846
|
-
function
|
|
847
|
-
return e != null ?
|
|
904
|
+
function Un(e, t) {
|
|
905
|
+
return e != null ? Ge(e) : t;
|
|
848
906
|
}
|
|
849
|
-
function
|
|
907
|
+
function jn(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 Gt(e) {
|
|
856
914
|
return e instanceof Error && "status" in e && "body" in e;
|
|
857
915
|
}
|
|
858
|
-
function
|
|
916
|
+
function Wn({ 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,
|
|
918
|
+
e.request.request = (o) => (o = Qt(o), t && (o = t(o)), new i((r, l, c) => {
|
|
861
919
|
const v = s(o);
|
|
862
|
-
|
|
863
|
-
if (
|
|
920
|
+
c(v.cancel), v.then(r).catch((h) => {
|
|
921
|
+
if (Gt(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
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
937
|
+
class de {
|
|
938
|
+
constructor(t) {
|
|
939
|
+
m(this, "validator", null);
|
|
940
|
+
m(this, "lastModifiedDate", null);
|
|
941
|
+
m(this, "size", 0);
|
|
942
|
+
m(this, "path", "");
|
|
943
|
+
m(this, "name", "");
|
|
944
|
+
m(this, "type", "");
|
|
945
|
+
m(this, "blob");
|
|
946
|
+
this.blob = t;
|
|
947
|
+
}
|
|
883
948
|
}
|
|
884
|
-
function
|
|
949
|
+
function Qt(e) {
|
|
950
|
+
if (!(typeof e.body == "object" && Object.values(e.body).some((s) => s instanceof de)))
|
|
951
|
+
return e;
|
|
952
|
+
const n = {}, i = {};
|
|
953
|
+
for (const [s, o] of Object.entries(e.body))
|
|
954
|
+
o instanceof de ? n[s] = o.blob : i[s] = o;
|
|
955
|
+
return n._payload = new Blob([JSON.stringify(i)], { type: "application/json" }), {
|
|
956
|
+
...e,
|
|
957
|
+
body: void 0,
|
|
958
|
+
formData: n
|
|
959
|
+
};
|
|
960
|
+
}
|
|
961
|
+
const ne = Symbol("HookState");
|
|
962
|
+
function Pn(e, t) {
|
|
963
|
+
const n = t ?? Q();
|
|
964
|
+
B(() => Jt(n, e), n), Te(() => en(n), n), we(() => ue(n), n), J(() => ue(n), n);
|
|
965
|
+
}
|
|
966
|
+
function Jt(e, t) {
|
|
885
967
|
const n = {};
|
|
886
|
-
if (t.elScrolledToBottom && (n.el = new
|
|
887
|
-
const i =
|
|
888
|
-
i ? n.ancestor = new
|
|
968
|
+
if (t.elScrolledToBottom && (n.el = new A(e.vnode.el, t.elScrolledToBottom)), t.ancestorScrolledToBottom) {
|
|
969
|
+
const i = De(e.vnode.el);
|
|
970
|
+
i ? n.ancestor = new A(i, t.ancestorScrolledToBottom) : console.warn("[VueFoundation] No scollable ancestor found for component:", e);
|
|
889
971
|
}
|
|
890
|
-
t.windowScrolledToBottom && (n.window = new
|
|
972
|
+
t.windowScrolledToBottom && (n.window = new A(window, t.windowScrolledToBottom)), e[ne] = n;
|
|
891
973
|
}
|
|
892
|
-
function
|
|
974
|
+
function en(e) {
|
|
893
975
|
var n, i, s;
|
|
894
|
-
const t = e[
|
|
976
|
+
const t = e[ne];
|
|
895
977
|
(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
978
|
}
|
|
897
|
-
function
|
|
979
|
+
function ue(e) {
|
|
898
980
|
var n, i, s;
|
|
899
|
-
const t = e[
|
|
981
|
+
const t = e[ne];
|
|
900
982
|
(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
983
|
}
|
|
902
|
-
const
|
|
903
|
-
function
|
|
984
|
+
const X = ["auto", "scroll"];
|
|
985
|
+
function De(e) {
|
|
904
986
|
const t = e.parentElement;
|
|
905
987
|
if (!t)
|
|
906
988
|
return null;
|
|
907
989
|
const n = window.getComputedStyle(t);
|
|
908
|
-
return
|
|
990
|
+
return X.includes(n.overflow) || X.includes(n.overflowX) || X.includes(n.overflowY) ? t : De(t);
|
|
909
991
|
}
|
|
910
|
-
class
|
|
992
|
+
class A {
|
|
911
993
|
constructor(t, n) {
|
|
912
994
|
m(this, "isTripped", !1);
|
|
913
995
|
m(this, "onScrollWithContext", this.onScroll.bind(this));
|
|
@@ -923,30 +1005,30 @@ class L {
|
|
|
923
1005
|
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
1006
|
}
|
|
925
1007
|
}
|
|
926
|
-
function
|
|
927
|
-
|
|
1008
|
+
function qn(e) {
|
|
1009
|
+
B(() => window.addEventListener("resize", e)), Te(() => window.addEventListener("resize", e)), we(() => window.removeEventListener("resize", e)), J(() => window.removeEventListener("resize", e));
|
|
928
1010
|
}
|
|
929
|
-
const
|
|
930
|
-
mounted:
|
|
931
|
-
updated:
|
|
932
|
-
},
|
|
933
|
-
function
|
|
934
|
-
if (t.value === void 0 && e[
|
|
1011
|
+
const tn = {
|
|
1012
|
+
mounted: fe,
|
|
1013
|
+
updated: fe
|
|
1014
|
+
}, he = Symbol("HasAutoFocused");
|
|
1015
|
+
function fe(e, t) {
|
|
1016
|
+
if (t.value === void 0 && e[he] || t.value !== void 0 && !t.value || t.oldValue !== void 0 && t.value == t.oldValue)
|
|
935
1017
|
return;
|
|
936
|
-
e[
|
|
1018
|
+
e[he] = !0;
|
|
937
1019
|
const n = ["BUTTON", "INPUT", "TEXTAREA", "SELECT"].indexOf(e.tagName) > -1 ? e : e.querySelectorAll("input")[0];
|
|
938
1020
|
setTimeout(() => n.focus(), 10);
|
|
939
1021
|
}
|
|
940
|
-
const
|
|
941
|
-
mounted:
|
|
942
|
-
},
|
|
943
|
-
function
|
|
1022
|
+
const nn = {
|
|
1023
|
+
mounted: sn
|
|
1024
|
+
}, M = Symbol("ConfirmState");
|
|
1025
|
+
function sn(e) {
|
|
944
1026
|
e.addEventListener("click", (t) => {
|
|
945
1027
|
const n = Date.now();
|
|
946
|
-
if (e[
|
|
947
|
-
if (n - e[
|
|
1028
|
+
if (e[M]) {
|
|
1029
|
+
if (n - e[M].initTime < 300)
|
|
948
1030
|
return;
|
|
949
|
-
e[
|
|
1031
|
+
e[M].resetHandler(), e.dispatchEvent(new Event("confirm"));
|
|
950
1032
|
return;
|
|
951
1033
|
}
|
|
952
1034
|
t.preventDefault(), t.stopImmediatePropagation();
|
|
@@ -954,34 +1036,34 @@ function Yt(e) {
|
|
|
954
1036
|
initTime: n,
|
|
955
1037
|
preconfirmHtml: e.innerHTML,
|
|
956
1038
|
resetHandler: () => {
|
|
957
|
-
e.innerHTML = i.preconfirmHtml, e.blur(), e.removeEventListener("mouseout", i.resetHandler), delete e[
|
|
1039
|
+
e.innerHTML = i.preconfirmHtml, e.blur(), e.removeEventListener("mouseout", i.resetHandler), delete e[M];
|
|
958
1040
|
}
|
|
959
1041
|
};
|
|
960
|
-
e[
|
|
1042
|
+
e[M] = i, e.innerHTML = "Confirm", e.addEventListener("mouseout", i.resetHandler);
|
|
961
1043
|
});
|
|
962
1044
|
}
|
|
963
|
-
const
|
|
964
|
-
beforeMount:
|
|
1045
|
+
const on = {
|
|
1046
|
+
beforeMount: ln
|
|
965
1047
|
};
|
|
966
|
-
function
|
|
1048
|
+
function ln(e) {
|
|
967
1049
|
e.addEventListener("blur", () => {
|
|
968
1050
|
let t = e.value;
|
|
969
|
-
/^\d{1,2}\/\d{1,2}$/.test(t) && (t += "/" +
|
|
1051
|
+
/^\d{1,2}\/\d{1,2}$/.test(t) && (t += "/" + Y(/* @__PURE__ */ new Date(), "yy"));
|
|
970
1052
|
const n = Date.parse(t);
|
|
971
|
-
isNaN(n) ? e.value = "" : e.value =
|
|
1053
|
+
isNaN(n) ? e.value = "" : e.value = Y(n, "MM/dd/yyyy"), e.dispatchEvent(new Event("input"));
|
|
972
1054
|
});
|
|
973
1055
|
}
|
|
974
|
-
const
|
|
975
|
-
beforeMount:
|
|
976
|
-
updated:
|
|
1056
|
+
const rn = {
|
|
1057
|
+
beforeMount: pe,
|
|
1058
|
+
updated: pe
|
|
977
1059
|
};
|
|
978
|
-
function
|
|
979
|
-
t.value == t.oldValue && e.innerHTML.length || (e.innerText =
|
|
1060
|
+
function pe(e, t) {
|
|
1061
|
+
t.value == t.oldValue && e.innerHTML.length || (e.innerText = an(e, t));
|
|
980
1062
|
}
|
|
981
|
-
function
|
|
982
|
-
var
|
|
1063
|
+
function an(e, t) {
|
|
1064
|
+
var c, v;
|
|
983
1065
|
if (!t.value)
|
|
984
|
-
return ((
|
|
1066
|
+
return ((c = e.attributes.getNamedItem("placeholder")) == null ? void 0 : c.value) ?? "";
|
|
985
1067
|
let n = "";
|
|
986
1068
|
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
1069
|
e.attributes.getNamedItem("display-utc") !== null && o.setMinutes(o.getMinutes() - o.getTimezoneOffset());
|
|
@@ -990,50 +1072,50 @@ function Jt(e, t) {
|
|
|
990
1072
|
const h = /* @__PURE__ */ new Date();
|
|
991
1073
|
h.getFullYear() == o.getFullYear() && h.getMonth() == o.getMonth() && h.getDate() == o.getDate() && (n = "at", r = "HH:mm");
|
|
992
1074
|
}
|
|
993
|
-
r || (r =
|
|
994
|
-
let l =
|
|
1075
|
+
r || (r = V.defaultDateTimeFormat);
|
|
1076
|
+
let l = Y(o, r);
|
|
995
1077
|
return n && (l = n + " " + l), l;
|
|
996
1078
|
}
|
|
997
|
-
const
|
|
998
|
-
beforeMount:
|
|
999
|
-
updated:
|
|
1000
|
-
unmounted:
|
|
1079
|
+
const cn = {
|
|
1080
|
+
beforeMount: me,
|
|
1081
|
+
updated: me,
|
|
1082
|
+
unmounted: dn
|
|
1001
1083
|
};
|
|
1002
|
-
function
|
|
1084
|
+
function me(e, t) {
|
|
1003
1085
|
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
1086
|
}
|
|
1005
|
-
function
|
|
1087
|
+
function dn(e) {
|
|
1006
1088
|
e.tagName === "LABEL" && (e.classList.remove("disabled"), e = e.querySelector("input")), e.removeAttribute("disabled");
|
|
1007
1089
|
}
|
|
1008
|
-
const
|
|
1009
|
-
beforeMount:
|
|
1010
|
-
updated:
|
|
1011
|
-
unmounted:
|
|
1012
|
-
},
|
|
1013
|
-
function
|
|
1014
|
-
|
|
1015
|
-
}
|
|
1016
|
-
setInterval(
|
|
1017
|
-
function
|
|
1090
|
+
const un = {
|
|
1091
|
+
beforeMount: ve,
|
|
1092
|
+
updated: ve,
|
|
1093
|
+
unmounted: $e
|
|
1094
|
+
}, _ = Symbol("HasAutoFocused"), ie = [];
|
|
1095
|
+
function hn() {
|
|
1096
|
+
ie.forEach(Ae);
|
|
1097
|
+
}
|
|
1098
|
+
setInterval(hn, 1e3);
|
|
1099
|
+
function ve(e, t) {
|
|
1018
1100
|
var r;
|
|
1019
1101
|
if (t.value == t.oldValue)
|
|
1020
1102
|
return;
|
|
1021
1103
|
if (!t.value)
|
|
1022
|
-
return
|
|
1104
|
+
return $e(e);
|
|
1023
1105
|
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[
|
|
1106
|
+
e[_] || ie.push(e), e[_] = {
|
|
1025
1107
|
startTs: s,
|
|
1026
1108
|
includeSeconds: o
|
|
1027
|
-
},
|
|
1109
|
+
}, Ae(e);
|
|
1028
1110
|
}
|
|
1029
|
-
function
|
|
1030
|
-
const t = e[
|
|
1031
|
-
e.innerText =
|
|
1111
|
+
function Ae(e) {
|
|
1112
|
+
const t = e[_], n = Math.round((Date.now() - t.startTs) / 1e3);
|
|
1113
|
+
e.innerText = fn(n, t.includeSeconds);
|
|
1032
1114
|
}
|
|
1033
|
-
function
|
|
1034
|
-
e[
|
|
1115
|
+
function $e(e) {
|
|
1116
|
+
e[_] && (Qe(ie, e), delete e[_]), e.innerText = "-";
|
|
1035
1117
|
}
|
|
1036
|
-
function
|
|
1118
|
+
function fn(e, t) {
|
|
1037
1119
|
const n = [], i = Math.floor(e / 86400);
|
|
1038
1120
|
i && n.push(i + "d"), e -= i * 86400;
|
|
1039
1121
|
const s = Math.floor(e / 3600);
|
|
@@ -1041,31 +1123,31 @@ function on(e, t) {
|
|
|
1041
1123
|
const o = Math.floor(e / 60);
|
|
1042
1124
|
return (i || s || o) && n.push(o + "m"), t ? n.length || n.push("0m") : (e -= o * 60, n.push(e + "s")), n.join(" ");
|
|
1043
1125
|
}
|
|
1044
|
-
const
|
|
1126
|
+
const I = Symbol("InfiniteScrollHandler"), pn = {
|
|
1045
1127
|
mounted(e, t) {
|
|
1046
|
-
e[
|
|
1128
|
+
e[I] = new A(e, t.value);
|
|
1047
1129
|
},
|
|
1048
1130
|
updated(e, t) {
|
|
1049
1131
|
var n;
|
|
1050
|
-
(n = e[
|
|
1132
|
+
(n = e[I]) == null || n.uninstall(), e[I] = new A(e, t.value);
|
|
1051
1133
|
},
|
|
1052
1134
|
unmounted(e) {
|
|
1053
1135
|
var t;
|
|
1054
|
-
(t = e[
|
|
1136
|
+
(t = e[I]) == null || t.uninstall(), delete e[I];
|
|
1055
1137
|
}
|
|
1056
|
-
},
|
|
1057
|
-
beforeMount:
|
|
1058
|
-
updated:
|
|
1138
|
+
}, mn = {
|
|
1139
|
+
beforeMount: ye,
|
|
1140
|
+
updated: ye
|
|
1059
1141
|
};
|
|
1060
|
-
function
|
|
1142
|
+
function ye(e, t) {
|
|
1061
1143
|
e.tagName == "LABEL" && (e = e.querySelector("input")), t.value ? e.setAttribute("readonly", "readonly") : e.removeAttribute("readonly");
|
|
1062
1144
|
}
|
|
1063
|
-
const
|
|
1064
|
-
mounted:
|
|
1065
|
-
updated:
|
|
1066
|
-
unmounted:
|
|
1067
|
-
},
|
|
1068
|
-
function
|
|
1145
|
+
const vn = {
|
|
1146
|
+
mounted: ge,
|
|
1147
|
+
updated: ge,
|
|
1148
|
+
unmounted: Be
|
|
1149
|
+
}, $ = Symbol("TooltipState");
|
|
1150
|
+
function ge(e, t) {
|
|
1069
1151
|
var i;
|
|
1070
1152
|
let n = ((i = e.attributes.getNamedItem("tip")) == null ? void 0 : i.value) ?? t.value;
|
|
1071
1153
|
if (t.value || (n = null), n) {
|
|
@@ -1073,15 +1155,15 @@ function me(e, t) {
|
|
|
1073
1155
|
content: n,
|
|
1074
1156
|
html: e.getAttribute("html") !== null
|
|
1075
1157
|
};
|
|
1076
|
-
e[
|
|
1158
|
+
e[$] ? e[$].configure(s) : e[$] = new yn(e, s);
|
|
1077
1159
|
} else
|
|
1078
|
-
|
|
1160
|
+
Be(e);
|
|
1079
1161
|
}
|
|
1080
|
-
function
|
|
1162
|
+
function Be(e) {
|
|
1081
1163
|
var t;
|
|
1082
|
-
(t = e[
|
|
1164
|
+
(t = e[$]) == null || t.destroy(), delete e[$];
|
|
1083
1165
|
}
|
|
1084
|
-
class
|
|
1166
|
+
class yn {
|
|
1085
1167
|
constructor(t, n) {
|
|
1086
1168
|
m(this, "lastMoveEvt");
|
|
1087
1169
|
m(this, "checkInterval");
|
|
@@ -1129,58 +1211,60 @@ class cn {
|
|
|
1129
1211
|
this.shouldShow = !1, this.removeTooltip(), this.el.removeEventListener("mouseenter", this.handleTargetMouseEnterWithContext), this.el.removeEventListener("mouseleave", this.handleTargetMouseLeaveWithContext);
|
|
1130
1212
|
}
|
|
1131
1213
|
}
|
|
1132
|
-
function
|
|
1133
|
-
e.directive("autofocus",
|
|
1214
|
+
function gn(e) {
|
|
1215
|
+
e.directive("autofocus", tn), e.directive("confirm-button", nn), e.directive("date-input", on), e.directive("datetime", rn), e.directive("disabled", cn), e.directive("duration", un), e.directive("infinite-scroll", pn), e.directive("readonly", mn), e.directive("tooltip", vn);
|
|
1134
1216
|
}
|
|
1135
|
-
function
|
|
1136
|
-
|
|
1217
|
+
function zn(e) {
|
|
1218
|
+
gn(e);
|
|
1137
1219
|
}
|
|
1138
1220
|
export {
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
In as
|
|
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
|
-
|
|
1221
|
+
de as FileUploadRequest,
|
|
1222
|
+
Sn as OverlayContainer,
|
|
1223
|
+
P as UserError,
|
|
1224
|
+
kn as VfAjaxSelect,
|
|
1225
|
+
q as VfAlertModal,
|
|
1226
|
+
Vn as VfEzSmartSelect,
|
|
1227
|
+
yt as VfModal,
|
|
1228
|
+
Ft as VfSmartSelect,
|
|
1229
|
+
Un as cloneProp,
|
|
1230
|
+
In as configureVf,
|
|
1231
|
+
Fn as createFilters,
|
|
1232
|
+
xe as createOverlayInjection,
|
|
1233
|
+
St as desnakeCase,
|
|
1234
|
+
ct as dismissOverlayInjectionById,
|
|
1235
|
+
xn as dismissOverlayInjectionByInstance,
|
|
1236
|
+
Le as dismissOverlayInjectionByInternalInstance,
|
|
1237
|
+
at as dismissOverlayInjectionByVnode,
|
|
1238
|
+
Zn as escapeHtml,
|
|
1239
|
+
dt as formatError,
|
|
1240
|
+
Zt as formatNumber,
|
|
1241
|
+
xt as formatPhone,
|
|
1242
|
+
Lt as formatUSCurrency,
|
|
1243
|
+
Dn as handleError,
|
|
1244
|
+
Hn as handleErrorAndAlert,
|
|
1245
|
+
Wn as installApiClientInterceptors,
|
|
1246
|
+
zn as installVf,
|
|
1247
|
+
Gt as isApiError,
|
|
1248
|
+
An as maskComponent,
|
|
1249
|
+
ut as maskEl,
|
|
1250
|
+
ht as maskForm,
|
|
1251
|
+
Bn as nl2br,
|
|
1252
|
+
jn as nullifyEmptyInputs,
|
|
1253
|
+
ee as presentOverlay,
|
|
1254
|
+
Ce as removeOverlayInjection,
|
|
1255
|
+
Rn as replaceElement,
|
|
1256
|
+
le as showAlert,
|
|
1257
|
+
Ln as showConfirm,
|
|
1258
|
+
Cn as showConfirmDestroy,
|
|
1259
|
+
Nn as showContextMenu,
|
|
1260
|
+
Mn as showWait,
|
|
1261
|
+
Yt as sleep,
|
|
1262
|
+
Kn as sleepSecs,
|
|
1263
|
+
te as toError,
|
|
1264
|
+
$n as unmaskComponent,
|
|
1181
1265
|
Me as unmaskEl,
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1266
|
+
Ie as unmaskForm,
|
|
1267
|
+
Pn as useInfiniteScroll,
|
|
1268
|
+
qn as useResizeWatcher,
|
|
1269
|
+
_n as uuid
|
|
1186
1270
|
};
|