@vc-shell/framework 2.10.2-pr404.87f9bf0 → 2.10.2-pr404.cb3641f
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/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-CUT-TFQQ.js → VcScheduler.vue_vue_type_script_setup_true_lang-yvqn_QC4.js} +153 -158
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-yvqn_QC4.js.map +1 -0
- package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang-D1lnJqUU.js → VcScheduler.vue_vue_type_style_index_0_lang-Blgtv09r.js} +597 -589
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-Blgtv09r.js.map +1 -0
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-Cy5iV5cs.js → dashboard-feed-row.vue_vue_type_script_setup_true_lang-BZwzwSh_.js} +1 -1
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-Cy5iV5cs.js.map → dashboard-feed-row.vue_vue_type_script_setup_true_lang-BZwzwSh_.js.map} +1 -1
- package/dist/core/utilities/thumbnail/index.d.ts +13 -0
- package/dist/core/utilities/thumbnail/index.d.ts.map +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/framework.js +266 -265
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellImage.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/cells/CellImage.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/index.js +2 -2
- package/package.json +4 -4
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-CUT-TFQQ.js.map +0 -1
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-D1lnJqUU.js.map +0 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/thumbnails.d.ts +0 -8
- package/dist/ui/components/organisms/vc-gallery/_internal/thumbnails.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mergeProps as ae, inject as X, useId as tn, computed as
|
|
1
|
+
import { mergeProps as ae, inject as X, useId as tn, computed as $, ref as S, onBeforeUnmount as it, reactive as Qe, provide as Ot, getCurrentScope as nn, onScopeDispose as an, getCurrentInstance as je, onErrorCaptured as ln, nextTick as Ee, defineComponent as V, watch as Y, unref as r, openBlock as f, createElementBlock as h, normalizeClass as G, createBlock as D, createCommentVNode as w, renderSlot as B, createElementVNode as C, toDisplayString as M, Fragment as Ce, renderList as rt, normalizeStyle as Ve, resolveDynamicComponent as st, withCtx as L, withKeys as _, withModifiers as J, createVNode as R, shallowReactive as qe, watchEffect as nt, markRaw as at, createSlots as se, createTextVNode as ee, Transition as Pe, withDirectives as ut, vModelText as on, useAttrs as wt, vModelDynamic as rn, onMounted as He, onUnmounted as Lt, Teleport as sn, normalizeProps as Ne, guardReactiveProps as Ae } from "vue";
|
|
2
2
|
import { c as pe, ak as un, R as cn, z as dn, w as fn, s as vn, I as gn, v as mn, t as pn, B as Ct, d as bn, i as yn, _ as W, T as Tt, a as Bt, Z as hn, C as In, u as kn, b as Sn } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-TiaFg1wQ.js";
|
|
3
3
|
import { defineRule as Te, Field as $n } from "vee-validate";
|
|
4
4
|
import { a as ht } from "./vendor-vee-validate-rules-4oWUZPpG.js";
|
|
@@ -14,8 +14,8 @@ import { C as Nn, u as An } from "./vendor-vue-currency-input-CckB4kjx.js";
|
|
|
14
14
|
import { f as Dn, s as Vn, o as Pn } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
|
|
15
15
|
import { v as zn } from "./vendor-vueuse-components-BTQXlUpM.js";
|
|
16
16
|
import { p as Mt } from "./vendor-dompurify-DpIUMBYC.js";
|
|
17
|
-
import { S as $e, h as Fn, T as
|
|
18
|
-
import { t as
|
|
17
|
+
import { S as $e, h as Fn, T as Un } from "./vendor-date-fns-C-55OMpS.js";
|
|
18
|
+
import { t as Kn } from "./vendor-truncate-html-ChA1T5zy.js";
|
|
19
19
|
const Oe = Bn({
|
|
20
20
|
legacy: !1,
|
|
21
21
|
globalInjection: !0,
|
|
@@ -40,12 +40,12 @@ class ue extends Error {
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
class
|
|
43
|
+
class zi extends ue {
|
|
44
44
|
constructor(t, n) {
|
|
45
45
|
super(t, "VALIDATION_ERROR", n), this.name = "ValidationError";
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
class
|
|
48
|
+
class Fi extends ue {
|
|
49
49
|
constructor(t, n) {
|
|
50
50
|
super(t, "SERVICE_ERROR", n), this.name = "ServiceError";
|
|
51
51
|
}
|
|
@@ -58,7 +58,7 @@ class qn extends ue {
|
|
|
58
58
|
}), this.name = "InjectionError";
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
class
|
|
61
|
+
class Ui extends ue {
|
|
62
62
|
constructor(t, n, a) {
|
|
63
63
|
super(`Failed to register '${t}': ${n}`, "REGISTRATION_ERROR", {
|
|
64
64
|
componentName: t,
|
|
@@ -74,7 +74,7 @@ class Ki extends ue {
|
|
|
74
74
|
}), this.name = "BladeError";
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
class
|
|
77
|
+
class qi extends ue {
|
|
78
78
|
constructor(t, n, a) {
|
|
79
79
|
super(`Failed to load module '${t}': ${n}`, "MODULE_LOAD_ERROR", {
|
|
80
80
|
moduleId: t,
|
|
@@ -85,7 +85,7 @@ class Ui extends ue {
|
|
|
85
85
|
function Wn(e) {
|
|
86
86
|
return e instanceof ue;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Wi(e, t = "UNKNOWN_ERROR") {
|
|
89
89
|
return Wn(e) ? e : e instanceof Error ? new ue(e.message, t, {
|
|
90
90
|
originalError: e.name,
|
|
91
91
|
stack: e.stack
|
|
@@ -101,26 +101,26 @@ class Ie extends Error {
|
|
|
101
101
|
function jn(e) {
|
|
102
102
|
return e instanceof Error && typeof e.status == "number" && typeof e.response == "string";
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Ue(e) {
|
|
105
105
|
if (e instanceof Ie)
|
|
106
106
|
return e;
|
|
107
107
|
if (jn(e)) {
|
|
108
108
|
const { status: t, response: n } = e;
|
|
109
109
|
try {
|
|
110
|
-
return
|
|
110
|
+
return Ue(JSON.parse(n));
|
|
111
111
|
} catch {
|
|
112
112
|
const a = `${t}: ${e.message || "Error"}`;
|
|
113
113
|
return new Ie(a, n || e.message, e);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
if (e instanceof Error && "response" in e && e.response)
|
|
117
|
-
return
|
|
117
|
+
return Ue(e.response);
|
|
118
118
|
if (e instanceof Error)
|
|
119
119
|
return new Ie(e.message, e.stack || String(e), e);
|
|
120
120
|
if (typeof e == "string")
|
|
121
121
|
try {
|
|
122
122
|
const t = JSON.parse(e);
|
|
123
|
-
return
|
|
123
|
+
return Ue(t);
|
|
124
124
|
} catch {
|
|
125
125
|
return new Ie(e, e, e);
|
|
126
126
|
}
|
|
@@ -201,7 +201,7 @@ function Xn(e, t) {
|
|
|
201
201
|
const n = At(e);
|
|
202
202
|
if (!n) return "";
|
|
203
203
|
const a = t ? Nt(t) : void 0;
|
|
204
|
-
return
|
|
204
|
+
return Un(n, { addSuffix: !0, locale: a });
|
|
205
205
|
}
|
|
206
206
|
function Zn(e, t, n) {
|
|
207
207
|
const a = At(e);
|
|
@@ -239,10 +239,14 @@ function ta(e, t) {
|
|
|
239
239
|
const l = n + 1 + o, s = e.slice(0, l), u = e.slice(l);
|
|
240
240
|
return `${s}_${t}${u}`;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function na(e) {
|
|
243
|
+
const t = e?.relativeUrl;
|
|
244
|
+
return typeof t == "string" && /^[a-z][a-z\d+.-]*:/i.test(t);
|
|
245
|
+
}
|
|
246
|
+
function ji(e) {
|
|
243
247
|
return e <= 64 ? "64x64" : e <= 128 ? "128x128" : e <= 168 ? "168x168" : e <= 216 ? "216x216" : e <= 348 ? "348x348" : "lg";
|
|
244
248
|
}
|
|
245
|
-
function
|
|
249
|
+
function aa(e) {
|
|
246
250
|
let t = null;
|
|
247
251
|
return {
|
|
248
252
|
register(n) {
|
|
@@ -256,7 +260,7 @@ function na(e) {
|
|
|
256
260
|
}
|
|
257
261
|
};
|
|
258
262
|
}
|
|
259
|
-
function
|
|
263
|
+
function Hi() {
|
|
260
264
|
const e = /* @__PURE__ */ new Map();
|
|
261
265
|
return {
|
|
262
266
|
register(t, n) {
|
|
@@ -289,7 +293,7 @@ const ct = () => {
|
|
|
289
293
|
signOut: e.signOut
|
|
290
294
|
};
|
|
291
295
|
};
|
|
292
|
-
function
|
|
296
|
+
function la() {
|
|
293
297
|
const { user: e } = ct();
|
|
294
298
|
function t(n) {
|
|
295
299
|
const a = e.value?.permissions ?? [];
|
|
@@ -305,8 +309,8 @@ function aa() {
|
|
|
305
309
|
hasAccess: t
|
|
306
310
|
};
|
|
307
311
|
}
|
|
308
|
-
const Se = pe("notification"), he =
|
|
309
|
-
function
|
|
312
|
+
const Se = pe("notification"), he = aa();
|
|
313
|
+
function oa(e) {
|
|
310
314
|
he.register(e);
|
|
311
315
|
}
|
|
312
316
|
function ze(e, t) {
|
|
@@ -396,13 +400,13 @@ de.debug = () => {
|
|
|
396
400
|
defaultOptions: e.defaultOptions
|
|
397
401
|
};
|
|
398
402
|
};
|
|
399
|
-
const
|
|
403
|
+
const ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
400
404
|
__proto__: null,
|
|
401
405
|
notification: de,
|
|
402
|
-
setNotificationBackend:
|
|
403
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
406
|
+
setNotificationBackend: oa
|
|
407
|
+
}, Symbol.toStringTag, { value: "Module" })), ra = Symbol("vc-input-group-context");
|
|
404
408
|
function Ge(e) {
|
|
405
|
-
const t = X(
|
|
409
|
+
const t = X(ra, null), n = tn(), a = $(() => `vc-field-${n}`), i = $(() => `${a.value}-label`), o = $(() => `${a.value}-error`), l = $(() => `${a.value}-hint`), s = $(() => !!e.error || !!e.errorMessage || !!t?.invalid.value), u = $(() => !!e.disabled || !!t?.disabled.value), v = $(() => t?.name.value || e.name), b = $(() => e.required ? !0 : void 0), g = $(() => {
|
|
406
410
|
const d = /* @__PURE__ */ new Set();
|
|
407
411
|
return t?.describedBy.value && t.describedBy.value.split(/\s+/).forEach((c) => d.add(c)), e.errorMessage && d.add(o.value), e.hint && d.add(l.value), d.size ? Array.from(d).join(" ") : void 0;
|
|
408
412
|
});
|
|
@@ -423,7 +427,7 @@ function Dt(e) {
|
|
|
423
427
|
const t = 1 / (window.devicePixelRatio || 1);
|
|
424
428
|
return e.scrollTop + e.clientHeight >= e.scrollHeight - 1 - t;
|
|
425
429
|
}
|
|
426
|
-
function
|
|
430
|
+
function sa(e, t = {}) {
|
|
427
431
|
const { speed: n = 2 } = t, a = S(!1), i = S(!1);
|
|
428
432
|
let o = null;
|
|
429
433
|
function l() {
|
|
@@ -462,7 +466,7 @@ function we() {
|
|
|
462
466
|
Object.keys(ht).forEach((e) => {
|
|
463
467
|
Te(e, ht[e]);
|
|
464
468
|
});
|
|
465
|
-
const
|
|
469
|
+
const ua = (e, [t, n]) => {
|
|
466
470
|
if (!e?.files || !e.files?.length)
|
|
467
471
|
return !0;
|
|
468
472
|
const a = (l, s, u) => {
|
|
@@ -488,8 +492,8 @@ const sa = (e, [t, n]) => {
|
|
|
488
492
|
return s === !1 || typeof s == "string" ? s : !0;
|
|
489
493
|
});
|
|
490
494
|
};
|
|
491
|
-
Te("mindimensions",
|
|
492
|
-
const
|
|
495
|
+
Te("mindimensions", ua);
|
|
496
|
+
const ca = (e, [t]) => {
|
|
493
497
|
if (!e?.files || !e.files?.length)
|
|
494
498
|
return !0;
|
|
495
499
|
const n = t * 1e3, a = (s) => s.size > n, i = [];
|
|
@@ -497,18 +501,18 @@ const ua = (e, [t]) => {
|
|
|
497
501
|
i.push(e.files[s]);
|
|
498
502
|
return i.map((s) => a(s)).find((s) => s === !0) ? Oe.global.t("messages.file_weight", { size: t }) : !0;
|
|
499
503
|
};
|
|
500
|
-
Te("fileWeight",
|
|
504
|
+
Te("fileWeight", ca);
|
|
501
505
|
const Vt = (e, [t], n, a) => {
|
|
502
506
|
if (!e || typeof e == "string" && !e.length)
|
|
503
507
|
return !0;
|
|
504
508
|
let i, o;
|
|
505
509
|
return e instanceof Date && (i = e), t instanceof Date && (o = t), typeof e == "string" && (i = new Date(e)), typeof t == "string" && (o = new Date(t)), i?.getTime && i?.getTime() > 0 && o?.getTime && o?.getTime() > 0 && n(o.getTime(), i.getTime()) ? a : !0;
|
|
506
|
-
},
|
|
507
|
-
Te("before",
|
|
508
|
-
const
|
|
509
|
-
Te("after",
|
|
510
|
-
const
|
|
511
|
-
Te("bigint",
|
|
510
|
+
}, da = (e, [t]) => Vt(e, [t], (n, a) => n < a, Oe.global.t("messages.before"));
|
|
511
|
+
Te("before", da);
|
|
512
|
+
const fa = (e, [t]) => Vt(e, [t], (n, a) => n > a, Oe.global.t("messages.after"));
|
|
513
|
+
Te("after", fa);
|
|
514
|
+
const va = (e) => Number.isSafeInteger(parseInt(e)) ? !0 : Oe.global.t("messages.bigint");
|
|
515
|
+
Te("bigint", va);
|
|
512
516
|
function Be(e) {
|
|
513
517
|
const t = pe(`${e.name}-bus`), n = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set();
|
|
514
518
|
function i(d) {
|
|
@@ -596,10 +600,10 @@ function Pt(e) {
|
|
|
596
600
|
function s(d, c) {
|
|
597
601
|
const m = c.toLowerCase(), y = t[m];
|
|
598
602
|
if (y) {
|
|
599
|
-
const p = y.findIndex((
|
|
603
|
+
const p = y.findIndex((E) => E.id === d);
|
|
600
604
|
if (p !== -1) {
|
|
601
|
-
const [
|
|
602
|
-
|
|
605
|
+
const [E] = y.splice(p, 1);
|
|
606
|
+
E && o(E.id);
|
|
603
607
|
}
|
|
604
608
|
}
|
|
605
609
|
const T = n.findIndex(
|
|
@@ -635,8 +639,8 @@ function Pt(e) {
|
|
|
635
639
|
isRegistered: g
|
|
636
640
|
};
|
|
637
641
|
}
|
|
638
|
-
function
|
|
639
|
-
const t = S(/* @__PURE__ */ new Map()), n =
|
|
642
|
+
function ga(e) {
|
|
643
|
+
const t = S(/* @__PURE__ */ new Map()), n = $(() => Array.from(t.value.values()).sort((o, l) => (o.order ?? 0) - (l.order ?? 0)));
|
|
640
644
|
function a(o) {
|
|
641
645
|
const l = e.getId(o) || crypto.randomUUID(), s = e.createItem(o, t.value.size);
|
|
642
646
|
return t.value.set(l, { ...s, id: l }), l;
|
|
@@ -652,7 +656,7 @@ function va(e) {
|
|
|
652
656
|
};
|
|
653
657
|
}
|
|
654
658
|
function zt(e) {
|
|
655
|
-
const t =
|
|
659
|
+
const t = ga({
|
|
656
660
|
createItem: e.createItem,
|
|
657
661
|
getId: e.getId
|
|
658
662
|
}), n = {
|
|
@@ -670,34 +674,34 @@ const Fe = S(/* @__PURE__ */ new Map()), me = Be({
|
|
|
670
674
|
getKey: We,
|
|
671
675
|
registerIntoService: (e, t) => e.addMenuItem(t)
|
|
672
676
|
});
|
|
673
|
-
function
|
|
677
|
+
function Gi(e) {
|
|
674
678
|
me.preregister(e);
|
|
675
679
|
}
|
|
676
|
-
function
|
|
680
|
+
function Yi(e) {
|
|
677
681
|
me.removePreregistered((t) => dt(t, e)), me.broadcast((t) => t.removeMenuItem(e));
|
|
678
682
|
}
|
|
679
|
-
function
|
|
683
|
+
function Ji(e, t) {
|
|
680
684
|
Fe.value.set(e, t), me.broadcast((n) => {
|
|
681
685
|
n.menuBadges.value.set(e, t);
|
|
682
686
|
});
|
|
683
687
|
}
|
|
684
|
-
function
|
|
688
|
+
function Xi(e) {
|
|
685
689
|
const t = me.getFirstInstance();
|
|
686
690
|
return t ? t.menuBadges.value.get(e) : Fe.value.get(e);
|
|
687
691
|
}
|
|
688
|
-
function
|
|
692
|
+
function Zi(e) {
|
|
689
693
|
Fe.value.delete(e), me.broadcast((t) => {
|
|
690
694
|
t.menuBadges.value.delete(e);
|
|
691
695
|
});
|
|
692
696
|
}
|
|
693
|
-
function
|
|
697
|
+
function Qi() {
|
|
694
698
|
return me.getFirstInstance()?.menuBadges ?? Fe;
|
|
695
699
|
}
|
|
696
|
-
const ot = 1 / 0,
|
|
700
|
+
const ot = 1 / 0, ma = 1 / 0;
|
|
697
701
|
function dt(e, t) {
|
|
698
702
|
return We(e) === We(t);
|
|
699
703
|
}
|
|
700
|
-
function
|
|
704
|
+
function pa(e) {
|
|
701
705
|
return e.groupConfig ? {
|
|
702
706
|
groupId: e.groupConfig.id,
|
|
703
707
|
groupTitle: e.groupConfig.title || e.groupConfig.id,
|
|
@@ -712,15 +716,15 @@ function ma(e) {
|
|
|
712
716
|
groupPermissions: void 0
|
|
713
717
|
};
|
|
714
718
|
}
|
|
715
|
-
function
|
|
719
|
+
function ba(e, t) {
|
|
716
720
|
return (e.priority ?? ot) - (t.priority ?? ot);
|
|
717
721
|
}
|
|
718
|
-
function
|
|
719
|
-
const n = (a) => a.inGroupPriority ?? a.priority ??
|
|
722
|
+
function ya(e, t) {
|
|
723
|
+
const n = (a) => a.inGroupPriority ?? a.priority ?? ma;
|
|
720
724
|
return n(e) - n(t);
|
|
721
725
|
}
|
|
722
|
-
function
|
|
723
|
-
const n =
|
|
726
|
+
function ha(e, t) {
|
|
727
|
+
const n = pa(e), a = {
|
|
724
728
|
...Rt(e, ["group", "groupIcon", "groupPriority", "groupConfig"])
|
|
725
729
|
}, i = t.get(n.groupId);
|
|
726
730
|
if (i) {
|
|
@@ -746,18 +750,18 @@ function ya(e, t) {
|
|
|
746
750
|
function kt(e) {
|
|
747
751
|
const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
748
752
|
for (const a of e)
|
|
749
|
-
a.group || a.groupConfig ?
|
|
750
|
-
return
|
|
753
|
+
a.group || a.groupConfig ? ha(a, t) : a.title && n.set(We(a), { ...a });
|
|
754
|
+
return Ia([...t.values(), ...n.values()]);
|
|
751
755
|
}
|
|
752
|
-
function
|
|
756
|
+
function Ia(e) {
|
|
753
757
|
return e.map(
|
|
754
758
|
(t) => ({
|
|
755
759
|
...t,
|
|
756
|
-
children: t.children ? [...t.children].sort(
|
|
760
|
+
children: t.children ? [...t.children].sort(ya) : void 0
|
|
757
761
|
})
|
|
758
|
-
).sort(
|
|
762
|
+
).sort(ba);
|
|
759
763
|
}
|
|
760
|
-
function
|
|
764
|
+
function ka() {
|
|
761
765
|
const e = S([]);
|
|
762
766
|
let t = [];
|
|
763
767
|
const n = S(new Map(Fe.value));
|
|
@@ -796,17 +800,17 @@ function Ye(e) {
|
|
|
796
800
|
use: s
|
|
797
801
|
};
|
|
798
802
|
}
|
|
799
|
-
const
|
|
803
|
+
const Sa = pe("use-menu-service"), Ft = Ye({
|
|
800
804
|
key: dn,
|
|
801
|
-
create:
|
|
805
|
+
create: ka,
|
|
802
806
|
bus: me,
|
|
803
807
|
name: "MenuService",
|
|
804
|
-
onMissing: () =>
|
|
808
|
+
onMissing: () => Sa.error("Menu service not found in current context. Injection chain:", je())
|
|
805
809
|
});
|
|
806
|
-
function
|
|
810
|
+
function _i() {
|
|
807
811
|
return Ft.provide();
|
|
808
812
|
}
|
|
809
|
-
function
|
|
813
|
+
function er() {
|
|
810
814
|
return Ft.use();
|
|
811
815
|
}
|
|
812
816
|
function Je() {
|
|
@@ -818,9 +822,9 @@ function Je() {
|
|
|
818
822
|
isTouch: X(fn, !1)
|
|
819
823
|
};
|
|
820
824
|
}
|
|
821
|
-
const
|
|
822
|
-
function
|
|
823
|
-
const e = X(
|
|
825
|
+
const $a = Symbol("AppInsightsOptions"), Ea = Symbol("AppInsightsInstance");
|
|
826
|
+
function Oa() {
|
|
827
|
+
const e = X(Ea, null), { user: t } = ct(), n = X($a, void 0);
|
|
824
828
|
function a() {
|
|
825
829
|
const i = n?.appName ? `[${n.appName}] ` : "", o = (u) => `${i}${u.name}`;
|
|
826
830
|
function l(u) {
|
|
@@ -846,9 +850,9 @@ function Ea() {
|
|
|
846
850
|
appInsights: e
|
|
847
851
|
};
|
|
848
852
|
}
|
|
849
|
-
const
|
|
850
|
-
function
|
|
851
|
-
const t = S(null), n = je(), { appInsights: a } =
|
|
853
|
+
const wa = pe("use-error-handler");
|
|
854
|
+
function La(e) {
|
|
855
|
+
const t = S(null), n = je(), { appInsights: a } = Oa(), { user: i } = ct(), o = S(!1);
|
|
852
856
|
function l() {
|
|
853
857
|
t.value = null, n && n.emit("reset");
|
|
854
858
|
}
|
|
@@ -856,14 +860,14 @@ function wa(e) {
|
|
|
856
860
|
if (o.value)
|
|
857
861
|
return !e;
|
|
858
862
|
o.value = !0;
|
|
859
|
-
const u =
|
|
863
|
+
const u = Ue(s);
|
|
860
864
|
return t.value = u, a && a.trackException({
|
|
861
865
|
exception: u,
|
|
862
866
|
properties: {
|
|
863
867
|
userId: i.value?.id ?? "",
|
|
864
868
|
userName: i.value?.userName ?? ""
|
|
865
869
|
}
|
|
866
|
-
}),
|
|
870
|
+
}), wa.error("Captured Error:", u.originalError), n && n.emit("error", u), Ee(() => {
|
|
867
871
|
o.value = !1;
|
|
868
872
|
}), !e;
|
|
869
873
|
}), {
|
|
@@ -871,21 +875,21 @@ function wa(e) {
|
|
|
871
875
|
reset: l
|
|
872
876
|
};
|
|
873
877
|
}
|
|
874
|
-
const
|
|
875
|
-
function
|
|
876
|
-
|
|
878
|
+
const Ke = /* @__PURE__ */ new WeakMap();
|
|
879
|
+
function tr(e, t, n) {
|
|
880
|
+
Ke.set(e, { timerId: t, notifId: n });
|
|
877
881
|
}
|
|
878
|
-
function
|
|
882
|
+
function Ca(e) {
|
|
879
883
|
if (e && typeof e == "object") {
|
|
880
|
-
const t =
|
|
884
|
+
const t = Ke.get(e), n = "originalError" in e && e.originalError && typeof e.originalError == "object" ? e.originalError : void 0, a = t ?? (n ? Ke.get(n) : void 0), i = t ? e : n;
|
|
881
885
|
if (a && i)
|
|
882
|
-
return clearTimeout(a.timerId), Promise.resolve().then(() =>
|
|
886
|
+
return clearTimeout(a.timerId), Promise.resolve().then(() => ia).then(({ notification: o }) => {
|
|
883
887
|
o.remove(a.notifId);
|
|
884
|
-
}),
|
|
888
|
+
}), Ke.delete(i), !0;
|
|
885
889
|
}
|
|
886
890
|
return !1;
|
|
887
891
|
}
|
|
888
|
-
const
|
|
892
|
+
const nr = V({
|
|
889
893
|
name: "ErrorInterceptor",
|
|
890
894
|
props: {
|
|
891
895
|
capture: {
|
|
@@ -902,11 +906,11 @@ const tr = V({
|
|
|
902
906
|
}
|
|
903
907
|
},
|
|
904
908
|
setup(e, { slots: t }) {
|
|
905
|
-
const n = X(Ct, void 0), a = X(bn, void 0), i = !!(n && a), { error: o, reset: l } =
|
|
909
|
+
const n = X(Ct, void 0), a = X(bn, void 0), i = !!(n && a), { error: o, reset: l } = La(i || e.capture);
|
|
906
910
|
return i && Y(o, (s) => {
|
|
907
911
|
const u = n.value.id;
|
|
908
912
|
if (s) {
|
|
909
|
-
if (
|
|
913
|
+
if (Ca(s), yn())
|
|
910
914
|
return;
|
|
911
915
|
a.setBladeError(u, s);
|
|
912
916
|
} else
|
|
@@ -916,10 +920,10 @@ const tr = V({
|
|
|
916
920
|
reset: l
|
|
917
921
|
});
|
|
918
922
|
}
|
|
919
|
-
}),
|
|
923
|
+
}), Ta = Symbol("vc-button-group"), Ba = ["type", "disabled", "aria-disabled", "aria-label", "aria-busy", "aria-pressed"], Ra = {
|
|
920
924
|
key: 2,
|
|
921
925
|
class: "vc-button__title"
|
|
922
|
-
},
|
|
926
|
+
}, xa = /* @__PURE__ */ V({
|
|
923
927
|
__name: "vc-button",
|
|
924
928
|
props: {
|
|
925
929
|
icon: {},
|
|
@@ -939,14 +943,14 @@ const tr = V({
|
|
|
939
943
|
const n = {
|
|
940
944
|
base: "default",
|
|
941
945
|
xs: "sm"
|
|
942
|
-
}, a = e, i = we(), o = t, l = X(
|
|
946
|
+
}, a = e, i = we(), o = t, l = X(Ta, null), s = $(() => {
|
|
943
947
|
const c = l?.size?.value ?? a.size;
|
|
944
948
|
return n[c] ?? c;
|
|
945
|
-
}), u = S(null), v =
|
|
949
|
+
}), u = S(null), v = $(() => a.disabled || a.loading), b = S(!1);
|
|
946
950
|
Y(v, (c) => {
|
|
947
951
|
b.value = c && u.value === document.activeElement;
|
|
948
952
|
});
|
|
949
|
-
const g =
|
|
953
|
+
const g = $(() => [
|
|
950
954
|
"vc-button",
|
|
951
955
|
{
|
|
952
956
|
[`vc-button-${a.variant}`]: a.variant,
|
|
@@ -985,27 +989,27 @@ const tr = V({
|
|
|
985
989
|
icon: e.icon,
|
|
986
990
|
size: e.iconSize
|
|
987
991
|
}, null, 8, ["class", "icon", "size"])) : w("", !0),
|
|
988
|
-
c.$slots.default ? (f(), h("span",
|
|
992
|
+
c.$slots.default ? (f(), h("span", Ra, [
|
|
989
993
|
B(c.$slots, "default")
|
|
990
994
|
])) : w("", !0)
|
|
991
|
-
], 42,
|
|
995
|
+
], 42, Ba));
|
|
992
996
|
}
|
|
993
997
|
}), ft = Be({
|
|
994
998
|
name: "toolbar-service",
|
|
995
999
|
getKey: (e) => `${e.bladeId.toLowerCase()}::${e.toolbarItem.id}`,
|
|
996
1000
|
registerIntoService: (e, t) => e.registerToolbarItem(t.toolbarItem, t.bladeId)
|
|
997
1001
|
});
|
|
998
|
-
function
|
|
1002
|
+
function Ma(e, t) {
|
|
999
1003
|
const n = t.toLowerCase();
|
|
1000
1004
|
ft.preregister({
|
|
1001
1005
|
bladeId: n,
|
|
1002
1006
|
toolbarItem: e
|
|
1003
1007
|
});
|
|
1004
1008
|
}
|
|
1005
|
-
function
|
|
1006
|
-
e.forEach((n) =>
|
|
1009
|
+
function ar({ targetBlades: e, ...t }) {
|
|
1010
|
+
e.forEach((n) => Ma(t, n));
|
|
1007
1011
|
}
|
|
1008
|
-
function
|
|
1012
|
+
function Ut() {
|
|
1009
1013
|
const e = Pt({
|
|
1010
1014
|
createRegistration: (s, u) => ({ bladeId: s, toolbarItem: u }),
|
|
1011
1015
|
getRegistrationBladeId: (s) => s.bladeId,
|
|
@@ -1040,24 +1044,24 @@ function Kt() {
|
|
|
1040
1044
|
};
|
|
1041
1045
|
return ft.replayInto(l), l;
|
|
1042
1046
|
}
|
|
1043
|
-
const
|
|
1047
|
+
const Na = "fallback-blade-id";
|
|
1044
1048
|
let et = null;
|
|
1045
|
-
const
|
|
1049
|
+
const Aa = Ye({
|
|
1046
1050
|
key: Tt,
|
|
1047
|
-
create:
|
|
1051
|
+
create: Ut,
|
|
1048
1052
|
bus: ft,
|
|
1049
1053
|
name: "ToolbarService"
|
|
1050
1054
|
});
|
|
1051
|
-
function
|
|
1052
|
-
return
|
|
1055
|
+
function lr() {
|
|
1056
|
+
return Aa.provide();
|
|
1053
1057
|
}
|
|
1054
|
-
function
|
|
1058
|
+
function or(e = {}) {
|
|
1055
1059
|
const { autoCleanup: t = !0 } = e, n = X(Tt, null);
|
|
1056
|
-
!n && !et && (et =
|
|
1060
|
+
!n && !et && (et = Ut());
|
|
1057
1061
|
const a = n || et;
|
|
1058
1062
|
if (!a)
|
|
1059
1063
|
throw new Error("Toolbar service is not available");
|
|
1060
|
-
const i = X(Ct, void 0), o =
|
|
1064
|
+
const i = X(Ct, void 0), o = $(() => i?.value?.id ?? Na), l = (c) => c ?? o.value, s = (c, m) => {
|
|
1061
1065
|
a.registerToolbarItem(c, l(m));
|
|
1062
1066
|
}, u = (c, m) => {
|
|
1063
1067
|
a.unregisterToolbarItem(c, l(m));
|
|
@@ -1078,7 +1082,7 @@ function lr(e = {}) {
|
|
|
1078
1082
|
registeredToolbarItems: a.registeredToolbarItems
|
|
1079
1083
|
};
|
|
1080
1084
|
}
|
|
1081
|
-
const
|
|
1085
|
+
const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], za = { class: "tw-sr-only" }, oe = /* @__PURE__ */ V({
|
|
1082
1086
|
__name: "vc-skeleton",
|
|
1083
1087
|
props: {
|
|
1084
1088
|
variant: { default: "text" },
|
|
@@ -1106,7 +1110,7 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1106
1110
|
"aria-busy": "true",
|
|
1107
1111
|
"aria-label": e.ariaLabel
|
|
1108
1112
|
}, [
|
|
1109
|
-
C("span",
|
|
1113
|
+
C("span", Va, M(e.ariaLabel), 1),
|
|
1110
1114
|
(f(!0), h(Ce, null, rt(e.rows, (l) => (f(), h("div", {
|
|
1111
1115
|
key: l,
|
|
1112
1116
|
class: "vc-skeleton__row",
|
|
@@ -1115,7 +1119,7 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1115
1119
|
}),
|
|
1116
1120
|
"aria-hidden": "true"
|
|
1117
1121
|
}, null, 4))), 128))
|
|
1118
|
-
], 10,
|
|
1122
|
+
], 10, Da)) : (f(), h("div", {
|
|
1119
1123
|
key: 1,
|
|
1120
1124
|
class: G(["vc-skeleton__shape", [`vc-skeleton__shape--${e.variant}`, { "tw-animate-pulse": e.animated }]]),
|
|
1121
1125
|
style: Ve({
|
|
@@ -1126,10 +1130,10 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1126
1130
|
"aria-busy": "true",
|
|
1127
1131
|
"aria-label": e.ariaLabel
|
|
1128
1132
|
}, [
|
|
1129
|
-
C("span",
|
|
1130
|
-
], 14,
|
|
1133
|
+
C("span", za, M(e.ariaLabel), 1)
|
|
1134
|
+
], 14, Pa));
|
|
1131
1135
|
}
|
|
1132
|
-
}),
|
|
1136
|
+
}), ir = /* @__PURE__ */ V({
|
|
1133
1137
|
__name: "vc-container",
|
|
1134
1138
|
props: {
|
|
1135
1139
|
shadow: { type: Boolean },
|
|
@@ -1173,7 +1177,7 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1173
1177
|
_: 3
|
|
1174
1178
|
}, 8, ["class", "aria-label"]));
|
|
1175
1179
|
}
|
|
1176
|
-
}),
|
|
1180
|
+
}), Fa = ["id", "role"], Ua = /* @__PURE__ */ V({
|
|
1177
1181
|
__name: "vc-hint",
|
|
1178
1182
|
props: {
|
|
1179
1183
|
id: {},
|
|
@@ -1188,13 +1192,13 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1188
1192
|
role: e.error ? "alert" : void 0
|
|
1189
1193
|
}, [
|
|
1190
1194
|
B(t.$slots, "default")
|
|
1191
|
-
], 10,
|
|
1195
|
+
], 10, Fa));
|
|
1192
1196
|
}
|
|
1193
|
-
}), be =
|
|
1197
|
+
}), be = Ua, Ka = ["role", "tabindex", "aria-label", "onKeydown"], qa = {
|
|
1194
1198
|
key: 0,
|
|
1195
1199
|
class: "vc-image__placeholder",
|
|
1196
1200
|
"aria-hidden": "true"
|
|
1197
|
-
},
|
|
1201
|
+
}, Wa = /* @__PURE__ */ V({
|
|
1198
1202
|
__name: "vc-image",
|
|
1199
1203
|
props: {
|
|
1200
1204
|
aspect: { default: "1x1" },
|
|
@@ -1222,7 +1226,7 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1222
1226
|
}
|
|
1223
1227
|
return g;
|
|
1224
1228
|
}
|
|
1225
|
-
const l =
|
|
1229
|
+
const l = $(() => ta(a.src, a.thumbnailSize) ?? a.src), s = S(!1), u = $(() => s.value ? a.src : l.value);
|
|
1226
1230
|
Y(
|
|
1227
1231
|
() => [a.src, a.thumbnailSize],
|
|
1228
1232
|
() => {
|
|
@@ -1239,7 +1243,7 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1239
1243
|
},
|
|
1240
1244
|
{ immediate: !0 }
|
|
1241
1245
|
);
|
|
1242
|
-
const v =
|
|
1246
|
+
const v = $(() => {
|
|
1243
1247
|
if (u.value) {
|
|
1244
1248
|
const g = o(u.value);
|
|
1245
1249
|
return `background: url(${CSS.escape(g)}) center / ${a.background} no-repeat`;
|
|
@@ -1271,7 +1275,7 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1271
1275
|
_(J(b, ["prevent"]), ["space"])
|
|
1272
1276
|
]
|
|
1273
1277
|
}, [
|
|
1274
|
-
e.src ? w("", !0) : (f(), h("div",
|
|
1278
|
+
e.src ? w("", !0) : (f(), h("div", qa, [
|
|
1275
1279
|
R(r(W), {
|
|
1276
1280
|
icon: e.emptyIcon,
|
|
1277
1281
|
size: "xl"
|
|
@@ -1280,14 +1284,14 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1280
1284
|
], 46, Ka)
|
|
1281
1285
|
], 2));
|
|
1282
1286
|
}
|
|
1283
|
-
}),
|
|
1287
|
+
}), ja = { class: "vc-label__text" }, Ha = { class: "vc-label__content" }, Ga = {
|
|
1284
1288
|
key: 0,
|
|
1285
1289
|
class: "vc-label__required",
|
|
1286
1290
|
"aria-hidden": "true"
|
|
1287
|
-
},
|
|
1291
|
+
}, Ya = {
|
|
1288
1292
|
key: 0,
|
|
1289
1293
|
class: "vc-label__tooltip"
|
|
1290
|
-
},
|
|
1294
|
+
}, Ja = {
|
|
1291
1295
|
key: 1,
|
|
1292
1296
|
class: "vc-label__language"
|
|
1293
1297
|
}, Xe = /* @__PURE__ */ V({
|
|
@@ -1308,13 +1312,13 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1308
1312
|
for: e.htmlFor || void 0
|
|
1309
1313
|
}, {
|
|
1310
1314
|
default: L(() => [
|
|
1311
|
-
C("div",
|
|
1312
|
-
C("span",
|
|
1315
|
+
C("div", ja, [
|
|
1316
|
+
C("span", Ha, [
|
|
1313
1317
|
B(t.$slots, "default")
|
|
1314
1318
|
]),
|
|
1315
|
-
e.required ? (f(), h("span",
|
|
1319
|
+
e.required ? (f(), h("span", Ga, "*")) : w("", !0)
|
|
1316
1320
|
]),
|
|
1317
|
-
t.$slots.tooltip ? (f(), h("span",
|
|
1321
|
+
t.$slots.tooltip ? (f(), h("span", Ya, [
|
|
1318
1322
|
R(r(Bt), { placement: "top-start" }, {
|
|
1319
1323
|
tooltip: L(() => [
|
|
1320
1324
|
B(t.$slots, "tooltip")
|
|
@@ -1329,12 +1333,12 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1329
1333
|
_: 3
|
|
1330
1334
|
})
|
|
1331
1335
|
])) : w("", !0),
|
|
1332
|
-
e.multilanguage ? (f(), h("div",
|
|
1336
|
+
e.multilanguage ? (f(), h("div", Ja, M(e.currentLanguage), 1)) : w("", !0)
|
|
1333
1337
|
]),
|
|
1334
1338
|
_: 3
|
|
1335
1339
|
}, 8, ["class", "for"]));
|
|
1336
1340
|
}
|
|
1337
|
-
}),
|
|
1341
|
+
}), Xa = ["disabled", "aria-disabled"], Za = { class: "vc-link__text" }, Qa = /* @__PURE__ */ V({
|
|
1338
1342
|
__name: "vc-link",
|
|
1339
1343
|
props: {
|
|
1340
1344
|
active: { type: Boolean },
|
|
@@ -1357,12 +1361,12 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1357
1361
|
"aria-disabled": e.disabled,
|
|
1358
1362
|
onClick: i
|
|
1359
1363
|
}, [
|
|
1360
|
-
C("span",
|
|
1364
|
+
C("span", Za, [
|
|
1361
1365
|
B(o.$slots, "default")
|
|
1362
1366
|
])
|
|
1363
|
-
], 10,
|
|
1367
|
+
], 10, Xa));
|
|
1364
1368
|
}
|
|
1365
|
-
}),
|
|
1369
|
+
}), _a = Qa, el = ["aria-label"], tl = { class: "vc-status__content" }, nl = /* @__PURE__ */ V({
|
|
1366
1370
|
__name: "vc-status",
|
|
1367
1371
|
props: {
|
|
1368
1372
|
variant: { default: "info" },
|
|
@@ -1381,12 +1385,12 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1381
1385
|
role: "status",
|
|
1382
1386
|
"aria-label": e.dot ? e.variant : void 0
|
|
1383
1387
|
}, [
|
|
1384
|
-
C("div",
|
|
1388
|
+
C("div", tl, [
|
|
1385
1389
|
B(t.$slots, "default")
|
|
1386
1390
|
])
|
|
1387
|
-
], 10,
|
|
1391
|
+
], 10, el));
|
|
1388
1392
|
}
|
|
1389
|
-
}),
|
|
1393
|
+
}), al = ["aria-label"], ll = /* @__PURE__ */ V({
|
|
1390
1394
|
__name: "vc-status-icon",
|
|
1391
1395
|
props: {
|
|
1392
1396
|
status: { type: Boolean }
|
|
@@ -1408,9 +1412,9 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1408
1412
|
class: "vc-status-icon__icon vc-status-icon__icon--inactive",
|
|
1409
1413
|
"aria-hidden": "true"
|
|
1410
1414
|
}))
|
|
1411
|
-
], 8,
|
|
1415
|
+
], 8, al));
|
|
1412
1416
|
}
|
|
1413
|
-
}),
|
|
1417
|
+
}), ol = ["aria-label"], St = 40, il = /* @__PURE__ */ V({
|
|
1414
1418
|
__name: "vc-scrollable-container",
|
|
1415
1419
|
props: {
|
|
1416
1420
|
speed: { default: void 0 }
|
|
@@ -1418,7 +1422,7 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1418
1422
|
setup(e, { expose: t }) {
|
|
1419
1423
|
const n = e, a = S(null), i = {};
|
|
1420
1424
|
n.speed !== void 0 && (i.speed = n.speed);
|
|
1421
|
-
const { canScrollUp: o, canScrollDown: l, startScroll: s, stopScroll: u, updateScrollState: v } =
|
|
1425
|
+
const { canScrollUp: o, canScrollDown: l, startScroll: s, stopScroll: u, updateScrollState: v } = sa(
|
|
1422
1426
|
a,
|
|
1423
1427
|
i
|
|
1424
1428
|
);
|
|
@@ -1477,44 +1481,44 @@ const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1477
1481
|
})
|
|
1478
1482
|
])
|
|
1479
1483
|
], 34)
|
|
1480
|
-
], 8,
|
|
1484
|
+
], 8, ol));
|
|
1481
1485
|
}
|
|
1482
1486
|
}), vt = qe(/* @__PURE__ */ new Map());
|
|
1483
|
-
function
|
|
1487
|
+
function rl(e) {
|
|
1484
1488
|
return e?.map((t) => t.toLowerCase());
|
|
1485
1489
|
}
|
|
1486
|
-
function
|
|
1490
|
+
function rr(e) {
|
|
1487
1491
|
vt.set(e.id, {
|
|
1488
1492
|
...e,
|
|
1489
|
-
targetBlades:
|
|
1493
|
+
targetBlades: rl(e.targetBlades)
|
|
1490
1494
|
});
|
|
1491
1495
|
}
|
|
1492
|
-
function
|
|
1496
|
+
function sl(e) {
|
|
1493
1497
|
const t = e.toLowerCase();
|
|
1494
1498
|
return Array.from(vt.values()).filter((n) => !n.targetBlades || n.targetBlades.includes(t)).map((n) => ({ ...n, targetBlades: n.targetBlades ? [...n.targetBlades] : void 0 }));
|
|
1495
1499
|
}
|
|
1496
|
-
function
|
|
1500
|
+
function ul() {
|
|
1497
1501
|
return Array.from(vt.values()).map((e) => ({
|
|
1498
1502
|
...e,
|
|
1499
1503
|
targetBlades: e.targetBlades ? [...e.targetBlades] : void 0
|
|
1500
1504
|
}));
|
|
1501
1505
|
}
|
|
1502
|
-
function
|
|
1506
|
+
function cl(e) {
|
|
1503
1507
|
return On(e);
|
|
1504
1508
|
}
|
|
1505
|
-
const
|
|
1509
|
+
const Kt = Be({
|
|
1506
1510
|
name: "widget-service",
|
|
1507
1511
|
getKey: (e) => `${e.bladeId.toLowerCase()}::${e.widget.id}`,
|
|
1508
1512
|
registerIntoService: (e, t) => e.registerWidget(t.widget, t.bladeId)
|
|
1509
1513
|
});
|
|
1510
|
-
function
|
|
1514
|
+
function sr(e, t) {
|
|
1511
1515
|
const n = t.toLowerCase();
|
|
1512
|
-
|
|
1516
|
+
Kt.preregister({
|
|
1513
1517
|
bladeId: n,
|
|
1514
1518
|
widget: e
|
|
1515
1519
|
});
|
|
1516
1520
|
}
|
|
1517
|
-
function
|
|
1521
|
+
function ur() {
|
|
1518
1522
|
const e = Pt({
|
|
1519
1523
|
createRegistration: (a, i) => ({ bladeId: a, widget: i }),
|
|
1520
1524
|
getRegistrationBladeId: (a) => a.bladeId,
|
|
@@ -1524,16 +1528,16 @@ function sr() {
|
|
|
1524
1528
|
unregisterWidget: (a, i) => e.unregister(a, i),
|
|
1525
1529
|
getWidgets: (a) => e.get(a),
|
|
1526
1530
|
updateWidget: ({ id: a, bladeId: i, widget: o }) => e.update(a, i, o),
|
|
1527
|
-
getExternalWidgetsForBlade: (a) =>
|
|
1528
|
-
getAllExternalWidgets:
|
|
1529
|
-
cloneWidget:
|
|
1531
|
+
getExternalWidgetsForBlade: (a) => sl(a.toLowerCase()),
|
|
1532
|
+
getAllExternalWidgets: ul,
|
|
1533
|
+
cloneWidget: cl
|
|
1530
1534
|
};
|
|
1531
|
-
return
|
|
1535
|
+
return Kt.replayInto(n), n;
|
|
1532
1536
|
}
|
|
1533
|
-
const
|
|
1537
|
+
const dl = pe("use-theme"), ke = S([
|
|
1534
1538
|
{ key: "light", localizationKey: "CORE.THEMES.LIGHT" },
|
|
1535
1539
|
{ key: "dark", localizationKey: "CORE.THEMES.DARK" }
|
|
1536
|
-
]),
|
|
1540
|
+
]), cr = Rn(() => {
|
|
1537
1541
|
const { t: e } = Oe.global;
|
|
1538
1542
|
function t(v) {
|
|
1539
1543
|
(Array.isArray(v) ? v : [v]).forEach((b) => {
|
|
@@ -1546,7 +1550,7 @@ const cl = pe("use-theme"), ke = S([
|
|
|
1546
1550
|
g >= 0 && ke.value.splice(g, 1);
|
|
1547
1551
|
});
|
|
1548
1552
|
}
|
|
1549
|
-
const a =
|
|
1553
|
+
const a = $(() => ke.value.map((v) => v.key)), i = Ln({
|
|
1550
1554
|
attribute: "data-theme",
|
|
1551
1555
|
emitAuto: !0,
|
|
1552
1556
|
initialValue: "light",
|
|
@@ -1563,14 +1567,14 @@ const cl = pe("use-theme"), ke = S([
|
|
|
1563
1567
|
o.value && (i.value = o.value);
|
|
1564
1568
|
});
|
|
1565
1569
|
function s(v) {
|
|
1566
|
-
a.value.includes(v) ? o.value = v :
|
|
1570
|
+
a.value.includes(v) ? o.value = v : dl.warn(`Attempted to set an unregistered theme: ${v}`);
|
|
1567
1571
|
}
|
|
1568
|
-
const u =
|
|
1572
|
+
const u = $(() => {
|
|
1569
1573
|
const v = ke.value.find((b) => b.key === o.value);
|
|
1570
1574
|
return v ? v.localizationKey ? e(v.localizationKey) : _e(v.key) : o.value ? _e(o.value) : "";
|
|
1571
1575
|
});
|
|
1572
1576
|
return {
|
|
1573
|
-
themes:
|
|
1577
|
+
themes: $(
|
|
1574
1578
|
() => ke.value.map((v) => ({
|
|
1575
1579
|
key: v.key,
|
|
1576
1580
|
name: v.localizationKey ? e(v.localizationKey) : _e(v.key)
|
|
@@ -1588,15 +1592,15 @@ const cl = pe("use-theme"), ke = S([
|
|
|
1588
1592
|
getKey: (e) => e.id,
|
|
1589
1593
|
registerIntoService: (e, t) => e.registerWidget(t)
|
|
1590
1594
|
});
|
|
1591
|
-
function
|
|
1595
|
+
function dr(e) {
|
|
1592
1596
|
gt.preregister(e);
|
|
1593
1597
|
}
|
|
1594
|
-
const
|
|
1598
|
+
const fl = () => ({
|
|
1595
1599
|
widgets: qe(/* @__PURE__ */ new Map()),
|
|
1596
1600
|
layout: qe(/* @__PURE__ */ new Map())
|
|
1597
1601
|
});
|
|
1598
|
-
function
|
|
1599
|
-
const t =
|
|
1602
|
+
function vl(e = {}) {
|
|
1603
|
+
const t = fl(), n = e.hasAccess ?? (() => !0), s = {
|
|
1600
1604
|
registerWidget: (u) => {
|
|
1601
1605
|
if (t.widgets.has(u.id))
|
|
1602
1606
|
throw new Error(`Widget with id ${u.id} already registered`);
|
|
@@ -1629,21 +1633,21 @@ const $t = pe("use-dashboard"), qt = Ye({
|
|
|
1629
1633
|
create: () => {
|
|
1630
1634
|
let e = () => !0;
|
|
1631
1635
|
try {
|
|
1632
|
-
const { hasAccess: t } =
|
|
1636
|
+
const { hasAccess: t } = la();
|
|
1633
1637
|
e = (n) => t(n);
|
|
1634
1638
|
} catch (t) {
|
|
1635
1639
|
$t.warn("Permissions composable unavailable, dashboard falls back to allow-all access check", t);
|
|
1636
1640
|
}
|
|
1637
|
-
return
|
|
1641
|
+
return vl({
|
|
1638
1642
|
hasAccess: e
|
|
1639
1643
|
});
|
|
1640
1644
|
},
|
|
1641
1645
|
onMissing: () => $t.error("Dashboard service not found")
|
|
1642
1646
|
});
|
|
1643
|
-
function
|
|
1647
|
+
function fr() {
|
|
1644
1648
|
return qt.provide();
|
|
1645
1649
|
}
|
|
1646
|
-
function
|
|
1650
|
+
function vr() {
|
|
1647
1651
|
return qt.use();
|
|
1648
1652
|
}
|
|
1649
1653
|
const Wt = Be({
|
|
@@ -1652,10 +1656,10 @@ const Wt = Be({
|
|
|
1652
1656
|
registerIntoService: (e, t) => e.register(t),
|
|
1653
1657
|
unregisterFromService: (e, t) => e.unregister(t)
|
|
1654
1658
|
});
|
|
1655
|
-
function
|
|
1659
|
+
function gr(e) {
|
|
1656
1660
|
Wt.preregister(e);
|
|
1657
1661
|
}
|
|
1658
|
-
function
|
|
1662
|
+
function mr() {
|
|
1659
1663
|
return zt({
|
|
1660
1664
|
bus: Wt,
|
|
1661
1665
|
createItem: (e, t) => ({
|
|
@@ -1679,10 +1683,10 @@ const mt = Be({
|
|
|
1679
1683
|
registerIntoService: (e, t) => e.register(t),
|
|
1680
1684
|
unregisterFromService: (e, t) => e.unregister(t)
|
|
1681
1685
|
});
|
|
1682
|
-
function
|
|
1686
|
+
function pr(e) {
|
|
1683
1687
|
mt.preregister(e);
|
|
1684
1688
|
}
|
|
1685
|
-
function
|
|
1689
|
+
function gl() {
|
|
1686
1690
|
return zt({
|
|
1687
1691
|
bus: mt,
|
|
1688
1692
|
createItem: (e, t) => ({
|
|
@@ -1695,26 +1699,26 @@ function vl() {
|
|
|
1695
1699
|
getId: (e) => e.id || ""
|
|
1696
1700
|
});
|
|
1697
1701
|
}
|
|
1698
|
-
const
|
|
1702
|
+
const ml = pe("use-settings-menu"), jt = Ye({
|
|
1699
1703
|
key: In,
|
|
1700
|
-
create:
|
|
1704
|
+
create: gl,
|
|
1701
1705
|
bus: mt,
|
|
1702
1706
|
name: "SettingsMenuService",
|
|
1703
|
-
onMissing: () =>
|
|
1707
|
+
onMissing: () => ml.error("Settings menu service not found")
|
|
1704
1708
|
});
|
|
1705
|
-
function
|
|
1709
|
+
function br() {
|
|
1706
1710
|
return jt.provide();
|
|
1707
1711
|
}
|
|
1708
|
-
function
|
|
1712
|
+
function yr() {
|
|
1709
1713
|
return jt.use();
|
|
1710
1714
|
}
|
|
1711
|
-
const
|
|
1715
|
+
const pl = {
|
|
1712
1716
|
key: 0,
|
|
1713
1717
|
class: "vc-date-picker vc-date-picker--skeleton"
|
|
1714
|
-
},
|
|
1718
|
+
}, bl = { class: "vc-date-picker__field-container" }, yl = { class: "vc-date-picker__field" }, hl = ["aria-label"], Il = {
|
|
1715
1719
|
key: 0,
|
|
1716
1720
|
class: "vc-date-picker__loading"
|
|
1717
|
-
},
|
|
1721
|
+
}, kl = { key: 0 }, Sl = { key: 1 }, j = "COMPONENTS.MOLECULES.VC_DATE_PICKER.ARIA", $l = /* @__PURE__ */ V({
|
|
1718
1722
|
__name: "vc-date-picker",
|
|
1719
1723
|
props: {
|
|
1720
1724
|
modelValue: {},
|
|
@@ -1739,43 +1743,43 @@ const ml = {
|
|
|
1739
1743
|
},
|
|
1740
1744
|
emits: ["update:modelValue", "blur", "focus"],
|
|
1741
1745
|
setup(e, { emit: t }) {
|
|
1742
|
-
const n = e, a = t, i = we(), { t: o } = ye({ useScope: "global" }), { isMobile: l, isDesktop: s } = Je(), { labelId: u, errorId: v, hintId: b, invalid: g, resolvedDisabled: d, ariaRequired: c, ariaDescribedBy: m } = Ge(n), y = S(!1), T = window.navigator.language, p = S(n.modelValue),
|
|
1746
|
+
const n = e, a = t, i = we(), { t: o } = ye({ useScope: "global" }), { isMobile: l, isDesktop: s } = Je(), { labelId: u, errorId: v, hintId: b, invalid: g, resolvedDisabled: d, ariaRequired: c, ariaDescribedBy: m } = Ge(n), y = S(!1), T = window.navigator.language, p = S(n.modelValue), E = S(null), P = $(() => n.type === "date" && "9999-12-31" || void 0), K = (() => {
|
|
1743
1747
|
const k = new Intl.DateTimeFormat(T, { hour: "numeric" }).format();
|
|
1744
1748
|
return Number.isInteger(Number(k));
|
|
1745
|
-
})(), ne =
|
|
1746
|
-
const k = n.type === "datetime-local",
|
|
1749
|
+
})(), ne = $(() => {
|
|
1750
|
+
const k = n.type === "datetime-local", O = new Intl.DateTimeFormat(T, {
|
|
1747
1751
|
year: "numeric",
|
|
1748
1752
|
month: "2-digit",
|
|
1749
1753
|
day: "2-digit",
|
|
1750
|
-
...k ? { hour: "2-digit", minute: "2-digit", hour12: !
|
|
1751
|
-
}).formatToParts(new Date(2e3, 0, 15, 13, 30)),
|
|
1754
|
+
...k ? { hour: "2-digit", minute: "2-digit", hour12: !K } : {}
|
|
1755
|
+
}).formatToParts(new Date(2e3, 0, 15, 13, 30)), U = {
|
|
1752
1756
|
year: "yyyy",
|
|
1753
1757
|
month: "MM",
|
|
1754
1758
|
day: "dd",
|
|
1755
|
-
hour:
|
|
1759
|
+
hour: K ? "HH" : "hh",
|
|
1756
1760
|
minute: "mm",
|
|
1757
1761
|
dayPeriod: "aa"
|
|
1758
1762
|
};
|
|
1759
|
-
return
|
|
1760
|
-
}), Z =
|
|
1763
|
+
return O.map((z) => U[z.type] ?? z.value).join("");
|
|
1764
|
+
}), Z = $(() => {
|
|
1761
1765
|
if (!n.datePickerOptions?.textInput) return n.datePickerOptions;
|
|
1762
|
-
const k = { ...n.datePickerOptions },
|
|
1766
|
+
const k = { ...n.datePickerOptions }, O = typeof k.textInput == "object" ? k.textInput : {};
|
|
1763
1767
|
return k.textInput = {
|
|
1764
1768
|
format: ne.value,
|
|
1765
1769
|
rangeSeparator: " - ",
|
|
1766
|
-
...
|
|
1770
|
+
...O
|
|
1767
1771
|
}, k;
|
|
1768
|
-
}), le =
|
|
1769
|
-
const k = (
|
|
1772
|
+
}), le = $(() => {
|
|
1773
|
+
const k = (O) => o(`${j}.UNITS.${O}`);
|
|
1770
1774
|
return {
|
|
1771
1775
|
toggleOverlay: o(`${j}.TOGGLE_OVERLAY`),
|
|
1772
1776
|
menu: o(`${j}.MENU`),
|
|
1773
1777
|
input: o(`${j}.INPUT`),
|
|
1774
1778
|
openTimePicker: o(`${j}.OPEN_TIME_PICKER`),
|
|
1775
1779
|
closeTimePicker: o(`${j}.CLOSE_TIME_PICKER`),
|
|
1776
|
-
incrementValue: (
|
|
1777
|
-
decrementValue: (
|
|
1778
|
-
openTpOverlay: (
|
|
1780
|
+
incrementValue: (O) => o(`${j}.INCREMENT`, { unit: k(O) }),
|
|
1781
|
+
decrementValue: (O) => o(`${j}.DECREMENT`, { unit: k(O) }),
|
|
1782
|
+
openTpOverlay: (O) => o(`${j}.OPEN_TIME_OVERLAY`, { unit: k(O) }),
|
|
1779
1783
|
amPmButton: o(`${j}.AM_PM`),
|
|
1780
1784
|
openYearsOverlay: o(`${j}.OPEN_YEARS`),
|
|
1781
1785
|
openMonthsOverlay: o(`${j}.OPEN_MONTHS`),
|
|
@@ -1787,47 +1791,47 @@ const ml = {
|
|
|
1787
1791
|
calendarIcon: o(`${j}.CALENDAR_ICON`),
|
|
1788
1792
|
timePicker: o(`${j}.TIME_PICKER`),
|
|
1789
1793
|
// the library names both the toggle button (overlay = false) and the grid it opens (overlay = true)
|
|
1790
|
-
monthPicker: (
|
|
1791
|
-
yearPicker: (
|
|
1792
|
-
timeOverlay: (
|
|
1794
|
+
monthPicker: (O) => o(O ? `${j}.MONTH_PICKER_OVERLAY` : `${j}.MONTH_PICKER`),
|
|
1795
|
+
yearPicker: (O) => o(O ? `${j}.YEAR_PICKER_OVERLAY` : `${j}.YEAR_PICKER`),
|
|
1796
|
+
timeOverlay: (O) => o(`${j}.TIME_OVERLAY`, { unit: k(O) })
|
|
1793
1797
|
};
|
|
1794
|
-
}), Q =
|
|
1798
|
+
}), Q = $(() => {
|
|
1795
1799
|
const k = { ...le.value, ...n.datePickerOptions?.ariaLabels };
|
|
1796
1800
|
return n.label || !n.ariaLabel ? k : { ...k, input: n.ariaLabel };
|
|
1797
1801
|
}), ce = (k) => {
|
|
1798
|
-
const
|
|
1802
|
+
const O = {
|
|
1799
1803
|
year: "numeric",
|
|
1800
1804
|
month: "numeric",
|
|
1801
1805
|
day: "numeric"
|
|
1802
1806
|
};
|
|
1803
|
-
n.type === "datetime-local" && (
|
|
1804
|
-
const
|
|
1805
|
-
return Array.isArray(k) ? k.map((z) => z != null ?
|
|
1807
|
+
n.type === "datetime-local" && (O.hour = "numeric", O.minute = "numeric", O.hour12 = !K);
|
|
1808
|
+
const U = (z) => z instanceof Date && !isNaN(z.getTime()) ? new Intl.DateTimeFormat(T, O).format(z) : "";
|
|
1809
|
+
return Array.isArray(k) ? k.map((z) => z != null ? U(z) : "").join(" - ") : U(k);
|
|
1806
1810
|
};
|
|
1807
1811
|
Y(
|
|
1808
1812
|
() => n.modelValue,
|
|
1809
1813
|
(k) => {
|
|
1810
1814
|
p.value !== k && (p.value = k);
|
|
1811
1815
|
}
|
|
1812
|
-
), Y(p, (k,
|
|
1813
|
-
k !==
|
|
1816
|
+
), Y(p, (k, O) => {
|
|
1817
|
+
k !== O && k !== n.modelValue && (E.value = null, a("update:modelValue", k));
|
|
1814
1818
|
});
|
|
1815
1819
|
function fe() {
|
|
1816
1820
|
p.value = null, a("update:modelValue", null);
|
|
1817
1821
|
}
|
|
1818
1822
|
function ie(k) {
|
|
1819
|
-
|
|
1823
|
+
E.value = k;
|
|
1820
1824
|
}
|
|
1821
1825
|
function F() {
|
|
1822
|
-
|
|
1826
|
+
E.value = null;
|
|
1823
1827
|
}
|
|
1824
1828
|
function H(k) {
|
|
1825
|
-
|
|
1829
|
+
E.value != null && (p.value = [E.value, null], E.value = null), y.value = !1, a("blur", k);
|
|
1826
1830
|
}
|
|
1827
1831
|
function A() {
|
|
1828
1832
|
y.value = !0, a("focus");
|
|
1829
1833
|
}
|
|
1830
|
-
return (k,
|
|
1834
|
+
return (k, O) => r(i) ? (f(), h("div", pl, [
|
|
1831
1835
|
e.label ? (f(), D(r(oe), {
|
|
1832
1836
|
key: 0,
|
|
1833
1837
|
variant: "block",
|
|
@@ -1877,11 +1881,11 @@ const ml = {
|
|
|
1877
1881
|
"vc-date-picker__field-wrapper--small": e.size === "small"
|
|
1878
1882
|
}])
|
|
1879
1883
|
}, [
|
|
1880
|
-
C("div",
|
|
1881
|
-
C("div",
|
|
1884
|
+
C("div", bl, [
|
|
1885
|
+
C("div", yl, [
|
|
1882
1886
|
R(r(Mn), ae({
|
|
1883
1887
|
modelValue: p.value,
|
|
1884
|
-
"onUpdate:modelValue":
|
|
1888
|
+
"onUpdate:modelValue": O[0] || (O[0] = (U) => p.value = U),
|
|
1885
1889
|
placeholder: e.placeholder || (e.type === "datetime-local" ? k.$t("COMPONENTS.MOLECULES.VC_INPUT.DATE_TIME_PLACEHOLDER") : k.$t("COMPONENTS.MOLECULES.VC_INPUT.DATE_PLACEHOLDER")),
|
|
1886
1890
|
disabled: r(d),
|
|
1887
1891
|
name: e.name,
|
|
@@ -1896,7 +1900,7 @@ const ml = {
|
|
|
1896
1900
|
config: { closeOnAutoApply: !1 },
|
|
1897
1901
|
"auto-apply": "",
|
|
1898
1902
|
"teleport-center": r(l),
|
|
1899
|
-
is24: r(
|
|
1903
|
+
is24: r(K)
|
|
1900
1904
|
}, Z.value, {
|
|
1901
1905
|
"aria-labels": Q.value,
|
|
1902
1906
|
teleport: r(s) ? "body" : void 0,
|
|
@@ -1924,9 +1928,9 @@ const ml = {
|
|
|
1924
1928
|
size: "xs",
|
|
1925
1929
|
icon: "lucide-x"
|
|
1926
1930
|
})
|
|
1927
|
-
], 8,
|
|
1931
|
+
], 8, hl)) : w("", !0)
|
|
1928
1932
|
]),
|
|
1929
|
-
e.loading ? (f(), h("div",
|
|
1933
|
+
e.loading ? (f(), h("div", Il, [
|
|
1930
1934
|
R(r(W), {
|
|
1931
1935
|
icon: "lucide-loader-2",
|
|
1932
1936
|
class: "vc-date-picker__loading-icon",
|
|
@@ -1940,7 +1944,7 @@ const ml = {
|
|
|
1940
1944
|
mode: "out-in"
|
|
1941
1945
|
}, {
|
|
1942
1946
|
default: L(() => [
|
|
1943
|
-
r(g) && e.errorMessage ? (f(), h("div",
|
|
1947
|
+
r(g) && e.errorMessage ? (f(), h("div", kl, [
|
|
1944
1948
|
R(r(be), {
|
|
1945
1949
|
id: r(v),
|
|
1946
1950
|
class: "vc-date-picker__hint-error",
|
|
@@ -1951,7 +1955,7 @@ const ml = {
|
|
|
1951
1955
|
]),
|
|
1952
1956
|
_: 1
|
|
1953
1957
|
}, 8, ["id"])
|
|
1954
|
-
])) : (f(), h("div",
|
|
1958
|
+
])) : (f(), h("div", Sl, [
|
|
1955
1959
|
e.hint ? (f(), D(r(be), {
|
|
1956
1960
|
key: 0,
|
|
1957
1961
|
id: r(b),
|
|
@@ -1968,13 +1972,13 @@ const ml = {
|
|
|
1968
1972
|
})
|
|
1969
1973
|
], 2));
|
|
1970
1974
|
}
|
|
1971
|
-
}),
|
|
1975
|
+
}), El = {
|
|
1972
1976
|
key: 0,
|
|
1973
1977
|
class: "vc-color-input vc-color-input--skeleton"
|
|
1974
|
-
},
|
|
1978
|
+
}, Ol = { class: "vc-color-input__field-container" }, wl = { class: "vc-color-input__field" }, Ll = ["id", "placeholder", "disabled", "name", "autofocus", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby", "aria-label"], Cl = { class: "vc-color-input__color-container" }, Tl = ["aria-label"], Bl = ["value"], Rl = ["aria-label"], xl = {
|
|
1975
1979
|
key: 0,
|
|
1976
1980
|
class: "vc-color-input__loading"
|
|
1977
|
-
},
|
|
1981
|
+
}, Ml = { key: 0 }, Nl = { key: 1 }, Al = /* @__PURE__ */ V({
|
|
1978
1982
|
__name: "vc-color-input",
|
|
1979
1983
|
props: {
|
|
1980
1984
|
modelValue: {},
|
|
@@ -2006,8 +2010,8 @@ const ml = {
|
|
|
2006
2010
|
resolvedDisabled: g,
|
|
2007
2011
|
ariaRequired: d,
|
|
2008
2012
|
ariaDescribedBy: c
|
|
2009
|
-
} = Ge(i), m = S(!1), y = S(!1), T = S(), p = S(),
|
|
2010
|
-
function
|
|
2013
|
+
} = Ge(i), m = S(!1), y = S(!1), T = S(), p = S(), E = S(i.modelValue ?? ""), P = S("");
|
|
2014
|
+
function K(F) {
|
|
2011
2015
|
if (!F || typeof F != "string") {
|
|
2012
2016
|
P.value = "";
|
|
2013
2017
|
return;
|
|
@@ -2023,8 +2027,8 @@ const ml = {
|
|
|
2023
2027
|
Y(
|
|
2024
2028
|
() => i.modelValue,
|
|
2025
2029
|
(F) => {
|
|
2026
|
-
y.value || (y.value = !0,
|
|
2027
|
-
|
|
2030
|
+
y.value || (y.value = !0, E.value = F ?? "", Ee(() => {
|
|
2031
|
+
K(F ?? ""), y.value = !1;
|
|
2028
2032
|
}));
|
|
2029
2033
|
},
|
|
2030
2034
|
{ immediate: !0 }
|
|
@@ -2032,22 +2036,22 @@ const ml = {
|
|
|
2032
2036
|
F && p.value && (p.value.value = F);
|
|
2033
2037
|
});
|
|
2034
2038
|
function ne() {
|
|
2035
|
-
y.value || (y.value = !0, o("update:modelValue",
|
|
2036
|
-
|
|
2039
|
+
y.value || (y.value = !0, o("update:modelValue", E.value || null), Ee(() => {
|
|
2040
|
+
K(E.value), y.value = !1;
|
|
2037
2041
|
}));
|
|
2038
2042
|
}
|
|
2039
2043
|
function Z(F) {
|
|
2040
2044
|
const H = F.target;
|
|
2041
2045
|
if (H?.value) {
|
|
2042
2046
|
const A = It(H.value);
|
|
2043
|
-
P.value = A,
|
|
2047
|
+
P.value = A, E.value = A, o("update:modelValue", A);
|
|
2044
2048
|
}
|
|
2045
2049
|
}
|
|
2046
2050
|
function le() {
|
|
2047
2051
|
p.value?.click();
|
|
2048
2052
|
}
|
|
2049
2053
|
function Q() {
|
|
2050
|
-
|
|
2054
|
+
E.value = "", P.value = "", o("update:modelValue", null);
|
|
2051
2055
|
}
|
|
2052
2056
|
function ce(F) {
|
|
2053
2057
|
m.value = !1, o("blur", F);
|
|
@@ -2058,7 +2062,7 @@ const ml = {
|
|
|
2058
2062
|
function ie() {
|
|
2059
2063
|
T.value?.focus();
|
|
2060
2064
|
}
|
|
2061
|
-
return t({ focus: ie }), (F, H) => r(a) ? (f(), h("div",
|
|
2065
|
+
return t({ focus: ie }), (F, H) => r(a) ? (f(), h("div", El, [
|
|
2062
2066
|
e.label ? (f(), D(r(oe), {
|
|
2063
2067
|
key: 0,
|
|
2064
2068
|
variant: "block",
|
|
@@ -2109,13 +2113,13 @@ const ml = {
|
|
|
2109
2113
|
"vc-color-input__field-wrapper--small": e.size === "small"
|
|
2110
2114
|
}])
|
|
2111
2115
|
}, [
|
|
2112
|
-
C("div",
|
|
2113
|
-
C("div",
|
|
2116
|
+
C("div", Ol, [
|
|
2117
|
+
C("div", wl, [
|
|
2114
2118
|
ut(C("input", {
|
|
2115
2119
|
id: r(l),
|
|
2116
2120
|
ref_key: "inputRef",
|
|
2117
2121
|
ref: T,
|
|
2118
|
-
"onUpdate:modelValue": H[0] || (H[0] = (A) =>
|
|
2122
|
+
"onUpdate:modelValue": H[0] || (H[0] = (A) => E.value = A),
|
|
2119
2123
|
placeholder: e.placeholder,
|
|
2120
2124
|
type: "text",
|
|
2121
2125
|
disabled: r(g),
|
|
@@ -2131,17 +2135,17 @@ const ml = {
|
|
|
2131
2135
|
onBlur: ce,
|
|
2132
2136
|
onFocus: fe,
|
|
2133
2137
|
onInput: ne
|
|
2134
|
-
}, null, 40,
|
|
2135
|
-
[on,
|
|
2138
|
+
}, null, 40, Ll), [
|
|
2139
|
+
[on, E.value]
|
|
2136
2140
|
]),
|
|
2137
|
-
C("div",
|
|
2141
|
+
C("div", Cl, [
|
|
2138
2142
|
C("button", {
|
|
2139
2143
|
type: "button",
|
|
2140
2144
|
class: "vc-color-input__color-square",
|
|
2141
2145
|
style: Ve({ backgroundColor: P.value || "#ffffff" }),
|
|
2142
2146
|
"aria-label": `Pick color${P.value ? ": " + P.value : ""}`,
|
|
2143
2147
|
onClick: le
|
|
2144
|
-
}, null, 12,
|
|
2148
|
+
}, null, 12, Tl),
|
|
2145
2149
|
C("input", {
|
|
2146
2150
|
ref_key: "colorPickerRef",
|
|
2147
2151
|
ref: p,
|
|
@@ -2151,9 +2155,9 @@ const ml = {
|
|
|
2151
2155
|
tabindex: "-1",
|
|
2152
2156
|
"aria-hidden": "true",
|
|
2153
2157
|
onChange: Z
|
|
2154
|
-
}, null, 40,
|
|
2158
|
+
}, null, 40, Bl)
|
|
2155
2159
|
]),
|
|
2156
|
-
e.clearable &&
|
|
2160
|
+
e.clearable && E.value && !e.disabled ? (f(), h("button", {
|
|
2157
2161
|
key: 0,
|
|
2158
2162
|
type: "button",
|
|
2159
2163
|
class: "vc-color-input__clear",
|
|
@@ -2164,9 +2168,9 @@ const ml = {
|
|
|
2164
2168
|
size: "xs",
|
|
2165
2169
|
icon: "lucide-x"
|
|
2166
2170
|
})
|
|
2167
|
-
], 8,
|
|
2171
|
+
], 8, Rl)) : w("", !0)
|
|
2168
2172
|
]),
|
|
2169
|
-
e.loading ? (f(), h("div",
|
|
2173
|
+
e.loading ? (f(), h("div", xl, [
|
|
2170
2174
|
R(r(W), {
|
|
2171
2175
|
icon: "lucide-loader-2",
|
|
2172
2176
|
class: "vc-color-input__loading-icon",
|
|
@@ -2180,7 +2184,7 @@ const ml = {
|
|
|
2180
2184
|
mode: "out-in"
|
|
2181
2185
|
}, {
|
|
2182
2186
|
default: L(() => [
|
|
2183
|
-
r(b) && e.errorMessage ? (f(), h("div",
|
|
2187
|
+
r(b) && e.errorMessage ? (f(), h("div", Ml, [
|
|
2184
2188
|
R(r(be), {
|
|
2185
2189
|
id: r(u),
|
|
2186
2190
|
class: "vc-color-input__hint-error",
|
|
@@ -2191,7 +2195,7 @@ const ml = {
|
|
|
2191
2195
|
]),
|
|
2192
2196
|
_: 1
|
|
2193
2197
|
}, 8, ["id"])
|
|
2194
|
-
])) : (f(), h("div",
|
|
2198
|
+
])) : (f(), h("div", Nl, [
|
|
2195
2199
|
e.hint ? (f(), D(r(be), {
|
|
2196
2200
|
key: 0,
|
|
2197
2201
|
id: r(v),
|
|
@@ -2208,28 +2212,28 @@ const ml = {
|
|
|
2208
2212
|
})
|
|
2209
2213
|
], 2));
|
|
2210
2214
|
}
|
|
2211
|
-
}),
|
|
2215
|
+
}), Dl = { class: "vc-input__container" }, Vl = {
|
|
2212
2216
|
key: 0,
|
|
2213
2217
|
class: "vc-input__prepend"
|
|
2214
|
-
},
|
|
2218
|
+
}, Pl = { class: "vc-input__field-container" }, zl = {
|
|
2215
2219
|
key: 0,
|
|
2216
2220
|
class: "vc-input__prepend-inner"
|
|
2217
|
-
},
|
|
2221
|
+
}, Fl = { class: "vc-input__field" }, Ul = {
|
|
2218
2222
|
key: 0,
|
|
2219
2223
|
class: "vc-input__prefix"
|
|
2220
|
-
}, Kl = ["id", "step", "placeholder", "type", "disabled", "name", "maxlength", "autofocus", "autocomplete", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby", "aria-label"],
|
|
2224
|
+
}, Kl = ["id", "step", "placeholder", "type", "disabled", "name", "maxlength", "autofocus", "autocomplete", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby", "aria-label"], ql = {
|
|
2221
2225
|
key: 1,
|
|
2222
2226
|
class: "vc-input__suffix"
|
|
2223
|
-
},
|
|
2227
|
+
}, Wl = ["aria-label"], jl = ["aria-label"], Hl = {
|
|
2224
2228
|
key: 1,
|
|
2225
2229
|
class: "vc-input__append-inner"
|
|
2226
|
-
},
|
|
2230
|
+
}, Gl = {
|
|
2227
2231
|
key: 2,
|
|
2228
2232
|
class: "vc-input__loading"
|
|
2229
|
-
},
|
|
2233
|
+
}, Yl = {
|
|
2230
2234
|
key: 1,
|
|
2231
2235
|
class: "vc-input__append"
|
|
2232
|
-
},
|
|
2236
|
+
}, Jl = { key: 0 }, Xl = { key: 1 }, pt = /* @__PURE__ */ V({
|
|
2233
2237
|
inheritAttrs: !1,
|
|
2234
2238
|
__name: "vc-input",
|
|
2235
2239
|
props: {
|
|
@@ -2261,9 +2265,9 @@ const ml = {
|
|
|
2261
2265
|
},
|
|
2262
2266
|
emits: ["update:modelValue", "blur", "focus"],
|
|
2263
2267
|
setup(e, { emit: t }) {
|
|
2264
|
-
const n = e, a = wt(), i = /* @__PURE__ */ new Set(["min", "max", "minlength", "pattern", "inputmode"]), o =
|
|
2268
|
+
const n = e, a = wt(), i = /* @__PURE__ */ new Set(["min", "max", "minlength", "pattern", "inputmode"]), o = $(
|
|
2265
2269
|
() => Object.fromEntries(Object.entries(a).filter(([I]) => i.has(I.toLowerCase())))
|
|
2266
|
-
), l =
|
|
2270
|
+
), l = $(() => {
|
|
2267
2271
|
const { class: I, ...x } = a;
|
|
2268
2272
|
return Object.fromEntries(Object.entries(x).filter(([q]) => !i.has(q.toLowerCase())));
|
|
2269
2273
|
}), s = t, u = we(), {
|
|
@@ -2277,26 +2281,26 @@ const ml = {
|
|
|
2277
2281
|
ariaRequired: T,
|
|
2278
2282
|
ariaDescribedBy: p
|
|
2279
2283
|
} = Ge(n);
|
|
2280
|
-
let
|
|
2281
|
-
const
|
|
2284
|
+
let E, P;
|
|
2285
|
+
const K = S(), ne = S(), Z = S(r(n.type)), le = S(!1), Q = S(), ce = $({
|
|
2282
2286
|
get() {
|
|
2283
2287
|
return Z.value === "integer" ? "number" : Z.value;
|
|
2284
2288
|
},
|
|
2285
2289
|
set(I) {
|
|
2286
2290
|
Z.value = I;
|
|
2287
2291
|
}
|
|
2288
|
-
}), fe =
|
|
2292
|
+
}), fe = $(() => r(n.modelValue)), ie = $({
|
|
2289
2293
|
get() {
|
|
2290
|
-
return (n.type === "integer" || n.type === "number") && isNaN(
|
|
2294
|
+
return (n.type === "integer" || n.type === "number") && isNaN(K.value) ? "" : K.value;
|
|
2291
2295
|
},
|
|
2292
2296
|
set(I) {
|
|
2293
|
-
(n.type === "number" || n.type === "integer") && I < 0 ?
|
|
2297
|
+
(n.type === "number" || n.type === "integer") && I < 0 ? K.value = Math.abs(I) : K.value = I, H(K.value);
|
|
2294
2298
|
}
|
|
2295
2299
|
});
|
|
2296
2300
|
Y(
|
|
2297
2301
|
fe,
|
|
2298
2302
|
(I) => {
|
|
2299
|
-
n.type === "number" && I !== null ? Q.value = parseFloat(I) : n.type === "integer" && I !== null ? Q.value = Math.trunc(I) : Q.value = I,
|
|
2303
|
+
n.type === "number" && I !== null ? Q.value = parseFloat(I) : n.type === "integer" && I !== null ? Q.value = Math.trunc(I) : Q.value = I, K.value !== Q.value && (K.value = Q.value);
|
|
2300
2304
|
},
|
|
2301
2305
|
{ immediate: !0 }
|
|
2302
2306
|
);
|
|
@@ -2317,15 +2321,15 @@ const ml = {
|
|
|
2317
2321
|
n.type === "number" && I !== null && I !== void 0 ? x = I !== "" ? parseFloat(I) : null : n.type === "integer" && I !== null && I !== void 0 ? x = I !== "" ? Math.trunc(parseInt(I)) : null : x = I, s("update:modelValue", x);
|
|
2318
2322
|
}
|
|
2319
2323
|
P = void 0;
|
|
2320
|
-
}, n.debounce !== void 0 ? (clearTimeout(
|
|
2324
|
+
}, n.debounce !== void 0 ? (clearTimeout(E), E = setTimeout(P, +n.debounce)) : P();
|
|
2321
2325
|
}
|
|
2322
2326
|
function k() {
|
|
2323
|
-
|
|
2327
|
+
K.value = null, s("update:modelValue", null);
|
|
2324
2328
|
}
|
|
2325
|
-
function
|
|
2329
|
+
function O(I) {
|
|
2326
2330
|
le.value = !1, s("blur", I);
|
|
2327
2331
|
}
|
|
2328
|
-
function
|
|
2332
|
+
function U() {
|
|
2329
2333
|
ne.value?.focus();
|
|
2330
2334
|
}
|
|
2331
2335
|
function z() {
|
|
@@ -2345,7 +2349,7 @@ const ml = {
|
|
|
2345
2349
|
width: "100%",
|
|
2346
2350
|
height: 36
|
|
2347
2351
|
})
|
|
2348
|
-
], 16)) : e.type === "date" || e.type === "datetime-local" ? (f(), D(r(
|
|
2352
|
+
], 16)) : e.type === "date" || e.type === "datetime-local" ? (f(), D(r($l), ae({ key: 1 }, r(a), {
|
|
2349
2353
|
"model-value": e.modelValue,
|
|
2350
2354
|
type: e.type,
|
|
2351
2355
|
"date-picker-options": e.datePickerOptions,
|
|
@@ -2368,7 +2372,7 @@ const ml = {
|
|
|
2368
2372
|
"onUpdate:modelValue": x[0] || (x[0] = (q) => s("update:modelValue", q ?? null)),
|
|
2369
2373
|
onBlur: x[1] || (x[1] = (q) => s("blur", q)),
|
|
2370
2374
|
onFocus: x[2] || (x[2] = (q) => s("focus"))
|
|
2371
|
-
}), null, 16, ["model-value", "type", "date-picker-options", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name", "aria-label"])) : e.type === "color" ? (f(), D(r(
|
|
2375
|
+
}), null, 16, ["model-value", "type", "date-picker-options", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name", "aria-label"])) : e.type === "color" ? (f(), D(r(Al), ae({ key: 2 }, r(a), {
|
|
2372
2376
|
"model-value": e.modelValue ?? null,
|
|
2373
2377
|
label: e.label,
|
|
2374
2378
|
placeholder: e.placeholder,
|
|
@@ -2424,9 +2428,9 @@ const ml = {
|
|
|
2424
2428
|
key: "0"
|
|
2425
2429
|
} : void 0
|
|
2426
2430
|
]), 1032, ["id", "html-for", "required", "multilanguage", "current-language", "error"])) : w("", !0),
|
|
2427
|
-
C("div",
|
|
2428
|
-
I.$slots.prepend ? (f(), h("div",
|
|
2429
|
-
B(I.$slots, "prepend", { focus:
|
|
2431
|
+
C("div", Dl, [
|
|
2432
|
+
I.$slots.prepend ? (f(), h("div", Vl, [
|
|
2433
|
+
B(I.$slots, "prepend", { focus: U })
|
|
2430
2434
|
])) : w("", !0),
|
|
2431
2435
|
C("div", {
|
|
2432
2436
|
class: G(["vc-input__field-wrapper", {
|
|
@@ -2434,12 +2438,12 @@ const ml = {
|
|
|
2434
2438
|
"vc-input__field-wrapper--small": e.size === "small"
|
|
2435
2439
|
}])
|
|
2436
2440
|
}, [
|
|
2437
|
-
C("div",
|
|
2438
|
-
I.$slots["prepend-inner"] ? (f(), h("div",
|
|
2439
|
-
B(I.$slots, "prepend-inner", { focus:
|
|
2441
|
+
C("div", Pl, [
|
|
2442
|
+
I.$slots["prepend-inner"] ? (f(), h("div", zl, [
|
|
2443
|
+
B(I.$slots, "prepend-inner", { focus: U })
|
|
2440
2444
|
])) : w("", !0),
|
|
2441
|
-
C("div",
|
|
2442
|
-
e.prefix ? (f(), h("div",
|
|
2445
|
+
C("div", Fl, [
|
|
2446
|
+
e.prefix ? (f(), h("div", Ul, M(e.prefix), 1)) : w("", !0),
|
|
2443
2447
|
B(I.$slots, "control", {
|
|
2444
2448
|
editable: r(m),
|
|
2445
2449
|
focused: e.autofocus,
|
|
@@ -2469,13 +2473,13 @@ const ml = {
|
|
|
2469
2473
|
class: "vc-input__input",
|
|
2470
2474
|
tabindex: "0",
|
|
2471
2475
|
onKeydown: F,
|
|
2472
|
-
onBlur:
|
|
2476
|
+
onBlur: O,
|
|
2473
2477
|
onFocus: z
|
|
2474
2478
|
}), null, 16, Kl), [
|
|
2475
2479
|
[rn, ie.value]
|
|
2476
2480
|
])
|
|
2477
2481
|
]),
|
|
2478
|
-
e.suffix ? (f(), h("div",
|
|
2482
|
+
e.suffix ? (f(), h("div", ql, M(e.suffix), 1)) : w("", !0),
|
|
2479
2483
|
e.clearable && Q.value && !r(m) && e.type !== "password" ? (f(), h("button", {
|
|
2480
2484
|
key: 2,
|
|
2481
2485
|
type: "button",
|
|
@@ -2487,7 +2491,7 @@ const ml = {
|
|
|
2487
2491
|
size: "xs",
|
|
2488
2492
|
icon: "lucide-x"
|
|
2489
2493
|
})
|
|
2490
|
-
], 8,
|
|
2494
|
+
], 8, Wl)) : w("", !0),
|
|
2491
2495
|
e.type === "password" ? (f(), h("button", {
|
|
2492
2496
|
key: 3,
|
|
2493
2497
|
type: "button",
|
|
@@ -2499,12 +2503,12 @@ const ml = {
|
|
|
2499
2503
|
size: "s",
|
|
2500
2504
|
icon: Z.value === "password" ? "lucide-eye-off" : "lucide-eye"
|
|
2501
2505
|
}, null, 8, ["icon"])
|
|
2502
|
-
], 8,
|
|
2506
|
+
], 8, jl)) : w("", !0)
|
|
2503
2507
|
]),
|
|
2504
|
-
I.$slots["append-inner"] ? (f(), h("div",
|
|
2505
|
-
B(I.$slots, "append-inner", { focus:
|
|
2508
|
+
I.$slots["append-inner"] ? (f(), h("div", Hl, [
|
|
2509
|
+
B(I.$slots, "append-inner", { focus: U })
|
|
2506
2510
|
])) : w("", !0),
|
|
2507
|
-
e.loading ? (f(), h("div",
|
|
2511
|
+
e.loading ? (f(), h("div", Gl, [
|
|
2508
2512
|
R(r(W), {
|
|
2509
2513
|
icon: "lucide-loader-2",
|
|
2510
2514
|
class: "vc-input__loading-icon",
|
|
@@ -2513,8 +2517,8 @@ const ml = {
|
|
|
2513
2517
|
])) : w("", !0)
|
|
2514
2518
|
])
|
|
2515
2519
|
], 2),
|
|
2516
|
-
I.$slots.append ? (f(), h("div",
|
|
2517
|
-
B(I.$slots, "append", { focus:
|
|
2520
|
+
I.$slots.append ? (f(), h("div", Yl, [
|
|
2521
|
+
B(I.$slots, "append", { focus: U })
|
|
2518
2522
|
])) : w("", !0)
|
|
2519
2523
|
]),
|
|
2520
2524
|
R(Pe, {
|
|
@@ -2522,7 +2526,7 @@ const ml = {
|
|
|
2522
2526
|
mode: "out-in"
|
|
2523
2527
|
}, {
|
|
2524
2528
|
default: L(() => [
|
|
2525
|
-
r(c) && e.errorMessage ? (f(), h("div",
|
|
2529
|
+
r(c) && e.errorMessage ? (f(), h("div", Jl, [
|
|
2526
2530
|
B(I.$slots, "error", {}, () => [
|
|
2527
2531
|
R(r(be), {
|
|
2528
2532
|
id: r(g),
|
|
@@ -2535,7 +2539,7 @@ const ml = {
|
|
|
2535
2539
|
_: 1
|
|
2536
2540
|
}, 8, ["id"])
|
|
2537
2541
|
])
|
|
2538
|
-
])) : (f(), h("div",
|
|
2542
|
+
])) : (f(), h("div", Xl, [
|
|
2539
2543
|
B(I.$slots, "hint", {}, () => [
|
|
2540
2544
|
e.hint ? (f(), D(r(be), {
|
|
2541
2545
|
key: 0,
|
|
@@ -2554,7 +2558,7 @@ const ml = {
|
|
|
2554
2558
|
})
|
|
2555
2559
|
], 16));
|
|
2556
2560
|
}
|
|
2557
|
-
}),
|
|
2561
|
+
}), hr = xn.create({
|
|
2558
2562
|
name: "fontSize",
|
|
2559
2563
|
addOptions() {
|
|
2560
2564
|
return {
|
|
@@ -2584,7 +2588,7 @@ const ml = {
|
|
|
2584
2588
|
};
|
|
2585
2589
|
}
|
|
2586
2590
|
});
|
|
2587
|
-
function
|
|
2591
|
+
function Zl(e = {}) {
|
|
2588
2592
|
const {
|
|
2589
2593
|
containerSelector: t = '[role="menu"]',
|
|
2590
2594
|
itemSelector: n = '[tabindex="0"]',
|
|
@@ -2595,22 +2599,22 @@ function Xl(e = {}) {
|
|
|
2595
2599
|
(s.value >= p.length || s.value < 0) && (s.value = p.length > 0 ? 0 : -1);
|
|
2596
2600
|
}, v = (p) => {
|
|
2597
2601
|
if (!l.value) return;
|
|
2598
|
-
const
|
|
2599
|
-
if (
|
|
2600
|
-
switch (u(
|
|
2602
|
+
const E = Array.from(l.value.querySelectorAll(n));
|
|
2603
|
+
if (E.length)
|
|
2604
|
+
switch (u(E), p.key) {
|
|
2601
2605
|
case "Tab":
|
|
2602
|
-
b(p,
|
|
2606
|
+
b(p, E);
|
|
2603
2607
|
break;
|
|
2604
2608
|
case "ArrowDown":
|
|
2605
|
-
p.preventDefault(), g(
|
|
2609
|
+
p.preventDefault(), g(E);
|
|
2606
2610
|
break;
|
|
2607
2611
|
case "ArrowUp":
|
|
2608
|
-
p.preventDefault(), d(
|
|
2612
|
+
p.preventDefault(), d(E);
|
|
2609
2613
|
break;
|
|
2610
2614
|
case "Enter":
|
|
2611
2615
|
case " ":
|
|
2612
|
-
if (s.value >= 0 && s.value <
|
|
2613
|
-
const P =
|
|
2616
|
+
if (s.value >= 0 && s.value < E.length) {
|
|
2617
|
+
const P = E[s.value];
|
|
2614
2618
|
P && (p.preventDefault(), a ? a(P) : typeof P.click == "function" && P.click());
|
|
2615
2619
|
}
|
|
2616
2620
|
break;
|
|
@@ -2618,8 +2622,8 @@ function Xl(e = {}) {
|
|
|
2618
2622
|
i && (p.preventDefault(), p.stopPropagation(), i());
|
|
2619
2623
|
break;
|
|
2620
2624
|
}
|
|
2621
|
-
}, b = (p,
|
|
2622
|
-
p.shiftKey ? d(
|
|
2625
|
+
}, b = (p, E) => {
|
|
2626
|
+
p.shiftKey ? d(E) : g(E);
|
|
2623
2627
|
}, g = (p) => {
|
|
2624
2628
|
if (!p.length) return;
|
|
2625
2629
|
if (u(p), s.value < p.length - 1)
|
|
@@ -2628,8 +2632,8 @@ function Xl(e = {}) {
|
|
|
2628
2632
|
s.value = 0;
|
|
2629
2633
|
else
|
|
2630
2634
|
return;
|
|
2631
|
-
const
|
|
2632
|
-
|
|
2635
|
+
const E = p[s.value];
|
|
2636
|
+
E && typeof E.focus == "function" && E.focus();
|
|
2633
2637
|
}, d = (p) => {
|
|
2634
2638
|
if (!p.length) return;
|
|
2635
2639
|
if (u(p), s.value > 0)
|
|
@@ -2638,18 +2642,18 @@ function Xl(e = {}) {
|
|
|
2638
2642
|
s.value = p.length - 1;
|
|
2639
2643
|
else
|
|
2640
2644
|
return;
|
|
2641
|
-
const
|
|
2642
|
-
|
|
2645
|
+
const E = p[s.value];
|
|
2646
|
+
E && typeof E.focus == "function" && E.focus();
|
|
2643
2647
|
}, c = (p) => {
|
|
2644
2648
|
if (!p.length) return;
|
|
2645
2649
|
s.value = 0;
|
|
2646
|
-
const
|
|
2647
|
-
|
|
2650
|
+
const E = p[0];
|
|
2651
|
+
E && typeof E.focus == "function" && E.focus();
|
|
2648
2652
|
}, m = (p) => {
|
|
2649
2653
|
if (!p.length) return;
|
|
2650
2654
|
s.value = p.length - 1;
|
|
2651
|
-
const
|
|
2652
|
-
|
|
2655
|
+
const E = p[p.length - 1];
|
|
2656
|
+
E && typeof E.focus == "function" && E.focus();
|
|
2653
2657
|
}, y = (p) => {
|
|
2654
2658
|
l.value && l.value.removeEventListener("keydown", v), l.value = p, p.addEventListener("keydown", v);
|
|
2655
2659
|
}, T = () => {
|
|
@@ -2691,8 +2695,8 @@ function Xl(e = {}) {
|
|
|
2691
2695
|
},
|
|
2692
2696
|
setFocusedIndex: (p) => {
|
|
2693
2697
|
if (l.value) {
|
|
2694
|
-
const
|
|
2695
|
-
p >= 0 && p <
|
|
2698
|
+
const E = Array.from(l.value.querySelectorAll(n));
|
|
2699
|
+
p >= 0 && p < E.length && (s.value = p);
|
|
2696
2700
|
}
|
|
2697
2701
|
},
|
|
2698
2702
|
getFocusedIndex: () => s.value
|
|
@@ -2702,8 +2706,8 @@ function Et(e, t) {
|
|
|
2702
2706
|
const n = e !== void 0 ? e : t;
|
|
2703
2707
|
return typeof n == "function" ? n : (a) => a === null || typeof a != "object" ? a : n && n in a ? a[n] : a;
|
|
2704
2708
|
}
|
|
2705
|
-
function
|
|
2706
|
-
const t =
|
|
2709
|
+
function Ql(e) {
|
|
2710
|
+
const t = $(() => Et(e.optionValue(), "id")), n = $(() => Et(e.optionLabel(), "title"));
|
|
2707
2711
|
function a(l, s, u, v) {
|
|
2708
2712
|
const b = (g) => De(t.value(g), l);
|
|
2709
2713
|
return u.find(b) || v.find(b) || s.find(b) || l;
|
|
@@ -2722,7 +2726,7 @@ function Zl(e) {
|
|
|
2722
2726
|
fieldValueIsFilled: o
|
|
2723
2727
|
};
|
|
2724
2728
|
}
|
|
2725
|
-
function
|
|
2729
|
+
function _l() {
|
|
2726
2730
|
const e = S(null), t = S(!1);
|
|
2727
2731
|
let n = null, a = null;
|
|
2728
2732
|
function i() {
|
|
@@ -2752,7 +2756,7 @@ function Ql() {
|
|
|
2752
2756
|
ensureVisibility: o
|
|
2753
2757
|
};
|
|
2754
2758
|
}
|
|
2755
|
-
function
|
|
2759
|
+
function eo(e) {
|
|
2756
2760
|
const t = S(!1), n = S(!1), a = S(null), i = S(null);
|
|
2757
2761
|
function o() {
|
|
2758
2762
|
return {
|
|
@@ -2767,14 +2771,14 @@ function _l(e) {
|
|
|
2767
2771
|
};
|
|
2768
2772
|
}
|
|
2769
2773
|
const l = kn(a, i, {
|
|
2770
|
-
placement:
|
|
2771
|
-
middleware:
|
|
2774
|
+
placement: $(() => e.placement),
|
|
2775
|
+
middleware: $(() => [
|
|
2772
2776
|
Dn({ fallbackPlacements: ["top", "bottom"] }),
|
|
2773
2777
|
Vn({ mainAxis: !1 }),
|
|
2774
2778
|
o(),
|
|
2775
2779
|
Pn({ mainAxis: 4 })
|
|
2776
2780
|
])
|
|
2777
|
-
}), s =
|
|
2781
|
+
}), s = $(() => ({
|
|
2778
2782
|
top: `${l.y.value ?? 0}px`,
|
|
2779
2783
|
left: `${l.x.value ?? 0}px`,
|
|
2780
2784
|
width: l.middlewareData.value.sameWidth?.width
|
|
@@ -2798,14 +2802,14 @@ function _l(e) {
|
|
|
2798
2802
|
toggleDropdown: u
|
|
2799
2803
|
};
|
|
2800
2804
|
}
|
|
2801
|
-
function
|
|
2805
|
+
function to(e) {
|
|
2802
2806
|
const t = S([]), n = S(null), a = S(0), i = S(0), o = S(!1), l = S(!1), s = S(!1), u = S(!1), v = S(), b = S([]), g = S(!1), d = /* @__PURE__ */ new Map();
|
|
2803
2807
|
let c = !1, m = 0, y = 0, T = 0, p;
|
|
2804
|
-
const
|
|
2805
|
-
function
|
|
2808
|
+
const E = $(() => n.value ?? t.value), P = $(() => n.value !== null ? !l.value && n.value.length < i.value : !o.value && t.value.length < a.value);
|
|
2809
|
+
function K(A) {
|
|
2806
2810
|
for (const k of A) {
|
|
2807
|
-
const
|
|
2808
|
-
d.set(
|
|
2811
|
+
const O = String(e.getOptionValue.value(k));
|
|
2812
|
+
d.set(O, k);
|
|
2809
2813
|
}
|
|
2810
2814
|
}
|
|
2811
2815
|
function ne() {
|
|
@@ -2818,14 +2822,14 @@ function eo(e) {
|
|
|
2818
2822
|
if (typeof A == "function")
|
|
2819
2823
|
try {
|
|
2820
2824
|
s.value = !0;
|
|
2821
|
-
const k = await A(void 0, 0),
|
|
2822
|
-
t.value =
|
|
2825
|
+
const k = await A(void 0, 0), O = k?.results ?? [];
|
|
2826
|
+
t.value = O, a.value = k?.totalCount ?? 0, m = O.length, o.value = O.length === 0 || m >= a.value, K(t.value), c = !0;
|
|
2823
2827
|
} catch (k) {
|
|
2824
2828
|
console.error("useSelectDataSource: error loading options", k), t.value = [], a.value = 0, m = 0, o.value = !0;
|
|
2825
2829
|
} finally {
|
|
2826
2830
|
s.value = !1;
|
|
2827
2831
|
}
|
|
2828
|
-
else Array.isArray(A) && (t.value = [...A], a.value = t.value.length, m = t.value.length, o.value = !0,
|
|
2832
|
+
else Array.isArray(A) && (t.value = [...A], a.value = t.value.length, m = t.value.length, o.value = !0, K(t.value), c = !0);
|
|
2829
2833
|
}
|
|
2830
2834
|
function le() {
|
|
2831
2835
|
ne();
|
|
@@ -2833,18 +2837,18 @@ function eo(e) {
|
|
|
2833
2837
|
async function Q() {
|
|
2834
2838
|
const A = e.options();
|
|
2835
2839
|
if (typeof A != "function" || s.value || !P.value) return;
|
|
2836
|
-
const k = n.value !== null,
|
|
2840
|
+
const k = n.value !== null, O = T, U = n.value;
|
|
2837
2841
|
try {
|
|
2838
2842
|
s.value = !0;
|
|
2839
2843
|
const z = await A(v.value, k ? y : m);
|
|
2840
|
-
if (k && (n.value !==
|
|
2844
|
+
if (k && (n.value !== U || O !== T)) return;
|
|
2841
2845
|
const I = z?.results ?? [];
|
|
2842
2846
|
if (k ? y += I.length : m += I.length, I.length === 0) {
|
|
2843
2847
|
k ? l.value = !0 : o.value = !0;
|
|
2844
2848
|
return;
|
|
2845
2849
|
}
|
|
2846
2850
|
const x = k ? n.value : t.value, q = new Set(x.map((Re) => String(e.getOptionValue.value(Re)))), ve = I.filter((Re) => !q.has(String(e.getOptionValue.value(Re))));
|
|
2847
|
-
k ? (n.value = [...x, ...ve], i.value = z?.totalCount ?? i.value, y >= i.value && (l.value = !0)) : (t.value = [...x, ...ve], a.value = z?.totalCount ?? a.value, m >= a.value && (o.value = !0)),
|
|
2851
|
+
k ? (n.value = [...x, ...ve], i.value = z?.totalCount ?? i.value, y >= i.value && (l.value = !0)) : (t.value = [...x, ...ve], a.value = z?.totalCount ?? a.value, m >= a.value && (o.value = !0)), K(ve);
|
|
2848
2852
|
} catch (z) {
|
|
2849
2853
|
console.error("useSelectDataSource: error loading more", z);
|
|
2850
2854
|
} finally {
|
|
@@ -2855,58 +2859,58 @@ function eo(e) {
|
|
|
2855
2859
|
v.value = A;
|
|
2856
2860
|
const k = e.options();
|
|
2857
2861
|
if (typeof k == "function") {
|
|
2858
|
-
const
|
|
2862
|
+
const O = ++T;
|
|
2859
2863
|
try {
|
|
2860
2864
|
u.value = !0;
|
|
2861
|
-
const
|
|
2862
|
-
if (
|
|
2863
|
-
const z =
|
|
2864
|
-
n.value = z, i.value =
|
|
2865
|
-
} catch (
|
|
2866
|
-
if (
|
|
2867
|
-
console.error("useSelectDataSource: error searching",
|
|
2865
|
+
const U = await k(A);
|
|
2866
|
+
if (O !== T) return;
|
|
2867
|
+
const z = U?.results ?? [];
|
|
2868
|
+
n.value = z, i.value = U?.totalCount ?? 0, y = z.length, l.value = z.length === 0 || y >= i.value, K(z);
|
|
2869
|
+
} catch (U) {
|
|
2870
|
+
if (O !== T) return;
|
|
2871
|
+
console.error("useSelectDataSource: error searching", U), n.value = [], i.value = 0, y = 0, l.value = !0;
|
|
2868
2872
|
} finally {
|
|
2869
|
-
|
|
2873
|
+
O === T && (u.value = !1);
|
|
2870
2874
|
}
|
|
2871
2875
|
} else {
|
|
2872
|
-
const
|
|
2873
|
-
const z = e.getOptionLabel.value(
|
|
2876
|
+
const O = t.value.filter((U) => {
|
|
2877
|
+
const z = e.getOptionLabel.value(U);
|
|
2874
2878
|
return String(z).toLowerCase().includes(A.toLowerCase());
|
|
2875
2879
|
});
|
|
2876
|
-
n.value =
|
|
2880
|
+
n.value = O, i.value = O.length, y = O.length, l.value = !0;
|
|
2877
2881
|
}
|
|
2878
2882
|
}
|
|
2879
2883
|
function fe(A) {
|
|
2880
2884
|
if (!A?.target) return;
|
|
2881
|
-
const k = A.target.value,
|
|
2882
|
-
p && clearTimeout(p),
|
|
2885
|
+
const k = A.target.value, O = Number(e.debounce());
|
|
2886
|
+
p && clearTimeout(p), O > 0 ? p = setTimeout(() => {
|
|
2883
2887
|
e.emit.search(k), ce(k);
|
|
2884
|
-
},
|
|
2888
|
+
}, O) : (e.emit.search(k), ce(k));
|
|
2885
2889
|
}
|
|
2886
2890
|
function ie() {
|
|
2887
2891
|
ne();
|
|
2888
2892
|
}
|
|
2889
2893
|
async function F(A) {
|
|
2890
2894
|
if (A.length === 0) return [];
|
|
2891
|
-
const
|
|
2895
|
+
const O = A.filter((I) => !d.has(String(I))).filter((I) => {
|
|
2892
2896
|
const x = t.value.find((q) => De(e.getOptionValue.value(q), I));
|
|
2893
2897
|
return x ? (d.set(String(I), x), !1) : !0;
|
|
2894
|
-
}),
|
|
2895
|
-
if (
|
|
2898
|
+
}), U = e.options();
|
|
2899
|
+
if (O.length > 0 && typeof U == "function") {
|
|
2896
2900
|
try {
|
|
2897
2901
|
g.value = !0;
|
|
2898
|
-
const x = await
|
|
2899
|
-
x?.results &&
|
|
2902
|
+
const x = await U(void 0, void 0, O);
|
|
2903
|
+
x?.results && K(x.results);
|
|
2900
2904
|
} catch (x) {
|
|
2901
2905
|
console.error("useSelectDataSource: error resolving", x);
|
|
2902
2906
|
} finally {
|
|
2903
2907
|
g.value = !1;
|
|
2904
2908
|
}
|
|
2905
|
-
|
|
2906
|
-
} else if (
|
|
2907
|
-
for (const I of
|
|
2909
|
+
O.filter((x) => !d.has(String(x))).length > 0 && !c && await Z();
|
|
2910
|
+
} else if (O.length > 0 && Array.isArray(U))
|
|
2911
|
+
for (const I of U) {
|
|
2908
2912
|
const x = String(e.getOptionValue.value(I));
|
|
2909
|
-
|
|
2913
|
+
O.includes(x) && d.set(x, I);
|
|
2910
2914
|
}
|
|
2911
2915
|
const z = A.map((I) => d.get(String(I))).filter(Boolean);
|
|
2912
2916
|
return b.value = z, z;
|
|
@@ -2919,17 +2923,17 @@ function eo(e) {
|
|
|
2919
2923
|
async () => {
|
|
2920
2924
|
t.value = [], a.value = 0, m = 0, o.value = !1, ne(), d.clear(), c = !1;
|
|
2921
2925
|
const A = e.options();
|
|
2922
|
-
if (Array.isArray(A) && (t.value = [...A], a.value = t.value.length, m = t.value.length, o.value = !0,
|
|
2926
|
+
if (Array.isArray(A) && (t.value = [...A], a.value = t.value.length, m = t.value.length, o.value = !0, K(t.value), c = !0, b.value.length === 0)) {
|
|
2923
2927
|
const k = b.value;
|
|
2924
|
-
(k.length === 0 ? t.value.filter((
|
|
2925
|
-
const z = String(e.getOptionValue.value(
|
|
2928
|
+
(k.length === 0 ? t.value.filter((U) => {
|
|
2929
|
+
const z = String(e.getOptionValue.value(U));
|
|
2926
2930
|
return d.has(z);
|
|
2927
2931
|
}) : k).length;
|
|
2928
2932
|
}
|
|
2929
2933
|
},
|
|
2930
2934
|
{ deep: !1 }
|
|
2931
2935
|
), {
|
|
2932
|
-
displayItems:
|
|
2936
|
+
displayItems: E,
|
|
2933
2937
|
loading: s,
|
|
2934
2938
|
searchLoading: u,
|
|
2935
2939
|
hasMore: P,
|
|
@@ -2946,9 +2950,9 @@ function eo(e) {
|
|
|
2946
2950
|
refresh: H
|
|
2947
2951
|
};
|
|
2948
2952
|
}
|
|
2949
|
-
function
|
|
2953
|
+
function no(e) {
|
|
2950
2954
|
let t = [];
|
|
2951
|
-
const n =
|
|
2955
|
+
const n = $(() => {
|
|
2952
2956
|
const g = e.mapOptions() === !0 && e.multiple() !== !0, d = e.modelValue() !== void 0 && (e.modelValue() !== null || g === !0) ? e.multiple() === !0 && Array.isArray(e.modelValue()) ? e.modelValue() : [e.modelValue()] : [];
|
|
2953
2957
|
if (e.mapOptions() === !0 && Array.isArray(e.displayItems.value) === !0) {
|
|
2954
2958
|
const c = e.mapOptions() === !0 && t !== void 0 ? t : [], m = d.map((y) => {
|
|
@@ -2970,12 +2974,12 @@ function to(e) {
|
|
|
2970
2974
|
},
|
|
2971
2975
|
{ immediate: !0 }
|
|
2972
2976
|
);
|
|
2973
|
-
const a =
|
|
2977
|
+
const a = $(() => n.value.map((g) => e.getOptionValue.value(g)));
|
|
2974
2978
|
function i(g) {
|
|
2975
2979
|
const d = e.getOptionValue.value(g);
|
|
2976
2980
|
return a.value.find((c) => De(c, d)) !== void 0;
|
|
2977
2981
|
}
|
|
2978
|
-
const o =
|
|
2982
|
+
const o = $(
|
|
2979
2983
|
() => n.value.map((g, d) => ({
|
|
2980
2984
|
index: d,
|
|
2981
2985
|
opt: g,
|
|
@@ -2983,7 +2987,7 @@ function to(e) {
|
|
|
2983
2987
|
toggleOption: u,
|
|
2984
2988
|
removeAtIndex: v
|
|
2985
2989
|
}))
|
|
2986
|
-
), l =
|
|
2990
|
+
), l = $(() => e.fieldValueIsFilled(n.value)), s = $(() => e.displayItems.value.map((g, d) => ({
|
|
2987
2991
|
index: d,
|
|
2988
2992
|
opt: g,
|
|
2989
2993
|
selected: i(g) === !0,
|
|
@@ -3039,40 +3043,40 @@ function to(e) {
|
|
|
3039
3043
|
onReset: b
|
|
3040
3044
|
};
|
|
3041
3045
|
}
|
|
3042
|
-
const
|
|
3046
|
+
const ao = { class: "vc-select__trigger" }, lo = { class: "vc-select__control" }, oo = {
|
|
3043
3047
|
key: 0,
|
|
3044
3048
|
class: "vc-select__prepend"
|
|
3045
|
-
},
|
|
3049
|
+
}, io = { class: "vc-select__field" }, ro = { class: "vc-select__field-inner" }, so = { class: "vc-select__field-content" }, uo = {
|
|
3046
3050
|
key: 0,
|
|
3047
3051
|
class: "vc-select__prepend-inner"
|
|
3048
|
-
},
|
|
3052
|
+
}, co = { class: "vc-select__field-main" }, fo = {
|
|
3049
3053
|
key: 0,
|
|
3050
3054
|
class: "vc-select__prefix"
|
|
3051
|
-
},
|
|
3055
|
+
}, vo = ["aria-expanded", "aria-controls", "aria-labelledby", "aria-describedby", "aria-required", "aria-invalid"], go = {
|
|
3052
3056
|
key: 0,
|
|
3053
3057
|
class: "vc-select__placeholder"
|
|
3054
|
-
},
|
|
3058
|
+
}, mo = {
|
|
3055
3059
|
key: 1,
|
|
3056
3060
|
class: "vc-select__selected"
|
|
3057
|
-
},
|
|
3061
|
+
}, po = { class: "vc-select__multiple-item" }, bo = {
|
|
3058
3062
|
key: 0,
|
|
3059
3063
|
class: "vc-select__loading"
|
|
3060
|
-
},
|
|
3064
|
+
}, yo = { key: 1 }, ho = ["aria-label", "onClick", "onKeydown"], Io = {
|
|
3061
3065
|
key: 0,
|
|
3062
3066
|
class: "vc-select__loading"
|
|
3063
|
-
},
|
|
3067
|
+
}, ko = {
|
|
3064
3068
|
key: 1,
|
|
3065
3069
|
class: "vc-select__suffix"
|
|
3066
|
-
},
|
|
3070
|
+
}, So = ["aria-label"], $o = {
|
|
3067
3071
|
key: 1,
|
|
3068
3072
|
class: "vc-select__append-inner"
|
|
3069
|
-
},
|
|
3073
|
+
}, Eo = {
|
|
3070
3074
|
key: 2,
|
|
3071
3075
|
class: "vc-select__loading-icon"
|
|
3072
|
-
},
|
|
3076
|
+
}, Oo = ["aria-label"], wo = { class: "vc-select__chevron" }, Lo = {
|
|
3073
3077
|
key: 1,
|
|
3074
3078
|
class: "vc-select__append"
|
|
3075
|
-
},
|
|
3079
|
+
}, Co = { class: "vc-select__hint-error" }, To = { key: 0 }, Bo = { key: 1 }, Ro = /* @__PURE__ */ V({
|
|
3076
3080
|
__name: "SelectTrigger",
|
|
3077
3081
|
props: {
|
|
3078
3082
|
isOpened: { type: Boolean },
|
|
@@ -3107,7 +3111,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3107
3111
|
const { t: n } = ye({ useScope: "global" }), a = S(null);
|
|
3108
3112
|
return t({
|
|
3109
3113
|
toggleRef: a
|
|
3110
|
-
}), (i, o) => (f(), h("div",
|
|
3114
|
+
}), (i, o) => (f(), h("div", ao, [
|
|
3111
3115
|
C("div", {
|
|
3112
3116
|
ref_key: "toggleRef",
|
|
3113
3117
|
ref: a,
|
|
@@ -3117,8 +3121,8 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3117
3121
|
toggleHandler: e.toggleDropdown,
|
|
3118
3122
|
isOpened: e.isOpened
|
|
3119
3123
|
}, () => [
|
|
3120
|
-
C("div",
|
|
3121
|
-
i.$slots.prepend ? (f(), h("div",
|
|
3124
|
+
C("div", lo, [
|
|
3125
|
+
i.$slots.prepend ? (f(), h("div", oo, [
|
|
3122
3126
|
B(i.$slots, "prepend")
|
|
3123
3127
|
])) : w("", !0),
|
|
3124
3128
|
C("div", {
|
|
@@ -3127,14 +3131,14 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3127
3131
|
"vc-select__field-wrapper--small": e.size === "small"
|
|
3128
3132
|
}])
|
|
3129
3133
|
}, [
|
|
3130
|
-
C("div",
|
|
3131
|
-
C("div",
|
|
3132
|
-
C("div",
|
|
3133
|
-
i.$slots["prepend-inner"] ? (f(), h("div",
|
|
3134
|
+
C("div", io, [
|
|
3135
|
+
C("div", ro, [
|
|
3136
|
+
C("div", so, [
|
|
3137
|
+
i.$slots["prepend-inner"] ? (f(), h("div", uo, [
|
|
3134
3138
|
B(i.$slots, "prepend-inner")
|
|
3135
3139
|
])) : w("", !0),
|
|
3136
|
-
C("div",
|
|
3137
|
-
e.prefix ? (f(), h("div",
|
|
3140
|
+
C("div", co, [
|
|
3141
|
+
e.prefix ? (f(), h("div", fo, M(e.prefix), 1)) : w("", !0),
|
|
3138
3142
|
C("div", {
|
|
3139
3143
|
"data-test-id": "dropdown-toggle",
|
|
3140
3144
|
class: "vc-select__input",
|
|
@@ -3167,7 +3171,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3167
3171
|
onFocus: o[3] || (o[3] = (l) => i.$emit("focus")),
|
|
3168
3172
|
onBlur: o[4] || (o[4] = (l) => i.$emit("blur"))
|
|
3169
3173
|
}, [
|
|
3170
|
-
e.hasValue ? e.selectedScope && e.selectedScope.length && e.hasValue ? (f(), h("div",
|
|
3174
|
+
e.hasValue ? e.selectedScope && e.selectedScope.length && e.hasValue ? (f(), h("div", mo, [
|
|
3171
3175
|
(f(!0), h(Ce, null, rt(e.selectedScope, (l, s) => (f(), h("div", {
|
|
3172
3176
|
key: s,
|
|
3173
3177
|
class: "vc-select__selected-item"
|
|
@@ -3176,8 +3180,8 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3176
3180
|
key: 0,
|
|
3177
3181
|
ref_for: !0
|
|
3178
3182
|
}, l), () => [
|
|
3179
|
-
C("div",
|
|
3180
|
-
e.loading ? (f(), h("span",
|
|
3183
|
+
C("div", po, [
|
|
3184
|
+
e.loading ? (f(), h("span", bo, M(r(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : (f(), h("span", yo, M(e.getOptionLabel(l.opt)), 1)),
|
|
3181
3185
|
e.disabled ? w("", !0) : (f(), h("button", {
|
|
3182
3186
|
key: 2,
|
|
3183
3187
|
type: "button",
|
|
@@ -3192,10 +3196,10 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3192
3196
|
icon: "lucide-x",
|
|
3193
3197
|
size: "xs"
|
|
3194
3198
|
})
|
|
3195
|
-
], 40,
|
|
3199
|
+
], 40, ho))
|
|
3196
3200
|
])
|
|
3197
3201
|
]) : e.multiple ? w("", !0) : (f(), h(Ce, { key: 1 }, [
|
|
3198
|
-
e.loading ? (f(), h("span",
|
|
3202
|
+
e.loading ? (f(), h("span", Io, M(r(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : B(i.$slots, "selected-item", ae({
|
|
3199
3203
|
key: 1,
|
|
3200
3204
|
ref_for: !0
|
|
3201
3205
|
}, l), () => [
|
|
@@ -3203,15 +3207,15 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3203
3207
|
])
|
|
3204
3208
|
], 64))
|
|
3205
3209
|
]))), 128))
|
|
3206
|
-
])) : w("", !0) : (f(), h("div",
|
|
3210
|
+
])) : w("", !0) : (f(), h("div", go, [
|
|
3207
3211
|
e.placeholder ? (f(), h(Ce, { key: 0 }, [
|
|
3208
3212
|
ee(M(e.placeholder), 1)
|
|
3209
3213
|
], 64)) : (f(), h(Ce, { key: 1 }, [
|
|
3210
3214
|
ee(M(r(n)("COMPONENTS.MOLECULES.VC_SELECT.CLICK_TO_SELECT")), 1)
|
|
3211
3215
|
], 64))
|
|
3212
3216
|
]))
|
|
3213
|
-
], 40,
|
|
3214
|
-
e.suffix ? (f(), h("div",
|
|
3217
|
+
], 40, vo),
|
|
3218
|
+
e.suffix ? (f(), h("div", ko, M(e.suffix), 1)) : w("", !0),
|
|
3215
3219
|
e.clearable && e.hasValue && !e.disabled ? (f(), h("div", {
|
|
3216
3220
|
key: 2,
|
|
3217
3221
|
class: "vc-select__clear",
|
|
@@ -3228,12 +3232,12 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3228
3232
|
size: "xs",
|
|
3229
3233
|
icon: "lucide-x"
|
|
3230
3234
|
})
|
|
3231
|
-
], 40,
|
|
3235
|
+
], 40, So)) : w("", !0)
|
|
3232
3236
|
]),
|
|
3233
|
-
i.$slots["append-inner"] ? (f(), h("div",
|
|
3237
|
+
i.$slots["append-inner"] ? (f(), h("div", $o, [
|
|
3234
3238
|
B(i.$slots, "append-inner")
|
|
3235
3239
|
])) : w("", !0),
|
|
3236
|
-
e.loading || e.listLoading || e.defaultOptionLoading ? (f(), h("div",
|
|
3240
|
+
e.loading || e.listLoading || e.defaultOptionLoading ? (f(), h("div", Eo, [
|
|
3237
3241
|
R(r(W), {
|
|
3238
3242
|
icon: "lucide-loader-2",
|
|
3239
3243
|
class: "tw-animate-spin",
|
|
@@ -3264,30 +3268,30 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3264
3268
|
), ["space"]))
|
|
3265
3269
|
]
|
|
3266
3270
|
}, [
|
|
3267
|
-
C("div",
|
|
3271
|
+
C("div", wo, [
|
|
3268
3272
|
R(r(W), {
|
|
3269
3273
|
size: "s",
|
|
3270
3274
|
icon: "lucide-chevron-down"
|
|
3271
3275
|
})
|
|
3272
3276
|
])
|
|
3273
|
-
], 40,
|
|
3277
|
+
], 40, Oo))
|
|
3274
3278
|
])
|
|
3275
3279
|
])
|
|
3276
3280
|
])
|
|
3277
3281
|
], 2),
|
|
3278
|
-
i.$slots.append ? (f(), h("div",
|
|
3282
|
+
i.$slots.append ? (f(), h("div", Lo, [
|
|
3279
3283
|
B(i.$slots, "append")
|
|
3280
3284
|
])) : w("", !0)
|
|
3281
3285
|
])
|
|
3282
3286
|
])
|
|
3283
3287
|
], 512),
|
|
3284
|
-
C("div",
|
|
3288
|
+
C("div", Co, [
|
|
3285
3289
|
R(Pe, {
|
|
3286
3290
|
name: "slide-up",
|
|
3287
3291
|
mode: "out-in"
|
|
3288
3292
|
}, {
|
|
3289
3293
|
default: L(() => [
|
|
3290
|
-
e.error && e.errorMessage ? (f(), h("div",
|
|
3294
|
+
e.error && e.errorMessage ? (f(), h("div", To, [
|
|
3291
3295
|
B(i.$slots, "error", {}, () => [
|
|
3292
3296
|
R(r(be), {
|
|
3293
3297
|
id: e.errorId,
|
|
@@ -3300,7 +3304,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3300
3304
|
_: 1
|
|
3301
3305
|
}, 8, ["id"])
|
|
3302
3306
|
])
|
|
3303
|
-
])) : (f(), h("div",
|
|
3307
|
+
])) : (f(), h("div", Bo, [
|
|
3304
3308
|
B(i.$slots, "hint", {}, () => [
|
|
3305
3309
|
e.hint ? (f(), D(r(be), {
|
|
3306
3310
|
key: 0,
|
|
@@ -3320,16 +3324,16 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3320
3324
|
])
|
|
3321
3325
|
]));
|
|
3322
3326
|
}
|
|
3323
|
-
}),
|
|
3327
|
+
}), xo = ["id", "aria-label"], Mo = ["aria-label"], No = ["aria-selected", "data-index", "onClick", "onKeydown"], Ao = {
|
|
3324
3328
|
key: 0,
|
|
3325
3329
|
class: "vc-select__check-icon"
|
|
3326
|
-
},
|
|
3330
|
+
}, Do = {
|
|
3327
3331
|
key: 0,
|
|
3328
3332
|
class: "vc-select__list-loading-indicator"
|
|
3329
|
-
},
|
|
3333
|
+
}, Vo = { class: "tw-ms-1" }, Po = {
|
|
3330
3334
|
key: 1,
|
|
3331
3335
|
class: "vc-select__no-options"
|
|
3332
|
-
},
|
|
3336
|
+
}, zo = { class: "vc-select__no-options-text" }, Fo = /* @__PURE__ */ V({
|
|
3333
3337
|
__name: "SelectDropdown",
|
|
3334
3338
|
props: {
|
|
3335
3339
|
isOpened: { type: Boolean },
|
|
@@ -3345,7 +3349,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3345
3349
|
},
|
|
3346
3350
|
emits: ["input", "clickOutside"],
|
|
3347
3351
|
setup(e, { expose: t, emit: n }) {
|
|
3348
|
-
const a = e, i = n, { t: o } = ye({ useScope: "global" }), { teleportTarget: l } = Sn(), s = S(null), u = S(null), v = S(null), b = S(null), g =
|
|
3352
|
+
const a = e, i = n, { t: o } = ye({ useScope: "global" }), { teleportTarget: l } = Sn(), s = S(null), u = S(null), v = S(null), b = S(null), g = $(() => v.value?.viewportRef ?? null);
|
|
3349
3353
|
function d(c) {
|
|
3350
3354
|
const m = g.value;
|
|
3351
3355
|
if (!m) return;
|
|
@@ -3401,8 +3405,8 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3401
3405
|
m[2] || (m[2] = _(J(() => {
|
|
3402
3406
|
}, ["stop"]), ["enter"]))
|
|
3403
3407
|
]
|
|
3404
|
-
}, null, 40,
|
|
3405
|
-
R(r(
|
|
3408
|
+
}, null, 40, Mo)) : w("", !0),
|
|
3409
|
+
R(r(il), {
|
|
3406
3410
|
ref_key: "scrollContainerRef",
|
|
3407
3411
|
ref: v,
|
|
3408
3412
|
class: "vc-select__scroll-container"
|
|
@@ -3425,24 +3429,24 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3425
3429
|
B(c.$slots, "option", ae({ ref_for: !0 }, y), () => [
|
|
3426
3430
|
ee(M(y.label), 1)
|
|
3427
3431
|
]),
|
|
3428
|
-
y.selected ? (f(), h("span",
|
|
3432
|
+
y.selected ? (f(), h("span", Ao, [
|
|
3429
3433
|
R(r(W), {
|
|
3430
3434
|
icon: "lucide-check",
|
|
3431
3435
|
size: "xs"
|
|
3432
3436
|
})
|
|
3433
3437
|
])) : w("", !0)
|
|
3434
|
-
], 42,
|
|
3435
|
-
e.listLoading ? (f(), h("div",
|
|
3438
|
+
], 42, No))), 128)),
|
|
3439
|
+
e.listLoading ? (f(), h("div", Do, [
|
|
3436
3440
|
R(r(W), {
|
|
3437
3441
|
icon: "lucide-loader-2",
|
|
3438
3442
|
class: "tw-animate-spin",
|
|
3439
3443
|
size: "m"
|
|
3440
3444
|
}),
|
|
3441
|
-
C("span",
|
|
3445
|
+
C("span", Vo, M(e.optionsListLength > 0 ? r(o)("COMPONENTS.MOLECULES.VC_SELECT.LOADING_MORE") : r(o)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)
|
|
3442
3446
|
])) : w("", !0),
|
|
3443
|
-
!e.listLoading && !e.optionsListLength ? (f(), h("div",
|
|
3447
|
+
!e.listLoading && !e.optionsListLength ? (f(), h("div", Po, [
|
|
3444
3448
|
B(c.$slots, "no-options", {}, () => [
|
|
3445
|
-
C("span",
|
|
3449
|
+
C("span", zo, M(r(o)("COMPONENTS.MOLECULES.VC_SELECT.NO_OPTIONS")), 1)
|
|
3446
3450
|
])
|
|
3447
3451
|
])) : w("", !0),
|
|
3448
3452
|
e.hasNextPage && !e.listLoading ? (f(), h("span", {
|
|
@@ -3454,7 +3458,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3454
3458
|
]),
|
|
3455
3459
|
_: 3
|
|
3456
3460
|
}, 512)
|
|
3457
|
-
], 44,
|
|
3461
|
+
], 44, xo)), [
|
|
3458
3462
|
[r(zn), [() => i("clickOutside"), { ignore: [e.dropdownToggleRef] }]]
|
|
3459
3463
|
]) : w("", !0)
|
|
3460
3464
|
]),
|
|
@@ -3462,7 +3466,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3462
3466
|
})
|
|
3463
3467
|
], 8, ["to"]));
|
|
3464
3468
|
}
|
|
3465
|
-
}),
|
|
3469
|
+
}), Uo = ["innerHTML"], Ko = { class: "vc-select__field-container" }, qo = /* @__PURE__ */ V({
|
|
3466
3470
|
inheritAttrs: !1,
|
|
3467
3471
|
__name: "vc-select",
|
|
3468
3472
|
props: {
|
|
@@ -3496,7 +3500,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3496
3500
|
},
|
|
3497
3501
|
emits: ["update:modelValue", "search", "close"],
|
|
3498
3502
|
setup(e, { emit: t }) {
|
|
3499
|
-
const n = e, a = wt(), i =
|
|
3503
|
+
const n = e, a = wt(), i = $(() => {
|
|
3500
3504
|
const { class: N, ...te } = a;
|
|
3501
3505
|
return te;
|
|
3502
3506
|
}), o = t, { t: l } = ye({ useScope: "global" }), s = we(), {
|
|
@@ -3509,23 +3513,23 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3509
3513
|
resolvedName: m,
|
|
3510
3514
|
ariaRequired: y,
|
|
3511
3515
|
ariaDescribedBy: T
|
|
3512
|
-
} = Ge(n), p =
|
|
3516
|
+
} = Ge(n), p = $(() => `${u.value}-listbox`), E = S(null), P = S(null), { selectRootRef: K, isSelectVisible: ne, ensureVisibility: Z } = _l(), { getOptionValue: le, getOptionLabel: Q, getOption: ce, getEmittingOptionValue: fe, fieldValueIsFilled: ie } = Ql({
|
|
3513
3517
|
optionValue: () => n.optionValue,
|
|
3514
3518
|
optionLabel: () => n.optionLabel
|
|
3515
|
-
}), { isOpened: F, isFocused: H, dropdownToggleRef: A, dropdownRef: k, popper:
|
|
3519
|
+
}), { isOpened: F, isFocused: H, dropdownToggleRef: A, dropdownRef: k, popper: O, dropdownStyle: U, toggleDropdown: z } = eo({
|
|
3516
3520
|
placement: n.placement,
|
|
3517
3521
|
outline: () => n.outline,
|
|
3518
3522
|
isSelectVisible: ne,
|
|
3519
|
-
selectRootRef:
|
|
3523
|
+
selectRootRef: K,
|
|
3520
3524
|
disabled: () => n.disabled ?? !1,
|
|
3521
3525
|
ensureVisibility: Z
|
|
3522
3526
|
});
|
|
3523
3527
|
nt(() => {
|
|
3524
|
-
A.value =
|
|
3528
|
+
A.value = E.value?.toggleRef ?? null;
|
|
3525
3529
|
}), nt(() => {
|
|
3526
3530
|
k.value = P.value?.dropdownElRef ?? null;
|
|
3527
3531
|
});
|
|
3528
|
-
const I =
|
|
3532
|
+
const I = to({
|
|
3529
3533
|
options: () => n.options,
|
|
3530
3534
|
getOptionValue: le,
|
|
3531
3535
|
getOptionLabel: Q,
|
|
@@ -3534,7 +3538,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3534
3538
|
emit: {
|
|
3535
3539
|
search: (N) => o("search", N)
|
|
3536
3540
|
}
|
|
3537
|
-
}), { selectedScope: x, hasValue: q, optionScope: ve, removeAtIndex: Re, onReset: Xt } =
|
|
3541
|
+
}), { selectedScope: x, hasValue: q, optionScope: ve, removeAtIndex: Re, onReset: Xt } = no({
|
|
3538
3542
|
modelValue: () => n.modelValue,
|
|
3539
3543
|
multiple: () => n.multiple,
|
|
3540
3544
|
emitValue: () => n.emitValue ?? !0,
|
|
@@ -3547,12 +3551,12 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3547
3551
|
getOption: ce,
|
|
3548
3552
|
fieldValueIsFilled: ie,
|
|
3549
3553
|
isOpened: F,
|
|
3550
|
-
popperUpdate: () =>
|
|
3554
|
+
popperUpdate: () => O.update(),
|
|
3551
3555
|
emit: {
|
|
3552
3556
|
updateModelValue: (N) => o("update:modelValue", N),
|
|
3553
3557
|
close: () => o("close")
|
|
3554
3558
|
}
|
|
3555
|
-
}), Zt =
|
|
3559
|
+
}), Zt = $(() => P.value?.loadMoreRef ?? null), Qt = $(() => P.value?.viewportRef ?? null);
|
|
3556
3560
|
Tn(
|
|
3557
3561
|
Zt,
|
|
3558
3562
|
([{ isIntersecting: N }]) => {
|
|
@@ -3563,14 +3567,14 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3563
3567
|
// Any part showing is enough, and the margin starts the next page just before the end.
|
|
3564
3568
|
{ threshold: 0, rootMargin: "0px 0px 48px 0px", root: Qt }
|
|
3565
3569
|
);
|
|
3566
|
-
const Ze =
|
|
3570
|
+
const Ze = Zl({
|
|
3567
3571
|
onEnter: (N) => {
|
|
3568
3572
|
const te = parseInt(N.getAttribute("data-index") || "0", 10);
|
|
3569
3573
|
ve.value && ve.value[te] && ve.value[te].toggleOption(ve.value[te].opt);
|
|
3570
3574
|
},
|
|
3571
3575
|
onEscape: () => {
|
|
3572
3576
|
F.value = !1, o("close"), Ee(() => {
|
|
3573
|
-
|
|
3577
|
+
E.value?.toggleRef?.querySelector('[role="combobox"]')?.focus();
|
|
3574
3578
|
});
|
|
3575
3579
|
}
|
|
3576
3580
|
});
|
|
@@ -3579,7 +3583,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3579
3583
|
}
|
|
3580
3584
|
return Y(F, async (N) => {
|
|
3581
3585
|
N ? (await I.open(), Ee(() => {
|
|
3582
|
-
|
|
3586
|
+
O.update();
|
|
3583
3587
|
const te = P.value?.dropdownElRef, re = P.value?.searchInputRef;
|
|
3584
3588
|
if (te)
|
|
3585
3589
|
if (Ze.initKeyboardNavigation(te), n.searchable && re)
|
|
@@ -3625,7 +3629,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3625
3629
|
], 16)) : (f(), h("div", ae({
|
|
3626
3630
|
key: 1,
|
|
3627
3631
|
ref_key: "selectRootRef",
|
|
3628
|
-
ref:
|
|
3632
|
+
ref: K
|
|
3629
3633
|
}, i.value, {
|
|
3630
3634
|
class: ["vc-select", [
|
|
3631
3635
|
N.$attrs.class,
|
|
@@ -3658,15 +3662,15 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3658
3662
|
fn: L(() => [
|
|
3659
3663
|
C("span", {
|
|
3660
3664
|
innerHTML: r(Mt).sanitize(e.tooltip)
|
|
3661
|
-
}, null, 8,
|
|
3665
|
+
}, null, 8, Uo)
|
|
3662
3666
|
]),
|
|
3663
3667
|
key: "0"
|
|
3664
3668
|
} : void 0
|
|
3665
3669
|
]), 1032, ["id", "required", "multilanguage", "current-language", "error"])) : w("", !0),
|
|
3666
3670
|
C("div", Ko, [
|
|
3667
|
-
R(
|
|
3671
|
+
R(Ro, {
|
|
3668
3672
|
ref_key: "selectTriggerRef",
|
|
3669
|
-
ref:
|
|
3673
|
+
ref: E,
|
|
3670
3674
|
"is-opened": r(F),
|
|
3671
3675
|
"has-value": r(q),
|
|
3672
3676
|
"selected-scope": r(x),
|
|
@@ -3755,19 +3759,19 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3755
3759
|
key: "7"
|
|
3756
3760
|
} : void 0
|
|
3757
3761
|
]), 1032, ["is-opened", "has-value", "selected-scope", "multiple", "loading", "disabled", "clearable", "placeholder", "prefix", "suffix", "size", "error", "error-message", "hint", "list-loading", "default-option-loading", "listbox-id", "label-id", "label", "aria-described-by", "aria-required", "error-id", "hint-id", "toggle-dropdown", "get-option-label", "get-emitting-option-value", "onReset", "onRemoveAtIndex"]),
|
|
3758
|
-
R(
|
|
3762
|
+
R(Fo, ae({
|
|
3759
3763
|
ref_key: "selectDropdownRef",
|
|
3760
3764
|
ref: P,
|
|
3761
3765
|
"is-opened": r(F),
|
|
3762
3766
|
"listbox-id": p.value
|
|
3763
3767
|
}, { ariaLabel: e.label || e.name }, {
|
|
3764
|
-
"dropdown-style": r(
|
|
3768
|
+
"dropdown-style": r(U),
|
|
3765
3769
|
searchable: e.searchable,
|
|
3766
3770
|
"option-scope": r(ve),
|
|
3767
3771
|
"list-loading": r(I).loading.value || r(I).searchLoading.value,
|
|
3768
3772
|
"options-list-length": r(I).displayItems.value.length,
|
|
3769
3773
|
"has-next-page": r(I).hasMore.value,
|
|
3770
|
-
"dropdown-toggle-ref":
|
|
3774
|
+
"dropdown-toggle-ref": E.value?.toggleRef ?? null,
|
|
3771
3775
|
onInput: r(I).onInput,
|
|
3772
3776
|
onClickOutside: _t
|
|
3773
3777
|
}), se({ _: 2 }, [
|
|
@@ -3789,10 +3793,10 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3789
3793
|
])
|
|
3790
3794
|
], 16));
|
|
3791
3795
|
}
|
|
3792
|
-
}),
|
|
3796
|
+
}), Wo = {
|
|
3793
3797
|
key: 0,
|
|
3794
3798
|
class: "vc-input-dropdown vc-input-dropdown--skeleton"
|
|
3795
|
-
},
|
|
3799
|
+
}, jo = { class: "tw-flex tw-items-center" }, Ho = ["aria-label", "aria-expanded", "onClick", "onKeydown"], Go = /* @__PURE__ */ V({
|
|
3796
3800
|
__name: "vc-input-dropdown",
|
|
3797
3801
|
props: {
|
|
3798
3802
|
modelValue: {},
|
|
@@ -3826,7 +3830,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3826
3830
|
emits: ["update:model-value", "update:option", "change", "blur"],
|
|
3827
3831
|
setup(e) {
|
|
3828
3832
|
const t = we();
|
|
3829
|
-
return (n, a) => r(t) ? (f(), h("div",
|
|
3833
|
+
return (n, a) => r(t) ? (f(), h("div", Wo, [
|
|
3830
3834
|
e.label ? (f(), D(r(oe), {
|
|
3831
3835
|
key: 0,
|
|
3832
3836
|
variant: "block",
|
|
@@ -3838,7 +3842,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3838
3842
|
width: "100%",
|
|
3839
3843
|
height: 36
|
|
3840
3844
|
})
|
|
3841
|
-
])) : (f(), D(r(
|
|
3845
|
+
])) : (f(), D(r(qo), {
|
|
3842
3846
|
key: 1,
|
|
3843
3847
|
class: "vc-input-dropdown",
|
|
3844
3848
|
options: e.options,
|
|
@@ -3880,7 +3884,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3880
3884
|
onBlur: a[1] || (a[1] = (l) => n.$emit("blur", l))
|
|
3881
3885
|
}, se({
|
|
3882
3886
|
"append-inner": L(() => [
|
|
3883
|
-
C("div",
|
|
3887
|
+
C("div", jo, [
|
|
3884
3888
|
B(n.$slots, "button", { toggleHandler: i }, () => [
|
|
3885
3889
|
e.options && e.options.length ? (f(), h("button", {
|
|
3886
3890
|
key: 0,
|
|
@@ -3895,9 +3899,9 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3895
3899
|
_(J(i, ["stop", "prevent"]), ["enter"]),
|
|
3896
3900
|
_(J(i, ["stop", "prevent"]), ["space"])
|
|
3897
3901
|
]
|
|
3898
|
-
}, M(r(e.option)), 41,
|
|
3902
|
+
}, M(r(e.option)), 41, Ho)) : w("", !0)
|
|
3899
3903
|
]),
|
|
3900
|
-
e.options && e.options.length ? (f(), D(r(
|
|
3904
|
+
e.options && e.options.length ? (f(), D(r(xa), {
|
|
3901
3905
|
key: 0,
|
|
3902
3906
|
icon: o ? "lucide-chevron-up" : "lucide-chevron-down",
|
|
3903
3907
|
"icon-size": "s",
|
|
@@ -3944,10 +3948,10 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
3944
3948
|
_: 3
|
|
3945
3949
|
}, 8, ["options", "option-label", "option-value", "searchable", "debounce", "disabled", "label", "required", "model-value", "tooltip", "multilanguage", "current-language"]));
|
|
3946
3950
|
}
|
|
3947
|
-
}),
|
|
3951
|
+
}), Yo = {
|
|
3948
3952
|
key: 0,
|
|
3949
3953
|
class: "vc-input-currency vc-input-currency--skeleton"
|
|
3950
|
-
},
|
|
3954
|
+
}, Jo = ["disabled", "placeholder", "aria-label"], Xo = /* @__PURE__ */ V({
|
|
3951
3955
|
__name: "vc-input-currency",
|
|
3952
3956
|
props: {
|
|
3953
3957
|
modelValue: {},
|
|
@@ -4028,7 +4032,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
4028
4032
|
const m = c.clipboardData?.getData("text/plain");
|
|
4029
4033
|
typeof m < "u" && parseInt(m) < 0 && c.preventDefault();
|
|
4030
4034
|
}
|
|
4031
|
-
return (c, m) => r(i) ? (f(), h("div",
|
|
4035
|
+
return (c, m) => r(i) ? (f(), h("div", Yo, [
|
|
4032
4036
|
e.label ? (f(), D(r(oe), {
|
|
4033
4037
|
key: 0,
|
|
4034
4038
|
variant: "block",
|
|
@@ -4040,7 +4044,7 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
4040
4044
|
width: "100%",
|
|
4041
4045
|
height: 36
|
|
4042
4046
|
})
|
|
4043
|
-
])) : (f(), D(r(
|
|
4047
|
+
])) : (f(), D(r(Go), {
|
|
4044
4048
|
key: 1,
|
|
4045
4049
|
class: "vc-input-currency",
|
|
4046
4050
|
options: e.options,
|
|
@@ -4083,31 +4087,31 @@ const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }
|
|
|
4083
4087
|
onBlur: b,
|
|
4084
4088
|
onKeydown: g,
|
|
4085
4089
|
onPaste: d
|
|
4086
|
-
}, null, 40,
|
|
4090
|
+
}, null, 40, Jo)
|
|
4087
4091
|
]),
|
|
4088
4092
|
_: 1
|
|
4089
4093
|
}, 8, ["options", "option-label", "option-value", "searchable", "debounce", "disabled", "label", "required", "option", "model-value", "tooltip", "placeholder", "hint", "clearable", "prefix", "suffix", "name", "loading", "autofocus", "error", "error-message", "maxlength"]));
|
|
4090
4094
|
}
|
|
4091
|
-
}), Ht = Symbol("VcAppBarState"),
|
|
4095
|
+
}), Ht = Symbol("VcAppBarState"), Zo = {
|
|
4092
4096
|
activeWidgetId: S(null),
|
|
4093
4097
|
activeMobileActionId: S(null)
|
|
4094
4098
|
};
|
|
4095
|
-
function
|
|
4099
|
+
function Ir() {
|
|
4096
4100
|
const e = {
|
|
4097
4101
|
activeWidgetId: S(null),
|
|
4098
4102
|
activeMobileActionId: S(null)
|
|
4099
4103
|
};
|
|
4100
4104
|
return Ot(Ht, e), e;
|
|
4101
4105
|
}
|
|
4102
|
-
function
|
|
4103
|
-
return X(Ht,
|
|
4106
|
+
function kr() {
|
|
4107
|
+
return X(Ht, Zo);
|
|
4104
4108
|
}
|
|
4105
|
-
const
|
|
4109
|
+
const Sr = Symbol("TableContext"), Qo = Symbol("ColumnCollector"), $r = Symbol("FillerWidth"), Er = Symbol("IsColumnReordering"), Or = Symbol("MobileCellEdit"), wr = (e, t) => {
|
|
4106
4110
|
const n = e.__vccOpts || e;
|
|
4107
4111
|
for (const [a, i] of t)
|
|
4108
4112
|
n[a] = i;
|
|
4109
4113
|
return n;
|
|
4110
|
-
},
|
|
4114
|
+
}, Lr = V({
|
|
4111
4115
|
name: "VcColumn",
|
|
4112
4116
|
inheritAttrs: !1,
|
|
4113
4117
|
props: {
|
|
@@ -4285,7 +4289,7 @@ const kr = Symbol("TableContext"), Zo = Symbol("ColumnCollector"), Sr = Symbol("
|
|
|
4285
4289
|
}
|
|
4286
4290
|
},
|
|
4287
4291
|
setup(e, { slots: t }) {
|
|
4288
|
-
const n = X(
|
|
4292
|
+
const n = X(Qo, null), a = je();
|
|
4289
4293
|
return He(() => {
|
|
4290
4294
|
n && a && n.add({
|
|
4291
4295
|
instance: a,
|
|
@@ -4311,7 +4315,7 @@ function Gt() {
|
|
|
4311
4315
|
}
|
|
4312
4316
|
};
|
|
4313
4317
|
}
|
|
4314
|
-
const
|
|
4318
|
+
const _o = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__ */ V({
|
|
4315
4319
|
__name: "CellEditableWrapper",
|
|
4316
4320
|
props: {
|
|
4317
4321
|
label: {},
|
|
@@ -4346,7 +4350,7 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4346
4350
|
l ? {
|
|
4347
4351
|
name: "tooltip",
|
|
4348
4352
|
fn: L(() => [
|
|
4349
|
-
C("div",
|
|
4353
|
+
C("div", _o, M(l), 1)
|
|
4350
4354
|
]),
|
|
4351
4355
|
key: "0"
|
|
4352
4356
|
} : void 0
|
|
@@ -4355,7 +4359,7 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4355
4359
|
_: 3
|
|
4356
4360
|
}, 8, ["label", "name", "model-value", "rules"]));
|
|
4357
4361
|
}
|
|
4358
|
-
}),
|
|
4362
|
+
}), ei = {
|
|
4359
4363
|
key: 1,
|
|
4360
4364
|
class: "vc-table-cell-default"
|
|
4361
4365
|
}, Yt = /* @__PURE__ */ V({
|
|
@@ -4405,15 +4409,15 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4405
4409
|
]), 1032, ["model-value", "error", "error-message", "onBlur"])
|
|
4406
4410
|
]),
|
|
4407
4411
|
_: 1
|
|
4408
|
-
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : (f(), h("span",
|
|
4412
|
+
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : (f(), h("span", ei, M(e.value), 1));
|
|
4409
4413
|
}
|
|
4410
|
-
}),
|
|
4414
|
+
}), ti = {
|
|
4411
4415
|
key: 1,
|
|
4412
4416
|
class: "vc-table-cell-money"
|
|
4413
|
-
},
|
|
4417
|
+
}, ni = {
|
|
4414
4418
|
key: 2,
|
|
4415
4419
|
class: "vc-table-cell-money vc-table-cell-money--not-set"
|
|
4416
|
-
},
|
|
4420
|
+
}, ai = /* @__PURE__ */ V({
|
|
4417
4421
|
__name: "CellMoney",
|
|
4418
4422
|
props: {
|
|
4419
4423
|
value: {},
|
|
@@ -4428,7 +4432,7 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4428
4432
|
},
|
|
4429
4433
|
emits: ["update", "blur"],
|
|
4430
4434
|
setup(e, { emit: t }) {
|
|
4431
|
-
const n = e, a = t, { t: i } = ye({ useScope: "global" }), o = window.navigator.language, { isMobile: l, isDesktop: s } = Je(), u =
|
|
4435
|
+
const n = e, a = t, { t: i } = ye({ useScope: "global" }), o = window.navigator.language, { isMobile: l, isDesktop: s } = Je(), u = $(() => typeof n.value > "u" || n.value === null || Number(n.value) === 0), v = $(() => {
|
|
4432
4436
|
const g = Number(n.value);
|
|
4433
4437
|
return isNaN(g) ? String(n.value) : new Intl.NumberFormat(o, {
|
|
4434
4438
|
style: "currency",
|
|
@@ -4446,7 +4450,7 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4446
4450
|
"validate-on-mount": e.validateOnMount
|
|
4447
4451
|
}, {
|
|
4448
4452
|
default: L(({ errors: c, errorMessage: m }) => [
|
|
4449
|
-
R(
|
|
4453
|
+
R(Xo, {
|
|
4450
4454
|
"model-value": e.value,
|
|
4451
4455
|
options: [],
|
|
4452
4456
|
option: e.currency || "USD",
|
|
@@ -4470,15 +4474,15 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4470
4474
|
]), 1032, ["model-value", "option", "error", "error-message", "onBlur"])
|
|
4471
4475
|
]),
|
|
4472
4476
|
_: 1
|
|
4473
|
-
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : u.value ? (f(), h("span",
|
|
4477
|
+
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : u.value ? (f(), h("span", ni, M(r(i)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1)) : (f(), h("span", ti, M(v.value), 1));
|
|
4474
4478
|
}
|
|
4475
|
-
}),
|
|
4479
|
+
}), li = {
|
|
4476
4480
|
key: 1,
|
|
4477
4481
|
class: "vc-table-cell-number"
|
|
4478
|
-
},
|
|
4482
|
+
}, oi = {
|
|
4479
4483
|
key: 2,
|
|
4480
4484
|
class: "vc-table-cell-number vc-table-cell-number--not-set"
|
|
4481
|
-
},
|
|
4485
|
+
}, ii = /* @__PURE__ */ V({
|
|
4482
4486
|
__name: "CellNumber",
|
|
4483
4487
|
props: {
|
|
4484
4488
|
value: {},
|
|
@@ -4492,11 +4496,11 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4492
4496
|
},
|
|
4493
4497
|
emits: ["update", "blur"],
|
|
4494
4498
|
setup(e, { emit: t }) {
|
|
4495
|
-
const n = e, a = t, { t: i } = ye({ useScope: "global" }), { isMobile: o, isDesktop: l } = Je(), s =
|
|
4499
|
+
const n = e, a = t, { t: i } = ye({ useScope: "global" }), { isMobile: o, isDesktop: l } = Je(), s = $(() => {
|
|
4496
4500
|
if (n.value === null || n.value === void 0) return !0;
|
|
4497
4501
|
const b = Number(n.value);
|
|
4498
4502
|
return isNaN(b) || b < 0;
|
|
4499
|
-
}), u =
|
|
4503
|
+
}), u = $(() => {
|
|
4500
4504
|
const b = Number(n.value);
|
|
4501
4505
|
return isNaN(b) ? String(n.value) : b.toFixed(0);
|
|
4502
4506
|
}), v = (b) => {
|
|
@@ -4533,12 +4537,12 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4533
4537
|
]), 1032, ["model-value", "error", "error-message", "onBlur"])
|
|
4534
4538
|
]),
|
|
4535
4539
|
_: 1
|
|
4536
|
-
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : s.value ? (f(), h("span",
|
|
4540
|
+
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : s.value ? (f(), h("span", oi, M(r(i)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1)) : (f(), h("span", li, M(u.value), 1));
|
|
4537
4541
|
}
|
|
4538
|
-
}),
|
|
4542
|
+
}), ri = {
|
|
4539
4543
|
key: 0,
|
|
4540
4544
|
class: "vc-table-cell-date"
|
|
4541
|
-
},
|
|
4545
|
+
}, si = {
|
|
4542
4546
|
key: 1,
|
|
4543
4547
|
class: "vc-table-cell-date vc-table-cell-date--not-set"
|
|
4544
4548
|
}, tt = /* @__PURE__ */ V({
|
|
@@ -4549,89 +4553,92 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4549
4553
|
format: {}
|
|
4550
4554
|
},
|
|
4551
4555
|
setup(e) {
|
|
4552
|
-
const t = e, { t: n } = ye({ useScope: "global" }), a = window.navigator.language, i =
|
|
4556
|
+
const t = e, { t: n } = ye({ useScope: "global" }), a = window.navigator.language, i = $(() => {
|
|
4553
4557
|
if (!t.value) return "";
|
|
4554
4558
|
if (t.format)
|
|
4555
4559
|
return Zn(t.value, t.format, a);
|
|
4556
4560
|
const o = t.value instanceof Date ? t.value : new Date(t.value), l = t.variant || "date";
|
|
4557
4561
|
return l === "time" ? o.toLocaleTimeString(a) : l === "date-time" ? o.toLocaleString(a) : o.toLocaleDateString(a);
|
|
4558
4562
|
});
|
|
4559
|
-
return (o, l) => e.value ? (f(), h("span",
|
|
4563
|
+
return (o, l) => e.value ? (f(), h("span", ri, M(i.value), 1)) : (f(), h("span", si, M(r(n)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1));
|
|
4560
4564
|
}
|
|
4561
|
-
}),
|
|
4565
|
+
}), ui = ["title"], ci = {
|
|
4562
4566
|
key: 1,
|
|
4563
4567
|
class: "vc-table-cell-date-ago vc-table-cell-date-ago--not-set"
|
|
4564
|
-
},
|
|
4568
|
+
}, di = /* @__PURE__ */ V({
|
|
4565
4569
|
__name: "CellDateAgo",
|
|
4566
4570
|
props: {
|
|
4567
4571
|
value: {}
|
|
4568
4572
|
},
|
|
4569
4573
|
setup(e) {
|
|
4570
|
-
const t = e, { t: n } = ye({ useScope: "global" }), a = window.navigator.language, i =
|
|
4574
|
+
const t = e, { t: n } = ye({ useScope: "global" }), a = window.navigator.language, i = $(() => t.value ? (t.value instanceof Date ? t.value : new Date(t.value)).toLocaleString(a) : ""), o = $(() => t.value ? Xn(t.value) : "");
|
|
4571
4575
|
return (l, s) => e.value ? (f(), h("span", {
|
|
4572
4576
|
key: 0,
|
|
4573
4577
|
class: "vc-table-cell-date-ago",
|
|
4574
4578
|
title: i.value
|
|
4575
|
-
}, M(o.value), 9,
|
|
4579
|
+
}, M(o.value), 9, ui)) : (f(), h("span", ci, M(r(n)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1));
|
|
4576
4580
|
}
|
|
4577
|
-
}),
|
|
4581
|
+
}), fi = /* @__PURE__ */ V({
|
|
4578
4582
|
__name: "CellImage",
|
|
4579
4583
|
props: {
|
|
4580
4584
|
value: {},
|
|
4581
4585
|
emptyIcon: {}
|
|
4582
4586
|
},
|
|
4583
4587
|
setup(e) {
|
|
4584
|
-
|
|
4588
|
+
const t = e, n = $(
|
|
4589
|
+
() => t.value && typeof t.value == "object" ? t.value : void 0
|
|
4590
|
+
), a = $(() => n.value ? n.value.url : t.value);
|
|
4591
|
+
return (i, o) => (f(), D(r(Wa), {
|
|
4585
4592
|
class: "vc-table-cell-image",
|
|
4586
4593
|
bordered: !0,
|
|
4587
4594
|
size: "s",
|
|
4588
4595
|
aspect: "1x1",
|
|
4589
|
-
src:
|
|
4596
|
+
src: a.value,
|
|
4590
4597
|
"empty-icon": e.emptyIcon,
|
|
4591
4598
|
background: "contain",
|
|
4592
|
-
"thumbnail-size": "sm"
|
|
4593
|
-
}, null, 8, ["src", "empty-icon"]));
|
|
4599
|
+
"thumbnail-size": r(na)(n.value) ? void 0 : "sm"
|
|
4600
|
+
}, null, 8, ["src", "empty-icon", "thumbnail-size"]));
|
|
4594
4601
|
}
|
|
4595
|
-
}),
|
|
4602
|
+
}), vi = /* @__PURE__ */ V({
|
|
4596
4603
|
__name: "CellStatus",
|
|
4597
4604
|
props: {
|
|
4598
4605
|
value: {}
|
|
4599
4606
|
},
|
|
4600
4607
|
setup(e) {
|
|
4601
|
-
return (t, n) => (f(), D(r(
|
|
4608
|
+
return (t, n) => (f(), D(r(nl), { class: "vc-table-cell-status" }, {
|
|
4602
4609
|
default: L(() => [
|
|
4603
4610
|
ee(M(e.value), 1)
|
|
4604
4611
|
]),
|
|
4605
4612
|
_: 1
|
|
4606
4613
|
}));
|
|
4607
4614
|
}
|
|
4608
|
-
}),
|
|
4615
|
+
}), gi = { class: "vc-table-cell-status-icon" }, mi = /* @__PURE__ */ V({
|
|
4609
4616
|
__name: "CellStatusIcon",
|
|
4610
4617
|
props: {
|
|
4611
4618
|
value: {}
|
|
4612
4619
|
},
|
|
4613
4620
|
setup(e) {
|
|
4614
|
-
return (t, n) => (f(), h("div",
|
|
4615
|
-
typeof e.value == "boolean" ? (f(), D(r(
|
|
4621
|
+
return (t, n) => (f(), h("div", gi, [
|
|
4622
|
+
typeof e.value == "boolean" ? (f(), D(r(ll), {
|
|
4616
4623
|
key: 0,
|
|
4617
4624
|
status: e.value
|
|
4618
4625
|
}, null, 8, ["status"])) : w("", !0)
|
|
4619
4626
|
]));
|
|
4620
4627
|
}
|
|
4621
|
-
}),
|
|
4628
|
+
}), pi = /* @__PURE__ */ V({
|
|
4622
4629
|
__name: "CellLink",
|
|
4623
4630
|
props: {
|
|
4624
4631
|
value: {}
|
|
4625
4632
|
},
|
|
4626
4633
|
setup(e) {
|
|
4627
|
-
return (t, n) => (f(), D(r(
|
|
4634
|
+
return (t, n) => (f(), D(r(_a), { class: "vc-table-cell-link" }, {
|
|
4628
4635
|
default: L(() => [
|
|
4629
4636
|
ee(M(e.value), 1)
|
|
4630
4637
|
]),
|
|
4631
4638
|
_: 1
|
|
4632
4639
|
}));
|
|
4633
4640
|
}
|
|
4634
|
-
}),
|
|
4641
|
+
}), bi = ["innerHTML"], yi = 500, hi = /* @__PURE__ */ V({
|
|
4635
4642
|
__name: "CellHtml",
|
|
4636
4643
|
props: {
|
|
4637
4644
|
value: {},
|
|
@@ -4678,39 +4685,39 @@ const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4678
4685
|
FORBID_TAGS: ["script", "object", "embed", "form", "input"],
|
|
4679
4686
|
FORBID_ATTR: ["onerror", "onload", "onclick", "onmouseover", "onfocus", "onblur", "style"]
|
|
4680
4687
|
});
|
|
4681
|
-
if (n.size >=
|
|
4688
|
+
if (n.size >= yi) {
|
|
4682
4689
|
const u = n.keys().next().value;
|
|
4683
4690
|
u !== void 0 && n.delete(u);
|
|
4684
4691
|
}
|
|
4685
4692
|
return n.set(l, s), s;
|
|
4686
4693
|
}
|
|
4687
|
-
const i =
|
|
4694
|
+
const i = $(() => t.value ? a(String(t.value)) : ""), o = $(() => Kn(i.value, t.maxLength || 30));
|
|
4688
4695
|
return (l, s) => (f(), h("div", {
|
|
4689
4696
|
class: "vc-table-cell-html",
|
|
4690
4697
|
innerHTML: o.value
|
|
4691
|
-
}, null, 8,
|
|
4698
|
+
}, null, 8, bi));
|
|
4692
4699
|
}
|
|
4693
4700
|
}), Jt = [
|
|
4694
4701
|
{ type: "text", component: Yt, config: { editable: !0 } },
|
|
4695
|
-
{ type: "number", component:
|
|
4696
|
-
{ type: "money", component:
|
|
4702
|
+
{ type: "number", component: ii, config: { editable: !0 } },
|
|
4703
|
+
{ type: "money", component: ai, config: { editable: !0 } },
|
|
4697
4704
|
{ type: "date", component: tt, config: { editable: !1 } },
|
|
4698
4705
|
{ type: "time", component: tt, config: { editable: !1 } },
|
|
4699
4706
|
{ type: "datetime", component: tt, config: { editable: !1 } },
|
|
4700
|
-
{ type: "date-ago", component:
|
|
4701
|
-
{ type: "image", component:
|
|
4702
|
-
{ type: "status", component:
|
|
4703
|
-
{ type: "status-icon", component:
|
|
4704
|
-
{ type: "link", component:
|
|
4705
|
-
{ type: "html", component:
|
|
4706
|
-
],
|
|
4707
|
-
function
|
|
4707
|
+
{ type: "date-ago", component: di, config: { editable: !1 } },
|
|
4708
|
+
{ type: "image", component: fi, config: { editable: !1 } },
|
|
4709
|
+
{ type: "status", component: vi, config: { editable: !1 } },
|
|
4710
|
+
{ type: "status-icon", component: mi, config: { editable: !1 } },
|
|
4711
|
+
{ type: "link", component: pi, config: { editable: !1 } },
|
|
4712
|
+
{ type: "html", component: hi, config: { editable: !1 } }
|
|
4713
|
+
], Cr = Object.freeze(Jt.map((e) => e.type));
|
|
4714
|
+
function Ii() {
|
|
4708
4715
|
const { register: e, has: t } = Gt();
|
|
4709
4716
|
for (const n of Jt)
|
|
4710
4717
|
t(n.type) || e(n);
|
|
4711
4718
|
}
|
|
4712
|
-
|
|
4713
|
-
const
|
|
4719
|
+
Ii();
|
|
4720
|
+
const Tr = /* @__PURE__ */ V({
|
|
4714
4721
|
__name: "DynamicCellRenderer",
|
|
4715
4722
|
props: {
|
|
4716
4723
|
type: {},
|
|
@@ -4728,7 +4735,7 @@ const Cr = /* @__PURE__ */ V({
|
|
|
4728
4735
|
},
|
|
4729
4736
|
emits: ["update", "blur"],
|
|
4730
4737
|
setup(e) {
|
|
4731
|
-
const { get: t } = Gt(), n = e, a =
|
|
4738
|
+
const { get: t } = Gt(), n = e, a = $(() => t(n.type)?.component || Yt), i = $(() => {
|
|
4732
4739
|
const l = t(n.type)?.config?.editable ?? !1, s = {
|
|
4733
4740
|
value: n.value
|
|
4734
4741
|
};
|
|
@@ -4739,7 +4746,7 @@ const Cr = /* @__PURE__ */ V({
|
|
|
4739
4746
|
onBlur: l[1] || (l[1] = (s) => o.$emit("blur", s))
|
|
4740
4747
|
}), null, 16));
|
|
4741
4748
|
}
|
|
4742
|
-
}),
|
|
4749
|
+
}), Br = V({
|
|
4743
4750
|
name: "SlotProxy",
|
|
4744
4751
|
props: {
|
|
4745
4752
|
slotFn: { type: Function, required: !0 },
|
|
@@ -4748,130 +4755,131 @@ const Cr = /* @__PURE__ */ V({
|
|
|
4748
4755
|
setup(e) {
|
|
4749
4756
|
return () => e.slotFn(e.scope);
|
|
4750
4757
|
}
|
|
4751
|
-
}),
|
|
4758
|
+
}), Rr = (e, t) => {
|
|
4752
4759
|
const n = t.arg ? parseInt(t.arg, 10) : 9e3, a = typeof t.value == "object" ? t.value : { blur: !0 };
|
|
4753
4760
|
t.value ? (e.classList.add("v-loading"), a.size && e.setAttribute("data-loading-size", a.size), a.color && e.style.setProperty("--v-loading-spinner-color", a.color), a.blur === !1 && e.classList.add("v-loading--no-blur"), a.fullscreen && e.classList.add("v-loading--fullscreen"), e.style.setProperty("--v-loading-z-index", `${n}`)) : (e.classList.remove("v-loading", "v-loading--no-blur", "v-loading--fullscreen"), e.removeAttribute("data-loading-size"), e.style.removeProperty("--v-loading-z-index"), e.style.removeProperty("--v-loading-spinner-color"));
|
|
4754
4761
|
};
|
|
4755
4762
|
export {
|
|
4756
|
-
|
|
4763
|
+
Ut as $,
|
|
4757
4764
|
Dt as A,
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4765
|
+
Cr as B,
|
|
4766
|
+
Rr as C,
|
|
4767
|
+
Ir as D,
|
|
4768
|
+
Ii as E,
|
|
4769
|
+
kr as F,
|
|
4763
4770
|
we as G,
|
|
4764
4771
|
Gt as H,
|
|
4765
4772
|
Ge as I,
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4773
|
+
sa as J,
|
|
4774
|
+
wr as K,
|
|
4775
|
+
vr as L,
|
|
4776
|
+
ir as M,
|
|
4777
|
+
la as N,
|
|
4771
4778
|
ct as O,
|
|
4772
4779
|
de as P,
|
|
4773
4780
|
Oe as Q,
|
|
4774
|
-
|
|
4775
|
-
|
|
4781
|
+
Ue as R,
|
|
4782
|
+
tr as S,
|
|
4776
4783
|
qn as T,
|
|
4777
4784
|
lt as U,
|
|
4778
4785
|
be as V,
|
|
4779
|
-
|
|
4786
|
+
oa as W,
|
|
4780
4787
|
Je as X,
|
|
4781
|
-
|
|
4782
|
-
|
|
4788
|
+
cr as Y,
|
|
4789
|
+
ur as Z,
|
|
4783
4790
|
tt as _,
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4791
|
+
Ta as a,
|
|
4792
|
+
Br as a$,
|
|
4793
|
+
mr as a0,
|
|
4794
|
+
ka as a1,
|
|
4795
|
+
gl as a2,
|
|
4796
|
+
$a as a3,
|
|
4797
|
+
Ea as a4,
|
|
4798
|
+
Oa as a5,
|
|
4792
4799
|
Ki as a6,
|
|
4793
4800
|
Ie as a7,
|
|
4794
|
-
|
|
4801
|
+
Na as a8,
|
|
4795
4802
|
ue as a9,
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4803
|
+
fr as aA,
|
|
4804
|
+
_i as aB,
|
|
4805
|
+
br as aC,
|
|
4806
|
+
lr as aD,
|
|
4807
|
+
dr as aE,
|
|
4808
|
+
ar as aF,
|
|
4809
|
+
rr as aG,
|
|
4810
|
+
Ma as aH,
|
|
4811
|
+
sr as aI,
|
|
4812
|
+
Zi as aJ,
|
|
4813
|
+
Yi as aK,
|
|
4814
|
+
Jn as aL,
|
|
4815
|
+
Nt as aM,
|
|
4816
|
+
Ji as aN,
|
|
4817
|
+
La as aO,
|
|
4818
|
+
er as aP,
|
|
4819
|
+
yr as aQ,
|
|
4820
|
+
or as aR,
|
|
4821
|
+
Wi as aS,
|
|
4822
|
+
nr as aT,
|
|
4823
|
+
Wt as aU,
|
|
4824
|
+
hr as aV,
|
|
4825
|
+
Zl as aW,
|
|
4826
|
+
ra as aX,
|
|
4820
4827
|
Sr as aY,
|
|
4821
4828
|
$r as aZ,
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4829
|
+
Er as a_,
|
|
4830
|
+
qi as aa,
|
|
4831
|
+
Ui as ab,
|
|
4832
|
+
Fi as ac,
|
|
4833
|
+
zi as ad,
|
|
4834
|
+
gr as ae,
|
|
4835
|
+
Gi as af,
|
|
4836
|
+
pr as ag,
|
|
4837
|
+
fa as ah,
|
|
4838
|
+
da as ai,
|
|
4839
|
+
va as aj,
|
|
4833
4840
|
_n as ak,
|
|
4834
4841
|
Yn as al,
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4842
|
+
aa as am,
|
|
4843
|
+
Hi as an,
|
|
4844
|
+
ca as ao,
|
|
4838
4845
|
Xn as ap,
|
|
4839
4846
|
Zn as aq,
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4847
|
+
ji as ar,
|
|
4848
|
+
Xi as as,
|
|
4849
|
+
Qi as at,
|
|
4843
4850
|
ta as au,
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4851
|
+
na as av,
|
|
4852
|
+
Wn as aw,
|
|
4853
|
+
ea as ax,
|
|
4854
|
+
ua as ay,
|
|
4855
|
+
It as az,
|
|
4856
|
+
di as b,
|
|
4857
|
+
Tr as b0,
|
|
4858
|
+
Or as b1,
|
|
4859
|
+
Qo as b2,
|
|
4860
|
+
ia as b3,
|
|
4853
4861
|
Yt as c,
|
|
4854
4862
|
bt as d,
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4863
|
+
hi as e,
|
|
4864
|
+
fi as f,
|
|
4865
|
+
pi as g,
|
|
4866
|
+
ai as h,
|
|
4867
|
+
ii as i,
|
|
4868
|
+
vi as j,
|
|
4869
|
+
mi as k,
|
|
4870
|
+
xa as l,
|
|
4871
|
+
Al as m,
|
|
4872
|
+
Lr as n,
|
|
4873
|
+
$l as o,
|
|
4874
|
+
Wa as p,
|
|
4867
4875
|
pt as q,
|
|
4868
|
-
|
|
4869
|
-
|
|
4876
|
+
Xo as r,
|
|
4877
|
+
Go as s,
|
|
4870
4878
|
Xe as t,
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4879
|
+
_a as u,
|
|
4880
|
+
il as v,
|
|
4881
|
+
qo as w,
|
|
4874
4882
|
oe as x,
|
|
4875
|
-
|
|
4876
|
-
|
|
4883
|
+
nl as y,
|
|
4884
|
+
ll as z
|
|
4877
4885
|
};
|