@topjoao/top-design-system 0.2.0 → 0.2.12
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/README.md +10 -1
- package/dist/{TopToast-NcOUE0L3.js → TopToast-LduM5Y6j.js} +389 -369
- package/dist/TopToast-LduM5Y6j.js.map +1 -0
- package/dist/TopToast-pn0Xv1kN.cjs +2 -0
- package/dist/TopToast-pn0Xv1kN.cjs.map +1 -0
- package/dist/components/TopTextArea.vue.d.ts +3 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/TopToast-CInWA4Cm.cjs +0 -2
- package/dist/TopToast-CInWA4Cm.cjs.map +0 -1
- package/dist/TopToast-NcOUE0L3.js.map +0 -1
|
@@ -7,22 +7,22 @@ import R from "primevue/datepicker";
|
|
|
7
7
|
import z from "primevue/fileupload";
|
|
8
8
|
import B from "primevue/inputtext";
|
|
9
9
|
import V from "primevue/textarea";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
10
|
+
import ne from "primevue/inputnumber";
|
|
11
|
+
import re from "primevue/drawer";
|
|
12
|
+
import H from "primevue/menu";
|
|
13
|
+
import ie from "primevue/autocomplete";
|
|
14
|
+
import U from "primevue/tab";
|
|
15
|
+
import W from "primevue/tablist";
|
|
16
|
+
import G from "primevue/tabpanel";
|
|
17
|
+
import K from "primevue/tabpanels";
|
|
18
|
+
import ae from "primevue/tabs";
|
|
19
|
+
import q from "primevue/accordion";
|
|
20
|
+
import J from "primevue/accordioncontent";
|
|
21
|
+
import oe from "primevue/accordionheader";
|
|
22
|
+
import se from "primevue/accordionpanel";
|
|
23
|
+
import Y from "primevue/toast";
|
|
24
24
|
//#region src/components/TopButton.vue?vue&type=script&setup=true&lang.ts
|
|
25
|
-
var
|
|
25
|
+
var ce = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px] bg-transparent" }, le = /* @__PURE__ */ u({
|
|
26
26
|
__name: "TopButton",
|
|
27
27
|
props: {
|
|
28
28
|
tooltip: { default: "" },
|
|
@@ -59,7 +59,7 @@ var se = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
59
59
|
let e = c.unstyled ? "" : u.value === "secondary" ? "rounded-[10px] border px-3 py-2 font-bold dark:!border-zinc-500 dark:!bg-zinc-700 dark:!text-zinc-100 dark:hover:!bg-zinc-600" : c.outlined ? u.value === "primary" ? "shrink-0 rounded-[10px] border-primary-800 px-3 py-2 text-primary-800 hover:bg-primary-50 dark:border-primary-200 dark:bg-transparent dark:text-primary-100 dark:hover:bg-primary-900" : "shrink-0 rounded-[10px] border px-3 py-2 font-bold" : u.value === "primary" ? "rounded-[10px] !border-primary-900 bg-primary-900 px-3 py-2 font-bold text-white hover:!border-primary-800 hover:bg-primary-800 dark:!text-white" : "rounded-[10px] border px-3 py-2 font-bold";
|
|
60
60
|
return I("top-button__control text-xs", e, c.class);
|
|
61
61
|
});
|
|
62
|
-
return (t, n) => (b(), a("span",
|
|
62
|
+
return (t, n) => (b(), a("span", ce, [M((b(), r(O(P), {
|
|
63
63
|
type: e.type,
|
|
64
64
|
label: e.label,
|
|
65
65
|
disabled: e.disabled || e.loading,
|
|
@@ -94,7 +94,7 @@ var se = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
94
94
|
{ top: !0 }
|
|
95
95
|
]])]));
|
|
96
96
|
}
|
|
97
|
-
}),
|
|
97
|
+
}), X = {
|
|
98
98
|
primary: {
|
|
99
99
|
50: "#EEF9FF",
|
|
100
100
|
100: "#DFF4FF",
|
|
@@ -192,8 +192,8 @@ var se = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
192
192
|
!e && i.loading || a("update:modelValue", e);
|
|
193
193
|
}
|
|
194
194
|
}), u = n(() => ({
|
|
195
|
-
"--top-confirm-dialog-accent": i.severity === "danger" ?
|
|
196
|
-
"--top-confirm-dialog-accent-hover": i.severity === "danger" ?
|
|
195
|
+
"--top-confirm-dialog-accent": i.severity === "danger" ? X.danger[600] : X.primary[800],
|
|
196
|
+
"--top-confirm-dialog-accent-hover": i.severity === "danger" ? X.danger[700] : X.primary[700]
|
|
197
197
|
})), d = n(() => ["px-3 py-2 text-sm", i.severity === "danger" ? "!border-red-600 !bg-red-600 hover:!border-red-700 hover:!bg-red-700" : ""].filter(Boolean).join(" "));
|
|
198
198
|
function f() {
|
|
199
199
|
i.loading || a("confirm");
|
|
@@ -244,13 +244,13 @@ var se = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
244
244
|
"aria-hidden": "true"
|
|
245
245
|
}, null, 2), o("p", fe, D(e.title), 1)]),
|
|
246
246
|
o("div", Z, [w(t.$slots, "message", {}, () => [w(t.$slots, "default", {}, () => [c(D(e.message), 1)])])]),
|
|
247
|
-
o("div", pe, [l(
|
|
247
|
+
o("div", pe, [l(le, {
|
|
248
248
|
label: e.cancelText,
|
|
249
249
|
secondary: "",
|
|
250
250
|
disabled: e.loading,
|
|
251
251
|
class: "px-3 py-2 text-sm",
|
|
252
252
|
onClick: p
|
|
253
|
-
}, null, 8, ["label", "disabled"]), l(
|
|
253
|
+
}, null, 8, ["label", "disabled"]), l(le, {
|
|
254
254
|
label: e.loading ? e.loadingText : e.confirmText,
|
|
255
255
|
loading: e.loading,
|
|
256
256
|
class: h(d.value),
|
|
@@ -648,23 +648,23 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
648
648
|
}), !1))
|
|
649
649
|
};
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function ne(e) {
|
|
652
652
|
let t = e.originalEvent;
|
|
653
653
|
return Array.from(t.dataTransfer?.files ?? t.target?.files ?? []);
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function re(e) {
|
|
656
656
|
return d.multiple ? [...e] : e[0] ?? null;
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function H() {
|
|
659
659
|
g.value && (g.value.files = [..._.value]);
|
|
660
660
|
}
|
|
661
|
-
function
|
|
662
|
-
_.value = e, x.value = [],
|
|
663
|
-
let n =
|
|
661
|
+
function ie(e, t) {
|
|
662
|
+
_.value = e, x.value = [], J(), m(H);
|
|
663
|
+
let n = re(e);
|
|
664
664
|
f("update:modelValue", n), f("change", n), t === "select" && f("select", [...e]), t === "clear" && f("clear");
|
|
665
665
|
}
|
|
666
|
-
function
|
|
667
|
-
let { errors: t, validFiles: n } = V(
|
|
666
|
+
function U(e) {
|
|
667
|
+
let { errors: t, validFiles: n } = V(ne(e)), r = d.multiple ? [..._.value, ...n.filter((e) => !_.value.some((t) => L(t, e)))] : n.slice(-1);
|
|
668
668
|
if (d.maxFiles && r.length > d.maxFiles) {
|
|
669
669
|
let e = r.slice(d.maxFiles);
|
|
670
670
|
t.push(...e.map((e) => ({
|
|
@@ -673,51 +673,51 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
673
673
|
message: `O limite máximo é de ${d.maxFiles} arquivo(s).`
|
|
674
674
|
}))), r = r.slice(0, d.maxFiles);
|
|
675
675
|
}
|
|
676
|
-
if (t.length ? (x.value = t, f("error", t)) : x.value = [],
|
|
677
|
-
_.value = r,
|
|
678
|
-
let e =
|
|
676
|
+
if (t.length ? (x.value = t, f("error", t)) : x.value = [], H(), n.length && !W(r, _.value)) {
|
|
677
|
+
_.value = r, J(), m(H);
|
|
678
|
+
let e = re(r);
|
|
679
679
|
f("update:modelValue", e), f("change", e), f("select", [...r]);
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
|
-
function
|
|
682
|
+
function W(e, t) {
|
|
683
683
|
return e.length === t.length && e.every((e, n) => L(e, t[n]));
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function G() {
|
|
686
686
|
N.value || g.value?.choose();
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function K(e, t) {
|
|
689
689
|
if (N.value) return;
|
|
690
690
|
let n = _.value[t];
|
|
691
691
|
if (!n) return;
|
|
692
692
|
e(t);
|
|
693
693
|
let r = _.value.filter((e, n) => n !== t);
|
|
694
|
-
|
|
694
|
+
ie(r, "remove"), f("remove", n, t), r.length || f("clear");
|
|
695
695
|
}
|
|
696
|
-
function
|
|
697
|
-
N.value || !_.value.length ||
|
|
696
|
+
function ae() {
|
|
697
|
+
N.value || !_.value.length || ie([], "clear");
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function q(e) {
|
|
700
700
|
if (!e.type.startsWith("image/") || typeof URL.createObjectURL != "function") return "";
|
|
701
701
|
let t = T.get(e);
|
|
702
702
|
if (t) return t;
|
|
703
703
|
let n = URL.createObjectURL(e);
|
|
704
704
|
return T.set(e, n), n;
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function J() {
|
|
707
707
|
for (let [e, t] of T) _.value.includes(e) || (URL.revokeObjectURL(t), T.delete(e));
|
|
708
708
|
}
|
|
709
709
|
return A(() => d.modelValue, (e) => {
|
|
710
710
|
let t = I(e);
|
|
711
|
-
|
|
711
|
+
W(t, _.value) || (_.value = t, x.value = [], J(), m(H));
|
|
712
712
|
}), A(() => d.multiple, () => {
|
|
713
713
|
let e = I(d.modelValue);
|
|
714
|
-
_.value = e,
|
|
715
|
-
}), y(
|
|
714
|
+
_.value = e, J(), m(H);
|
|
715
|
+
}), y(H), v(() => {
|
|
716
716
|
for (let e of T.values()) URL.revokeObjectURL(e);
|
|
717
717
|
T.clear();
|
|
718
718
|
}), s({
|
|
719
|
-
choose:
|
|
720
|
-
clear:
|
|
719
|
+
choose: G,
|
|
720
|
+
clear: ae
|
|
721
721
|
}), (n, s) => (b(), a("div", De, [
|
|
722
722
|
t.label ? (b(), a("label", {
|
|
723
723
|
key: 0,
|
|
@@ -744,7 +744,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
744
744
|
N.value ? "cursor-not-allowed opacity-60" : ""
|
|
745
745
|
].join(" ") }
|
|
746
746
|
},
|
|
747
|
-
onSelect:
|
|
747
|
+
onSelect: U
|
|
748
748
|
}, {
|
|
749
749
|
content: j(({ removeFileCallback: c }) => [o("div", Ae, [_.value.length ? (b(), a("div", Pe, [(b(!0), a(e, null, C(_.value, (e, r) => (b(), a("div", {
|
|
750
750
|
key: `${e.name}-${e.size}-${e.lastModified}`,
|
|
@@ -753,10 +753,10 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
753
753
|
w(n.$slots, "preview", {
|
|
754
754
|
file: e,
|
|
755
755
|
index: r,
|
|
756
|
-
url:
|
|
757
|
-
}, () => [
|
|
756
|
+
url: q(e)
|
|
757
|
+
}, () => [q(e) ? (b(), a("img", {
|
|
758
758
|
key: 0,
|
|
759
|
-
src:
|
|
759
|
+
src: q(e),
|
|
760
760
|
alt: `Pré-visualização de ${e.name}`,
|
|
761
761
|
class: "size-12 shrink-0 rounded-lg object-cover"
|
|
762
762
|
}, null, 8, Fe)) : (b(), a("span", Ie, [...s[0] ||= [o("i", {
|
|
@@ -769,12 +769,12 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
769
769
|
class: "flex size-8 shrink-0 items-center justify-center rounded-full border-0 bg-transparent p-0 text-red-600 transition-colors hover:bg-red-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:text-red-400 dark:hover:bg-red-950/40 dark:focus-visible:ring-offset-zinc-900",
|
|
770
770
|
"aria-label": `${t.removeLabel}: ${e.name}`,
|
|
771
771
|
disabled: N.value,
|
|
772
|
-
onClick: (e) =>
|
|
772
|
+
onClick: (e) => K(c, r)
|
|
773
773
|
}, [...s[1] ||= [o("i", {
|
|
774
774
|
class: "pi pi-times",
|
|
775
775
|
"aria-hidden": "true"
|
|
776
776
|
}, null, -1)]], 8, Be)
|
|
777
|
-
]))), 128)), t.multiple && (!t.maxFiles || _.value.length < t.maxFiles) ? (b(), r(
|
|
777
|
+
]))), 128)), t.multiple && (!t.maxFiles || _.value.length < t.maxFiles) ? (b(), r(le, {
|
|
778
778
|
key: 0,
|
|
779
779
|
label: t.selectLabel,
|
|
780
780
|
icon: "pi pi-plus-circle",
|
|
@@ -782,13 +782,13 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
782
782
|
disabled: t.disabled,
|
|
783
783
|
loading: t.loading,
|
|
784
784
|
class: "mt-1 px-3 py-2",
|
|
785
|
-
onClick:
|
|
785
|
+
onClick: G
|
|
786
786
|
}, null, 8, [
|
|
787
787
|
"label",
|
|
788
788
|
"disabled",
|
|
789
789
|
"loading"
|
|
790
790
|
])) : i("", !0)])) : w(n.$slots, "empty", {
|
|
791
|
-
choose:
|
|
791
|
+
choose: G,
|
|
792
792
|
disabled: N.value
|
|
793
793
|
}, () => [
|
|
794
794
|
o("span", je, [t.loading ? (b(), a("i", Me)) : (b(), r(O(Ee), {
|
|
@@ -799,13 +799,13 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
799
799
|
class: "text-primary-800 dark:text-primary-300"
|
|
800
800
|
}, null, 8, ["icon"]))]),
|
|
801
801
|
o("p", Ne, D(t.placeholder), 1),
|
|
802
|
-
l(
|
|
802
|
+
l(le, {
|
|
803
803
|
label: t.selectLabel,
|
|
804
804
|
icon: "pi pi-plus-circle",
|
|
805
805
|
disabled: t.disabled,
|
|
806
806
|
loading: t.loading,
|
|
807
807
|
class: "px-3 py-2",
|
|
808
|
-
onClick:
|
|
808
|
+
onClick: G
|
|
809
809
|
}, null, 8, [
|
|
810
810
|
"label",
|
|
811
811
|
"disabled",
|
|
@@ -910,7 +910,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
910
910
|
key: 0,
|
|
911
911
|
"aria-hidden": "true",
|
|
912
912
|
class: "text-red-600 dark:text-red-400"
|
|
913
|
-
}, Ye = ["id"],
|
|
913
|
+
}, Ye = { class: "flex w-full gap-1 flex-wrap justify-between" }, Xe = ["id"], Ze = ["id"], Qe = /* @__PURE__ */ u({
|
|
914
914
|
inheritAttrs: !1,
|
|
915
915
|
__name: "TopTextArea",
|
|
916
916
|
props: {
|
|
@@ -934,42 +934,57 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
934
934
|
autoResize: {
|
|
935
935
|
type: Boolean,
|
|
936
936
|
default: !1
|
|
937
|
+
},
|
|
938
|
+
maxLength: {},
|
|
939
|
+
showCounter: {
|
|
940
|
+
type: Boolean,
|
|
941
|
+
default: !1
|
|
937
942
|
}
|
|
938
943
|
},
|
|
939
944
|
emits: ["update:modelValue"],
|
|
940
945
|
setup(e, { emit: t }) {
|
|
941
|
-
let r = e,
|
|
946
|
+
let r = e, s = t, u = ee(), d = k(), f = n(() => u.id === void 0 || u.id === null || u.id === "" ? d : String(u.id)), m = n(() => `${f.value}-error`), h = n(() => `${f.value}-counter`);
|
|
947
|
+
function g() {
|
|
948
|
+
let e = r.maxLength ?? u.maxlength;
|
|
949
|
+
return typeof e == "number" || typeof e == "string" ? e : void 0;
|
|
950
|
+
}
|
|
951
|
+
let _ = n(() => {
|
|
942
952
|
if (r.error) return !0;
|
|
943
|
-
let e =
|
|
953
|
+
let e = u["aria-invalid"];
|
|
944
954
|
return typeof e == "boolean" || e === "true" || e === "false" || e === "grammar" || e === "spelling" ? e : void 0;
|
|
945
|
-
}),
|
|
946
|
-
let e =
|
|
955
|
+
}), v = n(() => {
|
|
956
|
+
let e = u["aria-describedby"], t = [
|
|
957
|
+
typeof e == "string" ? e : "",
|
|
958
|
+
r.error ? m.value : "",
|
|
959
|
+
r.showCounter ? h.value : ""
|
|
960
|
+
].filter(Boolean);
|
|
947
961
|
return t.length ? t.join(" ") : void 0;
|
|
948
962
|
});
|
|
949
|
-
function
|
|
950
|
-
|
|
963
|
+
function y(e) {
|
|
964
|
+
s("update:modelValue", e ?? "");
|
|
951
965
|
}
|
|
952
966
|
return (t, n) => (b(), a("div", Ke, [
|
|
953
967
|
e.label ? (b(), a("label", {
|
|
954
968
|
key: 0,
|
|
955
|
-
for:
|
|
969
|
+
for: f.value,
|
|
956
970
|
class: "top-field-label text-xs font-bold"
|
|
957
971
|
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span", Je, "*")) : i("", !0)], 8, qe)) : i("", !0),
|
|
958
972
|
l(O(V), p(t.$attrs, {
|
|
959
|
-
id:
|
|
973
|
+
id: f.value,
|
|
960
974
|
"model-value": e.modelValue,
|
|
961
975
|
placeholder: e.placeholder,
|
|
962
976
|
required: e.required,
|
|
963
977
|
disabled: e.disabled,
|
|
964
978
|
readonly: e.readonly,
|
|
965
979
|
rows: e.rows,
|
|
980
|
+
maxlength: g(),
|
|
966
981
|
"auto-resize": e.autoResize,
|
|
967
982
|
invalid: !!e.error,
|
|
968
|
-
"aria-invalid":
|
|
969
|
-
"aria-describedby":
|
|
983
|
+
"aria-invalid": _.value,
|
|
984
|
+
"aria-describedby": v.value,
|
|
970
985
|
fluid: "",
|
|
971
986
|
class: ["top-text-area__control top-field-control w-full rounded-[10px] border px-3 py-2 text-xs read-only:cursor-default disabled:cursor-not-allowed", { "resize-y": !e.autoResize }],
|
|
972
|
-
"onUpdate:modelValue":
|
|
987
|
+
"onUpdate:modelValue": y
|
|
973
988
|
}), null, 16, [
|
|
974
989
|
"id",
|
|
975
990
|
"model-value",
|
|
@@ -978,25 +993,30 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
978
993
|
"disabled",
|
|
979
994
|
"readonly",
|
|
980
995
|
"rows",
|
|
996
|
+
"maxlength",
|
|
981
997
|
"auto-resize",
|
|
982
998
|
"invalid",
|
|
983
999
|
"aria-invalid",
|
|
984
1000
|
"aria-describedby",
|
|
985
1001
|
"class"
|
|
986
1002
|
]),
|
|
987
|
-
e.error ? (b(), a("span", {
|
|
988
|
-
key:
|
|
989
|
-
id:
|
|
1003
|
+
o("div", Ye, [e.error ? (b(), a("span", {
|
|
1004
|
+
key: 0,
|
|
1005
|
+
id: m.value,
|
|
990
1006
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
991
1007
|
role: "alert"
|
|
992
|
-
}, D(e.error), 9,
|
|
1008
|
+
}, D(e.error), 9, Xe)) : i("", !0), e.showCounter ? (b(), a("span", {
|
|
1009
|
+
key: 1,
|
|
1010
|
+
id: h.value,
|
|
1011
|
+
class: "top-text-area__counter text-right text-[11px] text-secondary-600 dark:text-zinc-400"
|
|
1012
|
+
}, D(e.modelValue.length) + D(g() === void 0 ? "" : ` / ${g()}`) + " caracteres ", 9, Ze)) : i("", !0)])
|
|
993
1013
|
]));
|
|
994
1014
|
}
|
|
995
|
-
}),
|
|
1015
|
+
}), $e = { class: "top-input-number top-solutions-component flex w-full flex-col gap-1" }, et = ["for"], tt = {
|
|
996
1016
|
key: 0,
|
|
997
1017
|
"aria-hidden": "true",
|
|
998
1018
|
class: "text-red-600 dark:text-red-400"
|
|
999
|
-
},
|
|
1019
|
+
}, nt = ["id"], rt = /* @__PURE__ */ u({
|
|
1000
1020
|
inheritAttrs: !1,
|
|
1001
1021
|
__name: "TopInputNumber",
|
|
1002
1022
|
props: {
|
|
@@ -1132,12 +1152,12 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1132
1152
|
value: t instanceof HTMLInputElement ? t.value : ""
|
|
1133
1153
|
});
|
|
1134
1154
|
}
|
|
1135
|
-
return (t, n) => (b(), a("div",
|
|
1155
|
+
return (t, n) => (b(), a("div", $e, [
|
|
1136
1156
|
e.label ? (b(), a("label", {
|
|
1137
1157
|
key: 0,
|
|
1138
1158
|
for: _.value,
|
|
1139
1159
|
class: "top-field-label text-xs font-bold"
|
|
1140
|
-
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span",
|
|
1160
|
+
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span", tt, "*")) : i("", !0)], 8, et)) : i("", !0),
|
|
1141
1161
|
T.value ? (b(), r(O(B), p({ key: 1 }, M.value, {
|
|
1142
1162
|
id: _.value,
|
|
1143
1163
|
"model-value": R(e.modelValue),
|
|
@@ -1166,7 +1186,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1166
1186
|
"aria-invalid",
|
|
1167
1187
|
"aria-describedby",
|
|
1168
1188
|
"class"
|
|
1169
|
-
])) : (b(), r(O(
|
|
1189
|
+
])) : (b(), r(O(ne), p({ key: 2 }, M.value, {
|
|
1170
1190
|
"model-value": e.modelValue,
|
|
1171
1191
|
"input-id": _.value,
|
|
1172
1192
|
placeholder: e.placeholder,
|
|
@@ -1209,18 +1229,18 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1209
1229
|
id: v.value,
|
|
1210
1230
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
1211
1231
|
role: "alert"
|
|
1212
|
-
}, D(e.error), 9,
|
|
1232
|
+
}, D(e.error), 9, nt)) : i("", !0)
|
|
1213
1233
|
]));
|
|
1214
1234
|
}
|
|
1215
|
-
}),
|
|
1235
|
+
}), it = [
|
|
1216
1236
|
"disabled",
|
|
1217
1237
|
"aria-expanded",
|
|
1218
1238
|
"onClick"
|
|
1219
|
-
],
|
|
1239
|
+
], at = { class: "top-nav-bar__mobile-item-label" }, ot = {
|
|
1220
1240
|
key: 1,
|
|
1221
1241
|
class: "top-nav-bar__mobile-count",
|
|
1222
1242
|
"aria-hidden": "true"
|
|
1223
|
-
},
|
|
1243
|
+
}, st = /* @__PURE__ */ u({
|
|
1224
1244
|
name: "TopNavMobileTree",
|
|
1225
1245
|
__name: "TopNavMobileTree",
|
|
1226
1246
|
props: {
|
|
@@ -1293,14 +1313,14 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1293
1313
|
class: h(e.icon),
|
|
1294
1314
|
"aria-hidden": "true"
|
|
1295
1315
|
}, null, 2)) : i("", !0),
|
|
1296
|
-
o("span",
|
|
1297
|
-
p(e).length ? (b(), a("span",
|
|
1316
|
+
o("span", at, D(e.label), 1),
|
|
1317
|
+
p(e).length ? (b(), a("span", ot, D(p(e).length), 1)) : i("", !0),
|
|
1298
1318
|
p(e).length ? (b(), a("i", {
|
|
1299
1319
|
key: 2,
|
|
1300
1320
|
class: h(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open": g(e) }]),
|
|
1301
1321
|
"aria-hidden": "true"
|
|
1302
1322
|
}, null, 2)) : i("", !0)
|
|
1303
|
-
], 10,
|
|
1323
|
+
], 10, it), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
1304
1324
|
default: j(() => [p(e).length && g(e) ? (b(), r(u, {
|
|
1305
1325
|
key: 0,
|
|
1306
1326
|
items: p(e),
|
|
@@ -1318,178 +1338,178 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1318
1338
|
}, 1024)], 2))), 128))], 6);
|
|
1319
1339
|
};
|
|
1320
1340
|
}
|
|
1321
|
-
}),
|
|
1341
|
+
}), ct = ["aria-expanded"], lt = { class: "top-nav-bar__brand" }, ut = {
|
|
1322
1342
|
key: 1,
|
|
1323
1343
|
class: "top-nav-bar__brand-context-divider",
|
|
1324
1344
|
"aria-hidden": "true"
|
|
1325
|
-
},
|
|
1345
|
+
}, dt = {
|
|
1326
1346
|
key: 2,
|
|
1327
1347
|
class: "top-nav-bar__context"
|
|
1328
|
-
},
|
|
1348
|
+
}, ft = {
|
|
1329
1349
|
key: 0,
|
|
1330
1350
|
class: "top-nav-bar__client"
|
|
1331
|
-
},
|
|
1351
|
+
}, pt = ["src"], mt = {
|
|
1332
1352
|
key: 1,
|
|
1333
1353
|
class: "top-nav-bar__client-logo"
|
|
1334
|
-
},
|
|
1354
|
+
}, ht = {
|
|
1335
1355
|
key: 2,
|
|
1336
1356
|
class: "top-nav-bar__client-details"
|
|
1337
|
-
},
|
|
1357
|
+
}, gt = { class: "top-nav-bar__client-name" }, _t = {
|
|
1338
1358
|
key: 0,
|
|
1339
1359
|
class: "top-nav-bar__client-subtitle"
|
|
1340
|
-
},
|
|
1360
|
+
}, vt = { class: "top-nav-bar__desktop-tools" }, yt = {
|
|
1341
1361
|
key: 0,
|
|
1342
1362
|
class: "top-nav-bar__search-shell",
|
|
1343
1363
|
"data-top-nav-search": ""
|
|
1344
|
-
},
|
|
1364
|
+
}, bt = ["value", "placeholder"], xt = ["aria-label"], St = {
|
|
1345
1365
|
key: 1,
|
|
1346
1366
|
class: "top-nav-bar__search-results",
|
|
1347
1367
|
role: "menu"
|
|
1348
|
-
},
|
|
1368
|
+
}, Ct = { class: "top-nav-bar__search-results-scroll" }, wt = ["disabled", "onClick"], Tt = {
|
|
1349
1369
|
key: 0,
|
|
1350
1370
|
class: "top-nav-bar__empty"
|
|
1351
|
-
},
|
|
1371
|
+
}, Et = {
|
|
1352
1372
|
key: 1,
|
|
1353
1373
|
class: "top-nav-bar__quick-actions",
|
|
1354
1374
|
"data-top-nav-actions": ""
|
|
1355
|
-
},
|
|
1375
|
+
}, Dt = [
|
|
1356
1376
|
"disabled",
|
|
1357
1377
|
"aria-label",
|
|
1358
1378
|
"aria-pressed",
|
|
1359
1379
|
"title",
|
|
1360
1380
|
"onClick"
|
|
1361
|
-
],
|
|
1381
|
+
], Ot = ["aria-expanded"], kt = {
|
|
1362
1382
|
key: 0,
|
|
1363
1383
|
class: "top-nav-bar__popover-layer top-nav-bar__actions-layer"
|
|
1364
|
-
},
|
|
1384
|
+
}, At = {
|
|
1365
1385
|
class: "top-nav-bar__small-panel",
|
|
1366
1386
|
role: "menu"
|
|
1367
|
-
},
|
|
1387
|
+
}, jt = ["disabled", "onClick"], Mt = {
|
|
1368
1388
|
key: 2,
|
|
1369
1389
|
class: "top-nav-bar__custom-actions"
|
|
1370
|
-
},
|
|
1390
|
+
}, Nt = ["aria-haspopup", "aria-expanded"], Pt = ["src"], Ft = {
|
|
1371
1391
|
key: 1,
|
|
1372
1392
|
class: "top-nav-bar__user-avatar"
|
|
1373
|
-
},
|
|
1393
|
+
}, It = {
|
|
1374
1394
|
key: 2,
|
|
1375
1395
|
class: "top-nav-bar__user-details"
|
|
1376
|
-
},
|
|
1396
|
+
}, Lt = { class: "top-nav-bar__user-name" }, Rt = {
|
|
1377
1397
|
key: 0,
|
|
1378
1398
|
class: "top-nav-bar__user-subtitle"
|
|
1379
|
-
},
|
|
1399
|
+
}, zt = {
|
|
1380
1400
|
key: 0,
|
|
1381
1401
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
1382
1402
|
"aria-hidden": "true"
|
|
1383
|
-
},
|
|
1403
|
+
}, Bt = {
|
|
1384
1404
|
key: 0,
|
|
1385
1405
|
class: "top-nav-bar__popover-layer top-nav-bar__user-layer"
|
|
1386
|
-
},
|
|
1406
|
+
}, Vt = {
|
|
1387
1407
|
class: "top-nav-bar__small-panel top-nav-bar__user-dropdown",
|
|
1388
1408
|
role: "menu"
|
|
1389
|
-
},
|
|
1409
|
+
}, Ht = {
|
|
1390
1410
|
key: 0,
|
|
1391
1411
|
class: "top-nav-bar__user-separator",
|
|
1392
1412
|
role: "separator"
|
|
1393
|
-
},
|
|
1413
|
+
}, Ut = ["disabled", "onClick"], Wt = {
|
|
1394
1414
|
class: "top-nav-bar__breadcrumbs",
|
|
1395
1415
|
"aria-label": "Breadcrumb"
|
|
1396
|
-
},
|
|
1416
|
+
}, Gt = {
|
|
1397
1417
|
key: 0,
|
|
1398
1418
|
class: "top-nav-bar__separator top-nav-bar__desktop-navigation-separator",
|
|
1399
1419
|
"aria-hidden": "true"
|
|
1400
|
-
},
|
|
1420
|
+
}, Kt = ["aria-expanded"], qt = {
|
|
1401
1421
|
key: 0,
|
|
1402
1422
|
class: "top-nav-bar__menu-layer"
|
|
1403
|
-
},
|
|
1423
|
+
}, Jt = {
|
|
1404
1424
|
class: "top-nav-bar__menu-panel",
|
|
1405
1425
|
role: "menu"
|
|
1406
|
-
},
|
|
1426
|
+
}, Yt = { class: "top-nav-bar__section-list" }, Xt = [
|
|
1407
1427
|
"aria-haspopup",
|
|
1408
1428
|
"aria-expanded",
|
|
1409
1429
|
"onMouseenter",
|
|
1410
1430
|
"onClick"
|
|
1411
|
-
],
|
|
1431
|
+
], Zt = { class: "top-nav-bar__menu-label" }, Qt = {
|
|
1412
1432
|
key: 1,
|
|
1413
1433
|
class: "top-nav-bar__item-count"
|
|
1414
|
-
},
|
|
1434
|
+
}, $t = {
|
|
1415
1435
|
key: 2,
|
|
1416
1436
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1417
1437
|
"aria-hidden": "true"
|
|
1418
|
-
},
|
|
1438
|
+
}, en = {
|
|
1419
1439
|
key: 0,
|
|
1420
1440
|
class: "top-nav-bar__submenu-region"
|
|
1421
|
-
},
|
|
1441
|
+
}, tn = [
|
|
1422
1442
|
"disabled",
|
|
1423
1443
|
"aria-haspopup",
|
|
1424
1444
|
"aria-expanded",
|
|
1425
1445
|
"onMouseenter",
|
|
1426
1446
|
"onClick"
|
|
1427
|
-
],
|
|
1447
|
+
], nn = { class: "top-nav-bar__menu-label" }, rn = {
|
|
1428
1448
|
key: 1,
|
|
1429
1449
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1430
1450
|
"aria-hidden": "true"
|
|
1431
|
-
},
|
|
1451
|
+
}, an = ["onMouseenter"], on = {
|
|
1432
1452
|
key: 0,
|
|
1433
1453
|
class: "top-nav-bar__crumb top-nav-bar__crumb--static"
|
|
1434
|
-
},
|
|
1454
|
+
}, sn = ["aria-expanded", "onClick"], cn = {
|
|
1435
1455
|
key: 2,
|
|
1436
1456
|
class: "top-nav-bar__menu-layer"
|
|
1437
|
-
},
|
|
1457
|
+
}, ln = {
|
|
1438
1458
|
class: "top-nav-bar__menu-panel top-nav-bar__breadcrumb-panel",
|
|
1439
1459
|
role: "menu"
|
|
1440
|
-
},
|
|
1460
|
+
}, un = [
|
|
1441
1461
|
"disabled",
|
|
1442
1462
|
"onMouseenter",
|
|
1443
1463
|
"onClick"
|
|
1444
|
-
],
|
|
1464
|
+
], dn = { class: "top-nav-bar__menu-label" }, fn = {
|
|
1445
1465
|
key: 1,
|
|
1446
1466
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1447
1467
|
"aria-hidden": "true"
|
|
1448
|
-
},
|
|
1468
|
+
}, pn = ["onClick"], mn = ["title"], hn = { class: "top-nav-bar__current-label" }, gn = ["aria-label", "aria-pressed"], _n = { class: "top-nav-bar__breadcrumb-actions" }, vn = ["aria-expanded"], yn = {
|
|
1449
1469
|
key: 0,
|
|
1450
1470
|
class: "top-nav-bar__popover-layer top-nav-bar__favorites-layer"
|
|
1451
|
-
},
|
|
1471
|
+
}, bn = {
|
|
1452
1472
|
class: "top-nav-bar__small-panel top-nav-bar__favorites-panel",
|
|
1453
1473
|
role: "menu"
|
|
1454
|
-
},
|
|
1474
|
+
}, xn = ["disabled", "onClick"], Sn = { class: "top-nav-bar__favorites-title" }, Cn = {
|
|
1455
1475
|
key: 0,
|
|
1456
1476
|
class: "top-nav-bar__favorites-separator"
|
|
1457
|
-
},
|
|
1477
|
+
}, wn = {
|
|
1458
1478
|
key: 0,
|
|
1459
1479
|
class: "top-nav-bar__favorites-row top-nav-bar__desktop-only"
|
|
1460
|
-
},
|
|
1480
|
+
}, Tn = { class: "top-nav-bar__favorites-title" }, En = { class: "top-nav-bar__favorites-list" }, Dn = {
|
|
1461
1481
|
key: 0,
|
|
1462
1482
|
class: "top-nav-bar__favorites-separator",
|
|
1463
1483
|
"aria-hidden": "true"
|
|
1464
|
-
},
|
|
1484
|
+
}, On = ["disabled", "onClick"], kn = { class: "top-nav-bar__mobile-menu" }, An = { class: "top-nav-bar__mobile-menu-header" }, jn = { class: "top-nav-bar__drawer-brand" }, Mn = ["onClick"], Nn = {
|
|
1465
1485
|
key: 0,
|
|
1466
1486
|
class: "top-nav-bar__drawer-tools"
|
|
1467
|
-
},
|
|
1487
|
+
}, Pn = { class: "top-nav-bar__drawer-search" }, Fn = ["value", "placeholder"], In = ["disabled", "onClick"], Ln = { class: "top-nav-bar__mobile-menu-scroll" }, Rn = { class: "top-nav-bar__mobile-menu-track" }, zn = {
|
|
1468
1488
|
key: 0,
|
|
1469
1489
|
class: "top-nav-bar__mobile-favorites"
|
|
1470
|
-
},
|
|
1490
|
+
}, Bn = ["aria-expanded"], Vn = { class: "top-nav-bar__mobile-item-label" }, Hn = { class: "top-nav-bar__mobile-count" }, Un = {
|
|
1471
1491
|
key: 1,
|
|
1472
1492
|
class: "top-nav-bar__drawer-empty"
|
|
1473
|
-
},
|
|
1493
|
+
}, Wn = {
|
|
1474
1494
|
key: 1,
|
|
1475
1495
|
class: "top-nav-bar__mobile-footer"
|
|
1476
|
-
},
|
|
1496
|
+
}, Gn = ["aria-haspopup", "aria-expanded"], Kn = ["src"], qn = {
|
|
1477
1497
|
key: 1,
|
|
1478
1498
|
class: "top-nav-bar__user-avatar"
|
|
1479
|
-
},
|
|
1499
|
+
}, Jn = {
|
|
1480
1500
|
key: 2,
|
|
1481
1501
|
class: "top-nav-bar__user-details"
|
|
1482
|
-
},
|
|
1502
|
+
}, Yn = { class: "top-nav-bar__user-name" }, Xn = {
|
|
1483
1503
|
key: 0,
|
|
1484
1504
|
class: "top-nav-bar__drawer-user-context"
|
|
1485
|
-
},
|
|
1505
|
+
}, Zn = { class: "top-nav-bar__drawer-user-client" }, Qn = {
|
|
1486
1506
|
key: 0,
|
|
1487
1507
|
class: "top-nav-bar__drawer-user-client-subtitle"
|
|
1488
|
-
},
|
|
1508
|
+
}, $n = {
|
|
1489
1509
|
key: 3,
|
|
1490
1510
|
class: "pi pi-chevron-down top-nav-bar__mobile-chevron",
|
|
1491
1511
|
"aria-hidden": "true"
|
|
1492
|
-
},
|
|
1512
|
+
}, er = 120, tr = 24, nr = /* @__PURE__ */ u({
|
|
1493
1513
|
__name: "TopNavBar",
|
|
1494
1514
|
props: {
|
|
1495
1515
|
sections: { default: () => [] },
|
|
@@ -1556,12 +1576,12 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1556
1576
|
"user-click"
|
|
1557
1577
|
],
|
|
1558
1578
|
setup(s, { expose: u, emit: d }) {
|
|
1559
|
-
let f = s, p = d, g = te(), x = S(null), T = S(null), E = S(null), ee = S(null), k = S(null), M = S(null), P = S(f.mobileOpen ?? !1), F = S(!1), I = S(null), L = S([]), R = S(null), z = S([]), B = S(!1), V = S(!1),
|
|
1579
|
+
let f = s, p = d, g = te(), x = S(null), T = S(null), E = S(null), ee = S(null), k = S(null), M = S(null), P = S(f.mobileOpen ?? !1), F = S(!1), I = S(null), L = S([]), R = S(null), z = S([]), B = S(!1), V = S(!1), ne = S(!1), ie = S(null), U = S(!1), W = S(!1), G = S(!1), K = S(!0), ae = S(!1), q = S(f.searchValue ?? ""), J = S(!1), oe = S(!1), se = S(!1), Y = S({
|
|
1560
1580
|
collapseActions: !1,
|
|
1561
1581
|
searchIconOnly: !1,
|
|
1562
1582
|
hideUserName: !1,
|
|
1563
1583
|
hideContextDetails: !1
|
|
1564
|
-
}),
|
|
1584
|
+
}), ce, le, X, ue, de = 0;
|
|
1565
1585
|
function fe(e) {
|
|
1566
1586
|
return (e.children ?? []).filter(Boolean).map((e) => {
|
|
1567
1587
|
let t = fe(e);
|
|
@@ -1591,7 +1611,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1591
1611
|
}
|
|
1592
1612
|
let ge = n(() => {
|
|
1593
1613
|
if (f.searchResults !== void 0) return f.searchResults;
|
|
1594
|
-
let e = he(
|
|
1614
|
+
let e = he(q.value.trim());
|
|
1595
1615
|
return e ? me.value.filter((t) => he(t.label).includes(e)) : me.value;
|
|
1596
1616
|
});
|
|
1597
1617
|
function _e(e, t) {
|
|
@@ -1603,7 +1623,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1603
1623
|
}];
|
|
1604
1624
|
}) : e;
|
|
1605
1625
|
}
|
|
1606
|
-
let ve = n(() => _e(Z.value, he(
|
|
1626
|
+
let ve = n(() => _e(Z.value, he(q.value.trim())));
|
|
1607
1627
|
function ye(e, t, n = []) {
|
|
1608
1628
|
for (let r of e) {
|
|
1609
1629
|
let e = [...n, r];
|
|
@@ -1689,7 +1709,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1689
1709
|
}
|
|
1690
1710
|
e.push(t);
|
|
1691
1711
|
}), e.at(-1)?.separator && e.pop(), e;
|
|
1692
|
-
}), Me = n(() => !!g["user-menu"] || je.value.some((e) => !e.separator)), Ne = n(() => !!f.user || !!g.user), Pe = n(() => !!(f.client || g.context || g.scope || g.client || g["context-compact"])), Fe = n(() => f.favoriteItems.filter(Boolean)), Ie = n(() =>
|
|
1712
|
+
}), Me = n(() => !!g["user-menu"] || je.value.some((e) => !e.separator)), Ne = n(() => !!f.user || !!g.user), Pe = n(() => !!(f.client || g.context || g.scope || g.client || g["context-compact"])), Fe = n(() => f.favoriteItems.filter(Boolean)), Ie = n(() => G.value || !K.value), Le = n(() => Fe.value.length > 0 && !Ie.value), Re = n(() => Z.value.length > 0 || f.searchable || Ae.value.length > 0 || Ne.value || !!(g["drawer-menu"] || g["drawer-actions"] || g["drawer-footer"])), ze = n(() => f.user ? f.user.initials ? f.user.initials : f.user.name.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toLocaleUpperCase("pt-BR")).join("") : ""), Be = n(() => je.value.map((e) => e.separator ? { separator: !0 } : {
|
|
1693
1713
|
label: e.label,
|
|
1694
1714
|
icon: e.icon,
|
|
1695
1715
|
disabled: e.disabled,
|
|
@@ -1702,20 +1722,20 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1702
1722
|
}), He = n(() => f.client ? f.client.initials ? f.client.initials : f.client.name.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toLocaleUpperCase("pt-BR")).join("") : "");
|
|
1703
1723
|
function Ue() {
|
|
1704
1724
|
let e = Math.max(0, window.scrollY);
|
|
1705
|
-
if (!
|
|
1706
|
-
|
|
1725
|
+
if (!G.value && e >= er) {
|
|
1726
|
+
G.value = !0;
|
|
1707
1727
|
return;
|
|
1708
1728
|
}
|
|
1709
|
-
|
|
1729
|
+
G.value && e <= tr && (G.value = !1);
|
|
1710
1730
|
}
|
|
1711
1731
|
function We() {
|
|
1712
1732
|
let e = E.value, t = ee.value;
|
|
1713
|
-
!e || !t || (
|
|
1733
|
+
!e || !t || (K.value = t.scrollWidth <= e.clientWidth + 1);
|
|
1714
1734
|
}
|
|
1715
1735
|
function Ge() {
|
|
1716
1736
|
ue = window.requestAnimationFrame(() => {
|
|
1717
1737
|
ue = window.requestAnimationFrame(() => {
|
|
1718
|
-
|
|
1738
|
+
ae.value = !0;
|
|
1719
1739
|
});
|
|
1720
1740
|
});
|
|
1721
1741
|
}
|
|
@@ -1729,17 +1749,17 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1729
1749
|
e.disabled || (e.kind === "aia" ? p("toggle-aia") : e.kind === "support" ? p("open-support") : p("action", e), B.value = !1, t && (P.value = !1));
|
|
1730
1750
|
}
|
|
1731
1751
|
function qe(e, t = !1) {
|
|
1732
|
-
e.disabled || e.separator || (p("user-action", e), V.value = !1,
|
|
1752
|
+
e.disabled || e.separator || (p("user-action", e), V.value = !1, ne.value = !1, t && (P.value = !1));
|
|
1733
1753
|
}
|
|
1734
1754
|
function Je(e) {
|
|
1735
1755
|
if (!Me.value) {
|
|
1736
1756
|
p("user-click", f.user);
|
|
1737
1757
|
return;
|
|
1738
1758
|
}
|
|
1739
|
-
|
|
1759
|
+
ie.value?.toggle(e);
|
|
1740
1760
|
}
|
|
1741
1761
|
function Ye(e) {
|
|
1742
|
-
|
|
1762
|
+
q.value = e, p("update:searchValue", e), p("search", e);
|
|
1743
1763
|
}
|
|
1744
1764
|
function Xe() {
|
|
1745
1765
|
Ye(""), m(() => P.value ? M.value?.focus() : k.value?.focus());
|
|
@@ -1787,10 +1807,10 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1787
1807
|
function it(e, t, n) {
|
|
1788
1808
|
nt(z, e, t, n);
|
|
1789
1809
|
}
|
|
1790
|
-
function
|
|
1810
|
+
function at(e) {
|
|
1791
1811
|
Q() && (R.value = e, z.value = []);
|
|
1792
1812
|
}
|
|
1793
|
-
function
|
|
1813
|
+
function ot() {
|
|
1794
1814
|
!Q() || window.innerWidth < 1024 || (R.value = null, z.value = []);
|
|
1795
1815
|
}
|
|
1796
1816
|
function nr(e) {
|
|
@@ -1801,18 +1821,18 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1801
1821
|
R.value = R.value === e ? null : e, z.value = [];
|
|
1802
1822
|
}
|
|
1803
1823
|
function rr() {
|
|
1804
|
-
F.value = !1, I.value = null, L.value = [], R.value = null, z.value = [], B.value = !1, V.value = !1,
|
|
1824
|
+
F.value = !1, I.value = null, L.value = [], R.value = null, z.value = [], B.value = !1, V.value = !1, U.value = !1, J.value = !1;
|
|
1805
1825
|
}
|
|
1806
1826
|
async function ir() {
|
|
1807
1827
|
if (typeof window < "u" && window.innerWidth < 1024) {
|
|
1808
1828
|
P.value = !0, await m(), M.value?.focus();
|
|
1809
1829
|
return;
|
|
1810
1830
|
}
|
|
1811
|
-
|
|
1831
|
+
oe.value = !0, J.value = !0, await m(), k.value?.focus(), cr();
|
|
1812
1832
|
}
|
|
1813
1833
|
function ar() {
|
|
1814
1834
|
window.setTimeout(() => {
|
|
1815
|
-
|
|
1835
|
+
J.value = !1, Y.value.searchIconOnly && !q.value.trim() && (oe.value = !1, cr());
|
|
1816
1836
|
}, 150);
|
|
1817
1837
|
}
|
|
1818
1838
|
function or() {
|
|
@@ -1821,7 +1841,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1821
1841
|
async function sr() {
|
|
1822
1842
|
if (typeof window > "u" || !T.value) return;
|
|
1823
1843
|
let e = ++de, t = or();
|
|
1824
|
-
|
|
1844
|
+
se.value = t < 1024;
|
|
1825
1845
|
let n = {
|
|
1826
1846
|
collapseActions: !1,
|
|
1827
1847
|
searchIconOnly: !1,
|
|
@@ -1829,10 +1849,10 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1829
1849
|
hideContextDetails: !1
|
|
1830
1850
|
};
|
|
1831
1851
|
if (t < 1024) {
|
|
1832
|
-
|
|
1852
|
+
Y.value = n, oe.value = !1;
|
|
1833
1853
|
return;
|
|
1834
1854
|
}
|
|
1835
|
-
if (
|
|
1855
|
+
if (Y.value = {
|
|
1836
1856
|
collapseActions: t < 1440,
|
|
1837
1857
|
searchIconOnly: t < 1320,
|
|
1838
1858
|
hideUserName: t < 1180,
|
|
@@ -1845,15 +1865,15 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1845
1865
|
]) {
|
|
1846
1866
|
let n = T.value;
|
|
1847
1867
|
if (!n || n.scrollWidth <= n.clientWidth + 1) break;
|
|
1848
|
-
if (
|
|
1849
|
-
...
|
|
1868
|
+
if (Y.value = {
|
|
1869
|
+
...Y.value,
|
|
1850
1870
|
[t]: !0
|
|
1851
1871
|
}, await m(), e !== de) return;
|
|
1852
1872
|
}
|
|
1853
1873
|
}
|
|
1854
1874
|
function cr() {
|
|
1855
|
-
typeof window > "u" || (
|
|
1856
|
-
|
|
1875
|
+
typeof window > "u" || (X !== void 0 && window.cancelAnimationFrame(X), X = window.requestAnimationFrame(() => {
|
|
1876
|
+
X = void 0, sr();
|
|
1857
1877
|
}));
|
|
1858
1878
|
}
|
|
1859
1879
|
function lr(e) {
|
|
@@ -1863,7 +1883,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1863
1883
|
rr();
|
|
1864
1884
|
return;
|
|
1865
1885
|
}
|
|
1866
|
-
t.closest("[data-top-nav-navigation]") || (F.value = !1, I.value = null, L.value = []), t.closest("[data-top-nav-breadcrumb]") || (R.value = null, z.value = []), t.closest("[data-top-nav-actions]") || (B.value = !1), t.closest("[data-top-nav-user]") || (V.value = !1), t.closest("[data-top-nav-favorites]") || (
|
|
1886
|
+
t.closest("[data-top-nav-navigation]") || (F.value = !1, I.value = null, L.value = []), t.closest("[data-top-nav-breadcrumb]") || (R.value = null, z.value = []), t.closest("[data-top-nav-actions]") || (B.value = !1), t.closest("[data-top-nav-user]") || (V.value = !1), t.closest("[data-top-nav-favorites]") || (U.value = !1), t.closest("[data-top-nav-search]") || (J.value = !1);
|
|
1867
1887
|
}
|
|
1868
1888
|
}
|
|
1869
1889
|
function ur(e) {
|
|
@@ -1872,11 +1892,11 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1872
1892
|
return;
|
|
1873
1893
|
}
|
|
1874
1894
|
if (e.key === "Escape") {
|
|
1875
|
-
if (
|
|
1876
|
-
|
|
1895
|
+
if (ne.value) {
|
|
1896
|
+
ie.value?.hide();
|
|
1877
1897
|
return;
|
|
1878
1898
|
}
|
|
1879
|
-
P.value &&= !1, rr(),
|
|
1899
|
+
P.value &&= !1, rr(), Y.value.searchIconOnly && !q.value.trim() && (oe.value = !1);
|
|
1880
1900
|
}
|
|
1881
1901
|
}
|
|
1882
1902
|
function dr() {
|
|
@@ -1892,13 +1912,13 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1892
1912
|
}
|
|
1893
1913
|
function fr() {
|
|
1894
1914
|
if (Q()) {
|
|
1895
|
-
|
|
1915
|
+
U.value = !0;
|
|
1896
1916
|
return;
|
|
1897
1917
|
}
|
|
1898
|
-
|
|
1918
|
+
U.value = !U.value;
|
|
1899
1919
|
}
|
|
1900
1920
|
return A(() => f.searchValue, (e) => {
|
|
1901
|
-
e !== void 0 && e !==
|
|
1921
|
+
e !== void 0 && e !== q.value && (q.value = e);
|
|
1902
1922
|
}), A(() => f.mobileOpen, (e) => {
|
|
1903
1923
|
e !== void 0 && e !== P.value && (P.value = e);
|
|
1904
1924
|
}), A(P, (e) => p("update:mobileOpen", e)), A([
|
|
@@ -1906,11 +1926,11 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1906
1926
|
() => f.user,
|
|
1907
1927
|
Ae
|
|
1908
1928
|
], () => m(cr), { deep: !0 }), A(Fe, () => m(We), { deep: !0 }), y(() => {
|
|
1909
|
-
document.addEventListener("keydown", ur), document.addEventListener("pointerdown", lr), window.addEventListener("resize", cr), window.visualViewport?.addEventListener("resize", cr), window.addEventListener("resize", We), window.addEventListener("scroll", Ue, { passive: !0 }), typeof ResizeObserver < "u" && (
|
|
1929
|
+
document.addEventListener("keydown", ur), document.addEventListener("pointerdown", lr), window.addEventListener("resize", cr), window.visualViewport?.addEventListener("resize", cr), window.addEventListener("resize", We), window.addEventListener("scroll", Ue, { passive: !0 }), typeof ResizeObserver < "u" && (ce = new ResizeObserver(cr), T.value && ce.observe(T.value), le = new ResizeObserver(We), E.value && le.observe(E.value)), cr(), m(() => {
|
|
1910
1930
|
We(), Ue(), Ge();
|
|
1911
1931
|
});
|
|
1912
1932
|
}), v(() => {
|
|
1913
|
-
document.removeEventListener("keydown", ur), document.removeEventListener("pointerdown", lr), window.removeEventListener("resize", cr), window.visualViewport?.removeEventListener("resize", cr), window.removeEventListener("resize", We), window.removeEventListener("scroll", Ue),
|
|
1933
|
+
document.removeEventListener("keydown", ur), document.removeEventListener("pointerdown", lr), window.removeEventListener("resize", cr), window.visualViewport?.removeEventListener("resize", cr), window.removeEventListener("resize", We), window.removeEventListener("scroll", Ue), ce?.disconnect(), le?.disconnect(), X !== void 0 && window.cancelAnimationFrame(X), ue !== void 0 && window.cancelAnimationFrame(ue);
|
|
1914
1934
|
}), u({
|
|
1915
1935
|
close: rr,
|
|
1916
1936
|
closeDrawer: () => {
|
|
@@ -1930,7 +1950,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1930
1950
|
o("header", {
|
|
1931
1951
|
ref_key: "headerRef",
|
|
1932
1952
|
ref: T,
|
|
1933
|
-
class: h(["top-nav-bar__header", { "top-nav-bar__header--context-compact":
|
|
1953
|
+
class: h(["top-nav-bar__header", { "top-nav-bar__header--context-compact": Y.value.hideContextDetails }])
|
|
1934
1954
|
}, [
|
|
1935
1955
|
Re.value ? (b(), a("button", {
|
|
1936
1956
|
key: 0,
|
|
@@ -1942,33 +1962,33 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1942
1962
|
}, [...u[19] ||= [o("i", {
|
|
1943
1963
|
class: "pi pi-bars",
|
|
1944
1964
|
"aria-hidden": "true"
|
|
1945
|
-
}, null, -1)]], 8,
|
|
1946
|
-
o("div",
|
|
1947
|
-
Pe.value ? (b(), a("div",
|
|
1948
|
-
Pe.value ? (b(), a("div",
|
|
1965
|
+
}, null, -1)]], 8, ct)) : i("", !0),
|
|
1966
|
+
o("div", lt, [w(n.$slots, "brand", { compact: Y.value.hideContextDetails })]),
|
|
1967
|
+
Pe.value ? (b(), a("div", ut)) : i("", !0),
|
|
1968
|
+
Pe.value ? (b(), a("div", dt, [Y.value.hideContextDetails && n.$slots["context-compact"] ? w(n.$slots, "context-compact", {
|
|
1949
1969
|
client: s.client,
|
|
1950
1970
|
compact: !0
|
|
1951
1971
|
}, void 0, void 0, 0) : n.$slots.context ? w(n.$slots, "context", {
|
|
1952
1972
|
client: s.client,
|
|
1953
|
-
compact:
|
|
1973
|
+
compact: Y.value.hideContextDetails
|
|
1954
1974
|
}, void 0, void 0, 1) : n.$slots.scope ? w(n.$slots, "scope", {
|
|
1955
1975
|
client: s.client,
|
|
1956
|
-
compact:
|
|
1976
|
+
compact: Y.value.hideContextDetails
|
|
1957
1977
|
}, void 0, void 0, 2) : w(n.$slots, "client", {
|
|
1958
1978
|
client: s.client,
|
|
1959
|
-
compact:
|
|
1960
|
-
}, () => [s.client ? (b(), a("div",
|
|
1979
|
+
compact: Y.value.hideContextDetails
|
|
1980
|
+
}, () => [s.client ? (b(), a("div", ft, [s.client.logoUrl ? (b(), a("img", {
|
|
1961
1981
|
key: 0,
|
|
1962
1982
|
src: s.client.logoUrl,
|
|
1963
1983
|
alt: "",
|
|
1964
1984
|
class: "top-nav-bar__client-logo"
|
|
1965
|
-
}, null, 8,
|
|
1985
|
+
}, null, 8, pt)) : (b(), a("span", mt, D(He.value), 1)), Y.value.hideContextDetails ? i("", !0) : (b(), a("span", ht, [o("span", gt, D(s.client.name), 1), s.client.subtitle ? (b(), a("span", _t, D(s.client.subtitle), 1)) : i("", !0)]))])) : i("", !0)], void 0, 3)])) : i("", !0),
|
|
1966
1986
|
u[24] ||= o("div", {
|
|
1967
1987
|
class: "top-nav-bar__spacer",
|
|
1968
1988
|
"aria-hidden": "true"
|
|
1969
1989
|
}, null, -1),
|
|
1970
|
-
o("div",
|
|
1971
|
-
s.searchable ? (b(), a("div",
|
|
1990
|
+
o("div", vt, [
|
|
1991
|
+
s.searchable ? (b(), a("div", yt, [Y.value.searchIconOnly && !oe.value ? (b(), a("button", {
|
|
1972
1992
|
key: 0,
|
|
1973
1993
|
class: "top-nav-bar__square-button",
|
|
1974
1994
|
type: "button",
|
|
@@ -1980,7 +2000,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1980
2000
|
"aria-hidden": "true"
|
|
1981
2001
|
}, null, -1)]])) : (b(), a("div", {
|
|
1982
2002
|
key: 1,
|
|
1983
|
-
class: h(["top-nav-bar__search", { "top-nav-bar__search--expanded":
|
|
2003
|
+
class: h(["top-nav-bar__search", { "top-nav-bar__search--expanded": oe.value }])
|
|
1984
2004
|
}, [
|
|
1985
2005
|
u[22] ||= o("i", {
|
|
1986
2006
|
class: "pi pi-search",
|
|
@@ -1989,27 +2009,27 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1989
2009
|
o("input", {
|
|
1990
2010
|
ref_key: "searchInputRef",
|
|
1991
2011
|
ref: k,
|
|
1992
|
-
value:
|
|
2012
|
+
value: q.value,
|
|
1993
2013
|
type: "text",
|
|
1994
2014
|
role: "searchbox",
|
|
1995
2015
|
placeholder: s.searchPlaceholder,
|
|
1996
2016
|
"aria-label": "Pesquisar no menu",
|
|
1997
|
-
onFocus: u[1] ||= (e) =>
|
|
2017
|
+
onFocus: u[1] ||= (e) => J.value = !0,
|
|
1998
2018
|
onBlur: ar,
|
|
1999
2019
|
onInput: u[2] ||= (e) => Ye(e.target.value)
|
|
2000
|
-
}, null, 40,
|
|
2001
|
-
|
|
2020
|
+
}, null, 40, bt),
|
|
2021
|
+
q.value || Y.value.searchIconOnly && oe.value ? (b(), a("button", {
|
|
2002
2022
|
key: 0,
|
|
2003
2023
|
class: "top-nav-bar__search-clear",
|
|
2004
2024
|
type: "button",
|
|
2005
|
-
"aria-label":
|
|
2025
|
+
"aria-label": q.value ? "Limpar pesquisa" : "Fechar pesquisa",
|
|
2006
2026
|
onMousedown: u[3] ||= N(() => {}, ["prevent"]),
|
|
2007
|
-
onClick: u[4] ||= (e) =>
|
|
2027
|
+
onClick: u[4] ||= (e) => q.value ? Xe() : oe.value = !1
|
|
2008
2028
|
}, [...u[21] ||= [o("i", {
|
|
2009
2029
|
class: "pi pi-times",
|
|
2010
2030
|
"aria-hidden": "true"
|
|
2011
|
-
}, null, -1)]], 40,
|
|
2012
|
-
|
|
2031
|
+
}, null, -1)]], 40, xt)) : i("", !0),
|
|
2032
|
+
J.value ? (b(), a("div", St, [o("div", Ct, [w(n.$slots, "search-results", {
|
|
2013
2033
|
items: ge.value,
|
|
2014
2034
|
select: $
|
|
2015
2035
|
}, () => [(b(!0), a(e, null, C(ge.value, (e) => (b(), a("button", {
|
|
@@ -2024,9 +2044,9 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2024
2044
|
key: 0,
|
|
2025
2045
|
class: h(e.icon),
|
|
2026
2046
|
"aria-hidden": "true"
|
|
2027
|
-
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 40,
|
|
2047
|
+
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 40, wt))), 128)), ge.value.length ? i("", !0) : (b(), a("span", Tt, "Nenhum item encontrado."))])])])) : i("", !0)
|
|
2028
2048
|
], 2))])) : i("", !0),
|
|
2029
|
-
Ae.value.length ? (b(), a("div",
|
|
2049
|
+
Ae.value.length ? (b(), a("div", Et, [Y.value.collapseActions ? (b(), a(e, { key: 1 }, [o("button", {
|
|
2030
2050
|
class: "top-nav-bar__square-button",
|
|
2031
2051
|
type: "button",
|
|
2032
2052
|
"aria-label": "Mais ações",
|
|
@@ -2035,7 +2055,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2035
2055
|
}, [...u[23] ||= [o("i", {
|
|
2036
2056
|
class: "pi pi-ellipsis-h",
|
|
2037
2057
|
"aria-hidden": "true"
|
|
2038
|
-
}, null, -1)]], 8,
|
|
2058
|
+
}, null, -1)]], 8, Ot), B.value ? (b(), a("div", kt, [o("div", At, [(b(!0), a(e, null, C(Ae.value, (e) => (b(), a("button", {
|
|
2039
2059
|
key: e.id,
|
|
2040
2060
|
class: "top-nav-bar__menu-item",
|
|
2041
2061
|
type: "button",
|
|
@@ -2045,7 +2065,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2045
2065
|
}, [o("i", {
|
|
2046
2066
|
class: h(e.icon),
|
|
2047
2067
|
"aria-hidden": "true"
|
|
2048
|
-
}, null, 2), o("span", null, D(e.label), 1)], 8,
|
|
2068
|
+
}, null, 2), o("span", null, D(e.label), 1)], 8, jt))), 128))])])) : i("", !0)], 64)) : (b(!0), a(e, { key: 0 }, C(Ae.value, (e) => (b(), a("button", {
|
|
2049
2069
|
key: e.id,
|
|
2050
2070
|
class: h(["top-nav-bar__square-button", { "top-nav-bar__square-button--active": e.kind === "aia" && s.aiaActive }]),
|
|
2051
2071
|
type: "button",
|
|
@@ -2064,9 +2084,9 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2064
2084
|
key: 2,
|
|
2065
2085
|
class: h(e.icon),
|
|
2066
2086
|
"aria-hidden": "true"
|
|
2067
|
-
}, null, 2))], 10,
|
|
2068
|
-
n.$slots.actions ? (b(), a("div",
|
|
2069
|
-
compact:
|
|
2087
|
+
}, null, 2))], 10, Dt))), 128))])) : i("", !0),
|
|
2088
|
+
n.$slots.actions ? (b(), a("div", Mt, [w(n.$slots, "actions", {
|
|
2089
|
+
compact: Y.value.collapseActions,
|
|
2070
2090
|
close: rr
|
|
2071
2091
|
})])) : i("", !0),
|
|
2072
2092
|
Ne.value ? (b(), a("div", {
|
|
@@ -2083,16 +2103,16 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2083
2103
|
onClick: dr
|
|
2084
2104
|
}, [w(n.$slots, "user", {
|
|
2085
2105
|
user: s.user,
|
|
2086
|
-
compact:
|
|
2106
|
+
compact: Y.value.hideUserName
|
|
2087
2107
|
}, () => [s.user?.avatarUrl ? (b(), a("img", {
|
|
2088
2108
|
key: 0,
|
|
2089
2109
|
src: s.user.avatarUrl,
|
|
2090
2110
|
alt: "",
|
|
2091
2111
|
class: "top-nav-bar__user-avatar"
|
|
2092
|
-
}, null, 8,
|
|
2112
|
+
}, null, 8, Pt)) : (b(), a("span", Ft, D(ze.value), 1)), s.user && !Y.value.hideUserName ? (b(), a("span", It, [o("span", Lt, D(s.user.name), 1), s.user.subtitle ? (b(), a("span", Rt, D(s.user.subtitle), 1)) : i("", !0)])) : i("", !0)]), Me.value ? (b(), a("i", zt)) : i("", !0)], 8, Nt), Me.value && V.value ? (b(), a("div", Bt, [o("div", Vt, [w(n.$slots, "user-menu", {
|
|
2093
2113
|
items: je.value,
|
|
2094
2114
|
select: qe
|
|
2095
|
-
}, () => [(b(!0), a(e, null, C(je.value, (t) => (b(), a(e, { key: t.id }, [t.separator ? (b(), a("div",
|
|
2115
|
+
}, () => [(b(!0), a(e, null, C(je.value, (t) => (b(), a(e, { key: t.id }, [t.separator ? (b(), a("div", Ht)) : (b(), a("button", {
|
|
2096
2116
|
key: 1,
|
|
2097
2117
|
class: "top-nav-bar__menu-item",
|
|
2098
2118
|
type: "button",
|
|
@@ -2103,16 +2123,16 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2103
2123
|
key: 0,
|
|
2104
2124
|
class: h(t.icon),
|
|
2105
2125
|
"aria-hidden": "true"
|
|
2106
|
-
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8,
|
|
2126
|
+
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8, Ut))], 64))), 128))])])])) : i("", !0)], 32)) : i("", !0)
|
|
2107
2127
|
])
|
|
2108
2128
|
], 2),
|
|
2109
|
-
o("div",
|
|
2129
|
+
o("div", Wt, [
|
|
2110
2130
|
o("button", {
|
|
2111
2131
|
class: "top-nav-bar__crumb",
|
|
2112
2132
|
type: "button",
|
|
2113
2133
|
onClick: u[9] ||= (e) => $(s.homeItem)
|
|
2114
2134
|
}, [l(O(Ee), { icon: O(xe) }, null, 8, ["icon"]), o("span", null, D(s.homeItem.label), 1)]),
|
|
2115
|
-
Z.value.length ? (b(), a("span",
|
|
2135
|
+
Z.value.length ? (b(), a("span", Gt, "/")) : i("", !0),
|
|
2116
2136
|
Z.value.length ? (b(), a("div", {
|
|
2117
2137
|
key: 1,
|
|
2118
2138
|
class: "top-nav-bar__dropdown top-nav-bar__desktop-navigation",
|
|
@@ -2135,7 +2155,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2135
2155
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2136
2156
|
"aria-hidden": "true"
|
|
2137
2157
|
}, null, -1)
|
|
2138
|
-
], 8,
|
|
2158
|
+
], 8, Kt), F.value ? (b(), a("div", qt, [o("div", Jt, [o("div", Yt, [(b(!0), a(e, null, C(Z.value, (e) => (b(), a("button", {
|
|
2139
2159
|
key: e.id,
|
|
2140
2160
|
class: h(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--explored": e.children?.length && I.value === e.id }]),
|
|
2141
2161
|
type: "button",
|
|
@@ -2150,10 +2170,10 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2150
2170
|
class: h(e.icon),
|
|
2151
2171
|
"aria-hidden": "true"
|
|
2152
2172
|
}, null, 2)) : i("", !0),
|
|
2153
|
-
o("span",
|
|
2154
|
-
e.children?.length ? (b(), a("span",
|
|
2155
|
-
e.children?.length ? (b(), a("i",
|
|
2156
|
-
], 42,
|
|
2173
|
+
o("span", Zt, D(e.label), 1),
|
|
2174
|
+
e.children?.length ? (b(), a("span", Qt, D(e.children.length), 1)) : i("", !0),
|
|
2175
|
+
e.children?.length ? (b(), a("i", $t)) : i("", !0)
|
|
2176
|
+
], 42, Xt))), 128))]), Te.value ? (b(), a("div", en, [(b(!0), a(e, null, C(Oe.value, (t, n) => (b(), a("div", {
|
|
2157
2177
|
key: `navigation-level-${n}`,
|
|
2158
2178
|
class: h(["top-nav-bar__cascade-level", { "top-nav-bar__section-items": n === 0 }]),
|
|
2159
2179
|
role: "menu"
|
|
@@ -2176,9 +2196,9 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2176
2196
|
class: h(e.icon),
|
|
2177
2197
|
"aria-hidden": "true"
|
|
2178
2198
|
}, null, 2)) : i("", !0),
|
|
2179
|
-
o("span",
|
|
2180
|
-
e.children?.length ? (b(), a("i",
|
|
2181
|
-
], 42,
|
|
2199
|
+
o("span", nn, D(e.label), 1),
|
|
2200
|
+
e.children?.length ? (b(), a("i", rn)) : i("", !0)
|
|
2201
|
+
], 42, tn))), 128))]))), 128))], 2))), 128))])) : i("", !0)])])) : i("", !0)], 32)) : i("", !0),
|
|
2182
2202
|
(b(!0), a(e, null, C(Ce.value, (t, n) => (b(), a(e, { key: t.id }, [o("span", {
|
|
2183
2203
|
class: h(["top-nav-bar__separator", { "top-nav-bar__separator--current": !t.to && n === Ce.value.length - 1 }]),
|
|
2184
2204
|
"aria-hidden": "true"
|
|
@@ -2186,9 +2206,9 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2186
2206
|
key: 0,
|
|
2187
2207
|
class: "top-nav-bar__dropdown top-nav-bar__breadcrumb-dropdown",
|
|
2188
2208
|
"data-top-nav-breadcrumb": "",
|
|
2189
|
-
onMouseenter: (e) => !
|
|
2190
|
-
onMouseleave: u[10] ||= (e) => !
|
|
2191
|
-
}, [
|
|
2209
|
+
onMouseenter: (e) => !se.value && at(t.id),
|
|
2210
|
+
onMouseleave: u[10] ||= (e) => !se.value && ot()
|
|
2211
|
+
}, [se.value ? (b(), a("span", on, D(t.label), 1)) : (b(), a("button", {
|
|
2192
2212
|
key: 1,
|
|
2193
2213
|
class: "top-nav-bar__crumb",
|
|
2194
2214
|
type: "button",
|
|
@@ -2198,7 +2218,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2198
2218
|
}, [o("span", null, D(t.label), 1), u[27] ||= o("i", {
|
|
2199
2219
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2200
2220
|
"aria-hidden": "true"
|
|
2201
|
-
}, null, -1)], 8,
|
|
2221
|
+
}, null, -1)], 8, sn)), !se.value && R.value === t.id ? (b(), a("div", cn, [o("div", ln, [(b(!0), a(e, null, C(De(we(t)?.children ?? [], z.value), (n, r) => (b(), a("div", {
|
|
2202
2222
|
key: `breadcrumb-${t.id}-${r}`,
|
|
2203
2223
|
class: h(["top-nav-bar__cascade-level", { "top-nav-bar__breadcrumb-main-items": r === 0 }])
|
|
2204
2224
|
}, [(b(!0), a(e, null, C(ke(n), (n, s) => (b(), a("div", {
|
|
@@ -2218,18 +2238,18 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2218
2238
|
class: h(e.icon),
|
|
2219
2239
|
"aria-hidden": "true"
|
|
2220
2240
|
}, null, 2)) : i("", !0),
|
|
2221
|
-
o("span",
|
|
2222
|
-
e.children?.length ? (b(), a("i",
|
|
2223
|
-
], 42,
|
|
2241
|
+
o("span", dn, D(e.label), 1),
|
|
2242
|
+
e.children?.length ? (b(), a("i", fn)) : i("", !0)
|
|
2243
|
+
], 42, un))), 128))]))), 128))], 2))), 128))])])) : i("", !0)], 40, an)) : t.to ? (b(), a("button", {
|
|
2224
2244
|
key: 1,
|
|
2225
2245
|
class: "top-nav-bar__crumb",
|
|
2226
2246
|
type: "button",
|
|
2227
2247
|
onClick: (e) => $(t)
|
|
2228
|
-
}, D(t.label), 9,
|
|
2248
|
+
}, D(t.label), 9, pn)) : (b(), a("span", {
|
|
2229
2249
|
key: 2,
|
|
2230
2250
|
class: "top-nav-bar__current",
|
|
2231
2251
|
title: t.label
|
|
2232
|
-
}, [o("span",
|
|
2252
|
+
}, [o("span", hn, D(t.label), 1), s.showFavoriteToggle ? (b(), a("button", {
|
|
2233
2253
|
key: 0,
|
|
2234
2254
|
class: "top-nav-bar__favorite-toggle",
|
|
2235
2255
|
type: "button",
|
|
@@ -2239,22 +2259,22 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2239
2259
|
}, [o("i", {
|
|
2240
2260
|
class: h(s.favoriteActive ? "pi pi-star-fill" : "pi pi-star"),
|
|
2241
2261
|
"aria-hidden": "true"
|
|
2242
|
-
}, null, 2)], 8,
|
|
2243
|
-
o("div",
|
|
2262
|
+
}, null, 2)], 8, gn)) : i("", !0)], 8, mn))], 64))), 128)),
|
|
2263
|
+
o("div", _n, [l(t, {
|
|
2244
2264
|
name: "top-nav-bar-favorites-trigger",
|
|
2245
|
-
css:
|
|
2265
|
+
css: ae.value
|
|
2246
2266
|
}, {
|
|
2247
2267
|
default: j(() => [Ie.value && Fe.value.length ? (b(), a("div", {
|
|
2248
2268
|
key: 0,
|
|
2249
2269
|
class: "top-nav-bar__favorites-menu top-nav-bar__desktop-only",
|
|
2250
2270
|
"data-top-nav-favorites": "",
|
|
2251
|
-
onMouseenter: u[12] ||= (e) => Q() && (
|
|
2252
|
-
onMouseleave: u[13] ||= (e) => Q() && (
|
|
2271
|
+
onMouseenter: u[12] ||= (e) => Q() && (U.value = !0),
|
|
2272
|
+
onMouseleave: u[13] ||= (e) => Q() && (U.value = !1)
|
|
2253
2273
|
}, [o("button", {
|
|
2254
2274
|
class: "top-nav-bar__crumb",
|
|
2255
2275
|
type: "button",
|
|
2256
2276
|
"aria-haspopup": "menu",
|
|
2257
|
-
"aria-expanded":
|
|
2277
|
+
"aria-expanded": U.value,
|
|
2258
2278
|
onClick: fr
|
|
2259
2279
|
}, [
|
|
2260
2280
|
u[28] ||= o("i", {
|
|
@@ -2266,7 +2286,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2266
2286
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2267
2287
|
"aria-hidden": "true"
|
|
2268
2288
|
}, null, -1)
|
|
2269
|
-
], 8,
|
|
2289
|
+
], 8, vn), U.value ? (b(), a("div", yn, [o("div", bn, [(b(!0), a(e, null, C(Fe.value, (e) => (b(), a("button", {
|
|
2270
2290
|
key: e.id,
|
|
2271
2291
|
class: "top-nav-bar__menu-item",
|
|
2272
2292
|
type: "button",
|
|
@@ -2277,7 +2297,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2277
2297
|
key: 0,
|
|
2278
2298
|
class: h(e.icon),
|
|
2279
2299
|
"aria-hidden": "true"
|
|
2280
|
-
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 8,
|
|
2300
|
+
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 8, xn))), 128))])])) : i("", !0)], 32)) : i("", !0)]),
|
|
2281
2301
|
_: 1
|
|
2282
2302
|
}, 8, ["css"]), w(n.$slots, "breadcrumb-actions")])
|
|
2283
2303
|
]),
|
|
@@ -2290,25 +2310,25 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2290
2310
|
ref_key: "favoritesMeasureContentRef",
|
|
2291
2311
|
ref: ee,
|
|
2292
2312
|
class: "top-nav-bar__favorites-measure-content"
|
|
2293
|
-
}, [o("span",
|
|
2313
|
+
}, [o("span", Sn, [u[30] ||= o("i", {
|
|
2294
2314
|
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
2295
2315
|
"aria-hidden": "true"
|
|
2296
2316
|
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), (b(!0), a(e, null, C(Fe.value, (e, t) => (b(), a("span", {
|
|
2297
2317
|
key: `measure-${e.id}`,
|
|
2298
2318
|
class: "top-nav-bar__favorites-measure-item"
|
|
2299
|
-
}, [t > 0 ? (b(), a("span",
|
|
2319
|
+
}, [t > 0 ? (b(), a("span", Cn, "|")) : i("", !0), o("span", null, [e.icon ? (b(), a("i", {
|
|
2300
2320
|
key: 0,
|
|
2301
2321
|
class: h(e.icon),
|
|
2302
2322
|
"aria-hidden": "true"
|
|
2303
2323
|
}, null, 2)) : i("", !0), c(" " + D(e.label), 1)])]))), 128))], 512)], 512),
|
|
2304
2324
|
l(t, {
|
|
2305
2325
|
name: "top-nav-bar-favorites-row",
|
|
2306
|
-
css:
|
|
2326
|
+
css: ae.value
|
|
2307
2327
|
}, {
|
|
2308
|
-
default: j(() => [Le.value ? (b(), a("div",
|
|
2328
|
+
default: j(() => [Le.value ? (b(), a("div", wn, [o("span", Tn, [u[31] ||= o("i", {
|
|
2309
2329
|
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
2310
2330
|
"aria-hidden": "true"
|
|
2311
|
-
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), o("div",
|
|
2331
|
+
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), o("div", En, [(b(!0), a(e, null, C(Fe.value, (t, n) => (b(), a(e, { key: `row-${t.id}` }, [n > 0 ? (b(), a("span", Dn, "|")) : i("", !0), o("button", {
|
|
2312
2332
|
class: "top-nav-bar__favorites-row-item",
|
|
2313
2333
|
type: "button",
|
|
2314
2334
|
disabled: t.disabled,
|
|
@@ -2317,18 +2337,18 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2317
2337
|
key: 0,
|
|
2318
2338
|
class: h(t.icon),
|
|
2319
2339
|
"aria-hidden": "true"
|
|
2320
|
-
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8,
|
|
2340
|
+
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8, On)], 64))), 128))])])) : i("", !0)]),
|
|
2321
2341
|
_: 1
|
|
2322
2342
|
}, 8, ["css"]),
|
|
2323
|
-
l(O(
|
|
2343
|
+
l(O(re), {
|
|
2324
2344
|
visible: P.value,
|
|
2325
2345
|
"onUpdate:visible": u[16] ||= (e) => P.value = e,
|
|
2326
2346
|
position: "left",
|
|
2327
2347
|
class: "top-nav-bar__mobile-drawer",
|
|
2328
2348
|
style: _([Ve.value, { width: "var(--top-nav-drawer-width, min(22rem, calc(100vw - 1.5rem)))" }])
|
|
2329
2349
|
}, {
|
|
2330
|
-
container: j(({ closeCallback: d }) => [o("div",
|
|
2331
|
-
o("header",
|
|
2350
|
+
container: j(({ closeCallback: d }) => [o("div", kn, [
|
|
2351
|
+
o("header", An, [w(n.$slots, "drawer-header", { close: d }, () => [o("div", jn, [w(n.$slots, "drawer-brand", {}, () => [w(n.$slots, "brand", { compact: !1 })])]), o("button", {
|
|
2332
2352
|
class: "top-nav-bar__drawer-close top-nav-bar__square-button",
|
|
2333
2353
|
type: "button",
|
|
2334
2354
|
"aria-label": "Fechar navegação",
|
|
@@ -2336,12 +2356,12 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2336
2356
|
}, [...u[32] ||= [o("i", {
|
|
2337
2357
|
class: "pi pi-times",
|
|
2338
2358
|
"aria-hidden": "true"
|
|
2339
|
-
}, null, -1)]], 8,
|
|
2340
|
-
s.searchable || Ae.value.length || n.$slots["drawer-actions"] ? (b(), a("div",
|
|
2341
|
-
query:
|
|
2359
|
+
}, null, -1)]], 8, Mn)])]),
|
|
2360
|
+
s.searchable || Ae.value.length || n.$slots["drawer-actions"] ? (b(), a("div", Nn, [s.searchable ? w(n.$slots, "drawer-search", {
|
|
2361
|
+
query: q.value,
|
|
2342
2362
|
update: Ye,
|
|
2343
2363
|
clear: Xe
|
|
2344
|
-
}, () => [o("div",
|
|
2364
|
+
}, () => [o("div", Pn, [
|
|
2345
2365
|
u[34] ||= o("i", {
|
|
2346
2366
|
class: "pi pi-search",
|
|
2347
2367
|
"aria-hidden": "true"
|
|
@@ -2349,14 +2369,14 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2349
2369
|
o("input", {
|
|
2350
2370
|
ref_key: "mobileSearchInputRef",
|
|
2351
2371
|
ref: M,
|
|
2352
|
-
value:
|
|
2372
|
+
value: q.value,
|
|
2353
2373
|
type: "text",
|
|
2354
2374
|
role: "searchbox",
|
|
2355
2375
|
placeholder: s.searchPlaceholder,
|
|
2356
2376
|
"aria-label": "Pesquisar no menu",
|
|
2357
2377
|
onInput: u[14] ||= (e) => Ye(e.target.value)
|
|
2358
|
-
}, null, 40,
|
|
2359
|
-
|
|
2378
|
+
}, null, 40, Fn),
|
|
2379
|
+
q.value ? (b(), a("button", {
|
|
2360
2380
|
key: 0,
|
|
2361
2381
|
class: "top-nav-bar__search-clear",
|
|
2362
2382
|
type: "button",
|
|
@@ -2379,27 +2399,27 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2379
2399
|
}, [o("i", {
|
|
2380
2400
|
class: h(e.icon),
|
|
2381
2401
|
"aria-hidden": "true"
|
|
2382
|
-
}, null, 2), o("span", null, D(e.label), 1)], 10,
|
|
2383
|
-
o("div",
|
|
2402
|
+
}, null, 2), o("span", null, D(e.label), 1)], 10, In))), 128))])])) : i("", !0),
|
|
2403
|
+
o("div", Ln, [
|
|
2384
2404
|
w(n.$slots, "drawer-before-menu", { close: d }),
|
|
2385
|
-
o("div",
|
|
2405
|
+
o("div", Rn, [Fe.value.length ? (b(), a("section", zn, [o("button", {
|
|
2386
2406
|
class: "top-nav-bar__mobile-item",
|
|
2387
2407
|
type: "button",
|
|
2388
|
-
"aria-expanded":
|
|
2389
|
-
onClick: u[15] ||= (e) =>
|
|
2408
|
+
"aria-expanded": W.value,
|
|
2409
|
+
onClick: u[15] ||= (e) => W.value = !W.value
|
|
2390
2410
|
}, [
|
|
2391
2411
|
u[35] ||= o("i", {
|
|
2392
2412
|
class: "pi pi-star-fill top-nav-bar__accent",
|
|
2393
2413
|
"aria-hidden": "true"
|
|
2394
2414
|
}, null, -1),
|
|
2395
|
-
o("span",
|
|
2396
|
-
o("span",
|
|
2415
|
+
o("span", Vn, D(s.favoriteLabel), 1),
|
|
2416
|
+
o("span", Hn, D(Fe.value.length), 1),
|
|
2397
2417
|
o("i", {
|
|
2398
|
-
class: h(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open":
|
|
2418
|
+
class: h(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open": W.value }]),
|
|
2399
2419
|
"aria-hidden": "true"
|
|
2400
2420
|
}, null, 2)
|
|
2401
|
-
], 8,
|
|
2402
|
-
default: j(() => [
|
|
2421
|
+
], 8, Bn), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
2422
|
+
default: j(() => [W.value ? (b(), r(st, {
|
|
2403
2423
|
key: 0,
|
|
2404
2424
|
items: Fe.value,
|
|
2405
2425
|
"active-item-id": s.activeItemId,
|
|
@@ -2411,30 +2431,30 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2411
2431
|
sections: ve.value,
|
|
2412
2432
|
select: $,
|
|
2413
2433
|
close: d
|
|
2414
|
-
}, () => [ve.value.length ? (b(), r(
|
|
2434
|
+
}, () => [ve.value.length ? (b(), r(st, {
|
|
2415
2435
|
key: 0,
|
|
2416
2436
|
items: ve.value,
|
|
2417
2437
|
"active-item-id": s.activeItemId,
|
|
2418
|
-
"force-open": !!
|
|
2438
|
+
"force-open": !!q.value.trim(),
|
|
2419
2439
|
"show-section-dividers": "",
|
|
2420
2440
|
onSelect: $
|
|
2421
2441
|
}, null, 8, [
|
|
2422
2442
|
"items",
|
|
2423
2443
|
"active-item-id",
|
|
2424
2444
|
"force-open"
|
|
2425
|
-
])) : (b(), a("div",
|
|
2445
|
+
])) : (b(), a("div", Un, "Nenhum menu encontrado."))])]),
|
|
2426
2446
|
w(n.$slots, "drawer-after-menu", { close: d })
|
|
2427
2447
|
]),
|
|
2428
|
-
Ne.value || n.$slots["drawer-footer"] ? (b(), a("footer",
|
|
2448
|
+
Ne.value || n.$slots["drawer-footer"] ? (b(), a("footer", Wn, [Ne.value ? w(n.$slots, "drawer-user", {
|
|
2429
2449
|
user: s.user,
|
|
2430
2450
|
client: s.client,
|
|
2431
|
-
open:
|
|
2432
|
-
toggle: () =>
|
|
2451
|
+
open: ne.value,
|
|
2452
|
+
toggle: () => ne.value = !ne.value
|
|
2433
2453
|
}, () => [o("button", {
|
|
2434
2454
|
class: "top-nav-bar__drawer-user",
|
|
2435
2455
|
type: "button",
|
|
2436
2456
|
"aria-haspopup": Me.value ? "menu" : void 0,
|
|
2437
|
-
"aria-expanded": Me.value ?
|
|
2457
|
+
"aria-expanded": Me.value ? ne.value : void 0,
|
|
2438
2458
|
onClick: Je
|
|
2439
2459
|
}, [
|
|
2440
2460
|
s.user?.avatarUrl ? (b(), a("img", {
|
|
@@ -2442,64 +2462,64 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2442
2462
|
src: s.user.avatarUrl,
|
|
2443
2463
|
alt: "",
|
|
2444
2464
|
class: "top-nav-bar__user-avatar"
|
|
2445
|
-
}, null, 8,
|
|
2446
|
-
s.user ? (b(), a("span",
|
|
2465
|
+
}, null, 8, Kn)) : (b(), a("span", qn, D(ze.value), 1)),
|
|
2466
|
+
s.user ? (b(), a("span", Jn, [o("span", Yn, D(s.user.name), 1), s.client ? (b(), a("span", Xn, [o("span", Zn, [u[36] ||= o("i", {
|
|
2447
2467
|
class: "pi pi-building",
|
|
2448
2468
|
"aria-hidden": "true"
|
|
2449
|
-
}, null, -1), c(D(s.client.name), 1)]), s.client.subtitle ? (b(), a("span",
|
|
2450
|
-
Me.value ? (b(), a("i",
|
|
2451
|
-
], 8,
|
|
2469
|
+
}, null, -1), c(D(s.client.name), 1)]), s.client.subtitle ? (b(), a("span", Qn, D(s.client.subtitle), 1)) : i("", !0)])) : i("", !0)])) : i("", !0),
|
|
2470
|
+
Me.value ? (b(), a("i", $n)) : i("", !0)
|
|
2471
|
+
], 8, Gn)], void 0, 0) : i("", !0), w(n.$slots, "drawer-footer", { close: d })])) : i("", !0)
|
|
2452
2472
|
])]),
|
|
2453
2473
|
_: 3
|
|
2454
2474
|
}, 8, ["visible", "style"]),
|
|
2455
|
-
l(O(
|
|
2475
|
+
l(O(H), {
|
|
2456
2476
|
ref_key: "drawerUserMenuRef",
|
|
2457
|
-
ref:
|
|
2477
|
+
ref: ie,
|
|
2458
2478
|
class: "top-nav-bar__drawer-user-popup",
|
|
2459
2479
|
model: Be.value,
|
|
2460
2480
|
popup: !0,
|
|
2461
2481
|
"append-to": "body",
|
|
2462
2482
|
"base-z-index": 10001,
|
|
2463
|
-
onShow: u[17] ||= (e) =>
|
|
2464
|
-
onHide: u[18] ||= (e) =>
|
|
2483
|
+
onShow: u[17] ||= (e) => ne.value = !0,
|
|
2484
|
+
onHide: u[18] ||= (e) => ne.value = !1
|
|
2465
2485
|
}, null, 8, ["model"])
|
|
2466
2486
|
], 4));
|
|
2467
2487
|
}
|
|
2468
|
-
}),
|
|
2488
|
+
}), rr = { class: "top-field-icon pointer-events-none absolute left-3 top-1/2 z-10 -translate-y-1/2" }, ir = {
|
|
2469
2489
|
key: 0,
|
|
2470
2490
|
class: "pi pi-spin pi-spinner"
|
|
2471
|
-
},
|
|
2491
|
+
}, ar = {
|
|
2472
2492
|
key: 1,
|
|
2473
2493
|
class: "pi pi-search"
|
|
2474
|
-
},
|
|
2494
|
+
}, or = {
|
|
2475
2495
|
key: 1,
|
|
2476
2496
|
class: "flex items-center gap-1 !text-sm"
|
|
2477
|
-
},
|
|
2497
|
+
}, sr = { class: "flex items-center gap-2 rounded-[9px] bg-primary-500 px-2 py-1 text-white" }, cr = ["onClick"], lr = { class: "line-clamp-1 max-w-[300px] overflow-hidden text-ellipsis" }, ur = {
|
|
2478
2498
|
key: 1,
|
|
2479
2499
|
class: "flex min-h-[100px] flex-col items-center justify-center gap-2 py-2"
|
|
2480
|
-
},
|
|
2500
|
+
}, dr = {
|
|
2481
2501
|
key: 0,
|
|
2482
2502
|
class: "text-xs font-medium text-primary-600"
|
|
2483
|
-
},
|
|
2503
|
+
}, fr = {
|
|
2484
2504
|
key: 2,
|
|
2485
2505
|
class: "text-xs text-secondary-500"
|
|
2486
|
-
},
|
|
2506
|
+
}, pr = { key: 1 }, mr = {
|
|
2487
2507
|
key: 1,
|
|
2488
2508
|
class: "flex items-center gap-2 font-semibold"
|
|
2489
|
-
},
|
|
2509
|
+
}, hr = {
|
|
2490
2510
|
key: 1,
|
|
2491
2511
|
class: "flex w-full min-w-0 items-start gap-2 overflow-hidden px-2 py-3 text-sm",
|
|
2492
2512
|
style: { "white-space": "normal" }
|
|
2493
|
-
},
|
|
2513
|
+
}, gr = ["title"], _r = {
|
|
2494
2514
|
key: 0,
|
|
2495
2515
|
class: "top-select-option-prefix whitespace-nowrap font-bold text-primary-800 dark:text-primary-100"
|
|
2496
|
-
},
|
|
2516
|
+
}, vr = {
|
|
2497
2517
|
key: 0,
|
|
2498
2518
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2499
|
-
},
|
|
2519
|
+
}, yr = {
|
|
2500
2520
|
key: 0,
|
|
2501
2521
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2502
|
-
},
|
|
2522
|
+
}, br = /* @__PURE__ */ u({
|
|
2503
2523
|
inheritAttrs: !1,
|
|
2504
2524
|
__name: "TopSelect",
|
|
2505
2525
|
props: {
|
|
@@ -2569,27 +2589,27 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2569
2589
|
"change"
|
|
2570
2590
|
],
|
|
2571
2591
|
setup(t, { expose: r, emit: u }) {
|
|
2572
|
-
let f = t, _ = u, x = te(), T = ee(), E =
|
|
2592
|
+
let f = t, _ = u, x = te(), T = ee(), E = ie, k = S(""), N = S(!1), P = S(null), L = `top-select-${Math.random().toString(36).slice(2)}`, R = null, z = n({
|
|
2573
2593
|
get: () => f.modelValue,
|
|
2574
2594
|
set: (e) => _("update:modelValue", e)
|
|
2575
2595
|
}), B = n(() => {
|
|
2576
2596
|
let { class: e, ...t } = T;
|
|
2577
2597
|
return t;
|
|
2578
|
-
}), V = n(() => f.multiple ? "w-full border-0 bg-transparent p-0 text-xs !shadow-none outline-none ring-0 rounded-none" : I("top-field-control w-full h-auto border rounded-[10px] !pl-9 min-h-[36px] text-xs", T.class)),
|
|
2579
|
-
function
|
|
2598
|
+
}), V = n(() => f.multiple ? "w-full border-0 bg-transparent p-0 text-xs !shadow-none outline-none ring-0 rounded-none" : I("top-field-control w-full h-auto border rounded-[10px] !pl-9 min-h-[36px] text-xs", T.class)), ne = n(() => I("top-field-control w-full h-auto border bg-[var(--top-field-background)] !rounded-l-[10px] !rounded-r-none pl-9 min-h-[40px] text-xs", T.class));
|
|
2599
|
+
function re(e, t) {
|
|
2580
2600
|
return e == null ? "" : String(typeof e == "object" ? e[t] ?? "" : e);
|
|
2581
2601
|
}
|
|
2582
|
-
function
|
|
2583
|
-
return e == null ? "" : typeof f.optionLabel == "function" ? f.optionLabel(e) :
|
|
2602
|
+
function H(e) {
|
|
2603
|
+
return e == null ? "" : typeof f.optionLabel == "function" ? f.optionLabel(e) : re(e, f.optionLabel);
|
|
2584
2604
|
}
|
|
2585
|
-
function
|
|
2586
|
-
return f.optionPrefix ?
|
|
2605
|
+
function U(e) {
|
|
2606
|
+
return f.optionPrefix ? re(e, f.optionPrefix) : "";
|
|
2587
2607
|
}
|
|
2588
|
-
function
|
|
2589
|
-
let n =
|
|
2608
|
+
function W(e, t = f.showSelectedPrefix) {
|
|
2609
|
+
let n = H(e), r = U(e);
|
|
2590
2610
|
return t && r ? `${r} - ${n}` : n;
|
|
2591
2611
|
}
|
|
2592
|
-
function
|
|
2612
|
+
function G(e) {
|
|
2593
2613
|
let t = k.value;
|
|
2594
2614
|
if (!t) return [{
|
|
2595
2615
|
text: e,
|
|
@@ -2601,43 +2621,43 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2601
2621
|
highlighted: e.toLowerCase() === t.toLowerCase()
|
|
2602
2622
|
}));
|
|
2603
2623
|
}
|
|
2604
|
-
function
|
|
2624
|
+
function K() {
|
|
2605
2625
|
P.value?.hide?.();
|
|
2606
2626
|
}
|
|
2607
|
-
function
|
|
2627
|
+
function ae() {
|
|
2608
2628
|
typeof window > "u" || window.dispatchEvent(new CustomEvent("top-select:close-others", { detail: { instanceId: L } }));
|
|
2609
2629
|
}
|
|
2610
|
-
function
|
|
2611
|
-
k.value = e.query ?? "",
|
|
2630
|
+
function q(e) {
|
|
2631
|
+
k.value = e.query ?? "", ae(), !(e.originalEvent.type === "click" && e.originalEvent.currentTarget?.classList.contains("p-autocomplete-dropdown") && f.options.length > 0) && _("search", {
|
|
2612
2632
|
...e,
|
|
2613
2633
|
query: k.value
|
|
2614
2634
|
});
|
|
2615
2635
|
}
|
|
2616
|
-
function
|
|
2617
|
-
e.detail?.instanceId !== L &&
|
|
2636
|
+
function J(e) {
|
|
2637
|
+
e.detail?.instanceId !== L && K();
|
|
2618
2638
|
}
|
|
2619
|
-
function
|
|
2639
|
+
function oe() {
|
|
2620
2640
|
if (f.disabled || R) {
|
|
2621
|
-
|
|
2641
|
+
K();
|
|
2622
2642
|
return;
|
|
2623
2643
|
}
|
|
2624
|
-
N.value = !0,
|
|
2644
|
+
N.value = !0, ae();
|
|
2625
2645
|
}
|
|
2626
|
-
function
|
|
2627
|
-
f.closeOnSelect && (N.value = !1,
|
|
2628
|
-
|
|
2646
|
+
function se() {
|
|
2647
|
+
f.closeOnSelect && (N.value = !1, K(), m(K), R && clearTimeout(R), R = setTimeout(() => {
|
|
2648
|
+
K(), R = null;
|
|
2629
2649
|
}, 200));
|
|
2630
2650
|
}
|
|
2631
|
-
return r({ hideDropdown:
|
|
2632
|
-
window.removeEventListener("top-select:close-others",
|
|
2651
|
+
return r({ hideDropdown: K }), y(() => window.addEventListener("top-select:close-others", J)), v(() => {
|
|
2652
|
+
window.removeEventListener("top-select:close-others", J), R && clearTimeout(R);
|
|
2633
2653
|
}), A(() => f.disabled, (e) => {
|
|
2634
|
-
e && (N.value = !1,
|
|
2654
|
+
e && (N.value = !1, K());
|
|
2635
2655
|
}), A(() => f.options, () => {
|
|
2636
|
-
N.value ||
|
|
2656
|
+
N.value || K();
|
|
2637
2657
|
}), (n, r) => (b(), a("div", {
|
|
2638
2658
|
class: h(["top-select top-solutions-component relative w-full", { "pointer-events-none": t.disabled }]),
|
|
2639
|
-
onFocusin:
|
|
2640
|
-
}, [o("span",
|
|
2659
|
+
onFocusin: oe
|
|
2660
|
+
}, [o("span", rr, [w(n.$slots, "icon", { loading: t.loading }, () => [t.loading ? (b(), a("i", ir)) : (b(), a("i", ar))])]), l(O(E), p({
|
|
2641
2661
|
ref_key: "autocompleteRef",
|
|
2642
2662
|
ref: P
|
|
2643
2663
|
}, B.value, {
|
|
@@ -2647,7 +2667,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2647
2667
|
"option-group-children": t.optionGroupChildren ?? void 0,
|
|
2648
2668
|
suggestions: t.options,
|
|
2649
2669
|
"data-key": t.optionKey,
|
|
2650
|
-
"option-label": (e) =>
|
|
2670
|
+
"option-label": (e) => W(e),
|
|
2651
2671
|
placeholder: t.placeholder,
|
|
2652
2672
|
multiple: t.multiple,
|
|
2653
2673
|
"min-length": t.minQueryLength,
|
|
@@ -2672,7 +2692,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2672
2692
|
root: { class: ["w-full text-xs", t.multiple ? "h-auto" : "h-[40px]"].join(" ") },
|
|
2673
2693
|
pcInputText: { root: { class: V.value } },
|
|
2674
2694
|
input: { class: V.value },
|
|
2675
|
-
inputMultiple: { class:
|
|
2695
|
+
inputMultiple: { class: ne.value },
|
|
2676
2696
|
inputChip: { class: "py-0" },
|
|
2677
2697
|
token: { class: "bg-primary-100 text-primary-900 rounded-md gap-2 px-2 my-1 dark:bg-primary-900 dark:text-primary-100" },
|
|
2678
2698
|
removeTokenIcon: { class: "text-primary-900 w-3 h-3 cursor-pointer dark:text-primary-100" },
|
|
@@ -2694,42 +2714,42 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2694
2714
|
k.value = "", _("clear");
|
|
2695
2715
|
},
|
|
2696
2716
|
onItemSelect: r[2] ||= (e) => {
|
|
2697
|
-
k.value = "", _("select", e),
|
|
2717
|
+
k.value = "", _("select", e), se();
|
|
2698
2718
|
},
|
|
2699
2719
|
onComplete: r[3] ||= (e) => {
|
|
2700
2720
|
if (t.disabled) {
|
|
2701
|
-
|
|
2721
|
+
K();
|
|
2702
2722
|
return;
|
|
2703
2723
|
}
|
|
2704
|
-
|
|
2724
|
+
q(e);
|
|
2705
2725
|
},
|
|
2706
2726
|
onChange: r[4] ||= (e) => _("change", e)
|
|
2707
2727
|
}), s({
|
|
2708
|
-
chip: j((e) => [O(x).chip ? w(n.$slots, "chip", g(d(e)), void 0, void 0, 0) : (b(), a("div",
|
|
2728
|
+
chip: j((e) => [O(x).chip ? w(n.$slots, "chip", g(d(e)), void 0, void 0, 0) : (b(), a("div", or, [o("div", sr, [o("i", {
|
|
2709
2729
|
class: "pi pi-times-circle shrink-0 cursor-pointer rounded-full hover:bg-primary-800",
|
|
2710
2730
|
onClick: (t) => e.removeCallback(t)
|
|
2711
|
-
}, null, 8,
|
|
2731
|
+
}, null, 8, cr), M((b(), a("span", lr, [c(D(W(e.value)), 1)])), [[
|
|
2712
2732
|
O(F),
|
|
2713
|
-
|
|
2733
|
+
W(e.value),
|
|
2714
2734
|
void 0,
|
|
2715
2735
|
{ top: !0 }
|
|
2716
2736
|
]])])]))]),
|
|
2717
|
-
empty: j(() => [O(x).empty ? w(n.$slots, "empty", {}, void 0, void 0, 0) : t.loading ? (b(), a("div",
|
|
2718
|
-
"selected-item": j((e) => [O(x)["selected-item"] ? w(n.$slots, "selected-item", g(d(e)), void 0, void 0, 0) : e.item ? (b(), a("span",
|
|
2719
|
-
optiongroup: j((e) => [O(x)["option-group"] ? w(n.$slots, "option-group", g(d(e)), void 0, void 0, 0) : (b(), a("div",
|
|
2737
|
+
empty: j(() => [O(x).empty ? w(n.$slots, "empty", {}, void 0, void 0, 0) : t.loading ? (b(), a("div", ur, [r[5] ||= o("span", { class: "pi pi-spin pi-spinner text-2xl text-primary-600" }, null, -1), t.showLoadingMessage ? (b(), a("span", dr, D(t.loadingMessage), 1)) : i("", !0)])) : (b(), a("span", fr, D(t.emptyMessage), 1))]),
|
|
2738
|
+
"selected-item": j((e) => [O(x)["selected-item"] ? w(n.$slots, "selected-item", g(d(e)), void 0, void 0, 0) : e.item ? (b(), a("span", pr, D(W(e.item)), 1)) : i("", !0)]),
|
|
2739
|
+
optiongroup: j((e) => [O(x)["option-group"] ? w(n.$slots, "option-group", g(d(e)), void 0, void 0, 0) : (b(), a("div", mr, [e.option.icon ? (b(), a("i", {
|
|
2720
2740
|
key: 0,
|
|
2721
2741
|
class: h(e.option.icon)
|
|
2722
2742
|
}, null, 2)) : i("", !0), o("span", null, D(e.option[t.optionGroupLabel ?? "label"]), 1)]))]),
|
|
2723
2743
|
option: j((s) => [O(x).option ? w(n.$slots, "option", p(s, {
|
|
2724
|
-
label:
|
|
2725
|
-
prefix:
|
|
2744
|
+
label: H(s.option),
|
|
2745
|
+
prefix: U(s.option),
|
|
2726
2746
|
query: k.value
|
|
2727
|
-
}), void 0, void 0, 0) : M((b(), a("div",
|
|
2747
|
+
}), void 0, void 0, 0) : M((b(), a("div", hr, [o("span", {
|
|
2728
2748
|
class: "top-select-option-label line-clamp-2 min-w-0 flex-1 text-secondary-700 dark:text-zinc-200",
|
|
2729
|
-
title:
|
|
2730
|
-
}, [t.showOptionPrefix &&
|
|
2749
|
+
title: H(s.option)
|
|
2750
|
+
}, [t.showOptionPrefix && U(s.option) ? (b(), a("span", _r, [(b(!0), a(e, null, C(G(U(s.option)), (t, n) => (b(), a(e, { key: n }, [t.highlighted ? (b(), a("mark", vr, D(t.text), 1)) : (b(), a(e, { key: 1 }, [c(D(t.text), 1)], 64))], 64))), 128)), r[6] ||= o("span", { class: "font-bold text-secondary-500 dark:text-zinc-400" }, "\xA0-\xA0", -1)])) : i("", !0), (b(!0), a(e, null, C(G(H(s.option)), (t, n) => (b(), a(e, { key: n }, [t.highlighted ? (b(), a("mark", yr, D(t.text), 1)) : (b(), a(e, { key: 1 }, [c(D(t.text), 1)], 64))], 64))), 128))], 8, gr)])), [[
|
|
2731
2751
|
O(F),
|
|
2732
|
-
t.showTooltip ?
|
|
2752
|
+
t.showTooltip ? H(s.option) : null,
|
|
2733
2753
|
void 0,
|
|
2734
2754
|
{ top: !0 }
|
|
2735
2755
|
]])]),
|
|
@@ -2756,7 +2776,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2756
2776
|
"pt"
|
|
2757
2777
|
])], 34));
|
|
2758
2778
|
}
|
|
2759
|
-
}),
|
|
2779
|
+
}), xr = /* @__PURE__ */ u({
|
|
2760
2780
|
inheritAttrs: !1,
|
|
2761
2781
|
__name: "TopTabs",
|
|
2762
2782
|
props: {
|
|
@@ -2777,15 +2797,15 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2777
2797
|
function o(e) {
|
|
2778
2798
|
return String(e.value);
|
|
2779
2799
|
}
|
|
2780
|
-
return (n, s) => (b(), r(O(
|
|
2800
|
+
return (n, s) => (b(), r(O(ae), p(n.$attrs, {
|
|
2781
2801
|
class: "top-tabs top-solutions-component w-full min-w-0",
|
|
2782
2802
|
value: t.modelValue,
|
|
2783
2803
|
lazy: t.lazy,
|
|
2784
2804
|
scrollable: t.scrollable,
|
|
2785
2805
|
"onUpdate:value": s[0] ||= (e) => i("update:modelValue", e)
|
|
2786
2806
|
}), {
|
|
2787
|
-
default: j(() => [l(O(
|
|
2788
|
-
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(
|
|
2807
|
+
default: j(() => [l(O(W), null, {
|
|
2808
|
+
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(U), {
|
|
2789
2809
|
key: e.value,
|
|
2790
2810
|
value: e.value,
|
|
2791
2811
|
disabled: e.disabled
|
|
@@ -2794,8 +2814,8 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2794
2814
|
_: 2
|
|
2795
2815
|
}, 1032, ["value", "disabled"]))), 128))]),
|
|
2796
2816
|
_: 1
|
|
2797
|
-
}), l(O(
|
|
2798
|
-
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(
|
|
2817
|
+
}), l(O(K), null, {
|
|
2818
|
+
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(G), {
|
|
2799
2819
|
key: e.value,
|
|
2800
2820
|
value: e.value
|
|
2801
2821
|
}, {
|
|
@@ -2817,12 +2837,12 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2817
2837
|
});
|
|
2818
2838
|
//#endregion
|
|
2819
2839
|
//#region src/components/internal/topAccordion.ts
|
|
2820
|
-
function
|
|
2840
|
+
function Sr(e, t) {
|
|
2821
2841
|
return `${e}--section-${encodeURIComponent(String(t))}`;
|
|
2822
2842
|
}
|
|
2823
2843
|
//#endregion
|
|
2824
2844
|
//#region src/components/TopAccordion.vue?vue&type=script&setup=true&lang.ts
|
|
2825
|
-
var
|
|
2845
|
+
var Cr = Symbol("top-accordion-context"), wr = /* @__PURE__ */ u({
|
|
2826
2846
|
inheritAttrs: !1,
|
|
2827
2847
|
__name: "TopAccordion",
|
|
2828
2848
|
props: {
|
|
@@ -2847,7 +2867,7 @@ var xr = Symbol("top-accordion-context"), Sr = /* @__PURE__ */ u({
|
|
|
2847
2867
|
return s.value.includes(e);
|
|
2848
2868
|
}
|
|
2849
2869
|
function g(e) {
|
|
2850
|
-
return
|
|
2870
|
+
return Sr(i.id, e);
|
|
2851
2871
|
}
|
|
2852
2872
|
function _(e) {
|
|
2853
2873
|
s.value = Array.isArray(e) ? e : e == null ? [] : [e];
|
|
@@ -2863,7 +2883,7 @@ var xr = Symbol("top-accordion-context"), Sr = /* @__PURE__ */ u({
|
|
|
2863
2883
|
behavior: t.behavior ?? "smooth"
|
|
2864
2884
|
}), !0;
|
|
2865
2885
|
}
|
|
2866
|
-
return x(
|
|
2886
|
+
return x(Cr, {
|
|
2867
2887
|
accordionId: i.id,
|
|
2868
2888
|
sections: c,
|
|
2869
2889
|
openSections: s,
|
|
@@ -2878,7 +2898,7 @@ var xr = Symbol("top-accordion-context"), Sr = /* @__PURE__ */ u({
|
|
|
2878
2898
|
ref_key: "rootRef",
|
|
2879
2899
|
ref: u,
|
|
2880
2900
|
class: "top-accordion top-solutions-component"
|
|
2881
|
-
}, [l(O(
|
|
2901
|
+
}, [l(O(q), p(t.$attrs, {
|
|
2882
2902
|
value: d.value,
|
|
2883
2903
|
multiple: e.multiple,
|
|
2884
2904
|
"expand-icon": "pi pi-chevron-down",
|
|
@@ -2890,11 +2910,11 @@ var xr = Symbol("top-accordion-context"), Sr = /* @__PURE__ */ u({
|
|
|
2890
2910
|
_: 3
|
|
2891
2911
|
}, 16, ["value", "multiple"])], 512));
|
|
2892
2912
|
}
|
|
2893
|
-
}),
|
|
2913
|
+
}), Tr = {
|
|
2894
2914
|
key: 0,
|
|
2895
2915
|
class: "top-accordion-summary__separator",
|
|
2896
2916
|
"aria-hidden": "true"
|
|
2897
|
-
},
|
|
2917
|
+
}, Er = { class: "top-accordion-summary__item" }, Dr = /* @__PURE__ */ u({
|
|
2898
2918
|
__name: "TopAccordionSummary",
|
|
2899
2919
|
props: {
|
|
2900
2920
|
items: { default: () => [] },
|
|
@@ -2915,12 +2935,12 @@ var xr = Symbol("top-accordion-context"), Sr = /* @__PURE__ */ u({
|
|
|
2915
2935
|
return (r, s) => t.visible && (t.items.length || r.$slots.default) ? (b(), a("div", {
|
|
2916
2936
|
key: 0,
|
|
2917
2937
|
class: h(["top-accordion-summary", { "top-accordion-summary--nowrap": t.nowrap }])
|
|
2918
|
-
}, [(b(!0), a(e, null, C(t.items, (t, r) => (b(), a(e, { key: `${t.label}-${r}` }, [r > 0 ? (b(), a("span",
|
|
2938
|
+
}, [(b(!0), a(e, null, C(t.items, (t, r) => (b(), a(e, { key: `${t.label}-${r}` }, [r > 0 ? (b(), a("span", Tr)) : i("", !0), o("span", Er, [o("strong", null, D(t.label) + ":", 1), c(" " + D(n(t)), 1)])], 64))), 128)), w(r.$slots, "default")], 2)) : i("", !0);
|
|
2919
2939
|
}
|
|
2920
|
-
}),
|
|
2940
|
+
}), Or = ["id"], kr = { class: "top-accordion-panel__heading" }, Ar = { class: "top-accordion-panel__title-row" }, jr = {
|
|
2921
2941
|
class: "top-accordion-panel__badge",
|
|
2922
2942
|
"aria-hidden": "true"
|
|
2923
|
-
},
|
|
2943
|
+
}, Mr = { key: 1 }, Nr = { class: "top-accordion-panel__title" }, Pr = ["aria-label"], Fr = /* @__PURE__ */ u({
|
|
2924
2944
|
inheritAttrs: !1,
|
|
2925
2945
|
__name: "TopAccordionPanel",
|
|
2926
2946
|
props: {
|
|
@@ -2972,27 +2992,27 @@ var xr = Symbol("top-accordion-context"), Sr = /* @__PURE__ */ u({
|
|
|
2972
2992
|
}
|
|
2973
2993
|
},
|
|
2974
2994
|
setup(e) {
|
|
2975
|
-
let t = e, r = f(
|
|
2995
|
+
let t = e, r = f(Cr);
|
|
2976
2996
|
if (!r) throw Error("TopAccordionPanel deve ser usado dentro de TopAccordion.");
|
|
2977
2997
|
let s = n(() => r.getSection(t.value)), u = n(() => t.title || s.value?.label || String(t.value)), d = n(() => t.icon || s.value?.icon || ""), m = n(() => !!s.value?.disabled), g = n(() => r.sections.value.findIndex((e) => e.value === t.value) + 1), v = n(() => r.isOpen(t.value)), y = n(() => r.getAnchorId(t.value)), x = n(() => t.status === "valid" ? "pi pi-check-circle" : "pi pi-times-circle"), S = n(() => t.status === "valid" ? "top-accordion-panel__status--valid" : "top-accordion-panel__status--error");
|
|
2978
2998
|
return (t, n) => (b(), a("div", {
|
|
2979
2999
|
id: y.value,
|
|
2980
3000
|
class: "top-accordion-panel-anchor"
|
|
2981
|
-
}, [l(O(
|
|
3001
|
+
}, [l(O(se), p(t.$attrs, {
|
|
2982
3002
|
value: e.value,
|
|
2983
3003
|
disabled: m.value,
|
|
2984
3004
|
class: "top-accordion-panel"
|
|
2985
3005
|
}), {
|
|
2986
|
-
default: j(() => [l(O(
|
|
3006
|
+
default: j(() => [l(O(oe), {
|
|
2987
3007
|
class: h(["top-accordion-panel__header", e.headerClass]),
|
|
2988
3008
|
style: _(e.headerStyle)
|
|
2989
3009
|
}, {
|
|
2990
|
-
default: j(() => [o("div",
|
|
2991
|
-
o("span",
|
|
3010
|
+
default: j(() => [o("div", kr, [o("div", Ar, [
|
|
3011
|
+
o("span", jr, [w(t.$slots, "icon", {}, () => [d.value ? (b(), a("i", {
|
|
2992
3012
|
key: 0,
|
|
2993
3013
|
class: h(d.value)
|
|
2994
|
-
}, null, 2)) : (b(), a("span",
|
|
2995
|
-
o("span",
|
|
3014
|
+
}, null, 2)) : (b(), a("span", Mr, D(g.value), 1))])]),
|
|
3015
|
+
o("span", Nr, [w(t.$slots, "title", {}, () => [c(D(u.value), 1)])]),
|
|
2996
3016
|
w(t.$slots, "status", {}, () => [e.status ? (b(), a("i", {
|
|
2997
3017
|
key: 0,
|
|
2998
3018
|
class: h([
|
|
@@ -3002,13 +3022,13 @@ var xr = Symbol("top-accordion-context"), Sr = /* @__PURE__ */ u({
|
|
|
3002
3022
|
]),
|
|
3003
3023
|
"aria-label": e.statusLabel || (e.status === "valid" ? "Seção válida" : "Existem erros na seção"),
|
|
3004
3024
|
role: "img"
|
|
3005
|
-
}, null, 10,
|
|
3006
|
-
]), t.$slots.preview ? w(t.$slots, "preview", { open: v.value }, void 0, void 0, 0) : w(t.$slots, "summary", { open: v.value }, () => [l(
|
|
3025
|
+
}, null, 10, Pr)) : i("", !0)])
|
|
3026
|
+
]), t.$slots.preview ? w(t.$slots, "preview", { open: v.value }, void 0, void 0, 0) : w(t.$slots, "summary", { open: v.value }, () => [l(Dr, {
|
|
3007
3027
|
items: e.summary,
|
|
3008
3028
|
visible: !v.value
|
|
3009
3029
|
}, null, 8, ["items", "visible"])], void 0, 1)])]),
|
|
3010
3030
|
_: 3
|
|
3011
|
-
}, 8, ["class", "style"]), l(O(
|
|
3031
|
+
}, 8, ["class", "style"]), l(O(J), null, {
|
|
3012
3032
|
default: j(() => [o("div", {
|
|
3013
3033
|
class: h(["top-accordion-panel__content", e.contentClass]),
|
|
3014
3034
|
style: _(e.contentStyle)
|
|
@@ -3016,16 +3036,16 @@ var xr = Symbol("top-accordion-context"), Sr = /* @__PURE__ */ u({
|
|
|
3016
3036
|
_: 3
|
|
3017
3037
|
})]),
|
|
3018
3038
|
_: 3
|
|
3019
|
-
}, 16, ["value", "disabled"])], 8,
|
|
3039
|
+
}, 16, ["value", "disabled"])], 8, Or));
|
|
3020
3040
|
}
|
|
3021
|
-
}),
|
|
3041
|
+
}), Ir = { class: "top-accordion-navigator__items" }, Lr = [
|
|
3022
3042
|
"disabled",
|
|
3023
3043
|
"aria-current",
|
|
3024
3044
|
"onClick"
|
|
3025
|
-
],
|
|
3045
|
+
], Rr = { class: "top-accordion-navigator__badge" }, zr = {
|
|
3026
3046
|
key: 0,
|
|
3027
3047
|
class: "pi pi-lock"
|
|
3028
|
-
},
|
|
3048
|
+
}, Br = { key: 2 }, Vr = { class: "top-accordion-navigator__label" }, Hr = /* @__PURE__ */ u({
|
|
3029
3049
|
__name: "TopAccordionNavigator",
|
|
3030
3050
|
props: {
|
|
3031
3051
|
accordionId: {},
|
|
@@ -3061,7 +3081,7 @@ var xr = Symbol("top-accordion-context"), Sr = /* @__PURE__ */ u({
|
|
|
3061
3081
|
async function E(e) {
|
|
3062
3082
|
if (e.disabled) return;
|
|
3063
3083
|
x(e.value) || (g.value = [...g.value, e.value]), c("navigate", e), await m(), await new Promise((e) => requestAnimationFrame(() => e()));
|
|
3064
|
-
let t = document.getElementById(
|
|
3084
|
+
let t = document.getElementById(Sr(s.accordionId, e.value));
|
|
3065
3085
|
t && window.scrollTo({
|
|
3066
3086
|
top: t.getBoundingClientRect().top + window.scrollY - s.scrollOffset,
|
|
3067
3087
|
behavior: "smooth"
|
|
@@ -3100,7 +3120,7 @@ var xr = Symbol("top-accordion-context"), Sr = /* @__PURE__ */ u({
|
|
|
3100
3120
|
ref_key: "containerRef",
|
|
3101
3121
|
ref: l,
|
|
3102
3122
|
class: "top-accordion-navigator__scroll-area"
|
|
3103
|
-
}, [o("div",
|
|
3123
|
+
}, [o("div", Ir, [(b(!0), a(e, null, C(t.sections, (n, r) => (b(), a(e, { key: n.value }, [o("button", {
|
|
3104
3124
|
class: h(["top-accordion-navigator__item", {
|
|
3105
3125
|
"top-accordion-navigator__item--open": x(n.value),
|
|
3106
3126
|
"top-accordion-navigator__item--disabled": n.disabled
|
|
@@ -3109,20 +3129,20 @@ var xr = Symbol("top-accordion-context"), Sr = /* @__PURE__ */ u({
|
|
|
3109
3129
|
type: "button",
|
|
3110
3130
|
"aria-current": x(n.value) ? "step" : void 0,
|
|
3111
3131
|
onClick: (e) => E(n)
|
|
3112
|
-
}, [o("span",
|
|
3132
|
+
}, [o("span", Rr, [n.disabled ? (b(), a("i", zr)) : n.icon ? (b(), a("i", {
|
|
3113
3133
|
key: 1,
|
|
3114
3134
|
class: h(n.icon)
|
|
3115
|
-
}, null, 2)) : (b(), a("span",
|
|
3135
|
+
}, null, 2)) : (b(), a("span", Br, D(r + 1), 1))]), o("span", Vr, D(n.label), 1)], 10, Lr), r < t.sections.length - 1 ? (b(), a("span", {
|
|
3116
3136
|
key: 0,
|
|
3117
3137
|
class: h(["top-accordion-navigator__connector", { "top-accordion-navigator__connector--open": x(n.value) && x(t.sections[r + 1].value) }]),
|
|
3118
3138
|
"aria-hidden": "true"
|
|
3119
3139
|
}, null, 2)) : i("", !0)], 64))), 128))])], 512)
|
|
3120
3140
|
], 6));
|
|
3121
3141
|
}
|
|
3122
|
-
}),
|
|
3142
|
+
}), Ur = { class: "top-toast__content" }, Wr = { class: "top-toast__detail" }, Gr = ["onClick"], Kr = {
|
|
3123
3143
|
key: 0,
|
|
3124
3144
|
class: "top-toast__footer"
|
|
3125
|
-
},
|
|
3145
|
+
}, qr = /* @__PURE__ */ u({
|
|
3126
3146
|
__name: "TopToast",
|
|
3127
3147
|
props: { baseZIndex: { default: 3e4 } },
|
|
3128
3148
|
setup(e) {
|
|
@@ -3144,13 +3164,13 @@ var xr = Symbol("top-accordion-context"), Sr = /* @__PURE__ */ u({
|
|
|
3144
3164
|
function d(e, t) {
|
|
3145
3165
|
return `top-toast__${t}--${e.severity ?? "info"}`;
|
|
3146
3166
|
}
|
|
3147
|
-
return (f, p) => (b(), r(O(
|
|
3167
|
+
return (f, p) => (b(), r(O(Y), {
|
|
3148
3168
|
position: "top-right",
|
|
3149
3169
|
"base-z-index": e.baseZIndex
|
|
3150
3170
|
}, {
|
|
3151
|
-
message: j((e) => [o("div",
|
|
3171
|
+
message: j((e) => [o("div", Ur, [
|
|
3152
3172
|
o("div", { class: h(["top-toast__summary", d(e.message, "summary")]) }, D(e.message.summary), 3),
|
|
3153
|
-
o("div",
|
|
3173
|
+
o("div", Wr, D(e.message.detail), 1),
|
|
3154
3174
|
u(e.message) ? w(f.$slots, "action", {
|
|
3155
3175
|
action: n(e.message),
|
|
3156
3176
|
message: e.message,
|
|
@@ -3164,17 +3184,17 @@ var xr = Symbol("top-accordion-context"), Sr = /* @__PURE__ */ u({
|
|
|
3164
3184
|
key: 0,
|
|
3165
3185
|
class: h(n(e.message)?.icon),
|
|
3166
3186
|
"aria-hidden": "true"
|
|
3167
|
-
}, null, 2)) : i("", !0), c(" " + D(n(e.message)?.label), 1)], 10,
|
|
3187
|
+
}, null, 2)) : i("", !0), c(" " + D(n(e.message)?.label), 1)], 10, Gr)) : i("", !0)], void 0, 0) : i("", !0),
|
|
3168
3188
|
l(e.message) ? w(f.$slots, "footer", {
|
|
3169
3189
|
message: e.message,
|
|
3170
3190
|
footer: t(e.message)
|
|
3171
|
-
}, () => [t(e.message) === void 0 ? i("", !0) : (b(), a("div",
|
|
3191
|
+
}, () => [t(e.message) === void 0 ? i("", !0) : (b(), a("div", Kr, D(t(e.message)), 1))], void 0, 1) : i("", !0)
|
|
3172
3192
|
])]),
|
|
3173
3193
|
_: 3
|
|
3174
3194
|
}, 8, ["base-z-index"]));
|
|
3175
3195
|
}
|
|
3176
3196
|
});
|
|
3177
3197
|
//#endregion
|
|
3178
|
-
export {
|
|
3198
|
+
export { wr as a, nr as c, $ as d, He as f, le as g, X as h, Dr as i, rt as l, me as m, Hr as n, xr as o, ye as p, Fr as r, br as s, qr as t, Qe as u };
|
|
3179
3199
|
|
|
3180
|
-
//# sourceMappingURL=TopToast-
|
|
3200
|
+
//# sourceMappingURL=TopToast-LduM5Y6j.js.map
|