@topjoao/top-design-system 0.2.11 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{TopToast-8u50_WSL.js → TopToast-LduM5Y6j.js} +211 -212
- package/dist/TopToast-LduM5Y6j.js.map +1 -0
- package/dist/TopToast-pn0Xv1kN.cjs +2 -0
- package/dist/TopToast-pn0Xv1kN.cjs.map +1 -0
- package/dist/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
|
@@ -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: () => [] },
|
|
@@ -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) {
|
|
@@ -1963,10 +1962,10 @@ 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: Y.value.hideContextDetails })]),
|
|
1967
|
+
Pe.value ? (b(), a("div", ut)) : i("", !0),
|
|
1968
|
+
Pe.value ? (b(), a("div", dt, [Y.value.hideContextDetails && n.$slots["context-compact"] ? w(n.$slots, "context-compact", {
|
|
1970
1969
|
client: s.client,
|
|
1971
1970
|
compact: !0
|
|
1972
1971
|
}, void 0, void 0, 0) : n.$slots.context ? w(n.$slots, "context", {
|
|
@@ -1978,18 +1977,18 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
1978
1977
|
}, void 0, void 0, 2) : w(n.$slots, "client", {
|
|
1979
1978
|
client: s.client,
|
|
1980
1979
|
compact: Y.value.hideContextDetails
|
|
1981
|
-
}, () => [s.client ? (b(), a("div",
|
|
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)), Y.value.hideContextDetails ? i("", !0) : (b(), a("span", ht, [o("span", gt, D(s.client.name), 1), s.client.subtitle ? (b(), a("span", _t, D(s.client.subtitle), 1)) : i("", !0)]))])) : i("", !0)], void 0, 3)])) : i("", !0),
|
|
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, [Y.value.searchIconOnly && !oe.value ? (b(), a("button", {
|
|
1993
1992
|
key: 0,
|
|
1994
1993
|
class: "top-nav-bar__square-button",
|
|
1995
1994
|
type: "button",
|
|
@@ -2018,7 +2017,7 @@ 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,
|
|
2020
|
+
}, null, 40, bt),
|
|
2022
2021
|
q.value || Y.value.searchIconOnly && oe.value ? (b(), a("button", {
|
|
2023
2022
|
key: 0,
|
|
2024
2023
|
class: "top-nav-bar__search-clear",
|
|
@@ -2029,8 +2028,8 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
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, [Y.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,8 +2084,8 @@ 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",
|
|
2087
|
+
}, null, 2))], 10, Dt))), 128))])) : i("", !0),
|
|
2088
|
+
n.$slots.actions ? (b(), a("div", Mt, [w(n.$slots, "actions", {
|
|
2090
2089
|
compact: Y.value.collapseActions,
|
|
2091
2090
|
close: rr
|
|
2092
2091
|
})])) : i("", !0),
|
|
@@ -2110,10 +2109,10 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
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 && !Y.value.hideUserName ? (b(), a("span", It, [o("span", Lt, D(s.user.name), 1), s.user.subtitle ? (b(), a("span", Rt, D(s.user.subtitle), 1)) : i("", !0)])) : i("", !0)]), Me.value ? (b(), a("i", zt)) : i("", !0)], 8, Nt), Me.value && V.value ? (b(), a("div", Bt, [o("div", Vt, [w(n.$slots, "user-menu", {
|
|
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"
|
|
@@ -2208,8 +2207,8 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2208
2207
|
class: "top-nav-bar__dropdown top-nav-bar__breadcrumb-dropdown",
|
|
2209
2208
|
"data-top-nav-breadcrumb": "",
|
|
2210
2209
|
onMouseenter: (e) => !se.value && at(t.id),
|
|
2211
|
-
onMouseleave: u[10] ||= (e) => !se.value &&
|
|
2212
|
-
}, [se.value ? (b(), a("span",
|
|
2210
|
+
onMouseleave: u[10] ||= (e) => !se.value && ot()
|
|
2211
|
+
}, [se.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)), !se.value && R.value === t.id ? (b(), a("div", cn, [o("div", ln, [(b(!0), a(e, null, C(De(we(t)?.children ?? [], z.value), (n, r) => (b(), a("div", {
|
|
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), {
|
|
@@ -2348,8 +2347,8 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2348
2347
|
class: "top-nav-bar__mobile-drawer",
|
|
2349
2348
|
style: _([Ve.value, { width: "var(--top-nav-drawer-width, min(22rem, calc(100vw - 1.5rem)))" }])
|
|
2350
2349
|
}, {
|
|
2351
|
-
container: j(({ closeCallback: d }) => [o("div",
|
|
2352
|
-
o("header",
|
|
2350
|
+
container: j(({ closeCallback: d }) => [o("div", kn, [
|
|
2351
|
+
o("header", An, [w(n.$slots, "drawer-header", { close: d }, () => [o("div", jn, [w(n.$slots, "drawer-brand", {}, () => [w(n.$slots, "brand", { compact: !1 })])]), o("button", {
|
|
2353
2352
|
class: "top-nav-bar__drawer-close top-nav-bar__square-button",
|
|
2354
2353
|
type: "button",
|
|
2355
2354
|
"aria-label": "Fechar navegação",
|
|
@@ -2357,12 +2356,12 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2357
2356
|
}, [...u[32] ||= [o("i", {
|
|
2358
2357
|
class: "pi pi-times",
|
|
2359
2358
|
"aria-hidden": "true"
|
|
2360
|
-
}, null, -1)]], 8,
|
|
2361
|
-
s.searchable || Ae.value.length || n.$slots["drawer-actions"] ? (b(), a("div",
|
|
2359
|
+
}, null, -1)]], 8, Mn)])]),
|
|
2360
|
+
s.searchable || Ae.value.length || n.$slots["drawer-actions"] ? (b(), a("div", Nn, [s.searchable ? w(n.$slots, "drawer-search", {
|
|
2362
2361
|
query: q.value,
|
|
2363
2362
|
update: Ye,
|
|
2364
2363
|
clear: Xe
|
|
2365
|
-
}, () => [o("div",
|
|
2364
|
+
}, () => [o("div", Pn, [
|
|
2366
2365
|
u[34] ||= o("i", {
|
|
2367
2366
|
class: "pi pi-search",
|
|
2368
2367
|
"aria-hidden": "true"
|
|
@@ -2376,7 +2375,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2376
2375
|
placeholder: s.searchPlaceholder,
|
|
2377
2376
|
"aria-label": "Pesquisar no menu",
|
|
2378
2377
|
onInput: u[14] ||= (e) => Ye(e.target.value)
|
|
2379
|
-
}, null, 40,
|
|
2378
|
+
}, null, 40, Fn),
|
|
2380
2379
|
q.value ? (b(), a("button", {
|
|
2381
2380
|
key: 0,
|
|
2382
2381
|
class: "top-nav-bar__search-clear",
|
|
@@ -2400,10 +2399,10 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2400
2399
|
}, [o("i", {
|
|
2401
2400
|
class: h(e.icon),
|
|
2402
2401
|
"aria-hidden": "true"
|
|
2403
|
-
}, null, 2), o("span", null, D(e.label), 1)], 10,
|
|
2404
|
-
o("div",
|
|
2402
|
+
}, null, 2), o("span", null, D(e.label), 1)], 10, In))), 128))])])) : i("", !0),
|
|
2403
|
+
o("div", Ln, [
|
|
2405
2404
|
w(n.$slots, "drawer-before-menu", { close: d }),
|
|
2406
|
-
o("div",
|
|
2405
|
+
o("div", Rn, [Fe.value.length ? (b(), a("section", zn, [o("button", {
|
|
2407
2406
|
class: "top-nav-bar__mobile-item",
|
|
2408
2407
|
type: "button",
|
|
2409
2408
|
"aria-expanded": W.value,
|
|
@@ -2413,14 +2412,14 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2413
2412
|
class: "pi pi-star-fill top-nav-bar__accent",
|
|
2414
2413
|
"aria-hidden": "true"
|
|
2415
2414
|
}, null, -1),
|
|
2416
|
-
o("span",
|
|
2417
|
-
o("span",
|
|
2415
|
+
o("span", Vn, D(s.favoriteLabel), 1),
|
|
2416
|
+
o("span", Hn, D(Fe.value.length), 1),
|
|
2418
2417
|
o("i", {
|
|
2419
2418
|
class: h(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open": W.value }]),
|
|
2420
2419
|
"aria-hidden": "true"
|
|
2421
2420
|
}, null, 2)
|
|
2422
|
-
], 8,
|
|
2423
|
-
default: j(() => [W.value ? (b(), r(
|
|
2421
|
+
], 8, Bn), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
2422
|
+
default: j(() => [W.value ? (b(), r(st, {
|
|
2424
2423
|
key: 0,
|
|
2425
2424
|
items: Fe.value,
|
|
2426
2425
|
"active-item-id": s.activeItemId,
|
|
@@ -2432,7 +2431,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2432
2431
|
sections: ve.value,
|
|
2433
2432
|
select: $,
|
|
2434
2433
|
close: d
|
|
2435
|
-
}, () => [ve.value.length ? (b(), r(
|
|
2434
|
+
}, () => [ve.value.length ? (b(), r(st, {
|
|
2436
2435
|
key: 0,
|
|
2437
2436
|
items: ve.value,
|
|
2438
2437
|
"active-item-id": s.activeItemId,
|
|
@@ -2443,10 +2442,10 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2443
2442
|
"items",
|
|
2444
2443
|
"active-item-id",
|
|
2445
2444
|
"force-open"
|
|
2446
|
-
])) : (b(), a("div",
|
|
2445
|
+
])) : (b(), a("div", Un, "Nenhum menu encontrado."))])]),
|
|
2447
2446
|
w(n.$slots, "drawer-after-menu", { close: d })
|
|
2448
2447
|
]),
|
|
2449
|
-
Ne.value || n.$slots["drawer-footer"] ? (b(), a("footer",
|
|
2448
|
+
Ne.value || n.$slots["drawer-footer"] ? (b(), a("footer", Wn, [Ne.value ? w(n.$slots, "drawer-user", {
|
|
2450
2449
|
user: s.user,
|
|
2451
2450
|
client: s.client,
|
|
2452
2451
|
open: ne.value,
|
|
@@ -2463,13 +2462,13 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2463
2462
|
src: s.user.avatarUrl,
|
|
2464
2463
|
alt: "",
|
|
2465
2464
|
class: "top-nav-bar__user-avatar"
|
|
2466
|
-
}, null, 8,
|
|
2467
|
-
s.user ? (b(), a("span",
|
|
2465
|
+
}, null, 8, Kn)) : (b(), a("span", qn, D(ze.value), 1)),
|
|
2466
|
+
s.user ? (b(), a("span", Jn, [o("span", Yn, D(s.user.name), 1), s.client ? (b(), a("span", Xn, [o("span", Zn, [u[36] ||= o("i", {
|
|
2468
2467
|
class: "pi pi-building",
|
|
2469
2468
|
"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,
|
|
2469
|
+
}, null, -1), c(D(s.client.name), 1)]), s.client.subtitle ? (b(), a("span", Qn, D(s.client.subtitle), 1)) : i("", !0)])) : i("", !0)])) : i("", !0),
|
|
2470
|
+
Me.value ? (b(), a("i", $n)) : i("", !0)
|
|
2471
|
+
], 8, Gn)], void 0, 0) : i("", !0), w(n.$slots, "drawer-footer", { close: d })])) : i("", !0)
|
|
2473
2472
|
])]),
|
|
2474
2473
|
_: 3
|
|
2475
2474
|
}, 8, ["visible", "style"]),
|
|
@@ -2486,41 +2485,41 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2486
2485
|
}, null, 8, ["model"])
|
|
2487
2486
|
], 4));
|
|
2488
2487
|
}
|
|
2489
|
-
}),
|
|
2488
|
+
}), rr = { class: "top-field-icon pointer-events-none absolute left-3 top-1/2 z-10 -translate-y-1/2" }, ir = {
|
|
2490
2489
|
key: 0,
|
|
2491
2490
|
class: "pi pi-spin pi-spinner"
|
|
2492
|
-
},
|
|
2491
|
+
}, ar = {
|
|
2493
2492
|
key: 1,
|
|
2494
2493
|
class: "pi pi-search"
|
|
2495
|
-
},
|
|
2494
|
+
}, or = {
|
|
2496
2495
|
key: 1,
|
|
2497
2496
|
class: "flex items-center gap-1 !text-sm"
|
|
2498
|
-
},
|
|
2497
|
+
}, sr = { class: "flex items-center gap-2 rounded-[9px] bg-primary-500 px-2 py-1 text-white" }, cr = ["onClick"], lr = { class: "line-clamp-1 max-w-[300px] overflow-hidden text-ellipsis" }, ur = {
|
|
2499
2498
|
key: 1,
|
|
2500
2499
|
class: "flex min-h-[100px] flex-col items-center justify-center gap-2 py-2"
|
|
2501
|
-
},
|
|
2500
|
+
}, dr = {
|
|
2502
2501
|
key: 0,
|
|
2503
2502
|
class: "text-xs font-medium text-primary-600"
|
|
2504
|
-
},
|
|
2503
|
+
}, fr = {
|
|
2505
2504
|
key: 2,
|
|
2506
2505
|
class: "text-xs text-secondary-500"
|
|
2507
|
-
},
|
|
2506
|
+
}, pr = { key: 1 }, mr = {
|
|
2508
2507
|
key: 1,
|
|
2509
2508
|
class: "flex items-center gap-2 font-semibold"
|
|
2510
|
-
},
|
|
2509
|
+
}, hr = {
|
|
2511
2510
|
key: 1,
|
|
2512
2511
|
class: "flex w-full min-w-0 items-start gap-2 overflow-hidden px-2 py-3 text-sm",
|
|
2513
2512
|
style: { "white-space": "normal" }
|
|
2514
|
-
},
|
|
2513
|
+
}, gr = ["title"], _r = {
|
|
2515
2514
|
key: 0,
|
|
2516
2515
|
class: "top-select-option-prefix whitespace-nowrap font-bold text-primary-800 dark:text-primary-100"
|
|
2517
|
-
},
|
|
2516
|
+
}, vr = {
|
|
2518
2517
|
key: 0,
|
|
2519
2518
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2520
|
-
},
|
|
2519
|
+
}, yr = {
|
|
2521
2520
|
key: 0,
|
|
2522
2521
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2523
|
-
},
|
|
2522
|
+
}, br = /* @__PURE__ */ u({
|
|
2524
2523
|
inheritAttrs: !1,
|
|
2525
2524
|
__name: "TopSelect",
|
|
2526
2525
|
props: {
|
|
@@ -2658,7 +2657,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2658
2657
|
}), (n, r) => (b(), a("div", {
|
|
2659
2658
|
class: h(["top-select top-solutions-component relative w-full", { "pointer-events-none": t.disabled }]),
|
|
2660
2659
|
onFocusin: oe
|
|
2661
|
-
}, [o("span",
|
|
2660
|
+
}, [o("span", rr, [w(n.$slots, "icon", { loading: t.loading }, () => [t.loading ? (b(), a("i", ir)) : (b(), a("i", ar))])]), l(O(E), p({
|
|
2662
2661
|
ref_key: "autocompleteRef",
|
|
2663
2662
|
ref: P
|
|
2664
2663
|
}, B.value, {
|
|
@@ -2726,18 +2725,18 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2726
2725
|
},
|
|
2727
2726
|
onChange: r[4] ||= (e) => _("change", e)
|
|
2728
2727
|
}), s({
|
|
2729
|
-
chip: j((e) => [O(x).chip ? w(n.$slots, "chip", g(d(e)), void 0, void 0, 0) : (b(), a("div",
|
|
2728
|
+
chip: j((e) => [O(x).chip ? w(n.$slots, "chip", g(d(e)), void 0, void 0, 0) : (b(), a("div", or, [o("div", sr, [o("i", {
|
|
2730
2729
|
class: "pi pi-times-circle shrink-0 cursor-pointer rounded-full hover:bg-primary-800",
|
|
2731
2730
|
onClick: (t) => e.removeCallback(t)
|
|
2732
|
-
}, null, 8,
|
|
2731
|
+
}, null, 8, cr), M((b(), a("span", lr, [c(D(W(e.value)), 1)])), [[
|
|
2733
2732
|
O(F),
|
|
2734
2733
|
W(e.value),
|
|
2735
2734
|
void 0,
|
|
2736
2735
|
{ top: !0 }
|
|
2737
2736
|
]])])]))]),
|
|
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",
|
|
2737
|
+
empty: j(() => [O(x).empty ? w(n.$slots, "empty", {}, void 0, void 0, 0) : t.loading ? (b(), a("div", ur, [r[5] ||= o("span", { class: "pi pi-spin pi-spinner text-2xl text-primary-600" }, null, -1), t.showLoadingMessage ? (b(), a("span", dr, D(t.loadingMessage), 1)) : i("", !0)])) : (b(), a("span", fr, D(t.emptyMessage), 1))]),
|
|
2738
|
+
"selected-item": j((e) => [O(x)["selected-item"] ? w(n.$slots, "selected-item", g(d(e)), void 0, void 0, 0) : e.item ? (b(), a("span", pr, D(W(e.item)), 1)) : i("", !0)]),
|
|
2739
|
+
optiongroup: j((e) => [O(x)["option-group"] ? w(n.$slots, "option-group", g(d(e)), void 0, void 0, 0) : (b(), a("div", mr, [e.option.icon ? (b(), a("i", {
|
|
2741
2740
|
key: 0,
|
|
2742
2741
|
class: h(e.option.icon)
|
|
2743
2742
|
}, null, 2)) : i("", !0), o("span", null, D(e.option[t.optionGroupLabel ?? "label"]), 1)]))]),
|
|
@@ -2745,10 +2744,10 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2745
2744
|
label: H(s.option),
|
|
2746
2745
|
prefix: U(s.option),
|
|
2747
2746
|
query: k.value
|
|
2748
|
-
}), void 0, void 0, 0) : M((b(), a("div",
|
|
2747
|
+
}), void 0, void 0, 0) : M((b(), a("div", hr, [o("span", {
|
|
2749
2748
|
class: "top-select-option-label line-clamp-2 min-w-0 flex-1 text-secondary-700 dark:text-zinc-200",
|
|
2750
2749
|
title: H(s.option)
|
|
2751
|
-
}, [t.showOptionPrefix && U(s.option) ? (b(), a("span",
|
|
2750
|
+
}, [t.showOptionPrefix && U(s.option) ? (b(), a("span", _r, [(b(!0), a(e, null, C(G(U(s.option)), (t, n) => (b(), a(e, { key: n }, [t.highlighted ? (b(), a("mark", vr, D(t.text), 1)) : (b(), a(e, { key: 1 }, [c(D(t.text), 1)], 64))], 64))), 128)), r[6] ||= o("span", { class: "font-bold text-secondary-500 dark:text-zinc-400" }, "\xA0-\xA0", -1)])) : i("", !0), (b(!0), a(e, null, C(G(H(s.option)), (t, n) => (b(), a(e, { key: n }, [t.highlighted ? (b(), a("mark", yr, D(t.text), 1)) : (b(), a(e, { key: 1 }, [c(D(t.text), 1)], 64))], 64))), 128))], 8, gr)])), [[
|
|
2752
2751
|
O(F),
|
|
2753
2752
|
t.showTooltip ? H(s.option) : null,
|
|
2754
2753
|
void 0,
|
|
@@ -2777,7 +2776,7 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2777
2776
|
"pt"
|
|
2778
2777
|
])], 34));
|
|
2779
2778
|
}
|
|
2780
|
-
}),
|
|
2779
|
+
}), xr = /* @__PURE__ */ u({
|
|
2781
2780
|
inheritAttrs: !1,
|
|
2782
2781
|
__name: "TopTabs",
|
|
2783
2782
|
props: {
|
|
@@ -2838,12 +2837,12 @@ var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasa
|
|
|
2838
2837
|
});
|
|
2839
2838
|
//#endregion
|
|
2840
2839
|
//#region src/components/internal/topAccordion.ts
|
|
2841
|
-
function
|
|
2840
|
+
function Sr(e, t) {
|
|
2842
2841
|
return `${e}--section-${encodeURIComponent(String(t))}`;
|
|
2843
2842
|
}
|
|
2844
2843
|
//#endregion
|
|
2845
2844
|
//#region src/components/TopAccordion.vue?vue&type=script&setup=true&lang.ts
|
|
2846
|
-
var
|
|
2845
|
+
var Cr = Symbol("top-accordion-context"), wr = /* @__PURE__ */ u({
|
|
2847
2846
|
inheritAttrs: !1,
|
|
2848
2847
|
__name: "TopAccordion",
|
|
2849
2848
|
props: {
|
|
@@ -2868,7 +2867,7 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
2868
2867
|
return s.value.includes(e);
|
|
2869
2868
|
}
|
|
2870
2869
|
function g(e) {
|
|
2871
|
-
return
|
|
2870
|
+
return Sr(i.id, e);
|
|
2872
2871
|
}
|
|
2873
2872
|
function _(e) {
|
|
2874
2873
|
s.value = Array.isArray(e) ? e : e == null ? [] : [e];
|
|
@@ -2884,7 +2883,7 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
2884
2883
|
behavior: t.behavior ?? "smooth"
|
|
2885
2884
|
}), !0;
|
|
2886
2885
|
}
|
|
2887
|
-
return x(
|
|
2886
|
+
return x(Cr, {
|
|
2888
2887
|
accordionId: i.id,
|
|
2889
2888
|
sections: c,
|
|
2890
2889
|
openSections: s,
|
|
@@ -2911,11 +2910,11 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
2911
2910
|
_: 3
|
|
2912
2911
|
}, 16, ["value", "multiple"])], 512));
|
|
2913
2912
|
}
|
|
2914
|
-
}),
|
|
2913
|
+
}), Tr = {
|
|
2915
2914
|
key: 0,
|
|
2916
2915
|
class: "top-accordion-summary__separator",
|
|
2917
2916
|
"aria-hidden": "true"
|
|
2918
|
-
},
|
|
2917
|
+
}, Er = { class: "top-accordion-summary__item" }, Dr = /* @__PURE__ */ u({
|
|
2919
2918
|
__name: "TopAccordionSummary",
|
|
2920
2919
|
props: {
|
|
2921
2920
|
items: { default: () => [] },
|
|
@@ -2936,12 +2935,12 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
2936
2935
|
return (r, s) => t.visible && (t.items.length || r.$slots.default) ? (b(), a("div", {
|
|
2937
2936
|
key: 0,
|
|
2938
2937
|
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",
|
|
2938
|
+
}, [(b(!0), a(e, null, C(t.items, (t, r) => (b(), a(e, { key: `${t.label}-${r}` }, [r > 0 ? (b(), a("span", Tr)) : i("", !0), o("span", Er, [o("strong", null, D(t.label) + ":", 1), c(" " + D(n(t)), 1)])], 64))), 128)), w(r.$slots, "default")], 2)) : i("", !0);
|
|
2940
2939
|
}
|
|
2941
|
-
}),
|
|
2940
|
+
}), Or = ["id"], kr = { class: "top-accordion-panel__heading" }, Ar = { class: "top-accordion-panel__title-row" }, jr = {
|
|
2942
2941
|
class: "top-accordion-panel__badge",
|
|
2943
2942
|
"aria-hidden": "true"
|
|
2944
|
-
},
|
|
2943
|
+
}, Mr = { key: 1 }, Nr = { class: "top-accordion-panel__title" }, Pr = ["aria-label"], Fr = /* @__PURE__ */ u({
|
|
2945
2944
|
inheritAttrs: !1,
|
|
2946
2945
|
__name: "TopAccordionPanel",
|
|
2947
2946
|
props: {
|
|
@@ -2993,7 +2992,7 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
2993
2992
|
}
|
|
2994
2993
|
},
|
|
2995
2994
|
setup(e) {
|
|
2996
|
-
let t = e, r = f(
|
|
2995
|
+
let t = e, r = f(Cr);
|
|
2997
2996
|
if (!r) throw Error("TopAccordionPanel deve ser usado dentro de TopAccordion.");
|
|
2998
2997
|
let s = n(() => r.getSection(t.value)), u = n(() => t.title || s.value?.label || String(t.value)), d = n(() => t.icon || s.value?.icon || ""), m = n(() => !!s.value?.disabled), g = n(() => r.sections.value.findIndex((e) => e.value === t.value) + 1), v = n(() => r.isOpen(t.value)), y = n(() => r.getAnchorId(t.value)), x = n(() => t.status === "valid" ? "pi pi-check-circle" : "pi pi-times-circle"), S = n(() => t.status === "valid" ? "top-accordion-panel__status--valid" : "top-accordion-panel__status--error");
|
|
2999
2998
|
return (t, n) => (b(), a("div", {
|
|
@@ -3008,12 +3007,12 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
3008
3007
|
class: h(["top-accordion-panel__header", e.headerClass]),
|
|
3009
3008
|
style: _(e.headerStyle)
|
|
3010
3009
|
}, {
|
|
3011
|
-
default: j(() => [o("div",
|
|
3012
|
-
o("span",
|
|
3010
|
+
default: j(() => [o("div", kr, [o("div", Ar, [
|
|
3011
|
+
o("span", jr, [w(t.$slots, "icon", {}, () => [d.value ? (b(), a("i", {
|
|
3013
3012
|
key: 0,
|
|
3014
3013
|
class: h(d.value)
|
|
3015
|
-
}, null, 2)) : (b(), a("span",
|
|
3016
|
-
o("span",
|
|
3014
|
+
}, null, 2)) : (b(), a("span", Mr, D(g.value), 1))])]),
|
|
3015
|
+
o("span", Nr, [w(t.$slots, "title", {}, () => [c(D(u.value), 1)])]),
|
|
3017
3016
|
w(t.$slots, "status", {}, () => [e.status ? (b(), a("i", {
|
|
3018
3017
|
key: 0,
|
|
3019
3018
|
class: h([
|
|
@@ -3023,8 +3022,8 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
3023
3022
|
]),
|
|
3024
3023
|
"aria-label": e.statusLabel || (e.status === "valid" ? "Seção válida" : "Existem erros na seção"),
|
|
3025
3024
|
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(
|
|
3025
|
+
}, null, 10, Pr)) : i("", !0)])
|
|
3026
|
+
]), t.$slots.preview ? w(t.$slots, "preview", { open: v.value }, void 0, void 0, 0) : w(t.$slots, "summary", { open: v.value }, () => [l(Dr, {
|
|
3028
3027
|
items: e.summary,
|
|
3029
3028
|
visible: !v.value
|
|
3030
3029
|
}, null, 8, ["items", "visible"])], void 0, 1)])]),
|
|
@@ -3037,16 +3036,16 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
3037
3036
|
_: 3
|
|
3038
3037
|
})]),
|
|
3039
3038
|
_: 3
|
|
3040
|
-
}, 16, ["value", "disabled"])], 8,
|
|
3039
|
+
}, 16, ["value", "disabled"])], 8, Or));
|
|
3041
3040
|
}
|
|
3042
|
-
}),
|
|
3041
|
+
}), Ir = { class: "top-accordion-navigator__items" }, Lr = [
|
|
3043
3042
|
"disabled",
|
|
3044
3043
|
"aria-current",
|
|
3045
3044
|
"onClick"
|
|
3046
|
-
],
|
|
3045
|
+
], Rr = { class: "top-accordion-navigator__badge" }, zr = {
|
|
3047
3046
|
key: 0,
|
|
3048
3047
|
class: "pi pi-lock"
|
|
3049
|
-
},
|
|
3048
|
+
}, Br = { key: 2 }, Vr = { class: "top-accordion-navigator__label" }, Hr = /* @__PURE__ */ u({
|
|
3050
3049
|
__name: "TopAccordionNavigator",
|
|
3051
3050
|
props: {
|
|
3052
3051
|
accordionId: {},
|
|
@@ -3082,7 +3081,7 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
3082
3081
|
async function E(e) {
|
|
3083
3082
|
if (e.disabled) return;
|
|
3084
3083
|
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(
|
|
3084
|
+
let t = document.getElementById(Sr(s.accordionId, e.value));
|
|
3086
3085
|
t && window.scrollTo({
|
|
3087
3086
|
top: t.getBoundingClientRect().top + window.scrollY - s.scrollOffset,
|
|
3088
3087
|
behavior: "smooth"
|
|
@@ -3121,7 +3120,7 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
3121
3120
|
ref_key: "containerRef",
|
|
3122
3121
|
ref: l,
|
|
3123
3122
|
class: "top-accordion-navigator__scroll-area"
|
|
3124
|
-
}, [o("div",
|
|
3123
|
+
}, [o("div", Ir, [(b(!0), a(e, null, C(t.sections, (n, r) => (b(), a(e, { key: n.value }, [o("button", {
|
|
3125
3124
|
class: h(["top-accordion-navigator__item", {
|
|
3126
3125
|
"top-accordion-navigator__item--open": x(n.value),
|
|
3127
3126
|
"top-accordion-navigator__item--disabled": n.disabled
|
|
@@ -3130,20 +3129,20 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
3130
3129
|
type: "button",
|
|
3131
3130
|
"aria-current": x(n.value) ? "step" : void 0,
|
|
3132
3131
|
onClick: (e) => E(n)
|
|
3133
|
-
}, [o("span",
|
|
3132
|
+
}, [o("span", Rr, [n.disabled ? (b(), a("i", zr)) : n.icon ? (b(), a("i", {
|
|
3134
3133
|
key: 1,
|
|
3135
3134
|
class: h(n.icon)
|
|
3136
|
-
}, null, 2)) : (b(), a("span",
|
|
3135
|
+
}, null, 2)) : (b(), a("span", Br, D(r + 1), 1))]), o("span", Vr, D(n.label), 1)], 10, Lr), r < t.sections.length - 1 ? (b(), a("span", {
|
|
3137
3136
|
key: 0,
|
|
3138
3137
|
class: h(["top-accordion-navigator__connector", { "top-accordion-navigator__connector--open": x(n.value) && x(t.sections[r + 1].value) }]),
|
|
3139
3138
|
"aria-hidden": "true"
|
|
3140
3139
|
}, null, 2)) : i("", !0)], 64))), 128))])], 512)
|
|
3141
3140
|
], 6));
|
|
3142
3141
|
}
|
|
3143
|
-
}),
|
|
3142
|
+
}), Ur = { class: "top-toast__content" }, Wr = { class: "top-toast__detail" }, Gr = ["onClick"], Kr = {
|
|
3144
3143
|
key: 0,
|
|
3145
3144
|
class: "top-toast__footer"
|
|
3146
|
-
},
|
|
3145
|
+
}, qr = /* @__PURE__ */ u({
|
|
3147
3146
|
__name: "TopToast",
|
|
3148
3147
|
props: { baseZIndex: { default: 3e4 } },
|
|
3149
3148
|
setup(e) {
|
|
@@ -3169,9 +3168,9 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
3169
3168
|
position: "top-right",
|
|
3170
3169
|
"base-z-index": e.baseZIndex
|
|
3171
3170
|
}, {
|
|
3172
|
-
message: j((e) => [o("div",
|
|
3171
|
+
message: j((e) => [o("div", Ur, [
|
|
3173
3172
|
o("div", { class: h(["top-toast__summary", d(e.message, "summary")]) }, D(e.message.summary), 3),
|
|
3174
|
-
o("div",
|
|
3173
|
+
o("div", Wr, D(e.message.detail), 1),
|
|
3175
3174
|
u(e.message) ? w(f.$slots, "action", {
|
|
3176
3175
|
action: n(e.message),
|
|
3177
3176
|
message: e.message,
|
|
@@ -3185,17 +3184,17 @@ var Sr = Symbol("top-accordion-context"), Cr = /* @__PURE__ */ u({
|
|
|
3185
3184
|
key: 0,
|
|
3186
3185
|
class: h(n(e.message)?.icon),
|
|
3187
3186
|
"aria-hidden": "true"
|
|
3188
|
-
}, null, 2)) : i("", !0), c(" " + D(n(e.message)?.label), 1)], 10,
|
|
3187
|
+
}, null, 2)) : i("", !0), c(" " + D(n(e.message)?.label), 1)], 10, Gr)) : i("", !0)], void 0, 0) : i("", !0),
|
|
3189
3188
|
l(e.message) ? w(f.$slots, "footer", {
|
|
3190
3189
|
message: e.message,
|
|
3191
3190
|
footer: t(e.message)
|
|
3192
|
-
}, () => [t(e.message) === void 0 ? i("", !0) : (b(), a("div",
|
|
3191
|
+
}, () => [t(e.message) === void 0 ? i("", !0) : (b(), a("div", Kr, D(t(e.message)), 1))], void 0, 1) : i("", !0)
|
|
3193
3192
|
])]),
|
|
3194
3193
|
_: 3
|
|
3195
3194
|
}, 8, ["base-z-index"]));
|
|
3196
3195
|
}
|
|
3197
3196
|
});
|
|
3198
3197
|
//#endregion
|
|
3199
|
-
export {
|
|
3198
|
+
export { wr as a, nr as c, $ as d, He as f, le as g, X as h, Dr as i, rt as l, me as m, Hr as n, xr as o, ye as p, Fr as r, br as s, qr as t, Qe as u };
|
|
3200
3199
|
|
|
3201
|
-
//# sourceMappingURL=TopToast-
|
|
3200
|
+
//# sourceMappingURL=TopToast-LduM5Y6j.js.map
|