@topjoao/top-design-system 0.1.2-beta.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -2
- package/dist/TopToast-BUXi1vID.cjs +2 -0
- package/dist/TopToast-BUXi1vID.cjs.map +1 -0
- package/dist/{TopToast-Dw5MKTR2.js → TopToast-BYigZ3kA.js} +233 -182
- package/dist/TopToast-BYigZ3kA.js.map +1 -0
- package/dist/components/TopAccordionPanel.vue.d.ts +9 -0
- package/dist/components/TopNavBar.vue.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.js +1 -1
- package/dist/plugin.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/TopToast-CWJSJl4P.cjs +0 -2
- package/dist/TopToast-CWJSJl4P.cjs.map +0 -1
- package/dist/TopToast-Dw5MKTR2.js.map +0 -1
|
@@ -56,7 +56,7 @@ var J = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
56
56
|
setup(e, { emit: t }) {
|
|
57
57
|
let i = te(), o = n(() => !!i.icon), c = e, l = t, u = n(() => c.secondary ? "secondary" : c.severity), d = n(() => {
|
|
58
58
|
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";
|
|
59
|
-
return I(e, c.class);
|
|
59
|
+
return I("top-button__control text-xs", e, c.class);
|
|
60
60
|
});
|
|
61
61
|
return (t, n) => (b(), a("span", J, [M((b(), r(O(P), {
|
|
62
62
|
type: e.type,
|
|
@@ -774,7 +774,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
774
774
|
outlined: "",
|
|
775
775
|
disabled: t.disabled,
|
|
776
776
|
loading: t.loading,
|
|
777
|
-
class: "mt-1 px-3 py-2
|
|
777
|
+
class: "mt-1 px-3 py-2",
|
|
778
778
|
onClick: G
|
|
779
779
|
}, null, 8, [
|
|
780
780
|
"label",
|
|
@@ -797,7 +797,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
797
797
|
icon: "pi pi-plus-circle",
|
|
798
798
|
disabled: t.disabled,
|
|
799
799
|
loading: t.loading,
|
|
800
|
-
class: "px-3 py-2
|
|
800
|
+
class: "px-3 py-2",
|
|
801
801
|
onClick: G
|
|
802
802
|
}, null, 8, [
|
|
803
803
|
"label",
|
|
@@ -1309,84 +1309,92 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1309
1309
|
class: "top-nav-bar__menu-panel",
|
|
1310
1310
|
role: "menu"
|
|
1311
1311
|
}, Ht = { class: "top-nav-bar__section-list" }, Ut = [
|
|
1312
|
+
"aria-haspopup",
|
|
1312
1313
|
"aria-expanded",
|
|
1313
1314
|
"onMouseenter",
|
|
1314
1315
|
"onClick"
|
|
1315
|
-
], Wt = { class: "top-nav-bar__menu-label" }, Gt = {
|
|
1316
|
+
], Wt = { class: "top-nav-bar__menu-label" }, Gt = {
|
|
1317
|
+
key: 1,
|
|
1318
|
+
class: "top-nav-bar__item-count"
|
|
1319
|
+
}, Kt = {
|
|
1320
|
+
key: 2,
|
|
1321
|
+
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1322
|
+
"aria-hidden": "true"
|
|
1323
|
+
}, qt = {
|
|
1316
1324
|
key: 0,
|
|
1317
1325
|
class: "top-nav-bar__submenu-region"
|
|
1318
|
-
},
|
|
1326
|
+
}, Jt = [
|
|
1319
1327
|
"disabled",
|
|
1320
1328
|
"aria-haspopup",
|
|
1321
1329
|
"aria-expanded",
|
|
1322
1330
|
"onMouseenter",
|
|
1323
1331
|
"onClick"
|
|
1324
|
-
],
|
|
1332
|
+
], Yt = { class: "top-nav-bar__menu-label" }, Xt = {
|
|
1325
1333
|
key: 1,
|
|
1326
1334
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1327
1335
|
"aria-hidden": "true"
|
|
1328
|
-
},
|
|
1336
|
+
}, Zt = ["onMouseenter"], Qt = {
|
|
1329
1337
|
key: 0,
|
|
1330
1338
|
class: "top-nav-bar__crumb top-nav-bar__crumb--static"
|
|
1331
|
-
},
|
|
1339
|
+
}, $t = ["aria-expanded", "onClick"], en = {
|
|
1332
1340
|
key: 2,
|
|
1333
1341
|
class: "top-nav-bar__menu-layer"
|
|
1334
|
-
},
|
|
1342
|
+
}, tn = {
|
|
1335
1343
|
class: "top-nav-bar__menu-panel top-nav-bar__breadcrumb-panel",
|
|
1336
1344
|
role: "menu"
|
|
1337
|
-
},
|
|
1345
|
+
}, nn = [
|
|
1338
1346
|
"disabled",
|
|
1339
1347
|
"onMouseenter",
|
|
1340
1348
|
"onClick"
|
|
1341
|
-
],
|
|
1349
|
+
], rn = { class: "top-nav-bar__menu-label" }, an = {
|
|
1342
1350
|
key: 1,
|
|
1343
1351
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1344
1352
|
"aria-hidden": "true"
|
|
1345
|
-
},
|
|
1353
|
+
}, on = ["onClick"], sn = ["title"], cn = { class: "top-nav-bar__current-label" }, ln = ["aria-label", "aria-pressed"], un = { class: "top-nav-bar__breadcrumb-actions" }, dn = ["aria-expanded"], fn = {
|
|
1346
1354
|
key: 0,
|
|
1347
1355
|
class: "top-nav-bar__popover-layer top-nav-bar__favorites-layer"
|
|
1348
|
-
},
|
|
1356
|
+
}, pn = {
|
|
1349
1357
|
class: "top-nav-bar__small-panel top-nav-bar__favorites-panel",
|
|
1350
1358
|
role: "menu"
|
|
1351
|
-
},
|
|
1359
|
+
}, mn = ["disabled", "onClick"], hn = { class: "top-nav-bar__favorites-title" }, gn = {
|
|
1352
1360
|
key: 0,
|
|
1353
1361
|
class: "top-nav-bar__favorites-separator"
|
|
1354
|
-
},
|
|
1362
|
+
}, _n = {
|
|
1355
1363
|
key: 0,
|
|
1356
1364
|
class: "top-nav-bar__favorites-row top-nav-bar__desktop-only"
|
|
1357
|
-
},
|
|
1365
|
+
}, vn = { class: "top-nav-bar__favorites-title" }, yn = { class: "top-nav-bar__favorites-list" }, bn = {
|
|
1358
1366
|
key: 0,
|
|
1359
1367
|
class: "top-nav-bar__favorites-separator",
|
|
1360
1368
|
"aria-hidden": "true"
|
|
1361
|
-
},
|
|
1369
|
+
}, xn = ["disabled", "onClick"], Sn = { class: "top-nav-bar__mobile-menu" }, Cn = { class: "top-nav-bar__mobile-menu-header" }, wn = { class: "top-nav-bar__drawer-brand" }, Tn = ["onClick"], En = {
|
|
1362
1370
|
key: 0,
|
|
1363
1371
|
class: "top-nav-bar__drawer-tools"
|
|
1364
|
-
},
|
|
1372
|
+
}, Dn = { class: "top-nav-bar__drawer-search" }, On = ["value", "placeholder"], kn = ["disabled", "onClick"], An = { class: "top-nav-bar__mobile-menu-scroll" }, jn = { class: "top-nav-bar__mobile-menu-track" }, Mn = {
|
|
1365
1373
|
key: 0,
|
|
1366
1374
|
class: "top-nav-bar__mobile-favorites"
|
|
1367
|
-
},
|
|
1375
|
+
}, Nn = ["aria-expanded"], Pn = { class: "top-nav-bar__mobile-item-label" }, Fn = { class: "top-nav-bar__mobile-count" }, In = {
|
|
1368
1376
|
key: 1,
|
|
1369
1377
|
class: "top-nav-bar__drawer-empty"
|
|
1370
|
-
},
|
|
1378
|
+
}, Ln = {
|
|
1371
1379
|
key: 1,
|
|
1372
1380
|
class: "top-nav-bar__mobile-footer"
|
|
1373
|
-
},
|
|
1381
|
+
}, Rn = ["aria-haspopup", "aria-expanded"], zn = ["src"], Bn = {
|
|
1374
1382
|
key: 1,
|
|
1375
1383
|
class: "top-nav-bar__user-avatar"
|
|
1376
|
-
},
|
|
1384
|
+
}, Vn = {
|
|
1377
1385
|
key: 2,
|
|
1378
1386
|
class: "top-nav-bar__user-details"
|
|
1379
|
-
},
|
|
1387
|
+
}, Hn = { class: "top-nav-bar__user-name" }, Un = {
|
|
1380
1388
|
key: 0,
|
|
1381
1389
|
class: "top-nav-bar__drawer-user-context"
|
|
1382
|
-
},
|
|
1390
|
+
}, Wn = { class: "top-nav-bar__drawer-user-client" }, Gn = {
|
|
1383
1391
|
key: 0,
|
|
1384
1392
|
class: "top-nav-bar__drawer-user-client-subtitle"
|
|
1385
|
-
},
|
|
1393
|
+
}, Kn = {
|
|
1386
1394
|
key: 3,
|
|
1387
1395
|
class: "pi pi-chevron-down top-nav-bar__mobile-chevron",
|
|
1388
1396
|
"aria-hidden": "true"
|
|
1389
|
-
},
|
|
1397
|
+
}, qn = 120, Jn = 24, Yn = /* @__PURE__ */ u({
|
|
1390
1398
|
__name: "TopNavBar",
|
|
1391
1399
|
props: {
|
|
1392
1400
|
sections: { default: () => [] },
|
|
@@ -1472,17 +1480,17 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1472
1480
|
};
|
|
1473
1481
|
});
|
|
1474
1482
|
}
|
|
1475
|
-
let Y = n(() => f.sections.map((e) =>
|
|
1483
|
+
let Y = n(() => f.sections.map((e) => e.children === void 0 ? e : {
|
|
1476
1484
|
...e,
|
|
1477
1485
|
children: me(e)
|
|
1478
|
-
})
|
|
1486
|
+
}).filter((e) => e.children === void 0 || e.children.length > 0));
|
|
1479
1487
|
function he(e, t = []) {
|
|
1480
1488
|
return e.forEach((e) => {
|
|
1481
1489
|
let n = e.children ?? [];
|
|
1482
1490
|
n.length ? he(n, t) : t.push(e);
|
|
1483
1491
|
}), t;
|
|
1484
1492
|
}
|
|
1485
|
-
let ge = n(() => Y.value
|
|
1493
|
+
let ge = n(() => he(Y.value));
|
|
1486
1494
|
function _e(e) {
|
|
1487
1495
|
return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLocaleLowerCase("pt-BR");
|
|
1488
1496
|
}
|
|
@@ -1522,7 +1530,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1522
1530
|
if (!f.activeItemId) return null;
|
|
1523
1531
|
for (let e of Y.value) {
|
|
1524
1532
|
if (e.id === f.activeItemId) return [e];
|
|
1525
|
-
let t = xe(e.children, f.activeItemId);
|
|
1533
|
+
let t = xe(e.children ?? [], f.activeItemId);
|
|
1526
1534
|
if (t) return [e, ...t];
|
|
1527
1535
|
}
|
|
1528
1536
|
return null;
|
|
@@ -1555,7 +1563,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1555
1563
|
}
|
|
1556
1564
|
return n;
|
|
1557
1565
|
}
|
|
1558
|
-
let Ae = n(() => Oe.value ? ke(Oe.value.children, L.value) : []);
|
|
1566
|
+
let Ae = n(() => Oe.value ? ke(Oe.value.children ?? [], L.value) : []);
|
|
1559
1567
|
function je(e, t = 10) {
|
|
1560
1568
|
let n = [];
|
|
1561
1569
|
for (let r = 0; r < e.length; r += t) n.push(e.slice(r, r + t));
|
|
@@ -1599,11 +1607,11 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1599
1607
|
}), Ue = 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("") : "");
|
|
1600
1608
|
function We() {
|
|
1601
1609
|
let e = Math.max(0, window.scrollY);
|
|
1602
|
-
if (!G.value && e >=
|
|
1610
|
+
if (!G.value && e >= qn) {
|
|
1603
1611
|
G.value = !0;
|
|
1604
1612
|
return;
|
|
1605
1613
|
}
|
|
1606
|
-
G.value && e <=
|
|
1614
|
+
G.value && e <= Jn && (G.value = !1);
|
|
1607
1615
|
}
|
|
1608
1616
|
function Ge() {
|
|
1609
1617
|
let e = E.value, t = ee.value;
|
|
@@ -1620,7 +1628,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1620
1628
|
return typeof window < "u" && window.matchMedia?.("(hover: hover) and (pointer: fine)").matches;
|
|
1621
1629
|
}
|
|
1622
1630
|
function Q(e) {
|
|
1623
|
-
e.disabled || (p("navigate", e), P.value = !1,
|
|
1631
|
+
e.disabled || (p("navigate", e), P.value = !1, ir());
|
|
1624
1632
|
}
|
|
1625
1633
|
function qe(e, t = !1) {
|
|
1626
1634
|
e.disabled || (e.kind === "aia" ? p("toggle-aia") : e.kind === "support" ? p("open-support") : p("action", e), B.value = !1, t && (P.value = !1));
|
|
@@ -1647,17 +1655,17 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1647
1655
|
function $e() {
|
|
1648
1656
|
!Z() || window.innerWidth < 1024 || (F.value = !1, I.value = null, L.value = []);
|
|
1649
1657
|
}
|
|
1650
|
-
function
|
|
1658
|
+
function Yn() {
|
|
1651
1659
|
if (Z()) {
|
|
1652
1660
|
F.value = !0;
|
|
1653
1661
|
return;
|
|
1654
1662
|
}
|
|
1655
1663
|
F.value = !F.value, F.value || (I.value = null, L.value = []);
|
|
1656
1664
|
}
|
|
1657
|
-
function
|
|
1665
|
+
function Xn(e) {
|
|
1658
1666
|
Z() && (I.value = e, L.value = []);
|
|
1659
1667
|
}
|
|
1660
|
-
function
|
|
1668
|
+
function Zn(e) {
|
|
1661
1669
|
if (Z()) {
|
|
1662
1670
|
I.value = e, L.value = [];
|
|
1663
1671
|
return;
|
|
@@ -1665,7 +1673,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1665
1673
|
let t = I.value === e;
|
|
1666
1674
|
I.value = t ? null : e, L.value = [];
|
|
1667
1675
|
}
|
|
1668
|
-
function
|
|
1676
|
+
function Qn(e, t, n, r) {
|
|
1669
1677
|
if (r && !Z()) return;
|
|
1670
1678
|
let i = e.value[n];
|
|
1671
1679
|
if (!t.children?.length) {
|
|
@@ -1678,46 +1686,46 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1678
1686
|
}
|
|
1679
1687
|
e.value = i === t.id && !r ? e.value.slice(0, n) : [...e.value.slice(0, n), t.id];
|
|
1680
1688
|
}
|
|
1681
|
-
function Qn(e, t, n) {
|
|
1682
|
-
Zn(L, e, t, n);
|
|
1683
|
-
}
|
|
1684
1689
|
function $n(e, t, n) {
|
|
1685
|
-
|
|
1690
|
+
Qn(L, e, t, n);
|
|
1686
1691
|
}
|
|
1687
|
-
function er(e) {
|
|
1692
|
+
function er(e, t, n) {
|
|
1693
|
+
Qn(z, e, t, n);
|
|
1694
|
+
}
|
|
1695
|
+
function tr(e) {
|
|
1688
1696
|
Z() && (R.value = e, z.value = []);
|
|
1689
1697
|
}
|
|
1690
|
-
function
|
|
1698
|
+
function nr() {
|
|
1691
1699
|
!Z() || window.innerWidth < 1024 || (R.value = null, z.value = []);
|
|
1692
1700
|
}
|
|
1693
|
-
function
|
|
1701
|
+
function rr(e) {
|
|
1694
1702
|
if (Z()) {
|
|
1695
1703
|
R.value = e;
|
|
1696
1704
|
return;
|
|
1697
1705
|
}
|
|
1698
1706
|
R.value = R.value === e ? null : e, z.value = [];
|
|
1699
1707
|
}
|
|
1700
|
-
function
|
|
1708
|
+
function ir() {
|
|
1701
1709
|
F.value = !1, I.value = null, L.value = [], R.value = null, z.value = [], B.value = !1, V.value = !1, U.value = !1, q.value = !1;
|
|
1702
1710
|
}
|
|
1703
|
-
async function
|
|
1711
|
+
async function ar() {
|
|
1704
1712
|
if (typeof window < "u" && window.innerWidth < 1024) {
|
|
1705
1713
|
P.value = !0, await m(), M.value?.focus();
|
|
1706
1714
|
return;
|
|
1707
1715
|
}
|
|
1708
1716
|
se.value = !0, q.value = !0, await m(), k.value?.focus(), $();
|
|
1709
1717
|
}
|
|
1710
|
-
function
|
|
1718
|
+
function or() {
|
|
1711
1719
|
window.setTimeout(() => {
|
|
1712
1720
|
q.value = !1, J.value.searchIconOnly && !K.value.trim() && (se.value = !1, $());
|
|
1713
1721
|
}, 150);
|
|
1714
1722
|
}
|
|
1715
|
-
function
|
|
1723
|
+
function sr() {
|
|
1716
1724
|
return Math.round(window.visualViewport?.width ?? window.innerWidth);
|
|
1717
1725
|
}
|
|
1718
|
-
async function
|
|
1726
|
+
async function cr() {
|
|
1719
1727
|
if (typeof window > "u" || !T.value) return;
|
|
1720
|
-
let e = ++pe, t =
|
|
1728
|
+
let e = ++pe, t = sr();
|
|
1721
1729
|
ce.value = t < 1024;
|
|
1722
1730
|
let n = {
|
|
1723
1731
|
collapseActions: !1,
|
|
@@ -1750,22 +1758,22 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1750
1758
|
}
|
|
1751
1759
|
function $() {
|
|
1752
1760
|
typeof window > "u" || (de !== void 0 && window.cancelAnimationFrame(de), de = window.requestAnimationFrame(() => {
|
|
1753
|
-
de = void 0,
|
|
1761
|
+
de = void 0, cr();
|
|
1754
1762
|
}));
|
|
1755
1763
|
}
|
|
1756
|
-
function
|
|
1764
|
+
function lr(e) {
|
|
1757
1765
|
let t = e.target;
|
|
1758
1766
|
if (t instanceof Element && !t.closest(".top-nav-bar__mobile-menu")) {
|
|
1759
1767
|
if (!x.value?.contains(t)) {
|
|
1760
|
-
|
|
1768
|
+
ir();
|
|
1761
1769
|
return;
|
|
1762
1770
|
}
|
|
1763
1771
|
t.closest("[data-top-nav-navigation]") || (F.value = !1, I.value = null, L.value = []), t.closest("[data-top-nav-breadcrumb]") || (R.value = null, z.value = []), t.closest("[data-top-nav-actions]") || (B.value = !1), t.closest("[data-top-nav-user]") || (V.value = !1), t.closest("[data-top-nav-favorites]") || (U.value = !1), t.closest("[data-top-nav-search]") || (q.value = !1);
|
|
1764
1772
|
}
|
|
1765
1773
|
}
|
|
1766
|
-
function
|
|
1774
|
+
function ur(e) {
|
|
1767
1775
|
if ((e.ctrlKey || e.metaKey) && e.key.toLocaleLowerCase() === "k" && f.searchable) {
|
|
1768
|
-
e.preventDefault(),
|
|
1776
|
+
e.preventDefault(), ar();
|
|
1769
1777
|
return;
|
|
1770
1778
|
}
|
|
1771
1779
|
if (e.key === "Escape") {
|
|
@@ -1773,10 +1781,10 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1773
1781
|
ie.value?.hide();
|
|
1774
1782
|
return;
|
|
1775
1783
|
}
|
|
1776
|
-
P.value &&= !1,
|
|
1784
|
+
P.value &&= !1, ir(), J.value.searchIconOnly && !K.value.trim() && (se.value = !1);
|
|
1777
1785
|
}
|
|
1778
1786
|
}
|
|
1779
|
-
function
|
|
1787
|
+
function dr() {
|
|
1780
1788
|
if (!X.value) {
|
|
1781
1789
|
p("user-click", f.user);
|
|
1782
1790
|
return;
|
|
@@ -1787,7 +1795,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1787
1795
|
}
|
|
1788
1796
|
V.value = !V.value;
|
|
1789
1797
|
}
|
|
1790
|
-
function
|
|
1798
|
+
function fr() {
|
|
1791
1799
|
if (Z()) {
|
|
1792
1800
|
U.value = !0;
|
|
1793
1801
|
return;
|
|
@@ -1803,17 +1811,17 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1803
1811
|
() => f.user,
|
|
1804
1812
|
Me
|
|
1805
1813
|
], () => m($), { deep: !0 }), A(Ie, () => m(Ge), { deep: !0 }), y(() => {
|
|
1806
|
-
document.addEventListener("keydown",
|
|
1814
|
+
document.addEventListener("keydown", ur), document.addEventListener("pointerdown", lr), window.addEventListener("resize", $), window.visualViewport?.addEventListener("resize", $), window.addEventListener("resize", Ge), window.addEventListener("scroll", We, { passive: !0 }), typeof ResizeObserver < "u" && (le = new ResizeObserver($), T.value && le.observe(T.value), ue = new ResizeObserver(Ge), E.value && ue.observe(E.value)), $(), m(() => {
|
|
1807
1815
|
Ge(), We(), Ke();
|
|
1808
1816
|
});
|
|
1809
1817
|
}), v(() => {
|
|
1810
|
-
document.removeEventListener("keydown",
|
|
1818
|
+
document.removeEventListener("keydown", ur), document.removeEventListener("pointerdown", lr), window.removeEventListener("resize", $), window.visualViewport?.removeEventListener("resize", $), window.removeEventListener("resize", Ge), window.removeEventListener("scroll", We), le?.disconnect(), ue?.disconnect(), de !== void 0 && window.cancelAnimationFrame(de), fe !== void 0 && window.cancelAnimationFrame(fe);
|
|
1811
1819
|
}), u({
|
|
1812
|
-
close:
|
|
1820
|
+
close: ir,
|
|
1813
1821
|
closeDrawer: () => {
|
|
1814
1822
|
P.value = !1;
|
|
1815
1823
|
},
|
|
1816
|
-
focusSearch:
|
|
1824
|
+
focusSearch: ar,
|
|
1817
1825
|
openDrawer: () => {
|
|
1818
1826
|
P.value = !0;
|
|
1819
1827
|
}
|
|
@@ -1871,7 +1879,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1871
1879
|
type: "button",
|
|
1872
1880
|
"aria-label": "Pesquisar no menu",
|
|
1873
1881
|
title: "Pesquisar no menu (Ctrl+K)",
|
|
1874
|
-
onClick:
|
|
1882
|
+
onClick: ar
|
|
1875
1883
|
}, [...u[20] ||= [o("i", {
|
|
1876
1884
|
class: "pi pi-search",
|
|
1877
1885
|
"aria-hidden": "true"
|
|
@@ -1892,7 +1900,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1892
1900
|
placeholder: s.searchPlaceholder,
|
|
1893
1901
|
"aria-label": "Pesquisar no menu",
|
|
1894
1902
|
onFocus: u[1] ||= (e) => q.value = !0,
|
|
1895
|
-
onBlur:
|
|
1903
|
+
onBlur: or,
|
|
1896
1904
|
onInput: u[2] ||= (e) => Xe(e.target.value)
|
|
1897
1905
|
}, null, 40, pt),
|
|
1898
1906
|
K.value || J.value.searchIconOnly && se.value ? (b(), a("button", {
|
|
@@ -1964,7 +1972,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1964
1972
|
}, null, 2))], 10, bt))), 128))])) : i("", !0),
|
|
1965
1973
|
n.$slots.actions ? (b(), a("div", Tt, [w(n.$slots, "actions", {
|
|
1966
1974
|
compact: J.value.collapseActions,
|
|
1967
|
-
close:
|
|
1975
|
+
close: ir
|
|
1968
1976
|
})])) : i("", !0),
|
|
1969
1977
|
Pe.value ? (b(), a("div", {
|
|
1970
1978
|
key: 3,
|
|
@@ -1977,7 +1985,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
1977
1985
|
type: "button",
|
|
1978
1986
|
"aria-haspopup": X.value ? "menu" : void 0,
|
|
1979
1987
|
"aria-expanded": X.value ? V.value : void 0,
|
|
1980
|
-
onClick:
|
|
1988
|
+
onClick: dr
|
|
1981
1989
|
}, [w(n.$slots, "user", {
|
|
1982
1990
|
user: s.user,
|
|
1983
1991
|
compact: J.value.hideUserName
|
|
@@ -2021,7 +2029,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2021
2029
|
type: "button",
|
|
2022
2030
|
"aria-haspopup": "menu",
|
|
2023
2031
|
"aria-expanded": F.value,
|
|
2024
|
-
onClick:
|
|
2032
|
+
onClick: Yn
|
|
2025
2033
|
}, [
|
|
2026
2034
|
u[25] ||= o("i", {
|
|
2027
2035
|
class: "pi pi-bars",
|
|
@@ -2034,13 +2042,13 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2034
2042
|
}, null, -1)
|
|
2035
2043
|
], 8, zt), F.value ? (b(), a("div", Bt, [o("div", Vt, [o("div", Ht, [(b(!0), a(e, null, C(Y.value, (e) => (b(), a("button", {
|
|
2036
2044
|
key: e.id,
|
|
2037
|
-
class: h(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--explored": I.value === e.id }]),
|
|
2045
|
+
class: h(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--explored": e.children?.length && I.value === e.id }]),
|
|
2038
2046
|
type: "button",
|
|
2039
2047
|
role: "menuitem",
|
|
2040
|
-
"aria-haspopup": "menu",
|
|
2041
|
-
"aria-expanded": I.value === e.id,
|
|
2042
|
-
onMouseenter: (t) =>
|
|
2043
|
-
onClick: (t) =>
|
|
2048
|
+
"aria-haspopup": e.children?.length ? "menu" : void 0,
|
|
2049
|
+
"aria-expanded": e.children?.length ? I.value === e.id : void 0,
|
|
2050
|
+
onMouseenter: (t) => e.children?.length ? Xn(e.id) : void 0,
|
|
2051
|
+
onClick: (t) => e.children?.length ? Zn(e.id) : Q(e)
|
|
2044
2052
|
}, [
|
|
2045
2053
|
e.icon ? (b(), a("i", {
|
|
2046
2054
|
key: 0,
|
|
@@ -2048,12 +2056,9 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2048
2056
|
"aria-hidden": "true"
|
|
2049
2057
|
}, null, 2)) : i("", !0),
|
|
2050
2058
|
o("span", Wt, D(e.label), 1),
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
"aria-hidden": "true"
|
|
2055
|
-
}, null, -1)
|
|
2056
|
-
], 42, Ut))), 128))]), Oe.value ? (b(), a("div", Kt, [(b(!0), a(e, null, C(Ae.value, (t, n) => (b(), a("div", {
|
|
2059
|
+
e.children?.length ? (b(), a("span", Gt, D(e.children.length), 1)) : i("", !0),
|
|
2060
|
+
e.children?.length ? (b(), a("i", Kt)) : i("", !0)
|
|
2061
|
+
], 42, Ut))), 128))]), Oe.value ? (b(), a("div", qt, [(b(!0), a(e, null, C(Ae.value, (t, n) => (b(), a("div", {
|
|
2057
2062
|
key: `navigation-level-${n}`,
|
|
2058
2063
|
class: h(["top-nav-bar__cascade-level", { "top-nav-bar__section-items": n === 0 }]),
|
|
2059
2064
|
role: "menu"
|
|
@@ -2068,17 +2073,17 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2068
2073
|
disabled: e.disabled,
|
|
2069
2074
|
"aria-haspopup": e.children?.length ? "menu" : void 0,
|
|
2070
2075
|
"aria-expanded": e.children?.length ? L.value[n] === e.id : void 0,
|
|
2071
|
-
onMouseenter: (t) =>
|
|
2072
|
-
onClick: (t) =>
|
|
2076
|
+
onMouseenter: (t) => $n(e, n, !0),
|
|
2077
|
+
onClick: (t) => $n(e, n, !1)
|
|
2073
2078
|
}, [
|
|
2074
2079
|
e.icon ? (b(), a("i", {
|
|
2075
2080
|
key: 0,
|
|
2076
2081
|
class: h(e.icon),
|
|
2077
2082
|
"aria-hidden": "true"
|
|
2078
2083
|
}, null, 2)) : i("", !0),
|
|
2079
|
-
o("span",
|
|
2080
|
-
e.children?.length ? (b(), a("i",
|
|
2081
|
-
], 42,
|
|
2084
|
+
o("span", Yt, D(e.label), 1),
|
|
2085
|
+
e.children?.length ? (b(), a("i", Xt)) : i("", !0)
|
|
2086
|
+
], 42, Jt))), 128))]))), 128))], 2))), 128))])) : i("", !0)])])) : i("", !0)], 32)) : i("", !0),
|
|
2082
2087
|
(b(!0), a(e, null, C(Te.value, (t, n) => (b(), a(e, { key: t.id }, [o("span", {
|
|
2083
2088
|
class: h(["top-nav-bar__separator", { "top-nav-bar__separator--current": !t.to && n === Te.value.length - 1 }]),
|
|
2084
2089
|
"aria-hidden": "true"
|
|
@@ -2086,19 +2091,19 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2086
2091
|
key: 0,
|
|
2087
2092
|
class: "top-nav-bar__dropdown top-nav-bar__breadcrumb-dropdown",
|
|
2088
2093
|
"data-top-nav-breadcrumb": "",
|
|
2089
|
-
onMouseenter: (e) => !ce.value &&
|
|
2090
|
-
onMouseleave: u[10] ||= (e) => !ce.value &&
|
|
2091
|
-
}, [ce.value ? (b(), a("span",
|
|
2094
|
+
onMouseenter: (e) => !ce.value && tr(t.id),
|
|
2095
|
+
onMouseleave: u[10] ||= (e) => !ce.value && nr()
|
|
2096
|
+
}, [ce.value ? (b(), a("span", Qt, D(t.label), 1)) : (b(), a("button", {
|
|
2092
2097
|
key: 1,
|
|
2093
2098
|
class: "top-nav-bar__crumb",
|
|
2094
2099
|
type: "button",
|
|
2095
2100
|
"aria-haspopup": "menu",
|
|
2096
2101
|
"aria-expanded": R.value === t.id,
|
|
2097
|
-
onClick: (e) =>
|
|
2098
|
-
}, [o("span", null, D(t.label), 1), u[
|
|
2102
|
+
onClick: (e) => rr(t.id)
|
|
2103
|
+
}, [o("span", null, D(t.label), 1), u[27] ||= o("i", {
|
|
2099
2104
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2100
2105
|
"aria-hidden": "true"
|
|
2101
|
-
}, null, -1)], 8,
|
|
2106
|
+
}, null, -1)], 8, $t)), !ce.value && R.value === t.id ? (b(), a("div", en, [o("div", tn, [(b(!0), a(e, null, C(ke(Ee(t)?.children ?? [], z.value), (n, r) => (b(), a("div", {
|
|
2102
2107
|
key: `breadcrumb-${t.id}-${r}`,
|
|
2103
2108
|
class: h(["top-nav-bar__cascade-level", { "top-nav-bar__breadcrumb-main-items": r === 0 }])
|
|
2104
2109
|
}, [(b(!0), a(e, null, C(je(n), (n, s) => (b(), a("div", {
|
|
@@ -2110,26 +2115,26 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2110
2115
|
type: "button",
|
|
2111
2116
|
role: "menuitem",
|
|
2112
2117
|
disabled: e.disabled,
|
|
2113
|
-
onMouseenter: (t) =>
|
|
2114
|
-
onClick: (t) =>
|
|
2118
|
+
onMouseenter: (t) => er(e, r, !0),
|
|
2119
|
+
onClick: (t) => er(e, r, !1)
|
|
2115
2120
|
}, [
|
|
2116
2121
|
e.icon ? (b(), a("i", {
|
|
2117
2122
|
key: 0,
|
|
2118
2123
|
class: h(e.icon),
|
|
2119
2124
|
"aria-hidden": "true"
|
|
2120
2125
|
}, null, 2)) : i("", !0),
|
|
2121
|
-
o("span",
|
|
2122
|
-
e.children?.length ? (b(), a("i",
|
|
2123
|
-
], 42,
|
|
2126
|
+
o("span", rn, D(e.label), 1),
|
|
2127
|
+
e.children?.length ? (b(), a("i", an)) : i("", !0)
|
|
2128
|
+
], 42, nn))), 128))]))), 128))], 2))), 128))])])) : i("", !0)], 40, Zt)) : t.to ? (b(), a("button", {
|
|
2124
2129
|
key: 1,
|
|
2125
2130
|
class: "top-nav-bar__crumb",
|
|
2126
2131
|
type: "button",
|
|
2127
2132
|
onClick: (e) => Q(t)
|
|
2128
|
-
}, D(t.label), 9,
|
|
2133
|
+
}, D(t.label), 9, on)) : (b(), a("span", {
|
|
2129
2134
|
key: 2,
|
|
2130
2135
|
class: "top-nav-bar__current",
|
|
2131
2136
|
title: t.label
|
|
2132
|
-
}, [o("span",
|
|
2137
|
+
}, [o("span", cn, D(t.label), 1), s.showFavoriteToggle ? (b(), a("button", {
|
|
2133
2138
|
key: 0,
|
|
2134
2139
|
class: "top-nav-bar__favorite-toggle",
|
|
2135
2140
|
type: "button",
|
|
@@ -2139,8 +2144,8 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2139
2144
|
}, [o("i", {
|
|
2140
2145
|
class: h(s.favoriteActive ? "pi pi-star-fill" : "pi pi-star"),
|
|
2141
2146
|
"aria-hidden": "true"
|
|
2142
|
-
}, null, 2)], 8,
|
|
2143
|
-
o("div",
|
|
2147
|
+
}, null, 2)], 8, ln)) : i("", !0)], 8, sn))], 64))), 128)),
|
|
2148
|
+
o("div", un, [l(t, {
|
|
2144
2149
|
name: "top-nav-bar-favorites-trigger",
|
|
2145
2150
|
css: oe.value
|
|
2146
2151
|
}, {
|
|
@@ -2155,18 +2160,18 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2155
2160
|
type: "button",
|
|
2156
2161
|
"aria-haspopup": "menu",
|
|
2157
2162
|
"aria-expanded": U.value,
|
|
2158
|
-
onClick:
|
|
2163
|
+
onClick: fr
|
|
2159
2164
|
}, [
|
|
2160
|
-
u[
|
|
2165
|
+
u[28] ||= o("i", {
|
|
2161
2166
|
class: "pi pi-star-fill top-nav-bar__accent",
|
|
2162
2167
|
"aria-hidden": "true"
|
|
2163
2168
|
}, null, -1),
|
|
2164
2169
|
o("span", null, D(s.favoriteLabel), 1),
|
|
2165
|
-
u[
|
|
2170
|
+
u[29] ||= o("i", {
|
|
2166
2171
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2167
2172
|
"aria-hidden": "true"
|
|
2168
2173
|
}, null, -1)
|
|
2169
|
-
], 8,
|
|
2174
|
+
], 8, dn), U.value ? (b(), a("div", fn, [o("div", pn, [(b(!0), a(e, null, C(Ie.value, (e) => (b(), a("button", {
|
|
2170
2175
|
key: e.id,
|
|
2171
2176
|
class: "top-nav-bar__menu-item",
|
|
2172
2177
|
type: "button",
|
|
@@ -2177,7 +2182,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2177
2182
|
key: 0,
|
|
2178
2183
|
class: h(e.icon),
|
|
2179
2184
|
"aria-hidden": "true"
|
|
2180
|
-
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 8,
|
|
2185
|
+
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 8, mn))), 128))])])) : i("", !0)], 32)) : i("", !0)]),
|
|
2181
2186
|
_: 1
|
|
2182
2187
|
}, 8, ["css"]), w(n.$slots, "breadcrumb-actions")])
|
|
2183
2188
|
]),
|
|
@@ -2190,13 +2195,13 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2190
2195
|
ref_key: "favoritesMeasureContentRef",
|
|
2191
2196
|
ref: ee,
|
|
2192
2197
|
class: "top-nav-bar__favorites-measure-content"
|
|
2193
|
-
}, [o("span",
|
|
2198
|
+
}, [o("span", hn, [u[30] ||= o("i", {
|
|
2194
2199
|
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
2195
2200
|
"aria-hidden": "true"
|
|
2196
2201
|
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), (b(!0), a(e, null, C(Ie.value, (e, t) => (b(), a("span", {
|
|
2197
2202
|
key: `measure-${e.id}`,
|
|
2198
2203
|
class: "top-nav-bar__favorites-measure-item"
|
|
2199
|
-
}, [t > 0 ? (b(), a("span",
|
|
2204
|
+
}, [t > 0 ? (b(), a("span", gn, "|")) : i("", !0), o("span", null, [e.icon ? (b(), a("i", {
|
|
2200
2205
|
key: 0,
|
|
2201
2206
|
class: h(e.icon),
|
|
2202
2207
|
"aria-hidden": "true"
|
|
@@ -2205,10 +2210,10 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2205
2210
|
name: "top-nav-bar-favorites-row",
|
|
2206
2211
|
css: oe.value
|
|
2207
2212
|
}, {
|
|
2208
|
-
default: j(() => [Re.value ? (b(), a("div",
|
|
2213
|
+
default: j(() => [Re.value ? (b(), a("div", _n, [o("span", vn, [u[31] ||= o("i", {
|
|
2209
2214
|
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
2210
2215
|
"aria-hidden": "true"
|
|
2211
|
-
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), o("div",
|
|
2216
|
+
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), o("div", yn, [(b(!0), a(e, null, C(Ie.value, (t, n) => (b(), a(e, { key: `row-${t.id}` }, [n > 0 ? (b(), a("span", bn, "|")) : i("", !0), o("button", {
|
|
2212
2217
|
class: "top-nav-bar__favorites-row-item",
|
|
2213
2218
|
type: "button",
|
|
2214
2219
|
disabled: t.disabled,
|
|
@@ -2217,7 +2222,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2217
2222
|
key: 0,
|
|
2218
2223
|
class: h(t.icon),
|
|
2219
2224
|
"aria-hidden": "true"
|
|
2220
|
-
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8,
|
|
2225
|
+
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8, xn)], 64))), 128))])])) : i("", !0)]),
|
|
2221
2226
|
_: 1
|
|
2222
2227
|
}, 8, ["css"]),
|
|
2223
2228
|
l(O(ne), {
|
|
@@ -2227,22 +2232,22 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2227
2232
|
class: "top-nav-bar__mobile-drawer",
|
|
2228
2233
|
style: _([He.value, { width: "var(--top-nav-drawer-width, min(22rem, calc(100vw - 1.5rem)))" }])
|
|
2229
2234
|
}, {
|
|
2230
|
-
container: j(({ closeCallback: d }) => [o("div",
|
|
2231
|
-
o("header",
|
|
2235
|
+
container: j(({ closeCallback: d }) => [o("div", Sn, [
|
|
2236
|
+
o("header", Cn, [w(n.$slots, "drawer-header", { close: d }, () => [o("div", wn, [w(n.$slots, "drawer-brand", {}, () => [w(n.$slots, "brand", { compact: !1 })])]), o("button", {
|
|
2232
2237
|
class: "top-nav-bar__drawer-close top-nav-bar__square-button",
|
|
2233
2238
|
type: "button",
|
|
2234
2239
|
"aria-label": "Fechar navegação",
|
|
2235
2240
|
onClick: d
|
|
2236
|
-
}, [...u[
|
|
2241
|
+
}, [...u[32] ||= [o("i", {
|
|
2237
2242
|
class: "pi pi-times",
|
|
2238
2243
|
"aria-hidden": "true"
|
|
2239
|
-
}, null, -1)]], 8,
|
|
2240
|
-
s.searchable || Me.value.length || n.$slots["drawer-actions"] ? (b(), a("div",
|
|
2244
|
+
}, null, -1)]], 8, Tn)])]),
|
|
2245
|
+
s.searchable || Me.value.length || n.$slots["drawer-actions"] ? (b(), a("div", En, [s.searchable ? w(n.$slots, "drawer-search", {
|
|
2241
2246
|
query: K.value,
|
|
2242
2247
|
update: Xe,
|
|
2243
2248
|
clear: Ze
|
|
2244
|
-
}, () => [o("div",
|
|
2245
|
-
u[
|
|
2249
|
+
}, () => [o("div", Dn, [
|
|
2250
|
+
u[34] ||= o("i", {
|
|
2246
2251
|
class: "pi pi-search",
|
|
2247
2252
|
"aria-hidden": "true"
|
|
2248
2253
|
}, null, -1),
|
|
@@ -2255,14 +2260,14 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2255
2260
|
placeholder: s.searchPlaceholder,
|
|
2256
2261
|
"aria-label": "Pesquisar no menu",
|
|
2257
2262
|
onInput: u[14] ||= (e) => Xe(e.target.value)
|
|
2258
|
-
}, null, 40,
|
|
2263
|
+
}, null, 40, On),
|
|
2259
2264
|
K.value ? (b(), a("button", {
|
|
2260
2265
|
key: 0,
|
|
2261
2266
|
class: "top-nav-bar__search-clear",
|
|
2262
2267
|
type: "button",
|
|
2263
2268
|
"aria-label": "Limpar pesquisa",
|
|
2264
2269
|
onClick: Ze
|
|
2265
|
-
}, [...u[
|
|
2270
|
+
}, [...u[33] ||= [o("i", {
|
|
2266
2271
|
class: "pi pi-times",
|
|
2267
2272
|
"aria-hidden": "true"
|
|
2268
2273
|
}, null, -1)]])) : i("", !0)
|
|
@@ -2279,26 +2284,26 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2279
2284
|
}, [o("i", {
|
|
2280
2285
|
class: h(e.icon),
|
|
2281
2286
|
"aria-hidden": "true"
|
|
2282
|
-
}, null, 2), o("span", null, D(e.label), 1)], 10,
|
|
2283
|
-
o("div",
|
|
2287
|
+
}, null, 2), o("span", null, D(e.label), 1)], 10, kn))), 128))])])) : i("", !0),
|
|
2288
|
+
o("div", An, [
|
|
2284
2289
|
w(n.$slots, "drawer-before-menu", { close: d }),
|
|
2285
|
-
o("div",
|
|
2290
|
+
o("div", jn, [Ie.value.length ? (b(), a("section", Mn, [o("button", {
|
|
2286
2291
|
class: "top-nav-bar__mobile-item",
|
|
2287
2292
|
type: "button",
|
|
2288
2293
|
"aria-expanded": W.value,
|
|
2289
2294
|
onClick: u[15] ||= (e) => W.value = !W.value
|
|
2290
2295
|
}, [
|
|
2291
|
-
u[
|
|
2296
|
+
u[35] ||= o("i", {
|
|
2292
2297
|
class: "pi pi-star-fill top-nav-bar__accent",
|
|
2293
2298
|
"aria-hidden": "true"
|
|
2294
2299
|
}, null, -1),
|
|
2295
|
-
o("span",
|
|
2296
|
-
o("span",
|
|
2300
|
+
o("span", Pn, D(s.favoriteLabel), 1),
|
|
2301
|
+
o("span", Fn, D(Ie.value.length), 1),
|
|
2297
2302
|
o("i", {
|
|
2298
2303
|
class: h(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open": W.value }]),
|
|
2299
2304
|
"aria-hidden": "true"
|
|
2300
2305
|
}, null, 2)
|
|
2301
|
-
], 8,
|
|
2306
|
+
], 8, Nn), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
2302
2307
|
default: j(() => [W.value ? (b(), r(et, {
|
|
2303
2308
|
key: 0,
|
|
2304
2309
|
items: Ie.value,
|
|
@@ -2322,10 +2327,10 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2322
2327
|
"items",
|
|
2323
2328
|
"active-item-id",
|
|
2324
2329
|
"force-open"
|
|
2325
|
-
])) : (b(), a("div",
|
|
2330
|
+
])) : (b(), a("div", In, "Nenhum menu encontrado."))])]),
|
|
2326
2331
|
w(n.$slots, "drawer-after-menu", { close: d })
|
|
2327
2332
|
]),
|
|
2328
|
-
Pe.value || n.$slots["drawer-footer"] ? (b(), a("footer",
|
|
2333
|
+
Pe.value || n.$slots["drawer-footer"] ? (b(), a("footer", Ln, [Pe.value ? w(n.$slots, "drawer-user", {
|
|
2329
2334
|
user: s.user,
|
|
2330
2335
|
client: s.client,
|
|
2331
2336
|
open: H.value,
|
|
@@ -2342,13 +2347,13 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2342
2347
|
src: s.user.avatarUrl,
|
|
2343
2348
|
alt: "",
|
|
2344
2349
|
class: "top-nav-bar__user-avatar"
|
|
2345
|
-
}, null, 8,
|
|
2346
|
-
s.user ? (b(), a("span",
|
|
2350
|
+
}, null, 8, zn)) : (b(), a("span", Bn, D(Be.value), 1)),
|
|
2351
|
+
s.user ? (b(), a("span", Vn, [o("span", Hn, D(s.user.name), 1), s.client ? (b(), a("span", Un, [o("span", Wn, [u[36] ||= o("i", {
|
|
2347
2352
|
class: "pi pi-building",
|
|
2348
2353
|
"aria-hidden": "true"
|
|
2349
|
-
}, null, -1), c(D(s.client.name), 1)]), s.client.subtitle ? (b(), a("span",
|
|
2350
|
-
X.value ? (b(), a("i",
|
|
2351
|
-
], 8,
|
|
2354
|
+
}, null, -1), c(D(s.client.name), 1)]), s.client.subtitle ? (b(), a("span", Gn, D(s.client.subtitle), 1)) : i("", !0)])) : i("", !0)])) : i("", !0),
|
|
2355
|
+
X.value ? (b(), a("i", Kn)) : i("", !0)
|
|
2356
|
+
], 8, Rn)], void 0, 0) : i("", !0), w(n.$slots, "drawer-footer", { close: d })])) : i("", !0)
|
|
2352
2357
|
])]),
|
|
2353
2358
|
_: 3
|
|
2354
2359
|
}, 8, ["visible", "style"]),
|
|
@@ -2365,41 +2370,41 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2365
2370
|
}, null, 8, ["model"])
|
|
2366
2371
|
], 4));
|
|
2367
2372
|
}
|
|
2368
|
-
}),
|
|
2373
|
+
}), Xn = { class: "top-field-icon pointer-events-none absolute left-3 top-1/2 z-10 -translate-y-1/2" }, Zn = {
|
|
2369
2374
|
key: 0,
|
|
2370
2375
|
class: "pi pi-spin pi-spinner"
|
|
2371
|
-
},
|
|
2376
|
+
}, Qn = {
|
|
2372
2377
|
key: 1,
|
|
2373
2378
|
class: "pi pi-search"
|
|
2374
|
-
},
|
|
2379
|
+
}, $n = {
|
|
2375
2380
|
key: 1,
|
|
2376
2381
|
class: "flex items-center gap-1 !text-sm"
|
|
2377
|
-
},
|
|
2382
|
+
}, er = { class: "flex items-center gap-2 rounded-[9px] bg-primary-500 px-2 py-1 text-white" }, tr = ["onClick"], nr = { class: "line-clamp-1 max-w-[300px] overflow-hidden text-ellipsis" }, rr = {
|
|
2378
2383
|
key: 1,
|
|
2379
2384
|
class: "flex min-h-[100px] flex-col items-center justify-center gap-2 py-2"
|
|
2380
|
-
},
|
|
2385
|
+
}, ir = {
|
|
2381
2386
|
key: 0,
|
|
2382
2387
|
class: "text-xs font-medium text-primary-600"
|
|
2383
|
-
},
|
|
2388
|
+
}, ar = {
|
|
2384
2389
|
key: 2,
|
|
2385
2390
|
class: "text-xs text-secondary-500"
|
|
2386
|
-
},
|
|
2391
|
+
}, or = { key: 1 }, sr = {
|
|
2387
2392
|
key: 1,
|
|
2388
2393
|
class: "flex items-center gap-2 font-semibold"
|
|
2389
|
-
},
|
|
2394
|
+
}, cr = {
|
|
2390
2395
|
key: 1,
|
|
2391
2396
|
class: "flex w-full min-w-0 items-start gap-2 overflow-hidden px-2 py-3 text-sm",
|
|
2392
2397
|
style: { "white-space": "normal" }
|
|
2393
|
-
}, $ = ["title"],
|
|
2398
|
+
}, $ = ["title"], lr = {
|
|
2394
2399
|
key: 0,
|
|
2395
2400
|
class: "top-select-option-prefix whitespace-nowrap font-bold text-primary-800 dark:text-primary-100"
|
|
2396
|
-
},
|
|
2401
|
+
}, ur = {
|
|
2397
2402
|
key: 0,
|
|
2398
2403
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2399
|
-
},
|
|
2404
|
+
}, dr = {
|
|
2400
2405
|
key: 0,
|
|
2401
2406
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2402
|
-
},
|
|
2407
|
+
}, fr = /* @__PURE__ */ u({
|
|
2403
2408
|
inheritAttrs: !1,
|
|
2404
2409
|
__name: "TopSelect",
|
|
2405
2410
|
props: {
|
|
@@ -2531,7 +2536,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2531
2536
|
}), (n, r) => (b(), a("div", {
|
|
2532
2537
|
class: h(["top-select top-solutions-component relative w-full", { "pointer-events-none": t.disabled }]),
|
|
2533
2538
|
onFocusin: K
|
|
2534
|
-
}, [o("span",
|
|
2539
|
+
}, [o("span", Xn, [w(n.$slots, "icon", { loading: t.loading }, () => [t.loading ? (b(), a("i", Zn)) : (b(), a("i", Qn))])]), l(O(E), p({
|
|
2535
2540
|
ref_key: "autocompleteRef",
|
|
2536
2541
|
ref: P
|
|
2537
2542
|
}, B.value, {
|
|
@@ -2602,18 +2607,18 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2602
2607
|
},
|
|
2603
2608
|
onChange: r[4] ||= (e) => _("change", e)
|
|
2604
2609
|
}), s({
|
|
2605
|
-
chip: j((e) => [O(x).chip ? w(n.$slots, "chip", g(d(e)), void 0, void 0, 0) : (b(), a("div",
|
|
2610
|
+
chip: j((e) => [O(x).chip ? w(n.$slots, "chip", g(d(e)), void 0, void 0, 0) : (b(), a("div", $n, [o("div", er, [o("i", {
|
|
2606
2611
|
class: "pi pi-times-circle shrink-0 cursor-pointer rounded-full hover:bg-primary-800",
|
|
2607
2612
|
onClick: (t) => e.removeCallback(t)
|
|
2608
|
-
}, null, 8,
|
|
2613
|
+
}, null, 8, tr), M((b(), a("span", nr, [c(D(U(e.value)), 1)])), [[
|
|
2609
2614
|
O(F),
|
|
2610
2615
|
U(e.value),
|
|
2611
2616
|
void 0,
|
|
2612
2617
|
{ top: !0 }
|
|
2613
2618
|
]])])]))]),
|
|
2614
|
-
empty: j(() => [O(x).empty ? w(n.$slots, "empty", {}, void 0, void 0, 0) : t.loading ? (b(), a("div",
|
|
2615
|
-
"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",
|
|
2616
|
-
optiongroup: j((e) => [O(x)["option-group"] ? w(n.$slots, "option-group", g(d(e)), void 0, void 0, 0) : (b(), a("div",
|
|
2619
|
+
empty: j(() => [O(x).empty ? w(n.$slots, "empty", {}, void 0, void 0, 0) : t.loading ? (b(), a("div", rr, [r[5] ||= o("span", { class: "pi pi-spin pi-spinner text-2xl text-primary-600" }, null, -1), t.showLoadingMessage ? (b(), a("span", ir, D(t.loadingMessage), 1)) : i("", !0)])) : (b(), a("span", ar, D(t.emptyMessage), 1))]),
|
|
2620
|
+
"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", or, D(U(e.item)), 1)) : i("", !0)]),
|
|
2621
|
+
optiongroup: j((e) => [O(x)["option-group"] ? w(n.$slots, "option-group", g(d(e)), void 0, void 0, 0) : (b(), a("div", sr, [e.option.icon ? (b(), a("i", {
|
|
2617
2622
|
key: 0,
|
|
2618
2623
|
class: h(e.option.icon)
|
|
2619
2624
|
}, null, 2)) : i("", !0), o("span", null, D(e.option[t.optionGroupLabel ?? "label"]), 1)]))]),
|
|
@@ -2621,10 +2626,10 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2621
2626
|
label: re(s.option),
|
|
2622
2627
|
prefix: ie(s.option),
|
|
2623
2628
|
query: k.value
|
|
2624
|
-
}), void 0, void 0, 0) : M((b(), a("div",
|
|
2629
|
+
}), void 0, void 0, 0) : M((b(), a("div", cr, [o("span", {
|
|
2625
2630
|
class: "top-select-option-label line-clamp-2 min-w-0 flex-1 text-secondary-700 dark:text-zinc-200",
|
|
2626
2631
|
title: re(s.option)
|
|
2627
|
-
}, [t.showOptionPrefix && ie(s.option) ? (b(), a("span",
|
|
2632
|
+
}, [t.showOptionPrefix && ie(s.option) ? (b(), a("span", lr, [(b(!0), a(e, null, C(W(ie(s.option)), (t, n) => (b(), a(e, { key: n }, [t.highlighted ? (b(), a("mark", ur, 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(W(re(s.option)), (t, n) => (b(), a(e, { key: n }, [t.highlighted ? (b(), a("mark", dr, D(t.text), 1)) : (b(), a(e, { key: 1 }, [c(D(t.text), 1)], 64))], 64))), 128))], 8, $)])), [[
|
|
2628
2633
|
O(F),
|
|
2629
2634
|
t.showTooltip ? re(s.option) : null,
|
|
2630
2635
|
void 0,
|
|
@@ -2653,7 +2658,7 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2653
2658
|
"pt"
|
|
2654
2659
|
])], 34));
|
|
2655
2660
|
}
|
|
2656
|
-
}),
|
|
2661
|
+
}), pr = /* @__PURE__ */ u({
|
|
2657
2662
|
inheritAttrs: !1,
|
|
2658
2663
|
__name: "TopTabs",
|
|
2659
2664
|
props: {
|
|
@@ -2714,12 +2719,12 @@ var De = /* @__PURE__ */ we(Ce, [["render", Ee], ["__file", "/Users/mahmudulhasa
|
|
|
2714
2719
|
});
|
|
2715
2720
|
//#endregion
|
|
2716
2721
|
//#region src/components/internal/topAccordion.ts
|
|
2717
|
-
function
|
|
2722
|
+
function mr(e, t) {
|
|
2718
2723
|
return `${e}--section-${encodeURIComponent(String(t))}`;
|
|
2719
2724
|
}
|
|
2720
2725
|
//#endregion
|
|
2721
2726
|
//#region src/components/TopAccordion.vue?vue&type=script&setup=true&lang.ts
|
|
2722
|
-
var
|
|
2727
|
+
var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
2723
2728
|
inheritAttrs: !1,
|
|
2724
2729
|
__name: "TopAccordion",
|
|
2725
2730
|
props: {
|
|
@@ -2744,7 +2749,7 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2744
2749
|
return s.value.includes(e);
|
|
2745
2750
|
}
|
|
2746
2751
|
function g(e) {
|
|
2747
|
-
return
|
|
2752
|
+
return mr(i.id, e);
|
|
2748
2753
|
}
|
|
2749
2754
|
function _(e) {
|
|
2750
2755
|
s.value = Array.isArray(e) ? e : e == null ? [] : [e];
|
|
@@ -2760,7 +2765,7 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2760
2765
|
behavior: t.behavior ?? "smooth"
|
|
2761
2766
|
}), !0;
|
|
2762
2767
|
}
|
|
2763
|
-
return x(
|
|
2768
|
+
return x(hr, {
|
|
2764
2769
|
accordionId: i.id,
|
|
2765
2770
|
sections: c,
|
|
2766
2771
|
openSections: s,
|
|
@@ -2787,11 +2792,11 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2787
2792
|
_: 3
|
|
2788
2793
|
}, 16, ["value", "multiple"])], 512));
|
|
2789
2794
|
}
|
|
2790
|
-
}),
|
|
2795
|
+
}), _r = {
|
|
2791
2796
|
key: 0,
|
|
2792
2797
|
class: "top-accordion-summary__separator",
|
|
2793
2798
|
"aria-hidden": "true"
|
|
2794
|
-
},
|
|
2799
|
+
}, vr = { class: "top-accordion-summary__item" }, yr = /* @__PURE__ */ u({
|
|
2795
2800
|
__name: "TopAccordionSummary",
|
|
2796
2801
|
props: {
|
|
2797
2802
|
items: { default: () => [] },
|
|
@@ -2812,12 +2817,12 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2812
2817
|
return (r, s) => t.visible && (t.items.length || r.$slots.default) ? (b(), a("div", {
|
|
2813
2818
|
key: 0,
|
|
2814
2819
|
class: h(["top-accordion-summary", { "top-accordion-summary--nowrap": t.nowrap }])
|
|
2815
|
-
}, [(b(!0), a(e, null, C(t.items, (t, r) => (b(), a(e, { key: `${t.label}-${r}` }, [r > 0 ? (b(), a("span",
|
|
2820
|
+
}, [(b(!0), a(e, null, C(t.items, (t, r) => (b(), a(e, { key: `${t.label}-${r}` }, [r > 0 ? (b(), a("span", _r)) : i("", !0), o("span", vr, [o("strong", null, D(t.label) + ":", 1), c(" " + D(n(t)), 1)])], 64))), 128)), w(r.$slots, "default")], 2)) : i("", !0);
|
|
2816
2821
|
}
|
|
2817
|
-
}),
|
|
2822
|
+
}), br = ["id"], xr = { class: "top-accordion-panel__heading" }, Sr = { class: "top-accordion-panel__title-row" }, Cr = {
|
|
2818
2823
|
class: "top-accordion-panel__badge",
|
|
2819
2824
|
"aria-hidden": "true"
|
|
2820
|
-
},
|
|
2825
|
+
}, wr = { key: 1 }, Tr = { class: "top-accordion-panel__title" }, Er = ["aria-label"], Dr = /* @__PURE__ */ u({
|
|
2821
2826
|
inheritAttrs: !1,
|
|
2822
2827
|
__name: "TopAccordionPanel",
|
|
2823
2828
|
props: {
|
|
@@ -2826,48 +2831,94 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2826
2831
|
icon: { default: "" },
|
|
2827
2832
|
summary: { default: () => [] },
|
|
2828
2833
|
status: { default: void 0 },
|
|
2829
|
-
statusLabel: { default: "" }
|
|
2834
|
+
statusLabel: { default: "" },
|
|
2835
|
+
headerClass: {
|
|
2836
|
+
type: [
|
|
2837
|
+
Boolean,
|
|
2838
|
+
null,
|
|
2839
|
+
String,
|
|
2840
|
+
Object,
|
|
2841
|
+
Array
|
|
2842
|
+
],
|
|
2843
|
+
default: void 0
|
|
2844
|
+
},
|
|
2845
|
+
headerStyle: {
|
|
2846
|
+
type: [
|
|
2847
|
+
Boolean,
|
|
2848
|
+
null,
|
|
2849
|
+
String,
|
|
2850
|
+
Object,
|
|
2851
|
+
Array
|
|
2852
|
+
],
|
|
2853
|
+
default: void 0
|
|
2854
|
+
},
|
|
2855
|
+
contentClass: {
|
|
2856
|
+
type: [
|
|
2857
|
+
Boolean,
|
|
2858
|
+
null,
|
|
2859
|
+
String,
|
|
2860
|
+
Object,
|
|
2861
|
+
Array
|
|
2862
|
+
],
|
|
2863
|
+
default: void 0
|
|
2864
|
+
},
|
|
2865
|
+
contentStyle: {
|
|
2866
|
+
type: [
|
|
2867
|
+
Boolean,
|
|
2868
|
+
null,
|
|
2869
|
+
String,
|
|
2870
|
+
Object,
|
|
2871
|
+
Array
|
|
2872
|
+
],
|
|
2873
|
+
default: void 0
|
|
2874
|
+
}
|
|
2830
2875
|
},
|
|
2831
2876
|
setup(e) {
|
|
2832
|
-
let t = e, r = f(
|
|
2877
|
+
let t = e, r = f(hr);
|
|
2833
2878
|
if (!r) throw Error("TopAccordionPanel deve ser usado dentro de TopAccordion.");
|
|
2834
|
-
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),
|
|
2879
|
+
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");
|
|
2835
2880
|
return (t, n) => (b(), a("div", {
|
|
2836
|
-
id:
|
|
2881
|
+
id: y.value,
|
|
2837
2882
|
class: "top-accordion-panel-anchor"
|
|
2838
2883
|
}, [l(O(se), p(t.$attrs, {
|
|
2839
2884
|
value: e.value,
|
|
2840
2885
|
disabled: m.value,
|
|
2841
2886
|
class: "top-accordion-panel"
|
|
2842
2887
|
}), {
|
|
2843
|
-
default: j(() => [l(O(q), {
|
|
2844
|
-
|
|
2845
|
-
|
|
2888
|
+
default: j(() => [l(O(q), {
|
|
2889
|
+
class: h(["top-accordion-panel__header", e.headerClass]),
|
|
2890
|
+
style: _(e.headerStyle)
|
|
2891
|
+
}, {
|
|
2892
|
+
default: j(() => [o("div", xr, [o("div", Sr, [
|
|
2893
|
+
o("span", Cr, [w(t.$slots, "icon", {}, () => [d.value ? (b(), a("i", {
|
|
2846
2894
|
key: 0,
|
|
2847
2895
|
class: h(d.value)
|
|
2848
|
-
}, null, 2)) : (b(), a("span",
|
|
2849
|
-
o("span",
|
|
2896
|
+
}, null, 2)) : (b(), a("span", wr, D(g.value), 1))])]),
|
|
2897
|
+
o("span", Tr, [w(t.$slots, "title", {}, () => [c(D(u.value), 1)])]),
|
|
2850
2898
|
w(t.$slots, "status", {}, () => [e.status ? (b(), a("i", {
|
|
2851
2899
|
key: 0,
|
|
2852
2900
|
class: h([
|
|
2853
2901
|
"top-accordion-panel__status",
|
|
2854
|
-
|
|
2855
|
-
|
|
2902
|
+
S.value,
|
|
2903
|
+
x.value
|
|
2856
2904
|
]),
|
|
2857
2905
|
"aria-label": e.statusLabel || (e.status === "valid" ? "Seção válida" : "Existem erros na seção"),
|
|
2858
2906
|
role: "img"
|
|
2859
|
-
}, null, 10,
|
|
2860
|
-
]), t.$slots.preview ? w(t.$slots, "preview", { open:
|
|
2907
|
+
}, null, 10, Er)) : i("", !0)])
|
|
2908
|
+
]), t.$slots.preview ? w(t.$slots, "preview", { open: v.value }, void 0, void 0, 0) : w(t.$slots, "summary", { open: v.value }, () => [l(yr, {
|
|
2861
2909
|
items: e.summary,
|
|
2862
|
-
visible: !
|
|
2910
|
+
visible: !v.value
|
|
2863
2911
|
}, null, 8, ["items", "visible"])], void 0, 1)])]),
|
|
2864
2912
|
_: 3
|
|
2865
|
-
}), l(O(K), null, {
|
|
2866
|
-
default: j(() => [o("div",
|
|
2913
|
+
}, 8, ["class", "style"]), l(O(K), null, {
|
|
2914
|
+
default: j(() => [o("div", {
|
|
2915
|
+
class: h(["top-accordion-panel__content", e.contentClass]),
|
|
2916
|
+
style: _(e.contentStyle)
|
|
2917
|
+
}, [w(t.$slots, "default")], 6)]),
|
|
2867
2918
|
_: 3
|
|
2868
2919
|
})]),
|
|
2869
2920
|
_: 3
|
|
2870
|
-
}, 16, ["value", "disabled"])], 8,
|
|
2921
|
+
}, 16, ["value", "disabled"])], 8, br));
|
|
2871
2922
|
}
|
|
2872
2923
|
}), Or = { class: "top-accordion-navigator__items" }, kr = [
|
|
2873
2924
|
"disabled",
|
|
@@ -2912,7 +2963,7 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
2912
2963
|
async function E(e) {
|
|
2913
2964
|
if (e.disabled) return;
|
|
2914
2965
|
x(e.value) || (g.value = [...g.value, e.value]), c("navigate", e), await m(), await new Promise((e) => requestAnimationFrame(() => e()));
|
|
2915
|
-
let t = document.getElementById(
|
|
2966
|
+
let t = document.getElementById(mr(s.accordionId, e.value));
|
|
2916
2967
|
t && window.scrollTo({
|
|
2917
2968
|
top: t.getBoundingClientRect().top + window.scrollY - s.scrollOffset,
|
|
2918
2969
|
behavior: "smooth"
|
|
@@ -3026,6 +3077,6 @@ var mr = Symbol("top-accordion-context"), hr = /* @__PURE__ */ u({
|
|
|
3026
3077
|
}
|
|
3027
3078
|
});
|
|
3028
3079
|
//#endregion
|
|
3029
|
-
export {
|
|
3080
|
+
export { gr as a, Yn as c, He as d, be as f, le as h, yr as i, Xe as l, ue as m, Pr as n, pr as o, he as p, Dr as r, fr as s, zr as t, Z as u };
|
|
3030
3081
|
|
|
3031
|
-
//# sourceMappingURL=TopToast-
|
|
3082
|
+
//# sourceMappingURL=TopToast-BYigZ3kA.js.map
|