@vc-shell/framework 2.2.0-pr261.11c6306 → 2.2.0-pr262.1eb3cac
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-agent/index.js +3 -3
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-IxvmIZ32.js +1124 -0
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-IxvmIZ32.js.map +1 -0
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-BneMFPUI.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-CcI_W_Vm.js} +260 -369
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-CcI_W_Vm.js.map +1 -0
- package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-ChAZE3ab.js → VcScheduler.vue_vue_type_script_setup_true_lang-Ch_TVK_C.js} +6853 -7012
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-Ch_TVK_C.js.map +1 -0
- package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang-DGx3smxP.js → VcScheduler.vue_vue_type_style_index_0_lang-CL468dK2.js} +1606 -1480
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-CL468dK2.js.map +1 -0
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-Vlgchlib.js → dashboard-feed-row.vue_vue_type_script_setup_true_lang-YOlFZMoP.js} +68 -68
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-Vlgchlib.js.map → dashboard-feed-row.vue_vue_type_script_setup_true_lang-YOlFZMoP.js.map} +1 -1
- package/dist/chunks/{index-BuToNK4r.js → index-CI1U6XgH.js} +2 -2
- package/dist/chunks/{index-BuToNK4r.js.map → index-CI1U6XgH.js.map} +1 -1
- package/dist/chunks/{vendor-vueuse-components-CoR2FSn3.js → vendor-vueuse-components-BW7i7Uhb.js} +1 -1
- package/dist/chunks/{vendor-vueuse-components-CoR2FSn3.js.map → vendor-vueuse-components-BW7i7Uhb.js.map} +1 -1
- package/dist/chunks/{vendor-vueuse-core-BFa9je5E.js → vendor-vueuse-core-BYWoPpF_.js} +82 -83
- package/dist/chunks/{vendor-vueuse-core-BFa9je5E.js.map → vendor-vueuse-core-BYWoPpF_.js.map} +1 -1
- package/dist/chunks/{vendor-vueuse-shared-kZH3-Km1.js → vendor-vueuse-shared-BlCOXw5g.js} +2 -2
- package/dist/chunks/{vendor-vueuse-shared-kZH3-Km1.js.map → vendor-vueuse-shared-BlCOXw5g.js.map} +1 -1
- package/dist/core/blade-navigation/types/index.d.ts +0 -8
- package/dist/core/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/core/composables/index.d.ts +0 -1
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useAsync/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/interceptors/index.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/VcAiAgentPanel.vue.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/composables/useAiAgent.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +0 -12
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/core/utilities/sessionExpiration.d.ts +30 -0
- package/dist/core/utilities/sessionExpiration.d.ts.map +1 -0
- package/dist/dashboard/index.js +1 -1
- package/dist/framework.js +800 -809
- package/dist/framework.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/locales/de.js +1 -4
- package/dist/locales/en.js +1 -4
- package/dist/locales/en.json +1 -4
- package/dist/locales/types.d.ts +0 -3
- package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/vc-blade-navigation-new.vue.d.ts.map +1 -1
- package/dist/shell/_internal/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts.map +1 -1
- package/dist/shell/components/error-interceptor/interceptor.d.ts.map +1 -1
- package/dist/test-helpers.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/toolbar-button-props.d.ts +0 -2
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/toolbar-button-props.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/VcColumn.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts.map +1 -1
- package/dist/ui/index.js +20 -20
- package/package.json +4 -4
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-qC6yOtWU.js +0 -1380
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-qC6yOtWU.js.map +0 -1
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-BneMFPUI.js.map +0 -1
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-ChAZE3ab.js.map +0 -1
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-DGx3smxP.js.map +0 -1
- package/dist/core/composables/useKeyboardShortcuts/format.d.ts +0 -11
- package/dist/core/composables/useKeyboardShortcuts/format.d.ts.map +0 -1
- package/dist/core/composables/useKeyboardShortcuts/hotkey.d.ts +0 -14
- package/dist/core/composables/useKeyboardShortcuts/hotkey.d.ts.map +0 -1
- package/dist/core/composables/useKeyboardShortcuts/index.d.ts +0 -23
- package/dist/core/composables/useKeyboardShortcuts/index.d.ts.map +0 -1
- package/dist/core/composables/useKeyboardShortcuts/match.d.ts +0 -14
- package/dist/core/composables/useKeyboardShortcuts/match.d.ts.map +0 -1
- package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/shortcut-dispatch.d.ts +0 -22
- package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/shortcut-dispatch.d.ts.map +0 -1
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ShortcutKbd.vue.d.ts +0 -11
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ShortcutKbd.vue.d.ts.map +0 -1
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import {
|
|
3
|
-
import { j as
|
|
4
|
-
import { L as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function ve(i, e) {
|
|
9
|
-
if (typeof e == "string" && me.test(e)) {
|
|
1
|
+
import { ref as N, computed as u, defineComponent as T, onMounted as R, openBlock as E, createElementBlock as S, normalizeStyle as C, normalizeClass as P, toDisplayString as V, markRaw as W, createBlock as J, resolveDynamicComponent as F, createElementVNode as q, mergeProps as j, createCommentVNode as H, resolveComponent as G } from "vue";
|
|
2
|
+
import { u as Y } from "./vendor-vueuse-core-BYWoPpF_.js";
|
|
3
|
+
import { j as X } from "./vendor-vueuse-shared-BlCOXw5g.js";
|
|
4
|
+
import { L as Z } from "./vendor-lucide-vue-next-CwUrzD6N.js";
|
|
5
|
+
const Q = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$/;
|
|
6
|
+
function ee(i, e) {
|
|
7
|
+
if (typeof e == "string" && Q.test(e)) {
|
|
10
8
|
const t = new Date(e);
|
|
11
9
|
if (!isNaN(t.getTime()))
|
|
12
10
|
return t;
|
|
13
11
|
}
|
|
14
12
|
return e;
|
|
15
13
|
}
|
|
16
|
-
class
|
|
14
|
+
class b {
|
|
17
15
|
authToken = "";
|
|
18
16
|
/**
|
|
19
17
|
* JSON parse reviver for converting date strings to Date objects.
|
|
20
18
|
* Subclasses use this when parsing API responses.
|
|
21
19
|
* The dateReviver function is defined in File.Header.liquid template.
|
|
22
20
|
*/
|
|
23
|
-
jsonParseReviver =
|
|
21
|
+
jsonParseReviver = ee;
|
|
24
22
|
constructor() {
|
|
25
23
|
}
|
|
26
24
|
// Enforce always return empty string as baseUrl
|
|
@@ -34,7 +32,7 @@ class x {
|
|
|
34
32
|
return this.authToken && (e.headers.authorization = `Bearer ${this.authToken}`), Promise.resolve(e);
|
|
35
33
|
}
|
|
36
34
|
}
|
|
37
|
-
class
|
|
35
|
+
class te extends b {
|
|
38
36
|
http;
|
|
39
37
|
baseUrl;
|
|
40
38
|
constructor(e, t) {
|
|
@@ -141,7 +139,7 @@ class be extends x {
|
|
|
141
139
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
142
140
|
}
|
|
143
141
|
}
|
|
144
|
-
class
|
|
142
|
+
class je extends b {
|
|
145
143
|
http;
|
|
146
144
|
baseUrl;
|
|
147
145
|
constructor(e, t) {
|
|
@@ -210,7 +208,7 @@ class Ye extends x {
|
|
|
210
208
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
211
209
|
}
|
|
212
210
|
}
|
|
213
|
-
class
|
|
211
|
+
class Re extends b {
|
|
214
212
|
http;
|
|
215
213
|
baseUrl;
|
|
216
214
|
constructor(e, t) {
|
|
@@ -240,7 +238,7 @@ class Xe extends x {
|
|
|
240
238
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
241
239
|
}
|
|
242
240
|
}
|
|
243
|
-
class
|
|
241
|
+
class Ce extends b {
|
|
244
242
|
http;
|
|
245
243
|
baseUrl;
|
|
246
244
|
constructor(e, t) {
|
|
@@ -382,7 +380,7 @@ class Ze extends x {
|
|
|
382
380
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
383
381
|
}
|
|
384
382
|
}
|
|
385
|
-
class
|
|
383
|
+
class Ie extends b {
|
|
386
384
|
http;
|
|
387
385
|
baseUrl;
|
|
388
386
|
constructor(e, t) {
|
|
@@ -583,7 +581,7 @@ class Qe extends x {
|
|
|
583
581
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
584
582
|
}
|
|
585
583
|
}
|
|
586
|
-
class
|
|
584
|
+
class ze extends b {
|
|
587
585
|
http;
|
|
588
586
|
baseUrl;
|
|
589
587
|
constructor(e, t) {
|
|
@@ -612,7 +610,7 @@ class et extends x {
|
|
|
612
610
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
613
611
|
}
|
|
614
612
|
}
|
|
615
|
-
class
|
|
613
|
+
class $e extends b {
|
|
616
614
|
http;
|
|
617
615
|
baseUrl;
|
|
618
616
|
constructor(e, t) {
|
|
@@ -664,7 +662,7 @@ class tt extends x {
|
|
|
664
662
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
665
663
|
}
|
|
666
664
|
}
|
|
667
|
-
class
|
|
665
|
+
class Ne extends b {
|
|
668
666
|
http;
|
|
669
667
|
baseUrl;
|
|
670
668
|
constructor(e, t) {
|
|
@@ -939,7 +937,7 @@ class rt extends x {
|
|
|
939
937
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
940
938
|
}
|
|
941
939
|
}
|
|
942
|
-
class
|
|
940
|
+
class Ge extends b {
|
|
943
941
|
http;
|
|
944
942
|
baseUrl;
|
|
945
943
|
constructor(e, t) {
|
|
@@ -972,7 +970,7 @@ class nt extends x {
|
|
|
972
970
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
973
971
|
}
|
|
974
972
|
}
|
|
975
|
-
class
|
|
973
|
+
class ke extends b {
|
|
976
974
|
http;
|
|
977
975
|
baseUrl;
|
|
978
976
|
constructor(e, t) {
|
|
@@ -1076,7 +1074,7 @@ class st extends x {
|
|
|
1076
1074
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1077
1075
|
}
|
|
1078
1076
|
}
|
|
1079
|
-
class
|
|
1077
|
+
class Je extends b {
|
|
1080
1078
|
http;
|
|
1081
1079
|
baseUrl;
|
|
1082
1080
|
constructor(e, t) {
|
|
@@ -1532,7 +1530,7 @@ class at extends x {
|
|
|
1532
1530
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1533
1531
|
}
|
|
1534
1532
|
}
|
|
1535
|
-
class
|
|
1533
|
+
class Fe extends b {
|
|
1536
1534
|
http;
|
|
1537
1535
|
baseUrl;
|
|
1538
1536
|
constructor(e, t) {
|
|
@@ -1634,7 +1632,7 @@ class it extends x {
|
|
|
1634
1632
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1635
1633
|
}
|
|
1636
1634
|
}
|
|
1637
|
-
class
|
|
1635
|
+
class Me extends b {
|
|
1638
1636
|
http;
|
|
1639
1637
|
baseUrl;
|
|
1640
1638
|
constructor(e, t) {
|
|
@@ -1690,7 +1688,7 @@ class ot extends x {
|
|
|
1690
1688
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
1691
1689
|
}
|
|
1692
1690
|
}
|
|
1693
|
-
class
|
|
1691
|
+
class re extends b {
|
|
1694
1692
|
http;
|
|
1695
1693
|
baseUrl;
|
|
1696
1694
|
constructor(e, t) {
|
|
@@ -2827,7 +2825,7 @@ class xe extends x {
|
|
|
2827
2825
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2828
2826
|
}
|
|
2829
2827
|
}
|
|
2830
|
-
class
|
|
2828
|
+
class De extends b {
|
|
2831
2829
|
http;
|
|
2832
2830
|
baseUrl;
|
|
2833
2831
|
constructor(e, t) {
|
|
@@ -2955,7 +2953,7 @@ class lt extends x {
|
|
|
2955
2953
|
}) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
2956
2954
|
}
|
|
2957
2955
|
}
|
|
2958
|
-
class
|
|
2956
|
+
class Be extends b {
|
|
2959
2957
|
http;
|
|
2960
2958
|
baseUrl;
|
|
2961
2959
|
constructor(e, t) {
|
|
@@ -3224,8 +3222,8 @@ class ut extends x {
|
|
|
3224
3222
|
}) : t === 401 ? e.text().then((r) => a("Unauthorized", t, r, n)) : t === 403 ? e.text().then((r) => a("Forbidden", t, r, n)) : t !== 200 && t !== 204 ? e.text().then((r) => a("An unexpected server error occurred.", t, r, n)) : Promise.resolve(null);
|
|
3225
3223
|
}
|
|
3226
3224
|
}
|
|
3227
|
-
var
|
|
3228
|
-
class
|
|
3225
|
+
var ne = /* @__PURE__ */ ((i) => (i.AppMenu = "AppMenu", i.MainMenu = "MainMenu", i.Hidden = "Hidden", i))(ne || {}), se = /* @__PURE__ */ ((i) => (i.Undefined = "Undefined", i.ShortText = "ShortText", i.LongText = "LongText", i.Integer = "Integer", i.Decimal = "Decimal", i.DateTime = "DateTime", i.Boolean = "Boolean", i.Html = "Html", i.Image = "Image", i))(se || {}), ae = /* @__PURE__ */ ((i) => (i.Detached = "Detached", i.Unchanged = "Unchanged", i.Added = "Added", i.Deleted = "Deleted", i.Modified = "Modified", i))(ae || {}), ie = /* @__PURE__ */ ((i) => (i.Undefined = "Undefined", i.Object = "Object", i.Array = "Array", i.String = "String", i.Number = "Number", i.True = "True", i.False = "False", i.Null = "Null", i))(ie || {}), oe = /* @__PURE__ */ ((i) => (i.Info = "Info", i.Warning = "Warning", i.Debug = "Debug", i.Error = "Error", i))(oe || {}), le = /* @__PURE__ */ ((i) => (i.ShortText = "ShortText", i.LongText = "LongText", i.Integer = "Integer", i.Decimal = "Decimal", i.DateTime = "DateTime", i.Boolean = "Boolean", i.SecureString = "SecureString", i.Json = "Json", i.PositiveInteger = "PositiveInteger", i))(le || {}), ue = /* @__PURE__ */ ((i) => (i.Ascending = "Ascending", i.Descending = "Descending", i))(ue || {});
|
|
3226
|
+
class he extends Error {
|
|
3229
3227
|
message;
|
|
3230
3228
|
status;
|
|
3231
3229
|
response;
|
|
@@ -3240,21 +3238,21 @@ class Pe extends Error {
|
|
|
3240
3238
|
}
|
|
3241
3239
|
}
|
|
3242
3240
|
function a(i, e, t, n, r) {
|
|
3243
|
-
throw r ?? new
|
|
3241
|
+
throw r ?? new he(i, e, t, n, null);
|
|
3244
3242
|
}
|
|
3245
|
-
const
|
|
3243
|
+
const B = {
|
|
3246
3244
|
debug: 0,
|
|
3247
3245
|
info: 1,
|
|
3248
3246
|
warn: 2,
|
|
3249
3247
|
error: 3,
|
|
3250
3248
|
none: 4
|
|
3251
|
-
},
|
|
3249
|
+
}, ce = {
|
|
3252
3250
|
level: "warn",
|
|
3253
3251
|
prefix: "@vc-shell/framework",
|
|
3254
3252
|
enabled: !0
|
|
3255
3253
|
};
|
|
3256
|
-
function
|
|
3257
|
-
const e = { ...
|
|
3254
|
+
function g(i) {
|
|
3255
|
+
const e = { ...ce }, t = i ? `[${e.prefix}#${i}]` : `[${e.prefix}]`, n = (r) => e.enabled ? B[r] >= B[e.level] : !1;
|
|
3258
3256
|
return {
|
|
3259
3257
|
/**
|
|
3260
3258
|
* Log debug messages (only in development)
|
|
@@ -3283,7 +3281,7 @@ function E(i) {
|
|
|
3283
3281
|
/**
|
|
3284
3282
|
* Create a child logger with additional context
|
|
3285
3283
|
*/
|
|
3286
|
-
child: (r) =>
|
|
3284
|
+
child: (r) => g(i ? `${i}:${r}` : r),
|
|
3287
3285
|
/**
|
|
3288
3286
|
* Set the log level for this logger instance
|
|
3289
3287
|
*/
|
|
@@ -3298,16 +3296,16 @@ function E(i) {
|
|
|
3298
3296
|
}
|
|
3299
3297
|
};
|
|
3300
3298
|
}
|
|
3301
|
-
const
|
|
3302
|
-
core:
|
|
3303
|
-
ui:
|
|
3304
|
-
shared:
|
|
3305
|
-
plugins:
|
|
3306
|
-
services:
|
|
3307
|
-
composables:
|
|
3308
|
-
},
|
|
3309
|
-
const i = new
|
|
3310
|
-
|
|
3299
|
+
const Le = g(), Ke = {
|
|
3300
|
+
core: g("core"),
|
|
3301
|
+
ui: g("ui"),
|
|
3302
|
+
shared: g("shared"),
|
|
3303
|
+
plugins: g("plugins"),
|
|
3304
|
+
services: g("services"),
|
|
3305
|
+
composables: g("composables")
|
|
3306
|
+
}, k = g("use-external-provider"), de = "externalSignIn", fe = () => {
|
|
3307
|
+
const i = new te(), e = Y(
|
|
3308
|
+
de,
|
|
3311
3309
|
{},
|
|
3312
3310
|
{
|
|
3313
3311
|
listenToStorageChanges: !0,
|
|
@@ -3323,18 +3321,18 @@ const ht = E(), ct = {
|
|
|
3323
3321
|
const l = window.location.origin, h = window.location.pathname ?? t() ?? "/";
|
|
3324
3322
|
if (!o)
|
|
3325
3323
|
throw new Error("The parameter 'authenticationType' cannot be null or undefined.");
|
|
3326
|
-
const
|
|
3327
|
-
|
|
3324
|
+
const x = new URL("/externalsignin", l);
|
|
3325
|
+
x.searchParams.set("authenticationType", o), x.searchParams.set("returnUrl", h), e.value = { providerType: o }, window.location.assign(x);
|
|
3328
3326
|
} catch (l) {
|
|
3329
|
-
throw
|
|
3327
|
+
throw k.error("External sign-in failed:", l), l;
|
|
3330
3328
|
}
|
|
3331
3329
|
}
|
|
3332
3330
|
async function r(o) {
|
|
3333
3331
|
try {
|
|
3334
|
-
const l = window.location.origin, h = window.location.pathname ?? "/",
|
|
3335
|
-
|
|
3332
|
+
const l = window.location.origin, h = window.location.pathname ?? "/", x = new URL("/externalsignin/signout", l);
|
|
3333
|
+
x.searchParams.set("authenticationType", o), x.searchParams.set("returnUrl", h), e.value = {}, window.location.assign(x);
|
|
3336
3334
|
} catch (l) {
|
|
3337
|
-
throw
|
|
3335
|
+
throw k.error("External sign-out failed:", l), l;
|
|
3338
3336
|
}
|
|
3339
3337
|
}
|
|
3340
3338
|
async function s() {
|
|
@@ -3342,7 +3340,7 @@ const ht = E(), ct = {
|
|
|
3342
3340
|
try {
|
|
3343
3341
|
o = await i.getExternalLoginProviders();
|
|
3344
3342
|
} catch (l) {
|
|
3345
|
-
|
|
3343
|
+
k.error("Failed to get external login providers:", l);
|
|
3346
3344
|
}
|
|
3347
3345
|
return o;
|
|
3348
3346
|
}
|
|
@@ -3352,32 +3350,43 @@ const ht = E(), ct = {
|
|
|
3352
3350
|
signOut: r,
|
|
3353
3351
|
getProviders: s
|
|
3354
3352
|
};
|
|
3355
|
-
}
|
|
3356
|
-
|
|
3353
|
+
};
|
|
3354
|
+
let M = !1;
|
|
3355
|
+
function We() {
|
|
3356
|
+
M = !0;
|
|
3357
|
+
}
|
|
3358
|
+
function Ve() {
|
|
3359
|
+
return M;
|
|
3360
|
+
}
|
|
3361
|
+
function pe() {
|
|
3362
|
+
M = !1;
|
|
3363
|
+
}
|
|
3364
|
+
const D = "vc_auth_data", f = g("use-user");
|
|
3365
|
+
function me() {
|
|
3357
3366
|
try {
|
|
3358
|
-
const i = localStorage.getItem(
|
|
3367
|
+
const i = localStorage.getItem(D);
|
|
3359
3368
|
if (i)
|
|
3360
3369
|
return JSON.parse(i);
|
|
3361
3370
|
} catch (i) {
|
|
3362
|
-
|
|
3371
|
+
f.error("Failed to read auth data from storage:", i);
|
|
3363
3372
|
}
|
|
3364
3373
|
return null;
|
|
3365
3374
|
}
|
|
3366
|
-
function
|
|
3375
|
+
function L(i) {
|
|
3367
3376
|
try {
|
|
3368
|
-
|
|
3377
|
+
f.debug("storeAuthData - Saving:", i), localStorage.setItem(D, JSON.stringify(i)), f.debug("storeAuthData - Saved successfully");
|
|
3369
3378
|
} catch (e) {
|
|
3370
|
-
|
|
3379
|
+
f.error("Failed to store auth data:", e);
|
|
3371
3380
|
}
|
|
3372
3381
|
}
|
|
3373
|
-
function
|
|
3382
|
+
function ve() {
|
|
3374
3383
|
try {
|
|
3375
|
-
localStorage.removeItem(
|
|
3384
|
+
localStorage.removeItem(D);
|
|
3376
3385
|
} catch (i) {
|
|
3377
|
-
|
|
3386
|
+
f.error("Failed to clear auth data:", i);
|
|
3378
3387
|
}
|
|
3379
3388
|
}
|
|
3380
|
-
async function
|
|
3389
|
+
async function K(i) {
|
|
3381
3390
|
try {
|
|
3382
3391
|
const e = new URLSearchParams(i).toString(), t = await fetch("/connect/token", {
|
|
3383
3392
|
method: "POST",
|
|
@@ -3388,13 +3397,13 @@ async function V(i) {
|
|
|
3388
3397
|
});
|
|
3389
3398
|
if (!t.ok) {
|
|
3390
3399
|
const h = await t.text();
|
|
3391
|
-
return
|
|
3400
|
+
return f.error("fetchToken - HTTP error:", t.status, t.statusText, h), null;
|
|
3392
3401
|
}
|
|
3393
3402
|
const n = await t.json();
|
|
3394
|
-
|
|
3403
|
+
f.debug("fetchToken - Response:", n);
|
|
3395
3404
|
const r = n.access_token, s = n.refresh_token, o = n.expires_in;
|
|
3396
3405
|
if (n.error || !r)
|
|
3397
|
-
return
|
|
3406
|
+
return f.error("fetchToken - Error:", n.error_description || n.error || "No access token"), null;
|
|
3398
3407
|
const l = o ? Date.now() + o * 1e3 : null;
|
|
3399
3408
|
return {
|
|
3400
3409
|
token: r,
|
|
@@ -3403,16 +3412,16 @@ async function V(i) {
|
|
|
3403
3412
|
expires_at: l
|
|
3404
3413
|
};
|
|
3405
3414
|
} catch (e) {
|
|
3406
|
-
return
|
|
3415
|
+
return f.error("fetchToken - Exception:", e), null;
|
|
3407
3416
|
}
|
|
3408
3417
|
}
|
|
3409
|
-
function
|
|
3410
|
-
const i =
|
|
3411
|
-
async function l(c,
|
|
3418
|
+
function be() {
|
|
3419
|
+
const i = N(!1), e = N(), t = N(null), { storage: n, signOut: r } = fe(), s = new re(), o = u(() => e.value?.userName != null);
|
|
3420
|
+
async function l(c, m) {
|
|
3412
3421
|
let p = !1;
|
|
3413
3422
|
try {
|
|
3414
3423
|
i.value = !0, p = await s.validatePasswordResetToken(c, {
|
|
3415
|
-
token:
|
|
3424
|
+
token: m
|
|
3416
3425
|
});
|
|
3417
3426
|
} catch {
|
|
3418
3427
|
} finally {
|
|
@@ -3423,38 +3432,38 @@ function Ce() {
|
|
|
3423
3432
|
async function h(c) {
|
|
3424
3433
|
return s.validatePassword(c);
|
|
3425
3434
|
}
|
|
3426
|
-
async function
|
|
3435
|
+
async function x(c, m, p) {
|
|
3427
3436
|
return s.resetPasswordByToken(c, {
|
|
3428
|
-
newPassword:
|
|
3437
|
+
newPassword: m,
|
|
3429
3438
|
token: p
|
|
3430
3439
|
});
|
|
3431
3440
|
}
|
|
3432
|
-
async function
|
|
3433
|
-
|
|
3441
|
+
async function I(c, m) {
|
|
3442
|
+
f.debug("signIn - Entry point");
|
|
3434
3443
|
try {
|
|
3435
|
-
i.value = !0;
|
|
3436
|
-
const p = await s.login({ userName: c, password:
|
|
3437
|
-
if (
|
|
3444
|
+
i.value = !0, pe();
|
|
3445
|
+
const p = await s.login({ userName: c, password: m });
|
|
3446
|
+
if (f.debug("signIn - Cookie login completed:", p), !p.succeeded)
|
|
3438
3447
|
return p;
|
|
3439
|
-
|
|
3440
|
-
const v = await
|
|
3448
|
+
f.debug("signIn - Requesting token...");
|
|
3449
|
+
const v = await K({
|
|
3441
3450
|
grant_type: "password",
|
|
3442
3451
|
username: c,
|
|
3443
|
-
password:
|
|
3452
|
+
password: m,
|
|
3444
3453
|
scope: "offline_access"
|
|
3445
3454
|
});
|
|
3446
|
-
v && (t.value = v,
|
|
3447
|
-
const
|
|
3448
|
-
if (
|
|
3449
|
-
return e.value =
|
|
3455
|
+
v && (t.value = v, L(t.value), f.debug("signIn - Token saved:", t.value));
|
|
3456
|
+
const y = await s.getCurrentUser();
|
|
3457
|
+
if (y)
|
|
3458
|
+
return e.value = y, p;
|
|
3450
3459
|
throw { succeeded: !1 };
|
|
3451
3460
|
} catch (p) {
|
|
3452
|
-
|
|
3461
|
+
f.error("signIn failed:", p);
|
|
3453
3462
|
let v = p.message;
|
|
3454
3463
|
if (p.response)
|
|
3455
3464
|
try {
|
|
3456
|
-
const
|
|
3457
|
-
v =
|
|
3465
|
+
const y = JSON.parse(p.response);
|
|
3466
|
+
v = y.errorDescription || y.errors?.[0]?.description || y.error || v;
|
|
3458
3467
|
} catch {
|
|
3459
3468
|
}
|
|
3460
3469
|
return { succeeded: !1, error: v, status: p.status };
|
|
@@ -3462,41 +3471,41 @@ function Ce() {
|
|
|
3462
3471
|
i.value = !1;
|
|
3463
3472
|
}
|
|
3464
3473
|
}
|
|
3465
|
-
async function
|
|
3466
|
-
|
|
3474
|
+
async function O() {
|
|
3475
|
+
f.debug("signOut - Entry point"), e.value = void 0, ve(), t.value = null, n.value?.providerType ? await r(n.value.providerType) : s.logout();
|
|
3467
3476
|
}
|
|
3468
3477
|
let U = null;
|
|
3469
|
-
async function
|
|
3478
|
+
async function w() {
|
|
3470
3479
|
return U || (U = (async () => {
|
|
3471
|
-
|
|
3480
|
+
f.debug("loadUser - Entry point");
|
|
3472
3481
|
try {
|
|
3473
3482
|
i.value = !0, performance.mark("vc:auth-start");
|
|
3474
|
-
const [c] = await Promise.all([s.getCurrentUser(),
|
|
3475
|
-
e.value = c, performance.mark("vc:auth-done"),
|
|
3483
|
+
const [c] = await Promise.all([s.getCurrentUser(), d()]);
|
|
3484
|
+
e.value = c, performance.mark("vc:auth-done"), f.debug("User details loaded:", e.value);
|
|
3476
3485
|
} catch (c) {
|
|
3477
|
-
|
|
3486
|
+
f.error("loadUser failed:", c);
|
|
3478
3487
|
} finally {
|
|
3479
3488
|
i.value = !1, U = null;
|
|
3480
3489
|
}
|
|
3481
3490
|
return { ...e.value };
|
|
3482
3491
|
})(), U);
|
|
3483
3492
|
}
|
|
3484
|
-
async function
|
|
3493
|
+
async function z(c) {
|
|
3485
3494
|
try {
|
|
3486
3495
|
return i.value = !0, await s.requestPasswordReset(c), { succeeded: !0 };
|
|
3487
|
-
} catch (
|
|
3488
|
-
return { succeeded: !1, error:
|
|
3496
|
+
} catch (m) {
|
|
3497
|
+
return { succeeded: !1, error: m };
|
|
3489
3498
|
} finally {
|
|
3490
3499
|
i.value = !1;
|
|
3491
3500
|
}
|
|
3492
3501
|
}
|
|
3493
|
-
async function A(c,
|
|
3502
|
+
async function A(c, m) {
|
|
3494
3503
|
let p;
|
|
3495
3504
|
try {
|
|
3496
3505
|
i.value = !0;
|
|
3497
3506
|
const v = {
|
|
3498
3507
|
oldPassword: c,
|
|
3499
|
-
newPassword:
|
|
3508
|
+
newPassword: m
|
|
3500
3509
|
};
|
|
3501
3510
|
p = await s.changeCurrentUserPassword(v);
|
|
3502
3511
|
} catch (v) {
|
|
@@ -3510,32 +3519,32 @@ function Ce() {
|
|
|
3510
3519
|
let c = null;
|
|
3511
3520
|
try {
|
|
3512
3521
|
c = await s.getLoginTypes();
|
|
3513
|
-
} catch (
|
|
3514
|
-
throw
|
|
3522
|
+
} catch (m) {
|
|
3523
|
+
throw f.error("getLoginType failed:", m), m;
|
|
3515
3524
|
}
|
|
3516
3525
|
return c;
|
|
3517
3526
|
}
|
|
3518
|
-
const
|
|
3519
|
-
async function
|
|
3520
|
-
if (
|
|
3521
|
-
return
|
|
3522
|
-
const c = Date.now(),
|
|
3523
|
-
if (
|
|
3527
|
+
const $ = 60 * 1e3;
|
|
3528
|
+
async function d() {
|
|
3529
|
+
if (f.debug("getAccessToken - Entry point"), t.value || (t.value = me()), !t.value)
|
|
3530
|
+
return f.debug("getAccessToken - No auth data available"), null;
|
|
3531
|
+
const c = Date.now(), m = t.value.expires_at, p = m ? c >= m - $ : !1;
|
|
3532
|
+
if (f.debug("getAccessToken - Token status:", {
|
|
3524
3533
|
hasToken: !!t.value.access_token,
|
|
3525
|
-
expiresAt:
|
|
3534
|
+
expiresAt: m ? new Date(m).toISOString() : "not set",
|
|
3526
3535
|
now: new Date(c).toISOString(),
|
|
3527
3536
|
shouldRefresh: p,
|
|
3528
3537
|
hasRefreshToken: !!t.value.refresh_token
|
|
3529
3538
|
}), p && t.value.refresh_token) {
|
|
3530
|
-
|
|
3531
|
-
const v = await
|
|
3539
|
+
f.debug("getAccessToken - Token expired or expiring soon, attempting refresh");
|
|
3540
|
+
const v = await K({
|
|
3532
3541
|
grant_type: "refresh_token",
|
|
3533
3542
|
refresh_token: t.value.refresh_token,
|
|
3534
3543
|
scope: "offline_access"
|
|
3535
3544
|
});
|
|
3536
|
-
v ? (v.refresh_token = v.refresh_token ?? t.value.refresh_token, t.value = v,
|
|
3545
|
+
v ? (v.refresh_token = v.refresh_token ?? t.value.refresh_token, t.value = v, L(t.value), f.debug("getAccessToken - Token refreshed successfully, new expiry:", {
|
|
3537
3546
|
expiresAt: v.expires_at ? new Date(v.expires_at).toISOString() : "not set"
|
|
3538
|
-
})) :
|
|
3547
|
+
})) : f.warn("getAccessToken - Failed to refresh token, returning existing token");
|
|
3539
3548
|
}
|
|
3540
3549
|
return t.value?.access_token ?? t.value?.token ?? null;
|
|
3541
3550
|
}
|
|
@@ -3544,20 +3553,20 @@ function Ce() {
|
|
|
3544
3553
|
loading: u(() => i.value),
|
|
3545
3554
|
isAdministrator: u(() => e.value?.isAdministrator),
|
|
3546
3555
|
isAuthenticated: o,
|
|
3547
|
-
loadUser:
|
|
3548
|
-
signIn:
|
|
3549
|
-
signOut:
|
|
3556
|
+
loadUser: w,
|
|
3557
|
+
signIn: I,
|
|
3558
|
+
signOut: O,
|
|
3550
3559
|
validateToken: l,
|
|
3551
3560
|
validatePassword: h,
|
|
3552
|
-
resetPasswordByToken:
|
|
3553
|
-
requestPasswordReset:
|
|
3561
|
+
resetPasswordByToken: x,
|
|
3562
|
+
requestPasswordReset: z,
|
|
3554
3563
|
changeUserPassword: A,
|
|
3555
3564
|
getLoginType: _,
|
|
3556
|
-
getAccessToken:
|
|
3565
|
+
getAccessToken: d
|
|
3557
3566
|
};
|
|
3558
3567
|
}
|
|
3559
|
-
const
|
|
3560
|
-
const i =
|
|
3568
|
+
const xe = X(be), qe = () => {
|
|
3569
|
+
const i = xe();
|
|
3561
3570
|
return {
|
|
3562
3571
|
user: i.user,
|
|
3563
3572
|
loading: i.loading,
|
|
@@ -3567,7 +3576,7 @@ const Ie = oe(Ce), dt = () => {
|
|
|
3567
3576
|
signOut: i.signOut,
|
|
3568
3577
|
getAccessToken: i.getAccessToken
|
|
3569
3578
|
};
|
|
3570
|
-
},
|
|
3579
|
+
}, He = Symbol("BladeStack"), Ye = Symbol("BladeMessaging"), Xe = Symbol("BladeDescriptor"), Ze = Symbol("BladeMaximized"), Qe = Symbol("BladeRenderingState"), et = Symbol("BladeData"), tt = Symbol("BladeBanners"), rt = Symbol("BladeBackButton"), nt = Symbol("NotificationStore"), st = Symbol("WidgetService"), at = Symbol("DashboardService"), it = Symbol("MenuService"), ot = Symbol("SettingsMenuService"), lt = Symbol("AppBarWidgetService"), ut = Symbol("AppBarMobileButtonsService"), ht = Symbol("LanguageService"), ct = Symbol("ToolbarService"), dt = Symbol("DynamicModules"), ft = Symbol("ModulesReady"), pt = Symbol("ModulesLoadError"), mt = Symbol("AppRootElement"), vt = Symbol("EmbeddedMode"), bt = Symbol("ShellIndicators"), xt = Symbol("AiAgentService"), gt = Symbol("IsMobile"), Et = Symbol("IsDesktop"), Ut = Symbol("IsPhone"), St = Symbol("IsTablet"), yt = Symbol("IsTouch"), Tt = Symbol("BladeRoutes"), _t = Symbol("InternalRoutes"), Pt = Symbol("CloseSettingsMenu"), Ot = Symbol("BladeContext"), wt = Symbol("WidgetScope"), At = Symbol("BladeForm"), jt = Symbol("BladeLoading"), ge = /* @__PURE__ */ T({
|
|
3571
3580
|
__name: "vc-material-icon",
|
|
3572
3581
|
props: {
|
|
3573
3582
|
icon: {},
|
|
@@ -3578,19 +3587,19 @@ const Ie = oe(Ce), dt = () => {
|
|
|
3578
3587
|
},
|
|
3579
3588
|
setup(i) {
|
|
3580
3589
|
const e = i, t = u(() => typeof e.customSize == "number" && e.customSize > 0), n = u(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
3581
|
-
return
|
|
3582
|
-
}), (r, s) => (
|
|
3583
|
-
class:
|
|
3590
|
+
return R(() => {
|
|
3591
|
+
}), (r, s) => (E(), S("span", {
|
|
3592
|
+
class: P([
|
|
3584
3593
|
"vc-material-icon",
|
|
3585
3594
|
"material-symbols-" + i.type,
|
|
3586
3595
|
!t.value && `vc-material-icon--${i.size}`,
|
|
3587
3596
|
i.variant ? `vc-material-icon--${i.variant}` : ""
|
|
3588
3597
|
]),
|
|
3589
|
-
style:
|
|
3598
|
+
style: C(n.value),
|
|
3590
3599
|
"aria-hidden": "true"
|
|
3591
|
-
},
|
|
3600
|
+
}, V(i.icon), 7));
|
|
3592
3601
|
}
|
|
3593
|
-
}),
|
|
3602
|
+
}), Ee = /* @__PURE__ */ T({
|
|
3594
3603
|
__name: "vc-bootstrap-icon",
|
|
3595
3604
|
props: {
|
|
3596
3605
|
icon: {},
|
|
@@ -3600,21 +3609,21 @@ const Ie = oe(Ce), dt = () => {
|
|
|
3600
3609
|
},
|
|
3601
3610
|
setup(i) {
|
|
3602
3611
|
const e = i, t = u(() => typeof e.customSize == "number" && e.customSize > 0), n = u(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
3603
|
-
|
|
3612
|
+
R(() => {
|
|
3604
3613
|
});
|
|
3605
3614
|
const r = u(() => e.icon ? `bi-${e.icon.startsWith("bi-") ? e.icon.substring(3) : e.icon}` : "");
|
|
3606
|
-
return (s, o) => (
|
|
3607
|
-
class:
|
|
3615
|
+
return (s, o) => (E(), S("i", {
|
|
3616
|
+
class: P([
|
|
3608
3617
|
"vc-bootstrap-icon",
|
|
3609
3618
|
!t.value && `vc-bootstrap-icon--${i.size}`,
|
|
3610
3619
|
r.value,
|
|
3611
3620
|
i.variant ? `vc-bootstrap-icon--${i.variant}` : ""
|
|
3612
3621
|
]),
|
|
3613
|
-
style:
|
|
3622
|
+
style: C(n.value),
|
|
3614
3623
|
"aria-hidden": "true"
|
|
3615
3624
|
}, null, 6));
|
|
3616
3625
|
}
|
|
3617
|
-
}),
|
|
3626
|
+
}), Ue = /* @__PURE__ */ T({
|
|
3618
3627
|
__name: "vc-lucide-icon",
|
|
3619
3628
|
props: {
|
|
3620
3629
|
icon: {},
|
|
@@ -3624,35 +3633,35 @@ const Ie = oe(Ce), dt = () => {
|
|
|
3624
3633
|
customSize: {}
|
|
3625
3634
|
},
|
|
3626
3635
|
setup(i) {
|
|
3627
|
-
const e =
|
|
3636
|
+
const e = g("vc-lucide-icon"), t = i, n = u(() => typeof t.customSize == "number" && t.customSize > 0), r = u(() => {
|
|
3628
3637
|
if (!t.icon) return "HelpCircleIcon";
|
|
3629
3638
|
let l = t.icon;
|
|
3630
3639
|
return l.startsWith("lucide-") && (l = l.substring(7)), l.toLowerCase().endsWith("icon") && (l = l.slice(0, -4)), l.includes("-") && (l = l.split("-").map((h) => h.charAt(0).toUpperCase() + h.slice(1)).join("")), l.charAt(0).toUpperCase() + l.slice(1) + "Icon";
|
|
3631
3640
|
}), s = u(() => {
|
|
3632
|
-
const l = r.value, h =
|
|
3633
|
-
return !h || typeof h != "object" && typeof h != "function" ? (e.warn(`Lucide icon not found: ${l}`), null) :
|
|
3641
|
+
const l = r.value, h = Z[l];
|
|
3642
|
+
return !h || typeof h != "object" && typeof h != "function" ? (e.warn(`Lucide icon not found: ${l}`), null) : W(h);
|
|
3634
3643
|
}), o = u(() => n.value && t.customSize ? {
|
|
3635
3644
|
width: `${t.customSize}px`,
|
|
3636
3645
|
height: `${t.customSize}px`
|
|
3637
3646
|
} : {});
|
|
3638
|
-
return (l, h) => s.value ? (
|
|
3647
|
+
return (l, h) => s.value ? (E(), J(F(s.value), {
|
|
3639
3648
|
key: 0,
|
|
3640
3649
|
"stroke-width": t.strokeWidth,
|
|
3641
|
-
class:
|
|
3650
|
+
class: P([
|
|
3642
3651
|
"vc-lucide-icon",
|
|
3643
3652
|
!n.value && `vc-lucide-icon--${i.size}`,
|
|
3644
3653
|
i.variant ? `vc-lucide-icon--${i.variant}` : ""
|
|
3645
3654
|
]),
|
|
3646
|
-
style:
|
|
3655
|
+
style: C(o.value),
|
|
3647
3656
|
"aria-hidden": "true"
|
|
3648
|
-
}, null, 8, ["stroke-width", "class", "style"])) : (
|
|
3657
|
+
}, null, 8, ["stroke-width", "class", "style"])) : (E(), S("span", {
|
|
3649
3658
|
key: 1,
|
|
3650
|
-
class:
|
|
3659
|
+
class: P(["vc-lucide-icon", !n.value && `vc-lucide-icon--${i.size}`])
|
|
3651
3660
|
}, [...h[0] || (h[0] = [
|
|
3652
|
-
|
|
3661
|
+
q("i", { class: "vc-lucide-icon__fallback" }, null, -1)
|
|
3653
3662
|
])], 2));
|
|
3654
3663
|
}
|
|
3655
|
-
}),
|
|
3664
|
+
}), Se = /* @__PURE__ */ T({
|
|
3656
3665
|
__name: "vc-fontawesome-icon",
|
|
3657
3666
|
props: {
|
|
3658
3667
|
icon: {},
|
|
@@ -3662,21 +3671,21 @@ const Ie = oe(Ce), dt = () => {
|
|
|
3662
3671
|
},
|
|
3663
3672
|
setup(i) {
|
|
3664
3673
|
const e = i, t = u(() => typeof e.customSize == "number" && e.customSize > 0), n = u(() => e.customSize ? { fontSize: `${e.customSize}px` } : void 0);
|
|
3665
|
-
|
|
3674
|
+
R(() => {
|
|
3666
3675
|
});
|
|
3667
3676
|
const r = u(() => e.icon.startsWith("fas ") || e.icon.startsWith("far ") || e.icon.startsWith("fal ") || e.icon.startsWith("fab ") || e.icon.startsWith("fad ") ? e.icon : e.icon.startsWith("fa-") ? `fas ${e.icon}` : e.icon.includes("fa-") ? e.icon : `fas fa-${e.icon}`);
|
|
3668
|
-
return (s, o) => (
|
|
3669
|
-
class:
|
|
3677
|
+
return (s, o) => (E(), S("i", {
|
|
3678
|
+
class: P([
|
|
3670
3679
|
"vc-fa-icon",
|
|
3671
3680
|
!t.value && `vc-fa-icon--${i.size}`,
|
|
3672
3681
|
r.value,
|
|
3673
3682
|
i.variant ? `vc-fa-icon--${i.variant}` : ""
|
|
3674
3683
|
]),
|
|
3675
|
-
style:
|
|
3684
|
+
style: C(n.value),
|
|
3676
3685
|
"aria-hidden": "true"
|
|
3677
3686
|
}, null, 6));
|
|
3678
3687
|
}
|
|
3679
|
-
}),
|
|
3688
|
+
}), ye = ["xlink:href"], Te = /* @__PURE__ */ T({
|
|
3680
3689
|
inheritAttrs: !1,
|
|
3681
3690
|
__name: "vc-svg-icon",
|
|
3682
3691
|
props: {
|
|
@@ -3701,18 +3710,18 @@ const Ie = oe(Ce), dt = () => {
|
|
|
3701
3710
|
const s = {};
|
|
3702
3711
|
return e.customSize && (s.width = `${e.customSize}px`, s.height = `${e.customSize}px`), e.strokeWidth && (s.strokeWidth = `${e.strokeWidth}`), s;
|
|
3703
3712
|
});
|
|
3704
|
-
return (s, o) => (
|
|
3713
|
+
return (s, o) => (E(), S("svg", j({
|
|
3705
3714
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3706
3715
|
class: ["vc-svg-icon", !t.value && `vc-svg-icon--${i.size}`, i.variant ? `vc-svg-icon--${i.variant}` : ""],
|
|
3707
3716
|
style: r.value
|
|
3708
3717
|
}, s.$attrs), [
|
|
3709
|
-
n.value ? (
|
|
3718
|
+
n.value ? (E(), S("use", {
|
|
3710
3719
|
key: 0,
|
|
3711
3720
|
"xlink:href": n.value
|
|
3712
|
-
}, null, 8,
|
|
3721
|
+
}, null, 8, ye)) : H("", !0)
|
|
3713
3722
|
], 16));
|
|
3714
3723
|
}
|
|
3715
|
-
}),
|
|
3724
|
+
}), _e = ["aria-hidden", "aria-label", "role"], Rt = /* @__PURE__ */ T({
|
|
3716
3725
|
__name: "vc-icon",
|
|
3717
3726
|
props: {
|
|
3718
3727
|
icon: { default: "lucide-square" },
|
|
@@ -3725,7 +3734,7 @@ const Ie = oe(Ce), dt = () => {
|
|
|
3725
3734
|
},
|
|
3726
3735
|
setup(i) {
|
|
3727
3736
|
const e = i;
|
|
3728
|
-
|
|
3737
|
+
R(() => {
|
|
3729
3738
|
});
|
|
3730
3739
|
const t = {
|
|
3731
3740
|
xs: 12,
|
|
@@ -3741,42 +3750,42 @@ const Ie = oe(Ce), dt = () => {
|
|
|
3741
3750
|
if (n.value === "material" && e.icon.startsWith("material-"))
|
|
3742
3751
|
return e.icon.replace(/^material-/, "");
|
|
3743
3752
|
if (n.value === "lucide" && e.icon.startsWith("lucide-")) {
|
|
3744
|
-
const
|
|
3745
|
-
return
|
|
3753
|
+
const d = e.icon.replace(/^lucide-/, "");
|
|
3754
|
+
return d.endsWith("Icon") ? d : `${d}Icon`;
|
|
3746
3755
|
}
|
|
3747
3756
|
return e.icon;
|
|
3748
|
-
}), s = u(() => n.value === "material"), o = u(() => n.value === "bootstrap"), l = u(() => n.value === "lucide"), h = u(() => n.value === "fontawesome"),
|
|
3757
|
+
}), s = u(() => n.value === "material"), o = u(() => n.value === "bootstrap"), l = u(() => n.value === "lucide"), h = u(() => n.value === "fontawesome"), x = u(() => {
|
|
3749
3758
|
if (typeof e.icon != "string")
|
|
3750
3759
|
return !0;
|
|
3751
3760
|
if (["fontawesome", "bootstrap"].includes(n.value) || n.value === "material" && e.icon.startsWith("material-") || n.value === "lucide" && e.icon.startsWith("lucide-"))
|
|
3752
3761
|
return !1;
|
|
3753
3762
|
if (l.value)
|
|
3754
3763
|
try {
|
|
3755
|
-
const
|
|
3756
|
-
return
|
|
3764
|
+
const d = typeof r.value == "string" ? r.value : String(r.value);
|
|
3765
|
+
return G(d) !== d;
|
|
3757
3766
|
} catch {
|
|
3758
3767
|
return !1;
|
|
3759
3768
|
}
|
|
3760
3769
|
try {
|
|
3761
|
-
return
|
|
3770
|
+
return G(e.icon) !== e.icon;
|
|
3762
3771
|
} catch {
|
|
3763
3772
|
return !1;
|
|
3764
3773
|
}
|
|
3765
|
-
}),
|
|
3774
|
+
}), I = u(() => {
|
|
3766
3775
|
if (typeof e.icon != "string")
|
|
3767
|
-
return
|
|
3776
|
+
return W(e.icon);
|
|
3768
3777
|
if (["fontawesome", "bootstrap", "material"].includes(n.value))
|
|
3769
3778
|
return "i";
|
|
3770
3779
|
try {
|
|
3771
|
-
const
|
|
3772
|
-
return c !==
|
|
3780
|
+
const d = typeof r.value == "string" ? r.value : String(r.value), c = G(d);
|
|
3781
|
+
return c !== d ? c : "i";
|
|
3773
3782
|
} catch {
|
|
3774
3783
|
return "i";
|
|
3775
3784
|
}
|
|
3776
|
-
}),
|
|
3777
|
-
const
|
|
3778
|
-
return
|
|
3779
|
-
}),
|
|
3785
|
+
}), O = u(() => s.value ? ge : o.value ? Ee : l.value ? Ue : h.value ? Se : _.value ? Te : x.value ? I.value : "i"), U = u(() => e.customSize ? e.customSize : t[e.size]), w = u(() => {
|
|
3786
|
+
const d = {};
|
|
3787
|
+
return x.value && e.customSize && (d.width = `${e.customSize}px`, d.height = `${e.customSize}px`), d;
|
|
3788
|
+
}), z = u(() => e.customSize ? {
|
|
3780
3789
|
fontSize: `${e.customSize}px`
|
|
3781
3790
|
} : {}), A = u(() => s.value ? {
|
|
3782
3791
|
icon: typeof r.value == "string" ? r.value.replace(/-outlined$|-rounded$|-sharp$/, "") : r.value,
|
|
@@ -3808,237 +3817,119 @@ const Ie = oe(Ce), dt = () => {
|
|
|
3808
3817
|
customSize: e.customSize
|
|
3809
3818
|
// Set custom size without scaling
|
|
3810
3819
|
} : _.value ? {
|
|
3811
|
-
icon:
|
|
3820
|
+
icon: $.value,
|
|
3812
3821
|
size: e.size,
|
|
3813
3822
|
variant: e.variant,
|
|
3814
3823
|
customSize: e.customSize,
|
|
3815
3824
|
basePath: e.basePath
|
|
3816
|
-
} :
|
|
3825
|
+
} : x.value ? {
|
|
3817
3826
|
size: e.size,
|
|
3818
3827
|
width: U.value,
|
|
3819
3828
|
height: U.value,
|
|
3820
3829
|
color: e.variant ? `var(--icon-color-${e.variant})` : "currentColor"
|
|
3821
|
-
} : {}), _ = u(() => n.value === "svg"),
|
|
3822
|
-
return (
|
|
3830
|
+
} : {}), _ = u(() => n.value === "svg"), $ = u(() => !_.value || typeof e.icon != "string" ? "" : e.icon.startsWith("svg:") ? e.icon.substring(4) : e.icon);
|
|
3831
|
+
return (d, c) => i.useContainer ? (E(), S("div", j({
|
|
3823
3832
|
key: 0,
|
|
3824
3833
|
class: ["vc-icon-container", `vc-icon-container--${i.size}`],
|
|
3825
|
-
style:
|
|
3834
|
+
style: z.value,
|
|
3826
3835
|
"aria-hidden": i.ariaLabel ? void 0 : "true",
|
|
3827
3836
|
"aria-label": i.ariaLabel || void 0,
|
|
3828
3837
|
role: i.ariaLabel ? "img" : void 0
|
|
3829
|
-
},
|
|
3830
|
-
(
|
|
3838
|
+
}, d.$attrs), [
|
|
3839
|
+
(E(), J(F(O.value), j({
|
|
3831
3840
|
class: [
|
|
3832
3841
|
"vc-icon",
|
|
3833
3842
|
`vc-icon--${i.size}`,
|
|
3834
3843
|
i.variant ? `vc-icon--${i.variant}` : "",
|
|
3835
|
-
!
|
|
3844
|
+
!x.value && !s.value && !l.value && !o.value && !h.value ? i.icon.toLowerCase() : ""
|
|
3836
3845
|
],
|
|
3837
|
-
style:
|
|
3846
|
+
style: w.value
|
|
3838
3847
|
}, A.value), null, 16, ["class", "style"]))
|
|
3839
|
-
], 16,
|
|
3848
|
+
], 16, _e)) : (E(), J(F(O.value), j({
|
|
3840
3849
|
key: 1,
|
|
3841
3850
|
class: [
|
|
3842
3851
|
"vc-icon",
|
|
3843
3852
|
`vc-icon--${i.size}`,
|
|
3844
3853
|
i.variant ? `vc-icon--${i.variant}` : "",
|
|
3845
|
-
!
|
|
3854
|
+
!x.value && !s.value && !l.value && !o.value && !h.value ? i.icon.toLowerCase() : ""
|
|
3846
3855
|
],
|
|
3847
|
-
style:
|
|
3856
|
+
style: w.value,
|
|
3848
3857
|
"aria-hidden": i.ariaLabel ? void 0 : "true",
|
|
3849
3858
|
"aria-label": i.ariaLabel || void 0,
|
|
3850
3859
|
role: i.ariaLabel ? "img" : void 0
|
|
3851
|
-
}, { ...A.value, ...
|
|
3852
|
-
}
|
|
3853
|
-
});
|
|
3854
|
-
function De(i = {}) {
|
|
3855
|
-
const e = Y(ze, void 0);
|
|
3856
|
-
return {
|
|
3857
|
-
teleportTarget: u(() => {
|
|
3858
|
-
const n = i.to ? X(i.to) : void 0;
|
|
3859
|
-
if (n)
|
|
3860
|
-
return n;
|
|
3861
|
-
if (e?.value)
|
|
3862
|
-
return e.value;
|
|
3863
|
-
if (i.fallbackToBody !== !1)
|
|
3864
|
-
return "body";
|
|
3865
|
-
})
|
|
3866
|
-
};
|
|
3867
|
-
}
|
|
3868
|
-
const Be = ["aria-describedby"], Ht = /* @__PURE__ */ P({
|
|
3869
|
-
__name: "vc-tooltip",
|
|
3870
|
-
props: {
|
|
3871
|
-
placement: { default: "bottom" },
|
|
3872
|
-
offset: { default: () => ({
|
|
3873
|
-
crossAxis: 0,
|
|
3874
|
-
mainAxis: 8
|
|
3875
|
-
}) },
|
|
3876
|
-
delay: { default: 0 },
|
|
3877
|
-
arrow: { type: Boolean, default: !0 },
|
|
3878
|
-
variant: { default: "default" },
|
|
3879
|
-
maxWidth: { default: 240 },
|
|
3880
|
-
disabled: { type: Boolean, default: !1 }
|
|
3881
|
-
},
|
|
3882
|
-
setup(i) {
|
|
3883
|
-
const e = i, t = `vc-tooltip-${Z()}`, n = S(!1), r = S(null), s = S(null), o = S(null), l = S(null);
|
|
3884
|
-
let h = null;
|
|
3885
|
-
const { teleportTarget: b } = De(), C = u(() => {
|
|
3886
|
-
const d = [
|
|
3887
|
-
ce({
|
|
3888
|
-
mainAxis: e.offset?.mainAxis ?? 8,
|
|
3889
|
-
crossAxis: e.offset?.crossAxis ?? 0
|
|
3890
|
-
}),
|
|
3891
|
-
de({ padding: 8 }),
|
|
3892
|
-
fe({ padding: 8 })
|
|
3893
|
-
];
|
|
3894
|
-
return e.arrow && d.push(ue({ element: o, padding: 4 })), d;
|
|
3895
|
-
}), {
|
|
3896
|
-
floatingStyles: w,
|
|
3897
|
-
placement: U,
|
|
3898
|
-
middlewareData: O
|
|
3899
|
-
} = he(r, s, {
|
|
3900
|
-
placement: u(() => e.placement),
|
|
3901
|
-
whileElementsMounted: pe,
|
|
3902
|
-
middleware: C
|
|
3903
|
-
}), I = u(() => typeof e.maxWidth == "number" ? `${e.maxWidth}px` : e.maxWidth), A = u(() => ({
|
|
3904
|
-
...w.value,
|
|
3905
|
-
maxWidth: I.value
|
|
3906
|
-
})), _ = u(() => U.value.split("-")[0]), z = u(() => {
|
|
3907
|
-
const d = O.value.arrow;
|
|
3908
|
-
if (!d) return {};
|
|
3909
|
-
const p = {};
|
|
3910
|
-
d.x != null && (p.left = `${d.x}px`), d.y != null && (p.top = `${d.y}px`);
|
|
3911
|
-
const v = { top: "bottom", right: "left", bottom: "top", left: "right" }[_.value];
|
|
3912
|
-
return p[v] = `${-8 / 2}px`, p;
|
|
3913
|
-
}), f = () => {
|
|
3914
|
-
e.disabled || (e.delay > 0 ? h = setTimeout(() => {
|
|
3915
|
-
n.value = !0;
|
|
3916
|
-
}, e.delay) : n.value = !0);
|
|
3917
|
-
}, c = () => {
|
|
3918
|
-
h && (clearTimeout(h), h = null), n.value = !1;
|
|
3919
|
-
};
|
|
3920
|
-
return Q(() => {
|
|
3921
|
-
h && (clearTimeout(h), h = null);
|
|
3922
|
-
}), (d, p) => (g(), y("div", {
|
|
3923
|
-
ref_key: "target",
|
|
3924
|
-
ref: l,
|
|
3925
|
-
class: "vc-tooltip",
|
|
3926
|
-
onMouseenter: f,
|
|
3927
|
-
onMouseleave: c,
|
|
3928
|
-
onFocusin: f,
|
|
3929
|
-
onFocusout: c,
|
|
3930
|
-
onKeydown: ee(c, ["escape"])
|
|
3931
|
-
}, [
|
|
3932
|
-
M("div", {
|
|
3933
|
-
ref_key: "tooltipCompRef",
|
|
3934
|
-
ref: r,
|
|
3935
|
-
class: "vc-tooltip__trigger",
|
|
3936
|
-
"aria-describedby": n.value ? t : void 0
|
|
3937
|
-
}, [
|
|
3938
|
-
L(d.$slots, "default")
|
|
3939
|
-
], 8, Be),
|
|
3940
|
-
(g(), N(te, { to: re(b) }, [
|
|
3941
|
-
ne(se, { name: "vc-tooltip-fade" }, {
|
|
3942
|
-
default: ae(() => [
|
|
3943
|
-
n.value && !i.disabled && d.$slots.tooltip ? (g(), y("div", {
|
|
3944
|
-
key: 0,
|
|
3945
|
-
id: t,
|
|
3946
|
-
ref_key: "tooltipRef",
|
|
3947
|
-
ref: s,
|
|
3948
|
-
role: "tooltip",
|
|
3949
|
-
style: R(A.value),
|
|
3950
|
-
class: T(["vc-tooltip__wrapper", `vc-tooltip__wrapper--${i.variant}`])
|
|
3951
|
-
}, [
|
|
3952
|
-
i.arrow ? (g(), y("div", {
|
|
3953
|
-
key: 0,
|
|
3954
|
-
ref_key: "arrowRef",
|
|
3955
|
-
ref: o,
|
|
3956
|
-
class: T(["vc-tooltip__arrow", `vc-tooltip__arrow--${i.variant}`]),
|
|
3957
|
-
style: R(z.value)
|
|
3958
|
-
}, null, 6)) : D("", !0),
|
|
3959
|
-
M("div", {
|
|
3960
|
-
class: T(["vc-tooltip__body", `vc-tooltip__body--${i.variant}`])
|
|
3961
|
-
}, [
|
|
3962
|
-
L(d.$slots, "tooltip")
|
|
3963
|
-
], 2)
|
|
3964
|
-
], 6)) : D("", !0)
|
|
3965
|
-
]),
|
|
3966
|
-
_: 3
|
|
3967
|
-
})
|
|
3968
|
-
], 8, ["to"]))
|
|
3969
|
-
], 544));
|
|
3860
|
+
}, { ...A.value, ...d.$attrs }), null, 16, ["class", "style", "aria-hidden", "aria-label", "role"]));
|
|
3970
3861
|
}
|
|
3971
3862
|
});
|
|
3972
3863
|
export {
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
3864
|
+
_t as $,
|
|
3865
|
+
xt as A,
|
|
3866
|
+
Xe as B,
|
|
3867
|
+
b as C,
|
|
3868
|
+
Ce as D,
|
|
3869
|
+
vt as E,
|
|
3870
|
+
rt as F,
|
|
3871
|
+
jt as G,
|
|
3872
|
+
Ze as H,
|
|
3873
|
+
Ut as I,
|
|
3874
|
+
Qe as J,
|
|
3875
|
+
Ie as K,
|
|
3876
|
+
ht as L,
|
|
3877
|
+
ft as M,
|
|
3878
|
+
nt as N,
|
|
3879
|
+
Pt as O,
|
|
3880
|
+
at as P,
|
|
3881
|
+
ze as Q,
|
|
3882
|
+
$e as R,
|
|
3883
|
+
De as S,
|
|
3884
|
+
ct as T,
|
|
3885
|
+
dt as U,
|
|
3886
|
+
Ne as V,
|
|
3887
|
+
st as W,
|
|
3888
|
+
se as X,
|
|
3889
|
+
ae as Y,
|
|
3890
|
+
te as Z,
|
|
3891
|
+
Rt as _,
|
|
3892
|
+
He as a,
|
|
3893
|
+
Ge as a0,
|
|
3894
|
+
ie as a1,
|
|
3895
|
+
ke as a2,
|
|
3896
|
+
Je as a3,
|
|
3897
|
+
pt as a4,
|
|
3898
|
+
Fe as a5,
|
|
3899
|
+
oe as a6,
|
|
3900
|
+
Me as a7,
|
|
3901
|
+
re as a8,
|
|
3902
|
+
le as a9,
|
|
3903
|
+
Be as aa,
|
|
3904
|
+
bt as ab,
|
|
3905
|
+
ue as ac,
|
|
3906
|
+
be as ad,
|
|
3907
|
+
xe as ae,
|
|
3908
|
+
Le as af,
|
|
3909
|
+
Ke as ag,
|
|
3910
|
+
Ye as b,
|
|
3911
|
+
g as c,
|
|
3912
|
+
tt as d,
|
|
3913
|
+
et as e,
|
|
3914
|
+
wt as f,
|
|
3915
|
+
Ot as g,
|
|
3916
|
+
fe as h,
|
|
3917
|
+
Ve as i,
|
|
3918
|
+
At as j,
|
|
3919
|
+
St as k,
|
|
3920
|
+
gt as l,
|
|
3921
|
+
We as m,
|
|
3922
|
+
Et as n,
|
|
3923
|
+
yt as o,
|
|
3924
|
+
Tt as p,
|
|
3925
|
+
lt as q,
|
|
3926
|
+
it as r,
|
|
3927
|
+
ot as s,
|
|
3928
|
+
he as t,
|
|
3929
|
+
qe as u,
|
|
3930
|
+
ut as v,
|
|
3931
|
+
je as w,
|
|
3932
|
+
ne as x,
|
|
3933
|
+
mt as y,
|
|
3934
|
+
Re as z
|
|
4044
3935
|
};
|