@vc-shell/framework 2.2.0-pr262.1eb3cac → 2.2.0-pr263.f4e6550
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/ai-agent/index.js +3 -3
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_script_setup_true_lang-IxvmIZ32.js → VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cx8_DCu_.js} +1 -1
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_script_setup_true_lang-IxvmIZ32.js.map → VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cx8_DCu_.js.map} +1 -1
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-CcI_W_Vm.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-D2KmNhhl.js} +134 -147
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-D2KmNhhl.js.map +1 -0
- package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-Ch_TVK_C.js → VcScheduler.vue_vue_type_script_setup_true_lang-DmHoLXKj.js} +3 -3
- package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-Ch_TVK_C.js.map → VcScheduler.vue_vue_type_script_setup_true_lang-DmHoLXKj.js.map} +1 -1
- package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang-CL468dK2.js → VcScheduler.vue_vue_type_style_index_0_lang-DR8wrtyB.js} +441 -446
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-DR8wrtyB.js.map +1 -0
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-YOlFZMoP.js → dashboard-feed-row.vue_vue_type_script_setup_true_lang-DvM1DXj8.js} +2 -2
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-YOlFZMoP.js.map → dashboard-feed-row.vue_vue_type_script_setup_true_lang-DvM1DXj8.js.map} +1 -1
- package/dist/chunks/{index-CI1U6XgH.js → index-CvSe3hjU.js} +2 -2
- package/dist/chunks/{index-CI1U6XgH.js.map → index-CvSe3hjU.js.map} +1 -1
- package/dist/core/composables/useAsync/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/interceptors/index.d.ts.map +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/framework.js +750 -750
- package/dist/framework.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/shell/components/error-interceptor/interceptor.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
- package/dist/ui/index.js +3 -3
- package/package.json +4 -4
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-CcI_W_Vm.js.map +0 -1
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-CL468dK2.js.map +0 -1
- package/dist/core/utilities/sessionExpiration.d.ts +0 -30
- package/dist/core/utilities/sessionExpiration.d.ts.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { mergeProps as oe, reactive as We, ref as S, computed as $, inject as W, provide as bt, getCurrentScope as Yt, onScopeDispose as Xt, getCurrentInstance as Fe, onErrorCaptured as Zt, nextTick as me, defineComponent as J, watch as ee, unref as i, openBlock as g, createElementBlock as h, normalizeClass as j, createBlock as q, createCommentVNode as w, renderSlot as B, toValue as ue, useId as ht, onBeforeUnmount as
|
|
2
|
-
import { c as de,
|
|
1
|
+
import { mergeProps as oe, reactive as We, ref as S, computed as $, inject as W, provide as bt, getCurrentScope as Yt, onScopeDispose as Xt, getCurrentInstance as Fe, onErrorCaptured as Zt, nextTick as me, defineComponent as J, watch as ee, unref as i, openBlock as g, createElementBlock as h, normalizeClass as j, createBlock as q, createCommentVNode as w, renderSlot as B, toValue as ue, useId as ht, onBeforeUnmount as ze, createElementVNode as L, toDisplayString as N, Fragment as Ie, renderList as _e, normalizeStyle as Se, resolveDynamicComponent as kt, withCtx as C, withKeys as _, Teleport as It, createVNode as T, Transition as we, withModifiers as Q, watchEffect as He, shallowReactive as Je, markRaw as Ye, createSlots as pe, createTextVNode as te, withDirectives as et, vModelText as Qt, useAttrs as St, vModelDynamic as _t, onMounted as tt, onUnmounted as wt, normalizeProps as Le, guardReactiveProps as xe } from "vue";
|
|
2
|
+
import { c as de, ac as en, p as tn, m as nn, j as on, I as an, l as ln, k as rn, B as $t, a as sn, D as un, _ as H, w as cn, T as Ot, K as dn, q as fn } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-D2KmNhhl.js";
|
|
3
3
|
import { defineRule as $e } from "vee-validate";
|
|
4
4
|
import { a as ft } from "./vendor-vee-validate-rules-4oWUZPpG.js";
|
|
5
|
-
import { a as Et, s as
|
|
6
|
-
import { X as
|
|
7
|
-
import { c as Ct, d as
|
|
8
|
-
import { c as
|
|
9
|
-
import { j as
|
|
10
|
-
import { k as
|
|
5
|
+
import { a as Et, s as gn, c as vn, b as je, e as Re } from "./vendor-lodash-es-D2n90GJy.js";
|
|
6
|
+
import { X as pn } from "./vendor-microsoft-applicationinsights-core-js-CR3vyuZc.js";
|
|
7
|
+
import { c as Ct, d as mn, e as yn, f as bn } from "./vendor-vueuse-core-BYWoPpF_.js";
|
|
8
|
+
import { c as hn, u as nt } from "./vendor-vue-i18n-LO-EJStU.js";
|
|
9
|
+
import { j as kn } from "./vendor-vueuse-shared-BlCOXw5g.js";
|
|
10
|
+
import { k as In } from "./vendor-tiptap-core-CZbeo7XQ.js";
|
|
11
11
|
import "./vendor-tiptap-extension-text-style-Bc6nvmn0.js";
|
|
12
|
-
import { C as
|
|
13
|
-
import { u as Bt, a as
|
|
12
|
+
import { C as Sn, u as wn } from "./vendor-vue-currency-input-CckB4kjx.js";
|
|
13
|
+
import { u as Bt, a as $n } from "./vendor-floating-ui-vue-sCrhit51.js";
|
|
14
14
|
import { f as ot, s as at, o as De, b as Lt } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
|
|
15
|
-
import { v as
|
|
16
|
-
import { p as
|
|
17
|
-
import { q as
|
|
18
|
-
const ye =
|
|
15
|
+
import { v as On } from "./vendor-vueuse-components-BW7i7Uhb.js";
|
|
16
|
+
import { p as En } from "./vendor-dompurify-DpIUMBYC.js";
|
|
17
|
+
import { q as Cn } from "./vendor-vuepic-vue-datepicker-D0bvbIbh.js";
|
|
18
|
+
const ye = hn({
|
|
19
19
|
legacy: !1,
|
|
20
20
|
globalInjection: !0,
|
|
21
21
|
locale: "en",
|
|
@@ -39,17 +39,17 @@ class ie extends Error {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
class
|
|
42
|
+
class Dl extends ie {
|
|
43
43
|
constructor(t, n) {
|
|
44
44
|
super(t, "VALIDATION_ERROR", n), this.name = "ValidationError";
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
class
|
|
47
|
+
class Nl extends ie {
|
|
48
48
|
constructor(t, n) {
|
|
49
49
|
super(t, "SERVICE_ERROR", n), this.name = "ServiceError";
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
class
|
|
52
|
+
class Bn extends ie {
|
|
53
53
|
constructor(t, n) {
|
|
54
54
|
super(`${t} not provided. Make sure to call the corresponding 'provide' function.`, "INJECTION_ERROR", {
|
|
55
55
|
serviceName: t,
|
|
@@ -57,7 +57,7 @@ class Ln extends ie {
|
|
|
57
57
|
}), this.name = "InjectionError";
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
class
|
|
60
|
+
class Fl extends ie {
|
|
61
61
|
constructor(t, n, o) {
|
|
62
62
|
super(`Failed to register '${t}': ${n}`, "REGISTRATION_ERROR", {
|
|
63
63
|
componentName: t,
|
|
@@ -73,7 +73,7 @@ class zl extends ie {
|
|
|
73
73
|
}), this.name = "BladeError";
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
class
|
|
76
|
+
class Pl extends ie {
|
|
77
77
|
constructor(t, n, o) {
|
|
78
78
|
super(`Failed to load module '${t}': ${n}`, "MODULE_LOAD_ERROR", {
|
|
79
79
|
moduleId: t,
|
|
@@ -81,11 +81,11 @@ class ql extends ie {
|
|
|
81
81
|
}), this.name = "ModuleLoadError";
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Ln(e) {
|
|
85
85
|
return e instanceof ie;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
return
|
|
87
|
+
function ql(e, t = "UNKNOWN_ERROR") {
|
|
88
|
+
return Ln(e) ? e : e instanceof Error ? new ie(e.message, t, {
|
|
89
89
|
originalError: e.name,
|
|
90
90
|
stack: e.stack
|
|
91
91
|
}) : new ie(String(e), t);
|
|
@@ -124,8 +124,8 @@ function Ze(e) {
|
|
|
124
124
|
}
|
|
125
125
|
return new he("An unknown error occurred.", String(e), e);
|
|
126
126
|
}
|
|
127
|
-
const
|
|
128
|
-
function
|
|
127
|
+
const xn = de("color-utils");
|
|
128
|
+
function Rn(e) {
|
|
129
129
|
if (!e || typeof e != "string")
|
|
130
130
|
return null;
|
|
131
131
|
try {
|
|
@@ -134,10 +134,10 @@ function Tn(e) {
|
|
|
134
134
|
const n = t.getContext("2d");
|
|
135
135
|
return !n || (n.fillStyle = e.trim(), n.fillStyle === "#000000" && e.trim().toLowerCase() !== "black") ? null : n.fillStyle;
|
|
136
136
|
} catch (t) {
|
|
137
|
-
return
|
|
137
|
+
return xn.warn("Error converting color name to hex:", t), null;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function Tn(e) {
|
|
141
141
|
if (!e || typeof e != "string")
|
|
142
142
|
return !1;
|
|
143
143
|
const t = e.startsWith("#") ? e : `#${e}`;
|
|
@@ -146,7 +146,7 @@ function Mn(e) {
|
|
|
146
146
|
function gt(e) {
|
|
147
147
|
return !e || typeof e != "string" ? "" : e.startsWith("#") ? e : `#${e}`;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Mn(e) {
|
|
150
150
|
let t = null;
|
|
151
151
|
return {
|
|
152
152
|
register(n) {
|
|
@@ -160,7 +160,7 @@ function An(e) {
|
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Kl() {
|
|
164
164
|
const e = /* @__PURE__ */ new Map();
|
|
165
165
|
return {
|
|
166
166
|
register(t, n) {
|
|
@@ -192,7 +192,7 @@ const lt = () => {
|
|
|
192
192
|
signOut: e.signOut
|
|
193
193
|
};
|
|
194
194
|
};
|
|
195
|
-
function
|
|
195
|
+
function An() {
|
|
196
196
|
const { user: e } = lt();
|
|
197
197
|
function t(n) {
|
|
198
198
|
const o = e.value?.permissions ?? [];
|
|
@@ -208,8 +208,8 @@ function Vn() {
|
|
|
208
208
|
hasAccess: t
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
|
-
const ve = de("notification"), fe =
|
|
212
|
-
function
|
|
211
|
+
const ve = de("notification"), fe = Mn();
|
|
212
|
+
function Vn(e) {
|
|
213
213
|
fe.register(e);
|
|
214
214
|
}
|
|
215
215
|
function Te(e, t) {
|
|
@@ -299,15 +299,15 @@ re.debug = () => {
|
|
|
299
299
|
defaultOptions: e.defaultOptions
|
|
300
300
|
};
|
|
301
301
|
};
|
|
302
|
-
const
|
|
302
|
+
const Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
303
303
|
__proto__: null,
|
|
304
304
|
notification: re,
|
|
305
|
-
setNotificationBackend:
|
|
305
|
+
setNotificationBackend: Vn
|
|
306
306
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
307
307
|
Object.keys(ft).forEach((e) => {
|
|
308
308
|
$e(e, ft[e]);
|
|
309
309
|
});
|
|
310
|
-
const
|
|
310
|
+
const Nn = (e, [t, n]) => {
|
|
311
311
|
if (!e?.files || !e.files?.length)
|
|
312
312
|
return !0;
|
|
313
313
|
const o = (a, u, s) => {
|
|
@@ -333,8 +333,8 @@ const Fn = (e, [t, n]) => {
|
|
|
333
333
|
return u === !1 || typeof u == "string" ? u : !0;
|
|
334
334
|
});
|
|
335
335
|
};
|
|
336
|
-
$e("mindimensions",
|
|
337
|
-
const
|
|
336
|
+
$e("mindimensions", Nn);
|
|
337
|
+
const Fn = (e, [t]) => {
|
|
338
338
|
if (!e?.files || !e.files?.length)
|
|
339
339
|
return !0;
|
|
340
340
|
const n = t * 1e3, o = (u) => u.size > n, l = [];
|
|
@@ -342,7 +342,7 @@ const Pn = (e, [t]) => {
|
|
|
342
342
|
l.push(e.files[u]);
|
|
343
343
|
return l.map((u) => o(u)).find((u) => u === !0) ? ye.global.t("messages.file_weight", { size: t }) : !0;
|
|
344
344
|
};
|
|
345
|
-
$e("fileWeight",
|
|
345
|
+
$e("fileWeight", Fn);
|
|
346
346
|
const xt = (e, [t], n, o) => {
|
|
347
347
|
if (!e || typeof e == "string" && !e.length)
|
|
348
348
|
return !0;
|
|
@@ -350,10 +350,10 @@ const xt = (e, [t], n, o) => {
|
|
|
350
350
|
return e instanceof Date && (l = e), t instanceof Date && (r = t), typeof e == "string" && (l = new Date(e)), typeof t == "string" && (r = new Date(t)), l?.getTime && l?.getTime() > 0 && r?.getTime && r?.getTime() > 0 && n(r.getTime(), l.getTime()) ? o : !0;
|
|
351
351
|
}, zn = (e, [t]) => xt(e, [t], (n, o) => n < o, ye.global.t("messages.before"));
|
|
352
352
|
$e("before", zn);
|
|
353
|
-
const
|
|
354
|
-
$e("after",
|
|
355
|
-
const
|
|
356
|
-
$e("bigint",
|
|
353
|
+
const Pn = (e, [t]) => xt(e, [t], (n, o) => n > o, ye.global.t("messages.after"));
|
|
354
|
+
$e("after", Pn);
|
|
355
|
+
const qn = (e) => Number.isSafeInteger(parseInt(e)) ? !0 : ye.global.t("messages.bigint");
|
|
356
|
+
$e("bigint", qn);
|
|
357
357
|
function Oe(e) {
|
|
358
358
|
const t = de(`${e.name}-bus`), n = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set();
|
|
359
359
|
function l(d) {
|
|
@@ -480,7 +480,7 @@ function Rt(e) {
|
|
|
480
480
|
isRegistered: v
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function Kn(e) {
|
|
484
484
|
const t = S(/* @__PURE__ */ new Map()), n = $(() => Array.from(t.value.values()).sort((r, a) => (r.order ?? 0) - (a.order ?? 0)));
|
|
485
485
|
function o(r) {
|
|
486
486
|
const a = e.getId(r) || crypto.randomUUID(), u = e.createItem(r, t.value.size);
|
|
@@ -497,7 +497,7 @@ function Un(e) {
|
|
|
497
497
|
};
|
|
498
498
|
}
|
|
499
499
|
function Tt(e) {
|
|
500
|
-
const t =
|
|
500
|
+
const t = Kn({
|
|
501
501
|
createItem: e.createItem,
|
|
502
502
|
getId: e.getId
|
|
503
503
|
}), n = {
|
|
@@ -515,34 +515,34 @@ const Me = S(/* @__PURE__ */ new Map()), se = Oe({
|
|
|
515
515
|
getKey: Ne,
|
|
516
516
|
registerIntoService: (e, t) => e.addMenuItem(t)
|
|
517
517
|
});
|
|
518
|
-
function
|
|
518
|
+
function Ul(e) {
|
|
519
519
|
se.preregister(e);
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function Wl(e) {
|
|
522
522
|
se.removePreregistered((t) => it(t, e)), se.broadcast((t) => t.removeMenuItem(e));
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function jl(e, t) {
|
|
525
525
|
Me.value.set(e, t), se.broadcast((n) => {
|
|
526
526
|
n.menuBadges.value.set(e, t);
|
|
527
527
|
});
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function Gl(e) {
|
|
530
530
|
const t = se.getFirstInstance();
|
|
531
531
|
return t ? t.menuBadges.value.get(e) : Me.value.get(e);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Hl(e) {
|
|
534
534
|
Me.value.delete(e), se.broadcast((t) => {
|
|
535
535
|
t.menuBadges.value.delete(e);
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Jl() {
|
|
539
539
|
return se.getFirstInstance()?.menuBadges ?? Me;
|
|
540
540
|
}
|
|
541
|
-
const Qe = 1 / 0,
|
|
541
|
+
const Qe = 1 / 0, Un = 1 / 0;
|
|
542
542
|
function it(e, t) {
|
|
543
543
|
return Ne(e) === Ne(t);
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function Wn(e) {
|
|
546
546
|
return e.groupConfig ? {
|
|
547
547
|
groupId: e.groupConfig.id,
|
|
548
548
|
groupTitle: e.groupConfig.title || e.groupConfig.id,
|
|
@@ -550,22 +550,22 @@ function jn(e) {
|
|
|
550
550
|
groupPriority: e.groupConfig.priority,
|
|
551
551
|
groupPermissions: e.groupConfig.permissions
|
|
552
552
|
} : {
|
|
553
|
-
groupId: "group_" +
|
|
553
|
+
groupId: "group_" + gn(e.group),
|
|
554
554
|
groupTitle: e.group,
|
|
555
555
|
groupIcon: e.groupIcon,
|
|
556
556
|
groupPriority: e.priority,
|
|
557
557
|
groupPermissions: void 0
|
|
558
558
|
};
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function jn(e, t) {
|
|
561
561
|
return (e.priority ?? Qe) - (t.priority ?? Qe);
|
|
562
562
|
}
|
|
563
|
-
function
|
|
564
|
-
const n = (o) => o.inGroupPriority ?? o.priority ??
|
|
563
|
+
function Gn(e, t) {
|
|
564
|
+
const n = (o) => o.inGroupPriority ?? o.priority ?? Un;
|
|
565
565
|
return n(e) - n(t);
|
|
566
566
|
}
|
|
567
|
-
function
|
|
568
|
-
const n =
|
|
567
|
+
function Hn(e, t) {
|
|
568
|
+
const n = Wn(e), o = {
|
|
569
569
|
...Et(e, ["group", "groupIcon", "groupPriority", "groupConfig"])
|
|
570
570
|
}, l = t.get(n.groupId);
|
|
571
571
|
if (l) {
|
|
@@ -591,18 +591,18 @@ function Jn(e, t) {
|
|
|
591
591
|
function vt(e) {
|
|
592
592
|
const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
593
593
|
for (const o of e)
|
|
594
|
-
o.group || o.groupConfig ?
|
|
595
|
-
return
|
|
594
|
+
o.group || o.groupConfig ? Hn(o, t) : o.title && n.set(Ne(o), { ...o });
|
|
595
|
+
return Jn([...t.values(), ...n.values()]);
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function Jn(e) {
|
|
598
598
|
return e.map(
|
|
599
599
|
(t) => ({
|
|
600
600
|
...t,
|
|
601
|
-
children: t.children ? [...t.children].sort(
|
|
601
|
+
children: t.children ? [...t.children].sort(Gn) : void 0
|
|
602
602
|
})
|
|
603
|
-
).sort(
|
|
603
|
+
).sort(jn);
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function Yn() {
|
|
606
606
|
const e = S([]);
|
|
607
607
|
let t = [];
|
|
608
608
|
const n = S(new Map(Me.value));
|
|
@@ -621,7 +621,7 @@ function Xn() {
|
|
|
621
621
|
};
|
|
622
622
|
return se.replayInto(r), r;
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Pe(e) {
|
|
625
625
|
const { key: t, create: n, bus: o, name: l, onMissing: r } = e;
|
|
626
626
|
function a() {
|
|
627
627
|
const s = W(t, null);
|
|
@@ -633,7 +633,7 @@ function ze(e) {
|
|
|
633
633
|
function u() {
|
|
634
634
|
const s = W(t, null);
|
|
635
635
|
if (!s)
|
|
636
|
-
throw r?.(), new
|
|
636
|
+
throw r?.(), new Bn(l);
|
|
637
637
|
return s;
|
|
638
638
|
}
|
|
639
639
|
return {
|
|
@@ -641,20 +641,20 @@ function ze(e) {
|
|
|
641
641
|
use: u
|
|
642
642
|
};
|
|
643
643
|
}
|
|
644
|
-
const
|
|
644
|
+
const Xn = de("use-menu-service"), Mt = Pe({
|
|
645
645
|
key: tn,
|
|
646
|
-
create:
|
|
646
|
+
create: Yn,
|
|
647
647
|
bus: se,
|
|
648
648
|
name: "MenuService",
|
|
649
|
-
onMissing: () =>
|
|
649
|
+
onMissing: () => Xn.error("Menu service not found in current context. Injection chain:", Fe())
|
|
650
650
|
});
|
|
651
|
-
function
|
|
651
|
+
function Yl() {
|
|
652
652
|
return Mt.provide();
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function Xl() {
|
|
655
655
|
return Mt.use();
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function Zn() {
|
|
658
658
|
return {
|
|
659
659
|
isMobile: W(rn, S(!1)),
|
|
660
660
|
isDesktop: W(ln, S(!0)),
|
|
@@ -663,15 +663,15 @@ function Qn() {
|
|
|
663
663
|
isTouch: W(nn, !1)
|
|
664
664
|
};
|
|
665
665
|
}
|
|
666
|
-
const
|
|
667
|
-
function
|
|
668
|
-
const e = W(
|
|
666
|
+
const Qn = Symbol("AppInsightsOptions"), _n = Symbol("AppInsightsInstance");
|
|
667
|
+
function eo() {
|
|
668
|
+
const e = W(_n, null), { user: t } = lt(), n = W(Qn, void 0);
|
|
669
669
|
function o() {
|
|
670
670
|
const l = n?.appName ? `[${n.appName}] ` : "", r = (s) => `${l}${s.name}`;
|
|
671
671
|
function a(s) {
|
|
672
672
|
if (!e) return;
|
|
673
673
|
const f = r(s);
|
|
674
|
-
e.context.telemetryTrace.traceID =
|
|
674
|
+
e.context.telemetryTrace.traceID = pn(), e.context.telemetryTrace.name = s.name, e.startTrackPage(f);
|
|
675
675
|
}
|
|
676
676
|
function u(s) {
|
|
677
677
|
if (!e) return;
|
|
@@ -691,9 +691,9 @@ function to() {
|
|
|
691
691
|
appInsights: e
|
|
692
692
|
};
|
|
693
693
|
}
|
|
694
|
-
const
|
|
695
|
-
function
|
|
696
|
-
const t = S(null), n = Fe(), { appInsights: o } =
|
|
694
|
+
const to = de("use-error-handler");
|
|
695
|
+
function no(e) {
|
|
696
|
+
const t = S(null), n = Fe(), { appInsights: o } = eo(), { user: l } = lt(), r = S(!1);
|
|
697
697
|
function a() {
|
|
698
698
|
t.value = null, n && n.emit("reset");
|
|
699
699
|
}
|
|
@@ -708,7 +708,7 @@ function oo(e) {
|
|
|
708
708
|
userId: l.value?.id ?? "",
|
|
709
709
|
userName: l.value?.userName ?? ""
|
|
710
710
|
}
|
|
711
|
-
}),
|
|
711
|
+
}), to.error("Captured Error:", s.originalError), n && n.emit("error", s), me(() => {
|
|
712
712
|
r.value = !1;
|
|
713
713
|
}), !e;
|
|
714
714
|
}), {
|
|
@@ -717,20 +717,20 @@ function oo(e) {
|
|
|
717
717
|
};
|
|
718
718
|
}
|
|
719
719
|
const Ve = /* @__PURE__ */ new WeakMap();
|
|
720
|
-
function
|
|
720
|
+
function Zl(e, t, n) {
|
|
721
721
|
Ve.set(e, { timerId: t, notifId: n });
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function oo(e) {
|
|
724
724
|
if (e && typeof e == "object") {
|
|
725
725
|
const t = Ve.get(e), n = "originalError" in e && e.originalError && typeof e.originalError == "object" ? e.originalError : void 0, o = t ?? (n ? Ve.get(n) : void 0), l = t ? e : n;
|
|
726
726
|
if (o && l)
|
|
727
|
-
return clearTimeout(o.timerId), Promise.resolve().then(() =>
|
|
727
|
+
return clearTimeout(o.timerId), Promise.resolve().then(() => Dn).then(({ notification: r }) => {
|
|
728
728
|
r.remove(o.notifId);
|
|
729
729
|
}), Ve.delete(l), !0;
|
|
730
730
|
}
|
|
731
731
|
return !1;
|
|
732
732
|
}
|
|
733
|
-
const
|
|
733
|
+
const Ql = J({
|
|
734
734
|
name: "ErrorInterceptor",
|
|
735
735
|
props: {
|
|
736
736
|
capture: {
|
|
@@ -747,28 +747,23 @@ const _l = J({
|
|
|
747
747
|
}
|
|
748
748
|
},
|
|
749
749
|
setup(e, { slots: t }) {
|
|
750
|
-
const n = W($t, void 0), o = W(sn, void 0), l = !!(n && o), { error: r, reset: a } =
|
|
750
|
+
const n = W($t, void 0), o = W(sn, void 0), l = !!(n && o), { error: r, reset: a } = no(l || e.capture);
|
|
751
751
|
return l && ee(r, (u) => {
|
|
752
752
|
const s = n.value.id;
|
|
753
|
-
|
|
754
|
-
if (ao(u), un())
|
|
755
|
-
return;
|
|
756
|
-
o.setBladeError(s, u);
|
|
757
|
-
} else
|
|
758
|
-
o.clearBladeError(s);
|
|
753
|
+
u ? (oo(u), o.setBladeError(s, u)) : o.clearBladeError(s);
|
|
759
754
|
}), () => t.default?.({
|
|
760
755
|
error: r.value,
|
|
761
756
|
reset: a
|
|
762
757
|
});
|
|
763
758
|
}
|
|
764
|
-
}),
|
|
759
|
+
}), ao = Symbol("vc-button-group");
|
|
765
760
|
function be() {
|
|
766
|
-
return W(
|
|
761
|
+
return W(un, S(!1));
|
|
767
762
|
}
|
|
768
|
-
const
|
|
763
|
+
const lo = ["type", "disabled", "aria-label", "aria-busy", "aria-pressed"], io = {
|
|
769
764
|
key: 2,
|
|
770
765
|
class: "vc-button__title"
|
|
771
|
-
},
|
|
766
|
+
}, ro = /* @__PURE__ */ J({
|
|
772
767
|
__name: "vc-button",
|
|
773
768
|
props: {
|
|
774
769
|
icon: {},
|
|
@@ -788,7 +783,7 @@ const io = ["type", "disabled", "aria-label", "aria-busy", "aria-pressed"], ro =
|
|
|
788
783
|
const n = {
|
|
789
784
|
base: "default",
|
|
790
785
|
xs: "sm"
|
|
791
|
-
}, o = e, l = be(), r = t, a = W(
|
|
786
|
+
}, o = e, l = be(), r = t, a = W(ao, null), u = $(() => {
|
|
792
787
|
const m = a?.size?.value ?? o.size;
|
|
793
788
|
return n[m] ?? m;
|
|
794
789
|
}), s = $(() => [
|
|
@@ -826,13 +821,13 @@ const io = ["type", "disabled", "aria-label", "aria-busy", "aria-pressed"], ro =
|
|
|
826
821
|
icon: e.icon,
|
|
827
822
|
size: e.iconSize
|
|
828
823
|
}, null, 8, ["class", "icon", "size"])) : w("", !0),
|
|
829
|
-
m.$slots.default ? (g(), h("span",
|
|
824
|
+
m.$slots.default ? (g(), h("span", io, [
|
|
830
825
|
B(m.$slots, "default")
|
|
831
826
|
])) : w("", !0)
|
|
832
|
-
], 10,
|
|
827
|
+
], 10, lo));
|
|
833
828
|
}
|
|
834
829
|
});
|
|
835
|
-
function
|
|
830
|
+
function so(e, t, n = {}) {
|
|
836
831
|
const o = $(() => ue(n.placement) ?? "bottom"), l = $(() => ue(n.strategy) ?? "absolute"), r = $(() => {
|
|
837
832
|
const s = ue(n.middleware);
|
|
838
833
|
if (s?.length)
|
|
@@ -864,9 +859,9 @@ function uo(e, t, n = {}) {
|
|
|
864
859
|
resolvedStrategy: l
|
|
865
860
|
};
|
|
866
861
|
}
|
|
867
|
-
const
|
|
862
|
+
const uo = Symbol("vc-input-group-context");
|
|
868
863
|
function qe(e) {
|
|
869
|
-
const t = W(
|
|
864
|
+
const t = W(uo, null), n = ht(), o = $(() => `vc-field-${n}`), l = $(() => `${o.value}-label`), r = $(() => `${o.value}-error`), a = $(() => `${o.value}-hint`), u = $(() => !!e.error || !!e.errorMessage || !!t?.invalid.value), s = $(() => !!e.disabled || !!t?.disabled.value), f = $(() => t?.name.value || e.name), m = $(() => e.required ? !0 : void 0), v = $(() => {
|
|
870
865
|
const d = /* @__PURE__ */ new Set();
|
|
871
866
|
return t?.describedBy.value && t.describedBy.value.split(/\s+/).forEach((c) => d.add(c)), e.errorMessage && d.add(r.value), e.hint && d.add(a.value), d.size ? Array.from(d).join(" ") : void 0;
|
|
872
867
|
});
|
|
@@ -883,7 +878,7 @@ function qe(e) {
|
|
|
883
878
|
groupContext: t
|
|
884
879
|
};
|
|
885
880
|
}
|
|
886
|
-
function
|
|
881
|
+
function co(e, t = {}) {
|
|
887
882
|
const { speed: n = 2 } = t, o = S(!1), l = S(!1);
|
|
888
883
|
let r = null;
|
|
889
884
|
function a() {
|
|
@@ -906,7 +901,7 @@ function fo(e, t = {}) {
|
|
|
906
901
|
function s() {
|
|
907
902
|
r !== null && (cancelAnimationFrame(r), r = null);
|
|
908
903
|
}
|
|
909
|
-
return Ct(e, a),
|
|
904
|
+
return Ct(e, a), ze(() => {
|
|
910
905
|
s();
|
|
911
906
|
}), {
|
|
912
907
|
canScrollUp: o,
|
|
@@ -917,7 +912,7 @@ function fo(e, t = {}) {
|
|
|
917
912
|
};
|
|
918
913
|
}
|
|
919
914
|
function At(e = {}) {
|
|
920
|
-
const t = W(
|
|
915
|
+
const t = W(cn, void 0);
|
|
921
916
|
return {
|
|
922
917
|
teleportTarget: $(() => {
|
|
923
918
|
const o = e.to ? ue(e.to) : void 0;
|
|
@@ -930,7 +925,7 @@ function At(e = {}) {
|
|
|
930
925
|
})
|
|
931
926
|
};
|
|
932
927
|
}
|
|
933
|
-
const
|
|
928
|
+
const fo = ["aria-label"], go = { class: "tw-sr-only" }, vo = ["aria-label"], po = { class: "tw-sr-only" }, ae = /* @__PURE__ */ J({
|
|
934
929
|
__name: "vc-skeleton",
|
|
935
930
|
props: {
|
|
936
931
|
variant: { default: "text" },
|
|
@@ -958,7 +953,7 @@ const go = ["aria-label"], vo = { class: "tw-sr-only" }, po = ["aria-label"], mo
|
|
|
958
953
|
"aria-busy": "true",
|
|
959
954
|
"aria-label": e.ariaLabel
|
|
960
955
|
}, [
|
|
961
|
-
L("span",
|
|
956
|
+
L("span", go, N(e.ariaLabel), 1),
|
|
962
957
|
(g(!0), h(Ie, null, _e(e.rows, (a) => (g(), h("div", {
|
|
963
958
|
key: a,
|
|
964
959
|
class: "vc-skeleton__row",
|
|
@@ -967,7 +962,7 @@ const go = ["aria-label"], vo = { class: "tw-sr-only" }, po = ["aria-label"], mo
|
|
|
967
962
|
}),
|
|
968
963
|
"aria-hidden": "true"
|
|
969
964
|
}, null, 4))), 128))
|
|
970
|
-
], 10,
|
|
965
|
+
], 10, fo)) : (g(), h("div", {
|
|
971
966
|
key: 1,
|
|
972
967
|
class: j(["vc-skeleton__shape", [`vc-skeleton__shape--${e.variant}`, { "tw-animate-pulse": e.animated }]]),
|
|
973
968
|
style: Se({
|
|
@@ -978,10 +973,10 @@ const go = ["aria-label"], vo = { class: "tw-sr-only" }, po = ["aria-label"], mo
|
|
|
978
973
|
"aria-busy": "true",
|
|
979
974
|
"aria-label": e.ariaLabel
|
|
980
975
|
}, [
|
|
981
|
-
L("span",
|
|
982
|
-
], 14,
|
|
976
|
+
L("span", po, N(e.ariaLabel), 1)
|
|
977
|
+
], 14, vo));
|
|
983
978
|
}
|
|
984
|
-
}),
|
|
979
|
+
}), _l = /* @__PURE__ */ J({
|
|
985
980
|
__name: "vc-container",
|
|
986
981
|
props: {
|
|
987
982
|
shadow: { type: Boolean },
|
|
@@ -1025,7 +1020,7 @@ const go = ["aria-label"], vo = { class: "tw-sr-only" }, po = ["aria-label"], mo
|
|
|
1025
1020
|
_: 3
|
|
1026
1021
|
}, 8, ["class", "aria-label"]));
|
|
1027
1022
|
}
|
|
1028
|
-
}),
|
|
1023
|
+
}), mo = ["id", "role"], yo = /* @__PURE__ */ J({
|
|
1029
1024
|
__name: "vc-hint",
|
|
1030
1025
|
props: {
|
|
1031
1026
|
id: {},
|
|
@@ -1040,9 +1035,9 @@ const go = ["aria-label"], vo = { class: "tw-sr-only" }, po = ["aria-label"], mo
|
|
|
1040
1035
|
role: e.error ? "alert" : void 0
|
|
1041
1036
|
}, [
|
|
1042
1037
|
B(t.$slots, "default")
|
|
1043
|
-
], 10,
|
|
1038
|
+
], 10, mo));
|
|
1044
1039
|
}
|
|
1045
|
-
}), ce =
|
|
1040
|
+
}), ce = yo, bo = ["aria-describedby"], ho = /* @__PURE__ */ J({
|
|
1046
1041
|
__name: "vc-tooltip",
|
|
1047
1042
|
props: {
|
|
1048
1043
|
placement: { default: "bottom" },
|
|
@@ -1068,7 +1063,7 @@ const go = ["aria-label"], vo = { class: "tw-sr-only" }, po = ["aria-label"], mo
|
|
|
1068
1063
|
ot({ padding: 8 }),
|
|
1069
1064
|
at({ padding: 8 })
|
|
1070
1065
|
];
|
|
1071
|
-
return t.arrow && F.push(
|
|
1066
|
+
return t.arrow && F.push($n({ element: a, padding: 4 })), F;
|
|
1072
1067
|
}), {
|
|
1073
1068
|
floatingStyles: v,
|
|
1074
1069
|
placement: d,
|
|
@@ -1094,7 +1089,7 @@ const go = ["aria-label"], vo = { class: "tw-sr-only" }, po = ["aria-label"], mo
|
|
|
1094
1089
|
}, M = () => {
|
|
1095
1090
|
s && (clearTimeout(s), s = null), o.value = !1;
|
|
1096
1091
|
};
|
|
1097
|
-
return
|
|
1092
|
+
return ze(() => {
|
|
1098
1093
|
s && (clearTimeout(s), s = null);
|
|
1099
1094
|
}), (F, G) => (g(), h("div", {
|
|
1100
1095
|
ref_key: "target",
|
|
@@ -1113,7 +1108,7 @@ const go = ["aria-label"], vo = { class: "tw-sr-only" }, po = ["aria-label"], mo
|
|
|
1113
1108
|
"aria-describedby": o.value ? n : void 0
|
|
1114
1109
|
}, [
|
|
1115
1110
|
B(F.$slots, "default")
|
|
1116
|
-
], 8,
|
|
1111
|
+
], 8, bo),
|
|
1117
1112
|
(g(), q(It, { to: i(f) }, [
|
|
1118
1113
|
T(we, { name: "vc-tooltip-fade" }, {
|
|
1119
1114
|
default: C(() => [
|
|
@@ -1145,14 +1140,14 @@ const go = ["aria-label"], vo = { class: "tw-sr-only" }, po = ["aria-label"], mo
|
|
|
1145
1140
|
], 8, ["to"]))
|
|
1146
1141
|
], 544));
|
|
1147
1142
|
}
|
|
1148
|
-
}),
|
|
1143
|
+
}), ko = { class: "vc-label__text" }, Io = { class: "vc-label__content" }, So = {
|
|
1149
1144
|
key: 0,
|
|
1150
1145
|
class: "vc-label__required",
|
|
1151
1146
|
"aria-hidden": "true"
|
|
1152
|
-
},
|
|
1147
|
+
}, wo = {
|
|
1153
1148
|
key: 0,
|
|
1154
1149
|
class: "vc-label__tooltip"
|
|
1155
|
-
},
|
|
1150
|
+
}, $o = {
|
|
1156
1151
|
key: 1,
|
|
1157
1152
|
class: "vc-label__language"
|
|
1158
1153
|
}, Ke = /* @__PURE__ */ J({
|
|
@@ -1173,14 +1168,14 @@ const go = ["aria-label"], vo = { class: "tw-sr-only" }, po = ["aria-label"], mo
|
|
|
1173
1168
|
for: e.htmlFor || void 0
|
|
1174
1169
|
}, {
|
|
1175
1170
|
default: C(() => [
|
|
1176
|
-
L("div",
|
|
1177
|
-
L("span",
|
|
1171
|
+
L("div", ko, [
|
|
1172
|
+
L("span", Io, [
|
|
1178
1173
|
B(t.$slots, "default")
|
|
1179
1174
|
]),
|
|
1180
|
-
e.required ? (g(), h("span",
|
|
1175
|
+
e.required ? (g(), h("span", So, "*")) : w("", !0)
|
|
1181
1176
|
]),
|
|
1182
|
-
t.$slots.tooltip ? (g(), h("span",
|
|
1183
|
-
T(i(
|
|
1177
|
+
t.$slots.tooltip ? (g(), h("span", wo, [
|
|
1178
|
+
T(i(ho), { placement: "top-start" }, {
|
|
1184
1179
|
tooltip: C(() => [
|
|
1185
1180
|
B(t.$slots, "tooltip")
|
|
1186
1181
|
]),
|
|
@@ -1194,12 +1189,12 @@ const go = ["aria-label"], vo = { class: "tw-sr-only" }, po = ["aria-label"], mo
|
|
|
1194
1189
|
_: 3
|
|
1195
1190
|
})
|
|
1196
1191
|
])) : w("", !0),
|
|
1197
|
-
e.multilanguage ? (g(), h("div",
|
|
1192
|
+
e.multilanguage ? (g(), h("div", $o, N(e.currentLanguage), 1)) : w("", !0)
|
|
1198
1193
|
]),
|
|
1199
1194
|
_: 3
|
|
1200
1195
|
}, 8, ["class", "for"]));
|
|
1201
1196
|
}
|
|
1202
|
-
}),
|
|
1197
|
+
}), Oo = ["aria-label"], pt = 40, Eo = /* @__PURE__ */ J({
|
|
1203
1198
|
__name: "vc-scrollable-container",
|
|
1204
1199
|
props: {
|
|
1205
1200
|
speed: { default: void 0 }
|
|
@@ -1207,7 +1202,7 @@ const go = ["aria-label"], vo = { class: "tw-sr-only" }, po = ["aria-label"], mo
|
|
|
1207
1202
|
setup(e, { expose: t }) {
|
|
1208
1203
|
const n = e, o = S(null), l = {};
|
|
1209
1204
|
n.speed !== void 0 && (l.speed = n.speed);
|
|
1210
|
-
const { canScrollUp: r, canScrollDown: a, startScroll: u, stopScroll: s, updateScrollState: f } =
|
|
1205
|
+
const { canScrollUp: r, canScrollDown: a, startScroll: u, stopScroll: s, updateScrollState: f } = co(
|
|
1211
1206
|
o,
|
|
1212
1207
|
l
|
|
1213
1208
|
);
|
|
@@ -1266,14 +1261,14 @@ const go = ["aria-label"], vo = { class: "tw-sr-only" }, po = ["aria-label"], mo
|
|
|
1266
1261
|
})
|
|
1267
1262
|
])
|
|
1268
1263
|
], 34)
|
|
1269
|
-
], 8,
|
|
1264
|
+
], 8, Oo));
|
|
1270
1265
|
}
|
|
1271
1266
|
}), rt = Oe({
|
|
1272
1267
|
name: "toolbar-service",
|
|
1273
1268
|
getKey: (e) => `${e.bladeId.toLowerCase()}::${e.toolbarItem.id}`,
|
|
1274
1269
|
registerIntoService: (e, t) => e.registerToolbarItem(t.toolbarItem, t.bladeId)
|
|
1275
1270
|
});
|
|
1276
|
-
function
|
|
1271
|
+
function ei(e, t) {
|
|
1277
1272
|
const n = t.toLowerCase();
|
|
1278
1273
|
rt.preregister({
|
|
1279
1274
|
bladeId: n,
|
|
@@ -1313,24 +1308,24 @@ function Vt() {
|
|
|
1313
1308
|
};
|
|
1314
1309
|
return rt.replayInto(a), a;
|
|
1315
1310
|
}
|
|
1316
|
-
const
|
|
1311
|
+
const Co = "fallback-blade-id";
|
|
1317
1312
|
let Ge = null;
|
|
1318
|
-
const
|
|
1313
|
+
const Bo = Pe({
|
|
1319
1314
|
key: Ot,
|
|
1320
1315
|
create: Vt,
|
|
1321
1316
|
bus: rt,
|
|
1322
1317
|
name: "ToolbarService"
|
|
1323
1318
|
});
|
|
1324
|
-
function
|
|
1325
|
-
return
|
|
1319
|
+
function ti() {
|
|
1320
|
+
return Bo.provide();
|
|
1326
1321
|
}
|
|
1327
|
-
function
|
|
1322
|
+
function ni(e = {}) {
|
|
1328
1323
|
const { autoCleanup: t = !0 } = e, n = W(Ot, null);
|
|
1329
1324
|
!n && !Ge && (Ge = Vt());
|
|
1330
1325
|
const o = n || Ge;
|
|
1331
1326
|
if (!o)
|
|
1332
1327
|
throw new Error("Toolbar service is not available");
|
|
1333
|
-
const l = W($t, void 0), r = $(() => l?.value?.id ??
|
|
1328
|
+
const l = W($t, void 0), r = $(() => l?.value?.id ?? Co), a = (c) => c ?? r.value, u = (c, y) => {
|
|
1334
1329
|
o.registerToolbarItem(c, a(y));
|
|
1335
1330
|
}, s = (c, y) => {
|
|
1336
1331
|
o.unregisterToolbarItem(c, a(y));
|
|
@@ -1339,7 +1334,7 @@ function oi(e = {}) {
|
|
|
1339
1334
|
}, m = (c) => o.getToolbarItems(a(c)), v = (c) => {
|
|
1340
1335
|
o.clearBladeToolbarItems(a(c));
|
|
1341
1336
|
};
|
|
1342
|
-
return Fe() && t &&
|
|
1337
|
+
return Fe() && t && ze(() => {
|
|
1343
1338
|
v();
|
|
1344
1339
|
}), {
|
|
1345
1340
|
registerToolbarItem: u,
|
|
@@ -1352,41 +1347,41 @@ function oi(e = {}) {
|
|
|
1352
1347
|
};
|
|
1353
1348
|
}
|
|
1354
1349
|
const st = /* @__PURE__ */ new Map();
|
|
1355
|
-
function
|
|
1350
|
+
function Lo(e) {
|
|
1356
1351
|
return e?.map((t) => t.toLowerCase());
|
|
1357
1352
|
}
|
|
1358
|
-
function
|
|
1353
|
+
function oi(e) {
|
|
1359
1354
|
st.set(e.id, {
|
|
1360
1355
|
...e,
|
|
1361
|
-
targetBlades:
|
|
1356
|
+
targetBlades: Lo(e.targetBlades)
|
|
1362
1357
|
});
|
|
1363
1358
|
}
|
|
1364
|
-
function
|
|
1359
|
+
function xo(e) {
|
|
1365
1360
|
const t = e.toLowerCase();
|
|
1366
1361
|
return Array.from(st.values()).filter((n) => !n.targetBlades || n.targetBlades.includes(t)).map((n) => ({ ...n, targetBlades: n.targetBlades ? [...n.targetBlades] : void 0 }));
|
|
1367
1362
|
}
|
|
1368
|
-
function
|
|
1363
|
+
function Ro() {
|
|
1369
1364
|
return Array.from(st.values()).map((e) => ({
|
|
1370
1365
|
...e,
|
|
1371
1366
|
targetBlades: e.targetBlades ? [...e.targetBlades] : void 0
|
|
1372
1367
|
}));
|
|
1373
1368
|
}
|
|
1374
|
-
function
|
|
1375
|
-
return
|
|
1369
|
+
function To(e) {
|
|
1370
|
+
return vn(e);
|
|
1376
1371
|
}
|
|
1377
1372
|
const Dt = Oe({
|
|
1378
1373
|
name: "widget-service",
|
|
1379
1374
|
getKey: (e) => `${e.bladeId.toLowerCase()}::${e.widget.id}`,
|
|
1380
1375
|
registerIntoService: (e, t) => e.registerWidget(t.widget, t.bladeId)
|
|
1381
1376
|
});
|
|
1382
|
-
function
|
|
1377
|
+
function ai(e, t) {
|
|
1383
1378
|
const n = t.toLowerCase();
|
|
1384
1379
|
Dt.preregister({
|
|
1385
1380
|
bladeId: n,
|
|
1386
1381
|
widget: e
|
|
1387
1382
|
});
|
|
1388
1383
|
}
|
|
1389
|
-
function
|
|
1384
|
+
function li() {
|
|
1390
1385
|
const e = Rt({
|
|
1391
1386
|
createRegistration: (o, l) => ({ bladeId: o, widget: l }),
|
|
1392
1387
|
getRegistrationBladeId: (o) => o.bladeId,
|
|
@@ -1396,16 +1391,16 @@ function ii() {
|
|
|
1396
1391
|
unregisterWidget: (o, l) => e.unregister(o, l),
|
|
1397
1392
|
getWidgets: (o) => e.get(o),
|
|
1398
1393
|
updateWidget: ({ id: o, bladeId: l, widget: r }) => e.update(o, l, r),
|
|
1399
|
-
getExternalWidgetsForBlade: (o) =>
|
|
1400
|
-
getAllExternalWidgets:
|
|
1401
|
-
cloneWidget:
|
|
1394
|
+
getExternalWidgetsForBlade: (o) => xo(o.toLowerCase()),
|
|
1395
|
+
getAllExternalWidgets: Ro,
|
|
1396
|
+
cloneWidget: To
|
|
1402
1397
|
};
|
|
1403
1398
|
return Dt.replayInto(n), n;
|
|
1404
1399
|
}
|
|
1405
|
-
const
|
|
1400
|
+
const Mo = de("use-theme"), ge = S([
|
|
1406
1401
|
{ key: "light", localizationKey: "CORE.THEMES.LIGHT" },
|
|
1407
1402
|
{ key: "dark", localizationKey: "CORE.THEMES.DARK" }
|
|
1408
|
-
]),
|
|
1403
|
+
]), ii = kn(() => {
|
|
1409
1404
|
const { t: e } = ye.global;
|
|
1410
1405
|
function t(f) {
|
|
1411
1406
|
(Array.isArray(f) ? f : [f]).forEach((m) => {
|
|
@@ -1418,7 +1413,7 @@ const Ao = de("use-theme"), ge = S([
|
|
|
1418
1413
|
v >= 0 && ge.value.splice(v, 1);
|
|
1419
1414
|
});
|
|
1420
1415
|
}
|
|
1421
|
-
const o = $(() => ge.value.map((f) => f.key)), l =
|
|
1416
|
+
const o = $(() => ge.value.map((f) => f.key)), l = mn({
|
|
1422
1417
|
attribute: "data-theme",
|
|
1423
1418
|
emitAuto: !0,
|
|
1424
1419
|
initialValue: "light",
|
|
@@ -1430,12 +1425,12 @@ const Ao = de("use-theme"), ge = S([
|
|
|
1430
1425
|
{}
|
|
1431
1426
|
)
|
|
1432
1427
|
}
|
|
1433
|
-
}), { state: r, next: a } =
|
|
1428
|
+
}), { state: r, next: a } = yn(o, { initialValue: l });
|
|
1434
1429
|
He(() => {
|
|
1435
1430
|
r.value && (l.value = r.value);
|
|
1436
1431
|
});
|
|
1437
1432
|
function u(f) {
|
|
1438
|
-
o.value.includes(f) ? r.value = f :
|
|
1433
|
+
o.value.includes(f) ? r.value = f : Mo.warn(`Attempted to set an unregistered theme: ${f}`);
|
|
1439
1434
|
}
|
|
1440
1435
|
const s = $(() => {
|
|
1441
1436
|
const f = ge.value.find((m) => m.key === r.value);
|
|
@@ -1460,15 +1455,15 @@ const Ao = de("use-theme"), ge = S([
|
|
|
1460
1455
|
getKey: (e) => e.id,
|
|
1461
1456
|
registerIntoService: (e, t) => e.registerWidget(t)
|
|
1462
1457
|
});
|
|
1463
|
-
function
|
|
1458
|
+
function ri(e) {
|
|
1464
1459
|
ut.preregister(e);
|
|
1465
1460
|
}
|
|
1466
|
-
const
|
|
1461
|
+
const Ao = () => ({
|
|
1467
1462
|
widgets: Je(/* @__PURE__ */ new Map()),
|
|
1468
1463
|
layout: Je(/* @__PURE__ */ new Map())
|
|
1469
1464
|
});
|
|
1470
|
-
function
|
|
1471
|
-
const t =
|
|
1465
|
+
function Vo(e = {}) {
|
|
1466
|
+
const t = Ao(), n = e.hasAccess ?? (() => !0), u = {
|
|
1472
1467
|
registerWidget: (s) => {
|
|
1473
1468
|
if (t.widgets.has(s.id))
|
|
1474
1469
|
throw new Error(`Widget with id ${s.id} already registered`);
|
|
@@ -1494,28 +1489,28 @@ function Do(e = {}) {
|
|
|
1494
1489
|
};
|
|
1495
1490
|
return ut.replayInto(u), u;
|
|
1496
1491
|
}
|
|
1497
|
-
const mt = de("use-dashboard"), Nt =
|
|
1498
|
-
key:
|
|
1492
|
+
const mt = de("use-dashboard"), Nt = Pe({
|
|
1493
|
+
key: dn,
|
|
1499
1494
|
bus: ut,
|
|
1500
1495
|
name: "DashboardService",
|
|
1501
1496
|
create: () => {
|
|
1502
1497
|
let e = () => !0;
|
|
1503
1498
|
try {
|
|
1504
|
-
const { hasAccess: t } =
|
|
1499
|
+
const { hasAccess: t } = An();
|
|
1505
1500
|
e = (n) => t(n);
|
|
1506
1501
|
} catch (t) {
|
|
1507
1502
|
mt.warn("Permissions composable unavailable, dashboard falls back to allow-all access check", t);
|
|
1508
1503
|
}
|
|
1509
|
-
return
|
|
1504
|
+
return Vo({
|
|
1510
1505
|
hasAccess: e
|
|
1511
1506
|
});
|
|
1512
1507
|
},
|
|
1513
1508
|
onMissing: () => mt.error("Dashboard service not found")
|
|
1514
1509
|
});
|
|
1515
|
-
function
|
|
1510
|
+
function si() {
|
|
1516
1511
|
return Nt.provide();
|
|
1517
1512
|
}
|
|
1518
|
-
function
|
|
1513
|
+
function ui() {
|
|
1519
1514
|
return Nt.use();
|
|
1520
1515
|
}
|
|
1521
1516
|
const Ft = Oe({
|
|
@@ -1524,10 +1519,10 @@ const Ft = Oe({
|
|
|
1524
1519
|
registerIntoService: (e, t) => e.register(t),
|
|
1525
1520
|
unregisterFromService: (e, t) => e.unregister(t)
|
|
1526
1521
|
});
|
|
1527
|
-
function
|
|
1522
|
+
function ci(e) {
|
|
1528
1523
|
Ft.preregister(e);
|
|
1529
1524
|
}
|
|
1530
|
-
function
|
|
1525
|
+
function di() {
|
|
1531
1526
|
return Tt({
|
|
1532
1527
|
bus: Ft,
|
|
1533
1528
|
createItem: (e, t) => ({
|
|
@@ -1551,10 +1546,10 @@ const ct = Oe({
|
|
|
1551
1546
|
registerIntoService: (e, t) => e.register(t),
|
|
1552
1547
|
unregisterFromService: (e, t) => e.unregister(t)
|
|
1553
1548
|
});
|
|
1554
|
-
function
|
|
1549
|
+
function fi(e) {
|
|
1555
1550
|
ct.preregister(e);
|
|
1556
1551
|
}
|
|
1557
|
-
function
|
|
1552
|
+
function Do() {
|
|
1558
1553
|
return Tt({
|
|
1559
1554
|
bus: ct,
|
|
1560
1555
|
createItem: (e, t) => ({
|
|
@@ -1567,26 +1562,26 @@ function No() {
|
|
|
1567
1562
|
getId: (e) => e.id || ""
|
|
1568
1563
|
});
|
|
1569
1564
|
}
|
|
1570
|
-
const
|
|
1571
|
-
key:
|
|
1572
|
-
create:
|
|
1565
|
+
const No = de("use-settings-menu"), zt = Pe({
|
|
1566
|
+
key: fn,
|
|
1567
|
+
create: Do,
|
|
1573
1568
|
bus: ct,
|
|
1574
1569
|
name: "SettingsMenuService",
|
|
1575
|
-
onMissing: () =>
|
|
1570
|
+
onMissing: () => No.error("Settings menu service not found")
|
|
1576
1571
|
});
|
|
1577
|
-
function
|
|
1578
|
-
return
|
|
1572
|
+
function gi() {
|
|
1573
|
+
return zt.provide();
|
|
1579
1574
|
}
|
|
1580
|
-
function
|
|
1581
|
-
return
|
|
1575
|
+
function vi() {
|
|
1576
|
+
return zt.use();
|
|
1582
1577
|
}
|
|
1583
|
-
const
|
|
1578
|
+
const Fo = {
|
|
1584
1579
|
key: 0,
|
|
1585
1580
|
class: "vc-date-picker vc-date-picker--skeleton"
|
|
1586
|
-
}, zo = { class: "vc-date-picker__field-container" },
|
|
1581
|
+
}, zo = { class: "vc-date-picker__field-container" }, Po = { class: "vc-date-picker__field" }, qo = ["aria-label"], Ko = {
|
|
1587
1582
|
key: 0,
|
|
1588
1583
|
class: "vc-date-picker__loading"
|
|
1589
|
-
},
|
|
1584
|
+
}, Uo = { key: 0 }, Wo = { key: 1 }, jo = /* @__PURE__ */ J({
|
|
1590
1585
|
__name: "vc-date-picker",
|
|
1591
1586
|
props: {
|
|
1592
1587
|
modelValue: {},
|
|
@@ -1610,7 +1605,7 @@ const Po = {
|
|
|
1610
1605
|
},
|
|
1611
1606
|
emits: ["update:modelValue", "blur", "focus"],
|
|
1612
1607
|
setup(e, { emit: t }) {
|
|
1613
|
-
const n = e, o = t, l = be(), { isMobile: r, isDesktop: a } =
|
|
1608
|
+
const n = e, o = t, l = be(), { isMobile: r, isDesktop: a } = Zn(), { labelId: u, errorId: s, hintId: f, invalid: m, resolvedDisabled: v, ariaRequired: d, ariaDescribedBy: c } = qe(n), y = S(!1), b = window.navigator.language, E = S(n.modelValue), p = S(null), k = $(() => n.type === "date" && "9999-12-31" || void 0), M = (() => {
|
|
1614
1609
|
const I = new Intl.DateTimeFormat(b, { hour: "numeric" }).format();
|
|
1615
1610
|
return Number.isInteger(Number(I));
|
|
1616
1611
|
})(), F = $(() => {
|
|
@@ -1660,7 +1655,7 @@ const Po = {
|
|
|
1660
1655
|
function V(I) {
|
|
1661
1656
|
p.value = I;
|
|
1662
1657
|
}
|
|
1663
|
-
function
|
|
1658
|
+
function z() {
|
|
1664
1659
|
p.value = null;
|
|
1665
1660
|
}
|
|
1666
1661
|
function U(I) {
|
|
@@ -1669,7 +1664,7 @@ const Po = {
|
|
|
1669
1664
|
function X() {
|
|
1670
1665
|
y.value = !0, o("focus");
|
|
1671
1666
|
}
|
|
1672
|
-
return (I, x) => i(l) ? (g(), h("div",
|
|
1667
|
+
return (I, x) => i(l) ? (g(), h("div", Fo, [
|
|
1673
1668
|
e.label ? (g(), q(i(ae), {
|
|
1674
1669
|
key: 0,
|
|
1675
1670
|
variant: "block",
|
|
@@ -1720,8 +1715,8 @@ const Po = {
|
|
|
1720
1715
|
}])
|
|
1721
1716
|
}, [
|
|
1722
1717
|
L("div", zo, [
|
|
1723
|
-
L("div",
|
|
1724
|
-
T(i(
|
|
1718
|
+
L("div", Po, [
|
|
1719
|
+
T(i(Cn), oe({
|
|
1725
1720
|
modelValue: E.value,
|
|
1726
1721
|
"onUpdate:modelValue": x[0] || (x[0] = (K) => E.value = K),
|
|
1727
1722
|
placeholder: e.placeholder || (e.type === "datetime-local" ? I.$t("COMPONENTS.MOLECULES.VC_INPUT.DATE_TIME_PLACEHOLDER") : I.$t("COMPONENTS.MOLECULES.VC_INPUT.DATE_PLACEHOLDER")),
|
|
@@ -1750,7 +1745,7 @@ const Po = {
|
|
|
1750
1745
|
onFocus: X,
|
|
1751
1746
|
onClosed: U,
|
|
1752
1747
|
onRangeStart: V,
|
|
1753
|
-
onRangeEnd:
|
|
1748
|
+
onRangeEnd: z,
|
|
1754
1749
|
onTooltipOpen: X,
|
|
1755
1750
|
onTooltipClose: U
|
|
1756
1751
|
}), null, 16, ["modelValue", "placeholder", "disabled", "name", "autofocus", "max-date", "enable-time-picker", "locale", "teleport-center", "is24", "teleport", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby"]),
|
|
@@ -1765,9 +1760,9 @@ const Po = {
|
|
|
1765
1760
|
size: "xs",
|
|
1766
1761
|
icon: "lucide-x"
|
|
1767
1762
|
})
|
|
1768
|
-
], 8,
|
|
1763
|
+
], 8, qo)) : w("", !0)
|
|
1769
1764
|
]),
|
|
1770
|
-
e.loading ? (g(), h("div",
|
|
1765
|
+
e.loading ? (g(), h("div", Ko, [
|
|
1771
1766
|
T(i(H), {
|
|
1772
1767
|
icon: "lucide-loader-2",
|
|
1773
1768
|
class: "vc-date-picker__loading-icon",
|
|
@@ -1781,7 +1776,7 @@ const Po = {
|
|
|
1781
1776
|
mode: "out-in"
|
|
1782
1777
|
}, {
|
|
1783
1778
|
default: C(() => [
|
|
1784
|
-
i(m) && e.errorMessage ? (g(), h("div",
|
|
1779
|
+
i(m) && e.errorMessage ? (g(), h("div", Uo, [
|
|
1785
1780
|
T(i(ce), {
|
|
1786
1781
|
id: i(s),
|
|
1787
1782
|
class: "vc-date-picker__hint-error",
|
|
@@ -1792,7 +1787,7 @@ const Po = {
|
|
|
1792
1787
|
]),
|
|
1793
1788
|
_: 1
|
|
1794
1789
|
}, 8, ["id"])
|
|
1795
|
-
])) : (g(), h("div",
|
|
1790
|
+
])) : (g(), h("div", Wo, [
|
|
1796
1791
|
e.hint ? (g(), q(i(ce), {
|
|
1797
1792
|
key: 0,
|
|
1798
1793
|
id: i(f),
|
|
@@ -1809,13 +1804,13 @@ const Po = {
|
|
|
1809
1804
|
})
|
|
1810
1805
|
], 2));
|
|
1811
1806
|
}
|
|
1812
|
-
}),
|
|
1807
|
+
}), Go = {
|
|
1813
1808
|
key: 0,
|
|
1814
1809
|
class: "vc-color-input vc-color-input--skeleton"
|
|
1815
|
-
},
|
|
1810
|
+
}, Ho = { class: "vc-color-input__field-container" }, Jo = { class: "vc-color-input__field" }, Yo = ["id", "placeholder", "disabled", "name", "autofocus", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby"], Xo = { class: "vc-color-input__color-container" }, Zo = ["aria-label"], Qo = ["value"], _o = ["aria-label"], ea = {
|
|
1816
1811
|
key: 0,
|
|
1817
1812
|
class: "vc-color-input__loading"
|
|
1818
|
-
},
|
|
1813
|
+
}, ta = { key: 0 }, na = { key: 1 }, oa = /* @__PURE__ */ J({
|
|
1819
1814
|
__name: "vc-color-input",
|
|
1820
1815
|
props: {
|
|
1821
1816
|
modelValue: {},
|
|
@@ -1853,11 +1848,11 @@ const Po = {
|
|
|
1853
1848
|
return;
|
|
1854
1849
|
}
|
|
1855
1850
|
const x = I.trim();
|
|
1856
|
-
if (
|
|
1851
|
+
if (Tn(x)) {
|
|
1857
1852
|
M.value = gt(x);
|
|
1858
1853
|
return;
|
|
1859
1854
|
}
|
|
1860
|
-
const K =
|
|
1855
|
+
const K = Rn(x);
|
|
1861
1856
|
K && (M.value = K);
|
|
1862
1857
|
}
|
|
1863
1858
|
ee(
|
|
@@ -1889,7 +1884,7 @@ const Po = {
|
|
|
1889
1884
|
function V() {
|
|
1890
1885
|
k.value = "", M.value = "", r("update:modelValue", null);
|
|
1891
1886
|
}
|
|
1892
|
-
function
|
|
1887
|
+
function z(I) {
|
|
1893
1888
|
y.value = !1, r("blur", I);
|
|
1894
1889
|
}
|
|
1895
1890
|
function U() {
|
|
@@ -1898,7 +1893,7 @@ const Po = {
|
|
|
1898
1893
|
function X() {
|
|
1899
1894
|
E.value?.focus();
|
|
1900
1895
|
}
|
|
1901
|
-
return t({ focus: X }), (I, x) => i(o) ? (g(), h("div",
|
|
1896
|
+
return t({ focus: X }), (I, x) => i(o) ? (g(), h("div", Go, [
|
|
1902
1897
|
e.label ? (g(), q(i(ae), {
|
|
1903
1898
|
key: 0,
|
|
1904
1899
|
variant: "block",
|
|
@@ -1949,8 +1944,8 @@ const Po = {
|
|
|
1949
1944
|
"vc-color-input__field-wrapper--small": e.size === "small"
|
|
1950
1945
|
}])
|
|
1951
1946
|
}, [
|
|
1952
|
-
L("div",
|
|
1953
|
-
L("div",
|
|
1947
|
+
L("div", Ho, [
|
|
1948
|
+
L("div", Jo, [
|
|
1954
1949
|
et(L("input", {
|
|
1955
1950
|
id: i(a),
|
|
1956
1951
|
ref_key: "inputRef",
|
|
@@ -1967,20 +1962,20 @@ const Po = {
|
|
|
1967
1962
|
"aria-labelledby": e.label ? i(u) : void 0,
|
|
1968
1963
|
class: "vc-color-input__input",
|
|
1969
1964
|
tabindex: "0",
|
|
1970
|
-
onBlur:
|
|
1965
|
+
onBlur: z,
|
|
1971
1966
|
onFocus: U,
|
|
1972
1967
|
onInput: G
|
|
1973
|
-
}, null, 40,
|
|
1968
|
+
}, null, 40, Yo), [
|
|
1974
1969
|
[Qt, k.value]
|
|
1975
1970
|
]),
|
|
1976
|
-
L("div",
|
|
1971
|
+
L("div", Xo, [
|
|
1977
1972
|
L("button", {
|
|
1978
1973
|
type: "button",
|
|
1979
1974
|
class: "vc-color-input__color-square",
|
|
1980
1975
|
style: Se({ backgroundColor: M.value || "#ffffff" }),
|
|
1981
1976
|
"aria-label": `Pick color${M.value ? ": " + M.value : ""}`,
|
|
1982
1977
|
onClick: D
|
|
1983
|
-
}, null, 12,
|
|
1978
|
+
}, null, 12, Zo),
|
|
1984
1979
|
L("input", {
|
|
1985
1980
|
ref_key: "colorPickerRef",
|
|
1986
1981
|
ref: p,
|
|
@@ -1990,7 +1985,7 @@ const Po = {
|
|
|
1990
1985
|
tabindex: "-1",
|
|
1991
1986
|
"aria-hidden": "true",
|
|
1992
1987
|
onChange: Y
|
|
1993
|
-
}, null, 40,
|
|
1988
|
+
}, null, 40, Qo)
|
|
1994
1989
|
]),
|
|
1995
1990
|
e.clearable && k.value && !e.disabled ? (g(), h("button", {
|
|
1996
1991
|
key: 0,
|
|
@@ -2003,9 +1998,9 @@ const Po = {
|
|
|
2003
1998
|
size: "xs",
|
|
2004
1999
|
icon: "lucide-x"
|
|
2005
2000
|
})
|
|
2006
|
-
], 8,
|
|
2001
|
+
], 8, _o)) : w("", !0)
|
|
2007
2002
|
]),
|
|
2008
|
-
e.loading ? (g(), h("div",
|
|
2003
|
+
e.loading ? (g(), h("div", ea, [
|
|
2009
2004
|
T(i(H), {
|
|
2010
2005
|
icon: "lucide-loader-2",
|
|
2011
2006
|
class: "vc-color-input__loading-icon",
|
|
@@ -2019,7 +2014,7 @@ const Po = {
|
|
|
2019
2014
|
mode: "out-in"
|
|
2020
2015
|
}, {
|
|
2021
2016
|
default: C(() => [
|
|
2022
|
-
i(m) && e.errorMessage ? (g(), h("div",
|
|
2017
|
+
i(m) && e.errorMessage ? (g(), h("div", ta, [
|
|
2023
2018
|
T(i(ce), {
|
|
2024
2019
|
id: i(s),
|
|
2025
2020
|
class: "vc-color-input__hint-error",
|
|
@@ -2030,7 +2025,7 @@ const Po = {
|
|
|
2030
2025
|
]),
|
|
2031
2026
|
_: 1
|
|
2032
2027
|
}, 8, ["id"])
|
|
2033
|
-
])) : (g(), h("div",
|
|
2028
|
+
])) : (g(), h("div", na, [
|
|
2034
2029
|
e.hint ? (g(), q(i(ce), {
|
|
2035
2030
|
key: 0,
|
|
2036
2031
|
id: i(f),
|
|
@@ -2047,28 +2042,28 @@ const Po = {
|
|
|
2047
2042
|
})
|
|
2048
2043
|
], 2));
|
|
2049
2044
|
}
|
|
2050
|
-
}),
|
|
2045
|
+
}), aa = { class: "vc-input__container" }, la = {
|
|
2051
2046
|
key: 0,
|
|
2052
2047
|
class: "vc-input__prepend"
|
|
2053
|
-
},
|
|
2048
|
+
}, ia = { class: "vc-input__field-container" }, ra = {
|
|
2054
2049
|
key: 0,
|
|
2055
2050
|
class: "vc-input__prepend-inner"
|
|
2056
|
-
},
|
|
2051
|
+
}, sa = { class: "vc-input__field" }, ua = {
|
|
2057
2052
|
key: 0,
|
|
2058
2053
|
class: "vc-input__prefix"
|
|
2059
|
-
},
|
|
2054
|
+
}, ca = ["id", "placeholder", "type", "disabled", "name", "maxlength", "autofocus", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby"], da = {
|
|
2060
2055
|
key: 1,
|
|
2061
2056
|
class: "vc-input__suffix"
|
|
2062
|
-
},
|
|
2057
|
+
}, fa = ["aria-label"], ga = ["aria-label"], va = {
|
|
2063
2058
|
key: 1,
|
|
2064
2059
|
class: "vc-input__append-inner"
|
|
2065
|
-
},
|
|
2060
|
+
}, pa = {
|
|
2066
2061
|
key: 2,
|
|
2067
2062
|
class: "vc-input__loading"
|
|
2068
|
-
},
|
|
2063
|
+
}, ma = {
|
|
2069
2064
|
key: 1,
|
|
2070
2065
|
class: "vc-input__append"
|
|
2071
|
-
},
|
|
2066
|
+
}, ya = { key: 0 }, ba = { key: 1 }, ha = /* @__PURE__ */ J({
|
|
2072
2067
|
inheritAttrs: !1,
|
|
2073
2068
|
__name: "vc-input",
|
|
2074
2069
|
props: {
|
|
@@ -2099,8 +2094,8 @@ const Po = {
|
|
|
2099
2094
|
emits: ["update:modelValue", "blur", "focus"],
|
|
2100
2095
|
setup(e, { emit: t }) {
|
|
2101
2096
|
const n = e, o = St(), l = $(() => {
|
|
2102
|
-
const { class: O, ...
|
|
2103
|
-
return
|
|
2097
|
+
const { class: O, ...P } = o;
|
|
2098
|
+
return P;
|
|
2104
2099
|
}), r = t, a = be(), {
|
|
2105
2100
|
fieldId: u,
|
|
2106
2101
|
labelId: s,
|
|
@@ -2120,7 +2115,7 @@ const Po = {
|
|
|
2120
2115
|
set(O) {
|
|
2121
2116
|
F.value = O;
|
|
2122
2117
|
}
|
|
2123
|
-
}), V = $(() => i(n.modelValue)),
|
|
2118
|
+
}), V = $(() => i(n.modelValue)), z = $({
|
|
2124
2119
|
get() {
|
|
2125
2120
|
return (n.type === "integer" || n.type === "number") && isNaN(k.value) ? "" : k.value;
|
|
2126
2121
|
},
|
|
@@ -2136,8 +2131,8 @@ const Po = {
|
|
|
2136
2131
|
{ immediate: !0 }
|
|
2137
2132
|
);
|
|
2138
2133
|
function U(O) {
|
|
2139
|
-
const
|
|
2140
|
-
if ((n.type === "number" || n.type === "integer") && (A === "-" || A === "e" || A === "+") && O.preventDefault(), n.type === "integer" && !/^\d$/.test(A) && !
|
|
2134
|
+
const P = ["Backspace", "Delete", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], A = O.key;
|
|
2135
|
+
if ((n.type === "number" || n.type === "integer") && (A === "-" || A === "e" || A === "+") && O.preventDefault(), n.type === "integer" && !/^\d$/.test(A) && !P.includes(A)) {
|
|
2141
2136
|
O.preventDefault();
|
|
2142
2137
|
return;
|
|
2143
2138
|
}
|
|
@@ -2148,8 +2143,8 @@ const Po = {
|
|
|
2148
2143
|
function I(O) {
|
|
2149
2144
|
p = () => {
|
|
2150
2145
|
if (Y.value !== O) {
|
|
2151
|
-
let
|
|
2152
|
-
n.type === "number" && O !== null && O !== void 0 ?
|
|
2146
|
+
let P;
|
|
2147
|
+
n.type === "number" && O !== null && O !== void 0 ? P = O !== "" ? parseFloat(O) : null : n.type === "integer" && O !== null && O !== void 0 ? P = O !== "" ? Math.trunc(parseInt(O)) : null : P = O, r("update:modelValue", P);
|
|
2153
2148
|
}
|
|
2154
2149
|
p = void 0;
|
|
2155
2150
|
}, n.debounce !== void 0 ? (clearTimeout(E), E = setTimeout(p, +n.debounce)) : p();
|
|
@@ -2166,7 +2161,7 @@ const Po = {
|
|
|
2166
2161
|
function Ae() {
|
|
2167
2162
|
G.value = !0, r("focus");
|
|
2168
2163
|
}
|
|
2169
|
-
return (O,
|
|
2164
|
+
return (O, P) => i(a) ? (g(), h("div", oe({ key: 0 }, l.value, {
|
|
2170
2165
|
class: ["vc-input vc-input--skeleton", O.$attrs.class]
|
|
2171
2166
|
}), [
|
|
2172
2167
|
e.label ? (g(), q(i(ae), {
|
|
@@ -2180,7 +2175,7 @@ const Po = {
|
|
|
2180
2175
|
width: "100%",
|
|
2181
2176
|
height: 36
|
|
2182
2177
|
})
|
|
2183
|
-
], 16)) : e.type === "date" || e.type === "datetime-local" ? (g(), q(i(
|
|
2178
|
+
], 16)) : e.type === "date" || e.type === "datetime-local" ? (g(), q(i(jo), oe({ key: 1 }, i(o), {
|
|
2184
2179
|
"model-value": e.modelValue,
|
|
2185
2180
|
type: e.type,
|
|
2186
2181
|
"date-picker-options": e.datePickerOptions,
|
|
@@ -2199,10 +2194,10 @@ const Po = {
|
|
|
2199
2194
|
multilanguage: e.multilanguage,
|
|
2200
2195
|
"current-language": e.currentLanguage,
|
|
2201
2196
|
name: e.name,
|
|
2202
|
-
"onUpdate:modelValue":
|
|
2203
|
-
onBlur:
|
|
2204
|
-
onFocus:
|
|
2205
|
-
}), 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"])) : e.type === "color" ? (g(), q(i(
|
|
2197
|
+
"onUpdate:modelValue": P[0] || (P[0] = (A) => r("update:modelValue", A ?? null)),
|
|
2198
|
+
onBlur: P[1] || (P[1] = (A) => r("blur", A)),
|
|
2199
|
+
onFocus: P[2] || (P[2] = (A) => r("focus"))
|
|
2200
|
+
}), 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"])) : e.type === "color" ? (g(), q(i(oa), oe({ key: 2 }, i(o), {
|
|
2206
2201
|
"model-value": e.modelValue ?? null,
|
|
2207
2202
|
label: e.label,
|
|
2208
2203
|
placeholder: e.placeholder,
|
|
@@ -2219,9 +2214,9 @@ const Po = {
|
|
|
2219
2214
|
multilanguage: e.multilanguage,
|
|
2220
2215
|
"current-language": e.currentLanguage,
|
|
2221
2216
|
name: e.name,
|
|
2222
|
-
"onUpdate:modelValue":
|
|
2223
|
-
onBlur:
|
|
2224
|
-
onFocus:
|
|
2217
|
+
"onUpdate:modelValue": P[3] || (P[3] = (A) => r("update:modelValue", A)),
|
|
2218
|
+
onBlur: P[4] || (P[4] = (A) => r("blur", A)),
|
|
2219
|
+
onFocus: P[5] || (P[5] = (A) => r("focus"))
|
|
2225
2220
|
}), null, 16, ["model-value", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name"])) : (g(), h("div", oe({ key: 3 }, l.value, {
|
|
2226
2221
|
class: ["vc-input", [
|
|
2227
2222
|
O.$attrs.class,
|
|
@@ -2257,8 +2252,8 @@ const Po = {
|
|
|
2257
2252
|
key: "0"
|
|
2258
2253
|
} : void 0
|
|
2259
2254
|
]), 1032, ["id", "html-for", "required", "multilanguage", "current-language", "error"])) : w("", !0),
|
|
2260
|
-
L("div",
|
|
2261
|
-
O.$slots.prepend ? (g(), h("div",
|
|
2255
|
+
L("div", aa, [
|
|
2256
|
+
O.$slots.prepend ? (g(), h("div", la, [
|
|
2262
2257
|
B(O.$slots, "prepend", { focus: ne })
|
|
2263
2258
|
])) : w("", !0),
|
|
2264
2259
|
L("div", {
|
|
@@ -2267,16 +2262,16 @@ const Po = {
|
|
|
2267
2262
|
"vc-input__field-wrapper--small": e.size === "small"
|
|
2268
2263
|
}])
|
|
2269
2264
|
}, [
|
|
2270
|
-
L("div",
|
|
2271
|
-
O.$slots["prepend-inner"] ? (g(), h("div",
|
|
2265
|
+
L("div", ia, [
|
|
2266
|
+
O.$slots["prepend-inner"] ? (g(), h("div", ra, [
|
|
2272
2267
|
B(O.$slots, "prepend-inner", { focus: ne })
|
|
2273
2268
|
])) : w("", !0),
|
|
2274
|
-
L("div",
|
|
2275
|
-
e.prefix ? (g(), h("div",
|
|
2269
|
+
L("div", sa, [
|
|
2270
|
+
e.prefix ? (g(), h("div", ua, N(e.prefix), 1)) : w("", !0),
|
|
2276
2271
|
B(O.$slots, "control", {
|
|
2277
2272
|
editable: i(d),
|
|
2278
2273
|
focused: e.autofocus,
|
|
2279
|
-
modelValue:
|
|
2274
|
+
modelValue: z.value,
|
|
2280
2275
|
emitValue: I,
|
|
2281
2276
|
placeholder: e.placeholder
|
|
2282
2277
|
}, () => [
|
|
@@ -2284,7 +2279,7 @@ const Po = {
|
|
|
2284
2279
|
id: i(u),
|
|
2285
2280
|
ref_key: "inputRef",
|
|
2286
2281
|
ref: M,
|
|
2287
|
-
"onUpdate:modelValue":
|
|
2282
|
+
"onUpdate:modelValue": P[6] || (P[6] = (A) => z.value = A),
|
|
2288
2283
|
placeholder: e.placeholder,
|
|
2289
2284
|
type: D.value,
|
|
2290
2285
|
disabled: i(d),
|
|
@@ -2300,11 +2295,11 @@ const Po = {
|
|
|
2300
2295
|
onKeydown: U,
|
|
2301
2296
|
onBlur: K,
|
|
2302
2297
|
onFocus: Ae
|
|
2303
|
-
}, null, 40,
|
|
2304
|
-
[_t,
|
|
2298
|
+
}, null, 40, ca), [
|
|
2299
|
+
[_t, z.value]
|
|
2305
2300
|
])
|
|
2306
2301
|
]),
|
|
2307
|
-
e.suffix ? (g(), h("div",
|
|
2302
|
+
e.suffix ? (g(), h("div", da, N(e.suffix), 1)) : w("", !0),
|
|
2308
2303
|
e.clearable && Y.value && !i(d) && e.type !== "password" ? (g(), h("button", {
|
|
2309
2304
|
key: 2,
|
|
2310
2305
|
type: "button",
|
|
@@ -2316,24 +2311,24 @@ const Po = {
|
|
|
2316
2311
|
size: "xs",
|
|
2317
2312
|
icon: "lucide-x"
|
|
2318
2313
|
})
|
|
2319
|
-
], 8,
|
|
2314
|
+
], 8, fa)) : w("", !0),
|
|
2320
2315
|
e.type === "password" ? (g(), h("button", {
|
|
2321
2316
|
key: 3,
|
|
2322
2317
|
type: "button",
|
|
2323
2318
|
class: "vc-input__showhide",
|
|
2324
2319
|
"aria-label": F.value === "password" ? "Show password" : "Hide password",
|
|
2325
|
-
onClick:
|
|
2320
|
+
onClick: P[7] || (P[7] = (A) => F.value = F.value === "password" ? "text" : "password")
|
|
2326
2321
|
}, [
|
|
2327
2322
|
T(i(H), {
|
|
2328
2323
|
size: "s",
|
|
2329
2324
|
icon: F.value === "password" ? "lucide-eye-off" : "lucide-eye"
|
|
2330
2325
|
}, null, 8, ["icon"])
|
|
2331
|
-
], 8,
|
|
2326
|
+
], 8, ga)) : w("", !0)
|
|
2332
2327
|
]),
|
|
2333
|
-
O.$slots["append-inner"] ? (g(), h("div",
|
|
2328
|
+
O.$slots["append-inner"] ? (g(), h("div", va, [
|
|
2334
2329
|
B(O.$slots, "append-inner", { focus: ne })
|
|
2335
2330
|
])) : w("", !0),
|
|
2336
|
-
e.loading ? (g(), h("div",
|
|
2331
|
+
e.loading ? (g(), h("div", pa, [
|
|
2337
2332
|
T(i(H), {
|
|
2338
2333
|
icon: "lucide-loader-2",
|
|
2339
2334
|
class: "vc-input__loading-icon",
|
|
@@ -2342,7 +2337,7 @@ const Po = {
|
|
|
2342
2337
|
])) : w("", !0)
|
|
2343
2338
|
])
|
|
2344
2339
|
], 2),
|
|
2345
|
-
O.$slots.append ? (g(), h("div",
|
|
2340
|
+
O.$slots.append ? (g(), h("div", ma, [
|
|
2346
2341
|
B(O.$slots, "append", { focus: ne })
|
|
2347
2342
|
])) : w("", !0)
|
|
2348
2343
|
]),
|
|
@@ -2351,7 +2346,7 @@ const Po = {
|
|
|
2351
2346
|
mode: "out-in"
|
|
2352
2347
|
}, {
|
|
2353
2348
|
default: C(() => [
|
|
2354
|
-
i(v) && e.errorMessage ? (g(), h("div",
|
|
2349
|
+
i(v) && e.errorMessage ? (g(), h("div", ya, [
|
|
2355
2350
|
B(O.$slots, "error", {}, () => [
|
|
2356
2351
|
T(i(ce), {
|
|
2357
2352
|
id: i(f),
|
|
@@ -2364,7 +2359,7 @@ const Po = {
|
|
|
2364
2359
|
_: 1
|
|
2365
2360
|
}, 8, ["id"])
|
|
2366
2361
|
])
|
|
2367
|
-
])) : (g(), h("div",
|
|
2362
|
+
])) : (g(), h("div", ba, [
|
|
2368
2363
|
B(O.$slots, "hint", {}, () => [
|
|
2369
2364
|
e.hint ? (g(), q(i(ce), {
|
|
2370
2365
|
key: 0,
|
|
@@ -2383,7 +2378,7 @@ const Po = {
|
|
|
2383
2378
|
})
|
|
2384
2379
|
], 16));
|
|
2385
2380
|
}
|
|
2386
|
-
}),
|
|
2381
|
+
}), pi = In.create({
|
|
2387
2382
|
name: "fontSize",
|
|
2388
2383
|
addOptions() {
|
|
2389
2384
|
return {
|
|
@@ -2413,7 +2408,7 @@ const Po = {
|
|
|
2413
2408
|
};
|
|
2414
2409
|
}
|
|
2415
2410
|
});
|
|
2416
|
-
function
|
|
2411
|
+
function ka(e = {}) {
|
|
2417
2412
|
const {
|
|
2418
2413
|
containerSelector: t = '[role="menu"]',
|
|
2419
2414
|
itemSelector: n = '[tabindex="0"]',
|
|
@@ -2489,7 +2484,7 @@ function Ia(e = {}) {
|
|
|
2489
2484
|
const p = document.querySelector(t);
|
|
2490
2485
|
p && b(p);
|
|
2491
2486
|
}
|
|
2492
|
-
}),
|
|
2487
|
+
}), ze(() => {
|
|
2493
2488
|
E();
|
|
2494
2489
|
}), {
|
|
2495
2490
|
initKeyboardNavigation: b,
|
|
@@ -2531,7 +2526,7 @@ function yt(e, t) {
|
|
|
2531
2526
|
const n = e !== void 0 ? e : t;
|
|
2532
2527
|
return typeof n == "function" ? n : (o) => o === null || typeof o != "object" ? o : n && n in o ? o[n] : o;
|
|
2533
2528
|
}
|
|
2534
|
-
function
|
|
2529
|
+
function Ia(e) {
|
|
2535
2530
|
const t = $(() => yt(e.optionValue(), "id")), n = $(() => yt(e.optionLabel(), "title"));
|
|
2536
2531
|
function o(a, u, s, f) {
|
|
2537
2532
|
const m = (v) => Re(t.value(v), a);
|
|
@@ -2551,7 +2546,7 @@ function Sa(e) {
|
|
|
2551
2546
|
fieldValueIsFilled: r
|
|
2552
2547
|
};
|
|
2553
2548
|
}
|
|
2554
|
-
function
|
|
2549
|
+
function Sa() {
|
|
2555
2550
|
const e = S(null), t = S(!1);
|
|
2556
2551
|
let n = null, o = null;
|
|
2557
2552
|
function l() {
|
|
@@ -2581,7 +2576,7 @@ function wa() {
|
|
|
2581
2576
|
ensureVisibility: r
|
|
2582
2577
|
};
|
|
2583
2578
|
}
|
|
2584
|
-
function
|
|
2579
|
+
function wa(e) {
|
|
2585
2580
|
const t = S(!1), n = S(!1), o = S(null), l = S(null);
|
|
2586
2581
|
function r() {
|
|
2587
2582
|
return {
|
|
@@ -2595,7 +2590,7 @@ function $a(e) {
|
|
|
2595
2590
|
}
|
|
2596
2591
|
};
|
|
2597
2592
|
}
|
|
2598
|
-
const a =
|
|
2593
|
+
const a = so(o, l, {
|
|
2599
2594
|
placement: $(() => e.placement),
|
|
2600
2595
|
middleware: $(() => [
|
|
2601
2596
|
ot({ fallbackPlacements: ["top", "bottom"] }),
|
|
@@ -2627,14 +2622,14 @@ function $a(e) {
|
|
|
2627
2622
|
toggleDropdown: s
|
|
2628
2623
|
};
|
|
2629
2624
|
}
|
|
2630
|
-
function
|
|
2625
|
+
function $a(e) {
|
|
2631
2626
|
const t = S([]), n = S(null), o = S(0), l = S(!1), r = S(!1), a = S(), u = S([]), s = S(!1), f = /* @__PURE__ */ new Map();
|
|
2632
2627
|
let m = !1, v;
|
|
2633
2628
|
const d = $(() => n.value ?? t.value), c = $(() => t.value.length < o.value);
|
|
2634
2629
|
function y(D) {
|
|
2635
2630
|
for (const V of D) {
|
|
2636
|
-
const
|
|
2637
|
-
f.set(
|
|
2631
|
+
const z = String(e.getOptionValue.value(V));
|
|
2632
|
+
f.set(z, V);
|
|
2638
2633
|
}
|
|
2639
2634
|
}
|
|
2640
2635
|
async function b() {
|
|
@@ -2661,8 +2656,8 @@ function Oa(e) {
|
|
|
2661
2656
|
if (!(typeof D != "function" || l.value))
|
|
2662
2657
|
try {
|
|
2663
2658
|
l.value = !0;
|
|
2664
|
-
const V = await D(a.value, t.value.length),
|
|
2665
|
-
(X) => !
|
|
2659
|
+
const V = await D(a.value, t.value.length), z = new Set(t.value.map((X) => String(e.getOptionValue.value(X)))), U = (V?.results ?? []).filter(
|
|
2660
|
+
(X) => !z.has(String(e.getOptionValue.value(X)))
|
|
2666
2661
|
);
|
|
2667
2662
|
t.value = [...t.value, ...U], o.value = V?.totalCount ?? o.value, y(U);
|
|
2668
2663
|
} catch (V) {
|
|
@@ -2677,50 +2672,50 @@ function Oa(e) {
|
|
|
2677
2672
|
if (typeof V == "function")
|
|
2678
2673
|
try {
|
|
2679
2674
|
r.value = !0;
|
|
2680
|
-
const
|
|
2681
|
-
n.value =
|
|
2682
|
-
} catch (
|
|
2683
|
-
console.error("useSelectDataSource: error searching",
|
|
2675
|
+
const z = await V(D);
|
|
2676
|
+
n.value = z?.results ?? [], o.value = z?.totalCount ?? 0, y(n.value);
|
|
2677
|
+
} catch (z) {
|
|
2678
|
+
console.error("useSelectDataSource: error searching", z), n.value = [];
|
|
2684
2679
|
} finally {
|
|
2685
2680
|
r.value = !1;
|
|
2686
2681
|
}
|
|
2687
2682
|
else
|
|
2688
|
-
n.value = t.value.filter((
|
|
2689
|
-
const U = e.getOptionLabel.value(
|
|
2683
|
+
n.value = t.value.filter((z) => {
|
|
2684
|
+
const U = e.getOptionLabel.value(z);
|
|
2690
2685
|
return String(U).toLowerCase().includes(D.toLowerCase());
|
|
2691
2686
|
});
|
|
2692
2687
|
}
|
|
2693
2688
|
function M(D) {
|
|
2694
2689
|
if (!D?.target) return;
|
|
2695
|
-
const V = D.target.value,
|
|
2696
|
-
v && clearTimeout(v),
|
|
2690
|
+
const V = D.target.value, z = Number(e.debounce());
|
|
2691
|
+
v && clearTimeout(v), z > 0 ? v = setTimeout(() => {
|
|
2697
2692
|
e.emit.search(V), k(V);
|
|
2698
|
-
},
|
|
2693
|
+
}, z) : (e.emit.search(V), k(V));
|
|
2699
2694
|
}
|
|
2700
2695
|
function F() {
|
|
2701
2696
|
n.value = null, a.value = void 0, v && (clearTimeout(v), v = void 0), o.value = t.value.length;
|
|
2702
2697
|
}
|
|
2703
2698
|
async function G(D) {
|
|
2704
2699
|
if (D.length === 0) return [];
|
|
2705
|
-
const
|
|
2700
|
+
const z = D.filter((I) => !f.has(String(I))).filter((I) => {
|
|
2706
2701
|
const x = t.value.find((K) => Re(e.getOptionValue.value(K), I));
|
|
2707
2702
|
return x ? (f.set(String(I), x), !1) : !0;
|
|
2708
2703
|
}), U = e.options();
|
|
2709
|
-
if (
|
|
2704
|
+
if (z.length > 0 && typeof U == "function") {
|
|
2710
2705
|
try {
|
|
2711
2706
|
s.value = !0;
|
|
2712
|
-
const x = await U(void 0, void 0,
|
|
2707
|
+
const x = await U(void 0, void 0, z);
|
|
2713
2708
|
x?.results && y(x.results);
|
|
2714
2709
|
} catch (x) {
|
|
2715
2710
|
console.error("useSelectDataSource: error resolving", x);
|
|
2716
2711
|
} finally {
|
|
2717
2712
|
s.value = !1;
|
|
2718
2713
|
}
|
|
2719
|
-
|
|
2720
|
-
} else if (
|
|
2714
|
+
z.filter((x) => !f.has(String(x))).length > 0 && !m && await b();
|
|
2715
|
+
} else if (z.length > 0 && Array.isArray(U))
|
|
2721
2716
|
for (const I of U) {
|
|
2722
2717
|
const x = String(e.getOptionValue.value(I));
|
|
2723
|
-
|
|
2718
|
+
z.includes(x) && f.set(x, I);
|
|
2724
2719
|
}
|
|
2725
2720
|
const X = D.map((I) => f.get(String(I))).filter(Boolean);
|
|
2726
2721
|
return u.value = X, X;
|
|
@@ -2760,7 +2755,7 @@ function Oa(e) {
|
|
|
2760
2755
|
refresh: Y
|
|
2761
2756
|
};
|
|
2762
2757
|
}
|
|
2763
|
-
function
|
|
2758
|
+
function Oa(e) {
|
|
2764
2759
|
let t = [];
|
|
2765
2760
|
const n = $(() => {
|
|
2766
2761
|
const v = e.mapOptions() === !0 && e.multiple() !== !0, d = e.modelValue() !== void 0 && (e.modelValue() !== null || v === !0) ? e.multiple() === !0 && Array.isArray(e.modelValue()) ? e.modelValue() : [e.modelValue()] : [];
|
|
@@ -2853,40 +2848,40 @@ function Ea(e) {
|
|
|
2853
2848
|
onReset: m
|
|
2854
2849
|
};
|
|
2855
2850
|
}
|
|
2856
|
-
const
|
|
2851
|
+
const Ea = { class: "vc-select__control" }, Ca = {
|
|
2857
2852
|
key: 0,
|
|
2858
2853
|
class: "vc-select__prepend"
|
|
2859
|
-
},
|
|
2854
|
+
}, Ba = { class: "vc-select__field" }, La = { class: "vc-select__field-inner" }, xa = { class: "vc-select__field-content" }, Ra = {
|
|
2860
2855
|
key: 0,
|
|
2861
2856
|
class: "vc-select__prepend-inner"
|
|
2862
|
-
},
|
|
2857
|
+
}, Ta = { class: "vc-select__field-main" }, Ma = {
|
|
2863
2858
|
key: 0,
|
|
2864
2859
|
class: "vc-select__prefix"
|
|
2865
|
-
},
|
|
2860
|
+
}, Aa = ["aria-expanded", "aria-controls", "aria-labelledby", "aria-describedby", "aria-required", "aria-invalid"], Va = {
|
|
2866
2861
|
key: 0,
|
|
2867
2862
|
class: "vc-select__placeholder"
|
|
2868
|
-
},
|
|
2863
|
+
}, Da = {
|
|
2869
2864
|
key: 1,
|
|
2870
2865
|
class: "vc-select__selected"
|
|
2871
|
-
},
|
|
2866
|
+
}, Na = { class: "vc-select__multiple-item" }, Fa = {
|
|
2872
2867
|
key: 0,
|
|
2873
2868
|
class: "vc-select__loading"
|
|
2874
|
-
}, za = { key: 1 },
|
|
2869
|
+
}, za = { key: 1 }, Pa = ["aria-label", "onClick", "onKeydown"], qa = {
|
|
2875
2870
|
key: 0,
|
|
2876
2871
|
class: "vc-select__loading"
|
|
2877
|
-
},
|
|
2872
|
+
}, Ka = {
|
|
2878
2873
|
key: 1,
|
|
2879
2874
|
class: "vc-select__suffix"
|
|
2880
|
-
},
|
|
2875
|
+
}, Ua = ["aria-label"], Wa = {
|
|
2881
2876
|
key: 1,
|
|
2882
2877
|
class: "vc-select__append-inner"
|
|
2883
|
-
},
|
|
2878
|
+
}, ja = {
|
|
2884
2879
|
key: 2,
|
|
2885
2880
|
class: "vc-select__loading-icon"
|
|
2886
|
-
},
|
|
2881
|
+
}, Ga = ["aria-label"], Ha = { class: "vc-select__chevron" }, Ja = { class: "vc-select__hint-error" }, Ya = { key: 0 }, Xa = { key: 1 }, Za = {
|
|
2887
2882
|
key: 1,
|
|
2888
2883
|
class: "vc-select__append"
|
|
2889
|
-
},
|
|
2884
|
+
}, Qa = /* @__PURE__ */ J({
|
|
2890
2885
|
__name: "SelectTrigger",
|
|
2891
2886
|
props: {
|
|
2892
2887
|
isOpened: { type: Boolean },
|
|
@@ -2930,8 +2925,8 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
2930
2925
|
toggleHandler: e.toggleDropdown,
|
|
2931
2926
|
isOpened: e.isOpened
|
|
2932
2927
|
}, () => [
|
|
2933
|
-
L("div",
|
|
2934
|
-
l.$slots.prepend ? (g(), h("div",
|
|
2928
|
+
L("div", Ea, [
|
|
2929
|
+
l.$slots.prepend ? (g(), h("div", Ca, [
|
|
2935
2930
|
B(l.$slots, "prepend")
|
|
2936
2931
|
])) : w("", !0),
|
|
2937
2932
|
L("div", {
|
|
@@ -2940,14 +2935,14 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
2940
2935
|
"vc-select__field-wrapper--small": e.size === "small"
|
|
2941
2936
|
}])
|
|
2942
2937
|
}, [
|
|
2943
|
-
L("div",
|
|
2944
|
-
L("div",
|
|
2945
|
-
L("div",
|
|
2946
|
-
l.$slots["prepend-inner"] ? (g(), h("div",
|
|
2938
|
+
L("div", Ba, [
|
|
2939
|
+
L("div", La, [
|
|
2940
|
+
L("div", xa, [
|
|
2941
|
+
l.$slots["prepend-inner"] ? (g(), h("div", Ra, [
|
|
2947
2942
|
B(l.$slots, "prepend-inner")
|
|
2948
2943
|
])) : w("", !0),
|
|
2949
|
-
L("div",
|
|
2950
|
-
e.prefix ? (g(), h("div",
|
|
2944
|
+
L("div", Ta, [
|
|
2945
|
+
e.prefix ? (g(), h("div", Ma, N(e.prefix), 1)) : w("", !0),
|
|
2951
2946
|
L("div", {
|
|
2952
2947
|
"data-test-id": "dropdown-toggle",
|
|
2953
2948
|
class: "vc-select__input",
|
|
@@ -2980,7 +2975,7 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
2980
2975
|
onFocus: r[3] || (r[3] = (a) => l.$emit("focus")),
|
|
2981
2976
|
onBlur: r[4] || (r[4] = (a) => l.$emit("blur"))
|
|
2982
2977
|
}, [
|
|
2983
|
-
e.hasValue ? e.selectedScope && e.selectedScope.length && e.hasValue ? (g(), h("div",
|
|
2978
|
+
e.hasValue ? e.selectedScope && e.selectedScope.length && e.hasValue ? (g(), h("div", Da, [
|
|
2984
2979
|
(g(!0), h(Ie, null, _e(e.selectedScope, (a, u) => (g(), h("div", {
|
|
2985
2980
|
key: u,
|
|
2986
2981
|
class: "vc-select__selected-item"
|
|
@@ -2989,8 +2984,8 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
2989
2984
|
key: 0,
|
|
2990
2985
|
ref_for: !0
|
|
2991
2986
|
}, a), () => [
|
|
2992
|
-
L("div",
|
|
2993
|
-
e.loading ? (g(), h("span",
|
|
2987
|
+
L("div", Na, [
|
|
2988
|
+
e.loading ? (g(), h("span", Fa, N(i(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : (g(), h("span", za, N(e.getOptionLabel(a.opt)), 1)),
|
|
2994
2989
|
e.disabled ? w("", !0) : (g(), h("button", {
|
|
2995
2990
|
key: 2,
|
|
2996
2991
|
type: "button",
|
|
@@ -3005,10 +3000,10 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3005
3000
|
icon: "lucide-x",
|
|
3006
3001
|
size: "xs"
|
|
3007
3002
|
})
|
|
3008
|
-
], 40,
|
|
3003
|
+
], 40, Pa))
|
|
3009
3004
|
])
|
|
3010
3005
|
]) : e.multiple ? w("", !0) : (g(), h(Ie, { key: 1 }, [
|
|
3011
|
-
e.loading ? (g(), h("span",
|
|
3006
|
+
e.loading ? (g(), h("span", qa, N(i(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : B(l.$slots, "selected-item", oe({
|
|
3012
3007
|
key: 1,
|
|
3013
3008
|
ref_for: !0
|
|
3014
3009
|
}, a), () => [
|
|
@@ -3016,15 +3011,15 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3016
3011
|
])
|
|
3017
3012
|
], 64))
|
|
3018
3013
|
]))), 128))
|
|
3019
|
-
])) : w("", !0) : (g(), h("div",
|
|
3014
|
+
])) : w("", !0) : (g(), h("div", Va, [
|
|
3020
3015
|
e.placeholder ? (g(), h(Ie, { key: 0 }, [
|
|
3021
3016
|
te(N(e.placeholder), 1)
|
|
3022
3017
|
], 64)) : (g(), h(Ie, { key: 1 }, [
|
|
3023
3018
|
te(N(i(n)("COMPONENTS.MOLECULES.VC_SELECT.CLICK_TO_SELECT")), 1)
|
|
3024
3019
|
], 64))
|
|
3025
3020
|
]))
|
|
3026
|
-
], 40,
|
|
3027
|
-
e.suffix ? (g(), h("div",
|
|
3021
|
+
], 40, Aa),
|
|
3022
|
+
e.suffix ? (g(), h("div", Ka, N(e.suffix), 1)) : w("", !0),
|
|
3028
3023
|
e.clearable && e.hasValue && !e.disabled ? (g(), h("div", {
|
|
3029
3024
|
key: 2,
|
|
3030
3025
|
class: "vc-select__clear",
|
|
@@ -3041,12 +3036,12 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3041
3036
|
size: "xs",
|
|
3042
3037
|
icon: "lucide-x"
|
|
3043
3038
|
})
|
|
3044
|
-
], 40,
|
|
3039
|
+
], 40, Ua)) : w("", !0)
|
|
3045
3040
|
]),
|
|
3046
|
-
l.$slots["append-inner"] ? (g(), h("div",
|
|
3041
|
+
l.$slots["append-inner"] ? (g(), h("div", Wa, [
|
|
3047
3042
|
B(l.$slots, "append-inner")
|
|
3048
3043
|
])) : w("", !0),
|
|
3049
|
-
e.loading || e.listLoading || e.defaultOptionLoading ? (g(), h("div",
|
|
3044
|
+
e.loading || e.listLoading || e.defaultOptionLoading ? (g(), h("div", ja, [
|
|
3050
3045
|
T(i(H), {
|
|
3051
3046
|
icon: "lucide-loader-2",
|
|
3052
3047
|
class: "tw-animate-spin",
|
|
@@ -3077,23 +3072,23 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3077
3072
|
), ["space"]))
|
|
3078
3073
|
]
|
|
3079
3074
|
}, [
|
|
3080
|
-
L("div",
|
|
3075
|
+
L("div", Ha, [
|
|
3081
3076
|
T(i(H), {
|
|
3082
3077
|
size: "s",
|
|
3083
3078
|
icon: "lucide-chevron-down"
|
|
3084
3079
|
})
|
|
3085
3080
|
])
|
|
3086
|
-
], 40,
|
|
3081
|
+
], 40, Ga))
|
|
3087
3082
|
])
|
|
3088
3083
|
])
|
|
3089
3084
|
]),
|
|
3090
|
-
L("div",
|
|
3085
|
+
L("div", Ja, [
|
|
3091
3086
|
T(we, {
|
|
3092
3087
|
name: "slide-up",
|
|
3093
3088
|
mode: "out-in"
|
|
3094
3089
|
}, {
|
|
3095
3090
|
default: C(() => [
|
|
3096
|
-
e.error && e.errorMessage ? (g(), h("div",
|
|
3091
|
+
e.error && e.errorMessage ? (g(), h("div", Ya, [
|
|
3097
3092
|
B(l.$slots, "error", {}, () => [
|
|
3098
3093
|
T(i(ce), {
|
|
3099
3094
|
id: e.errorId,
|
|
@@ -3106,7 +3101,7 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3106
3101
|
_: 1
|
|
3107
3102
|
}, 8, ["id"])
|
|
3108
3103
|
])
|
|
3109
|
-
])) : (g(), h("div",
|
|
3104
|
+
])) : (g(), h("div", Xa, [
|
|
3110
3105
|
B(l.$slots, "hint", {}, () => [
|
|
3111
3106
|
e.hint ? (g(), q(i(ce), {
|
|
3112
3107
|
key: 0,
|
|
@@ -3125,23 +3120,23 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3125
3120
|
})
|
|
3126
3121
|
])
|
|
3127
3122
|
], 2),
|
|
3128
|
-
l.$slots.append ? (g(), h("div",
|
|
3123
|
+
l.$slots.append ? (g(), h("div", Za, [
|
|
3129
3124
|
B(l.$slots, "append")
|
|
3130
3125
|
])) : w("", !0)
|
|
3131
3126
|
])
|
|
3132
3127
|
])
|
|
3133
3128
|
], 512));
|
|
3134
3129
|
}
|
|
3135
|
-
}),
|
|
3130
|
+
}), _a = ["id", "aria-label"], el = ["aria-label"], tl = ["aria-selected", "data-index", "onClick", "onKeydown"], nl = {
|
|
3136
3131
|
key: 0,
|
|
3137
3132
|
class: "vc-select__check-icon"
|
|
3138
|
-
},
|
|
3133
|
+
}, ol = {
|
|
3139
3134
|
key: 0,
|
|
3140
3135
|
class: "vc-select__list-loading-indicator"
|
|
3141
|
-
},
|
|
3136
|
+
}, al = { class: "tw-ml-1" }, ll = {
|
|
3142
3137
|
key: 1,
|
|
3143
3138
|
class: "vc-select__no-options"
|
|
3144
|
-
},
|
|
3139
|
+
}, il = { class: "vc-select__no-options-text" }, rl = /* @__PURE__ */ J({
|
|
3145
3140
|
__name: "SelectDropdown",
|
|
3146
3141
|
props: {
|
|
3147
3142
|
isOpened: { type: Boolean },
|
|
@@ -3213,8 +3208,8 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3213
3208
|
y[2] || (y[2] = _(Q(() => {
|
|
3214
3209
|
}, ["stop"]), ["enter"]))
|
|
3215
3210
|
]
|
|
3216
|
-
}, null, 40,
|
|
3217
|
-
T(i(
|
|
3211
|
+
}, null, 40, el)) : w("", !0),
|
|
3212
|
+
T(i(Eo), {
|
|
3218
3213
|
ref_key: "scrollContainerRef",
|
|
3219
3214
|
ref: f,
|
|
3220
3215
|
class: "vc-select__scroll-container"
|
|
@@ -3237,24 +3232,24 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3237
3232
|
B(c.$slots, "option", oe({ ref_for: !0 }, b), () => [
|
|
3238
3233
|
te(N(b.label), 1)
|
|
3239
3234
|
]),
|
|
3240
|
-
b.selected ? (g(), h("span",
|
|
3235
|
+
b.selected ? (g(), h("span", nl, [
|
|
3241
3236
|
T(i(H), {
|
|
3242
3237
|
icon: "lucide-check",
|
|
3243
3238
|
size: "xs"
|
|
3244
3239
|
})
|
|
3245
3240
|
])) : w("", !0)
|
|
3246
|
-
], 42,
|
|
3247
|
-
e.listLoading ? (g(), h("div",
|
|
3241
|
+
], 42, tl))), 128)),
|
|
3242
|
+
e.listLoading ? (g(), h("div", ol, [
|
|
3248
3243
|
T(i(H), {
|
|
3249
3244
|
icon: "lucide-loader-2",
|
|
3250
3245
|
class: "tw-animate-spin",
|
|
3251
3246
|
size: "m"
|
|
3252
3247
|
}),
|
|
3253
|
-
L("span",
|
|
3248
|
+
L("span", al, N(e.optionsListLength > 0 ? i(r)("COMPONENTS.MOLECULES.VC_SELECT.LOADING_MORE") : i(r)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)
|
|
3254
3249
|
])) : w("", !0),
|
|
3255
|
-
!e.listLoading && !e.optionsListLength ? (g(), h("div",
|
|
3250
|
+
!e.listLoading && !e.optionsListLength ? (g(), h("div", ll, [
|
|
3256
3251
|
B(c.$slots, "no-options", {}, () => [
|
|
3257
|
-
L("span",
|
|
3252
|
+
L("span", il, N(i(r)("COMPONENTS.MOLECULES.VC_SELECT.NO_OPTIONS")), 1)
|
|
3258
3253
|
])
|
|
3259
3254
|
])) : w("", !0),
|
|
3260
3255
|
e.hasNextPage && !e.listLoading ? (g(), h("span", {
|
|
@@ -3266,15 +3261,15 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3266
3261
|
]),
|
|
3267
3262
|
_: 3
|
|
3268
3263
|
}, 512)
|
|
3269
|
-
], 44,
|
|
3270
|
-
[i(
|
|
3264
|
+
], 44, _a)), [
|
|
3265
|
+
[i(On), [() => l("clickOutside"), { ignore: [e.dropdownToggleRef] }]]
|
|
3271
3266
|
]) : w("", !0)
|
|
3272
3267
|
]),
|
|
3273
3268
|
_: 3
|
|
3274
3269
|
})
|
|
3275
3270
|
], 8, ["to"]));
|
|
3276
3271
|
}
|
|
3277
|
-
}),
|
|
3272
|
+
}), sl = ["innerHTML"], ul = { class: "vc-select__field-container" }, cl = /* @__PURE__ */ J({
|
|
3278
3273
|
inheritAttrs: !1,
|
|
3279
3274
|
__name: "vc-select",
|
|
3280
3275
|
props: {
|
|
@@ -3321,10 +3316,10 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3321
3316
|
resolvedName: y,
|
|
3322
3317
|
ariaRequired: b,
|
|
3323
3318
|
ariaDescribedBy: E
|
|
3324
|
-
} = qe(n), p = $(() => `${s.value}-listbox`), k = S(null), M = S(null), { selectRootRef: F, isSelectVisible: G, ensureVisibility: Y } =
|
|
3319
|
+
} = qe(n), p = $(() => `${s.value}-listbox`), k = S(null), M = S(null), { selectRootRef: F, isSelectVisible: G, ensureVisibility: Y } = Sa(), { getOptionValue: D, getOptionLabel: V, getOption: z, getEmittingOptionValue: U, fieldValueIsFilled: X } = Ia({
|
|
3325
3320
|
optionValue: () => n.optionValue,
|
|
3326
3321
|
optionLabel: () => n.optionLabel
|
|
3327
|
-
}), { isOpened: I, isFocused: x, dropdownToggleRef: K, dropdownRef: ne, popper: Ae, dropdownStyle: O, toggleDropdown:
|
|
3322
|
+
}), { isOpened: I, isFocused: x, dropdownToggleRef: K, dropdownRef: ne, popper: Ae, dropdownStyle: O, toggleDropdown: P } = wa({
|
|
3328
3323
|
placement: n.placement,
|
|
3329
3324
|
outline: () => n.outline,
|
|
3330
3325
|
isSelectVisible: G,
|
|
@@ -3337,7 +3332,7 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3337
3332
|
}), He(() => {
|
|
3338
3333
|
ne.value = M.value?.dropdownElRef ?? null;
|
|
3339
3334
|
});
|
|
3340
|
-
const A =
|
|
3335
|
+
const A = $a({
|
|
3341
3336
|
options: () => n.options,
|
|
3342
3337
|
getOptionValue: D,
|
|
3343
3338
|
getOptionLabel: V,
|
|
@@ -3346,7 +3341,7 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3346
3341
|
emit: {
|
|
3347
3342
|
search: (R) => r("search", R)
|
|
3348
3343
|
}
|
|
3349
|
-
}), { selectedScope: qt, hasValue: Kt, optionScope: Ee, removeAtIndex: Ut, onReset: Wt } =
|
|
3344
|
+
}), { selectedScope: qt, hasValue: Kt, optionScope: Ee, removeAtIndex: Ut, onReset: Wt } = Oa({
|
|
3350
3345
|
modelValue: () => n.modelValue,
|
|
3351
3346
|
multiple: () => n.multiple,
|
|
3352
3347
|
emitValue: () => n.emitValue ?? !0,
|
|
@@ -3356,7 +3351,7 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3356
3351
|
cachedItems: A.cachedItems,
|
|
3357
3352
|
getOptionValue: D,
|
|
3358
3353
|
getOptionLabel: V,
|
|
3359
|
-
getOption:
|
|
3354
|
+
getOption: z,
|
|
3360
3355
|
fieldValueIsFilled: X,
|
|
3361
3356
|
isOpened: I,
|
|
3362
3357
|
popperUpdate: () => Ae.update(),
|
|
@@ -3365,14 +3360,14 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3365
3360
|
close: () => r("close")
|
|
3366
3361
|
}
|
|
3367
3362
|
}), jt = $(() => M.value?.loadMoreRef ?? null), Gt = $(() => M.value?.viewportRef ?? null);
|
|
3368
|
-
|
|
3363
|
+
bn(
|
|
3369
3364
|
jt,
|
|
3370
3365
|
([{ isIntersecting: R }]) => {
|
|
3371
3366
|
R && A.hasMore.value && A.loadMore();
|
|
3372
3367
|
},
|
|
3373
3368
|
{ threshold: 1, root: Gt }
|
|
3374
3369
|
);
|
|
3375
|
-
const Ue =
|
|
3370
|
+
const Ue = ka({
|
|
3376
3371
|
onEnter: (R) => {
|
|
3377
3372
|
const Z = parseInt(R.getAttribute("data-index") || "0", 10);
|
|
3378
3373
|
Ee.value && Ee.value[Z] && Ee.value[Z].toggleOption(Ee.value[Z].opt);
|
|
@@ -3466,14 +3461,14 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3466
3461
|
name: "tooltip",
|
|
3467
3462
|
fn: C(() => [
|
|
3468
3463
|
L("span", {
|
|
3469
|
-
innerHTML: i(
|
|
3470
|
-
}, null, 8,
|
|
3464
|
+
innerHTML: i(En).sanitize(e.tooltip)
|
|
3465
|
+
}, null, 8, sl)
|
|
3471
3466
|
]),
|
|
3472
3467
|
key: "0"
|
|
3473
3468
|
} : void 0
|
|
3474
3469
|
]), 1032, ["id", "required", "multilanguage", "current-language", "error"])) : w("", !0),
|
|
3475
|
-
L("div",
|
|
3476
|
-
T(
|
|
3470
|
+
L("div", ul, [
|
|
3471
|
+
T(Qa, {
|
|
3477
3472
|
ref_key: "selectTriggerRef",
|
|
3478
3473
|
ref: k,
|
|
3479
3474
|
"is-opened": i(I),
|
|
@@ -3499,7 +3494,7 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3499
3494
|
"aria-required": i(b),
|
|
3500
3495
|
"error-id": i(m),
|
|
3501
3496
|
"hint-id": i(v),
|
|
3502
|
-
"toggle-dropdown": i(
|
|
3497
|
+
"toggle-dropdown": i(P),
|
|
3503
3498
|
"get-option-label": i(V),
|
|
3504
3499
|
"get-emitting-option-value": i(U),
|
|
3505
3500
|
onFocus: Z[0] || (Z[0] = (le) => x.value = !0),
|
|
@@ -3564,7 +3559,7 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3564
3559
|
key: "7"
|
|
3565
3560
|
} : void 0
|
|
3566
3561
|
]), 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"]),
|
|
3567
|
-
T(
|
|
3562
|
+
T(rl, oe({
|
|
3568
3563
|
ref_key: "selectDropdownRef",
|
|
3569
3564
|
ref: M,
|
|
3570
3565
|
"is-opened": i(I),
|
|
@@ -3598,10 +3593,10 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3598
3593
|
])
|
|
3599
3594
|
], 16));
|
|
3600
3595
|
}
|
|
3601
|
-
}),
|
|
3596
|
+
}), dl = {
|
|
3602
3597
|
key: 0,
|
|
3603
3598
|
class: "vc-input-dropdown vc-input-dropdown--skeleton"
|
|
3604
|
-
},
|
|
3599
|
+
}, fl = { class: "tw-flex tw-items-center" }, gl = ["aria-label", "aria-expanded", "onClick", "onKeydown"], vl = /* @__PURE__ */ J({
|
|
3605
3600
|
__name: "vc-input-dropdown",
|
|
3606
3601
|
props: {
|
|
3607
3602
|
modelValue: {},
|
|
@@ -3634,7 +3629,7 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3634
3629
|
emits: ["update:model-value", "update:option", "change", "blur"],
|
|
3635
3630
|
setup(e) {
|
|
3636
3631
|
const t = be();
|
|
3637
|
-
return (n, o) => i(t) ? (g(), h("div",
|
|
3632
|
+
return (n, o) => i(t) ? (g(), h("div", dl, [
|
|
3638
3633
|
e.label ? (g(), q(i(ae), {
|
|
3639
3634
|
key: 0,
|
|
3640
3635
|
variant: "block",
|
|
@@ -3646,7 +3641,7 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3646
3641
|
width: "100%",
|
|
3647
3642
|
height: 36
|
|
3648
3643
|
})
|
|
3649
|
-
])) : (g(), q(i(
|
|
3644
|
+
])) : (g(), q(i(cl), {
|
|
3650
3645
|
key: 1,
|
|
3651
3646
|
class: "vc-input-dropdown",
|
|
3652
3647
|
options: e.options,
|
|
@@ -3667,7 +3662,7 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3667
3662
|
B(n.$slots, "option", Le(xe(l)))
|
|
3668
3663
|
]),
|
|
3669
3664
|
control: C(({ toggleHandler: l, isOpened: r }) => [
|
|
3670
|
-
T(i(
|
|
3665
|
+
T(i(ha), {
|
|
3671
3666
|
placeholder: e.placeholder,
|
|
3672
3667
|
hint: e.hint,
|
|
3673
3668
|
clearable: e.clearable,
|
|
@@ -3687,7 +3682,7 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3687
3682
|
onBlur: o[1] || (o[1] = (a) => n.$emit("blur", a))
|
|
3688
3683
|
}, pe({
|
|
3689
3684
|
"append-inner": C(() => [
|
|
3690
|
-
L("div",
|
|
3685
|
+
L("div", fl, [
|
|
3691
3686
|
B(n.$slots, "button", { toggleHandler: l }, () => [
|
|
3692
3687
|
e.options && e.options.length ? (g(), h("button", {
|
|
3693
3688
|
key: 0,
|
|
@@ -3702,9 +3697,9 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3702
3697
|
_(Q(l, ["stop", "prevent"]), ["enter"]),
|
|
3703
3698
|
_(Q(l, ["stop", "prevent"]), ["space"])
|
|
3704
3699
|
]
|
|
3705
|
-
}, N(i(e.option)), 41,
|
|
3700
|
+
}, N(i(e.option)), 41, gl)) : w("", !0)
|
|
3706
3701
|
]),
|
|
3707
|
-
e.options && e.options.length ? (g(), q(i(
|
|
3702
|
+
e.options && e.options.length ? (g(), q(i(ro), {
|
|
3708
3703
|
key: 0,
|
|
3709
3704
|
icon: r ? "lucide-chevron-up" : "lucide-chevron-down",
|
|
3710
3705
|
"icon-size": "s",
|
|
@@ -3751,10 +3746,10 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3751
3746
|
_: 3
|
|
3752
3747
|
}, 8, ["options", "option-label", "option-value", "searchable", "debounce", "disabled", "label", "required", "model-value", "tooltip", "multilanguage", "current-language"]));
|
|
3753
3748
|
}
|
|
3754
|
-
}),
|
|
3749
|
+
}), pl = {
|
|
3755
3750
|
key: 0,
|
|
3756
3751
|
class: "vc-input-currency vc-input-currency--skeleton"
|
|
3757
|
-
},
|
|
3752
|
+
}, ml = ["disabled", "placeholder", "aria-label"], mi = /* @__PURE__ */ J({
|
|
3758
3753
|
__name: "vc-input-currency",
|
|
3759
3754
|
props: {
|
|
3760
3755
|
modelValue: {},
|
|
@@ -3771,7 +3766,7 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3771
3766
|
options: {},
|
|
3772
3767
|
optionValue: {},
|
|
3773
3768
|
optionLabel: {},
|
|
3774
|
-
currencyDisplay: { default:
|
|
3769
|
+
currencyDisplay: { default: Sn.hidden },
|
|
3775
3770
|
precision: { default: 2 },
|
|
3776
3771
|
searchable: { type: Boolean, default: !1 },
|
|
3777
3772
|
label: {},
|
|
@@ -3784,7 +3779,7 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3784
3779
|
},
|
|
3785
3780
|
emits: ["update:model-value", "update:option", "change", "blur"],
|
|
3786
3781
|
setup(e, { emit: t }) {
|
|
3787
|
-
const n = e, o = t, l = be(), { inputRef: r, setOptions: a, numberValue: u, setValue: s } =
|
|
3782
|
+
const n = e, o = t, l = be(), { inputRef: r, setOptions: a, numberValue: u, setValue: s } = wn(
|
|
3788
3783
|
{
|
|
3789
3784
|
locale: navigator.language,
|
|
3790
3785
|
currency: n.option || "USD",
|
|
@@ -3835,7 +3830,7 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3835
3830
|
const y = c.clipboardData?.getData("text/plain");
|
|
3836
3831
|
typeof y < "u" && parseInt(y) < 0 && c.preventDefault();
|
|
3837
3832
|
}
|
|
3838
|
-
return (c, y) => i(l) ? (g(), h("div",
|
|
3833
|
+
return (c, y) => i(l) ? (g(), h("div", pl, [
|
|
3839
3834
|
e.label ? (g(), q(i(ae), {
|
|
3840
3835
|
key: 0,
|
|
3841
3836
|
variant: "block",
|
|
@@ -3847,7 +3842,7 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3847
3842
|
width: "100%",
|
|
3848
3843
|
height: 36
|
|
3849
3844
|
})
|
|
3850
|
-
])) : (g(), q(i(
|
|
3845
|
+
])) : (g(), q(i(vl), {
|
|
3851
3846
|
key: 1,
|
|
3852
3847
|
class: "vc-input-currency",
|
|
3853
3848
|
options: e.options,
|
|
@@ -3890,31 +3885,31 @@ const Ca = { class: "vc-select__control" }, Ba = {
|
|
|
3890
3885
|
onBlur: m,
|
|
3891
3886
|
onKeydown: v,
|
|
3892
3887
|
onPaste: d
|
|
3893
|
-
}, null, 40,
|
|
3888
|
+
}, null, 40, ml)
|
|
3894
3889
|
]),
|
|
3895
3890
|
_: 1
|
|
3896
3891
|
}, 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"]));
|
|
3897
3892
|
}
|
|
3898
|
-
}),
|
|
3893
|
+
}), Pt = Symbol("VcAppBarState"), yl = {
|
|
3899
3894
|
activeWidgetId: S(null),
|
|
3900
3895
|
activeMobileActionId: S(null)
|
|
3901
3896
|
};
|
|
3902
|
-
function
|
|
3897
|
+
function yi() {
|
|
3903
3898
|
const e = {
|
|
3904
3899
|
activeWidgetId: S(null),
|
|
3905
3900
|
activeMobileActionId: S(null)
|
|
3906
3901
|
};
|
|
3907
|
-
return bt(
|
|
3902
|
+
return bt(Pt, e), e;
|
|
3908
3903
|
}
|
|
3909
|
-
function
|
|
3910
|
-
return W(
|
|
3904
|
+
function bi() {
|
|
3905
|
+
return W(Pt, yl);
|
|
3911
3906
|
}
|
|
3912
|
-
const
|
|
3907
|
+
const hi = Symbol("TableContext"), bl = Symbol("ColumnCollector"), ki = Symbol("FillerWidth"), Ii = Symbol("IsColumnReordering"), Si = Symbol("FilterContext"), wi = (e, t) => {
|
|
3913
3908
|
const n = e.__vccOpts || e;
|
|
3914
3909
|
for (const [o, l] of t)
|
|
3915
3910
|
n[o] = l;
|
|
3916
3911
|
return n;
|
|
3917
|
-
},
|
|
3912
|
+
}, $i = J({
|
|
3918
3913
|
name: "VcColumn",
|
|
3919
3914
|
inheritAttrs: !1,
|
|
3920
3915
|
props: {
|
|
@@ -4092,7 +4087,7 @@ const ki = Symbol("TableContext"), hl = Symbol("ColumnCollector"), Ii = Symbol("
|
|
|
4092
4087
|
}
|
|
4093
4088
|
},
|
|
4094
4089
|
setup(e, { slots: t }) {
|
|
4095
|
-
const n = W(
|
|
4090
|
+
const n = W(bl, null), o = Fe();
|
|
4096
4091
|
return tt(() => {
|
|
4097
4092
|
n && o && n.add({
|
|
4098
4093
|
instance: o,
|
|
@@ -4104,7 +4099,7 @@ const ki = Symbol("TableContext"), hl = Symbol("ColumnCollector"), Ii = Symbol("
|
|
|
4104
4099
|
}), () => null;
|
|
4105
4100
|
}
|
|
4106
4101
|
}), ke = Je(/* @__PURE__ */ new Map());
|
|
4107
|
-
function
|
|
4102
|
+
function Oi() {
|
|
4108
4103
|
return {
|
|
4109
4104
|
register: (a) => {
|
|
4110
4105
|
ke.set(a.type, a);
|
|
@@ -4118,7 +4113,7 @@ function Ei() {
|
|
|
4118
4113
|
}
|
|
4119
4114
|
};
|
|
4120
4115
|
}
|
|
4121
|
-
const
|
|
4116
|
+
const Ei = J({
|
|
4122
4117
|
name: "SlotProxy",
|
|
4123
4118
|
props: {
|
|
4124
4119
|
slotFn: { type: Function, required: !0 },
|
|
@@ -4127,105 +4122,105 @@ const Ci = J({
|
|
|
4127
4122
|
setup(e) {
|
|
4128
4123
|
return () => e.slotFn(e.scope);
|
|
4129
4124
|
}
|
|
4130
|
-
}),
|
|
4125
|
+
}), Ci = (e, t) => {
|
|
4131
4126
|
const n = t.arg ? parseInt(t.arg, 10) : 9e3, o = typeof t.value == "object" ? t.value : { blur: !0 };
|
|
4132
4127
|
t.value ? (e.classList.add("v-loading"), o.size && e.setAttribute("data-loading-size", o.size), o.color && e.style.setProperty("--v-loading-spinner-color", o.color), o.blur === !1 && e.classList.add("v-loading--no-blur"), o.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"));
|
|
4133
4128
|
};
|
|
4134
4129
|
export {
|
|
4135
|
-
|
|
4130
|
+
Ul as $,
|
|
4136
4131
|
Ze as A,
|
|
4137
|
-
|
|
4138
|
-
|
|
4132
|
+
ao as B,
|
|
4133
|
+
Zl as C,
|
|
4139
4134
|
Xe as D,
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4135
|
+
Vn as E,
|
|
4136
|
+
Zn as F,
|
|
4137
|
+
ii as G,
|
|
4138
|
+
li as H,
|
|
4139
|
+
Bn as I,
|
|
4145
4140
|
Vt as J,
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4141
|
+
di as K,
|
|
4142
|
+
Yn as L,
|
|
4143
|
+
Do as M,
|
|
4144
|
+
Qn as N,
|
|
4145
|
+
_n as O,
|
|
4146
|
+
eo as P,
|
|
4152
4147
|
zl as Q,
|
|
4153
4148
|
he as R,
|
|
4154
|
-
|
|
4149
|
+
Co as S,
|
|
4155
4150
|
ie as T,
|
|
4156
|
-
|
|
4151
|
+
Pl as U,
|
|
4157
4152
|
ce as V,
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4153
|
+
Fl as W,
|
|
4154
|
+
Nl as X,
|
|
4155
|
+
Dl as Y,
|
|
4156
|
+
ci as Z,
|
|
4157
|
+
ro as _,
|
|
4158
|
+
oa as a,
|
|
4159
|
+
fi as a0,
|
|
4160
|
+
Pn as a1,
|
|
4166
4161
|
zn as a2,
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4162
|
+
qn as a3,
|
|
4163
|
+
Rn as a4,
|
|
4164
|
+
Mn as a5,
|
|
4165
|
+
Kl as a6,
|
|
4166
|
+
Fn as a7,
|
|
4167
|
+
Gl as a8,
|
|
4168
|
+
Jl as a9,
|
|
4169
|
+
ki as aA,
|
|
4170
|
+
Ii as aB,
|
|
4171
|
+
Oi as aC,
|
|
4172
|
+
Ei as aD,
|
|
4173
|
+
bl as aE,
|
|
4174
|
+
Si as aF,
|
|
4175
|
+
Dn as aG,
|
|
4176
|
+
Ln as aa,
|
|
4177
|
+
Tn as ab,
|
|
4178
|
+
Nn as ac,
|
|
4184
4179
|
gt as ad,
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4180
|
+
si as ae,
|
|
4181
|
+
Yl as af,
|
|
4182
|
+
gi as ag,
|
|
4183
|
+
ti as ah,
|
|
4184
|
+
ri as ai,
|
|
4185
|
+
oi as aj,
|
|
4186
|
+
ei as ak,
|
|
4187
|
+
ai as al,
|
|
4188
|
+
Hl as am,
|
|
4189
|
+
Wl as an,
|
|
4190
|
+
jl as ao,
|
|
4191
|
+
no as ap,
|
|
4192
|
+
Xl as aq,
|
|
4193
|
+
vi as ar,
|
|
4194
|
+
ni as as,
|
|
4195
|
+
ql as at,
|
|
4196
|
+
Ql as au,
|
|
4202
4197
|
Ft as av,
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4198
|
+
pi as aw,
|
|
4199
|
+
ka as ax,
|
|
4200
|
+
uo as ay,
|
|
4201
|
+
hi as az,
|
|
4202
|
+
$i as b,
|
|
4203
|
+
jo as c,
|
|
4204
|
+
ha as d,
|
|
4205
|
+
mi as e,
|
|
4206
|
+
vl as f,
|
|
4212
4207
|
Ke as g,
|
|
4213
|
-
|
|
4214
|
-
|
|
4208
|
+
Eo as h,
|
|
4209
|
+
cl as i,
|
|
4215
4210
|
ae as j,
|
|
4216
|
-
|
|
4217
|
-
|
|
4211
|
+
ho as k,
|
|
4212
|
+
Ci as l,
|
|
4218
4213
|
be as m,
|
|
4219
|
-
|
|
4214
|
+
so as n,
|
|
4220
4215
|
qe as o,
|
|
4221
|
-
|
|
4222
|
-
|
|
4216
|
+
yi as p,
|
|
4217
|
+
co as q,
|
|
4223
4218
|
At as r,
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4219
|
+
wi as s,
|
|
4220
|
+
ui as t,
|
|
4221
|
+
bi as u,
|
|
4222
|
+
_l as v,
|
|
4223
|
+
An as w,
|
|
4229
4224
|
lt as x,
|
|
4230
4225
|
re as y,
|
|
4231
4226
|
ye as z
|