@vc-shell/framework 2.6.0-rc.1-pr367.f44c722 → 2.6.0-rc.1-pr368.68c3228
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-M9DipcUo.js → VcScheduler.vue_vue_type_script_setup_true_lang-Bg0dOAPa.js} +1 -1
- package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-M9DipcUo.js.map → VcScheduler.vue_vue_type_script_setup_true_lang-Bg0dOAPa.js.map} +1 -1
- package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang--fex28gu.js → VcScheduler.vue_vue_type_style_index_0_lang-DF6sAN8W.js} +1131 -1146
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-DF6sAN8W.js.map +1 -0
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-9tpCO_nu.js → dashboard-feed-row.vue_vue_type_script_setup_true_lang-DZ4K0eQK.js} +1 -1
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-9tpCO_nu.js.map → dashboard-feed-row.vue_vue_type_script_setup_true_lang-DZ4K0eQK.js.map} +1 -1
- package/dist/core/composables/useSlowNetworkDetection/index.d.ts.map +1 -1
- package/dist/core/interceptors/index.d.ts.map +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/framework.js +922 -922
- package/dist/framework.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-select/composables/useSelectDataSource.d.ts.map +1 -1
- package/dist/ui/index.js +2 -2
- package/package.json +4 -4
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang--fex28gu.js.map +0 -1
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { mergeProps as
|
|
2
|
-
import { c as
|
|
3
|
-
import { defineRule as
|
|
4
|
-
import { a as
|
|
5
|
-
import { a as
|
|
1
|
+
import { mergeProps as ne, computed as S, toValue as me, inject as Y, useId as an, ref as I, onBeforeUnmount as lt, reactive as Ye, provide as $t, getCurrentScope as ln, onScopeDispose as on, getCurrentInstance as qe, onErrorCaptured as rn, nextTick as ke, defineComponent as V, watch as H, unref as r, openBlock as v, createElementBlock as y, normalizeClass as W, createBlock as N, createCommentVNode as w, renderSlot as C, createElementVNode as L, toDisplayString as T, Fragment as Oe, renderList as ot, normalizeStyle as Ae, resolveDynamicComponent as it, withCtx as O, withKeys as Z, withModifiers as G, createVNode as x, watchEffect as Qe, shallowReactive as _e, markRaw as et, createSlots as re, createTextVNode as Q, Transition as Ne, withDirectives as rt, vModelText as sn, useAttrs as wt, vModelDynamic as un, onMounted as Ue, onUnmounted as Ot, Teleport as cn, normalizeProps as Te, guardReactiveProps as Re } from "vue";
|
|
2
|
+
import { c as fe, ai as dn, O as fn, v as vn, r as gn, o as mn, I as pn, q as bn, p as yn, B as Et, b as hn, i as kn, _ as K, T as Lt, a as Bt, V as In, w as Sn, u as $n } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-JB7OKRk6.js";
|
|
3
|
+
import { defineRule as Ee, Field as wn } from "vee-validate";
|
|
4
|
+
import { a as bt } from "./vendor-vee-validate-rules-4oWUZPpG.js";
|
|
5
|
+
import { a as Ct, s as On, c as En, b as Je, e as Me } from "./vendor-lodash-es-D2n90GJy.js";
|
|
6
6
|
import { X as Ln } from "./vendor-microsoft-applicationinsights-core-js-CR3vyuZc.js";
|
|
7
|
-
import { d as
|
|
8
|
-
import { c as Tn, u as
|
|
7
|
+
import { d as xt, e as Bn, f as Cn, g as xn } from "./vendor-vueuse-core-_wFDcFkI.js";
|
|
8
|
+
import { c as Tn, u as Se } from "./vendor-vue-i18n-LO-EJStU.js";
|
|
9
9
|
import { j as Rn } from "./vendor-vueuse-shared-CiuC98Kk.js";
|
|
10
10
|
import { k as Mn } from "./vendor-tiptap-core-CZbeo7XQ.js";
|
|
11
11
|
import "./vendor-tiptap-extension-text-style-Bc6nvmn0.js";
|
|
12
12
|
import { q as An } from "./vendor-vuepic-vue-datepicker-D0bvbIbh.js";
|
|
13
13
|
import { C as Nn, u as Dn } from "./vendor-vue-currency-input-CckB4kjx.js";
|
|
14
14
|
import { u as Vn } from "./vendor-floating-ui-vue-sCrhit51.js";
|
|
15
|
-
import { f as
|
|
15
|
+
import { f as Tt, s as Rt, o as tt, b as Pn } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
|
|
16
16
|
import { v as Fn } from "./vendor-vueuse-components-B3XvEasa.js";
|
|
17
|
-
import { p as
|
|
18
|
-
import { S as
|
|
17
|
+
import { p as Mt } from "./vendor-dompurify-DpIUMBYC.js";
|
|
18
|
+
import { S as he, h as zn, T as qn } from "./vendor-date-fns-C-55OMpS.js";
|
|
19
19
|
import { t as Un } from "./vendor-truncate-html-ChA1T5zy.js";
|
|
20
|
-
const
|
|
20
|
+
const Ie = Tn({
|
|
21
21
|
legacy: !1,
|
|
22
22
|
globalInjection: !0,
|
|
23
23
|
locale: "en",
|
|
24
24
|
fallbackLocale: "en",
|
|
25
25
|
formatFallbackMessages: !0
|
|
26
26
|
});
|
|
27
|
-
function
|
|
27
|
+
function nt() {
|
|
28
28
|
return Math.random().toString(36).substring(2, 9);
|
|
29
29
|
}
|
|
30
|
-
class
|
|
30
|
+
class se extends Error {
|
|
31
31
|
constructor(t, n, a) {
|
|
32
|
-
super(t), this.code = n, this.context = a, this.name = "FrameworkError", Error.captureStackTrace && Error.captureStackTrace(this,
|
|
32
|
+
super(t), this.code = n, this.context = a, this.name = "FrameworkError", Error.captureStackTrace && Error.captureStackTrace(this, se);
|
|
33
33
|
}
|
|
34
34
|
toJSON() {
|
|
35
35
|
return {
|
|
@@ -41,17 +41,17 @@ class ie extends Error {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
class Pi extends
|
|
44
|
+
class Pi extends se {
|
|
45
45
|
constructor(t, n) {
|
|
46
46
|
super(t, "VALIDATION_ERROR", n), this.name = "ValidationError";
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
class Fi extends
|
|
49
|
+
class Fi extends se {
|
|
50
50
|
constructor(t, n) {
|
|
51
51
|
super(t, "SERVICE_ERROR", n), this.name = "ServiceError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
class Kn extends
|
|
54
|
+
class Kn extends se {
|
|
55
55
|
constructor(t, n) {
|
|
56
56
|
super(`${t} not provided. Make sure to call the corresponding 'provide' function.`, "INJECTION_ERROR", {
|
|
57
57
|
serviceName: t,
|
|
@@ -59,7 +59,7 @@ class Kn extends ie {
|
|
|
59
59
|
}), this.name = "InjectionError";
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
class zi extends
|
|
62
|
+
class zi extends se {
|
|
63
63
|
constructor(t, n, a) {
|
|
64
64
|
super(`Failed to register '${t}': ${n}`, "REGISTRATION_ERROR", {
|
|
65
65
|
componentName: t,
|
|
@@ -67,7 +67,7 @@ class zi extends ie {
|
|
|
67
67
|
}), this.name = "RegistrationError";
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
class qi extends
|
|
70
|
+
class qi extends se {
|
|
71
71
|
constructor(t, n, a) {
|
|
72
72
|
super(t, "BLADE_ERROR", {
|
|
73
73
|
bladeId: n,
|
|
@@ -75,7 +75,7 @@ class qi extends ie {
|
|
|
75
75
|
}), this.name = "BladeError";
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
class Ui extends
|
|
78
|
+
class Ui extends se {
|
|
79
79
|
constructor(t, n, a) {
|
|
80
80
|
super(`Failed to load module '${t}': ${n}`, "MODULE_LOAD_ERROR", {
|
|
81
81
|
moduleId: t,
|
|
@@ -84,15 +84,15 @@ class Ui extends ie {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
function Wn(e) {
|
|
87
|
-
return e instanceof
|
|
87
|
+
return e instanceof se;
|
|
88
88
|
}
|
|
89
89
|
function Ki(e, t = "UNKNOWN_ERROR") {
|
|
90
|
-
return Wn(e) ? e : e instanceof Error ? new
|
|
90
|
+
return Wn(e) ? e : e instanceof Error ? new se(e.message, t, {
|
|
91
91
|
originalError: e.name,
|
|
92
92
|
stack: e.stack
|
|
93
|
-
}) : new
|
|
93
|
+
}) : new se(String(e), t);
|
|
94
94
|
}
|
|
95
|
-
class
|
|
95
|
+
class pe extends Error {
|
|
96
96
|
details;
|
|
97
97
|
originalError;
|
|
98
98
|
constructor(t, n, a) {
|
|
@@ -102,28 +102,28 @@ class he extends Error {
|
|
|
102
102
|
function jn(e) {
|
|
103
103
|
return e instanceof Error && typeof e.status == "number" && typeof e.response == "string";
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
if (e instanceof
|
|
105
|
+
function Pe(e) {
|
|
106
|
+
if (e instanceof pe)
|
|
107
107
|
return e;
|
|
108
108
|
if (jn(e)) {
|
|
109
109
|
const { status: t, response: n } = e;
|
|
110
110
|
try {
|
|
111
|
-
return
|
|
111
|
+
return Pe(JSON.parse(n));
|
|
112
112
|
} catch {
|
|
113
113
|
const a = `${t}: ${e.message || "Error"}`;
|
|
114
|
-
return new
|
|
114
|
+
return new pe(a, n || e.message, e);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
if (e instanceof Error && "response" in e && e.response)
|
|
118
|
-
return
|
|
118
|
+
return Pe(e.response);
|
|
119
119
|
if (e instanceof Error)
|
|
120
|
-
return new
|
|
120
|
+
return new pe(e.message, e.stack || String(e), e);
|
|
121
121
|
if (typeof e == "string")
|
|
122
122
|
try {
|
|
123
123
|
const t = JSON.parse(e);
|
|
124
|
-
return
|
|
124
|
+
return Pe(t);
|
|
125
125
|
} catch {
|
|
126
|
-
return new
|
|
126
|
+
return new pe(e, e, e);
|
|
127
127
|
}
|
|
128
128
|
if (typeof e == "object" && e !== null) {
|
|
129
129
|
const t = e;
|
|
@@ -131,12 +131,12 @@ function ze(e) {
|
|
|
131
131
|
const o = t.status, i = t.statusText || "Error", l = `${o}: ${i}`, s = t.data;
|
|
132
132
|
let u = "";
|
|
133
133
|
return s ? typeof s.exceptionMessage == "string" ? u = s.exceptionMessage : typeof s.message == "string" ? u = s.message : Array.isArray(s.errors) ? u = s.errors.join(`
|
|
134
|
-
`) : typeof s == "string" ? u = s : u = JSON.stringify(s, null, 2) : u = JSON.stringify(t, null, 2), new
|
|
134
|
+
`) : typeof s == "string" ? u = s : u = JSON.stringify(s, null, 2) : u = JSON.stringify(t, null, 2), new pe(l, u, e);
|
|
135
135
|
}
|
|
136
136
|
const n = t.message || "An unexpected error occurred.", a = t.stack || JSON.stringify(t, null, 2);
|
|
137
|
-
return new
|
|
137
|
+
return new pe(n, a, e);
|
|
138
138
|
}
|
|
139
|
-
return new
|
|
139
|
+
return new pe("An unknown error occurred.", String(e), e);
|
|
140
140
|
}
|
|
141
141
|
const Hn = [
|
|
142
142
|
["LLLL", "PPPp"],
|
|
@@ -163,18 +163,18 @@ function Yn(e) {
|
|
|
163
163
|
t = t.replace(n, a);
|
|
164
164
|
return t;
|
|
165
165
|
}
|
|
166
|
-
const
|
|
167
|
-
|
|
168
|
-
|
|
166
|
+
const ce = /* @__PURE__ */ new Map();
|
|
167
|
+
ce.set("en-US", he);
|
|
168
|
+
ce.set("en", he);
|
|
169
169
|
async function Jn(e) {
|
|
170
|
-
if (
|
|
171
|
-
return
|
|
170
|
+
if (ce.has(e))
|
|
171
|
+
return ce.get(e);
|
|
172
172
|
try {
|
|
173
173
|
const t = await import(
|
|
174
174
|
/* @vite-ignore */
|
|
175
175
|
`date-fns/locale/${e}`
|
|
176
|
-
), n = e.replace("-", ""), a = t.default ?? t[n] ??
|
|
177
|
-
return
|
|
176
|
+
), n = e.replace("-", ""), a = t.default ?? t[n] ?? he;
|
|
177
|
+
return ce.set(e, a), a;
|
|
178
178
|
} catch {
|
|
179
179
|
const t = e.split("-")[0];
|
|
180
180
|
if (t !== e)
|
|
@@ -182,35 +182,35 @@ async function Jn(e) {
|
|
|
182
182
|
const n = await import(
|
|
183
183
|
/* @vite-ignore */
|
|
184
184
|
`date-fns/locale/${t}`
|
|
185
|
-
), a = n.default ?? n[t] ??
|
|
186
|
-
return
|
|
185
|
+
), a = n.default ?? n[t] ?? he;
|
|
186
|
+
return ce.set(e, a), a;
|
|
187
187
|
} catch {
|
|
188
188
|
}
|
|
189
|
-
return
|
|
189
|
+
return ce.set(e, he), he;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
return
|
|
192
|
+
function At(e) {
|
|
193
|
+
return ce.has(e) ? ce.get(e) : (Jn(e), he);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function Nt(e) {
|
|
196
196
|
if (e == null || e === "") return null;
|
|
197
197
|
if (e instanceof Date) return isNaN(e.getTime()) ? null : e;
|
|
198
198
|
const t = new Date(e);
|
|
199
199
|
return isNaN(t.getTime()) ? null : t;
|
|
200
200
|
}
|
|
201
201
|
function Xn(e, t) {
|
|
202
|
-
const n =
|
|
202
|
+
const n = Nt(e);
|
|
203
203
|
if (!n) return "";
|
|
204
|
-
const a = t ?
|
|
204
|
+
const a = t ? At(t) : void 0;
|
|
205
205
|
return qn(n, { addSuffix: !0, locale: a });
|
|
206
206
|
}
|
|
207
207
|
function Zn(e, t, n) {
|
|
208
|
-
const a =
|
|
208
|
+
const a = Nt(e);
|
|
209
209
|
if (!a) return "";
|
|
210
|
-
const o = Yn(t), i = n ?
|
|
210
|
+
const o = Yn(t), i = n ? At(n) : void 0;
|
|
211
211
|
return zn(a, o, { locale: i });
|
|
212
212
|
}
|
|
213
|
-
const Qn =
|
|
213
|
+
const Qn = fe("color-utils");
|
|
214
214
|
function _n(e) {
|
|
215
215
|
if (!e || typeof e != "string")
|
|
216
216
|
return null;
|
|
@@ -229,7 +229,7 @@ function ea(e) {
|
|
|
229
229
|
const t = e.startsWith("#") ? e : `#${e}`;
|
|
230
230
|
return /^#[0-9A-Fa-f]{6}$/.test(t);
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function yt(e) {
|
|
233
233
|
return !e || typeof e != "string" ? "" : e.startsWith("#") ? e : `#${e}`;
|
|
234
234
|
}
|
|
235
235
|
function ta(e, t) {
|
|
@@ -271,7 +271,7 @@ function ji() {
|
|
|
271
271
|
}
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
|
-
const
|
|
274
|
+
const st = () => {
|
|
275
275
|
const e = dn();
|
|
276
276
|
return {
|
|
277
277
|
user: e.user,
|
|
@@ -290,7 +290,7 @@ const ct = () => {
|
|
|
290
290
|
};
|
|
291
291
|
};
|
|
292
292
|
function aa() {
|
|
293
|
-
const { user: e } =
|
|
293
|
+
const { user: e } = st();
|
|
294
294
|
function t(n) {
|
|
295
295
|
const a = e.value?.permissions ?? [];
|
|
296
296
|
if (!n || Array.isArray(n) && n.length === 0 || e.value?.isAdministrator)
|
|
@@ -305,56 +305,56 @@ function aa() {
|
|
|
305
305
|
hasAccess: t
|
|
306
306
|
};
|
|
307
307
|
}
|
|
308
|
-
const
|
|
308
|
+
const ye = fe("notification"), ge = na();
|
|
309
309
|
function la(e) {
|
|
310
|
-
|
|
310
|
+
ge.register(e);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
313
|
-
const n =
|
|
312
|
+
function De(e, t) {
|
|
313
|
+
const n = ge.get();
|
|
314
314
|
if (!n) {
|
|
315
|
-
|
|
315
|
+
ye.debug("Backend not yet registered — notification call ignored.");
|
|
316
316
|
return;
|
|
317
317
|
}
|
|
318
|
-
return t =
|
|
318
|
+
return t = ne(
|
|
319
319
|
n.defaultOptions,
|
|
320
320
|
t
|
|
321
|
-
), (!t.notificationId || typeof t.notificationId != "string" && typeof t.notificationId != "number") && (t.notificationId =
|
|
321
|
+
), (!t.notificationId || typeof t.notificationId != "string" && typeof t.notificationId != "number") && (t.notificationId = nt()), t = {
|
|
322
322
|
...t,
|
|
323
323
|
content: e
|
|
324
324
|
}, n.appendInstance(t), t.notificationId;
|
|
325
325
|
}
|
|
326
|
-
const ue = (e, t) =>
|
|
327
|
-
ue.error = (e, t) =>
|
|
328
|
-
ue.warning = (e, t) =>
|
|
329
|
-
ue.success = (e, t) =>
|
|
326
|
+
const ue = (e, t) => De(e, { ...t, type: "default" });
|
|
327
|
+
ue.error = (e, t) => De(e, { ...t, type: "error" });
|
|
328
|
+
ue.warning = (e, t) => De(e, { ...t, type: "warning" });
|
|
329
|
+
ue.success = (e, t) => De(e, { ...t, type: "success" });
|
|
330
330
|
ue.clearAll = () => {
|
|
331
|
-
|
|
331
|
+
ge.get()?.actions.clear();
|
|
332
332
|
};
|
|
333
333
|
ue.remove = (e) => {
|
|
334
|
-
const t =
|
|
334
|
+
const t = ge.get();
|
|
335
335
|
t && (e ? t.actions.dismiss(e) : t.actions.clear());
|
|
336
336
|
};
|
|
337
337
|
ue.update = (e, t) => {
|
|
338
|
-
const n =
|
|
338
|
+
const n = ge.get();
|
|
339
339
|
if (!n) return e;
|
|
340
340
|
if (!n.hasNotification(e))
|
|
341
|
-
return
|
|
341
|
+
return ye.warn(`Cannot update: notification with ID ${e} not found`), e;
|
|
342
342
|
const a = n.getNotification(String(e));
|
|
343
343
|
if (a)
|
|
344
344
|
if (t.position && t.position !== a.position) {
|
|
345
345
|
const o = {
|
|
346
346
|
...a,
|
|
347
347
|
...t,
|
|
348
|
-
updateId:
|
|
348
|
+
updateId: nt(),
|
|
349
349
|
notificationId: e
|
|
350
350
|
};
|
|
351
351
|
let i;
|
|
352
352
|
if (t.content !== void 0 ? (i = t.content, delete o.content) : a.content && (i = a.content, delete o.content), i)
|
|
353
|
-
return n.actions.remove(e),
|
|
353
|
+
return n.actions.remove(e), De(i, o);
|
|
354
354
|
} else {
|
|
355
355
|
const o = {
|
|
356
356
|
...t,
|
|
357
|
-
updateId:
|
|
357
|
+
updateId: nt(),
|
|
358
358
|
notificationId: e
|
|
359
359
|
};
|
|
360
360
|
return n.actions.update(o), e;
|
|
@@ -362,24 +362,24 @@ ue.update = (e, t) => {
|
|
|
362
362
|
return e;
|
|
363
363
|
};
|
|
364
364
|
ue.setPosition = (e) => {
|
|
365
|
-
const t =
|
|
365
|
+
const t = ge.get();
|
|
366
366
|
t && (t.defaultOptions.position = e);
|
|
367
367
|
};
|
|
368
368
|
ue.clearPosition = (e) => {
|
|
369
|
-
const t =
|
|
369
|
+
const t = ge.get();
|
|
370
370
|
if (!t) return;
|
|
371
371
|
t.getAllNotifications().filter((a) => (a.position || t.defaultOptions.position) === e).forEach((a) => {
|
|
372
372
|
a.notificationId && t.actions.dismiss(a.notificationId);
|
|
373
373
|
});
|
|
374
374
|
};
|
|
375
375
|
ue.debug = () => {
|
|
376
|
-
const e =
|
|
376
|
+
const e = ge.get();
|
|
377
377
|
if (!e)
|
|
378
|
-
return
|
|
378
|
+
return ye.debug("Backend not registered"), { active: [], defaultOptions: {} };
|
|
379
379
|
Object.entries(e.defaultOptions).forEach(([n, a]) => {
|
|
380
|
-
|
|
380
|
+
ye.debug(`Default option ${n}: `, a);
|
|
381
381
|
}), Object.entries(e.actions).forEach(([n]) => {
|
|
382
|
-
|
|
382
|
+
ye.debug(`Available action: ${n}`);
|
|
383
383
|
});
|
|
384
384
|
const t = e.getAllNotifications().reduce((n, a) => {
|
|
385
385
|
const o = a.position || e.defaultOptions.position;
|
|
@@ -390,7 +390,7 @@ ue.debug = () => {
|
|
|
390
390
|
}), n;
|
|
391
391
|
}, {});
|
|
392
392
|
return Object.entries(t).forEach(([n, a]) => {
|
|
393
|
-
|
|
393
|
+
ye.debug(`Position ${n}: ${a.length} notifications`), a.forEach((o) => ye.debug(` - ${o.id} (${o.type}): ${o.content}`));
|
|
394
394
|
}), {
|
|
395
395
|
active: e.getAllNotifications(),
|
|
396
396
|
defaultOptions: e.defaultOptions
|
|
@@ -402,26 +402,26 @@ const oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
402
402
|
setNotificationBackend: la
|
|
403
403
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
404
404
|
function ia(e, t, n = {}) {
|
|
405
|
-
const a =
|
|
406
|
-
const u =
|
|
405
|
+
const a = S(() => me(n.placement) ?? "bottom"), o = S(() => me(n.strategy) ?? "absolute"), i = S(() => {
|
|
406
|
+
const u = me(n.middleware);
|
|
407
407
|
if (u?.length)
|
|
408
408
|
return u;
|
|
409
|
-
const
|
|
410
|
-
|
|
411
|
-
const m =
|
|
412
|
-
return typeof m == "number" ?
|
|
413
|
-
|
|
409
|
+
const f = [];
|
|
410
|
+
me(n.enableFlip) !== !1 && f.push(Tt({ padding: n.shiftPadding ?? 8 })), me(n.enableShift) !== !1 && f.push(Rt({ padding: n.shiftPadding ?? 8 }));
|
|
411
|
+
const m = me(n.offset);
|
|
412
|
+
return typeof m == "number" ? f.push(tt(m)) : f.push(
|
|
413
|
+
tt({
|
|
414
414
|
mainAxis: m?.mainAxis ?? 0,
|
|
415
415
|
crossAxis: m?.crossAxis ?? 0,
|
|
416
416
|
alignmentAxis: m?.alignmentAxis
|
|
417
417
|
})
|
|
418
|
-
),
|
|
418
|
+
), f;
|
|
419
419
|
}), l = Vn(e, t, {
|
|
420
420
|
placement: a,
|
|
421
421
|
strategy: o,
|
|
422
|
-
whileElementsMounted:
|
|
422
|
+
whileElementsMounted: me(n.autoUpdate) === !1 ? void 0 : Pn,
|
|
423
423
|
middleware: i
|
|
424
|
-
}), s =
|
|
424
|
+
}), s = S(() => ({
|
|
425
425
|
position: o.value,
|
|
426
426
|
top: `${l.y.value ?? 0}px`,
|
|
427
427
|
left: `${l.x.value ?? 0}px`
|
|
@@ -434,8 +434,8 @@ function ia(e, t, n = {}) {
|
|
|
434
434
|
};
|
|
435
435
|
}
|
|
436
436
|
const ra = Symbol("vc-input-group-context");
|
|
437
|
-
function
|
|
438
|
-
const t =
|
|
437
|
+
function Ke(e) {
|
|
438
|
+
const t = Y(ra, null), n = an(), a = S(() => `vc-field-${n}`), o = S(() => `${a.value}-label`), i = S(() => `${a.value}-error`), l = S(() => `${a.value}-hint`), s = S(() => !!e.error || !!e.errorMessage || !!t?.invalid.value), u = S(() => !!e.disabled || !!t?.disabled.value), f = S(() => t?.name.value || e.name), m = S(() => e.required ? !0 : void 0), g = S(() => {
|
|
439
439
|
const d = /* @__PURE__ */ new Set();
|
|
440
440
|
return t?.describedBy.value && t.describedBy.value.split(/\s+/).forEach((c) => d.add(c)), e.errorMessage && d.add(i.value), e.hint && d.add(l.value), d.size ? Array.from(d).join(" ") : void 0;
|
|
441
441
|
});
|
|
@@ -446,7 +446,7 @@ function je(e) {
|
|
|
446
446
|
hintId: l,
|
|
447
447
|
invalid: s,
|
|
448
448
|
resolvedDisabled: u,
|
|
449
|
-
resolvedName:
|
|
449
|
+
resolvedName: f,
|
|
450
450
|
ariaRequired: m,
|
|
451
451
|
ariaDescribedBy: g,
|
|
452
452
|
groupContext: t
|
|
@@ -456,26 +456,26 @@ function sa(e, t = {}) {
|
|
|
456
456
|
const { speed: n = 2 } = t, a = I(!1), o = I(!1);
|
|
457
457
|
let i = null;
|
|
458
458
|
function l() {
|
|
459
|
-
const
|
|
460
|
-
if (!
|
|
459
|
+
const f = e.value;
|
|
460
|
+
if (!f) {
|
|
461
461
|
a.value = !1, o.value = !1;
|
|
462
462
|
return;
|
|
463
463
|
}
|
|
464
|
-
a.value =
|
|
464
|
+
a.value = f.scrollTop > 0, o.value = Math.ceil(f.scrollTop) < f.scrollHeight - f.clientHeight;
|
|
465
465
|
}
|
|
466
|
-
function s(
|
|
466
|
+
function s(f) {
|
|
467
467
|
u();
|
|
468
468
|
const m = e.value;
|
|
469
469
|
if (!m) return;
|
|
470
470
|
function g() {
|
|
471
|
-
m && (m.scrollTop +=
|
|
471
|
+
m && (m.scrollTop += f === "up" ? -n : n, l(), i = requestAnimationFrame(g));
|
|
472
472
|
}
|
|
473
473
|
i = requestAnimationFrame(g);
|
|
474
474
|
}
|
|
475
475
|
function u() {
|
|
476
476
|
i !== null && (cancelAnimationFrame(i), i = null);
|
|
477
477
|
}
|
|
478
|
-
return
|
|
478
|
+
return xt(e, l), lt(() => {
|
|
479
479
|
u();
|
|
480
480
|
}), {
|
|
481
481
|
canScrollUp: a,
|
|
@@ -485,31 +485,31 @@ function sa(e, t = {}) {
|
|
|
485
485
|
updateScrollState: l
|
|
486
486
|
};
|
|
487
487
|
}
|
|
488
|
-
function
|
|
489
|
-
return
|
|
488
|
+
function $e() {
|
|
489
|
+
return Y(fn, I(!1));
|
|
490
490
|
}
|
|
491
|
-
Object.keys(
|
|
492
|
-
|
|
491
|
+
Object.keys(bt).forEach((e) => {
|
|
492
|
+
Ee(e, bt[e]);
|
|
493
493
|
});
|
|
494
494
|
const ua = (e, [t, n]) => {
|
|
495
495
|
if (!e?.files || !e.files?.length)
|
|
496
496
|
return !0;
|
|
497
497
|
const a = (l, s, u) => {
|
|
498
|
-
const
|
|
498
|
+
const f = window.URL || window.webkitURL;
|
|
499
499
|
return new Promise((m) => {
|
|
500
|
-
const g = new Image(), d =
|
|
500
|
+
const g = new Image(), d = f.createObjectURL(l);
|
|
501
501
|
g.onerror = () => {
|
|
502
|
-
|
|
502
|
+
f.revokeObjectURL(d), m(!1);
|
|
503
503
|
}, g.onload = () => {
|
|
504
|
-
|
|
504
|
+
f.revokeObjectURL(d);
|
|
505
505
|
const c = g.width >= Number(s) && g.height >= Number(u);
|
|
506
|
-
m(c ? !0 :
|
|
506
|
+
m(c ? !0 : Ie.global.t("messages.min_dimensions.error", { width: s, height: u }));
|
|
507
507
|
}, g.src = d;
|
|
508
508
|
});
|
|
509
509
|
}, o = [], i = e.files;
|
|
510
510
|
for (let l = 0; l < i.length; l++) {
|
|
511
511
|
if (!/\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(i[l].name))
|
|
512
|
-
return Promise.resolve(
|
|
512
|
+
return Promise.resolve(Ie.global.t("messages.min_dimensions.not_image_error"));
|
|
513
513
|
o.push(i[l]);
|
|
514
514
|
}
|
|
515
515
|
return Promise.all(o.map((l) => a(l, t, n))).then((l) => {
|
|
@@ -517,29 +517,29 @@ const ua = (e, [t, n]) => {
|
|
|
517
517
|
return s === !1 || typeof s == "string" ? s : !0;
|
|
518
518
|
});
|
|
519
519
|
};
|
|
520
|
-
|
|
520
|
+
Ee("mindimensions", ua);
|
|
521
521
|
const ca = (e, [t]) => {
|
|
522
522
|
if (!e?.files || !e.files?.length)
|
|
523
523
|
return !0;
|
|
524
524
|
const n = t * 1e3, a = (s) => s.size > n, o = [];
|
|
525
525
|
for (let s = 0; s < e.files.length; s++)
|
|
526
526
|
o.push(e.files[s]);
|
|
527
|
-
return o.map((s) => a(s)).find((s) => s === !0) ?
|
|
527
|
+
return o.map((s) => a(s)).find((s) => s === !0) ? Ie.global.t("messages.file_weight", { size: t }) : !0;
|
|
528
528
|
};
|
|
529
|
-
|
|
530
|
-
const
|
|
529
|
+
Ee("fileWeight", ca);
|
|
530
|
+
const Dt = (e, [t], n, a) => {
|
|
531
531
|
if (!e || typeof e == "string" && !e.length)
|
|
532
532
|
return !0;
|
|
533
533
|
let o, i;
|
|
534
534
|
return e instanceof Date && (o = e), t instanceof Date && (i = t), typeof e == "string" && (o = new Date(e)), typeof t == "string" && (i = new Date(t)), o?.getTime && o?.getTime() > 0 && i?.getTime && i?.getTime() > 0 && n(i.getTime(), o.getTime()) ? a : !0;
|
|
535
|
-
}, da = (e, [t]) =>
|
|
536
|
-
|
|
537
|
-
const fa = (e, [t]) =>
|
|
538
|
-
|
|
539
|
-
const va = (e) => Number.isSafeInteger(parseInt(e)) ? !0 :
|
|
540
|
-
|
|
541
|
-
function
|
|
542
|
-
const t =
|
|
535
|
+
}, da = (e, [t]) => Dt(e, [t], (n, a) => n < a, Ie.global.t("messages.before"));
|
|
536
|
+
Ee("before", da);
|
|
537
|
+
const fa = (e, [t]) => Dt(e, [t], (n, a) => n > a, Ie.global.t("messages.after"));
|
|
538
|
+
Ee("after", fa);
|
|
539
|
+
const va = (e) => Number.isSafeInteger(parseInt(e)) ? !0 : Ie.global.t("messages.bigint");
|
|
540
|
+
Ee("bigint", va);
|
|
541
|
+
function Le(e) {
|
|
542
|
+
const t = fe(`${e.name}-bus`), n = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set();
|
|
543
543
|
function o(d) {
|
|
544
544
|
const c = e.getKey(d);
|
|
545
545
|
n.set(c, d), a.size > 0 && m((b) => {
|
|
@@ -575,7 +575,7 @@ function xe(e) {
|
|
|
575
575
|
}
|
|
576
576
|
});
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function f(d) {
|
|
579
579
|
a.delete(d);
|
|
580
580
|
}
|
|
581
581
|
function m(d) {
|
|
@@ -590,7 +590,7 @@ function xe(e) {
|
|
|
590
590
|
removePreregistered: l,
|
|
591
591
|
getPreregistered: s,
|
|
592
592
|
replayInto: u,
|
|
593
|
-
dispose:
|
|
593
|
+
dispose: f,
|
|
594
594
|
broadcast: m,
|
|
595
595
|
getFirstInstance: g,
|
|
596
596
|
get instanceCount() {
|
|
@@ -598,8 +598,8 @@ function xe(e) {
|
|
|
598
598
|
}
|
|
599
599
|
};
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
const t =
|
|
601
|
+
function Vt(e) {
|
|
602
|
+
const t = Ye({}), n = Ye([]), a = Ye(/* @__PURE__ */ new Map());
|
|
603
603
|
function o(d) {
|
|
604
604
|
a.set(d, (a.get(d) ?? 0) + 1);
|
|
605
605
|
}
|
|
@@ -619,36 +619,36 @@ function Ft(e) {
|
|
|
619
619
|
Object.assign(h, d, { bladeId: b });
|
|
620
620
|
return;
|
|
621
621
|
}
|
|
622
|
-
const
|
|
623
|
-
t[b].push(
|
|
622
|
+
const B = { ...d, bladeId: b };
|
|
623
|
+
t[b].push(B), n.push(e.createRegistration(b, B)), o(d.id);
|
|
624
624
|
}
|
|
625
625
|
function s(d, c) {
|
|
626
626
|
const b = c.toLowerCase(), h = t[b];
|
|
627
627
|
if (h) {
|
|
628
|
-
const p = h.findIndex((
|
|
628
|
+
const p = h.findIndex((k) => k.id === d);
|
|
629
629
|
if (p !== -1) {
|
|
630
|
-
const [
|
|
631
|
-
|
|
630
|
+
const [k] = h.splice(p, 1);
|
|
631
|
+
k && i(k.id);
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
const
|
|
634
|
+
const B = n.findIndex(
|
|
635
635
|
(p) => e.getRegistrationBladeId(p) === b && e.getRegistrationItemId(p) === d
|
|
636
636
|
);
|
|
637
|
-
|
|
637
|
+
B !== -1 && n.splice(B, 1);
|
|
638
638
|
}
|
|
639
639
|
function u(d) {
|
|
640
640
|
const c = d ? d.toLowerCase() : "";
|
|
641
641
|
return [...t[c] || []];
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function f(d) {
|
|
644
644
|
const c = d.toLowerCase(), b = t[c];
|
|
645
|
-
b && (b.forEach((
|
|
646
|
-
n.splice(
|
|
645
|
+
b && (b.forEach((B) => i(B.id)), delete t[c]), n.map((B, p) => e.getRegistrationBladeId(B) === c ? p : -1).filter((B) => B !== -1).reverse().forEach((B) => {
|
|
646
|
+
n.splice(B, 1);
|
|
647
647
|
});
|
|
648
648
|
}
|
|
649
649
|
function m(d, c, b) {
|
|
650
|
-
const h = c.toLowerCase(),
|
|
651
|
-
|
|
650
|
+
const h = c.toLowerCase(), B = t[h]?.find((p) => p.id === d);
|
|
651
|
+
B && Object.assign(B, b, { bladeId: h });
|
|
652
652
|
}
|
|
653
653
|
function g(d) {
|
|
654
654
|
return a.has(d);
|
|
@@ -659,13 +659,13 @@ function Ft(e) {
|
|
|
659
659
|
register: l,
|
|
660
660
|
unregister: s,
|
|
661
661
|
get: u,
|
|
662
|
-
clear:
|
|
662
|
+
clear: f,
|
|
663
663
|
update: m,
|
|
664
664
|
isRegistered: g
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
667
|
function ga(e) {
|
|
668
|
-
const t = I(/* @__PURE__ */ new Map()), n =
|
|
668
|
+
const t = I(/* @__PURE__ */ new Map()), n = S(() => Array.from(t.value.values()).sort((i, l) => (i.order ?? 0) - (l.order ?? 0)));
|
|
669
669
|
function a(i) {
|
|
670
670
|
const l = e.getId(i) || crypto.randomUUID(), s = e.createItem(i, t.value.size);
|
|
671
671
|
return t.value.set(l, { ...s, id: l }), l;
|
|
@@ -680,7 +680,7 @@ function ga(e) {
|
|
|
680
680
|
unregister: o
|
|
681
681
|
};
|
|
682
682
|
}
|
|
683
|
-
function
|
|
683
|
+
function Pt(e) {
|
|
684
684
|
const t = ga({
|
|
685
685
|
createItem: e.createItem,
|
|
686
686
|
getId: e.getId
|
|
@@ -691,40 +691,40 @@ function zt(e) {
|
|
|
691
691
|
};
|
|
692
692
|
return e.bus.replayInto(n), n;
|
|
693
693
|
}
|
|
694
|
-
function
|
|
695
|
-
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(
|
|
694
|
+
function ze(e) {
|
|
695
|
+
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(Ct(e, "title"))}`;
|
|
696
696
|
}
|
|
697
|
-
const
|
|
697
|
+
const Ve = I(/* @__PURE__ */ new Map()), de = Le({
|
|
698
698
|
name: "menu-service",
|
|
699
|
-
getKey:
|
|
699
|
+
getKey: ze,
|
|
700
700
|
registerIntoService: (e, t) => e.addMenuItem(t)
|
|
701
701
|
});
|
|
702
702
|
function Hi(e) {
|
|
703
|
-
|
|
703
|
+
de.preregister(e);
|
|
704
704
|
}
|
|
705
705
|
function Gi(e) {
|
|
706
|
-
|
|
706
|
+
de.removePreregistered((t) => ut(t, e)), de.broadcast((t) => t.removeMenuItem(e));
|
|
707
707
|
}
|
|
708
708
|
function Yi(e, t) {
|
|
709
|
-
|
|
709
|
+
Ve.value.set(e, t), de.broadcast((n) => {
|
|
710
710
|
n.menuBadges.value.set(e, t);
|
|
711
711
|
});
|
|
712
712
|
}
|
|
713
713
|
function Ji(e) {
|
|
714
|
-
const t =
|
|
715
|
-
return t ? t.menuBadges.value.get(e) :
|
|
714
|
+
const t = de.getFirstInstance();
|
|
715
|
+
return t ? t.menuBadges.value.get(e) : Ve.value.get(e);
|
|
716
716
|
}
|
|
717
717
|
function Xi(e) {
|
|
718
|
-
|
|
718
|
+
Ve.value.delete(e), de.broadcast((t) => {
|
|
719
719
|
t.menuBadges.value.delete(e);
|
|
720
720
|
});
|
|
721
721
|
}
|
|
722
722
|
function Zi() {
|
|
723
|
-
return
|
|
723
|
+
return de.getFirstInstance()?.menuBadges ?? Ve;
|
|
724
724
|
}
|
|
725
|
-
const
|
|
726
|
-
function
|
|
727
|
-
return
|
|
725
|
+
const at = 1 / 0, ma = 1 / 0;
|
|
726
|
+
function ut(e, t) {
|
|
727
|
+
return ze(e) === ze(t);
|
|
728
728
|
}
|
|
729
729
|
function pa(e) {
|
|
730
730
|
return e.groupConfig ? {
|
|
@@ -742,7 +742,7 @@ function pa(e) {
|
|
|
742
742
|
};
|
|
743
743
|
}
|
|
744
744
|
function ba(e, t) {
|
|
745
|
-
return (e.priority ??
|
|
745
|
+
return (e.priority ?? at) - (t.priority ?? at);
|
|
746
746
|
}
|
|
747
747
|
function ya(e, t) {
|
|
748
748
|
const n = (a) => a.inGroupPriority ?? a.priority ?? ma;
|
|
@@ -750,10 +750,10 @@ function ya(e, t) {
|
|
|
750
750
|
}
|
|
751
751
|
function ha(e, t) {
|
|
752
752
|
const n = pa(e), a = {
|
|
753
|
-
...
|
|
753
|
+
...Ct(e, ["group", "groupIcon", "groupPriority", "groupConfig"])
|
|
754
754
|
}, o = t.get(n.groupId);
|
|
755
755
|
if (o) {
|
|
756
|
-
const i = [...o.children ?? []], l = i.findIndex((s) =>
|
|
756
|
+
const i = [...o.children ?? []], l = i.findIndex((s) => ut(s, a));
|
|
757
757
|
l > -1 ? i[l] = a : i.push(a), t.set(n.groupId, {
|
|
758
758
|
...o,
|
|
759
759
|
children: i,
|
|
@@ -768,14 +768,14 @@ function ha(e, t) {
|
|
|
768
768
|
groupIcon: n.groupIcon ?? "",
|
|
769
769
|
title: n.groupTitle,
|
|
770
770
|
children: [a],
|
|
771
|
-
priority: n.groupPriority ?? e.priority ??
|
|
771
|
+
priority: n.groupPriority ?? e.priority ?? at,
|
|
772
772
|
permissions: n.groupPermissions
|
|
773
773
|
});
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function ht(e) {
|
|
776
776
|
const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
777
777
|
for (const a of e)
|
|
778
|
-
a.group || a.groupConfig ? ha(a, t) : a.title && n.set(
|
|
778
|
+
a.group || a.groupConfig ? ha(a, t) : a.title && n.set(ze(a), { ...a });
|
|
779
779
|
return ka([...t.values(), ...n.values()]);
|
|
780
780
|
}
|
|
781
781
|
function ka(e) {
|
|
@@ -789,13 +789,13 @@ function ka(e) {
|
|
|
789
789
|
function Ia() {
|
|
790
790
|
const e = I([]);
|
|
791
791
|
let t = [];
|
|
792
|
-
const n = I(new Map(
|
|
792
|
+
const n = I(new Map(Ve.value));
|
|
793
793
|
function a(l) {
|
|
794
|
-
t.push(l), e.value =
|
|
794
|
+
t.push(l), e.value = ht(t);
|
|
795
795
|
}
|
|
796
796
|
function o(l) {
|
|
797
797
|
const s = t.length;
|
|
798
|
-
t = t.filter((u) => !
|
|
798
|
+
t = t.filter((u) => !ut(u, l)), t.length !== s && (e.value = ht(t));
|
|
799
799
|
}
|
|
800
800
|
const i = {
|
|
801
801
|
addMenuItem: a,
|
|
@@ -803,19 +803,19 @@ function Ia() {
|
|
|
803
803
|
removeMenuItem: o,
|
|
804
804
|
menuBadges: n
|
|
805
805
|
};
|
|
806
|
-
return
|
|
806
|
+
return de.replayInto(i), i;
|
|
807
807
|
}
|
|
808
|
-
function
|
|
808
|
+
function We(e) {
|
|
809
809
|
const { key: t, create: n, bus: a, name: o, onMissing: i } = e;
|
|
810
810
|
function l() {
|
|
811
|
-
const u =
|
|
811
|
+
const u = Y(t, null);
|
|
812
812
|
if (u)
|
|
813
813
|
return u;
|
|
814
|
-
const
|
|
815
|
-
return
|
|
814
|
+
const f = n();
|
|
815
|
+
return $t(t, f), ln() && on(() => a.dispose(f)), f;
|
|
816
816
|
}
|
|
817
817
|
function s() {
|
|
818
|
-
const u =
|
|
818
|
+
const u = Y(t, null);
|
|
819
819
|
if (!u)
|
|
820
820
|
throw i?.(), new Kn(o);
|
|
821
821
|
return u;
|
|
@@ -825,42 +825,42 @@ function He(e) {
|
|
|
825
825
|
use: s
|
|
826
826
|
};
|
|
827
827
|
}
|
|
828
|
-
const Sa =
|
|
828
|
+
const Sa = fe("use-menu-service"), Ft = We({
|
|
829
829
|
key: vn,
|
|
830
830
|
create: Ia,
|
|
831
|
-
bus:
|
|
831
|
+
bus: de,
|
|
832
832
|
name: "MenuService",
|
|
833
|
-
onMissing: () => Sa.error("Menu service not found in current context. Injection chain:",
|
|
833
|
+
onMissing: () => Sa.error("Menu service not found in current context. Injection chain:", qe())
|
|
834
834
|
});
|
|
835
835
|
function Qi() {
|
|
836
|
-
return
|
|
836
|
+
return Ft.provide();
|
|
837
837
|
}
|
|
838
838
|
function _i() {
|
|
839
|
-
return
|
|
839
|
+
return Ft.use();
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function je() {
|
|
842
842
|
return {
|
|
843
|
-
isMobile:
|
|
844
|
-
isDesktop:
|
|
845
|
-
isPhone:
|
|
846
|
-
isTablet:
|
|
847
|
-
isTouch:
|
|
843
|
+
isMobile: Y(yn, I(!1)),
|
|
844
|
+
isDesktop: Y(bn, I(!0)),
|
|
845
|
+
isPhone: Y(pn, I(!1)),
|
|
846
|
+
isTablet: Y(mn, I(!1)),
|
|
847
|
+
isTouch: Y(gn, !1)
|
|
848
848
|
};
|
|
849
849
|
}
|
|
850
850
|
const $a = Symbol("AppInsightsOptions"), wa = Symbol("AppInsightsInstance");
|
|
851
851
|
function Oa() {
|
|
852
|
-
const e =
|
|
852
|
+
const e = Y(wa, null), { user: t } = st(), n = Y($a, void 0);
|
|
853
853
|
function a() {
|
|
854
854
|
const o = n?.appName ? `[${n.appName}] ` : "", i = (u) => `${o}${u.name}`;
|
|
855
855
|
function l(u) {
|
|
856
856
|
if (!e) return;
|
|
857
|
-
const
|
|
858
|
-
e.context.telemetryTrace.traceID = Ln(), e.context.telemetryTrace.name = u.name, e.startTrackPage(
|
|
857
|
+
const f = i(u);
|
|
858
|
+
e.context.telemetryTrace.traceID = Ln(), e.context.telemetryTrace.name = u.name, e.startTrackPage(f);
|
|
859
859
|
}
|
|
860
860
|
function s(u) {
|
|
861
861
|
if (!e) return;
|
|
862
|
-
const
|
|
863
|
-
e.stopTrackPage(
|
|
862
|
+
const f = i(u), m = location.protocol + "//" + location.host + u.fullPath;
|
|
863
|
+
e.stopTrackPage(f, m, {
|
|
864
864
|
userId: t.value?.id ?? "",
|
|
865
865
|
userName: t.value?.userName ?? ""
|
|
866
866
|
});
|
|
@@ -875,9 +875,9 @@ function Oa() {
|
|
|
875
875
|
appInsights: e
|
|
876
876
|
};
|
|
877
877
|
}
|
|
878
|
-
const Ea =
|
|
878
|
+
const Ea = fe("use-error-handler");
|
|
879
879
|
function La(e) {
|
|
880
|
-
const t = I(null), n =
|
|
880
|
+
const t = I(null), n = qe(), { appInsights: a } = Oa(), { user: o } = st(), i = I(!1);
|
|
881
881
|
function l() {
|
|
882
882
|
t.value = null, n && n.emit("reset");
|
|
883
883
|
}
|
|
@@ -885,14 +885,14 @@ function La(e) {
|
|
|
885
885
|
if (i.value)
|
|
886
886
|
return !e;
|
|
887
887
|
i.value = !0;
|
|
888
|
-
const u =
|
|
888
|
+
const u = Pe(s);
|
|
889
889
|
return t.value = u, a && a.trackException({
|
|
890
890
|
exception: u,
|
|
891
891
|
properties: {
|
|
892
892
|
userId: o.value?.id ?? "",
|
|
893
893
|
userName: o.value?.userName ?? ""
|
|
894
894
|
}
|
|
895
|
-
}), Ea.error("Captured Error:", u.originalError), n && n.emit("error", u),
|
|
895
|
+
}), Ea.error("Captured Error:", u.originalError), n && n.emit("error", u), ke(() => {
|
|
896
896
|
i.value = !1;
|
|
897
897
|
}), !e;
|
|
898
898
|
}), {
|
|
@@ -900,21 +900,21 @@ function La(e) {
|
|
|
900
900
|
reset: l
|
|
901
901
|
};
|
|
902
902
|
}
|
|
903
|
-
const
|
|
903
|
+
const Fe = /* @__PURE__ */ new WeakMap();
|
|
904
904
|
function er(e, t, n) {
|
|
905
|
-
|
|
905
|
+
Fe.set(e, { timerId: t, notifId: n });
|
|
906
906
|
}
|
|
907
907
|
function Ba(e) {
|
|
908
908
|
if (e && typeof e == "object") {
|
|
909
|
-
const t =
|
|
909
|
+
const t = Fe.get(e), n = "originalError" in e && e.originalError && typeof e.originalError == "object" ? e.originalError : void 0, a = t ?? (n ? Fe.get(n) : void 0), o = t ? e : n;
|
|
910
910
|
if (a && o)
|
|
911
911
|
return clearTimeout(a.timerId), Promise.resolve().then(() => oa).then(({ notification: i }) => {
|
|
912
912
|
i.remove(a.notifId);
|
|
913
|
-
}),
|
|
913
|
+
}), Fe.delete(o), !0;
|
|
914
914
|
}
|
|
915
915
|
return !1;
|
|
916
916
|
}
|
|
917
|
-
const tr =
|
|
917
|
+
const tr = V({
|
|
918
918
|
name: "ErrorInterceptor",
|
|
919
919
|
props: {
|
|
920
920
|
capture: {
|
|
@@ -931,8 +931,8 @@ const tr = z({
|
|
|
931
931
|
}
|
|
932
932
|
},
|
|
933
933
|
setup(e, { slots: t }) {
|
|
934
|
-
const n =
|
|
935
|
-
return o &&
|
|
934
|
+
const n = Y(Et, void 0), a = Y(hn, void 0), o = !!(n && a), { error: i, reset: l } = La(o || e.capture);
|
|
935
|
+
return o && H(i, (s) => {
|
|
936
936
|
const u = n.value.id;
|
|
937
937
|
if (s) {
|
|
938
938
|
if (Ba(s), kn())
|
|
@@ -948,7 +948,7 @@ const tr = z({
|
|
|
948
948
|
}), Ca = Symbol("vc-button-group"), xa = ["type", "disabled", "aria-disabled", "aria-label", "aria-busy", "aria-pressed"], Ta = {
|
|
949
949
|
key: 2,
|
|
950
950
|
class: "vc-button__title"
|
|
951
|
-
}, Ra = /* @__PURE__ */
|
|
951
|
+
}, Ra = /* @__PURE__ */ V({
|
|
952
952
|
__name: "vc-button",
|
|
953
953
|
props: {
|
|
954
954
|
icon: {},
|
|
@@ -968,34 +968,34 @@ const tr = z({
|
|
|
968
968
|
const n = {
|
|
969
969
|
base: "default",
|
|
970
970
|
xs: "sm"
|
|
971
|
-
}, a = e, o =
|
|
971
|
+
}, a = e, o = $e(), i = t, l = Y(Ca, null), s = S(() => {
|
|
972
972
|
const c = l?.size?.value ?? a.size;
|
|
973
973
|
return n[c] ?? c;
|
|
974
|
-
}), u = I(null),
|
|
975
|
-
|
|
974
|
+
}), u = I(null), f = S(() => a.disabled || a.loading), m = I(!1);
|
|
975
|
+
H(f, (c) => {
|
|
976
976
|
m.value = c && u.value === document.activeElement;
|
|
977
977
|
});
|
|
978
|
-
const g =
|
|
978
|
+
const g = S(() => [
|
|
979
979
|
"vc-button",
|
|
980
980
|
{
|
|
981
981
|
[`vc-button-${a.variant}`]: a.variant,
|
|
982
982
|
[`vc-button--${s.value}`]: s.value,
|
|
983
983
|
"vc-button--selected": a.selected,
|
|
984
984
|
"vc-button--text": a.text,
|
|
985
|
-
"vc-button--disabled":
|
|
985
|
+
"vc-button--disabled": f.value,
|
|
986
986
|
"vc-button--loading": a.loading
|
|
987
987
|
}
|
|
988
988
|
]);
|
|
989
989
|
function d(c) {
|
|
990
|
-
c.preventDefault(), !
|
|
990
|
+
c.preventDefault(), !f.value && i("click", c);
|
|
991
991
|
}
|
|
992
|
-
return (c, b) => r(o) ? w("", !0) : (
|
|
992
|
+
return (c, b) => r(o) ? w("", !0) : (v(), y("button", {
|
|
993
993
|
key: 0,
|
|
994
994
|
ref_key: "buttonRef",
|
|
995
995
|
ref: u,
|
|
996
996
|
class: W(g.value),
|
|
997
997
|
type: e.type,
|
|
998
|
-
disabled:
|
|
998
|
+
disabled: f.value && !m.value,
|
|
999
999
|
"aria-disabled": m.value || void 0,
|
|
1000
1000
|
"aria-label": e.ariaLabel,
|
|
1001
1001
|
"aria-busy": e.loading || void 0,
|
|
@@ -1003,36 +1003,36 @@ const tr = z({
|
|
|
1003
1003
|
onBlur: b[0] || (b[0] = (h) => m.value = !1),
|
|
1004
1004
|
onClick: d
|
|
1005
1005
|
}, [
|
|
1006
|
-
e.loading ? (
|
|
1006
|
+
e.loading ? (v(), N(r(K), {
|
|
1007
1007
|
key: 0,
|
|
1008
1008
|
icon: "lucide-loader-2",
|
|
1009
1009
|
class: "vc-button__icon tw-animate-spin",
|
|
1010
1010
|
size: e.iconSize
|
|
1011
|
-
}, null, 8, ["size"])) : e.icon ? (
|
|
1011
|
+
}, null, 8, ["size"])) : e.icon ? (v(), N(r(K), {
|
|
1012
1012
|
key: 1,
|
|
1013
1013
|
class: W(["vc-button--icon", e.iconClass]),
|
|
1014
1014
|
icon: e.icon,
|
|
1015
1015
|
size: e.iconSize
|
|
1016
1016
|
}, null, 8, ["class", "icon", "size"])) : w("", !0),
|
|
1017
|
-
c.$slots.default ? (
|
|
1018
|
-
|
|
1017
|
+
c.$slots.default ? (v(), y("span", Ta, [
|
|
1018
|
+
C(c.$slots, "default")
|
|
1019
1019
|
])) : w("", !0)
|
|
1020
1020
|
], 42, xa));
|
|
1021
1021
|
}
|
|
1022
|
-
}),
|
|
1022
|
+
}), ct = Le({
|
|
1023
1023
|
name: "toolbar-service",
|
|
1024
1024
|
getKey: (e) => `${e.bladeId.toLowerCase()}::${e.toolbarItem.id}`,
|
|
1025
1025
|
registerIntoService: (e, t) => e.registerToolbarItem(t.toolbarItem, t.bladeId)
|
|
1026
1026
|
});
|
|
1027
1027
|
function nr(e, t) {
|
|
1028
1028
|
const n = t.toLowerCase();
|
|
1029
|
-
|
|
1029
|
+
ct.preregister({
|
|
1030
1030
|
bladeId: n,
|
|
1031
1031
|
toolbarItem: e
|
|
1032
1032
|
});
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1035
|
-
const e =
|
|
1034
|
+
function zt() {
|
|
1035
|
+
const e = Vt({
|
|
1036
1036
|
createRegistration: (s, u) => ({ bladeId: s, toolbarItem: u }),
|
|
1037
1037
|
getRegistrationBladeId: (s) => s.bladeId,
|
|
1038
1038
|
getRegistrationItemId: (s) => s.toolbarItem.id
|
|
@@ -1041,7 +1041,7 @@ function Ut() {
|
|
|
1041
1041
|
}, n = (s, u) => {
|
|
1042
1042
|
e.unregister(s, u);
|
|
1043
1043
|
}, a = (s) => {
|
|
1044
|
-
const u = s ? s.toLowerCase() : "",
|
|
1044
|
+
const u = s ? s.toLowerCase() : "", f = e.get(u), m = e.get("*"), g = [...f], d = new Set(g.map((c) => c.id));
|
|
1045
1045
|
return m.forEach((c) => {
|
|
1046
1046
|
d.has(c.id) || g.push(c);
|
|
1047
1047
|
}), [...g];
|
|
@@ -1050,9 +1050,9 @@ function Ut() {
|
|
|
1050
1050
|
}, i = ({
|
|
1051
1051
|
id: s,
|
|
1052
1052
|
bladeId: u,
|
|
1053
|
-
toolbarItem:
|
|
1053
|
+
toolbarItem: f
|
|
1054
1054
|
}) => {
|
|
1055
|
-
e.update(s, u,
|
|
1055
|
+
e.update(s, u, f);
|
|
1056
1056
|
}, l = {
|
|
1057
1057
|
registerToolbarItem: t,
|
|
1058
1058
|
unregisterToolbarItem: n,
|
|
@@ -1062,47 +1062,47 @@ function Ut() {
|
|
|
1062
1062
|
isToolbarItemRegistered: (s) => e.isRegistered(s),
|
|
1063
1063
|
updateToolbarItem: i
|
|
1064
1064
|
};
|
|
1065
|
-
return
|
|
1065
|
+
return ct.replayInto(l), l;
|
|
1066
1066
|
}
|
|
1067
1067
|
const Ma = "fallback-blade-id";
|
|
1068
|
-
let
|
|
1069
|
-
const Aa =
|
|
1070
|
-
key:
|
|
1071
|
-
create:
|
|
1072
|
-
bus:
|
|
1068
|
+
let Xe = null;
|
|
1069
|
+
const Aa = We({
|
|
1070
|
+
key: Lt,
|
|
1071
|
+
create: zt,
|
|
1072
|
+
bus: ct,
|
|
1073
1073
|
name: "ToolbarService"
|
|
1074
1074
|
});
|
|
1075
1075
|
function ar() {
|
|
1076
1076
|
return Aa.provide();
|
|
1077
1077
|
}
|
|
1078
1078
|
function lr(e = {}) {
|
|
1079
|
-
const { autoCleanup: t = !0 } = e, n =
|
|
1080
|
-
!n && !
|
|
1081
|
-
const a = n ||
|
|
1079
|
+
const { autoCleanup: t = !0 } = e, n = Y(Lt, null);
|
|
1080
|
+
!n && !Xe && (Xe = zt());
|
|
1081
|
+
const a = n || Xe;
|
|
1082
1082
|
if (!a)
|
|
1083
1083
|
throw new Error("Toolbar service is not available");
|
|
1084
|
-
const o =
|
|
1084
|
+
const o = Y(Et, void 0), i = S(() => o?.value?.id ?? Ma), l = (c) => c ?? i.value, s = (c, b) => {
|
|
1085
1085
|
a.registerToolbarItem(c, l(b));
|
|
1086
1086
|
}, u = (c, b) => {
|
|
1087
1087
|
a.unregisterToolbarItem(c, l(b));
|
|
1088
|
-
},
|
|
1088
|
+
}, f = (c, b, h) => {
|
|
1089
1089
|
a.updateToolbarItem({ id: c, bladeId: l(h), toolbarItem: b });
|
|
1090
1090
|
}, m = (c) => a.getToolbarItems(l(c)), g = (c) => {
|
|
1091
1091
|
a.clearBladeToolbarItems(l(c));
|
|
1092
1092
|
};
|
|
1093
|
-
return
|
|
1093
|
+
return qe() && t && lt(() => {
|
|
1094
1094
|
g();
|
|
1095
1095
|
}), {
|
|
1096
1096
|
registerToolbarItem: s,
|
|
1097
1097
|
unregisterToolbarItem: u,
|
|
1098
|
-
updateToolbarItem:
|
|
1098
|
+
updateToolbarItem: f,
|
|
1099
1099
|
getToolbarItems: m,
|
|
1100
1100
|
clearBladeToolbarItems: g,
|
|
1101
1101
|
isToolbarItemRegistered: a.isToolbarItemRegistered,
|
|
1102
1102
|
registeredToolbarItems: a.registeredToolbarItems
|
|
1103
1103
|
};
|
|
1104
1104
|
}
|
|
1105
|
-
const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa = { class: "tw-sr-only" },
|
|
1105
|
+
const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa = { class: "tw-sr-only" }, oe = /* @__PURE__ */ V({
|
|
1106
1106
|
__name: "vc-skeleton",
|
|
1107
1107
|
props: {
|
|
1108
1108
|
variant: { default: "text" },
|
|
@@ -1121,7 +1121,7 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1121
1121
|
if (o !== void 0)
|
|
1122
1122
|
return typeof o == "number" ? `${o}px` : o;
|
|
1123
1123
|
}
|
|
1124
|
-
return (o, i) => e.variant === "text" ? (
|
|
1124
|
+
return (o, i) => e.variant === "text" ? (v(), y("div", {
|
|
1125
1125
|
key: 0,
|
|
1126
1126
|
class: W(["vc-skeleton", {
|
|
1127
1127
|
"vc-skeleton--animated": e.animated
|
|
@@ -1130,19 +1130,19 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1130
1130
|
"aria-busy": "true",
|
|
1131
1131
|
"aria-label": e.ariaLabel
|
|
1132
1132
|
}, [
|
|
1133
|
-
|
|
1134
|
-
(
|
|
1133
|
+
L("span", Da, T(e.ariaLabel), 1),
|
|
1134
|
+
(v(!0), y(Oe, null, ot(e.rows, (l) => (v(), y("div", {
|
|
1135
1135
|
key: l,
|
|
1136
1136
|
class: "vc-skeleton__row",
|
|
1137
|
-
style:
|
|
1137
|
+
style: Ae({
|
|
1138
1138
|
width: n(l)
|
|
1139
1139
|
}),
|
|
1140
1140
|
"aria-hidden": "true"
|
|
1141
1141
|
}, null, 4))), 128))
|
|
1142
|
-
], 10, Na)) : (
|
|
1142
|
+
], 10, Na)) : (v(), y("div", {
|
|
1143
1143
|
key: 1,
|
|
1144
1144
|
class: W(["vc-skeleton__shape", [`vc-skeleton__shape--${e.variant}`, { "tw-animate-pulse": e.animated }]]),
|
|
1145
|
-
style:
|
|
1145
|
+
style: Ae({
|
|
1146
1146
|
width: a(e.width),
|
|
1147
1147
|
height: a(e.height)
|
|
1148
1148
|
}),
|
|
@@ -1150,10 +1150,10 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1150
1150
|
"aria-busy": "true",
|
|
1151
1151
|
"aria-label": e.ariaLabel
|
|
1152
1152
|
}, [
|
|
1153
|
-
|
|
1153
|
+
L("span", Pa, T(e.ariaLabel), 1)
|
|
1154
1154
|
], 14, Va));
|
|
1155
1155
|
}
|
|
1156
|
-
}), or = /* @__PURE__ */
|
|
1156
|
+
}), or = /* @__PURE__ */ V({
|
|
1157
1157
|
__name: "vc-container",
|
|
1158
1158
|
props: {
|
|
1159
1159
|
shadow: { type: Boolean },
|
|
@@ -1168,12 +1168,12 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1168
1168
|
function s(u) {
|
|
1169
1169
|
a("scroll", u);
|
|
1170
1170
|
}
|
|
1171
|
-
return
|
|
1171
|
+
return xt(o, () => {
|
|
1172
1172
|
i.value = !!(o.value && o.value.clientHeight < o.value.scrollHeight);
|
|
1173
1173
|
}), t({
|
|
1174
1174
|
scrollTop: l,
|
|
1175
1175
|
component: o
|
|
1176
|
-
}), (u,
|
|
1176
|
+
}), (u, f) => (v(), N(it(e.ariaLabel ? "section" : "div"), {
|
|
1177
1177
|
class: W([
|
|
1178
1178
|
"vc-container",
|
|
1179
1179
|
{
|
|
@@ -1184,41 +1184,41 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1184
1184
|
"aria-label": e.ariaLabel
|
|
1185
1185
|
}, {
|
|
1186
1186
|
default: O(() => [
|
|
1187
|
-
|
|
1187
|
+
L("div", {
|
|
1188
1188
|
ref_key: "component",
|
|
1189
1189
|
ref: o,
|
|
1190
1190
|
class: "vc-container__inner",
|
|
1191
1191
|
tabindex: "0",
|
|
1192
1192
|
onScroll: s
|
|
1193
1193
|
}, [
|
|
1194
|
-
|
|
1194
|
+
C(u.$slots, "default")
|
|
1195
1195
|
], 544)
|
|
1196
1196
|
]),
|
|
1197
1197
|
_: 3
|
|
1198
1198
|
}, 8, ["class", "aria-label"]));
|
|
1199
1199
|
}
|
|
1200
|
-
}), Fa = ["id", "role"], za = /* @__PURE__ */
|
|
1200
|
+
}), Fa = ["id", "role"], za = /* @__PURE__ */ V({
|
|
1201
1201
|
__name: "vc-hint",
|
|
1202
1202
|
props: {
|
|
1203
1203
|
id: {},
|
|
1204
1204
|
error: { type: Boolean }
|
|
1205
1205
|
},
|
|
1206
1206
|
setup(e) {
|
|
1207
|
-
return (t, n) => (
|
|
1207
|
+
return (t, n) => (v(), y("div", {
|
|
1208
1208
|
id: e.id,
|
|
1209
1209
|
class: W(["vc-hint", {
|
|
1210
1210
|
"vc-hint--error": e.error
|
|
1211
1211
|
}]),
|
|
1212
1212
|
role: e.error ? "alert" : void 0
|
|
1213
1213
|
}, [
|
|
1214
|
-
|
|
1214
|
+
C(t.$slots, "default")
|
|
1215
1215
|
], 10, Fa));
|
|
1216
1216
|
}
|
|
1217
|
-
}),
|
|
1217
|
+
}), ve = za, qa = ["role", "tabindex", "aria-label", "onKeydown"], Ua = {
|
|
1218
1218
|
key: 0,
|
|
1219
1219
|
class: "vc-image__placeholder",
|
|
1220
1220
|
"aria-hidden": "true"
|
|
1221
|
-
}, Ka = /* @__PURE__ */
|
|
1221
|
+
}, Ka = /* @__PURE__ */ V({
|
|
1222
1222
|
__name: "vc-image",
|
|
1223
1223
|
props: {
|
|
1224
1224
|
aspect: { default: "1x1" },
|
|
@@ -1234,7 +1234,7 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1234
1234
|
},
|
|
1235
1235
|
emits: ["click"],
|
|
1236
1236
|
setup(e, { emit: t }) {
|
|
1237
|
-
const n =
|
|
1237
|
+
const n = fe("vc-image"), a = e, o = t;
|
|
1238
1238
|
function i(g) {
|
|
1239
1239
|
if (!g) return g;
|
|
1240
1240
|
try {
|
|
@@ -1246,13 +1246,13 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1246
1246
|
}
|
|
1247
1247
|
return g;
|
|
1248
1248
|
}
|
|
1249
|
-
const l =
|
|
1250
|
-
|
|
1249
|
+
const l = S(() => ta(a.src, a.thumbnailSize) ?? a.src), s = I(!1), u = S(() => s.value ? a.src : l.value);
|
|
1250
|
+
H(
|
|
1251
1251
|
() => [a.src, a.thumbnailSize],
|
|
1252
1252
|
() => {
|
|
1253
1253
|
s.value = !1;
|
|
1254
1254
|
}
|
|
1255
|
-
),
|
|
1255
|
+
), H(
|
|
1256
1256
|
u,
|
|
1257
1257
|
(g) => {
|
|
1258
1258
|
if (!g || !a.thumbnailSize || s.value || g === a.src) return;
|
|
@@ -1263,7 +1263,7 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1263
1263
|
},
|
|
1264
1264
|
{ immediate: !0 }
|
|
1265
1265
|
);
|
|
1266
|
-
const
|
|
1266
|
+
const f = S(() => {
|
|
1267
1267
|
if (u.value) {
|
|
1268
1268
|
const g = i(u.value);
|
|
1269
1269
|
return `background: url(${CSS.escape(g)}) center / ${a.background} no-repeat`;
|
|
@@ -1272,10 +1272,10 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1272
1272
|
function m() {
|
|
1273
1273
|
a.clickable && o("click");
|
|
1274
1274
|
}
|
|
1275
|
-
return (g, d) => (
|
|
1275
|
+
return (g, d) => (v(), y("div", {
|
|
1276
1276
|
class: W(["vc-image", [`vc-image_${e.size}`]])
|
|
1277
1277
|
}, [
|
|
1278
|
-
|
|
1278
|
+
L("div", {
|
|
1279
1279
|
class: W([
|
|
1280
1280
|
"vc-image__container",
|
|
1281
1281
|
`vc-image_${e.aspect}`,
|
|
@@ -1285,18 +1285,18 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1285
1285
|
"vc-image__container--clickable": e.clickable
|
|
1286
1286
|
}
|
|
1287
1287
|
]),
|
|
1288
|
-
style:
|
|
1288
|
+
style: Ae(f.value),
|
|
1289
1289
|
role: e.clickable ? "button" : e.src && e.alt ? "img" : void 0,
|
|
1290
1290
|
tabindex: e.clickable ? 0 : void 0,
|
|
1291
1291
|
"aria-label": e.alt || (e.clickable ? g.$t("COMPONENTS.ATOMS.VC_IMAGE.LABEL") : void 0),
|
|
1292
1292
|
onClick: m,
|
|
1293
1293
|
onKeydown: [
|
|
1294
|
-
|
|
1295
|
-
|
|
1294
|
+
Z(G(m, ["prevent"]), ["enter"]),
|
|
1295
|
+
Z(G(m, ["prevent"]), ["space"])
|
|
1296
1296
|
]
|
|
1297
1297
|
}, [
|
|
1298
|
-
e.src ? w("", !0) : (
|
|
1299
|
-
|
|
1298
|
+
e.src ? w("", !0) : (v(), y("div", Ua, [
|
|
1299
|
+
x(r(K), {
|
|
1300
1300
|
icon: e.emptyIcon,
|
|
1301
1301
|
size: "xl"
|
|
1302
1302
|
}, null, 8, ["icon"])
|
|
@@ -1314,7 +1314,7 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1314
1314
|
}, Ya = {
|
|
1315
1315
|
key: 1,
|
|
1316
1316
|
class: "vc-label__language"
|
|
1317
|
-
},
|
|
1317
|
+
}, He = /* @__PURE__ */ V({
|
|
1318
1318
|
__name: "vc-label",
|
|
1319
1319
|
props: {
|
|
1320
1320
|
required: { type: Boolean },
|
|
@@ -1325,26 +1325,26 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1325
1325
|
htmlFor: {}
|
|
1326
1326
|
},
|
|
1327
1327
|
setup(e) {
|
|
1328
|
-
return (t, n) => (
|
|
1328
|
+
return (t, n) => (v(), N(it(e.htmlFor ? "label" : "div"), {
|
|
1329
1329
|
class: W(["vc-label", {
|
|
1330
1330
|
"vc-label--error": e.error
|
|
1331
1331
|
}]),
|
|
1332
1332
|
for: e.htmlFor || void 0
|
|
1333
1333
|
}, {
|
|
1334
1334
|
default: O(() => [
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1335
|
+
L("div", Wa, [
|
|
1336
|
+
L("span", ja, [
|
|
1337
|
+
C(t.$slots, "default")
|
|
1338
1338
|
]),
|
|
1339
|
-
e.required ? (
|
|
1339
|
+
e.required ? (v(), y("span", Ha, "*")) : w("", !0)
|
|
1340
1340
|
]),
|
|
1341
|
-
t.$slots.tooltip ? (
|
|
1342
|
-
|
|
1341
|
+
t.$slots.tooltip ? (v(), y("span", Ga, [
|
|
1342
|
+
x(r(Bt), { placement: "top-start" }, {
|
|
1343
1343
|
tooltip: O(() => [
|
|
1344
|
-
|
|
1344
|
+
C(t.$slots, "tooltip")
|
|
1345
1345
|
]),
|
|
1346
1346
|
default: O(() => [
|
|
1347
|
-
|
|
1347
|
+
x(r(K), {
|
|
1348
1348
|
class: "vc-label__tooltip-icon",
|
|
1349
1349
|
icon: e.tooltipIcon,
|
|
1350
1350
|
size: "s"
|
|
@@ -1353,12 +1353,12 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1353
1353
|
_: 3
|
|
1354
1354
|
})
|
|
1355
1355
|
])) : w("", !0),
|
|
1356
|
-
e.multilanguage ? (
|
|
1356
|
+
e.multilanguage ? (v(), y("div", Ya, T(e.currentLanguage), 1)) : w("", !0)
|
|
1357
1357
|
]),
|
|
1358
1358
|
_: 3
|
|
1359
1359
|
}, 8, ["class", "for"]));
|
|
1360
1360
|
}
|
|
1361
|
-
}), Ja = ["disabled", "aria-disabled"], Xa = { class: "vc-link__text" }, Za = /* @__PURE__ */
|
|
1361
|
+
}), Ja = ["disabled", "aria-disabled"], Xa = { class: "vc-link__text" }, Za = /* @__PURE__ */ V({
|
|
1362
1362
|
__name: "vc-link",
|
|
1363
1363
|
props: {
|
|
1364
1364
|
active: { type: Boolean },
|
|
@@ -1371,7 +1371,7 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1371
1371
|
function o() {
|
|
1372
1372
|
n.disabled || a("click");
|
|
1373
1373
|
}
|
|
1374
|
-
return (i, l) => (
|
|
1374
|
+
return (i, l) => (v(), y("button", {
|
|
1375
1375
|
type: "button",
|
|
1376
1376
|
class: W(["vc-link", {
|
|
1377
1377
|
"vc-link--active": e.active,
|
|
@@ -1381,12 +1381,12 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1381
1381
|
"aria-disabled": e.disabled,
|
|
1382
1382
|
onClick: o
|
|
1383
1383
|
}, [
|
|
1384
|
-
|
|
1385
|
-
|
|
1384
|
+
L("span", Xa, [
|
|
1385
|
+
C(i.$slots, "default")
|
|
1386
1386
|
])
|
|
1387
1387
|
], 10, Ja));
|
|
1388
1388
|
}
|
|
1389
|
-
}), Qa = Za, _a = ["aria-label"], el = { class: "vc-status__content" }, tl = /* @__PURE__ */
|
|
1389
|
+
}), Qa = Za, _a = ["aria-label"], el = { class: "vc-status__content" }, tl = /* @__PURE__ */ V({
|
|
1390
1390
|
__name: "vc-status",
|
|
1391
1391
|
props: {
|
|
1392
1392
|
variant: { default: "info" },
|
|
@@ -1394,7 +1394,7 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1394
1394
|
dot: { type: Boolean, default: !1 }
|
|
1395
1395
|
},
|
|
1396
1396
|
setup(e) {
|
|
1397
|
-
return (t, n) => (
|
|
1397
|
+
return (t, n) => (v(), y("div", {
|
|
1398
1398
|
class: W(["vc-status", [
|
|
1399
1399
|
`vc-status--${e.variant}`,
|
|
1400
1400
|
{
|
|
@@ -1405,28 +1405,28 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1405
1405
|
role: "status",
|
|
1406
1406
|
"aria-label": e.dot ? e.variant : void 0
|
|
1407
1407
|
}, [
|
|
1408
|
-
|
|
1409
|
-
|
|
1408
|
+
L("div", el, [
|
|
1409
|
+
C(t.$slots, "default")
|
|
1410
1410
|
])
|
|
1411
1411
|
], 10, _a));
|
|
1412
1412
|
}
|
|
1413
|
-
}), nl = ["aria-label"], al = /* @__PURE__ */
|
|
1413
|
+
}), nl = ["aria-label"], al = /* @__PURE__ */ V({
|
|
1414
1414
|
__name: "vc-status-icon",
|
|
1415
1415
|
props: {
|
|
1416
1416
|
status: { type: Boolean }
|
|
1417
1417
|
},
|
|
1418
1418
|
setup(e) {
|
|
1419
|
-
return (t, n) => (
|
|
1419
|
+
return (t, n) => (v(), y("div", {
|
|
1420
1420
|
class: "vc-status-icon",
|
|
1421
1421
|
role: "img",
|
|
1422
1422
|
"aria-label": e.status ? "Active" : "Inactive"
|
|
1423
1423
|
}, [
|
|
1424
|
-
e.status ? (
|
|
1424
|
+
e.status ? (v(), N(r(K), {
|
|
1425
1425
|
key: 0,
|
|
1426
1426
|
icon: "lucide-circle-check",
|
|
1427
1427
|
class: "vc-status-icon__icon vc-status-icon__icon--success",
|
|
1428
1428
|
"aria-hidden": "true"
|
|
1429
|
-
})) : (
|
|
1429
|
+
})) : (v(), N(r(K), {
|
|
1430
1430
|
key: 1,
|
|
1431
1431
|
icon: "lucide-circle-x",
|
|
1432
1432
|
class: "vc-status-icon__icon vc-status-icon__icon--inactive",
|
|
@@ -1434,7 +1434,7 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1434
1434
|
}))
|
|
1435
1435
|
], 8, nl));
|
|
1436
1436
|
}
|
|
1437
|
-
}), ll = ["aria-label"],
|
|
1437
|
+
}), ll = ["aria-label"], kt = 40, ol = /* @__PURE__ */ V({
|
|
1438
1438
|
__name: "vc-scrollable-container",
|
|
1439
1439
|
props: {
|
|
1440
1440
|
speed: { default: void 0 }
|
|
@@ -1442,60 +1442,60 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1442
1442
|
setup(e, { expose: t }) {
|
|
1443
1443
|
const n = e, a = I(null), o = {};
|
|
1444
1444
|
n.speed !== void 0 && (o.speed = n.speed);
|
|
1445
|
-
const { canScrollUp: i, canScrollDown: l, startScroll: s, stopScroll: u, updateScrollState:
|
|
1445
|
+
const { canScrollUp: i, canScrollDown: l, startScroll: s, stopScroll: u, updateScrollState: f } = sa(
|
|
1446
1446
|
a,
|
|
1447
1447
|
o
|
|
1448
1448
|
);
|
|
1449
1449
|
function m(g) {
|
|
1450
1450
|
if (!a.value) return;
|
|
1451
|
-
const d = g === "up" ? -
|
|
1451
|
+
const d = g === "up" ? -kt : kt;
|
|
1452
1452
|
a.value.scrollBy({ top: d, behavior: "smooth" });
|
|
1453
1453
|
}
|
|
1454
1454
|
return t({
|
|
1455
1455
|
viewportRef: a,
|
|
1456
|
-
updateScrollState:
|
|
1457
|
-
}), (g, d) => (
|
|
1456
|
+
updateScrollState: f
|
|
1457
|
+
}), (g, d) => (v(), y("div", {
|
|
1458
1458
|
class: "vc-scrollable-container",
|
|
1459
1459
|
role: "region",
|
|
1460
1460
|
"aria-label": g.$t("COMPONENTS.ATOMS.VC_SCROLLABLE_CONTAINER.LABEL")
|
|
1461
1461
|
}, [
|
|
1462
|
-
|
|
1462
|
+
L("div", {
|
|
1463
1463
|
class: W(["vc-scrollable-container__arrow", { "vc-scrollable-container__arrow--hidden": !r(i) }]),
|
|
1464
1464
|
"aria-hidden": "true",
|
|
1465
1465
|
onPointerenter: d[0] || (d[0] = (c) => r(s)("up")),
|
|
1466
1466
|
onPointerleave: d[1] || (d[1] = //@ts-ignore
|
|
1467
1467
|
(...c) => r(u) && r(u)(...c))
|
|
1468
1468
|
}, [
|
|
1469
|
-
|
|
1470
|
-
|
|
1469
|
+
C(g.$slots, "arrow-up", {}, () => [
|
|
1470
|
+
x(r(K), {
|
|
1471
1471
|
icon: "lucide-chevron-up",
|
|
1472
1472
|
size: "xs"
|
|
1473
1473
|
})
|
|
1474
1474
|
])
|
|
1475
1475
|
], 34),
|
|
1476
|
-
|
|
1476
|
+
L("div", {
|
|
1477
1477
|
ref_key: "viewportRef",
|
|
1478
1478
|
ref: a,
|
|
1479
1479
|
class: "vc-scrollable-container__viewport",
|
|
1480
1480
|
tabindex: "0",
|
|
1481
1481
|
onScroll: d[2] || (d[2] = //@ts-ignore
|
|
1482
|
-
(...c) => r(
|
|
1482
|
+
(...c) => r(f) && r(f)(...c)),
|
|
1483
1483
|
onKeydown: [
|
|
1484
|
-
d[3] || (d[3] =
|
|
1485
|
-
d[4] || (d[4] =
|
|
1484
|
+
d[3] || (d[3] = Z(G((c) => m("up"), ["prevent"]), ["up"])),
|
|
1485
|
+
d[4] || (d[4] = Z(G((c) => m("down"), ["prevent"]), ["down"]))
|
|
1486
1486
|
]
|
|
1487
1487
|
}, [
|
|
1488
|
-
|
|
1488
|
+
C(g.$slots, "default")
|
|
1489
1489
|
], 544),
|
|
1490
|
-
|
|
1490
|
+
L("div", {
|
|
1491
1491
|
class: W(["vc-scrollable-container__arrow", { "vc-scrollable-container__arrow--hidden": !r(l) }]),
|
|
1492
1492
|
"aria-hidden": "true",
|
|
1493
1493
|
onPointerenter: d[5] || (d[5] = (c) => r(s)("down")),
|
|
1494
1494
|
onPointerleave: d[6] || (d[6] = //@ts-ignore
|
|
1495
1495
|
(...c) => r(u) && r(u)(...c))
|
|
1496
1496
|
}, [
|
|
1497
|
-
|
|
1498
|
-
|
|
1497
|
+
C(g.$slots, "arrow-down", {}, () => [
|
|
1498
|
+
x(r(K), {
|
|
1499
1499
|
icon: "lucide-chevron-down",
|
|
1500
1500
|
size: "xs"
|
|
1501
1501
|
})
|
|
@@ -1503,22 +1503,22 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1503
1503
|
], 34)
|
|
1504
1504
|
], 8, ll));
|
|
1505
1505
|
}
|
|
1506
|
-
}),
|
|
1506
|
+
}), dt = /* @__PURE__ */ new Map();
|
|
1507
1507
|
function il(e) {
|
|
1508
1508
|
return e?.map((t) => t.toLowerCase());
|
|
1509
1509
|
}
|
|
1510
1510
|
function ir(e) {
|
|
1511
|
-
|
|
1511
|
+
dt.set(e.id, {
|
|
1512
1512
|
...e,
|
|
1513
1513
|
targetBlades: il(e.targetBlades)
|
|
1514
1514
|
});
|
|
1515
1515
|
}
|
|
1516
1516
|
function rl(e) {
|
|
1517
1517
|
const t = e.toLowerCase();
|
|
1518
|
-
return Array.from(
|
|
1518
|
+
return Array.from(dt.values()).filter((n) => !n.targetBlades || n.targetBlades.includes(t)).map((n) => ({ ...n, targetBlades: n.targetBlades ? [...n.targetBlades] : void 0 }));
|
|
1519
1519
|
}
|
|
1520
1520
|
function sl() {
|
|
1521
|
-
return Array.from(
|
|
1521
|
+
return Array.from(dt.values()).map((e) => ({
|
|
1522
1522
|
...e,
|
|
1523
1523
|
targetBlades: e.targetBlades ? [...e.targetBlades] : void 0
|
|
1524
1524
|
}));
|
|
@@ -1526,20 +1526,20 @@ function sl() {
|
|
|
1526
1526
|
function ul(e) {
|
|
1527
1527
|
return En(e);
|
|
1528
1528
|
}
|
|
1529
|
-
const
|
|
1529
|
+
const qt = Le({
|
|
1530
1530
|
name: "widget-service",
|
|
1531
1531
|
getKey: (e) => `${e.bladeId.toLowerCase()}::${e.widget.id}`,
|
|
1532
1532
|
registerIntoService: (e, t) => e.registerWidget(t.widget, t.bladeId)
|
|
1533
1533
|
});
|
|
1534
1534
|
function rr(e, t) {
|
|
1535
1535
|
const n = t.toLowerCase();
|
|
1536
|
-
|
|
1536
|
+
qt.preregister({
|
|
1537
1537
|
bladeId: n,
|
|
1538
1538
|
widget: e
|
|
1539
1539
|
});
|
|
1540
1540
|
}
|
|
1541
1541
|
function sr() {
|
|
1542
|
-
const e =
|
|
1542
|
+
const e = Vt({
|
|
1543
1543
|
createRegistration: (a, o) => ({ bladeId: a, widget: o }),
|
|
1544
1544
|
getRegistrationBladeId: (a) => a.bladeId,
|
|
1545
1545
|
getRegistrationItemId: (a) => a.widget.id
|
|
@@ -1552,25 +1552,25 @@ function sr() {
|
|
|
1552
1552
|
getAllExternalWidgets: sl,
|
|
1553
1553
|
cloneWidget: ul
|
|
1554
1554
|
};
|
|
1555
|
-
return
|
|
1555
|
+
return qt.replayInto(n), n;
|
|
1556
1556
|
}
|
|
1557
|
-
const cl =
|
|
1557
|
+
const cl = fe("use-theme"), be = I([
|
|
1558
1558
|
{ key: "light", localizationKey: "CORE.THEMES.LIGHT" },
|
|
1559
1559
|
{ key: "dark", localizationKey: "CORE.THEMES.DARK" }
|
|
1560
1560
|
]), ur = Rn(() => {
|
|
1561
|
-
const { t: e } =
|
|
1562
|
-
function t(
|
|
1563
|
-
(Array.isArray(
|
|
1564
|
-
|
|
1561
|
+
const { t: e } = Ie.global;
|
|
1562
|
+
function t(f) {
|
|
1563
|
+
(Array.isArray(f) ? f : [f]).forEach((m) => {
|
|
1564
|
+
be.value.some((g) => g.key === m.key) || be.value.push(m);
|
|
1565
1565
|
});
|
|
1566
1566
|
}
|
|
1567
|
-
function n(
|
|
1568
|
-
(Array.isArray(
|
|
1569
|
-
const g =
|
|
1570
|
-
g >= 0 &&
|
|
1567
|
+
function n(f) {
|
|
1568
|
+
(Array.isArray(f) ? f : [f]).forEach((m) => {
|
|
1569
|
+
const g = be.value.findIndex((d) => d.key === m);
|
|
1570
|
+
g >= 0 && be.value.splice(g, 1);
|
|
1571
1571
|
});
|
|
1572
1572
|
}
|
|
1573
|
-
const a =
|
|
1573
|
+
const a = S(() => be.value.map((f) => f.key)), o = Bn({
|
|
1574
1574
|
attribute: "data-theme",
|
|
1575
1575
|
emitAuto: !0,
|
|
1576
1576
|
initialValue: "light",
|
|
@@ -1578,26 +1578,26 @@ const cl = ge("use-theme"), ke = I([
|
|
|
1578
1578
|
modes: {
|
|
1579
1579
|
// Dynamically build modes from registered theme keys
|
|
1580
1580
|
...a.value.reduce(
|
|
1581
|
-
(
|
|
1581
|
+
(f, m) => (f[m] = m, f),
|
|
1582
1582
|
{}
|
|
1583
1583
|
)
|
|
1584
1584
|
}
|
|
1585
1585
|
}), { state: i, next: l } = Cn(a, { initialValue: o });
|
|
1586
|
-
|
|
1586
|
+
Qe(() => {
|
|
1587
1587
|
i.value && (o.value = i.value);
|
|
1588
1588
|
});
|
|
1589
|
-
function s(
|
|
1590
|
-
a.value.includes(
|
|
1589
|
+
function s(f) {
|
|
1590
|
+
a.value.includes(f) ? i.value = f : cl.warn(`Attempted to set an unregistered theme: ${f}`);
|
|
1591
1591
|
}
|
|
1592
|
-
const u =
|
|
1593
|
-
const
|
|
1594
|
-
return
|
|
1592
|
+
const u = S(() => {
|
|
1593
|
+
const f = be.value.find((m) => m.key === i.value);
|
|
1594
|
+
return f ? f.localizationKey ? e(f.localizationKey) : Je(f.key) : i.value ? Je(i.value) : "";
|
|
1595
1595
|
});
|
|
1596
1596
|
return {
|
|
1597
|
-
themes:
|
|
1598
|
-
() =>
|
|
1599
|
-
key:
|
|
1600
|
-
name:
|
|
1597
|
+
themes: S(
|
|
1598
|
+
() => be.value.map((f) => ({
|
|
1599
|
+
key: f.key,
|
|
1600
|
+
name: f.localizationKey ? e(f.localizationKey) : Je(f.key)
|
|
1601
1601
|
}))
|
|
1602
1602
|
),
|
|
1603
1603
|
currentThemeKey: i,
|
|
@@ -1607,17 +1607,17 @@ const cl = ge("use-theme"), ke = I([
|
|
|
1607
1607
|
unregister: n,
|
|
1608
1608
|
setTheme: s
|
|
1609
1609
|
};
|
|
1610
|
-
}),
|
|
1610
|
+
}), ft = Le({
|
|
1611
1611
|
name: "dashboard-service",
|
|
1612
1612
|
getKey: (e) => e.id,
|
|
1613
1613
|
registerIntoService: (e, t) => e.registerWidget(t)
|
|
1614
1614
|
});
|
|
1615
1615
|
function cr(e) {
|
|
1616
|
-
|
|
1616
|
+
ft.preregister(e);
|
|
1617
1617
|
}
|
|
1618
1618
|
const dl = () => ({
|
|
1619
|
-
widgets:
|
|
1620
|
-
layout:
|
|
1619
|
+
widgets: _e(/* @__PURE__ */ new Map()),
|
|
1620
|
+
layout: _e(/* @__PURE__ */ new Map())
|
|
1621
1621
|
});
|
|
1622
1622
|
function fl(e = {}) {
|
|
1623
1623
|
const t = dl(), n = e.hasAccess ?? (() => !0), s = {
|
|
@@ -1637,18 +1637,18 @@ function fl(e = {}) {
|
|
|
1637
1637
|
position: u.position ? { ...u.position } : void 0,
|
|
1638
1638
|
props: u.props ? { ...u.props } : void 0
|
|
1639
1639
|
})),
|
|
1640
|
-
updateWidgetPosition: (u,
|
|
1640
|
+
updateWidgetPosition: (u, f) => {
|
|
1641
1641
|
if (!t.widgets.has(u))
|
|
1642
1642
|
throw new Error(`Widget with id ${u} not found`);
|
|
1643
|
-
t.layout.set(u, { ...
|
|
1643
|
+
t.layout.set(u, { ...f });
|
|
1644
1644
|
},
|
|
1645
1645
|
getLayout: () => new Map(t.layout)
|
|
1646
1646
|
};
|
|
1647
|
-
return
|
|
1647
|
+
return ft.replayInto(s), s;
|
|
1648
1648
|
}
|
|
1649
|
-
const
|
|
1649
|
+
const It = fe("use-dashboard"), Ut = We({
|
|
1650
1650
|
key: In,
|
|
1651
|
-
bus:
|
|
1651
|
+
bus: ft,
|
|
1652
1652
|
name: "DashboardService",
|
|
1653
1653
|
create: () => {
|
|
1654
1654
|
let e = () => !0;
|
|
@@ -1656,38 +1656,38 @@ const $t = ge("use-dashboard"), Wt = He({
|
|
|
1656
1656
|
const { hasAccess: t } = aa();
|
|
1657
1657
|
e = (n) => t(n);
|
|
1658
1658
|
} catch (t) {
|
|
1659
|
-
|
|
1659
|
+
It.warn("Permissions composable unavailable, dashboard falls back to allow-all access check", t);
|
|
1660
1660
|
}
|
|
1661
1661
|
return fl({
|
|
1662
1662
|
hasAccess: e
|
|
1663
1663
|
});
|
|
1664
1664
|
},
|
|
1665
|
-
onMissing: () =>
|
|
1665
|
+
onMissing: () => It.error("Dashboard service not found")
|
|
1666
1666
|
});
|
|
1667
1667
|
function dr() {
|
|
1668
|
-
return
|
|
1668
|
+
return Ut.provide();
|
|
1669
1669
|
}
|
|
1670
1670
|
function fr() {
|
|
1671
|
-
return
|
|
1671
|
+
return Ut.use();
|
|
1672
1672
|
}
|
|
1673
|
-
const
|
|
1673
|
+
const Kt = Le({
|
|
1674
1674
|
name: "app-bar-menu-service",
|
|
1675
1675
|
getKey: (e) => e.id || crypto.randomUUID(),
|
|
1676
1676
|
registerIntoService: (e, t) => e.register(t),
|
|
1677
1677
|
unregisterFromService: (e, t) => e.unregister(t)
|
|
1678
1678
|
});
|
|
1679
1679
|
function vr(e) {
|
|
1680
|
-
|
|
1680
|
+
Kt.preregister(e);
|
|
1681
1681
|
}
|
|
1682
1682
|
function gr() {
|
|
1683
|
-
return
|
|
1684
|
-
bus:
|
|
1683
|
+
return Pt({
|
|
1684
|
+
bus: Kt,
|
|
1685
1685
|
createItem: (e, t) => ({
|
|
1686
1686
|
id: e.id || "",
|
|
1687
1687
|
order: e.order ?? t,
|
|
1688
1688
|
title: e.title,
|
|
1689
|
-
icon: typeof e.icon == "object" ?
|
|
1690
|
-
component: e.component ?
|
|
1689
|
+
icon: typeof e.icon == "object" ? et(e.icon) : e.icon,
|
|
1690
|
+
component: e.component ? et(e.component) : void 0,
|
|
1691
1691
|
props: e.props,
|
|
1692
1692
|
onClick: e.onClick,
|
|
1693
1693
|
slot: e.slot,
|
|
@@ -1697,40 +1697,40 @@ function gr() {
|
|
|
1697
1697
|
getId: (e) => e.id || ""
|
|
1698
1698
|
});
|
|
1699
1699
|
}
|
|
1700
|
-
const
|
|
1700
|
+
const vt = Le({
|
|
1701
1701
|
name: "settings-menu-service",
|
|
1702
1702
|
getKey: (e) => e.id || crypto.randomUUID(),
|
|
1703
1703
|
registerIntoService: (e, t) => e.register(t),
|
|
1704
1704
|
unregisterFromService: (e, t) => e.unregister(t)
|
|
1705
1705
|
});
|
|
1706
1706
|
function mr(e) {
|
|
1707
|
-
|
|
1707
|
+
vt.preregister(e);
|
|
1708
1708
|
}
|
|
1709
1709
|
function vl() {
|
|
1710
|
-
return
|
|
1711
|
-
bus:
|
|
1710
|
+
return Pt({
|
|
1711
|
+
bus: vt,
|
|
1712
1712
|
createItem: (e, t) => ({
|
|
1713
1713
|
id: e.id || "",
|
|
1714
1714
|
order: e.order ?? t,
|
|
1715
1715
|
group: e.group,
|
|
1716
|
-
component:
|
|
1716
|
+
component: et(e.component),
|
|
1717
1717
|
props: e.props
|
|
1718
1718
|
}),
|
|
1719
1719
|
getId: (e) => e.id || ""
|
|
1720
1720
|
});
|
|
1721
1721
|
}
|
|
1722
|
-
const gl =
|
|
1722
|
+
const gl = fe("use-settings-menu"), Wt = We({
|
|
1723
1723
|
key: Sn,
|
|
1724
1724
|
create: vl,
|
|
1725
|
-
bus:
|
|
1725
|
+
bus: vt,
|
|
1726
1726
|
name: "SettingsMenuService",
|
|
1727
1727
|
onMissing: () => gl.error("Settings menu service not found")
|
|
1728
1728
|
});
|
|
1729
1729
|
function pr() {
|
|
1730
|
-
return
|
|
1730
|
+
return Wt.provide();
|
|
1731
1731
|
}
|
|
1732
1732
|
function br() {
|
|
1733
|
-
return
|
|
1733
|
+
return Wt.use();
|
|
1734
1734
|
}
|
|
1735
1735
|
const ml = {
|
|
1736
1736
|
key: 0,
|
|
@@ -1738,7 +1738,7 @@ const ml = {
|
|
|
1738
1738
|
}, pl = { class: "vc-date-picker__field-container" }, bl = { class: "vc-date-picker__field" }, yl = ["aria-label"], hl = {
|
|
1739
1739
|
key: 0,
|
|
1740
1740
|
class: "vc-date-picker__loading"
|
|
1741
|
-
}, kl = { key: 0 }, Il = { key: 1 }, Sl = /* @__PURE__ */
|
|
1741
|
+
}, kl = { key: 0 }, Il = { key: 1 }, Sl = /* @__PURE__ */ V({
|
|
1742
1742
|
__name: "vc-date-picker",
|
|
1743
1743
|
props: {
|
|
1744
1744
|
modelValue: {},
|
|
@@ -1763,81 +1763,81 @@ const ml = {
|
|
|
1763
1763
|
},
|
|
1764
1764
|
emits: ["update:modelValue", "blur", "focus"],
|
|
1765
1765
|
setup(e, { emit: t }) {
|
|
1766
|
-
const n = e, a = t, o =
|
|
1767
|
-
const
|
|
1768
|
-
return Number.isInteger(Number(
|
|
1769
|
-
})(),
|
|
1770
|
-
const
|
|
1766
|
+
const n = e, a = t, o = $e(), { isMobile: i, isDesktop: l } = je(), { labelId: s, errorId: u, hintId: f, invalid: m, resolvedDisabled: g, ariaRequired: d, ariaDescribedBy: c } = Ke(n), b = I(!1), h = window.navigator.language, B = I(n.modelValue), p = I(null), k = S(() => n.type === "date" && "9999-12-31" || void 0), P = (() => {
|
|
1767
|
+
const $ = new Intl.DateTimeFormat(h, { hour: "numeric" }).format();
|
|
1768
|
+
return Number.isInteger(Number($));
|
|
1769
|
+
})(), J = S(() => {
|
|
1770
|
+
const $ = n.type === "datetime-local", q = new Intl.DateTimeFormat(h, {
|
|
1771
1771
|
year: "numeric",
|
|
1772
1772
|
month: "2-digit",
|
|
1773
1773
|
day: "2-digit",
|
|
1774
|
-
|
|
1775
|
-
}).formatToParts(new Date(2e3, 0, 15, 13, 30)),
|
|
1774
|
+
...$ ? { hour: "2-digit", minute: "2-digit", hour12: !P } : {}
|
|
1775
|
+
}).formatToParts(new Date(2e3, 0, 15, 13, 30)), te = {
|
|
1776
1776
|
year: "yyyy",
|
|
1777
1777
|
month: "MM",
|
|
1778
1778
|
day: "dd",
|
|
1779
|
-
hour:
|
|
1779
|
+
hour: P ? "HH" : "hh",
|
|
1780
1780
|
minute: "mm",
|
|
1781
1781
|
dayPeriod: "aa"
|
|
1782
1782
|
};
|
|
1783
|
-
return
|
|
1784
|
-
}),
|
|
1783
|
+
return q.map((le) => te[le.type] ?? le.value).join("");
|
|
1784
|
+
}), ae = S(() => {
|
|
1785
1785
|
if (!n.datePickerOptions?.textInput) return n.datePickerOptions;
|
|
1786
|
-
const
|
|
1787
|
-
return
|
|
1788
|
-
format:
|
|
1786
|
+
const $ = { ...n.datePickerOptions }, q = typeof $.textInput == "object" ? $.textInput : {};
|
|
1787
|
+
return $.textInput = {
|
|
1788
|
+
format: J.value,
|
|
1789
1789
|
rangeSeparator: " - ",
|
|
1790
|
-
...
|
|
1791
|
-
},
|
|
1792
|
-
}),
|
|
1793
|
-
const
|
|
1794
|
-
return n.label || !n.ariaLabel ?
|
|
1795
|
-
}),
|
|
1796
|
-
const
|
|
1790
|
+
...q
|
|
1791
|
+
}, $;
|
|
1792
|
+
}), ee = S(() => {
|
|
1793
|
+
const $ = n.datePickerOptions?.ariaLabels;
|
|
1794
|
+
return n.label || !n.ariaLabel ? $ : { ...$, input: n.ariaLabel };
|
|
1795
|
+
}), F = ($) => {
|
|
1796
|
+
const q = {
|
|
1797
1797
|
year: "numeric",
|
|
1798
1798
|
month: "numeric",
|
|
1799
1799
|
day: "numeric"
|
|
1800
1800
|
};
|
|
1801
|
-
n.type === "datetime-local" && (
|
|
1802
|
-
const
|
|
1803
|
-
return Array.isArray(
|
|
1801
|
+
n.type === "datetime-local" && (q.hour = "numeric", q.minute = "numeric", q.hour12 = !P);
|
|
1802
|
+
const te = (le) => new Intl.DateTimeFormat(h, q).format(le);
|
|
1803
|
+
return Array.isArray($) ? $.map((le) => le != null ? te(le) : "").join(" - ") : te($);
|
|
1804
1804
|
};
|
|
1805
|
-
|
|
1805
|
+
H(
|
|
1806
1806
|
() => n.modelValue,
|
|
1807
|
-
(
|
|
1808
|
-
|
|
1807
|
+
($) => {
|
|
1808
|
+
B.value !== $ && (B.value = $);
|
|
1809
1809
|
}
|
|
1810
|
-
),
|
|
1811
|
-
|
|
1810
|
+
), H(B, ($, q) => {
|
|
1811
|
+
$ !== q && $ !== n.modelValue && (p.value = null, a("update:modelValue", $));
|
|
1812
1812
|
});
|
|
1813
|
-
function
|
|
1814
|
-
|
|
1813
|
+
function D() {
|
|
1814
|
+
B.value = null, a("update:modelValue", null);
|
|
1815
1815
|
}
|
|
1816
|
-
function
|
|
1817
|
-
p.value =
|
|
1816
|
+
function z($) {
|
|
1817
|
+
p.value = $;
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1819
|
+
function j() {
|
|
1820
1820
|
p.value = null;
|
|
1821
1821
|
}
|
|
1822
|
-
function
|
|
1823
|
-
p.value != null && (
|
|
1822
|
+
function X($) {
|
|
1823
|
+
p.value != null && (B.value = [p.value, null], p.value = null), b.value = !1, a("blur", $);
|
|
1824
1824
|
}
|
|
1825
|
-
function
|
|
1825
|
+
function M() {
|
|
1826
1826
|
b.value = !0, a("focus");
|
|
1827
1827
|
}
|
|
1828
|
-
return (
|
|
1829
|
-
e.label ? (
|
|
1828
|
+
return ($, q) => r(o) ? (v(), y("div", ml, [
|
|
1829
|
+
e.label ? (v(), N(r(oe), {
|
|
1830
1830
|
key: 0,
|
|
1831
1831
|
variant: "block",
|
|
1832
1832
|
width: 60 + (e.label?.length || 0) * 4,
|
|
1833
1833
|
height: 11
|
|
1834
1834
|
}, null, 8, ["width"])) : w("", !0),
|
|
1835
|
-
|
|
1835
|
+
x(r(oe), {
|
|
1836
1836
|
variant: "block",
|
|
1837
1837
|
width: "100%",
|
|
1838
1838
|
height: 36
|
|
1839
1839
|
})
|
|
1840
|
-
])) : (
|
|
1840
|
+
])) : (v(), y("div", {
|
|
1841
1841
|
key: 1,
|
|
1842
1842
|
class: W(["vc-date-picker", [
|
|
1843
1843
|
{
|
|
@@ -1847,7 +1847,7 @@ const ml = {
|
|
|
1847
1847
|
}
|
|
1848
1848
|
]])
|
|
1849
1849
|
}, [
|
|
1850
|
-
e.label ? (
|
|
1850
|
+
e.label ? (v(), N(r(He), {
|
|
1851
1851
|
key: 0,
|
|
1852
1852
|
id: r(s),
|
|
1853
1853
|
class: "vc-date-picker__label",
|
|
@@ -1855,48 +1855,48 @@ const ml = {
|
|
|
1855
1855
|
multilanguage: e.multilanguage,
|
|
1856
1856
|
"current-language": e.currentLanguage,
|
|
1857
1857
|
error: r(m)
|
|
1858
|
-
},
|
|
1858
|
+
}, re({
|
|
1859
1859
|
default: O(() => [
|
|
1860
|
-
|
|
1860
|
+
L("span", null, T(e.label), 1)
|
|
1861
1861
|
]),
|
|
1862
1862
|
_: 2
|
|
1863
1863
|
}, [
|
|
1864
1864
|
e.tooltip ? {
|
|
1865
1865
|
name: "tooltip",
|
|
1866
1866
|
fn: O(() => [
|
|
1867
|
-
|
|
1867
|
+
Q(T(e.tooltip), 1)
|
|
1868
1868
|
]),
|
|
1869
1869
|
key: "0"
|
|
1870
1870
|
} : void 0
|
|
1871
1871
|
]), 1032, ["id", "required", "multilanguage", "current-language", "error"])) : w("", !0),
|
|
1872
|
-
|
|
1872
|
+
L("div", {
|
|
1873
1873
|
class: W(["vc-date-picker__field-wrapper", {
|
|
1874
1874
|
"vc-date-picker__field-wrapper--default": e.size === "default",
|
|
1875
1875
|
"vc-date-picker__field-wrapper--small": e.size === "small"
|
|
1876
1876
|
}])
|
|
1877
1877
|
}, [
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
modelValue:
|
|
1882
|
-
"onUpdate:modelValue":
|
|
1883
|
-
placeholder: e.placeholder || (e.type === "datetime-local" ?
|
|
1878
|
+
L("div", pl, [
|
|
1879
|
+
L("div", bl, [
|
|
1880
|
+
x(r(An), ne({
|
|
1881
|
+
modelValue: B.value,
|
|
1882
|
+
"onUpdate:modelValue": q[0] || (q[0] = (te) => B.value = te),
|
|
1883
|
+
placeholder: e.placeholder || (e.type === "datetime-local" ? $.$t("COMPONENTS.MOLECULES.VC_INPUT.DATE_TIME_PLACEHOLDER") : $.$t("COMPONENTS.MOLECULES.VC_INPUT.DATE_PLACEHOLDER")),
|
|
1884
1884
|
disabled: r(g),
|
|
1885
1885
|
name: e.name,
|
|
1886
1886
|
autofocus: e.autofocus,
|
|
1887
|
-
"max-date":
|
|
1887
|
+
"max-date": k.value,
|
|
1888
1888
|
"time-picker-inline": "",
|
|
1889
1889
|
"enable-time-picker": e.type === "datetime-local",
|
|
1890
|
-
format:
|
|
1890
|
+
format: F,
|
|
1891
1891
|
locale: r(h),
|
|
1892
1892
|
"start-time": { hours: 0, minutes: 0 },
|
|
1893
1893
|
clearable: !1,
|
|
1894
1894
|
config: { closeOnAutoApply: !1 },
|
|
1895
1895
|
"auto-apply": "",
|
|
1896
1896
|
"teleport-center": r(i),
|
|
1897
|
-
is24: r(
|
|
1898
|
-
},
|
|
1899
|
-
"aria-labels":
|
|
1897
|
+
is24: r(P)
|
|
1898
|
+
}, ae.value, {
|
|
1899
|
+
"aria-labels": ee.value,
|
|
1900
1900
|
teleport: r(l) ? "body" : void 0,
|
|
1901
1901
|
"aria-invalid": r(m) || void 0,
|
|
1902
1902
|
"aria-required": r(d),
|
|
@@ -1904,28 +1904,28 @@ const ml = {
|
|
|
1904
1904
|
"aria-labelledby": e.label ? r(s) : void 0,
|
|
1905
1905
|
class: "vc-date-picker__input",
|
|
1906
1906
|
tabindex: "0",
|
|
1907
|
-
onFocus:
|
|
1908
|
-
onClosed:
|
|
1909
|
-
onRangeStart:
|
|
1910
|
-
onRangeEnd:
|
|
1911
|
-
onTooltipOpen:
|
|
1912
|
-
onTooltipClose:
|
|
1907
|
+
onFocus: M,
|
|
1908
|
+
onClosed: X,
|
|
1909
|
+
onRangeStart: z,
|
|
1910
|
+
onRangeEnd: j,
|
|
1911
|
+
onTooltipOpen: M,
|
|
1912
|
+
onTooltipClose: X
|
|
1913
1913
|
}), null, 16, ["modelValue", "placeholder", "disabled", "name", "autofocus", "max-date", "enable-time-picker", "locale", "teleport-center", "is24", "aria-labels", "teleport", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby"]),
|
|
1914
|
-
e.clearable &&
|
|
1914
|
+
e.clearable && B.value && !e.disabled ? (v(), y("button", {
|
|
1915
1915
|
key: 0,
|
|
1916
1916
|
type: "button",
|
|
1917
1917
|
class: "vc-date-picker__clear",
|
|
1918
|
-
"aria-label":
|
|
1919
|
-
onClick:
|
|
1918
|
+
"aria-label": $.$t("COMPONENTS.MOLECULES.VC_DATE_PICKER.CLEAR"),
|
|
1919
|
+
onClick: D
|
|
1920
1920
|
}, [
|
|
1921
|
-
|
|
1921
|
+
x(r(K), {
|
|
1922
1922
|
size: "xs",
|
|
1923
1923
|
icon: "lucide-x"
|
|
1924
1924
|
})
|
|
1925
1925
|
], 8, yl)) : w("", !0)
|
|
1926
1926
|
]),
|
|
1927
|
-
e.loading ? (
|
|
1928
|
-
|
|
1927
|
+
e.loading ? (v(), y("div", hl, [
|
|
1928
|
+
x(r(K), {
|
|
1929
1929
|
icon: "lucide-loader-2",
|
|
1930
1930
|
class: "vc-date-picker__loading-icon",
|
|
1931
1931
|
size: "m"
|
|
@@ -1933,30 +1933,30 @@ const ml = {
|
|
|
1933
1933
|
])) : w("", !0)
|
|
1934
1934
|
])
|
|
1935
1935
|
], 2),
|
|
1936
|
-
|
|
1936
|
+
x(Ne, {
|
|
1937
1937
|
name: "slide-up",
|
|
1938
1938
|
mode: "out-in"
|
|
1939
1939
|
}, {
|
|
1940
1940
|
default: O(() => [
|
|
1941
|
-
r(m) && e.errorMessage ? (
|
|
1942
|
-
|
|
1941
|
+
r(m) && e.errorMessage ? (v(), y("div", kl, [
|
|
1942
|
+
x(r(ve), {
|
|
1943
1943
|
id: r(u),
|
|
1944
1944
|
class: "vc-date-picker__hint-error",
|
|
1945
1945
|
error: !0
|
|
1946
1946
|
}, {
|
|
1947
1947
|
default: O(() => [
|
|
1948
|
-
|
|
1948
|
+
Q(T(e.errorMessage), 1)
|
|
1949
1949
|
]),
|
|
1950
1950
|
_: 1
|
|
1951
1951
|
}, 8, ["id"])
|
|
1952
|
-
])) : (
|
|
1953
|
-
e.hint ? (
|
|
1952
|
+
])) : (v(), y("div", Il, [
|
|
1953
|
+
e.hint ? (v(), N(r(ve), {
|
|
1954
1954
|
key: 0,
|
|
1955
|
-
id: r(
|
|
1955
|
+
id: r(f),
|
|
1956
1956
|
class: "vc-date-picker__desc"
|
|
1957
1957
|
}, {
|
|
1958
1958
|
default: O(() => [
|
|
1959
|
-
|
|
1959
|
+
Q(T(e.hint), 1)
|
|
1960
1960
|
]),
|
|
1961
1961
|
_: 1
|
|
1962
1962
|
}, 8, ["id"])) : w("", !0)
|
|
@@ -1972,7 +1972,7 @@ const ml = {
|
|
|
1972
1972
|
}, wl = { class: "vc-color-input__field-container" }, Ol = { class: "vc-color-input__field" }, El = ["id", "placeholder", "disabled", "name", "autofocus", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby", "aria-label"], Ll = { class: "vc-color-input__color-container" }, Bl = ["aria-label"], Cl = ["value"], xl = ["aria-label"], Tl = {
|
|
1973
1973
|
key: 0,
|
|
1974
1974
|
class: "vc-color-input__loading"
|
|
1975
|
-
}, Rl = { key: 0 }, Ml = { key: 1 }, Al = /* @__PURE__ */
|
|
1975
|
+
}, Rl = { key: 0 }, Ml = { key: 1 }, Al = /* @__PURE__ */ V({
|
|
1976
1976
|
__name: "vc-color-input",
|
|
1977
1977
|
props: {
|
|
1978
1978
|
modelValue: {},
|
|
@@ -1995,80 +1995,80 @@ const ml = {
|
|
|
1995
1995
|
},
|
|
1996
1996
|
emits: ["update:modelValue", "blur", "focus"],
|
|
1997
1997
|
setup(e, { expose: t, emit: n }) {
|
|
1998
|
-
const a =
|
|
1998
|
+
const a = $e(), o = e, i = n, {
|
|
1999
1999
|
fieldId: l,
|
|
2000
2000
|
labelId: s,
|
|
2001
2001
|
errorId: u,
|
|
2002
|
-
hintId:
|
|
2002
|
+
hintId: f,
|
|
2003
2003
|
invalid: m,
|
|
2004
2004
|
resolvedDisabled: g,
|
|
2005
2005
|
ariaRequired: d,
|
|
2006
2006
|
ariaDescribedBy: c
|
|
2007
|
-
} =
|
|
2008
|
-
function
|
|
2009
|
-
if (!
|
|
2010
|
-
|
|
2007
|
+
} = Ke(o), b = I(!1), h = I(!1), B = I(), p = I(), k = I(o.modelValue ?? ""), P = I("");
|
|
2008
|
+
function J(M) {
|
|
2009
|
+
if (!M || typeof M != "string") {
|
|
2010
|
+
P.value = "";
|
|
2011
2011
|
return;
|
|
2012
2012
|
}
|
|
2013
|
-
const
|
|
2014
|
-
if (ea(
|
|
2015
|
-
|
|
2013
|
+
const $ = M.trim();
|
|
2014
|
+
if (ea($)) {
|
|
2015
|
+
P.value = yt($);
|
|
2016
2016
|
return;
|
|
2017
2017
|
}
|
|
2018
|
-
const
|
|
2019
|
-
|
|
2018
|
+
const q = _n($);
|
|
2019
|
+
q && (P.value = q);
|
|
2020
2020
|
}
|
|
2021
|
-
|
|
2021
|
+
H(
|
|
2022
2022
|
() => o.modelValue,
|
|
2023
|
-
(
|
|
2024
|
-
h.value || (h.value = !0,
|
|
2025
|
-
|
|
2023
|
+
(M) => {
|
|
2024
|
+
h.value || (h.value = !0, k.value = M ?? "", ke(() => {
|
|
2025
|
+
J(M ?? ""), h.value = !1;
|
|
2026
2026
|
}));
|
|
2027
2027
|
},
|
|
2028
2028
|
{ immediate: !0 }
|
|
2029
|
-
),
|
|
2030
|
-
|
|
2029
|
+
), H(P, (M) => {
|
|
2030
|
+
M && p.value && (p.value.value = M);
|
|
2031
2031
|
});
|
|
2032
|
-
function
|
|
2033
|
-
h.value || (h.value = !0, i("update:modelValue",
|
|
2034
|
-
|
|
2032
|
+
function ae() {
|
|
2033
|
+
h.value || (h.value = !0, i("update:modelValue", k.value || null), ke(() => {
|
|
2034
|
+
J(k.value), h.value = !1;
|
|
2035
2035
|
}));
|
|
2036
2036
|
}
|
|
2037
|
-
function
|
|
2038
|
-
const
|
|
2039
|
-
if (
|
|
2040
|
-
const
|
|
2041
|
-
|
|
2037
|
+
function ee(M) {
|
|
2038
|
+
const $ = M.target;
|
|
2039
|
+
if ($?.value) {
|
|
2040
|
+
const q = yt($.value);
|
|
2041
|
+
P.value = q, k.value = q, i("update:modelValue", q);
|
|
2042
2042
|
}
|
|
2043
2043
|
}
|
|
2044
|
-
function
|
|
2044
|
+
function F() {
|
|
2045
2045
|
p.value?.click();
|
|
2046
2046
|
}
|
|
2047
|
-
function
|
|
2048
|
-
|
|
2047
|
+
function D() {
|
|
2048
|
+
k.value = "", P.value = "", i("update:modelValue", null);
|
|
2049
2049
|
}
|
|
2050
|
-
function
|
|
2051
|
-
b.value = !1, i("blur",
|
|
2050
|
+
function z(M) {
|
|
2051
|
+
b.value = !1, i("blur", M);
|
|
2052
2052
|
}
|
|
2053
|
-
function
|
|
2053
|
+
function j() {
|
|
2054
2054
|
b.value = !0, i("focus");
|
|
2055
2055
|
}
|
|
2056
|
-
function
|
|
2057
|
-
|
|
2056
|
+
function X() {
|
|
2057
|
+
B.value?.focus();
|
|
2058
2058
|
}
|
|
2059
|
-
return t({ focus:
|
|
2060
|
-
e.label ? (
|
|
2059
|
+
return t({ focus: X }), (M, $) => r(a) ? (v(), y("div", $l, [
|
|
2060
|
+
e.label ? (v(), N(r(oe), {
|
|
2061
2061
|
key: 0,
|
|
2062
2062
|
variant: "block",
|
|
2063
2063
|
width: 60 + (e.label?.length || 0) * 4,
|
|
2064
2064
|
height: 11
|
|
2065
2065
|
}, null, 8, ["width"])) : w("", !0),
|
|
2066
|
-
|
|
2066
|
+
x(r(oe), {
|
|
2067
2067
|
variant: "block",
|
|
2068
2068
|
width: "100%",
|
|
2069
2069
|
height: 36
|
|
2070
2070
|
})
|
|
2071
|
-
])) : (
|
|
2071
|
+
])) : (v(), y("div", {
|
|
2072
2072
|
key: 1,
|
|
2073
2073
|
class: W(["vc-color-input", [
|
|
2074
2074
|
{
|
|
@@ -2078,7 +2078,7 @@ const ml = {
|
|
|
2078
2078
|
}
|
|
2079
2079
|
]])
|
|
2080
2080
|
}, [
|
|
2081
|
-
e.label ? (
|
|
2081
|
+
e.label ? (v(), N(r(He), {
|
|
2082
2082
|
key: 0,
|
|
2083
2083
|
id: r(s),
|
|
2084
2084
|
"html-for": r(l),
|
|
@@ -2087,33 +2087,33 @@ const ml = {
|
|
|
2087
2087
|
multilanguage: e.multilanguage,
|
|
2088
2088
|
"current-language": e.currentLanguage,
|
|
2089
2089
|
error: r(m)
|
|
2090
|
-
},
|
|
2090
|
+
}, re({
|
|
2091
2091
|
default: O(() => [
|
|
2092
|
-
|
|
2092
|
+
L("span", null, T(e.label), 1)
|
|
2093
2093
|
]),
|
|
2094
2094
|
_: 2
|
|
2095
2095
|
}, [
|
|
2096
2096
|
e.tooltip ? {
|
|
2097
2097
|
name: "tooltip",
|
|
2098
2098
|
fn: O(() => [
|
|
2099
|
-
|
|
2099
|
+
Q(T(e.tooltip), 1)
|
|
2100
2100
|
]),
|
|
2101
2101
|
key: "0"
|
|
2102
2102
|
} : void 0
|
|
2103
2103
|
]), 1032, ["id", "html-for", "required", "multilanguage", "current-language", "error"])) : w("", !0),
|
|
2104
|
-
|
|
2104
|
+
L("div", {
|
|
2105
2105
|
class: W(["vc-color-input__field-wrapper", {
|
|
2106
2106
|
"vc-color-input__field-wrapper--default": e.size === "default",
|
|
2107
2107
|
"vc-color-input__field-wrapper--small": e.size === "small"
|
|
2108
2108
|
}])
|
|
2109
2109
|
}, [
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2110
|
+
L("div", wl, [
|
|
2111
|
+
L("div", Ol, [
|
|
2112
|
+
rt(L("input", {
|
|
2113
2113
|
id: r(l),
|
|
2114
2114
|
ref_key: "inputRef",
|
|
2115
|
-
ref:
|
|
2116
|
-
"onUpdate:modelValue":
|
|
2115
|
+
ref: B,
|
|
2116
|
+
"onUpdate:modelValue": $[0] || ($[0] = (q) => k.value = q),
|
|
2117
2117
|
placeholder: e.placeholder,
|
|
2118
2118
|
type: "text",
|
|
2119
2119
|
disabled: r(g),
|
|
@@ -2126,46 +2126,46 @@ const ml = {
|
|
|
2126
2126
|
"aria-label": e.label ? void 0 : e.ariaLabel,
|
|
2127
2127
|
class: "vc-color-input__input",
|
|
2128
2128
|
tabindex: "0",
|
|
2129
|
-
onBlur:
|
|
2130
|
-
onFocus:
|
|
2131
|
-
onInput:
|
|
2129
|
+
onBlur: z,
|
|
2130
|
+
onFocus: j,
|
|
2131
|
+
onInput: ae
|
|
2132
2132
|
}, null, 40, El), [
|
|
2133
|
-
[sn,
|
|
2133
|
+
[sn, k.value]
|
|
2134
2134
|
]),
|
|
2135
|
-
|
|
2136
|
-
|
|
2135
|
+
L("div", Ll, [
|
|
2136
|
+
L("button", {
|
|
2137
2137
|
type: "button",
|
|
2138
2138
|
class: "vc-color-input__color-square",
|
|
2139
|
-
style:
|
|
2140
|
-
"aria-label": `Pick color${
|
|
2141
|
-
onClick:
|
|
2139
|
+
style: Ae({ backgroundColor: P.value || "#ffffff" }),
|
|
2140
|
+
"aria-label": `Pick color${P.value ? ": " + P.value : ""}`,
|
|
2141
|
+
onClick: F
|
|
2142
2142
|
}, null, 12, Bl),
|
|
2143
|
-
|
|
2143
|
+
L("input", {
|
|
2144
2144
|
ref_key: "colorPickerRef",
|
|
2145
2145
|
ref: p,
|
|
2146
2146
|
type: "color",
|
|
2147
|
-
value:
|
|
2147
|
+
value: P.value,
|
|
2148
2148
|
class: "vc-color-input__color-picker-hidden",
|
|
2149
2149
|
tabindex: "-1",
|
|
2150
2150
|
"aria-hidden": "true",
|
|
2151
|
-
onChange:
|
|
2151
|
+
onChange: ee
|
|
2152
2152
|
}, null, 40, Cl)
|
|
2153
2153
|
]),
|
|
2154
|
-
e.clearable &&
|
|
2154
|
+
e.clearable && k.value && !e.disabled ? (v(), y("button", {
|
|
2155
2155
|
key: 0,
|
|
2156
2156
|
type: "button",
|
|
2157
2157
|
class: "vc-color-input__clear",
|
|
2158
|
-
"aria-label":
|
|
2159
|
-
onClick:
|
|
2158
|
+
"aria-label": M.$t("COMPONENTS.MOLECULES.VC_COLOR_INPUT.CLEAR"),
|
|
2159
|
+
onClick: D
|
|
2160
2160
|
}, [
|
|
2161
|
-
|
|
2161
|
+
x(r(K), {
|
|
2162
2162
|
size: "xs",
|
|
2163
2163
|
icon: "lucide-x"
|
|
2164
2164
|
})
|
|
2165
2165
|
], 8, xl)) : w("", !0)
|
|
2166
2166
|
]),
|
|
2167
|
-
e.loading ? (
|
|
2168
|
-
|
|
2167
|
+
e.loading ? (v(), y("div", Tl, [
|
|
2168
|
+
x(r(K), {
|
|
2169
2169
|
icon: "lucide-loader-2",
|
|
2170
2170
|
class: "vc-color-input__loading-icon",
|
|
2171
2171
|
size: "m"
|
|
@@ -2173,30 +2173,30 @@ const ml = {
|
|
|
2173
2173
|
])) : w("", !0)
|
|
2174
2174
|
])
|
|
2175
2175
|
], 2),
|
|
2176
|
-
|
|
2176
|
+
x(Ne, {
|
|
2177
2177
|
name: "slide-up",
|
|
2178
2178
|
mode: "out-in"
|
|
2179
2179
|
}, {
|
|
2180
2180
|
default: O(() => [
|
|
2181
|
-
r(m) && e.errorMessage ? (
|
|
2182
|
-
|
|
2181
|
+
r(m) && e.errorMessage ? (v(), y("div", Rl, [
|
|
2182
|
+
x(r(ve), {
|
|
2183
2183
|
id: r(u),
|
|
2184
2184
|
class: "vc-color-input__hint-error",
|
|
2185
2185
|
error: !0
|
|
2186
2186
|
}, {
|
|
2187
2187
|
default: O(() => [
|
|
2188
|
-
|
|
2188
|
+
Q(T(e.errorMessage), 1)
|
|
2189
2189
|
]),
|
|
2190
2190
|
_: 1
|
|
2191
2191
|
}, 8, ["id"])
|
|
2192
|
-
])) : (
|
|
2193
|
-
e.hint ? (
|
|
2192
|
+
])) : (v(), y("div", Ml, [
|
|
2193
|
+
e.hint ? (v(), N(r(ve), {
|
|
2194
2194
|
key: 0,
|
|
2195
|
-
id: r(
|
|
2195
|
+
id: r(f),
|
|
2196
2196
|
class: "vc-color-input__desc"
|
|
2197
2197
|
}, {
|
|
2198
2198
|
default: O(() => [
|
|
2199
|
-
|
|
2199
|
+
Q(T(e.hint), 1)
|
|
2200
2200
|
]),
|
|
2201
2201
|
_: 1
|
|
2202
2202
|
}, 8, ["id"])) : w("", !0)
|
|
@@ -2227,7 +2227,7 @@ const ml = {
|
|
|
2227
2227
|
}, Gl = {
|
|
2228
2228
|
key: 1,
|
|
2229
2229
|
class: "vc-input__append"
|
|
2230
|
-
}, Yl = { key: 0 }, Jl = { key: 1 },
|
|
2230
|
+
}, Yl = { key: 0 }, Jl = { key: 1 }, gt = /* @__PURE__ */ V({
|
|
2231
2231
|
inheritAttrs: !1,
|
|
2232
2232
|
__name: "vc-input",
|
|
2233
2233
|
props: {
|
|
@@ -2259,89 +2259,89 @@ const ml = {
|
|
|
2259
2259
|
},
|
|
2260
2260
|
emits: ["update:modelValue", "blur", "focus"],
|
|
2261
2261
|
setup(e, { emit: t }) {
|
|
2262
|
-
const n = e, a =
|
|
2263
|
-
const { class:
|
|
2264
|
-
return
|
|
2265
|
-
}), i = t, l =
|
|
2262
|
+
const n = e, a = wt(), o = S(() => {
|
|
2263
|
+
const { class: E, ...U } = a;
|
|
2264
|
+
return U;
|
|
2265
|
+
}), i = t, l = $e(), {
|
|
2266
2266
|
fieldId: s,
|
|
2267
2267
|
labelId: u,
|
|
2268
|
-
errorId:
|
|
2268
|
+
errorId: f,
|
|
2269
2269
|
hintId: m,
|
|
2270
2270
|
invalid: g,
|
|
2271
2271
|
resolvedDisabled: d,
|
|
2272
2272
|
resolvedName: c,
|
|
2273
2273
|
ariaRequired: b,
|
|
2274
2274
|
ariaDescribedBy: h
|
|
2275
|
-
} =
|
|
2276
|
-
let
|
|
2277
|
-
const
|
|
2275
|
+
} = Ke(n);
|
|
2276
|
+
let B, p;
|
|
2277
|
+
const k = I(), P = I(), J = I(r(n.type)), ae = I(!1), ee = I(), F = S({
|
|
2278
2278
|
get() {
|
|
2279
|
-
return
|
|
2279
|
+
return J.value === "integer" ? "number" : J.value;
|
|
2280
2280
|
},
|
|
2281
|
-
set(
|
|
2282
|
-
|
|
2281
|
+
set(E) {
|
|
2282
|
+
J.value = E;
|
|
2283
2283
|
}
|
|
2284
|
-
}),
|
|
2284
|
+
}), D = S(() => r(n.modelValue)), z = S({
|
|
2285
2285
|
get() {
|
|
2286
|
-
return (n.type === "integer" || n.type === "number") && isNaN(
|
|
2286
|
+
return (n.type === "integer" || n.type === "number") && isNaN(k.value) ? "" : k.value;
|
|
2287
2287
|
},
|
|
2288
|
-
set(
|
|
2289
|
-
(n.type === "number" || n.type === "integer") &&
|
|
2288
|
+
set(E) {
|
|
2289
|
+
(n.type === "number" || n.type === "integer") && E < 0 ? k.value = Math.abs(E) : k.value = E, X(k.value);
|
|
2290
2290
|
}
|
|
2291
2291
|
});
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
(
|
|
2295
|
-
n.type === "number" &&
|
|
2292
|
+
H(
|
|
2293
|
+
D,
|
|
2294
|
+
(E) => {
|
|
2295
|
+
n.type === "number" && E !== null ? ee.value = parseFloat(E) : n.type === "integer" && E !== null ? ee.value = Math.trunc(E) : ee.value = E, k.value !== ee.value && (k.value = ee.value);
|
|
2296
2296
|
},
|
|
2297
2297
|
{ immediate: !0 }
|
|
2298
2298
|
);
|
|
2299
|
-
function
|
|
2300
|
-
const
|
|
2301
|
-
if ((n.type === "number" || n.type === "integer") && (
|
|
2302
|
-
|
|
2299
|
+
function j(E) {
|
|
2300
|
+
const U = ["Backspace", "Delete", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], A = E.key;
|
|
2301
|
+
if ((n.type === "number" || n.type === "integer") && (A === "-" || A === "e" || A === "+") && E.preventDefault(), n.type === "integer" && !/^\d$/.test(A) && !U.includes(A)) {
|
|
2302
|
+
E.preventDefault();
|
|
2303
2303
|
return;
|
|
2304
2304
|
}
|
|
2305
2305
|
}
|
|
2306
|
-
function
|
|
2307
|
-
|
|
2306
|
+
function X(E) {
|
|
2307
|
+
M(E);
|
|
2308
2308
|
}
|
|
2309
|
-
function
|
|
2309
|
+
function M(E) {
|
|
2310
2310
|
p = () => {
|
|
2311
|
-
if (
|
|
2312
|
-
let
|
|
2313
|
-
n.type === "number" &&
|
|
2311
|
+
if (ee.value !== E) {
|
|
2312
|
+
let U;
|
|
2313
|
+
n.type === "number" && E !== null && E !== void 0 ? U = E !== "" ? parseFloat(E) : null : n.type === "integer" && E !== null && E !== void 0 ? U = E !== "" ? Math.trunc(parseInt(E)) : null : U = E, i("update:modelValue", U);
|
|
2314
2314
|
}
|
|
2315
2315
|
p = void 0;
|
|
2316
|
-
}, n.debounce !== void 0 ? (clearTimeout(
|
|
2316
|
+
}, n.debounce !== void 0 ? (clearTimeout(B), B = setTimeout(p, +n.debounce)) : p();
|
|
2317
2317
|
}
|
|
2318
|
-
function
|
|
2319
|
-
|
|
2318
|
+
function $() {
|
|
2319
|
+
k.value = null, i("update:modelValue", null);
|
|
2320
2320
|
}
|
|
2321
|
-
function
|
|
2322
|
-
|
|
2321
|
+
function q(E) {
|
|
2322
|
+
ae.value = !1, i("blur", E);
|
|
2323
2323
|
}
|
|
2324
|
-
function
|
|
2325
|
-
|
|
2324
|
+
function te() {
|
|
2325
|
+
P.value?.focus();
|
|
2326
2326
|
}
|
|
2327
|
-
function
|
|
2328
|
-
|
|
2327
|
+
function le() {
|
|
2328
|
+
ae.value = !0, i("focus");
|
|
2329
2329
|
}
|
|
2330
|
-
return (
|
|
2331
|
-
class: ["vc-input vc-input--skeleton",
|
|
2330
|
+
return (E, U) => r(l) ? (v(), y("div", ne({ key: 0 }, o.value, {
|
|
2331
|
+
class: ["vc-input vc-input--skeleton", E.$attrs.class]
|
|
2332
2332
|
}), [
|
|
2333
|
-
e.label ? (
|
|
2333
|
+
e.label ? (v(), N(r(oe), {
|
|
2334
2334
|
key: 0,
|
|
2335
2335
|
variant: "block",
|
|
2336
2336
|
width: 60 + (e.label?.length || 0) * 4,
|
|
2337
2337
|
height: 11
|
|
2338
2338
|
}, null, 8, ["width"])) : w("", !0),
|
|
2339
|
-
|
|
2339
|
+
x(r(oe), {
|
|
2340
2340
|
variant: "block",
|
|
2341
2341
|
width: "100%",
|
|
2342
2342
|
height: 36
|
|
2343
2343
|
})
|
|
2344
|
-
], 16)) : e.type === "date" || e.type === "datetime-local" ? (
|
|
2344
|
+
], 16)) : e.type === "date" || e.type === "datetime-local" ? (v(), N(r(Sl), ne({ key: 1 }, r(a), {
|
|
2345
2345
|
"model-value": e.modelValue,
|
|
2346
2346
|
type: e.type,
|
|
2347
2347
|
"date-picker-options": e.datePickerOptions,
|
|
@@ -2361,10 +2361,10 @@ const ml = {
|
|
|
2361
2361
|
"current-language": e.currentLanguage,
|
|
2362
2362
|
name: e.name,
|
|
2363
2363
|
"aria-label": e.ariaLabel,
|
|
2364
|
-
"onUpdate:modelValue":
|
|
2365
|
-
onBlur:
|
|
2366
|
-
onFocus:
|
|
2367
|
-
}), null, 16, ["model-value", "type", "date-picker-options", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name", "aria-label"])) : e.type === "color" ? (
|
|
2364
|
+
"onUpdate:modelValue": U[0] || (U[0] = (A) => i("update:modelValue", A ?? null)),
|
|
2365
|
+
onBlur: U[1] || (U[1] = (A) => i("blur", A)),
|
|
2366
|
+
onFocus: U[2] || (U[2] = (A) => i("focus"))
|
|
2367
|
+
}), null, 16, ["model-value", "type", "date-picker-options", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name", "aria-label"])) : e.type === "color" ? (v(), N(r(Al), ne({ key: 2 }, r(a), {
|
|
2368
2368
|
"model-value": e.modelValue ?? null,
|
|
2369
2369
|
label: e.label,
|
|
2370
2370
|
placeholder: e.placeholder,
|
|
@@ -2382,22 +2382,22 @@ const ml = {
|
|
|
2382
2382
|
"current-language": e.currentLanguage,
|
|
2383
2383
|
name: e.name,
|
|
2384
2384
|
"aria-label": e.ariaLabel,
|
|
2385
|
-
"onUpdate:modelValue":
|
|
2386
|
-
onBlur:
|
|
2387
|
-
onFocus:
|
|
2388
|
-
}), null, 16, ["model-value", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name", "aria-label"])) : (
|
|
2385
|
+
"onUpdate:modelValue": U[3] || (U[3] = (A) => i("update:modelValue", A)),
|
|
2386
|
+
onBlur: U[4] || (U[4] = (A) => i("blur", A)),
|
|
2387
|
+
onFocus: U[5] || (U[5] = (A) => i("focus"))
|
|
2388
|
+
}), null, 16, ["model-value", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name", "aria-label"])) : (v(), y("div", ne({ key: 3 }, o.value, {
|
|
2389
2389
|
class: ["vc-input", [
|
|
2390
|
-
|
|
2390
|
+
E.$attrs.class,
|
|
2391
2391
|
`vc-input--${e.type}`,
|
|
2392
2392
|
{
|
|
2393
2393
|
"vc-input--clearable": e.clearable,
|
|
2394
2394
|
"vc-input--error": r(g),
|
|
2395
2395
|
"vc-input--disabled": r(d),
|
|
2396
|
-
"vc-input--focused":
|
|
2396
|
+
"vc-input--focused": ae.value
|
|
2397
2397
|
}
|
|
2398
2398
|
]]
|
|
2399
2399
|
}), [
|
|
2400
|
-
e.label ? (
|
|
2400
|
+
e.label ? (v(), N(r(He), {
|
|
2401
2401
|
key: 0,
|
|
2402
2402
|
id: r(u),
|
|
2403
2403
|
"html-for": r(s),
|
|
@@ -2406,50 +2406,50 @@ const ml = {
|
|
|
2406
2406
|
multilanguage: e.multilanguage,
|
|
2407
2407
|
"current-language": e.currentLanguage,
|
|
2408
2408
|
error: r(g)
|
|
2409
|
-
},
|
|
2409
|
+
}, re({
|
|
2410
2410
|
default: O(() => [
|
|
2411
|
-
|
|
2411
|
+
L("span", null, T(e.label), 1)
|
|
2412
2412
|
]),
|
|
2413
2413
|
_: 2
|
|
2414
2414
|
}, [
|
|
2415
2415
|
e.tooltip ? {
|
|
2416
2416
|
name: "tooltip",
|
|
2417
2417
|
fn: O(() => [
|
|
2418
|
-
|
|
2418
|
+
Q(T(e.tooltip), 1)
|
|
2419
2419
|
]),
|
|
2420
2420
|
key: "0"
|
|
2421
2421
|
} : void 0
|
|
2422
2422
|
]), 1032, ["id", "html-for", "required", "multilanguage", "current-language", "error"])) : w("", !0),
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2423
|
+
L("div", Nl, [
|
|
2424
|
+
E.$slots.prepend ? (v(), y("div", Dl, [
|
|
2425
|
+
C(E.$slots, "prepend", { focus: te })
|
|
2426
2426
|
])) : w("", !0),
|
|
2427
|
-
|
|
2427
|
+
L("div", {
|
|
2428
2428
|
class: W(["vc-input__field-wrapper", {
|
|
2429
2429
|
"vc-input__field-wrapper--default": e.size === "default",
|
|
2430
2430
|
"vc-input__field-wrapper--small": e.size === "small"
|
|
2431
2431
|
}])
|
|
2432
2432
|
}, [
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2433
|
+
L("div", Vl, [
|
|
2434
|
+
E.$slots["prepend-inner"] ? (v(), y("div", Pl, [
|
|
2435
|
+
C(E.$slots, "prepend-inner", { focus: te })
|
|
2436
2436
|
])) : w("", !0),
|
|
2437
|
-
|
|
2438
|
-
e.prefix ? (
|
|
2439
|
-
|
|
2437
|
+
L("div", Fl, [
|
|
2438
|
+
e.prefix ? (v(), y("div", zl, T(e.prefix), 1)) : w("", !0),
|
|
2439
|
+
C(E.$slots, "control", {
|
|
2440
2440
|
editable: r(d),
|
|
2441
2441
|
focused: e.autofocus,
|
|
2442
|
-
modelValue:
|
|
2443
|
-
emitValue:
|
|
2442
|
+
modelValue: z.value,
|
|
2443
|
+
emitValue: M,
|
|
2444
2444
|
placeholder: e.placeholder
|
|
2445
2445
|
}, () => [
|
|
2446
|
-
|
|
2446
|
+
rt(L("input", {
|
|
2447
2447
|
id: r(s),
|
|
2448
2448
|
ref_key: "inputRef",
|
|
2449
|
-
ref:
|
|
2450
|
-
"onUpdate:modelValue":
|
|
2449
|
+
ref: P,
|
|
2450
|
+
"onUpdate:modelValue": U[6] || (U[6] = (A) => z.value = A),
|
|
2451
2451
|
placeholder: e.placeholder,
|
|
2452
|
-
type:
|
|
2452
|
+
type: F.value,
|
|
2453
2453
|
disabled: r(d),
|
|
2454
2454
|
name: r(c),
|
|
2455
2455
|
maxlength: e.maxlength,
|
|
@@ -2462,44 +2462,44 @@ const ml = {
|
|
|
2462
2462
|
"aria-label": e.label ? void 0 : e.ariaLabel,
|
|
2463
2463
|
class: "vc-input__input",
|
|
2464
2464
|
tabindex: "0",
|
|
2465
|
-
onKeydown:
|
|
2466
|
-
onBlur:
|
|
2467
|
-
onFocus:
|
|
2465
|
+
onKeydown: j,
|
|
2466
|
+
onBlur: q,
|
|
2467
|
+
onFocus: le
|
|
2468
2468
|
}, null, 40, ql), [
|
|
2469
|
-
[un,
|
|
2469
|
+
[un, z.value]
|
|
2470
2470
|
])
|
|
2471
2471
|
]),
|
|
2472
|
-
e.suffix ? (
|
|
2473
|
-
e.clearable &&
|
|
2472
|
+
e.suffix ? (v(), y("div", Ul, T(e.suffix), 1)) : w("", !0),
|
|
2473
|
+
e.clearable && ee.value && !r(d) && e.type !== "password" ? (v(), y("button", {
|
|
2474
2474
|
key: 2,
|
|
2475
2475
|
type: "button",
|
|
2476
2476
|
class: "vc-input__clear",
|
|
2477
|
-
"aria-label":
|
|
2478
|
-
onClick:
|
|
2477
|
+
"aria-label": E.$t("COMPONENTS.CONTROLS.CLEAR"),
|
|
2478
|
+
onClick: $
|
|
2479
2479
|
}, [
|
|
2480
|
-
|
|
2480
|
+
x(r(K), {
|
|
2481
2481
|
size: "xs",
|
|
2482
2482
|
icon: "lucide-x"
|
|
2483
2483
|
})
|
|
2484
2484
|
], 8, Kl)) : w("", !0),
|
|
2485
|
-
e.type === "password" ? (
|
|
2485
|
+
e.type === "password" ? (v(), y("button", {
|
|
2486
2486
|
key: 3,
|
|
2487
2487
|
type: "button",
|
|
2488
2488
|
class: "vc-input__showhide",
|
|
2489
|
-
"aria-label":
|
|
2490
|
-
onClick:
|
|
2489
|
+
"aria-label": J.value === "password" ? E.$t("COMPONENTS.CONTROLS.SHOW_PASSWORD") : E.$t("COMPONENTS.CONTROLS.HIDE_PASSWORD"),
|
|
2490
|
+
onClick: U[7] || (U[7] = (A) => J.value = J.value === "password" ? "text" : "password")
|
|
2491
2491
|
}, [
|
|
2492
|
-
|
|
2492
|
+
x(r(K), {
|
|
2493
2493
|
size: "s",
|
|
2494
|
-
icon:
|
|
2494
|
+
icon: J.value === "password" ? "lucide-eye-off" : "lucide-eye"
|
|
2495
2495
|
}, null, 8, ["icon"])
|
|
2496
2496
|
], 8, Wl)) : w("", !0)
|
|
2497
2497
|
]),
|
|
2498
|
-
|
|
2499
|
-
|
|
2498
|
+
E.$slots["append-inner"] ? (v(), y("div", jl, [
|
|
2499
|
+
C(E.$slots, "append-inner", { focus: te })
|
|
2500
2500
|
])) : w("", !0),
|
|
2501
|
-
e.loading ? (
|
|
2502
|
-
|
|
2501
|
+
e.loading ? (v(), y("div", Hl, [
|
|
2502
|
+
x(r(K), {
|
|
2503
2503
|
icon: "lucide-loader-2",
|
|
2504
2504
|
class: "vc-input__loading-icon",
|
|
2505
2505
|
size: "m"
|
|
@@ -2507,37 +2507,37 @@ const ml = {
|
|
|
2507
2507
|
])) : w("", !0)
|
|
2508
2508
|
])
|
|
2509
2509
|
], 2),
|
|
2510
|
-
|
|
2511
|
-
|
|
2510
|
+
E.$slots.append ? (v(), y("div", Gl, [
|
|
2511
|
+
C(E.$slots, "append", { focus: te })
|
|
2512
2512
|
])) : w("", !0)
|
|
2513
2513
|
]),
|
|
2514
|
-
|
|
2514
|
+
x(Ne, {
|
|
2515
2515
|
name: "slide-up",
|
|
2516
2516
|
mode: "out-in"
|
|
2517
2517
|
}, {
|
|
2518
2518
|
default: O(() => [
|
|
2519
|
-
r(g) && e.errorMessage ? (
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
id: r(
|
|
2519
|
+
r(g) && e.errorMessage ? (v(), y("div", Yl, [
|
|
2520
|
+
C(E.$slots, "error", {}, () => [
|
|
2521
|
+
x(r(ve), {
|
|
2522
|
+
id: r(f),
|
|
2523
2523
|
class: "vc-input__hint-error",
|
|
2524
2524
|
error: !0
|
|
2525
2525
|
}, {
|
|
2526
2526
|
default: O(() => [
|
|
2527
|
-
|
|
2527
|
+
Q(T(e.errorMessage), 1)
|
|
2528
2528
|
]),
|
|
2529
2529
|
_: 1
|
|
2530
2530
|
}, 8, ["id"])
|
|
2531
2531
|
])
|
|
2532
|
-
])) : (
|
|
2533
|
-
|
|
2534
|
-
e.hint ? (
|
|
2532
|
+
])) : (v(), y("div", Jl, [
|
|
2533
|
+
C(E.$slots, "hint", {}, () => [
|
|
2534
|
+
e.hint ? (v(), N(r(ve), {
|
|
2535
2535
|
key: 0,
|
|
2536
2536
|
id: r(m),
|
|
2537
2537
|
class: "vc-input__desc"
|
|
2538
2538
|
}, {
|
|
2539
2539
|
default: O(() => [
|
|
2540
|
-
|
|
2540
|
+
Q(T(e.hint), 1)
|
|
2541
2541
|
]),
|
|
2542
2542
|
_: 1
|
|
2543
2543
|
}, 8, ["id"])) : w("", !0)
|
|
@@ -2587,33 +2587,33 @@ function Xl(e = {}) {
|
|
|
2587
2587
|
loop: i = !0
|
|
2588
2588
|
} = e, l = I(null), s = I(-1), u = (p) => {
|
|
2589
2589
|
(s.value >= p.length || s.value < 0) && (s.value = p.length > 0 ? 0 : -1);
|
|
2590
|
-
},
|
|
2590
|
+
}, f = (p) => {
|
|
2591
2591
|
if (!l.value) return;
|
|
2592
|
-
const
|
|
2593
|
-
if (
|
|
2594
|
-
switch (u(
|
|
2592
|
+
const k = Array.from(l.value.querySelectorAll(n));
|
|
2593
|
+
if (k.length)
|
|
2594
|
+
switch (u(k), p.key) {
|
|
2595
2595
|
case "Tab":
|
|
2596
|
-
m(p,
|
|
2596
|
+
m(p, k);
|
|
2597
2597
|
break;
|
|
2598
2598
|
case "ArrowDown":
|
|
2599
|
-
p.preventDefault(), g(
|
|
2599
|
+
p.preventDefault(), g(k);
|
|
2600
2600
|
break;
|
|
2601
2601
|
case "ArrowUp":
|
|
2602
|
-
p.preventDefault(), d(
|
|
2602
|
+
p.preventDefault(), d(k);
|
|
2603
2603
|
break;
|
|
2604
2604
|
case "Enter":
|
|
2605
2605
|
case " ":
|
|
2606
|
-
if (s.value >= 0 && s.value <
|
|
2607
|
-
const
|
|
2608
|
-
|
|
2606
|
+
if (s.value >= 0 && s.value < k.length) {
|
|
2607
|
+
const P = k[s.value];
|
|
2608
|
+
P && (p.preventDefault(), a ? a(P) : typeof P.click == "function" && P.click());
|
|
2609
2609
|
}
|
|
2610
2610
|
break;
|
|
2611
2611
|
case "Escape":
|
|
2612
2612
|
o && (p.preventDefault(), p.stopPropagation(), o());
|
|
2613
2613
|
break;
|
|
2614
2614
|
}
|
|
2615
|
-
}, m = (p,
|
|
2616
|
-
p.shiftKey ? d(
|
|
2615
|
+
}, m = (p, k) => {
|
|
2616
|
+
p.shiftKey ? d(k) : g(k);
|
|
2617
2617
|
}, g = (p) => {
|
|
2618
2618
|
if (!p.length) return;
|
|
2619
2619
|
if (u(p), s.value < p.length - 1)
|
|
@@ -2622,8 +2622,8 @@ function Xl(e = {}) {
|
|
|
2622
2622
|
s.value = 0;
|
|
2623
2623
|
else
|
|
2624
2624
|
return;
|
|
2625
|
-
const
|
|
2626
|
-
|
|
2625
|
+
const k = p[s.value];
|
|
2626
|
+
k && typeof k.focus == "function" && k.focus();
|
|
2627
2627
|
}, d = (p) => {
|
|
2628
2628
|
if (!p.length) return;
|
|
2629
2629
|
if (u(p), s.value > 0)
|
|
@@ -2632,33 +2632,33 @@ function Xl(e = {}) {
|
|
|
2632
2632
|
s.value = p.length - 1;
|
|
2633
2633
|
else
|
|
2634
2634
|
return;
|
|
2635
|
-
const
|
|
2636
|
-
|
|
2635
|
+
const k = p[s.value];
|
|
2636
|
+
k && typeof k.focus == "function" && k.focus();
|
|
2637
2637
|
}, c = (p) => {
|
|
2638
2638
|
if (!p.length) return;
|
|
2639
2639
|
s.value = 0;
|
|
2640
|
-
const
|
|
2641
|
-
|
|
2640
|
+
const k = p[0];
|
|
2641
|
+
k && typeof k.focus == "function" && k.focus();
|
|
2642
2642
|
}, b = (p) => {
|
|
2643
2643
|
if (!p.length) return;
|
|
2644
2644
|
s.value = p.length - 1;
|
|
2645
|
-
const
|
|
2646
|
-
|
|
2645
|
+
const k = p[p.length - 1];
|
|
2646
|
+
k && typeof k.focus == "function" && k.focus();
|
|
2647
2647
|
}, h = (p) => {
|
|
2648
|
-
l.value && l.value.removeEventListener("keydown",
|
|
2649
|
-
},
|
|
2650
|
-
l.value && (l.value.removeEventListener("keydown",
|
|
2648
|
+
l.value && l.value.removeEventListener("keydown", f), l.value = p, p.addEventListener("keydown", f);
|
|
2649
|
+
}, B = () => {
|
|
2650
|
+
l.value && (l.value.removeEventListener("keydown", f), l.value = null);
|
|
2651
2651
|
};
|
|
2652
|
-
return
|
|
2652
|
+
return Ue(() => {
|
|
2653
2653
|
if (typeof document < "u" && t) {
|
|
2654
2654
|
const p = document.querySelector(t);
|
|
2655
2655
|
p && h(p);
|
|
2656
2656
|
}
|
|
2657
|
-
}),
|
|
2658
|
-
|
|
2657
|
+
}), lt(() => {
|
|
2658
|
+
B();
|
|
2659
2659
|
}), {
|
|
2660
2660
|
initKeyboardNavigation: h,
|
|
2661
|
-
cleanupKeyboardNavigation:
|
|
2661
|
+
cleanupKeyboardNavigation: B,
|
|
2662
2662
|
focusNextElement: () => {
|
|
2663
2663
|
if (l.value) {
|
|
2664
2664
|
const p = Array.from(l.value.querySelectorAll(n));
|
|
@@ -2685,22 +2685,22 @@ function Xl(e = {}) {
|
|
|
2685
2685
|
},
|
|
2686
2686
|
setFocusedIndex: (p) => {
|
|
2687
2687
|
if (l.value) {
|
|
2688
|
-
const
|
|
2689
|
-
p >= 0 && p <
|
|
2688
|
+
const k = Array.from(l.value.querySelectorAll(n));
|
|
2689
|
+
p >= 0 && p < k.length && (s.value = p);
|
|
2690
2690
|
}
|
|
2691
2691
|
},
|
|
2692
2692
|
getFocusedIndex: () => s.value
|
|
2693
2693
|
};
|
|
2694
2694
|
}
|
|
2695
|
-
function
|
|
2695
|
+
function St(e, t) {
|
|
2696
2696
|
const n = e !== void 0 ? e : t;
|
|
2697
2697
|
return typeof n == "function" ? n : (a) => a === null || typeof a != "object" ? a : n && n in a ? a[n] : a;
|
|
2698
2698
|
}
|
|
2699
2699
|
function Zl(e) {
|
|
2700
|
-
const t =
|
|
2701
|
-
function a(l, s, u,
|
|
2702
|
-
const m = (g) =>
|
|
2703
|
-
return u.find(m) ||
|
|
2700
|
+
const t = S(() => St(e.optionValue(), "id")), n = S(() => St(e.optionLabel(), "title"));
|
|
2701
|
+
function a(l, s, u, f) {
|
|
2702
|
+
const m = (g) => Me(t.value(g), l);
|
|
2703
|
+
return u.find(m) || f.find(m) || s.find(m) || l;
|
|
2704
2704
|
}
|
|
2705
2705
|
function o(l) {
|
|
2706
2706
|
return n.value(l);
|
|
@@ -2731,14 +2731,14 @@ function Ql() {
|
|
|
2731
2731
|
l.top < window.innerHeight && l.bottom > 0 && l.left < window.innerWidth && l.right > 0 && (t.value = !0);
|
|
2732
2732
|
}
|
|
2733
2733
|
}
|
|
2734
|
-
return
|
|
2734
|
+
return Ue(() => {
|
|
2735
2735
|
e.value && (n = new IntersectionObserver(
|
|
2736
2736
|
([l]) => {
|
|
2737
2737
|
t.value = l.isIntersecting;
|
|
2738
2738
|
},
|
|
2739
2739
|
{ threshold: 0.1 }
|
|
2740
2740
|
), n.observe(e.value), a = setTimeout(o, 100));
|
|
2741
|
-
}),
|
|
2741
|
+
}), Ot(() => {
|
|
2742
2742
|
a !== null && (clearTimeout(a), a = null), n && e.value && n.unobserve(e.value), n && n.disconnect();
|
|
2743
2743
|
}), {
|
|
2744
2744
|
selectRootRef: e,
|
|
@@ -2751,32 +2751,32 @@ function _l(e) {
|
|
|
2751
2751
|
function i() {
|
|
2752
2752
|
return {
|
|
2753
2753
|
name: "sameWidth",
|
|
2754
|
-
fn({ rects:
|
|
2754
|
+
fn({ rects: f }) {
|
|
2755
2755
|
return {
|
|
2756
2756
|
data: {
|
|
2757
|
-
width: e.outline() ? `${
|
|
2757
|
+
width: e.outline() ? `${f.reference.width}px` : "max-content"
|
|
2758
2758
|
}
|
|
2759
2759
|
};
|
|
2760
2760
|
}
|
|
2761
2761
|
};
|
|
2762
2762
|
}
|
|
2763
2763
|
const l = ia(a, o, {
|
|
2764
|
-
placement:
|
|
2765
|
-
middleware:
|
|
2766
|
-
|
|
2767
|
-
|
|
2764
|
+
placement: S(() => e.placement),
|
|
2765
|
+
middleware: S(() => [
|
|
2766
|
+
Tt({ fallbackPlacements: ["top", "bottom"] }),
|
|
2767
|
+
Rt({ mainAxis: !1 }),
|
|
2768
2768
|
i(),
|
|
2769
|
-
|
|
2769
|
+
tt({ mainAxis: 4 })
|
|
2770
2770
|
])
|
|
2771
|
-
}), s =
|
|
2771
|
+
}), s = S(() => ({
|
|
2772
2772
|
top: `${l.y.value ?? 0}px`,
|
|
2773
2773
|
left: `${l.x.value ?? 0}px`,
|
|
2774
2774
|
width: l.middlewareData.value.sameWidth?.width
|
|
2775
2775
|
}));
|
|
2776
|
-
|
|
2776
|
+
H(
|
|
2777
2777
|
() => l.isPositioned.value,
|
|
2778
|
-
(
|
|
2779
|
-
|
|
2778
|
+
(f) => {
|
|
2779
|
+
f && l.update();
|
|
2780
2780
|
}
|
|
2781
2781
|
);
|
|
2782
2782
|
function u() {
|
|
@@ -2793,191 +2793,176 @@ function _l(e) {
|
|
|
2793
2793
|
};
|
|
2794
2794
|
}
|
|
2795
2795
|
function eo(e) {
|
|
2796
|
-
const t = I([]), n = I(null), a = I(0), o = I(
|
|
2797
|
-
let
|
|
2798
|
-
const
|
|
2799
|
-
function
|
|
2800
|
-
for (const D of
|
|
2801
|
-
const
|
|
2802
|
-
|
|
2796
|
+
const t = I([]), n = I(null), a = I(0), o = I(!1), i = I(!1), l = I(), s = I([]), u = I(!1), f = /* @__PURE__ */ new Map();
|
|
2797
|
+
let m = !1, g;
|
|
2798
|
+
const d = S(() => n.value ?? t.value), c = S(() => t.value.length < a.value);
|
|
2799
|
+
function b(F) {
|
|
2800
|
+
for (const D of F) {
|
|
2801
|
+
const z = String(e.getOptionValue.value(D));
|
|
2802
|
+
f.set(z, D);
|
|
2803
2803
|
}
|
|
2804
2804
|
}
|
|
2805
|
-
function
|
|
2806
|
-
|
|
2807
|
-
}
|
|
2808
|
-
async function Y() {
|
|
2809
|
-
if (c)
|
|
2805
|
+
async function h() {
|
|
2806
|
+
if (m)
|
|
2810
2807
|
return;
|
|
2811
|
-
const
|
|
2812
|
-
if (typeof
|
|
2808
|
+
const F = e.options();
|
|
2809
|
+
if (typeof F == "function")
|
|
2813
2810
|
try {
|
|
2814
|
-
|
|
2815
|
-
const D = await
|
|
2816
|
-
t.value =
|
|
2811
|
+
o.value = !0;
|
|
2812
|
+
const D = await F(void 0, 0);
|
|
2813
|
+
t.value = D?.results ?? [], a.value = D?.totalCount ?? 0, b(t.value), m = !0;
|
|
2817
2814
|
} catch (D) {
|
|
2818
|
-
console.error("useSelectDataSource: error loading options", D), t.value = [], a.value = 0
|
|
2815
|
+
console.error("useSelectDataSource: error loading options", D), t.value = [], a.value = 0;
|
|
2819
2816
|
} finally {
|
|
2820
|
-
|
|
2817
|
+
o.value = !1;
|
|
2821
2818
|
}
|
|
2822
|
-
else Array.isArray(
|
|
2819
|
+
else Array.isArray(F) && (t.value = [...F], a.value = t.value.length, b(t.value), m = !0);
|
|
2823
2820
|
}
|
|
2824
|
-
function
|
|
2825
|
-
|
|
2821
|
+
function B() {
|
|
2822
|
+
n.value = null, l.value = void 0, g && (clearTimeout(g), g = void 0);
|
|
2826
2823
|
}
|
|
2827
|
-
async function
|
|
2828
|
-
const
|
|
2829
|
-
if (typeof
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2824
|
+
async function p() {
|
|
2825
|
+
const F = e.options();
|
|
2826
|
+
if (!(typeof F != "function" || o.value))
|
|
2827
|
+
try {
|
|
2828
|
+
o.value = !0;
|
|
2829
|
+
const D = await F(l.value, t.value.length), z = new Set(t.value.map((X) => String(e.getOptionValue.value(X)))), j = (D?.results ?? []).filter(
|
|
2830
|
+
(X) => !z.has(String(e.getOptionValue.value(X)))
|
|
2831
|
+
);
|
|
2832
|
+
t.value = [...t.value, ...j], a.value = D?.totalCount ?? a.value, b(j);
|
|
2833
|
+
} catch (D) {
|
|
2834
|
+
console.error("useSelectDataSource: error loading more", D);
|
|
2835
|
+
} finally {
|
|
2836
|
+
o.value = !1;
|
|
2839
2837
|
}
|
|
2840
|
-
const L = D ? n.value : t.value, Z = new Set(L.map((de) => String(e.getOptionValue.value(de)))), be = M.filter((de) => !Z.has(String(e.getOptionValue.value(de))));
|
|
2841
|
-
D ? (n.value = [...L, ...be], o.value = k?.totalCount ?? o.value, h >= o.value && (l.value = !0)) : (t.value = [...L, ...be], a.value = k?.totalCount ?? a.value, b >= a.value && (i.value = !0)), K(be);
|
|
2842
|
-
} catch (k) {
|
|
2843
|
-
console.error("useSelectDataSource: error loading more", k);
|
|
2844
|
-
} finally {
|
|
2845
|
-
s.value = !1;
|
|
2846
|
-
}
|
|
2847
2838
|
}
|
|
2848
|
-
async function
|
|
2849
|
-
|
|
2839
|
+
async function k(F) {
|
|
2840
|
+
l.value = F;
|
|
2850
2841
|
const D = e.options();
|
|
2851
|
-
if (typeof D == "function")
|
|
2852
|
-
const V = ++E;
|
|
2842
|
+
if (typeof D == "function")
|
|
2853
2843
|
try {
|
|
2854
|
-
|
|
2855
|
-
const
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
} catch (k) {
|
|
2860
|
-
if (V !== E) return;
|
|
2861
|
-
console.error("useSelectDataSource: error searching", k), n.value = [], o.value = 0, h = 0, l.value = !0;
|
|
2844
|
+
i.value = !0;
|
|
2845
|
+
const z = await D(F);
|
|
2846
|
+
n.value = z?.results ?? [], a.value = z?.totalCount ?? 0, b(n.value);
|
|
2847
|
+
} catch (z) {
|
|
2848
|
+
console.error("useSelectDataSource: error searching", z), n.value = [];
|
|
2862
2849
|
} finally {
|
|
2863
|
-
|
|
2850
|
+
i.value = !1;
|
|
2864
2851
|
}
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
const
|
|
2868
|
-
return String(
|
|
2852
|
+
else
|
|
2853
|
+
n.value = t.value.filter((z) => {
|
|
2854
|
+
const j = e.getOptionLabel.value(z);
|
|
2855
|
+
return String(j).toLowerCase().includes(F.toLowerCase());
|
|
2869
2856
|
});
|
|
2870
|
-
n.value = V, o.value = V.length, h = V.length, l.value = !0;
|
|
2871
|
-
}
|
|
2872
2857
|
}
|
|
2873
|
-
function
|
|
2874
|
-
if (!
|
|
2875
|
-
const D =
|
|
2876
|
-
|
|
2877
|
-
e.emit.search(D),
|
|
2878
|
-
},
|
|
2858
|
+
function P(F) {
|
|
2859
|
+
if (!F?.target) return;
|
|
2860
|
+
const D = F.target.value, z = Number(e.debounce());
|
|
2861
|
+
g && clearTimeout(g), z > 0 ? g = setTimeout(() => {
|
|
2862
|
+
e.emit.search(D), k(D);
|
|
2863
|
+
}, z) : (e.emit.search(D), k(D));
|
|
2879
2864
|
}
|
|
2880
|
-
function
|
|
2881
|
-
|
|
2865
|
+
function J() {
|
|
2866
|
+
n.value = null, l.value = void 0, g && (clearTimeout(g), g = void 0), a.value = t.value.length;
|
|
2882
2867
|
}
|
|
2883
|
-
async function
|
|
2884
|
-
if (
|
|
2885
|
-
const
|
|
2886
|
-
const
|
|
2887
|
-
return
|
|
2888
|
-
}),
|
|
2889
|
-
if (
|
|
2868
|
+
async function ae(F) {
|
|
2869
|
+
if (F.length === 0) return [];
|
|
2870
|
+
const z = F.filter((M) => !f.has(String(M))).filter((M) => {
|
|
2871
|
+
const $ = t.value.find((q) => Me(e.getOptionValue.value(q), M));
|
|
2872
|
+
return $ ? (f.set(String(M), $), !1) : !0;
|
|
2873
|
+
}), j = e.options();
|
|
2874
|
+
if (z.length > 0 && typeof j == "function") {
|
|
2890
2875
|
try {
|
|
2891
|
-
|
|
2892
|
-
const
|
|
2893
|
-
|
|
2894
|
-
} catch (
|
|
2895
|
-
console.error("useSelectDataSource: error resolving",
|
|
2876
|
+
u.value = !0;
|
|
2877
|
+
const $ = await j(void 0, void 0, z);
|
|
2878
|
+
$?.results && b($.results);
|
|
2879
|
+
} catch ($) {
|
|
2880
|
+
console.error("useSelectDataSource: error resolving", $);
|
|
2896
2881
|
} finally {
|
|
2897
|
-
|
|
2882
|
+
u.value = !1;
|
|
2898
2883
|
}
|
|
2899
|
-
|
|
2900
|
-
} else if (
|
|
2901
|
-
for (const
|
|
2902
|
-
const
|
|
2903
|
-
|
|
2884
|
+
z.filter(($) => !f.has(String($))).length > 0 && !m && await h();
|
|
2885
|
+
} else if (z.length > 0 && Array.isArray(j))
|
|
2886
|
+
for (const M of j) {
|
|
2887
|
+
const $ = String(e.getOptionValue.value(M));
|
|
2888
|
+
z.includes($) && f.set($, M);
|
|
2904
2889
|
}
|
|
2905
|
-
const
|
|
2906
|
-
return
|
|
2890
|
+
const X = F.map((M) => f.get(String(M))).filter(Boolean);
|
|
2891
|
+
return s.value = X, X;
|
|
2907
2892
|
}
|
|
2908
|
-
async function
|
|
2909
|
-
t.value = [],
|
|
2893
|
+
async function ee() {
|
|
2894
|
+
t.value = [], n.value = null, a.value = 0, f.clear(), s.value = [], m = !1, await h();
|
|
2910
2895
|
}
|
|
2911
|
-
return
|
|
2896
|
+
return H(
|
|
2912
2897
|
e.options,
|
|
2913
2898
|
async () => {
|
|
2914
|
-
t.value = [],
|
|
2915
|
-
const
|
|
2916
|
-
if (Array.isArray(
|
|
2917
|
-
const D =
|
|
2918
|
-
(D.length === 0 ? t.value.filter((
|
|
2919
|
-
const
|
|
2920
|
-
return
|
|
2899
|
+
t.value = [], n.value = null, a.value = 0, f.clear(), m = !1;
|
|
2900
|
+
const F = e.options();
|
|
2901
|
+
if (Array.isArray(F) && (t.value = [...F], a.value = t.value.length, b(t.value), m = !0, s.value.length === 0)) {
|
|
2902
|
+
const D = s.value;
|
|
2903
|
+
(D.length === 0 ? t.value.filter((j) => {
|
|
2904
|
+
const X = String(e.getOptionValue.value(j));
|
|
2905
|
+
return f.has(X);
|
|
2921
2906
|
}) : D).length;
|
|
2922
2907
|
}
|
|
2923
2908
|
},
|
|
2924
2909
|
{ deep: !1 }
|
|
2925
2910
|
), {
|
|
2926
|
-
displayItems:
|
|
2927
|
-
loading:
|
|
2928
|
-
searchLoading:
|
|
2929
|
-
hasMore:
|
|
2930
|
-
filterString:
|
|
2931
|
-
resolvedDefaults:
|
|
2932
|
-
defaultOptionLoading:
|
|
2911
|
+
displayItems: d,
|
|
2912
|
+
loading: o,
|
|
2913
|
+
searchLoading: i,
|
|
2914
|
+
hasMore: c,
|
|
2915
|
+
filterString: l,
|
|
2916
|
+
resolvedDefaults: s,
|
|
2917
|
+
defaultOptionLoading: u,
|
|
2933
2918
|
cachedItems: t,
|
|
2934
|
-
open:
|
|
2935
|
-
close:
|
|
2936
|
-
onInput:
|
|
2937
|
-
clearSearch:
|
|
2938
|
-
loadMore:
|
|
2939
|
-
resolve:
|
|
2940
|
-
refresh:
|
|
2919
|
+
open: h,
|
|
2920
|
+
close: B,
|
|
2921
|
+
onInput: P,
|
|
2922
|
+
clearSearch: J,
|
|
2923
|
+
loadMore: p,
|
|
2924
|
+
resolve: ae,
|
|
2925
|
+
refresh: ee
|
|
2941
2926
|
};
|
|
2942
2927
|
}
|
|
2943
2928
|
function to(e) {
|
|
2944
2929
|
let t = [];
|
|
2945
|
-
const n =
|
|
2930
|
+
const n = S(() => {
|
|
2946
2931
|
const g = e.mapOptions() === !0 && e.multiple() !== !0, d = e.modelValue() !== void 0 && (e.modelValue() !== null || g === !0) ? e.multiple() === !0 && Array.isArray(e.modelValue()) ? e.modelValue() : [e.modelValue()] : [];
|
|
2947
2932
|
if (e.mapOptions() === !0 && Array.isArray(e.displayItems.value) === !0) {
|
|
2948
2933
|
const c = e.mapOptions() === !0 && t !== void 0 ? t : [], b = d.map((h) => {
|
|
2949
|
-
const
|
|
2950
|
-
if (
|
|
2934
|
+
const B = e.getOption(h, c, e.resolvedDefaults.value, e.displayItems.value);
|
|
2935
|
+
if (B === h && e.cachedItems.value.length > 0) {
|
|
2951
2936
|
const p = e.getOption(h, c, e.resolvedDefaults.value, e.cachedItems.value);
|
|
2952
2937
|
if (p !== h) return p;
|
|
2953
2938
|
}
|
|
2954
|
-
return
|
|
2939
|
+
return B;
|
|
2955
2940
|
});
|
|
2956
2941
|
return e.modelValue() === null && g === !0 ? b.filter((h) => h !== null) : b;
|
|
2957
2942
|
}
|
|
2958
2943
|
return d;
|
|
2959
2944
|
});
|
|
2960
|
-
|
|
2945
|
+
H(
|
|
2961
2946
|
n,
|
|
2962
2947
|
(g) => {
|
|
2963
2948
|
t = g;
|
|
2964
2949
|
},
|
|
2965
2950
|
{ immediate: !0 }
|
|
2966
2951
|
);
|
|
2967
|
-
const a =
|
|
2952
|
+
const a = S(() => n.value.map((g) => e.getOptionValue.value(g)));
|
|
2968
2953
|
function o(g) {
|
|
2969
2954
|
const d = e.getOptionValue.value(g);
|
|
2970
|
-
return a.value.find((c) =>
|
|
2955
|
+
return a.value.find((c) => Me(c, d)) !== void 0;
|
|
2971
2956
|
}
|
|
2972
|
-
const i =
|
|
2957
|
+
const i = S(
|
|
2973
2958
|
() => n.value.map((g, d) => ({
|
|
2974
2959
|
index: d,
|
|
2975
2960
|
opt: g,
|
|
2976
2961
|
selected: !0,
|
|
2977
2962
|
toggleOption: u,
|
|
2978
|
-
removeAtIndex:
|
|
2963
|
+
removeAtIndex: f
|
|
2979
2964
|
}))
|
|
2980
|
-
), l =
|
|
2965
|
+
), l = S(() => e.fieldValueIsFilled(n.value)), s = S(() => e.displayItems.value.map((g, d) => ({
|
|
2981
2966
|
index: d,
|
|
2982
2967
|
opt: g,
|
|
2983
2968
|
selected: o(g) === !0,
|
|
@@ -2989,7 +2974,7 @@ function to(e) {
|
|
|
2989
2974
|
return;
|
|
2990
2975
|
const d = e.getOptionValue.value(g);
|
|
2991
2976
|
if (e.multiple() !== !0) {
|
|
2992
|
-
(n.value.length === 0 ||
|
|
2977
|
+
(n.value.length === 0 || Me(e.getOptionValue.value(n.value[0]), d) !== !0) && e.emit.updateModelValue(e.emitValue() === !0 ? d : g), e.isOpened.value = !1, e.emit.close();
|
|
2993
2978
|
return;
|
|
2994
2979
|
}
|
|
2995
2980
|
if (n.value.length === 0) {
|
|
@@ -2997,7 +2982,7 @@ function to(e) {
|
|
|
2997
2982
|
e.emit.updateModelValue(e.multiple() === !0 ? [h] : h);
|
|
2998
2983
|
return;
|
|
2999
2984
|
}
|
|
3000
|
-
const c = e.modelValue().slice(), b = a.value.findIndex((h) =>
|
|
2985
|
+
const c = e.modelValue().slice(), b = a.value.findIndex((h) => Me(h, d));
|
|
3001
2986
|
if (b > -1)
|
|
3002
2987
|
c.splice(b, 1);
|
|
3003
2988
|
else {
|
|
@@ -3006,7 +2991,7 @@ function to(e) {
|
|
|
3006
2991
|
}
|
|
3007
2992
|
e.emit.updateModelValue(c), e.isOpened.value && e.popperUpdate();
|
|
3008
2993
|
}
|
|
3009
|
-
function
|
|
2994
|
+
function f(g) {
|
|
3010
2995
|
if (g > -1 && g < n.value.length)
|
|
3011
2996
|
if (e.multiple() === !0) {
|
|
3012
2997
|
const d = e.modelValue().slice();
|
|
@@ -3028,7 +3013,7 @@ function to(e) {
|
|
|
3028
3013
|
innerOptionsValue: a,
|
|
3029
3014
|
optionScope: s,
|
|
3030
3015
|
toggleOption: u,
|
|
3031
|
-
removeAtIndex:
|
|
3016
|
+
removeAtIndex: f,
|
|
3032
3017
|
isOptionSelected: o,
|
|
3033
3018
|
onReset: m
|
|
3034
3019
|
};
|
|
@@ -3066,7 +3051,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3066
3051
|
}, $o = ["aria-label"], wo = { class: "vc-select__chevron" }, Oo = { class: "vc-select__hint-error" }, Eo = { key: 0 }, Lo = { key: 1 }, Bo = {
|
|
3067
3052
|
key: 1,
|
|
3068
3053
|
class: "vc-select__append"
|
|
3069
|
-
}, Co = /* @__PURE__ */
|
|
3054
|
+
}, Co = /* @__PURE__ */ V({
|
|
3070
3055
|
__name: "SelectTrigger",
|
|
3071
3056
|
props: {
|
|
3072
3057
|
isOpened: { type: Boolean },
|
|
@@ -3098,37 +3083,37 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3098
3083
|
},
|
|
3099
3084
|
emits: ["focus", "blur", "reset", "removeAtIndex"],
|
|
3100
3085
|
setup(e, { expose: t }) {
|
|
3101
|
-
const { t: n } =
|
|
3086
|
+
const { t: n } = Se({ useScope: "global" }), a = I(null);
|
|
3102
3087
|
return t({
|
|
3103
3088
|
toggleRef: a
|
|
3104
|
-
}), (o, i) => (
|
|
3089
|
+
}), (o, i) => (v(), y("div", {
|
|
3105
3090
|
ref_key: "toggleRef",
|
|
3106
3091
|
ref: a,
|
|
3107
3092
|
class: "vc-select__dropdown-toggle"
|
|
3108
3093
|
}, [
|
|
3109
|
-
|
|
3094
|
+
C(o.$slots, "control", {
|
|
3110
3095
|
toggleHandler: e.toggleDropdown,
|
|
3111
3096
|
isOpened: e.isOpened
|
|
3112
3097
|
}, () => [
|
|
3113
|
-
|
|
3114
|
-
o.$slots.prepend ? (
|
|
3115
|
-
|
|
3098
|
+
L("div", no, [
|
|
3099
|
+
o.$slots.prepend ? (v(), y("div", ao, [
|
|
3100
|
+
C(o.$slots, "prepend")
|
|
3116
3101
|
])) : w("", !0),
|
|
3117
|
-
|
|
3102
|
+
L("div", {
|
|
3118
3103
|
class: W(["vc-select__field-wrapper", {
|
|
3119
3104
|
"vc-select__field-wrapper--default": e.size === "default",
|
|
3120
3105
|
"vc-select__field-wrapper--small": e.size === "small"
|
|
3121
3106
|
}])
|
|
3122
3107
|
}, [
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
o.$slots["prepend-inner"] ? (
|
|
3127
|
-
|
|
3108
|
+
L("div", lo, [
|
|
3109
|
+
L("div", oo, [
|
|
3110
|
+
L("div", io, [
|
|
3111
|
+
o.$slots["prepend-inner"] ? (v(), y("div", ro, [
|
|
3112
|
+
C(o.$slots, "prepend-inner")
|
|
3128
3113
|
])) : w("", !0),
|
|
3129
|
-
|
|
3130
|
-
e.prefix ? (
|
|
3131
|
-
|
|
3114
|
+
L("div", so, [
|
|
3115
|
+
e.prefix ? (v(), y("div", uo, T(e.prefix), 1)) : w("", !0),
|
|
3116
|
+
L("div", {
|
|
3132
3117
|
"data-test-id": "dropdown-toggle",
|
|
3133
3118
|
class: "vc-select__input",
|
|
3134
3119
|
role: "combobox",
|
|
@@ -3140,18 +3125,18 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3140
3125
|
"aria-describedby": e.ariaDescribedBy,
|
|
3141
3126
|
"aria-required": e.ariaRequired,
|
|
3142
3127
|
"aria-invalid": e.error || void 0,
|
|
3143
|
-
onClick: i[0] || (i[0] =
|
|
3128
|
+
onClick: i[0] || (i[0] = G(
|
|
3144
3129
|
//@ts-ignore
|
|
3145
3130
|
(...l) => e.toggleDropdown && e.toggleDropdown(...l),
|
|
3146
3131
|
["stop"]
|
|
3147
3132
|
)),
|
|
3148
3133
|
onKeydown: [
|
|
3149
|
-
i[1] || (i[1] =
|
|
3134
|
+
i[1] || (i[1] = Z(G(
|
|
3150
3135
|
//@ts-ignore
|
|
3151
3136
|
(...l) => e.toggleDropdown && e.toggleDropdown(...l),
|
|
3152
3137
|
["stop"]
|
|
3153
3138
|
), ["enter"])),
|
|
3154
|
-
i[2] || (i[2] =
|
|
3139
|
+
i[2] || (i[2] = Z(G(
|
|
3155
3140
|
//@ts-ignore
|
|
3156
3141
|
(...l) => e.toggleDropdown && e.toggleDropdown(...l),
|
|
3157
3142
|
["stop"]
|
|
@@ -3160,52 +3145,52 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3160
3145
|
onFocus: i[3] || (i[3] = (l) => o.$emit("focus")),
|
|
3161
3146
|
onBlur: i[4] || (i[4] = (l) => o.$emit("blur"))
|
|
3162
3147
|
}, [
|
|
3163
|
-
e.hasValue ? e.selectedScope && e.selectedScope.length && e.hasValue ? (
|
|
3164
|
-
(
|
|
3148
|
+
e.hasValue ? e.selectedScope && e.selectedScope.length && e.hasValue ? (v(), y("div", vo, [
|
|
3149
|
+
(v(!0), y(Oe, null, ot(e.selectedScope, (l, s) => (v(), y("div", {
|
|
3165
3150
|
key: s,
|
|
3166
3151
|
class: "vc-select__selected-item"
|
|
3167
3152
|
}, [
|
|
3168
|
-
e.multiple ?
|
|
3153
|
+
e.multiple ? C(o.$slots, "selected-item", ne({
|
|
3169
3154
|
key: 0,
|
|
3170
3155
|
ref_for: !0
|
|
3171
3156
|
}, l), () => [
|
|
3172
|
-
|
|
3173
|
-
e.loading ? (
|
|
3174
|
-
e.disabled ? w("", !0) : (
|
|
3157
|
+
L("div", go, [
|
|
3158
|
+
e.loading ? (v(), y("span", mo, T(r(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : (v(), y("span", po, T(e.getOptionLabel(l.opt)), 1)),
|
|
3159
|
+
e.disabled ? w("", !0) : (v(), y("button", {
|
|
3175
3160
|
key: 2,
|
|
3176
3161
|
type: "button",
|
|
3177
3162
|
class: "vc-select__chip-remove",
|
|
3178
3163
|
"aria-label": `Remove ${e.getOptionLabel(l.opt) || ""}`,
|
|
3179
3164
|
tabindex: "0",
|
|
3180
|
-
onClick:
|
|
3181
|
-
onKeydown:
|
|
3165
|
+
onClick: G((u) => o.$emit("removeAtIndex", l.index), ["stop"]),
|
|
3166
|
+
onKeydown: Z(G((u) => o.$emit("removeAtIndex", l.index), ["stop", "prevent"]), ["enter"])
|
|
3182
3167
|
}, [
|
|
3183
|
-
|
|
3168
|
+
x(r(K), {
|
|
3184
3169
|
class: "vc-select__icon-remove",
|
|
3185
3170
|
icon: "lucide-x",
|
|
3186
3171
|
size: "xs"
|
|
3187
3172
|
})
|
|
3188
3173
|
], 40, bo))
|
|
3189
3174
|
])
|
|
3190
|
-
]) : e.multiple ? w("", !0) : (
|
|
3191
|
-
e.loading ? (
|
|
3175
|
+
]) : e.multiple ? w("", !0) : (v(), y(Oe, { key: 1 }, [
|
|
3176
|
+
e.loading ? (v(), y("span", yo, T(r(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : C(o.$slots, "selected-item", ne({
|
|
3192
3177
|
key: 1,
|
|
3193
3178
|
ref_for: !0
|
|
3194
3179
|
}, l), () => [
|
|
3195
|
-
|
|
3180
|
+
Q(T(e.loading ? r(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING") : e.getEmittingOptionValue(l.opt)), 1)
|
|
3196
3181
|
])
|
|
3197
3182
|
], 64))
|
|
3198
3183
|
]))), 128))
|
|
3199
|
-
])) : w("", !0) : (
|
|
3200
|
-
e.placeholder ? (
|
|
3201
|
-
|
|
3202
|
-
], 64)) : (
|
|
3203
|
-
|
|
3184
|
+
])) : w("", !0) : (v(), y("div", fo, [
|
|
3185
|
+
e.placeholder ? (v(), y(Oe, { key: 0 }, [
|
|
3186
|
+
Q(T(e.placeholder), 1)
|
|
3187
|
+
], 64)) : (v(), y(Oe, { key: 1 }, [
|
|
3188
|
+
Q(T(r(n)("COMPONENTS.MOLECULES.VC_SELECT.CLICK_TO_SELECT")), 1)
|
|
3204
3189
|
], 64))
|
|
3205
3190
|
]))
|
|
3206
3191
|
], 40, co),
|
|
3207
|
-
e.suffix ? (
|
|
3208
|
-
e.clearable && e.hasValue && !e.disabled ? (
|
|
3192
|
+
e.suffix ? (v(), y("div", ho, T(e.suffix), 1)) : w("", !0),
|
|
3193
|
+
e.clearable && e.hasValue && !e.disabled ? (v(), y("div", {
|
|
3209
3194
|
key: 2,
|
|
3210
3195
|
class: "vc-select__clear",
|
|
3211
3196
|
role: "button",
|
|
@@ -3213,52 +3198,52 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3213
3198
|
tabindex: "0",
|
|
3214
3199
|
onClick: i[5] || (i[5] = (l) => o.$emit("reset")),
|
|
3215
3200
|
onKeydown: [
|
|
3216
|
-
i[6] || (i[6] =
|
|
3217
|
-
i[7] || (i[7] =
|
|
3201
|
+
i[6] || (i[6] = Z((l) => o.$emit("reset"), ["enter"])),
|
|
3202
|
+
i[7] || (i[7] = Z((l) => o.$emit("reset"), ["space"]))
|
|
3218
3203
|
]
|
|
3219
3204
|
}, [
|
|
3220
|
-
|
|
3205
|
+
x(r(K), {
|
|
3221
3206
|
size: "xs",
|
|
3222
3207
|
icon: "lucide-x"
|
|
3223
3208
|
})
|
|
3224
3209
|
], 40, ko)) : w("", !0)
|
|
3225
3210
|
]),
|
|
3226
|
-
o.$slots["append-inner"] ? (
|
|
3227
|
-
|
|
3211
|
+
o.$slots["append-inner"] ? (v(), y("div", Io, [
|
|
3212
|
+
C(o.$slots, "append-inner")
|
|
3228
3213
|
])) : w("", !0),
|
|
3229
|
-
e.loading || e.listLoading || e.defaultOptionLoading ? (
|
|
3230
|
-
|
|
3214
|
+
e.loading || e.listLoading || e.defaultOptionLoading ? (v(), y("div", So, [
|
|
3215
|
+
x(r(K), {
|
|
3231
3216
|
icon: "lucide-loader-2",
|
|
3232
3217
|
class: "tw-animate-spin",
|
|
3233
3218
|
size: "m"
|
|
3234
3219
|
})
|
|
3235
3220
|
])) : w("", !0),
|
|
3236
|
-
e.disabled ? w("", !0) : (
|
|
3221
|
+
e.disabled ? w("", !0) : (v(), y("div", {
|
|
3237
3222
|
key: 3,
|
|
3238
3223
|
class: "vc-select__chevron-container",
|
|
3239
3224
|
role: "button",
|
|
3240
3225
|
"aria-label": o.$t("COMPONENTS.CONTROLS.TOGGLE_DROPDOWN"),
|
|
3241
3226
|
tabindex: "0",
|
|
3242
|
-
onClick: i[8] || (i[8] =
|
|
3227
|
+
onClick: i[8] || (i[8] = G(
|
|
3243
3228
|
//@ts-ignore
|
|
3244
3229
|
(...l) => e.toggleDropdown && e.toggleDropdown(...l),
|
|
3245
3230
|
["stop"]
|
|
3246
3231
|
)),
|
|
3247
3232
|
onKeydown: [
|
|
3248
|
-
i[9] || (i[9] =
|
|
3233
|
+
i[9] || (i[9] = Z(G(
|
|
3249
3234
|
//@ts-ignore
|
|
3250
3235
|
(...l) => e.toggleDropdown && e.toggleDropdown(...l),
|
|
3251
3236
|
["stop"]
|
|
3252
3237
|
), ["enter"])),
|
|
3253
|
-
i[10] || (i[10] =
|
|
3238
|
+
i[10] || (i[10] = Z(G(
|
|
3254
3239
|
//@ts-ignore
|
|
3255
3240
|
(...l) => e.toggleDropdown && e.toggleDropdown(...l),
|
|
3256
3241
|
["stop"]
|
|
3257
3242
|
), ["space"]))
|
|
3258
3243
|
]
|
|
3259
3244
|
}, [
|
|
3260
|
-
|
|
3261
|
-
|
|
3245
|
+
L("div", wo, [
|
|
3246
|
+
x(r(K), {
|
|
3262
3247
|
size: "s",
|
|
3263
3248
|
icon: "lucide-chevron-down"
|
|
3264
3249
|
})
|
|
@@ -3267,34 +3252,34 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3267
3252
|
])
|
|
3268
3253
|
])
|
|
3269
3254
|
]),
|
|
3270
|
-
|
|
3271
|
-
|
|
3255
|
+
L("div", Oo, [
|
|
3256
|
+
x(Ne, {
|
|
3272
3257
|
name: "slide-up",
|
|
3273
3258
|
mode: "out-in"
|
|
3274
3259
|
}, {
|
|
3275
3260
|
default: O(() => [
|
|
3276
|
-
e.error && e.errorMessage ? (
|
|
3277
|
-
|
|
3278
|
-
|
|
3261
|
+
e.error && e.errorMessage ? (v(), y("div", Eo, [
|
|
3262
|
+
C(o.$slots, "error", {}, () => [
|
|
3263
|
+
x(r(ve), {
|
|
3279
3264
|
id: e.errorId,
|
|
3280
3265
|
class: "vc-select__error-message",
|
|
3281
3266
|
error: !0
|
|
3282
3267
|
}, {
|
|
3283
3268
|
default: O(() => [
|
|
3284
|
-
|
|
3269
|
+
Q(T(e.errorMessage), 1)
|
|
3285
3270
|
]),
|
|
3286
3271
|
_: 1
|
|
3287
3272
|
}, 8, ["id"])
|
|
3288
3273
|
])
|
|
3289
|
-
])) : (
|
|
3290
|
-
|
|
3291
|
-
e.hint ? (
|
|
3274
|
+
])) : (v(), y("div", Lo, [
|
|
3275
|
+
C(o.$slots, "hint", {}, () => [
|
|
3276
|
+
e.hint ? (v(), N(r(ve), {
|
|
3292
3277
|
key: 0,
|
|
3293
3278
|
id: e.hintId,
|
|
3294
3279
|
class: "vc-select__hint"
|
|
3295
3280
|
}, {
|
|
3296
3281
|
default: O(() => [
|
|
3297
|
-
|
|
3282
|
+
Q(T(e.hint), 1)
|
|
3298
3283
|
]),
|
|
3299
3284
|
_: 1
|
|
3300
3285
|
}, 8, ["id"])) : w("", !0)
|
|
@@ -3305,8 +3290,8 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3305
3290
|
})
|
|
3306
3291
|
])
|
|
3307
3292
|
], 2),
|
|
3308
|
-
o.$slots.append ? (
|
|
3309
|
-
|
|
3293
|
+
o.$slots.append ? (v(), y("div", Bo, [
|
|
3294
|
+
C(o.$slots, "append")
|
|
3310
3295
|
])) : w("", !0)
|
|
3311
3296
|
])
|
|
3312
3297
|
])
|
|
@@ -3321,7 +3306,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3321
3306
|
}, No = { class: "tw-ml-1" }, Do = {
|
|
3322
3307
|
key: 1,
|
|
3323
3308
|
class: "vc-select__no-options"
|
|
3324
|
-
}, Vo = { class: "vc-select__no-options-text" }, Po = /* @__PURE__ */
|
|
3309
|
+
}, Vo = { class: "vc-select__no-options-text" }, Po = /* @__PURE__ */ V({
|
|
3325
3310
|
__name: "SelectDropdown",
|
|
3326
3311
|
props: {
|
|
3327
3312
|
isOpened: { type: Boolean },
|
|
@@ -3337,36 +3322,36 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3337
3322
|
},
|
|
3338
3323
|
emits: ["input", "clickOutside"],
|
|
3339
3324
|
setup(e, { expose: t, emit: n }) {
|
|
3340
|
-
const a = e, o = n, { t: i } =
|
|
3325
|
+
const a = e, o = n, { t: i } = Se({ useScope: "global" }), { teleportTarget: l } = $n(), s = I(null), u = I(null), f = I(null), m = I(null), g = S(() => f.value?.viewportRef ?? null);
|
|
3341
3326
|
function d(c) {
|
|
3342
3327
|
const b = g.value;
|
|
3343
3328
|
if (!b) return;
|
|
3344
3329
|
if (b.contains(c.target)) {
|
|
3345
|
-
const
|
|
3346
|
-
(
|
|
3330
|
+
const B = b.scrollTop <= 0 && c.deltaY < 0, p = Math.ceil(b.scrollTop) >= b.scrollHeight - b.clientHeight && c.deltaY > 0;
|
|
3331
|
+
(B || p) && c.preventDefault();
|
|
3347
3332
|
} else
|
|
3348
3333
|
c.preventDefault(), b.scrollTop += c.deltaY;
|
|
3349
|
-
|
|
3334
|
+
f.value?.updateScrollState();
|
|
3350
3335
|
}
|
|
3351
|
-
return
|
|
3336
|
+
return H(
|
|
3352
3337
|
() => a.isOpened,
|
|
3353
3338
|
(c) => {
|
|
3354
|
-
c &&
|
|
3339
|
+
c && ke(() => f.value?.updateScrollState());
|
|
3355
3340
|
}
|
|
3356
|
-
),
|
|
3341
|
+
), H(
|
|
3357
3342
|
() => a.optionScope.length,
|
|
3358
3343
|
() => {
|
|
3359
|
-
a.isOpened &&
|
|
3344
|
+
a.isOpened && ke(() => f.value?.updateScrollState());
|
|
3360
3345
|
}
|
|
3361
3346
|
), t({
|
|
3362
3347
|
dropdownElRef: s,
|
|
3363
3348
|
searchInputRef: u,
|
|
3364
3349
|
viewportRef: g,
|
|
3365
3350
|
loadMoreRef: m
|
|
3366
|
-
}), (c, b) => (
|
|
3367
|
-
|
|
3351
|
+
}), (c, b) => (v(), N(cn, { to: r(l) }, [
|
|
3352
|
+
x(Ne, { name: "select-dropdown" }, {
|
|
3368
3353
|
default: O(() => [
|
|
3369
|
-
e.isOpened ?
|
|
3354
|
+
e.isOpened ? rt((v(), y("div", {
|
|
3370
3355
|
key: 0,
|
|
3371
3356
|
id: e.listboxId,
|
|
3372
3357
|
ref_key: "dropdownElRef",
|
|
@@ -3375,10 +3360,10 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3375
3360
|
class: "vc-select__dropdown",
|
|
3376
3361
|
role: "listbox",
|
|
3377
3362
|
"aria-label": e.ariaLabel,
|
|
3378
|
-
style:
|
|
3363
|
+
style: Ae(e.dropdownStyle),
|
|
3379
3364
|
onWheel: d
|
|
3380
3365
|
}, [
|
|
3381
|
-
e.searchable ? (
|
|
3366
|
+
e.searchable ? (v(), y("input", {
|
|
3382
3367
|
key: 0,
|
|
3383
3368
|
ref_key: "searchInputRef",
|
|
3384
3369
|
ref: u,
|
|
@@ -3388,56 +3373,56 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3388
3373
|
autocomplete: "off",
|
|
3389
3374
|
onInput: b[0] || (b[0] = (h) => o("input", h)),
|
|
3390
3375
|
onKeydown: [
|
|
3391
|
-
b[1] || (b[1] =
|
|
3376
|
+
b[1] || (b[1] = Z(G(() => {
|
|
3392
3377
|
}, ["stop"]), ["space"])),
|
|
3393
|
-
b[2] || (b[2] =
|
|
3378
|
+
b[2] || (b[2] = Z(G(() => {
|
|
3394
3379
|
}, ["stop"]), ["enter"]))
|
|
3395
3380
|
]
|
|
3396
3381
|
}, null, 40, To)) : w("", !0),
|
|
3397
|
-
|
|
3382
|
+
x(r(ol), {
|
|
3398
3383
|
ref_key: "scrollContainerRef",
|
|
3399
|
-
ref:
|
|
3384
|
+
ref: f,
|
|
3400
3385
|
class: "vc-select__scroll-container"
|
|
3401
3386
|
}, {
|
|
3402
3387
|
default: O(() => [
|
|
3403
|
-
(
|
|
3404
|
-
key:
|
|
3388
|
+
(v(!0), y(Oe, null, ot(e.optionScope, (h, B) => (v(), y("div", {
|
|
3389
|
+
key: B,
|
|
3405
3390
|
class: W(["vc-select__option", { "vc-select__option--selected": h.selected }]),
|
|
3406
3391
|
"data-test-id": "option",
|
|
3407
3392
|
role: "option",
|
|
3408
3393
|
"aria-selected": h.selected,
|
|
3409
3394
|
tabindex: "0",
|
|
3410
|
-
"data-index":
|
|
3395
|
+
"data-index": B,
|
|
3411
3396
|
onClick: (p) => h.toggleOption(h.opt),
|
|
3412
3397
|
onKeydown: [
|
|
3413
|
-
|
|
3414
|
-
|
|
3398
|
+
Z((p) => h.toggleOption(h.opt), ["enter"]),
|
|
3399
|
+
Z((p) => h.toggleOption(h.opt), ["space"])
|
|
3415
3400
|
]
|
|
3416
3401
|
}, [
|
|
3417
|
-
|
|
3418
|
-
|
|
3402
|
+
C(c.$slots, "option", ne({ ref_for: !0 }, h), () => [
|
|
3403
|
+
Q(T(h.label), 1)
|
|
3419
3404
|
]),
|
|
3420
|
-
h.selected ? (
|
|
3421
|
-
|
|
3405
|
+
h.selected ? (v(), y("span", Mo, [
|
|
3406
|
+
x(r(K), {
|
|
3422
3407
|
icon: "lucide-check",
|
|
3423
3408
|
size: "xs"
|
|
3424
3409
|
})
|
|
3425
3410
|
])) : w("", !0)
|
|
3426
3411
|
], 42, Ro))), 128)),
|
|
3427
|
-
e.listLoading ? (
|
|
3428
|
-
|
|
3412
|
+
e.listLoading ? (v(), y("div", Ao, [
|
|
3413
|
+
x(r(K), {
|
|
3429
3414
|
icon: "lucide-loader-2",
|
|
3430
3415
|
class: "tw-animate-spin",
|
|
3431
3416
|
size: "m"
|
|
3432
3417
|
}),
|
|
3433
|
-
|
|
3418
|
+
L("span", No, T(e.optionsListLength > 0 ? r(i)("COMPONENTS.MOLECULES.VC_SELECT.LOADING_MORE") : r(i)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)
|
|
3434
3419
|
])) : w("", !0),
|
|
3435
|
-
!e.listLoading && !e.optionsListLength ? (
|
|
3436
|
-
|
|
3437
|
-
|
|
3420
|
+
!e.listLoading && !e.optionsListLength ? (v(), y("div", Do, [
|
|
3421
|
+
C(c.$slots, "no-options", {}, () => [
|
|
3422
|
+
L("span", Vo, T(r(i)("COMPONENTS.MOLECULES.VC_SELECT.NO_OPTIONS")), 1)
|
|
3438
3423
|
])
|
|
3439
3424
|
])) : w("", !0),
|
|
3440
|
-
e.hasNextPage && !e.listLoading ? (
|
|
3425
|
+
e.hasNextPage && !e.listLoading ? (v(), y("span", {
|
|
3441
3426
|
key: 2,
|
|
3442
3427
|
ref_key: "loadMoreRef",
|
|
3443
3428
|
ref: m,
|
|
@@ -3454,7 +3439,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3454
3439
|
})
|
|
3455
3440
|
], 8, ["to"]));
|
|
3456
3441
|
}
|
|
3457
|
-
}), Fo = ["innerHTML"], zo = { class: "vc-select__field-container" }, qo = /* @__PURE__ */
|
|
3442
|
+
}), Fo = ["innerHTML"], zo = { class: "vc-select__field-container" }, qo = /* @__PURE__ */ V({
|
|
3458
3443
|
inheritAttrs: !1,
|
|
3459
3444
|
__name: "vc-select",
|
|
3460
3445
|
props: {
|
|
@@ -3488,177 +3473,177 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3488
3473
|
},
|
|
3489
3474
|
emits: ["update:modelValue", "search", "close"],
|
|
3490
3475
|
setup(e, { emit: t }) {
|
|
3491
|
-
const n = e, a =
|
|
3492
|
-
const { class:
|
|
3493
|
-
return
|
|
3494
|
-
}), i = t, { t: l } =
|
|
3476
|
+
const n = e, a = wt(), o = S(() => {
|
|
3477
|
+
const { class: R, ..._ } = a;
|
|
3478
|
+
return _;
|
|
3479
|
+
}), i = t, { t: l } = Se({ useScope: "global" }), s = $e(), {
|
|
3495
3480
|
fieldId: u,
|
|
3496
|
-
labelId:
|
|
3481
|
+
labelId: f,
|
|
3497
3482
|
errorId: m,
|
|
3498
3483
|
hintId: g,
|
|
3499
3484
|
invalid: d,
|
|
3500
3485
|
resolvedDisabled: c,
|
|
3501
3486
|
resolvedName: b,
|
|
3502
3487
|
ariaRequired: h,
|
|
3503
|
-
ariaDescribedBy:
|
|
3504
|
-
} =
|
|
3488
|
+
ariaDescribedBy: B
|
|
3489
|
+
} = Ke(n), p = S(() => `${u.value}-listbox`), k = I(null), P = I(null), { selectRootRef: J, isSelectVisible: ae, ensureVisibility: ee } = Ql(), { getOptionValue: F, getOptionLabel: D, getOption: z, getEmittingOptionValue: j, fieldValueIsFilled: X } = Zl({
|
|
3505
3490
|
optionValue: () => n.optionValue,
|
|
3506
3491
|
optionLabel: () => n.optionLabel
|
|
3507
|
-
}), { isOpened:
|
|
3492
|
+
}), { isOpened: M, isFocused: $, dropdownToggleRef: q, dropdownRef: te, popper: le, dropdownStyle: E, toggleDropdown: U } = _l({
|
|
3508
3493
|
placement: n.placement,
|
|
3509
3494
|
outline: () => n.outline,
|
|
3510
|
-
isSelectVisible:
|
|
3511
|
-
selectRootRef:
|
|
3495
|
+
isSelectVisible: ae,
|
|
3496
|
+
selectRootRef: J,
|
|
3512
3497
|
disabled: () => n.disabled ?? !1,
|
|
3513
|
-
ensureVisibility:
|
|
3498
|
+
ensureVisibility: ee
|
|
3514
3499
|
});
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
}),
|
|
3518
|
-
|
|
3500
|
+
Qe(() => {
|
|
3501
|
+
q.value = k.value?.toggleRef ?? null;
|
|
3502
|
+
}), Qe(() => {
|
|
3503
|
+
te.value = P.value?.dropdownElRef ?? null;
|
|
3519
3504
|
});
|
|
3520
|
-
const
|
|
3505
|
+
const A = eo({
|
|
3521
3506
|
options: () => n.options,
|
|
3522
|
-
getOptionValue:
|
|
3523
|
-
getOptionLabel:
|
|
3524
|
-
isSelectVisible:
|
|
3507
|
+
getOptionValue: F,
|
|
3508
|
+
getOptionLabel: D,
|
|
3509
|
+
isSelectVisible: ae,
|
|
3525
3510
|
debounce: () => n.debounce ?? 500,
|
|
3526
3511
|
emit: {
|
|
3527
|
-
search: (
|
|
3512
|
+
search: (R) => i("search", R)
|
|
3528
3513
|
}
|
|
3529
|
-
}), { selectedScope:
|
|
3514
|
+
}), { selectedScope: Jt, hasValue: Xt, optionScope: Be, removeAtIndex: Zt, onReset: Qt } = to({
|
|
3530
3515
|
modelValue: () => n.modelValue,
|
|
3531
3516
|
multiple: () => n.multiple,
|
|
3532
3517
|
emitValue: () => n.emitValue ?? !0,
|
|
3533
3518
|
mapOptions: () => n.mapOptions ?? !0,
|
|
3534
|
-
displayItems:
|
|
3535
|
-
resolvedDefaults:
|
|
3536
|
-
cachedItems:
|
|
3537
|
-
getOptionValue:
|
|
3538
|
-
getOptionLabel:
|
|
3539
|
-
getOption:
|
|
3540
|
-
fieldValueIsFilled:
|
|
3541
|
-
isOpened:
|
|
3542
|
-
popperUpdate: () =>
|
|
3519
|
+
displayItems: A.displayItems,
|
|
3520
|
+
resolvedDefaults: A.resolvedDefaults,
|
|
3521
|
+
cachedItems: A.cachedItems,
|
|
3522
|
+
getOptionValue: F,
|
|
3523
|
+
getOptionLabel: D,
|
|
3524
|
+
getOption: z,
|
|
3525
|
+
fieldValueIsFilled: X,
|
|
3526
|
+
isOpened: M,
|
|
3527
|
+
popperUpdate: () => le.update(),
|
|
3543
3528
|
emit: {
|
|
3544
|
-
updateModelValue: (
|
|
3529
|
+
updateModelValue: (R) => i("update:modelValue", R),
|
|
3545
3530
|
close: () => i("close")
|
|
3546
3531
|
}
|
|
3547
|
-
}), _t =
|
|
3532
|
+
}), _t = S(() => P.value?.loadMoreRef ?? null), en = S(() => P.value?.viewportRef ?? null);
|
|
3548
3533
|
xn(
|
|
3549
3534
|
_t,
|
|
3550
|
-
([{ isIntersecting:
|
|
3551
|
-
|
|
3535
|
+
([{ isIntersecting: R }]) => {
|
|
3536
|
+
R && A.hasMore.value && A.loadMore();
|
|
3552
3537
|
},
|
|
3553
3538
|
{ threshold: 1, root: en }
|
|
3554
3539
|
);
|
|
3555
|
-
const
|
|
3556
|
-
onEnter: (
|
|
3557
|
-
const
|
|
3558
|
-
|
|
3540
|
+
const Ge = Xl({
|
|
3541
|
+
onEnter: (R) => {
|
|
3542
|
+
const _ = parseInt(R.getAttribute("data-index") || "0", 10);
|
|
3543
|
+
Be.value && Be.value[_] && Be.value[_].toggleOption(Be.value[_].opt);
|
|
3559
3544
|
},
|
|
3560
3545
|
onEscape: () => {
|
|
3561
|
-
|
|
3562
|
-
|
|
3546
|
+
M.value = !1, i("close"), ke(() => {
|
|
3547
|
+
k.value?.toggleRef?.querySelector('[role="combobox"]')?.focus();
|
|
3563
3548
|
});
|
|
3564
3549
|
}
|
|
3565
3550
|
});
|
|
3566
3551
|
function tn() {
|
|
3567
|
-
|
|
3552
|
+
M.value = !1, i("close");
|
|
3568
3553
|
}
|
|
3569
|
-
return
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
const
|
|
3573
|
-
if (
|
|
3574
|
-
if (
|
|
3575
|
-
|
|
3554
|
+
return H(M, async (R) => {
|
|
3555
|
+
R ? (await A.open(), ke(() => {
|
|
3556
|
+
le.update();
|
|
3557
|
+
const _ = P.value?.dropdownElRef, ie = P.value?.searchInputRef;
|
|
3558
|
+
if (_)
|
|
3559
|
+
if (Ge.initKeyboardNavigation(_), n.searchable && ie)
|
|
3560
|
+
ie.focus();
|
|
3576
3561
|
else {
|
|
3577
|
-
const
|
|
3562
|
+
const Ce = _.querySelector(
|
|
3578
3563
|
'.vc-select__option[tabindex="0"], .vc-select__search-input[tabindex="0"]'
|
|
3579
3564
|
);
|
|
3580
|
-
|
|
3565
|
+
Ce ? Ce.focus() : Ge.focusFirstElement();
|
|
3581
3566
|
}
|
|
3582
|
-
})) : (
|
|
3583
|
-
}),
|
|
3567
|
+
})) : (Ge.cleanupKeyboardNavigation(), A.close());
|
|
3568
|
+
}), H(
|
|
3584
3569
|
() => n.modelValue,
|
|
3585
|
-
async (
|
|
3586
|
-
if (
|
|
3587
|
-
|
|
3570
|
+
async (R) => {
|
|
3571
|
+
if (R == null || Array.isArray(R) && R.length === 0) {
|
|
3572
|
+
A.resolvedDefaults.value = [];
|
|
3588
3573
|
return;
|
|
3589
3574
|
}
|
|
3590
|
-
const
|
|
3575
|
+
const _ = n.emitValue ?? !0;
|
|
3591
3576
|
if (n.mapOptions ?? !0) {
|
|
3592
|
-
const
|
|
3593
|
-
if (
|
|
3594
|
-
const
|
|
3595
|
-
|
|
3577
|
+
const Ce = Array.isArray(R) ? R : [R], pt = _ ? Ce : Ce.filter((xe) => xe != null && typeof xe != "object");
|
|
3578
|
+
if (pt.length > 0) {
|
|
3579
|
+
const xe = pt.filter((nn) => nn != null).map(String);
|
|
3580
|
+
xe.length > 0 && await A.resolve(xe);
|
|
3596
3581
|
}
|
|
3597
3582
|
}
|
|
3598
3583
|
},
|
|
3599
3584
|
{ immediate: !0 }
|
|
3600
|
-
), (
|
|
3601
|
-
class: ["vc-select vc-select--skeleton",
|
|
3585
|
+
), (R, _) => r(s) ? (v(), y("div", ne({ key: 0 }, o.value, {
|
|
3586
|
+
class: ["vc-select vc-select--skeleton", R.$attrs.class]
|
|
3602
3587
|
}), [
|
|
3603
|
-
e.label ? (
|
|
3588
|
+
e.label ? (v(), N(r(oe), {
|
|
3604
3589
|
key: 0,
|
|
3605
3590
|
variant: "block",
|
|
3606
3591
|
width: 60 + (e.label?.length || 0) * 4,
|
|
3607
3592
|
height: 11
|
|
3608
3593
|
}, null, 8, ["width"])) : w("", !0),
|
|
3609
|
-
|
|
3594
|
+
x(r(oe), {
|
|
3610
3595
|
variant: "block",
|
|
3611
3596
|
width: "100%",
|
|
3612
3597
|
height: 36
|
|
3613
3598
|
})
|
|
3614
|
-
], 16)) : (
|
|
3599
|
+
], 16)) : (v(), y("div", ne({
|
|
3615
3600
|
key: 1,
|
|
3616
3601
|
ref_key: "selectRootRef",
|
|
3617
|
-
ref:
|
|
3602
|
+
ref: J
|
|
3618
3603
|
}, o.value, {
|
|
3619
3604
|
class: ["vc-select", [
|
|
3620
|
-
|
|
3605
|
+
R.$attrs.class,
|
|
3621
3606
|
{
|
|
3622
|
-
"vc-select--opened": r(
|
|
3607
|
+
"vc-select--opened": r(M),
|
|
3623
3608
|
"vc-select--error": r(d),
|
|
3624
3609
|
"vc-select--disabled": r(c),
|
|
3625
3610
|
"vc-select--has-hint-or-error": r(d) || e.hint,
|
|
3626
3611
|
"vc-select--no-outline": !e.outline,
|
|
3627
|
-
"vc-select--focused": r(
|
|
3612
|
+
"vc-select--focused": r($)
|
|
3628
3613
|
}
|
|
3629
3614
|
]]
|
|
3630
3615
|
}), [
|
|
3631
|
-
e.label ? (
|
|
3616
|
+
e.label ? (v(), N(r(He), {
|
|
3632
3617
|
key: 0,
|
|
3633
|
-
id: r(
|
|
3618
|
+
id: r(f),
|
|
3634
3619
|
class: "vc-select__label",
|
|
3635
3620
|
required: e.required,
|
|
3636
3621
|
multilanguage: e.multilanguage,
|
|
3637
3622
|
"current-language": e.currentLanguage,
|
|
3638
3623
|
error: r(d)
|
|
3639
|
-
},
|
|
3624
|
+
}, re({
|
|
3640
3625
|
default: O(() => [
|
|
3641
|
-
|
|
3626
|
+
L("span", null, T(e.label), 1)
|
|
3642
3627
|
]),
|
|
3643
3628
|
_: 2
|
|
3644
3629
|
}, [
|
|
3645
3630
|
e.tooltip ? {
|
|
3646
3631
|
name: "tooltip",
|
|
3647
3632
|
fn: O(() => [
|
|
3648
|
-
|
|
3649
|
-
innerHTML: r(
|
|
3633
|
+
L("span", {
|
|
3634
|
+
innerHTML: r(Mt).sanitize(e.tooltip)
|
|
3650
3635
|
}, null, 8, Fo)
|
|
3651
3636
|
]),
|
|
3652
3637
|
key: "0"
|
|
3653
3638
|
} : void 0
|
|
3654
3639
|
]), 1032, ["id", "required", "multilanguage", "current-language", "error"])) : w("", !0),
|
|
3655
|
-
|
|
3656
|
-
|
|
3640
|
+
L("div", zo, [
|
|
3641
|
+
x(Co, {
|
|
3657
3642
|
ref_key: "selectTriggerRef",
|
|
3658
|
-
ref:
|
|
3659
|
-
"is-opened": r(
|
|
3660
|
-
"has-value": r(
|
|
3661
|
-
"selected-scope": r(
|
|
3643
|
+
ref: k,
|
|
3644
|
+
"is-opened": r(M),
|
|
3645
|
+
"has-value": r(Xt),
|
|
3646
|
+
"selected-scope": r(Jt),
|
|
3662
3647
|
multiple: e.multiple,
|
|
3663
3648
|
loading: e.loading,
|
|
3664
3649
|
disabled: r(c),
|
|
@@ -3670,107 +3655,107 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3670
3655
|
error: r(d),
|
|
3671
3656
|
"error-message": e.errorMessage,
|
|
3672
3657
|
hint: e.hint,
|
|
3673
|
-
"list-loading": r(
|
|
3674
|
-
"default-option-loading": r(
|
|
3658
|
+
"list-loading": r(A).loading.value || r(A).searchLoading.value,
|
|
3659
|
+
"default-option-loading": r(A).defaultOptionLoading.value,
|
|
3675
3660
|
"listbox-id": p.value,
|
|
3676
|
-
"label-id": r(
|
|
3661
|
+
"label-id": r(f),
|
|
3677
3662
|
label: e.label,
|
|
3678
|
-
"aria-described-by": r(
|
|
3663
|
+
"aria-described-by": r(B),
|
|
3679
3664
|
"aria-required": r(h),
|
|
3680
3665
|
"error-id": r(m),
|
|
3681
3666
|
"hint-id": r(g),
|
|
3682
|
-
"toggle-dropdown": r(
|
|
3683
|
-
"get-option-label": r(
|
|
3684
|
-
"get-emitting-option-value": r(
|
|
3685
|
-
onFocus:
|
|
3686
|
-
onBlur:
|
|
3667
|
+
"toggle-dropdown": r(U),
|
|
3668
|
+
"get-option-label": r(D),
|
|
3669
|
+
"get-emitting-option-value": r(j),
|
|
3670
|
+
onFocus: _[0] || (_[0] = (ie) => $.value = !0),
|
|
3671
|
+
onBlur: _[1] || (_[1] = (ie) => $.value = !1),
|
|
3687
3672
|
onReset: r(Qt),
|
|
3688
3673
|
onRemoveAtIndex: r(Zt)
|
|
3689
|
-
},
|
|
3690
|
-
|
|
3674
|
+
}, re({ _: 2 }, [
|
|
3675
|
+
R.$slots.control ? {
|
|
3691
3676
|
name: "control",
|
|
3692
|
-
fn: O((
|
|
3693
|
-
|
|
3677
|
+
fn: O((ie) => [
|
|
3678
|
+
C(R.$slots, "control", Te(Re(ie)))
|
|
3694
3679
|
]),
|
|
3695
3680
|
key: "0"
|
|
3696
3681
|
} : void 0,
|
|
3697
|
-
|
|
3682
|
+
R.$slots.prepend ? {
|
|
3698
3683
|
name: "prepend",
|
|
3699
3684
|
fn: O(() => [
|
|
3700
|
-
|
|
3685
|
+
C(R.$slots, "prepend")
|
|
3701
3686
|
]),
|
|
3702
3687
|
key: "1"
|
|
3703
3688
|
} : void 0,
|
|
3704
|
-
|
|
3689
|
+
R.$slots.append ? {
|
|
3705
3690
|
name: "append",
|
|
3706
3691
|
fn: O(() => [
|
|
3707
|
-
|
|
3692
|
+
C(R.$slots, "append")
|
|
3708
3693
|
]),
|
|
3709
3694
|
key: "2"
|
|
3710
3695
|
} : void 0,
|
|
3711
|
-
|
|
3696
|
+
R.$slots["prepend-inner"] ? {
|
|
3712
3697
|
name: "prepend-inner",
|
|
3713
3698
|
fn: O(() => [
|
|
3714
|
-
|
|
3699
|
+
C(R.$slots, "prepend-inner")
|
|
3715
3700
|
]),
|
|
3716
3701
|
key: "3"
|
|
3717
3702
|
} : void 0,
|
|
3718
|
-
|
|
3703
|
+
R.$slots["append-inner"] ? {
|
|
3719
3704
|
name: "append-inner",
|
|
3720
3705
|
fn: O(() => [
|
|
3721
|
-
|
|
3706
|
+
C(R.$slots, "append-inner")
|
|
3722
3707
|
]),
|
|
3723
3708
|
key: "4"
|
|
3724
3709
|
} : void 0,
|
|
3725
|
-
|
|
3710
|
+
R.$slots["selected-item"] ? {
|
|
3726
3711
|
name: "selected-item",
|
|
3727
|
-
fn: O((
|
|
3728
|
-
|
|
3712
|
+
fn: O((ie) => [
|
|
3713
|
+
C(R.$slots, "selected-item", Te(Re(ie)))
|
|
3729
3714
|
]),
|
|
3730
3715
|
key: "5"
|
|
3731
3716
|
} : void 0,
|
|
3732
|
-
|
|
3717
|
+
R.$slots.error ? {
|
|
3733
3718
|
name: "error",
|
|
3734
3719
|
fn: O(() => [
|
|
3735
|
-
|
|
3720
|
+
C(R.$slots, "error")
|
|
3736
3721
|
]),
|
|
3737
3722
|
key: "6"
|
|
3738
3723
|
} : void 0,
|
|
3739
|
-
|
|
3724
|
+
R.$slots.hint ? {
|
|
3740
3725
|
name: "hint",
|
|
3741
3726
|
fn: O(() => [
|
|
3742
|
-
|
|
3727
|
+
C(R.$slots, "hint")
|
|
3743
3728
|
]),
|
|
3744
3729
|
key: "7"
|
|
3745
3730
|
} : void 0
|
|
3746
3731
|
]), 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"]),
|
|
3747
|
-
|
|
3732
|
+
x(Po, ne({
|
|
3748
3733
|
ref_key: "selectDropdownRef",
|
|
3749
|
-
ref:
|
|
3750
|
-
"is-opened": r(
|
|
3734
|
+
ref: P,
|
|
3735
|
+
"is-opened": r(M),
|
|
3751
3736
|
"listbox-id": p.value
|
|
3752
3737
|
}, { ariaLabel: e.label || e.name }, {
|
|
3753
|
-
"dropdown-style": r(
|
|
3738
|
+
"dropdown-style": r(E),
|
|
3754
3739
|
searchable: e.searchable,
|
|
3755
|
-
"option-scope": r(
|
|
3756
|
-
"list-loading": r(
|
|
3757
|
-
"options-list-length": r(
|
|
3758
|
-
"has-next-page": r(
|
|
3759
|
-
"dropdown-toggle-ref":
|
|
3760
|
-
onInput: r(
|
|
3740
|
+
"option-scope": r(Be),
|
|
3741
|
+
"list-loading": r(A).loading.value || r(A).searchLoading.value,
|
|
3742
|
+
"options-list-length": r(A).displayItems.value.length,
|
|
3743
|
+
"has-next-page": r(A).hasMore.value,
|
|
3744
|
+
"dropdown-toggle-ref": k.value?.toggleRef ?? null,
|
|
3745
|
+
onInput: r(A).onInput,
|
|
3761
3746
|
onClickOutside: tn
|
|
3762
|
-
}),
|
|
3763
|
-
|
|
3747
|
+
}), re({ _: 2 }, [
|
|
3748
|
+
R.$slots.option ? {
|
|
3764
3749
|
name: "option",
|
|
3765
|
-
fn: O((
|
|
3766
|
-
|
|
3750
|
+
fn: O((ie) => [
|
|
3751
|
+
C(R.$slots, "option", Te(Re(ie)))
|
|
3767
3752
|
]),
|
|
3768
3753
|
key: "0"
|
|
3769
3754
|
} : void 0,
|
|
3770
|
-
|
|
3755
|
+
R.$slots["no-options"] ? {
|
|
3771
3756
|
name: "no-options",
|
|
3772
3757
|
fn: O(() => [
|
|
3773
|
-
|
|
3758
|
+
C(R.$slots, "no-options")
|
|
3774
3759
|
]),
|
|
3775
3760
|
key: "1"
|
|
3776
3761
|
} : void 0
|
|
@@ -3781,7 +3766,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3781
3766
|
}), Uo = {
|
|
3782
3767
|
key: 0,
|
|
3783
3768
|
class: "vc-input-dropdown vc-input-dropdown--skeleton"
|
|
3784
|
-
}, Ko = { class: "tw-flex tw-items-center" }, Wo = ["aria-label", "aria-expanded", "onClick", "onKeydown"], jo = /* @__PURE__ */
|
|
3769
|
+
}, Ko = { class: "tw-flex tw-items-center" }, Wo = ["aria-label", "aria-expanded", "onClick", "onKeydown"], jo = /* @__PURE__ */ V({
|
|
3785
3770
|
__name: "vc-input-dropdown",
|
|
3786
3771
|
props: {
|
|
3787
3772
|
modelValue: {},
|
|
@@ -3814,20 +3799,20 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3814
3799
|
},
|
|
3815
3800
|
emits: ["update:model-value", "update:option", "change", "blur"],
|
|
3816
3801
|
setup(e) {
|
|
3817
|
-
const t =
|
|
3818
|
-
return (n, a) => r(t) ? (
|
|
3819
|
-
e.label ? (
|
|
3802
|
+
const t = $e();
|
|
3803
|
+
return (n, a) => r(t) ? (v(), y("div", Uo, [
|
|
3804
|
+
e.label ? (v(), N(r(oe), {
|
|
3820
3805
|
key: 0,
|
|
3821
3806
|
variant: "block",
|
|
3822
3807
|
width: 60 + (e.label?.length || 0) * 4,
|
|
3823
3808
|
height: 11
|
|
3824
3809
|
}, null, 8, ["width"])) : w("", !0),
|
|
3825
|
-
|
|
3810
|
+
x(r(oe), {
|
|
3826
3811
|
variant: "block",
|
|
3827
3812
|
width: "100%",
|
|
3828
3813
|
height: 36
|
|
3829
3814
|
})
|
|
3830
|
-
])) : (
|
|
3815
|
+
])) : (v(), N(r(qo), {
|
|
3831
3816
|
key: 1,
|
|
3832
3817
|
class: "vc-input-dropdown",
|
|
3833
3818
|
options: e.options,
|
|
@@ -3845,10 +3830,10 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3845
3830
|
"onUpdate:modelValue": a[2] || (a[2] = (o) => n.$emit("update:option", o))
|
|
3846
3831
|
}, {
|
|
3847
3832
|
option: O((o) => [
|
|
3848
|
-
|
|
3833
|
+
C(n.$slots, "option", Te(Re(o)))
|
|
3849
3834
|
]),
|
|
3850
3835
|
control: O(({ toggleHandler: o, isOpened: i }) => [
|
|
3851
|
-
|
|
3836
|
+
x(r(gt), {
|
|
3852
3837
|
placeholder: e.placeholder,
|
|
3853
3838
|
hint: e.hint,
|
|
3854
3839
|
clearable: e.clearable,
|
|
@@ -3867,11 +3852,11 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3867
3852
|
class: "vc-input-dropdown__input",
|
|
3868
3853
|
"onUpdate:modelValue": a[0] || (a[0] = (l) => n.$emit("update:model-value", l)),
|
|
3869
3854
|
onBlur: a[1] || (a[1] = (l) => n.$emit("blur", l))
|
|
3870
|
-
},
|
|
3855
|
+
}, re({
|
|
3871
3856
|
"append-inner": O(() => [
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
e.options && e.options.length ? (
|
|
3857
|
+
L("div", Ko, [
|
|
3858
|
+
C(n.$slots, "button", { toggleHandler: o }, () => [
|
|
3859
|
+
e.options && e.options.length ? (v(), y("button", {
|
|
3875
3860
|
key: 0,
|
|
3876
3861
|
type: "button",
|
|
3877
3862
|
class: "vc-input-dropdown__toggle-button",
|
|
@@ -3879,52 +3864,52 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3879
3864
|
"aria-label": n.$t("COMPONENTS.CONTROLS.SELECT_OPTION"),
|
|
3880
3865
|
"aria-expanded": i,
|
|
3881
3866
|
"aria-haspopup": "listbox",
|
|
3882
|
-
onClick:
|
|
3867
|
+
onClick: G(o, ["stop", "prevent"]),
|
|
3883
3868
|
onKeydown: [
|
|
3884
|
-
|
|
3885
|
-
|
|
3869
|
+
Z(G(o, ["stop", "prevent"]), ["enter"]),
|
|
3870
|
+
Z(G(o, ["stop", "prevent"]), ["space"])
|
|
3886
3871
|
]
|
|
3887
|
-
},
|
|
3872
|
+
}, T(r(e.option)), 41, Wo)) : w("", !0)
|
|
3888
3873
|
]),
|
|
3889
|
-
e.options && e.options.length ? (
|
|
3874
|
+
e.options && e.options.length ? (v(), N(r(Ra), {
|
|
3890
3875
|
key: 0,
|
|
3891
3876
|
icon: i ? "lucide-chevron-up" : "lucide-chevron-down",
|
|
3892
3877
|
"icon-size": "s",
|
|
3893
3878
|
text: "",
|
|
3894
3879
|
"aria-label": n.$t("COMPONENTS.CONTROLS.TOGGLE_DROPDOWN"),
|
|
3895
3880
|
"icon-class": "vc-input-dropdown__toggle-button-icon",
|
|
3896
|
-
onClick:
|
|
3881
|
+
onClick: G(o, ["stop", "prevent"])
|
|
3897
3882
|
}, null, 8, ["icon", "aria-label", "onClick"])) : w("", !0)
|
|
3898
3883
|
]),
|
|
3899
|
-
n.$slots["append-inner"] ?
|
|
3884
|
+
n.$slots["append-inner"] ? C(n.$slots, "append-inner", { key: 0 }) : w("", !0)
|
|
3900
3885
|
]),
|
|
3901
3886
|
_: 2
|
|
3902
3887
|
}, [
|
|
3903
3888
|
n.$slots.control ? {
|
|
3904
3889
|
name: "control",
|
|
3905
3890
|
fn: O((l) => [
|
|
3906
|
-
|
|
3891
|
+
C(n.$slots, "control", Te(Re(l)))
|
|
3907
3892
|
]),
|
|
3908
3893
|
key: "0"
|
|
3909
3894
|
} : void 0,
|
|
3910
3895
|
n.$slots["prepend-inner"] ? {
|
|
3911
3896
|
name: "prepend-inner",
|
|
3912
3897
|
fn: O(() => [
|
|
3913
|
-
|
|
3898
|
+
C(n.$slots, "prepend-inner")
|
|
3914
3899
|
]),
|
|
3915
3900
|
key: "1"
|
|
3916
3901
|
} : void 0,
|
|
3917
3902
|
n.$slots.append ? {
|
|
3918
3903
|
name: "append",
|
|
3919
3904
|
fn: O(() => [
|
|
3920
|
-
|
|
3905
|
+
C(n.$slots, "append")
|
|
3921
3906
|
]),
|
|
3922
3907
|
key: "2"
|
|
3923
3908
|
} : void 0,
|
|
3924
3909
|
n.$slots.prepend ? {
|
|
3925
3910
|
name: "prepend",
|
|
3926
3911
|
fn: O(() => [
|
|
3927
|
-
|
|
3912
|
+
C(n.$slots, "prepend")
|
|
3928
3913
|
]),
|
|
3929
3914
|
key: "3"
|
|
3930
3915
|
} : void 0
|
|
@@ -3936,7 +3921,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3936
3921
|
}), Ho = {
|
|
3937
3922
|
key: 0,
|
|
3938
3923
|
class: "vc-input-currency vc-input-currency--skeleton"
|
|
3939
|
-
}, Go = ["disabled", "placeholder", "aria-label"], Yo = /* @__PURE__ */
|
|
3924
|
+
}, Go = ["disabled", "placeholder", "aria-label"], Yo = /* @__PURE__ */ V({
|
|
3940
3925
|
__name: "vc-input-currency",
|
|
3941
3926
|
props: {
|
|
3942
3927
|
modelValue: {},
|
|
@@ -3966,7 +3951,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3966
3951
|
},
|
|
3967
3952
|
emits: ["update:model-value", "update:option", "change", "blur"],
|
|
3968
3953
|
setup(e, { emit: t }) {
|
|
3969
|
-
const n = e, a = t, o =
|
|
3954
|
+
const n = e, a = t, o = $e(), { inputRef: i, setOptions: l, numberValue: s, setValue: u } = Dn(
|
|
3970
3955
|
{
|
|
3971
3956
|
locale: navigator.language,
|
|
3972
3957
|
currency: n.option || "USD",
|
|
@@ -3977,7 +3962,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3977
3962
|
hideNegligibleDecimalDigitsOnFocus: !1
|
|
3978
3963
|
}
|
|
3979
3964
|
);
|
|
3980
|
-
|
|
3965
|
+
H(
|
|
3981
3966
|
() => n.option,
|
|
3982
3967
|
(c) => {
|
|
3983
3968
|
c && l({
|
|
@@ -3990,15 +3975,15 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3990
3975
|
hideNegligibleDecimalDigitsOnFocus: !1
|
|
3991
3976
|
});
|
|
3992
3977
|
}
|
|
3993
|
-
),
|
|
3978
|
+
), H(
|
|
3994
3979
|
() => n.modelValue,
|
|
3995
3980
|
(c) => {
|
|
3996
3981
|
u(c);
|
|
3997
3982
|
}
|
|
3998
|
-
),
|
|
3983
|
+
), H(s, (c) => {
|
|
3999
3984
|
a("update:model-value", c);
|
|
4000
3985
|
});
|
|
4001
|
-
function
|
|
3986
|
+
function f(c) {
|
|
4002
3987
|
i.value && (i.value.value = c), s.value = typeof c == "number" ? c : c === null ? null : parseFloat(String(c)) || null, a("update:model-value", s.value);
|
|
4003
3988
|
}
|
|
4004
3989
|
function m(c) {
|
|
@@ -4017,19 +4002,19 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
4017
4002
|
const b = c.clipboardData?.getData("text/plain");
|
|
4018
4003
|
typeof b < "u" && parseInt(b) < 0 && c.preventDefault();
|
|
4019
4004
|
}
|
|
4020
|
-
return (c, b) => r(o) ? (
|
|
4021
|
-
e.label ? (
|
|
4005
|
+
return (c, b) => r(o) ? (v(), y("div", Ho, [
|
|
4006
|
+
e.label ? (v(), N(r(oe), {
|
|
4022
4007
|
key: 0,
|
|
4023
4008
|
variant: "block",
|
|
4024
4009
|
width: 60 + (e.label?.length || 0) * 4,
|
|
4025
4010
|
height: 11
|
|
4026
4011
|
}, null, 8, ["width"])) : w("", !0),
|
|
4027
|
-
|
|
4012
|
+
x(r(oe), {
|
|
4028
4013
|
variant: "block",
|
|
4029
4014
|
width: "100%",
|
|
4030
4015
|
height: 36
|
|
4031
4016
|
})
|
|
4032
|
-
])) : (
|
|
4017
|
+
])) : (v(), N(r(jo), {
|
|
4033
4018
|
key: 1,
|
|
4034
4019
|
class: "vc-input-currency",
|
|
4035
4020
|
options: e.options,
|
|
@@ -4055,12 +4040,12 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
4055
4040
|
"error-message": e.errorMessage,
|
|
4056
4041
|
maxlength: e.maxlength,
|
|
4057
4042
|
"input-type": "number",
|
|
4058
|
-
"onUpdate:modelValue":
|
|
4043
|
+
"onUpdate:modelValue": f,
|
|
4059
4044
|
"onUpdate:option": b[0] || (b[0] = (h) => c.$emit("update:option", h)),
|
|
4060
4045
|
onBlur: m
|
|
4061
4046
|
}, {
|
|
4062
4047
|
control: O(({ placeholder: h }) => [
|
|
4063
|
-
|
|
4048
|
+
L("input", {
|
|
4064
4049
|
ref_key: "inputRef",
|
|
4065
4050
|
ref: i,
|
|
4066
4051
|
type: "text",
|
|
@@ -4077,7 +4062,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
4077
4062
|
_: 1
|
|
4078
4063
|
}, 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"]));
|
|
4079
4064
|
}
|
|
4080
|
-
}),
|
|
4065
|
+
}), jt = Symbol("VcAppBarState"), Jo = {
|
|
4081
4066
|
activeWidgetId: I(null),
|
|
4082
4067
|
activeMobileActionId: I(null)
|
|
4083
4068
|
};
|
|
@@ -4086,17 +4071,17 @@ function hr() {
|
|
|
4086
4071
|
activeWidgetId: I(null),
|
|
4087
4072
|
activeMobileActionId: I(null)
|
|
4088
4073
|
};
|
|
4089
|
-
return
|
|
4074
|
+
return $t(jt, e), e;
|
|
4090
4075
|
}
|
|
4091
4076
|
function kr() {
|
|
4092
|
-
return
|
|
4077
|
+
return Y(jt, Jo);
|
|
4093
4078
|
}
|
|
4094
4079
|
const Ir = Symbol("TableContext"), Xo = Symbol("ColumnCollector"), Sr = Symbol("FillerWidth"), $r = Symbol("IsColumnReordering"), wr = (e, t) => {
|
|
4095
4080
|
const n = e.__vccOpts || e;
|
|
4096
4081
|
for (const [a, o] of t)
|
|
4097
4082
|
n[a] = o;
|
|
4098
4083
|
return n;
|
|
4099
|
-
}, Or =
|
|
4084
|
+
}, Or = V({
|
|
4100
4085
|
name: "VcColumn",
|
|
4101
4086
|
inheritAttrs: !1,
|
|
4102
4087
|
props: {
|
|
@@ -4274,33 +4259,33 @@ const Ir = Symbol("TableContext"), Xo = Symbol("ColumnCollector"), Sr = Symbol("
|
|
|
4274
4259
|
}
|
|
4275
4260
|
},
|
|
4276
4261
|
setup(e, { slots: t }) {
|
|
4277
|
-
const n =
|
|
4278
|
-
return
|
|
4262
|
+
const n = Y(Xo, null), a = qe();
|
|
4263
|
+
return Ue(() => {
|
|
4279
4264
|
n && a && n.add({
|
|
4280
4265
|
instance: a,
|
|
4281
4266
|
props: e,
|
|
4282
4267
|
slots: t
|
|
4283
4268
|
});
|
|
4284
|
-
}),
|
|
4269
|
+
}), Ot(() => {
|
|
4285
4270
|
n && a && n.delete(a);
|
|
4286
4271
|
}), () => null;
|
|
4287
4272
|
}
|
|
4288
|
-
}),
|
|
4289
|
-
function
|
|
4273
|
+
}), we = _e(/* @__PURE__ */ new Map());
|
|
4274
|
+
function Ht() {
|
|
4290
4275
|
return {
|
|
4291
4276
|
register: (l) => {
|
|
4292
|
-
|
|
4277
|
+
we.set(l.type, l);
|
|
4293
4278
|
},
|
|
4294
|
-
get: (l) =>
|
|
4295
|
-
has: (l) =>
|
|
4296
|
-
getRegisteredTypes: () => Array.from(
|
|
4297
|
-
unregister: (l) =>
|
|
4279
|
+
get: (l) => we.get(l),
|
|
4280
|
+
has: (l) => we.has(l),
|
|
4281
|
+
getRegisteredTypes: () => Array.from(we.keys()),
|
|
4282
|
+
unregister: (l) => we.delete(l),
|
|
4298
4283
|
clear: () => {
|
|
4299
|
-
|
|
4284
|
+
we.clear();
|
|
4300
4285
|
}
|
|
4301
4286
|
};
|
|
4302
4287
|
}
|
|
4303
|
-
const Zo = { class: "vc-table-cell-editable__error-tooltip" },
|
|
4288
|
+
const Zo = { class: "vc-table-cell-editable__error-tooltip" }, mt = /* @__PURE__ */ V({
|
|
4304
4289
|
__name: "CellEditableWrapper",
|
|
4305
4290
|
props: {
|
|
4306
4291
|
label: {},
|
|
@@ -4311,10 +4296,10 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4311
4296
|
},
|
|
4312
4297
|
setup(e) {
|
|
4313
4298
|
const t = e, n = I(null);
|
|
4314
|
-
return
|
|
4299
|
+
return Ue(() => {
|
|
4315
4300
|
const a = t.modelValue === void 0 || t.modelValue === null || t.modelValue === "";
|
|
4316
4301
|
(t.validateOnMount || a && t.rules) && n.value?.validate();
|
|
4317
|
-
}), (a, o) => (
|
|
4302
|
+
}), (a, o) => (v(), N(r(wn), {
|
|
4318
4303
|
ref_key: "fieldRef",
|
|
4319
4304
|
ref: n,
|
|
4320
4305
|
label: e.label,
|
|
@@ -4323,9 +4308,9 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4323
4308
|
rules: e.rules
|
|
4324
4309
|
}, {
|
|
4325
4310
|
default: O(({ errors: i, errorMessage: l }) => [
|
|
4326
|
-
|
|
4311
|
+
x(Bt, { placement: "bottom" }, re({
|
|
4327
4312
|
default: O(() => [
|
|
4328
|
-
|
|
4313
|
+
C(a.$slots, "default", {
|
|
4329
4314
|
errors: i,
|
|
4330
4315
|
errorMessage: l
|
|
4331
4316
|
})
|
|
@@ -4335,7 +4320,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4335
4320
|
l ? {
|
|
4336
4321
|
name: "tooltip",
|
|
4337
4322
|
fn: O(() => [
|
|
4338
|
-
|
|
4323
|
+
L("div", Zo, T(l), 1)
|
|
4339
4324
|
]),
|
|
4340
4325
|
key: "0"
|
|
4341
4326
|
} : void 0
|
|
@@ -4347,7 +4332,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4347
4332
|
}), Qo = {
|
|
4348
4333
|
key: 1,
|
|
4349
4334
|
class: "vc-table-cell-default"
|
|
4350
|
-
},
|
|
4335
|
+
}, Gt = /* @__PURE__ */ V({
|
|
4351
4336
|
__name: "CellDefault",
|
|
4352
4337
|
props: {
|
|
4353
4338
|
value: {},
|
|
@@ -4361,10 +4346,10 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4361
4346
|
},
|
|
4362
4347
|
emits: ["update", "blur"],
|
|
4363
4348
|
setup(e, { emit: t }) {
|
|
4364
|
-
const n = e, a = t, { isMobile: o, isDesktop: i } =
|
|
4349
|
+
const n = e, a = t, { isMobile: o, isDesktop: i } = je(), l = (s) => {
|
|
4365
4350
|
s && s.length > 0 || a("blur", { row: n.rowIndex, field: n.fieldId || "" });
|
|
4366
4351
|
};
|
|
4367
|
-
return (s, u) => e.editable ? (
|
|
4352
|
+
return (s, u) => e.editable ? (v(), N(mt, {
|
|
4368
4353
|
key: 0,
|
|
4369
4354
|
label: e.label || "",
|
|
4370
4355
|
"field-name": e.fieldName || "",
|
|
@@ -4372,19 +4357,19 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4372
4357
|
rules: e.rules,
|
|
4373
4358
|
"validate-on-mount": e.validateOnMount
|
|
4374
4359
|
}, {
|
|
4375
|
-
default: O(({ errors:
|
|
4376
|
-
|
|
4360
|
+
default: O(({ errors: f, errorMessage: m }) => [
|
|
4361
|
+
x(gt, {
|
|
4377
4362
|
"model-value": e.value,
|
|
4378
4363
|
class: "vc-table-cell-default__input",
|
|
4379
|
-
error:
|
|
4364
|
+
error: f.length > 0,
|
|
4380
4365
|
"error-message": r(o) ? m : void 0,
|
|
4381
4366
|
"onUpdate:modelValue": u[0] || (u[0] = (g) => s.$emit("update", { field: e.fieldId || "", value: g })),
|
|
4382
|
-
onBlur: (g) => l(
|
|
4383
|
-
},
|
|
4384
|
-
r(i) &&
|
|
4367
|
+
onBlur: (g) => l(f)
|
|
4368
|
+
}, re({ _: 2 }, [
|
|
4369
|
+
r(i) && f.length > 0 ? {
|
|
4385
4370
|
name: "append-inner",
|
|
4386
4371
|
fn: O(() => [
|
|
4387
|
-
|
|
4372
|
+
x(r(K), {
|
|
4388
4373
|
icon: "lucide-circle-alert",
|
|
4389
4374
|
class: "vc-table-cell-default__error-icon"
|
|
4390
4375
|
})
|
|
@@ -4394,7 +4379,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4394
4379
|
]), 1032, ["model-value", "error", "error-message", "onBlur"])
|
|
4395
4380
|
]),
|
|
4396
4381
|
_: 1
|
|
4397
|
-
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : (
|
|
4382
|
+
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : (v(), y("span", Qo, T(e.value), 1));
|
|
4398
4383
|
}
|
|
4399
4384
|
}), _o = {
|
|
4400
4385
|
key: 1,
|
|
@@ -4402,7 +4387,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4402
4387
|
}, ei = {
|
|
4403
4388
|
key: 2,
|
|
4404
4389
|
class: "vc-table-cell-money vc-table-cell-money--not-set"
|
|
4405
|
-
}, ti = /* @__PURE__ */
|
|
4390
|
+
}, ti = /* @__PURE__ */ V({
|
|
4406
4391
|
__name: "CellMoney",
|
|
4407
4392
|
props: {
|
|
4408
4393
|
value: {},
|
|
@@ -4417,7 +4402,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4417
4402
|
},
|
|
4418
4403
|
emits: ["update", "blur"],
|
|
4419
4404
|
setup(e, { emit: t }) {
|
|
4420
|
-
const n = e, a = t, { t: o } =
|
|
4405
|
+
const n = e, a = t, { t: o } = Se({ useScope: "global" }), i = window.navigator.language, { isMobile: l, isDesktop: s } = je(), u = S(() => typeof n.value > "u" || n.value === null || Number(n.value) === 0), f = S(() => {
|
|
4421
4406
|
const g = Number(n.value);
|
|
4422
4407
|
return isNaN(g) ? String(n.value) : new Intl.NumberFormat(i, {
|
|
4423
4408
|
style: "currency",
|
|
@@ -4426,7 +4411,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4426
4411
|
}), m = (g) => {
|
|
4427
4412
|
g && g.length > 0 || a("blur", { row: n.rowIndex, field: n.fieldId || "" });
|
|
4428
4413
|
};
|
|
4429
|
-
return (g, d) => e.editable ? (
|
|
4414
|
+
return (g, d) => e.editable ? (v(), N(mt, {
|
|
4430
4415
|
key: 0,
|
|
4431
4416
|
label: e.label || "",
|
|
4432
4417
|
"field-name": e.fieldName || "",
|
|
@@ -4435,7 +4420,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4435
4420
|
"validate-on-mount": e.validateOnMount
|
|
4436
4421
|
}, {
|
|
4437
4422
|
default: O(({ errors: c, errorMessage: b }) => [
|
|
4438
|
-
|
|
4423
|
+
x(Yo, {
|
|
4439
4424
|
"model-value": e.value,
|
|
4440
4425
|
options: [],
|
|
4441
4426
|
option: e.currency || "USD",
|
|
@@ -4445,11 +4430,11 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4445
4430
|
"error-message": r(l) ? b : void 0,
|
|
4446
4431
|
"onUpdate:modelValue": d[0] || (d[0] = (h) => g.$emit("update", { field: e.fieldId || "", value: h })),
|
|
4447
4432
|
onBlur: (h) => m(c)
|
|
4448
|
-
},
|
|
4433
|
+
}, re({ _: 2 }, [
|
|
4449
4434
|
r(s) && c.length > 0 ? {
|
|
4450
4435
|
name: "append-inner",
|
|
4451
4436
|
fn: O(() => [
|
|
4452
|
-
|
|
4437
|
+
x(r(K), {
|
|
4453
4438
|
icon: "lucide-circle-alert",
|
|
4454
4439
|
class: "vc-table-cell-money__error-icon"
|
|
4455
4440
|
})
|
|
@@ -4459,7 +4444,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4459
4444
|
]), 1032, ["model-value", "option", "error", "error-message", "onBlur"])
|
|
4460
4445
|
]),
|
|
4461
4446
|
_: 1
|
|
4462
|
-
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : u.value ? (
|
|
4447
|
+
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : u.value ? (v(), y("span", ei, T(r(o)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1)) : (v(), y("span", _o, T(f.value), 1));
|
|
4463
4448
|
}
|
|
4464
4449
|
}), ni = {
|
|
4465
4450
|
key: 1,
|
|
@@ -4467,7 +4452,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4467
4452
|
}, ai = {
|
|
4468
4453
|
key: 2,
|
|
4469
4454
|
class: "vc-table-cell-number vc-table-cell-number--not-set"
|
|
4470
|
-
}, li = /* @__PURE__ */
|
|
4455
|
+
}, li = /* @__PURE__ */ V({
|
|
4471
4456
|
__name: "CellNumber",
|
|
4472
4457
|
props: {
|
|
4473
4458
|
value: {},
|
|
@@ -4481,17 +4466,17 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4481
4466
|
},
|
|
4482
4467
|
emits: ["update", "blur"],
|
|
4483
4468
|
setup(e, { emit: t }) {
|
|
4484
|
-
const n = e, a = t, { t: o } =
|
|
4469
|
+
const n = e, a = t, { t: o } = Se({ useScope: "global" }), { isMobile: i, isDesktop: l } = je(), s = S(() => {
|
|
4485
4470
|
if (n.value === null || n.value === void 0) return !0;
|
|
4486
4471
|
const m = Number(n.value);
|
|
4487
4472
|
return isNaN(m) || m < 0;
|
|
4488
|
-
}), u =
|
|
4473
|
+
}), u = S(() => {
|
|
4489
4474
|
const m = Number(n.value);
|
|
4490
4475
|
return isNaN(m) ? String(n.value) : m.toFixed(0);
|
|
4491
|
-
}),
|
|
4476
|
+
}), f = (m) => {
|
|
4492
4477
|
m && m.length > 0 || a("blur", { row: n.rowIndex, field: n.fieldId || "" });
|
|
4493
4478
|
};
|
|
4494
|
-
return (m, g) => e.editable ? (
|
|
4479
|
+
return (m, g) => e.editable ? (v(), N(mt, {
|
|
4495
4480
|
key: 0,
|
|
4496
4481
|
label: e.label || "",
|
|
4497
4482
|
"field-name": e.fieldName || "",
|
|
@@ -4500,19 +4485,19 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4500
4485
|
"validate-on-mount": e.validateOnMount
|
|
4501
4486
|
}, {
|
|
4502
4487
|
default: O(({ errors: d, errorMessage: c }) => [
|
|
4503
|
-
|
|
4488
|
+
x(gt, {
|
|
4504
4489
|
"model-value": e.value,
|
|
4505
4490
|
class: "vc-table-cell-number__input",
|
|
4506
4491
|
type: "number",
|
|
4507
4492
|
error: d.length > 0,
|
|
4508
4493
|
"error-message": r(i) ? c : void 0,
|
|
4509
4494
|
"onUpdate:modelValue": g[0] || (g[0] = (b) => m.$emit("update", { field: e.fieldId || "", value: b })),
|
|
4510
|
-
onBlur: (b) =>
|
|
4511
|
-
},
|
|
4495
|
+
onBlur: (b) => f(d)
|
|
4496
|
+
}, re({ _: 2 }, [
|
|
4512
4497
|
r(l) && d.length > 0 ? {
|
|
4513
4498
|
name: "append-inner",
|
|
4514
4499
|
fn: O(() => [
|
|
4515
|
-
|
|
4500
|
+
x(r(K), {
|
|
4516
4501
|
icon: "lucide-circle-alert",
|
|
4517
4502
|
class: "vc-table-cell-number__error-icon"
|
|
4518
4503
|
})
|
|
@@ -4522,7 +4507,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4522
4507
|
]), 1032, ["model-value", "error", "error-message", "onBlur"])
|
|
4523
4508
|
]),
|
|
4524
4509
|
_: 1
|
|
4525
|
-
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : s.value ? (
|
|
4510
|
+
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : s.value ? (v(), y("span", ai, T(r(o)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1)) : (v(), y("span", ni, T(u.value), 1));
|
|
4526
4511
|
}
|
|
4527
4512
|
}), oi = {
|
|
4528
4513
|
key: 0,
|
|
@@ -4530,7 +4515,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4530
4515
|
}, ii = {
|
|
4531
4516
|
key: 1,
|
|
4532
4517
|
class: "vc-table-cell-date vc-table-cell-date--not-set"
|
|
4533
|
-
},
|
|
4518
|
+
}, Ze = /* @__PURE__ */ V({
|
|
4534
4519
|
__name: "CellDate",
|
|
4535
4520
|
props: {
|
|
4536
4521
|
value: {},
|
|
@@ -4538,39 +4523,39 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4538
4523
|
format: {}
|
|
4539
4524
|
},
|
|
4540
4525
|
setup(e) {
|
|
4541
|
-
const t = e, { t: n } =
|
|
4526
|
+
const t = e, { t: n } = Se({ useScope: "global" }), a = window.navigator.language, o = S(() => {
|
|
4542
4527
|
if (!t.value) return "";
|
|
4543
4528
|
if (t.format)
|
|
4544
4529
|
return Zn(t.value, t.format, a);
|
|
4545
4530
|
const i = t.value instanceof Date ? t.value : new Date(t.value), l = t.variant || "date";
|
|
4546
4531
|
return l === "time" ? i.toLocaleTimeString(a) : l === "date-time" ? i.toLocaleString(a) : i.toLocaleDateString(a);
|
|
4547
4532
|
});
|
|
4548
|
-
return (i, l) => e.value ? (
|
|
4533
|
+
return (i, l) => e.value ? (v(), y("span", oi, T(o.value), 1)) : (v(), y("span", ii, T(r(n)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1));
|
|
4549
4534
|
}
|
|
4550
4535
|
}), ri = ["title"], si = {
|
|
4551
4536
|
key: 1,
|
|
4552
4537
|
class: "vc-table-cell-date-ago vc-table-cell-date-ago--not-set"
|
|
4553
|
-
}, ui = /* @__PURE__ */
|
|
4538
|
+
}, ui = /* @__PURE__ */ V({
|
|
4554
4539
|
__name: "CellDateAgo",
|
|
4555
4540
|
props: {
|
|
4556
4541
|
value: {}
|
|
4557
4542
|
},
|
|
4558
4543
|
setup(e) {
|
|
4559
|
-
const t = e, { t: n } =
|
|
4560
|
-
return (l, s) => e.value ? (
|
|
4544
|
+
const t = e, { t: n } = Se({ useScope: "global" }), a = window.navigator.language, o = S(() => t.value ? (t.value instanceof Date ? t.value : new Date(t.value)).toLocaleString(a) : ""), i = S(() => t.value ? Xn(t.value) : "");
|
|
4545
|
+
return (l, s) => e.value ? (v(), y("span", {
|
|
4561
4546
|
key: 0,
|
|
4562
4547
|
class: "vc-table-cell-date-ago",
|
|
4563
4548
|
title: o.value
|
|
4564
|
-
},
|
|
4549
|
+
}, T(i.value), 9, ri)) : (v(), y("span", si, T(r(n)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1));
|
|
4565
4550
|
}
|
|
4566
|
-
}), ci = /* @__PURE__ */
|
|
4551
|
+
}), ci = /* @__PURE__ */ V({
|
|
4567
4552
|
__name: "CellImage",
|
|
4568
4553
|
props: {
|
|
4569
4554
|
value: {},
|
|
4570
4555
|
emptyIcon: {}
|
|
4571
4556
|
},
|
|
4572
4557
|
setup(e) {
|
|
4573
|
-
return (t, n) => (
|
|
4558
|
+
return (t, n) => (v(), N(r(Ka), {
|
|
4574
4559
|
class: "vc-table-cell-image",
|
|
4575
4560
|
bordered: !0,
|
|
4576
4561
|
size: "s",
|
|
@@ -4581,46 +4566,46 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4581
4566
|
"thumbnail-size": "sm"
|
|
4582
4567
|
}, null, 8, ["src", "empty-icon"]));
|
|
4583
4568
|
}
|
|
4584
|
-
}), di = /* @__PURE__ */
|
|
4569
|
+
}), di = /* @__PURE__ */ V({
|
|
4585
4570
|
__name: "CellStatus",
|
|
4586
4571
|
props: {
|
|
4587
4572
|
value: {}
|
|
4588
4573
|
},
|
|
4589
4574
|
setup(e) {
|
|
4590
|
-
return (t, n) => (
|
|
4575
|
+
return (t, n) => (v(), N(r(tl), { class: "vc-table-cell-status" }, {
|
|
4591
4576
|
default: O(() => [
|
|
4592
|
-
|
|
4577
|
+
Q(T(e.value), 1)
|
|
4593
4578
|
]),
|
|
4594
4579
|
_: 1
|
|
4595
4580
|
}));
|
|
4596
4581
|
}
|
|
4597
|
-
}), fi = { class: "vc-table-cell-status-icon" }, vi = /* @__PURE__ */
|
|
4582
|
+
}), fi = { class: "vc-table-cell-status-icon" }, vi = /* @__PURE__ */ V({
|
|
4598
4583
|
__name: "CellStatusIcon",
|
|
4599
4584
|
props: {
|
|
4600
4585
|
value: {}
|
|
4601
4586
|
},
|
|
4602
4587
|
setup(e) {
|
|
4603
|
-
return (t, n) => (
|
|
4604
|
-
typeof e.value == "boolean" ? (
|
|
4588
|
+
return (t, n) => (v(), y("div", fi, [
|
|
4589
|
+
typeof e.value == "boolean" ? (v(), N(r(al), {
|
|
4605
4590
|
key: 0,
|
|
4606
4591
|
status: e.value
|
|
4607
4592
|
}, null, 8, ["status"])) : w("", !0)
|
|
4608
4593
|
]));
|
|
4609
4594
|
}
|
|
4610
|
-
}), gi = /* @__PURE__ */
|
|
4595
|
+
}), gi = /* @__PURE__ */ V({
|
|
4611
4596
|
__name: "CellLink",
|
|
4612
4597
|
props: {
|
|
4613
4598
|
value: {}
|
|
4614
4599
|
},
|
|
4615
4600
|
setup(e) {
|
|
4616
|
-
return (t, n) => (
|
|
4601
|
+
return (t, n) => (v(), N(r(Qa), { class: "vc-table-cell-link" }, {
|
|
4617
4602
|
default: O(() => [
|
|
4618
|
-
|
|
4603
|
+
Q(T(e.value), 1)
|
|
4619
4604
|
]),
|
|
4620
4605
|
_: 1
|
|
4621
4606
|
}));
|
|
4622
4607
|
}
|
|
4623
|
-
}), mi = ["innerHTML"], pi = 500, bi = /* @__PURE__ */
|
|
4608
|
+
}), mi = ["innerHTML"], pi = 500, bi = /* @__PURE__ */ V({
|
|
4624
4609
|
__name: "CellHtml",
|
|
4625
4610
|
props: {
|
|
4626
4611
|
value: {},
|
|
@@ -4631,7 +4616,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4631
4616
|
function a(l) {
|
|
4632
4617
|
if (n.has(l))
|
|
4633
4618
|
return n.get(l);
|
|
4634
|
-
const s =
|
|
4619
|
+
const s = Mt.sanitize(l, {
|
|
4635
4620
|
ALLOWED_TAGS: [
|
|
4636
4621
|
"p",
|
|
4637
4622
|
"br",
|
|
@@ -4673,33 +4658,33 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4673
4658
|
}
|
|
4674
4659
|
return n.set(l, s), s;
|
|
4675
4660
|
}
|
|
4676
|
-
const o =
|
|
4677
|
-
return (l, s) => (
|
|
4661
|
+
const o = S(() => t.value ? a(String(t.value)) : ""), i = S(() => Un(o.value, t.maxLength || 30));
|
|
4662
|
+
return (l, s) => (v(), y("div", {
|
|
4678
4663
|
class: "vc-table-cell-html",
|
|
4679
4664
|
innerHTML: i.value
|
|
4680
4665
|
}, null, 8, mi));
|
|
4681
4666
|
}
|
|
4682
|
-
}),
|
|
4683
|
-
{ type: "text", component:
|
|
4667
|
+
}), Yt = [
|
|
4668
|
+
{ type: "text", component: Gt, config: { editable: !0 } },
|
|
4684
4669
|
{ type: "number", component: li, config: { editable: !0 } },
|
|
4685
4670
|
{ type: "money", component: ti, config: { editable: !0 } },
|
|
4686
|
-
{ type: "date", component:
|
|
4687
|
-
{ type: "time", component:
|
|
4688
|
-
{ type: "datetime", component:
|
|
4671
|
+
{ type: "date", component: Ze, config: { editable: !1 } },
|
|
4672
|
+
{ type: "time", component: Ze, config: { editable: !1 } },
|
|
4673
|
+
{ type: "datetime", component: Ze, config: { editable: !1 } },
|
|
4689
4674
|
{ type: "date-ago", component: ui, config: { editable: !1 } },
|
|
4690
4675
|
{ type: "image", component: ci, config: { editable: !1 } },
|
|
4691
4676
|
{ type: "status", component: di, config: { editable: !1 } },
|
|
4692
4677
|
{ type: "status-icon", component: vi, config: { editable: !1 } },
|
|
4693
4678
|
{ type: "link", component: gi, config: { editable: !1 } },
|
|
4694
4679
|
{ type: "html", component: bi, config: { editable: !1 } }
|
|
4695
|
-
], Er = Object.freeze(
|
|
4680
|
+
], Er = Object.freeze(Yt.map((e) => e.type));
|
|
4696
4681
|
function yi() {
|
|
4697
|
-
const { register: e, has: t } =
|
|
4698
|
-
for (const n of
|
|
4682
|
+
const { register: e, has: t } = Ht();
|
|
4683
|
+
for (const n of Yt)
|
|
4699
4684
|
t(n.type) || e(n);
|
|
4700
4685
|
}
|
|
4701
4686
|
yi();
|
|
4702
|
-
const Lr = /* @__PURE__ */
|
|
4687
|
+
const Lr = /* @__PURE__ */ V({
|
|
4703
4688
|
__name: "DynamicCellRenderer",
|
|
4704
4689
|
props: {
|
|
4705
4690
|
type: {},
|
|
@@ -4717,18 +4702,18 @@ const Lr = /* @__PURE__ */ z({
|
|
|
4717
4702
|
},
|
|
4718
4703
|
emits: ["update", "blur"],
|
|
4719
4704
|
setup(e) {
|
|
4720
|
-
const { get: t } =
|
|
4705
|
+
const { get: t } = Ht(), n = e, a = S(() => t(n.type)?.component || Gt), o = S(() => {
|
|
4721
4706
|
const l = t(n.type)?.config?.editable ?? !1, s = {
|
|
4722
4707
|
value: n.value
|
|
4723
4708
|
};
|
|
4724
4709
|
return l && n.editable && (s.editable = n.editable, s.label = n.label, s.fieldName = n.fieldName, s.fieldId = n.fieldId, s.rules = n.rules, s.rowIndex = n.rowIndex, n.validateOnMount && (s.validateOnMount = !0)), n.type === "money" && n.currency && (s.currency = n.currency), (n.type === "date" || n.type === "time" || n.type === "datetime") && n.variant && (s.variant = n.variant), n.format && (s.format = n.format), s;
|
|
4725
4710
|
});
|
|
4726
|
-
return (i, l) => (
|
|
4711
|
+
return (i, l) => (v(), N(it(a.value), ne(o.value, {
|
|
4727
4712
|
onUpdate: l[0] || (l[0] = (s) => i.$emit("update", s)),
|
|
4728
4713
|
onBlur: l[1] || (l[1] = (s) => i.$emit("blur", s))
|
|
4729
4714
|
}), null, 16));
|
|
4730
4715
|
}
|
|
4731
|
-
}), Br =
|
|
4716
|
+
}), Br = V({
|
|
4732
4717
|
name: "SlotProxy",
|
|
4733
4718
|
props: {
|
|
4734
4719
|
slotFn: { type: Function, required: !0 },
|
|
@@ -4742,34 +4727,34 @@ const Lr = /* @__PURE__ */ z({
|
|
|
4742
4727
|
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"));
|
|
4743
4728
|
};
|
|
4744
4729
|
export {
|
|
4745
|
-
|
|
4730
|
+
zt as $,
|
|
4746
4731
|
Cr as A,
|
|
4747
4732
|
Er as B,
|
|
4748
4733
|
hr as C,
|
|
4749
4734
|
yi as D,
|
|
4750
4735
|
kr as E,
|
|
4751
|
-
|
|
4752
|
-
|
|
4736
|
+
$e as F,
|
|
4737
|
+
Ht as G,
|
|
4753
4738
|
ia as H,
|
|
4754
|
-
|
|
4739
|
+
Ke as I,
|
|
4755
4740
|
sa as J,
|
|
4756
4741
|
wr as K,
|
|
4757
4742
|
fr as L,
|
|
4758
4743
|
or as M,
|
|
4759
4744
|
aa as N,
|
|
4760
|
-
|
|
4745
|
+
st as O,
|
|
4761
4746
|
ue as P,
|
|
4762
|
-
|
|
4763
|
-
|
|
4747
|
+
Ie as Q,
|
|
4748
|
+
Pe as R,
|
|
4764
4749
|
er as S,
|
|
4765
4750
|
Kn as T,
|
|
4766
|
-
|
|
4767
|
-
|
|
4751
|
+
nt as U,
|
|
4752
|
+
ve as V,
|
|
4768
4753
|
la as W,
|
|
4769
|
-
|
|
4754
|
+
je as X,
|
|
4770
4755
|
ur as Y,
|
|
4771
4756
|
sr as Z,
|
|
4772
|
-
|
|
4757
|
+
Ze as _,
|
|
4773
4758
|
Ca as a,
|
|
4774
4759
|
Xo as a$,
|
|
4775
4760
|
gr as a0,
|
|
@@ -4779,9 +4764,9 @@ export {
|
|
|
4779
4764
|
wa as a4,
|
|
4780
4765
|
Oa as a5,
|
|
4781
4766
|
qi as a6,
|
|
4782
|
-
|
|
4767
|
+
pe as a7,
|
|
4783
4768
|
Ma as a8,
|
|
4784
|
-
|
|
4769
|
+
se as a9,
|
|
4785
4770
|
Qi as aA,
|
|
4786
4771
|
pr as aB,
|
|
4787
4772
|
ar as aC,
|
|
@@ -4792,7 +4777,7 @@ export {
|
|
|
4792
4777
|
Xi as aH,
|
|
4793
4778
|
Gi as aI,
|
|
4794
4779
|
Jn as aJ,
|
|
4795
|
-
|
|
4780
|
+
At as aK,
|
|
4796
4781
|
Yi as aL,
|
|
4797
4782
|
La as aM,
|
|
4798
4783
|
_i as aN,
|
|
@@ -4800,7 +4785,7 @@ export {
|
|
|
4800
4785
|
lr as aP,
|
|
4801
4786
|
Ki as aQ,
|
|
4802
4787
|
tr as aR,
|
|
4803
|
-
|
|
4788
|
+
Kt as aS,
|
|
4804
4789
|
yr as aT,
|
|
4805
4790
|
Xl as aU,
|
|
4806
4791
|
ra as aV,
|
|
@@ -4833,12 +4818,12 @@ export {
|
|
|
4833
4818
|
Wn as av,
|
|
4834
4819
|
ea as aw,
|
|
4835
4820
|
ua as ax,
|
|
4836
|
-
|
|
4821
|
+
yt as ay,
|
|
4837
4822
|
dr as az,
|
|
4838
4823
|
ui as b,
|
|
4839
4824
|
oa as b0,
|
|
4840
|
-
|
|
4841
|
-
|
|
4825
|
+
Gt as c,
|
|
4826
|
+
mt as d,
|
|
4842
4827
|
bi as e,
|
|
4843
4828
|
ci as f,
|
|
4844
4829
|
gi as g,
|
|
@@ -4851,14 +4836,14 @@ export {
|
|
|
4851
4836
|
Or as n,
|
|
4852
4837
|
Sl as o,
|
|
4853
4838
|
Ka as p,
|
|
4854
|
-
|
|
4839
|
+
gt as q,
|
|
4855
4840
|
Yo as r,
|
|
4856
4841
|
jo as s,
|
|
4857
|
-
|
|
4842
|
+
He as t,
|
|
4858
4843
|
Qa as u,
|
|
4859
4844
|
ol as v,
|
|
4860
4845
|
qo as w,
|
|
4861
|
-
|
|
4846
|
+
oe as x,
|
|
4862
4847
|
tl as y,
|
|
4863
4848
|
al as z
|
|
4864
4849
|
};
|