@wwtdev/bsds-components-vue3 2.38.0 → 2.39.0
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/lib/bsds-components.js +742 -728
- package/lib/bsds-components.js.map +1 -1
- package/package.json +2 -2
package/lib/bsds-components.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as C, useId as St, onMounted as ee, watch as Z, computed as m, createElementBlock as h, openBlock as l, unref as
|
|
1
|
+
import { ref as C, useId as St, onMounted as ee, watch as Z, computed as m, createElementBlock as h, openBlock as l, unref as f, createElementVNode as w, createCommentVNode as x, createVNode as R, renderSlot as z, createBlock as D, resolveDynamicComponent as ae, createTextVNode as _, toDisplayString as V, useAttrs as Se, useSlots as et, mergeProps as H, withCtx as q, Fragment as J, normalizeClass as ve, withDirectives as fe, toHandlers as yt, vShow as be, onBeforeUnmount as tt, onBeforeMount as _t, createSlots as gt, renderList as de, onUnmounted as De, Teleport as Un, Transition as wt, provide as me, withKeys as Ye, withModifiers as Ce, inject as ue, nextTick as Re, toRaw as Wn, resolveComponent as en, mergeModels as qt, useModel as Kn, isRef as Hn, normalizeStyle as tn, h as se, useTemplateRef as Gn, shallowRef as nn, readonly as Rt, cloneVNode as Yn } from "vue";
|
|
2
2
|
import { BsIcon as ce, BsIconCaretDown as Ve, BsIconSmallCaretLeft as an, BsIconCaretLeft as nt, BsIconSmallCaretRight as on, BsIconCaretRight as at, BsIconCircleExclamation as $t, BsIconClose as ke, BsIconWarning as kt, BsIconCalendar as ln, BsIconSearch as Xn, BsIconCaretSort as sn, BsIconCaretLeftDouble as Zn, BsIconCaretRightDouble as Qn, BsIconActionEllipsis as Jn, BsIconCaretSortDown as _n, BsIconCaretSortUp as ea, BsIconCirclePause as ta, BsIconCirclePlay as na, BsIconGraphPieEmpty as jt, BsIconCircleEllipsis as aa, BsIconCircleX as oa, BsIconCircleCheck as ia, BsIconCircleStop as la, BsIconThumbsUpStroke as sa, BsIconCaretUp as ra } from "@wwtdev/bsds-icons-vue3";
|
|
3
3
|
import { DatePicker as da } from "v-calendar";
|
|
4
4
|
import { Filler as ua, Chart as rt, BarController as ca, BarElement as pa, CategoryScale as fa, LinearScale as ba, Legend as ha, TimeScale as va, Tooltip as ma } from "chart.js";
|
|
@@ -814,6 +814,8 @@ const wa = {
|
|
|
814
814
|
text: string,
|
|
815
815
|
// Router path, Router object, or absolute URL. When navItems are present, this is ignored.
|
|
816
816
|
to?: string | object,
|
|
817
|
+
// Set the desired behavior of a link. _self, _blank, _parent, _top can be used.
|
|
818
|
+
target?: string
|
|
817
819
|
}
|
|
818
820
|
|
|
819
821
|
-- or --
|
|
@@ -836,6 +838,8 @@ const wa = {
|
|
|
836
838
|
},
|
|
837
839
|
// Text to display for the nav item
|
|
838
840
|
text: string,
|
|
841
|
+
// Set the desired behavior of a link. _self, _blank, _parent, _top can be used.
|
|
842
|
+
target?: string
|
|
839
843
|
}`
|
|
840
844
|
},
|
|
841
845
|
router: {
|
|
@@ -1301,6 +1305,8 @@ const wa = {
|
|
|
1301
1305
|
text: string,
|
|
1302
1306
|
// Router path, Router object, or absolute URL. When navItems are present, this is ignored.
|
|
1303
1307
|
to?: string | object,
|
|
1308
|
+
// Set the desired behavior of a link. _self, _blank, _parent, _top can be used.
|
|
1309
|
+
target?: string
|
|
1304
1310
|
}
|
|
1305
1311
|
|
|
1306
1312
|
-- or --
|
|
@@ -1323,6 +1329,8 @@ const wa = {
|
|
|
1323
1329
|
},
|
|
1324
1330
|
// Text to display for the nav item
|
|
1325
1331
|
text: string,
|
|
1332
|
+
// Set the desired behavior of a link. _self, _blank, _parent, _top can be used.
|
|
1333
|
+
target?: string
|
|
1326
1334
|
}`
|
|
1327
1335
|
},
|
|
1328
1336
|
router: {
|
|
@@ -1407,12 +1415,12 @@ const Wa = ["id", "data-stacked"], Ka = ["data-open"], Ha = ["aria-controls", "a
|
|
|
1407
1415
|
setup(e, { emit: n }) {
|
|
1408
1416
|
const t = e;
|
|
1409
1417
|
W(t, "headingLevel", void 0, "'aria-level' and 'role=heading' are no longer set on the header text.");
|
|
1410
|
-
const a = n, o = C(null), i = C(!1), [u] = re(), s = m(() => u.value + "-content"),
|
|
1411
|
-
function
|
|
1418
|
+
const a = n, o = C(null), i = C(!1), [u] = re(), s = m(() => u.value + "-content"), r = m(() => u.value + "-title"), d = m(() => t.openItemId && t.openItemId === u.value || t.openItem === !0), c = m(() => t.controlled ? d.value : i.value);
|
|
1419
|
+
function p() {
|
|
1412
1420
|
a("toggled", u.value), t.controlled || (i.value = !i.value);
|
|
1413
1421
|
}
|
|
1414
1422
|
return (v, $) => (l(), h("div", {
|
|
1415
|
-
id:
|
|
1423
|
+
id: f(u),
|
|
1416
1424
|
ref_key: "containerRef",
|
|
1417
1425
|
ref: o,
|
|
1418
1426
|
class: "bs-accordion",
|
|
@@ -1428,29 +1436,29 @@ const Wa = ["id", "data-stacked"], Ka = ["data-open"], Ha = ["aria-controls", "a
|
|
|
1428
1436
|
"aria-expanded": c.value,
|
|
1429
1437
|
class: "bs-accordion-toggle",
|
|
1430
1438
|
type: "button",
|
|
1431
|
-
onClick:
|
|
1439
|
+
onClick: p
|
|
1432
1440
|
}, [
|
|
1433
1441
|
v.icon || v.$slots.icon ? (l(), h("span", Ga, [
|
|
1434
1442
|
z(v.$slots, "icon", {}, () => [
|
|
1435
|
-
typeof v.icon == "string" ? (l(), D(
|
|
1443
|
+
typeof v.icon == "string" ? (l(), D(f(ce), {
|
|
1436
1444
|
key: 0,
|
|
1437
1445
|
name: v.icon
|
|
1438
1446
|
}, null, 8, ["name"])) : (l(), D(ae(v.icon), { key: 1 }))
|
|
1439
1447
|
])
|
|
1440
1448
|
])) : x("", !0),
|
|
1441
|
-
w("span", { id:
|
|
1449
|
+
w("span", { id: r.value }, [
|
|
1442
1450
|
z(v.$slots, "header", {}, () => [
|
|
1443
1451
|
_(V(v.headerText), 1)
|
|
1444
1452
|
])
|
|
1445
1453
|
], 8, Ya),
|
|
1446
|
-
R(
|
|
1454
|
+
R(f(Ve), {
|
|
1447
1455
|
size: "md",
|
|
1448
1456
|
"data-position": "end"
|
|
1449
1457
|
})
|
|
1450
1458
|
], 8, Ha)
|
|
1451
1459
|
], 8, Ka),
|
|
1452
1460
|
w("div", {
|
|
1453
|
-
"aria-labelledby":
|
|
1461
|
+
"aria-labelledby": r.value,
|
|
1454
1462
|
class: "bs-accordion-content",
|
|
1455
1463
|
"data-open": c.value,
|
|
1456
1464
|
id: s.value,
|
|
@@ -1471,22 +1479,22 @@ const Wa = ["id", "data-stacked"], Ka = ["data-open"], Ha = ["aria-controls", "a
|
|
|
1471
1479
|
type: "button"
|
|
1472
1480
|
};
|
|
1473
1481
|
function Ke(e, n, t = "button") {
|
|
1474
|
-
const a = Za(
|
|
1475
|
-
const
|
|
1476
|
-
return
|
|
1482
|
+
const a = Za(f(e), n, t), o = C(), i = m(() => {
|
|
1483
|
+
const r = f(e), d = a.value === "button", c = {};
|
|
1484
|
+
return d ? (c.type = n.type || "button", c.autocomplete = "off", r.disabled && (c.disabled = !0)) : r.disabled && (c["aria-disabled"] = "true", c.tabindex = "-1"), c;
|
|
1477
1485
|
}), u = m(() => {
|
|
1478
|
-
const
|
|
1479
|
-
return
|
|
1486
|
+
const r = { ...n, ...i.value };
|
|
1487
|
+
return r.href = s.value, r;
|
|
1480
1488
|
}), s = m(() => {
|
|
1481
|
-
var
|
|
1482
|
-
const
|
|
1483
|
-
return
|
|
1489
|
+
var d, c;
|
|
1490
|
+
const r = f(e);
|
|
1491
|
+
return r.linkTo && typeof r.linkTo == "object" ? ((c = (d = r.router) == null ? void 0 : d.resolve(r.linkTo)) == null ? void 0 : c.path) || "" : r.linkTo || r.href;
|
|
1484
1492
|
});
|
|
1485
1493
|
return Z(
|
|
1486
1494
|
s,
|
|
1487
|
-
(
|
|
1488
|
-
var
|
|
1489
|
-
(
|
|
1495
|
+
(r) => {
|
|
1496
|
+
var d;
|
|
1497
|
+
(d = o.value) == null || d.setAttribute("href", r);
|
|
1490
1498
|
}
|
|
1491
1499
|
), { rootTag: a, attrsToBind: u, btnRef: o };
|
|
1492
1500
|
}
|
|
@@ -1500,18 +1508,18 @@ function Qa(e, n, t) {
|
|
|
1500
1508
|
function it(e) {
|
|
1501
1509
|
const n = m(() => {
|
|
1502
1510
|
var u, s;
|
|
1503
|
-
const i =
|
|
1511
|
+
const i = f(e);
|
|
1504
1512
|
return i.linkTo && typeof i.linkTo == "object" ? ((s = (u = i.router) == null ? void 0 : u.resolve(i.linkTo)) == null ? void 0 : s.path) || "" : i.linkTo || i.href || "";
|
|
1505
1513
|
}), t = m(() => {
|
|
1506
1514
|
var i, u;
|
|
1507
1515
|
return ((u = (i = n.value) == null ? void 0 : i.startsWith) == null ? void 0 : u.call(i, "/")) || !1;
|
|
1508
1516
|
}), a = m(() => {
|
|
1509
1517
|
var u, s;
|
|
1510
|
-
const i =
|
|
1518
|
+
const i = f(e);
|
|
1511
1519
|
return t.value && ((u = i.router) == null ? void 0 : u.navigateTo) || ((s = i.router) == null ? void 0 : s.push) || null;
|
|
1512
1520
|
});
|
|
1513
1521
|
function o(i) {
|
|
1514
|
-
if (
|
|
1522
|
+
if (f(e).disabled) {
|
|
1515
1523
|
i.preventDefault(), i.stopImmediatePropagation();
|
|
1516
1524
|
return;
|
|
1517
1525
|
}
|
|
@@ -1529,22 +1537,22 @@ const Ja = { key: 0 }, _a = {
|
|
|
1529
1537
|
setup(e) {
|
|
1530
1538
|
const n = e;
|
|
1531
1539
|
W(n, "href", "linkTo");
|
|
1532
|
-
const t = Se(), a = et(), { rootTag: o, attrsToBind: i, btnRef: u } = Ke(n, t), { onLinkClick: s } = it(n),
|
|
1540
|
+
const t = Se(), a = et(), { rootTag: o, attrsToBind: i, btnRef: u } = Ke(n, t), { onLinkClick: s } = it(n), r = m(() => p.value ? {} : n.href ? { title: n.label } : { "aria-label": n.label }), d = m(() => {
|
|
1533
1541
|
if (n.hoverEffect)
|
|
1534
1542
|
return n.iconPosition;
|
|
1535
|
-
}), c = m(() => n.icon ? n.icon : n.iconPosition === "left" ? n.textBtn || n.size === "sm" ? an : nt : n.textBtn || n.size === "sm" ? on : at),
|
|
1536
|
-
return (k, y) => (l(), D(ae(
|
|
1543
|
+
}), c = m(() => n.icon ? n.icon : n.iconPosition === "left" ? n.textBtn || n.size === "sm" ? an : nt : n.textBtn || n.size === "sm" ? on : at), p = m(() => n.textBtn || !!(a != null && a.default)), v = m(() => p.value && n.iconPosition !== "left"), $ = m(() => p.value && n.iconPosition === "left"), O = m(() => n.variant ? `color-${n.variant}` : void 0);
|
|
1544
|
+
return (k, y) => (l(), D(ae(f(o)), H({
|
|
1537
1545
|
ref_key: "btnRef",
|
|
1538
1546
|
ref: u,
|
|
1539
1547
|
class: "bs-circle-button",
|
|
1540
1548
|
"data-disabled": k.disabled,
|
|
1541
|
-
"data-direction":
|
|
1549
|
+
"data-direction": d.value,
|
|
1542
1550
|
"data-ghost": k.ghostBtn,
|
|
1543
1551
|
"data-size": k.size,
|
|
1544
|
-
"data-text":
|
|
1552
|
+
"data-text": p.value,
|
|
1545
1553
|
"data-variant": O.value,
|
|
1546
1554
|
"data-component": "bs-circle-button"
|
|
1547
|
-
}, { ...
|
|
1555
|
+
}, { ...f(i), ...r.value }, { onClick: f(s) }), {
|
|
1548
1556
|
default: q(() => [
|
|
1549
1557
|
v.value ? (l(), h("span", Ja, [
|
|
1550
1558
|
z(k.$slots, "default", {}, () => [
|
|
@@ -1553,7 +1561,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1553
1561
|
])) : x("", !0),
|
|
1554
1562
|
w("span", _a, [
|
|
1555
1563
|
z(k.$slots, "icon", {}, () => [
|
|
1556
|
-
typeof c.value == "string" ? (l(), D(
|
|
1564
|
+
typeof c.value == "string" ? (l(), D(f(ce), {
|
|
1557
1565
|
key: 0,
|
|
1558
1566
|
name: c.value
|
|
1559
1567
|
}, null, 8, ["name"])) : (l(), D(ae(c.value), { key: 1 }))
|
|
@@ -1620,7 +1628,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1620
1628
|
variant: e.variant
|
|
1621
1629
|
}, {
|
|
1622
1630
|
icon: q(() => [
|
|
1623
|
-
e.direction == "right" ? (l(), D(
|
|
1631
|
+
e.direction == "right" ? (l(), D(f(on), { key: 0 })) : (l(), D(f(an), { key: 1 }))
|
|
1624
1632
|
]),
|
|
1625
1633
|
default: q(() => [
|
|
1626
1634
|
z(n.$slots, "default", {}, () => [
|
|
@@ -1659,7 +1667,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1659
1667
|
w("div", ao, [
|
|
1660
1668
|
z(i.$slots, "icon", {}, () => [
|
|
1661
1669
|
i.icon ? (l(), h(J, { key: 0 }, [
|
|
1662
|
-
typeof i.icon == "string" ? (l(), D(
|
|
1670
|
+
typeof i.icon == "string" ? (l(), D(f(ce), {
|
|
1663
1671
|
key: 0,
|
|
1664
1672
|
name: i.icon,
|
|
1665
1673
|
size: "auto"
|
|
@@ -1667,7 +1675,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1667
1675
|
key: 1,
|
|
1668
1676
|
size: "auto"
|
|
1669
1677
|
}))
|
|
1670
|
-
], 64)) : (l(), D(
|
|
1678
|
+
], 64)) : (l(), D(f($t), {
|
|
1671
1679
|
key: 1,
|
|
1672
1680
|
size: "auto"
|
|
1673
1681
|
}))
|
|
@@ -1691,7 +1699,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1691
1699
|
type: "button",
|
|
1692
1700
|
onClick: u[0] || (u[0] = (s) => a("close"))
|
|
1693
1701
|
}, [
|
|
1694
|
-
R(
|
|
1702
|
+
R(f(ke))
|
|
1695
1703
|
])),
|
|
1696
1704
|
i.actionLabel ? (l(), D(to, {
|
|
1697
1705
|
key: 2,
|
|
@@ -1710,8 +1718,8 @@ const Ja = { key: 0 }, _a = {
|
|
|
1710
1718
|
props: Bt,
|
|
1711
1719
|
setup(e) {
|
|
1712
1720
|
const n = e, t = C(null), a = m(() => n.count === 0 ? "0" : !n.count || n.dot ? null : n.count > n.countMax ? n.countMax + "+" : n.count.toString()), o = m(() => {
|
|
1713
|
-
var
|
|
1714
|
-
const i = ((
|
|
1721
|
+
var r, d;
|
|
1722
|
+
const i = ((d = (r = t.value) == null ? void 0 : r.textContent) == null ? void 0 : d.trim()) || "", u = a.value ? a.value + " " : "";
|
|
1715
1723
|
if (!u && !n.dot) return i;
|
|
1716
1724
|
const s = n.count !== 1 ? "s" : "";
|
|
1717
1725
|
return `${i ? `${i}, ` : ""}${u}${n.label}${s}`;
|
|
@@ -1752,7 +1760,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1752
1760
|
w("div", co, [
|
|
1753
1761
|
z(i.$slots, "icon", {}, () => [
|
|
1754
1762
|
i.icon ? (l(), h(J, { key: 0 }, [
|
|
1755
|
-
typeof i.icon == "string" ? (l(), D(
|
|
1763
|
+
typeof i.icon == "string" ? (l(), D(f(ce), {
|
|
1756
1764
|
key: 0,
|
|
1757
1765
|
name: i.icon,
|
|
1758
1766
|
size: "md"
|
|
@@ -1760,7 +1768,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1760
1768
|
key: 1,
|
|
1761
1769
|
size: "md"
|
|
1762
1770
|
}))
|
|
1763
|
-
], 64)) : (l(), D(
|
|
1771
|
+
], 64)) : (l(), D(f(kt), {
|
|
1764
1772
|
key: 1,
|
|
1765
1773
|
size: "md"
|
|
1766
1774
|
}))
|
|
@@ -1774,7 +1782,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1774
1782
|
title: "Close Banner",
|
|
1775
1783
|
onClick: o
|
|
1776
1784
|
}, [
|
|
1777
|
-
R(
|
|
1785
|
+
R(f(ke))
|
|
1778
1786
|
])
|
|
1779
1787
|
])
|
|
1780
1788
|
], 8, ro));
|
|
@@ -1786,7 +1794,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1786
1794
|
const n = e;
|
|
1787
1795
|
W(n, "href", "linkTo");
|
|
1788
1796
|
const t = Se(), { rootTag: a, attrsToBind: o, btnRef: i } = Ke(n, t), { onLinkClick: u } = it(n);
|
|
1789
|
-
return (s,
|
|
1797
|
+
return (s, r) => (l(), D(ae(f(a)), H({
|
|
1790
1798
|
ref_key: "btnRef",
|
|
1791
1799
|
ref: i,
|
|
1792
1800
|
class: "bs-button",
|
|
@@ -1795,7 +1803,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1795
1803
|
"data-size": s.size,
|
|
1796
1804
|
"data-text": s.textBtn,
|
|
1797
1805
|
"data-variant": s.variant
|
|
1798
|
-
},
|
|
1806
|
+
}, f(o), { onClick: f(u) }), {
|
|
1799
1807
|
default: q(() => [
|
|
1800
1808
|
z(s.$slots, "default")
|
|
1801
1809
|
]),
|
|
@@ -1887,10 +1895,10 @@ const Ja = { key: 0 }, _a = {
|
|
|
1887
1895
|
W(t, "inputId", void 0, "Set 'id' directly on the component instead.");
|
|
1888
1896
|
const a = n, o = Se(), i = m(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
1889
1897
|
function u(s) {
|
|
1890
|
-
const
|
|
1891
|
-
a("update:modelValue",
|
|
1898
|
+
const r = o.type === "number" ? parseInt(s.target.value) : s.target.value;
|
|
1899
|
+
a("update:modelValue", r);
|
|
1892
1900
|
}
|
|
1893
|
-
return (s,
|
|
1901
|
+
return (s, r) => (l(), h("input", H({
|
|
1894
1902
|
class: "bs-input",
|
|
1895
1903
|
"data-component": "bs-input",
|
|
1896
1904
|
"data-error": e.error,
|
|
@@ -1966,7 +1974,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1966
1974
|
error: e.error
|
|
1967
1975
|
}, {
|
|
1968
1976
|
default: q(() => [
|
|
1969
|
-
R(
|
|
1977
|
+
R(f(ln)),
|
|
1970
1978
|
R(qe, H({
|
|
1971
1979
|
"data-autowidth": "",
|
|
1972
1980
|
disabled: e.disabled,
|
|
@@ -1981,7 +1989,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1981
1989
|
class: "bs-calendar-clear-btn",
|
|
1982
1990
|
onClick: a[0] || (a[0] = (o) => t.$emit("clear"))
|
|
1983
1991
|
}, [
|
|
1984
|
-
R(
|
|
1992
|
+
R(f(ke), {
|
|
1985
1993
|
size: "sm",
|
|
1986
1994
|
class: "bs-text-black"
|
|
1987
1995
|
})
|
|
@@ -2052,17 +2060,17 @@ const go = ["disabled", "id", "model-value"], wo = ["disabled", "id", "model-val
|
|
|
2052
2060
|
const { value: $ } = v.target, [O, k] = $.split(/ to | - /);
|
|
2053
2061
|
o.value.value = O || "", i.value.value = k || "", u(o.value), u(i.value);
|
|
2054
2062
|
}
|
|
2055
|
-
const
|
|
2056
|
-
function
|
|
2057
|
-
a("ui-input"),
|
|
2063
|
+
const r = Je(s, 1e3);
|
|
2064
|
+
function d(v) {
|
|
2065
|
+
a("ui-input"), r(v);
|
|
2058
2066
|
}
|
|
2059
|
-
const c = m(() => t.listeners.start ? t.listeners.start : {}),
|
|
2067
|
+
const c = m(() => t.listeners.start ? t.listeners.start : {}), p = m(() => t.listeners.end ? t.listeners.end : {});
|
|
2060
2068
|
return (v, $) => (l(), D(He, {
|
|
2061
2069
|
disabled: e.disabled,
|
|
2062
2070
|
error: e.error
|
|
2063
2071
|
}, {
|
|
2064
2072
|
default: q(() => [
|
|
2065
|
-
R(
|
|
2073
|
+
R(f(ln)),
|
|
2066
2074
|
R(qe, {
|
|
2067
2075
|
"data-autowidth": "",
|
|
2068
2076
|
disabled: e.disabled,
|
|
@@ -2071,7 +2079,7 @@ const go = ["disabled", "id", "model-value"], wo = ["disabled", "id", "model-val
|
|
|
2071
2079
|
placeholder: e.placeholder,
|
|
2072
2080
|
required: e.required,
|
|
2073
2081
|
onFocusin: $[0] || ($[0] = (O) => v.$emit("ui-focusin")),
|
|
2074
|
-
onInput:
|
|
2082
|
+
onInput: d,
|
|
2075
2083
|
onChange: s
|
|
2076
2084
|
}, null, 8, ["disabled", "id", "model-value", "placeholder", "required"]),
|
|
2077
2085
|
w("input", H({
|
|
@@ -2089,14 +2097,14 @@ const go = ["disabled", "id", "model-value"], wo = ["disabled", "id", "model-val
|
|
|
2089
2097
|
disabled: e.disabled,
|
|
2090
2098
|
id: `${e.inputId}-end`,
|
|
2091
2099
|
"model-value": e.inputValue.end
|
|
2092
|
-
}, yt(
|
|
2100
|
+
}, yt(p.value, !0)), null, 16, wo),
|
|
2093
2101
|
fe(w("button", {
|
|
2094
2102
|
"aria-label": "Clear",
|
|
2095
2103
|
type: "button",
|
|
2096
2104
|
class: "bs-calendar-clear-btn",
|
|
2097
2105
|
onClick: $[1] || ($[1] = (O) => v.$emit("clear"))
|
|
2098
2106
|
}, [
|
|
2099
|
-
R(
|
|
2107
|
+
R(f(ke), {
|
|
2100
2108
|
size: "sm",
|
|
2101
2109
|
class: "bs-text-black"
|
|
2102
2110
|
})
|
|
@@ -2136,7 +2144,7 @@ function Fe(e, n, t = []) {
|
|
|
2136
2144
|
}), t.length && Z(t, () => n(a));
|
|
2137
2145
|
}
|
|
2138
2146
|
function ye(e = []) {
|
|
2139
|
-
const n = Se(), t = (u) =>
|
|
2147
|
+
const n = Se(), t = (u) => f(e).includes(u), a = m(() => Object.entries(n)), o = m(() => Object.fromEntries(
|
|
2140
2148
|
a.value.filter(([u]) => t(u))
|
|
2141
2149
|
)), i = m(() => Object.fromEntries(
|
|
2142
2150
|
a.value.filter(([u]) => !t(u))
|
|
@@ -2148,7 +2156,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2148
2156
|
props: Xe,
|
|
2149
2157
|
emits: Object.keys(pn),
|
|
2150
2158
|
setup(e, { emit: n }) {
|
|
2151
|
-
const t = e, a = C(null), o = C(1), i = C(null), [u, s] = re(2),
|
|
2159
|
+
const t = e, a = C(null), o = C(1), i = C(null), [u, s] = re(2), r = C(1), { filtered: d, remaining: c } = ye([
|
|
2152
2160
|
"attributes",
|
|
2153
2161
|
"data-cy",
|
|
2154
2162
|
"expanded",
|
|
@@ -2157,7 +2165,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2157
2165
|
"masks",
|
|
2158
2166
|
"rows",
|
|
2159
2167
|
"trim-weeks"
|
|
2160
|
-
]),
|
|
2168
|
+
]), p = m(
|
|
2161
2169
|
() => {
|
|
2162
2170
|
var g;
|
|
2163
2171
|
return (g = t.exclusiveDates) != null && g.length ? M(t.exclusiveDates) : t.disabledDates;
|
|
@@ -2169,7 +2177,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2169
2177
|
[S]
|
|
2170
2178
|
), Fe(
|
|
2171
2179
|
Wt,
|
|
2172
|
-
(g) =>
|
|
2180
|
+
(g) => r.value = g != null && g.matches && S.value == "2-col" ? y.value : 1,
|
|
2173
2181
|
[y, S]
|
|
2174
2182
|
), ee(() => {
|
|
2175
2183
|
t.inputMode || setTimeout(B, 100);
|
|
@@ -2179,7 +2187,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2179
2187
|
}, (g) => {
|
|
2180
2188
|
g && setTimeout(B, 100);
|
|
2181
2189
|
});
|
|
2182
|
-
function
|
|
2190
|
+
function b(g) {
|
|
2183
2191
|
return t.isRange && g.start && g.end ? `${g.start} to ${g.end}` : !t.isRange && g ? g : "";
|
|
2184
2192
|
}
|
|
2185
2193
|
function M(g) {
|
|
@@ -2207,7 +2215,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2207
2215
|
"data-component": "bs-calendar",
|
|
2208
2216
|
"data-range": g.isRange,
|
|
2209
2217
|
onFocusout: P
|
|
2210
|
-
},
|
|
2218
|
+
}, f(c)), [
|
|
2211
2219
|
g.label || g.$slots.label ? (l(), D(pe, {
|
|
2212
2220
|
key: 0,
|
|
2213
2221
|
for: v.value,
|
|
@@ -2221,11 +2229,11 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2221
2229
|
]),
|
|
2222
2230
|
_: 3
|
|
2223
2231
|
}, 8, ["for", "disabled", "required"])) : x("", !0),
|
|
2224
|
-
R(
|
|
2232
|
+
R(f(da), H({
|
|
2225
2233
|
ref_key: "calendar",
|
|
2226
2234
|
ref: a,
|
|
2227
2235
|
columns: o.value,
|
|
2228
|
-
"disabled-dates":
|
|
2236
|
+
"disabled-dates": p.value,
|
|
2229
2237
|
"max-date": g.maxDate,
|
|
2230
2238
|
"min-date": g.minDate,
|
|
2231
2239
|
mode: "date",
|
|
@@ -2233,9 +2241,9 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2233
2241
|
"model-modifiers": $.value,
|
|
2234
2242
|
popover: { visibility: "focus" },
|
|
2235
2243
|
rows: 1,
|
|
2236
|
-
step:
|
|
2244
|
+
step: r.value,
|
|
2237
2245
|
"onUpdate:modelValue": I[2] || (I[2] = (E) => g.$emit("update:modelValue", E))
|
|
2238
|
-
},
|
|
2246
|
+
}, f(d)), gt({ _: 2 }, [
|
|
2239
2247
|
g.inputMode ? {
|
|
2240
2248
|
name: "default",
|
|
2241
2249
|
fn: q(({ inputValue: E, inputEvents: N, showPopover: G }) => [
|
|
@@ -2245,7 +2253,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2245
2253
|
error: g.error,
|
|
2246
2254
|
"input-id": v.value,
|
|
2247
2255
|
"input-value": E,
|
|
2248
|
-
"input-value-fmt":
|
|
2256
|
+
"input-value-fmt": b(E),
|
|
2249
2257
|
listeners: N,
|
|
2250
2258
|
placeholder: g.placeholder,
|
|
2251
2259
|
"show-clear": O.value,
|
|
@@ -2259,7 +2267,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2259
2267
|
error: g.error,
|
|
2260
2268
|
"input-id": v.value,
|
|
2261
2269
|
listeners: N,
|
|
2262
|
-
"model-value":
|
|
2270
|
+
"model-value": b(E),
|
|
2263
2271
|
placeholder: g.placeholder,
|
|
2264
2272
|
"show-clear": O.value,
|
|
2265
2273
|
required: g.required,
|
|
@@ -2274,7 +2282,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2274
2282
|
error: g.error,
|
|
2275
2283
|
"error-msg": g.errorMsg,
|
|
2276
2284
|
hint: g.hint,
|
|
2277
|
-
"hint-id":
|
|
2285
|
+
"hint-id": f(s)
|
|
2278
2286
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
2279
2287
|
], 16, $o));
|
|
2280
2288
|
}
|
|
@@ -2324,7 +2332,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2324
2332
|
"text-btn": !1
|
|
2325
2333
|
}, {
|
|
2326
2334
|
icon: q(() => [
|
|
2327
|
-
e.direction == "right" ? (l(), D(
|
|
2335
|
+
e.direction == "right" ? (l(), D(f(at), { key: 0 })) : (l(), D(f(nt), { key: 1 }))
|
|
2328
2336
|
]),
|
|
2329
2337
|
_: 1
|
|
2330
2338
|
}, 8, ["disabled", "ghost-btn", "hover-effect", "icon-position", "label", "link-to", "router", "size"]));
|
|
@@ -2367,7 +2375,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2367
2375
|
},
|
|
2368
2376
|
setup(e) {
|
|
2369
2377
|
const n = e, t = C(!1), a = (c) => {
|
|
2370
|
-
const
|
|
2378
|
+
const p = new Date(c), v = p.toTimeString().split(" ")[0], $ = p.toDateString().split(" ").slice(1, 3).join(" ");
|
|
2371
2379
|
return `${v} (${$})`;
|
|
2372
2380
|
}, o = m(() => {
|
|
2373
2381
|
var c;
|
|
@@ -2375,14 +2383,14 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2375
2383
|
});
|
|
2376
2384
|
function i(c) {
|
|
2377
2385
|
try {
|
|
2378
|
-
return c.map((
|
|
2379
|
-
const v =
|
|
2386
|
+
return c.map((p) => {
|
|
2387
|
+
const v = p.label;
|
|
2380
2388
|
let $ = [];
|
|
2381
|
-
if (
|
|
2382
|
-
const O =
|
|
2389
|
+
if (p.data.some((O) => (O == null ? void 0 : O.x) && (O == null ? void 0 : O.y))) {
|
|
2390
|
+
const O = p.data.reduce((k, y) => (k[y.x] = y.y, k), {});
|
|
2383
2391
|
$ = n.dataIdxLabels.map((k) => ({ value: O[k] ?? null }));
|
|
2384
2392
|
} else
|
|
2385
|
-
$ =
|
|
2393
|
+
$ = p.data.map((O) => ({ value: O }));
|
|
2386
2394
|
return { rowLabel: v, dataCells: $ };
|
|
2387
2395
|
});
|
|
2388
2396
|
} catch {
|
|
@@ -2391,54 +2399,54 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2391
2399
|
}
|
|
2392
2400
|
function u(c) {
|
|
2393
2401
|
try {
|
|
2394
|
-
const
|
|
2402
|
+
const p = c.reduce((O, k) => {
|
|
2395
2403
|
const y = k.data.map((S) => S == null ? void 0 : S.x);
|
|
2396
2404
|
return [...O, ...y];
|
|
2397
|
-
}, []), v = Array.from(new Set(
|
|
2405
|
+
}, []), v = Array.from(new Set(p));
|
|
2398
2406
|
return (n.xAxisType === "time" || n.xAxisType === "linear") && v.sort((O, k) => (typeof O == "string" && typeof k == "string" && (O = O.toLowerCase(), k = k.toLowerCase()), O < k ? -1 : O > k ? 1 : 0)), v.map((O) => {
|
|
2399
2407
|
const k = { rowLabel: O }, y = [];
|
|
2400
2408
|
return c.forEach((S) => {
|
|
2401
|
-
const
|
|
2402
|
-
|
|
2409
|
+
const b = { datasetLabel: S.label }, M = S.data.find((P) => P.x === O);
|
|
2410
|
+
b.value = M ? M.y : null, y.push(b);
|
|
2403
2411
|
}), k.dataCells = y, n.xAxisType === "time" && (k.rowLabelFmt = a(O)), k;
|
|
2404
2412
|
});
|
|
2405
2413
|
} catch {
|
|
2406
2414
|
return [];
|
|
2407
2415
|
}
|
|
2408
2416
|
}
|
|
2409
|
-
const s = m(() => o.value ? u(n.data) : i(n.data)),
|
|
2417
|
+
const s = m(() => o.value ? u(n.data) : i(n.data)), r = m(() => ({
|
|
2410
2418
|
colspan: o.value ? n.data.length + 1 : n.dataIdxLabels.length + 1,
|
|
2411
2419
|
title: n.tableTitle,
|
|
2412
2420
|
colHeadingFirst: o.value ? n.xLabel : "Dataset",
|
|
2413
2421
|
colHeadings: o.value ? n.data.map((c) => c.label) : n.dataIdxLabels,
|
|
2414
2422
|
rows: s.value
|
|
2415
|
-
})),
|
|
2423
|
+
})), d = m(() => {
|
|
2416
2424
|
var c;
|
|
2417
2425
|
return t.value && !!((c = s.value) != null && c.length);
|
|
2418
2426
|
});
|
|
2419
2427
|
return ee(() => {
|
|
2420
2428
|
t.value = !0;
|
|
2421
|
-
}), (c,
|
|
2422
|
-
|
|
2429
|
+
}), (c, p) => (l(), h("div", Io, [
|
|
2430
|
+
d.value ? (l(), h("table", {
|
|
2423
2431
|
key: 0,
|
|
2424
|
-
summary:
|
|
2432
|
+
summary: r.value.title
|
|
2425
2433
|
}, [
|
|
2426
2434
|
w("thead", null, [
|
|
2427
2435
|
w("tr", null, [
|
|
2428
2436
|
w("th", {
|
|
2429
|
-
colspan:
|
|
2430
|
-
}, V(
|
|
2437
|
+
colspan: r.value.colspan
|
|
2438
|
+
}, V(r.value.title), 9, To)
|
|
2431
2439
|
]),
|
|
2432
2440
|
w("tr", null, [
|
|
2433
|
-
w("th", Co, V(
|
|
2434
|
-
(l(!0), h(J, null, de(
|
|
2441
|
+
w("th", Co, V(r.value.colHeadingFirst), 1),
|
|
2442
|
+
(l(!0), h(J, null, de(r.value.colHeadings, (v) => (l(), h("th", {
|
|
2435
2443
|
key: v,
|
|
2436
2444
|
scope: "col"
|
|
2437
2445
|
}, V(v), 1))), 128))
|
|
2438
2446
|
])
|
|
2439
2447
|
]),
|
|
2440
2448
|
w("tbody", null, [
|
|
2441
|
-
(l(!0), h(J, null, de(
|
|
2449
|
+
(l(!0), h(J, null, de(r.value.rows, (v) => (l(), h("tr", {
|
|
2442
2450
|
key: v.rowLabelFmt || v.rowLabel
|
|
2443
2451
|
}, [
|
|
2444
2452
|
w("th", Do, V(v.rowLabelFmt || v.rowLabel), 1),
|
|
@@ -2454,8 +2462,8 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2454
2462
|
const a = (o) => {
|
|
2455
2463
|
var i, u;
|
|
2456
2464
|
((i = e == null ? void 0 : e.includes) != null && i.call(e, o.key) || (u = e == null ? void 0 : e.some) != null && u.call(e, (s) => {
|
|
2457
|
-
var
|
|
2458
|
-
return (
|
|
2465
|
+
var r;
|
|
2466
|
+
return (r = s == null ? void 0 : s.test) == null ? void 0 : r.call(s, o.key);
|
|
2459
2467
|
})) && n(o);
|
|
2460
2468
|
};
|
|
2461
2469
|
ee(() => {
|
|
@@ -2466,41 +2474,41 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2466
2474
|
}, Ue = 16, xo = 20;
|
|
2467
2475
|
function Ao(e, n) {
|
|
2468
2476
|
const t = C(null), a = C(!1), o = C(null), i = "(min-width: 1166px)", u = { tickSize: Ue }, s = { tickSize: xo };
|
|
2469
|
-
let
|
|
2477
|
+
let r, d;
|
|
2470
2478
|
function c(y, S) {
|
|
2471
|
-
let
|
|
2479
|
+
let b;
|
|
2472
2480
|
switch (y) {
|
|
2473
2481
|
case "bar":
|
|
2474
|
-
|
|
2482
|
+
b = "setBarChartConfigs";
|
|
2475
2483
|
break;
|
|
2476
2484
|
case "line":
|
|
2477
|
-
|
|
2485
|
+
b = "setLineChartConfigs";
|
|
2478
2486
|
break;
|
|
2479
2487
|
default:
|
|
2480
2488
|
throw new Error(`Unsupported chart type: ${y}`);
|
|
2481
2489
|
}
|
|
2482
|
-
return new Mo().setCommonConfigs(S).setCustomOptions(S)[
|
|
2490
|
+
return new Mo().setCommonConfigs(S).setCustomOptions(S)[b](S).setPlugins([zo(o), ua]).build();
|
|
2483
2491
|
}
|
|
2484
|
-
function
|
|
2492
|
+
function p(y) {
|
|
2485
2493
|
y.preventDefault(), y.stopImmediatePropagation();
|
|
2486
2494
|
const S = y.target.closest("li");
|
|
2487
|
-
if (S &&
|
|
2488
|
-
const { labelIndex:
|
|
2489
|
-
|
|
2495
|
+
if (S && r) {
|
|
2496
|
+
const { labelIndex: b, datasetIndex: M } = S.dataset;
|
|
2497
|
+
r.setDatasetVisibility(M, !r.isDatasetVisible(M)), r.update(), y.preventDefault(), y.stopImmediatePropagation(), v(M, b);
|
|
2490
2498
|
}
|
|
2491
2499
|
}
|
|
2492
2500
|
function v(y, S) {
|
|
2493
2501
|
var P;
|
|
2494
|
-
const
|
|
2502
|
+
const b = `[data-dataset-index="${y}"][data-label-index="${S}"]`, M = o.value.querySelector(b);
|
|
2495
2503
|
(P = M == null ? void 0 : M.focus) == null || P.call(M);
|
|
2496
2504
|
}
|
|
2497
2505
|
function $(...y) {
|
|
2498
|
-
!
|
|
2506
|
+
!d || !t.value || (rt.register(...y), rt.defaults.font.family = "'Roobert', sans-serif", r = new rt(t.value, d));
|
|
2499
2507
|
}
|
|
2500
2508
|
const O = Je(function(y) {
|
|
2501
|
-
|
|
2509
|
+
d && (d.updateOptions(y), r.options = d.options, r.update());
|
|
2502
2510
|
}, 100), k = Je(function(y) {
|
|
2503
|
-
|
|
2511
|
+
d && (d.updateData(y), r.data = d.data, r.update());
|
|
2504
2512
|
}, 100);
|
|
2505
2513
|
return Fe(
|
|
2506
2514
|
i,
|
|
@@ -2509,13 +2517,13 @@ function Ao(e, n) {
|
|
|
2509
2517
|
), ee(() => {
|
|
2510
2518
|
var y;
|
|
2511
2519
|
try {
|
|
2512
|
-
|
|
2520
|
+
d = c(e, n), (y = o.value) == null || y.addEventListener("click", p);
|
|
2513
2521
|
} catch (S) {
|
|
2514
|
-
console.error("Error creating chart config", S),
|
|
2522
|
+
console.error("Error creating chart config", S), d = null;
|
|
2515
2523
|
}
|
|
2516
|
-
}), Ae([" ", "Enter"],
|
|
2524
|
+
}), Ae([" ", "Enter"], p, o), tt(() => {
|
|
2517
2525
|
var y;
|
|
2518
|
-
(y = o.value) == null || y.removeEventListener("click",
|
|
2526
|
+
(y = o.value) == null || y.removeEventListener("click", p), r == null || r.destroy();
|
|
2519
2527
|
}), Z([
|
|
2520
2528
|
() => n.customOptions,
|
|
2521
2529
|
() => n.showTooltips,
|
|
@@ -2646,10 +2654,10 @@ function zt(e) {
|
|
|
2646
2654
|
xAxisType: i,
|
|
2647
2655
|
xLabel: u,
|
|
2648
2656
|
yLabel: s,
|
|
2649
|
-
yMax:
|
|
2650
|
-
yMin:
|
|
2657
|
+
yMax: r,
|
|
2658
|
+
yMin: d,
|
|
2651
2659
|
customOptions: c,
|
|
2652
|
-
tickSize:
|
|
2660
|
+
tickSize: p
|
|
2653
2661
|
} = e, v = {
|
|
2654
2662
|
x: {
|
|
2655
2663
|
grid: {
|
|
@@ -2659,7 +2667,7 @@ function zt(e) {
|
|
|
2659
2667
|
stacked: o,
|
|
2660
2668
|
ticks: {
|
|
2661
2669
|
font: {
|
|
2662
|
-
size:
|
|
2670
|
+
size: p || Ue
|
|
2663
2671
|
}
|
|
2664
2672
|
},
|
|
2665
2673
|
title: {
|
|
@@ -2675,11 +2683,11 @@ function zt(e) {
|
|
|
2675
2683
|
display: a
|
|
2676
2684
|
},
|
|
2677
2685
|
stacked: o,
|
|
2678
|
-
suggestedMax:
|
|
2679
|
-
suggestedMin:
|
|
2686
|
+
suggestedMax: r,
|
|
2687
|
+
suggestedMin: d,
|
|
2680
2688
|
ticks: {
|
|
2681
2689
|
font: {
|
|
2682
|
-
size:
|
|
2690
|
+
size: p || Ue
|
|
2683
2691
|
}
|
|
2684
2692
|
},
|
|
2685
2693
|
title: {
|
|
@@ -3021,43 +3029,43 @@ const No = {
|
|
|
3021
3029
|
setup(e, { emit: n }) {
|
|
3022
3030
|
const t = e;
|
|
3023
3031
|
W(t, "checkedPartially", "indeterminate"), W(t, "passAttrs", void 0, "Use Vue's native fallthrough attributes instead.");
|
|
3024
|
-
const a = n, [o] = re(), { filtered: i, remaining: u } = ye(["class", "style"]), s = C(null),
|
|
3032
|
+
const a = n, [o] = re(), { filtered: i, remaining: u } = ye(["class", "style"]), s = C(null), r = m(() => t.inputId || o.value), d = m(() => t.checked || v.value), c = m(() => t.indeterminate || t.checkedPartially), p = m(() => Array.isArray(t.modelValue) && t.value), v = m(() => p.value && t.modelValue.includes(t.value) || typeof t.modelValue == "boolean" && t.modelValue);
|
|
3025
3033
|
function $() {
|
|
3026
|
-
s.value && (s.value.indeterminate = c.value && !
|
|
3034
|
+
s.value && (s.value.indeterminate = c.value && !d.value);
|
|
3027
3035
|
}
|
|
3028
3036
|
function O(S) {
|
|
3029
3037
|
a("update:modelValue", S);
|
|
3030
3038
|
}
|
|
3031
3039
|
function k(S) {
|
|
3032
|
-
const
|
|
3033
|
-
S ?
|
|
3040
|
+
const b = [...t.modelValue];
|
|
3041
|
+
S ? b.push(t.value) : b.splice(b.indexOf(t.value), 1), a("update:modelValue", b);
|
|
3034
3042
|
}
|
|
3035
3043
|
function y(S) {
|
|
3036
|
-
const { checked:
|
|
3037
|
-
|
|
3044
|
+
const { checked: b } = S.target;
|
|
3045
|
+
p.value ? k(b) : O(b);
|
|
3038
3046
|
}
|
|
3039
|
-
return Z(
|
|
3047
|
+
return Z(d, $), Z(c, $), ee($), (S, b) => (l(), h("div", H({
|
|
3040
3048
|
class: "bs-boolean",
|
|
3041
3049
|
"data-component": "bs-checkbox",
|
|
3042
3050
|
"data-disabled": e.disabled,
|
|
3043
3051
|
"data-error": e.error,
|
|
3044
3052
|
"data-size": e.size
|
|
3045
|
-
},
|
|
3053
|
+
}, f(i)), [
|
|
3046
3054
|
w("input", H({
|
|
3047
3055
|
ref_key: "inputEl",
|
|
3048
3056
|
ref: s,
|
|
3049
|
-
checked:
|
|
3057
|
+
checked: d.value,
|
|
3050
3058
|
"data-error": e.error,
|
|
3051
3059
|
disabled: e.disabled,
|
|
3052
|
-
id: S.$attrs.id ||
|
|
3060
|
+
id: S.$attrs.id || r.value,
|
|
3053
3061
|
required: e.required,
|
|
3054
3062
|
value: e.value || "on",
|
|
3055
3063
|
type: "checkbox",
|
|
3056
3064
|
onChange: y
|
|
3057
|
-
},
|
|
3065
|
+
}, f(u)), null, 16, Fo),
|
|
3058
3066
|
e.label || S.$slots.label ? (l(), D(pe, {
|
|
3059
3067
|
key: 0,
|
|
3060
|
-
for: S.$attrs.id ||
|
|
3068
|
+
for: S.$attrs.id || r.value,
|
|
3061
3069
|
disabled: e.disabled,
|
|
3062
3070
|
required: e.required
|
|
3063
3071
|
}, {
|
|
@@ -3256,19 +3264,19 @@ const No = {
|
|
|
3256
3264
|
"after-leave"
|
|
3257
3265
|
],
|
|
3258
3266
|
setup(e, { emit: n }) {
|
|
3259
|
-
const t = e, a = n, o = C(null), i = C(null), u = C(!1), s = C(!1),
|
|
3260
|
-
Et([i,
|
|
3267
|
+
const t = e, a = n, o = C(null), i = C(null), u = C(!1), s = C(!1), r = C(null), d = m(() => t.breakout ? p.value : t.containerId ? document.getElementById(t.containerId) : o.value.internalContainerRef), c = m(() => t.width === "anchor" ? void 0 : t.width);
|
|
3268
|
+
Et([i, r], () => {
|
|
3261
3269
|
s.value && a("close");
|
|
3262
3270
|
}), Ae(["Escape"], () => {
|
|
3263
3271
|
s.value && a("close");
|
|
3264
3272
|
});
|
|
3265
|
-
const { breakoutStub:
|
|
3273
|
+
const { breakoutStub: p, breakoutMounted: v } = Wo(t.breakout, t.containerId);
|
|
3266
3274
|
me("dropdownEnter", u), me("dropdownAfterEnter", s), me("dropdownShown", m(() => t.shown));
|
|
3267
3275
|
const $ = (B, g) => {
|
|
3268
3276
|
i.value.style.setProperty(B, g);
|
|
3269
3277
|
};
|
|
3270
3278
|
function O() {
|
|
3271
|
-
const B =
|
|
3279
|
+
const B = d.value.getBoundingClientRect(), g = r.value.getBoundingClientRect(), I = i.value.getBoundingClientRect();
|
|
3272
3280
|
k(B, g), y(B, g, I);
|
|
3273
3281
|
}
|
|
3274
3282
|
function k(B, g) {
|
|
@@ -3293,13 +3301,13 @@ const No = {
|
|
|
3293
3301
|
}
|
|
3294
3302
|
function S() {
|
|
3295
3303
|
if (t.width === "anchor") {
|
|
3296
|
-
const B =
|
|
3304
|
+
const B = r.value.getBoundingClientRect();
|
|
3297
3305
|
$("--dropdown-wscreen-width", `${B.width}px`);
|
|
3298
3306
|
} else
|
|
3299
3307
|
$("--dropdown-wscreen-width", "");
|
|
3300
3308
|
}
|
|
3301
|
-
function
|
|
3302
|
-
u.value = !0,
|
|
3309
|
+
function b() {
|
|
3310
|
+
u.value = !0, r.value = document.getElementById(t.anchorId), O(), S(), a("enter");
|
|
3303
3311
|
}
|
|
3304
3312
|
function M() {
|
|
3305
3313
|
s.value = !0, a("after-enter");
|
|
@@ -3313,8 +3321,8 @@ const No = {
|
|
|
3313
3321
|
ref_key: "dropdownContainerRef",
|
|
3314
3322
|
ref: o,
|
|
3315
3323
|
breakout: e.breakout,
|
|
3316
|
-
breakoutMounted:
|
|
3317
|
-
breakoutStub: p
|
|
3324
|
+
breakoutMounted: f(v),
|
|
3325
|
+
breakoutStub: f(p),
|
|
3318
3326
|
containerId: e.containerId
|
|
3319
3327
|
}, {
|
|
3320
3328
|
default: q(() => [
|
|
@@ -3323,7 +3331,7 @@ const No = {
|
|
|
3323
3331
|
preloaded: e.preloaded,
|
|
3324
3332
|
shown: e.shown,
|
|
3325
3333
|
onAfterEnter: M,
|
|
3326
|
-
onEnter:
|
|
3334
|
+
onEnter: b,
|
|
3327
3335
|
onAfterLeave: P
|
|
3328
3336
|
}, {
|
|
3329
3337
|
default: q(() => [
|
|
@@ -3345,7 +3353,7 @@ const No = {
|
|
|
3345
3353
|
title: "close",
|
|
3346
3354
|
onClick: g[0] || (g[0] = () => a("close"))
|
|
3347
3355
|
}, [
|
|
3348
|
-
R(
|
|
3356
|
+
R(f(ke))
|
|
3349
3357
|
])
|
|
3350
3358
|
])) : x("", !0),
|
|
3351
3359
|
z(B.$slots, "default")
|
|
@@ -3436,7 +3444,7 @@ const No = {
|
|
|
3436
3444
|
const t = e;
|
|
3437
3445
|
W(t, "center", "position"), W(t, "enterControlled", "preloaded"), W(t, "enterTrigger", "shown"), W(t, "leaveTrigger", "shown"), W(t, "right", "position"), W(t, "toggleId", "anchorId"), W(t, "top", "position");
|
|
3438
3446
|
const a = n, { transition: o } = We(t), i = m(() => t.width === "toggle" ? "anchor" : t.width), u = m(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), s = m(() => t.toggleId ? t.toggleId : t.anchorId);
|
|
3439
|
-
return (
|
|
3447
|
+
return (r, d) => (l(), D(Xo, {
|
|
3440
3448
|
"anchor-id": s.value,
|
|
3441
3449
|
breakout: e.breakout,
|
|
3442
3450
|
"container-id": e.containerId,
|
|
@@ -3444,16 +3452,16 @@ const No = {
|
|
|
3444
3452
|
"helper-text": e.helperText,
|
|
3445
3453
|
position: u.value,
|
|
3446
3454
|
preloaded: e.preloaded,
|
|
3447
|
-
shown:
|
|
3455
|
+
shown: f(o),
|
|
3448
3456
|
"use-mobile-style": e.useMobileStyle,
|
|
3449
3457
|
width: i.value,
|
|
3450
|
-
onClose:
|
|
3451
|
-
onEnter:
|
|
3452
|
-
onAfterEnter:
|
|
3453
|
-
onAfterLeave:
|
|
3458
|
+
onClose: d[0] || (d[0] = () => a("close")),
|
|
3459
|
+
onEnter: d[1] || (d[1] = () => a("enter")),
|
|
3460
|
+
onAfterEnter: d[2] || (d[2] = () => a("after-enter")),
|
|
3461
|
+
onAfterLeave: d[3] || (d[3] = () => a("after-leave"))
|
|
3454
3462
|
}, {
|
|
3455
3463
|
default: q(() => [
|
|
3456
|
-
z(
|
|
3464
|
+
z(r.$slots, "default")
|
|
3457
3465
|
]),
|
|
3458
3466
|
_: 3
|
|
3459
3467
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
|
|
@@ -3512,10 +3520,10 @@ const No = {
|
|
|
3512
3520
|
show: !!(t.modelValue || t.optionsId),
|
|
3513
3521
|
text: t.modelValue ? "Clear this field" : t.optionsId ? "Toggle options dropdown" : ""
|
|
3514
3522
|
})), s = m(() => u.value.icon === "close");
|
|
3515
|
-
function
|
|
3523
|
+
function r() {
|
|
3516
3524
|
s.value ? a("clear") : a("toggled");
|
|
3517
3525
|
}
|
|
3518
|
-
return (
|
|
3526
|
+
return (d, c) => (l(), D(He, {
|
|
3519
3527
|
"aria-live": "polite",
|
|
3520
3528
|
disabled: e.disabled,
|
|
3521
3529
|
error: e.error,
|
|
@@ -3539,32 +3547,32 @@ const No = {
|
|
|
3539
3547
|
placeholder: e.placeholder,
|
|
3540
3548
|
required: e.required,
|
|
3541
3549
|
role: e.optionsId ? "combobox" : void 0,
|
|
3542
|
-
onFocus: c[0] || (c[0] = (
|
|
3543
|
-
onInput: c[1] || (c[1] = (
|
|
3550
|
+
onFocus: c[0] || (c[0] = (p) => d.$emit("input-focus")),
|
|
3551
|
+
onInput: c[1] || (c[1] = (p) => d.$emit("update:modelValue", p.target.value)),
|
|
3544
3552
|
onKeydown: [
|
|
3545
|
-
c[2] || (c[2] = Ye(Ce((
|
|
3546
|
-
c[3] || (c[3] = Ye(Ce((
|
|
3553
|
+
c[2] || (c[2] = Ye(Ce((p) => d.$emit("input-shift-tab"), ["shift"]), ["tab"])),
|
|
3554
|
+
c[3] || (c[3] = Ye(Ce((p) => d.$emit("input-tab"), ["exact"]), ["tab"]))
|
|
3547
3555
|
],
|
|
3548
|
-
onMousedown: c[4] || (c[4] = (
|
|
3549
|
-
onMouseup: c[5] || (c[5] = (
|
|
3550
|
-
},
|
|
3556
|
+
onMousedown: c[4] || (c[4] = (p) => d.$emit("input-mousedown")),
|
|
3557
|
+
onMouseup: c[5] || (c[5] = (p) => d.$emit("input-mouseup"))
|
|
3558
|
+
}, d.$attrs), null, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup", "aria-invalid", "data-error", "disabled", "model-value", "placeholder", "required", "role"]),
|
|
3551
3559
|
fe(w("button", {
|
|
3552
3560
|
"aria-controls": !s.value && e.optionsId ? e.optionsId : void 0,
|
|
3553
3561
|
"aria-expanded": !s.value && e.optionsId ? e.open : void 0,
|
|
3554
3562
|
"data-open": s.value ? void 0 : e.open,
|
|
3555
3563
|
"data-part": "right",
|
|
3556
3564
|
disabled: e.disabled,
|
|
3557
|
-
id:
|
|
3565
|
+
id: f(i),
|
|
3558
3566
|
style: { cursor: "pointer" },
|
|
3559
3567
|
type: "button",
|
|
3560
|
-
onClick:
|
|
3568
|
+
onClick: r
|
|
3561
3569
|
}, [
|
|
3562
3570
|
w("span", Qo, V(u.value.text), 1),
|
|
3563
|
-
s.value ? (l(), D(
|
|
3571
|
+
s.value ? (l(), D(f(ke), {
|
|
3564
3572
|
key: 0,
|
|
3565
3573
|
role: "presentation",
|
|
3566
3574
|
size: "md"
|
|
3567
|
-
})) : (l(), D(
|
|
3575
|
+
})) : (l(), D(f(Ve), {
|
|
3568
3576
|
key: 1,
|
|
3569
3577
|
role: "presentation",
|
|
3570
3578
|
size: "md"
|
|
@@ -3628,7 +3636,7 @@ const No = {
|
|
|
3628
3636
|
z(a.$slots, "label", {}, () => [
|
|
3629
3637
|
_(V(e.label), 1)
|
|
3630
3638
|
]),
|
|
3631
|
-
R(
|
|
3639
|
+
R(f(Ve))
|
|
3632
3640
|
], 8, _o));
|
|
3633
3641
|
}
|
|
3634
3642
|
}, Cn = (e, n, t = "id") => {
|
|
@@ -3655,12 +3663,12 @@ const No = {
|
|
|
3655
3663
|
const n = e, t = C(null), a = ue("optionsId", C("")), o = ue("handleOptionSelect", () => {
|
|
3656
3664
|
}), i = ue("registerOptionById", () => {
|
|
3657
3665
|
}), u = m(() => typeof n.value != "object" ? "" : n.valueIdKey), s = m(() => Cn(a.value, n.value, u.value));
|
|
3658
|
-
function d
|
|
3659
|
-
o(t.value),
|
|
3666
|
+
function r(d) {
|
|
3667
|
+
o(t.value), d.stopPropagation();
|
|
3660
3668
|
}
|
|
3661
3669
|
return ee(() => {
|
|
3662
3670
|
i({ id: s.value, val: n.value });
|
|
3663
|
-
}), (
|
|
3671
|
+
}), (d, c) => (l(), h("li", {
|
|
3664
3672
|
ref_key: "optionRef",
|
|
3665
3673
|
ref: t,
|
|
3666
3674
|
"data-component": "bs-dropdown-option",
|
|
@@ -3670,9 +3678,9 @@ const No = {
|
|
|
3670
3678
|
"data-variant": e.variant || void 0,
|
|
3671
3679
|
id: s.value,
|
|
3672
3680
|
role: "option",
|
|
3673
|
-
onClick:
|
|
3681
|
+
onClick: r
|
|
3674
3682
|
}, [
|
|
3675
|
-
z(
|
|
3683
|
+
z(d.$slots, "default")
|
|
3676
3684
|
], 8, ti));
|
|
3677
3685
|
}
|
|
3678
3686
|
}, ni = ["data-img-size", "data-initials", "data-no-img"], ai = ["src", "alt"], Dn = {
|
|
@@ -3742,7 +3750,7 @@ const No = {
|
|
|
3742
3750
|
"data-checked": i.checkbox.checked
|
|
3743
3751
|
}, null, 8, oi)) : x("", !0),
|
|
3744
3752
|
i.icon ? (l(), h("span", ii, [
|
|
3745
|
-
typeof i.icon == "string" ? (l(), D(
|
|
3753
|
+
typeof i.icon == "string" ? (l(), D(f(ce), {
|
|
3746
3754
|
key: 0,
|
|
3747
3755
|
name: i.icon
|
|
3748
3756
|
}, null, 8, ["name"])) : (l(), D(ae(i.icon), { key: 1 }))
|
|
@@ -3821,24 +3829,24 @@ const No = {
|
|
|
3821
3829
|
"data-component": "bs-input-search",
|
|
3822
3830
|
"data-variant": e.variant,
|
|
3823
3831
|
disabled: e.disabled
|
|
3824
|
-
},
|
|
3832
|
+
}, f(a)), {
|
|
3825
3833
|
default: q(() => [
|
|
3826
|
-
e.hideSearchIcon ? x("", !0) : (l(), D(
|
|
3834
|
+
e.hideSearchIcon ? x("", !0) : (l(), D(f(Xn), { key: 0 })),
|
|
3827
3835
|
R(qe, H({
|
|
3828
3836
|
"data-autowidth": "",
|
|
3829
3837
|
disabled: e.disabled,
|
|
3830
3838
|
id: u.$attrs.id || e.inputId,
|
|
3831
3839
|
placeholder: e.placeholder,
|
|
3832
3840
|
value: e.value || e.modelValue
|
|
3833
|
-
},
|
|
3834
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
3841
|
+
}, f(o), {
|
|
3842
|
+
"onUpdate:modelValue": s[0] || (s[0] = (r) => u.$emit("update:modelValue", r))
|
|
3835
3843
|
}), null, 16, ["disabled", "id", "placeholder", "value"]),
|
|
3836
3844
|
fe(w("button", {
|
|
3837
3845
|
title: "Clear",
|
|
3838
3846
|
type: "button",
|
|
3839
|
-
onClick: s[1] || (s[1] = (
|
|
3847
|
+
onClick: s[1] || (s[1] = (r) => u.$emit("clear"))
|
|
3840
3848
|
}, [
|
|
3841
|
-
R(
|
|
3849
|
+
R(f(ke), { size: "sm" })
|
|
3842
3850
|
], 512), [
|
|
3843
3851
|
[be, i.value]
|
|
3844
3852
|
])
|
|
@@ -3891,17 +3899,17 @@ const No = {
|
|
|
3891
3899
|
setup(e, { expose: n, emit: t }) {
|
|
3892
3900
|
const a = e;
|
|
3893
3901
|
W(a, "selectedValue", void 0, "Use 'modelValue' (or 'v-model') instead");
|
|
3894
|
-
const o = $n(a, "selectedValue", "modelValue"), i = t, u = C(null), s = C(null),
|
|
3902
|
+
const o = $n(a, "selectedValue", "modelValue"), i = t, u = C(null), s = C(null), r = C(-1), d = C(-1), c = C(null), p = C(!1);
|
|
3895
3903
|
let v = {};
|
|
3896
3904
|
const $ = ue("dropdownEnter", C(!1)), O = ue("dropdownAfterEnter", C(!1)), k = ue("dropdownShown", C(!1));
|
|
3897
3905
|
me("optionsId", m(() => a.optionsId)), me("handleOptionSelect", $e), me("registerOptionById", ({ id: U, val: K }) => {
|
|
3898
3906
|
v[U] = K;
|
|
3899
3907
|
}), ui(u, P, { childList: !0 }), Ae([" ", "Enter", "NumpadEnter"], ge, u), Ae(["ArrowDown", "ArrowUp", "Home", "End"], Ie);
|
|
3900
|
-
const
|
|
3908
|
+
const b = [/^[a-zA-Z0-9]{1}$/], M = {
|
|
3901
3909
|
keys: "",
|
|
3902
3910
|
lastTyped: 0
|
|
3903
3911
|
};
|
|
3904
|
-
Ae(
|
|
3912
|
+
Ae(b, (U) => Ee(U, M)), ee(() => {
|
|
3905
3913
|
P(), G(k.value);
|
|
3906
3914
|
}), De(() => {
|
|
3907
3915
|
v = null;
|
|
@@ -3911,7 +3919,7 @@ const No = {
|
|
|
3911
3919
|
return (U = c.value) == null ? void 0 : U.length;
|
|
3912
3920
|
}],
|
|
3913
3921
|
([U, K]) => {
|
|
3914
|
-
U && K > 0 && (
|
|
3922
|
+
U && K > 0 && (p.value = u.value.scrollHeight > u.value.clientHeight);
|
|
3915
3923
|
}
|
|
3916
3924
|
), Z(O, (U) => {
|
|
3917
3925
|
U && (B(), g());
|
|
@@ -3926,34 +3934,34 @@ const No = {
|
|
|
3926
3934
|
}
|
|
3927
3935
|
function g() {
|
|
3928
3936
|
var U;
|
|
3929
|
-
|
|
3937
|
+
r.value > -1 && (B(), (U = c.value[r.value]) == null || U.scrollIntoView({ block: "nearest" }));
|
|
3930
3938
|
}
|
|
3931
3939
|
function I() {
|
|
3932
3940
|
var U, K;
|
|
3933
|
-
|
|
3941
|
+
r.value > -1 && ((U = c.value[r.value]) == null || U.setAttribute("data-active", ""), s.value = (K = c.value[r.value]) == null ? void 0 : K.id, g());
|
|
3934
3942
|
}
|
|
3935
3943
|
function E() {
|
|
3936
3944
|
var U;
|
|
3937
|
-
|
|
3945
|
+
r.value > -1 && ((U = c.value[r.value]) == null || U.removeAttribute("data-active"));
|
|
3938
3946
|
}
|
|
3939
3947
|
function N() {
|
|
3940
3948
|
var U;
|
|
3941
|
-
|
|
3949
|
+
r.value < 0 && (r.value = 0, s.value = (U = c.value[0]) == null ? void 0 : U.id), I();
|
|
3942
3950
|
}
|
|
3943
3951
|
function G(U) {
|
|
3944
3952
|
U ? te() : he();
|
|
3945
3953
|
}
|
|
3946
3954
|
function te() {
|
|
3947
3955
|
var U, K;
|
|
3948
|
-
a.multiselect || (
|
|
3956
|
+
a.multiselect || (d.value = c.value.findIndex(
|
|
3949
3957
|
// valueIdKey will only be present if value is an object
|
|
3950
3958
|
(ie) => ie.dataset.valueIdKey ? ie.id === Cn(a.optionsId, o.value, ie.dataset.valueIdKey) : ie.dataset.value === String(o.value)
|
|
3951
|
-
), !a.multiselect &&
|
|
3959
|
+
), !a.multiselect && d.value > -1 && ((U = c.value[d.value]) == null || U.setAttribute("data-selected", ""), (K = c.value[d.value]) == null || K.setAttribute("aria-selected", "true")), r.value = d.value);
|
|
3952
3960
|
}
|
|
3953
3961
|
function he() {
|
|
3954
3962
|
c.value.forEach((U) => {
|
|
3955
3963
|
U.removeAttribute("data-selected"), U.setAttribute("aria-selected", "false");
|
|
3956
|
-
}), E(),
|
|
3964
|
+
}), E(), d.value = -1, r.value = -1, s.value = null;
|
|
3957
3965
|
}
|
|
3958
3966
|
function $e(U) {
|
|
3959
3967
|
var ie;
|
|
@@ -3962,7 +3970,7 @@ const No = {
|
|
|
3962
3970
|
U.dataset.valueType == "number" && (K = Number(K)), s.value = U.id, E(), i("update:modelValue", K), i("close");
|
|
3963
3971
|
}
|
|
3964
3972
|
function ge(U) {
|
|
3965
|
-
$e(c.value[
|
|
3973
|
+
$e(c.value[r.value]), U.preventDefault();
|
|
3966
3974
|
}
|
|
3967
3975
|
function Ie(U) {
|
|
3968
3976
|
if (k.value)
|
|
@@ -3985,10 +3993,10 @@ const No = {
|
|
|
3985
3993
|
let K;
|
|
3986
3994
|
switch (U) {
|
|
3987
3995
|
case "up":
|
|
3988
|
-
K =
|
|
3996
|
+
K = r.value - 1 < 0 ? c.value.length - 1 : r.value - 1;
|
|
3989
3997
|
break;
|
|
3990
3998
|
case "down":
|
|
3991
|
-
K = (
|
|
3999
|
+
K = (r.value + 1) % c.value.length;
|
|
3992
4000
|
break;
|
|
3993
4001
|
case "home":
|
|
3994
4002
|
K = 0;
|
|
@@ -4006,10 +4014,10 @@ const No = {
|
|
|
4006
4014
|
ie > -1 && Oe(ie, !1);
|
|
4007
4015
|
}
|
|
4008
4016
|
function Oe(U, K = !0) {
|
|
4009
|
-
E(),
|
|
4017
|
+
E(), r.value = U, document.activeElement !== u.value && K ? u.value.focus() : I();
|
|
4010
4018
|
}
|
|
4011
4019
|
return n({
|
|
4012
|
-
activeIndex:
|
|
4020
|
+
activeIndex: r,
|
|
4013
4021
|
optionEls: c,
|
|
4014
4022
|
optionsRef: u,
|
|
4015
4023
|
refreshOptions: P,
|
|
@@ -4022,10 +4030,10 @@ const No = {
|
|
|
4022
4030
|
"aria-live": "polite",
|
|
4023
4031
|
class: "bs-dropdown-options",
|
|
4024
4032
|
"data-component": "bs-dropdown-option-list",
|
|
4025
|
-
"data-overflow":
|
|
4033
|
+
"data-overflow": p.value,
|
|
4026
4034
|
id: e.optionsId,
|
|
4027
4035
|
role: "listbox",
|
|
4028
|
-
tabindex:
|
|
4036
|
+
tabindex: f(k) ? 0 : void 0,
|
|
4029
4037
|
onBlur: E,
|
|
4030
4038
|
onFocus: N,
|
|
4031
4039
|
onKeydown: [
|
|
@@ -4088,11 +4096,11 @@ const No = {
|
|
|
4088
4096
|
const t = e, a = n, o = C(null), i = C([]), u = C([]), s = m(() => {
|
|
4089
4097
|
var k, y;
|
|
4090
4098
|
return ((k = i.value) == null ? void 0 : k.length) && ((y = u.value) == null ? void 0 : y.length);
|
|
4091
|
-
}),
|
|
4099
|
+
}), r = m(() => {
|
|
4092
4100
|
var k, y;
|
|
4093
4101
|
return ((k = i.value) == null ? void 0 : k.length) || ((y = u.value) == null ? void 0 : y.length);
|
|
4094
4102
|
});
|
|
4095
|
-
let
|
|
4103
|
+
let d = !1;
|
|
4096
4104
|
Z(() => t.options, () => {
|
|
4097
4105
|
v(t.selectedOptions);
|
|
4098
4106
|
}), Z(
|
|
@@ -4105,32 +4113,32 @@ const No = {
|
|
|
4105
4113
|
function c() {
|
|
4106
4114
|
o.value && (o.value.refreshOptions(), o.value.optionsRef.focus());
|
|
4107
4115
|
}
|
|
4108
|
-
function
|
|
4116
|
+
function p() {
|
|
4109
4117
|
o.value && (o.value.refreshOptions(), o.value.setCurrentActive());
|
|
4110
4118
|
}
|
|
4111
4119
|
function v(k = []) {
|
|
4112
4120
|
var P;
|
|
4113
4121
|
const y = ((P = k[0]) == null ? void 0 : P[t.valueIdKey]) !== void 0;
|
|
4114
4122
|
y && (k = k.map((B) => B[t.valueIdKey]));
|
|
4115
|
-
const S = new Set(k),
|
|
4123
|
+
const S = new Set(k), b = [], M = [];
|
|
4116
4124
|
t.options.forEach((B) => {
|
|
4117
4125
|
const g = { ...B }, I = y ? B.value[t.valueIdKey] : B.value, E = `${t.optionsId}-${I}-cb`;
|
|
4118
|
-
S.has(y ? B.value[t.valueIdKey] : B.value) ? (g.checkbox = { inputId: E, checked: !0 },
|
|
4119
|
-
}), i.value =
|
|
4126
|
+
S.has(y ? B.value[t.valueIdKey] : B.value) ? (g.checkbox = { inputId: E, checked: !0 }, b.push(g)) : (g.checkbox = { inputId: E, checked: !1 }, M.push(g));
|
|
4127
|
+
}), i.value = b, Re(() => {
|
|
4120
4128
|
u.value = M, Re(() => {
|
|
4121
|
-
|
|
4129
|
+
d && p(), d = !1;
|
|
4122
4130
|
});
|
|
4123
4131
|
});
|
|
4124
4132
|
}
|
|
4125
4133
|
function $(k = []) {
|
|
4126
4134
|
const y = new Set(k), S = [];
|
|
4127
|
-
return t.options.forEach((
|
|
4128
|
-
y.has(
|
|
4135
|
+
return t.options.forEach((b) => {
|
|
4136
|
+
y.has(b.value) && S.push(b.value);
|
|
4129
4137
|
}), S;
|
|
4130
4138
|
}
|
|
4131
4139
|
function O(k) {
|
|
4132
4140
|
let y = [];
|
|
4133
|
-
t.selectedOptions.includes(k) ? (y = t.selectedOptions.filter((S) => S !== k), a("uncheck-option", k)) : (y = $([...t.selectedOptions, k]), a("check-option", k)),
|
|
4141
|
+
t.selectedOptions.includes(k) ? (y = t.selectedOptions.filter((S) => S !== k), a("uncheck-option", k)) : (y = $([...t.selectedOptions, k]), a("check-option", k)), d = !0, a("update:selectedOptions", y);
|
|
4134
4142
|
}
|
|
4135
4143
|
return (k, y) => (l(), D(st, {
|
|
4136
4144
|
ref_key: "optlist",
|
|
@@ -4146,7 +4154,7 @@ const No = {
|
|
|
4146
4154
|
"onUpdate:modelValue": O
|
|
4147
4155
|
}, {
|
|
4148
4156
|
default: q(() => [
|
|
4149
|
-
|
|
4157
|
+
r.value ? (l(), h(J, { key: 0 }, [
|
|
4150
4158
|
R(_e, {
|
|
4151
4159
|
options: i.value,
|
|
4152
4160
|
"show-no-options": !1,
|
|
@@ -4293,20 +4301,20 @@ const No = {
|
|
|
4293
4301
|
setup(e, { emit: n }) {
|
|
4294
4302
|
const t = e, a = n;
|
|
4295
4303
|
let o = null;
|
|
4296
|
-
const [i, u] = re(2), s = C(!1),
|
|
4304
|
+
const [i, u] = re(2), s = C(!1), r = C(""), d = m(() => t.selectedOptions.length), c = m(
|
|
4297
4305
|
() => t.multiselect ? xn : st
|
|
4298
|
-
),
|
|
4299
|
-
(N) => N.label.toLowerCase().startsWith(
|
|
4306
|
+
), p = m(() => t.optionsId || u.value), v = m(() => t.toggleId || i.value), $ = m(() => r.value ? t.options.filter(
|
|
4307
|
+
(N) => N.label.toLowerCase().startsWith(r.value.toLowerCase())
|
|
4300
4308
|
) : t.options), O = m(() => t.filter ? $.value : t.options), k = () => o || (o = document.getElementById(v.value));
|
|
4301
4309
|
function y() {
|
|
4302
4310
|
const N = document.activeElement;
|
|
4303
|
-
return !N || N.tagName === "BODY" || N.id ===
|
|
4311
|
+
return !N || N.tagName === "BODY" || N.id === p.value;
|
|
4304
4312
|
}
|
|
4305
4313
|
function S() {
|
|
4306
4314
|
var N, G;
|
|
4307
4315
|
s.value = !1, a("close"), y() && ((G = (N = k()) == null ? void 0 : N.focus) == null || G.call(N));
|
|
4308
4316
|
}
|
|
4309
|
-
function
|
|
4317
|
+
function b() {
|
|
4310
4318
|
s.value && S();
|
|
4311
4319
|
}
|
|
4312
4320
|
function M() {
|
|
@@ -4324,10 +4332,10 @@ const No = {
|
|
|
4324
4332
|
t.multiselect || (a("update:selectedOption", N), S());
|
|
4325
4333
|
}
|
|
4326
4334
|
function I() {
|
|
4327
|
-
|
|
4335
|
+
r.value = "";
|
|
4328
4336
|
}
|
|
4329
4337
|
function E(N) {
|
|
4330
|
-
|
|
4338
|
+
r.value = N;
|
|
4331
4339
|
}
|
|
4332
4340
|
return (N, G) => (l(), h("div", {
|
|
4333
4341
|
class: "bs-dropdown-with-toggle",
|
|
@@ -4335,18 +4343,18 @@ const No = {
|
|
|
4335
4343
|
}, [
|
|
4336
4344
|
z(N.$slots, "toggle", {
|
|
4337
4345
|
anchorId: e.anchorId,
|
|
4338
|
-
optionsId:
|
|
4346
|
+
optionsId: p.value,
|
|
4339
4347
|
toggleId: v.value
|
|
4340
4348
|
}, () => [
|
|
4341
4349
|
R(ei, {
|
|
4342
|
-
"aria-controls":
|
|
4350
|
+
"aria-controls": p.value,
|
|
4343
4351
|
"aria-expanded": e.open,
|
|
4344
4352
|
disabled: e.disabled,
|
|
4345
4353
|
id: v.value,
|
|
4346
4354
|
open: e.open,
|
|
4347
|
-
"options-id":
|
|
4355
|
+
"options-id": p.value,
|
|
4348
4356
|
size: e.toggleSize,
|
|
4349
|
-
"badge-count": e.showBadgeCount && e.multiselect ?
|
|
4357
|
+
"badge-count": e.showBadgeCount && e.multiselect ? d.value : void 0,
|
|
4350
4358
|
onClick: G[0] || (G[0] = (te) => N.$emit("toggled"))
|
|
4351
4359
|
}, {
|
|
4352
4360
|
label: q(() => [
|
|
@@ -4367,7 +4375,7 @@ const No = {
|
|
|
4367
4375
|
shown: e.open,
|
|
4368
4376
|
"use-mobile-style": e.useMobileStyle,
|
|
4369
4377
|
width: e.dropdownWidth,
|
|
4370
|
-
onClose:
|
|
4378
|
+
onClose: b,
|
|
4371
4379
|
onEnter: M,
|
|
4372
4380
|
onAfterLeave: I
|
|
4373
4381
|
}, {
|
|
@@ -4375,23 +4383,23 @@ const No = {
|
|
|
4375
4383
|
e.filter ? (l(), h("div", hi, [
|
|
4376
4384
|
R(On, {
|
|
4377
4385
|
"aria-label": e.filterLabel,
|
|
4378
|
-
"model-value":
|
|
4386
|
+
"model-value": r.value,
|
|
4379
4387
|
placeholder: e.filterPlaceholder,
|
|
4380
4388
|
"onUpdate:modelValue": E,
|
|
4381
4389
|
onClear: I
|
|
4382
4390
|
}, null, 8, ["aria-label", "model-value", "placeholder"])
|
|
4383
4391
|
])) : x("", !0),
|
|
4384
|
-
R(
|
|
4392
|
+
R(f(c), {
|
|
4385
4393
|
class: ve({ "filterable-options": e.filter }),
|
|
4386
4394
|
label: e.dropdownLabel,
|
|
4387
4395
|
"model-value": e.selectedOption,
|
|
4388
4396
|
options: e.multiselect ? O.value : void 0,
|
|
4389
|
-
"options-id":
|
|
4397
|
+
"options-id": p.value,
|
|
4390
4398
|
"selected-options": e.selectedOptions,
|
|
4391
4399
|
shown: e.open,
|
|
4392
4400
|
"value-id-key": e.valueIdKey,
|
|
4393
4401
|
onCheckOption: B,
|
|
4394
|
-
onClose: G[1] || (G[1] = (te) => e.multiselect ? void 0 :
|
|
4402
|
+
onClose: G[1] || (G[1] = (te) => e.multiselect ? void 0 : b()),
|
|
4395
4403
|
onOptionsListShiftTab: G[2] || (G[2] = (te) => N.$emit("options-list-shift-tab")),
|
|
4396
4404
|
onOptionsListTab: G[3] || (G[3] = (te) => N.$emit("options-list-tab")),
|
|
4397
4405
|
onUncheckOption: P,
|
|
@@ -4490,10 +4498,10 @@ const No = {
|
|
|
4490
4498
|
},
|
|
4491
4499
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
4492
4500
|
setup(e, { emit: n }) {
|
|
4493
|
-
const t = e, a = n, [o, i, u] = re(3), s = C(!1),
|
|
4494
|
-
let
|
|
4501
|
+
const t = e, a = n, [o, i, u] = re(3), s = C(!1), r = C(!1), d = C(null), c = m(() => t.inputId || o.value);
|
|
4502
|
+
let p = null;
|
|
4495
4503
|
function v() {
|
|
4496
|
-
return
|
|
4504
|
+
return p || (p = d.value.$el.querySelector("input")), p;
|
|
4497
4505
|
}
|
|
4498
4506
|
function $(P) {
|
|
4499
4507
|
a("combobox:change", P.target.value), a("update:modelValue", P.target.value);
|
|
@@ -4505,19 +4513,19 @@ const No = {
|
|
|
4505
4513
|
a("combobox:input", P.target.value), t.updateOnInput && a("update:modelValue", P.target.value);
|
|
4506
4514
|
}
|
|
4507
4515
|
function y() {
|
|
4508
|
-
s.value = !1, document.activeElement !== v() && (
|
|
4516
|
+
s.value = !1, document.activeElement !== v() && (r.value = !0);
|
|
4509
4517
|
}
|
|
4510
4518
|
function S() {
|
|
4511
|
-
|
|
4519
|
+
r.value = !0;
|
|
4512
4520
|
}
|
|
4513
|
-
function
|
|
4514
|
-
s.value = !0,
|
|
4521
|
+
function b() {
|
|
4522
|
+
s.value = !0, r.value = !1;
|
|
4515
4523
|
}
|
|
4516
4524
|
function M() {
|
|
4517
|
-
|
|
4525
|
+
r.value ? r.value = !1 : s.value = !0;
|
|
4518
4526
|
}
|
|
4519
4527
|
return (P, B) => (l(), D(An, {
|
|
4520
|
-
"anchor-id":
|
|
4528
|
+
"anchor-id": f(i),
|
|
4521
4529
|
disabled: e.disabled,
|
|
4522
4530
|
"dropdown-position": e.dropdownPosition,
|
|
4523
4531
|
"dropdown-width": e.dropdownWidth,
|
|
@@ -4526,7 +4534,7 @@ const No = {
|
|
|
4526
4534
|
multiselect: !1,
|
|
4527
4535
|
open: s.value,
|
|
4528
4536
|
options: e.options,
|
|
4529
|
-
"options-id":
|
|
4537
|
+
"options-id": f(u),
|
|
4530
4538
|
"selected-option": e.modelValue,
|
|
4531
4539
|
"toggle-id": P.$attrs.id || c.value,
|
|
4532
4540
|
"use-mobile-style": e.useMobileStyle,
|
|
@@ -4538,15 +4546,15 @@ const No = {
|
|
|
4538
4546
|
toggle: q(() => [
|
|
4539
4547
|
R(Jo, H({
|
|
4540
4548
|
ref_key: "inputComboboxRef",
|
|
4541
|
-
ref:
|
|
4549
|
+
ref: d,
|
|
4542
4550
|
id: P.$attrs.id || c.value,
|
|
4543
|
-
"container-id":
|
|
4551
|
+
"container-id": f(i),
|
|
4544
4552
|
disabled: e.disabled,
|
|
4545
4553
|
error: e.error,
|
|
4546
4554
|
"hint-id": e.hintId,
|
|
4547
4555
|
"model-value": e.displayValue || e.modelValue,
|
|
4548
4556
|
open: s.value,
|
|
4549
|
-
"options-id":
|
|
4557
|
+
"options-id": f(u),
|
|
4550
4558
|
placeholder: e.placeholder,
|
|
4551
4559
|
required: e.required,
|
|
4552
4560
|
onChange: $,
|
|
@@ -4554,7 +4562,7 @@ const No = {
|
|
|
4554
4562
|
onInput: k,
|
|
4555
4563
|
onInputFocus: M,
|
|
4556
4564
|
onInputMousedown: S,
|
|
4557
|
-
onInputMouseup:
|
|
4565
|
+
onInputMouseup: b,
|
|
4558
4566
|
onInputShiftTab: B[0] || (B[0] = (g) => s.value = !1),
|
|
4559
4567
|
onToggled: B[1] || (B[1] = (g) => s.value = !s.value)
|
|
4560
4568
|
}, P.$attrs), null, 16, ["id", "container-id", "disabled", "error", "hint-id", "model-value", "open", "options-id", "placeholder", "required"])
|
|
@@ -4638,16 +4646,16 @@ const No = {
|
|
|
4638
4646
|
},
|
|
4639
4647
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
4640
4648
|
setup(e, { emit: n }) {
|
|
4641
|
-
const t = e, [a, o] = re(2), { filtered: i, remaining: u } = ye(["class", "style"]), s = m(() => t.error && t.errorMsg || t.hint || void 0),
|
|
4642
|
-
return (
|
|
4643
|
-
e.label ||
|
|
4649
|
+
const t = e, [a, o] = re(2), { filtered: i, remaining: u } = ye(["class", "style"]), s = m(() => t.error && t.errorMsg || t.hint || void 0), r = m(() => t.inputId || a.value);
|
|
4650
|
+
return (d, c) => (l(), h("div", H({ "data-component": "bs-dropdown-combobox-field" }, f(i)), [
|
|
4651
|
+
e.label || d.$slots.label ? (l(), D(pe, {
|
|
4644
4652
|
key: 0,
|
|
4645
|
-
for:
|
|
4653
|
+
for: d.$attrs.id || r.value,
|
|
4646
4654
|
disabled: e.disabled,
|
|
4647
4655
|
required: e.required
|
|
4648
4656
|
}, {
|
|
4649
4657
|
default: q(() => [
|
|
4650
|
-
z(
|
|
4658
|
+
z(d.$slots, "label", {}, () => [
|
|
4651
4659
|
_(V(e.label), 1)
|
|
4652
4660
|
])
|
|
4653
4661
|
]),
|
|
@@ -4661,8 +4669,8 @@ const No = {
|
|
|
4661
4669
|
error: e.error,
|
|
4662
4670
|
"helper-text": e.helperText,
|
|
4663
4671
|
"helper-description": e.helperDescription,
|
|
4664
|
-
"hint-id":
|
|
4665
|
-
"input-id":
|
|
4672
|
+
"hint-id": f(o),
|
|
4673
|
+
"input-id": d.$attrs.id || r.value,
|
|
4666
4674
|
"model-value": e.modelValue,
|
|
4667
4675
|
options: e.options,
|
|
4668
4676
|
placeholder: e.placeholder,
|
|
@@ -4670,16 +4678,16 @@ const No = {
|
|
|
4670
4678
|
"update-on-input": e.updateOnInput,
|
|
4671
4679
|
"use-mobile-style": e.useMobileStyle,
|
|
4672
4680
|
"value-id-key": e.valueIdKey,
|
|
4673
|
-
"onCombobox:change": c[0] || (c[0] = (
|
|
4674
|
-
"onCombobox:input": c[1] || (c[1] = (
|
|
4675
|
-
"onUpdate:modelValue": c[2] || (c[2] = (
|
|
4676
|
-
},
|
|
4681
|
+
"onCombobox:change": c[0] || (c[0] = (p) => d.$emit("combobox:change", p)),
|
|
4682
|
+
"onCombobox:input": c[1] || (c[1] = (p) => d.$emit("combobox:input", p)),
|
|
4683
|
+
"onUpdate:modelValue": c[2] || (c[2] = (p) => d.$emit("update:modelValue", p))
|
|
4684
|
+
}, f(u)), null, 16, ["disabled", "display-value", "dropdown-position", "dropdown-width", "error", "helper-text", "helper-description", "hint-id", "input-id", "model-value", "options", "placeholder", "required", "update-on-input", "use-mobile-style", "value-id-key"]),
|
|
4677
4685
|
s.value ? (l(), D(ze, {
|
|
4678
4686
|
key: 1,
|
|
4679
4687
|
error: e.error,
|
|
4680
4688
|
"error-msg": e.errorMsg,
|
|
4681
4689
|
hint: e.hint,
|
|
4682
|
-
"hint-id":
|
|
4690
|
+
"hint-id": f(o)
|
|
4683
4691
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
4684
4692
|
], 16));
|
|
4685
4693
|
}
|
|
@@ -4768,7 +4776,7 @@ const No = {
|
|
|
4768
4776
|
function u() {
|
|
4769
4777
|
a.value && (a.value = !1, t("close"));
|
|
4770
4778
|
}
|
|
4771
|
-
return (s,
|
|
4779
|
+
return (s, r) => (l(), D(f(lt), {
|
|
4772
4780
|
"anchor-id": e.anchorId,
|
|
4773
4781
|
breakout: e.breakout,
|
|
4774
4782
|
"container-id": e.containerId,
|
|
@@ -4780,12 +4788,12 @@ const No = {
|
|
|
4780
4788
|
"use-mobile-style": e.useMobileStyle,
|
|
4781
4789
|
width: e.width,
|
|
4782
4790
|
onClose: u,
|
|
4783
|
-
onAfterEnter:
|
|
4791
|
+
onAfterEnter: r[0] || (r[0] = (d) => t("after-enter")),
|
|
4784
4792
|
onEnter: o,
|
|
4785
|
-
onAfterLeave:
|
|
4793
|
+
onAfterLeave: r[1] || (r[1] = (d) => t("after-leave"))
|
|
4786
4794
|
}, {
|
|
4787
4795
|
default: q(() => [
|
|
4788
|
-
R(
|
|
4796
|
+
R(f(st), {
|
|
4789
4797
|
label: e.label,
|
|
4790
4798
|
"model-value": e.modelValue,
|
|
4791
4799
|
"options-id": e.optionsId,
|
|
@@ -4900,29 +4908,29 @@ const No = {
|
|
|
4900
4908
|
setup(e, { emit: n }) {
|
|
4901
4909
|
const t = e;
|
|
4902
4910
|
W(t, "center", "position"), W(t, "enterControlled", "preloaded"), W(t, "enterTrigger", "shown"), W(t, "leaveTrigger", "shown"), W(t, "right", "position"), W(t, "selectedValue", void 0, "Use 'modelValue' (or 'v-model') instead"), W(t, "toggleId", "anchorId"), W(t, "top", "position");
|
|
4903
|
-
const a = n, { transition: o } = We(t), i = m(() => t.width === "toggle" ? "anchor" : t.width), u = m(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), s = m(() => t.toggleId ? t.toggleId : t.anchorId),
|
|
4904
|
-
function
|
|
4911
|
+
const a = n, { transition: o } = We(t), i = m(() => t.width === "toggle" ? "anchor" : t.width), u = m(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), s = m(() => t.toggleId ? t.toggleId : t.anchorId), r = m(() => t.selectedValue || t.modelValue);
|
|
4912
|
+
function d(c) {
|
|
4905
4913
|
a("update:modelValue", c);
|
|
4906
4914
|
}
|
|
4907
|
-
return (c,
|
|
4915
|
+
return (c, p) => (l(), D(mi, {
|
|
4908
4916
|
"anchor-id": s.value,
|
|
4909
4917
|
breakout: e.breakout,
|
|
4910
4918
|
"container-id": e.containerId,
|
|
4911
4919
|
"helper-description": e.helperDescription,
|
|
4912
4920
|
"helper-text": e.helperText,
|
|
4913
4921
|
label: e.label,
|
|
4914
|
-
"model-value":
|
|
4922
|
+
"model-value": r.value,
|
|
4915
4923
|
"options-id": e.optionsId,
|
|
4916
4924
|
position: u.value,
|
|
4917
4925
|
preloaded: e.preloaded,
|
|
4918
4926
|
"prevent-tab": e.preventTab,
|
|
4919
|
-
shown:
|
|
4927
|
+
shown: f(o),
|
|
4920
4928
|
"use-mobile-style": e.useMobileStyle,
|
|
4921
4929
|
width: i.value,
|
|
4922
|
-
onClose:
|
|
4923
|
-
onAfterEnter:
|
|
4924
|
-
onAfterLeave:
|
|
4925
|
-
"onUpdate:modelValue":
|
|
4930
|
+
onClose: p[0] || (p[0] = (v) => a("close")),
|
|
4931
|
+
onAfterEnter: p[1] || (p[1] = (v) => a("after-enter")),
|
|
4932
|
+
onAfterLeave: p[2] || (p[2] = (v) => a("after-leave")),
|
|
4933
|
+
"onUpdate:modelValue": d
|
|
4926
4934
|
}, {
|
|
4927
4935
|
default: q(() => [
|
|
4928
4936
|
z(c.$slots, "default")
|
|
@@ -4945,12 +4953,12 @@ const No = {
|
|
|
4945
4953
|
}, [
|
|
4946
4954
|
w("div", gi, [
|
|
4947
4955
|
z(u.$slots, "icon", {}, () => [
|
|
4948
|
-
typeof o.value == "string" ? (l(), D(
|
|
4956
|
+
typeof o.value == "string" ? (l(), D(f(ce), {
|
|
4949
4957
|
key: 0,
|
|
4950
4958
|
name: o.value,
|
|
4951
4959
|
size: "auto",
|
|
4952
|
-
onLoading: s[0] || (s[0] = (
|
|
4953
|
-
onLoaded: s[1] || (s[1] = (
|
|
4960
|
+
onLoading: s[0] || (s[0] = (r) => a.value = !1),
|
|
4961
|
+
onLoaded: s[1] || (s[1] = (r) => a.value = !0)
|
|
4954
4962
|
}, null, 8, ["name"])) : (l(), D(ae(o.value), {
|
|
4955
4963
|
key: 1,
|
|
4956
4964
|
size: "auto"
|
|
@@ -5009,11 +5017,11 @@ const No = {
|
|
|
5009
5017
|
const t = e, a = n, o = C(null), i = m(() => document.getElementById(t.toggleId));
|
|
5010
5018
|
Et([o, i], u), Ae(["Escape"], u);
|
|
5011
5019
|
function u() {
|
|
5012
|
-
var
|
|
5013
|
-
const s = ((
|
|
5020
|
+
var r;
|
|
5021
|
+
const s = ((r = o.value) == null ? void 0 : r.querySelector('[data-shown="true"]')) !== null;
|
|
5014
5022
|
t.shown && !s && a("close");
|
|
5015
5023
|
}
|
|
5016
|
-
return (s,
|
|
5024
|
+
return (s, r) => (l(), D(Ge, {
|
|
5017
5025
|
name: "bs-flyout",
|
|
5018
5026
|
preloaded: e.preloaded,
|
|
5019
5027
|
shown: e.shown
|
|
@@ -5036,7 +5044,7 @@ const No = {
|
|
|
5036
5044
|
"aria-label": "Close",
|
|
5037
5045
|
onClick: u
|
|
5038
5046
|
}, [
|
|
5039
|
-
R(
|
|
5047
|
+
R(f(ke))
|
|
5040
5048
|
])
|
|
5041
5049
|
]),
|
|
5042
5050
|
z(s.$slots, "default")
|
|
@@ -5079,38 +5087,38 @@ const No = {
|
|
|
5079
5087
|
"[tabindex]",
|
|
5080
5088
|
'[contenteditable="true"]'
|
|
5081
5089
|
], u = m(() => {
|
|
5082
|
-
let
|
|
5090
|
+
let p = "";
|
|
5083
5091
|
return i.forEach((v) => {
|
|
5084
|
-
|
|
5085
|
-
}),
|
|
5092
|
+
p += `${t.selectorPrefix}${v}:not([disabled]):not([tabindex="-1"]),`;
|
|
5093
|
+
}), p = p.slice(0, -1), p;
|
|
5086
5094
|
});
|
|
5087
5095
|
ee(() => {
|
|
5088
5096
|
t.active && window.addEventListener("keydown", s);
|
|
5089
5097
|
}), tt(() => {
|
|
5090
5098
|
window.removeEventListener("keydown", s);
|
|
5091
|
-
}), Z(() => t.active, (
|
|
5092
|
-
|
|
5099
|
+
}), Z(() => t.active, (p) => {
|
|
5100
|
+
p ? window.addEventListener("keydown", s) : window.removeEventListener("keydown", s);
|
|
5093
5101
|
});
|
|
5094
|
-
function s(
|
|
5095
|
-
if (
|
|
5102
|
+
function s(p) {
|
|
5103
|
+
if (p.key === "Tab") {
|
|
5096
5104
|
const v = o.value.querySelectorAll(u.value), $ = v[0], O = v[v.length - 1];
|
|
5097
|
-
document.activeElement === $ &&
|
|
5105
|
+
document.activeElement === $ && p.shiftKey ? r(p, O) : document.activeElement === O && !p.shiftKey ? d(p, $) : o.value.contains(document.activeElement) || c(p, $);
|
|
5098
5106
|
}
|
|
5099
5107
|
}
|
|
5100
|
-
function
|
|
5101
|
-
|
|
5108
|
+
function r(p, v) {
|
|
5109
|
+
p.preventDefault(), t.preventFirstShiftTab || v.focus(), a("first-shift-tab", p);
|
|
5102
5110
|
}
|
|
5103
|
-
function
|
|
5104
|
-
|
|
5111
|
+
function d(p, v) {
|
|
5112
|
+
p.preventDefault(), t.preventLastTab || v.focus(), a("last-tab", p);
|
|
5105
5113
|
}
|
|
5106
|
-
function c(
|
|
5107
|
-
|
|
5114
|
+
function c(p, v) {
|
|
5115
|
+
p.preventDefault(), v.focus();
|
|
5108
5116
|
}
|
|
5109
|
-
return (
|
|
5117
|
+
return (p, v) => (l(), h("div", {
|
|
5110
5118
|
ref_key: "focusGuard",
|
|
5111
5119
|
ref: o
|
|
5112
5120
|
}, [
|
|
5113
|
-
z(
|
|
5121
|
+
z(p.$slots, "default")
|
|
5114
5122
|
], 512));
|
|
5115
5123
|
}
|
|
5116
5124
|
}, Bi = ["data-inactive"], Ti = { class: "bs-form-container-header-wrapper" }, Ci = { class: "bs-form-container-header" }, Di = { class: "bs-form-container-title-wrapper" }, Oi = {
|
|
@@ -5129,7 +5137,7 @@ const No = {
|
|
|
5129
5137
|
w("div", Di, [
|
|
5130
5138
|
n.icon || n.$slots.icon ? (l(), h("div", Oi, [
|
|
5131
5139
|
z(n.$slots, "icon", {}, () => [
|
|
5132
|
-
typeof n.icon == "string" ? (l(), D(
|
|
5140
|
+
typeof n.icon == "string" ? (l(), D(f(ce), {
|
|
5133
5141
|
key: 0,
|
|
5134
5142
|
name: n.icon,
|
|
5135
5143
|
size: "auto"
|
|
@@ -5182,34 +5190,38 @@ const No = {
|
|
|
5182
5190
|
};
|
|
5183
5191
|
function Lt(e) {
|
|
5184
5192
|
const n = C({}), t = m(() => Wn(e.navData));
|
|
5185
|
-
function a(
|
|
5186
|
-
t.value.forEach((
|
|
5187
|
-
var
|
|
5188
|
-
((
|
|
5193
|
+
function a(c) {
|
|
5194
|
+
t.value.forEach((p) => {
|
|
5195
|
+
var v;
|
|
5196
|
+
((v = p.navItems) == null ? void 0 : v.length) > 0 && !p.dividerOnly && (n.value[p.id] = c);
|
|
5189
5197
|
});
|
|
5190
5198
|
}
|
|
5191
|
-
function o(
|
|
5192
|
-
const
|
|
5193
|
-
return typeof
|
|
5199
|
+
function o(c) {
|
|
5200
|
+
const p = r(c);
|
|
5201
|
+
return typeof p == "string" && p.startsWith("http");
|
|
5194
5202
|
}
|
|
5195
|
-
function i(
|
|
5196
|
-
const
|
|
5197
|
-
return o(
|
|
5203
|
+
function i(c) {
|
|
5204
|
+
const p = r(c);
|
|
5205
|
+
return o(c) ? window.location.href.startsWith(p) : e.router ? p && e.router.resolve(p).path === e.router.currentRoute.value.path : !1;
|
|
5198
5206
|
}
|
|
5199
|
-
function u(
|
|
5200
|
-
return
|
|
5207
|
+
function u(c) {
|
|
5208
|
+
return c.dividerOnly ? !0 : !n.value[c.id];
|
|
5201
5209
|
}
|
|
5202
|
-
function s(
|
|
5203
|
-
return u(
|
|
5210
|
+
function s(c) {
|
|
5211
|
+
return u(c) ? `Collapse ${c.text} Section` : `Expand ${c.text} Section`;
|
|
5204
5212
|
}
|
|
5205
|
-
function
|
|
5206
|
-
var
|
|
5207
|
-
return
|
|
5213
|
+
function r(c) {
|
|
5214
|
+
var p;
|
|
5215
|
+
return c.to ? c.to : (p = c.resource) != null && p.url ? c.resource.url : null;
|
|
5216
|
+
}
|
|
5217
|
+
function d(c) {
|
|
5218
|
+
return c.target ? c.target : "_self";
|
|
5208
5219
|
}
|
|
5209
5220
|
return {
|
|
5210
5221
|
collapsedSections: n,
|
|
5211
5222
|
getExpandButtonTitle: s,
|
|
5212
|
-
|
|
5223
|
+
getTarget: d,
|
|
5224
|
+
getTo: r,
|
|
5213
5225
|
initializeSections: a,
|
|
5214
5226
|
isAbsoluteTo: o,
|
|
5215
5227
|
isActivePath: i,
|
|
@@ -5217,7 +5229,7 @@ function Lt(e) {
|
|
|
5217
5229
|
rawNavData: t
|
|
5218
5230
|
};
|
|
5219
5231
|
}
|
|
5220
|
-
const Li = ["aria-current", "data-active", "href"], Me = {
|
|
5232
|
+
const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
5221
5233
|
__name: "NavigationLink",
|
|
5222
5234
|
props: {
|
|
5223
5235
|
item: {
|
|
@@ -5231,29 +5243,31 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5231
5243
|
},
|
|
5232
5244
|
emits: ["nav-link-clicked"],
|
|
5233
5245
|
setup(e, { emit: n }) {
|
|
5234
|
-
const t = e, a = n, { isAbsoluteTo: o, isActivePath: i, getTo: u } = Lt(t);
|
|
5235
|
-
return (
|
|
5236
|
-
const
|
|
5237
|
-
return
|
|
5246
|
+
const t = e, a = n, { isAbsoluteTo: o, isActivePath: i, getTo: u, getTarget: s } = Lt(t);
|
|
5247
|
+
return (r, d) => {
|
|
5248
|
+
const c = en("router-link");
|
|
5249
|
+
return f(o)(e.item) ? (l(), h("a", {
|
|
5238
5250
|
key: 0,
|
|
5239
|
-
"aria-current":
|
|
5240
|
-
"data-active":
|
|
5241
|
-
href:
|
|
5242
|
-
|
|
5251
|
+
"aria-current": f(i)(e.item) || void 0,
|
|
5252
|
+
"data-active": f(i)(e.item),
|
|
5253
|
+
href: f(u)(e.item),
|
|
5254
|
+
target: f(s)(e.item),
|
|
5255
|
+
onClick: d[0] || (d[0] = (p) => a("nav-link-clicked", p))
|
|
5243
5256
|
}, [
|
|
5244
|
-
z(
|
|
5245
|
-
], 8, Li)) : (l(), D(
|
|
5257
|
+
z(r.$slots, "default")
|
|
5258
|
+
], 8, Li)) : (l(), D(c, {
|
|
5246
5259
|
key: 1,
|
|
5247
|
-
"aria-current":
|
|
5248
|
-
"data-active":
|
|
5249
|
-
to:
|
|
5250
|
-
|
|
5260
|
+
"aria-current": f(i)(e.item) || void 0,
|
|
5261
|
+
"data-active": f(i)(e.item),
|
|
5262
|
+
to: f(u)(e.item),
|
|
5263
|
+
target: f(s)(e.item),
|
|
5264
|
+
onClick: d[1] || (d[1] = (p) => a("nav-link-clicked", p))
|
|
5251
5265
|
}, {
|
|
5252
5266
|
default: q(() => [
|
|
5253
|
-
z(
|
|
5267
|
+
z(r.$slots, "default")
|
|
5254
5268
|
]),
|
|
5255
5269
|
_: 3
|
|
5256
|
-
}, 8, ["aria-current", "data-active", "to"]));
|
|
5270
|
+
}, 8, ["aria-current", "data-active", "to", "target"]));
|
|
5257
5271
|
};
|
|
5258
5272
|
}
|
|
5259
5273
|
}, Vi = ["data-shown", "data-hide-toggle"], Mi = ["aria-expanded", "aria-controls", "title"], Ni = { class: "bs-horizontal-nav-mobile-toggle-title" }, qi = ["id"], Ri = ["data-expanded"], ji = ["aria-expanded", "aria-controls", "data-active", "title", "onClick"], Fi = { class: "bs-horizontal-nav-mobile-nested-menu" }, Ui = { key: 1 }, Wi = {
|
|
@@ -5278,108 +5292,108 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5278
5292
|
getExpandButtonTitle: i,
|
|
5279
5293
|
initializeSections: u,
|
|
5280
5294
|
isActivePath: s,
|
|
5281
|
-
isExpanded:
|
|
5282
|
-
rawNavData:
|
|
5295
|
+
isExpanded: r,
|
|
5296
|
+
rawNavData: d
|
|
5283
5297
|
} = Lt(t), c = St();
|
|
5284
|
-
Fe("(max-width: 1165px)", (
|
|
5285
|
-
|
|
5298
|
+
Fe("(max-width: 1165px)", (b) => {
|
|
5299
|
+
p.value = b.matches;
|
|
5286
5300
|
});
|
|
5287
|
-
const
|
|
5301
|
+
const p = C(!1), v = C(!1);
|
|
5288
5302
|
_t(() => {
|
|
5289
5303
|
u(!0);
|
|
5290
5304
|
}), ee(() => {
|
|
5291
5305
|
v.value = t.mobileOpen;
|
|
5292
5306
|
}), Z(() => t.navData, () => {
|
|
5293
5307
|
u(!0);
|
|
5294
|
-
}), Z(() => t.mobileOpen, (
|
|
5295
|
-
v.value =
|
|
5296
|
-
}), Z(v, (
|
|
5297
|
-
|
|
5298
|
-
}), Z(
|
|
5299
|
-
|
|
5308
|
+
}), Z(() => t.mobileOpen, (b) => {
|
|
5309
|
+
v.value = b;
|
|
5310
|
+
}), Z(v, (b) => {
|
|
5311
|
+
b ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", a("mobile-toggle", b);
|
|
5312
|
+
}), Z(p, (b, M) => {
|
|
5313
|
+
b !== M && (v.value = !1, y());
|
|
5300
5314
|
});
|
|
5301
|
-
function $(
|
|
5302
|
-
o.value[
|
|
5303
|
-
M !==
|
|
5315
|
+
function $(b) {
|
|
5316
|
+
o.value[b] = !o.value[b], Object.keys(o.value).forEach((M) => {
|
|
5317
|
+
M !== b && (o.value[M] = !0);
|
|
5304
5318
|
});
|
|
5305
5319
|
}
|
|
5306
5320
|
function O() {
|
|
5307
5321
|
return v.value ? "Close Menu" : "Open Menu";
|
|
5308
5322
|
}
|
|
5309
|
-
function k(
|
|
5310
|
-
return
|
|
5323
|
+
function k(b) {
|
|
5324
|
+
return b.navItems.some((M) => s(M));
|
|
5311
5325
|
}
|
|
5312
5326
|
function y() {
|
|
5313
|
-
Object.keys(o.value).forEach((
|
|
5314
|
-
o.value[
|
|
5327
|
+
Object.keys(o.value).forEach((b) => {
|
|
5328
|
+
o.value[b] = !0;
|
|
5315
5329
|
});
|
|
5316
5330
|
}
|
|
5317
|
-
function S(
|
|
5318
|
-
|
|
5331
|
+
function S(b, M) {
|
|
5332
|
+
b.ctrlKey || b.metaKey || $(M.id), a("nav-link-clicked", { ev: b, payload: M });
|
|
5319
5333
|
}
|
|
5320
|
-
return (
|
|
5334
|
+
return (b, M) => {
|
|
5321
5335
|
const P = en("router-link");
|
|
5322
|
-
return
|
|
5336
|
+
return p.value ? (l(), h("nav", {
|
|
5323
5337
|
key: 0,
|
|
5324
5338
|
class: "bs-horizontal-nav-mobile",
|
|
5325
5339
|
"data-shown": v.value,
|
|
5326
|
-
"data-hide-toggle":
|
|
5340
|
+
"data-hide-toggle": b.hideMobileToggle
|
|
5327
5341
|
}, [
|
|
5328
|
-
|
|
5342
|
+
b.hideMobileToggle ? x("", !0) : (l(), h("button", {
|
|
5329
5343
|
key: 0,
|
|
5330
5344
|
type: "button",
|
|
5331
5345
|
class: "bs-horizontal-nav-mobile-toggle",
|
|
5332
|
-
"aria-expanded":
|
|
5333
|
-
"aria-controls": `horizontal-nav-mobile-${
|
|
5346
|
+
"aria-expanded": b.mobileOpen,
|
|
5347
|
+
"aria-controls": `horizontal-nav-mobile-${f(c)}`,
|
|
5334
5348
|
title: O(),
|
|
5335
5349
|
onClick: M[0] || (M[0] = (B) => v.value = !v.value)
|
|
5336
5350
|
}, [
|
|
5337
5351
|
w("div", Ni, [
|
|
5338
|
-
typeof
|
|
5352
|
+
typeof b.titleIcon == "string" ? (l(), D(f(ce), {
|
|
5339
5353
|
key: 0,
|
|
5340
5354
|
class: "bs-horizontal-nav-mobile-toggle-title-icon",
|
|
5341
|
-
name:
|
|
5342
|
-
}, null, 8, ["name"])) : (l(), D(ae(
|
|
5355
|
+
name: b.titleIcon
|
|
5356
|
+
}, null, 8, ["name"])) : (l(), D(ae(b.titleIcon), {
|
|
5343
5357
|
key: 1,
|
|
5344
5358
|
class: "bs-horizontal-nav-mobile-toggle-title-icon"
|
|
5345
5359
|
})),
|
|
5346
|
-
w("span", null, V(
|
|
5360
|
+
w("span", null, V(b.mobileToggleText), 1)
|
|
5347
5361
|
]),
|
|
5348
|
-
R(
|
|
5362
|
+
R(f(Ve), { class: "bs-horizontal-nav-mobile-toggle-caret" })
|
|
5349
5363
|
], 8, Mi)),
|
|
5350
5364
|
R(wt, { name: "bs-horizontal-nav-mobile" }, {
|
|
5351
5365
|
default: q(() => [
|
|
5352
5366
|
fe(w("div", {
|
|
5353
5367
|
class: "bs-horizontal-nav-mobile-menu",
|
|
5354
|
-
id: `horizontal-nav-mobile-${
|
|
5368
|
+
id: `horizontal-nav-mobile-${f(c)}`
|
|
5355
5369
|
}, [
|
|
5356
5370
|
w("ul", null, [
|
|
5357
|
-
(l(!0), h(J, null, de(
|
|
5371
|
+
(l(!0), h(J, null, de(f(d), (B) => {
|
|
5358
5372
|
var g;
|
|
5359
5373
|
return l(), h(J, {
|
|
5360
5374
|
key: B.id
|
|
5361
5375
|
}, [
|
|
5362
5376
|
((g = B.navItems) == null ? void 0 : g.length) > 0 ? (l(), h("li", {
|
|
5363
5377
|
key: 0,
|
|
5364
|
-
"data-expanded":
|
|
5378
|
+
"data-expanded": f(r)(B)
|
|
5365
5379
|
}, [
|
|
5366
5380
|
w("button", {
|
|
5367
5381
|
type: "button",
|
|
5368
5382
|
class: "bs-horizontal-nav-mobile-nested-toggle",
|
|
5369
|
-
"aria-expanded":
|
|
5383
|
+
"aria-expanded": f(r)(B),
|
|
5370
5384
|
"aria-controls": `${B.id}-nested-menu`,
|
|
5371
5385
|
"data-active": k(B),
|
|
5372
|
-
title:
|
|
5386
|
+
title: f(i)(B),
|
|
5373
5387
|
onClick: (I) => $(B.id)
|
|
5374
5388
|
}, [
|
|
5375
5389
|
w("span", null, V(B.text), 1),
|
|
5376
|
-
R(
|
|
5390
|
+
R(f(Ve), { class: "bs-horizontal-nav-mobile-nested-toggle-caret" })
|
|
5377
5391
|
], 8, ji),
|
|
5378
5392
|
w("ul", Fi, [
|
|
5379
5393
|
(l(!0), h(J, null, de(B.navItems, (I) => (l(), h("li", null, [
|
|
5380
5394
|
R(Me, {
|
|
5381
5395
|
item: I,
|
|
5382
|
-
router:
|
|
5396
|
+
router: b.router,
|
|
5383
5397
|
onNavLinkClicked: (E) => a("nav-link-clicked", { ev: E, payload: I })
|
|
5384
5398
|
}, {
|
|
5385
5399
|
default: q(() => [
|
|
@@ -5392,7 +5406,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5392
5406
|
], 8, Ri)) : (l(), h("li", Ui, [
|
|
5393
5407
|
R(Me, {
|
|
5394
5408
|
item: B,
|
|
5395
|
-
router:
|
|
5409
|
+
router: b.router,
|
|
5396
5410
|
onNavLinkClicked: (I) => a("nav-link-clicked", { ev: I, payload: B })
|
|
5397
5411
|
}, {
|
|
5398
5412
|
default: q(() => [
|
|
@@ -5404,43 +5418,43 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5404
5418
|
], 64);
|
|
5405
5419
|
}), 128))
|
|
5406
5420
|
]),
|
|
5407
|
-
|
|
5408
|
-
z(
|
|
5421
|
+
b.$slots["end-items"] ? (l(), h("div", Wi, [
|
|
5422
|
+
z(b.$slots, "end-items")
|
|
5409
5423
|
])) : x("", !0)
|
|
5410
5424
|
], 8, qi), [
|
|
5411
|
-
[be,
|
|
5425
|
+
[be, b.mobileOpen]
|
|
5412
5426
|
])
|
|
5413
5427
|
]),
|
|
5414
5428
|
_: 3
|
|
5415
5429
|
})
|
|
5416
5430
|
], 8, Vi)) : (l(), h("div", Ki, [
|
|
5417
5431
|
w("nav", null, [
|
|
5418
|
-
!
|
|
5419
|
-
typeof
|
|
5432
|
+
!b.title && b.titleIcon ? (l(), h(J, { key: 0 }, [
|
|
5433
|
+
typeof b.titleIcon == "string" ? (l(), D(f(ce), {
|
|
5420
5434
|
key: 0,
|
|
5421
5435
|
class: "bs-horizontal-nav-title-icon",
|
|
5422
|
-
name:
|
|
5423
|
-
}, null, 8, ["name"])) : (l(), D(ae(
|
|
5436
|
+
name: b.titleIcon
|
|
5437
|
+
}, null, 8, ["name"])) : (l(), D(ae(b.titleIcon), {
|
|
5424
5438
|
key: 1,
|
|
5425
5439
|
class: "bs-horizontal-nav-title-icon"
|
|
5426
5440
|
}))
|
|
5427
5441
|
], 64)) : x("", !0),
|
|
5428
5442
|
w("ul", null, [
|
|
5429
|
-
|
|
5430
|
-
|
|
5443
|
+
b.title ? (l(), h("li", Hi, [
|
|
5444
|
+
b.titleUrl ? (l(), D(P, {
|
|
5431
5445
|
key: 0,
|
|
5432
|
-
"aria-current":
|
|
5433
|
-
to:
|
|
5434
|
-
"data-active":
|
|
5435
|
-
onClick: M[1] || (M[1] = (B) => a("nav-link-clicked", { ev: B, payload: { resource: { url:
|
|
5446
|
+
"aria-current": f(s)({ to: b.titleUrl }) || void 0,
|
|
5447
|
+
to: b.titleUrl,
|
|
5448
|
+
"data-active": f(s)({ to: b.titleUrl }),
|
|
5449
|
+
onClick: M[1] || (M[1] = (B) => a("nav-link-clicked", { ev: B, payload: { resource: { url: b.titleUrl }, text: b.title } }))
|
|
5436
5450
|
}, {
|
|
5437
5451
|
default: q(() => [
|
|
5438
|
-
w("span", null, V(
|
|
5452
|
+
w("span", null, V(b.title), 1)
|
|
5439
5453
|
]),
|
|
5440
5454
|
_: 1
|
|
5441
|
-
}, 8, ["aria-current", "to", "data-active"])) : (l(), h("span", Gi, V(
|
|
5455
|
+
}, 8, ["aria-current", "to", "data-active"])) : (l(), h("span", Gi, V(b.title), 1))
|
|
5442
5456
|
])) : x("", !0),
|
|
5443
|
-
(l(!0), h(J, null, de(
|
|
5457
|
+
(l(!0), h(J, null, de(f(d), (B, g) => {
|
|
5444
5458
|
var I;
|
|
5445
5459
|
return l(), h(J, {
|
|
5446
5460
|
key: B.id
|
|
@@ -5450,25 +5464,25 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5450
5464
|
id: `${B.id}-toggle`,
|
|
5451
5465
|
type: "button",
|
|
5452
5466
|
class: "bs-horizontal-nav-nested-toggle",
|
|
5453
|
-
"aria-expanded":
|
|
5467
|
+
"aria-expanded": f(r)(B),
|
|
5454
5468
|
"aria-controls": `${B.id}-nested-section`,
|
|
5455
5469
|
"data-active": k(B),
|
|
5456
|
-
"data-expanded":
|
|
5457
|
-
title:
|
|
5470
|
+
"data-expanded": f(r)(B),
|
|
5471
|
+
title: f(i)(B),
|
|
5458
5472
|
onClick: (E) => $(B.id)
|
|
5459
5473
|
}, [
|
|
5460
5474
|
w("span", null, V(B.text), 1),
|
|
5461
|
-
R(
|
|
5475
|
+
R(f(Ve), { class: "bs-horizontal-nav-nested-toggle-caret" })
|
|
5462
5476
|
], 8, Xi),
|
|
5463
5477
|
R(lt, {
|
|
5464
5478
|
id: `${B.id}-nested-section`,
|
|
5465
5479
|
class: "bs-horizontal-nav-nested-menu",
|
|
5466
5480
|
"anchor-id": `${B.id}-toggle`,
|
|
5467
5481
|
position: "right",
|
|
5468
|
-
shown:
|
|
5482
|
+
shown: f(r)(B),
|
|
5469
5483
|
"use-mobile-style": !1,
|
|
5470
5484
|
width: "content",
|
|
5471
|
-
onClose: (E) =>
|
|
5485
|
+
onClose: (E) => f(o)[B.id] = !0
|
|
5472
5486
|
}, {
|
|
5473
5487
|
default: q(() => [
|
|
5474
5488
|
w("ul", null, [
|
|
@@ -5477,7 +5491,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5477
5491
|
}, [
|
|
5478
5492
|
R(Me, {
|
|
5479
5493
|
item: E,
|
|
5480
|
-
router:
|
|
5494
|
+
router: b.router,
|
|
5481
5495
|
onNavLinkClicked: (N) => S(N, E)
|
|
5482
5496
|
}, {
|
|
5483
5497
|
default: q(() => [
|
|
@@ -5493,7 +5507,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5493
5507
|
])) : (l(), h("li", Zi, [
|
|
5494
5508
|
R(Me, {
|
|
5495
5509
|
item: B,
|
|
5496
|
-
router:
|
|
5510
|
+
router: b.router,
|
|
5497
5511
|
onNavLinkClicked: (E) => a("nav-link-clicked", { ev: E, payload: B })
|
|
5498
5512
|
}, {
|
|
5499
5513
|
default: q(() => [
|
|
@@ -5505,8 +5519,8 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5505
5519
|
], 64);
|
|
5506
5520
|
}), 128))
|
|
5507
5521
|
]),
|
|
5508
|
-
|
|
5509
|
-
z(
|
|
5522
|
+
b.$slots["end-items"] ? (l(), h("div", Qi, [
|
|
5523
|
+
z(b.$slots, "end-items")
|
|
5510
5524
|
])) : x("", !0)
|
|
5511
5525
|
])
|
|
5512
5526
|
]));
|
|
@@ -5527,7 +5541,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5527
5541
|
ref_key: "svgWrapperRef",
|
|
5528
5542
|
ref: n,
|
|
5529
5543
|
class: "bs-icon-gradient-wrapper",
|
|
5530
|
-
style: `fill: url(#${
|
|
5544
|
+
style: `fill: url(#${f(o)});`
|
|
5531
5545
|
}, i.$attrs), [
|
|
5532
5546
|
z(i.$slots, "default")
|
|
5533
5547
|
], 16),
|
|
@@ -5538,7 +5552,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5538
5552
|
height: "0"
|
|
5539
5553
|
}, [
|
|
5540
5554
|
w("linearGradient", {
|
|
5541
|
-
id:
|
|
5555
|
+
id: f(o),
|
|
5542
5556
|
x1: "0",
|
|
5543
5557
|
y1: "0",
|
|
5544
5558
|
x2: "100%",
|
|
@@ -5561,21 +5575,21 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5561
5575
|
const n = e, t = ue(Pn, null), a = m(() => (t == null ? void 0 : t.isSelected(n.value)) || n.selected), o = m(() => (t == null ? void 0 : t.props.disabled) || n.disabled), i = m(() => (t == null ? void 0 : t.props.variant) || n.variant), u = m(() => ({
|
|
5562
5576
|
...n,
|
|
5563
5577
|
disabled: o.value
|
|
5564
|
-
})), { rootTag: s, attrsToBind:
|
|
5578
|
+
})), { rootTag: s, attrsToBind: r, btnRef: d } = Ke(u, Se(), "button");
|
|
5565
5579
|
function c(v) {
|
|
5566
|
-
|
|
5580
|
+
p();
|
|
5567
5581
|
}
|
|
5568
|
-
function
|
|
5582
|
+
function p() {
|
|
5569
5583
|
t && (a.value && !t.props.multiple || t.setModel(n.value));
|
|
5570
5584
|
}
|
|
5571
|
-
return (v, $) => (l(), D(ae(
|
|
5585
|
+
return (v, $) => (l(), D(ae(f(s)), H({
|
|
5572
5586
|
ref_key: "btnRef",
|
|
5573
|
-
ref:
|
|
5587
|
+
ref: d,
|
|
5574
5588
|
class: "bs-inline-tab",
|
|
5575
5589
|
"data-variant": i.value,
|
|
5576
5590
|
"data-selected": a.value || void 0,
|
|
5577
|
-
"aria-pressed":
|
|
5578
|
-
},
|
|
5591
|
+
"aria-pressed": f(s) === "button" ? a.value : void 0
|
|
5592
|
+
}, f(r), { onClick: c }), {
|
|
5579
5593
|
default: q(() => [
|
|
5580
5594
|
z(v.$slots, "default", { isSelected: a.value })
|
|
5581
5595
|
]),
|
|
@@ -5601,29 +5615,29 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5601
5615
|
setModel: u,
|
|
5602
5616
|
isSelected: a
|
|
5603
5617
|
});
|
|
5604
|
-
function a(
|
|
5618
|
+
function a(r) {
|
|
5605
5619
|
if (!t.value) return !1;
|
|
5606
|
-
if (!n.multiple) return o(t.value,
|
|
5620
|
+
if (!n.multiple) return o(t.value, r);
|
|
5607
5621
|
if (!Array.isArray(t.value))
|
|
5608
5622
|
throw new Error(`[BsInlineTabs] When "multiple" prop is used, v-model must be an Array. Your model: ${t.value}`);
|
|
5609
|
-
return t.value.some((
|
|
5623
|
+
return t.value.some((d) => o(d, r));
|
|
5610
5624
|
}
|
|
5611
|
-
function o(
|
|
5625
|
+
function o(r, d) {
|
|
5612
5626
|
const { matcher: c } = n;
|
|
5613
|
-
return i(
|
|
5627
|
+
return i(r) && i(d) ? typeof c == "function" ? c(r) === c(d) : r[c] === d[c] : r === d;
|
|
5614
5628
|
}
|
|
5615
|
-
function i(
|
|
5616
|
-
return typeof
|
|
5629
|
+
function i(r) {
|
|
5630
|
+
return typeof r == "object" && r !== null && !Array.isArray(r);
|
|
5617
5631
|
}
|
|
5618
|
-
function u(
|
|
5619
|
-
t.value = n.multiple ? s(
|
|
5632
|
+
function u(r) {
|
|
5633
|
+
t.value = n.multiple ? s(r) : r;
|
|
5620
5634
|
}
|
|
5621
|
-
function s(
|
|
5622
|
-
return t.value ? a(
|
|
5635
|
+
function s(r) {
|
|
5636
|
+
return t.value ? a(r) ? t.value.filter((d) => !o(d, r)) : [...t.value, r] : [r];
|
|
5623
5637
|
}
|
|
5624
|
-
return (
|
|
5638
|
+
return (r, d) => (l(), D(ae(r.as), { class: "bs-inline-tab-group" }, {
|
|
5625
5639
|
default: q(() => [
|
|
5626
|
-
z(
|
|
5640
|
+
z(r.$slots, "default")
|
|
5627
5641
|
]),
|
|
5628
5642
|
_: 3
|
|
5629
5643
|
}));
|
|
@@ -5674,14 +5688,14 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5674
5688
|
const t = e;
|
|
5675
5689
|
W(t, "hints", void 0, "Use 'hint' and/or 'errorMsg. instead."), W(t, "passAttrs", void 0, "Use Vue's native fallthrough attributes instead.");
|
|
5676
5690
|
const [a, o] = re(2), { filtered: i, remaining: u } = ye(["class", "style"]), s = m(() => {
|
|
5677
|
-
var c,
|
|
5678
|
-
return ((
|
|
5691
|
+
var c, p;
|
|
5692
|
+
return ((p = (c = t.hints) == null ? void 0 : c.join) == null ? void 0 : p.call(c, `
|
|
5679
5693
|
`)) || t.hints;
|
|
5680
|
-
}),
|
|
5681
|
-
return (c,
|
|
5694
|
+
}), r = m(() => t.error && t.errorMsg || t.hint || s.value || void 0), d = m(() => t.inputId || a.value);
|
|
5695
|
+
return (c, p) => (l(), h("div", H({ "data-component": "bs-input-field" }, f(i)), [
|
|
5682
5696
|
e.label || c.$slots.label ? (l(), D(pe, {
|
|
5683
5697
|
key: 0,
|
|
5684
|
-
for: c.$attrs.id ||
|
|
5698
|
+
for: c.$attrs.id || d.value,
|
|
5685
5699
|
disabled: e.disabled,
|
|
5686
5700
|
required: e.required
|
|
5687
5701
|
}, {
|
|
@@ -5695,20 +5709,20 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5695
5709
|
R(qe, H({
|
|
5696
5710
|
disabled: e.disabled,
|
|
5697
5711
|
error: e.error,
|
|
5698
|
-
"hint-id":
|
|
5699
|
-
id: c.$attrs.id ||
|
|
5712
|
+
"hint-id": f(o),
|
|
5713
|
+
id: c.$attrs.id || d.value,
|
|
5700
5714
|
placeholder: e.placeholder,
|
|
5701
5715
|
required: e.required,
|
|
5702
5716
|
type: e.type,
|
|
5703
5717
|
value: e.value || e.modelValue,
|
|
5704
|
-
"onUpdate:modelValue":
|
|
5705
|
-
},
|
|
5706
|
-
|
|
5718
|
+
"onUpdate:modelValue": p[0] || (p[0] = (v) => c.$emit("update:modelValue", v))
|
|
5719
|
+
}, f(u)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
|
|
5720
|
+
r.value ? (l(), D(ze, {
|
|
5707
5721
|
key: 1,
|
|
5708
5722
|
error: e.error,
|
|
5709
5723
|
"error-msg": e.errorMsg,
|
|
5710
5724
|
hint: e.hint || s.value,
|
|
5711
|
-
"hint-id":
|
|
5725
|
+
"hint-id": f(o)
|
|
5712
5726
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
5713
5727
|
], 16));
|
|
5714
5728
|
}
|
|
@@ -5845,17 +5859,17 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5845
5859
|
"Escape",
|
|
5846
5860
|
"Home",
|
|
5847
5861
|
"Tab"
|
|
5848
|
-
], { filtered: u, remaining: s } = ye(["class", "style"]),
|
|
5862
|
+
], { filtered: u, remaining: s } = ye(["class", "style"]), r = C(null), d = C(1), c = C([]), p = C(null), [
|
|
5849
5863
|
v,
|
|
5850
5864
|
$,
|
|
5851
5865
|
O,
|
|
5852
5866
|
k
|
|
5853
|
-
] = re(4), y = C(!1), S = C(""),
|
|
5867
|
+
] = re(4), y = C(!1), S = C(""), b = C(""), M = C(!1), P = C(!1), B = C(!0);
|
|
5854
5868
|
n({
|
|
5855
5869
|
validationErr: M,
|
|
5856
|
-
validationErrMsg:
|
|
5870
|
+
validationErrMsg: b
|
|
5857
5871
|
});
|
|
5858
|
-
const g = m(() => S.value ? `+${
|
|
5872
|
+
const g = m(() => S.value ? `+${d.value}${S.value}` : ""), I = m(() => `Country code: ${d.value}. Click to change.`), E = m(() => B.value ? a.errorMsg || b.value : ""), N = m(() => a.error || M.value), G = m(() => a.hint || N.value && E.value), te = m(() => B.value && N.value);
|
|
5859
5873
|
Z(g, (Y) => {
|
|
5860
5874
|
o("update:modelValue", Y), ie(Y);
|
|
5861
5875
|
}), Z(() => a.modelValue, he), Oe(), ee(() => y.value = !0);
|
|
@@ -5864,11 +5878,11 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5864
5878
|
}
|
|
5865
5879
|
function $e() {
|
|
5866
5880
|
var Y;
|
|
5867
|
-
P.value && (P.value = !1, (Y =
|
|
5881
|
+
P.value && (P.value = !1, (Y = r.value) == null || Y.focus());
|
|
5868
5882
|
}
|
|
5869
5883
|
function ge(Y) {
|
|
5870
5884
|
var oe;
|
|
5871
|
-
|
|
5885
|
+
d.value = Y, P.value = !1, (oe = r.value) == null || oe.focus(), K(Y);
|
|
5872
5886
|
}
|
|
5873
5887
|
function Ie() {
|
|
5874
5888
|
a.deferValidation && (B.value = !0), o("input-blur");
|
|
@@ -5881,28 +5895,28 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5881
5895
|
!((le = (oe = Y.key) == null ? void 0 : oe.match) != null && le.call(oe, /[0-9]/)) && !i.includes(Y.key) && !Y.ctrlKey && !Y.metaKey && Y.preventDefault();
|
|
5882
5896
|
}
|
|
5883
5897
|
function Oe() {
|
|
5884
|
-
dt.initSourceData(), U(), K(
|
|
5898
|
+
dt.initSourceData(), U(), K(d.value), ie(g.value);
|
|
5885
5899
|
}
|
|
5886
5900
|
function U() {
|
|
5887
5901
|
var oe, le;
|
|
5888
5902
|
let Y = Ft(a.modelValue);
|
|
5889
|
-
Y.valid || Y.countryCode && ((le = (oe = a.modelValue) == null ? void 0 : oe.startsWith) != null && le.call(oe, "+")) ? (
|
|
5903
|
+
Y.valid || Y.countryCode && ((le = (oe = a.modelValue) == null ? void 0 : oe.startsWith) != null && le.call(oe, "+")) ? (d.value = Y.countryCode, S.value = Y.number.significant) : S.value = a.modelValue, c.value = dt.data.allCountries.map((Pe) => ({
|
|
5890
5904
|
...Pe,
|
|
5891
|
-
isSelected:
|
|
5905
|
+
isSelected: d.value === Pe
|
|
5892
5906
|
}));
|
|
5893
5907
|
}
|
|
5894
5908
|
function K(Y) {
|
|
5895
|
-
|
|
5909
|
+
p.value = dt.getCountryByCountryCode(Y);
|
|
5896
5910
|
}
|
|
5897
5911
|
function ie(Y) {
|
|
5898
|
-
M.value = Y ? !Ft(Y).valid : !1,
|
|
5912
|
+
M.value = Y ? !Ft(Y).valid : !1, b.value = M.value ? "Invalid phone number" : "";
|
|
5899
5913
|
}
|
|
5900
5914
|
return (Y, oe) => (l(), h("div", H({
|
|
5901
5915
|
class: "bs-input-phone",
|
|
5902
5916
|
"data-component": "bs-input-phone"
|
|
5903
|
-
},
|
|
5917
|
+
}, f(u)), [
|
|
5904
5918
|
R(pe, {
|
|
5905
|
-
for: Y.$attrs.id || e.inputId ||
|
|
5919
|
+
for: Y.$attrs.id || e.inputId || f(k),
|
|
5906
5920
|
required: e.required,
|
|
5907
5921
|
disabled: e.disabled,
|
|
5908
5922
|
class: ve({ "visually-hidden": e.hideLabel })
|
|
@@ -5922,10 +5936,10 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5922
5936
|
var le;
|
|
5923
5937
|
return [
|
|
5924
5938
|
w("button", {
|
|
5925
|
-
id:
|
|
5939
|
+
id: f(v),
|
|
5926
5940
|
ref_key: "countryCodesToggle",
|
|
5927
|
-
ref:
|
|
5928
|
-
"aria-controls":
|
|
5941
|
+
ref: r,
|
|
5942
|
+
"aria-controls": f($),
|
|
5929
5943
|
"aria-expanded": P.value,
|
|
5930
5944
|
"aria-haspopup": "listbox",
|
|
5931
5945
|
"aria-label": I.value,
|
|
@@ -5933,22 +5947,22 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5933
5947
|
type: "button",
|
|
5934
5948
|
onClick: oe[0] || (oe[0] = (Pe) => P.value = !P.value)
|
|
5935
5949
|
}, [
|
|
5936
|
-
w("span", null, V((le =
|
|
5937
|
-
w("span", null, "+" + V(
|
|
5938
|
-
e.disabled ? x("", !0) : (l(), D(
|
|
5950
|
+
w("span", null, V((le = p.value) == null ? void 0 : le.flag), 1),
|
|
5951
|
+
w("span", null, "+" + V(d.value), 1),
|
|
5952
|
+
e.disabled ? x("", !0) : (l(), D(f(sn), {
|
|
5939
5953
|
key: 0,
|
|
5940
5954
|
size: "sm"
|
|
5941
5955
|
}))
|
|
5942
5956
|
], 8, tl),
|
|
5943
5957
|
R(qe, H({
|
|
5944
|
-
id: Y.$attrs.id || e.inputId ||
|
|
5958
|
+
id: Y.$attrs.id || e.inputId || f(k),
|
|
5945
5959
|
disabled: e.disabled,
|
|
5946
|
-
"hint-id":
|
|
5960
|
+
"hint-id": f(O),
|
|
5947
5961
|
placeholder: e.placeholder,
|
|
5948
5962
|
value: S.value,
|
|
5949
5963
|
"data-autowidth": "",
|
|
5950
5964
|
type: "tel"
|
|
5951
|
-
},
|
|
5965
|
+
}, f(s), {
|
|
5952
5966
|
onInput: we,
|
|
5953
5967
|
onFocusout: Ie,
|
|
5954
5968
|
onKeydown: Ee
|
|
@@ -5961,17 +5975,17 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5961
5975
|
error: N.value,
|
|
5962
5976
|
"error-msg": E.value,
|
|
5963
5977
|
hint: e.hint,
|
|
5964
|
-
"hint-id":
|
|
5978
|
+
"hint-id": f(O)
|
|
5965
5979
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
5966
5980
|
[be, G.value]
|
|
5967
5981
|
]),
|
|
5968
5982
|
y.value ? (l(), h("div", nl, [
|
|
5969
5983
|
R(En, {
|
|
5970
|
-
"anchor-id":
|
|
5984
|
+
"anchor-id": f(v),
|
|
5971
5985
|
"helper-text": "Country Code",
|
|
5972
5986
|
label: "Country Code",
|
|
5973
|
-
"model-value":
|
|
5974
|
-
"options-id":
|
|
5987
|
+
"model-value": d.value,
|
|
5988
|
+
"options-id": f($),
|
|
5975
5989
|
preloaded: "",
|
|
5976
5990
|
shown: P.value,
|
|
5977
5991
|
width: "content",
|
|
@@ -6134,19 +6148,19 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6134
6148
|
emits: ["close", "open", "update:inputValue", "update:optionsValue"],
|
|
6135
6149
|
setup(e, { emit: n }) {
|
|
6136
6150
|
const t = e, a = n, o = C(!1), i = C(!1), [u, s] = re(2);
|
|
6137
|
-
let
|
|
6151
|
+
let r = [];
|
|
6138
6152
|
Z(() => t.inputValue, () => {
|
|
6139
|
-
i.value ? i.value = !1 :
|
|
6153
|
+
i.value ? i.value = !1 : b();
|
|
6140
6154
|
}), Z(o, () => {
|
|
6141
6155
|
o.value ? a("open") : a("close");
|
|
6142
6156
|
});
|
|
6143
|
-
const
|
|
6157
|
+
const d = m(() => t.typeaheadId || u.value), c = m(() => t.error && t.errorMsg || t.hint || void 0), p = m(() => `${d.value}-input-container`), v = m(() => `${d.value}-input`), $ = m(() => `${d.value}-options`), O = m(() => t.multiselect ? Array.isArray(t.optionsValue) ? t.optionsValue : [t.optionsValue] : t.optionsValue), k = m(() => {
|
|
6144
6158
|
if (o.value) {
|
|
6145
6159
|
let I = t.options;
|
|
6146
6160
|
const E = t.inputValue.toLowerCase(), N = t.filterType === "includes" ? "includes" : "startsWith";
|
|
6147
|
-
return t.inputValue.length >= t.characterThreshold && (I = y(I, E, N), I = I.slice(0, t.maxOptions), I = S(I, E, N),
|
|
6161
|
+
return t.inputValue.length >= t.characterThreshold && (I = y(I, E, N), I = I.slice(0, t.maxOptions), I = S(I, E, N), r = I), I;
|
|
6148
6162
|
} else
|
|
6149
|
-
return
|
|
6163
|
+
return r;
|
|
6150
6164
|
});
|
|
6151
6165
|
function y(I, E, N) {
|
|
6152
6166
|
return t.internalFiltering ? I.filter((G) => G.label.toLowerCase()[N](E)) : I;
|
|
@@ -6161,7 +6175,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6161
6175
|
return { ...G, labelHtml: te };
|
|
6162
6176
|
});
|
|
6163
6177
|
}
|
|
6164
|
-
function
|
|
6178
|
+
function b() {
|
|
6165
6179
|
t.showDropdownOnFocus || t.inputValue.length >= t.characterThreshold ? o.value = !0 : o.value = !1;
|
|
6166
6180
|
}
|
|
6167
6181
|
function M() {
|
|
@@ -6195,12 +6209,12 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6195
6209
|
_: 3
|
|
6196
6210
|
}, 8, ["for", "disabled", "required"])) : x("", !0),
|
|
6197
6211
|
w("div", {
|
|
6198
|
-
id:
|
|
6212
|
+
id: p.value,
|
|
6199
6213
|
class: "typeahead-search-wrapper"
|
|
6200
6214
|
}, [
|
|
6201
6215
|
R(On, H({
|
|
6202
6216
|
"aria-controls": $.value,
|
|
6203
|
-
"aria-describedby": c.value ?
|
|
6217
|
+
"aria-describedby": c.value ? f(s) : void 0,
|
|
6204
6218
|
"aria-expanded": o.value,
|
|
6205
6219
|
"aria-haspopup": "listbox",
|
|
6206
6220
|
autocomplete: "off",
|
|
@@ -6214,12 +6228,12 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6214
6228
|
value: e.inputValue
|
|
6215
6229
|
}, I.$attrs, {
|
|
6216
6230
|
onClear: M,
|
|
6217
|
-
onFocusin:
|
|
6231
|
+
onFocusin: b,
|
|
6218
6232
|
"onUpdate:modelValue": E[0] || (E[0] = (N) => a("update:inputValue", N))
|
|
6219
6233
|
}), null, 16, ["aria-controls", "aria-describedby", "aria-expanded", "disabled", "error", "hide-clear", "hide-search-icon", "input-id", "placeholder", "value"])
|
|
6220
6234
|
], 8, rl),
|
|
6221
6235
|
R(lt, {
|
|
6222
|
-
"anchor-id":
|
|
6236
|
+
"anchor-id": p.value,
|
|
6223
6237
|
breakout: e.breakout,
|
|
6224
6238
|
preloaded: !0,
|
|
6225
6239
|
shown: o.value,
|
|
@@ -6297,7 +6311,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6297
6311
|
error: e.error,
|
|
6298
6312
|
"error-msg": e.errorMsg,
|
|
6299
6313
|
hint: e.hint,
|
|
6300
|
-
"hint-id":
|
|
6314
|
+
"hint-id": f(s)
|
|
6301
6315
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
6302
6316
|
])
|
|
6303
6317
|
], 64));
|
|
@@ -6368,15 +6382,15 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6368
6382
|
}
|
|
6369
6383
|
return (u, s) => (l(), D(Ge, {
|
|
6370
6384
|
name: "bs-overlay",
|
|
6371
|
-
shown:
|
|
6385
|
+
shown: f(o),
|
|
6372
6386
|
preloaded: e.preloaded,
|
|
6373
|
-
onAfterEnter: s[0] || (s[0] = (
|
|
6374
|
-
onAfterLeave: s[1] || (s[1] = (
|
|
6387
|
+
onAfterEnter: s[0] || (s[0] = (r) => a("after-enter")),
|
|
6388
|
+
onAfterLeave: s[1] || (s[1] = (r) => a("after-leave"))
|
|
6375
6389
|
}, {
|
|
6376
6390
|
default: q(() => [
|
|
6377
6391
|
w("div", {
|
|
6378
6392
|
class: "bs-overlay",
|
|
6379
|
-
"data-shown":
|
|
6393
|
+
"data-shown": f(o)
|
|
6380
6394
|
}, null, 8, fl)
|
|
6381
6395
|
]),
|
|
6382
6396
|
_: 1
|
|
@@ -6403,13 +6417,13 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6403
6417
|
W(t, "enterControlled", "preloaded"), W(t, "enterTrigger", "shown"), W(t, "leaveTrigger", "shown");
|
|
6404
6418
|
const a = n, o = C(null);
|
|
6405
6419
|
let i = !1;
|
|
6406
|
-
const { transition: u } = We(t), [s] = re(), [
|
|
6420
|
+
const { transition: u } = We(t), [s] = re(), [r] = re(), d = et();
|
|
6407
6421
|
Et([o], () => k("backdrop-clicked-close")), Ae(["Escape"], () => k("escape-pressed-close"));
|
|
6408
|
-
const c = m(() => !!(t.title ||
|
|
6422
|
+
const c = m(() => !!(t.title || d.title)), p = m(() => !!(t.subtitle || d.subtitle)), v = m(() => !!d.progress), $ = m(() => !t.fullHeight && c.value), O = m(() => !t.fullHeight && !!d.footer);
|
|
6409
6423
|
function k(y, S = !0) {
|
|
6410
6424
|
var M;
|
|
6411
|
-
const
|
|
6412
|
-
i && !
|
|
6425
|
+
const b = S && ((M = o.value) == null ? void 0 : M.querySelector('[data-shown="true"]')) !== null;
|
|
6426
|
+
i && !b && (a("close", t.modalId), a(y, t.modalId));
|
|
6413
6427
|
}
|
|
6414
6428
|
return (y, S) => (l(), h(J, null, [
|
|
6415
6429
|
R(bl, {
|
|
@@ -6417,15 +6431,15 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6417
6431
|
"enter-trigger": y.enterTrigger,
|
|
6418
6432
|
"leave-trigger": y.leaveTrigger,
|
|
6419
6433
|
preloaded: y.preloaded,
|
|
6420
|
-
shown:
|
|
6434
|
+
shown: f(u)
|
|
6421
6435
|
}, null, 8, ["enter-controlled", "enter-trigger", "leave-trigger", "preloaded", "shown"]),
|
|
6422
6436
|
R(Ge, {
|
|
6423
6437
|
name: "bs-modal",
|
|
6424
6438
|
preloaded: y.preloaded,
|
|
6425
|
-
shown:
|
|
6426
|
-
onAfterEnter: S[2] || (S[2] = (
|
|
6427
|
-
onAfterLeave: S[3] || (S[3] = (
|
|
6428
|
-
onEnter: S[4] || (S[4] = (
|
|
6439
|
+
shown: f(u),
|
|
6440
|
+
onAfterEnter: S[2] || (S[2] = (b) => a("after-enter")),
|
|
6441
|
+
onAfterLeave: S[3] || (S[3] = (b) => a("after-leave")),
|
|
6442
|
+
onEnter: S[4] || (S[4] = (b) => Hn(i) ? i.value = !0 : i = !0)
|
|
6429
6443
|
}, {
|
|
6430
6444
|
default: q(() => [
|
|
6431
6445
|
w("div", H({
|
|
@@ -6433,7 +6447,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6433
6447
|
id: y.modalId,
|
|
6434
6448
|
ref_key: "modalRef",
|
|
6435
6449
|
ref: o,
|
|
6436
|
-
"aria-labelledby": y.title && !y.$attrs["aria-label"] ?
|
|
6450
|
+
"aria-labelledby": y.title && !y.$attrs["aria-label"] ? f(s) : void 0,
|
|
6437
6451
|
"aria-modal": "true",
|
|
6438
6452
|
"data-body-background-contrast": y.bodyBackgroundContrast,
|
|
6439
6453
|
"data-component": "bs-modal",
|
|
@@ -6441,11 +6455,11 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6441
6455
|
"data-full-height": y.fullHeight,
|
|
6442
6456
|
"data-full-width": y.fullWidth,
|
|
6443
6457
|
"data-header-border": y.headerBorder,
|
|
6444
|
-
"data-shown":
|
|
6458
|
+
"data-shown": f(u),
|
|
6445
6459
|
"data-size": y.size,
|
|
6446
6460
|
role: y.alert ? "alertdialog" : "dialog"
|
|
6447
6461
|
}, y.$attrs), [
|
|
6448
|
-
R(Ii, { active:
|
|
6462
|
+
R(Ii, { active: f(u) }, {
|
|
6449
6463
|
default: q(() => [
|
|
6450
6464
|
$.value ? (l(), h("header", vl, [
|
|
6451
6465
|
w("div", ml, [
|
|
@@ -6453,7 +6467,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6453
6467
|
y.title ? (l(), h("span", {
|
|
6454
6468
|
key: 0,
|
|
6455
6469
|
class: "bs-modal-title",
|
|
6456
|
-
id:
|
|
6470
|
+
id: f(s)
|
|
6457
6471
|
}, V(y.title), 9, yl)) : x("", !0)
|
|
6458
6472
|
]) : x("", !0),
|
|
6459
6473
|
y.closeButton ? (l(), h("button", {
|
|
@@ -6462,14 +6476,14 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6462
6476
|
"aria-label": "Close Modal",
|
|
6463
6477
|
title: "Close Modal",
|
|
6464
6478
|
type: "button",
|
|
6465
|
-
onClick: S[0] || (S[0] = (
|
|
6479
|
+
onClick: S[0] || (S[0] = (b) => k("x-clicked-close", !1))
|
|
6466
6480
|
}, [
|
|
6467
|
-
R(
|
|
6481
|
+
R(f(ke))
|
|
6468
6482
|
])) : x("", !0)
|
|
6469
6483
|
]),
|
|
6470
|
-
|
|
6484
|
+
p.value ? (l(), h("div", gl, [
|
|
6471
6485
|
z(y.$slots, "subtitle", {}, () => [
|
|
6472
|
-
w("span", { id:
|
|
6486
|
+
w("span", { id: f(r) }, V(y.subtitle), 9, wl)
|
|
6473
6487
|
])
|
|
6474
6488
|
])) : x("", !0),
|
|
6475
6489
|
v.value ? (l(), h("div", kl, [
|
|
@@ -6482,9 +6496,9 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6482
6496
|
"aria-label": "Close Modal",
|
|
6483
6497
|
title: "Close Modal",
|
|
6484
6498
|
type: "button",
|
|
6485
|
-
onClick: S[1] || (S[1] = (
|
|
6499
|
+
onClick: S[1] || (S[1] = (b) => k("x-clicked-close", !1))
|
|
6486
6500
|
}, [
|
|
6487
|
-
R(
|
|
6501
|
+
R(f(ke))
|
|
6488
6502
|
])) : x("", !0),
|
|
6489
6503
|
w("div", Sl, [
|
|
6490
6504
|
z(y.$slots, "default")
|
|
@@ -6613,10 +6627,10 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6613
6627
|
if (t.variant === "base")
|
|
6614
6628
|
return t.pageCount;
|
|
6615
6629
|
}), s = m(() => t.variant === "base" ? t.centerDisplay === "text" ? "group" : void 0 : t.variant);
|
|
6616
|
-
function
|
|
6630
|
+
function r() {
|
|
6617
6631
|
i.value = 1;
|
|
6618
6632
|
}
|
|
6619
|
-
function
|
|
6633
|
+
function d() {
|
|
6620
6634
|
i.value = Math.max(i.value - 1, 1);
|
|
6621
6635
|
}
|
|
6622
6636
|
function c() {
|
|
@@ -6625,16 +6639,16 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6625
6639
|
u.value
|
|
6626
6640
|
);
|
|
6627
6641
|
}
|
|
6628
|
-
function
|
|
6642
|
+
function p() {
|
|
6629
6643
|
i.value = u.value;
|
|
6630
6644
|
}
|
|
6631
6645
|
const v = m(() => {
|
|
6632
6646
|
if (t.pageCount <= t.pageRange)
|
|
6633
6647
|
return [...Array(t.pageCount + 1).keys()].slice(1);
|
|
6634
6648
|
const y = [1], S = (t.pageRange - 1) / 2;
|
|
6635
|
-
let
|
|
6636
|
-
|
|
6637
|
-
for (let P =
|
|
6649
|
+
let b = i.value - S, M = i.value + S;
|
|
6650
|
+
b < 1 && (M += 1 - b, b = 1), M > t.pageCount && (b -= M - t.pageCount, M = t.pageCount), b = Math.max(b, 2), M = Math.min(M, t.pageCount - 1), b > 2 && y.push(t.breakText);
|
|
6651
|
+
for (let P = b; P <= M; P++)
|
|
6638
6652
|
y.push(P);
|
|
6639
6653
|
return M < t.pageCount - 1 && y.push(t.breakText), y.push(t.pageCount), y;
|
|
6640
6654
|
}), $ = m(() => `${t.centerLabel ?? "Page"} ${i.value} of ${u.value}`), O = m(() => {
|
|
@@ -6655,9 +6669,9 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6655
6669
|
"aria-label": e.firstPageText ? void 0 : "First Page",
|
|
6656
6670
|
title: e.firstPageText,
|
|
6657
6671
|
disabled: i.value === 1,
|
|
6658
|
-
onClick:
|
|
6672
|
+
onClick: r
|
|
6659
6673
|
}, [
|
|
6660
|
-
R(
|
|
6674
|
+
R(f(Zn)),
|
|
6661
6675
|
e.firstPageText ? (l(), h("span", Cl, V(e.firstPageText), 1)) : x("", !0)
|
|
6662
6676
|
], 10, Tl)) : x("", !0),
|
|
6663
6677
|
w("button", {
|
|
@@ -6666,34 +6680,34 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6666
6680
|
"aria-label": e.prevPageText ? void 0 : "Previous Page",
|
|
6667
6681
|
title: e.prevPageText,
|
|
6668
6682
|
disabled: i.value === 1,
|
|
6669
|
-
onClick:
|
|
6683
|
+
onClick: d
|
|
6670
6684
|
}, [
|
|
6671
|
-
R(
|
|
6685
|
+
R(f(nt)),
|
|
6672
6686
|
e.prevPageText ? (l(), h("span", Ol, V(e.prevPageText), 1)) : x("", !0)
|
|
6673
6687
|
], 10, Dl)
|
|
6674
6688
|
])) : x("", !0),
|
|
6675
6689
|
e.variant === "base" && e.centerDisplay === "numbers" ? (l(), h("div", xl, [
|
|
6676
|
-
(l(!0), h(J, null, de(v.value, (
|
|
6677
|
-
key: `page-${
|
|
6690
|
+
(l(!0), h(J, null, de(v.value, (b) => (l(), h("button", {
|
|
6691
|
+
key: `page-${b}-button`,
|
|
6678
6692
|
type: "button",
|
|
6679
|
-
title: `Page ${
|
|
6680
|
-
disabled: i.value ===
|
|
6681
|
-
"data-selected":
|
|
6682
|
-
onClick: (M) => i.value =
|
|
6683
|
-
}, V(
|
|
6693
|
+
title: `Page ${b}`,
|
|
6694
|
+
disabled: i.value === b || e.breakText === b,
|
|
6695
|
+
"data-selected": b === i.value,
|
|
6696
|
+
onClick: (M) => i.value = b
|
|
6697
|
+
}, V(b), 9, Al))), 128))
|
|
6684
6698
|
])) : x("", !0),
|
|
6685
6699
|
t.variant === "base" && t.centerDisplay === "text" ? (l(), h("span", zl, V($.value), 1)) : x("", !0),
|
|
6686
6700
|
t.variant === "group" ? (l(), h("span", El, V(O.value), 1)) : x("", !0),
|
|
6687
6701
|
t.variant === "results" ? (l(), h(J, { key: 4 }, [
|
|
6688
6702
|
S[0] || (S[0] = w("span", null, "Results Per Page:", -1)),
|
|
6689
6703
|
w("div", Pl, [
|
|
6690
|
-
(l(!0), h(J, null, de(k.value, (
|
|
6704
|
+
(l(!0), h(J, null, de(k.value, (b) => (l(), h("button", {
|
|
6691
6705
|
type: "button",
|
|
6692
|
-
key: `results-${
|
|
6693
|
-
"data-selected":
|
|
6694
|
-
disabled: i.value ===
|
|
6695
|
-
onClick: (M) => i.value =
|
|
6696
|
-
}, V(
|
|
6706
|
+
key: `results-${b}`,
|
|
6707
|
+
"data-selected": b === i.value,
|
|
6708
|
+
disabled: i.value === b || e.breakText === b,
|
|
6709
|
+
onClick: (M) => i.value = b
|
|
6710
|
+
}, V(b), 9, Ll))), 128))
|
|
6697
6711
|
])
|
|
6698
6712
|
], 64)) : x("", !0),
|
|
6699
6713
|
e.variant === "base" || e.variant === "group" ? (l(), h("div", Vl, [
|
|
@@ -6706,7 +6720,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6706
6720
|
onClick: c
|
|
6707
6721
|
}, [
|
|
6708
6722
|
e.nextPageText ? (l(), h("span", Nl, V(e.nextPageText), 1)) : x("", !0),
|
|
6709
|
-
R(
|
|
6723
|
+
R(f(at))
|
|
6710
6724
|
], 10, Ml),
|
|
6711
6725
|
e.showFirstLastButtons ? (l(), h("button", {
|
|
6712
6726
|
key: 0,
|
|
@@ -6715,10 +6729,10 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6715
6729
|
"aria-label": e.lastPageText ? void 0 : "Last Page",
|
|
6716
6730
|
title: e.lastPageText,
|
|
6717
6731
|
disabled: i.value === u.value,
|
|
6718
|
-
onClick:
|
|
6732
|
+
onClick: p
|
|
6719
6733
|
}, [
|
|
6720
6734
|
e.lastPageText ? (l(), h("span", Rl, V(e.lastPageText), 1)) : x("", !0),
|
|
6721
|
-
R(
|
|
6735
|
+
R(f(Qn))
|
|
6722
6736
|
], 10, ql)) : x("", !0)
|
|
6723
6737
|
])) : x("", !0)
|
|
6724
6738
|
], 8, Il));
|
|
@@ -6749,7 +6763,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6749
6763
|
const n = e;
|
|
6750
6764
|
W(n, "href", "linkTo");
|
|
6751
6765
|
const { onLinkClick: t } = it(n), a = Se(), { rootTag: o, attrsToBind: i, btnRef: u } = Ke(n, a, "span");
|
|
6752
|
-
return (s,
|
|
6766
|
+
return (s, r) => (l(), D(ae(f(o)), H({
|
|
6753
6767
|
ref_key: "btnRef",
|
|
6754
6768
|
ref: u,
|
|
6755
6769
|
class: "bs-pill",
|
|
@@ -6758,7 +6772,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6758
6772
|
"data-status": e.status || void 0,
|
|
6759
6773
|
"data-variant": e.variant || void 0,
|
|
6760
6774
|
disabled: e.disabled
|
|
6761
|
-
},
|
|
6775
|
+
}, f(i), { onClick: f(t) }), {
|
|
6762
6776
|
default: q(() => [
|
|
6763
6777
|
w("span", { "data-truncate": e.truncate }, [
|
|
6764
6778
|
z(s.$slots, "default")
|
|
@@ -6809,7 +6823,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6809
6823
|
}, [
|
|
6810
6824
|
z(o.$slots, "action", {}, () => [
|
|
6811
6825
|
e.actionIcon ? (l(), h(J, { key: 0 }, [
|
|
6812
|
-
typeof e.actionIcon == "string" ? (l(), D(
|
|
6826
|
+
typeof e.actionIcon == "string" ? (l(), D(f(ce), {
|
|
6813
6827
|
key: 0,
|
|
6814
6828
|
name: e.actionIcon,
|
|
6815
6829
|
class: "bs-icon"
|
|
@@ -6828,7 +6842,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6828
6842
|
e.miscMeta || o.$slots.misc ? (l(), h("span", Gl, [
|
|
6829
6843
|
z(o.$slots, "misc", {}, () => [
|
|
6830
6844
|
e.miscMetaIcon ? (l(), h(J, { key: 0 }, [
|
|
6831
|
-
typeof e.miscMetaIcon == "string" ? (l(), D(
|
|
6845
|
+
typeof e.miscMetaIcon == "string" ? (l(), D(f(ce), {
|
|
6832
6846
|
key: 0,
|
|
6833
6847
|
name: e.miscMetaIcon,
|
|
6834
6848
|
class: "bs-icon"
|
|
@@ -6849,38 +6863,38 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6849
6863
|
setup(e, { emit: n }) {
|
|
6850
6864
|
const t = e;
|
|
6851
6865
|
W(t, "href", "linkTo");
|
|
6852
|
-
const a = n, o = Se(), { onLinkClick: i } = it(t), { rootTag: u, attrsToBind: s, btnRef:
|
|
6853
|
-
return (
|
|
6866
|
+
const a = n, o = Se(), { onLinkClick: i } = it(t), { rootTag: u, attrsToBind: s, btnRef: r } = Ke(t, o, "div");
|
|
6867
|
+
return (d, c) => (l(), D(ae(f(u)), H({
|
|
6854
6868
|
ref_key: "btnRef",
|
|
6855
|
-
ref:
|
|
6869
|
+
ref: r,
|
|
6856
6870
|
class: "bs-profile",
|
|
6857
6871
|
"data-component": "bs-profile",
|
|
6858
|
-
"data-layout":
|
|
6859
|
-
},
|
|
6872
|
+
"data-layout": d.layout
|
|
6873
|
+
}, f(s), { onClick: f(i) }), {
|
|
6860
6874
|
default: q(() => [
|
|
6861
6875
|
R(Dn, {
|
|
6862
|
-
src:
|
|
6863
|
-
size:
|
|
6864
|
-
initials:
|
|
6865
|
-
"profile-name":
|
|
6876
|
+
src: d.imageSrc,
|
|
6877
|
+
size: d.imageSize,
|
|
6878
|
+
initials: d.initials,
|
|
6879
|
+
"profile-name": d.profileName,
|
|
6866
6880
|
"use-alt-text": !1
|
|
6867
6881
|
}, null, 8, ["src", "size", "initials", "profile-name"]),
|
|
6868
6882
|
R(Yl, {
|
|
6869
|
-
"profile-name":
|
|
6870
|
-
company:
|
|
6871
|
-
"job-title":
|
|
6872
|
-
email:
|
|
6873
|
-
action:
|
|
6874
|
-
"action-icon":
|
|
6875
|
-
"misc-meta":
|
|
6876
|
-
"misc-meta-icon":
|
|
6877
|
-
onActionToggled: c[0] || (c[0] = (
|
|
6883
|
+
"profile-name": d.profileName,
|
|
6884
|
+
company: d.company,
|
|
6885
|
+
"job-title": d.jobTitle,
|
|
6886
|
+
email: d.email,
|
|
6887
|
+
action: d.action,
|
|
6888
|
+
"action-icon": d.actionIcon,
|
|
6889
|
+
"misc-meta": d.miscMeta,
|
|
6890
|
+
"misc-meta-icon": d.miscMetaIcon,
|
|
6891
|
+
onActionToggled: c[0] || (c[0] = (p) => a("action-toggled"))
|
|
6878
6892
|
}, {
|
|
6879
6893
|
action: q(() => [
|
|
6880
|
-
z(
|
|
6894
|
+
z(d.$slots, "action")
|
|
6881
6895
|
]),
|
|
6882
6896
|
misc: q(() => [
|
|
6883
|
-
z(
|
|
6897
|
+
z(d.$slots, "misc")
|
|
6884
6898
|
]),
|
|
6885
6899
|
_: 3
|
|
6886
6900
|
}, 8, ["profile-name", "company", "job-title", "email", "action", "action-icon", "misc-meta", "misc-meta-icon"])
|
|
@@ -6945,20 +6959,20 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
6945
6959
|
const n = e, { progressStep: t, progressText: a, getStatus: o } = Ln(n);
|
|
6946
6960
|
return (i, u) => (l(), h("div", {
|
|
6947
6961
|
"aria-valuemax": e.steps.length,
|
|
6948
|
-
"aria-valuenow":
|
|
6949
|
-
"aria-valuetext":
|
|
6962
|
+
"aria-valuenow": f(t),
|
|
6963
|
+
"aria-valuetext": f(a),
|
|
6950
6964
|
class: "bs-progress-bar",
|
|
6951
6965
|
"data-component": "bs-progress-bar",
|
|
6952
6966
|
role: "progressbar"
|
|
6953
6967
|
}, [
|
|
6954
|
-
(l(!0), h(J, null, de(e.steps, (s,
|
|
6968
|
+
(l(!0), h(J, null, de(e.steps, (s, r) => (l(), h("div", {
|
|
6955
6969
|
class: "bs-step-item",
|
|
6956
|
-
"data-status":
|
|
6970
|
+
"data-status": f(o)(s.status, r),
|
|
6957
6971
|
"data-variant": "progress",
|
|
6958
6972
|
key: s.id || s.label,
|
|
6959
6973
|
role: "status"
|
|
6960
6974
|
}, [
|
|
6961
|
-
w("span", null, V(s.label || s) + " : " + V(
|
|
6975
|
+
w("span", null, V(s.label || s) + " : " + V(f(o)(s.status, r) || "not started"), 1)
|
|
6962
6976
|
], 8, Zl))), 128))
|
|
6963
6977
|
], 8, Xl));
|
|
6964
6978
|
}
|
|
@@ -7007,32 +7021,32 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7007
7021
|
const t = e;
|
|
7008
7022
|
W(t, "passAttrs", void 0, "Use Vue's native fallthrough attributes instead.");
|
|
7009
7023
|
const [a] = re(), { filtered: o, remaining: i } = ye(["class", "style"]), u = m(() => t.inputId || a.value), s = m(() => t.checked || t.modelValue && t.modelValue === t.value);
|
|
7010
|
-
return (
|
|
7024
|
+
return (r, d) => (l(), h("div", H({
|
|
7011
7025
|
class: "bs-boolean",
|
|
7012
7026
|
"data-component": "bs-radio",
|
|
7013
7027
|
"data-disabled": e.disabled,
|
|
7014
7028
|
"data-error": e.error,
|
|
7015
7029
|
"data-size": e.size
|
|
7016
|
-
},
|
|
7030
|
+
}, f(o)), [
|
|
7017
7031
|
w("input", H({
|
|
7018
7032
|
checked: s.value,
|
|
7019
7033
|
disabled: e.disabled,
|
|
7020
|
-
id:
|
|
7034
|
+
id: r.$attrs.id || u.value,
|
|
7021
7035
|
required: e.required,
|
|
7022
7036
|
type: "radio",
|
|
7023
7037
|
value: e.value,
|
|
7024
7038
|
"data-error": e.error
|
|
7025
|
-
},
|
|
7026
|
-
onChange:
|
|
7039
|
+
}, f(i), {
|
|
7040
|
+
onChange: d[0] || (d[0] = (c) => r.$emit("update:modelValue", c.target.value))
|
|
7027
7041
|
}), null, 16, Jl),
|
|
7028
|
-
e.label ||
|
|
7042
|
+
e.label || r.$slots.label ? (l(), D(pe, {
|
|
7029
7043
|
key: 0,
|
|
7030
|
-
for:
|
|
7044
|
+
for: r.$attrs.id || u.value,
|
|
7031
7045
|
disabled: e.disabled,
|
|
7032
7046
|
required: e.required
|
|
7033
7047
|
}, {
|
|
7034
7048
|
default: q(() => [
|
|
7035
|
-
z(
|
|
7049
|
+
z(r.$slots, "label", {}, () => [
|
|
7036
7050
|
_(V(e.label), 1)
|
|
7037
7051
|
])
|
|
7038
7052
|
]),
|
|
@@ -7112,14 +7126,14 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7112
7126
|
const n = e;
|
|
7113
7127
|
W(n, "hints", void 0, "Use 'hint' and/or 'errorMsg. instead."), W(n, "passAttrs", void 0, "Use Vue's native fallthrough attributes instead.");
|
|
7114
7128
|
const [t, a] = re(2), { filtered: o, remaining: i } = ye(["class", "style"]), u = m(() => {
|
|
7115
|
-
var c,
|
|
7116
|
-
return ((
|
|
7129
|
+
var c, p;
|
|
7130
|
+
return ((p = (c = n.hints) == null ? void 0 : c.join) == null ? void 0 : p.call(c, `
|
|
7117
7131
|
`)) || n.hints;
|
|
7118
|
-
}), s = m(() => n.error && n.errorMsg || n.hint || u.value || void 0),
|
|
7119
|
-
return (c,
|
|
7132
|
+
}), s = m(() => n.error && n.errorMsg || n.hint || u.value || void 0), r = m(() => n.inputId || t.value), d = m(() => n.value || n.modelValue);
|
|
7133
|
+
return (c, p) => (l(), h("div", H({ "data-component": "bs-select-field" }, f(o)), [
|
|
7120
7134
|
e.label || c.$slots.label ? (l(), D(pe, {
|
|
7121
7135
|
key: 0,
|
|
7122
|
-
for: c.$attrs.id ||
|
|
7136
|
+
for: c.$attrs.id || r.value,
|
|
7123
7137
|
disabled: e.disabled,
|
|
7124
7138
|
required: e.required
|
|
7125
7139
|
}, {
|
|
@@ -7133,22 +7147,22 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7133
7147
|
R(es, H({
|
|
7134
7148
|
disabled: e.disabled,
|
|
7135
7149
|
error: e.error,
|
|
7136
|
-
"hint-id":
|
|
7137
|
-
"input-id": c.$attrs.id ||
|
|
7150
|
+
"hint-id": f(a),
|
|
7151
|
+
"input-id": c.$attrs.id || r.value,
|
|
7138
7152
|
required: e.required,
|
|
7139
|
-
value:
|
|
7140
|
-
"onUpdate:modelValue":
|
|
7141
|
-
},
|
|
7153
|
+
value: d.value,
|
|
7154
|
+
"onUpdate:modelValue": p[0] || (p[0] = (v) => c.$emit("update:modelValue", v))
|
|
7155
|
+
}, f(i)), {
|
|
7142
7156
|
default: q(() => [
|
|
7143
7157
|
w("option", {
|
|
7144
|
-
selected: !
|
|
7158
|
+
selected: !d.value,
|
|
7145
7159
|
value: "",
|
|
7146
|
-
disabled: !!
|
|
7160
|
+
disabled: !!d.value
|
|
7147
7161
|
}, V(e.disabled ? "" : e.placeholder), 9, ts),
|
|
7148
7162
|
(l(!0), h(J, null, de(e.data, (v) => (l(), h("option", {
|
|
7149
7163
|
key: v.value,
|
|
7150
7164
|
disabled: v.disabled,
|
|
7151
|
-
selected:
|
|
7165
|
+
selected: d.value === v.value,
|
|
7152
7166
|
value: v.value
|
|
7153
7167
|
}, V(v.label), 9, ns))), 128))
|
|
7154
7168
|
]),
|
|
@@ -7160,7 +7174,7 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7160
7174
|
error: e.error,
|
|
7161
7175
|
"error-msg": e.errorMsg,
|
|
7162
7176
|
hint: e.hint || u.value,
|
|
7163
|
-
"hint-id":
|
|
7177
|
+
"hint-id": f(a)
|
|
7164
7178
|
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
7165
7179
|
], 16));
|
|
7166
7180
|
}
|
|
@@ -7244,7 +7258,7 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7244
7258
|
},
|
|
7245
7259
|
emits: ["update:model-value"],
|
|
7246
7260
|
setup(e, { emit: n }) {
|
|
7247
|
-
const t = e, a = n, [o, i] = re(2), u = Se(), s = C(!1),
|
|
7261
|
+
const t = e, a = n, [o, i] = re(2), u = Se(), s = C(!1), r = m(() => t.selectId || u.id || o.value), d = m(() => t.optionsId || i.value), c = m(() => {
|
|
7248
7262
|
if (t.modelValue) {
|
|
7249
7263
|
const v = t.options.find(($) => {
|
|
7250
7264
|
var O, k;
|
|
@@ -7254,12 +7268,12 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7254
7268
|
return v.label;
|
|
7255
7269
|
}
|
|
7256
7270
|
return t.placeholder;
|
|
7257
|
-
}),
|
|
7271
|
+
}), p = m(() => c.value === t.placeholder);
|
|
7258
7272
|
return (v, $) => (l(), h("div", null, [
|
|
7259
7273
|
e.label || v.$slots.label ? (l(), D(pe, {
|
|
7260
7274
|
key: 0,
|
|
7261
7275
|
disabled: e.disabled,
|
|
7262
|
-
for:
|
|
7276
|
+
for: r.value,
|
|
7263
7277
|
required: e.required
|
|
7264
7278
|
}, {
|
|
7265
7279
|
default: q(() => [
|
|
@@ -7277,7 +7291,7 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7277
7291
|
value: e.modelValue
|
|
7278
7292
|
}, null, 8, as)) : x("", !0),
|
|
7279
7293
|
R(An, {
|
|
7280
|
-
"anchor-id":
|
|
7294
|
+
"anchor-id": r.value,
|
|
7281
7295
|
breakout: e.breakout,
|
|
7282
7296
|
"dropdown-position": e.dropdownPosition,
|
|
7283
7297
|
"dropdown-width": e.dropdownWidth,
|
|
@@ -7285,37 +7299,37 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7285
7299
|
"helper-text": e.helperText,
|
|
7286
7300
|
multiselect: !1,
|
|
7287
7301
|
open: s.value,
|
|
7288
|
-
"options-id":
|
|
7302
|
+
"options-id": d.value,
|
|
7289
7303
|
options: e.options,
|
|
7290
7304
|
"selected-option": e.modelValue,
|
|
7291
|
-
"toggle-id":
|
|
7305
|
+
"toggle-id": r.value,
|
|
7292
7306
|
"value-id-key": e.valueIdKey,
|
|
7293
7307
|
onClose: $[1] || ($[1] = (O) => s.value = !1),
|
|
7294
7308
|
"onUpdate:selectedOption": $[2] || ($[2] = (O) => a("update:model-value", O))
|
|
7295
7309
|
}, {
|
|
7296
7310
|
toggle: q(() => [
|
|
7297
7311
|
w("button", H({
|
|
7298
|
-
"aria-controls":
|
|
7312
|
+
"aria-controls": d.value,
|
|
7299
7313
|
"aria-describedby": e.hintId,
|
|
7300
7314
|
"aria-expanded": s.value,
|
|
7301
7315
|
"aria-haspopup": "listbox",
|
|
7302
7316
|
"aria-invalid": e.error,
|
|
7303
7317
|
"aria-label": `${s.value ? "Close" : "Open"} Combobox`,
|
|
7304
7318
|
class: "bs-select",
|
|
7305
|
-
"data-cy":
|
|
7319
|
+
"data-cy": p.value ? "ignore" : void 0,
|
|
7306
7320
|
"data-disabled": e.disabled,
|
|
7307
7321
|
"data-error": e.error,
|
|
7308
7322
|
"data-open": s.value,
|
|
7309
|
-
"data-placeholder":
|
|
7323
|
+
"data-placeholder": p.value,
|
|
7310
7324
|
"data-required": e.required,
|
|
7311
7325
|
disabled: e.disabled,
|
|
7312
|
-
id:
|
|
7326
|
+
id: r.value,
|
|
7313
7327
|
role: "combobox"
|
|
7314
7328
|
}, v.$attrs, {
|
|
7315
7329
|
onClick: $[0] || ($[0] = Ce((O) => s.value = !s.value, ["prevent"]))
|
|
7316
7330
|
}), [
|
|
7317
7331
|
w("span", null, V(c.value), 1),
|
|
7318
|
-
e.disabled ? x("", !0) : (l(), D(
|
|
7332
|
+
e.disabled ? x("", !0) : (l(), D(f(Ve), {
|
|
7319
7333
|
key: 0,
|
|
7320
7334
|
size: "md"
|
|
7321
7335
|
}))
|
|
@@ -7367,21 +7381,21 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7367
7381
|
setup(e, { emit: n }) {
|
|
7368
7382
|
const t = e;
|
|
7369
7383
|
W(t, "passAttrs", void 0, "Use Vue's native fallthrough attributes instead.");
|
|
7370
|
-
const a = n, [o] = re(), { filtered: i, remaining: u } = ye(["class", "style"]), s = m(() => t.inputId || o.value),
|
|
7371
|
-
return (
|
|
7384
|
+
const a = n, [o] = re(), { filtered: i, remaining: u } = ye(["class", "style"]), s = m(() => t.inputId || o.value), r = m(() => t.checked || t.modelValue);
|
|
7385
|
+
return (d, c) => (l(), h("div", H({
|
|
7372
7386
|
class: "bs-boolean",
|
|
7373
7387
|
"data-component": "bs-switch",
|
|
7374
7388
|
"data-disabled": e.disabled,
|
|
7375
7389
|
"data-size": e.size
|
|
7376
|
-
},
|
|
7377
|
-
e.label ||
|
|
7390
|
+
}, f(i)), [
|
|
7391
|
+
e.label || d.$slots.label ? (l(), D(pe, {
|
|
7378
7392
|
key: 0,
|
|
7379
|
-
for:
|
|
7393
|
+
for: d.$attrs.id || s.value,
|
|
7380
7394
|
disabled: e.disabled,
|
|
7381
7395
|
hide: e.hideLabel
|
|
7382
7396
|
}, {
|
|
7383
7397
|
default: q(() => [
|
|
7384
|
-
z(
|
|
7398
|
+
z(d.$slots, "label", {}, () => [
|
|
7385
7399
|
_(V(e.label), 1)
|
|
7386
7400
|
])
|
|
7387
7401
|
]),
|
|
@@ -7393,12 +7407,12 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7393
7407
|
"data-size": e.size
|
|
7394
7408
|
}, [
|
|
7395
7409
|
w("input", H({
|
|
7396
|
-
checked:
|
|
7410
|
+
checked: r.value,
|
|
7397
7411
|
disabled: e.disabled,
|
|
7398
|
-
id:
|
|
7412
|
+
id: d.$attrs.id || s.value,
|
|
7399
7413
|
type: "checkbox"
|
|
7400
|
-
},
|
|
7401
|
-
onChange: c[0] || (c[0] = (
|
|
7414
|
+
}, f(u), {
|
|
7415
|
+
onChange: c[0] || (c[0] = (p) => a("update:modelValue", p.target.checked))
|
|
7402
7416
|
}), null, 16, ss),
|
|
7403
7417
|
w("span", {
|
|
7404
7418
|
"aria-hidden": "true",
|
|
@@ -7426,16 +7440,16 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7426
7440
|
emits: ["tabClick"],
|
|
7427
7441
|
setup(e, { emit: n }) {
|
|
7428
7442
|
const t = e, a = Se(), o = C(), i = m(() => t.activeTabId === a.id), u = m(() => t.panelId || `${a.id}-panel`);
|
|
7429
|
-
function s(
|
|
7430
|
-
(
|
|
7443
|
+
function s(d) {
|
|
7444
|
+
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), d.stopPropagation(), r());
|
|
7431
7445
|
}
|
|
7432
|
-
function
|
|
7446
|
+
function r() {
|
|
7433
7447
|
if (t.activeTabId !== a.id) {
|
|
7434
|
-
const
|
|
7435
|
-
o.value.dispatchEvent(
|
|
7448
|
+
const d = new CustomEvent("tabClick", { detail: a.id, bubbles: !0 });
|
|
7449
|
+
o.value.dispatchEvent(d);
|
|
7436
7450
|
}
|
|
7437
7451
|
}
|
|
7438
|
-
return (
|
|
7452
|
+
return (d, c) => (l(), h("div", {
|
|
7439
7453
|
"aria-controls": u.value,
|
|
7440
7454
|
"aria-selected": i.value ? "true" : "false",
|
|
7441
7455
|
"data-hidden": e.hidden || void 0,
|
|
@@ -7444,10 +7458,10 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7444
7458
|
tabindex: "0",
|
|
7445
7459
|
ref_key: "hostEl",
|
|
7446
7460
|
ref: o,
|
|
7447
|
-
onClick:
|
|
7461
|
+
onClick: r,
|
|
7448
7462
|
onKeydown: s
|
|
7449
7463
|
}, [
|
|
7450
|
-
z(
|
|
7464
|
+
z(d.$slots, "default")
|
|
7451
7465
|
], 40, ds));
|
|
7452
7466
|
}
|
|
7453
7467
|
}, us = ["id", "data-resizing"], cs = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], ps = 73, fs = 20, ut = 16, Jr = {
|
|
@@ -7461,12 +7475,12 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7461
7475
|
},
|
|
7462
7476
|
emits: ["tabChange", "update:modelValue"],
|
|
7463
7477
|
setup(e, { emit: n }) {
|
|
7464
|
-
const t = e, a = n, o = C(!1), i = C(!1), u = C([]), s = C(!1),
|
|
7478
|
+
const t = e, a = n, o = C(!1), i = C(!1), u = C([]), s = C(!1), r = C(!1), d = C(), c = C(), p = C([]), v = C(!1), $ = C([]), O = C(), k = C([]), y = C(), S = C(), [b, M] = re(2);
|
|
7465
7479
|
let P;
|
|
7466
7480
|
const B = m(() => t.activeTabId ? $.value.findIndex((A) => A.id === t.activeTabId) : 0), g = m(() => u.value.some((A) => A.id === t.activeTabId)), I = m(() => `${M.value}-options`), E = m(() => `${M.value}-toggle`), N = m(() => {
|
|
7467
7481
|
var A;
|
|
7468
7482
|
return g.value ? (A = $.value[B.value]) == null ? void 0 : A.textContent : "More";
|
|
7469
|
-
}), G = m(() => g.value ?
|
|
7483
|
+
}), G = m(() => g.value ? p.value[B.value] - p.value[B.value - 1] + fs + ut : ps + ut);
|
|
7470
7484
|
function te() {
|
|
7471
7485
|
var xe;
|
|
7472
7486
|
let A = !1, j, X = 0, ne = !1, Be = [];
|
|
@@ -7476,14 +7490,14 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7476
7490
|
j.dataset.hidden = "true", Be.push(j);
|
|
7477
7491
|
continue;
|
|
7478
7492
|
}
|
|
7479
|
-
if (X = Te < $.value.length - 1 ? S.value - G.value : S.value,
|
|
7493
|
+
if (X = Te < $.value.length - 1 ? S.value - G.value : S.value, p.value[Te] > X) {
|
|
7480
7494
|
j.dataset.hidden = "true", Be.push(j), A = !0, ne = !0;
|
|
7481
7495
|
continue;
|
|
7482
7496
|
}
|
|
7483
7497
|
j.dataset.hidden = "false", j.setAttribute("tabindex", "0");
|
|
7484
7498
|
}
|
|
7485
|
-
|
|
7486
|
-
|
|
7499
|
+
r.value = A, u.value = Be, o.value || Re(() => o.value = !0), P = setTimeout(() => {
|
|
7500
|
+
d.value && (Q(), le(), v.value = !0);
|
|
7487
7501
|
}, v.value ? 25 : 1e3);
|
|
7488
7502
|
}
|
|
7489
7503
|
}
|
|
@@ -7499,7 +7513,7 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7499
7513
|
function Ie(A) {
|
|
7500
7514
|
var ne, Be, xe;
|
|
7501
7515
|
const j = (xe = (Be = (ne = $.value[A]) == null ? void 0 : ne.getBoundingClientRect) == null ? void 0 : Be.call(ne)) == null ? void 0 : xe.width;
|
|
7502
|
-
return j || (A === 0 ?
|
|
7516
|
+
return j || (A === 0 ? p.value[0] : p.value[A] - p.value[A - 1]) || 0;
|
|
7503
7517
|
}
|
|
7504
7518
|
function we() {
|
|
7505
7519
|
var A;
|
|
@@ -7542,9 +7556,9 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7542
7556
|
}
|
|
7543
7557
|
function le() {
|
|
7544
7558
|
var xe, Te, Mt, Nt;
|
|
7545
|
-
const A = parseInt(
|
|
7559
|
+
const A = parseInt(d.value.style.getPropertyValue("--active-line-offset")) || 0, j = S.value;
|
|
7546
7560
|
let X = 300, ne = ((Te = (xe = k.value) == null ? void 0 : xe[B.value]) == null ? void 0 : Te.offsetLeft) || 0, Be = Ie(B.value);
|
|
7547
|
-
|
|
7561
|
+
r.value && g.value && (ne = (Mt = O.value) == null ? void 0 : Mt.offsetLeft, Be = (Nt = O.value) == null ? void 0 : Nt.offsetWidth), X = Math.max(Math.abs((ne - A) / j * 300), 100), d.value.style.setProperty("--active-line-max-width", `${j}px`), d.value.style.setProperty("--active-line-scale", `${Be / j}`), d.value.style.setProperty("--active-line-offset", `${ne}px`), d.value.style.setProperty("--active-line-transition-duration", `${X}ms`);
|
|
7548
7562
|
}
|
|
7549
7563
|
function Pe() {
|
|
7550
7564
|
var A, j;
|
|
@@ -7553,9 +7567,9 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7553
7567
|
function T() {
|
|
7554
7568
|
const A = Je(() => {
|
|
7555
7569
|
var j;
|
|
7556
|
-
S.value = (j =
|
|
7570
|
+
S.value = (j = d == null ? void 0 : d.value) == null ? void 0 : j.clientWidth, te();
|
|
7557
7571
|
}, 25);
|
|
7558
|
-
y.value = new ResizeObserver(A), y.value.observe(document.body),
|
|
7572
|
+
y.value = new ResizeObserver(A), y.value.observe(document.body), d.value && y.value.observe(d.value);
|
|
7559
7573
|
}
|
|
7560
7574
|
function L() {
|
|
7561
7575
|
$.value = Array.from(c.value.children).filter((A) => A.role === "tab");
|
|
@@ -7563,7 +7577,7 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7563
7577
|
function F() {
|
|
7564
7578
|
let A;
|
|
7565
7579
|
$.value.forEach((j, X) => {
|
|
7566
|
-
A = j.getBoundingClientRect().width + ut,
|
|
7580
|
+
A = j.getBoundingClientRect().width + ut, p.value.push(X ? A + p.value[X - 1] : A);
|
|
7567
7581
|
});
|
|
7568
7582
|
}
|
|
7569
7583
|
function Q() {
|
|
@@ -7574,20 +7588,20 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7574
7588
|
if (((j = ne.dataset) == null ? void 0 : j.hidden) === "true" || ((X = ne.dataset) == null ? void 0 : X.hidden) === "" || ne.getAttribute("tabindex") === "-1") break;
|
|
7575
7589
|
A.push(ne);
|
|
7576
7590
|
}
|
|
7577
|
-
|
|
7591
|
+
r.value && A.push(d.value.querySelector(".bs-tab-list-toggle")), k.value = A;
|
|
7578
7592
|
}
|
|
7579
7593
|
return Z(() => t.activeTabId, we), ee(() => {
|
|
7580
7594
|
var A;
|
|
7581
7595
|
try {
|
|
7582
|
-
L(), F(), T(), S.value =
|
|
7596
|
+
L(), F(), T(), S.value = d.value.getBoundingClientRect().width, te(), t.withBsTabs || (A = $.value[B.value]) == null || A.setAttribute("aria-selected", "true");
|
|
7583
7597
|
} catch (j) {
|
|
7584
7598
|
console.log("tab error", j);
|
|
7585
7599
|
}
|
|
7586
7600
|
}), De($e), (A, j) => (l(), h("div", {
|
|
7587
7601
|
class: "bs-tab-list",
|
|
7588
7602
|
ref_key: "hostEl",
|
|
7589
|
-
ref:
|
|
7590
|
-
id: A.$attrs.id ||
|
|
7603
|
+
ref: d,
|
|
7604
|
+
id: A.$attrs.id || f(b),
|
|
7591
7605
|
"data-component": "bs-tab-list",
|
|
7592
7606
|
"data-resizing": !o.value || void 0
|
|
7593
7607
|
}, [
|
|
@@ -7603,25 +7617,25 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7603
7617
|
z(A.$slots, "default")
|
|
7604
7618
|
], 544),
|
|
7605
7619
|
w("button", {
|
|
7606
|
-
"aria-controls":
|
|
7620
|
+
"aria-controls": f(M),
|
|
7607
7621
|
"aria-expanded": s.value,
|
|
7608
7622
|
class: "bs-tab-list-toggle",
|
|
7609
7623
|
"data-active": g.value || void 0,
|
|
7610
|
-
"data-hidden": !
|
|
7624
|
+
"data-hidden": !r.value,
|
|
7611
7625
|
id: E.value,
|
|
7612
7626
|
ref_key: "dropdownToggle",
|
|
7613
7627
|
ref: O,
|
|
7614
7628
|
onClick: Oe
|
|
7615
7629
|
}, [
|
|
7616
|
-
R(
|
|
7630
|
+
R(f(Jn), { size: "sm" }),
|
|
7617
7631
|
_(" " + V(N.value), 1)
|
|
7618
7632
|
], 8, cs),
|
|
7619
7633
|
R(En, {
|
|
7620
7634
|
"anchor-id": E.value,
|
|
7621
|
-
"container-id": A.$attrs.id ||
|
|
7635
|
+
"container-id": A.$attrs.id || f(b),
|
|
7622
7636
|
"helper-description": e.helperDescription || void 0,
|
|
7623
7637
|
"helper-text": e.helperText,
|
|
7624
|
-
id:
|
|
7638
|
+
id: f(M),
|
|
7625
7639
|
"options-id": I.value,
|
|
7626
7640
|
position: "right",
|
|
7627
7641
|
preloaded: "",
|
|
@@ -7847,7 +7861,7 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
7847
7861
|
z(u.$slots, "default", {}, () => [
|
|
7848
7862
|
s[0] || (s[0] = w("span", { class: "visually-hidden" }, "sort toggle", -1))
|
|
7849
7863
|
]),
|
|
7850
|
-
(l(), D(ae(o[a.order] ||
|
|
7864
|
+
(l(), D(ae(o[a.order] || f(sn)), {
|
|
7851
7865
|
size: e.size,
|
|
7852
7866
|
"aria-hidden": "true"
|
|
7853
7867
|
}, null, 8, ["size"]))
|
|
@@ -7859,24 +7873,24 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
7859
7873
|
setup(e, { emit: n }) {
|
|
7860
7874
|
const t = n, a = Gn("resizer");
|
|
7861
7875
|
let o = null, i = null, u = null;
|
|
7862
|
-
const s = nn({ el: null, rect: null }),
|
|
7876
|
+
const s = nn({ el: null, rect: null }), r = C(!1), d = C(!1);
|
|
7863
7877
|
ee(() => {
|
|
7864
7878
|
document.addEventListener("pointermove", c);
|
|
7865
7879
|
}), De(() => {
|
|
7866
7880
|
document.removeEventListener("pointermove", c);
|
|
7867
7881
|
});
|
|
7868
7882
|
function c(I) {
|
|
7869
|
-
if (
|
|
7870
|
-
if (
|
|
7883
|
+
if (d.value) return;
|
|
7884
|
+
if (r.value)
|
|
7871
7885
|
return I.target === a.value || k();
|
|
7872
7886
|
if (v(I.target.closest("[data-bs-table-col-resize-id]")), !s.value.el) return;
|
|
7873
7887
|
const E = I.clientX <= s.value.rect.left + Zt, N = I.clientX >= s.value.rect.right - Zt;
|
|
7874
7888
|
if (!(E && I.target.dataset.bsTableColResize === "right") && (E || N)) {
|
|
7875
|
-
if (i = E ? s.value.rect.left : s.value.rect.right, E && v(
|
|
7889
|
+
if (i = E ? s.value.rect.left : s.value.rect.right, E && v(p()), !s.value.el) return;
|
|
7876
7890
|
O();
|
|
7877
7891
|
}
|
|
7878
7892
|
}
|
|
7879
|
-
function
|
|
7893
|
+
function p() {
|
|
7880
7894
|
const I = s.value.el.previousElementSibling;
|
|
7881
7895
|
if (!I) return;
|
|
7882
7896
|
const E = I.classList.contains("bs-table-cols-frozen-left") ? s.value.el.previousElementSibling.lastElementChild : s.value.el.previousElementSibling;
|
|
@@ -7892,29 +7906,29 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
7892
7906
|
return parseInt(E, 10);
|
|
7893
7907
|
}
|
|
7894
7908
|
function O() {
|
|
7895
|
-
M(), a.value.style.setProperty("--bs-table-col-resizer-y", `${s.value.rect.top}px`), a.value.style.setProperty("--bs-table-col-resizer-handle-height", `${s.value.rect.height}px`),
|
|
7909
|
+
M(), a.value.style.setProperty("--bs-table-col-resizer-y", `${s.value.rect.top}px`), a.value.style.setProperty("--bs-table-col-resizer-handle-height", `${s.value.rect.height}px`), r.value = !0;
|
|
7896
7910
|
}
|
|
7897
7911
|
function k() {
|
|
7898
|
-
|
|
7912
|
+
r.value = !1;
|
|
7899
7913
|
}
|
|
7900
7914
|
function y(I) {
|
|
7901
7915
|
I.target.setPointerCapture(I.pointerId);
|
|
7902
7916
|
const E = a.value.closest(".bs-table-scroll-wrap");
|
|
7903
|
-
a.value.style.setProperty("--bs-table-col-resizer-tail-height", `${E.offsetHeight}px`),
|
|
7917
|
+
a.value.style.setProperty("--bs-table-col-resizer-tail-height", `${E.offsetHeight}px`), d.value = !0, o = i, a.value.addEventListener("pointermove", S), a.value.addEventListener("pointerup", P, { once: !0 });
|
|
7904
7918
|
}
|
|
7905
7919
|
function S(I) {
|
|
7906
|
-
i =
|
|
7920
|
+
i = b(I) ? s.value.rect.left + s.value.minWidth : I.clientX, !u && (u = requestAnimationFrame(() => {
|
|
7907
7921
|
u = null, M();
|
|
7908
7922
|
}));
|
|
7909
7923
|
}
|
|
7910
|
-
function
|
|
7924
|
+
function b(I) {
|
|
7911
7925
|
return I.clientX - s.value.rect.left <= s.value.minWidth;
|
|
7912
7926
|
}
|
|
7913
7927
|
function M() {
|
|
7914
7928
|
a.value.style.setProperty("--bs-table-col-resizer-x", `${i}px`);
|
|
7915
7929
|
}
|
|
7916
7930
|
function P() {
|
|
7917
|
-
a.value.removeEventListener("pointermove", S), setTimeout(() =>
|
|
7931
|
+
a.value.removeEventListener("pointermove", S), setTimeout(() => d.value = !1);
|
|
7918
7932
|
const I = i - o;
|
|
7919
7933
|
I !== 0 && B(Math.round(s.value.rect.width + I));
|
|
7920
7934
|
}
|
|
@@ -7930,13 +7944,13 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
7930
7944
|
}
|
|
7931
7945
|
return (I, E) => fe((l(), h("div", {
|
|
7932
7946
|
ref: "resizer",
|
|
7933
|
-
class: ve(["bs-table-col-resizer",
|
|
7947
|
+
class: ve(["bs-table-col-resizer", d.value && "bs-table-col-resizer-active"]),
|
|
7934
7948
|
onDragstart: E[0] || (E[0] = Ce(() => {
|
|
7935
7949
|
}, ["prevent"])),
|
|
7936
7950
|
onPointerdown: Ce(y, ["prevent", "stop"]),
|
|
7937
7951
|
onDblclick: Ce(g, ["prevent", "stop"])
|
|
7938
7952
|
}, null, 34)), [
|
|
7939
|
-
[be,
|
|
7953
|
+
[be, r.value]
|
|
7940
7954
|
]);
|
|
7941
7955
|
}
|
|
7942
7956
|
}, ed = {
|
|
@@ -8027,8 +8041,8 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8027
8041
|
}), o = C({}), i = m(() => Object.values(a.value).flat().map((T) => {
|
|
8028
8042
|
const L = E(T);
|
|
8029
8043
|
return o.value[L] ?? ie(T);
|
|
8030
|
-
}).join(" ")), u = m(() => `--bs-table-cell-padding: ${["xs", "sm", "md", "lg", "xl", "none"].includes(e.cellPadding) ? `var(--bs-table-cell-padding-${e.cellPadding})` : e.cellPadding}`), s = m(() => typeof e.rowHover != "string" || e.rowHover === "true" ? "" : `--bs-table-row-hover: ${e.rowHover}`),
|
|
8031
|
-
function
|
|
8044
|
+
}).join(" ")), u = m(() => `--bs-table-cell-padding: ${["xs", "sm", "md", "lg", "xl", "none"].includes(e.cellPadding) ? `var(--bs-table-cell-padding-${e.cellPadding})` : e.cellPadding}`), s = m(() => typeof e.rowHover != "string" || e.rowHover === "true" ? "" : `--bs-table-row-hover: ${e.rowHover}`), r = m(() => Object.values(a.value).flat().some(E));
|
|
8045
|
+
function d(T = []) {
|
|
8032
8046
|
const L = [
|
|
8033
8047
|
"bs-table-wrap",
|
|
8034
8048
|
`bs-table-border-${e.borders}`,
|
|
@@ -8054,7 +8068,7 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8054
8068
|
ariaDescribedby: e.ariaDescribedby
|
|
8055
8069
|
}, T);
|
|
8056
8070
|
}
|
|
8057
|
-
function
|
|
8071
|
+
function p(T = []) {
|
|
8058
8072
|
return se("div", { class: "bs-table-scroll-wrap" }, T);
|
|
8059
8073
|
}
|
|
8060
8074
|
function v(T = []) {
|
|
@@ -8092,7 +8106,7 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8092
8106
|
});
|
|
8093
8107
|
return k(T);
|
|
8094
8108
|
}
|
|
8095
|
-
function
|
|
8109
|
+
function b(T = []) {
|
|
8096
8110
|
return se(pt, {
|
|
8097
8111
|
kind: "footer",
|
|
8098
8112
|
class: e.freezeFooter && "bs-table-footer-rowgroup-freeze"
|
|
@@ -8100,7 +8114,7 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8100
8114
|
}
|
|
8101
8115
|
function M() {
|
|
8102
8116
|
const T = n.footer({ cols: Rt(a.value) });
|
|
8103
|
-
return
|
|
8117
|
+
return b(
|
|
8104
8118
|
B(T, g)
|
|
8105
8119
|
);
|
|
8106
8120
|
}
|
|
@@ -8265,9 +8279,9 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8265
8279
|
}
|
|
8266
8280
|
return () => {
|
|
8267
8281
|
const { columns: T, header: L, footer: F, other: Q } = Pe(n.default());
|
|
8268
|
-
return a.value = le(T),
|
|
8282
|
+
return a.value = le(T), d([
|
|
8269
8283
|
L,
|
|
8270
|
-
|
|
8284
|
+
p([
|
|
8271
8285
|
c([
|
|
8272
8286
|
n.header ? O() : $(),
|
|
8273
8287
|
n.body ? S() : y(),
|
|
@@ -8275,7 +8289,7 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8275
8289
|
]),
|
|
8276
8290
|
Q,
|
|
8277
8291
|
// non-Table related slot content, e.g. consumers could add a loading spinner or empty state message
|
|
8278
|
-
|
|
8292
|
+
r.value && we()
|
|
8279
8293
|
]),
|
|
8280
8294
|
F
|
|
8281
8295
|
]);
|
|
@@ -8358,22 +8372,22 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8358
8372
|
const t = e;
|
|
8359
8373
|
W(t, "passAttrs", void 0, "Use Vue's native fallthrough attributes instead.");
|
|
8360
8374
|
const [a, o] = re(2), { filtered: i, remaining: u } = ye(["class", "style"]), s = m(() => {
|
|
8361
|
-
var
|
|
8362
|
-
return ((
|
|
8363
|
-
}),
|
|
8364
|
-
var
|
|
8365
|
-
return ((v = (
|
|
8375
|
+
var p;
|
|
8376
|
+
return ((p = t.value || t.modelValue) == null ? void 0 : p.length) || 0;
|
|
8377
|
+
}), r = m(() => {
|
|
8378
|
+
var p, v;
|
|
8379
|
+
return ((v = (p = t.hints) == null ? void 0 : p.join) == null ? void 0 : v.call(p, `
|
|
8366
8380
|
`)) || t.hints;
|
|
8367
|
-
}),
|
|
8368
|
-
return (
|
|
8369
|
-
e.label ||
|
|
8381
|
+
}), d = m(() => t.error && t.errorMsg || t.hint || r.value || void 0), c = m(() => t.inputId || a.value);
|
|
8382
|
+
return (p, v) => (l(), h("div", H({ "data-component": "bs-textarea-field" }, f(i)), [
|
|
8383
|
+
e.label || p.$slots.label ? (l(), D(pe, {
|
|
8370
8384
|
key: 0,
|
|
8371
|
-
for:
|
|
8385
|
+
for: p.$attrs.id || c.value,
|
|
8372
8386
|
disabled: e.disabled,
|
|
8373
8387
|
required: e.required
|
|
8374
8388
|
}, {
|
|
8375
8389
|
default: q(() => [
|
|
8376
|
-
z(
|
|
8390
|
+
z(p.$slots, "label", {}, () => [
|
|
8377
8391
|
_(V(e.label), 1)
|
|
8378
8392
|
])
|
|
8379
8393
|
]),
|
|
@@ -8382,23 +8396,23 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8382
8396
|
R(Ts, H({
|
|
8383
8397
|
disabled: e.disabled,
|
|
8384
8398
|
error: e.error,
|
|
8385
|
-
"hint-id":
|
|
8386
|
-
id:
|
|
8399
|
+
"hint-id": f(o),
|
|
8400
|
+
id: p.$attrs.id || c.value,
|
|
8387
8401
|
placeholder: e.placeholder,
|
|
8388
8402
|
required: e.required,
|
|
8389
8403
|
rows: e.rows,
|
|
8390
8404
|
value: e.value || e.modelValue,
|
|
8391
|
-
"onUpdate:modelValue": v[0] || (v[0] = ($) =>
|
|
8392
|
-
},
|
|
8393
|
-
|
|
8405
|
+
"onUpdate:modelValue": v[0] || (v[0] = ($) => p.$emit("update:modelValue", $))
|
|
8406
|
+
}, f(u)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
|
|
8407
|
+
d.value || e.charMax ? (l(), D(ze, {
|
|
8394
8408
|
key: 1,
|
|
8395
8409
|
"char-count": s.value,
|
|
8396
8410
|
"char-max": e.charMax,
|
|
8397
8411
|
"data-disabled": e.disabled,
|
|
8398
8412
|
error: e.error,
|
|
8399
8413
|
"error-msg": e.errorMsg,
|
|
8400
|
-
hint: e.hint ||
|
|
8401
|
-
"hint-id":
|
|
8414
|
+
hint: e.hint || r.value,
|
|
8415
|
+
"hint-id": f(o)
|
|
8402
8416
|
}, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
8403
8417
|
], 16));
|
|
8404
8418
|
}
|
|
@@ -8502,16 +8516,16 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8502
8516
|
},
|
|
8503
8517
|
emits: ["update:modelValue"],
|
|
8504
8518
|
setup(e, { expose: n, emit: t }) {
|
|
8505
|
-
const a = e, o = t, i = C(Le(a.modelValue)), u = C([]), s = C(""),
|
|
8506
|
-
function
|
|
8519
|
+
const a = e, o = t, i = C(Le(a.modelValue)), u = C([]), s = C(""), r = C(!1);
|
|
8520
|
+
function d() {
|
|
8507
8521
|
const S = [];
|
|
8508
|
-
let
|
|
8509
|
-
for (let M = 0; M < 24 && !
|
|
8522
|
+
let b = !1;
|
|
8523
|
+
for (let M = 0; M < 24 && !b; M++)
|
|
8510
8524
|
for (let P = 0; P < 60; P += a.step) {
|
|
8511
|
-
const B = v(M, P), g =
|
|
8525
|
+
const B = v(M, P), g = p(B);
|
|
8512
8526
|
if (g !== Qt) {
|
|
8513
8527
|
if (g === Jt) {
|
|
8514
|
-
|
|
8528
|
+
b = !0;
|
|
8515
8529
|
break;
|
|
8516
8530
|
}
|
|
8517
8531
|
S.push({
|
|
@@ -8525,7 +8539,7 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8525
8539
|
function c(S) {
|
|
8526
8540
|
return S ? a.minTime && S < a.minTime ? mt : a.maxTime && S > a.maxTime ? vt : a.disabledTimes.includes(S) ? ht : "" : "";
|
|
8527
8541
|
}
|
|
8528
|
-
function
|
|
8542
|
+
function p(S) {
|
|
8529
8543
|
switch (c(S)) {
|
|
8530
8544
|
case vt:
|
|
8531
8545
|
return Jt;
|
|
@@ -8536,15 +8550,15 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8536
8550
|
return "";
|
|
8537
8551
|
}
|
|
8538
8552
|
}
|
|
8539
|
-
function v(S,
|
|
8540
|
-
return S = S.toString().padStart(2, "0"),
|
|
8553
|
+
function v(S, b) {
|
|
8554
|
+
return S = S.toString().padStart(2, "0"), b = b.toString().padStart(2, "0"), `${S}:${b}`;
|
|
8541
8555
|
}
|
|
8542
8556
|
function $(S) {
|
|
8543
|
-
const
|
|
8544
|
-
|
|
8557
|
+
const b = Os(S);
|
|
8558
|
+
b === a.modelValue && (i.value = Le(a.modelValue)), k(b);
|
|
8545
8559
|
}
|
|
8546
8560
|
function O() {
|
|
8547
|
-
u.value =
|
|
8561
|
+
u.value = d();
|
|
8548
8562
|
}
|
|
8549
8563
|
function k(S) {
|
|
8550
8564
|
y(S), o("update:modelValue", S);
|
|
@@ -8552,16 +8566,16 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8552
8566
|
function y(S) {
|
|
8553
8567
|
switch (c(S)) {
|
|
8554
8568
|
case vt:
|
|
8555
|
-
s.value = `Time must be before ${Le(a.maxTime)}`,
|
|
8569
|
+
s.value = `Time must be before ${Le(a.maxTime)}`, r.value = !0;
|
|
8556
8570
|
break;
|
|
8557
8571
|
case mt:
|
|
8558
|
-
s.value = `Time must be after ${Le(a.minTime)}`,
|
|
8572
|
+
s.value = `Time must be after ${Le(a.minTime)}`, r.value = !0;
|
|
8559
8573
|
break;
|
|
8560
8574
|
case ht:
|
|
8561
|
-
s.value = `The following times are disabled: ${a.disabledTimes.map((M) => Le(M)).join(", ")}`,
|
|
8575
|
+
s.value = `The following times are disabled: ${a.disabledTimes.map((M) => Le(M)).join(", ")}`, r.value = !0;
|
|
8562
8576
|
break;
|
|
8563
8577
|
default:
|
|
8564
|
-
s.value = "",
|
|
8578
|
+
s.value = "", r.value = !1;
|
|
8565
8579
|
}
|
|
8566
8580
|
}
|
|
8567
8581
|
return ee(O), Z([
|
|
@@ -8577,14 +8591,14 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8577
8591
|
], () => y(a.modelValue)), Z(() => a.modelValue, (S) => {
|
|
8578
8592
|
i.value = a.modelValue ? Le(S) : "";
|
|
8579
8593
|
}), n({
|
|
8580
|
-
validationErr:
|
|
8594
|
+
validationErr: r,
|
|
8581
8595
|
validationErrMsg: s
|
|
8582
|
-
}), (S,
|
|
8596
|
+
}), (S, b) => (l(), D(zn, {
|
|
8583
8597
|
disabled: e.disabled,
|
|
8584
8598
|
"display-value": i.value,
|
|
8585
8599
|
"dropdown-position": e.dropdownPosition,
|
|
8586
8600
|
"dropdown-width": e.dropdownWidth,
|
|
8587
|
-
error: e.error ||
|
|
8601
|
+
error: e.error || r.value,
|
|
8588
8602
|
"helper-description": e.helperDescription,
|
|
8589
8603
|
"helper-text": e.helperText,
|
|
8590
8604
|
"hint-id": e.hintId,
|
|
@@ -8666,12 +8680,12 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8666
8680
|
},
|
|
8667
8681
|
emits: ["update:modelValue"],
|
|
8668
8682
|
setup(e, { expose: n, emit: t }) {
|
|
8669
|
-
const a = e, [o, i] = re(2), { filtered: u, remaining: s } = ye(["class", "style"]),
|
|
8683
|
+
const a = e, [o, i] = re(2), { filtered: u, remaining: s } = ye(["class", "style"]), r = C(null), d = m(() => a.errorMsg || $.value), c = m(() => a.error || O.value), p = m(() => a.inputId || o.value), v = m(() => a.hint || c.value && d.value), $ = m(() => {
|
|
8670
8684
|
var k;
|
|
8671
|
-
return (k =
|
|
8685
|
+
return (k = r.value) == null ? void 0 : k.validationErrMsg;
|
|
8672
8686
|
}), O = m(() => {
|
|
8673
8687
|
var k;
|
|
8674
|
-
return (k =
|
|
8688
|
+
return (k = r.value) == null ? void 0 : k.validationErr;
|
|
8675
8689
|
});
|
|
8676
8690
|
return n({
|
|
8677
8691
|
validationErr: O,
|
|
@@ -8679,10 +8693,10 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8679
8693
|
}), (k, y) => (l(), h("div", H({
|
|
8680
8694
|
"aria-live": "polite",
|
|
8681
8695
|
"data-component": "bs-time-picker-field"
|
|
8682
|
-
},
|
|
8696
|
+
}, f(u)), [
|
|
8683
8697
|
e.label || k.$slots.label ? (l(), D(pe, {
|
|
8684
8698
|
key: 0,
|
|
8685
|
-
for: k.$attrs.id ||
|
|
8699
|
+
for: k.$attrs.id || p.value,
|
|
8686
8700
|
disabled: e.disabled,
|
|
8687
8701
|
required: e.required
|
|
8688
8702
|
}, {
|
|
@@ -8695,7 +8709,7 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8695
8709
|
}, 8, ["for", "disabled", "required"])) : x("", !0),
|
|
8696
8710
|
R(xs, H({
|
|
8697
8711
|
ref_key: "timePicker",
|
|
8698
|
-
ref:
|
|
8712
|
+
ref: r,
|
|
8699
8713
|
disabled: e.disabled,
|
|
8700
8714
|
"disabled-times": e.disabledTimes,
|
|
8701
8715
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -8703,8 +8717,8 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8703
8717
|
error: c.value,
|
|
8704
8718
|
"helper-description": e.helperDescription,
|
|
8705
8719
|
"helper-text": e.helperText,
|
|
8706
|
-
"hint-id":
|
|
8707
|
-
"input-id": k.$attrs.id ||
|
|
8720
|
+
"hint-id": f(i),
|
|
8721
|
+
"input-id": k.$attrs.id || p.value,
|
|
8708
8722
|
"max-time": e.maxTime,
|
|
8709
8723
|
"min-time": e.minTime,
|
|
8710
8724
|
"model-value": e.modelValue,
|
|
@@ -8712,12 +8726,12 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8712
8726
|
required: e.required,
|
|
8713
8727
|
step: e.step,
|
|
8714
8728
|
"onUpdate:modelValue": y[0] || (y[0] = (S) => k.$emit("update:modelValue", S))
|
|
8715
|
-
},
|
|
8729
|
+
}, f(s)), null, 16, ["disabled", "disabled-times", "dropdown-position", "dropdown-width", "error", "helper-description", "helper-text", "hint-id", "input-id", "max-time", "min-time", "model-value", "placeholder", "required", "step"]),
|
|
8716
8730
|
fe(R(ze, {
|
|
8717
8731
|
error: c.value,
|
|
8718
|
-
"error-msg":
|
|
8732
|
+
"error-msg": d.value,
|
|
8719
8733
|
hint: e.hint,
|
|
8720
|
-
"hint-id":
|
|
8734
|
+
"hint-id": f(i)
|
|
8721
8735
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
8722
8736
|
[be, v.value]
|
|
8723
8737
|
])
|
|
@@ -8761,30 +8775,30 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8761
8775
|
paused: ta,
|
|
8762
8776
|
warning: $t
|
|
8763
8777
|
}, { progressStep: a, progressText: o, getStatus: i } = Ln(n);
|
|
8764
|
-
function u(s,
|
|
8765
|
-
return s = i(s,
|
|
8778
|
+
function u(s, r) {
|
|
8779
|
+
return s = i(s, r), t[s] || jt;
|
|
8766
8780
|
}
|
|
8767
|
-
return (s,
|
|
8781
|
+
return (s, r) => (l(), h("div", {
|
|
8768
8782
|
"aria-valuemax": e.steps.length,
|
|
8769
|
-
"aria-valuenow":
|
|
8770
|
-
"aria-valuetext":
|
|
8783
|
+
"aria-valuenow": f(a),
|
|
8784
|
+
"aria-valuetext": f(o),
|
|
8771
8785
|
class: "bs-timeline",
|
|
8772
8786
|
"data-component": "bs-timeline",
|
|
8773
8787
|
role: "progressbar"
|
|
8774
8788
|
}, [
|
|
8775
|
-
(l(!0), h(J, null, de(e.steps, (
|
|
8789
|
+
(l(!0), h(J, null, de(e.steps, (d, c) => (l(), h("div", {
|
|
8776
8790
|
class: "bs-step-item",
|
|
8777
|
-
"data-status":
|
|
8778
|
-
key:
|
|
8791
|
+
"data-status": f(i)(d.status, c),
|
|
8792
|
+
key: d.id || d.label,
|
|
8779
8793
|
role: "status"
|
|
8780
8794
|
}, [
|
|
8781
|
-
(l(), D(ae(u(
|
|
8795
|
+
(l(), D(ae(u(d.status, c)), {
|
|
8782
8796
|
class: "bs-step-icon",
|
|
8783
8797
|
role: "presentation"
|
|
8784
8798
|
})),
|
|
8785
8799
|
w("p", null, [
|
|
8786
|
-
_(V(
|
|
8787
|
-
w("span", Es, " : " + V(
|
|
8800
|
+
_(V(d.label || d) + " ", 1),
|
|
8801
|
+
w("span", Es, " : " + V(f(i)(d.status, c) || "not started"), 1)
|
|
8788
8802
|
])
|
|
8789
8803
|
], 8, zs))), 128))
|
|
8790
8804
|
], 8, As));
|
|
@@ -8839,28 +8853,28 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8839
8853
|
function s() {
|
|
8840
8854
|
i && (clearTimeout(i), i = null), a("dismiss", t.toastId);
|
|
8841
8855
|
}
|
|
8842
|
-
function
|
|
8856
|
+
function r() {
|
|
8843
8857
|
t.duration > 0 && (i = setTimeout(() => {
|
|
8844
8858
|
s();
|
|
8845
8859
|
}, t.duration)), a("after-enter");
|
|
8846
8860
|
}
|
|
8847
|
-
return (
|
|
8861
|
+
return (d, c) => (l(), D(Ge, {
|
|
8848
8862
|
name: "bs-toast",
|
|
8849
|
-
shown:
|
|
8863
|
+
shown: f(o),
|
|
8850
8864
|
preloaded: e.preloaded,
|
|
8851
|
-
onAfterEnter:
|
|
8852
|
-
onAfterLeave: c[0] || (c[0] = (
|
|
8865
|
+
onAfterEnter: r,
|
|
8866
|
+
onAfterLeave: c[0] || (c[0] = (p) => a("after-leave"))
|
|
8853
8867
|
}, {
|
|
8854
8868
|
default: q(() => [
|
|
8855
8869
|
w("div", H({
|
|
8856
8870
|
class: "bs-toast",
|
|
8857
8871
|
"data-component": "bs-toast",
|
|
8858
8872
|
"data-variant": e.variant,
|
|
8859
|
-
"data-shown":
|
|
8860
|
-
"data-stacked":
|
|
8873
|
+
"data-shown": f(o),
|
|
8874
|
+
"data-stacked": f(u) || void 0,
|
|
8861
8875
|
role: "alert"
|
|
8862
|
-
},
|
|
8863
|
-
z(
|
|
8876
|
+
}, d.$attrs), [
|
|
8877
|
+
z(d.$slots, "default")
|
|
8864
8878
|
], 16, Ps)
|
|
8865
8879
|
]),
|
|
8866
8880
|
_: 3
|
|
@@ -8884,7 +8898,7 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8884
8898
|
R(Bn, {
|
|
8885
8899
|
size: "sm",
|
|
8886
8900
|
"text-btn": "",
|
|
8887
|
-
onClick:
|
|
8901
|
+
onClick: f(n)
|
|
8888
8902
|
}, {
|
|
8889
8903
|
default: q(() => o[0] || (o[0] = [
|
|
8890
8904
|
_(" Dismiss ")
|
|
@@ -8921,7 +8935,7 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
8921
8935
|
return (a, o) => (l(), h("div", {
|
|
8922
8936
|
class: "bs-toast-header",
|
|
8923
8937
|
"data-component": "bs-toast-header",
|
|
8924
|
-
"data-variant":
|
|
8938
|
+
"data-variant": f(n)
|
|
8925
8939
|
}, [
|
|
8926
8940
|
(l(), D(ae(t.value), { class: "bs-toast-header-icon" })),
|
|
8927
8941
|
w("h5", null, [
|
|
@@ -8979,7 +8993,7 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
8979
8993
|
function u() {
|
|
8980
8994
|
t.value = !1, a.value = !1;
|
|
8981
8995
|
}
|
|
8982
|
-
return (s,
|
|
8996
|
+
return (s, r) => (l(), h("div", {
|
|
8983
8997
|
class: "bs-tooltip",
|
|
8984
8998
|
"data-position": e.position,
|
|
8985
8999
|
"data-component": "bs-tooltip",
|
|
@@ -9016,44 +9030,44 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9016
9030
|
getExpandButtonTitle: i,
|
|
9017
9031
|
initializeSections: u,
|
|
9018
9032
|
isExpanded: s,
|
|
9019
|
-
rawNavData:
|
|
9033
|
+
rawNavData: r
|
|
9020
9034
|
} = Lt(t);
|
|
9021
|
-
Fe("(max-width: 1165px)", (
|
|
9022
|
-
|
|
9035
|
+
Fe("(max-width: 1165px)", (b) => {
|
|
9036
|
+
p.value = b.matches;
|
|
9023
9037
|
});
|
|
9024
|
-
const
|
|
9038
|
+
const d = C(null), c = C(null), p = C(!1), v = C(t.collapsed), $ = m(() => !t.width && t.variant === "narrow"), O = m(() => t.variant === "collapsible"), k = m(() => !O.value || p.value ? !1 : v.value);
|
|
9025
9039
|
ee(() => {
|
|
9026
9040
|
u(!1);
|
|
9027
9041
|
}), Z(() => t.navData, () => {
|
|
9028
9042
|
u(!1);
|
|
9029
|
-
}), Z(c, (
|
|
9030
|
-
|
|
9031
|
-
}), Z(() => t.collapsed, (
|
|
9032
|
-
v.value =
|
|
9043
|
+
}), Z(c, (b) => {
|
|
9044
|
+
b && t.width && b.style.setProperty("--bs-vertical-nav-width", t.width);
|
|
9045
|
+
}), Z(() => t.collapsed, (b) => {
|
|
9046
|
+
v.value = b;
|
|
9033
9047
|
}), Z(
|
|
9034
|
-
[() => v.value, $, () => t.width, O,
|
|
9035
|
-
([
|
|
9048
|
+
[() => v.value, $, () => t.width, O, p],
|
|
9049
|
+
([b, M, P, B, g]) => {
|
|
9036
9050
|
let I = "0px";
|
|
9037
|
-
B && !g &&
|
|
9051
|
+
B && !g && b ? I = "4rem" : P ? I = P : M ? I = "4.5rem" : I = "9.875rem", document.body.style.setProperty("--bs-page-nav-width", I);
|
|
9038
9052
|
},
|
|
9039
9053
|
{ immediate: !0 }
|
|
9040
|
-
), Z(() => t.width, (
|
|
9041
|
-
|
|
9042
|
-
}), Z(() => t.mobileOpen, (
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
}, 0)) : (document.body.style.overflow = "",
|
|
9046
|
-
|
|
9054
|
+
), Z(() => t.width, (b) => {
|
|
9055
|
+
b ? (d.value.style.setProperty("--bs-vertical-nav-width", b), c.value && c.value.style.setProperty("--bs-vertical-nav-width", b)) : (d.value.style.removeProperty("--bs-vertical-nav-width"), c.value && c.value.style.removeProperty("--bs-vertical-nav-width"));
|
|
9056
|
+
}), Z(() => t.mobileOpen, (b) => {
|
|
9057
|
+
b ? (document.body.style.overflow = "hidden", d.value.style.setProperty("visibility", "visible"), setTimeout(() => {
|
|
9058
|
+
d.value.style.setProperty("opacity", "1");
|
|
9059
|
+
}, 0)) : (document.body.style.overflow = "", d.value.style.removeProperty("opacity"), setTimeout(() => {
|
|
9060
|
+
d.value.style.removeProperty("visibility");
|
|
9047
9061
|
}, 200));
|
|
9048
9062
|
});
|
|
9049
|
-
function y(
|
|
9050
|
-
o.value[
|
|
9063
|
+
function y(b) {
|
|
9064
|
+
o.value[b] = !o.value[b];
|
|
9051
9065
|
}
|
|
9052
9066
|
function S() {
|
|
9053
9067
|
v.value = !v.value, a("update:collapsed", v.value);
|
|
9054
9068
|
}
|
|
9055
|
-
return (
|
|
9056
|
-
O.value && !
|
|
9069
|
+
return (b, M) => (l(), h("div", Us, [
|
|
9070
|
+
O.value && !p.value ? (l(), h("button", {
|
|
9057
9071
|
key: 0,
|
|
9058
9072
|
ref_key: "toggleButton",
|
|
9059
9073
|
ref: c,
|
|
@@ -9065,10 +9079,10 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9065
9079
|
"data-narrow": $.value,
|
|
9066
9080
|
onClick: S
|
|
9067
9081
|
}, [
|
|
9068
|
-
v.value ? (l(), D(
|
|
9082
|
+
v.value ? (l(), D(f(at), {
|
|
9069
9083
|
key: 0,
|
|
9070
9084
|
class: "bs-vertical-nav-toggle-icon"
|
|
9071
|
-
})) : (l(), D(
|
|
9085
|
+
})) : (l(), D(f(nt), {
|
|
9072
9086
|
key: 1,
|
|
9073
9087
|
class: "bs-vertical-nav-toggle-icon"
|
|
9074
9088
|
}))
|
|
@@ -9076,17 +9090,17 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9076
9090
|
w("nav", {
|
|
9077
9091
|
class: "bs-vertical-nav",
|
|
9078
9092
|
ref_key: "verticalNav",
|
|
9079
|
-
ref:
|
|
9093
|
+
ref: d,
|
|
9080
9094
|
"data-narrow": $.value,
|
|
9081
9095
|
"data-collapsed": k.value,
|
|
9082
9096
|
"data-collapsible": O.value,
|
|
9083
9097
|
style: tn(t.width && !k.value ? { width: t.width } : void 0)
|
|
9084
9098
|
}, [
|
|
9085
9099
|
w("ul", null, [
|
|
9086
|
-
|
|
9087
|
-
z(
|
|
9100
|
+
b.$slots["top-content"] ? (l(), h("li", Hs, [
|
|
9101
|
+
z(b.$slots, "top-content")
|
|
9088
9102
|
])) : x("", !0),
|
|
9089
|
-
(l(!0), h(J, null, de(
|
|
9103
|
+
(l(!0), h(J, null, de(f(r), (P) => {
|
|
9090
9104
|
var B;
|
|
9091
9105
|
return l(), h(J, {
|
|
9092
9106
|
key: P.id
|
|
@@ -9094,21 +9108,21 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9094
9108
|
((B = P.navItems) == null ? void 0 : B.length) > 0 ? (l(), h("li", {
|
|
9095
9109
|
key: 0,
|
|
9096
9110
|
class: "bs-vertical-nav-section",
|
|
9097
|
-
"data-collapsed": !P.dividerOnly && !
|
|
9111
|
+
"data-collapsed": !P.dividerOnly && !f(s)(P),
|
|
9098
9112
|
"data-divider-only": P.dividerOnly,
|
|
9099
9113
|
"data-app-links": P.appLinks
|
|
9100
9114
|
}, [
|
|
9101
9115
|
!P.dividerOnly && !$.value && !k.value ? (l(), h("button", {
|
|
9102
9116
|
key: 0,
|
|
9103
9117
|
class: "bs-vertical-nav-section-toggle",
|
|
9104
|
-
"aria-expanded":
|
|
9118
|
+
"aria-expanded": f(s)(P),
|
|
9105
9119
|
"aria-controls": `${P.id}-nested-section`,
|
|
9106
|
-
title:
|
|
9120
|
+
title: f(i)(P),
|
|
9107
9121
|
type: "button",
|
|
9108
9122
|
onClick: (g) => y(P.id)
|
|
9109
9123
|
}, [
|
|
9110
9124
|
k.value ? x("", !0) : (l(), h("span", Xs, V(P.text), 1)),
|
|
9111
|
-
R(
|
|
9125
|
+
R(f(ra), { class: "bs-vertical-nav-section-toggle-caret" })
|
|
9112
9126
|
], 8, Ys)) : x("", !0),
|
|
9113
9127
|
fe(w("ul", {
|
|
9114
9128
|
id: `${P.id}-nested-section`
|
|
@@ -9118,12 +9132,12 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9118
9132
|
}, [
|
|
9119
9133
|
R(Me, {
|
|
9120
9134
|
item: g,
|
|
9121
|
-
router:
|
|
9135
|
+
router: b.router,
|
|
9122
9136
|
onNavLinkClicked: (I) => a("nav-link-clicked", { ev: I, payload: g }),
|
|
9123
9137
|
"aria-label": g.text
|
|
9124
9138
|
}, {
|
|
9125
9139
|
default: q(() => [
|
|
9126
|
-
typeof g.icon == "string" ? (l(), D(
|
|
9140
|
+
typeof g.icon == "string" ? (l(), D(f(ce), {
|
|
9127
9141
|
key: 0,
|
|
9128
9142
|
class: "bs-vertical-nav-link-icon",
|
|
9129
9143
|
name: g.icon
|
|
@@ -9137,17 +9151,17 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9137
9151
|
}, 1032, ["item", "router", "onNavLinkClicked", "aria-label"])
|
|
9138
9152
|
]))), 128))
|
|
9139
9153
|
], 8, Zs), [
|
|
9140
|
-
[be, P.dividerOnly ||
|
|
9154
|
+
[be, P.dividerOnly || f(s)(P) || k.value]
|
|
9141
9155
|
])
|
|
9142
9156
|
], 8, Gs)) : (l(), h("li", Qs, [
|
|
9143
9157
|
R(Me, {
|
|
9144
9158
|
item: P,
|
|
9145
|
-
router:
|
|
9159
|
+
router: b.router,
|
|
9146
9160
|
onNavLinkClicked: (g) => a("nav-link-clicked", { ev: g, payload: P }),
|
|
9147
9161
|
"aria-label": P.text
|
|
9148
9162
|
}, {
|
|
9149
9163
|
default: q(() => [
|
|
9150
|
-
typeof P.icon == "string" ? (l(), D(
|
|
9164
|
+
typeof P.icon == "string" ? (l(), D(f(ce), {
|
|
9151
9165
|
key: 0,
|
|
9152
9166
|
class: "bs-vertical-nav-link-icon",
|
|
9153
9167
|
name: P.icon
|
|
@@ -9163,8 +9177,8 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9163
9177
|
], 64);
|
|
9164
9178
|
}), 128))
|
|
9165
9179
|
]),
|
|
9166
|
-
|
|
9167
|
-
z(
|
|
9180
|
+
b.$slots["end-items"] ? (l(), h("div", Js, [
|
|
9181
|
+
z(b.$slots, "end-items")
|
|
9168
9182
|
])) : x("", !0)
|
|
9169
9183
|
], 12, Ks)
|
|
9170
9184
|
]));
|