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