@wwtdev/bsds-components-vue3 2.39.0 → 2.40.1
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 +400 -378
- package/lib/bsds-components.js.map +1 -1
- package/lib/components.css +1 -1
- package/package.json +6 -2
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 f, createElementVNode as w, createCommentVNode as x, createVNode as R, renderSlot as z, createBlock as D, resolveDynamicComponent as ae, createTextVNode as _, toDisplayString 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";
|
|
@@ -701,7 +701,7 @@ const wa = {
|
|
|
701
701
|
type: String,
|
|
702
702
|
typeDef: "string"
|
|
703
703
|
}
|
|
704
|
-
},
|
|
704
|
+
}, Pa = {}, Ea = {
|
|
705
705
|
"call-to-action": {
|
|
706
706
|
description: "Custom call-to-action content, typically a button or link."
|
|
707
707
|
},
|
|
@@ -713,9 +713,9 @@ const wa = {
|
|
|
713
713
|
}
|
|
714
714
|
}, hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
715
715
|
__proto__: null,
|
|
716
|
-
emitDefinitions:
|
|
716
|
+
emitDefinitions: Pa,
|
|
717
717
|
propDefinitions: Dt,
|
|
718
|
-
slotDefinitions:
|
|
718
|
+
slotDefinitions: Ea
|
|
719
719
|
}, Symbol.toStringTag, { value: "Module" })), bn = {
|
|
720
720
|
// REQUIRED
|
|
721
721
|
title: {
|
|
@@ -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,
|
|
@@ -1291,7 +1291,7 @@ const wa = {
|
|
|
1291
1291
|
{
|
|
1292
1292
|
// If true, creates a divider-only section without toggle button or title (only when navItems present)
|
|
1293
1293
|
dividerOnly?: boolean,
|
|
1294
|
-
// If true, styles the nav item as
|
|
1294
|
+
// If true, styles the nav item as app links (used on digital transformation project)
|
|
1295
1295
|
appLinks?: boolean,
|
|
1296
1296
|
// If true, positions the nav item at the end (right for horizontal, bottom for vertical) and treats as an external link
|
|
1297
1297
|
external?: boolean,
|
|
@@ -1347,11 +1347,24 @@ const wa = {
|
|
|
1347
1347
|
typeDef: "'wide'|'narrow'|'collapsible'",
|
|
1348
1348
|
validator: (e) => ["wide", "narrow", "collapsible"].includes(e)
|
|
1349
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
|
+
},
|
|
1350
1357
|
width: {
|
|
1351
1358
|
default: "",
|
|
1352
1359
|
description: "Custom width of the vertical navigation. This will override\n the `variant` prop.",
|
|
1353
1360
|
type: String,
|
|
1354
1361
|
typeDef: "string"
|
|
1362
|
+
},
|
|
1363
|
+
sticky: {
|
|
1364
|
+
default: !1,
|
|
1365
|
+
description: "If `true`, the navigation will use sticky positioning instead\n of fixed positioning on desktop viewports (min-width: 1166px). This is primarily\n used in combination with the App Header component.",
|
|
1366
|
+
type: Boolean,
|
|
1367
|
+
typeDef: "boolean"
|
|
1355
1368
|
}
|
|
1356
1369
|
}, Sn = {
|
|
1357
1370
|
"nav-link-clicked": {
|
|
@@ -1448,10 +1461,10 @@ const Wa = ["id", "data-stacked"], Ka = ["data-open"], Ha = ["aria-controls", "a
|
|
|
1448
1461
|
])) : x("", !0),
|
|
1449
1462
|
w("span", { id: r.value }, [
|
|
1450
1463
|
z(v.$slots, "header", {}, () => [
|
|
1451
|
-
_(
|
|
1464
|
+
_(L(v.headerText), 1)
|
|
1452
1465
|
])
|
|
1453
1466
|
], 8, Ya),
|
|
1454
|
-
R(f(
|
|
1467
|
+
R(f(Le), {
|
|
1455
1468
|
size: "md",
|
|
1456
1469
|
"data-position": "end"
|
|
1457
1470
|
})
|
|
@@ -1556,7 +1569,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1556
1569
|
default: q(() => [
|
|
1557
1570
|
v.value ? (l(), h("span", Ja, [
|
|
1558
1571
|
z(k.$slots, "default", {}, () => [
|
|
1559
|
-
_(
|
|
1572
|
+
_(L(k.label), 1)
|
|
1560
1573
|
])
|
|
1561
1574
|
])) : x("", !0),
|
|
1562
1575
|
w("span", _a, [
|
|
@@ -1569,7 +1582,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1569
1582
|
]),
|
|
1570
1583
|
$.value ? (l(), h("span", eo, [
|
|
1571
1584
|
z(k.$slots, "default", {}, () => [
|
|
1572
|
-
_(
|
|
1585
|
+
_(L(k.label), 1)
|
|
1573
1586
|
])
|
|
1574
1587
|
])) : x("", !0)
|
|
1575
1588
|
]),
|
|
@@ -1632,7 +1645,7 @@ const Ja = { key: 0 }, _a = {
|
|
|
1632
1645
|
]),
|
|
1633
1646
|
default: q(() => [
|
|
1634
1647
|
z(n.$slots, "default", {}, () => [
|
|
1635
|
-
_(
|
|
1648
|
+
_(L(e.label), 1)
|
|
1636
1649
|
])
|
|
1637
1650
|
]),
|
|
1638
1651
|
_: 3
|
|
@@ -1683,12 +1696,12 @@ const Ja = { key: 0 }, _a = {
|
|
|
1683
1696
|
]),
|
|
1684
1697
|
w("div", oo, [
|
|
1685
1698
|
z(i.$slots, "title", {}, () => [
|
|
1686
|
-
_(
|
|
1699
|
+
_(L(i.title), 1)
|
|
1687
1700
|
])
|
|
1688
1701
|
]),
|
|
1689
1702
|
i.description || i.$slots.description ? (l(), h("div", io, [
|
|
1690
1703
|
z(i.$slots, "description", {}, () => [
|
|
1691
|
-
_(
|
|
1704
|
+
_(L(i.description), 1)
|
|
1692
1705
|
])
|
|
1693
1706
|
])) : x("", !0),
|
|
1694
1707
|
i.hideDismiss ? x("", !0) : (l(), h("button", {
|
|
@@ -1840,13 +1853,13 @@ const Ja = { key: 0 }, _a = {
|
|
|
1840
1853
|
id: e.hintId,
|
|
1841
1854
|
class: "bs-hint",
|
|
1842
1855
|
"data-error": e.error
|
|
1843
|
-
},
|
|
1856
|
+
}, L(t.value), 9, fo)) : x("", !0),
|
|
1844
1857
|
e.charMax ? (l(), h("span", {
|
|
1845
1858
|
key: 1,
|
|
1846
1859
|
"aria-description": "character count over character limit for the preceding text field",
|
|
1847
1860
|
class: "bs-character-count",
|
|
1848
1861
|
"data-error": n.charCount > n.charMax
|
|
1849
|
-
},
|
|
1862
|
+
}, L(n.charCount || "0") + " / " + L(n.charMax), 9, bo)) : x("", !0)
|
|
1850
1863
|
]));
|
|
1851
1864
|
}
|
|
1852
1865
|
}, ho = ["data-disabled", "for"], pe = {
|
|
@@ -2201,7 +2214,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2201
2214
|
}
|
|
2202
2215
|
return I;
|
|
2203
2216
|
}
|
|
2204
|
-
function
|
|
2217
|
+
function E(g) {
|
|
2205
2218
|
!t.isRange || i.value.contains(g.relatedTarget) || a.value.hidePopover();
|
|
2206
2219
|
}
|
|
2207
2220
|
function B() {
|
|
@@ -2214,7 +2227,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2214
2227
|
class: "bs-calendar",
|
|
2215
2228
|
"data-component": "bs-calendar",
|
|
2216
2229
|
"data-range": g.isRange,
|
|
2217
|
-
onFocusout:
|
|
2230
|
+
onFocusout: E
|
|
2218
2231
|
}, f(c)), [
|
|
2219
2232
|
g.label || g.$slots.label ? (l(), D(pe, {
|
|
2220
2233
|
key: 0,
|
|
@@ -2224,7 +2237,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2224
2237
|
}, {
|
|
2225
2238
|
default: q(() => [
|
|
2226
2239
|
z(g.$slots, "label", {}, () => [
|
|
2227
|
-
_(
|
|
2240
|
+
_(L(g.label), 1)
|
|
2228
2241
|
])
|
|
2229
2242
|
]),
|
|
2230
2243
|
_: 3
|
|
@@ -2242,18 +2255,18 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2242
2255
|
popover: { visibility: "focus" },
|
|
2243
2256
|
rows: 1,
|
|
2244
2257
|
step: r.value,
|
|
2245
|
-
"onUpdate:modelValue": I[2] || (I[2] = (
|
|
2258
|
+
"onUpdate:modelValue": I[2] || (I[2] = (P) => g.$emit("update:modelValue", P))
|
|
2246
2259
|
}, f(d)), gt({ _: 2 }, [
|
|
2247
2260
|
g.inputMode ? {
|
|
2248
2261
|
name: "default",
|
|
2249
|
-
fn: q(({ inputValue:
|
|
2262
|
+
fn: q(({ inputValue: P, inputEvents: N, showPopover: G }) => [
|
|
2250
2263
|
g.isRange ? (l(), D(ko, {
|
|
2251
2264
|
key: 1,
|
|
2252
2265
|
disabled: g.disabled,
|
|
2253
2266
|
error: g.error,
|
|
2254
2267
|
"input-id": v.value,
|
|
2255
|
-
"input-value":
|
|
2256
|
-
"input-value-fmt": b(
|
|
2268
|
+
"input-value": P,
|
|
2269
|
+
"input-value-fmt": b(P),
|
|
2257
2270
|
listeners: N,
|
|
2258
2271
|
placeholder: g.placeholder,
|
|
2259
2272
|
"show-clear": O.value,
|
|
@@ -2267,7 +2280,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2267
2280
|
error: g.error,
|
|
2268
2281
|
"input-id": v.value,
|
|
2269
2282
|
listeners: N,
|
|
2270
|
-
"model-value": b(
|
|
2283
|
+
"model-value": b(P),
|
|
2271
2284
|
placeholder: g.placeholder,
|
|
2272
2285
|
"show-clear": O.value,
|
|
2273
2286
|
required: g.required,
|
|
@@ -2406,7 +2419,7 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2406
2419
|
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) => {
|
|
2407
2420
|
const k = { rowLabel: O }, y = [];
|
|
2408
2421
|
return c.forEach((S) => {
|
|
2409
|
-
const b = { datasetLabel: S.label }, M = S.data.find((
|
|
2422
|
+
const b = { datasetLabel: S.label }, M = S.data.find((E) => E.x === O);
|
|
2410
2423
|
b.value = M ? M.y : null, y.push(b);
|
|
2411
2424
|
}), k.dataCells = y, n.xAxisType === "time" && (k.rowLabelFmt = a(O)), k;
|
|
2412
2425
|
});
|
|
@@ -2435,24 +2448,24 @@ const $o = ["data-range"], Wt = "(min-width: 752px)", Tr = /* @__PURE__ */ Objec
|
|
|
2435
2448
|
w("tr", null, [
|
|
2436
2449
|
w("th", {
|
|
2437
2450
|
colspan: r.value.colspan
|
|
2438
|
-
},
|
|
2451
|
+
}, L(r.value.title), 9, To)
|
|
2439
2452
|
]),
|
|
2440
2453
|
w("tr", null, [
|
|
2441
|
-
w("th", Co,
|
|
2454
|
+
w("th", Co, L(r.value.colHeadingFirst), 1),
|
|
2442
2455
|
(l(!0), h(J, null, de(r.value.colHeadings, (v) => (l(), h("th", {
|
|
2443
2456
|
key: v,
|
|
2444
2457
|
scope: "col"
|
|
2445
|
-
},
|
|
2458
|
+
}, L(v), 1))), 128))
|
|
2446
2459
|
])
|
|
2447
2460
|
]),
|
|
2448
2461
|
w("tbody", null, [
|
|
2449
2462
|
(l(!0), h(J, null, de(r.value.rows, (v) => (l(), h("tr", {
|
|
2450
2463
|
key: v.rowLabelFmt || v.rowLabel
|
|
2451
2464
|
}, [
|
|
2452
|
-
w("th", Do,
|
|
2465
|
+
w("th", Do, L(v.rowLabelFmt || v.rowLabel), 1),
|
|
2453
2466
|
(l(!0), h(J, null, de(v.dataCells, ($) => (l(), h("td", {
|
|
2454
2467
|
key: `${v.rowLabelFmt || v.rowLabel}${$.datasetLabel}${$.value}`
|
|
2455
|
-
},
|
|
2468
|
+
}, L($.value), 1))), 128))
|
|
2456
2469
|
]))), 128))
|
|
2457
2470
|
])
|
|
2458
2471
|
], 8, Bo)) : x("", !0)
|
|
@@ -2498,9 +2511,9 @@ function Ao(e, n) {
|
|
|
2498
2511
|
}
|
|
2499
2512
|
}
|
|
2500
2513
|
function v(y, S) {
|
|
2501
|
-
var
|
|
2514
|
+
var E;
|
|
2502
2515
|
const b = `[data-dataset-index="${y}"][data-label-index="${S}"]`, M = o.value.querySelector(b);
|
|
2503
|
-
(
|
|
2516
|
+
(E = M == null ? void 0 : M.focus) == null || E.call(M);
|
|
2504
2517
|
}
|
|
2505
2518
|
function $(...y) {
|
|
2506
2519
|
!d || !t.value || (rt.register(...y), rt.defaults.font.family = "'Roobert', sans-serif", r = new rt(t.value, d));
|
|
@@ -2620,10 +2633,10 @@ function xt(e, n = 1) {
|
|
|
2620
2633
|
], a = t[e % t.length], o = Math.floor(e / t.length) + n;
|
|
2621
2634
|
return `rgba(${a.toString()}, ${1 / o})`;
|
|
2622
2635
|
}
|
|
2623
|
-
function
|
|
2636
|
+
function Po(e) {
|
|
2624
2637
|
return xt(e);
|
|
2625
2638
|
}
|
|
2626
|
-
function
|
|
2639
|
+
function Eo(e) {
|
|
2627
2640
|
return {
|
|
2628
2641
|
maintainAspectRatio: !1,
|
|
2629
2642
|
plugins: {
|
|
@@ -2730,7 +2743,7 @@ class Tn {
|
|
|
2730
2743
|
return n;
|
|
2731
2744
|
}
|
|
2732
2745
|
}
|
|
2733
|
-
class
|
|
2746
|
+
class Vo extends Tn {
|
|
2734
2747
|
constructor({ data: n, options: t, plugins: a }) {
|
|
2735
2748
|
super({ type: "bar", data: n, options: t, plugins: a });
|
|
2736
2749
|
}
|
|
@@ -2754,7 +2767,7 @@ class Lo extends Tn {
|
|
|
2754
2767
|
this.options = o;
|
|
2755
2768
|
}
|
|
2756
2769
|
}
|
|
2757
|
-
class
|
|
2770
|
+
class Lo extends Tn {
|
|
2758
2771
|
constructor({ data: n, options: t, plugins: a }) {
|
|
2759
2772
|
super({ type: "line", data: n, options: t, plugins: a });
|
|
2760
2773
|
}
|
|
@@ -2762,7 +2775,7 @@ class Vo extends Tn {
|
|
|
2762
2775
|
return n.map((t, a) => ({
|
|
2763
2776
|
...t,
|
|
2764
2777
|
backgroundColor: xt(a, 2),
|
|
2765
|
-
borderColor:
|
|
2778
|
+
borderColor: Po(a),
|
|
2766
2779
|
borderWidth: 4
|
|
2767
2780
|
}));
|
|
2768
2781
|
}
|
|
@@ -2796,7 +2809,7 @@ class Mo {
|
|
|
2796
2809
|
*/
|
|
2797
2810
|
setCommonConfigs(n) {
|
|
2798
2811
|
const { data: t } = n;
|
|
2799
|
-
return this.commonOptionsBasic =
|
|
2812
|
+
return this.commonOptionsBasic = Eo(n), this.commonOptionsStrict = At(), this.datasets = t, this;
|
|
2800
2813
|
}
|
|
2801
2814
|
setCustomOptions(n) {
|
|
2802
2815
|
return this.customOptions = n.customOptions, this;
|
|
@@ -2848,9 +2861,9 @@ class Mo {
|
|
|
2848
2861
|
};
|
|
2849
2862
|
switch (this.type) {
|
|
2850
2863
|
case "bar":
|
|
2851
|
-
return new Lo(n);
|
|
2852
|
-
case "line":
|
|
2853
2864
|
return new Vo(n);
|
|
2865
|
+
case "line":
|
|
2866
|
+
return new Lo(n);
|
|
2854
2867
|
default:
|
|
2855
2868
|
throw new Error(`Unsupported chart type: ${this.type}`);
|
|
2856
2869
|
}
|
|
@@ -3071,7 +3084,7 @@ const No = {
|
|
|
3071
3084
|
}, {
|
|
3072
3085
|
default: q(() => [
|
|
3073
3086
|
z(S.$slots, "label", {}, () => [
|
|
3074
|
-
_(
|
|
3087
|
+
_(L(e.label), 1)
|
|
3075
3088
|
])
|
|
3076
3089
|
]),
|
|
3077
3090
|
_: 3
|
|
@@ -3196,7 +3209,7 @@ const No = {
|
|
|
3196
3209
|
var s;
|
|
3197
3210
|
e && !u && ((s = document.getElementById(a.value)) == null || s.remove());
|
|
3198
3211
|
}), { breakoutId: a, breakoutStub: o, breakoutMounted: i };
|
|
3199
|
-
},
|
|
3212
|
+
}, Pt = (e, n) => {
|
|
3200
3213
|
const t = (a) => {
|
|
3201
3214
|
e.some((o) => {
|
|
3202
3215
|
var i;
|
|
@@ -3265,7 +3278,7 @@ const No = {
|
|
|
3265
3278
|
],
|
|
3266
3279
|
setup(e, { emit: n }) {
|
|
3267
3280
|
const t = e, a = n, o = C(null), i = C(null), u = C(!1), s = C(!1), r = C(null), d = m(() => t.breakout ? p.value : t.containerId ? document.getElementById(t.containerId) : o.value.internalContainerRef), c = m(() => t.width === "anchor" ? void 0 : t.width);
|
|
3268
|
-
|
|
3281
|
+
Pt([i, r], () => {
|
|
3269
3282
|
s.value && a("close");
|
|
3270
3283
|
}), Ae(["Escape"], () => {
|
|
3271
3284
|
s.value && a("close");
|
|
@@ -3289,15 +3302,15 @@ const No = {
|
|
|
3289
3302
|
}
|
|
3290
3303
|
}
|
|
3291
3304
|
function y(B, g, I) {
|
|
3292
|
-
const
|
|
3305
|
+
const P = g.left - B.left;
|
|
3293
3306
|
if (t.position === "center") {
|
|
3294
3307
|
const N = (g.width - I.width) / 2;
|
|
3295
|
-
$("--dropdown-wscreen-left", `${
|
|
3308
|
+
$("--dropdown-wscreen-left", `${P + N}px`), $("--dropdown-wscreen-right", "auto");
|
|
3296
3309
|
} else if (t.position === "right") {
|
|
3297
3310
|
const N = B.right - g.right;
|
|
3298
3311
|
$("--dropdown-wscreen-left", "auto"), $("--dropdown-wscreen-right", `${N}px`);
|
|
3299
3312
|
} else
|
|
3300
|
-
$("--dropdown-wscreen-left", `${
|
|
3313
|
+
$("--dropdown-wscreen-left", `${P}px`), $("--dropdown-wscreen-right", "auto");
|
|
3301
3314
|
}
|
|
3302
3315
|
function S() {
|
|
3303
3316
|
if (t.width === "anchor") {
|
|
@@ -3312,7 +3325,7 @@ const No = {
|
|
|
3312
3325
|
function M() {
|
|
3313
3326
|
s.value = !0, a("after-enter");
|
|
3314
3327
|
}
|
|
3315
|
-
function
|
|
3328
|
+
function E() {
|
|
3316
3329
|
u.value = !1, s.value = !1, a("after-leave");
|
|
3317
3330
|
}
|
|
3318
3331
|
return (B, g) => (l(), h(J, null, [
|
|
@@ -3332,7 +3345,7 @@ const No = {
|
|
|
3332
3345
|
shown: e.shown,
|
|
3333
3346
|
onAfterEnter: M,
|
|
3334
3347
|
onEnter: b,
|
|
3335
|
-
onAfterLeave:
|
|
3348
|
+
onAfterLeave: E
|
|
3336
3349
|
}, {
|
|
3337
3350
|
default: q(() => [
|
|
3338
3351
|
w("div", H({
|
|
@@ -3345,8 +3358,8 @@ const No = {
|
|
|
3345
3358
|
}, B.$attrs), [
|
|
3346
3359
|
e.helperText ? (l(), h("header", Go, [
|
|
3347
3360
|
w("div", null, [
|
|
3348
|
-
w("h3", null,
|
|
3349
|
-
e.helperDescription ? (l(), h("p", Yo,
|
|
3361
|
+
w("h3", null, L(e.helperText), 1),
|
|
3362
|
+
e.helperDescription ? (l(), h("p", Yo, L(e.helperDescription), 1)) : x("", !0)
|
|
3350
3363
|
]),
|
|
3351
3364
|
w("button", {
|
|
3352
3365
|
type: "button",
|
|
@@ -3567,12 +3580,12 @@ const No = {
|
|
|
3567
3580
|
type: "button",
|
|
3568
3581
|
onClick: r
|
|
3569
3582
|
}, [
|
|
3570
|
-
w("span", Qo,
|
|
3583
|
+
w("span", Qo, L(u.value.text), 1),
|
|
3571
3584
|
s.value ? (l(), D(f(ke), {
|
|
3572
3585
|
key: 0,
|
|
3573
3586
|
role: "presentation",
|
|
3574
3587
|
size: "md"
|
|
3575
|
-
})) : (l(), D(f(
|
|
3588
|
+
})) : (l(), D(f(Le), {
|
|
3576
3589
|
key: 1,
|
|
3577
3590
|
role: "presentation",
|
|
3578
3591
|
size: "md"
|
|
@@ -3634,16 +3647,16 @@ const No = {
|
|
|
3634
3647
|
variant: "notext"
|
|
3635
3648
|
}, null, 8, ["count"])) : x("", !0),
|
|
3636
3649
|
z(a.$slots, "label", {}, () => [
|
|
3637
|
-
_(
|
|
3650
|
+
_(L(e.label), 1)
|
|
3638
3651
|
]),
|
|
3639
|
-
R(f(
|
|
3652
|
+
R(f(Le))
|
|
3640
3653
|
], 8, _o));
|
|
3641
3654
|
}
|
|
3642
3655
|
}, Cn = (e, n, t = "id") => {
|
|
3643
3656
|
var o;
|
|
3644
3657
|
const a = typeof n == "object" ? (o = n == null ? void 0 : n[t]) == null ? void 0 : o.toString().replace(/\s/g, "-") : n == null ? void 0 : n.toString().replace(/\s/g, "-");
|
|
3645
3658
|
return `${e}-option-${a}`;
|
|
3646
|
-
}, ti = ["data-value", "data-value-id-key", "data-value-type", "data-variant", "id"],
|
|
3659
|
+
}, ti = ["data-value", "data-value-id-key", "data-value-type", "data-variant", "id"], Et = {
|
|
3647
3660
|
__name: "BsDropdownOption",
|
|
3648
3661
|
props: {
|
|
3649
3662
|
valueIdKey: {
|
|
@@ -3734,7 +3747,7 @@ const No = {
|
|
|
3734
3747
|
return !!a && a !== o;
|
|
3735
3748
|
}
|
|
3736
3749
|
return (a, o) => (l(), h(J, null, [
|
|
3737
|
-
(l(!0), h(J, null, de(a.options, (i) => (l(), D(
|
|
3750
|
+
(l(!0), h(J, null, de(a.options, (i) => (l(), D(Et, {
|
|
3738
3751
|
"aria-checked": i.checkbox ? i.checkbox.checked : void 0,
|
|
3739
3752
|
key: i.value,
|
|
3740
3753
|
"value-id-key": a.valueIdKey,
|
|
@@ -3766,8 +3779,8 @@ const No = {
|
|
|
3766
3779
|
i.labelHtml ? (l(), h("span", {
|
|
3767
3780
|
key: 3,
|
|
3768
3781
|
innerHTML: i.labelHtml
|
|
3769
|
-
}, null, 8, li)) : (l(), h("span", si,
|
|
3770
|
-
i.description ? (l(), h("span", ri,
|
|
3782
|
+
}, null, 8, li)) : (l(), h("span", si, L(i.label), 1)),
|
|
3783
|
+
i.description ? (l(), h("span", ri, L(i.description), 1)) : x("", !0)
|
|
3771
3784
|
]),
|
|
3772
3785
|
_: 2
|
|
3773
3786
|
}, 1032, ["aria-checked", "value-id-key", "value", "variant"]))), 128)),
|
|
@@ -3904,13 +3917,13 @@ const No = {
|
|
|
3904
3917
|
const $ = ue("dropdownEnter", C(!1)), O = ue("dropdownAfterEnter", C(!1)), k = ue("dropdownShown", C(!1));
|
|
3905
3918
|
me("optionsId", m(() => a.optionsId)), me("handleOptionSelect", $e), me("registerOptionById", ({ id: U, val: K }) => {
|
|
3906
3919
|
v[U] = K;
|
|
3907
|
-
}), ui(u,
|
|
3920
|
+
}), ui(u, E, { childList: !0 }), Ae([" ", "Enter", "NumpadEnter"], ge, u), Ae(["ArrowDown", "ArrowUp", "Home", "End"], Ie);
|
|
3908
3921
|
const b = [/^[a-zA-Z0-9]{1}$/], M = {
|
|
3909
3922
|
keys: "",
|
|
3910
3923
|
lastTyped: 0
|
|
3911
3924
|
};
|
|
3912
|
-
Ae(b, (U) =>
|
|
3913
|
-
|
|
3925
|
+
Ae(b, (U) => Pe(U, M)), ee(() => {
|
|
3926
|
+
E(), G(k.value);
|
|
3914
3927
|
}), De(() => {
|
|
3915
3928
|
v = null;
|
|
3916
3929
|
}), Z(
|
|
@@ -3924,7 +3937,7 @@ const No = {
|
|
|
3924
3937
|
), Z(O, (U) => {
|
|
3925
3938
|
U && (B(), g());
|
|
3926
3939
|
}), Z(k, (U) => G(U));
|
|
3927
|
-
function
|
|
3940
|
+
function E() {
|
|
3928
3941
|
c.value = Array.from(
|
|
3929
3942
|
u.value.querySelectorAll('[data-component="bs-dropdown-option"]')
|
|
3930
3943
|
);
|
|
@@ -3940,7 +3953,7 @@ const No = {
|
|
|
3940
3953
|
var U, K;
|
|
3941
3954
|
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());
|
|
3942
3955
|
}
|
|
3943
|
-
function
|
|
3956
|
+
function P() {
|
|
3944
3957
|
var U;
|
|
3945
3958
|
r.value > -1 && ((U = c.value[r.value]) == null || U.removeAttribute("data-active"));
|
|
3946
3959
|
}
|
|
@@ -3961,13 +3974,13 @@ const No = {
|
|
|
3961
3974
|
function he() {
|
|
3962
3975
|
c.value.forEach((U) => {
|
|
3963
3976
|
U.removeAttribute("data-selected"), U.setAttribute("aria-selected", "false");
|
|
3964
|
-
}),
|
|
3977
|
+
}), P(), d.value = -1, r.value = -1, s.value = null;
|
|
3965
3978
|
}
|
|
3966
3979
|
function $e(U) {
|
|
3967
3980
|
var ie;
|
|
3968
3981
|
(ie = U.querySelector("a")) == null || ie.click();
|
|
3969
3982
|
let K = U.dataset.valueIdKey ? v[U.id] : U.dataset.value;
|
|
3970
|
-
U.dataset.valueType == "number" && (K = Number(K)), s.value = U.id,
|
|
3983
|
+
U.dataset.valueType == "number" && (K = Number(K)), s.value = U.id, P(), i("update:modelValue", K), i("close");
|
|
3971
3984
|
}
|
|
3972
3985
|
function ge(U) {
|
|
3973
3986
|
$e(c.value[r.value]), U.preventDefault();
|
|
@@ -4007,20 +4020,20 @@ const No = {
|
|
|
4007
4020
|
}
|
|
4008
4021
|
Oe(K);
|
|
4009
4022
|
}
|
|
4010
|
-
function
|
|
4023
|
+
function Pe(U, K) {
|
|
4011
4024
|
if (!k.value) return;
|
|
4012
4025
|
K.keys = U.timeStamp - K.lastTyped > 500 ? U.key : K.keys + U.key, K.lastTyped = U.timeStamp;
|
|
4013
4026
|
const ie = c.value.findIndex((Y) => Y.textContent.replaceAll(/[^a-zA-Z0-9]/g, "").toLowerCase().startsWith(K.keys));
|
|
4014
4027
|
ie > -1 && Oe(ie, !1);
|
|
4015
4028
|
}
|
|
4016
4029
|
function Oe(U, K = !0) {
|
|
4017
|
-
|
|
4030
|
+
P(), r.value = U, document.activeElement !== u.value && K ? u.value.focus() : I();
|
|
4018
4031
|
}
|
|
4019
4032
|
return n({
|
|
4020
4033
|
activeIndex: r,
|
|
4021
4034
|
optionEls: c,
|
|
4022
4035
|
optionsRef: u,
|
|
4023
|
-
refreshOptions:
|
|
4036
|
+
refreshOptions: E,
|
|
4024
4037
|
setCurrentActive: I
|
|
4025
4038
|
}), (U, K) => (l(), h("ul", {
|
|
4026
4039
|
ref_key: "optionsRef",
|
|
@@ -4034,7 +4047,7 @@ const No = {
|
|
|
4034
4047
|
id: e.optionsId,
|
|
4035
4048
|
role: "listbox",
|
|
4036
4049
|
tabindex: f(k) ? 0 : void 0,
|
|
4037
|
-
onBlur:
|
|
4050
|
+
onBlur: P,
|
|
4038
4051
|
onFocus: N,
|
|
4039
4052
|
onKeydown: [
|
|
4040
4053
|
K[0] || (K[0] = Ye(Ce((ie) => i("options-list-shift-tab"), ["shift"]), ["tab"])),
|
|
@@ -4117,13 +4130,13 @@ const No = {
|
|
|
4117
4130
|
o.value && (o.value.refreshOptions(), o.value.setCurrentActive());
|
|
4118
4131
|
}
|
|
4119
4132
|
function v(k = []) {
|
|
4120
|
-
var
|
|
4121
|
-
const y = ((
|
|
4133
|
+
var E;
|
|
4134
|
+
const y = ((E = k[0]) == null ? void 0 : E[t.valueIdKey]) !== void 0;
|
|
4122
4135
|
y && (k = k.map((B) => B[t.valueIdKey]));
|
|
4123
4136
|
const S = new Set(k), b = [], M = [];
|
|
4124
4137
|
t.options.forEach((B) => {
|
|
4125
|
-
const g = { ...B }, I = y ? B.value[t.valueIdKey] : B.value,
|
|
4126
|
-
S.has(y ? B.value[t.valueIdKey] : B.value) ? (g.checkbox = { inputId:
|
|
4138
|
+
const g = { ...B }, I = y ? B.value[t.valueIdKey] : B.value, P = `${t.optionsId}-${I}-cb`;
|
|
4139
|
+
S.has(y ? B.value[t.valueIdKey] : B.value) ? (g.checkbox = { inputId: P, checked: !0 }, b.push(g)) : (g.checkbox = { inputId: P, checked: !1 }, M.push(g));
|
|
4127
4140
|
}), i.value = b, Re(() => {
|
|
4128
4141
|
u.value = M, Re(() => {
|
|
4129
4142
|
d && p(), d = !1;
|
|
@@ -4196,6 +4209,10 @@ const No = {
|
|
|
4196
4209
|
type: Boolean,
|
|
4197
4210
|
default: !1
|
|
4198
4211
|
},
|
|
4212
|
+
containerId: {
|
|
4213
|
+
type: String,
|
|
4214
|
+
default: ""
|
|
4215
|
+
},
|
|
4199
4216
|
disabled: {
|
|
4200
4217
|
type: Boolean,
|
|
4201
4218
|
default: !1
|
|
@@ -4320,7 +4337,7 @@ const No = {
|
|
|
4320
4337
|
function M() {
|
|
4321
4338
|
s.value = !0;
|
|
4322
4339
|
}
|
|
4323
|
-
function
|
|
4340
|
+
function E(N) {
|
|
4324
4341
|
const G = t.selectedOptions.filter((te) => te !== N);
|
|
4325
4342
|
a("update:selectedOptions", G), a("uncheck-option", N);
|
|
4326
4343
|
}
|
|
@@ -4334,7 +4351,7 @@ const No = {
|
|
|
4334
4351
|
function I() {
|
|
4335
4352
|
r.value = "";
|
|
4336
4353
|
}
|
|
4337
|
-
function
|
|
4354
|
+
function P(N) {
|
|
4338
4355
|
r.value = N;
|
|
4339
4356
|
}
|
|
4340
4357
|
return (N, G) => (l(), h("div", {
|
|
@@ -4359,7 +4376,7 @@ const No = {
|
|
|
4359
4376
|
}, {
|
|
4360
4377
|
label: q(() => [
|
|
4361
4378
|
z(N.$slots, "toggle-label", {}, () => [
|
|
4362
|
-
_(
|
|
4379
|
+
_(L(e.toggleLabel), 1)
|
|
4363
4380
|
])
|
|
4364
4381
|
]),
|
|
4365
4382
|
_: 3
|
|
@@ -4368,6 +4385,7 @@ const No = {
|
|
|
4368
4385
|
R(lt, {
|
|
4369
4386
|
"anchor-id": e.anchorId || v.value,
|
|
4370
4387
|
breakout: e.breakout,
|
|
4388
|
+
"container-id": e.containerId,
|
|
4371
4389
|
"helper-text": e.helperText,
|
|
4372
4390
|
"helper-description": e.helperDescription,
|
|
4373
4391
|
position: e.dropdownPosition,
|
|
@@ -4385,7 +4403,7 @@ const No = {
|
|
|
4385
4403
|
"aria-label": e.filterLabel,
|
|
4386
4404
|
"model-value": r.value,
|
|
4387
4405
|
placeholder: e.filterPlaceholder,
|
|
4388
|
-
"onUpdate:modelValue":
|
|
4406
|
+
"onUpdate:modelValue": P,
|
|
4389
4407
|
onClear: I
|
|
4390
4408
|
}, null, 8, ["aria-label", "model-value", "placeholder"])
|
|
4391
4409
|
])) : x("", !0),
|
|
@@ -4402,7 +4420,7 @@ const No = {
|
|
|
4402
4420
|
onClose: G[1] || (G[1] = (te) => e.multiselect ? void 0 : b()),
|
|
4403
4421
|
onOptionsListShiftTab: G[2] || (G[2] = (te) => N.$emit("options-list-shift-tab")),
|
|
4404
4422
|
onOptionsListTab: G[3] || (G[3] = (te) => N.$emit("options-list-tab")),
|
|
4405
|
-
onUncheckOption:
|
|
4423
|
+
onUncheckOption: E,
|
|
4406
4424
|
"onUpdate:modelValue": g
|
|
4407
4425
|
}, {
|
|
4408
4426
|
default: q(() => [
|
|
@@ -4421,14 +4439,14 @@ const No = {
|
|
|
4421
4439
|
onClick: G[4] || (G[4] = () => a("close"))
|
|
4422
4440
|
}, {
|
|
4423
4441
|
default: q(() => [
|
|
4424
|
-
_(
|
|
4442
|
+
_(L(e.filterButtonText), 1)
|
|
4425
4443
|
]),
|
|
4426
4444
|
_: 1
|
|
4427
4445
|
}, 8, ["title"])
|
|
4428
4446
|
])) : x("", !0)
|
|
4429
4447
|
]),
|
|
4430
4448
|
_: 1
|
|
4431
|
-
}, 8, ["anchor-id", "breakout", "helper-text", "helper-description", "position", "shown", "use-mobile-style", "width"])
|
|
4449
|
+
}, 8, ["anchor-id", "breakout", "container-id", "helper-text", "helper-description", "position", "shown", "use-mobile-style", "width"])
|
|
4432
4450
|
], 8, bi));
|
|
4433
4451
|
}
|
|
4434
4452
|
}, zn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
@@ -4503,14 +4521,14 @@ const No = {
|
|
|
4503
4521
|
function v() {
|
|
4504
4522
|
return p || (p = d.value.$el.querySelector("input")), p;
|
|
4505
4523
|
}
|
|
4506
|
-
function $(
|
|
4507
|
-
a("combobox:change",
|
|
4524
|
+
function $(E) {
|
|
4525
|
+
a("combobox:change", E.target.value), a("update:modelValue", E.target.value);
|
|
4508
4526
|
}
|
|
4509
4527
|
function O() {
|
|
4510
4528
|
v().focus(), a("combobox:change", ""), a("update:modelValue", "");
|
|
4511
4529
|
}
|
|
4512
|
-
function k(
|
|
4513
|
-
a("combobox:input",
|
|
4530
|
+
function k(E) {
|
|
4531
|
+
a("combobox:input", E.target.value), t.updateOnInput && a("update:modelValue", E.target.value);
|
|
4514
4532
|
}
|
|
4515
4533
|
function y() {
|
|
4516
4534
|
s.value = !1, document.activeElement !== v() && (r.value = !0);
|
|
@@ -4524,7 +4542,7 @@ const No = {
|
|
|
4524
4542
|
function M() {
|
|
4525
4543
|
r.value ? r.value = !1 : s.value = !0;
|
|
4526
4544
|
}
|
|
4527
|
-
return (
|
|
4545
|
+
return (E, B) => (l(), D(An, {
|
|
4528
4546
|
"anchor-id": f(i),
|
|
4529
4547
|
disabled: e.disabled,
|
|
4530
4548
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -4536,18 +4554,18 @@ const No = {
|
|
|
4536
4554
|
options: e.options,
|
|
4537
4555
|
"options-id": f(u),
|
|
4538
4556
|
"selected-option": e.modelValue,
|
|
4539
|
-
"toggle-id":
|
|
4557
|
+
"toggle-id": E.$attrs.id || c.value,
|
|
4540
4558
|
"use-mobile-style": e.useMobileStyle,
|
|
4541
4559
|
"value-id-key": e.valueIdKey,
|
|
4542
4560
|
onClose: y,
|
|
4543
4561
|
onOptionsListTab: B[2] || (B[2] = (g) => s.value = !1),
|
|
4544
|
-
"onUpdate:selectedOption": B[3] || (B[3] = (g) =>
|
|
4562
|
+
"onUpdate:selectedOption": B[3] || (B[3] = (g) => E.$emit("update:modelValue", g))
|
|
4545
4563
|
}, {
|
|
4546
4564
|
toggle: q(() => [
|
|
4547
4565
|
R(Jo, H({
|
|
4548
4566
|
ref_key: "inputComboboxRef",
|
|
4549
4567
|
ref: d,
|
|
4550
|
-
id:
|
|
4568
|
+
id: E.$attrs.id || c.value,
|
|
4551
4569
|
"container-id": f(i),
|
|
4552
4570
|
disabled: e.disabled,
|
|
4553
4571
|
error: e.error,
|
|
@@ -4565,7 +4583,7 @@ const No = {
|
|
|
4565
4583
|
onInputMouseup: b,
|
|
4566
4584
|
onInputShiftTab: B[0] || (B[0] = (g) => s.value = !1),
|
|
4567
4585
|
onToggled: B[1] || (B[1] = (g) => s.value = !s.value)
|
|
4568
|
-
},
|
|
4586
|
+
}, E.$attrs), null, 16, ["id", "container-id", "disabled", "error", "hint-id", "model-value", "open", "options-id", "placeholder", "required"])
|
|
4569
4587
|
]),
|
|
4570
4588
|
_: 1
|
|
4571
4589
|
}, 8, ["anchor-id", "disabled", "dropdown-position", "dropdown-width", "helper-description", "helper-text", "open", "options", "options-id", "selected-option", "toggle-id", "use-mobile-style", "value-id-key"]));
|
|
@@ -4656,7 +4674,7 @@ const No = {
|
|
|
4656
4674
|
}, {
|
|
4657
4675
|
default: q(() => [
|
|
4658
4676
|
z(d.$slots, "label", {}, () => [
|
|
4659
|
-
_(
|
|
4677
|
+
_(L(e.label), 1)
|
|
4660
4678
|
])
|
|
4661
4679
|
]),
|
|
4662
4680
|
_: 3
|
|
@@ -4811,7 +4829,7 @@ const No = {
|
|
|
4811
4829
|
_: 3
|
|
4812
4830
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
|
|
4813
4831
|
}
|
|
4814
|
-
},
|
|
4832
|
+
}, Pn = {
|
|
4815
4833
|
__name: "BsDropdownWithOptions",
|
|
4816
4834
|
props: {
|
|
4817
4835
|
anchorId: {
|
|
@@ -4966,10 +4984,10 @@ const No = {
|
|
|
4966
4984
|
])
|
|
4967
4985
|
]),
|
|
4968
4986
|
w("div", null, [
|
|
4969
|
-
w("p", wi,
|
|
4987
|
+
w("p", wi, L(u.title), 1),
|
|
4970
4988
|
u.size !== "xs" ? (l(), h("p", ki, [
|
|
4971
4989
|
z(u.$slots, "description", {}, () => [
|
|
4972
|
-
_(
|
|
4990
|
+
_(L(u.description), 1)
|
|
4973
4991
|
])
|
|
4974
4992
|
])) : x("", !0),
|
|
4975
4993
|
z(u.$slots, "call-to-action")
|
|
@@ -5015,7 +5033,7 @@ const No = {
|
|
|
5015
5033
|
emits: ["close"],
|
|
5016
5034
|
setup(e, { emit: n }) {
|
|
5017
5035
|
const t = e, a = n, o = C(null), i = m(() => document.getElementById(t.toggleId));
|
|
5018
|
-
|
|
5036
|
+
Pt([o, i], u), Ae(["Escape"], u);
|
|
5019
5037
|
function u() {
|
|
5020
5038
|
var r;
|
|
5021
5039
|
const s = ((r = o.value) == null ? void 0 : r.querySelector('[data-shown="true"]')) !== null;
|
|
@@ -5124,7 +5142,7 @@ const No = {
|
|
|
5124
5142
|
}, Bi = ["data-inactive"], Ti = { class: "bs-form-container-header-wrapper" }, Ci = { class: "bs-form-container-header" }, Di = { class: "bs-form-container-title-wrapper" }, Oi = {
|
|
5125
5143
|
key: 0,
|
|
5126
5144
|
class: "bs-form-container-header-icon"
|
|
5127
|
-
}, xi = ["data-inactive"], Ai = { class: "bs-form-container-title-addon" }, zi = ["data-inactive"],
|
|
5145
|
+
}, xi = ["data-inactive"], Ai = { class: "bs-form-container-title-addon" }, zi = ["data-inactive"], Pi = ["data-open"], Ei = ["data-open"], Pr = {
|
|
5128
5146
|
__name: "BsFormContainer",
|
|
5129
5147
|
props: bn,
|
|
5130
5148
|
setup(e) {
|
|
@@ -5156,7 +5174,7 @@ const No = {
|
|
|
5156
5174
|
w("span", {
|
|
5157
5175
|
class: "bs-form-container-title",
|
|
5158
5176
|
"data-inactive": n.inactive
|
|
5159
|
-
},
|
|
5177
|
+
}, L(n.title), 9, xi)
|
|
5160
5178
|
]),
|
|
5161
5179
|
_: 1
|
|
5162
5180
|
}, 8, ["required", "disabled"]),
|
|
@@ -5169,7 +5187,7 @@ const No = {
|
|
|
5169
5187
|
class: "bs-form-container-subtitle",
|
|
5170
5188
|
"data-inactive": n.inactive
|
|
5171
5189
|
}, [
|
|
5172
|
-
w("span", null,
|
|
5190
|
+
w("span", null, L(n.subTitle), 1)
|
|
5173
5191
|
], 8, zi)) : x("", !0)
|
|
5174
5192
|
]),
|
|
5175
5193
|
w("div", {
|
|
@@ -5177,18 +5195,18 @@ const No = {
|
|
|
5177
5195
|
class: "bs-form-container-header-actions"
|
|
5178
5196
|
}, [
|
|
5179
5197
|
z(n.$slots, "header-actions")
|
|
5180
|
-
], 8,
|
|
5198
|
+
], 8, Pi)
|
|
5181
5199
|
]),
|
|
5182
5200
|
w("main", {
|
|
5183
5201
|
"data-open": n.expanded,
|
|
5184
5202
|
class: "bs-form-container-content"
|
|
5185
5203
|
}, [
|
|
5186
5204
|
z(n.$slots, "default")
|
|
5187
|
-
], 8,
|
|
5205
|
+
], 8, Ei)
|
|
5188
5206
|
], 8, Bi));
|
|
5189
5207
|
}
|
|
5190
5208
|
};
|
|
5191
|
-
function
|
|
5209
|
+
function Vt(e) {
|
|
5192
5210
|
const n = C({}), t = m(() => Wn(e.navData));
|
|
5193
5211
|
function a(c) {
|
|
5194
5212
|
t.value.forEach((p) => {
|
|
@@ -5229,7 +5247,7 @@ function Lt(e) {
|
|
|
5229
5247
|
rawNavData: t
|
|
5230
5248
|
};
|
|
5231
5249
|
}
|
|
5232
|
-
const
|
|
5250
|
+
const Vi = ["aria-current", "data-active", "href", "target"], Me = {
|
|
5233
5251
|
__name: "NavigationLink",
|
|
5234
5252
|
props: {
|
|
5235
5253
|
item: {
|
|
@@ -5243,7 +5261,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5243
5261
|
},
|
|
5244
5262
|
emits: ["nav-link-clicked"],
|
|
5245
5263
|
setup(e, { emit: n }) {
|
|
5246
|
-
const t = e, a = n, { isAbsoluteTo: o, isActivePath: i, getTo: u, getTarget: s } =
|
|
5264
|
+
const t = e, a = n, { isAbsoluteTo: o, isActivePath: i, getTo: u, getTarget: s } = Vt(t);
|
|
5247
5265
|
return (r, d) => {
|
|
5248
5266
|
const c = en("router-link");
|
|
5249
5267
|
return f(o)(e.item) ? (l(), h("a", {
|
|
@@ -5255,7 +5273,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5255
5273
|
onClick: d[0] || (d[0] = (p) => a("nav-link-clicked", p))
|
|
5256
5274
|
}, [
|
|
5257
5275
|
z(r.$slots, "default")
|
|
5258
|
-
], 8,
|
|
5276
|
+
], 8, Vi)) : (l(), D(c, {
|
|
5259
5277
|
key: 1,
|
|
5260
5278
|
"aria-current": f(i)(e.item) || void 0,
|
|
5261
5279
|
"data-active": f(i)(e.item),
|
|
@@ -5270,7 +5288,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5270
5288
|
}, 8, ["aria-current", "data-active", "to", "target"]));
|
|
5271
5289
|
};
|
|
5272
5290
|
}
|
|
5273
|
-
},
|
|
5291
|
+
}, 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 = {
|
|
5274
5292
|
key: 0,
|
|
5275
5293
|
class: "bs-horizontal-nav-mobile-end-items"
|
|
5276
5294
|
}, Ki = {
|
|
@@ -5282,7 +5300,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5282
5300
|
}, Gi = { key: 1 }, Yi = { key: 0 }, Xi = ["id", "aria-expanded", "aria-controls", "data-active", "data-expanded", "title", "onClick"], Zi = { key: 1 }, Qi = {
|
|
5283
5301
|
key: 1,
|
|
5284
5302
|
class: "bs-horizontal-nav-end-items"
|
|
5285
|
-
},
|
|
5303
|
+
}, Er = {
|
|
5286
5304
|
__name: "BsHorizontalNavigation",
|
|
5287
5305
|
props: hn,
|
|
5288
5306
|
emits: Object.keys(vn),
|
|
@@ -5294,7 +5312,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5294
5312
|
isActivePath: s,
|
|
5295
5313
|
isExpanded: r,
|
|
5296
5314
|
rawNavData: d
|
|
5297
|
-
} =
|
|
5315
|
+
} = Vt(t), c = St();
|
|
5298
5316
|
Fe("(max-width: 1165px)", (b) => {
|
|
5299
5317
|
p.value = b.matches;
|
|
5300
5318
|
});
|
|
@@ -5332,7 +5350,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5332
5350
|
b.ctrlKey || b.metaKey || $(M.id), a("nav-link-clicked", { ev: b, payload: M });
|
|
5333
5351
|
}
|
|
5334
5352
|
return (b, M) => {
|
|
5335
|
-
const
|
|
5353
|
+
const E = en("router-link");
|
|
5336
5354
|
return p.value ? (l(), h("nav", {
|
|
5337
5355
|
key: 0,
|
|
5338
5356
|
class: "bs-horizontal-nav-mobile",
|
|
@@ -5357,9 +5375,9 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5357
5375
|
key: 1,
|
|
5358
5376
|
class: "bs-horizontal-nav-mobile-toggle-title-icon"
|
|
5359
5377
|
})),
|
|
5360
|
-
w("span", null,
|
|
5378
|
+
w("span", null, L(b.mobileToggleText), 1)
|
|
5361
5379
|
]),
|
|
5362
|
-
R(f(
|
|
5380
|
+
R(f(Le), { class: "bs-horizontal-nav-mobile-toggle-caret" })
|
|
5363
5381
|
], 8, Mi)),
|
|
5364
5382
|
R(wt, { name: "bs-horizontal-nav-mobile" }, {
|
|
5365
5383
|
default: q(() => [
|
|
@@ -5386,18 +5404,18 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5386
5404
|
title: f(i)(B),
|
|
5387
5405
|
onClick: (I) => $(B.id)
|
|
5388
5406
|
}, [
|
|
5389
|
-
w("span", null,
|
|
5390
|
-
R(f(
|
|
5407
|
+
w("span", null, L(B.text), 1),
|
|
5408
|
+
R(f(Le), { class: "bs-horizontal-nav-mobile-nested-toggle-caret" })
|
|
5391
5409
|
], 8, ji),
|
|
5392
5410
|
w("ul", Fi, [
|
|
5393
5411
|
(l(!0), h(J, null, de(B.navItems, (I) => (l(), h("li", null, [
|
|
5394
5412
|
R(Me, {
|
|
5395
5413
|
item: I,
|
|
5396
5414
|
router: b.router,
|
|
5397
|
-
onNavLinkClicked: (
|
|
5415
|
+
onNavLinkClicked: (P) => a("nav-link-clicked", { ev: P, payload: I })
|
|
5398
5416
|
}, {
|
|
5399
5417
|
default: q(() => [
|
|
5400
|
-
_(
|
|
5418
|
+
_(L(I.text), 1)
|
|
5401
5419
|
]),
|
|
5402
5420
|
_: 2
|
|
5403
5421
|
}, 1032, ["item", "router", "onNavLinkClicked"])
|
|
@@ -5410,7 +5428,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5410
5428
|
onNavLinkClicked: (I) => a("nav-link-clicked", { ev: I, payload: B })
|
|
5411
5429
|
}, {
|
|
5412
5430
|
default: q(() => [
|
|
5413
|
-
_(
|
|
5431
|
+
_(L(B.text), 1)
|
|
5414
5432
|
]),
|
|
5415
5433
|
_: 2
|
|
5416
5434
|
}, 1032, ["item", "router", "onNavLinkClicked"])
|
|
@@ -5427,7 +5445,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5427
5445
|
]),
|
|
5428
5446
|
_: 3
|
|
5429
5447
|
})
|
|
5430
|
-
], 8,
|
|
5448
|
+
], 8, Li)) : (l(), h("div", Ki, [
|
|
5431
5449
|
w("nav", null, [
|
|
5432
5450
|
!b.title && b.titleIcon ? (l(), h(J, { key: 0 }, [
|
|
5433
5451
|
typeof b.titleIcon == "string" ? (l(), D(f(ce), {
|
|
@@ -5441,7 +5459,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5441
5459
|
], 64)) : x("", !0),
|
|
5442
5460
|
w("ul", null, [
|
|
5443
5461
|
b.title ? (l(), h("li", Hi, [
|
|
5444
|
-
b.titleUrl ? (l(), D(
|
|
5462
|
+
b.titleUrl ? (l(), D(E, {
|
|
5445
5463
|
key: 0,
|
|
5446
5464
|
"aria-current": f(s)({ to: b.titleUrl }) || void 0,
|
|
5447
5465
|
to: b.titleUrl,
|
|
@@ -5449,10 +5467,10 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5449
5467
|
onClick: M[1] || (M[1] = (B) => a("nav-link-clicked", { ev: B, payload: { resource: { url: b.titleUrl }, text: b.title } }))
|
|
5450
5468
|
}, {
|
|
5451
5469
|
default: q(() => [
|
|
5452
|
-
w("span", null,
|
|
5470
|
+
w("span", null, L(b.title), 1)
|
|
5453
5471
|
]),
|
|
5454
5472
|
_: 1
|
|
5455
|
-
}, 8, ["aria-current", "to", "data-active"])) : (l(), h("span", Gi,
|
|
5473
|
+
}, 8, ["aria-current", "to", "data-active"])) : (l(), h("span", Gi, L(b.title), 1))
|
|
5456
5474
|
])) : x("", !0),
|
|
5457
5475
|
(l(!0), h(J, null, de(f(d), (B, g) => {
|
|
5458
5476
|
var I;
|
|
@@ -5469,10 +5487,10 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5469
5487
|
"data-active": k(B),
|
|
5470
5488
|
"data-expanded": f(r)(B),
|
|
5471
5489
|
title: f(i)(B),
|
|
5472
|
-
onClick: (
|
|
5490
|
+
onClick: (P) => $(B.id)
|
|
5473
5491
|
}, [
|
|
5474
|
-
w("span", null,
|
|
5475
|
-
R(f(
|
|
5492
|
+
w("span", null, L(B.text), 1),
|
|
5493
|
+
R(f(Le), { class: "bs-horizontal-nav-nested-toggle-caret" })
|
|
5476
5494
|
], 8, Xi),
|
|
5477
5495
|
R(lt, {
|
|
5478
5496
|
id: `${B.id}-nested-section`,
|
|
@@ -5482,20 +5500,20 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5482
5500
|
shown: f(r)(B),
|
|
5483
5501
|
"use-mobile-style": !1,
|
|
5484
5502
|
width: "content",
|
|
5485
|
-
onClose: (
|
|
5503
|
+
onClose: (P) => f(o)[B.id] = !0
|
|
5486
5504
|
}, {
|
|
5487
5505
|
default: q(() => [
|
|
5488
5506
|
w("ul", null, [
|
|
5489
|
-
(l(!0), h(J, null, de(B.navItems, (
|
|
5490
|
-
key:
|
|
5507
|
+
(l(!0), h(J, null, de(B.navItems, (P) => (l(), h("li", {
|
|
5508
|
+
key: P.id
|
|
5491
5509
|
}, [
|
|
5492
5510
|
R(Me, {
|
|
5493
|
-
item:
|
|
5511
|
+
item: P,
|
|
5494
5512
|
router: b.router,
|
|
5495
|
-
onNavLinkClicked: (N) => S(N,
|
|
5513
|
+
onNavLinkClicked: (N) => S(N, P)
|
|
5496
5514
|
}, {
|
|
5497
5515
|
default: q(() => [
|
|
5498
|
-
_(
|
|
5516
|
+
_(L(P.text), 1)
|
|
5499
5517
|
]),
|
|
5500
5518
|
_: 2
|
|
5501
5519
|
}, 1032, ["item", "router", "onNavLinkClicked"])
|
|
@@ -5508,10 +5526,10 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5508
5526
|
R(Me, {
|
|
5509
5527
|
item: B,
|
|
5510
5528
|
router: b.router,
|
|
5511
|
-
onNavLinkClicked: (
|
|
5529
|
+
onNavLinkClicked: (P) => a("nav-link-clicked", { ev: P, payload: B })
|
|
5512
5530
|
}, {
|
|
5513
5531
|
default: q(() => [
|
|
5514
|
-
w("span", null,
|
|
5532
|
+
w("span", null, L(B.text), 1)
|
|
5515
5533
|
]),
|
|
5516
5534
|
_: 2
|
|
5517
5535
|
}, 1032, ["item", "router", "onNavLinkClicked"])
|
|
@@ -5526,7 +5544,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5526
5544
|
]));
|
|
5527
5545
|
};
|
|
5528
5546
|
}
|
|
5529
|
-
}, Ji = ["view-box"], _i = ["id"], el = ["offset", "stop-color"],
|
|
5547
|
+
}, Ji = ["view-box"], _i = ["id"], el = ["offset", "stop-color"], Vr = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5530
5548
|
__name: "BsIconGradientWrapper",
|
|
5531
5549
|
setup(e) {
|
|
5532
5550
|
const n = C(null), t = C(null), a = [
|
|
@@ -5568,11 +5586,11 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5568
5586
|
], 8, Ji))
|
|
5569
5587
|
], 64));
|
|
5570
5588
|
}
|
|
5571
|
-
}),
|
|
5589
|
+
}), En = Symbol("InlineTabs"), Lr = {
|
|
5572
5590
|
__name: "BsInlineTab",
|
|
5573
5591
|
props: Ze,
|
|
5574
5592
|
setup(e) {
|
|
5575
|
-
const n = e, t = ue(
|
|
5593
|
+
const n = e, t = ue(En, 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(() => ({
|
|
5576
5594
|
...n,
|
|
5577
5595
|
disabled: o.value
|
|
5578
5596
|
})), { rootTag: s, attrsToBind: r, btnRef: d } = Ke(u, Se(), "button");
|
|
@@ -5609,7 +5627,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5609
5627
|
emits: /* @__PURE__ */ qt(Object.keys(mn), ["update:modelValue"]),
|
|
5610
5628
|
setup(e) {
|
|
5611
5629
|
const n = e, t = Kn(e, "modelValue");
|
|
5612
|
-
me(
|
|
5630
|
+
me(En, {
|
|
5613
5631
|
props: n,
|
|
5614
5632
|
model: t,
|
|
5615
5633
|
setModel: u,
|
|
@@ -5701,7 +5719,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5701
5719
|
}, {
|
|
5702
5720
|
default: q(() => [
|
|
5703
5721
|
z(c.$slots, "label", {}, () => [
|
|
5704
|
-
_(
|
|
5722
|
+
_(L(e.label), 1)
|
|
5705
5723
|
])
|
|
5706
5724
|
]),
|
|
5707
5725
|
_: 3
|
|
@@ -5864,12 +5882,12 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5864
5882
|
$,
|
|
5865
5883
|
O,
|
|
5866
5884
|
k
|
|
5867
|
-
] = re(4), y = C(!1), S = C(""), b = C(""), M = C(!1),
|
|
5885
|
+
] = re(4), y = C(!1), S = C(""), b = C(""), M = C(!1), E = C(!1), B = C(!0);
|
|
5868
5886
|
n({
|
|
5869
5887
|
validationErr: M,
|
|
5870
5888
|
validationErrMsg: b
|
|
5871
5889
|
});
|
|
5872
|
-
const g = m(() => S.value ? `+${d.value}${S.value}` : ""), I = m(() => `Country code: ${d.value}. Click to change.`),
|
|
5890
|
+
const g = m(() => S.value ? `+${d.value}${S.value}` : ""), I = m(() => `Country code: ${d.value}. Click to change.`), P = m(() => B.value ? a.errorMsg || b.value : ""), N = m(() => a.error || M.value), G = m(() => a.hint || N.value && P.value), te = m(() => B.value && N.value);
|
|
5873
5891
|
Z(g, (Y) => {
|
|
5874
5892
|
o("update:modelValue", Y), ie(Y);
|
|
5875
5893
|
}), Z(() => a.modelValue, he), Oe(), ee(() => y.value = !0);
|
|
@@ -5878,11 +5896,11 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5878
5896
|
}
|
|
5879
5897
|
function $e() {
|
|
5880
5898
|
var Y;
|
|
5881
|
-
|
|
5899
|
+
E.value && (E.value = !1, (Y = r.value) == null || Y.focus());
|
|
5882
5900
|
}
|
|
5883
5901
|
function ge(Y) {
|
|
5884
5902
|
var oe;
|
|
5885
|
-
d.value = Y,
|
|
5903
|
+
d.value = Y, E.value = !1, (oe = r.value) == null || oe.focus(), K(Y);
|
|
5886
5904
|
}
|
|
5887
5905
|
function Ie() {
|
|
5888
5906
|
a.deferValidation && (B.value = !0), o("input-blur");
|
|
@@ -5890,7 +5908,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5890
5908
|
function we(Y) {
|
|
5891
5909
|
S.value = Y.target.value, a.deferValidation && (B.value = !1);
|
|
5892
5910
|
}
|
|
5893
|
-
function
|
|
5911
|
+
function Pe(Y) {
|
|
5894
5912
|
var oe, le;
|
|
5895
5913
|
!((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();
|
|
5896
5914
|
}
|
|
@@ -5900,9 +5918,9 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5900
5918
|
function U() {
|
|
5901
5919
|
var oe, le;
|
|
5902
5920
|
let Y = Ft(a.modelValue);
|
|
5903
|
-
Y.valid || Y.countryCode && ((le = (oe = a.modelValue) == null ? void 0 : oe.startsWith) != null && le.call(oe, "+")) ? (d.value = Y.countryCode, S.value = Y.number.significant) : S.value = a.modelValue, c.value = dt.data.allCountries.map((
|
|
5904
|
-
...
|
|
5905
|
-
isSelected: d.value ===
|
|
5921
|
+
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((Ee) => ({
|
|
5922
|
+
...Ee,
|
|
5923
|
+
isSelected: d.value === Ee
|
|
5906
5924
|
}));
|
|
5907
5925
|
}
|
|
5908
5926
|
function K(Y) {
|
|
@@ -5922,7 +5940,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5922
5940
|
class: ve({ "visually-hidden": e.hideLabel })
|
|
5923
5941
|
}, {
|
|
5924
5942
|
default: q(() => [
|
|
5925
|
-
_(
|
|
5943
|
+
_(L(e.label), 1)
|
|
5926
5944
|
]),
|
|
5927
5945
|
_: 1
|
|
5928
5946
|
}, 8, ["for", "required", "disabled", "class"]),
|
|
@@ -5940,15 +5958,15 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5940
5958
|
ref_key: "countryCodesToggle",
|
|
5941
5959
|
ref: r,
|
|
5942
5960
|
"aria-controls": f($),
|
|
5943
|
-
"aria-expanded":
|
|
5961
|
+
"aria-expanded": E.value,
|
|
5944
5962
|
"aria-haspopup": "listbox",
|
|
5945
5963
|
"aria-label": I.value,
|
|
5946
5964
|
disabled: e.disabled,
|
|
5947
5965
|
type: "button",
|
|
5948
|
-
onClick: oe[0] || (oe[0] = (
|
|
5966
|
+
onClick: oe[0] || (oe[0] = (Ee) => E.value = !E.value)
|
|
5949
5967
|
}, [
|
|
5950
|
-
w("span", null,
|
|
5951
|
-
w("span", null, "+" +
|
|
5968
|
+
w("span", null, L((le = p.value) == null ? void 0 : le.flag), 1),
|
|
5969
|
+
w("span", null, "+" + L(d.value), 1),
|
|
5952
5970
|
e.disabled ? x("", !0) : (l(), D(f(sn), {
|
|
5953
5971
|
key: 0,
|
|
5954
5972
|
size: "sm"
|
|
@@ -5965,7 +5983,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5965
5983
|
}, f(s), {
|
|
5966
5984
|
onInput: we,
|
|
5967
5985
|
onFocusout: Ie,
|
|
5968
|
-
onKeydown:
|
|
5986
|
+
onKeydown: Pe
|
|
5969
5987
|
}), null, 16, ["id", "disabled", "hint-id", "placeholder", "value"])
|
|
5970
5988
|
];
|
|
5971
5989
|
}),
|
|
@@ -5973,35 +5991,35 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
5973
5991
|
}, 8, ["disabled", "error"]),
|
|
5974
5992
|
fe(R(ze, {
|
|
5975
5993
|
error: N.value,
|
|
5976
|
-
"error-msg":
|
|
5994
|
+
"error-msg": P.value,
|
|
5977
5995
|
hint: e.hint,
|
|
5978
5996
|
"hint-id": f(O)
|
|
5979
5997
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
5980
5998
|
[be, G.value]
|
|
5981
5999
|
]),
|
|
5982
6000
|
y.value ? (l(), h("div", nl, [
|
|
5983
|
-
R(
|
|
6001
|
+
R(Pn, {
|
|
5984
6002
|
"anchor-id": f(v),
|
|
5985
6003
|
"helper-text": "Country Code",
|
|
5986
6004
|
label: "Country Code",
|
|
5987
6005
|
"model-value": d.value,
|
|
5988
6006
|
"options-id": f($),
|
|
5989
6007
|
preloaded: "",
|
|
5990
|
-
shown:
|
|
6008
|
+
shown: E.value,
|
|
5991
6009
|
width: "content",
|
|
5992
6010
|
onClose: $e,
|
|
5993
6011
|
"onUpdate:modelValue": ge
|
|
5994
6012
|
}, {
|
|
5995
6013
|
default: q(() => [
|
|
5996
|
-
y.value ? (l(!0), h(J, { key: 0 }, de(c.value, (le) => (l(), D(
|
|
6014
|
+
y.value ? (l(!0), h(J, { key: 0 }, de(c.value, (le) => (l(), D(Et, {
|
|
5997
6015
|
"aria-label": le.value,
|
|
5998
6016
|
key: le.value,
|
|
5999
6017
|
value: `${le.value}`,
|
|
6000
6018
|
variant: "2-col"
|
|
6001
6019
|
}, {
|
|
6002
6020
|
default: q(() => [
|
|
6003
|
-
w("span", al,
|
|
6004
|
-
w("span", ol,
|
|
6021
|
+
w("span", al, L(le == null ? void 0 : le.flag), 1),
|
|
6022
|
+
w("span", ol, L(le.label), 1)
|
|
6005
6023
|
]),
|
|
6006
6024
|
_: 2
|
|
6007
6025
|
}, 1032, ["aria-label", "value"]))), 128)) : x("", !0)
|
|
@@ -6038,7 +6056,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6038
6056
|
viewBox: "0 0 100 100",
|
|
6039
6057
|
xmlns: "http://www.w3.org/2000/svg"
|
|
6040
6058
|
}, [
|
|
6041
|
-
w("title", null,
|
|
6059
|
+
w("title", null, L(e.label), 1),
|
|
6042
6060
|
w("circle", {
|
|
6043
6061
|
cx: "50",
|
|
6044
6062
|
cy: "50",
|
|
@@ -6157,20 +6175,20 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6157
6175
|
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(() => {
|
|
6158
6176
|
if (o.value) {
|
|
6159
6177
|
let I = t.options;
|
|
6160
|
-
const
|
|
6161
|
-
return t.inputValue.length >= t.characterThreshold && (I = y(I,
|
|
6178
|
+
const P = t.inputValue.toLowerCase(), N = t.filterType === "includes" ? "includes" : "startsWith";
|
|
6179
|
+
return t.inputValue.length >= t.characterThreshold && (I = y(I, P, N), I = I.slice(0, t.maxOptions), I = S(I, P, N), r = I), I;
|
|
6162
6180
|
} else
|
|
6163
6181
|
return r;
|
|
6164
6182
|
});
|
|
6165
|
-
function y(I,
|
|
6166
|
-
return t.internalFiltering ? I.filter((G) => G.label.toLowerCase()[N](
|
|
6183
|
+
function y(I, P, N) {
|
|
6184
|
+
return t.internalFiltering ? I.filter((G) => G.label.toLowerCase()[N](P)) : I;
|
|
6167
6185
|
}
|
|
6168
|
-
function S(I,
|
|
6186
|
+
function S(I, P, N) {
|
|
6169
6187
|
return I.map((G) => {
|
|
6170
6188
|
let te = G.label;
|
|
6171
|
-
if (
|
|
6172
|
-
const he = `<span style="color: var(--bs-blue-base)">${
|
|
6173
|
-
N === "includes" ? te = G.label.replaceAll(
|
|
6189
|
+
if (P !== "") {
|
|
6190
|
+
const he = `<span style="color: var(--bs-blue-base)">${P}</span>`;
|
|
6191
|
+
N === "includes" ? te = G.label.replaceAll(P, he) : te = G.label.replace(P, he);
|
|
6174
6192
|
}
|
|
6175
6193
|
return { ...G, labelHtml: te };
|
|
6176
6194
|
});
|
|
@@ -6181,20 +6199,20 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6181
6199
|
function M() {
|
|
6182
6200
|
a("update:inputValue", ""), t.multiselect || a("update:optionsValue", ""), document.getElementById(v.value).focus();
|
|
6183
6201
|
}
|
|
6184
|
-
function
|
|
6202
|
+
function E(I) {
|
|
6185
6203
|
i.value = !0;
|
|
6186
|
-
const
|
|
6187
|
-
a("update:inputValue",
|
|
6204
|
+
const P = k.value.find((N) => N.value === I);
|
|
6205
|
+
a("update:inputValue", P.label), a("update:optionsValue", I);
|
|
6188
6206
|
}
|
|
6189
6207
|
function B(I) {
|
|
6190
|
-
const
|
|
6191
|
-
a("update:optionsValue",
|
|
6208
|
+
const P = [...O.value, I];
|
|
6209
|
+
a("update:optionsValue", P);
|
|
6192
6210
|
}
|
|
6193
6211
|
function g(I) {
|
|
6194
|
-
const
|
|
6195
|
-
a("update:optionsValue",
|
|
6212
|
+
const P = O.value.filter((N) => N !== I);
|
|
6213
|
+
a("update:optionsValue", P);
|
|
6196
6214
|
}
|
|
6197
|
-
return (I,
|
|
6215
|
+
return (I, P) => (l(), h(J, null, [
|
|
6198
6216
|
e.label || I.$slots.label ? (l(), D(pe, {
|
|
6199
6217
|
key: 0,
|
|
6200
6218
|
for: v.value,
|
|
@@ -6203,7 +6221,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6203
6221
|
}, {
|
|
6204
6222
|
default: q(() => [
|
|
6205
6223
|
z(I.$slots, "label", {}, () => [
|
|
6206
|
-
_(
|
|
6224
|
+
_(L(e.label), 1)
|
|
6207
6225
|
])
|
|
6208
6226
|
]),
|
|
6209
6227
|
_: 3
|
|
@@ -6229,7 +6247,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6229
6247
|
}, I.$attrs, {
|
|
6230
6248
|
onClear: M,
|
|
6231
6249
|
onFocusin: b,
|
|
6232
|
-
"onUpdate:modelValue":
|
|
6250
|
+
"onUpdate:modelValue": P[0] || (P[0] = (N) => a("update:inputValue", N))
|
|
6233
6251
|
}), null, 16, ["aria-controls", "aria-describedby", "aria-expanded", "disabled", "error", "hide-clear", "hide-search-icon", "input-id", "placeholder", "value"])
|
|
6234
6252
|
], 8, rl),
|
|
6235
6253
|
R(lt, {
|
|
@@ -6239,7 +6257,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6239
6257
|
shown: o.value,
|
|
6240
6258
|
"use-mobile-style": !1,
|
|
6241
6259
|
width: "anchor",
|
|
6242
|
-
onClose:
|
|
6260
|
+
onClose: P[2] || (P[2] = (N) => o.value = !1)
|
|
6243
6261
|
}, {
|
|
6244
6262
|
default: q(() => [
|
|
6245
6263
|
e.multiselect ? (l(), D(xn, {
|
|
@@ -6265,7 +6283,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6265
6283
|
} : {
|
|
6266
6284
|
name: "no-options",
|
|
6267
6285
|
fn: q(() => [
|
|
6268
|
-
|
|
6286
|
+
P[3] || (P[3] = _("No results found"))
|
|
6269
6287
|
]),
|
|
6270
6288
|
key: "1"
|
|
6271
6289
|
}
|
|
@@ -6275,8 +6293,8 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6275
6293
|
"model-value": O.value,
|
|
6276
6294
|
"options-id": $.value,
|
|
6277
6295
|
shown: o.value,
|
|
6278
|
-
"onUpdate:modelValue":
|
|
6279
|
-
onClose:
|
|
6296
|
+
"onUpdate:modelValue": E,
|
|
6297
|
+
onClose: P[1] || (P[1] = (N) => o.value = !1)
|
|
6280
6298
|
}, {
|
|
6281
6299
|
default: q(() => [
|
|
6282
6300
|
R(_e, {
|
|
@@ -6294,7 +6312,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6294
6312
|
} : {
|
|
6295
6313
|
name: "no-options",
|
|
6296
6314
|
fn: q(() => [
|
|
6297
|
-
|
|
6315
|
+
P[4] || (P[4] = _("No results found"))
|
|
6298
6316
|
]),
|
|
6299
6317
|
key: "1"
|
|
6300
6318
|
}
|
|
@@ -6418,7 +6436,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6418
6436
|
const a = n, o = C(null);
|
|
6419
6437
|
let i = !1;
|
|
6420
6438
|
const { transition: u } = We(t), [s] = re(), [r] = re(), d = et();
|
|
6421
|
-
|
|
6439
|
+
Pt([o], () => k("backdrop-clicked-close")), Ae(["Escape"], () => k("escape-pressed-close"));
|
|
6422
6440
|
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);
|
|
6423
6441
|
function k(y, S = !0) {
|
|
6424
6442
|
var M;
|
|
@@ -6468,7 +6486,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6468
6486
|
key: 0,
|
|
6469
6487
|
class: "bs-modal-title",
|
|
6470
6488
|
id: f(s)
|
|
6471
|
-
},
|
|
6489
|
+
}, L(y.title), 9, yl)) : x("", !0)
|
|
6472
6490
|
]) : x("", !0),
|
|
6473
6491
|
y.closeButton ? (l(), h("button", {
|
|
6474
6492
|
key: 1,
|
|
@@ -6483,7 +6501,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6483
6501
|
]),
|
|
6484
6502
|
p.value ? (l(), h("div", gl, [
|
|
6485
6503
|
z(y.$slots, "subtitle", {}, () => [
|
|
6486
|
-
w("span", { id: f(r) },
|
|
6504
|
+
w("span", { id: f(r) }, L(y.subtitle), 9, wl)
|
|
6487
6505
|
])
|
|
6488
6506
|
])) : x("", !0),
|
|
6489
6507
|
v.value ? (l(), h("div", kl, [
|
|
@@ -6521,7 +6539,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6521
6539
|
}, Tl = ["aria-label", "title", "disabled"], Cl = { key: 0 }, Dl = ["aria-label", "title", "disabled"], Ol = { key: 0 }, xl = {
|
|
6522
6540
|
key: 1,
|
|
6523
6541
|
class: "bs-pagination-page-numbers"
|
|
6524
|
-
}, Al = ["title", "disabled", "data-selected", "onClick"], zl = { key: 2 },
|
|
6542
|
+
}, Al = ["title", "disabled", "data-selected", "onClick"], zl = { key: 2 }, Pl = { key: 3 }, El = { class: "bs-pagination-results-numbers" }, Vl = ["data-selected", "disabled", "onClick"], Ll = {
|
|
6525
6543
|
key: 5,
|
|
6526
6544
|
class: "bs-pagination-carets"
|
|
6527
6545
|
}, Ml = ["aria-label", "title", "disabled"], Nl = { key: 0 }, ql = ["aria-label", "title", "disabled"], Rl = { key: 0 }, Ur = {
|
|
@@ -6648,8 +6666,8 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6648
6666
|
const y = [1], S = (t.pageRange - 1) / 2;
|
|
6649
6667
|
let b = i.value - S, M = i.value + S;
|
|
6650
6668
|
b < 1 && (M += 1 - b, b = 1), M > t.pageCount && (b -= M - t.pageCount, M = t.pageCount), b = Math.max(b, 2), M = Math.min(M, t.pageCount - 1), b > 2 && y.push(t.breakText);
|
|
6651
|
-
for (let
|
|
6652
|
-
y.push(
|
|
6669
|
+
for (let E = b; E <= M; E++)
|
|
6670
|
+
y.push(E);
|
|
6653
6671
|
return M < t.pageCount - 1 && y.push(t.breakText), y.push(t.pageCount), y;
|
|
6654
6672
|
}), $ = m(() => `${t.centerLabel ?? "Page"} ${i.value} of ${u.value}`), O = m(() => {
|
|
6655
6673
|
const y = (i.value - 1) * t.itemsPerGroup + 1, S = Math.min(y - 1 + t.itemsPerGroup, t.itemsCount);
|
|
@@ -6672,7 +6690,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6672
6690
|
onClick: r
|
|
6673
6691
|
}, [
|
|
6674
6692
|
R(f(Zn)),
|
|
6675
|
-
e.firstPageText ? (l(), h("span", Cl,
|
|
6693
|
+
e.firstPageText ? (l(), h("span", Cl, L(e.firstPageText), 1)) : x("", !0)
|
|
6676
6694
|
], 10, Tl)) : x("", !0),
|
|
6677
6695
|
w("button", {
|
|
6678
6696
|
type: "button",
|
|
@@ -6683,7 +6701,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6683
6701
|
onClick: d
|
|
6684
6702
|
}, [
|
|
6685
6703
|
R(f(nt)),
|
|
6686
|
-
e.prevPageText ? (l(), h("span", Ol,
|
|
6704
|
+
e.prevPageText ? (l(), h("span", Ol, L(e.prevPageText), 1)) : x("", !0)
|
|
6687
6705
|
], 10, Dl)
|
|
6688
6706
|
])) : x("", !0),
|
|
6689
6707
|
e.variant === "base" && e.centerDisplay === "numbers" ? (l(), h("div", xl, [
|
|
@@ -6694,23 +6712,23 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6694
6712
|
disabled: i.value === b || e.breakText === b,
|
|
6695
6713
|
"data-selected": b === i.value,
|
|
6696
6714
|
onClick: (M) => i.value = b
|
|
6697
|
-
},
|
|
6715
|
+
}, L(b), 9, Al))), 128))
|
|
6698
6716
|
])) : x("", !0),
|
|
6699
|
-
t.variant === "base" && t.centerDisplay === "text" ? (l(), h("span", zl,
|
|
6700
|
-
t.variant === "group" ? (l(), h("span",
|
|
6717
|
+
t.variant === "base" && t.centerDisplay === "text" ? (l(), h("span", zl, L($.value), 1)) : x("", !0),
|
|
6718
|
+
t.variant === "group" ? (l(), h("span", Pl, L(O.value), 1)) : x("", !0),
|
|
6701
6719
|
t.variant === "results" ? (l(), h(J, { key: 4 }, [
|
|
6702
6720
|
S[0] || (S[0] = w("span", null, "Results Per Page:", -1)),
|
|
6703
|
-
w("div",
|
|
6721
|
+
w("div", El, [
|
|
6704
6722
|
(l(!0), h(J, null, de(k.value, (b) => (l(), h("button", {
|
|
6705
6723
|
type: "button",
|
|
6706
6724
|
key: `results-${b}`,
|
|
6707
6725
|
"data-selected": b === i.value,
|
|
6708
6726
|
disabled: i.value === b || e.breakText === b,
|
|
6709
6727
|
onClick: (M) => i.value = b
|
|
6710
|
-
},
|
|
6728
|
+
}, L(b), 9, Vl))), 128))
|
|
6711
6729
|
])
|
|
6712
6730
|
], 64)) : x("", !0),
|
|
6713
|
-
e.variant === "base" || e.variant === "group" ? (l(), h("div",
|
|
6731
|
+
e.variant === "base" || e.variant === "group" ? (l(), h("div", Ll, [
|
|
6714
6732
|
w("button", {
|
|
6715
6733
|
type: "button",
|
|
6716
6734
|
class: ve(e.nextPageText ? "bs-pagination-word-caret" : void 0),
|
|
@@ -6719,7 +6737,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6719
6737
|
disabled: i.value === u.value,
|
|
6720
6738
|
onClick: c
|
|
6721
6739
|
}, [
|
|
6722
|
-
e.nextPageText ? (l(), h("span", Nl,
|
|
6740
|
+
e.nextPageText ? (l(), h("span", Nl, L(e.nextPageText), 1)) : x("", !0),
|
|
6723
6741
|
R(f(at))
|
|
6724
6742
|
], 10, Ml),
|
|
6725
6743
|
e.showFirstLastButtons ? (l(), h("button", {
|
|
@@ -6731,7 +6749,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6731
6749
|
disabled: i.value === u.value,
|
|
6732
6750
|
onClick: p
|
|
6733
6751
|
}, [
|
|
6734
|
-
e.lastPageText ? (l(), h("span", Rl,
|
|
6752
|
+
e.lastPageText ? (l(), h("span", Rl, L(e.lastPageText), 1)) : x("", !0),
|
|
6735
6753
|
R(f(Qn))
|
|
6736
6754
|
], 10, ql)) : x("", !0)
|
|
6737
6755
|
])) : x("", !0)
|
|
@@ -6832,13 +6850,13 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6832
6850
|
class: "bs-icon"
|
|
6833
6851
|
}))
|
|
6834
6852
|
], 64)) : x("", !0),
|
|
6835
|
-
_(" " +
|
|
6853
|
+
_(" " + L(e.action), 1)
|
|
6836
6854
|
])
|
|
6837
6855
|
])) : x("", !0),
|
|
6838
|
-
w("span", Ul,
|
|
6839
|
-
e.company ? (l(), h("span", Wl,
|
|
6840
|
-
e.jobTitle ? (l(), h("span", Kl,
|
|
6841
|
-
e.email ? (l(), h("span", Hl,
|
|
6856
|
+
w("span", Ul, L(e.profileName), 1),
|
|
6857
|
+
e.company ? (l(), h("span", Wl, L(e.company), 1)) : x("", !0),
|
|
6858
|
+
e.jobTitle ? (l(), h("span", Kl, L(e.jobTitle), 1)) : x("", !0),
|
|
6859
|
+
e.email ? (l(), h("span", Hl, L(e.email), 1)) : x("", !0),
|
|
6842
6860
|
e.miscMeta || o.$slots.misc ? (l(), h("span", Gl, [
|
|
6843
6861
|
z(o.$slots, "misc", {}, () => [
|
|
6844
6862
|
e.miscMetaIcon ? (l(), h(J, { key: 0 }, [
|
|
@@ -6851,7 +6869,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6851
6869
|
class: "bs-icon"
|
|
6852
6870
|
}))
|
|
6853
6871
|
], 64)) : x("", !0),
|
|
6854
|
-
_(" " +
|
|
6872
|
+
_(" " + L(e.miscMeta), 1)
|
|
6855
6873
|
])
|
|
6856
6874
|
])) : x("", !0)
|
|
6857
6875
|
]));
|
|
@@ -6903,7 +6921,7 @@ const Li = ["aria-current", "data-active", "href", "target"], Me = {
|
|
|
6903
6921
|
}, 16, ["data-layout", "onClick"]));
|
|
6904
6922
|
}
|
|
6905
6923
|
});
|
|
6906
|
-
function
|
|
6924
|
+
function Vn(e) {
|
|
6907
6925
|
const n = m(() => {
|
|
6908
6926
|
var o;
|
|
6909
6927
|
switch (e.currentStatus) {
|
|
@@ -6956,7 +6974,7 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
6956
6974
|
}
|
|
6957
6975
|
},
|
|
6958
6976
|
setup(e) {
|
|
6959
|
-
const n = e, { progressStep: t, progressText: a, getStatus: o } =
|
|
6977
|
+
const n = e, { progressStep: t, progressText: a, getStatus: o } = Vn(n);
|
|
6960
6978
|
return (i, u) => (l(), h("div", {
|
|
6961
6979
|
"aria-valuemax": e.steps.length,
|
|
6962
6980
|
"aria-valuenow": f(t),
|
|
@@ -6972,7 +6990,7 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
6972
6990
|
key: s.id || s.label,
|
|
6973
6991
|
role: "status"
|
|
6974
6992
|
}, [
|
|
6975
|
-
w("span", null,
|
|
6993
|
+
w("span", null, L(s.label || s) + " : " + L(f(o)(s.status, r) || "not started"), 1)
|
|
6976
6994
|
], 8, Zl))), 128))
|
|
6977
6995
|
], 8, Xl));
|
|
6978
6996
|
}
|
|
@@ -7047,7 +7065,7 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7047
7065
|
}, {
|
|
7048
7066
|
default: q(() => [
|
|
7049
7067
|
z(r.$slots, "label", {}, () => [
|
|
7050
|
-
_(
|
|
7068
|
+
_(L(e.label), 1)
|
|
7051
7069
|
])
|
|
7052
7070
|
]),
|
|
7053
7071
|
_: 3
|
|
@@ -7139,7 +7157,7 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7139
7157
|
}, {
|
|
7140
7158
|
default: q(() => [
|
|
7141
7159
|
z(c.$slots, "label", {}, () => [
|
|
7142
|
-
_(
|
|
7160
|
+
_(L(e.label), 1)
|
|
7143
7161
|
])
|
|
7144
7162
|
]),
|
|
7145
7163
|
_: 3
|
|
@@ -7158,13 +7176,13 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7158
7176
|
selected: !d.value,
|
|
7159
7177
|
value: "",
|
|
7160
7178
|
disabled: !!d.value
|
|
7161
|
-
},
|
|
7179
|
+
}, L(e.disabled ? "" : e.placeholder), 9, ts),
|
|
7162
7180
|
(l(!0), h(J, null, de(e.data, (v) => (l(), h("option", {
|
|
7163
7181
|
key: v.value,
|
|
7164
7182
|
disabled: v.disabled,
|
|
7165
7183
|
selected: d.value === v.value,
|
|
7166
7184
|
value: v.value
|
|
7167
|
-
},
|
|
7185
|
+
}, L(v.label), 9, ns))), 128))
|
|
7168
7186
|
]),
|
|
7169
7187
|
_: 1
|
|
7170
7188
|
}, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
|
|
@@ -7278,7 +7296,7 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7278
7296
|
}, {
|
|
7279
7297
|
default: q(() => [
|
|
7280
7298
|
z(v.$slots, "label", {}, () => [
|
|
7281
|
-
_(
|
|
7299
|
+
_(L(e.label), 1)
|
|
7282
7300
|
])
|
|
7283
7301
|
]),
|
|
7284
7302
|
_: 3
|
|
@@ -7328,8 +7346,8 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7328
7346
|
}, v.$attrs, {
|
|
7329
7347
|
onClick: $[0] || ($[0] = Ce((O) => s.value = !s.value, ["prevent"]))
|
|
7330
7348
|
}), [
|
|
7331
|
-
w("span", null,
|
|
7332
|
-
e.disabled ? x("", !0) : (l(), D(f(
|
|
7349
|
+
w("span", null, L(c.value), 1),
|
|
7350
|
+
e.disabled ? x("", !0) : (l(), D(f(Le), {
|
|
7333
7351
|
key: 0,
|
|
7334
7352
|
size: "md"
|
|
7335
7353
|
}))
|
|
@@ -7396,7 +7414,7 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7396
7414
|
}, {
|
|
7397
7415
|
default: q(() => [
|
|
7398
7416
|
z(d.$slots, "label", {}, () => [
|
|
7399
|
-
_(
|
|
7417
|
+
_(L(e.label), 1)
|
|
7400
7418
|
])
|
|
7401
7419
|
]),
|
|
7402
7420
|
_: 3
|
|
@@ -7476,8 +7494,8 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7476
7494
|
emits: ["tabChange", "update:modelValue"],
|
|
7477
7495
|
setup(e, { emit: n }) {
|
|
7478
7496
|
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);
|
|
7479
|
-
let
|
|
7480
|
-
const B = m(() => t.activeTabId ? $.value.findIndex((A) => A.id === t.activeTabId) : 0), g = m(() => u.value.some((A) => A.id === t.activeTabId)), I = m(() => `${M.value}-options`),
|
|
7497
|
+
let E;
|
|
7498
|
+
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`), P = m(() => `${M.value}-toggle`), N = m(() => {
|
|
7481
7499
|
var A;
|
|
7482
7500
|
return g.value ? (A = $.value[B.value]) == null ? void 0 : A.textContent : "More";
|
|
7483
7501
|
}), G = m(() => g.value ? p.value[B.value] - p.value[B.value - 1] + fs + ut : ps + ut);
|
|
@@ -7496,16 +7514,16 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7496
7514
|
}
|
|
7497
7515
|
j.dataset.hidden = "false", j.setAttribute("tabindex", "0");
|
|
7498
7516
|
}
|
|
7499
|
-
r.value = A, u.value = Be, o.value || Re(() => o.value = !0),
|
|
7517
|
+
r.value = A, u.value = Be, o.value || Re(() => o.value = !0), E = setTimeout(() => {
|
|
7500
7518
|
d.value && (Q(), le(), v.value = !0);
|
|
7501
7519
|
}, v.value ? 25 : 1e3);
|
|
7502
7520
|
}
|
|
7503
7521
|
}
|
|
7504
7522
|
function he() {
|
|
7505
|
-
clearTimeout(
|
|
7523
|
+
clearTimeout(E);
|
|
7506
7524
|
}
|
|
7507
7525
|
function $e() {
|
|
7508
|
-
he(),
|
|
7526
|
+
he(), Ee();
|
|
7509
7527
|
}
|
|
7510
7528
|
function ge(A) {
|
|
7511
7529
|
a("tabChange", A), a("update:modelValue", A);
|
|
@@ -7519,7 +7537,7 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7519
7537
|
var A;
|
|
7520
7538
|
(A = $.value[B.value]) == null || A.setAttribute("aria-selected", "true"), te();
|
|
7521
7539
|
}
|
|
7522
|
-
function
|
|
7540
|
+
function Pe() {
|
|
7523
7541
|
var A;
|
|
7524
7542
|
(A = O.value) == null || A.focus(), s.value = !1;
|
|
7525
7543
|
}
|
|
@@ -7560,7 +7578,7 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7560
7578
|
let X = 300, ne = ((Te = (xe = k.value) == null ? void 0 : xe[B.value]) == null ? void 0 : Te.offsetLeft) || 0, Be = Ie(B.value);
|
|
7561
7579
|
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`);
|
|
7562
7580
|
}
|
|
7563
|
-
function
|
|
7581
|
+
function Ee() {
|
|
7564
7582
|
var A, j;
|
|
7565
7583
|
(j = (A = y.value) == null ? void 0 : A.disconnect) == null || j.call(A), y.value = null;
|
|
7566
7584
|
}
|
|
@@ -7571,7 +7589,7 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7571
7589
|
}, 25);
|
|
7572
7590
|
y.value = new ResizeObserver(A), y.value.observe(document.body), d.value && y.value.observe(d.value);
|
|
7573
7591
|
}
|
|
7574
|
-
function
|
|
7592
|
+
function V() {
|
|
7575
7593
|
$.value = Array.from(c.value.children).filter((A) => A.role === "tab");
|
|
7576
7594
|
}
|
|
7577
7595
|
function F() {
|
|
@@ -7593,7 +7611,7 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7593
7611
|
return Z(() => t.activeTabId, we), ee(() => {
|
|
7594
7612
|
var A;
|
|
7595
7613
|
try {
|
|
7596
|
-
|
|
7614
|
+
V(), F(), T(), S.value = d.value.getBoundingClientRect().width, te(), t.withBsTabs || (A = $.value[B.value]) == null || A.setAttribute("aria-selected", "true");
|
|
7597
7615
|
} catch (j) {
|
|
7598
7616
|
console.log("tab error", j);
|
|
7599
7617
|
}
|
|
@@ -7622,16 +7640,16 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7622
7640
|
class: "bs-tab-list-toggle",
|
|
7623
7641
|
"data-active": g.value || void 0,
|
|
7624
7642
|
"data-hidden": !r.value,
|
|
7625
|
-
id:
|
|
7643
|
+
id: P.value,
|
|
7626
7644
|
ref_key: "dropdownToggle",
|
|
7627
7645
|
ref: O,
|
|
7628
7646
|
onClick: Oe
|
|
7629
7647
|
}, [
|
|
7630
7648
|
R(f(Jn), { size: "sm" }),
|
|
7631
|
-
_(" " +
|
|
7649
|
+
_(" " + L(N.value), 1)
|
|
7632
7650
|
], 8, cs),
|
|
7633
|
-
R(
|
|
7634
|
-
"anchor-id":
|
|
7651
|
+
R(Pn, {
|
|
7652
|
+
"anchor-id": P.value,
|
|
7635
7653
|
"container-id": A.$attrs.id || f(b),
|
|
7636
7654
|
"helper-description": e.helperDescription || void 0,
|
|
7637
7655
|
"helper-text": e.helperText,
|
|
@@ -7641,17 +7659,17 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7641
7659
|
preloaded: "",
|
|
7642
7660
|
shown: s.value,
|
|
7643
7661
|
width: "content",
|
|
7644
|
-
onClose:
|
|
7662
|
+
onClose: Pe,
|
|
7645
7663
|
"onUpdate:modelValue": U
|
|
7646
7664
|
}, {
|
|
7647
7665
|
default: q(() => [
|
|
7648
|
-
(l(!0), h(J, null, de(u.value, (X) => (l(), D(
|
|
7666
|
+
(l(!0), h(J, null, de(u.value, (X) => (l(), D(Et, {
|
|
7649
7667
|
key: X.id,
|
|
7650
7668
|
value: X.id,
|
|
7651
7669
|
"options-id": I.value
|
|
7652
7670
|
}, {
|
|
7653
7671
|
default: q(() => [
|
|
7654
|
-
_(
|
|
7672
|
+
_(L(X.textContent), 1)
|
|
7655
7673
|
]),
|
|
7656
7674
|
_: 2
|
|
7657
7675
|
}, 1032, ["value", "options-id"]))), 128))
|
|
@@ -7685,10 +7703,10 @@ const Xl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Zl = ["data-sta
|
|
|
7685
7703
|
], 8, bs));
|
|
7686
7704
|
}
|
|
7687
7705
|
};
|
|
7688
|
-
function
|
|
7706
|
+
function Ln() {
|
|
7689
7707
|
return null;
|
|
7690
7708
|
}
|
|
7691
|
-
|
|
7709
|
+
Ln.props = {
|
|
7692
7710
|
id: {
|
|
7693
7711
|
// TODO: Change to "required", use as cell loop key, and update all docs after getting resizing working ORCA app okay
|
|
7694
7712
|
type: String,
|
|
@@ -7741,7 +7759,7 @@ Vn.props = {
|
|
|
7741
7759
|
// default width is set in Table.vue
|
|
7742
7760
|
}
|
|
7743
7761
|
};
|
|
7744
|
-
const ct =
|
|
7762
|
+
const ct = Ln, Mn = Symbol("TableHeaderProvider"), Nn = Symbol("TableBodyProvider"), qn = Symbol("TableFooterProvider"), pt = {
|
|
7745
7763
|
__name: "TableRowGroup",
|
|
7746
7764
|
props: {
|
|
7747
7765
|
kind: {
|
|
@@ -7809,7 +7827,7 @@ function Fn(e, { slots: n }) {
|
|
|
7809
7827
|
}, n);
|
|
7810
7828
|
}
|
|
7811
7829
|
Fn.props = {};
|
|
7812
|
-
const Yt = Fn,
|
|
7830
|
+
const Yt = Fn, Lt = (e, n) => {
|
|
7813
7831
|
const t = e.__vccOpts || e;
|
|
7814
7832
|
for (const [a, o] of n)
|
|
7815
7833
|
t[a] = o;
|
|
@@ -7820,13 +7838,13 @@ function ys(e, n) {
|
|
|
7820
7838
|
z(e.$slots, "default")
|
|
7821
7839
|
]);
|
|
7822
7840
|
}
|
|
7823
|
-
const gs = /* @__PURE__ */
|
|
7841
|
+
const gs = /* @__PURE__ */ Lt(vs, [["render", ys]]), ws = {}, ks = { class: "bs-table-wrap-footer" };
|
|
7824
7842
|
function Ss(e, n) {
|
|
7825
7843
|
return l(), h("div", ks, [
|
|
7826
7844
|
z(e.$slots, "default")
|
|
7827
7845
|
]);
|
|
7828
7846
|
}
|
|
7829
|
-
const $s = /* @__PURE__ */
|
|
7847
|
+
const $s = /* @__PURE__ */ Lt(ws, [["render", Ss]]), Xt = {
|
|
7830
7848
|
__name: "SortToggle",
|
|
7831
7849
|
props: {
|
|
7832
7850
|
order: {
|
|
@@ -7884,26 +7902,26 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
7884
7902
|
if (r.value)
|
|
7885
7903
|
return I.target === a.value || k();
|
|
7886
7904
|
if (v(I.target.closest("[data-bs-table-col-resize-id]")), !s.value.el) return;
|
|
7887
|
-
const
|
|
7888
|
-
if (!(
|
|
7889
|
-
if (i =
|
|
7905
|
+
const P = I.clientX <= s.value.rect.left + Zt, N = I.clientX >= s.value.rect.right - Zt;
|
|
7906
|
+
if (!(P && I.target.dataset.bsTableColResize === "right") && (P || N)) {
|
|
7907
|
+
if (i = P ? s.value.rect.left : s.value.rect.right, P && v(p()), !s.value.el) return;
|
|
7890
7908
|
O();
|
|
7891
7909
|
}
|
|
7892
7910
|
}
|
|
7893
7911
|
function p() {
|
|
7894
7912
|
const I = s.value.el.previousElementSibling;
|
|
7895
7913
|
if (!I) return;
|
|
7896
|
-
const
|
|
7897
|
-
return
|
|
7914
|
+
const P = I.classList.contains("bs-table-cols-frozen-left") ? s.value.el.previousElementSibling.lastElementChild : s.value.el.previousElementSibling;
|
|
7915
|
+
return P.dataset.bsTableColResizeId ? P : null;
|
|
7898
7916
|
}
|
|
7899
7917
|
function v(I) {
|
|
7900
7918
|
s.value = I ? { el: I, rect: I.getBoundingClientRect(), minWidth: $(I) } : { el: null, rect: null };
|
|
7901
7919
|
}
|
|
7902
7920
|
function $(I) {
|
|
7903
7921
|
var N;
|
|
7904
|
-
const
|
|
7905
|
-
if (
|
|
7906
|
-
return parseInt(
|
|
7922
|
+
const P = (N = I.dataset.bsTableColResizeMin) == null ? void 0 : N.replace("px", "");
|
|
7923
|
+
if (P)
|
|
7924
|
+
return parseInt(P, 10);
|
|
7907
7925
|
}
|
|
7908
7926
|
function O() {
|
|
7909
7927
|
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;
|
|
@@ -7913,8 +7931,8 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
7913
7931
|
}
|
|
7914
7932
|
function y(I) {
|
|
7915
7933
|
I.target.setPointerCapture(I.pointerId);
|
|
7916
|
-
const
|
|
7917
|
-
a.value.style.setProperty("--bs-table-col-resizer-tail-height", `${
|
|
7934
|
+
const P = a.value.closest(".bs-table-scroll-wrap");
|
|
7935
|
+
a.value.style.setProperty("--bs-table-col-resizer-tail-height", `${P.offsetHeight}px`), d.value = !0, o = i, a.value.addEventListener("pointermove", S), a.value.addEventListener("pointerup", E, { once: !0 });
|
|
7918
7936
|
}
|
|
7919
7937
|
function S(I) {
|
|
7920
7938
|
i = b(I) ? s.value.rect.left + s.value.minWidth : I.clientX, !u && (u = requestAnimationFrame(() => {
|
|
@@ -7927,7 +7945,7 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
7927
7945
|
function M() {
|
|
7928
7946
|
a.value.style.setProperty("--bs-table-col-resizer-x", `${i}px`);
|
|
7929
7947
|
}
|
|
7930
|
-
function
|
|
7948
|
+
function E() {
|
|
7931
7949
|
a.value.removeEventListener("pointermove", S), setTimeout(() => d.value = !1);
|
|
7932
7950
|
const I = i - o;
|
|
7933
7951
|
I !== 0 && B(Math.round(s.value.rect.width + I));
|
|
@@ -7942,10 +7960,10 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
7942
7960
|
function g() {
|
|
7943
7961
|
B(), k();
|
|
7944
7962
|
}
|
|
7945
|
-
return (I,
|
|
7963
|
+
return (I, P) => fe((l(), h("div", {
|
|
7946
7964
|
ref: "resizer",
|
|
7947
7965
|
class: ve(["bs-table-col-resizer", d.value && "bs-table-col-resizer-active"]),
|
|
7948
|
-
onDragstart:
|
|
7966
|
+
onDragstart: P[0] || (P[0] = Ce(() => {
|
|
7949
7967
|
}, ["prevent"])),
|
|
7950
7968
|
onPointerdown: Ce(y, ["prevent", "stop"]),
|
|
7951
7969
|
onDblclick: Ce(g, ["prevent", "stop"])
|
|
@@ -8039,30 +8057,30 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8039
8057
|
center: [],
|
|
8040
8058
|
right: []
|
|
8041
8059
|
}), o = C({}), i = m(() => Object.values(a.value).flat().map((T) => {
|
|
8042
|
-
const
|
|
8043
|
-
return o.value[
|
|
8044
|
-
}).join(" ")), u = m(() => `--bs-table-cell-padding: ${["xs", "sm", "md", "lg", "xl", "none"].includes(e.cellPadding) ? `var(--bs-table-cell-padding-${e.cellPadding})` : e.cellPadding}`), s = m(() => typeof e.rowHover != "string" || e.rowHover === "true" ? "" : `--bs-table-row-hover: ${e.rowHover}`), r = m(() => Object.values(a.value).flat().some(
|
|
8060
|
+
const V = P(T);
|
|
8061
|
+
return o.value[V] ?? ie(T);
|
|
8062
|
+
}).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(P));
|
|
8045
8063
|
function d(T = []) {
|
|
8046
|
-
const
|
|
8064
|
+
const V = [
|
|
8047
8065
|
"bs-table-wrap",
|
|
8048
8066
|
`bs-table-border-${e.borders}`,
|
|
8049
8067
|
e.striped && "bs-table-striped",
|
|
8050
8068
|
e.rowHover && "bs-table-row-hover"
|
|
8051
8069
|
];
|
|
8052
8070
|
return se("div", {
|
|
8053
|
-
class:
|
|
8071
|
+
class: V,
|
|
8054
8072
|
style: [u.value, s.value]
|
|
8055
8073
|
}, T);
|
|
8056
8074
|
}
|
|
8057
8075
|
function c(T = []) {
|
|
8058
|
-
const
|
|
8076
|
+
const V = [
|
|
8059
8077
|
`--bs-table-col-widths: ${i.value}`,
|
|
8060
8078
|
`--bs-table-frozen-left-count: ${a.value.left.length}`,
|
|
8061
8079
|
`--bs-table-frozen-right-count: ${a.value.right.length}`
|
|
8062
8080
|
];
|
|
8063
8081
|
return se("div", {
|
|
8064
8082
|
class: "bs-table",
|
|
8065
|
-
style:
|
|
8083
|
+
style: V,
|
|
8066
8084
|
role: e.role,
|
|
8067
8085
|
ariaLabel: e.ariaLabel,
|
|
8068
8086
|
ariaDescribedby: e.ariaDescribedby
|
|
@@ -8079,7 +8097,7 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8079
8097
|
}
|
|
8080
8098
|
function $() {
|
|
8081
8099
|
return v(
|
|
8082
|
-
|
|
8100
|
+
E(
|
|
8083
8101
|
Ie(g)
|
|
8084
8102
|
)
|
|
8085
8103
|
);
|
|
@@ -8094,15 +8112,15 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8094
8112
|
return se(pt, { kind: "body" }, () => T);
|
|
8095
8113
|
}
|
|
8096
8114
|
function y() {
|
|
8097
|
-
const T = e.rows.map((
|
|
8098
|
-
Ie(he, { row:
|
|
8115
|
+
const T = e.rows.map((V, F) => E(
|
|
8116
|
+
Ie(he, { row: V, rowIndex: F })
|
|
8099
8117
|
));
|
|
8100
8118
|
return k(T);
|
|
8101
8119
|
}
|
|
8102
8120
|
function S() {
|
|
8103
|
-
const T = e.rows.map((
|
|
8104
|
-
const Q = n.body({ row:
|
|
8105
|
-
return B(Q, he, { row:
|
|
8121
|
+
const T = e.rows.map((V, F) => {
|
|
8122
|
+
const Q = n.body({ row: V, rowIndex: F });
|
|
8123
|
+
return B(Q, he, { row: V, rowIndex: F });
|
|
8106
8124
|
});
|
|
8107
8125
|
return k(T);
|
|
8108
8126
|
}
|
|
@@ -8118,46 +8136,46 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8118
8136
|
B(T, g)
|
|
8119
8137
|
);
|
|
8120
8138
|
}
|
|
8121
|
-
function
|
|
8139
|
+
function E(T = []) {
|
|
8122
8140
|
return se(bt, null, () => T);
|
|
8123
8141
|
}
|
|
8124
|
-
function B(T = [],
|
|
8142
|
+
function B(T = [], V, F = {}) {
|
|
8125
8143
|
return Y(T, [bt]).map(
|
|
8126
|
-
(A) => Oe(A) ? se(A, null, () => Ie(
|
|
8144
|
+
(A) => Oe(A) ? se(A, null, () => Ie(V, F)) : se(A)
|
|
8127
8145
|
);
|
|
8128
8146
|
}
|
|
8129
8147
|
function g(T = {}) {
|
|
8130
8148
|
var A;
|
|
8131
|
-
const
|
|
8149
|
+
const V = (A = T.slots) == null ? void 0 : A.default({}).find((j) => j.type === Gt), F = te(T), Q = {
|
|
8132
8150
|
class: e.truncate && $e(T),
|
|
8133
8151
|
"data-bs-table-col-id": T.props.id,
|
|
8134
8152
|
// TODO: only added here for col resize reasons, could be on all cells
|
|
8135
8153
|
...I(T),
|
|
8136
8154
|
...F && F === e.sortKey && { "aria-sort": `${e.sortOrder}ending` }
|
|
8137
8155
|
};
|
|
8138
|
-
if (F && (
|
|
8139
|
-
const j =
|
|
8140
|
-
return se(
|
|
8156
|
+
if (F && (V != null && V.children)) {
|
|
8157
|
+
const j = V.children.default().map((X) => X.type === Xt ? Yn(X, { ...N(T) }) : se(X));
|
|
8158
|
+
return se(V, Q, () => j);
|
|
8141
8159
|
}
|
|
8142
|
-
return
|
|
8160
|
+
return V ? se(V, Q) : se(Gt, Q, () => {
|
|
8143
8161
|
var j;
|
|
8144
8162
|
return G(T) || ((j = T.props) == null ? void 0 : j.name);
|
|
8145
8163
|
});
|
|
8146
8164
|
}
|
|
8147
8165
|
function I(T) {
|
|
8148
|
-
const
|
|
8149
|
-
if (!
|
|
8166
|
+
const V = P(T);
|
|
8167
|
+
if (!V) return {};
|
|
8150
8168
|
const F = T.props["resize-min"] || T.props.resizeMin, Q = T.props["resize-max"] || T.props.resizeMax;
|
|
8151
8169
|
return {
|
|
8152
|
-
"data-bs-table-col-resize-id":
|
|
8170
|
+
"data-bs-table-col-resize-id": V,
|
|
8153
8171
|
"data-bs-table-col-resize": ["right", "left"].includes(T.props.resize) ? T.props.resize : void 0,
|
|
8154
8172
|
"data-bs-table-col-resize-min": F === void 0 ? e.resizeColsMin : F,
|
|
8155
8173
|
"data-bs-table-col-resize-max": Q === void 0 ? e.resizeColsMax : Q
|
|
8156
8174
|
};
|
|
8157
8175
|
}
|
|
8158
|
-
function
|
|
8159
|
-
const
|
|
8160
|
-
if (
|
|
8176
|
+
function P(T) {
|
|
8177
|
+
const V = T.props["resize-id"] || T.props.resizeId;
|
|
8178
|
+
if (V) return V;
|
|
8161
8179
|
const F = T.props["resize-key"] || T.props.resizeKey;
|
|
8162
8180
|
if (F)
|
|
8163
8181
|
throw new Error(`[BsTable] BsTableCol does not have a "resize-key" prop. Instead, use: resize-id="${F}".`);
|
|
@@ -8167,10 +8185,10 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8167
8185
|
}
|
|
8168
8186
|
}
|
|
8169
8187
|
function N(T = {}) {
|
|
8170
|
-
const
|
|
8188
|
+
const V = te(T);
|
|
8171
8189
|
return {
|
|
8172
|
-
order: e.sortKey ===
|
|
8173
|
-
onToggle: (F) => t("sort", { sortKey:
|
|
8190
|
+
order: e.sortKey === V ? e.sortOrder : null,
|
|
8191
|
+
onToggle: (F) => t("sort", { sortKey: V, sortOrder: F })
|
|
8174
8192
|
};
|
|
8175
8193
|
}
|
|
8176
8194
|
function G(T = {}) {
|
|
@@ -8181,41 +8199,41 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8181
8199
|
});
|
|
8182
8200
|
}
|
|
8183
8201
|
function te(T) {
|
|
8184
|
-
const
|
|
8185
|
-
if (
|
|
8202
|
+
const V = T.props["sort-key"] || T.props.sortKey;
|
|
8203
|
+
if (V) return V;
|
|
8186
8204
|
if (K(T, "sort")) {
|
|
8187
8205
|
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"'`);
|
|
8188
8206
|
return T.props.id;
|
|
8189
8207
|
}
|
|
8190
8208
|
}
|
|
8191
|
-
function he(T = {},
|
|
8209
|
+
function he(T = {}, V = {}) {
|
|
8192
8210
|
var A;
|
|
8193
|
-
const F = (A = T.slots) == null ? void 0 : A.default(
|
|
8194
|
-
return F ? se(F, Q) : se(Yt, Q, () => U(
|
|
8211
|
+
const F = (A = T.slots) == null ? void 0 : A.default(V).find((j) => j.type === Yt), Q = { class: e.truncate && $e(T) };
|
|
8212
|
+
return F ? se(F, Q) : se(Yt, Q, () => U(V.row, T));
|
|
8195
8213
|
}
|
|
8196
8214
|
function $e(T) {
|
|
8197
|
-
const
|
|
8198
|
-
return T.props.truncate !== "false" &&
|
|
8215
|
+
const V = T.props.truncate === void 0 ? e.truncate : T.props.truncate === "" || T.props.truncate;
|
|
8216
|
+
return T.props.truncate !== "false" && V && "bs-table-truncate";
|
|
8199
8217
|
}
|
|
8200
|
-
function ge(T,
|
|
8218
|
+
function ge(T, V, F) {
|
|
8201
8219
|
if (!a.value[T].length) return;
|
|
8202
|
-
const Q = a.value[T].map((A) =>
|
|
8220
|
+
const Q = a.value[T].map((A) => V(A, F));
|
|
8203
8221
|
return se("div", { class: `bs-table-cols-frozen-${T}` }, Q);
|
|
8204
8222
|
}
|
|
8205
|
-
function Ie(T,
|
|
8223
|
+
function Ie(T, V = {}) {
|
|
8206
8224
|
return [
|
|
8207
|
-
ge("left", T,
|
|
8208
|
-
a.value.center.map((F) => T(F,
|
|
8209
|
-
ge("right", T,
|
|
8225
|
+
ge("left", T, V),
|
|
8226
|
+
a.value.center.map((F) => T(F, V)),
|
|
8227
|
+
ge("right", T, V)
|
|
8210
8228
|
];
|
|
8211
8229
|
}
|
|
8212
8230
|
function we() {
|
|
8213
|
-
return se(Is, { onResize:
|
|
8231
|
+
return se(Is, { onResize: Pe });
|
|
8214
8232
|
}
|
|
8215
|
-
function
|
|
8233
|
+
function Pe({ el: T, id: V, width: F }) {
|
|
8216
8234
|
const Q = Object.values(a.value).flat().reduce((j, X) => {
|
|
8217
|
-
const ne =
|
|
8218
|
-
return ne ===
|
|
8235
|
+
const ne = P(X) || X.props.id;
|
|
8236
|
+
return ne === V || o.value[ne] || ie(X).endsWith("px") || j.push({ id: ne, width: null }), j;
|
|
8219
8237
|
}, []);
|
|
8220
8238
|
if (Q.length) {
|
|
8221
8239
|
const j = T.closest(".bs-table-row");
|
|
@@ -8224,63 +8242,63 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8224
8242
|
ne && (X.width = `${ne.offsetWidth}px`);
|
|
8225
8243
|
});
|
|
8226
8244
|
}
|
|
8227
|
-
const A = [{ id:
|
|
8245
|
+
const A = [{ id: V, width: F ? `${F}px` : void 0 }, ...Q];
|
|
8228
8246
|
A.forEach((j) => o.value[j.id] = j.width), t("resize-col", { target: A[0], updated: [...A] });
|
|
8229
8247
|
}
|
|
8230
8248
|
function Oe(T) {
|
|
8231
8249
|
return T.type === bt && !T.children;
|
|
8232
8250
|
}
|
|
8233
|
-
function U(T,
|
|
8234
|
-
return (
|
|
8251
|
+
function U(T, V) {
|
|
8252
|
+
return (V.props["row-key"] || V.props.rowKey || V.props.id || "").split(".").reduce((A, j) => A && A[j], T);
|
|
8235
8253
|
}
|
|
8236
|
-
function K(T,
|
|
8237
|
-
const F = T.props[
|
|
8254
|
+
function K(T, V) {
|
|
8255
|
+
const F = T.props[V];
|
|
8238
8256
|
return F === "" || F && F !== "false";
|
|
8239
8257
|
}
|
|
8240
8258
|
function ie(T) {
|
|
8241
|
-
var
|
|
8242
|
-
return ((
|
|
8259
|
+
var V;
|
|
8260
|
+
return ((V = T.props) == null ? void 0 : V.width) ?? e.colWidth;
|
|
8243
8261
|
}
|
|
8244
|
-
function Y(T,
|
|
8245
|
-
return T.reduce((F, Q) =>
|
|
8262
|
+
function Y(T, V = []) {
|
|
8263
|
+
return T.reduce((F, Q) => V.includes(Q.type) ? [...F, Q] : Array.isArray(Q.children) ? [...F, ...Y(Q.children, V)] : F, []);
|
|
8246
8264
|
}
|
|
8247
8265
|
function oe(T) {
|
|
8248
8266
|
var F;
|
|
8249
|
-
const
|
|
8250
|
-
return T.type.props.place.validator(
|
|
8251
|
-
place:
|
|
8267
|
+
const V = ((F = T.props) == null ? void 0 : F.place) || T.type.props.place.default;
|
|
8268
|
+
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}".`), {
|
|
8269
|
+
place: V,
|
|
8252
8270
|
frozenCols: Y(T.children.default(), [ct])
|
|
8253
8271
|
};
|
|
8254
8272
|
}
|
|
8255
8273
|
function le(T = []) {
|
|
8256
|
-
const
|
|
8274
|
+
const V = (F) => ({
|
|
8257
8275
|
props: F.props || { name: "" },
|
|
8258
8276
|
slots: F.children
|
|
8259
8277
|
});
|
|
8260
8278
|
return T.reduce((F, Q) => {
|
|
8261
8279
|
if (Q.type === ft) {
|
|
8262
8280
|
const { place: A, frozenCols: j } = oe(Q);
|
|
8263
|
-
return F[A] = F[A].concat(j.map(
|
|
8281
|
+
return F[A] = F[A].concat(j.map(V)), F;
|
|
8264
8282
|
}
|
|
8265
|
-
return F.center.push(
|
|
8283
|
+
return F.center.push(V(Q)), F;
|
|
8266
8284
|
}, { left: [], center: [], right: [] });
|
|
8267
8285
|
}
|
|
8268
|
-
function
|
|
8269
|
-
return T.reduce((
|
|
8286
|
+
function Ee(T) {
|
|
8287
|
+
return T.reduce((V, F) => {
|
|
8270
8288
|
if (F.type === gs)
|
|
8271
|
-
return
|
|
8289
|
+
return V.header = F, V;
|
|
8272
8290
|
if (F.type === $s)
|
|
8273
|
-
return
|
|
8291
|
+
return V.footer = F, V;
|
|
8274
8292
|
if ([ft, ct].includes(F.type))
|
|
8275
|
-
return
|
|
8293
|
+
return V.columns.push(F), V;
|
|
8276
8294
|
const Q = Y([F], [ft, ct]);
|
|
8277
|
-
return Q != null && Q.length ?
|
|
8295
|
+
return Q != null && Q.length ? V.columns = [...V.columns, ...Q] : V.other.push(F), V;
|
|
8278
8296
|
}, { columns: [], header: null, footer: null, other: [] });
|
|
8279
8297
|
}
|
|
8280
8298
|
return () => {
|
|
8281
|
-
const { columns: T, header:
|
|
8299
|
+
const { columns: T, header: V, footer: F, other: Q } = Ee(n.default());
|
|
8282
8300
|
return a.value = le(T), d([
|
|
8283
|
-
|
|
8301
|
+
V,
|
|
8284
8302
|
p([
|
|
8285
8303
|
c([
|
|
8286
8304
|
n.header ? O() : $(),
|
|
@@ -8388,7 +8406,7 @@ const $s = /* @__PURE__ */ Vt(ws, [["render", Ss]]), Xt = {
|
|
|
8388
8406
|
}, {
|
|
8389
8407
|
default: q(() => [
|
|
8390
8408
|
z(p.$slots, "label", {}, () => [
|
|
8391
|
-
_(
|
|
8409
|
+
_(L(e.label), 1)
|
|
8392
8410
|
])
|
|
8393
8411
|
]),
|
|
8394
8412
|
_: 3
|
|
@@ -8441,7 +8459,7 @@ function Ds(e = "") {
|
|
|
8441
8459
|
minutes: a
|
|
8442
8460
|
};
|
|
8443
8461
|
}
|
|
8444
|
-
function
|
|
8462
|
+
function Ve(e = "") {
|
|
8445
8463
|
const n = /[^0-9:]/g;
|
|
8446
8464
|
if (e = e.replaceAll(n, ""), !e) return "";
|
|
8447
8465
|
const [t, a] = e.split(":"), o = Ne(t), i = Ne(a), u = o < 12 ? "AM" : "PM";
|
|
@@ -8516,20 +8534,20 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8516
8534
|
},
|
|
8517
8535
|
emits: ["update:modelValue"],
|
|
8518
8536
|
setup(e, { expose: n, emit: t }) {
|
|
8519
|
-
const a = e, o = t, i = C(
|
|
8537
|
+
const a = e, o = t, i = C(Ve(a.modelValue)), u = C([]), s = C(""), r = C(!1);
|
|
8520
8538
|
function d() {
|
|
8521
8539
|
const S = [];
|
|
8522
8540
|
let b = !1;
|
|
8523
8541
|
for (let M = 0; M < 24 && !b; M++)
|
|
8524
|
-
for (let
|
|
8525
|
-
const B = v(M,
|
|
8542
|
+
for (let E = 0; E < 60; E += a.step) {
|
|
8543
|
+
const B = v(M, E), g = p(B);
|
|
8526
8544
|
if (g !== Qt) {
|
|
8527
8545
|
if (g === Jt) {
|
|
8528
8546
|
b = !0;
|
|
8529
8547
|
break;
|
|
8530
8548
|
}
|
|
8531
8549
|
S.push({
|
|
8532
|
-
label:
|
|
8550
|
+
label: Ve(B),
|
|
8533
8551
|
value: B
|
|
8534
8552
|
});
|
|
8535
8553
|
}
|
|
@@ -8555,7 +8573,7 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8555
8573
|
}
|
|
8556
8574
|
function $(S) {
|
|
8557
8575
|
const b = Os(S);
|
|
8558
|
-
b === a.modelValue && (i.value =
|
|
8576
|
+
b === a.modelValue && (i.value = Ve(a.modelValue)), k(b);
|
|
8559
8577
|
}
|
|
8560
8578
|
function O() {
|
|
8561
8579
|
u.value = d();
|
|
@@ -8566,13 +8584,13 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8566
8584
|
function y(S) {
|
|
8567
8585
|
switch (c(S)) {
|
|
8568
8586
|
case vt:
|
|
8569
|
-
s.value = `Time must be before ${
|
|
8587
|
+
s.value = `Time must be before ${Ve(a.maxTime)}`, r.value = !0;
|
|
8570
8588
|
break;
|
|
8571
8589
|
case mt:
|
|
8572
|
-
s.value = `Time must be after ${
|
|
8590
|
+
s.value = `Time must be after ${Ve(a.minTime)}`, r.value = !0;
|
|
8573
8591
|
break;
|
|
8574
8592
|
case ht:
|
|
8575
|
-
s.value = `The following times are disabled: ${a.disabledTimes.map((M) =>
|
|
8593
|
+
s.value = `The following times are disabled: ${a.disabledTimes.map((M) => Ve(M)).join(", ")}`, r.value = !0;
|
|
8576
8594
|
break;
|
|
8577
8595
|
default:
|
|
8578
8596
|
s.value = "", r.value = !1;
|
|
@@ -8589,7 +8607,7 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8589
8607
|
() => a.minTime,
|
|
8590
8608
|
() => a.modelValue
|
|
8591
8609
|
], () => y(a.modelValue)), Z(() => a.modelValue, (S) => {
|
|
8592
|
-
i.value = a.modelValue ?
|
|
8610
|
+
i.value = a.modelValue ? Ve(S) : "";
|
|
8593
8611
|
}), n({
|
|
8594
8612
|
validationErr: r,
|
|
8595
8613
|
validationErrMsg: s
|
|
@@ -8702,7 +8720,7 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8702
8720
|
}, {
|
|
8703
8721
|
default: q(() => [
|
|
8704
8722
|
z(k.$slots, "label", {}, () => [
|
|
8705
|
-
_(
|
|
8723
|
+
_(L(e.label), 1)
|
|
8706
8724
|
])
|
|
8707
8725
|
]),
|
|
8708
8726
|
_: 3
|
|
@@ -8737,7 +8755,7 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8737
8755
|
])
|
|
8738
8756
|
], 16));
|
|
8739
8757
|
}
|
|
8740
|
-
}), As = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], zs = ["data-status"],
|
|
8758
|
+
}), As = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], zs = ["data-status"], Ps = { class: "visually-hidden" }, ad = {
|
|
8741
8759
|
__name: "BsTimeline",
|
|
8742
8760
|
props: {
|
|
8743
8761
|
/** @type {Status} */
|
|
@@ -8774,7 +8792,7 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8774
8792
|
ongoing: na,
|
|
8775
8793
|
paused: ta,
|
|
8776
8794
|
warning: $t
|
|
8777
|
-
}, { progressStep: a, progressText: o, getStatus: i } =
|
|
8795
|
+
}, { progressStep: a, progressText: o, getStatus: i } = Vn(n);
|
|
8778
8796
|
function u(s, r) {
|
|
8779
8797
|
return s = i(s, r), t[s] || jt;
|
|
8780
8798
|
}
|
|
@@ -8797,13 +8815,13 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8797
8815
|
role: "presentation"
|
|
8798
8816
|
})),
|
|
8799
8817
|
w("p", null, [
|
|
8800
|
-
_(
|
|
8801
|
-
w("span",
|
|
8818
|
+
_(L(d.label || d) + " ", 1),
|
|
8819
|
+
w("span", Ps, " : " + L(f(i)(d.status, c) || "not started"), 1)
|
|
8802
8820
|
])
|
|
8803
8821
|
], 8, zs))), 128))
|
|
8804
8822
|
], 8, As));
|
|
8805
8823
|
}
|
|
8806
|
-
},
|
|
8824
|
+
}, Es = ["data-variant", "data-shown", "data-stacked"], od = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
8807
8825
|
__name: "BsToast",
|
|
8808
8826
|
props: {
|
|
8809
8827
|
shown: {
|
|
@@ -8875,12 +8893,12 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8875
8893
|
role: "alert"
|
|
8876
8894
|
}, d.$attrs), [
|
|
8877
8895
|
z(d.$slots, "default")
|
|
8878
|
-
], 16,
|
|
8896
|
+
], 16, Es)
|
|
8879
8897
|
]),
|
|
8880
8898
|
_: 3
|
|
8881
8899
|
}, 8, ["shown", "preloaded"]));
|
|
8882
8900
|
}
|
|
8883
|
-
}),
|
|
8901
|
+
}), Vs = ["data-stacked"], id = {
|
|
8884
8902
|
__name: "BsToastActions",
|
|
8885
8903
|
setup(e) {
|
|
8886
8904
|
const n = ue("handleDismiss", () => {
|
|
@@ -8906,9 +8924,9 @@ const ht = "excluded", vt = "over", Qt = "skip", Jt = "stop", mt = "under", xs =
|
|
|
8906
8924
|
_: 1
|
|
8907
8925
|
}, 8, ["onClick"])
|
|
8908
8926
|
])
|
|
8909
|
-
], 8,
|
|
8927
|
+
], 8, Vs));
|
|
8910
8928
|
}
|
|
8911
|
-
},
|
|
8929
|
+
}, Ls = {}, Ms = {
|
|
8912
8930
|
class: "bs-toast-body",
|
|
8913
8931
|
"data-component": "bs-toast-body"
|
|
8914
8932
|
};
|
|
@@ -8917,7 +8935,7 @@ function Ns(e, n) {
|
|
|
8917
8935
|
z(e.$slots, "default")
|
|
8918
8936
|
]);
|
|
8919
8937
|
}
|
|
8920
|
-
const ld = /* @__PURE__ */
|
|
8938
|
+
const ld = /* @__PURE__ */ Lt(Ls, [["render", Ns]]), qs = ["data-variant"], sd = {
|
|
8921
8939
|
__name: "BsToastHeader",
|
|
8922
8940
|
setup(e) {
|
|
8923
8941
|
const n = ue("variant", void 0), t = m(() => {
|
|
@@ -9009,12 +9027,12 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9009
9027
|
role: "tooltip"
|
|
9010
9028
|
}, [
|
|
9011
9029
|
z(s.$slots, "content", {}, () => [
|
|
9012
|
-
_(
|
|
9030
|
+
_(L(e.content), 1)
|
|
9013
9031
|
])
|
|
9014
9032
|
], 10, Fs)
|
|
9015
9033
|
], 40, js));
|
|
9016
9034
|
}
|
|
9017
|
-
}, Us =
|
|
9035
|
+
}, Us = ["data-bg-variant"], Ws = ["aria-expanded", "title", "data-collapsed", "data-narrow"], Ks = ["data-narrow", "data-collapsed", "data-collapsible", "data-sticky"], Hs = {
|
|
9018
9036
|
key: 0,
|
|
9019
9037
|
class: "bs-vertical-nav-top-content"
|
|
9020
9038
|
}, 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 = {
|
|
@@ -9031,7 +9049,7 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9031
9049
|
initializeSections: u,
|
|
9032
9050
|
isExpanded: s,
|
|
9033
9051
|
rawNavData: r
|
|
9034
|
-
} =
|
|
9052
|
+
} = Vt(t);
|
|
9035
9053
|
Fe("(max-width: 1165px)", (b) => {
|
|
9036
9054
|
p.value = b.matches;
|
|
9037
9055
|
});
|
|
@@ -9046,17 +9064,17 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9046
9064
|
v.value = b;
|
|
9047
9065
|
}), Z(
|
|
9048
9066
|
[() => v.value, $, () => t.width, O, p],
|
|
9049
|
-
([b, M,
|
|
9067
|
+
([b, M, E, B, g]) => {
|
|
9050
9068
|
let I = "0px";
|
|
9051
|
-
B && !g && b ? I = "4rem" :
|
|
9069
|
+
B && !g && b ? I = "4rem" : E ? I = E : M ? I = "4.5rem" : I = "9.875rem", document.body.style.setProperty("--bs-page-nav-width", I);
|
|
9052
9070
|
},
|
|
9053
9071
|
{ immediate: !0 }
|
|
9054
9072
|
), Z(() => t.width, (b) => {
|
|
9055
9073
|
b ? (d.value.style.setProperty("--bs-vertical-nav-width", b), c.value && c.value.style.setProperty("--bs-vertical-nav-width", b)) : (d.value.style.removeProperty("--bs-vertical-nav-width"), c.value && c.value.style.removeProperty("--bs-vertical-nav-width"));
|
|
9056
9074
|
}), Z(() => t.mobileOpen, (b) => {
|
|
9057
|
-
b ? (document.body.style.overflow = "hidden", d.value.style.setProperty("visibility", "visible"), setTimeout(() => {
|
|
9075
|
+
b ? (document.body.style.overflow = "hidden", d.value.style.setProperty("visibility", "visible"), d.value.style.setProperty("pointer-events", "auto"), setTimeout(() => {
|
|
9058
9076
|
d.value.style.setProperty("opacity", "1");
|
|
9059
|
-
}, 0)) : (document.body.style.overflow = "", d.value.style.removeProperty("opacity"), setTimeout(() => {
|
|
9077
|
+
}, 0)) : (document.body.style.overflow = "", d.value.style.removeProperty("opacity"), d.value.style.setProperty("pointer-events", "none"), setTimeout(() => {
|
|
9060
9078
|
d.value.style.removeProperty("visibility");
|
|
9061
9079
|
}, 200));
|
|
9062
9080
|
});
|
|
@@ -9066,7 +9084,10 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9066
9084
|
function S() {
|
|
9067
9085
|
v.value = !v.value, a("update:collapsed", v.value);
|
|
9068
9086
|
}
|
|
9069
|
-
return (b, M) => (l(), h("div",
|
|
9087
|
+
return (b, M) => (l(), h("div", {
|
|
9088
|
+
class: "bs-vertical-nav-wrapper",
|
|
9089
|
+
"data-bg-variant": t.bgVariant || void 0
|
|
9090
|
+
}, [
|
|
9070
9091
|
O.value && !p.value ? (l(), h("button", {
|
|
9071
9092
|
key: 0,
|
|
9072
9093
|
ref_key: "toggleButton",
|
|
@@ -9094,40 +9115,41 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9094
9115
|
"data-narrow": $.value,
|
|
9095
9116
|
"data-collapsed": k.value,
|
|
9096
9117
|
"data-collapsible": O.value,
|
|
9118
|
+
"data-sticky": t.sticky || void 0,
|
|
9097
9119
|
style: tn(t.width && !k.value ? { width: t.width } : void 0)
|
|
9098
9120
|
}, [
|
|
9099
9121
|
w("ul", null, [
|
|
9100
9122
|
b.$slots["top-content"] ? (l(), h("li", Hs, [
|
|
9101
9123
|
z(b.$slots, "top-content")
|
|
9102
9124
|
])) : x("", !0),
|
|
9103
|
-
(l(!0), h(J, null, de(f(r), (
|
|
9125
|
+
(l(!0), h(J, null, de(f(r), (E) => {
|
|
9104
9126
|
var B;
|
|
9105
9127
|
return l(), h(J, {
|
|
9106
|
-
key:
|
|
9128
|
+
key: E.id
|
|
9107
9129
|
}, [
|
|
9108
|
-
((B =
|
|
9130
|
+
((B = E.navItems) == null ? void 0 : B.length) > 0 ? (l(), h("li", {
|
|
9109
9131
|
key: 0,
|
|
9110
9132
|
class: "bs-vertical-nav-section",
|
|
9111
|
-
"data-collapsed": !
|
|
9112
|
-
"data-divider-only":
|
|
9113
|
-
"data-app-links":
|
|
9133
|
+
"data-collapsed": !E.dividerOnly && !f(s)(E),
|
|
9134
|
+
"data-divider-only": E.dividerOnly,
|
|
9135
|
+
"data-app-links": E.appLinks
|
|
9114
9136
|
}, [
|
|
9115
|
-
!
|
|
9137
|
+
!E.dividerOnly && !$.value && !k.value ? (l(), h("button", {
|
|
9116
9138
|
key: 0,
|
|
9117
9139
|
class: "bs-vertical-nav-section-toggle",
|
|
9118
|
-
"aria-expanded": f(s)(
|
|
9119
|
-
"aria-controls": `${
|
|
9120
|
-
title: f(i)(
|
|
9140
|
+
"aria-expanded": f(s)(E),
|
|
9141
|
+
"aria-controls": `${E.id}-nested-section`,
|
|
9142
|
+
title: f(i)(E),
|
|
9121
9143
|
type: "button",
|
|
9122
|
-
onClick: (g) => y(
|
|
9144
|
+
onClick: (g) => y(E.id)
|
|
9123
9145
|
}, [
|
|
9124
|
-
k.value ? x("", !0) : (l(), h("span", Xs,
|
|
9146
|
+
k.value ? x("", !0) : (l(), h("span", Xs, L(E.text), 1)),
|
|
9125
9147
|
R(f(ra), { class: "bs-vertical-nav-section-toggle-caret" })
|
|
9126
9148
|
], 8, Ys)) : x("", !0),
|
|
9127
9149
|
fe(w("ul", {
|
|
9128
|
-
id: `${
|
|
9150
|
+
id: `${E.id}-nested-section`
|
|
9129
9151
|
}, [
|
|
9130
|
-
(l(!0), h(J, null, de(
|
|
9152
|
+
(l(!0), h(J, null, de(E.navItems, (g) => (l(), h("li", {
|
|
9131
9153
|
key: g.id
|
|
9132
9154
|
}, [
|
|
9133
9155
|
R(Me, {
|
|
@@ -9145,31 +9167,31 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9145
9167
|
key: 1,
|
|
9146
9168
|
class: "bs-vertical-nav-link-icon"
|
|
9147
9169
|
})),
|
|
9148
|
-
w("span", null,
|
|
9170
|
+
w("span", null, L(g.text), 1)
|
|
9149
9171
|
]),
|
|
9150
9172
|
_: 2
|
|
9151
9173
|
}, 1032, ["item", "router", "onNavLinkClicked", "aria-label"])
|
|
9152
9174
|
]))), 128))
|
|
9153
9175
|
], 8, Zs), [
|
|
9154
|
-
[be,
|
|
9176
|
+
[be, E.dividerOnly || f(s)(E) || k.value]
|
|
9155
9177
|
])
|
|
9156
9178
|
], 8, Gs)) : (l(), h("li", Qs, [
|
|
9157
9179
|
R(Me, {
|
|
9158
|
-
item:
|
|
9180
|
+
item: E,
|
|
9159
9181
|
router: b.router,
|
|
9160
|
-
onNavLinkClicked: (g) => a("nav-link-clicked", { ev: g, payload:
|
|
9161
|
-
"aria-label":
|
|
9182
|
+
onNavLinkClicked: (g) => a("nav-link-clicked", { ev: g, payload: E }),
|
|
9183
|
+
"aria-label": E.text
|
|
9162
9184
|
}, {
|
|
9163
9185
|
default: q(() => [
|
|
9164
|
-
typeof
|
|
9186
|
+
typeof E.icon == "string" ? (l(), D(f(ce), {
|
|
9165
9187
|
key: 0,
|
|
9166
9188
|
class: "bs-vertical-nav-link-icon",
|
|
9167
|
-
name:
|
|
9168
|
-
}, null, 8, ["name"])) : (l(), D(ae(
|
|
9189
|
+
name: E.icon
|
|
9190
|
+
}, null, 8, ["name"])) : (l(), D(ae(E.icon), {
|
|
9169
9191
|
key: 1,
|
|
9170
9192
|
class: "bs-vertical-nav-link-icon"
|
|
9171
9193
|
})),
|
|
9172
|
-
w("span", null,
|
|
9194
|
+
w("span", null, L(E.text), 1)
|
|
9173
9195
|
]),
|
|
9174
9196
|
_: 2
|
|
9175
9197
|
}, 1032, ["item", "router", "onNavLinkClicked", "aria-label"])
|
|
@@ -9181,7 +9203,7 @@ const ld = /* @__PURE__ */ Vt(Vs, [["render", Ns]]), qs = ["data-variant"], sd =
|
|
|
9181
9203
|
z(b.$slots, "end-items")
|
|
9182
9204
|
])) : x("", !0)
|
|
9183
9205
|
], 12, Ks)
|
|
9184
|
-
]));
|
|
9206
|
+
], 8, Us));
|
|
9185
9207
|
}
|
|
9186
9208
|
};
|
|
9187
9209
|
export {
|
|
@@ -9207,11 +9229,11 @@ export {
|
|
|
9207
9229
|
zn as BsDropdownCombobox,
|
|
9208
9230
|
xr as BsDropdownComboboxField,
|
|
9209
9231
|
xn as BsDropdownMultiselect,
|
|
9210
|
-
|
|
9232
|
+
Et as BsDropdownOption,
|
|
9211
9233
|
_e as BsDropdownOptionBuilder,
|
|
9212
9234
|
br as BsDropdownOptionBuilderDefinitions,
|
|
9213
9235
|
st as BsDropdownOptionList,
|
|
9214
|
-
|
|
9236
|
+
Pn as BsDropdownWithOptions,
|
|
9215
9237
|
An as BsDropdownWithToggle,
|
|
9216
9238
|
Ar as BsEmptyState,
|
|
9217
9239
|
hr as BsEmptyStateDefinitions,
|
|
@@ -9219,12 +9241,12 @@ export {
|
|
|
9219
9241
|
ei as BsFilterButton,
|
|
9220
9242
|
zr as BsFlyout,
|
|
9221
9243
|
Ii as BsFocusGuard,
|
|
9222
|
-
|
|
9244
|
+
Pr as BsFormContainer,
|
|
9223
9245
|
vr as BsFormContainerDefinitions,
|
|
9224
|
-
|
|
9246
|
+
Er as BsHorizontalNavigation,
|
|
9225
9247
|
mr as BsHorizontalNavigationDefinitions,
|
|
9226
|
-
|
|
9227
|
-
|
|
9248
|
+
Vr as BsIconGradientWrapper,
|
|
9249
|
+
Lr as BsInlineTab,
|
|
9228
9250
|
yr as BsInlineTabDefinitions,
|
|
9229
9251
|
Mr as BsInlineTabGroup,
|
|
9230
9252
|
gr as BsInlineTabGroupDefinitions,
|