@wwtdev/bsds-components-vue3 2.23.0 → 2.25.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bsds-components.js +589 -579
- package/lib/bsds-components.js.map +1 -1
- package/package.json +2 -2
package/lib/bsds-components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { computed as v,
|
|
2
|
-
import { BsIconCaretDown as Ee, BsIconSmallCaretRight as ga, BsIconSmallCaretLeft as ya, BsIconCircleExclamation as gt, BsIconClose as
|
|
1
|
+
import { ref as A, computed as v, watch as Y, onMounted as te, onUnmounted as ye, shallowRef as He, defineAsyncComponent as bt, useId as ht, openBlock as s, createElementBlock as p, unref as c, createElementVNode as y, renderSlot as L, createBlock as P, resolveDynamicComponent as ie, createCommentVNode as O, createTextVNode as X, toDisplayString as E, createVNode as M, useAttrs as we, useSlots as mt, mergeProps as G, withCtx as R, normalizeClass as de, Fragment as J, toHandlers as ct, withDirectives as Se, vShow as $e, onBeforeUnmount as Ge, onBeforeMount as qe, nextTick as Ve, createSlots as ft, renderList as le, Teleport as pa, Transition as Tt, provide as ve, withKeys as Ke, withModifiers as ge, inject as ue, resolveComponent as Wt, isRef as va, normalizeStyle as ba, h as ne, useTemplateRef as ha, readonly as At, cloneVNode as ma } from "vue";
|
|
2
|
+
import { BsIconCaretDown as Ee, BsIconSmallCaretRight as ga, BsIconSmallCaretLeft as ya, BsIconCircleExclamation as gt, BsIconClose as ke, BsIconWarning as pt, BsIconCalendar as jt, BsIconCaretRight as Ut, BsIconCaretLeft as Ht, BsIconSearch as wa, BsIconSmallExternalLink as vt, BsIconCaretSort as Gt, BsIconCaretLeftDouble as Sa, BsIconCaretRightDouble as $a, BsIconCaretSortUp as ka, BsIconCaretSortDown as Ba, BsIconActionEllipsis as Ia, BsIconGraphPieEmpty as Ot, BsIconCircleStop as Ca, BsIconCircleCheck as xa, BsIconCircleX as Ta, BsIconCircleEllipsis as Aa, BsIconCirclePlay as Oa, BsIconCirclePause as za, BsIconThumbsUpStroke as Ea, BsIconCaretUp as La } from "@wwtdev/bsds-icons-vue3";
|
|
3
3
|
import { DatePicker as Va } from "v-calendar";
|
|
4
4
|
import { Filler as Da, Chart as tt, BarController as Pa, BarElement as Ma, CategoryScale as qa, LinearScale as Na, Legend as Ra, TimeScale as Fa, Tooltip as Ka } from "chart.js";
|
|
5
5
|
import "chartjs-adapter-date-fns";
|
|
@@ -13,14 +13,20 @@ const Et = {
|
|
|
13
13
|
type: "button"
|
|
14
14
|
};
|
|
15
15
|
function Xe(e, a, t = "button") {
|
|
16
|
-
const n = Ua(e, a, t), l = v(() => {
|
|
17
|
-
const
|
|
18
|
-
return
|
|
19
|
-
}),
|
|
20
|
-
const
|
|
21
|
-
return
|
|
22
|
-
}),
|
|
23
|
-
return
|
|
16
|
+
const n = Ua(e, a, t), l = A(), i = v(() => {
|
|
17
|
+
const d = n.value === "button", r = {};
|
|
18
|
+
return d ? (r.type = a.type || "button", r.autocomplete = "off", e.disabled && (r.disabled = !0)) : e.disabled && (r["aria-disabled"] = "true", r.tabindex = "-1"), r;
|
|
19
|
+
}), u = v(() => {
|
|
20
|
+
const d = { ...a, ...i.value };
|
|
21
|
+
return d.href = o.value, d;
|
|
22
|
+
}), o = v(() => e.linkTo || e.href);
|
|
23
|
+
return Y(
|
|
24
|
+
o,
|
|
25
|
+
(d) => {
|
|
26
|
+
var r;
|
|
27
|
+
(r = l.value) == null || r.setAttribute("href", d);
|
|
28
|
+
}
|
|
29
|
+
), { rootTag: n, attrsToBind: u, btnRef: l };
|
|
24
30
|
}
|
|
25
31
|
function Ua(e, a, t) {
|
|
26
32
|
const n = Object.keys(Et).find((l) => Ha(e, a, l));
|
|
@@ -143,11 +149,11 @@ const Ce = (e, a, t = void 0) => {
|
|
|
143
149
|
},
|
|
144
150
|
emits: ["toggled"],
|
|
145
151
|
setup(e, { emit: a }) {
|
|
146
|
-
const t = e, n = a, l = A(null), i = A(!1), { icon: u } = Pe(t, "icon"), [o] = oe(), d = v(() => o.value + "-content"),
|
|
152
|
+
const t = e, n = a, l = A(null), i = A(!1), { icon: u } = Pe(t, "icon"), [o] = oe(), d = v(() => o.value + "-content"), r = v(() => o.value + "-title"), h = v(() => t.openItemId && t.openItemId === o.value || t.openItem === !0), b = v(() => t.controlled ? h.value : i.value);
|
|
147
153
|
function f() {
|
|
148
154
|
n("toggled", o.value), t.controlled || (i.value = !i.value);
|
|
149
155
|
}
|
|
150
|
-
return (g, w) => (
|
|
156
|
+
return (g, w) => (s(), p("div", {
|
|
151
157
|
id: c(o),
|
|
152
158
|
ref_key: "containerRef",
|
|
153
159
|
ref: l,
|
|
@@ -166,12 +172,12 @@ const Ce = (e, a, t = void 0) => {
|
|
|
166
172
|
type: "button",
|
|
167
173
|
onClick: f
|
|
168
174
|
}, [
|
|
169
|
-
e.icon || g.$slots.icon ? (
|
|
175
|
+
e.icon || g.$slots.icon ? (s(), p("span", Qa, [
|
|
170
176
|
L(g.$slots, "icon", {}, () => [
|
|
171
|
-
e.icon ? (
|
|
177
|
+
e.icon ? (s(), P(ie(c(u) ? c(u) : "span"), { key: 0 })) : O("", !0)
|
|
172
178
|
])
|
|
173
179
|
])) : O("", !0),
|
|
174
|
-
y("span", { id:
|
|
180
|
+
y("span", { id: r.value }, [
|
|
175
181
|
L(g.$slots, "header", {}, () => [
|
|
176
182
|
X(E(e.headerText), 1)
|
|
177
183
|
])
|
|
@@ -183,7 +189,7 @@ const Ce = (e, a, t = void 0) => {
|
|
|
183
189
|
], 8, Za)
|
|
184
190
|
], 8, Xa),
|
|
185
191
|
y("div", {
|
|
186
|
-
"aria-labelledby":
|
|
192
|
+
"aria-labelledby": r.value,
|
|
187
193
|
class: "bs-accordion-content",
|
|
188
194
|
"data-open": b.value,
|
|
189
195
|
id: d.value,
|
|
@@ -248,7 +254,7 @@ const Ce = (e, a, t = void 0) => {
|
|
|
248
254
|
}
|
|
249
255
|
},
|
|
250
256
|
setup(e) {
|
|
251
|
-
const a = e, t = we(), n = mt(), { rootTag: l, attrsToBind: i,
|
|
257
|
+
const a = e, t = we(), n = mt(), { rootTag: l, attrsToBind: i, btnRef: u } = Xe(a, t), { onLinkClick: o } = Ze(a), d = v(() => b.value ? {} : a.href ? { title: a.label } : { "aria-label": a.label }), r = v(() => {
|
|
252
258
|
if (a.hoverEffect)
|
|
253
259
|
return a.iconPosition;
|
|
254
260
|
}), h = v(() => {
|
|
@@ -256,37 +262,38 @@ const Ce = (e, a, t = void 0) => {
|
|
|
256
262
|
return {
|
|
257
263
|
icon: a.icon || (a.textBtn || a.size == "sm" ? `small-${m}` : m)
|
|
258
264
|
};
|
|
259
|
-
}), b = v(() => a.textBtn || !!(n != null && n.default)), f = v(() => b.value && a.iconPosition !== "left"), g = v(() => b.value && a.iconPosition === "left"), w = v(() => a.variant ? `color-${a.variant}` : void 0), { icon:
|
|
260
|
-
return (m, I) => (
|
|
265
|
+
}), b = v(() => a.textBtn || !!(n != null && n.default)), f = v(() => b.value && a.iconPosition !== "left"), g = v(() => b.value && a.iconPosition === "left"), w = v(() => a.variant ? `color-${a.variant}` : void 0), { icon: B } = Pe(h, "icon");
|
|
266
|
+
return (m, I) => (s(), P(ie(c(l)), G({
|
|
267
|
+
ref_key: "btnRef",
|
|
268
|
+
ref: u,
|
|
261
269
|
class: "bs-circle-button",
|
|
262
270
|
"data-disabled": e.disabled,
|
|
263
|
-
"data-direction":
|
|
271
|
+
"data-direction": r.value,
|
|
264
272
|
"data-ghost": e.ghostBtn,
|
|
265
273
|
"data-size": e.size,
|
|
266
274
|
"data-text": b.value,
|
|
267
275
|
"data-variant": w.value,
|
|
268
|
-
"data-component": "bs-circle-button"
|
|
269
|
-
".href": c(u)
|
|
276
|
+
"data-component": "bs-circle-button"
|
|
270
277
|
}, { ...c(i), ...d.value }, { onClick: c(o) }), {
|
|
271
278
|
default: R(() => [
|
|
272
|
-
f.value ? (
|
|
279
|
+
f.value ? (s(), p("span", en, [
|
|
273
280
|
L(m.$slots, "default", {}, () => [
|
|
274
281
|
X(E(e.label), 1)
|
|
275
282
|
])
|
|
276
283
|
])) : O("", !0),
|
|
277
284
|
y("span", tn, [
|
|
278
285
|
L(m.$slots, "icon", {}, () => [
|
|
279
|
-
(
|
|
286
|
+
(s(), P(ie(c(B))))
|
|
280
287
|
])
|
|
281
288
|
]),
|
|
282
|
-
g.value ? (
|
|
289
|
+
g.value ? (s(), p("span", an, [
|
|
283
290
|
L(m.$slots, "default", {}, () => [
|
|
284
291
|
X(E(e.label), 1)
|
|
285
292
|
])
|
|
286
293
|
])) : O("", !0)
|
|
287
294
|
]),
|
|
288
295
|
_: 3
|
|
289
|
-
},
|
|
296
|
+
}, 16, ["data-disabled", "data-direction", "data-ghost", "data-size", "data-text", "data-variant", "onClick"]));
|
|
290
297
|
}
|
|
291
298
|
}), nn = {
|
|
292
299
|
__name: "BsCaretTextButton",
|
|
@@ -327,7 +334,7 @@ const Ce = (e, a, t = void 0) => {
|
|
|
327
334
|
}
|
|
328
335
|
},
|
|
329
336
|
setup(e) {
|
|
330
|
-
return (a, t) => (
|
|
337
|
+
return (a, t) => (s(), P(Yt, {
|
|
331
338
|
disabled: e.disabled,
|
|
332
339
|
"ghost-btn": e.ghostBtn,
|
|
333
340
|
"hover-effect": e.hoverEffect,
|
|
@@ -340,7 +347,7 @@ const Ce = (e, a, t = void 0) => {
|
|
|
340
347
|
variant: e.variant
|
|
341
348
|
}, {
|
|
342
349
|
icon: R(() => [
|
|
343
|
-
e.direction == "right" ? (
|
|
350
|
+
e.direction == "right" ? (s(), P(c(ga), { key: 0 })) : (s(), P(c(ya), { key: 1 }))
|
|
344
351
|
]),
|
|
345
352
|
default: R(() => [
|
|
346
353
|
L(a.$slots, "default", {}, () => [
|
|
@@ -406,7 +413,7 @@ const Ce = (e, a, t = void 0) => {
|
|
|
406
413
|
return "blue";
|
|
407
414
|
}
|
|
408
415
|
});
|
|
409
|
-
return (i, u) => (
|
|
416
|
+
return (i, u) => (s(), p("div", {
|
|
410
417
|
class: "bs-alert",
|
|
411
418
|
"data-horizontal": e.horizontal ? "true" : void 0,
|
|
412
419
|
"data-variant": e.variant,
|
|
@@ -422,12 +429,12 @@ const Ce = (e, a, t = void 0) => {
|
|
|
422
429
|
X(E(e.title), 1)
|
|
423
430
|
])
|
|
424
431
|
]),
|
|
425
|
-
e.description || i.$slots.description ? (
|
|
432
|
+
e.description || i.$slots.description ? (s(), p("div", sn, [
|
|
426
433
|
L(i.$slots, "description", {}, () => [
|
|
427
434
|
X(E(e.description), 1)
|
|
428
435
|
])
|
|
429
436
|
])) : O("", !0),
|
|
430
|
-
e.hideDismiss ? O("", !0) : (
|
|
437
|
+
e.hideDismiss ? O("", !0) : (s(), p("button", {
|
|
431
438
|
key: 1,
|
|
432
439
|
class: "bs-alert-close",
|
|
433
440
|
"aria-label": "Close alert",
|
|
@@ -435,9 +442,9 @@ const Ce = (e, a, t = void 0) => {
|
|
|
435
442
|
type: "button",
|
|
436
443
|
onClick: u[0] || (u[0] = (o) => n("close"))
|
|
437
444
|
}, [
|
|
438
|
-
M(c(
|
|
445
|
+
M(c(ke))
|
|
439
446
|
])),
|
|
440
|
-
e.actionLabel ? (
|
|
447
|
+
e.actionLabel ? (s(), P(nn, {
|
|
441
448
|
key: 2,
|
|
442
449
|
class: "bs-alert-action",
|
|
443
450
|
label: e.actionLabel,
|
|
@@ -497,13 +504,13 @@ const Ce = (e, a, t = void 0) => {
|
|
|
497
504
|
},
|
|
498
505
|
setup(e) {
|
|
499
506
|
const a = e, t = A(null), n = v(() => a.count === 0 ? "0" : !a.count || a.dot ? null : a.count > a.countMax ? a.countMax + "+" : a.count.toString()), l = v(() => {
|
|
500
|
-
var d,
|
|
501
|
-
const i = ((
|
|
507
|
+
var d, r;
|
|
508
|
+
const i = ((r = (d = t.value) == null ? void 0 : d.textContent) == null ? void 0 : r.trim()) || "", u = n.value ? n.value + " " : "";
|
|
502
509
|
if (!u && !a.dot) return i;
|
|
503
510
|
const o = a.count !== 1 ? "s" : "";
|
|
504
511
|
return `${i ? `${i}, ` : ""}${u}${a.label}${o}`;
|
|
505
512
|
});
|
|
506
|
-
return (i, u) => (
|
|
513
|
+
return (i, u) => (s(), p("span", {
|
|
507
514
|
ref_key: "hostRef",
|
|
508
515
|
ref: t,
|
|
509
516
|
"aria-label": l.value,
|
|
@@ -534,7 +541,7 @@ const Ce = (e, a, t = void 0) => {
|
|
|
534
541
|
function l() {
|
|
535
542
|
n.value = !0, t("dismiss");
|
|
536
543
|
}
|
|
537
|
-
return (i, u) => n.value ? O("", !0) : (
|
|
544
|
+
return (i, u) => n.value ? O("", !0) : (s(), p("div", {
|
|
538
545
|
key: 0,
|
|
539
546
|
role: "alert",
|
|
540
547
|
class: "bs-banner",
|
|
@@ -555,7 +562,7 @@ const Ce = (e, a, t = void 0) => {
|
|
|
555
562
|
title: "Close Banner",
|
|
556
563
|
onClick: l
|
|
557
564
|
}, [
|
|
558
|
-
M(c(
|
|
565
|
+
M(c(ke))
|
|
559
566
|
])
|
|
560
567
|
])
|
|
561
568
|
], 8, cn));
|
|
@@ -591,21 +598,22 @@ const Ce = (e, a, t = void 0) => {
|
|
|
591
598
|
href: { type: String }
|
|
592
599
|
},
|
|
593
600
|
setup(e) {
|
|
594
|
-
const a = e, t = we(), { rootTag: n, attrsToBind: l,
|
|
595
|
-
return (o, d) => (
|
|
601
|
+
const a = e, t = we(), { rootTag: n, attrsToBind: l, btnRef: i } = Xe(a, t), { onLinkClick: u } = Ze(a);
|
|
602
|
+
return (o, d) => (s(), P(ie(c(n)), G({
|
|
603
|
+
ref_key: "btnRef",
|
|
604
|
+
ref: i,
|
|
596
605
|
class: "bs-button",
|
|
597
606
|
"data-component": "bs-button",
|
|
598
607
|
"data-ghost": e.ghostBtn,
|
|
599
608
|
"data-size": e.size,
|
|
600
609
|
"data-text": e.textBtn,
|
|
601
|
-
"data-variant": e.variant
|
|
602
|
-
".href": c(i)
|
|
610
|
+
"data-variant": e.variant
|
|
603
611
|
}, c(l), { onClick: c(u) }), {
|
|
604
612
|
default: R(() => [
|
|
605
613
|
L(o.$slots, "default")
|
|
606
614
|
]),
|
|
607
615
|
_: 3
|
|
608
|
-
},
|
|
616
|
+
}, 16, ["data-ghost", "data-size", "data-text", "data-variant", "onClick"]));
|
|
609
617
|
}
|
|
610
618
|
}), vn = {
|
|
611
619
|
class: "bs-field-details",
|
|
@@ -631,14 +639,14 @@ const Ce = (e, a, t = void 0) => {
|
|
|
631
639
|
},
|
|
632
640
|
setup(e) {
|
|
633
641
|
const a = e, t = v(() => a.error && a.errorMsg || a.hint);
|
|
634
|
-
return (n, l) => (
|
|
635
|
-
t.value ? (
|
|
642
|
+
return (n, l) => (s(), p("div", vn, [
|
|
643
|
+
t.value ? (s(), p("span", {
|
|
636
644
|
key: 0,
|
|
637
645
|
id: e.hintId,
|
|
638
646
|
class: "bs-hint",
|
|
639
647
|
"data-error": e.error
|
|
640
648
|
}, E(t.value), 9, bn)) : O("", !0),
|
|
641
|
-
e.charMax ? (
|
|
649
|
+
e.charMax ? (s(), p("span", {
|
|
642
650
|
key: 1,
|
|
643
651
|
"aria-description": "character count over character limit for the preceding text field",
|
|
644
652
|
class: "bs-character-count",
|
|
@@ -655,7 +663,7 @@ const Ce = (e, a, t = void 0) => {
|
|
|
655
663
|
required: { type: Boolean, default: !1 }
|
|
656
664
|
},
|
|
657
665
|
setup(e) {
|
|
658
|
-
return (a, t) => (
|
|
666
|
+
return (a, t) => (s(), p("label", {
|
|
659
667
|
class: de(["bs-label", e.hide ? "visually-hidden" : ""]),
|
|
660
668
|
"data-component": "bs-label",
|
|
661
669
|
"data-disabled": e.disabled,
|
|
@@ -664,7 +672,7 @@ const Ce = (e, a, t = void 0) => {
|
|
|
664
672
|
y("span", null, [
|
|
665
673
|
L(a.$slots, "default")
|
|
666
674
|
]),
|
|
667
|
-
e.required ? (
|
|
675
|
+
e.required ? (s(), p(J, { key: 0 }, [
|
|
668
676
|
t[0] || (t[0] = y("span", {
|
|
669
677
|
"data-required": "true",
|
|
670
678
|
"aria-hidden": "true"
|
|
@@ -693,7 +701,7 @@ const Ce = (e, a, t = void 0) => {
|
|
|
693
701
|
const d = l.type === "number" ? parseInt(o.target.value) : o.target.value;
|
|
694
702
|
n("update:modelValue", d);
|
|
695
703
|
}
|
|
696
|
-
return (o, d) => (
|
|
704
|
+
return (o, d) => (s(), p("input", G({
|
|
697
705
|
class: "bs-input",
|
|
698
706
|
"data-component": "bs-input",
|
|
699
707
|
"data-error": e.error,
|
|
@@ -713,7 +721,7 @@ const Ce = (e, a, t = void 0) => {
|
|
|
713
721
|
variant: { type: String, validator: (e) => ["inner-bordered", "combobox"].includes(e) }
|
|
714
722
|
},
|
|
715
723
|
setup(e) {
|
|
716
|
-
return (a, t) => (
|
|
724
|
+
return (a, t) => (s(), p("div", {
|
|
717
725
|
class: "bs-input-addon",
|
|
718
726
|
"data-component": "bs-input-addon",
|
|
719
727
|
"data-autopad": e.autopad,
|
|
@@ -764,7 +772,7 @@ const Ce = (e, a, t = void 0) => {
|
|
|
764
772
|
},
|
|
765
773
|
emits: ["clear"],
|
|
766
774
|
setup(e, { emit: a }) {
|
|
767
|
-
return (t, n) => (
|
|
775
|
+
return (t, n) => (s(), P(Re, {
|
|
768
776
|
disabled: e.disabled,
|
|
769
777
|
error: e.error
|
|
770
778
|
}, {
|
|
@@ -784,7 +792,7 @@ const Ce = (e, a, t = void 0) => {
|
|
|
784
792
|
class: "bs-calendar-clear-btn",
|
|
785
793
|
onClick: n[0] || (n[0] = (l) => t.$emit("clear"))
|
|
786
794
|
}, [
|
|
787
|
-
M(c(
|
|
795
|
+
M(c(ke), {
|
|
788
796
|
size: "sm",
|
|
789
797
|
class: "bs-text-black"
|
|
790
798
|
})
|
|
@@ -805,7 +813,7 @@ function We(e, a, t) {
|
|
|
805
813
|
}, a);
|
|
806
814
|
};
|
|
807
815
|
}
|
|
808
|
-
const Sn = ["disabled", "id", "model-value"], $n = ["disabled", "id", "model-value"],
|
|
816
|
+
const Sn = ["disabled", "id", "model-value"], $n = ["disabled", "id", "model-value"], kn = {
|
|
809
817
|
__name: "BsInputDateRange",
|
|
810
818
|
props: {
|
|
811
819
|
disabled: {
|
|
@@ -852,15 +860,15 @@ const Sn = ["disabled", "id", "model-value"], $n = ["disabled", "id", "model-val
|
|
|
852
860
|
f.dispatchEvent(g);
|
|
853
861
|
}
|
|
854
862
|
function o(f) {
|
|
855
|
-
const { value: g } = f.target, [w,
|
|
856
|
-
l.value.value = w || "", i.value.value =
|
|
863
|
+
const { value: g } = f.target, [w, B] = g.split(/ to | - /);
|
|
864
|
+
l.value.value = w || "", i.value.value = B || "", u(l.value), u(i.value);
|
|
857
865
|
}
|
|
858
866
|
const d = We(o, 1e3);
|
|
859
|
-
function
|
|
867
|
+
function r(f) {
|
|
860
868
|
n("ui-input"), d(f);
|
|
861
869
|
}
|
|
862
870
|
const h = v(() => t.listeners.start ? t.listeners.start : {}), b = v(() => t.listeners.end ? t.listeners.end : {});
|
|
863
|
-
return (f, g) => (
|
|
871
|
+
return (f, g) => (s(), P(Re, {
|
|
864
872
|
disabled: e.disabled,
|
|
865
873
|
error: e.error
|
|
866
874
|
}, {
|
|
@@ -874,7 +882,7 @@ const Sn = ["disabled", "id", "model-value"], $n = ["disabled", "id", "model-val
|
|
|
874
882
|
placeholder: e.placeholder,
|
|
875
883
|
required: e.required,
|
|
876
884
|
onFocusin: g[0] || (g[0] = (w) => f.$emit("ui-focusin")),
|
|
877
|
-
onInput:
|
|
885
|
+
onInput: r,
|
|
878
886
|
onChange: o
|
|
879
887
|
}, null, 8, ["disabled", "id", "model-value", "placeholder", "required"]),
|
|
880
888
|
y("input", G({
|
|
@@ -899,7 +907,7 @@ const Sn = ["disabled", "id", "model-value"], $n = ["disabled", "id", "model-val
|
|
|
899
907
|
class: "bs-calendar-clear-btn",
|
|
900
908
|
onClick: g[1] || (g[1] = (w) => f.$emit("clear"))
|
|
901
909
|
}, [
|
|
902
|
-
M(c(
|
|
910
|
+
M(c(ke), {
|
|
903
911
|
size: "sm",
|
|
904
912
|
class: "bs-text-black"
|
|
905
913
|
})
|
|
@@ -911,7 +919,7 @@ const Sn = ["disabled", "id", "model-value"], $n = ["disabled", "id", "model-val
|
|
|
911
919
|
}, 8, ["disabled", "error"]));
|
|
912
920
|
}
|
|
913
921
|
};
|
|
914
|
-
function
|
|
922
|
+
function Bn(e) {
|
|
915
923
|
function a(l) {
|
|
916
924
|
var i, u;
|
|
917
925
|
return ((u = (i = l == null ? void 0 : l.classList) == null ? void 0 : i.contains) == null ? void 0 : u.call(i, "vc-arrow")) && (l.classList.contains("vc-prev") || l.classList.contains("vc-next"));
|
|
@@ -1078,7 +1086,7 @@ const xn = ["data-range"], Vt = "(min-width: 752px)", Ji = /* @__PURE__ */ Objec
|
|
|
1078
1086
|
},
|
|
1079
1087
|
emits: ["update:modelValue", "clear"],
|
|
1080
1088
|
setup(e, { emit: a }) {
|
|
1081
|
-
const t = e, n = A(null), l = A(1), i = A(null), [u, o] = oe(2), d = A(1), { filtered:
|
|
1089
|
+
const t = e, n = A(null), l = A(1), i = A(null), [u, o] = oe(2), d = A(1), { filtered: r, remaining: h } = ae(we(), [
|
|
1082
1090
|
"attributes",
|
|
1083
1091
|
"data-cy",
|
|
1084
1092
|
"expanded",
|
|
@@ -1092,8 +1100,8 @@ const xn = ["data-range"], Vt = "(min-width: 752px)", Ji = /* @__PURE__ */ Objec
|
|
|
1092
1100
|
var $;
|
|
1093
1101
|
return ($ = t.exclusiveDates) != null && $.length ? q(t.exclusiveDates) : t.disabledDates;
|
|
1094
1102
|
}
|
|
1095
|
-
), f = v(() => t.inputId || u.value), g = v(() => ({ range: t.isRange })), w = v(() => t.showClear && t.modelValue && !t.disabled),
|
|
1096
|
-
|
|
1103
|
+
), f = v(() => t.inputId || u.value), g = v(() => ({ range: t.isRange })), w = v(() => t.showClear && t.modelValue && !t.disabled), B = v(() => !!(t.error && t.errorMsg || t.hint)), m = v(() => t.step), I = v(() => t.variant);
|
|
1104
|
+
Bn(i), je(
|
|
1097
1105
|
Vt,
|
|
1098
1106
|
($) => l.value = $ != null && $.matches && I.value == "2-col" ? 2 : 1,
|
|
1099
1107
|
[I]
|
|
@@ -1104,8 +1112,8 @@ const xn = ["data-range"], Vt = "(min-width: 752px)", Ji = /* @__PURE__ */ Objec
|
|
|
1104
1112
|
), te(() => {
|
|
1105
1113
|
t.inputMode || W();
|
|
1106
1114
|
}), Y(() => {
|
|
1107
|
-
var $,
|
|
1108
|
-
return (
|
|
1115
|
+
var $, k;
|
|
1116
|
+
return (k = ($ = n.value) == null ? void 0 : $.popoverRef) == null ? void 0 : k.isVisible;
|
|
1109
1117
|
}, ($) => {
|
|
1110
1118
|
$ && Ve(W);
|
|
1111
1119
|
});
|
|
@@ -1113,24 +1121,24 @@ const xn = ["data-range"], Vt = "(min-width: 752px)", Ji = /* @__PURE__ */ Objec
|
|
|
1113
1121
|
return t.isRange && $.start && $.end ? `${$.start} to ${$.end}` : !t.isRange && $ ? $ : "";
|
|
1114
1122
|
}
|
|
1115
1123
|
function q($) {
|
|
1116
|
-
const
|
|
1124
|
+
const k = [];
|
|
1117
1125
|
for (let S = 0; S < $.length; S++) {
|
|
1118
1126
|
const H = $[S];
|
|
1119
|
-
S === 0 &&
|
|
1127
|
+
S === 0 && k.push({ start: null, end: new Date(H.getTime() - 864e5) }), S > 0 && H.getTime() - $[S - 1].getTime() > 864e5 && k.push({
|
|
1120
1128
|
start: new Date($[S - 1].getTime() + 864e5),
|
|
1121
1129
|
end: new Date(H.getTime() - 864e5)
|
|
1122
|
-
}), S === $.length - 1 &&
|
|
1130
|
+
}), S === $.length - 1 && k.push({ start: new Date(H.getTime() + 864e5), end: null });
|
|
1123
1131
|
}
|
|
1124
|
-
return
|
|
1132
|
+
return k;
|
|
1125
1133
|
}
|
|
1126
1134
|
function j($) {
|
|
1127
1135
|
!t.isRange || i.value.contains($.relatedTarget) || n.value.hidePopover();
|
|
1128
1136
|
}
|
|
1129
1137
|
function W() {
|
|
1130
|
-
const $ = i.value.querySelector("button.vc-prev"),
|
|
1131
|
-
$ && $.setAttribute("aria-label", "Previous month"),
|
|
1138
|
+
const $ = i.value.querySelector("button.vc-prev"), k = i.value.querySelector("button.vc-next");
|
|
1139
|
+
$ && $.setAttribute("aria-label", "Previous month"), k && k.setAttribute("aria-label", "Next month");
|
|
1132
1140
|
}
|
|
1133
|
-
return ($,
|
|
1141
|
+
return ($, k) => (s(), p("div", G({
|
|
1134
1142
|
ref_key: "container",
|
|
1135
1143
|
ref: i,
|
|
1136
1144
|
class: "bs-calendar",
|
|
@@ -1138,7 +1146,7 @@ const xn = ["data-range"], Vt = "(min-width: 752px)", Ji = /* @__PURE__ */ Objec
|
|
|
1138
1146
|
"data-range": e.isRange,
|
|
1139
1147
|
onFocusout: j
|
|
1140
1148
|
}, c(h)), [
|
|
1141
|
-
e.label || $.$slots.label ? (
|
|
1149
|
+
e.label || $.$slots.label ? (s(), P(ce, {
|
|
1142
1150
|
key: 0,
|
|
1143
1151
|
for: f.value,
|
|
1144
1152
|
disabled: e.disabled,
|
|
@@ -1164,12 +1172,12 @@ const xn = ["data-range"], Vt = "(min-width: 752px)", Ji = /* @__PURE__ */ Objec
|
|
|
1164
1172
|
popover: { visibility: "focus" },
|
|
1165
1173
|
rows: 1,
|
|
1166
1174
|
step: d.value,
|
|
1167
|
-
"onUpdate:modelValue":
|
|
1168
|
-
}, c(
|
|
1175
|
+
"onUpdate:modelValue": k[2] || (k[2] = (V) => $.$emit("update:modelValue", V))
|
|
1176
|
+
}, c(r)), ft({ _: 2 }, [
|
|
1169
1177
|
e.inputMode ? {
|
|
1170
1178
|
name: "default",
|
|
1171
1179
|
fn: R(({ inputValue: V, inputEvents: S, showPopover: H }) => [
|
|
1172
|
-
e.isRange ? (
|
|
1180
|
+
e.isRange ? (s(), P(kn, {
|
|
1173
1181
|
key: 1,
|
|
1174
1182
|
disabled: e.disabled,
|
|
1175
1183
|
error: e.error,
|
|
@@ -1182,8 +1190,8 @@ const xn = ["data-range"], Vt = "(min-width: 752px)", Ji = /* @__PURE__ */ Objec
|
|
|
1182
1190
|
required: e.required,
|
|
1183
1191
|
onUiFocusin: H,
|
|
1184
1192
|
onUiInput: H,
|
|
1185
|
-
onClear:
|
|
1186
|
-
}, null, 8, ["disabled", "error", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "show-clear", "required", "onUiFocusin", "onUiInput"])) : (
|
|
1193
|
+
onClear: k[1] || (k[1] = (Q) => $.$emit("clear"))
|
|
1194
|
+
}, null, 8, ["disabled", "error", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "show-clear", "required", "onUiFocusin", "onUiInput"])) : (s(), P(wn, {
|
|
1187
1195
|
key: 0,
|
|
1188
1196
|
disabled: e.disabled,
|
|
1189
1197
|
error: e.error,
|
|
@@ -1193,13 +1201,13 @@ const xn = ["data-range"], Vt = "(min-width: 752px)", Ji = /* @__PURE__ */ Objec
|
|
|
1193
1201
|
placeholder: e.placeholder,
|
|
1194
1202
|
"show-clear": w.value,
|
|
1195
1203
|
required: e.required,
|
|
1196
|
-
onClear:
|
|
1204
|
+
onClear: k[0] || (k[0] = (Q) => $.$emit("clear"))
|
|
1197
1205
|
}, null, 8, ["disabled", "error", "input-id", "listeners", "model-value", "placeholder", "show-clear", "required"]))
|
|
1198
1206
|
]),
|
|
1199
1207
|
key: "0"
|
|
1200
1208
|
} : void 0
|
|
1201
1209
|
]), 1040, ["columns", "disabled-dates", "max-date", "min-date", "model-value", "model-modifiers", "step"]),
|
|
1202
|
-
|
|
1210
|
+
B.value ? (s(), P(Te, {
|
|
1203
1211
|
key: 1,
|
|
1204
1212
|
error: e.error,
|
|
1205
1213
|
"error-msg": e.errorMsg,
|
|
@@ -1242,7 +1250,7 @@ const xn = ["data-range"], Vt = "(min-width: 752px)", Ji = /* @__PURE__ */ Objec
|
|
|
1242
1250
|
}
|
|
1243
1251
|
},
|
|
1244
1252
|
setup(e) {
|
|
1245
|
-
return (a, t) => (
|
|
1253
|
+
return (a, t) => (s(), P(Yt, {
|
|
1246
1254
|
disabled: e.disabled,
|
|
1247
1255
|
"ghost-btn": e.ghostBtn,
|
|
1248
1256
|
"hover-effect": e.hoverEffect,
|
|
@@ -1254,7 +1262,7 @@ const xn = ["data-range"], Vt = "(min-width: 752px)", Ji = /* @__PURE__ */ Objec
|
|
|
1254
1262
|
"text-btn": !1
|
|
1255
1263
|
}, {
|
|
1256
1264
|
icon: R(() => [
|
|
1257
|
-
e.direction == "right" ? (
|
|
1265
|
+
e.direction == "right" ? (s(), P(c(Ut), { key: 0 })) : (s(), P(c(Ht), { key: 1 }))
|
|
1258
1266
|
]),
|
|
1259
1267
|
_: 1
|
|
1260
1268
|
}, 8, ["disabled", "ghost-btn", "hover-effect", "icon-position", "label", "link-to", "router", "size"]));
|
|
@@ -1309,8 +1317,8 @@ const xn = ["data-range"], Vt = "(min-width: 752px)", Ji = /* @__PURE__ */ Objec
|
|
|
1309
1317
|
const f = b.label;
|
|
1310
1318
|
let g = [];
|
|
1311
1319
|
if (b.data.some((w) => (w == null ? void 0 : w.x) && (w == null ? void 0 : w.y))) {
|
|
1312
|
-
const w = b.data.reduce((
|
|
1313
|
-
g = a.dataIdxLabels.map((
|
|
1320
|
+
const w = b.data.reduce((B, m) => (B[m.x] = m.y, B), {});
|
|
1321
|
+
g = a.dataIdxLabels.map((B) => ({ value: w[B] ?? null }));
|
|
1314
1322
|
} else
|
|
1315
1323
|
g = b.data.map((w) => ({ value: w }));
|
|
1316
1324
|
return { rowLabel: f, dataCells: g };
|
|
@@ -1321,16 +1329,16 @@ const xn = ["data-range"], Vt = "(min-width: 752px)", Ji = /* @__PURE__ */ Objec
|
|
|
1321
1329
|
}
|
|
1322
1330
|
function u(h) {
|
|
1323
1331
|
try {
|
|
1324
|
-
const b = h.reduce((w,
|
|
1325
|
-
const m =
|
|
1332
|
+
const b = h.reduce((w, B) => {
|
|
1333
|
+
const m = B.data.map((I) => I == null ? void 0 : I.x);
|
|
1326
1334
|
return [...w, ...m];
|
|
1327
1335
|
}, []), f = Array.from(new Set(b));
|
|
1328
|
-
return (a.xAxisType === "time" || a.xAxisType === "linear") && f.sort((w,
|
|
1329
|
-
const
|
|
1336
|
+
return (a.xAxisType === "time" || a.xAxisType === "linear") && f.sort((w, B) => (typeof w == "string" && typeof B == "string" && (w = w.toLowerCase(), B = B.toLowerCase()), w < B ? -1 : w > B ? 1 : 0)), f.map((w) => {
|
|
1337
|
+
const B = { rowLabel: w }, m = [];
|
|
1330
1338
|
return h.forEach((I) => {
|
|
1331
1339
|
const x = { datasetLabel: I.label }, q = I.data.find((j) => j.x === w);
|
|
1332
1340
|
x.value = q ? q.y : null, m.push(x);
|
|
1333
|
-
}),
|
|
1341
|
+
}), B.dataCells = m, a.xAxisType === "time" && (B.rowLabelFmt = n(w)), B;
|
|
1334
1342
|
});
|
|
1335
1343
|
} catch {
|
|
1336
1344
|
return [];
|
|
@@ -1342,14 +1350,14 @@ const xn = ["data-range"], Vt = "(min-width: 752px)", Ji = /* @__PURE__ */ Objec
|
|
|
1342
1350
|
colHeadingFirst: l.value ? a.xLabel : "Dataset",
|
|
1343
1351
|
colHeadings: l.value ? a.data.map((h) => h.label) : a.dataIdxLabels,
|
|
1344
1352
|
rows: o.value
|
|
1345
|
-
})),
|
|
1353
|
+
})), r = v(() => {
|
|
1346
1354
|
var h;
|
|
1347
1355
|
return t.value && !!((h = o.value) != null && h.length);
|
|
1348
1356
|
});
|
|
1349
1357
|
return te(() => {
|
|
1350
1358
|
t.value = !0;
|
|
1351
|
-
}), (h, b) => (
|
|
1352
|
-
|
|
1359
|
+
}), (h, b) => (s(), p("div", Tn, [
|
|
1360
|
+
r.value ? (s(), p("table", {
|
|
1353
1361
|
key: 0,
|
|
1354
1362
|
summary: d.value.title
|
|
1355
1363
|
}, [
|
|
@@ -1361,18 +1369,18 @@ const xn = ["data-range"], Vt = "(min-width: 752px)", Ji = /* @__PURE__ */ Objec
|
|
|
1361
1369
|
]),
|
|
1362
1370
|
y("tr", null, [
|
|
1363
1371
|
y("th", zn, E(d.value.colHeadingFirst), 1),
|
|
1364
|
-
(
|
|
1372
|
+
(s(!0), p(J, null, le(d.value.colHeadings, (f) => (s(), p("th", {
|
|
1365
1373
|
key: f,
|
|
1366
1374
|
scope: "col"
|
|
1367
1375
|
}, E(f), 1))), 128))
|
|
1368
1376
|
])
|
|
1369
1377
|
]),
|
|
1370
1378
|
y("tbody", null, [
|
|
1371
|
-
(
|
|
1379
|
+
(s(!0), p(J, null, le(d.value.rows, (f) => (s(), p("tr", {
|
|
1372
1380
|
key: f.rowLabelFmt || f.rowLabel
|
|
1373
1381
|
}, [
|
|
1374
1382
|
y("th", En, E(f.rowLabelFmt || f.rowLabel), 1),
|
|
1375
|
-
(
|
|
1383
|
+
(s(!0), p(J, null, le(f.dataCells, (g) => (s(), p("td", {
|
|
1376
1384
|
key: `${f.rowLabelFmt || f.rowLabel}${g.datasetLabel}${g.value}`
|
|
1377
1385
|
}, E(g.value), 1))), 128))
|
|
1378
1386
|
]))), 128))
|
|
@@ -1383,7 +1391,7 @@ const xn = ["data-range"], Vt = "(min-width: 752px)", Ji = /* @__PURE__ */ Objec
|
|
|
1383
1391
|
}, Me = 16, Vn = 20;
|
|
1384
1392
|
function Dn(e, a) {
|
|
1385
1393
|
const t = A(null), n = A(!1), l = A(null), i = "(min-width: 1166px)", u = { tickSize: Me }, o = { tickSize: Vn };
|
|
1386
|
-
let d,
|
|
1394
|
+
let d, r;
|
|
1387
1395
|
function h(m, I) {
|
|
1388
1396
|
let x;
|
|
1389
1397
|
switch (m) {
|
|
@@ -1412,12 +1420,12 @@ function Dn(e, a) {
|
|
|
1412
1420
|
(j = q == null ? void 0 : q.focus) == null || j.call(q);
|
|
1413
1421
|
}
|
|
1414
1422
|
function g(...m) {
|
|
1415
|
-
!
|
|
1423
|
+
!r || !t.value || (tt.register(...m), tt.defaults.font.family = "'Roobert', sans-serif", d = new tt(t.value, r));
|
|
1416
1424
|
}
|
|
1417
1425
|
const w = We(function(m) {
|
|
1418
|
-
|
|
1419
|
-
}, 100),
|
|
1420
|
-
|
|
1426
|
+
r && (r.updateOptions(m), d.options = r.options, d.update());
|
|
1427
|
+
}, 100), B = We(function(m) {
|
|
1428
|
+
r && (r.updateData(m), d.data = r.data, d.update());
|
|
1421
1429
|
}, 100);
|
|
1422
1430
|
return je(
|
|
1423
1431
|
i,
|
|
@@ -1426,9 +1434,9 @@ function Dn(e, a) {
|
|
|
1426
1434
|
), te(() => {
|
|
1427
1435
|
var m;
|
|
1428
1436
|
try {
|
|
1429
|
-
|
|
1437
|
+
r = h(e, a), (m = l.value) == null || m.addEventListener("click", b);
|
|
1430
1438
|
} catch (I) {
|
|
1431
|
-
console.error("Error creating chart config", I),
|
|
1439
|
+
console.error("Error creating chart config", I), r = null;
|
|
1432
1440
|
}
|
|
1433
1441
|
}), Ce([" ", "Enter"], b, l), Ge(() => {
|
|
1434
1442
|
var m;
|
|
@@ -1455,7 +1463,7 @@ function Dn(e, a) {
|
|
|
1455
1463
|
() => a.data,
|
|
1456
1464
|
() => a.dataIdxLabels
|
|
1457
1465
|
],
|
|
1458
|
-
() =>
|
|
1466
|
+
() => B(a),
|
|
1459
1467
|
{ deep: !0 }
|
|
1460
1468
|
), {
|
|
1461
1469
|
canvasRef: t,
|
|
@@ -1553,7 +1561,7 @@ function $t() {
|
|
|
1553
1561
|
responsive: !0
|
|
1554
1562
|
};
|
|
1555
1563
|
}
|
|
1556
|
-
function
|
|
1564
|
+
function kt(e) {
|
|
1557
1565
|
var g, w;
|
|
1558
1566
|
const {
|
|
1559
1567
|
dataIdxLabels: a,
|
|
@@ -1564,7 +1572,7 @@ function Bt(e) {
|
|
|
1564
1572
|
xLabel: u,
|
|
1565
1573
|
yLabel: o,
|
|
1566
1574
|
yMax: d,
|
|
1567
|
-
yMin:
|
|
1575
|
+
yMin: r,
|
|
1568
1576
|
customOptions: h,
|
|
1569
1577
|
tickSize: b
|
|
1570
1578
|
} = e, f = {
|
|
@@ -1593,7 +1601,7 @@ function Bt(e) {
|
|
|
1593
1601
|
},
|
|
1594
1602
|
stacked: l,
|
|
1595
1603
|
suggestedMax: d,
|
|
1596
|
-
suggestedMin:
|
|
1604
|
+
suggestedMin: r,
|
|
1597
1605
|
ticks: {
|
|
1598
1606
|
font: {
|
|
1599
1607
|
size: b || Me
|
|
@@ -1652,7 +1660,7 @@ class Nn extends Zt {
|
|
|
1652
1660
|
}
|
|
1653
1661
|
updateOptions(a) {
|
|
1654
1662
|
super.updateOptions(a);
|
|
1655
|
-
const t =
|
|
1663
|
+
const t = kt(a), n = { x: { ticks: { font: t.x.ticks.font } }, y: { ticks: { font: t.y.ticks.font } } }, l = Ye(
|
|
1656
1664
|
{},
|
|
1657
1665
|
this.options,
|
|
1658
1666
|
{ scales: t },
|
|
@@ -1677,7 +1685,7 @@ class Rn extends Zt {
|
|
|
1677
1685
|
}
|
|
1678
1686
|
updateOptions(a) {
|
|
1679
1687
|
super.updateOptions(a);
|
|
1680
|
-
const t =
|
|
1688
|
+
const t = kt(a), n = { x: { ticks: { font: t.x.ticks.font } }, y: { ticks: { font: t.y.ticks.font } } }, l = Ye(
|
|
1681
1689
|
{},
|
|
1682
1690
|
this.options,
|
|
1683
1691
|
{ scales: t },
|
|
@@ -1730,7 +1738,7 @@ class Fn {
|
|
|
1730
1738
|
*/
|
|
1731
1739
|
setCartesianAxesOpts(a) {
|
|
1732
1740
|
const { dataIdxLabels: t } = a;
|
|
1733
|
-
return this.dataIdxLabels = t, this.scalesOptions =
|
|
1741
|
+
return this.dataIdxLabels = t, this.scalesOptions = kt(a), this.commonOptionsStrict.scales = {
|
|
1734
1742
|
x: { ticks: { font: { size: Me } } },
|
|
1735
1743
|
y: { ticks: { font: { size: Me } } }
|
|
1736
1744
|
}, this;
|
|
@@ -1848,7 +1856,7 @@ const Kn = {
|
|
|
1848
1856
|
Ra,
|
|
1849
1857
|
Fa,
|
|
1850
1858
|
Ka
|
|
1851
|
-
)), (u, o) => (
|
|
1859
|
+
)), (u, o) => (s(), p("div", Kn, [
|
|
1852
1860
|
y("figure", null, [
|
|
1853
1861
|
y("div", null, [
|
|
1854
1862
|
y("canvas", {
|
|
@@ -1943,9 +1951,9 @@ const Kn = {
|
|
|
1943
1951
|
},
|
|
1944
1952
|
emits: ["update:modelValue"],
|
|
1945
1953
|
setup(e, { emit: a }) {
|
|
1946
|
-
const t = e, n = a, [l] = oe(), i = v(() => wt.concat(t.passAttrs.split(","))), u = A(null), o = v(() => t.inputId || l.value), d = v(() => t.checked || b.value),
|
|
1954
|
+
const t = e, n = a, [l] = oe(), i = v(() => wt.concat(t.passAttrs.split(","))), u = A(null), o = v(() => t.inputId || l.value), d = v(() => t.checked || b.value), r = v(() => t.indeterminate || t.checkedPartially), h = v(() => Array.isArray(t.modelValue) && t.value), b = v(() => h.value && t.modelValue.includes(t.value) || typeof t.modelValue == "boolean" && t.modelValue);
|
|
1947
1955
|
function f() {
|
|
1948
|
-
u.value && (u.value.indeterminate =
|
|
1956
|
+
u.value && (u.value.indeterminate = r.value && !d.value);
|
|
1949
1957
|
}
|
|
1950
1958
|
function g(m) {
|
|
1951
1959
|
n("update:modelValue", m);
|
|
@@ -1954,11 +1962,11 @@ const Kn = {
|
|
|
1954
1962
|
const I = [...t.modelValue];
|
|
1955
1963
|
m ? I.push(t.value) : I.splice(I.indexOf(t.value), 1), n("update:modelValue", I);
|
|
1956
1964
|
}
|
|
1957
|
-
function
|
|
1965
|
+
function B(m) {
|
|
1958
1966
|
const { checked: I } = m.target;
|
|
1959
1967
|
h.value ? w(I) : g(I);
|
|
1960
1968
|
}
|
|
1961
|
-
return Y(d, f), Y(
|
|
1969
|
+
return Y(d, f), Y(r, f), te(f), (m, I) => (s(), p("div", G({
|
|
1962
1970
|
class: "bs-boolean",
|
|
1963
1971
|
"data-component": "bs-checkbox",
|
|
1964
1972
|
"data-disabled": e.disabled,
|
|
@@ -1975,9 +1983,9 @@ const Kn = {
|
|
|
1975
1983
|
required: e.required,
|
|
1976
1984
|
value: e.value || "on",
|
|
1977
1985
|
type: "checkbox",
|
|
1978
|
-
onChange:
|
|
1986
|
+
onChange: B
|
|
1979
1987
|
}, c(ae)(m.$attrs, i.value).filtered), null, 16, Hn),
|
|
1980
|
-
e.label || m.$slots.label ? (
|
|
1988
|
+
e.label || m.$slots.label ? (s(), P(ce, {
|
|
1981
1989
|
key: 0,
|
|
1982
1990
|
for: m.$attrs.id || o.value,
|
|
1983
1991
|
disabled: e.disabled,
|
|
@@ -2014,15 +2022,15 @@ const Kn = {
|
|
|
2014
2022
|
},
|
|
2015
2023
|
setup(e, { expose: a }) {
|
|
2016
2024
|
const t = A(null);
|
|
2017
|
-
return a({ internalContainerRef: t }), (n, l) => (
|
|
2018
|
-
e.breakout && e.breakoutMounted ? (
|
|
2025
|
+
return a({ internalContainerRef: t }), (n, l) => (s(), p(J, null, [
|
|
2026
|
+
e.breakout && e.breakoutMounted ? (s(), P(pa, {
|
|
2019
2027
|
key: 0,
|
|
2020
2028
|
to: e.breakoutStub
|
|
2021
2029
|
}, [
|
|
2022
2030
|
L(n.$slots, "default")
|
|
2023
2031
|
], 8, ["to"])) : O("", !0),
|
|
2024
|
-
e.breakout ? O("", !0) : (
|
|
2025
|
-
e.containerId ? L(n.$slots, "default", { key: 0 }) : (
|
|
2032
|
+
e.breakout ? O("", !0) : (s(), p(J, { key: 1 }, [
|
|
2033
|
+
e.containerId ? L(n.$slots, "default", { key: 0 }) : (s(), p("div", {
|
|
2026
2034
|
key: 1,
|
|
2027
2035
|
ref_key: "internalContainerRef",
|
|
2028
2036
|
ref: t,
|
|
@@ -2065,7 +2073,7 @@ const Kn = {
|
|
|
2065
2073
|
],
|
|
2066
2074
|
setup(e, { emit: a }) {
|
|
2067
2075
|
const t = a;
|
|
2068
|
-
return (n, l) => e.preloaded ? Se((
|
|
2076
|
+
return (n, l) => e.preloaded ? Se((s(), P(Tt, {
|
|
2069
2077
|
key: 0,
|
|
2070
2078
|
name: e.name,
|
|
2071
2079
|
onBeforeEnter: l[0] || (l[0] = (i) => t("before-enter")),
|
|
@@ -2083,7 +2091,7 @@ const Kn = {
|
|
|
2083
2091
|
_: 3
|
|
2084
2092
|
}, 8, ["name"])), [
|
|
2085
2093
|
[$e, e.shown]
|
|
2086
|
-
]) : (
|
|
2094
|
+
]) : (s(), P(Tt, {
|
|
2087
2095
|
key: 1,
|
|
2088
2096
|
name: e.name,
|
|
2089
2097
|
onBeforeEnter: l[8] || (l[8] = (i) => t("before-enter")),
|
|
@@ -2166,7 +2174,7 @@ const Kn = {
|
|
|
2166
2174
|
"after-leave"
|
|
2167
2175
|
],
|
|
2168
2176
|
setup(e, { emit: a }) {
|
|
2169
|
-
const t = e, n = a, l = A(null), i = A(null), u = A(!1), o = A(!1), d = A(null),
|
|
2177
|
+
const t = e, n = a, l = A(null), i = A(null), u = A(!1), o = A(!1), d = A(null), r = v(() => t.breakout ? b.value : t.containerId ? document.getElementById(t.containerId) : l.value.internalContainerRef), h = v(() => t.width === "anchor" ? void 0 : t.width);
|
|
2170
2178
|
yt([i, d], () => {
|
|
2171
2179
|
o.value && n("close");
|
|
2172
2180
|
}), Ce(["Escape"], () => {
|
|
@@ -2178,22 +2186,22 @@ const Kn = {
|
|
|
2178
2186
|
i.value.style.setProperty(W, $);
|
|
2179
2187
|
};
|
|
2180
2188
|
function w() {
|
|
2181
|
-
const W =
|
|
2182
|
-
|
|
2189
|
+
const W = r.value.getBoundingClientRect(), $ = d.value.getBoundingClientRect(), k = i.value.getBoundingClientRect();
|
|
2190
|
+
B(W, $), m(W, $, k);
|
|
2183
2191
|
}
|
|
2184
|
-
function
|
|
2192
|
+
function B(W, $) {
|
|
2185
2193
|
if (t.position === "top") {
|
|
2186
|
-
const
|
|
2187
|
-
g("--dropdown-wscreen-top", "auto"), g("--dropdown-wscreen-bottom", `${
|
|
2194
|
+
const k = W.bottom - $.bottom;
|
|
2195
|
+
g("--dropdown-wscreen-top", "auto"), g("--dropdown-wscreen-bottom", `${k + $.height + 8}px`);
|
|
2188
2196
|
} else {
|
|
2189
|
-
const
|
|
2190
|
-
g("--dropdown-wscreen-top", `${
|
|
2197
|
+
const k = $.top - W.top;
|
|
2198
|
+
g("--dropdown-wscreen-top", `${k + $.height + 8}px`), g("--dropdown-wscreen-bottom", "auto");
|
|
2191
2199
|
}
|
|
2192
2200
|
}
|
|
2193
|
-
function m(W, $,
|
|
2201
|
+
function m(W, $, k) {
|
|
2194
2202
|
const V = $.left - W.left;
|
|
2195
2203
|
if (t.position === "center") {
|
|
2196
|
-
const S = ($.width -
|
|
2204
|
+
const S = ($.width - k.width) / 2;
|
|
2197
2205
|
g("--dropdown-wscreen-left", `${V + S}px`), g("--dropdown-wscreen-right", "auto");
|
|
2198
2206
|
} else if (t.position === "right") {
|
|
2199
2207
|
const S = W.right - $.right;
|
|
@@ -2217,8 +2225,8 @@ const Kn = {
|
|
|
2217
2225
|
function j() {
|
|
2218
2226
|
u.value = !1, o.value = !1, n("after-leave");
|
|
2219
2227
|
}
|
|
2220
|
-
return (W, $) => (
|
|
2221
|
-
e.useMobileStyle && e.shown ? (
|
|
2228
|
+
return (W, $) => (s(), p(J, null, [
|
|
2229
|
+
e.useMobileStyle && e.shown ? (s(), p("div", Xn)) : O("", !0),
|
|
2222
2230
|
M(Gn, {
|
|
2223
2231
|
ref_key: "dropdownContainerRef",
|
|
2224
2232
|
ref: l,
|
|
@@ -2245,17 +2253,17 @@ const Kn = {
|
|
|
2245
2253
|
"data-shown": e.shown,
|
|
2246
2254
|
"data-no-mobile": !e.useMobileStyle
|
|
2247
2255
|
}, W.$attrs), [
|
|
2248
|
-
e.helperText ? (
|
|
2256
|
+
e.helperText ? (s(), p("header", Qn, [
|
|
2249
2257
|
y("div", null, [
|
|
2250
2258
|
y("h3", null, E(e.helperText), 1),
|
|
2251
|
-
e.helperDescription ? (
|
|
2259
|
+
e.helperDescription ? (s(), p("p", Jn, E(e.helperDescription), 1)) : O("", !0)
|
|
2252
2260
|
]),
|
|
2253
2261
|
y("button", {
|
|
2254
2262
|
type: "button",
|
|
2255
2263
|
title: "close",
|
|
2256
2264
|
onClick: $[0] || ($[0] = () => n("close"))
|
|
2257
2265
|
}, [
|
|
2258
|
-
M(c(
|
|
2266
|
+
M(c(ke))
|
|
2259
2267
|
])
|
|
2260
2268
|
])) : O("", !0),
|
|
2261
2269
|
L(W.$slots, "default")
|
|
@@ -2359,7 +2367,7 @@ const Kn = {
|
|
|
2359
2367
|
],
|
|
2360
2368
|
setup(e, { emit: a }) {
|
|
2361
2369
|
const t = e, n = a, { transition: l } = Ne(t), i = v(() => t.width === "toggle" ? "anchor" : t.width), u = v(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = v(() => t.toggleId ? t.toggleId : t.anchorId);
|
|
2362
|
-
return (d,
|
|
2370
|
+
return (d, r) => (s(), P(_n, {
|
|
2363
2371
|
"anchor-id": o.value,
|
|
2364
2372
|
breakout: e.breakout,
|
|
2365
2373
|
"container-id": e.containerId,
|
|
@@ -2370,10 +2378,10 @@ const Kn = {
|
|
|
2370
2378
|
shown: c(l),
|
|
2371
2379
|
"use-mobile-style": e.useMobileStyle,
|
|
2372
2380
|
width: i.value,
|
|
2373
|
-
onClose:
|
|
2374
|
-
onEnter:
|
|
2375
|
-
onAfterEnter:
|
|
2376
|
-
onAfterLeave:
|
|
2381
|
+
onClose: r[0] || (r[0] = () => n("close")),
|
|
2382
|
+
onEnter: r[1] || (r[1] = () => n("enter")),
|
|
2383
|
+
onAfterEnter: r[2] || (r[2] = () => n("after-enter")),
|
|
2384
|
+
onAfterLeave: r[3] || (r[3] = () => n("after-leave"))
|
|
2377
2385
|
}, {
|
|
2378
2386
|
default: R(() => [
|
|
2379
2387
|
L(d.$slots, "default")
|
|
@@ -2438,7 +2446,7 @@ const Kn = {
|
|
|
2438
2446
|
function d() {
|
|
2439
2447
|
o.value ? n("clear") : n("toggled");
|
|
2440
2448
|
}
|
|
2441
|
-
return (
|
|
2449
|
+
return (r, h) => (s(), P(Re, {
|
|
2442
2450
|
"aria-live": "polite",
|
|
2443
2451
|
disabled: e.disabled,
|
|
2444
2452
|
error: e.error,
|
|
@@ -2462,15 +2470,15 @@ const Kn = {
|
|
|
2462
2470
|
placeholder: e.placeholder,
|
|
2463
2471
|
required: e.required,
|
|
2464
2472
|
role: e.optionsId ? "combobox" : void 0,
|
|
2465
|
-
onFocus: h[0] || (h[0] = (b) =>
|
|
2466
|
-
onInput: h[1] || (h[1] = (b) =>
|
|
2473
|
+
onFocus: h[0] || (h[0] = (b) => r.$emit("input-focus")),
|
|
2474
|
+
onInput: h[1] || (h[1] = (b) => r.$emit("update:modelValue", b.target.value)),
|
|
2467
2475
|
onKeydown: [
|
|
2468
|
-
h[2] || (h[2] = Ke(ge((b) =>
|
|
2469
|
-
h[3] || (h[3] = Ke(ge((b) =>
|
|
2476
|
+
h[2] || (h[2] = Ke(ge((b) => r.$emit("input-shift-tab"), ["shift"]), ["tab"])),
|
|
2477
|
+
h[3] || (h[3] = Ke(ge((b) => r.$emit("input-tab"), ["exact"]), ["tab"]))
|
|
2470
2478
|
],
|
|
2471
|
-
onMousedown: h[4] || (h[4] = (b) =>
|
|
2472
|
-
onMouseup: h[5] || (h[5] = (b) =>
|
|
2473
|
-
},
|
|
2479
|
+
onMousedown: h[4] || (h[4] = (b) => r.$emit("input-mousedown")),
|
|
2480
|
+
onMouseup: h[5] || (h[5] = (b) => r.$emit("input-mouseup"))
|
|
2481
|
+
}, r.$attrs), null, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup", "aria-invalid", "data-error", "disabled", "model-value", "placeholder", "required", "role"]),
|
|
2474
2482
|
Se(y("button", {
|
|
2475
2483
|
"aria-controls": !o.value && e.optionsId ? e.optionsId : void 0,
|
|
2476
2484
|
"aria-expanded": !o.value && e.optionsId ? e.open : void 0,
|
|
@@ -2483,11 +2491,11 @@ const Kn = {
|
|
|
2483
2491
|
onClick: d
|
|
2484
2492
|
}, [
|
|
2485
2493
|
y("span", tl, E(u.value.text), 1),
|
|
2486
|
-
o.value ? (
|
|
2494
|
+
o.value ? (s(), P(c(ke), {
|
|
2487
2495
|
key: 0,
|
|
2488
2496
|
role: "presentation",
|
|
2489
2497
|
size: "md"
|
|
2490
|
-
})) : (
|
|
2498
|
+
})) : (s(), P(c(Ee), {
|
|
2491
2499
|
key: 1,
|
|
2492
2500
|
role: "presentation",
|
|
2493
2501
|
size: "md"
|
|
@@ -2529,7 +2537,7 @@ const Kn = {
|
|
|
2529
2537
|
},
|
|
2530
2538
|
setup(e) {
|
|
2531
2539
|
const a = e, t = v(() => a.badgeCount > 0);
|
|
2532
|
-
return (n, l) => (
|
|
2540
|
+
return (n, l) => (s(), p("button", {
|
|
2533
2541
|
class: "bs-filter-button",
|
|
2534
2542
|
"aria-controls": e.optionsId,
|
|
2535
2543
|
"aria-expanded": e.open,
|
|
@@ -2540,7 +2548,7 @@ const Kn = {
|
|
|
2540
2548
|
disabled: e.disabled,
|
|
2541
2549
|
type: "button"
|
|
2542
2550
|
}, [
|
|
2543
|
-
t.value ? (
|
|
2551
|
+
t.value ? (s(), P(un, {
|
|
2544
2552
|
key: 0,
|
|
2545
2553
|
color: "blue",
|
|
2546
2554
|
count: e.badgeCount,
|
|
@@ -2558,7 +2566,7 @@ const Kn = {
|
|
|
2558
2566
|
var l;
|
|
2559
2567
|
const n = typeof a == "object" ? (l = a == null ? void 0 : a[t]) == null ? void 0 : l.toString().replace(/\s/g, "-") : a == null ? void 0 : a.toString().replace(/\s/g, "-");
|
|
2560
2568
|
return `${e}-option-${n}`;
|
|
2561
|
-
}, ol = ["data-value", "data-value-id-key", "data-value-type", "data-variant", "id"],
|
|
2569
|
+
}, ol = ["data-value", "data-value-id-key", "data-value-type", "data-variant", "id"], Bt = {
|
|
2562
2570
|
__name: "BsDropdownOption",
|
|
2563
2571
|
props: {
|
|
2564
2572
|
valueIdKey: {
|
|
@@ -2578,12 +2586,12 @@ const Kn = {
|
|
|
2578
2586
|
const a = e, t = A(null), n = ue("optionsId", A("")), l = ue("handleOptionSelect", () => {
|
|
2579
2587
|
}), i = ue("registerOptionById", () => {
|
|
2580
2588
|
}), u = v(() => typeof a.value != "object" ? "" : a.valueIdKey), o = v(() => Qt(n.value, a.value, u.value));
|
|
2581
|
-
function d(
|
|
2582
|
-
l(t.value),
|
|
2589
|
+
function d(r) {
|
|
2590
|
+
l(t.value), r.stopPropagation();
|
|
2583
2591
|
}
|
|
2584
2592
|
return te(() => {
|
|
2585
2593
|
i({ id: o.value, val: a.value });
|
|
2586
|
-
}), (
|
|
2594
|
+
}), (r, h) => (s(), p("li", {
|
|
2587
2595
|
ref_key: "optionRef",
|
|
2588
2596
|
ref: t,
|
|
2589
2597
|
"data-component": "bs-dropdown-option",
|
|
@@ -2595,7 +2603,7 @@ const Kn = {
|
|
|
2595
2603
|
role: "option",
|
|
2596
2604
|
onClick: d
|
|
2597
2605
|
}, [
|
|
2598
|
-
L(
|
|
2606
|
+
L(r.$slots, "default")
|
|
2599
2607
|
], 8, ol));
|
|
2600
2608
|
}
|
|
2601
2609
|
}, il = ["data-img-size", "data-initials", "data-no-img"], rl = ["src", "alt"], Jt = {
|
|
@@ -2618,14 +2626,14 @@ const Kn = {
|
|
|
2618
2626
|
},
|
|
2619
2627
|
setup(e) {
|
|
2620
2628
|
const a = e, t = A(!1), n = A(!!a.src);
|
|
2621
|
-
return te(() => t.value = !0), (l, i) => (
|
|
2629
|
+
return te(() => t.value = !0), (l, i) => (s(), p("div", {
|
|
2622
2630
|
class: "bs-profile-img",
|
|
2623
2631
|
"data-component": "bs-profile-img",
|
|
2624
2632
|
"data-img-size": e.size,
|
|
2625
2633
|
"data-initials": e.initials,
|
|
2626
2634
|
"data-no-img": !n.value
|
|
2627
2635
|
}, [
|
|
2628
|
-
n.value && t.value ? (
|
|
2636
|
+
n.value && t.value ? (s(), p("img", {
|
|
2629
2637
|
key: 0,
|
|
2630
2638
|
src: e.src,
|
|
2631
2639
|
alt: e.useAltText ? e.profileName : "",
|
|
@@ -2688,8 +2696,8 @@ const Kn = {
|
|
|
2688
2696
|
});
|
|
2689
2697
|
}
|
|
2690
2698
|
function l(o) {
|
|
2691
|
-
let d = "",
|
|
2692
|
-
return
|
|
2699
|
+
let d = "", r = 1;
|
|
2700
|
+
return r += o.checkbox ? 1 : 0, r += o.icon ? 1 : 0, r += o.profileImg ? 1 : 0, r > 1 && (d += ` ${r}-col`), o.checkbox && (d += " checkbox"), o.description && (d += " description"), o.negative && (d += " negative"), d;
|
|
2693
2701
|
}
|
|
2694
2702
|
function i(o) {
|
|
2695
2703
|
return bt(async () => {
|
|
@@ -2700,42 +2708,42 @@ const Kn = {
|
|
|
2700
2708
|
function u(o, d) {
|
|
2701
2709
|
return !!o && o !== d;
|
|
2702
2710
|
}
|
|
2703
|
-
return (o, d) => (
|
|
2704
|
-
(
|
|
2705
|
-
"aria-checked":
|
|
2706
|
-
key:
|
|
2711
|
+
return (o, d) => (s(), p(J, null, [
|
|
2712
|
+
(s(!0), p(J, null, le(e.options, (r) => (s(), P(Bt, {
|
|
2713
|
+
"aria-checked": r.checkbox ? r.checkbox.checked : void 0,
|
|
2714
|
+
key: r.value,
|
|
2707
2715
|
"value-id-key": e.valueIdKey,
|
|
2708
|
-
value:
|
|
2709
|
-
variant: l(
|
|
2716
|
+
value: r.value,
|
|
2717
|
+
variant: l(r)
|
|
2710
2718
|
}, {
|
|
2711
2719
|
default: R(() => [
|
|
2712
|
-
|
|
2720
|
+
r.checkbox ? (s(), p("span", {
|
|
2713
2721
|
key: 0,
|
|
2714
|
-
id:
|
|
2722
|
+
id: r.checkbox.inputId,
|
|
2715
2723
|
"aria-hidden": "true",
|
|
2716
2724
|
class: "bs-checkbox",
|
|
2717
|
-
"data-checked":
|
|
2725
|
+
"data-checked": r.checkbox.checked
|
|
2718
2726
|
}, null, 8, sl)) : O("", !0),
|
|
2719
|
-
|
|
2720
|
-
(
|
|
2727
|
+
r.icon ? (s(), p("span", dl, [
|
|
2728
|
+
(s(), P(ie(t[r.icon])))
|
|
2721
2729
|
])) : O("", !0),
|
|
2722
|
-
|
|
2730
|
+
r.profileImg ? (s(), P(Jt, {
|
|
2723
2731
|
key: 2,
|
|
2724
|
-
src:
|
|
2732
|
+
src: r.profileImg.src,
|
|
2725
2733
|
size: "xs",
|
|
2726
|
-
initials:
|
|
2727
|
-
"profile-name":
|
|
2728
|
-
"use-alt-text": u(
|
|
2734
|
+
initials: r.profileImg.initials,
|
|
2735
|
+
"profile-name": r.profileImg.profileName,
|
|
2736
|
+
"use-alt-text": u(r.profileImg.profileName, r.label)
|
|
2729
2737
|
}, null, 8, ["src", "initials", "profile-name", "use-alt-text"])) : O("", !0),
|
|
2730
|
-
|
|
2738
|
+
r.labelHtml ? (s(), p("span", {
|
|
2731
2739
|
key: 3,
|
|
2732
|
-
innerHTML:
|
|
2733
|
-
}, null, 8, ul)) : (
|
|
2734
|
-
|
|
2740
|
+
innerHTML: r.labelHtml
|
|
2741
|
+
}, null, 8, ul)) : (s(), p("span", cl, E(r.label), 1)),
|
|
2742
|
+
r.description ? (s(), p("span", fl, E(r.description), 1)) : O("", !0)
|
|
2735
2743
|
]),
|
|
2736
2744
|
_: 2
|
|
2737
2745
|
}, 1032, ["aria-checked", "value-id-key", "value", "variant"]))), 128)),
|
|
2738
|
-
e.showNoOptions && e.options.length === 0 ? (
|
|
2746
|
+
e.showNoOptions && e.options.length === 0 ? (s(), p("li", pl, [
|
|
2739
2747
|
L(o.$slots, "no-options", {}, () => [
|
|
2740
2748
|
d[0] || (d[0] = X("No options"))
|
|
2741
2749
|
])
|
|
@@ -2788,14 +2796,14 @@ const Kn = {
|
|
|
2788
2796
|
emits: ["clear", "update:modelValue"],
|
|
2789
2797
|
setup(e, { emit: a }) {
|
|
2790
2798
|
const t = e, n = v(() => xe.concat(t.passAttrs.split(","))), l = v(() => !t.disabled && !t.hideClear && t.variant !== "filter");
|
|
2791
|
-
return (i, u) => (
|
|
2799
|
+
return (i, u) => (s(), P(Re, G({
|
|
2792
2800
|
class: "bs-input-search",
|
|
2793
2801
|
"data-component": "bs-input-search",
|
|
2794
2802
|
"data-variant": e.variant,
|
|
2795
2803
|
disabled: e.disabled
|
|
2796
2804
|
}, c(ae)(i.$attrs, n.value).remaining), {
|
|
2797
2805
|
default: R(() => [
|
|
2798
|
-
e.hideSearchIcon ? O("", !0) : (
|
|
2806
|
+
e.hideSearchIcon ? O("", !0) : (s(), P(c(wa), { key: 0 })),
|
|
2799
2807
|
M(De, G({
|
|
2800
2808
|
"data-autowidth": "",
|
|
2801
2809
|
disabled: e.disabled,
|
|
@@ -2810,7 +2818,7 @@ const Kn = {
|
|
|
2810
2818
|
type: "button",
|
|
2811
2819
|
onClick: u[1] || (u[1] = (o) => i.$emit("clear"))
|
|
2812
2820
|
}, [
|
|
2813
|
-
M(c(
|
|
2821
|
+
M(c(ke), { size: "sm" })
|
|
2814
2822
|
], 512), [
|
|
2815
2823
|
[$e, l.value]
|
|
2816
2824
|
])
|
|
@@ -2856,12 +2864,12 @@ const Kn = {
|
|
|
2856
2864
|
"update:modelValue"
|
|
2857
2865
|
],
|
|
2858
2866
|
setup(e, { expose: a, emit: t }) {
|
|
2859
|
-
const n = e, l = t, i = A(null), u = A(null), o = A(-1), d = A(-1),
|
|
2867
|
+
const n = e, l = t, i = A(null), u = A(null), o = A(-1), d = A(-1), r = A(null), h = A(!1);
|
|
2860
2868
|
let b = {};
|
|
2861
2869
|
const f = ue("dropdownEnter", A(!1)), g = ue("dropdownAfterEnter", A(!1)), w = ue("dropdownShown", A(!1));
|
|
2862
2870
|
ve("optionsId", v(() => n.optionsId)), ve("handleOptionSelect", se), ve("registerOptionById", ({ id: F, val: D }) => {
|
|
2863
2871
|
b[F] = D;
|
|
2864
|
-
}), Ga(i, j, { childList: !0 }), Ce([" ", "Enter", "NumpadEnter"],
|
|
2872
|
+
}), Ga(i, j, { childList: !0 }), Ce([" ", "Enter", "NumpadEnter"], Be, i), Ce(["ArrowDown", "ArrowUp", "Home", "End"], be);
|
|
2865
2873
|
const I = [/^[a-zA-Z0-9]{1}$/], x = {
|
|
2866
2874
|
keys: "",
|
|
2867
2875
|
lastTyped: 0
|
|
@@ -2873,7 +2881,7 @@ const Kn = {
|
|
|
2873
2881
|
}), Y(
|
|
2874
2882
|
[f, () => {
|
|
2875
2883
|
var F;
|
|
2876
|
-
return (F =
|
|
2884
|
+
return (F = r.value) == null ? void 0 : F.length;
|
|
2877
2885
|
}],
|
|
2878
2886
|
([F, D]) => {
|
|
2879
2887
|
(F || D > 0) && (h.value = i.value.scrollHeight > i.value.clientHeight);
|
|
@@ -2883,7 +2891,7 @@ const Kn = {
|
|
|
2883
2891
|
}), Y(w, (F) => H(F));
|
|
2884
2892
|
const q = v(() => n.modelValue || n.selectedValue);
|
|
2885
2893
|
function j() {
|
|
2886
|
-
|
|
2894
|
+
r.value = Array.from(
|
|
2887
2895
|
i.value.querySelectorAll('[data-component="bs-dropdown-option"]')
|
|
2888
2896
|
);
|
|
2889
2897
|
}
|
|
@@ -2892,32 +2900,32 @@ const Kn = {
|
|
|
2892
2900
|
}
|
|
2893
2901
|
function $() {
|
|
2894
2902
|
var F;
|
|
2895
|
-
o.value > -1 && (W(), (F =
|
|
2903
|
+
o.value > -1 && (W(), (F = r.value[o.value]) == null || F.scrollIntoView({ block: "nearest" }));
|
|
2896
2904
|
}
|
|
2897
|
-
function
|
|
2905
|
+
function k() {
|
|
2898
2906
|
var F, D;
|
|
2899
|
-
o.value > -1 && ((F =
|
|
2907
|
+
o.value > -1 && ((F = r.value[o.value]) == null || F.setAttribute("data-active", ""), u.value = (D = r.value[o.value]) == null ? void 0 : D.id, $());
|
|
2900
2908
|
}
|
|
2901
2909
|
function V() {
|
|
2902
2910
|
var F;
|
|
2903
|
-
o.value > -1 && ((F =
|
|
2911
|
+
o.value > -1 && ((F = r.value[o.value]) == null || F.removeAttribute("data-active"));
|
|
2904
2912
|
}
|
|
2905
2913
|
function S() {
|
|
2906
2914
|
var F;
|
|
2907
|
-
o.value < 0 && (o.value = 0, u.value = (F =
|
|
2915
|
+
o.value < 0 && (o.value = 0, u.value = (F = r.value[0]) == null ? void 0 : F.id), k();
|
|
2908
2916
|
}
|
|
2909
2917
|
function H(F) {
|
|
2910
2918
|
F ? Q() : fe();
|
|
2911
2919
|
}
|
|
2912
2920
|
function Q() {
|
|
2913
2921
|
var F, D;
|
|
2914
|
-
n.multiselect || (d.value =
|
|
2922
|
+
n.multiselect || (d.value = r.value.findIndex(
|
|
2915
2923
|
// valueIdKey will only be present if value is an object
|
|
2916
2924
|
(Z) => Z.dataset.valueIdKey ? Z.id === Qt(n.optionsId, q.value, Z.dataset.valueIdKey) : Z.dataset.value === String(q.value)
|
|
2917
|
-
), !n.multiselect && d.value > -1 && ((F =
|
|
2925
|
+
), !n.multiselect && d.value > -1 && ((F = r.value[d.value]) == null || F.setAttribute("data-selected", ""), (D = r.value[d.value]) == null || D.setAttribute("aria-selected", "true")), o.value = d.value);
|
|
2918
2926
|
}
|
|
2919
2927
|
function fe() {
|
|
2920
|
-
|
|
2928
|
+
r.value.forEach((F) => {
|
|
2921
2929
|
F.removeAttribute("data-selected"), F.setAttribute("aria-selected", "false");
|
|
2922
2930
|
}), V(), d.value = -1, o.value = -1, u.value = null;
|
|
2923
2931
|
}
|
|
@@ -2927,8 +2935,8 @@ const Kn = {
|
|
|
2927
2935
|
let D = F.dataset.valueIdKey ? b[F.id] : F.dataset.value;
|
|
2928
2936
|
F.dataset.valueType == "number" && (D = Number(D)), u.value = F.id, V(), l("optselected", D), l("update:modelValue", D), l("close");
|
|
2929
2937
|
}
|
|
2930
|
-
function
|
|
2931
|
-
se(
|
|
2938
|
+
function Be(F) {
|
|
2939
|
+
se(r.value[o.value]), F.preventDefault();
|
|
2932
2940
|
}
|
|
2933
2941
|
function be(F) {
|
|
2934
2942
|
if (w.value)
|
|
@@ -2951,16 +2959,16 @@ const Kn = {
|
|
|
2951
2959
|
let D;
|
|
2952
2960
|
switch (F) {
|
|
2953
2961
|
case "up":
|
|
2954
|
-
D = o.value - 1 < 0 ?
|
|
2962
|
+
D = o.value - 1 < 0 ? r.value.length - 1 : o.value - 1;
|
|
2955
2963
|
break;
|
|
2956
2964
|
case "down":
|
|
2957
|
-
D = (o.value + 1) %
|
|
2965
|
+
D = (o.value + 1) % r.value.length;
|
|
2958
2966
|
break;
|
|
2959
2967
|
case "home":
|
|
2960
2968
|
D = 0;
|
|
2961
2969
|
break;
|
|
2962
2970
|
case "end":
|
|
2963
|
-
D =
|
|
2971
|
+
D = r.value.length - 1;
|
|
2964
2972
|
break;
|
|
2965
2973
|
}
|
|
2966
2974
|
he(D);
|
|
@@ -2968,19 +2976,19 @@ const Kn = {
|
|
|
2968
2976
|
function Ae(F, D) {
|
|
2969
2977
|
if (!w.value) return;
|
|
2970
2978
|
D.keys = F.timeStamp - D.lastTyped > 500 ? F.key : D.keys + F.key, D.lastTyped = F.timeStamp;
|
|
2971
|
-
const Z =
|
|
2979
|
+
const Z = r.value.findIndex((ee) => ee.textContent.replaceAll(/[^a-zA-Z0-9]/g, "").toLowerCase().startsWith(D.keys));
|
|
2972
2980
|
Z > -1 && he(Z, !1);
|
|
2973
2981
|
}
|
|
2974
2982
|
function he(F, D = !0) {
|
|
2975
|
-
V(), o.value = F, document.activeElement !== i.value && D ? i.value.focus() :
|
|
2983
|
+
V(), o.value = F, document.activeElement !== i.value && D ? i.value.focus() : k();
|
|
2976
2984
|
}
|
|
2977
2985
|
return a({
|
|
2978
2986
|
activeIndex: o,
|
|
2979
|
-
optionEls:
|
|
2987
|
+
optionEls: r,
|
|
2980
2988
|
optionsRef: i,
|
|
2981
2989
|
refreshOptions: j,
|
|
2982
|
-
setCurrentActive:
|
|
2983
|
-
}), (F, D) => (
|
|
2990
|
+
setCurrentActive: k
|
|
2991
|
+
}), (F, D) => (s(), p("ul", {
|
|
2984
2992
|
ref_key: "optionsRef",
|
|
2985
2993
|
ref: i,
|
|
2986
2994
|
"aria-activedescendant": u.value || void 0,
|
|
@@ -3049,21 +3057,21 @@ const Kn = {
|
|
|
3049
3057
|
],
|
|
3050
3058
|
setup(e, { emit: a }) {
|
|
3051
3059
|
const t = e, n = a, l = A(null), i = A([]), u = A([]), o = v(() => {
|
|
3052
|
-
var
|
|
3053
|
-
return ((
|
|
3060
|
+
var B, m;
|
|
3061
|
+
return ((B = i.value) == null ? void 0 : B.length) && ((m = u.value) == null ? void 0 : m.length);
|
|
3054
3062
|
}), d = v(() => {
|
|
3055
|
-
var
|
|
3056
|
-
return ((
|
|
3063
|
+
var B, m;
|
|
3064
|
+
return ((B = i.value) == null ? void 0 : B.length) || ((m = u.value) == null ? void 0 : m.length);
|
|
3057
3065
|
});
|
|
3058
|
-
let
|
|
3066
|
+
let r = !1;
|
|
3059
3067
|
Y(() => t.options, () => {
|
|
3060
3068
|
f(t.selectedOptions);
|
|
3061
3069
|
}), Y(
|
|
3062
3070
|
() => t.selectedOptions,
|
|
3063
3071
|
f,
|
|
3064
3072
|
{ immediate: !0 }
|
|
3065
|
-
), Y(() => t.shown, (
|
|
3066
|
-
|
|
3073
|
+
), Y(() => t.shown, (B) => {
|
|
3074
|
+
B && t.focusOnOpen && Ve(h);
|
|
3067
3075
|
});
|
|
3068
3076
|
function h() {
|
|
3069
3077
|
l.value && (l.value.refreshOptions(), l.value.optionsRef.focus());
|
|
@@ -3071,31 +3079,31 @@ const Kn = {
|
|
|
3071
3079
|
function b() {
|
|
3072
3080
|
l.value && (l.value.refreshOptions(), l.value.setCurrentActive());
|
|
3073
3081
|
}
|
|
3074
|
-
function f(
|
|
3082
|
+
function f(B = []) {
|
|
3075
3083
|
var j;
|
|
3076
|
-
const m = ((j =
|
|
3077
|
-
m && (
|
|
3078
|
-
const I = new Set(
|
|
3084
|
+
const m = ((j = B[0]) == null ? void 0 : j[t.valueIdKey]) !== void 0;
|
|
3085
|
+
m && (B = B.map((W) => W[t.valueIdKey]));
|
|
3086
|
+
const I = new Set(B), x = [], q = [];
|
|
3079
3087
|
t.options.forEach((W) => {
|
|
3080
|
-
const $ = { ...W },
|
|
3088
|
+
const $ = { ...W }, k = m ? W.value[t.valueIdKey] : W.value, V = `${t.optionsId}-${k}-cb`;
|
|
3081
3089
|
I.has(m ? W.value[t.valueIdKey] : W.value) ? ($.checkbox = { inputId: V, checked: !0 }, x.push($)) : ($.checkbox = { inputId: V, checked: !1 }, q.push($));
|
|
3082
3090
|
}), i.value = x, Ve(() => {
|
|
3083
3091
|
u.value = q, Ve(() => {
|
|
3084
|
-
|
|
3092
|
+
r && b(), r = !1;
|
|
3085
3093
|
});
|
|
3086
3094
|
});
|
|
3087
3095
|
}
|
|
3088
|
-
function g(
|
|
3089
|
-
const m = new Set(
|
|
3096
|
+
function g(B = []) {
|
|
3097
|
+
const m = new Set(B), I = [];
|
|
3090
3098
|
return t.options.forEach((x) => {
|
|
3091
3099
|
m.has(x.value) && I.push(x.value);
|
|
3092
3100
|
}), I;
|
|
3093
3101
|
}
|
|
3094
|
-
function w(
|
|
3102
|
+
function w(B) {
|
|
3095
3103
|
let m = [];
|
|
3096
|
-
t.selectedOptions.includes(
|
|
3104
|
+
t.selectedOptions.includes(B) ? (m = t.selectedOptions.filter((I) => I !== B), n("uncheck-option", B)) : (m = g([...t.selectedOptions, B]), n("check-option", B)), r = !0, n("update:selectedOptions", m);
|
|
3097
3105
|
}
|
|
3098
|
-
return (
|
|
3106
|
+
return (B, m) => (s(), P(Je, {
|
|
3099
3107
|
ref_key: "optlist",
|
|
3100
3108
|
ref: l,
|
|
3101
3109
|
"aria-multiselectable": "true",
|
|
@@ -3109,7 +3117,7 @@ const Kn = {
|
|
|
3109
3117
|
"onUpdate:modelValue": w
|
|
3110
3118
|
}, {
|
|
3111
3119
|
default: R(() => [
|
|
3112
|
-
d.value ? (
|
|
3120
|
+
d.value ? (s(), p(J, { key: 0 }, [
|
|
3113
3121
|
M(Ue, {
|
|
3114
3122
|
options: i.value,
|
|
3115
3123
|
"show-no-options": !1,
|
|
@@ -3125,8 +3133,8 @@ const Kn = {
|
|
|
3125
3133
|
"show-no-options": !1,
|
|
3126
3134
|
"value-id-key": e.valueIdKey
|
|
3127
3135
|
}, null, 8, ["options", "value-id-key"])
|
|
3128
|
-
], 64)) : (
|
|
3129
|
-
L(
|
|
3136
|
+
], 64)) : (s(), p("li", hl, [
|
|
3137
|
+
L(B.$slots, "no-options", {}, () => [
|
|
3130
3138
|
m[3] || (m[3] = X("No options"))
|
|
3131
3139
|
])
|
|
3132
3140
|
]))
|
|
@@ -3256,18 +3264,18 @@ const Kn = {
|
|
|
3256
3264
|
setup(e, { emit: a }) {
|
|
3257
3265
|
const t = e, n = a;
|
|
3258
3266
|
let l = null;
|
|
3259
|
-
const [i, u] = oe(2), o = A(!1), d = A(""),
|
|
3267
|
+
const [i, u] = oe(2), o = A(!1), d = A(""), r = v(() => t.selectedOptions.length), h = v(
|
|
3260
3268
|
() => t.multiselect ? ea : Je
|
|
3261
3269
|
), b = v(() => t.optionsId || u.value), f = v(() => t.toggleId || i.value), g = v(() => d.value ? t.options.filter(
|
|
3262
3270
|
(S) => S.label.toLowerCase().startsWith(d.value.toLowerCase())
|
|
3263
|
-
) : t.options), w = v(() => t.filter ? g.value : t.options),
|
|
3271
|
+
) : t.options), w = v(() => t.filter ? g.value : t.options), B = () => l || (l = document.getElementById(f.value));
|
|
3264
3272
|
function m() {
|
|
3265
3273
|
const S = document.activeElement;
|
|
3266
3274
|
return !S || S.tagName === "BODY" || S.id === b.value;
|
|
3267
3275
|
}
|
|
3268
3276
|
function I() {
|
|
3269
3277
|
var S, H;
|
|
3270
|
-
o.value = !1, n("close"), m() && ((H = (S =
|
|
3278
|
+
o.value = !1, n("close"), m() && ((H = (S = B()) == null ? void 0 : S.focus) == null || H.call(S));
|
|
3271
3279
|
}
|
|
3272
3280
|
function x() {
|
|
3273
3281
|
o.value && I();
|
|
@@ -3286,13 +3294,13 @@ const Kn = {
|
|
|
3286
3294
|
function $(S) {
|
|
3287
3295
|
t.multiselect || (n("update:selectedOption", S), I());
|
|
3288
3296
|
}
|
|
3289
|
-
function
|
|
3297
|
+
function k() {
|
|
3290
3298
|
d.value = "";
|
|
3291
3299
|
}
|
|
3292
3300
|
function V(S) {
|
|
3293
3301
|
d.value = S;
|
|
3294
3302
|
}
|
|
3295
|
-
return (S, H) => (
|
|
3303
|
+
return (S, H) => (s(), p("div", {
|
|
3296
3304
|
class: "bs-dropdown-with-toggle",
|
|
3297
3305
|
id: S.$attrs.id
|
|
3298
3306
|
}, [
|
|
@@ -3309,7 +3317,7 @@ const Kn = {
|
|
|
3309
3317
|
open: e.open,
|
|
3310
3318
|
"options-id": b.value,
|
|
3311
3319
|
size: e.toggleSize,
|
|
3312
|
-
"badge-count": e.showBadgeCount && e.multiselect ?
|
|
3320
|
+
"badge-count": e.showBadgeCount && e.multiselect ? r.value : void 0,
|
|
3313
3321
|
onClick: H[0] || (H[0] = (Q) => S.$emit("toggled"))
|
|
3314
3322
|
}, {
|
|
3315
3323
|
label: R(() => [
|
|
@@ -3332,16 +3340,16 @@ const Kn = {
|
|
|
3332
3340
|
width: e.dropdownWidth,
|
|
3333
3341
|
onClose: x,
|
|
3334
3342
|
onEnter: q,
|
|
3335
|
-
onAfterLeave:
|
|
3343
|
+
onAfterLeave: k
|
|
3336
3344
|
}, {
|
|
3337
3345
|
default: R(() => [
|
|
3338
|
-
e.filter ? (
|
|
3346
|
+
e.filter ? (s(), p("div", gl, [
|
|
3339
3347
|
M(_t, {
|
|
3340
3348
|
"aria-label": e.filterLabel,
|
|
3341
3349
|
"model-value": d.value,
|
|
3342
3350
|
placeholder: e.filterPlaceholder,
|
|
3343
3351
|
"onUpdate:modelValue": V,
|
|
3344
|
-
onClear:
|
|
3352
|
+
onClear: k
|
|
3345
3353
|
}, null, 8, ["aria-label", "model-value", "placeholder"])
|
|
3346
3354
|
])) : O("", !0),
|
|
3347
3355
|
M(c(h), {
|
|
@@ -3361,7 +3369,7 @@ const Kn = {
|
|
|
3361
3369
|
"onUpdate:modelValue": $
|
|
3362
3370
|
}, {
|
|
3363
3371
|
default: R(() => [
|
|
3364
|
-
e.multiselect ? O("", !0) : (
|
|
3372
|
+
e.multiselect ? O("", !0) : (s(), P(Ue, {
|
|
3365
3373
|
key: 0,
|
|
3366
3374
|
options: w.value,
|
|
3367
3375
|
"value-id-key": e.valueIdKey
|
|
@@ -3369,7 +3377,7 @@ const Kn = {
|
|
|
3369
3377
|
]),
|
|
3370
3378
|
_: 1
|
|
3371
3379
|
}, 8, ["class", "label", "model-value", "options", "options-id", "selected-options", "shown", "value-id-key"]),
|
|
3372
|
-
e.multiselect ? (
|
|
3380
|
+
e.multiselect ? (s(), p("div", yl, [
|
|
3373
3381
|
M(Xt, {
|
|
3374
3382
|
title: e.filterButtonText,
|
|
3375
3383
|
class: "mobile-select-button",
|
|
@@ -3453,10 +3461,10 @@ const Kn = {
|
|
|
3453
3461
|
},
|
|
3454
3462
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
3455
3463
|
setup(e, { emit: a }) {
|
|
3456
|
-
const t = e, n = a, [l, i, u] = oe(3), o = A(!1), d = A(!1),
|
|
3464
|
+
const t = e, n = a, [l, i, u] = oe(3), o = A(!1), d = A(!1), r = A(null), h = v(() => t.inputId || l.value);
|
|
3457
3465
|
let b = null;
|
|
3458
3466
|
function f() {
|
|
3459
|
-
return b || (b =
|
|
3467
|
+
return b || (b = r.value.$el.querySelector("input")), b;
|
|
3460
3468
|
}
|
|
3461
3469
|
function g(j) {
|
|
3462
3470
|
n("combobox:change", j.target.value), n("update:modelValue", j.target.value);
|
|
@@ -3464,7 +3472,7 @@ const Kn = {
|
|
|
3464
3472
|
function w() {
|
|
3465
3473
|
f().focus(), n("combobox:change", ""), n("update:modelValue", "");
|
|
3466
3474
|
}
|
|
3467
|
-
function
|
|
3475
|
+
function B(j) {
|
|
3468
3476
|
n("combobox:input", j.target.value), t.updateOnInput && n("update:modelValue", j.target.value);
|
|
3469
3477
|
}
|
|
3470
3478
|
function m() {
|
|
@@ -3479,7 +3487,7 @@ const Kn = {
|
|
|
3479
3487
|
function q() {
|
|
3480
3488
|
d.value ? d.value = !1 : o.value = !0;
|
|
3481
3489
|
}
|
|
3482
|
-
return (j, W) => (
|
|
3490
|
+
return (j, W) => (s(), P(ta, {
|
|
3483
3491
|
"anchor-id": c(i),
|
|
3484
3492
|
disabled: e.disabled,
|
|
3485
3493
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -3501,7 +3509,7 @@ const Kn = {
|
|
|
3501
3509
|
toggle: R(() => [
|
|
3502
3510
|
M(al, G({
|
|
3503
3511
|
ref_key: "inputComboboxRef",
|
|
3504
|
-
ref:
|
|
3512
|
+
ref: r,
|
|
3505
3513
|
id: j.$attrs.id || h.value,
|
|
3506
3514
|
"container-id": c(i),
|
|
3507
3515
|
disabled: e.disabled,
|
|
@@ -3514,7 +3522,7 @@ const Kn = {
|
|
|
3514
3522
|
required: e.required,
|
|
3515
3523
|
onChange: g,
|
|
3516
3524
|
onClear: w,
|
|
3517
|
-
onInput:
|
|
3525
|
+
onInput: B,
|
|
3518
3526
|
onInputFocus: q,
|
|
3519
3527
|
onInputMousedown: I,
|
|
3520
3528
|
onInputMouseup: x,
|
|
@@ -3602,8 +3610,8 @@ const Kn = {
|
|
|
3602
3610
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
3603
3611
|
setup(e, { emit: a }) {
|
|
3604
3612
|
const t = e, [n, l] = oe(2), i = v(() => t.error && t.errorMsg || t.hint || void 0), u = v(() => t.inputId || n.value);
|
|
3605
|
-
return (o, d) => (
|
|
3606
|
-
e.label || o.$slots.label ? (
|
|
3613
|
+
return (o, d) => (s(), p("div", G({ "data-component": "bs-dropdown-combobox-field" }, c(ae)(o.$attrs, c(xe)).remaining), [
|
|
3614
|
+
e.label || o.$slots.label ? (s(), P(ce, {
|
|
3607
3615
|
key: 0,
|
|
3608
3616
|
for: o.$attrs.id || u.value,
|
|
3609
3617
|
disabled: e.disabled,
|
|
@@ -3633,11 +3641,11 @@ const Kn = {
|
|
|
3633
3641
|
"update-on-input": e.updateOnInput,
|
|
3634
3642
|
"use-mobile-style": e.useMobileStyle,
|
|
3635
3643
|
"value-id-key": e.valueIdKey,
|
|
3636
|
-
"onCombobox:change": d[0] || (d[0] = (
|
|
3637
|
-
"onCombobox:input": d[1] || (d[1] = (
|
|
3638
|
-
"onUpdate:modelValue": d[2] || (d[2] = (
|
|
3644
|
+
"onCombobox:change": d[0] || (d[0] = (r) => o.$emit("combobox:change", r)),
|
|
3645
|
+
"onCombobox:input": d[1] || (d[1] = (r) => o.$emit("combobox:input", r)),
|
|
3646
|
+
"onUpdate:modelValue": d[2] || (d[2] = (r) => o.$emit("update:modelValue", r))
|
|
3639
3647
|
}, c(ae)(o.$attrs, c(xe)).filtered), null, 16, ["disabled", "display-value", "dropdown-position", "dropdown-width", "error", "helper-text", "helper-description", "hint-id", "input-id", "model-value", "options", "placeholder", "required", "update-on-input", "use-mobile-style", "value-id-key"]),
|
|
3640
|
-
i.value ? (
|
|
3648
|
+
i.value ? (s(), P(Te, {
|
|
3641
3649
|
key: 1,
|
|
3642
3650
|
error: e.error,
|
|
3643
3651
|
"error-msg": e.errorMsg,
|
|
@@ -3731,7 +3739,7 @@ const Kn = {
|
|
|
3731
3739
|
function u() {
|
|
3732
3740
|
n.value && (n.value = !1, t("close"));
|
|
3733
3741
|
}
|
|
3734
|
-
return (o, d) => (
|
|
3742
|
+
return (o, d) => (s(), P(c(Qe), {
|
|
3735
3743
|
"anchor-id": e.anchorId,
|
|
3736
3744
|
breakout: e.breakout,
|
|
3737
3745
|
"container-id": e.containerId,
|
|
@@ -3743,9 +3751,9 @@ const Kn = {
|
|
|
3743
3751
|
"use-mobile-style": e.useMobileStyle,
|
|
3744
3752
|
width: e.width,
|
|
3745
3753
|
onClose: u,
|
|
3746
|
-
onAfterEnter: d[0] || (d[0] = (
|
|
3754
|
+
onAfterEnter: d[0] || (d[0] = (r) => t("after-enter")),
|
|
3747
3755
|
onEnter: l,
|
|
3748
|
-
onAfterLeave: d[1] || (d[1] = (
|
|
3756
|
+
onAfterLeave: d[1] || (d[1] = (r) => t("after-leave"))
|
|
3749
3757
|
}, {
|
|
3750
3758
|
default: R(() => [
|
|
3751
3759
|
M(c(Je), {
|
|
@@ -3881,10 +3889,10 @@ const Kn = {
|
|
|
3881
3889
|
],
|
|
3882
3890
|
setup(e, { emit: a }) {
|
|
3883
3891
|
const t = e, n = a, { transition: l } = Ne(t), i = v(() => t.width === "toggle" ? "anchor" : t.width), u = v(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = v(() => t.toggleId ? t.toggleId : t.anchorId), d = v(() => t.selectedValue || t.modelValue);
|
|
3884
|
-
function
|
|
3892
|
+
function r(h) {
|
|
3885
3893
|
n("optselected", h), n("update:modelValue", h);
|
|
3886
3894
|
}
|
|
3887
|
-
return (h, b) => (
|
|
3895
|
+
return (h, b) => (s(), P(wl, {
|
|
3888
3896
|
"anchor-id": o.value,
|
|
3889
3897
|
breakout: e.breakout,
|
|
3890
3898
|
"container-id": e.containerId,
|
|
@@ -3902,7 +3910,7 @@ const Kn = {
|
|
|
3902
3910
|
onClose: b[0] || (b[0] = (f) => n("close")),
|
|
3903
3911
|
onAfterEnter: b[1] || (b[1] = (f) => n("after-enter")),
|
|
3904
3912
|
onAfterLeave: b[2] || (b[2] = (f) => n("after-leave")),
|
|
3905
|
-
"onUpdate:modelValue":
|
|
3913
|
+
"onUpdate:modelValue": r
|
|
3906
3914
|
}, {
|
|
3907
3915
|
default: R(() => [
|
|
3908
3916
|
L(h.$slots, "default")
|
|
@@ -3910,7 +3918,7 @@ const Kn = {
|
|
|
3910
3918
|
_: 3
|
|
3911
3919
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "label", "model-value", "options-id", "position", "preloaded", "prevent-tab", "shown", "use-mobile-style", "width"]));
|
|
3912
3920
|
}
|
|
3913
|
-
}, Sl = ["data-size"], $l = { class: "bs-empty-state-icon" },
|
|
3921
|
+
}, Sl = ["data-size"], $l = { class: "bs-empty-state-icon" }, kl = { class: "bs-empty-state-title" }, Bl = {
|
|
3914
3922
|
key: 0,
|
|
3915
3923
|
class: "bs-empty-state-description"
|
|
3916
3924
|
}, nr = {
|
|
@@ -3936,19 +3944,19 @@ const Kn = {
|
|
|
3936
3944
|
},
|
|
3937
3945
|
setup(e) {
|
|
3938
3946
|
const a = e, { icon: t } = Pe(a, "iconName");
|
|
3939
|
-
return (n, l) => (
|
|
3947
|
+
return (n, l) => (s(), p("div", {
|
|
3940
3948
|
class: "bs-empty-state",
|
|
3941
3949
|
"data-component": "bs-empty-state",
|
|
3942
3950
|
"data-size": e.size
|
|
3943
3951
|
}, [
|
|
3944
3952
|
y("div", $l, [
|
|
3945
3953
|
L(n.$slots, "icon", {}, () => [
|
|
3946
|
-
(
|
|
3954
|
+
(s(), P(ie(c(t)), { size: "auto" }))
|
|
3947
3955
|
])
|
|
3948
3956
|
]),
|
|
3949
3957
|
y("div", null, [
|
|
3950
|
-
y("p",
|
|
3951
|
-
e.size !== "xs" ? (
|
|
3958
|
+
y("p", kl, E(e.title), 1),
|
|
3959
|
+
e.size !== "xs" ? (s(), p("p", Bl, [
|
|
3952
3960
|
L(n.$slots, "description", {}, () => [
|
|
3953
3961
|
X(E(e.description), 1)
|
|
3954
3962
|
])
|
|
@@ -4000,7 +4008,7 @@ const Kn = {
|
|
|
4000
4008
|
const o = ((d = l.value) == null ? void 0 : d.querySelector('[data-shown="true"]')) !== null;
|
|
4001
4009
|
t.shown && !o && n("close");
|
|
4002
4010
|
}
|
|
4003
|
-
return (o, d) => (
|
|
4011
|
+
return (o, d) => (s(), P(Fe, {
|
|
4004
4012
|
name: "bs-flyout",
|
|
4005
4013
|
preloaded: e.preloaded,
|
|
4006
4014
|
shown: e.shown
|
|
@@ -4023,7 +4031,7 @@ const Kn = {
|
|
|
4023
4031
|
"aria-label": "Close",
|
|
4024
4032
|
onClick: u
|
|
4025
4033
|
}, [
|
|
4026
|
-
M(c(
|
|
4034
|
+
M(c(ke))
|
|
4027
4035
|
])
|
|
4028
4036
|
]),
|
|
4029
4037
|
L(o.$slots, "default")
|
|
@@ -4081,19 +4089,19 @@ const Kn = {
|
|
|
4081
4089
|
function o(b) {
|
|
4082
4090
|
if (b.key === "Tab") {
|
|
4083
4091
|
const f = l.value.querySelectorAll(u.value), g = f[0], w = f[f.length - 1];
|
|
4084
|
-
document.activeElement === g && b.shiftKey ? d(b, w) : document.activeElement === w && !b.shiftKey ?
|
|
4092
|
+
document.activeElement === g && b.shiftKey ? d(b, w) : document.activeElement === w && !b.shiftKey ? r(b, g) : l.value.contains(document.activeElement) || h(b, g);
|
|
4085
4093
|
}
|
|
4086
4094
|
}
|
|
4087
4095
|
function d(b, f) {
|
|
4088
4096
|
b.preventDefault(), t.preventFirstShiftTab || f.focus(), n("first-shift-tab", b);
|
|
4089
4097
|
}
|
|
4090
|
-
function
|
|
4098
|
+
function r(b, f) {
|
|
4091
4099
|
b.preventDefault(), t.preventLastTab || f.focus(), n("last-tab", b);
|
|
4092
4100
|
}
|
|
4093
4101
|
function h(b, f) {
|
|
4094
4102
|
b.preventDefault(), f.focus();
|
|
4095
4103
|
}
|
|
4096
|
-
return (b, f) => (
|
|
4104
|
+
return (b, f) => (s(), p("div", {
|
|
4097
4105
|
ref_key: "focusGuard",
|
|
4098
4106
|
ref: l
|
|
4099
4107
|
}, [
|
|
@@ -4134,12 +4142,12 @@ function la(e) {
|
|
|
4134
4142
|
var f;
|
|
4135
4143
|
(f = e.navData) == null || f.forEach((g) => {
|
|
4136
4144
|
var w;
|
|
4137
|
-
o(g.icon), (w = g.navItems) == null || w.forEach((
|
|
4138
|
-
o(
|
|
4145
|
+
o(g.icon), (w = g.navItems) == null || w.forEach((B) => {
|
|
4146
|
+
o(B.icon);
|
|
4139
4147
|
});
|
|
4140
4148
|
});
|
|
4141
4149
|
}
|
|
4142
|
-
function
|
|
4150
|
+
function r(f) {
|
|
4143
4151
|
var g;
|
|
4144
4152
|
(g = n.value) == null || g.forEach((w) => {
|
|
4145
4153
|
w.resource.url === "section" && (t.value[w.id] = f);
|
|
@@ -4158,7 +4166,7 @@ function la(e) {
|
|
|
4158
4166
|
getExpandButtonTitle: b,
|
|
4159
4167
|
hasExternalNavItems: i,
|
|
4160
4168
|
iconCache: a,
|
|
4161
|
-
initializeSections:
|
|
4169
|
+
initializeSections: r,
|
|
4162
4170
|
isActivePath: u,
|
|
4163
4171
|
isExpanded: h,
|
|
4164
4172
|
mainNavItems: n
|
|
@@ -4223,16 +4231,16 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4223
4231
|
externalNavItems: u,
|
|
4224
4232
|
getExpandButtonTitle: o,
|
|
4225
4233
|
hasExternalNavItems: d,
|
|
4226
|
-
iconCache:
|
|
4234
|
+
iconCache: r,
|
|
4227
4235
|
initializeSections: h,
|
|
4228
4236
|
isActivePath: b,
|
|
4229
4237
|
isExpanded: f,
|
|
4230
4238
|
mainNavItems: g
|
|
4231
4239
|
} = la(t), w = ht();
|
|
4232
4240
|
je("(max-width: 751px)", ($) => {
|
|
4233
|
-
|
|
4241
|
+
B.value = $.matches;
|
|
4234
4242
|
});
|
|
4235
|
-
const
|
|
4243
|
+
const B = A(!1), m = A(!1), I = A(!1);
|
|
4236
4244
|
qe(() => {
|
|
4237
4245
|
h(!0);
|
|
4238
4246
|
}), te(() => {
|
|
@@ -4243,43 +4251,43 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4243
4251
|
m.value = $;
|
|
4244
4252
|
}), Y(m, ($) => {
|
|
4245
4253
|
$ ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", n("mobileToggle", $);
|
|
4246
|
-
}), Y(
|
|
4247
|
-
$ !==
|
|
4254
|
+
}), Y(B, ($, k) => {
|
|
4255
|
+
$ !== k && (m.value = !1, W());
|
|
4248
4256
|
});
|
|
4249
4257
|
function x($) {
|
|
4250
|
-
l.value[$] = !l.value[$], Object.keys(l.value).forEach((
|
|
4251
|
-
|
|
4258
|
+
l.value[$] = !l.value[$], Object.keys(l.value).forEach((k) => {
|
|
4259
|
+
k !== $ && (l.value[k] = !0);
|
|
4252
4260
|
});
|
|
4253
4261
|
}
|
|
4254
4262
|
function q() {
|
|
4255
4263
|
return m.value ? "Close Menu" : "Open Menu";
|
|
4256
4264
|
}
|
|
4257
4265
|
function j($) {
|
|
4258
|
-
return $.navItems.some((
|
|
4266
|
+
return $.navItems.some((k) => b(k.resource.url));
|
|
4259
4267
|
}
|
|
4260
4268
|
function W() {
|
|
4261
4269
|
Object.keys(l.value).forEach(($) => {
|
|
4262
4270
|
l.value[$] = !0;
|
|
4263
4271
|
});
|
|
4264
4272
|
}
|
|
4265
|
-
return ($,
|
|
4273
|
+
return ($, k) => {
|
|
4266
4274
|
const V = Wt("router-link");
|
|
4267
|
-
return
|
|
4275
|
+
return B.value ? (s(), p("nav", {
|
|
4268
4276
|
key: 0,
|
|
4269
4277
|
class: "bs-horizontal-nav-mobile",
|
|
4270
4278
|
"data-shown": m.value
|
|
4271
4279
|
}, [
|
|
4272
|
-
e.hideMobileToggle ? O("", !0) : (
|
|
4280
|
+
e.hideMobileToggle ? O("", !0) : (s(), p("button", {
|
|
4273
4281
|
key: 0,
|
|
4274
4282
|
type: "button",
|
|
4275
4283
|
class: "bs-horizontal-nav-mobile-toggle",
|
|
4276
4284
|
"aria-expanded": e.mobileOpen,
|
|
4277
4285
|
"aria-controls": `horizontal-nav-mobile-${c(w)}`,
|
|
4278
4286
|
title: q(),
|
|
4279
|
-
onClick:
|
|
4287
|
+
onClick: k[0] || (k[0] = (S) => m.value = !m.value)
|
|
4280
4288
|
}, [
|
|
4281
4289
|
y("div", Ol, [
|
|
4282
|
-
I.value && c(
|
|
4290
|
+
I.value && c(r)[e.mobileToggleIcon] ? (s(), P(ie(c(r)[e.mobileToggleIcon]), {
|
|
4283
4291
|
key: 0,
|
|
4284
4292
|
class: "bs-horizontal-nav-mobile-toggle-title-icon"
|
|
4285
4293
|
})) : O("", !0),
|
|
@@ -4290,12 +4298,12 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4290
4298
|
y("ul", {
|
|
4291
4299
|
id: `horizontal-nav-mobile-${c(w)}`
|
|
4292
4300
|
}, [
|
|
4293
|
-
(
|
|
4301
|
+
(s(!0), p(J, null, le(e.navData, (S) => {
|
|
4294
4302
|
var H;
|
|
4295
|
-
return
|
|
4303
|
+
return s(), p(J, {
|
|
4296
4304
|
key: S.id
|
|
4297
4305
|
}, [
|
|
4298
|
-
S.resource.url === "section" ? (
|
|
4306
|
+
S.resource.url === "section" ? (s(), p("li", {
|
|
4299
4307
|
key: 0,
|
|
4300
4308
|
"data-expanded": c(f)(S)
|
|
4301
4309
|
}, [
|
|
@@ -4312,7 +4320,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4312
4320
|
M(c(Ee), { class: "bs-horizontal-nav-mobile-nested-toggle-caret" })
|
|
4313
4321
|
], 8, Ll),
|
|
4314
4322
|
y("ul", Vl, [
|
|
4315
|
-
(
|
|
4323
|
+
(s(!0), p(J, null, le(S.navItems, (Q) => (s(), p("li", null, [
|
|
4316
4324
|
M(V, {
|
|
4317
4325
|
to: Q.resource.url,
|
|
4318
4326
|
"data-active": c(b)(Q.resource.url)
|
|
@@ -4324,8 +4332,8 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4324
4332
|
}, 1032, ["to", "data-active"])
|
|
4325
4333
|
]))), 256))
|
|
4326
4334
|
])
|
|
4327
|
-
], 8, El)) : (
|
|
4328
|
-
(H = S.metaData) != null && H.external ? (
|
|
4335
|
+
], 8, El)) : (s(), p("li", Dl, [
|
|
4336
|
+
(H = S.metaData) != null && H.external ? (s(), p("a", {
|
|
4329
4337
|
key: 0,
|
|
4330
4338
|
class: "bs-horizontal-nav-mobile-external-link",
|
|
4331
4339
|
href: S.resource.url,
|
|
@@ -4334,7 +4342,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4334
4342
|
}, [
|
|
4335
4343
|
y("span", null, E(S.text), 1),
|
|
4336
4344
|
M(c(vt), { class: "bs-horizontal-nav-mobile-external-link-icon" })
|
|
4337
|
-
], 8, Pl)) : (
|
|
4345
|
+
], 8, Pl)) : (s(), P(V, {
|
|
4338
4346
|
key: 1,
|
|
4339
4347
|
to: S.resource.url,
|
|
4340
4348
|
"data-active": c(b)(S.resource.url)
|
|
@@ -4348,14 +4356,14 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4348
4356
|
], 64);
|
|
4349
4357
|
}), 128))
|
|
4350
4358
|
], 8, zl),
|
|
4351
|
-
$.$slots["additional-nav-option"] ? (
|
|
4359
|
+
$.$slots["additional-nav-option"] ? (s(), p("div", Ml, [
|
|
4352
4360
|
L($.$slots, "additional-nav-option")
|
|
4353
4361
|
])) : O("", !0)
|
|
4354
|
-
], 8, Tl)) : (
|
|
4362
|
+
], 8, Tl)) : (s(), p("div", ql, [
|
|
4355
4363
|
y("nav", null, [
|
|
4356
4364
|
y("ul", null, [
|
|
4357
|
-
e.title ? (
|
|
4358
|
-
e.titleUrl ? (
|
|
4365
|
+
e.title ? (s(), p("li", Nl, [
|
|
4366
|
+
e.titleUrl ? (s(), P(V, {
|
|
4359
4367
|
key: 0,
|
|
4360
4368
|
to: e.titleUrl
|
|
4361
4369
|
}, {
|
|
@@ -4363,12 +4371,12 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4363
4371
|
y("span", null, E(e.title), 1)
|
|
4364
4372
|
]),
|
|
4365
4373
|
_: 1
|
|
4366
|
-
}, 8, ["to"])) : (
|
|
4374
|
+
}, 8, ["to"])) : (s(), p("span", Rl, E(e.title), 1))
|
|
4367
4375
|
])) : O("", !0),
|
|
4368
|
-
(
|
|
4376
|
+
(s(!0), p(J, null, le(c(g), (S, H) => (s(), p(J, {
|
|
4369
4377
|
key: S.id
|
|
4370
4378
|
}, [
|
|
4371
|
-
S.resource.url === "section" ? (
|
|
4379
|
+
S.resource.url === "section" ? (s(), p("li", Fl, [
|
|
4372
4380
|
y("button", {
|
|
4373
4381
|
id: `${S.id}-toggle`,
|
|
4374
4382
|
type: "button",
|
|
@@ -4395,7 +4403,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4395
4403
|
}, {
|
|
4396
4404
|
default: R(() => [
|
|
4397
4405
|
y("ul", null, [
|
|
4398
|
-
(
|
|
4406
|
+
(s(!0), p(J, null, le(S.navItems, (Q) => (s(), p("li", {
|
|
4399
4407
|
key: Q.id
|
|
4400
4408
|
}, [
|
|
4401
4409
|
M(V, {
|
|
@@ -4412,13 +4420,13 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4412
4420
|
]),
|
|
4413
4421
|
_: 2
|
|
4414
4422
|
}, 1032, ["id", "anchor-id", "shown", "onClose"])
|
|
4415
|
-
])) : (
|
|
4423
|
+
])) : (s(), p("li", Wl, [
|
|
4416
4424
|
M(V, {
|
|
4417
4425
|
to: S.resource.url,
|
|
4418
4426
|
"data-active": c(b)(S.resource.url)
|
|
4419
4427
|
}, {
|
|
4420
4428
|
default: R(() => [
|
|
4421
|
-
H === 0 && I.value && c(
|
|
4429
|
+
H === 0 && I.value && c(r)[S.icon] ? (s(), P(ie(c(r)[S.icon]), {
|
|
4422
4430
|
key: 0,
|
|
4423
4431
|
class: "bs-horizontal-nav-first-link-icon",
|
|
4424
4432
|
"data-first-icon": "true"
|
|
@@ -4430,9 +4438,9 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4430
4438
|
]))
|
|
4431
4439
|
], 64))), 128))
|
|
4432
4440
|
]),
|
|
4433
|
-
c(d) ? (
|
|
4441
|
+
c(d) ? (s(), p("div", jl, [
|
|
4434
4442
|
y("ul", null, [
|
|
4435
|
-
(
|
|
4443
|
+
(s(!0), p(J, null, le(c(u), (S) => (s(), p("li", {
|
|
4436
4444
|
key: S.id
|
|
4437
4445
|
}, [
|
|
4438
4446
|
y("a", {
|
|
@@ -4446,7 +4454,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4446
4454
|
]))), 128))
|
|
4447
4455
|
])
|
|
4448
4456
|
])) : O("", !0),
|
|
4449
|
-
$.$slots["additional-nav-option"] ? (
|
|
4457
|
+
$.$slots["additional-nav-option"] ? (s(), p("div", Hl, [
|
|
4450
4458
|
L($.$slots, "additional-nav-option")
|
|
4451
4459
|
])) : O("", !0)
|
|
4452
4460
|
])
|
|
@@ -4463,7 +4471,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4463
4471
|
], [l] = oe();
|
|
4464
4472
|
return te(() => {
|
|
4465
4473
|
t.value = a.value.querySelector("svg").getAttribute("viewBox") || "0 0 0 0";
|
|
4466
|
-
}), (i, u) => (
|
|
4474
|
+
}), (i, u) => (s(), p(J, null, [
|
|
4467
4475
|
y("span", G({
|
|
4468
4476
|
ref_key: "svgWrapperRef",
|
|
4469
4477
|
ref: a,
|
|
@@ -4472,7 +4480,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4472
4480
|
}, i.$attrs), [
|
|
4473
4481
|
L(i.$slots, "default")
|
|
4474
4482
|
], 16),
|
|
4475
|
-
(
|
|
4483
|
+
(s(), p("svg", {
|
|
4476
4484
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4477
4485
|
"view-box": t.value,
|
|
4478
4486
|
width: "0",
|
|
@@ -4486,7 +4494,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4486
4494
|
y2: "100%",
|
|
4487
4495
|
"gradient-units": "userSpaceOnUse"
|
|
4488
4496
|
}, [
|
|
4489
|
-
(
|
|
4497
|
+
(s(), p(J, null, le(n, (o) => y("stop", {
|
|
4490
4498
|
key: o.offset,
|
|
4491
4499
|
offset: o.offset,
|
|
4492
4500
|
"stop-color": o.color
|
|
@@ -4543,19 +4551,19 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4543
4551
|
emits: ["update:modelValue"],
|
|
4544
4552
|
setup(e, { emit: a }) {
|
|
4545
4553
|
const t = e, [n, l] = oe(2), i = v(() => xe.concat(t.passAttrs.split(",")).concat("type")), u = v(() => {
|
|
4546
|
-
var
|
|
4547
|
-
return ((h = (
|
|
4554
|
+
var r, h;
|
|
4555
|
+
return ((h = (r = t.hints) == null ? void 0 : r.join) == null ? void 0 : h.call(r, `
|
|
4548
4556
|
`)) || t.hints;
|
|
4549
4557
|
}), o = v(() => t.error && t.errorMsg || t.hint || u.value || void 0), d = v(() => t.inputId || n.value);
|
|
4550
|
-
return (
|
|
4551
|
-
e.label ||
|
|
4558
|
+
return (r, h) => (s(), p("div", G({ "data-component": "bs-input-field" }, c(ae)(r.$attrs, i.value).remaining), [
|
|
4559
|
+
e.label || r.$slots.label ? (s(), P(ce, {
|
|
4552
4560
|
key: 0,
|
|
4553
|
-
for:
|
|
4561
|
+
for: r.$attrs.id || d.value,
|
|
4554
4562
|
disabled: e.disabled,
|
|
4555
4563
|
required: e.required
|
|
4556
4564
|
}, {
|
|
4557
4565
|
default: R(() => [
|
|
4558
|
-
L(
|
|
4566
|
+
L(r.$slots, "label", {}, () => [
|
|
4559
4567
|
X(E(e.label), 1)
|
|
4560
4568
|
])
|
|
4561
4569
|
]),
|
|
@@ -4565,14 +4573,14 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4565
4573
|
disabled: e.disabled,
|
|
4566
4574
|
error: e.error,
|
|
4567
4575
|
"hint-id": c(l),
|
|
4568
|
-
id:
|
|
4576
|
+
id: r.$attrs.id || d.value,
|
|
4569
4577
|
placeholder: e.placeholder,
|
|
4570
4578
|
required: e.required,
|
|
4571
4579
|
type: e.type,
|
|
4572
4580
|
value: e.value || e.modelValue,
|
|
4573
|
-
"onUpdate:modelValue": h[0] || (h[0] = (b) =>
|
|
4574
|
-
}, c(ae)(
|
|
4575
|
-
o.value ? (
|
|
4581
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => r.$emit("update:modelValue", b))
|
|
4582
|
+
}, c(ae)(r.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
|
|
4583
|
+
o.value ? (s(), P(Te, {
|
|
4576
4584
|
key: 1,
|
|
4577
4585
|
error: e.error,
|
|
4578
4586
|
"error-msg": e.errorMsg,
|
|
@@ -4714,22 +4722,22 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4714
4722
|
"Escape",
|
|
4715
4723
|
"Home",
|
|
4716
4724
|
"Tab"
|
|
4717
|
-
], u = A(null), o = A(1), d = A([]),
|
|
4725
|
+
], u = A(null), o = A(1), d = A([]), r = A(null), [
|
|
4718
4726
|
h,
|
|
4719
4727
|
b,
|
|
4720
4728
|
f,
|
|
4721
4729
|
g
|
|
4722
|
-
] = oe(4), w = A(!1),
|
|
4730
|
+
] = oe(4), w = A(!1), B = A(""), m = A(""), I = A(!1), x = A(!1), q = A(!0);
|
|
4723
4731
|
a({
|
|
4724
4732
|
validationErr: I,
|
|
4725
4733
|
validationErrMsg: m
|
|
4726
4734
|
});
|
|
4727
|
-
const j = v(() =>
|
|
4735
|
+
const j = v(() => B.value ? `+${o.value}${B.value}` : ""), W = v(() => `Country code: ${o.value}. Click to change.`), $ = v(() => q.value ? n.errorMsg || m.value : ""), k = v(() => n.error || I.value), V = v(() => n.hint || k.value && $.value), S = v(() => q.value && k.value);
|
|
4728
4736
|
Y(j, (D) => {
|
|
4729
4737
|
l("update:modelValue", D), F(D);
|
|
4730
4738
|
}), Y(() => n.modelValue, H), pe(), te(() => w.value = !0);
|
|
4731
4739
|
function H(D, Z) {
|
|
4732
|
-
D === "" && D !== Z && (
|
|
4740
|
+
D === "" && D !== Z && (B.value = "");
|
|
4733
4741
|
}
|
|
4734
4742
|
function Q() {
|
|
4735
4743
|
var D;
|
|
@@ -4742,8 +4750,8 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4742
4750
|
function se() {
|
|
4743
4751
|
n.deferValidation && (q.value = !0), l("input-blur");
|
|
4744
4752
|
}
|
|
4745
|
-
function
|
|
4746
|
-
|
|
4753
|
+
function Be(D) {
|
|
4754
|
+
B.value = D.target.value, n.deferValidation && (q.value = !1);
|
|
4747
4755
|
}
|
|
4748
4756
|
function be(D) {
|
|
4749
4757
|
var Z, ee;
|
|
@@ -4755,18 +4763,18 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4755
4763
|
function Ae() {
|
|
4756
4764
|
var Z, ee;
|
|
4757
4765
|
let D = zt(n.modelValue);
|
|
4758
|
-
D.valid || D.countryCode && ((ee = (Z = n.modelValue) == null ? void 0 : Z.startsWith) != null && ee.call(Z, "+")) ? (o.value = D.countryCode,
|
|
4766
|
+
D.valid || D.countryCode && ((ee = (Z = n.modelValue) == null ? void 0 : Z.startsWith) != null && ee.call(Z, "+")) ? (o.value = D.countryCode, B.value = D.number.significant) : B.value = n.modelValue, d.value = at.data.allCountries.map((Oe) => ({
|
|
4759
4767
|
...Oe,
|
|
4760
4768
|
isSelected: o.value === Oe
|
|
4761
4769
|
}));
|
|
4762
4770
|
}
|
|
4763
4771
|
function he(D) {
|
|
4764
|
-
|
|
4772
|
+
r.value = at.getCountryByCountryCode(D);
|
|
4765
4773
|
}
|
|
4766
4774
|
function F(D) {
|
|
4767
4775
|
I.value = D ? !zt(D).valid : !1, m.value = I.value ? "Invalid phone number" : "";
|
|
4768
4776
|
}
|
|
4769
|
-
return (D, Z) => (
|
|
4777
|
+
return (D, Z) => (s(), p("div", G({
|
|
4770
4778
|
class: "bs-input-phone",
|
|
4771
4779
|
"data-component": "bs-input-phone"
|
|
4772
4780
|
}, c(ae)(D.$attrs, c(xe)).remaining), [
|
|
@@ -4802,9 +4810,9 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4802
4810
|
type: "button",
|
|
4803
4811
|
onClick: Z[0] || (Z[0] = (Oe) => x.value = !x.value)
|
|
4804
4812
|
}, [
|
|
4805
|
-
y("span", null, E((ee =
|
|
4813
|
+
y("span", null, E((ee = r.value) == null ? void 0 : ee.flag), 1),
|
|
4806
4814
|
y("span", null, "+" + E(o.value), 1),
|
|
4807
|
-
e.disabled ? O("", !0) : (
|
|
4815
|
+
e.disabled ? O("", !0) : (s(), P(c(Gt), {
|
|
4808
4816
|
key: 0,
|
|
4809
4817
|
size: "sm"
|
|
4810
4818
|
}))
|
|
@@ -4814,11 +4822,11 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4814
4822
|
disabled: e.disabled,
|
|
4815
4823
|
"hint-id": c(f),
|
|
4816
4824
|
placeholder: e.placeholder,
|
|
4817
|
-
value:
|
|
4825
|
+
value: B.value,
|
|
4818
4826
|
"data-autowidth": "",
|
|
4819
4827
|
type: "tel"
|
|
4820
4828
|
}, c(ae)(D.$attrs, c(xe)).filtered, {
|
|
4821
|
-
onInput:
|
|
4829
|
+
onInput: Be,
|
|
4822
4830
|
onFocusout: se,
|
|
4823
4831
|
onKeydown: be
|
|
4824
4832
|
}), null, 16, ["input-id", "disabled", "hint-id", "placeholder", "value"])
|
|
@@ -4827,14 +4835,14 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4827
4835
|
_: 1
|
|
4828
4836
|
}, 8, ["disabled", "error"]),
|
|
4829
4837
|
Se(M(Te, {
|
|
4830
|
-
error:
|
|
4838
|
+
error: k.value,
|
|
4831
4839
|
"error-msg": $.value,
|
|
4832
4840
|
hint: e.hint,
|
|
4833
4841
|
"hint-id": c(f)
|
|
4834
4842
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
4835
4843
|
[$e, V.value]
|
|
4836
4844
|
]),
|
|
4837
|
-
w.value ? (
|
|
4845
|
+
w.value ? (s(), p("div", Ql, [
|
|
4838
4846
|
M(na, {
|
|
4839
4847
|
"anchor-id": c(h),
|
|
4840
4848
|
"helper-text": "Country Code",
|
|
@@ -4848,7 +4856,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4848
4856
|
"onUpdate:modelValue": fe
|
|
4849
4857
|
}, {
|
|
4850
4858
|
default: R(() => [
|
|
4851
|
-
w.value ? (
|
|
4859
|
+
w.value ? (s(!0), p(J, { key: 0 }, le(d.value, (ee) => (s(), P(Bt, {
|
|
4852
4860
|
"aria-label": ee.value,
|
|
4853
4861
|
key: ee.value,
|
|
4854
4862
|
value: `${ee.value}`,
|
|
@@ -4883,7 +4891,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4883
4891
|
}
|
|
4884
4892
|
},
|
|
4885
4893
|
setup(e) {
|
|
4886
|
-
return (a, t) => (
|
|
4894
|
+
return (a, t) => (s(), p("svg", {
|
|
4887
4895
|
class: "bs-spinner",
|
|
4888
4896
|
"data-component": "bs-spinner",
|
|
4889
4897
|
"data-size": e.size,
|
|
@@ -4901,7 +4909,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
4901
4909
|
r: "45",
|
|
4902
4910
|
stroke: e.variant === "gradient" ? "url(#bs-spinner-gradient)" : void 0
|
|
4903
4911
|
}, null, 8, to),
|
|
4904
|
-
e.variant === "gradient" ? (
|
|
4912
|
+
e.variant === "gradient" ? (s(), p("defs", ao, t[0] || (t[0] = [
|
|
4905
4913
|
y("linearGradient", { id: "bs-spinner-gradient" }, [
|
|
4906
4914
|
y("stop", { offset: "0%" }),
|
|
4907
4915
|
y("stop", { offset: "49%" }),
|
|
@@ -5005,19 +5013,19 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5005
5013
|
}), Y(l, () => {
|
|
5006
5014
|
l.value ? n("open") : n("close");
|
|
5007
5015
|
});
|
|
5008
|
-
const
|
|
5016
|
+
const r = v(() => t.typeaheadId || u.value), h = v(() => t.error && t.errorMsg || t.hint || void 0), b = v(() => `${r.value}-input-container`), f = v(() => `${r.value}-input`), g = v(() => `${r.value}-options`), w = v(() => t.multiselect ? Array.isArray(t.optionsValue) ? t.optionsValue : [t.optionsValue] : t.optionsValue), B = v(() => {
|
|
5009
5017
|
if (l.value) {
|
|
5010
|
-
let
|
|
5018
|
+
let k = t.options;
|
|
5011
5019
|
const V = t.inputValue.toLowerCase(), S = t.filterType === "includes" ? "includes" : "startsWith";
|
|
5012
|
-
return t.inputValue.length >= t.characterThreshold && (
|
|
5020
|
+
return t.inputValue.length >= t.characterThreshold && (k = m(k, V, S), k = k.slice(0, t.maxOptions), k = I(k, V, S), d = k), k;
|
|
5013
5021
|
} else
|
|
5014
5022
|
return d;
|
|
5015
5023
|
});
|
|
5016
|
-
function m(
|
|
5017
|
-
return t.internalFiltering ?
|
|
5024
|
+
function m(k, V, S) {
|
|
5025
|
+
return t.internalFiltering ? k.filter((H) => H.label.toLowerCase()[S](V)) : k;
|
|
5018
5026
|
}
|
|
5019
|
-
function I(
|
|
5020
|
-
return
|
|
5027
|
+
function I(k, V, S) {
|
|
5028
|
+
return k.map((H) => {
|
|
5021
5029
|
let Q = H.label;
|
|
5022
5030
|
if (V !== "") {
|
|
5023
5031
|
const fe = S === "includes" ? "gi" : "i", se = new RegExp(`(${V})`, fe);
|
|
@@ -5032,28 +5040,28 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5032
5040
|
function q() {
|
|
5033
5041
|
n("update:inputValue", ""), t.multiselect || n("update:optionsValue", ""), document.getElementById(f.value).focus();
|
|
5034
5042
|
}
|
|
5035
|
-
function j(
|
|
5043
|
+
function j(k) {
|
|
5036
5044
|
i.value = !0;
|
|
5037
|
-
const V =
|
|
5038
|
-
n("update:inputValue", V.label), n("update:optionsValue",
|
|
5045
|
+
const V = B.value.find((S) => S.value === k);
|
|
5046
|
+
n("update:inputValue", V.label), n("update:optionsValue", k);
|
|
5039
5047
|
}
|
|
5040
|
-
function W(
|
|
5041
|
-
const V = [...w.value,
|
|
5048
|
+
function W(k) {
|
|
5049
|
+
const V = [...w.value, k];
|
|
5042
5050
|
n("update:optionsValue", V);
|
|
5043
5051
|
}
|
|
5044
|
-
function $(
|
|
5045
|
-
const V = w.value.filter((S) => S !==
|
|
5052
|
+
function $(k) {
|
|
5053
|
+
const V = w.value.filter((S) => S !== k);
|
|
5046
5054
|
n("update:optionsValue", V);
|
|
5047
5055
|
}
|
|
5048
|
-
return (
|
|
5049
|
-
e.label ||
|
|
5056
|
+
return (k, V) => (s(), p(J, null, [
|
|
5057
|
+
e.label || k.$slots.label ? (s(), P(ce, {
|
|
5050
5058
|
key: 0,
|
|
5051
5059
|
for: f.value,
|
|
5052
5060
|
disabled: e.disabled,
|
|
5053
5061
|
required: e.required
|
|
5054
5062
|
}, {
|
|
5055
5063
|
default: R(() => [
|
|
5056
|
-
L(
|
|
5064
|
+
L(k.$slots, "label", {}, () => [
|
|
5057
5065
|
X(E(e.label), 1)
|
|
5058
5066
|
])
|
|
5059
5067
|
]),
|
|
@@ -5078,7 +5086,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5078
5086
|
placeholder: e.placeholder,
|
|
5079
5087
|
role: "combobox",
|
|
5080
5088
|
value: e.inputValue
|
|
5081
|
-
},
|
|
5089
|
+
}, k.$attrs, {
|
|
5082
5090
|
onClear: q,
|
|
5083
5091
|
onFocusin: x,
|
|
5084
5092
|
"onUpdate:modelValue": V[0] || (V[0] = (S) => n("update:inputValue", S))
|
|
@@ -5093,11 +5101,11 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5093
5101
|
onClose: V[2] || (V[2] = (S) => l.value = !1)
|
|
5094
5102
|
}, {
|
|
5095
5103
|
default: R(() => [
|
|
5096
|
-
e.multiselect ? (
|
|
5104
|
+
e.multiselect ? (s(), P(ea, {
|
|
5097
5105
|
key: 0,
|
|
5098
5106
|
"focus-on-open": !1,
|
|
5099
5107
|
label: e.label,
|
|
5100
|
-
options:
|
|
5108
|
+
options: B.value,
|
|
5101
5109
|
"options-id": g.value,
|
|
5102
5110
|
"selected-options": w.value,
|
|
5103
5111
|
shown: l.value,
|
|
@@ -5120,7 +5128,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5120
5128
|
]),
|
|
5121
5129
|
key: "1"
|
|
5122
5130
|
}
|
|
5123
|
-
]), 1032, ["label", "options", "options-id", "selected-options", "shown", "value-id-key"])) : (
|
|
5131
|
+
]), 1032, ["label", "options", "options-id", "selected-options", "shown", "value-id-key"])) : (s(), P(Je, {
|
|
5124
5132
|
key: 1,
|
|
5125
5133
|
label: e.label,
|
|
5126
5134
|
"model-value": w.value,
|
|
@@ -5131,7 +5139,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5131
5139
|
}, {
|
|
5132
5140
|
default: R(() => [
|
|
5133
5141
|
M(Ue, {
|
|
5134
|
-
options:
|
|
5142
|
+
options: B.value,
|
|
5135
5143
|
"value-id-key": e.valueIdKey
|
|
5136
5144
|
}, ft({ _: 2 }, [
|
|
5137
5145
|
e.loading ? {
|
|
@@ -5157,7 +5165,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5157
5165
|
_: 1
|
|
5158
5166
|
}, 8, ["anchor-id", "shown"]),
|
|
5159
5167
|
y("div", io, [
|
|
5160
|
-
h.value ? (
|
|
5168
|
+
h.value ? (s(), P(Te, {
|
|
5161
5169
|
key: 0,
|
|
5162
5170
|
error: e.error,
|
|
5163
5171
|
"error-msg": e.errorMsg,
|
|
@@ -5181,7 +5189,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5181
5189
|
}
|
|
5182
5190
|
},
|
|
5183
5191
|
setup(e) {
|
|
5184
|
-
return (a, t) => (
|
|
5192
|
+
return (a, t) => (s(), p("span", {
|
|
5185
5193
|
class: "bs-loader",
|
|
5186
5194
|
"data-size": e.size,
|
|
5187
5195
|
"data-variant": e.variant,
|
|
@@ -5234,7 +5242,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5234
5242
|
function i() {
|
|
5235
5243
|
l.value ? document.body.setAttribute("data-scroll", "false") : document.body.removeAttribute("data-scroll");
|
|
5236
5244
|
}
|
|
5237
|
-
return (u, o) => (
|
|
5245
|
+
return (u, o) => (s(), P(Fe, {
|
|
5238
5246
|
name: "bs-overlay",
|
|
5239
5247
|
shown: c(l),
|
|
5240
5248
|
preloaded: e.preloaded,
|
|
@@ -5310,13 +5318,13 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5310
5318
|
let o = !1;
|
|
5311
5319
|
const d = A(null);
|
|
5312
5320
|
yt([d], b), Ce(["Escape"], b);
|
|
5313
|
-
const
|
|
5321
|
+
const r = v(() => !n.title && !t.title && n.closeButton), h = v(() => (n.title || t.title) && n.closeButton);
|
|
5314
5322
|
function b() {
|
|
5315
5323
|
var g;
|
|
5316
5324
|
const f = ((g = d.value) == null ? void 0 : g.querySelector('[data-shown="true"]')) !== null;
|
|
5317
5325
|
o && !f && l("close", n.modalId);
|
|
5318
5326
|
}
|
|
5319
|
-
return (f, g) => (
|
|
5327
|
+
return (f, g) => (s(), P(xl, { active: c(i) }, {
|
|
5320
5328
|
default: R(() => [
|
|
5321
5329
|
M(uo, {
|
|
5322
5330
|
shown: c(i),
|
|
@@ -5348,21 +5356,21 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5348
5356
|
"data-full-width": e.fullWidth,
|
|
5349
5357
|
"data-full-height": e.fullHeight
|
|
5350
5358
|
}), [
|
|
5351
|
-
e.title || f.$slots.title || e.closeButton ? (
|
|
5359
|
+
e.title || f.$slots.title || e.closeButton ? (s(), p("header", {
|
|
5352
5360
|
key: 0,
|
|
5353
5361
|
class: de({
|
|
5354
|
-
"only-close-button-modal-header":
|
|
5362
|
+
"only-close-button-modal-header": r.value,
|
|
5355
5363
|
"modal-header": h.value
|
|
5356
5364
|
})
|
|
5357
5365
|
}, [
|
|
5358
5366
|
L(f.$slots, "title", {}, () => [
|
|
5359
|
-
e.title ? (
|
|
5367
|
+
e.title ? (s(), p("span", {
|
|
5360
5368
|
key: 0,
|
|
5361
5369
|
id: c(u),
|
|
5362
5370
|
class: "modal-title"
|
|
5363
5371
|
}, E(e.title), 9, fo)) : O("", !0)
|
|
5364
5372
|
]),
|
|
5365
|
-
e.closeButton ? (
|
|
5373
|
+
e.closeButton ? (s(), p("button", {
|
|
5366
5374
|
key: 0,
|
|
5367
5375
|
type: "button",
|
|
5368
5376
|
title: "Close Modal",
|
|
@@ -5370,13 +5378,13 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5370
5378
|
class: de({ "full-width-header-close-button": e.fullWidth || e.fullHeight }),
|
|
5371
5379
|
onClick: g[0] || (g[0] = (w) => l("close", e.modalId))
|
|
5372
5380
|
}, [
|
|
5373
|
-
M(c(
|
|
5381
|
+
M(c(ke), { class: "close-button" })
|
|
5374
5382
|
], 2)) : O("", !0)
|
|
5375
5383
|
], 2)) : O("", !0),
|
|
5376
5384
|
y("div", null, [
|
|
5377
5385
|
L(f.$slots, "default")
|
|
5378
5386
|
]),
|
|
5379
|
-
f.$slots.footer ? (
|
|
5387
|
+
f.$slots.footer ? (s(), p("footer", po, [
|
|
5380
5388
|
L(f.$slots, "footer")
|
|
5381
5389
|
])) : O("", !0)
|
|
5382
5390
|
], 16, co)
|
|
@@ -5393,7 +5401,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5393
5401
|
}, ho = ["aria-label", "title", "disabled"], mo = { key: 0 }, go = ["aria-label", "title", "disabled"], yo = { key: 0 }, wo = {
|
|
5394
5402
|
key: 1,
|
|
5395
5403
|
class: "bs-pagination-page-numbers"
|
|
5396
|
-
}, So = ["title", "data-selected", "onClick"], $o = { key: 2 },
|
|
5404
|
+
}, So = ["title", "data-selected", "onClick"], $o = { key: 2 }, ko = { key: 3 }, Bo = { class: "bs-pagination-results-numbers" }, Io = ["data-selected", "disabled", "onClick"], Co = {
|
|
5397
5405
|
key: 5,
|
|
5398
5406
|
class: "bs-pagination-carets"
|
|
5399
5407
|
}, xo = ["aria-label", "title", "disabled"], To = { key: 0 }, Ao = ["aria-label", "title", "disabled"], Oo = { key: 0 }, fr = {
|
|
@@ -5484,7 +5492,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5484
5492
|
setup(e, { emit: a }) {
|
|
5485
5493
|
const t = e, n = a, l = A(null);
|
|
5486
5494
|
te(() => {
|
|
5487
|
-
i.value ? l.value = i.value : t.variant === "results" ? l.value =
|
|
5495
|
+
i.value ? l.value = i.value : t.variant === "results" ? l.value = B.value[0] : l.value = 1;
|
|
5488
5496
|
});
|
|
5489
5497
|
const i = v(() => t.modelValue || t.selection);
|
|
5490
5498
|
Y(() => t.selection, (m) => {
|
|
@@ -5503,7 +5511,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5503
5511
|
function d() {
|
|
5504
5512
|
l.value = 1;
|
|
5505
5513
|
}
|
|
5506
|
-
function
|
|
5514
|
+
function r() {
|
|
5507
5515
|
l.value = Math.max(l.value - 1, 1);
|
|
5508
5516
|
}
|
|
5509
5517
|
function h() {
|
|
@@ -5527,15 +5535,15 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5527
5535
|
}), g = v(() => `${t.centerLabel ?? "Page"} ${l.value} of ${u.value}`), w = v(() => {
|
|
5528
5536
|
const m = (l.value - 1) * t.itemsPerGroup + 1, I = Math.min(m - 1 + t.itemsPerGroup, t.itemsCount);
|
|
5529
5537
|
return `${t.centerLabel ?? "Results"} ${m} - ${I} of ${t.itemsCount}`;
|
|
5530
|
-
}),
|
|
5531
|
-
return (m, I) => (
|
|
5538
|
+
}), B = v(() => t.resultsIncrements.split(",").map((m) => parseInt(m)));
|
|
5539
|
+
return (m, I) => (s(), p("div", {
|
|
5532
5540
|
class: "bs-pagination",
|
|
5533
5541
|
"data-component": "bs-pagination",
|
|
5534
5542
|
"data-variant": o.value,
|
|
5535
5543
|
"data-fixed": t.fixed
|
|
5536
5544
|
}, [
|
|
5537
|
-
e.variant === "base" || e.variant === "group" ? (
|
|
5538
|
-
e.showFirstLastButtons ? (
|
|
5545
|
+
e.variant === "base" || e.variant === "group" ? (s(), p("div", bo, [
|
|
5546
|
+
e.showFirstLastButtons ? (s(), p("button", {
|
|
5539
5547
|
key: 0,
|
|
5540
5548
|
type: "button",
|
|
5541
5549
|
class: de(e.firstPageText ? "bs-pagination-word-caret" : void 0),
|
|
@@ -5545,7 +5553,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5545
5553
|
onClick: d
|
|
5546
5554
|
}, [
|
|
5547
5555
|
M(c(Sa)),
|
|
5548
|
-
e.firstPageText ? (
|
|
5556
|
+
e.firstPageText ? (s(), p("span", mo, E(e.firstPageText), 1)) : O("", !0)
|
|
5549
5557
|
], 10, ho)) : O("", !0),
|
|
5550
5558
|
y("button", {
|
|
5551
5559
|
type: "button",
|
|
@@ -5553,14 +5561,14 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5553
5561
|
"aria-label": e.prevPageText ? void 0 : "Previous Page",
|
|
5554
5562
|
title: e.prevPageText,
|
|
5555
5563
|
disabled: l.value === 1,
|
|
5556
|
-
onClick:
|
|
5564
|
+
onClick: r
|
|
5557
5565
|
}, [
|
|
5558
5566
|
M(c(Ht)),
|
|
5559
|
-
e.prevPageText ? (
|
|
5567
|
+
e.prevPageText ? (s(), p("span", yo, E(e.prevPageText), 1)) : O("", !0)
|
|
5560
5568
|
], 10, go)
|
|
5561
5569
|
])) : O("", !0),
|
|
5562
|
-
e.variant === "base" && e.centerDisplay === "numbers" ? (
|
|
5563
|
-
(
|
|
5570
|
+
e.variant === "base" && e.centerDisplay === "numbers" ? (s(), p("div", wo, [
|
|
5571
|
+
(s(!0), p(J, null, le(f.value, (x) => (s(), p("button", {
|
|
5564
5572
|
key: `page-${x}-button`,
|
|
5565
5573
|
type: "button",
|
|
5566
5574
|
title: `Page ${x}`,
|
|
@@ -5568,12 +5576,12 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5568
5576
|
onClick: (q) => l.value = x
|
|
5569
5577
|
}, E(x), 9, So))), 128))
|
|
5570
5578
|
])) : O("", !0),
|
|
5571
|
-
t.variant === "base" && t.centerDisplay === "text" ? (
|
|
5572
|
-
t.variant === "group" ? (
|
|
5573
|
-
t.variant === "results" ? (
|
|
5579
|
+
t.variant === "base" && t.centerDisplay === "text" ? (s(), p("span", $o, E(g.value), 1)) : O("", !0),
|
|
5580
|
+
t.variant === "group" ? (s(), p("span", ko, E(w.value), 1)) : O("", !0),
|
|
5581
|
+
t.variant === "results" ? (s(), p(J, { key: 4 }, [
|
|
5574
5582
|
I[0] || (I[0] = y("span", null, "Results Per Page:", -1)),
|
|
5575
|
-
y("div",
|
|
5576
|
-
(
|
|
5583
|
+
y("div", Bo, [
|
|
5584
|
+
(s(!0), p(J, null, le(B.value, (x) => (s(), p("button", {
|
|
5577
5585
|
type: "button",
|
|
5578
5586
|
key: `results-${x}`,
|
|
5579
5587
|
"data-selected": x === l.value,
|
|
@@ -5582,7 +5590,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5582
5590
|
}, E(x), 9, Io))), 128))
|
|
5583
5591
|
])
|
|
5584
5592
|
], 64)) : O("", !0),
|
|
5585
|
-
e.variant === "base" || e.variant === "group" ? (
|
|
5593
|
+
e.variant === "base" || e.variant === "group" ? (s(), p("div", Co, [
|
|
5586
5594
|
y("button", {
|
|
5587
5595
|
type: "button",
|
|
5588
5596
|
class: de(e.nextPageText ? "bs-pagination-word-caret" : void 0),
|
|
@@ -5591,10 +5599,10 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5591
5599
|
disabled: l.value === u.value,
|
|
5592
5600
|
onClick: h
|
|
5593
5601
|
}, [
|
|
5594
|
-
e.nextPageText ? (
|
|
5602
|
+
e.nextPageText ? (s(), p("span", To, E(e.nextPageText), 1)) : O("", !0),
|
|
5595
5603
|
M(c(Ut))
|
|
5596
5604
|
], 10, xo),
|
|
5597
|
-
e.showFirstLastButtons ? (
|
|
5605
|
+
e.showFirstLastButtons ? (s(), p("button", {
|
|
5598
5606
|
key: 0,
|
|
5599
5607
|
type: "button",
|
|
5600
5608
|
class: de(e.lastPageText ? "bs-pagination-word-caret" : void 0),
|
|
@@ -5603,7 +5611,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5603
5611
|
disabled: l.value === u.value,
|
|
5604
5612
|
onClick: b
|
|
5605
5613
|
}, [
|
|
5606
|
-
e.lastPageText ? (
|
|
5614
|
+
e.lastPageText ? (s(), p("span", Oo, E(e.lastPageText), 1)) : O("", !0),
|
|
5607
5615
|
M(c($a))
|
|
5608
5616
|
], 10, Ao)) : O("", !0)
|
|
5609
5617
|
])) : O("", !0)
|
|
@@ -5633,15 +5641,16 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5633
5641
|
}
|
|
5634
5642
|
},
|
|
5635
5643
|
setup(e) {
|
|
5636
|
-
const a = e, { onLinkClick: t } = Ze(a), n = we(), { rootTag: l, attrsToBind: i,
|
|
5637
|
-
return (o, d) => (
|
|
5644
|
+
const a = e, { onLinkClick: t } = Ze(a), n = we(), { rootTag: l, attrsToBind: i, btnRef: u } = Xe(a, n, "span");
|
|
5645
|
+
return (o, d) => (s(), P(ie(c(l)), G({
|
|
5646
|
+
ref_key: "btnRef",
|
|
5647
|
+
ref: u,
|
|
5638
5648
|
class: "bs-pill",
|
|
5639
5649
|
"data-active": e.active,
|
|
5640
5650
|
"data-component": "bs-pill",
|
|
5641
5651
|
"data-status": e.status || void 0,
|
|
5642
5652
|
"data-variant": e.variant || void 0,
|
|
5643
|
-
disabled: e.disabled
|
|
5644
|
-
".href": c(u)
|
|
5653
|
+
disabled: e.disabled
|
|
5645
5654
|
}, c(i), { onClick: c(t) }), {
|
|
5646
5655
|
default: R(() => [
|
|
5647
5656
|
y("span", { "data-truncate": e.truncate }, [
|
|
@@ -5649,7 +5658,7 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5649
5658
|
], 8, zo)
|
|
5650
5659
|
]),
|
|
5651
5660
|
_: 3
|
|
5652
|
-
},
|
|
5661
|
+
}, 16, ["data-active", "data-status", "data-variant", "disabled", "onClick"]));
|
|
5653
5662
|
}
|
|
5654
5663
|
}), Eo = {
|
|
5655
5664
|
class: "bs-profile-details",
|
|
@@ -5685,14 +5694,14 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5685
5694
|
function u(o) {
|
|
5686
5695
|
o.target.tagName === "BUTTON" && (o.preventDefault(), o.stopImmediatePropagation(), n("action-toggled"));
|
|
5687
5696
|
}
|
|
5688
|
-
return (o, d) => (
|
|
5689
|
-
e.action || o.$slots.action ? (
|
|
5697
|
+
return (o, d) => (s(), p("div", Eo, [
|
|
5698
|
+
e.action || o.$slots.action ? (s(), p("button", {
|
|
5690
5699
|
key: 0,
|
|
5691
5700
|
"data-icon": "true",
|
|
5692
5701
|
onClick: u
|
|
5693
5702
|
}, [
|
|
5694
5703
|
L(o.$slots, "action", {}, () => [
|
|
5695
|
-
e.actionIcon ? (
|
|
5704
|
+
e.actionIcon ? (s(), P(ie(c(l) ? c(l) : "span"), {
|
|
5696
5705
|
key: 0,
|
|
5697
5706
|
class: "bs-icon"
|
|
5698
5707
|
})) : O("", !0),
|
|
@@ -5700,12 +5709,12 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5700
5709
|
])
|
|
5701
5710
|
])) : O("", !0),
|
|
5702
5711
|
y("span", Lo, E(e.profileName), 1),
|
|
5703
|
-
e.company ? (
|
|
5704
|
-
e.jobTitle ? (
|
|
5705
|
-
e.email ? (
|
|
5706
|
-
e.miscMeta || o.$slots.misc ? (
|
|
5712
|
+
e.company ? (s(), p("span", Vo, E(e.company), 1)) : O("", !0),
|
|
5713
|
+
e.jobTitle ? (s(), p("span", Do, E(e.jobTitle), 1)) : O("", !0),
|
|
5714
|
+
e.email ? (s(), p("span", Po, E(e.email), 1)) : O("", !0),
|
|
5715
|
+
e.miscMeta || o.$slots.misc ? (s(), p("span", Mo, [
|
|
5707
5716
|
L(o.$slots, "misc", {}, () => [
|
|
5708
|
-
e.miscMetaIcon ? (
|
|
5717
|
+
e.miscMetaIcon ? (s(), P(ie(c(i) ? c(i) : "span"), {
|
|
5709
5718
|
key: 0,
|
|
5710
5719
|
class: "bs-icon"
|
|
5711
5720
|
})) : O("", !0),
|
|
@@ -5744,10 +5753,11 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5744
5753
|
},
|
|
5745
5754
|
emits: ["action-toggled"],
|
|
5746
5755
|
setup(e, { emit: a }) {
|
|
5747
|
-
const t = e, n = a, l = we(), { onLinkClick: i } = Ze(t), { rootTag: u, attrsToBind: o,
|
|
5748
|
-
return (
|
|
5756
|
+
const t = e, n = a, l = we(), { onLinkClick: i } = Ze(t), { rootTag: u, attrsToBind: o, btnRef: d } = Xe(t, l, "div");
|
|
5757
|
+
return (r, h) => (s(), P(ie(c(u)), G({
|
|
5758
|
+
ref_key: "btnRef",
|
|
5759
|
+
ref: d,
|
|
5749
5760
|
class: "bs-profile",
|
|
5750
|
-
".href": c(d),
|
|
5751
5761
|
"data-component": "bs-profile",
|
|
5752
5762
|
"data-layout": e.layout
|
|
5753
5763
|
}, c(o), { onClick: c(i) }), {
|
|
@@ -5771,16 +5781,16 @@ const Tl = ["data-shown"], Al = ["aria-expanded", "aria-controls", "title"], Ol
|
|
|
5771
5781
|
onActionToggled: h[0] || (h[0] = (b) => n("action-toggled"))
|
|
5772
5782
|
}, {
|
|
5773
5783
|
action: R(() => [
|
|
5774
|
-
L(
|
|
5784
|
+
L(r.$slots, "action")
|
|
5775
5785
|
]),
|
|
5776
5786
|
misc: R(() => [
|
|
5777
|
-
L(
|
|
5787
|
+
L(r.$slots, "misc")
|
|
5778
5788
|
]),
|
|
5779
5789
|
_: 3
|
|
5780
5790
|
}, 8, ["profile-name", "company", "job-title", "email", "action", "action-icon", "misc-meta", "misc-meta-icon"])
|
|
5781
5791
|
]),
|
|
5782
5792
|
_: 3
|
|
5783
|
-
},
|
|
5793
|
+
}, 16, ["data-layout", "onClick"]));
|
|
5784
5794
|
}
|
|
5785
5795
|
});
|
|
5786
5796
|
function oa(e) {
|
|
@@ -5837,7 +5847,7 @@ const No = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ro = ["data-sta
|
|
|
5837
5847
|
},
|
|
5838
5848
|
setup(e) {
|
|
5839
5849
|
const a = e, { progressStep: t, progressText: n, getStatus: l } = oa(a);
|
|
5840
|
-
return (i, u) => (
|
|
5850
|
+
return (i, u) => (s(), p("div", {
|
|
5841
5851
|
"aria-valuemax": e.steps.length,
|
|
5842
5852
|
"aria-valuenow": c(t),
|
|
5843
5853
|
"aria-valuetext": c(n),
|
|
@@ -5845,7 +5855,7 @@ const No = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ro = ["data-sta
|
|
|
5845
5855
|
"data-component": "bs-progress-bar",
|
|
5846
5856
|
role: "progressbar"
|
|
5847
5857
|
}, [
|
|
5848
|
-
(
|
|
5858
|
+
(s(!0), p(J, null, le(e.steps, (o, d) => (s(), p("div", {
|
|
5849
5859
|
class: "bs-step-item",
|
|
5850
5860
|
"data-status": c(l)(o.status, d),
|
|
5851
5861
|
"data-variant": "progress",
|
|
@@ -5901,7 +5911,7 @@ const No = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ro = ["data-sta
|
|
|
5901
5911
|
emits: ["update:modelValue"],
|
|
5902
5912
|
setup(e, { emit: a }) {
|
|
5903
5913
|
const t = e, [n] = oe(), l = v(() => wt.concat(t.passAttrs.split(","))), i = v(() => t.inputId || n.value), u = v(() => t.checked || t.modelValue && t.modelValue === t.value);
|
|
5904
|
-
return (o, d) => (
|
|
5914
|
+
return (o, d) => (s(), p("div", G({
|
|
5905
5915
|
class: "bs-boolean",
|
|
5906
5916
|
"data-component": "bs-radio",
|
|
5907
5917
|
"data-disabled": e.disabled,
|
|
@@ -5917,9 +5927,9 @@ const No = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ro = ["data-sta
|
|
|
5917
5927
|
value: e.value,
|
|
5918
5928
|
"data-error": e.error
|
|
5919
5929
|
}, c(ae)(o.$attrs, l.value).filtered, {
|
|
5920
|
-
onChange: d[0] || (d[0] = (
|
|
5930
|
+
onChange: d[0] || (d[0] = (r) => o.$emit("update:modelValue", r.target.value))
|
|
5921
5931
|
}), null, 16, Ko),
|
|
5922
|
-
e.label || o.$slots.label ? (
|
|
5932
|
+
e.label || o.$slots.label ? (s(), P(ce, {
|
|
5923
5933
|
key: 0,
|
|
5924
5934
|
for: o.$attrs.id || i.value,
|
|
5925
5935
|
disabled: e.disabled,
|
|
@@ -5948,7 +5958,7 @@ const No = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ro = ["data-sta
|
|
|
5948
5958
|
emits: ["update:modelValue"],
|
|
5949
5959
|
setup(e, { emit: a }) {
|
|
5950
5960
|
const t = e, n = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
5951
|
-
return (l, i) => (
|
|
5961
|
+
return (l, i) => (s(), p("select", G({
|
|
5952
5962
|
id: l.$attrs.id || e.inputId,
|
|
5953
5963
|
class: "bs-select",
|
|
5954
5964
|
"data-component": "bs-select",
|
|
@@ -6007,19 +6017,19 @@ const No = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ro = ["data-sta
|
|
|
6007
6017
|
},
|
|
6008
6018
|
setup(e) {
|
|
6009
6019
|
const a = e, [t, n] = oe(2), l = v(() => In.concat(a.passAttrs.split(","))), i = v(() => {
|
|
6010
|
-
var
|
|
6011
|
-
return ((h = (
|
|
6020
|
+
var r, h;
|
|
6021
|
+
return ((h = (r = a.hints) == null ? void 0 : r.join) == null ? void 0 : h.call(r, `
|
|
6012
6022
|
`)) || a.hints;
|
|
6013
6023
|
}), u = v(() => a.error && a.errorMsg || a.hint || i.value || void 0), o = v(() => a.inputId || t.value), d = v(() => a.value || a.modelValue);
|
|
6014
|
-
return (
|
|
6015
|
-
e.label ||
|
|
6024
|
+
return (r, h) => (s(), p("div", G({ "data-component": "bs-select-field" }, c(ae)(r.$attrs, l.value).remaining), [
|
|
6025
|
+
e.label || r.$slots.label ? (s(), P(ce, {
|
|
6016
6026
|
key: 0,
|
|
6017
|
-
for:
|
|
6027
|
+
for: r.$attrs.id || o.value,
|
|
6018
6028
|
disabled: e.disabled,
|
|
6019
6029
|
required: e.required
|
|
6020
6030
|
}, {
|
|
6021
6031
|
default: R(() => [
|
|
6022
|
-
L(
|
|
6032
|
+
L(r.$slots, "label", {}, () => [
|
|
6023
6033
|
X(E(e.label), 1)
|
|
6024
6034
|
])
|
|
6025
6035
|
]),
|
|
@@ -6029,18 +6039,18 @@ const No = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ro = ["data-sta
|
|
|
6029
6039
|
disabled: e.disabled,
|
|
6030
6040
|
error: e.error,
|
|
6031
6041
|
"hint-id": c(n),
|
|
6032
|
-
"input-id":
|
|
6042
|
+
"input-id": r.$attrs.id || o.value,
|
|
6033
6043
|
required: e.required,
|
|
6034
6044
|
value: d.value,
|
|
6035
|
-
"onUpdate:modelValue": h[0] || (h[0] = (b) =>
|
|
6036
|
-
}, c(ae)(
|
|
6045
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => r.$emit("update:modelValue", b))
|
|
6046
|
+
}, c(ae)(r.$attrs, l.value).filtered), {
|
|
6037
6047
|
default: R(() => [
|
|
6038
6048
|
y("option", {
|
|
6039
6049
|
selected: !d.value,
|
|
6040
6050
|
value: "",
|
|
6041
6051
|
disabled: !!d.value
|
|
6042
6052
|
}, E(e.disabled ? "" : e.placeholder), 9, Uo),
|
|
6043
|
-
(
|
|
6053
|
+
(s(!0), p(J, null, le(e.data, (b) => (s(), p("option", {
|
|
6044
6054
|
key: b.value,
|
|
6045
6055
|
disabled: b.disabled,
|
|
6046
6056
|
selected: d.value === b.value,
|
|
@@ -6049,7 +6059,7 @@ const No = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ro = ["data-sta
|
|
|
6049
6059
|
]),
|
|
6050
6060
|
_: 1
|
|
6051
6061
|
}, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
|
|
6052
|
-
u.value ? (
|
|
6062
|
+
u.value ? (s(), P(Te, {
|
|
6053
6063
|
key: 1,
|
|
6054
6064
|
"data-disabled": e.disabled,
|
|
6055
6065
|
error: e.error,
|
|
@@ -6198,18 +6208,18 @@ const No = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ro = ["data-sta
|
|
|
6198
6208
|
},
|
|
6199
6209
|
emits: ["update:model-value"],
|
|
6200
6210
|
setup(e, { emit: a }) {
|
|
6201
|
-
const t = e, n = a, [l, i] = oe(2), u = we(), o = A(!1), d = v(() => t.selectId || u.id || l.value),
|
|
6211
|
+
const t = e, n = a, [l, i] = oe(2), u = we(), o = A(!1), d = v(() => t.selectId || u.id || l.value), r = v(() => t.optionsId || i.value), h = v(() => {
|
|
6202
6212
|
if (t.modelValue) {
|
|
6203
6213
|
const f = t.options.find((g) => {
|
|
6204
|
-
var w,
|
|
6205
|
-
return typeof ((w = g.value) == null ? void 0 : w[t.valueIdKey]) > "u" ? g.value === t.modelValue : g.value[t.valueIdKey] === ((
|
|
6214
|
+
var w, B;
|
|
6215
|
+
return typeof ((w = g.value) == null ? void 0 : w[t.valueIdKey]) > "u" ? g.value === t.modelValue : g.value[t.valueIdKey] === ((B = t.modelValue) == null ? void 0 : B[t.valueIdKey]);
|
|
6206
6216
|
});
|
|
6207
6217
|
return f ? f.label : t.placeholder;
|
|
6208
6218
|
}
|
|
6209
6219
|
return t.placeholder;
|
|
6210
6220
|
}), b = v(() => h.value === t.placeholder);
|
|
6211
|
-
return (f, g) => (
|
|
6212
|
-
e.label || f.$slots.label ? (
|
|
6221
|
+
return (f, g) => (s(), p("div", null, [
|
|
6222
|
+
e.label || f.$slots.label ? (s(), P(ce, {
|
|
6213
6223
|
key: 0,
|
|
6214
6224
|
disabled: e.disabled,
|
|
6215
6225
|
for: d.value,
|
|
@@ -6222,7 +6232,7 @@ const No = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ro = ["data-sta
|
|
|
6222
6232
|
]),
|
|
6223
6233
|
_: 3
|
|
6224
6234
|
}, 8, ["disabled", "for", "required"])) : O("", !0),
|
|
6225
|
-
e.inputName || e.inputId ? (
|
|
6235
|
+
e.inputName || e.inputId ? (s(), p("input", {
|
|
6226
6236
|
key: 1,
|
|
6227
6237
|
id: e.inputId,
|
|
6228
6238
|
name: e.inputName,
|
|
@@ -6238,7 +6248,7 @@ const No = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ro = ["data-sta
|
|
|
6238
6248
|
"helper-text": e.helperText,
|
|
6239
6249
|
multiselect: !1,
|
|
6240
6250
|
open: o.value,
|
|
6241
|
-
"options-id":
|
|
6251
|
+
"options-id": r.value,
|
|
6242
6252
|
options: e.options,
|
|
6243
6253
|
"selected-option": e.modelValue,
|
|
6244
6254
|
"toggle-id": d.value,
|
|
@@ -6248,7 +6258,7 @@ const No = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ro = ["data-sta
|
|
|
6248
6258
|
}, {
|
|
6249
6259
|
toggle: R(() => [
|
|
6250
6260
|
y("button", G({
|
|
6251
|
-
"aria-controls":
|
|
6261
|
+
"aria-controls": r.value,
|
|
6252
6262
|
"aria-describedby": e.hintId,
|
|
6253
6263
|
"aria-expanded": o.value,
|
|
6254
6264
|
"aria-haspopup": "listbox",
|
|
@@ -6268,7 +6278,7 @@ const No = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ro = ["data-sta
|
|
|
6268
6278
|
onClick: g[0] || (g[0] = ge((w) => o.value = !o.value, ["prevent"]))
|
|
6269
6279
|
}), [
|
|
6270
6280
|
y("span", null, E(h.value), 1),
|
|
6271
|
-
e.disabled ? O("", !0) : (
|
|
6281
|
+
e.disabled ? O("", !0) : (s(), P(c(Ee), {
|
|
6272
6282
|
key: 0,
|
|
6273
6283
|
size: "md"
|
|
6274
6284
|
}))
|
|
@@ -6325,13 +6335,13 @@ const No = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ro = ["data-sta
|
|
|
6325
6335
|
emits: ["update:modelValue"],
|
|
6326
6336
|
setup(e, { emit: a }) {
|
|
6327
6337
|
const t = e, n = a, [l] = oe(), i = v(() => wt.concat(t.passAttrs.split(","))), u = v(() => t.inputId || l.value), o = v(() => t.checked || t.modelValue);
|
|
6328
|
-
return (d,
|
|
6338
|
+
return (d, r) => (s(), p("div", G({
|
|
6329
6339
|
class: "bs-boolean",
|
|
6330
6340
|
"data-component": "bs-switch",
|
|
6331
6341
|
"data-disabled": e.disabled,
|
|
6332
6342
|
"data-size": e.size
|
|
6333
6343
|
}, c(ae)(d.$attrs, i.value).remaining), [
|
|
6334
|
-
e.label || d.$slots.label ? (
|
|
6344
|
+
e.label || d.$slots.label ? (s(), P(ce, {
|
|
6335
6345
|
key: 0,
|
|
6336
6346
|
for: d.$attrs.id || u.value,
|
|
6337
6347
|
disabled: e.disabled,
|
|
@@ -6356,7 +6366,7 @@ const No = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ro = ["data-sta
|
|
|
6356
6366
|
id: d.$attrs.id || u.value,
|
|
6357
6367
|
type: "checkbox"
|
|
6358
6368
|
}, c(ae)(d.$attrs, i.value).filtered, {
|
|
6359
|
-
onChange:
|
|
6369
|
+
onChange: r[0] || (r[0] = (h) => n("update:modelValue", h.target.checked))
|
|
6360
6370
|
}), null, 16, Jo),
|
|
6361
6371
|
y("span", {
|
|
6362
6372
|
"aria-hidden": "true",
|
|
@@ -6384,16 +6394,16 @@ const No = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ro = ["data-sta
|
|
|
6384
6394
|
emits: ["tabClick"],
|
|
6385
6395
|
setup(e, { emit: a }) {
|
|
6386
6396
|
const t = e, n = we(), l = A(), i = v(() => t.activeTabId === n.id), u = v(() => t.panelId || `${n.id}-panel`);
|
|
6387
|
-
function o(
|
|
6388
|
-
(
|
|
6397
|
+
function o(r) {
|
|
6398
|
+
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), d());
|
|
6389
6399
|
}
|
|
6390
6400
|
function d() {
|
|
6391
6401
|
if (t.activeTabId !== n.id) {
|
|
6392
|
-
const
|
|
6393
|
-
l.value.dispatchEvent(
|
|
6402
|
+
const r = new CustomEvent("tabClick", { detail: n.id, bubbles: !0 });
|
|
6403
|
+
l.value.dispatchEvent(r);
|
|
6394
6404
|
}
|
|
6395
6405
|
}
|
|
6396
|
-
return (
|
|
6406
|
+
return (r, h) => (s(), p("div", {
|
|
6397
6407
|
"aria-controls": u.value,
|
|
6398
6408
|
"aria-selected": i.value ? "true" : "false",
|
|
6399
6409
|
"data-hidden": e.hidden || void 0,
|
|
@@ -6405,7 +6415,7 @@ const No = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ro = ["data-sta
|
|
|
6405
6415
|
onClick: d,
|
|
6406
6416
|
onKeydown: o
|
|
6407
6417
|
}, [
|
|
6408
|
-
L(
|
|
6418
|
+
L(r.$slots, "default")
|
|
6409
6419
|
], 40, ei));
|
|
6410
6420
|
}
|
|
6411
6421
|
};
|
|
@@ -6487,7 +6497,7 @@ const nt = ia, ra = Symbol("TableHeaderProvider"), sa = Symbol("TableBodyProvide
|
|
|
6487
6497
|
function i() {
|
|
6488
6498
|
n.value--;
|
|
6489
6499
|
}
|
|
6490
|
-
return (u, o) => (
|
|
6500
|
+
return (u, o) => (s(), p("div", {
|
|
6491
6501
|
class: de(`bs-table-${e.kind}-rowgroup`),
|
|
6492
6502
|
role: "rowgroup",
|
|
6493
6503
|
style: ba(`--bs-table-${e.kind}-row-count: ${n.value}`)
|
|
@@ -6513,7 +6523,7 @@ const ot = ua, ti = {
|
|
|
6513
6523
|
__name: "TableRow",
|
|
6514
6524
|
setup(e) {
|
|
6515
6525
|
const a = ue(sa, null) || ue(ra, null) || ue(da);
|
|
6516
|
-
return te(() => a.incrementRowCount()), ye(() => a.decrementRowCount()), (t, n) => (
|
|
6526
|
+
return te(() => a.incrementRowCount()), ye(() => a.decrementRowCount()), (t, n) => (s(), p("div", ti, [
|
|
6517
6527
|
L(t.$slots, "default")
|
|
6518
6528
|
]));
|
|
6519
6529
|
}
|
|
@@ -6540,13 +6550,13 @@ const qt = fa, It = (e, a) => {
|
|
|
6540
6550
|
return t;
|
|
6541
6551
|
}, ai = {}, ni = { class: "bs-table-wrap-header" };
|
|
6542
6552
|
function li(e, a) {
|
|
6543
|
-
return
|
|
6553
|
+
return s(), p("div", ni, [
|
|
6544
6554
|
L(e.$slots, "default")
|
|
6545
6555
|
]);
|
|
6546
6556
|
}
|
|
6547
6557
|
const oi = /* @__PURE__ */ It(ai, [["render", li]]), ii = {}, ri = { class: "bs-table-wrap-footer" };
|
|
6548
6558
|
function si(e, a) {
|
|
6549
|
-
return
|
|
6559
|
+
return s(), p("div", ri, [
|
|
6550
6560
|
L(e.$slots, "default")
|
|
6551
6561
|
]);
|
|
6552
6562
|
}
|
|
@@ -6568,8 +6578,8 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
6568
6578
|
emits: ["toggle"],
|
|
6569
6579
|
setup(e, { emit: a }) {
|
|
6570
6580
|
const t = a, n = e, l = {
|
|
6571
|
-
asc:
|
|
6572
|
-
desc:
|
|
6581
|
+
asc: ka,
|
|
6582
|
+
desc: Ba
|
|
6573
6583
|
};
|
|
6574
6584
|
function i(u) {
|
|
6575
6585
|
t("toggle", {
|
|
@@ -6577,7 +6587,7 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
6577
6587
|
desc: "asc"
|
|
6578
6588
|
}[n.order] || "asc", u);
|
|
6579
6589
|
}
|
|
6580
|
-
return (u, o) => (
|
|
6590
|
+
return (u, o) => (s(), p("button", {
|
|
6581
6591
|
class: "bs-sort-toggle",
|
|
6582
6592
|
type: "button",
|
|
6583
6593
|
onClick: i
|
|
@@ -6585,7 +6595,7 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
6585
6595
|
L(u.$slots, "default", {}, () => [
|
|
6586
6596
|
o[0] || (o[0] = y("span", { class: "visually-hidden" }, "sort toggle", -1))
|
|
6587
6597
|
]),
|
|
6588
|
-
(
|
|
6598
|
+
(s(), P(ie(l[n.order] || c(Gt)), {
|
|
6589
6599
|
size: e.size,
|
|
6590
6600
|
"aria-hidden": "true"
|
|
6591
6601
|
}, null, 8, ["size"]))
|
|
@@ -6597,78 +6607,78 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
6597
6607
|
setup(e, { emit: a }) {
|
|
6598
6608
|
const t = a, n = ha("resizer");
|
|
6599
6609
|
let l = null, i = null, u = null;
|
|
6600
|
-
const o = He({ el: null, rect: null }), d = A(!1),
|
|
6610
|
+
const o = He({ el: null, rect: null }), d = A(!1), r = A(!1);
|
|
6601
6611
|
te(() => {
|
|
6602
6612
|
document.addEventListener("pointermove", h);
|
|
6603
6613
|
}), ye(() => {
|
|
6604
6614
|
document.removeEventListener("pointermove", h);
|
|
6605
6615
|
});
|
|
6606
|
-
function h(
|
|
6607
|
-
if (
|
|
6616
|
+
function h(k) {
|
|
6617
|
+
if (r.value) return;
|
|
6608
6618
|
if (d.value)
|
|
6609
|
-
return
|
|
6610
|
-
if (f(
|
|
6611
|
-
const V =
|
|
6612
|
-
if (!(V &&
|
|
6619
|
+
return k.target === n.value || B();
|
|
6620
|
+
if (f(k.target.closest("[data-bs-table-col-resize-id]")), !o.value.el) return;
|
|
6621
|
+
const V = k.clientX <= o.value.rect.left + Rt, S = k.clientX >= o.value.rect.right - Rt;
|
|
6622
|
+
if (!(V && k.target.dataset.ouiTableColResize === "right") && (V || S)) {
|
|
6613
6623
|
if (i = V ? o.value.rect.left : o.value.rect.right, V && f(b()), !o.value.el) return;
|
|
6614
6624
|
w();
|
|
6615
6625
|
}
|
|
6616
6626
|
}
|
|
6617
6627
|
function b() {
|
|
6618
|
-
const
|
|
6619
|
-
if (!
|
|
6620
|
-
const V =
|
|
6628
|
+
const k = o.value.el.previousElementSibling;
|
|
6629
|
+
if (!k) return;
|
|
6630
|
+
const V = k.classList.contains("bs-table-cols-frozen-left") ? o.value.el.previousElementSibling.lastElementChild : o.value.el.previousElementSibling;
|
|
6621
6631
|
return V.dataset.ouiTableColResizeId ? V : null;
|
|
6622
6632
|
}
|
|
6623
|
-
function f(
|
|
6624
|
-
o.value =
|
|
6633
|
+
function f(k) {
|
|
6634
|
+
o.value = k ? { el: k, rect: k.getBoundingClientRect(), minWidth: g(k) } : { el: null, rect: null };
|
|
6625
6635
|
}
|
|
6626
|
-
function g(
|
|
6636
|
+
function g(k) {
|
|
6627
6637
|
var S;
|
|
6628
|
-
const V = (S =
|
|
6638
|
+
const V = (S = k.dataset.ouiTableColResizeMin) == null ? void 0 : S.replace("px", "");
|
|
6629
6639
|
if (V)
|
|
6630
6640
|
return parseInt(V, 10);
|
|
6631
6641
|
}
|
|
6632
6642
|
function w() {
|
|
6633
6643
|
q(), n.value.style.setProperty("--bs-table-col-resizer-y", `${o.value.rect.top}px`), n.value.style.setProperty("--bs-table-col-resizer-handle-height", `${o.value.rect.height}px`), d.value = !0;
|
|
6634
6644
|
}
|
|
6635
|
-
function
|
|
6645
|
+
function B() {
|
|
6636
6646
|
d.value = !1;
|
|
6637
6647
|
}
|
|
6638
|
-
function m(
|
|
6639
|
-
|
|
6648
|
+
function m(k) {
|
|
6649
|
+
k.target.setPointerCapture(k.pointerId);
|
|
6640
6650
|
const V = n.value.closest(".bs-table-scroll-wrap");
|
|
6641
|
-
n.value.style.setProperty("--bs-table-col-resizer-tail-height", `${V.offsetHeight}px`),
|
|
6651
|
+
n.value.style.setProperty("--bs-table-col-resizer-tail-height", `${V.offsetHeight}px`), r.value = !0, l = i, n.value.addEventListener("pointermove", I), n.value.addEventListener("pointerup", j, { once: !0 });
|
|
6642
6652
|
}
|
|
6643
|
-
function I(
|
|
6644
|
-
i = x(
|
|
6653
|
+
function I(k) {
|
|
6654
|
+
i = x(k) ? o.value.rect.left + o.value.minWidth : k.clientX, !u && (u = requestAnimationFrame(() => {
|
|
6645
6655
|
u = null, q();
|
|
6646
6656
|
}));
|
|
6647
6657
|
}
|
|
6648
|
-
function x(
|
|
6649
|
-
return
|
|
6658
|
+
function x(k) {
|
|
6659
|
+
return k.clientX - o.value.rect.left <= o.value.minWidth;
|
|
6650
6660
|
}
|
|
6651
6661
|
function q() {
|
|
6652
6662
|
n.value.style.setProperty("--bs-table-col-resizer-x", `${i}px`);
|
|
6653
6663
|
}
|
|
6654
6664
|
function j() {
|
|
6655
|
-
n.value.removeEventListener("pointermove", I), setTimeout(() =>
|
|
6656
|
-
const
|
|
6657
|
-
|
|
6665
|
+
n.value.removeEventListener("pointermove", I), setTimeout(() => r.value = !1);
|
|
6666
|
+
const k = i - l;
|
|
6667
|
+
k !== 0 && W(Math.round(o.value.rect.width + k));
|
|
6658
6668
|
}
|
|
6659
|
-
async function W(
|
|
6669
|
+
async function W(k) {
|
|
6660
6670
|
t("resize", {
|
|
6661
6671
|
el: o.value.el,
|
|
6662
6672
|
id: o.value.el.dataset.ouiTableColResizeId,
|
|
6663
|
-
width:
|
|
6673
|
+
width: k
|
|
6664
6674
|
}), await Ve(() => f(o.value.el));
|
|
6665
6675
|
}
|
|
6666
6676
|
function $() {
|
|
6667
|
-
W(),
|
|
6677
|
+
W(), B();
|
|
6668
6678
|
}
|
|
6669
|
-
return (
|
|
6679
|
+
return (k, V) => Se((s(), p("div", {
|
|
6670
6680
|
ref: "resizer",
|
|
6671
|
-
class: de(["bs-table-col-resizer",
|
|
6681
|
+
class: de(["bs-table-col-resizer", r.value && "bs-table-col-resizer-active"]),
|
|
6672
6682
|
onDragstart: V[0] || (V[0] = ge(() => {
|
|
6673
6683
|
}, ["prevent"])),
|
|
6674
6684
|
onPointerdown: ge(m, ["prevent", "stop"]),
|
|
@@ -6766,7 +6776,7 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
6766
6776
|
const z = V(C);
|
|
6767
6777
|
return l.value[z] ?? Z(C);
|
|
6768
6778
|
}).join(" ")), u = v(() => `--bs-table-cell-padding: ${["xs", "sm", "md", "lg", "xl", "none"].includes(e.cellPadding) ? `var(--bs-table-cell-padding-${e.cellPadding})` : e.cellPadding}`), o = v(() => typeof e.rowHover != "string" || e.rowHover === "true" ? "" : `--bs-table-row-hover: ${e.rowHover}`), d = v(() => Object.values(n.value).flat().some(V));
|
|
6769
|
-
function
|
|
6779
|
+
function r(C = []) {
|
|
6770
6780
|
const z = [
|
|
6771
6781
|
"bs-table-wrap",
|
|
6772
6782
|
`bs-table-border-${e.borders}`,
|
|
@@ -6814,21 +6824,21 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
6814
6824
|
W(C, $)
|
|
6815
6825
|
);
|
|
6816
6826
|
}
|
|
6817
|
-
function
|
|
6827
|
+
function B(C = []) {
|
|
6818
6828
|
return ne(lt, { kind: "body" }, () => C);
|
|
6819
6829
|
}
|
|
6820
6830
|
function m() {
|
|
6821
6831
|
const C = e.rows.map((z, K) => j(
|
|
6822
6832
|
be(fe, { row: z, rowIndex: K })
|
|
6823
6833
|
));
|
|
6824
|
-
return
|
|
6834
|
+
return B(C);
|
|
6825
6835
|
}
|
|
6826
6836
|
function I() {
|
|
6827
6837
|
const C = e.rows.map((z, K) => {
|
|
6828
6838
|
const T = a.body({ row: z, rowIndex: K });
|
|
6829
6839
|
return W(T, fe, { row: z, rowIndex: K });
|
|
6830
6840
|
});
|
|
6831
|
-
return
|
|
6841
|
+
return B(C);
|
|
6832
6842
|
}
|
|
6833
6843
|
function x(C = []) {
|
|
6834
6844
|
return ne(lt, {
|
|
@@ -6856,7 +6866,7 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
6856
6866
|
class: e.truncate && se(C),
|
|
6857
6867
|
"data-bs-table-col-id": C.props.id,
|
|
6858
6868
|
// TODO: only added here for col resize reasons, could be on all cells
|
|
6859
|
-
...
|
|
6869
|
+
...k(C),
|
|
6860
6870
|
...K && K === e.sortKey && { "aria-sort": `${e.sortOrder}ending` }
|
|
6861
6871
|
};
|
|
6862
6872
|
if (K && (z != null && z.children)) {
|
|
@@ -6868,7 +6878,7 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
6868
6878
|
return H(C) || ((U = C.props) == null ? void 0 : U.name);
|
|
6869
6879
|
});
|
|
6870
6880
|
}
|
|
6871
|
-
function
|
|
6881
|
+
function k(C) {
|
|
6872
6882
|
const z = V(C);
|
|
6873
6883
|
if (!z) return {};
|
|
6874
6884
|
const K = C.props["resize-min"] || C.props.resizeMin, T = C.props["resize-max"] || C.props.resizeMax;
|
|
@@ -6921,16 +6931,16 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
6921
6931
|
const z = C.props.truncate === void 0 ? e.truncate : C.props.truncate === "" || C.props.truncate;
|
|
6922
6932
|
return C.props.truncate !== "false" && z && "bs-table-truncate";
|
|
6923
6933
|
}
|
|
6924
|
-
function
|
|
6934
|
+
function Be(C, z, K) {
|
|
6925
6935
|
if (!n.value[C].length) return;
|
|
6926
6936
|
const T = n.value[C].map((N) => z(N, K));
|
|
6927
6937
|
return ne("div", { class: `bs-table-cols-frozen-${C}` }, T);
|
|
6928
6938
|
}
|
|
6929
6939
|
function be(C, z = {}) {
|
|
6930
6940
|
return [
|
|
6931
|
-
|
|
6941
|
+
Be("left", C, z),
|
|
6932
6942
|
n.value.center.map((K) => C(K, z)),
|
|
6933
|
-
|
|
6943
|
+
Be("right", C, z)
|
|
6934
6944
|
];
|
|
6935
6945
|
}
|
|
6936
6946
|
function pe() {
|
|
@@ -7003,7 +7013,7 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
7003
7013
|
}
|
|
7004
7014
|
return () => {
|
|
7005
7015
|
const { columns: C, header: z, footer: K, other: T } = et(a.default());
|
|
7006
|
-
return n.value = _e(C),
|
|
7016
|
+
return n.value = _e(C), r([
|
|
7007
7017
|
z,
|
|
7008
7018
|
b([
|
|
7009
7019
|
h([
|
|
@@ -7019,7 +7029,7 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
7019
7029
|
]);
|
|
7020
7030
|
};
|
|
7021
7031
|
}
|
|
7022
|
-
}, ci = ["id", "data-resizing"], fi = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], pi = 73, vi = 20, rt = 16,
|
|
7032
|
+
}, ci = ["id", "data-resizing"], fi = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], pi = 73, vi = 20, rt = 16, kr = {
|
|
7023
7033
|
__name: "BsTabList",
|
|
7024
7034
|
props: {
|
|
7025
7035
|
activeTabId: { type: String, required: !0 },
|
|
@@ -7030,9 +7040,9 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
7030
7040
|
},
|
|
7031
7041
|
emits: ["tabChange", "update:modelValue"],
|
|
7032
7042
|
setup(e, { emit: a }) {
|
|
7033
|
-
const t = e, n = a, l = A(!1), i = A(!1), u = A([]), o = A(!1), d = A(!1),
|
|
7043
|
+
const t = e, n = a, l = A(!1), i = A(!1), u = A([]), o = A(!1), d = A(!1), r = A(), h = A([]), b = A(!1), f = A([]), g = A(), w = A([]), B = A(), m = A(), [I, x] = oe(2);
|
|
7034
7044
|
let q;
|
|
7035
|
-
const j = v(() => t.activeTabId ? f.value.findIndex((T) => T.id === t.activeTabId) : 0), W = v(() => u.value.some((T) => T.id === t.activeTabId)), $ = v(() => `${x.value}-options`),
|
|
7045
|
+
const j = v(() => t.activeTabId ? f.value.findIndex((T) => T.id === t.activeTabId) : 0), W = v(() => u.value.some((T) => T.id === t.activeTabId)), $ = v(() => `${x.value}-options`), k = v(() => `${x.value}-toggle`), V = v(() => {
|
|
7036
7046
|
var T;
|
|
7037
7047
|
return W.value ? (T = f.value[j.value]) == null ? void 0 : T.textContent : "More";
|
|
7038
7048
|
}), S = v(() => W.value ? h.value[j.value] - h.value[j.value - 1] + vi + rt : pi + rt);
|
|
@@ -7052,7 +7062,7 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
7052
7062
|
N.dataset.hidden = "false", N.setAttribute("tabindex", "0");
|
|
7053
7063
|
}
|
|
7054
7064
|
d.value = T, u.value = re, l.value || Ve(() => l.value = !0), q = setTimeout(() => {
|
|
7055
|
-
|
|
7065
|
+
r.value && (K(), Oe(), b.value = !0);
|
|
7056
7066
|
}, b.value ? 25 : 1e3);
|
|
7057
7067
|
}
|
|
7058
7068
|
}
|
|
@@ -7065,7 +7075,7 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
7065
7075
|
function se(T) {
|
|
7066
7076
|
n("tabChange", T), n("update:modelValue", T);
|
|
7067
7077
|
}
|
|
7068
|
-
function
|
|
7078
|
+
function Be(T) {
|
|
7069
7079
|
var _, re, Ie;
|
|
7070
7080
|
const N = (Ie = (re = (_ = f.value[T]) == null ? void 0 : _.getBoundingClientRect) == null ? void 0 : re.call(_)) == null ? void 0 : Ie.width;
|
|
7071
7081
|
return N || (T === 0 ? h.value[0] : h.value[T] - h.value[T - 1]) || 0;
|
|
@@ -7111,23 +7121,23 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
7111
7121
|
}
|
|
7112
7122
|
function Oe() {
|
|
7113
7123
|
var Ie, me, Ct, xt;
|
|
7114
|
-
const T = parseInt(
|
|
7115
|
-
let U = 300, _ = ((me = (Ie = w.value) == null ? void 0 : Ie[j.value]) == null ? void 0 : me.offsetLeft) || 0, re =
|
|
7116
|
-
d.value && W.value && (_ = (Ct = g.value) == null ? void 0 : Ct.offsetLeft, re = (xt = g.value) == null ? void 0 : xt.offsetWidth), U = Math.max(Math.abs((_ - T) / N * 300), 100),
|
|
7124
|
+
const T = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0, N = m.value;
|
|
7125
|
+
let U = 300, _ = ((me = (Ie = w.value) == null ? void 0 : Ie[j.value]) == null ? void 0 : me.offsetLeft) || 0, re = Be(j.value);
|
|
7126
|
+
d.value && W.value && (_ = (Ct = g.value) == null ? void 0 : Ct.offsetLeft, re = (xt = g.value) == null ? void 0 : xt.offsetWidth), U = Math.max(Math.abs((_ - T) / N * 300), 100), r.value.style.setProperty("--active-line-max-width", `${N}px`), r.value.style.setProperty("--active-line-scale", `${re / N}`), r.value.style.setProperty("--active-line-offset", `${_}px`), r.value.style.setProperty("--active-line-transition-duration", `${U}ms`);
|
|
7117
7127
|
}
|
|
7118
7128
|
function _e() {
|
|
7119
7129
|
var T, N;
|
|
7120
|
-
(N = (T =
|
|
7130
|
+
(N = (T = B.value) == null ? void 0 : T.disconnect) == null || N.call(T), B.value = null;
|
|
7121
7131
|
}
|
|
7122
7132
|
function et() {
|
|
7123
7133
|
const T = We(() => {
|
|
7124
7134
|
var N;
|
|
7125
|
-
m.value = (N =
|
|
7135
|
+
m.value = (N = r == null ? void 0 : r.value) == null ? void 0 : N.clientWidth, H();
|
|
7126
7136
|
}, 25);
|
|
7127
|
-
|
|
7137
|
+
B.value = new ResizeObserver(T), B.value.observe(document.body), r.value && B.value.observe(r.value);
|
|
7128
7138
|
}
|
|
7129
7139
|
function C() {
|
|
7130
|
-
f.value = Array.from(
|
|
7140
|
+
f.value = Array.from(r.value.children).filter((T) => T.role === "tab");
|
|
7131
7141
|
}
|
|
7132
7142
|
function z() {
|
|
7133
7143
|
let T;
|
|
@@ -7143,21 +7153,21 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
7143
7153
|
if (((N = _.dataset) == null ? void 0 : N.hidden) === "true" || ((U = _.dataset) == null ? void 0 : U.hidden) === "" || _.getAttribute("tabindex") === "-1") break;
|
|
7144
7154
|
T.push(_);
|
|
7145
7155
|
}
|
|
7146
|
-
d.value && T.push(
|
|
7156
|
+
d.value && T.push(r.value.querySelector(".bs-tab-list-toggle")), w.value = T;
|
|
7147
7157
|
}
|
|
7148
7158
|
return Y(() => t.activeTabId, be), te(() => {
|
|
7149
7159
|
var T;
|
|
7150
7160
|
try {
|
|
7151
|
-
C(), z(), et(), m.value =
|
|
7161
|
+
C(), z(), et(), m.value = r.value.getBoundingClientRect().width, H(), t.withBsTabs || (T = f.value[j.value]) == null || T.setAttribute("aria-selected", "true");
|
|
7152
7162
|
} catch (N) {
|
|
7153
7163
|
console.log("tab error", N);
|
|
7154
7164
|
}
|
|
7155
|
-
}), ye(fe), (T, N) => (
|
|
7165
|
+
}), ye(fe), (T, N) => (s(), p("div", {
|
|
7156
7166
|
class: "bs-tab-list",
|
|
7157
7167
|
"data-component": "bs-tab-list",
|
|
7158
7168
|
id: T.$attrs.id || c(I),
|
|
7159
7169
|
ref_key: "hostEl",
|
|
7160
|
-
ref:
|
|
7170
|
+
ref: r,
|
|
7161
7171
|
role: "tablist",
|
|
7162
7172
|
"data-resizing": !l.value || void 0,
|
|
7163
7173
|
onClick: F,
|
|
@@ -7171,7 +7181,7 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
7171
7181
|
class: "bs-tab-list-toggle",
|
|
7172
7182
|
"data-active": W.value || void 0,
|
|
7173
7183
|
"data-hidden": !d.value,
|
|
7174
|
-
id:
|
|
7184
|
+
id: k.value,
|
|
7175
7185
|
ref_key: "dropdownToggle",
|
|
7176
7186
|
ref: g,
|
|
7177
7187
|
onClick: Ae
|
|
@@ -7180,7 +7190,7 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
7180
7190
|
X(" " + E(V.value), 1)
|
|
7181
7191
|
], 8, fi),
|
|
7182
7192
|
M(na, {
|
|
7183
|
-
"anchor-id":
|
|
7193
|
+
"anchor-id": k.value,
|
|
7184
7194
|
"container-id": T.$attrs.id || c(I),
|
|
7185
7195
|
"helper-description": e.helperDescription || void 0,
|
|
7186
7196
|
"helper-text": e.helperText,
|
|
@@ -7194,7 +7204,7 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
7194
7204
|
"onUpdate:modelValue": he
|
|
7195
7205
|
}, {
|
|
7196
7206
|
default: R(() => [
|
|
7197
|
-
(
|
|
7207
|
+
(s(!0), p(J, null, le(u.value, (U) => (s(), P(Bt, {
|
|
7198
7208
|
key: U.id,
|
|
7199
7209
|
value: U.id,
|
|
7200
7210
|
"options-id": $.value
|
|
@@ -7209,7 +7219,7 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
7209
7219
|
}, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])
|
|
7210
7220
|
], 40, ci));
|
|
7211
7221
|
}
|
|
7212
|
-
}, bi = ["aria-labelledby", "data-active", "id"],
|
|
7222
|
+
}, bi = ["aria-labelledby", "data-active", "id"], Br = {
|
|
7213
7223
|
__name: "BsTabPanel",
|
|
7214
7224
|
props: {
|
|
7215
7225
|
activeTabId: {
|
|
@@ -7223,7 +7233,7 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
7223
7233
|
},
|
|
7224
7234
|
setup(e) {
|
|
7225
7235
|
const a = e, t = we(), n = v(() => a.activeTabId && a.activeTabId === a.tabId), l = v(() => t.id || `${a.tabId}-panel`);
|
|
7226
|
-
return (i, u) => (
|
|
7236
|
+
return (i, u) => (s(), p("section", {
|
|
7227
7237
|
"aria-labelledby": e.tabId,
|
|
7228
7238
|
"data-active": n.value,
|
|
7229
7239
|
"data-component": "bs-tab-panel",
|
|
@@ -7249,7 +7259,7 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
7249
7259
|
emits: ["update:modelValue"],
|
|
7250
7260
|
setup(e, { emit: a }) {
|
|
7251
7261
|
const t = e, n = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
7252
|
-
return (l, i) => (
|
|
7262
|
+
return (l, i) => (s(), p("textarea", G({
|
|
7253
7263
|
class: "bs-textarea",
|
|
7254
7264
|
"data-component": "bs-textarea",
|
|
7255
7265
|
"data-error": e.error,
|
|
@@ -7315,11 +7325,11 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
7315
7325
|
var h, b;
|
|
7316
7326
|
return ((b = (h = t.hints) == null ? void 0 : h.join) == null ? void 0 : b.call(h, `
|
|
7317
7327
|
`)) || t.hints;
|
|
7318
|
-
}), d = v(() => t.error && t.errorMsg || t.hint || o.value || void 0),
|
|
7319
|
-
return (h, b) => (
|
|
7320
|
-
e.label || h.$slots.label ? (
|
|
7328
|
+
}), d = v(() => t.error && t.errorMsg || t.hint || o.value || void 0), r = v(() => t.inputId || n.value);
|
|
7329
|
+
return (h, b) => (s(), p("div", G({ "data-component": "bs-textarea-field" }, c(ae)(h.$attrs, i.value).remaining), [
|
|
7330
|
+
e.label || h.$slots.label ? (s(), P(ce, {
|
|
7321
7331
|
key: 0,
|
|
7322
|
-
for: h.$attrs.id ||
|
|
7332
|
+
for: h.$attrs.id || r.value,
|
|
7323
7333
|
disabled: e.disabled,
|
|
7324
7334
|
required: e.required
|
|
7325
7335
|
}, {
|
|
@@ -7334,14 +7344,14 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
7334
7344
|
disabled: e.disabled,
|
|
7335
7345
|
error: e.error,
|
|
7336
7346
|
"hint-id": c(l),
|
|
7337
|
-
id: h.$attrs.id ||
|
|
7347
|
+
id: h.$attrs.id || r.value,
|
|
7338
7348
|
placeholder: e.placeholder,
|
|
7339
7349
|
required: e.required,
|
|
7340
7350
|
rows: e.rows,
|
|
7341
7351
|
value: e.value || e.modelValue,
|
|
7342
7352
|
"onUpdate:modelValue": b[0] || (b[0] = (f) => h.$emit("update:modelValue", f))
|
|
7343
7353
|
}, c(ae)(h.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
|
|
7344
|
-
d.value || e.charMax ? (
|
|
7354
|
+
d.value || e.charMax ? (s(), P(Te, {
|
|
7345
7355
|
key: 1,
|
|
7346
7356
|
"char-count": u.value,
|
|
7347
7357
|
"char-max": e.charMax,
|
|
@@ -7394,7 +7404,7 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
7394
7404
|
function u(o, d) {
|
|
7395
7405
|
return o = i(o, d), t[o] || Ot;
|
|
7396
7406
|
}
|
|
7397
|
-
return (o, d) => (
|
|
7407
|
+
return (o, d) => (s(), p("div", {
|
|
7398
7408
|
"aria-valuemax": e.steps.length,
|
|
7399
7409
|
"aria-valuenow": c(n),
|
|
7400
7410
|
"aria-valuetext": c(l),
|
|
@@ -7402,19 +7412,19 @@ const di = /* @__PURE__ */ It(ii, [["render", si]]), Nt = {
|
|
|
7402
7412
|
"data-component": "bs-timeline",
|
|
7403
7413
|
role: "progressbar"
|
|
7404
7414
|
}, [
|
|
7405
|
-
(
|
|
7415
|
+
(s(!0), p(J, null, le(e.steps, (r, h) => (s(), p("div", {
|
|
7406
7416
|
class: "bs-step-item",
|
|
7407
|
-
"data-status": c(i)(
|
|
7408
|
-
key:
|
|
7417
|
+
"data-status": c(i)(r.status, h),
|
|
7418
|
+
key: r.id || r.label,
|
|
7409
7419
|
role: "status"
|
|
7410
7420
|
}, [
|
|
7411
|
-
(
|
|
7421
|
+
(s(), P(ie(u(r.status, h)), {
|
|
7412
7422
|
class: "bs-step-icon",
|
|
7413
7423
|
role: "presentation"
|
|
7414
7424
|
})),
|
|
7415
7425
|
y("p", null, [
|
|
7416
|
-
X(E(
|
|
7417
|
-
y("span", wi, " : " + E(c(i)(
|
|
7426
|
+
X(E(r.label || r) + " ", 1),
|
|
7427
|
+
y("span", wi, " : " + E(c(i)(r.status, h) || "not started"), 1)
|
|
7418
7428
|
])
|
|
7419
7429
|
], 8, yi))), 128))
|
|
7420
7430
|
], 8, gi));
|
|
@@ -7450,11 +7460,11 @@ function ze(e = "") {
|
|
|
7450
7460
|
const [t, n] = e.split(":"), l = Le(t), i = Le(n), u = l < 12 ? "AM" : "PM";
|
|
7451
7461
|
return isNaN(l) || isNaN(i) || l > 23 || i > 59 ? "" : `${l % 12 || 12}:${n} ${u}`;
|
|
7452
7462
|
}
|
|
7453
|
-
function
|
|
7463
|
+
function ki(e = "") {
|
|
7454
7464
|
const { hours: a, minutes: t } = $i(e);
|
|
7455
7465
|
return isNaN(a) || isNaN(t) ? "" : `${a.toString().padStart(2, "0")}:${t.toString().padStart(2, "0")}`;
|
|
7456
7466
|
}
|
|
7457
|
-
const st = "excluded", dt = "over", Ft = "skip", Kt = "stop", ut = "under",
|
|
7467
|
+
const st = "excluded", dt = "over", Ft = "skip", Kt = "stop", ut = "under", Bi = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
7458
7468
|
__name: "BsTimePicker",
|
|
7459
7469
|
props: {
|
|
7460
7470
|
disabled: {
|
|
@@ -7520,7 +7530,7 @@ const st = "excluded", dt = "over", Ft = "skip", Kt = "stop", ut = "under", ki =
|
|
|
7520
7530
|
emits: ["update:modelValue"],
|
|
7521
7531
|
setup(e, { expose: a, emit: t }) {
|
|
7522
7532
|
const n = e, l = t, i = A(ze(n.modelValue)), u = A([]), o = A(""), d = A(!1);
|
|
7523
|
-
function
|
|
7533
|
+
function r() {
|
|
7524
7534
|
const I = [];
|
|
7525
7535
|
let x = !1;
|
|
7526
7536
|
for (let q = 0; q < 24 && !x; q++)
|
|
@@ -7557,13 +7567,13 @@ const st = "excluded", dt = "over", Ft = "skip", Kt = "stop", ut = "under", ki =
|
|
|
7557
7567
|
return I = I.toString().padStart(2, "0"), x = x.toString().padStart(2, "0"), `${I}:${x}`;
|
|
7558
7568
|
}
|
|
7559
7569
|
function g(I) {
|
|
7560
|
-
const x =
|
|
7561
|
-
x === n.modelValue && (i.value = ze(n.modelValue)),
|
|
7570
|
+
const x = ki(I);
|
|
7571
|
+
x === n.modelValue && (i.value = ze(n.modelValue)), B(x);
|
|
7562
7572
|
}
|
|
7563
7573
|
function w() {
|
|
7564
|
-
u.value =
|
|
7574
|
+
u.value = r();
|
|
7565
7575
|
}
|
|
7566
|
-
function
|
|
7576
|
+
function B(I) {
|
|
7567
7577
|
m(I), l("update:modelValue", I);
|
|
7568
7578
|
}
|
|
7569
7579
|
function m(I) {
|
|
@@ -7596,7 +7606,7 @@ const st = "excluded", dt = "over", Ft = "skip", Kt = "stop", ut = "under", ki =
|
|
|
7596
7606
|
}), a({
|
|
7597
7607
|
validationErr: d,
|
|
7598
7608
|
validationErrMsg: o
|
|
7599
|
-
}), (I, x) => (
|
|
7609
|
+
}), (I, x) => (s(), P(aa, {
|
|
7600
7610
|
disabled: e.disabled,
|
|
7601
7611
|
"display-value": i.value,
|
|
7602
7612
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -7683,7 +7693,7 @@ const st = "excluded", dt = "over", Ft = "skip", Kt = "stop", ut = "under", ki =
|
|
|
7683
7693
|
},
|
|
7684
7694
|
emits: ["update:modelValue"],
|
|
7685
7695
|
setup(e, { expose: a, emit: t }) {
|
|
7686
|
-
const n = e, [l, i] = oe(2), u = A(null), o = v(() => n.errorMsg || b.value), d = v(() => n.error || f.value),
|
|
7696
|
+
const n = e, [l, i] = oe(2), u = A(null), o = v(() => n.errorMsg || b.value), d = v(() => n.error || f.value), r = v(() => n.inputId || l.value), h = v(() => n.hint || d.value && o.value), b = v(() => {
|
|
7687
7697
|
var g;
|
|
7688
7698
|
return (g = u.value) == null ? void 0 : g.validationErrMsg;
|
|
7689
7699
|
}), f = v(() => {
|
|
@@ -7693,13 +7703,13 @@ const st = "excluded", dt = "over", Ft = "skip", Kt = "stop", ut = "under", ki =
|
|
|
7693
7703
|
return a({
|
|
7694
7704
|
validationErr: f,
|
|
7695
7705
|
validationErrMsg: b
|
|
7696
|
-
}), (g, w) => (
|
|
7706
|
+
}), (g, w) => (s(), p("div", G({
|
|
7697
7707
|
"aria-live": "polite",
|
|
7698
7708
|
"data-component": "bs-time-picker-field"
|
|
7699
7709
|
}, c(ae)(g.$attrs, c(xe)).remaining), [
|
|
7700
|
-
e.label || g.$slots.label ? (
|
|
7710
|
+
e.label || g.$slots.label ? (s(), P(ce, {
|
|
7701
7711
|
key: 0,
|
|
7702
|
-
for: g.$attrs.id ||
|
|
7712
|
+
for: g.$attrs.id || r.value,
|
|
7703
7713
|
disabled: e.disabled,
|
|
7704
7714
|
required: e.required
|
|
7705
7715
|
}, {
|
|
@@ -7710,7 +7720,7 @@ const st = "excluded", dt = "over", Ft = "skip", Kt = "stop", ut = "under", ki =
|
|
|
7710
7720
|
]),
|
|
7711
7721
|
_: 3
|
|
7712
7722
|
}, 8, ["for", "disabled", "required"])) : O("", !0),
|
|
7713
|
-
M(
|
|
7723
|
+
M(Bi, G({
|
|
7714
7724
|
ref_key: "timePicker",
|
|
7715
7725
|
ref: u,
|
|
7716
7726
|
disabled: e.disabled,
|
|
@@ -7721,14 +7731,14 @@ const st = "excluded", dt = "over", Ft = "skip", Kt = "stop", ut = "under", ki =
|
|
|
7721
7731
|
"helper-description": e.helperDescription,
|
|
7722
7732
|
"helper-text": e.helperText,
|
|
7723
7733
|
"hint-id": c(i),
|
|
7724
|
-
"input-id": g.$attrs.id ||
|
|
7734
|
+
"input-id": g.$attrs.id || r.value,
|
|
7725
7735
|
"max-time": e.maxTime,
|
|
7726
7736
|
"min-time": e.minTime,
|
|
7727
7737
|
"model-value": e.modelValue,
|
|
7728
7738
|
placeholder: e.placeholder,
|
|
7729
7739
|
required: e.required,
|
|
7730
7740
|
step: e.step,
|
|
7731
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
7741
|
+
"onUpdate:modelValue": w[0] || (w[0] = (B) => g.$emit("update:modelValue", B))
|
|
7732
7742
|
}, c(ae)(g.$attrs, c(xe)).filtered), null, 16, ["disabled", "disabled-times", "dropdown-position", "dropdown-width", "error", "helper-description", "helper-text", "hint-id", "input-id", "max-time", "min-time", "model-value", "placeholder", "required", "step"]),
|
|
7733
7743
|
Se(M(Te, {
|
|
7734
7744
|
error: d.value,
|
|
@@ -7798,7 +7808,7 @@ const st = "excluded", dt = "over", Ft = "skip", Kt = "stop", ut = "under", ki =
|
|
|
7798
7808
|
o();
|
|
7799
7809
|
}, t.duration)), n("after-enter");
|
|
7800
7810
|
}
|
|
7801
|
-
return (
|
|
7811
|
+
return (r, h) => (s(), P(Fe, {
|
|
7802
7812
|
name: "bs-toast",
|
|
7803
7813
|
shown: c(l),
|
|
7804
7814
|
preloaded: e.preloaded,
|
|
@@ -7813,8 +7823,8 @@ const st = "excluded", dt = "over", Ft = "skip", Kt = "stop", ut = "under", ki =
|
|
|
7813
7823
|
"data-shown": c(l),
|
|
7814
7824
|
"data-stacked": c(u) || void 0,
|
|
7815
7825
|
role: "alert"
|
|
7816
|
-
},
|
|
7817
|
-
L(
|
|
7826
|
+
}, r.$attrs), [
|
|
7827
|
+
L(r.$slots, "default")
|
|
7818
7828
|
], 16, Ii)
|
|
7819
7829
|
]),
|
|
7820
7830
|
_: 3
|
|
@@ -7829,7 +7839,7 @@ const st = "excluded", dt = "over", Ft = "skip", Kt = "stop", ut = "under", ki =
|
|
|
7829
7839
|
var n, l;
|
|
7830
7840
|
return ((l = (n = mt()).default) == null ? void 0 : l.call(n).length) > 2 || void 0;
|
|
7831
7841
|
}
|
|
7832
|
-
return (n, l) => (
|
|
7842
|
+
return (n, l) => (s(), p("div", {
|
|
7833
7843
|
class: "bs-toast-actions",
|
|
7834
7844
|
"data-component": "bs-toast-actions",
|
|
7835
7845
|
"data-stacked": t()
|
|
@@ -7853,7 +7863,7 @@ const st = "excluded", dt = "over", Ft = "skip", Kt = "stop", ut = "under", ki =
|
|
|
7853
7863
|
"data-component": "bs-toast-body"
|
|
7854
7864
|
};
|
|
7855
7865
|
function Ai(e, a) {
|
|
7856
|
-
return
|
|
7866
|
+
return s(), p("div", Ti, [
|
|
7857
7867
|
L(e.$slots, "default")
|
|
7858
7868
|
]);
|
|
7859
7869
|
}
|
|
@@ -7863,7 +7873,7 @@ const Or = /* @__PURE__ */ It(xi, [["render", Ai]]), Oi = {
|
|
|
7863
7873
|
}, zr = {
|
|
7864
7874
|
__name: "BsToaster",
|
|
7865
7875
|
setup(e) {
|
|
7866
|
-
return ve("stacked", !0), (a, t) => (
|
|
7876
|
+
return ve("stacked", !0), (a, t) => (s(), p("div", Oi, [
|
|
7867
7877
|
L(a.$slots, "default")
|
|
7868
7878
|
]));
|
|
7869
7879
|
}
|
|
@@ -7882,12 +7892,12 @@ const Or = /* @__PURE__ */ It(xi, [["render", Ai]]), Oi = {
|
|
|
7882
7892
|
return gt;
|
|
7883
7893
|
}
|
|
7884
7894
|
});
|
|
7885
|
-
return (n, l) => (
|
|
7895
|
+
return (n, l) => (s(), p("div", {
|
|
7886
7896
|
class: "bs-toast-header",
|
|
7887
7897
|
"data-component": "bs-toast-header",
|
|
7888
7898
|
"data-variant": c(a)
|
|
7889
7899
|
}, [
|
|
7890
|
-
(
|
|
7900
|
+
(s(), P(ie(t.value), { class: "bs-toast-header-icon" })),
|
|
7891
7901
|
y("h5", null, [
|
|
7892
7902
|
L(n.$slots, "default")
|
|
7893
7903
|
])
|
|
@@ -7933,7 +7943,7 @@ const Or = /* @__PURE__ */ It(xi, [["render", Ai]]), Oi = {
|
|
|
7933
7943
|
function u() {
|
|
7934
7944
|
t.value = !1, n.value = !1;
|
|
7935
7945
|
}
|
|
7936
|
-
return (o, d) => (
|
|
7946
|
+
return (o, d) => (s(), p("div", {
|
|
7937
7947
|
class: "bs-tooltip",
|
|
7938
7948
|
"data-position": e.position,
|
|
7939
7949
|
"data-component": "bs-tooltip",
|
|
@@ -7998,7 +8008,7 @@ const Or = /* @__PURE__ */ It(xi, [["render", Ai]]), Oi = {
|
|
|
7998
8008
|
iconCache: u,
|
|
7999
8009
|
initializeSections: o,
|
|
8000
8010
|
isActivePath: d,
|
|
8001
|
-
isExpanded:
|
|
8011
|
+
isExpanded: r,
|
|
8002
8012
|
mainNavItems: h
|
|
8003
8013
|
} = la(a), b = A(null), f = A(!1), g = v(() => !a.width && a.variant === "narrow");
|
|
8004
8014
|
qe(() => {
|
|
@@ -8007,17 +8017,17 @@ const Or = /* @__PURE__ */ It(xi, [["render", Ai]]), Oi = {
|
|
|
8007
8017
|
f.value = !0, a.width && b.value.style.setProperty("--width", a.width);
|
|
8008
8018
|
}), Y(() => a.navData, () => {
|
|
8009
8019
|
o(!1);
|
|
8010
|
-
}), Y(() => a.width, (
|
|
8011
|
-
|
|
8012
|
-
}), Y(() => a.mobileOpen, (
|
|
8013
|
-
|
|
8020
|
+
}), Y(() => a.width, (B) => {
|
|
8021
|
+
B ? b.value.style.setProperty("--width", B) : b.value.style.removeProperty("--width");
|
|
8022
|
+
}), Y(() => a.mobileOpen, (B) => {
|
|
8023
|
+
B ? document.body.style.overflow = "hidden" : document.body.style.overflow = "";
|
|
8014
8024
|
});
|
|
8015
|
-
function w(
|
|
8016
|
-
t.value[
|
|
8025
|
+
function w(B) {
|
|
8026
|
+
t.value[B] = !t.value[B];
|
|
8017
8027
|
}
|
|
8018
|
-
return (
|
|
8028
|
+
return (B, m) => {
|
|
8019
8029
|
const I = Wt("router-link");
|
|
8020
|
-
return e.navData ? (
|
|
8030
|
+
return e.navData ? (s(), p("nav", {
|
|
8021
8031
|
key: 0,
|
|
8022
8032
|
class: "bs-vertical-nav",
|
|
8023
8033
|
ref_key: "verticalNav",
|
|
@@ -8027,18 +8037,18 @@ const Or = /* @__PURE__ */ It(xi, [["render", Ai]]), Oi = {
|
|
|
8027
8037
|
"data-y-expand": e.expandY
|
|
8028
8038
|
}, [
|
|
8029
8039
|
y("ul", null, [
|
|
8030
|
-
(
|
|
8040
|
+
(s(!0), p(J, null, le(c(h), (x) => (s(), p(J, {
|
|
8031
8041
|
key: x.id
|
|
8032
8042
|
}, [
|
|
8033
|
-
x.resource.url === "section" ? (
|
|
8043
|
+
x.resource.url === "section" ? (s(), p("li", {
|
|
8034
8044
|
key: 0,
|
|
8035
8045
|
class: "bs-vertical-nav-section",
|
|
8036
|
-
"data-collapsed": !c(
|
|
8046
|
+
"data-collapsed": !c(r)(x)
|
|
8037
8047
|
}, [
|
|
8038
|
-
g.value ? O("", !0) : (
|
|
8048
|
+
g.value ? O("", !0) : (s(), p("button", {
|
|
8039
8049
|
key: 0,
|
|
8040
8050
|
class: "bs-vertical-nav-section-toggle",
|
|
8041
|
-
"aria-expanded": c(
|
|
8051
|
+
"aria-expanded": c(r)(x),
|
|
8042
8052
|
"aria-controls": `${x.id}-nested-section`,
|
|
8043
8053
|
title: c(l)(x),
|
|
8044
8054
|
type: "button",
|
|
@@ -8047,11 +8057,11 @@ const Or = /* @__PURE__ */ It(xi, [["render", Ai]]), Oi = {
|
|
|
8047
8057
|
y("span", null, E(x.text), 1),
|
|
8048
8058
|
M(c(La), { class: "bs-vertical-nav-section-toggle-caret" })
|
|
8049
8059
|
], 8, Pi)),
|
|
8050
|
-
c(
|
|
8060
|
+
c(r)(x) ? (s(), p("ul", {
|
|
8051
8061
|
key: 1,
|
|
8052
8062
|
id: `${x.id}-nested-section`
|
|
8053
8063
|
}, [
|
|
8054
|
-
(
|
|
8064
|
+
(s(!0), p(J, null, le(x.navItems, (q) => (s(), p("li", {
|
|
8055
8065
|
key: q.id
|
|
8056
8066
|
}, [
|
|
8057
8067
|
M(I, {
|
|
@@ -8059,7 +8069,7 @@ const Or = /* @__PURE__ */ It(xi, [["render", Ai]]), Oi = {
|
|
|
8059
8069
|
"data-active": c(d)(q.resource.url)
|
|
8060
8070
|
}, {
|
|
8061
8071
|
default: R(() => [
|
|
8062
|
-
f.value && c(u)[q.icon] ? (
|
|
8072
|
+
f.value && c(u)[q.icon] ? (s(), P(ie(c(u)[q.icon]), {
|
|
8063
8073
|
key: 0,
|
|
8064
8074
|
class: "bs-vertical-nav-link-icon"
|
|
8065
8075
|
})) : O("", !0),
|
|
@@ -8069,13 +8079,13 @@ const Or = /* @__PURE__ */ It(xi, [["render", Ai]]), Oi = {
|
|
|
8069
8079
|
}, 1032, ["to", "data-active"])
|
|
8070
8080
|
]))), 128))
|
|
8071
8081
|
], 8, Mi)) : O("", !0)
|
|
8072
|
-
], 8, Di)) : (
|
|
8082
|
+
], 8, Di)) : (s(), p("li", qi, [
|
|
8073
8083
|
M(I, {
|
|
8074
8084
|
to: x.resource.url,
|
|
8075
8085
|
"data-active": c(d)(x.resource.url)
|
|
8076
8086
|
}, {
|
|
8077
8087
|
default: R(() => [
|
|
8078
|
-
f.value && c(u)[x.icon] ? (
|
|
8088
|
+
f.value && c(u)[x.icon] ? (s(), P(ie(c(u)[x.icon]), {
|
|
8079
8089
|
key: 0,
|
|
8080
8090
|
class: "bs-vertical-nav-link-icon"
|
|
8081
8091
|
})) : O("", !0),
|
|
@@ -8086,9 +8096,9 @@ const Or = /* @__PURE__ */ It(xi, [["render", Ai]]), Oi = {
|
|
|
8086
8096
|
]))
|
|
8087
8097
|
], 64))), 128))
|
|
8088
8098
|
]),
|
|
8089
|
-
c(i) ? (
|
|
8099
|
+
c(i) ? (s(), p("div", Ni, [
|
|
8090
8100
|
y("ul", null, [
|
|
8091
|
-
(
|
|
8101
|
+
(s(!0), p(J, null, le(c(n), (x) => (s(), p("li", {
|
|
8092
8102
|
key: x.id
|
|
8093
8103
|
}, [
|
|
8094
8104
|
y("a", {
|
|
@@ -8102,8 +8112,8 @@ const Or = /* @__PURE__ */ It(xi, [["render", Ai]]), Oi = {
|
|
|
8102
8112
|
]))), 128))
|
|
8103
8113
|
])
|
|
8104
8114
|
])) : O("", !0),
|
|
8105
|
-
|
|
8106
|
-
L(
|
|
8115
|
+
B.$slots["additional-nav-option"] ? (s(), p("div", Fi, [
|
|
8116
|
+
L(B.$slots, "additional-nav-option")
|
|
8107
8117
|
])) : O("", !0)
|
|
8108
8118
|
], 8, Vi)) : O("", !0);
|
|
8109
8119
|
};
|
|
@@ -8125,7 +8135,7 @@ export {
|
|
|
8125
8135
|
aa as BsDropdownCombobox,
|
|
8126
8136
|
ar as BsDropdownComboboxField,
|
|
8127
8137
|
ea as BsDropdownMultiselect,
|
|
8128
|
-
|
|
8138
|
+
Bt as BsDropdownOption,
|
|
8129
8139
|
Ue as BsDropdownOptionBuilder,
|
|
8130
8140
|
Je as BsDropdownOptionList,
|
|
8131
8141
|
na as BsDropdownWithOptions,
|
|
@@ -8160,8 +8170,8 @@ export {
|
|
|
8160
8170
|
Pt as BsSpinner,
|
|
8161
8171
|
wr as BsSwitch,
|
|
8162
8172
|
Sr as BsTab,
|
|
8163
|
-
|
|
8164
|
-
|
|
8173
|
+
kr as BsTabList,
|
|
8174
|
+
Br as BsTabPanel,
|
|
8165
8175
|
$r as BsTable,
|
|
8166
8176
|
qt as BsTableCell,
|
|
8167
8177
|
nt as BsTableCol,
|
|
@@ -8173,7 +8183,7 @@ export {
|
|
|
8173
8183
|
Nt as BsTableSortToggle,
|
|
8174
8184
|
mi as BsTextarea,
|
|
8175
8185
|
Ir as BsTextareaField,
|
|
8176
|
-
|
|
8186
|
+
Bi as BsTimePicker,
|
|
8177
8187
|
xr as BsTimePickerField,
|
|
8178
8188
|
Cr as BsTimeline,
|
|
8179
8189
|
Tr as BsToast,
|