@wwtdev/bsds-components-vue3 3.0.7 → 3.0.9
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 +495 -493
- package/lib/bsds-components.js.map +1 -1
- package/package.json +2 -2
package/lib/bsds-components.js
CHANGED
|
@@ -576,10 +576,10 @@ function An(e) {
|
|
|
576
576
|
"aria-controls": s.value,
|
|
577
577
|
"aria-expanded": c.value
|
|
578
578
|
};
|
|
579
|
-
}),
|
|
579
|
+
}), S = f(() => !l.value || l.value === "popHover" ? {} : { onClick: k, onKeydown: m }), g = f(() => l.value ? {
|
|
580
580
|
id: p.value,
|
|
581
581
|
...v.value,
|
|
582
|
-
...
|
|
582
|
+
...S.value,
|
|
583
583
|
[`data-bs-${l.value}`]: s.value
|
|
584
584
|
} : {});
|
|
585
585
|
G(s, (h, B, I) => {
|
|
@@ -587,7 +587,7 @@ function An(e) {
|
|
|
587
587
|
const N = l.value;
|
|
588
588
|
n.registerPopTrigger(N, h), I(() => n.unregisterPopTrigger(N, h));
|
|
589
589
|
}, { immediate: !0 });
|
|
590
|
-
function
|
|
590
|
+
function k(h) {
|
|
591
591
|
if (h.target.tagName !== "BUTTON") {
|
|
592
592
|
const N = h.target.closest('[data-bs-pop-faux-button="true"]');
|
|
593
593
|
if ((N == null ? void 0 : N.ariaDisabled) === "true") {
|
|
@@ -596,18 +596,19 @@ function An(e) {
|
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
if (n.setAnchorId(s.value, p.value), l.value === "willPop") return;
|
|
599
|
-
|
|
599
|
+
const I = {
|
|
600
600
|
popOpen: n.open,
|
|
601
601
|
popClose: n.close,
|
|
602
602
|
popCancel: n.cancel,
|
|
603
603
|
popConfirm: n.confirm
|
|
604
|
-
}[l.value] || n.toggle
|
|
604
|
+
}[l.value] || n.toggle;
|
|
605
|
+
h.stopPropagation(), I(s.value);
|
|
605
606
|
}
|
|
606
607
|
function m(h) {
|
|
607
|
-
h.target.dataset.bsPopFauxButton !== "true" || !["Space", "Enter", "NumpadEnter"].includes(h.code) ||
|
|
608
|
+
h.target.dataset.bsPopFauxButton !== "true" || !["Space", "Enter", "NumpadEnter"].includes(h.code) || k(h);
|
|
608
609
|
}
|
|
609
610
|
return {
|
|
610
|
-
popAttrs:
|
|
611
|
+
popAttrs: g,
|
|
611
612
|
popSlotProps: u
|
|
612
613
|
};
|
|
613
614
|
}
|
|
@@ -2425,14 +2426,14 @@ const Vp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2425
2426
|
// DEPRECATED
|
|
2426
2427
|
active: {
|
|
2427
2428
|
deprecated: !0,
|
|
2428
|
-
default:
|
|
2429
|
+
default: void 0,
|
|
2429
2430
|
description: "Used with the filter prop to indicate a pill that is an active.",
|
|
2430
2431
|
type: Boolean,
|
|
2431
2432
|
typeDef: "boolean"
|
|
2432
2433
|
},
|
|
2433
2434
|
truncate: {
|
|
2434
2435
|
deprecated: !0,
|
|
2435
|
-
default:
|
|
2436
|
+
default: void 0,
|
|
2436
2437
|
description: "Will truncate and add elipses when text overflows.",
|
|
2437
2438
|
type: Boolean,
|
|
2438
2439
|
typeDef: "boolean"
|
|
@@ -3576,7 +3577,7 @@ const yl = ["id", "data-stacked"], ml = ["data-open"], gl = ["aria-controls", "a
|
|
|
3576
3577
|
function p() {
|
|
3577
3578
|
o("toggled", l.value), t.controlled || (a.value = !a.value);
|
|
3578
3579
|
}
|
|
3579
|
-
return (v,
|
|
3580
|
+
return (v, S) => (d(), y("div", {
|
|
3580
3581
|
id: b(l),
|
|
3581
3582
|
ref_key: "containerRef",
|
|
3582
3583
|
ref: i,
|
|
@@ -3640,8 +3641,8 @@ function vt(e, n = "button") {
|
|
|
3640
3641
|
return r.linkTo && typeof r.linkTo == "object" ? ((u = (c = e.router) == null ? void 0 : c.resolve(e.linkTo)) == null ? void 0 : u.path) || "" : r.linkTo || r.href;
|
|
3641
3642
|
}
|
|
3642
3643
|
function s(r, c) {
|
|
3643
|
-
const u = r === "a", p = r === "button", v = (
|
|
3644
|
-
|
|
3644
|
+
const u = r === "a", p = r === "button", v = (S) => {
|
|
3645
|
+
S.preventDefault(), S.stopImmediatePropagation();
|
|
3645
3646
|
};
|
|
3646
3647
|
return {
|
|
3647
3648
|
type: p ? c.type || "button" : void 0,
|
|
@@ -3711,24 +3712,24 @@ const kl = { key: 0 }, Dl = {
|
|
|
3711
3712
|
if (n.hoverEffect)
|
|
3712
3713
|
return n.iconPosition;
|
|
3713
3714
|
}), r = f(() => n.icon ? n.icon : n.iconPosition === "left" ? n.textBtn || n.size === "sm" ? So : Kt : n.textBtn || n.size === "sm" ? Bo : Gt), c = f(() => n.textBtn || !!(t != null && t.default)), u = f(() => c.value && n.iconPosition !== "left"), p = f(() => c.value && n.iconPosition === "left"), v = f(() => n.variant ? `color-${n.variant}` : void 0);
|
|
3714
|
-
return (
|
|
3715
|
+
return (S, g) => (d(), A(ie(b(o)), X({
|
|
3715
3716
|
class: "bs-circle-button",
|
|
3716
|
-
"data-disabled":
|
|
3717
|
+
"data-disabled": S.disabled,
|
|
3717
3718
|
"data-direction": s.value,
|
|
3718
|
-
"data-ghost":
|
|
3719
|
-
"data-size":
|
|
3719
|
+
"data-ghost": S.ghostBtn || void 0,
|
|
3720
|
+
"data-size": S.size || void 0,
|
|
3720
3721
|
"data-text": c.value || void 0,
|
|
3721
3722
|
"data-variant": v.value,
|
|
3722
3723
|
"data-component": "bs-circle-button"
|
|
3723
3724
|
}, { ...b(i), ...l.value }, { onClick: b(a) }), {
|
|
3724
3725
|
default: j(() => [
|
|
3725
3726
|
u.value ? (d(), y("span", kl, [
|
|
3726
|
-
L(
|
|
3727
|
-
Q(M(
|
|
3727
|
+
L(S.$slots, "default", {}, () => [
|
|
3728
|
+
Q(M(S.label), 1)
|
|
3728
3729
|
])
|
|
3729
3730
|
])) : P("", !0),
|
|
3730
3731
|
O("span", Dl, [
|
|
3731
|
-
L(
|
|
3732
|
+
L(S.$slots, "icon", {}, () => [
|
|
3732
3733
|
typeof r.value == "string" ? (d(), A(b(ze), {
|
|
3733
3734
|
key: 0,
|
|
3734
3735
|
name: r.value
|
|
@@ -3736,8 +3737,8 @@ const kl = { key: 0 }, Dl = {
|
|
|
3736
3737
|
])
|
|
3737
3738
|
]),
|
|
3738
3739
|
p.value ? (d(), y("span", Tl, [
|
|
3739
|
-
L(
|
|
3740
|
-
Q(M(
|
|
3740
|
+
L(S.$slots, "default", {}, () => [
|
|
3741
|
+
Q(M(S.label), 1)
|
|
3741
3742
|
])
|
|
3742
3743
|
])) : P("", !0)
|
|
3743
3744
|
]),
|
|
@@ -3935,8 +3936,8 @@ const kl = { key: 0 }, Dl = {
|
|
|
3935
3936
|
const n = e;
|
|
3936
3937
|
let t = [], o = !1, i;
|
|
3937
3938
|
const a = f(() => {
|
|
3938
|
-
const
|
|
3939
|
-
return
|
|
3939
|
+
const g = n.transitionDuration.toString();
|
|
3940
|
+
return g.startsWith("var(--") || g.startsWith("calc(") || g.endsWith("ms") ? g : g.startsWith("--") ? `var(${g})` : `${g}ms`;
|
|
3940
3941
|
});
|
|
3941
3942
|
G(() => n.active, () => {
|
|
3942
3943
|
n.active ? l() : s();
|
|
@@ -3945,36 +3946,36 @@ const kl = { key: 0 }, Dl = {
|
|
|
3945
3946
|
t = r(), o = c(), u(), v();
|
|
3946
3947
|
}
|
|
3947
3948
|
function s() {
|
|
3948
|
-
p(),
|
|
3949
|
+
p(), S();
|
|
3949
3950
|
}
|
|
3950
3951
|
function r() {
|
|
3951
|
-
const
|
|
3952
|
-
return Array.from(
|
|
3952
|
+
const g = document.querySelectorAll(n.inertSelector);
|
|
3953
|
+
return Array.from(g);
|
|
3953
3954
|
}
|
|
3954
3955
|
function c() {
|
|
3955
|
-
const
|
|
3956
|
-
if (
|
|
3957
|
-
return
|
|
3956
|
+
const g = document.scrollingElement;
|
|
3957
|
+
if (g)
|
|
3958
|
+
return g.scrollHeight > g.clientHeight;
|
|
3958
3959
|
}
|
|
3959
3960
|
function u() {
|
|
3960
|
-
t.forEach((
|
|
3961
|
+
t.forEach((g) => g.setAttribute("inert", ""));
|
|
3961
3962
|
}
|
|
3962
3963
|
function p() {
|
|
3963
|
-
t.forEach((
|
|
3964
|
+
t.forEach((g) => g.removeAttribute("inert"));
|
|
3964
3965
|
}
|
|
3965
3966
|
function v() {
|
|
3966
|
-
var
|
|
3967
|
-
o && (i = (
|
|
3967
|
+
var g;
|
|
3968
|
+
o && (i = (g = getComputedStyle(document.scrollingElement)) == null ? void 0 : g.scrollbarGutter, document.scrollingElement.style.scrollbarGutter = "stable"), document.body.setAttribute("data-scroll", !1);
|
|
3968
3969
|
}
|
|
3969
|
-
function
|
|
3970
|
+
function S() {
|
|
3970
3971
|
o && (document.scrollingElement.style.scrollbarGutter = i), document.body.removeAttribute("data-scroll");
|
|
3971
3972
|
}
|
|
3972
|
-
return (
|
|
3973
|
+
return (g, k) => (d(), A(wt, {
|
|
3973
3974
|
name: "bs-backdrop",
|
|
3974
3975
|
appear: ""
|
|
3975
3976
|
}, {
|
|
3976
3977
|
default: j(() => [
|
|
3977
|
-
|
|
3978
|
+
g.active ? (d(), y("div", {
|
|
3978
3979
|
key: 0,
|
|
3979
3980
|
class: "bs-backdrop",
|
|
3980
3981
|
style: Tt(`--bs-backdrop-transition-duration: ${a.value}`),
|
|
@@ -4308,19 +4309,19 @@ const kl = { key: 0 }, Dl = {
|
|
|
4308
4309
|
setup(e, { emit: n }) {
|
|
4309
4310
|
const t = e, o = n, i = C(null), a = C(null);
|
|
4310
4311
|
function l(v) {
|
|
4311
|
-
const
|
|
4312
|
-
v.dispatchEvent(
|
|
4312
|
+
const S = new Event("change", { bubbles: !0, cancelable: !0 });
|
|
4313
|
+
v.dispatchEvent(S);
|
|
4313
4314
|
}
|
|
4314
4315
|
function s(v) {
|
|
4315
|
-
const { value:
|
|
4316
|
-
i.value.value =
|
|
4316
|
+
const { value: S } = v.target, [g, k] = S.split(/ to | - /);
|
|
4317
|
+
i.value.value = g || "", a.value.value = k || "", l(i.value), l(a.value);
|
|
4317
4318
|
}
|
|
4318
4319
|
const r = pt(s, 1e3);
|
|
4319
4320
|
function c(v) {
|
|
4320
4321
|
o("ui-input"), r(v);
|
|
4321
4322
|
}
|
|
4322
4323
|
const u = f(() => t.listeners.start ? t.listeners.start : {}), p = f(() => t.listeners.end ? t.listeners.end : {});
|
|
4323
|
-
return (v,
|
|
4324
|
+
return (v, S) => (d(), A(en, {
|
|
4324
4325
|
disabled: e.disabled,
|
|
4325
4326
|
error: e.error
|
|
4326
4327
|
}, {
|
|
@@ -4333,7 +4334,7 @@ const kl = { key: 0 }, Dl = {
|
|
|
4333
4334
|
"model-value": e.inputValueFmt,
|
|
4334
4335
|
placeholder: e.placeholder,
|
|
4335
4336
|
required: e.required,
|
|
4336
|
-
onFocusin:
|
|
4337
|
+
onFocusin: S[0] || (S[0] = (g) => v.$emit("ui-focusin")),
|
|
4337
4338
|
onInput: c,
|
|
4338
4339
|
onChange: s
|
|
4339
4340
|
}, null, 8, ["disabled", "id", "model-value", "placeholder", "required"]),
|
|
@@ -4357,7 +4358,7 @@ const kl = { key: 0 }, Dl = {
|
|
|
4357
4358
|
"aria-label": "Clear",
|
|
4358
4359
|
type: "button",
|
|
4359
4360
|
class: "bs-calendar-clear-btn",
|
|
4360
|
-
onClick:
|
|
4361
|
+
onClick: S[1] || (S[1] = (g) => v.$emit("clear"))
|
|
4361
4362
|
}, [
|
|
4362
4363
|
q(b(xe), {
|
|
4363
4364
|
size: "sm",
|
|
@@ -4416,7 +4417,7 @@ const Gl = ["data-range"], ao = "(min-width: 752px)", vf = /* @__PURE__ */ Objec
|
|
|
4416
4417
|
var w;
|
|
4417
4418
|
return (w = t.exclusiveDates) != null && w.length ? I(t.exclusiveDates) : t.disabledDates;
|
|
4418
4419
|
}
|
|
4419
|
-
), v = f(() => t.inputId || l.value),
|
|
4420
|
+
), v = f(() => t.inputId || l.value), S = f(() => ({ range: t.isRange })), g = f(() => t.showClear && t.modelValue && !t.disabled), k = f(() => !!(t.error && t.errorMsg || t.hint)), m = f(() => t.step), h = f(() => t.variant);
|
|
4420
4421
|
Kl(a), ot(
|
|
4421
4422
|
ao,
|
|
4422
4423
|
(w) => i.value = w != null && w.matches && h.value == "2-col" ? 2 : 1,
|
|
@@ -4426,12 +4427,12 @@ const Gl = ["data-range"], ao = "(min-width: 752px)", vf = /* @__PURE__ */ Objec
|
|
|
4426
4427
|
(w) => r.value = w != null && w.matches && h.value == "2-col" ? m.value : 1,
|
|
4427
4428
|
[m, h]
|
|
4428
4429
|
), oe(() => {
|
|
4429
|
-
t.inputMode || setTimeout(
|
|
4430
|
+
t.inputMode || setTimeout(D, 100);
|
|
4430
4431
|
}), G(() => {
|
|
4431
4432
|
var w, T;
|
|
4432
4433
|
return (T = (w = o.value) == null ? void 0 : w.popoverRef) == null ? void 0 : T.isVisible;
|
|
4433
4434
|
}, (w) => {
|
|
4434
|
-
w && setTimeout(
|
|
4435
|
+
w && setTimeout(D, 100);
|
|
4435
4436
|
});
|
|
4436
4437
|
function B(w) {
|
|
4437
4438
|
return t.isRange && w.start && w.end ? `${w.start} to ${w.end}` : !t.isRange && w ? w : "";
|
|
@@ -4450,7 +4451,7 @@ const Gl = ["data-range"], ao = "(min-width: 752px)", vf = /* @__PURE__ */ Objec
|
|
|
4450
4451
|
function N(w) {
|
|
4451
4452
|
!t.isRange || a.value.contains(w.relatedTarget) || o.value.hidePopover();
|
|
4452
4453
|
}
|
|
4453
|
-
function
|
|
4454
|
+
function D() {
|
|
4454
4455
|
const w = a.value.querySelector("button.vc-prev"), T = a.value.querySelector("button.vc-next");
|
|
4455
4456
|
w && w.setAttribute("aria-label", "Previous month"), T && T.setAttribute("aria-label", "Next month");
|
|
4456
4457
|
}
|
|
@@ -4484,7 +4485,7 @@ const Gl = ["data-range"], ao = "(min-width: 752px)", vf = /* @__PURE__ */ Objec
|
|
|
4484
4485
|
"min-date": w.minDate,
|
|
4485
4486
|
mode: "date",
|
|
4486
4487
|
"model-value": w.modelValue,
|
|
4487
|
-
"model-modifiers":
|
|
4488
|
+
"model-modifiers": S.value,
|
|
4488
4489
|
popover: { visibility: "focus" },
|
|
4489
4490
|
rows: 1,
|
|
4490
4491
|
step: r.value,
|
|
@@ -4502,7 +4503,7 @@ const Gl = ["data-range"], ao = "(min-width: 752px)", vf = /* @__PURE__ */ Objec
|
|
|
4502
4503
|
"input-value-fmt": B(x),
|
|
4503
4504
|
listeners: W,
|
|
4504
4505
|
placeholder: w.placeholder,
|
|
4505
|
-
"show-clear":
|
|
4506
|
+
"show-clear": g.value,
|
|
4506
4507
|
required: w.required,
|
|
4507
4508
|
onUiFocusin: K,
|
|
4508
4509
|
onUiInput: K,
|
|
@@ -4515,7 +4516,7 @@ const Gl = ["data-range"], ao = "(min-width: 752px)", vf = /* @__PURE__ */ Objec
|
|
|
4515
4516
|
listeners: W,
|
|
4516
4517
|
"model-value": B(x),
|
|
4517
4518
|
placeholder: w.placeholder,
|
|
4518
|
-
"show-clear":
|
|
4519
|
+
"show-clear": g.value,
|
|
4519
4520
|
required: w.required,
|
|
4520
4521
|
onClear: T[0] || (T[0] = (te) => w.$emit("clear"))
|
|
4521
4522
|
}, null, 8, ["disabled", "error", "input-id", "listeners", "model-value", "placeholder", "show-clear", "required"]))
|
|
@@ -4523,7 +4524,7 @@ const Gl = ["data-range"], ao = "(min-width: 752px)", vf = /* @__PURE__ */ Objec
|
|
|
4523
4524
|
key: "0"
|
|
4524
4525
|
} : void 0
|
|
4525
4526
|
]), 1040, ["columns", "disabled-dates", "max-date", "min-date", "model-value", "model-modifiers", "step"]),
|
|
4526
|
-
|
|
4527
|
+
k.value ? (d(), A(qe, {
|
|
4527
4528
|
key: 1,
|
|
4528
4529
|
error: w.error,
|
|
4529
4530
|
"error-msg": w.errorMsg,
|
|
@@ -4621,8 +4622,8 @@ const Gl = ["data-range"], ao = "(min-width: 752px)", vf = /* @__PURE__ */ Objec
|
|
|
4621
4622
|
},
|
|
4622
4623
|
setup(e) {
|
|
4623
4624
|
const n = e, t = C(!1), o = (u) => {
|
|
4624
|
-
const p = new Date(u), v = p.toTimeString().split(" ")[0],
|
|
4625
|
-
return `${v} (${
|
|
4625
|
+
const p = new Date(u), v = p.toTimeString().split(" ")[0], S = p.toDateString().split(" ").slice(1, 3).join(" ");
|
|
4626
|
+
return `${v} (${S})`;
|
|
4626
4627
|
}, i = f(() => {
|
|
4627
4628
|
var u;
|
|
4628
4629
|
return !((u = n.dataIdxLabels) != null && u.length);
|
|
@@ -4631,13 +4632,13 @@ const Gl = ["data-range"], ao = "(min-width: 752px)", vf = /* @__PURE__ */ Objec
|
|
|
4631
4632
|
try {
|
|
4632
4633
|
return u.map((p) => {
|
|
4633
4634
|
const v = p.label;
|
|
4634
|
-
let
|
|
4635
|
-
if (p.data.some((
|
|
4636
|
-
const
|
|
4637
|
-
|
|
4635
|
+
let S = [];
|
|
4636
|
+
if (p.data.some((g) => (g == null ? void 0 : g.x) && (g == null ? void 0 : g.y))) {
|
|
4637
|
+
const g = p.data.reduce((k, m) => (k[m.x] = m.y, k), {});
|
|
4638
|
+
S = n.dataIdxLabels.map((k) => ({ value: g[k] ?? null }));
|
|
4638
4639
|
} else
|
|
4639
|
-
|
|
4640
|
-
return { rowLabel: v, dataCells:
|
|
4640
|
+
S = p.data.map((g) => ({ value: g }));
|
|
4641
|
+
return { rowLabel: v, dataCells: S };
|
|
4641
4642
|
});
|
|
4642
4643
|
} catch {
|
|
4643
4644
|
return [];
|
|
@@ -4645,16 +4646,16 @@ const Gl = ["data-range"], ao = "(min-width: 752px)", vf = /* @__PURE__ */ Objec
|
|
|
4645
4646
|
}
|
|
4646
4647
|
function l(u) {
|
|
4647
4648
|
try {
|
|
4648
|
-
const p = u.reduce((
|
|
4649
|
-
const m =
|
|
4650
|
-
return [...
|
|
4649
|
+
const p = u.reduce((g, k) => {
|
|
4650
|
+
const m = k.data.map((h) => h == null ? void 0 : h.x);
|
|
4651
|
+
return [...g, ...m];
|
|
4651
4652
|
}, []), v = Array.from(new Set(p));
|
|
4652
|
-
return (n.xAxisType === "time" || n.xAxisType === "linear") && v.sort((
|
|
4653
|
-
const
|
|
4653
|
+
return (n.xAxisType === "time" || n.xAxisType === "linear") && v.sort((g, k) => (typeof g == "string" && typeof k == "string" && (g = g.toLowerCase(), k = k.toLowerCase()), g < k ? -1 : g > k ? 1 : 0)), v.map((g) => {
|
|
4654
|
+
const k = { rowLabel: g }, m = [];
|
|
4654
4655
|
return u.forEach((h) => {
|
|
4655
|
-
const B = { datasetLabel: h.label }, I = h.data.find((N) => N.x ===
|
|
4656
|
+
const B = { datasetLabel: h.label }, I = h.data.find((N) => N.x === g);
|
|
4656
4657
|
B.value = I ? I.y : null, m.push(B);
|
|
4657
|
-
}),
|
|
4658
|
+
}), k.dataCells = m, n.xAxisType === "time" && (k.rowLabelFmt = o(g)), k;
|
|
4658
4659
|
});
|
|
4659
4660
|
} catch {
|
|
4660
4661
|
return [];
|
|
@@ -4696,9 +4697,9 @@ const Gl = ["data-range"], ao = "(min-width: 752px)", vf = /* @__PURE__ */ Objec
|
|
|
4696
4697
|
key: v.rowLabelFmt || v.rowLabel
|
|
4697
4698
|
}, [
|
|
4698
4699
|
O("th", Jl, M(v.rowLabelFmt || v.rowLabel), 1),
|
|
4699
|
-
(d(!0), y(_, null, ue(v.dataCells, (
|
|
4700
|
-
key: `${v.rowLabelFmt || v.rowLabel}${
|
|
4701
|
-
}, M(
|
|
4700
|
+
(d(!0), y(_, null, ue(v.dataCells, (S) => (d(), y("td", {
|
|
4701
|
+
key: `${v.rowLabelFmt || v.rowLabel}${S.datasetLabel}${S.value}`
|
|
4702
|
+
}, M(S.value), 1))), 128))
|
|
4702
4703
|
]))), 128))
|
|
4703
4704
|
])
|
|
4704
4705
|
], 8, Yl)) : P("", !0)
|
|
@@ -4748,12 +4749,12 @@ function tr(e, n) {
|
|
|
4748
4749
|
const B = `[data-dataset-index="${m}"][data-label-index="${h}"]`, I = i.value.querySelector(B);
|
|
4749
4750
|
(N = I == null ? void 0 : I.focus) == null || N.call(I);
|
|
4750
4751
|
}
|
|
4751
|
-
function
|
|
4752
|
+
function S(...m) {
|
|
4752
4753
|
!c || !t.value || (sn.register(...m), sn.defaults.font.family = "'Roobert', sans-serif", r = new sn(t.value, c));
|
|
4753
4754
|
}
|
|
4754
|
-
const
|
|
4755
|
+
const g = pt(function(m) {
|
|
4755
4756
|
c && (c.updateOptions(m), r.options = c.options, r.update());
|
|
4756
|
-
}, 100),
|
|
4757
|
+
}, 100), k = pt(function(m) {
|
|
4757
4758
|
c && (c.updateData(m), r.data = c.data, r.update());
|
|
4758
4759
|
}, 100);
|
|
4759
4760
|
return ot(
|
|
@@ -4780,9 +4781,9 @@ function tr(e, n) {
|
|
|
4780
4781
|
() => n.yLabel,
|
|
4781
4782
|
() => n.yMin,
|
|
4782
4783
|
() => n.yMax
|
|
4783
|
-
], () =>
|
|
4784
|
+
], () => g(n)), G(
|
|
4784
4785
|
o,
|
|
4785
|
-
(m) =>
|
|
4786
|
+
(m) => g(Xt(
|
|
4786
4787
|
{},
|
|
4787
4788
|
n,
|
|
4788
4789
|
m ? s : l
|
|
@@ -4792,12 +4793,12 @@ function tr(e, n) {
|
|
|
4792
4793
|
() => n.data,
|
|
4793
4794
|
() => n.dataIdxLabels
|
|
4794
4795
|
],
|
|
4795
|
-
() =>
|
|
4796
|
+
() => k(n),
|
|
4796
4797
|
{ deep: !0 }
|
|
4797
4798
|
), {
|
|
4798
4799
|
canvasRef: t,
|
|
4799
4800
|
legendListRef: i,
|
|
4800
|
-
registerChart:
|
|
4801
|
+
registerChart: S
|
|
4801
4802
|
};
|
|
4802
4803
|
}
|
|
4803
4804
|
const nr = (e) => ({
|
|
@@ -4891,7 +4892,7 @@ function Wn() {
|
|
|
4891
4892
|
};
|
|
4892
4893
|
}
|
|
4893
4894
|
function Hn(e) {
|
|
4894
|
-
var
|
|
4895
|
+
var S, g;
|
|
4895
4896
|
const {
|
|
4896
4897
|
dataIdxLabels: n,
|
|
4897
4898
|
showXGrid: t,
|
|
@@ -4942,7 +4943,7 @@ function Hn(e) {
|
|
|
4942
4943
|
}
|
|
4943
4944
|
}
|
|
4944
4945
|
};
|
|
4945
|
-
return (a === "time" || ((
|
|
4946
|
+
return (a === "time" || ((g = (S = u == null ? void 0 : u.scales) == null ? void 0 : S.x) == null ? void 0 : g.type) === "time") && (v.x.ticks.source = n != null && n.length ? "labels" : "auto", v.x.time = {
|
|
4946
4947
|
tooltipFormat: "dd MMM yyyy : h:mm bbb"
|
|
4947
4948
|
}), v;
|
|
4948
4949
|
}
|
|
@@ -5270,21 +5271,21 @@ const rr = {
|
|
|
5270
5271
|
const t = e;
|
|
5271
5272
|
ee(t, "inputId", void 0, "Set 'id' directly on the component instead.");
|
|
5272
5273
|
const o = n, [i] = fe(), { filtered: a, remaining: l } = Oe(["class", "style"]), s = C(null), r = f(() => t.inputId || i.value), c = f(() => t.checked || v.value), u = f(() => t.indeterminate || t.checkedPartially), p = f(() => Array.isArray(t.modelValue) && t.value), v = f(() => p.value && t.modelValue.includes(t.value) || typeof t.modelValue == "boolean" && t.modelValue);
|
|
5273
|
-
function
|
|
5274
|
+
function S() {
|
|
5274
5275
|
s.value && (s.value.indeterminate = u.value && !c.value);
|
|
5275
5276
|
}
|
|
5276
|
-
function
|
|
5277
|
+
function g(h) {
|
|
5277
5278
|
o("update:modelValue", h);
|
|
5278
5279
|
}
|
|
5279
|
-
function
|
|
5280
|
+
function k(h) {
|
|
5280
5281
|
const B = [...t.modelValue];
|
|
5281
5282
|
h ? B.push(t.value) : B.splice(B.indexOf(t.value), 1), o("update:modelValue", B);
|
|
5282
5283
|
}
|
|
5283
5284
|
function m(h) {
|
|
5284
5285
|
const { checked: B } = h.target;
|
|
5285
|
-
p.value ?
|
|
5286
|
+
p.value ? k(B) : g(B);
|
|
5286
5287
|
}
|
|
5287
|
-
return G(c,
|
|
5288
|
+
return G(c, S), G(u, S), oe(S), (h, B) => (d(), y("div", X({
|
|
5288
5289
|
class: "bs-boolean",
|
|
5289
5290
|
"data-component": "bs-checkbox",
|
|
5290
5291
|
"data-disabled": e.disabled,
|
|
@@ -5397,8 +5398,8 @@ const vr = {
|
|
|
5397
5398
|
if (Ke.indexOf(r) === Ke.length - 1 && c.active && s.key === "Tab") {
|
|
5398
5399
|
const p = e.querySelectorAll(c.selector);
|
|
5399
5400
|
if (p.length > 0) {
|
|
5400
|
-
const v = p[0],
|
|
5401
|
-
document.activeElement === v && s.shiftKey ? t(s,
|
|
5401
|
+
const v = p[0], S = p[p.length - 1];
|
|
5402
|
+
document.activeElement === v && s.shiftKey ? t(s, S, c) : document.activeElement === S && !s.shiftKey ? o(s, v, c) : e.contains(document.activeElement) || i(s, v);
|
|
5402
5403
|
}
|
|
5403
5404
|
}
|
|
5404
5405
|
}
|
|
@@ -5509,18 +5510,18 @@ const $r = ["id"], Ir = ["id", "data-size", "data-place-self", "role", "aria-lab
|
|
|
5509
5510
|
`#${t.teleportTargetId}`,
|
|
5510
5511
|
"#bs-toast-teleport-target",
|
|
5511
5512
|
"script"
|
|
5512
|
-
].join(",")})`,
|
|
5513
|
+
].join(",")})`, S = C(), g = C(""), k = f(() => a.openIds.value.includes(t.id)), m = f(() => t.anchor || a.anchorsByPopId.value[t.id]), h = f(() => m.value === "viewport"), B = f(() => {
|
|
5513
5514
|
if (i["aria-label"]) return;
|
|
5514
5515
|
const $ = i["aria-labelledby"];
|
|
5515
|
-
return $ || (
|
|
5516
|
+
return $ || (S.value ? S.value : h.value ? a.anchorsByPopId.value[t.id] : m.value);
|
|
5516
5517
|
}), I = f(() => {
|
|
5517
5518
|
const $ = h.value ? "center" : "top";
|
|
5518
5519
|
return t.place || $;
|
|
5519
5520
|
}), N = f(() => {
|
|
5520
5521
|
const $ = t.transitionDuration.toString();
|
|
5521
5522
|
return $.startsWith("var(--") || $.startsWith("calc(") || $.endsWith("ms") ? $ : $.startsWith("--") ? `var(${$})` : `${$}ms`;
|
|
5522
|
-
}),
|
|
5523
|
-
active: t.trapFocus &&
|
|
5523
|
+
}), D = f(() => ({
|
|
5524
|
+
active: t.trapFocus && k.value,
|
|
5524
5525
|
preventFirstShiftTab: t.preventFirstShiftTab,
|
|
5525
5526
|
preventLastTab: t.preventLastTab,
|
|
5526
5527
|
selectorPrefix: t.selectorPrefix
|
|
@@ -5528,8 +5529,8 @@ const $r = ["id"], Ir = ["id", "data-size", "data-place-self", "role", "aria-lab
|
|
|
5528
5529
|
var $;
|
|
5529
5530
|
return (($ = a.popIdsByTrigger.value.popHover) == null ? void 0 : $.includes(t.id)) || t.type === "tooltip";
|
|
5530
5531
|
}), T = f(() => h.value ? null : u.value), x = f(() => h.value ? null : c.value);
|
|
5531
|
-
G(
|
|
5532
|
-
ge(),
|
|
5532
|
+
G(k, () => {
|
|
5533
|
+
ge(), k.value ? Z() : ae();
|
|
5533
5534
|
}), G(m, ge), G(a.lastCancelledId, ($) => t.id === $ && he("cancel")), G(a.lastConfirmedId, ($) => t.id === $ && he("confirm")), G(() => t.preventAutoClose, R, { immediate: !0 }), G(() => t.preventClose, we, { immediate: !0 }), G(() => t.preventCloseEsc, De, { immediate: !0 }), G(() => t.preventCloseOutside, Te, { immediate: !0 }), G(() => t.id, ($, Y) => {
|
|
5534
5535
|
te(Y), K($), R(), we(), De(), Te();
|
|
5535
5536
|
}), yr({
|
|
@@ -5556,13 +5557,13 @@ const $r = ["id"], Ir = ["id", "data-size", "data-place-self", "role", "aria-lab
|
|
|
5556
5557
|
a.unregister($);
|
|
5557
5558
|
}
|
|
5558
5559
|
function re($) {
|
|
5559
|
-
|
|
5560
|
+
S.value = $;
|
|
5560
5561
|
}
|
|
5561
5562
|
function he($) {
|
|
5562
5563
|
o($, { id: t.id });
|
|
5563
5564
|
}
|
|
5564
5565
|
function ge() {
|
|
5565
|
-
if (!
|
|
5566
|
+
if (!k.value || h.value || !m.value) {
|
|
5566
5567
|
u.value = null, be();
|
|
5567
5568
|
return;
|
|
5568
5569
|
}
|
|
@@ -5574,7 +5575,7 @@ const $r = ["id"], Ir = ["id", "data-size", "data-place-self", "role", "aria-lab
|
|
|
5574
5575
|
}
|
|
5575
5576
|
}
|
|
5576
5577
|
function be() {
|
|
5577
|
-
|
|
5578
|
+
g.value = t.size === "anchor" && u.value ? `--bs-popover-width: ${u.value.offsetWidth}px` : "";
|
|
5578
5579
|
}
|
|
5579
5580
|
function we() {
|
|
5580
5581
|
t.preventClose ? (a.removeEsc(t.id), a.removeOutsideClick(t.id)) : (a.addEsc(t.id), a.addOutsideClick(t.id));
|
|
@@ -5633,14 +5634,14 @@ const $r = ["id"], Ir = ["id", "data-size", "data-place-self", "role", "aria-lab
|
|
|
5633
5634
|
onAfterLeave: Y[3] || (Y[3] = (V) => o("after-close", { id: $.id }))
|
|
5634
5635
|
}, {
|
|
5635
5636
|
default: j(() => [
|
|
5636
|
-
$.persist ||
|
|
5637
|
+
$.persist || k.value ? me((d(), y("div", {
|
|
5637
5638
|
key: 0,
|
|
5638
5639
|
id: `${$.id}-wrap`,
|
|
5639
5640
|
class: "bs-popover-wrap"
|
|
5640
5641
|
}, [
|
|
5641
5642
|
$.backdrop ? (d(), A(Al, {
|
|
5642
5643
|
key: 0,
|
|
5643
|
-
active:
|
|
5644
|
+
active: k.value,
|
|
5644
5645
|
"inert-selector": v
|
|
5645
5646
|
}, null, 8, ["active"])) : P("", !0),
|
|
5646
5647
|
me((d(), y("div", X({ id: $.id }, $.$attrs, {
|
|
@@ -5648,7 +5649,7 @@ const $r = ["id"], Ir = ["id", "data-size", "data-place-self", "role", "aria-lab
|
|
|
5648
5649
|
class: "bs-popover",
|
|
5649
5650
|
"data-size": $.size,
|
|
5650
5651
|
"data-place-self": h.value ? I.value : void 0,
|
|
5651
|
-
style: [!h.value && b(W),
|
|
5652
|
+
style: [!h.value && b(W), g.value],
|
|
5652
5653
|
role: $.role,
|
|
5653
5654
|
"aria-labelledby": B.value,
|
|
5654
5655
|
"aria-modal": $.backdrop || void 0,
|
|
@@ -5662,10 +5663,10 @@ const $r = ["id"], Ir = ["id", "data-size", "data-place-self", "role", "aria-lab
|
|
|
5662
5663
|
"pop-cancel": "self"
|
|
5663
5664
|
})) : P("", !0)
|
|
5664
5665
|
], 16, Ir)), [
|
|
5665
|
-
[b(vr),
|
|
5666
|
+
[b(vr), D.value]
|
|
5666
5667
|
])
|
|
5667
5668
|
], 8, $r)), [
|
|
5668
|
-
[Ce, $.persist ?
|
|
5669
|
+
[Ce, $.persist ? k.value : !0]
|
|
5669
5670
|
]) : P("", !0)
|
|
5670
5671
|
]),
|
|
5671
5672
|
_: 3
|
|
@@ -5733,26 +5734,26 @@ const Or = ["data-hide-input"], Pr = {
|
|
|
5733
5734
|
emits: ["update:modelValue"],
|
|
5734
5735
|
setup(e) {
|
|
5735
5736
|
const n = e, t = Me(e, "modelValue"), o = ce(nn, null), i = Cr(), { filtered: a, remaining: l } = Oe(["class", "style"]), s = C(!1), r = C(!1), c = f(() => t.value.length >= n.minChars), u = f(() => c.value ? t.value : ""), p = f(() => {
|
|
5736
|
-
const
|
|
5737
|
-
return [!0, "true"].includes(
|
|
5737
|
+
const D = n.debounce;
|
|
5738
|
+
return [!0, "true"].includes(D) ? 300 : [void 0, null, !1, "false"].includes(D) ? 0 : D;
|
|
5738
5739
|
}), v = f(() => {
|
|
5739
|
-
const
|
|
5740
|
-
return pt(
|
|
5741
|
-
}), g = f(() => {
|
|
5742
|
-
if (c.value) return "";
|
|
5743
|
-
const k = n.minChars - t.value.length;
|
|
5744
|
-
return `Please enter ${k} more character${k === 1 ? "" : "s"}.`;
|
|
5740
|
+
const D = n.filterExternal ? k : N;
|
|
5741
|
+
return pt(D, p.value);
|
|
5745
5742
|
}), S = f(() => {
|
|
5746
|
-
if (
|
|
5743
|
+
if (c.value) return "";
|
|
5744
|
+
const D = n.minChars - t.value.length;
|
|
5745
|
+
return `Please enter ${D} more character${D === 1 ? "" : "s"}.`;
|
|
5746
|
+
}), g = f(() => {
|
|
5747
|
+
if (S.value) return S.value;
|
|
5747
5748
|
if (r.value || i.isPendingRequest.value) return "Searching...";
|
|
5748
|
-
const
|
|
5749
|
-
return !r.value && u.value.length && !
|
|
5749
|
+
const D = Object.values(o.optionsById.value);
|
|
5750
|
+
return !r.value && u.value.length && !D.length || !n.filterExternal && u.value.length && !D.some((w) => w.isVisible.value) ? "No results found." : "";
|
|
5750
5751
|
});
|
|
5751
|
-
G(t, (
|
|
5752
|
-
!
|
|
5752
|
+
G(t, (D, w) => {
|
|
5753
|
+
!D && !w || (r.value = p.value > 0, t.value && c.value ? v.value() : v.value.trigger());
|
|
5753
5754
|
}, { immediate: !0 }), oe(() => {
|
|
5754
|
-
var
|
|
5755
|
-
if (n.preventReset && ((
|
|
5755
|
+
var D;
|
|
5756
|
+
if (n.preventReset && ((D = o.filter.value.query) != null && D.value)) {
|
|
5756
5757
|
t.value = o.filter.value.query.value;
|
|
5757
5758
|
return;
|
|
5758
5759
|
}
|
|
@@ -5760,10 +5761,10 @@ const Or = ["data-hide-input"], Pr = {
|
|
|
5760
5761
|
}), Ie(() => {
|
|
5761
5762
|
o.unregisterFilter();
|
|
5762
5763
|
});
|
|
5763
|
-
function D
|
|
5764
|
+
function k(D = u.value) {
|
|
5764
5765
|
if (i.abortPreviousRequest(), n.onQuery) {
|
|
5765
5766
|
const w = { abortSignal: i.getSignal() };
|
|
5766
|
-
i.trackRequest(() => n.onQuery(
|
|
5767
|
+
i.trackRequest(() => n.onQuery(D, w));
|
|
5767
5768
|
}
|
|
5768
5769
|
r.value = !1;
|
|
5769
5770
|
}
|
|
@@ -5774,25 +5775,25 @@ const Or = ["data-hide-input"], Pr = {
|
|
|
5774
5775
|
m();
|
|
5775
5776
|
}
|
|
5776
5777
|
function B() {
|
|
5777
|
-
v.value.clear(), n.preventReset || (t.value = ""),
|
|
5778
|
+
v.value.clear(), n.preventReset || (t.value = ""), k("");
|
|
5778
5779
|
}
|
|
5779
5780
|
function I() {
|
|
5780
5781
|
t.value = "", m();
|
|
5781
5782
|
}
|
|
5782
5783
|
function N() {
|
|
5783
|
-
const
|
|
5784
|
+
const D = n.filterKey, w = {
|
|
5784
5785
|
undefined: (W) => W.templateRef.value.innerText,
|
|
5785
5786
|
string: (W) => W.props.value[n.filterKey],
|
|
5786
5787
|
function: (W) => n.filterKey(W.props.value)
|
|
5787
|
-
}, T = Object.values(o.optionsById.value), x = w[typeof
|
|
5788
|
+
}, T = Object.values(o.optionsById.value), x = w[typeof D];
|
|
5788
5789
|
T.forEach((W) => {
|
|
5789
5790
|
W.isVisible.value = c.value ? x(W).toLowerCase().includes(t.value.toLowerCase()) : !0;
|
|
5790
|
-
}),
|
|
5791
|
+
}), k();
|
|
5791
5792
|
}
|
|
5792
|
-
return (
|
|
5793
|
-
"data-hide-input":
|
|
5793
|
+
return (D, w) => (d(), y("div", X({ class: "bs-dropdown-filter" }, b(a), {
|
|
5794
|
+
"data-hide-input": D.hideInput || void 0
|
|
5794
5795
|
}), [
|
|
5795
|
-
|
|
5796
|
+
D.hideInput ? P("", !0) : (d(), y("div", Pr, [
|
|
5796
5797
|
q(b(Do), {
|
|
5797
5798
|
class: "bs-dropdown-filter-icon",
|
|
5798
5799
|
"aria-hidden": "true"
|
|
@@ -5804,7 +5805,7 @@ const Or = ["data-hide-input"], Pr = {
|
|
|
5804
5805
|
"onUpdate:modelValue": w[0] || (w[0] = (T) => t.value = T),
|
|
5805
5806
|
modelModifiers: { trim: !0 }
|
|
5806
5807
|
}, b(l), {
|
|
5807
|
-
placeholder:
|
|
5808
|
+
placeholder: D.placeholder,
|
|
5808
5809
|
onBlur: w[1] || (w[1] = (T) => s.value = !1)
|
|
5809
5810
|
}), null, 16, ["modelValue", "placeholder"]), [
|
|
5810
5811
|
[b(ki), s.value]
|
|
@@ -5819,7 +5820,7 @@ const Or = ["data-hide-input"], Pr = {
|
|
|
5819
5820
|
q(b(xe), { size: "sm" })
|
|
5820
5821
|
])) : P("", !0)
|
|
5821
5822
|
])),
|
|
5822
|
-
|
|
5823
|
+
g.value ? (d(), y("p", Ar, M(g.value), 1)) : P("", !0)
|
|
5823
5824
|
], 16, Or));
|
|
5824
5825
|
}
|
|
5825
5826
|
});
|
|
@@ -5831,13 +5832,13 @@ function Lr(e, n, t, o) {
|
|
|
5831
5832
|
const m = Object.values(n.value), h = [], B = [];
|
|
5832
5833
|
let I;
|
|
5833
5834
|
for (let N = 0; N < m.length; N++) {
|
|
5834
|
-
const
|
|
5835
|
-
|
|
5835
|
+
const D = m[N];
|
|
5836
|
+
D.isVisible.value && !D.props.disabled && (D.groupId !== I && (h.push(...B), B.length = 0, I = D.groupId), D.isSelectedToTop.value ? h.push(D.templateRef.value) : B.push(D.templateRef.value));
|
|
5836
5837
|
}
|
|
5837
5838
|
return h.push(...B), h;
|
|
5838
5839
|
}), s = f(() => i.value !== -1 ? l.value[i.value].getAttribute("id") : null);
|
|
5839
5840
|
Ie(() => {
|
|
5840
|
-
|
|
5841
|
+
g();
|
|
5841
5842
|
});
|
|
5842
5843
|
function r(m = -1) {
|
|
5843
5844
|
if (i.value === -1) {
|
|
@@ -5852,8 +5853,8 @@ function Lr(e, n, t, o) {
|
|
|
5852
5853
|
root: t.value,
|
|
5853
5854
|
rootMargin: "0px 0px 0px 0px"
|
|
5854
5855
|
}, B = new IntersectionObserver((N) => {
|
|
5855
|
-
const
|
|
5856
|
-
m(
|
|
5856
|
+
const D = N.reduce((w, T) => T.isIntersecting ? w + 1 : w, 0);
|
|
5857
|
+
m(D - 1), B.disconnect();
|
|
5857
5858
|
}, h);
|
|
5858
5859
|
t.value.querySelectorAll('.bs-option[data-visible="true"]').forEach((N) => B.observe(N));
|
|
5859
5860
|
}
|
|
@@ -5911,24 +5912,24 @@ function Lr(e, n, t, o) {
|
|
|
5911
5912
|
l.value[I].textContent.trim().toLowerCase().startsWith(a.keysTyped) && (i.value = I, t.value.focus(), m.preventDefault(), B = !0), I++;
|
|
5912
5913
|
}
|
|
5913
5914
|
}
|
|
5914
|
-
function
|
|
5915
|
+
function S() {
|
|
5915
5916
|
var m;
|
|
5916
5917
|
document.addEventListener("keydown", u), document.addEventListener("keydown", v), (m = t.value) == null || m.addEventListener("keydown", p);
|
|
5917
5918
|
}
|
|
5918
|
-
function
|
|
5919
|
+
function g() {
|
|
5919
5920
|
var m;
|
|
5920
5921
|
document.removeEventListener("keydown", u), document.removeEventListener("keydown", v), (m = t.value) == null || m.removeEventListener("keydown", p);
|
|
5921
5922
|
}
|
|
5922
|
-
function
|
|
5923
|
+
function k() {
|
|
5923
5924
|
i.value = -1;
|
|
5924
5925
|
}
|
|
5925
5926
|
return {
|
|
5926
5927
|
activeOptionId: s,
|
|
5927
5928
|
filteredOptions: l,
|
|
5928
|
-
addTraverseListListener:
|
|
5929
|
+
addTraverseListListener: S,
|
|
5929
5930
|
initActiveIndex: r,
|
|
5930
|
-
removeTraverseListListener:
|
|
5931
|
-
resetActiveIndex:
|
|
5931
|
+
removeTraverseListListener: g,
|
|
5932
|
+
resetActiveIndex: k
|
|
5932
5933
|
};
|
|
5933
5934
|
}
|
|
5934
5935
|
const zr = { class: "bs-dropdown-mobile-header" }, xr = {
|
|
@@ -5963,15 +5964,15 @@ const zr = { class: "bs-dropdown-mobile-header" }, xr = {
|
|
|
5963
5964
|
}), ot("(max-width: 1165px)", (z) => {
|
|
5964
5965
|
u.value = z.matches;
|
|
5965
5966
|
});
|
|
5966
|
-
const s = ut({}), r = ut({}), c = C(!1), u = C(!1), p = f(() => n.persist ? "afterClose" : "close"), v = f(() => n.filter || n.filterKey || n.filterExternal),
|
|
5967
|
+
const s = ut({}), r = ut({}), c = C(!1), u = C(!1), p = f(() => n.persist ? "afterClose" : "close"), v = f(() => n.filter || n.filterKey || n.filterExternal), S = f(() => {
|
|
5967
5968
|
if (B.value.length > 0 && l.isOpen(n.id))
|
|
5968
5969
|
return 0;
|
|
5969
|
-
}),
|
|
5970
|
+
}), g = f(() => n.mobileSheet === "tablet" && u.value || n.mobileSheet === "mobile" && c.value), k = f(() => g.value ? "viewport" : n.anchor), m = f(() => g.value ? "bottom" : n.place), {
|
|
5970
5971
|
activeOptionId: h,
|
|
5971
5972
|
filteredOptions: B,
|
|
5972
5973
|
addTraverseListListener: I,
|
|
5973
5974
|
initActiveIndex: N,
|
|
5974
|
-
removeTraverseListListener:
|
|
5975
|
+
removeTraverseListListener: D,
|
|
5975
5976
|
resetActiveIndex: w
|
|
5976
5977
|
} = Lr(n, s, a, v);
|
|
5977
5978
|
Be(nn, {
|
|
@@ -6015,7 +6016,7 @@ const zr = { class: "bs-dropdown-mobile-header" }, xr = {
|
|
|
6015
6016
|
}
|
|
6016
6017
|
function re() {
|
|
6017
6018
|
var z, U;
|
|
6018
|
-
(U = (z = r.value).onDropdownClose) == null || U.call(z),
|
|
6019
|
+
(U = (z = r.value).onDropdownClose) == null || U.call(z), D(), w();
|
|
6019
6020
|
}
|
|
6020
6021
|
function he() {
|
|
6021
6022
|
l.close(n.id);
|
|
@@ -6051,13 +6052,13 @@ const zr = { class: "bs-dropdown-mobile-header" }, xr = {
|
|
|
6051
6052
|
return (z, U) => (d(), A(Ct, X({
|
|
6052
6053
|
id: z.id,
|
|
6053
6054
|
class: "bs-dropdown",
|
|
6054
|
-
anchor:
|
|
6055
|
-
backdrop:
|
|
6055
|
+
anchor: k.value,
|
|
6056
|
+
backdrop: g.value,
|
|
6056
6057
|
"data-component": "bs-dropdown",
|
|
6057
6058
|
"data-mobile-sheet": z.mobileSheet ? z.mobileSheet : void 0,
|
|
6058
6059
|
persist: z.persist,
|
|
6059
6060
|
place: m.value,
|
|
6060
|
-
"prevent-close-x": !
|
|
6061
|
+
"prevent-close-x": !g.value,
|
|
6061
6062
|
"prevent-first-shift-tab": "",
|
|
6062
6063
|
"prevent-last-tab": "",
|
|
6063
6064
|
"trap-focus": "",
|
|
@@ -6099,7 +6100,7 @@ const zr = { class: "bs-dropdown-mobile-header" }, xr = {
|
|
|
6099
6100
|
"aria-live": "polite",
|
|
6100
6101
|
"aria-multiselectable": z.multiple || void 0,
|
|
6101
6102
|
role: z.role,
|
|
6102
|
-
tabindex:
|
|
6103
|
+
tabindex: S.value,
|
|
6103
6104
|
onFocus: U[1] || (U[1] = ($) => b(N)(0)),
|
|
6104
6105
|
onBlur: U[2] || (U[2] = ($) => b(w)()),
|
|
6105
6106
|
onMousedown: U[3] || (U[3] = Se(() => {
|
|
@@ -6493,42 +6494,42 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
6493
6494
|
});
|
|
6494
6495
|
const { breakoutStub: p, breakoutMounted: v } = Ur(t.breakout, t.containerId);
|
|
6495
6496
|
Be("dropdownEnter", l), Be("dropdownAfterEnter", s), Be("dropdownShown", f(() => t.shown));
|
|
6496
|
-
const
|
|
6497
|
-
a.value.style.setProperty(
|
|
6497
|
+
const S = (D, w) => {
|
|
6498
|
+
a.value.style.setProperty(D, w);
|
|
6498
6499
|
};
|
|
6499
|
-
function
|
|
6500
|
-
const
|
|
6501
|
-
D
|
|
6500
|
+
function g() {
|
|
6501
|
+
const D = c.value.getBoundingClientRect(), w = r.value.getBoundingClientRect(), T = a.value.getBoundingClientRect();
|
|
6502
|
+
k(D, w), m(D, w, T);
|
|
6502
6503
|
}
|
|
6503
|
-
function D
|
|
6504
|
+
function k(D, w) {
|
|
6504
6505
|
if (t.position === "top") {
|
|
6505
|
-
const T =
|
|
6506
|
-
|
|
6506
|
+
const T = D.bottom - w.bottom;
|
|
6507
|
+
S("--dropdown-wscreen-top", "auto"), S("--dropdown-wscreen-bottom", `${T + w.height + 8}px`);
|
|
6507
6508
|
} else {
|
|
6508
|
-
const T = w.top -
|
|
6509
|
-
|
|
6509
|
+
const T = w.top - D.top;
|
|
6510
|
+
S("--dropdown-wscreen-top", `${T + w.height + 8}px`), S("--dropdown-wscreen-bottom", "auto");
|
|
6510
6511
|
}
|
|
6511
6512
|
}
|
|
6512
|
-
function m(
|
|
6513
|
-
const x = w.left -
|
|
6513
|
+
function m(D, w, T) {
|
|
6514
|
+
const x = w.left - D.left;
|
|
6514
6515
|
if (t.position === "center") {
|
|
6515
6516
|
const W = (w.width - T.width) / 2;
|
|
6516
|
-
|
|
6517
|
+
S("--dropdown-wscreen-left", `${x + W}px`), S("--dropdown-wscreen-right", "auto");
|
|
6517
6518
|
} else if (t.position === "right") {
|
|
6518
|
-
const W =
|
|
6519
|
-
|
|
6519
|
+
const W = D.right - w.right;
|
|
6520
|
+
S("--dropdown-wscreen-left", "auto"), S("--dropdown-wscreen-right", `${W}px`);
|
|
6520
6521
|
} else
|
|
6521
|
-
|
|
6522
|
+
S("--dropdown-wscreen-left", `${x}px`), S("--dropdown-wscreen-right", "auto");
|
|
6522
6523
|
}
|
|
6523
6524
|
function h() {
|
|
6524
6525
|
if (t.width === "anchor") {
|
|
6525
|
-
const
|
|
6526
|
-
|
|
6526
|
+
const D = r.value.getBoundingClientRect();
|
|
6527
|
+
S("--dropdown-wscreen-width", `${D.width}px`);
|
|
6527
6528
|
} else
|
|
6528
|
-
|
|
6529
|
+
S("--dropdown-wscreen-width", "");
|
|
6529
6530
|
}
|
|
6530
6531
|
function B() {
|
|
6531
|
-
l.value = !0, r.value = document.getElementById(t.anchorId),
|
|
6532
|
+
l.value = !0, r.value = document.getElementById(t.anchorId), g(), h(), o("enter");
|
|
6532
6533
|
}
|
|
6533
6534
|
function I() {
|
|
6534
6535
|
s.value = !0, o("after-enter");
|
|
@@ -6536,7 +6537,7 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
6536
6537
|
function N() {
|
|
6537
6538
|
l.value = !1, s.value = !1, o("after-leave");
|
|
6538
6539
|
}
|
|
6539
|
-
return (
|
|
6540
|
+
return (D, w) => (d(), y(_, null, [
|
|
6540
6541
|
e.useMobileStyle && e.shown ? (d(), y("div", Kr)) : P("", !0),
|
|
6541
6542
|
q(Hr, {
|
|
6542
6543
|
ref_key: "dropdownContainerRef",
|
|
@@ -6563,7 +6564,7 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
6563
6564
|
"data-width": u.value,
|
|
6564
6565
|
"data-shown": e.shown,
|
|
6565
6566
|
"data-no-mobile": !e.useMobileStyle
|
|
6566
|
-
},
|
|
6567
|
+
}, D.$attrs), [
|
|
6567
6568
|
e.helperText ? (d(), y("header", Xr, [
|
|
6568
6569
|
O("div", null, [
|
|
6569
6570
|
O("h3", null, M(e.helperText), 1),
|
|
@@ -6577,7 +6578,7 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
6577
6578
|
q(b(xe))
|
|
6578
6579
|
])
|
|
6579
6580
|
])) : P("", !0),
|
|
6580
|
-
L(
|
|
6581
|
+
L(D.$slots, "default")
|
|
6581
6582
|
], 16, Gr)
|
|
6582
6583
|
]),
|
|
6583
6584
|
_: 3
|
|
@@ -6842,20 +6843,20 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
6842
6843
|
ee(o, "inputId", void 0, "Set 'id' directly on the component instead.");
|
|
6843
6844
|
const i = Sn(o, "inputId", "id");
|
|
6844
6845
|
ee(o, "hideClear", "preventClear");
|
|
6845
|
-
const a = Sn(o, "hideClear", "preventClear"), l = Me(e, "modelValue"), s = $e(), { filtered: r, remaining: c } = Oe(["class", "style"]), u = f(() => i.value || s), p = f(() => `${u.value}-wrap`), v = C(!1),
|
|
6846
|
-
function
|
|
6846
|
+
const a = Sn(o, "hideClear", "preventClear"), l = Me(e, "modelValue"), s = $e(), { filtered: r, remaining: c } = Oe(["class", "style"]), u = f(() => i.value || s), p = f(() => `${u.value}-wrap`), v = C(!1), S = f(() => l.value && !o.disabled && !a.value && o.variant !== "filter");
|
|
6847
|
+
function g() {
|
|
6847
6848
|
l.value = "", v.value = !0, t("clear");
|
|
6848
6849
|
}
|
|
6849
|
-
return (
|
|
6850
|
+
return (k, m) => (d(), y("div", X({
|
|
6850
6851
|
class: "bs-input-search",
|
|
6851
6852
|
"data-component": "bs-input-search",
|
|
6852
|
-
"data-variant":
|
|
6853
|
+
"data-variant": k.variant,
|
|
6853
6854
|
id: p.value
|
|
6854
6855
|
}, b(r), {
|
|
6855
6856
|
tabindex: "-1",
|
|
6856
6857
|
onFocus: m[2] || (m[2] = (h) => v.value = !0)
|
|
6857
6858
|
}), [
|
|
6858
|
-
|
|
6859
|
+
k.hideSearchIcon ? P("", !0) : (d(), A(b(Do), {
|
|
6859
6860
|
key: 0,
|
|
6860
6861
|
class: "bs-input-search-icon",
|
|
6861
6862
|
"aria-hidden": "true"
|
|
@@ -6864,9 +6865,9 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
6864
6865
|
id: u.value,
|
|
6865
6866
|
class: "bs-input-search-input",
|
|
6866
6867
|
"aria-label": "Search",
|
|
6867
|
-
disabled:
|
|
6868
|
-
error:
|
|
6869
|
-
placeholder:
|
|
6868
|
+
disabled: k.disabled,
|
|
6869
|
+
error: k.error,
|
|
6870
|
+
placeholder: k.placeholder,
|
|
6870
6871
|
modelValue: l.value,
|
|
6871
6872
|
"onUpdate:modelValue": m[0] || (m[0] = (h) => l.value = h)
|
|
6872
6873
|
}, b(c), {
|
|
@@ -6874,12 +6875,12 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
6874
6875
|
}), null, 16, ["id", "disabled", "error", "placeholder", "modelValue"]), [
|
|
6875
6876
|
[b(ki), v.value]
|
|
6876
6877
|
]),
|
|
6877
|
-
|
|
6878
|
+
S.value ? (d(), y("button", {
|
|
6878
6879
|
key: 1,
|
|
6879
6880
|
class: "bs-input-search-button",
|
|
6880
6881
|
type: "button",
|
|
6881
6882
|
"aria-label": "Clear",
|
|
6882
|
-
onClick: Se(
|
|
6883
|
+
onClick: Se(g, ["stop"])
|
|
6883
6884
|
}, [
|
|
6884
6885
|
q(b(xe), {
|
|
6885
6886
|
size: "sm",
|
|
@@ -6935,7 +6936,7 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
6935
6936
|
ee(o, "selectedValue", void 0, "Use 'modelValue' (or 'v-model') instead");
|
|
6936
6937
|
const i = Sn(o, "selectedValue", "modelValue"), a = t, l = C(null), s = C(null), r = C(-1), c = C(-1), u = C(null), p = C(!1);
|
|
6937
6938
|
let v = {};
|
|
6938
|
-
const
|
|
6939
|
+
const S = ce("dropdownEnter", C(!1)), g = ce("dropdownAfterEnter", C(!1)), k = ce("dropdownShown", C(!1));
|
|
6939
6940
|
Be("optionsId", f(() => o.optionsId)), Be("handleOptionSelect", he), Be("registerOptionById", ({ id: R, val: Z }) => {
|
|
6940
6941
|
v[R] = Z;
|
|
6941
6942
|
}), ld(l, N, { childList: !0 }), Xe([" ", "Enter", "NumpadEnter"], ge, l), Xe(["ArrowDown", "ArrowUp", "Home", "End"], be);
|
|
@@ -6944,31 +6945,31 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
6944
6945
|
lastTyped: 0
|
|
6945
6946
|
};
|
|
6946
6947
|
Xe(B, (R) => De(R, I)), oe(() => {
|
|
6947
|
-
N(), K(
|
|
6948
|
+
N(), K(k.value);
|
|
6948
6949
|
}), Ie(() => {
|
|
6949
6950
|
v = null;
|
|
6950
6951
|
}), G(
|
|
6951
|
-
[
|
|
6952
|
+
[S, () => {
|
|
6952
6953
|
var R;
|
|
6953
6954
|
return (R = u.value) == null ? void 0 : R.length;
|
|
6954
6955
|
}],
|
|
6955
6956
|
([R, Z]) => {
|
|
6956
6957
|
R && Z > 0 && (p.value = l.value.scrollHeight > l.value.clientHeight);
|
|
6957
6958
|
}
|
|
6958
|
-
), G(
|
|
6959
|
-
R && (
|
|
6960
|
-
}), G(
|
|
6959
|
+
), G(g, (R) => {
|
|
6960
|
+
R && (D(), w());
|
|
6961
|
+
}), G(k, (R) => K(R));
|
|
6961
6962
|
function N() {
|
|
6962
6963
|
u.value = Array.from(
|
|
6963
6964
|
l.value.querySelectorAll('[data-component="bs-dropdown-option"]')
|
|
6964
6965
|
);
|
|
6965
6966
|
}
|
|
6966
|
-
function
|
|
6967
|
+
function D() {
|
|
6967
6968
|
l.value.getBoundingClientRect().bottom > window.innerHeight && l.value.scrollIntoView({ block: "nearest" });
|
|
6968
6969
|
}
|
|
6969
6970
|
function w() {
|
|
6970
6971
|
var R;
|
|
6971
|
-
r.value > -1 && (
|
|
6972
|
+
r.value > -1 && (D(), (R = u.value[r.value]) == null || R.scrollIntoView({ block: "nearest" }));
|
|
6972
6973
|
}
|
|
6973
6974
|
function T() {
|
|
6974
6975
|
var R, Z;
|
|
@@ -7007,7 +7008,7 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
7007
7008
|
he(u.value[r.value]), R.preventDefault();
|
|
7008
7009
|
}
|
|
7009
7010
|
function be(R) {
|
|
7010
|
-
if (
|
|
7011
|
+
if (k.value)
|
|
7011
7012
|
switch (R.key) {
|
|
7012
7013
|
case "ArrowDown":
|
|
7013
7014
|
we("down"), R.preventDefault();
|
|
@@ -7042,7 +7043,7 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
7042
7043
|
Te(Z);
|
|
7043
7044
|
}
|
|
7044
7045
|
function De(R, Z) {
|
|
7045
|
-
if (!
|
|
7046
|
+
if (!k.value) return;
|
|
7046
7047
|
Z.keys = R.timeStamp - Z.lastTyped > 500 ? R.key : Z.keys + R.key, Z.lastTyped = R.timeStamp;
|
|
7047
7048
|
const ae = u.value.findIndex((z) => z.textContent.replaceAll(/[^a-zA-Z0-9]/g, "").toLowerCase().startsWith(Z.keys));
|
|
7048
7049
|
ae > -1 && Te(ae, !1);
|
|
@@ -7067,7 +7068,7 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
7067
7068
|
"data-overflow": p.value,
|
|
7068
7069
|
id: e.optionsId,
|
|
7069
7070
|
role: "listbox",
|
|
7070
|
-
tabindex: b(
|
|
7071
|
+
tabindex: b(k) ? 0 : void 0,
|
|
7071
7072
|
onBlur: x,
|
|
7072
7073
|
onFocus: W,
|
|
7073
7074
|
onKeydown: [
|
|
@@ -7137,10 +7138,10 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
7137
7138
|
let c = !1;
|
|
7138
7139
|
const u = Kn(t);
|
|
7139
7140
|
G(() => t.options, () => {
|
|
7140
|
-
|
|
7141
|
+
S(t.selectedOptions);
|
|
7141
7142
|
}), G(
|
|
7142
7143
|
() => t.selectedOptions,
|
|
7143
|
-
|
|
7144
|
+
S,
|
|
7144
7145
|
{ immediate: !0 }
|
|
7145
7146
|
), G(() => t.shown, (m) => {
|
|
7146
7147
|
m && t.focusOnOpen && Ve(p);
|
|
@@ -7151,9 +7152,9 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
7151
7152
|
function v() {
|
|
7152
7153
|
i.value && (i.value.refreshOptions(), i.value.setCurrentActive());
|
|
7153
7154
|
}
|
|
7154
|
-
function
|
|
7155
|
-
var
|
|
7156
|
-
const h = ((
|
|
7155
|
+
function S(m = []) {
|
|
7156
|
+
var D;
|
|
7157
|
+
const h = ((D = m[0]) == null ? void 0 : D[t.valueIdKey]) !== void 0;
|
|
7157
7158
|
h && (m = m.map((w) => w[t.valueIdKey]));
|
|
7158
7159
|
const B = new Set(m), I = [], N = [];
|
|
7159
7160
|
u.value.forEach((w) => {
|
|
@@ -7165,15 +7166,15 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
7165
7166
|
});
|
|
7166
7167
|
});
|
|
7167
7168
|
}
|
|
7168
|
-
function
|
|
7169
|
+
function g(m = []) {
|
|
7169
7170
|
const h = new Set(m), B = [];
|
|
7170
7171
|
return u.value.forEach((I) => {
|
|
7171
7172
|
h.has(I.value) && B.push(I.value);
|
|
7172
7173
|
}), B;
|
|
7173
7174
|
}
|
|
7174
|
-
function
|
|
7175
|
+
function k(m) {
|
|
7175
7176
|
let h = [];
|
|
7176
|
-
t.selectedOptions.includes(m) ? (h = t.selectedOptions.filter((B) => B !== m), o("uncheck-option", m)) : (h =
|
|
7177
|
+
t.selectedOptions.includes(m) ? (h = t.selectedOptions.filter((B) => B !== m), o("uncheck-option", m)) : (h = g([...t.selectedOptions, m]), o("check-option", m)), c = !0, o("update:selectedOptions", h);
|
|
7177
7178
|
}
|
|
7178
7179
|
return (m, h) => (d(), A(an, {
|
|
7179
7180
|
ref_key: "optlist",
|
|
@@ -7186,7 +7187,7 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
7186
7187
|
shown: e.shown,
|
|
7187
7188
|
onOptionsListShiftTab: h[0] || (h[0] = (B) => o("options-list-shift-tab")),
|
|
7188
7189
|
onOptionsListTab: h[1] || (h[1] = (B) => o("options-list-tab")),
|
|
7189
|
-
"onUpdate:modelValue":
|
|
7190
|
+
"onUpdate:modelValue": k
|
|
7190
7191
|
}, {
|
|
7191
7192
|
default: j(() => [
|
|
7192
7193
|
r.value ? (d(), y(_, { key: 0 }, [
|
|
@@ -7342,9 +7343,9 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
7342
7343
|
let i = null;
|
|
7343
7344
|
const [a, l] = fe(2), s = C(!1), r = C(""), c = f(() => t.selectedOptions.length), u = f(
|
|
7344
7345
|
() => t.multiselect ? Ii : an
|
|
7345
|
-
), p = f(() => t.optionsId || l.value), v = f(() => t.toggleId || a.value),
|
|
7346
|
+
), p = f(() => t.optionsId || l.value), v = f(() => t.toggleId || a.value), S = Kn(t), g = f(() => r.value ? S.value.filter(
|
|
7346
7347
|
(K) => K.label.toLowerCase().startsWith(r.value.toLowerCase())
|
|
7347
|
-
) :
|
|
7348
|
+
) : S.value), k = f(() => t.filter ? g.value : S.value), m = () => i || (i = document.getElementById(v.value));
|
|
7348
7349
|
function h() {
|
|
7349
7350
|
const K = document.activeElement;
|
|
7350
7351
|
return !K || K.tagName === "BODY" || K.id === p.value;
|
|
@@ -7359,7 +7360,7 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
7359
7360
|
function N() {
|
|
7360
7361
|
s.value = !0;
|
|
7361
7362
|
}
|
|
7362
|
-
function
|
|
7363
|
+
function D(K) {
|
|
7363
7364
|
const te = t.selectedOptions.filter((re) => re !== K);
|
|
7364
7365
|
o("update:selectedOptions", te), o("uncheck-option", K);
|
|
7365
7366
|
}
|
|
@@ -7433,7 +7434,7 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
7433
7434
|
class: Pe({ "filterable-options": e.filter }),
|
|
7434
7435
|
label: e.dropdownLabel,
|
|
7435
7436
|
"model-value": e.selectedOption,
|
|
7436
|
-
options: e.multiselect ?
|
|
7437
|
+
options: e.multiselect ? k.value : void 0,
|
|
7437
7438
|
"options-id": p.value,
|
|
7438
7439
|
"selected-options": e.selectedOptions,
|
|
7439
7440
|
shown: e.open,
|
|
@@ -7442,13 +7443,13 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
7442
7443
|
onClose: te[1] || (te[1] = (re) => e.multiselect ? void 0 : I()),
|
|
7443
7444
|
onOptionsListShiftTab: te[2] || (te[2] = (re) => K.$emit("options-list-shift-tab")),
|
|
7444
7445
|
onOptionsListTab: te[3] || (te[3] = (re) => K.$emit("options-list-tab")),
|
|
7445
|
-
onUncheckOption:
|
|
7446
|
+
onUncheckOption: D,
|
|
7446
7447
|
"onUpdate:modelValue": T
|
|
7447
7448
|
}, {
|
|
7448
7449
|
default: j(() => [
|
|
7449
7450
|
e.multiselect ? P("", !0) : (d(), A(Ut, {
|
|
7450
7451
|
key: 0,
|
|
7451
|
-
options:
|
|
7452
|
+
options: k.value,
|
|
7452
7453
|
"value-id-key": e.valueIdKey
|
|
7453
7454
|
}, null, 8, ["options", "value-id-key"]))
|
|
7454
7455
|
]),
|
|
@@ -7543,13 +7544,13 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
7543
7544
|
function v() {
|
|
7544
7545
|
return p || (p = c.value.$el.querySelector("input")), p;
|
|
7545
7546
|
}
|
|
7546
|
-
function
|
|
7547
|
+
function S(N) {
|
|
7547
7548
|
o("combobox:change", N.target.value), o("update:modelValue", N.target.value);
|
|
7548
7549
|
}
|
|
7549
|
-
function
|
|
7550
|
+
function g() {
|
|
7550
7551
|
v().focus(), o("combobox:change", ""), o("update:modelValue", "");
|
|
7551
7552
|
}
|
|
7552
|
-
function
|
|
7553
|
+
function k(N) {
|
|
7553
7554
|
o("combobox:input", N.target.value), t.updateOnInput && o("update:modelValue", N.target.value);
|
|
7554
7555
|
}
|
|
7555
7556
|
function m() {
|
|
@@ -7564,7 +7565,7 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
7564
7565
|
function I() {
|
|
7565
7566
|
r.value ? r.value = !1 : s.value = !0;
|
|
7566
7567
|
}
|
|
7567
|
-
return (N,
|
|
7568
|
+
return (N, D) => (d(), A(Ci, {
|
|
7568
7569
|
"anchor-id": b(a),
|
|
7569
7570
|
disabled: e.disabled,
|
|
7570
7571
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -7580,8 +7581,8 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
7580
7581
|
"use-mobile-style": e.useMobileStyle,
|
|
7581
7582
|
"value-id-key": e.valueIdKey,
|
|
7582
7583
|
onClose: m,
|
|
7583
|
-
onOptionsListTab:
|
|
7584
|
-
"onUpdate:selectedOption":
|
|
7584
|
+
onOptionsListTab: D[2] || (D[2] = (w) => s.value = !1),
|
|
7585
|
+
"onUpdate:selectedOption": D[3] || (D[3] = (w) => N.$emit("update:modelValue", w))
|
|
7585
7586
|
}, {
|
|
7586
7587
|
toggle: j(() => [
|
|
7587
7588
|
q(Nr, X({
|
|
@@ -7597,14 +7598,14 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
7597
7598
|
"options-id": b(l),
|
|
7598
7599
|
placeholder: e.placeholder,
|
|
7599
7600
|
required: e.required,
|
|
7600
|
-
onChange:
|
|
7601
|
-
onClear:
|
|
7602
|
-
onInput:
|
|
7601
|
+
onChange: S,
|
|
7602
|
+
onClear: g,
|
|
7603
|
+
onInput: k,
|
|
7603
7604
|
onInputFocus: I,
|
|
7604
7605
|
onInputMousedown: h,
|
|
7605
7606
|
onInputMouseup: B,
|
|
7606
|
-
onInputShiftTab:
|
|
7607
|
-
onToggled:
|
|
7607
|
+
onInputShiftTab: D[0] || (D[0] = (w) => s.value = !1),
|
|
7608
|
+
onToggled: D[1] || (D[1] = (w) => s.value = !s.value)
|
|
7608
7609
|
}, N.$attrs), null, 16, ["id", "container-id", "disabled", "error", "hint-id", "model-value", "open", "options-id", "placeholder", "required"])
|
|
7609
7610
|
]),
|
|
7610
7611
|
_: 1
|
|
@@ -8168,8 +8169,8 @@ const Rr = ["aria-controls", "aria-expanded", "data-open", "data-size", "disable
|
|
|
8168
8169
|
});
|
|
8169
8170
|
function s(p) {
|
|
8170
8171
|
if (p.key === "Tab") {
|
|
8171
|
-
const v = i.value.querySelectorAll(l.value),
|
|
8172
|
-
document.activeElement ===
|
|
8172
|
+
const v = i.value.querySelectorAll(l.value), S = v[0], g = v[v.length - 1];
|
|
8173
|
+
document.activeElement === S && p.shiftKey ? r(p, g) : document.activeElement === g && !p.shiftKey ? c(p, S) : i.value.contains(document.activeElement) || u(p, S);
|
|
8173
8174
|
}
|
|
8174
8175
|
}
|
|
8175
8176
|
function r(p, v) {
|
|
@@ -8379,15 +8380,15 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
8379
8380
|
}), G(p, (B, I) => {
|
|
8380
8381
|
B !== I && (v.value = !1, m());
|
|
8381
8382
|
});
|
|
8382
|
-
function
|
|
8383
|
+
function S(B) {
|
|
8383
8384
|
i.value[B] = !i.value[B], Object.keys(i.value).forEach((I) => {
|
|
8384
8385
|
I !== B && (i.value[I] = !0);
|
|
8385
8386
|
});
|
|
8386
8387
|
}
|
|
8387
|
-
function
|
|
8388
|
+
function g() {
|
|
8388
8389
|
return v.value ? "Close Menu" : "Open Menu";
|
|
8389
8390
|
}
|
|
8390
|
-
function
|
|
8391
|
+
function k(B) {
|
|
8391
8392
|
return B.navItems.some((I) => s(I));
|
|
8392
8393
|
}
|
|
8393
8394
|
function m() {
|
|
@@ -8396,7 +8397,7 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
8396
8397
|
});
|
|
8397
8398
|
}
|
|
8398
8399
|
function h(B, I) {
|
|
8399
|
-
B.ctrlKey || B.metaKey ||
|
|
8400
|
+
B.ctrlKey || B.metaKey || S(I.id), o("nav-link-clicked", { ev: B, payload: I });
|
|
8400
8401
|
}
|
|
8401
8402
|
return (B, I) => {
|
|
8402
8403
|
const N = wo("router-link");
|
|
@@ -8412,8 +8413,8 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
8412
8413
|
class: "bs-horizontal-nav-mobile-toggle",
|
|
8413
8414
|
"aria-expanded": B.mobileOpen,
|
|
8414
8415
|
"aria-controls": `horizontal-nav-mobile-${b(u)}`,
|
|
8415
|
-
title:
|
|
8416
|
-
onClick: I[0] || (I[0] = (
|
|
8416
|
+
title: g(),
|
|
8417
|
+
onClick: I[0] || (I[0] = (D) => v.value = !v.value)
|
|
8417
8418
|
}, [
|
|
8418
8419
|
O("div", xd, [
|
|
8419
8420
|
typeof B.titleIcon == "string" ? (d(), A(b(ze), {
|
|
@@ -8435,29 +8436,29 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
8435
8436
|
id: `horizontal-nav-mobile-${b(u)}`
|
|
8436
8437
|
}, [
|
|
8437
8438
|
O("ul", null, [
|
|
8438
|
-
(d(!0), y(_, null, ue(b(c), (
|
|
8439
|
+
(d(!0), y(_, null, ue(b(c), (D) => {
|
|
8439
8440
|
var w;
|
|
8440
8441
|
return d(), y(_, {
|
|
8441
|
-
key:
|
|
8442
|
+
key: D.id
|
|
8442
8443
|
}, [
|
|
8443
|
-
((w =
|
|
8444
|
+
((w = D.navItems) == null ? void 0 : w.length) > 0 ? (d(), y("li", {
|
|
8444
8445
|
key: 0,
|
|
8445
|
-
"data-expanded": b(r)(
|
|
8446
|
+
"data-expanded": b(r)(D)
|
|
8446
8447
|
}, [
|
|
8447
8448
|
O("button", {
|
|
8448
8449
|
type: "button",
|
|
8449
8450
|
class: "bs-horizontal-nav-mobile-nested-toggle",
|
|
8450
|
-
"aria-expanded": b(r)(
|
|
8451
|
-
"aria-controls": `${
|
|
8452
|
-
"data-active": D
|
|
8453
|
-
title: b(a)(
|
|
8454
|
-
onClick: (T) =>
|
|
8451
|
+
"aria-expanded": b(r)(D),
|
|
8452
|
+
"aria-controls": `${D.id}-nested-menu`,
|
|
8453
|
+
"data-active": k(D),
|
|
8454
|
+
title: b(a)(D),
|
|
8455
|
+
onClick: (T) => S(D.id)
|
|
8455
8456
|
}, [
|
|
8456
|
-
O("span", null, M(
|
|
8457
|
+
O("span", null, M(D.text), 1),
|
|
8457
8458
|
q(b(Ge), { class: "bs-horizontal-nav-mobile-nested-toggle-caret" })
|
|
8458
8459
|
], 8, Vd),
|
|
8459
8460
|
O("ul", qd, [
|
|
8460
|
-
(d(!0), y(_, null, ue(
|
|
8461
|
+
(d(!0), y(_, null, ue(D.navItems, (T) => (d(), y("li", null, [
|
|
8461
8462
|
q(rt, {
|
|
8462
8463
|
item: T,
|
|
8463
8464
|
router: B.router,
|
|
@@ -8472,12 +8473,12 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
8472
8473
|
])
|
|
8473
8474
|
], 8, jd)) : (d(), y("li", Fd, [
|
|
8474
8475
|
q(rt, {
|
|
8475
|
-
item:
|
|
8476
|
+
item: D,
|
|
8476
8477
|
router: B.router,
|
|
8477
|
-
onNavLinkClicked: (T) => o("nav-link-clicked", { ev: T, payload:
|
|
8478
|
+
onNavLinkClicked: (T) => o("nav-link-clicked", { ev: T, payload: D })
|
|
8478
8479
|
}, {
|
|
8479
8480
|
default: j(() => [
|
|
8480
|
-
Q(M(
|
|
8481
|
+
Q(M(D.text), 1)
|
|
8481
8482
|
]),
|
|
8482
8483
|
_: 2
|
|
8483
8484
|
}, 1032, ["item", "router", "onNavLinkClicked"])
|
|
@@ -8513,7 +8514,7 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
8513
8514
|
"aria-current": b(s)({ to: B.titleUrl }) || void 0,
|
|
8514
8515
|
to: B.titleUrl,
|
|
8515
8516
|
"data-active": b(s)({ to: B.titleUrl }),
|
|
8516
|
-
onClick: I[1] || (I[1] = (
|
|
8517
|
+
onClick: I[1] || (I[1] = (D) => o("nav-link-clicked", { ev: D, payload: { resource: { url: B.titleUrl }, text: B.title } }))
|
|
8517
8518
|
}, {
|
|
8518
8519
|
default: j(() => [
|
|
8519
8520
|
O("span", null, M(B.title), 1)
|
|
@@ -8521,39 +8522,39 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
8521
8522
|
_: 1
|
|
8522
8523
|
}, 8, ["aria-current", "to", "data-active"])) : (d(), y("span", Hd, M(B.title), 1))
|
|
8523
8524
|
])) : P("", !0),
|
|
8524
|
-
(d(!0), y(_, null, ue(b(c), (
|
|
8525
|
+
(d(!0), y(_, null, ue(b(c), (D, w) => {
|
|
8525
8526
|
var T;
|
|
8526
8527
|
return d(), y(_, {
|
|
8527
|
-
key:
|
|
8528
|
+
key: D.id
|
|
8528
8529
|
}, [
|
|
8529
|
-
((T =
|
|
8530
|
+
((T = D.navItems) == null ? void 0 : T.length) > 0 ? (d(), y("li", Ud, [
|
|
8530
8531
|
O("button", {
|
|
8531
|
-
id: `${
|
|
8532
|
+
id: `${D.id}-toggle`,
|
|
8532
8533
|
type: "button",
|
|
8533
8534
|
class: "bs-horizontal-nav-nested-toggle",
|
|
8534
|
-
"aria-expanded": b(r)(
|
|
8535
|
-
"aria-controls": `${
|
|
8536
|
-
"data-active": D
|
|
8537
|
-
"data-expanded": b(r)(
|
|
8538
|
-
title: b(a)(
|
|
8539
|
-
onClick: (x) =>
|
|
8535
|
+
"aria-expanded": b(r)(D),
|
|
8536
|
+
"aria-controls": `${D.id}-nested-section`,
|
|
8537
|
+
"data-active": k(D),
|
|
8538
|
+
"data-expanded": b(r)(D),
|
|
8539
|
+
title: b(a)(D),
|
|
8540
|
+
onClick: (x) => S(D.id)
|
|
8540
8541
|
}, [
|
|
8541
|
-
O("span", null, M(
|
|
8542
|
+
O("span", null, M(D.text), 1),
|
|
8542
8543
|
q(b(Ge), { class: "bs-horizontal-nav-nested-toggle-caret" })
|
|
8543
8544
|
], 8, Kd),
|
|
8544
8545
|
q(on, {
|
|
8545
|
-
id: `${
|
|
8546
|
+
id: `${D.id}-nested-section`,
|
|
8546
8547
|
class: "bs-horizontal-nav-nested-menu",
|
|
8547
|
-
"anchor-id": `${
|
|
8548
|
+
"anchor-id": `${D.id}-toggle`,
|
|
8548
8549
|
position: "right",
|
|
8549
|
-
shown: b(r)(
|
|
8550
|
+
shown: b(r)(D),
|
|
8550
8551
|
"use-mobile-style": !1,
|
|
8551
8552
|
width: "content",
|
|
8552
|
-
onClose: (x) => b(i)[
|
|
8553
|
+
onClose: (x) => b(i)[D.id] = !0
|
|
8553
8554
|
}, {
|
|
8554
8555
|
default: j(() => [
|
|
8555
8556
|
O("ul", null, [
|
|
8556
|
-
(d(!0), y(_, null, ue(
|
|
8557
|
+
(d(!0), y(_, null, ue(D.navItems, (x) => (d(), y("li", {
|
|
8557
8558
|
key: x.id
|
|
8558
8559
|
}, [
|
|
8559
8560
|
q(rt, {
|
|
@@ -8573,12 +8574,12 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
8573
8574
|
}, 1032, ["id", "anchor-id", "shown", "onClose"])
|
|
8574
8575
|
])) : (d(), y("li", Gd, [
|
|
8575
8576
|
q(rt, {
|
|
8576
|
-
item:
|
|
8577
|
+
item: D,
|
|
8577
8578
|
router: B.router,
|
|
8578
|
-
onNavLinkClicked: (x) => o("nav-link-clicked", { ev: x, payload:
|
|
8579
|
+
onNavLinkClicked: (x) => o("nav-link-clicked", { ev: x, payload: D })
|
|
8579
8580
|
}, {
|
|
8580
8581
|
default: j(() => [
|
|
8581
|
-
O("span", null, M(
|
|
8582
|
+
O("span", null, M(D.text), 1)
|
|
8582
8583
|
]),
|
|
8583
8584
|
_: 2
|
|
8584
8585
|
}, 1032, ["item", "router", "onNavLinkClicked"])
|
|
@@ -8924,15 +8925,15 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
8924
8925
|
"Tab"
|
|
8925
8926
|
], { filtered: l, remaining: s } = Oe(["class", "style"]), r = C(null), c = C(1), u = C([]), p = C(null), [
|
|
8926
8927
|
v,
|
|
8927
|
-
g,
|
|
8928
8928
|
S,
|
|
8929
|
-
|
|
8930
|
-
|
|
8929
|
+
g,
|
|
8930
|
+
k
|
|
8931
|
+
] = fe(4), m = C(!1), h = C(""), B = C(""), I = C(!1), N = C(!1), D = C(!0);
|
|
8931
8932
|
n({
|
|
8932
8933
|
validationErr: I,
|
|
8933
8934
|
validationErrMsg: B
|
|
8934
8935
|
});
|
|
8935
|
-
const w = f(() => h.value ? `+${c.value}${h.value}` : ""), T = f(() => `Country code: ${c.value}. Click to change.`), x = f(() =>
|
|
8936
|
+
const w = f(() => h.value ? `+${c.value}${h.value}` : ""), T = f(() => `Country code: ${c.value}. Click to change.`), x = f(() => D.value ? o.errorMsg || B.value : ""), W = f(() => o.error || I.value), K = f(() => o.hint || W.value && x.value), te = f(() => D.value && W.value);
|
|
8936
8937
|
G(w, (z) => {
|
|
8937
8938
|
i("update:modelValue", z), ae(z);
|
|
8938
8939
|
}), G(() => o.modelValue, re), Te(), oe(() => m.value = !0);
|
|
@@ -8948,10 +8949,10 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
8948
8949
|
c.value = z, N.value = !1, (U = r.value) == null || U.focus(), Z(z);
|
|
8949
8950
|
}
|
|
8950
8951
|
function be() {
|
|
8951
|
-
o.deferValidation && (
|
|
8952
|
+
o.deferValidation && (D.value = !0), i("input-blur");
|
|
8952
8953
|
}
|
|
8953
8954
|
function we(z) {
|
|
8954
|
-
h.value = z.target.value, o.deferValidation && (
|
|
8955
|
+
h.value = z.target.value, o.deferValidation && (D.value = !1);
|
|
8955
8956
|
}
|
|
8956
8957
|
function De(z) {
|
|
8957
8958
|
var U, J;
|
|
@@ -8979,7 +8980,7 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
8979
8980
|
"data-component": "bs-input-phone"
|
|
8980
8981
|
}, b(l)), [
|
|
8981
8982
|
q(ke, {
|
|
8982
|
-
for: z.$attrs.id || e.inputId || b(
|
|
8983
|
+
for: z.$attrs.id || e.inputId || b(k),
|
|
8983
8984
|
required: e.required,
|
|
8984
8985
|
disabled: e.disabled,
|
|
8985
8986
|
class: Pe({ "bs-visually-hidden": e.hideLabel })
|
|
@@ -9002,7 +9003,7 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9002
9003
|
id: b(v),
|
|
9003
9004
|
ref_key: "countryCodesToggle",
|
|
9004
9005
|
ref: r,
|
|
9005
|
-
"aria-controls": b(
|
|
9006
|
+
"aria-controls": b(S),
|
|
9006
9007
|
"aria-expanded": N.value,
|
|
9007
9008
|
"aria-haspopup": "listbox",
|
|
9008
9009
|
"aria-label": T.value,
|
|
@@ -9018,9 +9019,9 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9018
9019
|
}))
|
|
9019
9020
|
], 8, Jd),
|
|
9020
9021
|
q(lt, X({
|
|
9021
|
-
id: z.$attrs.id || e.inputId || b(
|
|
9022
|
+
id: z.$attrs.id || e.inputId || b(k),
|
|
9022
9023
|
disabled: e.disabled,
|
|
9023
|
-
"hint-id": b(
|
|
9024
|
+
"hint-id": b(g),
|
|
9024
9025
|
placeholder: e.placeholder,
|
|
9025
9026
|
value: h.value,
|
|
9026
9027
|
"data-autowidth": "",
|
|
@@ -9038,7 +9039,7 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9038
9039
|
error: W.value,
|
|
9039
9040
|
"error-msg": x.value,
|
|
9040
9041
|
hint: e.hint,
|
|
9041
|
-
"hint-id": b(
|
|
9042
|
+
"hint-id": b(g)
|
|
9042
9043
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
9043
9044
|
[Ce, K.value]
|
|
9044
9045
|
]),
|
|
@@ -9048,7 +9049,7 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9048
9049
|
"helper-text": "Country Code",
|
|
9049
9050
|
label: "Country Code",
|
|
9050
9051
|
"model-value": c.value,
|
|
9051
|
-
"options-id": b(
|
|
9052
|
+
"options-id": b(S),
|
|
9052
9053
|
preloaded: "",
|
|
9053
9054
|
shown: N.value,
|
|
9054
9055
|
width: "content",
|
|
@@ -9217,7 +9218,7 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9217
9218
|
}), G(i, () => {
|
|
9218
9219
|
i.value ? o("open") : o("close");
|
|
9219
9220
|
});
|
|
9220
|
-
const c = f(() => t.typeaheadId || l.value), u = f(() => t.error && t.errorMsg || t.hint || void 0), p = f(() => `${c.value}-input-container`), v = f(() => `${c.value}-input`),
|
|
9221
|
+
const c = f(() => t.typeaheadId || l.value), u = f(() => t.error && t.errorMsg || t.hint || void 0), p = f(() => `${c.value}-input-container`), v = f(() => `${c.value}-input`), S = f(() => `${c.value}-options`), g = f(() => t.multiselect ? Array.isArray(t.optionsValue) ? t.optionsValue : [t.optionsValue] : t.optionsValue), k = f(() => {
|
|
9221
9222
|
if (i.value) {
|
|
9222
9223
|
let T = t.options;
|
|
9223
9224
|
const x = t.inputValue.toLowerCase(), W = t.filterType === "includes" ? "includes" : "startsWith";
|
|
@@ -9246,15 +9247,15 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9246
9247
|
}
|
|
9247
9248
|
function N(T) {
|
|
9248
9249
|
a.value = !0;
|
|
9249
|
-
const x =
|
|
9250
|
+
const x = k.value.find((W) => W.value === T);
|
|
9250
9251
|
o("update:inputValue", x.label), o("update:optionsValue", T);
|
|
9251
9252
|
}
|
|
9252
|
-
function
|
|
9253
|
-
const x = [...
|
|
9253
|
+
function D(T) {
|
|
9254
|
+
const x = [...g.value, T];
|
|
9254
9255
|
o("update:optionsValue", x);
|
|
9255
9256
|
}
|
|
9256
9257
|
function w(T) {
|
|
9257
|
-
const x =
|
|
9258
|
+
const x = g.value.filter((W) => W !== T);
|
|
9258
9259
|
o("update:optionsValue", x);
|
|
9259
9260
|
}
|
|
9260
9261
|
return (T, x) => (d(), y(_, null, [
|
|
@@ -9276,7 +9277,7 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9276
9277
|
class: "typeahead-search-wrapper"
|
|
9277
9278
|
}, [
|
|
9278
9279
|
q(Yn, X({
|
|
9279
|
-
"aria-controls":
|
|
9280
|
+
"aria-controls": S.value,
|
|
9280
9281
|
"aria-describedby": u.value ? b(s) : void 0,
|
|
9281
9282
|
"aria-expanded": i.value,
|
|
9282
9283
|
"aria-haspopup": "listbox",
|
|
@@ -9309,12 +9310,12 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9309
9310
|
key: 0,
|
|
9310
9311
|
"focus-on-open": !1,
|
|
9311
9312
|
label: e.label,
|
|
9312
|
-
options:
|
|
9313
|
-
"options-id":
|
|
9314
|
-
"selected-options":
|
|
9313
|
+
options: k.value,
|
|
9314
|
+
"options-id": S.value,
|
|
9315
|
+
"selected-options": g.value,
|
|
9315
9316
|
shown: i.value,
|
|
9316
9317
|
"value-id-key": e.valueIdKey,
|
|
9317
|
-
onCheckOption:
|
|
9318
|
+
onCheckOption: D,
|
|
9318
9319
|
onUncheckOption: w
|
|
9319
9320
|
}, St({ _: 2 }, [
|
|
9320
9321
|
e.loading ? {
|
|
@@ -9335,15 +9336,15 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9335
9336
|
]), 1032, ["label", "options", "options-id", "selected-options", "shown", "value-id-key"])) : (d(), A(an, {
|
|
9336
9337
|
key: 1,
|
|
9337
9338
|
label: e.label,
|
|
9338
|
-
"model-value":
|
|
9339
|
-
"options-id":
|
|
9339
|
+
"model-value": g.value,
|
|
9340
|
+
"options-id": S.value,
|
|
9340
9341
|
shown: i.value,
|
|
9341
9342
|
"onUpdate:modelValue": N,
|
|
9342
9343
|
onClose: x[1] || (x[1] = (W) => i.value = !1)
|
|
9343
9344
|
}, {
|
|
9344
9345
|
default: j(() => [
|
|
9345
9346
|
q(Ut, {
|
|
9346
|
-
options:
|
|
9347
|
+
options: k.value,
|
|
9347
9348
|
"value-id-key": e.valueIdKey
|
|
9348
9349
|
}, St({ _: 2 }, [
|
|
9349
9350
|
e.loading ? {
|
|
@@ -9499,9 +9500,9 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9499
9500
|
const o = n, i = C(null);
|
|
9500
9501
|
let a = !1;
|
|
9501
9502
|
const { transition: l } = _t(t), [s] = fe(), [r] = fe(), c = Dt();
|
|
9502
|
-
Gn([i], () =>
|
|
9503
|
-
const u = f(() => !!(t.title || c.title)), p = f(() => !!(t.subtitle || c.subtitle)), v = f(() => !!c.progress),
|
|
9504
|
-
function
|
|
9503
|
+
Gn([i], () => k("backdrop-clicked-close")), Xe(["Escape"], () => k("escape-pressed-close"));
|
|
9504
|
+
const u = f(() => !!(t.title || c.title)), p = f(() => !!(t.subtitle || c.subtitle)), v = f(() => !!c.progress), S = f(() => !t.fullHeight && u.value), g = f(() => !t.fullHeight && !!c.footer);
|
|
9505
|
+
function k(m, h = !0) {
|
|
9505
9506
|
var I;
|
|
9506
9507
|
const B = h && ((I = i.value) == null ? void 0 : I.querySelector('[data-shown="true"]')) !== null;
|
|
9507
9508
|
a && !B && (o("close", t.modalId), o(m, t.modalId));
|
|
@@ -9542,7 +9543,7 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9542
9543
|
}, m.$attrs), [
|
|
9543
9544
|
q(Sd, { active: b(l) }, {
|
|
9544
9545
|
default: j(() => [
|
|
9545
|
-
|
|
9546
|
+
S.value ? (d(), y("header", fu, [
|
|
9546
9547
|
O("div", hu, [
|
|
9547
9548
|
u.value ? L(m.$slots, "title", { key: 0 }, () => [
|
|
9548
9549
|
m.title ? (d(), y("span", {
|
|
@@ -9557,7 +9558,7 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9557
9558
|
"aria-label": "Close Modal",
|
|
9558
9559
|
title: "Close Modal",
|
|
9559
9560
|
type: "button",
|
|
9560
|
-
onClick: h[0] || (h[0] = (B) =>
|
|
9561
|
+
onClick: h[0] || (h[0] = (B) => k("x-clicked-close", !1))
|
|
9561
9562
|
}, [
|
|
9562
9563
|
q(b(xe))
|
|
9563
9564
|
])) : P("", !0)
|
|
@@ -9571,20 +9572,20 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9571
9572
|
L(m.$slots, "progress")
|
|
9572
9573
|
])) : P("", !0)
|
|
9573
9574
|
])) : P("", !0),
|
|
9574
|
-
m.closeButton && !
|
|
9575
|
+
m.closeButton && !S.value ? (d(), y("button", {
|
|
9575
9576
|
key: 1,
|
|
9576
9577
|
class: "bs-modal-deprecated-close-button",
|
|
9577
9578
|
"aria-label": "Close Modal",
|
|
9578
9579
|
title: "Close Modal",
|
|
9579
9580
|
type: "button",
|
|
9580
|
-
onClick: h[1] || (h[1] = (B) =>
|
|
9581
|
+
onClick: h[1] || (h[1] = (B) => k("x-clicked-close", !1))
|
|
9581
9582
|
}, [
|
|
9582
9583
|
q(b(xe))
|
|
9583
9584
|
])) : P("", !0),
|
|
9584
9585
|
O("div", gu, [
|
|
9585
9586
|
L(m.$slots, "default")
|
|
9586
9587
|
]),
|
|
9587
|
-
|
|
9588
|
+
g.value ? (d(), y("footer", wu, [
|
|
9588
9589
|
L(m.$slots, "footer")
|
|
9589
9590
|
])) : P("", !0)
|
|
9590
9591
|
]),
|
|
@@ -9600,70 +9601,70 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9600
9601
|
__name: "BsOption",
|
|
9601
9602
|
props: Zo,
|
|
9602
9603
|
setup(e) {
|
|
9603
|
-
const n = e, t = ce(nn, null), o = ce(Ei, null), i = it("option"), a = We(), l = $e(), s = C(!0), r = f(() => n.id || l), c = f(() => t.props.multiple), u = f(() => n.selected || t.isSelected(n.value)), p = f(() => c.value && (t == null ? void 0 : t.wasPreviouslySelected(n.value))), v = f(() => a.role ? a.role : t.props.role === "listbox" ? "option" : "menuitem"),
|
|
9604
|
+
const n = e, t = ce(nn, null), o = ce(Ei, null), i = it("option"), a = We(), l = $e(), s = C(!0), r = f(() => n.id || l), c = f(() => t.props.multiple), u = f(() => n.selected || t.isSelected(n.value)), p = f(() => c.value && (t == null ? void 0 : t.wasPreviouslySelected(n.value))), v = f(() => a.role ? a.role : t.props.role === "listbox" ? "option" : "menuitem"), S = f(() => t.activeOptionId.value === r.value);
|
|
9604
9605
|
oe(() => {
|
|
9605
9606
|
t == null || t.registerOption(r.value, { templateRef: i, props: n, isVisible: s, isSelectedToTop: p, groupId: o == null ? void 0 : o.id }), o == null || o.registerOption(r.value);
|
|
9606
9607
|
}), Ie(() => {
|
|
9607
9608
|
t == null || t.unregisterOption(r.value), o == null || o.unregisterOption(r.value);
|
|
9608
|
-
}), G(
|
|
9609
|
-
|
|
9609
|
+
}), G(S, (k) => {
|
|
9610
|
+
k && Ve(() => {
|
|
9610
9611
|
var m, h;
|
|
9611
9612
|
return (h = (m = i.value) == null ? void 0 : m.scrollIntoView) == null ? void 0 : h.call(m, { block: "start", behavior: "smooth" });
|
|
9612
9613
|
});
|
|
9613
9614
|
});
|
|
9614
|
-
function
|
|
9615
|
-
n.disabled || (t.setModel(n.value), n.onClick && n.onClick(
|
|
9615
|
+
function g(k) {
|
|
9616
|
+
n.disabled || (t.setModel(n.value), n.onClick && n.onClick(k));
|
|
9616
9617
|
}
|
|
9617
|
-
return (
|
|
9618
|
+
return (k, m) => me((d(), y("div", {
|
|
9618
9619
|
ref: "option",
|
|
9619
9620
|
id: r.value,
|
|
9620
9621
|
class: "bs-option",
|
|
9621
|
-
"aria-disabled":
|
|
9622
|
+
"aria-disabled": k.disabled || void 0,
|
|
9622
9623
|
"aria-selected": c.value ? u.value : u.value || void 0,
|
|
9623
9624
|
"data-selected-to-top": p.value,
|
|
9624
|
-
"data-active":
|
|
9625
|
+
"data-active": S.value || void 0,
|
|
9625
9626
|
"data-component": "bs-option",
|
|
9626
|
-
"data-negative":
|
|
9627
|
+
"data-negative": k.negative || void 0,
|
|
9627
9628
|
"data-visible": s.value || void 0,
|
|
9628
9629
|
"data-multiple": c.value || void 0,
|
|
9629
9630
|
role: v.value,
|
|
9630
|
-
onClick: Se(
|
|
9631
|
+
onClick: Se(g, ["stop"])
|
|
9631
9632
|
}, [
|
|
9632
9633
|
c.value ? (d(), y(_, { key: 0 }, [
|
|
9633
9634
|
O("span", {
|
|
9634
9635
|
class: "bs-checkbox",
|
|
9635
9636
|
"aria-hidden": "true",
|
|
9636
|
-
"data-disabled":
|
|
9637
|
+
"data-disabled": k.disabled || void 0,
|
|
9637
9638
|
"data-checked": u.value
|
|
9638
9639
|
}, null, 8, Bu),
|
|
9639
|
-
|
|
9640
|
+
k.gridLayout ? (d(), y("div", {
|
|
9640
9641
|
key: 0,
|
|
9641
9642
|
class: "bs-option-grid",
|
|
9642
|
-
"data-icon-col":
|
|
9643
|
+
"data-icon-col": k.iconColumn || void 0
|
|
9643
9644
|
}, [
|
|
9644
|
-
L(
|
|
9645
|
-
Q(M(
|
|
9645
|
+
L(k.$slots, "default", { selected: u.value }, () => [
|
|
9646
|
+
Q(M(k.value), 1)
|
|
9646
9647
|
])
|
|
9647
|
-
], 8, ku)) : L(
|
|
9648
|
+
], 8, ku)) : L(k.$slots, "default", {
|
|
9648
9649
|
key: 1,
|
|
9649
9650
|
selected: u.value
|
|
9650
9651
|
}, () => [
|
|
9651
|
-
Q(M(
|
|
9652
|
+
Q(M(k.value), 1)
|
|
9652
9653
|
])
|
|
9653
9654
|
], 64)) : (d(), y(_, { key: 1 }, [
|
|
9654
|
-
|
|
9655
|
+
k.gridLayout ? (d(), y("div", {
|
|
9655
9656
|
key: 0,
|
|
9656
9657
|
class: "bs-option-grid",
|
|
9657
|
-
"data-icon-col":
|
|
9658
|
+
"data-icon-col": k.iconColumn || void 0
|
|
9658
9659
|
}, [
|
|
9659
|
-
L(
|
|
9660
|
-
Q(M(
|
|
9660
|
+
L(k.$slots, "default", { selected: u.value }, () => [
|
|
9661
|
+
Q(M(k.value), 1)
|
|
9661
9662
|
])
|
|
9662
|
-
], 8, Du)) : L(
|
|
9663
|
+
], 8, Du)) : L(k.$slots, "default", {
|
|
9663
9664
|
key: 1,
|
|
9664
9665
|
selected: u.value
|
|
9665
9666
|
}, () => [
|
|
9666
|
-
Q(M(
|
|
9667
|
+
Q(M(k.value), 1)
|
|
9667
9668
|
])
|
|
9668
9669
|
], 64))
|
|
9669
9670
|
], 8, Su)), [
|
|
@@ -9680,7 +9681,7 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9680
9681
|
setup(e) {
|
|
9681
9682
|
const n = e, t = ce(nn), o = Dt(), i = $e(), a = C([]), l = f(() => n.id || i), s = f(() => n.title || o.title), r = f(() => {
|
|
9682
9683
|
var v;
|
|
9683
|
-
return (v = t.filter.value.query) != null && v.value ? a.value.some((
|
|
9684
|
+
return (v = t.filter.value.query) != null && v.value ? a.value.some((S) => t.optionsById.value[S].isVisible.value) : !0;
|
|
9684
9685
|
});
|
|
9685
9686
|
Be(Ei, {
|
|
9686
9687
|
id: l,
|
|
@@ -9693,10 +9694,10 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9693
9694
|
a.value = [...a.value, v];
|
|
9694
9695
|
}
|
|
9695
9696
|
function u(v) {
|
|
9696
|
-
a.value = a.value.filter((
|
|
9697
|
+
a.value = a.value.filter((S) => v !== S);
|
|
9697
9698
|
}
|
|
9698
9699
|
const p = f(() => t.showPreviouslySelectedSeparator(l));
|
|
9699
|
-
return (v,
|
|
9700
|
+
return (v, S) => s.value ? me((d(), y("div", {
|
|
9700
9701
|
key: 0,
|
|
9701
9702
|
class: "bs-option-group",
|
|
9702
9703
|
"data-component": "bs-option-group",
|
|
@@ -9811,11 +9812,11 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9811
9812
|
setup(e, { emit: n }) {
|
|
9812
9813
|
const t = e, o = n, i = C(null);
|
|
9813
9814
|
oe(() => {
|
|
9814
|
-
t.modelValue ? i.value = t.modelValue : t.variant === "results" ? i.value =
|
|
9815
|
-
}), G(() => t.modelValue, (
|
|
9816
|
-
i.value =
|
|
9817
|
-
}), G(i, (
|
|
9818
|
-
m !== null && o("update:modelValue",
|
|
9815
|
+
t.modelValue ? i.value = t.modelValue : t.variant === "results" ? i.value = g.value[0] : i.value = 1;
|
|
9816
|
+
}), G(() => t.modelValue, (k) => {
|
|
9817
|
+
i.value = k;
|
|
9818
|
+
}), G(i, (k, m) => {
|
|
9819
|
+
m !== null && o("update:modelValue", k);
|
|
9819
9820
|
});
|
|
9820
9821
|
const a = f(() => {
|
|
9821
9822
|
if (t.variant === "group")
|
|
@@ -9841,17 +9842,17 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9841
9842
|
const p = f(() => {
|
|
9842
9843
|
if (t.pageCount <= t.pageRange)
|
|
9843
9844
|
return [...Array(t.pageCount + 1).keys()].slice(1);
|
|
9844
|
-
const
|
|
9845
|
+
const k = [1], m = (t.pageRange - 1) / 2;
|
|
9845
9846
|
let h = i.value - m, B = i.value + m;
|
|
9846
|
-
h < 1 && (B += 1 - h, h = 1), B > t.pageCount && (h -= B - t.pageCount, B = t.pageCount), h = Math.max(h, 2), B = Math.min(B, t.pageCount - 1), h > 2 &&
|
|
9847
|
+
h < 1 && (B += 1 - h, h = 1), B > t.pageCount && (h -= B - t.pageCount, B = t.pageCount), h = Math.max(h, 2), B = Math.min(B, t.pageCount - 1), h > 2 && k.push(t.breakText);
|
|
9847
9848
|
for (let I = h; I <= B; I++)
|
|
9848
|
-
|
|
9849
|
-
return B < t.pageCount - 1 &&
|
|
9850
|
-
}), v = f(() => `${t.centerLabel ?? "Page"} ${i.value} of ${a.value}`),
|
|
9851
|
-
const
|
|
9852
|
-
return `${t.centerLabel ?? "Results"} ${
|
|
9853
|
-
}),
|
|
9854
|
-
return (
|
|
9849
|
+
k.push(I);
|
|
9850
|
+
return B < t.pageCount - 1 && k.push(t.breakText), k.push(t.pageCount), k;
|
|
9851
|
+
}), v = f(() => `${t.centerLabel ?? "Page"} ${i.value} of ${a.value}`), S = f(() => {
|
|
9852
|
+
const k = (i.value - 1) * t.itemsPerGroup + 1, m = Math.min(k - 1 + t.itemsPerGroup, t.itemsCount);
|
|
9853
|
+
return `${t.centerLabel ?? "Results"} ${k} - ${m} of ${t.itemsCount}`;
|
|
9854
|
+
}), g = f(() => t.resultsIncrements.split(",").map((k) => parseInt(k)));
|
|
9855
|
+
return (k, m) => (d(), y("div", {
|
|
9855
9856
|
class: "bs-pagination",
|
|
9856
9857
|
"data-component": "bs-pagination",
|
|
9857
9858
|
"data-variant": l.value,
|
|
@@ -9893,11 +9894,11 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9893
9894
|
}, M(h), 9, xu))), 128))
|
|
9894
9895
|
])) : P("", !0),
|
|
9895
9896
|
t.variant === "base" && t.centerDisplay === "text" ? (d(), y("span", Mu, M(v.value), 1)) : P("", !0),
|
|
9896
|
-
t.variant === "group" ? (d(), y("span", ju, M(
|
|
9897
|
+
t.variant === "group" ? (d(), y("span", ju, M(S.value), 1)) : P("", !0),
|
|
9897
9898
|
t.variant === "results" ? (d(), y(_, { key: 4 }, [
|
|
9898
9899
|
m[0] || (m[0] = O("span", null, "Results Per Page:", -1)),
|
|
9899
9900
|
O("div", Vu, [
|
|
9900
|
-
(d(!0), y(_, null, ue(
|
|
9901
|
+
(d(!0), y(_, null, ue(g.value, (h) => (d(), y("button", {
|
|
9901
9902
|
type: "button",
|
|
9902
9903
|
key: `results-${h}`,
|
|
9903
9904
|
"data-selected": h === i.value,
|
|
@@ -9933,7 +9934,10 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9933
9934
|
])) : P("", !0)
|
|
9934
9935
|
], 8, Cu));
|
|
9935
9936
|
}
|
|
9936
|
-
}, Uu =
|
|
9937
|
+
}, Uu = {
|
|
9938
|
+
key: 0,
|
|
9939
|
+
"data-truncate": "true"
|
|
9940
|
+
}, Vf = {
|
|
9937
9941
|
__name: "BsPill",
|
|
9938
9942
|
props: mt,
|
|
9939
9943
|
setup(e) {
|
|
@@ -9952,12 +9956,9 @@ const Ed = ["aria-current", "data-active", "href", "target"], rt = {
|
|
|
9952
9956
|
disabled: l.disabled
|
|
9953
9957
|
}, b(i), { onClick: a }), {
|
|
9954
9958
|
default: j(() => [
|
|
9955
|
-
|
|
9956
|
-
class: "bs-pill-content",
|
|
9957
|
-
"data-truncate": l.truncate
|
|
9958
|
-
}, [
|
|
9959
|
+
l.truncate ? (d(), y("span", Uu, [
|
|
9959
9960
|
L(l.$slots, "default")
|
|
9960
|
-
],
|
|
9961
|
+
])) : L(l.$slots, "default", { key: 1 })
|
|
9961
9962
|
]),
|
|
9962
9963
|
_: 3
|
|
9963
9964
|
}, 16, ["data-active", "data-status", "data-variant", "disabled"]));
|
|
@@ -10421,52 +10422,52 @@ const ic = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], ac = ["data-sta
|
|
|
10421
10422
|
const n = e, t = Me(e, "modelValue"), { popAttrs: o, popSlotProps: i } = An(n), a = $e(), l = it("root"), s = f(() => n.id || a), r = f(() => {
|
|
10422
10423
|
if (!n.multiple)
|
|
10423
10424
|
return n.displayValue ? v(t.value) : t.value;
|
|
10424
|
-
}), c = f(() => !n.multiple || !Array.isArray(t.value) || !t.value.length ? void 0 : (n.displayValue ? t.value.map((
|
|
10425
|
-
const
|
|
10425
|
+
}), c = f(() => !n.multiple || !Array.isArray(t.value) || !t.value.length ? void 0 : (n.displayValue ? t.value.map((k) => v(k)) : t.value).join(", ")), u = f(() => n.multiple ? c.value : r.value), p = f(() => {
|
|
10426
|
+
const g = n.error ? "aria-errormessage" : "aria-describedby";
|
|
10426
10427
|
return {
|
|
10427
10428
|
...o.value,
|
|
10428
|
-
[
|
|
10429
|
+
[g]: n.hintId
|
|
10429
10430
|
};
|
|
10430
10431
|
});
|
|
10431
|
-
function v(
|
|
10432
|
-
return
|
|
10432
|
+
function v(g) {
|
|
10433
|
+
return g && (typeof n.displayValue == "function" ? n.displayValue(g) : g[n.displayValue]);
|
|
10433
10434
|
}
|
|
10434
|
-
function
|
|
10435
|
+
function S() {
|
|
10435
10436
|
t.value = n.multiple ? [] : null, l.value.focus();
|
|
10436
10437
|
}
|
|
10437
|
-
return (
|
|
10438
|
+
return (g, k) => {
|
|
10438
10439
|
var m;
|
|
10439
10440
|
return d(), y("div", X({
|
|
10440
10441
|
ref: "root",
|
|
10441
|
-
"aria-invalid":
|
|
10442
|
-
"aria-disabled":
|
|
10443
|
-
"aria-required":
|
|
10442
|
+
"aria-invalid": g.error || void 0,
|
|
10443
|
+
"aria-disabled": g.disabled || void 0,
|
|
10444
|
+
"aria-required": g.required || void 0,
|
|
10444
10445
|
class: "bs-input bs-input-button",
|
|
10445
10446
|
"data-bs-pop-faux-button": "true",
|
|
10446
|
-
"data-error":
|
|
10447
|
+
"data-error": g.error || void 0,
|
|
10447
10448
|
id: s.value,
|
|
10448
10449
|
role: "combobox",
|
|
10449
|
-
tabindex:
|
|
10450
|
+
tabindex: g.disabled ? void 0 : 0
|
|
10450
10451
|
}, p.value), [
|
|
10451
|
-
|
|
10452
|
+
g.multiple && g.showCount && ((m = t.value) != null && m.length) ? (d(), A(wi, {
|
|
10452
10453
|
key: 0,
|
|
10453
10454
|
class: "bs-input-button-count",
|
|
10454
10455
|
color: "blue",
|
|
10455
10456
|
count: t.value.length,
|
|
10456
10457
|
variant: "notext"
|
|
10457
10458
|
}, null, 8, ["count"])) : P("", !0),
|
|
10458
|
-
u.value ? P("", !0) : (d(), y("div", uc, M(
|
|
10459
|
+
u.value ? P("", !0) : (d(), y("div", uc, M(g.placeholder), 1)),
|
|
10459
10460
|
u.value ? (d(), y("div", cc, [
|
|
10460
|
-
L(
|
|
10461
|
+
L(g.$slots, "default", Ae(Ee({ displayText: u.value, ...b(i) })), () => [
|
|
10461
10462
|
Q(M(u.value), 1)
|
|
10462
10463
|
])
|
|
10463
10464
|
])) : P("", !0),
|
|
10464
|
-
!
|
|
10465
|
+
!g.disabled && !g.preventClear && u.value ? (d(), y("button", {
|
|
10465
10466
|
key: 3,
|
|
10466
10467
|
class: "bs-input-button-clear",
|
|
10467
10468
|
type: "button",
|
|
10468
10469
|
"aria-label": "Clear",
|
|
10469
|
-
onClick: Se(
|
|
10470
|
+
onClick: Se(S, ["stop"])
|
|
10470
10471
|
}, [
|
|
10471
10472
|
q(b(xe), {
|
|
10472
10473
|
size: "sm",
|
|
@@ -10629,10 +10630,10 @@ const ic = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], ac = ["data-sta
|
|
|
10629
10630
|
modelValue: t.value,
|
|
10630
10631
|
"onUpdate:modelValue": p[0] || (p[0] = (v) => t.value = v)
|
|
10631
10632
|
}), St({ _: 2 }, [
|
|
10632
|
-
ue(u.$slots, (v,
|
|
10633
|
-
name:
|
|
10634
|
-
fn: j((
|
|
10635
|
-
L(u.$slots,
|
|
10633
|
+
ue(u.$slots, (v, S) => ({
|
|
10634
|
+
name: S,
|
|
10635
|
+
fn: j((g) => [
|
|
10636
|
+
L(u.$slots, S, Ae(Ee(g)))
|
|
10636
10637
|
])
|
|
10637
10638
|
}))
|
|
10638
10639
|
]), 1040, ["aria-labelledby", "disabled", "error", "hint-id", "id", "required", "modelValue"]),
|
|
@@ -10823,16 +10824,16 @@ const ic = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], ac = ["data-sta
|
|
|
10823
10824
|
setup(e, { emit: n }) {
|
|
10824
10825
|
const t = e, o = n, [i, a] = fe(2), l = We(), s = C(!1), r = f(() => t.selectId || l.id || i.value), c = f(() => t.optionsId || a.value), u = f(() => {
|
|
10825
10826
|
if (t.modelValue) {
|
|
10826
|
-
const v = t.options.find((
|
|
10827
|
-
var
|
|
10828
|
-
return (
|
|
10827
|
+
const v = t.options.find((S) => {
|
|
10828
|
+
var g, k;
|
|
10829
|
+
return (g = S.value) != null && g[t.valueIdKey] ? S.value[t.valueIdKey] === ((k = t.modelValue) == null ? void 0 : k[t.valueIdKey]) : S.value === t.modelValue;
|
|
10829
10830
|
});
|
|
10830
10831
|
if (v)
|
|
10831
10832
|
return v.label;
|
|
10832
10833
|
}
|
|
10833
10834
|
return t.placeholder;
|
|
10834
10835
|
}), p = f(() => u.value === t.placeholder);
|
|
10835
|
-
return (v,
|
|
10836
|
+
return (v, S) => (d(), y("div", null, [
|
|
10836
10837
|
e.label || v.$slots.label ? (d(), A(ke, {
|
|
10837
10838
|
key: 0,
|
|
10838
10839
|
disabled: e.disabled,
|
|
@@ -10867,8 +10868,8 @@ const ic = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], ac = ["data-sta
|
|
|
10867
10868
|
"selected-option": e.modelValue,
|
|
10868
10869
|
"toggle-id": r.value,
|
|
10869
10870
|
"value-id-key": e.valueIdKey,
|
|
10870
|
-
onClose:
|
|
10871
|
-
"onUpdate:selectedOption":
|
|
10871
|
+
onClose: S[1] || (S[1] = (g) => s.value = !1),
|
|
10872
|
+
"onUpdate:selectedOption": S[2] || (S[2] = (g) => o("update:model-value", g))
|
|
10872
10873
|
}, {
|
|
10873
10874
|
toggle: j(() => [
|
|
10874
10875
|
O("button", X({
|
|
@@ -10889,7 +10890,7 @@ const ic = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], ac = ["data-sta
|
|
|
10889
10890
|
id: r.value,
|
|
10890
10891
|
role: "combobox"
|
|
10891
10892
|
}, v.$attrs, {
|
|
10892
|
-
onClick:
|
|
10893
|
+
onClick: S[0] || (S[0] = Se((g) => s.value = !s.value, ["prevent"]))
|
|
10893
10894
|
}), [
|
|
10894
10895
|
O("span", null, M(u.value), 1),
|
|
10895
10896
|
e.disabled ? P("", !0) : (d(), A(b(Ge), {
|
|
@@ -11221,12 +11222,12 @@ const Lc = /* @__PURE__ */ Zn(Pc, [["render", Ec]]), bo = {
|
|
|
11221
11222
|
function u(T) {
|
|
11222
11223
|
if (c.value) return;
|
|
11223
11224
|
if (r.value)
|
|
11224
|
-
return T.target === o.value ||
|
|
11225
|
+
return T.target === o.value || k();
|
|
11225
11226
|
if (v(T.target.closest("[data-bs-table-col-resize-id]")), !s.value.el) return;
|
|
11226
11227
|
const x = T.clientX <= s.value.rect.left + vo, W = T.clientX >= s.value.rect.right - vo;
|
|
11227
11228
|
if (!(x && T.target.dataset.bsTableColResize === "right") && (x || W)) {
|
|
11228
11229
|
if (a = x ? s.value.rect.left : s.value.rect.right, x && v(p()), !s.value.el) return;
|
|
11229
|
-
|
|
11230
|
+
g();
|
|
11230
11231
|
}
|
|
11231
11232
|
}
|
|
11232
11233
|
function p() {
|
|
@@ -11236,18 +11237,18 @@ const Lc = /* @__PURE__ */ Zn(Pc, [["render", Ec]]), bo = {
|
|
|
11236
11237
|
return x.dataset.bsTableColResizeId ? x : null;
|
|
11237
11238
|
}
|
|
11238
11239
|
function v(T) {
|
|
11239
|
-
s.value = T ? { el: T, rect: T.getBoundingClientRect(), minWidth:
|
|
11240
|
+
s.value = T ? { el: T, rect: T.getBoundingClientRect(), minWidth: S(T) } : { el: null, rect: null };
|
|
11240
11241
|
}
|
|
11241
|
-
function
|
|
11242
|
+
function S(T) {
|
|
11242
11243
|
var W;
|
|
11243
11244
|
const x = (W = T.dataset.bsTableColResizeMin) == null ? void 0 : W.replace("px", "");
|
|
11244
11245
|
if (x)
|
|
11245
11246
|
return parseInt(x, 10);
|
|
11246
11247
|
}
|
|
11247
|
-
function
|
|
11248
|
+
function g() {
|
|
11248
11249
|
I(), o.value.style.setProperty("--bs-table-col-resizer-y", `${s.value.rect.top}px`), o.value.style.setProperty("--bs-table-col-resizer-handle-height", `${s.value.rect.height}px`), r.value = !0;
|
|
11249
11250
|
}
|
|
11250
|
-
function
|
|
11251
|
+
function k() {
|
|
11251
11252
|
r.value = !1;
|
|
11252
11253
|
}
|
|
11253
11254
|
function m(T) {
|
|
@@ -11269,9 +11270,9 @@ const Lc = /* @__PURE__ */ Zn(Pc, [["render", Ec]]), bo = {
|
|
|
11269
11270
|
function N() {
|
|
11270
11271
|
o.value.removeEventListener("pointermove", h), setTimeout(() => c.value = !1);
|
|
11271
11272
|
const T = a - i;
|
|
11272
|
-
T !== 0 &&
|
|
11273
|
+
T !== 0 && D(Math.round(s.value.rect.width + T));
|
|
11273
11274
|
}
|
|
11274
|
-
async function
|
|
11275
|
+
async function D(T) {
|
|
11275
11276
|
t("resize", {
|
|
11276
11277
|
el: s.value.el,
|
|
11277
11278
|
id: s.value.el.dataset.bsTableColResizeId,
|
|
@@ -11279,7 +11280,7 @@ const Lc = /* @__PURE__ */ Zn(Pc, [["render", Ec]]), bo = {
|
|
|
11279
11280
|
}), await Ve(() => v(s.value.el));
|
|
11280
11281
|
}
|
|
11281
11282
|
function w() {
|
|
11282
|
-
|
|
11283
|
+
D(), k();
|
|
11283
11284
|
}
|
|
11284
11285
|
return (T, x) => me((d(), y("div", {
|
|
11285
11286
|
ref: "resizer",
|
|
@@ -11416,34 +11417,34 @@ const Lc = /* @__PURE__ */ Zn(Pc, [["render", Ec]]), bo = {
|
|
|
11416
11417
|
class: e.freezeHeader && "bs-table-header-rowgroup-freeze"
|
|
11417
11418
|
}, () => E);
|
|
11418
11419
|
}
|
|
11419
|
-
function
|
|
11420
|
+
function S() {
|
|
11420
11421
|
return v(
|
|
11421
11422
|
N(
|
|
11422
11423
|
be(w)
|
|
11423
11424
|
)
|
|
11424
11425
|
);
|
|
11425
11426
|
}
|
|
11426
|
-
function
|
|
11427
|
+
function g() {
|
|
11427
11428
|
const E = n.header({ cols: ye(o.value) });
|
|
11428
11429
|
return v(
|
|
11429
|
-
|
|
11430
|
+
D(E, w)
|
|
11430
11431
|
);
|
|
11431
11432
|
}
|
|
11432
|
-
function
|
|
11433
|
+
function k(E = []) {
|
|
11433
11434
|
return de(un, { kind: "body" }, () => E);
|
|
11434
11435
|
}
|
|
11435
11436
|
function m() {
|
|
11436
11437
|
const E = e.rows.map((F, $) => N(
|
|
11437
11438
|
be(re, { row: F, rowIndex: $ })
|
|
11438
11439
|
));
|
|
11439
|
-
return
|
|
11440
|
+
return k(E);
|
|
11440
11441
|
}
|
|
11441
11442
|
function h() {
|
|
11442
11443
|
const E = e.rows.map((F, $) => {
|
|
11443
11444
|
const Y = n.body({ row: F, rowIndex: $ });
|
|
11444
|
-
return
|
|
11445
|
+
return D(Y, re, { row: F, rowIndex: $ });
|
|
11445
11446
|
});
|
|
11446
|
-
return
|
|
11447
|
+
return k(E);
|
|
11447
11448
|
}
|
|
11448
11449
|
function B(E = []) {
|
|
11449
11450
|
return de(un, {
|
|
@@ -11454,13 +11455,13 @@ const Lc = /* @__PURE__ */ Zn(Pc, [["render", Ec]]), bo = {
|
|
|
11454
11455
|
function I() {
|
|
11455
11456
|
const E = n.footer({ cols: ye(o.value) });
|
|
11456
11457
|
return B(
|
|
11457
|
-
|
|
11458
|
+
D(E, w)
|
|
11458
11459
|
);
|
|
11459
11460
|
}
|
|
11460
11461
|
function N(E = []) {
|
|
11461
11462
|
return de(pn, null, () => E);
|
|
11462
11463
|
}
|
|
11463
|
-
function
|
|
11464
|
+
function D(E = [], F, $ = {}) {
|
|
11464
11465
|
return z(E, [pn]).map(
|
|
11465
11466
|
(V) => Te(V) ? de(V, null, () => be(F, $)) : de(V)
|
|
11466
11467
|
);
|
|
@@ -11622,7 +11623,7 @@ const Lc = /* @__PURE__ */ Zn(Pc, [["render", Ec]]), bo = {
|
|
|
11622
11623
|
F,
|
|
11623
11624
|
p([
|
|
11624
11625
|
u([
|
|
11625
|
-
n.header ?
|
|
11626
|
+
n.header ? g() : S(),
|
|
11626
11627
|
n.body ? h() : m(),
|
|
11627
11628
|
n.footer && I()
|
|
11628
11629
|
]),
|
|
@@ -11645,22 +11646,22 @@ const Lc = /* @__PURE__ */ Zn(Pc, [["render", Ec]]), bo = {
|
|
|
11645
11646
|
},
|
|
11646
11647
|
emits: ["tabChange", "update:modelValue"],
|
|
11647
11648
|
setup(e, { emit: n }) {
|
|
11648
|
-
const t = e, o = n, i = C(!1), a = C(!1), l = C([]), s = C(!1), r = C(!1), c = C(), u = C(), p = C([]), v = C(!1),
|
|
11649
|
+
const t = e, o = n, i = C(!1), a = C(!1), l = C([]), s = C(!1), r = C(!1), c = C(), u = C(), p = C([]), v = C(!1), S = C([]), g = C(), k = C([]), m = C(), h = C(), [B, I] = fe(2);
|
|
11649
11650
|
let N;
|
|
11650
|
-
const
|
|
11651
|
+
const D = f(() => t.activeTabId ? S.value.findIndex((V) => V.id === t.activeTabId) : 0), w = f(() => l.value.some((V) => V.id === t.activeTabId)), T = f(() => `${I.value}-options`), x = f(() => `${I.value}-toggle`), W = f(() => {
|
|
11651
11652
|
var V;
|
|
11652
|
-
return w.value ? (V =
|
|
11653
|
-
}), K = f(() => w.value ? p.value[
|
|
11653
|
+
return w.value ? (V = S.value[D.value]) == null ? void 0 : V.textContent : "More";
|
|
11654
|
+
}), K = f(() => w.value ? p.value[D.value] - p.value[D.value - 1] + Vc + fn : jc + fn);
|
|
11654
11655
|
function te() {
|
|
11655
11656
|
var He;
|
|
11656
11657
|
let V = !1, H, ne = 0, se = !1, Fe = [];
|
|
11657
|
-
if ((He =
|
|
11658
|
-
for (let Ne = 0; Ne <
|
|
11659
|
-
if (H =
|
|
11658
|
+
if ((He = S.value) != null && He.length) {
|
|
11659
|
+
for (let Ne = 0; Ne < S.value.length; Ne++) {
|
|
11660
|
+
if (H = S.value[Ne], H.setAttribute("tabindex", "-1"), se && Ne !== D.value) {
|
|
11660
11661
|
H.dataset.hidden = "true", Fe.push(H);
|
|
11661
11662
|
continue;
|
|
11662
11663
|
}
|
|
11663
|
-
if (ne = Ne <
|
|
11664
|
+
if (ne = Ne < S.value.length - 1 ? h.value - K.value : h.value, p.value[Ne] > ne) {
|
|
11664
11665
|
H.dataset.hidden = "true", Fe.push(H), V = !0, se = !0;
|
|
11665
11666
|
continue;
|
|
11666
11667
|
}
|
|
@@ -11682,23 +11683,23 @@ const Lc = /* @__PURE__ */ Zn(Pc, [["render", Ec]]), bo = {
|
|
|
11682
11683
|
}
|
|
11683
11684
|
function be(V) {
|
|
11684
11685
|
var se, Fe, He;
|
|
11685
|
-
const H = (He = (Fe = (se =
|
|
11686
|
+
const H = (He = (Fe = (se = S.value[V]) == null ? void 0 : se.getBoundingClientRect) == null ? void 0 : Fe.call(se)) == null ? void 0 : He.width;
|
|
11686
11687
|
return H || (V === 0 ? p.value[0] : p.value[V] - p.value[V - 1]) || 0;
|
|
11687
11688
|
}
|
|
11688
11689
|
function we() {
|
|
11689
11690
|
var V;
|
|
11690
|
-
(V =
|
|
11691
|
+
(V = S.value[D.value]) == null || V.setAttribute("aria-selected", "true"), te();
|
|
11691
11692
|
}
|
|
11692
11693
|
function De() {
|
|
11693
11694
|
var V;
|
|
11694
|
-
(V =
|
|
11695
|
+
(V = g.value) == null || V.focus(), s.value = !1;
|
|
11695
11696
|
}
|
|
11696
11697
|
function Te() {
|
|
11697
11698
|
s.value = !s.value, a.value || (a.value = !0);
|
|
11698
11699
|
}
|
|
11699
11700
|
function R(V) {
|
|
11700
11701
|
var H;
|
|
11701
|
-
s.value = !1, (H =
|
|
11702
|
+
s.value = !1, (H = g.value) == null || H.focus(), ge(V);
|
|
11702
11703
|
}
|
|
11703
11704
|
function Z(V) {
|
|
11704
11705
|
if (t.withBsTabs) return;
|
|
@@ -11709,26 +11710,26 @@ const Lc = /* @__PURE__ */ Zn(Pc, [["render", Ec]]), bo = {
|
|
|
11709
11710
|
}
|
|
11710
11711
|
function ae(V) {
|
|
11711
11712
|
if (V.key === "ArrowLeft" || V.key === "ArrowRight") {
|
|
11712
|
-
const H =
|
|
11713
|
+
const H = k.value.findIndex((ne) => ne.id === V.target.id);
|
|
11713
11714
|
if (H === -1) return;
|
|
11714
11715
|
V.preventDefault(), V.stopPropagation(), V.key === "ArrowLeft" ? U(H) : z(H);
|
|
11715
11716
|
}
|
|
11716
11717
|
}
|
|
11717
11718
|
function z(V) {
|
|
11718
11719
|
var ne;
|
|
11719
|
-
const H = (V + 1) %
|
|
11720
|
-
(ne =
|
|
11720
|
+
const H = (V + 1) % k.value.length;
|
|
11721
|
+
(ne = k.value[H]) == null || ne.focus();
|
|
11721
11722
|
}
|
|
11722
11723
|
function U(V) {
|
|
11723
11724
|
var ne;
|
|
11724
|
-
const H = V === 0 ?
|
|
11725
|
-
(ne =
|
|
11725
|
+
const H = V === 0 ? k.value.length - 1 : V - 1;
|
|
11726
|
+
(ne = k.value[H]) == null || ne.focus();
|
|
11726
11727
|
}
|
|
11727
11728
|
function J() {
|
|
11728
11729
|
var He, Ne, Jn, _n;
|
|
11729
11730
|
const V = parseInt(c.value.style.getPropertyValue("--active-line-offset")) || 0, H = h.value;
|
|
11730
|
-
let ne = 300, se = ((Ne = (He =
|
|
11731
|
-
r.value && w.value && (se = (Jn =
|
|
11731
|
+
let ne = 300, se = ((Ne = (He = k.value) == null ? void 0 : He[D.value]) == null ? void 0 : Ne.offsetLeft) || 0, Fe = be(D.value);
|
|
11732
|
+
r.value && w.value && (se = (Jn = g.value) == null ? void 0 : Jn.offsetLeft, Fe = (_n = g.value) == null ? void 0 : _n.offsetWidth), ne = Math.max(Math.abs((se - V) / H * 300), 100), c.value.style.setProperty("--active-line-max-width", `${H}px`), c.value.style.setProperty("--active-line-scale", `${Fe / H}`), c.value.style.setProperty("--active-line-offset", `${se}px`), c.value.style.setProperty("--active-line-transition-duration", `${ne}ms`);
|
|
11732
11733
|
}
|
|
11733
11734
|
function ve() {
|
|
11734
11735
|
var V, H;
|
|
@@ -11742,11 +11743,11 @@ const Lc = /* @__PURE__ */ Zn(Pc, [["render", Ec]]), bo = {
|
|
|
11742
11743
|
m.value = new ResizeObserver(V), m.value.observe(document.body), c.value && m.value.observe(c.value);
|
|
11743
11744
|
}
|
|
11744
11745
|
function F() {
|
|
11745
|
-
|
|
11746
|
+
S.value = Array.from(u.value.children).filter((V) => V.role === "tab");
|
|
11746
11747
|
}
|
|
11747
11748
|
function $() {
|
|
11748
11749
|
let V;
|
|
11749
|
-
|
|
11750
|
+
S.value.forEach((H, ne) => {
|
|
11750
11751
|
V = H.getBoundingClientRect().width + fn, p.value.push(ne ? V + p.value[ne - 1] : V);
|
|
11751
11752
|
});
|
|
11752
11753
|
}
|
|
@@ -11754,16 +11755,16 @@ const Lc = /* @__PURE__ */ Zn(Pc, [["render", Ec]]), bo = {
|
|
|
11754
11755
|
var H, ne;
|
|
11755
11756
|
let V = [];
|
|
11756
11757
|
if (typeof window > "u") return V;
|
|
11757
|
-
for (let se of
|
|
11758
|
+
for (let se of S.value) {
|
|
11758
11759
|
if (((H = se.dataset) == null ? void 0 : H.hidden) === "true" || ((ne = se.dataset) == null ? void 0 : ne.hidden) === "" || se.getAttribute("tabindex") === "-1") break;
|
|
11759
11760
|
V.push(se);
|
|
11760
11761
|
}
|
|
11761
|
-
r.value && V.push(c.value.querySelector(".bs-tab-list-toggle")),
|
|
11762
|
+
r.value && V.push(c.value.querySelector(".bs-tab-list-toggle")), k.value = V;
|
|
11762
11763
|
}
|
|
11763
11764
|
return G(() => t.activeTabId, we), oe(() => {
|
|
11764
11765
|
var V;
|
|
11765
11766
|
try {
|
|
11766
|
-
F(), $(), E(), h.value = c.value.getBoundingClientRect().width, te(), t.withBsTabs || (V =
|
|
11767
|
+
F(), $(), E(), h.value = c.value.getBoundingClientRect().width, te(), t.withBsTabs || (V = S.value[D.value]) == null || V.setAttribute("aria-selected", "true");
|
|
11767
11768
|
} catch (H) {
|
|
11768
11769
|
console.log("tab error", H);
|
|
11769
11770
|
}
|
|
@@ -11794,7 +11795,7 @@ const Lc = /* @__PURE__ */ Zn(Pc, [["render", Ec]]), bo = {
|
|
|
11794
11795
|
"data-hidden": !r.value,
|
|
11795
11796
|
id: x.value,
|
|
11796
11797
|
ref_key: "dropdownToggle",
|
|
11797
|
-
ref:
|
|
11798
|
+
ref: g,
|
|
11798
11799
|
onClick: Te
|
|
11799
11800
|
}, [
|
|
11800
11801
|
q(b(Ji), { size: "sm" }),
|
|
@@ -11954,7 +11955,7 @@ const Lc = /* @__PURE__ */ Zn(Pc, [["render", Ec]]), bo = {
|
|
|
11954
11955
|
required: e.required,
|
|
11955
11956
|
rows: e.rows,
|
|
11956
11957
|
value: e.value || e.modelValue,
|
|
11957
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
11958
|
+
"onUpdate:modelValue": v[0] || (v[0] = (S) => p.$emit("update:modelValue", S))
|
|
11958
11959
|
}, b(l)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
|
|
11959
11960
|
c.value || e.charMax ? (d(), A(qe, {
|
|
11960
11961
|
key: 1,
|
|
@@ -12141,15 +12142,15 @@ const hn = "excluded", bn = "over", yo = "skip", mo = "stop", vn = "under", Xc =
|
|
|
12141
12142
|
let B = !1;
|
|
12142
12143
|
for (let I = 0; I < 24 && !B; I++)
|
|
12143
12144
|
for (let N = 0; N < 60; N += o.step) {
|
|
12144
|
-
const
|
|
12145
|
+
const D = v(I, N), w = p(D);
|
|
12145
12146
|
if (w !== yo) {
|
|
12146
12147
|
if (w === mo) {
|
|
12147
12148
|
B = !0;
|
|
12148
12149
|
break;
|
|
12149
12150
|
}
|
|
12150
12151
|
h.push({
|
|
12151
|
-
label: Qe(
|
|
12152
|
-
value:
|
|
12152
|
+
label: Qe(D),
|
|
12153
|
+
value: D
|
|
12153
12154
|
});
|
|
12154
12155
|
}
|
|
12155
12156
|
}
|
|
@@ -12172,14 +12173,14 @@ const hn = "excluded", bn = "over", yo = "skip", mo = "stop", vn = "under", Xc =
|
|
|
12172
12173
|
function v(h, B) {
|
|
12173
12174
|
return h = h.toString().padStart(2, "0"), B = B.toString().padStart(2, "0"), `${h}:${B}`;
|
|
12174
12175
|
}
|
|
12175
|
-
function
|
|
12176
|
+
function S(h) {
|
|
12176
12177
|
const B = Gc(h);
|
|
12177
|
-
B === o.modelValue && (a.value = Qe(o.modelValue)),
|
|
12178
|
+
B === o.modelValue && (a.value = Qe(o.modelValue)), k(B);
|
|
12178
12179
|
}
|
|
12179
|
-
function
|
|
12180
|
+
function g() {
|
|
12180
12181
|
l.value = c();
|
|
12181
12182
|
}
|
|
12182
|
-
function
|
|
12183
|
+
function k(h) {
|
|
12183
12184
|
m(h), i("update:modelValue", h);
|
|
12184
12185
|
}
|
|
12185
12186
|
function m(h) {
|
|
@@ -12197,12 +12198,12 @@ const hn = "excluded", bn = "over", yo = "skip", mo = "stop", vn = "under", Xc =
|
|
|
12197
12198
|
s.value = "", r.value = !1;
|
|
12198
12199
|
}
|
|
12199
12200
|
}
|
|
12200
|
-
return oe(
|
|
12201
|
+
return oe(g), G([
|
|
12201
12202
|
() => o.disabledTimes,
|
|
12202
12203
|
() => o.maxTime,
|
|
12203
12204
|
() => o.minTime,
|
|
12204
12205
|
() => o.step
|
|
12205
|
-
],
|
|
12206
|
+
], g), G([
|
|
12206
12207
|
() => o.disabledTimes,
|
|
12207
12208
|
() => o.maxTime,
|
|
12208
12209
|
() => o.minTime,
|
|
@@ -12227,7 +12228,7 @@ const hn = "excluded", bn = "over", yo = "skip", mo = "stop", vn = "under", Xc =
|
|
|
12227
12228
|
placeholder: e.placeholder,
|
|
12228
12229
|
required: e.required,
|
|
12229
12230
|
"update-on-input": !1,
|
|
12230
|
-
"onUpdate:modelValue":
|
|
12231
|
+
"onUpdate:modelValue": S
|
|
12231
12232
|
}, null, 8, ["disabled", "display-value", "dropdown-position", "dropdown-width", "error", "helper-description", "helper-text", "hint-id", "input-id", "model-value", "options", "placeholder", "required"]));
|
|
12232
12233
|
}
|
|
12233
12234
|
}), th = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
@@ -12300,28 +12301,28 @@ const hn = "excluded", bn = "over", yo = "skip", mo = "stop", vn = "under", Xc =
|
|
|
12300
12301
|
setup(e, { expose: n, emit: t }) {
|
|
12301
12302
|
const o = e;
|
|
12302
12303
|
ee(o, "inputId", void 0, "Set 'id' directly on the component instead.");
|
|
12303
|
-
const [i, a] = fe(2), { filtered: l, remaining: s } = Oe(["class", "style"]), r = C(null), c = f(() => o.errorMsg ||
|
|
12304
|
-
var
|
|
12305
|
-
return (
|
|
12306
|
-
}),
|
|
12307
|
-
var
|
|
12308
|
-
return (
|
|
12304
|
+
const [i, a] = fe(2), { filtered: l, remaining: s } = Oe(["class", "style"]), r = C(null), c = f(() => o.errorMsg || S.value), u = f(() => o.error || g.value), p = f(() => o.inputId || i.value), v = f(() => o.hint || u.value && c.value), S = f(() => {
|
|
12305
|
+
var k;
|
|
12306
|
+
return (k = r.value) == null ? void 0 : k.validationErrMsg;
|
|
12307
|
+
}), g = f(() => {
|
|
12308
|
+
var k;
|
|
12309
|
+
return (k = r.value) == null ? void 0 : k.validationErr;
|
|
12309
12310
|
});
|
|
12310
12311
|
return n({
|
|
12311
|
-
validationErr:
|
|
12312
|
-
validationErrMsg:
|
|
12313
|
-
}), (
|
|
12312
|
+
validationErr: g,
|
|
12313
|
+
validationErrMsg: S
|
|
12314
|
+
}), (k, m) => (d(), y("div", X({
|
|
12314
12315
|
"aria-live": "polite",
|
|
12315
12316
|
"data-component": "bs-time-picker-field"
|
|
12316
12317
|
}, b(l)), [
|
|
12317
|
-
e.label ||
|
|
12318
|
+
e.label || k.$slots.label ? (d(), A(ke, {
|
|
12318
12319
|
key: 0,
|
|
12319
|
-
for:
|
|
12320
|
+
for: k.$attrs.id || p.value,
|
|
12320
12321
|
disabled: e.disabled,
|
|
12321
12322
|
required: e.required
|
|
12322
12323
|
}, {
|
|
12323
12324
|
default: j(() => [
|
|
12324
|
-
L(
|
|
12325
|
+
L(k.$slots, "label", {}, () => [
|
|
12325
12326
|
Q(M(e.label), 1)
|
|
12326
12327
|
])
|
|
12327
12328
|
]),
|
|
@@ -12338,14 +12339,14 @@ const hn = "excluded", bn = "over", yo = "skip", mo = "stop", vn = "under", Xc =
|
|
|
12338
12339
|
"helper-description": e.helperDescription,
|
|
12339
12340
|
"helper-text": e.helperText,
|
|
12340
12341
|
"hint-id": b(a),
|
|
12341
|
-
id:
|
|
12342
|
+
id: k.$attrs.id || p.value,
|
|
12342
12343
|
"max-time": e.maxTime,
|
|
12343
12344
|
"min-time": e.minTime,
|
|
12344
12345
|
"model-value": e.modelValue,
|
|
12345
12346
|
placeholder: e.placeholder,
|
|
12346
12347
|
required: e.required,
|
|
12347
12348
|
step: e.step,
|
|
12348
|
-
"onUpdate:modelValue": m[0] || (m[0] = (h) =>
|
|
12349
|
+
"onUpdate:modelValue": m[0] || (m[0] = (h) => k.$emit("update:modelValue", h))
|
|
12349
12350
|
}, b(s)), null, 16, ["disabled-times", "disabled", "dropdown-position", "dropdown-width", "error", "helper-description", "helper-text", "hint-id", "id", "max-time", "min-time", "model-value", "placeholder", "required", "step"]),
|
|
12350
12351
|
me(q(qe, {
|
|
12351
12352
|
error: u.value,
|
|
@@ -12399,8 +12400,8 @@ const nh = {
|
|
|
12399
12400
|
onClose: c,
|
|
12400
12401
|
onAfterClose: u
|
|
12401
12402
|
}, {
|
|
12402
|
-
default: j(({ id:
|
|
12403
|
-
L(p.$slots, "default", Ae(Ee({ id:
|
|
12403
|
+
default: j(({ id: S, close: g, cancel: k, confirm: m }) => [
|
|
12404
|
+
L(p.$slots, "default", Ae(Ee({ id: S, close: g, cancel: k, confirm: m })))
|
|
12404
12405
|
]),
|
|
12405
12406
|
_: 3
|
|
12406
12407
|
}, 8, ["id", "style", "data-variant"]));
|
|
@@ -12564,32 +12565,32 @@ const ih = /* @__PURE__ */ Zn(Jc, [["render", ep]]), tp = ["data-variant", "data
|
|
|
12564
12565
|
__name: "BsTooltip",
|
|
12565
12566
|
props: Fn,
|
|
12566
12567
|
setup(e) {
|
|
12567
|
-
const n = e, t = it("locator"), o = at(), i = $e(), a = C(!1), l = f(() => n.id || i),
|
|
12568
|
+
const n = e, t = it("locator"), o = at(), i = $e(), a = C(!1), l = C(null), s = f(() => n.id || i), r = f(() => `${s.value}-bs-tooltip-anchor`), c = f(() => n.id ? Object.keys(o.popIdsByTrigger.value).some((k) => o.isTrigger(n.id, k)) : !1), u = f(() => !c.value && !n.anchor), p = f(() => {
|
|
12568
12569
|
if (n.anchor) return n.anchor;
|
|
12569
|
-
if (
|
|
12570
|
+
if (u.value) return l.value;
|
|
12570
12571
|
});
|
|
12571
|
-
G(
|
|
12572
|
-
|
|
12572
|
+
G(u, () => {
|
|
12573
|
+
u.value ? v() : S();
|
|
12573
12574
|
}), oe(() => {
|
|
12574
|
-
a.value = !0, Ve(() =>
|
|
12575
|
-
}), $t(
|
|
12576
|
-
function
|
|
12575
|
+
a.value = !0, Ve(() => u.value && v());
|
|
12576
|
+
}), $t(S);
|
|
12577
|
+
function v() {
|
|
12577
12578
|
if (!t.value) return;
|
|
12578
12579
|
const g = t.value.parentNode;
|
|
12579
|
-
g.id || (g.id =
|
|
12580
|
+
g.id || (g.id = r.value), l.value = g.id;
|
|
12580
12581
|
}
|
|
12581
|
-
function
|
|
12582
|
+
function S() {
|
|
12582
12583
|
if (!t.value) return;
|
|
12583
12584
|
const g = t.value.parentNode;
|
|
12584
|
-
g.id ===
|
|
12585
|
+
g.id === r.value && g.removeAttribute("id"), l.value = null;
|
|
12585
12586
|
}
|
|
12586
|
-
return (g,
|
|
12587
|
-
q(Ct, X({ id:
|
|
12587
|
+
return (g, k) => (d(), y(_, null, [
|
|
12588
|
+
q(Ct, X({ id: s.value }, g.$attrs, {
|
|
12588
12589
|
class: "bs-tooltip",
|
|
12589
12590
|
"data-component": "bs-tooltip",
|
|
12590
12591
|
type: "tooltip",
|
|
12591
12592
|
role: "tooltip",
|
|
12592
|
-
anchor:
|
|
12593
|
+
anchor: p.value,
|
|
12593
12594
|
delay: g.delay,
|
|
12594
12595
|
place: g.place,
|
|
12595
12596
|
"prevent-close-x": ""
|
|
@@ -12599,7 +12600,7 @@ const ih = /* @__PURE__ */ Zn(Jc, [["render", ep]]), tp = ["data-variant", "data
|
|
|
12599
12600
|
]),
|
|
12600
12601
|
_: 3
|
|
12601
12602
|
}, 16, ["id", "anchor", "delay", "place"]),
|
|
12602
|
-
a.value &&
|
|
12603
|
+
a.value && u.value ? (d(), y("span", ap, null, 512)) : P("", !0)
|
|
12603
12604
|
], 64));
|
|
12604
12605
|
}
|
|
12605
12606
|
}), sp = ["data-position"], lp = ["id"], dh = {
|
|
@@ -12685,12 +12686,12 @@ const ih = /* @__PURE__ */ Zn(Jc, [["render", ep]]), tp = ["data-variant", "data
|
|
|
12685
12686
|
}, l = {
|
|
12686
12687
|
onFocus: B,
|
|
12687
12688
|
onClick: h
|
|
12688
|
-
}, s = $e(), r = We(), c = it("inputSearch"), u = at(), p = C(!1), v = f(() => t.id || s),
|
|
12689
|
+
}, s = $e(), r = We(), c = it("inputSearch"), u = at(), p = C(!1), v = f(() => t.id || s), S = f(() => `${v.value}-dropdown`), g = f(() => {
|
|
12689
12690
|
var w;
|
|
12690
12691
|
return (w = c.value) == null ? void 0 : w.$el.id;
|
|
12691
|
-
}),
|
|
12692
|
+
}), k = { ...l, ...a }, m = f(() => X(k, r));
|
|
12692
12693
|
function h() {
|
|
12693
|
-
u.open(
|
|
12694
|
+
u.open(S.value);
|
|
12694
12695
|
}
|
|
12695
12696
|
function B() {
|
|
12696
12697
|
if (p.value) {
|
|
@@ -12705,12 +12706,13 @@ const ih = /* @__PURE__ */ Zn(Jc, [["render", ep]]), tp = ["data-variant", "data
|
|
|
12705
12706
|
function N(w) {
|
|
12706
12707
|
return w && (typeof t.displayValue == "function" ? t.displayValue(w) : w[t.displayValue]);
|
|
12707
12708
|
}
|
|
12708
|
-
function
|
|
12709
|
+
function D() {
|
|
12709
12710
|
o.value = void 0, p.value = !0;
|
|
12710
12711
|
}
|
|
12711
12712
|
return (w, T) => (d(), y(_, null, [
|
|
12712
12713
|
q(Yn, X({
|
|
12713
12714
|
ref: "inputSearch",
|
|
12715
|
+
autocomplete: "off",
|
|
12714
12716
|
disabled: w.disabled,
|
|
12715
12717
|
error: w.error,
|
|
12716
12718
|
"hide-search-icon": w.hideSearchIcon,
|
|
@@ -12720,10 +12722,10 @@ const ih = /* @__PURE__ */ Zn(Jc, [["render", ep]]), tp = ["data-variant", "data
|
|
|
12720
12722
|
}, m.value, {
|
|
12721
12723
|
modelValue: i.value,
|
|
12722
12724
|
"onUpdate:modelValue": T[0] || (T[0] = (x) => i.value = x),
|
|
12723
|
-
onClear:
|
|
12725
|
+
onClear: D
|
|
12724
12726
|
}), null, 16, ["disabled", "error", "hide-search-icon", "id", "placeholder", "prevent-clear", "modelValue"]),
|
|
12725
12727
|
q(Di, {
|
|
12726
|
-
anchor:
|
|
12728
|
+
anchor: g.value,
|
|
12727
12729
|
class: Pe(["bs-input-search-dropdown", w.dropdownClass]),
|
|
12728
12730
|
debounce: w.debounce,
|
|
12729
12731
|
"equate-by": w.equateBy,
|
|
@@ -12731,7 +12733,7 @@ const ih = /* @__PURE__ */ Zn(Jc, [["render", ep]]), tp = ["data-variant", "data
|
|
|
12731
12733
|
"filter-key": w.filterKey,
|
|
12732
12734
|
"filter-external": w.filterExternal,
|
|
12733
12735
|
"hide-filter-input": "",
|
|
12734
|
-
id:
|
|
12736
|
+
id: S.value,
|
|
12735
12737
|
persist: w.persist,
|
|
12736
12738
|
place: w.dropdownPlace,
|
|
12737
12739
|
"min-chars": w.minChars,
|
|
@@ -12801,10 +12803,10 @@ const ih = /* @__PURE__ */ Zn(Jc, [["render", ep]]), tp = ["data-variant", "data
|
|
|
12801
12803
|
modelValue: t.value,
|
|
12802
12804
|
"onUpdate:modelValue": p[0] || (p[0] = (v) => t.value = v)
|
|
12803
12805
|
}), St({ _: 2 }, [
|
|
12804
|
-
ue(u.$slots, (v,
|
|
12805
|
-
name:
|
|
12806
|
-
fn: j((
|
|
12807
|
-
L(u.$slots,
|
|
12806
|
+
ue(u.$slots, (v, S) => ({
|
|
12807
|
+
name: S,
|
|
12808
|
+
fn: j((g) => [
|
|
12809
|
+
L(u.$slots, S, Ae(Ee(g)))
|
|
12808
12810
|
])
|
|
12809
12811
|
}))
|
|
12810
12812
|
]), 1040, ["aria-labelledby", "disabled", "error", "hint-id", "id", "required", "modelValue"]),
|
|
@@ -12839,10 +12841,10 @@ const ih = /* @__PURE__ */ Zn(Jc, [["render", ep]]), tp = ["data-variant", "data
|
|
|
12839
12841
|
ot("(max-width: 1165px)", (I) => {
|
|
12840
12842
|
p.value = I.matches;
|
|
12841
12843
|
});
|
|
12842
|
-
const c = C(null), u = C(null), p = C(!1), v = C(t.collapsed),
|
|
12844
|
+
const c = C(null), u = C(null), p = C(!1), v = C(t.collapsed), S = f(() => !t.width && t.variant === "narrow"), g = f(() => t.variant === "collapsible"), k = f(() => !g.value || p.value ? !1 : v.value);
|
|
12843
12845
|
function m() {
|
|
12844
12846
|
let I = "0px";
|
|
12845
|
-
|
|
12847
|
+
g.value && !p.value && v.value ? I = "4rem" : t.width ? I = t.width : S.value ? I = "4.5rem" : I = "9.875rem", typeof document < "u" && document.body.style.setProperty("--bs-page-nav-width", I);
|
|
12846
12848
|
}
|
|
12847
12849
|
oe(() => {
|
|
12848
12850
|
l(t.startCollapsed), m();
|
|
@@ -12853,7 +12855,7 @@ const ih = /* @__PURE__ */ Zn(Jc, [["render", ep]]), tp = ["data-variant", "data
|
|
|
12853
12855
|
}), G(() => t.collapsed, (I) => {
|
|
12854
12856
|
v.value = I;
|
|
12855
12857
|
}), G(
|
|
12856
|
-
[() => v.value,
|
|
12858
|
+
[() => v.value, S, () => t.width, g, p],
|
|
12857
12859
|
() => {
|
|
12858
12860
|
m();
|
|
12859
12861
|
}
|
|
@@ -12876,7 +12878,7 @@ const ih = /* @__PURE__ */ Zn(Jc, [["render", ep]]), tp = ["data-variant", "data
|
|
|
12876
12878
|
class: "bs-vertical-nav-wrapper",
|
|
12877
12879
|
"data-bg-variant": t.bgVariant || void 0
|
|
12878
12880
|
}, [
|
|
12879
|
-
|
|
12881
|
+
g.value && !p.value ? (d(), y("button", {
|
|
12880
12882
|
key: 0,
|
|
12881
12883
|
ref_key: "toggleButton",
|
|
12882
12884
|
ref: u,
|
|
@@ -12884,8 +12886,8 @@ const ih = /* @__PURE__ */ Zn(Jc, [["render", ep]]), tp = ["data-variant", "data
|
|
|
12884
12886
|
type: "button",
|
|
12885
12887
|
"aria-expanded": !v.value,
|
|
12886
12888
|
title: v.value ? "Expand navigation" : "Collapse navigation",
|
|
12887
|
-
"data-collapsed":
|
|
12888
|
-
"data-narrow":
|
|
12889
|
+
"data-collapsed": k.value,
|
|
12890
|
+
"data-narrow": S.value,
|
|
12889
12891
|
onClick: B
|
|
12890
12892
|
}, [
|
|
12891
12893
|
v.value ? (d(), A(b(Gt), {
|
|
@@ -12900,44 +12902,44 @@ const ih = /* @__PURE__ */ Zn(Jc, [["render", ep]]), tp = ["data-variant", "data
|
|
|
12900
12902
|
class: "bs-vertical-nav",
|
|
12901
12903
|
ref_key: "verticalNav",
|
|
12902
12904
|
ref: c,
|
|
12903
|
-
"data-narrow":
|
|
12904
|
-
"data-collapsed":
|
|
12905
|
-
"data-collapsible":
|
|
12905
|
+
"data-narrow": S.value,
|
|
12906
|
+
"data-collapsed": k.value,
|
|
12907
|
+
"data-collapsible": g.value,
|
|
12906
12908
|
"data-sticky": t.sticky || void 0,
|
|
12907
|
-
style: Tt(t.width && !
|
|
12909
|
+
style: Tt(t.width && !k.value ? { width: t.width } : void 0)
|
|
12908
12910
|
}, [
|
|
12909
12911
|
O("ul", null, [
|
|
12910
12912
|
I.$slots["top-content"] ? (d(), y("li", pp, [
|
|
12911
12913
|
L(I.$slots, "top-content")
|
|
12912
12914
|
])) : P("", !0),
|
|
12913
|
-
(d(!0), y(_, null, ue(b(r), (
|
|
12915
|
+
(d(!0), y(_, null, ue(b(r), (D) => {
|
|
12914
12916
|
var w;
|
|
12915
12917
|
return d(), y(_, {
|
|
12916
|
-
key:
|
|
12918
|
+
key: D.id
|
|
12917
12919
|
}, [
|
|
12918
|
-
((w =
|
|
12920
|
+
((w = D.navItems) == null ? void 0 : w.length) > 0 ? (d(), y("li", {
|
|
12919
12921
|
key: 0,
|
|
12920
12922
|
class: "bs-vertical-nav-section",
|
|
12921
|
-
"data-collapsed": !
|
|
12922
|
-
"data-divider-only":
|
|
12923
|
-
"data-app-links":
|
|
12923
|
+
"data-collapsed": !D.dividerOnly && !b(s)(D),
|
|
12924
|
+
"data-divider-only": D.dividerOnly,
|
|
12925
|
+
"data-app-links": D.appLinks
|
|
12924
12926
|
}, [
|
|
12925
|
-
!
|
|
12927
|
+
!D.dividerOnly && !S.value && !k.value ? (d(), y("button", {
|
|
12926
12928
|
key: 0,
|
|
12927
12929
|
class: "bs-vertical-nav-section-toggle",
|
|
12928
|
-
"aria-expanded": b(s)(
|
|
12929
|
-
"aria-controls": `${
|
|
12930
|
-
title: b(a)(
|
|
12930
|
+
"aria-expanded": b(s)(D),
|
|
12931
|
+
"aria-controls": `${D.id}-nested-section`,
|
|
12932
|
+
title: b(a)(D),
|
|
12931
12933
|
type: "button",
|
|
12932
|
-
onClick: (T) => h(
|
|
12934
|
+
onClick: (T) => h(D.id)
|
|
12933
12935
|
}, [
|
|
12934
|
-
|
|
12936
|
+
k.value ? P("", !0) : (d(), y("span", bp, M(D.text), 1)),
|
|
12935
12937
|
q(b(sa), { class: "bs-vertical-nav-section-toggle-caret" })
|
|
12936
12938
|
], 8, hp)) : P("", !0),
|
|
12937
12939
|
me(O("ul", {
|
|
12938
|
-
id: `${
|
|
12940
|
+
id: `${D.id}-nested-section`
|
|
12939
12941
|
}, [
|
|
12940
|
-
(d(!0), y(_, null, ue(
|
|
12942
|
+
(d(!0), y(_, null, ue(D.navItems, (T) => (d(), y("li", {
|
|
12941
12943
|
key: T.id
|
|
12942
12944
|
}, [
|
|
12943
12945
|
q(rt, {
|
|
@@ -12961,25 +12963,25 @@ const ih = /* @__PURE__ */ Zn(Jc, [["render", ep]]), tp = ["data-variant", "data
|
|
|
12961
12963
|
}, 1032, ["item", "router", "onNavLinkClicked", "aria-label"])
|
|
12962
12964
|
]))), 128))
|
|
12963
12965
|
], 8, vp), [
|
|
12964
|
-
[Ce,
|
|
12966
|
+
[Ce, D.dividerOnly || b(s)(D) || k.value]
|
|
12965
12967
|
])
|
|
12966
12968
|
], 8, fp)) : (d(), y("li", yp, [
|
|
12967
12969
|
q(rt, {
|
|
12968
|
-
item:
|
|
12970
|
+
item: D,
|
|
12969
12971
|
router: I.router,
|
|
12970
|
-
onNavLinkClicked: (T) => o("nav-link-clicked", { ev: T, payload:
|
|
12971
|
-
"aria-label":
|
|
12972
|
+
onNavLinkClicked: (T) => o("nav-link-clicked", { ev: T, payload: D }),
|
|
12973
|
+
"aria-label": D.text
|
|
12972
12974
|
}, {
|
|
12973
12975
|
default: j(() => [
|
|
12974
|
-
typeof
|
|
12976
|
+
typeof D.icon == "string" ? (d(), A(b(ze), {
|
|
12975
12977
|
key: 0,
|
|
12976
12978
|
class: "bs-vertical-nav-link-icon",
|
|
12977
|
-
name:
|
|
12978
|
-
}, null, 8, ["name"])) : (d(), A(ie(
|
|
12979
|
+
name: D.icon
|
|
12980
|
+
}, null, 8, ["name"])) : (d(), A(ie(D.icon), {
|
|
12979
12981
|
key: 1,
|
|
12980
12982
|
class: "bs-vertical-nav-link-icon"
|
|
12981
12983
|
})),
|
|
12982
|
-
O("span", null, M(
|
|
12984
|
+
O("span", null, M(D.text), 1)
|
|
12983
12985
|
]),
|
|
12984
12986
|
_: 2
|
|
12985
12987
|
}, 1032, ["item", "router", "onNavLinkClicked", "aria-label"])
|