@topjoao/top-design-system 0.1.0-beta.21 → 0.1.0-beta.23
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 +4 -3
- package/dist/{TopToast-ZB64v4w6.js → TopToast-BFY94BWZ.js} +298 -263
- package/dist/TopToast-BFY94BWZ.js.map +1 -0
- package/dist/TopToast-CC6iBs5S.cjs +2 -0
- package/dist/TopToast-CC6iBs5S.cjs.map +1 -0
- package/dist/components/TopNavBar.vue.d.ts +16 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +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-Dkz2oCA0.cjs +0 -2
- package/dist/TopToast-Dkz2oCA0.cjs.map +0 -1
- package/dist/TopToast-ZB64v4w6.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment as e, Transition as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, mergeProps as f, nextTick as p, normalizeClass as m, normalizeProps as h, normalizeStyle as g, onBeforeUnmount as ee, onMounted as te, openBlock as _, ref as v, renderList as y, renderSlot as b, resolveComponent as x, resolveDynamicComponent as S, toDisplayString as C, unref as w, useAttrs as
|
|
1
|
+
import { Fragment as e, Transition as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, mergeProps as f, nextTick as p, normalizeClass as m, normalizeProps as h, normalizeStyle as g, onBeforeUnmount as ee, onMounted as te, openBlock as _, ref as v, renderList as y, renderSlot as b, resolveComponent as x, resolveDynamicComponent as S, toDisplayString as C, unref as w, useAttrs as ne, useId as T, useSlots as E, watch as D, withCtx as O, withDirectives as k, withModifiers as A } from "vue";
|
|
2
2
|
import j from "primevue/button";
|
|
3
3
|
import M from "primevue/tooltip";
|
|
4
4
|
import { twMerge as N } from "tailwind-merge";
|
|
@@ -49,11 +49,11 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
49
49
|
},
|
|
50
50
|
emits: ["click"],
|
|
51
51
|
setup(e, { emit: t }) {
|
|
52
|
-
let i =
|
|
52
|
+
let i = E(), o = n(() => !!i.icon), c = e, l = t, u = n(() => c.secondary ? "secondary" : c.severity), d = n(() => {
|
|
53
53
|
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";
|
|
54
54
|
return N(e, c.class);
|
|
55
55
|
});
|
|
56
|
-
return (t, n) => (_(), a("span", W, [
|
|
56
|
+
return (t, n) => (_(), a("span", W, [k((_(), r(w(j), {
|
|
57
57
|
type: e.type,
|
|
58
58
|
label: e.label,
|
|
59
59
|
disabled: e.disabled || e.loading,
|
|
@@ -66,7 +66,7 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
66
66
|
onClick: n[0] ||= (e) => l("click")
|
|
67
67
|
}, s({ _: 2 }, [o.value ? {
|
|
68
68
|
name: "icon",
|
|
69
|
-
fn:
|
|
69
|
+
fn: O(() => [b(t.$slots, "icon")]),
|
|
70
70
|
key: "0"
|
|
71
71
|
} : void 0]), 1032, [
|
|
72
72
|
"type",
|
|
@@ -219,7 +219,7 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
219
219
|
},
|
|
220
220
|
onHide: n[1] ||= (e) => a("close")
|
|
221
221
|
}, {
|
|
222
|
-
default:
|
|
222
|
+
default: O(() => [o("div", {
|
|
223
223
|
class: "relative flex flex-col items-center gap-4 text-center",
|
|
224
224
|
style: g(u.value)
|
|
225
225
|
}, [
|
|
@@ -325,17 +325,17 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
325
325
|
"keydown"
|
|
326
326
|
],
|
|
327
327
|
setup(e, { emit: t }) {
|
|
328
|
-
let r = e, o = t, u =
|
|
328
|
+
let r = e, o = t, u = ne(), p = E(), m = T(), g = n(() => u.id === void 0 || u.id === null || u.id === "" ? m : String(u.id)), ee = n(() => `${g.value}-error`), te = n(() => r.invalid || !!r.error), v = n(() => r.manualInput && !r.readonly && !r.disabled && r.selectionMode === "single" && r.dateFormat === "dd/mm/yy"), x = n(() => {
|
|
329
329
|
if (te.value) return !0;
|
|
330
330
|
let e = u["aria-invalid"];
|
|
331
331
|
return typeof e == "boolean" || e === "true" || e === "false" || e === "grammar" || e === "spelling" ? e : void 0;
|
|
332
332
|
}), S = n(() => {
|
|
333
333
|
let e = u["aria-describedby"], t = [typeof e == "string" ? e : "", r.error ? ee.value : ""].filter(Boolean);
|
|
334
334
|
return t.length ? t.join(" ") : void 0;
|
|
335
|
-
}),
|
|
335
|
+
}), D = n(() => {
|
|
336
336
|
let { id: e, "aria-describedby": t, "aria-invalid": n, ...r } = u;
|
|
337
337
|
return r;
|
|
338
|
-
}),
|
|
338
|
+
}), k = n(() => ({ pcInputText: { root: {
|
|
339
339
|
"aria-describedby": S.value,
|
|
340
340
|
"aria-invalid": x.value,
|
|
341
341
|
onChange: (e) => o("change", e),
|
|
@@ -363,7 +363,7 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
363
363
|
for: g.value,
|
|
364
364
|
class: "top-field-label text-xs font-bold"
|
|
365
365
|
}, [c(C(e.label) + " ", 1), e.required ? (_(), a("span", fe, "*")) : i("", !0)], 8, de)) : i("", !0),
|
|
366
|
-
l(w(F), f(
|
|
366
|
+
l(w(F), f(D.value, {
|
|
367
367
|
"model-value": e.modelValue,
|
|
368
368
|
"input-id": g.value,
|
|
369
369
|
placeholder: e.placeholder,
|
|
@@ -381,7 +381,7 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
381
381
|
"manual-input": e.manualInput,
|
|
382
382
|
"show-button-bar": e.showButtonBar,
|
|
383
383
|
"append-to": e.appendTo,
|
|
384
|
-
pt:
|
|
384
|
+
pt: k.value,
|
|
385
385
|
"input-class": "top-date-picker__input top-field-control h-[40px] w-full rounded-[10px] border px-3 py-2 text-xs read-only:cursor-default disabled:cursor-not-allowed",
|
|
386
386
|
"panel-class": "top-date-picker-panel top-solutions-component",
|
|
387
387
|
fluid: "",
|
|
@@ -399,7 +399,7 @@ var W = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
399
399
|
onKeydown: n[9] ||= (e) => o("keydown", e)
|
|
400
400
|
}), s({ _: 2 }, [y(w(p), (e, n) => ({
|
|
401
401
|
name: n,
|
|
402
|
-
fn:
|
|
402
|
+
fn: O((e) => [b(t.$slots, n, h(d(e ?? {})))])
|
|
403
403
|
}))]), 1040, [
|
|
404
404
|
"model-value",
|
|
405
405
|
"input-id",
|
|
@@ -595,12 +595,12 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
595
595
|
"error"
|
|
596
596
|
],
|
|
597
597
|
setup(t, { expose: s, emit: u }) {
|
|
598
|
-
let d = t, f = u, m =
|
|
598
|
+
let d = t, f = u, m = ne(), h = T(), g = v(null), x = v(F(d.modelValue)), S = v([]), E = /* @__PURE__ */ new Map(), k = n(() => m.id === void 0 || m.id === null || m.id === "" ? h : String(m.id)), A = n(() => `${k.value}-error`), j = n(() => d.error || S.value[0]?.message || ""), M = n(() => d.disabled || d.loading), N = n(() => {
|
|
599
599
|
let e = m["aria-describedby"], t = [typeof e == "string" ? e : "", j.value ? A.value : ""].filter(Boolean);
|
|
600
600
|
return t.length ? t.join(" ") : void 0;
|
|
601
601
|
}), P = n(() => ({
|
|
602
602
|
...m,
|
|
603
|
-
id:
|
|
603
|
+
id: k.value,
|
|
604
604
|
required: d.required,
|
|
605
605
|
"aria-invalid": j.value ? !0 : m["aria-invalid"],
|
|
606
606
|
"aria-describedby": N.value,
|
|
@@ -686,30 +686,30 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
686
686
|
}
|
|
687
687
|
function K(e) {
|
|
688
688
|
if (!e.type.startsWith("image/") || typeof URL.createObjectURL != "function") return "";
|
|
689
|
-
let t =
|
|
689
|
+
let t = E.get(e);
|
|
690
690
|
if (t) return t;
|
|
691
691
|
let n = URL.createObjectURL(e);
|
|
692
|
-
return
|
|
692
|
+
return E.set(e, n), n;
|
|
693
693
|
}
|
|
694
694
|
function q() {
|
|
695
|
-
for (let [e, t] of
|
|
695
|
+
for (let [e, t] of E) x.value.includes(e) || (URL.revokeObjectURL(t), E.delete(e));
|
|
696
696
|
}
|
|
697
|
-
return
|
|
697
|
+
return D(() => d.modelValue, (e) => {
|
|
698
698
|
let t = F(e);
|
|
699
699
|
U(t, x.value) || (x.value = t, S.value = [], q(), p(V));
|
|
700
|
-
}),
|
|
700
|
+
}), D(() => d.multiple, () => {
|
|
701
701
|
let e = F(d.modelValue);
|
|
702
702
|
x.value = e, q(), p(V);
|
|
703
703
|
}), te(V), ee(() => {
|
|
704
|
-
for (let e of
|
|
705
|
-
|
|
704
|
+
for (let e of E.values()) URL.revokeObjectURL(e);
|
|
705
|
+
E.clear();
|
|
706
706
|
}), s({
|
|
707
707
|
choose: W,
|
|
708
708
|
clear: G
|
|
709
709
|
}), (n, s) => (_(), a("div", xe, [
|
|
710
710
|
t.label ? (_(), a("label", {
|
|
711
711
|
key: 0,
|
|
712
|
-
for:
|
|
712
|
+
for: k.value,
|
|
713
713
|
class: "text-xs font-bold text-secondary-800 dark:text-zinc-200"
|
|
714
714
|
}, [c(C(t.label) + " ", 1), t.required ? (_(), a("span", Ce, "*")) : i("", !0)], 8, Se)) : i("", !0),
|
|
715
715
|
l(w(I), {
|
|
@@ -734,7 +734,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
734
734
|
},
|
|
735
735
|
onSelect: H
|
|
736
736
|
}, {
|
|
737
|
-
content:
|
|
737
|
+
content: O(({ removeFileCallback: c }) => [o("div", we, [x.value.length ? (_(), a("div", Oe, [(_(!0), a(e, null, y(x.value, (e, r) => (_(), a("div", {
|
|
738
738
|
key: `${e.name}-${e.size}-${e.lastModified}`,
|
|
739
739
|
class: "flex min-w-0 items-center gap-3 rounded-[10px] border border-secondary-300 bg-white p-3 dark:border-zinc-600 dark:bg-zinc-900"
|
|
740
740
|
}, [
|
|
@@ -842,7 +842,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
842
842
|
},
|
|
843
843
|
emits: ["update:modelValue"],
|
|
844
844
|
setup(e, { emit: t }) {
|
|
845
|
-
let r = e, o = t, s =
|
|
845
|
+
let r = e, o = t, s = ne(), u = T(), d = n(() => s.id === void 0 || s.id === null || s.id === "" ? u : String(s.id)), p = n(() => `${d.value}-error`), m = n(() => {
|
|
846
846
|
if (r.error) return !0;
|
|
847
847
|
let e = s["aria-invalid"];
|
|
848
848
|
return typeof e == "boolean" || e === "true" || e === "false" || e === "grammar" || e === "spelling" ? e : void 0;
|
|
@@ -937,7 +937,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
937
937
|
let t = new Set(f.value);
|
|
938
938
|
t.has(e.id) ? t.delete(e.id) : t.add(e.id), f.value = t;
|
|
939
939
|
}
|
|
940
|
-
|
|
940
|
+
D(() => [u.activeItemId, u.items], () => {
|
|
941
941
|
let e = new Set(f.value);
|
|
942
942
|
u.items.forEach((t) => {
|
|
943
943
|
p(t).length && h(t) && e.add(t.id);
|
|
@@ -981,7 +981,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
981
981
|
"aria-hidden": "true"
|
|
982
982
|
}, null, 2)) : i("", !0)
|
|
983
983
|
], 10, Be), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
984
|
-
default:
|
|
984
|
+
default: O(() => [p(e).length && ee(e) ? (_(), r(u, {
|
|
985
985
|
key: 0,
|
|
986
986
|
items: p(e),
|
|
987
987
|
"active-item-id": s.activeItemId,
|
|
@@ -1000,149 +1000,165 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1000
1000
|
}
|
|
1001
1001
|
}), We = ["aria-expanded"], Ge = { class: "top-nav-bar__brand" }, Ke = {
|
|
1002
1002
|
key: 1,
|
|
1003
|
+
class: "top-nav-bar__brand-context-divider",
|
|
1004
|
+
"aria-hidden": "true"
|
|
1005
|
+
}, qe = {
|
|
1006
|
+
key: 2,
|
|
1003
1007
|
class: "top-nav-bar__context"
|
|
1004
|
-
},
|
|
1008
|
+
}, Je = {
|
|
1009
|
+
key: 0,
|
|
1010
|
+
class: "top-nav-bar__client"
|
|
1011
|
+
}, Ye = ["src"], Xe = {
|
|
1012
|
+
key: 1,
|
|
1013
|
+
class: "top-nav-bar__client-logo"
|
|
1014
|
+
}, Ze = {
|
|
1015
|
+
key: 2,
|
|
1016
|
+
class: "top-nav-bar__client-details"
|
|
1017
|
+
}, Qe = { class: "top-nav-bar__client-name" }, $e = {
|
|
1018
|
+
key: 0,
|
|
1019
|
+
class: "top-nav-bar__client-subtitle"
|
|
1020
|
+
}, et = { class: "top-nav-bar__desktop-tools" }, tt = {
|
|
1005
1021
|
key: 0,
|
|
1006
1022
|
class: "top-nav-bar__search-shell",
|
|
1007
1023
|
"data-top-nav-search": ""
|
|
1008
|
-
},
|
|
1024
|
+
}, nt = ["value", "placeholder"], rt = ["aria-label"], it = {
|
|
1009
1025
|
key: 1,
|
|
1010
1026
|
class: "top-nav-bar__search-results",
|
|
1011
1027
|
role: "menu"
|
|
1012
|
-
},
|
|
1028
|
+
}, at = { class: "top-nav-bar__search-results-scroll" }, ot = ["disabled", "onClick"], st = {
|
|
1013
1029
|
key: 0,
|
|
1014
1030
|
class: "top-nav-bar__empty"
|
|
1015
|
-
},
|
|
1031
|
+
}, ct = {
|
|
1016
1032
|
key: 1,
|
|
1017
1033
|
class: "top-nav-bar__quick-actions",
|
|
1018
1034
|
"data-top-nav-actions": ""
|
|
1019
|
-
},
|
|
1035
|
+
}, lt = [
|
|
1020
1036
|
"disabled",
|
|
1021
1037
|
"aria-label",
|
|
1022
1038
|
"aria-pressed",
|
|
1023
1039
|
"title",
|
|
1024
1040
|
"onClick"
|
|
1025
|
-
],
|
|
1041
|
+
], ut = ["aria-expanded"], dt = {
|
|
1026
1042
|
key: 0,
|
|
1027
1043
|
class: "top-nav-bar__popover-layer top-nav-bar__actions-layer"
|
|
1028
|
-
},
|
|
1044
|
+
}, ft = {
|
|
1029
1045
|
class: "top-nav-bar__small-panel",
|
|
1030
1046
|
role: "menu"
|
|
1031
|
-
},
|
|
1047
|
+
}, pt = ["disabled", "onClick"], mt = {
|
|
1032
1048
|
key: 2,
|
|
1033
1049
|
class: "top-nav-bar__custom-actions"
|
|
1034
|
-
},
|
|
1050
|
+
}, ht = ["aria-haspopup", "aria-expanded"], gt = ["src"], _t = {
|
|
1035
1051
|
key: 1,
|
|
1036
1052
|
class: "top-nav-bar__user-avatar"
|
|
1037
|
-
},
|
|
1053
|
+
}, vt = {
|
|
1038
1054
|
key: 2,
|
|
1039
1055
|
class: "top-nav-bar__user-details"
|
|
1040
|
-
},
|
|
1056
|
+
}, yt = { class: "top-nav-bar__user-name" }, bt = {
|
|
1041
1057
|
key: 0,
|
|
1042
1058
|
class: "top-nav-bar__user-subtitle"
|
|
1043
|
-
},
|
|
1059
|
+
}, xt = {
|
|
1044
1060
|
key: 0,
|
|
1045
1061
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
1046
1062
|
"aria-hidden": "true"
|
|
1047
|
-
},
|
|
1063
|
+
}, St = {
|
|
1048
1064
|
key: 0,
|
|
1049
1065
|
class: "top-nav-bar__popover-layer top-nav-bar__user-layer"
|
|
1050
|
-
},
|
|
1066
|
+
}, Ct = {
|
|
1051
1067
|
class: "top-nav-bar__small-panel top-nav-bar__user-dropdown",
|
|
1052
1068
|
role: "menu"
|
|
1053
|
-
},
|
|
1069
|
+
}, wt = {
|
|
1054
1070
|
key: 0,
|
|
1055
1071
|
class: "top-nav-bar__user-separator",
|
|
1056
1072
|
role: "separator"
|
|
1057
|
-
},
|
|
1073
|
+
}, Tt = ["disabled", "onClick"], Et = {
|
|
1058
1074
|
class: "top-nav-bar__breadcrumbs",
|
|
1059
1075
|
"aria-label": "Breadcrumb"
|
|
1060
|
-
},
|
|
1076
|
+
}, Dt = {
|
|
1061
1077
|
key: 0,
|
|
1062
1078
|
class: "top-nav-bar__separator top-nav-bar__desktop-navigation-separator",
|
|
1063
1079
|
"aria-hidden": "true"
|
|
1064
|
-
},
|
|
1080
|
+
}, Ot = ["aria-expanded"], kt = {
|
|
1065
1081
|
key: 0,
|
|
1066
1082
|
class: "top-nav-bar__menu-layer"
|
|
1067
|
-
},
|
|
1083
|
+
}, At = {
|
|
1068
1084
|
class: "top-nav-bar__menu-panel",
|
|
1069
1085
|
role: "menu"
|
|
1070
|
-
},
|
|
1086
|
+
}, jt = { class: "top-nav-bar__section-list" }, Mt = [
|
|
1071
1087
|
"aria-expanded",
|
|
1072
1088
|
"onMouseenter",
|
|
1073
1089
|
"onClick"
|
|
1074
|
-
],
|
|
1090
|
+
], Nt = { class: "top-nav-bar__menu-label" }, Pt = { class: "top-nav-bar__item-count" }, Ft = {
|
|
1075
1091
|
key: 0,
|
|
1076
1092
|
class: "top-nav-bar__submenu-region"
|
|
1077
|
-
},
|
|
1093
|
+
}, It = [
|
|
1078
1094
|
"disabled",
|
|
1079
1095
|
"aria-haspopup",
|
|
1080
1096
|
"aria-expanded",
|
|
1081
1097
|
"onMouseenter",
|
|
1082
1098
|
"onClick"
|
|
1083
|
-
],
|
|
1099
|
+
], Lt = { class: "top-nav-bar__menu-label" }, Rt = {
|
|
1084
1100
|
key: 1,
|
|
1085
1101
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1086
1102
|
"aria-hidden": "true"
|
|
1087
|
-
},
|
|
1103
|
+
}, zt = ["onMouseenter"], Bt = {
|
|
1088
1104
|
key: 0,
|
|
1089
1105
|
class: "top-nav-bar__crumb top-nav-bar__crumb--static"
|
|
1090
|
-
},
|
|
1106
|
+
}, Vt = ["aria-expanded", "onClick"], Ht = {
|
|
1091
1107
|
key: 2,
|
|
1092
1108
|
class: "top-nav-bar__menu-layer"
|
|
1093
|
-
},
|
|
1109
|
+
}, Ut = {
|
|
1094
1110
|
class: "top-nav-bar__menu-panel top-nav-bar__breadcrumb-panel",
|
|
1095
1111
|
role: "menu"
|
|
1096
|
-
},
|
|
1112
|
+
}, Wt = [
|
|
1097
1113
|
"disabled",
|
|
1098
1114
|
"onMouseenter",
|
|
1099
1115
|
"onClick"
|
|
1100
|
-
],
|
|
1116
|
+
], Gt = { class: "top-nav-bar__menu-label" }, Kt = {
|
|
1101
1117
|
key: 1,
|
|
1102
1118
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1103
1119
|
"aria-hidden": "true"
|
|
1104
|
-
},
|
|
1120
|
+
}, qt = ["onClick"], Jt = ["title"], Yt = { class: "top-nav-bar__current-label" }, Xt = ["aria-label", "aria-pressed"], Zt = { class: "top-nav-bar__breadcrumb-actions" }, Qt = ["aria-expanded"], $t = {
|
|
1105
1121
|
key: 0,
|
|
1106
1122
|
class: "top-nav-bar__popover-layer top-nav-bar__favorites-layer"
|
|
1107
|
-
},
|
|
1123
|
+
}, en = {
|
|
1108
1124
|
class: "top-nav-bar__small-panel top-nav-bar__favorites-panel",
|
|
1109
1125
|
role: "menu"
|
|
1110
|
-
},
|
|
1126
|
+
}, tn = ["disabled", "onClick"], nn = { class: "top-nav-bar__favorites-title" }, rn = {
|
|
1111
1127
|
key: 0,
|
|
1112
1128
|
class: "top-nav-bar__favorites-separator"
|
|
1113
|
-
},
|
|
1129
|
+
}, an = {
|
|
1114
1130
|
key: 0,
|
|
1115
1131
|
class: "top-nav-bar__favorites-row top-nav-bar__desktop-only"
|
|
1116
|
-
},
|
|
1132
|
+
}, on = { class: "top-nav-bar__favorites-title" }, sn = { class: "top-nav-bar__favorites-list" }, cn = {
|
|
1117
1133
|
key: 0,
|
|
1118
1134
|
class: "top-nav-bar__favorites-separator",
|
|
1119
1135
|
"aria-hidden": "true"
|
|
1120
|
-
},
|
|
1136
|
+
}, ln = ["disabled", "onClick"], un = { class: "top-nav-bar__mobile-menu" }, dn = { class: "top-nav-bar__mobile-menu-header" }, fn = { class: "top-nav-bar__drawer-brand" }, pn = ["onClick"], mn = {
|
|
1121
1137
|
key: 0,
|
|
1122
1138
|
class: "top-nav-bar__drawer-tools"
|
|
1123
|
-
},
|
|
1139
|
+
}, hn = { class: "top-nav-bar__drawer-search" }, gn = ["value", "placeholder"], _n = ["disabled", "onClick"], vn = { class: "top-nav-bar__mobile-menu-scroll" }, yn = { class: "top-nav-bar__mobile-menu-track" }, bn = {
|
|
1124
1140
|
key: 0,
|
|
1125
1141
|
class: "top-nav-bar__mobile-favorites"
|
|
1126
|
-
},
|
|
1142
|
+
}, xn = ["aria-expanded"], Sn = { class: "top-nav-bar__mobile-item-label" }, Cn = { class: "top-nav-bar__mobile-count" }, wn = {
|
|
1127
1143
|
key: 1,
|
|
1128
1144
|
class: "top-nav-bar__drawer-empty"
|
|
1129
|
-
},
|
|
1145
|
+
}, Tn = {
|
|
1130
1146
|
key: 1,
|
|
1131
1147
|
class: "top-nav-bar__mobile-footer"
|
|
1132
|
-
},
|
|
1148
|
+
}, En = ["aria-haspopup", "aria-expanded"], Dn = ["src"], On = {
|
|
1133
1149
|
key: 1,
|
|
1134
1150
|
class: "top-nav-bar__user-avatar"
|
|
1135
|
-
},
|
|
1151
|
+
}, kn = {
|
|
1136
1152
|
key: 2,
|
|
1137
1153
|
class: "top-nav-bar__user-details"
|
|
1138
|
-
},
|
|
1154
|
+
}, An = { class: "top-nav-bar__user-name" }, jn = {
|
|
1139
1155
|
key: 0,
|
|
1140
1156
|
class: "top-nav-bar__user-subtitle"
|
|
1141
|
-
},
|
|
1157
|
+
}, Mn = {
|
|
1142
1158
|
key: 3,
|
|
1143
1159
|
class: "pi pi-chevron-down top-nav-bar__mobile-chevron",
|
|
1144
1160
|
"aria-hidden": "true"
|
|
1145
|
-
},
|
|
1161
|
+
}, Nn = 120, Pn = 24, Fn = /* @__PURE__ */ u({
|
|
1146
1162
|
__name: "TopNavBar",
|
|
1147
1163
|
props: {
|
|
1148
1164
|
sections: { default: () => [] },
|
|
@@ -1176,6 +1192,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1176
1192
|
},
|
|
1177
1193
|
supportLabel: { default: "Central de Suporte" },
|
|
1178
1194
|
actions: { default: () => [] },
|
|
1195
|
+
client: {},
|
|
1179
1196
|
user: { default: void 0 },
|
|
1180
1197
|
userMenuItems: { default: () => [] },
|
|
1181
1198
|
favoriteItems: { default: () => [] },
|
|
@@ -1207,7 +1224,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1207
1224
|
"user-click"
|
|
1208
1225
|
],
|
|
1209
1226
|
setup(s, { expose: u, emit: d }) {
|
|
1210
|
-
let f = s, h = d, x =
|
|
1227
|
+
let f = s, h = d, x = E(), S = v(null), ne = v(null), T = v(null), k = v(null), j = v(null), M = v(null), N = v(f.mobileOpen ?? !1), P = v(!1), F = v(null), I = v([]), L = v(null), R = v([]), z = v(!1), B = v(!1), V = v(!1), ae = v(null), H = v(!1), U = v(!1), W = v(!1), oe = v(!0), se = v(!1), G = v(f.searchValue ?? ""), K = v(!1), q = v(!1), ce = v(!1), J = v({
|
|
1211
1228
|
collapseActions: !1,
|
|
1212
1229
|
searchIconOnly: !1,
|
|
1213
1230
|
hideUserName: !1,
|
|
@@ -1340,30 +1357,30 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1340
1357
|
}
|
|
1341
1358
|
e.push(t);
|
|
1342
1359
|
}), e.at(-1)?.separator && e.pop(), e;
|
|
1343
|
-
}), X = n(() => !!x["user-menu"] || Ne.value.some((e) => !e.separator)), Pe = n(() => !!f.user || !!x.user), Fe = n(() => !!(x.context || x.scope || x.client || x["context-compact"])), Z = n(() => f.favoriteItems.filter(Boolean)), Ie = n(() => W.value || !oe.value), Le = n(() => Z.value.length > 0 && !Ie.value), Re = n(() => Y.value.length > 0 || f.searchable || Me.value.length > 0 || Pe.value || !!(x["drawer-menu"] || x["drawer-actions"] || x["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(() => Ne.value.map((e) => e.separator ? { separator: !0 } : {
|
|
1360
|
+
}), X = n(() => !!x["user-menu"] || Ne.value.some((e) => !e.separator)), Pe = n(() => !!f.user || !!x.user), Fe = n(() => !!(f.client || x.context || x.scope || x.client || x["context-compact"])), Z = n(() => f.favoriteItems.filter(Boolean)), Ie = n(() => W.value || !oe.value), Le = n(() => Z.value.length > 0 && !Ie.value), Re = n(() => Y.value.length > 0 || f.searchable || Me.value.length > 0 || Pe.value || !!(x["drawer-menu"] || x["drawer-actions"] || x["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(() => Ne.value.map((e) => e.separator ? { separator: !0 } : {
|
|
1344
1361
|
label: e.label,
|
|
1345
1362
|
icon: e.icon,
|
|
1346
1363
|
disabled: e.disabled,
|
|
1347
|
-
command: () =>
|
|
1364
|
+
command: () => zn(e)
|
|
1348
1365
|
})), Ve = n(() => {
|
|
1349
1366
|
let e = f.appearance, t = {}, n = (e, n) => {
|
|
1350
1367
|
n !== void 0 && n !== "" && (t[e] = n);
|
|
1351
1368
|
};
|
|
1352
1369
|
return n("--top-nav-bg", e.colors?.navigation), n("--top-nav-breadcrumb-bg", e.surfaces?.breadcrumb ?? e.colors?.navigation), n("--top-nav-drawer-bg", e.surfaces?.drawer ?? e.colors?.navigation), n("--top-nav-drawer-footer-bg", e.surfaces?.drawerFooter), n("--top-nav-fg", e.colors?.text), n("--top-nav-muted-fg", e.colors?.mutedText), n("--top-nav-accent", e.colors?.accent), n("--top-nav-menu-bg", e.surfaces?.menu), n("--top-nav-menu-fg", e.colors?.menuText), n("--top-nav-menu-hover", e.surfaces?.menuHover), n("--top-nav-menu-explored", e.surfaces?.menuExplored), n("--top-nav-border", e.colors?.border), n("--top-nav-menu-border", e.borders?.menu), n("--top-nav-menu-outline", e.borders?.menuOutline), n("--top-nav-radius", e.shape?.radius), n("--top-nav-drawer-radius", e.shape?.drawerRadius), n("--top-nav-shadow", e.shape?.shadow), n("--top-nav-mobile-active-bg", e.surfaces?.mobileActive), n("--top-nav-mobile-active-fg", e.colors?.mobileActiveText), n("--top-nav-mobile-divider", e.borders?.mobileDivider), n("--top-nav-favorites-bg", e.surfaces?.favorites), n("--top-nav-favorites-fg", e.colors?.favoritesText), n("--top-nav-favorites-border", e.borders?.favorites), n("--top-nav-favorites-shadow", e.shape?.favoritesShadow), n("--top-nav-focus-ring", e.focus?.onDark), n("--top-nav-focus-ring-light", e.focus?.onLight), n("--top-nav-current-bg", e.surfaces?.currentPage), n("--top-nav-current-border", e.borders?.currentPage), t;
|
|
1353
|
-
});
|
|
1354
|
-
function
|
|
1370
|
+
}), 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("") : "");
|
|
1371
|
+
function Fn() {
|
|
1355
1372
|
let e = Math.max(0, window.scrollY);
|
|
1356
|
-
if (!W.value && e >=
|
|
1373
|
+
if (!W.value && e >= Nn) {
|
|
1357
1374
|
W.value = !0;
|
|
1358
1375
|
return;
|
|
1359
1376
|
}
|
|
1360
|
-
W.value && e <=
|
|
1377
|
+
W.value && e <= Pn && (W.value = !1);
|
|
1361
1378
|
}
|
|
1362
|
-
function
|
|
1363
|
-
let e =
|
|
1379
|
+
function In() {
|
|
1380
|
+
let e = T.value, t = k.value;
|
|
1364
1381
|
!e || !t || (oe.value = t.scrollWidth <= e.clientWidth + 1);
|
|
1365
1382
|
}
|
|
1366
|
-
function
|
|
1383
|
+
function Ln() {
|
|
1367
1384
|
fe = window.requestAnimationFrame(() => {
|
|
1368
1385
|
fe = window.requestAnimationFrame(() => {
|
|
1369
1386
|
se.value = !0;
|
|
@@ -1374,44 +1391,44 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1374
1391
|
return typeof window < "u" && window.matchMedia?.("(hover: hover) and (pointer: fine)").matches;
|
|
1375
1392
|
}
|
|
1376
1393
|
function $(e) {
|
|
1377
|
-
e.disabled || (h("navigate", e), N.value = !1,
|
|
1394
|
+
e.disabled || (h("navigate", e), N.value = !1, er());
|
|
1378
1395
|
}
|
|
1379
|
-
function
|
|
1396
|
+
function Rn(e, t = !1) {
|
|
1380
1397
|
e.disabled || (e.kind === "aia" ? h("toggle-aia") : e.kind === "support" ? h("open-support") : h("action", e), z.value = !1, t && (N.value = !1));
|
|
1381
1398
|
}
|
|
1382
|
-
function
|
|
1399
|
+
function zn(e, t = !1) {
|
|
1383
1400
|
e.disabled || e.separator || (h("user-action", e), B.value = !1, V.value = !1, t && (N.value = !1));
|
|
1384
1401
|
}
|
|
1385
|
-
function
|
|
1402
|
+
function Bn(e) {
|
|
1386
1403
|
if (!X.value) {
|
|
1387
1404
|
h("user-click", f.user);
|
|
1388
1405
|
return;
|
|
1389
1406
|
}
|
|
1390
1407
|
ae.value?.toggle(e);
|
|
1391
1408
|
}
|
|
1392
|
-
function
|
|
1409
|
+
function Vn(e) {
|
|
1393
1410
|
G.value = e, h("update:searchValue", e), h("search", e);
|
|
1394
1411
|
}
|
|
1395
|
-
function
|
|
1396
|
-
|
|
1412
|
+
function Hn() {
|
|
1413
|
+
Vn(""), p(() => N.value ? M.value?.focus() : j.value?.focus());
|
|
1397
1414
|
}
|
|
1398
|
-
function
|
|
1415
|
+
function Un() {
|
|
1399
1416
|
Q() && (P.value = !0);
|
|
1400
1417
|
}
|
|
1401
|
-
function
|
|
1418
|
+
function Wn() {
|
|
1402
1419
|
!Q() || window.innerWidth < 1024 || (P.value = !1, F.value = null, I.value = []);
|
|
1403
1420
|
}
|
|
1404
|
-
function
|
|
1421
|
+
function Gn() {
|
|
1405
1422
|
if (Q()) {
|
|
1406
1423
|
P.value = !0;
|
|
1407
1424
|
return;
|
|
1408
1425
|
}
|
|
1409
1426
|
P.value = !P.value, P.value || (F.value = null, I.value = []);
|
|
1410
1427
|
}
|
|
1411
|
-
function
|
|
1428
|
+
function Kn(e) {
|
|
1412
1429
|
Q() && (F.value = e, I.value = []);
|
|
1413
1430
|
}
|
|
1414
|
-
function
|
|
1431
|
+
function qn(e) {
|
|
1415
1432
|
if (Q()) {
|
|
1416
1433
|
F.value = e, I.value = [];
|
|
1417
1434
|
return;
|
|
@@ -1419,7 +1436,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1419
1436
|
let t = F.value === e;
|
|
1420
1437
|
F.value = t ? null : e, I.value = [];
|
|
1421
1438
|
}
|
|
1422
|
-
function
|
|
1439
|
+
function Jn(e, t, n, r) {
|
|
1423
1440
|
if (r && !Q()) return;
|
|
1424
1441
|
let i = e.value[n];
|
|
1425
1442
|
if (!t.children?.length) {
|
|
@@ -1432,46 +1449,46 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1432
1449
|
}
|
|
1433
1450
|
e.value = i === t.id && !r ? e.value.slice(0, n) : [...e.value.slice(0, n), t.id];
|
|
1434
1451
|
}
|
|
1435
|
-
function
|
|
1436
|
-
|
|
1452
|
+
function Yn(e, t, n) {
|
|
1453
|
+
Jn(I, e, t, n);
|
|
1437
1454
|
}
|
|
1438
|
-
function
|
|
1439
|
-
|
|
1455
|
+
function Xn(e, t, n) {
|
|
1456
|
+
Jn(R, e, t, n);
|
|
1440
1457
|
}
|
|
1441
|
-
function
|
|
1458
|
+
function Zn(e) {
|
|
1442
1459
|
Q() && (L.value = e, R.value = []);
|
|
1443
1460
|
}
|
|
1444
|
-
function
|
|
1461
|
+
function Qn() {
|
|
1445
1462
|
!Q() || window.innerWidth < 1024 || (L.value = null, R.value = []);
|
|
1446
1463
|
}
|
|
1447
|
-
function
|
|
1464
|
+
function $n(e) {
|
|
1448
1465
|
if (Q()) {
|
|
1449
1466
|
L.value = e;
|
|
1450
1467
|
return;
|
|
1451
1468
|
}
|
|
1452
1469
|
L.value = L.value === e ? null : e, R.value = [];
|
|
1453
1470
|
}
|
|
1454
|
-
function
|
|
1471
|
+
function er() {
|
|
1455
1472
|
P.value = !1, F.value = null, I.value = [], L.value = null, R.value = [], z.value = !1, B.value = !1, H.value = !1, K.value = !1;
|
|
1456
1473
|
}
|
|
1457
|
-
async function
|
|
1474
|
+
async function tr() {
|
|
1458
1475
|
if (typeof window < "u" && window.innerWidth < 1024) {
|
|
1459
1476
|
N.value = !0, await p(), M.value?.focus();
|
|
1460
1477
|
return;
|
|
1461
1478
|
}
|
|
1462
|
-
q.value = !0, K.value = !0, await p(), j.value?.focus(),
|
|
1479
|
+
q.value = !0, K.value = !0, await p(), j.value?.focus(), ar();
|
|
1463
1480
|
}
|
|
1464
|
-
function
|
|
1481
|
+
function nr() {
|
|
1465
1482
|
window.setTimeout(() => {
|
|
1466
|
-
K.value = !1, J.value.searchIconOnly && !G.value.trim() && (q.value = !1,
|
|
1483
|
+
K.value = !1, J.value.searchIconOnly && !G.value.trim() && (q.value = !1, ar());
|
|
1467
1484
|
}, 150);
|
|
1468
1485
|
}
|
|
1469
|
-
function
|
|
1486
|
+
function rr() {
|
|
1470
1487
|
return Math.round(window.visualViewport?.width ?? window.innerWidth);
|
|
1471
1488
|
}
|
|
1472
|
-
async function
|
|
1473
|
-
if (typeof window > "u" || !
|
|
1474
|
-
let e = ++pe, t =
|
|
1489
|
+
async function ir() {
|
|
1490
|
+
if (typeof window > "u" || !ne.value) return;
|
|
1491
|
+
let e = ++pe, t = rr();
|
|
1475
1492
|
ce.value = t < 1024;
|
|
1476
1493
|
let n = {
|
|
1477
1494
|
collapseActions: !1,
|
|
@@ -1494,7 +1511,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1494
1511
|
"hideUserName",
|
|
1495
1512
|
"hideContextDetails"
|
|
1496
1513
|
]) {
|
|
1497
|
-
let n =
|
|
1514
|
+
let n = ne.value;
|
|
1498
1515
|
if (!n || n.scrollWidth <= n.clientWidth + 1) break;
|
|
1499
1516
|
if (J.value = {
|
|
1500
1517
|
...J.value,
|
|
@@ -1502,24 +1519,24 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1502
1519
|
}, await p(), e !== pe) return;
|
|
1503
1520
|
}
|
|
1504
1521
|
}
|
|
1505
|
-
function
|
|
1522
|
+
function ar() {
|
|
1506
1523
|
typeof window > "u" || (de !== void 0 && window.cancelAnimationFrame(de), de = window.requestAnimationFrame(() => {
|
|
1507
|
-
de = void 0,
|
|
1524
|
+
de = void 0, ir();
|
|
1508
1525
|
}));
|
|
1509
1526
|
}
|
|
1510
|
-
function
|
|
1527
|
+
function or(e) {
|
|
1511
1528
|
let t = e.target;
|
|
1512
1529
|
if (t instanceof Element && !t.closest(".top-nav-bar__mobile-menu")) {
|
|
1513
1530
|
if (!S.value?.contains(t)) {
|
|
1514
|
-
|
|
1531
|
+
er();
|
|
1515
1532
|
return;
|
|
1516
1533
|
}
|
|
1517
1534
|
t.closest("[data-top-nav-navigation]") || (P.value = !1, F.value = null, I.value = []), t.closest("[data-top-nav-breadcrumb]") || (L.value = null, R.value = []), t.closest("[data-top-nav-actions]") || (z.value = !1), t.closest("[data-top-nav-user]") || (B.value = !1), t.closest("[data-top-nav-favorites]") || (H.value = !1), t.closest("[data-top-nav-search]") || (K.value = !1);
|
|
1518
1535
|
}
|
|
1519
1536
|
}
|
|
1520
|
-
function
|
|
1537
|
+
function sr(e) {
|
|
1521
1538
|
if ((e.ctrlKey || e.metaKey) && e.key.toLocaleLowerCase() === "k" && f.searchable) {
|
|
1522
|
-
e.preventDefault(),
|
|
1539
|
+
e.preventDefault(), tr();
|
|
1523
1540
|
return;
|
|
1524
1541
|
}
|
|
1525
1542
|
if (e.key === "Escape") {
|
|
@@ -1527,10 +1544,10 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1527
1544
|
ae.value?.hide();
|
|
1528
1545
|
return;
|
|
1529
1546
|
}
|
|
1530
|
-
N.value &&= !1,
|
|
1547
|
+
N.value &&= !1, er(), J.value.searchIconOnly && !G.value.trim() && (q.value = !1);
|
|
1531
1548
|
}
|
|
1532
1549
|
}
|
|
1533
|
-
function
|
|
1550
|
+
function cr() {
|
|
1534
1551
|
if (!X.value) {
|
|
1535
1552
|
h("user-click", f.user);
|
|
1536
1553
|
return;
|
|
@@ -1541,33 +1558,33 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1541
1558
|
}
|
|
1542
1559
|
B.value = !B.value;
|
|
1543
1560
|
}
|
|
1544
|
-
function
|
|
1561
|
+
function lr() {
|
|
1545
1562
|
if (Q()) {
|
|
1546
1563
|
H.value = !0;
|
|
1547
1564
|
return;
|
|
1548
1565
|
}
|
|
1549
1566
|
H.value = !H.value;
|
|
1550
1567
|
}
|
|
1551
|
-
return
|
|
1568
|
+
return D(() => f.searchValue, (e) => {
|
|
1552
1569
|
e !== void 0 && e !== G.value && (G.value = e);
|
|
1553
|
-
}),
|
|
1570
|
+
}), D(() => f.mobileOpen, (e) => {
|
|
1554
1571
|
e !== void 0 && e !== N.value && (N.value = e);
|
|
1555
|
-
}),
|
|
1572
|
+
}), D(N, (e) => h("update:mobileOpen", e)), D([
|
|
1556
1573
|
Y,
|
|
1557
1574
|
() => f.user,
|
|
1558
1575
|
Me
|
|
1559
|
-
], () => p(
|
|
1560
|
-
document.addEventListener("keydown",
|
|
1561
|
-
|
|
1576
|
+
], () => p(ar), { deep: !0 }), D(Z, () => p(In), { deep: !0 }), te(() => {
|
|
1577
|
+
document.addEventListener("keydown", sr), document.addEventListener("pointerdown", or), window.addEventListener("resize", ar), window.visualViewport?.addEventListener("resize", ar), window.addEventListener("resize", In), window.addEventListener("scroll", Fn, { passive: !0 }), typeof ResizeObserver < "u" && (le = new ResizeObserver(ar), ne.value && le.observe(ne.value), ue = new ResizeObserver(In), T.value && ue.observe(T.value)), ar(), p(() => {
|
|
1578
|
+
In(), Fn(), Ln();
|
|
1562
1579
|
});
|
|
1563
1580
|
}), ee(() => {
|
|
1564
|
-
document.removeEventListener("keydown",
|
|
1581
|
+
document.removeEventListener("keydown", sr), document.removeEventListener("pointerdown", or), window.removeEventListener("resize", ar), window.visualViewport?.removeEventListener("resize", ar), window.removeEventListener("resize", In), window.removeEventListener("scroll", Fn), le?.disconnect(), ue?.disconnect(), de !== void 0 && window.cancelAnimationFrame(de), fe !== void 0 && window.cancelAnimationFrame(fe);
|
|
1565
1582
|
}), u({
|
|
1566
|
-
close:
|
|
1583
|
+
close: er,
|
|
1567
1584
|
closeDrawer: () => {
|
|
1568
1585
|
N.value = !1;
|
|
1569
1586
|
},
|
|
1570
|
-
focusSearch:
|
|
1587
|
+
focusSearch: tr,
|
|
1571
1588
|
openDrawer: () => {
|
|
1572
1589
|
N.value = !0;
|
|
1573
1590
|
}
|
|
@@ -1580,7 +1597,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1580
1597
|
}, [
|
|
1581
1598
|
o("header", {
|
|
1582
1599
|
ref_key: "headerRef",
|
|
1583
|
-
ref:
|
|
1600
|
+
ref: ne,
|
|
1584
1601
|
class: m(["top-nav-bar__header", { "top-nav-bar__header--context-compact": J.value.hideContextDetails }])
|
|
1585
1602
|
}, [
|
|
1586
1603
|
Re.value ? (_(), a("button", {
|
|
@@ -1595,19 +1612,37 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1595
1612
|
"aria-hidden": "true"
|
|
1596
1613
|
}, null, -1)]], 8, We)) : i("", !0),
|
|
1597
1614
|
o("div", Ge, [b(n.$slots, "brand", { compact: J.value.hideContextDetails })]),
|
|
1598
|
-
Fe.value ? (_(), a("div", Ke
|
|
1615
|
+
Fe.value ? (_(), a("div", Ke)) : i("", !0),
|
|
1616
|
+
Fe.value ? (_(), a("div", qe, [J.value.hideContextDetails && n.$slots["context-compact"] ? b(n.$slots, "context-compact", {
|
|
1617
|
+
client: s.client,
|
|
1618
|
+
compact: !0
|
|
1619
|
+
}, void 0, void 0, 0) : n.$slots.context ? b(n.$slots, "context", {
|
|
1620
|
+
client: s.client,
|
|
1621
|
+
compact: J.value.hideContextDetails
|
|
1622
|
+
}, void 0, void 0, 1) : n.$slots.scope ? b(n.$slots, "scope", {
|
|
1623
|
+
client: s.client,
|
|
1624
|
+
compact: J.value.hideContextDetails
|
|
1625
|
+
}, void 0, void 0, 2) : b(n.$slots, "client", {
|
|
1626
|
+
client: s.client,
|
|
1627
|
+
compact: J.value.hideContextDetails
|
|
1628
|
+
}, () => [s.client ? (_(), a("div", Je, [s.client.logoUrl ? (_(), a("img", {
|
|
1629
|
+
key: 0,
|
|
1630
|
+
src: s.client.logoUrl,
|
|
1631
|
+
alt: "",
|
|
1632
|
+
class: "top-nav-bar__client-logo"
|
|
1633
|
+
}, null, 8, Ye)) : (_(), a("span", Xe, C(He.value), 1)), J.value.hideContextDetails ? i("", !0) : (_(), a("span", Ze, [o("span", Qe, C(s.client.name), 1), s.client.subtitle ? (_(), a("span", $e, C(s.client.subtitle), 1)) : i("", !0)]))])) : i("", !0)], void 0, 3)])) : i("", !0),
|
|
1599
1634
|
u[24] ||= o("div", {
|
|
1600
1635
|
class: "top-nav-bar__spacer",
|
|
1601
1636
|
"aria-hidden": "true"
|
|
1602
1637
|
}, null, -1),
|
|
1603
|
-
o("div",
|
|
1604
|
-
s.searchable ? (_(), a("div",
|
|
1638
|
+
o("div", et, [
|
|
1639
|
+
s.searchable ? (_(), a("div", tt, [J.value.searchIconOnly && !q.value ? (_(), a("button", {
|
|
1605
1640
|
key: 0,
|
|
1606
1641
|
class: "top-nav-bar__square-button",
|
|
1607
1642
|
type: "button",
|
|
1608
1643
|
"aria-label": "Pesquisar no menu",
|
|
1609
1644
|
title: "Pesquisar no menu (Ctrl+K)",
|
|
1610
|
-
onClick:
|
|
1645
|
+
onClick: tr
|
|
1611
1646
|
}, [...u[20] ||= [o("i", {
|
|
1612
1647
|
class: "pi pi-search",
|
|
1613
1648
|
"aria-hidden": "true"
|
|
@@ -1628,21 +1663,21 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1628
1663
|
placeholder: s.searchPlaceholder,
|
|
1629
1664
|
"aria-label": "Pesquisar no menu",
|
|
1630
1665
|
onFocus: u[1] ||= (e) => K.value = !0,
|
|
1631
|
-
onBlur:
|
|
1632
|
-
onInput: u[2] ||= (e) =>
|
|
1633
|
-
}, null, 40,
|
|
1666
|
+
onBlur: nr,
|
|
1667
|
+
onInput: u[2] ||= (e) => Vn(e.target.value)
|
|
1668
|
+
}, null, 40, nt),
|
|
1634
1669
|
G.value || J.value.searchIconOnly && q.value ? (_(), a("button", {
|
|
1635
1670
|
key: 0,
|
|
1636
1671
|
class: "top-nav-bar__search-clear",
|
|
1637
1672
|
type: "button",
|
|
1638
1673
|
"aria-label": G.value ? "Limpar pesquisa" : "Fechar pesquisa",
|
|
1639
1674
|
onMousedown: u[3] ||= A(() => {}, ["prevent"]),
|
|
1640
|
-
onClick: u[4] ||= (e) => G.value ?
|
|
1675
|
+
onClick: u[4] ||= (e) => G.value ? Hn() : q.value = !1
|
|
1641
1676
|
}, [...u[21] ||= [o("i", {
|
|
1642
1677
|
class: "pi pi-times",
|
|
1643
1678
|
"aria-hidden": "true"
|
|
1644
|
-
}, null, -1)]], 40,
|
|
1645
|
-
K.value ? (_(), a("div",
|
|
1679
|
+
}, null, -1)]], 40, rt)) : i("", !0),
|
|
1680
|
+
K.value ? (_(), a("div", it, [o("div", at, [b(n.$slots, "search-results", {
|
|
1646
1681
|
items: ye.value,
|
|
1647
1682
|
select: $
|
|
1648
1683
|
}, () => [(_(!0), a(e, null, y(ye.value, (e) => (_(), a("button", {
|
|
@@ -1657,9 +1692,9 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1657
1692
|
key: 0,
|
|
1658
1693
|
class: m(e.icon),
|
|
1659
1694
|
"aria-hidden": "true"
|
|
1660
|
-
}, null, 2)) : i("", !0), o("span", null, C(e.label), 1)], 40,
|
|
1695
|
+
}, null, 2)) : i("", !0), o("span", null, C(e.label), 1)], 40, ot))), 128)), ye.value.length ? i("", !0) : (_(), a("span", st, "Nenhum item encontrado."))])])])) : i("", !0)
|
|
1661
1696
|
], 2))])) : i("", !0),
|
|
1662
|
-
Me.value.length ? (_(), a("div",
|
|
1697
|
+
Me.value.length ? (_(), a("div", ct, [J.value.collapseActions ? (_(), a(e, { key: 1 }, [o("button", {
|
|
1663
1698
|
class: "top-nav-bar__square-button",
|
|
1664
1699
|
type: "button",
|
|
1665
1700
|
"aria-label": "Mais ações",
|
|
@@ -1668,17 +1703,17 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1668
1703
|
}, [...u[23] ||= [o("i", {
|
|
1669
1704
|
class: "pi pi-ellipsis-h",
|
|
1670
1705
|
"aria-hidden": "true"
|
|
1671
|
-
}, null, -1)]], 8,
|
|
1706
|
+
}, null, -1)]], 8, ut), z.value ? (_(), a("div", dt, [o("div", ft, [(_(!0), a(e, null, y(Me.value, (e) => (_(), a("button", {
|
|
1672
1707
|
key: e.id,
|
|
1673
1708
|
class: "top-nav-bar__menu-item",
|
|
1674
1709
|
type: "button",
|
|
1675
1710
|
role: "menuitem",
|
|
1676
1711
|
disabled: e.disabled,
|
|
1677
|
-
onClick: (t) =>
|
|
1712
|
+
onClick: (t) => Rn(e)
|
|
1678
1713
|
}, [o("i", {
|
|
1679
1714
|
class: m(e.icon),
|
|
1680
1715
|
"aria-hidden": "true"
|
|
1681
|
-
}, null, 2), o("span", null, C(e.label), 1)], 8,
|
|
1716
|
+
}, null, 2), o("span", null, C(e.label), 1)], 8, pt))), 128))])])) : i("", !0)], 64)) : (_(!0), a(e, { key: 0 }, y(Me.value, (e) => (_(), a("button", {
|
|
1682
1717
|
key: e.id,
|
|
1683
1718
|
class: m(["top-nav-bar__square-button", { "top-nav-bar__square-button--active": e.kind === "aia" && s.aiaActive }]),
|
|
1684
1719
|
type: "button",
|
|
@@ -1686,7 +1721,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1686
1721
|
"aria-label": e.label,
|
|
1687
1722
|
"aria-pressed": e.kind === "aia" ? s.aiaActive : void 0,
|
|
1688
1723
|
title: e.label,
|
|
1689
|
-
onClick: (t) =>
|
|
1724
|
+
onClick: (t) => Rn(e)
|
|
1690
1725
|
}, [e.kind === "aia" ? b(n.$slots, "aia-icon", {}, () => [o("i", {
|
|
1691
1726
|
class: m(e.icon),
|
|
1692
1727
|
"aria-hidden": "true"
|
|
@@ -1697,10 +1732,10 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1697
1732
|
key: 2,
|
|
1698
1733
|
class: m(e.icon),
|
|
1699
1734
|
"aria-hidden": "true"
|
|
1700
|
-
}, null, 2))], 10,
|
|
1701
|
-
n.$slots.actions ? (_(), a("div",
|
|
1735
|
+
}, null, 2))], 10, lt))), 128))])) : i("", !0),
|
|
1736
|
+
n.$slots.actions ? (_(), a("div", mt, [b(n.$slots, "actions", {
|
|
1702
1737
|
compact: J.value.collapseActions,
|
|
1703
|
-
close:
|
|
1738
|
+
close: er
|
|
1704
1739
|
})])) : i("", !0),
|
|
1705
1740
|
Pe.value ? (_(), a("div", {
|
|
1706
1741
|
key: 3,
|
|
@@ -1713,7 +1748,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1713
1748
|
type: "button",
|
|
1714
1749
|
"aria-haspopup": X.value ? "menu" : void 0,
|
|
1715
1750
|
"aria-expanded": X.value ? B.value : void 0,
|
|
1716
|
-
onClick:
|
|
1751
|
+
onClick: cr
|
|
1717
1752
|
}, [b(n.$slots, "user", {
|
|
1718
1753
|
user: s.user,
|
|
1719
1754
|
compact: J.value.hideUserName
|
|
@@ -1722,42 +1757,42 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1722
1757
|
src: s.user.avatarUrl,
|
|
1723
1758
|
alt: "",
|
|
1724
1759
|
class: "top-nav-bar__user-avatar"
|
|
1725
|
-
}, null, 8,
|
|
1760
|
+
}, null, 8, gt)) : (_(), a("span", _t, C(ze.value), 1)), s.user && !J.value.hideUserName ? (_(), a("span", vt, [o("span", yt, C(s.user.name), 1), s.user.subtitle ? (_(), a("span", bt, C(s.user.subtitle), 1)) : i("", !0)])) : i("", !0)]), X.value ? (_(), a("i", xt)) : i("", !0)], 8, ht), X.value && B.value ? (_(), a("div", St, [o("div", Ct, [b(n.$slots, "user-menu", {
|
|
1726
1761
|
items: Ne.value,
|
|
1727
|
-
select:
|
|
1728
|
-
}, () => [(_(!0), a(e, null, y(Ne.value, (t) => (_(), a(e, { key: t.id }, [t.separator ? (_(), a("div",
|
|
1762
|
+
select: zn
|
|
1763
|
+
}, () => [(_(!0), a(e, null, y(Ne.value, (t) => (_(), a(e, { key: t.id }, [t.separator ? (_(), a("div", wt)) : (_(), a("button", {
|
|
1729
1764
|
key: 1,
|
|
1730
1765
|
class: "top-nav-bar__menu-item",
|
|
1731
1766
|
type: "button",
|
|
1732
1767
|
role: "menuitem",
|
|
1733
1768
|
disabled: t.disabled,
|
|
1734
|
-
onClick: (e) =>
|
|
1769
|
+
onClick: (e) => zn(t)
|
|
1735
1770
|
}, [t.icon ? (_(), a("i", {
|
|
1736
1771
|
key: 0,
|
|
1737
1772
|
class: m(t.icon),
|
|
1738
1773
|
"aria-hidden": "true"
|
|
1739
|
-
}, null, 2)) : i("", !0), o("span", null, C(t.label), 1)], 8,
|
|
1774
|
+
}, null, 2)) : i("", !0), o("span", null, C(t.label), 1)], 8, Tt))], 64))), 128))])])])) : i("", !0)], 32)) : i("", !0)
|
|
1740
1775
|
])
|
|
1741
1776
|
], 2),
|
|
1742
|
-
o("div",
|
|
1777
|
+
o("div", Et, [
|
|
1743
1778
|
o("button", {
|
|
1744
1779
|
class: "top-nav-bar__crumb",
|
|
1745
1780
|
type: "button",
|
|
1746
1781
|
onClick: u[9] ||= (e) => $(s.homeItem)
|
|
1747
1782
|
}, [l(w(be), { icon: w(he) }, null, 8, ["icon"]), o("span", null, C(s.homeItem.label), 1)]),
|
|
1748
|
-
Y.value.length ? (_(), a("span",
|
|
1783
|
+
Y.value.length ? (_(), a("span", Dt, "/")) : i("", !0),
|
|
1749
1784
|
Y.value.length ? (_(), a("div", {
|
|
1750
1785
|
key: 1,
|
|
1751
1786
|
class: "top-nav-bar__dropdown top-nav-bar__desktop-navigation",
|
|
1752
1787
|
"data-top-nav-navigation": "",
|
|
1753
|
-
onMouseenter:
|
|
1754
|
-
onMouseleave:
|
|
1788
|
+
onMouseenter: Un,
|
|
1789
|
+
onMouseleave: Wn
|
|
1755
1790
|
}, [o("button", {
|
|
1756
1791
|
class: "top-nav-bar__crumb",
|
|
1757
1792
|
type: "button",
|
|
1758
1793
|
"aria-haspopup": "menu",
|
|
1759
1794
|
"aria-expanded": P.value,
|
|
1760
|
-
onClick:
|
|
1795
|
+
onClick: Gn
|
|
1761
1796
|
}, [
|
|
1762
1797
|
u[25] ||= o("i", {
|
|
1763
1798
|
class: "pi pi-bars",
|
|
@@ -1768,28 +1803,28 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1768
1803
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
1769
1804
|
"aria-hidden": "true"
|
|
1770
1805
|
}, null, -1)
|
|
1771
|
-
], 8,
|
|
1806
|
+
], 8, Ot), P.value ? (_(), a("div", kt, [o("div", At, [o("div", jt, [(_(!0), a(e, null, y(Y.value, (e) => (_(), a("button", {
|
|
1772
1807
|
key: e.id,
|
|
1773
1808
|
class: m(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--explored": F.value === e.id }]),
|
|
1774
1809
|
type: "button",
|
|
1775
1810
|
role: "menuitem",
|
|
1776
1811
|
"aria-haspopup": "menu",
|
|
1777
1812
|
"aria-expanded": F.value === e.id,
|
|
1778
|
-
onMouseenter: (t) =>
|
|
1779
|
-
onClick: (t) =>
|
|
1813
|
+
onMouseenter: (t) => Kn(e.id),
|
|
1814
|
+
onClick: (t) => qn(e.id)
|
|
1780
1815
|
}, [
|
|
1781
1816
|
e.icon ? (_(), a("i", {
|
|
1782
1817
|
key: 0,
|
|
1783
1818
|
class: m(e.icon),
|
|
1784
1819
|
"aria-hidden": "true"
|
|
1785
1820
|
}, null, 2)) : i("", !0),
|
|
1786
|
-
o("span",
|
|
1787
|
-
o("span",
|
|
1821
|
+
o("span", Nt, C(e.label), 1),
|
|
1822
|
+
o("span", Pt, C(e.children.length), 1),
|
|
1788
1823
|
u[27] ||= o("i", {
|
|
1789
1824
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1790
1825
|
"aria-hidden": "true"
|
|
1791
1826
|
}, null, -1)
|
|
1792
|
-
], 42,
|
|
1827
|
+
], 42, Mt))), 128))]), Oe.value ? (_(), a("div", Ft, [(_(!0), a(e, null, y(Ae.value, (t, n) => (_(), a("div", {
|
|
1793
1828
|
key: `navigation-level-${n}`,
|
|
1794
1829
|
class: m(["top-nav-bar__cascade-level", { "top-nav-bar__section-items": n === 0 }]),
|
|
1795
1830
|
role: "menu"
|
|
@@ -1804,17 +1839,17 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1804
1839
|
disabled: e.disabled,
|
|
1805
1840
|
"aria-haspopup": e.children?.length ? "menu" : void 0,
|
|
1806
1841
|
"aria-expanded": e.children?.length ? I.value[n] === e.id : void 0,
|
|
1807
|
-
onMouseenter: (t) =>
|
|
1808
|
-
onClick: (t) =>
|
|
1842
|
+
onMouseenter: (t) => Yn(e, n, !0),
|
|
1843
|
+
onClick: (t) => Yn(e, n, !1)
|
|
1809
1844
|
}, [
|
|
1810
1845
|
e.icon ? (_(), a("i", {
|
|
1811
1846
|
key: 0,
|
|
1812
1847
|
class: m(e.icon),
|
|
1813
1848
|
"aria-hidden": "true"
|
|
1814
1849
|
}, null, 2)) : i("", !0),
|
|
1815
|
-
o("span",
|
|
1816
|
-
e.children?.length ? (_(), a("i",
|
|
1817
|
-
], 42,
|
|
1850
|
+
o("span", Lt, C(e.label), 1),
|
|
1851
|
+
e.children?.length ? (_(), a("i", Rt)) : i("", !0)
|
|
1852
|
+
], 42, It))), 128))]))), 128))], 2))), 128))])) : i("", !0)])])) : i("", !0)], 32)) : i("", !0),
|
|
1818
1853
|
(_(!0), a(e, null, y(Ee.value, (t, n) => (_(), a(e, { key: t.id }, [o("span", {
|
|
1819
1854
|
class: m(["top-nav-bar__separator", { "top-nav-bar__separator--current": !t.to && n === Ee.value.length - 1 }]),
|
|
1820
1855
|
"aria-hidden": "true"
|
|
@@ -1822,19 +1857,19 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1822
1857
|
key: 0,
|
|
1823
1858
|
class: "top-nav-bar__dropdown top-nav-bar__breadcrumb-dropdown",
|
|
1824
1859
|
"data-top-nav-breadcrumb": "",
|
|
1825
|
-
onMouseenter: (e) => !ce.value &&
|
|
1826
|
-
onMouseleave: u[10] ||= (e) => !ce.value &&
|
|
1827
|
-
}, [ce.value ? (_(), a("span",
|
|
1860
|
+
onMouseenter: (e) => !ce.value && Zn(t.id),
|
|
1861
|
+
onMouseleave: u[10] ||= (e) => !ce.value && Qn()
|
|
1862
|
+
}, [ce.value ? (_(), a("span", Bt, C(t.label), 1)) : (_(), a("button", {
|
|
1828
1863
|
key: 1,
|
|
1829
1864
|
class: "top-nav-bar__crumb",
|
|
1830
1865
|
type: "button",
|
|
1831
1866
|
"aria-haspopup": "menu",
|
|
1832
1867
|
"aria-expanded": L.value === t.id,
|
|
1833
|
-
onClick: (e) =>
|
|
1868
|
+
onClick: (e) => $n(t.id)
|
|
1834
1869
|
}, [o("span", null, C(t.label), 1), u[28] ||= o("i", {
|
|
1835
1870
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
1836
1871
|
"aria-hidden": "true"
|
|
1837
|
-
}, null, -1)], 8,
|
|
1872
|
+
}, null, -1)], 8, Vt)), !ce.value && L.value === t.id ? (_(), a("div", Ht, [o("div", Ut, [(_(!0), a(e, null, y(ke(De(t)?.children ?? [], R.value), (n, r) => (_(), a("div", {
|
|
1838
1873
|
key: `breadcrumb-${t.id}-${r}`,
|
|
1839
1874
|
class: m(["top-nav-bar__cascade-level", { "top-nav-bar__breadcrumb-main-items": r === 0 }])
|
|
1840
1875
|
}, [(_(!0), a(e, null, y(je(n), (n, s) => (_(), a("div", {
|
|
@@ -1846,26 +1881,26 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1846
1881
|
type: "button",
|
|
1847
1882
|
role: "menuitem",
|
|
1848
1883
|
disabled: e.disabled,
|
|
1849
|
-
onMouseenter: (t) =>
|
|
1850
|
-
onClick: (t) =>
|
|
1884
|
+
onMouseenter: (t) => Xn(e, r, !0),
|
|
1885
|
+
onClick: (t) => Xn(e, r, !1)
|
|
1851
1886
|
}, [
|
|
1852
1887
|
e.icon ? (_(), a("i", {
|
|
1853
1888
|
key: 0,
|
|
1854
1889
|
class: m(e.icon),
|
|
1855
1890
|
"aria-hidden": "true"
|
|
1856
1891
|
}, null, 2)) : i("", !0),
|
|
1857
|
-
o("span",
|
|
1858
|
-
e.children?.length ? (_(), a("i",
|
|
1859
|
-
], 42,
|
|
1892
|
+
o("span", Gt, C(e.label), 1),
|
|
1893
|
+
e.children?.length ? (_(), a("i", Kt)) : i("", !0)
|
|
1894
|
+
], 42, Wt))), 128))]))), 128))], 2))), 128))])])) : i("", !0)], 40, zt)) : t.to ? (_(), a("button", {
|
|
1860
1895
|
key: 1,
|
|
1861
1896
|
class: "top-nav-bar__crumb",
|
|
1862
1897
|
type: "button",
|
|
1863
1898
|
onClick: (e) => $(t)
|
|
1864
|
-
}, C(t.label), 9,
|
|
1899
|
+
}, C(t.label), 9, qt)) : (_(), a("span", {
|
|
1865
1900
|
key: 2,
|
|
1866
1901
|
class: "top-nav-bar__current",
|
|
1867
1902
|
title: t.label
|
|
1868
|
-
}, [o("span",
|
|
1903
|
+
}, [o("span", Yt, C(t.label), 1), s.showFavoriteToggle ? (_(), a("button", {
|
|
1869
1904
|
key: 0,
|
|
1870
1905
|
class: "top-nav-bar__favorite-toggle",
|
|
1871
1906
|
type: "button",
|
|
@@ -1875,12 +1910,12 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1875
1910
|
}, [o("i", {
|
|
1876
1911
|
class: m(s.favoriteActive ? "pi pi-star-fill" : "pi pi-star"),
|
|
1877
1912
|
"aria-hidden": "true"
|
|
1878
|
-
}, null, 2)], 8,
|
|
1879
|
-
o("div",
|
|
1913
|
+
}, null, 2)], 8, Xt)) : i("", !0)], 8, Jt))], 64))), 128)),
|
|
1914
|
+
o("div", Zt, [l(t, {
|
|
1880
1915
|
name: "top-nav-bar-favorites-trigger",
|
|
1881
1916
|
css: se.value
|
|
1882
1917
|
}, {
|
|
1883
|
-
default:
|
|
1918
|
+
default: O(() => [Ie.value && Z.value.length ? (_(), a("div", {
|
|
1884
1919
|
key: 0,
|
|
1885
1920
|
class: "top-nav-bar__favorites-menu top-nav-bar__desktop-only",
|
|
1886
1921
|
"data-top-nav-favorites": "",
|
|
@@ -1891,7 +1926,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1891
1926
|
type: "button",
|
|
1892
1927
|
"aria-haspopup": "menu",
|
|
1893
1928
|
"aria-expanded": H.value,
|
|
1894
|
-
onClick:
|
|
1929
|
+
onClick: lr
|
|
1895
1930
|
}, [
|
|
1896
1931
|
u[29] ||= o("i", {
|
|
1897
1932
|
class: "pi pi-star-fill top-nav-bar__accent",
|
|
@@ -1902,7 +1937,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1902
1937
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
1903
1938
|
"aria-hidden": "true"
|
|
1904
1939
|
}, null, -1)
|
|
1905
|
-
], 8,
|
|
1940
|
+
], 8, Qt), H.value ? (_(), a("div", $t, [o("div", en, [(_(!0), a(e, null, y(Z.value, (e) => (_(), a("button", {
|
|
1906
1941
|
key: e.id,
|
|
1907
1942
|
class: "top-nav-bar__menu-item",
|
|
1908
1943
|
type: "button",
|
|
@@ -1913,26 +1948,26 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1913
1948
|
key: 0,
|
|
1914
1949
|
class: m(e.icon),
|
|
1915
1950
|
"aria-hidden": "true"
|
|
1916
|
-
}, null, 2)) : i("", !0), o("span", null, C(e.label), 1)], 8,
|
|
1951
|
+
}, null, 2)) : i("", !0), o("span", null, C(e.label), 1)], 8, tn))), 128))])])) : i("", !0)], 32)) : i("", !0)]),
|
|
1917
1952
|
_: 1
|
|
1918
1953
|
}, 8, ["css"]), b(n.$slots, "breadcrumb-actions")])
|
|
1919
1954
|
]),
|
|
1920
1955
|
o("div", {
|
|
1921
1956
|
ref_key: "favoritesMeasureContainerRef",
|
|
1922
|
-
ref:
|
|
1957
|
+
ref: T,
|
|
1923
1958
|
class: "top-nav-bar__favorites-measure",
|
|
1924
1959
|
"aria-hidden": "true"
|
|
1925
1960
|
}, [o("div", {
|
|
1926
1961
|
ref_key: "favoritesMeasureContentRef",
|
|
1927
|
-
ref:
|
|
1962
|
+
ref: k,
|
|
1928
1963
|
class: "top-nav-bar__favorites-measure-content"
|
|
1929
|
-
}, [o("span",
|
|
1964
|
+
}, [o("span", nn, [u[31] ||= o("i", {
|
|
1930
1965
|
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
1931
1966
|
"aria-hidden": "true"
|
|
1932
1967
|
}, null, -1), o("span", null, C(s.favoriteLabel), 1)]), (_(!0), a(e, null, y(Z.value, (e, t) => (_(), a("span", {
|
|
1933
1968
|
key: `measure-${e.id}`,
|
|
1934
1969
|
class: "top-nav-bar__favorites-measure-item"
|
|
1935
|
-
}, [t > 0 ? (_(), a("span",
|
|
1970
|
+
}, [t > 0 ? (_(), a("span", rn, "|")) : i("", !0), o("span", null, [e.icon ? (_(), a("i", {
|
|
1936
1971
|
key: 0,
|
|
1937
1972
|
class: m(e.icon),
|
|
1938
1973
|
"aria-hidden": "true"
|
|
@@ -1941,10 +1976,10 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1941
1976
|
name: "top-nav-bar-favorites-row",
|
|
1942
1977
|
css: se.value
|
|
1943
1978
|
}, {
|
|
1944
|
-
default:
|
|
1979
|
+
default: O(() => [Le.value ? (_(), a("div", an, [o("span", on, [u[32] ||= o("i", {
|
|
1945
1980
|
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
1946
1981
|
"aria-hidden": "true"
|
|
1947
|
-
}, null, -1), o("span", null, C(s.favoriteLabel), 1)]), o("div",
|
|
1982
|
+
}, null, -1), o("span", null, C(s.favoriteLabel), 1)]), o("div", sn, [(_(!0), a(e, null, y(Z.value, (t, n) => (_(), a(e, { key: `row-${t.id}` }, [n > 0 ? (_(), a("span", cn, "|")) : i("", !0), o("button", {
|
|
1948
1983
|
class: "top-nav-bar__favorites-row-item",
|
|
1949
1984
|
type: "button",
|
|
1950
1985
|
disabled: t.disabled,
|
|
@@ -1953,7 +1988,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1953
1988
|
key: 0,
|
|
1954
1989
|
class: m(t.icon),
|
|
1955
1990
|
"aria-hidden": "true"
|
|
1956
|
-
}, null, 2)) : i("", !0), o("span", null, C(t.label), 1)], 8,
|
|
1991
|
+
}, null, 2)) : i("", !0), o("span", null, C(t.label), 1)], 8, ln)], 64))), 128))])])) : i("", !0)]),
|
|
1957
1992
|
_: 1
|
|
1958
1993
|
}, 8, ["css"]),
|
|
1959
1994
|
l(w(re), {
|
|
@@ -1963,8 +1998,8 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1963
1998
|
class: "top-nav-bar__mobile-drawer",
|
|
1964
1999
|
style: g([Ve.value, { width: "var(--top-nav-drawer-width, min(22rem, calc(100vw - 1.5rem)))" }])
|
|
1965
2000
|
}, {
|
|
1966
|
-
container:
|
|
1967
|
-
o("header",
|
|
2001
|
+
container: O(({ closeCallback: c }) => [o("div", un, [
|
|
2002
|
+
o("header", dn, [b(n.$slots, "drawer-header", { close: c }, () => [o("div", fn, [b(n.$slots, "drawer-brand", {}, () => [b(n.$slots, "brand", { compact: !1 })])]), o("button", {
|
|
1968
2003
|
class: "top-nav-bar__drawer-close top-nav-bar__square-button",
|
|
1969
2004
|
type: "button",
|
|
1970
2005
|
"aria-label": "Fechar navegação",
|
|
@@ -1972,12 +2007,12 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1972
2007
|
}, [...u[33] ||= [o("i", {
|
|
1973
2008
|
class: "pi pi-times",
|
|
1974
2009
|
"aria-hidden": "true"
|
|
1975
|
-
}, null, -1)]], 8,
|
|
1976
|
-
s.searchable || Me.value.length || n.$slots["drawer-actions"] ? (_(), a("div",
|
|
2010
|
+
}, null, -1)]], 8, pn)])]),
|
|
2011
|
+
s.searchable || Me.value.length || n.$slots["drawer-actions"] ? (_(), a("div", mn, [s.searchable ? b(n.$slots, "drawer-search", {
|
|
1977
2012
|
query: G.value,
|
|
1978
|
-
update:
|
|
1979
|
-
clear:
|
|
1980
|
-
}, () => [o("div",
|
|
2013
|
+
update: Vn,
|
|
2014
|
+
clear: Hn
|
|
2015
|
+
}, () => [o("div", hn, [
|
|
1981
2016
|
u[35] ||= o("i", {
|
|
1982
2017
|
class: "pi pi-search",
|
|
1983
2018
|
"aria-hidden": "true"
|
|
@@ -1990,35 +2025,35 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
1990
2025
|
role: "searchbox",
|
|
1991
2026
|
placeholder: s.searchPlaceholder,
|
|
1992
2027
|
"aria-label": "Pesquisar no menu",
|
|
1993
|
-
onInput: u[14] ||= (e) =>
|
|
1994
|
-
}, null, 40,
|
|
2028
|
+
onInput: u[14] ||= (e) => Vn(e.target.value)
|
|
2029
|
+
}, null, 40, gn),
|
|
1995
2030
|
G.value ? (_(), a("button", {
|
|
1996
2031
|
key: 0,
|
|
1997
2032
|
class: "top-nav-bar__search-clear",
|
|
1998
2033
|
type: "button",
|
|
1999
2034
|
"aria-label": "Limpar pesquisa",
|
|
2000
|
-
onClick:
|
|
2035
|
+
onClick: Hn
|
|
2001
2036
|
}, [...u[34] ||= [o("i", {
|
|
2002
2037
|
class: "pi pi-times",
|
|
2003
2038
|
"aria-hidden": "true"
|
|
2004
2039
|
}, null, -1)]])) : i("", !0)
|
|
2005
2040
|
])], void 0, 0) : i("", !0), b(n.$slots, "drawer-actions", {
|
|
2006
2041
|
actions: Me.value,
|
|
2007
|
-
select: (e) =>
|
|
2042
|
+
select: (e) => Rn(e, !0),
|
|
2008
2043
|
close: c
|
|
2009
2044
|
}, () => [(_(!0), a(e, null, y(Me.value, (e) => (_(), a("button", {
|
|
2010
2045
|
key: `drawer-${e.id}`,
|
|
2011
2046
|
class: m(["top-nav-bar__drawer-action", { "top-nav-bar__drawer-action--active": e.kind === "aia" && s.aiaActive }]),
|
|
2012
2047
|
type: "button",
|
|
2013
2048
|
disabled: e.disabled,
|
|
2014
|
-
onClick: (t) =>
|
|
2049
|
+
onClick: (t) => Rn(e, !0)
|
|
2015
2050
|
}, [o("i", {
|
|
2016
2051
|
class: m(e.icon),
|
|
2017
2052
|
"aria-hidden": "true"
|
|
2018
|
-
}, null, 2), o("span", null, C(e.label), 1)], 10,
|
|
2019
|
-
o("div",
|
|
2053
|
+
}, null, 2), o("span", null, C(e.label), 1)], 10, _n))), 128))])])) : i("", !0),
|
|
2054
|
+
o("div", vn, [
|
|
2020
2055
|
b(n.$slots, "drawer-before-menu", { close: c }),
|
|
2021
|
-
o("div",
|
|
2056
|
+
o("div", yn, [Z.value.length ? (_(), a("section", bn, [o("button", {
|
|
2022
2057
|
class: "top-nav-bar__mobile-item",
|
|
2023
2058
|
type: "button",
|
|
2024
2059
|
"aria-expanded": U.value,
|
|
@@ -2028,14 +2063,14 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2028
2063
|
class: "pi pi-star-fill top-nav-bar__accent",
|
|
2029
2064
|
"aria-hidden": "true"
|
|
2030
2065
|
}, null, -1),
|
|
2031
|
-
o("span",
|
|
2032
|
-
o("span",
|
|
2066
|
+
o("span", Sn, C(s.favoriteLabel), 1),
|
|
2067
|
+
o("span", Cn, C(Z.value.length), 1),
|
|
2033
2068
|
o("i", {
|
|
2034
2069
|
class: m(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open": U.value }]),
|
|
2035
2070
|
"aria-hidden": "true"
|
|
2036
2071
|
}, null, 2)
|
|
2037
|
-
], 8,
|
|
2038
|
-
default:
|
|
2072
|
+
], 8, xn), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
2073
|
+
default: O(() => [U.value ? (_(), r(Ue, {
|
|
2039
2074
|
key: 0,
|
|
2040
2075
|
items: Z.value,
|
|
2041
2076
|
"active-item-id": s.activeItemId,
|
|
@@ -2058,10 +2093,10 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2058
2093
|
"items",
|
|
2059
2094
|
"active-item-id",
|
|
2060
2095
|
"force-open"
|
|
2061
|
-
])) : (_(), a("div",
|
|
2096
|
+
])) : (_(), a("div", wn, "Nenhum menu encontrado."))])]),
|
|
2062
2097
|
b(n.$slots, "drawer-after-menu", { close: c })
|
|
2063
2098
|
]),
|
|
2064
|
-
Pe.value || n.$slots["drawer-footer"] ? (_(), a("footer",
|
|
2099
|
+
Pe.value || n.$slots["drawer-footer"] ? (_(), a("footer", Tn, [Pe.value ? b(n.$slots, "drawer-user", {
|
|
2065
2100
|
user: s.user,
|
|
2066
2101
|
open: V.value,
|
|
2067
2102
|
toggle: () => V.value = !V.value
|
|
@@ -2070,17 +2105,17 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2070
2105
|
type: "button",
|
|
2071
2106
|
"aria-haspopup": X.value ? "menu" : void 0,
|
|
2072
2107
|
"aria-expanded": X.value ? V.value : void 0,
|
|
2073
|
-
onClick:
|
|
2108
|
+
onClick: Bn
|
|
2074
2109
|
}, [
|
|
2075
2110
|
s.user?.avatarUrl ? (_(), a("img", {
|
|
2076
2111
|
key: 0,
|
|
2077
2112
|
src: s.user.avatarUrl,
|
|
2078
2113
|
alt: "",
|
|
2079
2114
|
class: "top-nav-bar__user-avatar"
|
|
2080
|
-
}, null, 8,
|
|
2081
|
-
s.user ? (_(), a("span",
|
|
2082
|
-
X.value ? (_(), a("i",
|
|
2083
|
-
], 8,
|
|
2115
|
+
}, null, 8, Dn)) : (_(), a("span", On, C(ze.value), 1)),
|
|
2116
|
+
s.user ? (_(), a("span", kn, [o("span", An, C(s.user.name), 1), s.user.subtitle ? (_(), a("span", jn, C(s.user.subtitle), 1)) : i("", !0)])) : i("", !0),
|
|
2117
|
+
X.value ? (_(), a("i", Mn)) : i("", !0)
|
|
2118
|
+
], 8, En)], void 0, 0) : i("", !0), b(n.$slots, "drawer-footer", { close: c })])) : i("", !0)
|
|
2084
2119
|
])]),
|
|
2085
2120
|
_: 3
|
|
2086
2121
|
}, 8, ["visible", "style"]),
|
|
@@ -2097,41 +2132,41 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2097
2132
|
}, null, 8, ["model"])
|
|
2098
2133
|
], 4));
|
|
2099
2134
|
}
|
|
2100
|
-
}),
|
|
2135
|
+
}), In = { class: "top-field-icon pointer-events-none absolute left-3 top-1/2 z-10 -translate-y-1/2" }, Ln = {
|
|
2101
2136
|
key: 0,
|
|
2102
2137
|
class: "pi pi-spin pi-spinner"
|
|
2103
|
-
},
|
|
2138
|
+
}, Q = {
|
|
2104
2139
|
key: 1,
|
|
2105
2140
|
class: "pi pi-search"
|
|
2106
|
-
},
|
|
2141
|
+
}, $ = {
|
|
2107
2142
|
key: 1,
|
|
2108
2143
|
class: "flex items-center gap-1 !text-sm"
|
|
2109
|
-
},
|
|
2144
|
+
}, Rn = { class: "flex items-center gap-2 rounded-[9px] bg-primary-500 px-2 py-1 text-white" }, zn = ["onClick"], Bn = { class: "line-clamp-1 max-w-[300px] overflow-hidden text-ellipsis" }, Vn = {
|
|
2110
2145
|
key: 1,
|
|
2111
2146
|
class: "flex min-h-[100px] flex-col items-center justify-center gap-2 py-2"
|
|
2112
|
-
},
|
|
2147
|
+
}, Hn = {
|
|
2113
2148
|
key: 0,
|
|
2114
2149
|
class: "text-xs font-medium text-primary-600"
|
|
2115
|
-
},
|
|
2150
|
+
}, Un = {
|
|
2116
2151
|
key: 2,
|
|
2117
2152
|
class: "text-xs text-secondary-500"
|
|
2118
|
-
},
|
|
2153
|
+
}, Wn = { key: 1 }, Gn = {
|
|
2119
2154
|
key: 1,
|
|
2120
2155
|
class: "flex items-center gap-2 font-semibold"
|
|
2121
|
-
},
|
|
2156
|
+
}, Kn = {
|
|
2122
2157
|
key: 1,
|
|
2123
2158
|
class: "flex w-full min-w-0 items-start gap-2 overflow-hidden px-2 py-3 text-sm",
|
|
2124
2159
|
style: { "white-space": "normal" }
|
|
2125
|
-
},
|
|
2160
|
+
}, qn = ["title"], Jn = {
|
|
2126
2161
|
key: 0,
|
|
2127
2162
|
class: "top-select-option-prefix whitespace-nowrap font-bold text-primary-800 dark:text-primary-100"
|
|
2128
|
-
},
|
|
2163
|
+
}, Yn = {
|
|
2129
2164
|
key: 0,
|
|
2130
2165
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2131
|
-
},
|
|
2166
|
+
}, Xn = {
|
|
2132
2167
|
key: 0,
|
|
2133
2168
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2134
|
-
},
|
|
2169
|
+
}, Zn = /* @__PURE__ */ u({
|
|
2135
2170
|
__name: "TopSelect",
|
|
2136
2171
|
props: {
|
|
2137
2172
|
modelValue: { default: null },
|
|
@@ -2200,7 +2235,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2200
2235
|
"change"
|
|
2201
2236
|
],
|
|
2202
2237
|
setup(t, { expose: r, emit: u }) {
|
|
2203
|
-
let g = t, x = u, S =
|
|
2238
|
+
let g = t, x = u, S = E(), ne = R, T = v(""), A = v(!1), j = v(null), N = `top-select-${Math.random().toString(36).slice(2)}`, P = null, F = n({
|
|
2204
2239
|
get: () => g.modelValue,
|
|
2205
2240
|
set: (e) => x("update:modelValue", e)
|
|
2206
2241
|
});
|
|
@@ -2218,7 +2253,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2218
2253
|
return t && r ? `${r} - ${n}` : n;
|
|
2219
2254
|
}
|
|
2220
2255
|
function z(e) {
|
|
2221
|
-
let t =
|
|
2256
|
+
let t = T.value;
|
|
2222
2257
|
if (!t) return [{
|
|
2223
2258
|
text: e,
|
|
2224
2259
|
highlighted: !1
|
|
@@ -2252,14 +2287,14 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2252
2287
|
}
|
|
2253
2288
|
return r({ hideDropdown: B }), te(() => window.addEventListener("top-select:close-others", ae)), ee(() => {
|
|
2254
2289
|
window.removeEventListener("top-select:close-others", ae), P && clearTimeout(P);
|
|
2255
|
-
}),
|
|
2290
|
+
}), D(() => g.disabled, (e) => {
|
|
2256
2291
|
e && (A.value = !1, B());
|
|
2257
|
-
}),
|
|
2292
|
+
}), D(() => g.options, () => {
|
|
2258
2293
|
A.value || B();
|
|
2259
2294
|
}), (n, r) => (_(), a("div", {
|
|
2260
2295
|
class: m(["top-select top-solutions-component relative w-full", { "pointer-events-none": t.disabled }]),
|
|
2261
2296
|
onFocusin: H
|
|
2262
|
-
}, [o("span",
|
|
2297
|
+
}, [o("span", In, [b(n.$slots, "icon", { loading: t.loading }, () => [t.loading ? (_(), a("i", Ln)) : (_(), a("i", Q))])]), l(w(ne), {
|
|
2263
2298
|
ref_key: "autocompleteRef",
|
|
2264
2299
|
ref: j,
|
|
2265
2300
|
modelValue: F.value,
|
|
@@ -2312,46 +2347,46 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2312
2347
|
},
|
|
2313
2348
|
"search-message": " ",
|
|
2314
2349
|
onClear: r[1] ||= (e) => {
|
|
2315
|
-
|
|
2350
|
+
T.value = "", x("clear");
|
|
2316
2351
|
},
|
|
2317
2352
|
onItemSelect: r[2] ||= (e) => {
|
|
2318
|
-
|
|
2353
|
+
T.value = "", x("select", e), U();
|
|
2319
2354
|
},
|
|
2320
2355
|
onComplete: r[3] ||= (e) => {
|
|
2321
2356
|
if (t.disabled) {
|
|
2322
2357
|
B();
|
|
2323
2358
|
return;
|
|
2324
2359
|
}
|
|
2325
|
-
|
|
2360
|
+
T.value = e.query ?? "", V(), x("search", {
|
|
2326
2361
|
...e,
|
|
2327
|
-
query:
|
|
2362
|
+
query: T.value
|
|
2328
2363
|
});
|
|
2329
2364
|
},
|
|
2330
2365
|
onChange: r[4] ||= (e) => x("change", e)
|
|
2331
2366
|
}, s({
|
|
2332
|
-
chip:
|
|
2367
|
+
chip: O((e) => [w(S).chip ? b(n.$slots, "chip", h(d(e)), void 0, void 0, 0) : (_(), a("div", $, [o("div", Rn, [o("i", {
|
|
2333
2368
|
class: "pi pi-times-circle shrink-0 cursor-pointer rounded-full hover:bg-primary-800",
|
|
2334
2369
|
onClick: (t) => e.removeCallback(t)
|
|
2335
|
-
}, null, 8,
|
|
2370
|
+
}, null, 8, zn), k((_(), a("span", Bn, [c(C(ie(e.value)), 1)])), [[
|
|
2336
2371
|
w(M),
|
|
2337
2372
|
ie(e.value),
|
|
2338
2373
|
void 0,
|
|
2339
2374
|
{ top: !0 }
|
|
2340
2375
|
]])])]))]),
|
|
2341
|
-
empty:
|
|
2342
|
-
"selected-item":
|
|
2343
|
-
optiongroup:
|
|
2376
|
+
empty: O(() => [w(S).empty ? b(n.$slots, "empty", {}, void 0, void 0, 0) : t.loading ? (_(), a("div", Vn, [r[5] ||= o("span", { class: "pi pi-spin pi-spinner text-2xl text-primary-600" }, null, -1), t.showLoadingMessage ? (_(), a("span", Hn, C(t.loadingMessage), 1)) : i("", !0)])) : (_(), a("span", Un, C(t.emptyMessage), 1))]),
|
|
2377
|
+
"selected-item": O((e) => [w(S)["selected-item"] ? b(n.$slots, "selected-item", h(d(e)), void 0, void 0, 0) : e.item ? (_(), a("span", Wn, C(ie(e.item)), 1)) : i("", !0)]),
|
|
2378
|
+
optiongroup: O((e) => [w(S)["option-group"] ? b(n.$slots, "option-group", h(d(e)), void 0, void 0, 0) : (_(), a("div", Gn, [e.option.icon ? (_(), a("i", {
|
|
2344
2379
|
key: 0,
|
|
2345
2380
|
class: m(e.option.icon)
|
|
2346
2381
|
}, null, 2)) : i("", !0), o("span", null, C(e.option[t.optionGroupLabel ?? "label"]), 1)]))]),
|
|
2347
|
-
option:
|
|
2382
|
+
option: O((s) => [w(S).option ? b(n.$slots, "option", f(s, {
|
|
2348
2383
|
label: L(s.option),
|
|
2349
2384
|
prefix: re(s.option),
|
|
2350
|
-
query:
|
|
2351
|
-
}), void 0, void 0, 0) :
|
|
2385
|
+
query: T.value
|
|
2386
|
+
}), void 0, void 0, 0) : k((_(), a("div", Kn, [o("span", {
|
|
2352
2387
|
class: "top-select-option-label line-clamp-2 min-w-0 flex-1 text-secondary-700 dark:text-zinc-200",
|
|
2353
2388
|
title: L(s.option)
|
|
2354
|
-
}, [t.showOptionPrefix && re(s.option) ? (_(), a("span",
|
|
2389
|
+
}, [t.showOptionPrefix && re(s.option) ? (_(), a("span", Jn, [(_(!0), a(e, null, y(z(re(s.option)), (t, n) => (_(), a(e, { key: n }, [t.highlighted ? (_(), a("mark", Yn, C(t.text), 1)) : (_(), a(e, { key: 1 }, [c(C(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), (_(!0), a(e, null, y(z(L(s.option)), (t, n) => (_(), a(e, { key: n }, [t.highlighted ? (_(), a("mark", Xn, C(t.text), 1)) : (_(), a(e, { key: 1 }, [c(C(t.text), 1)], 64))], 64))), 128))], 8, qn)])), [[
|
|
2355
2390
|
w(M),
|
|
2356
2391
|
t.showTooltip ? L(s.option) : null,
|
|
2357
2392
|
void 0,
|
|
@@ -2360,7 +2395,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2360
2395
|
_: 2
|
|
2361
2396
|
}, [w(S).footer ? {
|
|
2362
2397
|
name: "footer",
|
|
2363
|
-
fn:
|
|
2398
|
+
fn: O((e) => [b(n.$slots, "footer", h(d(e)))]),
|
|
2364
2399
|
key: "0"
|
|
2365
2400
|
} : void 0]), 1032, [
|
|
2366
2401
|
"modelValue",
|
|
@@ -2380,7 +2415,7 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2380
2415
|
"pt"
|
|
2381
2416
|
])], 34));
|
|
2382
2417
|
}
|
|
2383
|
-
}),
|
|
2418
|
+
}), Qn = /* @__PURE__ */ u({
|
|
2384
2419
|
inheritAttrs: !1,
|
|
2385
2420
|
__name: "TopTabs",
|
|
2386
2421
|
props: {
|
|
@@ -2408,22 +2443,22 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2408
2443
|
scrollable: t.scrollable,
|
|
2409
2444
|
"onUpdate:value": s[0] ||= (e) => i("update:modelValue", e)
|
|
2410
2445
|
}), {
|
|
2411
|
-
default:
|
|
2412
|
-
default:
|
|
2446
|
+
default: O(() => [l(w(B), null, {
|
|
2447
|
+
default: O(() => [(_(!0), a(e, null, y(t.tabs, (e) => (_(), r(w(z), {
|
|
2413
2448
|
key: e.value,
|
|
2414
2449
|
value: e.value,
|
|
2415
2450
|
disabled: e.disabled
|
|
2416
2451
|
}, {
|
|
2417
|
-
default:
|
|
2452
|
+
default: O(() => [c(C(e.label), 1)]),
|
|
2418
2453
|
_: 2
|
|
2419
2454
|
}, 1032, ["value", "disabled"]))), 128))]),
|
|
2420
2455
|
_: 1
|
|
2421
2456
|
}), l(w(ae), null, {
|
|
2422
|
-
default:
|
|
2457
|
+
default: O(() => [(_(!0), a(e, null, y(t.tabs, (e) => (_(), r(w(V), {
|
|
2423
2458
|
key: e.value,
|
|
2424
2459
|
value: e.value
|
|
2425
2460
|
}, {
|
|
2426
|
-
default:
|
|
2461
|
+
default: O(() => [b(n.$slots, o(e), {
|
|
2427
2462
|
tab: e,
|
|
2428
2463
|
active: t.modelValue === e.value
|
|
2429
2464
|
})]),
|
|
@@ -2438,10 +2473,10 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2438
2473
|
"scrollable"
|
|
2439
2474
|
]));
|
|
2440
2475
|
}
|
|
2441
|
-
}),
|
|
2476
|
+
}), $n = { class: "top-toast__content" }, er = { class: "top-toast__detail" }, tr = ["onClick"], nr = {
|
|
2442
2477
|
key: 0,
|
|
2443
2478
|
class: "top-toast__footer"
|
|
2444
|
-
},
|
|
2479
|
+
}, rr = /* @__PURE__ */ u({
|
|
2445
2480
|
__name: "TopToast",
|
|
2446
2481
|
props: { baseZIndex: { default: 3e4 } },
|
|
2447
2482
|
setup(e) {
|
|
@@ -2467,9 +2502,9 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2467
2502
|
position: "top-right",
|
|
2468
2503
|
"base-z-index": e.baseZIndex
|
|
2469
2504
|
}, {
|
|
2470
|
-
message:
|
|
2505
|
+
message: O((e) => [o("div", $n, [
|
|
2471
2506
|
o("div", { class: m(["top-toast__summary", d(e.message, "summary")]) }, C(e.message.summary), 3),
|
|
2472
|
-
o("div",
|
|
2507
|
+
o("div", er, C(e.message.detail), 1),
|
|
2473
2508
|
u(e.message) ? b(f.$slots, "action", {
|
|
2474
2509
|
action: n(e.message),
|
|
2475
2510
|
message: e.message,
|
|
@@ -2483,17 +2518,17 @@ var be = /* @__PURE__ */ _e(ge, [["render", ye], ["__file", "/Users/mahmudulhasa
|
|
|
2483
2518
|
key: 0,
|
|
2484
2519
|
class: m(n(e.message)?.icon),
|
|
2485
2520
|
"aria-hidden": "true"
|
|
2486
|
-
}, null, 2)) : i("", !0), c(" " + C(n(e.message)?.label), 1)], 10,
|
|
2521
|
+
}, null, 2)) : i("", !0), c(" " + C(n(e.message)?.label), 1)], 10, tr)) : i("", !0)], void 0, 0) : i("", !0),
|
|
2487
2522
|
l(e.message) ? b(f.$slots, "footer", {
|
|
2488
2523
|
message: e.message,
|
|
2489
2524
|
footer: t(e.message)
|
|
2490
|
-
}, () => [t(e.message) === void 0 ? i("", !0) : (_(), a("div",
|
|
2525
|
+
}, () => [t(e.message) === void 0 ? i("", !0) : (_(), a("div", nr, C(t(e.message)), 1))], void 0, 1) : i("", !0)
|
|
2491
2526
|
])]),
|
|
2492
2527
|
_: 3
|
|
2493
2528
|
}, 8, ["base-z-index"]));
|
|
2494
2529
|
}
|
|
2495
2530
|
});
|
|
2496
2531
|
//#endregion
|
|
2497
|
-
export { ze as a, le as c,
|
|
2532
|
+
export { ze as a, le as c, Fn as i, se as l, Qn as n, Fe as o, Zn as r, me as s, rr as t, oe as u };
|
|
2498
2533
|
|
|
2499
|
-
//# sourceMappingURL=TopToast-
|
|
2534
|
+
//# sourceMappingURL=TopToast-BFY94BWZ.js.map
|