@wwtdev/bsds-components-vue3 2.38.0 → 2.40.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 +926 -897
- package/lib/bsds-components.js.map +1 -1
- package/lib/components.css +1 -1
- package/package.json +3 -3
package/lib/bsds-components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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
|
|
2
|
-
import { BsIcon as ce, BsIconCaretDown 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 L, 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
|
+
import { BsIcon as ce, BsIconCaretDown as Le, 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";
|
|
5
5
|
import "chartjs-adapter-date-fns";
|
|
@@ -756,7 +756,7 @@ const wa = {
|
|
|
756
756
|
type: String,
|
|
757
757
|
typeDef: "string"
|
|
758
758
|
}
|
|
759
|
-
},
|
|
759
|
+
}, Va = {}, La = {
|
|
760
760
|
default: {
|
|
761
761
|
description: "The content of the form container."
|
|
762
762
|
},
|
|
@@ -773,9 +773,9 @@ const wa = {
|
|
|
773
773
|
}
|
|
774
774
|
}, vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
775
775
|
__proto__: null,
|
|
776
|
-
emitDefinitions:
|
|
776
|
+
emitDefinitions: Va,
|
|
777
777
|
propDefinitions: bn,
|
|
778
|
-
slotDefinitions:
|
|
778
|
+
slotDefinitions: La
|
|
779
779
|
}, Symbol.toStringTag, { value: "Module" })), hn = {
|
|
780
780
|
hideMobileToggle: {
|
|
781
781
|
default: !1,
|
|
@@ -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: {
|
|
@@ -1287,7 +1291,7 @@ const wa = {
|
|
|
1287
1291
|
{
|
|
1288
1292
|
// If true, creates a divider-only section without toggle button or title (only when navItems present)
|
|
1289
1293
|
dividerOnly?: boolean,
|
|
1290
|
-
// If true, styles the nav item as
|
|
1294
|
+
// If true, styles the nav item as app links (used on digital transformation project)
|
|
1291
1295
|
appLinks?: boolean,
|
|
1292
1296
|
// If true, positions the nav item at the end (right for horizontal, bottom for vertical) and treats as an external link
|
|
1293
1297
|
external?: boolean,
|
|
@@ -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: {
|
|
@@ -1339,6 +1347,13 @@ const wa = {
|
|
|
1339
1347
|
typeDef: "'wide'|'narrow'|'collapsible'",
|
|
1340
1348
|
validator: (e) => ["wide", "narrow", "collapsible"].includes(e)
|
|
1341
1349
|
},
|
|
1350
|
+
bgVariant: {
|
|
1351
|
+
default: "",
|
|
1352
|
+
description: "The background color variant of the vertical navigation.\n When set to `'bg-base'`, the background color will use `bg-base` instead\n of the default `bg-navy-base`. Leave empty or omit for default styling.",
|
|
1353
|
+
type: String,
|
|
1354
|
+
typeDef: "''|'bg-base'",
|
|
1355
|
+
validator: (e) => ["", "bg-base"].includes(e)
|
|
1356
|
+
},
|
|
1342
1357
|
width: {
|
|
1343
1358
|
default: "",
|
|
1344
1359
|
description: "Custom width of the vertical navigation. This will override\n the `variant` prop.",
|
|
@@ -1407,12 +1422,12 @@ const Wa = ["id", "data-stacked"], Ka = ["data-open"], Ha = ["aria-controls", "a
|
|
|
1407
1422
|
setup(e, { emit: n }) {
|
|
1408
1423
|
const t = e;
|
|
1409
1424
|
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
|
|
1425
|
+
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);
|
|
1426
|
+
function p() {
|
|
1412
1427
|
a("toggled", u.value), t.controlled || (i.value = !i.value);
|
|
1413
1428
|
}
|
|
1414
1429
|
return (v, $) => (l(), h("div", {
|
|
1415
|
-
id:
|
|
1430
|
+
id: f(u),
|
|
1416
1431
|
ref_key: "containerRef",
|
|
1417
1432
|
ref: o,
|
|
1418
1433
|
class: "bs-accordion",
|
|
@@ -1428,29 +1443,29 @@ const Wa = ["id", "data-stacked"], Ka = ["data-open"], Ha = ["aria-controls", "a
|
|
|
1428
1443
|
"aria-expanded": c.value,
|
|
1429
1444
|
class: "bs-accordion-toggle",
|
|
1430
1445
|
type: "button",
|
|
1431
|
-
onClick:
|
|
1446
|
+
onClick: p
|
|
1432
1447
|
}, [
|
|
1433
1448
|
v.icon || v.$slots.icon ? (l(), h("span", Ga, [
|
|
1434
1449
|
z(v.$slots, "icon", {}, () => [
|
|
1435
|
-
typeof v.icon == "string" ? (l(), D(
|
|
1450
|
+
typeof v.icon == "string" ? (l(), D(f(ce), {
|
|
1436
1451
|
key: 0,
|
|
1437
1452
|
name: v.icon
|
|
1438
1453
|
}, null, 8, ["name"])) : (l(), D(ae(v.icon), { key: 1 }))
|
|
1439
1454
|
])
|
|
1440
1455
|
])) : x("", !0),
|
|
1441
|
-
w("span", { id:
|
|
1456
|
+
w("span", { id: r.value }, [
|
|
1442
1457
|
z(v.$slots, "header", {}, () => [
|
|
1443
|
-
_(
|
|
1458
|
+
_(L(v.headerText), 1)
|
|
1444
1459
|
])
|
|
1445
1460
|
], 8, Ya),
|
|
1446
|
-
R(
|
|
1461
|
+
R(f(Le), {
|
|
1447
1462
|
size: "md",
|
|
1448
1463
|
"data-position": "end"
|
|
1449
1464
|
})
|
|
1450
1465
|
], 8, Ha)
|
|
1451
1466
|
], 8, Ka),
|
|
1452
1467
|
w("div", {
|
|
1453
|
-
"aria-labelledby":
|
|
1468
|
+
"aria-labelledby": r.value,
|
|
1454
1469
|
class: "bs-accordion-content",
|
|
1455
1470
|
"data-open": c.value,
|
|
1456
1471
|
id: s.value,
|
|
@@ -1471,22 +1486,22 @@ const Wa = ["id", "data-stacked"], Ka = ["data-open"], Ha = ["aria-controls", "a
|
|
|
1471
1486
|
type: "button"
|
|
1472
1487
|
};
|
|
1473
1488
|
function Ke(e, n, t = "button") {
|
|
1474
|
-
const a = Za(
|
|
1475
|
-
const
|
|
1476
|
-
return
|
|
1489
|
+
const a = Za(f(e), n, t), o = C(), i = m(() => {
|
|
1490
|
+
const r = f(e), d = a.value === "button", c = {};
|
|
1491
|
+
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
1492
|
}), u = m(() => {
|
|
1478
|
-
const
|
|
1479
|
-
return
|
|
1493
|
+
const r = { ...n, ...i.value };
|
|
1494
|
+
return r.href = s.value, r;
|
|
1480
1495
|
}), s = m(() => {
|
|
1481
|
-
var
|
|
1482
|
-
const
|
|
1483
|
-
return
|
|
1496
|
+
var d, c;
|
|
1497
|
+
const r = f(e);
|
|
1498
|
+
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
1499
|
});
|
|
1485
1500
|
return Z(
|
|
1486
1501
|
s,
|
|
1487
|
-
(
|
|
1488
|
-
var
|
|
1489
|
-
(
|
|
1502
|
+
(r) => {
|
|
1503
|
+
var d;
|
|
1504
|
+
(d = o.value) == null || d.setAttribute("href", r);
|
|
1490
1505
|
}
|
|
1491
1506
|
), { rootTag: a, attrsToBind: u, btnRef: o };
|
|
1492
1507
|
}
|
|
@@ -1500,18 +1515,18 @@ function Qa(e, n, t) {
|
|
|
1500
1515
|
function it(e) {
|
|
1501
1516
|
const n = m(() => {
|
|
1502
1517
|
var u, s;
|
|
1503
|
-
const i =
|
|
1518
|
+
const i = f(e);
|
|
1504
1519
|
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
1520
|
}), t = m(() => {
|
|
1506
1521
|
var i, u;
|
|
1507
1522
|
return ((u = (i = n.value) == null ? void 0 : i.startsWith) == null ? void 0 : u.call(i, "/")) || !1;
|
|
1508
1523
|
}), a = m(() => {
|
|
1509
1524
|
var u, s;
|
|
1510
|
-
const i =
|
|
1525
|
+
const i = f(e);
|
|
1511
1526
|
return t.value && ((u = i.router) == null ? void 0 : u.navigateTo) || ((s = i.router) == null ? void 0 : s.push) || null;
|
|
1512
1527
|
});
|
|
1513
1528
|
function o(i) {
|
|
1514
|
-
if (
|
|
1529
|
+
if (f(e).disabled) {
|
|
1515
1530
|
i.preventDefault(), i.stopImmediatePropagation();
|
|
1516
1531
|
return;
|
|
1517
1532
|
}
|
|
@@ -1529,31 +1544,31 @@ const Ja = { key: 0 }, _a = {
|
|
|
1529
1544
|
setup(e) {
|
|
1530
1545
|
const n = e;
|
|
1531
1546
|
W(n, "href", "linkTo");
|
|
1532
|
-
const t = Se(), a = et(), { rootTag: o, attrsToBind: i, btnRef: u } = Ke(n, t), { onLinkClick: s } = it(n),
|
|
1547
|
+
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
1548
|
if (n.hoverEffect)
|
|
1534
1549
|
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(
|
|
1550
|
+
}), 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);
|
|
1551
|
+
return (k, y) => (l(), D(ae(f(o)), H({
|
|
1537
1552
|
ref_key: "btnRef",
|
|
1538
1553
|
ref: u,
|
|
1539
1554
|
class: "bs-circle-button",
|
|
1540
1555
|
"data-disabled": k.disabled,
|
|
1541
|
-
"data-direction":
|
|
1556
|
+
"data-direction": d.value,
|
|
1542
1557
|
"data-ghost": k.ghostBtn,
|
|
1543
1558
|
"data-size": k.size,
|
|
1544
|
-
"data-text":
|
|
1559
|
+
"data-text": p.value,
|
|
1545
1560
|
"data-variant": O.value,
|
|
1546
1561
|
"data-component": "bs-circle-button"
|
|
1547
|
-
}, { ...
|
|
1562
|
+
}, { ...f(i), ...r.value }, { onClick: f(s) }), {
|
|
1548
1563
|
default: q(() => [
|
|
1549
1564
|
v.value ? (l(), h("span", Ja, [
|
|
1550
1565
|
z(k.$slots, "default", {}, () => [
|
|
1551
|
-
_(
|
|
1566
|
+
_(L(k.label), 1)
|
|
1552
1567
|
])
|
|
1553
1568
|
])) : x("", !0),
|
|
1554
1569
|
w("span", _a, [
|
|
1555
1570
|
z(k.$slots, "icon", {}, () => [
|
|
1556
|
-
typeof c.value == "string" ? (l(), D(
|
|
1571
|
+
typeof c.value == "string" ? (l(), D(f(ce), {
|
|
1557
1572
|
key: 0,
|
|
1558
1573
|
name: c.value
|
|
1559
1574
|
}, null, 8, ["name"])) : (l(), D(ae(c.value), { key: 1 }))
|
|
@@ -1561,7 +1576,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1561
1576
|
]),
|
|
1562
1577
|
$.value ? (l(), h("span", eo, [
|
|
1563
1578
|
z(k.$slots, "default", {}, () => [
|
|
1564
|
-
_(
|
|
1579
|
+
_(L(k.label), 1)
|
|
1565
1580
|
])
|
|
1566
1581
|
])) : x("", !0)
|
|
1567
1582
|
]),
|
|
@@ -1620,11 +1635,11 @@ const Ja = { key: 0 }, _a = {
|
|
|
1620
1635
|
variant: e.variant
|
|
1621
1636
|
}, {
|
|
1622
1637
|
icon: q(() => [
|
|
1623
|
-
e.direction == "right" ? (l(), D(
|
|
1638
|
+
e.direction == "right" ? (l(), D(f(on), { key: 0 })) : (l(), D(f(an), { key: 1 }))
|
|
1624
1639
|
]),
|
|
1625
1640
|
default: q(() => [
|
|
1626
1641
|
z(n.$slots, "default", {}, () => [
|
|
1627
|
-
_(
|
|
1642
|
+
_(L(e.label), 1)
|
|
1628
1643
|
])
|
|
1629
1644
|
]),
|
|
1630
1645
|
_: 3
|
|
@@ -1659,7 +1674,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1659
1674
|
w("div", ao, [
|
|
1660
1675
|
z(i.$slots, "icon", {}, () => [
|
|
1661
1676
|
i.icon ? (l(), h(J, { key: 0 }, [
|
|
1662
|
-
typeof i.icon == "string" ? (l(), D(
|
|
1677
|
+
typeof i.icon == "string" ? (l(), D(f(ce), {
|
|
1663
1678
|
key: 0,
|
|
1664
1679
|
name: i.icon,
|
|
1665
1680
|
size: "auto"
|
|
@@ -1667,7 +1682,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1667
1682
|
key: 1,
|
|
1668
1683
|
size: "auto"
|
|
1669
1684
|
}))
|
|
1670
|
-
], 64)) : (l(), D(
|
|
1685
|
+
], 64)) : (l(), D(f($t), {
|
|
1671
1686
|
key: 1,
|
|
1672
1687
|
size: "auto"
|
|
1673
1688
|
}))
|
|
@@ -1675,12 +1690,12 @@ const Ja = { key: 0 }, _a = {
|
|
|
1675
1690
|
]),
|
|
1676
1691
|
w("div", oo, [
|
|
1677
1692
|
z(i.$slots, "title", {}, () => [
|
|
1678
|
-
_(
|
|
1693
|
+
_(L(i.title), 1)
|
|
1679
1694
|
])
|
|
1680
1695
|
]),
|
|
1681
1696
|
i.description || i.$slots.description ? (l(), h("div", io, [
|
|
1682
1697
|
z(i.$slots, "description", {}, () => [
|
|
1683
|
-
_(
|
|
1698
|
+
_(L(i.description), 1)
|
|
1684
1699
|
])
|
|
1685
1700
|
])) : x("", !0),
|
|
1686
1701
|
i.hideDismiss ? x("", !0) : (l(), h("button", {
|
|
@@ -1691,7 +1706,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1691
1706
|
type: "button",
|
|
1692
1707
|
onClick: u[0] || (u[0] = (s) => a("close"))
|
|
1693
1708
|
}, [
|
|
1694
|
-
R(
|
|
1709
|
+
R(f(ke))
|
|
1695
1710
|
])),
|
|
1696
1711
|
i.actionLabel ? (l(), D(to, {
|
|
1697
1712
|
key: 2,
|
|
@@ -1710,8 +1725,8 @@ const Ja = { key: 0 }, _a = {
|
|
|
1710
1725
|
props: Bt,
|
|
1711
1726
|
setup(e) {
|
|
1712
1727
|
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 = ((
|
|
1728
|
+
var r, d;
|
|
1729
|
+
const i = ((d = (r = t.value) == null ? void 0 : r.textContent) == null ? void 0 : d.trim()) || "", u = a.value ? a.value + " " : "";
|
|
1715
1730
|
if (!u && !n.dot) return i;
|
|
1716
1731
|
const s = n.count !== 1 ? "s" : "";
|
|
1717
1732
|
return `${i ? `${i}, ` : ""}${u}${n.label}${s}`;
|
|
@@ -1752,7 +1767,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1752
1767
|
w("div", co, [
|
|
1753
1768
|
z(i.$slots, "icon", {}, () => [
|
|
1754
1769
|
i.icon ? (l(), h(J, { key: 0 }, [
|
|
1755
|
-
typeof i.icon == "string" ? (l(), D(
|
|
1770
|
+
typeof i.icon == "string" ? (l(), D(f(ce), {
|
|
1756
1771
|
key: 0,
|
|
1757
1772
|
name: i.icon,
|
|
1758
1773
|
size: "md"
|
|
@@ -1760,7 +1775,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1760
1775
|
key: 1,
|
|
1761
1776
|
size: "md"
|
|
1762
1777
|
}))
|
|
1763
|
-
], 64)) : (l(), D(
|
|
1778
|
+
], 64)) : (l(), D(f(kt), {
|
|
1764
1779
|
key: 1,
|
|
1765
1780
|
size: "md"
|
|
1766
1781
|
}))
|
|
@@ -1774,7 +1789,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1774
1789
|
title: "Close Banner",
|
|
1775
1790
|
onClick: o
|
|
1776
1791
|
}, [
|
|
1777
|
-
R(
|
|
1792
|
+
R(f(ke))
|
|
1778
1793
|
])
|
|
1779
1794
|
])
|
|
1780
1795
|
], 8, ro));
|
|
@@ -1786,7 +1801,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1786
1801
|
const n = e;
|
|
1787
1802
|
W(n, "href", "linkTo");
|
|
1788
1803
|
const t = Se(), { rootTag: a, attrsToBind: o, btnRef: i } = Ke(n, t), { onLinkClick: u } = it(n);
|
|
1789
|
-
return (s,
|
|
1804
|
+
return (s, r) => (l(), D(ae(f(a)), H({
|
|
1790
1805
|
ref_key: "btnRef",
|
|
1791
1806
|
ref: i,
|
|
1792
1807
|
class: "bs-button",
|
|
@@ -1795,7 +1810,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1795
1810
|
"data-size": s.size,
|
|
1796
1811
|
"data-text": s.textBtn,
|
|
1797
1812
|
"data-variant": s.variant
|
|
1798
|
-
},
|
|
1813
|
+
}, f(o), { onClick: f(u) }), {
|
|
1799
1814
|
default: q(() => [
|
|
1800
1815
|
z(s.$slots, "default")
|
|
1801
1816
|
]),
|
|
@@ -1832,13 +1847,13 @@ const Ja = { key: 0 }, _a = {
|
|
|
1832
1847
|
id: e.hintId,
|
|
1833
1848
|
class: "bs-hint",
|
|
1834
1849
|
"data-error": e.error
|
|
1835
|
-
},
|
|
1850
|
+
}, L(t.value), 9, fo)) : x("", !0),
|
|
1836
1851
|
e.charMax ? (l(), h("span", {
|
|
1837
1852
|
key: 1,
|
|
1838
1853
|
"aria-description": "character count over character limit for the preceding text field",
|
|
1839
1854
|
class: "bs-character-count",
|
|
1840
1855
|
"data-error": n.charCount > n.charMax
|
|
1841
|
-
},
|
|
1856
|
+
}, L(n.charCount || "0") + " / " + L(n.charMax), 9, bo)) : x("", !0)
|
|
1842
1857
|
]));
|
|
1843
1858
|
}
|
|
1844
1859
|
}, ho = ["data-disabled", "for"], pe = {
|
|
@@ -1887,10 +1902,10 @@ const Ja = { key: 0 }, _a = {
|
|
|
1887
1902
|
W(t, "inputId", void 0, "Set 'id' directly on the component instead.");
|
|
1888
1903
|
const a = n, o = Se(), i = m(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
1889
1904
|
function u(s) {
|
|
1890
|
-
const
|
|
1891
|
-
a("update:modelValue",
|
|
1905
|
+
const r = o.type === "number" ? parseInt(s.target.value) : s.target.value;
|
|
1906
|
+
a("update:modelValue", r);
|
|
1892
1907
|
}
|
|
1893
|
-
return (s,
|
|
1908
|
+
return (s, r) => (l(), h("input", H({
|
|
1894
1909
|
class: "bs-input",
|
|
1895
1910
|
"data-component": "bs-input",
|
|
1896
1911
|
"data-error": e.error,
|
|
@@ -1966,7 +1981,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1966
1981
|
error: e.error
|
|
1967
1982
|
}, {
|
|
1968
1983
|
default: q(() => [
|
|
1969
|
-
R(
|
|
1984
|
+
R(f(ln)),
|
|
1970
1985
|
R(qe, H({
|
|
1971
1986
|
"data-autowidth": "",
|
|
1972
1987
|
disabled: e.disabled,
|
|
@@ -1981,7 +1996,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1981
1996
|
class: "bs-calendar-clear-btn",
|
|
1982
1997
|
onClick: a[0] || (a[0] = (o) => t.$emit("clear"))
|
|
1983
1998
|
}, [
|
|
1984
|
-
R(
|
|
1999
|
+
R(f(ke), {
|
|
1985
2000
|
size: "sm",
|
|
1986
2001
|
class: "bs-text-black"
|
|
1987
2002
|
})
|
|
@@ -2052,17 +2067,17 @@ const go = ["disabled", "id", "model-value"], wo = ["disabled", "id", "model-val
|
|
|
2052
2067
|
const { value: $ } = v.target, [O, k] = $.split(/ to | - /);
|
|
2053
2068
|
o.value.value = O || "", i.value.value = k || "", u(o.value), u(i.value);
|
|
2054
2069
|
}
|
|
2055
|
-
const
|
|
2056
|
-
function
|
|
2057
|
-
a("ui-input"),
|
|
2070
|
+
const r = Je(s, 1e3);
|
|
2071
|
+
function d(v) {
|
|
2072
|
+
a("ui-input"), r(v);
|
|
2058
2073
|
}
|
|
2059
|
-
const c = m(() => t.listeners.start ? t.listeners.start : {}),
|
|
2074
|
+
const c = m(() => t.listeners.start ? t.listeners.start : {}), p = m(() => t.listeners.end ? t.listeners.end : {});
|
|
2060
2075
|
return (v, $) => (l(), D(He, {
|
|
2061
2076
|
disabled: e.disabled,
|
|
2062
2077
|
error: e.error
|
|
2063
2078
|
}, {
|
|
2064
2079
|
default: q(() => [
|
|
2065
|
-
R(
|
|
2080
|
+
R(f(ln)),
|
|
2066
2081
|
R(qe, {
|
|
2067
2082
|
"data-autowidth": "",
|
|
2068
2083
|
disabled: e.disabled,
|
|
@@ -2071,7 +2086,7 @@ const go = ["disabled", "id", "model-value"], wo = ["disabled", "id", "model-val
|
|
|
2071
2086
|
placeholder: e.placeholder,
|
|
2072
2087
|
required: e.required,
|
|
2073
2088
|
onFocusin: $[0] || ($[0] = (O) => v.$emit("ui-focusin")),
|
|
2074
|
-
onInput:
|
|
2089
|
+
onInput: d,
|
|
2075
2090
|
onChange: s
|
|
2076
2091
|
}, null, 8, ["disabled", "id", "model-value", "placeholder", "required"]),
|
|
2077
2092
|
w("input", H({
|
|
@@ -2089,14 +2104,14 @@ const go = ["disabled", "id", "model-value"], wo = ["disabled", "id", "model-val
|
|
|
2089
2104
|
disabled: e.disabled,
|
|
2090
2105
|
id: `${e.inputId}-end`,
|
|
2091
2106
|
"model-value": e.inputValue.end
|
|
2092
|
-
}, yt(
|
|
2107
|
+
}, yt(p.value, !0)), null, 16, wo),
|
|
2093
2108
|
fe(w("button", {
|
|
2094
2109
|
"aria-label": "Clear",
|
|
2095
2110
|
type: "button",
|
|
2096
2111
|
class: "bs-calendar-clear-btn",
|
|
2097
2112
|
onClick: $[1] || ($[1] = (O) => v.$emit("clear"))
|
|
2098
2113
|
}, [
|
|
2099
|
-
R(
|
|
2114
|
+
R(f(ke), {
|
|
2100
2115
|
size: "sm",
|
|
2101
2116
|
class: "bs-text-black"
|
|
2102
2117
|
})
|
|
@@ -2136,7 +2151,7 @@ function Fe(e, n, t = []) {
|
|
|
2136
2151
|
}), t.length && Z(t, () => n(a));
|
|
2137
2152
|
}
|
|
2138
2153
|
function ye(e = []) {
|
|
2139
|
-
const n = Se(), t = (u) =>
|
|
2154
|
+
const n = Se(), t = (u) => f(e).includes(u), a = m(() => Object.entries(n)), o = m(() => Object.fromEntries(
|
|
2140
2155
|
a.value.filter(([u]) => t(u))
|
|
2141
2156
|
)), i = m(() => Object.fromEntries(
|
|
2142
2157
|
a.value.filter(([u]) => !t(u))
|
|
@@ -2148,7 +2163,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2148
2163
|
props: Xe,
|
|
2149
2164
|
emits: Object.keys(pn),
|
|
2150
2165
|
setup(e, { emit: n }) {
|
|
2151
|
-
const t = e, a = C(null), o = C(1), i = C(null), [u, s] = re(2),
|
|
2166
|
+
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
2167
|
"attributes",
|
|
2153
2168
|
"data-cy",
|
|
2154
2169
|
"expanded",
|
|
@@ -2157,7 +2172,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2157
2172
|
"masks",
|
|
2158
2173
|
"rows",
|
|
2159
2174
|
"trim-weeks"
|
|
2160
|
-
]),
|
|
2175
|
+
]), p = m(
|
|
2161
2176
|
() => {
|
|
2162
2177
|
var g;
|
|
2163
2178
|
return (g = t.exclusiveDates) != null && g.length ? M(t.exclusiveDates) : t.disabledDates;
|
|
@@ -2169,7 +2184,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2169
2184
|
[S]
|
|
2170
2185
|
), Fe(
|
|
2171
2186
|
Wt,
|
|
2172
|
-
(g) =>
|
|
2187
|
+
(g) => r.value = g != null && g.matches && S.value == "2-col" ? y.value : 1,
|
|
2173
2188
|
[y, S]
|
|
2174
2189
|
), ee(() => {
|
|
2175
2190
|
t.inputMode || setTimeout(B, 100);
|
|
@@ -2179,7 +2194,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2179
2194
|
}, (g) => {
|
|
2180
2195
|
g && setTimeout(B, 100);
|
|
2181
2196
|
});
|
|
2182
|
-
function
|
|
2197
|
+
function b(g) {
|
|
2183
2198
|
return t.isRange && g.start && g.end ? `${g.start} to ${g.end}` : !t.isRange && g ? g : "";
|
|
2184
2199
|
}
|
|
2185
2200
|
function M(g) {
|
|
@@ -2207,7 +2222,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2207
2222
|
"data-component": "bs-calendar",
|
|
2208
2223
|
"data-range": g.isRange,
|
|
2209
2224
|
onFocusout: P
|
|
2210
|
-
},
|
|
2225
|
+
}, f(c)), [
|
|
2211
2226
|
g.label || g.$slots.label ? (l(), D(pe, {
|
|
2212
2227
|
key: 0,
|
|
2213
2228
|
for: v.value,
|
|
@@ -2216,16 +2231,16 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2216
2231
|
}, {
|
|
2217
2232
|
default: q(() => [
|
|
2218
2233
|
z(g.$slots, "label", {}, () => [
|
|
2219
|
-
_(
|
|
2234
|
+
_(L(g.label), 1)
|
|
2220
2235
|
])
|
|
2221
2236
|
]),
|
|
2222
2237
|
_: 3
|
|
2223
2238
|
}, 8, ["for", "disabled", "required"])) : x("", !0),
|
|
2224
|
-
R(
|
|
2239
|
+
R(f(da), H({
|
|
2225
2240
|
ref_key: "calendar",
|
|
2226
2241
|
ref: a,
|
|
2227
2242
|
columns: o.value,
|
|
2228
|
-
"disabled-dates":
|
|
2243
|
+
"disabled-dates": p.value,
|
|
2229
2244
|
"max-date": g.maxDate,
|
|
2230
2245
|
"min-date": g.minDate,
|
|
2231
2246
|
mode: "date",
|
|
@@ -2233,9 +2248,9 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2233
2248
|
"model-modifiers": $.value,
|
|
2234
2249
|
popover: { visibility: "focus" },
|
|
2235
2250
|
rows: 1,
|
|
2236
|
-
step:
|
|
2251
|
+
step: r.value,
|
|
2237
2252
|
"onUpdate:modelValue": I[2] || (I[2] = (E) => g.$emit("update:modelValue", E))
|
|
2238
|
-
},
|
|
2253
|
+
}, f(d)), gt({ _: 2 }, [
|
|
2239
2254
|
g.inputMode ? {
|
|
2240
2255
|
name: "default",
|
|
2241
2256
|
fn: q(({ inputValue: E, inputEvents: N, showPopover: G }) => [
|
|
@@ -2245,7 +2260,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2245
2260
|
error: g.error,
|
|
2246
2261
|
"input-id": v.value,
|
|
2247
2262
|
"input-value": E,
|
|
2248
|
-
"input-value-fmt":
|
|
2263
|
+
"input-value-fmt": b(E),
|
|
2249
2264
|
listeners: N,
|
|
2250
2265
|
placeholder: g.placeholder,
|
|
2251
2266
|
"show-clear": O.value,
|
|
@@ -2259,7 +2274,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2259
2274
|
error: g.error,
|
|
2260
2275
|
"input-id": v.value,
|
|
2261
2276
|
listeners: N,
|
|
2262
|
-
"model-value":
|
|
2277
|
+
"model-value": b(E),
|
|
2263
2278
|
placeholder: g.placeholder,
|
|
2264
2279
|
"show-clear": O.value,
|
|
2265
2280
|
required: g.required,
|
|
@@ -2274,7 +2289,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2274
2289
|
error: g.error,
|
|
2275
2290
|
"error-msg": g.errorMsg,
|
|
2276
2291
|
hint: g.hint,
|
|
2277
|
-
"hint-id":
|
|
2292
|
+
"hint-id": f(s)
|
|
2278
2293
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
2279
2294
|
], 16, $o));
|
|
2280
2295
|
}
|
|
@@ -2324,7 +2339,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2324
2339
|
"text-btn": !1
|
|
2325
2340
|
}, {
|
|
2326
2341
|
icon: q(() => [
|
|
2327
|
-
e.direction == "right" ? (l(), D(
|
|
2342
|
+
e.direction == "right" ? (l(), D(f(at), { key: 0 })) : (l(), D(f(nt), { key: 1 }))
|
|
2328
2343
|
]),
|
|
2329
2344
|
_: 1
|
|
2330
2345
|
}, 8, ["disabled", "ghost-btn", "hover-effect", "icon-position", "label", "link-to", "router", "size"]));
|
|
@@ -2367,7 +2382,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2367
2382
|
},
|
|
2368
2383
|
setup(e) {
|
|
2369
2384
|
const n = e, t = C(!1), a = (c) => {
|
|
2370
|
-
const
|
|
2385
|
+
const p = new Date(c), v = p.toTimeString().split(" ")[0], $ = p.toDateString().split(" ").slice(1, 3).join(" ");
|
|
2371
2386
|
return `${v} (${$})`;
|
|
2372
2387
|
}, o = m(() => {
|
|
2373
2388
|
var c;
|
|
@@ -2375,14 +2390,14 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2375
2390
|
});
|
|
2376
2391
|
function i(c) {
|
|
2377
2392
|
try {
|
|
2378
|
-
return c.map((
|
|
2379
|
-
const v =
|
|
2393
|
+
return c.map((p) => {
|
|
2394
|
+
const v = p.label;
|
|
2380
2395
|
let $ = [];
|
|
2381
|
-
if (
|
|
2382
|
-
const O =
|
|
2396
|
+
if (p.data.some((O) => (O == null ? void 0 : O.x) && (O == null ? void 0 : O.y))) {
|
|
2397
|
+
const O = p.data.reduce((k, y) => (k[y.x] = y.y, k), {});
|
|
2383
2398
|
$ = n.dataIdxLabels.map((k) => ({ value: O[k] ?? null }));
|
|
2384
2399
|
} else
|
|
2385
|
-
$ =
|
|
2400
|
+
$ = p.data.map((O) => ({ value: O }));
|
|
2386
2401
|
return { rowLabel: v, dataCells: $ };
|
|
2387
2402
|
});
|
|
2388
2403
|
} catch {
|
|
@@ -2391,60 +2406,60 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2391
2406
|
}
|
|
2392
2407
|
function u(c) {
|
|
2393
2408
|
try {
|
|
2394
|
-
const
|
|
2409
|
+
const p = c.reduce((O, k) => {
|
|
2395
2410
|
const y = k.data.map((S) => S == null ? void 0 : S.x);
|
|
2396
2411
|
return [...O, ...y];
|
|
2397
|
-
}, []), v = Array.from(new Set(
|
|
2412
|
+
}, []), v = Array.from(new Set(p));
|
|
2398
2413
|
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
2414
|
const k = { rowLabel: O }, y = [];
|
|
2400
2415
|
return c.forEach((S) => {
|
|
2401
|
-
const
|
|
2402
|
-
|
|
2416
|
+
const b = { datasetLabel: S.label }, M = S.data.find((P) => P.x === O);
|
|
2417
|
+
b.value = M ? M.y : null, y.push(b);
|
|
2403
2418
|
}), k.dataCells = y, n.xAxisType === "time" && (k.rowLabelFmt = a(O)), k;
|
|
2404
2419
|
});
|
|
2405
2420
|
} catch {
|
|
2406
2421
|
return [];
|
|
2407
2422
|
}
|
|
2408
2423
|
}
|
|
2409
|
-
const s = m(() => o.value ? u(n.data) : i(n.data)),
|
|
2424
|
+
const s = m(() => o.value ? u(n.data) : i(n.data)), r = m(() => ({
|
|
2410
2425
|
colspan: o.value ? n.data.length + 1 : n.dataIdxLabels.length + 1,
|
|
2411
2426
|
title: n.tableTitle,
|
|
2412
2427
|
colHeadingFirst: o.value ? n.xLabel : "Dataset",
|
|
2413
2428
|
colHeadings: o.value ? n.data.map((c) => c.label) : n.dataIdxLabels,
|
|
2414
2429
|
rows: s.value
|
|
2415
|
-
})),
|
|
2430
|
+
})), d = m(() => {
|
|
2416
2431
|
var c;
|
|
2417
2432
|
return t.value && !!((c = s.value) != null && c.length);
|
|
2418
2433
|
});
|
|
2419
2434
|
return ee(() => {
|
|
2420
2435
|
t.value = !0;
|
|
2421
|
-
}), (c,
|
|
2422
|
-
|
|
2436
|
+
}), (c, p) => (l(), h("div", Io, [
|
|
2437
|
+
d.value ? (l(), h("table", {
|
|
2423
2438
|
key: 0,
|
|
2424
|
-
summary:
|
|
2439
|
+
summary: r.value.title
|
|
2425
2440
|
}, [
|
|
2426
2441
|
w("thead", null, [
|
|
2427
2442
|
w("tr", null, [
|
|
2428
2443
|
w("th", {
|
|
2429
|
-
colspan:
|
|
2430
|
-
},
|
|
2444
|
+
colspan: r.value.colspan
|
|
2445
|
+
}, L(r.value.title), 9, To)
|
|
2431
2446
|
]),
|
|
2432
2447
|
w("tr", null, [
|
|
2433
|
-
w("th", Co,
|
|
2434
|
-
(l(!0), h(J, null, de(
|
|
2448
|
+
w("th", Co, L(r.value.colHeadingFirst), 1),
|
|
2449
|
+
(l(!0), h(J, null, de(r.value.colHeadings, (v) => (l(), h("th", {
|
|
2435
2450
|
key: v,
|
|
2436
2451
|
scope: "col"
|
|
2437
|
-
},
|
|
2452
|
+
}, L(v), 1))), 128))
|
|
2438
2453
|
])
|
|
2439
2454
|
]),
|
|
2440
2455
|
w("tbody", null, [
|
|
2441
|
-
(l(!0), h(J, null, de(
|
|
2456
|
+
(l(!0), h(J, null, de(r.value.rows, (v) => (l(), h("tr", {
|
|
2442
2457
|
key: v.rowLabelFmt || v.rowLabel
|
|
2443
2458
|
}, [
|
|
2444
|
-
w("th", Do,
|
|
2459
|
+
w("th", Do, L(v.rowLabelFmt || v.rowLabel), 1),
|
|
2445
2460
|
(l(!0), h(J, null, de(v.dataCells, ($) => (l(), h("td", {
|
|
2446
2461
|
key: `${v.rowLabelFmt || v.rowLabel}${$.datasetLabel}${$.value}`
|
|
2447
|
-
},
|
|
2462
|
+
}, L($.value), 1))), 128))
|
|
2448
2463
|
]))), 128))
|
|
2449
2464
|
])
|
|
2450
2465
|
], 8, Bo)) : x("", !0)
|
|
@@ -2454,8 +2469,8 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2454
2469
|
const a = (o) => {
|
|
2455
2470
|
var i, u;
|
|
2456
2471
|
((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 (
|
|
2472
|
+
var r;
|
|
2473
|
+
return (r = s == null ? void 0 : s.test) == null ? void 0 : r.call(s, o.key);
|
|
2459
2474
|
})) && n(o);
|
|
2460
2475
|
};
|
|
2461
2476
|
ee(() => {
|
|
@@ -2466,41 +2481,41 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2466
2481
|
}, Ue = 16, xo = 20;
|
|
2467
2482
|
function Ao(e, n) {
|
|
2468
2483
|
const t = C(null), a = C(!1), o = C(null), i = "(min-width: 1166px)", u = { tickSize: Ue }, s = { tickSize: xo };
|
|
2469
|
-
let
|
|
2484
|
+
let r, d;
|
|
2470
2485
|
function c(y, S) {
|
|
2471
|
-
let
|
|
2486
|
+
let b;
|
|
2472
2487
|
switch (y) {
|
|
2473
2488
|
case "bar":
|
|
2474
|
-
|
|
2489
|
+
b = "setBarChartConfigs";
|
|
2475
2490
|
break;
|
|
2476
2491
|
case "line":
|
|
2477
|
-
|
|
2492
|
+
b = "setLineChartConfigs";
|
|
2478
2493
|
break;
|
|
2479
2494
|
default:
|
|
2480
2495
|
throw new Error(`Unsupported chart type: ${y}`);
|
|
2481
2496
|
}
|
|
2482
|
-
return new Mo().setCommonConfigs(S).setCustomOptions(S)[
|
|
2497
|
+
return new Mo().setCommonConfigs(S).setCustomOptions(S)[b](S).setPlugins([zo(o), ua]).build();
|
|
2483
2498
|
}
|
|
2484
|
-
function
|
|
2499
|
+
function p(y) {
|
|
2485
2500
|
y.preventDefault(), y.stopImmediatePropagation();
|
|
2486
2501
|
const S = y.target.closest("li");
|
|
2487
|
-
if (S &&
|
|
2488
|
-
const { labelIndex:
|
|
2489
|
-
|
|
2502
|
+
if (S && r) {
|
|
2503
|
+
const { labelIndex: b, datasetIndex: M } = S.dataset;
|
|
2504
|
+
r.setDatasetVisibility(M, !r.isDatasetVisible(M)), r.update(), y.preventDefault(), y.stopImmediatePropagation(), v(M, b);
|
|
2490
2505
|
}
|
|
2491
2506
|
}
|
|
2492
2507
|
function v(y, S) {
|
|
2493
2508
|
var P;
|
|
2494
|
-
const
|
|
2509
|
+
const b = `[data-dataset-index="${y}"][data-label-index="${S}"]`, M = o.value.querySelector(b);
|
|
2495
2510
|
(P = M == null ? void 0 : M.focus) == null || P.call(M);
|
|
2496
2511
|
}
|
|
2497
2512
|
function $(...y) {
|
|
2498
|
-
!
|
|
2513
|
+
!d || !t.value || (rt.register(...y), rt.defaults.font.family = "'Roobert', sans-serif", r = new rt(t.value, d));
|
|
2499
2514
|
}
|
|
2500
2515
|
const O = Je(function(y) {
|
|
2501
|
-
|
|
2516
|
+
d && (d.updateOptions(y), r.options = d.options, r.update());
|
|
2502
2517
|
}, 100), k = Je(function(y) {
|
|
2503
|
-
|
|
2518
|
+
d && (d.updateData(y), r.data = d.data, r.update());
|
|
2504
2519
|
}, 100);
|
|
2505
2520
|
return Fe(
|
|
2506
2521
|
i,
|
|
@@ -2509,13 +2524,13 @@ function Ao(e, n) {
|
|
|
2509
2524
|
), ee(() => {
|
|
2510
2525
|
var y;
|
|
2511
2526
|
try {
|
|
2512
|
-
|
|
2527
|
+
d = c(e, n), (y = o.value) == null || y.addEventListener("click", p);
|
|
2513
2528
|
} catch (S) {
|
|
2514
|
-
console.error("Error creating chart config", S),
|
|
2529
|
+
console.error("Error creating chart config", S), d = null;
|
|
2515
2530
|
}
|
|
2516
|
-
}), Ae([" ", "Enter"],
|
|
2531
|
+
}), Ae([" ", "Enter"], p, o), tt(() => {
|
|
2517
2532
|
var y;
|
|
2518
|
-
(y = o.value) == null || y.removeEventListener("click",
|
|
2533
|
+
(y = o.value) == null || y.removeEventListener("click", p), r == null || r.destroy();
|
|
2519
2534
|
}), Z([
|
|
2520
2535
|
() => n.customOptions,
|
|
2521
2536
|
() => n.showTooltips,
|
|
@@ -2646,10 +2661,10 @@ function zt(e) {
|
|
|
2646
2661
|
xAxisType: i,
|
|
2647
2662
|
xLabel: u,
|
|
2648
2663
|
yLabel: s,
|
|
2649
|
-
yMax:
|
|
2650
|
-
yMin:
|
|
2664
|
+
yMax: r,
|
|
2665
|
+
yMin: d,
|
|
2651
2666
|
customOptions: c,
|
|
2652
|
-
tickSize:
|
|
2667
|
+
tickSize: p
|
|
2653
2668
|
} = e, v = {
|
|
2654
2669
|
x: {
|
|
2655
2670
|
grid: {
|
|
@@ -2659,7 +2674,7 @@ function zt(e) {
|
|
|
2659
2674
|
stacked: o,
|
|
2660
2675
|
ticks: {
|
|
2661
2676
|
font: {
|
|
2662
|
-
size:
|
|
2677
|
+
size: p || Ue
|
|
2663
2678
|
}
|
|
2664
2679
|
},
|
|
2665
2680
|
title: {
|
|
@@ -2675,11 +2690,11 @@ function zt(e) {
|
|
|
2675
2690
|
display: a
|
|
2676
2691
|
},
|
|
2677
2692
|
stacked: o,
|
|
2678
|
-
suggestedMax:
|
|
2679
|
-
suggestedMin:
|
|
2693
|
+
suggestedMax: r,
|
|
2694
|
+
suggestedMin: d,
|
|
2680
2695
|
ticks: {
|
|
2681
2696
|
font: {
|
|
2682
|
-
size:
|
|
2697
|
+
size: p || Ue
|
|
2683
2698
|
}
|
|
2684
2699
|
},
|
|
2685
2700
|
title: {
|
|
@@ -2722,7 +2737,7 @@ class Tn {
|
|
|
2722
2737
|
return n;
|
|
2723
2738
|
}
|
|
2724
2739
|
}
|
|
2725
|
-
class
|
|
2740
|
+
class Vo extends Tn {
|
|
2726
2741
|
constructor({ data: n, options: t, plugins: a }) {
|
|
2727
2742
|
super({ type: "bar", data: n, options: t, plugins: a });
|
|
2728
2743
|
}
|
|
@@ -2746,7 +2761,7 @@ class Lo extends Tn {
|
|
|
2746
2761
|
this.options = o;
|
|
2747
2762
|
}
|
|
2748
2763
|
}
|
|
2749
|
-
class
|
|
2764
|
+
class Lo extends Tn {
|
|
2750
2765
|
constructor({ data: n, options: t, plugins: a }) {
|
|
2751
2766
|
super({ type: "line", data: n, options: t, plugins: a });
|
|
2752
2767
|
}
|
|
@@ -2840,9 +2855,9 @@ class Mo {
|
|
|
2840
2855
|
};
|
|
2841
2856
|
switch (this.type) {
|
|
2842
2857
|
case "bar":
|
|
2843
|
-
return new Lo(n);
|
|
2844
|
-
case "line":
|
|
2845
2858
|
return new Vo(n);
|
|
2859
|
+
case "line":
|
|
2860
|
+
return new Lo(n);
|
|
2846
2861
|
default:
|
|
2847
2862
|
throw new Error(`Unsupported chart type: ${this.type}`);
|
|
2848
2863
|
}
|
|
@@ -3021,49 +3036,49 @@ const No = {
|
|
|
3021
3036
|
setup(e, { emit: n }) {
|
|
3022
3037
|
const t = e;
|
|
3023
3038
|
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),
|
|
3039
|
+
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
3040
|
function $() {
|
|
3026
|
-
s.value && (s.value.indeterminate = c.value && !
|
|
3041
|
+
s.value && (s.value.indeterminate = c.value && !d.value);
|
|
3027
3042
|
}
|
|
3028
3043
|
function O(S) {
|
|
3029
3044
|
a("update:modelValue", S);
|
|
3030
3045
|
}
|
|
3031
3046
|
function k(S) {
|
|
3032
|
-
const
|
|
3033
|
-
S ?
|
|
3047
|
+
const b = [...t.modelValue];
|
|
3048
|
+
S ? b.push(t.value) : b.splice(b.indexOf(t.value), 1), a("update:modelValue", b);
|
|
3034
3049
|
}
|
|
3035
3050
|
function y(S) {
|
|
3036
|
-
const { checked:
|
|
3037
|
-
|
|
3051
|
+
const { checked: b } = S.target;
|
|
3052
|
+
p.value ? k(b) : O(b);
|
|
3038
3053
|
}
|
|
3039
|
-
return Z(
|
|
3054
|
+
return Z(d, $), Z(c, $), ee($), (S, b) => (l(), h("div", H({
|
|
3040
3055
|
class: "bs-boolean",
|
|
3041
3056
|
"data-component": "bs-checkbox",
|
|
3042
3057
|
"data-disabled": e.disabled,
|
|
3043
3058
|
"data-error": e.error,
|
|
3044
3059
|
"data-size": e.size
|
|
3045
|
-
},
|
|
3060
|
+
}, f(i)), [
|
|
3046
3061
|
w("input", H({
|
|
3047
3062
|
ref_key: "inputEl",
|
|
3048
3063
|
ref: s,
|
|
3049
|
-
checked:
|
|
3064
|
+
checked: d.value,
|
|
3050
3065
|
"data-error": e.error,
|
|
3051
3066
|
disabled: e.disabled,
|
|
3052
|
-
id: S.$attrs.id ||
|
|
3067
|
+
id: S.$attrs.id || r.value,
|
|
3053
3068
|
required: e.required,
|
|
3054
3069
|
value: e.value || "on",
|
|
3055
3070
|
type: "checkbox",
|
|
3056
3071
|
onChange: y
|
|
3057
|
-
},
|
|
3072
|
+
}, f(u)), null, 16, Fo),
|
|
3058
3073
|
e.label || S.$slots.label ? (l(), D(pe, {
|
|
3059
3074
|
key: 0,
|
|
3060
|
-
for: S.$attrs.id ||
|
|
3075
|
+
for: S.$attrs.id || r.value,
|
|
3061
3076
|
disabled: e.disabled,
|
|
3062
3077
|
required: e.required
|
|
3063
3078
|
}, {
|
|
3064
3079
|
default: q(() => [
|
|
3065
3080
|
z(S.$slots, "label", {}, () => [
|
|
3066
|
-
_(
|
|
3081
|
+
_(L(e.label), 1)
|
|
3067
3082
|
])
|
|
3068
3083
|
]),
|
|
3069
3084
|
_: 3
|
|
@@ -3256,19 +3271,19 @@ const No = {
|
|
|
3256
3271
|
"after-leave"
|
|
3257
3272
|
],
|
|
3258
3273
|
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,
|
|
3274
|
+
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);
|
|
3275
|
+
Et([i, r], () => {
|
|
3261
3276
|
s.value && a("close");
|
|
3262
3277
|
}), Ae(["Escape"], () => {
|
|
3263
3278
|
s.value && a("close");
|
|
3264
3279
|
});
|
|
3265
|
-
const { breakoutStub:
|
|
3280
|
+
const { breakoutStub: p, breakoutMounted: v } = Wo(t.breakout, t.containerId);
|
|
3266
3281
|
me("dropdownEnter", u), me("dropdownAfterEnter", s), me("dropdownShown", m(() => t.shown));
|
|
3267
3282
|
const $ = (B, g) => {
|
|
3268
3283
|
i.value.style.setProperty(B, g);
|
|
3269
3284
|
};
|
|
3270
3285
|
function O() {
|
|
3271
|
-
const B =
|
|
3286
|
+
const B = d.value.getBoundingClientRect(), g = r.value.getBoundingClientRect(), I = i.value.getBoundingClientRect();
|
|
3272
3287
|
k(B, g), y(B, g, I);
|
|
3273
3288
|
}
|
|
3274
3289
|
function k(B, g) {
|
|
@@ -3293,13 +3308,13 @@ const No = {
|
|
|
3293
3308
|
}
|
|
3294
3309
|
function S() {
|
|
3295
3310
|
if (t.width === "anchor") {
|
|
3296
|
-
const B =
|
|
3311
|
+
const B = r.value.getBoundingClientRect();
|
|
3297
3312
|
$("--dropdown-wscreen-width", `${B.width}px`);
|
|
3298
3313
|
} else
|
|
3299
3314
|
$("--dropdown-wscreen-width", "");
|
|
3300
3315
|
}
|
|
3301
|
-
function
|
|
3302
|
-
u.value = !0,
|
|
3316
|
+
function b() {
|
|
3317
|
+
u.value = !0, r.value = document.getElementById(t.anchorId), O(), S(), a("enter");
|
|
3303
3318
|
}
|
|
3304
3319
|
function M() {
|
|
3305
3320
|
s.value = !0, a("after-enter");
|
|
@@ -3313,8 +3328,8 @@ const No = {
|
|
|
3313
3328
|
ref_key: "dropdownContainerRef",
|
|
3314
3329
|
ref: o,
|
|
3315
3330
|
breakout: e.breakout,
|
|
3316
|
-
breakoutMounted:
|
|
3317
|
-
breakoutStub: p
|
|
3331
|
+
breakoutMounted: f(v),
|
|
3332
|
+
breakoutStub: f(p),
|
|
3318
3333
|
containerId: e.containerId
|
|
3319
3334
|
}, {
|
|
3320
3335
|
default: q(() => [
|
|
@@ -3323,7 +3338,7 @@ const No = {
|
|
|
3323
3338
|
preloaded: e.preloaded,
|
|
3324
3339
|
shown: e.shown,
|
|
3325
3340
|
onAfterEnter: M,
|
|
3326
|
-
onEnter:
|
|
3341
|
+
onEnter: b,
|
|
3327
3342
|
onAfterLeave: P
|
|
3328
3343
|
}, {
|
|
3329
3344
|
default: q(() => [
|
|
@@ -3337,15 +3352,15 @@ const No = {
|
|
|
3337
3352
|
}, B.$attrs), [
|
|
3338
3353
|
e.helperText ? (l(), h("header", Go, [
|
|
3339
3354
|
w("div", null, [
|
|
3340
|
-
w("h3", null,
|
|
3341
|
-
e.helperDescription ? (l(), h("p", Yo,
|
|
3355
|
+
w("h3", null, L(e.helperText), 1),
|
|
3356
|
+
e.helperDescription ? (l(), h("p", Yo, L(e.helperDescription), 1)) : x("", !0)
|
|
3342
3357
|
]),
|
|
3343
3358
|
w("button", {
|
|
3344
3359
|
type: "button",
|
|
3345
3360
|
title: "close",
|
|
3346
3361
|
onClick: g[0] || (g[0] = () => a("close"))
|
|
3347
3362
|
}, [
|
|
3348
|
-
R(
|
|
3363
|
+
R(f(ke))
|
|
3349
3364
|
])
|
|
3350
3365
|
])) : x("", !0),
|
|
3351
3366
|
z(B.$slots, "default")
|
|
@@ -3436,7 +3451,7 @@ const No = {
|
|
|
3436
3451
|
const t = e;
|
|
3437
3452
|
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
3453
|
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 (
|
|
3454
|
+
return (r, d) => (l(), D(Xo, {
|
|
3440
3455
|
"anchor-id": s.value,
|
|
3441
3456
|
breakout: e.breakout,
|
|
3442
3457
|
"container-id": e.containerId,
|
|
@@ -3444,16 +3459,16 @@ const No = {
|
|
|
3444
3459
|
"helper-text": e.helperText,
|
|
3445
3460
|
position: u.value,
|
|
3446
3461
|
preloaded: e.preloaded,
|
|
3447
|
-
shown:
|
|
3462
|
+
shown: f(o),
|
|
3448
3463
|
"use-mobile-style": e.useMobileStyle,
|
|
3449
3464
|
width: i.value,
|
|
3450
|
-
onClose:
|
|
3451
|
-
onEnter:
|
|
3452
|
-
onAfterEnter:
|
|
3453
|
-
onAfterLeave:
|
|
3465
|
+
onClose: d[0] || (d[0] = () => a("close")),
|
|
3466
|
+
onEnter: d[1] || (d[1] = () => a("enter")),
|
|
3467
|
+
onAfterEnter: d[2] || (d[2] = () => a("after-enter")),
|
|
3468
|
+
onAfterLeave: d[3] || (d[3] = () => a("after-leave"))
|
|
3454
3469
|
}, {
|
|
3455
3470
|
default: q(() => [
|
|
3456
|
-
z(
|
|
3471
|
+
z(r.$slots, "default")
|
|
3457
3472
|
]),
|
|
3458
3473
|
_: 3
|
|
3459
3474
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
|
|
@@ -3512,10 +3527,10 @@ const No = {
|
|
|
3512
3527
|
show: !!(t.modelValue || t.optionsId),
|
|
3513
3528
|
text: t.modelValue ? "Clear this field" : t.optionsId ? "Toggle options dropdown" : ""
|
|
3514
3529
|
})), s = m(() => u.value.icon === "close");
|
|
3515
|
-
function
|
|
3530
|
+
function r() {
|
|
3516
3531
|
s.value ? a("clear") : a("toggled");
|
|
3517
3532
|
}
|
|
3518
|
-
return (
|
|
3533
|
+
return (d, c) => (l(), D(He, {
|
|
3519
3534
|
"aria-live": "polite",
|
|
3520
3535
|
disabled: e.disabled,
|
|
3521
3536
|
error: e.error,
|
|
@@ -3539,32 +3554,32 @@ const No = {
|
|
|
3539
3554
|
placeholder: e.placeholder,
|
|
3540
3555
|
required: e.required,
|
|
3541
3556
|
role: e.optionsId ? "combobox" : void 0,
|
|
3542
|
-
onFocus: c[0] || (c[0] = (
|
|
3543
|
-
onInput: c[1] || (c[1] = (
|
|
3557
|
+
onFocus: c[0] || (c[0] = (p) => d.$emit("input-focus")),
|
|
3558
|
+
onInput: c[1] || (c[1] = (p) => d.$emit("update:modelValue", p.target.value)),
|
|
3544
3559
|
onKeydown: [
|
|
3545
|
-
c[2] || (c[2] = Ye(Ce((
|
|
3546
|
-
c[3] || (c[3] = Ye(Ce((
|
|
3560
|
+
c[2] || (c[2] = Ye(Ce((p) => d.$emit("input-shift-tab"), ["shift"]), ["tab"])),
|
|
3561
|
+
c[3] || (c[3] = Ye(Ce((p) => d.$emit("input-tab"), ["exact"]), ["tab"]))
|
|
3547
3562
|
],
|
|
3548
|
-
onMousedown: c[4] || (c[4] = (
|
|
3549
|
-
onMouseup: c[5] || (c[5] = (
|
|
3550
|
-
},
|
|
3563
|
+
onMousedown: c[4] || (c[4] = (p) => d.$emit("input-mousedown")),
|
|
3564
|
+
onMouseup: c[5] || (c[5] = (p) => d.$emit("input-mouseup"))
|
|
3565
|
+
}, d.$attrs), null, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup", "aria-invalid", "data-error", "disabled", "model-value", "placeholder", "required", "role"]),
|
|
3551
3566
|
fe(w("button", {
|
|
3552
3567
|
"aria-controls": !s.value && e.optionsId ? e.optionsId : void 0,
|
|
3553
3568
|
"aria-expanded": !s.value && e.optionsId ? e.open : void 0,
|
|
3554
3569
|
"data-open": s.value ? void 0 : e.open,
|
|
3555
3570
|
"data-part": "right",
|
|
3556
3571
|
disabled: e.disabled,
|
|
3557
|
-
id:
|
|
3572
|
+
id: f(i),
|
|
3558
3573
|
style: { cursor: "pointer" },
|
|
3559
3574
|
type: "button",
|
|
3560
|
-
onClick:
|
|
3575
|
+
onClick: r
|
|
3561
3576
|
}, [
|
|
3562
|
-
w("span", Qo,
|
|
3563
|
-
s.value ? (l(), D(
|
|
3577
|
+
w("span", Qo, L(u.value.text), 1),
|
|
3578
|
+
s.value ? (l(), D(f(ke), {
|
|
3564
3579
|
key: 0,
|
|
3565
3580
|
role: "presentation",
|
|
3566
3581
|
size: "md"
|
|
3567
|
-
})) : (l(), D(
|
|
3582
|
+
})) : (l(), D(f(Le), {
|
|
3568
3583
|
key: 1,
|
|
3569
3584
|
role: "presentation",
|
|
3570
3585
|
size: "md"
|
|
@@ -3626,9 +3641,9 @@ const No = {
|
|
|
3626
3641
|
variant: "notext"
|
|
3627
3642
|
}, null, 8, ["count"])) : x("", !0),
|
|
3628
3643
|
z(a.$slots, "label", {}, () => [
|
|
3629
|
-
_(
|
|
3644
|
+
_(L(e.label), 1)
|
|
3630
3645
|
]),
|
|
3631
|
-
R(
|
|
3646
|
+
R(f(Le))
|
|
3632
3647
|
], 8, _o));
|
|
3633
3648
|
}
|
|
3634
3649
|
}, Cn = (e, n, t = "id") => {
|
|
@@ -3655,12 +3670,12 @@ const No = {
|
|
|
3655
3670
|
const n = e, t = C(null), a = ue("optionsId", C("")), o = ue("handleOptionSelect", () => {
|
|
3656
3671
|
}), i = ue("registerOptionById", () => {
|
|
3657
3672
|
}), u = m(() => typeof n.value != "object" ? "" : n.valueIdKey), s = m(() => Cn(a.value, n.value, u.value));
|
|
3658
|
-
function d
|
|
3659
|
-
o(t.value),
|
|
3673
|
+
function r(d) {
|
|
3674
|
+
o(t.value), d.stopPropagation();
|
|
3660
3675
|
}
|
|
3661
3676
|
return ee(() => {
|
|
3662
3677
|
i({ id: s.value, val: n.value });
|
|
3663
|
-
}), (
|
|
3678
|
+
}), (d, c) => (l(), h("li", {
|
|
3664
3679
|
ref_key: "optionRef",
|
|
3665
3680
|
ref: t,
|
|
3666
3681
|
"data-component": "bs-dropdown-option",
|
|
@@ -3670,9 +3685,9 @@ const No = {
|
|
|
3670
3685
|
"data-variant": e.variant || void 0,
|
|
3671
3686
|
id: s.value,
|
|
3672
3687
|
role: "option",
|
|
3673
|
-
onClick:
|
|
3688
|
+
onClick: r
|
|
3674
3689
|
}, [
|
|
3675
|
-
z(
|
|
3690
|
+
z(d.$slots, "default")
|
|
3676
3691
|
], 8, ti));
|
|
3677
3692
|
}
|
|
3678
3693
|
}, ni = ["data-img-size", "data-initials", "data-no-img"], ai = ["src", "alt"], Dn = {
|
|
@@ -3742,7 +3757,7 @@ const No = {
|
|
|
3742
3757
|
"data-checked": i.checkbox.checked
|
|
3743
3758
|
}, null, 8, oi)) : x("", !0),
|
|
3744
3759
|
i.icon ? (l(), h("span", ii, [
|
|
3745
|
-
typeof i.icon == "string" ? (l(), D(
|
|
3760
|
+
typeof i.icon == "string" ? (l(), D(f(ce), {
|
|
3746
3761
|
key: 0,
|
|
3747
3762
|
name: i.icon
|
|
3748
3763
|
}, null, 8, ["name"])) : (l(), D(ae(i.icon), { key: 1 }))
|
|
@@ -3758,8 +3773,8 @@ const No = {
|
|
|
3758
3773
|
i.labelHtml ? (l(), h("span", {
|
|
3759
3774
|
key: 3,
|
|
3760
3775
|
innerHTML: i.labelHtml
|
|
3761
|
-
}, null, 8, li)) : (l(), h("span", si,
|
|
3762
|
-
i.description ? (l(), h("span", ri,
|
|
3776
|
+
}, null, 8, li)) : (l(), h("span", si, L(i.label), 1)),
|
|
3777
|
+
i.description ? (l(), h("span", ri, L(i.description), 1)) : x("", !0)
|
|
3763
3778
|
]),
|
|
3764
3779
|
_: 2
|
|
3765
3780
|
}, 1032, ["aria-checked", "value-id-key", "value", "variant"]))), 128)),
|
|
@@ -3821,24 +3836,24 @@ const No = {
|
|
|
3821
3836
|
"data-component": "bs-input-search",
|
|
3822
3837
|
"data-variant": e.variant,
|
|
3823
3838
|
disabled: e.disabled
|
|
3824
|
-
},
|
|
3839
|
+
}, f(a)), {
|
|
3825
3840
|
default: q(() => [
|
|
3826
|
-
e.hideSearchIcon ? x("", !0) : (l(), D(
|
|
3841
|
+
e.hideSearchIcon ? x("", !0) : (l(), D(f(Xn), { key: 0 })),
|
|
3827
3842
|
R(qe, H({
|
|
3828
3843
|
"data-autowidth": "",
|
|
3829
3844
|
disabled: e.disabled,
|
|
3830
3845
|
id: u.$attrs.id || e.inputId,
|
|
3831
3846
|
placeholder: e.placeholder,
|
|
3832
3847
|
value: e.value || e.modelValue
|
|
3833
|
-
},
|
|
3834
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
3848
|
+
}, f(o), {
|
|
3849
|
+
"onUpdate:modelValue": s[0] || (s[0] = (r) => u.$emit("update:modelValue", r))
|
|
3835
3850
|
}), null, 16, ["disabled", "id", "placeholder", "value"]),
|
|
3836
3851
|
fe(w("button", {
|
|
3837
3852
|
title: "Clear",
|
|
3838
3853
|
type: "button",
|
|
3839
|
-
onClick: s[1] || (s[1] = (
|
|
3854
|
+
onClick: s[1] || (s[1] = (r) => u.$emit("clear"))
|
|
3840
3855
|
}, [
|
|
3841
|
-
R(
|
|
3856
|
+
R(f(ke), { size: "sm" })
|
|
3842
3857
|
], 512), [
|
|
3843
3858
|
[be, i.value]
|
|
3844
3859
|
])
|
|
@@ -3891,17 +3906,17 @@ const No = {
|
|
|
3891
3906
|
setup(e, { expose: n, emit: t }) {
|
|
3892
3907
|
const a = e;
|
|
3893
3908
|
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),
|
|
3909
|
+
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
3910
|
let v = {};
|
|
3896
3911
|
const $ = ue("dropdownEnter", C(!1)), O = ue("dropdownAfterEnter", C(!1)), k = ue("dropdownShown", C(!1));
|
|
3897
3912
|
me("optionsId", m(() => a.optionsId)), me("handleOptionSelect", $e), me("registerOptionById", ({ id: U, val: K }) => {
|
|
3898
3913
|
v[U] = K;
|
|
3899
3914
|
}), ui(u, P, { childList: !0 }), Ae([" ", "Enter", "NumpadEnter"], ge, u), Ae(["ArrowDown", "ArrowUp", "Home", "End"], Ie);
|
|
3900
|
-
const
|
|
3915
|
+
const b = [/^[a-zA-Z0-9]{1}$/], M = {
|
|
3901
3916
|
keys: "",
|
|
3902
3917
|
lastTyped: 0
|
|
3903
3918
|
};
|
|
3904
|
-
Ae(
|
|
3919
|
+
Ae(b, (U) => Ee(U, M)), ee(() => {
|
|
3905
3920
|
P(), G(k.value);
|
|
3906
3921
|
}), De(() => {
|
|
3907
3922
|
v = null;
|
|
@@ -3911,7 +3926,7 @@ const No = {
|
|
|
3911
3926
|
return (U = c.value) == null ? void 0 : U.length;
|
|
3912
3927
|
}],
|
|
3913
3928
|
([U, K]) => {
|
|
3914
|
-
U && K > 0 && (
|
|
3929
|
+
U && K > 0 && (p.value = u.value.scrollHeight > u.value.clientHeight);
|
|
3915
3930
|
}
|
|
3916
3931
|
), Z(O, (U) => {
|
|
3917
3932
|
U && (B(), g());
|
|
@@ -3926,34 +3941,34 @@ const No = {
|
|
|
3926
3941
|
}
|
|
3927
3942
|
function g() {
|
|
3928
3943
|
var U;
|
|
3929
|
-
|
|
3944
|
+
r.value > -1 && (B(), (U = c.value[r.value]) == null || U.scrollIntoView({ block: "nearest" }));
|
|
3930
3945
|
}
|
|
3931
3946
|
function I() {
|
|
3932
3947
|
var U, K;
|
|
3933
|
-
|
|
3948
|
+
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
3949
|
}
|
|
3935
3950
|
function E() {
|
|
3936
3951
|
var U;
|
|
3937
|
-
|
|
3952
|
+
r.value > -1 && ((U = c.value[r.value]) == null || U.removeAttribute("data-active"));
|
|
3938
3953
|
}
|
|
3939
3954
|
function N() {
|
|
3940
3955
|
var U;
|
|
3941
|
-
|
|
3956
|
+
r.value < 0 && (r.value = 0, s.value = (U = c.value[0]) == null ? void 0 : U.id), I();
|
|
3942
3957
|
}
|
|
3943
3958
|
function G(U) {
|
|
3944
3959
|
U ? te() : he();
|
|
3945
3960
|
}
|
|
3946
3961
|
function te() {
|
|
3947
3962
|
var U, K;
|
|
3948
|
-
a.multiselect || (
|
|
3963
|
+
a.multiselect || (d.value = c.value.findIndex(
|
|
3949
3964
|
// valueIdKey will only be present if value is an object
|
|
3950
3965
|
(ie) => ie.dataset.valueIdKey ? ie.id === Cn(a.optionsId, o.value, ie.dataset.valueIdKey) : ie.dataset.value === String(o.value)
|
|
3951
|
-
), !a.multiselect &&
|
|
3966
|
+
), !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
3967
|
}
|
|
3953
3968
|
function he() {
|
|
3954
3969
|
c.value.forEach((U) => {
|
|
3955
3970
|
U.removeAttribute("data-selected"), U.setAttribute("aria-selected", "false");
|
|
3956
|
-
}), E(),
|
|
3971
|
+
}), E(), d.value = -1, r.value = -1, s.value = null;
|
|
3957
3972
|
}
|
|
3958
3973
|
function $e(U) {
|
|
3959
3974
|
var ie;
|
|
@@ -3962,7 +3977,7 @@ const No = {
|
|
|
3962
3977
|
U.dataset.valueType == "number" && (K = Number(K)), s.value = U.id, E(), i("update:modelValue", K), i("close");
|
|
3963
3978
|
}
|
|
3964
3979
|
function ge(U) {
|
|
3965
|
-
$e(c.value[
|
|
3980
|
+
$e(c.value[r.value]), U.preventDefault();
|
|
3966
3981
|
}
|
|
3967
3982
|
function Ie(U) {
|
|
3968
3983
|
if (k.value)
|
|
@@ -3985,10 +4000,10 @@ const No = {
|
|
|
3985
4000
|
let K;
|
|
3986
4001
|
switch (U) {
|
|
3987
4002
|
case "up":
|
|
3988
|
-
K =
|
|
4003
|
+
K = r.value - 1 < 0 ? c.value.length - 1 : r.value - 1;
|
|
3989
4004
|
break;
|
|
3990
4005
|
case "down":
|
|
3991
|
-
K = (
|
|
4006
|
+
K = (r.value + 1) % c.value.length;
|
|
3992
4007
|
break;
|
|
3993
4008
|
case "home":
|
|
3994
4009
|
K = 0;
|
|
@@ -4006,10 +4021,10 @@ const No = {
|
|
|
4006
4021
|
ie > -1 && Oe(ie, !1);
|
|
4007
4022
|
}
|
|
4008
4023
|
function Oe(U, K = !0) {
|
|
4009
|
-
E(),
|
|
4024
|
+
E(), r.value = U, document.activeElement !== u.value && K ? u.value.focus() : I();
|
|
4010
4025
|
}
|
|
4011
4026
|
return n({
|
|
4012
|
-
activeIndex:
|
|
4027
|
+
activeIndex: r,
|
|
4013
4028
|
optionEls: c,
|
|
4014
4029
|
optionsRef: u,
|
|
4015
4030
|
refreshOptions: P,
|
|
@@ -4022,10 +4037,10 @@ const No = {
|
|
|
4022
4037
|
"aria-live": "polite",
|
|
4023
4038
|
class: "bs-dropdown-options",
|
|
4024
4039
|
"data-component": "bs-dropdown-option-list",
|
|
4025
|
-
"data-overflow":
|
|
4040
|
+
"data-overflow": p.value,
|
|
4026
4041
|
id: e.optionsId,
|
|
4027
4042
|
role: "listbox",
|
|
4028
|
-
tabindex:
|
|
4043
|
+
tabindex: f(k) ? 0 : void 0,
|
|
4029
4044
|
onBlur: E,
|
|
4030
4045
|
onFocus: N,
|
|
4031
4046
|
onKeydown: [
|
|
@@ -4088,11 +4103,11 @@ const No = {
|
|
|
4088
4103
|
const t = e, a = n, o = C(null), i = C([]), u = C([]), s = m(() => {
|
|
4089
4104
|
var k, y;
|
|
4090
4105
|
return ((k = i.value) == null ? void 0 : k.length) && ((y = u.value) == null ? void 0 : y.length);
|
|
4091
|
-
}),
|
|
4106
|
+
}), r = m(() => {
|
|
4092
4107
|
var k, y;
|
|
4093
4108
|
return ((k = i.value) == null ? void 0 : k.length) || ((y = u.value) == null ? void 0 : y.length);
|
|
4094
4109
|
});
|
|
4095
|
-
let
|
|
4110
|
+
let d = !1;
|
|
4096
4111
|
Z(() => t.options, () => {
|
|
4097
4112
|
v(t.selectedOptions);
|
|
4098
4113
|
}), Z(
|
|
@@ -4105,32 +4120,32 @@ const No = {
|
|
|
4105
4120
|
function c() {
|
|
4106
4121
|
o.value && (o.value.refreshOptions(), o.value.optionsRef.focus());
|
|
4107
4122
|
}
|
|
4108
|
-
function
|
|
4123
|
+
function p() {
|
|
4109
4124
|
o.value && (o.value.refreshOptions(), o.value.setCurrentActive());
|
|
4110
4125
|
}
|
|
4111
4126
|
function v(k = []) {
|
|
4112
4127
|
var P;
|
|
4113
4128
|
const y = ((P = k[0]) == null ? void 0 : P[t.valueIdKey]) !== void 0;
|
|
4114
4129
|
y && (k = k.map((B) => B[t.valueIdKey]));
|
|
4115
|
-
const S = new Set(k),
|
|
4130
|
+
const S = new Set(k), b = [], M = [];
|
|
4116
4131
|
t.options.forEach((B) => {
|
|
4117
4132
|
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 =
|
|
4133
|
+
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));
|
|
4134
|
+
}), i.value = b, Re(() => {
|
|
4120
4135
|
u.value = M, Re(() => {
|
|
4121
|
-
|
|
4136
|
+
d && p(), d = !1;
|
|
4122
4137
|
});
|
|
4123
4138
|
});
|
|
4124
4139
|
}
|
|
4125
4140
|
function $(k = []) {
|
|
4126
4141
|
const y = new Set(k), S = [];
|
|
4127
|
-
return t.options.forEach((
|
|
4128
|
-
y.has(
|
|
4142
|
+
return t.options.forEach((b) => {
|
|
4143
|
+
y.has(b.value) && S.push(b.value);
|
|
4129
4144
|
}), S;
|
|
4130
4145
|
}
|
|
4131
4146
|
function O(k) {
|
|
4132
4147
|
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)),
|
|
4148
|
+
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
4149
|
}
|
|
4135
4150
|
return (k, y) => (l(), D(st, {
|
|
4136
4151
|
ref_key: "optlist",
|
|
@@ -4146,7 +4161,7 @@ const No = {
|
|
|
4146
4161
|
"onUpdate:modelValue": O
|
|
4147
4162
|
}, {
|
|
4148
4163
|
default: q(() => [
|
|
4149
|
-
|
|
4164
|
+
r.value ? (l(), h(J, { key: 0 }, [
|
|
4150
4165
|
R(_e, {
|
|
4151
4166
|
options: i.value,
|
|
4152
4167
|
"show-no-options": !1,
|
|
@@ -4188,6 +4203,10 @@ const No = {
|
|
|
4188
4203
|
type: Boolean,
|
|
4189
4204
|
default: !1
|
|
4190
4205
|
},
|
|
4206
|
+
containerId: {
|
|
4207
|
+
type: String,
|
|
4208
|
+
default: ""
|
|
4209
|
+
},
|
|
4191
4210
|
disabled: {
|
|
4192
4211
|
type: Boolean,
|
|
4193
4212
|
default: !1
|
|
@@ -4293,20 +4312,20 @@ const No = {
|
|
|
4293
4312
|
setup(e, { emit: n }) {
|
|
4294
4313
|
const t = e, a = n;
|
|
4295
4314
|
let o = null;
|
|
4296
|
-
const [i, u] = re(2), s = C(!1),
|
|
4315
|
+
const [i, u] = re(2), s = C(!1), r = C(""), d = m(() => t.selectedOptions.length), c = m(
|
|
4297
4316
|
() => t.multiselect ? xn : st
|
|
4298
|
-
),
|
|
4299
|
-
(N) => N.label.toLowerCase().startsWith(
|
|
4317
|
+
), p = m(() => t.optionsId || u.value), v = m(() => t.toggleId || i.value), $ = m(() => r.value ? t.options.filter(
|
|
4318
|
+
(N) => N.label.toLowerCase().startsWith(r.value.toLowerCase())
|
|
4300
4319
|
) : t.options), O = m(() => t.filter ? $.value : t.options), k = () => o || (o = document.getElementById(v.value));
|
|
4301
4320
|
function y() {
|
|
4302
4321
|
const N = document.activeElement;
|
|
4303
|
-
return !N || N.tagName === "BODY" || N.id ===
|
|
4322
|
+
return !N || N.tagName === "BODY" || N.id === p.value;
|
|
4304
4323
|
}
|
|
4305
4324
|
function S() {
|
|
4306
4325
|
var N, G;
|
|
4307
4326
|
s.value = !1, a("close"), y() && ((G = (N = k()) == null ? void 0 : N.focus) == null || G.call(N));
|
|
4308
4327
|
}
|
|
4309
|
-
function
|
|
4328
|
+
function b() {
|
|
4310
4329
|
s.value && S();
|
|
4311
4330
|
}
|
|
4312
4331
|
function M() {
|
|
@@ -4324,10 +4343,10 @@ const No = {
|
|
|
4324
4343
|
t.multiselect || (a("update:selectedOption", N), S());
|
|
4325
4344
|
}
|
|
4326
4345
|
function I() {
|
|
4327
|
-
|
|
4346
|
+
r.value = "";
|
|
4328
4347
|
}
|
|
4329
4348
|
function E(N) {
|
|
4330
|
-
|
|
4349
|
+
r.value = N;
|
|
4331
4350
|
}
|
|
4332
4351
|
return (N, G) => (l(), h("div", {
|
|
4333
4352
|
class: "bs-dropdown-with-toggle",
|
|
@@ -4335,23 +4354,23 @@ const No = {
|
|
|
4335
4354
|
}, [
|
|
4336
4355
|
z(N.$slots, "toggle", {
|
|
4337
4356
|
anchorId: e.anchorId,
|
|
4338
|
-
optionsId:
|
|
4357
|
+
optionsId: p.value,
|
|
4339
4358
|
toggleId: v.value
|
|
4340
4359
|
}, () => [
|
|
4341
4360
|
R(ei, {
|
|
4342
|
-
"aria-controls":
|
|
4361
|
+
"aria-controls": p.value,
|
|
4343
4362
|
"aria-expanded": e.open,
|
|
4344
4363
|
disabled: e.disabled,
|
|
4345
4364
|
id: v.value,
|
|
4346
4365
|
open: e.open,
|
|
4347
|
-
"options-id":
|
|
4366
|
+
"options-id": p.value,
|
|
4348
4367
|
size: e.toggleSize,
|
|
4349
|
-
"badge-count": e.showBadgeCount && e.multiselect ?
|
|
4368
|
+
"badge-count": e.showBadgeCount && e.multiselect ? d.value : void 0,
|
|
4350
4369
|
onClick: G[0] || (G[0] = (te) => N.$emit("toggled"))
|
|
4351
4370
|
}, {
|
|
4352
4371
|
label: q(() => [
|
|
4353
4372
|
z(N.$slots, "toggle-label", {}, () => [
|
|
4354
|
-
_(
|
|
4373
|
+
_(L(e.toggleLabel), 1)
|
|
4355
4374
|
])
|
|
4356
4375
|
]),
|
|
4357
4376
|
_: 3
|
|
@@ -4360,6 +4379,7 @@ const No = {
|
|
|
4360
4379
|
R(lt, {
|
|
4361
4380
|
"anchor-id": e.anchorId || v.value,
|
|
4362
4381
|
breakout: e.breakout,
|
|
4382
|
+
"container-id": e.containerId,
|
|
4363
4383
|
"helper-text": e.helperText,
|
|
4364
4384
|
"helper-description": e.helperDescription,
|
|
4365
4385
|
position: e.dropdownPosition,
|
|
@@ -4367,7 +4387,7 @@ const No = {
|
|
|
4367
4387
|
shown: e.open,
|
|
4368
4388
|
"use-mobile-style": e.useMobileStyle,
|
|
4369
4389
|
width: e.dropdownWidth,
|
|
4370
|
-
onClose:
|
|
4390
|
+
onClose: b,
|
|
4371
4391
|
onEnter: M,
|
|
4372
4392
|
onAfterLeave: I
|
|
4373
4393
|
}, {
|
|
@@ -4375,23 +4395,23 @@ const No = {
|
|
|
4375
4395
|
e.filter ? (l(), h("div", hi, [
|
|
4376
4396
|
R(On, {
|
|
4377
4397
|
"aria-label": e.filterLabel,
|
|
4378
|
-
"model-value":
|
|
4398
|
+
"model-value": r.value,
|
|
4379
4399
|
placeholder: e.filterPlaceholder,
|
|
4380
4400
|
"onUpdate:modelValue": E,
|
|
4381
4401
|
onClear: I
|
|
4382
4402
|
}, null, 8, ["aria-label", "model-value", "placeholder"])
|
|
4383
4403
|
])) : x("", !0),
|
|
4384
|
-
R(
|
|
4404
|
+
R(f(c), {
|
|
4385
4405
|
class: ve({ "filterable-options": e.filter }),
|
|
4386
4406
|
label: e.dropdownLabel,
|
|
4387
4407
|
"model-value": e.selectedOption,
|
|
4388
4408
|
options: e.multiselect ? O.value : void 0,
|
|
4389
|
-
"options-id":
|
|
4409
|
+
"options-id": p.value,
|
|
4390
4410
|
"selected-options": e.selectedOptions,
|
|
4391
4411
|
shown: e.open,
|
|
4392
4412
|
"value-id-key": e.valueIdKey,
|
|
4393
4413
|
onCheckOption: B,
|
|
4394
|
-
onClose: G[1] || (G[1] = (te) => e.multiselect ? void 0 :
|
|
4414
|
+
onClose: G[1] || (G[1] = (te) => e.multiselect ? void 0 : b()),
|
|
4395
4415
|
onOptionsListShiftTab: G[2] || (G[2] = (te) => N.$emit("options-list-shift-tab")),
|
|
4396
4416
|
onOptionsListTab: G[3] || (G[3] = (te) => N.$emit("options-list-tab")),
|
|
4397
4417
|
onUncheckOption: P,
|
|
@@ -4413,14 +4433,14 @@ const No = {
|
|
|
4413
4433
|
onClick: G[4] || (G[4] = () => a("close"))
|
|
4414
4434
|
}, {
|
|
4415
4435
|
default: q(() => [
|
|
4416
|
-
_(
|
|
4436
|
+
_(L(e.filterButtonText), 1)
|
|
4417
4437
|
]),
|
|
4418
4438
|
_: 1
|
|
4419
4439
|
}, 8, ["title"])
|
|
4420
4440
|
])) : x("", !0)
|
|
4421
4441
|
]),
|
|
4422
4442
|
_: 1
|
|
4423
|
-
}, 8, ["anchor-id", "breakout", "helper-text", "helper-description", "position", "shown", "use-mobile-style", "width"])
|
|
4443
|
+
}, 8, ["anchor-id", "breakout", "container-id", "helper-text", "helper-description", "position", "shown", "use-mobile-style", "width"])
|
|
4424
4444
|
], 8, bi));
|
|
4425
4445
|
}
|
|
4426
4446
|
}, zn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
@@ -4490,10 +4510,10 @@ const No = {
|
|
|
4490
4510
|
},
|
|
4491
4511
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
4492
4512
|
setup(e, { emit: n }) {
|
|
4493
|
-
const t = e, a = n, [o, i, u] = re(3), s = C(!1),
|
|
4494
|
-
let
|
|
4513
|
+
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);
|
|
4514
|
+
let p = null;
|
|
4495
4515
|
function v() {
|
|
4496
|
-
return
|
|
4516
|
+
return p || (p = d.value.$el.querySelector("input")), p;
|
|
4497
4517
|
}
|
|
4498
4518
|
function $(P) {
|
|
4499
4519
|
a("combobox:change", P.target.value), a("update:modelValue", P.target.value);
|
|
@@ -4505,19 +4525,19 @@ const No = {
|
|
|
4505
4525
|
a("combobox:input", P.target.value), t.updateOnInput && a("update:modelValue", P.target.value);
|
|
4506
4526
|
}
|
|
4507
4527
|
function y() {
|
|
4508
|
-
s.value = !1, document.activeElement !== v() && (
|
|
4528
|
+
s.value = !1, document.activeElement !== v() && (r.value = !0);
|
|
4509
4529
|
}
|
|
4510
4530
|
function S() {
|
|
4511
|
-
|
|
4531
|
+
r.value = !0;
|
|
4512
4532
|
}
|
|
4513
|
-
function
|
|
4514
|
-
s.value = !0,
|
|
4533
|
+
function b() {
|
|
4534
|
+
s.value = !0, r.value = !1;
|
|
4515
4535
|
}
|
|
4516
4536
|
function M() {
|
|
4517
|
-
|
|
4537
|
+
r.value ? r.value = !1 : s.value = !0;
|
|
4518
4538
|
}
|
|
4519
4539
|
return (P, B) => (l(), D(An, {
|
|
4520
|
-
"anchor-id":
|
|
4540
|
+
"anchor-id": f(i),
|
|
4521
4541
|
disabled: e.disabled,
|
|
4522
4542
|
"dropdown-position": e.dropdownPosition,
|
|
4523
4543
|
"dropdown-width": e.dropdownWidth,
|
|
@@ -4526,7 +4546,7 @@ const No = {
|
|
|
4526
4546
|
multiselect: !1,
|
|
4527
4547
|
open: s.value,
|
|
4528
4548
|
options: e.options,
|
|
4529
|
-
"options-id":
|
|
4549
|
+
"options-id": f(u),
|
|
4530
4550
|
"selected-option": e.modelValue,
|
|
4531
4551
|
"toggle-id": P.$attrs.id || c.value,
|
|
4532
4552
|
"use-mobile-style": e.useMobileStyle,
|
|
@@ -4538,15 +4558,15 @@ const No = {
|
|
|
4538
4558
|
toggle: q(() => [
|
|
4539
4559
|
R(Jo, H({
|
|
4540
4560
|
ref_key: "inputComboboxRef",
|
|
4541
|
-
ref:
|
|
4561
|
+
ref: d,
|
|
4542
4562
|
id: P.$attrs.id || c.value,
|
|
4543
|
-
"container-id":
|
|
4563
|
+
"container-id": f(i),
|
|
4544
4564
|
disabled: e.disabled,
|
|
4545
4565
|
error: e.error,
|
|
4546
4566
|
"hint-id": e.hintId,
|
|
4547
4567
|
"model-value": e.displayValue || e.modelValue,
|
|
4548
4568
|
open: s.value,
|
|
4549
|
-
"options-id":
|
|
4569
|
+
"options-id": f(u),
|
|
4550
4570
|
placeholder: e.placeholder,
|
|
4551
4571
|
required: e.required,
|
|
4552
4572
|
onChange: $,
|
|
@@ -4554,7 +4574,7 @@ const No = {
|
|
|
4554
4574
|
onInput: k,
|
|
4555
4575
|
onInputFocus: M,
|
|
4556
4576
|
onInputMousedown: S,
|
|
4557
|
-
onInputMouseup:
|
|
4577
|
+
onInputMouseup: b,
|
|
4558
4578
|
onInputShiftTab: B[0] || (B[0] = (g) => s.value = !1),
|
|
4559
4579
|
onToggled: B[1] || (B[1] = (g) => s.value = !s.value)
|
|
4560
4580
|
}, P.$attrs), null, 16, ["id", "container-id", "disabled", "error", "hint-id", "model-value", "open", "options-id", "placeholder", "required"])
|
|
@@ -4638,17 +4658,17 @@ const No = {
|
|
|
4638
4658
|
},
|
|
4639
4659
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
4640
4660
|
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 ||
|
|
4661
|
+
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);
|
|
4662
|
+
return (d, c) => (l(), h("div", H({ "data-component": "bs-dropdown-combobox-field" }, f(i)), [
|
|
4663
|
+
e.label || d.$slots.label ? (l(), D(pe, {
|
|
4644
4664
|
key: 0,
|
|
4645
|
-
for:
|
|
4665
|
+
for: d.$attrs.id || r.value,
|
|
4646
4666
|
disabled: e.disabled,
|
|
4647
4667
|
required: e.required
|
|
4648
4668
|
}, {
|
|
4649
4669
|
default: q(() => [
|
|
4650
|
-
z(
|
|
4651
|
-
_(
|
|
4670
|
+
z(d.$slots, "label", {}, () => [
|
|
4671
|
+
_(L(e.label), 1)
|
|
4652
4672
|
])
|
|
4653
4673
|
]),
|
|
4654
4674
|
_: 3
|
|
@@ -4661,8 +4681,8 @@ const No = {
|
|
|
4661
4681
|
error: e.error,
|
|
4662
4682
|
"helper-text": e.helperText,
|
|
4663
4683
|
"helper-description": e.helperDescription,
|
|
4664
|
-
"hint-id":
|
|
4665
|
-
"input-id":
|
|
4684
|
+
"hint-id": f(o),
|
|
4685
|
+
"input-id": d.$attrs.id || r.value,
|
|
4666
4686
|
"model-value": e.modelValue,
|
|
4667
4687
|
options: e.options,
|
|
4668
4688
|
placeholder: e.placeholder,
|
|
@@ -4670,16 +4690,16 @@ const No = {
|
|
|
4670
4690
|
"update-on-input": e.updateOnInput,
|
|
4671
4691
|
"use-mobile-style": e.useMobileStyle,
|
|
4672
4692
|
"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
|
-
},
|
|
4693
|
+
"onCombobox:change": c[0] || (c[0] = (p) => d.$emit("combobox:change", p)),
|
|
4694
|
+
"onCombobox:input": c[1] || (c[1] = (p) => d.$emit("combobox:input", p)),
|
|
4695
|
+
"onUpdate:modelValue": c[2] || (c[2] = (p) => d.$emit("update:modelValue", p))
|
|
4696
|
+
}, 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
4697
|
s.value ? (l(), D(ze, {
|
|
4678
4698
|
key: 1,
|
|
4679
4699
|
error: e.error,
|
|
4680
4700
|
"error-msg": e.errorMsg,
|
|
4681
4701
|
hint: e.hint,
|
|
4682
|
-
"hint-id":
|
|
4702
|
+
"hint-id": f(o)
|
|
4683
4703
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
4684
4704
|
], 16));
|
|
4685
4705
|
}
|
|
@@ -4768,7 +4788,7 @@ const No = {
|
|
|
4768
4788
|
function u() {
|
|
4769
4789
|
a.value && (a.value = !1, t("close"));
|
|
4770
4790
|
}
|
|
4771
|
-
return (s,
|
|
4791
|
+
return (s, r) => (l(), D(f(lt), {
|
|
4772
4792
|
"anchor-id": e.anchorId,
|
|
4773
4793
|
breakout: e.breakout,
|
|
4774
4794
|
"container-id": e.containerId,
|
|
@@ -4780,12 +4800,12 @@ const No = {
|
|
|
4780
4800
|
"use-mobile-style": e.useMobileStyle,
|
|
4781
4801
|
width: e.width,
|
|
4782
4802
|
onClose: u,
|
|
4783
|
-
onAfterEnter:
|
|
4803
|
+
onAfterEnter: r[0] || (r[0] = (d) => t("after-enter")),
|
|
4784
4804
|
onEnter: o,
|
|
4785
|
-
onAfterLeave:
|
|
4805
|
+
onAfterLeave: r[1] || (r[1] = (d) => t("after-leave"))
|
|
4786
4806
|
}, {
|
|
4787
4807
|
default: q(() => [
|
|
4788
|
-
R(
|
|
4808
|
+
R(f(st), {
|
|
4789
4809
|
label: e.label,
|
|
4790
4810
|
"model-value": e.modelValue,
|
|
4791
4811
|
"options-id": e.optionsId,
|
|
@@ -4900,29 +4920,29 @@ const No = {
|
|
|
4900
4920
|
setup(e, { emit: n }) {
|
|
4901
4921
|
const t = e;
|
|
4902
4922
|
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
|
|
4923
|
+
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);
|
|
4924
|
+
function d(c) {
|
|
4905
4925
|
a("update:modelValue", c);
|
|
4906
4926
|
}
|
|
4907
|
-
return (c,
|
|
4927
|
+
return (c, p) => (l(), D(mi, {
|
|
4908
4928
|
"anchor-id": s.value,
|
|
4909
4929
|
breakout: e.breakout,
|
|
4910
4930
|
"container-id": e.containerId,
|
|
4911
4931
|
"helper-description": e.helperDescription,
|
|
4912
4932
|
"helper-text": e.helperText,
|
|
4913
4933
|
label: e.label,
|
|
4914
|
-
"model-value":
|
|
4934
|
+
"model-value": r.value,
|
|
4915
4935
|
"options-id": e.optionsId,
|
|
4916
4936
|
position: u.value,
|
|
4917
4937
|
preloaded: e.preloaded,
|
|
4918
4938
|
"prevent-tab": e.preventTab,
|
|
4919
|
-
shown:
|
|
4939
|
+
shown: f(o),
|
|
4920
4940
|
"use-mobile-style": e.useMobileStyle,
|
|
4921
4941
|
width: i.value,
|
|
4922
|
-
onClose:
|
|
4923
|
-
onAfterEnter:
|
|
4924
|
-
onAfterLeave:
|
|
4925
|
-
"onUpdate:modelValue":
|
|
4942
|
+
onClose: p[0] || (p[0] = (v) => a("close")),
|
|
4943
|
+
onAfterEnter: p[1] || (p[1] = (v) => a("after-enter")),
|
|
4944
|
+
onAfterLeave: p[2] || (p[2] = (v) => a("after-leave")),
|
|
4945
|
+
"onUpdate:modelValue": d
|
|
4926
4946
|
}, {
|
|
4927
4947
|
default: q(() => [
|
|
4928
4948
|
z(c.$slots, "default")
|
|
@@ -4945,12 +4965,12 @@ const No = {
|
|
|
4945
4965
|
}, [
|
|
4946
4966
|
w("div", gi, [
|
|
4947
4967
|
z(u.$slots, "icon", {}, () => [
|
|
4948
|
-
typeof o.value == "string" ? (l(), D(
|
|
4968
|
+
typeof o.value == "string" ? (l(), D(f(ce), {
|
|
4949
4969
|
key: 0,
|
|
4950
4970
|
name: o.value,
|
|
4951
4971
|
size: "auto",
|
|
4952
|
-
onLoading: s[0] || (s[0] = (
|
|
4953
|
-
onLoaded: s[1] || (s[1] = (
|
|
4972
|
+
onLoading: s[0] || (s[0] = (r) => a.value = !1),
|
|
4973
|
+
onLoaded: s[1] || (s[1] = (r) => a.value = !0)
|
|
4954
4974
|
}, null, 8, ["name"])) : (l(), D(ae(o.value), {
|
|
4955
4975
|
key: 1,
|
|
4956
4976
|
size: "auto"
|
|
@@ -4958,10 +4978,10 @@ const No = {
|
|
|
4958
4978
|
])
|
|
4959
4979
|
]),
|
|
4960
4980
|
w("div", null, [
|
|
4961
|
-
w("p", wi,
|
|
4981
|
+
w("p", wi, L(u.title), 1),
|
|
4962
4982
|
u.size !== "xs" ? (l(), h("p", ki, [
|
|
4963
4983
|
z(u.$slots, "description", {}, () => [
|
|
4964
|
-
_(
|
|
4984
|
+
_(L(u.description), 1)
|
|
4965
4985
|
])
|
|
4966
4986
|
])) : x("", !0),
|
|
4967
4987
|
z(u.$slots, "call-to-action")
|
|
@@ -5009,11 +5029,11 @@ const No = {
|
|
|
5009
5029
|
const t = e, a = n, o = C(null), i = m(() => document.getElementById(t.toggleId));
|
|
5010
5030
|
Et([o, i], u), Ae(["Escape"], u);
|
|
5011
5031
|
function u() {
|
|
5012
|
-
var
|
|
5013
|
-
const s = ((
|
|
5032
|
+
var r;
|
|
5033
|
+
const s = ((r = o.value) == null ? void 0 : r.querySelector('[data-shown="true"]')) !== null;
|
|
5014
5034
|
t.shown && !s && a("close");
|
|
5015
5035
|
}
|
|
5016
|
-
return (s,
|
|
5036
|
+
return (s, r) => (l(), D(Ge, {
|
|
5017
5037
|
name: "bs-flyout",
|
|
5018
5038
|
preloaded: e.preloaded,
|
|
5019
5039
|
shown: e.shown
|
|
@@ -5036,7 +5056,7 @@ const No = {
|
|
|
5036
5056
|
"aria-label": "Close",
|
|
5037
5057
|
onClick: u
|
|
5038
5058
|
}, [
|
|
5039
|
-
R(
|
|
5059
|
+
R(f(ke))
|
|
5040
5060
|
])
|
|
5041
5061
|
]),
|
|
5042
5062
|
z(s.$slots, "default")
|
|
@@ -5079,38 +5099,38 @@ const No = {
|
|
|
5079
5099
|
"[tabindex]",
|
|
5080
5100
|
'[contenteditable="true"]'
|
|
5081
5101
|
], u = m(() => {
|
|
5082
|
-
let
|
|
5102
|
+
let p = "";
|
|
5083
5103
|
return i.forEach((v) => {
|
|
5084
|
-
|
|
5085
|
-
}),
|
|
5104
|
+
p += `${t.selectorPrefix}${v}:not([disabled]):not([tabindex="-1"]),`;
|
|
5105
|
+
}), p = p.slice(0, -1), p;
|
|
5086
5106
|
});
|
|
5087
5107
|
ee(() => {
|
|
5088
5108
|
t.active && window.addEventListener("keydown", s);
|
|
5089
5109
|
}), tt(() => {
|
|
5090
5110
|
window.removeEventListener("keydown", s);
|
|
5091
|
-
}), Z(() => t.active, (
|
|
5092
|
-
|
|
5111
|
+
}), Z(() => t.active, (p) => {
|
|
5112
|
+
p ? window.addEventListener("keydown", s) : window.removeEventListener("keydown", s);
|
|
5093
5113
|
});
|
|
5094
|
-
function s(
|
|
5095
|
-
if (
|
|
5114
|
+
function s(p) {
|
|
5115
|
+
if (p.key === "Tab") {
|
|
5096
5116
|
const v = o.value.querySelectorAll(u.value), $ = v[0], O = v[v.length - 1];
|
|
5097
|
-
document.activeElement === $ &&
|
|
5117
|
+
document.activeElement === $ && p.shiftKey ? r(p, O) : document.activeElement === O && !p.shiftKey ? d(p, $) : o.value.contains(document.activeElement) || c(p, $);
|
|
5098
5118
|
}
|
|
5099
5119
|
}
|
|
5100
|
-
function
|
|
5101
|
-
|
|
5120
|
+
function r(p, v) {
|
|
5121
|
+
p.preventDefault(), t.preventFirstShiftTab || v.focus(), a("first-shift-tab", p);
|
|
5102
5122
|
}
|
|
5103
|
-
function
|
|
5104
|
-
|
|
5123
|
+
function d(p, v) {
|
|
5124
|
+
p.preventDefault(), t.preventLastTab || v.focus(), a("last-tab", p);
|
|
5105
5125
|
}
|
|
5106
|
-
function c(
|
|
5107
|
-
|
|
5126
|
+
function c(p, v) {
|
|
5127
|
+
p.preventDefault(), v.focus();
|
|
5108
5128
|
}
|
|
5109
|
-
return (
|
|
5129
|
+
return (p, v) => (l(), h("div", {
|
|
5110
5130
|
ref_key: "focusGuard",
|
|
5111
5131
|
ref: o
|
|
5112
5132
|
}, [
|
|
5113
|
-
z(
|
|
5133
|
+
z(p.$slots, "default")
|
|
5114
5134
|
], 512));
|
|
5115
5135
|
}
|
|
5116
5136
|
}, 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 +5149,7 @@ const No = {
|
|
|
5129
5149
|
w("div", Di, [
|
|
5130
5150
|
n.icon || n.$slots.icon ? (l(), h("div", Oi, [
|
|
5131
5151
|
z(n.$slots, "icon", {}, () => [
|
|
5132
|
-
typeof n.icon == "string" ? (l(), D(
|
|
5152
|
+
typeof n.icon == "string" ? (l(), D(f(ce), {
|
|
5133
5153
|
key: 0,
|
|
5134
5154
|
name: n.icon,
|
|
5135
5155
|
size: "auto"
|
|
@@ -5148,7 +5168,7 @@ const No = {
|
|
|
5148
5168
|
w("span", {
|
|
5149
5169
|
class: "bs-form-container-title",
|
|
5150
5170
|
"data-inactive": n.inactive
|
|
5151
|
-
},
|
|
5171
|
+
}, L(n.title), 9, xi)
|
|
5152
5172
|
]),
|
|
5153
5173
|
_: 1
|
|
5154
5174
|
}, 8, ["required", "disabled"]),
|
|
@@ -5161,7 +5181,7 @@ const No = {
|
|
|
5161
5181
|
class: "bs-form-container-subtitle",
|
|
5162
5182
|
"data-inactive": n.inactive
|
|
5163
5183
|
}, [
|
|
5164
|
-
w("span", null,
|
|
5184
|
+
w("span", null, L(n.subTitle), 1)
|
|
5165
5185
|
], 8, zi)) : x("", !0)
|
|
5166
5186
|
]),
|
|
5167
5187
|
w("div", {
|
|
@@ -5180,36 +5200,40 @@ const No = {
|
|
|
5180
5200
|
], 8, Bi));
|
|
5181
5201
|
}
|
|
5182
5202
|
};
|
|
5183
|
-
function
|
|
5203
|
+
function Vt(e) {
|
|
5184
5204
|
const n = C({}), t = m(() => Wn(e.navData));
|
|
5185
|
-
function a(
|
|
5186
|
-
t.value.forEach((
|
|
5187
|
-
var
|
|
5188
|
-
((
|
|
5205
|
+
function a(c) {
|
|
5206
|
+
t.value.forEach((p) => {
|
|
5207
|
+
var v;
|
|
5208
|
+
((v = p.navItems) == null ? void 0 : v.length) > 0 && !p.dividerOnly && (n.value[p.id] = c);
|
|
5189
5209
|
});
|
|
5190
5210
|
}
|
|
5191
|
-
function o(
|
|
5192
|
-
const
|
|
5193
|
-
return typeof
|
|
5211
|
+
function o(c) {
|
|
5212
|
+
const p = r(c);
|
|
5213
|
+
return typeof p == "string" && p.startsWith("http");
|
|
5214
|
+
}
|
|
5215
|
+
function i(c) {
|
|
5216
|
+
const p = r(c);
|
|
5217
|
+
return o(c) ? window.location.href.startsWith(p) : e.router ? p && e.router.resolve(p).path === e.router.currentRoute.value.path : !1;
|
|
5194
5218
|
}
|
|
5195
|
-
function
|
|
5196
|
-
|
|
5197
|
-
return o(r) ? window.location.href.startsWith(c) : e.router ? c && e.router.resolve(c).path === e.router.currentRoute.value.path : !1;
|
|
5219
|
+
function u(c) {
|
|
5220
|
+
return c.dividerOnly ? !0 : !n.value[c.id];
|
|
5198
5221
|
}
|
|
5199
|
-
function
|
|
5200
|
-
return
|
|
5222
|
+
function s(c) {
|
|
5223
|
+
return u(c) ? `Collapse ${c.text} Section` : `Expand ${c.text} Section`;
|
|
5201
5224
|
}
|
|
5202
|
-
function
|
|
5203
|
-
|
|
5225
|
+
function r(c) {
|
|
5226
|
+
var p;
|
|
5227
|
+
return c.to ? c.to : (p = c.resource) != null && p.url ? c.resource.url : null;
|
|
5204
5228
|
}
|
|
5205
|
-
function d(
|
|
5206
|
-
|
|
5207
|
-
return r.to ? r.to : (c = r.resource) != null && c.url ? r.resource.url : null;
|
|
5229
|
+
function d(c) {
|
|
5230
|
+
return c.target ? c.target : "_self";
|
|
5208
5231
|
}
|
|
5209
5232
|
return {
|
|
5210
5233
|
collapsedSections: n,
|
|
5211
5234
|
getExpandButtonTitle: s,
|
|
5212
|
-
|
|
5235
|
+
getTarget: d,
|
|
5236
|
+
getTo: r,
|
|
5213
5237
|
initializeSections: a,
|
|
5214
5238
|
isAbsoluteTo: o,
|
|
5215
5239
|
isActivePath: i,
|
|
@@ -5217,7 +5241,7 @@ function Lt(e) {
|
|
|
5217
5241
|
rawNavData: t
|
|
5218
5242
|
};
|
|
5219
5243
|
}
|
|
5220
|
-
const
|
|
5244
|
+
const Vi = ["aria-current", "data-active", "href", "target"], Me = {
|
|
5221
5245
|
__name: "NavigationLink",
|
|
5222
5246
|
props: {
|
|
5223
5247
|
item: {
|
|
@@ -5231,32 +5255,34 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5231
5255
|
},
|
|
5232
5256
|
emits: ["nav-link-clicked"],
|
|
5233
5257
|
setup(e, { emit: n }) {
|
|
5234
|
-
const t = e, a = n, { isAbsoluteTo: o, isActivePath: i, getTo: u } =
|
|
5235
|
-
return (
|
|
5236
|
-
const
|
|
5237
|
-
return
|
|
5258
|
+
const t = e, a = n, { isAbsoluteTo: o, isActivePath: i, getTo: u, getTarget: s } = Vt(t);
|
|
5259
|
+
return (r, d) => {
|
|
5260
|
+
const c = en("router-link");
|
|
5261
|
+
return f(o)(e.item) ? (l(), h("a", {
|
|
5238
5262
|
key: 0,
|
|
5239
|
-
"aria-current":
|
|
5240
|
-
"data-active":
|
|
5241
|
-
href:
|
|
5242
|
-
|
|
5263
|
+
"aria-current": f(i)(e.item) || void 0,
|
|
5264
|
+
"data-active": f(i)(e.item),
|
|
5265
|
+
href: f(u)(e.item),
|
|
5266
|
+
target: f(s)(e.item),
|
|
5267
|
+
onClick: d[0] || (d[0] = (p) => a("nav-link-clicked", p))
|
|
5243
5268
|
}, [
|
|
5244
|
-
z(
|
|
5245
|
-
], 8,
|
|
5269
|
+
z(r.$slots, "default")
|
|
5270
|
+
], 8, Vi)) : (l(), D(c, {
|
|
5246
5271
|
key: 1,
|
|
5247
|
-
"aria-current":
|
|
5248
|
-
"data-active":
|
|
5249
|
-
to:
|
|
5250
|
-
|
|
5272
|
+
"aria-current": f(i)(e.item) || void 0,
|
|
5273
|
+
"data-active": f(i)(e.item),
|
|
5274
|
+
to: f(u)(e.item),
|
|
5275
|
+
target: f(s)(e.item),
|
|
5276
|
+
onClick: d[1] || (d[1] = (p) => a("nav-link-clicked", p))
|
|
5251
5277
|
}, {
|
|
5252
5278
|
default: q(() => [
|
|
5253
|
-
z(
|
|
5279
|
+
z(r.$slots, "default")
|
|
5254
5280
|
]),
|
|
5255
5281
|
_: 3
|
|
5256
|
-
}, 8, ["aria-current", "data-active", "to"]));
|
|
5282
|
+
}, 8, ["aria-current", "data-active", "to", "target"]));
|
|
5257
5283
|
};
|
|
5258
5284
|
}
|
|
5259
|
-
},
|
|
5285
|
+
}, Li = ["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 = {
|
|
5260
5286
|
key: 0,
|
|
5261
5287
|
class: "bs-horizontal-nav-mobile-end-items"
|
|
5262
5288
|
}, Ki = {
|
|
@@ -5278,112 +5304,112 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5278
5304
|
getExpandButtonTitle: i,
|
|
5279
5305
|
initializeSections: u,
|
|
5280
5306
|
isActivePath: s,
|
|
5281
|
-
isExpanded:
|
|
5282
|
-
rawNavData:
|
|
5283
|
-
} =
|
|
5284
|
-
Fe("(max-width: 1165px)", (
|
|
5285
|
-
|
|
5307
|
+
isExpanded: r,
|
|
5308
|
+
rawNavData: d
|
|
5309
|
+
} = Vt(t), c = St();
|
|
5310
|
+
Fe("(max-width: 1165px)", (b) => {
|
|
5311
|
+
p.value = b.matches;
|
|
5286
5312
|
});
|
|
5287
|
-
const
|
|
5313
|
+
const p = C(!1), v = C(!1);
|
|
5288
5314
|
_t(() => {
|
|
5289
5315
|
u(!0);
|
|
5290
5316
|
}), ee(() => {
|
|
5291
5317
|
v.value = t.mobileOpen;
|
|
5292
5318
|
}), Z(() => t.navData, () => {
|
|
5293
5319
|
u(!0);
|
|
5294
|
-
}), Z(() => t.mobileOpen, (
|
|
5295
|
-
v.value =
|
|
5296
|
-
}), Z(v, (
|
|
5297
|
-
|
|
5298
|
-
}), Z(
|
|
5299
|
-
|
|
5320
|
+
}), Z(() => t.mobileOpen, (b) => {
|
|
5321
|
+
v.value = b;
|
|
5322
|
+
}), Z(v, (b) => {
|
|
5323
|
+
b ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", a("mobile-toggle", b);
|
|
5324
|
+
}), Z(p, (b, M) => {
|
|
5325
|
+
b !== M && (v.value = !1, y());
|
|
5300
5326
|
});
|
|
5301
|
-
function $(
|
|
5302
|
-
o.value[
|
|
5303
|
-
M !==
|
|
5327
|
+
function $(b) {
|
|
5328
|
+
o.value[b] = !o.value[b], Object.keys(o.value).forEach((M) => {
|
|
5329
|
+
M !== b && (o.value[M] = !0);
|
|
5304
5330
|
});
|
|
5305
5331
|
}
|
|
5306
5332
|
function O() {
|
|
5307
5333
|
return v.value ? "Close Menu" : "Open Menu";
|
|
5308
5334
|
}
|
|
5309
|
-
function k(
|
|
5310
|
-
return
|
|
5335
|
+
function k(b) {
|
|
5336
|
+
return b.navItems.some((M) => s(M));
|
|
5311
5337
|
}
|
|
5312
5338
|
function y() {
|
|
5313
|
-
Object.keys(o.value).forEach((
|
|
5314
|
-
o.value[
|
|
5339
|
+
Object.keys(o.value).forEach((b) => {
|
|
5340
|
+
o.value[b] = !0;
|
|
5315
5341
|
});
|
|
5316
5342
|
}
|
|
5317
|
-
function S(
|
|
5318
|
-
|
|
5343
|
+
function S(b, M) {
|
|
5344
|
+
b.ctrlKey || b.metaKey || $(M.id), a("nav-link-clicked", { ev: b, payload: M });
|
|
5319
5345
|
}
|
|
5320
|
-
return (
|
|
5346
|
+
return (b, M) => {
|
|
5321
5347
|
const P = en("router-link");
|
|
5322
|
-
return
|
|
5348
|
+
return p.value ? (l(), h("nav", {
|
|
5323
5349
|
key: 0,
|
|
5324
5350
|
class: "bs-horizontal-nav-mobile",
|
|
5325
5351
|
"data-shown": v.value,
|
|
5326
|
-
"data-hide-toggle":
|
|
5352
|
+
"data-hide-toggle": b.hideMobileToggle
|
|
5327
5353
|
}, [
|
|
5328
|
-
|
|
5354
|
+
b.hideMobileToggle ? x("", !0) : (l(), h("button", {
|
|
5329
5355
|
key: 0,
|
|
5330
5356
|
type: "button",
|
|
5331
5357
|
class: "bs-horizontal-nav-mobile-toggle",
|
|
5332
|
-
"aria-expanded":
|
|
5333
|
-
"aria-controls": `horizontal-nav-mobile-${
|
|
5358
|
+
"aria-expanded": b.mobileOpen,
|
|
5359
|
+
"aria-controls": `horizontal-nav-mobile-${f(c)}`,
|
|
5334
5360
|
title: O(),
|
|
5335
5361
|
onClick: M[0] || (M[0] = (B) => v.value = !v.value)
|
|
5336
5362
|
}, [
|
|
5337
5363
|
w("div", Ni, [
|
|
5338
|
-
typeof
|
|
5364
|
+
typeof b.titleIcon == "string" ? (l(), D(f(ce), {
|
|
5339
5365
|
key: 0,
|
|
5340
5366
|
class: "bs-horizontal-nav-mobile-toggle-title-icon",
|
|
5341
|
-
name:
|
|
5342
|
-
}, null, 8, ["name"])) : (l(), D(ae(
|
|
5367
|
+
name: b.titleIcon
|
|
5368
|
+
}, null, 8, ["name"])) : (l(), D(ae(b.titleIcon), {
|
|
5343
5369
|
key: 1,
|
|
5344
5370
|
class: "bs-horizontal-nav-mobile-toggle-title-icon"
|
|
5345
5371
|
})),
|
|
5346
|
-
w("span", null,
|
|
5372
|
+
w("span", null, L(b.mobileToggleText), 1)
|
|
5347
5373
|
]),
|
|
5348
|
-
R(
|
|
5374
|
+
R(f(Le), { class: "bs-horizontal-nav-mobile-toggle-caret" })
|
|
5349
5375
|
], 8, Mi)),
|
|
5350
5376
|
R(wt, { name: "bs-horizontal-nav-mobile" }, {
|
|
5351
5377
|
default: q(() => [
|
|
5352
5378
|
fe(w("div", {
|
|
5353
5379
|
class: "bs-horizontal-nav-mobile-menu",
|
|
5354
|
-
id: `horizontal-nav-mobile-${
|
|
5380
|
+
id: `horizontal-nav-mobile-${f(c)}`
|
|
5355
5381
|
}, [
|
|
5356
5382
|
w("ul", null, [
|
|
5357
|
-
(l(!0), h(J, null, de(
|
|
5383
|
+
(l(!0), h(J, null, de(f(d), (B) => {
|
|
5358
5384
|
var g;
|
|
5359
5385
|
return l(), h(J, {
|
|
5360
5386
|
key: B.id
|
|
5361
5387
|
}, [
|
|
5362
5388
|
((g = B.navItems) == null ? void 0 : g.length) > 0 ? (l(), h("li", {
|
|
5363
5389
|
key: 0,
|
|
5364
|
-
"data-expanded":
|
|
5390
|
+
"data-expanded": f(r)(B)
|
|
5365
5391
|
}, [
|
|
5366
5392
|
w("button", {
|
|
5367
5393
|
type: "button",
|
|
5368
5394
|
class: "bs-horizontal-nav-mobile-nested-toggle",
|
|
5369
|
-
"aria-expanded":
|
|
5395
|
+
"aria-expanded": f(r)(B),
|
|
5370
5396
|
"aria-controls": `${B.id}-nested-menu`,
|
|
5371
5397
|
"data-active": k(B),
|
|
5372
|
-
title:
|
|
5398
|
+
title: f(i)(B),
|
|
5373
5399
|
onClick: (I) => $(B.id)
|
|
5374
5400
|
}, [
|
|
5375
|
-
w("span", null,
|
|
5376
|
-
R(
|
|
5401
|
+
w("span", null, L(B.text), 1),
|
|
5402
|
+
R(f(Le), { class: "bs-horizontal-nav-mobile-nested-toggle-caret" })
|
|
5377
5403
|
], 8, ji),
|
|
5378
5404
|
w("ul", Fi, [
|
|
5379
5405
|
(l(!0), h(J, null, de(B.navItems, (I) => (l(), h("li", null, [
|
|
5380
5406
|
R(Me, {
|
|
5381
5407
|
item: I,
|
|
5382
|
-
router:
|
|
5408
|
+
router: b.router,
|
|
5383
5409
|
onNavLinkClicked: (E) => a("nav-link-clicked", { ev: E, payload: I })
|
|
5384
5410
|
}, {
|
|
5385
5411
|
default: q(() => [
|
|
5386
|
-
_(
|
|
5412
|
+
_(L(I.text), 1)
|
|
5387
5413
|
]),
|
|
5388
5414
|
_: 2
|
|
5389
5415
|
}, 1032, ["item", "router", "onNavLinkClicked"])
|
|
@@ -5392,11 +5418,11 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5392
5418
|
], 8, Ri)) : (l(), h("li", Ui, [
|
|
5393
5419
|
R(Me, {
|
|
5394
5420
|
item: B,
|
|
5395
|
-
router:
|
|
5421
|
+
router: b.router,
|
|
5396
5422
|
onNavLinkClicked: (I) => a("nav-link-clicked", { ev: I, payload: B })
|
|
5397
5423
|
}, {
|
|
5398
5424
|
default: q(() => [
|
|
5399
|
-
_(
|
|
5425
|
+
_(L(B.text), 1)
|
|
5400
5426
|
]),
|
|
5401
5427
|
_: 2
|
|
5402
5428
|
}, 1032, ["item", "router", "onNavLinkClicked"])
|
|
@@ -5404,43 +5430,43 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5404
5430
|
], 64);
|
|
5405
5431
|
}), 128))
|
|
5406
5432
|
]),
|
|
5407
|
-
|
|
5408
|
-
z(
|
|
5433
|
+
b.$slots["end-items"] ? (l(), h("div", Wi, [
|
|
5434
|
+
z(b.$slots, "end-items")
|
|
5409
5435
|
])) : x("", !0)
|
|
5410
5436
|
], 8, qi), [
|
|
5411
|
-
[be,
|
|
5437
|
+
[be, b.mobileOpen]
|
|
5412
5438
|
])
|
|
5413
5439
|
]),
|
|
5414
5440
|
_: 3
|
|
5415
5441
|
})
|
|
5416
|
-
], 8,
|
|
5442
|
+
], 8, Li)) : (l(), h("div", Ki, [
|
|
5417
5443
|
w("nav", null, [
|
|
5418
|
-
!
|
|
5419
|
-
typeof
|
|
5444
|
+
!b.title && b.titleIcon ? (l(), h(J, { key: 0 }, [
|
|
5445
|
+
typeof b.titleIcon == "string" ? (l(), D(f(ce), {
|
|
5420
5446
|
key: 0,
|
|
5421
5447
|
class: "bs-horizontal-nav-title-icon",
|
|
5422
|
-
name:
|
|
5423
|
-
}, null, 8, ["name"])) : (l(), D(ae(
|
|
5448
|
+
name: b.titleIcon
|
|
5449
|
+
}, null, 8, ["name"])) : (l(), D(ae(b.titleIcon), {
|
|
5424
5450
|
key: 1,
|
|
5425
5451
|
class: "bs-horizontal-nav-title-icon"
|
|
5426
5452
|
}))
|
|
5427
5453
|
], 64)) : x("", !0),
|
|
5428
5454
|
w("ul", null, [
|
|
5429
|
-
|
|
5430
|
-
|
|
5455
|
+
b.title ? (l(), h("li", Hi, [
|
|
5456
|
+
b.titleUrl ? (l(), D(P, {
|
|
5431
5457
|
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:
|
|
5458
|
+
"aria-current": f(s)({ to: b.titleUrl }) || void 0,
|
|
5459
|
+
to: b.titleUrl,
|
|
5460
|
+
"data-active": f(s)({ to: b.titleUrl }),
|
|
5461
|
+
onClick: M[1] || (M[1] = (B) => a("nav-link-clicked", { ev: B, payload: { resource: { url: b.titleUrl }, text: b.title } }))
|
|
5436
5462
|
}, {
|
|
5437
5463
|
default: q(() => [
|
|
5438
|
-
w("span", null,
|
|
5464
|
+
w("span", null, L(b.title), 1)
|
|
5439
5465
|
]),
|
|
5440
5466
|
_: 1
|
|
5441
|
-
}, 8, ["aria-current", "to", "data-active"])) : (l(), h("span", Gi,
|
|
5467
|
+
}, 8, ["aria-current", "to", "data-active"])) : (l(), h("span", Gi, L(b.title), 1))
|
|
5442
5468
|
])) : x("", !0),
|
|
5443
|
-
(l(!0), h(J, null, de(
|
|
5469
|
+
(l(!0), h(J, null, de(f(d), (B, g) => {
|
|
5444
5470
|
var I;
|
|
5445
5471
|
return l(), h(J, {
|
|
5446
5472
|
key: B.id
|
|
@@ -5450,25 +5476,25 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5450
5476
|
id: `${B.id}-toggle`,
|
|
5451
5477
|
type: "button",
|
|
5452
5478
|
class: "bs-horizontal-nav-nested-toggle",
|
|
5453
|
-
"aria-expanded":
|
|
5479
|
+
"aria-expanded": f(r)(B),
|
|
5454
5480
|
"aria-controls": `${B.id}-nested-section`,
|
|
5455
5481
|
"data-active": k(B),
|
|
5456
|
-
"data-expanded":
|
|
5457
|
-
title:
|
|
5482
|
+
"data-expanded": f(r)(B),
|
|
5483
|
+
title: f(i)(B),
|
|
5458
5484
|
onClick: (E) => $(B.id)
|
|
5459
5485
|
}, [
|
|
5460
|
-
w("span", null,
|
|
5461
|
-
R(
|
|
5486
|
+
w("span", null, L(B.text), 1),
|
|
5487
|
+
R(f(Le), { class: "bs-horizontal-nav-nested-toggle-caret" })
|
|
5462
5488
|
], 8, Xi),
|
|
5463
5489
|
R(lt, {
|
|
5464
5490
|
id: `${B.id}-nested-section`,
|
|
5465
5491
|
class: "bs-horizontal-nav-nested-menu",
|
|
5466
5492
|
"anchor-id": `${B.id}-toggle`,
|
|
5467
5493
|
position: "right",
|
|
5468
|
-
shown:
|
|
5494
|
+
shown: f(r)(B),
|
|
5469
5495
|
"use-mobile-style": !1,
|
|
5470
5496
|
width: "content",
|
|
5471
|
-
onClose: (E) =>
|
|
5497
|
+
onClose: (E) => f(o)[B.id] = !0
|
|
5472
5498
|
}, {
|
|
5473
5499
|
default: q(() => [
|
|
5474
5500
|
w("ul", null, [
|
|
@@ -5477,11 +5503,11 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5477
5503
|
}, [
|
|
5478
5504
|
R(Me, {
|
|
5479
5505
|
item: E,
|
|
5480
|
-
router:
|
|
5506
|
+
router: b.router,
|
|
5481
5507
|
onNavLinkClicked: (N) => S(N, E)
|
|
5482
5508
|
}, {
|
|
5483
5509
|
default: q(() => [
|
|
5484
|
-
_(
|
|
5510
|
+
_(L(E.text), 1)
|
|
5485
5511
|
]),
|
|
5486
5512
|
_: 2
|
|
5487
5513
|
}, 1032, ["item", "router", "onNavLinkClicked"])
|
|
@@ -5493,11 +5519,11 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5493
5519
|
])) : (l(), h("li", Zi, [
|
|
5494
5520
|
R(Me, {
|
|
5495
5521
|
item: B,
|
|
5496
|
-
router:
|
|
5522
|
+
router: b.router,
|
|
5497
5523
|
onNavLinkClicked: (E) => a("nav-link-clicked", { ev: E, payload: B })
|
|
5498
5524
|
}, {
|
|
5499
5525
|
default: q(() => [
|
|
5500
|
-
w("span", null,
|
|
5526
|
+
w("span", null, L(B.text), 1)
|
|
5501
5527
|
]),
|
|
5502
5528
|
_: 2
|
|
5503
5529
|
}, 1032, ["item", "router", "onNavLinkClicked"])
|
|
@@ -5505,14 +5531,14 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5505
5531
|
], 64);
|
|
5506
5532
|
}), 128))
|
|
5507
5533
|
]),
|
|
5508
|
-
|
|
5509
|
-
z(
|
|
5534
|
+
b.$slots["end-items"] ? (l(), h("div", Qi, [
|
|
5535
|
+
z(b.$slots, "end-items")
|
|
5510
5536
|
])) : x("", !0)
|
|
5511
5537
|
])
|
|
5512
5538
|
]));
|
|
5513
5539
|
};
|
|
5514
5540
|
}
|
|
5515
|
-
}, Ji = ["view-box"], _i = ["id"], el = ["offset", "stop-color"],
|
|
5541
|
+
}, Ji = ["view-box"], _i = ["id"], el = ["offset", "stop-color"], Vr = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5516
5542
|
__name: "BsIconGradientWrapper",
|
|
5517
5543
|
setup(e) {
|
|
5518
5544
|
const n = C(null), t = C(null), a = [
|
|
@@ -5527,7 +5553,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5527
5553
|
ref_key: "svgWrapperRef",
|
|
5528
5554
|
ref: n,
|
|
5529
5555
|
class: "bs-icon-gradient-wrapper",
|
|
5530
|
-
style: `fill: url(#${
|
|
5556
|
+
style: `fill: url(#${f(o)});`
|
|
5531
5557
|
}, i.$attrs), [
|
|
5532
5558
|
z(i.$slots, "default")
|
|
5533
5559
|
], 16),
|
|
@@ -5538,7 +5564,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5538
5564
|
height: "0"
|
|
5539
5565
|
}, [
|
|
5540
5566
|
w("linearGradient", {
|
|
5541
|
-
id:
|
|
5567
|
+
id: f(o),
|
|
5542
5568
|
x1: "0",
|
|
5543
5569
|
y1: "0",
|
|
5544
5570
|
x2: "100%",
|
|
@@ -5554,28 +5580,28 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5554
5580
|
], 8, Ji))
|
|
5555
5581
|
], 64));
|
|
5556
5582
|
}
|
|
5557
|
-
}), Pn = Symbol("InlineTabs"),
|
|
5583
|
+
}), Pn = Symbol("InlineTabs"), Lr = {
|
|
5558
5584
|
__name: "BsInlineTab",
|
|
5559
5585
|
props: Ze,
|
|
5560
5586
|
setup(e) {
|
|
5561
5587
|
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
5588
|
...n,
|
|
5563
5589
|
disabled: o.value
|
|
5564
|
-
})), { rootTag: s, attrsToBind:
|
|
5590
|
+
})), { rootTag: s, attrsToBind: r, btnRef: d } = Ke(u, Se(), "button");
|
|
5565
5591
|
function c(v) {
|
|
5566
|
-
|
|
5592
|
+
p();
|
|
5567
5593
|
}
|
|
5568
|
-
function
|
|
5594
|
+
function p() {
|
|
5569
5595
|
t && (a.value && !t.props.multiple || t.setModel(n.value));
|
|
5570
5596
|
}
|
|
5571
|
-
return (v, $) => (l(), D(ae(
|
|
5597
|
+
return (v, $) => (l(), D(ae(f(s)), H({
|
|
5572
5598
|
ref_key: "btnRef",
|
|
5573
|
-
ref:
|
|
5599
|
+
ref: d,
|
|
5574
5600
|
class: "bs-inline-tab",
|
|
5575
5601
|
"data-variant": i.value,
|
|
5576
5602
|
"data-selected": a.value || void 0,
|
|
5577
|
-
"aria-pressed":
|
|
5578
|
-
},
|
|
5603
|
+
"aria-pressed": f(s) === "button" ? a.value : void 0
|
|
5604
|
+
}, f(r), { onClick: c }), {
|
|
5579
5605
|
default: q(() => [
|
|
5580
5606
|
z(v.$slots, "default", { isSelected: a.value })
|
|
5581
5607
|
]),
|
|
@@ -5601,29 +5627,29 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5601
5627
|
setModel: u,
|
|
5602
5628
|
isSelected: a
|
|
5603
5629
|
});
|
|
5604
|
-
function a(
|
|
5630
|
+
function a(r) {
|
|
5605
5631
|
if (!t.value) return !1;
|
|
5606
|
-
if (!n.multiple) return o(t.value,
|
|
5632
|
+
if (!n.multiple) return o(t.value, r);
|
|
5607
5633
|
if (!Array.isArray(t.value))
|
|
5608
5634
|
throw new Error(`[BsInlineTabs] When "multiple" prop is used, v-model must be an Array. Your model: ${t.value}`);
|
|
5609
|
-
return t.value.some((
|
|
5635
|
+
return t.value.some((d) => o(d, r));
|
|
5610
5636
|
}
|
|
5611
|
-
function o(
|
|
5637
|
+
function o(r, d) {
|
|
5612
5638
|
const { matcher: c } = n;
|
|
5613
|
-
return i(
|
|
5639
|
+
return i(r) && i(d) ? typeof c == "function" ? c(r) === c(d) : r[c] === d[c] : r === d;
|
|
5614
5640
|
}
|
|
5615
|
-
function i(
|
|
5616
|
-
return typeof
|
|
5641
|
+
function i(r) {
|
|
5642
|
+
return typeof r == "object" && r !== null && !Array.isArray(r);
|
|
5617
5643
|
}
|
|
5618
|
-
function u(
|
|
5619
|
-
t.value = n.multiple ? s(
|
|
5644
|
+
function u(r) {
|
|
5645
|
+
t.value = n.multiple ? s(r) : r;
|
|
5620
5646
|
}
|
|
5621
|
-
function s(
|
|
5622
|
-
return t.value ? a(
|
|
5647
|
+
function s(r) {
|
|
5648
|
+
return t.value ? a(r) ? t.value.filter((d) => !o(d, r)) : [...t.value, r] : [r];
|
|
5623
5649
|
}
|
|
5624
|
-
return (
|
|
5650
|
+
return (r, d) => (l(), D(ae(r.as), { class: "bs-inline-tab-group" }, {
|
|
5625
5651
|
default: q(() => [
|
|
5626
|
-
z(
|
|
5652
|
+
z(r.$slots, "default")
|
|
5627
5653
|
]),
|
|
5628
5654
|
_: 3
|
|
5629
5655
|
}));
|
|
@@ -5674,20 +5700,20 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5674
5700
|
const t = e;
|
|
5675
5701
|
W(t, "hints", void 0, "Use 'hint' and/or 'errorMsg. instead."), W(t, "passAttrs", void 0, "Use Vue's native fallthrough attributes instead.");
|
|
5676
5702
|
const [a, o] = re(2), { filtered: i, remaining: u } = ye(["class", "style"]), s = m(() => {
|
|
5677
|
-
var c,
|
|
5678
|
-
return ((
|
|
5703
|
+
var c, p;
|
|
5704
|
+
return ((p = (c = t.hints) == null ? void 0 : c.join) == null ? void 0 : p.call(c, `
|
|
5679
5705
|
`)) || t.hints;
|
|
5680
|
-
}),
|
|
5681
|
-
return (c,
|
|
5706
|
+
}), r = m(() => t.error && t.errorMsg || t.hint || s.value || void 0), d = m(() => t.inputId || a.value);
|
|
5707
|
+
return (c, p) => (l(), h("div", H({ "data-component": "bs-input-field" }, f(i)), [
|
|
5682
5708
|
e.label || c.$slots.label ? (l(), D(pe, {
|
|
5683
5709
|
key: 0,
|
|
5684
|
-
for: c.$attrs.id ||
|
|
5710
|
+
for: c.$attrs.id || d.value,
|
|
5685
5711
|
disabled: e.disabled,
|
|
5686
5712
|
required: e.required
|
|
5687
5713
|
}, {
|
|
5688
5714
|
default: q(() => [
|
|
5689
5715
|
z(c.$slots, "label", {}, () => [
|
|
5690
|
-
_(
|
|
5716
|
+
_(L(e.label), 1)
|
|
5691
5717
|
])
|
|
5692
5718
|
]),
|
|
5693
5719
|
_: 3
|
|
@@ -5695,20 +5721,20 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5695
5721
|
R(qe, H({
|
|
5696
5722
|
disabled: e.disabled,
|
|
5697
5723
|
error: e.error,
|
|
5698
|
-
"hint-id":
|
|
5699
|
-
id: c.$attrs.id ||
|
|
5724
|
+
"hint-id": f(o),
|
|
5725
|
+
id: c.$attrs.id || d.value,
|
|
5700
5726
|
placeholder: e.placeholder,
|
|
5701
5727
|
required: e.required,
|
|
5702
5728
|
type: e.type,
|
|
5703
5729
|
value: e.value || e.modelValue,
|
|
5704
|
-
"onUpdate:modelValue":
|
|
5705
|
-
},
|
|
5706
|
-
|
|
5730
|
+
"onUpdate:modelValue": p[0] || (p[0] = (v) => c.$emit("update:modelValue", v))
|
|
5731
|
+
}, f(u)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
|
|
5732
|
+
r.value ? (l(), D(ze, {
|
|
5707
5733
|
key: 1,
|
|
5708
5734
|
error: e.error,
|
|
5709
5735
|
"error-msg": e.errorMsg,
|
|
5710
5736
|
hint: e.hint || s.value,
|
|
5711
|
-
"hint-id":
|
|
5737
|
+
"hint-id": f(o)
|
|
5712
5738
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
5713
5739
|
], 16));
|
|
5714
5740
|
}
|
|
@@ -5845,17 +5871,17 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5845
5871
|
"Escape",
|
|
5846
5872
|
"Home",
|
|
5847
5873
|
"Tab"
|
|
5848
|
-
], { filtered: u, remaining: s } = ye(["class", "style"]),
|
|
5874
|
+
], { filtered: u, remaining: s } = ye(["class", "style"]), r = C(null), d = C(1), c = C([]), p = C(null), [
|
|
5849
5875
|
v,
|
|
5850
5876
|
$,
|
|
5851
5877
|
O,
|
|
5852
5878
|
k
|
|
5853
|
-
] = re(4), y = C(!1), S = C(""),
|
|
5879
|
+
] = re(4), y = C(!1), S = C(""), b = C(""), M = C(!1), P = C(!1), B = C(!0);
|
|
5854
5880
|
n({
|
|
5855
5881
|
validationErr: M,
|
|
5856
|
-
validationErrMsg:
|
|
5882
|
+
validationErrMsg: b
|
|
5857
5883
|
});
|
|
5858
|
-
const g = m(() => S.value ? `+${
|
|
5884
|
+
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
5885
|
Z(g, (Y) => {
|
|
5860
5886
|
o("update:modelValue", Y), ie(Y);
|
|
5861
5887
|
}), Z(() => a.modelValue, he), Oe(), ee(() => y.value = !0);
|
|
@@ -5864,11 +5890,11 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5864
5890
|
}
|
|
5865
5891
|
function $e() {
|
|
5866
5892
|
var Y;
|
|
5867
|
-
P.value && (P.value = !1, (Y =
|
|
5893
|
+
P.value && (P.value = !1, (Y = r.value) == null || Y.focus());
|
|
5868
5894
|
}
|
|
5869
5895
|
function ge(Y) {
|
|
5870
5896
|
var oe;
|
|
5871
|
-
|
|
5897
|
+
d.value = Y, P.value = !1, (oe = r.value) == null || oe.focus(), K(Y);
|
|
5872
5898
|
}
|
|
5873
5899
|
function Ie() {
|
|
5874
5900
|
a.deferValidation && (B.value = !0), o("input-blur");
|
|
@@ -5881,34 +5907,34 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5881
5907
|
!((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
5908
|
}
|
|
5883
5909
|
function Oe() {
|
|
5884
|
-
dt.initSourceData(), U(), K(
|
|
5910
|
+
dt.initSourceData(), U(), K(d.value), ie(g.value);
|
|
5885
5911
|
}
|
|
5886
5912
|
function U() {
|
|
5887
5913
|
var oe, le;
|
|
5888
5914
|
let Y = Ft(a.modelValue);
|
|
5889
|
-
Y.valid || Y.countryCode && ((le = (oe = a.modelValue) == null ? void 0 : oe.startsWith) != null && le.call(oe, "+")) ? (
|
|
5915
|
+
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
5916
|
...Pe,
|
|
5891
|
-
isSelected:
|
|
5917
|
+
isSelected: d.value === Pe
|
|
5892
5918
|
}));
|
|
5893
5919
|
}
|
|
5894
5920
|
function K(Y) {
|
|
5895
|
-
|
|
5921
|
+
p.value = dt.getCountryByCountryCode(Y);
|
|
5896
5922
|
}
|
|
5897
5923
|
function ie(Y) {
|
|
5898
|
-
M.value = Y ? !Ft(Y).valid : !1,
|
|
5924
|
+
M.value = Y ? !Ft(Y).valid : !1, b.value = M.value ? "Invalid phone number" : "";
|
|
5899
5925
|
}
|
|
5900
5926
|
return (Y, oe) => (l(), h("div", H({
|
|
5901
5927
|
class: "bs-input-phone",
|
|
5902
5928
|
"data-component": "bs-input-phone"
|
|
5903
|
-
},
|
|
5929
|
+
}, f(u)), [
|
|
5904
5930
|
R(pe, {
|
|
5905
|
-
for: Y.$attrs.id || e.inputId ||
|
|
5931
|
+
for: Y.$attrs.id || e.inputId || f(k),
|
|
5906
5932
|
required: e.required,
|
|
5907
5933
|
disabled: e.disabled,
|
|
5908
5934
|
class: ve({ "visually-hidden": e.hideLabel })
|
|
5909
5935
|
}, {
|
|
5910
5936
|
default: q(() => [
|
|
5911
|
-
_(
|
|
5937
|
+
_(L(e.label), 1)
|
|
5912
5938
|
]),
|
|
5913
5939
|
_: 1
|
|
5914
5940
|
}, 8, ["for", "required", "disabled", "class"]),
|
|
@@ -5922,10 +5948,10 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5922
5948
|
var le;
|
|
5923
5949
|
return [
|
|
5924
5950
|
w("button", {
|
|
5925
|
-
id:
|
|
5951
|
+
id: f(v),
|
|
5926
5952
|
ref_key: "countryCodesToggle",
|
|
5927
|
-
ref:
|
|
5928
|
-
"aria-controls":
|
|
5953
|
+
ref: r,
|
|
5954
|
+
"aria-controls": f($),
|
|
5929
5955
|
"aria-expanded": P.value,
|
|
5930
5956
|
"aria-haspopup": "listbox",
|
|
5931
5957
|
"aria-label": I.value,
|
|
@@ -5933,22 +5959,22 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5933
5959
|
type: "button",
|
|
5934
5960
|
onClick: oe[0] || (oe[0] = (Pe) => P.value = !P.value)
|
|
5935
5961
|
}, [
|
|
5936
|
-
w("span", null,
|
|
5937
|
-
w("span", null, "+" +
|
|
5938
|
-
e.disabled ? x("", !0) : (l(), D(
|
|
5962
|
+
w("span", null, L((le = p.value) == null ? void 0 : le.flag), 1),
|
|
5963
|
+
w("span", null, "+" + L(d.value), 1),
|
|
5964
|
+
e.disabled ? x("", !0) : (l(), D(f(sn), {
|
|
5939
5965
|
key: 0,
|
|
5940
5966
|
size: "sm"
|
|
5941
5967
|
}))
|
|
5942
5968
|
], 8, tl),
|
|
5943
5969
|
R(qe, H({
|
|
5944
|
-
id: Y.$attrs.id || e.inputId ||
|
|
5970
|
+
id: Y.$attrs.id || e.inputId || f(k),
|
|
5945
5971
|
disabled: e.disabled,
|
|
5946
|
-
"hint-id":
|
|
5972
|
+
"hint-id": f(O),
|
|
5947
5973
|
placeholder: e.placeholder,
|
|
5948
5974
|
value: S.value,
|
|
5949
5975
|
"data-autowidth": "",
|
|
5950
5976
|
type: "tel"
|
|
5951
|
-
},
|
|
5977
|
+
}, f(s), {
|
|
5952
5978
|
onInput: we,
|
|
5953
5979
|
onFocusout: Ie,
|
|
5954
5980
|
onKeydown: Ee
|
|
@@ -5961,17 +5987,17 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5961
5987
|
error: N.value,
|
|
5962
5988
|
"error-msg": E.value,
|
|
5963
5989
|
hint: e.hint,
|
|
5964
|
-
"hint-id":
|
|
5990
|
+
"hint-id": f(O)
|
|
5965
5991
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
5966
5992
|
[be, G.value]
|
|
5967
5993
|
]),
|
|
5968
5994
|
y.value ? (l(), h("div", nl, [
|
|
5969
5995
|
R(En, {
|
|
5970
|
-
"anchor-id":
|
|
5996
|
+
"anchor-id": f(v),
|
|
5971
5997
|
"helper-text": "Country Code",
|
|
5972
5998
|
label: "Country Code",
|
|
5973
|
-
"model-value":
|
|
5974
|
-
"options-id":
|
|
5999
|
+
"model-value": d.value,
|
|
6000
|
+
"options-id": f($),
|
|
5975
6001
|
preloaded: "",
|
|
5976
6002
|
shown: P.value,
|
|
5977
6003
|
width: "content",
|
|
@@ -5986,8 +6012,8 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
5986
6012
|
variant: "2-col"
|
|
5987
6013
|
}, {
|
|
5988
6014
|
default: q(() => [
|
|
5989
|
-
w("span", al,
|
|
5990
|
-
w("span", ol,
|
|
6015
|
+
w("span", al, L(le == null ? void 0 : le.flag), 1),
|
|
6016
|
+
w("span", ol, L(le.label), 1)
|
|
5991
6017
|
]),
|
|
5992
6018
|
_: 2
|
|
5993
6019
|
}, 1032, ["aria-label", "value"]))), 128)) : x("", !0)
|
|
@@ -6024,7 +6050,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6024
6050
|
viewBox: "0 0 100 100",
|
|
6025
6051
|
xmlns: "http://www.w3.org/2000/svg"
|
|
6026
6052
|
}, [
|
|
6027
|
-
w("title", null,
|
|
6053
|
+
w("title", null, L(e.label), 1),
|
|
6028
6054
|
w("circle", {
|
|
6029
6055
|
cx: "50",
|
|
6030
6056
|
cy: "50",
|
|
@@ -6134,19 +6160,19 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6134
6160
|
emits: ["close", "open", "update:inputValue", "update:optionsValue"],
|
|
6135
6161
|
setup(e, { emit: n }) {
|
|
6136
6162
|
const t = e, a = n, o = C(!1), i = C(!1), [u, s] = re(2);
|
|
6137
|
-
let
|
|
6163
|
+
let r = [];
|
|
6138
6164
|
Z(() => t.inputValue, () => {
|
|
6139
|
-
i.value ? i.value = !1 :
|
|
6165
|
+
i.value ? i.value = !1 : b();
|
|
6140
6166
|
}), Z(o, () => {
|
|
6141
6167
|
o.value ? a("open") : a("close");
|
|
6142
6168
|
});
|
|
6143
|
-
const
|
|
6169
|
+
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
6170
|
if (o.value) {
|
|
6145
6171
|
let I = t.options;
|
|
6146
6172
|
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),
|
|
6173
|
+
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
6174
|
} else
|
|
6149
|
-
return
|
|
6175
|
+
return r;
|
|
6150
6176
|
});
|
|
6151
6177
|
function y(I, E, N) {
|
|
6152
6178
|
return t.internalFiltering ? I.filter((G) => G.label.toLowerCase()[N](E)) : I;
|
|
@@ -6161,7 +6187,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6161
6187
|
return { ...G, labelHtml: te };
|
|
6162
6188
|
});
|
|
6163
6189
|
}
|
|
6164
|
-
function
|
|
6190
|
+
function b() {
|
|
6165
6191
|
t.showDropdownOnFocus || t.inputValue.length >= t.characterThreshold ? o.value = !0 : o.value = !1;
|
|
6166
6192
|
}
|
|
6167
6193
|
function M() {
|
|
@@ -6189,18 +6215,18 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6189
6215
|
}, {
|
|
6190
6216
|
default: q(() => [
|
|
6191
6217
|
z(I.$slots, "label", {}, () => [
|
|
6192
|
-
_(
|
|
6218
|
+
_(L(e.label), 1)
|
|
6193
6219
|
])
|
|
6194
6220
|
]),
|
|
6195
6221
|
_: 3
|
|
6196
6222
|
}, 8, ["for", "disabled", "required"])) : x("", !0),
|
|
6197
6223
|
w("div", {
|
|
6198
|
-
id:
|
|
6224
|
+
id: p.value,
|
|
6199
6225
|
class: "typeahead-search-wrapper"
|
|
6200
6226
|
}, [
|
|
6201
6227
|
R(On, H({
|
|
6202
6228
|
"aria-controls": $.value,
|
|
6203
|
-
"aria-describedby": c.value ?
|
|
6229
|
+
"aria-describedby": c.value ? f(s) : void 0,
|
|
6204
6230
|
"aria-expanded": o.value,
|
|
6205
6231
|
"aria-haspopup": "listbox",
|
|
6206
6232
|
autocomplete: "off",
|
|
@@ -6214,12 +6240,12 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6214
6240
|
value: e.inputValue
|
|
6215
6241
|
}, I.$attrs, {
|
|
6216
6242
|
onClear: M,
|
|
6217
|
-
onFocusin:
|
|
6243
|
+
onFocusin: b,
|
|
6218
6244
|
"onUpdate:modelValue": E[0] || (E[0] = (N) => a("update:inputValue", N))
|
|
6219
6245
|
}), null, 16, ["aria-controls", "aria-describedby", "aria-expanded", "disabled", "error", "hide-clear", "hide-search-icon", "input-id", "placeholder", "value"])
|
|
6220
6246
|
], 8, rl),
|
|
6221
6247
|
R(lt, {
|
|
6222
|
-
"anchor-id":
|
|
6248
|
+
"anchor-id": p.value,
|
|
6223
6249
|
breakout: e.breakout,
|
|
6224
6250
|
preloaded: !0,
|
|
6225
6251
|
shown: o.value,
|
|
@@ -6297,7 +6323,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6297
6323
|
error: e.error,
|
|
6298
6324
|
"error-msg": e.errorMsg,
|
|
6299
6325
|
hint: e.hint,
|
|
6300
|
-
"hint-id":
|
|
6326
|
+
"hint-id": f(s)
|
|
6301
6327
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
6302
6328
|
])
|
|
6303
6329
|
], 64));
|
|
@@ -6368,15 +6394,15 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6368
6394
|
}
|
|
6369
6395
|
return (u, s) => (l(), D(Ge, {
|
|
6370
6396
|
name: "bs-overlay",
|
|
6371
|
-
shown:
|
|
6397
|
+
shown: f(o),
|
|
6372
6398
|
preloaded: e.preloaded,
|
|
6373
|
-
onAfterEnter: s[0] || (s[0] = (
|
|
6374
|
-
onAfterLeave: s[1] || (s[1] = (
|
|
6399
|
+
onAfterEnter: s[0] || (s[0] = (r) => a("after-enter")),
|
|
6400
|
+
onAfterLeave: s[1] || (s[1] = (r) => a("after-leave"))
|
|
6375
6401
|
}, {
|
|
6376
6402
|
default: q(() => [
|
|
6377
6403
|
w("div", {
|
|
6378
6404
|
class: "bs-overlay",
|
|
6379
|
-
"data-shown":
|
|
6405
|
+
"data-shown": f(o)
|
|
6380
6406
|
}, null, 8, fl)
|
|
6381
6407
|
]),
|
|
6382
6408
|
_: 1
|
|
@@ -6403,13 +6429,13 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6403
6429
|
W(t, "enterControlled", "preloaded"), W(t, "enterTrigger", "shown"), W(t, "leaveTrigger", "shown");
|
|
6404
6430
|
const a = n, o = C(null);
|
|
6405
6431
|
let i = !1;
|
|
6406
|
-
const { transition: u } = We(t), [s] = re(), [
|
|
6432
|
+
const { transition: u } = We(t), [s] = re(), [r] = re(), d = et();
|
|
6407
6433
|
Et([o], () => k("backdrop-clicked-close")), Ae(["Escape"], () => k("escape-pressed-close"));
|
|
6408
|
-
const c = m(() => !!(t.title ||
|
|
6434
|
+
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
6435
|
function k(y, S = !0) {
|
|
6410
6436
|
var M;
|
|
6411
|
-
const
|
|
6412
|
-
i && !
|
|
6437
|
+
const b = S && ((M = o.value) == null ? void 0 : M.querySelector('[data-shown="true"]')) !== null;
|
|
6438
|
+
i && !b && (a("close", t.modalId), a(y, t.modalId));
|
|
6413
6439
|
}
|
|
6414
6440
|
return (y, S) => (l(), h(J, null, [
|
|
6415
6441
|
R(bl, {
|
|
@@ -6417,15 +6443,15 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6417
6443
|
"enter-trigger": y.enterTrigger,
|
|
6418
6444
|
"leave-trigger": y.leaveTrigger,
|
|
6419
6445
|
preloaded: y.preloaded,
|
|
6420
|
-
shown:
|
|
6446
|
+
shown: f(u)
|
|
6421
6447
|
}, null, 8, ["enter-controlled", "enter-trigger", "leave-trigger", "preloaded", "shown"]),
|
|
6422
6448
|
R(Ge, {
|
|
6423
6449
|
name: "bs-modal",
|
|
6424
6450
|
preloaded: y.preloaded,
|
|
6425
|
-
shown:
|
|
6426
|
-
onAfterEnter: S[2] || (S[2] = (
|
|
6427
|
-
onAfterLeave: S[3] || (S[3] = (
|
|
6428
|
-
onEnter: S[4] || (S[4] = (
|
|
6451
|
+
shown: f(u),
|
|
6452
|
+
onAfterEnter: S[2] || (S[2] = (b) => a("after-enter")),
|
|
6453
|
+
onAfterLeave: S[3] || (S[3] = (b) => a("after-leave")),
|
|
6454
|
+
onEnter: S[4] || (S[4] = (b) => Hn(i) ? i.value = !0 : i = !0)
|
|
6429
6455
|
}, {
|
|
6430
6456
|
default: q(() => [
|
|
6431
6457
|
w("div", H({
|
|
@@ -6433,7 +6459,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6433
6459
|
id: y.modalId,
|
|
6434
6460
|
ref_key: "modalRef",
|
|
6435
6461
|
ref: o,
|
|
6436
|
-
"aria-labelledby": y.title && !y.$attrs["aria-label"] ?
|
|
6462
|
+
"aria-labelledby": y.title && !y.$attrs["aria-label"] ? f(s) : void 0,
|
|
6437
6463
|
"aria-modal": "true",
|
|
6438
6464
|
"data-body-background-contrast": y.bodyBackgroundContrast,
|
|
6439
6465
|
"data-component": "bs-modal",
|
|
@@ -6441,11 +6467,11 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6441
6467
|
"data-full-height": y.fullHeight,
|
|
6442
6468
|
"data-full-width": y.fullWidth,
|
|
6443
6469
|
"data-header-border": y.headerBorder,
|
|
6444
|
-
"data-shown":
|
|
6470
|
+
"data-shown": f(u),
|
|
6445
6471
|
"data-size": y.size,
|
|
6446
6472
|
role: y.alert ? "alertdialog" : "dialog"
|
|
6447
6473
|
}, y.$attrs), [
|
|
6448
|
-
R(Ii, { active:
|
|
6474
|
+
R(Ii, { active: f(u) }, {
|
|
6449
6475
|
default: q(() => [
|
|
6450
6476
|
$.value ? (l(), h("header", vl, [
|
|
6451
6477
|
w("div", ml, [
|
|
@@ -6453,8 +6479,8 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6453
6479
|
y.title ? (l(), h("span", {
|
|
6454
6480
|
key: 0,
|
|
6455
6481
|
class: "bs-modal-title",
|
|
6456
|
-
id:
|
|
6457
|
-
},
|
|
6482
|
+
id: f(s)
|
|
6483
|
+
}, L(y.title), 9, yl)) : x("", !0)
|
|
6458
6484
|
]) : x("", !0),
|
|
6459
6485
|
y.closeButton ? (l(), h("button", {
|
|
6460
6486
|
key: 1,
|
|
@@ -6462,14 +6488,14 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6462
6488
|
"aria-label": "Close Modal",
|
|
6463
6489
|
title: "Close Modal",
|
|
6464
6490
|
type: "button",
|
|
6465
|
-
onClick: S[0] || (S[0] = (
|
|
6491
|
+
onClick: S[0] || (S[0] = (b) => k("x-clicked-close", !1))
|
|
6466
6492
|
}, [
|
|
6467
|
-
R(
|
|
6493
|
+
R(f(ke))
|
|
6468
6494
|
])) : x("", !0)
|
|
6469
6495
|
]),
|
|
6470
|
-
|
|
6496
|
+
p.value ? (l(), h("div", gl, [
|
|
6471
6497
|
z(y.$slots, "subtitle", {}, () => [
|
|
6472
|
-
w("span", { id:
|
|
6498
|
+
w("span", { id: f(r) }, L(y.subtitle), 9, wl)
|
|
6473
6499
|
])
|
|
6474
6500
|
])) : x("", !0),
|
|
6475
6501
|
v.value ? (l(), h("div", kl, [
|
|
@@ -6482,9 +6508,9 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6482
6508
|
"aria-label": "Close Modal",
|
|
6483
6509
|
title: "Close Modal",
|
|
6484
6510
|
type: "button",
|
|
6485
|
-
onClick: S[1] || (S[1] = (
|
|
6511
|
+
onClick: S[1] || (S[1] = (b) => k("x-clicked-close", !1))
|
|
6486
6512
|
}, [
|
|
6487
|
-
R(
|
|
6513
|
+
R(f(ke))
|
|
6488
6514
|
])) : x("", !0),
|
|
6489
6515
|
w("div", Sl, [
|
|
6490
6516
|
z(y.$slots, "default")
|
|
@@ -6507,7 +6533,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6507
6533
|
}, Tl = ["aria-label", "title", "disabled"], Cl = { key: 0 }, Dl = ["aria-label", "title", "disabled"], Ol = { key: 0 }, xl = {
|
|
6508
6534
|
key: 1,
|
|
6509
6535
|
class: "bs-pagination-page-numbers"
|
|
6510
|
-
}, Al = ["title", "disabled", "data-selected", "onClick"], zl = { key: 2 }, El = { key: 3 }, Pl = { class: "bs-pagination-results-numbers" },
|
|
6536
|
+
}, Al = ["title", "disabled", "data-selected", "onClick"], zl = { key: 2 }, El = { key: 3 }, Pl = { class: "bs-pagination-results-numbers" }, Vl = ["data-selected", "disabled", "onClick"], Ll = {
|
|
6511
6537
|
key: 5,
|
|
6512
6538
|
class: "bs-pagination-carets"
|
|
6513
6539
|
}, Ml = ["aria-label", "title", "disabled"], Nl = { key: 0 }, ql = ["aria-label", "title", "disabled"], Rl = { key: 0 }, Ur = {
|
|
@@ -6613,10 +6639,10 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6613
6639
|
if (t.variant === "base")
|
|
6614
6640
|
return t.pageCount;
|
|
6615
6641
|
}), s = m(() => t.variant === "base" ? t.centerDisplay === "text" ? "group" : void 0 : t.variant);
|
|
6616
|
-
function
|
|
6642
|
+
function r() {
|
|
6617
6643
|
i.value = 1;
|
|
6618
6644
|
}
|
|
6619
|
-
function
|
|
6645
|
+
function d() {
|
|
6620
6646
|
i.value = Math.max(i.value - 1, 1);
|
|
6621
6647
|
}
|
|
6622
6648
|
function c() {
|
|
@@ -6625,16 +6651,16 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6625
6651
|
u.value
|
|
6626
6652
|
);
|
|
6627
6653
|
}
|
|
6628
|
-
function
|
|
6654
|
+
function p() {
|
|
6629
6655
|
i.value = u.value;
|
|
6630
6656
|
}
|
|
6631
6657
|
const v = m(() => {
|
|
6632
6658
|
if (t.pageCount <= t.pageRange)
|
|
6633
6659
|
return [...Array(t.pageCount + 1).keys()].slice(1);
|
|
6634
6660
|
const y = [1], S = (t.pageRange - 1) / 2;
|
|
6635
|
-
let
|
|
6636
|
-
|
|
6637
|
-
for (let P =
|
|
6661
|
+
let b = i.value - S, M = i.value + S;
|
|
6662
|
+
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);
|
|
6663
|
+
for (let P = b; P <= M; P++)
|
|
6638
6664
|
y.push(P);
|
|
6639
6665
|
return M < t.pageCount - 1 && y.push(t.breakText), y.push(t.pageCount), y;
|
|
6640
6666
|
}), $ = m(() => `${t.centerLabel ?? "Page"} ${i.value} of ${u.value}`), O = m(() => {
|
|
@@ -6655,10 +6681,10 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6655
6681
|
"aria-label": e.firstPageText ? void 0 : "First Page",
|
|
6656
6682
|
title: e.firstPageText,
|
|
6657
6683
|
disabled: i.value === 1,
|
|
6658
|
-
onClick:
|
|
6684
|
+
onClick: r
|
|
6659
6685
|
}, [
|
|
6660
|
-
R(
|
|
6661
|
-
e.firstPageText ? (l(), h("span", Cl,
|
|
6686
|
+
R(f(Zn)),
|
|
6687
|
+
e.firstPageText ? (l(), h("span", Cl, L(e.firstPageText), 1)) : x("", !0)
|
|
6662
6688
|
], 10, Tl)) : x("", !0),
|
|
6663
6689
|
w("button", {
|
|
6664
6690
|
type: "button",
|
|
@@ -6666,37 +6692,37 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6666
6692
|
"aria-label": e.prevPageText ? void 0 : "Previous Page",
|
|
6667
6693
|
title: e.prevPageText,
|
|
6668
6694
|
disabled: i.value === 1,
|
|
6669
|
-
onClick:
|
|
6695
|
+
onClick: d
|
|
6670
6696
|
}, [
|
|
6671
|
-
R(
|
|
6672
|
-
e.prevPageText ? (l(), h("span", Ol,
|
|
6697
|
+
R(f(nt)),
|
|
6698
|
+
e.prevPageText ? (l(), h("span", Ol, L(e.prevPageText), 1)) : x("", !0)
|
|
6673
6699
|
], 10, Dl)
|
|
6674
6700
|
])) : x("", !0),
|
|
6675
6701
|
e.variant === "base" && e.centerDisplay === "numbers" ? (l(), h("div", xl, [
|
|
6676
|
-
(l(!0), h(J, null, de(v.value, (
|
|
6677
|
-
key: `page-${
|
|
6702
|
+
(l(!0), h(J, null, de(v.value, (b) => (l(), h("button", {
|
|
6703
|
+
key: `page-${b}-button`,
|
|
6678
6704
|
type: "button",
|
|
6679
|
-
title: `Page ${
|
|
6680
|
-
disabled: i.value ===
|
|
6681
|
-
"data-selected":
|
|
6682
|
-
onClick: (M) => i.value =
|
|
6683
|
-
},
|
|
6705
|
+
title: `Page ${b}`,
|
|
6706
|
+
disabled: i.value === b || e.breakText === b,
|
|
6707
|
+
"data-selected": b === i.value,
|
|
6708
|
+
onClick: (M) => i.value = b
|
|
6709
|
+
}, L(b), 9, Al))), 128))
|
|
6684
6710
|
])) : x("", !0),
|
|
6685
|
-
t.variant === "base" && t.centerDisplay === "text" ? (l(), h("span", zl,
|
|
6686
|
-
t.variant === "group" ? (l(), h("span", El,
|
|
6711
|
+
t.variant === "base" && t.centerDisplay === "text" ? (l(), h("span", zl, L($.value), 1)) : x("", !0),
|
|
6712
|
+
t.variant === "group" ? (l(), h("span", El, L(O.value), 1)) : x("", !0),
|
|
6687
6713
|
t.variant === "results" ? (l(), h(J, { key: 4 }, [
|
|
6688
6714
|
S[0] || (S[0] = w("span", null, "Results Per Page:", -1)),
|
|
6689
6715
|
w("div", Pl, [
|
|
6690
|
-
(l(!0), h(J, null, de(k.value, (
|
|
6716
|
+
(l(!0), h(J, null, de(k.value, (b) => (l(), h("button", {
|
|
6691
6717
|
type: "button",
|
|
6692
|
-
key: `results-${
|
|
6693
|
-
"data-selected":
|
|
6694
|
-
disabled: i.value ===
|
|
6695
|
-
onClick: (M) => i.value =
|
|
6696
|
-
},
|
|
6718
|
+
key: `results-${b}`,
|
|
6719
|
+
"data-selected": b === i.value,
|
|
6720
|
+
disabled: i.value === b || e.breakText === b,
|
|
6721
|
+
onClick: (M) => i.value = b
|
|
6722
|
+
}, L(b), 9, Vl))), 128))
|
|
6697
6723
|
])
|
|
6698
6724
|
], 64)) : x("", !0),
|
|
6699
|
-
e.variant === "base" || e.variant === "group" ? (l(), h("div",
|
|
6725
|
+
e.variant === "base" || e.variant === "group" ? (l(), h("div", Ll, [
|
|
6700
6726
|
w("button", {
|
|
6701
6727
|
type: "button",
|
|
6702
6728
|
class: ve(e.nextPageText ? "bs-pagination-word-caret" : void 0),
|
|
@@ -6705,8 +6731,8 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6705
6731
|
disabled: i.value === u.value,
|
|
6706
6732
|
onClick: c
|
|
6707
6733
|
}, [
|
|
6708
|
-
e.nextPageText ? (l(), h("span", Nl,
|
|
6709
|
-
R(
|
|
6734
|
+
e.nextPageText ? (l(), h("span", Nl, L(e.nextPageText), 1)) : x("", !0),
|
|
6735
|
+
R(f(at))
|
|
6710
6736
|
], 10, Ml),
|
|
6711
6737
|
e.showFirstLastButtons ? (l(), h("button", {
|
|
6712
6738
|
key: 0,
|
|
@@ -6715,10 +6741,10 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6715
6741
|
"aria-label": e.lastPageText ? void 0 : "Last Page",
|
|
6716
6742
|
title: e.lastPageText,
|
|
6717
6743
|
disabled: i.value === u.value,
|
|
6718
|
-
onClick:
|
|
6744
|
+
onClick: p
|
|
6719
6745
|
}, [
|
|
6720
|
-
e.lastPageText ? (l(), h("span", Rl,
|
|
6721
|
-
R(
|
|
6746
|
+
e.lastPageText ? (l(), h("span", Rl, L(e.lastPageText), 1)) : x("", !0),
|
|
6747
|
+
R(f(Qn))
|
|
6722
6748
|
], 10, ql)) : x("", !0)
|
|
6723
6749
|
])) : x("", !0)
|
|
6724
6750
|
], 8, Il));
|
|
@@ -6749,7 +6775,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6749
6775
|
const n = e;
|
|
6750
6776
|
W(n, "href", "linkTo");
|
|
6751
6777
|
const { onLinkClick: t } = it(n), a = Se(), { rootTag: o, attrsToBind: i, btnRef: u } = Ke(n, a, "span");
|
|
6752
|
-
return (s,
|
|
6778
|
+
return (s, r) => (l(), D(ae(f(o)), H({
|
|
6753
6779
|
ref_key: "btnRef",
|
|
6754
6780
|
ref: u,
|
|
6755
6781
|
class: "bs-pill",
|
|
@@ -6758,7 +6784,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6758
6784
|
"data-status": e.status || void 0,
|
|
6759
6785
|
"data-variant": e.variant || void 0,
|
|
6760
6786
|
disabled: e.disabled
|
|
6761
|
-
},
|
|
6787
|
+
}, f(i), { onClick: f(t) }), {
|
|
6762
6788
|
default: q(() => [
|
|
6763
6789
|
w("span", { "data-truncate": e.truncate }, [
|
|
6764
6790
|
z(s.$slots, "default")
|
|
@@ -6809,7 +6835,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6809
6835
|
}, [
|
|
6810
6836
|
z(o.$slots, "action", {}, () => [
|
|
6811
6837
|
e.actionIcon ? (l(), h(J, { key: 0 }, [
|
|
6812
|
-
typeof e.actionIcon == "string" ? (l(), D(
|
|
6838
|
+
typeof e.actionIcon == "string" ? (l(), D(f(ce), {
|
|
6813
6839
|
key: 0,
|
|
6814
6840
|
name: e.actionIcon,
|
|
6815
6841
|
class: "bs-icon"
|
|
@@ -6818,17 +6844,17 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6818
6844
|
class: "bs-icon"
|
|
6819
6845
|
}))
|
|
6820
6846
|
], 64)) : x("", !0),
|
|
6821
|
-
_(" " +
|
|
6847
|
+
_(" " + L(e.action), 1)
|
|
6822
6848
|
])
|
|
6823
6849
|
])) : x("", !0),
|
|
6824
|
-
w("span", Ul,
|
|
6825
|
-
e.company ? (l(), h("span", Wl,
|
|
6826
|
-
e.jobTitle ? (l(), h("span", Kl,
|
|
6827
|
-
e.email ? (l(), h("span", Hl,
|
|
6850
|
+
w("span", Ul, L(e.profileName), 1),
|
|
6851
|
+
e.company ? (l(), h("span", Wl, L(e.company), 1)) : x("", !0),
|
|
6852
|
+
e.jobTitle ? (l(), h("span", Kl, L(e.jobTitle), 1)) : x("", !0),
|
|
6853
|
+
e.email ? (l(), h("span", Hl, L(e.email), 1)) : x("", !0),
|
|
6828
6854
|
e.miscMeta || o.$slots.misc ? (l(), h("span", Gl, [
|
|
6829
6855
|
z(o.$slots, "misc", {}, () => [
|
|
6830
6856
|
e.miscMetaIcon ? (l(), h(J, { key: 0 }, [
|
|
6831
|
-
typeof e.miscMetaIcon == "string" ? (l(), D(
|
|
6857
|
+
typeof e.miscMetaIcon == "string" ? (l(), D(f(ce), {
|
|
6832
6858
|
key: 0,
|
|
6833
6859
|
name: e.miscMetaIcon,
|
|
6834
6860
|
class: "bs-icon"
|
|
@@ -6837,7 +6863,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6837
6863
|
class: "bs-icon"
|
|
6838
6864
|
}))
|
|
6839
6865
|
], 64)) : x("", !0),
|
|
6840
|
-
_(" " +
|
|
6866
|
+
_(" " + L(e.miscMeta), 1)
|
|
6841
6867
|
])
|
|
6842
6868
|
])) : x("", !0)
|
|
6843
6869
|
]));
|
|
@@ -6849,38 +6875,38 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6849
6875
|
setup(e, { emit: n }) {
|
|
6850
6876
|
const t = e;
|
|
6851
6877
|
W(t, "href", "linkTo");
|
|
6852
|
-
const a = n, o = Se(), { onLinkClick: i } = it(t), { rootTag: u, attrsToBind: s, btnRef:
|
|
6853
|
-
return (
|
|
6878
|
+
const a = n, o = Se(), { onLinkClick: i } = it(t), { rootTag: u, attrsToBind: s, btnRef: r } = Ke(t, o, "div");
|
|
6879
|
+
return (d, c) => (l(), D(ae(f(u)), H({
|
|
6854
6880
|
ref_key: "btnRef",
|
|
6855
|
-
ref:
|
|
6881
|
+
ref: r,
|
|
6856
6882
|
class: "bs-profile",
|
|
6857
6883
|
"data-component": "bs-profile",
|
|
6858
|
-
"data-layout":
|
|
6859
|
-
},
|
|
6884
|
+
"data-layout": d.layout
|
|
6885
|
+
}, f(s), { onClick: f(i) }), {
|
|
6860
6886
|
default: q(() => [
|
|
6861
6887
|
R(Dn, {
|
|
6862
|
-
src:
|
|
6863
|
-
size:
|
|
6864
|
-
initials:
|
|
6865
|
-
"profile-name":
|
|
6888
|
+
src: d.imageSrc,
|
|
6889
|
+
size: d.imageSize,
|
|
6890
|
+
initials: d.initials,
|
|
6891
|
+
"profile-name": d.profileName,
|
|
6866
6892
|
"use-alt-text": !1
|
|
6867
6893
|
}, null, 8, ["src", "size", "initials", "profile-name"]),
|
|
6868
6894
|
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] = (
|
|
6895
|
+
"profile-name": d.profileName,
|
|
6896
|
+
company: d.company,
|
|
6897
|
+
"job-title": d.jobTitle,
|
|
6898
|
+
email: d.email,
|
|
6899
|
+
action: d.action,
|
|
6900
|
+
"action-icon": d.actionIcon,
|
|
6901
|
+
"misc-meta": d.miscMeta,
|
|
6902
|
+
"misc-meta-icon": d.miscMetaIcon,
|
|
6903
|
+
onActionToggled: c[0] || (c[0] = (p) => a("action-toggled"))
|
|
6878
6904
|
}, {
|
|
6879
6905
|
action: q(() => [
|
|
6880
|
-
z(
|
|
6906
|
+
z(d.$slots, "action")
|
|
6881
6907
|
]),
|
|
6882
6908
|
misc: q(() => [
|
|
6883
|
-
z(
|
|
6909
|
+
z(d.$slots, "misc")
|
|
6884
6910
|
]),
|
|
6885
6911
|
_: 3
|
|
6886
6912
|
}, 8, ["profile-name", "company", "job-title", "email", "action", "action-icon", "misc-meta", "misc-meta-icon"])
|
|
@@ -6889,7 +6915,7 @@ const Li = ["aria-current", "data-active", "href"], Me = {
|
|
|
6889
6915
|
}, 16, ["data-layout", "onClick"]));
|
|
6890
6916
|
}
|
|
6891
6917
|
});
|
|
6892
|
-
function
|
|
6918
|
+
function Vn(e) {
|
|
6893
6919
|
const n = m(() => {
|
|
6894
6920
|
var o;
|
|
6895
6921
|
switch (e.currentStatus) {
|
|
@@ -6942,23 +6968,23 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
6942
6968
|
}
|
|
6943
6969
|
},
|
|
6944
6970
|
setup(e) {
|
|
6945
|
-
const n = e, { progressStep: t, progressText: a, getStatus: o } =
|
|
6971
|
+
const n = e, { progressStep: t, progressText: a, getStatus: o } = Vn(n);
|
|
6946
6972
|
return (i, u) => (l(), h("div", {
|
|
6947
6973
|
"aria-valuemax": e.steps.length,
|
|
6948
|
-
"aria-valuenow":
|
|
6949
|
-
"aria-valuetext":
|
|
6974
|
+
"aria-valuenow": f(t),
|
|
6975
|
+
"aria-valuetext": f(a),
|
|
6950
6976
|
class: "bs-progress-bar",
|
|
6951
6977
|
"data-component": "bs-progress-bar",
|
|
6952
6978
|
role: "progressbar"
|
|
6953
6979
|
}, [
|
|
6954
|
-
(l(!0), h(J, null, de(e.steps, (s,
|
|
6980
|
+
(l(!0), h(J, null, de(e.steps, (s, r) => (l(), h("div", {
|
|
6955
6981
|
class: "bs-step-item",
|
|
6956
|
-
"data-status":
|
|
6982
|
+
"data-status": f(o)(s.status, r),
|
|
6957
6983
|
"data-variant": "progress",
|
|
6958
6984
|
key: s.id || s.label,
|
|
6959
6985
|
role: "status"
|
|
6960
6986
|
}, [
|
|
6961
|
-
w("span", null,
|
|
6987
|
+
w("span", null, L(s.label || s) + " : " + L(f(o)(s.status, r) || "not started"), 1)
|
|
6962
6988
|
], 8, Zl))), 128))
|
|
6963
6989
|
], 8, Xl));
|
|
6964
6990
|
}
|
|
@@ -7007,33 +7033,33 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7007
7033
|
const t = e;
|
|
7008
7034
|
W(t, "passAttrs", void 0, "Use Vue's native fallthrough attributes instead.");
|
|
7009
7035
|
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 (
|
|
7036
|
+
return (r, d) => (l(), h("div", H({
|
|
7011
7037
|
class: "bs-boolean",
|
|
7012
7038
|
"data-component": "bs-radio",
|
|
7013
7039
|
"data-disabled": e.disabled,
|
|
7014
7040
|
"data-error": e.error,
|
|
7015
7041
|
"data-size": e.size
|
|
7016
|
-
},
|
|
7042
|
+
}, f(o)), [
|
|
7017
7043
|
w("input", H({
|
|
7018
7044
|
checked: s.value,
|
|
7019
7045
|
disabled: e.disabled,
|
|
7020
|
-
id:
|
|
7046
|
+
id: r.$attrs.id || u.value,
|
|
7021
7047
|
required: e.required,
|
|
7022
7048
|
type: "radio",
|
|
7023
7049
|
value: e.value,
|
|
7024
7050
|
"data-error": e.error
|
|
7025
|
-
},
|
|
7026
|
-
onChange:
|
|
7051
|
+
}, f(i), {
|
|
7052
|
+
onChange: d[0] || (d[0] = (c) => r.$emit("update:modelValue", c.target.value))
|
|
7027
7053
|
}), null, 16, Jl),
|
|
7028
|
-
e.label ||
|
|
7054
|
+
e.label || r.$slots.label ? (l(), D(pe, {
|
|
7029
7055
|
key: 0,
|
|
7030
|
-
for:
|
|
7056
|
+
for: r.$attrs.id || u.value,
|
|
7031
7057
|
disabled: e.disabled,
|
|
7032
7058
|
required: e.required
|
|
7033
7059
|
}, {
|
|
7034
7060
|
default: q(() => [
|
|
7035
|
-
z(
|
|
7036
|
-
_(
|
|
7061
|
+
z(r.$slots, "label", {}, () => [
|
|
7062
|
+
_(L(e.label), 1)
|
|
7037
7063
|
])
|
|
7038
7064
|
]),
|
|
7039
7065
|
_: 3
|
|
@@ -7112,20 +7138,20 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7112
7138
|
const n = e;
|
|
7113
7139
|
W(n, "hints", void 0, "Use 'hint' and/or 'errorMsg. instead."), W(n, "passAttrs", void 0, "Use Vue's native fallthrough attributes instead.");
|
|
7114
7140
|
const [t, a] = re(2), { filtered: o, remaining: i } = ye(["class", "style"]), u = m(() => {
|
|
7115
|
-
var c,
|
|
7116
|
-
return ((
|
|
7141
|
+
var c, p;
|
|
7142
|
+
return ((p = (c = n.hints) == null ? void 0 : c.join) == null ? void 0 : p.call(c, `
|
|
7117
7143
|
`)) || n.hints;
|
|
7118
|
-
}), s = m(() => n.error && n.errorMsg || n.hint || u.value || void 0),
|
|
7119
|
-
return (c,
|
|
7144
|
+
}), s = m(() => n.error && n.errorMsg || n.hint || u.value || void 0), r = m(() => n.inputId || t.value), d = m(() => n.value || n.modelValue);
|
|
7145
|
+
return (c, p) => (l(), h("div", H({ "data-component": "bs-select-field" }, f(o)), [
|
|
7120
7146
|
e.label || c.$slots.label ? (l(), D(pe, {
|
|
7121
7147
|
key: 0,
|
|
7122
|
-
for: c.$attrs.id ||
|
|
7148
|
+
for: c.$attrs.id || r.value,
|
|
7123
7149
|
disabled: e.disabled,
|
|
7124
7150
|
required: e.required
|
|
7125
7151
|
}, {
|
|
7126
7152
|
default: q(() => [
|
|
7127
7153
|
z(c.$slots, "label", {}, () => [
|
|
7128
|
-
_(
|
|
7154
|
+
_(L(e.label), 1)
|
|
7129
7155
|
])
|
|
7130
7156
|
]),
|
|
7131
7157
|
_: 3
|
|
@@ -7133,24 +7159,24 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7133
7159
|
R(es, H({
|
|
7134
7160
|
disabled: e.disabled,
|
|
7135
7161
|
error: e.error,
|
|
7136
|
-
"hint-id":
|
|
7137
|
-
"input-id": c.$attrs.id ||
|
|
7162
|
+
"hint-id": f(a),
|
|
7163
|
+
"input-id": c.$attrs.id || r.value,
|
|
7138
7164
|
required: e.required,
|
|
7139
|
-
value:
|
|
7140
|
-
"onUpdate:modelValue":
|
|
7141
|
-
},
|
|
7165
|
+
value: d.value,
|
|
7166
|
+
"onUpdate:modelValue": p[0] || (p[0] = (v) => c.$emit("update:modelValue", v))
|
|
7167
|
+
}, f(i)), {
|
|
7142
7168
|
default: q(() => [
|
|
7143
7169
|
w("option", {
|
|
7144
|
-
selected: !
|
|
7170
|
+
selected: !d.value,
|
|
7145
7171
|
value: "",
|
|
7146
|
-
disabled: !!
|
|
7147
|
-
},
|
|
7172
|
+
disabled: !!d.value
|
|
7173
|
+
}, L(e.disabled ? "" : e.placeholder), 9, ts),
|
|
7148
7174
|
(l(!0), h(J, null, de(e.data, (v) => (l(), h("option", {
|
|
7149
7175
|
key: v.value,
|
|
7150
7176
|
disabled: v.disabled,
|
|
7151
|
-
selected:
|
|
7177
|
+
selected: d.value === v.value,
|
|
7152
7178
|
value: v.value
|
|
7153
|
-
},
|
|
7179
|
+
}, L(v.label), 9, ns))), 128))
|
|
7154
7180
|
]),
|
|
7155
7181
|
_: 1
|
|
7156
7182
|
}, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
|
|
@@ -7160,7 +7186,7 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7160
7186
|
error: e.error,
|
|
7161
7187
|
"error-msg": e.errorMsg,
|
|
7162
7188
|
hint: e.hint || u.value,
|
|
7163
|
-
"hint-id":
|
|
7189
|
+
"hint-id": f(a)
|
|
7164
7190
|
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
7165
7191
|
], 16));
|
|
7166
7192
|
}
|
|
@@ -7244,7 +7270,7 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7244
7270
|
},
|
|
7245
7271
|
emits: ["update:model-value"],
|
|
7246
7272
|
setup(e, { emit: n }) {
|
|
7247
|
-
const t = e, a = n, [o, i] = re(2), u = Se(), s = C(!1),
|
|
7273
|
+
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
7274
|
if (t.modelValue) {
|
|
7249
7275
|
const v = t.options.find(($) => {
|
|
7250
7276
|
var O, k;
|
|
@@ -7254,17 +7280,17 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7254
7280
|
return v.label;
|
|
7255
7281
|
}
|
|
7256
7282
|
return t.placeholder;
|
|
7257
|
-
}),
|
|
7283
|
+
}), p = m(() => c.value === t.placeholder);
|
|
7258
7284
|
return (v, $) => (l(), h("div", null, [
|
|
7259
7285
|
e.label || v.$slots.label ? (l(), D(pe, {
|
|
7260
7286
|
key: 0,
|
|
7261
7287
|
disabled: e.disabled,
|
|
7262
|
-
for:
|
|
7288
|
+
for: r.value,
|
|
7263
7289
|
required: e.required
|
|
7264
7290
|
}, {
|
|
7265
7291
|
default: q(() => [
|
|
7266
7292
|
z(v.$slots, "label", {}, () => [
|
|
7267
|
-
_(
|
|
7293
|
+
_(L(e.label), 1)
|
|
7268
7294
|
])
|
|
7269
7295
|
]),
|
|
7270
7296
|
_: 3
|
|
@@ -7277,7 +7303,7 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7277
7303
|
value: e.modelValue
|
|
7278
7304
|
}, null, 8, as)) : x("", !0),
|
|
7279
7305
|
R(An, {
|
|
7280
|
-
"anchor-id":
|
|
7306
|
+
"anchor-id": r.value,
|
|
7281
7307
|
breakout: e.breakout,
|
|
7282
7308
|
"dropdown-position": e.dropdownPosition,
|
|
7283
7309
|
"dropdown-width": e.dropdownWidth,
|
|
@@ -7285,37 +7311,37 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7285
7311
|
"helper-text": e.helperText,
|
|
7286
7312
|
multiselect: !1,
|
|
7287
7313
|
open: s.value,
|
|
7288
|
-
"options-id":
|
|
7314
|
+
"options-id": d.value,
|
|
7289
7315
|
options: e.options,
|
|
7290
7316
|
"selected-option": e.modelValue,
|
|
7291
|
-
"toggle-id":
|
|
7317
|
+
"toggle-id": r.value,
|
|
7292
7318
|
"value-id-key": e.valueIdKey,
|
|
7293
7319
|
onClose: $[1] || ($[1] = (O) => s.value = !1),
|
|
7294
7320
|
"onUpdate:selectedOption": $[2] || ($[2] = (O) => a("update:model-value", O))
|
|
7295
7321
|
}, {
|
|
7296
7322
|
toggle: q(() => [
|
|
7297
7323
|
w("button", H({
|
|
7298
|
-
"aria-controls":
|
|
7324
|
+
"aria-controls": d.value,
|
|
7299
7325
|
"aria-describedby": e.hintId,
|
|
7300
7326
|
"aria-expanded": s.value,
|
|
7301
7327
|
"aria-haspopup": "listbox",
|
|
7302
7328
|
"aria-invalid": e.error,
|
|
7303
7329
|
"aria-label": `${s.value ? "Close" : "Open"} Combobox`,
|
|
7304
7330
|
class: "bs-select",
|
|
7305
|
-
"data-cy":
|
|
7331
|
+
"data-cy": p.value ? "ignore" : void 0,
|
|
7306
7332
|
"data-disabled": e.disabled,
|
|
7307
7333
|
"data-error": e.error,
|
|
7308
7334
|
"data-open": s.value,
|
|
7309
|
-
"data-placeholder":
|
|
7335
|
+
"data-placeholder": p.value,
|
|
7310
7336
|
"data-required": e.required,
|
|
7311
7337
|
disabled: e.disabled,
|
|
7312
|
-
id:
|
|
7338
|
+
id: r.value,
|
|
7313
7339
|
role: "combobox"
|
|
7314
7340
|
}, v.$attrs, {
|
|
7315
7341
|
onClick: $[0] || ($[0] = Ce((O) => s.value = !s.value, ["prevent"]))
|
|
7316
7342
|
}), [
|
|
7317
|
-
w("span", null,
|
|
7318
|
-
e.disabled ? x("", !0) : (l(), D(
|
|
7343
|
+
w("span", null, L(c.value), 1),
|
|
7344
|
+
e.disabled ? x("", !0) : (l(), D(f(Le), {
|
|
7319
7345
|
key: 0,
|
|
7320
7346
|
size: "md"
|
|
7321
7347
|
}))
|
|
@@ -7367,22 +7393,22 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7367
7393
|
setup(e, { emit: n }) {
|
|
7368
7394
|
const t = e;
|
|
7369
7395
|
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 (
|
|
7396
|
+
const a = n, [o] = re(), { filtered: i, remaining: u } = ye(["class", "style"]), s = m(() => t.inputId || o.value), r = m(() => t.checked || t.modelValue);
|
|
7397
|
+
return (d, c) => (l(), h("div", H({
|
|
7372
7398
|
class: "bs-boolean",
|
|
7373
7399
|
"data-component": "bs-switch",
|
|
7374
7400
|
"data-disabled": e.disabled,
|
|
7375
7401
|
"data-size": e.size
|
|
7376
|
-
},
|
|
7377
|
-
e.label ||
|
|
7402
|
+
}, f(i)), [
|
|
7403
|
+
e.label || d.$slots.label ? (l(), D(pe, {
|
|
7378
7404
|
key: 0,
|
|
7379
|
-
for:
|
|
7405
|
+
for: d.$attrs.id || s.value,
|
|
7380
7406
|
disabled: e.disabled,
|
|
7381
7407
|
hide: e.hideLabel
|
|
7382
7408
|
}, {
|
|
7383
7409
|
default: q(() => [
|
|
7384
|
-
z(
|
|
7385
|
-
_(
|
|
7410
|
+
z(d.$slots, "label", {}, () => [
|
|
7411
|
+
_(L(e.label), 1)
|
|
7386
7412
|
])
|
|
7387
7413
|
]),
|
|
7388
7414
|
_: 3
|
|
@@ -7393,12 +7419,12 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7393
7419
|
"data-size": e.size
|
|
7394
7420
|
}, [
|
|
7395
7421
|
w("input", H({
|
|
7396
|
-
checked:
|
|
7422
|
+
checked: r.value,
|
|
7397
7423
|
disabled: e.disabled,
|
|
7398
|
-
id:
|
|
7424
|
+
id: d.$attrs.id || s.value,
|
|
7399
7425
|
type: "checkbox"
|
|
7400
|
-
},
|
|
7401
|
-
onChange: c[0] || (c[0] = (
|
|
7426
|
+
}, f(u), {
|
|
7427
|
+
onChange: c[0] || (c[0] = (p) => a("update:modelValue", p.target.checked))
|
|
7402
7428
|
}), null, 16, ss),
|
|
7403
7429
|
w("span", {
|
|
7404
7430
|
"aria-hidden": "true",
|
|
@@ -7426,16 +7452,16 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7426
7452
|
emits: ["tabClick"],
|
|
7427
7453
|
setup(e, { emit: n }) {
|
|
7428
7454
|
const t = e, a = Se(), o = C(), i = m(() => t.activeTabId === a.id), u = m(() => t.panelId || `${a.id}-panel`);
|
|
7429
|
-
function s(
|
|
7430
|
-
(
|
|
7455
|
+
function s(d) {
|
|
7456
|
+
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), d.stopPropagation(), r());
|
|
7431
7457
|
}
|
|
7432
|
-
function
|
|
7458
|
+
function r() {
|
|
7433
7459
|
if (t.activeTabId !== a.id) {
|
|
7434
|
-
const
|
|
7435
|
-
o.value.dispatchEvent(
|
|
7460
|
+
const d = new CustomEvent("tabClick", { detail: a.id, bubbles: !0 });
|
|
7461
|
+
o.value.dispatchEvent(d);
|
|
7436
7462
|
}
|
|
7437
7463
|
}
|
|
7438
|
-
return (
|
|
7464
|
+
return (d, c) => (l(), h("div", {
|
|
7439
7465
|
"aria-controls": u.value,
|
|
7440
7466
|
"aria-selected": i.value ? "true" : "false",
|
|
7441
7467
|
"data-hidden": e.hidden || void 0,
|
|
@@ -7444,10 +7470,10 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7444
7470
|
tabindex: "0",
|
|
7445
7471
|
ref_key: "hostEl",
|
|
7446
7472
|
ref: o,
|
|
7447
|
-
onClick:
|
|
7473
|
+
onClick: r,
|
|
7448
7474
|
onKeydown: s
|
|
7449
7475
|
}, [
|
|
7450
|
-
z(
|
|
7476
|
+
z(d.$slots, "default")
|
|
7451
7477
|
], 40, ds));
|
|
7452
7478
|
}
|
|
7453
7479
|
}, us = ["id", "data-resizing"], cs = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], ps = 73, fs = 20, ut = 16, Jr = {
|
|
@@ -7461,12 +7487,12 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7461
7487
|
},
|
|
7462
7488
|
emits: ["tabChange", "update:modelValue"],
|
|
7463
7489
|
setup(e, { emit: n }) {
|
|
7464
|
-
const t = e, a = n, o = C(!1), i = C(!1), u = C([]), s = C(!1),
|
|
7490
|
+
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
7491
|
let P;
|
|
7466
7492
|
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
7493
|
var A;
|
|
7468
7494
|
return g.value ? (A = $.value[B.value]) == null ? void 0 : A.textContent : "More";
|
|
7469
|
-
}), G = m(() => g.value ?
|
|
7495
|
+
}), G = m(() => g.value ? p.value[B.value] - p.value[B.value - 1] + fs + ut : ps + ut);
|
|
7470
7496
|
function te() {
|
|
7471
7497
|
var xe;
|
|
7472
7498
|
let A = !1, j, X = 0, ne = !1, Be = [];
|
|
@@ -7476,14 +7502,14 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7476
7502
|
j.dataset.hidden = "true", Be.push(j);
|
|
7477
7503
|
continue;
|
|
7478
7504
|
}
|
|
7479
|
-
if (X = Te < $.value.length - 1 ? S.value - G.value : S.value,
|
|
7505
|
+
if (X = Te < $.value.length - 1 ? S.value - G.value : S.value, p.value[Te] > X) {
|
|
7480
7506
|
j.dataset.hidden = "true", Be.push(j), A = !0, ne = !0;
|
|
7481
7507
|
continue;
|
|
7482
7508
|
}
|
|
7483
7509
|
j.dataset.hidden = "false", j.setAttribute("tabindex", "0");
|
|
7484
7510
|
}
|
|
7485
|
-
|
|
7486
|
-
|
|
7511
|
+
r.value = A, u.value = Be, o.value || Re(() => o.value = !0), P = setTimeout(() => {
|
|
7512
|
+
d.value && (Q(), le(), v.value = !0);
|
|
7487
7513
|
}, v.value ? 25 : 1e3);
|
|
7488
7514
|
}
|
|
7489
7515
|
}
|
|
@@ -7499,7 +7525,7 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7499
7525
|
function Ie(A) {
|
|
7500
7526
|
var ne, Be, xe;
|
|
7501
7527
|
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 ?
|
|
7528
|
+
return j || (A === 0 ? p.value[0] : p.value[A] - p.value[A - 1]) || 0;
|
|
7503
7529
|
}
|
|
7504
7530
|
function we() {
|
|
7505
7531
|
var A;
|
|
@@ -7542,9 +7568,9 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7542
7568
|
}
|
|
7543
7569
|
function le() {
|
|
7544
7570
|
var xe, Te, Mt, Nt;
|
|
7545
|
-
const A = parseInt(
|
|
7571
|
+
const A = parseInt(d.value.style.getPropertyValue("--active-line-offset")) || 0, j = S.value;
|
|
7546
7572
|
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
|
-
|
|
7573
|
+
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
7574
|
}
|
|
7549
7575
|
function Pe() {
|
|
7550
7576
|
var A, j;
|
|
@@ -7553,17 +7579,17 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7553
7579
|
function T() {
|
|
7554
7580
|
const A = Je(() => {
|
|
7555
7581
|
var j;
|
|
7556
|
-
S.value = (j =
|
|
7582
|
+
S.value = (j = d == null ? void 0 : d.value) == null ? void 0 : j.clientWidth, te();
|
|
7557
7583
|
}, 25);
|
|
7558
|
-
y.value = new ResizeObserver(A), y.value.observe(document.body),
|
|
7584
|
+
y.value = new ResizeObserver(A), y.value.observe(document.body), d.value && y.value.observe(d.value);
|
|
7559
7585
|
}
|
|
7560
|
-
function
|
|
7586
|
+
function V() {
|
|
7561
7587
|
$.value = Array.from(c.value.children).filter((A) => A.role === "tab");
|
|
7562
7588
|
}
|
|
7563
7589
|
function F() {
|
|
7564
7590
|
let A;
|
|
7565
7591
|
$.value.forEach((j, X) => {
|
|
7566
|
-
A = j.getBoundingClientRect().width + ut,
|
|
7592
|
+
A = j.getBoundingClientRect().width + ut, p.value.push(X ? A + p.value[X - 1] : A);
|
|
7567
7593
|
});
|
|
7568
7594
|
}
|
|
7569
7595
|
function Q() {
|
|
@@ -7574,20 +7600,20 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7574
7600
|
if (((j = ne.dataset) == null ? void 0 : j.hidden) === "true" || ((X = ne.dataset) == null ? void 0 : X.hidden) === "" || ne.getAttribute("tabindex") === "-1") break;
|
|
7575
7601
|
A.push(ne);
|
|
7576
7602
|
}
|
|
7577
|
-
|
|
7603
|
+
r.value && A.push(d.value.querySelector(".bs-tab-list-toggle")), k.value = A;
|
|
7578
7604
|
}
|
|
7579
7605
|
return Z(() => t.activeTabId, we), ee(() => {
|
|
7580
7606
|
var A;
|
|
7581
7607
|
try {
|
|
7582
|
-
|
|
7608
|
+
V(), F(), T(), S.value = d.value.getBoundingClientRect().width, te(), t.withBsTabs || (A = $.value[B.value]) == null || A.setAttribute("aria-selected", "true");
|
|
7583
7609
|
} catch (j) {
|
|
7584
7610
|
console.log("tab error", j);
|
|
7585
7611
|
}
|
|
7586
7612
|
}), De($e), (A, j) => (l(), h("div", {
|
|
7587
7613
|
class: "bs-tab-list",
|
|
7588
7614
|
ref_key: "hostEl",
|
|
7589
|
-
ref:
|
|
7590
|
-
id: A.$attrs.id ||
|
|
7615
|
+
ref: d,
|
|
7616
|
+
id: A.$attrs.id || f(b),
|
|
7591
7617
|
"data-component": "bs-tab-list",
|
|
7592
7618
|
"data-resizing": !o.value || void 0
|
|
7593
7619
|
}, [
|
|
@@ -7603,25 +7629,25 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7603
7629
|
z(A.$slots, "default")
|
|
7604
7630
|
], 544),
|
|
7605
7631
|
w("button", {
|
|
7606
|
-
"aria-controls":
|
|
7632
|
+
"aria-controls": f(M),
|
|
7607
7633
|
"aria-expanded": s.value,
|
|
7608
7634
|
class: "bs-tab-list-toggle",
|
|
7609
7635
|
"data-active": g.value || void 0,
|
|
7610
|
-
"data-hidden": !
|
|
7636
|
+
"data-hidden": !r.value,
|
|
7611
7637
|
id: E.value,
|
|
7612
7638
|
ref_key: "dropdownToggle",
|
|
7613
7639
|
ref: O,
|
|
7614
7640
|
onClick: Oe
|
|
7615
7641
|
}, [
|
|
7616
|
-
R(
|
|
7617
|
-
_(" " +
|
|
7642
|
+
R(f(Jn), { size: "sm" }),
|
|
7643
|
+
_(" " + L(N.value), 1)
|
|
7618
7644
|
], 8, cs),
|
|
7619
7645
|
R(En, {
|
|
7620
7646
|
"anchor-id": E.value,
|
|
7621
|
-
"container-id": A.$attrs.id ||
|
|
7647
|
+
"container-id": A.$attrs.id || f(b),
|
|
7622
7648
|
"helper-description": e.helperDescription || void 0,
|
|
7623
7649
|
"helper-text": e.helperText,
|
|
7624
|
-
id:
|
|
7650
|
+
id: f(M),
|
|
7625
7651
|
"options-id": I.value,
|
|
7626
7652
|
position: "right",
|
|
7627
7653
|
preloaded: "",
|
|
@@ -7637,7 +7663,7 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7637
7663
|
"options-id": I.value
|
|
7638
7664
|
}, {
|
|
7639
7665
|
default: q(() => [
|
|
7640
|
-
_(
|
|
7666
|
+
_(L(X.textContent), 1)
|
|
7641
7667
|
]),
|
|
7642
7668
|
_: 2
|
|
7643
7669
|
}, 1032, ["value", "options-id"]))), 128))
|
|
@@ -7671,10 +7697,10 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7671
7697
|
], 8, bs));
|
|
7672
7698
|
}
|
|
7673
7699
|
};
|
|
7674
|
-
function
|
|
7700
|
+
function Ln() {
|
|
7675
7701
|
return null;
|
|
7676
7702
|
}
|
|
7677
|
-
|
|
7703
|
+
Ln.props = {
|
|
7678
7704
|
id: {
|
|
7679
7705
|
// TODO: Change to "required", use as cell loop key, and update all docs after getting resizing working ORCA app okay
|
|
7680
7706
|
type: String,
|
|
@@ -7727,7 +7753,7 @@ Vn.props = {
|
|
|
7727
7753
|
// default width is set in Table.vue
|
|
7728
7754
|
}
|
|
7729
7755
|
};
|
|
7730
|
-
const ct =
|
|
7756
|
+
const ct = Ln, Mn = Symbol("TableHeaderProvider"), Nn = Symbol("TableBodyProvider"), qn = Symbol("TableFooterProvider"), pt = {
|
|
7731
7757
|
__name: "TableRowGroup",
|
|
7732
7758
|
props: {
|
|
7733
7759
|
kind: {
|
|
@@ -7795,7 +7821,7 @@ function Fn(e, { slots: n }) {
|
|
|
7795
7821
|
}, n);
|
|
7796
7822
|
}
|
|
7797
7823
|
Fn.props = {};
|
|
7798
|
-
const Yt = Fn,
|
|
7824
|
+
const Yt = Fn, Lt = (e, n) => {
|
|
7799
7825
|
const t = e.__vccOpts || e;
|
|
7800
7826
|
for (const [a, o] of n)
|
|
7801
7827
|
t[a] = o;
|
|
@@ -7806,13 +7832,13 @@ function ys(e, n) {
|
|
|
7806
7832
|
z(e.$slots, "default")
|
|
7807
7833
|
]);
|
|
7808
7834
|
}
|
|
7809
|
-
const gs = /* @__PURE__ */
|
|
7835
|
+
const gs = /* @__PURE__ */ Lt(vs, [["render", ys]]), ws = {}, ks = { class: "bs-table-wrap-footer" };
|
|
7810
7836
|
function Ss(e, n) {
|
|
7811
7837
|
return l(), h("div", ks, [
|
|
7812
7838
|
z(e.$slots, "default")
|
|
7813
7839
|
]);
|
|
7814
7840
|
}
|
|
7815
|
-
const $s = /* @__PURE__ */
|
|
7841
|
+
const $s = /* @__PURE__ */ Lt(ws, [["render", Ss]]), Xt = {
|
|
7816
7842
|
__name: "SortToggle",
|
|
7817
7843
|
props: {
|
|
7818
7844
|
order: {
|
|
@@ -7847,7 +7873,7 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
7847
7873
|
z(u.$slots, "default", {}, () => [
|
|
7848
7874
|
s[0] || (s[0] = w("span", { class: "visually-hidden" }, "sort toggle", -1))
|
|
7849
7875
|
]),
|
|
7850
|
-
(l(), D(ae(o[a.order] ||
|
|
7876
|
+
(l(), D(ae(o[a.order] || f(sn)), {
|
|
7851
7877
|
size: e.size,
|
|
7852
7878
|
"aria-hidden": "true"
|
|
7853
7879
|
}, null, 8, ["size"]))
|
|
@@ -7859,24 +7885,24 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
7859
7885
|
setup(e, { emit: n }) {
|
|
7860
7886
|
const t = n, a = Gn("resizer");
|
|
7861
7887
|
let o = null, i = null, u = null;
|
|
7862
|
-
const s = nn({ el: null, rect: null }),
|
|
7888
|
+
const s = nn({ el: null, rect: null }), r = C(!1), d = C(!1);
|
|
7863
7889
|
ee(() => {
|
|
7864
7890
|
document.addEventListener("pointermove", c);
|
|
7865
7891
|
}), De(() => {
|
|
7866
7892
|
document.removeEventListener("pointermove", c);
|
|
7867
7893
|
});
|
|
7868
7894
|
function c(I) {
|
|
7869
|
-
if (
|
|
7870
|
-
if (
|
|
7895
|
+
if (d.value) return;
|
|
7896
|
+
if (r.value)
|
|
7871
7897
|
return I.target === a.value || k();
|
|
7872
7898
|
if (v(I.target.closest("[data-bs-table-col-resize-id]")), !s.value.el) return;
|
|
7873
7899
|
const E = I.clientX <= s.value.rect.left + Zt, N = I.clientX >= s.value.rect.right - Zt;
|
|
7874
7900
|
if (!(E && I.target.dataset.bsTableColResize === "right") && (E || N)) {
|
|
7875
|
-
if (i = E ? s.value.rect.left : s.value.rect.right, E && v(
|
|
7901
|
+
if (i = E ? s.value.rect.left : s.value.rect.right, E && v(p()), !s.value.el) return;
|
|
7876
7902
|
O();
|
|
7877
7903
|
}
|
|
7878
7904
|
}
|
|
7879
|
-
function
|
|
7905
|
+
function p() {
|
|
7880
7906
|
const I = s.value.el.previousElementSibling;
|
|
7881
7907
|
if (!I) return;
|
|
7882
7908
|
const E = I.classList.contains("bs-table-cols-frozen-left") ? s.value.el.previousElementSibling.lastElementChild : s.value.el.previousElementSibling;
|
|
@@ -7892,29 +7918,29 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
7892
7918
|
return parseInt(E, 10);
|
|
7893
7919
|
}
|
|
7894
7920
|
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`),
|
|
7921
|
+
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
7922
|
}
|
|
7897
7923
|
function k() {
|
|
7898
|
-
|
|
7924
|
+
r.value = !1;
|
|
7899
7925
|
}
|
|
7900
7926
|
function y(I) {
|
|
7901
7927
|
I.target.setPointerCapture(I.pointerId);
|
|
7902
7928
|
const E = a.value.closest(".bs-table-scroll-wrap");
|
|
7903
|
-
a.value.style.setProperty("--bs-table-col-resizer-tail-height", `${E.offsetHeight}px`),
|
|
7929
|
+
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
7930
|
}
|
|
7905
7931
|
function S(I) {
|
|
7906
|
-
i =
|
|
7932
|
+
i = b(I) ? s.value.rect.left + s.value.minWidth : I.clientX, !u && (u = requestAnimationFrame(() => {
|
|
7907
7933
|
u = null, M();
|
|
7908
7934
|
}));
|
|
7909
7935
|
}
|
|
7910
|
-
function
|
|
7936
|
+
function b(I) {
|
|
7911
7937
|
return I.clientX - s.value.rect.left <= s.value.minWidth;
|
|
7912
7938
|
}
|
|
7913
7939
|
function M() {
|
|
7914
7940
|
a.value.style.setProperty("--bs-table-col-resizer-x", `${i}px`);
|
|
7915
7941
|
}
|
|
7916
7942
|
function P() {
|
|
7917
|
-
a.value.removeEventListener("pointermove", S), setTimeout(() =>
|
|
7943
|
+
a.value.removeEventListener("pointermove", S), setTimeout(() => d.value = !1);
|
|
7918
7944
|
const I = i - o;
|
|
7919
7945
|
I !== 0 && B(Math.round(s.value.rect.width + I));
|
|
7920
7946
|
}
|
|
@@ -7930,13 +7956,13 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
7930
7956
|
}
|
|
7931
7957
|
return (I, E) => fe((l(), h("div", {
|
|
7932
7958
|
ref: "resizer",
|
|
7933
|
-
class: ve(["bs-table-col-resizer",
|
|
7959
|
+
class: ve(["bs-table-col-resizer", d.value && "bs-table-col-resizer-active"]),
|
|
7934
7960
|
onDragstart: E[0] || (E[0] = Ce(() => {
|
|
7935
7961
|
}, ["prevent"])),
|
|
7936
7962
|
onPointerdown: Ce(y, ["prevent", "stop"]),
|
|
7937
7963
|
onDblclick: Ce(g, ["prevent", "stop"])
|
|
7938
7964
|
}, null, 34)), [
|
|
7939
|
-
[be,
|
|
7965
|
+
[be, r.value]
|
|
7940
7966
|
]);
|
|
7941
7967
|
}
|
|
7942
7968
|
}, ed = {
|
|
@@ -8025,36 +8051,36 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8025
8051
|
center: [],
|
|
8026
8052
|
right: []
|
|
8027
8053
|
}), o = C({}), i = m(() => Object.values(a.value).flat().map((T) => {
|
|
8028
|
-
const
|
|
8029
|
-
return o.value[
|
|
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
|
|
8032
|
-
const
|
|
8054
|
+
const V = E(T);
|
|
8055
|
+
return o.value[V] ?? ie(T);
|
|
8056
|
+
}).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));
|
|
8057
|
+
function d(T = []) {
|
|
8058
|
+
const V = [
|
|
8033
8059
|
"bs-table-wrap",
|
|
8034
8060
|
`bs-table-border-${e.borders}`,
|
|
8035
8061
|
e.striped && "bs-table-striped",
|
|
8036
8062
|
e.rowHover && "bs-table-row-hover"
|
|
8037
8063
|
];
|
|
8038
8064
|
return se("div", {
|
|
8039
|
-
class:
|
|
8065
|
+
class: V,
|
|
8040
8066
|
style: [u.value, s.value]
|
|
8041
8067
|
}, T);
|
|
8042
8068
|
}
|
|
8043
8069
|
function c(T = []) {
|
|
8044
|
-
const
|
|
8070
|
+
const V = [
|
|
8045
8071
|
`--bs-table-col-widths: ${i.value}`,
|
|
8046
8072
|
`--bs-table-frozen-left-count: ${a.value.left.length}`,
|
|
8047
8073
|
`--bs-table-frozen-right-count: ${a.value.right.length}`
|
|
8048
8074
|
];
|
|
8049
8075
|
return se("div", {
|
|
8050
8076
|
class: "bs-table",
|
|
8051
|
-
style:
|
|
8077
|
+
style: V,
|
|
8052
8078
|
role: e.role,
|
|
8053
8079
|
ariaLabel: e.ariaLabel,
|
|
8054
8080
|
ariaDescribedby: e.ariaDescribedby
|
|
8055
8081
|
}, T);
|
|
8056
8082
|
}
|
|
8057
|
-
function
|
|
8083
|
+
function p(T = []) {
|
|
8058
8084
|
return se("div", { class: "bs-table-scroll-wrap" }, T);
|
|
8059
8085
|
}
|
|
8060
8086
|
function v(T = []) {
|
|
@@ -8080,19 +8106,19 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8080
8106
|
return se(pt, { kind: "body" }, () => T);
|
|
8081
8107
|
}
|
|
8082
8108
|
function y() {
|
|
8083
|
-
const T = e.rows.map((
|
|
8084
|
-
Ie(he, { row:
|
|
8109
|
+
const T = e.rows.map((V, F) => P(
|
|
8110
|
+
Ie(he, { row: V, rowIndex: F })
|
|
8085
8111
|
));
|
|
8086
8112
|
return k(T);
|
|
8087
8113
|
}
|
|
8088
8114
|
function S() {
|
|
8089
|
-
const T = e.rows.map((
|
|
8090
|
-
const Q = n.body({ row:
|
|
8091
|
-
return B(Q, he, { row:
|
|
8115
|
+
const T = e.rows.map((V, F) => {
|
|
8116
|
+
const Q = n.body({ row: V, rowIndex: F });
|
|
8117
|
+
return B(Q, he, { row: V, rowIndex: F });
|
|
8092
8118
|
});
|
|
8093
8119
|
return k(T);
|
|
8094
8120
|
}
|
|
8095
|
-
function
|
|
8121
|
+
function b(T = []) {
|
|
8096
8122
|
return se(pt, {
|
|
8097
8123
|
kind: "footer",
|
|
8098
8124
|
class: e.freezeFooter && "bs-table-footer-rowgroup-freeze"
|
|
@@ -8100,50 +8126,50 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8100
8126
|
}
|
|
8101
8127
|
function M() {
|
|
8102
8128
|
const T = n.footer({ cols: Rt(a.value) });
|
|
8103
|
-
return
|
|
8129
|
+
return b(
|
|
8104
8130
|
B(T, g)
|
|
8105
8131
|
);
|
|
8106
8132
|
}
|
|
8107
8133
|
function P(T = []) {
|
|
8108
8134
|
return se(bt, null, () => T);
|
|
8109
8135
|
}
|
|
8110
|
-
function B(T = [],
|
|
8136
|
+
function B(T = [], V, F = {}) {
|
|
8111
8137
|
return Y(T, [bt]).map(
|
|
8112
|
-
(A) => Oe(A) ? se(A, null, () => Ie(
|
|
8138
|
+
(A) => Oe(A) ? se(A, null, () => Ie(V, F)) : se(A)
|
|
8113
8139
|
);
|
|
8114
8140
|
}
|
|
8115
8141
|
function g(T = {}) {
|
|
8116
8142
|
var A;
|
|
8117
|
-
const
|
|
8143
|
+
const V = (A = T.slots) == null ? void 0 : A.default({}).find((j) => j.type === Gt), F = te(T), Q = {
|
|
8118
8144
|
class: e.truncate && $e(T),
|
|
8119
8145
|
"data-bs-table-col-id": T.props.id,
|
|
8120
8146
|
// TODO: only added here for col resize reasons, could be on all cells
|
|
8121
8147
|
...I(T),
|
|
8122
8148
|
...F && F === e.sortKey && { "aria-sort": `${e.sortOrder}ending` }
|
|
8123
8149
|
};
|
|
8124
|
-
if (F && (
|
|
8125
|
-
const j =
|
|
8126
|
-
return se(
|
|
8150
|
+
if (F && (V != null && V.children)) {
|
|
8151
|
+
const j = V.children.default().map((X) => X.type === Xt ? Yn(X, { ...N(T) }) : se(X));
|
|
8152
|
+
return se(V, Q, () => j);
|
|
8127
8153
|
}
|
|
8128
|
-
return
|
|
8154
|
+
return V ? se(V, Q) : se(Gt, Q, () => {
|
|
8129
8155
|
var j;
|
|
8130
8156
|
return G(T) || ((j = T.props) == null ? void 0 : j.name);
|
|
8131
8157
|
});
|
|
8132
8158
|
}
|
|
8133
8159
|
function I(T) {
|
|
8134
|
-
const
|
|
8135
|
-
if (!
|
|
8160
|
+
const V = E(T);
|
|
8161
|
+
if (!V) return {};
|
|
8136
8162
|
const F = T.props["resize-min"] || T.props.resizeMin, Q = T.props["resize-max"] || T.props.resizeMax;
|
|
8137
8163
|
return {
|
|
8138
|
-
"data-bs-table-col-resize-id":
|
|
8164
|
+
"data-bs-table-col-resize-id": V,
|
|
8139
8165
|
"data-bs-table-col-resize": ["right", "left"].includes(T.props.resize) ? T.props.resize : void 0,
|
|
8140
8166
|
"data-bs-table-col-resize-min": F === void 0 ? e.resizeColsMin : F,
|
|
8141
8167
|
"data-bs-table-col-resize-max": Q === void 0 ? e.resizeColsMax : Q
|
|
8142
8168
|
};
|
|
8143
8169
|
}
|
|
8144
8170
|
function E(T) {
|
|
8145
|
-
const
|
|
8146
|
-
if (
|
|
8171
|
+
const V = T.props["resize-id"] || T.props.resizeId;
|
|
8172
|
+
if (V) return V;
|
|
8147
8173
|
const F = T.props["resize-key"] || T.props.resizeKey;
|
|
8148
8174
|
if (F)
|
|
8149
8175
|
throw new Error(`[BsTable] BsTableCol does not have a "resize-key" prop. Instead, use: resize-id="${F}".`);
|
|
@@ -8153,10 +8179,10 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8153
8179
|
}
|
|
8154
8180
|
}
|
|
8155
8181
|
function N(T = {}) {
|
|
8156
|
-
const
|
|
8182
|
+
const V = te(T);
|
|
8157
8183
|
return {
|
|
8158
|
-
order: e.sortKey ===
|
|
8159
|
-
onToggle: (F) => t("sort", { sortKey:
|
|
8184
|
+
order: e.sortKey === V ? e.sortOrder : null,
|
|
8185
|
+
onToggle: (F) => t("sort", { sortKey: V, sortOrder: F })
|
|
8160
8186
|
};
|
|
8161
8187
|
}
|
|
8162
8188
|
function G(T = {}) {
|
|
@@ -8167,41 +8193,41 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8167
8193
|
});
|
|
8168
8194
|
}
|
|
8169
8195
|
function te(T) {
|
|
8170
|
-
const
|
|
8171
|
-
if (
|
|
8196
|
+
const V = T.props["sort-key"] || T.props.sortKey;
|
|
8197
|
+
if (V) return V;
|
|
8172
8198
|
if (K(T, "sort")) {
|
|
8173
8199
|
if (!T.props.id) throw new Error(`[BsTable] BsTableCol "sort" prop is missing key identifier. Must use either approach...single prop: 'sort-key="mySortKey"', or both props: 'sort id="myTableColId"'`);
|
|
8174
8200
|
return T.props.id;
|
|
8175
8201
|
}
|
|
8176
8202
|
}
|
|
8177
|
-
function he(T = {},
|
|
8203
|
+
function he(T = {}, V = {}) {
|
|
8178
8204
|
var A;
|
|
8179
|
-
const F = (A = T.slots) == null ? void 0 : A.default(
|
|
8180
|
-
return F ? se(F, Q) : se(Yt, Q, () => U(
|
|
8205
|
+
const F = (A = T.slots) == null ? void 0 : A.default(V).find((j) => j.type === Yt), Q = { class: e.truncate && $e(T) };
|
|
8206
|
+
return F ? se(F, Q) : se(Yt, Q, () => U(V.row, T));
|
|
8181
8207
|
}
|
|
8182
8208
|
function $e(T) {
|
|
8183
|
-
const
|
|
8184
|
-
return T.props.truncate !== "false" &&
|
|
8209
|
+
const V = T.props.truncate === void 0 ? e.truncate : T.props.truncate === "" || T.props.truncate;
|
|
8210
|
+
return T.props.truncate !== "false" && V && "bs-table-truncate";
|
|
8185
8211
|
}
|
|
8186
|
-
function ge(T,
|
|
8212
|
+
function ge(T, V, F) {
|
|
8187
8213
|
if (!a.value[T].length) return;
|
|
8188
|
-
const Q = a.value[T].map((A) =>
|
|
8214
|
+
const Q = a.value[T].map((A) => V(A, F));
|
|
8189
8215
|
return se("div", { class: `bs-table-cols-frozen-${T}` }, Q);
|
|
8190
8216
|
}
|
|
8191
|
-
function Ie(T,
|
|
8217
|
+
function Ie(T, V = {}) {
|
|
8192
8218
|
return [
|
|
8193
|
-
ge("left", T,
|
|
8194
|
-
a.value.center.map((F) => T(F,
|
|
8195
|
-
ge("right", T,
|
|
8219
|
+
ge("left", T, V),
|
|
8220
|
+
a.value.center.map((F) => T(F, V)),
|
|
8221
|
+
ge("right", T, V)
|
|
8196
8222
|
];
|
|
8197
8223
|
}
|
|
8198
8224
|
function we() {
|
|
8199
8225
|
return se(Is, { onResize: Ee });
|
|
8200
8226
|
}
|
|
8201
|
-
function Ee({ el: T, id:
|
|
8227
|
+
function Ee({ el: T, id: V, width: F }) {
|
|
8202
8228
|
const Q = Object.values(a.value).flat().reduce((j, X) => {
|
|
8203
8229
|
const ne = E(X) || X.props.id;
|
|
8204
|
-
return ne ===
|
|
8230
|
+
return ne === V || o.value[ne] || ie(X).endsWith("px") || j.push({ id: ne, width: null }), j;
|
|
8205
8231
|
}, []);
|
|
8206
8232
|
if (Q.length) {
|
|
8207
8233
|
const j = T.closest(".bs-table-row");
|
|
@@ -8210,64 +8236,64 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8210
8236
|
ne && (X.width = `${ne.offsetWidth}px`);
|
|
8211
8237
|
});
|
|
8212
8238
|
}
|
|
8213
|
-
const A = [{ id:
|
|
8239
|
+
const A = [{ id: V, width: F ? `${F}px` : void 0 }, ...Q];
|
|
8214
8240
|
A.forEach((j) => o.value[j.id] = j.width), t("resize-col", { target: A[0], updated: [...A] });
|
|
8215
8241
|
}
|
|
8216
8242
|
function Oe(T) {
|
|
8217
8243
|
return T.type === bt && !T.children;
|
|
8218
8244
|
}
|
|
8219
|
-
function U(T,
|
|
8220
|
-
return (
|
|
8245
|
+
function U(T, V) {
|
|
8246
|
+
return (V.props["row-key"] || V.props.rowKey || V.props.id || "").split(".").reduce((A, j) => A && A[j], T);
|
|
8221
8247
|
}
|
|
8222
|
-
function K(T,
|
|
8223
|
-
const F = T.props[
|
|
8248
|
+
function K(T, V) {
|
|
8249
|
+
const F = T.props[V];
|
|
8224
8250
|
return F === "" || F && F !== "false";
|
|
8225
8251
|
}
|
|
8226
8252
|
function ie(T) {
|
|
8227
|
-
var
|
|
8228
|
-
return ((
|
|
8253
|
+
var V;
|
|
8254
|
+
return ((V = T.props) == null ? void 0 : V.width) ?? e.colWidth;
|
|
8229
8255
|
}
|
|
8230
|
-
function Y(T,
|
|
8231
|
-
return T.reduce((F, Q) =>
|
|
8256
|
+
function Y(T, V = []) {
|
|
8257
|
+
return T.reduce((F, Q) => V.includes(Q.type) ? [...F, Q] : Array.isArray(Q.children) ? [...F, ...Y(Q.children, V)] : F, []);
|
|
8232
8258
|
}
|
|
8233
8259
|
function oe(T) {
|
|
8234
8260
|
var F;
|
|
8235
|
-
const
|
|
8236
|
-
return T.type.props.place.validator(
|
|
8237
|
-
place:
|
|
8261
|
+
const V = ((F = T.props) == null ? void 0 : F.place) || T.type.props.place.default;
|
|
8262
|
+
return T.type.props.place.validator(V) || console.warn(`[BsTable warn] Invalid prop: BsFrozenCols prop "place" must be set to "left" or "right". Yours: "${V}".`), {
|
|
8263
|
+
place: V,
|
|
8238
8264
|
frozenCols: Y(T.children.default(), [ct])
|
|
8239
8265
|
};
|
|
8240
8266
|
}
|
|
8241
8267
|
function le(T = []) {
|
|
8242
|
-
const
|
|
8268
|
+
const V = (F) => ({
|
|
8243
8269
|
props: F.props || { name: "" },
|
|
8244
8270
|
slots: F.children
|
|
8245
8271
|
});
|
|
8246
8272
|
return T.reduce((F, Q) => {
|
|
8247
8273
|
if (Q.type === ft) {
|
|
8248
8274
|
const { place: A, frozenCols: j } = oe(Q);
|
|
8249
|
-
return F[A] = F[A].concat(j.map(
|
|
8275
|
+
return F[A] = F[A].concat(j.map(V)), F;
|
|
8250
8276
|
}
|
|
8251
|
-
return F.center.push(
|
|
8277
|
+
return F.center.push(V(Q)), F;
|
|
8252
8278
|
}, { left: [], center: [], right: [] });
|
|
8253
8279
|
}
|
|
8254
8280
|
function Pe(T) {
|
|
8255
|
-
return T.reduce((
|
|
8281
|
+
return T.reduce((V, F) => {
|
|
8256
8282
|
if (F.type === gs)
|
|
8257
|
-
return
|
|
8283
|
+
return V.header = F, V;
|
|
8258
8284
|
if (F.type === $s)
|
|
8259
|
-
return
|
|
8285
|
+
return V.footer = F, V;
|
|
8260
8286
|
if ([ft, ct].includes(F.type))
|
|
8261
|
-
return
|
|
8287
|
+
return V.columns.push(F), V;
|
|
8262
8288
|
const Q = Y([F], [ft, ct]);
|
|
8263
|
-
return Q != null && Q.length ?
|
|
8289
|
+
return Q != null && Q.length ? V.columns = [...V.columns, ...Q] : V.other.push(F), V;
|
|
8264
8290
|
}, { columns: [], header: null, footer: null, other: [] });
|
|
8265
8291
|
}
|
|
8266
8292
|
return () => {
|
|
8267
|
-
const { columns: T, header:
|
|
8268
|
-
return a.value = le(T),
|
|
8269
|
-
|
|
8270
|
-
|
|
8293
|
+
const { columns: T, header: V, footer: F, other: Q } = Pe(n.default());
|
|
8294
|
+
return a.value = le(T), d([
|
|
8295
|
+
V,
|
|
8296
|
+
p([
|
|
8271
8297
|
c([
|
|
8272
8298
|
n.header ? O() : $(),
|
|
8273
8299
|
n.body ? S() : y(),
|
|
@@ -8275,7 +8301,7 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8275
8301
|
]),
|
|
8276
8302
|
Q,
|
|
8277
8303
|
// non-Table related slot content, e.g. consumers could add a loading spinner or empty state message
|
|
8278
|
-
|
|
8304
|
+
r.value && we()
|
|
8279
8305
|
]),
|
|
8280
8306
|
F
|
|
8281
8307
|
]);
|
|
@@ -8358,23 +8384,23 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8358
8384
|
const t = e;
|
|
8359
8385
|
W(t, "passAttrs", void 0, "Use Vue's native fallthrough attributes instead.");
|
|
8360
8386
|
const [a, o] = re(2), { filtered: i, remaining: u } = ye(["class", "style"]), s = m(() => {
|
|
8361
|
-
var
|
|
8362
|
-
return ((
|
|
8363
|
-
}),
|
|
8364
|
-
var
|
|
8365
|
-
return ((v = (
|
|
8387
|
+
var p;
|
|
8388
|
+
return ((p = t.value || t.modelValue) == null ? void 0 : p.length) || 0;
|
|
8389
|
+
}), r = m(() => {
|
|
8390
|
+
var p, v;
|
|
8391
|
+
return ((v = (p = t.hints) == null ? void 0 : p.join) == null ? void 0 : v.call(p, `
|
|
8366
8392
|
`)) || t.hints;
|
|
8367
|
-
}),
|
|
8368
|
-
return (
|
|
8369
|
-
e.label ||
|
|
8393
|
+
}), d = m(() => t.error && t.errorMsg || t.hint || r.value || void 0), c = m(() => t.inputId || a.value);
|
|
8394
|
+
return (p, v) => (l(), h("div", H({ "data-component": "bs-textarea-field" }, f(i)), [
|
|
8395
|
+
e.label || p.$slots.label ? (l(), D(pe, {
|
|
8370
8396
|
key: 0,
|
|
8371
|
-
for:
|
|
8397
|
+
for: p.$attrs.id || c.value,
|
|
8372
8398
|
disabled: e.disabled,
|
|
8373
8399
|
required: e.required
|
|
8374
8400
|
}, {
|
|
8375
8401
|
default: q(() => [
|
|
8376
|
-
z(
|
|
8377
|
-
_(
|
|
8402
|
+
z(p.$slots, "label", {}, () => [
|
|
8403
|
+
_(L(e.label), 1)
|
|
8378
8404
|
])
|
|
8379
8405
|
]),
|
|
8380
8406
|
_: 3
|
|
@@ -8382,23 +8408,23 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8382
8408
|
R(Ts, H({
|
|
8383
8409
|
disabled: e.disabled,
|
|
8384
8410
|
error: e.error,
|
|
8385
|
-
"hint-id":
|
|
8386
|
-
id:
|
|
8411
|
+
"hint-id": f(o),
|
|
8412
|
+
id: p.$attrs.id || c.value,
|
|
8387
8413
|
placeholder: e.placeholder,
|
|
8388
8414
|
required: e.required,
|
|
8389
8415
|
rows: e.rows,
|
|
8390
8416
|
value: e.value || e.modelValue,
|
|
8391
|
-
"onUpdate:modelValue": v[0] || (v[0] = ($) =>
|
|
8392
|
-
},
|
|
8393
|
-
|
|
8417
|
+
"onUpdate:modelValue": v[0] || (v[0] = ($) => p.$emit("update:modelValue", $))
|
|
8418
|
+
}, f(u)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
|
|
8419
|
+
d.value || e.charMax ? (l(), D(ze, {
|
|
8394
8420
|
key: 1,
|
|
8395
8421
|
"char-count": s.value,
|
|
8396
8422
|
"char-max": e.charMax,
|
|
8397
8423
|
"data-disabled": e.disabled,
|
|
8398
8424
|
error: e.error,
|
|
8399
8425
|
"error-msg": e.errorMsg,
|
|
8400
|
-
hint: e.hint ||
|
|
8401
|
-
"hint-id":
|
|
8426
|
+
hint: e.hint || r.value,
|
|
8427
|
+
"hint-id": f(o)
|
|
8402
8428
|
}, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
8403
8429
|
], 16));
|
|
8404
8430
|
}
|
|
@@ -8427,7 +8453,7 @@ function Ds(e = "") {
|
|
|
8427
8453
|
minutes: a
|
|
8428
8454
|
};
|
|
8429
8455
|
}
|
|
8430
|
-
function
|
|
8456
|
+
function Ve(e = "") {
|
|
8431
8457
|
const n = /[^0-9:]/g;
|
|
8432
8458
|
if (e = e.replaceAll(n, ""), !e) return "";
|
|
8433
8459
|
const [t, a] = e.split(":"), o = Ne(t), i = Ne(a), u = o < 12 ? "AM" : "PM";
|
|
@@ -8502,20 +8528,20 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8502
8528
|
},
|
|
8503
8529
|
emits: ["update:modelValue"],
|
|
8504
8530
|
setup(e, { expose: n, emit: t }) {
|
|
8505
|
-
const a = e, o = t, i = C(
|
|
8506
|
-
function
|
|
8531
|
+
const a = e, o = t, i = C(Ve(a.modelValue)), u = C([]), s = C(""), r = C(!1);
|
|
8532
|
+
function d() {
|
|
8507
8533
|
const S = [];
|
|
8508
|
-
let
|
|
8509
|
-
for (let M = 0; M < 24 && !
|
|
8534
|
+
let b = !1;
|
|
8535
|
+
for (let M = 0; M < 24 && !b; M++)
|
|
8510
8536
|
for (let P = 0; P < 60; P += a.step) {
|
|
8511
|
-
const B = v(M, P), g =
|
|
8537
|
+
const B = v(M, P), g = p(B);
|
|
8512
8538
|
if (g !== Qt) {
|
|
8513
8539
|
if (g === Jt) {
|
|
8514
|
-
|
|
8540
|
+
b = !0;
|
|
8515
8541
|
break;
|
|
8516
8542
|
}
|
|
8517
8543
|
S.push({
|
|
8518
|
-
label:
|
|
8544
|
+
label: Ve(B),
|
|
8519
8545
|
value: B
|
|
8520
8546
|
});
|
|
8521
8547
|
}
|
|
@@ -8525,7 +8551,7 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8525
8551
|
function c(S) {
|
|
8526
8552
|
return S ? a.minTime && S < a.minTime ? mt : a.maxTime && S > a.maxTime ? vt : a.disabledTimes.includes(S) ? ht : "" : "";
|
|
8527
8553
|
}
|
|
8528
|
-
function
|
|
8554
|
+
function p(S) {
|
|
8529
8555
|
switch (c(S)) {
|
|
8530
8556
|
case vt:
|
|
8531
8557
|
return Jt;
|
|
@@ -8536,15 +8562,15 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8536
8562
|
return "";
|
|
8537
8563
|
}
|
|
8538
8564
|
}
|
|
8539
|
-
function v(S,
|
|
8540
|
-
return S = S.toString().padStart(2, "0"),
|
|
8565
|
+
function v(S, b) {
|
|
8566
|
+
return S = S.toString().padStart(2, "0"), b = b.toString().padStart(2, "0"), `${S}:${b}`;
|
|
8541
8567
|
}
|
|
8542
8568
|
function $(S) {
|
|
8543
|
-
const
|
|
8544
|
-
|
|
8569
|
+
const b = Os(S);
|
|
8570
|
+
b === a.modelValue && (i.value = Ve(a.modelValue)), k(b);
|
|
8545
8571
|
}
|
|
8546
8572
|
function O() {
|
|
8547
|
-
u.value =
|
|
8573
|
+
u.value = d();
|
|
8548
8574
|
}
|
|
8549
8575
|
function k(S) {
|
|
8550
8576
|
y(S), o("update:modelValue", S);
|
|
@@ -8552,16 +8578,16 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8552
8578
|
function y(S) {
|
|
8553
8579
|
switch (c(S)) {
|
|
8554
8580
|
case vt:
|
|
8555
|
-
s.value = `Time must be before ${
|
|
8581
|
+
s.value = `Time must be before ${Ve(a.maxTime)}`, r.value = !0;
|
|
8556
8582
|
break;
|
|
8557
8583
|
case mt:
|
|
8558
|
-
s.value = `Time must be after ${
|
|
8584
|
+
s.value = `Time must be after ${Ve(a.minTime)}`, r.value = !0;
|
|
8559
8585
|
break;
|
|
8560
8586
|
case ht:
|
|
8561
|
-
s.value = `The following times are disabled: ${a.disabledTimes.map((M) =>
|
|
8587
|
+
s.value = `The following times are disabled: ${a.disabledTimes.map((M) => Ve(M)).join(", ")}`, r.value = !0;
|
|
8562
8588
|
break;
|
|
8563
8589
|
default:
|
|
8564
|
-
s.value = "",
|
|
8590
|
+
s.value = "", r.value = !1;
|
|
8565
8591
|
}
|
|
8566
8592
|
}
|
|
8567
8593
|
return ee(O), Z([
|
|
@@ -8575,16 +8601,16 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8575
8601
|
() => a.minTime,
|
|
8576
8602
|
() => a.modelValue
|
|
8577
8603
|
], () => y(a.modelValue)), Z(() => a.modelValue, (S) => {
|
|
8578
|
-
i.value = a.modelValue ?
|
|
8604
|
+
i.value = a.modelValue ? Ve(S) : "";
|
|
8579
8605
|
}), n({
|
|
8580
|
-
validationErr:
|
|
8606
|
+
validationErr: r,
|
|
8581
8607
|
validationErrMsg: s
|
|
8582
|
-
}), (S,
|
|
8608
|
+
}), (S, b) => (l(), D(zn, {
|
|
8583
8609
|
disabled: e.disabled,
|
|
8584
8610
|
"display-value": i.value,
|
|
8585
8611
|
"dropdown-position": e.dropdownPosition,
|
|
8586
8612
|
"dropdown-width": e.dropdownWidth,
|
|
8587
|
-
error: e.error ||
|
|
8613
|
+
error: e.error || r.value,
|
|
8588
8614
|
"helper-description": e.helperDescription,
|
|
8589
8615
|
"helper-text": e.helperText,
|
|
8590
8616
|
"hint-id": e.hintId,
|
|
@@ -8666,12 +8692,12 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8666
8692
|
},
|
|
8667
8693
|
emits: ["update:modelValue"],
|
|
8668
8694
|
setup(e, { expose: n, emit: t }) {
|
|
8669
|
-
const a = e, [o, i] = re(2), { filtered: u, remaining: s } = ye(["class", "style"]),
|
|
8695
|
+
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
8696
|
var k;
|
|
8671
|
-
return (k =
|
|
8697
|
+
return (k = r.value) == null ? void 0 : k.validationErrMsg;
|
|
8672
8698
|
}), O = m(() => {
|
|
8673
8699
|
var k;
|
|
8674
|
-
return (k =
|
|
8700
|
+
return (k = r.value) == null ? void 0 : k.validationErr;
|
|
8675
8701
|
});
|
|
8676
8702
|
return n({
|
|
8677
8703
|
validationErr: O,
|
|
@@ -8679,23 +8705,23 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8679
8705
|
}), (k, y) => (l(), h("div", H({
|
|
8680
8706
|
"aria-live": "polite",
|
|
8681
8707
|
"data-component": "bs-time-picker-field"
|
|
8682
|
-
},
|
|
8708
|
+
}, f(u)), [
|
|
8683
8709
|
e.label || k.$slots.label ? (l(), D(pe, {
|
|
8684
8710
|
key: 0,
|
|
8685
|
-
for: k.$attrs.id ||
|
|
8711
|
+
for: k.$attrs.id || p.value,
|
|
8686
8712
|
disabled: e.disabled,
|
|
8687
8713
|
required: e.required
|
|
8688
8714
|
}, {
|
|
8689
8715
|
default: q(() => [
|
|
8690
8716
|
z(k.$slots, "label", {}, () => [
|
|
8691
|
-
_(
|
|
8717
|
+
_(L(e.label), 1)
|
|
8692
8718
|
])
|
|
8693
8719
|
]),
|
|
8694
8720
|
_: 3
|
|
8695
8721
|
}, 8, ["for", "disabled", "required"])) : x("", !0),
|
|
8696
8722
|
R(xs, H({
|
|
8697
8723
|
ref_key: "timePicker",
|
|
8698
|
-
ref:
|
|
8724
|
+
ref: r,
|
|
8699
8725
|
disabled: e.disabled,
|
|
8700
8726
|
"disabled-times": e.disabledTimes,
|
|
8701
8727
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -8703,8 +8729,8 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8703
8729
|
error: c.value,
|
|
8704
8730
|
"helper-description": e.helperDescription,
|
|
8705
8731
|
"helper-text": e.helperText,
|
|
8706
|
-
"hint-id":
|
|
8707
|
-
"input-id": k.$attrs.id ||
|
|
8732
|
+
"hint-id": f(i),
|
|
8733
|
+
"input-id": k.$attrs.id || p.value,
|
|
8708
8734
|
"max-time": e.maxTime,
|
|
8709
8735
|
"min-time": e.minTime,
|
|
8710
8736
|
"model-value": e.modelValue,
|
|
@@ -8712,12 +8738,12 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8712
8738
|
required: e.required,
|
|
8713
8739
|
step: e.step,
|
|
8714
8740
|
"onUpdate:modelValue": y[0] || (y[0] = (S) => k.$emit("update:modelValue", S))
|
|
8715
|
-
},
|
|
8741
|
+
}, 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
8742
|
fe(R(ze, {
|
|
8717
8743
|
error: c.value,
|
|
8718
|
-
"error-msg":
|
|
8744
|
+
"error-msg": d.value,
|
|
8719
8745
|
hint: e.hint,
|
|
8720
|
-
"hint-id":
|
|
8746
|
+
"hint-id": f(i)
|
|
8721
8747
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
8722
8748
|
[be, v.value]
|
|
8723
8749
|
])
|
|
@@ -8760,31 +8786,31 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8760
8786
|
ongoing: na,
|
|
8761
8787
|
paused: ta,
|
|
8762
8788
|
warning: $t
|
|
8763
|
-
}, { progressStep: a, progressText: o, getStatus: i } =
|
|
8764
|
-
function u(s,
|
|
8765
|
-
return s = i(s,
|
|
8789
|
+
}, { progressStep: a, progressText: o, getStatus: i } = Vn(n);
|
|
8790
|
+
function u(s, r) {
|
|
8791
|
+
return s = i(s, r), t[s] || jt;
|
|
8766
8792
|
}
|
|
8767
|
-
return (s,
|
|
8793
|
+
return (s, r) => (l(), h("div", {
|
|
8768
8794
|
"aria-valuemax": e.steps.length,
|
|
8769
|
-
"aria-valuenow":
|
|
8770
|
-
"aria-valuetext":
|
|
8795
|
+
"aria-valuenow": f(a),
|
|
8796
|
+
"aria-valuetext": f(o),
|
|
8771
8797
|
class: "bs-timeline",
|
|
8772
8798
|
"data-component": "bs-timeline",
|
|
8773
8799
|
role: "progressbar"
|
|
8774
8800
|
}, [
|
|
8775
|
-
(l(!0), h(J, null, de(e.steps, (
|
|
8801
|
+
(l(!0), h(J, null, de(e.steps, (d, c) => (l(), h("div", {
|
|
8776
8802
|
class: "bs-step-item",
|
|
8777
|
-
"data-status":
|
|
8778
|
-
key:
|
|
8803
|
+
"data-status": f(i)(d.status, c),
|
|
8804
|
+
key: d.id || d.label,
|
|
8779
8805
|
role: "status"
|
|
8780
8806
|
}, [
|
|
8781
|
-
(l(), D(ae(u(
|
|
8807
|
+
(l(), D(ae(u(d.status, c)), {
|
|
8782
8808
|
class: "bs-step-icon",
|
|
8783
8809
|
role: "presentation"
|
|
8784
8810
|
})),
|
|
8785
8811
|
w("p", null, [
|
|
8786
|
-
_(
|
|
8787
|
-
w("span", Es, " : " +
|
|
8812
|
+
_(L(d.label || d) + " ", 1),
|
|
8813
|
+
w("span", Es, " : " + L(f(i)(d.status, c) || "not started"), 1)
|
|
8788
8814
|
])
|
|
8789
8815
|
], 8, zs))), 128))
|
|
8790
8816
|
], 8, As));
|
|
@@ -8839,34 +8865,34 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8839
8865
|
function s() {
|
|
8840
8866
|
i && (clearTimeout(i), i = null), a("dismiss", t.toastId);
|
|
8841
8867
|
}
|
|
8842
|
-
function
|
|
8868
|
+
function r() {
|
|
8843
8869
|
t.duration > 0 && (i = setTimeout(() => {
|
|
8844
8870
|
s();
|
|
8845
8871
|
}, t.duration)), a("after-enter");
|
|
8846
8872
|
}
|
|
8847
|
-
return (
|
|
8873
|
+
return (d, c) => (l(), D(Ge, {
|
|
8848
8874
|
name: "bs-toast",
|
|
8849
|
-
shown:
|
|
8875
|
+
shown: f(o),
|
|
8850
8876
|
preloaded: e.preloaded,
|
|
8851
|
-
onAfterEnter:
|
|
8852
|
-
onAfterLeave: c[0] || (c[0] = (
|
|
8877
|
+
onAfterEnter: r,
|
|
8878
|
+
onAfterLeave: c[0] || (c[0] = (p) => a("after-leave"))
|
|
8853
8879
|
}, {
|
|
8854
8880
|
default: q(() => [
|
|
8855
8881
|
w("div", H({
|
|
8856
8882
|
class: "bs-toast",
|
|
8857
8883
|
"data-component": "bs-toast",
|
|
8858
8884
|
"data-variant": e.variant,
|
|
8859
|
-
"data-shown":
|
|
8860
|
-
"data-stacked":
|
|
8885
|
+
"data-shown": f(o),
|
|
8886
|
+
"data-stacked": f(u) || void 0,
|
|
8861
8887
|
role: "alert"
|
|
8862
|
-
},
|
|
8863
|
-
z(
|
|
8888
|
+
}, d.$attrs), [
|
|
8889
|
+
z(d.$slots, "default")
|
|
8864
8890
|
], 16, Ps)
|
|
8865
8891
|
]),
|
|
8866
8892
|
_: 3
|
|
8867
8893
|
}, 8, ["shown", "preloaded"]));
|
|
8868
8894
|
}
|
|
8869
|
-
}),
|
|
8895
|
+
}), Vs = ["data-stacked"], id = {
|
|
8870
8896
|
__name: "BsToastActions",
|
|
8871
8897
|
setup(e) {
|
|
8872
8898
|
const n = ue("handleDismiss", () => {
|
|
@@ -8884,7 +8910,7 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8884
8910
|
R(Bn, {
|
|
8885
8911
|
size: "sm",
|
|
8886
8912
|
"text-btn": "",
|
|
8887
|
-
onClick:
|
|
8913
|
+
onClick: f(n)
|
|
8888
8914
|
}, {
|
|
8889
8915
|
default: q(() => o[0] || (o[0] = [
|
|
8890
8916
|
_(" Dismiss ")
|
|
@@ -8892,9 +8918,9 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8892
8918
|
_: 1
|
|
8893
8919
|
}, 8, ["onClick"])
|
|
8894
8920
|
])
|
|
8895
|
-
], 8,
|
|
8921
|
+
], 8, Vs));
|
|
8896
8922
|
}
|
|
8897
|
-
},
|
|
8923
|
+
}, Ls = {}, Ms = {
|
|
8898
8924
|
class: "bs-toast-body",
|
|
8899
8925
|
"data-component": "bs-toast-body"
|
|
8900
8926
|
};
|
|
@@ -8903,7 +8929,7 @@ function Ns(e, n) {
|
|
|
8903
8929
|
z(e.$slots, "default")
|
|
8904
8930
|
]);
|
|
8905
8931
|
}
|
|
8906
|
-
const ld = /* @__PURE__ */
|
|
8932
|
+
const ld = /* @__PURE__ */ Lt(Ls, [["render", Ns]]), qs = ["data-variant"], sd = {
|
|
8907
8933
|
__name: "BsToastHeader",
|
|
8908
8934
|
setup(e) {
|
|
8909
8935
|
const n = ue("variant", void 0), t = m(() => {
|
|
@@ -8921,7 +8947,7 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
8921
8947
|
return (a, o) => (l(), h("div", {
|
|
8922
8948
|
class: "bs-toast-header",
|
|
8923
8949
|
"data-component": "bs-toast-header",
|
|
8924
|
-
"data-variant":
|
|
8950
|
+
"data-variant": f(n)
|
|
8925
8951
|
}, [
|
|
8926
8952
|
(l(), D(ae(t.value), { class: "bs-toast-header-icon" })),
|
|
8927
8953
|
w("h5", null, [
|
|
@@ -8979,7 +9005,7 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
8979
9005
|
function u() {
|
|
8980
9006
|
t.value = !1, a.value = !1;
|
|
8981
9007
|
}
|
|
8982
|
-
return (s,
|
|
9008
|
+
return (s, r) => (l(), h("div", {
|
|
8983
9009
|
class: "bs-tooltip",
|
|
8984
9010
|
"data-position": e.position,
|
|
8985
9011
|
"data-component": "bs-tooltip",
|
|
@@ -8995,12 +9021,12 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
8995
9021
|
role: "tooltip"
|
|
8996
9022
|
}, [
|
|
8997
9023
|
z(s.$slots, "content", {}, () => [
|
|
8998
|
-
_(
|
|
9024
|
+
_(L(e.content), 1)
|
|
8999
9025
|
])
|
|
9000
9026
|
], 10, Fs)
|
|
9001
9027
|
], 40, js));
|
|
9002
9028
|
}
|
|
9003
|
-
}, Us =
|
|
9029
|
+
}, Us = ["data-bg-variant"], Ws = ["aria-expanded", "title", "data-collapsed", "data-narrow"], Ks = ["data-narrow", "data-collapsed", "data-collapsible"], Hs = {
|
|
9004
9030
|
key: 0,
|
|
9005
9031
|
class: "bs-vertical-nav-top-content"
|
|
9006
9032
|
}, Gs = ["data-collapsed", "data-divider-only", "data-app-links"], Ys = ["aria-expanded", "aria-controls", "title", "onClick"], Xs = { key: 0 }, Zs = ["id"], Qs = { key: 1 }, Js = {
|
|
@@ -9016,44 +9042,47 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9016
9042
|
getExpandButtonTitle: i,
|
|
9017
9043
|
initializeSections: u,
|
|
9018
9044
|
isExpanded: s,
|
|
9019
|
-
rawNavData:
|
|
9020
|
-
} =
|
|
9021
|
-
Fe("(max-width: 1165px)", (
|
|
9022
|
-
|
|
9045
|
+
rawNavData: r
|
|
9046
|
+
} = Vt(t);
|
|
9047
|
+
Fe("(max-width: 1165px)", (b) => {
|
|
9048
|
+
p.value = b.matches;
|
|
9023
9049
|
});
|
|
9024
|
-
const
|
|
9050
|
+
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
9051
|
ee(() => {
|
|
9026
9052
|
u(!1);
|
|
9027
9053
|
}), Z(() => t.navData, () => {
|
|
9028
9054
|
u(!1);
|
|
9029
|
-
}), Z(c, (
|
|
9030
|
-
|
|
9031
|
-
}), Z(() => t.collapsed, (
|
|
9032
|
-
v.value =
|
|
9055
|
+
}), Z(c, (b) => {
|
|
9056
|
+
b && t.width && b.style.setProperty("--bs-vertical-nav-width", t.width);
|
|
9057
|
+
}), Z(() => t.collapsed, (b) => {
|
|
9058
|
+
v.value = b;
|
|
9033
9059
|
}), Z(
|
|
9034
|
-
[() => v.value, $, () => t.width, O,
|
|
9035
|
-
([
|
|
9060
|
+
[() => v.value, $, () => t.width, O, p],
|
|
9061
|
+
([b, M, P, B, g]) => {
|
|
9036
9062
|
let I = "0px";
|
|
9037
|
-
B && !g &&
|
|
9063
|
+
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
9064
|
},
|
|
9039
9065
|
{ immediate: !0 }
|
|
9040
|
-
), Z(() => t.width, (
|
|
9041
|
-
|
|
9042
|
-
}), Z(() => t.mobileOpen, (
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
}, 0)) : (document.body.style.overflow = "",
|
|
9046
|
-
|
|
9066
|
+
), Z(() => t.width, (b) => {
|
|
9067
|
+
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"));
|
|
9068
|
+
}), Z(() => t.mobileOpen, (b) => {
|
|
9069
|
+
b ? (document.body.style.overflow = "hidden", d.value.style.setProperty("visibility", "visible"), setTimeout(() => {
|
|
9070
|
+
d.value.style.setProperty("opacity", "1");
|
|
9071
|
+
}, 0)) : (document.body.style.overflow = "", d.value.style.removeProperty("opacity"), setTimeout(() => {
|
|
9072
|
+
d.value.style.removeProperty("visibility");
|
|
9047
9073
|
}, 200));
|
|
9048
9074
|
});
|
|
9049
|
-
function y(
|
|
9050
|
-
o.value[
|
|
9075
|
+
function y(b) {
|
|
9076
|
+
o.value[b] = !o.value[b];
|
|
9051
9077
|
}
|
|
9052
9078
|
function S() {
|
|
9053
9079
|
v.value = !v.value, a("update:collapsed", v.value);
|
|
9054
9080
|
}
|
|
9055
|
-
return (
|
|
9056
|
-
|
|
9081
|
+
return (b, M) => (l(), h("div", {
|
|
9082
|
+
class: "bs-vertical-nav-wrapper",
|
|
9083
|
+
"data-bg-variant": t.bgVariant || void 0
|
|
9084
|
+
}, [
|
|
9085
|
+
O.value && !p.value ? (l(), h("button", {
|
|
9057
9086
|
key: 0,
|
|
9058
9087
|
ref_key: "toggleButton",
|
|
9059
9088
|
ref: c,
|
|
@@ -9065,10 +9094,10 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9065
9094
|
"data-narrow": $.value,
|
|
9066
9095
|
onClick: S
|
|
9067
9096
|
}, [
|
|
9068
|
-
v.value ? (l(), D(
|
|
9097
|
+
v.value ? (l(), D(f(at), {
|
|
9069
9098
|
key: 0,
|
|
9070
9099
|
class: "bs-vertical-nav-toggle-icon"
|
|
9071
|
-
})) : (l(), D(
|
|
9100
|
+
})) : (l(), D(f(nt), {
|
|
9072
9101
|
key: 1,
|
|
9073
9102
|
class: "bs-vertical-nav-toggle-icon"
|
|
9074
9103
|
}))
|
|
@@ -9076,17 +9105,17 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9076
9105
|
w("nav", {
|
|
9077
9106
|
class: "bs-vertical-nav",
|
|
9078
9107
|
ref_key: "verticalNav",
|
|
9079
|
-
ref:
|
|
9108
|
+
ref: d,
|
|
9080
9109
|
"data-narrow": $.value,
|
|
9081
9110
|
"data-collapsed": k.value,
|
|
9082
9111
|
"data-collapsible": O.value,
|
|
9083
9112
|
style: tn(t.width && !k.value ? { width: t.width } : void 0)
|
|
9084
9113
|
}, [
|
|
9085
9114
|
w("ul", null, [
|
|
9086
|
-
|
|
9087
|
-
z(
|
|
9115
|
+
b.$slots["top-content"] ? (l(), h("li", Hs, [
|
|
9116
|
+
z(b.$slots, "top-content")
|
|
9088
9117
|
])) : x("", !0),
|
|
9089
|
-
(l(!0), h(J, null, de(
|
|
9118
|
+
(l(!0), h(J, null, de(f(r), (P) => {
|
|
9090
9119
|
var B;
|
|
9091
9120
|
return l(), h(J, {
|
|
9092
9121
|
key: P.id
|
|
@@ -9094,21 +9123,21 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9094
9123
|
((B = P.navItems) == null ? void 0 : B.length) > 0 ? (l(), h("li", {
|
|
9095
9124
|
key: 0,
|
|
9096
9125
|
class: "bs-vertical-nav-section",
|
|
9097
|
-
"data-collapsed": !P.dividerOnly && !
|
|
9126
|
+
"data-collapsed": !P.dividerOnly && !f(s)(P),
|
|
9098
9127
|
"data-divider-only": P.dividerOnly,
|
|
9099
9128
|
"data-app-links": P.appLinks
|
|
9100
9129
|
}, [
|
|
9101
9130
|
!P.dividerOnly && !$.value && !k.value ? (l(), h("button", {
|
|
9102
9131
|
key: 0,
|
|
9103
9132
|
class: "bs-vertical-nav-section-toggle",
|
|
9104
|
-
"aria-expanded":
|
|
9133
|
+
"aria-expanded": f(s)(P),
|
|
9105
9134
|
"aria-controls": `${P.id}-nested-section`,
|
|
9106
|
-
title:
|
|
9135
|
+
title: f(i)(P),
|
|
9107
9136
|
type: "button",
|
|
9108
9137
|
onClick: (g) => y(P.id)
|
|
9109
9138
|
}, [
|
|
9110
|
-
k.value ? x("", !0) : (l(), h("span", Xs,
|
|
9111
|
-
R(
|
|
9139
|
+
k.value ? x("", !0) : (l(), h("span", Xs, L(P.text), 1)),
|
|
9140
|
+
R(f(ra), { class: "bs-vertical-nav-section-toggle-caret" })
|
|
9112
9141
|
], 8, Ys)) : x("", !0),
|
|
9113
9142
|
fe(w("ul", {
|
|
9114
9143
|
id: `${P.id}-nested-section`
|
|
@@ -9118,12 +9147,12 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9118
9147
|
}, [
|
|
9119
9148
|
R(Me, {
|
|
9120
9149
|
item: g,
|
|
9121
|
-
router:
|
|
9150
|
+
router: b.router,
|
|
9122
9151
|
onNavLinkClicked: (I) => a("nav-link-clicked", { ev: I, payload: g }),
|
|
9123
9152
|
"aria-label": g.text
|
|
9124
9153
|
}, {
|
|
9125
9154
|
default: q(() => [
|
|
9126
|
-
typeof g.icon == "string" ? (l(), D(
|
|
9155
|
+
typeof g.icon == "string" ? (l(), D(f(ce), {
|
|
9127
9156
|
key: 0,
|
|
9128
9157
|
class: "bs-vertical-nav-link-icon",
|
|
9129
9158
|
name: g.icon
|
|
@@ -9131,23 +9160,23 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9131
9160
|
key: 1,
|
|
9132
9161
|
class: "bs-vertical-nav-link-icon"
|
|
9133
9162
|
})),
|
|
9134
|
-
w("span", null,
|
|
9163
|
+
w("span", null, L(g.text), 1)
|
|
9135
9164
|
]),
|
|
9136
9165
|
_: 2
|
|
9137
9166
|
}, 1032, ["item", "router", "onNavLinkClicked", "aria-label"])
|
|
9138
9167
|
]))), 128))
|
|
9139
9168
|
], 8, Zs), [
|
|
9140
|
-
[be, P.dividerOnly ||
|
|
9169
|
+
[be, P.dividerOnly || f(s)(P) || k.value]
|
|
9141
9170
|
])
|
|
9142
9171
|
], 8, Gs)) : (l(), h("li", Qs, [
|
|
9143
9172
|
R(Me, {
|
|
9144
9173
|
item: P,
|
|
9145
|
-
router:
|
|
9174
|
+
router: b.router,
|
|
9146
9175
|
onNavLinkClicked: (g) => a("nav-link-clicked", { ev: g, payload: P }),
|
|
9147
9176
|
"aria-label": P.text
|
|
9148
9177
|
}, {
|
|
9149
9178
|
default: q(() => [
|
|
9150
|
-
typeof P.icon == "string" ? (l(), D(
|
|
9179
|
+
typeof P.icon == "string" ? (l(), D(f(ce), {
|
|
9151
9180
|
key: 0,
|
|
9152
9181
|
class: "bs-vertical-nav-link-icon",
|
|
9153
9182
|
name: P.icon
|
|
@@ -9155,7 +9184,7 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9155
9184
|
key: 1,
|
|
9156
9185
|
class: "bs-vertical-nav-link-icon"
|
|
9157
9186
|
})),
|
|
9158
|
-
w("span", null,
|
|
9187
|
+
w("span", null, L(P.text), 1)
|
|
9159
9188
|
]),
|
|
9160
9189
|
_: 2
|
|
9161
9190
|
}, 1032, ["item", "router", "onNavLinkClicked", "aria-label"])
|
|
@@ -9163,11 +9192,11 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9163
9192
|
], 64);
|
|
9164
9193
|
}), 128))
|
|
9165
9194
|
]),
|
|
9166
|
-
|
|
9167
|
-
z(
|
|
9195
|
+
b.$slots["end-items"] ? (l(), h("div", Js, [
|
|
9196
|
+
z(b.$slots, "end-items")
|
|
9168
9197
|
])) : x("", !0)
|
|
9169
9198
|
], 12, Ks)
|
|
9170
|
-
]));
|
|
9199
|
+
], 8, Us));
|
|
9171
9200
|
}
|
|
9172
9201
|
};
|
|
9173
9202
|
export {
|
|
@@ -9209,8 +9238,8 @@ export {
|
|
|
9209
9238
|
vr as BsFormContainerDefinitions,
|
|
9210
9239
|
Pr as BsHorizontalNavigation,
|
|
9211
9240
|
mr as BsHorizontalNavigationDefinitions,
|
|
9212
|
-
|
|
9213
|
-
|
|
9241
|
+
Vr as BsIconGradientWrapper,
|
|
9242
|
+
Lr as BsInlineTab,
|
|
9214
9243
|
yr as BsInlineTabDefinitions,
|
|
9215
9244
|
Mr as BsInlineTabGroup,
|
|
9216
9245
|
gr as BsInlineTabGroupDefinitions,
|