@vc-shell/framework 2.6.3-rc.0-pr381.e44adf9 → 2.6.3-rc.0-pr379.dc63cf1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-agent/index.js +3 -3
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_script_setup_true_lang-CeicZwqW.js → VcAiAgentPanel.vue_vue_type_script_setup_true_lang-dCG9R7uD.js} +1 -1
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_script_setup_true_lang-CeicZwqW.js.map → VcAiAgentPanel.vue_vue_type_script_setup_true_lang-dCG9R7uD.js.map} +1 -1
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-Di_7qCFv.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-DzDHuxUZ.js} +259 -259
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-Di_7qCFv.js.map → VcAiAgentPanel.vue_vue_type_style_index_0_lang-DzDHuxUZ.js.map} +1 -1
- package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-SLAzCa01.js → VcScheduler.vue_vue_type_script_setup_true_lang-BZl7ykH4.js} +3715 -3691
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-BZl7ykH4.js.map +1 -0
- package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang-Cts7Z-jQ.js → VcScheduler.vue_vue_type_style_index_0_lang-CLKJLw-Z.js} +625 -617
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-CLKJLw-Z.js.map +1 -0
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-CWIBUWHJ.js → dashboard-feed-row.vue_vue_type_script_setup_true_lang-FF0FHTmO.js} +58 -58
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-CWIBUWHJ.js.map → dashboard-feed-row.vue_vue_type_script_setup_true_lang-FF0FHTmO.js.map} +1 -1
- package/dist/chunks/{index-CzfVdRiW.js → index-DBK33mvh.js} +2 -2
- package/dist/chunks/{index-CzfVdRiW.js.map → index-DBK33mvh.js.map} +1 -1
- package/dist/core/composables/useUser/index.d.ts +1 -1
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/composables/useUserManagement/index.d.ts +1 -2
- package/dist/core/composables/useUserManagement/index.d.ts.map +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/framework.js +1040 -1052
- package/dist/framework.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/locales/de.js +0 -3
- package/dist/locales/en.js +0 -3
- package/dist/locales/en.json +0 -3
- package/dist/locales/types.d.ts +0 -3
- package/dist/shell/auth/LoginPage/components/login/Login.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-scheduler/VcScheduler.vue.d.ts.map +1 -1
- package/dist/ui/composables/useScrollArrows.d.ts +7 -0
- package/dist/ui/composables/useScrollArrows.d.ts.map +1 -1
- package/dist/ui/index.js +34 -33
- package/package.json +4 -4
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-SLAzCa01.js.map +0 -1
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-Cts7Z-jQ.js.map +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { mergeProps as ee, computed as $, toValue as be, inject as Y, useId as
|
|
2
|
-
import { c as ge, ai as
|
|
3
|
-
import { defineRule as Be, Field as
|
|
1
|
+
import { mergeProps as ee, computed as $, toValue as be, inject as Y, useId as ln, ref as I, onBeforeUnmount as rt, reactive as Ze, provide as Et, getCurrentScope as on, onScopeDispose as rn, getCurrentInstance as We, onErrorCaptured as sn, 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 un, useAttrs as Lt, vModelDynamic as cn, onMounted as je, onUnmounted as Bt, Teleport as dn, normalizeProps as Ae, guardReactiveProps as Ne } from "vue";
|
|
2
|
+
import { c as ge, ai as fn, P as vn, x as gn, t as mn, q as pn, I as bn, s as yn, r as hn, B as Ct, b as kn, i as In, _ as U, T as xt, a as Tt, X as Sn, y as $n, u as wn } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-DzDHuxUZ.js";
|
|
3
|
+
import { defineRule as Be, Field as On } from "vee-validate";
|
|
4
4
|
import { a as kt } from "./vendor-vee-validate-rules-4oWUZPpG.js";
|
|
5
|
-
import { a as
|
|
6
|
-
import { X as
|
|
7
|
-
import { d as
|
|
8
|
-
import { c as
|
|
5
|
+
import { a as Rt, s as En, c as Ln, b as Qe, e as De } from "./vendor-lodash-es-D2n90GJy.js";
|
|
6
|
+
import { X as Bn } from "./vendor-microsoft-applicationinsights-core-js-CR3vyuZc.js";
|
|
7
|
+
import { d as Mt, e as Cn, f as xn, g as Tn } from "./vendor-vueuse-core-BwXFv1rx.js";
|
|
8
|
+
import { c as Rn, u as we } from "./vendor-vue-i18n-LO-EJStU.js";
|
|
9
9
|
import { j as Mn } from "./vendor-vueuse-shared-BPTQMqzb.js";
|
|
10
|
-
import { k as
|
|
10
|
+
import { k as An } from "./vendor-tiptap-core-CZbeo7XQ.js";
|
|
11
11
|
import "./vendor-tiptap-extension-text-style-Bc6nvmn0.js";
|
|
12
|
-
import { q as
|
|
13
|
-
import { C as
|
|
14
|
-
import { u as
|
|
15
|
-
import { f as At, s as Nt, o as lt, b as
|
|
16
|
-
import { v as
|
|
12
|
+
import { q as Nn } from "./vendor-vuepic-vue-datepicker-D0bvbIbh.js";
|
|
13
|
+
import { C as Dn, u as Vn } from "./vendor-vue-currency-input-CckB4kjx.js";
|
|
14
|
+
import { u as Pn } from "./vendor-floating-ui-vue-sCrhit51.js";
|
|
15
|
+
import { f as At, s as Nt, o as lt, b as Fn } from "./vendor-floating-ui-dom-BvVXFZ4B.js";
|
|
16
|
+
import { v as zn } from "./vendor-vueuse-components-BTQXlUpM.js";
|
|
17
17
|
import { p as Dt } from "./vendor-dompurify-DpIUMBYC.js";
|
|
18
|
-
import { S as Ie, h as
|
|
19
|
-
import { t as
|
|
20
|
-
const $e =
|
|
18
|
+
import { S as Ie, h as qn, T as Un } from "./vendor-date-fns-C-55OMpS.js";
|
|
19
|
+
import { t as Kn } from "./vendor-truncate-html-ChA1T5zy.js";
|
|
20
|
+
const $e = Rn({
|
|
21
21
|
legacy: !1,
|
|
22
22
|
globalInjection: !0,
|
|
23
23
|
locale: "en",
|
|
@@ -41,17 +41,17 @@ class ie extends Error {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
class
|
|
44
|
+
class Fi extends ie {
|
|
45
45
|
constructor(t, n) {
|
|
46
46
|
super(t, "VALIDATION_ERROR", n), this.name = "ValidationError";
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
class
|
|
49
|
+
class zi extends ie {
|
|
50
50
|
constructor(t, n) {
|
|
51
51
|
super(t, "SERVICE_ERROR", n), this.name = "ServiceError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
class
|
|
54
|
+
class Wn extends ie {
|
|
55
55
|
constructor(t, n) {
|
|
56
56
|
super(`${t} not provided. Make sure to call the corresponding 'provide' function.`, "INJECTION_ERROR", {
|
|
57
57
|
serviceName: t,
|
|
@@ -59,7 +59,7 @@ class Kn extends ie {
|
|
|
59
59
|
}), this.name = "InjectionError";
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
class
|
|
62
|
+
class qi extends ie {
|
|
63
63
|
constructor(t, n, a) {
|
|
64
64
|
super(`Failed to register '${t}': ${n}`, "REGISTRATION_ERROR", {
|
|
65
65
|
componentName: t,
|
|
@@ -67,7 +67,7 @@ class zi extends ie {
|
|
|
67
67
|
}), this.name = "RegistrationError";
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
class
|
|
70
|
+
class Ui extends ie {
|
|
71
71
|
constructor(t, n, a) {
|
|
72
72
|
super(t, "BLADE_ERROR", {
|
|
73
73
|
bladeId: n,
|
|
@@ -75,7 +75,7 @@ class qi extends ie {
|
|
|
75
75
|
}), this.name = "BladeError";
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
class
|
|
78
|
+
class Ki extends ie {
|
|
79
79
|
constructor(t, n, a) {
|
|
80
80
|
super(`Failed to load module '${t}': ${n}`, "MODULE_LOAD_ERROR", {
|
|
81
81
|
moduleId: t,
|
|
@@ -83,11 +83,11 @@ class Ui extends ie {
|
|
|
83
83
|
}), this.name = "ModuleLoadError";
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function jn(e) {
|
|
87
87
|
return e instanceof ie;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
return
|
|
89
|
+
function Wi(e, t = "UNKNOWN_ERROR") {
|
|
90
|
+
return jn(e) ? e : e instanceof Error ? new ie(e.message, t, {
|
|
91
91
|
originalError: e.name,
|
|
92
92
|
stack: e.stack
|
|
93
93
|
}) : new ie(String(e), t);
|
|
@@ -99,13 +99,13 @@ class ye extends Error {
|
|
|
99
99
|
super(t), this.name = "DisplayableError", this.details = n, this.originalError = a;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Hn(e) {
|
|
103
103
|
return e instanceof Error && typeof e.status == "number" && typeof e.response == "string";
|
|
104
104
|
}
|
|
105
105
|
function qe(e) {
|
|
106
106
|
if (e instanceof ye)
|
|
107
107
|
return e;
|
|
108
|
-
if (
|
|
108
|
+
if (Hn(e)) {
|
|
109
109
|
const { status: t, response: n } = e;
|
|
110
110
|
try {
|
|
111
111
|
return qe(JSON.parse(n));
|
|
@@ -138,14 +138,14 @@ function qe(e) {
|
|
|
138
138
|
}
|
|
139
139
|
return new ye("An unknown error occurred.", String(e), e);
|
|
140
140
|
}
|
|
141
|
-
const
|
|
141
|
+
const Gn = [
|
|
142
142
|
["LLLL", "PPPp"],
|
|
143
143
|
["LLL", "PPp"],
|
|
144
144
|
["LTS", "pp"],
|
|
145
145
|
["LT", "p"],
|
|
146
146
|
["LL", "PP"],
|
|
147
147
|
["L", "P"]
|
|
148
|
-
],
|
|
148
|
+
], Yn = [
|
|
149
149
|
[/YYYY/g, "yyyy"],
|
|
150
150
|
[/YY/g, "yy"],
|
|
151
151
|
[/dddd/g, "EEEE"],
|
|
@@ -155,18 +155,18 @@ const Hn = [
|
|
|
155
155
|
[/D(?![\w])/g, "d"],
|
|
156
156
|
[/A/g, "a"]
|
|
157
157
|
];
|
|
158
|
-
function
|
|
158
|
+
function Jn(e) {
|
|
159
159
|
let t = e;
|
|
160
|
-
for (const [n, a] of Hn)
|
|
161
|
-
t = t.split(n).join(a);
|
|
162
160
|
for (const [n, a] of Gn)
|
|
161
|
+
t = t.split(n).join(a);
|
|
162
|
+
for (const [n, a] of Yn)
|
|
163
163
|
t = t.replace(n, a);
|
|
164
164
|
return t;
|
|
165
165
|
}
|
|
166
166
|
const fe = /* @__PURE__ */ new Map();
|
|
167
167
|
fe.set("en-US", Ie);
|
|
168
168
|
fe.set("en", Ie);
|
|
169
|
-
async function
|
|
169
|
+
async function Xn(e) {
|
|
170
170
|
if (fe.has(e))
|
|
171
171
|
return fe.get(e);
|
|
172
172
|
try {
|
|
@@ -190,7 +190,7 @@ async function Jn(e) {
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
function Vt(e) {
|
|
193
|
-
return fe.has(e) ? fe.get(e) : (
|
|
193
|
+
return fe.has(e) ? fe.get(e) : (Xn(e), Ie);
|
|
194
194
|
}
|
|
195
195
|
function Pt(e) {
|
|
196
196
|
if (e == null || e === "") return null;
|
|
@@ -198,20 +198,20 @@ function Pt(e) {
|
|
|
198
198
|
const t = new Date(e);
|
|
199
199
|
return isNaN(t.getTime()) ? null : t;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function Zn(e, t) {
|
|
202
202
|
const n = Pt(e);
|
|
203
203
|
if (!n) return "";
|
|
204
204
|
const a = t ? Vt(t) : void 0;
|
|
205
|
-
return
|
|
205
|
+
return Un(n, { addSuffix: !0, locale: a });
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Qn(e, t, n) {
|
|
208
208
|
const a = Pt(e);
|
|
209
209
|
if (!a) return "";
|
|
210
|
-
const o =
|
|
211
|
-
return
|
|
210
|
+
const o = Jn(t), i = n ? Vt(n) : void 0;
|
|
211
|
+
return qn(a, o, { locale: i });
|
|
212
212
|
}
|
|
213
|
-
const
|
|
214
|
-
function
|
|
213
|
+
const _n = ge("color-utils");
|
|
214
|
+
function ea(e) {
|
|
215
215
|
if (!e || typeof e != "string")
|
|
216
216
|
return null;
|
|
217
217
|
try {
|
|
@@ -220,10 +220,10 @@ function _n(e) {
|
|
|
220
220
|
const n = t.getContext("2d");
|
|
221
221
|
return !n || (n.fillStyle = e.trim(), n.fillStyle === "#000000" && e.trim().toLowerCase() !== "black") ? null : n.fillStyle;
|
|
222
222
|
} catch (t) {
|
|
223
|
-
return
|
|
223
|
+
return _n.warn("Error converting color name to hex:", t), null;
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function ta(e) {
|
|
227
227
|
if (!e || typeof e != "string")
|
|
228
228
|
return !1;
|
|
229
229
|
const t = e.startsWith("#") ? e : `#${e}`;
|
|
@@ -232,7 +232,7 @@ function ea(e) {
|
|
|
232
232
|
function It(e) {
|
|
233
233
|
return !e || typeof e != "string" ? "" : e.startsWith("#") ? e : `#${e}`;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function na(e, t) {
|
|
236
236
|
if (!e || !t || e.includes(`_${t}`)) return e;
|
|
237
237
|
const n = e.lastIndexOf("/"), a = e.indexOf("?", n), i = (a > -1 ? e.slice(n + 1, a) : e.slice(n + 1)).lastIndexOf(".");
|
|
238
238
|
if (i <= 0)
|
|
@@ -240,10 +240,10 @@ function ta(e, t) {
|
|
|
240
240
|
const l = n + 1 + i, s = e.slice(0, l), u = e.slice(l);
|
|
241
241
|
return `${s}_${t}${u}`;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function ji(e) {
|
|
244
244
|
return e <= 64 ? "64x64" : e <= 128 ? "128x128" : e <= 168 ? "168x168" : e <= 216 ? "216x216" : e <= 348 ? "348x348" : "lg";
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function aa(e) {
|
|
247
247
|
let t = null;
|
|
248
248
|
return {
|
|
249
249
|
register(n) {
|
|
@@ -257,7 +257,7 @@ function na(e) {
|
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function Hi() {
|
|
261
261
|
const e = /* @__PURE__ */ new Map();
|
|
262
262
|
return {
|
|
263
263
|
register(t, n) {
|
|
@@ -272,7 +272,7 @@ function ji() {
|
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
274
|
const dt = () => {
|
|
275
|
-
const e =
|
|
275
|
+
const e = fn();
|
|
276
276
|
return {
|
|
277
277
|
user: e.user,
|
|
278
278
|
loading: e.loading,
|
|
@@ -289,7 +289,7 @@ const dt = () => {
|
|
|
289
289
|
signOut: e.signOut
|
|
290
290
|
};
|
|
291
291
|
};
|
|
292
|
-
function
|
|
292
|
+
function la() {
|
|
293
293
|
const { user: e } = dt();
|
|
294
294
|
function t(n) {
|
|
295
295
|
const a = e.value?.permissions ?? [];
|
|
@@ -305,8 +305,8 @@ function aa() {
|
|
|
305
305
|
hasAccess: t
|
|
306
306
|
};
|
|
307
307
|
}
|
|
308
|
-
const ke = ge("notification"), pe =
|
|
309
|
-
function
|
|
308
|
+
const ke = ge("notification"), pe = aa();
|
|
309
|
+
function oa(e) {
|
|
310
310
|
pe.register(e);
|
|
311
311
|
}
|
|
312
312
|
function Fe(e, t) {
|
|
@@ -396,12 +396,12 @@ ue.debug = () => {
|
|
|
396
396
|
defaultOptions: e.defaultOptions
|
|
397
397
|
};
|
|
398
398
|
};
|
|
399
|
-
const
|
|
399
|
+
const ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
400
400
|
__proto__: null,
|
|
401
401
|
notification: ue,
|
|
402
|
-
setNotificationBackend:
|
|
402
|
+
setNotificationBackend: oa
|
|
403
403
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
404
|
-
function
|
|
404
|
+
function ra(e, t, n = {}) {
|
|
405
405
|
const a = $(() => be(n.placement) ?? "bottom"), o = $(() => be(n.strategy) ?? "absolute"), i = $(() => {
|
|
406
406
|
const u = be(n.middleware);
|
|
407
407
|
if (u?.length)
|
|
@@ -416,10 +416,10 @@ function ia(e, t, n = {}) {
|
|
|
416
416
|
alignmentAxis: m?.alignmentAxis
|
|
417
417
|
})
|
|
418
418
|
), v;
|
|
419
|
-
}), l =
|
|
419
|
+
}), l = Pn(e, t, {
|
|
420
420
|
placement: a,
|
|
421
421
|
strategy: o,
|
|
422
|
-
whileElementsMounted: be(n.autoUpdate) === !1 ? void 0 :
|
|
422
|
+
whileElementsMounted: be(n.autoUpdate) === !1 ? void 0 : Fn,
|
|
423
423
|
middleware: i
|
|
424
424
|
}), s = $(() => ({
|
|
425
425
|
position: o.value,
|
|
@@ -433,9 +433,9 @@ function ia(e, t, n = {}) {
|
|
|
433
433
|
resolvedStrategy: o
|
|
434
434
|
};
|
|
435
435
|
}
|
|
436
|
-
const
|
|
436
|
+
const sa = Symbol("vc-input-group-context");
|
|
437
437
|
function He(e) {
|
|
438
|
-
const t = Y(
|
|
438
|
+
const t = Y(sa, null), n = ln(), 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
|
});
|
|
@@ -452,7 +452,11 @@ function He(e) {
|
|
|
452
452
|
groupContext: t
|
|
453
453
|
};
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function Ft(e) {
|
|
456
|
+
const t = 1 / (window.devicePixelRatio || 1);
|
|
457
|
+
return e.scrollTop + e.clientHeight >= e.scrollHeight - 1 - t;
|
|
458
|
+
}
|
|
459
|
+
function ua(e, t = {}) {
|
|
456
460
|
const { speed: n = 2 } = t, a = I(!1), o = I(!1);
|
|
457
461
|
let i = null;
|
|
458
462
|
function l() {
|
|
@@ -461,7 +465,7 @@ function sa(e, t = {}) {
|
|
|
461
465
|
a.value = !1, o.value = !1;
|
|
462
466
|
return;
|
|
463
467
|
}
|
|
464
|
-
a.value = v.scrollTop > 0, o.value =
|
|
468
|
+
a.value = v.scrollTop > 0, o.value = !Ft(v);
|
|
465
469
|
}
|
|
466
470
|
function s(v) {
|
|
467
471
|
u();
|
|
@@ -475,7 +479,7 @@ function sa(e, t = {}) {
|
|
|
475
479
|
function u() {
|
|
476
480
|
i !== null && (cancelAnimationFrame(i), i = null);
|
|
477
481
|
}
|
|
478
|
-
return
|
|
482
|
+
return Mt(e, l), rt(() => {
|
|
479
483
|
u();
|
|
480
484
|
}), {
|
|
481
485
|
canScrollUp: a,
|
|
@@ -486,12 +490,12 @@ function sa(e, t = {}) {
|
|
|
486
490
|
};
|
|
487
491
|
}
|
|
488
492
|
function Oe() {
|
|
489
|
-
return Y(
|
|
493
|
+
return Y(vn, I(!1));
|
|
490
494
|
}
|
|
491
495
|
Object.keys(kt).forEach((e) => {
|
|
492
496
|
Be(e, kt[e]);
|
|
493
497
|
});
|
|
494
|
-
const
|
|
498
|
+
const ca = (e, [t, n]) => {
|
|
495
499
|
if (!e?.files || !e.files?.length)
|
|
496
500
|
return !0;
|
|
497
501
|
const a = (l, s, u) => {
|
|
@@ -517,8 +521,8 @@ const ua = (e, [t, n]) => {
|
|
|
517
521
|
return s === !1 || typeof s == "string" ? s : !0;
|
|
518
522
|
});
|
|
519
523
|
};
|
|
520
|
-
Be("mindimensions",
|
|
521
|
-
const
|
|
524
|
+
Be("mindimensions", ca);
|
|
525
|
+
const da = (e, [t]) => {
|
|
522
526
|
if (!e?.files || !e.files?.length)
|
|
523
527
|
return !0;
|
|
524
528
|
const n = t * 1e3, a = (s) => s.size > n, o = [];
|
|
@@ -526,18 +530,18 @@ const ca = (e, [t]) => {
|
|
|
526
530
|
o.push(e.files[s]);
|
|
527
531
|
return o.map((s) => a(s)).find((s) => s === !0) ? $e.global.t("messages.file_weight", { size: t }) : !0;
|
|
528
532
|
};
|
|
529
|
-
Be("fileWeight",
|
|
530
|
-
const
|
|
533
|
+
Be("fileWeight", da);
|
|
534
|
+
const zt = (e, [t], n, a) => {
|
|
531
535
|
if (!e || typeof e == "string" && !e.length)
|
|
532
536
|
return !0;
|
|
533
537
|
let o, i;
|
|
534
538
|
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
|
-
},
|
|
536
|
-
Be("before",
|
|
537
|
-
const
|
|
538
|
-
Be("after",
|
|
539
|
-
const
|
|
540
|
-
Be("bigint",
|
|
539
|
+
}, fa = (e, [t]) => zt(e, [t], (n, a) => n < a, $e.global.t("messages.before"));
|
|
540
|
+
Be("before", fa);
|
|
541
|
+
const va = (e, [t]) => zt(e, [t], (n, a) => n > a, $e.global.t("messages.after"));
|
|
542
|
+
Be("after", va);
|
|
543
|
+
const ga = (e) => Number.isSafeInteger(parseInt(e)) ? !0 : $e.global.t("messages.bigint");
|
|
544
|
+
Be("bigint", ga);
|
|
541
545
|
function Ce(e) {
|
|
542
546
|
const t = ge(`${e.name}-bus`), n = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set();
|
|
543
547
|
function o(d) {
|
|
@@ -598,7 +602,7 @@ function Ce(e) {
|
|
|
598
602
|
}
|
|
599
603
|
};
|
|
600
604
|
}
|
|
601
|
-
function
|
|
605
|
+
function qt(e) {
|
|
602
606
|
const t = Ze({}), n = Ze([]), a = Ze(/* @__PURE__ */ new Map());
|
|
603
607
|
function o(d) {
|
|
604
608
|
a.set(d, (a.get(d) ?? 0) + 1);
|
|
@@ -664,7 +668,7 @@ function zt(e) {
|
|
|
664
668
|
isRegistered: g
|
|
665
669
|
};
|
|
666
670
|
}
|
|
667
|
-
function
|
|
671
|
+
function ma(e) {
|
|
668
672
|
const t = I(/* @__PURE__ */ new Map()), n = $(() => Array.from(t.value.values()).sort((i, l) => (i.order ?? 0) - (l.order ?? 0)));
|
|
669
673
|
function a(i) {
|
|
670
674
|
const l = e.getId(i) || crypto.randomUUID(), s = e.createItem(i, t.value.size);
|
|
@@ -680,8 +684,8 @@ function ga(e) {
|
|
|
680
684
|
unregister: o
|
|
681
685
|
};
|
|
682
686
|
}
|
|
683
|
-
function
|
|
684
|
-
const t =
|
|
687
|
+
function Ut(e) {
|
|
688
|
+
const t = ma({
|
|
685
689
|
createItem: e.createItem,
|
|
686
690
|
getId: e.getId
|
|
687
691
|
}), n = {
|
|
@@ -692,41 +696,41 @@ function qt(e) {
|
|
|
692
696
|
return e.bus.replayInto(n), n;
|
|
693
697
|
}
|
|
694
698
|
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(
|
|
699
|
+
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
700
|
}
|
|
697
701
|
const ze = I(/* @__PURE__ */ new Map()), ve = Ce({
|
|
698
702
|
name: "menu-service",
|
|
699
703
|
getKey: Ke,
|
|
700
704
|
registerIntoService: (e, t) => e.addMenuItem(t)
|
|
701
705
|
});
|
|
702
|
-
function
|
|
706
|
+
function Gi(e) {
|
|
703
707
|
ve.preregister(e);
|
|
704
708
|
}
|
|
705
|
-
function
|
|
709
|
+
function Yi(e) {
|
|
706
710
|
ve.removePreregistered((t) => ft(t, e)), ve.broadcast((t) => t.removeMenuItem(e));
|
|
707
711
|
}
|
|
708
|
-
function
|
|
712
|
+
function Ji(e, t) {
|
|
709
713
|
ze.value.set(e, t), ve.broadcast((n) => {
|
|
710
714
|
n.menuBadges.value.set(e, t);
|
|
711
715
|
});
|
|
712
716
|
}
|
|
713
|
-
function
|
|
717
|
+
function Xi(e) {
|
|
714
718
|
const t = ve.getFirstInstance();
|
|
715
719
|
return t ? t.menuBadges.value.get(e) : ze.value.get(e);
|
|
716
720
|
}
|
|
717
|
-
function
|
|
721
|
+
function Zi(e) {
|
|
718
722
|
ze.value.delete(e), ve.broadcast((t) => {
|
|
719
723
|
t.menuBadges.value.delete(e);
|
|
720
724
|
});
|
|
721
725
|
}
|
|
722
|
-
function
|
|
726
|
+
function Qi() {
|
|
723
727
|
return ve.getFirstInstance()?.menuBadges ?? ze;
|
|
724
728
|
}
|
|
725
|
-
const it = 1 / 0,
|
|
729
|
+
const it = 1 / 0, pa = 1 / 0;
|
|
726
730
|
function ft(e, t) {
|
|
727
731
|
return Ke(e) === Ke(t);
|
|
728
732
|
}
|
|
729
|
-
function
|
|
733
|
+
function ba(e) {
|
|
730
734
|
return e.groupConfig ? {
|
|
731
735
|
groupId: e.groupConfig.id,
|
|
732
736
|
groupTitle: e.groupConfig.title || e.groupConfig.id,
|
|
@@ -734,23 +738,23 @@ function pa(e) {
|
|
|
734
738
|
groupPriority: e.groupConfig.priority,
|
|
735
739
|
groupPermissions: e.groupConfig.permissions
|
|
736
740
|
} : {
|
|
737
|
-
groupId: "group_" +
|
|
741
|
+
groupId: "group_" + En(e.group),
|
|
738
742
|
groupTitle: e.group,
|
|
739
743
|
groupIcon: e.groupIcon,
|
|
740
744
|
groupPriority: e.priority,
|
|
741
745
|
groupPermissions: void 0
|
|
742
746
|
};
|
|
743
747
|
}
|
|
744
|
-
function
|
|
748
|
+
function ya(e, t) {
|
|
745
749
|
return (e.priority ?? it) - (t.priority ?? it);
|
|
746
750
|
}
|
|
747
|
-
function
|
|
748
|
-
const n = (a) => a.inGroupPriority ?? a.priority ??
|
|
751
|
+
function ha(e, t) {
|
|
752
|
+
const n = (a) => a.inGroupPriority ?? a.priority ?? pa;
|
|
749
753
|
return n(e) - n(t);
|
|
750
754
|
}
|
|
751
|
-
function
|
|
752
|
-
const n =
|
|
753
|
-
...
|
|
755
|
+
function ka(e, t) {
|
|
756
|
+
const n = ba(e), a = {
|
|
757
|
+
...Rt(e, ["group", "groupIcon", "groupPriority", "groupConfig"])
|
|
754
758
|
}, o = t.get(n.groupId);
|
|
755
759
|
if (o) {
|
|
756
760
|
const i = [...o.children ?? []], l = i.findIndex((s) => ft(s, a));
|
|
@@ -775,18 +779,18 @@ function ha(e, t) {
|
|
|
775
779
|
function St(e) {
|
|
776
780
|
const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
777
781
|
for (const a of e)
|
|
778
|
-
a.group || a.groupConfig ?
|
|
779
|
-
return
|
|
782
|
+
a.group || a.groupConfig ? ka(a, t) : a.title && n.set(Ke(a), { ...a });
|
|
783
|
+
return Ia([...t.values(), ...n.values()]);
|
|
780
784
|
}
|
|
781
|
-
function
|
|
785
|
+
function Ia(e) {
|
|
782
786
|
return e.map(
|
|
783
787
|
(t) => ({
|
|
784
788
|
...t,
|
|
785
|
-
children: t.children ? [...t.children].sort(
|
|
789
|
+
children: t.children ? [...t.children].sort(ha) : void 0
|
|
786
790
|
})
|
|
787
|
-
).sort(
|
|
791
|
+
).sort(ya);
|
|
788
792
|
}
|
|
789
|
-
function
|
|
793
|
+
function Sa() {
|
|
790
794
|
const e = I([]);
|
|
791
795
|
let t = [];
|
|
792
796
|
const n = I(new Map(ze.value));
|
|
@@ -812,12 +816,12 @@ function Ge(e) {
|
|
|
812
816
|
if (u)
|
|
813
817
|
return u;
|
|
814
818
|
const v = n();
|
|
815
|
-
return Et(t, v),
|
|
819
|
+
return Et(t, v), on() && rn(() => a.dispose(v)), v;
|
|
816
820
|
}
|
|
817
821
|
function s() {
|
|
818
822
|
const u = Y(t, null);
|
|
819
823
|
if (!u)
|
|
820
|
-
throw i?.(), new
|
|
824
|
+
throw i?.(), new Wn(o);
|
|
821
825
|
return u;
|
|
822
826
|
}
|
|
823
827
|
return {
|
|
@@ -825,37 +829,37 @@ function Ge(e) {
|
|
|
825
829
|
use: s
|
|
826
830
|
};
|
|
827
831
|
}
|
|
828
|
-
const
|
|
829
|
-
key:
|
|
830
|
-
create:
|
|
832
|
+
const $a = ge("use-menu-service"), Kt = Ge({
|
|
833
|
+
key: gn,
|
|
834
|
+
create: Sa,
|
|
831
835
|
bus: ve,
|
|
832
836
|
name: "MenuService",
|
|
833
|
-
onMissing: () =>
|
|
837
|
+
onMissing: () => $a.error("Menu service not found in current context. Injection chain:", We())
|
|
834
838
|
});
|
|
835
|
-
function Qi() {
|
|
836
|
-
return Ut.provide();
|
|
837
|
-
}
|
|
838
839
|
function _i() {
|
|
839
|
-
return
|
|
840
|
+
return Kt.provide();
|
|
841
|
+
}
|
|
842
|
+
function er() {
|
|
843
|
+
return Kt.use();
|
|
840
844
|
}
|
|
841
845
|
function Ye() {
|
|
842
846
|
return {
|
|
843
|
-
isMobile: Y(
|
|
844
|
-
isDesktop: Y(
|
|
845
|
-
isPhone: Y(
|
|
846
|
-
isTablet: Y(
|
|
847
|
-
isTouch: Y(
|
|
847
|
+
isMobile: Y(hn, I(!1)),
|
|
848
|
+
isDesktop: Y(yn, I(!0)),
|
|
849
|
+
isPhone: Y(bn, I(!1)),
|
|
850
|
+
isTablet: Y(pn, I(!1)),
|
|
851
|
+
isTouch: Y(mn, !1)
|
|
848
852
|
};
|
|
849
853
|
}
|
|
850
|
-
const
|
|
851
|
-
function
|
|
852
|
-
const e = Y(
|
|
854
|
+
const wa = Symbol("AppInsightsOptions"), Oa = Symbol("AppInsightsInstance");
|
|
855
|
+
function Ea() {
|
|
856
|
+
const e = Y(Oa, null), { user: t } = dt(), n = Y(wa, void 0);
|
|
853
857
|
function a() {
|
|
854
858
|
const o = n?.appName ? `[${n.appName}] ` : "", i = (u) => `${o}${u.name}`;
|
|
855
859
|
function l(u) {
|
|
856
860
|
if (!e) return;
|
|
857
861
|
const v = i(u);
|
|
858
|
-
e.context.telemetryTrace.traceID =
|
|
862
|
+
e.context.telemetryTrace.traceID = Bn(), e.context.telemetryTrace.name = u.name, e.startTrackPage(v);
|
|
859
863
|
}
|
|
860
864
|
function s(u) {
|
|
861
865
|
if (!e) return;
|
|
@@ -875,13 +879,13 @@ function Oa() {
|
|
|
875
879
|
appInsights: e
|
|
876
880
|
};
|
|
877
881
|
}
|
|
878
|
-
const
|
|
879
|
-
function
|
|
880
|
-
const t = I(null), n = We(), { appInsights: a } =
|
|
882
|
+
const La = ge("use-error-handler");
|
|
883
|
+
function Ba(e) {
|
|
884
|
+
const t = I(null), n = We(), { appInsights: a } = Ea(), { user: o } = dt(), i = I(!1);
|
|
881
885
|
function l() {
|
|
882
886
|
t.value = null, n && n.emit("reset");
|
|
883
887
|
}
|
|
884
|
-
return
|
|
888
|
+
return sn((s) => {
|
|
885
889
|
if (i.value)
|
|
886
890
|
return !e;
|
|
887
891
|
i.value = !0;
|
|
@@ -892,7 +896,7 @@ function La(e) {
|
|
|
892
896
|
userId: o.value?.id ?? "",
|
|
893
897
|
userName: o.value?.userName ?? ""
|
|
894
898
|
}
|
|
895
|
-
}),
|
|
899
|
+
}), La.error("Captured Error:", u.originalError), n && n.emit("error", u), Se(() => {
|
|
896
900
|
i.value = !1;
|
|
897
901
|
}), !e;
|
|
898
902
|
}), {
|
|
@@ -901,20 +905,20 @@ function La(e) {
|
|
|
901
905
|
};
|
|
902
906
|
}
|
|
903
907
|
const Ue = /* @__PURE__ */ new WeakMap();
|
|
904
|
-
function
|
|
908
|
+
function tr(e, t, n) {
|
|
905
909
|
Ue.set(e, { timerId: t, notifId: n });
|
|
906
910
|
}
|
|
907
|
-
function
|
|
911
|
+
function Ca(e) {
|
|
908
912
|
if (e && typeof e == "object") {
|
|
909
913
|
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
914
|
if (a && o)
|
|
911
|
-
return clearTimeout(a.timerId), Promise.resolve().then(() =>
|
|
915
|
+
return clearTimeout(a.timerId), Promise.resolve().then(() => ia).then(({ notification: i }) => {
|
|
912
916
|
i.remove(a.notifId);
|
|
913
917
|
}), Ue.delete(o), !0;
|
|
914
918
|
}
|
|
915
919
|
return !1;
|
|
916
920
|
}
|
|
917
|
-
const
|
|
921
|
+
const nr = z({
|
|
918
922
|
name: "ErrorInterceptor",
|
|
919
923
|
props: {
|
|
920
924
|
capture: {
|
|
@@ -931,11 +935,11 @@ const tr = z({
|
|
|
931
935
|
}
|
|
932
936
|
},
|
|
933
937
|
setup(e, { slots: t }) {
|
|
934
|
-
const n = Y(Ct, void 0), a = Y(
|
|
938
|
+
const n = Y(Ct, void 0), a = Y(kn, void 0), o = !!(n && a), { error: i, reset: l } = Ba(o || e.capture);
|
|
935
939
|
return o && j(i, (s) => {
|
|
936
940
|
const u = n.value.id;
|
|
937
941
|
if (s) {
|
|
938
|
-
if (
|
|
942
|
+
if (Ca(s), In())
|
|
939
943
|
return;
|
|
940
944
|
a.setBladeError(u, s);
|
|
941
945
|
} else
|
|
@@ -945,7 +949,7 @@ const tr = z({
|
|
|
945
949
|
reset: l
|
|
946
950
|
});
|
|
947
951
|
}
|
|
948
|
-
}),
|
|
952
|
+
}), xa = Symbol("vc-button-group"), Ta = ["type", "disabled", "aria-disabled", "aria-label", "aria-busy", "aria-pressed"], Ra = {
|
|
949
953
|
key: 2,
|
|
950
954
|
class: "vc-button__title"
|
|
951
955
|
}, Ma = /* @__PURE__ */ z({
|
|
@@ -968,7 +972,7 @@ const tr = z({
|
|
|
968
972
|
const n = {
|
|
969
973
|
base: "default",
|
|
970
974
|
xs: "sm"
|
|
971
|
-
}, a = e, o = Oe(), i = t, l = Y(
|
|
975
|
+
}, a = e, o = Oe(), i = t, l = Y(xa, null), s = $(() => {
|
|
972
976
|
const c = l?.size?.value ?? a.size;
|
|
973
977
|
return n[c] ?? c;
|
|
974
978
|
}), u = I(null), v = $(() => a.disabled || a.loading), m = I(!1);
|
|
@@ -1014,25 +1018,25 @@ const tr = z({
|
|
|
1014
1018
|
icon: e.icon,
|
|
1015
1019
|
size: e.iconSize
|
|
1016
1020
|
}, null, 8, ["class", "icon", "size"])) : w("", !0),
|
|
1017
|
-
c.$slots.default ? (f(), y("span",
|
|
1021
|
+
c.$slots.default ? (f(), y("span", Ra, [
|
|
1018
1022
|
T(c.$slots, "default")
|
|
1019
1023
|
])) : w("", !0)
|
|
1020
|
-
], 42,
|
|
1024
|
+
], 42, Ta));
|
|
1021
1025
|
}
|
|
1022
1026
|
}), vt = Ce({
|
|
1023
1027
|
name: "toolbar-service",
|
|
1024
1028
|
getKey: (e) => `${e.bladeId.toLowerCase()}::${e.toolbarItem.id}`,
|
|
1025
1029
|
registerIntoService: (e, t) => e.registerToolbarItem(t.toolbarItem, t.bladeId)
|
|
1026
1030
|
});
|
|
1027
|
-
function
|
|
1031
|
+
function ar(e, t) {
|
|
1028
1032
|
const n = t.toLowerCase();
|
|
1029
1033
|
vt.preregister({
|
|
1030
1034
|
bladeId: n,
|
|
1031
1035
|
toolbarItem: e
|
|
1032
1036
|
});
|
|
1033
1037
|
}
|
|
1034
|
-
function
|
|
1035
|
-
const e =
|
|
1038
|
+
function Wt() {
|
|
1039
|
+
const e = qt({
|
|
1036
1040
|
createRegistration: (s, u) => ({ bladeId: s, toolbarItem: u }),
|
|
1037
1041
|
getRegistrationBladeId: (s) => s.bladeId,
|
|
1038
1042
|
getRegistrationItemId: (s) => s.toolbarItem.id
|
|
@@ -1064,24 +1068,24 @@ function Kt() {
|
|
|
1064
1068
|
};
|
|
1065
1069
|
return vt.replayInto(l), l;
|
|
1066
1070
|
}
|
|
1067
|
-
const
|
|
1071
|
+
const Aa = "fallback-blade-id";
|
|
1068
1072
|
let _e = null;
|
|
1069
|
-
const
|
|
1073
|
+
const Na = Ge({
|
|
1070
1074
|
key: xt,
|
|
1071
|
-
create:
|
|
1075
|
+
create: Wt,
|
|
1072
1076
|
bus: vt,
|
|
1073
1077
|
name: "ToolbarService"
|
|
1074
1078
|
});
|
|
1075
|
-
function
|
|
1076
|
-
return
|
|
1079
|
+
function lr() {
|
|
1080
|
+
return Na.provide();
|
|
1077
1081
|
}
|
|
1078
|
-
function
|
|
1082
|
+
function or(e = {}) {
|
|
1079
1083
|
const { autoCleanup: t = !0 } = e, n = Y(xt, null);
|
|
1080
|
-
!n && !_e && (_e =
|
|
1084
|
+
!n && !_e && (_e = Wt());
|
|
1081
1085
|
const a = n || _e;
|
|
1082
1086
|
if (!a)
|
|
1083
1087
|
throw new Error("Toolbar service is not available");
|
|
1084
|
-
const o = Y(Ct, void 0), i = $(() => o?.value?.id ??
|
|
1088
|
+
const o = Y(Ct, void 0), i = $(() => o?.value?.id ?? Aa), l = (c) => c ?? i.value, s = (c, b) => {
|
|
1085
1089
|
a.registerToolbarItem(c, l(b));
|
|
1086
1090
|
}, u = (c, b) => {
|
|
1087
1091
|
a.unregisterToolbarItem(c, l(b));
|
|
@@ -1102,7 +1106,7 @@ function lr(e = {}) {
|
|
|
1102
1106
|
registeredToolbarItems: a.registeredToolbarItems
|
|
1103
1107
|
};
|
|
1104
1108
|
}
|
|
1105
|
-
const
|
|
1109
|
+
const Da = ["aria-label"], Va = { class: "tw-sr-only" }, Pa = ["aria-label"], Fa = { class: "tw-sr-only" }, ne = /* @__PURE__ */ z({
|
|
1106
1110
|
__name: "vc-skeleton",
|
|
1107
1111
|
props: {
|
|
1108
1112
|
variant: { default: "text" },
|
|
@@ -1130,7 +1134,7 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1130
1134
|
"aria-busy": "true",
|
|
1131
1135
|
"aria-label": e.ariaLabel
|
|
1132
1136
|
}, [
|
|
1133
|
-
x("span",
|
|
1137
|
+
x("span", Va, A(e.ariaLabel), 1),
|
|
1134
1138
|
(f(!0), y(Le, null, st(e.rows, (l) => (f(), y("div", {
|
|
1135
1139
|
key: l,
|
|
1136
1140
|
class: "vc-skeleton__row",
|
|
@@ -1139,7 +1143,7 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1139
1143
|
}),
|
|
1140
1144
|
"aria-hidden": "true"
|
|
1141
1145
|
}, null, 4))), 128))
|
|
1142
|
-
], 10,
|
|
1146
|
+
], 10, Da)) : (f(), y("div", {
|
|
1143
1147
|
key: 1,
|
|
1144
1148
|
class: W(["vc-skeleton__shape", [`vc-skeleton__shape--${e.variant}`, { "tw-animate-pulse": e.animated }]]),
|
|
1145
1149
|
style: Ve({
|
|
@@ -1150,10 +1154,10 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1150
1154
|
"aria-busy": "true",
|
|
1151
1155
|
"aria-label": e.ariaLabel
|
|
1152
1156
|
}, [
|
|
1153
|
-
x("span",
|
|
1154
|
-
], 14,
|
|
1157
|
+
x("span", Fa, A(e.ariaLabel), 1)
|
|
1158
|
+
], 14, Pa));
|
|
1155
1159
|
}
|
|
1156
|
-
}),
|
|
1160
|
+
}), ir = /* @__PURE__ */ z({
|
|
1157
1161
|
__name: "vc-container",
|
|
1158
1162
|
props: {
|
|
1159
1163
|
shadow: { type: Boolean },
|
|
@@ -1168,7 +1172,7 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1168
1172
|
function s(u) {
|
|
1169
1173
|
a("scroll", u);
|
|
1170
1174
|
}
|
|
1171
|
-
return
|
|
1175
|
+
return Mt(o, () => {
|
|
1172
1176
|
i.value = !!(o.value && o.value.clientHeight < o.value.scrollHeight);
|
|
1173
1177
|
}), t({
|
|
1174
1178
|
scrollTop: l,
|
|
@@ -1197,7 +1201,7 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1197
1201
|
_: 3
|
|
1198
1202
|
}, 8, ["class", "aria-label"]));
|
|
1199
1203
|
}
|
|
1200
|
-
}),
|
|
1204
|
+
}), za = ["id", "role"], qa = /* @__PURE__ */ z({
|
|
1201
1205
|
__name: "vc-hint",
|
|
1202
1206
|
props: {
|
|
1203
1207
|
id: {},
|
|
@@ -1212,13 +1216,13 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1212
1216
|
role: e.error ? "alert" : void 0
|
|
1213
1217
|
}, [
|
|
1214
1218
|
T(t.$slots, "default")
|
|
1215
|
-
], 10,
|
|
1219
|
+
], 10, za));
|
|
1216
1220
|
}
|
|
1217
|
-
}), me =
|
|
1221
|
+
}), me = qa, Ua = ["role", "tabindex", "aria-label", "onKeydown"], Ka = {
|
|
1218
1222
|
key: 0,
|
|
1219
1223
|
class: "vc-image__placeholder",
|
|
1220
1224
|
"aria-hidden": "true"
|
|
1221
|
-
},
|
|
1225
|
+
}, Wa = /* @__PURE__ */ z({
|
|
1222
1226
|
__name: "vc-image",
|
|
1223
1227
|
props: {
|
|
1224
1228
|
aspect: { default: "1x1" },
|
|
@@ -1246,7 +1250,7 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1246
1250
|
}
|
|
1247
1251
|
return g;
|
|
1248
1252
|
}
|
|
1249
|
-
const l = $(() =>
|
|
1253
|
+
const l = $(() => na(a.src, a.thumbnailSize) ?? a.src), s = I(!1), u = $(() => s.value ? a.src : l.value);
|
|
1250
1254
|
j(
|
|
1251
1255
|
() => [a.src, a.thumbnailSize],
|
|
1252
1256
|
() => {
|
|
@@ -1295,23 +1299,23 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1295
1299
|
X(G(m, ["prevent"]), ["space"])
|
|
1296
1300
|
]
|
|
1297
1301
|
}, [
|
|
1298
|
-
e.src ? w("", !0) : (f(), y("div",
|
|
1299
|
-
|
|
1302
|
+
e.src ? w("", !0) : (f(), y("div", Ka, [
|
|
1303
|
+
M(r(U), {
|
|
1300
1304
|
icon: e.emptyIcon,
|
|
1301
1305
|
size: "xl"
|
|
1302
1306
|
}, null, 8, ["icon"])
|
|
1303
1307
|
]))
|
|
1304
|
-
], 46,
|
|
1308
|
+
], 46, Ua)
|
|
1305
1309
|
], 2));
|
|
1306
1310
|
}
|
|
1307
|
-
}),
|
|
1311
|
+
}), ja = { class: "vc-label__text" }, Ha = { class: "vc-label__content" }, Ga = {
|
|
1308
1312
|
key: 0,
|
|
1309
1313
|
class: "vc-label__required",
|
|
1310
1314
|
"aria-hidden": "true"
|
|
1311
|
-
},
|
|
1315
|
+
}, Ya = {
|
|
1312
1316
|
key: 0,
|
|
1313
1317
|
class: "vc-label__tooltip"
|
|
1314
|
-
},
|
|
1318
|
+
}, Ja = {
|
|
1315
1319
|
key: 1,
|
|
1316
1320
|
class: "vc-label__language"
|
|
1317
1321
|
}, Je = /* @__PURE__ */ z({
|
|
@@ -1332,19 +1336,19 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1332
1336
|
for: e.htmlFor || void 0
|
|
1333
1337
|
}, {
|
|
1334
1338
|
default: O(() => [
|
|
1335
|
-
x("div",
|
|
1336
|
-
x("span",
|
|
1339
|
+
x("div", ja, [
|
|
1340
|
+
x("span", Ha, [
|
|
1337
1341
|
T(t.$slots, "default")
|
|
1338
1342
|
]),
|
|
1339
|
-
e.required ? (f(), y("span",
|
|
1343
|
+
e.required ? (f(), y("span", Ga, "*")) : w("", !0)
|
|
1340
1344
|
]),
|
|
1341
|
-
t.$slots.tooltip ? (f(), y("span",
|
|
1342
|
-
|
|
1345
|
+
t.$slots.tooltip ? (f(), y("span", Ya, [
|
|
1346
|
+
M(r(Tt), { placement: "top-start" }, {
|
|
1343
1347
|
tooltip: O(() => [
|
|
1344
1348
|
T(t.$slots, "tooltip")
|
|
1345
1349
|
]),
|
|
1346
1350
|
default: O(() => [
|
|
1347
|
-
|
|
1351
|
+
M(r(U), {
|
|
1348
1352
|
class: "vc-label__tooltip-icon",
|
|
1349
1353
|
icon: e.tooltipIcon,
|
|
1350
1354
|
size: "s"
|
|
@@ -1353,12 +1357,12 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1353
1357
|
_: 3
|
|
1354
1358
|
})
|
|
1355
1359
|
])) : w("", !0),
|
|
1356
|
-
e.multilanguage ? (f(), y("div",
|
|
1360
|
+
e.multilanguage ? (f(), y("div", Ja, A(e.currentLanguage), 1)) : w("", !0)
|
|
1357
1361
|
]),
|
|
1358
1362
|
_: 3
|
|
1359
1363
|
}, 8, ["class", "for"]));
|
|
1360
1364
|
}
|
|
1361
|
-
}),
|
|
1365
|
+
}), Xa = ["disabled", "aria-disabled"], Za = { class: "vc-link__text" }, Qa = /* @__PURE__ */ z({
|
|
1362
1366
|
__name: "vc-link",
|
|
1363
1367
|
props: {
|
|
1364
1368
|
active: { type: Boolean },
|
|
@@ -1381,12 +1385,12 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1381
1385
|
"aria-disabled": e.disabled,
|
|
1382
1386
|
onClick: o
|
|
1383
1387
|
}, [
|
|
1384
|
-
x("span",
|
|
1388
|
+
x("span", Za, [
|
|
1385
1389
|
T(i.$slots, "default")
|
|
1386
1390
|
])
|
|
1387
|
-
], 10,
|
|
1391
|
+
], 10, Xa));
|
|
1388
1392
|
}
|
|
1389
|
-
}),
|
|
1393
|
+
}), _a = Qa, el = ["aria-label"], tl = { class: "vc-status__content" }, nl = /* @__PURE__ */ z({
|
|
1390
1394
|
__name: "vc-status",
|
|
1391
1395
|
props: {
|
|
1392
1396
|
variant: { default: "info" },
|
|
@@ -1405,12 +1409,12 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1405
1409
|
role: "status",
|
|
1406
1410
|
"aria-label": e.dot ? e.variant : void 0
|
|
1407
1411
|
}, [
|
|
1408
|
-
x("div",
|
|
1412
|
+
x("div", tl, [
|
|
1409
1413
|
T(t.$slots, "default")
|
|
1410
1414
|
])
|
|
1411
|
-
], 10,
|
|
1415
|
+
], 10, el));
|
|
1412
1416
|
}
|
|
1413
|
-
}),
|
|
1417
|
+
}), al = ["aria-label"], ll = /* @__PURE__ */ z({
|
|
1414
1418
|
__name: "vc-status-icon",
|
|
1415
1419
|
props: {
|
|
1416
1420
|
status: { type: Boolean }
|
|
@@ -1432,9 +1436,9 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1432
1436
|
class: "vc-status-icon__icon vc-status-icon__icon--inactive",
|
|
1433
1437
|
"aria-hidden": "true"
|
|
1434
1438
|
}))
|
|
1435
|
-
], 8,
|
|
1439
|
+
], 8, al));
|
|
1436
1440
|
}
|
|
1437
|
-
}),
|
|
1441
|
+
}), ol = ["aria-label"], $t = 40, il = /* @__PURE__ */ z({
|
|
1438
1442
|
__name: "vc-scrollable-container",
|
|
1439
1443
|
props: {
|
|
1440
1444
|
speed: { default: void 0 }
|
|
@@ -1442,7 +1446,7 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1442
1446
|
setup(e, { expose: t }) {
|
|
1443
1447
|
const n = e, a = I(null), o = {};
|
|
1444
1448
|
n.speed !== void 0 && (o.speed = n.speed);
|
|
1445
|
-
const { canScrollUp: i, canScrollDown: l, startScroll: s, stopScroll: u, updateScrollState: v } =
|
|
1449
|
+
const { canScrollUp: i, canScrollDown: l, startScroll: s, stopScroll: u, updateScrollState: v } = ua(
|
|
1446
1450
|
a,
|
|
1447
1451
|
o
|
|
1448
1452
|
);
|
|
@@ -1467,7 +1471,7 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1467
1471
|
(...c) => r(u) && r(u)(...c))
|
|
1468
1472
|
}, [
|
|
1469
1473
|
T(g.$slots, "arrow-up", {}, () => [
|
|
1470
|
-
|
|
1474
|
+
M(r(U), {
|
|
1471
1475
|
icon: "lucide-chevron-up",
|
|
1472
1476
|
size: "xs"
|
|
1473
1477
|
})
|
|
@@ -1495,51 +1499,51 @@ const Na = ["aria-label"], Da = { class: "tw-sr-only" }, Va = ["aria-label"], Pa
|
|
|
1495
1499
|
(...c) => r(u) && r(u)(...c))
|
|
1496
1500
|
}, [
|
|
1497
1501
|
T(g.$slots, "arrow-down", {}, () => [
|
|
1498
|
-
|
|
1502
|
+
M(r(U), {
|
|
1499
1503
|
icon: "lucide-chevron-down",
|
|
1500
1504
|
size: "xs"
|
|
1501
1505
|
})
|
|
1502
1506
|
])
|
|
1503
1507
|
], 34)
|
|
1504
|
-
], 8,
|
|
1508
|
+
], 8, ol));
|
|
1505
1509
|
}
|
|
1506
1510
|
}), gt = /* @__PURE__ */ new Map();
|
|
1507
|
-
function
|
|
1511
|
+
function rl(e) {
|
|
1508
1512
|
return e?.map((t) => t.toLowerCase());
|
|
1509
1513
|
}
|
|
1510
|
-
function
|
|
1514
|
+
function rr(e) {
|
|
1511
1515
|
gt.set(e.id, {
|
|
1512
1516
|
...e,
|
|
1513
|
-
targetBlades:
|
|
1517
|
+
targetBlades: rl(e.targetBlades)
|
|
1514
1518
|
});
|
|
1515
1519
|
}
|
|
1516
|
-
function
|
|
1520
|
+
function sl(e) {
|
|
1517
1521
|
const t = e.toLowerCase();
|
|
1518
1522
|
return Array.from(gt.values()).filter((n) => !n.targetBlades || n.targetBlades.includes(t)).map((n) => ({ ...n, targetBlades: n.targetBlades ? [...n.targetBlades] : void 0 }));
|
|
1519
1523
|
}
|
|
1520
|
-
function
|
|
1524
|
+
function ul() {
|
|
1521
1525
|
return Array.from(gt.values()).map((e) => ({
|
|
1522
1526
|
...e,
|
|
1523
1527
|
targetBlades: e.targetBlades ? [...e.targetBlades] : void 0
|
|
1524
1528
|
}));
|
|
1525
1529
|
}
|
|
1526
|
-
function
|
|
1527
|
-
return
|
|
1530
|
+
function cl(e) {
|
|
1531
|
+
return Ln(e);
|
|
1528
1532
|
}
|
|
1529
|
-
const
|
|
1533
|
+
const jt = Ce({
|
|
1530
1534
|
name: "widget-service",
|
|
1531
1535
|
getKey: (e) => `${e.bladeId.toLowerCase()}::${e.widget.id}`,
|
|
1532
1536
|
registerIntoService: (e, t) => e.registerWidget(t.widget, t.bladeId)
|
|
1533
1537
|
});
|
|
1534
|
-
function
|
|
1538
|
+
function sr(e, t) {
|
|
1535
1539
|
const n = t.toLowerCase();
|
|
1536
|
-
|
|
1540
|
+
jt.preregister({
|
|
1537
1541
|
bladeId: n,
|
|
1538
1542
|
widget: e
|
|
1539
1543
|
});
|
|
1540
1544
|
}
|
|
1541
|
-
function
|
|
1542
|
-
const e =
|
|
1545
|
+
function ur() {
|
|
1546
|
+
const e = qt({
|
|
1543
1547
|
createRegistration: (a, o) => ({ bladeId: a, widget: o }),
|
|
1544
1548
|
getRegistrationBladeId: (a) => a.bladeId,
|
|
1545
1549
|
getRegistrationItemId: (a) => a.widget.id
|
|
@@ -1548,16 +1552,16 @@ function sr() {
|
|
|
1548
1552
|
unregisterWidget: (a, o) => e.unregister(a, o),
|
|
1549
1553
|
getWidgets: (a) => e.get(a),
|
|
1550
1554
|
updateWidget: ({ id: a, bladeId: o, widget: i }) => e.update(a, o, i),
|
|
1551
|
-
getExternalWidgetsForBlade: (a) =>
|
|
1552
|
-
getAllExternalWidgets:
|
|
1553
|
-
cloneWidget:
|
|
1555
|
+
getExternalWidgetsForBlade: (a) => sl(a.toLowerCase()),
|
|
1556
|
+
getAllExternalWidgets: ul,
|
|
1557
|
+
cloneWidget: cl
|
|
1554
1558
|
};
|
|
1555
|
-
return
|
|
1559
|
+
return jt.replayInto(n), n;
|
|
1556
1560
|
}
|
|
1557
|
-
const
|
|
1561
|
+
const dl = ge("use-theme"), he = I([
|
|
1558
1562
|
{ key: "light", localizationKey: "CORE.THEMES.LIGHT" },
|
|
1559
1563
|
{ key: "dark", localizationKey: "CORE.THEMES.DARK" }
|
|
1560
|
-
]),
|
|
1564
|
+
]), cr = Mn(() => {
|
|
1561
1565
|
const { t: e } = $e.global;
|
|
1562
1566
|
function t(v) {
|
|
1563
1567
|
(Array.isArray(v) ? v : [v]).forEach((m) => {
|
|
@@ -1570,7 +1574,7 @@ const cl = ge("use-theme"), he = I([
|
|
|
1570
1574
|
g >= 0 && he.value.splice(g, 1);
|
|
1571
1575
|
});
|
|
1572
1576
|
}
|
|
1573
|
-
const a = $(() => he.value.map((v) => v.key)), o =
|
|
1577
|
+
const a = $(() => he.value.map((v) => v.key)), o = Cn({
|
|
1574
1578
|
attribute: "data-theme",
|
|
1575
1579
|
emitAuto: !0,
|
|
1576
1580
|
initialValue: "light",
|
|
@@ -1582,12 +1586,12 @@ const cl = ge("use-theme"), he = I([
|
|
|
1582
1586
|
{}
|
|
1583
1587
|
)
|
|
1584
1588
|
}
|
|
1585
|
-
}), { state: i, next: l } =
|
|
1589
|
+
}), { state: i, next: l } = xn(a, { initialValue: o });
|
|
1586
1590
|
tt(() => {
|
|
1587
1591
|
i.value && (o.value = i.value);
|
|
1588
1592
|
});
|
|
1589
1593
|
function s(v) {
|
|
1590
|
-
a.value.includes(v) ? i.value = v :
|
|
1594
|
+
a.value.includes(v) ? i.value = v : dl.warn(`Attempted to set an unregistered theme: ${v}`);
|
|
1591
1595
|
}
|
|
1592
1596
|
const u = $(() => {
|
|
1593
1597
|
const v = he.value.find((m) => m.key === i.value);
|
|
@@ -1612,15 +1616,15 @@ const cl = ge("use-theme"), he = I([
|
|
|
1612
1616
|
getKey: (e) => e.id,
|
|
1613
1617
|
registerIntoService: (e, t) => e.registerWidget(t)
|
|
1614
1618
|
});
|
|
1615
|
-
function
|
|
1619
|
+
function dr(e) {
|
|
1616
1620
|
mt.preregister(e);
|
|
1617
1621
|
}
|
|
1618
|
-
const
|
|
1622
|
+
const fl = () => ({
|
|
1619
1623
|
widgets: nt(/* @__PURE__ */ new Map()),
|
|
1620
1624
|
layout: nt(/* @__PURE__ */ new Map())
|
|
1621
1625
|
});
|
|
1622
|
-
function
|
|
1623
|
-
const t =
|
|
1626
|
+
function vl(e = {}) {
|
|
1627
|
+
const t = fl(), n = e.hasAccess ?? (() => !0), s = {
|
|
1624
1628
|
registerWidget: (u) => {
|
|
1625
1629
|
if (t.widgets.has(u.id))
|
|
1626
1630
|
throw new Error(`Widget with id ${u.id} already registered`);
|
|
@@ -1646,42 +1650,42 @@ function fl(e = {}) {
|
|
|
1646
1650
|
};
|
|
1647
1651
|
return mt.replayInto(s), s;
|
|
1648
1652
|
}
|
|
1649
|
-
const wt = ge("use-dashboard"),
|
|
1650
|
-
key:
|
|
1653
|
+
const wt = ge("use-dashboard"), Ht = Ge({
|
|
1654
|
+
key: Sn,
|
|
1651
1655
|
bus: mt,
|
|
1652
1656
|
name: "DashboardService",
|
|
1653
1657
|
create: () => {
|
|
1654
1658
|
let e = () => !0;
|
|
1655
1659
|
try {
|
|
1656
|
-
const { hasAccess: t } =
|
|
1660
|
+
const { hasAccess: t } = la();
|
|
1657
1661
|
e = (n) => t(n);
|
|
1658
1662
|
} catch (t) {
|
|
1659
1663
|
wt.warn("Permissions composable unavailable, dashboard falls back to allow-all access check", t);
|
|
1660
1664
|
}
|
|
1661
|
-
return
|
|
1665
|
+
return vl({
|
|
1662
1666
|
hasAccess: e
|
|
1663
1667
|
});
|
|
1664
1668
|
},
|
|
1665
1669
|
onMissing: () => wt.error("Dashboard service not found")
|
|
1666
1670
|
});
|
|
1667
|
-
function dr() {
|
|
1668
|
-
return jt.provide();
|
|
1669
|
-
}
|
|
1670
1671
|
function fr() {
|
|
1671
|
-
return
|
|
1672
|
+
return Ht.provide();
|
|
1672
1673
|
}
|
|
1673
|
-
|
|
1674
|
+
function vr() {
|
|
1675
|
+
return Ht.use();
|
|
1676
|
+
}
|
|
1677
|
+
const Gt = Ce({
|
|
1674
1678
|
name: "app-bar-menu-service",
|
|
1675
1679
|
getKey: (e) => e.id || crypto.randomUUID(),
|
|
1676
1680
|
registerIntoService: (e, t) => e.register(t),
|
|
1677
1681
|
unregisterFromService: (e, t) => e.unregister(t)
|
|
1678
1682
|
});
|
|
1679
|
-
function
|
|
1680
|
-
|
|
1683
|
+
function gr(e) {
|
|
1684
|
+
Gt.preregister(e);
|
|
1681
1685
|
}
|
|
1682
|
-
function
|
|
1683
|
-
return
|
|
1684
|
-
bus:
|
|
1686
|
+
function mr() {
|
|
1687
|
+
return Ut({
|
|
1688
|
+
bus: Gt,
|
|
1685
1689
|
createItem: (e, t) => ({
|
|
1686
1690
|
id: e.id || "",
|
|
1687
1691
|
order: e.order ?? t,
|
|
@@ -1703,11 +1707,11 @@ const pt = Ce({
|
|
|
1703
1707
|
registerIntoService: (e, t) => e.register(t),
|
|
1704
1708
|
unregisterFromService: (e, t) => e.unregister(t)
|
|
1705
1709
|
});
|
|
1706
|
-
function
|
|
1710
|
+
function pr(e) {
|
|
1707
1711
|
pt.preregister(e);
|
|
1708
1712
|
}
|
|
1709
|
-
function
|
|
1710
|
-
return
|
|
1713
|
+
function gl() {
|
|
1714
|
+
return Ut({
|
|
1711
1715
|
bus: pt,
|
|
1712
1716
|
createItem: (e, t) => ({
|
|
1713
1717
|
id: e.id || "",
|
|
@@ -1719,26 +1723,26 @@ function vl() {
|
|
|
1719
1723
|
getId: (e) => e.id || ""
|
|
1720
1724
|
});
|
|
1721
1725
|
}
|
|
1722
|
-
const
|
|
1723
|
-
key:
|
|
1724
|
-
create:
|
|
1726
|
+
const ml = ge("use-settings-menu"), Yt = Ge({
|
|
1727
|
+
key: $n,
|
|
1728
|
+
create: gl,
|
|
1725
1729
|
bus: pt,
|
|
1726
1730
|
name: "SettingsMenuService",
|
|
1727
|
-
onMissing: () =>
|
|
1731
|
+
onMissing: () => ml.error("Settings menu service not found")
|
|
1728
1732
|
});
|
|
1729
|
-
function pr() {
|
|
1730
|
-
return Gt.provide();
|
|
1731
|
-
}
|
|
1732
1733
|
function br() {
|
|
1733
|
-
return
|
|
1734
|
+
return Yt.provide();
|
|
1734
1735
|
}
|
|
1735
|
-
|
|
1736
|
+
function yr() {
|
|
1737
|
+
return Yt.use();
|
|
1738
|
+
}
|
|
1739
|
+
const pl = {
|
|
1736
1740
|
key: 0,
|
|
1737
1741
|
class: "vc-date-picker vc-date-picker--skeleton"
|
|
1738
|
-
},
|
|
1742
|
+
}, bl = { class: "vc-date-picker__field-container" }, yl = { class: "vc-date-picker__field" }, hl = ["aria-label"], kl = {
|
|
1739
1743
|
key: 0,
|
|
1740
1744
|
class: "vc-date-picker__loading"
|
|
1741
|
-
},
|
|
1745
|
+
}, Il = { key: 0 }, Sl = { key: 1 }, $l = /* @__PURE__ */ z({
|
|
1742
1746
|
__name: "vc-date-picker",
|
|
1743
1747
|
props: {
|
|
1744
1748
|
modelValue: {},
|
|
@@ -1825,14 +1829,14 @@ const ml = {
|
|
|
1825
1829
|
function q() {
|
|
1826
1830
|
b.value = !0, a("focus");
|
|
1827
1831
|
}
|
|
1828
|
-
return (C, B) => r(o) ? (f(), y("div",
|
|
1832
|
+
return (C, B) => r(o) ? (f(), y("div", pl, [
|
|
1829
1833
|
e.label ? (f(), P(r(ne), {
|
|
1830
1834
|
key: 0,
|
|
1831
1835
|
variant: "block",
|
|
1832
1836
|
width: 60 + (e.label?.length || 0) * 4,
|
|
1833
1837
|
height: 11
|
|
1834
1838
|
}, null, 8, ["width"])) : w("", !0),
|
|
1835
|
-
|
|
1839
|
+
M(r(ne), {
|
|
1836
1840
|
variant: "block",
|
|
1837
1841
|
width: "100%",
|
|
1838
1842
|
height: 36
|
|
@@ -1875,9 +1879,9 @@ const ml = {
|
|
|
1875
1879
|
"vc-date-picker__field-wrapper--small": e.size === "small"
|
|
1876
1880
|
}])
|
|
1877
1881
|
}, [
|
|
1878
|
-
x("div",
|
|
1879
|
-
x("div",
|
|
1880
|
-
|
|
1882
|
+
x("div", bl, [
|
|
1883
|
+
x("div", yl, [
|
|
1884
|
+
M(r(Nn), ee({
|
|
1881
1885
|
modelValue: E.value,
|
|
1882
1886
|
"onUpdate:modelValue": B[0] || (B[0] = (D) => E.value = D),
|
|
1883
1887
|
placeholder: e.placeholder || (e.type === "datetime-local" ? C.$t("COMPONENTS.MOLECULES.VC_INPUT.DATE_TIME_PLACEHOLDER") : C.$t("COMPONENTS.MOLECULES.VC_INPUT.DATE_PLACEHOLDER")),
|
|
@@ -1918,14 +1922,14 @@ const ml = {
|
|
|
1918
1922
|
"aria-label": C.$t("COMPONENTS.MOLECULES.VC_DATE_PICKER.CLEAR"),
|
|
1919
1923
|
onClick: ae
|
|
1920
1924
|
}, [
|
|
1921
|
-
|
|
1925
|
+
M(r(U), {
|
|
1922
1926
|
size: "xs",
|
|
1923
1927
|
icon: "lucide-x"
|
|
1924
1928
|
})
|
|
1925
|
-
], 8,
|
|
1929
|
+
], 8, hl)) : w("", !0)
|
|
1926
1930
|
]),
|
|
1927
|
-
e.loading ? (f(), y("div",
|
|
1928
|
-
|
|
1931
|
+
e.loading ? (f(), y("div", kl, [
|
|
1932
|
+
M(r(U), {
|
|
1929
1933
|
icon: "lucide-loader-2",
|
|
1930
1934
|
class: "vc-date-picker__loading-icon",
|
|
1931
1935
|
size: "m"
|
|
@@ -1933,13 +1937,13 @@ const ml = {
|
|
|
1933
1937
|
])) : w("", !0)
|
|
1934
1938
|
])
|
|
1935
1939
|
], 2),
|
|
1936
|
-
|
|
1940
|
+
M(Pe, {
|
|
1937
1941
|
name: "slide-up",
|
|
1938
1942
|
mode: "out-in"
|
|
1939
1943
|
}, {
|
|
1940
1944
|
default: O(() => [
|
|
1941
|
-
r(m) && e.errorMessage ? (f(), y("div",
|
|
1942
|
-
|
|
1945
|
+
r(m) && e.errorMessage ? (f(), y("div", Il, [
|
|
1946
|
+
M(r(me), {
|
|
1943
1947
|
id: r(u),
|
|
1944
1948
|
class: "vc-date-picker__hint-error",
|
|
1945
1949
|
error: !0
|
|
@@ -1949,7 +1953,7 @@ const ml = {
|
|
|
1949
1953
|
]),
|
|
1950
1954
|
_: 1
|
|
1951
1955
|
}, 8, ["id"])
|
|
1952
|
-
])) : (f(), y("div",
|
|
1956
|
+
])) : (f(), y("div", Sl, [
|
|
1953
1957
|
e.hint ? (f(), P(r(me), {
|
|
1954
1958
|
key: 0,
|
|
1955
1959
|
id: r(v),
|
|
@@ -1966,13 +1970,13 @@ const ml = {
|
|
|
1966
1970
|
})
|
|
1967
1971
|
], 2));
|
|
1968
1972
|
}
|
|
1969
|
-
}),
|
|
1973
|
+
}), wl = {
|
|
1970
1974
|
key: 0,
|
|
1971
1975
|
class: "vc-color-input vc-color-input--skeleton"
|
|
1972
|
-
},
|
|
1976
|
+
}, Ol = { class: "vc-color-input__field-container" }, El = { class: "vc-color-input__field" }, Ll = ["id", "placeholder", "disabled", "name", "autofocus", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby", "aria-label"], Bl = { class: "vc-color-input__color-container" }, Cl = ["aria-label"], xl = ["value"], Tl = ["aria-label"], Rl = {
|
|
1973
1977
|
key: 0,
|
|
1974
1978
|
class: "vc-color-input__loading"
|
|
1975
|
-
}, Ml = { key: 0 },
|
|
1979
|
+
}, Ml = { key: 0 }, Al = { key: 1 }, Nl = /* @__PURE__ */ z({
|
|
1976
1980
|
__name: "vc-color-input",
|
|
1977
1981
|
props: {
|
|
1978
1982
|
modelValue: {},
|
|
@@ -2011,11 +2015,11 @@ const ml = {
|
|
|
2011
2015
|
return;
|
|
2012
2016
|
}
|
|
2013
2017
|
const C = q.trim();
|
|
2014
|
-
if (
|
|
2018
|
+
if (ta(C)) {
|
|
2015
2019
|
F.value = It(C);
|
|
2016
2020
|
return;
|
|
2017
2021
|
}
|
|
2018
|
-
const B =
|
|
2022
|
+
const B = ea(C);
|
|
2019
2023
|
B && (F.value = B);
|
|
2020
2024
|
}
|
|
2021
2025
|
j(
|
|
@@ -2056,14 +2060,14 @@ const ml = {
|
|
|
2056
2060
|
function se() {
|
|
2057
2061
|
E.value?.focus();
|
|
2058
2062
|
}
|
|
2059
|
-
return t({ focus: se }), (q, C) => r(a) ? (f(), y("div",
|
|
2063
|
+
return t({ focus: se }), (q, C) => r(a) ? (f(), y("div", wl, [
|
|
2060
2064
|
e.label ? (f(), P(r(ne), {
|
|
2061
2065
|
key: 0,
|
|
2062
2066
|
variant: "block",
|
|
2063
2067
|
width: 60 + (e.label?.length || 0) * 4,
|
|
2064
2068
|
height: 11
|
|
2065
2069
|
}, null, 8, ["width"])) : w("", !0),
|
|
2066
|
-
|
|
2070
|
+
M(r(ne), {
|
|
2067
2071
|
variant: "block",
|
|
2068
2072
|
width: "100%",
|
|
2069
2073
|
height: 36
|
|
@@ -2107,8 +2111,8 @@ const ml = {
|
|
|
2107
2111
|
"vc-color-input__field-wrapper--small": e.size === "small"
|
|
2108
2112
|
}])
|
|
2109
2113
|
}, [
|
|
2110
|
-
x("div",
|
|
2111
|
-
x("div",
|
|
2114
|
+
x("div", Ol, [
|
|
2115
|
+
x("div", El, [
|
|
2112
2116
|
ct(x("input", {
|
|
2113
2117
|
id: r(l),
|
|
2114
2118
|
ref_key: "inputRef",
|
|
@@ -2129,17 +2133,17 @@ const ml = {
|
|
|
2129
2133
|
onBlur: te,
|
|
2130
2134
|
onFocus: ce,
|
|
2131
2135
|
onInput: _
|
|
2132
|
-
}, null, 40,
|
|
2133
|
-
[
|
|
2136
|
+
}, null, 40, Ll), [
|
|
2137
|
+
[un, S.value]
|
|
2134
2138
|
]),
|
|
2135
|
-
x("div",
|
|
2139
|
+
x("div", Bl, [
|
|
2136
2140
|
x("button", {
|
|
2137
2141
|
type: "button",
|
|
2138
2142
|
class: "vc-color-input__color-square",
|
|
2139
2143
|
style: Ve({ backgroundColor: F.value || "#ffffff" }),
|
|
2140
2144
|
"aria-label": `Pick color${F.value ? ": " + F.value : ""}`,
|
|
2141
2145
|
onClick: re
|
|
2142
|
-
}, null, 12,
|
|
2146
|
+
}, null, 12, Cl),
|
|
2143
2147
|
x("input", {
|
|
2144
2148
|
ref_key: "colorPickerRef",
|
|
2145
2149
|
ref: p,
|
|
@@ -2149,7 +2153,7 @@ const ml = {
|
|
|
2149
2153
|
tabindex: "-1",
|
|
2150
2154
|
"aria-hidden": "true",
|
|
2151
2155
|
onChange: J
|
|
2152
|
-
}, null, 40,
|
|
2156
|
+
}, null, 40, xl)
|
|
2153
2157
|
]),
|
|
2154
2158
|
e.clearable && S.value && !e.disabled ? (f(), y("button", {
|
|
2155
2159
|
key: 0,
|
|
@@ -2158,14 +2162,14 @@ const ml = {
|
|
|
2158
2162
|
"aria-label": q.$t("COMPONENTS.MOLECULES.VC_COLOR_INPUT.CLEAR"),
|
|
2159
2163
|
onClick: ae
|
|
2160
2164
|
}, [
|
|
2161
|
-
|
|
2165
|
+
M(r(U), {
|
|
2162
2166
|
size: "xs",
|
|
2163
2167
|
icon: "lucide-x"
|
|
2164
2168
|
})
|
|
2165
|
-
], 8,
|
|
2169
|
+
], 8, Tl)) : w("", !0)
|
|
2166
2170
|
]),
|
|
2167
|
-
e.loading ? (f(), y("div",
|
|
2168
|
-
|
|
2171
|
+
e.loading ? (f(), y("div", Rl, [
|
|
2172
|
+
M(r(U), {
|
|
2169
2173
|
icon: "lucide-loader-2",
|
|
2170
2174
|
class: "vc-color-input__loading-icon",
|
|
2171
2175
|
size: "m"
|
|
@@ -2173,13 +2177,13 @@ const ml = {
|
|
|
2173
2177
|
])) : w("", !0)
|
|
2174
2178
|
])
|
|
2175
2179
|
], 2),
|
|
2176
|
-
|
|
2180
|
+
M(Pe, {
|
|
2177
2181
|
name: "slide-up",
|
|
2178
2182
|
mode: "out-in"
|
|
2179
2183
|
}, {
|
|
2180
2184
|
default: O(() => [
|
|
2181
2185
|
r(m) && e.errorMessage ? (f(), y("div", Ml, [
|
|
2182
|
-
|
|
2186
|
+
M(r(me), {
|
|
2183
2187
|
id: r(u),
|
|
2184
2188
|
class: "vc-color-input__hint-error",
|
|
2185
2189
|
error: !0
|
|
@@ -2189,7 +2193,7 @@ const ml = {
|
|
|
2189
2193
|
]),
|
|
2190
2194
|
_: 1
|
|
2191
2195
|
}, 8, ["id"])
|
|
2192
|
-
])) : (f(), y("div",
|
|
2196
|
+
])) : (f(), y("div", Al, [
|
|
2193
2197
|
e.hint ? (f(), P(r(me), {
|
|
2194
2198
|
key: 0,
|
|
2195
2199
|
id: r(v),
|
|
@@ -2206,28 +2210,28 @@ const ml = {
|
|
|
2206
2210
|
})
|
|
2207
2211
|
], 2));
|
|
2208
2212
|
}
|
|
2209
|
-
}),
|
|
2213
|
+
}), Dl = { class: "vc-input__container" }, Vl = {
|
|
2210
2214
|
key: 0,
|
|
2211
2215
|
class: "vc-input__prepend"
|
|
2212
|
-
},
|
|
2216
|
+
}, Pl = { class: "vc-input__field-container" }, Fl = {
|
|
2213
2217
|
key: 0,
|
|
2214
2218
|
class: "vc-input__prepend-inner"
|
|
2215
|
-
},
|
|
2219
|
+
}, zl = { class: "vc-input__field" }, ql = {
|
|
2216
2220
|
key: 0,
|
|
2217
2221
|
class: "vc-input__prefix"
|
|
2218
|
-
},
|
|
2222
|
+
}, Ul = ["id", "placeholder", "type", "disabled", "name", "maxlength", "autofocus", "autocomplete", "aria-invalid", "aria-required", "aria-describedby", "aria-labelledby", "aria-label"], Kl = {
|
|
2219
2223
|
key: 1,
|
|
2220
2224
|
class: "vc-input__suffix"
|
|
2221
|
-
},
|
|
2225
|
+
}, Wl = ["aria-label"], jl = ["aria-label"], Hl = {
|
|
2222
2226
|
key: 1,
|
|
2223
2227
|
class: "vc-input__append-inner"
|
|
2224
|
-
},
|
|
2228
|
+
}, Gl = {
|
|
2225
2229
|
key: 2,
|
|
2226
2230
|
class: "vc-input__loading"
|
|
2227
|
-
},
|
|
2231
|
+
}, Yl = {
|
|
2228
2232
|
key: 1,
|
|
2229
2233
|
class: "vc-input__append"
|
|
2230
|
-
},
|
|
2234
|
+
}, Jl = { key: 0 }, Xl = { key: 1 }, bt = /* @__PURE__ */ z({
|
|
2231
2235
|
inheritAttrs: !1,
|
|
2232
2236
|
__name: "vc-input",
|
|
2233
2237
|
props: {
|
|
@@ -2260,8 +2264,8 @@ const ml = {
|
|
|
2260
2264
|
emits: ["update:modelValue", "blur", "focus"],
|
|
2261
2265
|
setup(e, { emit: t }) {
|
|
2262
2266
|
const n = e, a = Lt(), o = $(() => {
|
|
2263
|
-
const { class: k, ...
|
|
2264
|
-
return
|
|
2267
|
+
const { class: k, ...R } = a;
|
|
2268
|
+
return R;
|
|
2265
2269
|
}), i = t, l = Oe(), {
|
|
2266
2270
|
fieldId: s,
|
|
2267
2271
|
labelId: u,
|
|
@@ -2297,8 +2301,8 @@ const ml = {
|
|
|
2297
2301
|
{ immediate: !0 }
|
|
2298
2302
|
);
|
|
2299
2303
|
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) && !
|
|
2304
|
+
const R = ["Backspace", "Delete", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], L = k.key;
|
|
2305
|
+
if ((n.type === "number" || n.type === "integer") && (L === "-" || L === "e" || L === "+") && k.preventDefault(), n.type === "integer" && !/^\d$/.test(L) && !R.includes(L)) {
|
|
2302
2306
|
k.preventDefault();
|
|
2303
2307
|
return;
|
|
2304
2308
|
}
|
|
@@ -2309,8 +2313,8 @@ const ml = {
|
|
|
2309
2313
|
function q(k) {
|
|
2310
2314
|
p = () => {
|
|
2311
2315
|
if (J.value !== k) {
|
|
2312
|
-
let
|
|
2313
|
-
n.type === "number" && k !== null && k !== void 0 ?
|
|
2316
|
+
let R;
|
|
2317
|
+
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
2318
|
}
|
|
2315
2319
|
p = void 0;
|
|
2316
2320
|
}, n.debounce !== void 0 ? (clearTimeout(E), E = setTimeout(p, +n.debounce)) : p();
|
|
@@ -2327,7 +2331,7 @@ const ml = {
|
|
|
2327
2331
|
function V() {
|
|
2328
2332
|
_.value = !0, i("focus");
|
|
2329
2333
|
}
|
|
2330
|
-
return (k,
|
|
2334
|
+
return (k, R) => r(l) ? (f(), y("div", ee({ key: 0 }, o.value, {
|
|
2331
2335
|
class: ["vc-input vc-input--skeleton", k.$attrs.class]
|
|
2332
2336
|
}), [
|
|
2333
2337
|
e.label ? (f(), P(r(ne), {
|
|
@@ -2336,12 +2340,12 @@ const ml = {
|
|
|
2336
2340
|
width: 60 + (e.label?.length || 0) * 4,
|
|
2337
2341
|
height: 11
|
|
2338
2342
|
}, null, 8, ["width"])) : w("", !0),
|
|
2339
|
-
|
|
2343
|
+
M(r(ne), {
|
|
2340
2344
|
variant: "block",
|
|
2341
2345
|
width: "100%",
|
|
2342
2346
|
height: 36
|
|
2343
2347
|
})
|
|
2344
|
-
], 16)) : e.type === "date" || e.type === "datetime-local" ? (f(), P(r(
|
|
2348
|
+
], 16)) : e.type === "date" || e.type === "datetime-local" ? (f(), P(r($l), ee({ key: 1 }, r(a), {
|
|
2345
2349
|
"model-value": e.modelValue,
|
|
2346
2350
|
type: e.type,
|
|
2347
2351
|
"date-picker-options": e.datePickerOptions,
|
|
@@ -2361,10 +2365,10 @@ const ml = {
|
|
|
2361
2365
|
"current-language": e.currentLanguage,
|
|
2362
2366
|
name: e.name,
|
|
2363
2367
|
"aria-label": e.ariaLabel,
|
|
2364
|
-
"onUpdate:modelValue":
|
|
2365
|
-
onBlur:
|
|
2366
|
-
onFocus:
|
|
2367
|
-
}), null, 16, ["model-value", "type", "date-picker-options", "label", "placeholder", "hint", "disabled", "error", "error-message", "required", "clearable", "loading", "autofocus", "size", "tooltip", "multilanguage", "current-language", "name", "aria-label"])) : e.type === "color" ? (f(), P(r(
|
|
2368
|
+
"onUpdate:modelValue": R[0] || (R[0] = (L) => i("update:modelValue", L ?? null)),
|
|
2369
|
+
onBlur: R[1] || (R[1] = (L) => i("blur", L)),
|
|
2370
|
+
onFocus: R[2] || (R[2] = (L) => i("focus"))
|
|
2371
|
+
}), 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(Nl), ee({ key: 2 }, r(a), {
|
|
2368
2372
|
"model-value": e.modelValue ?? null,
|
|
2369
2373
|
label: e.label,
|
|
2370
2374
|
placeholder: e.placeholder,
|
|
@@ -2382,9 +2386,9 @@ const ml = {
|
|
|
2382
2386
|
"current-language": e.currentLanguage,
|
|
2383
2387
|
name: e.name,
|
|
2384
2388
|
"aria-label": e.ariaLabel,
|
|
2385
|
-
"onUpdate:modelValue":
|
|
2386
|
-
onBlur:
|
|
2387
|
-
onFocus:
|
|
2389
|
+
"onUpdate:modelValue": R[3] || (R[3] = (L) => i("update:modelValue", L)),
|
|
2390
|
+
onBlur: R[4] || (R[4] = (L) => i("blur", L)),
|
|
2391
|
+
onFocus: R[5] || (R[5] = (L) => i("focus"))
|
|
2388
2392
|
}), 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
2393
|
class: ["vc-input", [
|
|
2390
2394
|
k.$attrs.class,
|
|
@@ -2420,8 +2424,8 @@ const ml = {
|
|
|
2420
2424
|
key: "0"
|
|
2421
2425
|
} : void 0
|
|
2422
2426
|
]), 1032, ["id", "html-for", "required", "multilanguage", "current-language", "error"])) : w("", !0),
|
|
2423
|
-
x("div",
|
|
2424
|
-
k.$slots.prepend ? (f(), y("div",
|
|
2427
|
+
x("div", Dl, [
|
|
2428
|
+
k.$slots.prepend ? (f(), y("div", Vl, [
|
|
2425
2429
|
T(k.$slots, "prepend", { focus: D })
|
|
2426
2430
|
])) : w("", !0),
|
|
2427
2431
|
x("div", {
|
|
@@ -2430,12 +2434,12 @@ const ml = {
|
|
|
2430
2434
|
"vc-input__field-wrapper--small": e.size === "small"
|
|
2431
2435
|
}])
|
|
2432
2436
|
}, [
|
|
2433
|
-
x("div",
|
|
2434
|
-
k.$slots["prepend-inner"] ? (f(), y("div",
|
|
2437
|
+
x("div", Pl, [
|
|
2438
|
+
k.$slots["prepend-inner"] ? (f(), y("div", Fl, [
|
|
2435
2439
|
T(k.$slots, "prepend-inner", { focus: D })
|
|
2436
2440
|
])) : w("", !0),
|
|
2437
|
-
x("div",
|
|
2438
|
-
e.prefix ? (f(), y("div",
|
|
2441
|
+
x("div", zl, [
|
|
2442
|
+
e.prefix ? (f(), y("div", ql, A(e.prefix), 1)) : w("", !0),
|
|
2439
2443
|
T(k.$slots, "control", {
|
|
2440
2444
|
editable: r(d),
|
|
2441
2445
|
focused: e.autofocus,
|
|
@@ -2447,7 +2451,7 @@ const ml = {
|
|
|
2447
2451
|
id: r(s),
|
|
2448
2452
|
ref_key: "inputRef",
|
|
2449
2453
|
ref: F,
|
|
2450
|
-
"onUpdate:modelValue":
|
|
2454
|
+
"onUpdate:modelValue": R[6] || (R[6] = (L) => te.value = L),
|
|
2451
2455
|
placeholder: e.placeholder,
|
|
2452
2456
|
type: re.value,
|
|
2453
2457
|
disabled: r(d),
|
|
@@ -2465,11 +2469,11 @@ const ml = {
|
|
|
2465
2469
|
onKeydown: ce,
|
|
2466
2470
|
onBlur: B,
|
|
2467
2471
|
onFocus: V
|
|
2468
|
-
}, null, 40,
|
|
2469
|
-
[
|
|
2472
|
+
}, null, 40, Ul), [
|
|
2473
|
+
[cn, te.value]
|
|
2470
2474
|
])
|
|
2471
2475
|
]),
|
|
2472
|
-
e.suffix ? (f(), y("div",
|
|
2476
|
+
e.suffix ? (f(), y("div", Kl, A(e.suffix), 1)) : w("", !0),
|
|
2473
2477
|
e.clearable && J.value && !r(d) && e.type !== "password" ? (f(), y("button", {
|
|
2474
2478
|
key: 2,
|
|
2475
2479
|
type: "button",
|
|
@@ -2477,29 +2481,29 @@ const ml = {
|
|
|
2477
2481
|
"aria-label": k.$t("COMPONENTS.CONTROLS.CLEAR"),
|
|
2478
2482
|
onClick: C
|
|
2479
2483
|
}, [
|
|
2480
|
-
|
|
2484
|
+
M(r(U), {
|
|
2481
2485
|
size: "xs",
|
|
2482
2486
|
icon: "lucide-x"
|
|
2483
2487
|
})
|
|
2484
|
-
], 8,
|
|
2488
|
+
], 8, Wl)) : w("", !0),
|
|
2485
2489
|
e.type === "password" ? (f(), y("button", {
|
|
2486
2490
|
key: 3,
|
|
2487
2491
|
type: "button",
|
|
2488
2492
|
class: "vc-input__showhide",
|
|
2489
2493
|
"aria-label": K.value === "password" ? k.$t("COMPONENTS.CONTROLS.SHOW_PASSWORD") : k.$t("COMPONENTS.CONTROLS.HIDE_PASSWORD"),
|
|
2490
|
-
onClick:
|
|
2494
|
+
onClick: R[7] || (R[7] = (L) => K.value = K.value === "password" ? "text" : "password")
|
|
2491
2495
|
}, [
|
|
2492
|
-
|
|
2496
|
+
M(r(U), {
|
|
2493
2497
|
size: "s",
|
|
2494
2498
|
icon: K.value === "password" ? "lucide-eye-off" : "lucide-eye"
|
|
2495
2499
|
}, null, 8, ["icon"])
|
|
2496
|
-
], 8,
|
|
2500
|
+
], 8, jl)) : w("", !0)
|
|
2497
2501
|
]),
|
|
2498
|
-
k.$slots["append-inner"] ? (f(), y("div",
|
|
2502
|
+
k.$slots["append-inner"] ? (f(), y("div", Hl, [
|
|
2499
2503
|
T(k.$slots, "append-inner", { focus: D })
|
|
2500
2504
|
])) : w("", !0),
|
|
2501
|
-
e.loading ? (f(), y("div",
|
|
2502
|
-
|
|
2505
|
+
e.loading ? (f(), y("div", Gl, [
|
|
2506
|
+
M(r(U), {
|
|
2503
2507
|
icon: "lucide-loader-2",
|
|
2504
2508
|
class: "vc-input__loading-icon",
|
|
2505
2509
|
size: "m"
|
|
@@ -2507,18 +2511,18 @@ const ml = {
|
|
|
2507
2511
|
])) : w("", !0)
|
|
2508
2512
|
])
|
|
2509
2513
|
], 2),
|
|
2510
|
-
k.$slots.append ? (f(), y("div",
|
|
2514
|
+
k.$slots.append ? (f(), y("div", Yl, [
|
|
2511
2515
|
T(k.$slots, "append", { focus: D })
|
|
2512
2516
|
])) : w("", !0)
|
|
2513
2517
|
]),
|
|
2514
|
-
|
|
2518
|
+
M(Pe, {
|
|
2515
2519
|
name: "slide-up",
|
|
2516
2520
|
mode: "out-in"
|
|
2517
2521
|
}, {
|
|
2518
2522
|
default: O(() => [
|
|
2519
|
-
r(g) && e.errorMessage ? (f(), y("div",
|
|
2523
|
+
r(g) && e.errorMessage ? (f(), y("div", Jl, [
|
|
2520
2524
|
T(k.$slots, "error", {}, () => [
|
|
2521
|
-
|
|
2525
|
+
M(r(me), {
|
|
2522
2526
|
id: r(v),
|
|
2523
2527
|
class: "vc-input__hint-error",
|
|
2524
2528
|
error: !0
|
|
@@ -2529,7 +2533,7 @@ const ml = {
|
|
|
2529
2533
|
_: 1
|
|
2530
2534
|
}, 8, ["id"])
|
|
2531
2535
|
])
|
|
2532
|
-
])) : (f(), y("div",
|
|
2536
|
+
])) : (f(), y("div", Xl, [
|
|
2533
2537
|
T(k.$slots, "hint", {}, () => [
|
|
2534
2538
|
e.hint ? (f(), P(r(me), {
|
|
2535
2539
|
key: 0,
|
|
@@ -2548,7 +2552,7 @@ const ml = {
|
|
|
2548
2552
|
})
|
|
2549
2553
|
], 16));
|
|
2550
2554
|
}
|
|
2551
|
-
}),
|
|
2555
|
+
}), hr = An.create({
|
|
2552
2556
|
name: "fontSize",
|
|
2553
2557
|
addOptions() {
|
|
2554
2558
|
return {
|
|
@@ -2578,7 +2582,7 @@ const ml = {
|
|
|
2578
2582
|
};
|
|
2579
2583
|
}
|
|
2580
2584
|
});
|
|
2581
|
-
function
|
|
2585
|
+
function Zl(e = {}) {
|
|
2582
2586
|
const {
|
|
2583
2587
|
containerSelector: t = '[role="menu"]',
|
|
2584
2588
|
itemSelector: n = '[tabindex="0"]',
|
|
@@ -2696,7 +2700,7 @@ function Ot(e, t) {
|
|
|
2696
2700
|
const n = e !== void 0 ? e : t;
|
|
2697
2701
|
return typeof n == "function" ? n : (a) => a === null || typeof a != "object" ? a : n && n in a ? a[n] : a;
|
|
2698
2702
|
}
|
|
2699
|
-
function
|
|
2703
|
+
function Ql(e) {
|
|
2700
2704
|
const t = $(() => Ot(e.optionValue(), "id")), n = $(() => Ot(e.optionLabel(), "title"));
|
|
2701
2705
|
function a(l, s, u, v) {
|
|
2702
2706
|
const m = (g) => De(t.value(g), l);
|
|
@@ -2716,7 +2720,7 @@ function Zl(e) {
|
|
|
2716
2720
|
fieldValueIsFilled: i
|
|
2717
2721
|
};
|
|
2718
2722
|
}
|
|
2719
|
-
function
|
|
2723
|
+
function _l() {
|
|
2720
2724
|
const e = I(null), t = I(!1);
|
|
2721
2725
|
let n = null, a = null;
|
|
2722
2726
|
function o() {
|
|
@@ -2746,7 +2750,7 @@ function Ql() {
|
|
|
2746
2750
|
ensureVisibility: i
|
|
2747
2751
|
};
|
|
2748
2752
|
}
|
|
2749
|
-
function
|
|
2753
|
+
function eo(e) {
|
|
2750
2754
|
const t = I(!1), n = I(!1), a = I(null), o = I(null);
|
|
2751
2755
|
function i() {
|
|
2752
2756
|
return {
|
|
@@ -2760,7 +2764,7 @@ function _l(e) {
|
|
|
2760
2764
|
}
|
|
2761
2765
|
};
|
|
2762
2766
|
}
|
|
2763
|
-
const l =
|
|
2767
|
+
const l = ra(a, o, {
|
|
2764
2768
|
placement: $(() => e.placement),
|
|
2765
2769
|
middleware: $(() => [
|
|
2766
2770
|
At({ fallbackPlacements: ["top", "bottom"] }),
|
|
@@ -2792,7 +2796,7 @@ function _l(e) {
|
|
|
2792
2796
|
toggleDropdown: u
|
|
2793
2797
|
};
|
|
2794
2798
|
}
|
|
2795
|
-
function
|
|
2799
|
+
function to(e) {
|
|
2796
2800
|
const t = I([]), n = I(null), a = I(0), o = I(0), i = I(!1), l = I(!1), s = I(!1), u = I(!1), v = I(), m = I([]), g = I(!1), d = /* @__PURE__ */ new Map();
|
|
2797
2801
|
let c = !1, b = 0, h = 0, E = 0, p;
|
|
2798
2802
|
const S = $(() => n.value ?? t.value), F = $(() => n.value !== null ? !l.value && n.value.length < o.value : !i.value && t.value.length < a.value);
|
|
@@ -2830,17 +2834,17 @@ function eo(e) {
|
|
|
2830
2834
|
const D = n.value !== null, V = E, k = n.value;
|
|
2831
2835
|
try {
|
|
2832
2836
|
s.value = !0;
|
|
2833
|
-
const
|
|
2837
|
+
const R = await B(v.value, D ? h : b);
|
|
2834
2838
|
if (D && (n.value !== k || V !== E)) return;
|
|
2835
|
-
const L =
|
|
2839
|
+
const L = R?.results ?? [];
|
|
2836
2840
|
if (D ? h += L.length : b += L.length, L.length === 0) {
|
|
2837
2841
|
D ? l.value = !0 : i.value = !0;
|
|
2838
2842
|
return;
|
|
2839
2843
|
}
|
|
2840
2844
|
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 =
|
|
2842
|
-
} catch (
|
|
2843
|
-
console.error("useSelectDataSource: error loading more",
|
|
2845
|
+
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);
|
|
2846
|
+
} catch (R) {
|
|
2847
|
+
console.error("useSelectDataSource: error loading more", R);
|
|
2844
2848
|
} finally {
|
|
2845
2849
|
s.value = !1;
|
|
2846
2850
|
}
|
|
@@ -2854,8 +2858,8 @@ function eo(e) {
|
|
|
2854
2858
|
u.value = !0;
|
|
2855
2859
|
const k = await D(B);
|
|
2856
2860
|
if (V !== E) return;
|
|
2857
|
-
const
|
|
2858
|
-
n.value =
|
|
2861
|
+
const R = k?.results ?? [];
|
|
2862
|
+
n.value = R, o.value = k?.totalCount ?? 0, h = R.length, l.value = R.length === 0 || h >= o.value, K(R);
|
|
2859
2863
|
} catch (k) {
|
|
2860
2864
|
if (V !== E) return;
|
|
2861
2865
|
console.error("useSelectDataSource: error searching", k), n.value = [], o.value = 0, h = 0, l.value = !0;
|
|
@@ -2864,8 +2868,8 @@ function eo(e) {
|
|
|
2864
2868
|
}
|
|
2865
2869
|
} else {
|
|
2866
2870
|
const V = t.value.filter((k) => {
|
|
2867
|
-
const
|
|
2868
|
-
return String(
|
|
2871
|
+
const R = e.getOptionLabel.value(k);
|
|
2872
|
+
return String(R).toLowerCase().includes(B.toLowerCase());
|
|
2869
2873
|
});
|
|
2870
2874
|
n.value = V, o.value = V.length, h = V.length, l.value = !0;
|
|
2871
2875
|
}
|
|
@@ -2902,8 +2906,8 @@ function eo(e) {
|
|
|
2902
2906
|
const H = String(e.getOptionValue.value(L));
|
|
2903
2907
|
V.includes(H) && d.set(H, L);
|
|
2904
2908
|
}
|
|
2905
|
-
const
|
|
2906
|
-
return m.value =
|
|
2909
|
+
const R = B.map((L) => d.get(String(L))).filter(Boolean);
|
|
2910
|
+
return m.value = R, R;
|
|
2907
2911
|
}
|
|
2908
2912
|
async function C() {
|
|
2909
2913
|
t.value = [], a.value = 0, b = 0, i.value = !1, _(), d.clear(), m.value = [], c = !1, await J();
|
|
@@ -2916,8 +2920,8 @@ function eo(e) {
|
|
|
2916
2920
|
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
2921
|
const D = m.value;
|
|
2918
2922
|
(D.length === 0 ? t.value.filter((k) => {
|
|
2919
|
-
const
|
|
2920
|
-
return d.has(
|
|
2923
|
+
const R = String(e.getOptionValue.value(k));
|
|
2924
|
+
return d.has(R);
|
|
2921
2925
|
}) : D).length;
|
|
2922
2926
|
}
|
|
2923
2927
|
},
|
|
@@ -2940,7 +2944,7 @@ function eo(e) {
|
|
|
2940
2944
|
refresh: C
|
|
2941
2945
|
};
|
|
2942
2946
|
}
|
|
2943
|
-
function
|
|
2947
|
+
function no(e) {
|
|
2944
2948
|
let t = [];
|
|
2945
2949
|
const n = $(() => {
|
|
2946
2950
|
const g = e.mapOptions() === !0 && e.multiple() !== !0, d = e.modelValue() !== void 0 && (e.modelValue() !== null || g === !0) ? e.multiple() === !0 && Array.isArray(e.modelValue()) ? e.modelValue() : [e.modelValue()] : [];
|
|
@@ -3033,40 +3037,40 @@ function to(e) {
|
|
|
3033
3037
|
onReset: m
|
|
3034
3038
|
};
|
|
3035
3039
|
}
|
|
3036
|
-
const
|
|
3040
|
+
const ao = { class: "vc-select__control" }, lo = {
|
|
3037
3041
|
key: 0,
|
|
3038
3042
|
class: "vc-select__prepend"
|
|
3039
|
-
},
|
|
3043
|
+
}, oo = { class: "vc-select__field" }, io = { class: "vc-select__field-inner" }, ro = { class: "vc-select__field-content" }, so = {
|
|
3040
3044
|
key: 0,
|
|
3041
3045
|
class: "vc-select__prepend-inner"
|
|
3042
|
-
},
|
|
3046
|
+
}, uo = { class: "vc-select__field-main" }, co = {
|
|
3043
3047
|
key: 0,
|
|
3044
3048
|
class: "vc-select__prefix"
|
|
3045
|
-
},
|
|
3049
|
+
}, fo = ["aria-expanded", "aria-controls", "aria-labelledby", "aria-describedby", "aria-required", "aria-invalid"], vo = {
|
|
3046
3050
|
key: 0,
|
|
3047
3051
|
class: "vc-select__placeholder"
|
|
3048
|
-
},
|
|
3052
|
+
}, go = {
|
|
3049
3053
|
key: 1,
|
|
3050
3054
|
class: "vc-select__selected"
|
|
3051
|
-
},
|
|
3055
|
+
}, mo = { class: "vc-select__multiple-item" }, po = {
|
|
3052
3056
|
key: 0,
|
|
3053
3057
|
class: "vc-select__loading"
|
|
3054
|
-
},
|
|
3058
|
+
}, bo = { key: 1 }, yo = ["aria-label", "onClick", "onKeydown"], ho = {
|
|
3055
3059
|
key: 0,
|
|
3056
3060
|
class: "vc-select__loading"
|
|
3057
|
-
},
|
|
3061
|
+
}, ko = {
|
|
3058
3062
|
key: 1,
|
|
3059
3063
|
class: "vc-select__suffix"
|
|
3060
|
-
},
|
|
3064
|
+
}, Io = ["aria-label"], So = {
|
|
3061
3065
|
key: 1,
|
|
3062
3066
|
class: "vc-select__append-inner"
|
|
3063
|
-
},
|
|
3067
|
+
}, $o = {
|
|
3064
3068
|
key: 2,
|
|
3065
3069
|
class: "vc-select__loading-icon"
|
|
3066
|
-
},
|
|
3070
|
+
}, wo = ["aria-label"], Oo = { class: "vc-select__chevron" }, Eo = { class: "vc-select__hint-error" }, Lo = { key: 0 }, Bo = { key: 1 }, Co = {
|
|
3067
3071
|
key: 1,
|
|
3068
3072
|
class: "vc-select__append"
|
|
3069
|
-
},
|
|
3073
|
+
}, xo = /* @__PURE__ */ z({
|
|
3070
3074
|
__name: "SelectTrigger",
|
|
3071
3075
|
props: {
|
|
3072
3076
|
isOpened: { type: Boolean },
|
|
@@ -3110,8 +3114,8 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3110
3114
|
toggleHandler: e.toggleDropdown,
|
|
3111
3115
|
isOpened: e.isOpened
|
|
3112
3116
|
}, () => [
|
|
3113
|
-
x("div",
|
|
3114
|
-
o.$slots.prepend ? (f(), y("div",
|
|
3117
|
+
x("div", ao, [
|
|
3118
|
+
o.$slots.prepend ? (f(), y("div", lo, [
|
|
3115
3119
|
T(o.$slots, "prepend")
|
|
3116
3120
|
])) : w("", !0),
|
|
3117
3121
|
x("div", {
|
|
@@ -3120,14 +3124,14 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3120
3124
|
"vc-select__field-wrapper--small": e.size === "small"
|
|
3121
3125
|
}])
|
|
3122
3126
|
}, [
|
|
3123
|
-
x("div",
|
|
3124
|
-
x("div",
|
|
3125
|
-
x("div",
|
|
3126
|
-
o.$slots["prepend-inner"] ? (f(), y("div",
|
|
3127
|
+
x("div", oo, [
|
|
3128
|
+
x("div", io, [
|
|
3129
|
+
x("div", ro, [
|
|
3130
|
+
o.$slots["prepend-inner"] ? (f(), y("div", so, [
|
|
3127
3131
|
T(o.$slots, "prepend-inner")
|
|
3128
3132
|
])) : w("", !0),
|
|
3129
|
-
x("div",
|
|
3130
|
-
e.prefix ? (f(), y("div",
|
|
3133
|
+
x("div", uo, [
|
|
3134
|
+
e.prefix ? (f(), y("div", co, A(e.prefix), 1)) : w("", !0),
|
|
3131
3135
|
x("div", {
|
|
3132
3136
|
"data-test-id": "dropdown-toggle",
|
|
3133
3137
|
class: "vc-select__input",
|
|
@@ -3160,7 +3164,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3160
3164
|
onFocus: i[3] || (i[3] = (l) => o.$emit("focus")),
|
|
3161
3165
|
onBlur: i[4] || (i[4] = (l) => o.$emit("blur"))
|
|
3162
3166
|
}, [
|
|
3163
|
-
e.hasValue ? e.selectedScope && e.selectedScope.length && e.hasValue ? (f(), y("div",
|
|
3167
|
+
e.hasValue ? e.selectedScope && e.selectedScope.length && e.hasValue ? (f(), y("div", go, [
|
|
3164
3168
|
(f(!0), y(Le, null, st(e.selectedScope, (l, s) => (f(), y("div", {
|
|
3165
3169
|
key: s,
|
|
3166
3170
|
class: "vc-select__selected-item"
|
|
@@ -3169,8 +3173,8 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3169
3173
|
key: 0,
|
|
3170
3174
|
ref_for: !0
|
|
3171
3175
|
}, l), () => [
|
|
3172
|
-
x("div",
|
|
3173
|
-
e.loading ? (f(), y("span",
|
|
3176
|
+
x("div", mo, [
|
|
3177
|
+
e.loading ? (f(), y("span", po, A(r(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : (f(), y("span", bo, A(e.getOptionLabel(l.opt)), 1)),
|
|
3174
3178
|
e.disabled ? w("", !0) : (f(), y("button", {
|
|
3175
3179
|
key: 2,
|
|
3176
3180
|
type: "button",
|
|
@@ -3180,15 +3184,15 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3180
3184
|
onClick: G((u) => o.$emit("removeAtIndex", l.index), ["stop"]),
|
|
3181
3185
|
onKeydown: X(G((u) => o.$emit("removeAtIndex", l.index), ["stop", "prevent"]), ["enter"])
|
|
3182
3186
|
}, [
|
|
3183
|
-
|
|
3187
|
+
M(r(U), {
|
|
3184
3188
|
class: "vc-select__icon-remove",
|
|
3185
3189
|
icon: "lucide-x",
|
|
3186
3190
|
size: "xs"
|
|
3187
3191
|
})
|
|
3188
|
-
], 40,
|
|
3192
|
+
], 40, yo))
|
|
3189
3193
|
])
|
|
3190
3194
|
]) : e.multiple ? w("", !0) : (f(), y(Le, { key: 1 }, [
|
|
3191
|
-
e.loading ? (f(), y("span",
|
|
3195
|
+
e.loading ? (f(), y("span", ho, A(r(n)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)) : T(o.$slots, "selected-item", ee({
|
|
3192
3196
|
key: 1,
|
|
3193
3197
|
ref_for: !0
|
|
3194
3198
|
}, l), () => [
|
|
@@ -3196,15 +3200,15 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3196
3200
|
])
|
|
3197
3201
|
], 64))
|
|
3198
3202
|
]))), 128))
|
|
3199
|
-
])) : w("", !0) : (f(), y("div",
|
|
3203
|
+
])) : w("", !0) : (f(), y("div", vo, [
|
|
3200
3204
|
e.placeholder ? (f(), y(Le, { key: 0 }, [
|
|
3201
3205
|
Z(A(e.placeholder), 1)
|
|
3202
3206
|
], 64)) : (f(), y(Le, { key: 1 }, [
|
|
3203
3207
|
Z(A(r(n)("COMPONENTS.MOLECULES.VC_SELECT.CLICK_TO_SELECT")), 1)
|
|
3204
3208
|
], 64))
|
|
3205
3209
|
]))
|
|
3206
|
-
], 40,
|
|
3207
|
-
e.suffix ? (f(), y("div",
|
|
3210
|
+
], 40, fo),
|
|
3211
|
+
e.suffix ? (f(), y("div", ko, A(e.suffix), 1)) : w("", !0),
|
|
3208
3212
|
e.clearable && e.hasValue && !e.disabled ? (f(), y("div", {
|
|
3209
3213
|
key: 2,
|
|
3210
3214
|
class: "vc-select__clear",
|
|
@@ -3217,17 +3221,17 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3217
3221
|
i[7] || (i[7] = X((l) => o.$emit("reset"), ["space"]))
|
|
3218
3222
|
]
|
|
3219
3223
|
}, [
|
|
3220
|
-
|
|
3224
|
+
M(r(U), {
|
|
3221
3225
|
size: "xs",
|
|
3222
3226
|
icon: "lucide-x"
|
|
3223
3227
|
})
|
|
3224
|
-
], 40,
|
|
3228
|
+
], 40, Io)) : w("", !0)
|
|
3225
3229
|
]),
|
|
3226
|
-
o.$slots["append-inner"] ? (f(), y("div",
|
|
3230
|
+
o.$slots["append-inner"] ? (f(), y("div", So, [
|
|
3227
3231
|
T(o.$slots, "append-inner")
|
|
3228
3232
|
])) : w("", !0),
|
|
3229
|
-
e.loading || e.listLoading || e.defaultOptionLoading ? (f(), y("div",
|
|
3230
|
-
|
|
3233
|
+
e.loading || e.listLoading || e.defaultOptionLoading ? (f(), y("div", $o, [
|
|
3234
|
+
M(r(U), {
|
|
3231
3235
|
icon: "lucide-loader-2",
|
|
3232
3236
|
class: "tw-animate-spin",
|
|
3233
3237
|
size: "m"
|
|
@@ -3257,25 +3261,25 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3257
3261
|
), ["space"]))
|
|
3258
3262
|
]
|
|
3259
3263
|
}, [
|
|
3260
|
-
x("div",
|
|
3261
|
-
|
|
3264
|
+
x("div", Oo, [
|
|
3265
|
+
M(r(U), {
|
|
3262
3266
|
size: "s",
|
|
3263
3267
|
icon: "lucide-chevron-down"
|
|
3264
3268
|
})
|
|
3265
3269
|
])
|
|
3266
|
-
], 40,
|
|
3270
|
+
], 40, wo))
|
|
3267
3271
|
])
|
|
3268
3272
|
])
|
|
3269
3273
|
]),
|
|
3270
|
-
x("div",
|
|
3271
|
-
|
|
3274
|
+
x("div", Eo, [
|
|
3275
|
+
M(Pe, {
|
|
3272
3276
|
name: "slide-up",
|
|
3273
3277
|
mode: "out-in"
|
|
3274
3278
|
}, {
|
|
3275
3279
|
default: O(() => [
|
|
3276
|
-
e.error && e.errorMessage ? (f(), y("div",
|
|
3280
|
+
e.error && e.errorMessage ? (f(), y("div", Lo, [
|
|
3277
3281
|
T(o.$slots, "error", {}, () => [
|
|
3278
|
-
|
|
3282
|
+
M(r(me), {
|
|
3279
3283
|
id: e.errorId,
|
|
3280
3284
|
class: "vc-select__error-message",
|
|
3281
3285
|
error: !0
|
|
@@ -3286,7 +3290,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3286
3290
|
_: 1
|
|
3287
3291
|
}, 8, ["id"])
|
|
3288
3292
|
])
|
|
3289
|
-
])) : (f(), y("div",
|
|
3293
|
+
])) : (f(), y("div", Bo, [
|
|
3290
3294
|
T(o.$slots, "hint", {}, () => [
|
|
3291
3295
|
e.hint ? (f(), P(r(me), {
|
|
3292
3296
|
key: 0,
|
|
@@ -3305,23 +3309,23 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3305
3309
|
})
|
|
3306
3310
|
])
|
|
3307
3311
|
], 2),
|
|
3308
|
-
o.$slots.append ? (f(), y("div",
|
|
3312
|
+
o.$slots.append ? (f(), y("div", Co, [
|
|
3309
3313
|
T(o.$slots, "append")
|
|
3310
3314
|
])) : w("", !0)
|
|
3311
3315
|
])
|
|
3312
3316
|
])
|
|
3313
3317
|
], 512));
|
|
3314
3318
|
}
|
|
3315
|
-
}),
|
|
3319
|
+
}), To = ["id", "aria-label"], Ro = ["aria-label"], Mo = ["aria-selected", "data-index", "onClick", "onKeydown"], Ao = {
|
|
3316
3320
|
key: 0,
|
|
3317
3321
|
class: "vc-select__check-icon"
|
|
3318
|
-
},
|
|
3322
|
+
}, No = {
|
|
3319
3323
|
key: 0,
|
|
3320
3324
|
class: "vc-select__list-loading-indicator"
|
|
3321
|
-
},
|
|
3325
|
+
}, Do = { class: "tw-ml-1" }, Vo = {
|
|
3322
3326
|
key: 1,
|
|
3323
3327
|
class: "vc-select__no-options"
|
|
3324
|
-
},
|
|
3328
|
+
}, Po = { class: "vc-select__no-options-text" }, Fo = /* @__PURE__ */ z({
|
|
3325
3329
|
__name: "SelectDropdown",
|
|
3326
3330
|
props: {
|
|
3327
3331
|
isOpened: { type: Boolean },
|
|
@@ -3337,12 +3341,12 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3337
3341
|
},
|
|
3338
3342
|
emits: ["input", "clickOutside"],
|
|
3339
3343
|
setup(e, { expose: t, emit: n }) {
|
|
3340
|
-
const a = e, o = n, { t: i } = we({ useScope: "global" }), { teleportTarget: l } =
|
|
3344
|
+
const a = e, o = n, { t: i } = we({ useScope: "global" }), { teleportTarget: l } = wn(), s = I(null), u = I(null), v = I(null), m = I(null), g = $(() => v.value?.viewportRef ?? null);
|
|
3341
3345
|
function d(c) {
|
|
3342
3346
|
const b = g.value;
|
|
3343
3347
|
if (!b) return;
|
|
3344
3348
|
if (b.contains(c.target)) {
|
|
3345
|
-
const E = b.scrollTop <= 0 && c.deltaY < 0, p =
|
|
3349
|
+
const E = b.scrollTop <= 0 && c.deltaY < 0, p = Ft(b) && c.deltaY > 0;
|
|
3346
3350
|
(E || p) && c.preventDefault();
|
|
3347
3351
|
} else
|
|
3348
3352
|
c.preventDefault(), b.scrollTop += c.deltaY;
|
|
@@ -3363,8 +3367,8 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3363
3367
|
searchInputRef: u,
|
|
3364
3368
|
viewportRef: g,
|
|
3365
3369
|
loadMoreRef: m
|
|
3366
|
-
}), (c, b) => (f(), P(
|
|
3367
|
-
|
|
3370
|
+
}), (c, b) => (f(), P(dn, { to: r(l) }, [
|
|
3371
|
+
M(Pe, { name: "select-dropdown" }, {
|
|
3368
3372
|
default: O(() => [
|
|
3369
3373
|
e.isOpened ? ct((f(), y("div", {
|
|
3370
3374
|
key: 0,
|
|
@@ -3393,8 +3397,8 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3393
3397
|
b[2] || (b[2] = X(G(() => {
|
|
3394
3398
|
}, ["stop"]), ["enter"]))
|
|
3395
3399
|
]
|
|
3396
|
-
}, null, 40,
|
|
3397
|
-
|
|
3400
|
+
}, null, 40, Ro)) : w("", !0),
|
|
3401
|
+
M(r(il), {
|
|
3398
3402
|
ref_key: "scrollContainerRef",
|
|
3399
3403
|
ref: v,
|
|
3400
3404
|
class: "vc-select__scroll-container"
|
|
@@ -3417,24 +3421,24 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3417
3421
|
T(c.$slots, "option", ee({ ref_for: !0 }, h), () => [
|
|
3418
3422
|
Z(A(h.label), 1)
|
|
3419
3423
|
]),
|
|
3420
|
-
h.selected ? (f(), y("span",
|
|
3421
|
-
|
|
3424
|
+
h.selected ? (f(), y("span", Ao, [
|
|
3425
|
+
M(r(U), {
|
|
3422
3426
|
icon: "lucide-check",
|
|
3423
3427
|
size: "xs"
|
|
3424
3428
|
})
|
|
3425
3429
|
])) : w("", !0)
|
|
3426
3430
|
], 42, Mo))), 128)),
|
|
3427
|
-
e.listLoading ? (f(), y("div",
|
|
3428
|
-
|
|
3431
|
+
e.listLoading ? (f(), y("div", No, [
|
|
3432
|
+
M(r(U), {
|
|
3429
3433
|
icon: "lucide-loader-2",
|
|
3430
3434
|
class: "tw-animate-spin",
|
|
3431
3435
|
size: "m"
|
|
3432
3436
|
}),
|
|
3433
|
-
x("span",
|
|
3437
|
+
x("span", Do, A(e.optionsListLength > 0 ? r(i)("COMPONENTS.MOLECULES.VC_SELECT.LOADING_MORE") : r(i)("COMPONENTS.MOLECULES.VC_SELECT.LOADING")), 1)
|
|
3434
3438
|
])) : w("", !0),
|
|
3435
|
-
!e.listLoading && !e.optionsListLength ? (f(), y("div",
|
|
3439
|
+
!e.listLoading && !e.optionsListLength ? (f(), y("div", Vo, [
|
|
3436
3440
|
T(c.$slots, "no-options", {}, () => [
|
|
3437
|
-
x("span",
|
|
3441
|
+
x("span", Po, A(r(i)("COMPONENTS.MOLECULES.VC_SELECT.NO_OPTIONS")), 1)
|
|
3438
3442
|
])
|
|
3439
3443
|
])) : w("", !0),
|
|
3440
3444
|
e.hasNextPage && !e.listLoading ? (f(), y("span", {
|
|
@@ -3446,15 +3450,15 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3446
3450
|
]),
|
|
3447
3451
|
_: 3
|
|
3448
3452
|
}, 512)
|
|
3449
|
-
], 44,
|
|
3450
|
-
[r(
|
|
3453
|
+
], 44, To)), [
|
|
3454
|
+
[r(zn), [() => o("clickOutside"), { ignore: [e.dropdownToggleRef] }]]
|
|
3451
3455
|
]) : w("", !0)
|
|
3452
3456
|
]),
|
|
3453
3457
|
_: 3
|
|
3454
3458
|
})
|
|
3455
3459
|
], 8, ["to"]));
|
|
3456
3460
|
}
|
|
3457
|
-
}),
|
|
3461
|
+
}), zo = ["innerHTML"], qo = { class: "vc-select__field-container" }, Uo = /* @__PURE__ */ z({
|
|
3458
3462
|
inheritAttrs: !1,
|
|
3459
3463
|
__name: "vc-select",
|
|
3460
3464
|
props: {
|
|
@@ -3501,10 +3505,10 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3501
3505
|
resolvedName: b,
|
|
3502
3506
|
ariaRequired: h,
|
|
3503
3507
|
ariaDescribedBy: E
|
|
3504
|
-
} = He(n), p = $(() => `${u.value}-listbox`), S = I(null), F = I(null), { selectRootRef: K, isSelectVisible: _, ensureVisibility: J } =
|
|
3508
|
+
} = He(n), p = $(() => `${u.value}-listbox`), S = I(null), F = I(null), { selectRootRef: K, isSelectVisible: _, ensureVisibility: J } = _l(), { getOptionValue: re, getOptionLabel: ae, getOption: te, getEmittingOptionValue: ce, fieldValueIsFilled: se } = Ql({
|
|
3505
3509
|
optionValue: () => n.optionValue,
|
|
3506
3510
|
optionLabel: () => n.optionLabel
|
|
3507
|
-
}), { isOpened: q, isFocused: C, dropdownToggleRef: B, dropdownRef: D, popper: V, dropdownStyle: k, toggleDropdown:
|
|
3511
|
+
}), { isOpened: q, isFocused: C, dropdownToggleRef: B, dropdownRef: D, popper: V, dropdownStyle: k, toggleDropdown: R } = eo({
|
|
3508
3512
|
placement: n.placement,
|
|
3509
3513
|
outline: () => n.outline,
|
|
3510
3514
|
isSelectVisible: _,
|
|
@@ -3517,7 +3521,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3517
3521
|
}), tt(() => {
|
|
3518
3522
|
D.value = F.value?.dropdownElRef ?? null;
|
|
3519
3523
|
});
|
|
3520
|
-
const L =
|
|
3524
|
+
const L = to({
|
|
3521
3525
|
options: () => n.options,
|
|
3522
3526
|
getOptionValue: re,
|
|
3523
3527
|
getOptionLabel: ae,
|
|
@@ -3526,7 +3530,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3526
3530
|
emit: {
|
|
3527
3531
|
search: (N) => i("search", N)
|
|
3528
3532
|
}
|
|
3529
|
-
}), { selectedScope: H, hasValue: xe, optionScope: de, removeAtIndex: Te, onReset:
|
|
3533
|
+
}), { selectedScope: H, hasValue: xe, optionScope: de, removeAtIndex: Te, onReset: _t } = no({
|
|
3530
3534
|
modelValue: () => n.modelValue,
|
|
3531
3535
|
multiple: () => n.multiple,
|
|
3532
3536
|
emitValue: () => n.emitValue ?? !0,
|
|
@@ -3544,15 +3548,18 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3544
3548
|
updateModelValue: (N) => i("update:modelValue", N),
|
|
3545
3549
|
close: () => i("close")
|
|
3546
3550
|
}
|
|
3547
|
-
}),
|
|
3548
|
-
|
|
3549
|
-
|
|
3551
|
+
}), en = $(() => F.value?.loadMoreRef ?? null), tn = $(() => F.value?.viewportRef ?? null);
|
|
3552
|
+
Tn(
|
|
3553
|
+
en,
|
|
3550
3554
|
([{ isIntersecting: N }]) => {
|
|
3551
3555
|
N && L.hasMore.value && L.loadMore();
|
|
3552
3556
|
},
|
|
3553
|
-
|
|
3557
|
+
// The trigger is a 1px line at the end of the list. Asking for all of it to show never fires
|
|
3558
|
+
// under a fractional zoom, where the scrolled-to-end line sits a fraction past the viewport.
|
|
3559
|
+
// Any part showing is enough, and the margin starts the next page just before the end.
|
|
3560
|
+
{ threshold: 0, rootMargin: "0px 0px 48px 0px", root: tn }
|
|
3554
3561
|
);
|
|
3555
|
-
const Xe =
|
|
3562
|
+
const Xe = Zl({
|
|
3556
3563
|
onEnter: (N) => {
|
|
3557
3564
|
const Q = parseInt(N.getAttribute("data-index") || "0", 10);
|
|
3558
3565
|
de.value && de.value[Q] && de.value[Q].toggleOption(de.value[Q].opt);
|
|
@@ -3563,7 +3570,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3563
3570
|
});
|
|
3564
3571
|
}
|
|
3565
3572
|
});
|
|
3566
|
-
function
|
|
3573
|
+
function nn() {
|
|
3567
3574
|
q.value = !1, i("close");
|
|
3568
3575
|
}
|
|
3569
3576
|
return j(q, async (N) => {
|
|
@@ -3574,10 +3581,10 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3574
3581
|
if (Xe.initKeyboardNavigation(Q), n.searchable && le)
|
|
3575
3582
|
le.focus();
|
|
3576
3583
|
else {
|
|
3577
|
-
const
|
|
3584
|
+
const Re = Q.querySelector(
|
|
3578
3585
|
'.vc-select__option[tabindex="0"], .vc-select__search-input[tabindex="0"]'
|
|
3579
3586
|
);
|
|
3580
|
-
|
|
3587
|
+
Re ? Re.focus() : Xe.focusFirstElement();
|
|
3581
3588
|
}
|
|
3582
3589
|
})) : (Xe.cleanupKeyboardNavigation(), L.close());
|
|
3583
3590
|
}), j(
|
|
@@ -3589,10 +3596,10 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3589
3596
|
}
|
|
3590
3597
|
const Q = n.emitValue ?? !0;
|
|
3591
3598
|
if (n.mapOptions ?? !0) {
|
|
3592
|
-
const
|
|
3599
|
+
const Re = Array.isArray(N) ? N : [N], ht = Q ? Re : Re.filter((Me) => Me != null && typeof Me != "object");
|
|
3593
3600
|
if (ht.length > 0) {
|
|
3594
|
-
const
|
|
3595
|
-
|
|
3601
|
+
const Me = ht.filter((an) => an != null).map(String);
|
|
3602
|
+
Me.length > 0 && await L.resolve(Me);
|
|
3596
3603
|
}
|
|
3597
3604
|
}
|
|
3598
3605
|
},
|
|
@@ -3606,7 +3613,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3606
3613
|
width: 60 + (e.label?.length || 0) * 4,
|
|
3607
3614
|
height: 11
|
|
3608
3615
|
}, null, 8, ["width"])) : w("", !0),
|
|
3609
|
-
|
|
3616
|
+
M(r(ne), {
|
|
3610
3617
|
variant: "block",
|
|
3611
3618
|
width: "100%",
|
|
3612
3619
|
height: 36
|
|
@@ -3647,13 +3654,13 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3647
3654
|
fn: O(() => [
|
|
3648
3655
|
x("span", {
|
|
3649
3656
|
innerHTML: r(Dt).sanitize(e.tooltip)
|
|
3650
|
-
}, null, 8,
|
|
3657
|
+
}, null, 8, zo)
|
|
3651
3658
|
]),
|
|
3652
3659
|
key: "0"
|
|
3653
3660
|
} : void 0
|
|
3654
3661
|
]), 1032, ["id", "required", "multilanguage", "current-language", "error"])) : w("", !0),
|
|
3655
|
-
x("div",
|
|
3656
|
-
|
|
3662
|
+
x("div", qo, [
|
|
3663
|
+
M(xo, {
|
|
3657
3664
|
ref_key: "selectTriggerRef",
|
|
3658
3665
|
ref: S,
|
|
3659
3666
|
"is-opened": r(q),
|
|
@@ -3679,12 +3686,12 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3679
3686
|
"aria-required": r(h),
|
|
3680
3687
|
"error-id": r(m),
|
|
3681
3688
|
"hint-id": r(g),
|
|
3682
|
-
"toggle-dropdown": r(
|
|
3689
|
+
"toggle-dropdown": r(R),
|
|
3683
3690
|
"get-option-label": r(ae),
|
|
3684
3691
|
"get-emitting-option-value": r(ce),
|
|
3685
3692
|
onFocus: Q[0] || (Q[0] = (le) => C.value = !0),
|
|
3686
3693
|
onBlur: Q[1] || (Q[1] = (le) => C.value = !1),
|
|
3687
|
-
onReset: r(
|
|
3694
|
+
onReset: r(_t),
|
|
3688
3695
|
onRemoveAtIndex: r(Te)
|
|
3689
3696
|
}, oe({ _: 2 }, [
|
|
3690
3697
|
N.$slots.control ? {
|
|
@@ -3744,7 +3751,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3744
3751
|
key: "7"
|
|
3745
3752
|
} : void 0
|
|
3746
3753
|
]), 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
|
-
|
|
3754
|
+
M(Fo, ee({
|
|
3748
3755
|
ref_key: "selectDropdownRef",
|
|
3749
3756
|
ref: F,
|
|
3750
3757
|
"is-opened": r(q),
|
|
@@ -3758,7 +3765,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3758
3765
|
"has-next-page": r(L).hasMore.value,
|
|
3759
3766
|
"dropdown-toggle-ref": S.value?.toggleRef ?? null,
|
|
3760
3767
|
onInput: r(L).onInput,
|
|
3761
|
-
onClickOutside:
|
|
3768
|
+
onClickOutside: nn
|
|
3762
3769
|
}), oe({ _: 2 }, [
|
|
3763
3770
|
N.$slots.option ? {
|
|
3764
3771
|
name: "option",
|
|
@@ -3778,10 +3785,10 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3778
3785
|
])
|
|
3779
3786
|
], 16));
|
|
3780
3787
|
}
|
|
3781
|
-
}),
|
|
3788
|
+
}), Ko = {
|
|
3782
3789
|
key: 0,
|
|
3783
3790
|
class: "vc-input-dropdown vc-input-dropdown--skeleton"
|
|
3784
|
-
},
|
|
3791
|
+
}, Wo = { class: "tw-flex tw-items-center" }, jo = ["aria-label", "aria-expanded", "onClick", "onKeydown"], Ho = /* @__PURE__ */ z({
|
|
3785
3792
|
__name: "vc-input-dropdown",
|
|
3786
3793
|
props: {
|
|
3787
3794
|
modelValue: {},
|
|
@@ -3815,19 +3822,19 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3815
3822
|
emits: ["update:model-value", "update:option", "change", "blur"],
|
|
3816
3823
|
setup(e) {
|
|
3817
3824
|
const t = Oe();
|
|
3818
|
-
return (n, a) => r(t) ? (f(), y("div",
|
|
3825
|
+
return (n, a) => r(t) ? (f(), y("div", Ko, [
|
|
3819
3826
|
e.label ? (f(), P(r(ne), {
|
|
3820
3827
|
key: 0,
|
|
3821
3828
|
variant: "block",
|
|
3822
3829
|
width: 60 + (e.label?.length || 0) * 4,
|
|
3823
3830
|
height: 11
|
|
3824
3831
|
}, null, 8, ["width"])) : w("", !0),
|
|
3825
|
-
|
|
3832
|
+
M(r(ne), {
|
|
3826
3833
|
variant: "block",
|
|
3827
3834
|
width: "100%",
|
|
3828
3835
|
height: 36
|
|
3829
3836
|
})
|
|
3830
|
-
])) : (f(), P(r(
|
|
3837
|
+
])) : (f(), P(r(Uo), {
|
|
3831
3838
|
key: 1,
|
|
3832
3839
|
class: "vc-input-dropdown",
|
|
3833
3840
|
options: e.options,
|
|
@@ -3848,7 +3855,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3848
3855
|
T(n.$slots, "option", Ae(Ne(o)))
|
|
3849
3856
|
]),
|
|
3850
3857
|
control: O(({ toggleHandler: o, isOpened: i }) => [
|
|
3851
|
-
|
|
3858
|
+
M(r(bt), {
|
|
3852
3859
|
placeholder: e.placeholder,
|
|
3853
3860
|
hint: e.hint,
|
|
3854
3861
|
clearable: e.clearable,
|
|
@@ -3869,7 +3876,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3869
3876
|
onBlur: a[1] || (a[1] = (l) => n.$emit("blur", l))
|
|
3870
3877
|
}, oe({
|
|
3871
3878
|
"append-inner": O(() => [
|
|
3872
|
-
x("div",
|
|
3879
|
+
x("div", Wo, [
|
|
3873
3880
|
T(n.$slots, "button", { toggleHandler: o }, () => [
|
|
3874
3881
|
e.options && e.options.length ? (f(), y("button", {
|
|
3875
3882
|
key: 0,
|
|
@@ -3884,7 +3891,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3884
3891
|
X(G(o, ["stop", "prevent"]), ["enter"]),
|
|
3885
3892
|
X(G(o, ["stop", "prevent"]), ["space"])
|
|
3886
3893
|
]
|
|
3887
|
-
}, A(r(e.option)), 41,
|
|
3894
|
+
}, A(r(e.option)), 41, jo)) : w("", !0)
|
|
3888
3895
|
]),
|
|
3889
3896
|
e.options && e.options.length ? (f(), P(r(Ma), {
|
|
3890
3897
|
key: 0,
|
|
@@ -3933,10 +3940,10 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3933
3940
|
_: 3
|
|
3934
3941
|
}, 8, ["options", "option-label", "option-value", "searchable", "debounce", "disabled", "label", "required", "model-value", "tooltip", "multilanguage", "current-language"]));
|
|
3935
3942
|
}
|
|
3936
|
-
}),
|
|
3943
|
+
}), Go = {
|
|
3937
3944
|
key: 0,
|
|
3938
3945
|
class: "vc-input-currency vc-input-currency--skeleton"
|
|
3939
|
-
},
|
|
3946
|
+
}, Yo = ["disabled", "placeholder", "aria-label"], Jo = /* @__PURE__ */ z({
|
|
3940
3947
|
__name: "vc-input-currency",
|
|
3941
3948
|
props: {
|
|
3942
3949
|
modelValue: {},
|
|
@@ -3953,7 +3960,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3953
3960
|
options: {},
|
|
3954
3961
|
optionValue: {},
|
|
3955
3962
|
optionLabel: {},
|
|
3956
|
-
currencyDisplay: { default:
|
|
3963
|
+
currencyDisplay: { default: Dn.hidden },
|
|
3957
3964
|
precision: { default: 2 },
|
|
3958
3965
|
searchable: { type: Boolean, default: !1 },
|
|
3959
3966
|
label: {},
|
|
@@ -3966,7 +3973,7 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
3966
3973
|
},
|
|
3967
3974
|
emits: ["update:model-value", "update:option", "change", "blur"],
|
|
3968
3975
|
setup(e, { emit: t }) {
|
|
3969
|
-
const n = e, a = t, o = Oe(), { inputRef: i, setOptions: l, numberValue: s, setValue: u } =
|
|
3976
|
+
const n = e, a = t, o = Oe(), { inputRef: i, setOptions: l, numberValue: s, setValue: u } = Vn(
|
|
3970
3977
|
{
|
|
3971
3978
|
locale: navigator.language,
|
|
3972
3979
|
currency: n.option || "USD",
|
|
@@ -4017,19 +4024,19 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
4017
4024
|
const b = c.clipboardData?.getData("text/plain");
|
|
4018
4025
|
typeof b < "u" && parseInt(b) < 0 && c.preventDefault();
|
|
4019
4026
|
}
|
|
4020
|
-
return (c, b) => r(o) ? (f(), y("div",
|
|
4027
|
+
return (c, b) => r(o) ? (f(), y("div", Go, [
|
|
4021
4028
|
e.label ? (f(), P(r(ne), {
|
|
4022
4029
|
key: 0,
|
|
4023
4030
|
variant: "block",
|
|
4024
4031
|
width: 60 + (e.label?.length || 0) * 4,
|
|
4025
4032
|
height: 11
|
|
4026
4033
|
}, null, 8, ["width"])) : w("", !0),
|
|
4027
|
-
|
|
4034
|
+
M(r(ne), {
|
|
4028
4035
|
variant: "block",
|
|
4029
4036
|
width: "100%",
|
|
4030
4037
|
height: 36
|
|
4031
4038
|
})
|
|
4032
|
-
])) : (f(), P(r(
|
|
4039
|
+
])) : (f(), P(r(Ho), {
|
|
4033
4040
|
key: 1,
|
|
4034
4041
|
class: "vc-input-currency",
|
|
4035
4042
|
options: e.options,
|
|
@@ -4072,31 +4079,31 @@ const no = { class: "vc-select__control" }, ao = {
|
|
|
4072
4079
|
onBlur: m,
|
|
4073
4080
|
onKeydown: g,
|
|
4074
4081
|
onPaste: d
|
|
4075
|
-
}, null, 40,
|
|
4082
|
+
}, null, 40, Yo)
|
|
4076
4083
|
]),
|
|
4077
4084
|
_: 1
|
|
4078
4085
|
}, 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
4086
|
}
|
|
4080
|
-
}),
|
|
4087
|
+
}), Jt = Symbol("VcAppBarState"), Xo = {
|
|
4081
4088
|
activeWidgetId: I(null),
|
|
4082
4089
|
activeMobileActionId: I(null)
|
|
4083
4090
|
};
|
|
4084
|
-
function
|
|
4091
|
+
function kr() {
|
|
4085
4092
|
const e = {
|
|
4086
4093
|
activeWidgetId: I(null),
|
|
4087
4094
|
activeMobileActionId: I(null)
|
|
4088
4095
|
};
|
|
4089
|
-
return Et(
|
|
4096
|
+
return Et(Jt, e), e;
|
|
4090
4097
|
}
|
|
4091
|
-
function
|
|
4092
|
-
return Y(
|
|
4098
|
+
function Ir() {
|
|
4099
|
+
return Y(Jt, Xo);
|
|
4093
4100
|
}
|
|
4094
|
-
const
|
|
4101
|
+
const Sr = Symbol("TableContext"), Zo = Symbol("ColumnCollector"), $r = Symbol("FillerWidth"), wr = Symbol("IsColumnReordering"), Or = Symbol("MobileCellEdit"), Er = (e, t) => {
|
|
4095
4102
|
const n = e.__vccOpts || e;
|
|
4096
4103
|
for (const [a, o] of t)
|
|
4097
4104
|
n[a] = o;
|
|
4098
4105
|
return n;
|
|
4099
|
-
},
|
|
4106
|
+
}, Lr = z({
|
|
4100
4107
|
name: "VcColumn",
|
|
4101
4108
|
inheritAttrs: !1,
|
|
4102
4109
|
props: {
|
|
@@ -4274,7 +4281,7 @@ const Ir = Symbol("TableContext"), Xo = Symbol("ColumnCollector"), Sr = Symbol("
|
|
|
4274
4281
|
}
|
|
4275
4282
|
},
|
|
4276
4283
|
setup(e, { slots: t }) {
|
|
4277
|
-
const n = Y(
|
|
4284
|
+
const n = Y(Zo, null), a = We();
|
|
4278
4285
|
return je(() => {
|
|
4279
4286
|
n && a && n.add({
|
|
4280
4287
|
instance: a,
|
|
@@ -4286,7 +4293,7 @@ const Ir = Symbol("TableContext"), Xo = Symbol("ColumnCollector"), Sr = Symbol("
|
|
|
4286
4293
|
}), () => null;
|
|
4287
4294
|
}
|
|
4288
4295
|
}), Ee = nt(/* @__PURE__ */ new Map());
|
|
4289
|
-
function
|
|
4296
|
+
function Xt() {
|
|
4290
4297
|
return {
|
|
4291
4298
|
register: (l) => {
|
|
4292
4299
|
Ee.set(l.type, l);
|
|
@@ -4300,7 +4307,7 @@ function Jt() {
|
|
|
4300
4307
|
}
|
|
4301
4308
|
};
|
|
4302
4309
|
}
|
|
4303
|
-
const
|
|
4310
|
+
const Qo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__ */ z({
|
|
4304
4311
|
__name: "CellEditableWrapper",
|
|
4305
4312
|
props: {
|
|
4306
4313
|
label: {},
|
|
@@ -4314,7 +4321,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
|
|
|
4314
4321
|
return je(() => {
|
|
4315
4322
|
const a = t.modelValue === void 0 || t.modelValue === null || t.modelValue === "";
|
|
4316
4323
|
(t.validateOnMount || a && t.rules) && n.value?.validate();
|
|
4317
|
-
}), (a, o) => (f(), P(r(
|
|
4324
|
+
}), (a, o) => (f(), P(r(On), {
|
|
4318
4325
|
ref_key: "fieldRef",
|
|
4319
4326
|
ref: n,
|
|
4320
4327
|
label: e.label,
|
|
@@ -4323,7 +4330,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
|
|
|
4323
4330
|
rules: e.rules
|
|
4324
4331
|
}, {
|
|
4325
4332
|
default: O(({ errors: i, errorMessage: l }) => [
|
|
4326
|
-
|
|
4333
|
+
M(Tt, { placement: "bottom" }, oe({
|
|
4327
4334
|
default: O(() => [
|
|
4328
4335
|
T(a.$slots, "default", {
|
|
4329
4336
|
errors: i,
|
|
@@ -4335,7 +4342,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
|
|
|
4335
4342
|
l ? {
|
|
4336
4343
|
name: "tooltip",
|
|
4337
4344
|
fn: O(() => [
|
|
4338
|
-
x("div",
|
|
4345
|
+
x("div", Qo, A(l), 1)
|
|
4339
4346
|
]),
|
|
4340
4347
|
key: "0"
|
|
4341
4348
|
} : void 0
|
|
@@ -4344,10 +4351,10 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
|
|
|
4344
4351
|
_: 3
|
|
4345
4352
|
}, 8, ["label", "name", "model-value", "rules"]));
|
|
4346
4353
|
}
|
|
4347
|
-
}),
|
|
4354
|
+
}), _o = {
|
|
4348
4355
|
key: 1,
|
|
4349
4356
|
class: "vc-table-cell-default"
|
|
4350
|
-
},
|
|
4357
|
+
}, Zt = /* @__PURE__ */ z({
|
|
4351
4358
|
__name: "CellDefault",
|
|
4352
4359
|
props: {
|
|
4353
4360
|
value: {},
|
|
@@ -4373,7 +4380,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
|
|
|
4373
4380
|
"validate-on-mount": e.validateOnMount
|
|
4374
4381
|
}, {
|
|
4375
4382
|
default: O(({ errors: v, errorMessage: m }) => [
|
|
4376
|
-
|
|
4383
|
+
M(bt, {
|
|
4377
4384
|
"model-value": e.value,
|
|
4378
4385
|
class: "vc-table-cell-default__input",
|
|
4379
4386
|
error: v.length > 0,
|
|
@@ -4384,7 +4391,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
|
|
|
4384
4391
|
r(i) && v.length > 0 ? {
|
|
4385
4392
|
name: "append-inner",
|
|
4386
4393
|
fn: O(() => [
|
|
4387
|
-
|
|
4394
|
+
M(r(U), {
|
|
4388
4395
|
icon: "lucide-circle-alert",
|
|
4389
4396
|
class: "vc-table-cell-default__error-icon"
|
|
4390
4397
|
})
|
|
@@ -4394,15 +4401,15 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
|
|
|
4394
4401
|
]), 1032, ["model-value", "error", "error-message", "onBlur"])
|
|
4395
4402
|
]),
|
|
4396
4403
|
_: 1
|
|
4397
|
-
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : (f(), y("span",
|
|
4404
|
+
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : (f(), y("span", _o, A(e.value), 1));
|
|
4398
4405
|
}
|
|
4399
|
-
}),
|
|
4406
|
+
}), ei = {
|
|
4400
4407
|
key: 1,
|
|
4401
4408
|
class: "vc-table-cell-money"
|
|
4402
|
-
},
|
|
4409
|
+
}, ti = {
|
|
4403
4410
|
key: 2,
|
|
4404
4411
|
class: "vc-table-cell-money vc-table-cell-money--not-set"
|
|
4405
|
-
},
|
|
4412
|
+
}, ni = /* @__PURE__ */ z({
|
|
4406
4413
|
__name: "CellMoney",
|
|
4407
4414
|
props: {
|
|
4408
4415
|
value: {},
|
|
@@ -4435,7 +4442,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
|
|
|
4435
4442
|
"validate-on-mount": e.validateOnMount
|
|
4436
4443
|
}, {
|
|
4437
4444
|
default: O(({ errors: c, errorMessage: b }) => [
|
|
4438
|
-
|
|
4445
|
+
M(Jo, {
|
|
4439
4446
|
"model-value": e.value,
|
|
4440
4447
|
options: [],
|
|
4441
4448
|
option: e.currency || "USD",
|
|
@@ -4449,7 +4456,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
|
|
|
4449
4456
|
r(s) && c.length > 0 ? {
|
|
4450
4457
|
name: "append-inner",
|
|
4451
4458
|
fn: O(() => [
|
|
4452
|
-
|
|
4459
|
+
M(r(U), {
|
|
4453
4460
|
icon: "lucide-circle-alert",
|
|
4454
4461
|
class: "vc-table-cell-money__error-icon"
|
|
4455
4462
|
})
|
|
@@ -4459,15 +4466,15 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
|
|
|
4459
4466
|
]), 1032, ["model-value", "option", "error", "error-message", "onBlur"])
|
|
4460
4467
|
]),
|
|
4461
4468
|
_: 1
|
|
4462
|
-
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : u.value ? (f(), y("span",
|
|
4469
|
+
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : u.value ? (f(), y("span", ti, A(r(o)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1)) : (f(), y("span", ei, A(v.value), 1));
|
|
4463
4470
|
}
|
|
4464
|
-
}),
|
|
4471
|
+
}), ai = {
|
|
4465
4472
|
key: 1,
|
|
4466
4473
|
class: "vc-table-cell-number"
|
|
4467
|
-
},
|
|
4474
|
+
}, li = {
|
|
4468
4475
|
key: 2,
|
|
4469
4476
|
class: "vc-table-cell-number vc-table-cell-number--not-set"
|
|
4470
|
-
},
|
|
4477
|
+
}, oi = /* @__PURE__ */ z({
|
|
4471
4478
|
__name: "CellNumber",
|
|
4472
4479
|
props: {
|
|
4473
4480
|
value: {},
|
|
@@ -4500,7 +4507,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
|
|
|
4500
4507
|
"validate-on-mount": e.validateOnMount
|
|
4501
4508
|
}, {
|
|
4502
4509
|
default: O(({ errors: d, errorMessage: c }) => [
|
|
4503
|
-
|
|
4510
|
+
M(bt, {
|
|
4504
4511
|
"model-value": e.value,
|
|
4505
4512
|
class: "vc-table-cell-number__input",
|
|
4506
4513
|
type: "number",
|
|
@@ -4512,7 +4519,7 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
|
|
|
4512
4519
|
r(l) && d.length > 0 ? {
|
|
4513
4520
|
name: "append-inner",
|
|
4514
4521
|
fn: O(() => [
|
|
4515
|
-
|
|
4522
|
+
M(r(U), {
|
|
4516
4523
|
icon: "lucide-circle-alert",
|
|
4517
4524
|
class: "vc-table-cell-number__error-icon"
|
|
4518
4525
|
})
|
|
@@ -4522,12 +4529,12 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
|
|
|
4522
4529
|
]), 1032, ["model-value", "error", "error-message", "onBlur"])
|
|
4523
4530
|
]),
|
|
4524
4531
|
_: 1
|
|
4525
|
-
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : s.value ? (f(), y("span",
|
|
4532
|
+
}, 8, ["label", "field-name", "model-value", "rules", "validate-on-mount"])) : s.value ? (f(), y("span", li, A(r(o)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1)) : (f(), y("span", ai, A(u.value), 1));
|
|
4526
4533
|
}
|
|
4527
|
-
}),
|
|
4534
|
+
}), ii = {
|
|
4528
4535
|
key: 0,
|
|
4529
4536
|
class: "vc-table-cell-date"
|
|
4530
|
-
},
|
|
4537
|
+
}, ri = {
|
|
4531
4538
|
key: 1,
|
|
4532
4539
|
class: "vc-table-cell-date vc-table-cell-date--not-set"
|
|
4533
4540
|
}, et = /* @__PURE__ */ z({
|
|
@@ -4541,36 +4548,36 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
|
|
|
4541
4548
|
const t = e, { t: n } = we({ useScope: "global" }), a = window.navigator.language, o = $(() => {
|
|
4542
4549
|
if (!t.value) return "";
|
|
4543
4550
|
if (t.format)
|
|
4544
|
-
return
|
|
4551
|
+
return Qn(t.value, t.format, a);
|
|
4545
4552
|
const i = t.value instanceof Date ? t.value : new Date(t.value), l = t.variant || "date";
|
|
4546
4553
|
return l === "time" ? i.toLocaleTimeString(a) : l === "date-time" ? i.toLocaleString(a) : i.toLocaleDateString(a);
|
|
4547
4554
|
});
|
|
4548
|
-
return (i, l) => e.value ? (f(), y("span",
|
|
4555
|
+
return (i, l) => e.value ? (f(), y("span", ii, A(o.value), 1)) : (f(), y("span", ri, A(r(n)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1));
|
|
4549
4556
|
}
|
|
4550
|
-
}),
|
|
4557
|
+
}), si = ["title"], ui = {
|
|
4551
4558
|
key: 1,
|
|
4552
4559
|
class: "vc-table-cell-date-ago vc-table-cell-date-ago--not-set"
|
|
4553
|
-
},
|
|
4560
|
+
}, ci = /* @__PURE__ */ z({
|
|
4554
4561
|
__name: "CellDateAgo",
|
|
4555
4562
|
props: {
|
|
4556
4563
|
value: {}
|
|
4557
4564
|
},
|
|
4558
4565
|
setup(e) {
|
|
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 ?
|
|
4566
|
+
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 ? Zn(t.value) : "");
|
|
4560
4567
|
return (l, s) => e.value ? (f(), y("span", {
|
|
4561
4568
|
key: 0,
|
|
4562
4569
|
class: "vc-table-cell-date-ago",
|
|
4563
4570
|
title: o.value
|
|
4564
|
-
}, A(i.value), 9,
|
|
4571
|
+
}, A(i.value), 9, si)) : (f(), y("span", ui, A(r(n)("COMPONENTS.ORGANISMS.VC_TABLE.NOT_SET")), 1));
|
|
4565
4572
|
}
|
|
4566
|
-
}),
|
|
4573
|
+
}), di = /* @__PURE__ */ z({
|
|
4567
4574
|
__name: "CellImage",
|
|
4568
4575
|
props: {
|
|
4569
4576
|
value: {},
|
|
4570
4577
|
emptyIcon: {}
|
|
4571
4578
|
},
|
|
4572
4579
|
setup(e) {
|
|
4573
|
-
return (t, n) => (f(), P(r(
|
|
4580
|
+
return (t, n) => (f(), P(r(Wa), {
|
|
4574
4581
|
class: "vc-table-cell-image",
|
|
4575
4582
|
bordered: !0,
|
|
4576
4583
|
size: "s",
|
|
@@ -4581,46 +4588,46 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
|
|
|
4581
4588
|
"thumbnail-size": "sm"
|
|
4582
4589
|
}, null, 8, ["src", "empty-icon"]));
|
|
4583
4590
|
}
|
|
4584
|
-
}),
|
|
4591
|
+
}), fi = /* @__PURE__ */ z({
|
|
4585
4592
|
__name: "CellStatus",
|
|
4586
4593
|
props: {
|
|
4587
4594
|
value: {}
|
|
4588
4595
|
},
|
|
4589
4596
|
setup(e) {
|
|
4590
|
-
return (t, n) => (f(), P(r(
|
|
4597
|
+
return (t, n) => (f(), P(r(nl), { class: "vc-table-cell-status" }, {
|
|
4591
4598
|
default: O(() => [
|
|
4592
4599
|
Z(A(e.value), 1)
|
|
4593
4600
|
]),
|
|
4594
4601
|
_: 1
|
|
4595
4602
|
}));
|
|
4596
4603
|
}
|
|
4597
|
-
}),
|
|
4604
|
+
}), vi = { class: "vc-table-cell-status-icon" }, gi = /* @__PURE__ */ z({
|
|
4598
4605
|
__name: "CellStatusIcon",
|
|
4599
4606
|
props: {
|
|
4600
4607
|
value: {}
|
|
4601
4608
|
},
|
|
4602
4609
|
setup(e) {
|
|
4603
|
-
return (t, n) => (f(), y("div",
|
|
4604
|
-
typeof e.value == "boolean" ? (f(), P(r(
|
|
4610
|
+
return (t, n) => (f(), y("div", vi, [
|
|
4611
|
+
typeof e.value == "boolean" ? (f(), P(r(ll), {
|
|
4605
4612
|
key: 0,
|
|
4606
4613
|
status: e.value
|
|
4607
4614
|
}, null, 8, ["status"])) : w("", !0)
|
|
4608
4615
|
]));
|
|
4609
4616
|
}
|
|
4610
|
-
}),
|
|
4617
|
+
}), mi = /* @__PURE__ */ z({
|
|
4611
4618
|
__name: "CellLink",
|
|
4612
4619
|
props: {
|
|
4613
4620
|
value: {}
|
|
4614
4621
|
},
|
|
4615
4622
|
setup(e) {
|
|
4616
|
-
return (t, n) => (f(), P(r(
|
|
4623
|
+
return (t, n) => (f(), P(r(_a), { class: "vc-table-cell-link" }, {
|
|
4617
4624
|
default: O(() => [
|
|
4618
4625
|
Z(A(e.value), 1)
|
|
4619
4626
|
]),
|
|
4620
4627
|
_: 1
|
|
4621
4628
|
}));
|
|
4622
4629
|
}
|
|
4623
|
-
}),
|
|
4630
|
+
}), pi = ["innerHTML"], bi = 500, yi = /* @__PURE__ */ z({
|
|
4624
4631
|
__name: "CellHtml",
|
|
4625
4632
|
props: {
|
|
4626
4633
|
value: {},
|
|
@@ -4667,39 +4674,39 @@ const Zo = { class: "vc-table-cell-editable__error-tooltip" }, yt = /* @__PURE__
|
|
|
4667
4674
|
FORBID_TAGS: ["script", "object", "embed", "form", "input"],
|
|
4668
4675
|
FORBID_ATTR: ["onerror", "onload", "onclick", "onmouseover", "onfocus", "onblur", "style"]
|
|
4669
4676
|
});
|
|
4670
|
-
if (n.size >=
|
|
4677
|
+
if (n.size >= bi) {
|
|
4671
4678
|
const u = n.keys().next().value;
|
|
4672
4679
|
u !== void 0 && n.delete(u);
|
|
4673
4680
|
}
|
|
4674
4681
|
return n.set(l, s), s;
|
|
4675
4682
|
}
|
|
4676
|
-
const o = $(() => t.value ? a(String(t.value)) : ""), i = $(() =>
|
|
4683
|
+
const o = $(() => t.value ? a(String(t.value)) : ""), i = $(() => Kn(o.value, t.maxLength || 30));
|
|
4677
4684
|
return (l, s) => (f(), y("div", {
|
|
4678
4685
|
class: "vc-table-cell-html",
|
|
4679
4686
|
innerHTML: i.value
|
|
4680
|
-
}, null, 8,
|
|
4687
|
+
}, null, 8, pi));
|
|
4681
4688
|
}
|
|
4682
|
-
}),
|
|
4683
|
-
{ type: "text", component:
|
|
4684
|
-
{ type: "number", component:
|
|
4685
|
-
{ type: "money", component:
|
|
4689
|
+
}), Qt = [
|
|
4690
|
+
{ type: "text", component: Zt, config: { editable: !0 } },
|
|
4691
|
+
{ type: "number", component: oi, config: { editable: !0 } },
|
|
4692
|
+
{ type: "money", component: ni, config: { editable: !0 } },
|
|
4686
4693
|
{ type: "date", component: et, config: { editable: !1 } },
|
|
4687
4694
|
{ type: "time", component: et, config: { editable: !1 } },
|
|
4688
4695
|
{ type: "datetime", component: et, config: { editable: !1 } },
|
|
4689
|
-
{ type: "date-ago", component:
|
|
4690
|
-
{ type: "image", component:
|
|
4691
|
-
{ type: "status", component:
|
|
4692
|
-
{ type: "status-icon", component:
|
|
4693
|
-
{ type: "link", component:
|
|
4694
|
-
{ type: "html", component:
|
|
4695
|
-
],
|
|
4696
|
-
function
|
|
4697
|
-
const { register: e, has: t } =
|
|
4698
|
-
for (const n of
|
|
4696
|
+
{ type: "date-ago", component: ci, config: { editable: !1 } },
|
|
4697
|
+
{ type: "image", component: di, config: { editable: !1 } },
|
|
4698
|
+
{ type: "status", component: fi, config: { editable: !1 } },
|
|
4699
|
+
{ type: "status-icon", component: gi, config: { editable: !1 } },
|
|
4700
|
+
{ type: "link", component: mi, config: { editable: !1 } },
|
|
4701
|
+
{ type: "html", component: yi, config: { editable: !1 } }
|
|
4702
|
+
], Br = Object.freeze(Qt.map((e) => e.type));
|
|
4703
|
+
function hi() {
|
|
4704
|
+
const { register: e, has: t } = Xt();
|
|
4705
|
+
for (const n of Qt)
|
|
4699
4706
|
t(n.type) || e(n);
|
|
4700
4707
|
}
|
|
4701
|
-
|
|
4702
|
-
const
|
|
4708
|
+
hi();
|
|
4709
|
+
const Cr = /* @__PURE__ */ z({
|
|
4703
4710
|
__name: "DynamicCellRenderer",
|
|
4704
4711
|
props: {
|
|
4705
4712
|
type: {},
|
|
@@ -4717,7 +4724,7 @@ const Br = /* @__PURE__ */ z({
|
|
|
4717
4724
|
},
|
|
4718
4725
|
emits: ["update", "blur"],
|
|
4719
4726
|
setup(e) {
|
|
4720
|
-
const { get: t } =
|
|
4727
|
+
const { get: t } = Xt(), n = e, a = $(() => t(n.type)?.component || Zt), o = $(() => {
|
|
4721
4728
|
const l = t(n.type)?.config?.editable ?? !1, s = {
|
|
4722
4729
|
value: n.value
|
|
4723
4730
|
};
|
|
@@ -4728,7 +4735,7 @@ const Br = /* @__PURE__ */ z({
|
|
|
4728
4735
|
onBlur: l[1] || (l[1] = (s) => i.$emit("blur", s))
|
|
4729
4736
|
}), null, 16));
|
|
4730
4737
|
}
|
|
4731
|
-
}),
|
|
4738
|
+
}), xr = z({
|
|
4732
4739
|
name: "SlotProxy",
|
|
4733
4740
|
props: {
|
|
4734
4741
|
slotFn: { type: Function, required: !0 },
|
|
@@ -4737,129 +4744,130 @@ const Br = /* @__PURE__ */ z({
|
|
|
4737
4744
|
setup(e) {
|
|
4738
4745
|
return () => e.slotFn(e.scope);
|
|
4739
4746
|
}
|
|
4740
|
-
}),
|
|
4747
|
+
}), Tr = (e, t) => {
|
|
4741
4748
|
const n = t.arg ? parseInt(t.arg, 10) : 9e3, a = typeof t.value == "object" ? t.value : { blur: !0 };
|
|
4742
4749
|
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
4750
|
};
|
|
4744
4751
|
export {
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4752
|
+
ur as $,
|
|
4753
|
+
Ft as A,
|
|
4754
|
+
Br as B,
|
|
4755
|
+
Tr as C,
|
|
4756
|
+
kr as D,
|
|
4757
|
+
hi as E,
|
|
4758
|
+
Ir as F,
|
|
4759
|
+
Oe as G,
|
|
4760
|
+
Xt as H,
|
|
4761
|
+
ra as I,
|
|
4762
|
+
He as J,
|
|
4763
|
+
ua as K,
|
|
4764
|
+
Er as L,
|
|
4765
|
+
vr as M,
|
|
4766
|
+
ir as N,
|
|
4767
|
+
la as O,
|
|
4768
|
+
dt as P,
|
|
4769
|
+
ue as Q,
|
|
4770
|
+
$e as R,
|
|
4771
|
+
qe as S,
|
|
4772
|
+
tr as T,
|
|
4773
|
+
Wn as U,
|
|
4767
4774
|
me as V,
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4775
|
+
ot as W,
|
|
4776
|
+
oa as X,
|
|
4777
|
+
Ye as Y,
|
|
4778
|
+
cr as Z,
|
|
4772
4779
|
et as _,
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4780
|
+
xa as a,
|
|
4781
|
+
Cr as a$,
|
|
4782
|
+
Wt as a0,
|
|
4783
|
+
mr as a1,
|
|
4784
|
+
Sa as a2,
|
|
4785
|
+
gl as a3,
|
|
4779
4786
|
wa as a4,
|
|
4780
4787
|
Oa as a5,
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4788
|
+
Ea as a6,
|
|
4789
|
+
Ui as a7,
|
|
4790
|
+
ye as a8,
|
|
4791
|
+
Aa as a9,
|
|
4792
|
+
fr as aA,
|
|
4793
|
+
_i as aB,
|
|
4794
|
+
br as aC,
|
|
4795
|
+
lr as aD,
|
|
4796
|
+
dr as aE,
|
|
4797
|
+
rr as aF,
|
|
4798
|
+
ar as aG,
|
|
4799
|
+
sr as aH,
|
|
4800
|
+
Zi as aI,
|
|
4801
|
+
Yi as aJ,
|
|
4802
|
+
Xn as aK,
|
|
4803
|
+
Vt as aL,
|
|
4804
|
+
Ji as aM,
|
|
4805
|
+
Ba as aN,
|
|
4806
|
+
er as aO,
|
|
4807
|
+
yr as aP,
|
|
4808
|
+
or as aQ,
|
|
4809
|
+
Wi as aR,
|
|
4810
|
+
nr as aS,
|
|
4811
|
+
Gt as aT,
|
|
4812
|
+
hr as aU,
|
|
4813
|
+
Zl as aV,
|
|
4814
|
+
sa as aW,
|
|
4808
4815
|
Sr as aX,
|
|
4809
4816
|
$r as aY,
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4817
|
+
wr as aZ,
|
|
4818
|
+
xr as a_,
|
|
4819
|
+
ie as aa,
|
|
4820
|
+
Ki as ab,
|
|
4821
|
+
qi as ac,
|
|
4822
|
+
zi as ad,
|
|
4823
|
+
Fi as ae,
|
|
4824
|
+
gr as af,
|
|
4825
|
+
Gi as ag,
|
|
4826
|
+
pr as ah,
|
|
4827
|
+
va as ai,
|
|
4828
|
+
fa as aj,
|
|
4829
|
+
ga as ak,
|
|
4830
|
+
ea as al,
|
|
4831
|
+
Jn as am,
|
|
4832
|
+
aa as an,
|
|
4833
|
+
Hi as ao,
|
|
4834
|
+
da as ap,
|
|
4828
4835
|
Zn as aq,
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4836
|
+
Qn as ar,
|
|
4837
|
+
ji as as,
|
|
4838
|
+
Xi as at,
|
|
4839
|
+
Qi as au,
|
|
4840
|
+
na as av,
|
|
4841
|
+
jn as aw,
|
|
4842
|
+
ta as ax,
|
|
4843
|
+
ca as ay,
|
|
4844
|
+
It as az,
|
|
4845
|
+
ci as b,
|
|
4846
|
+
Or as b0,
|
|
4847
|
+
Zo as b1,
|
|
4848
|
+
ia as b2,
|
|
4849
|
+
Zt as c,
|
|
4842
4850
|
yt as d,
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4851
|
+
yi as e,
|
|
4852
|
+
di as f,
|
|
4853
|
+
mi as g,
|
|
4854
|
+
ni as h,
|
|
4855
|
+
oi as i,
|
|
4856
|
+
fi as j,
|
|
4857
|
+
gi as k,
|
|
4850
4858
|
Ma as l,
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4859
|
+
Nl as m,
|
|
4860
|
+
Lr as n,
|
|
4861
|
+
$l as o,
|
|
4862
|
+
Wa as p,
|
|
4855
4863
|
bt as q,
|
|
4856
|
-
|
|
4857
|
-
|
|
4864
|
+
Jo as r,
|
|
4865
|
+
Ho as s,
|
|
4858
4866
|
Je as t,
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4867
|
+
_a as u,
|
|
4868
|
+
il as v,
|
|
4869
|
+
Uo as w,
|
|
4862
4870
|
ne as x,
|
|
4863
|
-
|
|
4864
|
-
|
|
4871
|
+
nl as y,
|
|
4872
|
+
ll as z
|
|
4865
4873
|
};
|