@vc-shell/framework 2.0.0-alpha.24 → 2.0.0-alpha.25
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/CHANGELOG.md +7 -0
- package/dist/ai-agent/index.js +2 -2
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-BP2AONee.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-DHLKAqm0.js} +199 -199
- package/dist/chunks/{VcTableAdapter.vue_vue_type_style_index_0_lang-Dcmfbvu-.js → VcTableAdapter.vue_vue_type_style_index_0_lang-TnE_L5Rp.js} +402 -397
- package/dist/chunks/{index-Dv4ed_py.js → index-BJbOVN0O.js} +2 -2
- package/dist/chunks/{index-CqUIFifF.js → index-Des1Cxbn.js} +1 -1
- package/dist/chunks/{vc-toast.vue_vue_type_style_index_0_lang-NNvJU00Y.js → vc-toast.vue_vue_type_style_index_0_lang-D-kMIagL.js} +1 -1
- package/dist/chunks/vendor-tiptap-extension-placeholder-D1_k7Sra.js +1 -0
- package/dist/chunks/{vendor-tiptap-extensions-CqOFzZAS.js → vendor-tiptap-extensions-pwHVUzkb.js} +55 -54
- package/dist/chunks/{vendor-tiptap-starter-kit-DcsDv0Wg.js → vendor-tiptap-starter-kit-BEsLVJ4Q.js} +1 -1
- package/dist/core/composables/index.d.ts +0 -1
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useBladeWidgets.d.ts +16 -0
- package/dist/core/composables/useBladeWidgets.d.ts.map +1 -1
- package/dist/core/services/widget-service.d.ts +5 -12
- package/dist/core/services/widget-service.d.ts.map +1 -1
- package/dist/framework.js +1148 -1148
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +2 -1
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/test-helpers.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/{WidgetProvider.vue.d.ts → WidgetScope.vue.d.ts} +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetScope.vue.d.ts.map +1 -0
- package/dist/ui/index.js +3 -3
- package/package.json +4 -4
- package/dist/chunks/vendor-tiptap-extension-placeholder-WyhAnzy7.js +0 -1
- package/dist/core/composables/useWidget/index.d.ts +0 -18
- package/dist/core/composables/useWidget/index.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-blade/_internal/widgets/WidgetProvider.vue.d.ts.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as U, computed as S, openBlock as o, createElementBlock as p, withKeys as ge, withModifiers as le, normalizeClass as q, toDisplayString as D, createCommentVNode as R, createElementVNode as y, renderSlot as V, normalizeStyle as he, provide as Me, toRef as Ie, useId as wt, ref as O, watch as ne, createBlock as B, unref as n, mergeProps as Se, resolveDynamicComponent as We, withCtx as A, createVNode as x, inject as de, onBeforeUnmount as Ue, Teleport as ot, Transition as _e, createSlots as we, createTextVNode as ie, resolveComponent as Ne, Fragment as ee, renderList as me, useSlots as ct, resolveDirective as Rl, withDirectives as He, onMounted as lt, onUnmounted as Lt, vModelText as
|
|
2
|
-
import { l as Ye, B as
|
|
3
|
-
import { d as
|
|
4
|
-
import { u as _i, E as
|
|
5
|
-
import { S as Ei } from "./vendor-tiptap-starter-kit-
|
|
1
|
+
import { defineComponent as U, computed as S, openBlock as o, createElementBlock as p, withKeys as ge, withModifiers as le, normalizeClass as q, toDisplayString as D, createCommentVNode as R, createElementVNode as y, renderSlot as V, normalizeStyle as he, provide as Me, toRef as Ie, useId as wt, ref as O, watch as ne, createBlock as B, unref as n, mergeProps as Se, resolveDynamicComponent as We, withCtx as A, createVNode as x, inject as de, onBeforeUnmount as Ue, Teleport as ot, Transition as _e, createSlots as we, createTextVNode as ie, resolveComponent as Ne, Fragment as ee, renderList as me, useSlots as ct, resolveDirective as Rl, withDirectives as He, onMounted as lt, onUnmounted as Lt, vModelText as Vn, nextTick as Ee, vModelDynamic as li, watchEffect as Kt, normalizeProps as Qe, guardReactiveProps as Je, vShow as Bt, vModelCheckbox as ai, toValue as Te, onScopeDispose as mt, reactive as xt, getCurrentInstance as pt, getCurrentScope as kt, hasInjectionContext as Dn, shallowReactive as kl, markRaw as Yt, isRef as dt, shallowRef as ni, toHandlers as Sl, useAttrs as oi, TransitionGroup as _a, toRaw as Nn } from "vue";
|
|
2
|
+
import { l as Ye, B as ii, d as J, f as St, e as Qt, E as nt, aV as Pn, Z as ma, I as Ct, $ as si, bq as ri, r as rt, P as pa, br as Jt, al as ga, t as Zt, Y as ba, a0 as Cl, X as ha, k as el, C as Il, F as tl, ak as Ea, av as ll, a as Oe, m as Tl, n as ui, a9 as ya, bj as Aa, aA as cn, c as Ra, q as Ia, aB as di, ap as Fn, bs as ci, z as Ta, bt as vi, ab as fi, ai as mi, ah as pi, aa as zn, U as gi, aI as bi, g as hi, u as Un, b as Hn, W as Gn, v as xa, w as yi, ae as wi } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-DHLKAqm0.js";
|
|
3
|
+
import { d as Ma, e as ki, a as Oa, f as Si, g as Ci, u as $i } from "./vendor-vueuse-core-CPOkeLul.js";
|
|
4
|
+
import { u as _i, E as vn } from "./vendor-tiptap-vue-3-CdIBiRMV.js";
|
|
5
|
+
import { S as Ei } from "./vendor-tiptap-starter-kit-BEsLVJ4Q.js";
|
|
6
6
|
import { U as Ai } from "./vendor-tiptap-extension-underline-CiUEdG6D.js";
|
|
7
7
|
import { T as Ri, a as Ii, b as Ti, c as xi } from "./vendor-tiptap-extension-table-tNWQInwa.js";
|
|
8
8
|
import { L as Mi } from "./vendor-tiptap-extension-link-BAzgztbX.js";
|
|
9
9
|
import { I as Oi } from "./vendor-tiptap-extension-image-DLERQS1u.js";
|
|
10
|
-
import { P as Li } from "./vendor-tiptap-extensions-
|
|
10
|
+
import { P as Li } from "./vendor-tiptap-extensions-pwHVUzkb.js";
|
|
11
11
|
import { T as Bi } from "./vendor-tiptap-extension-text-style-BDbT1PMb.js";
|
|
12
12
|
import { M as Vi } from "./vendor-tiptap-markdown-D0feGfKk.js";
|
|
13
13
|
import { J as Di, p as Ni } from "./vendor-prettier-B0zlh-ye.js";
|
|
@@ -79,17 +79,17 @@ import Ys from "../assets/d3f792f54ae4c307.svg";
|
|
|
79
79
|
import js from "../assets/208f810a9321a327.svg";
|
|
80
80
|
import Xs from "../assets/72de3a63bc0b70dd.svg";
|
|
81
81
|
import * as Qs from "vee-validate";
|
|
82
|
-
import { useField as Js, useForm as
|
|
82
|
+
import { useField as Js, useForm as Wn, useIsFormValid as Zs, useIsFormDirty as er, Field as qt, PublicFormContextKey as tr } from "vee-validate";
|
|
83
83
|
import { I as lr } from "./vendor-iso-639-1-ig8i9Svg.js";
|
|
84
84
|
import "./ExtensionPoint.vue_vue_type_style_index_0_lang-B1R06zHa.js";
|
|
85
85
|
import { l as ar, s as nr } from "./vendor-vee-validate-i18n-zT8NxX3R.js";
|
|
86
|
-
import { e as Mt, f as na, b as or, c as wa, g as
|
|
87
|
-
import { S as ir, Y as sr, h as
|
|
86
|
+
import { e as Mt, f as na, b as or, c as wa, g as La } from "./vendor-lodash-es-BwHYzZ39.js";
|
|
87
|
+
import { S as ir, Y as sr, h as fn, G as rr, V as ur } from "./vendor-headlessui-vue-Cn-RMs4E.js";
|
|
88
88
|
import { k as dr } from "./vendor-tiptap-core-BWgKs47g.js";
|
|
89
89
|
import { q as cr } from "./vendor-vuepic-vue-datepicker-CaZ_qpJp.js";
|
|
90
90
|
import { C as vr, u as fr } from "./vendor-vue-currency-input-CckB4kjx.js";
|
|
91
91
|
import { a as mr, u as pr } from "./vendor-floating-ui-vue-sCrhit51.js";
|
|
92
|
-
import "./vc-toast.vue_vue_type_style_index_0_lang-
|
|
92
|
+
import "./vc-toast.vue_vue_type_style_index_0_lang-D-kMIagL.js";
|
|
93
93
|
import { t as gr } from "./vendor-truncate-html-DDVwXwPl.js";
|
|
94
94
|
import { S as yt, h as br, T as hr } from "./vendor-date-fns-BKO3x1R1.js";
|
|
95
95
|
const yr = ["role", "tabindex", "aria-disabled", "aria-label", "onKeydown"], wr = {
|
|
@@ -243,29 +243,29 @@ async function Rr(e) {
|
|
|
243
243
|
return ut.set(e, yt), yt;
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function qn(e) {
|
|
247
247
|
return ut.has(e) ? ut.get(e) : (Rr(e), yt);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Kn(e) {
|
|
250
250
|
if (e == null || e === "") return null;
|
|
251
251
|
if (e instanceof Date) return isNaN(e.getTime()) ? null : e;
|
|
252
252
|
const a = new Date(e);
|
|
253
253
|
return isNaN(a.getTime()) ? null : a;
|
|
254
254
|
}
|
|
255
|
-
function
|
|
256
|
-
const t =
|
|
255
|
+
function Yn(e, a) {
|
|
256
|
+
const t = Kn(e);
|
|
257
257
|
if (!t) return "";
|
|
258
|
-
const l = a ?
|
|
258
|
+
const l = a ? qn(a) : void 0;
|
|
259
259
|
return hr(t, { addSuffix: !0, locale: l });
|
|
260
260
|
}
|
|
261
261
|
function Ir(e, a, t) {
|
|
262
|
-
const l =
|
|
262
|
+
const l = Kn(e);
|
|
263
263
|
if (!l) return "";
|
|
264
|
-
const r = Ar(a), s = t ?
|
|
264
|
+
const r = Ar(a), s = t ? qn(t) : void 0;
|
|
265
265
|
return br(l, r, { locale: s });
|
|
266
266
|
}
|
|
267
267
|
const Tr = Ye("color-utils");
|
|
268
|
-
function
|
|
268
|
+
function Ba(e) {
|
|
269
269
|
if (!e || typeof e != "string")
|
|
270
270
|
return null;
|
|
271
271
|
try {
|
|
@@ -283,7 +283,7 @@ function xr(e) {
|
|
|
283
283
|
const a = e.startsWith("#") ? e : `#${e}`;
|
|
284
284
|
return /^#[0-9A-Fa-f]{6}$/.test(a);
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function mn(e) {
|
|
287
287
|
return !e || typeof e != "string" ? "" : e.startsWith("#") ? e : `#${e}`;
|
|
288
288
|
}
|
|
289
289
|
function Mr(e) {
|
|
@@ -323,7 +323,7 @@ const Or = ["width", "height"], TS = /* @__PURE__ */ U({
|
|
|
323
323
|
},
|
|
324
324
|
setup(e) {
|
|
325
325
|
const a = e;
|
|
326
|
-
Me(
|
|
326
|
+
Me(ii, {
|
|
327
327
|
size: Ie(a, "size"),
|
|
328
328
|
attached: Ie(a, "attached")
|
|
329
329
|
});
|
|
@@ -420,7 +420,7 @@ const Or = ["width", "height"], TS = /* @__PURE__ */ U({
|
|
|
420
420
|
], 2)
|
|
421
421
|
], 2));
|
|
422
422
|
}
|
|
423
|
-
}), MS = Nr,
|
|
423
|
+
}), MS = Nr, pn = /* @__PURE__ */ U({
|
|
424
424
|
__name: "vc-col",
|
|
425
425
|
props: {
|
|
426
426
|
size: { default: 1 }
|
|
@@ -448,7 +448,7 @@ const Or = ["width", "height"], TS = /* @__PURE__ */ U({
|
|
|
448
448
|
function u(c) {
|
|
449
449
|
l("scroll", c);
|
|
450
450
|
}
|
|
451
|
-
return
|
|
451
|
+
return Ma(r, () => {
|
|
452
452
|
s.value = !!(r.value && r.value.clientHeight < r.value.scrollHeight);
|
|
453
453
|
}), a({
|
|
454
454
|
scrollTop: i,
|
|
@@ -497,7 +497,7 @@ const Or = ["width", "height"], TS = /* @__PURE__ */ U({
|
|
|
497
497
|
key: 0,
|
|
498
498
|
class: "vc-image__placeholder",
|
|
499
499
|
"aria-hidden": "true"
|
|
500
|
-
},
|
|
500
|
+
}, jn = /* @__PURE__ */ U({
|
|
501
501
|
__name: "vc-image",
|
|
502
502
|
props: {
|
|
503
503
|
aspect: { default: "1x1" },
|
|
@@ -571,7 +571,7 @@ function Ll(e = {}) {
|
|
|
571
571
|
function d() {
|
|
572
572
|
s.value = !s.value;
|
|
573
573
|
}
|
|
574
|
-
return
|
|
574
|
+
return Ma(l, () => {
|
|
575
575
|
l.value && (r.value = l.value.scrollHeight);
|
|
576
576
|
}), {
|
|
577
577
|
contentRef: l,
|
|
@@ -583,9 +583,9 @@ function Ll(e = {}) {
|
|
|
583
583
|
toggle: d
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
|
-
const
|
|
586
|
+
const Xn = Symbol("vc-input-group-context");
|
|
587
587
|
function it(e) {
|
|
588
|
-
const a = de(
|
|
588
|
+
const a = de(Xn, null), t = wt(), l = S(() => `vc-field-${t}`), r = S(() => `${l.value}-label`), s = S(() => `${l.value}-error`), i = S(() => `${l.value}-hint`), u = S(() => !!e.error || !!e.errorMessage || !!a?.invalid.value), c = S(() => !!e.disabled || !!a?.disabled.value), d = S(() => a?.name.value || e.name), v = S(() => e.required ? !0 : void 0), g = S(() => {
|
|
589
589
|
const f = /* @__PURE__ */ new Set();
|
|
590
590
|
return a?.describedBy.value && a.describedBy.value.split(/\s+/).forEach((b) => f.add(b)), e.errorMessage && f.add(s.value), e.hint && f.add(i.value), f.size ? Array.from(f).join(" ") : void 0;
|
|
591
591
|
});
|
|
@@ -625,7 +625,7 @@ function Gr(e, a = {}) {
|
|
|
625
625
|
function c() {
|
|
626
626
|
s !== null && (cancelAnimationFrame(s), s = null);
|
|
627
627
|
}
|
|
628
|
-
return
|
|
628
|
+
return Ma(e, i), Ue(() => {
|
|
629
629
|
c();
|
|
630
630
|
}), {
|
|
631
631
|
canScrollUp: l,
|
|
@@ -732,7 +732,7 @@ function VS(e) {
|
|
|
732
732
|
}
|
|
733
733
|
};
|
|
734
734
|
}
|
|
735
|
-
const Yr = ["aria-describedby"],
|
|
735
|
+
const Yr = ["aria-describedby"], Va = /* @__PURE__ */ U({
|
|
736
736
|
__name: "vc-tooltip",
|
|
737
737
|
props: {
|
|
738
738
|
placement: { default: "bottom" },
|
|
@@ -870,7 +870,7 @@ const Yr = ["aria-describedby"], Ba = /* @__PURE__ */ U({
|
|
|
870
870
|
e.required ? (o(), p("span", Qr, "*")) : R("", !0)
|
|
871
871
|
]),
|
|
872
872
|
a.$slots.tooltip ? (o(), p("span", Jr, [
|
|
873
|
-
x(n(
|
|
873
|
+
x(n(Va), { placement: "top-start" }, {
|
|
874
874
|
tooltip: A(() => [
|
|
875
875
|
V(a.$slots, "tooltip")
|
|
876
876
|
]),
|
|
@@ -915,7 +915,7 @@ const Yr = ["aria-describedby"], Ba = /* @__PURE__ */ U({
|
|
|
915
915
|
V(s.$slots, "default")
|
|
916
916
|
], 10, eu));
|
|
917
917
|
}
|
|
918
|
-
}),
|
|
918
|
+
}), Qn = tu, lu = ["aria-busy"], au = { class: "tw-sr-only" }, nu = /* @__PURE__ */ U({
|
|
919
919
|
__name: "vc-loading",
|
|
920
920
|
props: {
|
|
921
921
|
active: { type: Boolean }
|
|
@@ -1276,7 +1276,7 @@ const Yr = ["aria-describedby"], Ba = /* @__PURE__ */ U({
|
|
|
1276
1276
|
class: "vc-scrollable-container",
|
|
1277
1277
|
role: "region",
|
|
1278
1278
|
"aria-label": "Scrollable content"
|
|
1279
|
-
},
|
|
1279
|
+
}, gn = 40, ft = /* @__PURE__ */ U({
|
|
1280
1280
|
__name: "vc-scrollable-container",
|
|
1281
1281
|
props: {
|
|
1282
1282
|
speed: { default: void 0 }
|
|
@@ -1290,7 +1290,7 @@ const Yr = ["aria-describedby"], Ba = /* @__PURE__ */ U({
|
|
|
1290
1290
|
);
|
|
1291
1291
|
function v(g) {
|
|
1292
1292
|
if (!l.value) return;
|
|
1293
|
-
const f = g === "up" ? -
|
|
1293
|
+
const f = g === "up" ? -gn : gn;
|
|
1294
1294
|
l.value.scrollBy({ top: f, behavior: "smooth" });
|
|
1295
1295
|
}
|
|
1296
1296
|
return a({
|
|
@@ -1341,7 +1341,7 @@ const Yr = ["aria-describedby"], Ba = /* @__PURE__ */ U({
|
|
|
1341
1341
|
], 34)
|
|
1342
1342
|
]));
|
|
1343
1343
|
}
|
|
1344
|
-
}), Ou = ["aria-expanded", "disabled"], Lu = { class: "vc-accordion-item__title" },
|
|
1344
|
+
}), Ou = ["aria-expanded", "disabled"], Lu = { class: "vc-accordion-item__title" }, Jn = /* @__PURE__ */ U({
|
|
1345
1345
|
name: "VcAccordionItem",
|
|
1346
1346
|
__name: "vc-accordion-item",
|
|
1347
1347
|
props: {
|
|
@@ -1451,7 +1451,7 @@ const Yr = ["aria-describedby"], Ba = /* @__PURE__ */ U({
|
|
|
1451
1451
|
), (d, v) => (o(), p("div", {
|
|
1452
1452
|
class: q(["vc-accordion", `vc-accordion--${e.variant}`])
|
|
1453
1453
|
}, [
|
|
1454
|
-
(o(!0), p(ee, null, me(e.items, (g, f) => (o(), B(
|
|
1454
|
+
(o(!0), p(ee, null, me(e.items, (g, f) => (o(), B(Jn, {
|
|
1455
1455
|
key: g.id || f,
|
|
1456
1456
|
title: g.title,
|
|
1457
1457
|
"collapsed-height": g.collapsedHeight ?? e.collapsedHeight,
|
|
@@ -1479,7 +1479,7 @@ const Yr = ["aria-describedby"], Ba = /* @__PURE__ */ U({
|
|
|
1479
1479
|
V(d.$slots, "default")
|
|
1480
1480
|
], 2));
|
|
1481
1481
|
}
|
|
1482
|
-
}), US = Bu, HS =
|
|
1482
|
+
}), US = Bu, HS = Jn, Vu = ["aria-label", "aria-labelledby"], Du = /* @__PURE__ */ U({
|
|
1483
1483
|
__name: "vc-form",
|
|
1484
1484
|
props: {
|
|
1485
1485
|
ariaLabel: {},
|
|
@@ -1591,7 +1591,7 @@ const Yr = ["aria-describedby"], Ba = /* @__PURE__ */ U({
|
|
|
1591
1591
|
y("span", null, D(e.customText?.dragHere || n(r)("COMPONENTS.MOLECULES.VC_FILE_UPLOAD.DRAG_HERE")), 1),
|
|
1592
1592
|
I[4] || (I[4] = ie(" ", -1)),
|
|
1593
1593
|
I[5] || (I[5] = y("br", null, null, -1)),
|
|
1594
|
-
x(n(
|
|
1594
|
+
x(n(Qn), {
|
|
1595
1595
|
class: "vc-file-upload__link",
|
|
1596
1596
|
onClick: _
|
|
1597
1597
|
}, {
|
|
@@ -1696,7 +1696,7 @@ const Yr = ["aria-describedby"], Ba = /* @__PURE__ */ U({
|
|
|
1696
1696
|
], 10, Gu));
|
|
1697
1697
|
}
|
|
1698
1698
|
});
|
|
1699
|
-
function
|
|
1699
|
+
function bn(e) {
|
|
1700
1700
|
return "options" in e;
|
|
1701
1701
|
}
|
|
1702
1702
|
function pl(e) {
|
|
@@ -1719,7 +1719,7 @@ const Wu = {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
function s(i) {
|
|
1721
1721
|
const u = i.target;
|
|
1722
|
-
if (
|
|
1722
|
+
if (bn(a.customButton)) {
|
|
1723
1723
|
const c = a.customButton.options.find((d) => d.value === u.value);
|
|
1724
1724
|
c && c.action(a.editor, u.value);
|
|
1725
1725
|
}
|
|
@@ -1734,7 +1734,7 @@ const Wu = {
|
|
|
1734
1734
|
active: t.value,
|
|
1735
1735
|
disabled: e.disabled || l.value,
|
|
1736
1736
|
onAction: r
|
|
1737
|
-
}, null, 8, ["icon", "active", "disabled"])) : n(
|
|
1737
|
+
}, null, 8, ["icon", "active", "disabled"])) : n(bn)(e.customButton) ? (o(), p("div", Wu, [
|
|
1738
1738
|
y("select", {
|
|
1739
1739
|
disabled: e.disabled || l.value,
|
|
1740
1740
|
onChange: s
|
|
@@ -1821,7 +1821,7 @@ const Wu = {
|
|
|
1821
1821
|
onKeydown: ge(c, ["enter"]),
|
|
1822
1822
|
onBlur: c
|
|
1823
1823
|
}, null, 544), [
|
|
1824
|
-
[
|
|
1824
|
+
[Vn, l.value]
|
|
1825
1825
|
])
|
|
1826
1826
|
])
|
|
1827
1827
|
])) : R("", !0)
|
|
@@ -2339,7 +2339,7 @@ const Wu = {
|
|
|
2339
2339
|
])
|
|
2340
2340
|
])) : R("", !0),
|
|
2341
2341
|
y("div", rd, [
|
|
2342
|
-
w.value === "editor" ? (o(), B(n(
|
|
2342
|
+
w.value === "editor" ? (o(), B(n(vn), {
|
|
2343
2343
|
key: 0,
|
|
2344
2344
|
editor: n(M),
|
|
2345
2345
|
class: "vc-editor__content"
|
|
@@ -2360,7 +2360,7 @@ const Wu = {
|
|
|
2360
2360
|
}, null, 40, dd)) : R("", !0),
|
|
2361
2361
|
w.value === "split" ? (o(), p("div", cd, [
|
|
2362
2362
|
y("div", vd, [
|
|
2363
|
-
x(n(
|
|
2363
|
+
x(n(vn), {
|
|
2364
2364
|
editor: n(M),
|
|
2365
2365
|
class: "vc-editor__content"
|
|
2366
2366
|
}, null, 8, ["editor"])
|
|
@@ -2637,10 +2637,10 @@ const Wu = {
|
|
|
2637
2637
|
}
|
|
2638
2638
|
const P = N.trim();
|
|
2639
2639
|
if (xr(P)) {
|
|
2640
|
-
$.value =
|
|
2640
|
+
$.value = mn(P);
|
|
2641
2641
|
return;
|
|
2642
2642
|
}
|
|
2643
|
-
const W =
|
|
2643
|
+
const W = Ba(P);
|
|
2644
2644
|
W && ($.value = W);
|
|
2645
2645
|
}
|
|
2646
2646
|
ne(
|
|
@@ -2662,7 +2662,7 @@ const Wu = {
|
|
|
2662
2662
|
function M(N) {
|
|
2663
2663
|
const P = N.target;
|
|
2664
2664
|
if (P?.value) {
|
|
2665
|
-
const W =
|
|
2665
|
+
const W = mn(P.value);
|
|
2666
2666
|
$.value = W, k.value = W, r("update:modelValue", W);
|
|
2667
2667
|
}
|
|
2668
2668
|
}
|
|
@@ -2741,7 +2741,7 @@ const Wu = {
|
|
|
2741
2741
|
onFocus: I,
|
|
2742
2742
|
onInput: _
|
|
2743
2743
|
}, null, 40, $d), [
|
|
2744
|
-
[
|
|
2744
|
+
[Vn, k.value]
|
|
2745
2745
|
]),
|
|
2746
2746
|
y("div", _d, [
|
|
2747
2747
|
y("button", {
|
|
@@ -3056,7 +3056,7 @@ const Wu = {
|
|
|
3056
3056
|
onBlur: N,
|
|
3057
3057
|
onFocus: W
|
|
3058
3058
|
}, null, 40, Nd), [
|
|
3059
|
-
[
|
|
3059
|
+
[li, C.value]
|
|
3060
3060
|
])
|
|
3061
3061
|
]),
|
|
3062
3062
|
e.suffix ? (o(), p("div", Pd, D(e.suffix), 1)) : R("", !0),
|
|
@@ -3139,7 +3139,7 @@ const Wu = {
|
|
|
3139
3139
|
], 2));
|
|
3140
3140
|
}
|
|
3141
3141
|
});
|
|
3142
|
-
function
|
|
3142
|
+
function Zn(e = {}) {
|
|
3143
3143
|
const {
|
|
3144
3144
|
containerSelector: a = '[role="menu"]',
|
|
3145
3145
|
itemSelector: t = '[tabindex="0"]',
|
|
@@ -3253,12 +3253,12 @@ function Jn(e = {}) {
|
|
|
3253
3253
|
getFocusedIndex: () => u.value
|
|
3254
3254
|
};
|
|
3255
3255
|
}
|
|
3256
|
-
function
|
|
3256
|
+
function hn(e, a) {
|
|
3257
3257
|
const t = e !== void 0 ? e : a;
|
|
3258
3258
|
return typeof t == "function" ? t : (l) => l === null || typeof l != "object" ? l : t && t in l ? l[t] : l;
|
|
3259
3259
|
}
|
|
3260
3260
|
function qd(e) {
|
|
3261
|
-
const a = S(() =>
|
|
3261
|
+
const a = S(() => hn(e.optionValue(), "id")), t = S(() => hn(e.optionLabel(), "title"));
|
|
3262
3262
|
function l(i, u, c, d) {
|
|
3263
3263
|
const v = (g) => Mt(a.value(g), i);
|
|
3264
3264
|
return c.find(v) || d.find(v) || u.find(v) || i;
|
|
@@ -4084,7 +4084,7 @@ const Qd = { class: "vc-select__control" }, Jd = {
|
|
|
4084
4084
|
},
|
|
4085
4085
|
{ threshold: 1, root: j }
|
|
4086
4086
|
);
|
|
4087
|
-
const ke =
|
|
4087
|
+
const ke = Zn({
|
|
4088
4088
|
onEnter: (Z) => {
|
|
4089
4089
|
const fe = parseInt(Z.getAttribute("data-index") || "0", 10);
|
|
4090
4090
|
X.value && X.value[fe] && X.value[fe].toggleOption(X.value[fe].opt);
|
|
@@ -5290,7 +5290,7 @@ function Tv(e) {
|
|
|
5290
5290
|
if (s === "" || s === void 0 || s === null)
|
|
5291
5291
|
return;
|
|
5292
5292
|
if (e.type() === "color") {
|
|
5293
|
-
const u =
|
|
5293
|
+
const u = Ba(s);
|
|
5294
5294
|
e.addItem({
|
|
5295
5295
|
[e.optionLabel()]: s,
|
|
5296
5296
|
colorCode: u || "#000000"
|
|
@@ -5367,7 +5367,7 @@ function Mv(e) {
|
|
|
5367
5367
|
b && u.update();
|
|
5368
5368
|
}
|
|
5369
5369
|
);
|
|
5370
|
-
const d =
|
|
5370
|
+
const d = Zn({
|
|
5371
5371
|
onEnter: (b) => {
|
|
5372
5372
|
const h = parseInt(b.getAttribute("data-index") || "0", 10);
|
|
5373
5373
|
e.onItemSelect(h);
|
|
@@ -5666,7 +5666,7 @@ const Lv = { key: 0 }, Bv = { key: 1 }, KS = /* @__PURE__ */ U({
|
|
|
5666
5666
|
])) : R("", !0),
|
|
5667
5667
|
e.type === "date-ago" ? (o(), p("div", Uv, [
|
|
5668
5668
|
y("div", Hv, [
|
|
5669
|
-
y("p", Gv, D(e.value instanceof Date ? n(
|
|
5669
|
+
y("p", Gv, D(e.value instanceof Date ? n(Yn)(e.value) ?? "N/A" : e.value), 1)
|
|
5670
5670
|
])
|
|
5671
5671
|
])) : R("", !0),
|
|
5672
5672
|
e.type === "link" ? (o(), p("div", Wv, [
|
|
@@ -5721,7 +5721,7 @@ const Lv = { key: 0 }, Bv = { key: 1 }, KS = /* @__PURE__ */ U({
|
|
|
5721
5721
|
"vc-field--horizontal": e.orientation === "horizontal"
|
|
5722
5722
|
}])
|
|
5723
5723
|
}, [
|
|
5724
|
-
x(n(
|
|
5724
|
+
x(n(pn), {
|
|
5725
5725
|
size: e.aspectRatio[0]
|
|
5726
5726
|
}, {
|
|
5727
5727
|
default: A(() => [
|
|
@@ -5742,7 +5742,7 @@ const Lv = { key: 0 }, Bv = { key: 1 }, KS = /* @__PURE__ */ U({
|
|
|
5742
5742
|
]),
|
|
5743
5743
|
_: 1
|
|
5744
5744
|
}, 8, ["size"]),
|
|
5745
|
-
x(n(
|
|
5745
|
+
x(n(pn), {
|
|
5746
5746
|
size: e.aspectRatio[1]
|
|
5747
5747
|
}, {
|
|
5748
5748
|
default: A(() => [
|
|
@@ -5770,7 +5770,7 @@ const Lv = { key: 0 }, Bv = { key: 1 }, KS = /* @__PURE__ */ U({
|
|
|
5770
5770
|
], 2);
|
|
5771
5771
|
};
|
|
5772
5772
|
}
|
|
5773
|
-
}), Qv = { class: "vc-radio-button" }, Jv = { class: "vc-radio-button__label" }, Zv = ["id", "name", "value", "checked", "disabled", "aria-invalid", "aria-required", "aria-describedby"], ef = { key: 0 },
|
|
5773
|
+
}), Qv = { class: "vc-radio-button" }, Jv = { class: "vc-radio-button__label" }, Zv = ["id", "name", "value", "checked", "disabled", "aria-invalid", "aria-required", "aria-describedby"], ef = { key: 0 }, Da = /* @__PURE__ */ U({
|
|
5774
5774
|
__name: "vc-radio-button",
|
|
5775
5775
|
props: {
|
|
5776
5776
|
label: {},
|
|
@@ -5843,7 +5843,7 @@ const Lv = { key: 0 }, Bv = { key: 1 }, KS = /* @__PURE__ */ U({
|
|
|
5843
5843
|
})
|
|
5844
5844
|
]));
|
|
5845
5845
|
}
|
|
5846
|
-
}), tf = ["disabled", "role", "aria-invalid", "aria-describedby", "aria-labelledby", "aria-label"], lf = ["id"], af = { class: "vc-input-group__controls" }, nf = { key: 0 }, of = { key: 1 },
|
|
5846
|
+
}), tf = ["disabled", "role", "aria-invalid", "aria-describedby", "aria-labelledby", "aria-label"], lf = ["id"], af = { class: "vc-input-group__controls" }, nf = { key: 0 }, of = { key: 1 }, eo = /* @__PURE__ */ U({
|
|
5847
5847
|
__name: "vc-input-group",
|
|
5848
5848
|
props: {
|
|
5849
5849
|
label: {},
|
|
@@ -5866,7 +5866,7 @@ const Lv = { key: 0 }, Bv = { key: 1 }, KS = /* @__PURE__ */ U({
|
|
|
5866
5866
|
if (a.hint)
|
|
5867
5867
|
return r.value;
|
|
5868
5868
|
}), c = S(() => a.label ? l.value : a.ariaLabelledby);
|
|
5869
|
-
return Me(
|
|
5869
|
+
return Me(Xn, {
|
|
5870
5870
|
name: Ie(a, "name"),
|
|
5871
5871
|
disabled: S(() => !!a.disabled),
|
|
5872
5872
|
invalid: i,
|
|
@@ -5973,7 +5973,7 @@ const Lv = { key: 0 }, Bv = { key: 1 }, KS = /* @__PURE__ */ U({
|
|
|
5973
5973
|
function c(d, v) {
|
|
5974
5974
|
return typeof d.value == "string" || typeof d.value == "number" ? `${d.value}` : `${v}`;
|
|
5975
5975
|
}
|
|
5976
|
-
return (d, v) => (o(), B(n(
|
|
5976
|
+
return (d, v) => (o(), B(n(eo), {
|
|
5977
5977
|
class: "vc-radio-group",
|
|
5978
5978
|
label: e.label,
|
|
5979
5979
|
tooltip: e.tooltip,
|
|
@@ -5987,7 +5987,7 @@ const Lv = { key: 0 }, Bv = { key: 1 }, KS = /* @__PURE__ */ U({
|
|
|
5987
5987
|
name: i.value
|
|
5988
5988
|
}, {
|
|
5989
5989
|
default: A(() => [
|
|
5990
|
-
d.$slots.default ? V(d.$slots, "default", { key: 0 }) : (o(!0), p(ee, { key: 1 }, me(e.options, (g, f) => (o(), B(n(
|
|
5990
|
+
d.$slots.default ? V(d.$slots, "default", { key: 0 }) : (o(!0), p(ee, { key: 1 }, me(e.options, (g, f) => (o(), B(n(Da), {
|
|
5991
5991
|
key: c(g, f),
|
|
5992
5992
|
"model-value": e.modelValue,
|
|
5993
5993
|
value: g.value,
|
|
@@ -6018,7 +6018,7 @@ const Lv = { key: 0 }, Bv = { key: 1 }, KS = /* @__PURE__ */ U({
|
|
|
6018
6018
|
key: 1,
|
|
6019
6019
|
class: "vc-checkbox__required",
|
|
6020
6020
|
"aria-hidden": "true"
|
|
6021
|
-
}, mf = { key: 0 },
|
|
6021
|
+
}, mf = { key: 0 }, Na = /* @__PURE__ */ U({
|
|
6022
6022
|
__name: "vc-checkbox",
|
|
6023
6023
|
props: {
|
|
6024
6024
|
label: {},
|
|
@@ -6111,7 +6111,7 @@ const Lv = { key: 0 }, Bv = { key: 1 }, KS = /* @__PURE__ */ U({
|
|
|
6111
6111
|
"aria-describedby": n(v),
|
|
6112
6112
|
tabindex: "0"
|
|
6113
6113
|
}, null, 8, rf), [
|
|
6114
|
-
[
|
|
6114
|
+
[ai, f.value]
|
|
6115
6115
|
]),
|
|
6116
6116
|
y("span", uf, [
|
|
6117
6117
|
V(h.$slots, "icon", {}, () => [
|
|
@@ -6192,7 +6192,7 @@ const Lv = { key: 0 }, Bv = { key: 1 }, KS = /* @__PURE__ */ U({
|
|
|
6192
6192
|
function d(v, g) {
|
|
6193
6193
|
return typeof v.value == "string" || typeof v.value == "number" ? `${v.value}` : `${g}`;
|
|
6194
6194
|
}
|
|
6195
|
-
return (v, g) => (o(), B(n(
|
|
6195
|
+
return (v, g) => (o(), B(n(eo), {
|
|
6196
6196
|
class: "vc-checkbox-group",
|
|
6197
6197
|
label: e.label,
|
|
6198
6198
|
tooltip: e.tooltip,
|
|
@@ -6206,7 +6206,7 @@ const Lv = { key: 0 }, Bv = { key: 1 }, KS = /* @__PURE__ */ U({
|
|
|
6206
6206
|
name: i.value
|
|
6207
6207
|
}, {
|
|
6208
6208
|
default: A(() => [
|
|
6209
|
-
v.$slots.default ? V(v.$slots, "default", { key: 0 }) : (o(!0), p(ee, { key: 1 }, me(e.options, (f, b) => (o(), B(n(
|
|
6209
|
+
v.$slots.default ? V(v.$slots, "default", { key: 0 }) : (o(!0), p(ee, { key: 1 }, me(e.options, (f, b) => (o(), B(n(Na), {
|
|
6210
6210
|
key: d(f, b),
|
|
6211
6211
|
"model-value": u.value,
|
|
6212
6212
|
value: f.value,
|
|
@@ -6460,7 +6460,7 @@ const Lv = { key: 0 }, Bv = { key: 1 }, KS = /* @__PURE__ */ U({
|
|
|
6460
6460
|
})
|
|
6461
6461
|
], 8, ["to"]));
|
|
6462
6462
|
}
|
|
6463
|
-
}),
|
|
6463
|
+
}), Pa = Symbol("VcMenuExpanded"), $f = { class: "vc-menu" }, _f = {
|
|
6464
6464
|
key: 0,
|
|
6465
6465
|
class: "vc-menu__skeleton"
|
|
6466
6466
|
}, Ef = { class: "tw-flex tw-items-center tw-h-[30px] tw-px-1.5" }, Af = { class: "tw-flex tw-flex-col tw-gap-1" }, Rf = { class: "tw-flex tw-items-center tw-gap-1.5 tw-h-7 tw-px-1.5" }, If = {
|
|
@@ -6479,7 +6479,7 @@ const Lv = { key: 0 }, Bv = { key: 1 }, KS = /* @__PURE__ */ U({
|
|
|
6479
6479
|
setup(e) {
|
|
6480
6480
|
const a = e;
|
|
6481
6481
|
Me(
|
|
6482
|
-
|
|
6482
|
+
Pa,
|
|
6483
6483
|
S(() => a.expanded)
|
|
6484
6484
|
);
|
|
6485
6485
|
const t = [
|
|
@@ -6550,7 +6550,7 @@ const Lv = { key: 0 }, Bv = { key: 1 }, KS = /* @__PURE__ */ U({
|
|
|
6550
6550
|
}, Of = {
|
|
6551
6551
|
key: 1,
|
|
6552
6552
|
class: "vc-menu-item__letters"
|
|
6553
|
-
}, Lf = { class: "vc-menu-item__title" }, Bf = { class: "vc-menu-item__title-text" },
|
|
6553
|
+
}, Lf = { class: "vc-menu-item__title" }, Bf = { class: "vc-menu-item__title-text" }, to = /* @__PURE__ */ U({
|
|
6554
6554
|
name: "VcMenuItem",
|
|
6555
6555
|
__name: "vc-menu-item",
|
|
6556
6556
|
props: {
|
|
@@ -6563,7 +6563,7 @@ const Lv = { key: 0 }, Bv = { key: 1 }, KS = /* @__PURE__ */ U({
|
|
|
6563
6563
|
},
|
|
6564
6564
|
emits: ["click"],
|
|
6565
6565
|
setup(e) {
|
|
6566
|
-
const a = e, t = de(
|
|
6566
|
+
const a = e, t = de(Pa, void 0), l = S(() => a.expanded != null ? a.expanded : t?.value ?? !0), r = S(() => a.title?.split(" ").slice(0, 2).map((i) => i[0]).join("")), s = S(() => {
|
|
6567
6567
|
if (!a.badge) return !1;
|
|
6568
6568
|
if (a.badge.isDot) return !0;
|
|
6569
6569
|
const i = a.badge.content;
|
|
@@ -6645,7 +6645,7 @@ const Lv = { key: 0 }, Bv = { key: 1 }, KS = /* @__PURE__ */ U({
|
|
|
6645
6645
|
},
|
|
6646
6646
|
emits: ["update:open"],
|
|
6647
6647
|
setup(e, { expose: a }) {
|
|
6648
|
-
const t = e, l = de(
|
|
6648
|
+
const t = e, l = de(Pa, void 0), r = S(() => l?.value ?? !0), s = typeof window > "u" ? `vc_menu_${t.groupId}_open` : `vc_menu_${window.location.pathname.split("/").filter(Boolean)[0] || "default"}_${t.groupId}_open`, i = Oa(s, t.open ?? !1), u = () => {
|
|
6649
6649
|
i.value = !i.value;
|
|
6650
6650
|
};
|
|
6651
6651
|
return a({
|
|
@@ -6675,7 +6675,7 @@ const Lv = { key: 0 }, Bv = { key: 1 }, KS = /* @__PURE__ */ U({
|
|
|
6675
6675
|
icon: "lucide-chevron-down",
|
|
6676
6676
|
size: "s"
|
|
6677
6677
|
}, null, 8, ["class"])
|
|
6678
|
-
], 2)) : (o(), B(
|
|
6678
|
+
], 2)) : (o(), B(to, {
|
|
6679
6679
|
key: 1,
|
|
6680
6680
|
icon: e.icon,
|
|
6681
6681
|
title: e.title,
|
|
@@ -6705,7 +6705,7 @@ const Lv = { key: 0 }, Bv = { key: 1 }, KS = /* @__PURE__ */ U({
|
|
|
6705
6705
|
], 2)
|
|
6706
6706
|
], 2));
|
|
6707
6707
|
}
|
|
6708
|
-
}), Ff = xf,
|
|
6708
|
+
}), Ff = xf, yn = to, zf = Pf;
|
|
6709
6709
|
function Uf(e) {
|
|
6710
6710
|
const a = O(!1), t = O(!1);
|
|
6711
6711
|
function l() {
|
|
@@ -6724,7 +6724,7 @@ function Uf(e) {
|
|
|
6724
6724
|
const Hf = {
|
|
6725
6725
|
key: 0,
|
|
6726
6726
|
class: "vc-image-tile__skeleton"
|
|
6727
|
-
}, Gf = ["src", "alt"], Wf = { class: "vc-image-tile__tray" }, qf = { class: "vc-image-tile__tray-actions" }, Kf = ["title"], Yf = ["title"], jf = ["title"], Xf = ["title"],
|
|
6727
|
+
}, Gf = ["src", "alt"], Wf = { class: "vc-image-tile__tray" }, qf = { class: "vc-image-tile__tray-actions" }, Kf = ["title"], Yf = ["title"], jf = ["title"], Xf = ["title"], lo = /* @__PURE__ */ U({
|
|
6728
6728
|
__name: "vc-image-tile",
|
|
6729
6729
|
props: {
|
|
6730
6730
|
src: {},
|
|
@@ -6817,7 +6817,7 @@ function Zf() {
|
|
|
6817
6817
|
return `${Qf}_${a}`;
|
|
6818
6818
|
}
|
|
6819
6819
|
const em = () => {
|
|
6820
|
-
const e =
|
|
6820
|
+
const e = Oa(Zf(), !0), a = O(!1);
|
|
6821
6821
|
let t = null;
|
|
6822
6822
|
const l = () => {
|
|
6823
6823
|
e.value = !e.value;
|
|
@@ -6856,7 +6856,7 @@ function tm() {
|
|
|
6856
6856
|
};
|
|
6857
6857
|
return Me(Sa, v), v;
|
|
6858
6858
|
}
|
|
6859
|
-
function
|
|
6859
|
+
function Fa() {
|
|
6860
6860
|
const e = de(Sa);
|
|
6861
6861
|
if (!e)
|
|
6862
6862
|
throw new Error("useSidebarState() requires provideSidebarState() in a parent component");
|
|
@@ -6880,7 +6880,7 @@ const lm = { class: "sidebar-header__logo-container" }, am = { class: "sidebar-h
|
|
|
6880
6880
|
}, cm = { class: "sidebar-header__menu-button-wrap" }, vm = {
|
|
6881
6881
|
key: 1,
|
|
6882
6882
|
class: "sidebar-header__actions"
|
|
6883
|
-
},
|
|
6883
|
+
}, ao = /* @__PURE__ */ U({
|
|
6884
6884
|
__name: "SidebarHeader",
|
|
6885
6885
|
props: {
|
|
6886
6886
|
logo: {},
|
|
@@ -6895,7 +6895,7 @@ const lm = { class: "sidebar-header__logo-container" }, am = { class: "sidebar-h
|
|
|
6895
6895
|
},
|
|
6896
6896
|
emits: ["logo:click", "toggle-menu", "toggle-notifications"],
|
|
6897
6897
|
setup(e) {
|
|
6898
|
-
const a = de(
|
|
6898
|
+
const a = de(Pn, O(!1));
|
|
6899
6899
|
return (t, l) => e.isVisible ? (o(), p("div", {
|
|
6900
6900
|
key: 0,
|
|
6901
6901
|
class: q(["sidebar-header", {
|
|
@@ -6977,7 +6977,7 @@ const lm = { class: "sidebar-header__logo-container" }, am = { class: "sidebar-h
|
|
|
6977
6977
|
], 2)) : R("", !0);
|
|
6978
6978
|
}
|
|
6979
6979
|
});
|
|
6980
|
-
function
|
|
6980
|
+
function no(e) {
|
|
6981
6981
|
const a = xt({}), t = xt([]), l = xt(/* @__PURE__ */ new Map());
|
|
6982
6982
|
function r(f) {
|
|
6983
6983
|
l.set(f, (l.get(f) ?? 0) + 1);
|
|
@@ -7043,7 +7043,7 @@ function ao(e) {
|
|
|
7043
7043
|
isRegistered: g
|
|
7044
7044
|
};
|
|
7045
7045
|
}
|
|
7046
|
-
function
|
|
7046
|
+
function oo(e) {
|
|
7047
7047
|
const a = O(/* @__PURE__ */ new Map()), t = S(() => Array.from(a.value.values()).sort((s, i) => (s.order ?? 0) - (i.order ?? 0)));
|
|
7048
7048
|
function l(s) {
|
|
7049
7049
|
const i = e.getId(s) || crypto.randomUUID(), u = e.createItem(s, a.value.size);
|
|
@@ -7064,16 +7064,16 @@ function QS() {
|
|
|
7064
7064
|
const e = de(ma, null);
|
|
7065
7065
|
if (e)
|
|
7066
7066
|
return e;
|
|
7067
|
-
const a =
|
|
7068
|
-
return Me(ma, a), kt() && mt(() =>
|
|
7067
|
+
const a = si();
|
|
7068
|
+
return Me(ma, a), kt() && mt(() => ri.dispose(a)), a;
|
|
7069
7069
|
}
|
|
7070
|
-
function
|
|
7070
|
+
function io() {
|
|
7071
7071
|
const e = de(ma);
|
|
7072
7072
|
if (!e)
|
|
7073
7073
|
throw fm.error("Menu service not found in current context. Injection chain:", pt()), new Ct("MenuService");
|
|
7074
7074
|
return e;
|
|
7075
7075
|
}
|
|
7076
|
-
const
|
|
7076
|
+
const wn = {
|
|
7077
7077
|
af: "za",
|
|
7078
7078
|
ar: "sa",
|
|
7079
7079
|
az: "az",
|
|
@@ -7146,8 +7146,8 @@ const yn = {
|
|
|
7146
7146
|
zh: "cn",
|
|
7147
7147
|
zu: "za"
|
|
7148
7148
|
}, _l = "fallback-blade-id";
|
|
7149
|
-
function
|
|
7150
|
-
const e =
|
|
7149
|
+
function so() {
|
|
7150
|
+
const e = Oa("VC_LANGUAGE_SETTINGS", "");
|
|
7151
7151
|
function a(c) {
|
|
7152
7152
|
if (!c)
|
|
7153
7153
|
return "en";
|
|
@@ -7175,7 +7175,7 @@ function io() {
|
|
|
7175
7175
|
return a(c);
|
|
7176
7176
|
}
|
|
7177
7177
|
function i(c) {
|
|
7178
|
-
return
|
|
7178
|
+
return wn[c.toLowerCase()] || wn[c.slice(0, 2)] || "xx";
|
|
7179
7179
|
}
|
|
7180
7180
|
async function u(c) {
|
|
7181
7181
|
if (!c) return "";
|
|
@@ -7191,26 +7191,26 @@ function io() {
|
|
|
7191
7191
|
getCountryCode: i
|
|
7192
7192
|
};
|
|
7193
7193
|
}
|
|
7194
|
-
const
|
|
7194
|
+
const ro = Ye("use-languages");
|
|
7195
7195
|
let ia = null;
|
|
7196
|
-
function
|
|
7197
|
-
return ia || (ia =
|
|
7196
|
+
function uo() {
|
|
7197
|
+
return ia || (ia = so()), ia;
|
|
7198
7198
|
}
|
|
7199
7199
|
function JS() {
|
|
7200
|
-
if (!
|
|
7201
|
-
return
|
|
7200
|
+
if (!Dn())
|
|
7201
|
+
return ro.warn("No injection context for provideLanguages; using fallback language service"), uo();
|
|
7202
7202
|
const e = de(pa, null);
|
|
7203
7203
|
if (e)
|
|
7204
7204
|
return e;
|
|
7205
|
-
const a =
|
|
7205
|
+
const a = so();
|
|
7206
7206
|
return Me(pa, a), a;
|
|
7207
7207
|
}
|
|
7208
7208
|
function mm() {
|
|
7209
|
-
if (!
|
|
7210
|
-
return
|
|
7209
|
+
if (!Dn())
|
|
7210
|
+
return uo();
|
|
7211
7211
|
const e = de(pa, null);
|
|
7212
7212
|
if (!e)
|
|
7213
|
-
throw
|
|
7213
|
+
throw ro.error("Language service not found"), new Ct("LanguageService");
|
|
7214
7214
|
return e;
|
|
7215
7215
|
}
|
|
7216
7216
|
const pm = Ye("use-theme"), ht = O([{ key: "light", localizationKey: "CORE.THEMES.LIGHT" }]), gm = () => {
|
|
@@ -7263,13 +7263,13 @@ const pm = Ye("use-theme"), ht = O([{ key: "light", localizationKey: "CORE.THEME
|
|
|
7263
7263
|
unregister: t,
|
|
7264
7264
|
setTheme: u
|
|
7265
7265
|
};
|
|
7266
|
-
},
|
|
7266
|
+
}, za = Jt({
|
|
7267
7267
|
name: "dashboard-service",
|
|
7268
7268
|
getKey: (e) => e.id,
|
|
7269
7269
|
registerIntoService: (e, a) => e.registerWidget(a)
|
|
7270
7270
|
});
|
|
7271
7271
|
function ZS(e) {
|
|
7272
|
-
|
|
7272
|
+
za.preregister(e);
|
|
7273
7273
|
}
|
|
7274
7274
|
const bm = () => ({
|
|
7275
7275
|
widgets: kl(/* @__PURE__ */ new Map()),
|
|
@@ -7300,9 +7300,9 @@ function hm(e = {}) {
|
|
|
7300
7300
|
},
|
|
7301
7301
|
getLayout: () => new Map(a.layout)
|
|
7302
7302
|
};
|
|
7303
|
-
return
|
|
7303
|
+
return za.replayInto(u), u;
|
|
7304
7304
|
}
|
|
7305
|
-
const
|
|
7305
|
+
const co = Ye("use-dashboard");
|
|
7306
7306
|
function ym() {
|
|
7307
7307
|
const e = de(ga, null);
|
|
7308
7308
|
if (e)
|
|
@@ -7312,30 +7312,30 @@ function ym() {
|
|
|
7312
7312
|
const { hasAccess: l } = Zt();
|
|
7313
7313
|
a = (r) => l(r);
|
|
7314
7314
|
} catch (l) {
|
|
7315
|
-
|
|
7315
|
+
co.warn("Permissions composable unavailable, dashboard falls back to allow-all access check", l);
|
|
7316
7316
|
}
|
|
7317
7317
|
const t = hm({
|
|
7318
7318
|
hasAccess: a
|
|
7319
7319
|
});
|
|
7320
|
-
return Me(ga, t), kt() && mt(() =>
|
|
7320
|
+
return Me(ga, t), kt() && mt(() => za.dispose(t)), t;
|
|
7321
7321
|
}
|
|
7322
7322
|
function eC() {
|
|
7323
7323
|
const e = de(ga);
|
|
7324
7324
|
if (!e)
|
|
7325
|
-
throw
|
|
7325
|
+
throw co.error("Dashboard service not found"), new Ct("DashboardService");
|
|
7326
7326
|
return e;
|
|
7327
7327
|
}
|
|
7328
|
-
const
|
|
7328
|
+
const Ua = Jt({
|
|
7329
7329
|
name: "app-bar-menu-service",
|
|
7330
7330
|
getKey: (e) => e.id || crypto.randomUUID(),
|
|
7331
7331
|
registerIntoService: (e, a) => e.register(a),
|
|
7332
7332
|
unregisterFromService: (e, a) => e.unregister(a)
|
|
7333
7333
|
});
|
|
7334
7334
|
function tC(e) {
|
|
7335
|
-
|
|
7335
|
+
Ua.preregister(e);
|
|
7336
7336
|
}
|
|
7337
7337
|
function wm() {
|
|
7338
|
-
const e =
|
|
7338
|
+
const e = oo({
|
|
7339
7339
|
createItem: (t, l) => ({
|
|
7340
7340
|
id: t.id || "",
|
|
7341
7341
|
order: t.order ?? l,
|
|
@@ -7354,7 +7354,7 @@ function wm() {
|
|
|
7354
7354
|
unregister: (t) => e.unregister(t),
|
|
7355
7355
|
items: e.sortedItems
|
|
7356
7356
|
};
|
|
7357
|
-
return
|
|
7357
|
+
return Ua.replayInto(a), a;
|
|
7358
7358
|
}
|
|
7359
7359
|
const km = Ye("use-app-bar-widget");
|
|
7360
7360
|
function lC() {
|
|
@@ -7362,7 +7362,7 @@ function lC() {
|
|
|
7362
7362
|
if (e)
|
|
7363
7363
|
return e;
|
|
7364
7364
|
const a = wm();
|
|
7365
|
-
return Me(ba, a), kt() && mt(() =>
|
|
7365
|
+
return Me(ba, a), kt() && mt(() => Ua.dispose(a)), a;
|
|
7366
7366
|
}
|
|
7367
7367
|
function Bl() {
|
|
7368
7368
|
const e = de(ba);
|
|
@@ -7370,17 +7370,17 @@ function Bl() {
|
|
|
7370
7370
|
throw km.error("AppBarWidgetService not found"), new Ct("AppBarWidgetService");
|
|
7371
7371
|
return e;
|
|
7372
7372
|
}
|
|
7373
|
-
const
|
|
7373
|
+
const Ha = Jt({
|
|
7374
7374
|
name: "settings-menu-service",
|
|
7375
7375
|
getKey: (e) => e.id || crypto.randomUUID(),
|
|
7376
7376
|
registerIntoService: (e, a) => e.register(a),
|
|
7377
7377
|
unregisterFromService: (e, a) => e.unregister(a)
|
|
7378
7378
|
});
|
|
7379
7379
|
function aC(e) {
|
|
7380
|
-
|
|
7380
|
+
Ha.preregister(e);
|
|
7381
7381
|
}
|
|
7382
7382
|
function Sm() {
|
|
7383
|
-
const e =
|
|
7383
|
+
const e = oo({
|
|
7384
7384
|
createItem: (t, l) => ({
|
|
7385
7385
|
id: t.id || "",
|
|
7386
7386
|
order: t.order ?? l,
|
|
@@ -7394,7 +7394,7 @@ function Sm() {
|
|
|
7394
7394
|
unregister: (t) => e.unregister(t),
|
|
7395
7395
|
items: e.sortedItems
|
|
7396
7396
|
};
|
|
7397
|
-
return
|
|
7397
|
+
return Ha.replayInto(a), a;
|
|
7398
7398
|
}
|
|
7399
7399
|
const Cm = Ye("use-settings-menu");
|
|
7400
7400
|
function nC() {
|
|
@@ -7402,7 +7402,7 @@ function nC() {
|
|
|
7402
7402
|
if (e)
|
|
7403
7403
|
return e;
|
|
7404
7404
|
const a = Sm();
|
|
7405
|
-
return Me(Cl, a), kt() && mt(() =>
|
|
7405
|
+
return Me(Cl, a), kt() && mt(() => Ha.dispose(a)), a;
|
|
7406
7406
|
}
|
|
7407
7407
|
function $m() {
|
|
7408
7408
|
const e = de(Cl);
|
|
@@ -7410,20 +7410,20 @@ function $m() {
|
|
|
7410
7410
|
throw Cm.error("Settings menu service not found"), new Ct("SettingsMenuService");
|
|
7411
7411
|
return e;
|
|
7412
7412
|
}
|
|
7413
|
-
const
|
|
7413
|
+
const Ga = Jt({
|
|
7414
7414
|
name: "toolbar-service",
|
|
7415
7415
|
getKey: (e) => `${e.bladeId.toLowerCase()}::${e.toolbarItem.id}`,
|
|
7416
7416
|
registerIntoService: (e, a) => e.registerToolbarItem(a.toolbarItem, a.bladeId)
|
|
7417
7417
|
});
|
|
7418
7418
|
function oC(e, a) {
|
|
7419
7419
|
const t = a.toLowerCase();
|
|
7420
|
-
|
|
7420
|
+
Ga.preregister({
|
|
7421
7421
|
bladeId: t,
|
|
7422
7422
|
toolbarItem: e
|
|
7423
7423
|
});
|
|
7424
7424
|
}
|
|
7425
|
-
function
|
|
7426
|
-
const e =
|
|
7425
|
+
function vo() {
|
|
7426
|
+
const e = no({
|
|
7427
7427
|
createRegistration: (u, c) => ({ bladeId: u, toolbarItem: c }),
|
|
7428
7428
|
getRegistrationBladeId: (u) => u.bladeId,
|
|
7429
7429
|
getRegistrationItemId: (u) => u.toolbarItem.id
|
|
@@ -7453,19 +7453,19 @@ function co() {
|
|
|
7453
7453
|
isToolbarItemRegistered: (u) => e.isRegistered(u),
|
|
7454
7454
|
updateToolbarItem: s
|
|
7455
7455
|
};
|
|
7456
|
-
return
|
|
7456
|
+
return Ga.replayInto(i), i;
|
|
7457
7457
|
}
|
|
7458
7458
|
let sa = null;
|
|
7459
7459
|
function iC() {
|
|
7460
7460
|
const e = de(ha, null);
|
|
7461
7461
|
if (e)
|
|
7462
7462
|
return e;
|
|
7463
|
-
const a =
|
|
7464
|
-
return Me(ha, a), kt() && mt(() =>
|
|
7463
|
+
const a = vo();
|
|
7464
|
+
return Me(ha, a), kt() && mt(() => Ga.dispose(a)), a;
|
|
7465
7465
|
}
|
|
7466
7466
|
function _m(e = {}) {
|
|
7467
7467
|
const { autoCleanup: a = !0 } = e, t = de(ha, null);
|
|
7468
|
-
!t && !sa && (sa =
|
|
7468
|
+
!t && !sa && (sa = vo());
|
|
7469
7469
|
const l = t || sa;
|
|
7470
7470
|
if (!l)
|
|
7471
7471
|
throw new Error("Toolbar service is not available");
|
|
@@ -7500,7 +7500,7 @@ function _m(e = {}) {
|
|
|
7500
7500
|
registeredToolbarItems: l.registeredToolbarItems
|
|
7501
7501
|
};
|
|
7502
7502
|
}
|
|
7503
|
-
function
|
|
7503
|
+
function fo(e) {
|
|
7504
7504
|
const a = Object.values(e.params)?.[0], t = typeof a == "string" ? a : "";
|
|
7505
7505
|
return t && e.path.startsWith(`/${t}/`) ? e.path.slice(t.length + 1) : t && e.path === `/${t}` ? "/" : e.path;
|
|
7506
7506
|
}
|
|
@@ -7509,7 +7509,7 @@ function sC(e) {
|
|
|
7509
7509
|
return { isActive: S(() => {
|
|
7510
7510
|
const l = Te(e);
|
|
7511
7511
|
if (!l) return !1;
|
|
7512
|
-
const r =
|
|
7512
|
+
const r = fo(a);
|
|
7513
7513
|
return r === l || r.startsWith(l + "/");
|
|
7514
7514
|
}) };
|
|
7515
7515
|
}
|
|
@@ -7521,7 +7521,7 @@ const Ca = /* @__PURE__ */ U({
|
|
|
7521
7521
|
},
|
|
7522
7522
|
emits: ["item:click"],
|
|
7523
7523
|
setup(e, { emit: a }) {
|
|
7524
|
-
const t = e, l = a, r = Dt(), { t: s } = Ve(), { menuItems: i, menuBadges: u } =
|
|
7524
|
+
const t = e, l = a, r = Dt(), { t: s } = Ve(), { menuItems: i, menuBadges: u } = io(), { hasAccess: c } = Zt(), d = ($) => c($.permissions), v = ($) => ($.children ?? []).filter((E) => d(E)), g = S(() => i.value.filter(($) => d($) ? $.children?.length ? v($).length > 0 : !0 : !1)), f = S(() => {
|
|
7525
7525
|
const $ = t.searchQuery?.toLowerCase().trim();
|
|
7526
7526
|
return $ ? g.value.map((E) => {
|
|
7527
7527
|
const _ = v(E);
|
|
@@ -7535,7 +7535,7 @@ const Ca = /* @__PURE__ */ U({
|
|
|
7535
7535
|
l("item:click", $);
|
|
7536
7536
|
}, m = ($) => {
|
|
7537
7537
|
if (!$) return !1;
|
|
7538
|
-
const E =
|
|
7538
|
+
const E = fo(r);
|
|
7539
7539
|
return E === $ || E.startsWith($ + "/");
|
|
7540
7540
|
};
|
|
7541
7541
|
function w($) {
|
|
@@ -7591,7 +7591,7 @@ const Ca = /* @__PURE__ */ U({
|
|
|
7591
7591
|
badge: k.value.get(_.routeId ?? _.groupId ?? "")
|
|
7592
7592
|
}, {
|
|
7593
7593
|
default: A(() => [
|
|
7594
|
-
(o(!0), p(ee, null, me(v(_), (M) => (o(), B(n(
|
|
7594
|
+
(o(!0), p(ee, null, me(v(_), (M) => (o(), B(n(yn), {
|
|
7595
7595
|
key: M.routeId || M.url || M.id || M.title,
|
|
7596
7596
|
"data-test-id": M.routeId,
|
|
7597
7597
|
icon: M.icon,
|
|
@@ -7603,7 +7603,7 @@ const Ca = /* @__PURE__ */ U({
|
|
|
7603
7603
|
}, null, 8, ["data-test-id", "icon", "title", "badge", "active", "onClick"]))), 128))
|
|
7604
7604
|
]),
|
|
7605
7605
|
_: 2
|
|
7606
|
-
}, 1032, ["data-test-id", "group-id", "icon", "title", "badge"])) : (o(), B(n(
|
|
7606
|
+
}, 1032, ["data-test-id", "group-id", "icon", "title", "badge"])) : (o(), B(n(yn), {
|
|
7607
7607
|
key: 1,
|
|
7608
7608
|
"data-test-id": _.routeId,
|
|
7609
7609
|
icon: _.groupIcon || _.icon,
|
|
@@ -7653,7 +7653,7 @@ const Ca = /* @__PURE__ */ U({
|
|
|
7653
7653
|
}), Mm = { class: "vc-settings-menu" }, Om = {
|
|
7654
7654
|
key: 0,
|
|
7655
7655
|
class: "vc-settings-menu__separator"
|
|
7656
|
-
}, Lm = { class: "vc-settings-menu__group" },
|
|
7656
|
+
}, Lm = { class: "vc-settings-menu__group" }, mo = /* @__PURE__ */ U({
|
|
7657
7657
|
__name: "settings-menu",
|
|
7658
7658
|
setup(e) {
|
|
7659
7659
|
const { items: a } = $m(), t = S(() => {
|
|
@@ -7988,7 +7988,7 @@ const Ca = /* @__PURE__ */ U({
|
|
|
7988
7988
|
class: "vc-user-sidebar__menu",
|
|
7989
7989
|
onClick: l[0] || (l[0] = le((r) => t.$emit("update:isOpened", !1), ["stop"]))
|
|
7990
7990
|
}, [
|
|
7991
|
-
x(n(
|
|
7991
|
+
x(n(mo))
|
|
7992
7992
|
])) : R("", !0)
|
|
7993
7993
|
]),
|
|
7994
7994
|
_: 1
|
|
@@ -8003,7 +8003,7 @@ const Ca = /* @__PURE__ */ U({
|
|
|
8003
8003
|
disabled: { type: Boolean }
|
|
8004
8004
|
},
|
|
8005
8005
|
setup(e) {
|
|
8006
|
-
const a = O(!1), t = O(null), { isPinned: l, isExpanded: r } =
|
|
8006
|
+
const a = O(!1), t = O(null), { isPinned: l, isExpanded: r } = Fa();
|
|
8007
8007
|
function s() {
|
|
8008
8008
|
a.value = !1;
|
|
8009
8009
|
}
|
|
@@ -8050,7 +8050,7 @@ const Ca = /* @__PURE__ */ U({
|
|
|
8050
8050
|
"max-width": "300px"
|
|
8051
8051
|
}, {
|
|
8052
8052
|
default: A(() => [
|
|
8053
|
-
x(n(
|
|
8053
|
+
x(n(mo))
|
|
8054
8054
|
]),
|
|
8055
8055
|
_: 1
|
|
8056
8056
|
}, 8, ["show", "anchor-ref"])) : (o(), B(qm, {
|
|
@@ -8060,7 +8060,7 @@ const Ca = /* @__PURE__ */ U({
|
|
|
8060
8060
|
}, null, 8, ["is-opened"]))
|
|
8061
8061
|
]));
|
|
8062
8062
|
}
|
|
8063
|
-
}),
|
|
8063
|
+
}), po = Ym, jm = {
|
|
8064
8064
|
key: 0,
|
|
8065
8065
|
class: "sidebar-content__search"
|
|
8066
8066
|
}, Xm = { class: "sidebar-content__footer" }, Qm = /* @__PURE__ */ U({
|
|
@@ -8128,7 +8128,7 @@ const Ca = /* @__PURE__ */ U({
|
|
|
8128
8128
|
avatar: e.avatar,
|
|
8129
8129
|
role: e.userRole
|
|
8130
8130
|
}, () => [
|
|
8131
|
-
n(r) ? R("", !0) : (o(), B(n(
|
|
8131
|
+
n(r) ? R("", !0) : (o(), B(n(po), {
|
|
8132
8132
|
key: 0,
|
|
8133
8133
|
"avatar-url": e.avatar,
|
|
8134
8134
|
name: e.userName,
|
|
@@ -8158,7 +8158,7 @@ const Ca = /* @__PURE__ */ U({
|
|
|
8158
8158
|
]));
|
|
8159
8159
|
}
|
|
8160
8160
|
});
|
|
8161
|
-
function
|
|
8161
|
+
function go(e, a) {
|
|
8162
8162
|
const t = S(() => {
|
|
8163
8163
|
const c = Te(e);
|
|
8164
8164
|
return !a.value || !Array.isArray(c) ? null : c.find((d) => d.id === a.value) || null;
|
|
@@ -8180,7 +8180,7 @@ function po(e, a) {
|
|
|
8180
8180
|
}
|
|
8181
8181
|
};
|
|
8182
8182
|
}
|
|
8183
|
-
const
|
|
8183
|
+
const bo = Symbol("VcAppBarState"), ep = {
|
|
8184
8184
|
activeWidgetId: O(null),
|
|
8185
8185
|
activeMobileActionId: O(null)
|
|
8186
8186
|
};
|
|
@@ -8189,19 +8189,19 @@ function tp() {
|
|
|
8189
8189
|
activeWidgetId: O(null),
|
|
8190
8190
|
activeMobileActionId: O(null)
|
|
8191
8191
|
};
|
|
8192
|
-
return Me(
|
|
8192
|
+
return Me(bo, e), e;
|
|
8193
8193
|
}
|
|
8194
|
-
function
|
|
8195
|
-
return de(
|
|
8194
|
+
function ho() {
|
|
8195
|
+
return de(bo, ep);
|
|
8196
8196
|
}
|
|
8197
8197
|
function Vl() {
|
|
8198
|
-
const { items: e } = Bl(), { activeWidgetId: a } =
|
|
8198
|
+
const { items: e } = Bl(), { activeWidgetId: a } = ho(), {
|
|
8199
8199
|
showItem: t,
|
|
8200
8200
|
hideAllItems: l,
|
|
8201
8201
|
toggleItem: r,
|
|
8202
8202
|
currentItem: s,
|
|
8203
8203
|
isAnyItemVisible: i
|
|
8204
|
-
} =
|
|
8204
|
+
} = go(e, a);
|
|
8205
8205
|
return {
|
|
8206
8206
|
showWidget: t,
|
|
8207
8207
|
hideAllWidgets: l,
|
|
@@ -8225,7 +8225,7 @@ function lp(e) {
|
|
|
8225
8225
|
function ap(e) {
|
|
8226
8226
|
return e ? e.replace(/[\-_]+/g, " ").replace(/\s+/g, " ").trim().replace(/\b\w/g, (a) => a.toUpperCase()) : "";
|
|
8227
8227
|
}
|
|
8228
|
-
const
|
|
8228
|
+
const kn = /* @__PURE__ */ U({
|
|
8229
8229
|
__name: "AppBarWidgetContent",
|
|
8230
8230
|
props: {
|
|
8231
8231
|
mobile: { type: Boolean, default: !1 }
|
|
@@ -8263,7 +8263,7 @@ const wn = /* @__PURE__ */ U({
|
|
|
8263
8263
|
}, Ap = {
|
|
8264
8264
|
key: 0,
|
|
8265
8265
|
class: "app-hub-content__flyout app-hub-content__flyout--mobile"
|
|
8266
|
-
}, Rp = { class: "app-hub-content__flyout-header" }, Ip = { class: "app-hub-content__flyout-title" }, Tp = { class: "app-hub-content__flyout-body" },
|
|
8266
|
+
}, Rp = { class: "app-hub-content__flyout-header" }, Ip = { class: "app-hub-content__flyout-title" }, Tp = { class: "app-hub-content__flyout-body" }, Sn = 120, bl = 120, xp = 80, Mp = 120, $a = /* @__PURE__ */ U({
|
|
8267
8267
|
__name: "AppHubContent",
|
|
8268
8268
|
props: {
|
|
8269
8269
|
appsList: {},
|
|
@@ -8277,7 +8277,7 @@ const wn = /* @__PURE__ */ U({
|
|
|
8277
8277
|
widgets: c,
|
|
8278
8278
|
showApplications: Ie(t, "showApplications"),
|
|
8279
8279
|
mobile: Ie(t, "mobile")
|
|
8280
|
-
}), k = O(bl), $ = O(bl), E = S(() => !s.value && h.value.length >
|
|
8280
|
+
}), k = O(bl), $ = O(bl), E = S(() => !s.value && h.value.length > Sn), _ = S(() => m.value.length > Sn), M = S(() => E.value ? h.value.slice(0, k.value) : h.value), C = S(() => _.value ? m.value.slice(0, $.value) : m.value);
|
|
8281
8281
|
ne(
|
|
8282
8282
|
() => c.value.map((Y) => Y.id),
|
|
8283
8283
|
() => {
|
|
@@ -8447,7 +8447,7 @@ const wn = /* @__PURE__ */ U({
|
|
|
8447
8447
|
]),
|
|
8448
8448
|
x(n(ft), { class: "app-hub-content__widget-inline-body" }, {
|
|
8449
8449
|
default: A(() => [
|
|
8450
|
-
x(
|
|
8450
|
+
x(kn)
|
|
8451
8451
|
]),
|
|
8452
8452
|
_: 1
|
|
8453
8453
|
})
|
|
@@ -8501,7 +8501,7 @@ const wn = /* @__PURE__ */ U({
|
|
|
8501
8501
|
}, null, 8, ["onClick"])
|
|
8502
8502
|
]),
|
|
8503
8503
|
y("div", Tp, [
|
|
8504
|
-
x(
|
|
8504
|
+
x(kn, { mobile: "" })
|
|
8505
8505
|
])
|
|
8506
8506
|
])) : R("", !0)
|
|
8507
8507
|
]),
|
|
@@ -8565,7 +8565,7 @@ const wn = /* @__PURE__ */ U({
|
|
|
8565
8565
|
}), Lp = { class: "vc-notification-template__content" }, Bp = { class: "vc-notification-template__time" }, Vp = {
|
|
8566
8566
|
key: 0,
|
|
8567
8567
|
class: "vc-notification-template__content-body"
|
|
8568
|
-
},
|
|
8568
|
+
}, Cn = 60, $n = 3600, Dp = 86400, Np = /* @__PURE__ */ U({
|
|
8569
8569
|
__name: "notification-template",
|
|
8570
8570
|
props: {
|
|
8571
8571
|
title: {},
|
|
@@ -8582,7 +8582,7 @@ const wn = /* @__PURE__ */ U({
|
|
|
8582
8582
|
const i = s instanceof Date ? s : new Date(s);
|
|
8583
8583
|
if (Number.isNaN(i.getTime())) return "";
|
|
8584
8584
|
const u = Date.now(), c = Math.round((u - i.getTime()) / 1e3), d = Math.abs(c), v = new Intl.RelativeTimeFormat(l, { numeric: "auto" });
|
|
8585
|
-
return d <
|
|
8585
|
+
return d < Cn ? v.format(-c, "second") : d < $n ? v.format(-Math.round(c / Cn), "minute") : d < Dp ? v.format(-Math.round(c / $n), "hour") : new Intl.DateTimeFormat(l, {
|
|
8586
8586
|
dateStyle: "short",
|
|
8587
8587
|
timeStyle: "short"
|
|
8588
8588
|
}).format(i);
|
|
@@ -8630,7 +8630,7 @@ const wn = /* @__PURE__ */ U({
|
|
|
8630
8630
|
return r.registry.get(u)?.template;
|
|
8631
8631
|
});
|
|
8632
8632
|
Me(
|
|
8633
|
-
|
|
8633
|
+
ui,
|
|
8634
8634
|
S(() => t.notification)
|
|
8635
8635
|
);
|
|
8636
8636
|
const i = () => {
|
|
@@ -8698,7 +8698,7 @@ const wn = /* @__PURE__ */ U({
|
|
|
8698
8698
|
})) : (o(), p("div", Hp, D(n(t)("COMPONENTS.NOTIFICATION_DROPDOWN.EMPTY")), 1))
|
|
8699
8699
|
]));
|
|
8700
8700
|
}
|
|
8701
|
-
}),
|
|
8701
|
+
}), yo = Gp, Wp = /* @__PURE__ */ U({
|
|
8702
8702
|
__name: "DesktopLayout",
|
|
8703
8703
|
props: {
|
|
8704
8704
|
logo: {},
|
|
@@ -8714,7 +8714,7 @@ const wn = /* @__PURE__ */ U({
|
|
|
8714
8714
|
},
|
|
8715
8715
|
emits: ["logo:click", "item:click", "switch-app"],
|
|
8716
8716
|
setup(e, { emit: a }) {
|
|
8717
|
-
const t = a, l =
|
|
8717
|
+
const t = a, l = Fa(), r = de(ll, !1), s = Dt(), i = O(null), u = O(!1), c = O(null), d = S(() => !r);
|
|
8718
8718
|
ne(
|
|
8719
8719
|
() => s.fullPath,
|
|
8720
8720
|
() => {
|
|
@@ -8766,7 +8766,7 @@ const wn = /* @__PURE__ */ U({
|
|
|
8766
8766
|
expanded: n(l).isExpanded.value,
|
|
8767
8767
|
isMobile: !1
|
|
8768
8768
|
}, () => [
|
|
8769
|
-
d.value ? (o(), B(
|
|
8769
|
+
d.value ? (o(), B(ao, {
|
|
8770
8770
|
key: 0,
|
|
8771
8771
|
logo: e.logo,
|
|
8772
8772
|
expanded: n(l).isExpanded.value,
|
|
@@ -8835,7 +8835,7 @@ const wn = /* @__PURE__ */ U({
|
|
|
8835
8835
|
"content-scrollable": !1
|
|
8836
8836
|
}, {
|
|
8837
8837
|
default: A(() => [
|
|
8838
|
-
x(n(
|
|
8838
|
+
x(n(yo))
|
|
8839
8839
|
]),
|
|
8840
8840
|
_: 1
|
|
8841
8841
|
}, 8, ["show", "anchor-ref"])
|
|
@@ -8868,21 +8868,21 @@ function Yp() {
|
|
|
8868
8868
|
return Me(ya, a), kt() && mt(() => {
|
|
8869
8869
|
}), a;
|
|
8870
8870
|
}
|
|
8871
|
-
function
|
|
8871
|
+
function wo() {
|
|
8872
8872
|
const e = de(ya);
|
|
8873
8873
|
if (!e)
|
|
8874
8874
|
throw Kp.error("AppBarMobileButtonsService not found"), new Ct("AppBarMobileButtonsService");
|
|
8875
8875
|
return e;
|
|
8876
8876
|
}
|
|
8877
8877
|
function jp() {
|
|
8878
|
-
const { getButtons: e } =
|
|
8878
|
+
const { getButtons: e } = wo(), { activeMobileActionId: a } = ho(), {
|
|
8879
8879
|
showItem: t,
|
|
8880
8880
|
hideAllItems: l,
|
|
8881
8881
|
toggleItem: r,
|
|
8882
8882
|
currentItem: s,
|
|
8883
8883
|
isAnyItemVisible: i,
|
|
8884
8884
|
closeItem: u
|
|
8885
|
-
} =
|
|
8885
|
+
} = go(e, a);
|
|
8886
8886
|
return ne(
|
|
8887
8887
|
() => e.value,
|
|
8888
8888
|
(c) => {
|
|
@@ -8914,7 +8914,7 @@ const Xp = {
|
|
|
8914
8914
|
expanded: {}
|
|
8915
8915
|
},
|
|
8916
8916
|
setup(e) {
|
|
8917
|
-
const a = e, { getButtons: t } =
|
|
8917
|
+
const a = e, { getButtons: t } = wo(), { currentAction: l, toggleAction: r, hideAllActions: s, isAnyActionVisible: i } = jp(), u = Dt(), c = (g) => {
|
|
8918
8918
|
if (l.value?.id === g.id) {
|
|
8919
8919
|
g.onClose?.(), s();
|
|
8920
8920
|
return;
|
|
@@ -9065,7 +9065,7 @@ const Xp = {
|
|
|
9065
9065
|
}, hg = {
|
|
9066
9066
|
key: 0,
|
|
9067
9067
|
class: "mobile-layout__search"
|
|
9068
|
-
}, st = 0, Ht = 1,
|
|
9068
|
+
}, st = 0, Ht = 1, _n = 8, yg = 0.3, wg = 0.3, kg = 1, Sg = 0.2, En = "transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94)", Cg = /* @__PURE__ */ U({
|
|
9069
9069
|
__name: "MobileLayout",
|
|
9070
9070
|
props: {
|
|
9071
9071
|
logo: {},
|
|
@@ -9081,7 +9081,7 @@ const Xp = {
|
|
|
9081
9081
|
},
|
|
9082
9082
|
emits: ["item:click", "switch-app"],
|
|
9083
9083
|
setup(e, { emit: a }) {
|
|
9084
|
-
const t = e, l = a, r = O(""), s =
|
|
9084
|
+
const t = e, l = a, r = O(""), s = Fa(), i = de(ll, !1), { blades: u, activeBlade: c } = Aa(), { items: d } = Bl(), v = S(
|
|
9085
9085
|
() => d.value.some((X) => X.badge === void 0 ? !1 : typeof X.badge == "function" ? X.badge() : !!X.badge)
|
|
9086
9086
|
), g = S(
|
|
9087
9087
|
() => d.value.length > 0 || !t.disableAppSwitcher && t.appsList.length > 0
|
|
@@ -9098,13 +9098,13 @@ const Xp = {
|
|
|
9098
9098
|
}
|
|
9099
9099
|
return {
|
|
9100
9100
|
transform: `translateX(${X}%)`,
|
|
9101
|
-
transition:
|
|
9101
|
+
transition: En
|
|
9102
9102
|
};
|
|
9103
9103
|
}), L = S(() => {
|
|
9104
9104
|
const X = w.value?.clientWidth ?? 0, Y = h.value && X > 0 ? -m.value / X : 0;
|
|
9105
9105
|
return {
|
|
9106
9106
|
transform: `translateX(${Math.max(0, Math.min(1, b.value + Y)) * 100}%)`,
|
|
9107
|
-
transition: h.value ? "none" :
|
|
9107
|
+
transition: h.value ? "none" : En
|
|
9108
9108
|
};
|
|
9109
9109
|
});
|
|
9110
9110
|
function T(X) {
|
|
@@ -9141,7 +9141,7 @@ const Xp = {
|
|
|
9141
9141
|
return;
|
|
9142
9142
|
const Y = X.touches[0], ue = Y.clientX - $, Q = Y.clientY - E, j = Math.abs(ue), ke = Math.abs(Q);
|
|
9143
9143
|
if (k.value === "pending") {
|
|
9144
|
-
if (j <
|
|
9144
|
+
if (j < _n && ke < _n)
|
|
9145
9145
|
return;
|
|
9146
9146
|
if (ke > j) {
|
|
9147
9147
|
k.value = "vertical";
|
|
@@ -9203,7 +9203,7 @@ const Xp = {
|
|
|
9203
9203
|
expanded: !1,
|
|
9204
9204
|
isMobile: !0
|
|
9205
9205
|
}, () => [
|
|
9206
|
-
x(
|
|
9206
|
+
x(ao, {
|
|
9207
9207
|
logo: e.logo,
|
|
9208
9208
|
expanded: !1,
|
|
9209
9209
|
"is-mobile": !0,
|
|
@@ -9376,7 +9376,7 @@ const Xp = {
|
|
|
9376
9376
|
avatar: e.avatar,
|
|
9377
9377
|
role: e.userRole
|
|
9378
9378
|
}, () => [
|
|
9379
|
-
n(i) ? R("", !0) : (o(), B(n(
|
|
9379
|
+
n(i) ? R("", !0) : (o(), B(n(po), {
|
|
9380
9380
|
key: 0,
|
|
9381
9381
|
"avatar-url": e.avatar,
|
|
9382
9382
|
name: e.userName,
|
|
@@ -9388,19 +9388,19 @@ const Xp = {
|
|
|
9388
9388
|
}, 8, ["is-opened"])
|
|
9389
9389
|
], 64));
|
|
9390
9390
|
}
|
|
9391
|
-
}),
|
|
9392
|
-
let
|
|
9391
|
+
}), Wa = Symbol("PopupPlugin");
|
|
9392
|
+
let ko;
|
|
9393
9393
|
const rC = {
|
|
9394
9394
|
install(e) {
|
|
9395
9395
|
const t = {
|
|
9396
9396
|
popups: kl([])
|
|
9397
9397
|
};
|
|
9398
|
-
e.config.globalProperties.$popupPlugin = t, e.provide(
|
|
9398
|
+
e.config.globalProperties.$popupPlugin = t, e.provide(Wa, t), ko = t;
|
|
9399
9399
|
}
|
|
9400
9400
|
};
|
|
9401
9401
|
function $g() {
|
|
9402
9402
|
if (pt())
|
|
9403
|
-
return de(
|
|
9403
|
+
return de(Wa, void 0);
|
|
9404
9404
|
}
|
|
9405
9405
|
const _g = ["innerHTML"], Eg = /* @__PURE__ */ U({
|
|
9406
9406
|
__name: "vc-popup-container",
|
|
@@ -9464,7 +9464,7 @@ const _g = ["innerHTML"], Eg = /* @__PURE__ */ U({
|
|
|
9464
9464
|
}), Ag = Eg, Rg = { class: "vc-popup__center" }, Ig = ["aria-label"], Tg = { class: "vc-popup__content" }, xg = {
|
|
9465
9465
|
key: 0,
|
|
9466
9466
|
class: "vc-popup__footer"
|
|
9467
|
-
},
|
|
9467
|
+
}, qa = /* @__PURE__ */ U({
|
|
9468
9468
|
__name: "vc-popup",
|
|
9469
9469
|
props: {
|
|
9470
9470
|
modelValue: { type: Boolean, default: void 0 },
|
|
@@ -9514,7 +9514,7 @@ const _g = ["innerHTML"], Eg = /* @__PURE__ */ U({
|
|
|
9514
9514
|
onKeydown: ge(k, ["esc"])
|
|
9515
9515
|
}, {
|
|
9516
9516
|
default: A(() => [
|
|
9517
|
-
x(n(
|
|
9517
|
+
x(n(fn), {
|
|
9518
9518
|
as: "template",
|
|
9519
9519
|
enter: "vc-popup__transition-enter",
|
|
9520
9520
|
"enter-from": "vc-popup__transition-enter-from",
|
|
@@ -9536,7 +9536,7 @@ const _g = ["innerHTML"], Eg = /* @__PURE__ */ U({
|
|
|
9536
9536
|
}])
|
|
9537
9537
|
}, [
|
|
9538
9538
|
y("div", Rg, [
|
|
9539
|
-
x(n(
|
|
9539
|
+
x(n(fn), {
|
|
9540
9540
|
as: "template",
|
|
9541
9541
|
enter: "vc-popup__dialog-enter",
|
|
9542
9542
|
"enter-from": "vc-popup__dialog-enter-from",
|
|
@@ -9636,7 +9636,7 @@ const _g = ["innerHTML"], Eg = /* @__PURE__ */ U({
|
|
|
9636
9636
|
}, 8, ["show"]);
|
|
9637
9637
|
};
|
|
9638
9638
|
}
|
|
9639
|
-
}),
|
|
9639
|
+
}), Ka = /* @__PURE__ */ U({
|
|
9640
9640
|
__name: "vc-popup-base",
|
|
9641
9641
|
props: {
|
|
9642
9642
|
title: {},
|
|
@@ -9658,7 +9658,7 @@ const _g = ["innerHTML"], Eg = /* @__PURE__ */ U({
|
|
|
9658
9658
|
}
|
|
9659
9659
|
return (s, i) => {
|
|
9660
9660
|
const u = Ne("VcButton");
|
|
9661
|
-
return o(), B(
|
|
9661
|
+
return o(), B(qa, {
|
|
9662
9662
|
variant: e.variant,
|
|
9663
9663
|
"is-mobile-fullscreen": e.isMobileFullscreen,
|
|
9664
9664
|
title: e.title,
|
|
@@ -9728,7 +9728,7 @@ const _g = ["innerHTML"], Eg = /* @__PURE__ */ U({
|
|
|
9728
9728
|
},
|
|
9729
9729
|
emits: ["close", "confirm"],
|
|
9730
9730
|
setup(e) {
|
|
9731
|
-
return (a, t) => (o(), B(
|
|
9731
|
+
return (a, t) => (o(), B(Ka, {
|
|
9732
9732
|
variant: "warning",
|
|
9733
9733
|
mode: "confirm",
|
|
9734
9734
|
"confirm-label": a.$t("COMPONENTS.ORGANISMS.VC_POPUP.CONFIRM"),
|
|
@@ -9759,7 +9759,7 @@ const _g = ["innerHTML"], Eg = /* @__PURE__ */ U({
|
|
|
9759
9759
|
},
|
|
9760
9760
|
emits: ["close"],
|
|
9761
9761
|
setup(e) {
|
|
9762
|
-
return (a, t) => (o(), B(
|
|
9762
|
+
return (a, t) => (o(), B(Ka, {
|
|
9763
9763
|
variant: "error",
|
|
9764
9764
|
mode: "acknowledge",
|
|
9765
9765
|
"action-label": a.$t("COMPONENTS.ORGANISMS.VC_POPUP.OK"),
|
|
@@ -9787,7 +9787,7 @@ const _g = ["innerHTML"], Eg = /* @__PURE__ */ U({
|
|
|
9787
9787
|
},
|
|
9788
9788
|
emits: ["close"],
|
|
9789
9789
|
setup(e) {
|
|
9790
|
-
return (a, t) => (o(), B(
|
|
9790
|
+
return (a, t) => (o(), B(Ka, {
|
|
9791
9791
|
variant: "info",
|
|
9792
9792
|
mode: "acknowledge",
|
|
9793
9793
|
"action-label": a.$t("COMPONENTS.ORGANISMS.VC_POPUP.OK"),
|
|
@@ -9809,11 +9809,11 @@ const _g = ["innerHTML"], Eg = /* @__PURE__ */ U({
|
|
|
9809
9809
|
]), 1032, ["action-label", "title"]));
|
|
9810
9810
|
}
|
|
9811
9811
|
});
|
|
9812
|
-
function
|
|
9813
|
-
return pt() && de(
|
|
9812
|
+
function An() {
|
|
9813
|
+
return pt() && de(Wa, void 0) || ko;
|
|
9814
9814
|
}
|
|
9815
|
-
function
|
|
9816
|
-
const { t: a } = Ve({ useScope: "global" }), t =
|
|
9815
|
+
function So(e) {
|
|
9816
|
+
const { t: a } = Ve({ useScope: "global" }), t = An();
|
|
9817
9817
|
let l;
|
|
9818
9818
|
e && (l = b(n(e))), ne(
|
|
9819
9819
|
() => e ? n(e) : void 0,
|
|
@@ -9825,7 +9825,7 @@ function ko(e) {
|
|
|
9825
9825
|
function r(h) {
|
|
9826
9826
|
if (!h)
|
|
9827
9827
|
return;
|
|
9828
|
-
const m =
|
|
9828
|
+
const m = An(), w = m?.popups?.findIndex(
|
|
9829
9829
|
(k) => or(k, h, ($) => $.component)
|
|
9830
9830
|
);
|
|
9831
9831
|
typeof w == "number" && w !== -1 && m?.popups?.splice(w, 1);
|
|
@@ -9917,7 +9917,7 @@ function Bg(e) {
|
|
|
9917
9917
|
return {
|
|
9918
9918
|
...e,
|
|
9919
9919
|
slots: a,
|
|
9920
|
-
component: Yt(
|
|
9920
|
+
component: Yt(ni(e.component))
|
|
9921
9921
|
};
|
|
9922
9922
|
}
|
|
9923
9923
|
function Vg() {
|
|
@@ -9937,11 +9937,11 @@ function Vg() {
|
|
|
9937
9937
|
};
|
|
9938
9938
|
}
|
|
9939
9939
|
function Dg() {
|
|
9940
|
-
const e = de(
|
|
9940
|
+
const e = de(cn, null);
|
|
9941
9941
|
if (e)
|
|
9942
9942
|
return e;
|
|
9943
9943
|
const a = Vg();
|
|
9944
|
-
return Me(
|
|
9944
|
+
return Me(cn, a), kt() && mt(() => {
|
|
9945
9945
|
a.isSearchVisible.value = {}, a.searchQuery.value = {};
|
|
9946
9946
|
}), a;
|
|
9947
9947
|
}
|
|
@@ -9994,7 +9994,7 @@ const Ng = { class: "vc-menu-item__content" }, Pg = { class: "vc-menu-item__titl
|
|
|
9994
9994
|
icon: e.icon,
|
|
9995
9995
|
"custom-size": 16,
|
|
9996
9996
|
class: "vc-menu-item__icon"
|
|
9997
|
-
}, null, 8, ["icon"])) : e.image ? (o(), B(n(
|
|
9997
|
+
}, null, 8, ["icon"])) : e.image ? (o(), B(n(jn), {
|
|
9998
9998
|
key: 1,
|
|
9999
9999
|
src: e.image,
|
|
10000
10000
|
class: "vc-menu-item__image",
|
|
@@ -10110,7 +10110,7 @@ const Ng = { class: "vc-menu-item__content" }, Pg = { class: "vc-menu-item__titl
|
|
|
10110
10110
|
emits: ["close"],
|
|
10111
10111
|
setup(e, { emit: a }) {
|
|
10112
10112
|
const t = e, l = a, { t: r } = Ve({ useScope: "global" }), { changeUserPassword: s, loading: i, validatePassword: u, signOut: c } = Il();
|
|
10113
|
-
|
|
10113
|
+
Wn({ validateOnMount: !1 });
|
|
10114
10114
|
const d = Zs(), v = er(), g = Ol(), f = xt({
|
|
10115
10115
|
isValid: !1,
|
|
10116
10116
|
errors: [],
|
|
@@ -10132,7 +10132,7 @@ const Ng = { class: "vc-menu-item__content" }, Pg = { class: "vc-menu-item__titl
|
|
|
10132
10132
|
}
|
|
10133
10133
|
return (k, $) => {
|
|
10134
10134
|
const E = Ne("VcIcon"), _ = Ne("vc-status");
|
|
10135
|
-
return o(), B(n(
|
|
10135
|
+
return o(), B(n(qa), {
|
|
10136
10136
|
title: n(r)("COMPONENTS.CHANGE_PASSWORD.TITLE"),
|
|
10137
10137
|
"is-mobile-fullscreen": "",
|
|
10138
10138
|
onClose: h
|
|
@@ -10281,7 +10281,7 @@ const Ng = { class: "vc-menu-item__content" }, Pg = { class: "vc-menu-item__titl
|
|
|
10281
10281
|
}), Xg = jg, Qg = /* @__PURE__ */ U({
|
|
10282
10282
|
__name: "change-password-button",
|
|
10283
10283
|
setup(e) {
|
|
10284
|
-
const { open: a } =
|
|
10284
|
+
const { open: a } = So({ component: Xg }), t = de(Ea, void 0), l = () => {
|
|
10285
10285
|
t?.(), a();
|
|
10286
10286
|
};
|
|
10287
10287
|
return (r, s) => (o(), B(n(Dl), {
|
|
@@ -10310,7 +10310,7 @@ const Ng = { class: "vc-menu-item__content" }, Pg = { class: "vc-menu-item__titl
|
|
|
10310
10310
|
});
|
|
10311
10311
|
function Zg(e) {
|
|
10312
10312
|
const a = de(Cl), t = Yp();
|
|
10313
|
-
Dg(), ym(), Me(ll, e.isEmbedded), e.internalRoutes && Me(
|
|
10313
|
+
Dg(), ym(), Me(ll, e.isEmbedded), e.internalRoutes && Me(di, e.internalRoutes), e.dynamicModules !== void 0 && Me(Fn, e.dynamicModules), e.aiAgentConfig?.url && ci({
|
|
10314
10314
|
config: e.aiAgentConfig,
|
|
10315
10315
|
addGlobalToolbarButton: e.aiAgentAddGlobalToolbarButton ?? !0,
|
|
10316
10316
|
isEmbedded: e.isEmbedded
|
|
@@ -10324,7 +10324,7 @@ function eb(e) {
|
|
|
10324
10324
|
const a = Tl();
|
|
10325
10325
|
e.isEmbedded || e.registerMobileButton({
|
|
10326
10326
|
id: "notifications",
|
|
10327
|
-
component:
|
|
10327
|
+
component: yo,
|
|
10328
10328
|
icon: "lucide-bell",
|
|
10329
10329
|
order: 10,
|
|
10330
10330
|
isVisible: !0,
|
|
@@ -10334,7 +10334,7 @@ function eb(e) {
|
|
|
10334
10334
|
component: Hg,
|
|
10335
10335
|
group: "preferences",
|
|
10336
10336
|
order: 20
|
|
10337
|
-
}), e.registerSettingsMenuItem({ id: "change-password", component: Qg, group: "account", order: 30 }), e.registerSettingsMenuItem({ id: "logout", component: Jg, group: "account", order: 100 }), Me(
|
|
10337
|
+
}), e.registerSettingsMenuItem({ id: "change-password", component: Qg, group: "account", order: 30 }), e.registerSettingsMenuItem({ id: "logout", component: Jg, group: "account", order: 100 }), Me(Pn, a.hasUnread);
|
|
10338
10338
|
}
|
|
10339
10339
|
const tb = Ye("useShellNavigation");
|
|
10340
10340
|
function lb() {
|
|
@@ -10350,7 +10350,7 @@ function lb() {
|
|
|
10350
10350
|
typeof c > "u" ? s() : e.push({ name: c?.name, params: a.params });
|
|
10351
10351
|
}
|
|
10352
10352
|
}, s = async () => {
|
|
10353
|
-
|
|
10353
|
+
vi(e, a.params);
|
|
10354
10354
|
};
|
|
10355
10355
|
return { handleMenuItemClick: r, openRoot: s };
|
|
10356
10356
|
}
|
|
@@ -10358,7 +10358,7 @@ const ab = Ye("use-app-switcher");
|
|
|
10358
10358
|
function nb() {
|
|
10359
10359
|
const { hasAccess: e } = Zt(), a = O([]);
|
|
10360
10360
|
async function t() {
|
|
10361
|
-
return new
|
|
10361
|
+
return new fi();
|
|
10362
10362
|
}
|
|
10363
10363
|
async function l() {
|
|
10364
10364
|
const s = await t();
|
|
@@ -10411,13 +10411,13 @@ const ib = { class: "vc-app__main-content" }, sb = {
|
|
|
10411
10411
|
searchPlaceholder: {}
|
|
10412
10412
|
},
|
|
10413
10413
|
setup(e) {
|
|
10414
|
-
const a = e, t = !!(de(
|
|
10414
|
+
const a = e, t = !!(de(mi, null) && de(pi, null));
|
|
10415
10415
|
Ye("vc-app").debug("Init vc-app");
|
|
10416
10416
|
const s = Dt().query.EmbeddedMode === "true", i = O();
|
|
10417
|
-
Me(
|
|
10417
|
+
Me(zn, i);
|
|
10418
10418
|
const u = tm();
|
|
10419
10419
|
tp();
|
|
10420
|
-
const { isAppReady: c, isAuthenticated: d, appsList: v, switchApp: g } = ob(a), { handleMenuItemClick: f, openRoot: b } = lb(), h = de(
|
|
10420
|
+
const { isAppReady: c, isAuthenticated: d, appsList: v, switchApp: g } = ob(a), { handleMenuItemClick: f, openRoot: b } = lb(), h = de(gi), m = de(Fn, void 0), w = de("aiAgentConfig", void 0), k = de("aiAgentAddGlobalToolbarButton", !0), $ = de(bi, O(!1));
|
|
10421
10421
|
return Zg({
|
|
10422
10422
|
isEmbedded: s,
|
|
10423
10423
|
internalRoutes: h,
|
|
@@ -10499,7 +10499,7 @@ const ib = { class: "vc-app__main-content" }, sb = {
|
|
|
10499
10499
|
V(E.$slots, "workspace", { isAuthenticated: n(d) }, () => [
|
|
10500
10500
|
n(d) ? (o(), p("div", sb, [
|
|
10501
10501
|
n(t) ? (o(), B(C, { key: 0 })) : R("", !0),
|
|
10502
|
-
n(w)?.url ? (o(), B(n(
|
|
10502
|
+
n(w)?.url ? (o(), B(n(hi), { key: 1 })) : R("", !0)
|
|
10503
10503
|
])) : R("", !0)
|
|
10504
10504
|
]),
|
|
10505
10505
|
x(n(Ag))
|
|
@@ -10513,7 +10513,7 @@ const ib = { class: "vc-app__main-content" }, sb = {
|
|
|
10513
10513
|
}
|
|
10514
10514
|
});
|
|
10515
10515
|
function dC(e, a, t) {
|
|
10516
|
-
const { menuBadges: l } =
|
|
10516
|
+
const { menuBadges: l } = io();
|
|
10517
10517
|
return S(() => {
|
|
10518
10518
|
let r = Te(e);
|
|
10519
10519
|
const s = Te(a), i = Te(t);
|
|
@@ -10546,7 +10546,7 @@ const rb = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, cC
|
|
|
10546
10546
|
expanded: {}
|
|
10547
10547
|
},
|
|
10548
10548
|
setup(e) {
|
|
10549
|
-
const a = de(
|
|
10549
|
+
const a = de(zn, void 0);
|
|
10550
10550
|
return (t, l) => n(a) ? (o(), B(ot, {
|
|
10551
10551
|
key: 0,
|
|
10552
10552
|
to: n(a)
|
|
@@ -10568,7 +10568,7 @@ const rb = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, cC
|
|
|
10568
10568
|
}
|
|
10569
10569
|
}), ub = {
|
|
10570
10570
|
class: /* @__PURE__ */ q(["app-bar-button__button-container"])
|
|
10571
|
-
}, db = { class: "app-bar-button__button-wrap" },
|
|
10571
|
+
}, db = { class: "app-bar-button__button-wrap" }, Rn = /* @__PURE__ */ U({
|
|
10572
10572
|
__name: "AppBarWidgetItem",
|
|
10573
10573
|
props: {
|
|
10574
10574
|
title: {},
|
|
@@ -10648,7 +10648,7 @@ const rb = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, cC
|
|
|
10648
10648
|
key: s.id,
|
|
10649
10649
|
class: "vc-app-toolbar-menu__item"
|
|
10650
10650
|
}, [
|
|
10651
|
-
s.component ? (o(), B(
|
|
10651
|
+
s.component ? (o(), B(Rn, {
|
|
10652
10652
|
key: 0,
|
|
10653
10653
|
"widget-id": s.id,
|
|
10654
10654
|
onToggle: (i) => s.onClick && s.onClick()
|
|
@@ -10670,7 +10670,7 @@ const rb = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, cC
|
|
|
10670
10670
|
])
|
|
10671
10671
|
]),
|
|
10672
10672
|
_: 2
|
|
10673
|
-
}, 1032, ["widget-id", "onToggle"])) : s.onClick ? (o(), B(
|
|
10673
|
+
}, 1032, ["widget-id", "onToggle"])) : s.onClick ? (o(), B(Rn, {
|
|
10674
10674
|
key: 1,
|
|
10675
10675
|
"widget-id": s.id,
|
|
10676
10676
|
onToggle: s.onClick
|
|
@@ -10919,10 +10919,10 @@ const rb = { class: "app-bar-overlay__content app-bar-overlay__dropdowns" }, cC
|
|
|
10919
10919
|
]));
|
|
10920
10920
|
}
|
|
10921
10921
|
});
|
|
10922
|
-
function
|
|
10922
|
+
function Co(e, a) {
|
|
10923
10923
|
return e === void 0 ? !0 : typeof e == "function" ? !!e(a) : dt(e) ? !!Te(e) : !!e;
|
|
10924
10924
|
}
|
|
10925
|
-
function
|
|
10925
|
+
function Ya(e) {
|
|
10926
10926
|
return e === void 0 ? !1 : dt(e) ? !!Te(e) : !!e;
|
|
10927
10927
|
}
|
|
10928
10928
|
const Nb = ["aria-label"], Pb = ["aria-hidden"], Fb = ["disabled", "aria-label", "tabindex", "onClick"], zb = { class: "vc-blade-toolbar-mobile__action-label" }, Ub = ["aria-label"], Hb = {
|
|
@@ -10942,7 +10942,7 @@ const Nb = ["aria-label"], Pb = ["aria-hidden"], Fb = ["disabled", "aria-label",
|
|
|
10942
10942
|
return g.icon ? typeof g.icon == "function" ? g.icon() : g.icon : "";
|
|
10943
10943
|
}
|
|
10944
10944
|
function s(g) {
|
|
10945
|
-
return
|
|
10945
|
+
return Ya(g.disabled);
|
|
10946
10946
|
}
|
|
10947
10947
|
function i(g) {
|
|
10948
10948
|
return { transitionDelay: t.value ? `${g * 40}ms` : `${(a.items.length - 1 - g) * 25}ms` };
|
|
@@ -11067,7 +11067,7 @@ const Nb = ["aria-label"], Pb = ["aria-hidden"], Fb = ["disabled", "aria-label",
|
|
|
11067
11067
|
onClick: {}
|
|
11068
11068
|
},
|
|
11069
11069
|
setup(e) {
|
|
11070
|
-
const a = e, t = O(!1), l = S(() =>
|
|
11070
|
+
const a = e, t = O(!1), l = S(() => Ya(a.disabled)), r = S(() => dt(a.title) ? Te(a.title) : a.title), s = S(() => typeof a.icon == "function" ? a.icon() : a.icon);
|
|
11071
11071
|
async function i() {
|
|
11072
11072
|
if (!(l.value || t.value || !a.onClick)) {
|
|
11073
11073
|
t.value = !0;
|
|
@@ -11112,7 +11112,7 @@ const Nb = ["aria-label"], Pb = ["aria-hidden"], Fb = ["disabled", "aria-label",
|
|
|
11112
11112
|
isExpanded: { type: Boolean }
|
|
11113
11113
|
},
|
|
11114
11114
|
setup(e) {
|
|
11115
|
-
const a = e, t = O(!1), l = O(null), { visibleItems: r, hiddenItems: s, showMoreButton: i, recalculate: u, updateObserver: c } =
|
|
11115
|
+
const a = e, t = O(!1), l = O(null), { visibleItems: r, hiddenItems: s, showMoreButton: i, recalculate: u, updateObserver: c } = Un({
|
|
11116
11116
|
containerRef: l,
|
|
11117
11117
|
items: Ie(a, "items"),
|
|
11118
11118
|
getItemKey: (v) => v.id ?? `toolbar_item_${a.items.indexOf(v)}`,
|
|
@@ -11143,7 +11143,7 @@ const Nb = ["aria-label"], Pb = ["aria-hidden"], Fb = ["disabled", "aria-label",
|
|
|
11143
11143
|
"show-title": e.isExpanded,
|
|
11144
11144
|
"on-click": f.clickHandler
|
|
11145
11145
|
}), null, 16, ["data-item-key", "show-title", "on-click"]))), 128)),
|
|
11146
|
-
n(i) ? (o(), B(n(
|
|
11146
|
+
n(i) ? (o(), B(n(Hn), {
|
|
11147
11147
|
key: 0,
|
|
11148
11148
|
"model-value": t.value,
|
|
11149
11149
|
items: n(s),
|
|
@@ -11204,7 +11204,7 @@ function eh(e) {
|
|
|
11204
11204
|
d.clear();
|
|
11205
11205
|
}
|
|
11206
11206
|
const h = S(() => r(v.value).filter(
|
|
11207
|
-
(m) => a(m.permissions) &&
|
|
11207
|
+
(m) => a(m.permissions) && Co(m.isVisible) && (c.value ? !Ya(m.disabled) : !0)
|
|
11208
11208
|
).sort((m, w) => {
|
|
11209
11209
|
const k = m.priority ?? 0;
|
|
11210
11210
|
return (w.priority ?? 0) - k;
|
|
@@ -11446,22 +11446,22 @@ const hh = {
|
|
|
11446
11446
|
})
|
|
11447
11447
|
], 64));
|
|
11448
11448
|
}
|
|
11449
|
-
}),
|
|
11449
|
+
}), ja = /* @__PURE__ */ new Map();
|
|
11450
11450
|
function Eh(e) {
|
|
11451
11451
|
return e?.map((a) => a.toLowerCase());
|
|
11452
11452
|
}
|
|
11453
11453
|
function mC(e) {
|
|
11454
|
-
|
|
11454
|
+
ja.set(e.id, {
|
|
11455
11455
|
...e,
|
|
11456
11456
|
targetBlades: Eh(e.targetBlades)
|
|
11457
11457
|
});
|
|
11458
11458
|
}
|
|
11459
11459
|
function Ah(e) {
|
|
11460
11460
|
const a = e.toLowerCase();
|
|
11461
|
-
return Array.from(
|
|
11461
|
+
return Array.from(ja.values()).filter((t) => !t.targetBlades || t.targetBlades.includes(a)).map((t) => ({ ...t, targetBlades: t.targetBlades ? [...t.targetBlades] : void 0 }));
|
|
11462
11462
|
}
|
|
11463
11463
|
function Rh() {
|
|
11464
|
-
return Array.from(
|
|
11464
|
+
return Array.from(ja.values()).map((e) => ({
|
|
11465
11465
|
...e,
|
|
11466
11466
|
targetBlades: e.targetBlades ? [...e.targetBlades] : void 0
|
|
11467
11467
|
}));
|
|
@@ -11469,20 +11469,20 @@ function Rh() {
|
|
|
11469
11469
|
function Ih(e) {
|
|
11470
11470
|
return wa(e);
|
|
11471
11471
|
}
|
|
11472
|
-
const
|
|
11472
|
+
const $o = Jt({
|
|
11473
11473
|
name: "widget-service",
|
|
11474
11474
|
getKey: (e) => `${e.bladeId.toLowerCase()}::${e.widget.id}`,
|
|
11475
11475
|
registerIntoService: (e, a) => e.registerWidget(a.widget, a.bladeId)
|
|
11476
11476
|
});
|
|
11477
11477
|
function pC(e, a) {
|
|
11478
11478
|
const t = a.toLowerCase();
|
|
11479
|
-
|
|
11479
|
+
$o.preregister({
|
|
11480
11480
|
bladeId: t,
|
|
11481
11481
|
widget: e
|
|
11482
11482
|
});
|
|
11483
11483
|
}
|
|
11484
11484
|
function gC() {
|
|
11485
|
-
const e =
|
|
11485
|
+
const e = no({
|
|
11486
11486
|
createRegistration: (l, r) => ({ bladeId: l, widget: r }),
|
|
11487
11487
|
getRegistrationBladeId: (l) => l.bladeId,
|
|
11488
11488
|
getRegistrationItemId: (l) => l.widget.id
|
|
@@ -11495,25 +11495,30 @@ function gC() {
|
|
|
11495
11495
|
getAllExternalWidgets: Rh,
|
|
11496
11496
|
cloneWidget: Ih
|
|
11497
11497
|
};
|
|
11498
|
-
return
|
|
11498
|
+
return $o.replayInto(t), t;
|
|
11499
11499
|
}
|
|
11500
11500
|
const Th = Ye("use-widgets");
|
|
11501
11501
|
function xh() {
|
|
11502
|
-
const e = de(
|
|
11502
|
+
const e = de(Gn);
|
|
11503
11503
|
if (!e)
|
|
11504
11504
|
throw Th.error("Widget service not found in current context. Injection chain:", pt()), new Ct("WidgetService");
|
|
11505
11505
|
return e;
|
|
11506
11506
|
}
|
|
11507
11507
|
const El = /* @__PURE__ */ U({
|
|
11508
|
-
__name: "
|
|
11508
|
+
__name: "WidgetScope",
|
|
11509
11509
|
props: {
|
|
11510
11510
|
widgetId: {}
|
|
11511
11511
|
},
|
|
11512
11512
|
setup(e) {
|
|
11513
|
-
|
|
11513
|
+
const a = e, t = de(Gn), r = de(xa, void 0)?.value.id ?? "";
|
|
11514
|
+
return Me(yi, {
|
|
11515
|
+
setTrigger: (i) => {
|
|
11516
|
+
t.updateWidget({ id: a.widgetId, bladeId: r, widget: { trigger: i } });
|
|
11517
|
+
}
|
|
11518
|
+
}), (i, u) => V(i.$slots, "default");
|
|
11514
11519
|
}
|
|
11515
11520
|
});
|
|
11516
|
-
function
|
|
11521
|
+
function _o() {
|
|
11517
11522
|
const { t: e } = Ve({ useScope: "global" });
|
|
11518
11523
|
function a(i) {
|
|
11519
11524
|
const u = i.headless?.badge;
|
|
@@ -11544,7 +11549,7 @@ const Mh = { class: "vc-widget-container-desktop" }, Oh = { class: "vc-widget-co
|
|
|
11544
11549
|
bladeId: {}
|
|
11545
11550
|
},
|
|
11546
11551
|
setup(e) {
|
|
11547
|
-
const a = e, t = O(!1), { resolveBadge: l, resolveLoading: r, resolveDisabled: s, resolveTitle: i, handleHeadlessClick: u } =
|
|
11552
|
+
const a = e, t = O(!1), { resolveBadge: l, resolveLoading: r, resolveDisabled: s, resolveTitle: i, handleHeadlessClick: u } = _o(), c = S(() => a.widgets.slice(0, 3)), d = S(() => a.widgets.slice(3)), v = S(() => a.widgets.length > 3);
|
|
11548
11553
|
return (g, f) => {
|
|
11549
11554
|
const b = Rl("loading");
|
|
11550
11555
|
return o(), p("div", Mh, [
|
|
@@ -11574,7 +11579,7 @@ const Mh = { class: "vc-widget-container-desktop" }, Oh = { class: "vc-widget-co
|
|
|
11574
11579
|
_: 2
|
|
11575
11580
|
}, 1032, ["widget-id"]))
|
|
11576
11581
|
], 64))), 128)),
|
|
11577
|
-
v.value ? (o(), B(n(
|
|
11582
|
+
v.value ? (o(), B(n(Hn), {
|
|
11578
11583
|
key: 0,
|
|
11579
11584
|
"model-value": t.value,
|
|
11580
11585
|
items: d.value,
|
|
@@ -11634,7 +11639,7 @@ const Mh = { class: "vc-widget-container-desktop" }, Oh = { class: "vc-widget-co
|
|
|
11634
11639
|
bladeId: {}
|
|
11635
11640
|
},
|
|
11636
11641
|
setup(e) {
|
|
11637
|
-
const a = e, t = O(null), l = O(!1), r = S(() => a.widgets.length > 0), { resolveBadge: s, resolveLoading: i, resolveDisabled: u, resolveTitle: c, handleHeadlessClick: d } =
|
|
11642
|
+
const a = e, t = O(null), l = O(!1), r = S(() => a.widgets.length > 0), { resolveBadge: s, resolveLoading: i, resolveDisabled: u, resolveTitle: c, handleHeadlessClick: d } = _o(), { visibleItems: v, showMoreButton: g, hiddenItems: f } = Un({
|
|
11638
11643
|
containerRef: t,
|
|
11639
11644
|
items: S(() => a.widgets),
|
|
11640
11645
|
getItemKey: (b) => b.id ?? "",
|
|
@@ -11744,7 +11749,7 @@ const Mh = { class: "vc-widget-container-desktop" }, Oh = { class: "vc-widget-co
|
|
|
11744
11749
|
bladeId: {}
|
|
11745
11750
|
},
|
|
11746
11751
|
setup(e) {
|
|
11747
|
-
const a = e, t = Ye("widget-container"), l = S(() => a.bladeId.toLowerCase()), r = xh(), s = de(el, Nl), i = de(
|
|
11752
|
+
const a = e, t = Ye("widget-container"), l = S(() => a.bladeId.toLowerCase()), r = xh(), s = de(el, Nl), i = de(xa, void 0), u = S(() => i?.value.name?.toLowerCase() ?? ""), c = /* @__PURE__ */ new Set();
|
|
11748
11753
|
function d() {
|
|
11749
11754
|
if (!u.value) return;
|
|
11750
11755
|
r.getAllExternalWidgets().filter(
|
|
@@ -11777,7 +11782,7 @@ const Mh = { class: "vc-widget-container-desktop" }, Oh = { class: "vc-widget-co
|
|
|
11777
11782
|
}
|
|
11778
11783
|
lt(d), Lt(v);
|
|
11779
11784
|
const g = S(() => r.getWidgets(l.value)), f = S(
|
|
11780
|
-
() => g.value.filter((b) =>
|
|
11785
|
+
() => g.value.filter((b) => Co(b.isVisible, Te(s)))
|
|
11781
11786
|
);
|
|
11782
11787
|
return (b, h) => f.value.length > 0 && b.$isMobile.value ? (o(), B(Dh, {
|
|
11783
11788
|
key: 0,
|
|
@@ -11810,7 +11815,7 @@ const Mh = { class: "vc-widget-container-desktop" }, Oh = { class: "vc-widget-co
|
|
|
11810
11815
|
setup(e, { emit: a }) {
|
|
11811
11816
|
const t = e, r = `blade-title-${pt()?.uid ?? 0}`, s = S(() => !!t.loading);
|
|
11812
11817
|
ct();
|
|
11813
|
-
const i = a, u = Ta(), { id: c } = u, d = !!de(
|
|
11818
|
+
const i = a, u = Ta(), { id: c } = u, d = !!de(xa, void 0), v = S(() => d ? u.expanded.value : t.expanded), g = S(() => d ? u.closable.value : t.closable), f = oi();
|
|
11814
11819
|
function b() {
|
|
11815
11820
|
f.onClose ? i("close") : d ? u.closeSelf() : i("close");
|
|
11816
11821
|
}
|
|
@@ -12012,7 +12017,7 @@ const Mh = { class: "vc-widget-container-desktop" }, Oh = { class: "vc-widget-co
|
|
|
12012
12017
|
if (C.startsWith("#"))
|
|
12013
12018
|
L = C;
|
|
12014
12019
|
else {
|
|
12015
|
-
const T =
|
|
12020
|
+
const T = Ba(C);
|
|
12016
12021
|
T && (L = T);
|
|
12017
12022
|
}
|
|
12018
12023
|
l("update:model-value", {
|
|
@@ -12378,7 +12383,7 @@ const Mh = { class: "vc-widget-container-desktop" }, Oh = { class: "vc-widget-co
|
|
|
12378
12383
|
edit: !a.readonly && a.actions?.edit !== !1,
|
|
12379
12384
|
remove: !a.readonly && a.actions?.remove !== !1
|
|
12380
12385
|
}));
|
|
12381
|
-
return (l, r) => (o(), B(n(
|
|
12386
|
+
return (l, r) => (o(), B(n(lo), {
|
|
12382
12387
|
src: e.image.url,
|
|
12383
12388
|
alt: e.image.altText || e.image.name || "",
|
|
12384
12389
|
name: e.image.name,
|
|
@@ -12433,7 +12438,7 @@ const Mh = { class: "vc-widget-container-desktop" }, Oh = { class: "vc-widget-co
|
|
|
12433
12438
|
window.addEventListener("keydown", d);
|
|
12434
12439
|
}), Ue(() => {
|
|
12435
12440
|
window.removeEventListener("keydown", d);
|
|
12436
|
-
}), (v, g) => u.value ? (o(), B(n(
|
|
12441
|
+
}), (v, g) => u.value ? (o(), B(n(qa), {
|
|
12437
12442
|
key: 0,
|
|
12438
12443
|
"is-mobile-fullscreen": "",
|
|
12439
12444
|
"modal-width": "vc-gallery-preview__modal",
|
|
@@ -12526,8 +12531,8 @@ const Mh = { class: "vc-widget-container-desktop" }, Oh = { class: "vc-widget-co
|
|
|
12526
12531
|
})) : R("", !0);
|
|
12527
12532
|
}
|
|
12528
12533
|
});
|
|
12529
|
-
function
|
|
12530
|
-
const a = O(0), { open: t } =
|
|
12534
|
+
function Eo(e) {
|
|
12535
|
+
const a = O(0), { open: t } = So(
|
|
12531
12536
|
S(() => ({
|
|
12532
12537
|
component: oy,
|
|
12533
12538
|
props: {
|
|
@@ -12560,7 +12565,7 @@ const iy = { class: "vc-image-upload" }, sy = {
|
|
|
12560
12565
|
},
|
|
12561
12566
|
emits: ["upload", "remove"],
|
|
12562
12567
|
setup(e, { emit: a }) {
|
|
12563
|
-
const t = e, l = a, { t: r } = Ve({ useScope: "global" }), s = S(() => t.image ? [t.image] : []), i =
|
|
12568
|
+
const t = e, l = a, { t: r } = Ve({ useScope: "global" }), s = S(() => t.image ? [t.image] : []), i = Eo(s), u = S(() => ({
|
|
12564
12569
|
preview: t.previewable,
|
|
12565
12570
|
remove: t.removable && !t.disabled
|
|
12566
12571
|
})), c = S(
|
|
@@ -12570,7 +12575,7 @@ const iy = { class: "vc-image-upload" }, sy = {
|
|
|
12570
12575
|
t.previewable && t.image && i.openPreview(0);
|
|
12571
12576
|
}
|
|
12572
12577
|
return (v, g) => (o(), p("div", iy, [
|
|
12573
|
-
e.image?.url ? (o(), B(n(
|
|
12578
|
+
e.image?.url ? (o(), B(n(lo), {
|
|
12574
12579
|
key: 0,
|
|
12575
12580
|
src: e.image.url,
|
|
12576
12581
|
alt: e.image.altText || e.image.name || "",
|
|
@@ -12757,7 +12762,7 @@ const fy = ["onDragstart"], my = {
|
|
|
12757
12762
|
onSort: ($) => l("sort", $)
|
|
12758
12763
|
}), g = vy(u, {
|
|
12759
12764
|
onUpload: ($, E) => l("upload", $, E)
|
|
12760
|
-
}), f =
|
|
12765
|
+
}), f = Eo(u), b = O(!1);
|
|
12761
12766
|
let h = 0;
|
|
12762
12767
|
function m($) {
|
|
12763
12768
|
$.dataTransfer?.types.includes("Files") && (h++, b.value = !0);
|
|
@@ -12896,7 +12901,7 @@ const fy = ["onDragstart"], my = {
|
|
|
12896
12901
|
])) : R("", !0)
|
|
12897
12902
|
], 38));
|
|
12898
12903
|
}
|
|
12899
|
-
}), Pl = Symbol("TableContext"),
|
|
12904
|
+
}), Pl = Symbol("TableContext"), Ao = Symbol("ColumnCollector"), Ro = Symbol("HasFlexColumns"), Io = Symbol("IsColumnReordering"), hy = Symbol("FilterContext"), yy = /* @__PURE__ */ U({
|
|
12900
12905
|
__name: "Table",
|
|
12901
12906
|
props: {
|
|
12902
12907
|
variant: { default: "default" }
|
|
@@ -12918,7 +12923,7 @@ const fy = ["onDragstart"], my = {
|
|
|
12918
12923
|
V(i.$slots, "default")
|
|
12919
12924
|
], 2));
|
|
12920
12925
|
}
|
|
12921
|
-
}),
|
|
12926
|
+
}), To = (e, a) => {
|
|
12922
12927
|
const t = e.__vccOpts || e;
|
|
12923
12928
|
for (const [l, r] of a)
|
|
12924
12929
|
t[l] = r;
|
|
@@ -12932,7 +12937,7 @@ function Sy(e, a) {
|
|
|
12932
12937
|
V(e.$slots, "default")
|
|
12933
12938
|
]);
|
|
12934
12939
|
}
|
|
12935
|
-
const Cy = /* @__PURE__ */
|
|
12940
|
+
const Cy = /* @__PURE__ */ To(wy, [["render", Sy]]), $y = ["data-items-count"], _y = {
|
|
12936
12941
|
key: "__empty__",
|
|
12937
12942
|
class: "vc-table-composition__body-state"
|
|
12938
12943
|
}, Ey = { class: "vc-table-composition__empty" }, Ay = {
|
|
@@ -12977,7 +12982,7 @@ const Cy = /* @__PURE__ */ Io(wy, [["render", Sy]]), $y = ["data-items-count"],
|
|
|
12977
12982
|
}, Ty = {
|
|
12978
12983
|
key: 2,
|
|
12979
12984
|
class: "vc-table-composition__row-actions-column"
|
|
12980
|
-
},
|
|
12985
|
+
}, Xa = /* @__PURE__ */ U({
|
|
12981
12986
|
__name: "TableRow",
|
|
12982
12987
|
props: {
|
|
12983
12988
|
selected: { type: Boolean },
|
|
@@ -12991,7 +12996,7 @@ const Cy = /* @__PURE__ */ Io(wy, [["render", Sy]]), $y = ["data-items-count"],
|
|
|
12991
12996
|
},
|
|
12992
12997
|
emits: ["click", "hover", "leave", "mousedown", "dragstart", "dragover", "dragleave", "dragend", "drop", "space-press"],
|
|
12993
12998
|
setup(e, { emit: a }) {
|
|
12994
|
-
const t = e, l = a, r = de(Pl, null), s = de(
|
|
12999
|
+
const t = e, l = a, r = de(Pl, null), s = de(Ro, O(!1)), i = de(Io, O(!1)), u = O(!1), c = S(() => !!t.clickable), d = (E) => {
|
|
12995
13000
|
l("click", E);
|
|
12996
13001
|
}, v = (E) => {
|
|
12997
13002
|
c.value && l("space-press", E);
|
|
@@ -13089,7 +13094,7 @@ const Cy = /* @__PURE__ */ Io(wy, [["render", Sy]]), $y = ["data-items-count"],
|
|
|
13089
13094
|
}, Ly = {
|
|
13090
13095
|
key: 0,
|
|
13091
13096
|
class: "vc-table-composition__head-sort-badge"
|
|
13092
|
-
},
|
|
13097
|
+
}, In = /* @__PURE__ */ U({
|
|
13093
13098
|
__name: "TableHead",
|
|
13094
13099
|
props: {
|
|
13095
13100
|
sortable: { type: Boolean },
|
|
@@ -13241,13 +13246,13 @@ function Py(e, a) {
|
|
|
13241
13246
|
V(e.$slots, "default")
|
|
13242
13247
|
]);
|
|
13243
13248
|
}
|
|
13244
|
-
const Fy = /* @__PURE__ */
|
|
13249
|
+
const Fy = /* @__PURE__ */ To(Dy, [["render", Py]]), zy = { class: "vc-table-composition__empty-state" }, Uy = { class: "vc-table-composition__empty-content" }, Hy = { class: "vc-table-composition__empty-title" }, Gy = {
|
|
13245
13250
|
key: 0,
|
|
13246
13251
|
class: "vc-table-composition__empty-description"
|
|
13247
13252
|
}, Wy = {
|
|
13248
13253
|
key: 1,
|
|
13249
13254
|
class: "vc-table-composition__empty-action"
|
|
13250
|
-
},
|
|
13255
|
+
}, xo = /* @__PURE__ */ U({
|
|
13251
13256
|
__name: "TableEmpty",
|
|
13252
13257
|
props: {
|
|
13253
13258
|
icon: {},
|
|
@@ -13344,7 +13349,7 @@ const Fy = /* @__PURE__ */ Io(Dy, [["render", Py]]), zy = { class: "vc-table-com
|
|
|
13344
13349
|
key: v.id,
|
|
13345
13350
|
class: "vc-column-switcher-panel__item"
|
|
13346
13351
|
}, [
|
|
13347
|
-
x(n(
|
|
13352
|
+
x(n(Na), {
|
|
13348
13353
|
"model-value": r(v.id),
|
|
13349
13354
|
"onUpdate:modelValue": (g) => s(v.id)
|
|
13350
13355
|
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
@@ -13548,7 +13553,7 @@ const Fy = /* @__PURE__ */ Io(Dy, [["render", Py]]), zy = { class: "vc-table-com
|
|
|
13548
13553
|
onClick: u[0] || (u[0] = le(() => {
|
|
13549
13554
|
}, ["stop"]))
|
|
13550
13555
|
}, [
|
|
13551
|
-
x(n(
|
|
13556
|
+
x(n(Na), {
|
|
13552
13557
|
"model-value": r.value,
|
|
13553
13558
|
disabled: e.disabled,
|
|
13554
13559
|
indeterminate: e.indeterminate,
|
|
@@ -14004,7 +14009,7 @@ const Fy = /* @__PURE__ */ Io(Dy, [["render", Py]]), zy = { class: "vc-table-com
|
|
|
14004
14009
|
}), Rw = { class: "vc-global-filters-button__label" }, Iw = {
|
|
14005
14010
|
key: 0,
|
|
14006
14011
|
class: "vc-global-filters-button__badge"
|
|
14007
|
-
},
|
|
14012
|
+
}, Mo = /* @__PURE__ */ U({
|
|
14008
14013
|
__name: "GlobalFiltersButton",
|
|
14009
14014
|
props: {
|
|
14010
14015
|
activeCount: { default: 0 },
|
|
@@ -14031,16 +14036,16 @@ const Fy = /* @__PURE__ */ Io(Dy, [["render", Py]]), zy = { class: "vc-table-com
|
|
|
14031
14036
|
function Gt(e) {
|
|
14032
14037
|
return typeof e == "object" && "options" in e;
|
|
14033
14038
|
}
|
|
14034
|
-
function
|
|
14039
|
+
function Tn(e) {
|
|
14035
14040
|
return typeof e == "object" && "options" in e && "field" in e;
|
|
14036
14041
|
}
|
|
14037
14042
|
function ra(e) {
|
|
14038
14043
|
return typeof e == "object" && "range" in e;
|
|
14039
14044
|
}
|
|
14040
|
-
function
|
|
14045
|
+
function Oo() {
|
|
14041
14046
|
return {
|
|
14042
14047
|
getFilterType: (i) => i ? i === !0 || typeof i == "string" ? "text" : ra(i) ? "dateRange" : Gt(i) ? "select" : "none" : "none",
|
|
14043
|
-
getFilterField: (i, u) => !u || u === !0 ? i : typeof u == "string" ? u :
|
|
14048
|
+
getFilterField: (i, u) => !u || u === !0 ? i : typeof u == "string" ? u : Tn(u) ? u.field : (Gt(u), i),
|
|
14044
14049
|
getRangeFields: (i) => {
|
|
14045
14050
|
if (i && ra(i))
|
|
14046
14051
|
return i.range;
|
|
@@ -14053,7 +14058,7 @@ function Mo() {
|
|
|
14053
14058
|
hasFilter: (i) => i != null,
|
|
14054
14059
|
// Export type guards for external use
|
|
14055
14060
|
isSelectFilter: Gt,
|
|
14056
|
-
isSelectFilterWithField:
|
|
14061
|
+
isSelectFilterWithField: Tn,
|
|
14057
14062
|
isDateRangeFilter: ra
|
|
14058
14063
|
};
|
|
14059
14064
|
}
|
|
@@ -14073,7 +14078,7 @@ const Tw = { class: "vc-global-filters-panel__content" }, xw = { class: "vc-glob
|
|
|
14073
14078
|
},
|
|
14074
14079
|
emits: ["update:modelValue", "update:show", "apply", "clear"],
|
|
14075
14080
|
setup(e, { emit: a }) {
|
|
14076
|
-
const t = e, l = a, r = de(nt, O(!1)), { getFilterType: s, getFilterOptions: i, isMultipleSelect: u, getRangeFields: c } =
|
|
14081
|
+
const t = e, l = a, r = de(nt, O(!1)), { getFilterType: s, getFilterOptions: i, isMultipleSelect: u, getRangeFields: c } = Oo(), d = S(() => {
|
|
14077
14082
|
const C = {};
|
|
14078
14083
|
for (const L of t.filters)
|
|
14079
14084
|
C[L.id] = s(L.filter);
|
|
@@ -14527,7 +14532,7 @@ const Tw = { class: "vc-global-filters-panel__content" }, xw = { class: "vc-glob
|
|
|
14527
14532
|
}
|
|
14528
14533
|
},
|
|
14529
14534
|
setup(e, { slots: a }) {
|
|
14530
|
-
const t = de(
|
|
14535
|
+
const t = de(Ao, null), l = pt();
|
|
14531
14536
|
return lt(() => {
|
|
14532
14537
|
t && l && t.add({
|
|
14533
14538
|
instance: l,
|
|
@@ -14553,7 +14558,7 @@ function Yw() {
|
|
|
14553
14558
|
}
|
|
14554
14559
|
};
|
|
14555
14560
|
}
|
|
14556
|
-
const jw = { class: "vc-table-cell-editable__error-tooltip" },
|
|
14561
|
+
const jw = { class: "vc-table-cell-editable__error-tooltip" }, Qa = /* @__PURE__ */ U({
|
|
14557
14562
|
__name: "CellEditableWrapper",
|
|
14558
14563
|
props: {
|
|
14559
14564
|
label: {},
|
|
@@ -14576,7 +14581,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
14576
14581
|
rules: e.rules
|
|
14577
14582
|
}, {
|
|
14578
14583
|
default: A(({ errors: s, errorMessage: i }) => [
|
|
14579
|
-
x(
|
|
14584
|
+
x(Va, { placement: "bottom" }, we({
|
|
14580
14585
|
default: A(() => [
|
|
14581
14586
|
V(l.$slots, "default", {
|
|
14582
14587
|
errors: s,
|
|
@@ -14600,7 +14605,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
14600
14605
|
}), Xw = {
|
|
14601
14606
|
key: 1,
|
|
14602
14607
|
class: "vc-table-cell-default"
|
|
14603
|
-
},
|
|
14608
|
+
}, xn = /* @__PURE__ */ U({
|
|
14604
14609
|
__name: "CellDefault",
|
|
14605
14610
|
props: {
|
|
14606
14611
|
value: {},
|
|
@@ -14617,7 +14622,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
14617
14622
|
const t = e, l = a, r = de(nt, O(!1)), s = de(tl, O(!0)), i = S(() => r.value), u = S(() => s.value), c = (d) => {
|
|
14618
14623
|
d && d.length > 0 || l("blur", { row: t.rowIndex, field: t.fieldId || "" });
|
|
14619
14624
|
};
|
|
14620
|
-
return (d, v) => e.editable ? (o(), B(
|
|
14625
|
+
return (d, v) => e.editable ? (o(), B(Qa, {
|
|
14621
14626
|
key: 0,
|
|
14622
14627
|
label: e.label || "",
|
|
14623
14628
|
"field-name": e.fieldName || "",
|
|
@@ -14679,7 +14684,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
14679
14684
|
}), f = (b) => {
|
|
14680
14685
|
b && b.length > 0 || l("blur", { row: t.rowIndex, field: t.fieldId || "" });
|
|
14681
14686
|
};
|
|
14682
|
-
return (b, h) => e.editable ? (o(), B(
|
|
14687
|
+
return (b, h) => e.editable ? (o(), B(Qa, {
|
|
14683
14688
|
key: 0,
|
|
14684
14689
|
label: e.label || "",
|
|
14685
14690
|
"field-name": e.fieldName || "",
|
|
@@ -14744,7 +14749,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
14744
14749
|
}), g = (f) => {
|
|
14745
14750
|
f && f.length > 0 || l("blur", { row: t.rowIndex, field: t.fieldId || "" });
|
|
14746
14751
|
};
|
|
14747
|
-
return (f, b) => e.editable ? (o(), B(
|
|
14752
|
+
return (f, b) => e.editable ? (o(), B(Qa, {
|
|
14748
14753
|
key: 0,
|
|
14749
14754
|
label: e.label || "",
|
|
14750
14755
|
"field-name": e.fieldName || "",
|
|
@@ -14809,7 +14814,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
14809
14814
|
value: {}
|
|
14810
14815
|
},
|
|
14811
14816
|
setup(e) {
|
|
14812
|
-
const a = e, { t } = Ve({ useScope: "global" }), l = window.navigator.language, r = S(() => a.value ? (a.value instanceof Date ? a.value : new Date(a.value)).toLocaleString(l) : ""), s = S(() => a.value ?
|
|
14817
|
+
const a = e, { t } = Ve({ useScope: "global" }), l = window.navigator.language, r = S(() => a.value ? (a.value instanceof Date ? a.value : new Date(a.value)).toLocaleString(l) : ""), s = S(() => a.value ? Yn(a.value) : "");
|
|
14813
14818
|
return (i, u) => e.value ? (o(), p("span", {
|
|
14814
14819
|
key: 0,
|
|
14815
14820
|
class: "vc-table-cell-date-ago",
|
|
@@ -14823,7 +14828,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
14823
14828
|
emptyIcon: {}
|
|
14824
14829
|
},
|
|
14825
14830
|
setup(e) {
|
|
14826
|
-
return (a, t) => (o(), B(n(
|
|
14831
|
+
return (a, t) => (o(), B(n(jn), {
|
|
14827
14832
|
class: "vc-table-cell-image",
|
|
14828
14833
|
bordered: !0,
|
|
14829
14834
|
size: "s",
|
|
@@ -14865,7 +14870,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
14865
14870
|
value: {}
|
|
14866
14871
|
},
|
|
14867
14872
|
setup(e) {
|
|
14868
|
-
return (a, t) => (o(), B(n(
|
|
14873
|
+
return (a, t) => (o(), B(n(Qn), { class: "vc-table-cell-link" }, {
|
|
14869
14874
|
default: A(() => [
|
|
14870
14875
|
ie(D(e.value), 1)
|
|
14871
14876
|
]),
|
|
@@ -14931,7 +14936,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
14931
14936
|
innerHTML: s.value
|
|
14932
14937
|
}, null, 8, f0));
|
|
14933
14938
|
}
|
|
14934
|
-
}),
|
|
14939
|
+
}), Lo = /* @__PURE__ */ U({
|
|
14935
14940
|
__name: "DynamicCellRenderer",
|
|
14936
14941
|
props: {
|
|
14937
14942
|
type: {},
|
|
@@ -14950,8 +14955,8 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
14950
14955
|
emits: ["update", "blur"],
|
|
14951
14956
|
setup(e) {
|
|
14952
14957
|
const { register: a, has: t, get: l } = Yw();
|
|
14953
|
-
t("text") || a({ type: "text", component:
|
|
14954
|
-
const r = e, s = S(() => l(r.type)?.component ||
|
|
14958
|
+
t("text") || a({ type: "text", component: xn, config: { editable: !0 } }), t("number") || a({ type: "number", component: l0, config: { editable: !0 } }), t("money") || a({ type: "money", component: Zw, config: { editable: !0 } }), t("date") || a({ type: "date", component: da, config: { editable: !1 } }), t("time") || a({ type: "time", component: da, config: { editable: !1 } }), t("datetime") || a({ type: "datetime", component: da, config: { editable: !1 } }), t("date-ago") || a({ type: "date-ago", component: s0, config: { editable: !1 } }), t("image") || a({ type: "image", component: r0, config: { editable: !1 } }), t("status") || a({ type: "status", component: u0, config: { editable: !1 } }), t("status-icon") || a({ type: "status-icon", component: c0, config: { editable: !1 } }), t("link") || a({ type: "link", component: v0, config: { editable: !1 } }), t("html") || a({ type: "html", component: p0, config: { editable: !1 } });
|
|
14959
|
+
const r = e, s = S(() => l(r.type)?.component || xn), i = S(() => {
|
|
14955
14960
|
const c = l(r.type)?.config?.editable ?? !1, d = {
|
|
14956
14961
|
value: r.value
|
|
14957
14962
|
};
|
|
@@ -15011,7 +15016,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
15011
15016
|
E && $.contains(E) || s();
|
|
15012
15017
|
}, c = (k) => {
|
|
15013
15018
|
k.key === "Enter" && !k.shiftKey ? (k.preventDefault(), s()) : k.key === "Escape" && (k.preventDefault(), i());
|
|
15014
|
-
}, d = S(() => t.column.props.field || t.column.props.id), v = S(() => `${d.value}_${t.index}`), g = S(() => t.column.slots.editor ? !1 : t.isCellEditing || t.isRowEditing && t.column.props.editable), f = S(() =>
|
|
15019
|
+
}, d = S(() => t.column.props.field || t.column.props.id), v = S(() => `${d.value}_${t.index}`), g = S(() => t.column.slots.editor ? !1 : t.isCellEditing || t.isRowEditing && t.column.props.editable), f = S(() => La(t.item, d.value || "")), b = S(() => {
|
|
15015
15020
|
const k = t.column.props.currencyField || "currency";
|
|
15016
15021
|
return t.item[k] || "USD";
|
|
15017
15022
|
}), h = S(() => {
|
|
@@ -15029,7 +15034,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
15029
15034
|
"model-value": e.isSelected,
|
|
15030
15035
|
disabled: !e.isSelectable,
|
|
15031
15036
|
"onUpdate:modelValue": $[0] || ($[0] = (E) => k.$emit("selection-change", E))
|
|
15032
|
-
}, null, 8, ["model-value", "disabled"])) : (o(), B(n(
|
|
15037
|
+
}, null, 8, ["model-value", "disabled"])) : (o(), B(n(Da), {
|
|
15033
15038
|
key: 1,
|
|
15034
15039
|
"model-value": e.isSelected ?? !1,
|
|
15035
15040
|
value: !0,
|
|
@@ -15108,7 +15113,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
15108
15113
|
index: e.index
|
|
15109
15114
|
}
|
|
15110
15115
|
}, null, 8, ["slot-fn", "scope"])
|
|
15111
|
-
])) : (o(), B(
|
|
15116
|
+
])) : (o(), B(Lo, {
|
|
15112
15117
|
key: 6,
|
|
15113
15118
|
type: e.column.props.type || "text",
|
|
15114
15119
|
value: f.value,
|
|
@@ -15234,7 +15239,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
15234
15239
|
]),
|
|
15235
15240
|
_: 3
|
|
15236
15241
|
}, 8, ["group-key", "count", "expandable", "expanded"])) : R("", !0),
|
|
15237
|
-
!e.groupingEnabled || !e.expandableRowGroups || e.isGroupRowExpanded ? (o(), B(
|
|
15242
|
+
!e.groupingEnabled || !e.expandableRowGroups || e.isGroupRowExpanded ? (o(), B(Xa, {
|
|
15238
15243
|
key: 1,
|
|
15239
15244
|
selected: e.isSelected,
|
|
15240
15245
|
active: e.isActive,
|
|
@@ -15269,7 +15274,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
15269
15274
|
"model-value": e.isSelected,
|
|
15270
15275
|
disabled: !e.isSelectable,
|
|
15271
15276
|
"onUpdate:modelValue": c
|
|
15272
|
-
}, null, 8, ["model-value", "disabled"])) : (o(), B(n(
|
|
15277
|
+
}, null, 8, ["model-value", "disabled"])) : (o(), B(n(Da), {
|
|
15273
15278
|
key: 1,
|
|
15274
15279
|
"model-value": e.isSelected ?? !1,
|
|
15275
15280
|
value: !0,
|
|
@@ -15367,7 +15372,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
15367
15372
|
}
|
|
15368
15373
|
}
|
|
15369
15374
|
return (l, r) => (o(), p("div", A0, [
|
|
15370
|
-
e.columns.length > 0 ? (o(!0), p(ee, { key: 0 }, me(e.rows, (s) => (o(), B(
|
|
15375
|
+
e.columns.length > 0 ? (o(!0), p(ee, { key: 0 }, me(e.rows, (s) => (o(), B(Xa, { key: s }, {
|
|
15371
15376
|
default: A(() => [
|
|
15372
15377
|
e.showSelectionCell ? (o(), B(Al, {
|
|
15373
15378
|
key: 0,
|
|
@@ -15449,7 +15454,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
15449
15454
|
onScroll: K[0] || (K[0] = (z) => F.$emit("scroll", z))
|
|
15450
15455
|
}, [
|
|
15451
15456
|
e.items.length === 0 && !e.loading ? V(F.$slots, "empty", { key: 0 }, () => [
|
|
15452
|
-
x(
|
|
15457
|
+
x(xo, {
|
|
15453
15458
|
icon: e.emptyIcon,
|
|
15454
15459
|
title: e.emptyTitle,
|
|
15455
15460
|
description: e.emptyDescription,
|
|
@@ -15590,13 +15595,13 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
15590
15595
|
};
|
|
15591
15596
|
return (b, h) => (o(), B(Cy, null, {
|
|
15592
15597
|
default: A(() => [
|
|
15593
|
-
x(
|
|
15598
|
+
x(Xa, {
|
|
15594
15599
|
variant: "header",
|
|
15595
15600
|
"show-drag-handle": e.showDragHandle,
|
|
15596
15601
|
"actions-position": e.actionsPosition
|
|
15597
15602
|
}, we({
|
|
15598
15603
|
default: A(() => [
|
|
15599
|
-
e.showSelectionCell ? (o(), B(
|
|
15604
|
+
e.showSelectionCell ? (o(), B(In, {
|
|
15600
15605
|
key: 0,
|
|
15601
15606
|
class: "vc-data-table__selection-cell"
|
|
15602
15607
|
}, {
|
|
@@ -15610,7 +15615,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
15610
15615
|
]),
|
|
15611
15616
|
_: 1
|
|
15612
15617
|
})) : R("", !0),
|
|
15613
|
-
(o(!0), p(ee, null, me(e.columns, (m) => (o(), B(
|
|
15618
|
+
(o(!0), p(ee, null, me(e.columns, (m) => (o(), B(In, {
|
|
15614
15619
|
ref_for: !0,
|
|
15615
15620
|
ref: (w) => e.setHeaderRef(m.props.id, w),
|
|
15616
15621
|
key: m.props.id,
|
|
@@ -15719,7 +15724,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
15719
15724
|
"use-container": !1
|
|
15720
15725
|
})
|
|
15721
15726
|
]),
|
|
15722
|
-
x(n(
|
|
15727
|
+
x(n(Va), { placement: "bottom" }, {
|
|
15723
15728
|
tooltip: A(() => [
|
|
15724
15729
|
ie(D(b.$t("COMPONENTS.ORGANISMS.VC_TABLE.COLUMN_SWITCHER.TITLE")), 1)
|
|
15725
15730
|
]),
|
|
@@ -15758,7 +15763,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
15758
15763
|
},
|
|
15759
15764
|
emits: ["update", "blur"],
|
|
15760
15765
|
setup(e) {
|
|
15761
|
-
const a = e, t = S(() => a.config.field || a.config.id), l = S(() =>
|
|
15766
|
+
const a = e, t = S(() => a.config.field || a.config.id), l = S(() => La(a.item, t.value || "")), r = S(() => {
|
|
15762
15767
|
const i = a.config.column.props.currencyField || "currency";
|
|
15763
15768
|
return a.item[i] || "USD";
|
|
15764
15769
|
}), s = S(() => {
|
|
@@ -15773,7 +15778,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
15773
15778
|
field: t.value,
|
|
15774
15779
|
index: e.index
|
|
15775
15780
|
}
|
|
15776
|
-
}, null, 8, ["slot-fn", "scope"])) : (o(), B(
|
|
15781
|
+
}, null, 8, ["slot-fn", "scope"])) : (o(), B(Lo, {
|
|
15777
15782
|
key: 1,
|
|
15778
15783
|
type: e.config.type || "text",
|
|
15779
15784
|
value: l.value,
|
|
@@ -15850,7 +15855,7 @@ const jw = { class: "vc-table-cell-editable__error-tooltip" }, Xa = /* @__PURE__
|
|
|
15850
15855
|
_: 1
|
|
15851
15856
|
}, 8, ["model-value", "title"]));
|
|
15852
15857
|
}
|
|
15853
|
-
}),
|
|
15858
|
+
}), Bo = Symbol();
|
|
15854
15859
|
function z0() {
|
|
15855
15860
|
const e = O(null);
|
|
15856
15861
|
function a(l) {
|
|
@@ -15860,10 +15865,10 @@ function z0() {
|
|
|
15860
15865
|
activeSwipeId: e,
|
|
15861
15866
|
setActiveSwipe: a
|
|
15862
15867
|
};
|
|
15863
|
-
return Me(
|
|
15868
|
+
return Me(Bo, t), t;
|
|
15864
15869
|
}
|
|
15865
15870
|
function U0() {
|
|
15866
|
-
const e = de(
|
|
15871
|
+
const e = de(Bo);
|
|
15867
15872
|
if (!e)
|
|
15868
15873
|
throw new Error("useTableSwipe must be used within a provider");
|
|
15869
15874
|
return e;
|
|
@@ -15880,7 +15885,7 @@ const H0 = {
|
|
|
15880
15885
|
}, K0 = {
|
|
15881
15886
|
key: 2,
|
|
15882
15887
|
class: "vc-data-table-mobile-card__statuses"
|
|
15883
|
-
}, Y0 = { class: "vc-data-table-mobile-card__action-title" }, j0 = ["disabled", "onClick"], X0 = { class: "vc-data-table-mobile-card__action-title" },
|
|
15888
|
+
}, Y0 = { class: "vc-data-table-mobile-card__action-title" }, j0 = ["disabled", "onClick"], X0 = { class: "vc-data-table-mobile-card__action-title" }, Mn = 8, Q0 = 0.08, J0 = 0.7, Z0 = 1, e1 = /* @__PURE__ */ U({
|
|
15884
15889
|
__name: "DataTableMobileCard",
|
|
15885
15890
|
props: {
|
|
15886
15891
|
item: {},
|
|
@@ -15941,7 +15946,7 @@ const H0 = {
|
|
|
15941
15946
|
const fe = Z.touches[0], Re = fe.clientX, Fe = Re - w.value, ye = fe.clientY - k.value;
|
|
15942
15947
|
if (C.value === null) {
|
|
15943
15948
|
const qe = Math.abs(Fe), Ze = Math.abs(ye);
|
|
15944
|
-
if (qe >=
|
|
15949
|
+
if (qe >= Mn || Ze >= Mn)
|
|
15945
15950
|
C.value = qe > Ze ? "horizontal" : "vertical";
|
|
15946
15951
|
else
|
|
15947
15952
|
return;
|
|
@@ -16150,7 +16155,7 @@ const H0 = {
|
|
|
16150
16155
|
]);
|
|
16151
16156
|
};
|
|
16152
16157
|
}
|
|
16153
|
-
}), Wt = ["top-left", "top-right", "bottom-left", "bottom-right"],
|
|
16158
|
+
}), Wt = ["top-left", "top-right", "bottom-left", "bottom-right"], Vo = 4, t1 = /* @__PURE__ */ new Set(["status", "status-icon"]), l1 = /* @__PURE__ */ new Set(["text", "link", "html"]);
|
|
16154
16159
|
function a1(e, a) {
|
|
16155
16160
|
switch (e) {
|
|
16156
16161
|
case "image":
|
|
@@ -16192,7 +16197,7 @@ function o1(e) {
|
|
|
16192
16197
|
i && a.push(yl(i, "top-left", !0)), l && a.push(yl(l, "image"));
|
|
16193
16198
|
for (const c of r)
|
|
16194
16199
|
a.push(yl(c, "status"));
|
|
16195
|
-
const u = s.filter((c) => c !== i).slice(0,
|
|
16200
|
+
const u = s.filter((c) => c !== i).slice(0, Vo);
|
|
16196
16201
|
for (let c = 0; c < u.length; c++)
|
|
16197
16202
|
a.push(yl(u[c], Wt[c]));
|
|
16198
16203
|
return a;
|
|
@@ -16252,7 +16257,7 @@ function i1(e) {
|
|
|
16252
16257
|
position: h[m]
|
|
16253
16258
|
});
|
|
16254
16259
|
}
|
|
16255
|
-
return s.fields = b.slice(0,
|
|
16260
|
+
return s.fields = b.slice(0, Vo), s.fields.sort((m, w) => {
|
|
16256
16261
|
const k = Wt.indexOf(m.position), $ = Wt.indexOf(w.position);
|
|
16257
16262
|
return k - $;
|
|
16258
16263
|
}), s;
|
|
@@ -16737,7 +16742,7 @@ function C1(e, a) {
|
|
|
16737
16742
|
}
|
|
16738
16743
|
function va(e) {
|
|
16739
16744
|
try {
|
|
16740
|
-
return structuredClone(
|
|
16745
|
+
return structuredClone(Nn(e));
|
|
16741
16746
|
} catch {
|
|
16742
16747
|
return JSON.parse(
|
|
16743
16748
|
JSON.stringify(e, (a, t) => t instanceof Date ? { __type: "Date", value: t.toISOString() } : t),
|
|
@@ -16748,7 +16753,7 @@ function va(e) {
|
|
|
16748
16753
|
function $1(e) {
|
|
16749
16754
|
const { items: a, rules: t, onCellUpdate: l, onSave: r, onCancel: s } = e, i = O(!1);
|
|
16750
16755
|
let u = [];
|
|
16751
|
-
const c = de(tr, void 0), d = c ? void 0 :
|
|
16756
|
+
const c = de(tr, void 0), d = c ? void 0 : Wn(), v = c ?? d, { meta: g, setFieldValue: f, errors: b, validate: h } = v, m = () => {
|
|
16752
16757
|
d && d.resetForm();
|
|
16753
16758
|
}, w = O(/* @__PURE__ */ new Map()), k = O(/* @__PURE__ */ new Set()), $ = (z) => {
|
|
16754
16759
|
if (k.value.has(z)) {
|
|
@@ -16936,7 +16941,7 @@ function _1(e) {
|
|
|
16936
16941
|
);
|
|
16937
16942
|
const v = S(() => !!t.value), g = S(() => t.value ? Array.isArray(t.value) ? t.value[0] : t.value : null), f = (C) => {
|
|
16938
16943
|
if (!g.value) return "";
|
|
16939
|
-
const L =
|
|
16944
|
+
const L = La(C, g.value);
|
|
16940
16945
|
return String(L ?? "undefined");
|
|
16941
16946
|
}, b = S(() => {
|
|
16942
16947
|
if (!v.value || !g.value)
|
|
@@ -17102,9 +17107,9 @@ function A1(e) {
|
|
|
17102
17107
|
internalMultiSortMeta: d
|
|
17103
17108
|
};
|
|
17104
17109
|
}
|
|
17105
|
-
function
|
|
17110
|
+
function On(e) {
|
|
17106
17111
|
try {
|
|
17107
|
-
return structuredClone(
|
|
17112
|
+
return structuredClone(Nn(e));
|
|
17108
17113
|
} catch {
|
|
17109
17114
|
return JSON.parse(
|
|
17110
17115
|
JSON.stringify(e, (a, t) => t instanceof Date ? { __type: "Date", value: t.toISOString() } : t),
|
|
@@ -17136,7 +17141,7 @@ function R1(e) {
|
|
|
17136
17141
|
return _ ? _.fields.includes($) || _.fields.push($) : s.value = {
|
|
17137
17142
|
...s.value,
|
|
17138
17143
|
[E]: {
|
|
17139
|
-
data:
|
|
17144
|
+
data: On(k),
|
|
17140
17145
|
fields: [$]
|
|
17141
17146
|
}
|
|
17142
17147
|
}, { data: k, field: $, index: E };
|
|
@@ -17190,7 +17195,7 @@ function R1(e) {
|
|
|
17190
17195
|
if (a.value !== "row")
|
|
17191
17196
|
return { data: k, index: $ };
|
|
17192
17197
|
const E = l(k, $);
|
|
17193
|
-
return u.value.set(E,
|
|
17198
|
+
return u.value.set(E, On(k)), i.value = [...i.value, k], { data: k, index: $ };
|
|
17194
17199
|
},
|
|
17195
17200
|
saveRowEdit: (k, $) => {
|
|
17196
17201
|
if (a.value !== "row")
|
|
@@ -17439,7 +17444,7 @@ function x1(e) {
|
|
|
17439
17444
|
getSortField: h
|
|
17440
17445
|
};
|
|
17441
17446
|
}
|
|
17442
|
-
const M1 = 150,
|
|
17447
|
+
const M1 = 150, Ln = 1;
|
|
17443
17448
|
function O1(e) {
|
|
17444
17449
|
const { stateKey: a, stateStorage: t, columnWidths: l, hiddenColumnIds: r, shownColumnIds: s, onStateSave: i, onStateRestore: u } = e;
|
|
17445
17450
|
let c = !1, d;
|
|
@@ -17470,14 +17475,14 @@ function O1(e) {
|
|
|
17470
17475
|
const T = JSON.parse(L);
|
|
17471
17476
|
if (typeof T != "object" || T === null) return null;
|
|
17472
17477
|
const I = T;
|
|
17473
|
-
return I.v !==
|
|
17478
|
+
return I.v !== Ln || I.columnOrder !== void 0 && !Array.isArray(I.columnOrder) || I.columnWidths !== void 0 && typeof I.columnWidths != "object" || I.hiddenColumnIds !== void 0 && !Array.isArray(I.hiddenColumnIds) || I.shownColumnIds !== void 0 && !Array.isArray(I.shownColumnIds) ? null : I;
|
|
17474
17479
|
} catch {
|
|
17475
17480
|
return null;
|
|
17476
17481
|
}
|
|
17477
17482
|
}
|
|
17478
17483
|
let b = f(), h = b?.columnWidths && b?.columnOrder ? { widths: b.columnWidths, order: b.columnOrder } : null;
|
|
17479
17484
|
function m() {
|
|
17480
|
-
const M = { v:
|
|
17485
|
+
const M = { v: Ln };
|
|
17481
17486
|
if (l.value.length > 0) {
|
|
17482
17487
|
const C = {}, L = [];
|
|
17483
17488
|
for (const T of l.value)
|
|
@@ -17695,7 +17700,7 @@ function L1(e) {
|
|
|
17695
17700
|
onRowDragLeave: Q,
|
|
17696
17701
|
onRowDragEnd: j,
|
|
17697
17702
|
onRowDrop: ke
|
|
17698
|
-
} = C1(Ie(a, "items"), (H) => t("row-reorder", H)), be = S(() => l.value.find((H) => H.props.expander === !0) || null), Z = S(() => be.value !== null), fe =
|
|
17703
|
+
} = C1(Ie(a, "items"), (H) => t("row-reorder", H)), be = S(() => l.value.find((H) => H.props.expander === !0) || null), Z = S(() => be.value !== null), fe = Oo(), {
|
|
17699
17704
|
filterValues: Re,
|
|
17700
17705
|
updateFilter: Fe,
|
|
17701
17706
|
updateRangeFilter: ye,
|
|
@@ -18013,7 +18018,7 @@ const V1 = ["aria-busy"], D1 = {
|
|
|
18013
18018
|
}, P1 = {
|
|
18014
18019
|
key: 0,
|
|
18015
18020
|
class: "vc-data-table__mobile-select-toolbar"
|
|
18016
|
-
}, F1 = { class: "vc-data-table__mobile-select-toolbar-text" }, z1 = { class: "vc-data-table__page-info" }, fa = 37,
|
|
18021
|
+
}, F1 = { class: "vc-data-table__mobile-select-toolbar-text" }, z1 = { class: "vc-data-table__page-info" }, fa = 37, Bn = 140, U1 = /* @__PURE__ */ U({
|
|
18017
18022
|
inheritAttrs: !1,
|
|
18018
18023
|
__name: "VcDataTable",
|
|
18019
18024
|
props: {
|
|
@@ -18146,7 +18151,7 @@ const V1 = ["aria-busy"], D1 = {
|
|
|
18146
18151
|
};
|
|
18147
18152
|
return ae.forEach(ze), oe;
|
|
18148
18153
|
}, N = new B1();
|
|
18149
|
-
Me(
|
|
18154
|
+
Me(Ao, N);
|
|
18150
18155
|
const P = O(0);
|
|
18151
18156
|
N.onUpdate(() => {
|
|
18152
18157
|
P.value++;
|
|
@@ -18217,24 +18222,24 @@ const V1 = ["aria-busy"], D1 = {
|
|
|
18217
18222
|
onRowDrop: Jl,
|
|
18218
18223
|
// Derived computeds
|
|
18219
18224
|
displayItems: bt,
|
|
18220
|
-
getGlobalIndex:
|
|
18225
|
+
getGlobalIndex: Ja,
|
|
18221
18226
|
effectiveSelectionMode: It,
|
|
18222
18227
|
hasSelectionColumn: sl,
|
|
18223
18228
|
isSelectionViaColumn: rl,
|
|
18224
18229
|
isRowReorderEnabled: vt,
|
|
18225
18230
|
showRowDragHandle: Zl,
|
|
18226
|
-
hasExpanderColumn:
|
|
18227
|
-
computedVariant:
|
|
18228
|
-
switcherColumns:
|
|
18229
|
-
switcherVisibleColumnIds:
|
|
18231
|
+
hasExpanderColumn: Za,
|
|
18232
|
+
computedVariant: en,
|
|
18233
|
+
switcherColumns: tn,
|
|
18234
|
+
switcherVisibleColumnIds: ln,
|
|
18230
18235
|
safeColumns: ul,
|
|
18231
18236
|
isInlineEditing: dl,
|
|
18232
18237
|
// Expansion helper
|
|
18233
|
-
isRowExpanded:
|
|
18238
|
+
isRowExpanded: an,
|
|
18234
18239
|
// Event handlers
|
|
18235
|
-
handleSort:
|
|
18240
|
+
handleSort: nn,
|
|
18236
18241
|
handleSelectAllChange: ea,
|
|
18237
|
-
handleRowSelectionChange:
|
|
18242
|
+
handleRowSelectionChange: on,
|
|
18238
18243
|
handleRowClick: H,
|
|
18239
18244
|
handleAddRow: re,
|
|
18240
18245
|
handleRemoveRow: ce,
|
|
@@ -18244,13 +18249,13 @@ const V1 = ["aria-busy"], D1 = {
|
|
|
18244
18249
|
handleCellEditCancel: je,
|
|
18245
18250
|
handleCellValueChange: tt,
|
|
18246
18251
|
handleExpandToggle: Ke,
|
|
18247
|
-
handleStartRowEdit:
|
|
18248
|
-
handleSaveRowEdit:
|
|
18249
|
-
handleCancelRowEdit:
|
|
18250
|
-
handleRowAction:
|
|
18251
|
-
handleMobileRowClick:
|
|
18252
|
-
handleMobileRowSelect:
|
|
18253
|
-
handleMobileRowAction:
|
|
18252
|
+
handleStartRowEdit: Do,
|
|
18253
|
+
handleSaveRowEdit: No,
|
|
18254
|
+
handleCancelRowEdit: Po,
|
|
18255
|
+
handleRowAction: Fo,
|
|
18256
|
+
handleMobileRowClick: zo,
|
|
18257
|
+
handleMobileRowSelect: Uo,
|
|
18258
|
+
handleMobileRowAction: Ho
|
|
18254
18259
|
} = L1({
|
|
18255
18260
|
props: l,
|
|
18256
18261
|
emit: r,
|
|
@@ -18269,12 +18274,12 @@ const V1 = ["aria-busy"], D1 = {
|
|
|
18269
18274
|
clearAllFilters: Ce,
|
|
18270
18275
|
hasActiveFilters: De,
|
|
18271
18276
|
activeFilterCount: qe
|
|
18272
|
-
}), Me(
|
|
18273
|
-
const
|
|
18277
|
+
}), Me(Ro, fe.hasFlexColumns), Me(Io, Gl);
|
|
18278
|
+
const sn = (ae) => {
|
|
18274
18279
|
r("pagination-click", ae);
|
|
18275
18280
|
}, Ft = O(l.searchValue ?? "");
|
|
18276
18281
|
let zt = null;
|
|
18277
|
-
const
|
|
18282
|
+
const Go = (ae) => {
|
|
18278
18283
|
Ft.value = ae, r("update:searchValue", ae), zt && clearTimeout(zt), zt = setTimeout(() => {
|
|
18279
18284
|
r("search", ae);
|
|
18280
18285
|
}, l.searchDebounce ?? 300);
|
|
@@ -18285,13 +18290,13 @@ const V1 = ["aria-busy"], D1 = {
|
|
|
18285
18290
|
ae !== void 0 && ae !== Ft.value && (Ft.value = ae);
|
|
18286
18291
|
}
|
|
18287
18292
|
);
|
|
18288
|
-
const
|
|
18293
|
+
const Wo = (ae) => {
|
|
18289
18294
|
if (!l.infiniteScroll || l.loading) return;
|
|
18290
18295
|
const oe = ae.target, ze = l.infiniteScrollDistance ?? 100;
|
|
18291
18296
|
oe.scrollHeight - oe.scrollTop - oe.clientHeight < ze && r("load-more");
|
|
18292
|
-
}, ta = S(() => l.addRow?.enabled === !0),
|
|
18293
|
-
},
|
|
18294
|
-
}, cl = O(!1), vl = O({}),
|
|
18297
|
+
}, ta = S(() => l.addRow?.enabled === !0), rn = S(() => l.addRow?.position ?? "footer"), la = S(() => l.addRow?.label ?? "Add row"), aa = S(() => l.addRow?.icon ?? "lucide-plus"), qo = (ae) => {
|
|
18298
|
+
}, Ko = () => {
|
|
18299
|
+
}, cl = O(!1), vl = O({}), un = O(null), Yo = S(() => un.value?.$el ?? null), Ut = O(!1), dn = O(null), jo = S(() => dn.value?.columnSwitcherEl ?? null), Xo = S(() => {
|
|
18295
18300
|
let ae = 0;
|
|
18296
18301
|
for (const oe of Object.values(vl.value))
|
|
18297
18302
|
if (!(oe == null || oe === "") && !(Array.isArray(oe) && oe.length === 0)) {
|
|
@@ -18303,11 +18308,11 @@ const V1 = ["aria-busy"], D1 = {
|
|
|
18303
18308
|
ae++;
|
|
18304
18309
|
}
|
|
18305
18310
|
return ae;
|
|
18306
|
-
}),
|
|
18311
|
+
}), Qo = (ae) => {
|
|
18307
18312
|
Rt.value = ae, At();
|
|
18308
|
-
},
|
|
18313
|
+
}, Jo = () => {
|
|
18309
18314
|
Rt.value = null, vl.value = {}, At();
|
|
18310
|
-
},
|
|
18315
|
+
}, Zo = (ae, oe) => ({
|
|
18311
18316
|
item: ae,
|
|
18312
18317
|
index: oe,
|
|
18313
18318
|
columns: ul.value,
|
|
@@ -18322,8 +18327,8 @@ const V1 = ["aria-busy"], D1 = {
|
|
|
18322
18327
|
showDragHandle: Zl.value,
|
|
18323
18328
|
isDragging: il.value === oe,
|
|
18324
18329
|
// Expansion
|
|
18325
|
-
expandable:
|
|
18326
|
-
isExpanded:
|
|
18330
|
+
expandable: Za.value,
|
|
18331
|
+
isExpanded: an(ae),
|
|
18327
18332
|
expandedIcon: l.expandedRowIcon,
|
|
18328
18333
|
collapsedIcon: l.collapsedRowIcon,
|
|
18329
18334
|
// Editing
|
|
@@ -18340,11 +18345,11 @@ const V1 = ["aria-busy"], D1 = {
|
|
|
18340
18345
|
getCellStyle: fe.getCellStyle,
|
|
18341
18346
|
// Custom class
|
|
18342
18347
|
rowClass: [{ "vc-data-table__row--dragging": il.value === oe }, l.rowClass?.(ae)]
|
|
18343
|
-
}), { width: fl } = $i(ue),
|
|
18348
|
+
}), { width: fl } = $i(ue), ei = S(() => {
|
|
18344
18349
|
if (!l.pagination || fl.value === 0) return 5;
|
|
18345
|
-
const ae = fl.value -
|
|
18350
|
+
const ae = fl.value - Bn, oe = Math.floor((ae - 2 * fa) / fa);
|
|
18346
18351
|
return oe >= 7 ? 5 : oe >= 3 ? oe : 0;
|
|
18347
|
-
}),
|
|
18352
|
+
}), ti = S(() => !l.pagination || fl.value === 0 ? !0 : fl.value - Bn >= 5 * fa);
|
|
18348
18353
|
return a({
|
|
18349
18354
|
// Selection API
|
|
18350
18355
|
selectAll: Q.selectAll,
|
|
@@ -18385,14 +18390,14 @@ const V1 = ["aria-busy"], D1 = {
|
|
|
18385
18390
|
searchable: e.searchable,
|
|
18386
18391
|
"model-value": Ft.value,
|
|
18387
18392
|
placeholder: e.searchPlaceholder,
|
|
18388
|
-
"onUpdate:modelValue":
|
|
18393
|
+
"onUpdate:modelValue": Go
|
|
18389
18394
|
}, {
|
|
18390
18395
|
actions: A(() => [
|
|
18391
|
-
e.globalFilters?.length ? (o(), B(n(
|
|
18396
|
+
e.globalFilters?.length ? (o(), B(n(Mo), {
|
|
18392
18397
|
key: 0,
|
|
18393
18398
|
ref_key: "globalFiltersButtonRef",
|
|
18394
|
-
ref:
|
|
18395
|
-
"active-count":
|
|
18399
|
+
ref: un,
|
|
18400
|
+
"active-count": Xo.value,
|
|
18396
18401
|
onClick: oe[0] || (oe[0] = (pe) => cl.value = !cl.value)
|
|
18397
18402
|
}, null, 8, ["active-count"])) : R("", !0),
|
|
18398
18403
|
V(ae.$slots, "search-header-actions")
|
|
@@ -18404,22 +18409,22 @@ const V1 = ["aria-busy"], D1 = {
|
|
|
18404
18409
|
filters: e.globalFilters,
|
|
18405
18410
|
"model-value": vl.value,
|
|
18406
18411
|
show: cl.value,
|
|
18407
|
-
"anchor-ref":
|
|
18412
|
+
"anchor-ref": Yo.value,
|
|
18408
18413
|
"onUpdate:modelValue": oe[1] || (oe[1] = (pe) => vl.value = pe),
|
|
18409
18414
|
"onUpdate:show": oe[2] || (oe[2] = (pe) => cl.value = pe),
|
|
18410
|
-
onApply:
|
|
18411
|
-
onClear:
|
|
18415
|
+
onApply: Qo,
|
|
18416
|
+
onClear: Jo
|
|
18412
18417
|
}, null, 8, ["filters", "model-value", "show", "anchor-ref"])) : R("", !0),
|
|
18413
18418
|
e.columnSwitcher ? (o(), B(n(Yy), {
|
|
18414
18419
|
key: 3,
|
|
18415
|
-
columns: n(
|
|
18416
|
-
"visible-columns": n(
|
|
18420
|
+
columns: n(tn),
|
|
18421
|
+
"visible-columns": n(ln),
|
|
18417
18422
|
show: Ut.value,
|
|
18418
|
-
"anchor-ref":
|
|
18423
|
+
"anchor-ref": jo.value,
|
|
18419
18424
|
"onUpdate:visibleColumns": n($e),
|
|
18420
18425
|
"onUpdate:show": oe[3] || (oe[3] = (pe) => Ut.value = pe)
|
|
18421
18426
|
}, null, 8, ["columns", "visible-columns", "show", "anchor-ref", "onUpdate:visibleColumns"])) : R("", !0),
|
|
18422
|
-
ta.value &&
|
|
18427
|
+
ta.value && rn.value === "header" ? (o(), B(n(ua), {
|
|
18423
18428
|
key: 4,
|
|
18424
18429
|
label: la.value,
|
|
18425
18430
|
icon: aa.value,
|
|
@@ -18464,14 +18469,14 @@ const V1 = ["aria-busy"], D1 = {
|
|
|
18464
18469
|
"pull-to-refresh-text": e.pullToRefreshText,
|
|
18465
18470
|
"is-inline-editing": n(dl),
|
|
18466
18471
|
"new-row-indices": n(Z).newRowIndices.value,
|
|
18467
|
-
onClick: n(
|
|
18468
|
-
onSelect: n(
|
|
18469
|
-
onAction: n(
|
|
18472
|
+
onClick: n(zo),
|
|
18473
|
+
onSelect: n(Uo),
|
|
18474
|
+
onAction: n(Ho),
|
|
18470
18475
|
onRefresh: oe[16] || (oe[16] = (pe) => r("pull-refresh")),
|
|
18471
18476
|
onCellValueChange: oe[17] || (oe[17] = (pe, Ae, Xe) => n(tt)(pe, Ae, Xe))
|
|
18472
18477
|
}, {
|
|
18473
18478
|
empty: A(() => [
|
|
18474
|
-
v.value && ae.$slots["not-found"] ? V(ae.$slots, "not-found", { key: 0 }) : ae.$slots.empty ? V(ae.$slots, "empty", { key: 1 }) : (o(), B(n(
|
|
18479
|
+
v.value && ae.$slots["not-found"] ? V(ae.$slots, "not-found", { key: 0 }) : ae.$slots.empty ? V(ae.$slots, "empty", { key: 1 }) : (o(), B(n(xo), {
|
|
18475
18480
|
key: 2,
|
|
18476
18481
|
icon: g.value,
|
|
18477
18482
|
title: f.value,
|
|
@@ -18495,11 +18500,11 @@ const V1 = ["aria-busy"], D1 = {
|
|
|
18495
18500
|
class: "vc-data-table__content",
|
|
18496
18501
|
style: he(e.scrollHeight ? { height: e.scrollHeight } : void 0)
|
|
18497
18502
|
}, [
|
|
18498
|
-
x(n(yy), { variant: n(
|
|
18503
|
+
x(n(yy), { variant: n(en) }, {
|
|
18499
18504
|
default: A(() => [
|
|
18500
18505
|
x(n(B0), {
|
|
18501
18506
|
ref_key: "dataTableHeaderRef",
|
|
18502
|
-
ref:
|
|
18507
|
+
ref: dn,
|
|
18503
18508
|
columns: n(ul),
|
|
18504
18509
|
"show-drag-handle": n(Zl),
|
|
18505
18510
|
"show-selection-cell": n(sl) && !n(rl),
|
|
@@ -18527,7 +18532,7 @@ const V1 = ["aria-busy"], D1 = {
|
|
|
18527
18532
|
"column-switcher-active": Ut.value,
|
|
18528
18533
|
"actions-position": e.rowActionsPosition,
|
|
18529
18534
|
onSelectAll: n(ea),
|
|
18530
|
-
onSort: n(
|
|
18535
|
+
onSort: n(nn),
|
|
18531
18536
|
onResizeStart: n(Hl),
|
|
18532
18537
|
onReorderStart: n(ol),
|
|
18533
18538
|
onReorderOver: n(Wl),
|
|
@@ -18555,20 +18560,20 @@ const V1 = ["aria-busy"], D1 = {
|
|
|
18555
18560
|
"expandable-row-groups": e.expandableRowGroups,
|
|
18556
18561
|
"is-group-expanded": n(be).isGroupExpanded,
|
|
18557
18562
|
"get-item-group-key": n(be).getItemGroupKey,
|
|
18558
|
-
"get-global-index": n(
|
|
18563
|
+
"get-global-index": n(Ja),
|
|
18559
18564
|
"get-item-key": ve,
|
|
18560
18565
|
"new-row-indices": n(Z).newRowIndices.value,
|
|
18561
|
-
"get-row-props":
|
|
18562
|
-
onScroll:
|
|
18566
|
+
"get-row-props": Zo,
|
|
18567
|
+
onScroll: Wo,
|
|
18563
18568
|
onGroupToggle: oe[7] || (oe[7] = (pe, Ae) => n(be).toggleGroupExpansion(pe, Ae)),
|
|
18564
18569
|
onRowClick: n(H),
|
|
18565
|
-
onRowMouseenter:
|
|
18566
|
-
onRowMouseleave:
|
|
18567
|
-
onSelectionChange: n(
|
|
18570
|
+
onRowMouseenter: qo,
|
|
18571
|
+
onRowMouseleave: Ko,
|
|
18572
|
+
onSelectionChange: n(on),
|
|
18568
18573
|
onExpandToggle: oe[8] || (oe[8] = (pe, Ae, Xe) => n(Ke)(pe, Ae, Xe)),
|
|
18569
|
-
onRowEdit: n(
|
|
18570
|
-
onRowSave: n(
|
|
18571
|
-
onRowCancel: n(
|
|
18574
|
+
onRowEdit: n(Do),
|
|
18575
|
+
onRowSave: n(No),
|
|
18576
|
+
onRowCancel: n(Po),
|
|
18572
18577
|
onEditComplete: n(at),
|
|
18573
18578
|
onEditCancel: n(je),
|
|
18574
18579
|
onCellValueChange: n(tt),
|
|
@@ -18600,7 +18605,7 @@ const V1 = ["aria-busy"], D1 = {
|
|
|
18600
18605
|
mode: e.rowActionsMode,
|
|
18601
18606
|
position: e.rowActionsPosition,
|
|
18602
18607
|
"max-quick-actions": e.maxQuickActions,
|
|
18603
|
-
onAction: (Xe) => n(
|
|
18608
|
+
onAction: (Xe) => n(Fo)(Xe, pe, Ae)
|
|
18604
18609
|
}, null, 8, ["actions", "row-index", "mode", "position", "max-quick-actions", "onAction"])) : R("", !0)
|
|
18605
18610
|
]),
|
|
18606
18611
|
expansion: A(({ data: pe, index: Ae }) => [
|
|
@@ -18652,7 +18657,7 @@ const V1 = ["aria-busy"], D1 = {
|
|
|
18652
18657
|
]),
|
|
18653
18658
|
_: 3
|
|
18654
18659
|
})) : R("", !0),
|
|
18655
|
-
ta.value &&
|
|
18660
|
+
ta.value && rn.value === "footer" ? (o(), B(n(ua), {
|
|
18656
18661
|
key: 1,
|
|
18657
18662
|
label: la.value,
|
|
18658
18663
|
icon: aa.value,
|
|
@@ -18672,15 +18677,15 @@ const V1 = ["aria-busy"], D1 = {
|
|
|
18672
18677
|
V(ae.$slots, "pagination", {
|
|
18673
18678
|
pages: l.pagination.pages,
|
|
18674
18679
|
currentPage: l.pagination.currentPage,
|
|
18675
|
-
onPageClick:
|
|
18680
|
+
onPageClick: sn
|
|
18676
18681
|
}, () => [
|
|
18677
18682
|
x(n(Kc), {
|
|
18678
18683
|
pages: l.pagination.pages,
|
|
18679
18684
|
"current-page": l.pagination.currentPage,
|
|
18680
18685
|
variant: l.pagination.variant,
|
|
18681
|
-
"max-pages":
|
|
18682
|
-
"show-first-last":
|
|
18683
|
-
onItemClick:
|
|
18686
|
+
"max-pages": ei.value,
|
|
18687
|
+
"show-first-last": ti.value,
|
|
18688
|
+
onItemClick: sn
|
|
18684
18689
|
}, null, 8, ["pages", "current-page", "variant", "max-pages", "show-first-last"])
|
|
18685
18690
|
])
|
|
18686
18691
|
], 512)) : R("", !0),
|
|
@@ -18933,7 +18938,7 @@ const V1 = ["aria-busy"], D1 = {
|
|
|
18933
18938
|
j.$slots.filters || j.$slots.header ? {
|
|
18934
18939
|
name: "search-header-actions",
|
|
18935
18940
|
fn: A(() => [
|
|
18936
|
-
j.$slots.filters ? (o(), B(n(
|
|
18941
|
+
j.$slots.filters ? (o(), B(n(Mo), {
|
|
18937
18942
|
key: 0,
|
|
18938
18943
|
ref_key: "legacyFiltersButtonRef",
|
|
18939
18944
|
ref: u,
|
|
@@ -19004,8 +19009,8 @@ export {
|
|
|
19004
19009
|
Jp as A,
|
|
19005
19010
|
cC as B,
|
|
19006
19011
|
B1 as C,
|
|
19007
|
-
|
|
19008
|
-
|
|
19012
|
+
kn as D,
|
|
19013
|
+
Rn as E,
|
|
19009
19014
|
vC as F,
|
|
19010
19015
|
Wp as G,
|
|
19011
19016
|
Ca as H,
|
|
@@ -19013,7 +19018,7 @@ export {
|
|
|
19013
19018
|
Cg as J,
|
|
19014
19019
|
Zm as K,
|
|
19015
19020
|
Qm as L,
|
|
19016
|
-
|
|
19021
|
+
ao as M,
|
|
19017
19022
|
fC as N,
|
|
19018
19023
|
$r as O,
|
|
19019
19024
|
zS as P,
|
|
@@ -19021,10 +19026,10 @@ export {
|
|
|
19021
19026
|
xS as R,
|
|
19022
19027
|
MS as S,
|
|
19023
19028
|
Fy as T,
|
|
19024
|
-
|
|
19029
|
+
Na as U,
|
|
19025
19030
|
US as V,
|
|
19026
19031
|
XS as W,
|
|
19027
|
-
|
|
19032
|
+
pn as X,
|
|
19028
19033
|
xd as Y,
|
|
19029
19034
|
Kw as Z,
|
|
19030
19035
|
da as _,
|
|
@@ -19046,46 +19051,46 @@ export {
|
|
|
19046
19051
|
wf as aD,
|
|
19047
19052
|
CC as aE,
|
|
19048
19053
|
dv as aF,
|
|
19049
|
-
|
|
19054
|
+
Va as aG,
|
|
19050
19055
|
FS as aH,
|
|
19051
19056
|
$l as aI,
|
|
19052
19057
|
tp as aJ,
|
|
19053
|
-
|
|
19058
|
+
fo as aK,
|
|
19054
19059
|
jp as aL,
|
|
19055
|
-
|
|
19060
|
+
ho as aM,
|
|
19056
19061
|
Vl as aN,
|
|
19057
19062
|
dC as aO,
|
|
19058
19063
|
Ll as aP,
|
|
19059
|
-
|
|
19064
|
+
Oo as aQ,
|
|
19060
19065
|
VS as aR,
|
|
19061
19066
|
E1 as aS,
|
|
19062
19067
|
it as aT,
|
|
19063
|
-
|
|
19068
|
+
Eo as aU,
|
|
19064
19069
|
Uf as aV,
|
|
19065
19070
|
sC as aW,
|
|
19066
19071
|
Gr as aX,
|
|
19067
19072
|
Zg as aY,
|
|
19068
19073
|
ob as aZ,
|
|
19069
19074
|
lb as a_,
|
|
19070
|
-
|
|
19071
|
-
|
|
19075
|
+
jn as aa,
|
|
19076
|
+
lo as ab,
|
|
19072
19077
|
ry as ac,
|
|
19073
19078
|
Be as ad,
|
|
19074
19079
|
Vc as ae,
|
|
19075
19080
|
Lc as af,
|
|
19076
|
-
|
|
19081
|
+
eo as ag,
|
|
19077
19082
|
et as ah,
|
|
19078
|
-
|
|
19083
|
+
Qn as ai,
|
|
19079
19084
|
DS as aj,
|
|
19080
19085
|
Ff as ak,
|
|
19081
|
-
|
|
19086
|
+
Pa as al,
|
|
19082
19087
|
zf as am,
|
|
19083
|
-
|
|
19088
|
+
yn as an,
|
|
19084
19089
|
KS as ao,
|
|
19085
19090
|
Kc as ap,
|
|
19086
|
-
|
|
19091
|
+
qa as aq,
|
|
19087
19092
|
NS as ar,
|
|
19088
|
-
|
|
19093
|
+
Da as as,
|
|
19089
19094
|
jS as at,
|
|
19090
19095
|
WS as au,
|
|
19091
19096
|
PS as av,
|
|
@@ -19093,7 +19098,7 @@ export {
|
|
|
19093
19098
|
Ot as ax,
|
|
19094
19099
|
Nt as ay,
|
|
19095
19100
|
Ge as az,
|
|
19096
|
-
|
|
19101
|
+
xn as b,
|
|
19097
19102
|
w1 as b0,
|
|
19098
19103
|
kC as b1,
|
|
19099
19104
|
$1 as b2,
|
|
@@ -19101,12 +19106,12 @@ export {
|
|
|
19101
19106
|
C1 as b4,
|
|
19102
19107
|
BS as b5,
|
|
19103
19108
|
LS as b6,
|
|
19104
|
-
|
|
19109
|
+
go as b7,
|
|
19105
19110
|
SC as b8,
|
|
19106
|
-
|
|
19111
|
+
Yn as b9,
|
|
19107
19112
|
xr as bA,
|
|
19108
|
-
|
|
19109
|
-
|
|
19113
|
+
wn as bB,
|
|
19114
|
+
mn as bC,
|
|
19110
19115
|
lC as bD,
|
|
19111
19116
|
ym as bE,
|
|
19112
19117
|
JS as bF,
|
|
@@ -19119,21 +19124,21 @@ export {
|
|
|
19119
19124
|
oC as bM,
|
|
19120
19125
|
pC as bN,
|
|
19121
19126
|
Rr as bO,
|
|
19122
|
-
|
|
19127
|
+
qn as bP,
|
|
19123
19128
|
Bl as bQ,
|
|
19124
19129
|
mm as bR,
|
|
19125
19130
|
em as bS,
|
|
19126
|
-
|
|
19127
|
-
|
|
19131
|
+
io as bT,
|
|
19132
|
+
So as bU,
|
|
19128
19133
|
$m as bV,
|
|
19129
|
-
|
|
19134
|
+
Fa as bW,
|
|
19130
19135
|
_m as bX,
|
|
19131
19136
|
eC as ba,
|
|
19132
19137
|
Pr as bb,
|
|
19133
19138
|
gm as bc,
|
|
19134
|
-
|
|
19139
|
+
so as bd,
|
|
19135
19140
|
gC as be,
|
|
19136
|
-
|
|
19141
|
+
vo as bf,
|
|
19137
19142
|
wm as bg,
|
|
19138
19143
|
Sm as bh,
|
|
19139
19144
|
rC as bi,
|
|
@@ -19142,19 +19147,19 @@ export {
|
|
|
19142
19147
|
_l as bl,
|
|
19143
19148
|
Hg as bm,
|
|
19144
19149
|
Jg as bn,
|
|
19145
|
-
|
|
19150
|
+
yo as bo,
|
|
19146
19151
|
Pp as bp,
|
|
19147
|
-
|
|
19152
|
+
mo as bq,
|
|
19148
19153
|
Dl as br,
|
|
19149
19154
|
Gg as bs,
|
|
19150
|
-
|
|
19155
|
+
po as bt,
|
|
19151
19156
|
tC as bu,
|
|
19152
19157
|
aC as bv,
|
|
19153
|
-
|
|
19158
|
+
Ba as bw,
|
|
19154
19159
|
Ar as bx,
|
|
19155
19160
|
Mr as by,
|
|
19156
19161
|
Ir as bz,
|
|
19157
|
-
|
|
19162
|
+
Qa as c,
|
|
19158
19163
|
p0 as d,
|
|
19159
19164
|
r0 as e,
|
|
19160
19165
|
v0 as f,
|
|
@@ -19168,11 +19173,11 @@ export {
|
|
|
19168
19173
|
Al as n,
|
|
19169
19174
|
jt as o,
|
|
19170
19175
|
Yy as p,
|
|
19171
|
-
|
|
19176
|
+
xo as q,
|
|
19172
19177
|
gw as r,
|
|
19173
|
-
|
|
19178
|
+
In as s,
|
|
19174
19179
|
Cy as t,
|
|
19175
|
-
|
|
19180
|
+
Xa as u,
|
|
19176
19181
|
Jy as v,
|
|
19177
19182
|
cw as w,
|
|
19178
19183
|
lw as x,
|