@vc-shell/framework 2.3.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-BHufGxno.js → VcScheduler.vue_vue_type_script_setup_true_lang-B-xA79lJ.js} +6713 -6612
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-B-xA79lJ.js.map +1 -0
- package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang-Iu3FiU-0.js → VcScheduler.vue_vue_type_style_index_0_lang-BSvjI-39.js} +116 -114
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-BSvjI-39.js.map +1 -0
- package/dist/chunks/dashboard-feed-row.vue_vue_type_script_setup_true_lang-BXDneKBz.js +679 -0
- package/dist/chunks/dashboard-feed-row.vue_vue_type_script_setup_true_lang-BXDneKBz.js.map +1 -0
- package/dist/core/interceptors/index.d.ts.map +1 -1
- package/dist/core/services/language-service.d.ts.map +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/framework.js +662 -648
- package/dist/framework.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/locales/de.js +23 -16
- package/dist/locales/en.js +8 -1
- package/dist/locales/en.json +8 -1
- package/dist/locales/types.d.ts +7 -0
- package/dist/shell/auth/LoginPage/components/login/Login.vue.d.ts.map +1 -1
- package/dist/shell/auth/_test-utils/shared-dependency-mocks.d.ts +3 -3
- package/dist/shell/auth/_test-utils/shared-dependency-mocks.d.ts.map +1 -1
- package/dist/shell/components/settings-menu-item/settings-menu-item.vue.d.ts +1 -1
- package/dist/shell/components/settings-menu-item/settings-menu-item.vue.d.ts.map +1 -1
- package/dist/shell/dashboard/draggable-dashboard/GridstackDashboard.vue.d.ts.map +1 -1
- package/dist/shell/dashboard/draggable-dashboard/composables/useGridstack.d.ts +4 -0
- package/dist/shell/dashboard/draggable-dashboard/composables/useGridstack.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts +6 -4
- package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-color-input/vc-color-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +11 -0
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-menu/vc-menu-group.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-menu/vc-menu-item.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/sidebar/SidebarHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +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/components/mobile/DataTableMobileCard.vue.d.ts +13 -2
- package/dist/ui/components/organisms/vc-data-table/components/mobile/DataTableMobileCard.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/mobile/DataTableMobileView.vue.d.ts +15 -1
- package/dist/ui/components/organisms/vc-data-table/components/mobile/DataTableMobileView.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/mobile/PullToRefresh.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/composables/useDataTableState.d.ts +6 -0
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableState.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumns.d.ts +7 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumns.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts +2 -0
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/types.d.ts +7 -0
- package/dist/ui/components/organisms/vc-data-table/types.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-scheduler/_internal/views/SchedulerMonthView.vue.d.ts.map +1 -1
- package/dist/ui/index.js +2 -2
- package/package.json +5 -5
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-BHufGxno.js.map +0 -1
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-Iu3FiU-0.js.map +0 -1
- package/dist/chunks/dashboard-feed-row.vue_vue_type_script_setup_true_lang-DlE4KIvq.js +0 -641
- package/dist/chunks/dashboard-feed-row.vue_vue_type_script_setup_true_lang-DlE4KIvq.js.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 Ke, provide as mt, getCurrentScope as jt, onScopeDispose as Ht, getCurrentInstance as Ne, onErrorCaptured as Gt, nextTick as me, defineComponent as G, watch as X, unref as i, openBlock as g, createElementBlock as h, normalizeClass as Z, createBlock 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 Ke, provide as mt, getCurrentScope as jt, onScopeDispose as Ht, getCurrentInstance as Ne, onErrorCaptured as Gt, nextTick as me, defineComponent as G, watch as X, unref as i, openBlock as g, createElementBlock as h, normalizeClass as Z, createBlock as z, createCommentVNode as w, renderSlot as B, createElementVNode as L, toDisplayString as N, Fragment as ke, renderList as _e, normalizeStyle as Ve, resolveDynamicComponent as yt, withCtx as E, createVNode as T, withKeys as _, withModifiers as Y, watchEffect as je, shallowReactive as He, markRaw as Ge, createSlots as pe, 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, ag as Zt, J as Qt, t as _t, q as en, n as tn, I as nn, p as an, o as on, B as It, b as ln, i as rn, _ as W, T as kt, a as sn, R as un, v as cn, u as dn } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-DrGobYkj.js";
|
|
3
3
|
import { defineRule as Se } from "vee-validate";
|
|
4
4
|
import { a as ct } from "./vendor-vee-validate-rules-4oWUZPpG.js";
|
|
@@ -73,7 +73,7 @@ class Nl extends ie {
|
|
|
73
73
|
}), this.name = "BladeError";
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
class
|
|
76
|
+
class Pl extends ie {
|
|
77
77
|
constructor(t, n, a) {
|
|
78
78
|
super(`Failed to load module '${t}': ${n}`, "MODULE_LOAD_ERROR", {
|
|
79
79
|
moduleId: t,
|
|
@@ -84,7 +84,7 @@ class Fl extends ie {
|
|
|
84
84
|
function Ln(e) {
|
|
85
85
|
return e instanceof ie;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Fl(e, t = "UNKNOWN_ERROR") {
|
|
88
88
|
return Ln(e) ? e : e instanceof Error ? new ie(e.message, t, {
|
|
89
89
|
originalError: e.name,
|
|
90
90
|
stack: e.stack
|
|
@@ -160,7 +160,7 @@ function Mn(e) {
|
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function zl() {
|
|
164
164
|
const e = /* @__PURE__ */ new Map();
|
|
165
165
|
return {
|
|
166
166
|
register(t, n) {
|
|
@@ -336,9 +336,9 @@ function Nn(e, t, n = {}) {
|
|
|
336
336
|
resolvedStrategy: l
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
|
-
const
|
|
340
|
-
function
|
|
341
|
-
const t = U(
|
|
339
|
+
const Pn = Symbol("vc-input-group-context");
|
|
340
|
+
function Pe(e) {
|
|
341
|
+
const t = U(Pn, 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(() => {
|
|
342
342
|
const d = /* @__PURE__ */ new Set();
|
|
343
343
|
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;
|
|
344
344
|
});
|
|
@@ -355,7 +355,7 @@ function Fe(e) {
|
|
|
355
355
|
groupContext: t
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function Fn(e, t = {}) {
|
|
359
359
|
const { speed: n = 2 } = t, a = S(!1), l = S(!1);
|
|
360
360
|
let r = null;
|
|
361
361
|
function o() {
|
|
@@ -394,7 +394,7 @@ function be() {
|
|
|
394
394
|
Object.keys(ct).forEach((e) => {
|
|
395
395
|
Se(e, ct[e]);
|
|
396
396
|
});
|
|
397
|
-
const
|
|
397
|
+
const zn = (e, [t, n]) => {
|
|
398
398
|
if (!e?.files || !e.files?.length)
|
|
399
399
|
return !0;
|
|
400
400
|
const a = (o, s, u) => {
|
|
@@ -420,7 +420,7 @@ const Pn = (e, [t, n]) => {
|
|
|
420
420
|
return s === !1 || typeof s == "string" ? s : !0;
|
|
421
421
|
});
|
|
422
422
|
};
|
|
423
|
-
Se("mindimensions",
|
|
423
|
+
Se("mindimensions", zn);
|
|
424
424
|
const qn = (e, [t]) => {
|
|
425
425
|
if (!e?.files || !e.files?.length)
|
|
426
426
|
return !0;
|
|
@@ -708,7 +708,7 @@ function Qn() {
|
|
|
708
708
|
};
|
|
709
709
|
return se.replayInto(r), r;
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function Fe(e) {
|
|
712
712
|
const { key: t, create: n, bus: a, name: l, onMissing: r } = e;
|
|
713
713
|
function o() {
|
|
714
714
|
const u = U(t, null);
|
|
@@ -728,7 +728,7 @@ function ze(e) {
|
|
|
728
728
|
use: s
|
|
729
729
|
};
|
|
730
730
|
}
|
|
731
|
-
const _n = ce("use-menu-service"), Lt =
|
|
731
|
+
const _n = ce("use-menu-service"), Lt = Fe({
|
|
732
732
|
key: _t,
|
|
733
733
|
create: Qn,
|
|
734
734
|
bus: se,
|
|
@@ -898,12 +898,12 @@ const Xl = G({
|
|
|
898
898
|
"aria-pressed": e.selected || void 0,
|
|
899
899
|
onClick: f
|
|
900
900
|
}, [
|
|
901
|
-
e.loading ? (g(),
|
|
901
|
+
e.loading ? (g(), z(i(W), {
|
|
902
902
|
key: 0,
|
|
903
903
|
icon: "lucide-loader-2",
|
|
904
904
|
class: "vc-button__icon tw-animate-spin",
|
|
905
905
|
size: e.iconSize
|
|
906
|
-
}, null, 8, ["size"])) : e.icon ? (g(),
|
|
906
|
+
}, null, 8, ["size"])) : e.icon ? (g(), z(i(W), {
|
|
907
907
|
key: 1,
|
|
908
908
|
class: Z(["vc-button--icon", e.iconClass]),
|
|
909
909
|
icon: e.icon,
|
|
@@ -961,7 +961,7 @@ function Rt() {
|
|
|
961
961
|
}
|
|
962
962
|
const da = "fallback-blade-id";
|
|
963
963
|
let We = null;
|
|
964
|
-
const fa =
|
|
964
|
+
const fa = Fe({
|
|
965
965
|
key: kt,
|
|
966
966
|
create: Rt,
|
|
967
967
|
bus: lt,
|
|
@@ -1068,7 +1068,7 @@ const ga = ["aria-label"], va = { class: "tw-sr-only" }, pa = ["aria-label"], ma
|
|
|
1068
1068
|
}), t({
|
|
1069
1069
|
scrollTop: o,
|
|
1070
1070
|
component: l
|
|
1071
|
-
}), (u, f) => (g(),
|
|
1071
|
+
}), (u, f) => (g(), z(yt(e.ariaLabel ? "section" : "div"), {
|
|
1072
1072
|
class: Z([
|
|
1073
1073
|
"vc-container",
|
|
1074
1074
|
{
|
|
@@ -1119,7 +1119,7 @@ const ga = ["aria-label"], va = { class: "tw-sr-only" }, pa = ["aria-label"], ma
|
|
|
1119
1119
|
}, wa = {
|
|
1120
1120
|
key: 1,
|
|
1121
1121
|
class: "vc-label__language"
|
|
1122
|
-
},
|
|
1122
|
+
}, ze = /* @__PURE__ */ G({
|
|
1123
1123
|
__name: "vc-label",
|
|
1124
1124
|
props: {
|
|
1125
1125
|
required: { type: Boolean },
|
|
@@ -1130,7 +1130,7 @@ const ga = ["aria-label"], va = { class: "tw-sr-only" }, pa = ["aria-label"], ma
|
|
|
1130
1130
|
htmlFor: {}
|
|
1131
1131
|
},
|
|
1132
1132
|
setup(e) {
|
|
1133
|
-
return (t, n) => (g(),
|
|
1133
|
+
return (t, n) => (g(), z(yt(e.htmlFor ? "label" : "div"), {
|
|
1134
1134
|
class: Z(["vc-label", {
|
|
1135
1135
|
"vc-label--error": e.error
|
|
1136
1136
|
}]),
|
|
@@ -1171,7 +1171,7 @@ const ga = ["aria-label"], va = { class: "tw-sr-only" }, pa = ["aria-label"], ma
|
|
|
1171
1171
|
setup(e, { expose: t }) {
|
|
1172
1172
|
const n = e, a = S(null), l = {};
|
|
1173
1173
|
n.speed !== void 0 && (l.speed = n.speed);
|
|
1174
|
-
const { canScrollUp: r, canScrollDown: o, startScroll: s, stopScroll: u, updateScrollState: f } =
|
|
1174
|
+
const { canScrollUp: r, canScrollDown: o, startScroll: s, stopScroll: u, updateScrollState: f } = Fn(
|
|
1175
1175
|
a,
|
|
1176
1176
|
l
|
|
1177
1177
|
);
|
|
@@ -1375,7 +1375,7 @@ function Ta(e = {}) {
|
|
|
1375
1375
|
};
|
|
1376
1376
|
return rt.replayInto(s), s;
|
|
1377
1377
|
}
|
|
1378
|
-
const vt = ce("use-dashboard"), Tt =
|
|
1378
|
+
const vt = ce("use-dashboard"), Tt = Fe({
|
|
1379
1379
|
key: un,
|
|
1380
1380
|
bus: rt,
|
|
1381
1381
|
name: "DashboardService",
|
|
@@ -1448,7 +1448,7 @@ function Ma() {
|
|
|
1448
1448
|
getId: (e) => e.id || ""
|
|
1449
1449
|
});
|
|
1450
1450
|
}
|
|
1451
|
-
const Aa = ce("use-settings-menu"), At =
|
|
1451
|
+
const Aa = ce("use-settings-menu"), At = Fe({
|
|
1452
1452
|
key: cn,
|
|
1453
1453
|
create: Ma,
|
|
1454
1454
|
bus: st,
|
|
@@ -1464,10 +1464,10 @@ function fi() {
|
|
|
1464
1464
|
const Va = {
|
|
1465
1465
|
key: 0,
|
|
1466
1466
|
class: "vc-date-picker vc-date-picker--skeleton"
|
|
1467
|
-
}, Da = { class: "vc-date-picker__field-container" }, Na = { class: "vc-date-picker__field" },
|
|
1467
|
+
}, Da = { class: "vc-date-picker__field-container" }, Na = { class: "vc-date-picker__field" }, Pa = ["aria-label"], Fa = {
|
|
1468
1468
|
key: 0,
|
|
1469
1469
|
class: "vc-date-picker__loading"
|
|
1470
|
-
},
|
|
1470
|
+
}, za = { key: 0 }, qa = { key: 1 }, Ka = /* @__PURE__ */ G({
|
|
1471
1471
|
__name: "vc-date-picker",
|
|
1472
1472
|
props: {
|
|
1473
1473
|
modelValue: {},
|
|
@@ -1491,7 +1491,7 @@ const Va = {
|
|
|
1491
1491
|
},
|
|
1492
1492
|
emits: ["update:modelValue", "blur", "focus"],
|
|
1493
1493
|
setup(e, { emit: t }) {
|
|
1494
|
-
const n = e, a = t, l = be(), { isMobile: r, isDesktop: o } = ea(), { labelId: s, errorId: u, hintId: f, invalid: m, resolvedDisabled: v, ariaRequired: d, ariaDescribedBy: c } =
|
|
1494
|
+
const n = e, a = t, l = be(), { isMobile: r, isDesktop: o } = ea(), { labelId: s, errorId: u, hintId: f, invalid: m, resolvedDisabled: v, ariaRequired: d, ariaDescribedBy: c } = Pe(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 = (() => {
|
|
1495
1495
|
const I = new Intl.DateTimeFormat(b, { hour: "numeric" }).format();
|
|
1496
1496
|
return Number.isInteger(Number(I));
|
|
1497
1497
|
})(), j = C(() => {
|
|
@@ -1541,7 +1541,7 @@ const Va = {
|
|
|
1541
1541
|
function A(I) {
|
|
1542
1542
|
p.value = I;
|
|
1543
1543
|
}
|
|
1544
|
-
function
|
|
1544
|
+
function P() {
|
|
1545
1545
|
p.value = null;
|
|
1546
1546
|
}
|
|
1547
1547
|
function K(I) {
|
|
@@ -1551,7 +1551,7 @@ const Va = {
|
|
|
1551
1551
|
y.value = !0, a("focus");
|
|
1552
1552
|
}
|
|
1553
1553
|
return (I, R) => i(l) ? (g(), h("div", Va, [
|
|
1554
|
-
e.label ? (g(),
|
|
1554
|
+
e.label ? (g(), z(i(oe), {
|
|
1555
1555
|
key: 0,
|
|
1556
1556
|
variant: "block",
|
|
1557
1557
|
width: 60 + (e.label?.length || 0) * 4,
|
|
@@ -1572,7 +1572,7 @@ const Va = {
|
|
|
1572
1572
|
}
|
|
1573
1573
|
]])
|
|
1574
1574
|
}, [
|
|
1575
|
-
e.label ? (g(),
|
|
1575
|
+
e.label ? (g(), z(i(ze), {
|
|
1576
1576
|
key: 0,
|
|
1577
1577
|
id: i(s),
|
|
1578
1578
|
class: "vc-date-picker__label",
|
|
@@ -1631,7 +1631,7 @@ const Va = {
|
|
|
1631
1631
|
onFocus: H,
|
|
1632
1632
|
onClosed: K,
|
|
1633
1633
|
onRangeStart: A,
|
|
1634
|
-
onRangeEnd:
|
|
1634
|
+
onRangeEnd: P,
|
|
1635
1635
|
onTooltipOpen: H,
|
|
1636
1636
|
onTooltipClose: K
|
|
1637
1637
|
}), 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"]),
|
|
@@ -1646,9 +1646,9 @@ const Va = {
|
|
|
1646
1646
|
size: "xs",
|
|
1647
1647
|
icon: "lucide-x"
|
|
1648
1648
|
})
|
|
1649
|
-
], 8,
|
|
1649
|
+
], 8, Pa)) : w("", !0)
|
|
1650
1650
|
]),
|
|
1651
|
-
e.loading ? (g(), h("div",
|
|
1651
|
+
e.loading ? (g(), h("div", Fa, [
|
|
1652
1652
|
T(i(W), {
|
|
1653
1653
|
icon: "lucide-loader-2",
|
|
1654
1654
|
class: "vc-date-picker__loading-icon",
|
|
@@ -1662,7 +1662,7 @@ const Va = {
|
|
|
1662
1662
|
mode: "out-in"
|
|
1663
1663
|
}, {
|
|
1664
1664
|
default: E(() => [
|
|
1665
|
-
i(m) && e.errorMessage ? (g(), h("div",
|
|
1665
|
+
i(m) && e.errorMessage ? (g(), h("div", za, [
|
|
1666
1666
|
T(i(ue), {
|
|
1667
1667
|
id: i(u),
|
|
1668
1668
|
class: "vc-date-picker__hint-error",
|
|
@@ -1674,7 +1674,7 @@ const Va = {
|
|
|
1674
1674
|
_: 1
|
|
1675
1675
|
}, 8, ["id"])
|
|
1676
1676
|
])) : (g(), h("div", qa, [
|
|
1677
|
-
e.hint ? (g(),
|
|
1677
|
+
e.hint ? (g(), z(i(ue), {
|
|
1678
1678
|
key: 0,
|
|
1679
1679
|
id: i(f),
|
|
1680
1680
|
class: "vc-date-picker__desc"
|
|
@@ -1727,7 +1727,7 @@ const Va = {
|
|
|
1727
1727
|
resolvedDisabled: v,
|
|
1728
1728
|
ariaRequired: d,
|
|
1729
1729
|
ariaDescribedBy: c
|
|
1730
|
-
} =
|
|
1730
|
+
} = Pe(l), y = S(!1), b = S(!1), O = S(), p = S(), k = S(l.modelValue ?? ""), V = S("");
|
|
1731
1731
|
function j(I) {
|
|
1732
1732
|
if (!I || typeof I != "string") {
|
|
1733
1733
|
V.value = "";
|
|
@@ -1770,7 +1770,7 @@ const Va = {
|
|
|
1770
1770
|
function A() {
|
|
1771
1771
|
k.value = "", V.value = "", r("update:modelValue", null);
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1773
|
+
function P(I) {
|
|
1774
1774
|
y.value = !1, r("blur", I);
|
|
1775
1775
|
}
|
|
1776
1776
|
function K() {
|
|
@@ -1780,7 +1780,7 @@ const Va = {
|
|
|
1780
1780
|
O.value?.focus();
|
|
1781
1781
|
}
|
|
1782
1782
|
return t({ focus: H }), (I, R) => i(a) ? (g(), h("div", Ua, [
|
|
1783
|
-
e.label ? (g(),
|
|
1783
|
+
e.label ? (g(), z(i(oe), {
|
|
1784
1784
|
key: 0,
|
|
1785
1785
|
variant: "block",
|
|
1786
1786
|
width: 60 + (e.label?.length || 0) * 4,
|
|
@@ -1801,7 +1801,7 @@ const Va = {
|
|
|
1801
1801
|
}
|
|
1802
1802
|
]])
|
|
1803
1803
|
}, [
|
|
1804
|
-
e.label ? (g(),
|
|
1804
|
+
e.label ? (g(), z(i(ze), {
|
|
1805
1805
|
key: 0,
|
|
1806
1806
|
id: i(s),
|
|
1807
1807
|
"html-for": i(o),
|
|
@@ -1848,7 +1848,7 @@ const Va = {
|
|
|
1848
1848
|
"aria-labelledby": e.label ? i(s) : void 0,
|
|
1849
1849
|
class: "vc-color-input__input",
|
|
1850
1850
|
tabindex: "0",
|
|
1851
|
-
onBlur:
|
|
1851
|
+
onBlur: P,
|
|
1852
1852
|
onFocus: K,
|
|
1853
1853
|
onInput: ne
|
|
1854
1854
|
}, null, 40, Ha), [
|
|
@@ -1912,7 +1912,7 @@ const Va = {
|
|
|
1912
1912
|
_: 1
|
|
1913
1913
|
}, 8, ["id"])
|
|
1914
1914
|
])) : (g(), h("div", _a, [
|
|
1915
|
-
e.hint ? (g(),
|
|
1915
|
+
e.hint ? (g(), z(i(ue), {
|
|
1916
1916
|
key: 0,
|
|
1917
1917
|
id: i(f),
|
|
1918
1918
|
class: "vc-color-input__desc"
|
|
@@ -1937,7 +1937,7 @@ const Va = {
|
|
|
1937
1937
|
}, lo = { class: "vc-input__field" }, io = {
|
|
1938
1938
|
key: 0,
|
|
1939
1939
|
class: "vc-input__prefix"
|
|
1940
|
-
}, ro = ["id", "placeholder", "type", "disabled", "name", "maxlength", "autofocus", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby"], so = {
|
|
1940
|
+
}, ro = ["id", "placeholder", "type", "disabled", "name", "maxlength", "autofocus", "autocomplete", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby"], so = {
|
|
1941
1941
|
key: 1,
|
|
1942
1942
|
class: "vc-input__suffix"
|
|
1943
1943
|
}, uo = ["aria-label"], co = ["aria-label"], fo = {
|
|
@@ -1960,6 +1960,7 @@ const Va = {
|
|
|
1960
1960
|
debounce: {},
|
|
1961
1961
|
maxlength: { default: "1024" },
|
|
1962
1962
|
step: { default: "1" },
|
|
1963
|
+
autocomplete: {},
|
|
1963
1964
|
datePickerOptions: {},
|
|
1964
1965
|
placeholder: {},
|
|
1965
1966
|
hint: {},
|
|
@@ -1980,8 +1981,8 @@ const Va = {
|
|
|
1980
1981
|
emits: ["update:modelValue", "blur", "focus"],
|
|
1981
1982
|
setup(e, { emit: t }) {
|
|
1982
1983
|
const n = e, a = bt(), l = C(() => {
|
|
1983
|
-
const { class: $, ...
|
|
1984
|
-
return
|
|
1984
|
+
const { class: $, ...F } = a;
|
|
1985
|
+
return F;
|
|
1985
1986
|
}), r = t, o = be(), {
|
|
1986
1987
|
fieldId: s,
|
|
1987
1988
|
labelId: u,
|
|
@@ -1992,7 +1993,7 @@ const Va = {
|
|
|
1992
1993
|
resolvedName: c,
|
|
1993
1994
|
ariaRequired: y,
|
|
1994
1995
|
ariaDescribedBy: b
|
|
1995
|
-
} =
|
|
1996
|
+
} = Pe(n);
|
|
1996
1997
|
let O, p;
|
|
1997
1998
|
const k = S(), V = S(), j = S(i(n.type)), ne = S(!1), Q = S(), D = C({
|
|
1998
1999
|
get() {
|
|
@@ -2001,7 +2002,7 @@ const Va = {
|
|
|
2001
2002
|
set($) {
|
|
2002
2003
|
j.value = $;
|
|
2003
2004
|
}
|
|
2004
|
-
}), A = C(() => i(n.modelValue)),
|
|
2005
|
+
}), A = C(() => i(n.modelValue)), P = C({
|
|
2005
2006
|
get() {
|
|
2006
2007
|
return (n.type === "integer" || n.type === "number") && isNaN(k.value) ? "" : k.value;
|
|
2007
2008
|
},
|
|
@@ -2017,8 +2018,8 @@ const Va = {
|
|
|
2017
2018
|
{ immediate: !0 }
|
|
2018
2019
|
);
|
|
2019
2020
|
function K($) {
|
|
2020
|
-
const
|
|
2021
|
-
if ((n.type === "number" || n.type === "integer") && (M === "-" || M === "e" || M === "+") && $.preventDefault(), n.type === "integer" && !/^\d$/.test(M) && !
|
|
2021
|
+
const F = ["Backspace", "Delete", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], M = $.key;
|
|
2022
|
+
if ((n.type === "number" || n.type === "integer") && (M === "-" || M === "e" || M === "+") && $.preventDefault(), n.type === "integer" && !/^\d$/.test(M) && !F.includes(M)) {
|
|
2022
2023
|
$.preventDefault();
|
|
2023
2024
|
return;
|
|
2024
2025
|
}
|
|
@@ -2029,8 +2030,8 @@ const Va = {
|
|
|
2029
2030
|
function I($) {
|
|
2030
2031
|
p = () => {
|
|
2031
2032
|
if (Q.value !== $) {
|
|
2032
|
-
let
|
|
2033
|
-
n.type === "number" && $ !== null && $ !== void 0 ?
|
|
2033
|
+
let F;
|
|
2034
|
+
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);
|
|
2034
2035
|
}
|
|
2035
2036
|
p = void 0;
|
|
2036
2037
|
}, n.debounce !== void 0 ? (clearTimeout(O), O = setTimeout(p, +n.debounce)) : p();
|
|
@@ -2047,10 +2048,10 @@ const Va = {
|
|
|
2047
2048
|
function Me() {
|
|
2048
2049
|
ne.value = !0, r("focus");
|
|
2049
2050
|
}
|
|
2050
|
-
return ($,
|
|
2051
|
+
return ($, F) => i(o) ? (g(), h("div", ae({ key: 0 }, l.value, {
|
|
2051
2052
|
class: ["vc-input vc-input--skeleton", $.$attrs.class]
|
|
2052
2053
|
}), [
|
|
2053
|
-
e.label ? (g(),
|
|
2054
|
+
e.label ? (g(), z(i(oe), {
|
|
2054
2055
|
key: 0,
|
|
2055
2056
|
variant: "block",
|
|
2056
2057
|
width: 60 + (e.label?.length || 0) * 4,
|
|
@@ -2061,7 +2062,7 @@ const Va = {
|
|
|
2061
2062
|
width: "100%",
|
|
2062
2063
|
height: 36
|
|
2063
2064
|
})
|
|
2064
|
-
], 16)) : e.type === "date" || e.type === "datetime-local" ? (g(),
|
|
2065
|
+
], 16)) : e.type === "date" || e.type === "datetime-local" ? (g(), z(i(Ka), ae({ key: 1 }, i(a), {
|
|
2065
2066
|
"model-value": e.modelValue,
|
|
2066
2067
|
type: e.type,
|
|
2067
2068
|
"date-picker-options": e.datePickerOptions,
|
|
@@ -2080,10 +2081,10 @@ const Va = {
|
|
|
2080
2081
|
multilanguage: e.multilanguage,
|
|
2081
2082
|
"current-language": e.currentLanguage,
|
|
2082
2083
|
name: e.name,
|
|
2083
|
-
"onUpdate:modelValue":
|
|
2084
|
-
onBlur:
|
|
2085
|
-
onFocus:
|
|
2086
|
-
}), 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(),
|
|
2084
|
+
"onUpdate:modelValue": F[0] || (F[0] = (M) => r("update:modelValue", M ?? null)),
|
|
2085
|
+
onBlur: F[1] || (F[1] = (M) => r("blur", M)),
|
|
2086
|
+
onFocus: F[2] || (F[2] = (M) => r("focus"))
|
|
2087
|
+
}), 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(), z(i(eo), ae({ key: 2 }, i(a), {
|
|
2087
2088
|
"model-value": e.modelValue ?? null,
|
|
2088
2089
|
label: e.label,
|
|
2089
2090
|
placeholder: e.placeholder,
|
|
@@ -2100,9 +2101,9 @@ const Va = {
|
|
|
2100
2101
|
multilanguage: e.multilanguage,
|
|
2101
2102
|
"current-language": e.currentLanguage,
|
|
2102
2103
|
name: e.name,
|
|
2103
|
-
"onUpdate:modelValue":
|
|
2104
|
-
onBlur:
|
|
2105
|
-
onFocus:
|
|
2104
|
+
"onUpdate:modelValue": F[3] || (F[3] = (M) => r("update:modelValue", M)),
|
|
2105
|
+
onBlur: F[4] || (F[4] = (M) => r("blur", M)),
|
|
2106
|
+
onFocus: F[5] || (F[5] = (M) => r("focus"))
|
|
2106
2107
|
}), 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, {
|
|
2107
2108
|
class: ["vc-input", [
|
|
2108
2109
|
$.$attrs.class,
|
|
@@ -2115,7 +2116,7 @@ const Va = {
|
|
|
2115
2116
|
}
|
|
2116
2117
|
]]
|
|
2117
2118
|
}), [
|
|
2118
|
-
e.label ? (g(),
|
|
2119
|
+
e.label ? (g(), z(i(ze), {
|
|
2119
2120
|
key: 0,
|
|
2120
2121
|
id: i(u),
|
|
2121
2122
|
"html-for": i(s),
|
|
@@ -2157,7 +2158,7 @@ const Va = {
|
|
|
2157
2158
|
B($.$slots, "control", {
|
|
2158
2159
|
editable: i(d),
|
|
2159
2160
|
focused: e.autofocus,
|
|
2160
|
-
modelValue:
|
|
2161
|
+
modelValue: P.value,
|
|
2161
2162
|
emitValue: I,
|
|
2162
2163
|
placeholder: e.placeholder
|
|
2163
2164
|
}, () => [
|
|
@@ -2165,13 +2166,14 @@ const Va = {
|
|
|
2165
2166
|
id: i(s),
|
|
2166
2167
|
ref_key: "inputRef",
|
|
2167
2168
|
ref: V,
|
|
2168
|
-
"onUpdate:modelValue":
|
|
2169
|
+
"onUpdate:modelValue": F[6] || (F[6] = (M) => P.value = M),
|
|
2169
2170
|
placeholder: e.placeholder,
|
|
2170
2171
|
type: D.value,
|
|
2171
2172
|
disabled: i(d),
|
|
2172
2173
|
name: i(c),
|
|
2173
2174
|
maxlength: e.maxlength,
|
|
2174
2175
|
autofocus: e.autofocus,
|
|
2176
|
+
autocomplete: e.autocomplete,
|
|
2175
2177
|
"aria-invalid": i(v) || void 0,
|
|
2176
2178
|
"aria-required": i(y),
|
|
2177
2179
|
"aria-describedby": i(b),
|
|
@@ -2182,7 +2184,7 @@ const Va = {
|
|
|
2182
2184
|
onBlur: q,
|
|
2183
2185
|
onFocus: Me
|
|
2184
2186
|
}, null, 40, ro), [
|
|
2185
|
-
[Yt,
|
|
2187
|
+
[Yt, P.value]
|
|
2186
2188
|
])
|
|
2187
2189
|
]),
|
|
2188
2190
|
e.suffix ? (g(), h("div", so, N(e.suffix), 1)) : w("", !0),
|
|
@@ -2202,8 +2204,8 @@ const Va = {
|
|
|
2202
2204
|
key: 3,
|
|
2203
2205
|
type: "button",
|
|
2204
2206
|
class: "vc-input__showhide",
|
|
2205
|
-
"aria-label": j.value === "password" ? "
|
|
2206
|
-
onClick:
|
|
2207
|
+
"aria-label": j.value === "password" ? $.$t("COMPONENTS.CONTROLS.SHOW_PASSWORD") : $.$t("COMPONENTS.CONTROLS.HIDE_PASSWORD"),
|
|
2208
|
+
onClick: F[7] || (F[7] = (M) => j.value = j.value === "password" ? "text" : "password")
|
|
2207
2209
|
}, [
|
|
2208
2210
|
T(i(W), {
|
|
2209
2211
|
size: "s",
|
|
@@ -2247,7 +2249,7 @@ const Va = {
|
|
|
2247
2249
|
])
|
|
2248
2250
|
])) : (g(), h("div", mo, [
|
|
2249
2251
|
B($.$slots, "hint", {}, () => [
|
|
2250
|
-
e.hint ? (g(),
|
|
2252
|
+
e.hint ? (g(), z(i(ue), {
|
|
2251
2253
|
key: 0,
|
|
2252
2254
|
id: i(m),
|
|
2253
2255
|
class: "vc-input__desc"
|
|
@@ -2514,8 +2516,8 @@ function So(e) {
|
|
|
2514
2516
|
const d = C(() => n.value ?? t.value), c = C(() => t.value.length < a.value);
|
|
2515
2517
|
function y(D) {
|
|
2516
2518
|
for (const A of D) {
|
|
2517
|
-
const
|
|
2518
|
-
f.set(
|
|
2519
|
+
const P = String(e.getOptionValue.value(A));
|
|
2520
|
+
f.set(P, A);
|
|
2519
2521
|
}
|
|
2520
2522
|
}
|
|
2521
2523
|
async function b() {
|
|
@@ -2542,8 +2544,8 @@ function So(e) {
|
|
|
2542
2544
|
if (!(typeof D != "function" || l.value))
|
|
2543
2545
|
try {
|
|
2544
2546
|
l.value = !0;
|
|
2545
|
-
const A = await D(o.value, t.value.length),
|
|
2546
|
-
(H) => !
|
|
2547
|
+
const A = await D(o.value, t.value.length), P = new Set(t.value.map((H) => String(e.getOptionValue.value(H)))), K = (A?.results ?? []).filter(
|
|
2548
|
+
(H) => !P.has(String(e.getOptionValue.value(H)))
|
|
2547
2549
|
);
|
|
2548
2550
|
t.value = [...t.value, ...K], a.value = A?.totalCount ?? a.value, y(K);
|
|
2549
2551
|
} catch (A) {
|
|
@@ -2558,50 +2560,50 @@ function So(e) {
|
|
|
2558
2560
|
if (typeof A == "function")
|
|
2559
2561
|
try {
|
|
2560
2562
|
r.value = !0;
|
|
2561
|
-
const
|
|
2562
|
-
n.value =
|
|
2563
|
-
} catch (
|
|
2564
|
-
console.error("useSelectDataSource: error searching",
|
|
2563
|
+
const P = await A(D);
|
|
2564
|
+
n.value = P?.results ?? [], a.value = P?.totalCount ?? 0, y(n.value);
|
|
2565
|
+
} catch (P) {
|
|
2566
|
+
console.error("useSelectDataSource: error searching", P), n.value = [];
|
|
2565
2567
|
} finally {
|
|
2566
2568
|
r.value = !1;
|
|
2567
2569
|
}
|
|
2568
2570
|
else
|
|
2569
|
-
n.value = t.value.filter((
|
|
2570
|
-
const K = e.getOptionLabel.value(
|
|
2571
|
+
n.value = t.value.filter((P) => {
|
|
2572
|
+
const K = e.getOptionLabel.value(P);
|
|
2571
2573
|
return String(K).toLowerCase().includes(D.toLowerCase());
|
|
2572
2574
|
});
|
|
2573
2575
|
}
|
|
2574
2576
|
function V(D) {
|
|
2575
2577
|
if (!D?.target) return;
|
|
2576
|
-
const A = D.target.value,
|
|
2577
|
-
v && clearTimeout(v),
|
|
2578
|
+
const A = D.target.value, P = Number(e.debounce());
|
|
2579
|
+
v && clearTimeout(v), P > 0 ? v = setTimeout(() => {
|
|
2578
2580
|
e.emit.search(A), k(A);
|
|
2579
|
-
},
|
|
2581
|
+
}, P) : (e.emit.search(A), k(A));
|
|
2580
2582
|
}
|
|
2581
2583
|
function j() {
|
|
2582
2584
|
n.value = null, o.value = void 0, v && (clearTimeout(v), v = void 0), a.value = t.value.length;
|
|
2583
2585
|
}
|
|
2584
2586
|
async function ne(D) {
|
|
2585
2587
|
if (D.length === 0) return [];
|
|
2586
|
-
const
|
|
2588
|
+
const P = D.filter((I) => !f.has(String(I))).filter((I) => {
|
|
2587
2589
|
const R = t.value.find((q) => Le(e.getOptionValue.value(q), I));
|
|
2588
2590
|
return R ? (f.set(String(I), R), !1) : !0;
|
|
2589
2591
|
}), K = e.options();
|
|
2590
|
-
if (
|
|
2592
|
+
if (P.length > 0 && typeof K == "function") {
|
|
2591
2593
|
try {
|
|
2592
2594
|
u.value = !0;
|
|
2593
|
-
const R = await K(void 0, void 0,
|
|
2595
|
+
const R = await K(void 0, void 0, P);
|
|
2594
2596
|
R?.results && y(R.results);
|
|
2595
2597
|
} catch (R) {
|
|
2596
2598
|
console.error("useSelectDataSource: error resolving", R);
|
|
2597
2599
|
} finally {
|
|
2598
2600
|
u.value = !1;
|
|
2599
2601
|
}
|
|
2600
|
-
|
|
2601
|
-
} else if (
|
|
2602
|
+
P.filter((R) => !f.has(String(R))).length > 0 && !m && await b();
|
|
2603
|
+
} else if (P.length > 0 && Array.isArray(K))
|
|
2602
2604
|
for (const I of K) {
|
|
2603
2605
|
const R = String(e.getOptionValue.value(I));
|
|
2604
|
-
|
|
2606
|
+
P.includes(R) && f.set(R, I);
|
|
2605
2607
|
}
|
|
2606
2608
|
const H = D.map((I) => f.get(String(I))).filter(Boolean);
|
|
2607
2609
|
return s.value = H, H;
|
|
@@ -2752,10 +2754,10 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
2752
2754
|
}, Vo = { class: "vc-select__multiple-item" }, Do = {
|
|
2753
2755
|
key: 0,
|
|
2754
2756
|
class: "vc-select__loading"
|
|
2755
|
-
}, No = { key: 1 },
|
|
2757
|
+
}, No = { key: 1 }, Po = ["aria-label", "onClick", "onKeydown"], Fo = {
|
|
2756
2758
|
key: 0,
|
|
2757
2759
|
class: "vc-select__loading"
|
|
2758
|
-
},
|
|
2760
|
+
}, zo = {
|
|
2759
2761
|
key: 1,
|
|
2760
2762
|
class: "vc-select__suffix"
|
|
2761
2763
|
}, qo = ["aria-label"], Ko = {
|
|
@@ -2886,10 +2888,10 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
2886
2888
|
icon: "lucide-x",
|
|
2887
2889
|
size: "xs"
|
|
2888
2890
|
})
|
|
2889
|
-
], 40,
|
|
2891
|
+
], 40, Po))
|
|
2890
2892
|
])
|
|
2891
2893
|
]) : e.multiple ? w("", !0) : (g(), h(ke, { key: 1 }, [
|
|
2892
|
-
e.loading ? (g(), h("span",
|
|
2894
|
+
e.loading ? (g(), h("span", Fo, N(i(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : B(l.$slots, "selected-item", ae({
|
|
2893
2895
|
key: 1,
|
|
2894
2896
|
ref_for: !0
|
|
2895
2897
|
}, o), () => [
|
|
@@ -2905,7 +2907,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
2905
2907
|
], 64))
|
|
2906
2908
|
]))
|
|
2907
2909
|
], 40, To),
|
|
2908
|
-
e.suffix ? (g(), h("div",
|
|
2910
|
+
e.suffix ? (g(), h("div", zo, N(e.suffix), 1)) : w("", !0),
|
|
2909
2911
|
e.clearable && e.hasValue && !e.disabled ? (g(), h("div", {
|
|
2910
2912
|
key: 2,
|
|
2911
2913
|
class: "vc-select__clear",
|
|
@@ -2989,7 +2991,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
2989
2991
|
])
|
|
2990
2992
|
])) : (g(), h("div", Jo, [
|
|
2991
2993
|
B(l.$slots, "hint", {}, () => [
|
|
2992
|
-
e.hint ? (g(),
|
|
2994
|
+
e.hint ? (g(), z(i(ue), {
|
|
2993
2995
|
key: 0,
|
|
2994
2996
|
id: e.hintId,
|
|
2995
2997
|
class: "vc-select__hint"
|
|
@@ -3064,7 +3066,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3064
3066
|
searchInputRef: u,
|
|
3065
3067
|
viewportRef: v,
|
|
3066
3068
|
loadMoreRef: m
|
|
3067
|
-
}), (c, y) => (g(),
|
|
3069
|
+
}), (c, y) => (g(), z(Xt, { to: i(o) }, [
|
|
3068
3070
|
T(Re, { name: "select-dropdown" }, {
|
|
3069
3071
|
default: E(() => [
|
|
3070
3072
|
e.isOpened ? et((g(), h("div", {
|
|
@@ -3202,10 +3204,10 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3202
3204
|
resolvedName: y,
|
|
3203
3205
|
ariaRequired: b,
|
|
3204
3206
|
ariaDescribedBy: O
|
|
3205
|
-
} =
|
|
3207
|
+
} = Pe(n), p = C(() => `${u.value}-listbox`), k = S(null), V = S(null), { selectRootRef: j, isSelectVisible: ne, ensureVisibility: Q } = Io(), { getOptionValue: D, getOptionLabel: A, getOption: P, getEmittingOptionValue: K, fieldValueIsFilled: H } = ho({
|
|
3206
3208
|
optionValue: () => n.optionValue,
|
|
3207
3209
|
optionLabel: () => n.optionLabel
|
|
3208
|
-
}), { isOpened: I, isFocused: R, dropdownToggleRef: q, dropdownRef: te, popper: Me, dropdownStyle: $, toggleDropdown:
|
|
3210
|
+
}), { isOpened: I, isFocused: R, dropdownToggleRef: q, dropdownRef: te, popper: Me, dropdownStyle: $, toggleDropdown: F } = ko({
|
|
3209
3211
|
placement: n.placement,
|
|
3210
3212
|
outline: () => n.outline,
|
|
3211
3213
|
isSelectVisible: ne,
|
|
@@ -3227,7 +3229,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3227
3229
|
emit: {
|
|
3228
3230
|
search: (x) => r("search", x)
|
|
3229
3231
|
}
|
|
3230
|
-
}), { selectedScope: Dt, hasValue: Nt, optionScope: $e, removeAtIndex:
|
|
3232
|
+
}), { selectedScope: Dt, hasValue: Nt, optionScope: $e, removeAtIndex: Pt, onReset: Ft } = wo({
|
|
3231
3233
|
modelValue: () => n.modelValue,
|
|
3232
3234
|
multiple: () => n.multiple,
|
|
3233
3235
|
emitValue: () => n.emitValue ?? !0,
|
|
@@ -3237,7 +3239,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3237
3239
|
cachedItems: M.cachedItems,
|
|
3238
3240
|
getOptionValue: D,
|
|
3239
3241
|
getOptionLabel: A,
|
|
3240
|
-
getOption:
|
|
3242
|
+
getOption: P,
|
|
3241
3243
|
fieldValueIsFilled: H,
|
|
3242
3244
|
isOpened: I,
|
|
3243
3245
|
popperUpdate: () => Me.update(),
|
|
@@ -3245,9 +3247,9 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3245
3247
|
updateModelValue: (x) => r("update:modelValue", x),
|
|
3246
3248
|
close: () => r("close")
|
|
3247
3249
|
}
|
|
3248
|
-
}),
|
|
3250
|
+
}), zt = C(() => V.value?.loadMoreRef ?? null), qt = C(() => V.value?.viewportRef ?? null);
|
|
3249
3251
|
yn(
|
|
3250
|
-
|
|
3252
|
+
zt,
|
|
3251
3253
|
([{ isIntersecting: x }]) => {
|
|
3252
3254
|
x && M.hasMore.value && M.loadMore();
|
|
3253
3255
|
},
|
|
@@ -3301,7 +3303,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3301
3303
|
), (x, J) => i(s) ? (g(), h("div", ae({ key: 0 }, l.value, {
|
|
3302
3304
|
class: ["vc-select vc-select--skeleton", x.$attrs.class]
|
|
3303
3305
|
}), [
|
|
3304
|
-
e.label ? (g(),
|
|
3306
|
+
e.label ? (g(), z(i(oe), {
|
|
3305
3307
|
key: 0,
|
|
3306
3308
|
variant: "block",
|
|
3307
3309
|
width: 60 + (e.label?.length || 0) * 4,
|
|
@@ -3329,7 +3331,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3329
3331
|
}
|
|
3330
3332
|
]]
|
|
3331
3333
|
}), [
|
|
3332
|
-
e.label ? (g(),
|
|
3334
|
+
e.label ? (g(), z(i(ze), {
|
|
3333
3335
|
key: 0,
|
|
3334
3336
|
id: i(f),
|
|
3335
3337
|
class: "vc-select__label",
|
|
@@ -3380,13 +3382,13 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3380
3382
|
"aria-required": i(b),
|
|
3381
3383
|
"error-id": i(m),
|
|
3382
3384
|
"hint-id": i(v),
|
|
3383
|
-
"toggle-dropdown": i(
|
|
3385
|
+
"toggle-dropdown": i(F),
|
|
3384
3386
|
"get-option-label": i(A),
|
|
3385
3387
|
"get-emitting-option-value": i(K),
|
|
3386
3388
|
onFocus: J[0] || (J[0] = (le) => R.value = !0),
|
|
3387
3389
|
onBlur: J[1] || (J[1] = (le) => R.value = !1),
|
|
3388
|
-
onReset: i(
|
|
3389
|
-
onRemoveAtIndex: i(
|
|
3390
|
+
onReset: i(Ft),
|
|
3391
|
+
onRemoveAtIndex: i(Pt)
|
|
3390
3392
|
}, pe({ _: 2 }, [
|
|
3391
3393
|
x.$slots.control ? {
|
|
3392
3394
|
name: "control",
|
|
@@ -3516,7 +3518,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3516
3518
|
setup(e) {
|
|
3517
3519
|
const t = be();
|
|
3518
3520
|
return (n, a) => i(t) ? (g(), h("div", ul, [
|
|
3519
|
-
e.label ? (g(),
|
|
3521
|
+
e.label ? (g(), z(i(oe), {
|
|
3520
3522
|
key: 0,
|
|
3521
3523
|
variant: "block",
|
|
3522
3524
|
width: 60 + (e.label?.length || 0) * 4,
|
|
@@ -3527,7 +3529,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3527
3529
|
width: "100%",
|
|
3528
3530
|
height: 36
|
|
3529
3531
|
})
|
|
3530
|
-
])) : (g(),
|
|
3532
|
+
])) : (g(), z(i(sl), {
|
|
3531
3533
|
key: 1,
|
|
3532
3534
|
class: "vc-input-dropdown",
|
|
3533
3535
|
options: e.options,
|
|
@@ -3585,7 +3587,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3585
3587
|
]
|
|
3586
3588
|
}, N(i(e.option)), 41, dl)) : w("", !0)
|
|
3587
3589
|
]),
|
|
3588
|
-
e.options && e.options.length ? (g(),
|
|
3590
|
+
e.options && e.options.length ? (g(), z(i(ca), {
|
|
3589
3591
|
key: 0,
|
|
3590
3592
|
icon: r ? "lucide-chevron-up" : "lucide-chevron-down",
|
|
3591
3593
|
"icon-size": "s",
|
|
@@ -3717,7 +3719,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3717
3719
|
typeof y < "u" && parseInt(y) < 0 && c.preventDefault();
|
|
3718
3720
|
}
|
|
3719
3721
|
return (c, y) => i(l) ? (g(), h("div", gl, [
|
|
3720
|
-
e.label ? (g(),
|
|
3722
|
+
e.label ? (g(), z(i(oe), {
|
|
3721
3723
|
key: 0,
|
|
3722
3724
|
variant: "block",
|
|
3723
3725
|
width: 60 + (e.label?.length || 0) * 4,
|
|
@@ -3728,7 +3730,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3728
3730
|
width: "100%",
|
|
3729
3731
|
height: 36
|
|
3730
3732
|
})
|
|
3731
|
-
])) : (g(),
|
|
3733
|
+
])) : (g(), z(i(fl), {
|
|
3732
3734
|
key: 1,
|
|
3733
3735
|
class: "vc-input-currency",
|
|
3734
3736
|
options: e.options,
|
|
@@ -4032,7 +4034,7 @@ export {
|
|
|
4032
4034
|
he as P,
|
|
4033
4035
|
da as Q,
|
|
4034
4036
|
ie as R,
|
|
4035
|
-
|
|
4037
|
+
Pl as S,
|
|
4036
4038
|
Dl as T,
|
|
4037
4039
|
Vl as U,
|
|
4038
4040
|
ue as V,
|
|
@@ -4046,7 +4048,7 @@ export {
|
|
|
4046
4048
|
Wn as a1,
|
|
4047
4049
|
xn as a2,
|
|
4048
4050
|
Mn as a3,
|
|
4049
|
-
|
|
4051
|
+
zl as a4,
|
|
4050
4052
|
qn as a5,
|
|
4051
4053
|
Wl as a6,
|
|
4052
4054
|
Hl as a7,
|
|
@@ -4057,7 +4059,7 @@ export {
|
|
|
4057
4059
|
ml as aC,
|
|
4058
4060
|
Ii as aD,
|
|
4059
4061
|
Dn as aE,
|
|
4060
|
-
|
|
4062
|
+
zn as aa,
|
|
4061
4063
|
dt as ab,
|
|
4062
4064
|
ii as ac,
|
|
4063
4065
|
Gl as ad,
|
|
@@ -4074,12 +4076,12 @@ export {
|
|
|
4074
4076
|
Jl as ao,
|
|
4075
4077
|
fi as ap,
|
|
4076
4078
|
_l as aq,
|
|
4077
|
-
|
|
4079
|
+
Fl as ar,
|
|
4078
4080
|
Xl as as,
|
|
4079
4081
|
Mt as at,
|
|
4080
4082
|
gi as au,
|
|
4081
4083
|
bo as av,
|
|
4082
|
-
|
|
4084
|
+
Pn as aw,
|
|
4083
4085
|
yi as ax,
|
|
4084
4086
|
bi as ay,
|
|
4085
4087
|
hi as az,
|
|
@@ -4088,15 +4090,15 @@ export {
|
|
|
4088
4090
|
yo as d,
|
|
4089
4091
|
vi as e,
|
|
4090
4092
|
fl as f,
|
|
4091
|
-
|
|
4093
|
+
ze as g,
|
|
4092
4094
|
Oa as h,
|
|
4093
4095
|
sl as i,
|
|
4094
4096
|
oe as j,
|
|
4095
4097
|
be as k,
|
|
4096
4098
|
Oi as l,
|
|
4097
4099
|
Nn as m,
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
+
Pe as n,
|
|
4101
|
+
Fn as o,
|
|
4100
4102
|
pi as p,
|
|
4101
4103
|
ki as q,
|
|
4102
4104
|
ri as r,
|