@vc-shell/framework 2.5.0-pr313.14efcac → 2.5.0-pr314.10d350d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-CZdY18Hq.js.map +1 -1
- package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-BmlVL_rn.js → VcScheduler.vue_vue_type_script_setup_true_lang-DkB0MNsG.js} +3439 -3469
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-DkB0MNsG.js.map +1 -0
- package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang-BTg4PjTB.js → VcScheduler.vue_vue_type_style_index_0_lang-CjBKWqcN.js} +85 -86
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-CjBKWqcN.js.map +1 -0
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-BCsJG_hk.js → dashboard-feed-row.vue_vue_type_script_setup_true_lang-BK6rNhCN.js} +1 -1
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-BCsJG_hk.js.map → dashboard-feed-row.vue_vue_type_script_setup_true_lang-BK6rNhCN.js.map} +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/useSidebarState/_internal.d.ts +37 -0
- package/dist/core/composables/useSidebarState/_internal.d.ts.map +1 -0
- package/dist/core/composables/useSidebarState/index.d.ts +4 -27
- package/dist/core/composables/useSidebarState/index.d.ts.map +1 -1
- package/dist/core/composables/useToolbar/index.d.ts +8 -0
- package/dist/core/composables/useToolbar/index.d.ts.map +1 -1
- package/dist/core/services/global-search-service/index.d.ts +3 -0
- package/dist/core/services/global-search-service/index.d.ts.map +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/framework.js +358 -358
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/keys.d.ts +0 -10
- package/dist/ui/components/organisms/vc-data-table/keys.d.ts.map +1 -1
- package/dist/ui/index.js +2 -2
- package/package.json +4 -4
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-BmlVL_rn.js.map +0 -1
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-BTg4PjTB.js.map +0 -1
- package/dist/core/composables/useMenuExpanded/index.d.ts +0 -9
- package/dist/core/composables/useMenuExpanded/index.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mergeProps as ae, computed as C, toValue as fe, inject as U, useId as Wt, ref as S, onBeforeUnmount as Qe, reactive as Ue, provide as mt, getCurrentScope as jt, onScopeDispose as Ht, getCurrentInstance as
|
|
1
|
+
import { mergeProps as ae, computed as C, toValue as fe, inject as U, useId as Wt, ref as S, onBeforeUnmount as Qe, reactive as Ue, provide as mt, getCurrentScope as jt, onScopeDispose as Ht, getCurrentInstance as ze, onErrorCaptured as Gt, nextTick as ye, defineComponent as G, watch as X, unref as i, openBlock as g, createElementBlock as h, normalizeClass as Z, createBlock as P, createCommentVNode as w, renderSlot as B, createElementVNode as L, toDisplayString as N, Fragment as ke, renderList as _e, normalizeStyle as De, resolveDynamicComponent as yt, withCtx as E, createVNode as T, withKeys as _, withModifiers as Y, watchEffect as He, shallowReactive as Ge, markRaw as Je, createSlots as me, createTextVNode as ee, Transition as Re, withDirectives as et, vModelText as Jt, useAttrs as bt, vModelDynamic as Yt, onMounted as tt, onUnmounted as ht, Teleport as Xt, normalizeProps as Ce, guardReactiveProps as Be } from "vue";
|
|
2
2
|
import { c as ce, ah as Zt, K as Qt, v as _t, r as en, o as tn, I as nn, q as an, p as on, B as It, b as ln, i as rn, _ as W, T as kt, a as sn, U as un, w as cn, u as dn } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-CZdY18Hq.js";
|
|
3
3
|
import { defineRule as Se } from "vee-validate";
|
|
4
4
|
import { a as ct } from "./vendor-vee-validate-rules-4oWUZPpG.js";
|
|
@@ -65,7 +65,7 @@ class Nl extends ie {
|
|
|
65
65
|
}), this.name = "RegistrationError";
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
class
|
|
68
|
+
class zl extends ie {
|
|
69
69
|
constructor(t, n, a) {
|
|
70
70
|
super(t, "BLADE_ERROR", {
|
|
71
71
|
bladeId: n,
|
|
@@ -73,7 +73,7 @@ class Fl extends ie {
|
|
|
73
73
|
}), this.name = "BladeError";
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
class
|
|
76
|
+
class Fl extends ie {
|
|
77
77
|
constructor(t, n, a) {
|
|
78
78
|
super(`Failed to load module '${t}': ${n}`, "MODULE_LOAD_ERROR", {
|
|
79
79
|
moduleId: t,
|
|
@@ -316,7 +316,7 @@ const Nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
316
316
|
notification: re,
|
|
317
317
|
setNotificationBackend: Dn
|
|
318
318
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
319
|
-
function
|
|
319
|
+
function zn(e, t, n = {}) {
|
|
320
320
|
const a = C(() => fe(n.placement) ?? "bottom"), l = C(() => fe(n.strategy) ?? "absolute"), r = C(() => {
|
|
321
321
|
const u = fe(n.middleware);
|
|
322
322
|
if (u?.length)
|
|
@@ -348,9 +348,9 @@ function Fn(e, t, n = {}) {
|
|
|
348
348
|
resolvedStrategy: l
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
|
-
const
|
|
352
|
-
function
|
|
353
|
-
const t = U(
|
|
351
|
+
const Fn = Symbol("vc-input-group-context");
|
|
352
|
+
function Fe(e) {
|
|
353
|
+
const t = U(Fn, null), n = Wt(), a = C(() => `vc-field-${n}`), l = C(() => `${a.value}-label`), r = C(() => `${a.value}-error`), o = C(() => `${a.value}-hint`), s = C(() => !!e.error || !!e.errorMessage || !!t?.invalid.value), u = C(() => !!e.disabled || !!t?.disabled.value), f = C(() => t?.name.value || e.name), m = C(() => e.required ? !0 : void 0), v = C(() => {
|
|
354
354
|
const d = /* @__PURE__ */ new Set();
|
|
355
355
|
return t?.describedBy.value && t.describedBy.value.split(/\s+/).forEach((c) => d.add(c)), e.errorMessage && d.add(r.value), e.hint && d.add(o.value), d.size ? Array.from(d).join(" ") : void 0;
|
|
356
356
|
});
|
|
@@ -745,7 +745,7 @@ const ea = ce("use-menu-service"), Lt = Pe({
|
|
|
745
745
|
create: _n,
|
|
746
746
|
bus: se,
|
|
747
747
|
name: "MenuService",
|
|
748
|
-
onMissing: () => ea.error("Menu service not found in current context. Injection chain:",
|
|
748
|
+
onMissing: () => ea.error("Menu service not found in current context. Injection chain:", ze())
|
|
749
749
|
});
|
|
750
750
|
function Jl() {
|
|
751
751
|
return Lt.provide();
|
|
@@ -792,7 +792,7 @@ function oa() {
|
|
|
792
792
|
}
|
|
793
793
|
const la = ce("use-error-handler");
|
|
794
794
|
function ia(e) {
|
|
795
|
-
const t = S(null), n =
|
|
795
|
+
const t = S(null), n = ze(), { appInsights: a } = oa(), { user: l } = at(), r = S(!1);
|
|
796
796
|
function o() {
|
|
797
797
|
t.value = null, n && n.emit("reset");
|
|
798
798
|
}
|
|
@@ -997,7 +997,7 @@ function ei(e = {}) {
|
|
|
997
997
|
}, m = (c) => a.getToolbarItems(o(c)), v = (c) => {
|
|
998
998
|
a.clearBladeToolbarItems(o(c));
|
|
999
999
|
};
|
|
1000
|
-
return
|
|
1000
|
+
return ze() && t && Qe(() => {
|
|
1001
1001
|
v();
|
|
1002
1002
|
}), {
|
|
1003
1003
|
registerToolbarItem: s,
|
|
@@ -1476,7 +1476,7 @@ function gi() {
|
|
|
1476
1476
|
const Da = {
|
|
1477
1477
|
key: 0,
|
|
1478
1478
|
class: "vc-date-picker vc-date-picker--skeleton"
|
|
1479
|
-
}, Na = { class: "vc-date-picker__field-container" },
|
|
1479
|
+
}, Na = { class: "vc-date-picker__field-container" }, za = { class: "vc-date-picker__field" }, Fa = ["aria-label"], Pa = {
|
|
1480
1480
|
key: 0,
|
|
1481
1481
|
class: "vc-date-picker__loading"
|
|
1482
1482
|
}, qa = { key: 0 }, Ka = { key: 1 }, Ua = /* @__PURE__ */ G({
|
|
@@ -1503,7 +1503,7 @@ const Da = {
|
|
|
1503
1503
|
},
|
|
1504
1504
|
emits: ["update:modelValue", "blur", "focus"],
|
|
1505
1505
|
setup(e, { emit: t }) {
|
|
1506
|
-
const n = e, a = t, l = he(), { isMobile: r, isDesktop: o } = ta(), { labelId: s, errorId: u, hintId: f, invalid: m, resolvedDisabled: v, ariaRequired: d, ariaDescribedBy: c } =
|
|
1506
|
+
const n = e, a = t, l = he(), { isMobile: r, isDesktop: o } = ta(), { labelId: s, errorId: u, hintId: f, invalid: m, resolvedDisabled: v, ariaRequired: d, ariaDescribedBy: c } = Fe(n), y = S(!1), b = window.navigator.language, O = S(n.modelValue), p = S(null), k = C(() => n.type === "date" && "9999-12-31" || void 0), V = (() => {
|
|
1507
1507
|
const I = new Intl.DateTimeFormat(b, { hour: "numeric" }).format();
|
|
1508
1508
|
return Number.isInteger(Number(I));
|
|
1509
1509
|
})(), j = C(() => {
|
|
@@ -1553,7 +1553,7 @@ const Da = {
|
|
|
1553
1553
|
function A(I) {
|
|
1554
1554
|
p.value = I;
|
|
1555
1555
|
}
|
|
1556
|
-
function
|
|
1556
|
+
function z() {
|
|
1557
1557
|
p.value = null;
|
|
1558
1558
|
}
|
|
1559
1559
|
function K(I) {
|
|
@@ -1613,7 +1613,7 @@ const Da = {
|
|
|
1613
1613
|
}])
|
|
1614
1614
|
}, [
|
|
1615
1615
|
L("div", Na, [
|
|
1616
|
-
L("div",
|
|
1616
|
+
L("div", za, [
|
|
1617
1617
|
T(i(Cn), ae({
|
|
1618
1618
|
modelValue: O.value,
|
|
1619
1619
|
"onUpdate:modelValue": R[0] || (R[0] = (q) => O.value = q),
|
|
@@ -1643,7 +1643,7 @@ const Da = {
|
|
|
1643
1643
|
onFocus: H,
|
|
1644
1644
|
onClosed: K,
|
|
1645
1645
|
onRangeStart: A,
|
|
1646
|
-
onRangeEnd:
|
|
1646
|
+
onRangeEnd: z,
|
|
1647
1647
|
onTooltipOpen: H,
|
|
1648
1648
|
onTooltipClose: K
|
|
1649
1649
|
}), null, 16, ["modelValue", "placeholder", "disabled", "name", "autofocus", "max-date", "enable-time-picker", "locale", "teleport-center", "is24", "teleport", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby"]),
|
|
@@ -1658,7 +1658,7 @@ const Da = {
|
|
|
1658
1658
|
size: "xs",
|
|
1659
1659
|
icon: "lucide-x"
|
|
1660
1660
|
})
|
|
1661
|
-
], 8,
|
|
1661
|
+
], 8, Fa)) : w("", !0)
|
|
1662
1662
|
]),
|
|
1663
1663
|
e.loading ? (g(), h("div", Pa, [
|
|
1664
1664
|
T(i(W), {
|
|
@@ -1739,7 +1739,7 @@ const Da = {
|
|
|
1739
1739
|
resolvedDisabled: v,
|
|
1740
1740
|
ariaRequired: d,
|
|
1741
1741
|
ariaDescribedBy: c
|
|
1742
|
-
} =
|
|
1742
|
+
} = Fe(l), y = S(!1), b = S(!1), O = S(), p = S(), k = S(l.modelValue ?? ""), V = S("");
|
|
1743
1743
|
function j(I) {
|
|
1744
1744
|
if (!I || typeof I != "string") {
|
|
1745
1745
|
V.value = "";
|
|
@@ -1782,7 +1782,7 @@ const Da = {
|
|
|
1782
1782
|
function A() {
|
|
1783
1783
|
k.value = "", V.value = "", r("update:modelValue", null);
|
|
1784
1784
|
}
|
|
1785
|
-
function
|
|
1785
|
+
function z(I) {
|
|
1786
1786
|
y.value = !1, r("blur", I);
|
|
1787
1787
|
}
|
|
1788
1788
|
function K() {
|
|
@@ -1860,7 +1860,7 @@ const Da = {
|
|
|
1860
1860
|
"aria-labelledby": e.label ? i(s) : void 0,
|
|
1861
1861
|
class: "vc-color-input__input",
|
|
1862
1862
|
tabindex: "0",
|
|
1863
|
-
onBlur:
|
|
1863
|
+
onBlur: z,
|
|
1864
1864
|
onFocus: K,
|
|
1865
1865
|
onInput: ne
|
|
1866
1866
|
}, null, 40, Ga), [
|
|
@@ -1993,8 +1993,8 @@ const Da = {
|
|
|
1993
1993
|
emits: ["update:modelValue", "blur", "focus"],
|
|
1994
1994
|
setup(e, { emit: t }) {
|
|
1995
1995
|
const n = e, a = bt(), l = C(() => {
|
|
1996
|
-
const { class: $, ...
|
|
1997
|
-
return
|
|
1996
|
+
const { class: $, ...F } = a;
|
|
1997
|
+
return F;
|
|
1998
1998
|
}), r = t, o = he(), {
|
|
1999
1999
|
fieldId: s,
|
|
2000
2000
|
labelId: u,
|
|
@@ -2005,7 +2005,7 @@ const Da = {
|
|
|
2005
2005
|
resolvedName: c,
|
|
2006
2006
|
ariaRequired: y,
|
|
2007
2007
|
ariaDescribedBy: b
|
|
2008
|
-
} =
|
|
2008
|
+
} = Fe(n);
|
|
2009
2009
|
let O, p;
|
|
2010
2010
|
const k = S(), V = S(), j = S(i(n.type)), ne = S(!1), Q = S(), D = C({
|
|
2011
2011
|
get() {
|
|
@@ -2014,7 +2014,7 @@ const Da = {
|
|
|
2014
2014
|
set($) {
|
|
2015
2015
|
j.value = $;
|
|
2016
2016
|
}
|
|
2017
|
-
}), A = C(() => i(n.modelValue)),
|
|
2017
|
+
}), A = C(() => i(n.modelValue)), z = C({
|
|
2018
2018
|
get() {
|
|
2019
2019
|
return (n.type === "integer" || n.type === "number") && isNaN(k.value) ? "" : k.value;
|
|
2020
2020
|
},
|
|
@@ -2030,8 +2030,8 @@ const Da = {
|
|
|
2030
2030
|
{ immediate: !0 }
|
|
2031
2031
|
);
|
|
2032
2032
|
function K($) {
|
|
2033
|
-
const
|
|
2034
|
-
if ((n.type === "number" || n.type === "integer") && (M === "-" || M === "e" || M === "+") && $.preventDefault(), n.type === "integer" && !/^\d$/.test(M) && !
|
|
2033
|
+
const F = ["Backspace", "Delete", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], M = $.key;
|
|
2034
|
+
if ((n.type === "number" || n.type === "integer") && (M === "-" || M === "e" || M === "+") && $.preventDefault(), n.type === "integer" && !/^\d$/.test(M) && !F.includes(M)) {
|
|
2035
2035
|
$.preventDefault();
|
|
2036
2036
|
return;
|
|
2037
2037
|
}
|
|
@@ -2042,8 +2042,8 @@ const Da = {
|
|
|
2042
2042
|
function I($) {
|
|
2043
2043
|
p = () => {
|
|
2044
2044
|
if (Q.value !== $) {
|
|
2045
|
-
let
|
|
2046
|
-
n.type === "number" && $ !== null && $ !== void 0 ?
|
|
2045
|
+
let F;
|
|
2046
|
+
n.type === "number" && $ !== null && $ !== void 0 ? F = $ !== "" ? parseFloat($) : null : n.type === "integer" && $ !== null && $ !== void 0 ? F = $ !== "" ? Math.trunc(parseInt($)) : null : F = $, r("update:modelValue", F);
|
|
2047
2047
|
}
|
|
2048
2048
|
p = void 0;
|
|
2049
2049
|
}, n.debounce !== void 0 ? (clearTimeout(O), O = setTimeout(p, +n.debounce)) : p();
|
|
@@ -2060,7 +2060,7 @@ const Da = {
|
|
|
2060
2060
|
function Me() {
|
|
2061
2061
|
ne.value = !0, r("focus");
|
|
2062
2062
|
}
|
|
2063
|
-
return ($,
|
|
2063
|
+
return ($, F) => i(o) ? (g(), h("div", ae({ key: 0 }, l.value, {
|
|
2064
2064
|
class: ["vc-input vc-input--skeleton", $.$attrs.class]
|
|
2065
2065
|
}), [
|
|
2066
2066
|
e.label ? (g(), P(i(oe), {
|
|
@@ -2093,9 +2093,9 @@ const Da = {
|
|
|
2093
2093
|
multilanguage: e.multilanguage,
|
|
2094
2094
|
"current-language": e.currentLanguage,
|
|
2095
2095
|
name: e.name,
|
|
2096
|
-
"onUpdate:modelValue":
|
|
2097
|
-
onBlur:
|
|
2098
|
-
onFocus:
|
|
2096
|
+
"onUpdate:modelValue": F[0] || (F[0] = (M) => r("update:modelValue", M ?? null)),
|
|
2097
|
+
onBlur: F[1] || (F[1] = (M) => r("blur", M)),
|
|
2098
|
+
onFocus: F[2] || (F[2] = (M) => r("focus"))
|
|
2099
2099
|
}), null, 16, ["model-value", "type", "date-picker-options", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name"])) : e.type === "color" ? (g(), P(i(to), ae({ key: 2 }, i(a), {
|
|
2100
2100
|
"model-value": e.modelValue ?? null,
|
|
2101
2101
|
label: e.label,
|
|
@@ -2113,9 +2113,9 @@ const Da = {
|
|
|
2113
2113
|
multilanguage: e.multilanguage,
|
|
2114
2114
|
"current-language": e.currentLanguage,
|
|
2115
2115
|
name: e.name,
|
|
2116
|
-
"onUpdate:modelValue":
|
|
2117
|
-
onBlur:
|
|
2118
|
-
onFocus:
|
|
2116
|
+
"onUpdate:modelValue": F[3] || (F[3] = (M) => r("update:modelValue", M)),
|
|
2117
|
+
onBlur: F[4] || (F[4] = (M) => r("blur", M)),
|
|
2118
|
+
onFocus: F[5] || (F[5] = (M) => r("focus"))
|
|
2119
2119
|
}), null, 16, ["model-value", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name"])) : (g(), h("div", ae({ key: 3 }, l.value, {
|
|
2120
2120
|
class: ["vc-input", [
|
|
2121
2121
|
$.$attrs.class,
|
|
@@ -2170,7 +2170,7 @@ const Da = {
|
|
|
2170
2170
|
B($.$slots, "control", {
|
|
2171
2171
|
editable: i(d),
|
|
2172
2172
|
focused: e.autofocus,
|
|
2173
|
-
modelValue:
|
|
2173
|
+
modelValue: z.value,
|
|
2174
2174
|
emitValue: I,
|
|
2175
2175
|
placeholder: e.placeholder
|
|
2176
2176
|
}, () => [
|
|
@@ -2178,7 +2178,7 @@ const Da = {
|
|
|
2178
2178
|
id: i(s),
|
|
2179
2179
|
ref_key: "inputRef",
|
|
2180
2180
|
ref: V,
|
|
2181
|
-
"onUpdate:modelValue":
|
|
2181
|
+
"onUpdate:modelValue": F[6] || (F[6] = (M) => z.value = M),
|
|
2182
2182
|
placeholder: e.placeholder,
|
|
2183
2183
|
type: D.value,
|
|
2184
2184
|
disabled: i(d),
|
|
@@ -2196,7 +2196,7 @@ const Da = {
|
|
|
2196
2196
|
onBlur: q,
|
|
2197
2197
|
onFocus: Me
|
|
2198
2198
|
}, null, 40, so), [
|
|
2199
|
-
[Yt,
|
|
2199
|
+
[Yt, z.value]
|
|
2200
2200
|
])
|
|
2201
2201
|
]),
|
|
2202
2202
|
e.suffix ? (g(), h("div", uo, N(e.suffix), 1)) : w("", !0),
|
|
@@ -2217,7 +2217,7 @@ const Da = {
|
|
|
2217
2217
|
type: "button",
|
|
2218
2218
|
class: "vc-input__showhide",
|
|
2219
2219
|
"aria-label": j.value === "password" ? $.$t("COMPONENTS.CONTROLS.SHOW_PASSWORD") : $.$t("COMPONENTS.CONTROLS.HIDE_PASSWORD"),
|
|
2220
|
-
onClick:
|
|
2220
|
+
onClick: F[7] || (F[7] = (M) => j.value = j.value === "password" ? "text" : "password")
|
|
2221
2221
|
}, [
|
|
2222
2222
|
T(i(W), {
|
|
2223
2223
|
size: "s",
|
|
@@ -2490,7 +2490,7 @@ function So(e) {
|
|
|
2490
2490
|
}
|
|
2491
2491
|
};
|
|
2492
2492
|
}
|
|
2493
|
-
const o =
|
|
2493
|
+
const o = zn(a, l, {
|
|
2494
2494
|
placement: C(() => e.placement),
|
|
2495
2495
|
middleware: C(() => [
|
|
2496
2496
|
$t({ fallbackPlacements: ["top", "bottom"] }),
|
|
@@ -2528,8 +2528,8 @@ function wo(e) {
|
|
|
2528
2528
|
const d = C(() => n.value ?? t.value), c = C(() => t.value.length < a.value);
|
|
2529
2529
|
function y(D) {
|
|
2530
2530
|
for (const A of D) {
|
|
2531
|
-
const
|
|
2532
|
-
f.set(
|
|
2531
|
+
const z = String(e.getOptionValue.value(A));
|
|
2532
|
+
f.set(z, A);
|
|
2533
2533
|
}
|
|
2534
2534
|
}
|
|
2535
2535
|
async function b() {
|
|
@@ -2556,8 +2556,8 @@ function wo(e) {
|
|
|
2556
2556
|
if (!(typeof D != "function" || l.value))
|
|
2557
2557
|
try {
|
|
2558
2558
|
l.value = !0;
|
|
2559
|
-
const A = await D(o.value, t.value.length),
|
|
2560
|
-
(H) => !
|
|
2559
|
+
const A = await D(o.value, t.value.length), z = new Set(t.value.map((H) => String(e.getOptionValue.value(H)))), K = (A?.results ?? []).filter(
|
|
2560
|
+
(H) => !z.has(String(e.getOptionValue.value(H)))
|
|
2561
2561
|
);
|
|
2562
2562
|
t.value = [...t.value, ...K], a.value = A?.totalCount ?? a.value, y(K);
|
|
2563
2563
|
} catch (A) {
|
|
@@ -2572,50 +2572,50 @@ function wo(e) {
|
|
|
2572
2572
|
if (typeof A == "function")
|
|
2573
2573
|
try {
|
|
2574
2574
|
r.value = !0;
|
|
2575
|
-
const
|
|
2576
|
-
n.value =
|
|
2577
|
-
} catch (
|
|
2578
|
-
console.error("useSelectDataSource: error searching",
|
|
2575
|
+
const z = await A(D);
|
|
2576
|
+
n.value = z?.results ?? [], a.value = z?.totalCount ?? 0, y(n.value);
|
|
2577
|
+
} catch (z) {
|
|
2578
|
+
console.error("useSelectDataSource: error searching", z), n.value = [];
|
|
2579
2579
|
} finally {
|
|
2580
2580
|
r.value = !1;
|
|
2581
2581
|
}
|
|
2582
2582
|
else
|
|
2583
|
-
n.value = t.value.filter((
|
|
2584
|
-
const K = e.getOptionLabel.value(
|
|
2583
|
+
n.value = t.value.filter((z) => {
|
|
2584
|
+
const K = e.getOptionLabel.value(z);
|
|
2585
2585
|
return String(K).toLowerCase().includes(D.toLowerCase());
|
|
2586
2586
|
});
|
|
2587
2587
|
}
|
|
2588
2588
|
function V(D) {
|
|
2589
2589
|
if (!D?.target) return;
|
|
2590
|
-
const A = D.target.value,
|
|
2591
|
-
v && clearTimeout(v),
|
|
2590
|
+
const A = D.target.value, z = Number(e.debounce());
|
|
2591
|
+
v && clearTimeout(v), z > 0 ? v = setTimeout(() => {
|
|
2592
2592
|
e.emit.search(A), k(A);
|
|
2593
|
-
},
|
|
2593
|
+
}, z) : (e.emit.search(A), k(A));
|
|
2594
2594
|
}
|
|
2595
2595
|
function j() {
|
|
2596
2596
|
n.value = null, o.value = void 0, v && (clearTimeout(v), v = void 0), a.value = t.value.length;
|
|
2597
2597
|
}
|
|
2598
2598
|
async function ne(D) {
|
|
2599
2599
|
if (D.length === 0) return [];
|
|
2600
|
-
const
|
|
2600
|
+
const z = D.filter((I) => !f.has(String(I))).filter((I) => {
|
|
2601
2601
|
const R = t.value.find((q) => Le(e.getOptionValue.value(q), I));
|
|
2602
2602
|
return R ? (f.set(String(I), R), !1) : !0;
|
|
2603
2603
|
}), K = e.options();
|
|
2604
|
-
if (
|
|
2604
|
+
if (z.length > 0 && typeof K == "function") {
|
|
2605
2605
|
try {
|
|
2606
2606
|
u.value = !0;
|
|
2607
|
-
const R = await K(void 0, void 0,
|
|
2607
|
+
const R = await K(void 0, void 0, z);
|
|
2608
2608
|
R?.results && y(R.results);
|
|
2609
2609
|
} catch (R) {
|
|
2610
2610
|
console.error("useSelectDataSource: error resolving", R);
|
|
2611
2611
|
} finally {
|
|
2612
2612
|
u.value = !1;
|
|
2613
2613
|
}
|
|
2614
|
-
|
|
2615
|
-
} else if (
|
|
2614
|
+
z.filter((R) => !f.has(String(R))).length > 0 && !m && await b();
|
|
2615
|
+
} else if (z.length > 0 && Array.isArray(K))
|
|
2616
2616
|
for (const I of K) {
|
|
2617
2617
|
const R = String(e.getOptionValue.value(I));
|
|
2618
|
-
|
|
2618
|
+
z.includes(R) && f.set(R, I);
|
|
2619
2619
|
}
|
|
2620
2620
|
const H = D.map((I) => f.get(String(I))).filter(Boolean);
|
|
2621
2621
|
return s.value = H, H;
|
|
@@ -2766,7 +2766,7 @@ const Oo = { class: "vc-select__control" }, Eo = {
|
|
|
2766
2766
|
}, Do = { class: "vc-select__multiple-item" }, No = {
|
|
2767
2767
|
key: 0,
|
|
2768
2768
|
class: "vc-select__loading"
|
|
2769
|
-
},
|
|
2769
|
+
}, zo = { key: 1 }, Fo = ["aria-label", "onClick", "onKeydown"], Po = {
|
|
2770
2770
|
key: 0,
|
|
2771
2771
|
class: "vc-select__loading"
|
|
2772
2772
|
}, qo = {
|
|
@@ -2885,7 +2885,7 @@ const Oo = { class: "vc-select__control" }, Eo = {
|
|
|
2885
2885
|
ref_for: !0
|
|
2886
2886
|
}, o), () => [
|
|
2887
2887
|
L("div", Do, [
|
|
2888
|
-
e.loading ? (g(), h("span", No, N(i(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : (g(), h("span",
|
|
2888
|
+
e.loading ? (g(), h("span", No, N(i(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : (g(), h("span", zo, N(e.getOptionLabel(o.opt)), 1)),
|
|
2889
2889
|
e.disabled ? w("", !0) : (g(), h("button", {
|
|
2890
2890
|
key: 2,
|
|
2891
2891
|
type: "button",
|
|
@@ -2900,7 +2900,7 @@ const Oo = { class: "vc-select__control" }, Eo = {
|
|
|
2900
2900
|
icon: "lucide-x",
|
|
2901
2901
|
size: "xs"
|
|
2902
2902
|
})
|
|
2903
|
-
], 40,
|
|
2903
|
+
], 40, Fo))
|
|
2904
2904
|
])
|
|
2905
2905
|
]) : e.multiple ? w("", !0) : (g(), h(ke, { key: 1 }, [
|
|
2906
2906
|
e.loading ? (g(), h("span", Po, N(i(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : B(l.$slots, "selected-item", ae({
|
|
@@ -3216,10 +3216,10 @@ const Oo = { class: "vc-select__control" }, Eo = {
|
|
|
3216
3216
|
resolvedName: y,
|
|
3217
3217
|
ariaRequired: b,
|
|
3218
3218
|
ariaDescribedBy: O
|
|
3219
|
-
} =
|
|
3219
|
+
} = Fe(n), p = C(() => `${u.value}-listbox`), k = S(null), V = S(null), { selectRootRef: j, isSelectVisible: ne, ensureVisibility: Q } = ko(), { getOptionValue: D, getOptionLabel: A, getOption: z, getEmittingOptionValue: K, fieldValueIsFilled: H } = Io({
|
|
3220
3220
|
optionValue: () => n.optionValue,
|
|
3221
3221
|
optionLabel: () => n.optionLabel
|
|
3222
|
-
}), { isOpened: I, isFocused: R, dropdownToggleRef: q, dropdownRef: te, popper: Me, dropdownStyle: $, toggleDropdown:
|
|
3222
|
+
}), { isOpened: I, isFocused: R, dropdownToggleRef: q, dropdownRef: te, popper: Me, dropdownStyle: $, toggleDropdown: F } = So({
|
|
3223
3223
|
placement: n.placement,
|
|
3224
3224
|
outline: () => n.outline,
|
|
3225
3225
|
isSelectVisible: ne,
|
|
@@ -3241,7 +3241,7 @@ const Oo = { class: "vc-select__control" }, Eo = {
|
|
|
3241
3241
|
emit: {
|
|
3242
3242
|
search: (x) => r("search", x)
|
|
3243
3243
|
}
|
|
3244
|
-
}), { selectedScope: Dt, hasValue: Nt, optionScope: $e, removeAtIndex:
|
|
3244
|
+
}), { selectedScope: Dt, hasValue: Nt, optionScope: $e, removeAtIndex: zt, onReset: Ft } = $o({
|
|
3245
3245
|
modelValue: () => n.modelValue,
|
|
3246
3246
|
multiple: () => n.multiple,
|
|
3247
3247
|
emitValue: () => n.emitValue ?? !0,
|
|
@@ -3251,7 +3251,7 @@ const Oo = { class: "vc-select__control" }, Eo = {
|
|
|
3251
3251
|
cachedItems: M.cachedItems,
|
|
3252
3252
|
getOptionValue: D,
|
|
3253
3253
|
getOptionLabel: A,
|
|
3254
|
-
getOption:
|
|
3254
|
+
getOption: z,
|
|
3255
3255
|
fieldValueIsFilled: H,
|
|
3256
3256
|
isOpened: I,
|
|
3257
3257
|
popperUpdate: () => Me.update(),
|
|
@@ -3394,13 +3394,13 @@ const Oo = { class: "vc-select__control" }, Eo = {
|
|
|
3394
3394
|
"aria-required": i(b),
|
|
3395
3395
|
"error-id": i(m),
|
|
3396
3396
|
"hint-id": i(v),
|
|
3397
|
-
"toggle-dropdown": i(
|
|
3397
|
+
"toggle-dropdown": i(F),
|
|
3398
3398
|
"get-option-label": i(A),
|
|
3399
3399
|
"get-emitting-option-value": i(K),
|
|
3400
3400
|
onFocus: J[0] || (J[0] = (le) => R.value = !0),
|
|
3401
3401
|
onBlur: J[1] || (J[1] = (le) => R.value = !1),
|
|
3402
|
-
onReset: i(
|
|
3403
|
-
onRemoveAtIndex: i(
|
|
3402
|
+
onReset: i(Ft),
|
|
3403
|
+
onRemoveAtIndex: i(zt)
|
|
3404
3404
|
}, me({ _: 2 }, [
|
|
3405
3405
|
x.$slots.control ? {
|
|
3406
3406
|
name: "control",
|
|
@@ -3804,12 +3804,12 @@ function mi() {
|
|
|
3804
3804
|
function yi() {
|
|
3805
3805
|
return U(Vt, ml);
|
|
3806
3806
|
}
|
|
3807
|
-
const bi = Symbol("TableContext"), yl = Symbol("ColumnCollector"), hi = Symbol("FillerWidth"), Ii = Symbol("IsColumnReordering"), ki =
|
|
3807
|
+
const bi = Symbol("TableContext"), yl = Symbol("ColumnCollector"), hi = Symbol("FillerWidth"), Ii = Symbol("IsColumnReordering"), ki = (e, t) => {
|
|
3808
3808
|
const n = e.__vccOpts || e;
|
|
3809
3809
|
for (const [a, l] of t)
|
|
3810
3810
|
n[a] = l;
|
|
3811
3811
|
return n;
|
|
3812
|
-
},
|
|
3812
|
+
}, Si = G({
|
|
3813
3813
|
name: "VcColumn",
|
|
3814
3814
|
inheritAttrs: !1,
|
|
3815
3815
|
props: {
|
|
@@ -3987,7 +3987,7 @@ const bi = Symbol("TableContext"), yl = Symbol("ColumnCollector"), hi = Symbol("
|
|
|
3987
3987
|
}
|
|
3988
3988
|
},
|
|
3989
3989
|
setup(e, { slots: t }) {
|
|
3990
|
-
const n = U(yl, null), a =
|
|
3990
|
+
const n = U(yl, null), a = ze();
|
|
3991
3991
|
return tt(() => {
|
|
3992
3992
|
n && a && n.add({
|
|
3993
3993
|
instance: a,
|
|
@@ -3999,7 +3999,7 @@ const bi = Symbol("TableContext"), yl = Symbol("ColumnCollector"), hi = Symbol("
|
|
|
3999
3999
|
}), () => null;
|
|
4000
4000
|
}
|
|
4001
4001
|
}), Ie = Ge(/* @__PURE__ */ new Map());
|
|
4002
|
-
function
|
|
4002
|
+
function wi() {
|
|
4003
4003
|
return {
|
|
4004
4004
|
register: (o) => {
|
|
4005
4005
|
Ie.set(o.type, o);
|
|
@@ -4013,7 +4013,7 @@ function $i() {
|
|
|
4013
4013
|
}
|
|
4014
4014
|
};
|
|
4015
4015
|
}
|
|
4016
|
-
const
|
|
4016
|
+
const $i = G({
|
|
4017
4017
|
name: "SlotProxy",
|
|
4018
4018
|
props: {
|
|
4019
4019
|
slotFn: { type: Function, required: !0 },
|
|
@@ -4022,7 +4022,7 @@ const Oi = G({
|
|
|
4022
4022
|
setup(e) {
|
|
4023
4023
|
return () => e.slotFn(e.scope);
|
|
4024
4024
|
}
|
|
4025
|
-
}),
|
|
4025
|
+
}), Oi = (e, t) => {
|
|
4026
4026
|
const n = t.arg ? parseInt(t.arg, 10) : 9e3, a = typeof t.value == "object" ? t.value : { blur: !0 };
|
|
4027
4027
|
t.value ? (e.classList.add("v-loading"), a.size && e.setAttribute("data-loading-size", a.size), a.color && e.style.setProperty("--v-loading-spinner-color", a.color), a.blur === !1 && e.classList.add("v-loading--no-blur"), a.fullscreen && e.classList.add("v-loading--fullscreen"), e.style.setProperty("--v-loading-z-index", `${n}`)) : (e.classList.remove("v-loading", "v-loading--no-blur", "v-loading--fullscreen"), e.removeAttribute("data-loading-size"), e.style.removeProperty("--v-loading-z-index"), e.style.removeProperty("--v-loading-spinner-color"));
|
|
4028
4028
|
};
|
|
@@ -4042,11 +4042,11 @@ export {
|
|
|
4042
4042
|
na as L,
|
|
4043
4043
|
aa as M,
|
|
4044
4044
|
oa as N,
|
|
4045
|
-
|
|
4045
|
+
zl as O,
|
|
4046
4046
|
ge as P,
|
|
4047
4047
|
fa as Q,
|
|
4048
4048
|
ie as R,
|
|
4049
|
-
|
|
4049
|
+
Fl as S,
|
|
4050
4050
|
Nl as T,
|
|
4051
4051
|
Dl as U,
|
|
4052
4052
|
ue as V,
|
|
@@ -4066,11 +4066,10 @@ export {
|
|
|
4066
4066
|
Gl as a7,
|
|
4067
4067
|
Ln as a8,
|
|
4068
4068
|
Mn as a9,
|
|
4069
|
-
|
|
4070
|
-
|
|
4069
|
+
wi as aA,
|
|
4070
|
+
$i as aB,
|
|
4071
4071
|
yl as aC,
|
|
4072
|
-
|
|
4073
|
-
Nn as aE,
|
|
4072
|
+
Nn as aD,
|
|
4074
4073
|
qn as aa,
|
|
4075
4074
|
dt as ab,
|
|
4076
4075
|
ri as ac,
|
|
@@ -4093,11 +4092,11 @@ export {
|
|
|
4093
4092
|
Mt as at,
|
|
4094
4093
|
vi as au,
|
|
4095
4094
|
ho as av,
|
|
4096
|
-
|
|
4095
|
+
Fn as aw,
|
|
4097
4096
|
bi as ax,
|
|
4098
4097
|
hi as ay,
|
|
4099
4098
|
Ii as az,
|
|
4100
|
-
|
|
4099
|
+
Si as b,
|
|
4101
4100
|
Ua as c,
|
|
4102
4101
|
bo as d,
|
|
4103
4102
|
pi as e,
|
|
@@ -4107,12 +4106,12 @@ export {
|
|
|
4107
4106
|
ul as i,
|
|
4108
4107
|
oe as j,
|
|
4109
4108
|
he as k,
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4109
|
+
Oi as l,
|
|
4110
|
+
zn as m,
|
|
4111
|
+
Fe as n,
|
|
4113
4112
|
Pn as o,
|
|
4114
4113
|
mi as p,
|
|
4115
|
-
|
|
4114
|
+
ki as q,
|
|
4116
4115
|
si as r,
|
|
4117
4116
|
ti as s,
|
|
4118
4117
|
Vn as t,
|