@vc-shell/framework 2.6.0-rc.1-pr367.f44c722 → 2.6.0-rc.1-pr367.69c6622
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-BR78HEnE.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-BR78HEnE.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-Cjmi5lAM.js} +465 -465
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-Cjmi5lAM.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-CYq_EvRc.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-CYq_EvRc.js.map} +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/framework.js +9 -9
- 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,30 +1,30 @@
|
|
|
1
|
-
import { mergeProps as ee, computed as $, toValue as
|
|
2
|
-
import { c as ge, 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
|
|
3
|
-
import { defineRule as
|
|
4
|
-
import { a as
|
|
5
|
-
import { a as
|
|
1
|
+
import { mergeProps as ee, computed as $, toValue as be, inject as Y, useId as an, ref as I, onBeforeUnmount as rt, reactive as Ze, provide as Et, getCurrentScope as ln, onScopeDispose as on, getCurrentInstance as We, onErrorCaptured as rn, nextTick as Se, defineComponent as z, watch as j, unref as r, openBlock as f, createElementBlock as y, normalizeClass as W, createBlock as P, createCommentVNode as w, renderSlot as T, createElementVNode as x, toDisplayString as A, Fragment as Le, renderList as st, normalizeStyle as Ve, resolveDynamicComponent as ut, withCtx as O, withKeys as X, withModifiers as G, createVNode as M, watchEffect as tt, shallowReactive as nt, markRaw as at, createSlots as oe, createTextVNode as Z, Transition as Pe, withDirectives as ct, vModelText as sn, useAttrs as Lt, vModelDynamic as un, onMounted as je, onUnmounted as Bt, Teleport as cn, normalizeProps as Ae, guardReactiveProps as Ne } from "vue";
|
|
2
|
+
import { c as ge, 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 Ct, b as hn, i as kn, _ as U, T as xt, a as Tt, V as In, w as Sn, u as $n } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-JB7OKRk6.js";
|
|
3
|
+
import { defineRule as Be, Field as wn } from "vee-validate";
|
|
4
|
+
import { a as kt } from "./vendor-vee-validate-rules-4oWUZPpG.js";
|
|
5
|
+
import { a as Rt, s as On, c as En, b as Qe, e as De } 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 Mt, e as Bn, f as Cn, g as xn } from "./vendor-vueuse-core-_wFDcFkI.js";
|
|
8
|
+
import { c as Tn, u as we } 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 At, s as Nt, o as lt, 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 Dt } from "./vendor-dompurify-DpIUMBYC.js";
|
|
18
|
+
import { S as Ie, 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 $e = 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 ot() {
|
|
28
28
|
return Math.random().toString(36).substring(2, 9);
|
|
29
29
|
}
|
|
30
30
|
class ie extends Error {
|
|
@@ -92,7 +92,7 @@ function Ki(e, t = "UNKNOWN_ERROR") {
|
|
|
92
92
|
stack: e.stack
|
|
93
93
|
}) : new ie(String(e), t);
|
|
94
94
|
}
|
|
95
|
-
class
|
|
95
|
+
class ye 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 qe(e) {
|
|
106
|
+
if (e instanceof ye)
|
|
107
107
|
return e;
|
|
108
108
|
if (jn(e)) {
|
|
109
109
|
const { status: t, response: n } = e;
|
|
110
110
|
try {
|
|
111
|
-
return
|
|
111
|
+
return qe(JSON.parse(n));
|
|
112
112
|
} catch {
|
|
113
113
|
const a = `${t}: ${e.message || "Error"}`;
|
|
114
|
-
return new
|
|
114
|
+
return new ye(a, n || e.message, e);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
if (e instanceof Error && "response" in e && e.response)
|
|
118
|
-
return
|
|
118
|
+
return qe(e.response);
|
|
119
119
|
if (e instanceof Error)
|
|
120
|
-
return new
|
|
120
|
+
return new ye(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 qe(t);
|
|
125
125
|
} catch {
|
|
126
|
-
return new
|
|
126
|
+
return new ye(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 ye(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 ye(n, a, e);
|
|
138
138
|
}
|
|
139
|
-
return new
|
|
139
|
+
return new ye("An unknown error occurred.", String(e), e);
|
|
140
140
|
}
|
|
141
141
|
const Hn = [
|
|
142
142
|
["LLLL", "PPPp"],
|
|
@@ -164,8 +164,8 @@ function Yn(e) {
|
|
|
164
164
|
return t;
|
|
165
165
|
}
|
|
166
166
|
const fe = /* @__PURE__ */ new Map();
|
|
167
|
-
fe.set("en-US",
|
|
168
|
-
fe.set("en",
|
|
167
|
+
fe.set("en-US", Ie);
|
|
168
|
+
fe.set("en", Ie);
|
|
169
169
|
async function Jn(e) {
|
|
170
170
|
if (fe.has(e))
|
|
171
171
|
return fe.get(e);
|
|
@@ -173,7 +173,7 @@ async function Jn(e) {
|
|
|
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] ??
|
|
176
|
+
), n = e.replace("-", ""), a = t.default ?? t[n] ?? Ie;
|
|
177
177
|
return fe.set(e, a), a;
|
|
178
178
|
} catch {
|
|
179
179
|
const t = e.split("-")[0];
|
|
@@ -182,32 +182,32 @@ 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] ??
|
|
185
|
+
), a = n.default ?? n[t] ?? Ie;
|
|
186
186
|
return fe.set(e, a), a;
|
|
187
187
|
} catch {
|
|
188
188
|
}
|
|
189
|
-
return fe.set(e,
|
|
189
|
+
return fe.set(e, Ie), Ie;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
function Dt(e) {
|
|
193
|
-
return fe.has(e) ? fe.get(e) : (Jn(e), Se);
|
|
194
|
-
}
|
|
195
192
|
function Vt(e) {
|
|
193
|
+
return fe.has(e) ? fe.get(e) : (Jn(e), Ie);
|
|
194
|
+
}
|
|
195
|
+
function Pt(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 = Pt(e);
|
|
203
203
|
if (!n) return "";
|
|
204
|
-
const a = t ?
|
|
204
|
+
const a = t ? Vt(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 = Pt(e);
|
|
209
209
|
if (!a) return "";
|
|
210
|
-
const o = Yn(t), i = n ?
|
|
210
|
+
const o = Yn(t), i = n ? Vt(n) : void 0;
|
|
211
211
|
return zn(a, o, { locale: i });
|
|
212
212
|
}
|
|
213
213
|
const Qn = ge("color-utils");
|
|
@@ -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 It(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 dt = () => {
|
|
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 } = dt();
|
|
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,28 +305,28 @@ function aa() {
|
|
|
305
305
|
hasAccess: t
|
|
306
306
|
};
|
|
307
307
|
}
|
|
308
|
-
const
|
|
308
|
+
const ke = ge("notification"), pe = na();
|
|
309
309
|
function la(e) {
|
|
310
310
|
pe.register(e);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function Fe(e, t) {
|
|
313
313
|
const n = pe.get();
|
|
314
314
|
if (!n) {
|
|
315
|
-
|
|
315
|
+
ke.debug("Backend not yet registered — notification call ignored.");
|
|
316
316
|
return;
|
|
317
317
|
}
|
|
318
318
|
return t = ee(
|
|
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 = ot()), 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) => Fe(e, { ...t, type: "default" });
|
|
327
|
+
ue.error = (e, t) => Fe(e, { ...t, type: "error" });
|
|
328
|
+
ue.warning = (e, t) => Fe(e, { ...t, type: "warning" });
|
|
329
|
+
ue.success = (e, t) => Fe(e, { ...t, type: "success" });
|
|
330
330
|
ue.clearAll = () => {
|
|
331
331
|
pe.get()?.actions.clear();
|
|
332
332
|
};
|
|
@@ -338,23 +338,23 @@ ue.update = (e, t) => {
|
|
|
338
338
|
const n = pe.get();
|
|
339
339
|
if (!n) return e;
|
|
340
340
|
if (!n.hasNotification(e))
|
|
341
|
-
return
|
|
341
|
+
return ke.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: ot(),
|
|
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), Fe(i, o);
|
|
354
354
|
} else {
|
|
355
355
|
const o = {
|
|
356
356
|
...t,
|
|
357
|
-
updateId:
|
|
357
|
+
updateId: ot(),
|
|
358
358
|
notificationId: e
|
|
359
359
|
};
|
|
360
360
|
return n.actions.update(o), e;
|
|
@@ -375,11 +375,11 @@ ue.clearPosition = (e) => {
|
|
|
375
375
|
ue.debug = () => {
|
|
376
376
|
const e = pe.get();
|
|
377
377
|
if (!e)
|
|
378
|
-
return
|
|
378
|
+
return ke.debug("Backend not registered"), { active: [], defaultOptions: {} };
|
|
379
379
|
Object.entries(e.defaultOptions).forEach(([n, a]) => {
|
|
380
|
-
|
|
380
|
+
ke.debug(`Default option ${n}: `, a);
|
|
381
381
|
}), Object.entries(e.actions).forEach(([n]) => {
|
|
382
|
-
|
|
382
|
+
ke.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
|
+
ke.debug(`Position ${n}: ${a.length} notifications`), a.forEach((o) => ke.debug(` - ${o.id} (${o.type}): ${o.content}`));
|
|
394
394
|
}), {
|
|
395
395
|
active: e.getAllNotifications(),
|
|
396
396
|
defaultOptions: e.defaultOptions
|
|
@@ -402,15 +402,15 @@ 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 = $(() => be(n.placement) ?? "bottom"), o = $(() => be(n.strategy) ?? "absolute"), i = $(() => {
|
|
406
|
+
const u = be(n.middleware);
|
|
407
407
|
if (u?.length)
|
|
408
408
|
return u;
|
|
409
409
|
const v = [];
|
|
410
|
-
|
|
411
|
-
const m =
|
|
412
|
-
return typeof m == "number" ? v.push(
|
|
413
|
-
|
|
410
|
+
be(n.enableFlip) !== !1 && v.push(At({ padding: n.shiftPadding ?? 8 })), be(n.enableShift) !== !1 && v.push(Nt({ padding: n.shiftPadding ?? 8 }));
|
|
411
|
+
const m = be(n.offset);
|
|
412
|
+
return typeof m == "number" ? v.push(lt(m)) : v.push(
|
|
413
|
+
lt({
|
|
414
414
|
mainAxis: m?.mainAxis ?? 0,
|
|
415
415
|
crossAxis: m?.crossAxis ?? 0,
|
|
416
416
|
alignmentAxis: m?.alignmentAxis
|
|
@@ -419,7 +419,7 @@ function ia(e, t, n = {}) {
|
|
|
419
419
|
}), l = Vn(e, t, {
|
|
420
420
|
placement: a,
|
|
421
421
|
strategy: o,
|
|
422
|
-
whileElementsMounted:
|
|
422
|
+
whileElementsMounted: be(n.autoUpdate) === !1 ? void 0 : Pn,
|
|
423
423
|
middleware: i
|
|
424
424
|
}), s = $(() => ({
|
|
425
425
|
position: o.value,
|
|
@@ -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 He(e) {
|
|
438
|
+
const t = Y(ra, null), n = an(), a = $(() => `vc-field-${n}`), o = $(() => `${a.value}-label`), i = $(() => `${a.value}-error`), l = $(() => `${a.value}-hint`), s = $(() => !!e.error || !!e.errorMessage || !!t?.invalid.value), u = $(() => !!e.disabled || !!t?.disabled.value), v = $(() => t?.name.value || e.name), m = $(() => e.required ? !0 : void 0), g = $(() => {
|
|
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
|
});
|
|
@@ -475,7 +475,7 @@ function sa(e, t = {}) {
|
|
|
475
475
|
function u() {
|
|
476
476
|
i !== null && (cancelAnimationFrame(i), i = null);
|
|
477
477
|
}
|
|
478
|
-
return
|
|
478
|
+
return Mt(e, l), rt(() => {
|
|
479
479
|
u();
|
|
480
480
|
}), {
|
|
481
481
|
canScrollUp: a,
|
|
@@ -485,11 +485,11 @@ function sa(e, t = {}) {
|
|
|
485
485
|
updateScrollState: l
|
|
486
486
|
};
|
|
487
487
|
}
|
|
488
|
-
function
|
|
489
|
-
return
|
|
488
|
+
function Oe() {
|
|
489
|
+
return Y(fn, I(!1));
|
|
490
490
|
}
|
|
491
|
-
Object.keys(
|
|
492
|
-
|
|
491
|
+
Object.keys(kt).forEach((e) => {
|
|
492
|
+
Be(e, kt[e]);
|
|
493
493
|
});
|
|
494
494
|
const ua = (e, [t, n]) => {
|
|
495
495
|
if (!e?.files || !e.files?.length)
|
|
@@ -503,13 +503,13 @@ const ua = (e, [t, n]) => {
|
|
|
503
503
|
}, g.onload = () => {
|
|
504
504
|
v.revokeObjectURL(d);
|
|
505
505
|
const c = g.width >= Number(s) && g.height >= Number(u);
|
|
506
|
-
m(c ? !0 :
|
|
506
|
+
m(c ? !0 : $e.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($e.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,28 +517,28 @@ const ua = (e, [t, n]) => {
|
|
|
517
517
|
return s === !1 || typeof s == "string" ? s : !0;
|
|
518
518
|
});
|
|
519
519
|
};
|
|
520
|
-
|
|
520
|
+
Be("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) ? $e.global.t("messages.file_weight", { size: t }) : !0;
|
|
528
528
|
};
|
|
529
|
-
|
|
530
|
-
const
|
|
529
|
+
Be("fileWeight", ca);
|
|
530
|
+
const Ft = (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
|
|
535
|
+
}, da = (e, [t]) => Ft(e, [t], (n, a) => n < a, $e.global.t("messages.before"));
|
|
536
|
+
Be("before", da);
|
|
537
|
+
const fa = (e, [t]) => Ft(e, [t], (n, a) => n > a, $e.global.t("messages.after"));
|
|
538
|
+
Be("after", fa);
|
|
539
|
+
const va = (e) => Number.isSafeInteger(parseInt(e)) ? !0 : $e.global.t("messages.bigint");
|
|
540
|
+
Be("bigint", va);
|
|
541
|
+
function Ce(e) {
|
|
542
542
|
const t = ge(`${e.name}-bus`), n = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set();
|
|
543
543
|
function o(d) {
|
|
544
544
|
const c = e.getKey(d);
|
|
@@ -598,8 +598,8 @@ function xe(e) {
|
|
|
598
598
|
}
|
|
599
599
|
};
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
const t =
|
|
601
|
+
function zt(e) {
|
|
602
|
+
const t = Ze({}), n = Ze([]), a = Ze(/* @__PURE__ */ new Map());
|
|
603
603
|
function o(d) {
|
|
604
604
|
a.set(d, (a.get(d) ?? 0) + 1);
|
|
605
605
|
}
|
|
@@ -680,7 +680,7 @@ function ga(e) {
|
|
|
680
680
|
unregister: o
|
|
681
681
|
};
|
|
682
682
|
}
|
|
683
|
-
function
|
|
683
|
+
function qt(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 Ke(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(Rt(e, "title"))}`;
|
|
696
696
|
}
|
|
697
|
-
const
|
|
697
|
+
const ze = I(/* @__PURE__ */ new Map()), ve = Ce({
|
|
698
698
|
name: "menu-service",
|
|
699
|
-
getKey:
|
|
699
|
+
getKey: Ke,
|
|
700
700
|
registerIntoService: (e, t) => e.addMenuItem(t)
|
|
701
701
|
});
|
|
702
702
|
function Hi(e) {
|
|
703
703
|
ve.preregister(e);
|
|
704
704
|
}
|
|
705
705
|
function Gi(e) {
|
|
706
|
-
ve.removePreregistered((t) =>
|
|
706
|
+
ve.removePreregistered((t) => ft(t, e)), ve.broadcast((t) => t.removeMenuItem(e));
|
|
707
707
|
}
|
|
708
708
|
function Yi(e, t) {
|
|
709
|
-
|
|
709
|
+
ze.value.set(e, t), ve.broadcast((n) => {
|
|
710
710
|
n.menuBadges.value.set(e, t);
|
|
711
711
|
});
|
|
712
712
|
}
|
|
713
713
|
function Ji(e) {
|
|
714
714
|
const t = ve.getFirstInstance();
|
|
715
|
-
return t ? t.menuBadges.value.get(e) :
|
|
715
|
+
return t ? t.menuBadges.value.get(e) : ze.value.get(e);
|
|
716
716
|
}
|
|
717
717
|
function Xi(e) {
|
|
718
|
-
|
|
718
|
+
ze.value.delete(e), ve.broadcast((t) => {
|
|
719
719
|
t.menuBadges.value.delete(e);
|
|
720
720
|
});
|
|
721
721
|
}
|
|
722
722
|
function Zi() {
|
|
723
|
-
return ve.getFirstInstance()?.menuBadges ??
|
|
723
|
+
return ve.getFirstInstance()?.menuBadges ?? ze;
|
|
724
724
|
}
|
|
725
|
-
const
|
|
726
|
-
function
|
|
727
|
-
return
|
|
725
|
+
const it = 1 / 0, ma = 1 / 0;
|
|
726
|
+
function ft(e, t) {
|
|
727
|
+
return Ke(e) === Ke(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 ?? it) - (t.priority ?? it);
|
|
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
|
+
...Rt(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) => ft(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 ?? it,
|
|
772
772
|
permissions: n.groupPermissions
|
|
773
773
|
});
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function St(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(Ke(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(ze.value));
|
|
793
793
|
function a(l) {
|
|
794
|
-
t.push(l), e.value =
|
|
794
|
+
t.push(l), e.value = St(t);
|
|
795
795
|
}
|
|
796
796
|
function o(l) {
|
|
797
797
|
const s = t.length;
|
|
798
|
-
t = t.filter((u) => !
|
|
798
|
+
t = t.filter((u) => !ft(u, l)), t.length !== s && (e.value = St(t));
|
|
799
799
|
}
|
|
800
800
|
const i = {
|
|
801
801
|
addMenuItem: a,
|
|
@@ -805,17 +805,17 @@ function Ia() {
|
|
|
805
805
|
};
|
|
806
806
|
return ve.replayInto(i), i;
|
|
807
807
|
}
|
|
808
|
-
function
|
|
808
|
+
function Ge(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
814
|
const v = n();
|
|
815
|
-
return
|
|
815
|
+
return Et(t, v), ln() && on(() => a.dispose(v)), v;
|
|
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,31 +825,31 @@ function He(e) {
|
|
|
825
825
|
use: s
|
|
826
826
|
};
|
|
827
827
|
}
|
|
828
|
-
const Sa = ge("use-menu-service"),
|
|
828
|
+
const Sa = ge("use-menu-service"), Ut = Ge({
|
|
829
829
|
key: vn,
|
|
830
830
|
create: Ia,
|
|
831
831
|
bus: ve,
|
|
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:", We())
|
|
834
834
|
});
|
|
835
835
|
function Qi() {
|
|
836
|
-
return
|
|
836
|
+
return Ut.provide();
|
|
837
837
|
}
|
|
838
838
|
function _i() {
|
|
839
|
-
return
|
|
839
|
+
return Ut.use();
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function Ye() {
|
|
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 } = dt(), 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) {
|
|
@@ -877,7 +877,7 @@ function Oa() {
|
|
|
877
877
|
}
|
|
878
878
|
const Ea = ge("use-error-handler");
|
|
879
879
|
function La(e) {
|
|
880
|
-
const t = I(null), n =
|
|
880
|
+
const t = I(null), n = We(), { appInsights: a } = Oa(), { user: o } = dt(), 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 = qe(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), Se(() => {
|
|
896
896
|
i.value = !1;
|
|
897
897
|
}), !e;
|
|
898
898
|
}), {
|
|
@@ -900,17 +900,17 @@ function La(e) {
|
|
|
900
900
|
reset: l
|
|
901
901
|
};
|
|
902
902
|
}
|
|
903
|
-
const
|
|
903
|
+
const Ue = /* @__PURE__ */ new WeakMap();
|
|
904
904
|
function er(e, t, n) {
|
|
905
|
-
|
|
905
|
+
Ue.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 = Ue.get(e), n = "originalError" in e && e.originalError && typeof e.originalError == "object" ? e.originalError : void 0, a = t ?? (n ? Ue.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
|
+
}), Ue.delete(o), !0;
|
|
914
914
|
}
|
|
915
915
|
return !1;
|
|
916
916
|
}
|
|
@@ -931,7 +931,7 @@ const tr = z({
|
|
|
931
931
|
}
|
|
932
932
|
},
|
|
933
933
|
setup(e, { slots: t }) {
|
|
934
|
-
const n =
|
|
934
|
+
const n = Y(Ct, void 0), a = Y(hn, void 0), o = !!(n && a), { error: i, reset: l } = La(o || e.capture);
|
|
935
935
|
return o && j(i, (s) => {
|
|
936
936
|
const u = n.value.id;
|
|
937
937
|
if (s) {
|
|
@@ -968,7 +968,7 @@ const tr = z({
|
|
|
968
968
|
const n = {
|
|
969
969
|
base: "default",
|
|
970
970
|
xs: "sm"
|
|
971
|
-
}, a = e, o =
|
|
971
|
+
}, a = e, o = Oe(), i = t, l = Y(Ca, null), s = $(() => {
|
|
972
972
|
const c = l?.size?.value ?? a.size;
|
|
973
973
|
return n[c] ?? c;
|
|
974
974
|
}), u = I(null), v = $(() => a.disabled || a.loading), m = I(!1);
|
|
@@ -1019,20 +1019,20 @@ const tr = z({
|
|
|
1019
1019
|
])) : w("", !0)
|
|
1020
1020
|
], 42, xa));
|
|
1021
1021
|
}
|
|
1022
|
-
}),
|
|
1022
|
+
}), vt = Ce({
|
|
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
|
+
vt.preregister({
|
|
1030
1030
|
bladeId: n,
|
|
1031
1031
|
toolbarItem: e
|
|
1032
1032
|
});
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1035
|
-
const e =
|
|
1034
|
+
function Kt() {
|
|
1035
|
+
const e = zt({
|
|
1036
1036
|
createRegistration: (s, u) => ({ bladeId: s, toolbarItem: u }),
|
|
1037
1037
|
getRegistrationBladeId: (s) => s.bladeId,
|
|
1038
1038
|
getRegistrationItemId: (s) => s.toolbarItem.id
|
|
@@ -1062,26 +1062,26 @@ function Ut() {
|
|
|
1062
1062
|
isToolbarItemRegistered: (s) => e.isRegistered(s),
|
|
1063
1063
|
updateToolbarItem: i
|
|
1064
1064
|
};
|
|
1065
|
-
return
|
|
1065
|
+
return vt.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 _e = null;
|
|
1069
|
+
const Aa = Ge({
|
|
1070
|
+
key: xt,
|
|
1071
|
+
create: Kt,
|
|
1072
|
+
bus: vt,
|
|
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(xt, null);
|
|
1080
|
+
!n && !_e && (_e = Kt());
|
|
1081
|
+
const a = n || _e;
|
|
1082
1082
|
if (!a)
|
|
1083
1083
|
throw new Error("Toolbar service is not available");
|
|
1084
|
-
const o =
|
|
1084
|
+
const o = Y(Ct, void 0), i = $(() => 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));
|
|
@@ -1090,7 +1090,7 @@ function lr(e = {}) {
|
|
|
1090
1090
|
}, m = (c) => a.getToolbarItems(l(c)), g = (c) => {
|
|
1091
1091
|
a.clearBladeToolbarItems(l(c));
|
|
1092
1092
|
};
|
|
1093
|
-
return
|
|
1093
|
+
return We() && t && rt(() => {
|
|
1094
1094
|
g();
|
|
1095
1095
|
}), {
|
|
1096
1096
|
registerToolbarItem: s,
|
|
@@ -1131,10 +1131,10 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1131
1131
|
"aria-label": e.ariaLabel
|
|
1132
1132
|
}, [
|
|
1133
1133
|
x("span", Da, A(e.ariaLabel), 1),
|
|
1134
|
-
(f(!0), y(
|
|
1134
|
+
(f(!0), y(Le, null, st(e.rows, (l) => (f(), y("div", {
|
|
1135
1135
|
key: l,
|
|
1136
1136
|
class: "vc-skeleton__row",
|
|
1137
|
-
style:
|
|
1137
|
+
style: Ve({
|
|
1138
1138
|
width: n(l)
|
|
1139
1139
|
}),
|
|
1140
1140
|
"aria-hidden": "true"
|
|
@@ -1142,7 +1142,7 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1142
1142
|
], 10, Na)) : (f(), 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: Ve({
|
|
1146
1146
|
width: a(e.width),
|
|
1147
1147
|
height: a(e.height)
|
|
1148
1148
|
}),
|
|
@@ -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 Mt(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, v) => (f(), P(
|
|
1176
|
+
}), (u, v) => (f(), P(ut(e.ariaLabel ? "section" : "div"), {
|
|
1177
1177
|
class: W([
|
|
1178
1178
|
"vc-container",
|
|
1179
1179
|
{
|
|
@@ -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: Ve(v.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
|
+
X(G(m, ["prevent"]), ["enter"]),
|
|
1295
|
+
X(G(m, ["prevent"]), ["space"])
|
|
1296
1296
|
]
|
|
1297
1297
|
}, [
|
|
1298
1298
|
e.src ? w("", !0) : (f(), y("div", Ua, [
|
|
1299
|
-
|
|
1299
|
+
M(r(U), {
|
|
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
|
+
}, Je = /* @__PURE__ */ z({
|
|
1318
1318
|
__name: "vc-label",
|
|
1319
1319
|
props: {
|
|
1320
1320
|
required: { type: Boolean },
|
|
@@ -1325,7 +1325,7 @@ 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) => (f(), P(
|
|
1328
|
+
return (t, n) => (f(), P(ut(e.htmlFor ? "label" : "div"), {
|
|
1329
1329
|
class: W(["vc-label", {
|
|
1330
1330
|
"vc-label--error": e.error
|
|
1331
1331
|
}]),
|
|
@@ -1339,12 +1339,12 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1339
1339
|
e.required ? (f(), y("span", Ha, "*")) : w("", !0)
|
|
1340
1340
|
]),
|
|
1341
1341
|
t.$slots.tooltip ? (f(), y("span", Ga, [
|
|
1342
|
-
|
|
1342
|
+
M(r(Tt), { placement: "top-start" }, {
|
|
1343
1343
|
tooltip: O(() => [
|
|
1344
1344
|
T(t.$slots, "tooltip")
|
|
1345
1345
|
]),
|
|
1346
1346
|
default: O(() => [
|
|
1347
|
-
|
|
1347
|
+
M(r(U), {
|
|
1348
1348
|
class: "vc-label__tooltip-icon",
|
|
1349
1349
|
icon: e.tooltipIcon,
|
|
1350
1350
|
size: "s"
|
|
@@ -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"], $t = 40, ol = /* @__PURE__ */ z({
|
|
1438
1438
|
__name: "vc-scrollable-container",
|
|
1439
1439
|
props: {
|
|
1440
1440
|
speed: { default: void 0 }
|
|
@@ -1448,7 +1448,7 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1448
1448
|
);
|
|
1449
1449
|
function m(g) {
|
|
1450
1450
|
if (!a.value) return;
|
|
1451
|
-
const d = g === "up" ?
|
|
1451
|
+
const d = g === "up" ? -$t : $t;
|
|
1452
1452
|
a.value.scrollBy({ top: d, behavior: "smooth" });
|
|
1453
1453
|
}
|
|
1454
1454
|
return t({
|
|
@@ -1467,7 +1467,7 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1467
1467
|
(...c) => r(u) && r(u)(...c))
|
|
1468
1468
|
}, [
|
|
1469
1469
|
T(g.$slots, "arrow-up", {}, () => [
|
|
1470
|
-
|
|
1470
|
+
M(r(U), {
|
|
1471
1471
|
icon: "lucide-chevron-up",
|
|
1472
1472
|
size: "xs"
|
|
1473
1473
|
})
|
|
@@ -1481,8 +1481,8 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1481
1481
|
onScroll: d[2] || (d[2] = //@ts-ignore
|
|
1482
1482
|
(...c) => r(v) && r(v)(...c)),
|
|
1483
1483
|
onKeydown: [
|
|
1484
|
-
d[3] || (d[3] =
|
|
1485
|
-
d[4] || (d[4] =
|
|
1484
|
+
d[3] || (d[3] = X(G((c) => m("up"), ["prevent"]), ["up"])),
|
|
1485
|
+
d[4] || (d[4] = X(G((c) => m("down"), ["prevent"]), ["down"]))
|
|
1486
1486
|
]
|
|
1487
1487
|
}, [
|
|
1488
1488
|
T(g.$slots, "default")
|
|
@@ -1495,7 +1495,7 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1495
1495
|
(...c) => r(u) && r(u)(...c))
|
|
1496
1496
|
}, [
|
|
1497
1497
|
T(g.$slots, "arrow-down", {}, () => [
|
|
1498
|
-
|
|
1498
|
+
M(r(U), {
|
|
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
|
+
}), gt = /* @__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
|
+
gt.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(gt.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(gt.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 Wt = Ce({
|
|
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
|
+
Wt.preregister({
|
|
1537
1537
|
bladeId: n,
|
|
1538
1538
|
widget: e
|
|
1539
1539
|
});
|
|
1540
1540
|
}
|
|
1541
1541
|
function sr() {
|
|
1542
|
-
const e =
|
|
1542
|
+
const e = zt({
|
|
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 Wt.replayInto(n), n;
|
|
1556
1556
|
}
|
|
1557
|
-
const cl = ge("use-theme"),
|
|
1557
|
+
const cl = ge("use-theme"), he = 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 } =
|
|
1561
|
+
const { t: e } = $e.global;
|
|
1562
1562
|
function t(v) {
|
|
1563
1563
|
(Array.isArray(v) ? v : [v]).forEach((m) => {
|
|
1564
|
-
|
|
1564
|
+
he.value.some((g) => g.key === m.key) || he.value.push(m);
|
|
1565
1565
|
});
|
|
1566
1566
|
}
|
|
1567
1567
|
function n(v) {
|
|
1568
1568
|
(Array.isArray(v) ? v : [v]).forEach((m) => {
|
|
1569
|
-
const g =
|
|
1570
|
-
g >= 0 &&
|
|
1569
|
+
const g = he.value.findIndex((d) => d.key === m);
|
|
1570
|
+
g >= 0 && he.value.splice(g, 1);
|
|
1571
1571
|
});
|
|
1572
1572
|
}
|
|
1573
|
-
const a = $(() =>
|
|
1573
|
+
const a = $(() => he.value.map((v) => v.key)), o = Bn({
|
|
1574
1574
|
attribute: "data-theme",
|
|
1575
1575
|
emitAuto: !0,
|
|
1576
1576
|
initialValue: "light",
|
|
@@ -1583,21 +1583,21 @@ const cl = ge("use-theme"), ke = I([
|
|
|
1583
1583
|
)
|
|
1584
1584
|
}
|
|
1585
1585
|
}), { state: i, next: l } = Cn(a, { initialValue: o });
|
|
1586
|
-
|
|
1586
|
+
tt(() => {
|
|
1587
1587
|
i.value && (o.value = i.value);
|
|
1588
1588
|
});
|
|
1589
1589
|
function s(v) {
|
|
1590
1590
|
a.value.includes(v) ? i.value = v : cl.warn(`Attempted to set an unregistered theme: ${v}`);
|
|
1591
1591
|
}
|
|
1592
1592
|
const u = $(() => {
|
|
1593
|
-
const v =
|
|
1594
|
-
return v ? v.localizationKey ? e(v.localizationKey) :
|
|
1593
|
+
const v = he.value.find((m) => m.key === i.value);
|
|
1594
|
+
return v ? v.localizationKey ? e(v.localizationKey) : Qe(v.key) : i.value ? Qe(i.value) : "";
|
|
1595
1595
|
});
|
|
1596
1596
|
return {
|
|
1597
1597
|
themes: $(
|
|
1598
|
-
() =>
|
|
1598
|
+
() => he.value.map((v) => ({
|
|
1599
1599
|
key: v.key,
|
|
1600
|
-
name: v.localizationKey ? e(v.localizationKey) :
|
|
1600
|
+
name: v.localizationKey ? e(v.localizationKey) : Qe(v.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
|
+
}), mt = Ce({
|
|
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
|
+
mt.preregister(e);
|
|
1617
1617
|
}
|
|
1618
1618
|
const dl = () => ({
|
|
1619
|
-
widgets:
|
|
1620
|
-
layout:
|
|
1619
|
+
widgets: nt(/* @__PURE__ */ new Map()),
|
|
1620
|
+
layout: nt(/* @__PURE__ */ new Map())
|
|
1621
1621
|
});
|
|
1622
1622
|
function fl(e = {}) {
|
|
1623
1623
|
const t = dl(), n = e.hasAccess ?? (() => !0), s = {
|
|
@@ -1644,11 +1644,11 @@ function fl(e = {}) {
|
|
|
1644
1644
|
},
|
|
1645
1645
|
getLayout: () => new Map(t.layout)
|
|
1646
1646
|
};
|
|
1647
|
-
return
|
|
1647
|
+
return mt.replayInto(s), s;
|
|
1648
1648
|
}
|
|
1649
|
-
const
|
|
1649
|
+
const wt = ge("use-dashboard"), jt = Ge({
|
|
1650
1650
|
key: In,
|
|
1651
|
-
bus:
|
|
1651
|
+
bus: mt,
|
|
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
|
+
wt.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: () => wt.error("Dashboard service not found")
|
|
1666
1666
|
});
|
|
1667
1667
|
function dr() {
|
|
1668
|
-
return
|
|
1668
|
+
return jt.provide();
|
|
1669
1669
|
}
|
|
1670
1670
|
function fr() {
|
|
1671
|
-
return
|
|
1671
|
+
return jt.use();
|
|
1672
1672
|
}
|
|
1673
|
-
const
|
|
1673
|
+
const Ht = Ce({
|
|
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
|
+
Ht.preregister(e);
|
|
1681
1681
|
}
|
|
1682
1682
|
function gr() {
|
|
1683
|
-
return
|
|
1684
|
-
bus:
|
|
1683
|
+
return qt({
|
|
1684
|
+
bus: Ht,
|
|
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" ? at(e.icon) : e.icon,
|
|
1690
|
+
component: e.component ? at(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 pt = Ce({
|
|
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
|
+
pt.preregister(e);
|
|
1708
1708
|
}
|
|
1709
1709
|
function vl() {
|
|
1710
|
-
return
|
|
1711
|
-
bus:
|
|
1710
|
+
return qt({
|
|
1711
|
+
bus: pt,
|
|
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: at(e.component),
|
|
1717
1717
|
props: e.props
|
|
1718
1718
|
}),
|
|
1719
1719
|
getId: (e) => e.id || ""
|
|
1720
1720
|
});
|
|
1721
1721
|
}
|
|
1722
|
-
const gl = ge("use-settings-menu"),
|
|
1722
|
+
const gl = ge("use-settings-menu"), Gt = Ge({
|
|
1723
1723
|
key: Sn,
|
|
1724
1724
|
create: vl,
|
|
1725
|
-
bus:
|
|
1725
|
+
bus: pt,
|
|
1726
1726
|
name: "SettingsMenuService",
|
|
1727
1727
|
onMissing: () => gl.error("Settings menu service not found")
|
|
1728
1728
|
});
|
|
1729
1729
|
function pr() {
|
|
1730
|
-
return
|
|
1730
|
+
return Gt.provide();
|
|
1731
1731
|
}
|
|
1732
1732
|
function br() {
|
|
1733
|
-
return
|
|
1733
|
+
return Gt.use();
|
|
1734
1734
|
}
|
|
1735
1735
|
const ml = {
|
|
1736
1736
|
key: 0,
|
|
@@ -1763,7 +1763,7 @@ const ml = {
|
|
|
1763
1763
|
},
|
|
1764
1764
|
emits: ["update:modelValue", "blur", "focus"],
|
|
1765
1765
|
setup(e, { emit: t }) {
|
|
1766
|
-
const n = e, a = t, o =
|
|
1766
|
+
const n = e, a = t, o = Oe(), { isMobile: i, isDesktop: l } = Ye(), { labelId: s, errorId: u, hintId: v, invalid: m, resolvedDisabled: g, ariaRequired: d, ariaDescribedBy: c } = He(n), b = I(!1), h = window.navigator.language, E = I(n.modelValue), p = I(null), S = $(() => n.type === "date" && "9999-12-31" || void 0), F = (() => {
|
|
1767
1767
|
const C = new Intl.DateTimeFormat(h, { hour: "numeric" }).format();
|
|
1768
1768
|
return Number.isInteger(Number(C));
|
|
1769
1769
|
})(), K = $(() => {
|
|
@@ -1789,7 +1789,7 @@ const ml = {
|
|
|
1789
1789
|
rangeSeparator: " - ",
|
|
1790
1790
|
...B
|
|
1791
1791
|
}, C;
|
|
1792
|
-
}),
|
|
1792
|
+
}), J = $(() => {
|
|
1793
1793
|
const C = n.datePickerOptions?.ariaLabels;
|
|
1794
1794
|
return n.label || !n.ariaLabel ? C : { ...C, input: n.ariaLabel };
|
|
1795
1795
|
}), re = (C) => {
|
|
@@ -1832,7 +1832,7 @@ const ml = {
|
|
|
1832
1832
|
width: 60 + (e.label?.length || 0) * 4,
|
|
1833
1833
|
height: 11
|
|
1834
1834
|
}, null, 8, ["width"])) : w("", !0),
|
|
1835
|
-
|
|
1835
|
+
M(r(ne), {
|
|
1836
1836
|
variant: "block",
|
|
1837
1837
|
width: "100%",
|
|
1838
1838
|
height: 36
|
|
@@ -1847,7 +1847,7 @@ const ml = {
|
|
|
1847
1847
|
}
|
|
1848
1848
|
]])
|
|
1849
1849
|
}, [
|
|
1850
|
-
e.label ? (f(), P(r(
|
|
1850
|
+
e.label ? (f(), P(r(Je), {
|
|
1851
1851
|
key: 0,
|
|
1852
1852
|
id: r(s),
|
|
1853
1853
|
class: "vc-date-picker__label",
|
|
@@ -1864,7 +1864,7 @@ const ml = {
|
|
|
1864
1864
|
e.tooltip ? {
|
|
1865
1865
|
name: "tooltip",
|
|
1866
1866
|
fn: O(() => [
|
|
1867
|
-
|
|
1867
|
+
Z(A(e.tooltip), 1)
|
|
1868
1868
|
]),
|
|
1869
1869
|
key: "0"
|
|
1870
1870
|
} : void 0
|
|
@@ -1877,7 +1877,7 @@ const ml = {
|
|
|
1877
1877
|
}, [
|
|
1878
1878
|
x("div", pl, [
|
|
1879
1879
|
x("div", bl, [
|
|
1880
|
-
|
|
1880
|
+
M(r(An), ee({
|
|
1881
1881
|
modelValue: E.value,
|
|
1882
1882
|
"onUpdate:modelValue": B[0] || (B[0] = (D) => E.value = D),
|
|
1883
1883
|
placeholder: e.placeholder || (e.type === "datetime-local" ? C.$t("COMPONENTS.MOLECULES.VC_INPUT.DATE_TIME_PLACEHOLDER") : C.$t("COMPONENTS.MOLECULES.VC_INPUT.DATE_PLACEHOLDER")),
|
|
@@ -1896,7 +1896,7 @@ const ml = {
|
|
|
1896
1896
|
"teleport-center": r(i),
|
|
1897
1897
|
is24: r(F)
|
|
1898
1898
|
}, _.value, {
|
|
1899
|
-
"aria-labels":
|
|
1899
|
+
"aria-labels": J.value,
|
|
1900
1900
|
teleport: r(l) ? "body" : void 0,
|
|
1901
1901
|
"aria-invalid": r(m) || void 0,
|
|
1902
1902
|
"aria-required": r(d),
|
|
@@ -1918,14 +1918,14 @@ const ml = {
|
|
|
1918
1918
|
"aria-label": C.$t("COMPONENTS.MOLECULES.VC_DATE_PICKER.CLEAR"),
|
|
1919
1919
|
onClick: ae
|
|
1920
1920
|
}, [
|
|
1921
|
-
|
|
1921
|
+
M(r(U), {
|
|
1922
1922
|
size: "xs",
|
|
1923
1923
|
icon: "lucide-x"
|
|
1924
1924
|
})
|
|
1925
1925
|
], 8, yl)) : w("", !0)
|
|
1926
1926
|
]),
|
|
1927
1927
|
e.loading ? (f(), y("div", hl, [
|
|
1928
|
-
|
|
1928
|
+
M(r(U), {
|
|
1929
1929
|
icon: "lucide-loader-2",
|
|
1930
1930
|
class: "vc-date-picker__loading-icon",
|
|
1931
1931
|
size: "m"
|
|
@@ -1933,19 +1933,19 @@ const ml = {
|
|
|
1933
1933
|
])) : w("", !0)
|
|
1934
1934
|
])
|
|
1935
1935
|
], 2),
|
|
1936
|
-
|
|
1936
|
+
M(Pe, {
|
|
1937
1937
|
name: "slide-up",
|
|
1938
1938
|
mode: "out-in"
|
|
1939
1939
|
}, {
|
|
1940
1940
|
default: O(() => [
|
|
1941
1941
|
r(m) && e.errorMessage ? (f(), y("div", kl, [
|
|
1942
|
-
|
|
1942
|
+
M(r(me), {
|
|
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
|
+
Z(A(e.errorMessage), 1)
|
|
1949
1949
|
]),
|
|
1950
1950
|
_: 1
|
|
1951
1951
|
}, 8, ["id"])
|
|
@@ -1956,7 +1956,7 @@ const ml = {
|
|
|
1956
1956
|
class: "vc-date-picker__desc"
|
|
1957
1957
|
}, {
|
|
1958
1958
|
default: O(() => [
|
|
1959
|
-
|
|
1959
|
+
Z(A(e.hint), 1)
|
|
1960
1960
|
]),
|
|
1961
1961
|
_: 1
|
|
1962
1962
|
}, 8, ["id"])) : w("", !0)
|
|
@@ -1995,7 +1995,7 @@ 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 = Oe(), o = e, i = n, {
|
|
1999
1999
|
fieldId: l,
|
|
2000
2000
|
labelId: s,
|
|
2001
2001
|
errorId: u,
|
|
@@ -2004,7 +2004,7 @@ const ml = {
|
|
|
2004
2004
|
resolvedDisabled: g,
|
|
2005
2005
|
ariaRequired: d,
|
|
2006
2006
|
ariaDescribedBy: c
|
|
2007
|
-
} =
|
|
2007
|
+
} = He(o), b = I(!1), h = I(!1), E = I(), p = I(), S = I(o.modelValue ?? ""), F = I("");
|
|
2008
2008
|
function K(q) {
|
|
2009
2009
|
if (!q || typeof q != "string") {
|
|
2010
2010
|
F.value = "";
|
|
@@ -2012,7 +2012,7 @@ const ml = {
|
|
|
2012
2012
|
}
|
|
2013
2013
|
const C = q.trim();
|
|
2014
2014
|
if (ea(C)) {
|
|
2015
|
-
F.value =
|
|
2015
|
+
F.value = It(C);
|
|
2016
2016
|
return;
|
|
2017
2017
|
}
|
|
2018
2018
|
const B = _n(C);
|
|
@@ -2021,7 +2021,7 @@ const ml = {
|
|
|
2021
2021
|
j(
|
|
2022
2022
|
() => o.modelValue,
|
|
2023
2023
|
(q) => {
|
|
2024
|
-
h.value || (h.value = !0, S.value = q ?? "",
|
|
2024
|
+
h.value || (h.value = !0, S.value = q ?? "", Se(() => {
|
|
2025
2025
|
K(q ?? ""), h.value = !1;
|
|
2026
2026
|
}));
|
|
2027
2027
|
},
|
|
@@ -2030,14 +2030,14 @@ const ml = {
|
|
|
2030
2030
|
q && p.value && (p.value.value = q);
|
|
2031
2031
|
});
|
|
2032
2032
|
function _() {
|
|
2033
|
-
h.value || (h.value = !0, i("update:modelValue", S.value || null),
|
|
2033
|
+
h.value || (h.value = !0, i("update:modelValue", S.value || null), Se(() => {
|
|
2034
2034
|
K(S.value), h.value = !1;
|
|
2035
2035
|
}));
|
|
2036
2036
|
}
|
|
2037
|
-
function
|
|
2037
|
+
function J(q) {
|
|
2038
2038
|
const C = q.target;
|
|
2039
2039
|
if (C?.value) {
|
|
2040
|
-
const B =
|
|
2040
|
+
const B = It(C.value);
|
|
2041
2041
|
F.value = B, S.value = B, i("update:modelValue", B);
|
|
2042
2042
|
}
|
|
2043
2043
|
}
|
|
@@ -2063,7 +2063,7 @@ const ml = {
|
|
|
2063
2063
|
width: 60 + (e.label?.length || 0) * 4,
|
|
2064
2064
|
height: 11
|
|
2065
2065
|
}, null, 8, ["width"])) : w("", !0),
|
|
2066
|
-
|
|
2066
|
+
M(r(ne), {
|
|
2067
2067
|
variant: "block",
|
|
2068
2068
|
width: "100%",
|
|
2069
2069
|
height: 36
|
|
@@ -2078,7 +2078,7 @@ const ml = {
|
|
|
2078
2078
|
}
|
|
2079
2079
|
]])
|
|
2080
2080
|
}, [
|
|
2081
|
-
e.label ? (f(), P(r(
|
|
2081
|
+
e.label ? (f(), P(r(Je), {
|
|
2082
2082
|
key: 0,
|
|
2083
2083
|
id: r(s),
|
|
2084
2084
|
"html-for": r(l),
|
|
@@ -2096,7 +2096,7 @@ const ml = {
|
|
|
2096
2096
|
e.tooltip ? {
|
|
2097
2097
|
name: "tooltip",
|
|
2098
2098
|
fn: O(() => [
|
|
2099
|
-
|
|
2099
|
+
Z(A(e.tooltip), 1)
|
|
2100
2100
|
]),
|
|
2101
2101
|
key: "0"
|
|
2102
2102
|
} : void 0
|
|
@@ -2109,7 +2109,7 @@ const ml = {
|
|
|
2109
2109
|
}, [
|
|
2110
2110
|
x("div", wl, [
|
|
2111
2111
|
x("div", Ol, [
|
|
2112
|
-
|
|
2112
|
+
ct(x("input", {
|
|
2113
2113
|
id: r(l),
|
|
2114
2114
|
ref_key: "inputRef",
|
|
2115
2115
|
ref: E,
|
|
@@ -2136,7 +2136,7 @@ const ml = {
|
|
|
2136
2136
|
x("button", {
|
|
2137
2137
|
type: "button",
|
|
2138
2138
|
class: "vc-color-input__color-square",
|
|
2139
|
-
style:
|
|
2139
|
+
style: Ve({ backgroundColor: F.value || "#ffffff" }),
|
|
2140
2140
|
"aria-label": `Pick color${F.value ? ": " + F.value : ""}`,
|
|
2141
2141
|
onClick: re
|
|
2142
2142
|
}, null, 12, Bl),
|
|
@@ -2148,7 +2148,7 @@ const ml = {
|
|
|
2148
2148
|
class: "vc-color-input__color-picker-hidden",
|
|
2149
2149
|
tabindex: "-1",
|
|
2150
2150
|
"aria-hidden": "true",
|
|
2151
|
-
onChange:
|
|
2151
|
+
onChange: J
|
|
2152
2152
|
}, null, 40, Cl)
|
|
2153
2153
|
]),
|
|
2154
2154
|
e.clearable && S.value && !e.disabled ? (f(), y("button", {
|
|
@@ -2158,14 +2158,14 @@ const ml = {
|
|
|
2158
2158
|
"aria-label": q.$t("COMPONENTS.MOLECULES.VC_COLOR_INPUT.CLEAR"),
|
|
2159
2159
|
onClick: ae
|
|
2160
2160
|
}, [
|
|
2161
|
-
|
|
2161
|
+
M(r(U), {
|
|
2162
2162
|
size: "xs",
|
|
2163
2163
|
icon: "lucide-x"
|
|
2164
2164
|
})
|
|
2165
2165
|
], 8, xl)) : w("", !0)
|
|
2166
2166
|
]),
|
|
2167
2167
|
e.loading ? (f(), y("div", Tl, [
|
|
2168
|
-
|
|
2168
|
+
M(r(U), {
|
|
2169
2169
|
icon: "lucide-loader-2",
|
|
2170
2170
|
class: "vc-color-input__loading-icon",
|
|
2171
2171
|
size: "m"
|
|
@@ -2173,19 +2173,19 @@ const ml = {
|
|
|
2173
2173
|
])) : w("", !0)
|
|
2174
2174
|
])
|
|
2175
2175
|
], 2),
|
|
2176
|
-
|
|
2176
|
+
M(Pe, {
|
|
2177
2177
|
name: "slide-up",
|
|
2178
2178
|
mode: "out-in"
|
|
2179
2179
|
}, {
|
|
2180
2180
|
default: O(() => [
|
|
2181
2181
|
r(m) && e.errorMessage ? (f(), y("div", Rl, [
|
|
2182
|
-
|
|
2182
|
+
M(r(me), {
|
|
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
|
+
Z(A(e.errorMessage), 1)
|
|
2189
2189
|
]),
|
|
2190
2190
|
_: 1
|
|
2191
2191
|
}, 8, ["id"])
|
|
@@ -2196,7 +2196,7 @@ const ml = {
|
|
|
2196
2196
|
class: "vc-color-input__desc"
|
|
2197
2197
|
}, {
|
|
2198
2198
|
default: O(() => [
|
|
2199
|
-
|
|
2199
|
+
Z(A(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 }, bt = /* @__PURE__ */ z({
|
|
2231
2231
|
inheritAttrs: !1,
|
|
2232
2232
|
__name: "vc-input",
|
|
2233
2233
|
props: {
|
|
@@ -2259,10 +2259,10 @@ 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: k, ...
|
|
2264
|
-
return
|
|
2265
|
-
}), i = t, l =
|
|
2262
|
+
const n = e, a = Lt(), o = $(() => {
|
|
2263
|
+
const { class: k, ...R } = a;
|
|
2264
|
+
return R;
|
|
2265
|
+
}), i = t, l = Oe(), {
|
|
2266
2266
|
fieldId: s,
|
|
2267
2267
|
labelId: u,
|
|
2268
2268
|
errorId: v,
|
|
@@ -2272,9 +2272,9 @@ const ml = {
|
|
|
2272
2272
|
resolvedName: c,
|
|
2273
2273
|
ariaRequired: b,
|
|
2274
2274
|
ariaDescribedBy: h
|
|
2275
|
-
} =
|
|
2275
|
+
} = He(n);
|
|
2276
2276
|
let E, p;
|
|
2277
|
-
const S = I(), F = I(), K = I(r(n.type)), _ = I(!1),
|
|
2277
|
+
const S = I(), F = I(), K = I(r(n.type)), _ = I(!1), J = I(), re = $({
|
|
2278
2278
|
get() {
|
|
2279
2279
|
return K.value === "integer" ? "number" : K.value;
|
|
2280
2280
|
},
|
|
@@ -2292,13 +2292,13 @@ const ml = {
|
|
|
2292
2292
|
j(
|
|
2293
2293
|
ae,
|
|
2294
2294
|
(k) => {
|
|
2295
|
-
n.type === "number" && k !== null ?
|
|
2295
|
+
n.type === "number" && k !== null ? J.value = parseFloat(k) : n.type === "integer" && k !== null ? J.value = Math.trunc(k) : J.value = k, S.value !== J.value && (S.value = J.value);
|
|
2296
2296
|
},
|
|
2297
2297
|
{ immediate: !0 }
|
|
2298
2298
|
);
|
|
2299
2299
|
function ce(k) {
|
|
2300
|
-
const
|
|
2301
|
-
if ((n.type === "number" || n.type === "integer") && (L === "-" || L === "e" || L === "+") && k.preventDefault(), n.type === "integer" && !/^\d$/.test(L) && !
|
|
2300
|
+
const R = ["Backspace", "Delete", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], L = k.key;
|
|
2301
|
+
if ((n.type === "number" || n.type === "integer") && (L === "-" || L === "e" || L === "+") && k.preventDefault(), n.type === "integer" && !/^\d$/.test(L) && !R.includes(L)) {
|
|
2302
2302
|
k.preventDefault();
|
|
2303
2303
|
return;
|
|
2304
2304
|
}
|
|
@@ -2308,9 +2308,9 @@ const ml = {
|
|
|
2308
2308
|
}
|
|
2309
2309
|
function q(k) {
|
|
2310
2310
|
p = () => {
|
|
2311
|
-
if (
|
|
2312
|
-
let
|
|
2313
|
-
n.type === "number" && k !== null && k !== void 0 ?
|
|
2311
|
+
if (J.value !== k) {
|
|
2312
|
+
let R;
|
|
2313
|
+
n.type === "number" && k !== null && k !== void 0 ? R = k !== "" ? parseFloat(k) : null : n.type === "integer" && k !== null && k !== void 0 ? R = k !== "" ? Math.trunc(parseInt(k)) : null : R = k, i("update:modelValue", R);
|
|
2314
2314
|
}
|
|
2315
2315
|
p = void 0;
|
|
2316
2316
|
}, n.debounce !== void 0 ? (clearTimeout(E), E = setTimeout(p, +n.debounce)) : p();
|
|
@@ -2327,7 +2327,7 @@ const ml = {
|
|
|
2327
2327
|
function V() {
|
|
2328
2328
|
_.value = !0, i("focus");
|
|
2329
2329
|
}
|
|
2330
|
-
return (k,
|
|
2330
|
+
return (k, R) => r(l) ? (f(), y("div", ee({ key: 0 }, o.value, {
|
|
2331
2331
|
class: ["vc-input vc-input--skeleton", k.$attrs.class]
|
|
2332
2332
|
}), [
|
|
2333
2333
|
e.label ? (f(), P(r(ne), {
|
|
@@ -2336,7 +2336,7 @@ const ml = {
|
|
|
2336
2336
|
width: 60 + (e.label?.length || 0) * 4,
|
|
2337
2337
|
height: 11
|
|
2338
2338
|
}, null, 8, ["width"])) : w("", !0),
|
|
2339
|
-
|
|
2339
|
+
M(r(ne), {
|
|
2340
2340
|
variant: "block",
|
|
2341
2341
|
width: "100%",
|
|
2342
2342
|
height: 36
|
|
@@ -2361,9 +2361,9 @@ 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:
|
|
2364
|
+
"onUpdate:modelValue": R[0] || (R[0] = (L) => i("update:modelValue", L ?? null)),
|
|
2365
|
+
onBlur: R[1] || (R[1] = (L) => i("blur", L)),
|
|
2366
|
+
onFocus: R[2] || (R[2] = (L) => i("focus"))
|
|
2367
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" ? (f(), P(r(Al), ee({ key: 2 }, r(a), {
|
|
2368
2368
|
"model-value": e.modelValue ?? null,
|
|
2369
2369
|
label: e.label,
|
|
@@ -2382,9 +2382,9 @@ 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:
|
|
2385
|
+
"onUpdate:modelValue": R[3] || (R[3] = (L) => i("update:modelValue", L)),
|
|
2386
|
+
onBlur: R[4] || (R[4] = (L) => i("blur", L)),
|
|
2387
|
+
onFocus: R[5] || (R[5] = (L) => i("focus"))
|
|
2388
2388
|
}), null, 16, ["model-value", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name", "aria-label"])) : (f(), y("div", ee({ key: 3 }, o.value, {
|
|
2389
2389
|
class: ["vc-input", [
|
|
2390
2390
|
k.$attrs.class,
|
|
@@ -2397,7 +2397,7 @@ const ml = {
|
|
|
2397
2397
|
}
|
|
2398
2398
|
]]
|
|
2399
2399
|
}), [
|
|
2400
|
-
e.label ? (f(), P(r(
|
|
2400
|
+
e.label ? (f(), P(r(Je), {
|
|
2401
2401
|
key: 0,
|
|
2402
2402
|
id: r(u),
|
|
2403
2403
|
"html-for": r(s),
|
|
@@ -2415,7 +2415,7 @@ const ml = {
|
|
|
2415
2415
|
e.tooltip ? {
|
|
2416
2416
|
name: "tooltip",
|
|
2417
2417
|
fn: O(() => [
|
|
2418
|
-
|
|
2418
|
+
Z(A(e.tooltip), 1)
|
|
2419
2419
|
]),
|
|
2420
2420
|
key: "0"
|
|
2421
2421
|
} : void 0
|
|
@@ -2443,11 +2443,11 @@ const ml = {
|
|
|
2443
2443
|
emitValue: q,
|
|
2444
2444
|
placeholder: e.placeholder
|
|
2445
2445
|
}, () => [
|
|
2446
|
-
|
|
2446
|
+
ct(x("input", {
|
|
2447
2447
|
id: r(s),
|
|
2448
2448
|
ref_key: "inputRef",
|
|
2449
2449
|
ref: F,
|
|
2450
|
-
"onUpdate:modelValue":
|
|
2450
|
+
"onUpdate:modelValue": R[6] || (R[6] = (L) => te.value = L),
|
|
2451
2451
|
placeholder: e.placeholder,
|
|
2452
2452
|
type: re.value,
|
|
2453
2453
|
disabled: r(d),
|
|
@@ -2470,14 +2470,14 @@ const ml = {
|
|
|
2470
2470
|
])
|
|
2471
2471
|
]),
|
|
2472
2472
|
e.suffix ? (f(), y("div", Ul, A(e.suffix), 1)) : w("", !0),
|
|
2473
|
-
e.clearable &&
|
|
2473
|
+
e.clearable && J.value && !r(d) && e.type !== "password" ? (f(), y("button", {
|
|
2474
2474
|
key: 2,
|
|
2475
2475
|
type: "button",
|
|
2476
2476
|
class: "vc-input__clear",
|
|
2477
2477
|
"aria-label": k.$t("COMPONENTS.CONTROLS.CLEAR"),
|
|
2478
2478
|
onClick: C
|
|
2479
2479
|
}, [
|
|
2480
|
-
|
|
2480
|
+
M(r(U), {
|
|
2481
2481
|
size: "xs",
|
|
2482
2482
|
icon: "lucide-x"
|
|
2483
2483
|
})
|
|
@@ -2487,9 +2487,9 @@ const ml = {
|
|
|
2487
2487
|
type: "button",
|
|
2488
2488
|
class: "vc-input__showhide",
|
|
2489
2489
|
"aria-label": K.value === "password" ? k.$t("COMPONENTS.CONTROLS.SHOW_PASSWORD") : k.$t("COMPONENTS.CONTROLS.HIDE_PASSWORD"),
|
|
2490
|
-
onClick:
|
|
2490
|
+
onClick: R[7] || (R[7] = (L) => K.value = K.value === "password" ? "text" : "password")
|
|
2491
2491
|
}, [
|
|
2492
|
-
|
|
2492
|
+
M(r(U), {
|
|
2493
2493
|
size: "s",
|
|
2494
2494
|
icon: K.value === "password" ? "lucide-eye-off" : "lucide-eye"
|
|
2495
2495
|
}, null, 8, ["icon"])
|
|
@@ -2499,7 +2499,7 @@ const ml = {
|
|
|
2499
2499
|
T(k.$slots, "append-inner", { focus: D })
|
|
2500
2500
|
])) : w("", !0),
|
|
2501
2501
|
e.loading ? (f(), y("div", Hl, [
|
|
2502
|
-
|
|
2502
|
+
M(r(U), {
|
|
2503
2503
|
icon: "lucide-loader-2",
|
|
2504
2504
|
class: "vc-input__loading-icon",
|
|
2505
2505
|
size: "m"
|
|
@@ -2511,20 +2511,20 @@ const ml = {
|
|
|
2511
2511
|
T(k.$slots, "append", { focus: D })
|
|
2512
2512
|
])) : w("", !0)
|
|
2513
2513
|
]),
|
|
2514
|
-
|
|
2514
|
+
M(Pe, {
|
|
2515
2515
|
name: "slide-up",
|
|
2516
2516
|
mode: "out-in"
|
|
2517
2517
|
}, {
|
|
2518
2518
|
default: O(() => [
|
|
2519
2519
|
r(g) && e.errorMessage ? (f(), y("div", Yl, [
|
|
2520
2520
|
T(k.$slots, "error", {}, () => [
|
|
2521
|
-
|
|
2521
|
+
M(r(me), {
|
|
2522
2522
|
id: r(v),
|
|
2523
2523
|
class: "vc-input__hint-error",
|
|
2524
2524
|
error: !0
|
|
2525
2525
|
}, {
|
|
2526
2526
|
default: O(() => [
|
|
2527
|
-
|
|
2527
|
+
Z(A(e.errorMessage), 1)
|
|
2528
2528
|
]),
|
|
2529
2529
|
_: 1
|
|
2530
2530
|
}, 8, ["id"])
|
|
@@ -2537,7 +2537,7 @@ const ml = {
|
|
|
2537
2537
|
class: "vc-input__desc"
|
|
2538
2538
|
}, {
|
|
2539
2539
|
default: O(() => [
|
|
2540
|
-
|
|
2540
|
+
Z(A(e.hint), 1)
|
|
2541
2541
|
]),
|
|
2542
2542
|
_: 1
|
|
2543
2543
|
}, 8, ["id"])) : w("", !0)
|
|
@@ -2649,12 +2649,12 @@ function Xl(e = {}) {
|
|
|
2649
2649
|
}, E = () => {
|
|
2650
2650
|
l.value && (l.value.removeEventListener("keydown", v), l.value = null);
|
|
2651
2651
|
};
|
|
2652
|
-
return
|
|
2652
|
+
return je(() => {
|
|
2653
2653
|
if (typeof document < "u" && t) {
|
|
2654
2654
|
const p = document.querySelector(t);
|
|
2655
2655
|
p && h(p);
|
|
2656
2656
|
}
|
|
2657
|
-
}),
|
|
2657
|
+
}), rt(() => {
|
|
2658
2658
|
E();
|
|
2659
2659
|
}), {
|
|
2660
2660
|
initKeyboardNavigation: h,
|
|
@@ -2692,14 +2692,14 @@ function Xl(e = {}) {
|
|
|
2692
2692
|
getFocusedIndex: () => s.value
|
|
2693
2693
|
};
|
|
2694
2694
|
}
|
|
2695
|
-
function
|
|
2695
|
+
function Ot(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 = $(() =>
|
|
2700
|
+
const t = $(() => Ot(e.optionValue(), "id")), n = $(() => Ot(e.optionLabel(), "title"));
|
|
2701
2701
|
function a(l, s, u, v) {
|
|
2702
|
-
const m = (g) =>
|
|
2702
|
+
const m = (g) => De(t.value(g), l);
|
|
2703
2703
|
return u.find(m) || v.find(m) || s.find(m) || l;
|
|
2704
2704
|
}
|
|
2705
2705
|
function o(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 je(() => {
|
|
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
|
+
}), Bt(() => {
|
|
2742
2742
|
a !== null && (clearTimeout(a), a = null), n && e.value && n.unobserve(e.value), n && n.disconnect();
|
|
2743
2743
|
}), {
|
|
2744
2744
|
selectRootRef: e,
|
|
@@ -2763,10 +2763,10 @@ function _l(e) {
|
|
|
2763
2763
|
const l = ia(a, o, {
|
|
2764
2764
|
placement: $(() => e.placement),
|
|
2765
2765
|
middleware: $(() => [
|
|
2766
|
-
|
|
2767
|
-
|
|
2766
|
+
At({ fallbackPlacements: ["top", "bottom"] }),
|
|
2767
|
+
Nt({ mainAxis: !1 }),
|
|
2768
2768
|
i(),
|
|
2769
|
-
|
|
2769
|
+
lt({ mainAxis: 4 })
|
|
2770
2770
|
])
|
|
2771
2771
|
}), s = $(() => ({
|
|
2772
2772
|
top: `${l.y.value ?? 0}px`,
|
|
@@ -2803,9 +2803,9 @@ function eo(e) {
|
|
|
2803
2803
|
}
|
|
2804
2804
|
}
|
|
2805
2805
|
function _() {
|
|
2806
|
-
n.value = null, v.value = void 0, o.value = 0, h = 0, l.value = !1, E++, p && (clearTimeout(p), p = void 0);
|
|
2806
|
+
n.value = null, u.value = !1, v.value = void 0, o.value = 0, h = 0, l.value = !1, E++, p && (clearTimeout(p), p = void 0);
|
|
2807
2807
|
}
|
|
2808
|
-
async function
|
|
2808
|
+
async function J() {
|
|
2809
2809
|
if (c)
|
|
2810
2810
|
return;
|
|
2811
2811
|
const B = e.options();
|
|
@@ -2827,20 +2827,20 @@ function eo(e) {
|
|
|
2827
2827
|
async function ae() {
|
|
2828
2828
|
const B = e.options();
|
|
2829
2829
|
if (typeof B != "function" || s.value || !F.value) return;
|
|
2830
|
-
const D = n.value !== null, V = E;
|
|
2830
|
+
const D = n.value !== null, V = E, k = n.value;
|
|
2831
2831
|
try {
|
|
2832
2832
|
s.value = !0;
|
|
2833
|
-
const
|
|
2834
|
-
if (D && (n.value
|
|
2835
|
-
const
|
|
2836
|
-
if (D ? h +=
|
|
2833
|
+
const R = await B(v.value, D ? h : b);
|
|
2834
|
+
if (D && (n.value !== k || V !== E)) return;
|
|
2835
|
+
const L = R?.results ?? [];
|
|
2836
|
+
if (D ? h += L.length : b += L.length, L.length === 0) {
|
|
2837
2837
|
D ? l.value = !0 : i.value = !0;
|
|
2838
2838
|
return;
|
|
2839
2839
|
}
|
|
2840
|
-
const
|
|
2841
|
-
D ? (n.value = [...
|
|
2842
|
-
} catch (
|
|
2843
|
-
console.error("useSelectDataSource: error loading more",
|
|
2840
|
+
const H = D ? n.value : t.value, xe = new Set(H.map((Te) => String(e.getOptionValue.value(Te)))), de = L.filter((Te) => !xe.has(String(e.getOptionValue.value(Te))));
|
|
2841
|
+
D ? (n.value = [...H, ...de], o.value = R?.totalCount ?? o.value, h >= o.value && (l.value = !0)) : (t.value = [...H, ...de], a.value = R?.totalCount ?? a.value, b >= a.value && (i.value = !0)), K(de);
|
|
2842
|
+
} catch (R) {
|
|
2843
|
+
console.error("useSelectDataSource: error loading more", R);
|
|
2844
2844
|
} finally {
|
|
2845
2845
|
s.value = !1;
|
|
2846
2846
|
}
|
|
@@ -2854,8 +2854,8 @@ function eo(e) {
|
|
|
2854
2854
|
u.value = !0;
|
|
2855
2855
|
const k = await D(B);
|
|
2856
2856
|
if (V !== E) return;
|
|
2857
|
-
const
|
|
2858
|
-
n.value =
|
|
2857
|
+
const R = k?.results ?? [];
|
|
2858
|
+
n.value = R, o.value = k?.totalCount ?? 0, h = R.length, l.value = R.length === 0 || h >= o.value, K(R);
|
|
2859
2859
|
} catch (k) {
|
|
2860
2860
|
if (V !== E) return;
|
|
2861
2861
|
console.error("useSelectDataSource: error searching", k), n.value = [], o.value = 0, h = 0, l.value = !0;
|
|
@@ -2864,8 +2864,8 @@ function eo(e) {
|
|
|
2864
2864
|
}
|
|
2865
2865
|
} else {
|
|
2866
2866
|
const V = t.value.filter((k) => {
|
|
2867
|
-
const
|
|
2868
|
-
return String(
|
|
2867
|
+
const R = e.getOptionLabel.value(k);
|
|
2868
|
+
return String(R).toLowerCase().includes(B.toLowerCase());
|
|
2869
2869
|
});
|
|
2870
2870
|
n.value = V, o.value = V.length, h = V.length, l.value = !0;
|
|
2871
2871
|
}
|
|
@@ -2883,30 +2883,30 @@ function eo(e) {
|
|
|
2883
2883
|
async function q(B) {
|
|
2884
2884
|
if (B.length === 0) return [];
|
|
2885
2885
|
const V = B.filter((L) => !d.has(String(L))).filter((L) => {
|
|
2886
|
-
const
|
|
2887
|
-
return
|
|
2886
|
+
const H = t.value.find((xe) => De(e.getOptionValue.value(xe), L));
|
|
2887
|
+
return H ? (d.set(String(L), H), !1) : !0;
|
|
2888
2888
|
}), k = e.options();
|
|
2889
2889
|
if (V.length > 0 && typeof k == "function") {
|
|
2890
2890
|
try {
|
|
2891
2891
|
g.value = !0;
|
|
2892
|
-
const
|
|
2893
|
-
|
|
2894
|
-
} catch (
|
|
2895
|
-
console.error("useSelectDataSource: error resolving",
|
|
2892
|
+
const H = await k(void 0, void 0, V);
|
|
2893
|
+
H?.results && K(H.results);
|
|
2894
|
+
} catch (H) {
|
|
2895
|
+
console.error("useSelectDataSource: error resolving", H);
|
|
2896
2896
|
} finally {
|
|
2897
2897
|
g.value = !1;
|
|
2898
2898
|
}
|
|
2899
|
-
V.filter((
|
|
2899
|
+
V.filter((H) => !d.has(String(H))).length > 0 && !c && await J();
|
|
2900
2900
|
} else if (V.length > 0 && Array.isArray(k))
|
|
2901
2901
|
for (const L of k) {
|
|
2902
|
-
const
|
|
2903
|
-
V.includes(
|
|
2902
|
+
const H = String(e.getOptionValue.value(L));
|
|
2903
|
+
V.includes(H) && d.set(H, L);
|
|
2904
2904
|
}
|
|
2905
|
-
const
|
|
2906
|
-
return m.value =
|
|
2905
|
+
const R = B.map((L) => d.get(String(L))).filter(Boolean);
|
|
2906
|
+
return m.value = R, R;
|
|
2907
2907
|
}
|
|
2908
2908
|
async function C() {
|
|
2909
|
-
t.value = [], a.value = 0, b = 0, i.value = !1, _(), d.clear(), m.value = [], c = !1, await
|
|
2909
|
+
t.value = [], a.value = 0, b = 0, i.value = !1, _(), d.clear(), m.value = [], c = !1, await J();
|
|
2910
2910
|
}
|
|
2911
2911
|
return j(
|
|
2912
2912
|
e.options,
|
|
@@ -2916,8 +2916,8 @@ function eo(e) {
|
|
|
2916
2916
|
if (Array.isArray(B) && (t.value = [...B], a.value = t.value.length, b = t.value.length, i.value = !0, K(t.value), c = !0, m.value.length === 0)) {
|
|
2917
2917
|
const D = m.value;
|
|
2918
2918
|
(D.length === 0 ? t.value.filter((k) => {
|
|
2919
|
-
const
|
|
2920
|
-
return d.has(
|
|
2919
|
+
const R = String(e.getOptionValue.value(k));
|
|
2920
|
+
return d.has(R);
|
|
2921
2921
|
}) : D).length;
|
|
2922
2922
|
}
|
|
2923
2923
|
},
|
|
@@ -2931,7 +2931,7 @@ function eo(e) {
|
|
|
2931
2931
|
resolvedDefaults: m,
|
|
2932
2932
|
defaultOptionLoading: g,
|
|
2933
2933
|
cachedItems: t,
|
|
2934
|
-
open:
|
|
2934
|
+
open: J,
|
|
2935
2935
|
close: re,
|
|
2936
2936
|
onInput: ce,
|
|
2937
2937
|
clearSearch: se,
|
|
@@ -2967,7 +2967,7 @@ function to(e) {
|
|
|
2967
2967
|
const a = $(() => n.value.map((g) => e.getOptionValue.value(g)));
|
|
2968
2968
|
function o(g) {
|
|
2969
2969
|
const d = e.getOptionValue.value(g);
|
|
2970
|
-
return a.value.find((c) =>
|
|
2970
|
+
return a.value.find((c) => De(c, d)) !== void 0;
|
|
2971
2971
|
}
|
|
2972
2972
|
const i = $(
|
|
2973
2973
|
() => n.value.map((g, d) => ({
|
|
@@ -2989,7 +2989,7 @@ function to(e) {
|
|
|
2989
2989
|
return;
|
|
2990
2990
|
const d = e.getOptionValue.value(g);
|
|
2991
2991
|
if (e.multiple() !== !0) {
|
|
2992
|
-
(n.value.length === 0 ||
|
|
2992
|
+
(n.value.length === 0 || De(e.getOptionValue.value(n.value[0]), d) !== !0) && e.emit.updateModelValue(e.emitValue() === !0 ? d : g), e.isOpened.value = !1, e.emit.close();
|
|
2993
2993
|
return;
|
|
2994
2994
|
}
|
|
2995
2995
|
if (n.value.length === 0) {
|
|
@@ -2997,7 +2997,7 @@ function to(e) {
|
|
|
2997
2997
|
e.emit.updateModelValue(e.multiple() === !0 ? [h] : h);
|
|
2998
2998
|
return;
|
|
2999
2999
|
}
|
|
3000
|
-
const c = e.modelValue().slice(), b = a.value.findIndex((h) =>
|
|
3000
|
+
const c = e.modelValue().slice(), b = a.value.findIndex((h) => De(h, d));
|
|
3001
3001
|
if (b > -1)
|
|
3002
3002
|
c.splice(b, 1);
|
|
3003
3003
|
else {
|
|
@@ -3098,7 +3098,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3098
3098
|
},
|
|
3099
3099
|
emits: ["focus", "blur", "reset", "removeAtIndex"],
|
|
3100
3100
|
setup(e, { expose: t }) {
|
|
3101
|
-
const { t: n } =
|
|
3101
|
+
const { t: n } = we({ useScope: "global" }), a = I(null);
|
|
3102
3102
|
return t({
|
|
3103
3103
|
toggleRef: a
|
|
3104
3104
|
}), (o, i) => (f(), y("div", {
|
|
@@ -3140,18 +3140,18 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3140
3140
|
"aria-describedby": e.ariaDescribedBy,
|
|
3141
3141
|
"aria-required": e.ariaRequired,
|
|
3142
3142
|
"aria-invalid": e.error || void 0,
|
|
3143
|
-
onClick: i[0] || (i[0] =
|
|
3143
|
+
onClick: i[0] || (i[0] = G(
|
|
3144
3144
|
//@ts-ignore
|
|
3145
3145
|
(...l) => e.toggleDropdown && e.toggleDropdown(...l),
|
|
3146
3146
|
["stop"]
|
|
3147
3147
|
)),
|
|
3148
3148
|
onKeydown: [
|
|
3149
|
-
i[1] || (i[1] =
|
|
3149
|
+
i[1] || (i[1] = X(G(
|
|
3150
3150
|
//@ts-ignore
|
|
3151
3151
|
(...l) => e.toggleDropdown && e.toggleDropdown(...l),
|
|
3152
3152
|
["stop"]
|
|
3153
3153
|
), ["enter"])),
|
|
3154
|
-
i[2] || (i[2] =
|
|
3154
|
+
i[2] || (i[2] = X(G(
|
|
3155
3155
|
//@ts-ignore
|
|
3156
3156
|
(...l) => e.toggleDropdown && e.toggleDropdown(...l),
|
|
3157
3157
|
["stop"]
|
|
@@ -3161,7 +3161,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3161
3161
|
onBlur: i[4] || (i[4] = (l) => o.$emit("blur"))
|
|
3162
3162
|
}, [
|
|
3163
3163
|
e.hasValue ? e.selectedScope && e.selectedScope.length && e.hasValue ? (f(), y("div", vo, [
|
|
3164
|
-
(f(!0), y(
|
|
3164
|
+
(f(!0), y(Le, null, st(e.selectedScope, (l, s) => (f(), y("div", {
|
|
3165
3165
|
key: s,
|
|
3166
3166
|
class: "vc-select__selected-item"
|
|
3167
3167
|
}, [
|
|
@@ -3177,30 +3177,30 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3177
3177
|
class: "vc-select__chip-remove",
|
|
3178
3178
|
"aria-label": `Remove ${e.getOptionLabel(l.opt) || ""}`,
|
|
3179
3179
|
tabindex: "0",
|
|
3180
|
-
onClick:
|
|
3181
|
-
onKeydown:
|
|
3180
|
+
onClick: G((u) => o.$emit("removeAtIndex", l.index), ["stop"]),
|
|
3181
|
+
onKeydown: X(G((u) => o.$emit("removeAtIndex", l.index), ["stop", "prevent"]), ["enter"])
|
|
3182
3182
|
}, [
|
|
3183
|
-
|
|
3183
|
+
M(r(U), {
|
|
3184
3184
|
class: "vc-select__icon-remove",
|
|
3185
3185
|
icon: "lucide-x",
|
|
3186
3186
|
size: "xs"
|
|
3187
3187
|
})
|
|
3188
3188
|
], 40, bo))
|
|
3189
3189
|
])
|
|
3190
|
-
]) : e.multiple ? w("", !0) : (f(), y(
|
|
3190
|
+
]) : e.multiple ? w("", !0) : (f(), y(Le, { key: 1 }, [
|
|
3191
3191
|
e.loading ? (f(), y("span", yo, A(r(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : T(o.$slots, "selected-item", ee({
|
|
3192
3192
|
key: 1,
|
|
3193
3193
|
ref_for: !0
|
|
3194
3194
|
}, l), () => [
|
|
3195
|
-
|
|
3195
|
+
Z(A(e.loading ? r(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING") : e.getEmittingOptionValue(l.opt)), 1)
|
|
3196
3196
|
])
|
|
3197
3197
|
], 64))
|
|
3198
3198
|
]))), 128))
|
|
3199
3199
|
])) : w("", !0) : (f(), y("div", fo, [
|
|
3200
|
-
e.placeholder ? (f(), y(
|
|
3201
|
-
|
|
3202
|
-
], 64)) : (f(), y(
|
|
3203
|
-
|
|
3200
|
+
e.placeholder ? (f(), y(Le, { key: 0 }, [
|
|
3201
|
+
Z(A(e.placeholder), 1)
|
|
3202
|
+
], 64)) : (f(), y(Le, { key: 1 }, [
|
|
3203
|
+
Z(A(r(n)("COMPONENTS.MOLECULES.VC_SELECT.CLICK_TO_SELECT")), 1)
|
|
3204
3204
|
], 64))
|
|
3205
3205
|
]))
|
|
3206
3206
|
], 40, co),
|
|
@@ -3213,11 +3213,11 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3213
3213
|
tabindex: "0",
|
|
3214
3214
|
onClick: i[5] || (i[5] = (l) => o.$emit("reset")),
|
|
3215
3215
|
onKeydown: [
|
|
3216
|
-
i[6] || (i[6] =
|
|
3217
|
-
i[7] || (i[7] =
|
|
3216
|
+
i[6] || (i[6] = X((l) => o.$emit("reset"), ["enter"])),
|
|
3217
|
+
i[7] || (i[7] = X((l) => o.$emit("reset"), ["space"]))
|
|
3218
3218
|
]
|
|
3219
3219
|
}, [
|
|
3220
|
-
|
|
3220
|
+
M(r(U), {
|
|
3221
3221
|
size: "xs",
|
|
3222
3222
|
icon: "lucide-x"
|
|
3223
3223
|
})
|
|
@@ -3227,7 +3227,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3227
3227
|
T(o.$slots, "append-inner")
|
|
3228
3228
|
])) : w("", !0),
|
|
3229
3229
|
e.loading || e.listLoading || e.defaultOptionLoading ? (f(), y("div", So, [
|
|
3230
|
-
|
|
3230
|
+
M(r(U), {
|
|
3231
3231
|
icon: "lucide-loader-2",
|
|
3232
3232
|
class: "tw-animate-spin",
|
|
3233
3233
|
size: "m"
|
|
@@ -3239,18 +3239,18 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3239
3239
|
role: "button",
|
|
3240
3240
|
"aria-label": o.$t("COMPONENTS.CONTROLS.TOGGLE_DROPDOWN"),
|
|
3241
3241
|
tabindex: "0",
|
|
3242
|
-
onClick: i[8] || (i[8] =
|
|
3242
|
+
onClick: i[8] || (i[8] = G(
|
|
3243
3243
|
//@ts-ignore
|
|
3244
3244
|
(...l) => e.toggleDropdown && e.toggleDropdown(...l),
|
|
3245
3245
|
["stop"]
|
|
3246
3246
|
)),
|
|
3247
3247
|
onKeydown: [
|
|
3248
|
-
i[9] || (i[9] =
|
|
3248
|
+
i[9] || (i[9] = X(G(
|
|
3249
3249
|
//@ts-ignore
|
|
3250
3250
|
(...l) => e.toggleDropdown && e.toggleDropdown(...l),
|
|
3251
3251
|
["stop"]
|
|
3252
3252
|
), ["enter"])),
|
|
3253
|
-
i[10] || (i[10] =
|
|
3253
|
+
i[10] || (i[10] = X(G(
|
|
3254
3254
|
//@ts-ignore
|
|
3255
3255
|
(...l) => e.toggleDropdown && e.toggleDropdown(...l),
|
|
3256
3256
|
["stop"]
|
|
@@ -3258,7 +3258,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3258
3258
|
]
|
|
3259
3259
|
}, [
|
|
3260
3260
|
x("div", wo, [
|
|
3261
|
-
|
|
3261
|
+
M(r(U), {
|
|
3262
3262
|
size: "s",
|
|
3263
3263
|
icon: "lucide-chevron-down"
|
|
3264
3264
|
})
|
|
@@ -3268,20 +3268,20 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3268
3268
|
])
|
|
3269
3269
|
]),
|
|
3270
3270
|
x("div", Oo, [
|
|
3271
|
-
|
|
3271
|
+
M(Pe, {
|
|
3272
3272
|
name: "slide-up",
|
|
3273
3273
|
mode: "out-in"
|
|
3274
3274
|
}, {
|
|
3275
3275
|
default: O(() => [
|
|
3276
3276
|
e.error && e.errorMessage ? (f(), y("div", Eo, [
|
|
3277
3277
|
T(o.$slots, "error", {}, () => [
|
|
3278
|
-
|
|
3278
|
+
M(r(me), {
|
|
3279
3279
|
id: e.errorId,
|
|
3280
3280
|
class: "vc-select__error-message",
|
|
3281
3281
|
error: !0
|
|
3282
3282
|
}, {
|
|
3283
3283
|
default: O(() => [
|
|
3284
|
-
|
|
3284
|
+
Z(A(e.errorMessage), 1)
|
|
3285
3285
|
]),
|
|
3286
3286
|
_: 1
|
|
3287
3287
|
}, 8, ["id"])
|
|
@@ -3294,7 +3294,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3294
3294
|
class: "vc-select__hint"
|
|
3295
3295
|
}, {
|
|
3296
3296
|
default: O(() => [
|
|
3297
|
-
|
|
3297
|
+
Z(A(e.hint), 1)
|
|
3298
3298
|
]),
|
|
3299
3299
|
_: 1
|
|
3300
3300
|
}, 8, ["id"])) : w("", !0)
|
|
@@ -3337,7 +3337,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3337
3337
|
},
|
|
3338
3338
|
emits: ["input", "clickOutside"],
|
|
3339
3339
|
setup(e, { expose: t, emit: n }) {
|
|
3340
|
-
const a = e, o = n, { t: i } =
|
|
3340
|
+
const a = e, o = n, { t: i } = we({ useScope: "global" }), { teleportTarget: l } = $n(), s = I(null), u = I(null), v = I(null), m = I(null), g = $(() => v.value?.viewportRef ?? null);
|
|
3341
3341
|
function d(c) {
|
|
3342
3342
|
const b = g.value;
|
|
3343
3343
|
if (!b) return;
|
|
@@ -3351,12 +3351,12 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3351
3351
|
return j(
|
|
3352
3352
|
() => a.isOpened,
|
|
3353
3353
|
(c) => {
|
|
3354
|
-
c &&
|
|
3354
|
+
c && Se(() => v.value?.updateScrollState());
|
|
3355
3355
|
}
|
|
3356
3356
|
), j(
|
|
3357
3357
|
() => a.optionScope.length,
|
|
3358
3358
|
() => {
|
|
3359
|
-
a.isOpened &&
|
|
3359
|
+
a.isOpened && Se(() => v.value?.updateScrollState());
|
|
3360
3360
|
}
|
|
3361
3361
|
), t({
|
|
3362
3362
|
dropdownElRef: s,
|
|
@@ -3364,9 +3364,9 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3364
3364
|
viewportRef: g,
|
|
3365
3365
|
loadMoreRef: m
|
|
3366
3366
|
}), (c, b) => (f(), P(cn, { to: r(l) }, [
|
|
3367
|
-
|
|
3367
|
+
M(Pe, { name: "select-dropdown" }, {
|
|
3368
3368
|
default: O(() => [
|
|
3369
|
-
e.isOpened ?
|
|
3369
|
+
e.isOpened ? ct((f(), y("div", {
|
|
3370
3370
|
key: 0,
|
|
3371
3371
|
id: e.listboxId,
|
|
3372
3372
|
ref_key: "dropdownElRef",
|
|
@@ -3375,7 +3375,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3375
3375
|
class: "vc-select__dropdown",
|
|
3376
3376
|
role: "listbox",
|
|
3377
3377
|
"aria-label": e.ariaLabel,
|
|
3378
|
-
style:
|
|
3378
|
+
style: Ve(e.dropdownStyle),
|
|
3379
3379
|
onWheel: d
|
|
3380
3380
|
}, [
|
|
3381
3381
|
e.searchable ? (f(), y("input", {
|
|
@@ -3388,19 +3388,19 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3388
3388
|
autocomplete: "off",
|
|
3389
3389
|
onInput: b[0] || (b[0] = (h) => o("input", h)),
|
|
3390
3390
|
onKeydown: [
|
|
3391
|
-
b[1] || (b[1] =
|
|
3391
|
+
b[1] || (b[1] = X(G(() => {
|
|
3392
3392
|
}, ["stop"]), ["space"])),
|
|
3393
|
-
b[2] || (b[2] =
|
|
3393
|
+
b[2] || (b[2] = X(G(() => {
|
|
3394
3394
|
}, ["stop"]), ["enter"]))
|
|
3395
3395
|
]
|
|
3396
3396
|
}, null, 40, To)) : w("", !0),
|
|
3397
|
-
|
|
3397
|
+
M(r(ol), {
|
|
3398
3398
|
ref_key: "scrollContainerRef",
|
|
3399
3399
|
ref: v,
|
|
3400
3400
|
class: "vc-select__scroll-container"
|
|
3401
3401
|
}, {
|
|
3402
3402
|
default: O(() => [
|
|
3403
|
-
(f(!0), y(
|
|
3403
|
+
(f(!0), y(Le, null, st(e.optionScope, (h, E) => (f(), y("div", {
|
|
3404
3404
|
key: E,
|
|
3405
3405
|
class: W(["vc-select__option", { "vc-select__option--selected": h.selected }]),
|
|
3406
3406
|
"data-test-id": "option",
|
|
@@ -3410,22 +3410,22 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3410
3410
|
"data-index": E,
|
|
3411
3411
|
onClick: (p) => h.toggleOption(h.opt),
|
|
3412
3412
|
onKeydown: [
|
|
3413
|
-
|
|
3414
|
-
|
|
3413
|
+
X((p) => h.toggleOption(h.opt), ["enter"]),
|
|
3414
|
+
X((p) => h.toggleOption(h.opt), ["space"])
|
|
3415
3415
|
]
|
|
3416
3416
|
}, [
|
|
3417
3417
|
T(c.$slots, "option", ee({ ref_for: !0 }, h), () => [
|
|
3418
|
-
|
|
3418
|
+
Z(A(h.label), 1)
|
|
3419
3419
|
]),
|
|
3420
3420
|
h.selected ? (f(), y("span", Mo, [
|
|
3421
|
-
|
|
3421
|
+
M(r(U), {
|
|
3422
3422
|
icon: "lucide-check",
|
|
3423
3423
|
size: "xs"
|
|
3424
3424
|
})
|
|
3425
3425
|
])) : w("", !0)
|
|
3426
3426
|
], 42, Ro))), 128)),
|
|
3427
3427
|
e.listLoading ? (f(), y("div", Ao, [
|
|
3428
|
-
|
|
3428
|
+
M(r(U), {
|
|
3429
3429
|
icon: "lucide-loader-2",
|
|
3430
3430
|
class: "tw-animate-spin",
|
|
3431
3431
|
size: "m"
|
|
@@ -3488,10 +3488,10 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3488
3488
|
},
|
|
3489
3489
|
emits: ["update:modelValue", "search", "close"],
|
|
3490
3490
|
setup(e, { emit: t }) {
|
|
3491
|
-
const n = e, a =
|
|
3491
|
+
const n = e, a = Lt(), o = $(() => {
|
|
3492
3492
|
const { class: N, ...Q } = a;
|
|
3493
3493
|
return Q;
|
|
3494
|
-
}), i = t, { t: l } =
|
|
3494
|
+
}), i = t, { t: l } = we({ useScope: "global" }), s = Oe(), {
|
|
3495
3495
|
fieldId: u,
|
|
3496
3496
|
labelId: v,
|
|
3497
3497
|
errorId: m,
|
|
@@ -3501,20 +3501,20 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3501
3501
|
resolvedName: b,
|
|
3502
3502
|
ariaRequired: h,
|
|
3503
3503
|
ariaDescribedBy: E
|
|
3504
|
-
} =
|
|
3504
|
+
} = He(n), p = $(() => `${u.value}-listbox`), S = I(null), F = I(null), { selectRootRef: K, isSelectVisible: _, ensureVisibility: J } = Ql(), { getOptionValue: re, getOptionLabel: ae, getOption: te, getEmittingOptionValue: ce, fieldValueIsFilled: se } = Zl({
|
|
3505
3505
|
optionValue: () => n.optionValue,
|
|
3506
3506
|
optionLabel: () => n.optionLabel
|
|
3507
|
-
}), { isOpened: q, isFocused: C, dropdownToggleRef: B, dropdownRef: D, popper: V, dropdownStyle: k, toggleDropdown:
|
|
3507
|
+
}), { isOpened: q, isFocused: C, dropdownToggleRef: B, dropdownRef: D, popper: V, dropdownStyle: k, toggleDropdown: R } = _l({
|
|
3508
3508
|
placement: n.placement,
|
|
3509
3509
|
outline: () => n.outline,
|
|
3510
3510
|
isSelectVisible: _,
|
|
3511
3511
|
selectRootRef: K,
|
|
3512
3512
|
disabled: () => n.disabled ?? !1,
|
|
3513
|
-
ensureVisibility:
|
|
3513
|
+
ensureVisibility: J
|
|
3514
3514
|
});
|
|
3515
|
-
|
|
3515
|
+
tt(() => {
|
|
3516
3516
|
B.value = S.value?.toggleRef ?? null;
|
|
3517
|
-
}),
|
|
3517
|
+
}), tt(() => {
|
|
3518
3518
|
D.value = F.value?.dropdownElRef ?? null;
|
|
3519
3519
|
});
|
|
3520
3520
|
const L = eo({
|
|
@@ -3526,7 +3526,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3526
3526
|
emit: {
|
|
3527
3527
|
search: (N) => i("search", N)
|
|
3528
3528
|
}
|
|
3529
|
-
}), { selectedScope:
|
|
3529
|
+
}), { selectedScope: H, hasValue: xe, optionScope: de, removeAtIndex: Te, onReset: Qt } = to({
|
|
3530
3530
|
modelValue: () => n.modelValue,
|
|
3531
3531
|
multiple: () => n.multiple,
|
|
3532
3532
|
emitValue: () => n.emitValue ?? !0,
|
|
@@ -3552,13 +3552,13 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3552
3552
|
},
|
|
3553
3553
|
{ threshold: 1, root: en }
|
|
3554
3554
|
);
|
|
3555
|
-
const
|
|
3555
|
+
const Xe = Xl({
|
|
3556
3556
|
onEnter: (N) => {
|
|
3557
3557
|
const Q = parseInt(N.getAttribute("data-index") || "0", 10);
|
|
3558
3558
|
de.value && de.value[Q] && de.value[Q].toggleOption(de.value[Q].opt);
|
|
3559
3559
|
},
|
|
3560
3560
|
onEscape: () => {
|
|
3561
|
-
q.value = !1, i("close"),
|
|
3561
|
+
q.value = !1, i("close"), Se(() => {
|
|
3562
3562
|
S.value?.toggleRef?.querySelector('[role="combobox"]')?.focus();
|
|
3563
3563
|
});
|
|
3564
3564
|
}
|
|
@@ -3567,19 +3567,19 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3567
3567
|
q.value = !1, i("close");
|
|
3568
3568
|
}
|
|
3569
3569
|
return j(q, async (N) => {
|
|
3570
|
-
N ? (await L.open(),
|
|
3570
|
+
N ? (await L.open(), Se(() => {
|
|
3571
3571
|
V.update();
|
|
3572
3572
|
const Q = F.value?.dropdownElRef, le = F.value?.searchInputRef;
|
|
3573
3573
|
if (Q)
|
|
3574
|
-
if (
|
|
3574
|
+
if (Xe.initKeyboardNavigation(Q), n.searchable && le)
|
|
3575
3575
|
le.focus();
|
|
3576
3576
|
else {
|
|
3577
|
-
const
|
|
3577
|
+
const Re = Q.querySelector(
|
|
3578
3578
|
'.vc-select__option[tabindex="0"], .vc-select__search-input[tabindex="0"]'
|
|
3579
3579
|
);
|
|
3580
|
-
|
|
3580
|
+
Re ? Re.focus() : Xe.focusFirstElement();
|
|
3581
3581
|
}
|
|
3582
|
-
})) : (
|
|
3582
|
+
})) : (Xe.cleanupKeyboardNavigation(), L.close());
|
|
3583
3583
|
}), j(
|
|
3584
3584
|
() => n.modelValue,
|
|
3585
3585
|
async (N) => {
|
|
@@ -3589,10 +3589,10 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3589
3589
|
}
|
|
3590
3590
|
const Q = n.emitValue ?? !0;
|
|
3591
3591
|
if (n.mapOptions ?? !0) {
|
|
3592
|
-
const
|
|
3593
|
-
if (
|
|
3594
|
-
const
|
|
3595
|
-
|
|
3592
|
+
const Re = Array.isArray(N) ? N : [N], ht = Q ? Re : Re.filter((Me) => Me != null && typeof Me != "object");
|
|
3593
|
+
if (ht.length > 0) {
|
|
3594
|
+
const Me = ht.filter((nn) => nn != null).map(String);
|
|
3595
|
+
Me.length > 0 && await L.resolve(Me);
|
|
3596
3596
|
}
|
|
3597
3597
|
}
|
|
3598
3598
|
},
|
|
@@ -3606,7 +3606,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3606
3606
|
width: 60 + (e.label?.length || 0) * 4,
|
|
3607
3607
|
height: 11
|
|
3608
3608
|
}, null, 8, ["width"])) : w("", !0),
|
|
3609
|
-
|
|
3609
|
+
M(r(ne), {
|
|
3610
3610
|
variant: "block",
|
|
3611
3611
|
width: "100%",
|
|
3612
3612
|
height: 36
|
|
@@ -3628,7 +3628,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3628
3628
|
}
|
|
3629
3629
|
]]
|
|
3630
3630
|
}), [
|
|
3631
|
-
e.label ? (f(), P(r(
|
|
3631
|
+
e.label ? (f(), P(r(Je), {
|
|
3632
3632
|
key: 0,
|
|
3633
3633
|
id: r(v),
|
|
3634
3634
|
class: "vc-select__label",
|
|
@@ -3646,19 +3646,19 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3646
3646
|
name: "tooltip",
|
|
3647
3647
|
fn: O(() => [
|
|
3648
3648
|
x("span", {
|
|
3649
|
-
innerHTML: r(
|
|
3649
|
+
innerHTML: r(Dt).sanitize(e.tooltip)
|
|
3650
3650
|
}, null, 8, Fo)
|
|
3651
3651
|
]),
|
|
3652
3652
|
key: "0"
|
|
3653
3653
|
} : void 0
|
|
3654
3654
|
]), 1032, ["id", "required", "multilanguage", "current-language", "error"])) : w("", !0),
|
|
3655
3655
|
x("div", zo, [
|
|
3656
|
-
|
|
3656
|
+
M(Co, {
|
|
3657
3657
|
ref_key: "selectTriggerRef",
|
|
3658
3658
|
ref: S,
|
|
3659
3659
|
"is-opened": r(q),
|
|
3660
|
-
"has-value": r(
|
|
3661
|
-
"selected-scope": r(
|
|
3660
|
+
"has-value": r(xe),
|
|
3661
|
+
"selected-scope": r(H),
|
|
3662
3662
|
multiple: e.multiple,
|
|
3663
3663
|
loading: e.loading,
|
|
3664
3664
|
disabled: r(c),
|
|
@@ -3679,18 +3679,18 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3679
3679
|
"aria-required": r(h),
|
|
3680
3680
|
"error-id": r(m),
|
|
3681
3681
|
"hint-id": r(g),
|
|
3682
|
-
"toggle-dropdown": r(
|
|
3682
|
+
"toggle-dropdown": r(R),
|
|
3683
3683
|
"get-option-label": r(ae),
|
|
3684
3684
|
"get-emitting-option-value": r(ce),
|
|
3685
3685
|
onFocus: Q[0] || (Q[0] = (le) => C.value = !0),
|
|
3686
3686
|
onBlur: Q[1] || (Q[1] = (le) => C.value = !1),
|
|
3687
3687
|
onReset: r(Qt),
|
|
3688
|
-
onRemoveAtIndex: r(
|
|
3688
|
+
onRemoveAtIndex: r(Te)
|
|
3689
3689
|
}, oe({ _: 2 }, [
|
|
3690
3690
|
N.$slots.control ? {
|
|
3691
3691
|
name: "control",
|
|
3692
3692
|
fn: O((le) => [
|
|
3693
|
-
T(N.$slots, "control",
|
|
3693
|
+
T(N.$slots, "control", Ae(Ne(le)))
|
|
3694
3694
|
]),
|
|
3695
3695
|
key: "0"
|
|
3696
3696
|
} : void 0,
|
|
@@ -3725,7 +3725,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3725
3725
|
N.$slots["selected-item"] ? {
|
|
3726
3726
|
name: "selected-item",
|
|
3727
3727
|
fn: O((le) => [
|
|
3728
|
-
T(N.$slots, "selected-item",
|
|
3728
|
+
T(N.$slots, "selected-item", Ae(Ne(le)))
|
|
3729
3729
|
]),
|
|
3730
3730
|
key: "5"
|
|
3731
3731
|
} : void 0,
|
|
@@ -3744,7 +3744,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3744
3744
|
key: "7"
|
|
3745
3745
|
} : void 0
|
|
3746
3746
|
]), 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
|
-
|
|
3747
|
+
M(Po, ee({
|
|
3748
3748
|
ref_key: "selectDropdownRef",
|
|
3749
3749
|
ref: F,
|
|
3750
3750
|
"is-opened": r(q),
|
|
@@ -3763,7 +3763,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3763
3763
|
N.$slots.option ? {
|
|
3764
3764
|
name: "option",
|
|
3765
3765
|
fn: O((le) => [
|
|
3766
|
-
T(N.$slots, "option",
|
|
3766
|
+
T(N.$slots, "option", Ae(Ne(le)))
|
|
3767
3767
|
]),
|
|
3768
3768
|
key: "0"
|
|
3769
3769
|
} : void 0,
|
|
@@ -3814,7 +3814,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3814
3814
|
},
|
|
3815
3815
|
emits: ["update:model-value", "update:option", "change", "blur"],
|
|
3816
3816
|
setup(e) {
|
|
3817
|
-
const t =
|
|
3817
|
+
const t = Oe();
|
|
3818
3818
|
return (n, a) => r(t) ? (f(), y("div", Uo, [
|
|
3819
3819
|
e.label ? (f(), P(r(ne), {
|
|
3820
3820
|
key: 0,
|
|
@@ -3822,7 +3822,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3822
3822
|
width: 60 + (e.label?.length || 0) * 4,
|
|
3823
3823
|
height: 11
|
|
3824
3824
|
}, null, 8, ["width"])) : w("", !0),
|
|
3825
|
-
|
|
3825
|
+
M(r(ne), {
|
|
3826
3826
|
variant: "block",
|
|
3827
3827
|
width: "100%",
|
|
3828
3828
|
height: 36
|
|
@@ -3845,10 +3845,10 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3845
3845
|
"onUpdate:modelValue": a[2] || (a[2] = (o) => n.$emit("update:option", o))
|
|
3846
3846
|
}, {
|
|
3847
3847
|
option: O((o) => [
|
|
3848
|
-
T(n.$slots, "option",
|
|
3848
|
+
T(n.$slots, "option", Ae(Ne(o)))
|
|
3849
3849
|
]),
|
|
3850
3850
|
control: O(({ toggleHandler: o, isOpened: i }) => [
|
|
3851
|
-
|
|
3851
|
+
M(r(bt), {
|
|
3852
3852
|
placeholder: e.placeholder,
|
|
3853
3853
|
hint: e.hint,
|
|
3854
3854
|
clearable: e.clearable,
|
|
@@ -3879,10 +3879,10 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3879
3879
|
"aria-label": n.$t("COMPONENTS.CONTROLS.SELECT_OPTION"),
|
|
3880
3880
|
"aria-expanded": i,
|
|
3881
3881
|
"aria-haspopup": "listbox",
|
|
3882
|
-
onClick:
|
|
3882
|
+
onClick: G(o, ["stop", "prevent"]),
|
|
3883
3883
|
onKeydown: [
|
|
3884
|
-
|
|
3885
|
-
|
|
3884
|
+
X(G(o, ["stop", "prevent"]), ["enter"]),
|
|
3885
|
+
X(G(o, ["stop", "prevent"]), ["space"])
|
|
3886
3886
|
]
|
|
3887
3887
|
}, A(r(e.option)), 41, Wo)) : w("", !0)
|
|
3888
3888
|
]),
|
|
@@ -3893,7 +3893,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3893
3893
|
text: "",
|
|
3894
3894
|
"aria-label": n.$t("COMPONENTS.CONTROLS.TOGGLE_DROPDOWN"),
|
|
3895
3895
|
"icon-class": "vc-input-dropdown__toggle-button-icon",
|
|
3896
|
-
onClick:
|
|
3896
|
+
onClick: G(o, ["stop", "prevent"])
|
|
3897
3897
|
}, null, 8, ["icon", "aria-label", "onClick"])) : w("", !0)
|
|
3898
3898
|
]),
|
|
3899
3899
|
n.$slots["append-inner"] ? T(n.$slots, "append-inner", { key: 0 }) : w("", !0)
|
|
@@ -3903,7 +3903,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3903
3903
|
n.$slots.control ? {
|
|
3904
3904
|
name: "control",
|
|
3905
3905
|
fn: O((l) => [
|
|
3906
|
-
T(n.$slots, "control",
|
|
3906
|
+
T(n.$slots, "control", Ae(Ne(l)))
|
|
3907
3907
|
]),
|
|
3908
3908
|
key: "0"
|
|
3909
3909
|
} : void 0,
|
|
@@ -3966,7 +3966,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3966
3966
|
},
|
|
3967
3967
|
emits: ["update:model-value", "update:option", "change", "blur"],
|
|
3968
3968
|
setup(e, { emit: t }) {
|
|
3969
|
-
const n = e, a = t, o =
|
|
3969
|
+
const n = e, a = t, o = Oe(), { inputRef: i, setOptions: l, numberValue: s, setValue: u } = Dn(
|
|
3970
3970
|
{
|
|
3971
3971
|
locale: navigator.language,
|
|
3972
3972
|
currency: n.option || "USD",
|
|
@@ -4024,7 +4024,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
4024
4024
|
width: 60 + (e.label?.length || 0) * 4,
|
|
4025
4025
|
height: 11
|
|
4026
4026
|
}, null, 8, ["width"])) : w("", !0),
|
|
4027
|
-
|
|
4027
|
+
M(r(ne), {
|
|
4028
4028
|
variant: "block",
|
|
4029
4029
|
width: "100%",
|
|
4030
4030
|
height: 36
|
|
@@ -4077,7 +4077,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
4077
4077
|
_: 1
|
|
4078
4078
|
}, 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
4079
|
}
|
|
4080
|
-
}),
|
|
4080
|
+
}), Yt = Symbol("VcAppBarState"), Jo = {
|
|
4081
4081
|
activeWidgetId: I(null),
|
|
4082
4082
|
activeMobileActionId: I(null)
|
|
4083
4083
|
};
|
|
@@ -4086,10 +4086,10 @@ function hr() {
|
|
|
4086
4086
|
activeWidgetId: I(null),
|
|
4087
4087
|
activeMobileActionId: I(null)
|
|
4088
4088
|
};
|
|
4089
|
-
return
|
|
4089
|
+
return Et(Yt, e), e;
|
|
4090
4090
|
}
|
|
4091
4091
|
function kr() {
|
|
4092
|
-
return
|
|
4092
|
+
return Y(Yt, Jo);
|
|
4093
4093
|
}
|
|
4094
4094
|
const Ir = Symbol("TableContext"), Xo = Symbol("ColumnCollector"), Sr = Symbol("FillerWidth"), $r = Symbol("IsColumnReordering"), wr = (e, t) => {
|
|
4095
4095
|
const n = e.__vccOpts || e;
|
|
@@ -4274,33 +4274,33 @@ const Ir = Symbol("TableContext"), Xo = Symbol("ColumnCollector"), Sr = Symbol("
|
|
|
4274
4274
|
}
|
|
4275
4275
|
},
|
|
4276
4276
|
setup(e, { slots: t }) {
|
|
4277
|
-
const n =
|
|
4278
|
-
return
|
|
4277
|
+
const n = Y(Xo, null), a = We();
|
|
4278
|
+
return je(() => {
|
|
4279
4279
|
n && a && n.add({
|
|
4280
4280
|
instance: a,
|
|
4281
4281
|
props: e,
|
|
4282
4282
|
slots: t
|
|
4283
4283
|
});
|
|
4284
|
-
}),
|
|
4284
|
+
}), Bt(() => {
|
|
4285
4285
|
n && a && n.delete(a);
|
|
4286
4286
|
}), () => null;
|
|
4287
4287
|
}
|
|
4288
|
-
}),
|
|
4289
|
-
function
|
|
4288
|
+
}), Ee = nt(/* @__PURE__ */ new Map());
|
|
4289
|
+
function Jt() {
|
|
4290
4290
|
return {
|
|
4291
4291
|
register: (l) => {
|
|
4292
|
-
|
|
4292
|
+
Ee.set(l.type, l);
|
|
4293
4293
|
},
|
|
4294
|
-
get: (l) =>
|
|
4295
|
-
has: (l) =>
|
|
4296
|
-
getRegisteredTypes: () => Array.from(
|
|
4297
|
-
unregister: (l) =>
|
|
4294
|
+
get: (l) => Ee.get(l),
|
|
4295
|
+
has: (l) => Ee.has(l),
|
|
4296
|
+
getRegisteredTypes: () => Array.from(Ee.keys()),
|
|
4297
|
+
unregister: (l) => Ee.delete(l),
|
|
4298
4298
|
clear: () => {
|
|
4299
|
-
|
|
4299
|
+
Ee.clear();
|
|
4300
4300
|
}
|
|
4301
4301
|
};
|
|
4302
4302
|
}
|
|
4303
|
-
const Zo = { class: "vc-table-cell-editable__error-tooltip" },
|
|
4303
|
+
const Zo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__ */ z({
|
|
4304
4304
|
__name: "CellEditableWrapper",
|
|
4305
4305
|
props: {
|
|
4306
4306
|
label: {},
|
|
@@ -4311,7 +4311,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4311
4311
|
},
|
|
4312
4312
|
setup(e) {
|
|
4313
4313
|
const t = e, n = I(null);
|
|
4314
|
-
return
|
|
4314
|
+
return je(() => {
|
|
4315
4315
|
const a = t.modelValue === void 0 || t.modelValue === null || t.modelValue === "";
|
|
4316
4316
|
(t.validateOnMount || a && t.rules) && n.value?.validate();
|
|
4317
4317
|
}), (a, o) => (f(), P(r(wn), {
|
|
@@ -4323,7 +4323,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4323
4323
|
rules: e.rules
|
|
4324
4324
|
}, {
|
|
4325
4325
|
default: O(({ errors: i, errorMessage: l }) => [
|
|
4326
|
-
|
|
4326
|
+
M(Tt, { placement: "bottom" }, oe({
|
|
4327
4327
|
default: O(() => [
|
|
4328
4328
|
T(a.$slots, "default", {
|
|
4329
4329
|
errors: i,
|
|
@@ -4347,7 +4347,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4347
4347
|
}), Qo = {
|
|
4348
4348
|
key: 1,
|
|
4349
4349
|
class: "vc-table-cell-default"
|
|
4350
|
-
},
|
|
4350
|
+
}, Xt = /* @__PURE__ */ z({
|
|
4351
4351
|
__name: "CellDefault",
|
|
4352
4352
|
props: {
|
|
4353
4353
|
value: {},
|
|
@@ -4361,10 +4361,10 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4361
4361
|
},
|
|
4362
4362
|
emits: ["update", "blur"],
|
|
4363
4363
|
setup(e, { emit: t }) {
|
|
4364
|
-
const n = e, a = t, { isMobile: o, isDesktop: i } =
|
|
4364
|
+
const n = e, a = t, { isMobile: o, isDesktop: i } = Ye(), l = (s) => {
|
|
4365
4365
|
s && s.length > 0 || a("blur", { row: n.rowIndex, field: n.fieldId || "" });
|
|
4366
4366
|
};
|
|
4367
|
-
return (s, u) => e.editable ? (f(), P(
|
|
4367
|
+
return (s, u) => e.editable ? (f(), P(yt, {
|
|
4368
4368
|
key: 0,
|
|
4369
4369
|
label: e.label || "",
|
|
4370
4370
|
"field-name": e.fieldName || "",
|
|
@@ -4373,7 +4373,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4373
4373
|
"validate-on-mount": e.validateOnMount
|
|
4374
4374
|
}, {
|
|
4375
4375
|
default: O(({ errors: v, errorMessage: m }) => [
|
|
4376
|
-
|
|
4376
|
+
M(bt, {
|
|
4377
4377
|
"model-value": e.value,
|
|
4378
4378
|
class: "vc-table-cell-default__input",
|
|
4379
4379
|
error: v.length > 0,
|
|
@@ -4384,7 +4384,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4384
4384
|
r(i) && v.length > 0 ? {
|
|
4385
4385
|
name: "append-inner",
|
|
4386
4386
|
fn: O(() => [
|
|
4387
|
-
|
|
4387
|
+
M(r(U), {
|
|
4388
4388
|
icon: "lucide-circle-alert",
|
|
4389
4389
|
class: "vc-table-cell-default__error-icon"
|
|
4390
4390
|
})
|
|
@@ -4417,7 +4417,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4417
4417
|
},
|
|
4418
4418
|
emits: ["update", "blur"],
|
|
4419
4419
|
setup(e, { emit: t }) {
|
|
4420
|
-
const n = e, a = t, { t: o } =
|
|
4420
|
+
const n = e, a = t, { t: o } = we({ useScope: "global" }), i = window.navigator.language, { isMobile: l, isDesktop: s } = Ye(), u = $(() => typeof n.value > "u" || n.value === null || Number(n.value) === 0), v = $(() => {
|
|
4421
4421
|
const g = Number(n.value);
|
|
4422
4422
|
return isNaN(g) ? String(n.value) : new Intl.NumberFormat(i, {
|
|
4423
4423
|
style: "currency",
|
|
@@ -4426,7 +4426,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4426
4426
|
}), m = (g) => {
|
|
4427
4427
|
g && g.length > 0 || a("blur", { row: n.rowIndex, field: n.fieldId || "" });
|
|
4428
4428
|
};
|
|
4429
|
-
return (g, d) => e.editable ? (f(), P(
|
|
4429
|
+
return (g, d) => e.editable ? (f(), P(yt, {
|
|
4430
4430
|
key: 0,
|
|
4431
4431
|
label: e.label || "",
|
|
4432
4432
|
"field-name": e.fieldName || "",
|
|
@@ -4435,7 +4435,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4435
4435
|
"validate-on-mount": e.validateOnMount
|
|
4436
4436
|
}, {
|
|
4437
4437
|
default: O(({ errors: c, errorMessage: b }) => [
|
|
4438
|
-
|
|
4438
|
+
M(Yo, {
|
|
4439
4439
|
"model-value": e.value,
|
|
4440
4440
|
options: [],
|
|
4441
4441
|
option: e.currency || "USD",
|
|
@@ -4449,7 +4449,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4449
4449
|
r(s) && c.length > 0 ? {
|
|
4450
4450
|
name: "append-inner",
|
|
4451
4451
|
fn: O(() => [
|
|
4452
|
-
|
|
4452
|
+
M(r(U), {
|
|
4453
4453
|
icon: "lucide-circle-alert",
|
|
4454
4454
|
class: "vc-table-cell-money__error-icon"
|
|
4455
4455
|
})
|
|
@@ -4481,7 +4481,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4481
4481
|
},
|
|
4482
4482
|
emits: ["update", "blur"],
|
|
4483
4483
|
setup(e, { emit: t }) {
|
|
4484
|
-
const n = e, a = t, { t: o } =
|
|
4484
|
+
const n = e, a = t, { t: o } = we({ useScope: "global" }), { isMobile: i, isDesktop: l } = Ye(), s = $(() => {
|
|
4485
4485
|
if (n.value === null || n.value === void 0) return !0;
|
|
4486
4486
|
const m = Number(n.value);
|
|
4487
4487
|
return isNaN(m) || m < 0;
|
|
@@ -4491,7 +4491,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4491
4491
|
}), v = (m) => {
|
|
4492
4492
|
m && m.length > 0 || a("blur", { row: n.rowIndex, field: n.fieldId || "" });
|
|
4493
4493
|
};
|
|
4494
|
-
return (m, g) => e.editable ? (f(), P(
|
|
4494
|
+
return (m, g) => e.editable ? (f(), P(yt, {
|
|
4495
4495
|
key: 0,
|
|
4496
4496
|
label: e.label || "",
|
|
4497
4497
|
"field-name": e.fieldName || "",
|
|
@@ -4500,7 +4500,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4500
4500
|
"validate-on-mount": e.validateOnMount
|
|
4501
4501
|
}, {
|
|
4502
4502
|
default: O(({ errors: d, errorMessage: c }) => [
|
|
4503
|
-
|
|
4503
|
+
M(bt, {
|
|
4504
4504
|
"model-value": e.value,
|
|
4505
4505
|
class: "vc-table-cell-number__input",
|
|
4506
4506
|
type: "number",
|
|
@@ -4512,7 +4512,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4512
4512
|
r(l) && d.length > 0 ? {
|
|
4513
4513
|
name: "append-inner",
|
|
4514
4514
|
fn: O(() => [
|
|
4515
|
-
|
|
4515
|
+
M(r(U), {
|
|
4516
4516
|
icon: "lucide-circle-alert",
|
|
4517
4517
|
class: "vc-table-cell-number__error-icon"
|
|
4518
4518
|
})
|
|
@@ -4530,7 +4530,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4530
4530
|
}, ii = {
|
|
4531
4531
|
key: 1,
|
|
4532
4532
|
class: "vc-table-cell-date vc-table-cell-date--not-set"
|
|
4533
|
-
},
|
|
4533
|
+
}, et = /* @__PURE__ */ z({
|
|
4534
4534
|
__name: "CellDate",
|
|
4535
4535
|
props: {
|
|
4536
4536
|
value: {},
|
|
@@ -4538,7 +4538,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4538
4538
|
format: {}
|
|
4539
4539
|
},
|
|
4540
4540
|
setup(e) {
|
|
4541
|
-
const t = e, { t: n } =
|
|
4541
|
+
const t = e, { t: n } = we({ useScope: "global" }), a = window.navigator.language, o = $(() => {
|
|
4542
4542
|
if (!t.value) return "";
|
|
4543
4543
|
if (t.format)
|
|
4544
4544
|
return Zn(t.value, t.format, a);
|
|
@@ -4556,7 +4556,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4556
4556
|
value: {}
|
|
4557
4557
|
},
|
|
4558
4558
|
setup(e) {
|
|
4559
|
-
const t = e, { t: n } =
|
|
4559
|
+
const t = e, { t: n } = we({ useScope: "global" }), a = window.navigator.language, o = $(() => t.value ? (t.value instanceof Date ? t.value : new Date(t.value)).toLocaleString(a) : ""), i = $(() => t.value ? Xn(t.value) : "");
|
|
4560
4560
|
return (l, s) => e.value ? (f(), y("span", {
|
|
4561
4561
|
key: 0,
|
|
4562
4562
|
class: "vc-table-cell-date-ago",
|
|
@@ -4589,7 +4589,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4589
4589
|
setup(e) {
|
|
4590
4590
|
return (t, n) => (f(), P(r(tl), { class: "vc-table-cell-status" }, {
|
|
4591
4591
|
default: O(() => [
|
|
4592
|
-
|
|
4592
|
+
Z(A(e.value), 1)
|
|
4593
4593
|
]),
|
|
4594
4594
|
_: 1
|
|
4595
4595
|
}));
|
|
@@ -4615,7 +4615,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4615
4615
|
setup(e) {
|
|
4616
4616
|
return (t, n) => (f(), P(r(Qa), { class: "vc-table-cell-link" }, {
|
|
4617
4617
|
default: O(() => [
|
|
4618
|
-
|
|
4618
|
+
Z(A(e.value), 1)
|
|
4619
4619
|
]),
|
|
4620
4620
|
_: 1
|
|
4621
4621
|
}));
|
|
@@ -4631,7 +4631,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4631
4631
|
function a(l) {
|
|
4632
4632
|
if (n.has(l))
|
|
4633
4633
|
return n.get(l);
|
|
4634
|
-
const s =
|
|
4634
|
+
const s = Dt.sanitize(l, {
|
|
4635
4635
|
ALLOWED_TAGS: [
|
|
4636
4636
|
"p",
|
|
4637
4637
|
"br",
|
|
@@ -4679,23 +4679,23 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, bt = /* @__PURE__
|
|
|
4679
4679
|
innerHTML: i.value
|
|
4680
4680
|
}, null, 8, mi));
|
|
4681
4681
|
}
|
|
4682
|
-
}),
|
|
4683
|
-
{ type: "text", component:
|
|
4682
|
+
}), Zt = [
|
|
4683
|
+
{ type: "text", component: Xt, config: { editable: !0 } },
|
|
4684
4684
|
{ type: "number", component: li, config: { editable: !0 } },
|
|
4685
4685
|
{ type: "money", component: ti, config: { editable: !0 } },
|
|
4686
|
-
{ type: "date", component:
|
|
4687
|
-
{ type: "time", component:
|
|
4688
|
-
{ type: "datetime", component:
|
|
4686
|
+
{ type: "date", component: et, config: { editable: !1 } },
|
|
4687
|
+
{ type: "time", component: et, config: { editable: !1 } },
|
|
4688
|
+
{ type: "datetime", component: et, config: { editable: !1 } },
|
|
4689
4689
|
{ type: "date-ago", component: ui, config: { editable: !1 } },
|
|
4690
4690
|
{ type: "image", component: ci, config: { editable: !1 } },
|
|
4691
4691
|
{ type: "status", component: di, config: { editable: !1 } },
|
|
4692
4692
|
{ type: "status-icon", component: vi, config: { editable: !1 } },
|
|
4693
4693
|
{ type: "link", component: gi, config: { editable: !1 } },
|
|
4694
4694
|
{ type: "html", component: bi, config: { editable: !1 } }
|
|
4695
|
-
], Er = Object.freeze(
|
|
4695
|
+
], Er = Object.freeze(Zt.map((e) => e.type));
|
|
4696
4696
|
function yi() {
|
|
4697
|
-
const { register: e, has: t } =
|
|
4698
|
-
for (const n of
|
|
4697
|
+
const { register: e, has: t } = Jt();
|
|
4698
|
+
for (const n of Zt)
|
|
4699
4699
|
t(n.type) || e(n);
|
|
4700
4700
|
}
|
|
4701
4701
|
yi();
|
|
@@ -4717,13 +4717,13 @@ const Lr = /* @__PURE__ */ z({
|
|
|
4717
4717
|
},
|
|
4718
4718
|
emits: ["update", "blur"],
|
|
4719
4719
|
setup(e) {
|
|
4720
|
-
const { get: t } =
|
|
4720
|
+
const { get: t } = Jt(), n = e, a = $(() => t(n.type)?.component || Xt), o = $(() => {
|
|
4721
4721
|
const l = t(n.type)?.config?.editable ?? !1, s = {
|
|
4722
4722
|
value: n.value
|
|
4723
4723
|
};
|
|
4724
4724
|
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
4725
|
});
|
|
4726
|
-
return (i, l) => (f(), P(
|
|
4726
|
+
return (i, l) => (f(), P(ut(a.value), ee(o.value, {
|
|
4727
4727
|
onUpdate: l[0] || (l[0] = (s) => i.$emit("update", s)),
|
|
4728
4728
|
onBlur: l[1] || (l[1] = (s) => i.$emit("blur", s))
|
|
4729
4729
|
}), null, 16));
|
|
@@ -4742,34 +4742,34 @@ const Lr = /* @__PURE__ */ z({
|
|
|
4742
4742
|
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
4743
|
};
|
|
4744
4744
|
export {
|
|
4745
|
-
|
|
4745
|
+
Kt as $,
|
|
4746
4746
|
Cr as A,
|
|
4747
4747
|
Er as B,
|
|
4748
4748
|
hr as C,
|
|
4749
4749
|
yi as D,
|
|
4750
4750
|
kr as E,
|
|
4751
|
-
|
|
4752
|
-
|
|
4751
|
+
Oe as F,
|
|
4752
|
+
Jt as G,
|
|
4753
4753
|
ia as H,
|
|
4754
|
-
|
|
4754
|
+
He as I,
|
|
4755
4755
|
sa as J,
|
|
4756
4756
|
wr as K,
|
|
4757
4757
|
fr as L,
|
|
4758
4758
|
or as M,
|
|
4759
4759
|
aa as N,
|
|
4760
|
-
|
|
4760
|
+
dt as O,
|
|
4761
4761
|
ue as P,
|
|
4762
|
-
|
|
4763
|
-
|
|
4762
|
+
$e as Q,
|
|
4763
|
+
qe as R,
|
|
4764
4764
|
er as S,
|
|
4765
4765
|
Kn as T,
|
|
4766
|
-
|
|
4766
|
+
ot as U,
|
|
4767
4767
|
me as V,
|
|
4768
4768
|
la as W,
|
|
4769
|
-
|
|
4769
|
+
Ye as X,
|
|
4770
4770
|
ur as Y,
|
|
4771
4771
|
sr as Z,
|
|
4772
|
-
|
|
4772
|
+
et as _,
|
|
4773
4773
|
Ca as a,
|
|
4774
4774
|
Xo as a$,
|
|
4775
4775
|
gr as a0,
|
|
@@ -4779,7 +4779,7 @@ export {
|
|
|
4779
4779
|
wa as a4,
|
|
4780
4780
|
Oa as a5,
|
|
4781
4781
|
qi as a6,
|
|
4782
|
-
|
|
4782
|
+
ye as a7,
|
|
4783
4783
|
Ma as a8,
|
|
4784
4784
|
ie as a9,
|
|
4785
4785
|
Qi as aA,
|
|
@@ -4792,7 +4792,7 @@ export {
|
|
|
4792
4792
|
Xi as aH,
|
|
4793
4793
|
Gi as aI,
|
|
4794
4794
|
Jn as aJ,
|
|
4795
|
-
|
|
4795
|
+
Vt as aK,
|
|
4796
4796
|
Yi as aL,
|
|
4797
4797
|
La as aM,
|
|
4798
4798
|
_i as aN,
|
|
@@ -4800,7 +4800,7 @@ export {
|
|
|
4800
4800
|
lr as aP,
|
|
4801
4801
|
Ki as aQ,
|
|
4802
4802
|
tr as aR,
|
|
4803
|
-
|
|
4803
|
+
Ht as aS,
|
|
4804
4804
|
yr as aT,
|
|
4805
4805
|
Xl as aU,
|
|
4806
4806
|
ra as aV,
|
|
@@ -4833,12 +4833,12 @@ export {
|
|
|
4833
4833
|
Wn as av,
|
|
4834
4834
|
ea as aw,
|
|
4835
4835
|
ua as ax,
|
|
4836
|
-
|
|
4836
|
+
It as ay,
|
|
4837
4837
|
dr as az,
|
|
4838
4838
|
ui as b,
|
|
4839
4839
|
oa as b0,
|
|
4840
|
-
|
|
4841
|
-
|
|
4840
|
+
Xt as c,
|
|
4841
|
+
yt as d,
|
|
4842
4842
|
bi as e,
|
|
4843
4843
|
ci as f,
|
|
4844
4844
|
gi as g,
|
|
@@ -4851,10 +4851,10 @@ export {
|
|
|
4851
4851
|
Or as n,
|
|
4852
4852
|
Sl as o,
|
|
4853
4853
|
Ka as p,
|
|
4854
|
-
|
|
4854
|
+
bt as q,
|
|
4855
4855
|
Yo as r,
|
|
4856
4856
|
jo as s,
|
|
4857
|
-
|
|
4857
|
+
Je as t,
|
|
4858
4858
|
Qa as u,
|
|
4859
4859
|
ol as v,
|
|
4860
4860
|
qo as w,
|