@topjoao/top-design-system 0.2.11 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/TopToast-BnGBl0x5.cjs +2 -0
- package/dist/TopToast-BnGBl0x5.cjs.map +1 -0
- package/dist/{TopToast-8u50_WSL.js → TopToast-C6B7YGDo.js} +260 -257
- package/dist/TopToast-C6B7YGDo.js.map +1 -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-8u50_WSL.js.map +0 -1
- package/dist/TopToast-o-AwKJl4.cjs +0 -2
- package/dist/TopToast-o-AwKJl4.cjs.map +0 -1
|
@@ -18,11 +18,11 @@ import K from "primevue/tabpanels";
|
|
|
18
18
|
import ae from "primevue/tabs";
|
|
19
19
|
import q from "primevue/accordion";
|
|
20
20
|
import J from "primevue/accordioncontent";
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
21
|
+
import Y from "primevue/accordionheader";
|
|
22
|
+
import oe from "primevue/accordionpanel";
|
|
23
|
+
import X from "primevue/toast";
|
|
24
24
|
//#region src/components/TopButton.vue?vue&type=script&setup=true&lang.ts
|
|
25
|
-
var
|
|
25
|
+
var se = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px] bg-transparent" }, ce = /* @__PURE__ */ u({
|
|
26
26
|
__name: "TopButton",
|
|
27
27
|
props: {
|
|
28
28
|
tooltip: { default: "" },
|
|
@@ -59,7 +59,7 @@ var ce = { 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", se, [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 ce = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
94
94
|
{ top: !0 }
|
|
95
95
|
]])]));
|
|
96
96
|
}
|
|
97
|
-
}),
|
|
97
|
+
}), le = {
|
|
98
98
|
primary: {
|
|
99
99
|
50: "#EEF9FF",
|
|
100
100
|
100: "#DFF4FF",
|
|
@@ -192,8 +192,8 @@ var ce = { 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" ? le.danger[600] : le.primary[800],
|
|
196
|
+
"--top-confirm-dialog-accent-hover": i.severity === "danger" ? le.danger[700] : le.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 ce = { 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(ce, {
|
|
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(ce, {
|
|
254
254
|
label: e.loading ? e.loadingText : e.confirmText,
|
|
255
255
|
loading: e.loading,
|
|
256
256
|
class: h(d.value),
|
|
@@ -774,7 +774,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
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(ce, {
|
|
778
778
|
key: 0,
|
|
779
779
|
label: t.selectLabel,
|
|
780
780
|
icon: "pi pi-plus-circle",
|
|
@@ -799,7 +799,7 @@ 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(ce, {
|
|
803
803
|
label: t.selectLabel,
|
|
804
804
|
icon: "pi pi-plus-circle",
|
|
805
805
|
disabled: t.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: {
|
|
@@ -943,48 +943,48 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
943
943
|
},
|
|
944
944
|
emits: ["update:modelValue"],
|
|
945
945
|
setup(e, { emit: t }) {
|
|
946
|
-
let r = e,
|
|
947
|
-
function
|
|
948
|
-
let e = r.maxLength ??
|
|
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
949
|
return typeof e == "number" || typeof e == "string" ? e : void 0;
|
|
950
950
|
}
|
|
951
|
-
let
|
|
951
|
+
let _ = n(() => {
|
|
952
952
|
if (r.error) return !0;
|
|
953
|
-
let e =
|
|
953
|
+
let e = u["aria-invalid"];
|
|
954
954
|
return typeof e == "boolean" || e === "true" || e === "false" || e === "grammar" || e === "spelling" ? e : void 0;
|
|
955
|
-
}),
|
|
956
|
-
let e =
|
|
955
|
+
}), v = n(() => {
|
|
956
|
+
let e = u["aria-describedby"], t = [
|
|
957
957
|
typeof e == "string" ? e : "",
|
|
958
|
-
r.error ?
|
|
959
|
-
r.showCounter ?
|
|
958
|
+
r.error ? m.value : "",
|
|
959
|
+
r.showCounter ? h.value : ""
|
|
960
960
|
].filter(Boolean);
|
|
961
961
|
return t.length ? t.join(" ") : void 0;
|
|
962
962
|
});
|
|
963
|
-
function
|
|
964
|
-
|
|
963
|
+
function y(e) {
|
|
964
|
+
s("update:modelValue", e ?? "");
|
|
965
965
|
}
|
|
966
966
|
return (t, n) => (b(), a("div", Ke, [
|
|
967
967
|
e.label ? (b(), a("label", {
|
|
968
968
|
key: 0,
|
|
969
|
-
for:
|
|
969
|
+
for: f.value,
|
|
970
970
|
class: "top-field-label text-xs font-bold"
|
|
971
971
|
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span", Je, "*")) : i("", !0)], 8, qe)) : i("", !0),
|
|
972
972
|
l(O(V), p(t.$attrs, {
|
|
973
|
-
id:
|
|
973
|
+
id: f.value,
|
|
974
974
|
"model-value": e.modelValue,
|
|
975
975
|
placeholder: e.placeholder,
|
|
976
976
|
required: e.required,
|
|
977
977
|
disabled: e.disabled,
|
|
978
978
|
readonly: e.readonly,
|
|
979
979
|
rows: e.rows,
|
|
980
|
-
maxlength:
|
|
980
|
+
maxlength: g(),
|
|
981
981
|
"auto-resize": e.autoResize,
|
|
982
982
|
invalid: !!e.error,
|
|
983
|
-
"aria-invalid":
|
|
984
|
-
"aria-describedby":
|
|
983
|
+
"aria-invalid": _.value,
|
|
984
|
+
"aria-describedby": v.value,
|
|
985
985
|
fluid: "",
|
|
986
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 }],
|
|
987
|
-
"onUpdate:modelValue":
|
|
987
|
+
"onUpdate:modelValue": y
|
|
988
988
|
}), null, 16, [
|
|
989
989
|
"id",
|
|
990
990
|
"model-value",
|
|
@@ -1000,24 +1000,23 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1000
1000
|
"aria-describedby",
|
|
1001
1001
|
"class"
|
|
1002
1002
|
]),
|
|
1003
|
-
e.
|
|
1004
|
-
key:
|
|
1003
|
+
o("div", Ye, [e.error ? (b(), a("span", {
|
|
1004
|
+
key: 0,
|
|
1005
1005
|
id: m.value,
|
|
1006
|
-
class: "top-text-area__counter text-right text-[11px] text-secondary-600 dark:text-zinc-400"
|
|
1007
|
-
}, D(e.modelValue.length) + D(h() === void 0 ? "" : ` / ${h()}`) + " caracteres ", 9, Ye)) : i("", !0),
|
|
1008
|
-
e.error ? (b(), a("span", {
|
|
1009
|
-
key: 2,
|
|
1010
|
-
id: f.value,
|
|
1011
1006
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
1012
1007
|
role: "alert"
|
|
1013
|
-
}, D(e.error), 9, Xe)) : i("", !0)
|
|
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)])
|
|
1014
1013
|
]));
|
|
1015
1014
|
}
|
|
1016
|
-
}),
|
|
1015
|
+
}), $e = { class: "top-input-number top-solutions-component flex w-full flex-col gap-1" }, et = ["for"], tt = {
|
|
1017
1016
|
key: 0,
|
|
1018
1017
|
"aria-hidden": "true",
|
|
1019
1018
|
class: "text-red-600 dark:text-red-400"
|
|
1020
|
-
},
|
|
1019
|
+
}, nt = ["id"], rt = /* @__PURE__ */ u({
|
|
1021
1020
|
inheritAttrs: !1,
|
|
1022
1021
|
__name: "TopInputNumber",
|
|
1023
1022
|
props: {
|
|
@@ -1153,12 +1152,12 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1153
1152
|
value: t instanceof HTMLInputElement ? t.value : ""
|
|
1154
1153
|
});
|
|
1155
1154
|
}
|
|
1156
|
-
return (t, n) => (b(), a("div",
|
|
1155
|
+
return (t, n) => (b(), a("div", $e, [
|
|
1157
1156
|
e.label ? (b(), a("label", {
|
|
1158
1157
|
key: 0,
|
|
1159
1158
|
for: _.value,
|
|
1160
1159
|
class: "top-field-label text-xs font-bold"
|
|
1161
|
-
}, [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),
|
|
1162
1161
|
T.value ? (b(), r(O(B), p({ key: 1 }, M.value, {
|
|
1163
1162
|
id: _.value,
|
|
1164
1163
|
"model-value": R(e.modelValue),
|
|
@@ -1230,18 +1229,18 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1230
1229
|
id: v.value,
|
|
1231
1230
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
1232
1231
|
role: "alert"
|
|
1233
|
-
}, D(e.error), 9,
|
|
1232
|
+
}, D(e.error), 9, nt)) : i("", !0)
|
|
1234
1233
|
]));
|
|
1235
1234
|
}
|
|
1236
|
-
}),
|
|
1235
|
+
}), it = [
|
|
1237
1236
|
"disabled",
|
|
1238
1237
|
"aria-expanded",
|
|
1239
1238
|
"onClick"
|
|
1240
|
-
],
|
|
1239
|
+
], at = { class: "top-nav-bar__mobile-item-label" }, ot = {
|
|
1241
1240
|
key: 1,
|
|
1242
1241
|
class: "top-nav-bar__mobile-count",
|
|
1243
1242
|
"aria-hidden": "true"
|
|
1244
|
-
},
|
|
1243
|
+
}, st = /* @__PURE__ */ u({
|
|
1245
1244
|
name: "TopNavMobileTree",
|
|
1246
1245
|
__name: "TopNavMobileTree",
|
|
1247
1246
|
props: {
|
|
@@ -1314,14 +1313,14 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1314
1313
|
class: h(e.icon),
|
|
1315
1314
|
"aria-hidden": "true"
|
|
1316
1315
|
}, null, 2)) : i("", !0),
|
|
1317
|
-
o("span",
|
|
1318
|
-
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),
|
|
1319
1318
|
p(e).length ? (b(), a("i", {
|
|
1320
1319
|
key: 2,
|
|
1321
1320
|
class: h(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open": g(e) }]),
|
|
1322
1321
|
"aria-hidden": "true"
|
|
1323
1322
|
}, null, 2)) : i("", !0)
|
|
1324
|
-
], 10,
|
|
1323
|
+
], 10, it), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
1325
1324
|
default: j(() => [p(e).length && g(e) ? (b(), r(u, {
|
|
1326
1325
|
key: 0,
|
|
1327
1326
|
items: p(e),
|
|
@@ -1339,178 +1338,178 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1339
1338
|
}, 1024)], 2))), 128))], 6);
|
|
1340
1339
|
};
|
|
1341
1340
|
}
|
|
1342
|
-
}),
|
|
1341
|
+
}), ct = ["aria-expanded"], lt = { class: "top-nav-bar__brand" }, ut = {
|
|
1343
1342
|
key: 1,
|
|
1344
1343
|
class: "top-nav-bar__brand-context-divider",
|
|
1345
1344
|
"aria-hidden": "true"
|
|
1346
|
-
},
|
|
1345
|
+
}, dt = {
|
|
1347
1346
|
key: 2,
|
|
1348
1347
|
class: "top-nav-bar__context"
|
|
1349
|
-
},
|
|
1348
|
+
}, ft = {
|
|
1350
1349
|
key: 0,
|
|
1351
1350
|
class: "top-nav-bar__client"
|
|
1352
|
-
},
|
|
1351
|
+
}, pt = ["src"], mt = {
|
|
1353
1352
|
key: 1,
|
|
1354
1353
|
class: "top-nav-bar__client-logo"
|
|
1355
|
-
},
|
|
1354
|
+
}, ht = {
|
|
1356
1355
|
key: 2,
|
|
1357
1356
|
class: "top-nav-bar__client-details"
|
|
1358
|
-
},
|
|
1357
|
+
}, gt = { class: "top-nav-bar__client-name" }, _t = {
|
|
1359
1358
|
key: 0,
|
|
1360
1359
|
class: "top-nav-bar__client-subtitle"
|
|
1361
|
-
},
|
|
1360
|
+
}, vt = { class: "top-nav-bar__desktop-tools" }, yt = {
|
|
1362
1361
|
key: 0,
|
|
1363
1362
|
class: "top-nav-bar__search-shell",
|
|
1364
1363
|
"data-top-nav-search": ""
|
|
1365
|
-
},
|
|
1364
|
+
}, bt = ["value", "placeholder"], xt = ["aria-label"], St = {
|
|
1366
1365
|
key: 1,
|
|
1367
1366
|
class: "top-nav-bar__search-results",
|
|
1368
1367
|
role: "menu"
|
|
1369
|
-
},
|
|
1368
|
+
}, Ct = { class: "top-nav-bar__search-results-scroll" }, wt = ["disabled", "onClick"], Tt = {
|
|
1370
1369
|
key: 0,
|
|
1371
1370
|
class: "top-nav-bar__empty"
|
|
1372
|
-
},
|
|
1371
|
+
}, Et = {
|
|
1373
1372
|
key: 1,
|
|
1374
1373
|
class: "top-nav-bar__quick-actions",
|
|
1375
1374
|
"data-top-nav-actions": ""
|
|
1376
|
-
},
|
|
1375
|
+
}, Dt = [
|
|
1377
1376
|
"disabled",
|
|
1378
1377
|
"aria-label",
|
|
1379
1378
|
"aria-pressed",
|
|
1380
1379
|
"title",
|
|
1381
1380
|
"onClick"
|
|
1382
|
-
],
|
|
1381
|
+
], Ot = ["aria-expanded"], kt = {
|
|
1383
1382
|
key: 0,
|
|
1384
1383
|
class: "top-nav-bar__popover-layer top-nav-bar__actions-layer"
|
|
1385
|
-
},
|
|
1384
|
+
}, At = {
|
|
1386
1385
|
class: "top-nav-bar__small-panel",
|
|
1387
1386
|
role: "menu"
|
|
1388
|
-
},
|
|
1387
|
+
}, jt = ["disabled", "onClick"], Mt = {
|
|
1389
1388
|
key: 2,
|
|
1390
1389
|
class: "top-nav-bar__custom-actions"
|
|
1391
|
-
},
|
|
1390
|
+
}, Nt = ["aria-haspopup", "aria-expanded"], Pt = ["src"], Ft = {
|
|
1392
1391
|
key: 1,
|
|
1393
1392
|
class: "top-nav-bar__user-avatar"
|
|
1394
|
-
},
|
|
1393
|
+
}, It = {
|
|
1395
1394
|
key: 2,
|
|
1396
1395
|
class: "top-nav-bar__user-details"
|
|
1397
|
-
},
|
|
1396
|
+
}, Lt = { class: "top-nav-bar__user-name" }, Rt = {
|
|
1398
1397
|
key: 0,
|
|
1399
1398
|
class: "top-nav-bar__user-subtitle"
|
|
1400
|
-
},
|
|
1399
|
+
}, zt = {
|
|
1401
1400
|
key: 0,
|
|
1402
1401
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
1403
1402
|
"aria-hidden": "true"
|
|
1404
|
-
},
|
|
1403
|
+
}, Bt = {
|
|
1405
1404
|
key: 0,
|
|
1406
1405
|
class: "top-nav-bar__popover-layer top-nav-bar__user-layer"
|
|
1407
|
-
},
|
|
1406
|
+
}, Vt = {
|
|
1408
1407
|
class: "top-nav-bar__small-panel top-nav-bar__user-dropdown",
|
|
1409
1408
|
role: "menu"
|
|
1410
|
-
},
|
|
1409
|
+
}, Ht = {
|
|
1411
1410
|
key: 0,
|
|
1412
1411
|
class: "top-nav-bar__user-separator",
|
|
1413
1412
|
role: "separator"
|
|
1414
|
-
},
|
|
1413
|
+
}, Ut = ["disabled", "onClick"], Wt = {
|
|
1415
1414
|
class: "top-nav-bar__breadcrumbs",
|
|
1416
1415
|
"aria-label": "Breadcrumb"
|
|
1417
|
-
},
|
|
1416
|
+
}, Gt = {
|
|
1418
1417
|
key: 0,
|
|
1419
1418
|
class: "top-nav-bar__separator top-nav-bar__desktop-navigation-separator",
|
|
1420
1419
|
"aria-hidden": "true"
|
|
1421
|
-
},
|
|
1420
|
+
}, Kt = ["aria-expanded"], qt = {
|
|
1422
1421
|
key: 0,
|
|
1423
1422
|
class: "top-nav-bar__menu-layer"
|
|
1424
|
-
},
|
|
1423
|
+
}, Jt = {
|
|
1425
1424
|
class: "top-nav-bar__menu-panel",
|
|
1426
1425
|
role: "menu"
|
|
1427
|
-
},
|
|
1426
|
+
}, Yt = { class: "top-nav-bar__section-list" }, Xt = [
|
|
1428
1427
|
"aria-haspopup",
|
|
1429
1428
|
"aria-expanded",
|
|
1430
1429
|
"onMouseenter",
|
|
1431
1430
|
"onClick"
|
|
1432
|
-
],
|
|
1431
|
+
], Zt = { class: "top-nav-bar__menu-label" }, Qt = {
|
|
1433
1432
|
key: 1,
|
|
1434
1433
|
class: "top-nav-bar__item-count"
|
|
1435
|
-
},
|
|
1434
|
+
}, $t = {
|
|
1436
1435
|
key: 2,
|
|
1437
1436
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1438
1437
|
"aria-hidden": "true"
|
|
1439
|
-
},
|
|
1438
|
+
}, en = {
|
|
1440
1439
|
key: 0,
|
|
1441
1440
|
class: "top-nav-bar__submenu-region"
|
|
1442
|
-
},
|
|
1441
|
+
}, tn = [
|
|
1443
1442
|
"disabled",
|
|
1444
1443
|
"aria-haspopup",
|
|
1445
1444
|
"aria-expanded",
|
|
1446
1445
|
"onMouseenter",
|
|
1447
1446
|
"onClick"
|
|
1448
|
-
],
|
|
1447
|
+
], nn = { class: "top-nav-bar__menu-label" }, rn = {
|
|
1449
1448
|
key: 1,
|
|
1450
1449
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1451
1450
|
"aria-hidden": "true"
|
|
1452
|
-
},
|
|
1451
|
+
}, an = ["onMouseenter"], on = {
|
|
1453
1452
|
key: 0,
|
|
1454
1453
|
class: "top-nav-bar__crumb top-nav-bar__crumb--static"
|
|
1455
|
-
},
|
|
1454
|
+
}, sn = ["aria-expanded", "onClick"], cn = {
|
|
1456
1455
|
key: 2,
|
|
1457
1456
|
class: "top-nav-bar__menu-layer"
|
|
1458
|
-
},
|
|
1457
|
+
}, ln = {
|
|
1459
1458
|
class: "top-nav-bar__menu-panel top-nav-bar__breadcrumb-panel",
|
|
1460
1459
|
role: "menu"
|
|
1461
|
-
},
|
|
1460
|
+
}, un = [
|
|
1462
1461
|
"disabled",
|
|
1463
1462
|
"onMouseenter",
|
|
1464
1463
|
"onClick"
|
|
1465
|
-
],
|
|
1464
|
+
], dn = { class: "top-nav-bar__menu-label" }, fn = {
|
|
1466
1465
|
key: 1,
|
|
1467
1466
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1468
1467
|
"aria-hidden": "true"
|
|
1469
|
-
},
|
|
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 = {
|
|
1470
1469
|
key: 0,
|
|
1471
1470
|
class: "top-nav-bar__popover-layer top-nav-bar__favorites-layer"
|
|
1472
|
-
},
|
|
1471
|
+
}, bn = {
|
|
1473
1472
|
class: "top-nav-bar__small-panel top-nav-bar__favorites-panel",
|
|
1474
1473
|
role: "menu"
|
|
1475
|
-
},
|
|
1474
|
+
}, xn = ["disabled", "onClick"], Sn = { class: "top-nav-bar__favorites-title" }, Cn = {
|
|
1476
1475
|
key: 0,
|
|
1477
1476
|
class: "top-nav-bar__favorites-separator"
|
|
1478
|
-
},
|
|
1477
|
+
}, wn = {
|
|
1479
1478
|
key: 0,
|
|
1480
1479
|
class: "top-nav-bar__favorites-row top-nav-bar__desktop-only"
|
|
1481
|
-
},
|
|
1480
|
+
}, Tn = { class: "top-nav-bar__favorites-title" }, En = { class: "top-nav-bar__favorites-list" }, Dn = {
|
|
1482
1481
|
key: 0,
|
|
1483
1482
|
class: "top-nav-bar__favorites-separator",
|
|
1484
1483
|
"aria-hidden": "true"
|
|
1485
|
-
},
|
|
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 = {
|
|
1486
1485
|
key: 0,
|
|
1487
1486
|
class: "top-nav-bar__drawer-tools"
|
|
1488
|
-
},
|
|
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 = {
|
|
1489
1488
|
key: 0,
|
|
1490
1489
|
class: "top-nav-bar__mobile-favorites"
|
|
1491
|
-
},
|
|
1490
|
+
}, Bn = ["aria-expanded"], Vn = { class: "top-nav-bar__mobile-item-label" }, Hn = { class: "top-nav-bar__mobile-count" }, Un = {
|
|
1492
1491
|
key: 1,
|
|
1493
1492
|
class: "top-nav-bar__drawer-empty"
|
|
1494
|
-
},
|
|
1493
|
+
}, Wn = {
|
|
1495
1494
|
key: 1,
|
|
1496
1495
|
class: "top-nav-bar__mobile-footer"
|
|
1497
|
-
},
|
|
1496
|
+
}, Gn = ["aria-haspopup", "aria-expanded"], Kn = ["src"], qn = {
|
|
1498
1497
|
key: 1,
|
|
1499
1498
|
class: "top-nav-bar__user-avatar"
|
|
1500
|
-
},
|
|
1499
|
+
}, Jn = {
|
|
1501
1500
|
key: 2,
|
|
1502
1501
|
class: "top-nav-bar__user-details"
|
|
1503
|
-
},
|
|
1502
|
+
}, Yn = { class: "top-nav-bar__user-name" }, Xn = {
|
|
1504
1503
|
key: 0,
|
|
1505
1504
|
class: "top-nav-bar__drawer-user-context"
|
|
1506
|
-
},
|
|
1505
|
+
}, Zn = { class: "top-nav-bar__drawer-user-client" }, Qn = {
|
|
1507
1506
|
key: 0,
|
|
1508
1507
|
class: "top-nav-bar__drawer-user-client-subtitle"
|
|
1509
|
-
},
|
|
1508
|
+
}, $n = {
|
|
1510
1509
|
key: 3,
|
|
1511
1510
|
class: "pi pi-chevron-down top-nav-bar__mobile-chevron",
|
|
1512
1511
|
"aria-hidden": "true"
|
|
1513
|
-
},
|
|
1512
|
+
}, er = 120, tr = 24, nr = /* @__PURE__ */ u({
|
|
1514
1513
|
__name: "TopNavBar",
|
|
1515
1514
|
props: {
|
|
1516
1515
|
sections: { default: () => [] },
|
|
@@ -1577,12 +1576,12 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1577
1576
|
"user-click"
|
|
1578
1577
|
],
|
|
1579
1578
|
setup(s, { expose: u, emit: d }) {
|
|
1580
|
-
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),
|
|
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), Y = S(!1), oe = S(!1), X = S({
|
|
1581
1580
|
collapseActions: !1,
|
|
1582
1581
|
searchIconOnly: !1,
|
|
1583
1582
|
hideUserName: !1,
|
|
1584
1583
|
hideContextDetails: !1
|
|
1585
|
-
}), ce, le,
|
|
1584
|
+
}), se, ce, le, ue, de = 0;
|
|
1586
1585
|
function fe(e) {
|
|
1587
1586
|
return (e.children ?? []).filter(Boolean).map((e) => {
|
|
1588
1587
|
let t = fe(e);
|
|
@@ -1723,11 +1722,11 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1723
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("") : "");
|
|
1724
1723
|
function Ue() {
|
|
1725
1724
|
let e = Math.max(0, window.scrollY);
|
|
1726
|
-
if (!G.value && e >=
|
|
1725
|
+
if (!G.value && e >= er) {
|
|
1727
1726
|
G.value = !0;
|
|
1728
1727
|
return;
|
|
1729
1728
|
}
|
|
1730
|
-
G.value && e <=
|
|
1729
|
+
G.value && e <= tr && (G.value = !1);
|
|
1731
1730
|
}
|
|
1732
1731
|
function We() {
|
|
1733
1732
|
let e = E.value, t = ee.value;
|
|
@@ -1811,7 +1810,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1811
1810
|
function at(e) {
|
|
1812
1811
|
Q() && (R.value = e, z.value = []);
|
|
1813
1812
|
}
|
|
1814
|
-
function
|
|
1813
|
+
function ot() {
|
|
1815
1814
|
!Q() || window.innerWidth < 1024 || (R.value = null, z.value = []);
|
|
1816
1815
|
}
|
|
1817
1816
|
function nr(e) {
|
|
@@ -1829,11 +1828,11 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1829
1828
|
P.value = !0, await m(), M.value?.focus();
|
|
1830
1829
|
return;
|
|
1831
1830
|
}
|
|
1832
|
-
|
|
1831
|
+
Y.value = !0, J.value = !0, await m(), k.value?.focus(), cr();
|
|
1833
1832
|
}
|
|
1834
1833
|
function ar() {
|
|
1835
1834
|
window.setTimeout(() => {
|
|
1836
|
-
J.value = !1,
|
|
1835
|
+
J.value = !1, X.value.searchIconOnly && !q.value.trim() && (Y.value = !1, cr());
|
|
1837
1836
|
}, 150);
|
|
1838
1837
|
}
|
|
1839
1838
|
function or() {
|
|
@@ -1842,7 +1841,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1842
1841
|
async function sr() {
|
|
1843
1842
|
if (typeof window > "u" || !T.value) return;
|
|
1844
1843
|
let e = ++de, t = or();
|
|
1845
|
-
|
|
1844
|
+
oe.value = t < 1024;
|
|
1846
1845
|
let n = {
|
|
1847
1846
|
collapseActions: !1,
|
|
1848
1847
|
searchIconOnly: !1,
|
|
@@ -1850,10 +1849,10 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1850
1849
|
hideContextDetails: !1
|
|
1851
1850
|
};
|
|
1852
1851
|
if (t < 1024) {
|
|
1853
|
-
|
|
1852
|
+
X.value = n, Y.value = !1;
|
|
1854
1853
|
return;
|
|
1855
1854
|
}
|
|
1856
|
-
if (
|
|
1855
|
+
if (X.value = {
|
|
1857
1856
|
collapseActions: t < 1440,
|
|
1858
1857
|
searchIconOnly: t < 1320,
|
|
1859
1858
|
hideUserName: t < 1180,
|
|
@@ -1866,15 +1865,15 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1866
1865
|
]) {
|
|
1867
1866
|
let n = T.value;
|
|
1868
1867
|
if (!n || n.scrollWidth <= n.clientWidth + 1) break;
|
|
1869
|
-
if (
|
|
1870
|
-
...
|
|
1868
|
+
if (X.value = {
|
|
1869
|
+
...X.value,
|
|
1871
1870
|
[t]: !0
|
|
1872
1871
|
}, await m(), e !== de) return;
|
|
1873
1872
|
}
|
|
1874
1873
|
}
|
|
1875
1874
|
function cr() {
|
|
1876
|
-
typeof window > "u" || (
|
|
1877
|
-
|
|
1875
|
+
typeof window > "u" || (le !== void 0 && window.cancelAnimationFrame(le), le = window.requestAnimationFrame(() => {
|
|
1876
|
+
le = void 0, sr();
|
|
1878
1877
|
}));
|
|
1879
1878
|
}
|
|
1880
1879
|
function lr(e) {
|
|
@@ -1897,7 +1896,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1897
1896
|
ie.value?.hide();
|
|
1898
1897
|
return;
|
|
1899
1898
|
}
|
|
1900
|
-
P.value &&= !1, rr(),
|
|
1899
|
+
P.value &&= !1, rr(), X.value.searchIconOnly && !q.value.trim() && (Y.value = !1);
|
|
1901
1900
|
}
|
|
1902
1901
|
}
|
|
1903
1902
|
function dr() {
|
|
@@ -1927,11 +1926,11 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1927
1926
|
() => f.user,
|
|
1928
1927
|
Ae
|
|
1929
1928
|
], () => m(cr), { deep: !0 }), A(Fe, () => m(We), { deep: !0 }), y(() => {
|
|
1930
|
-
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" && (se = new ResizeObserver(cr), T.value && se.observe(T.value), ce = new ResizeObserver(We), E.value && ce.observe(E.value)), cr(), m(() => {
|
|
1931
1930
|
We(), Ue(), Ge();
|
|
1932
1931
|
});
|
|
1933
1932
|
}), v(() => {
|
|
1934
|
-
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), se?.disconnect(), ce?.disconnect(), le !== void 0 && window.cancelAnimationFrame(le), ue !== void 0 && window.cancelAnimationFrame(ue);
|
|
1935
1934
|
}), u({
|
|
1936
1935
|
close: rr,
|
|
1937
1936
|
closeDrawer: () => {
|
|
@@ -1951,7 +1950,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1951
1950
|
o("header", {
|
|
1952
1951
|
ref_key: "headerRef",
|
|
1953
1952
|
ref: T,
|
|
1954
|
-
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": X.value.hideContextDetails }])
|
|
1955
1954
|
}, [
|
|
1956
1955
|
Re.value ? (b(), a("button", {
|
|
1957
1956
|
key: 0,
|
|
@@ -1963,33 +1962,33 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1963
1962
|
}, [...u[19] ||= [o("i", {
|
|
1964
1963
|
class: "pi pi-bars",
|
|
1965
1964
|
"aria-hidden": "true"
|
|
1966
|
-
}, null, -1)]], 8,
|
|
1967
|
-
o("div",
|
|
1968
|
-
Pe.value ? (b(), a("div",
|
|
1969
|
-
Pe.value ? (b(), a("div",
|
|
1965
|
+
}, null, -1)]], 8, ct)) : i("", !0),
|
|
1966
|
+
o("div", lt, [w(n.$slots, "brand", { compact: X.value.hideContextDetails })]),
|
|
1967
|
+
Pe.value ? (b(), a("div", ut)) : i("", !0),
|
|
1968
|
+
Pe.value ? (b(), a("div", dt, [X.value.hideContextDetails && n.$slots["context-compact"] ? w(n.$slots, "context-compact", {
|
|
1970
1969
|
client: s.client,
|
|
1971
1970
|
compact: !0
|
|
1972
1971
|
}, void 0, void 0, 0) : n.$slots.context ? w(n.$slots, "context", {
|
|
1973
1972
|
client: s.client,
|
|
1974
|
-
compact:
|
|
1973
|
+
compact: X.value.hideContextDetails
|
|
1975
1974
|
}, void 0, void 0, 1) : n.$slots.scope ? w(n.$slots, "scope", {
|
|
1976
1975
|
client: s.client,
|
|
1977
|
-
compact:
|
|
1976
|
+
compact: X.value.hideContextDetails
|
|
1978
1977
|
}, void 0, void 0, 2) : w(n.$slots, "client", {
|
|
1979
1978
|
client: s.client,
|
|
1980
|
-
compact:
|
|
1981
|
-
}, () => [s.client ? (b(), a("div",
|
|
1979
|
+
compact: X.value.hideContextDetails
|
|
1980
|
+
}, () => [s.client ? (b(), a("div", ft, [s.client.logoUrl ? (b(), a("img", {
|
|
1982
1981
|
key: 0,
|
|
1983
1982
|
src: s.client.logoUrl,
|
|
1984
1983
|
alt: "",
|
|
1985
1984
|
class: "top-nav-bar__client-logo"
|
|
1986
|
-
}, null, 8,
|
|
1985
|
+
}, null, 8, pt)) : (b(), a("span", mt, D(He.value), 1)), X.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),
|
|
1987
1986
|
u[24] ||= o("div", {
|
|
1988
1987
|
class: "top-nav-bar__spacer",
|
|
1989
1988
|
"aria-hidden": "true"
|
|
1990
1989
|
}, null, -1),
|
|
1991
|
-
o("div",
|
|
1992
|
-
s.searchable ? (b(), a("div",
|
|
1990
|
+
o("div", vt, [
|
|
1991
|
+
s.searchable ? (b(), a("div", yt, [X.value.searchIconOnly && !Y.value ? (b(), a("button", {
|
|
1993
1992
|
key: 0,
|
|
1994
1993
|
class: "top-nav-bar__square-button",
|
|
1995
1994
|
type: "button",
|
|
@@ -2001,7 +2000,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2001
2000
|
"aria-hidden": "true"
|
|
2002
2001
|
}, null, -1)]])) : (b(), a("div", {
|
|
2003
2002
|
key: 1,
|
|
2004
|
-
class: h(["top-nav-bar__search", { "top-nav-bar__search--expanded":
|
|
2003
|
+
class: h(["top-nav-bar__search", { "top-nav-bar__search--expanded": Y.value }])
|
|
2005
2004
|
}, [
|
|
2006
2005
|
u[22] ||= o("i", {
|
|
2007
2006
|
class: "pi pi-search",
|
|
@@ -2018,19 +2017,19 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2018
2017
|
onFocus: u[1] ||= (e) => J.value = !0,
|
|
2019
2018
|
onBlur: ar,
|
|
2020
2019
|
onInput: u[2] ||= (e) => Ye(e.target.value)
|
|
2021
|
-
}, null, 40,
|
|
2022
|
-
q.value ||
|
|
2020
|
+
}, null, 40, bt),
|
|
2021
|
+
q.value || X.value.searchIconOnly && Y.value ? (b(), a("button", {
|
|
2023
2022
|
key: 0,
|
|
2024
2023
|
class: "top-nav-bar__search-clear",
|
|
2025
2024
|
type: "button",
|
|
2026
2025
|
"aria-label": q.value ? "Limpar pesquisa" : "Fechar pesquisa",
|
|
2027
2026
|
onMousedown: u[3] ||= N(() => {}, ["prevent"]),
|
|
2028
|
-
onClick: u[4] ||= (e) => q.value ? Xe() :
|
|
2027
|
+
onClick: u[4] ||= (e) => q.value ? Xe() : Y.value = !1
|
|
2029
2028
|
}, [...u[21] ||= [o("i", {
|
|
2030
2029
|
class: "pi pi-times",
|
|
2031
2030
|
"aria-hidden": "true"
|
|
2032
|
-
}, null, -1)]], 40,
|
|
2033
|
-
J.value ? (b(), a("div",
|
|
2031
|
+
}, null, -1)]], 40, xt)) : i("", !0),
|
|
2032
|
+
J.value ? (b(), a("div", St, [o("div", Ct, [w(n.$slots, "search-results", {
|
|
2034
2033
|
items: ge.value,
|
|
2035
2034
|
select: $
|
|
2036
2035
|
}, () => [(b(!0), a(e, null, C(ge.value, (e) => (b(), a("button", {
|
|
@@ -2045,9 +2044,9 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2045
2044
|
key: 0,
|
|
2046
2045
|
class: h(e.icon),
|
|
2047
2046
|
"aria-hidden": "true"
|
|
2048
|
-
}, 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)
|
|
2049
2048
|
], 2))])) : i("", !0),
|
|
2050
|
-
Ae.value.length ? (b(), a("div",
|
|
2049
|
+
Ae.value.length ? (b(), a("div", Et, [X.value.collapseActions ? (b(), a(e, { key: 1 }, [o("button", {
|
|
2051
2050
|
class: "top-nav-bar__square-button",
|
|
2052
2051
|
type: "button",
|
|
2053
2052
|
"aria-label": "Mais ações",
|
|
@@ -2056,7 +2055,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2056
2055
|
}, [...u[23] ||= [o("i", {
|
|
2057
2056
|
class: "pi pi-ellipsis-h",
|
|
2058
2057
|
"aria-hidden": "true"
|
|
2059
|
-
}, 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", {
|
|
2060
2059
|
key: e.id,
|
|
2061
2060
|
class: "top-nav-bar__menu-item",
|
|
2062
2061
|
type: "button",
|
|
@@ -2066,7 +2065,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2066
2065
|
}, [o("i", {
|
|
2067
2066
|
class: h(e.icon),
|
|
2068
2067
|
"aria-hidden": "true"
|
|
2069
|
-
}, 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", {
|
|
2070
2069
|
key: e.id,
|
|
2071
2070
|
class: h(["top-nav-bar__square-button", { "top-nav-bar__square-button--active": e.kind === "aia" && s.aiaActive }]),
|
|
2072
2071
|
type: "button",
|
|
@@ -2085,9 +2084,9 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2085
2084
|
key: 2,
|
|
2086
2085
|
class: h(e.icon),
|
|
2087
2086
|
"aria-hidden": "true"
|
|
2088
|
-
}, null, 2))], 10,
|
|
2089
|
-
n.$slots.actions ? (b(), a("div",
|
|
2090
|
-
compact:
|
|
2087
|
+
}, null, 2))], 10, Dt))), 128))])) : i("", !0),
|
|
2088
|
+
n.$slots.actions ? (b(), a("div", Mt, [w(n.$slots, "actions", {
|
|
2089
|
+
compact: X.value.collapseActions,
|
|
2091
2090
|
close: rr
|
|
2092
2091
|
})])) : i("", !0),
|
|
2093
2092
|
Ne.value ? (b(), a("div", {
|
|
@@ -2104,16 +2103,16 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2104
2103
|
onClick: dr
|
|
2105
2104
|
}, [w(n.$slots, "user", {
|
|
2106
2105
|
user: s.user,
|
|
2107
|
-
compact:
|
|
2106
|
+
compact: X.value.hideUserName
|
|
2108
2107
|
}, () => [s.user?.avatarUrl ? (b(), a("img", {
|
|
2109
2108
|
key: 0,
|
|
2110
2109
|
src: s.user.avatarUrl,
|
|
2111
2110
|
alt: "",
|
|
2112
2111
|
class: "top-nav-bar__user-avatar"
|
|
2113
|
-
}, null, 8,
|
|
2112
|
+
}, null, 8, Pt)) : (b(), a("span", Ft, D(ze.value), 1)), s.user && !X.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", {
|
|
2114
2113
|
items: je.value,
|
|
2115
2114
|
select: qe
|
|
2116
|
-
}, () => [(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", {
|
|
2117
2116
|
key: 1,
|
|
2118
2117
|
class: "top-nav-bar__menu-item",
|
|
2119
2118
|
type: "button",
|
|
@@ -2124,16 +2123,16 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2124
2123
|
key: 0,
|
|
2125
2124
|
class: h(t.icon),
|
|
2126
2125
|
"aria-hidden": "true"
|
|
2127
|
-
}, 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)
|
|
2128
2127
|
])
|
|
2129
2128
|
], 2),
|
|
2130
|
-
o("div",
|
|
2129
|
+
o("div", Wt, [
|
|
2131
2130
|
o("button", {
|
|
2132
2131
|
class: "top-nav-bar__crumb",
|
|
2133
2132
|
type: "button",
|
|
2134
2133
|
onClick: u[9] ||= (e) => $(s.homeItem)
|
|
2135
2134
|
}, [l(O(Ee), { icon: O(xe) }, null, 8, ["icon"]), o("span", null, D(s.homeItem.label), 1)]),
|
|
2136
|
-
Z.value.length ? (b(), a("span",
|
|
2135
|
+
Z.value.length ? (b(), a("span", Gt, "/")) : i("", !0),
|
|
2137
2136
|
Z.value.length ? (b(), a("div", {
|
|
2138
2137
|
key: 1,
|
|
2139
2138
|
class: "top-nav-bar__dropdown top-nav-bar__desktop-navigation",
|
|
@@ -2156,7 +2155,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2156
2155
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2157
2156
|
"aria-hidden": "true"
|
|
2158
2157
|
}, null, -1)
|
|
2159
|
-
], 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", {
|
|
2160
2159
|
key: e.id,
|
|
2161
2160
|
class: h(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--explored": e.children?.length && I.value === e.id }]),
|
|
2162
2161
|
type: "button",
|
|
@@ -2171,10 +2170,10 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2171
2170
|
class: h(e.icon),
|
|
2172
2171
|
"aria-hidden": "true"
|
|
2173
2172
|
}, null, 2)) : i("", !0),
|
|
2174
|
-
o("span",
|
|
2175
|
-
e.children?.length ? (b(), a("span",
|
|
2176
|
-
e.children?.length ? (b(), a("i",
|
|
2177
|
-
], 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", {
|
|
2178
2177
|
key: `navigation-level-${n}`,
|
|
2179
2178
|
class: h(["top-nav-bar__cascade-level", { "top-nav-bar__section-items": n === 0 }]),
|
|
2180
2179
|
role: "menu"
|
|
@@ -2197,9 +2196,9 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2197
2196
|
class: h(e.icon),
|
|
2198
2197
|
"aria-hidden": "true"
|
|
2199
2198
|
}, null, 2)) : i("", !0),
|
|
2200
|
-
o("span",
|
|
2201
|
-
e.children?.length ? (b(), a("i",
|
|
2202
|
-
], 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),
|
|
2203
2202
|
(b(!0), a(e, null, C(Ce.value, (t, n) => (b(), a(e, { key: t.id }, [o("span", {
|
|
2204
2203
|
class: h(["top-nav-bar__separator", { "top-nav-bar__separator--current": !t.to && n === Ce.value.length - 1 }]),
|
|
2205
2204
|
"aria-hidden": "true"
|
|
@@ -2207,9 +2206,9 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2207
2206
|
key: 0,
|
|
2208
2207
|
class: "top-nav-bar__dropdown top-nav-bar__breadcrumb-dropdown",
|
|
2209
2208
|
"data-top-nav-breadcrumb": "",
|
|
2210
|
-
onMouseenter: (e) => !
|
|
2211
|
-
onMouseleave: u[10] ||= (e) => !
|
|
2212
|
-
}, [
|
|
2209
|
+
onMouseenter: (e) => !oe.value && at(t.id),
|
|
2210
|
+
onMouseleave: u[10] ||= (e) => !oe.value && ot()
|
|
2211
|
+
}, [oe.value ? (b(), a("span", on, D(t.label), 1)) : (b(), a("button", {
|
|
2213
2212
|
key: 1,
|
|
2214
2213
|
class: "top-nav-bar__crumb",
|
|
2215
2214
|
type: "button",
|
|
@@ -2219,7 +2218,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2219
2218
|
}, [o("span", null, D(t.label), 1), u[27] ||= o("i", {
|
|
2220
2219
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2221
2220
|
"aria-hidden": "true"
|
|
2222
|
-
}, null, -1)], 8,
|
|
2221
|
+
}, null, -1)], 8, sn)), !oe.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", {
|
|
2223
2222
|
key: `breadcrumb-${t.id}-${r}`,
|
|
2224
2223
|
class: h(["top-nav-bar__cascade-level", { "top-nav-bar__breadcrumb-main-items": r === 0 }])
|
|
2225
2224
|
}, [(b(!0), a(e, null, C(ke(n), (n, s) => (b(), a("div", {
|
|
@@ -2239,18 +2238,18 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2239
2238
|
class: h(e.icon),
|
|
2240
2239
|
"aria-hidden": "true"
|
|
2241
2240
|
}, null, 2)) : i("", !0),
|
|
2242
|
-
o("span",
|
|
2243
|
-
e.children?.length ? (b(), a("i",
|
|
2244
|
-
], 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", {
|
|
2245
2244
|
key: 1,
|
|
2246
2245
|
class: "top-nav-bar__crumb",
|
|
2247
2246
|
type: "button",
|
|
2248
2247
|
onClick: (e) => $(t)
|
|
2249
|
-
}, D(t.label), 9,
|
|
2248
|
+
}, D(t.label), 9, pn)) : (b(), a("span", {
|
|
2250
2249
|
key: 2,
|
|
2251
2250
|
class: "top-nav-bar__current",
|
|
2252
2251
|
title: t.label
|
|
2253
|
-
}, [o("span",
|
|
2252
|
+
}, [o("span", hn, D(t.label), 1), s.showFavoriteToggle ? (b(), a("button", {
|
|
2254
2253
|
key: 0,
|
|
2255
2254
|
class: "top-nav-bar__favorite-toggle",
|
|
2256
2255
|
type: "button",
|
|
@@ -2260,8 +2259,8 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2260
2259
|
}, [o("i", {
|
|
2261
2260
|
class: h(s.favoriteActive ? "pi pi-star-fill" : "pi pi-star"),
|
|
2262
2261
|
"aria-hidden": "true"
|
|
2263
|
-
}, null, 2)], 8,
|
|
2264
|
-
o("div",
|
|
2262
|
+
}, null, 2)], 8, gn)) : i("", !0)], 8, mn))], 64))), 128)),
|
|
2263
|
+
o("div", _n, [l(t, {
|
|
2265
2264
|
name: "top-nav-bar-favorites-trigger",
|
|
2266
2265
|
css: ae.value
|
|
2267
2266
|
}, {
|
|
@@ -2287,7 +2286,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2287
2286
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2288
2287
|
"aria-hidden": "true"
|
|
2289
2288
|
}, null, -1)
|
|
2290
|
-
], 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", {
|
|
2291
2290
|
key: e.id,
|
|
2292
2291
|
class: "top-nav-bar__menu-item",
|
|
2293
2292
|
type: "button",
|
|
@@ -2298,7 +2297,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2298
2297
|
key: 0,
|
|
2299
2298
|
class: h(e.icon),
|
|
2300
2299
|
"aria-hidden": "true"
|
|
2301
|
-
}, 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)]),
|
|
2302
2301
|
_: 1
|
|
2303
2302
|
}, 8, ["css"]), w(n.$slots, "breadcrumb-actions")])
|
|
2304
2303
|
]),
|
|
@@ -2311,13 +2310,13 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2311
2310
|
ref_key: "favoritesMeasureContentRef",
|
|
2312
2311
|
ref: ee,
|
|
2313
2312
|
class: "top-nav-bar__favorites-measure-content"
|
|
2314
|
-
}, [o("span",
|
|
2313
|
+
}, [o("span", Sn, [u[30] ||= o("i", {
|
|
2315
2314
|
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
2316
2315
|
"aria-hidden": "true"
|
|
2317
2316
|
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), (b(!0), a(e, null, C(Fe.value, (e, t) => (b(), a("span", {
|
|
2318
2317
|
key: `measure-${e.id}`,
|
|
2319
2318
|
class: "top-nav-bar__favorites-measure-item"
|
|
2320
|
-
}, [t > 0 ? (b(), a("span",
|
|
2319
|
+
}, [t > 0 ? (b(), a("span", Cn, "|")) : i("", !0), o("span", null, [e.icon ? (b(), a("i", {
|
|
2321
2320
|
key: 0,
|
|
2322
2321
|
class: h(e.icon),
|
|
2323
2322
|
"aria-hidden": "true"
|
|
@@ -2326,10 +2325,10 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2326
2325
|
name: "top-nav-bar-favorites-row",
|
|
2327
2326
|
css: ae.value
|
|
2328
2327
|
}, {
|
|
2329
|
-
default: j(() => [Le.value ? (b(), a("div",
|
|
2328
|
+
default: j(() => [Le.value ? (b(), a("div", wn, [o("span", Tn, [u[31] ||= o("i", {
|
|
2330
2329
|
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
2331
2330
|
"aria-hidden": "true"
|
|
2332
|
-
}, 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", {
|
|
2333
2332
|
class: "top-nav-bar__favorites-row-item",
|
|
2334
2333
|
type: "button",
|
|
2335
2334
|
disabled: t.disabled,
|
|
@@ -2338,7 +2337,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2338
2337
|
key: 0,
|
|
2339
2338
|
class: h(t.icon),
|
|
2340
2339
|
"aria-hidden": "true"
|
|
2341
|
-
}, 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)]),
|
|
2342
2341
|
_: 1
|
|
2343
2342
|
}, 8, ["css"]),
|
|
2344
2343
|
l(O(re), {
|
|
@@ -2346,10 +2345,11 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2346
2345
|
"onUpdate:visible": u[16] ||= (e) => P.value = e,
|
|
2347
2346
|
position: "left",
|
|
2348
2347
|
class: "top-nav-bar__mobile-drawer",
|
|
2348
|
+
"block-scroll": "",
|
|
2349
2349
|
style: _([Ve.value, { width: "var(--top-nav-drawer-width, min(22rem, calc(100vw - 1.5rem)))" }])
|
|
2350
2350
|
}, {
|
|
2351
|
-
container: j(({ closeCallback: d }) => [o("div",
|
|
2352
|
-
o("header",
|
|
2351
|
+
container: j(({ closeCallback: d }) => [o("div", kn, [
|
|
2352
|
+
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", {
|
|
2353
2353
|
class: "top-nav-bar__drawer-close top-nav-bar__square-button",
|
|
2354
2354
|
type: "button",
|
|
2355
2355
|
"aria-label": "Fechar navegação",
|
|
@@ -2357,12 +2357,12 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2357
2357
|
}, [...u[32] ||= [o("i", {
|
|
2358
2358
|
class: "pi pi-times",
|
|
2359
2359
|
"aria-hidden": "true"
|
|
2360
|
-
}, null, -1)]], 8,
|
|
2361
|
-
s.searchable || Ae.value.length || n.$slots["drawer-actions"] ? (b(), a("div",
|
|
2360
|
+
}, null, -1)]], 8, Mn)])]),
|
|
2361
|
+
s.searchable || Ae.value.length || n.$slots["drawer-actions"] ? (b(), a("div", Nn, [s.searchable ? w(n.$slots, "drawer-search", {
|
|
2362
2362
|
query: q.value,
|
|
2363
2363
|
update: Ye,
|
|
2364
2364
|
clear: Xe
|
|
2365
|
-
}, () => [o("div",
|
|
2365
|
+
}, () => [o("div", Pn, [
|
|
2366
2366
|
u[34] ||= o("i", {
|
|
2367
2367
|
class: "pi pi-search",
|
|
2368
2368
|
"aria-hidden": "true"
|
|
@@ -2376,7 +2376,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2376
2376
|
placeholder: s.searchPlaceholder,
|
|
2377
2377
|
"aria-label": "Pesquisar no menu",
|
|
2378
2378
|
onInput: u[14] ||= (e) => Ye(e.target.value)
|
|
2379
|
-
}, null, 40,
|
|
2379
|
+
}, null, 40, Fn),
|
|
2380
2380
|
q.value ? (b(), a("button", {
|
|
2381
2381
|
key: 0,
|
|
2382
2382
|
class: "top-nav-bar__search-clear",
|
|
@@ -2400,10 +2400,10 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2400
2400
|
}, [o("i", {
|
|
2401
2401
|
class: h(e.icon),
|
|
2402
2402
|
"aria-hidden": "true"
|
|
2403
|
-
}, null, 2), o("span", null, D(e.label), 1)], 10,
|
|
2404
|
-
o("div",
|
|
2403
|
+
}, null, 2), o("span", null, D(e.label), 1)], 10, In))), 128))])])) : i("", !0),
|
|
2404
|
+
o("div", Ln, [
|
|
2405
2405
|
w(n.$slots, "drawer-before-menu", { close: d }),
|
|
2406
|
-
o("div",
|
|
2406
|
+
o("div", Rn, [Fe.value.length ? (b(), a("section", zn, [o("button", {
|
|
2407
2407
|
class: "top-nav-bar__mobile-item",
|
|
2408
2408
|
type: "button",
|
|
2409
2409
|
"aria-expanded": W.value,
|
|
@@ -2413,14 +2413,14 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2413
2413
|
class: "pi pi-star-fill top-nav-bar__accent",
|
|
2414
2414
|
"aria-hidden": "true"
|
|
2415
2415
|
}, null, -1),
|
|
2416
|
-
o("span",
|
|
2417
|
-
o("span",
|
|
2416
|
+
o("span", Vn, D(s.favoriteLabel), 1),
|
|
2417
|
+
o("span", Hn, D(Fe.value.length), 1),
|
|
2418
2418
|
o("i", {
|
|
2419
2419
|
class: h(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open": W.value }]),
|
|
2420
2420
|
"aria-hidden": "true"
|
|
2421
2421
|
}, null, 2)
|
|
2422
|
-
], 8,
|
|
2423
|
-
default: j(() => [W.value ? (b(), r(
|
|
2422
|
+
], 8, Bn), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
2423
|
+
default: j(() => [W.value ? (b(), r(st, {
|
|
2424
2424
|
key: 0,
|
|
2425
2425
|
items: Fe.value,
|
|
2426
2426
|
"active-item-id": s.activeItemId,
|
|
@@ -2432,7 +2432,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2432
2432
|
sections: ve.value,
|
|
2433
2433
|
select: $,
|
|
2434
2434
|
close: d
|
|
2435
|
-
}, () => [ve.value.length ? (b(), r(
|
|
2435
|
+
}, () => [ve.value.length ? (b(), r(st, {
|
|
2436
2436
|
key: 0,
|
|
2437
2437
|
items: ve.value,
|
|
2438
2438
|
"active-item-id": s.activeItemId,
|
|
@@ -2443,10 +2443,10 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2443
2443
|
"items",
|
|
2444
2444
|
"active-item-id",
|
|
2445
2445
|
"force-open"
|
|
2446
|
-
])) : (b(), a("div",
|
|
2446
|
+
])) : (b(), a("div", Un, "Nenhum menu encontrado."))])]),
|
|
2447
2447
|
w(n.$slots, "drawer-after-menu", { close: d })
|
|
2448
2448
|
]),
|
|
2449
|
-
Ne.value || n.$slots["drawer-footer"] ? (b(), a("footer",
|
|
2449
|
+
Ne.value || n.$slots["drawer-footer"] ? (b(), a("footer", Wn, [Ne.value ? w(n.$slots, "drawer-user", {
|
|
2450
2450
|
user: s.user,
|
|
2451
2451
|
client: s.client,
|
|
2452
2452
|
open: ne.value,
|
|
@@ -2463,13 +2463,13 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2463
2463
|
src: s.user.avatarUrl,
|
|
2464
2464
|
alt: "",
|
|
2465
2465
|
class: "top-nav-bar__user-avatar"
|
|
2466
|
-
}, null, 8,
|
|
2467
|
-
s.user ? (b(), a("span",
|
|
2466
|
+
}, null, 8, Kn)) : (b(), a("span", qn, D(ze.value), 1)),
|
|
2467
|
+
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", {
|
|
2468
2468
|
class: "pi pi-building",
|
|
2469
2469
|
"aria-hidden": "true"
|
|
2470
|
-
}, null, -1), c(D(s.client.name), 1)]), s.client.subtitle ? (b(), a("span",
|
|
2471
|
-
Me.value ? (b(), a("i",
|
|
2472
|
-
], 8,
|
|
2470
|
+
}, 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),
|
|
2471
|
+
Me.value ? (b(), a("i", $n)) : i("", !0)
|
|
2472
|
+
], 8, Gn)], void 0, 0) : i("", !0), w(n.$slots, "drawer-footer", { close: d })])) : i("", !0)
|
|
2473
2473
|
])]),
|
|
2474
2474
|
_: 3
|
|
2475
2475
|
}, 8, ["visible", "style"]),
|
|
@@ -2486,41 +2486,41 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2486
2486
|
}, null, 8, ["model"])
|
|
2487
2487
|
], 4));
|
|
2488
2488
|
}
|
|
2489
|
-
}),
|
|
2489
|
+
}), rr = { class: "top-field-icon pointer-events-none absolute left-3 top-1/2 z-10 -translate-y-1/2" }, ir = {
|
|
2490
2490
|
key: 0,
|
|
2491
2491
|
class: "pi pi-spin pi-spinner"
|
|
2492
|
-
},
|
|
2492
|
+
}, ar = {
|
|
2493
2493
|
key: 1,
|
|
2494
2494
|
class: "pi pi-search"
|
|
2495
|
-
},
|
|
2495
|
+
}, or = {
|
|
2496
2496
|
key: 1,
|
|
2497
2497
|
class: "flex items-center gap-1 !text-sm"
|
|
2498
|
-
},
|
|
2498
|
+
}, 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 = {
|
|
2499
2499
|
key: 1,
|
|
2500
2500
|
class: "flex min-h-[100px] flex-col items-center justify-center gap-2 py-2"
|
|
2501
|
-
},
|
|
2501
|
+
}, dr = {
|
|
2502
2502
|
key: 0,
|
|
2503
2503
|
class: "text-xs font-medium text-primary-600"
|
|
2504
|
-
},
|
|
2504
|
+
}, fr = {
|
|
2505
2505
|
key: 2,
|
|
2506
2506
|
class: "text-xs text-secondary-500"
|
|
2507
|
-
},
|
|
2507
|
+
}, pr = { key: 1 }, mr = {
|
|
2508
2508
|
key: 1,
|
|
2509
2509
|
class: "flex items-center gap-2 font-semibold"
|
|
2510
|
-
},
|
|
2510
|
+
}, hr = {
|
|
2511
2511
|
key: 1,
|
|
2512
2512
|
class: "flex w-full min-w-0 items-start gap-2 overflow-hidden px-2 py-3 text-sm",
|
|
2513
2513
|
style: { "white-space": "normal" }
|
|
2514
|
-
},
|
|
2514
|
+
}, gr = ["title"], _r = {
|
|
2515
2515
|
key: 0,
|
|
2516
2516
|
class: "top-select-option-prefix whitespace-nowrap font-bold text-primary-800 dark:text-primary-100"
|
|
2517
|
-
},
|
|
2517
|
+
}, vr = {
|
|
2518
2518
|
key: 0,
|
|
2519
2519
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2520
|
-
},
|
|
2520
|
+
}, yr = {
|
|
2521
2521
|
key: 0,
|
|
2522
2522
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2523
|
-
},
|
|
2523
|
+
}, br = /* @__PURE__ */ u({
|
|
2524
2524
|
inheritAttrs: !1,
|
|
2525
2525
|
__name: "TopSelect",
|
|
2526
2526
|
props: {
|
|
@@ -2635,6 +2635,10 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2635
2635
|
});
|
|
2636
2636
|
}
|
|
2637
2637
|
function J(e) {
|
|
2638
|
+
let t = e.target, n = t.scrollHeight - t.scrollTop - t.clientHeight;
|
|
2639
|
+
t.scrollTop > 0 && n <= 168 && !f.loading && _("loadMore", e);
|
|
2640
|
+
}
|
|
2641
|
+
function Y(e) {
|
|
2638
2642
|
e.detail?.instanceId !== L && K();
|
|
2639
2643
|
}
|
|
2640
2644
|
function oe() {
|
|
@@ -2644,13 +2648,13 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2644
2648
|
}
|
|
2645
2649
|
N.value = !0, ae();
|
|
2646
2650
|
}
|
|
2647
|
-
function
|
|
2651
|
+
function X() {
|
|
2648
2652
|
f.closeOnSelect && (N.value = !1, K(), m(K), R && clearTimeout(R), R = setTimeout(() => {
|
|
2649
2653
|
K(), R = null;
|
|
2650
2654
|
}, 200));
|
|
2651
2655
|
}
|
|
2652
|
-
return r({ hideDropdown: K }), y(() => window.addEventListener("top-select:close-others",
|
|
2653
|
-
window.removeEventListener("top-select:close-others",
|
|
2656
|
+
return r({ hideDropdown: K }), y(() => window.addEventListener("top-select:close-others", Y)), v(() => {
|
|
2657
|
+
window.removeEventListener("top-select:close-others", Y), R && clearTimeout(R);
|
|
2654
2658
|
}), A(() => f.disabled, (e) => {
|
|
2655
2659
|
e && (N.value = !1, K());
|
|
2656
2660
|
}), A(() => f.options, () => {
|
|
@@ -2658,7 +2662,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2658
2662
|
}), (n, r) => (b(), a("div", {
|
|
2659
2663
|
class: h(["top-select top-solutions-component relative w-full", { "pointer-events-none": t.disabled }]),
|
|
2660
2664
|
onFocusin: oe
|
|
2661
|
-
}, [o("span",
|
|
2665
|
+
}, [o("span", rr, [w(n.$slots, "icon", { loading: t.loading }, () => [t.loading ? (b(), a("i", ir)) : (b(), a("i", ar))])]), l(O(E), p({
|
|
2662
2666
|
ref_key: "autocompleteRef",
|
|
2663
2667
|
ref: P
|
|
2664
2668
|
}, B.value, {
|
|
@@ -2683,8 +2687,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2683
2687
|
"force-selection": t.forceSelection,
|
|
2684
2688
|
"input-class": "text-xs",
|
|
2685
2689
|
"virtual-scroller-options": {
|
|
2686
|
-
|
|
2687
|
-
onLazyLoad: (e) => _("loadMore", e),
|
|
2690
|
+
onScroll: J,
|
|
2688
2691
|
itemSize: 84,
|
|
2689
2692
|
showLoader: !0,
|
|
2690
2693
|
scrollHeight: t.scrollHeight
|
|
@@ -2715,7 +2718,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2715
2718
|
k.value = "", _("clear");
|
|
2716
2719
|
},
|
|
2717
2720
|
onItemSelect: r[2] ||= (e) => {
|
|
2718
|
-
k.value = "", _("select", e),
|
|
2721
|
+
k.value = "", _("select", e), X();
|
|
2719
2722
|
},
|
|
2720
2723
|
onComplete: r[3] ||= (e) => {
|
|
2721
2724
|
if (t.disabled) {
|
|
@@ -2726,18 +2729,18 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2726
2729
|
},
|
|
2727
2730
|
onChange: r[4] ||= (e) => _("change", e)
|
|
2728
2731
|
}), s({
|
|
2729
|
-
chip: j((e) => [O(x).chip ? w(n.$slots, "chip", g(d(e)), void 0, void 0, 0) : (b(), a("div",
|
|
2732
|
+
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", {
|
|
2730
2733
|
class: "pi pi-times-circle shrink-0 cursor-pointer rounded-full hover:bg-primary-800",
|
|
2731
2734
|
onClick: (t) => e.removeCallback(t)
|
|
2732
|
-
}, null, 8,
|
|
2735
|
+
}, null, 8, cr), M((b(), a("span", lr, [c(D(W(e.value)), 1)])), [[
|
|
2733
2736
|
O(F),
|
|
2734
2737
|
W(e.value),
|
|
2735
2738
|
void 0,
|
|
2736
2739
|
{ top: !0 }
|
|
2737
2740
|
]])])]))]),
|
|
2738
|
-
empty: j(() => [O(x).empty ? w(n.$slots, "empty", {}, void 0, void 0, 0) : t.loading ? (b(), a("div",
|
|
2739
|
-
"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",
|
|
2740
|
-
optiongroup: j((e) => [O(x)["option-group"] ? w(n.$slots, "option-group", g(d(e)), void 0, void 0, 0) : (b(), a("div",
|
|
2741
|
+
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))]),
|
|
2742
|
+
"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)]),
|
|
2743
|
+
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", {
|
|
2741
2744
|
key: 0,
|
|
2742
2745
|
class: h(e.option.icon)
|
|
2743
2746
|
}, null, 2)) : i("", !0), o("span", null, D(e.option[t.optionGroupLabel ?? "label"]), 1)]))]),
|
|
@@ -2745,10 +2748,10 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2745
2748
|
label: H(s.option),
|
|
2746
2749
|
prefix: U(s.option),
|
|
2747
2750
|
query: k.value
|
|
2748
|
-
}), void 0, void 0, 0) : M((b(), a("div",
|
|
2751
|
+
}), void 0, void 0, 0) : M((b(), a("div", hr, [o("span", {
|
|
2749
2752
|
class: "top-select-option-label line-clamp-2 min-w-0 flex-1 text-secondary-700 dark:text-zinc-200",
|
|
2750
2753
|
title: H(s.option)
|
|
2751
|
-
}, [t.showOptionPrefix && U(s.option) ? (b(), a("span",
|
|
2754
|
+
}, [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)])), [[
|
|
2752
2755
|
O(F),
|
|
2753
2756
|
t.showTooltip ? H(s.option) : null,
|
|
2754
2757
|
void 0,
|
|
@@ -2777,7 +2780,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2777
2780
|
"pt"
|
|
2778
2781
|
])], 34));
|
|
2779
2782
|
}
|
|
2780
|
-
}),
|
|
2783
|
+
}), xr = /* @__PURE__ */ u({
|
|
2781
2784
|
inheritAttrs: !1,
|
|
2782
2785
|
__name: "TopTabs",
|
|
2783
2786
|
props: {
|
|
@@ -2838,12 +2841,12 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2838
2841
|
});
|
|
2839
2842
|
//#endregion
|
|
2840
2843
|
//#region src/components/internal/topAccordion.ts
|
|
2841
|
-
function
|
|
2844
|
+
function Sr(e, t) {
|
|
2842
2845
|
return `${e}--section-${encodeURIComponent(String(t))}`;
|
|
2843
2846
|
}
|
|
2844
2847
|
//#endregion
|
|
2845
2848
|
//#region src/components/TopAccordion.vue?vue&type=script&setup=true&lang.ts
|
|
2846
|
-
var
|
|
2849
|
+
var Cr = Symbol("top-accordion-context"), wr = /* @__PURE__ */ u({
|
|
2847
2850
|
inheritAttrs: !1,
|
|
2848
2851
|
__name: "TopAccordion",
|
|
2849
2852
|
props: {
|
|
@@ -2868,7 +2871,7 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
2868
2871
|
return s.value.includes(e);
|
|
2869
2872
|
}
|
|
2870
2873
|
function g(e) {
|
|
2871
|
-
return
|
|
2874
|
+
return Sr(i.id, e);
|
|
2872
2875
|
}
|
|
2873
2876
|
function _(e) {
|
|
2874
2877
|
s.value = Array.isArray(e) ? e : e == null ? [] : [e];
|
|
@@ -2884,7 +2887,7 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
2884
2887
|
behavior: t.behavior ?? "smooth"
|
|
2885
2888
|
}), !0;
|
|
2886
2889
|
}
|
|
2887
|
-
return x(
|
|
2890
|
+
return x(Cr, {
|
|
2888
2891
|
accordionId: i.id,
|
|
2889
2892
|
sections: c,
|
|
2890
2893
|
openSections: s,
|
|
@@ -2911,11 +2914,11 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
2911
2914
|
_: 3
|
|
2912
2915
|
}, 16, ["value", "multiple"])], 512));
|
|
2913
2916
|
}
|
|
2914
|
-
}),
|
|
2917
|
+
}), Tr = {
|
|
2915
2918
|
key: 0,
|
|
2916
2919
|
class: "top-accordion-summary__separator",
|
|
2917
2920
|
"aria-hidden": "true"
|
|
2918
|
-
},
|
|
2921
|
+
}, Er = { class: "top-accordion-summary__item" }, Dr = /* @__PURE__ */ u({
|
|
2919
2922
|
__name: "TopAccordionSummary",
|
|
2920
2923
|
props: {
|
|
2921
2924
|
items: { default: () => [] },
|
|
@@ -2936,12 +2939,12 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
2936
2939
|
return (r, s) => t.visible && (t.items.length || r.$slots.default) ? (b(), a("div", {
|
|
2937
2940
|
key: 0,
|
|
2938
2941
|
class: h(["top-accordion-summary", { "top-accordion-summary--nowrap": t.nowrap }])
|
|
2939
|
-
}, [(b(!0), a(e, null, C(t.items, (t, r) => (b(), a(e, { key: `${t.label}-${r}` }, [r > 0 ? (b(), a("span",
|
|
2942
|
+
}, [(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);
|
|
2940
2943
|
}
|
|
2941
|
-
}),
|
|
2944
|
+
}), Or = ["id"], kr = { class: "top-accordion-panel__heading" }, Ar = { class: "top-accordion-panel__title-row" }, jr = {
|
|
2942
2945
|
class: "top-accordion-panel__badge",
|
|
2943
2946
|
"aria-hidden": "true"
|
|
2944
|
-
},
|
|
2947
|
+
}, Mr = { key: 1 }, Nr = { class: "top-accordion-panel__title" }, Pr = ["aria-label"], Fr = /* @__PURE__ */ u({
|
|
2945
2948
|
inheritAttrs: !1,
|
|
2946
2949
|
__name: "TopAccordionPanel",
|
|
2947
2950
|
props: {
|
|
@@ -2993,27 +2996,27 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
2993
2996
|
}
|
|
2994
2997
|
},
|
|
2995
2998
|
setup(e) {
|
|
2996
|
-
let t = e, r = f(
|
|
2999
|
+
let t = e, r = f(Cr);
|
|
2997
3000
|
if (!r) throw Error("TopAccordionPanel deve ser usado dentro de TopAccordion.");
|
|
2998
3001
|
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");
|
|
2999
3002
|
return (t, n) => (b(), a("div", {
|
|
3000
3003
|
id: y.value,
|
|
3001
3004
|
class: "top-accordion-panel-anchor"
|
|
3002
|
-
}, [l(O(
|
|
3005
|
+
}, [l(O(oe), p(t.$attrs, {
|
|
3003
3006
|
value: e.value,
|
|
3004
3007
|
disabled: m.value,
|
|
3005
3008
|
class: "top-accordion-panel"
|
|
3006
3009
|
}), {
|
|
3007
|
-
default: j(() => [l(O(
|
|
3010
|
+
default: j(() => [l(O(Y), {
|
|
3008
3011
|
class: h(["top-accordion-panel__header", e.headerClass]),
|
|
3009
3012
|
style: _(e.headerStyle)
|
|
3010
3013
|
}, {
|
|
3011
|
-
default: j(() => [o("div",
|
|
3012
|
-
o("span",
|
|
3014
|
+
default: j(() => [o("div", kr, [o("div", Ar, [
|
|
3015
|
+
o("span", jr, [w(t.$slots, "icon", {}, () => [d.value ? (b(), a("i", {
|
|
3013
3016
|
key: 0,
|
|
3014
3017
|
class: h(d.value)
|
|
3015
|
-
}, null, 2)) : (b(), a("span",
|
|
3016
|
-
o("span",
|
|
3018
|
+
}, null, 2)) : (b(), a("span", Mr, D(g.value), 1))])]),
|
|
3019
|
+
o("span", Nr, [w(t.$slots, "title", {}, () => [c(D(u.value), 1)])]),
|
|
3017
3020
|
w(t.$slots, "status", {}, () => [e.status ? (b(), a("i", {
|
|
3018
3021
|
key: 0,
|
|
3019
3022
|
class: h([
|
|
@@ -3023,8 +3026,8 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
3023
3026
|
]),
|
|
3024
3027
|
"aria-label": e.statusLabel || (e.status === "valid" ? "Seção válida" : "Existem erros na seção"),
|
|
3025
3028
|
role: "img"
|
|
3026
|
-
}, null, 10,
|
|
3027
|
-
]), t.$slots.preview ? w(t.$slots, "preview", { open: v.value }, void 0, void 0, 0) : w(t.$slots, "summary", { open: v.value }, () => [l(
|
|
3029
|
+
}, null, 10, Pr)) : i("", !0)])
|
|
3030
|
+
]), t.$slots.preview ? w(t.$slots, "preview", { open: v.value }, void 0, void 0, 0) : w(t.$slots, "summary", { open: v.value }, () => [l(Dr, {
|
|
3028
3031
|
items: e.summary,
|
|
3029
3032
|
visible: !v.value
|
|
3030
3033
|
}, null, 8, ["items", "visible"])], void 0, 1)])]),
|
|
@@ -3037,16 +3040,16 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
3037
3040
|
_: 3
|
|
3038
3041
|
})]),
|
|
3039
3042
|
_: 3
|
|
3040
|
-
}, 16, ["value", "disabled"])], 8,
|
|
3043
|
+
}, 16, ["value", "disabled"])], 8, Or));
|
|
3041
3044
|
}
|
|
3042
|
-
}),
|
|
3045
|
+
}), Ir = { class: "top-accordion-navigator__items" }, Lr = [
|
|
3043
3046
|
"disabled",
|
|
3044
3047
|
"aria-current",
|
|
3045
3048
|
"onClick"
|
|
3046
|
-
],
|
|
3049
|
+
], Rr = { class: "top-accordion-navigator__badge" }, zr = {
|
|
3047
3050
|
key: 0,
|
|
3048
3051
|
class: "pi pi-lock"
|
|
3049
|
-
},
|
|
3052
|
+
}, Br = { key: 2 }, Vr = { class: "top-accordion-navigator__label" }, Hr = /* @__PURE__ */ u({
|
|
3050
3053
|
__name: "TopAccordionNavigator",
|
|
3051
3054
|
props: {
|
|
3052
3055
|
accordionId: {},
|
|
@@ -3082,7 +3085,7 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
3082
3085
|
async function E(e) {
|
|
3083
3086
|
if (e.disabled) return;
|
|
3084
3087
|
x(e.value) || (g.value = [...g.value, e.value]), c("navigate", e), await m(), await new Promise((e) => requestAnimationFrame(() => e()));
|
|
3085
|
-
let t = document.getElementById(
|
|
3088
|
+
let t = document.getElementById(Sr(s.accordionId, e.value));
|
|
3086
3089
|
t && window.scrollTo({
|
|
3087
3090
|
top: t.getBoundingClientRect().top + window.scrollY - s.scrollOffset,
|
|
3088
3091
|
behavior: "smooth"
|
|
@@ -3121,7 +3124,7 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
3121
3124
|
ref_key: "containerRef",
|
|
3122
3125
|
ref: l,
|
|
3123
3126
|
class: "top-accordion-navigator__scroll-area"
|
|
3124
|
-
}, [o("div",
|
|
3127
|
+
}, [o("div", Ir, [(b(!0), a(e, null, C(t.sections, (n, r) => (b(), a(e, { key: n.value }, [o("button", {
|
|
3125
3128
|
class: h(["top-accordion-navigator__item", {
|
|
3126
3129
|
"top-accordion-navigator__item--open": x(n.value),
|
|
3127
3130
|
"top-accordion-navigator__item--disabled": n.disabled
|
|
@@ -3130,20 +3133,20 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
3130
3133
|
type: "button",
|
|
3131
3134
|
"aria-current": x(n.value) ? "step" : void 0,
|
|
3132
3135
|
onClick: (e) => E(n)
|
|
3133
|
-
}, [o("span",
|
|
3136
|
+
}, [o("span", Rr, [n.disabled ? (b(), a("i", zr)) : n.icon ? (b(), a("i", {
|
|
3134
3137
|
key: 1,
|
|
3135
3138
|
class: h(n.icon)
|
|
3136
|
-
}, null, 2)) : (b(), a("span",
|
|
3139
|
+
}, 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", {
|
|
3137
3140
|
key: 0,
|
|
3138
3141
|
class: h(["top-accordion-navigator__connector", { "top-accordion-navigator__connector--open": x(n.value) && x(t.sections[r + 1].value) }]),
|
|
3139
3142
|
"aria-hidden": "true"
|
|
3140
3143
|
}, null, 2)) : i("", !0)], 64))), 128))])], 512)
|
|
3141
3144
|
], 6));
|
|
3142
3145
|
}
|
|
3143
|
-
}),
|
|
3146
|
+
}), Ur = { class: "top-toast__content" }, Wr = { class: "top-toast__detail" }, Gr = ["onClick"], Kr = {
|
|
3144
3147
|
key: 0,
|
|
3145
3148
|
class: "top-toast__footer"
|
|
3146
|
-
},
|
|
3149
|
+
}, qr = /* @__PURE__ */ u({
|
|
3147
3150
|
__name: "TopToast",
|
|
3148
3151
|
props: { baseZIndex: { default: 3e4 } },
|
|
3149
3152
|
setup(e) {
|
|
@@ -3165,13 +3168,13 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
3165
3168
|
function d(e, t) {
|
|
3166
3169
|
return `top-toast__${t}--${e.severity ?? "info"}`;
|
|
3167
3170
|
}
|
|
3168
|
-
return (f, p) => (b(), r(O(
|
|
3171
|
+
return (f, p) => (b(), r(O(X), {
|
|
3169
3172
|
position: "top-right",
|
|
3170
3173
|
"base-z-index": e.baseZIndex
|
|
3171
3174
|
}, {
|
|
3172
|
-
message: j((e) => [o("div",
|
|
3175
|
+
message: j((e) => [o("div", Ur, [
|
|
3173
3176
|
o("div", { class: h(["top-toast__summary", d(e.message, "summary")]) }, D(e.message.summary), 3),
|
|
3174
|
-
o("div",
|
|
3177
|
+
o("div", Wr, D(e.message.detail), 1),
|
|
3175
3178
|
u(e.message) ? w(f.$slots, "action", {
|
|
3176
3179
|
action: n(e.message),
|
|
3177
3180
|
message: e.message,
|
|
@@ -3185,17 +3188,17 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
3185
3188
|
key: 0,
|
|
3186
3189
|
class: h(n(e.message)?.icon),
|
|
3187
3190
|
"aria-hidden": "true"
|
|
3188
|
-
}, null, 2)) : i("", !0), c(" " + D(n(e.message)?.label), 1)], 10,
|
|
3191
|
+
}, null, 2)) : i("", !0), c(" " + D(n(e.message)?.label), 1)], 10, Gr)) : i("", !0)], void 0, 0) : i("", !0),
|
|
3189
3192
|
l(e.message) ? w(f.$slots, "footer", {
|
|
3190
3193
|
message: e.message,
|
|
3191
3194
|
footer: t(e.message)
|
|
3192
|
-
}, () => [t(e.message) === void 0 ? i("", !0) : (b(), a("div",
|
|
3195
|
+
}, () => [t(e.message) === void 0 ? i("", !0) : (b(), a("div", Kr, D(t(e.message)), 1))], void 0, 1) : i("", !0)
|
|
3193
3196
|
])]),
|
|
3194
3197
|
_: 3
|
|
3195
3198
|
}, 8, ["base-z-index"]));
|
|
3196
3199
|
}
|
|
3197
3200
|
});
|
|
3198
3201
|
//#endregion
|
|
3199
|
-
export {
|
|
3202
|
+
export { wr as a, nr as c, $ as d, He as f, ce as g, le 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 };
|
|
3200
3203
|
|
|
3201
|
-
//# sourceMappingURL=TopToast-
|
|
3204
|
+
//# sourceMappingURL=TopToast-C6B7YGDo.js.map
|