@vc-shell/framework 2.7.0-pr398.d8bb4ce → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-BK3ha4gA.js → VcScheduler.vue_vue_type_script_setup_true_lang-e9TL407R.js} +1462 -1451
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-e9TL407R.js.map +1 -0
- package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang-BhXTPWKg.js → VcScheduler.vue_vue_type_style_index_0_lang-BzPg7VnG.js} +770 -764
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-BzPg7VnG.js.map +1 -0
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-aICyTuY8.js → dashboard-feed-row.vue_vue_type_script_setup_true_lang-BXccwYEq.js} +1 -1
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-aICyTuY8.js.map → dashboard-feed-row.vue_vue_type_script_setup_true_lang-BXccwYEq.js.map} +1 -1
- package/dist/core/composables/useToolbar/index.d.ts +1 -1
- package/dist/core/composables/useToolbar/index.d.ts.map +1 -1
- package/dist/core/services/toolbar-service.d.ts +10 -1
- package/dist/core/services/toolbar-service.d.ts.map +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/framework.js +253 -252
- package/dist/framework.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/shortcut-dispatch.d.ts +2 -1
- package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/shortcut-dispatch.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-dropdown/_internal/VcDropdownItem.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-dropdown/_internal/VcDropdownItem.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/composables/useToolbarRegistration.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetContainer.vue.d.ts.map +1 -1
- package/dist/ui/index.js +2 -2
- package/package.json +4 -4
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-BK3ha4gA.js.map +0 -1
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-BhXTPWKg.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mergeProps as ae, inject as X, useId as tn, computed as O, ref as S, onBeforeUnmount as it, reactive as Qe, provide as Ot, getCurrentScope as nn, onScopeDispose as an, getCurrentInstance as je, onErrorCaptured as ln, nextTick as Ee, defineComponent as V, watch as Y, unref as r, openBlock as f, createElementBlock as
|
|
1
|
+
import { mergeProps as ae, inject as X, useId as tn, computed as O, ref as S, onBeforeUnmount as it, reactive as Qe, provide as Ot, getCurrentScope as nn, onScopeDispose as an, getCurrentInstance as je, onErrorCaptured as ln, nextTick as Ee, defineComponent as V, watch as Y, unref as r, openBlock as f, createElementBlock as h, normalizeClass as G, createBlock as D, createCommentVNode as w, renderSlot as B, createElementVNode as C, toDisplayString as M, Fragment as Ce, renderList as rt, normalizeStyle as Ve, resolveDynamicComponent as st, withCtx as L, withKeys as _, withModifiers as J, createVNode as R, shallowReactive as qe, watchEffect as nt, markRaw as at, createSlots as se, createTextVNode as ee, Transition as Pe, withDirectives as ut, vModelText as on, useAttrs as wt, vModelDynamic as rn, onMounted as He, onUnmounted as Lt, Teleport as sn, normalizeProps as Ne, guardReactiveProps as Ae } from "vue";
|
|
2
2
|
import { c as pe, ak as un, R as cn, z as dn, w as fn, s as vn, I as gn, v as mn, t as pn, B as Ct, d as bn, i as yn, _ as W, T as Tt, a as Bt, Z as hn, C as In, u as kn, b as Sn } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-TiaFg1wQ.js";
|
|
3
3
|
import { defineRule as Te, Field as $n } from "vee-validate";
|
|
4
4
|
import { a as ht } from "./vendor-vee-validate-rules-4oWUZPpG.js";
|
|
@@ -40,12 +40,12 @@ class ue extends Error {
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
class
|
|
43
|
+
class Pi extends ue {
|
|
44
44
|
constructor(t, n) {
|
|
45
45
|
super(t, "VALIDATION_ERROR", n), this.name = "ValidationError";
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
class
|
|
48
|
+
class zi extends ue {
|
|
49
49
|
constructor(t, n) {
|
|
50
50
|
super(t, "SERVICE_ERROR", n), this.name = "ServiceError";
|
|
51
51
|
}
|
|
@@ -58,7 +58,7 @@ class qn extends ue {
|
|
|
58
58
|
}), this.name = "InjectionError";
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
class
|
|
61
|
+
class Fi extends ue {
|
|
62
62
|
constructor(t, n, a) {
|
|
63
63
|
super(`Failed to register '${t}': ${n}`, "REGISTRATION_ERROR", {
|
|
64
64
|
componentName: t,
|
|
@@ -66,7 +66,7 @@ class zi extends ue {
|
|
|
66
66
|
}), this.name = "RegistrationError";
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
class
|
|
69
|
+
class Ki extends ue {
|
|
70
70
|
constructor(t, n, a) {
|
|
71
71
|
super(t, "BLADE_ERROR", {
|
|
72
72
|
bladeId: n,
|
|
@@ -74,7 +74,7 @@ class Fi extends ue {
|
|
|
74
74
|
}), this.name = "BladeError";
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
class
|
|
77
|
+
class Ui extends ue {
|
|
78
78
|
constructor(t, n, a) {
|
|
79
79
|
super(`Failed to load module '${t}': ${n}`, "MODULE_LOAD_ERROR", {
|
|
80
80
|
moduleId: t,
|
|
@@ -85,7 +85,7 @@ class Ki extends ue {
|
|
|
85
85
|
function Wn(e) {
|
|
86
86
|
return e instanceof ue;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function qi(e, t = "UNKNOWN_ERROR") {
|
|
89
89
|
return Wn(e) ? e : e instanceof Error ? new ue(e.message, t, {
|
|
90
90
|
originalError: e.name,
|
|
91
91
|
stack: e.stack
|
|
@@ -239,7 +239,7 @@ function ta(e, t) {
|
|
|
239
239
|
const l = n + 1 + o, s = e.slice(0, l), u = e.slice(l);
|
|
240
240
|
return `${s}_${t}${u}`;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function Wi(e) {
|
|
243
243
|
return e <= 64 ? "64x64" : e <= 128 ? "128x128" : e <= 168 ? "168x168" : e <= 216 ? "216x216" : e <= 348 ? "348x348" : "lg";
|
|
244
244
|
}
|
|
245
245
|
function na(e) {
|
|
@@ -256,7 +256,7 @@ function na(e) {
|
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function ji() {
|
|
260
260
|
const e = /* @__PURE__ */ new Map();
|
|
261
261
|
return {
|
|
262
262
|
register(t, n) {
|
|
@@ -402,7 +402,7 @@ const oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
402
402
|
setNotificationBackend: la
|
|
403
403
|
}, Symbol.toStringTag, { value: "Module" })), ia = Symbol("vc-input-group-context");
|
|
404
404
|
function Ge(e) {
|
|
405
|
-
const t = X(ia, null), n = tn(), a = O(() => `vc-field-${n}`), i = O(() => `${a.value}-label`), o = O(() => `${a.value}-error`), l = O(() => `${a.value}-hint`), s = O(() => !!e.error || !!e.errorMessage || !!t?.invalid.value), u = O(() => !!e.disabled || !!t?.disabled.value),
|
|
405
|
+
const t = X(ia, null), n = tn(), a = O(() => `vc-field-${n}`), i = O(() => `${a.value}-label`), o = O(() => `${a.value}-error`), l = O(() => `${a.value}-hint`), s = O(() => !!e.error || !!e.errorMessage || !!t?.invalid.value), u = O(() => !!e.disabled || !!t?.disabled.value), v = O(() => t?.name.value || e.name), b = O(() => e.required ? !0 : void 0), g = O(() => {
|
|
406
406
|
const d = /* @__PURE__ */ new Set();
|
|
407
407
|
return t?.describedBy.value && t.describedBy.value.split(/\s+/).forEach((c) => d.add(c)), e.errorMessage && d.add(o.value), e.hint && d.add(l.value), d.size ? Array.from(d).join(" ") : void 0;
|
|
408
408
|
});
|
|
@@ -413,9 +413,9 @@ function Ge(e) {
|
|
|
413
413
|
hintId: l,
|
|
414
414
|
invalid: s,
|
|
415
415
|
resolvedDisabled: u,
|
|
416
|
-
resolvedName:
|
|
416
|
+
resolvedName: v,
|
|
417
417
|
ariaRequired: b,
|
|
418
|
-
ariaDescribedBy:
|
|
418
|
+
ariaDescribedBy: g,
|
|
419
419
|
groupContext: t
|
|
420
420
|
};
|
|
421
421
|
}
|
|
@@ -427,21 +427,21 @@ function ra(e, t = {}) {
|
|
|
427
427
|
const { speed: n = 2 } = t, a = S(!1), i = S(!1);
|
|
428
428
|
let o = null;
|
|
429
429
|
function l() {
|
|
430
|
-
const
|
|
431
|
-
if (!
|
|
430
|
+
const v = e.value;
|
|
431
|
+
if (!v) {
|
|
432
432
|
a.value = !1, i.value = !1;
|
|
433
433
|
return;
|
|
434
434
|
}
|
|
435
|
-
a.value =
|
|
435
|
+
a.value = v.scrollTop > 0, i.value = !Dt(v);
|
|
436
436
|
}
|
|
437
|
-
function s(
|
|
437
|
+
function s(v) {
|
|
438
438
|
u();
|
|
439
439
|
const b = e.value;
|
|
440
440
|
if (!b) return;
|
|
441
|
-
function
|
|
442
|
-
b && (b.scrollTop +=
|
|
441
|
+
function g() {
|
|
442
|
+
b && (b.scrollTop += v === "up" ? -n : n, l(), o = requestAnimationFrame(g));
|
|
443
443
|
}
|
|
444
|
-
o = requestAnimationFrame(
|
|
444
|
+
o = requestAnimationFrame(g);
|
|
445
445
|
}
|
|
446
446
|
function u() {
|
|
447
447
|
o !== null && (cancelAnimationFrame(o), o = null);
|
|
@@ -466,16 +466,16 @@ const sa = (e, [t, n]) => {
|
|
|
466
466
|
if (!e?.files || !e.files?.length)
|
|
467
467
|
return !0;
|
|
468
468
|
const a = (l, s, u) => {
|
|
469
|
-
const
|
|
469
|
+
const v = window.URL || window.webkitURL;
|
|
470
470
|
return new Promise((b) => {
|
|
471
|
-
const
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
},
|
|
475
|
-
|
|
476
|
-
const c =
|
|
471
|
+
const g = new Image(), d = v.createObjectURL(l);
|
|
472
|
+
g.onerror = () => {
|
|
473
|
+
v.revokeObjectURL(d), b(!1);
|
|
474
|
+
}, g.onload = () => {
|
|
475
|
+
v.revokeObjectURL(d);
|
|
476
|
+
const c = g.width >= Number(s) && g.height >= Number(u);
|
|
477
477
|
b(c ? !0 : Oe.global.t("messages.min_dimensions.error", { width: s, height: u }));
|
|
478
|
-
},
|
|
478
|
+
}, g.src = d;
|
|
479
479
|
});
|
|
480
480
|
}, i = [], o = e.files;
|
|
481
481
|
for (let l = 0; l < o.length; l++) {
|
|
@@ -513,11 +513,11 @@ function Be(e) {
|
|
|
513
513
|
const t = pe(`${e.name}-bus`), n = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set();
|
|
514
514
|
function i(d) {
|
|
515
515
|
const c = e.getKey(d);
|
|
516
|
-
n.set(c, d), a.size > 0 && b((
|
|
516
|
+
n.set(c, d), a.size > 0 && b((m) => {
|
|
517
517
|
try {
|
|
518
|
-
e.registerIntoService(
|
|
519
|
-
} catch (
|
|
520
|
-
t.warn(`Failed to live-register item (key=${c}):`,
|
|
518
|
+
e.registerIntoService(m, d);
|
|
519
|
+
} catch (y) {
|
|
520
|
+
t.warn(`Failed to live-register item (key=${c}):`, y);
|
|
521
521
|
}
|
|
522
522
|
});
|
|
523
523
|
}
|
|
@@ -525,34 +525,34 @@ function Be(e) {
|
|
|
525
525
|
n.delete(d), e.unregisterFromService && a.size > 0 && a.forEach((c) => {
|
|
526
526
|
try {
|
|
527
527
|
e.unregisterFromService(c, d);
|
|
528
|
-
} catch (
|
|
529
|
-
t.warn(`Failed to live-unregister item (id=${d}):`,
|
|
528
|
+
} catch (m) {
|
|
529
|
+
t.warn(`Failed to live-unregister item (id=${d}):`, m);
|
|
530
530
|
}
|
|
531
531
|
});
|
|
532
532
|
}
|
|
533
533
|
function l(d) {
|
|
534
|
-
for (const [c,
|
|
535
|
-
d(
|
|
534
|
+
for (const [c, m] of n)
|
|
535
|
+
d(m) && n.delete(c);
|
|
536
536
|
}
|
|
537
537
|
function s() {
|
|
538
538
|
return Array.from(n.values());
|
|
539
539
|
}
|
|
540
540
|
function u(d) {
|
|
541
|
-
a.add(d), n.forEach((c,
|
|
541
|
+
a.add(d), n.forEach((c, m) => {
|
|
542
542
|
try {
|
|
543
543
|
e.registerIntoService(d, c);
|
|
544
|
-
} catch (
|
|
545
|
-
t.warn(`Failed to replay item (key=${
|
|
544
|
+
} catch (y) {
|
|
545
|
+
t.warn(`Failed to replay item (key=${m}):`, y);
|
|
546
546
|
}
|
|
547
547
|
});
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function v(d) {
|
|
550
550
|
a.delete(d);
|
|
551
551
|
}
|
|
552
552
|
function b(d) {
|
|
553
553
|
a.forEach((c) => d(c));
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function g() {
|
|
556
556
|
return a.values().next().value;
|
|
557
557
|
}
|
|
558
558
|
return {
|
|
@@ -561,9 +561,9 @@ function Be(e) {
|
|
|
561
561
|
removePreregistered: l,
|
|
562
562
|
getPreregistered: s,
|
|
563
563
|
replayInto: u,
|
|
564
|
-
dispose:
|
|
564
|
+
dispose: v,
|
|
565
565
|
broadcast: b,
|
|
566
|
-
getFirstInstance:
|
|
566
|
+
getFirstInstance: g,
|
|
567
567
|
get instanceCount() {
|
|
568
568
|
return a.size;
|
|
569
569
|
}
|
|
@@ -583,27 +583,27 @@ function Pt(e) {
|
|
|
583
583
|
a.set(d, c - 1);
|
|
584
584
|
}
|
|
585
585
|
function l(d, c) {
|
|
586
|
-
const
|
|
587
|
-
t[
|
|
588
|
-
const
|
|
589
|
-
if (
|
|
590
|
-
Object.assign(
|
|
586
|
+
const m = c.toLowerCase();
|
|
587
|
+
t[m] || (t[m] = []);
|
|
588
|
+
const y = t[m].find((p) => p.id === d.id);
|
|
589
|
+
if (y) {
|
|
590
|
+
Object.assign(y, d, { bladeId: m });
|
|
591
591
|
return;
|
|
592
592
|
}
|
|
593
|
-
const T = { ...d, bladeId:
|
|
594
|
-
t[
|
|
593
|
+
const T = { ...d, bladeId: m };
|
|
594
|
+
t[m].push(T), n.push(e.createRegistration(m, T)), i(d.id);
|
|
595
595
|
}
|
|
596
596
|
function s(d, c) {
|
|
597
|
-
const
|
|
598
|
-
if (
|
|
599
|
-
const
|
|
600
|
-
if (
|
|
601
|
-
const [$] =
|
|
597
|
+
const m = c.toLowerCase(), y = t[m];
|
|
598
|
+
if (y) {
|
|
599
|
+
const p = y.findIndex(($) => $.id === d);
|
|
600
|
+
if (p !== -1) {
|
|
601
|
+
const [$] = y.splice(p, 1);
|
|
602
602
|
$ && o($.id);
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
const T = n.findIndex(
|
|
606
|
-
(
|
|
606
|
+
(p) => e.getRegistrationBladeId(p) === m && e.getRegistrationItemId(p) === d
|
|
607
607
|
);
|
|
608
608
|
T !== -1 && n.splice(T, 1);
|
|
609
609
|
}
|
|
@@ -611,17 +611,17 @@ function Pt(e) {
|
|
|
611
611
|
const c = d ? d.toLowerCase() : "";
|
|
612
612
|
return [...t[c] || []];
|
|
613
613
|
}
|
|
614
|
-
function
|
|
615
|
-
const c = d.toLowerCase(),
|
|
616
|
-
|
|
614
|
+
function v(d) {
|
|
615
|
+
const c = d.toLowerCase(), m = t[c];
|
|
616
|
+
m && (m.forEach((T) => o(T.id)), delete t[c]), n.map((T, p) => e.getRegistrationBladeId(T) === c ? p : -1).filter((T) => T !== -1).reverse().forEach((T) => {
|
|
617
617
|
n.splice(T, 1);
|
|
618
618
|
});
|
|
619
619
|
}
|
|
620
|
-
function b(d, c,
|
|
621
|
-
const
|
|
622
|
-
T && Object.assign(T,
|
|
620
|
+
function b(d, c, m) {
|
|
621
|
+
const y = c.toLowerCase(), T = t[y]?.find((p) => p.id === d);
|
|
622
|
+
T && Object.assign(T, m, { bladeId: y });
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function g(d) {
|
|
625
625
|
return a.has(d);
|
|
626
626
|
}
|
|
627
627
|
return {
|
|
@@ -630,9 +630,9 @@ function Pt(e) {
|
|
|
630
630
|
register: l,
|
|
631
631
|
unregister: s,
|
|
632
632
|
get: u,
|
|
633
|
-
clear:
|
|
633
|
+
clear: v,
|
|
634
634
|
update: b,
|
|
635
|
-
isRegistered:
|
|
635
|
+
isRegistered: g
|
|
636
636
|
};
|
|
637
637
|
}
|
|
638
638
|
function va(e) {
|
|
@@ -670,27 +670,27 @@ const Fe = S(/* @__PURE__ */ new Map()), me = Be({
|
|
|
670
670
|
getKey: We,
|
|
671
671
|
registerIntoService: (e, t) => e.addMenuItem(t)
|
|
672
672
|
});
|
|
673
|
-
function
|
|
673
|
+
function Hi(e) {
|
|
674
674
|
me.preregister(e);
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function Gi(e) {
|
|
677
677
|
me.removePreregistered((t) => dt(t, e)), me.broadcast((t) => t.removeMenuItem(e));
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function Yi(e, t) {
|
|
680
680
|
Fe.value.set(e, t), me.broadcast((n) => {
|
|
681
681
|
n.menuBadges.value.set(e, t);
|
|
682
682
|
});
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function Ji(e) {
|
|
685
685
|
const t = me.getFirstInstance();
|
|
686
686
|
return t ? t.menuBadges.value.get(e) : Fe.value.get(e);
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function Xi(e) {
|
|
689
689
|
Fe.value.delete(e), me.broadcast((t) => {
|
|
690
690
|
t.menuBadges.value.delete(e);
|
|
691
691
|
});
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function Zi() {
|
|
694
694
|
return me.getFirstInstance()?.menuBadges ?? Fe;
|
|
695
695
|
}
|
|
696
696
|
const ot = 1 / 0, ga = 1 / 0;
|
|
@@ -782,8 +782,8 @@ function Ye(e) {
|
|
|
782
782
|
const u = X(t, null);
|
|
783
783
|
if (u)
|
|
784
784
|
return u;
|
|
785
|
-
const
|
|
786
|
-
return Ot(t,
|
|
785
|
+
const v = n();
|
|
786
|
+
return Ot(t, v), nn() && an(() => a.dispose(v)), v;
|
|
787
787
|
}
|
|
788
788
|
function s() {
|
|
789
789
|
const u = X(t, null);
|
|
@@ -803,10 +803,10 @@ const ka = pe("use-menu-service"), Ft = Ye({
|
|
|
803
803
|
name: "MenuService",
|
|
804
804
|
onMissing: () => ka.error("Menu service not found in current context. Injection chain:", je())
|
|
805
805
|
});
|
|
806
|
-
function
|
|
806
|
+
function Qi() {
|
|
807
807
|
return Ft.provide();
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function _i() {
|
|
810
810
|
return Ft.use();
|
|
811
811
|
}
|
|
812
812
|
function Je() {
|
|
@@ -825,13 +825,13 @@ function Ea() {
|
|
|
825
825
|
const i = n?.appName ? `[${n.appName}] ` : "", o = (u) => `${i}${u.name}`;
|
|
826
826
|
function l(u) {
|
|
827
827
|
if (!e) return;
|
|
828
|
-
const
|
|
829
|
-
e.context.telemetryTrace.traceID = wn(), e.context.telemetryTrace.name = u.name, e.startTrackPage(
|
|
828
|
+
const v = o(u);
|
|
829
|
+
e.context.telemetryTrace.traceID = wn(), e.context.telemetryTrace.name = u.name, e.startTrackPage(v);
|
|
830
830
|
}
|
|
831
831
|
function s(u) {
|
|
832
832
|
if (!e) return;
|
|
833
|
-
const
|
|
834
|
-
e.stopTrackPage(
|
|
833
|
+
const v = o(u), b = location.protocol + "//" + location.host + u.fullPath;
|
|
834
|
+
e.stopTrackPage(v, b, {
|
|
835
835
|
userId: t.value?.id ?? "",
|
|
836
836
|
userName: t.value?.userName ?? ""
|
|
837
837
|
});
|
|
@@ -872,7 +872,7 @@ function wa(e) {
|
|
|
872
872
|
};
|
|
873
873
|
}
|
|
874
874
|
const Ue = /* @__PURE__ */ new WeakMap();
|
|
875
|
-
function
|
|
875
|
+
function er(e, t, n) {
|
|
876
876
|
Ue.set(e, { timerId: t, notifId: n });
|
|
877
877
|
}
|
|
878
878
|
function La(e) {
|
|
@@ -885,7 +885,7 @@ function La(e) {
|
|
|
885
885
|
}
|
|
886
886
|
return !1;
|
|
887
887
|
}
|
|
888
|
-
const
|
|
888
|
+
const tr = V({
|
|
889
889
|
name: "ErrorInterceptor",
|
|
890
890
|
props: {
|
|
891
891
|
capture: {
|
|
@@ -942,36 +942,36 @@ const er = V({
|
|
|
942
942
|
}, a = e, i = we(), o = t, l = X(Ca, null), s = O(() => {
|
|
943
943
|
const c = l?.size?.value ?? a.size;
|
|
944
944
|
return n[c] ?? c;
|
|
945
|
-
}), u = S(null),
|
|
946
|
-
Y(
|
|
945
|
+
}), u = S(null), v = O(() => a.disabled || a.loading), b = S(!1);
|
|
946
|
+
Y(v, (c) => {
|
|
947
947
|
b.value = c && u.value === document.activeElement;
|
|
948
948
|
});
|
|
949
|
-
const
|
|
949
|
+
const g = O(() => [
|
|
950
950
|
"vc-button",
|
|
951
951
|
{
|
|
952
952
|
[`vc-button-${a.variant}`]: a.variant,
|
|
953
953
|
[`vc-button--${s.value}`]: s.value,
|
|
954
954
|
"vc-button--selected": a.selected,
|
|
955
955
|
"vc-button--text": a.text,
|
|
956
|
-
"vc-button--disabled":
|
|
956
|
+
"vc-button--disabled": v.value,
|
|
957
957
|
"vc-button--loading": a.loading
|
|
958
958
|
}
|
|
959
959
|
]);
|
|
960
960
|
function d(c) {
|
|
961
|
-
c.preventDefault(), !
|
|
961
|
+
c.preventDefault(), !v.value && o("click", c);
|
|
962
962
|
}
|
|
963
|
-
return (c,
|
|
963
|
+
return (c, m) => r(i) ? w("", !0) : (f(), h("button", {
|
|
964
964
|
key: 0,
|
|
965
965
|
ref_key: "buttonRef",
|
|
966
966
|
ref: u,
|
|
967
|
-
class: G(
|
|
967
|
+
class: G(g.value),
|
|
968
968
|
type: e.type,
|
|
969
|
-
disabled:
|
|
969
|
+
disabled: v.value && !b.value,
|
|
970
970
|
"aria-disabled": b.value || void 0,
|
|
971
971
|
"aria-label": e.ariaLabel,
|
|
972
972
|
"aria-busy": e.loading || void 0,
|
|
973
973
|
"aria-pressed": e.selected || void 0,
|
|
974
|
-
onBlur:
|
|
974
|
+
onBlur: m[0] || (m[0] = (y) => b.value = !1),
|
|
975
975
|
onClick: d
|
|
976
976
|
}, [
|
|
977
977
|
e.loading ? (f(), D(r(W), {
|
|
@@ -985,7 +985,7 @@ const er = V({
|
|
|
985
985
|
icon: e.icon,
|
|
986
986
|
size: e.iconSize
|
|
987
987
|
}, null, 8, ["class", "icon", "size"])) : w("", !0),
|
|
988
|
-
c.$slots.default ? (f(),
|
|
988
|
+
c.$slots.default ? (f(), h("span", Ba, [
|
|
989
989
|
B(c.$slots, "default")
|
|
990
990
|
])) : w("", !0)
|
|
991
991
|
], 42, Ta));
|
|
@@ -995,13 +995,16 @@ const er = V({
|
|
|
995
995
|
getKey: (e) => `${e.bladeId.toLowerCase()}::${e.toolbarItem.id}`,
|
|
996
996
|
registerIntoService: (e, t) => e.registerToolbarItem(t.toolbarItem, t.bladeId)
|
|
997
997
|
});
|
|
998
|
-
function
|
|
998
|
+
function xa(e, t) {
|
|
999
999
|
const n = t.toLowerCase();
|
|
1000
1000
|
ft.preregister({
|
|
1001
1001
|
bladeId: n,
|
|
1002
1002
|
toolbarItem: e
|
|
1003
1003
|
});
|
|
1004
1004
|
}
|
|
1005
|
+
function nr({ targetBlades: e, ...t }) {
|
|
1006
|
+
e.forEach((n) => xa(t, n));
|
|
1007
|
+
}
|
|
1005
1008
|
function Kt() {
|
|
1006
1009
|
const e = Pt({
|
|
1007
1010
|
createRegistration: (s, u) => ({ bladeId: s, toolbarItem: u }),
|
|
@@ -1011,19 +1014,21 @@ function Kt() {
|
|
|
1011
1014
|
e.register(s, u);
|
|
1012
1015
|
}, n = (s, u) => {
|
|
1013
1016
|
e.unregister(s, u);
|
|
1014
|
-
}, a = (s) => {
|
|
1015
|
-
const
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1017
|
+
}, a = (s, u) => {
|
|
1018
|
+
const v = s ? s.toLowerCase() : "", b = u?.toLowerCase(), g = [...e.get(v)], d = new Set(g.map((m) => m.id)), c = (m) => {
|
|
1019
|
+
m.forEach((y) => {
|
|
1020
|
+
d.has(y.id) || (d.add(y.id), g.push(y));
|
|
1021
|
+
});
|
|
1022
|
+
};
|
|
1023
|
+
return b && b !== v && c(e.get(b)), c(e.get("*")), g;
|
|
1019
1024
|
}, i = (s) => {
|
|
1020
1025
|
e.clear(s);
|
|
1021
1026
|
}, o = ({
|
|
1022
1027
|
id: s,
|
|
1023
1028
|
bladeId: u,
|
|
1024
|
-
toolbarItem:
|
|
1029
|
+
toolbarItem: v
|
|
1025
1030
|
}) => {
|
|
1026
|
-
e.update(s, u,
|
|
1031
|
+
e.update(s, u, v);
|
|
1027
1032
|
}, l = {
|
|
1028
1033
|
registerToolbarItem: t,
|
|
1029
1034
|
unregisterToolbarItem: n,
|
|
@@ -1035,45 +1040,45 @@ function Kt() {
|
|
|
1035
1040
|
};
|
|
1036
1041
|
return ft.replayInto(l), l;
|
|
1037
1042
|
}
|
|
1038
|
-
const
|
|
1043
|
+
const Ma = "fallback-blade-id";
|
|
1039
1044
|
let et = null;
|
|
1040
|
-
const
|
|
1045
|
+
const Na = Ye({
|
|
1041
1046
|
key: Tt,
|
|
1042
1047
|
create: Kt,
|
|
1043
1048
|
bus: ft,
|
|
1044
1049
|
name: "ToolbarService"
|
|
1045
1050
|
});
|
|
1046
|
-
function
|
|
1047
|
-
return
|
|
1051
|
+
function ar() {
|
|
1052
|
+
return Na.provide();
|
|
1048
1053
|
}
|
|
1049
|
-
function
|
|
1054
|
+
function lr(e = {}) {
|
|
1050
1055
|
const { autoCleanup: t = !0 } = e, n = X(Tt, null);
|
|
1051
1056
|
!n && !et && (et = Kt());
|
|
1052
1057
|
const a = n || et;
|
|
1053
1058
|
if (!a)
|
|
1054
1059
|
throw new Error("Toolbar service is not available");
|
|
1055
|
-
const i = X(Ct, void 0), o = O(() => i?.value?.id ??
|
|
1056
|
-
a.registerToolbarItem(c, l(
|
|
1057
|
-
}, u = (c,
|
|
1058
|
-
a.unregisterToolbarItem(c, l(
|
|
1059
|
-
},
|
|
1060
|
-
a.updateToolbarItem({ id: c, bladeId: l(
|
|
1061
|
-
}, b = (c) => a.getToolbarItems(l(c)),
|
|
1060
|
+
const i = X(Ct, void 0), o = O(() => i?.value?.id ?? Ma), l = (c) => c ?? o.value, s = (c, m) => {
|
|
1061
|
+
a.registerToolbarItem(c, l(m));
|
|
1062
|
+
}, u = (c, m) => {
|
|
1063
|
+
a.unregisterToolbarItem(c, l(m));
|
|
1064
|
+
}, v = (c, m, y) => {
|
|
1065
|
+
a.updateToolbarItem({ id: c, bladeId: l(y), toolbarItem: m });
|
|
1066
|
+
}, b = (c, m) => a.getToolbarItems(l(c), m), g = (c) => {
|
|
1062
1067
|
a.clearBladeToolbarItems(l(c));
|
|
1063
1068
|
};
|
|
1064
1069
|
return je() && t && it(() => {
|
|
1065
|
-
|
|
1070
|
+
g();
|
|
1066
1071
|
}), {
|
|
1067
1072
|
registerToolbarItem: s,
|
|
1068
1073
|
unregisterToolbarItem: u,
|
|
1069
|
-
updateToolbarItem:
|
|
1074
|
+
updateToolbarItem: v,
|
|
1070
1075
|
getToolbarItems: b,
|
|
1071
|
-
clearBladeToolbarItems:
|
|
1076
|
+
clearBladeToolbarItems: g,
|
|
1072
1077
|
isToolbarItemRegistered: a.isToolbarItemRegistered,
|
|
1073
1078
|
registeredToolbarItems: a.registeredToolbarItems
|
|
1074
1079
|
};
|
|
1075
1080
|
}
|
|
1076
|
-
const
|
|
1081
|
+
const Aa = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa = { class: "tw-sr-only" }, oe = /* @__PURE__ */ V({
|
|
1077
1082
|
__name: "vc-skeleton",
|
|
1078
1083
|
props: {
|
|
1079
1084
|
variant: { default: "text" },
|
|
@@ -1092,7 +1097,7 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1092
1097
|
if (i !== void 0)
|
|
1093
1098
|
return typeof i == "number" ? `${i}px` : i;
|
|
1094
1099
|
}
|
|
1095
|
-
return (i, o) => e.variant === "text" ? (f(),
|
|
1100
|
+
return (i, o) => e.variant === "text" ? (f(), h("div", {
|
|
1096
1101
|
key: 0,
|
|
1097
1102
|
class: G(["vc-skeleton", {
|
|
1098
1103
|
"vc-skeleton--animated": e.animated
|
|
@@ -1101,8 +1106,8 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1101
1106
|
"aria-busy": "true",
|
|
1102
1107
|
"aria-label": e.ariaLabel
|
|
1103
1108
|
}, [
|
|
1104
|
-
C("span",
|
|
1105
|
-
(f(!0),
|
|
1109
|
+
C("span", Da, M(e.ariaLabel), 1),
|
|
1110
|
+
(f(!0), h(Ce, null, rt(e.rows, (l) => (f(), h("div", {
|
|
1106
1111
|
key: l,
|
|
1107
1112
|
class: "vc-skeleton__row",
|
|
1108
1113
|
style: Ve({
|
|
@@ -1110,7 +1115,7 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1110
1115
|
}),
|
|
1111
1116
|
"aria-hidden": "true"
|
|
1112
1117
|
}, null, 4))), 128))
|
|
1113
|
-
], 10,
|
|
1118
|
+
], 10, Aa)) : (f(), h("div", {
|
|
1114
1119
|
key: 1,
|
|
1115
1120
|
class: G(["vc-skeleton__shape", [`vc-skeleton__shape--${e.variant}`, { "tw-animate-pulse": e.animated }]]),
|
|
1116
1121
|
style: Ve({
|
|
@@ -1121,10 +1126,10 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1121
1126
|
"aria-busy": "true",
|
|
1122
1127
|
"aria-label": e.ariaLabel
|
|
1123
1128
|
}, [
|
|
1124
|
-
C("span",
|
|
1125
|
-
], 14,
|
|
1129
|
+
C("span", Pa, M(e.ariaLabel), 1)
|
|
1130
|
+
], 14, Va));
|
|
1126
1131
|
}
|
|
1127
|
-
}),
|
|
1132
|
+
}), or = /* @__PURE__ */ V({
|
|
1128
1133
|
__name: "vc-container",
|
|
1129
1134
|
props: {
|
|
1130
1135
|
shadow: { type: Boolean },
|
|
@@ -1144,7 +1149,7 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1144
1149
|
}), t({
|
|
1145
1150
|
scrollTop: l,
|
|
1146
1151
|
component: i
|
|
1147
|
-
}), (u,
|
|
1152
|
+
}), (u, v) => (f(), D(st(e.ariaLabel ? "section" : "div"), {
|
|
1148
1153
|
class: G([
|
|
1149
1154
|
"vc-container",
|
|
1150
1155
|
{
|
|
@@ -1168,14 +1173,14 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1168
1173
|
_: 3
|
|
1169
1174
|
}, 8, ["class", "aria-label"]));
|
|
1170
1175
|
}
|
|
1171
|
-
}),
|
|
1176
|
+
}), za = ["id", "role"], Fa = /* @__PURE__ */ V({
|
|
1172
1177
|
__name: "vc-hint",
|
|
1173
1178
|
props: {
|
|
1174
1179
|
id: {},
|
|
1175
1180
|
error: { type: Boolean }
|
|
1176
1181
|
},
|
|
1177
1182
|
setup(e) {
|
|
1178
|
-
return (t, n) => (f(),
|
|
1183
|
+
return (t, n) => (f(), h("div", {
|
|
1179
1184
|
id: e.id,
|
|
1180
1185
|
class: G(["vc-hint", {
|
|
1181
1186
|
"vc-hint--error": e.error
|
|
@@ -1183,13 +1188,13 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1183
1188
|
role: e.error ? "alert" : void 0
|
|
1184
1189
|
}, [
|
|
1185
1190
|
B(t.$slots, "default")
|
|
1186
|
-
], 10,
|
|
1191
|
+
], 10, za));
|
|
1187
1192
|
}
|
|
1188
|
-
}), be =
|
|
1193
|
+
}), be = Fa, Ka = ["role", "tabindex", "aria-label", "onKeydown"], Ua = {
|
|
1189
1194
|
key: 0,
|
|
1190
1195
|
class: "vc-image__placeholder",
|
|
1191
1196
|
"aria-hidden": "true"
|
|
1192
|
-
},
|
|
1197
|
+
}, qa = /* @__PURE__ */ V({
|
|
1193
1198
|
__name: "vc-image",
|
|
1194
1199
|
props: {
|
|
1195
1200
|
aspect: { default: "1x1" },
|
|
@@ -1206,16 +1211,16 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1206
1211
|
emits: ["click"],
|
|
1207
1212
|
setup(e, { emit: t }) {
|
|
1208
1213
|
const n = pe("vc-image"), a = e, i = t;
|
|
1209
|
-
function o(
|
|
1210
|
-
if (!
|
|
1214
|
+
function o(g) {
|
|
1215
|
+
if (!g) return g;
|
|
1211
1216
|
try {
|
|
1212
|
-
const d = new URL(
|
|
1217
|
+
const d = new URL(g);
|
|
1213
1218
|
if (d.protocol === "http:" && window.location.protocol === "https:")
|
|
1214
1219
|
return d.protocol = "https:", d.href;
|
|
1215
1220
|
} catch {
|
|
1216
|
-
n.warn("Invalid URL:",
|
|
1221
|
+
n.warn("Invalid URL:", g);
|
|
1217
1222
|
}
|
|
1218
|
-
return
|
|
1223
|
+
return g;
|
|
1219
1224
|
}
|
|
1220
1225
|
const l = O(() => ta(a.src, a.thumbnailSize) ?? a.src), s = S(!1), u = O(() => s.value ? a.src : l.value);
|
|
1221
1226
|
Y(
|
|
@@ -1225,25 +1230,25 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1225
1230
|
}
|
|
1226
1231
|
), Y(
|
|
1227
1232
|
u,
|
|
1228
|
-
(
|
|
1229
|
-
if (!
|
|
1233
|
+
(g) => {
|
|
1234
|
+
if (!g || !a.thumbnailSize || s.value || g === a.src) return;
|
|
1230
1235
|
const d = new Image();
|
|
1231
|
-
d.src = o(
|
|
1236
|
+
d.src = o(g), d.onerror = () => {
|
|
1232
1237
|
s.value = !0;
|
|
1233
1238
|
};
|
|
1234
1239
|
},
|
|
1235
1240
|
{ immediate: !0 }
|
|
1236
1241
|
);
|
|
1237
|
-
const
|
|
1242
|
+
const v = O(() => {
|
|
1238
1243
|
if (u.value) {
|
|
1239
|
-
const
|
|
1240
|
-
return `background: url(${CSS.escape(
|
|
1244
|
+
const g = o(u.value);
|
|
1245
|
+
return `background: url(${CSS.escape(g)}) center / ${a.background} no-repeat`;
|
|
1241
1246
|
}
|
|
1242
1247
|
});
|
|
1243
1248
|
function b() {
|
|
1244
1249
|
a.clickable && i("click");
|
|
1245
1250
|
}
|
|
1246
|
-
return (
|
|
1251
|
+
return (g, d) => (f(), h("div", {
|
|
1247
1252
|
class: G(["vc-image", [`vc-image_${e.size}`]])
|
|
1248
1253
|
}, [
|
|
1249
1254
|
C("div", {
|
|
@@ -1256,33 +1261,33 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1256
1261
|
"vc-image__container--clickable": e.clickable
|
|
1257
1262
|
}
|
|
1258
1263
|
]),
|
|
1259
|
-
style: Ve(
|
|
1264
|
+
style: Ve(v.value),
|
|
1260
1265
|
role: e.clickable ? "button" : e.src && e.alt ? "img" : void 0,
|
|
1261
1266
|
tabindex: e.clickable ? 0 : void 0,
|
|
1262
|
-
"aria-label": e.alt || (e.clickable ?
|
|
1267
|
+
"aria-label": e.alt || (e.clickable ? g.$t("COMPONENTS.ATOMS.VC_IMAGE.LABEL") : void 0),
|
|
1263
1268
|
onClick: b,
|
|
1264
1269
|
onKeydown: [
|
|
1265
1270
|
_(J(b, ["prevent"]), ["enter"]),
|
|
1266
1271
|
_(J(b, ["prevent"]), ["space"])
|
|
1267
1272
|
]
|
|
1268
1273
|
}, [
|
|
1269
|
-
e.src ? w("", !0) : (f(),
|
|
1274
|
+
e.src ? w("", !0) : (f(), h("div", Ua, [
|
|
1270
1275
|
R(r(W), {
|
|
1271
1276
|
icon: e.emptyIcon,
|
|
1272
1277
|
size: "xl"
|
|
1273
1278
|
}, null, 8, ["icon"])
|
|
1274
1279
|
]))
|
|
1275
|
-
], 46,
|
|
1280
|
+
], 46, Ka)
|
|
1276
1281
|
], 2));
|
|
1277
1282
|
}
|
|
1278
|
-
}),
|
|
1283
|
+
}), Wa = { class: "vc-label__text" }, ja = { class: "vc-label__content" }, Ha = {
|
|
1279
1284
|
key: 0,
|
|
1280
1285
|
class: "vc-label__required",
|
|
1281
1286
|
"aria-hidden": "true"
|
|
1282
|
-
},
|
|
1287
|
+
}, Ga = {
|
|
1283
1288
|
key: 0,
|
|
1284
1289
|
class: "vc-label__tooltip"
|
|
1285
|
-
},
|
|
1290
|
+
}, Ya = {
|
|
1286
1291
|
key: 1,
|
|
1287
1292
|
class: "vc-label__language"
|
|
1288
1293
|
}, Xe = /* @__PURE__ */ V({
|
|
@@ -1303,13 +1308,13 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1303
1308
|
for: e.htmlFor || void 0
|
|
1304
1309
|
}, {
|
|
1305
1310
|
default: L(() => [
|
|
1306
|
-
C("div",
|
|
1307
|
-
C("span",
|
|
1311
|
+
C("div", Wa, [
|
|
1312
|
+
C("span", ja, [
|
|
1308
1313
|
B(t.$slots, "default")
|
|
1309
1314
|
]),
|
|
1310
|
-
e.required ? (f(),
|
|
1315
|
+
e.required ? (f(), h("span", Ha, "*")) : w("", !0)
|
|
1311
1316
|
]),
|
|
1312
|
-
t.$slots.tooltip ? (f(),
|
|
1317
|
+
t.$slots.tooltip ? (f(), h("span", Ga, [
|
|
1313
1318
|
R(r(Bt), { placement: "top-start" }, {
|
|
1314
1319
|
tooltip: L(() => [
|
|
1315
1320
|
B(t.$slots, "tooltip")
|
|
@@ -1324,12 +1329,12 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1324
1329
|
_: 3
|
|
1325
1330
|
})
|
|
1326
1331
|
])) : w("", !0),
|
|
1327
|
-
e.multilanguage ? (f(),
|
|
1332
|
+
e.multilanguage ? (f(), h("div", Ya, M(e.currentLanguage), 1)) : w("", !0)
|
|
1328
1333
|
]),
|
|
1329
1334
|
_: 3
|
|
1330
1335
|
}, 8, ["class", "for"]));
|
|
1331
1336
|
}
|
|
1332
|
-
}),
|
|
1337
|
+
}), Ja = ["disabled", "aria-disabled"], Xa = { class: "vc-link__text" }, Za = /* @__PURE__ */ V({
|
|
1333
1338
|
__name: "vc-link",
|
|
1334
1339
|
props: {
|
|
1335
1340
|
active: { type: Boolean },
|
|
@@ -1342,7 +1347,7 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1342
1347
|
function i() {
|
|
1343
1348
|
n.disabled || a("click");
|
|
1344
1349
|
}
|
|
1345
|
-
return (o, l) => (f(),
|
|
1350
|
+
return (o, l) => (f(), h("button", {
|
|
1346
1351
|
type: "button",
|
|
1347
1352
|
class: G(["vc-link", {
|
|
1348
1353
|
"vc-link--active": e.active,
|
|
@@ -1352,12 +1357,12 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1352
1357
|
"aria-disabled": e.disabled,
|
|
1353
1358
|
onClick: i
|
|
1354
1359
|
}, [
|
|
1355
|
-
C("span",
|
|
1360
|
+
C("span", Xa, [
|
|
1356
1361
|
B(o.$slots, "default")
|
|
1357
1362
|
])
|
|
1358
|
-
], 10,
|
|
1363
|
+
], 10, Ja));
|
|
1359
1364
|
}
|
|
1360
|
-
}),
|
|
1365
|
+
}), Qa = Za, _a = ["aria-label"], el = { class: "vc-status__content" }, tl = /* @__PURE__ */ V({
|
|
1361
1366
|
__name: "vc-status",
|
|
1362
1367
|
props: {
|
|
1363
1368
|
variant: { default: "info" },
|
|
@@ -1365,7 +1370,7 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1365
1370
|
dot: { type: Boolean, default: !1 }
|
|
1366
1371
|
},
|
|
1367
1372
|
setup(e) {
|
|
1368
|
-
return (t, n) => (f(),
|
|
1373
|
+
return (t, n) => (f(), h("div", {
|
|
1369
1374
|
class: G(["vc-status", [
|
|
1370
1375
|
`vc-status--${e.variant}`,
|
|
1371
1376
|
{
|
|
@@ -1376,18 +1381,18 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1376
1381
|
role: "status",
|
|
1377
1382
|
"aria-label": e.dot ? e.variant : void 0
|
|
1378
1383
|
}, [
|
|
1379
|
-
C("div",
|
|
1384
|
+
C("div", el, [
|
|
1380
1385
|
B(t.$slots, "default")
|
|
1381
1386
|
])
|
|
1382
|
-
], 10,
|
|
1387
|
+
], 10, _a));
|
|
1383
1388
|
}
|
|
1384
|
-
}),
|
|
1389
|
+
}), nl = ["aria-label"], al = /* @__PURE__ */ V({
|
|
1385
1390
|
__name: "vc-status-icon",
|
|
1386
1391
|
props: {
|
|
1387
1392
|
status: { type: Boolean }
|
|
1388
1393
|
},
|
|
1389
1394
|
setup(e) {
|
|
1390
|
-
return (t, n) => (f(),
|
|
1395
|
+
return (t, n) => (f(), h("div", {
|
|
1391
1396
|
class: "vc-status-icon",
|
|
1392
1397
|
role: "img",
|
|
1393
1398
|
"aria-label": e.status ? "Active" : "Inactive"
|
|
@@ -1403,9 +1408,9 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1403
1408
|
class: "vc-status-icon__icon vc-status-icon__icon--inactive",
|
|
1404
1409
|
"aria-hidden": "true"
|
|
1405
1410
|
}))
|
|
1406
|
-
], 8,
|
|
1411
|
+
], 8, nl));
|
|
1407
1412
|
}
|
|
1408
|
-
}),
|
|
1413
|
+
}), ll = ["aria-label"], St = 40, ol = /* @__PURE__ */ V({
|
|
1409
1414
|
__name: "vc-scrollable-container",
|
|
1410
1415
|
props: {
|
|
1411
1416
|
speed: { default: void 0 }
|
|
@@ -1413,22 +1418,22 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1413
1418
|
setup(e, { expose: t }) {
|
|
1414
1419
|
const n = e, a = S(null), i = {};
|
|
1415
1420
|
n.speed !== void 0 && (i.speed = n.speed);
|
|
1416
|
-
const { canScrollUp: o, canScrollDown: l, startScroll: s, stopScroll: u, updateScrollState:
|
|
1421
|
+
const { canScrollUp: o, canScrollDown: l, startScroll: s, stopScroll: u, updateScrollState: v } = ra(
|
|
1417
1422
|
a,
|
|
1418
1423
|
i
|
|
1419
1424
|
);
|
|
1420
|
-
function b(
|
|
1425
|
+
function b(g) {
|
|
1421
1426
|
if (!a.value) return;
|
|
1422
|
-
const d =
|
|
1427
|
+
const d = g === "up" ? -St : St;
|
|
1423
1428
|
a.value.scrollBy({ top: d, behavior: "smooth" });
|
|
1424
1429
|
}
|
|
1425
1430
|
return t({
|
|
1426
1431
|
viewportRef: a,
|
|
1427
|
-
updateScrollState:
|
|
1428
|
-
}), (
|
|
1432
|
+
updateScrollState: v
|
|
1433
|
+
}), (g, d) => (f(), h("div", {
|
|
1429
1434
|
class: "vc-scrollable-container",
|
|
1430
1435
|
role: "region",
|
|
1431
|
-
"aria-label":
|
|
1436
|
+
"aria-label": g.$t("COMPONENTS.ATOMS.VC_SCROLLABLE_CONTAINER.LABEL")
|
|
1432
1437
|
}, [
|
|
1433
1438
|
C("div", {
|
|
1434
1439
|
class: G(["vc-scrollable-container__arrow", { "vc-scrollable-container__arrow--hidden": !r(o) }]),
|
|
@@ -1437,7 +1442,7 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1437
1442
|
onPointerleave: d[1] || (d[1] = //@ts-ignore
|
|
1438
1443
|
(...c) => r(u) && r(u)(...c))
|
|
1439
1444
|
}, [
|
|
1440
|
-
B(
|
|
1445
|
+
B(g.$slots, "arrow-up", {}, () => [
|
|
1441
1446
|
R(r(W), {
|
|
1442
1447
|
icon: "lucide-chevron-up",
|
|
1443
1448
|
size: "xs"
|
|
@@ -1450,13 +1455,13 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1450
1455
|
class: "vc-scrollable-container__viewport",
|
|
1451
1456
|
tabindex: "0",
|
|
1452
1457
|
onScroll: d[2] || (d[2] = //@ts-ignore
|
|
1453
|
-
(...c) => r(
|
|
1458
|
+
(...c) => r(v) && r(v)(...c)),
|
|
1454
1459
|
onKeydown: [
|
|
1455
1460
|
d[3] || (d[3] = _(J((c) => b("up"), ["prevent"]), ["up"])),
|
|
1456
1461
|
d[4] || (d[4] = _(J((c) => b("down"), ["prevent"]), ["down"]))
|
|
1457
1462
|
]
|
|
1458
1463
|
}, [
|
|
1459
|
-
B(
|
|
1464
|
+
B(g.$slots, "default")
|
|
1460
1465
|
], 544),
|
|
1461
1466
|
C("div", {
|
|
1462
1467
|
class: G(["vc-scrollable-container__arrow", { "vc-scrollable-container__arrow--hidden": !r(l) }]),
|
|
@@ -1465,36 +1470,36 @@ const Na = ["aria-label"], Aa = { class: "tw-sr-only" }, Da = ["aria-label"], Va
|
|
|
1465
1470
|
onPointerleave: d[6] || (d[6] = //@ts-ignore
|
|
1466
1471
|
(...c) => r(u) && r(u)(...c))
|
|
1467
1472
|
}, [
|
|
1468
|
-
B(
|
|
1473
|
+
B(g.$slots, "arrow-down", {}, () => [
|
|
1469
1474
|
R(r(W), {
|
|
1470
1475
|
icon: "lucide-chevron-down",
|
|
1471
1476
|
size: "xs"
|
|
1472
1477
|
})
|
|
1473
1478
|
])
|
|
1474
1479
|
], 34)
|
|
1475
|
-
], 8,
|
|
1480
|
+
], 8, ll));
|
|
1476
1481
|
}
|
|
1477
1482
|
}), vt = qe(/* @__PURE__ */ new Map());
|
|
1478
|
-
function
|
|
1483
|
+
function il(e) {
|
|
1479
1484
|
return e?.map((t) => t.toLowerCase());
|
|
1480
1485
|
}
|
|
1481
|
-
function
|
|
1486
|
+
function ir(e) {
|
|
1482
1487
|
vt.set(e.id, {
|
|
1483
1488
|
...e,
|
|
1484
|
-
targetBlades:
|
|
1489
|
+
targetBlades: il(e.targetBlades)
|
|
1485
1490
|
});
|
|
1486
1491
|
}
|
|
1487
|
-
function
|
|
1492
|
+
function rl(e) {
|
|
1488
1493
|
const t = e.toLowerCase();
|
|
1489
1494
|
return Array.from(vt.values()).filter((n) => !n.targetBlades || n.targetBlades.includes(t)).map((n) => ({ ...n, targetBlades: n.targetBlades ? [...n.targetBlades] : void 0 }));
|
|
1490
1495
|
}
|
|
1491
|
-
function
|
|
1496
|
+
function sl() {
|
|
1492
1497
|
return Array.from(vt.values()).map((e) => ({
|
|
1493
1498
|
...e,
|
|
1494
1499
|
targetBlades: e.targetBlades ? [...e.targetBlades] : void 0
|
|
1495
1500
|
}));
|
|
1496
1501
|
}
|
|
1497
|
-
function
|
|
1502
|
+
function ul(e) {
|
|
1498
1503
|
return On(e);
|
|
1499
1504
|
}
|
|
1500
1505
|
const Ut = Be({
|
|
@@ -1502,14 +1507,14 @@ const Ut = Be({
|
|
|
1502
1507
|
getKey: (e) => `${e.bladeId.toLowerCase()}::${e.widget.id}`,
|
|
1503
1508
|
registerIntoService: (e, t) => e.registerWidget(t.widget, t.bladeId)
|
|
1504
1509
|
});
|
|
1505
|
-
function
|
|
1510
|
+
function rr(e, t) {
|
|
1506
1511
|
const n = t.toLowerCase();
|
|
1507
1512
|
Ut.preregister({
|
|
1508
1513
|
bladeId: n,
|
|
1509
1514
|
widget: e
|
|
1510
1515
|
});
|
|
1511
1516
|
}
|
|
1512
|
-
function
|
|
1517
|
+
function sr() {
|
|
1513
1518
|
const e = Pt({
|
|
1514
1519
|
createRegistration: (a, i) => ({ bladeId: a, widget: i }),
|
|
1515
1520
|
getRegistrationBladeId: (a) => a.bladeId,
|
|
@@ -1519,29 +1524,29 @@ function rr() {
|
|
|
1519
1524
|
unregisterWidget: (a, i) => e.unregister(a, i),
|
|
1520
1525
|
getWidgets: (a) => e.get(a),
|
|
1521
1526
|
updateWidget: ({ id: a, bladeId: i, widget: o }) => e.update(a, i, o),
|
|
1522
|
-
getExternalWidgetsForBlade: (a) =>
|
|
1523
|
-
getAllExternalWidgets:
|
|
1524
|
-
cloneWidget:
|
|
1527
|
+
getExternalWidgetsForBlade: (a) => rl(a.toLowerCase()),
|
|
1528
|
+
getAllExternalWidgets: sl,
|
|
1529
|
+
cloneWidget: ul
|
|
1525
1530
|
};
|
|
1526
1531
|
return Ut.replayInto(n), n;
|
|
1527
1532
|
}
|
|
1528
|
-
const
|
|
1533
|
+
const cl = pe("use-theme"), ke = S([
|
|
1529
1534
|
{ key: "light", localizationKey: "CORE.THEMES.LIGHT" },
|
|
1530
1535
|
{ key: "dark", localizationKey: "CORE.THEMES.DARK" }
|
|
1531
|
-
]),
|
|
1536
|
+
]), ur = Rn(() => {
|
|
1532
1537
|
const { t: e } = Oe.global;
|
|
1533
|
-
function t(
|
|
1534
|
-
(Array.isArray(
|
|
1535
|
-
ke.value.some((
|
|
1538
|
+
function t(v) {
|
|
1539
|
+
(Array.isArray(v) ? v : [v]).forEach((b) => {
|
|
1540
|
+
ke.value.some((g) => g.key === b.key) || ke.value.push(b);
|
|
1536
1541
|
});
|
|
1537
1542
|
}
|
|
1538
|
-
function n(
|
|
1539
|
-
(Array.isArray(
|
|
1540
|
-
const
|
|
1541
|
-
|
|
1543
|
+
function n(v) {
|
|
1544
|
+
(Array.isArray(v) ? v : [v]).forEach((b) => {
|
|
1545
|
+
const g = ke.value.findIndex((d) => d.key === b);
|
|
1546
|
+
g >= 0 && ke.value.splice(g, 1);
|
|
1542
1547
|
});
|
|
1543
1548
|
}
|
|
1544
|
-
const a = O(() => ke.value.map((
|
|
1549
|
+
const a = O(() => ke.value.map((v) => v.key)), i = Ln({
|
|
1545
1550
|
attribute: "data-theme",
|
|
1546
1551
|
emitAuto: !0,
|
|
1547
1552
|
initialValue: "light",
|
|
@@ -1549,7 +1554,7 @@ const ul = pe("use-theme"), ke = S([
|
|
|
1549
1554
|
modes: {
|
|
1550
1555
|
// Dynamically build modes from registered theme keys
|
|
1551
1556
|
...a.value.reduce(
|
|
1552
|
-
(
|
|
1557
|
+
(v, b) => (v[b] = b, v),
|
|
1553
1558
|
{}
|
|
1554
1559
|
)
|
|
1555
1560
|
}
|
|
@@ -1557,18 +1562,18 @@ const ul = pe("use-theme"), ke = S([
|
|
|
1557
1562
|
nt(() => {
|
|
1558
1563
|
o.value && (i.value = o.value);
|
|
1559
1564
|
});
|
|
1560
|
-
function s(
|
|
1561
|
-
a.value.includes(
|
|
1565
|
+
function s(v) {
|
|
1566
|
+
a.value.includes(v) ? o.value = v : cl.warn(`Attempted to set an unregistered theme: ${v}`);
|
|
1562
1567
|
}
|
|
1563
1568
|
const u = O(() => {
|
|
1564
|
-
const
|
|
1565
|
-
return
|
|
1569
|
+
const v = ke.value.find((b) => b.key === o.value);
|
|
1570
|
+
return v ? v.localizationKey ? e(v.localizationKey) : _e(v.key) : o.value ? _e(o.value) : "";
|
|
1566
1571
|
});
|
|
1567
1572
|
return {
|
|
1568
1573
|
themes: O(
|
|
1569
|
-
() => ke.value.map((
|
|
1570
|
-
key:
|
|
1571
|
-
name:
|
|
1574
|
+
() => ke.value.map((v) => ({
|
|
1575
|
+
key: v.key,
|
|
1576
|
+
name: v.localizationKey ? e(v.localizationKey) : _e(v.key)
|
|
1572
1577
|
}))
|
|
1573
1578
|
),
|
|
1574
1579
|
currentThemeKey: o,
|
|
@@ -1583,15 +1588,15 @@ const ul = pe("use-theme"), ke = S([
|
|
|
1583
1588
|
getKey: (e) => e.id,
|
|
1584
1589
|
registerIntoService: (e, t) => e.registerWidget(t)
|
|
1585
1590
|
});
|
|
1586
|
-
function
|
|
1591
|
+
function cr(e) {
|
|
1587
1592
|
gt.preregister(e);
|
|
1588
1593
|
}
|
|
1589
|
-
const
|
|
1594
|
+
const dl = () => ({
|
|
1590
1595
|
widgets: qe(/* @__PURE__ */ new Map()),
|
|
1591
1596
|
layout: qe(/* @__PURE__ */ new Map())
|
|
1592
1597
|
});
|
|
1593
|
-
function
|
|
1594
|
-
const t =
|
|
1598
|
+
function fl(e = {}) {
|
|
1599
|
+
const t = dl(), n = e.hasAccess ?? (() => !0), s = {
|
|
1595
1600
|
registerWidget: (u) => {
|
|
1596
1601
|
if (t.widgets.has(u.id))
|
|
1597
1602
|
throw new Error(`Widget with id ${u.id} already registered`);
|
|
@@ -1608,10 +1613,10 @@ function dl(e = {}) {
|
|
|
1608
1613
|
position: u.position ? { ...u.position } : void 0,
|
|
1609
1614
|
props: u.props ? { ...u.props } : void 0
|
|
1610
1615
|
})),
|
|
1611
|
-
updateWidgetPosition: (u,
|
|
1616
|
+
updateWidgetPosition: (u, v) => {
|
|
1612
1617
|
if (!t.widgets.has(u))
|
|
1613
1618
|
throw new Error(`Widget with id ${u} not found`);
|
|
1614
|
-
t.layout.set(u, { ...
|
|
1619
|
+
t.layout.set(u, { ...v });
|
|
1615
1620
|
},
|
|
1616
1621
|
getLayout: () => new Map(t.layout)
|
|
1617
1622
|
};
|
|
@@ -1629,16 +1634,16 @@ const $t = pe("use-dashboard"), qt = Ye({
|
|
|
1629
1634
|
} catch (t) {
|
|
1630
1635
|
$t.warn("Permissions composable unavailable, dashboard falls back to allow-all access check", t);
|
|
1631
1636
|
}
|
|
1632
|
-
return
|
|
1637
|
+
return fl({
|
|
1633
1638
|
hasAccess: e
|
|
1634
1639
|
});
|
|
1635
1640
|
},
|
|
1636
1641
|
onMissing: () => $t.error("Dashboard service not found")
|
|
1637
1642
|
});
|
|
1638
|
-
function
|
|
1643
|
+
function dr() {
|
|
1639
1644
|
return qt.provide();
|
|
1640
1645
|
}
|
|
1641
|
-
function
|
|
1646
|
+
function fr() {
|
|
1642
1647
|
return qt.use();
|
|
1643
1648
|
}
|
|
1644
1649
|
const Wt = Be({
|
|
@@ -1647,10 +1652,10 @@ const Wt = Be({
|
|
|
1647
1652
|
registerIntoService: (e, t) => e.register(t),
|
|
1648
1653
|
unregisterFromService: (e, t) => e.unregister(t)
|
|
1649
1654
|
});
|
|
1650
|
-
function
|
|
1655
|
+
function vr(e) {
|
|
1651
1656
|
Wt.preregister(e);
|
|
1652
1657
|
}
|
|
1653
|
-
function
|
|
1658
|
+
function gr() {
|
|
1654
1659
|
return zt({
|
|
1655
1660
|
bus: Wt,
|
|
1656
1661
|
createItem: (e, t) => ({
|
|
@@ -1674,10 +1679,10 @@ const mt = Be({
|
|
|
1674
1679
|
registerIntoService: (e, t) => e.register(t),
|
|
1675
1680
|
unregisterFromService: (e, t) => e.unregister(t)
|
|
1676
1681
|
});
|
|
1677
|
-
function
|
|
1682
|
+
function mr(e) {
|
|
1678
1683
|
mt.preregister(e);
|
|
1679
1684
|
}
|
|
1680
|
-
function
|
|
1685
|
+
function vl() {
|
|
1681
1686
|
return zt({
|
|
1682
1687
|
bus: mt,
|
|
1683
1688
|
createItem: (e, t) => ({
|
|
@@ -1690,26 +1695,26 @@ function fl() {
|
|
|
1690
1695
|
getId: (e) => e.id || ""
|
|
1691
1696
|
});
|
|
1692
1697
|
}
|
|
1693
|
-
const
|
|
1698
|
+
const gl = pe("use-settings-menu"), jt = Ye({
|
|
1694
1699
|
key: In,
|
|
1695
|
-
create:
|
|
1700
|
+
create: vl,
|
|
1696
1701
|
bus: mt,
|
|
1697
1702
|
name: "SettingsMenuService",
|
|
1698
|
-
onMissing: () =>
|
|
1703
|
+
onMissing: () => gl.error("Settings menu service not found")
|
|
1699
1704
|
});
|
|
1700
|
-
function
|
|
1705
|
+
function pr() {
|
|
1701
1706
|
return jt.provide();
|
|
1702
1707
|
}
|
|
1703
|
-
function
|
|
1708
|
+
function br() {
|
|
1704
1709
|
return jt.use();
|
|
1705
1710
|
}
|
|
1706
|
-
const
|
|
1711
|
+
const ml = {
|
|
1707
1712
|
key: 0,
|
|
1708
1713
|
class: "vc-date-picker vc-date-picker--skeleton"
|
|
1709
|
-
},
|
|
1714
|
+
}, pl = { class: "vc-date-picker__field-container" }, bl = { class: "vc-date-picker__field" }, yl = ["aria-label"], hl = {
|
|
1710
1715
|
key: 0,
|
|
1711
1716
|
class: "vc-date-picker__loading"
|
|
1712
|
-
},
|
|
1717
|
+
}, Il = { key: 0 }, kl = { key: 1 }, j = "COMPONENTS.MOLECULES.VC_DATE_PICKER.ARIA", Sl = /* @__PURE__ */ V({
|
|
1713
1718
|
__name: "vc-date-picker",
|
|
1714
1719
|
props: {
|
|
1715
1720
|
modelValue: {},
|
|
@@ -1734,7 +1739,7 @@ const gl = {
|
|
|
1734
1739
|
},
|
|
1735
1740
|
emits: ["update:modelValue", "blur", "focus"],
|
|
1736
1741
|
setup(e, { emit: t }) {
|
|
1737
|
-
const n = e, a = t, i = we(), { t: o } = ye({ useScope: "global" }), { isMobile: l, isDesktop: s } = Je(), { labelId: u, errorId:
|
|
1742
|
+
const n = e, a = t, i = we(), { t: o } = ye({ useScope: "global" }), { isMobile: l, isDesktop: s } = Je(), { labelId: u, errorId: v, hintId: b, invalid: g, resolvedDisabled: d, ariaRequired: c, ariaDescribedBy: m } = Ge(n), y = S(!1), T = window.navigator.language, p = S(n.modelValue), $ = S(null), P = O(() => n.type === "date" && "9999-12-31" || void 0), U = (() => {
|
|
1738
1743
|
const k = new Intl.DateTimeFormat(T, { hour: "numeric" }).format();
|
|
1739
1744
|
return Number.isInteger(Number(k));
|
|
1740
1745
|
})(), ne = O(() => {
|
|
@@ -1802,13 +1807,13 @@ const gl = {
|
|
|
1802
1807
|
Y(
|
|
1803
1808
|
() => n.modelValue,
|
|
1804
1809
|
(k) => {
|
|
1805
|
-
|
|
1810
|
+
p.value !== k && (p.value = k);
|
|
1806
1811
|
}
|
|
1807
|
-
), Y(
|
|
1812
|
+
), Y(p, (k, E) => {
|
|
1808
1813
|
k !== E && k !== n.modelValue && ($.value = null, a("update:modelValue", k));
|
|
1809
1814
|
});
|
|
1810
1815
|
function fe() {
|
|
1811
|
-
|
|
1816
|
+
p.value = null, a("update:modelValue", null);
|
|
1812
1817
|
}
|
|
1813
1818
|
function ie(k) {
|
|
1814
1819
|
$.value = k;
|
|
@@ -1817,12 +1822,12 @@ const gl = {
|
|
|
1817
1822
|
$.value = null;
|
|
1818
1823
|
}
|
|
1819
1824
|
function H(k) {
|
|
1820
|
-
$.value != null && (
|
|
1825
|
+
$.value != null && (p.value = [$.value, null], $.value = null), y.value = !1, a("blur", k);
|
|
1821
1826
|
}
|
|
1822
1827
|
function A() {
|
|
1823
|
-
|
|
1828
|
+
y.value = !0, a("focus");
|
|
1824
1829
|
}
|
|
1825
|
-
return (k, E) => r(i) ? (f(),
|
|
1830
|
+
return (k, E) => r(i) ? (f(), h("div", ml, [
|
|
1826
1831
|
e.label ? (f(), D(r(oe), {
|
|
1827
1832
|
key: 0,
|
|
1828
1833
|
variant: "block",
|
|
@@ -1834,13 +1839,13 @@ const gl = {
|
|
|
1834
1839
|
width: "100%",
|
|
1835
1840
|
height: 36
|
|
1836
1841
|
})
|
|
1837
|
-
])) : (f(),
|
|
1842
|
+
])) : (f(), h("div", {
|
|
1838
1843
|
key: 1,
|
|
1839
1844
|
class: G(["vc-date-picker", [
|
|
1840
1845
|
{
|
|
1841
|
-
"vc-date-picker--error": r(
|
|
1846
|
+
"vc-date-picker--error": r(g),
|
|
1842
1847
|
"vc-date-picker--disabled": r(d),
|
|
1843
|
-
"vc-date-picker--focused":
|
|
1848
|
+
"vc-date-picker--focused": y.value
|
|
1844
1849
|
}
|
|
1845
1850
|
]])
|
|
1846
1851
|
}, [
|
|
@@ -1851,7 +1856,7 @@ const gl = {
|
|
|
1851
1856
|
required: e.required,
|
|
1852
1857
|
multilanguage: e.multilanguage,
|
|
1853
1858
|
"current-language": e.currentLanguage,
|
|
1854
|
-
error: r(
|
|
1859
|
+
error: r(g)
|
|
1855
1860
|
}, se({
|
|
1856
1861
|
default: L(() => [
|
|
1857
1862
|
C("span", null, M(e.label), 1)
|
|
@@ -1872,11 +1877,11 @@ const gl = {
|
|
|
1872
1877
|
"vc-date-picker__field-wrapper--small": e.size === "small"
|
|
1873
1878
|
}])
|
|
1874
1879
|
}, [
|
|
1875
|
-
C("div",
|
|
1876
|
-
C("div",
|
|
1880
|
+
C("div", pl, [
|
|
1881
|
+
C("div", bl, [
|
|
1877
1882
|
R(r(Mn), ae({
|
|
1878
|
-
modelValue:
|
|
1879
|
-
"onUpdate:modelValue": E[0] || (E[0] = (K) =>
|
|
1883
|
+
modelValue: p.value,
|
|
1884
|
+
"onUpdate:modelValue": E[0] || (E[0] = (K) => p.value = K),
|
|
1880
1885
|
placeholder: e.placeholder || (e.type === "datetime-local" ? k.$t("COMPONENTS.MOLECULES.VC_INPUT.DATE_TIME_PLACEHOLDER") : k.$t("COMPONENTS.MOLECULES.VC_INPUT.DATE_PLACEHOLDER")),
|
|
1881
1886
|
disabled: r(d),
|
|
1882
1887
|
name: e.name,
|
|
@@ -1895,9 +1900,9 @@ const gl = {
|
|
|
1895
1900
|
}, Z.value, {
|
|
1896
1901
|
"aria-labels": Q.value,
|
|
1897
1902
|
teleport: r(s) ? "body" : void 0,
|
|
1898
|
-
"aria-invalid": r(
|
|
1903
|
+
"aria-invalid": r(g) || void 0,
|
|
1899
1904
|
"aria-required": r(c),
|
|
1900
|
-
"aria-describedby": r(
|
|
1905
|
+
"aria-describedby": r(m),
|
|
1901
1906
|
"aria-labelledby": e.label ? r(u) : void 0,
|
|
1902
1907
|
class: "vc-date-picker__input",
|
|
1903
1908
|
tabindex: "0",
|
|
@@ -1908,7 +1913,7 @@ const gl = {
|
|
|
1908
1913
|
onTooltipOpen: A,
|
|
1909
1914
|
onTooltipClose: H
|
|
1910
1915
|
}), null, 16, ["modelValue", "placeholder", "disabled", "name", "autofocus", "max-date", "enable-time-picker", "locale", "teleport-center", "is24", "aria-labels", "teleport", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby"]),
|
|
1911
|
-
e.clearable &&
|
|
1916
|
+
e.clearable && p.value && !e.disabled ? (f(), h("button", {
|
|
1912
1917
|
key: 0,
|
|
1913
1918
|
type: "button",
|
|
1914
1919
|
class: "vc-date-picker__clear",
|
|
@@ -1919,9 +1924,9 @@ const gl = {
|
|
|
1919
1924
|
size: "xs",
|
|
1920
1925
|
icon: "lucide-x"
|
|
1921
1926
|
})
|
|
1922
|
-
], 8,
|
|
1927
|
+
], 8, yl)) : w("", !0)
|
|
1923
1928
|
]),
|
|
1924
|
-
e.loading ? (f(),
|
|
1929
|
+
e.loading ? (f(), h("div", hl, [
|
|
1925
1930
|
R(r(W), {
|
|
1926
1931
|
icon: "lucide-loader-2",
|
|
1927
1932
|
class: "vc-date-picker__loading-icon",
|
|
@@ -1935,9 +1940,9 @@ const gl = {
|
|
|
1935
1940
|
mode: "out-in"
|
|
1936
1941
|
}, {
|
|
1937
1942
|
default: L(() => [
|
|
1938
|
-
r(
|
|
1943
|
+
r(g) && e.errorMessage ? (f(), h("div", Il, [
|
|
1939
1944
|
R(r(be), {
|
|
1940
|
-
id: r(
|
|
1945
|
+
id: r(v),
|
|
1941
1946
|
class: "vc-date-picker__hint-error",
|
|
1942
1947
|
error: !0
|
|
1943
1948
|
}, {
|
|
@@ -1946,7 +1951,7 @@ const gl = {
|
|
|
1946
1951
|
]),
|
|
1947
1952
|
_: 1
|
|
1948
1953
|
}, 8, ["id"])
|
|
1949
|
-
])) : (f(),
|
|
1954
|
+
])) : (f(), h("div", kl, [
|
|
1950
1955
|
e.hint ? (f(), D(r(be), {
|
|
1951
1956
|
key: 0,
|
|
1952
1957
|
id: r(b),
|
|
@@ -1963,13 +1968,13 @@ const gl = {
|
|
|
1963
1968
|
})
|
|
1964
1969
|
], 2));
|
|
1965
1970
|
}
|
|
1966
|
-
}),
|
|
1971
|
+
}), $l = {
|
|
1967
1972
|
key: 0,
|
|
1968
1973
|
class: "vc-color-input vc-color-input--skeleton"
|
|
1969
|
-
},
|
|
1974
|
+
}, El = { class: "vc-color-input__field-container" }, Ol = { class: "vc-color-input__field" }, wl = ["id", "placeholder", "disabled", "name", "autofocus", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby", "aria-label"], Ll = { class: "vc-color-input__color-container" }, Cl = ["aria-label"], Tl = ["value"], Bl = ["aria-label"], Rl = {
|
|
1970
1975
|
key: 0,
|
|
1971
1976
|
class: "vc-color-input__loading"
|
|
1972
|
-
},
|
|
1977
|
+
}, xl = { key: 0 }, Ml = { key: 1 }, Nl = /* @__PURE__ */ V({
|
|
1973
1978
|
__name: "vc-color-input",
|
|
1974
1979
|
props: {
|
|
1975
1980
|
modelValue: {},
|
|
@@ -1996,12 +2001,12 @@ const gl = {
|
|
|
1996
2001
|
fieldId: l,
|
|
1997
2002
|
labelId: s,
|
|
1998
2003
|
errorId: u,
|
|
1999
|
-
hintId:
|
|
2004
|
+
hintId: v,
|
|
2000
2005
|
invalid: b,
|
|
2001
|
-
resolvedDisabled:
|
|
2006
|
+
resolvedDisabled: g,
|
|
2002
2007
|
ariaRequired: d,
|
|
2003
2008
|
ariaDescribedBy: c
|
|
2004
|
-
} = Ge(i),
|
|
2009
|
+
} = Ge(i), m = S(!1), y = S(!1), T = S(), p = S(), $ = S(i.modelValue ?? ""), P = S("");
|
|
2005
2010
|
function U(F) {
|
|
2006
2011
|
if (!F || typeof F != "string") {
|
|
2007
2012
|
P.value = "";
|
|
@@ -2018,17 +2023,17 @@ const gl = {
|
|
|
2018
2023
|
Y(
|
|
2019
2024
|
() => i.modelValue,
|
|
2020
2025
|
(F) => {
|
|
2021
|
-
|
|
2022
|
-
U(F ?? ""),
|
|
2026
|
+
y.value || (y.value = !0, $.value = F ?? "", Ee(() => {
|
|
2027
|
+
U(F ?? ""), y.value = !1;
|
|
2023
2028
|
}));
|
|
2024
2029
|
},
|
|
2025
2030
|
{ immediate: !0 }
|
|
2026
2031
|
), Y(P, (F) => {
|
|
2027
|
-
F &&
|
|
2032
|
+
F && p.value && (p.value.value = F);
|
|
2028
2033
|
});
|
|
2029
2034
|
function ne() {
|
|
2030
|
-
|
|
2031
|
-
U($.value),
|
|
2035
|
+
y.value || (y.value = !0, o("update:modelValue", $.value || null), Ee(() => {
|
|
2036
|
+
U($.value), y.value = !1;
|
|
2032
2037
|
}));
|
|
2033
2038
|
}
|
|
2034
2039
|
function Z(F) {
|
|
@@ -2039,21 +2044,21 @@ const gl = {
|
|
|
2039
2044
|
}
|
|
2040
2045
|
}
|
|
2041
2046
|
function le() {
|
|
2042
|
-
|
|
2047
|
+
p.value?.click();
|
|
2043
2048
|
}
|
|
2044
2049
|
function Q() {
|
|
2045
2050
|
$.value = "", P.value = "", o("update:modelValue", null);
|
|
2046
2051
|
}
|
|
2047
2052
|
function ce(F) {
|
|
2048
|
-
|
|
2053
|
+
m.value = !1, o("blur", F);
|
|
2049
2054
|
}
|
|
2050
2055
|
function fe() {
|
|
2051
|
-
|
|
2056
|
+
m.value = !0, o("focus");
|
|
2052
2057
|
}
|
|
2053
2058
|
function ie() {
|
|
2054
2059
|
T.value?.focus();
|
|
2055
2060
|
}
|
|
2056
|
-
return t({ focus: ie }), (F, H) => r(a) ? (f(),
|
|
2061
|
+
return t({ focus: ie }), (F, H) => r(a) ? (f(), h("div", $l, [
|
|
2057
2062
|
e.label ? (f(), D(r(oe), {
|
|
2058
2063
|
key: 0,
|
|
2059
2064
|
variant: "block",
|
|
@@ -2065,13 +2070,13 @@ const gl = {
|
|
|
2065
2070
|
width: "100%",
|
|
2066
2071
|
height: 36
|
|
2067
2072
|
})
|
|
2068
|
-
])) : (f(),
|
|
2073
|
+
])) : (f(), h("div", {
|
|
2069
2074
|
key: 1,
|
|
2070
2075
|
class: G(["vc-color-input", [
|
|
2071
2076
|
{
|
|
2072
2077
|
"vc-color-input--error": r(b),
|
|
2073
|
-
"vc-color-input--disabled": r(
|
|
2074
|
-
"vc-color-input--focused":
|
|
2078
|
+
"vc-color-input--disabled": r(g),
|
|
2079
|
+
"vc-color-input--focused": m.value
|
|
2075
2080
|
}
|
|
2076
2081
|
]])
|
|
2077
2082
|
}, [
|
|
@@ -2104,8 +2109,8 @@ const gl = {
|
|
|
2104
2109
|
"vc-color-input__field-wrapper--small": e.size === "small"
|
|
2105
2110
|
}])
|
|
2106
2111
|
}, [
|
|
2107
|
-
C("div",
|
|
2108
|
-
C("div",
|
|
2112
|
+
C("div", El, [
|
|
2113
|
+
C("div", Ol, [
|
|
2109
2114
|
ut(C("input", {
|
|
2110
2115
|
id: r(l),
|
|
2111
2116
|
ref_key: "inputRef",
|
|
@@ -2113,7 +2118,7 @@ const gl = {
|
|
|
2113
2118
|
"onUpdate:modelValue": H[0] || (H[0] = (A) => $.value = A),
|
|
2114
2119
|
placeholder: e.placeholder,
|
|
2115
2120
|
type: "text",
|
|
2116
|
-
disabled: r(
|
|
2121
|
+
disabled: r(g),
|
|
2117
2122
|
name: e.name,
|
|
2118
2123
|
autofocus: e.autofocus,
|
|
2119
2124
|
"aria-invalid": r(b) || void 0,
|
|
@@ -2126,29 +2131,29 @@ const gl = {
|
|
|
2126
2131
|
onBlur: ce,
|
|
2127
2132
|
onFocus: fe,
|
|
2128
2133
|
onInput: ne
|
|
2129
|
-
}, null, 40,
|
|
2134
|
+
}, null, 40, wl), [
|
|
2130
2135
|
[on, $.value]
|
|
2131
2136
|
]),
|
|
2132
|
-
C("div",
|
|
2137
|
+
C("div", Ll, [
|
|
2133
2138
|
C("button", {
|
|
2134
2139
|
type: "button",
|
|
2135
2140
|
class: "vc-color-input__color-square",
|
|
2136
2141
|
style: Ve({ backgroundColor: P.value || "#ffffff" }),
|
|
2137
2142
|
"aria-label": `Pick color${P.value ? ": " + P.value : ""}`,
|
|
2138
2143
|
onClick: le
|
|
2139
|
-
}, null, 12,
|
|
2144
|
+
}, null, 12, Cl),
|
|
2140
2145
|
C("input", {
|
|
2141
2146
|
ref_key: "colorPickerRef",
|
|
2142
|
-
ref:
|
|
2147
|
+
ref: p,
|
|
2143
2148
|
type: "color",
|
|
2144
2149
|
value: P.value,
|
|
2145
2150
|
class: "vc-color-input__color-picker-hidden",
|
|
2146
2151
|
tabindex: "-1",
|
|
2147
2152
|
"aria-hidden": "true",
|
|
2148
2153
|
onChange: Z
|
|
2149
|
-
}, null, 40,
|
|
2154
|
+
}, null, 40, Tl)
|
|
2150
2155
|
]),
|
|
2151
|
-
e.clearable && $.value && !e.disabled ? (f(),
|
|
2156
|
+
e.clearable && $.value && !e.disabled ? (f(), h("button", {
|
|
2152
2157
|
key: 0,
|
|
2153
2158
|
type: "button",
|
|
2154
2159
|
class: "vc-color-input__clear",
|
|
@@ -2159,9 +2164,9 @@ const gl = {
|
|
|
2159
2164
|
size: "xs",
|
|
2160
2165
|
icon: "lucide-x"
|
|
2161
2166
|
})
|
|
2162
|
-
], 8,
|
|
2167
|
+
], 8, Bl)) : w("", !0)
|
|
2163
2168
|
]),
|
|
2164
|
-
e.loading ? (f(),
|
|
2169
|
+
e.loading ? (f(), h("div", Rl, [
|
|
2165
2170
|
R(r(W), {
|
|
2166
2171
|
icon: "lucide-loader-2",
|
|
2167
2172
|
class: "vc-color-input__loading-icon",
|
|
@@ -2175,7 +2180,7 @@ const gl = {
|
|
|
2175
2180
|
mode: "out-in"
|
|
2176
2181
|
}, {
|
|
2177
2182
|
default: L(() => [
|
|
2178
|
-
r(b) && e.errorMessage ? (f(),
|
|
2183
|
+
r(b) && e.errorMessage ? (f(), h("div", xl, [
|
|
2179
2184
|
R(r(be), {
|
|
2180
2185
|
id: r(u),
|
|
2181
2186
|
class: "vc-color-input__hint-error",
|
|
@@ -2186,10 +2191,10 @@ const gl = {
|
|
|
2186
2191
|
]),
|
|
2187
2192
|
_: 1
|
|
2188
2193
|
}, 8, ["id"])
|
|
2189
|
-
])) : (f(),
|
|
2194
|
+
])) : (f(), h("div", Ml, [
|
|
2190
2195
|
e.hint ? (f(), D(r(be), {
|
|
2191
2196
|
key: 0,
|
|
2192
|
-
id: r(
|
|
2197
|
+
id: r(v),
|
|
2193
2198
|
class: "vc-color-input__desc"
|
|
2194
2199
|
}, {
|
|
2195
2200
|
default: L(() => [
|
|
@@ -2203,28 +2208,28 @@ const gl = {
|
|
|
2203
2208
|
})
|
|
2204
2209
|
], 2));
|
|
2205
2210
|
}
|
|
2206
|
-
}),
|
|
2211
|
+
}), Al = { class: "vc-input__container" }, Dl = {
|
|
2207
2212
|
key: 0,
|
|
2208
2213
|
class: "vc-input__prepend"
|
|
2209
|
-
},
|
|
2214
|
+
}, Vl = { class: "vc-input__field-container" }, Pl = {
|
|
2210
2215
|
key: 0,
|
|
2211
2216
|
class: "vc-input__prepend-inner"
|
|
2212
|
-
},
|
|
2217
|
+
}, zl = { class: "vc-input__field" }, Fl = {
|
|
2213
2218
|
key: 0,
|
|
2214
2219
|
class: "vc-input__prefix"
|
|
2215
|
-
},
|
|
2220
|
+
}, Kl = ["id", "step", "placeholder", "type", "disabled", "name", "maxlength", "autofocus", "autocomplete", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby", "aria-label"], Ul = {
|
|
2216
2221
|
key: 1,
|
|
2217
2222
|
class: "vc-input__suffix"
|
|
2218
|
-
},
|
|
2223
|
+
}, ql = ["aria-label"], Wl = ["aria-label"], jl = {
|
|
2219
2224
|
key: 1,
|
|
2220
2225
|
class: "vc-input__append-inner"
|
|
2221
|
-
},
|
|
2226
|
+
}, Hl = {
|
|
2222
2227
|
key: 2,
|
|
2223
2228
|
class: "vc-input__loading"
|
|
2224
|
-
},
|
|
2229
|
+
}, Gl = {
|
|
2225
2230
|
key: 1,
|
|
2226
2231
|
class: "vc-input__append"
|
|
2227
|
-
},
|
|
2232
|
+
}, Yl = { key: 0 }, Jl = { key: 1 }, pt = /* @__PURE__ */ V({
|
|
2228
2233
|
inheritAttrs: !1,
|
|
2229
2234
|
__name: "vc-input",
|
|
2230
2235
|
props: {
|
|
@@ -2257,59 +2262,59 @@ const gl = {
|
|
|
2257
2262
|
emits: ["update:modelValue", "blur", "focus"],
|
|
2258
2263
|
setup(e, { emit: t }) {
|
|
2259
2264
|
const n = e, a = wt(), i = /* @__PURE__ */ new Set(["min", "max", "minlength", "pattern", "inputmode"]), o = O(
|
|
2260
|
-
() => Object.fromEntries(Object.entries(a).filter(([
|
|
2265
|
+
() => Object.fromEntries(Object.entries(a).filter(([I]) => i.has(I.toLowerCase())))
|
|
2261
2266
|
), l = O(() => {
|
|
2262
|
-
const { class:
|
|
2267
|
+
const { class: I, ...x } = a;
|
|
2263
2268
|
return Object.fromEntries(Object.entries(x).filter(([q]) => !i.has(q.toLowerCase())));
|
|
2264
2269
|
}), s = t, u = we(), {
|
|
2265
|
-
fieldId:
|
|
2270
|
+
fieldId: v,
|
|
2266
2271
|
labelId: b,
|
|
2267
|
-
errorId:
|
|
2272
|
+
errorId: g,
|
|
2268
2273
|
hintId: d,
|
|
2269
2274
|
invalid: c,
|
|
2270
|
-
resolvedDisabled:
|
|
2271
|
-
resolvedName:
|
|
2275
|
+
resolvedDisabled: m,
|
|
2276
|
+
resolvedName: y,
|
|
2272
2277
|
ariaRequired: T,
|
|
2273
|
-
ariaDescribedBy:
|
|
2278
|
+
ariaDescribedBy: p
|
|
2274
2279
|
} = Ge(n);
|
|
2275
2280
|
let $, P;
|
|
2276
2281
|
const U = S(), ne = S(), Z = S(r(n.type)), le = S(!1), Q = S(), ce = O({
|
|
2277
2282
|
get() {
|
|
2278
2283
|
return Z.value === "integer" ? "number" : Z.value;
|
|
2279
2284
|
},
|
|
2280
|
-
set(
|
|
2281
|
-
Z.value =
|
|
2285
|
+
set(I) {
|
|
2286
|
+
Z.value = I;
|
|
2282
2287
|
}
|
|
2283
2288
|
}), fe = O(() => r(n.modelValue)), ie = O({
|
|
2284
2289
|
get() {
|
|
2285
2290
|
return (n.type === "integer" || n.type === "number") && isNaN(U.value) ? "" : U.value;
|
|
2286
2291
|
},
|
|
2287
|
-
set(
|
|
2288
|
-
(n.type === "number" || n.type === "integer") &&
|
|
2292
|
+
set(I) {
|
|
2293
|
+
(n.type === "number" || n.type === "integer") && I < 0 ? U.value = Math.abs(I) : U.value = I, H(U.value);
|
|
2289
2294
|
}
|
|
2290
2295
|
});
|
|
2291
2296
|
Y(
|
|
2292
2297
|
fe,
|
|
2293
|
-
(
|
|
2294
|
-
n.type === "number" &&
|
|
2298
|
+
(I) => {
|
|
2299
|
+
n.type === "number" && I !== null ? Q.value = parseFloat(I) : n.type === "integer" && I !== null ? Q.value = Math.trunc(I) : Q.value = I, U.value !== Q.value && (U.value = Q.value);
|
|
2295
2300
|
},
|
|
2296
2301
|
{ immediate: !0 }
|
|
2297
2302
|
);
|
|
2298
|
-
function F(
|
|
2299
|
-
const x = ["Backspace", "Delete", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], q =
|
|
2300
|
-
if ((n.type === "number" || n.type === "integer") && (q === "-" || q === "e" || q === "+") &&
|
|
2301
|
-
|
|
2303
|
+
function F(I) {
|
|
2304
|
+
const x = ["Backspace", "Delete", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], q = I.key;
|
|
2305
|
+
if ((n.type === "number" || n.type === "integer") && (q === "-" || q === "e" || q === "+") && I.preventDefault(), n.type === "integer" && !/^\d$/.test(q) && !x.includes(q)) {
|
|
2306
|
+
I.preventDefault();
|
|
2302
2307
|
return;
|
|
2303
2308
|
}
|
|
2304
2309
|
}
|
|
2305
|
-
function H(
|
|
2306
|
-
A(
|
|
2310
|
+
function H(I) {
|
|
2311
|
+
A(I);
|
|
2307
2312
|
}
|
|
2308
|
-
function A(
|
|
2313
|
+
function A(I) {
|
|
2309
2314
|
P = () => {
|
|
2310
|
-
if (Q.value !==
|
|
2315
|
+
if (Q.value !== I) {
|
|
2311
2316
|
let x;
|
|
2312
|
-
n.type === "number" &&
|
|
2317
|
+
n.type === "number" && I !== null && I !== void 0 ? x = I !== "" ? parseFloat(I) : null : n.type === "integer" && I !== null && I !== void 0 ? x = I !== "" ? Math.trunc(parseInt(I)) : null : x = I, s("update:modelValue", x);
|
|
2313
2318
|
}
|
|
2314
2319
|
P = void 0;
|
|
2315
2320
|
}, n.debounce !== void 0 ? (clearTimeout($), $ = setTimeout(P, +n.debounce)) : P();
|
|
@@ -2317,8 +2322,8 @@ const gl = {
|
|
|
2317
2322
|
function k() {
|
|
2318
2323
|
U.value = null, s("update:modelValue", null);
|
|
2319
2324
|
}
|
|
2320
|
-
function E(
|
|
2321
|
-
le.value = !1, s("blur",
|
|
2325
|
+
function E(I) {
|
|
2326
|
+
le.value = !1, s("blur", I);
|
|
2322
2327
|
}
|
|
2323
2328
|
function K() {
|
|
2324
2329
|
ne.value?.focus();
|
|
@@ -2326,8 +2331,8 @@ const gl = {
|
|
|
2326
2331
|
function z() {
|
|
2327
2332
|
le.value = !0, s("focus");
|
|
2328
2333
|
}
|
|
2329
|
-
return (
|
|
2330
|
-
class: ["vc-input vc-input--skeleton",
|
|
2334
|
+
return (I, x) => r(u) ? (f(), h("div", ae({ key: 0 }, l.value, {
|
|
2335
|
+
class: ["vc-input vc-input--skeleton", I.$attrs.class]
|
|
2331
2336
|
}), [
|
|
2332
2337
|
e.label ? (f(), D(r(oe), {
|
|
2333
2338
|
key: 0,
|
|
@@ -2340,7 +2345,7 @@ const gl = {
|
|
|
2340
2345
|
width: "100%",
|
|
2341
2346
|
height: 36
|
|
2342
2347
|
})
|
|
2343
|
-
], 16)) : e.type === "date" || e.type === "datetime-local" ? (f(), D(r(
|
|
2348
|
+
], 16)) : e.type === "date" || e.type === "datetime-local" ? (f(), D(r(Sl), ae({ key: 1 }, r(a), {
|
|
2344
2349
|
"model-value": e.modelValue,
|
|
2345
2350
|
type: e.type,
|
|
2346
2351
|
"date-picker-options": e.datePickerOptions,
|
|
@@ -2363,7 +2368,7 @@ const gl = {
|
|
|
2363
2368
|
"onUpdate:modelValue": x[0] || (x[0] = (q) => s("update:modelValue", q ?? null)),
|
|
2364
2369
|
onBlur: x[1] || (x[1] = (q) => s("blur", q)),
|
|
2365
2370
|
onFocus: x[2] || (x[2] = (q) => s("focus"))
|
|
2366
|
-
}), null, 16, ["model-value", "type", "date-picker-options", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name", "aria-label"])) : e.type === "color" ? (f(), D(r(
|
|
2371
|
+
}), null, 16, ["model-value", "type", "date-picker-options", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name", "aria-label"])) : e.type === "color" ? (f(), D(r(Nl), ae({ key: 2 }, r(a), {
|
|
2367
2372
|
"model-value": e.modelValue ?? null,
|
|
2368
2373
|
label: e.label,
|
|
2369
2374
|
placeholder: e.placeholder,
|
|
@@ -2384,14 +2389,14 @@ const gl = {
|
|
|
2384
2389
|
"onUpdate:modelValue": x[3] || (x[3] = (q) => s("update:modelValue", q)),
|
|
2385
2390
|
onBlur: x[4] || (x[4] = (q) => s("blur", q)),
|
|
2386
2391
|
onFocus: x[5] || (x[5] = (q) => s("focus"))
|
|
2387
|
-
}), null, 16, ["model-value", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name", "aria-label"])) : (f(),
|
|
2392
|
+
}), null, 16, ["model-value", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name", "aria-label"])) : (f(), h("div", ae({ key: 3 }, l.value, {
|
|
2388
2393
|
class: ["vc-input", [
|
|
2389
|
-
|
|
2394
|
+
I.$attrs.class,
|
|
2390
2395
|
`vc-input--${e.type}`,
|
|
2391
2396
|
{
|
|
2392
2397
|
"vc-input--clearable": e.clearable,
|
|
2393
2398
|
"vc-input--error": r(c),
|
|
2394
|
-
"vc-input--disabled": r(
|
|
2399
|
+
"vc-input--disabled": r(m),
|
|
2395
2400
|
"vc-input--focused": le.value
|
|
2396
2401
|
}
|
|
2397
2402
|
]]
|
|
@@ -2399,7 +2404,7 @@ const gl = {
|
|
|
2399
2404
|
e.label ? (f(), D(r(Xe), {
|
|
2400
2405
|
key: 0,
|
|
2401
2406
|
id: r(b),
|
|
2402
|
-
"html-for": r(
|
|
2407
|
+
"html-for": r(v),
|
|
2403
2408
|
class: "vc-input__label",
|
|
2404
2409
|
required: e.required,
|
|
2405
2410
|
multilanguage: e.multilanguage,
|
|
@@ -2419,9 +2424,9 @@ const gl = {
|
|
|
2419
2424
|
key: "0"
|
|
2420
2425
|
} : void 0
|
|
2421
2426
|
]), 1032, ["id", "html-for", "required", "multilanguage", "current-language", "error"])) : w("", !0),
|
|
2422
|
-
C("div",
|
|
2423
|
-
|
|
2424
|
-
B(
|
|
2427
|
+
C("div", Al, [
|
|
2428
|
+
I.$slots.prepend ? (f(), h("div", Dl, [
|
|
2429
|
+
B(I.$slots, "prepend", { focus: K })
|
|
2425
2430
|
])) : w("", !0),
|
|
2426
2431
|
C("div", {
|
|
2427
2432
|
class: G(["vc-input__field-wrapper", {
|
|
@@ -2429,21 +2434,21 @@ const gl = {
|
|
|
2429
2434
|
"vc-input__field-wrapper--small": e.size === "small"
|
|
2430
2435
|
}])
|
|
2431
2436
|
}, [
|
|
2432
|
-
C("div",
|
|
2433
|
-
|
|
2434
|
-
B(
|
|
2437
|
+
C("div", Vl, [
|
|
2438
|
+
I.$slots["prepend-inner"] ? (f(), h("div", Pl, [
|
|
2439
|
+
B(I.$slots, "prepend-inner", { focus: K })
|
|
2435
2440
|
])) : w("", !0),
|
|
2436
|
-
C("div",
|
|
2437
|
-
e.prefix ? (f(),
|
|
2438
|
-
B(
|
|
2439
|
-
editable: r(
|
|
2441
|
+
C("div", zl, [
|
|
2442
|
+
e.prefix ? (f(), h("div", Fl, M(e.prefix), 1)) : w("", !0),
|
|
2443
|
+
B(I.$slots, "control", {
|
|
2444
|
+
editable: r(m),
|
|
2440
2445
|
focused: e.autofocus,
|
|
2441
2446
|
modelValue: ie.value,
|
|
2442
2447
|
emitValue: A,
|
|
2443
2448
|
placeholder: e.placeholder
|
|
2444
2449
|
}, () => [
|
|
2445
2450
|
ut(C("input", ae({
|
|
2446
|
-
id: r(
|
|
2451
|
+
id: r(v),
|
|
2447
2452
|
ref_key: "inputRef",
|
|
2448
2453
|
ref: ne,
|
|
2449
2454
|
"onUpdate:modelValue": x[6] || (x[6] = (q) => ie.value = q)
|
|
@@ -2451,14 +2456,14 @@ const gl = {
|
|
|
2451
2456
|
step: e.step,
|
|
2452
2457
|
placeholder: e.placeholder,
|
|
2453
2458
|
type: ce.value,
|
|
2454
|
-
disabled: r(
|
|
2455
|
-
name: r(
|
|
2459
|
+
disabled: r(m),
|
|
2460
|
+
name: r(y),
|
|
2456
2461
|
maxlength: e.maxlength,
|
|
2457
2462
|
autofocus: e.autofocus,
|
|
2458
2463
|
autocomplete: e.autocomplete,
|
|
2459
2464
|
"aria-invalid": r(c) || void 0,
|
|
2460
2465
|
"aria-required": r(T),
|
|
2461
|
-
"aria-describedby": r(
|
|
2466
|
+
"aria-describedby": r(p),
|
|
2462
2467
|
"aria-labelledby": e.label ? r(b) : void 0,
|
|
2463
2468
|
"aria-label": e.label ? void 0 : e.ariaLabel,
|
|
2464
2469
|
class: "vc-input__input",
|
|
@@ -2466,40 +2471,40 @@ const gl = {
|
|
|
2466
2471
|
onKeydown: F,
|
|
2467
2472
|
onBlur: E,
|
|
2468
2473
|
onFocus: z
|
|
2469
|
-
}), null, 16,
|
|
2474
|
+
}), null, 16, Kl), [
|
|
2470
2475
|
[rn, ie.value]
|
|
2471
2476
|
])
|
|
2472
2477
|
]),
|
|
2473
|
-
e.suffix ? (f(),
|
|
2474
|
-
e.clearable && Q.value && !r(
|
|
2478
|
+
e.suffix ? (f(), h("div", Ul, M(e.suffix), 1)) : w("", !0),
|
|
2479
|
+
e.clearable && Q.value && !r(m) && e.type !== "password" ? (f(), h("button", {
|
|
2475
2480
|
key: 2,
|
|
2476
2481
|
type: "button",
|
|
2477
2482
|
class: "vc-input__clear",
|
|
2478
|
-
"aria-label":
|
|
2483
|
+
"aria-label": I.$t("COMPONENTS.CONTROLS.CLEAR"),
|
|
2479
2484
|
onClick: k
|
|
2480
2485
|
}, [
|
|
2481
2486
|
R(r(W), {
|
|
2482
2487
|
size: "xs",
|
|
2483
2488
|
icon: "lucide-x"
|
|
2484
2489
|
})
|
|
2485
|
-
], 8,
|
|
2486
|
-
e.type === "password" ? (f(),
|
|
2490
|
+
], 8, ql)) : w("", !0),
|
|
2491
|
+
e.type === "password" ? (f(), h("button", {
|
|
2487
2492
|
key: 3,
|
|
2488
2493
|
type: "button",
|
|
2489
2494
|
class: "vc-input__showhide",
|
|
2490
|
-
"aria-label": Z.value === "password" ?
|
|
2495
|
+
"aria-label": Z.value === "password" ? I.$t("COMPONENTS.CONTROLS.SHOW_PASSWORD") : I.$t("COMPONENTS.CONTROLS.HIDE_PASSWORD"),
|
|
2491
2496
|
onClick: x[7] || (x[7] = (q) => Z.value = Z.value === "password" ? "text" : "password")
|
|
2492
2497
|
}, [
|
|
2493
2498
|
R(r(W), {
|
|
2494
2499
|
size: "s",
|
|
2495
2500
|
icon: Z.value === "password" ? "lucide-eye-off" : "lucide-eye"
|
|
2496
2501
|
}, null, 8, ["icon"])
|
|
2497
|
-
], 8,
|
|
2502
|
+
], 8, Wl)) : w("", !0)
|
|
2498
2503
|
]),
|
|
2499
|
-
|
|
2500
|
-
B(
|
|
2504
|
+
I.$slots["append-inner"] ? (f(), h("div", jl, [
|
|
2505
|
+
B(I.$slots, "append-inner", { focus: K })
|
|
2501
2506
|
])) : w("", !0),
|
|
2502
|
-
e.loading ? (f(),
|
|
2507
|
+
e.loading ? (f(), h("div", Hl, [
|
|
2503
2508
|
R(r(W), {
|
|
2504
2509
|
icon: "lucide-loader-2",
|
|
2505
2510
|
class: "vc-input__loading-icon",
|
|
@@ -2508,8 +2513,8 @@ const gl = {
|
|
|
2508
2513
|
])) : w("", !0)
|
|
2509
2514
|
])
|
|
2510
2515
|
], 2),
|
|
2511
|
-
|
|
2512
|
-
B(
|
|
2516
|
+
I.$slots.append ? (f(), h("div", Gl, [
|
|
2517
|
+
B(I.$slots, "append", { focus: K })
|
|
2513
2518
|
])) : w("", !0)
|
|
2514
2519
|
]),
|
|
2515
2520
|
R(Pe, {
|
|
@@ -2517,10 +2522,10 @@ const gl = {
|
|
|
2517
2522
|
mode: "out-in"
|
|
2518
2523
|
}, {
|
|
2519
2524
|
default: L(() => [
|
|
2520
|
-
r(c) && e.errorMessage ? (f(),
|
|
2521
|
-
B(
|
|
2525
|
+
r(c) && e.errorMessage ? (f(), h("div", Yl, [
|
|
2526
|
+
B(I.$slots, "error", {}, () => [
|
|
2522
2527
|
R(r(be), {
|
|
2523
|
-
id: r(
|
|
2528
|
+
id: r(g),
|
|
2524
2529
|
class: "vc-input__hint-error",
|
|
2525
2530
|
error: !0
|
|
2526
2531
|
}, {
|
|
@@ -2530,8 +2535,8 @@ const gl = {
|
|
|
2530
2535
|
_: 1
|
|
2531
2536
|
}, 8, ["id"])
|
|
2532
2537
|
])
|
|
2533
|
-
])) : (f(),
|
|
2534
|
-
B(
|
|
2538
|
+
])) : (f(), h("div", Jl, [
|
|
2539
|
+
B(I.$slots, "hint", {}, () => [
|
|
2535
2540
|
e.hint ? (f(), D(r(be), {
|
|
2536
2541
|
key: 0,
|
|
2537
2542
|
id: r(d),
|
|
@@ -2549,7 +2554,7 @@ const gl = {
|
|
|
2549
2554
|
})
|
|
2550
2555
|
], 16));
|
|
2551
2556
|
}
|
|
2552
|
-
}),
|
|
2557
|
+
}), yr = xn.create({
|
|
2553
2558
|
name: "fontSize",
|
|
2554
2559
|
addOptions() {
|
|
2555
2560
|
return {
|
|
@@ -2579,115 +2584,115 @@ const gl = {
|
|
|
2579
2584
|
};
|
|
2580
2585
|
}
|
|
2581
2586
|
});
|
|
2582
|
-
function
|
|
2587
|
+
function Xl(e = {}) {
|
|
2583
2588
|
const {
|
|
2584
2589
|
containerSelector: t = '[role="menu"]',
|
|
2585
2590
|
itemSelector: n = '[tabindex="0"]',
|
|
2586
2591
|
onEnter: a,
|
|
2587
2592
|
onEscape: i,
|
|
2588
2593
|
loop: o = !0
|
|
2589
|
-
} = e, l = S(null), s = S(-1), u = (
|
|
2590
|
-
(s.value >=
|
|
2591
|
-
},
|
|
2594
|
+
} = e, l = S(null), s = S(-1), u = (p) => {
|
|
2595
|
+
(s.value >= p.length || s.value < 0) && (s.value = p.length > 0 ? 0 : -1);
|
|
2596
|
+
}, v = (p) => {
|
|
2592
2597
|
if (!l.value) return;
|
|
2593
2598
|
const $ = Array.from(l.value.querySelectorAll(n));
|
|
2594
2599
|
if ($.length)
|
|
2595
|
-
switch (u($),
|
|
2600
|
+
switch (u($), p.key) {
|
|
2596
2601
|
case "Tab":
|
|
2597
|
-
b(
|
|
2602
|
+
b(p, $);
|
|
2598
2603
|
break;
|
|
2599
2604
|
case "ArrowDown":
|
|
2600
|
-
|
|
2605
|
+
p.preventDefault(), g($);
|
|
2601
2606
|
break;
|
|
2602
2607
|
case "ArrowUp":
|
|
2603
|
-
|
|
2608
|
+
p.preventDefault(), d($);
|
|
2604
2609
|
break;
|
|
2605
2610
|
case "Enter":
|
|
2606
2611
|
case " ":
|
|
2607
2612
|
if (s.value >= 0 && s.value < $.length) {
|
|
2608
2613
|
const P = $[s.value];
|
|
2609
|
-
P && (
|
|
2614
|
+
P && (p.preventDefault(), a ? a(P) : typeof P.click == "function" && P.click());
|
|
2610
2615
|
}
|
|
2611
2616
|
break;
|
|
2612
2617
|
case "Escape":
|
|
2613
|
-
i && (
|
|
2618
|
+
i && (p.preventDefault(), p.stopPropagation(), i());
|
|
2614
2619
|
break;
|
|
2615
2620
|
}
|
|
2616
|
-
}, b = (
|
|
2617
|
-
|
|
2618
|
-
},
|
|
2619
|
-
if (!
|
|
2620
|
-
if (u(
|
|
2621
|
+
}, b = (p, $) => {
|
|
2622
|
+
p.shiftKey ? d($) : g($);
|
|
2623
|
+
}, g = (p) => {
|
|
2624
|
+
if (!p.length) return;
|
|
2625
|
+
if (u(p), s.value < p.length - 1)
|
|
2621
2626
|
s.value++;
|
|
2622
2627
|
else if (o)
|
|
2623
2628
|
s.value = 0;
|
|
2624
2629
|
else
|
|
2625
2630
|
return;
|
|
2626
|
-
const $ =
|
|
2631
|
+
const $ = p[s.value];
|
|
2627
2632
|
$ && typeof $.focus == "function" && $.focus();
|
|
2628
|
-
}, d = (
|
|
2629
|
-
if (!
|
|
2630
|
-
if (u(
|
|
2633
|
+
}, d = (p) => {
|
|
2634
|
+
if (!p.length) return;
|
|
2635
|
+
if (u(p), s.value > 0)
|
|
2631
2636
|
s.value--;
|
|
2632
2637
|
else if (o)
|
|
2633
|
-
s.value =
|
|
2638
|
+
s.value = p.length - 1;
|
|
2634
2639
|
else
|
|
2635
2640
|
return;
|
|
2636
|
-
const $ =
|
|
2641
|
+
const $ = p[s.value];
|
|
2637
2642
|
$ && typeof $.focus == "function" && $.focus();
|
|
2638
|
-
}, c = (
|
|
2639
|
-
if (!
|
|
2643
|
+
}, c = (p) => {
|
|
2644
|
+
if (!p.length) return;
|
|
2640
2645
|
s.value = 0;
|
|
2641
|
-
const $ =
|
|
2646
|
+
const $ = p[0];
|
|
2642
2647
|
$ && typeof $.focus == "function" && $.focus();
|
|
2643
|
-
},
|
|
2644
|
-
if (!
|
|
2645
|
-
s.value =
|
|
2646
|
-
const $ =
|
|
2648
|
+
}, m = (p) => {
|
|
2649
|
+
if (!p.length) return;
|
|
2650
|
+
s.value = p.length - 1;
|
|
2651
|
+
const $ = p[p.length - 1];
|
|
2647
2652
|
$ && typeof $.focus == "function" && $.focus();
|
|
2648
|
-
},
|
|
2649
|
-
l.value && l.value.removeEventListener("keydown",
|
|
2653
|
+
}, y = (p) => {
|
|
2654
|
+
l.value && l.value.removeEventListener("keydown", v), l.value = p, p.addEventListener("keydown", v);
|
|
2650
2655
|
}, T = () => {
|
|
2651
|
-
l.value && (l.value.removeEventListener("keydown",
|
|
2656
|
+
l.value && (l.value.removeEventListener("keydown", v), l.value = null);
|
|
2652
2657
|
};
|
|
2653
2658
|
return He(() => {
|
|
2654
2659
|
if (typeof document < "u" && t) {
|
|
2655
|
-
const
|
|
2656
|
-
|
|
2660
|
+
const p = document.querySelector(t);
|
|
2661
|
+
p && y(p);
|
|
2657
2662
|
}
|
|
2658
2663
|
}), it(() => {
|
|
2659
2664
|
T();
|
|
2660
2665
|
}), {
|
|
2661
|
-
initKeyboardNavigation:
|
|
2666
|
+
initKeyboardNavigation: y,
|
|
2662
2667
|
cleanupKeyboardNavigation: T,
|
|
2663
2668
|
focusNextElement: () => {
|
|
2664
2669
|
if (l.value) {
|
|
2665
|
-
const
|
|
2666
|
-
|
|
2670
|
+
const p = Array.from(l.value.querySelectorAll(n));
|
|
2671
|
+
g(p);
|
|
2667
2672
|
}
|
|
2668
2673
|
},
|
|
2669
2674
|
focusPreviousElement: () => {
|
|
2670
2675
|
if (l.value) {
|
|
2671
|
-
const
|
|
2672
|
-
d(
|
|
2676
|
+
const p = Array.from(l.value.querySelectorAll(n));
|
|
2677
|
+
d(p);
|
|
2673
2678
|
}
|
|
2674
2679
|
},
|
|
2675
2680
|
focusFirstElement: () => {
|
|
2676
2681
|
if (l.value) {
|
|
2677
|
-
const
|
|
2678
|
-
c(
|
|
2682
|
+
const p = Array.from(l.value.querySelectorAll(n));
|
|
2683
|
+
c(p);
|
|
2679
2684
|
}
|
|
2680
2685
|
},
|
|
2681
2686
|
focusLastElement: () => {
|
|
2682
2687
|
if (l.value) {
|
|
2683
|
-
const
|
|
2684
|
-
p
|
|
2688
|
+
const p = Array.from(l.value.querySelectorAll(n));
|
|
2689
|
+
m(p);
|
|
2685
2690
|
}
|
|
2686
2691
|
},
|
|
2687
|
-
setFocusedIndex: (
|
|
2692
|
+
setFocusedIndex: (p) => {
|
|
2688
2693
|
if (l.value) {
|
|
2689
2694
|
const $ = Array.from(l.value.querySelectorAll(n));
|
|
2690
|
-
|
|
2695
|
+
p >= 0 && p < $.length && (s.value = p);
|
|
2691
2696
|
}
|
|
2692
2697
|
},
|
|
2693
2698
|
getFocusedIndex: () => s.value
|
|
@@ -2697,11 +2702,11 @@ function Et(e, t) {
|
|
|
2697
2702
|
const n = e !== void 0 ? e : t;
|
|
2698
2703
|
return typeof n == "function" ? n : (a) => a === null || typeof a != "object" ? a : n && n in a ? a[n] : a;
|
|
2699
2704
|
}
|
|
2700
|
-
function
|
|
2705
|
+
function Zl(e) {
|
|
2701
2706
|
const t = O(() => Et(e.optionValue(), "id")), n = O(() => Et(e.optionLabel(), "title"));
|
|
2702
|
-
function a(l, s, u,
|
|
2703
|
-
const b = (
|
|
2704
|
-
return u.find(b) ||
|
|
2707
|
+
function a(l, s, u, v) {
|
|
2708
|
+
const b = (g) => De(t.value(g), l);
|
|
2709
|
+
return u.find(b) || v.find(b) || s.find(b) || l;
|
|
2705
2710
|
}
|
|
2706
2711
|
function i(l) {
|
|
2707
2712
|
return n.value(l);
|
|
@@ -2717,7 +2722,7 @@ function Xl(e) {
|
|
|
2717
2722
|
fieldValueIsFilled: o
|
|
2718
2723
|
};
|
|
2719
2724
|
}
|
|
2720
|
-
function
|
|
2725
|
+
function Ql() {
|
|
2721
2726
|
const e = S(null), t = S(!1);
|
|
2722
2727
|
let n = null, a = null;
|
|
2723
2728
|
function i() {
|
|
@@ -2747,15 +2752,15 @@ function Zl() {
|
|
|
2747
2752
|
ensureVisibility: o
|
|
2748
2753
|
};
|
|
2749
2754
|
}
|
|
2750
|
-
function
|
|
2755
|
+
function _l(e) {
|
|
2751
2756
|
const t = S(!1), n = S(!1), a = S(null), i = S(null);
|
|
2752
2757
|
function o() {
|
|
2753
2758
|
return {
|
|
2754
2759
|
name: "sameWidth",
|
|
2755
|
-
fn({ rects:
|
|
2760
|
+
fn({ rects: v }) {
|
|
2756
2761
|
return {
|
|
2757
2762
|
data: {
|
|
2758
|
-
width: e.outline() ? `${
|
|
2763
|
+
width: e.outline() ? `${v.reference.width}px` : "max-content"
|
|
2759
2764
|
}
|
|
2760
2765
|
};
|
|
2761
2766
|
}
|
|
@@ -2776,8 +2781,8 @@ function Ql(e) {
|
|
|
2776
2781
|
}));
|
|
2777
2782
|
Y(
|
|
2778
2783
|
() => l.isPositioned.value,
|
|
2779
|
-
(
|
|
2780
|
-
|
|
2784
|
+
(v) => {
|
|
2785
|
+
v && l.update();
|
|
2781
2786
|
}
|
|
2782
2787
|
);
|
|
2783
2788
|
function u() {
|
|
@@ -2793,9 +2798,9 @@ function Ql(e) {
|
|
|
2793
2798
|
toggleDropdown: u
|
|
2794
2799
|
};
|
|
2795
2800
|
}
|
|
2796
|
-
function
|
|
2797
|
-
const t = S([]), n = S(null), a = S(0), i = S(0), o = S(!1), l = S(!1), s = S(!1), u = S(!1),
|
|
2798
|
-
let c = !1,
|
|
2801
|
+
function eo(e) {
|
|
2802
|
+
const t = S([]), n = S(null), a = S(0), i = S(0), o = S(!1), l = S(!1), s = S(!1), u = S(!1), v = S(), b = S([]), g = S(!1), d = /* @__PURE__ */ new Map();
|
|
2803
|
+
let c = !1, m = 0, y = 0, T = 0, p;
|
|
2799
2804
|
const $ = O(() => n.value ?? t.value), P = O(() => n.value !== null ? !l.value && n.value.length < i.value : !o.value && t.value.length < a.value);
|
|
2800
2805
|
function U(A) {
|
|
2801
2806
|
for (const k of A) {
|
|
@@ -2804,7 +2809,7 @@ function _l(e) {
|
|
|
2804
2809
|
}
|
|
2805
2810
|
}
|
|
2806
2811
|
function ne() {
|
|
2807
|
-
n.value = null, u.value = !1,
|
|
2812
|
+
n.value = null, u.value = !1, v.value = void 0, i.value = 0, y = 0, l.value = !1, T++, p && (clearTimeout(p), p = void 0);
|
|
2808
2813
|
}
|
|
2809
2814
|
async function Z() {
|
|
2810
2815
|
if (c)
|
|
@@ -2814,13 +2819,13 @@ function _l(e) {
|
|
|
2814
2819
|
try {
|
|
2815
2820
|
s.value = !0;
|
|
2816
2821
|
const k = await A(void 0, 0), E = k?.results ?? [];
|
|
2817
|
-
t.value = E, a.value = k?.totalCount ?? 0,
|
|
2822
|
+
t.value = E, a.value = k?.totalCount ?? 0, m = E.length, o.value = E.length === 0 || m >= a.value, U(t.value), c = !0;
|
|
2818
2823
|
} catch (k) {
|
|
2819
|
-
console.error("useSelectDataSource: error loading options", k), t.value = [], a.value = 0,
|
|
2824
|
+
console.error("useSelectDataSource: error loading options", k), t.value = [], a.value = 0, m = 0, o.value = !0;
|
|
2820
2825
|
} finally {
|
|
2821
2826
|
s.value = !1;
|
|
2822
2827
|
}
|
|
2823
|
-
else Array.isArray(A) && (t.value = [...A], a.value = t.value.length,
|
|
2828
|
+
else Array.isArray(A) && (t.value = [...A], a.value = t.value.length, m = t.value.length, o.value = !0, U(t.value), c = !0);
|
|
2824
2829
|
}
|
|
2825
2830
|
function le() {
|
|
2826
2831
|
ne();
|
|
@@ -2831,15 +2836,15 @@ function _l(e) {
|
|
|
2831
2836
|
const k = n.value !== null, E = T, K = n.value;
|
|
2832
2837
|
try {
|
|
2833
2838
|
s.value = !0;
|
|
2834
|
-
const z = await A(
|
|
2839
|
+
const z = await A(v.value, k ? y : m);
|
|
2835
2840
|
if (k && (n.value !== K || E !== T)) return;
|
|
2836
|
-
const
|
|
2837
|
-
if (k ?
|
|
2841
|
+
const I = z?.results ?? [];
|
|
2842
|
+
if (k ? y += I.length : m += I.length, I.length === 0) {
|
|
2838
2843
|
k ? l.value = !0 : o.value = !0;
|
|
2839
2844
|
return;
|
|
2840
2845
|
}
|
|
2841
|
-
const x = k ? n.value : t.value, q = new Set(x.map((Re) => String(e.getOptionValue.value(Re)))), ve =
|
|
2842
|
-
k ? (n.value = [...x, ...ve], i.value = z?.totalCount ?? i.value,
|
|
2846
|
+
const x = k ? n.value : t.value, q = new Set(x.map((Re) => String(e.getOptionValue.value(Re)))), ve = I.filter((Re) => !q.has(String(e.getOptionValue.value(Re))));
|
|
2847
|
+
k ? (n.value = [...x, ...ve], i.value = z?.totalCount ?? i.value, y >= i.value && (l.value = !0)) : (t.value = [...x, ...ve], a.value = z?.totalCount ?? a.value, m >= a.value && (o.value = !0)), U(ve);
|
|
2843
2848
|
} catch (z) {
|
|
2844
2849
|
console.error("useSelectDataSource: error loading more", z);
|
|
2845
2850
|
} finally {
|
|
@@ -2847,7 +2852,7 @@ function _l(e) {
|
|
|
2847
2852
|
}
|
|
2848
2853
|
}
|
|
2849
2854
|
async function ce(A) {
|
|
2850
|
-
|
|
2855
|
+
v.value = A;
|
|
2851
2856
|
const k = e.options();
|
|
2852
2857
|
if (typeof k == "function") {
|
|
2853
2858
|
const E = ++T;
|
|
@@ -2856,10 +2861,10 @@ function _l(e) {
|
|
|
2856
2861
|
const K = await k(A);
|
|
2857
2862
|
if (E !== T) return;
|
|
2858
2863
|
const z = K?.results ?? [];
|
|
2859
|
-
n.value = z, i.value = K?.totalCount ?? 0,
|
|
2864
|
+
n.value = z, i.value = K?.totalCount ?? 0, y = z.length, l.value = z.length === 0 || y >= i.value, U(z);
|
|
2860
2865
|
} catch (K) {
|
|
2861
2866
|
if (E !== T) return;
|
|
2862
|
-
console.error("useSelectDataSource: error searching", K), n.value = [], i.value = 0,
|
|
2867
|
+
console.error("useSelectDataSource: error searching", K), n.value = [], i.value = 0, y = 0, l.value = !0;
|
|
2863
2868
|
} finally {
|
|
2864
2869
|
E === T && (u.value = !1);
|
|
2865
2870
|
}
|
|
@@ -2868,13 +2873,13 @@ function _l(e) {
|
|
|
2868
2873
|
const z = e.getOptionLabel.value(K);
|
|
2869
2874
|
return String(z).toLowerCase().includes(A.toLowerCase());
|
|
2870
2875
|
});
|
|
2871
|
-
n.value = E, i.value = E.length,
|
|
2876
|
+
n.value = E, i.value = E.length, y = E.length, l.value = !0;
|
|
2872
2877
|
}
|
|
2873
2878
|
}
|
|
2874
2879
|
function fe(A) {
|
|
2875
2880
|
if (!A?.target) return;
|
|
2876
2881
|
const k = A.target.value, E = Number(e.debounce());
|
|
2877
|
-
|
|
2882
|
+
p && clearTimeout(p), E > 0 ? p = setTimeout(() => {
|
|
2878
2883
|
e.emit.search(k), ce(k);
|
|
2879
2884
|
}, E) : (e.emit.search(k), ce(k));
|
|
2880
2885
|
}
|
|
@@ -2883,38 +2888,38 @@ function _l(e) {
|
|
|
2883
2888
|
}
|
|
2884
2889
|
async function F(A) {
|
|
2885
2890
|
if (A.length === 0) return [];
|
|
2886
|
-
const E = A.filter((
|
|
2887
|
-
const x = t.value.find((q) => De(e.getOptionValue.value(q),
|
|
2888
|
-
return x ? (d.set(String(
|
|
2891
|
+
const E = A.filter((I) => !d.has(String(I))).filter((I) => {
|
|
2892
|
+
const x = t.value.find((q) => De(e.getOptionValue.value(q), I));
|
|
2893
|
+
return x ? (d.set(String(I), x), !1) : !0;
|
|
2889
2894
|
}), K = e.options();
|
|
2890
2895
|
if (E.length > 0 && typeof K == "function") {
|
|
2891
2896
|
try {
|
|
2892
|
-
|
|
2897
|
+
g.value = !0;
|
|
2893
2898
|
const x = await K(void 0, void 0, E);
|
|
2894
2899
|
x?.results && U(x.results);
|
|
2895
2900
|
} catch (x) {
|
|
2896
2901
|
console.error("useSelectDataSource: error resolving", x);
|
|
2897
2902
|
} finally {
|
|
2898
|
-
|
|
2903
|
+
g.value = !1;
|
|
2899
2904
|
}
|
|
2900
2905
|
E.filter((x) => !d.has(String(x))).length > 0 && !c && await Z();
|
|
2901
2906
|
} else if (E.length > 0 && Array.isArray(K))
|
|
2902
|
-
for (const
|
|
2903
|
-
const x = String(e.getOptionValue.value(
|
|
2904
|
-
E.includes(x) && d.set(x,
|
|
2907
|
+
for (const I of K) {
|
|
2908
|
+
const x = String(e.getOptionValue.value(I));
|
|
2909
|
+
E.includes(x) && d.set(x, I);
|
|
2905
2910
|
}
|
|
2906
|
-
const z = A.map((
|
|
2911
|
+
const z = A.map((I) => d.get(String(I))).filter(Boolean);
|
|
2907
2912
|
return b.value = z, z;
|
|
2908
2913
|
}
|
|
2909
2914
|
async function H() {
|
|
2910
|
-
t.value = [], a.value = 0,
|
|
2915
|
+
t.value = [], a.value = 0, m = 0, o.value = !1, ne(), d.clear(), b.value = [], c = !1, await Z();
|
|
2911
2916
|
}
|
|
2912
2917
|
return Y(
|
|
2913
2918
|
e.options,
|
|
2914
2919
|
async () => {
|
|
2915
|
-
t.value = [], a.value = 0,
|
|
2920
|
+
t.value = [], a.value = 0, m = 0, o.value = !1, ne(), d.clear(), c = !1;
|
|
2916
2921
|
const A = e.options();
|
|
2917
|
-
if (Array.isArray(A) && (t.value = [...A], a.value = t.value.length,
|
|
2922
|
+
if (Array.isArray(A) && (t.value = [...A], a.value = t.value.length, m = t.value.length, o.value = !0, U(t.value), c = !0, b.value.length === 0)) {
|
|
2918
2923
|
const k = b.value;
|
|
2919
2924
|
(k.length === 0 ? t.value.filter((K) => {
|
|
2920
2925
|
const z = String(e.getOptionValue.value(K));
|
|
@@ -2928,9 +2933,9 @@ function _l(e) {
|
|
|
2928
2933
|
loading: s,
|
|
2929
2934
|
searchLoading: u,
|
|
2930
2935
|
hasMore: P,
|
|
2931
|
-
filterString:
|
|
2936
|
+
filterString: v,
|
|
2932
2937
|
resolvedDefaults: b,
|
|
2933
|
-
defaultOptionLoading:
|
|
2938
|
+
defaultOptionLoading: g,
|
|
2934
2939
|
cachedItems: t,
|
|
2935
2940
|
open: Z,
|
|
2936
2941
|
close: le,
|
|
@@ -2941,77 +2946,77 @@ function _l(e) {
|
|
|
2941
2946
|
refresh: H
|
|
2942
2947
|
};
|
|
2943
2948
|
}
|
|
2944
|
-
function
|
|
2949
|
+
function to(e) {
|
|
2945
2950
|
let t = [];
|
|
2946
2951
|
const n = O(() => {
|
|
2947
|
-
const
|
|
2952
|
+
const g = e.mapOptions() === !0 && e.multiple() !== !0, d = e.modelValue() !== void 0 && (e.modelValue() !== null || g === !0) ? e.multiple() === !0 && Array.isArray(e.modelValue()) ? e.modelValue() : [e.modelValue()] : [];
|
|
2948
2953
|
if (e.mapOptions() === !0 && Array.isArray(e.displayItems.value) === !0) {
|
|
2949
|
-
const c = e.mapOptions() === !0 && t !== void 0 ? t : [],
|
|
2950
|
-
const T = e.getOption(
|
|
2951
|
-
if (T ===
|
|
2952
|
-
const
|
|
2953
|
-
if (
|
|
2954
|
+
const c = e.mapOptions() === !0 && t !== void 0 ? t : [], m = d.map((y) => {
|
|
2955
|
+
const T = e.getOption(y, c, e.resolvedDefaults.value, e.displayItems.value);
|
|
2956
|
+
if (T === y && e.cachedItems.value.length > 0) {
|
|
2957
|
+
const p = e.getOption(y, c, e.resolvedDefaults.value, e.cachedItems.value);
|
|
2958
|
+
if (p !== y) return p;
|
|
2954
2959
|
}
|
|
2955
2960
|
return T;
|
|
2956
2961
|
});
|
|
2957
|
-
return e.modelValue() === null &&
|
|
2962
|
+
return e.modelValue() === null && g === !0 ? m.filter((y) => y !== null) : m;
|
|
2958
2963
|
}
|
|
2959
2964
|
return d;
|
|
2960
2965
|
});
|
|
2961
2966
|
Y(
|
|
2962
2967
|
n,
|
|
2963
|
-
(
|
|
2964
|
-
t =
|
|
2968
|
+
(g) => {
|
|
2969
|
+
t = g;
|
|
2965
2970
|
},
|
|
2966
2971
|
{ immediate: !0 }
|
|
2967
2972
|
);
|
|
2968
|
-
const a = O(() => n.value.map((
|
|
2969
|
-
function i(
|
|
2970
|
-
const d = e.getOptionValue.value(
|
|
2973
|
+
const a = O(() => n.value.map((g) => e.getOptionValue.value(g)));
|
|
2974
|
+
function i(g) {
|
|
2975
|
+
const d = e.getOptionValue.value(g);
|
|
2971
2976
|
return a.value.find((c) => De(c, d)) !== void 0;
|
|
2972
2977
|
}
|
|
2973
2978
|
const o = O(
|
|
2974
|
-
() => n.value.map((
|
|
2979
|
+
() => n.value.map((g, d) => ({
|
|
2975
2980
|
index: d,
|
|
2976
|
-
opt:
|
|
2981
|
+
opt: g,
|
|
2977
2982
|
selected: !0,
|
|
2978
2983
|
toggleOption: u,
|
|
2979
|
-
removeAtIndex:
|
|
2984
|
+
removeAtIndex: v
|
|
2980
2985
|
}))
|
|
2981
|
-
), l = O(() => e.fieldValueIsFilled(n.value)), s = O(() => e.displayItems.value.map((
|
|
2986
|
+
), l = O(() => e.fieldValueIsFilled(n.value)), s = O(() => e.displayItems.value.map((g, d) => ({
|
|
2982
2987
|
index: d,
|
|
2983
|
-
opt:
|
|
2984
|
-
selected: i(
|
|
2985
|
-
label: e.getOptionLabel.value(
|
|
2988
|
+
opt: g,
|
|
2989
|
+
selected: i(g) === !0,
|
|
2990
|
+
label: e.getOptionLabel.value(g),
|
|
2986
2991
|
toggleOption: u
|
|
2987
2992
|
})));
|
|
2988
|
-
function u(
|
|
2989
|
-
if (
|
|
2993
|
+
function u(g) {
|
|
2994
|
+
if (g === void 0)
|
|
2990
2995
|
return;
|
|
2991
|
-
const d = e.getOptionValue.value(
|
|
2996
|
+
const d = e.getOptionValue.value(g);
|
|
2992
2997
|
if (e.multiple() !== !0) {
|
|
2993
|
-
(n.value.length === 0 || De(e.getOptionValue.value(n.value[0]), d) !== !0) && e.emit.updateModelValue(e.emitValue() === !0 ? d :
|
|
2998
|
+
(n.value.length === 0 || De(e.getOptionValue.value(n.value[0]), d) !== !0) && e.emit.updateModelValue(e.emitValue() === !0 ? d : g), e.isOpened.value = !1, e.emit.close();
|
|
2994
2999
|
return;
|
|
2995
3000
|
}
|
|
2996
3001
|
if (n.value.length === 0) {
|
|
2997
|
-
const
|
|
2998
|
-
e.emit.updateModelValue(e.multiple() === !0 ? [
|
|
3002
|
+
const y = e.emitValue() === !0 ? d : g;
|
|
3003
|
+
e.emit.updateModelValue(e.multiple() === !0 ? [y] : y);
|
|
2999
3004
|
return;
|
|
3000
3005
|
}
|
|
3001
|
-
const c = e.modelValue().slice(),
|
|
3002
|
-
if (
|
|
3003
|
-
c.splice(
|
|
3006
|
+
const c = e.modelValue().slice(), m = a.value.findIndex((y) => De(y, d));
|
|
3007
|
+
if (m > -1)
|
|
3008
|
+
c.splice(m, 1);
|
|
3004
3009
|
else {
|
|
3005
|
-
const
|
|
3006
|
-
c.push(
|
|
3010
|
+
const y = e.emitValue() === !0 ? d : g;
|
|
3011
|
+
c.push(y);
|
|
3007
3012
|
}
|
|
3008
3013
|
e.emit.updateModelValue(c), e.isOpened.value && e.popperUpdate();
|
|
3009
3014
|
}
|
|
3010
|
-
function g
|
|
3011
|
-
if (
|
|
3015
|
+
function v(g) {
|
|
3016
|
+
if (g > -1 && g < n.value.length)
|
|
3012
3017
|
if (e.multiple() === !0) {
|
|
3013
3018
|
const d = e.modelValue().slice();
|
|
3014
|
-
d.splice(
|
|
3019
|
+
d.splice(g, 1), e.emit.updateModelValue(d);
|
|
3015
3020
|
} else
|
|
3016
3021
|
e.emit.updateModelValue(null);
|
|
3017
3022
|
}
|
|
@@ -3029,45 +3034,45 @@ function eo(e) {
|
|
|
3029
3034
|
innerOptionsValue: a,
|
|
3030
3035
|
optionScope: s,
|
|
3031
3036
|
toggleOption: u,
|
|
3032
|
-
removeAtIndex:
|
|
3037
|
+
removeAtIndex: v,
|
|
3033
3038
|
isOptionSelected: i,
|
|
3034
3039
|
onReset: b
|
|
3035
3040
|
};
|
|
3036
3041
|
}
|
|
3037
|
-
const
|
|
3042
|
+
const no = { class: "vc-select__trigger" }, ao = { class: "vc-select__control" }, lo = {
|
|
3038
3043
|
key: 0,
|
|
3039
3044
|
class: "vc-select__prepend"
|
|
3040
|
-
},
|
|
3045
|
+
}, oo = { class: "vc-select__field" }, io = { class: "vc-select__field-inner" }, ro = { class: "vc-select__field-content" }, so = {
|
|
3041
3046
|
key: 0,
|
|
3042
3047
|
class: "vc-select__prepend-inner"
|
|
3043
|
-
},
|
|
3048
|
+
}, uo = { class: "vc-select__field-main" }, co = {
|
|
3044
3049
|
key: 0,
|
|
3045
3050
|
class: "vc-select__prefix"
|
|
3046
|
-
},
|
|
3051
|
+
}, fo = ["aria-expanded", "aria-controls", "aria-labelledby", "aria-describedby", "aria-required", "aria-invalid"], vo = {
|
|
3047
3052
|
key: 0,
|
|
3048
3053
|
class: "vc-select__placeholder"
|
|
3049
|
-
},
|
|
3054
|
+
}, go = {
|
|
3050
3055
|
key: 1,
|
|
3051
3056
|
class: "vc-select__selected"
|
|
3052
|
-
},
|
|
3057
|
+
}, mo = { class: "vc-select__multiple-item" }, po = {
|
|
3053
3058
|
key: 0,
|
|
3054
3059
|
class: "vc-select__loading"
|
|
3055
|
-
},
|
|
3060
|
+
}, bo = { key: 1 }, yo = ["aria-label", "onClick", "onKeydown"], ho = {
|
|
3056
3061
|
key: 0,
|
|
3057
3062
|
class: "vc-select__loading"
|
|
3058
|
-
},
|
|
3063
|
+
}, Io = {
|
|
3059
3064
|
key: 1,
|
|
3060
3065
|
class: "vc-select__suffix"
|
|
3061
|
-
},
|
|
3066
|
+
}, ko = ["aria-label"], So = {
|
|
3062
3067
|
key: 1,
|
|
3063
3068
|
class: "vc-select__append-inner"
|
|
3064
|
-
},
|
|
3069
|
+
}, $o = {
|
|
3065
3070
|
key: 2,
|
|
3066
3071
|
class: "vc-select__loading-icon"
|
|
3067
|
-
},
|
|
3072
|
+
}, Eo = ["aria-label"], Oo = { class: "vc-select__chevron" }, wo = {
|
|
3068
3073
|
key: 1,
|
|
3069
3074
|
class: "vc-select__append"
|
|
3070
|
-
},
|
|
3075
|
+
}, Lo = { class: "vc-select__hint-error" }, Co = { key: 0 }, To = { key: 1 }, Bo = /* @__PURE__ */ V({
|
|
3071
3076
|
__name: "SelectTrigger",
|
|
3072
3077
|
props: {
|
|
3073
3078
|
isOpened: { type: Boolean },
|
|
@@ -3102,7 +3107,7 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3102
3107
|
const { t: n } = ye({ useScope: "global" }), a = S(null);
|
|
3103
3108
|
return t({
|
|
3104
3109
|
toggleRef: a
|
|
3105
|
-
}), (i, o) => (f(),
|
|
3110
|
+
}), (i, o) => (f(), h("div", no, [
|
|
3106
3111
|
C("div", {
|
|
3107
3112
|
ref_key: "toggleRef",
|
|
3108
3113
|
ref: a,
|
|
@@ -3112,8 +3117,8 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3112
3117
|
toggleHandler: e.toggleDropdown,
|
|
3113
3118
|
isOpened: e.isOpened
|
|
3114
3119
|
}, () => [
|
|
3115
|
-
C("div",
|
|
3116
|
-
i.$slots.prepend ? (f(),
|
|
3120
|
+
C("div", ao, [
|
|
3121
|
+
i.$slots.prepend ? (f(), h("div", lo, [
|
|
3117
3122
|
B(i.$slots, "prepend")
|
|
3118
3123
|
])) : w("", !0),
|
|
3119
3124
|
C("div", {
|
|
@@ -3122,14 +3127,14 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3122
3127
|
"vc-select__field-wrapper--small": e.size === "small"
|
|
3123
3128
|
}])
|
|
3124
3129
|
}, [
|
|
3125
|
-
C("div",
|
|
3126
|
-
C("div",
|
|
3127
|
-
C("div",
|
|
3128
|
-
i.$slots["prepend-inner"] ? (f(),
|
|
3130
|
+
C("div", oo, [
|
|
3131
|
+
C("div", io, [
|
|
3132
|
+
C("div", ro, [
|
|
3133
|
+
i.$slots["prepend-inner"] ? (f(), h("div", so, [
|
|
3129
3134
|
B(i.$slots, "prepend-inner")
|
|
3130
3135
|
])) : w("", !0),
|
|
3131
|
-
C("div",
|
|
3132
|
-
e.prefix ? (f(),
|
|
3136
|
+
C("div", uo, [
|
|
3137
|
+
e.prefix ? (f(), h("div", co, M(e.prefix), 1)) : w("", !0),
|
|
3133
3138
|
C("div", {
|
|
3134
3139
|
"data-test-id": "dropdown-toggle",
|
|
3135
3140
|
class: "vc-select__input",
|
|
@@ -3162,8 +3167,8 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3162
3167
|
onFocus: o[3] || (o[3] = (l) => i.$emit("focus")),
|
|
3163
3168
|
onBlur: o[4] || (o[4] = (l) => i.$emit("blur"))
|
|
3164
3169
|
}, [
|
|
3165
|
-
e.hasValue ? e.selectedScope && e.selectedScope.length && e.hasValue ? (f(),
|
|
3166
|
-
(f(!0),
|
|
3170
|
+
e.hasValue ? e.selectedScope && e.selectedScope.length && e.hasValue ? (f(), h("div", go, [
|
|
3171
|
+
(f(!0), h(Ce, null, rt(e.selectedScope, (l, s) => (f(), h("div", {
|
|
3167
3172
|
key: s,
|
|
3168
3173
|
class: "vc-select__selected-item"
|
|
3169
3174
|
}, [
|
|
@@ -3171,9 +3176,9 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3171
3176
|
key: 0,
|
|
3172
3177
|
ref_for: !0
|
|
3173
3178
|
}, l), () => [
|
|
3174
|
-
C("div",
|
|
3175
|
-
e.loading ? (f(),
|
|
3176
|
-
e.disabled ? w("", !0) : (f(),
|
|
3179
|
+
C("div", mo, [
|
|
3180
|
+
e.loading ? (f(), h("span", po, M(r(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : (f(), h("span", bo, M(e.getOptionLabel(l.opt)), 1)),
|
|
3181
|
+
e.disabled ? w("", !0) : (f(), h("button", {
|
|
3177
3182
|
key: 2,
|
|
3178
3183
|
type: "button",
|
|
3179
3184
|
class: "vc-select__chip-remove",
|
|
@@ -3187,10 +3192,10 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3187
3192
|
icon: "lucide-x",
|
|
3188
3193
|
size: "xs"
|
|
3189
3194
|
})
|
|
3190
|
-
], 40,
|
|
3195
|
+
], 40, yo))
|
|
3191
3196
|
])
|
|
3192
|
-
]) : e.multiple ? w("", !0) : (f(),
|
|
3193
|
-
e.loading ? (f(),
|
|
3197
|
+
]) : e.multiple ? w("", !0) : (f(), h(Ce, { key: 1 }, [
|
|
3198
|
+
e.loading ? (f(), h("span", ho, M(r(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : B(i.$slots, "selected-item", ae({
|
|
3194
3199
|
key: 1,
|
|
3195
3200
|
ref_for: !0
|
|
3196
3201
|
}, l), () => [
|
|
@@ -3198,16 +3203,16 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3198
3203
|
])
|
|
3199
3204
|
], 64))
|
|
3200
3205
|
]))), 128))
|
|
3201
|
-
])) : w("", !0) : (f(),
|
|
3202
|
-
e.placeholder ? (f(),
|
|
3206
|
+
])) : w("", !0) : (f(), h("div", vo, [
|
|
3207
|
+
e.placeholder ? (f(), h(Ce, { key: 0 }, [
|
|
3203
3208
|
ee(M(e.placeholder), 1)
|
|
3204
|
-
], 64)) : (f(),
|
|
3209
|
+
], 64)) : (f(), h(Ce, { key: 1 }, [
|
|
3205
3210
|
ee(M(r(n)("COMPONENTS.MOLECULES.VC_SELECT.CLICK_TO_SELECT")), 1)
|
|
3206
3211
|
], 64))
|
|
3207
3212
|
]))
|
|
3208
|
-
], 40,
|
|
3209
|
-
e.suffix ? (f(),
|
|
3210
|
-
e.clearable && e.hasValue && !e.disabled ? (f(),
|
|
3213
|
+
], 40, fo),
|
|
3214
|
+
e.suffix ? (f(), h("div", Io, M(e.suffix), 1)) : w("", !0),
|
|
3215
|
+
e.clearable && e.hasValue && !e.disabled ? (f(), h("div", {
|
|
3211
3216
|
key: 2,
|
|
3212
3217
|
class: "vc-select__clear",
|
|
3213
3218
|
role: "button",
|
|
@@ -3223,19 +3228,19 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3223
3228
|
size: "xs",
|
|
3224
3229
|
icon: "lucide-x"
|
|
3225
3230
|
})
|
|
3226
|
-
], 40,
|
|
3231
|
+
], 40, ko)) : w("", !0)
|
|
3227
3232
|
]),
|
|
3228
|
-
i.$slots["append-inner"] ? (f(),
|
|
3233
|
+
i.$slots["append-inner"] ? (f(), h("div", So, [
|
|
3229
3234
|
B(i.$slots, "append-inner")
|
|
3230
3235
|
])) : w("", !0),
|
|
3231
|
-
e.loading || e.listLoading || e.defaultOptionLoading ? (f(),
|
|
3236
|
+
e.loading || e.listLoading || e.defaultOptionLoading ? (f(), h("div", $o, [
|
|
3232
3237
|
R(r(W), {
|
|
3233
3238
|
icon: "lucide-loader-2",
|
|
3234
3239
|
class: "tw-animate-spin",
|
|
3235
3240
|
size: "m"
|
|
3236
3241
|
})
|
|
3237
3242
|
])) : w("", !0),
|
|
3238
|
-
e.disabled ? w("", !0) : (f(),
|
|
3243
|
+
e.disabled ? w("", !0) : (f(), h("div", {
|
|
3239
3244
|
key: 3,
|
|
3240
3245
|
class: "vc-select__chevron-container",
|
|
3241
3246
|
role: "button",
|
|
@@ -3259,30 +3264,30 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3259
3264
|
), ["space"]))
|
|
3260
3265
|
]
|
|
3261
3266
|
}, [
|
|
3262
|
-
C("div",
|
|
3267
|
+
C("div", Oo, [
|
|
3263
3268
|
R(r(W), {
|
|
3264
3269
|
size: "s",
|
|
3265
3270
|
icon: "lucide-chevron-down"
|
|
3266
3271
|
})
|
|
3267
3272
|
])
|
|
3268
|
-
], 40,
|
|
3273
|
+
], 40, Eo))
|
|
3269
3274
|
])
|
|
3270
3275
|
])
|
|
3271
3276
|
])
|
|
3272
3277
|
], 2),
|
|
3273
|
-
i.$slots.append ? (f(),
|
|
3278
|
+
i.$slots.append ? (f(), h("div", wo, [
|
|
3274
3279
|
B(i.$slots, "append")
|
|
3275
3280
|
])) : w("", !0)
|
|
3276
3281
|
])
|
|
3277
3282
|
])
|
|
3278
3283
|
], 512),
|
|
3279
|
-
C("div",
|
|
3284
|
+
C("div", Lo, [
|
|
3280
3285
|
R(Pe, {
|
|
3281
3286
|
name: "slide-up",
|
|
3282
3287
|
mode: "out-in"
|
|
3283
3288
|
}, {
|
|
3284
3289
|
default: L(() => [
|
|
3285
|
-
e.error && e.errorMessage ? (f(),
|
|
3290
|
+
e.error && e.errorMessage ? (f(), h("div", Co, [
|
|
3286
3291
|
B(i.$slots, "error", {}, () => [
|
|
3287
3292
|
R(r(be), {
|
|
3288
3293
|
id: e.errorId,
|
|
@@ -3295,7 +3300,7 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3295
3300
|
_: 1
|
|
3296
3301
|
}, 8, ["id"])
|
|
3297
3302
|
])
|
|
3298
|
-
])) : (f(),
|
|
3303
|
+
])) : (f(), h("div", To, [
|
|
3299
3304
|
B(i.$slots, "hint", {}, () => [
|
|
3300
3305
|
e.hint ? (f(), D(r(be), {
|
|
3301
3306
|
key: 0,
|
|
@@ -3315,16 +3320,16 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3315
3320
|
])
|
|
3316
3321
|
]));
|
|
3317
3322
|
}
|
|
3318
|
-
}),
|
|
3323
|
+
}), Ro = ["id", "aria-label"], xo = ["aria-label"], Mo = ["aria-selected", "data-index", "onClick", "onKeydown"], No = {
|
|
3319
3324
|
key: 0,
|
|
3320
3325
|
class: "vc-select__check-icon"
|
|
3321
|
-
},
|
|
3326
|
+
}, Ao = {
|
|
3322
3327
|
key: 0,
|
|
3323
3328
|
class: "vc-select__list-loading-indicator"
|
|
3324
|
-
},
|
|
3329
|
+
}, Do = { class: "tw-ms-1" }, Vo = {
|
|
3325
3330
|
key: 1,
|
|
3326
3331
|
class: "vc-select__no-options"
|
|
3327
|
-
},
|
|
3332
|
+
}, Po = { class: "vc-select__no-options-text" }, zo = /* @__PURE__ */ V({
|
|
3328
3333
|
__name: "SelectDropdown",
|
|
3329
3334
|
props: {
|
|
3330
3335
|
isOpened: { type: Boolean },
|
|
@@ -3340,36 +3345,36 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3340
3345
|
},
|
|
3341
3346
|
emits: ["input", "clickOutside"],
|
|
3342
3347
|
setup(e, { expose: t, emit: n }) {
|
|
3343
|
-
const a = e, i = n, { t: o } = ye({ useScope: "global" }), { teleportTarget: l } = Sn(), s = S(null), u = S(null),
|
|
3348
|
+
const a = e, i = n, { t: o } = ye({ useScope: "global" }), { teleportTarget: l } = Sn(), s = S(null), u = S(null), v = S(null), b = S(null), g = O(() => v.value?.viewportRef ?? null);
|
|
3344
3349
|
function d(c) {
|
|
3345
|
-
const
|
|
3346
|
-
if (!
|
|
3347
|
-
if (
|
|
3348
|
-
const T =
|
|
3349
|
-
(T ||
|
|
3350
|
+
const m = g.value;
|
|
3351
|
+
if (!m) return;
|
|
3352
|
+
if (m.contains(c.target)) {
|
|
3353
|
+
const T = m.scrollTop <= 0 && c.deltaY < 0, p = Dt(m) && c.deltaY > 0;
|
|
3354
|
+
(T || p) && c.preventDefault();
|
|
3350
3355
|
} else
|
|
3351
|
-
c.preventDefault(),
|
|
3352
|
-
|
|
3356
|
+
c.preventDefault(), m.scrollTop += c.deltaY;
|
|
3357
|
+
v.value?.updateScrollState();
|
|
3353
3358
|
}
|
|
3354
3359
|
return Y(
|
|
3355
3360
|
() => a.isOpened,
|
|
3356
3361
|
(c) => {
|
|
3357
|
-
c && Ee(() =>
|
|
3362
|
+
c && Ee(() => v.value?.updateScrollState());
|
|
3358
3363
|
}
|
|
3359
3364
|
), Y(
|
|
3360
3365
|
() => a.optionScope.length,
|
|
3361
3366
|
() => {
|
|
3362
|
-
a.isOpened && Ee(() =>
|
|
3367
|
+
a.isOpened && Ee(() => v.value?.updateScrollState());
|
|
3363
3368
|
}
|
|
3364
3369
|
), t({
|
|
3365
3370
|
dropdownElRef: s,
|
|
3366
3371
|
searchInputRef: u,
|
|
3367
|
-
viewportRef:
|
|
3372
|
+
viewportRef: g,
|
|
3368
3373
|
loadMoreRef: b
|
|
3369
|
-
}), (c,
|
|
3374
|
+
}), (c, m) => (f(), D(sn, { to: r(l) }, [
|
|
3370
3375
|
R(Pe, { name: "select-dropdown" }, {
|
|
3371
3376
|
default: L(() => [
|
|
3372
|
-
e.isOpened ? ut((f(),
|
|
3377
|
+
e.isOpened ? ut((f(), h("div", {
|
|
3373
3378
|
key: 0,
|
|
3374
3379
|
id: e.listboxId,
|
|
3375
3380
|
ref_key: "dropdownElRef",
|
|
@@ -3381,7 +3386,7 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3381
3386
|
style: Ve(e.dropdownStyle),
|
|
3382
3387
|
onWheel: d
|
|
3383
3388
|
}, [
|
|
3384
|
-
e.searchable ? (f(),
|
|
3389
|
+
e.searchable ? (f(), h("input", {
|
|
3385
3390
|
key: 0,
|
|
3386
3391
|
ref_key: "searchInputRef",
|
|
3387
3392
|
ref: u,
|
|
@@ -3389,58 +3394,58 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3389
3394
|
tabindex: "0",
|
|
3390
3395
|
"aria-label": c.$t("COMPONENTS.CONTROLS.SEARCH_OPTIONS"),
|
|
3391
3396
|
autocomplete: "off",
|
|
3392
|
-
onInput:
|
|
3397
|
+
onInput: m[0] || (m[0] = (y) => i("input", y)),
|
|
3393
3398
|
onKeydown: [
|
|
3394
|
-
|
|
3399
|
+
m[1] || (m[1] = _(J(() => {
|
|
3395
3400
|
}, ["stop"]), ["space"])),
|
|
3396
|
-
|
|
3401
|
+
m[2] || (m[2] = _(J(() => {
|
|
3397
3402
|
}, ["stop"]), ["enter"]))
|
|
3398
3403
|
]
|
|
3399
|
-
}, null, 40,
|
|
3400
|
-
R(r(
|
|
3404
|
+
}, null, 40, xo)) : w("", !0),
|
|
3405
|
+
R(r(ol), {
|
|
3401
3406
|
ref_key: "scrollContainerRef",
|
|
3402
|
-
ref:
|
|
3407
|
+
ref: v,
|
|
3403
3408
|
class: "vc-select__scroll-container"
|
|
3404
3409
|
}, {
|
|
3405
3410
|
default: L(() => [
|
|
3406
|
-
(f(!0),
|
|
3411
|
+
(f(!0), h(Ce, null, rt(e.optionScope, (y, T) => (f(), h("div", {
|
|
3407
3412
|
key: T,
|
|
3408
|
-
class: G(["vc-select__option", { "vc-select__option--selected":
|
|
3413
|
+
class: G(["vc-select__option", { "vc-select__option--selected": y.selected }]),
|
|
3409
3414
|
"data-test-id": "option",
|
|
3410
3415
|
role: "option",
|
|
3411
|
-
"aria-selected":
|
|
3416
|
+
"aria-selected": y.selected,
|
|
3412
3417
|
tabindex: "0",
|
|
3413
3418
|
"data-index": T,
|
|
3414
|
-
onClick: (
|
|
3419
|
+
onClick: (p) => y.toggleOption(y.opt),
|
|
3415
3420
|
onKeydown: [
|
|
3416
|
-
_((
|
|
3417
|
-
_((
|
|
3421
|
+
_((p) => y.toggleOption(y.opt), ["enter"]),
|
|
3422
|
+
_((p) => y.toggleOption(y.opt), ["space"])
|
|
3418
3423
|
]
|
|
3419
3424
|
}, [
|
|
3420
|
-
B(c.$slots, "option", ae({ ref_for: !0 },
|
|
3421
|
-
ee(M(
|
|
3425
|
+
B(c.$slots, "option", ae({ ref_for: !0 }, y), () => [
|
|
3426
|
+
ee(M(y.label), 1)
|
|
3422
3427
|
]),
|
|
3423
|
-
|
|
3428
|
+
y.selected ? (f(), h("span", No, [
|
|
3424
3429
|
R(r(W), {
|
|
3425
3430
|
icon: "lucide-check",
|
|
3426
3431
|
size: "xs"
|
|
3427
3432
|
})
|
|
3428
3433
|
])) : w("", !0)
|
|
3429
|
-
], 42,
|
|
3430
|
-
e.listLoading ? (f(),
|
|
3434
|
+
], 42, Mo))), 128)),
|
|
3435
|
+
e.listLoading ? (f(), h("div", Ao, [
|
|
3431
3436
|
R(r(W), {
|
|
3432
3437
|
icon: "lucide-loader-2",
|
|
3433
3438
|
class: "tw-animate-spin",
|
|
3434
3439
|
size: "m"
|
|
3435
3440
|
}),
|
|
3436
|
-
C("span",
|
|
3441
|
+
C("span", Do, M(e.optionsListLength > 0 ? r(o)("COMPONENTS.MOLECULES.VC_SELECT.LOADING_MORE") : r(o)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)
|
|
3437
3442
|
])) : w("", !0),
|
|
3438
|
-
!e.listLoading && !e.optionsListLength ? (f(),
|
|
3443
|
+
!e.listLoading && !e.optionsListLength ? (f(), h("div", Vo, [
|
|
3439
3444
|
B(c.$slots, "no-options", {}, () => [
|
|
3440
|
-
C("span",
|
|
3445
|
+
C("span", Po, M(r(o)("COMPONENTS.MOLECULES.VC_SELECT.NO_OPTIONS")), 1)
|
|
3441
3446
|
])
|
|
3442
3447
|
])) : w("", !0),
|
|
3443
|
-
e.hasNextPage && !e.listLoading ? (f(),
|
|
3448
|
+
e.hasNextPage && !e.listLoading ? (f(), h("span", {
|
|
3444
3449
|
key: 2,
|
|
3445
3450
|
ref_key: "loadMoreRef",
|
|
3446
3451
|
ref: b,
|
|
@@ -3449,7 +3454,7 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3449
3454
|
]),
|
|
3450
3455
|
_: 3
|
|
3451
3456
|
}, 512)
|
|
3452
|
-
], 44,
|
|
3457
|
+
], 44, Ro)), [
|
|
3453
3458
|
[r(zn), [() => i("clickOutside"), { ignore: [e.dropdownToggleRef] }]]
|
|
3454
3459
|
]) : w("", !0)
|
|
3455
3460
|
]),
|
|
@@ -3457,7 +3462,7 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3457
3462
|
})
|
|
3458
3463
|
], 8, ["to"]));
|
|
3459
3464
|
}
|
|
3460
|
-
}),
|
|
3465
|
+
}), Fo = ["innerHTML"], Ko = { class: "vc-select__field-container" }, Uo = /* @__PURE__ */ V({
|
|
3461
3466
|
inheritAttrs: !1,
|
|
3462
3467
|
__name: "vc-select",
|
|
3463
3468
|
props: {
|
|
@@ -3496,18 +3501,18 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3496
3501
|
return te;
|
|
3497
3502
|
}), o = t, { t: l } = ye({ useScope: "global" }), s = we(), {
|
|
3498
3503
|
fieldId: u,
|
|
3499
|
-
labelId:
|
|
3504
|
+
labelId: v,
|
|
3500
3505
|
errorId: b,
|
|
3501
|
-
hintId:
|
|
3506
|
+
hintId: g,
|
|
3502
3507
|
invalid: d,
|
|
3503
3508
|
resolvedDisabled: c,
|
|
3504
|
-
resolvedName:
|
|
3505
|
-
ariaRequired:
|
|
3509
|
+
resolvedName: m,
|
|
3510
|
+
ariaRequired: y,
|
|
3506
3511
|
ariaDescribedBy: T
|
|
3507
|
-
} = Ge(n),
|
|
3512
|
+
} = Ge(n), p = O(() => `${u.value}-listbox`), $ = S(null), P = S(null), { selectRootRef: U, isSelectVisible: ne, ensureVisibility: Z } = Ql(), { getOptionValue: le, getOptionLabel: Q, getOption: ce, getEmittingOptionValue: fe, fieldValueIsFilled: ie } = Zl({
|
|
3508
3513
|
optionValue: () => n.optionValue,
|
|
3509
3514
|
optionLabel: () => n.optionLabel
|
|
3510
|
-
}), { isOpened: F, isFocused: H, dropdownToggleRef: A, dropdownRef: k, popper: E, dropdownStyle: K, toggleDropdown: z } =
|
|
3515
|
+
}), { isOpened: F, isFocused: H, dropdownToggleRef: A, dropdownRef: k, popper: E, dropdownStyle: K, toggleDropdown: z } = _l({
|
|
3511
3516
|
placement: n.placement,
|
|
3512
3517
|
outline: () => n.outline,
|
|
3513
3518
|
isSelectVisible: ne,
|
|
@@ -3520,7 +3525,7 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3520
3525
|
}), nt(() => {
|
|
3521
3526
|
k.value = P.value?.dropdownElRef ?? null;
|
|
3522
3527
|
});
|
|
3523
|
-
const
|
|
3528
|
+
const I = eo({
|
|
3524
3529
|
options: () => n.options,
|
|
3525
3530
|
getOptionValue: le,
|
|
3526
3531
|
getOptionLabel: Q,
|
|
@@ -3529,14 +3534,14 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3529
3534
|
emit: {
|
|
3530
3535
|
search: (N) => o("search", N)
|
|
3531
3536
|
}
|
|
3532
|
-
}), { selectedScope: x, hasValue: q, optionScope: ve, removeAtIndex: Re, onReset: Xt } =
|
|
3537
|
+
}), { selectedScope: x, hasValue: q, optionScope: ve, removeAtIndex: Re, onReset: Xt } = to({
|
|
3533
3538
|
modelValue: () => n.modelValue,
|
|
3534
3539
|
multiple: () => n.multiple,
|
|
3535
3540
|
emitValue: () => n.emitValue ?? !0,
|
|
3536
3541
|
mapOptions: () => n.mapOptions ?? !0,
|
|
3537
|
-
displayItems:
|
|
3538
|
-
resolvedDefaults:
|
|
3539
|
-
cachedItems:
|
|
3542
|
+
displayItems: I.displayItems,
|
|
3543
|
+
resolvedDefaults: I.resolvedDefaults,
|
|
3544
|
+
cachedItems: I.cachedItems,
|
|
3540
3545
|
getOptionValue: le,
|
|
3541
3546
|
getOptionLabel: Q,
|
|
3542
3547
|
getOption: ce,
|
|
@@ -3551,14 +3556,14 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3551
3556
|
Tn(
|
|
3552
3557
|
Zt,
|
|
3553
3558
|
([{ isIntersecting: N }]) => {
|
|
3554
|
-
N &&
|
|
3559
|
+
N && I.hasMore.value && I.loadMore();
|
|
3555
3560
|
},
|
|
3556
3561
|
// The trigger is a 1px line at the end of the list. Asking for all of it to show never fires
|
|
3557
3562
|
// under a fractional zoom, where the scrolled-to-end line sits a fraction past the viewport.
|
|
3558
3563
|
// Any part showing is enough, and the margin starts the next page just before the end.
|
|
3559
3564
|
{ threshold: 0, rootMargin: "0px 0px 48px 0px", root: Qt }
|
|
3560
3565
|
);
|
|
3561
|
-
const Ze =
|
|
3566
|
+
const Ze = Xl({
|
|
3562
3567
|
onEnter: (N) => {
|
|
3563
3568
|
const te = parseInt(N.getAttribute("data-index") || "0", 10);
|
|
3564
3569
|
ve.value && ve.value[te] && ve.value[te].toggleOption(ve.value[te].opt);
|
|
@@ -3573,7 +3578,7 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3573
3578
|
F.value = !1, o("close");
|
|
3574
3579
|
}
|
|
3575
3580
|
return Y(F, async (N) => {
|
|
3576
|
-
N ? (await
|
|
3581
|
+
N ? (await I.open(), Ee(() => {
|
|
3577
3582
|
E.update();
|
|
3578
3583
|
const te = P.value?.dropdownElRef, re = P.value?.searchInputRef;
|
|
3579
3584
|
if (te)
|
|
@@ -3585,12 +3590,12 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3585
3590
|
);
|
|
3586
3591
|
xe ? xe.focus() : Ze.focusFirstElement();
|
|
3587
3592
|
}
|
|
3588
|
-
})) : (Ze.cleanupKeyboardNavigation(),
|
|
3593
|
+
})) : (Ze.cleanupKeyboardNavigation(), I.close());
|
|
3589
3594
|
}), Y(
|
|
3590
3595
|
() => n.modelValue,
|
|
3591
3596
|
async (N) => {
|
|
3592
3597
|
if (N == null || Array.isArray(N) && N.length === 0) {
|
|
3593
|
-
|
|
3598
|
+
I.resolvedDefaults.value = [];
|
|
3594
3599
|
return;
|
|
3595
3600
|
}
|
|
3596
3601
|
const te = n.emitValue ?? !0;
|
|
@@ -3598,12 +3603,12 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3598
3603
|
const xe = Array.isArray(N) ? N : [N], yt = te ? xe : xe.filter((Me) => Me != null && typeof Me != "object");
|
|
3599
3604
|
if (yt.length > 0) {
|
|
3600
3605
|
const Me = yt.filter((en) => en != null).map(String);
|
|
3601
|
-
Me.length > 0 && await
|
|
3606
|
+
Me.length > 0 && await I.resolve(Me);
|
|
3602
3607
|
}
|
|
3603
3608
|
}
|
|
3604
3609
|
},
|
|
3605
3610
|
{ immediate: !0 }
|
|
3606
|
-
), (N, te) => r(s) ? (f(),
|
|
3611
|
+
), (N, te) => r(s) ? (f(), h("div", ae({ key: 0 }, i.value, {
|
|
3607
3612
|
class: ["vc-select vc-select--skeleton", N.$attrs.class]
|
|
3608
3613
|
}), [
|
|
3609
3614
|
e.label ? (f(), D(r(oe), {
|
|
@@ -3617,7 +3622,7 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3617
3622
|
width: "100%",
|
|
3618
3623
|
height: 36
|
|
3619
3624
|
})
|
|
3620
|
-
], 16)) : (f(),
|
|
3625
|
+
], 16)) : (f(), h("div", ae({
|
|
3621
3626
|
key: 1,
|
|
3622
3627
|
ref_key: "selectRootRef",
|
|
3623
3628
|
ref: U
|
|
@@ -3636,7 +3641,7 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3636
3641
|
}), [
|
|
3637
3642
|
e.label ? (f(), D(r(Xe), {
|
|
3638
3643
|
key: 0,
|
|
3639
|
-
id: r(
|
|
3644
|
+
id: r(v),
|
|
3640
3645
|
class: "vc-select__label",
|
|
3641
3646
|
required: e.required,
|
|
3642
3647
|
multilanguage: e.multilanguage,
|
|
@@ -3653,13 +3658,13 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3653
3658
|
fn: L(() => [
|
|
3654
3659
|
C("span", {
|
|
3655
3660
|
innerHTML: r(Mt).sanitize(e.tooltip)
|
|
3656
|
-
}, null, 8,
|
|
3661
|
+
}, null, 8, Fo)
|
|
3657
3662
|
]),
|
|
3658
3663
|
key: "0"
|
|
3659
3664
|
} : void 0
|
|
3660
3665
|
]), 1032, ["id", "required", "multilanguage", "current-language", "error"])) : w("", !0),
|
|
3661
|
-
C("div",
|
|
3662
|
-
R(
|
|
3666
|
+
C("div", Ko, [
|
|
3667
|
+
R(Bo, {
|
|
3663
3668
|
ref_key: "selectTriggerRef",
|
|
3664
3669
|
ref: $,
|
|
3665
3670
|
"is-opened": r(F),
|
|
@@ -3676,15 +3681,15 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3676
3681
|
error: r(d),
|
|
3677
3682
|
"error-message": e.errorMessage,
|
|
3678
3683
|
hint: e.hint,
|
|
3679
|
-
"list-loading": r(
|
|
3680
|
-
"default-option-loading": r(
|
|
3681
|
-
"listbox-id":
|
|
3682
|
-
"label-id": r(
|
|
3684
|
+
"list-loading": r(I).loading.value || r(I).searchLoading.value,
|
|
3685
|
+
"default-option-loading": r(I).defaultOptionLoading.value,
|
|
3686
|
+
"listbox-id": p.value,
|
|
3687
|
+
"label-id": r(v),
|
|
3683
3688
|
label: e.label,
|
|
3684
3689
|
"aria-described-by": r(T),
|
|
3685
|
-
"aria-required": r(
|
|
3690
|
+
"aria-required": r(y),
|
|
3686
3691
|
"error-id": r(b),
|
|
3687
|
-
"hint-id": r(
|
|
3692
|
+
"hint-id": r(g),
|
|
3688
3693
|
"toggle-dropdown": r(z),
|
|
3689
3694
|
"get-option-label": r(Q),
|
|
3690
3695
|
"get-emitting-option-value": r(fe),
|
|
@@ -3750,20 +3755,20 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3750
3755
|
key: "7"
|
|
3751
3756
|
} : void 0
|
|
3752
3757
|
]), 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"]),
|
|
3753
|
-
R(
|
|
3758
|
+
R(zo, ae({
|
|
3754
3759
|
ref_key: "selectDropdownRef",
|
|
3755
3760
|
ref: P,
|
|
3756
3761
|
"is-opened": r(F),
|
|
3757
|
-
"listbox-id":
|
|
3762
|
+
"listbox-id": p.value
|
|
3758
3763
|
}, { ariaLabel: e.label || e.name }, {
|
|
3759
3764
|
"dropdown-style": r(K),
|
|
3760
3765
|
searchable: e.searchable,
|
|
3761
3766
|
"option-scope": r(ve),
|
|
3762
|
-
"list-loading": r(
|
|
3763
|
-
"options-list-length": r(
|
|
3764
|
-
"has-next-page": r(
|
|
3767
|
+
"list-loading": r(I).loading.value || r(I).searchLoading.value,
|
|
3768
|
+
"options-list-length": r(I).displayItems.value.length,
|
|
3769
|
+
"has-next-page": r(I).hasMore.value,
|
|
3765
3770
|
"dropdown-toggle-ref": $.value?.toggleRef ?? null,
|
|
3766
|
-
onInput: r(
|
|
3771
|
+
onInput: r(I).onInput,
|
|
3767
3772
|
onClickOutside: _t
|
|
3768
3773
|
}), se({ _: 2 }, [
|
|
3769
3774
|
N.$slots.option ? {
|
|
@@ -3784,10 +3789,10 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3784
3789
|
])
|
|
3785
3790
|
], 16));
|
|
3786
3791
|
}
|
|
3787
|
-
}),
|
|
3792
|
+
}), qo = {
|
|
3788
3793
|
key: 0,
|
|
3789
3794
|
class: "vc-input-dropdown vc-input-dropdown--skeleton"
|
|
3790
|
-
},
|
|
3795
|
+
}, Wo = { class: "tw-flex tw-items-center" }, jo = ["aria-label", "aria-expanded", "onClick", "onKeydown"], Ho = /* @__PURE__ */ V({
|
|
3791
3796
|
__name: "vc-input-dropdown",
|
|
3792
3797
|
props: {
|
|
3793
3798
|
modelValue: {},
|
|
@@ -3821,7 +3826,7 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3821
3826
|
emits: ["update:model-value", "update:option", "change", "blur"],
|
|
3822
3827
|
setup(e) {
|
|
3823
3828
|
const t = we();
|
|
3824
|
-
return (n, a) => r(t) ? (f(),
|
|
3829
|
+
return (n, a) => r(t) ? (f(), h("div", qo, [
|
|
3825
3830
|
e.label ? (f(), D(r(oe), {
|
|
3826
3831
|
key: 0,
|
|
3827
3832
|
variant: "block",
|
|
@@ -3833,7 +3838,7 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3833
3838
|
width: "100%",
|
|
3834
3839
|
height: 36
|
|
3835
3840
|
})
|
|
3836
|
-
])) : (f(), D(r(
|
|
3841
|
+
])) : (f(), D(r(Uo), {
|
|
3837
3842
|
key: 1,
|
|
3838
3843
|
class: "vc-input-dropdown",
|
|
3839
3844
|
options: e.options,
|
|
@@ -3875,9 +3880,9 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3875
3880
|
onBlur: a[1] || (a[1] = (l) => n.$emit("blur", l))
|
|
3876
3881
|
}, se({
|
|
3877
3882
|
"append-inner": L(() => [
|
|
3878
|
-
C("div",
|
|
3883
|
+
C("div", Wo, [
|
|
3879
3884
|
B(n.$slots, "button", { toggleHandler: i }, () => [
|
|
3880
|
-
e.options && e.options.length ? (f(),
|
|
3885
|
+
e.options && e.options.length ? (f(), h("button", {
|
|
3881
3886
|
key: 0,
|
|
3882
3887
|
type: "button",
|
|
3883
3888
|
class: "vc-input-dropdown__toggle-button",
|
|
@@ -3890,7 +3895,7 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3890
3895
|
_(J(i, ["stop", "prevent"]), ["enter"]),
|
|
3891
3896
|
_(J(i, ["stop", "prevent"]), ["space"])
|
|
3892
3897
|
]
|
|
3893
|
-
}, M(r(e.option)), 41,
|
|
3898
|
+
}, M(r(e.option)), 41, jo)) : w("", !0)
|
|
3894
3899
|
]),
|
|
3895
3900
|
e.options && e.options.length ? (f(), D(r(Ra), {
|
|
3896
3901
|
key: 0,
|
|
@@ -3939,10 +3944,10 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
3939
3944
|
_: 3
|
|
3940
3945
|
}, 8, ["options", "option-label", "option-value", "searchable", "debounce", "disabled", "label", "required", "model-value", "tooltip", "multilanguage", "current-language"]));
|
|
3941
3946
|
}
|
|
3942
|
-
}),
|
|
3947
|
+
}), Go = {
|
|
3943
3948
|
key: 0,
|
|
3944
3949
|
class: "vc-input-currency vc-input-currency--skeleton"
|
|
3945
|
-
},
|
|
3950
|
+
}, Yo = ["disabled", "placeholder", "aria-label"], Jo = /* @__PURE__ */ V({
|
|
3946
3951
|
__name: "vc-input-currency",
|
|
3947
3952
|
props: {
|
|
3948
3953
|
modelValue: {},
|
|
@@ -4004,26 +4009,26 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
4004
4009
|
), Y(s, (c) => {
|
|
4005
4010
|
a("update:model-value", c);
|
|
4006
4011
|
});
|
|
4007
|
-
function
|
|
4012
|
+
function v(c) {
|
|
4008
4013
|
o.value && (o.value.value = c), s.value = typeof c == "number" ? c : c === null ? null : parseFloat(String(c)) || null, a("update:model-value", s.value);
|
|
4009
4014
|
}
|
|
4010
4015
|
function b(c) {
|
|
4011
4016
|
a("blur", c);
|
|
4012
4017
|
}
|
|
4013
|
-
function
|
|
4018
|
+
function g(c) {
|
|
4014
4019
|
if ((c.key === "-" || c.key === "e") && c.preventDefault(), c.key !== "Tab") {
|
|
4015
4020
|
if (c.key === "Enter") {
|
|
4016
4021
|
c.target && c.target.blur();
|
|
4017
|
-
const
|
|
4018
|
-
|
|
4022
|
+
const m = Array.from(document.querySelectorAll('[tabindex="0"]:not(:disabled)')), y = m.indexOf(c.target);
|
|
4023
|
+
y >= 0 && y < m.length - 1 && m[y + 1].focus();
|
|
4019
4024
|
}
|
|
4020
4025
|
}
|
|
4021
4026
|
}
|
|
4022
4027
|
function d(c) {
|
|
4023
|
-
const
|
|
4024
|
-
typeof
|
|
4028
|
+
const m = c.clipboardData?.getData("text/plain");
|
|
4029
|
+
typeof m < "u" && parseInt(m) < 0 && c.preventDefault();
|
|
4025
4030
|
}
|
|
4026
|
-
return (c,
|
|
4031
|
+
return (c, m) => r(i) ? (f(), h("div", Go, [
|
|
4027
4032
|
e.label ? (f(), D(r(oe), {
|
|
4028
4033
|
key: 0,
|
|
4029
4034
|
variant: "block",
|
|
@@ -4035,7 +4040,7 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
4035
4040
|
width: "100%",
|
|
4036
4041
|
height: 36
|
|
4037
4042
|
})
|
|
4038
|
-
])) : (f(), D(r(
|
|
4043
|
+
])) : (f(), D(r(Ho), {
|
|
4039
4044
|
key: 1,
|
|
4040
4045
|
class: "vc-input-currency",
|
|
4041
4046
|
options: e.options,
|
|
@@ -4061,48 +4066,48 @@ const to = { class: "vc-select__trigger" }, no = { class: "vc-select__control" }
|
|
|
4061
4066
|
"error-message": e.errorMessage,
|
|
4062
4067
|
maxlength: e.maxlength,
|
|
4063
4068
|
"input-type": "number",
|
|
4064
|
-
"onUpdate:modelValue":
|
|
4065
|
-
"onUpdate:option":
|
|
4069
|
+
"onUpdate:modelValue": v,
|
|
4070
|
+
"onUpdate:option": m[0] || (m[0] = (y) => c.$emit("update:option", y)),
|
|
4066
4071
|
onBlur: b
|
|
4067
4072
|
}, {
|
|
4068
|
-
control: L(({ placeholder:
|
|
4073
|
+
control: L(({ placeholder: y }) => [
|
|
4069
4074
|
C("input", {
|
|
4070
4075
|
ref_key: "inputRef",
|
|
4071
4076
|
ref: o,
|
|
4072
4077
|
type: "text",
|
|
4073
4078
|
disabled: e.disabled,
|
|
4074
|
-
placeholder:
|
|
4079
|
+
placeholder: y,
|
|
4075
4080
|
"aria-label": e.label || void 0,
|
|
4076
4081
|
class: "vc-input-currency__control",
|
|
4077
4082
|
tabindex: "0",
|
|
4078
4083
|
onBlur: b,
|
|
4079
|
-
onKeydown:
|
|
4084
|
+
onKeydown: g,
|
|
4080
4085
|
onPaste: d
|
|
4081
|
-
}, null, 40,
|
|
4086
|
+
}, null, 40, Yo)
|
|
4082
4087
|
]),
|
|
4083
4088
|
_: 1
|
|
4084
4089
|
}, 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"]));
|
|
4085
4090
|
}
|
|
4086
|
-
}), Ht = Symbol("VcAppBarState"),
|
|
4091
|
+
}), Ht = Symbol("VcAppBarState"), Xo = {
|
|
4087
4092
|
activeWidgetId: S(null),
|
|
4088
4093
|
activeMobileActionId: S(null)
|
|
4089
4094
|
};
|
|
4090
|
-
function
|
|
4095
|
+
function hr() {
|
|
4091
4096
|
const e = {
|
|
4092
4097
|
activeWidgetId: S(null),
|
|
4093
4098
|
activeMobileActionId: S(null)
|
|
4094
4099
|
};
|
|
4095
4100
|
return Ot(Ht, e), e;
|
|
4096
4101
|
}
|
|
4097
|
-
function
|
|
4098
|
-
return X(Ht,
|
|
4102
|
+
function Ir() {
|
|
4103
|
+
return X(Ht, Xo);
|
|
4099
4104
|
}
|
|
4100
|
-
const
|
|
4105
|
+
const kr = Symbol("TableContext"), Zo = Symbol("ColumnCollector"), Sr = Symbol("FillerWidth"), $r = Symbol("IsColumnReordering"), Er = Symbol("MobileCellEdit"), Or = (e, t) => {
|
|
4101
4106
|
const n = e.__vccOpts || e;
|
|
4102
4107
|
for (const [a, i] of t)
|
|
4103
4108
|
n[a] = i;
|
|
4104
4109
|
return n;
|
|
4105
|
-
},
|
|
4110
|
+
}, wr = V({
|
|
4106
4111
|
name: "VcColumn",
|
|
4107
4112
|
inheritAttrs: !1,
|
|
4108
4113
|
props: {
|
|
@@ -4280,7 +4285,7 @@ const Ir = Symbol("TableContext"), Xo = Symbol("ColumnCollector"), kr = Symbol("
|
|
|
4280
4285
|
}
|
|
4281
4286
|
},
|
|
4282
4287
|
setup(e, { slots: t }) {
|
|
4283
|
-
const n = X(
|
|
4288
|
+
const n = X(Zo, null), a = je();
|
|
4284
4289
|
return He(() => {
|
|
4285
4290
|
n && a && n.add({
|
|
4286
4291
|
instance: a,
|
|
@@ -4306,7 +4311,7 @@ function Gt() {
|
|
|
4306
4311
|
}
|
|
4307
4312
|
};
|
|
4308
4313
|
}
|
|
4309
|
-
const
|
|
4314
|
+
const Qo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__ */ V({
|
|
4310
4315
|
__name: "CellEditableWrapper",
|
|
4311
4316
|
props: {
|
|
4312
4317
|
label: {},
|
|
@@ -4341,7 +4346,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4341
4346
|
l ? {
|
|
4342
4347
|
name: "tooltip",
|
|
4343
4348
|
fn: L(() => [
|
|
4344
|
-
C("div",
|
|
4349
|
+
C("div", Qo, M(l), 1)
|
|
4345
4350
|
]),
|
|
4346
4351
|
key: "0"
|
|
4347
4352
|
} : void 0
|
|
@@ -4350,7 +4355,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4350
4355
|
_: 3
|
|
4351
4356
|
}, 8, ["label", "name", "model-value", "rules"]));
|
|
4352
4357
|
}
|
|
4353
|
-
}),
|
|
4358
|
+
}), _o = {
|
|
4354
4359
|
key: 1,
|
|
4355
4360
|
class: "vc-table-cell-default"
|
|
4356
4361
|
}, Yt = /* @__PURE__ */ V({
|
|
@@ -4378,16 +4383,16 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4378
4383
|
rules: e.rules,
|
|
4379
4384
|
"validate-on-mount": e.validateOnMount
|
|
4380
4385
|
}, {
|
|
4381
|
-
default: L(({ errors:
|
|
4386
|
+
default: L(({ errors: v, errorMessage: b }) => [
|
|
4382
4387
|
R(pt, {
|
|
4383
4388
|
"model-value": e.value,
|
|
4384
4389
|
class: "vc-table-cell-default__input",
|
|
4385
|
-
error:
|
|
4390
|
+
error: v.length > 0,
|
|
4386
4391
|
"error-message": r(i) ? b : void 0,
|
|
4387
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
4388
|
-
onBlur: (
|
|
4392
|
+
"onUpdate:modelValue": u[0] || (u[0] = (g) => s.$emit("update", { field: e.fieldId || "", value: g })),
|
|
4393
|
+
onBlur: (g) => l(v)
|
|
4389
4394
|
}, se({ _: 2 }, [
|
|
4390
|
-
r(o) &&
|
|
4395
|
+
r(o) && v.length > 0 ? {
|
|
4391
4396
|
name: "append-inner",
|
|
4392
4397
|
fn: L(() => [
|
|
4393
4398
|
R(r(W), {
|
|
@@ -4400,15 +4405,15 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4400
4405
|
]), 1032, ["model-value", "error", "error-message", "onBlur"])
|
|
4401
4406
|
]),
|
|
4402
4407
|
_: 1
|
|
4403
|
-
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : (f(),
|
|
4408
|
+
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : (f(), h("span", _o, M(e.value), 1));
|
|
4404
4409
|
}
|
|
4405
|
-
}),
|
|
4410
|
+
}), ei = {
|
|
4406
4411
|
key: 1,
|
|
4407
4412
|
class: "vc-table-cell-money"
|
|
4408
|
-
},
|
|
4413
|
+
}, ti = {
|
|
4409
4414
|
key: 2,
|
|
4410
4415
|
class: "vc-table-cell-money vc-table-cell-money--not-set"
|
|
4411
|
-
},
|
|
4416
|
+
}, ni = /* @__PURE__ */ V({
|
|
4412
4417
|
__name: "CellMoney",
|
|
4413
4418
|
props: {
|
|
4414
4419
|
value: {},
|
|
@@ -4423,16 +4428,16 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4423
4428
|
},
|
|
4424
4429
|
emits: ["update", "blur"],
|
|
4425
4430
|
setup(e, { emit: t }) {
|
|
4426
|
-
const n = e, a = t, { t: i } = ye({ useScope: "global" }), o = window.navigator.language, { isMobile: l, isDesktop: s } = Je(), u = O(() => typeof n.value > "u" || n.value === null || Number(n.value) === 0),
|
|
4427
|
-
const
|
|
4428
|
-
return isNaN(
|
|
4431
|
+
const n = e, a = t, { t: i } = ye({ useScope: "global" }), o = window.navigator.language, { isMobile: l, isDesktop: s } = Je(), u = O(() => typeof n.value > "u" || n.value === null || Number(n.value) === 0), v = O(() => {
|
|
4432
|
+
const g = Number(n.value);
|
|
4433
|
+
return isNaN(g) ? String(n.value) : new Intl.NumberFormat(o, {
|
|
4429
4434
|
style: "currency",
|
|
4430
4435
|
currency: n.currency || "USD"
|
|
4431
|
-
}).format(
|
|
4432
|
-
}), b = (
|
|
4433
|
-
|
|
4436
|
+
}).format(g);
|
|
4437
|
+
}), b = (g) => {
|
|
4438
|
+
g && g.length > 0 || a("blur", { row: n.rowIndex, field: n.fieldId || "" });
|
|
4434
4439
|
};
|
|
4435
|
-
return (
|
|
4440
|
+
return (g, d) => e.editable ? (f(), D(bt, {
|
|
4436
4441
|
key: 0,
|
|
4437
4442
|
label: e.label || "",
|
|
4438
4443
|
"field-name": e.fieldName || "",
|
|
@@ -4440,17 +4445,17 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4440
4445
|
rules: e.rules,
|
|
4441
4446
|
"validate-on-mount": e.validateOnMount
|
|
4442
4447
|
}, {
|
|
4443
|
-
default: L(({ errors: c, errorMessage:
|
|
4444
|
-
R(
|
|
4448
|
+
default: L(({ errors: c, errorMessage: m }) => [
|
|
4449
|
+
R(Jo, {
|
|
4445
4450
|
"model-value": e.value,
|
|
4446
4451
|
options: [],
|
|
4447
4452
|
option: e.currency || "USD",
|
|
4448
4453
|
"currency-display": "symbol",
|
|
4449
4454
|
class: "vc-table-cell-money__input",
|
|
4450
4455
|
error: c.length > 0,
|
|
4451
|
-
"error-message": r(l) ?
|
|
4452
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
4453
|
-
onBlur: (
|
|
4456
|
+
"error-message": r(l) ? m : void 0,
|
|
4457
|
+
"onUpdate:modelValue": d[0] || (d[0] = (y) => g.$emit("update", { field: e.fieldId || "", value: y })),
|
|
4458
|
+
onBlur: (y) => b(c)
|
|
4454
4459
|
}, se({ _: 2 }, [
|
|
4455
4460
|
r(s) && c.length > 0 ? {
|
|
4456
4461
|
name: "append-inner",
|
|
@@ -4465,15 +4470,15 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4465
4470
|
]), 1032, ["model-value", "option", "error", "error-message", "onBlur"])
|
|
4466
4471
|
]),
|
|
4467
4472
|
_: 1
|
|
4468
|
-
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : u.value ? (f(),
|
|
4473
|
+
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : u.value ? (f(), h("span", ti, M(r(i)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1)) : (f(), h("span", ei, M(v.value), 1));
|
|
4469
4474
|
}
|
|
4470
|
-
}),
|
|
4475
|
+
}), ai = {
|
|
4471
4476
|
key: 1,
|
|
4472
4477
|
class: "vc-table-cell-number"
|
|
4473
|
-
},
|
|
4478
|
+
}, li = {
|
|
4474
4479
|
key: 2,
|
|
4475
4480
|
class: "vc-table-cell-number vc-table-cell-number--not-set"
|
|
4476
|
-
},
|
|
4481
|
+
}, oi = /* @__PURE__ */ V({
|
|
4477
4482
|
__name: "CellNumber",
|
|
4478
4483
|
props: {
|
|
4479
4484
|
value: {},
|
|
@@ -4494,10 +4499,10 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4494
4499
|
}), u = O(() => {
|
|
4495
4500
|
const b = Number(n.value);
|
|
4496
4501
|
return isNaN(b) ? String(n.value) : b.toFixed(0);
|
|
4497
|
-
}),
|
|
4502
|
+
}), v = (b) => {
|
|
4498
4503
|
b && b.length > 0 || a("blur", { row: n.rowIndex, field: n.fieldId || "" });
|
|
4499
4504
|
};
|
|
4500
|
-
return (b,
|
|
4505
|
+
return (b, g) => e.editable ? (f(), D(bt, {
|
|
4501
4506
|
key: 0,
|
|
4502
4507
|
label: e.label || "",
|
|
4503
4508
|
"field-name": e.fieldName || "",
|
|
@@ -4512,8 +4517,8 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4512
4517
|
type: "number",
|
|
4513
4518
|
error: d.length > 0,
|
|
4514
4519
|
"error-message": r(o) ? c : void 0,
|
|
4515
|
-
"onUpdate:modelValue":
|
|
4516
|
-
onBlur: (
|
|
4520
|
+
"onUpdate:modelValue": g[0] || (g[0] = (m) => b.$emit("update", { field: e.fieldId || "", value: m })),
|
|
4521
|
+
onBlur: (m) => v(d)
|
|
4517
4522
|
}, se({ _: 2 }, [
|
|
4518
4523
|
r(l) && d.length > 0 ? {
|
|
4519
4524
|
name: "append-inner",
|
|
@@ -4528,12 +4533,12 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4528
4533
|
]), 1032, ["model-value", "error", "error-message", "onBlur"])
|
|
4529
4534
|
]),
|
|
4530
4535
|
_: 1
|
|
4531
|
-
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : s.value ? (f(),
|
|
4536
|
+
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : s.value ? (f(), h("span", li, M(r(i)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1)) : (f(), h("span", ai, M(u.value), 1));
|
|
4532
4537
|
}
|
|
4533
|
-
}),
|
|
4538
|
+
}), ii = {
|
|
4534
4539
|
key: 0,
|
|
4535
4540
|
class: "vc-table-cell-date"
|
|
4536
|
-
},
|
|
4541
|
+
}, ri = {
|
|
4537
4542
|
key: 1,
|
|
4538
4543
|
class: "vc-table-cell-date vc-table-cell-date--not-set"
|
|
4539
4544
|
}, tt = /* @__PURE__ */ V({
|
|
@@ -4551,32 +4556,32 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4551
4556
|
const o = t.value instanceof Date ? t.value : new Date(t.value), l = t.variant || "date";
|
|
4552
4557
|
return l === "time" ? o.toLocaleTimeString(a) : l === "date-time" ? o.toLocaleString(a) : o.toLocaleDateString(a);
|
|
4553
4558
|
});
|
|
4554
|
-
return (o, l) => e.value ? (f(),
|
|
4559
|
+
return (o, l) => e.value ? (f(), h("span", ii, M(i.value), 1)) : (f(), h("span", ri, M(r(n)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1));
|
|
4555
4560
|
}
|
|
4556
|
-
}),
|
|
4561
|
+
}), si = ["title"], ui = {
|
|
4557
4562
|
key: 1,
|
|
4558
4563
|
class: "vc-table-cell-date-ago vc-table-cell-date-ago--not-set"
|
|
4559
|
-
},
|
|
4564
|
+
}, ci = /* @__PURE__ */ V({
|
|
4560
4565
|
__name: "CellDateAgo",
|
|
4561
4566
|
props: {
|
|
4562
4567
|
value: {}
|
|
4563
4568
|
},
|
|
4564
4569
|
setup(e) {
|
|
4565
4570
|
const t = e, { t: n } = ye({ useScope: "global" }), a = window.navigator.language, i = O(() => t.value ? (t.value instanceof Date ? t.value : new Date(t.value)).toLocaleString(a) : ""), o = O(() => t.value ? Xn(t.value) : "");
|
|
4566
|
-
return (l, s) => e.value ? (f(),
|
|
4571
|
+
return (l, s) => e.value ? (f(), h("span", {
|
|
4567
4572
|
key: 0,
|
|
4568
4573
|
class: "vc-table-cell-date-ago",
|
|
4569
4574
|
title: i.value
|
|
4570
|
-
}, M(o.value), 9,
|
|
4575
|
+
}, M(o.value), 9, si)) : (f(), h("span", ui, M(r(n)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1));
|
|
4571
4576
|
}
|
|
4572
|
-
}),
|
|
4577
|
+
}), di = /* @__PURE__ */ V({
|
|
4573
4578
|
__name: "CellImage",
|
|
4574
4579
|
props: {
|
|
4575
4580
|
value: {},
|
|
4576
4581
|
emptyIcon: {}
|
|
4577
4582
|
},
|
|
4578
4583
|
setup(e) {
|
|
4579
|
-
return (t, n) => (f(), D(r(
|
|
4584
|
+
return (t, n) => (f(), D(r(qa), {
|
|
4580
4585
|
class: "vc-table-cell-image",
|
|
4581
4586
|
bordered: !0,
|
|
4582
4587
|
size: "s",
|
|
@@ -4587,46 +4592,46 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4587
4592
|
"thumbnail-size": "sm"
|
|
4588
4593
|
}, null, 8, ["src", "empty-icon"]));
|
|
4589
4594
|
}
|
|
4590
|
-
}),
|
|
4595
|
+
}), fi = /* @__PURE__ */ V({
|
|
4591
4596
|
__name: "CellStatus",
|
|
4592
4597
|
props: {
|
|
4593
4598
|
value: {}
|
|
4594
4599
|
},
|
|
4595
4600
|
setup(e) {
|
|
4596
|
-
return (t, n) => (f(), D(r(
|
|
4601
|
+
return (t, n) => (f(), D(r(tl), { class: "vc-table-cell-status" }, {
|
|
4597
4602
|
default: L(() => [
|
|
4598
4603
|
ee(M(e.value), 1)
|
|
4599
4604
|
]),
|
|
4600
4605
|
_: 1
|
|
4601
4606
|
}));
|
|
4602
4607
|
}
|
|
4603
|
-
}),
|
|
4608
|
+
}), vi = { class: "vc-table-cell-status-icon" }, gi = /* @__PURE__ */ V({
|
|
4604
4609
|
__name: "CellStatusIcon",
|
|
4605
4610
|
props: {
|
|
4606
4611
|
value: {}
|
|
4607
4612
|
},
|
|
4608
4613
|
setup(e) {
|
|
4609
|
-
return (t, n) => (f(),
|
|
4610
|
-
typeof e.value == "boolean" ? (f(), D(r(
|
|
4614
|
+
return (t, n) => (f(), h("div", vi, [
|
|
4615
|
+
typeof e.value == "boolean" ? (f(), D(r(al), {
|
|
4611
4616
|
key: 0,
|
|
4612
4617
|
status: e.value
|
|
4613
4618
|
}, null, 8, ["status"])) : w("", !0)
|
|
4614
4619
|
]));
|
|
4615
4620
|
}
|
|
4616
|
-
}),
|
|
4621
|
+
}), mi = /* @__PURE__ */ V({
|
|
4617
4622
|
__name: "CellLink",
|
|
4618
4623
|
props: {
|
|
4619
4624
|
value: {}
|
|
4620
4625
|
},
|
|
4621
4626
|
setup(e) {
|
|
4622
|
-
return (t, n) => (f(), D(r(
|
|
4627
|
+
return (t, n) => (f(), D(r(Qa), { class: "vc-table-cell-link" }, {
|
|
4623
4628
|
default: L(() => [
|
|
4624
4629
|
ee(M(e.value), 1)
|
|
4625
4630
|
]),
|
|
4626
4631
|
_: 1
|
|
4627
4632
|
}));
|
|
4628
4633
|
}
|
|
4629
|
-
}),
|
|
4634
|
+
}), pi = ["innerHTML"], bi = 500, yi = /* @__PURE__ */ V({
|
|
4630
4635
|
__name: "CellHtml",
|
|
4631
4636
|
props: {
|
|
4632
4637
|
value: {},
|
|
@@ -4673,39 +4678,39 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4673
4678
|
FORBID_TAGS: ["script", "object", "embed", "form", "input"],
|
|
4674
4679
|
FORBID_ATTR: ["onerror", "onload", "onclick", "onmouseover", "onfocus", "onblur", "style"]
|
|
4675
4680
|
});
|
|
4676
|
-
if (n.size >=
|
|
4681
|
+
if (n.size >= bi) {
|
|
4677
4682
|
const u = n.keys().next().value;
|
|
4678
4683
|
u !== void 0 && n.delete(u);
|
|
4679
4684
|
}
|
|
4680
4685
|
return n.set(l, s), s;
|
|
4681
4686
|
}
|
|
4682
4687
|
const i = O(() => t.value ? a(String(t.value)) : ""), o = O(() => Un(i.value, t.maxLength || 30));
|
|
4683
|
-
return (l, s) => (f(),
|
|
4688
|
+
return (l, s) => (f(), h("div", {
|
|
4684
4689
|
class: "vc-table-cell-html",
|
|
4685
4690
|
innerHTML: o.value
|
|
4686
|
-
}, null, 8,
|
|
4691
|
+
}, null, 8, pi));
|
|
4687
4692
|
}
|
|
4688
4693
|
}), Jt = [
|
|
4689
4694
|
{ type: "text", component: Yt, config: { editable: !0 } },
|
|
4690
|
-
{ type: "number", component:
|
|
4691
|
-
{ type: "money", component:
|
|
4695
|
+
{ type: "number", component: oi, config: { editable: !0 } },
|
|
4696
|
+
{ type: "money", component: ni, config: { editable: !0 } },
|
|
4692
4697
|
{ type: "date", component: tt, config: { editable: !1 } },
|
|
4693
4698
|
{ type: "time", component: tt, config: { editable: !1 } },
|
|
4694
4699
|
{ type: "datetime", component: tt, config: { editable: !1 } },
|
|
4695
|
-
{ type: "date-ago", component:
|
|
4696
|
-
{ type: "image", component:
|
|
4697
|
-
{ type: "status", component:
|
|
4698
|
-
{ type: "status-icon", component:
|
|
4699
|
-
{ type: "link", component:
|
|
4700
|
-
{ type: "html", component:
|
|
4701
|
-
],
|
|
4702
|
-
function
|
|
4700
|
+
{ type: "date-ago", component: ci, config: { editable: !1 } },
|
|
4701
|
+
{ type: "image", component: di, config: { editable: !1 } },
|
|
4702
|
+
{ type: "status", component: fi, config: { editable: !1 } },
|
|
4703
|
+
{ type: "status-icon", component: gi, config: { editable: !1 } },
|
|
4704
|
+
{ type: "link", component: mi, config: { editable: !1 } },
|
|
4705
|
+
{ type: "html", component: yi, config: { editable: !1 } }
|
|
4706
|
+
], Lr = Object.freeze(Jt.map((e) => e.type));
|
|
4707
|
+
function hi() {
|
|
4703
4708
|
const { register: e, has: t } = Gt();
|
|
4704
4709
|
for (const n of Jt)
|
|
4705
4710
|
t(n.type) || e(n);
|
|
4706
4711
|
}
|
|
4707
|
-
|
|
4708
|
-
const
|
|
4712
|
+
hi();
|
|
4713
|
+
const Cr = /* @__PURE__ */ V({
|
|
4709
4714
|
__name: "DynamicCellRenderer",
|
|
4710
4715
|
props: {
|
|
4711
4716
|
type: {},
|
|
@@ -4734,7 +4739,7 @@ const Lr = /* @__PURE__ */ V({
|
|
|
4734
4739
|
onBlur: l[1] || (l[1] = (s) => o.$emit("blur", s))
|
|
4735
4740
|
}), null, 16));
|
|
4736
4741
|
}
|
|
4737
|
-
}),
|
|
4742
|
+
}), Tr = V({
|
|
4738
4743
|
name: "SlotProxy",
|
|
4739
4744
|
props: {
|
|
4740
4745
|
slotFn: { type: Function, required: !0 },
|
|
@@ -4743,129 +4748,130 @@ const Lr = /* @__PURE__ */ V({
|
|
|
4743
4748
|
setup(e) {
|
|
4744
4749
|
return () => e.slotFn(e.scope);
|
|
4745
4750
|
}
|
|
4746
|
-
}),
|
|
4751
|
+
}), Br = (e, t) => {
|
|
4747
4752
|
const n = t.arg ? parseInt(t.arg, 10) : 9e3, a = typeof t.value == "object" ? t.value : { blur: !0 };
|
|
4748
4753
|
t.value ? (e.classList.add("v-loading"), a.size && e.setAttribute("data-loading-size", a.size), a.color && e.style.setProperty("--v-loading-spinner-color", a.color), a.blur === !1 && e.classList.add("v-loading--no-blur"), a.fullscreen && e.classList.add("v-loading--fullscreen"), e.style.setProperty("--v-loading-z-index", `${n}`)) : (e.classList.remove("v-loading", "v-loading--no-blur", "v-loading--fullscreen"), e.removeAttribute("data-loading-size"), e.style.removeProperty("--v-loading-z-index"), e.style.removeProperty("--v-loading-spinner-color"));
|
|
4749
4754
|
};
|
|
4750
4755
|
export {
|
|
4751
4756
|
Kt as $,
|
|
4752
4757
|
Dt as A,
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
+
Lr as B,
|
|
4759
|
+
Br as C,
|
|
4760
|
+
hr as D,
|
|
4761
|
+
hi as E,
|
|
4762
|
+
Ir as F,
|
|
4758
4763
|
we as G,
|
|
4759
4764
|
Gt as H,
|
|
4760
4765
|
Ge as I,
|
|
4761
4766
|
ra as J,
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4767
|
+
Or as K,
|
|
4768
|
+
fr as L,
|
|
4769
|
+
or as M,
|
|
4765
4770
|
aa as N,
|
|
4766
4771
|
ct as O,
|
|
4767
4772
|
de as P,
|
|
4768
4773
|
Oe as Q,
|
|
4769
4774
|
Ke as R,
|
|
4770
|
-
|
|
4775
|
+
er as S,
|
|
4771
4776
|
qn as T,
|
|
4772
4777
|
lt as U,
|
|
4773
4778
|
be as V,
|
|
4774
4779
|
la as W,
|
|
4775
4780
|
Je as X,
|
|
4776
|
-
|
|
4777
|
-
|
|
4781
|
+
ur as Y,
|
|
4782
|
+
sr as Z,
|
|
4778
4783
|
tt as _,
|
|
4779
4784
|
Ca as a,
|
|
4780
|
-
|
|
4781
|
-
|
|
4785
|
+
Cr as a$,
|
|
4786
|
+
gr as a0,
|
|
4782
4787
|
Ia as a1,
|
|
4783
|
-
|
|
4788
|
+
vl as a2,
|
|
4784
4789
|
Sa as a3,
|
|
4785
4790
|
$a as a4,
|
|
4786
4791
|
Ea as a5,
|
|
4787
|
-
|
|
4792
|
+
Ki as a6,
|
|
4788
4793
|
Ie as a7,
|
|
4789
|
-
|
|
4794
|
+
Ma as a8,
|
|
4790
4795
|
ue as a9,
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4796
|
+
Qi as aA,
|
|
4797
|
+
pr as aB,
|
|
4798
|
+
ar as aC,
|
|
4799
|
+
cr as aD,
|
|
4800
|
+
nr as aE,
|
|
4801
|
+
ir as aF,
|
|
4802
|
+
xa as aG,
|
|
4803
|
+
rr as aH,
|
|
4804
|
+
Xi as aI,
|
|
4805
|
+
Gi as aJ,
|
|
4806
|
+
Jn as aK,
|
|
4807
|
+
Nt as aL,
|
|
4808
|
+
Yi as aM,
|
|
4809
|
+
wa as aN,
|
|
4810
|
+
_i as aO,
|
|
4811
|
+
br as aP,
|
|
4812
|
+
lr as aQ,
|
|
4813
|
+
qi as aR,
|
|
4814
|
+
tr as aS,
|
|
4815
|
+
Wt as aT,
|
|
4816
|
+
yr as aU,
|
|
4817
|
+
Xl as aV,
|
|
4818
|
+
ia as aW,
|
|
4814
4819
|
kr as aX,
|
|
4815
4820
|
Sr as aY,
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4821
|
+
$r as aZ,
|
|
4822
|
+
Tr as a_,
|
|
4823
|
+
Ui as aa,
|
|
4824
|
+
Fi as ab,
|
|
4825
|
+
zi as ac,
|
|
4826
|
+
Pi as ad,
|
|
4827
|
+
vr as ae,
|
|
4828
|
+
Hi as af,
|
|
4829
|
+
mr as ag,
|
|
4825
4830
|
da as ah,
|
|
4826
4831
|
ca as ai,
|
|
4827
4832
|
fa as aj,
|
|
4828
4833
|
_n as ak,
|
|
4829
4834
|
Yn as al,
|
|
4830
4835
|
na as am,
|
|
4831
|
-
|
|
4836
|
+
ji as an,
|
|
4832
4837
|
ua as ao,
|
|
4833
4838
|
Xn as ap,
|
|
4834
4839
|
Zn as aq,
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4840
|
+
Wi as ar,
|
|
4841
|
+
Ji as as,
|
|
4842
|
+
Zi as at,
|
|
4838
4843
|
ta as au,
|
|
4839
4844
|
Wn as av,
|
|
4840
4845
|
ea as aw,
|
|
4841
4846
|
sa as ax,
|
|
4842
4847
|
It as ay,
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4848
|
+
dr as az,
|
|
4849
|
+
ci as b,
|
|
4850
|
+
Er as b0,
|
|
4851
|
+
Zo as b1,
|
|
4852
|
+
oa as b2,
|
|
4847
4853
|
Yt as c,
|
|
4848
4854
|
bt as d,
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4855
|
+
yi as e,
|
|
4856
|
+
di as f,
|
|
4857
|
+
mi as g,
|
|
4858
|
+
ni as h,
|
|
4859
|
+
oi as i,
|
|
4860
|
+
fi as j,
|
|
4861
|
+
gi as k,
|
|
4856
4862
|
Ra as l,
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4863
|
+
Nl as m,
|
|
4864
|
+
wr as n,
|
|
4865
|
+
Sl as o,
|
|
4866
|
+
qa as p,
|
|
4861
4867
|
pt as q,
|
|
4862
|
-
|
|
4863
|
-
|
|
4868
|
+
Jo as r,
|
|
4869
|
+
Ho as s,
|
|
4864
4870
|
Xe as t,
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4871
|
+
Qa as u,
|
|
4872
|
+
ol as v,
|
|
4873
|
+
Uo as w,
|
|
4868
4874
|
oe as x,
|
|
4869
|
-
|
|
4870
|
-
|
|
4875
|
+
tl as y,
|
|
4876
|
+
al as z
|
|
4871
4877
|
};
|