@prefabs.tech/vue3-layout 0.16.0 → 0.18.0
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/NavMenuItem-B4GnVnC1.js +4 -0
- package/dist/PrefabsTechVue3Layout.es.js +1 -1
- package/dist/PrefabsTechVue3Layout.umd.js +1 -1
- package/dist/{index-C32V-DYI.js → index-B5xvgE1C.js} +230 -229
- package/dist/src/layouts/SidebarHeaderLayout.vue.d.ts.map +1 -1
- package/dist/vue3-layout.css +1 -1
- package/package.json +7 -7
- package/dist/NavMenuItem-F-SRvhP6.js +0 -4
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useI18n as Ke, LocaleSwitcher as re, prependMessages as Ye } from "@prefabs.tech/vue3-i18n";
|
|
2
|
-
import { defineComponent as
|
|
2
|
+
import { defineComponent as I, computed as C, createElementBlock as v, openBlock as h, createTextVNode as de, createElementVNode as S, toDisplayString as T, unref as b, renderSlot as d, createBlock as x, createCommentVNode as k, h as he, resolveComponent as Ce, createVNode as N, withCtx as w, ref as j, onUnmounted as _e, normalizeClass as O, Transition as Me, Fragment as Ae, renderList as ie, useSlots as Ne, defineAsyncComponent as Je, shallowRef as Xe, markRaw as et, watch as tt, resolveDynamicComponent as nt, createSlots as Te, onMounted as ot, withDirectives as st, vShow as rt, inject as it } from "vue";
|
|
3
3
|
import { useConfig as q } from "@prefabs.tech/vue3-config";
|
|
4
4
|
import { useWindowSize as je } from "@vueuse/core";
|
|
5
5
|
import { ResponsiveMenu as lt } from "@prefabs.tech/vue3-ui";
|
|
6
6
|
import { useRoute as le, useRouter as Pe } from "vue-router";
|
|
7
7
|
const at = { class: "copyright" }, ct = ["href"], ut = {
|
|
8
8
|
name: "Copyright"
|
|
9
|
-
}, ft = /* @__PURE__ */
|
|
9
|
+
}, ft = /* @__PURE__ */ I({
|
|
10
10
|
...ut,
|
|
11
11
|
props: {
|
|
12
12
|
holder: {
|
|
@@ -20,8 +20,8 @@ const at = { class: "copyright" }, ct = ["href"], ut = {
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
setup(e) {
|
|
23
|
-
const n = e, t = ro(), { t: s } = Ke({ messages: t }), o =
|
|
24
|
-
return (i, l) => (
|
|
23
|
+
const n = e, t = ro(), { t: s } = Ke({ messages: t }), o = C(() => n.showDisclaimer ? s("copyright.disclaimer") : null), r = (/* @__PURE__ */ new Date()).getFullYear();
|
|
24
|
+
return (i, l) => (h(), v("div", at, [
|
|
25
25
|
de(" © " + T(b(r)) + " ", 1),
|
|
26
26
|
S("a", {
|
|
27
27
|
href: e.url,
|
|
@@ -32,13 +32,13 @@ const at = { class: "copyright" }, ct = ["href"], ut = {
|
|
|
32
32
|
}
|
|
33
33
|
}), dt = { class: "version" }, ht = {
|
|
34
34
|
name: "AppFooter"
|
|
35
|
-
}, ae = /* @__PURE__ */
|
|
35
|
+
}, ae = /* @__PURE__ */ I({
|
|
36
36
|
...ht,
|
|
37
37
|
setup(e) {
|
|
38
38
|
const n = q();
|
|
39
|
-
return (t, s) => (
|
|
39
|
+
return (t, s) => (h(), v("footer", null, [
|
|
40
40
|
d(t.$slots, "copyright", {}, () => [
|
|
41
|
-
b(n)?.copyright ? (
|
|
41
|
+
b(n)?.copyright ? (h(), x(ft, {
|
|
42
42
|
key: 0,
|
|
43
43
|
holder: b(n).copyright.holder,
|
|
44
44
|
url: b(n).copyright.url
|
|
@@ -66,7 +66,7 @@ const at = { class: "copyright" }, ct = ["href"], ut = {
|
|
|
66
66
|
prefix: a,
|
|
67
67
|
name: l
|
|
68
68
|
};
|
|
69
|
-
return n && !
|
|
69
|
+
return n && !U(c) ? null : c;
|
|
70
70
|
}
|
|
71
71
|
const r = o[0], i = r.split("-");
|
|
72
72
|
if (i.length > 1) {
|
|
@@ -75,7 +75,7 @@ const at = { class: "copyright" }, ct = ["href"], ut = {
|
|
|
75
75
|
prefix: i.shift(),
|
|
76
76
|
name: i.join("-")
|
|
77
77
|
};
|
|
78
|
-
return n && !
|
|
78
|
+
return n && !U(l) ? null : l;
|
|
79
79
|
}
|
|
80
80
|
if (t && s === "") {
|
|
81
81
|
const l = {
|
|
@@ -83,10 +83,10 @@ const at = { class: "copyright" }, ct = ["href"], ut = {
|
|
|
83
83
|
prefix: "",
|
|
84
84
|
name: r
|
|
85
85
|
};
|
|
86
|
-
return n && !
|
|
86
|
+
return n && !U(l, t) ? null : l;
|
|
87
87
|
}
|
|
88
88
|
return null;
|
|
89
|
-
},
|
|
89
|
+
}, U = (e, n) => e ? !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
|
|
90
90
|
// Check name: cannot be empty
|
|
91
91
|
((n && e.prefix === "" || e.prefix) && e.name) : !1, Fe = Object.freeze(
|
|
92
92
|
{
|
|
@@ -260,7 +260,7 @@ function kt(e, n) {
|
|
|
260
260
|
})), o;
|
|
261
261
|
}
|
|
262
262
|
const t = e.prefix;
|
|
263
|
-
if (!
|
|
263
|
+
if (!U({
|
|
264
264
|
prefix: t,
|
|
265
265
|
name: "a"
|
|
266
266
|
}))
|
|
@@ -340,48 +340,48 @@ function Mt(e, n) {
|
|
|
340
340
|
};
|
|
341
341
|
let r = t.body;
|
|
342
342
|
[t, s].forEach(($) => {
|
|
343
|
-
const
|
|
343
|
+
const p = [], P = $.hFlip, E = $.vFlip;
|
|
344
344
|
let A = $.rotate;
|
|
345
|
-
P ? E ? A += 2 : (
|
|
345
|
+
P ? E ? A += 2 : (p.push(
|
|
346
346
|
"translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
|
|
347
|
-
),
|
|
347
|
+
), p.push("scale(-1 1)"), o.top = o.left = 0) : E && (p.push(
|
|
348
348
|
"translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
|
|
349
|
-
),
|
|
350
|
-
let
|
|
349
|
+
), p.push("scale(1 -1)"), o.top = o.left = 0);
|
|
350
|
+
let _;
|
|
351
351
|
switch (A < 0 && (A -= Math.floor(A / 4) * 4), A = A % 4, A) {
|
|
352
352
|
case 1:
|
|
353
|
-
|
|
354
|
-
"rotate(90 " +
|
|
353
|
+
_ = o.height / 2 + o.top, p.unshift(
|
|
354
|
+
"rotate(90 " + _.toString() + " " + _.toString() + ")"
|
|
355
355
|
);
|
|
356
356
|
break;
|
|
357
357
|
case 2:
|
|
358
|
-
|
|
358
|
+
p.unshift(
|
|
359
359
|
"rotate(180 " + (o.width / 2 + o.left).toString() + " " + (o.height / 2 + o.top).toString() + ")"
|
|
360
360
|
);
|
|
361
361
|
break;
|
|
362
362
|
case 3:
|
|
363
|
-
|
|
364
|
-
"rotate(-90 " +
|
|
363
|
+
_ = o.width / 2 + o.left, p.unshift(
|
|
364
|
+
"rotate(-90 " + _.toString() + " " + _.toString() + ")"
|
|
365
365
|
);
|
|
366
366
|
break;
|
|
367
367
|
}
|
|
368
|
-
A % 2 === 1 && (o.left !== o.top && (
|
|
368
|
+
A % 2 === 1 && (o.left !== o.top && (_ = o.left, o.left = o.top, o.top = _), o.width !== o.height && (_ = o.width, o.width = o.height, o.height = _)), p.length && (r = Ct(
|
|
369
369
|
r,
|
|
370
|
-
'<g transform="' +
|
|
370
|
+
'<g transform="' + p.join(" ") + '">',
|
|
371
371
|
"</g>"
|
|
372
372
|
));
|
|
373
373
|
});
|
|
374
374
|
const i = s.width, l = s.height, a = o.width, c = o.height;
|
|
375
|
-
let
|
|
376
|
-
i === null ? (
|
|
377
|
-
const
|
|
378
|
-
_t(
|
|
375
|
+
let f, m;
|
|
376
|
+
i === null ? (m = l === null ? "1em" : l === "auto" ? c : l, f = ge(m, a / c)) : (f = i === "auto" ? a : i, m = l === null ? ge(f, c / a) : l === "auto" ? c : l);
|
|
377
|
+
const u = {}, g = ($, p) => {
|
|
378
|
+
_t(p) || (u[$] = p.toString());
|
|
379
379
|
};
|
|
380
|
-
|
|
381
|
-
const
|
|
382
|
-
return
|
|
383
|
-
attributes:
|
|
384
|
-
viewBox:
|
|
380
|
+
g("width", f), g("height", m);
|
|
381
|
+
const L = [o.left, o.top, a, c];
|
|
382
|
+
return u.viewBox = L.join(" "), {
|
|
383
|
+
attributes: u,
|
|
384
|
+
viewBox: L,
|
|
385
385
|
body: r
|
|
386
386
|
};
|
|
387
387
|
}
|
|
@@ -440,11 +440,11 @@ function ce(e) {
|
|
|
440
440
|
const ue = /* @__PURE__ */ Object.create(null), z = [
|
|
441
441
|
"https://api.simplesvg.com",
|
|
442
442
|
"https://api.unisvg.com"
|
|
443
|
-
],
|
|
443
|
+
], Q = [];
|
|
444
444
|
for (; z.length > 0; )
|
|
445
|
-
z.length === 1 || Math.random() > 0.5 ?
|
|
445
|
+
z.length === 1 || Math.random() > 0.5 ? Q.push(z.shift()) : Q.push(z.pop());
|
|
446
446
|
ue[""] = ce({
|
|
447
|
-
resources: ["https://api.iconify.design"].concat(
|
|
447
|
+
resources: ["https://api.iconify.design"].concat(Q)
|
|
448
448
|
});
|
|
449
449
|
function Et(e, n) {
|
|
450
450
|
const t = ce(n);
|
|
@@ -574,14 +574,14 @@ function qt(e) {
|
|
|
574
574
|
return;
|
|
575
575
|
s = o;
|
|
576
576
|
const r = o.provider, i = o.prefix, l = o.name, a = t[r] || (t[r] = /* @__PURE__ */ Object.create(null)), c = a[i] || (a[i] = R(r, i));
|
|
577
|
-
let
|
|
578
|
-
l in c.icons ?
|
|
579
|
-
const
|
|
577
|
+
let f;
|
|
578
|
+
l in c.icons ? f = n.loaded : i === "" || c.missing.has(l) ? f = n.missing : f = n.pending;
|
|
579
|
+
const m = {
|
|
580
580
|
provider: r,
|
|
581
581
|
prefix: i,
|
|
582
582
|
name: l
|
|
583
583
|
};
|
|
584
|
-
|
|
584
|
+
f.push(m);
|
|
585
585
|
}), n;
|
|
586
586
|
}
|
|
587
587
|
function qe(e, n) {
|
|
@@ -628,9 +628,9 @@ function Vt(e) {
|
|
|
628
628
|
});
|
|
629
629
|
}));
|
|
630
630
|
}
|
|
631
|
-
let
|
|
632
|
-
function
|
|
633
|
-
const s =
|
|
631
|
+
let Ut = 0;
|
|
632
|
+
function Qt(e, n, t) {
|
|
633
|
+
const s = Ut++, o = qe.bind(null, t, s);
|
|
634
634
|
if (!n.pending.length)
|
|
635
635
|
return o;
|
|
636
636
|
const r = {
|
|
@@ -664,25 +664,25 @@ function Zt(e, n, t, s) {
|
|
|
664
664
|
if (e.random) {
|
|
665
665
|
let y = e.resources.slice(0);
|
|
666
666
|
for (i = []; y.length > 1; ) {
|
|
667
|
-
const
|
|
668
|
-
i.push(y[
|
|
667
|
+
const M = Math.floor(Math.random() * y.length);
|
|
668
|
+
i.push(y[M]), y = y.slice(0, M).concat(y.slice(M + 1));
|
|
669
669
|
}
|
|
670
670
|
i = i.concat(y);
|
|
671
671
|
} else
|
|
672
672
|
i = e.resources.slice(r).concat(e.resources.slice(0, r));
|
|
673
673
|
const l = Date.now();
|
|
674
|
-
let a = "pending", c = 0,
|
|
675
|
-
typeof s == "function" &&
|
|
676
|
-
function
|
|
677
|
-
|
|
674
|
+
let a = "pending", c = 0, f, m = null, u = [], g = [];
|
|
675
|
+
typeof s == "function" && g.push(s);
|
|
676
|
+
function L() {
|
|
677
|
+
m && (clearTimeout(m), m = null);
|
|
678
678
|
}
|
|
679
679
|
function $() {
|
|
680
|
-
a === "pending" && (a = "aborted"),
|
|
680
|
+
a === "pending" && (a = "aborted"), L(), u.forEach((y) => {
|
|
681
681
|
y.status === "pending" && (y.status = "aborted");
|
|
682
|
-
}),
|
|
682
|
+
}), u = [];
|
|
683
683
|
}
|
|
684
|
-
function
|
|
685
|
-
|
|
684
|
+
function p(y, M) {
|
|
685
|
+
M && (g = []), typeof y == "function" && g.push(y);
|
|
686
686
|
}
|
|
687
687
|
function P() {
|
|
688
688
|
return {
|
|
@@ -690,24 +690,24 @@ function Zt(e, n, t, s) {
|
|
|
690
690
|
payload: n,
|
|
691
691
|
status: a,
|
|
692
692
|
queriesSent: c,
|
|
693
|
-
queriesPending:
|
|
694
|
-
subscribe:
|
|
693
|
+
queriesPending: u.length,
|
|
694
|
+
subscribe: p,
|
|
695
695
|
abort: $
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
698
|
function E() {
|
|
699
|
-
a = "failed",
|
|
700
|
-
y(void 0,
|
|
699
|
+
a = "failed", g.forEach((y) => {
|
|
700
|
+
y(void 0, f);
|
|
701
701
|
});
|
|
702
702
|
}
|
|
703
703
|
function A() {
|
|
704
|
-
|
|
704
|
+
u.forEach((y) => {
|
|
705
705
|
y.status === "pending" && (y.status = "aborted");
|
|
706
|
-
}),
|
|
706
|
+
}), u = [];
|
|
707
707
|
}
|
|
708
|
-
function
|
|
709
|
-
const V =
|
|
710
|
-
switch (
|
|
708
|
+
function _(y, M, B) {
|
|
709
|
+
const V = M !== "success";
|
|
710
|
+
switch (u = u.filter((F) => F !== y), a) {
|
|
711
711
|
case "pending":
|
|
712
712
|
break;
|
|
713
713
|
case "failed":
|
|
@@ -717,45 +717,45 @@ function Zt(e, n, t, s) {
|
|
|
717
717
|
default:
|
|
718
718
|
return;
|
|
719
719
|
}
|
|
720
|
-
if (
|
|
721
|
-
|
|
720
|
+
if (M === "abort") {
|
|
721
|
+
f = B, E();
|
|
722
722
|
return;
|
|
723
723
|
}
|
|
724
724
|
if (V) {
|
|
725
|
-
|
|
725
|
+
f = B, u.length || (i.length ? Y() : E());
|
|
726
726
|
return;
|
|
727
727
|
}
|
|
728
|
-
if (
|
|
728
|
+
if (L(), A(), !e.random) {
|
|
729
729
|
const F = e.resources.indexOf(y.resource);
|
|
730
730
|
F !== -1 && F !== e.index && (e.index = F);
|
|
731
731
|
}
|
|
732
|
-
a = "completed",
|
|
732
|
+
a = "completed", g.forEach((F) => {
|
|
733
733
|
F(B);
|
|
734
734
|
});
|
|
735
735
|
}
|
|
736
736
|
function Y() {
|
|
737
737
|
if (a !== "pending")
|
|
738
738
|
return;
|
|
739
|
-
|
|
739
|
+
L();
|
|
740
740
|
const y = i.shift();
|
|
741
741
|
if (y === void 0) {
|
|
742
|
-
if (
|
|
743
|
-
|
|
744
|
-
|
|
742
|
+
if (u.length) {
|
|
743
|
+
m = setTimeout(() => {
|
|
744
|
+
L(), a === "pending" && (A(), E());
|
|
745
745
|
}, e.timeout);
|
|
746
746
|
return;
|
|
747
747
|
}
|
|
748
748
|
E();
|
|
749
749
|
return;
|
|
750
750
|
}
|
|
751
|
-
const
|
|
751
|
+
const M = {
|
|
752
752
|
status: "pending",
|
|
753
753
|
resource: y,
|
|
754
754
|
callback: (B, V) => {
|
|
755
|
-
|
|
755
|
+
_(M, B, V);
|
|
756
756
|
}
|
|
757
757
|
};
|
|
758
|
-
|
|
758
|
+
u.push(M), c++, m = setTimeout(Y, e.rotate), t(y, n, M.callback);
|
|
759
759
|
}
|
|
760
760
|
return setTimeout(Y), P;
|
|
761
761
|
}
|
|
@@ -769,15 +769,15 @@ function Ve(e) {
|
|
|
769
769
|
t = t.filter((l) => l().status === "pending");
|
|
770
770
|
}
|
|
771
771
|
function o(l, a, c) {
|
|
772
|
-
const
|
|
772
|
+
const f = Zt(
|
|
773
773
|
n,
|
|
774
774
|
l,
|
|
775
775
|
a,
|
|
776
|
-
(
|
|
777
|
-
s(), c && c(
|
|
776
|
+
(m, u) => {
|
|
777
|
+
s(), c && c(m, u);
|
|
778
778
|
}
|
|
779
779
|
);
|
|
780
|
-
return t.push(
|
|
780
|
+
return t.push(f), f;
|
|
781
781
|
}
|
|
782
782
|
function r(l) {
|
|
783
783
|
return t.find((a) => l(a)) || null;
|
|
@@ -878,23 +878,23 @@ function en(e, n) {
|
|
|
878
878
|
if (e.loadIcons && (o.length > 1 || !r)) {
|
|
879
879
|
we(
|
|
880
880
|
e.loadIcons(o, s, t),
|
|
881
|
-
(
|
|
882
|
-
D(e, o,
|
|
881
|
+
(f) => {
|
|
882
|
+
D(e, o, f);
|
|
883
883
|
}
|
|
884
884
|
);
|
|
885
885
|
return;
|
|
886
886
|
}
|
|
887
887
|
if (r) {
|
|
888
|
-
o.forEach((
|
|
889
|
-
const
|
|
890
|
-
we(
|
|
891
|
-
const
|
|
888
|
+
o.forEach((f) => {
|
|
889
|
+
const m = r(f, s, t);
|
|
890
|
+
we(m, (u) => {
|
|
891
|
+
const g = u ? {
|
|
892
892
|
prefix: s,
|
|
893
893
|
icons: {
|
|
894
|
-
[
|
|
894
|
+
[f]: u
|
|
895
895
|
}
|
|
896
896
|
} : null;
|
|
897
|
-
D(e, [
|
|
897
|
+
D(e, [f], g);
|
|
898
898
|
});
|
|
899
899
|
});
|
|
900
900
|
return;
|
|
@@ -907,9 +907,9 @@ function en(e, n) {
|
|
|
907
907
|
D(e, i, null);
|
|
908
908
|
return;
|
|
909
909
|
}
|
|
910
|
-
a.prepare(t, s, i).forEach((
|
|
911
|
-
Yt(t,
|
|
912
|
-
D(e,
|
|
910
|
+
a.prepare(t, s, i).forEach((f) => {
|
|
911
|
+
Yt(t, f, (m) => {
|
|
912
|
+
D(e, f.icons, m);
|
|
913
913
|
});
|
|
914
914
|
});
|
|
915
915
|
}));
|
|
@@ -932,19 +932,19 @@ const tn = (e, n) => {
|
|
|
932
932
|
const o = /* @__PURE__ */ Object.create(null), r = [];
|
|
933
933
|
let i, l;
|
|
934
934
|
return s.pending.forEach((a) => {
|
|
935
|
-
const { provider: c, prefix:
|
|
936
|
-
if (
|
|
935
|
+
const { provider: c, prefix: f } = a;
|
|
936
|
+
if (f === l && c === i)
|
|
937
937
|
return;
|
|
938
|
-
i = c, l =
|
|
939
|
-
const
|
|
940
|
-
|
|
938
|
+
i = c, l = f, r.push(R(c, f));
|
|
939
|
+
const m = o[c] || (o[c] = /* @__PURE__ */ Object.create(null));
|
|
940
|
+
m[f] || (m[f] = []);
|
|
941
941
|
}), s.pending.forEach((a) => {
|
|
942
|
-
const { provider: c, prefix:
|
|
943
|
-
|
|
942
|
+
const { provider: c, prefix: f, name: m } = a, u = R(c, f), g = u.pendingIcons || (u.pendingIcons = /* @__PURE__ */ new Set());
|
|
943
|
+
g.has(m) || (g.add(m), o[c][f].push(m));
|
|
944
944
|
}), r.forEach((a) => {
|
|
945
945
|
const c = o[a.provider][a.prefix];
|
|
946
946
|
c.length && en(a, c);
|
|
947
|
-
}), n ?
|
|
947
|
+
}), n ? Qt(n, s, r) : be;
|
|
948
948
|
};
|
|
949
949
|
function nn(e, n) {
|
|
950
950
|
const t = {
|
|
@@ -1022,7 +1022,7 @@ const $e = {
|
|
|
1022
1022
|
display: "inline-block"
|
|
1023
1023
|
}, oe = {
|
|
1024
1024
|
backgroundColor: "currentColor"
|
|
1025
|
-
},
|
|
1025
|
+
}, Ue = {
|
|
1026
1026
|
backgroundColor: "transparent"
|
|
1027
1027
|
}, ke = {
|
|
1028
1028
|
Image: "var(--svg)",
|
|
@@ -1031,7 +1031,7 @@ const $e = {
|
|
|
1031
1031
|
}, Se = {
|
|
1032
1032
|
webkitMask: oe,
|
|
1033
1033
|
mask: oe,
|
|
1034
|
-
background:
|
|
1034
|
+
background: Ue
|
|
1035
1035
|
};
|
|
1036
1036
|
for (const e in Se) {
|
|
1037
1037
|
const n = Se[e];
|
|
@@ -1049,8 +1049,8 @@ function Le(e) {
|
|
|
1049
1049
|
const Ie = (e, n) => {
|
|
1050
1050
|
const t = nn($e, n), s = { ...fn }, o = n.mode || "svg", r = {}, i = n.style, l = typeof i == "object" && !(i instanceof Array) ? i : {};
|
|
1051
1051
|
for (let $ in n) {
|
|
1052
|
-
const
|
|
1053
|
-
if (
|
|
1052
|
+
const p = n[$];
|
|
1053
|
+
if (p !== void 0)
|
|
1054
1054
|
switch ($) {
|
|
1055
1055
|
// Properties to ignore
|
|
1056
1056
|
case "icon":
|
|
@@ -1063,28 +1063,28 @@ const Ie = (e, n) => {
|
|
|
1063
1063
|
case "inline":
|
|
1064
1064
|
case "hFlip":
|
|
1065
1065
|
case "vFlip":
|
|
1066
|
-
t[$] =
|
|
1066
|
+
t[$] = p === !0 || p === "true" || p === 1;
|
|
1067
1067
|
break;
|
|
1068
1068
|
// Flip as string: 'horizontal,vertical'
|
|
1069
1069
|
case "flip":
|
|
1070
|
-
typeof
|
|
1070
|
+
typeof p == "string" && sn(t, p);
|
|
1071
1071
|
break;
|
|
1072
1072
|
// Color: override style
|
|
1073
1073
|
case "color":
|
|
1074
|
-
r.color =
|
|
1074
|
+
r.color = p;
|
|
1075
1075
|
break;
|
|
1076
1076
|
// Rotation as string
|
|
1077
1077
|
case "rotate":
|
|
1078
|
-
typeof
|
|
1078
|
+
typeof p == "string" ? t[$] = rn(p) : typeof p == "number" && (t[$] = p);
|
|
1079
1079
|
break;
|
|
1080
1080
|
// Remove aria-hidden
|
|
1081
1081
|
case "ariaHidden":
|
|
1082
1082
|
case "aria-hidden":
|
|
1083
|
-
|
|
1083
|
+
p !== !0 && p !== "true" && delete s["aria-hidden"];
|
|
1084
1084
|
break;
|
|
1085
1085
|
default: {
|
|
1086
1086
|
const P = W[$];
|
|
1087
|
-
P ? (
|
|
1087
|
+
P ? (p === !0 || p === "true" || p === 1) && (t[P] = !0) : $e[$] === void 0 && (s[$] = p);
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
@@ -1094,21 +1094,21 @@ const Ie = (e, n) => {
|
|
|
1094
1094
|
...r,
|
|
1095
1095
|
...l
|
|
1096
1096
|
}, Object.assign(s, c);
|
|
1097
|
-
let $ = 0,
|
|
1098
|
-
return typeof
|
|
1097
|
+
let $ = 0, p = n.id;
|
|
1098
|
+
return typeof p == "string" && (p = p.replace(/-/g, "_")), s.innerHTML = jt(a.body, p ? () => p + "ID" + $++ : "iconifyVue"), he("svg", s);
|
|
1099
1099
|
}
|
|
1100
|
-
const { body:
|
|
1100
|
+
const { body: f, width: m, height: u } = e, g = o === "mask" || (o === "bg" ? !1 : f.indexOf("currentColor") !== -1), L = ln(f, {
|
|
1101
1101
|
...c,
|
|
1102
|
-
width:
|
|
1103
|
-
height:
|
|
1102
|
+
width: m + "",
|
|
1103
|
+
height: u + ""
|
|
1104
1104
|
});
|
|
1105
1105
|
return s.style = {
|
|
1106
1106
|
...r,
|
|
1107
|
-
"--svg": un(
|
|
1107
|
+
"--svg": un(L),
|
|
1108
1108
|
width: Le(c.width),
|
|
1109
1109
|
height: Le(c.height),
|
|
1110
1110
|
...dn,
|
|
1111
|
-
...
|
|
1111
|
+
...g ? oe : Ue,
|
|
1112
1112
|
...l
|
|
1113
1113
|
}, he("span", s);
|
|
1114
1114
|
};
|
|
@@ -1148,7 +1148,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1148
1148
|
const hn = {
|
|
1149
1149
|
...K,
|
|
1150
1150
|
body: ""
|
|
1151
|
-
}, xe =
|
|
1151
|
+
}, xe = I({
|
|
1152
1152
|
// Do not inherit other attributes: it is handled by render()
|
|
1153
1153
|
inheritAttrs: !1,
|
|
1154
1154
|
// Set initial data
|
|
@@ -1220,7 +1220,7 @@ const hn = {
|
|
|
1220
1220
|
class: "logo-default"
|
|
1221
1221
|
}, vn = {
|
|
1222
1222
|
name: "Logo"
|
|
1223
|
-
},
|
|
1223
|
+
}, Qe = /* @__PURE__ */ I({
|
|
1224
1224
|
...vn,
|
|
1225
1225
|
props: {
|
|
1226
1226
|
alt: {
|
|
@@ -1237,23 +1237,23 @@ const hn = {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
},
|
|
1239
1239
|
setup(e) {
|
|
1240
|
-
const n = e, { appName: t, appTitle: s, layout: o } = q(), r =
|
|
1240
|
+
const n = e, { appName: t, appTitle: s, layout: o } = q(), r = C(() => {
|
|
1241
1241
|
if (t)
|
|
1242
1242
|
return t.replace("@", "").replace("/", " ");
|
|
1243
1243
|
}), i = n.alt || o?.logoAlt || r.value || s || "My App", l = n.src || o?.logo, a = n.route || o?.logoRoute || "home";
|
|
1244
|
-
return (c,
|
|
1245
|
-
const
|
|
1246
|
-
return
|
|
1244
|
+
return (c, f) => {
|
|
1245
|
+
const m = Ce("router-link");
|
|
1246
|
+
return h(), v("div", pn, [
|
|
1247
1247
|
d(c.$slots, "default", {}, () => [
|
|
1248
|
-
N(
|
|
1248
|
+
N(m, {
|
|
1249
1249
|
to: { name: b(a) }
|
|
1250
1250
|
}, {
|
|
1251
1251
|
default: w(() => [
|
|
1252
|
-
b(l) ? (
|
|
1252
|
+
b(l) ? (h(), v("img", {
|
|
1253
1253
|
key: 0,
|
|
1254
1254
|
alt: b(i),
|
|
1255
1255
|
src: b(l)
|
|
1256
|
-
}, null, 8, mn)) : (
|
|
1256
|
+
}, null, 8, mn)) : (h(), v("span", gn, [
|
|
1257
1257
|
S("span", null, T(b(i)[0]), 1),
|
|
1258
1258
|
S("span", null, T(b(i)), 1)
|
|
1259
1259
|
]))
|
|
@@ -1266,7 +1266,7 @@ const hn = {
|
|
|
1266
1266
|
}
|
|
1267
1267
|
}), yn = {
|
|
1268
1268
|
name: "MainMenu"
|
|
1269
|
-
}, bn = /* @__PURE__ */
|
|
1269
|
+
}, bn = /* @__PURE__ */ I({
|
|
1270
1270
|
...yn,
|
|
1271
1271
|
props: {
|
|
1272
1272
|
routes: {
|
|
@@ -1276,12 +1276,12 @@ const hn = {
|
|
|
1276
1276
|
},
|
|
1277
1277
|
emits: ["close"],
|
|
1278
1278
|
setup(e) {
|
|
1279
|
-
const n = e, t = le(), s = Pe(), o =
|
|
1279
|
+
const n = e, t = le(), s = Pe(), o = C(() => {
|
|
1280
1280
|
let l = n.routes?.find(
|
|
1281
1281
|
(a) => a.route === t?.name
|
|
1282
1282
|
)?.route;
|
|
1283
1283
|
return l || (l = r.value), l;
|
|
1284
|
-
}), r =
|
|
1284
|
+
}), r = C(() => {
|
|
1285
1285
|
const l = t?.matched;
|
|
1286
1286
|
if (l?.length > 1) {
|
|
1287
1287
|
const a = l[l.length - 2];
|
|
@@ -1292,7 +1292,7 @@ const hn = {
|
|
|
1292
1292
|
const a = s.getRoutes().find((c) => c.path === l);
|
|
1293
1293
|
return String(a?.name);
|
|
1294
1294
|
};
|
|
1295
|
-
return (l, a) => (
|
|
1295
|
+
return (l, a) => (h(), x(b(lt), {
|
|
1296
1296
|
ref: "mainMenu",
|
|
1297
1297
|
"active-route": o.value ?? "home",
|
|
1298
1298
|
routes: e.routes,
|
|
@@ -1301,7 +1301,7 @@ const hn = {
|
|
|
1301
1301
|
}
|
|
1302
1302
|
}), wn = {
|
|
1303
1303
|
name: "AppHeader"
|
|
1304
|
-
}, We = /* @__PURE__ */
|
|
1304
|
+
}, We = /* @__PURE__ */ I({
|
|
1305
1305
|
...wn,
|
|
1306
1306
|
props: {
|
|
1307
1307
|
noLocaleSwitcher: Boolean,
|
|
@@ -1310,57 +1310,57 @@ const hn = {
|
|
|
1310
1310
|
noToggle: Boolean
|
|
1311
1311
|
},
|
|
1312
1312
|
setup(e, { expose: n }) {
|
|
1313
|
-
const { layout: t } = q(), { width: s } = je(), o = j(null), r = j(!0), i = t && t?.homeRoute ? t.homeRoute : void 0, l = t?.localeSwitcher?.showBadges, a =
|
|
1313
|
+
const { layout: t } = q(), { width: s } = je(), o = j(null), r = j(!0), i = t && t?.homeRoute ? t.homeRoute : void 0, l = t?.localeSwitcher?.showBadges, a = C(() => s.value > 576), c = () => {
|
|
1314
1314
|
r.value = !1;
|
|
1315
|
-
},
|
|
1315
|
+
}, f = () => {
|
|
1316
1316
|
window.innerWidth >= 576 ? r.value = !0 : r.value = !1;
|
|
1317
|
-
},
|
|
1317
|
+
}, m = () => {
|
|
1318
1318
|
r.value = !r.value;
|
|
1319
1319
|
};
|
|
1320
1320
|
return _e(() => {
|
|
1321
|
-
window.removeEventListener("resize",
|
|
1322
|
-
}), window.addEventListener("resize",
|
|
1321
|
+
window.removeEventListener("resize", f);
|
|
1322
|
+
}), window.addEventListener("resize", f), f(), n({
|
|
1323
1323
|
expanded: r
|
|
1324
|
-
}), (
|
|
1324
|
+
}), (u, g) => (h(), v("header", {
|
|
1325
1325
|
ref_key: "dzangolabVueAppHeader",
|
|
1326
1326
|
ref: o
|
|
1327
1327
|
}, [
|
|
1328
|
-
!e.noToggle || !a.value ? (
|
|
1328
|
+
!e.noToggle || !a.value ? (h(), v("div", {
|
|
1329
1329
|
key: 0,
|
|
1330
1330
|
class: "toggle",
|
|
1331
|
-
onClick:
|
|
1331
|
+
onClick: m
|
|
1332
1332
|
}, [
|
|
1333
|
-
d(
|
|
1334
|
-
r.value && !a.value ? (
|
|
1333
|
+
d(u.$slots, "toggle", {}, () => [
|
|
1334
|
+
r.value && !a.value ? (h(), x(b(xe), {
|
|
1335
1335
|
key: 0,
|
|
1336
1336
|
icon: "prime:times",
|
|
1337
1337
|
height: "2rem"
|
|
1338
|
-
})) : (
|
|
1338
|
+
})) : (h(), x(b(xe), {
|
|
1339
1339
|
key: 1,
|
|
1340
1340
|
icon: "prime:bars",
|
|
1341
1341
|
height: "2rem"
|
|
1342
1342
|
}))
|
|
1343
1343
|
])
|
|
1344
1344
|
])) : k("", !0),
|
|
1345
|
-
d(
|
|
1346
|
-
e.noLogo ? k("", !0) : (
|
|
1345
|
+
d(u.$slots, "logo", { class: "logo" }, () => [
|
|
1346
|
+
e.noLogo ? k("", !0) : (h(), x(Qe, {
|
|
1347
1347
|
key: 0,
|
|
1348
1348
|
route: b(i)
|
|
1349
1349
|
}, null, 8, ["route"]))
|
|
1350
1350
|
]),
|
|
1351
1351
|
S("nav", null, [
|
|
1352
|
-
d(
|
|
1353
|
-
b(t)?.mainMenu && !e.noMainMenu ? (
|
|
1352
|
+
d(u.$slots, "menu", {}, () => [
|
|
1353
|
+
b(t)?.mainMenu && !e.noMainMenu ? (h(), x(bn, {
|
|
1354
1354
|
key: 0,
|
|
1355
1355
|
class: "main-menu",
|
|
1356
1356
|
routes: b(t)?.mainMenu,
|
|
1357
1357
|
onClose: c
|
|
1358
1358
|
}, null, 8, ["routes"])) : k("", !0)
|
|
1359
1359
|
]),
|
|
1360
|
-
d(
|
|
1361
|
-
d(
|
|
1362
|
-
d(
|
|
1363
|
-
e.noLocaleSwitcher ? k("", !0) : (
|
|
1360
|
+
d(u.$slots, "userMenu"),
|
|
1361
|
+
d(u.$slots, "addon"),
|
|
1362
|
+
d(u.$slots, "locales", {}, () => [
|
|
1363
|
+
e.noLocaleSwitcher ? k("", !0) : (h(), x(b(re), {
|
|
1364
1364
|
key: 0,
|
|
1365
1365
|
"show-badges": b(l),
|
|
1366
1366
|
class: "locales"
|
|
@@ -1384,9 +1384,9 @@ const hn = {
|
|
|
1384
1384
|
}, Cn = {
|
|
1385
1385
|
name: "NavMenuItem",
|
|
1386
1386
|
components: {
|
|
1387
|
-
NavMenuItem: () => import("./NavMenuItem-
|
|
1387
|
+
NavMenuItem: () => import("./NavMenuItem-B4GnVnC1.js")
|
|
1388
1388
|
}
|
|
1389
|
-
}, _n = /* @__PURE__ */
|
|
1389
|
+
}, _n = /* @__PURE__ */ I({
|
|
1390
1390
|
...Cn,
|
|
1391
1391
|
props: {
|
|
1392
1392
|
item: {
|
|
@@ -1401,33 +1401,33 @@ const hn = {
|
|
|
1401
1401
|
},
|
|
1402
1402
|
emits: ["select:menu"],
|
|
1403
1403
|
setup(e, { emit: n }) {
|
|
1404
|
-
const t = e, s = n, o = le(), r = Pe(), i = j(!1), l =
|
|
1405
|
-
const
|
|
1406
|
-
if (
|
|
1407
|
-
const
|
|
1408
|
-
return
|
|
1404
|
+
const t = e, s = n, o = le(), r = Pe(), i = j(!1), l = C(() => {
|
|
1405
|
+
const u = o?.matched;
|
|
1406
|
+
if (u?.length > 1) {
|
|
1407
|
+
const g = u[u.length - 2];
|
|
1408
|
+
return f(g?.path);
|
|
1409
1409
|
}
|
|
1410
1410
|
return "";
|
|
1411
|
-
}), a =
|
|
1412
|
-
let
|
|
1413
|
-
return
|
|
1414
|
-
}), c =
|
|
1415
|
-
const
|
|
1416
|
-
return String(
|
|
1417
|
-
},
|
|
1411
|
+
}), a = C(() => {
|
|
1412
|
+
let u = o.name === t.item?.routeName;
|
|
1413
|
+
return u || (t.item?.routeName ? u = !!l.value && l.value === t.item?.routeName : !t.item?.routeName && !t.item?.children?.length && o.name === l.value && (u = !0)), u;
|
|
1414
|
+
}), c = C(() => !t.sidebarActive && t.item.shortName), f = (u) => {
|
|
1415
|
+
const g = r.getRoutes().find((L) => L.path === u);
|
|
1416
|
+
return String(g?.name);
|
|
1417
|
+
}, m = () => {
|
|
1418
1418
|
t.item.routeName ? (r.push({ name: t.item.routeName }), s("select:menu")) : !t.item.routeName && !t.item.children?.length ? (r.push({ name: l.value }), s("select:menu")) : i.value = !i.value;
|
|
1419
1419
|
};
|
|
1420
1420
|
return t.item.children?.length && (i.value = !!t.item.children.find(
|
|
1421
|
-
(
|
|
1422
|
-
)), (
|
|
1423
|
-
const
|
|
1424
|
-
return
|
|
1421
|
+
(u) => o.name === u?.routeName
|
|
1422
|
+
)), (u, g) => {
|
|
1423
|
+
const L = Ce("NavMenuItem", !0);
|
|
1424
|
+
return h(), v("div", kn, [
|
|
1425
1425
|
S("a", {
|
|
1426
1426
|
class: O([{ active: a.value }, "link"]),
|
|
1427
1427
|
"aria-label": "open menu",
|
|
1428
|
-
onClick:
|
|
1428
|
+
onClick: m
|
|
1429
1429
|
}, [
|
|
1430
|
-
e.item.icon ? (
|
|
1430
|
+
e.item.icon ? (h(), v("i", {
|
|
1431
1431
|
key: 0,
|
|
1432
1432
|
class: O([
|
|
1433
1433
|
"icon",
|
|
@@ -1435,15 +1435,15 @@ const hn = {
|
|
|
1435
1435
|
{ "icon-only": !c.value && !e.sidebarActive }
|
|
1436
1436
|
])
|
|
1437
1437
|
}, null, 2)) : k("", !0),
|
|
1438
|
-
c.value ? (
|
|
1439
|
-
e.sidebarActive ? (
|
|
1440
|
-
e.item.children && e.item.children.length ? (
|
|
1441
|
-
(
|
|
1438
|
+
c.value ? (h(), v("span", Sn, T(e.item.shortName), 1)) : k("", !0),
|
|
1439
|
+
e.sidebarActive ? (h(), v("span", Ln, T(e.item.name), 1)) : k("", !0),
|
|
1440
|
+
e.item.children && e.item.children.length ? (h(), v("span", In, [
|
|
1441
|
+
(h(), v("svg", {
|
|
1442
1442
|
class: O({ "up-chevron": i.value }),
|
|
1443
1443
|
viewBox: "0 0 24 24",
|
|
1444
1444
|
fill: "none",
|
|
1445
1445
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1446
|
-
},
|
|
1446
|
+
}, g[1] || (g[1] = [
|
|
1447
1447
|
S("path", {
|
|
1448
1448
|
"fill-rule": "evenodd",
|
|
1449
1449
|
"clip-rule": "evenodd",
|
|
@@ -1455,12 +1455,12 @@ const hn = {
|
|
|
1455
1455
|
], 2),
|
|
1456
1456
|
N(Me, { name: "fade" }, {
|
|
1457
1457
|
default: w(() => [
|
|
1458
|
-
e.item.children && e.item.children.length && i.value ? (
|
|
1459
|
-
(
|
|
1460
|
-
key: $.name + "-" +
|
|
1458
|
+
e.item.children && e.item.children.length && i.value ? (h(), v("div", xn, [
|
|
1459
|
+
(h(!0), v(Ae, null, ie(e.item.children, ($, p) => (h(), x(L, {
|
|
1460
|
+
key: $.name + "-" + p,
|
|
1461
1461
|
item: $,
|
|
1462
1462
|
"sidebar-active": e.sidebarActive,
|
|
1463
|
-
"onSelect:menu":
|
|
1463
|
+
"onSelect:menu": g[0] || (g[0] = (P) => u.$emit("select:menu"))
|
|
1464
1464
|
}, null, 8, ["item", "sidebar-active"]))), 128))
|
|
1465
1465
|
])) : k("", !0)
|
|
1466
1466
|
]),
|
|
@@ -1474,7 +1474,7 @@ const hn = {
|
|
|
1474
1474
|
class: "menu"
|
|
1475
1475
|
}, Nn = {
|
|
1476
1476
|
name: "NavMenu"
|
|
1477
|
-
}, Tn = /* @__PURE__ */
|
|
1477
|
+
}, Tn = /* @__PURE__ */ I({
|
|
1478
1478
|
...Nn,
|
|
1479
1479
|
props: {
|
|
1480
1480
|
menu: {
|
|
@@ -1489,7 +1489,7 @@ const hn = {
|
|
|
1489
1489
|
},
|
|
1490
1490
|
emits: ["select:menu"],
|
|
1491
1491
|
setup(e) {
|
|
1492
|
-
const n = e, t =
|
|
1492
|
+
const n = e, t = C(() => n.menu?.map((s) => {
|
|
1493
1493
|
if (s.hide)
|
|
1494
1494
|
return null;
|
|
1495
1495
|
const o = s.children?.filter((r) => !r.hide) || [];
|
|
@@ -1498,9 +1498,9 @@ const hn = {
|
|
|
1498
1498
|
children: o.length ? o : void 0
|
|
1499
1499
|
};
|
|
1500
1500
|
}).filter(Boolean));
|
|
1501
|
-
return (s, o) => (
|
|
1502
|
-
t.value?.length > 0 ? (
|
|
1503
|
-
(
|
|
1501
|
+
return (s, o) => (h(), v("nav", Mn, [
|
|
1502
|
+
t.value?.length > 0 ? (h(), v("div", An, [
|
|
1503
|
+
(h(!0), v(Ae, null, ie(t.value, (r, i) => (h(), x(_n, {
|
|
1504
1504
|
key: r.name + "-" + i,
|
|
1505
1505
|
item: r,
|
|
1506
1506
|
"sidebar-active": e.sidebarActive,
|
|
@@ -1530,7 +1530,7 @@ const hn = {
|
|
|
1530
1530
|
src: $n
|
|
1531
1531
|
}, Dn = {
|
|
1532
1532
|
name: "Sidebar"
|
|
1533
|
-
}, Ge = /* @__PURE__ */
|
|
1533
|
+
}, Ge = /* @__PURE__ */ I({
|
|
1534
1534
|
...Dn,
|
|
1535
1535
|
props: {
|
|
1536
1536
|
collapsible: {
|
|
@@ -1548,21 +1548,21 @@ const hn = {
|
|
|
1548
1548
|
},
|
|
1549
1549
|
emits: ["select:menu"],
|
|
1550
1550
|
setup(e, { expose: n }) {
|
|
1551
|
-
const t = e, s =
|
|
1551
|
+
const t = e, s = C(() => !r.value && t.collapsible ? !t.menu?.filter((i) => !!i.shortName)?.length : !1), o = Ne(), r = j(!0);
|
|
1552
1552
|
return n({
|
|
1553
1553
|
sidebarActive: r
|
|
1554
|
-
}), (i, l) => s.value ? (
|
|
1554
|
+
}), (i, l) => s.value ? (h(), v("div", {
|
|
1555
1555
|
key: 1,
|
|
1556
1556
|
class: "no-sidebar",
|
|
1557
1557
|
onClick: l[2] || (l[2] = (a) => r.value = !0)
|
|
1558
1558
|
}, [
|
|
1559
|
-
r.value ? k("", !0) : (
|
|
1560
|
-
])) : (
|
|
1559
|
+
r.value ? k("", !0) : (h(), v("img", zn))
|
|
1560
|
+
])) : (h(), v("div", {
|
|
1561
1561
|
key: 0,
|
|
1562
1562
|
class: O(["sidebar", { collapsible: e.collapsible }])
|
|
1563
1563
|
}, [
|
|
1564
|
-
e.noHeader ? k("", !0) : (
|
|
1565
|
-
N(
|
|
1564
|
+
e.noHeader ? k("", !0) : (h(), v("div", jn, [
|
|
1565
|
+
N(Qe),
|
|
1566
1566
|
S("div", Pn, [
|
|
1567
1567
|
d(i.$slots, "title")
|
|
1568
1568
|
]),
|
|
@@ -1573,12 +1573,12 @@ const hn = {
|
|
|
1573
1573
|
}, [
|
|
1574
1574
|
N(Me, { name: "sidebar-toggle" }, {
|
|
1575
1575
|
default: w(() => [
|
|
1576
|
-
r.value ? (
|
|
1576
|
+
r.value ? (h(), v("svg", En, l[3] || (l[3] = [
|
|
1577
1577
|
S("path", {
|
|
1578
1578
|
d: "m13.06 12l4.42-4.42a.75.75 0 1 0-1.06-1.06L12 10.94L7.58 6.52a.75.75 0 0 0-1.06 1.06L10.94 12l-4.42 4.42a.75.75 0 0 0 0 1.06a.75.75 0 0 0 1.06 0L12 13.06l4.42 4.42a.75.75 0 0 0 1.06 0a.75.75 0 0 0 0-1.06Z",
|
|
1579
1579
|
fill: "currentColor"
|
|
1580
1580
|
}, null, -1)
|
|
1581
|
-
]))) : (
|
|
1581
|
+
]))) : (h(), v("svg", Fn, l[4] || (l[4] = [
|
|
1582
1582
|
S("path", {
|
|
1583
1583
|
d: "M19 12.75H5a.75.75 0 0 1 0-1.5h14a.75.75 0 0 1 0 1.5m0-4.5H5a.75.75 0 0 1 0-1.5h14a.75.75 0 0 1 0 1.5m0 9H5a.75.75 0 0 1 0-1.5h14a.75.75 0 0 1 0 1.5",
|
|
1584
1584
|
fill: "currentColor"
|
|
@@ -1604,14 +1604,14 @@ const hn = {
|
|
|
1604
1604
|
]),
|
|
1605
1605
|
d(i.$slots, "afterSidebarMenu")
|
|
1606
1606
|
]),
|
|
1607
|
-
b(o).footer ? (
|
|
1607
|
+
b(o).footer ? (h(), v("div", Bn, [
|
|
1608
1608
|
d(i.$slots, "footer")
|
|
1609
1609
|
])) : k("", !0)
|
|
1610
1610
|
], 2));
|
|
1611
1611
|
}
|
|
1612
1612
|
}), Hn = { class: "content" }, qn = {
|
|
1613
1613
|
name: "StickyCollapsibleFooter"
|
|
1614
|
-
}, ho = /* @__PURE__ */
|
|
1614
|
+
}, ho = /* @__PURE__ */ I({
|
|
1615
1615
|
...qn,
|
|
1616
1616
|
props: {
|
|
1617
1617
|
fixed: {
|
|
@@ -1620,7 +1620,7 @@ const hn = {
|
|
|
1620
1620
|
}
|
|
1621
1621
|
},
|
|
1622
1622
|
setup(e) {
|
|
1623
|
-
return (n, t) => (
|
|
1623
|
+
return (n, t) => (h(), v("footer", {
|
|
1624
1624
|
class: O(`sticky-collapsible ${e.fixed ? "fixed" : ""}`)
|
|
1625
1625
|
}, [
|
|
1626
1626
|
S("div", Hn, [
|
|
@@ -1631,10 +1631,10 @@ const hn = {
|
|
|
1631
1631
|
}), Vn = Je({
|
|
1632
1632
|
loader: () => Promise.resolve().then(() => Xn),
|
|
1633
1633
|
timeout: 3e3
|
|
1634
|
-
}),
|
|
1634
|
+
}), Un = {
|
|
1635
1635
|
name: "Layout"
|
|
1636
|
-
},
|
|
1637
|
-
...
|
|
1636
|
+
}, Qn = /* @__PURE__ */ I({
|
|
1637
|
+
...Un,
|
|
1638
1638
|
props: {
|
|
1639
1639
|
defaultLayout: {
|
|
1640
1640
|
default: Vn,
|
|
@@ -1644,7 +1644,7 @@ const hn = {
|
|
|
1644
1644
|
setup(e) {
|
|
1645
1645
|
const n = e, t = le(), s = Ne(), o = Object.keys(s);
|
|
1646
1646
|
let r = Xe(n.defaultLayout);
|
|
1647
|
-
const i =
|
|
1647
|
+
const i = C(() => et(r.value));
|
|
1648
1648
|
return tt(
|
|
1649
1649
|
() => t.meta,
|
|
1650
1650
|
async (l) => {
|
|
@@ -1657,7 +1657,7 @@ const hn = {
|
|
|
1657
1657
|
else
|
|
1658
1658
|
r.value = n.defaultLayout;
|
|
1659
1659
|
}
|
|
1660
|
-
), (l, a) => (
|
|
1660
|
+
), (l, a) => (h(), x(nt(i.value), null, Te({
|
|
1661
1661
|
default: w(() => [
|
|
1662
1662
|
d(l.$slots, "default")
|
|
1663
1663
|
]),
|
|
@@ -1673,14 +1673,14 @@ const hn = {
|
|
|
1673
1673
|
}
|
|
1674
1674
|
}), Wn = ["aria-expanded"], Gn = {
|
|
1675
1675
|
name: "BasicLayout"
|
|
1676
|
-
}, po = /* @__PURE__ */
|
|
1676
|
+
}, po = /* @__PURE__ */ I({
|
|
1677
1677
|
...Gn,
|
|
1678
1678
|
props: {
|
|
1679
1679
|
noLocaleSwitcher: Boolean
|
|
1680
1680
|
},
|
|
1681
1681
|
setup(e) {
|
|
1682
1682
|
const n = j();
|
|
1683
|
-
return (t, s) => (
|
|
1683
|
+
return (t, s) => (h(), v("div", {
|
|
1684
1684
|
"aria-expanded": n.value?.expanded,
|
|
1685
1685
|
class: "layout basic"
|
|
1686
1686
|
}, [
|
|
@@ -1742,7 +1742,7 @@ function Yn(e, n, t, s, o, r) {
|
|
|
1742
1742
|
const Jn = /* @__PURE__ */ Kn(Zn, [["render", Yn]]), Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1743
1743
|
__proto__: null,
|
|
1744
1744
|
default: Jn
|
|
1745
|
-
}, Symbol.toStringTag, { value: "Module" })), eo = ["aria-expanded"], mo = /* @__PURE__ */
|
|
1745
|
+
}, Symbol.toStringTag, { value: "Module" })), eo = ["aria-expanded"], mo = /* @__PURE__ */ I({
|
|
1746
1746
|
__name: "SidebarHeaderLayout",
|
|
1747
1747
|
props: {
|
|
1748
1748
|
collapsible: {
|
|
@@ -1765,63 +1765,64 @@ const Jn = /* @__PURE__ */ Kn(Zn, [["render", Yn]]), Xn = /* @__PURE__ */ Object
|
|
|
1765
1765
|
}
|
|
1766
1766
|
},
|
|
1767
1767
|
setup(e, { expose: n }) {
|
|
1768
|
-
const { layout: t } = q(), s = t?.localeSwitcher?.showBadges, { width: o } = je(), r = j(), i = j(), l = j(!1), a =
|
|
1768
|
+
const { layout: t } = q(), s = t?.localeSwitcher?.showBadges, { width: o } = je(), r = j(), i = j(), l = j(!1), a = e, c = C(() => o.value > 576), f = C(() => (a.userMenuLocation === "sidebar" || !c.value) && !a.noSidebar), m = () => {
|
|
1769
1769
|
window.innerWidth >= 576 ? (l.value = !1, i.value && (i.value.sidebarActive = !0)) : (l.value = !0, i.value && (i.value.sidebarActive = !1));
|
|
1770
1770
|
}, u = () => {
|
|
1771
|
-
|
|
1771
|
+
c.value || (i.value.sidebarActive = !1);
|
|
1772
1772
|
};
|
|
1773
1773
|
return ot(() => {
|
|
1774
1774
|
window.innerWidth < 576 && i.value && (i.value.sidebarActive = !1);
|
|
1775
1775
|
}), _e(() => {
|
|
1776
|
-
window.removeEventListener("resize",
|
|
1777
|
-
}), window.addEventListener("resize",
|
|
1776
|
+
window.removeEventListener("resize", m);
|
|
1777
|
+
}), window.addEventListener("resize", m), m(), n({
|
|
1778
1778
|
onSelectMenu: u
|
|
1779
|
-
}), (
|
|
1780
|
-
"aria-expanded":
|
|
1779
|
+
}), (g, L) => (h(), v("div", {
|
|
1780
|
+
"aria-expanded": c.value ? r.value?.expanded : i.value?.sidebarActive,
|
|
1781
1781
|
class: O(["layout sidebar-header-layout", { collapsible: e.collapsible }])
|
|
1782
1782
|
}, [
|
|
1783
|
-
d(
|
|
1783
|
+
d(g.$slots, "header", {}, () => [
|
|
1784
1784
|
st(N(We, {
|
|
1785
1785
|
ref_key: "appHeader",
|
|
1786
1786
|
ref: r,
|
|
1787
|
+
class: O({ "no-locale-switcher-header": e.noLocaleSwitcher }),
|
|
1787
1788
|
"no-locale-switcher": e.noLocaleSwitcher,
|
|
1788
1789
|
"no-toggle": !e.collapsible || e.noSidebar,
|
|
1789
1790
|
"no-main-menu": ""
|
|
1790
1791
|
}, Te({
|
|
1791
1792
|
locales: w(() => [
|
|
1792
|
-
d(
|
|
1793
|
+
d(g.$slots, "locales")
|
|
1793
1794
|
]),
|
|
1794
1795
|
_: 2
|
|
1795
1796
|
}, [
|
|
1796
|
-
e.userMenuLocation === "header" ? {
|
|
1797
|
+
e.userMenuLocation === "header" && c.value ? {
|
|
1797
1798
|
name: "userMenu",
|
|
1798
1799
|
fn: w(() => [
|
|
1799
|
-
d(
|
|
1800
|
+
d(g.$slots, "userMenu")
|
|
1800
1801
|
]),
|
|
1801
1802
|
key: "0"
|
|
1802
1803
|
} : void 0
|
|
1803
|
-
]), 1032, ["no-locale-switcher", "no-toggle"]), [
|
|
1804
|
-
[rt,
|
|
1804
|
+
]), 1032, ["class", "no-locale-switcher", "no-toggle"]), [
|
|
1805
|
+
[rt, c.value]
|
|
1805
1806
|
])
|
|
1806
1807
|
]),
|
|
1807
|
-
!e.noSidebar || !
|
|
1808
|
+
!e.noSidebar || !c.value ? (h(), x(Ge, {
|
|
1808
1809
|
key: 0,
|
|
1809
1810
|
ref_key: "sidebar",
|
|
1810
1811
|
ref: i,
|
|
1811
|
-
collapsible: e.collapsible &&
|
|
1812
|
+
collapsible: e.collapsible && c.value,
|
|
1812
1813
|
menu: e.menu,
|
|
1813
|
-
"no-header":
|
|
1814
|
+
"no-header": c.value,
|
|
1814
1815
|
class: "layout-sidebar",
|
|
1815
1816
|
"onSelect:menu": u
|
|
1816
1817
|
}, {
|
|
1817
1818
|
afterNavLinks: w(() => [
|
|
1818
|
-
d(
|
|
1819
|
+
d(g.$slots, "afterNavLinks")
|
|
1819
1820
|
]),
|
|
1820
1821
|
afterSidebarMenu: w(() => [
|
|
1821
|
-
d(
|
|
1822
|
-
|
|
1823
|
-
l.value ? d(
|
|
1824
|
-
e.noLocaleSwitcher ? k("", !0) : (
|
|
1822
|
+
d(g.$slots, "afterSidebarMenu"),
|
|
1823
|
+
f.value ? d(g.$slots, "userMenu", { key: 0 }) : k("", !0),
|
|
1824
|
+
l.value ? d(g.$slots, "locales", { key: 1 }, () => [
|
|
1825
|
+
e.noLocaleSwitcher ? k("", !0) : (h(), x(b(re), {
|
|
1825
1826
|
key: 0,
|
|
1826
1827
|
"show-badges": b(s),
|
|
1827
1828
|
class: "locales"
|
|
@@ -1829,18 +1830,18 @@ const Jn = /* @__PURE__ */ Kn(Zn, [["render", Yn]]), Xn = /* @__PURE__ */ Object
|
|
|
1829
1830
|
]) : k("", !0)
|
|
1830
1831
|
]),
|
|
1831
1832
|
footer: w(() => [
|
|
1832
|
-
d(
|
|
1833
|
+
d(g.$slots, "footer", {}, () => [
|
|
1833
1834
|
N(ae)
|
|
1834
1835
|
])
|
|
1835
1836
|
]),
|
|
1836
1837
|
_: 3
|
|
1837
1838
|
}, 8, ["collapsible", "menu", "no-header"])) : k("", !0),
|
|
1838
1839
|
S("main", null, [
|
|
1839
|
-
d(
|
|
1840
|
+
d(g.$slots, "default")
|
|
1840
1841
|
])
|
|
1841
1842
|
], 10, eo));
|
|
1842
1843
|
}
|
|
1843
|
-
}), to = "data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20stroke-width='0'%3e%3c/g%3e%3cg%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%207C12.2652%207%2012.5196%207.10536%2012.7071%207.29289L19.7071%2014.2929C20.0976%2014.6834%2020.0976%2015.3166%2019.7071%2015.7071C19.3166%2016.0976%2018.6834%2016.0976%2018.2929%2015.7071L12%209.41421L5.70711%2015.7071C5.31658%2016.0976%204.68342%2016.0976%204.29289%2015.7071C3.90237%2015.3166%203.90237%2014.6834%204.29289%2014.2929L11.2929%207.29289C11.4804%207.10536%2011.7348%207%2012%207Z'%20fill='%23ffffff'%3e%3c/path%3e%3c/g%3e%3c/svg%3e", no = { class: "layout sidebar-only" }, go = /* @__PURE__ */
|
|
1844
|
+
}), to = "data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20stroke-width='0'%3e%3c/g%3e%3cg%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%207C12.2652%207%2012.5196%207.10536%2012.7071%207.29289L19.7071%2014.2929C20.0976%2014.6834%2020.0976%2015.3166%2019.7071%2015.7071C19.3166%2016.0976%2018.6834%2016.0976%2018.2929%2015.7071L12%209.41421L5.70711%2015.7071C5.31658%2016.0976%204.68342%2016.0976%204.29289%2015.7071C3.90237%2015.3166%203.90237%2014.6834%204.29289%2014.2929L11.2929%207.29289C11.4804%207.10536%2011.7348%207%2012%207Z'%20fill='%23ffffff'%3e%3c/path%3e%3c/g%3e%3c/svg%3e", no = { class: "layout sidebar-only" }, go = /* @__PURE__ */ I({
|
|
1844
1845
|
__name: "SidebarOnlyLayout",
|
|
1845
1846
|
props: {
|
|
1846
1847
|
menu: {
|
|
@@ -1855,7 +1856,7 @@ const Jn = /* @__PURE__ */ Kn(Zn, [["render", Yn]]), Xn = /* @__PURE__ */ Object
|
|
|
1855
1856
|
},
|
|
1856
1857
|
setup(e) {
|
|
1857
1858
|
const { layout: n } = q(), t = n?.localeSwitcher?.showBadges;
|
|
1858
|
-
return (s, o) => (
|
|
1859
|
+
return (s, o) => (h(), v("div", no, [
|
|
1859
1860
|
N(Ge, {
|
|
1860
1861
|
menu: e.menu,
|
|
1861
1862
|
"no-header": e.noHeader,
|
|
@@ -1868,7 +1869,7 @@ const Jn = /* @__PURE__ */ Kn(Zn, [["render", Yn]]), Xn = /* @__PURE__ */ Object
|
|
|
1868
1869
|
d(s.$slots, "afterSidebarMenu"),
|
|
1869
1870
|
d(s.$slots, "userMenu"),
|
|
1870
1871
|
d(s.$slots, "locales", {}, () => [
|
|
1871
|
-
e.noLocaleSwitcher ? k("", !0) : (
|
|
1872
|
+
e.noLocaleSwitcher ? k("", !0) : (h(), x(b(re), {
|
|
1872
1873
|
key: 0,
|
|
1873
1874
|
"show-badges": b(t),
|
|
1874
1875
|
class: "locales"
|
|
@@ -1900,7 +1901,7 @@ const Jn = /* @__PURE__ */ Kn(Zn, [["render", Yn]]), Xn = /* @__PURE__ */ Object
|
|
|
1900
1901
|
"dzangolab.vue-layout.translations"
|
|
1901
1902
|
), ro = () => it(Ze, se), vo = {
|
|
1902
1903
|
install: (e, n) => {
|
|
1903
|
-
e.component("Layout",
|
|
1904
|
+
e.component("Layout", Qn);
|
|
1904
1905
|
const t = n?.translations ? Ye(se, n.translations) : se;
|
|
1905
1906
|
e.provide(Ze, t);
|
|
1906
1907
|
}
|
|
@@ -1912,8 +1913,8 @@ export {
|
|
|
1912
1913
|
We as b,
|
|
1913
1914
|
po as c,
|
|
1914
1915
|
ft as d,
|
|
1915
|
-
|
|
1916
|
-
|
|
1916
|
+
Qn as e,
|
|
1917
|
+
Qe as f,
|
|
1917
1918
|
bn as g,
|
|
1918
1919
|
Ge as h,
|
|
1919
1920
|
mo as i,
|