@vc-shell/framework 2.4.0 → 2.5.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/ai-agent/index.js +3 -3
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cm_izaFs.js → VcAiAgentPanel.vue_vue_type_script_setup_true_lang-9mBLzIi1.js} +490 -468
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-9mBLzIi1.js.map +1 -0
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-DrGobYkj.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-CZdY18Hq.js} +74 -68
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-DrGobYkj.js.map → VcAiAgentPanel.vue_vue_type_style_index_0_lang-CZdY18Hq.js.map} +1 -1
- package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-B-xA79lJ.js → VcScheduler.vue_vue_type_script_setup_true_lang-BmlVL_rn.js} +6388 -6183
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-BmlVL_rn.js.map +1 -0
- package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang-BSvjI-39.js → VcScheduler.vue_vue_type_style_index_0_lang-BTg4PjTB.js} +533 -521
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-BTg4PjTB.js.map +1 -0
- package/dist/chunks/dashboard-feed-row.vue_vue_type_script_setup_true_lang-BCsJG_hk.js +724 -0
- package/dist/chunks/dashboard-feed-row.vue_vue_type_script_setup_true_lang-BCsJG_hk.js.map +1 -0
- package/dist/chunks/{index-C-SEYj46.js → index-B7RhGTNx.js} +2 -2
- package/dist/chunks/{index-C-SEYj46.js.map → index-B7RhGTNx.js.map} +1 -1
- package/dist/core/blade-navigation/utils/bladeRouterGuard.d.ts +1 -2
- package/dist/core/blade-navigation/utils/bladeRouterGuard.d.ts.map +1 -1
- package/dist/core/composables/index.d.ts +1 -0
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useLatestRequest/index.d.ts +43 -0
- package/dist/core/composables/useLatestRequest/index.d.ts.map +1 -0
- package/dist/core/composables/usePopup/index.d.ts +12 -3
- package/dist/core/composables/usePopup/index.d.ts.map +1 -1
- package/dist/core/composables/usePopup/keys.d.ts +3 -1
- package/dist/core/composables/usePopup/keys.d.ts.map +1 -1
- package/dist/core/composables/usePopup/types.d.ts +32 -1
- package/dist/core/composables/usePopup/types.d.ts.map +1 -1
- package/dist/core/interceptors/index.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/VcAiAgentPanel.vue.d.ts +4 -1
- package/dist/core/plugins/ai-agent/components/VcAiAgentPanel.vue.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/services/ai-agent-service.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/services/message-transport.d.ts +2 -0
- package/dist/core/plugins/ai-agent/services/message-transport.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/types.d.ts +1 -1
- package/dist/core/plugins/ai-agent/types.d.ts.map +1 -1
- package/dist/core/utilities/error.d.ts.map +1 -1
- package/dist/core/utilities/focus.d.ts +25 -0
- package/dist/core/utilities/focus.d.ts.map +1 -0
- package/dist/core/utilities/index.d.ts +1 -0
- package/dist/core/utilities/index.d.ts.map +1 -1
- package/dist/core/utilities/sessionExpiration.d.ts +14 -0
- package/dist/core/utilities/sessionExpiration.d.ts.map +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/framework.js +1300 -1262
- package/dist/framework.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +1 -2
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/locales/de.js +3 -0
- package/dist/locales/en.js +3 -0
- package/dist/locales/en.json +3 -0
- package/dist/locales/types.d.ts +3 -0
- package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/focus-target.d.ts +20 -0
- package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/focus-target.d.ts.map +1 -0
- package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/vc-blade-navigation-new.vue.d.ts.map +1 -1
- package/dist/shell/_internal/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts +5 -0
- package/dist/shell/_internal/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts.map +1 -1
- package/dist/shell/_internal/popup/components/vc-popup-container/PopupInstanceProvider.vue.d.ts +30 -0
- package/dist/shell/_internal/popup/components/vc-popup-container/PopupInstanceProvider.vue.d.ts.map +1 -0
- package/dist/shell/_internal/popup/components/vc-popup-container/vc-popup-container.vue.d.ts.map +1 -1
- package/dist/shell/auth/ChangePasswordPage/components/change-password/ChangePassword.vue.d.ts.map +1 -1
- package/dist/shell/auth/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
- package/dist/shell/auth/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
- package/dist/shell/components/change-password/change-password.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 +5 -8
- package/dist/shell/dashboard/draggable-dashboard/composables/useGridstack.d.ts.map +1 -1
- package/dist/shell/dashboard/draggable-dashboard/composables/useGridstackAdapter.d.ts +6 -6
- package/dist/shell/dashboard/draggable-dashboard/composables/useGridstackAdapter.d.ts.map +1 -1
- package/dist/shell/dashboard/draggable-dashboard/types.d.ts +11 -0
- package/dist/shell/dashboard/draggable-dashboard/types.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-color-input/vc-color-input.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-date-picker/vc-date-picker.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-multivalue/_internal/MultivalueTrigger.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts +4 -0
- package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/_internal/SelectTrigger.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/MenuSidebar.vue.d.ts +1 -0
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/MenuSidebar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue.d.ts +8 -0
- package/dist/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.vue.d.ts +5 -0
- package/dist/ui/components/organisms/vc-app/_internal/layouts/MobileLayout.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-app/vc-app.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/useBladeSkeleton.d.ts +16 -0
- package/dist/ui/components/organisms/vc-blade/useBladeSkeleton.d.ts.map +1 -0
- 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 +1 -2
- package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/GlobalFiltersPanel.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/TableSearchHeader.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-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-scheduler/VcScheduler.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-scheduler/_internal/SchedulerToolbar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-scheduler/_internal/month/MonthEventBar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-scheduler/_internal/month/MonthMorePopover.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-scheduler/_internal/month/MonthWeekRow.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-scheduler/_internal/views/SchedulerTimelineView.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-scheduler/composables/useTimelineTimeGrid.d.ts +2 -0
- package/dist/ui/components/organisms/vc-scheduler/composables/useTimelineTimeGrid.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts +1 -0
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts.map +1 -1
- package/dist/ui/composables/useDataTablePagination.d.ts +22 -1
- package/dist/ui/composables/useDataTablePagination.d.ts.map +1 -1
- package/dist/ui/index.js +3 -3
- package/package.json +4 -4
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cm_izaFs.js.map +0 -1
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-B-xA79lJ.js.map +0 -1
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-BSvjI-39.js.map +0 -1
- package/dist/chunks/dashboard-feed-row.vue_vue_type_script_setup_true_lang-BXDneKBz.js +0 -679
- package/dist/chunks/dashboard-feed-row.vue_vue_type_script_setup_true_lang-BXDneKBz.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
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
|
|
2
|
-
import { c as ce,
|
|
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 Fe, 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
|
+
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";
|
|
5
|
-
import { a as St, s as fn, c as gn, b as
|
|
5
|
+
import { a as St, s as fn, c as gn, b as We, e as Le } from "./vendor-lodash-es-D2n90GJy.js";
|
|
6
6
|
import { X as vn } from "./vendor-microsoft-applicationinsights-core-js-CR3vyuZc.js";
|
|
7
7
|
import { d as wt, e as pn, f as mn, g as yn } from "./vendor-vueuse-core-BFa9je5E.js";
|
|
8
8
|
import { c as bn, u as nt } from "./vendor-vue-i18n-LO-EJStU.js";
|
|
@@ -11,18 +11,18 @@ import { k as In } from "./vendor-tiptap-core-CZbeo7XQ.js";
|
|
|
11
11
|
import "./vendor-tiptap-extension-text-style-Bc6nvmn0.js";
|
|
12
12
|
import { C as kn, u as Sn } from "./vendor-vue-currency-input-CckB4kjx.js";
|
|
13
13
|
import { u as wn } from "./vendor-floating-ui-vue-sCrhit51.js";
|
|
14
|
-
import { f as $t, s as Ot, o as
|
|
14
|
+
import { f as $t, s as Ot, o as Ye, b as $n } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
|
|
15
15
|
import { v as On } from "./vendor-vueuse-components-CoR2FSn3.js";
|
|
16
16
|
import { p as En } from "./vendor-dompurify-DpIUMBYC.js";
|
|
17
17
|
import { q as Cn } from "./vendor-vuepic-vue-datepicker-D0bvbIbh.js";
|
|
18
|
-
const
|
|
18
|
+
const be = bn({
|
|
19
19
|
legacy: !1,
|
|
20
20
|
globalInjection: !0,
|
|
21
21
|
locale: "en",
|
|
22
22
|
fallbackLocale: "en",
|
|
23
23
|
formatFallbackMessages: !0
|
|
24
24
|
});
|
|
25
|
-
function
|
|
25
|
+
function Xe() {
|
|
26
26
|
return Math.random().toString(36).substring(2, 9);
|
|
27
27
|
}
|
|
28
28
|
class ie extends Error {
|
|
@@ -39,12 +39,12 @@ class ie extends Error {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
class
|
|
42
|
+
class Vl extends ie {
|
|
43
43
|
constructor(t, n) {
|
|
44
44
|
super(t, "VALIDATION_ERROR", n), this.name = "ValidationError";
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
class
|
|
47
|
+
class Dl extends ie {
|
|
48
48
|
constructor(t, n) {
|
|
49
49
|
super(t, "SERVICE_ERROR", n), this.name = "ServiceError";
|
|
50
50
|
}
|
|
@@ -57,7 +57,7 @@ class Bn extends ie {
|
|
|
57
57
|
}), this.name = "InjectionError";
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
class
|
|
60
|
+
class Nl extends ie {
|
|
61
61
|
constructor(t, n, a) {
|
|
62
62
|
super(`Failed to register '${t}': ${n}`, "REGISTRATION_ERROR", {
|
|
63
63
|
componentName: t,
|
|
@@ -65,7 +65,7 @@ class Dl extends ie {
|
|
|
65
65
|
}), this.name = "RegistrationError";
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
class
|
|
68
|
+
class Fl extends ie {
|
|
69
69
|
constructor(t, n, a) {
|
|
70
70
|
super(t, "BLADE_ERROR", {
|
|
71
71
|
bladeId: n,
|
|
@@ -73,7 +73,7 @@ class Nl extends ie {
|
|
|
73
73
|
}), this.name = "BladeError";
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
class
|
|
76
|
+
class zl 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,32 +84,44 @@ class Pl extends ie {
|
|
|
84
84
|
function Ln(e) {
|
|
85
85
|
return e instanceof ie;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Pl(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
|
|
91
91
|
}) : new ie(String(e), t);
|
|
92
92
|
}
|
|
93
|
-
class
|
|
93
|
+
class ge extends Error {
|
|
94
94
|
details;
|
|
95
95
|
originalError;
|
|
96
96
|
constructor(t, n, a) {
|
|
97
97
|
super(t), this.name = "DisplayableError", this.details = n, this.originalError = a;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
|
|
100
|
+
function Rn(e) {
|
|
101
|
+
return e instanceof Error && typeof e.status == "number" && typeof e.response == "string";
|
|
102
|
+
}
|
|
103
|
+
function Ae(e) {
|
|
104
|
+
if (e instanceof ge)
|
|
102
105
|
return e;
|
|
106
|
+
if (Rn(e)) {
|
|
107
|
+
const { status: t, response: n } = e;
|
|
108
|
+
try {
|
|
109
|
+
return Ae(JSON.parse(n));
|
|
110
|
+
} catch {
|
|
111
|
+
const a = `${t}: ${e.message || "Error"}`;
|
|
112
|
+
return new ge(a, n || e.message, e);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
103
115
|
if (e instanceof Error && "response" in e && e.response)
|
|
104
|
-
return
|
|
116
|
+
return Ae(e.response);
|
|
105
117
|
if (e instanceof Error)
|
|
106
|
-
return new
|
|
118
|
+
return new ge(e.message, e.stack || String(e), e);
|
|
107
119
|
if (typeof e == "string")
|
|
108
120
|
try {
|
|
109
121
|
const t = JSON.parse(e);
|
|
110
|
-
return
|
|
122
|
+
return Ae(t);
|
|
111
123
|
} catch {
|
|
112
|
-
return new
|
|
124
|
+
return new ge(e, e, e);
|
|
113
125
|
}
|
|
114
126
|
if (typeof e == "object" && e !== null) {
|
|
115
127
|
const t = e;
|
|
@@ -117,15 +129,15 @@ function Xe(e) {
|
|
|
117
129
|
const l = t.status, r = t.statusText || "Error", o = `${l}: ${r}`, s = t.data;
|
|
118
130
|
let u = "";
|
|
119
131
|
return s ? typeof s.exceptionMessage == "string" ? u = s.exceptionMessage : typeof s.message == "string" ? u = s.message : Array.isArray(s.errors) ? u = s.errors.join(`
|
|
120
|
-
`) : typeof s == "string" ? u = s : u = JSON.stringify(s, null, 2) : u = JSON.stringify(t, null, 2), new
|
|
132
|
+
`) : typeof s == "string" ? u = s : u = JSON.stringify(s, null, 2) : u = JSON.stringify(t, null, 2), new ge(o, u, e);
|
|
121
133
|
}
|
|
122
134
|
const n = t.message || "An unexpected error occurred.", a = t.stack || JSON.stringify(t, null, 2);
|
|
123
|
-
return new
|
|
135
|
+
return new ge(n, a, e);
|
|
124
136
|
}
|
|
125
|
-
return new
|
|
137
|
+
return new ge("An unknown error occurred.", String(e), e);
|
|
126
138
|
}
|
|
127
|
-
const
|
|
128
|
-
function
|
|
139
|
+
const xn = ce("color-utils");
|
|
140
|
+
function Tn(e) {
|
|
129
141
|
if (!e || typeof e != "string")
|
|
130
142
|
return null;
|
|
131
143
|
try {
|
|
@@ -134,10 +146,10 @@ function xn(e) {
|
|
|
134
146
|
const n = t.getContext("2d");
|
|
135
147
|
return !n || (n.fillStyle = e.trim(), n.fillStyle === "#000000" && e.trim().toLowerCase() !== "black") ? null : n.fillStyle;
|
|
136
148
|
} catch (t) {
|
|
137
|
-
return
|
|
149
|
+
return xn.warn("Error converting color name to hex:", t), null;
|
|
138
150
|
}
|
|
139
151
|
}
|
|
140
|
-
function
|
|
152
|
+
function Mn(e) {
|
|
141
153
|
if (!e || typeof e != "string")
|
|
142
154
|
return !1;
|
|
143
155
|
const t = e.startsWith("#") ? e : `#${e}`;
|
|
@@ -146,7 +158,7 @@ function Tn(e) {
|
|
|
146
158
|
function dt(e) {
|
|
147
159
|
return !e || typeof e != "string" ? "" : e.startsWith("#") ? e : `#${e}`;
|
|
148
160
|
}
|
|
149
|
-
function
|
|
161
|
+
function An(e) {
|
|
150
162
|
let t = null;
|
|
151
163
|
return {
|
|
152
164
|
register(n) {
|
|
@@ -160,7 +172,7 @@ function Mn(e) {
|
|
|
160
172
|
}
|
|
161
173
|
};
|
|
162
174
|
}
|
|
163
|
-
function
|
|
175
|
+
function ql() {
|
|
164
176
|
const e = /* @__PURE__ */ new Map();
|
|
165
177
|
return {
|
|
166
178
|
register(t, n) {
|
|
@@ -192,7 +204,7 @@ const at = () => {
|
|
|
192
204
|
signOut: e.signOut
|
|
193
205
|
};
|
|
194
206
|
};
|
|
195
|
-
function
|
|
207
|
+
function Vn() {
|
|
196
208
|
const { user: e } = at();
|
|
197
209
|
function t(n) {
|
|
198
210
|
const a = e.value?.permissions ?? [];
|
|
@@ -208,20 +220,20 @@ function An() {
|
|
|
208
220
|
hasAccess: t
|
|
209
221
|
};
|
|
210
222
|
}
|
|
211
|
-
const
|
|
212
|
-
function
|
|
223
|
+
const pe = ce("notification"), de = An();
|
|
224
|
+
function Dn(e) {
|
|
213
225
|
de.register(e);
|
|
214
226
|
}
|
|
215
227
|
function xe(e, t) {
|
|
216
228
|
const n = de.get();
|
|
217
229
|
if (!n) {
|
|
218
|
-
|
|
230
|
+
pe.debug("Backend not yet registered — notification call ignored.");
|
|
219
231
|
return;
|
|
220
232
|
}
|
|
221
233
|
return t = ae(
|
|
222
234
|
n.defaultOptions,
|
|
223
235
|
t
|
|
224
|
-
), (!t.notificationId || typeof t.notificationId != "string" && typeof t.notificationId != "number") && (t.notificationId =
|
|
236
|
+
), (!t.notificationId || typeof t.notificationId != "string" && typeof t.notificationId != "number") && (t.notificationId = Xe()), t = {
|
|
225
237
|
...t,
|
|
226
238
|
content: e
|
|
227
239
|
}, n.appendInstance(t), t.notificationId;
|
|
@@ -241,14 +253,14 @@ re.update = (e, t) => {
|
|
|
241
253
|
const n = de.get();
|
|
242
254
|
if (!n) return e;
|
|
243
255
|
if (!n.hasNotification(e))
|
|
244
|
-
return
|
|
256
|
+
return pe.warn(`Cannot update: notification with ID ${e} not found`), e;
|
|
245
257
|
const a = n.getNotification(String(e));
|
|
246
258
|
if (a)
|
|
247
259
|
if (t.position && t.position !== a.position) {
|
|
248
260
|
const l = {
|
|
249
261
|
...a,
|
|
250
262
|
...t,
|
|
251
|
-
updateId:
|
|
263
|
+
updateId: Xe(),
|
|
252
264
|
notificationId: e
|
|
253
265
|
};
|
|
254
266
|
let r;
|
|
@@ -257,7 +269,7 @@ re.update = (e, t) => {
|
|
|
257
269
|
} else {
|
|
258
270
|
const l = {
|
|
259
271
|
...t,
|
|
260
|
-
updateId:
|
|
272
|
+
updateId: Xe(),
|
|
261
273
|
notificationId: e
|
|
262
274
|
};
|
|
263
275
|
return n.actions.update(l), e;
|
|
@@ -278,11 +290,11 @@ re.clearPosition = (e) => {
|
|
|
278
290
|
re.debug = () => {
|
|
279
291
|
const e = de.get();
|
|
280
292
|
if (!e)
|
|
281
|
-
return
|
|
293
|
+
return pe.debug("Backend not registered"), { active: [], defaultOptions: {} };
|
|
282
294
|
Object.entries(e.defaultOptions).forEach(([n, a]) => {
|
|
283
|
-
|
|
295
|
+
pe.debug(`Default option ${n}: `, a);
|
|
284
296
|
}), Object.entries(e.actions).forEach(([n]) => {
|
|
285
|
-
|
|
297
|
+
pe.debug(`Available action: ${n}`);
|
|
286
298
|
});
|
|
287
299
|
const t = e.getAllNotifications().reduce((n, a) => {
|
|
288
300
|
const l = a.position || e.defaultOptions.position;
|
|
@@ -293,18 +305,18 @@ re.debug = () => {
|
|
|
293
305
|
}), n;
|
|
294
306
|
}, {});
|
|
295
307
|
return Object.entries(t).forEach(([n, a]) => {
|
|
296
|
-
|
|
308
|
+
pe.debug(`Position ${n}: ${a.length} notifications`), a.forEach((l) => pe.debug(` - ${l.id} (${l.type}): ${l.content}`));
|
|
297
309
|
}), {
|
|
298
310
|
active: e.getAllNotifications(),
|
|
299
311
|
defaultOptions: e.defaultOptions
|
|
300
312
|
};
|
|
301
313
|
};
|
|
302
|
-
const
|
|
314
|
+
const Nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
303
315
|
__proto__: null,
|
|
304
316
|
notification: re,
|
|
305
|
-
setNotificationBackend:
|
|
317
|
+
setNotificationBackend: Dn
|
|
306
318
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
307
|
-
function
|
|
319
|
+
function Fn(e, t, n = {}) {
|
|
308
320
|
const a = C(() => fe(n.placement) ?? "bottom"), l = C(() => fe(n.strategy) ?? "absolute"), r = C(() => {
|
|
309
321
|
const u = fe(n.middleware);
|
|
310
322
|
if (u?.length)
|
|
@@ -312,8 +324,8 @@ function Nn(e, t, n = {}) {
|
|
|
312
324
|
const f = [];
|
|
313
325
|
fe(n.enableFlip) !== !1 && f.push($t({ padding: n.shiftPadding ?? 8 })), fe(n.enableShift) !== !1 && f.push(Ot({ padding: n.shiftPadding ?? 8 }));
|
|
314
326
|
const m = fe(n.offset);
|
|
315
|
-
return typeof m == "number" ? f.push(
|
|
316
|
-
|
|
327
|
+
return typeof m == "number" ? f.push(Ye(m)) : f.push(
|
|
328
|
+
Ye({
|
|
317
329
|
mainAxis: m?.mainAxis ?? 0,
|
|
318
330
|
crossAxis: m?.crossAxis ?? 0,
|
|
319
331
|
alignmentAxis: m?.alignmentAxis
|
|
@@ -336,9 +348,9 @@ function Nn(e, t, n = {}) {
|
|
|
336
348
|
resolvedStrategy: l
|
|
337
349
|
};
|
|
338
350
|
}
|
|
339
|
-
const
|
|
340
|
-
function
|
|
341
|
-
const t = U(
|
|
351
|
+
const zn = Symbol("vc-input-group-context");
|
|
352
|
+
function ze(e) {
|
|
353
|
+
const t = U(zn, 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
354
|
const d = /* @__PURE__ */ new Set();
|
|
343
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;
|
|
344
356
|
});
|
|
@@ -355,7 +367,7 @@ function Pe(e) {
|
|
|
355
367
|
groupContext: t
|
|
356
368
|
};
|
|
357
369
|
}
|
|
358
|
-
function
|
|
370
|
+
function Pn(e, t = {}) {
|
|
359
371
|
const { speed: n = 2 } = t, a = S(!1), l = S(!1);
|
|
360
372
|
let r = null;
|
|
361
373
|
function o() {
|
|
@@ -388,13 +400,13 @@ function Fn(e, t = {}) {
|
|
|
388
400
|
updateScrollState: o
|
|
389
401
|
};
|
|
390
402
|
}
|
|
391
|
-
function
|
|
403
|
+
function he() {
|
|
392
404
|
return U(Qt, S(!1));
|
|
393
405
|
}
|
|
394
406
|
Object.keys(ct).forEach((e) => {
|
|
395
407
|
Se(e, ct[e]);
|
|
396
408
|
});
|
|
397
|
-
const
|
|
409
|
+
const qn = (e, [t, n]) => {
|
|
398
410
|
if (!e?.files || !e.files?.length)
|
|
399
411
|
return !0;
|
|
400
412
|
const a = (o, s, u) => {
|
|
@@ -406,13 +418,13 @@ const zn = (e, [t, n]) => {
|
|
|
406
418
|
}, v.onload = () => {
|
|
407
419
|
f.revokeObjectURL(d);
|
|
408
420
|
const c = v.width >= Number(s) && v.height >= Number(u);
|
|
409
|
-
m(c ? !0 :
|
|
421
|
+
m(c ? !0 : be.global.t("messages.min_dimensions.error", { width: s, height: u }));
|
|
410
422
|
}, v.src = d;
|
|
411
423
|
});
|
|
412
424
|
}, l = [], r = e.files;
|
|
413
425
|
for (let o = 0; o < r.length; o++) {
|
|
414
426
|
if (!/\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(r[o].name))
|
|
415
|
-
return Promise.resolve(
|
|
427
|
+
return Promise.resolve(be.global.t("messages.min_dimensions.not_image_error"));
|
|
416
428
|
l.push(r[o]);
|
|
417
429
|
}
|
|
418
430
|
return Promise.all(l.map((o) => a(o, t, n))).then((o) => {
|
|
@@ -420,27 +432,27 @@ const zn = (e, [t, n]) => {
|
|
|
420
432
|
return s === !1 || typeof s == "string" ? s : !0;
|
|
421
433
|
});
|
|
422
434
|
};
|
|
423
|
-
Se("mindimensions",
|
|
424
|
-
const
|
|
435
|
+
Se("mindimensions", qn);
|
|
436
|
+
const Kn = (e, [t]) => {
|
|
425
437
|
if (!e?.files || !e.files?.length)
|
|
426
438
|
return !0;
|
|
427
439
|
const n = t * 1e3, a = (s) => s.size > n, l = [];
|
|
428
440
|
for (let s = 0; s < e.files.length; s++)
|
|
429
441
|
l.push(e.files[s]);
|
|
430
|
-
return l.map((s) => a(s)).find((s) => s === !0) ?
|
|
442
|
+
return l.map((s) => a(s)).find((s) => s === !0) ? be.global.t("messages.file_weight", { size: t }) : !0;
|
|
431
443
|
};
|
|
432
|
-
Se("fileWeight",
|
|
444
|
+
Se("fileWeight", Kn);
|
|
433
445
|
const Et = (e, [t], n, a) => {
|
|
434
446
|
if (!e || typeof e == "string" && !e.length)
|
|
435
447
|
return !0;
|
|
436
448
|
let l, r;
|
|
437
449
|
return e instanceof Date && (l = e), t instanceof Date && (r = t), typeof e == "string" && (l = new Date(e)), typeof t == "string" && (r = new Date(t)), l?.getTime && l?.getTime() > 0 && r?.getTime && r?.getTime() > 0 && n(r.getTime(), l.getTime()) ? a : !0;
|
|
438
|
-
},
|
|
439
|
-
Se("before",
|
|
440
|
-
const
|
|
441
|
-
Se("after",
|
|
442
|
-
const
|
|
443
|
-
Se("bigint",
|
|
450
|
+
}, Un = (e, [t]) => Et(e, [t], (n, a) => n < a, be.global.t("messages.before"));
|
|
451
|
+
Se("before", Un);
|
|
452
|
+
const Wn = (e, [t]) => Et(e, [t], (n, a) => n > a, be.global.t("messages.after"));
|
|
453
|
+
Se("after", Wn);
|
|
454
|
+
const jn = (e) => Number.isSafeInteger(parseInt(e)) ? !0 : be.global.t("messages.bigint");
|
|
455
|
+
Se("bigint", jn);
|
|
444
456
|
function we(e) {
|
|
445
457
|
const t = ce(`${e.name}-bus`), n = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set();
|
|
446
458
|
function l(d) {
|
|
@@ -502,7 +514,7 @@ function we(e) {
|
|
|
502
514
|
};
|
|
503
515
|
}
|
|
504
516
|
function Ct(e) {
|
|
505
|
-
const t =
|
|
517
|
+
const t = Ue({}), n = Ue([]), a = Ue(/* @__PURE__ */ new Map());
|
|
506
518
|
function l(d) {
|
|
507
519
|
a.set(d, (a.get(d) ?? 0) + 1);
|
|
508
520
|
}
|
|
@@ -567,7 +579,7 @@ function Ct(e) {
|
|
|
567
579
|
isRegistered: v
|
|
568
580
|
};
|
|
569
581
|
}
|
|
570
|
-
function
|
|
582
|
+
function Hn(e) {
|
|
571
583
|
const t = S(/* @__PURE__ */ new Map()), n = C(() => Array.from(t.value.values()).sort((r, o) => (r.order ?? 0) - (o.order ?? 0)));
|
|
572
584
|
function a(r) {
|
|
573
585
|
const o = e.getId(r) || crypto.randomUUID(), s = e.createItem(r, t.value.size);
|
|
@@ -584,7 +596,7 @@ function jn(e) {
|
|
|
584
596
|
};
|
|
585
597
|
}
|
|
586
598
|
function Bt(e) {
|
|
587
|
-
const t =
|
|
599
|
+
const t = Hn({
|
|
588
600
|
createItem: e.createItem,
|
|
589
601
|
getId: e.getId
|
|
590
602
|
}), n = {
|
|
@@ -594,42 +606,42 @@ function Bt(e) {
|
|
|
594
606
|
};
|
|
595
607
|
return e.bus.replayInto(n), n;
|
|
596
608
|
}
|
|
597
|
-
function
|
|
609
|
+
function Ne(e) {
|
|
598
610
|
return e.id !== void 0 ? `id:${String(e.id)}` : e.routeId ? `route:${e.routeId}` : e.url ? `url:${e.url}` : e.groupConfig?.id ? `gc:${e.groupConfig.id}:${e.title}` : e.group ? `g:${e.group}:${e.title}` : `hash:${JSON.stringify(St(e, "title"))}`;
|
|
599
611
|
}
|
|
600
612
|
const Te = S(/* @__PURE__ */ new Map()), se = we({
|
|
601
613
|
name: "menu-service",
|
|
602
|
-
getKey:
|
|
614
|
+
getKey: Ne,
|
|
603
615
|
registerIntoService: (e, t) => e.addMenuItem(t)
|
|
604
616
|
});
|
|
605
|
-
function
|
|
617
|
+
function Kl(e) {
|
|
606
618
|
se.preregister(e);
|
|
607
619
|
}
|
|
608
|
-
function
|
|
620
|
+
function Ul(e) {
|
|
609
621
|
se.removePreregistered((t) => ot(t, e)), se.broadcast((t) => t.removeMenuItem(e));
|
|
610
622
|
}
|
|
611
|
-
function
|
|
623
|
+
function Wl(e, t) {
|
|
612
624
|
Te.value.set(e, t), se.broadcast((n) => {
|
|
613
625
|
n.menuBadges.value.set(e, t);
|
|
614
626
|
});
|
|
615
627
|
}
|
|
616
|
-
function
|
|
628
|
+
function jl(e) {
|
|
617
629
|
const t = se.getFirstInstance();
|
|
618
630
|
return t ? t.menuBadges.value.get(e) : Te.value.get(e);
|
|
619
631
|
}
|
|
620
|
-
function
|
|
632
|
+
function Hl(e) {
|
|
621
633
|
Te.value.delete(e), se.broadcast((t) => {
|
|
622
634
|
t.menuBadges.value.delete(e);
|
|
623
635
|
});
|
|
624
636
|
}
|
|
625
|
-
function
|
|
637
|
+
function Gl() {
|
|
626
638
|
return se.getFirstInstance()?.menuBadges ?? Te;
|
|
627
639
|
}
|
|
628
|
-
const Ze = 1 / 0,
|
|
640
|
+
const Ze = 1 / 0, Gn = 1 / 0;
|
|
629
641
|
function ot(e, t) {
|
|
630
|
-
return
|
|
642
|
+
return Ne(e) === Ne(t);
|
|
631
643
|
}
|
|
632
|
-
function
|
|
644
|
+
function Jn(e) {
|
|
633
645
|
return e.groupConfig ? {
|
|
634
646
|
groupId: e.groupConfig.id,
|
|
635
647
|
groupTitle: e.groupConfig.title || e.groupConfig.id,
|
|
@@ -644,15 +656,15 @@ function Gn(e) {
|
|
|
644
656
|
groupPermissions: void 0
|
|
645
657
|
};
|
|
646
658
|
}
|
|
647
|
-
function
|
|
659
|
+
function Yn(e, t) {
|
|
648
660
|
return (e.priority ?? Ze) - (t.priority ?? Ze);
|
|
649
661
|
}
|
|
650
|
-
function
|
|
651
|
-
const n = (a) => a.inGroupPriority ?? a.priority ??
|
|
662
|
+
function Xn(e, t) {
|
|
663
|
+
const n = (a) => a.inGroupPriority ?? a.priority ?? Gn;
|
|
652
664
|
return n(e) - n(t);
|
|
653
665
|
}
|
|
654
|
-
function
|
|
655
|
-
const n =
|
|
666
|
+
function Zn(e, t) {
|
|
667
|
+
const n = Jn(e), a = {
|
|
656
668
|
...St(e, ["group", "groupIcon", "groupPriority", "groupConfig"])
|
|
657
669
|
}, l = t.get(n.groupId);
|
|
658
670
|
if (l) {
|
|
@@ -678,18 +690,18 @@ function Xn(e, t) {
|
|
|
678
690
|
function ft(e) {
|
|
679
691
|
const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
680
692
|
for (const a of e)
|
|
681
|
-
a.group || a.groupConfig ?
|
|
682
|
-
return
|
|
693
|
+
a.group || a.groupConfig ? Zn(a, t) : a.title && n.set(Ne(a), { ...a });
|
|
694
|
+
return Qn([...t.values(), ...n.values()]);
|
|
683
695
|
}
|
|
684
|
-
function
|
|
696
|
+
function Qn(e) {
|
|
685
697
|
return e.map(
|
|
686
698
|
(t) => ({
|
|
687
699
|
...t,
|
|
688
|
-
children: t.children ? [...t.children].sort(
|
|
700
|
+
children: t.children ? [...t.children].sort(Xn) : void 0
|
|
689
701
|
})
|
|
690
|
-
).sort(
|
|
702
|
+
).sort(Yn);
|
|
691
703
|
}
|
|
692
|
-
function
|
|
704
|
+
function _n() {
|
|
693
705
|
const e = S([]);
|
|
694
706
|
let t = [];
|
|
695
707
|
const n = S(new Map(Te.value));
|
|
@@ -708,7 +720,7 @@ function Qn() {
|
|
|
708
720
|
};
|
|
709
721
|
return se.replayInto(r), r;
|
|
710
722
|
}
|
|
711
|
-
function
|
|
723
|
+
function Pe(e) {
|
|
712
724
|
const { key: t, create: n, bus: a, name: l, onMissing: r } = e;
|
|
713
725
|
function o() {
|
|
714
726
|
const u = U(t, null);
|
|
@@ -728,20 +740,20 @@ function Fe(e) {
|
|
|
728
740
|
use: s
|
|
729
741
|
};
|
|
730
742
|
}
|
|
731
|
-
const
|
|
743
|
+
const ea = ce("use-menu-service"), Lt = Pe({
|
|
732
744
|
key: _t,
|
|
733
|
-
create:
|
|
745
|
+
create: _n,
|
|
734
746
|
bus: se,
|
|
735
747
|
name: "MenuService",
|
|
736
|
-
onMissing: () =>
|
|
748
|
+
onMissing: () => ea.error("Menu service not found in current context. Injection chain:", Fe())
|
|
737
749
|
});
|
|
738
|
-
function
|
|
750
|
+
function Jl() {
|
|
739
751
|
return Lt.provide();
|
|
740
752
|
}
|
|
741
|
-
function
|
|
753
|
+
function Yl() {
|
|
742
754
|
return Lt.use();
|
|
743
755
|
}
|
|
744
|
-
function
|
|
756
|
+
function ta() {
|
|
745
757
|
return {
|
|
746
758
|
isMobile: U(on, S(!1)),
|
|
747
759
|
isDesktop: U(an, S(!0)),
|
|
@@ -750,9 +762,9 @@ function ea() {
|
|
|
750
762
|
isTouch: U(en, !1)
|
|
751
763
|
};
|
|
752
764
|
}
|
|
753
|
-
const
|
|
754
|
-
function
|
|
755
|
-
const e = U(
|
|
765
|
+
const na = Symbol("AppInsightsOptions"), aa = Symbol("AppInsightsInstance");
|
|
766
|
+
function oa() {
|
|
767
|
+
const e = U(aa, null), { user: t } = at(), n = U(na, void 0);
|
|
756
768
|
function a() {
|
|
757
769
|
const l = n?.appName ? `[${n.appName}] ` : "", r = (u) => `${l}${u.name}`;
|
|
758
770
|
function o(u) {
|
|
@@ -778,9 +790,9 @@ function aa() {
|
|
|
778
790
|
appInsights: e
|
|
779
791
|
};
|
|
780
792
|
}
|
|
781
|
-
const
|
|
782
|
-
function
|
|
783
|
-
const t = S(null), n =
|
|
793
|
+
const la = ce("use-error-handler");
|
|
794
|
+
function ia(e) {
|
|
795
|
+
const t = S(null), n = Fe(), { appInsights: a } = oa(), { user: l } = at(), r = S(!1);
|
|
784
796
|
function o() {
|
|
785
797
|
t.value = null, n && n.emit("reset");
|
|
786
798
|
}
|
|
@@ -788,14 +800,14 @@ function la(e) {
|
|
|
788
800
|
if (r.value)
|
|
789
801
|
return !e;
|
|
790
802
|
r.value = !0;
|
|
791
|
-
const u =
|
|
803
|
+
const u = Ae(s);
|
|
792
804
|
return t.value = u, a && a.trackException({
|
|
793
805
|
exception: u,
|
|
794
806
|
properties: {
|
|
795
807
|
userId: l.value?.id ?? "",
|
|
796
808
|
userName: l.value?.userName ?? ""
|
|
797
809
|
}
|
|
798
|
-
}),
|
|
810
|
+
}), la.error("Captured Error:", u.originalError), n && n.emit("error", u), ye(() => {
|
|
799
811
|
r.value = !1;
|
|
800
812
|
}), !e;
|
|
801
813
|
}), {
|
|
@@ -803,21 +815,21 @@ function la(e) {
|
|
|
803
815
|
reset: o
|
|
804
816
|
};
|
|
805
817
|
}
|
|
806
|
-
const
|
|
807
|
-
function
|
|
808
|
-
|
|
818
|
+
const Ve = /* @__PURE__ */ new WeakMap();
|
|
819
|
+
function Xl(e, t, n) {
|
|
820
|
+
Ve.set(e, { timerId: t, notifId: n });
|
|
809
821
|
}
|
|
810
|
-
function
|
|
822
|
+
function ra(e) {
|
|
811
823
|
if (e && typeof e == "object") {
|
|
812
|
-
const t =
|
|
824
|
+
const t = Ve.get(e), n = "originalError" in e && e.originalError && typeof e.originalError == "object" ? e.originalError : void 0, a = t ?? (n ? Ve.get(n) : void 0), l = t ? e : n;
|
|
813
825
|
if (a && l)
|
|
814
|
-
return clearTimeout(a.timerId), Promise.resolve().then(() =>
|
|
826
|
+
return clearTimeout(a.timerId), Promise.resolve().then(() => Nn).then(({ notification: r }) => {
|
|
815
827
|
r.remove(a.notifId);
|
|
816
|
-
}),
|
|
828
|
+
}), Ve.delete(l), !0;
|
|
817
829
|
}
|
|
818
830
|
return !1;
|
|
819
831
|
}
|
|
820
|
-
const
|
|
832
|
+
const Zl = G({
|
|
821
833
|
name: "ErrorInterceptor",
|
|
822
834
|
props: {
|
|
823
835
|
capture: {
|
|
@@ -834,11 +846,11 @@ const Xl = G({
|
|
|
834
846
|
}
|
|
835
847
|
},
|
|
836
848
|
setup(e, { slots: t }) {
|
|
837
|
-
const n = U(It, void 0), a = U(ln, void 0), l = !!(n && a), { error: r, reset: o } =
|
|
849
|
+
const n = U(It, void 0), a = U(ln, void 0), l = !!(n && a), { error: r, reset: o } = ia(l || e.capture);
|
|
838
850
|
return l && X(r, (s) => {
|
|
839
851
|
const u = n.value.id;
|
|
840
852
|
if (s) {
|
|
841
|
-
if (
|
|
853
|
+
if (ra(s), rn())
|
|
842
854
|
return;
|
|
843
855
|
a.setBladeError(u, s);
|
|
844
856
|
} else
|
|
@@ -848,10 +860,10 @@ const Xl = G({
|
|
|
848
860
|
reset: o
|
|
849
861
|
});
|
|
850
862
|
}
|
|
851
|
-
}),
|
|
863
|
+
}), sa = Symbol("vc-button-group"), ua = ["type", "disabled", "aria-label", "aria-busy", "aria-pressed"], ca = {
|
|
852
864
|
key: 2,
|
|
853
865
|
class: "vc-button__title"
|
|
854
|
-
},
|
|
866
|
+
}, da = /* @__PURE__ */ G({
|
|
855
867
|
__name: "vc-button",
|
|
856
868
|
props: {
|
|
857
869
|
icon: {},
|
|
@@ -871,7 +883,7 @@ const Xl = G({
|
|
|
871
883
|
const n = {
|
|
872
884
|
base: "default",
|
|
873
885
|
xs: "sm"
|
|
874
|
-
}, a = e, l =
|
|
886
|
+
}, a = e, l = he(), r = t, o = U(sa, null), s = C(() => {
|
|
875
887
|
const m = o?.size?.value ?? a.size;
|
|
876
888
|
return n[m] ?? m;
|
|
877
889
|
}), u = C(() => [
|
|
@@ -898,28 +910,28 @@ const Xl = G({
|
|
|
898
910
|
"aria-pressed": e.selected || void 0,
|
|
899
911
|
onClick: f
|
|
900
912
|
}, [
|
|
901
|
-
e.loading ? (g(),
|
|
913
|
+
e.loading ? (g(), P(i(W), {
|
|
902
914
|
key: 0,
|
|
903
915
|
icon: "lucide-loader-2",
|
|
904
916
|
class: "vc-button__icon tw-animate-spin",
|
|
905
917
|
size: e.iconSize
|
|
906
|
-
}, null, 8, ["size"])) : e.icon ? (g(),
|
|
918
|
+
}, null, 8, ["size"])) : e.icon ? (g(), P(i(W), {
|
|
907
919
|
key: 1,
|
|
908
920
|
class: Z(["vc-button--icon", e.iconClass]),
|
|
909
921
|
icon: e.icon,
|
|
910
922
|
size: e.iconSize
|
|
911
923
|
}, null, 8, ["class", "icon", "size"])) : w("", !0),
|
|
912
|
-
m.$slots.default ? (g(), h("span",
|
|
924
|
+
m.$slots.default ? (g(), h("span", ca, [
|
|
913
925
|
B(m.$slots, "default")
|
|
914
926
|
])) : w("", !0)
|
|
915
|
-
], 10,
|
|
927
|
+
], 10, ua));
|
|
916
928
|
}
|
|
917
929
|
}), lt = we({
|
|
918
930
|
name: "toolbar-service",
|
|
919
931
|
getKey: (e) => `${e.bladeId.toLowerCase()}::${e.toolbarItem.id}`,
|
|
920
932
|
registerIntoService: (e, t) => e.registerToolbarItem(t.toolbarItem, t.bladeId)
|
|
921
933
|
});
|
|
922
|
-
function
|
|
934
|
+
function Ql(e, t) {
|
|
923
935
|
const n = t.toLowerCase();
|
|
924
936
|
lt.preregister({
|
|
925
937
|
bladeId: n,
|
|
@@ -959,24 +971,24 @@ function Rt() {
|
|
|
959
971
|
};
|
|
960
972
|
return lt.replayInto(o), o;
|
|
961
973
|
}
|
|
962
|
-
const
|
|
963
|
-
let
|
|
964
|
-
const
|
|
974
|
+
const fa = "fallback-blade-id";
|
|
975
|
+
let je = null;
|
|
976
|
+
const ga = Pe({
|
|
965
977
|
key: kt,
|
|
966
978
|
create: Rt,
|
|
967
979
|
bus: lt,
|
|
968
980
|
name: "ToolbarService"
|
|
969
981
|
});
|
|
970
|
-
function
|
|
971
|
-
return
|
|
982
|
+
function _l() {
|
|
983
|
+
return ga.provide();
|
|
972
984
|
}
|
|
973
|
-
function
|
|
985
|
+
function ei(e = {}) {
|
|
974
986
|
const { autoCleanup: t = !0 } = e, n = U(kt, null);
|
|
975
|
-
!n && !
|
|
976
|
-
const a = n ||
|
|
987
|
+
!n && !je && (je = Rt());
|
|
988
|
+
const a = n || je;
|
|
977
989
|
if (!a)
|
|
978
990
|
throw new Error("Toolbar service is not available");
|
|
979
|
-
const l = U(It, void 0), r = C(() => l?.value?.id ??
|
|
991
|
+
const l = U(It, void 0), r = C(() => l?.value?.id ?? fa), o = (c) => c ?? r.value, s = (c, y) => {
|
|
980
992
|
a.registerToolbarItem(c, o(y));
|
|
981
993
|
}, u = (c, y) => {
|
|
982
994
|
a.unregisterToolbarItem(c, o(y));
|
|
@@ -985,7 +997,7 @@ function _l(e = {}) {
|
|
|
985
997
|
}, m = (c) => a.getToolbarItems(o(c)), v = (c) => {
|
|
986
998
|
a.clearBladeToolbarItems(o(c));
|
|
987
999
|
};
|
|
988
|
-
return
|
|
1000
|
+
return Fe() && t && Qe(() => {
|
|
989
1001
|
v();
|
|
990
1002
|
}), {
|
|
991
1003
|
registerToolbarItem: s,
|
|
@@ -997,7 +1009,7 @@ function _l(e = {}) {
|
|
|
997
1009
|
registeredToolbarItems: a.registeredToolbarItems
|
|
998
1010
|
};
|
|
999
1011
|
}
|
|
1000
|
-
const
|
|
1012
|
+
const va = ["aria-label"], pa = { class: "tw-sr-only" }, ma = ["aria-label"], ya = { class: "tw-sr-only" }, oe = /* @__PURE__ */ G({
|
|
1001
1013
|
__name: "vc-skeleton",
|
|
1002
1014
|
props: {
|
|
1003
1015
|
variant: { default: "text" },
|
|
@@ -1025,19 +1037,19 @@ const ga = ["aria-label"], va = { class: "tw-sr-only" }, pa = ["aria-label"], ma
|
|
|
1025
1037
|
"aria-busy": "true",
|
|
1026
1038
|
"aria-label": e.ariaLabel
|
|
1027
1039
|
}, [
|
|
1028
|
-
L("span",
|
|
1040
|
+
L("span", pa, N(e.ariaLabel), 1),
|
|
1029
1041
|
(g(!0), h(ke, null, _e(e.rows, (o) => (g(), h("div", {
|
|
1030
1042
|
key: o,
|
|
1031
1043
|
class: "vc-skeleton__row",
|
|
1032
|
-
style:
|
|
1044
|
+
style: De({
|
|
1033
1045
|
width: n(o)
|
|
1034
1046
|
}),
|
|
1035
1047
|
"aria-hidden": "true"
|
|
1036
1048
|
}, null, 4))), 128))
|
|
1037
|
-
], 10,
|
|
1049
|
+
], 10, va)) : (g(), h("div", {
|
|
1038
1050
|
key: 1,
|
|
1039
1051
|
class: Z(["vc-skeleton__shape", [`vc-skeleton__shape--${e.variant}`, { "tw-animate-pulse": e.animated }]]),
|
|
1040
|
-
style:
|
|
1052
|
+
style: De({
|
|
1041
1053
|
width: a(e.width),
|
|
1042
1054
|
height: a(e.height)
|
|
1043
1055
|
}),
|
|
@@ -1045,10 +1057,10 @@ const ga = ["aria-label"], va = { class: "tw-sr-only" }, pa = ["aria-label"], ma
|
|
|
1045
1057
|
"aria-busy": "true",
|
|
1046
1058
|
"aria-label": e.ariaLabel
|
|
1047
1059
|
}, [
|
|
1048
|
-
L("span",
|
|
1049
|
-
], 14,
|
|
1060
|
+
L("span", ya, N(e.ariaLabel), 1)
|
|
1061
|
+
], 14, ma));
|
|
1050
1062
|
}
|
|
1051
|
-
}),
|
|
1063
|
+
}), ti = /* @__PURE__ */ G({
|
|
1052
1064
|
__name: "vc-container",
|
|
1053
1065
|
props: {
|
|
1054
1066
|
shadow: { type: Boolean },
|
|
@@ -1068,7 +1080,7 @@ const ga = ["aria-label"], va = { class: "tw-sr-only" }, pa = ["aria-label"], ma
|
|
|
1068
1080
|
}), t({
|
|
1069
1081
|
scrollTop: o,
|
|
1070
1082
|
component: l
|
|
1071
|
-
}), (u, f) => (g(),
|
|
1083
|
+
}), (u, f) => (g(), P(yt(e.ariaLabel ? "section" : "div"), {
|
|
1072
1084
|
class: Z([
|
|
1073
1085
|
"vc-container",
|
|
1074
1086
|
{
|
|
@@ -1092,7 +1104,7 @@ const ga = ["aria-label"], va = { class: "tw-sr-only" }, pa = ["aria-label"], ma
|
|
|
1092
1104
|
_: 3
|
|
1093
1105
|
}, 8, ["class", "aria-label"]));
|
|
1094
1106
|
}
|
|
1095
|
-
}),
|
|
1107
|
+
}), ba = ["id", "role"], ha = /* @__PURE__ */ G({
|
|
1096
1108
|
__name: "vc-hint",
|
|
1097
1109
|
props: {
|
|
1098
1110
|
id: {},
|
|
@@ -1107,19 +1119,19 @@ const ga = ["aria-label"], va = { class: "tw-sr-only" }, pa = ["aria-label"], ma
|
|
|
1107
1119
|
role: e.error ? "alert" : void 0
|
|
1108
1120
|
}, [
|
|
1109
1121
|
B(t.$slots, "default")
|
|
1110
|
-
], 10,
|
|
1122
|
+
], 10, ba));
|
|
1111
1123
|
}
|
|
1112
|
-
}), ue =
|
|
1124
|
+
}), ue = ha, Ia = { class: "vc-label__text" }, ka = { class: "vc-label__content" }, Sa = {
|
|
1113
1125
|
key: 0,
|
|
1114
1126
|
class: "vc-label__required",
|
|
1115
1127
|
"aria-hidden": "true"
|
|
1116
|
-
},
|
|
1128
|
+
}, wa = {
|
|
1117
1129
|
key: 0,
|
|
1118
1130
|
class: "vc-label__tooltip"
|
|
1119
|
-
},
|
|
1131
|
+
}, $a = {
|
|
1120
1132
|
key: 1,
|
|
1121
1133
|
class: "vc-label__language"
|
|
1122
|
-
},
|
|
1134
|
+
}, qe = /* @__PURE__ */ G({
|
|
1123
1135
|
__name: "vc-label",
|
|
1124
1136
|
props: {
|
|
1125
1137
|
required: { type: Boolean },
|
|
@@ -1130,20 +1142,20 @@ const ga = ["aria-label"], va = { class: "tw-sr-only" }, pa = ["aria-label"], ma
|
|
|
1130
1142
|
htmlFor: {}
|
|
1131
1143
|
},
|
|
1132
1144
|
setup(e) {
|
|
1133
|
-
return (t, n) => (g(),
|
|
1145
|
+
return (t, n) => (g(), P(yt(e.htmlFor ? "label" : "div"), {
|
|
1134
1146
|
class: Z(["vc-label", {
|
|
1135
1147
|
"vc-label--error": e.error
|
|
1136
1148
|
}]),
|
|
1137
1149
|
for: e.htmlFor || void 0
|
|
1138
1150
|
}, {
|
|
1139
1151
|
default: E(() => [
|
|
1140
|
-
L("div",
|
|
1141
|
-
L("span",
|
|
1152
|
+
L("div", Ia, [
|
|
1153
|
+
L("span", ka, [
|
|
1142
1154
|
B(t.$slots, "default")
|
|
1143
1155
|
]),
|
|
1144
|
-
e.required ? (g(), h("span",
|
|
1156
|
+
e.required ? (g(), h("span", Sa, "*")) : w("", !0)
|
|
1145
1157
|
]),
|
|
1146
|
-
t.$slots.tooltip ? (g(), h("span",
|
|
1158
|
+
t.$slots.tooltip ? (g(), h("span", wa, [
|
|
1147
1159
|
T(i(sn), { placement: "top-start" }, {
|
|
1148
1160
|
tooltip: E(() => [
|
|
1149
1161
|
B(t.$slots, "tooltip")
|
|
@@ -1158,12 +1170,12 @@ const ga = ["aria-label"], va = { class: "tw-sr-only" }, pa = ["aria-label"], ma
|
|
|
1158
1170
|
_: 3
|
|
1159
1171
|
})
|
|
1160
1172
|
])) : w("", !0),
|
|
1161
|
-
e.multilanguage ? (g(), h("div",
|
|
1173
|
+
e.multilanguage ? (g(), h("div", $a, N(e.currentLanguage), 1)) : w("", !0)
|
|
1162
1174
|
]),
|
|
1163
1175
|
_: 3
|
|
1164
1176
|
}, 8, ["class", "for"]));
|
|
1165
1177
|
}
|
|
1166
|
-
}),
|
|
1178
|
+
}), Oa = ["aria-label"], gt = 40, Ea = /* @__PURE__ */ G({
|
|
1167
1179
|
__name: "vc-scrollable-container",
|
|
1168
1180
|
props: {
|
|
1169
1181
|
speed: { default: void 0 }
|
|
@@ -1171,7 +1183,7 @@ const ga = ["aria-label"], va = { class: "tw-sr-only" }, pa = ["aria-label"], ma
|
|
|
1171
1183
|
setup(e, { expose: t }) {
|
|
1172
1184
|
const n = e, a = S(null), l = {};
|
|
1173
1185
|
n.speed !== void 0 && (l.speed = n.speed);
|
|
1174
|
-
const { canScrollUp: r, canScrollDown: o, startScroll: s, stopScroll: u, updateScrollState: f } =
|
|
1186
|
+
const { canScrollUp: r, canScrollDown: o, startScroll: s, stopScroll: u, updateScrollState: f } = Pn(
|
|
1175
1187
|
a,
|
|
1176
1188
|
l
|
|
1177
1189
|
);
|
|
@@ -1230,29 +1242,29 @@ const ga = ["aria-label"], va = { class: "tw-sr-only" }, pa = ["aria-label"], ma
|
|
|
1230
1242
|
})
|
|
1231
1243
|
])
|
|
1232
1244
|
], 34)
|
|
1233
|
-
], 8,
|
|
1245
|
+
], 8, Oa));
|
|
1234
1246
|
}
|
|
1235
1247
|
}), it = /* @__PURE__ */ new Map();
|
|
1236
|
-
function
|
|
1248
|
+
function Ca(e) {
|
|
1237
1249
|
return e?.map((t) => t.toLowerCase());
|
|
1238
1250
|
}
|
|
1239
|
-
function
|
|
1251
|
+
function ni(e) {
|
|
1240
1252
|
it.set(e.id, {
|
|
1241
1253
|
...e,
|
|
1242
|
-
targetBlades:
|
|
1254
|
+
targetBlades: Ca(e.targetBlades)
|
|
1243
1255
|
});
|
|
1244
1256
|
}
|
|
1245
|
-
function
|
|
1257
|
+
function Ba(e) {
|
|
1246
1258
|
const t = e.toLowerCase();
|
|
1247
1259
|
return Array.from(it.values()).filter((n) => !n.targetBlades || n.targetBlades.includes(t)).map((n) => ({ ...n, targetBlades: n.targetBlades ? [...n.targetBlades] : void 0 }));
|
|
1248
1260
|
}
|
|
1249
|
-
function
|
|
1261
|
+
function La() {
|
|
1250
1262
|
return Array.from(it.values()).map((e) => ({
|
|
1251
1263
|
...e,
|
|
1252
1264
|
targetBlades: e.targetBlades ? [...e.targetBlades] : void 0
|
|
1253
1265
|
}));
|
|
1254
1266
|
}
|
|
1255
|
-
function
|
|
1267
|
+
function Ra(e) {
|
|
1256
1268
|
return gn(e);
|
|
1257
1269
|
}
|
|
1258
1270
|
const xt = we({
|
|
@@ -1260,14 +1272,14 @@ const xt = we({
|
|
|
1260
1272
|
getKey: (e) => `${e.bladeId.toLowerCase()}::${e.widget.id}`,
|
|
1261
1273
|
registerIntoService: (e, t) => e.registerWidget(t.widget, t.bladeId)
|
|
1262
1274
|
});
|
|
1263
|
-
function
|
|
1275
|
+
function ai(e, t) {
|
|
1264
1276
|
const n = t.toLowerCase();
|
|
1265
1277
|
xt.preregister({
|
|
1266
1278
|
bladeId: n,
|
|
1267
1279
|
widget: e
|
|
1268
1280
|
});
|
|
1269
1281
|
}
|
|
1270
|
-
function
|
|
1282
|
+
function oi() {
|
|
1271
1283
|
const e = Ct({
|
|
1272
1284
|
createRegistration: (a, l) => ({ bladeId: a, widget: l }),
|
|
1273
1285
|
getRegistrationBladeId: (a) => a.bladeId,
|
|
@@ -1277,29 +1289,29 @@ function ai() {
|
|
|
1277
1289
|
unregisterWidget: (a, l) => e.unregister(a, l),
|
|
1278
1290
|
getWidgets: (a) => e.get(a),
|
|
1279
1291
|
updateWidget: ({ id: a, bladeId: l, widget: r }) => e.update(a, l, r),
|
|
1280
|
-
getExternalWidgetsForBlade: (a) =>
|
|
1281
|
-
getAllExternalWidgets:
|
|
1282
|
-
cloneWidget:
|
|
1292
|
+
getExternalWidgetsForBlade: (a) => Ba(a.toLowerCase()),
|
|
1293
|
+
getAllExternalWidgets: La,
|
|
1294
|
+
cloneWidget: Ra
|
|
1283
1295
|
};
|
|
1284
1296
|
return xt.replayInto(n), n;
|
|
1285
1297
|
}
|
|
1286
|
-
const
|
|
1298
|
+
const xa = ce("use-theme"), ve = S([
|
|
1287
1299
|
{ key: "light", localizationKey: "CORE.THEMES.LIGHT" },
|
|
1288
1300
|
{ key: "dark", localizationKey: "CORE.THEMES.DARK" }
|
|
1289
|
-
]),
|
|
1290
|
-
const { t: e } =
|
|
1301
|
+
]), li = hn(() => {
|
|
1302
|
+
const { t: e } = be.global;
|
|
1291
1303
|
function t(f) {
|
|
1292
1304
|
(Array.isArray(f) ? f : [f]).forEach((m) => {
|
|
1293
|
-
|
|
1305
|
+
ve.value.some((v) => v.key === m.key) || ve.value.push(m);
|
|
1294
1306
|
});
|
|
1295
1307
|
}
|
|
1296
1308
|
function n(f) {
|
|
1297
1309
|
(Array.isArray(f) ? f : [f]).forEach((m) => {
|
|
1298
|
-
const v =
|
|
1299
|
-
v >= 0 &&
|
|
1310
|
+
const v = ve.value.findIndex((d) => d.key === m);
|
|
1311
|
+
v >= 0 && ve.value.splice(v, 1);
|
|
1300
1312
|
});
|
|
1301
1313
|
}
|
|
1302
|
-
const a = C(() =>
|
|
1314
|
+
const a = C(() => ve.value.map((f) => f.key)), l = pn({
|
|
1303
1315
|
attribute: "data-theme",
|
|
1304
1316
|
emitAuto: !0,
|
|
1305
1317
|
initialValue: "light",
|
|
@@ -1312,21 +1324,21 @@ const Ra = ce("use-theme"), ge = S([
|
|
|
1312
1324
|
)
|
|
1313
1325
|
}
|
|
1314
1326
|
}), { state: r, next: o } = mn(a, { initialValue: l });
|
|
1315
|
-
|
|
1327
|
+
He(() => {
|
|
1316
1328
|
r.value && (l.value = r.value);
|
|
1317
1329
|
});
|
|
1318
1330
|
function s(f) {
|
|
1319
|
-
a.value.includes(f) ? r.value = f :
|
|
1331
|
+
a.value.includes(f) ? r.value = f : xa.warn(`Attempted to set an unregistered theme: ${f}`);
|
|
1320
1332
|
}
|
|
1321
1333
|
const u = C(() => {
|
|
1322
|
-
const f =
|
|
1323
|
-
return f ? f.localizationKey ? e(f.localizationKey) :
|
|
1334
|
+
const f = ve.value.find((m) => m.key === r.value);
|
|
1335
|
+
return f ? f.localizationKey ? e(f.localizationKey) : We(f.key) : r.value ? We(r.value) : "";
|
|
1324
1336
|
});
|
|
1325
1337
|
return {
|
|
1326
1338
|
themes: C(
|
|
1327
|
-
() =>
|
|
1339
|
+
() => ve.value.map((f) => ({
|
|
1328
1340
|
key: f.key,
|
|
1329
|
-
name: f.localizationKey ? e(f.localizationKey) :
|
|
1341
|
+
name: f.localizationKey ? e(f.localizationKey) : We(f.key)
|
|
1330
1342
|
}))
|
|
1331
1343
|
),
|
|
1332
1344
|
currentThemeKey: r,
|
|
@@ -1341,15 +1353,15 @@ const Ra = ce("use-theme"), ge = S([
|
|
|
1341
1353
|
getKey: (e) => e.id,
|
|
1342
1354
|
registerIntoService: (e, t) => e.registerWidget(t)
|
|
1343
1355
|
});
|
|
1344
|
-
function
|
|
1356
|
+
function ii(e) {
|
|
1345
1357
|
rt.preregister(e);
|
|
1346
1358
|
}
|
|
1347
|
-
const
|
|
1348
|
-
widgets:
|
|
1349
|
-
layout:
|
|
1359
|
+
const Ta = () => ({
|
|
1360
|
+
widgets: Ge(/* @__PURE__ */ new Map()),
|
|
1361
|
+
layout: Ge(/* @__PURE__ */ new Map())
|
|
1350
1362
|
});
|
|
1351
|
-
function
|
|
1352
|
-
const t =
|
|
1363
|
+
function Ma(e = {}) {
|
|
1364
|
+
const t = Ta(), n = e.hasAccess ?? (() => !0), s = {
|
|
1353
1365
|
registerWidget: (u) => {
|
|
1354
1366
|
if (t.widgets.has(u.id))
|
|
1355
1367
|
throw new Error(`Widget with id ${u.id} already registered`);
|
|
@@ -1375,28 +1387,28 @@ function Ta(e = {}) {
|
|
|
1375
1387
|
};
|
|
1376
1388
|
return rt.replayInto(s), s;
|
|
1377
1389
|
}
|
|
1378
|
-
const vt = ce("use-dashboard"), Tt =
|
|
1390
|
+
const vt = ce("use-dashboard"), Tt = Pe({
|
|
1379
1391
|
key: un,
|
|
1380
1392
|
bus: rt,
|
|
1381
1393
|
name: "DashboardService",
|
|
1382
1394
|
create: () => {
|
|
1383
1395
|
let e = () => !0;
|
|
1384
1396
|
try {
|
|
1385
|
-
const { hasAccess: t } =
|
|
1397
|
+
const { hasAccess: t } = Vn();
|
|
1386
1398
|
e = (n) => t(n);
|
|
1387
1399
|
} catch (t) {
|
|
1388
1400
|
vt.warn("Permissions composable unavailable, dashboard falls back to allow-all access check", t);
|
|
1389
1401
|
}
|
|
1390
|
-
return
|
|
1402
|
+
return Ma({
|
|
1391
1403
|
hasAccess: e
|
|
1392
1404
|
});
|
|
1393
1405
|
},
|
|
1394
1406
|
onMissing: () => vt.error("Dashboard service not found")
|
|
1395
1407
|
});
|
|
1396
|
-
function
|
|
1408
|
+
function ri() {
|
|
1397
1409
|
return Tt.provide();
|
|
1398
1410
|
}
|
|
1399
|
-
function
|
|
1411
|
+
function si() {
|
|
1400
1412
|
return Tt.use();
|
|
1401
1413
|
}
|
|
1402
1414
|
const Mt = we({
|
|
@@ -1405,18 +1417,18 @@ const Mt = we({
|
|
|
1405
1417
|
registerIntoService: (e, t) => e.register(t),
|
|
1406
1418
|
unregisterFromService: (e, t) => e.unregister(t)
|
|
1407
1419
|
});
|
|
1408
|
-
function
|
|
1420
|
+
function ui(e) {
|
|
1409
1421
|
Mt.preregister(e);
|
|
1410
1422
|
}
|
|
1411
|
-
function
|
|
1423
|
+
function ci() {
|
|
1412
1424
|
return Bt({
|
|
1413
1425
|
bus: Mt,
|
|
1414
1426
|
createItem: (e, t) => ({
|
|
1415
1427
|
id: e.id || "",
|
|
1416
1428
|
order: e.order ?? t,
|
|
1417
1429
|
title: e.title,
|
|
1418
|
-
icon: typeof e.icon == "object" ?
|
|
1419
|
-
component: e.component ?
|
|
1430
|
+
icon: typeof e.icon == "object" ? Je(e.icon) : e.icon,
|
|
1431
|
+
component: e.component ? Je(e.component) : void 0,
|
|
1420
1432
|
props: e.props,
|
|
1421
1433
|
onClick: e.onClick,
|
|
1422
1434
|
slot: e.slot,
|
|
@@ -1432,42 +1444,42 @@ const st = we({
|
|
|
1432
1444
|
registerIntoService: (e, t) => e.register(t),
|
|
1433
1445
|
unregisterFromService: (e, t) => e.unregister(t)
|
|
1434
1446
|
});
|
|
1435
|
-
function
|
|
1447
|
+
function di(e) {
|
|
1436
1448
|
st.preregister(e);
|
|
1437
1449
|
}
|
|
1438
|
-
function
|
|
1450
|
+
function Aa() {
|
|
1439
1451
|
return Bt({
|
|
1440
1452
|
bus: st,
|
|
1441
1453
|
createItem: (e, t) => ({
|
|
1442
1454
|
id: e.id || "",
|
|
1443
1455
|
order: e.order ?? t,
|
|
1444
1456
|
group: e.group,
|
|
1445
|
-
component:
|
|
1457
|
+
component: Je(e.component),
|
|
1446
1458
|
props: e.props
|
|
1447
1459
|
}),
|
|
1448
1460
|
getId: (e) => e.id || ""
|
|
1449
1461
|
});
|
|
1450
1462
|
}
|
|
1451
|
-
const
|
|
1463
|
+
const Va = ce("use-settings-menu"), At = Pe({
|
|
1452
1464
|
key: cn,
|
|
1453
|
-
create:
|
|
1465
|
+
create: Aa,
|
|
1454
1466
|
bus: st,
|
|
1455
1467
|
name: "SettingsMenuService",
|
|
1456
|
-
onMissing: () =>
|
|
1468
|
+
onMissing: () => Va.error("Settings menu service not found")
|
|
1457
1469
|
});
|
|
1458
|
-
function
|
|
1470
|
+
function fi() {
|
|
1459
1471
|
return At.provide();
|
|
1460
1472
|
}
|
|
1461
|
-
function
|
|
1473
|
+
function gi() {
|
|
1462
1474
|
return At.use();
|
|
1463
1475
|
}
|
|
1464
|
-
const
|
|
1476
|
+
const Da = {
|
|
1465
1477
|
key: 0,
|
|
1466
1478
|
class: "vc-date-picker vc-date-picker--skeleton"
|
|
1467
|
-
},
|
|
1479
|
+
}, Na = { class: "vc-date-picker__field-container" }, Fa = { class: "vc-date-picker__field" }, za = ["aria-label"], Pa = {
|
|
1468
1480
|
key: 0,
|
|
1469
1481
|
class: "vc-date-picker__loading"
|
|
1470
|
-
},
|
|
1482
|
+
}, qa = { key: 0 }, Ka = { key: 1 }, Ua = /* @__PURE__ */ G({
|
|
1471
1483
|
__name: "vc-date-picker",
|
|
1472
1484
|
props: {
|
|
1473
1485
|
modelValue: {},
|
|
@@ -1491,7 +1503,7 @@ const Va = {
|
|
|
1491
1503
|
},
|
|
1492
1504
|
emits: ["update:modelValue", "blur", "focus"],
|
|
1493
1505
|
setup(e, { emit: t }) {
|
|
1494
|
-
const n = e, a = t, l =
|
|
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 } = ze(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
1507
|
const I = new Intl.DateTimeFormat(b, { hour: "numeric" }).format();
|
|
1496
1508
|
return Number.isInteger(Number(I));
|
|
1497
1509
|
})(), j = C(() => {
|
|
@@ -1541,7 +1553,7 @@ const Va = {
|
|
|
1541
1553
|
function A(I) {
|
|
1542
1554
|
p.value = I;
|
|
1543
1555
|
}
|
|
1544
|
-
function
|
|
1556
|
+
function F() {
|
|
1545
1557
|
p.value = null;
|
|
1546
1558
|
}
|
|
1547
1559
|
function K(I) {
|
|
@@ -1550,8 +1562,8 @@ const Va = {
|
|
|
1550
1562
|
function H() {
|
|
1551
1563
|
y.value = !0, a("focus");
|
|
1552
1564
|
}
|
|
1553
|
-
return (I, R) => i(l) ? (g(), h("div",
|
|
1554
|
-
e.label ? (g(),
|
|
1565
|
+
return (I, R) => i(l) ? (g(), h("div", Da, [
|
|
1566
|
+
e.label ? (g(), P(i(oe), {
|
|
1555
1567
|
key: 0,
|
|
1556
1568
|
variant: "block",
|
|
1557
1569
|
width: 60 + (e.label?.length || 0) * 4,
|
|
@@ -1572,7 +1584,7 @@ const Va = {
|
|
|
1572
1584
|
}
|
|
1573
1585
|
]])
|
|
1574
1586
|
}, [
|
|
1575
|
-
e.label ? (g(),
|
|
1587
|
+
e.label ? (g(), P(i(qe), {
|
|
1576
1588
|
key: 0,
|
|
1577
1589
|
id: i(s),
|
|
1578
1590
|
class: "vc-date-picker__label",
|
|
@@ -1580,7 +1592,7 @@ const Va = {
|
|
|
1580
1592
|
multilanguage: e.multilanguage,
|
|
1581
1593
|
"current-language": e.currentLanguage,
|
|
1582
1594
|
error: i(m)
|
|
1583
|
-
},
|
|
1595
|
+
}, me({
|
|
1584
1596
|
default: E(() => [
|
|
1585
1597
|
L("span", null, N(e.label), 1)
|
|
1586
1598
|
]),
|
|
@@ -1600,8 +1612,8 @@ const Va = {
|
|
|
1600
1612
|
"vc-date-picker__field-wrapper--small": e.size === "small"
|
|
1601
1613
|
}])
|
|
1602
1614
|
}, [
|
|
1603
|
-
L("div",
|
|
1604
|
-
L("div",
|
|
1615
|
+
L("div", Na, [
|
|
1616
|
+
L("div", Fa, [
|
|
1605
1617
|
T(i(Cn), ae({
|
|
1606
1618
|
modelValue: O.value,
|
|
1607
1619
|
"onUpdate:modelValue": R[0] || (R[0] = (q) => O.value = q),
|
|
@@ -1631,7 +1643,7 @@ const Va = {
|
|
|
1631
1643
|
onFocus: H,
|
|
1632
1644
|
onClosed: K,
|
|
1633
1645
|
onRangeStart: A,
|
|
1634
|
-
onRangeEnd:
|
|
1646
|
+
onRangeEnd: F,
|
|
1635
1647
|
onTooltipOpen: H,
|
|
1636
1648
|
onTooltipClose: K
|
|
1637
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"]),
|
|
@@ -1646,9 +1658,9 @@ const Va = {
|
|
|
1646
1658
|
size: "xs",
|
|
1647
1659
|
icon: "lucide-x"
|
|
1648
1660
|
})
|
|
1649
|
-
], 8,
|
|
1661
|
+
], 8, za)) : w("", !0)
|
|
1650
1662
|
]),
|
|
1651
|
-
e.loading ? (g(), h("div",
|
|
1663
|
+
e.loading ? (g(), h("div", Pa, [
|
|
1652
1664
|
T(i(W), {
|
|
1653
1665
|
icon: "lucide-loader-2",
|
|
1654
1666
|
class: "vc-date-picker__loading-icon",
|
|
@@ -1662,7 +1674,7 @@ const Va = {
|
|
|
1662
1674
|
mode: "out-in"
|
|
1663
1675
|
}, {
|
|
1664
1676
|
default: E(() => [
|
|
1665
|
-
i(m) && e.errorMessage ? (g(), h("div",
|
|
1677
|
+
i(m) && e.errorMessage ? (g(), h("div", qa, [
|
|
1666
1678
|
T(i(ue), {
|
|
1667
1679
|
id: i(u),
|
|
1668
1680
|
class: "vc-date-picker__hint-error",
|
|
@@ -1673,8 +1685,8 @@ const Va = {
|
|
|
1673
1685
|
]),
|
|
1674
1686
|
_: 1
|
|
1675
1687
|
}, 8, ["id"])
|
|
1676
|
-
])) : (g(), h("div",
|
|
1677
|
-
e.hint ? (g(),
|
|
1688
|
+
])) : (g(), h("div", Ka, [
|
|
1689
|
+
e.hint ? (g(), P(i(ue), {
|
|
1678
1690
|
key: 0,
|
|
1679
1691
|
id: i(f),
|
|
1680
1692
|
class: "vc-date-picker__desc"
|
|
@@ -1690,13 +1702,13 @@ const Va = {
|
|
|
1690
1702
|
})
|
|
1691
1703
|
], 2));
|
|
1692
1704
|
}
|
|
1693
|
-
}),
|
|
1705
|
+
}), Wa = {
|
|
1694
1706
|
key: 0,
|
|
1695
1707
|
class: "vc-color-input vc-color-input--skeleton"
|
|
1696
|
-
},
|
|
1708
|
+
}, ja = { class: "vc-color-input__field-container" }, Ha = { class: "vc-color-input__field" }, Ga = ["id", "placeholder", "disabled", "name", "autofocus", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby"], Ja = { class: "vc-color-input__color-container" }, Ya = ["aria-label"], Xa = ["value"], Za = ["aria-label"], Qa = {
|
|
1697
1709
|
key: 0,
|
|
1698
1710
|
class: "vc-color-input__loading"
|
|
1699
|
-
},
|
|
1711
|
+
}, _a = { key: 0 }, eo = { key: 1 }, to = /* @__PURE__ */ G({
|
|
1700
1712
|
__name: "vc-color-input",
|
|
1701
1713
|
props: {
|
|
1702
1714
|
modelValue: {},
|
|
@@ -1718,7 +1730,7 @@ const Va = {
|
|
|
1718
1730
|
},
|
|
1719
1731
|
emits: ["update:modelValue", "blur", "focus"],
|
|
1720
1732
|
setup(e, { expose: t, emit: n }) {
|
|
1721
|
-
const a =
|
|
1733
|
+
const a = he(), l = e, r = n, {
|
|
1722
1734
|
fieldId: o,
|
|
1723
1735
|
labelId: s,
|
|
1724
1736
|
errorId: u,
|
|
@@ -1727,24 +1739,24 @@ const Va = {
|
|
|
1727
1739
|
resolvedDisabled: v,
|
|
1728
1740
|
ariaRequired: d,
|
|
1729
1741
|
ariaDescribedBy: c
|
|
1730
|
-
} =
|
|
1742
|
+
} = ze(l), y = S(!1), b = S(!1), O = S(), p = S(), k = S(l.modelValue ?? ""), V = S("");
|
|
1731
1743
|
function j(I) {
|
|
1732
1744
|
if (!I || typeof I != "string") {
|
|
1733
1745
|
V.value = "";
|
|
1734
1746
|
return;
|
|
1735
1747
|
}
|
|
1736
1748
|
const R = I.trim();
|
|
1737
|
-
if (
|
|
1749
|
+
if (Mn(R)) {
|
|
1738
1750
|
V.value = dt(R);
|
|
1739
1751
|
return;
|
|
1740
1752
|
}
|
|
1741
|
-
const q =
|
|
1753
|
+
const q = Tn(R);
|
|
1742
1754
|
q && (V.value = q);
|
|
1743
1755
|
}
|
|
1744
1756
|
X(
|
|
1745
1757
|
() => l.modelValue,
|
|
1746
1758
|
(I) => {
|
|
1747
|
-
b.value || (b.value = !0, k.value = I ?? "",
|
|
1759
|
+
b.value || (b.value = !0, k.value = I ?? "", ye(() => {
|
|
1748
1760
|
j(I ?? ""), b.value = !1;
|
|
1749
1761
|
}));
|
|
1750
1762
|
},
|
|
@@ -1753,7 +1765,7 @@ const Va = {
|
|
|
1753
1765
|
I && p.value && (p.value.value = I);
|
|
1754
1766
|
});
|
|
1755
1767
|
function ne() {
|
|
1756
|
-
b.value || (b.value = !0, r("update:modelValue", k.value || null),
|
|
1768
|
+
b.value || (b.value = !0, r("update:modelValue", k.value || null), ye(() => {
|
|
1757
1769
|
j(k.value), b.value = !1;
|
|
1758
1770
|
}));
|
|
1759
1771
|
}
|
|
@@ -1770,7 +1782,7 @@ const Va = {
|
|
|
1770
1782
|
function A() {
|
|
1771
1783
|
k.value = "", V.value = "", r("update:modelValue", null);
|
|
1772
1784
|
}
|
|
1773
|
-
function
|
|
1785
|
+
function F(I) {
|
|
1774
1786
|
y.value = !1, r("blur", I);
|
|
1775
1787
|
}
|
|
1776
1788
|
function K() {
|
|
@@ -1779,8 +1791,8 @@ const Va = {
|
|
|
1779
1791
|
function H() {
|
|
1780
1792
|
O.value?.focus();
|
|
1781
1793
|
}
|
|
1782
|
-
return t({ focus: H }), (I, R) => i(a) ? (g(), h("div",
|
|
1783
|
-
e.label ? (g(),
|
|
1794
|
+
return t({ focus: H }), (I, R) => i(a) ? (g(), h("div", Wa, [
|
|
1795
|
+
e.label ? (g(), P(i(oe), {
|
|
1784
1796
|
key: 0,
|
|
1785
1797
|
variant: "block",
|
|
1786
1798
|
width: 60 + (e.label?.length || 0) * 4,
|
|
@@ -1801,7 +1813,7 @@ const Va = {
|
|
|
1801
1813
|
}
|
|
1802
1814
|
]])
|
|
1803
1815
|
}, [
|
|
1804
|
-
e.label ? (g(),
|
|
1816
|
+
e.label ? (g(), P(i(qe), {
|
|
1805
1817
|
key: 0,
|
|
1806
1818
|
id: i(s),
|
|
1807
1819
|
"html-for": i(o),
|
|
@@ -1810,7 +1822,7 @@ const Va = {
|
|
|
1810
1822
|
multilanguage: e.multilanguage,
|
|
1811
1823
|
"current-language": e.currentLanguage,
|
|
1812
1824
|
error: i(m)
|
|
1813
|
-
},
|
|
1825
|
+
}, me({
|
|
1814
1826
|
default: E(() => [
|
|
1815
1827
|
L("span", null, N(e.label), 1)
|
|
1816
1828
|
]),
|
|
@@ -1830,8 +1842,8 @@ const Va = {
|
|
|
1830
1842
|
"vc-color-input__field-wrapper--small": e.size === "small"
|
|
1831
1843
|
}])
|
|
1832
1844
|
}, [
|
|
1833
|
-
L("div",
|
|
1834
|
-
L("div",
|
|
1845
|
+
L("div", ja, [
|
|
1846
|
+
L("div", Ha, [
|
|
1835
1847
|
et(L("input", {
|
|
1836
1848
|
id: i(o),
|
|
1837
1849
|
ref_key: "inputRef",
|
|
@@ -1848,20 +1860,20 @@ const Va = {
|
|
|
1848
1860
|
"aria-labelledby": e.label ? i(s) : void 0,
|
|
1849
1861
|
class: "vc-color-input__input",
|
|
1850
1862
|
tabindex: "0",
|
|
1851
|
-
onBlur:
|
|
1863
|
+
onBlur: F,
|
|
1852
1864
|
onFocus: K,
|
|
1853
1865
|
onInput: ne
|
|
1854
|
-
}, null, 40,
|
|
1866
|
+
}, null, 40, Ga), [
|
|
1855
1867
|
[Jt, k.value]
|
|
1856
1868
|
]),
|
|
1857
|
-
L("div",
|
|
1869
|
+
L("div", Ja, [
|
|
1858
1870
|
L("button", {
|
|
1859
1871
|
type: "button",
|
|
1860
1872
|
class: "vc-color-input__color-square",
|
|
1861
|
-
style:
|
|
1873
|
+
style: De({ backgroundColor: V.value || "#ffffff" }),
|
|
1862
1874
|
"aria-label": `Pick color${V.value ? ": " + V.value : ""}`,
|
|
1863
1875
|
onClick: D
|
|
1864
|
-
}, null, 12,
|
|
1876
|
+
}, null, 12, Ya),
|
|
1865
1877
|
L("input", {
|
|
1866
1878
|
ref_key: "colorPickerRef",
|
|
1867
1879
|
ref: p,
|
|
@@ -1871,7 +1883,7 @@ const Va = {
|
|
|
1871
1883
|
tabindex: "-1",
|
|
1872
1884
|
"aria-hidden": "true",
|
|
1873
1885
|
onChange: Q
|
|
1874
|
-
}, null, 40,
|
|
1886
|
+
}, null, 40, Xa)
|
|
1875
1887
|
]),
|
|
1876
1888
|
e.clearable && k.value && !e.disabled ? (g(), h("button", {
|
|
1877
1889
|
key: 0,
|
|
@@ -1884,9 +1896,9 @@ const Va = {
|
|
|
1884
1896
|
size: "xs",
|
|
1885
1897
|
icon: "lucide-x"
|
|
1886
1898
|
})
|
|
1887
|
-
], 8,
|
|
1899
|
+
], 8, Za)) : w("", !0)
|
|
1888
1900
|
]),
|
|
1889
|
-
e.loading ? (g(), h("div",
|
|
1901
|
+
e.loading ? (g(), h("div", Qa, [
|
|
1890
1902
|
T(i(W), {
|
|
1891
1903
|
icon: "lucide-loader-2",
|
|
1892
1904
|
class: "vc-color-input__loading-icon",
|
|
@@ -1900,7 +1912,7 @@ const Va = {
|
|
|
1900
1912
|
mode: "out-in"
|
|
1901
1913
|
}, {
|
|
1902
1914
|
default: E(() => [
|
|
1903
|
-
i(m) && e.errorMessage ? (g(), h("div",
|
|
1915
|
+
i(m) && e.errorMessage ? (g(), h("div", _a, [
|
|
1904
1916
|
T(i(ue), {
|
|
1905
1917
|
id: i(u),
|
|
1906
1918
|
class: "vc-color-input__hint-error",
|
|
@@ -1911,8 +1923,8 @@ const Va = {
|
|
|
1911
1923
|
]),
|
|
1912
1924
|
_: 1
|
|
1913
1925
|
}, 8, ["id"])
|
|
1914
|
-
])) : (g(), h("div",
|
|
1915
|
-
e.hint ? (g(),
|
|
1926
|
+
])) : (g(), h("div", eo, [
|
|
1927
|
+
e.hint ? (g(), P(i(ue), {
|
|
1916
1928
|
key: 0,
|
|
1917
1929
|
id: i(f),
|
|
1918
1930
|
class: "vc-color-input__desc"
|
|
@@ -1928,28 +1940,28 @@ const Va = {
|
|
|
1928
1940
|
})
|
|
1929
1941
|
], 2));
|
|
1930
1942
|
}
|
|
1931
|
-
}),
|
|
1943
|
+
}), no = { class: "vc-input__container" }, ao = {
|
|
1932
1944
|
key: 0,
|
|
1933
1945
|
class: "vc-input__prepend"
|
|
1934
|
-
},
|
|
1946
|
+
}, oo = { class: "vc-input__field-container" }, lo = {
|
|
1935
1947
|
key: 0,
|
|
1936
1948
|
class: "vc-input__prepend-inner"
|
|
1937
|
-
},
|
|
1949
|
+
}, io = { class: "vc-input__field" }, ro = {
|
|
1938
1950
|
key: 0,
|
|
1939
1951
|
class: "vc-input__prefix"
|
|
1940
|
-
},
|
|
1952
|
+
}, so = ["id", "placeholder", "type", "disabled", "name", "maxlength", "autofocus", "autocomplete", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby"], uo = {
|
|
1941
1953
|
key: 1,
|
|
1942
1954
|
class: "vc-input__suffix"
|
|
1943
|
-
},
|
|
1955
|
+
}, co = ["aria-label"], fo = ["aria-label"], go = {
|
|
1944
1956
|
key: 1,
|
|
1945
1957
|
class: "vc-input__append-inner"
|
|
1946
|
-
},
|
|
1958
|
+
}, vo = {
|
|
1947
1959
|
key: 2,
|
|
1948
1960
|
class: "vc-input__loading"
|
|
1949
|
-
},
|
|
1961
|
+
}, po = {
|
|
1950
1962
|
key: 1,
|
|
1951
1963
|
class: "vc-input__append"
|
|
1952
|
-
},
|
|
1964
|
+
}, mo = { key: 0 }, yo = { key: 1 }, bo = /* @__PURE__ */ G({
|
|
1953
1965
|
inheritAttrs: !1,
|
|
1954
1966
|
__name: "vc-input",
|
|
1955
1967
|
props: {
|
|
@@ -1981,9 +1993,9 @@ const Va = {
|
|
|
1981
1993
|
emits: ["update:modelValue", "blur", "focus"],
|
|
1982
1994
|
setup(e, { emit: t }) {
|
|
1983
1995
|
const n = e, a = bt(), l = C(() => {
|
|
1984
|
-
const { class: $, ...
|
|
1985
|
-
return
|
|
1986
|
-
}), r = t, o =
|
|
1996
|
+
const { class: $, ...z } = a;
|
|
1997
|
+
return z;
|
|
1998
|
+
}), r = t, o = he(), {
|
|
1987
1999
|
fieldId: s,
|
|
1988
2000
|
labelId: u,
|
|
1989
2001
|
errorId: f,
|
|
@@ -1993,7 +2005,7 @@ const Va = {
|
|
|
1993
2005
|
resolvedName: c,
|
|
1994
2006
|
ariaRequired: y,
|
|
1995
2007
|
ariaDescribedBy: b
|
|
1996
|
-
} =
|
|
2008
|
+
} = ze(n);
|
|
1997
2009
|
let O, p;
|
|
1998
2010
|
const k = S(), V = S(), j = S(i(n.type)), ne = S(!1), Q = S(), D = C({
|
|
1999
2011
|
get() {
|
|
@@ -2002,7 +2014,7 @@ const Va = {
|
|
|
2002
2014
|
set($) {
|
|
2003
2015
|
j.value = $;
|
|
2004
2016
|
}
|
|
2005
|
-
}), A = C(() => i(n.modelValue)),
|
|
2017
|
+
}), A = C(() => i(n.modelValue)), F = C({
|
|
2006
2018
|
get() {
|
|
2007
2019
|
return (n.type === "integer" || n.type === "number") && isNaN(k.value) ? "" : k.value;
|
|
2008
2020
|
},
|
|
@@ -2018,8 +2030,8 @@ const Va = {
|
|
|
2018
2030
|
{ immediate: !0 }
|
|
2019
2031
|
);
|
|
2020
2032
|
function K($) {
|
|
2021
|
-
const
|
|
2022
|
-
if ((n.type === "number" || n.type === "integer") && (M === "-" || M === "e" || M === "+") && $.preventDefault(), n.type === "integer" && !/^\d$/.test(M) && !
|
|
2033
|
+
const z = ["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) && !z.includes(M)) {
|
|
2023
2035
|
$.preventDefault();
|
|
2024
2036
|
return;
|
|
2025
2037
|
}
|
|
@@ -2030,8 +2042,8 @@ const Va = {
|
|
|
2030
2042
|
function I($) {
|
|
2031
2043
|
p = () => {
|
|
2032
2044
|
if (Q.value !== $) {
|
|
2033
|
-
let
|
|
2034
|
-
n.type === "number" && $ !== null && $ !== void 0 ?
|
|
2045
|
+
let z;
|
|
2046
|
+
n.type === "number" && $ !== null && $ !== void 0 ? z = $ !== "" ? parseFloat($) : null : n.type === "integer" && $ !== null && $ !== void 0 ? z = $ !== "" ? Math.trunc(parseInt($)) : null : z = $, r("update:modelValue", z);
|
|
2035
2047
|
}
|
|
2036
2048
|
p = void 0;
|
|
2037
2049
|
}, n.debounce !== void 0 ? (clearTimeout(O), O = setTimeout(p, +n.debounce)) : p();
|
|
@@ -2048,10 +2060,10 @@ const Va = {
|
|
|
2048
2060
|
function Me() {
|
|
2049
2061
|
ne.value = !0, r("focus");
|
|
2050
2062
|
}
|
|
2051
|
-
return ($,
|
|
2063
|
+
return ($, z) => i(o) ? (g(), h("div", ae({ key: 0 }, l.value, {
|
|
2052
2064
|
class: ["vc-input vc-input--skeleton", $.$attrs.class]
|
|
2053
2065
|
}), [
|
|
2054
|
-
e.label ? (g(),
|
|
2066
|
+
e.label ? (g(), P(i(oe), {
|
|
2055
2067
|
key: 0,
|
|
2056
2068
|
variant: "block",
|
|
2057
2069
|
width: 60 + (e.label?.length || 0) * 4,
|
|
@@ -2062,7 +2074,7 @@ const Va = {
|
|
|
2062
2074
|
width: "100%",
|
|
2063
2075
|
height: 36
|
|
2064
2076
|
})
|
|
2065
|
-
], 16)) : e.type === "date" || e.type === "datetime-local" ? (g(),
|
|
2077
|
+
], 16)) : e.type === "date" || e.type === "datetime-local" ? (g(), P(i(Ua), ae({ key: 1 }, i(a), {
|
|
2066
2078
|
"model-value": e.modelValue,
|
|
2067
2079
|
type: e.type,
|
|
2068
2080
|
"date-picker-options": e.datePickerOptions,
|
|
@@ -2081,10 +2093,10 @@ const Va = {
|
|
|
2081
2093
|
multilanguage: e.multilanguage,
|
|
2082
2094
|
"current-language": e.currentLanguage,
|
|
2083
2095
|
name: e.name,
|
|
2084
|
-
"onUpdate:modelValue":
|
|
2085
|
-
onBlur:
|
|
2086
|
-
onFocus:
|
|
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(),
|
|
2096
|
+
"onUpdate:modelValue": z[0] || (z[0] = (M) => r("update:modelValue", M ?? null)),
|
|
2097
|
+
onBlur: z[1] || (z[1] = (M) => r("blur", M)),
|
|
2098
|
+
onFocus: z[2] || (z[2] = (M) => r("focus"))
|
|
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), {
|
|
2088
2100
|
"model-value": e.modelValue ?? null,
|
|
2089
2101
|
label: e.label,
|
|
2090
2102
|
placeholder: e.placeholder,
|
|
@@ -2101,9 +2113,9 @@ const Va = {
|
|
|
2101
2113
|
multilanguage: e.multilanguage,
|
|
2102
2114
|
"current-language": e.currentLanguage,
|
|
2103
2115
|
name: e.name,
|
|
2104
|
-
"onUpdate:modelValue":
|
|
2105
|
-
onBlur:
|
|
2106
|
-
onFocus:
|
|
2116
|
+
"onUpdate:modelValue": z[3] || (z[3] = (M) => r("update:modelValue", M)),
|
|
2117
|
+
onBlur: z[4] || (z[4] = (M) => r("blur", M)),
|
|
2118
|
+
onFocus: z[5] || (z[5] = (M) => r("focus"))
|
|
2107
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, {
|
|
2108
2120
|
class: ["vc-input", [
|
|
2109
2121
|
$.$attrs.class,
|
|
@@ -2116,7 +2128,7 @@ const Va = {
|
|
|
2116
2128
|
}
|
|
2117
2129
|
]]
|
|
2118
2130
|
}), [
|
|
2119
|
-
e.label ? (g(),
|
|
2131
|
+
e.label ? (g(), P(i(qe), {
|
|
2120
2132
|
key: 0,
|
|
2121
2133
|
id: i(u),
|
|
2122
2134
|
"html-for": i(s),
|
|
@@ -2125,7 +2137,7 @@ const Va = {
|
|
|
2125
2137
|
multilanguage: e.multilanguage,
|
|
2126
2138
|
"current-language": e.currentLanguage,
|
|
2127
2139
|
error: i(v)
|
|
2128
|
-
},
|
|
2140
|
+
}, me({
|
|
2129
2141
|
default: E(() => [
|
|
2130
2142
|
L("span", null, N(e.label), 1)
|
|
2131
2143
|
]),
|
|
@@ -2139,8 +2151,8 @@ const Va = {
|
|
|
2139
2151
|
key: "0"
|
|
2140
2152
|
} : void 0
|
|
2141
2153
|
]), 1032, ["id", "html-for", "required", "multilanguage", "current-language", "error"])) : w("", !0),
|
|
2142
|
-
L("div",
|
|
2143
|
-
$.$slots.prepend ? (g(), h("div",
|
|
2154
|
+
L("div", no, [
|
|
2155
|
+
$.$slots.prepend ? (g(), h("div", ao, [
|
|
2144
2156
|
B($.$slots, "prepend", { focus: te })
|
|
2145
2157
|
])) : w("", !0),
|
|
2146
2158
|
L("div", {
|
|
@@ -2149,16 +2161,16 @@ const Va = {
|
|
|
2149
2161
|
"vc-input__field-wrapper--small": e.size === "small"
|
|
2150
2162
|
}])
|
|
2151
2163
|
}, [
|
|
2152
|
-
L("div",
|
|
2153
|
-
$.$slots["prepend-inner"] ? (g(), h("div",
|
|
2164
|
+
L("div", oo, [
|
|
2165
|
+
$.$slots["prepend-inner"] ? (g(), h("div", lo, [
|
|
2154
2166
|
B($.$slots, "prepend-inner", { focus: te })
|
|
2155
2167
|
])) : w("", !0),
|
|
2156
|
-
L("div",
|
|
2157
|
-
e.prefix ? (g(), h("div",
|
|
2168
|
+
L("div", io, [
|
|
2169
|
+
e.prefix ? (g(), h("div", ro, N(e.prefix), 1)) : w("", !0),
|
|
2158
2170
|
B($.$slots, "control", {
|
|
2159
2171
|
editable: i(d),
|
|
2160
2172
|
focused: e.autofocus,
|
|
2161
|
-
modelValue:
|
|
2173
|
+
modelValue: F.value,
|
|
2162
2174
|
emitValue: I,
|
|
2163
2175
|
placeholder: e.placeholder
|
|
2164
2176
|
}, () => [
|
|
@@ -2166,7 +2178,7 @@ const Va = {
|
|
|
2166
2178
|
id: i(s),
|
|
2167
2179
|
ref_key: "inputRef",
|
|
2168
2180
|
ref: V,
|
|
2169
|
-
"onUpdate:modelValue":
|
|
2181
|
+
"onUpdate:modelValue": z[6] || (z[6] = (M) => F.value = M),
|
|
2170
2182
|
placeholder: e.placeholder,
|
|
2171
2183
|
type: D.value,
|
|
2172
2184
|
disabled: i(d),
|
|
@@ -2183,11 +2195,11 @@ const Va = {
|
|
|
2183
2195
|
onKeydown: K,
|
|
2184
2196
|
onBlur: q,
|
|
2185
2197
|
onFocus: Me
|
|
2186
|
-
}, null, 40,
|
|
2187
|
-
[Yt,
|
|
2198
|
+
}, null, 40, so), [
|
|
2199
|
+
[Yt, F.value]
|
|
2188
2200
|
])
|
|
2189
2201
|
]),
|
|
2190
|
-
e.suffix ? (g(), h("div",
|
|
2202
|
+
e.suffix ? (g(), h("div", uo, N(e.suffix), 1)) : w("", !0),
|
|
2191
2203
|
e.clearable && Q.value && !i(d) && e.type !== "password" ? (g(), h("button", {
|
|
2192
2204
|
key: 2,
|
|
2193
2205
|
type: "button",
|
|
@@ -2199,24 +2211,24 @@ const Va = {
|
|
|
2199
2211
|
size: "xs",
|
|
2200
2212
|
icon: "lucide-x"
|
|
2201
2213
|
})
|
|
2202
|
-
], 8,
|
|
2214
|
+
], 8, co)) : w("", !0),
|
|
2203
2215
|
e.type === "password" ? (g(), h("button", {
|
|
2204
2216
|
key: 3,
|
|
2205
2217
|
type: "button",
|
|
2206
2218
|
class: "vc-input__showhide",
|
|
2207
2219
|
"aria-label": j.value === "password" ? $.$t("COMPONENTS.CONTROLS.SHOW_PASSWORD") : $.$t("COMPONENTS.CONTROLS.HIDE_PASSWORD"),
|
|
2208
|
-
onClick:
|
|
2220
|
+
onClick: z[7] || (z[7] = (M) => j.value = j.value === "password" ? "text" : "password")
|
|
2209
2221
|
}, [
|
|
2210
2222
|
T(i(W), {
|
|
2211
2223
|
size: "s",
|
|
2212
2224
|
icon: j.value === "password" ? "lucide-eye-off" : "lucide-eye"
|
|
2213
2225
|
}, null, 8, ["icon"])
|
|
2214
|
-
], 8,
|
|
2226
|
+
], 8, fo)) : w("", !0)
|
|
2215
2227
|
]),
|
|
2216
|
-
$.$slots["append-inner"] ? (g(), h("div",
|
|
2228
|
+
$.$slots["append-inner"] ? (g(), h("div", go, [
|
|
2217
2229
|
B($.$slots, "append-inner", { focus: te })
|
|
2218
2230
|
])) : w("", !0),
|
|
2219
|
-
e.loading ? (g(), h("div",
|
|
2231
|
+
e.loading ? (g(), h("div", vo, [
|
|
2220
2232
|
T(i(W), {
|
|
2221
2233
|
icon: "lucide-loader-2",
|
|
2222
2234
|
class: "vc-input__loading-icon",
|
|
@@ -2225,7 +2237,7 @@ const Va = {
|
|
|
2225
2237
|
])) : w("", !0)
|
|
2226
2238
|
])
|
|
2227
2239
|
], 2),
|
|
2228
|
-
$.$slots.append ? (g(), h("div",
|
|
2240
|
+
$.$slots.append ? (g(), h("div", po, [
|
|
2229
2241
|
B($.$slots, "append", { focus: te })
|
|
2230
2242
|
])) : w("", !0)
|
|
2231
2243
|
]),
|
|
@@ -2234,7 +2246,7 @@ const Va = {
|
|
|
2234
2246
|
mode: "out-in"
|
|
2235
2247
|
}, {
|
|
2236
2248
|
default: E(() => [
|
|
2237
|
-
i(v) && e.errorMessage ? (g(), h("div",
|
|
2249
|
+
i(v) && e.errorMessage ? (g(), h("div", mo, [
|
|
2238
2250
|
B($.$slots, "error", {}, () => [
|
|
2239
2251
|
T(i(ue), {
|
|
2240
2252
|
id: i(f),
|
|
@@ -2247,9 +2259,9 @@ const Va = {
|
|
|
2247
2259
|
_: 1
|
|
2248
2260
|
}, 8, ["id"])
|
|
2249
2261
|
])
|
|
2250
|
-
])) : (g(), h("div",
|
|
2262
|
+
])) : (g(), h("div", yo, [
|
|
2251
2263
|
B($.$slots, "hint", {}, () => [
|
|
2252
|
-
e.hint ? (g(),
|
|
2264
|
+
e.hint ? (g(), P(i(ue), {
|
|
2253
2265
|
key: 0,
|
|
2254
2266
|
id: i(m),
|
|
2255
2267
|
class: "vc-input__desc"
|
|
@@ -2266,7 +2278,7 @@ const Va = {
|
|
|
2266
2278
|
})
|
|
2267
2279
|
], 16));
|
|
2268
2280
|
}
|
|
2269
|
-
}),
|
|
2281
|
+
}), vi = In.create({
|
|
2270
2282
|
name: "fontSize",
|
|
2271
2283
|
addOptions() {
|
|
2272
2284
|
return {
|
|
@@ -2296,7 +2308,7 @@ const Va = {
|
|
|
2296
2308
|
};
|
|
2297
2309
|
}
|
|
2298
2310
|
});
|
|
2299
|
-
function
|
|
2311
|
+
function ho(e = {}) {
|
|
2300
2312
|
const {
|
|
2301
2313
|
containerSelector: t = '[role="menu"]',
|
|
2302
2314
|
itemSelector: n = '[tabindex="0"]',
|
|
@@ -2414,7 +2426,7 @@ function pt(e, t) {
|
|
|
2414
2426
|
const n = e !== void 0 ? e : t;
|
|
2415
2427
|
return typeof n == "function" ? n : (a) => a === null || typeof a != "object" ? a : n && n in a ? a[n] : a;
|
|
2416
2428
|
}
|
|
2417
|
-
function
|
|
2429
|
+
function Io(e) {
|
|
2418
2430
|
const t = C(() => pt(e.optionValue(), "id")), n = C(() => pt(e.optionLabel(), "title"));
|
|
2419
2431
|
function a(o, s, u, f) {
|
|
2420
2432
|
const m = (v) => Le(t.value(v), o);
|
|
@@ -2434,7 +2446,7 @@ function ho(e) {
|
|
|
2434
2446
|
fieldValueIsFilled: r
|
|
2435
2447
|
};
|
|
2436
2448
|
}
|
|
2437
|
-
function
|
|
2449
|
+
function ko() {
|
|
2438
2450
|
const e = S(null), t = S(!1);
|
|
2439
2451
|
let n = null, a = null;
|
|
2440
2452
|
function l() {
|
|
@@ -2464,7 +2476,7 @@ function Io() {
|
|
|
2464
2476
|
ensureVisibility: r
|
|
2465
2477
|
};
|
|
2466
2478
|
}
|
|
2467
|
-
function
|
|
2479
|
+
function So(e) {
|
|
2468
2480
|
const t = S(!1), n = S(!1), a = S(null), l = S(null);
|
|
2469
2481
|
function r() {
|
|
2470
2482
|
return {
|
|
@@ -2478,13 +2490,13 @@ function ko(e) {
|
|
|
2478
2490
|
}
|
|
2479
2491
|
};
|
|
2480
2492
|
}
|
|
2481
|
-
const o =
|
|
2493
|
+
const o = Fn(a, l, {
|
|
2482
2494
|
placement: C(() => e.placement),
|
|
2483
2495
|
middleware: C(() => [
|
|
2484
2496
|
$t({ fallbackPlacements: ["top", "bottom"] }),
|
|
2485
2497
|
Ot({ mainAxis: !1 }),
|
|
2486
2498
|
r(),
|
|
2487
|
-
|
|
2499
|
+
Ye({ mainAxis: 4 })
|
|
2488
2500
|
])
|
|
2489
2501
|
}), s = C(() => ({
|
|
2490
2502
|
top: `${o.y.value ?? 0}px`,
|
|
@@ -2510,14 +2522,14 @@ function ko(e) {
|
|
|
2510
2522
|
toggleDropdown: u
|
|
2511
2523
|
};
|
|
2512
2524
|
}
|
|
2513
|
-
function
|
|
2525
|
+
function wo(e) {
|
|
2514
2526
|
const t = S([]), n = S(null), a = S(0), l = S(!1), r = S(!1), o = S(), s = S([]), u = S(!1), f = /* @__PURE__ */ new Map();
|
|
2515
2527
|
let m = !1, v;
|
|
2516
2528
|
const d = C(() => n.value ?? t.value), c = C(() => t.value.length < a.value);
|
|
2517
2529
|
function y(D) {
|
|
2518
2530
|
for (const A of D) {
|
|
2519
|
-
const
|
|
2520
|
-
f.set(
|
|
2531
|
+
const F = String(e.getOptionValue.value(A));
|
|
2532
|
+
f.set(F, A);
|
|
2521
2533
|
}
|
|
2522
2534
|
}
|
|
2523
2535
|
async function b() {
|
|
@@ -2544,8 +2556,8 @@ function So(e) {
|
|
|
2544
2556
|
if (!(typeof D != "function" || l.value))
|
|
2545
2557
|
try {
|
|
2546
2558
|
l.value = !0;
|
|
2547
|
-
const A = await D(o.value, t.value.length),
|
|
2548
|
-
(H) => !
|
|
2559
|
+
const A = await D(o.value, t.value.length), F = new Set(t.value.map((H) => String(e.getOptionValue.value(H)))), K = (A?.results ?? []).filter(
|
|
2560
|
+
(H) => !F.has(String(e.getOptionValue.value(H)))
|
|
2549
2561
|
);
|
|
2550
2562
|
t.value = [...t.value, ...K], a.value = A?.totalCount ?? a.value, y(K);
|
|
2551
2563
|
} catch (A) {
|
|
@@ -2560,50 +2572,50 @@ function So(e) {
|
|
|
2560
2572
|
if (typeof A == "function")
|
|
2561
2573
|
try {
|
|
2562
2574
|
r.value = !0;
|
|
2563
|
-
const
|
|
2564
|
-
n.value =
|
|
2565
|
-
} catch (
|
|
2566
|
-
console.error("useSelectDataSource: error searching",
|
|
2575
|
+
const F = await A(D);
|
|
2576
|
+
n.value = F?.results ?? [], a.value = F?.totalCount ?? 0, y(n.value);
|
|
2577
|
+
} catch (F) {
|
|
2578
|
+
console.error("useSelectDataSource: error searching", F), n.value = [];
|
|
2567
2579
|
} finally {
|
|
2568
2580
|
r.value = !1;
|
|
2569
2581
|
}
|
|
2570
2582
|
else
|
|
2571
|
-
n.value = t.value.filter((
|
|
2572
|
-
const K = e.getOptionLabel.value(
|
|
2583
|
+
n.value = t.value.filter((F) => {
|
|
2584
|
+
const K = e.getOptionLabel.value(F);
|
|
2573
2585
|
return String(K).toLowerCase().includes(D.toLowerCase());
|
|
2574
2586
|
});
|
|
2575
2587
|
}
|
|
2576
2588
|
function V(D) {
|
|
2577
2589
|
if (!D?.target) return;
|
|
2578
|
-
const A = D.target.value,
|
|
2579
|
-
v && clearTimeout(v),
|
|
2590
|
+
const A = D.target.value, F = Number(e.debounce());
|
|
2591
|
+
v && clearTimeout(v), F > 0 ? v = setTimeout(() => {
|
|
2580
2592
|
e.emit.search(A), k(A);
|
|
2581
|
-
},
|
|
2593
|
+
}, F) : (e.emit.search(A), k(A));
|
|
2582
2594
|
}
|
|
2583
2595
|
function j() {
|
|
2584
2596
|
n.value = null, o.value = void 0, v && (clearTimeout(v), v = void 0), a.value = t.value.length;
|
|
2585
2597
|
}
|
|
2586
2598
|
async function ne(D) {
|
|
2587
2599
|
if (D.length === 0) return [];
|
|
2588
|
-
const
|
|
2600
|
+
const F = D.filter((I) => !f.has(String(I))).filter((I) => {
|
|
2589
2601
|
const R = t.value.find((q) => Le(e.getOptionValue.value(q), I));
|
|
2590
2602
|
return R ? (f.set(String(I), R), !1) : !0;
|
|
2591
2603
|
}), K = e.options();
|
|
2592
|
-
if (
|
|
2604
|
+
if (F.length > 0 && typeof K == "function") {
|
|
2593
2605
|
try {
|
|
2594
2606
|
u.value = !0;
|
|
2595
|
-
const R = await K(void 0, void 0,
|
|
2607
|
+
const R = await K(void 0, void 0, F);
|
|
2596
2608
|
R?.results && y(R.results);
|
|
2597
2609
|
} catch (R) {
|
|
2598
2610
|
console.error("useSelectDataSource: error resolving", R);
|
|
2599
2611
|
} finally {
|
|
2600
2612
|
u.value = !1;
|
|
2601
2613
|
}
|
|
2602
|
-
|
|
2603
|
-
} else if (
|
|
2614
|
+
F.filter((R) => !f.has(String(R))).length > 0 && !m && await b();
|
|
2615
|
+
} else if (F.length > 0 && Array.isArray(K))
|
|
2604
2616
|
for (const I of K) {
|
|
2605
2617
|
const R = String(e.getOptionValue.value(I));
|
|
2606
|
-
|
|
2618
|
+
F.includes(R) && f.set(R, I);
|
|
2607
2619
|
}
|
|
2608
2620
|
const H = D.map((I) => f.get(String(I))).filter(Boolean);
|
|
2609
2621
|
return s.value = H, H;
|
|
@@ -2643,7 +2655,7 @@ function So(e) {
|
|
|
2643
2655
|
refresh: Q
|
|
2644
2656
|
};
|
|
2645
2657
|
}
|
|
2646
|
-
function
|
|
2658
|
+
function $o(e) {
|
|
2647
2659
|
let t = [];
|
|
2648
2660
|
const n = C(() => {
|
|
2649
2661
|
const v = e.mapOptions() === !0 && e.multiple() !== !0, d = e.modelValue() !== void 0 && (e.modelValue() !== null || v === !0) ? e.multiple() === !0 && Array.isArray(e.modelValue()) ? e.modelValue() : [e.modelValue()] : [];
|
|
@@ -2736,40 +2748,40 @@ function wo(e) {
|
|
|
2736
2748
|
onReset: m
|
|
2737
2749
|
};
|
|
2738
2750
|
}
|
|
2739
|
-
const
|
|
2751
|
+
const Oo = { class: "vc-select__control" }, Eo = {
|
|
2740
2752
|
key: 0,
|
|
2741
2753
|
class: "vc-select__prepend"
|
|
2742
|
-
},
|
|
2754
|
+
}, Co = { class: "vc-select__field" }, Bo = { class: "vc-select__field-inner" }, Lo = { class: "vc-select__field-content" }, Ro = {
|
|
2743
2755
|
key: 0,
|
|
2744
2756
|
class: "vc-select__prepend-inner"
|
|
2745
|
-
},
|
|
2757
|
+
}, xo = { class: "vc-select__field-main" }, To = {
|
|
2746
2758
|
key: 0,
|
|
2747
2759
|
class: "vc-select__prefix"
|
|
2748
|
-
},
|
|
2760
|
+
}, Mo = ["aria-expanded", "aria-controls", "aria-labelledby", "aria-describedby", "aria-required", "aria-invalid"], Ao = {
|
|
2749
2761
|
key: 0,
|
|
2750
2762
|
class: "vc-select__placeholder"
|
|
2751
|
-
},
|
|
2763
|
+
}, Vo = {
|
|
2752
2764
|
key: 1,
|
|
2753
2765
|
class: "vc-select__selected"
|
|
2754
|
-
},
|
|
2766
|
+
}, Do = { class: "vc-select__multiple-item" }, No = {
|
|
2755
2767
|
key: 0,
|
|
2756
2768
|
class: "vc-select__loading"
|
|
2757
|
-
},
|
|
2769
|
+
}, Fo = { key: 1 }, zo = ["aria-label", "onClick", "onKeydown"], Po = {
|
|
2758
2770
|
key: 0,
|
|
2759
2771
|
class: "vc-select__loading"
|
|
2760
|
-
},
|
|
2772
|
+
}, qo = {
|
|
2761
2773
|
key: 1,
|
|
2762
2774
|
class: "vc-select__suffix"
|
|
2763
|
-
},
|
|
2775
|
+
}, Ko = ["aria-label"], Uo = {
|
|
2764
2776
|
key: 1,
|
|
2765
2777
|
class: "vc-select__append-inner"
|
|
2766
|
-
},
|
|
2778
|
+
}, Wo = {
|
|
2767
2779
|
key: 2,
|
|
2768
2780
|
class: "vc-select__loading-icon"
|
|
2769
|
-
},
|
|
2781
|
+
}, jo = ["aria-label"], Ho = { class: "vc-select__chevron" }, Go = { class: "vc-select__hint-error" }, Jo = { key: 0 }, Yo = { key: 1 }, Xo = {
|
|
2770
2782
|
key: 1,
|
|
2771
2783
|
class: "vc-select__append"
|
|
2772
|
-
},
|
|
2784
|
+
}, Zo = /* @__PURE__ */ G({
|
|
2773
2785
|
__name: "SelectTrigger",
|
|
2774
2786
|
props: {
|
|
2775
2787
|
isOpened: { type: Boolean },
|
|
@@ -2813,8 +2825,8 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
2813
2825
|
toggleHandler: e.toggleDropdown,
|
|
2814
2826
|
isOpened: e.isOpened
|
|
2815
2827
|
}, () => [
|
|
2816
|
-
L("div",
|
|
2817
|
-
l.$slots.prepend ? (g(), h("div",
|
|
2828
|
+
L("div", Oo, [
|
|
2829
|
+
l.$slots.prepend ? (g(), h("div", Eo, [
|
|
2818
2830
|
B(l.$slots, "prepend")
|
|
2819
2831
|
])) : w("", !0),
|
|
2820
2832
|
L("div", {
|
|
@@ -2823,14 +2835,14 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
2823
2835
|
"vc-select__field-wrapper--small": e.size === "small"
|
|
2824
2836
|
}])
|
|
2825
2837
|
}, [
|
|
2826
|
-
L("div",
|
|
2827
|
-
L("div",
|
|
2828
|
-
L("div",
|
|
2829
|
-
l.$slots["prepend-inner"] ? (g(), h("div",
|
|
2838
|
+
L("div", Co, [
|
|
2839
|
+
L("div", Bo, [
|
|
2840
|
+
L("div", Lo, [
|
|
2841
|
+
l.$slots["prepend-inner"] ? (g(), h("div", Ro, [
|
|
2830
2842
|
B(l.$slots, "prepend-inner")
|
|
2831
2843
|
])) : w("", !0),
|
|
2832
|
-
L("div",
|
|
2833
|
-
e.prefix ? (g(), h("div",
|
|
2844
|
+
L("div", xo, [
|
|
2845
|
+
e.prefix ? (g(), h("div", To, N(e.prefix), 1)) : w("", !0),
|
|
2834
2846
|
L("div", {
|
|
2835
2847
|
"data-test-id": "dropdown-toggle",
|
|
2836
2848
|
class: "vc-select__input",
|
|
@@ -2863,7 +2875,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
2863
2875
|
onFocus: r[3] || (r[3] = (o) => l.$emit("focus")),
|
|
2864
2876
|
onBlur: r[4] || (r[4] = (o) => l.$emit("blur"))
|
|
2865
2877
|
}, [
|
|
2866
|
-
e.hasValue ? e.selectedScope && e.selectedScope.length && e.hasValue ? (g(), h("div",
|
|
2878
|
+
e.hasValue ? e.selectedScope && e.selectedScope.length && e.hasValue ? (g(), h("div", Vo, [
|
|
2867
2879
|
(g(!0), h(ke, null, _e(e.selectedScope, (o, s) => (g(), h("div", {
|
|
2868
2880
|
key: s,
|
|
2869
2881
|
class: "vc-select__selected-item"
|
|
@@ -2872,8 +2884,8 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
2872
2884
|
key: 0,
|
|
2873
2885
|
ref_for: !0
|
|
2874
2886
|
}, o), () => [
|
|
2875
|
-
L("div",
|
|
2876
|
-
e.loading ? (g(), h("span",
|
|
2887
|
+
L("div", Do, [
|
|
2888
|
+
e.loading ? (g(), h("span", No, N(i(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : (g(), h("span", Fo, N(e.getOptionLabel(o.opt)), 1)),
|
|
2877
2889
|
e.disabled ? w("", !0) : (g(), h("button", {
|
|
2878
2890
|
key: 2,
|
|
2879
2891
|
type: "button",
|
|
@@ -2888,10 +2900,10 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
2888
2900
|
icon: "lucide-x",
|
|
2889
2901
|
size: "xs"
|
|
2890
2902
|
})
|
|
2891
|
-
], 40,
|
|
2903
|
+
], 40, zo))
|
|
2892
2904
|
])
|
|
2893
2905
|
]) : e.multiple ? w("", !0) : (g(), h(ke, { key: 1 }, [
|
|
2894
|
-
e.loading ? (g(), h("span",
|
|
2906
|
+
e.loading ? (g(), h("span", Po, N(i(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : B(l.$slots, "selected-item", ae({
|
|
2895
2907
|
key: 1,
|
|
2896
2908
|
ref_for: !0
|
|
2897
2909
|
}, o), () => [
|
|
@@ -2899,15 +2911,15 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
2899
2911
|
])
|
|
2900
2912
|
], 64))
|
|
2901
2913
|
]))), 128))
|
|
2902
|
-
])) : w("", !0) : (g(), h("div",
|
|
2914
|
+
])) : w("", !0) : (g(), h("div", Ao, [
|
|
2903
2915
|
e.placeholder ? (g(), h(ke, { key: 0 }, [
|
|
2904
2916
|
ee(N(e.placeholder), 1)
|
|
2905
2917
|
], 64)) : (g(), h(ke, { key: 1 }, [
|
|
2906
2918
|
ee(N(i(n)("COMPONENTS.MOLECULES.VC_SELECT.CLICK_TO_SELECT")), 1)
|
|
2907
2919
|
], 64))
|
|
2908
2920
|
]))
|
|
2909
|
-
], 40,
|
|
2910
|
-
e.suffix ? (g(), h("div",
|
|
2921
|
+
], 40, Mo),
|
|
2922
|
+
e.suffix ? (g(), h("div", qo, N(e.suffix), 1)) : w("", !0),
|
|
2911
2923
|
e.clearable && e.hasValue && !e.disabled ? (g(), h("div", {
|
|
2912
2924
|
key: 2,
|
|
2913
2925
|
class: "vc-select__clear",
|
|
@@ -2924,12 +2936,12 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
2924
2936
|
size: "xs",
|
|
2925
2937
|
icon: "lucide-x"
|
|
2926
2938
|
})
|
|
2927
|
-
], 40,
|
|
2939
|
+
], 40, Ko)) : w("", !0)
|
|
2928
2940
|
]),
|
|
2929
|
-
l.$slots["append-inner"] ? (g(), h("div",
|
|
2941
|
+
l.$slots["append-inner"] ? (g(), h("div", Uo, [
|
|
2930
2942
|
B(l.$slots, "append-inner")
|
|
2931
2943
|
])) : w("", !0),
|
|
2932
|
-
e.loading || e.listLoading || e.defaultOptionLoading ? (g(), h("div",
|
|
2944
|
+
e.loading || e.listLoading || e.defaultOptionLoading ? (g(), h("div", Wo, [
|
|
2933
2945
|
T(i(W), {
|
|
2934
2946
|
icon: "lucide-loader-2",
|
|
2935
2947
|
class: "tw-animate-spin",
|
|
@@ -2960,23 +2972,23 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
2960
2972
|
), ["space"]))
|
|
2961
2973
|
]
|
|
2962
2974
|
}, [
|
|
2963
|
-
L("div",
|
|
2975
|
+
L("div", Ho, [
|
|
2964
2976
|
T(i(W), {
|
|
2965
2977
|
size: "s",
|
|
2966
2978
|
icon: "lucide-chevron-down"
|
|
2967
2979
|
})
|
|
2968
2980
|
])
|
|
2969
|
-
], 40,
|
|
2981
|
+
], 40, jo))
|
|
2970
2982
|
])
|
|
2971
2983
|
])
|
|
2972
2984
|
]),
|
|
2973
|
-
L("div",
|
|
2985
|
+
L("div", Go, [
|
|
2974
2986
|
T(Re, {
|
|
2975
2987
|
name: "slide-up",
|
|
2976
2988
|
mode: "out-in"
|
|
2977
2989
|
}, {
|
|
2978
2990
|
default: E(() => [
|
|
2979
|
-
e.error && e.errorMessage ? (g(), h("div",
|
|
2991
|
+
e.error && e.errorMessage ? (g(), h("div", Jo, [
|
|
2980
2992
|
B(l.$slots, "error", {}, () => [
|
|
2981
2993
|
T(i(ue), {
|
|
2982
2994
|
id: e.errorId,
|
|
@@ -2989,9 +3001,9 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
2989
3001
|
_: 1
|
|
2990
3002
|
}, 8, ["id"])
|
|
2991
3003
|
])
|
|
2992
|
-
])) : (g(), h("div",
|
|
3004
|
+
])) : (g(), h("div", Yo, [
|
|
2993
3005
|
B(l.$slots, "hint", {}, () => [
|
|
2994
|
-
e.hint ? (g(),
|
|
3006
|
+
e.hint ? (g(), P(i(ue), {
|
|
2995
3007
|
key: 0,
|
|
2996
3008
|
id: e.hintId,
|
|
2997
3009
|
class: "vc-select__hint"
|
|
@@ -3008,23 +3020,23 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3008
3020
|
})
|
|
3009
3021
|
])
|
|
3010
3022
|
], 2),
|
|
3011
|
-
l.$slots.append ? (g(), h("div",
|
|
3023
|
+
l.$slots.append ? (g(), h("div", Xo, [
|
|
3012
3024
|
B(l.$slots, "append")
|
|
3013
3025
|
])) : w("", !0)
|
|
3014
3026
|
])
|
|
3015
3027
|
])
|
|
3016
3028
|
], 512));
|
|
3017
3029
|
}
|
|
3018
|
-
}),
|
|
3030
|
+
}), Qo = ["id", "aria-label"], _o = ["aria-label"], el = ["aria-selected", "data-index", "onClick", "onKeydown"], tl = {
|
|
3019
3031
|
key: 0,
|
|
3020
3032
|
class: "vc-select__check-icon"
|
|
3021
|
-
},
|
|
3033
|
+
}, nl = {
|
|
3022
3034
|
key: 0,
|
|
3023
3035
|
class: "vc-select__list-loading-indicator"
|
|
3024
|
-
},
|
|
3036
|
+
}, al = { class: "tw-ml-1" }, ol = {
|
|
3025
3037
|
key: 1,
|
|
3026
3038
|
class: "vc-select__no-options"
|
|
3027
|
-
},
|
|
3039
|
+
}, ll = { class: "vc-select__no-options-text" }, il = /* @__PURE__ */ G({
|
|
3028
3040
|
__name: "SelectDropdown",
|
|
3029
3041
|
props: {
|
|
3030
3042
|
isOpened: { type: Boolean },
|
|
@@ -3054,19 +3066,19 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3054
3066
|
return X(
|
|
3055
3067
|
() => a.isOpened,
|
|
3056
3068
|
(c) => {
|
|
3057
|
-
c &&
|
|
3069
|
+
c && ye(() => f.value?.updateScrollState());
|
|
3058
3070
|
}
|
|
3059
3071
|
), X(
|
|
3060
3072
|
() => a.optionScope.length,
|
|
3061
3073
|
() => {
|
|
3062
|
-
a.isOpened &&
|
|
3074
|
+
a.isOpened && ye(() => f.value?.updateScrollState());
|
|
3063
3075
|
}
|
|
3064
3076
|
), t({
|
|
3065
3077
|
dropdownElRef: s,
|
|
3066
3078
|
searchInputRef: u,
|
|
3067
3079
|
viewportRef: v,
|
|
3068
3080
|
loadMoreRef: m
|
|
3069
|
-
}), (c, y) => (g(),
|
|
3081
|
+
}), (c, y) => (g(), P(Xt, { to: i(o) }, [
|
|
3070
3082
|
T(Re, { name: "select-dropdown" }, {
|
|
3071
3083
|
default: E(() => [
|
|
3072
3084
|
e.isOpened ? et((g(), h("div", {
|
|
@@ -3078,7 +3090,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3078
3090
|
class: "vc-select__dropdown",
|
|
3079
3091
|
role: "listbox",
|
|
3080
3092
|
"aria-label": e.ariaLabel,
|
|
3081
|
-
style:
|
|
3093
|
+
style: De(e.dropdownStyle),
|
|
3082
3094
|
onWheel: d
|
|
3083
3095
|
}, [
|
|
3084
3096
|
e.searchable ? (g(), h("input", {
|
|
@@ -3096,8 +3108,8 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3096
3108
|
y[2] || (y[2] = _(Y(() => {
|
|
3097
3109
|
}, ["stop"]), ["enter"]))
|
|
3098
3110
|
]
|
|
3099
|
-
}, null, 40,
|
|
3100
|
-
T(i(
|
|
3111
|
+
}, null, 40, _o)) : w("", !0),
|
|
3112
|
+
T(i(Ea), {
|
|
3101
3113
|
ref_key: "scrollContainerRef",
|
|
3102
3114
|
ref: f,
|
|
3103
3115
|
class: "vc-select__scroll-container"
|
|
@@ -3120,24 +3132,24 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3120
3132
|
B(c.$slots, "option", ae({ ref_for: !0 }, b), () => [
|
|
3121
3133
|
ee(N(b.label), 1)
|
|
3122
3134
|
]),
|
|
3123
|
-
b.selected ? (g(), h("span",
|
|
3135
|
+
b.selected ? (g(), h("span", tl, [
|
|
3124
3136
|
T(i(W), {
|
|
3125
3137
|
icon: "lucide-check",
|
|
3126
3138
|
size: "xs"
|
|
3127
3139
|
})
|
|
3128
3140
|
])) : w("", !0)
|
|
3129
|
-
], 42,
|
|
3130
|
-
e.listLoading ? (g(), h("div",
|
|
3141
|
+
], 42, el))), 128)),
|
|
3142
|
+
e.listLoading ? (g(), h("div", nl, [
|
|
3131
3143
|
T(i(W), {
|
|
3132
3144
|
icon: "lucide-loader-2",
|
|
3133
3145
|
class: "tw-animate-spin",
|
|
3134
3146
|
size: "m"
|
|
3135
3147
|
}),
|
|
3136
|
-
L("span",
|
|
3148
|
+
L("span", al, N(e.optionsListLength > 0 ? i(r)("COMPONENTS.MOLECULES.VC_SELECT.LOADING_MORE") : i(r)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)
|
|
3137
3149
|
])) : w("", !0),
|
|
3138
|
-
!e.listLoading && !e.optionsListLength ? (g(), h("div",
|
|
3150
|
+
!e.listLoading && !e.optionsListLength ? (g(), h("div", ol, [
|
|
3139
3151
|
B(c.$slots, "no-options", {}, () => [
|
|
3140
|
-
L("span",
|
|
3152
|
+
L("span", ll, N(i(r)("COMPONENTS.MOLECULES.VC_SELECT.NO_OPTIONS")), 1)
|
|
3141
3153
|
])
|
|
3142
3154
|
])) : w("", !0),
|
|
3143
3155
|
e.hasNextPage && !e.listLoading ? (g(), h("span", {
|
|
@@ -3149,7 +3161,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3149
3161
|
]),
|
|
3150
3162
|
_: 3
|
|
3151
3163
|
}, 512)
|
|
3152
|
-
], 44,
|
|
3164
|
+
], 44, Qo)), [
|
|
3153
3165
|
[i(On), [() => l("clickOutside"), { ignore: [e.dropdownToggleRef] }]]
|
|
3154
3166
|
]) : w("", !0)
|
|
3155
3167
|
]),
|
|
@@ -3157,7 +3169,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3157
3169
|
})
|
|
3158
3170
|
], 8, ["to"]));
|
|
3159
3171
|
}
|
|
3160
|
-
}),
|
|
3172
|
+
}), rl = ["innerHTML"], sl = { class: "vc-select__field-container" }, ul = /* @__PURE__ */ G({
|
|
3161
3173
|
inheritAttrs: !1,
|
|
3162
3174
|
__name: "vc-select",
|
|
3163
3175
|
props: {
|
|
@@ -3194,7 +3206,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3194
3206
|
const n = e, a = bt(), l = C(() => {
|
|
3195
3207
|
const { class: x, ...J } = a;
|
|
3196
3208
|
return J;
|
|
3197
|
-
}), r = t, { t: o } = nt({ useScope: "global" }), s =
|
|
3209
|
+
}), r = t, { t: o } = nt({ useScope: "global" }), s = he(), {
|
|
3198
3210
|
fieldId: u,
|
|
3199
3211
|
labelId: f,
|
|
3200
3212
|
errorId: m,
|
|
@@ -3204,10 +3216,10 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3204
3216
|
resolvedName: y,
|
|
3205
3217
|
ariaRequired: b,
|
|
3206
3218
|
ariaDescribedBy: O
|
|
3207
|
-
} =
|
|
3219
|
+
} = ze(n), p = C(() => `${u.value}-listbox`), k = S(null), V = S(null), { selectRootRef: j, isSelectVisible: ne, ensureVisibility: Q } = ko(), { getOptionValue: D, getOptionLabel: A, getOption: F, getEmittingOptionValue: K, fieldValueIsFilled: H } = Io({
|
|
3208
3220
|
optionValue: () => n.optionValue,
|
|
3209
3221
|
optionLabel: () => n.optionLabel
|
|
3210
|
-
}), { 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: z } = So({
|
|
3211
3223
|
placement: n.placement,
|
|
3212
3224
|
outline: () => n.outline,
|
|
3213
3225
|
isSelectVisible: ne,
|
|
@@ -3215,12 +3227,12 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3215
3227
|
disabled: () => n.disabled ?? !1,
|
|
3216
3228
|
ensureVisibility: Q
|
|
3217
3229
|
});
|
|
3218
|
-
|
|
3230
|
+
He(() => {
|
|
3219
3231
|
q.value = k.value?.toggleRef ?? null;
|
|
3220
|
-
}),
|
|
3232
|
+
}), He(() => {
|
|
3221
3233
|
te.value = V.value?.dropdownElRef ?? null;
|
|
3222
3234
|
});
|
|
3223
|
-
const M =
|
|
3235
|
+
const M = wo({
|
|
3224
3236
|
options: () => n.options,
|
|
3225
3237
|
getOptionValue: D,
|
|
3226
3238
|
getOptionLabel: A,
|
|
@@ -3229,7 +3241,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3229
3241
|
emit: {
|
|
3230
3242
|
search: (x) => r("search", x)
|
|
3231
3243
|
}
|
|
3232
|
-
}), { selectedScope: Dt, hasValue: Nt, optionScope: $e, removeAtIndex:
|
|
3244
|
+
}), { selectedScope: Dt, hasValue: Nt, optionScope: $e, removeAtIndex: Ft, onReset: zt } = $o({
|
|
3233
3245
|
modelValue: () => n.modelValue,
|
|
3234
3246
|
multiple: () => n.multiple,
|
|
3235
3247
|
emitValue: () => n.emitValue ?? !0,
|
|
@@ -3239,7 +3251,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3239
3251
|
cachedItems: M.cachedItems,
|
|
3240
3252
|
getOptionValue: D,
|
|
3241
3253
|
getOptionLabel: A,
|
|
3242
|
-
getOption:
|
|
3254
|
+
getOption: F,
|
|
3243
3255
|
fieldValueIsFilled: H,
|
|
3244
3256
|
isOpened: I,
|
|
3245
3257
|
popperUpdate: () => Me.update(),
|
|
@@ -3247,21 +3259,21 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3247
3259
|
updateModelValue: (x) => r("update:modelValue", x),
|
|
3248
3260
|
close: () => r("close")
|
|
3249
3261
|
}
|
|
3250
|
-
}),
|
|
3262
|
+
}), Pt = C(() => V.value?.loadMoreRef ?? null), qt = C(() => V.value?.viewportRef ?? null);
|
|
3251
3263
|
yn(
|
|
3252
|
-
|
|
3264
|
+
Pt,
|
|
3253
3265
|
([{ isIntersecting: x }]) => {
|
|
3254
3266
|
x && M.hasMore.value && M.loadMore();
|
|
3255
3267
|
},
|
|
3256
3268
|
{ threshold: 1, root: qt }
|
|
3257
3269
|
);
|
|
3258
|
-
const
|
|
3270
|
+
const Ke = ho({
|
|
3259
3271
|
onEnter: (x) => {
|
|
3260
3272
|
const J = parseInt(x.getAttribute("data-index") || "0", 10);
|
|
3261
3273
|
$e.value && $e.value[J] && $e.value[J].toggleOption($e.value[J].opt);
|
|
3262
3274
|
},
|
|
3263
3275
|
onEscape: () => {
|
|
3264
|
-
I.value = !1, r("close"),
|
|
3276
|
+
I.value = !1, r("close"), ye(() => {
|
|
3265
3277
|
k.value?.toggleRef?.querySelector('[role="combobox"]')?.focus();
|
|
3266
3278
|
});
|
|
3267
3279
|
}
|
|
@@ -3270,19 +3282,19 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3270
3282
|
I.value = !1, r("close");
|
|
3271
3283
|
}
|
|
3272
3284
|
return X(I, async (x) => {
|
|
3273
|
-
x ? (await M.open(),
|
|
3285
|
+
x ? (await M.open(), ye(() => {
|
|
3274
3286
|
Me.update();
|
|
3275
3287
|
const J = V.value?.dropdownElRef, le = V.value?.searchInputRef;
|
|
3276
3288
|
if (J)
|
|
3277
|
-
if (
|
|
3289
|
+
if (Ke.initKeyboardNavigation(J), n.searchable && le)
|
|
3278
3290
|
le.focus();
|
|
3279
3291
|
else {
|
|
3280
3292
|
const Oe = J.querySelector(
|
|
3281
3293
|
'.vc-select__option[tabindex="0"], .vc-select__search-input[tabindex="0"]'
|
|
3282
3294
|
);
|
|
3283
|
-
Oe ? Oe.focus() :
|
|
3295
|
+
Oe ? Oe.focus() : Ke.focusFirstElement();
|
|
3284
3296
|
}
|
|
3285
|
-
})) : (
|
|
3297
|
+
})) : (Ke.cleanupKeyboardNavigation(), M.close());
|
|
3286
3298
|
}), X(
|
|
3287
3299
|
() => n.modelValue,
|
|
3288
3300
|
async (x) => {
|
|
@@ -3303,7 +3315,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3303
3315
|
), (x, J) => i(s) ? (g(), h("div", ae({ key: 0 }, l.value, {
|
|
3304
3316
|
class: ["vc-select vc-select--skeleton", x.$attrs.class]
|
|
3305
3317
|
}), [
|
|
3306
|
-
e.label ? (g(),
|
|
3318
|
+
e.label ? (g(), P(i(oe), {
|
|
3307
3319
|
key: 0,
|
|
3308
3320
|
variant: "block",
|
|
3309
3321
|
width: 60 + (e.label?.length || 0) * 4,
|
|
@@ -3331,7 +3343,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3331
3343
|
}
|
|
3332
3344
|
]]
|
|
3333
3345
|
}), [
|
|
3334
|
-
e.label ? (g(),
|
|
3346
|
+
e.label ? (g(), P(i(qe), {
|
|
3335
3347
|
key: 0,
|
|
3336
3348
|
id: i(f),
|
|
3337
3349
|
class: "vc-select__label",
|
|
@@ -3339,7 +3351,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3339
3351
|
multilanguage: e.multilanguage,
|
|
3340
3352
|
"current-language": e.currentLanguage,
|
|
3341
3353
|
error: i(d)
|
|
3342
|
-
},
|
|
3354
|
+
}, me({
|
|
3343
3355
|
default: E(() => [
|
|
3344
3356
|
L("span", null, N(e.label), 1)
|
|
3345
3357
|
]),
|
|
@@ -3350,13 +3362,13 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3350
3362
|
fn: E(() => [
|
|
3351
3363
|
L("span", {
|
|
3352
3364
|
innerHTML: i(En).sanitize(e.tooltip)
|
|
3353
|
-
}, null, 8,
|
|
3365
|
+
}, null, 8, rl)
|
|
3354
3366
|
]),
|
|
3355
3367
|
key: "0"
|
|
3356
3368
|
} : void 0
|
|
3357
3369
|
]), 1032, ["id", "required", "multilanguage", "current-language", "error"])) : w("", !0),
|
|
3358
|
-
L("div",
|
|
3359
|
-
T(
|
|
3370
|
+
L("div", sl, [
|
|
3371
|
+
T(Zo, {
|
|
3360
3372
|
ref_key: "selectTriggerRef",
|
|
3361
3373
|
ref: k,
|
|
3362
3374
|
"is-opened": i(I),
|
|
@@ -3382,14 +3394,14 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3382
3394
|
"aria-required": i(b),
|
|
3383
3395
|
"error-id": i(m),
|
|
3384
3396
|
"hint-id": i(v),
|
|
3385
|
-
"toggle-dropdown": i(
|
|
3397
|
+
"toggle-dropdown": i(z),
|
|
3386
3398
|
"get-option-label": i(A),
|
|
3387
3399
|
"get-emitting-option-value": i(K),
|
|
3388
3400
|
onFocus: J[0] || (J[0] = (le) => R.value = !0),
|
|
3389
3401
|
onBlur: J[1] || (J[1] = (le) => R.value = !1),
|
|
3390
|
-
onReset: i(
|
|
3391
|
-
onRemoveAtIndex: i(
|
|
3392
|
-
},
|
|
3402
|
+
onReset: i(zt),
|
|
3403
|
+
onRemoveAtIndex: i(Ft)
|
|
3404
|
+
}, me({ _: 2 }, [
|
|
3393
3405
|
x.$slots.control ? {
|
|
3394
3406
|
name: "control",
|
|
3395
3407
|
fn: E((le) => [
|
|
@@ -3447,7 +3459,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3447
3459
|
key: "7"
|
|
3448
3460
|
} : void 0
|
|
3449
3461
|
]), 1032, ["is-opened", "has-value", "selected-scope", "multiple", "loading", "disabled", "clearable", "placeholder", "prefix", "suffix", "size", "error", "error-message", "hint", "list-loading", "default-option-loading", "listbox-id", "label-id", "label", "aria-described-by", "aria-required", "error-id", "hint-id", "toggle-dropdown", "get-option-label", "get-emitting-option-value", "onReset", "onRemoveAtIndex"]),
|
|
3450
|
-
T(
|
|
3462
|
+
T(il, ae({
|
|
3451
3463
|
ref_key: "selectDropdownRef",
|
|
3452
3464
|
ref: V,
|
|
3453
3465
|
"is-opened": i(I),
|
|
@@ -3462,7 +3474,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3462
3474
|
"dropdown-toggle-ref": k.value?.toggleRef ?? null,
|
|
3463
3475
|
onInput: i(M).onInput,
|
|
3464
3476
|
onClickOutside: Kt
|
|
3465
|
-
}),
|
|
3477
|
+
}), me({ _: 2 }, [
|
|
3466
3478
|
x.$slots.option ? {
|
|
3467
3479
|
name: "option",
|
|
3468
3480
|
fn: E((le) => [
|
|
@@ -3481,10 +3493,10 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3481
3493
|
])
|
|
3482
3494
|
], 16));
|
|
3483
3495
|
}
|
|
3484
|
-
}),
|
|
3496
|
+
}), cl = {
|
|
3485
3497
|
key: 0,
|
|
3486
3498
|
class: "vc-input-dropdown vc-input-dropdown--skeleton"
|
|
3487
|
-
},
|
|
3499
|
+
}, dl = { class: "tw-flex tw-items-center" }, fl = ["aria-label", "aria-expanded", "onClick", "onKeydown"], gl = /* @__PURE__ */ G({
|
|
3488
3500
|
__name: "vc-input-dropdown",
|
|
3489
3501
|
props: {
|
|
3490
3502
|
modelValue: {},
|
|
@@ -3516,9 +3528,9 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3516
3528
|
},
|
|
3517
3529
|
emits: ["update:model-value", "update:option", "change", "blur"],
|
|
3518
3530
|
setup(e) {
|
|
3519
|
-
const t =
|
|
3520
|
-
return (n, a) => i(t) ? (g(), h("div",
|
|
3521
|
-
e.label ? (g(),
|
|
3531
|
+
const t = he();
|
|
3532
|
+
return (n, a) => i(t) ? (g(), h("div", cl, [
|
|
3533
|
+
e.label ? (g(), P(i(oe), {
|
|
3522
3534
|
key: 0,
|
|
3523
3535
|
variant: "block",
|
|
3524
3536
|
width: 60 + (e.label?.length || 0) * 4,
|
|
@@ -3529,7 +3541,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3529
3541
|
width: "100%",
|
|
3530
3542
|
height: 36
|
|
3531
3543
|
})
|
|
3532
|
-
])) : (g(),
|
|
3544
|
+
])) : (g(), P(i(ul), {
|
|
3533
3545
|
key: 1,
|
|
3534
3546
|
class: "vc-input-dropdown",
|
|
3535
3547
|
options: e.options,
|
|
@@ -3550,7 +3562,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3550
3562
|
B(n.$slots, "option", Ce(Be(l)))
|
|
3551
3563
|
]),
|
|
3552
3564
|
control: E(({ toggleHandler: l, isOpened: r }) => [
|
|
3553
|
-
T(i(
|
|
3565
|
+
T(i(bo), {
|
|
3554
3566
|
placeholder: e.placeholder,
|
|
3555
3567
|
hint: e.hint,
|
|
3556
3568
|
clearable: e.clearable,
|
|
@@ -3568,9 +3580,9 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3568
3580
|
class: "vc-input-dropdown__input",
|
|
3569
3581
|
"onUpdate:modelValue": a[0] || (a[0] = (o) => n.$emit("update:model-value", o)),
|
|
3570
3582
|
onBlur: a[1] || (a[1] = (o) => n.$emit("blur", o))
|
|
3571
|
-
},
|
|
3583
|
+
}, me({
|
|
3572
3584
|
"append-inner": E(() => [
|
|
3573
|
-
L("div",
|
|
3585
|
+
L("div", dl, [
|
|
3574
3586
|
B(n.$slots, "button", { toggleHandler: l }, () => [
|
|
3575
3587
|
e.options && e.options.length ? (g(), h("button", {
|
|
3576
3588
|
key: 0,
|
|
@@ -3585,9 +3597,9 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3585
3597
|
_(Y(l, ["stop", "prevent"]), ["enter"]),
|
|
3586
3598
|
_(Y(l, ["stop", "prevent"]), ["space"])
|
|
3587
3599
|
]
|
|
3588
|
-
}, N(i(e.option)), 41,
|
|
3600
|
+
}, N(i(e.option)), 41, fl)) : w("", !0)
|
|
3589
3601
|
]),
|
|
3590
|
-
e.options && e.options.length ? (g(),
|
|
3602
|
+
e.options && e.options.length ? (g(), P(i(da), {
|
|
3591
3603
|
key: 0,
|
|
3592
3604
|
icon: r ? "lucide-chevron-up" : "lucide-chevron-down",
|
|
3593
3605
|
"icon-size": "s",
|
|
@@ -3634,10 +3646,10 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3634
3646
|
_: 3
|
|
3635
3647
|
}, 8, ["options", "option-label", "option-value", "searchable", "debounce", "disabled", "label", "required", "model-value", "tooltip", "multilanguage", "current-language"]));
|
|
3636
3648
|
}
|
|
3637
|
-
}),
|
|
3649
|
+
}), vl = {
|
|
3638
3650
|
key: 0,
|
|
3639
3651
|
class: "vc-input-currency vc-input-currency--skeleton"
|
|
3640
|
-
},
|
|
3652
|
+
}, pl = ["disabled", "placeholder", "aria-label"], pi = /* @__PURE__ */ G({
|
|
3641
3653
|
__name: "vc-input-currency",
|
|
3642
3654
|
props: {
|
|
3643
3655
|
modelValue: {},
|
|
@@ -3667,7 +3679,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3667
3679
|
},
|
|
3668
3680
|
emits: ["update:model-value", "update:option", "change", "blur"],
|
|
3669
3681
|
setup(e, { emit: t }) {
|
|
3670
|
-
const n = e, a = t, l =
|
|
3682
|
+
const n = e, a = t, l = he(), { inputRef: r, setOptions: o, numberValue: s, setValue: u } = Sn(
|
|
3671
3683
|
{
|
|
3672
3684
|
locale: navigator.language,
|
|
3673
3685
|
currency: n.option || "USD",
|
|
@@ -3718,8 +3730,8 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3718
3730
|
const y = c.clipboardData?.getData("text/plain");
|
|
3719
3731
|
typeof y < "u" && parseInt(y) < 0 && c.preventDefault();
|
|
3720
3732
|
}
|
|
3721
|
-
return (c, y) => i(l) ? (g(), h("div",
|
|
3722
|
-
e.label ? (g(),
|
|
3733
|
+
return (c, y) => i(l) ? (g(), h("div", vl, [
|
|
3734
|
+
e.label ? (g(), P(i(oe), {
|
|
3723
3735
|
key: 0,
|
|
3724
3736
|
variant: "block",
|
|
3725
3737
|
width: 60 + (e.label?.length || 0) * 4,
|
|
@@ -3730,7 +3742,7 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3730
3742
|
width: "100%",
|
|
3731
3743
|
height: 36
|
|
3732
3744
|
})
|
|
3733
|
-
])) : (g(),
|
|
3745
|
+
])) : (g(), P(i(gl), {
|
|
3734
3746
|
key: 1,
|
|
3735
3747
|
class: "vc-input-currency",
|
|
3736
3748
|
options: e.options,
|
|
@@ -3773,31 +3785,31 @@ const $o = { class: "vc-select__control" }, Oo = {
|
|
|
3773
3785
|
onBlur: m,
|
|
3774
3786
|
onKeydown: v,
|
|
3775
3787
|
onPaste: d
|
|
3776
|
-
}, null, 40,
|
|
3788
|
+
}, null, 40, pl)
|
|
3777
3789
|
]),
|
|
3778
3790
|
_: 1
|
|
3779
3791
|
}, 8, ["options", "option-label", "option-value", "searchable", "debounce", "disabled", "label", "required", "option", "model-value", "tooltip", "placeholder", "hint", "clearable", "prefix", "suffix", "name", "loading", "autofocus", "error", "error-message", "maxlength"]));
|
|
3780
3792
|
}
|
|
3781
|
-
}), Vt = Symbol("VcAppBarState"),
|
|
3793
|
+
}), Vt = Symbol("VcAppBarState"), ml = {
|
|
3782
3794
|
activeWidgetId: S(null),
|
|
3783
3795
|
activeMobileActionId: S(null)
|
|
3784
3796
|
};
|
|
3785
|
-
function
|
|
3797
|
+
function mi() {
|
|
3786
3798
|
const e = {
|
|
3787
3799
|
activeWidgetId: S(null),
|
|
3788
3800
|
activeMobileActionId: S(null)
|
|
3789
3801
|
};
|
|
3790
3802
|
return mt(Vt, e), e;
|
|
3791
3803
|
}
|
|
3792
|
-
function
|
|
3793
|
-
return U(Vt,
|
|
3804
|
+
function yi() {
|
|
3805
|
+
return U(Vt, ml);
|
|
3794
3806
|
}
|
|
3795
|
-
const
|
|
3807
|
+
const bi = Symbol("TableContext"), yl = Symbol("ColumnCollector"), hi = Symbol("FillerWidth"), Ii = Symbol("IsColumnReordering"), ki = Symbol("FilterContext"), Si = (e, t) => {
|
|
3796
3808
|
const n = e.__vccOpts || e;
|
|
3797
3809
|
for (const [a, l] of t)
|
|
3798
3810
|
n[a] = l;
|
|
3799
3811
|
return n;
|
|
3800
|
-
},
|
|
3812
|
+
}, wi = G({
|
|
3801
3813
|
name: "VcColumn",
|
|
3802
3814
|
inheritAttrs: !1,
|
|
3803
3815
|
props: {
|
|
@@ -3975,7 +3987,7 @@ const yi = Symbol("TableContext"), ml = Symbol("ColumnCollector"), bi = Symbol("
|
|
|
3975
3987
|
}
|
|
3976
3988
|
},
|
|
3977
3989
|
setup(e, { slots: t }) {
|
|
3978
|
-
const n = U(
|
|
3990
|
+
const n = U(yl, null), a = Fe();
|
|
3979
3991
|
return tt(() => {
|
|
3980
3992
|
n && a && n.add({
|
|
3981
3993
|
instance: a,
|
|
@@ -3986,8 +3998,8 @@ const yi = Symbol("TableContext"), ml = Symbol("ColumnCollector"), bi = Symbol("
|
|
|
3986
3998
|
n && a && n.delete(a);
|
|
3987
3999
|
}), () => null;
|
|
3988
4000
|
}
|
|
3989
|
-
}), Ie =
|
|
3990
|
-
function
|
|
4001
|
+
}), Ie = Ge(/* @__PURE__ */ new Map());
|
|
4002
|
+
function $i() {
|
|
3991
4003
|
return {
|
|
3992
4004
|
register: (o) => {
|
|
3993
4005
|
Ie.set(o.type, o);
|
|
@@ -4001,7 +4013,7 @@ function wi() {
|
|
|
4001
4013
|
}
|
|
4002
4014
|
};
|
|
4003
4015
|
}
|
|
4004
|
-
const
|
|
4016
|
+
const Oi = G({
|
|
4005
4017
|
name: "SlotProxy",
|
|
4006
4018
|
props: {
|
|
4007
4019
|
slotFn: { type: Function, required: !0 },
|
|
@@ -4010,104 +4022,104 @@ const $i = G({
|
|
|
4010
4022
|
setup(e) {
|
|
4011
4023
|
return () => e.slotFn(e.scope);
|
|
4012
4024
|
}
|
|
4013
|
-
}),
|
|
4025
|
+
}), Ei = (e, t) => {
|
|
4014
4026
|
const n = t.arg ? parseInt(t.arg, 10) : 9e3, a = typeof t.value == "object" ? t.value : { blur: !0 };
|
|
4015
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"));
|
|
4016
4028
|
};
|
|
4017
4029
|
export {
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4030
|
+
Wn as $,
|
|
4031
|
+
Xe as A,
|
|
4032
|
+
sa as B,
|
|
4033
|
+
Dn as C,
|
|
4034
|
+
ta as D,
|
|
4035
|
+
li as E,
|
|
4036
|
+
oi as F,
|
|
4025
4037
|
Rt as G,
|
|
4026
|
-
|
|
4038
|
+
ci as H,
|
|
4027
4039
|
Bn as I,
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4040
|
+
_n as J,
|
|
4041
|
+
Aa as K,
|
|
4042
|
+
na as L,
|
|
4043
|
+
aa as M,
|
|
4044
|
+
oa as N,
|
|
4045
|
+
Fl as O,
|
|
4046
|
+
ge as P,
|
|
4047
|
+
fa as Q,
|
|
4036
4048
|
ie as R,
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4049
|
+
zl as S,
|
|
4050
|
+
Nl as T,
|
|
4051
|
+
Dl as U,
|
|
4040
4052
|
ue as V,
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4053
|
+
Vl as W,
|
|
4054
|
+
ui as X,
|
|
4055
|
+
Kl as Y,
|
|
4056
|
+
di as Z,
|
|
4057
|
+
da as _,
|
|
4058
|
+
to as a,
|
|
4059
|
+
Un as a0,
|
|
4060
|
+
jn as a1,
|
|
4061
|
+
Tn as a2,
|
|
4062
|
+
An as a3,
|
|
4063
|
+
ql as a4,
|
|
4064
|
+
Kn as a5,
|
|
4065
|
+
jl as a6,
|
|
4066
|
+
Gl as a7,
|
|
4055
4067
|
Ln as a8,
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4068
|
+
Mn as a9,
|
|
4069
|
+
$i as aA,
|
|
4070
|
+
Oi as aB,
|
|
4071
|
+
yl as aC,
|
|
4072
|
+
ki as aD,
|
|
4073
|
+
Nn as aE,
|
|
4074
|
+
qn as aa,
|
|
4063
4075
|
dt as ab,
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4076
|
+
ri as ac,
|
|
4077
|
+
Jl as ad,
|
|
4078
|
+
fi as ae,
|
|
4079
|
+
_l as af,
|
|
4080
|
+
ii as ag,
|
|
4081
|
+
ni as ah,
|
|
4082
|
+
Ql as ai,
|
|
4083
|
+
ai as aj,
|
|
4084
|
+
Hl as ak,
|
|
4085
|
+
Ul as al,
|
|
4086
|
+
Wl as am,
|
|
4087
|
+
ia as an,
|
|
4088
|
+
Yl as ao,
|
|
4089
|
+
gi as ap,
|
|
4090
|
+
ei as aq,
|
|
4091
|
+
Pl as ar,
|
|
4092
|
+
Zl as as,
|
|
4081
4093
|
Mt as at,
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4094
|
+
vi as au,
|
|
4095
|
+
ho as av,
|
|
4096
|
+
zn as aw,
|
|
4097
|
+
bi as ax,
|
|
4098
|
+
hi as ay,
|
|
4099
|
+
Ii as az,
|
|
4100
|
+
wi as b,
|
|
4101
|
+
Ua as c,
|
|
4102
|
+
bo as d,
|
|
4103
|
+
pi as e,
|
|
4104
|
+
gl as f,
|
|
4105
|
+
qe as g,
|
|
4106
|
+
Ea as h,
|
|
4107
|
+
ul as i,
|
|
4096
4108
|
oe as j,
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4109
|
+
he as k,
|
|
4110
|
+
Ei as l,
|
|
4111
|
+
Fn as m,
|
|
4112
|
+
ze as n,
|
|
4113
|
+
Pn as o,
|
|
4114
|
+
mi as p,
|
|
4115
|
+
Si as q,
|
|
4116
|
+
si as r,
|
|
4117
|
+
ti as s,
|
|
4118
|
+
Vn as t,
|
|
4119
|
+
yi as u,
|
|
4108
4120
|
at as v,
|
|
4109
4121
|
re as w,
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4122
|
+
be as x,
|
|
4123
|
+
Ae as y,
|
|
4124
|
+
Xl as z
|
|
4113
4125
|
};
|