@wwtdev/bsds-components-vue3 2.9.3 → 2.9.4
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 +538 -532
- package/package.json +1 -1
package/lib/bsds-components.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { computed as p, ref as I, onMounted as
|
|
1
|
+
import { computed as p, ref as I, onMounted as H, onUnmounted as Be, shallowRef as Pt, watch as j, defineAsyncComponent as Qe, openBlock as u, createElementBlock as v, unref as c, createElementVNode as k, renderSlot as D, createBlock as O, resolveDynamicComponent as te, createCommentVNode as x, toDisplayString as V, createVNode as L, normalizeClass as ie, useAttrs as ve, mergeProps as z, withCtx as E, Fragment as G, toHandlers as Ke, onBeforeUnmount as Je, onBeforeMount as gt, nextTick as Ae, createTextVNode as W, createSlots as Ye, useSlots as yt, renderList as ee, Teleport as qt, withDirectives as de, Transition as st, vShow as ue, provide as ce, inject as fe, withModifiers as Mt, isRef as Nt } from "vue";
|
|
2
2
|
import { v4 as St } from "uuid";
|
|
3
|
-
import { BsIconCaretDown as _e, BsIconWarning as Ze, BsIconClose as
|
|
3
|
+
import { BsIconCaretDown as _e, BsIconWarning as Ze, BsIconClose as $e, BsIconCalendar as wt, BsIconCaretRight as Bt, BsIconCaretLeft as $t, BsIconSmallCaretRight as zt, BsIconSmallCaretLeft as Rt, BsIconCaretSort as Ft, BsIconSearch as jt, BsIconCaretLeftDouble as Ut, BsIconCaretRightDouble as Wt, BsIconActionEllipsis as Gt, BsIconGraphPieEmpty as dt, BsIconCircleStop as Ht, BsIconCircleCheck as Kt, BsIconCircleX as Yt, BsIconCircleEllipsis as Zt, BsIconCirclePlay as Xt, BsIconCirclePause as Qt, BsIconCircleExclamation as It, BsIconThumbsUpStroke as Jt } from "@wwtdev/bsds-icons-vue3";
|
|
4
4
|
import { DatePicker as _t } from "v-calendar";
|
|
5
5
|
import { Filler as ea, Chart as Fe, BarController as ta, BarElement as aa, CategoryScale as na, LinearScale as la, Legend as oa, TimeScale as ia, Tooltip as ra } from "chart.js";
|
|
6
6
|
import "chartjs-adapter-date-fns";
|
|
@@ -15,13 +15,13 @@ const ct = {
|
|
|
15
15
|
};
|
|
16
16
|
function Ne(e, a, t = "button") {
|
|
17
17
|
const l = ua(e, a, t), n = p(() => {
|
|
18
|
-
const
|
|
19
|
-
return
|
|
20
|
-
}),
|
|
21
|
-
const
|
|
22
|
-
return delete
|
|
18
|
+
const o = l.value === "button", d = {};
|
|
19
|
+
return o ? (d.type = a.type || "button", d.autocomplete = "off", e.disabled && (d.disabled = !0)) : e.disabled && (d["aria-disabled"] = "true", d.tabindex = "-1"), d;
|
|
20
|
+
}), i = p(() => {
|
|
21
|
+
const o = { ...a, ...n.value };
|
|
22
|
+
return delete o.href, o;
|
|
23
23
|
}), s = p(() => e.linkTo || e.href);
|
|
24
|
-
return { rootTag: l, attrsToBind:
|
|
24
|
+
return { rootTag: l, attrsToBind: i, hrefUrl: s };
|
|
25
25
|
}
|
|
26
26
|
function ua(e, a, t) {
|
|
27
27
|
const l = Object.keys(ct).find((n) => ca(e, a, n));
|
|
@@ -33,32 +33,32 @@ function ca(e, a, t) {
|
|
|
33
33
|
const kt = (e, a) => {
|
|
34
34
|
const t = (l) => {
|
|
35
35
|
e.some((n) => {
|
|
36
|
-
var
|
|
37
|
-
return (
|
|
36
|
+
var i;
|
|
37
|
+
return (i = n.value) == null ? void 0 : i.contains(l.target);
|
|
38
38
|
}) || a(l);
|
|
39
39
|
};
|
|
40
|
-
|
|
40
|
+
H(() => {
|
|
41
41
|
document.addEventListener("mouseup", t);
|
|
42
|
-
}),
|
|
42
|
+
}), Be(() => {
|
|
43
43
|
document.removeEventListener("mouseup", t);
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
function ze(e) {
|
|
47
47
|
const a = p(() => e.linkTo || e.href || ""), t = p(() => {
|
|
48
|
-
var
|
|
49
|
-
return ((s = (
|
|
48
|
+
var i, s;
|
|
49
|
+
return ((s = (i = a.value) == null ? void 0 : i.startsWith) == null ? void 0 : s.call(i, "/")) || !1;
|
|
50
50
|
}), l = p(() => {
|
|
51
|
-
var
|
|
52
|
-
return t.value && ((
|
|
51
|
+
var i, s;
|
|
52
|
+
return t.value && ((i = e.router) == null ? void 0 : i.navigateTo) || ((s = e.router) == null ? void 0 : s.push) || null;
|
|
53
53
|
});
|
|
54
|
-
function n(
|
|
54
|
+
function n(i) {
|
|
55
55
|
if (e.disabled) {
|
|
56
|
-
|
|
56
|
+
i.preventDefault(), i.stopImmediatePropagation();
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
59
|
if (!a.value || !l.value)
|
|
60
60
|
return;
|
|
61
|
-
|
|
61
|
+
i.target.closest("a").href === `${window.location.origin}${a.value}` && (i.preventDefault(), l.value(a.value));
|
|
62
62
|
}
|
|
63
63
|
return { onLinkClick: n };
|
|
64
64
|
}
|
|
@@ -66,17 +66,17 @@ function ft(e) {
|
|
|
66
66
|
return e.split("-").map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("");
|
|
67
67
|
}
|
|
68
68
|
const Pe = (e, a) => {
|
|
69
|
-
var
|
|
69
|
+
var i;
|
|
70
70
|
function t(s) {
|
|
71
71
|
if (!s)
|
|
72
72
|
return null;
|
|
73
|
-
const
|
|
73
|
+
const o = s.startsWith("bs-") ? ft(s) : `BsIcon${ft(s)}`;
|
|
74
74
|
return Qe(async () => {
|
|
75
|
-
const { [
|
|
75
|
+
const { [o]: d } = await import("@wwtdev/bsds-icons-vue3");
|
|
76
76
|
return d;
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
const l = Pt(), n = e[a] || ((
|
|
79
|
+
const l = Pt(), n = e[a] || ((i = e == null ? void 0 : e.value) == null ? void 0 : i[a]);
|
|
80
80
|
return l.value = t(n), j(
|
|
81
81
|
[
|
|
82
82
|
() => e[a],
|
|
@@ -85,40 +85,40 @@ const Pe = (e, a) => {
|
|
|
85
85
|
return (s = e == null ? void 0 : e.value) == null ? void 0 : s[a];
|
|
86
86
|
}
|
|
87
87
|
],
|
|
88
|
-
async ([s,
|
|
88
|
+
async ([s, o]) => l.value = t(s || o)
|
|
89
89
|
), { icon: l };
|
|
90
90
|
};
|
|
91
91
|
function X(e = 1) {
|
|
92
92
|
const a = [];
|
|
93
93
|
for (let t = 0; t < e; t++)
|
|
94
94
|
a.push(I(""));
|
|
95
|
-
return
|
|
95
|
+
return H(() => {
|
|
96
96
|
a.forEach((t) => t.value = `id-${St()}`);
|
|
97
97
|
}), a;
|
|
98
98
|
}
|
|
99
99
|
const pe = (e, a, t = void 0) => {
|
|
100
100
|
const l = (n) => {
|
|
101
|
-
var
|
|
102
|
-
((
|
|
101
|
+
var i, s;
|
|
102
|
+
((i = e == null ? void 0 : e.includes) != null && i.call(e, n.key) || (s = e == null ? void 0 : e.some) != null && s.call(e, (o) => {
|
|
103
103
|
var d;
|
|
104
|
-
return (d =
|
|
104
|
+
return (d = o == null ? void 0 : o.test) == null ? void 0 : d.call(o, n.key);
|
|
105
105
|
})) && a(n);
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
H(() => {
|
|
108
108
|
((t == null ? void 0 : t.value) ?? document).addEventListener("keydown", l);
|
|
109
|
-
}),
|
|
109
|
+
}), Be(() => {
|
|
110
110
|
((t == null ? void 0 : t.value) ?? document).removeEventListener("keydown", l);
|
|
111
111
|
});
|
|
112
112
|
}, fa = (e, a, t) => {
|
|
113
113
|
let l = null;
|
|
114
|
-
|
|
114
|
+
H(() => {
|
|
115
115
|
l = new MutationObserver(a), l.observe(e.value, t);
|
|
116
|
-
}),
|
|
116
|
+
}), Be(() => {
|
|
117
117
|
l.disconnect();
|
|
118
118
|
});
|
|
119
119
|
}, Ee = (e) => {
|
|
120
120
|
const a = I(!1);
|
|
121
|
-
return
|
|
121
|
+
return H(() => {
|
|
122
122
|
e.enterControlled ? a.value = e.enterTrigger : a.value = e.shown;
|
|
123
123
|
}), j(() => e.shown, (t) => {
|
|
124
124
|
a.value = t;
|
|
@@ -148,12 +148,12 @@ const pe = (e, a, t = void 0) => {
|
|
|
148
148
|
},
|
|
149
149
|
emits: ["toggled"],
|
|
150
150
|
setup(e, { emit: a }) {
|
|
151
|
-
const t = e, l = a, n = I(null),
|
|
151
|
+
const t = e, l = a, n = I(null), i = I(!1), { icon: s } = Pe(t, "icon"), [o] = X(), d = p(() => o.value + "-content"), r = p(() => o.value + "-title"), f = p(() => t.openItemId && t.openItemId === o.value || t.openItem === !0), m = p(() => t.controlled ? f.value : i.value);
|
|
152
152
|
function b() {
|
|
153
|
-
l("toggled",
|
|
153
|
+
l("toggled", o.value), t.controlled || (i.value = !i.value);
|
|
154
154
|
}
|
|
155
155
|
return (S, w) => (u(), v("div", {
|
|
156
|
-
id: c(
|
|
156
|
+
id: c(o),
|
|
157
157
|
ref_key: "containerRef",
|
|
158
158
|
ref: n,
|
|
159
159
|
class: "bs-accordion",
|
|
@@ -245,13 +245,13 @@ const pe = (e, a, t = void 0) => {
|
|
|
245
245
|
setup(e) {
|
|
246
246
|
const a = e, t = I(null), l = p(() => a.count === 0 ? "0" : !a.count || a.dot ? null : a.count > a.countMax ? a.countMax + "+" : a.count.toString()), n = p(() => {
|
|
247
247
|
var d, r;
|
|
248
|
-
const
|
|
248
|
+
const i = ((r = (d = t.value) == null ? void 0 : d.textContent) == null ? void 0 : r.trim()) || "", s = l.value ? l.value + " " : "";
|
|
249
249
|
if (!s && !a.dot)
|
|
250
|
-
return
|
|
251
|
-
const
|
|
252
|
-
return `${
|
|
250
|
+
return i;
|
|
251
|
+
const o = a.count !== 1 ? "s" : "";
|
|
252
|
+
return `${i ? `${i}, ` : ""}${s}${a.label}${o}`;
|
|
253
253
|
});
|
|
254
|
-
return (
|
|
254
|
+
return (i, s) => (u(), v("span", {
|
|
255
255
|
ref_key: "hostRef",
|
|
256
256
|
ref: t,
|
|
257
257
|
"aria-label": n.value,
|
|
@@ -264,14 +264,14 @@ const pe = (e, a, t = void 0) => {
|
|
|
264
264
|
"data-variant": e.variant,
|
|
265
265
|
role: "status"
|
|
266
266
|
}, [
|
|
267
|
-
e.variant !== "notext" ? D(
|
|
267
|
+
e.variant !== "notext" ? D(i.$slots, "default", { key: 0 }) : x("", !0)
|
|
268
268
|
], 10, ya));
|
|
269
269
|
}
|
|
270
270
|
}, wa = {
|
|
271
271
|
key: 0,
|
|
272
272
|
role: "alert",
|
|
273
273
|
class: "bs-banner"
|
|
274
|
-
},
|
|
274
|
+
}, Ba = { class: "bs-banner-content" }, $a = { class: "bs-banner-warning-icon" }, Po = {
|
|
275
275
|
__name: "BsBanner",
|
|
276
276
|
emits: ["dismiss"],
|
|
277
277
|
setup(e, { emit: a }) {
|
|
@@ -279,20 +279,20 @@ const pe = (e, a, t = void 0) => {
|
|
|
279
279
|
function n() {
|
|
280
280
|
l.value = !0, t("dismiss");
|
|
281
281
|
}
|
|
282
|
-
return (
|
|
283
|
-
k("div",
|
|
284
|
-
k("div",
|
|
282
|
+
return (i, s) => l.value ? x("", !0) : (u(), v("div", wa, [
|
|
283
|
+
k("div", Ba, [
|
|
284
|
+
k("div", $a, [
|
|
285
285
|
L(c(Ze), { size: "lg" })
|
|
286
286
|
]),
|
|
287
287
|
k("p", null, [
|
|
288
|
-
D(
|
|
288
|
+
D(i.$slots, "default")
|
|
289
289
|
]),
|
|
290
290
|
k("button", {
|
|
291
291
|
type: "button",
|
|
292
292
|
title: "Close Banner",
|
|
293
293
|
onClick: n
|
|
294
294
|
}, [
|
|
295
|
-
L(c(
|
|
295
|
+
L(c($e))
|
|
296
296
|
])
|
|
297
297
|
])
|
|
298
298
|
]));
|
|
@@ -328,18 +328,18 @@ const pe = (e, a, t = void 0) => {
|
|
|
328
328
|
href: { type: String }
|
|
329
329
|
},
|
|
330
330
|
setup(e) {
|
|
331
|
-
const a = e, t = ve(), { rootTag: l, attrsToBind: n, hrefUrl:
|
|
332
|
-
return (
|
|
331
|
+
const a = e, t = ve(), { rootTag: l, attrsToBind: n, hrefUrl: i } = Ne(a, t), { onLinkClick: s } = ze(a);
|
|
332
|
+
return (o, d) => (u(), O(te(c(l)), z({
|
|
333
333
|
class: "bs-button",
|
|
334
334
|
"data-component": "bs-button",
|
|
335
335
|
"data-ghost": e.ghostBtn,
|
|
336
336
|
"data-size": e.size,
|
|
337
337
|
"data-text": e.textBtn,
|
|
338
338
|
"data-variant": e.variant,
|
|
339
|
-
".href": c(
|
|
339
|
+
".href": c(i)
|
|
340
340
|
}, c(n), { onClick: c(s) }), {
|
|
341
341
|
default: E(() => [
|
|
342
|
-
D(
|
|
342
|
+
D(o.$slots, "default")
|
|
343
343
|
]),
|
|
344
344
|
_: 3
|
|
345
345
|
}, 48, ["data-ghost", "data-size", "data-text", "data-variant", ".href", "onClick"]));
|
|
@@ -425,19 +425,19 @@ const pe = (e, a, t = void 0) => {
|
|
|
425
425
|
},
|
|
426
426
|
emits: ["update:modelValue"],
|
|
427
427
|
setup(e, { emit: a }) {
|
|
428
|
-
const t = e, l = a, n = ve(),
|
|
429
|
-
function s(
|
|
430
|
-
const d = n.type === "number" ? parseInt(
|
|
428
|
+
const t = e, l = a, n = ve(), i = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
429
|
+
function s(o) {
|
|
430
|
+
const d = n.type === "number" ? parseInt(o.target.value) : o.target.value;
|
|
431
431
|
l("update:modelValue", d);
|
|
432
432
|
}
|
|
433
|
-
return (
|
|
433
|
+
return (o, d) => (u(), v("input", z({
|
|
434
434
|
class: "bs-input",
|
|
435
435
|
"data-component": "bs-input",
|
|
436
436
|
"data-error": e.error,
|
|
437
|
-
id:
|
|
437
|
+
id: o.$attrs.id || e.inputId,
|
|
438
438
|
value: e.value || e.modelValue,
|
|
439
439
|
onInput: s
|
|
440
|
-
},
|
|
440
|
+
}, i.value), null, 16, Oa));
|
|
441
441
|
}
|
|
442
442
|
}, Ea = ["data-autopad", "data-autosize-icons", "data-disabled", "data-error", "data-variant", "data-multifocus"], Le = {
|
|
443
443
|
__name: "BsInputAddon",
|
|
@@ -518,9 +518,9 @@ const pe = (e, a, t = void 0) => {
|
|
|
518
518
|
function Ve(e, a, t) {
|
|
519
519
|
let l;
|
|
520
520
|
return function() {
|
|
521
|
-
let n = this,
|
|
522
|
-
clearTimeout(l), t && !l && e.apply(n,
|
|
523
|
-
l = null, t || e.apply(n,
|
|
521
|
+
let n = this, i = arguments;
|
|
522
|
+
clearTimeout(l), t && !l && e.apply(n, i), l = setTimeout(function() {
|
|
523
|
+
l = null, t || e.apply(n, i);
|
|
524
524
|
}, a);
|
|
525
525
|
};
|
|
526
526
|
}
|
|
@@ -562,17 +562,17 @@ const Da = ["disabled", "id", "model-value"], Pa = ["disabled", "id", "model-val
|
|
|
562
562
|
emits: ["ui-focusin", "ui-input"],
|
|
563
563
|
setup(e, { emit: a }) {
|
|
564
564
|
const t = a, l = I(null), n = I(null);
|
|
565
|
-
function
|
|
565
|
+
function i(r) {
|
|
566
566
|
const f = new Event("change", { bubbles: !0, cancelable: !0 });
|
|
567
567
|
r.dispatchEvent(f);
|
|
568
568
|
}
|
|
569
569
|
function s(r) {
|
|
570
570
|
const { value: f } = r.target, [m, b] = f.split(/ to | - /);
|
|
571
|
-
l.value.value = m || "", n.value.value = b || "",
|
|
571
|
+
l.value.value = m || "", n.value.value = b || "", i(l.value), i(n.value);
|
|
572
572
|
}
|
|
573
|
-
const
|
|
573
|
+
const o = Ve(s, 1e3);
|
|
574
574
|
function d(r) {
|
|
575
|
-
t("ui-input"),
|
|
575
|
+
t("ui-input"), o(r);
|
|
576
576
|
}
|
|
577
577
|
return (r, f) => (u(), O(Le, {
|
|
578
578
|
disabled: e.disabled,
|
|
@@ -614,8 +614,8 @@ const Da = ["disabled", "id", "model-value"], Pa = ["disabled", "id", "model-val
|
|
|
614
614
|
};
|
|
615
615
|
function Ma(e) {
|
|
616
616
|
function a(n) {
|
|
617
|
-
var
|
|
618
|
-
return ((s = (
|
|
617
|
+
var i, s;
|
|
618
|
+
return ((s = (i = n == null ? void 0 : n.classList) == null ? void 0 : i.contains) == null ? void 0 : s.call(i, "vc-arrow")) && (n.classList.contains("vc-prev") || n.classList.contains("vc-next"));
|
|
619
619
|
}
|
|
620
620
|
function t(n) {
|
|
621
621
|
return n === " " || n === "Spacebar" || n === "Enter";
|
|
@@ -623,12 +623,12 @@ function Ma(e) {
|
|
|
623
623
|
function l(n) {
|
|
624
624
|
a(n == null ? void 0 : n.target) && t(n == null ? void 0 : n.key) && n.preventDefault();
|
|
625
625
|
}
|
|
626
|
-
|
|
627
|
-
var n,
|
|
628
|
-
(
|
|
626
|
+
H(() => {
|
|
627
|
+
var n, i;
|
|
628
|
+
(i = (n = e.value) == null ? void 0 : n.addEventListener) == null || i.call(n, "keydown", l);
|
|
629
629
|
}), Je(() => {
|
|
630
|
-
var n,
|
|
631
|
-
(
|
|
630
|
+
var n, i;
|
|
631
|
+
(i = (n = e.value) == null ? void 0 : n.removeEventListener) == null || i.call(n, "keydown", l);
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
634
|
function Xe(e, a, t = []) {
|
|
@@ -698,7 +698,7 @@ const et = [
|
|
|
698
698
|
"size",
|
|
699
699
|
"step"
|
|
700
700
|
];
|
|
701
|
-
function
|
|
701
|
+
function Y(e, a = []) {
|
|
702
702
|
const t = {}, l = {};
|
|
703
703
|
return Object.keys(e).forEach((n) => {
|
|
704
704
|
a.includes(n) ? t[n] = e[n] : l[n] = e[n];
|
|
@@ -771,7 +771,7 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", qo = /* @__PURE__ */ Objec
|
|
|
771
771
|
},
|
|
772
772
|
emits: ["update:modelValue"],
|
|
773
773
|
setup(e, { emit: a }) {
|
|
774
|
-
const t = e, l = I(null), n = I(1),
|
|
774
|
+
const t = e, l = I(null), n = I(1), i = I(null), [s, o] = X(2), d = I(1), { filtered: r, remaining: f } = Y(ve(), [
|
|
775
775
|
"attributes",
|
|
776
776
|
"data-cy",
|
|
777
777
|
"expanded",
|
|
@@ -780,16 +780,16 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", qo = /* @__PURE__ */ Objec
|
|
|
780
780
|
"masks",
|
|
781
781
|
"rows",
|
|
782
782
|
"trim-weeks"
|
|
783
|
-
]), m = p(() => t.inputId || s.value), b = p(() => ({ range: t.isRange })), S = p(() => !!(t.error && t.errorMsg || t.hint)), w = p(() => t.step),
|
|
784
|
-
Ma(
|
|
783
|
+
]), m = p(() => t.inputId || s.value), b = p(() => ({ range: t.isRange })), S = p(() => !!(t.error && t.errorMsg || t.hint)), w = p(() => t.step), $ = p(() => t.variant);
|
|
784
|
+
Ma(i), Xe(
|
|
785
785
|
pt,
|
|
786
|
-
(g) => n.value = g != null && g.matches &&
|
|
787
|
-
[
|
|
786
|
+
(g) => n.value = g != null && g.matches && $.value == "2-col" ? 2 : 1,
|
|
787
|
+
[$]
|
|
788
788
|
), Xe(
|
|
789
789
|
pt,
|
|
790
|
-
(g) => d.value = g != null && g.matches &&
|
|
791
|
-
[w,
|
|
792
|
-
),
|
|
790
|
+
(g) => d.value = g != null && g.matches && $.value == "2-col" ? w.value : 1,
|
|
791
|
+
[w, $]
|
|
792
|
+
), H(() => {
|
|
793
793
|
t.inputMode || y();
|
|
794
794
|
}), j(() => {
|
|
795
795
|
var g, M;
|
|
@@ -800,19 +800,19 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", qo = /* @__PURE__ */ Objec
|
|
|
800
800
|
function h(g) {
|
|
801
801
|
return t.isRange && g.start && g.end ? `${g.start} to ${g.end}` : !t.isRange && g ? g : "";
|
|
802
802
|
}
|
|
803
|
-
function
|
|
804
|
-
!t.isRange ||
|
|
803
|
+
function B(g) {
|
|
804
|
+
!t.isRange || i.value.contains(g.relatedTarget) || l.value.hidePopover();
|
|
805
805
|
}
|
|
806
806
|
function y() {
|
|
807
|
-
const g =
|
|
807
|
+
const g = i.value.querySelector("button.vc-prev"), M = i.value.querySelector("button.vc-next");
|
|
808
808
|
g && g.setAttribute("aria-label", "Previous month"), M && M.setAttribute("aria-label", "Next month");
|
|
809
809
|
}
|
|
810
810
|
return (g, M) => (u(), v("div", z({
|
|
811
811
|
ref_key: "container",
|
|
812
|
-
ref:
|
|
812
|
+
ref: i,
|
|
813
813
|
class: "bs-calendar",
|
|
814
814
|
"data-range": e.isRange,
|
|
815
|
-
onFocusout:
|
|
815
|
+
onFocusout: B
|
|
816
816
|
}, c(f)), [
|
|
817
817
|
e.label || g.$slots.label ? (u(), O(ae, {
|
|
818
818
|
key: 0,
|
|
@@ -876,7 +876,7 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", qo = /* @__PURE__ */ Objec
|
|
|
876
876
|
error: e.error,
|
|
877
877
|
"error-msg": e.errorMsg,
|
|
878
878
|
hint: e.hint,
|
|
879
|
-
"hint-id": c(
|
|
879
|
+
"hint-id": c(o)
|
|
880
880
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
881
881
|
], 16, Ra));
|
|
882
882
|
}
|
|
@@ -931,7 +931,7 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", qo = /* @__PURE__ */ Objec
|
|
|
931
931
|
}
|
|
932
932
|
},
|
|
933
933
|
setup(e) {
|
|
934
|
-
const a = e, t = ve(), l = yt(), { rootTag: n, attrsToBind:
|
|
934
|
+
const a = e, t = ve(), l = yt(), { rootTag: n, attrsToBind: i, hrefUrl: s } = Ne(a, t), { onLinkClick: o } = ze(a), d = p(() => m.value ? {} : a.href ? { title: a.label } : { "aria-label": a.label }), r = p(() => {
|
|
935
935
|
if (a.hoverEffect)
|
|
936
936
|
return a.iconPosition;
|
|
937
937
|
}), f = p(() => {
|
|
@@ -939,8 +939,8 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", qo = /* @__PURE__ */ Objec
|
|
|
939
939
|
return {
|
|
940
940
|
icon: a.icon || (a.textBtn || a.size == "sm" ? `small-${h}` : h)
|
|
941
941
|
};
|
|
942
|
-
}), m = p(() => a.textBtn || !!(l != null && l.default)), b = p(() => m.value && a.iconPosition !== "left"), S = p(() => m.value && a.iconPosition === "left"), w = p(() => a.variant ? `color-${a.variant}` : void 0), { icon:
|
|
943
|
-
return (h,
|
|
942
|
+
}), m = p(() => a.textBtn || !!(l != null && l.default)), b = p(() => m.value && a.iconPosition !== "left"), S = p(() => m.value && a.iconPosition === "left"), w = p(() => a.variant ? `color-${a.variant}` : void 0), { icon: $ } = Pe(f, "icon");
|
|
943
|
+
return (h, B) => (u(), O(te(c(n)), z({
|
|
944
944
|
class: "bs-circle-button",
|
|
945
945
|
"data-disabled": e.disabled,
|
|
946
946
|
"data-direction": r.value,
|
|
@@ -949,7 +949,7 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", qo = /* @__PURE__ */ Objec
|
|
|
949
949
|
"data-text": m.value,
|
|
950
950
|
"data-variant": w.value,
|
|
951
951
|
".href": c(s)
|
|
952
|
-
}, { ...c(
|
|
952
|
+
}, { ...c(i), ...d.value }, { onClick: c(o) }), {
|
|
953
953
|
default: E(() => [
|
|
954
954
|
b.value ? (u(), v("span", Fa, [
|
|
955
955
|
D(h.$slots, "default", {}, () => [
|
|
@@ -958,7 +958,7 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", qo = /* @__PURE__ */ Objec
|
|
|
958
958
|
])) : x("", !0),
|
|
959
959
|
k("span", ja, [
|
|
960
960
|
D(h.$slots, "icon", {}, () => [
|
|
961
|
-
(u(), O(te(c(
|
|
961
|
+
(u(), O(te(c($))))
|
|
962
962
|
])
|
|
963
963
|
]),
|
|
964
964
|
S.value ? (u(), v("span", Ua, [
|
|
@@ -1016,7 +1016,7 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", qo = /* @__PURE__ */ Objec
|
|
|
1016
1016
|
"text-btn": !1
|
|
1017
1017
|
}, {
|
|
1018
1018
|
icon: E(() => [
|
|
1019
|
-
e.direction == "right" ? (u(), O(c(
|
|
1019
|
+
e.direction == "right" ? (u(), O(c(Bt), { key: 0 })) : (u(), O(c($t), { key: 1 }))
|
|
1020
1020
|
]),
|
|
1021
1021
|
_: 1
|
|
1022
1022
|
}, 8, ["disabled", "ghost-btn", "hover-effect", "icon-position", "label", "link-to", "router", "size"]));
|
|
@@ -1127,14 +1127,14 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", qo = /* @__PURE__ */ Objec
|
|
|
1127
1127
|
var f;
|
|
1128
1128
|
return !((f = a.dataIdxLabels) != null && f.length);
|
|
1129
1129
|
});
|
|
1130
|
-
function
|
|
1130
|
+
function i(f) {
|
|
1131
1131
|
try {
|
|
1132
1132
|
return f.map((m) => {
|
|
1133
1133
|
const b = m.label;
|
|
1134
1134
|
let S = [];
|
|
1135
1135
|
if (m.data.some((w) => (w == null ? void 0 : w.x) && (w == null ? void 0 : w.y))) {
|
|
1136
|
-
const w = m.data.reduce((
|
|
1137
|
-
S = a.dataIdxLabels.map((
|
|
1136
|
+
const w = m.data.reduce(($, h) => ($[h.x] = h.y, $), {});
|
|
1137
|
+
S = a.dataIdxLabels.map(($) => ({ value: w[$] ?? null }));
|
|
1138
1138
|
} else
|
|
1139
1139
|
S = m.data.map((w) => ({ value: w }));
|
|
1140
1140
|
return { rowLabel: b, dataCells: S };
|
|
@@ -1145,32 +1145,32 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", qo = /* @__PURE__ */ Objec
|
|
|
1145
1145
|
}
|
|
1146
1146
|
function s(f) {
|
|
1147
1147
|
try {
|
|
1148
|
-
const m = f.reduce((w,
|
|
1149
|
-
const h =
|
|
1148
|
+
const m = f.reduce((w, $) => {
|
|
1149
|
+
const h = $.data.map((B) => B == null ? void 0 : B.x);
|
|
1150
1150
|
return [...w, ...h];
|
|
1151
1151
|
}, []), b = Array.from(new Set(m));
|
|
1152
|
-
return (a.xAxisType === "time" || a.xAxisType === "linear") && b.sort((w,
|
|
1153
|
-
const
|
|
1154
|
-
return f.forEach((
|
|
1155
|
-
const y = { datasetLabel:
|
|
1152
|
+
return (a.xAxisType === "time" || a.xAxisType === "linear") && b.sort((w, $) => (typeof w == "string" && typeof $ == "string" && (w = w.toLowerCase(), $ = $.toLowerCase()), w < $ ? -1 : w > $ ? 1 : 0)), b.map((w) => {
|
|
1153
|
+
const $ = { rowLabel: w }, h = [];
|
|
1154
|
+
return f.forEach((B) => {
|
|
1155
|
+
const y = { datasetLabel: B.label }, g = B.data.find((M) => M.x === w);
|
|
1156
1156
|
y.value = g ? g.y : null, h.push(y);
|
|
1157
|
-
}),
|
|
1157
|
+
}), $.dataCells = h, a.xAxisType === "time" && ($.rowLabelFmt = l(w)), $;
|
|
1158
1158
|
});
|
|
1159
1159
|
} catch {
|
|
1160
1160
|
return [];
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
|
-
const
|
|
1163
|
+
const o = p(() => n.value ? s(a.data) : i(a.data)), d = p(() => ({
|
|
1164
1164
|
colspan: n.value ? a.data.length + 1 : a.dataIdxLabels.length + 1,
|
|
1165
1165
|
title: a.tableTitle,
|
|
1166
1166
|
colHeadingFirst: n.value ? a.xLabel : "Dataset",
|
|
1167
1167
|
colHeadings: n.value ? a.data.map((f) => f.label) : a.dataIdxLabels,
|
|
1168
|
-
rows:
|
|
1168
|
+
rows: o.value
|
|
1169
1169
|
})), r = p(() => {
|
|
1170
1170
|
var f;
|
|
1171
|
-
return t.value && !!((f =
|
|
1171
|
+
return t.value && !!((f = o.value) != null && f.length);
|
|
1172
1172
|
});
|
|
1173
|
-
return
|
|
1173
|
+
return H(() => {
|
|
1174
1174
|
t.value = !0;
|
|
1175
1175
|
}), (f, m) => (u(), v("div", Wa, [
|
|
1176
1176
|
r.value ? (u(), v("table", {
|
|
@@ -1206,9 +1206,9 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", qo = /* @__PURE__ */ Objec
|
|
|
1206
1206
|
}
|
|
1207
1207
|
}, Oe = 16, Xa = 20;
|
|
1208
1208
|
function Qa(e, a) {
|
|
1209
|
-
const t = I(null), l = I(!1), n = I(null),
|
|
1209
|
+
const t = I(null), l = I(!1), n = I(null), i = "(min-width: 1166px)", s = { tickSize: Oe }, o = { tickSize: Xa };
|
|
1210
1210
|
let d, r;
|
|
1211
|
-
function f(h,
|
|
1211
|
+
function f(h, B) {
|
|
1212
1212
|
let y;
|
|
1213
1213
|
switch (h) {
|
|
1214
1214
|
case "bar":
|
|
@@ -1220,19 +1220,19 @@ function Qa(e, a) {
|
|
|
1220
1220
|
default:
|
|
1221
1221
|
throw new Error(`Unsupported chart type: ${h}`);
|
|
1222
1222
|
}
|
|
1223
|
-
return new nn().setCommonConfigs(
|
|
1223
|
+
return new nn().setCommonConfigs(B).setCustomOptions(B)[y](B).setPlugins([Ja(n), ea]).build();
|
|
1224
1224
|
}
|
|
1225
1225
|
function m(h) {
|
|
1226
1226
|
h.preventDefault(), h.stopImmediatePropagation();
|
|
1227
|
-
const
|
|
1228
|
-
if (
|
|
1229
|
-
const { labelIndex: y, datasetIndex: g } =
|
|
1227
|
+
const B = h.target.closest("li");
|
|
1228
|
+
if (B && d) {
|
|
1229
|
+
const { labelIndex: y, datasetIndex: g } = B.dataset;
|
|
1230
1230
|
e === "pie" || e === "doughnut" ? d.toggleDataVisibility(y) : d.setDatasetVisibility(g, !d.isDatasetVisible(g)), d.update(), h.preventDefault(), h.stopImmediatePropagation(), b(g, y);
|
|
1231
1231
|
}
|
|
1232
1232
|
}
|
|
1233
|
-
function b(h,
|
|
1233
|
+
function b(h, B) {
|
|
1234
1234
|
var M;
|
|
1235
|
-
const y = `[data-dataset-index="${h}"][data-label-index="${
|
|
1235
|
+
const y = `[data-dataset-index="${h}"][data-label-index="${B}"]`, g = n.value.querySelector(y);
|
|
1236
1236
|
(M = g == null ? void 0 : g.focus) == null || M.call(g);
|
|
1237
1237
|
}
|
|
1238
1238
|
function S(...h) {
|
|
@@ -1240,19 +1240,19 @@ function Qa(e, a) {
|
|
|
1240
1240
|
}
|
|
1241
1241
|
const w = Ve(function(h) {
|
|
1242
1242
|
r && (r.updateOptions(h), d.options = r.options, d.update());
|
|
1243
|
-
}, 100),
|
|
1243
|
+
}, 100), $ = Ve(function(h) {
|
|
1244
1244
|
r && (r.updateData(h), d.data = r.data, d.update());
|
|
1245
1245
|
}, 100);
|
|
1246
1246
|
return Xe(
|
|
1247
|
-
|
|
1247
|
+
i,
|
|
1248
1248
|
(h) => l.value = h == null ? void 0 : h.matches,
|
|
1249
1249
|
[l]
|
|
1250
|
-
),
|
|
1250
|
+
), H(() => {
|
|
1251
1251
|
var h;
|
|
1252
1252
|
try {
|
|
1253
1253
|
r = f(e, a), (h = n.value) == null || h.addEventListener("click", m);
|
|
1254
|
-
} catch (
|
|
1255
|
-
console.error("Error creating chart config",
|
|
1254
|
+
} catch (B) {
|
|
1255
|
+
console.error("Error creating chart config", B), r = null;
|
|
1256
1256
|
}
|
|
1257
1257
|
}), pe([" ", "Enter"], m, n), Je(() => {
|
|
1258
1258
|
var h;
|
|
@@ -1272,14 +1272,14 @@ function Qa(e, a) {
|
|
|
1272
1272
|
(h) => w(Me(
|
|
1273
1273
|
{},
|
|
1274
1274
|
a,
|
|
1275
|
-
h ?
|
|
1275
|
+
h ? o : s
|
|
1276
1276
|
))
|
|
1277
1277
|
), j(
|
|
1278
1278
|
[
|
|
1279
1279
|
() => a.data,
|
|
1280
1280
|
() => a.dataIdxLabels
|
|
1281
1281
|
],
|
|
1282
|
-
() =>
|
|
1282
|
+
() => $(a),
|
|
1283
1283
|
{ deep: !0 }
|
|
1284
1284
|
), {
|
|
1285
1285
|
canvasRef: t,
|
|
@@ -1293,10 +1293,10 @@ const Ja = (e) => ({
|
|
|
1293
1293
|
e.value.innerHTML = "", e.value.style.setProperty("--cjs-legend-padding-inline", `${a.scales.x.left}px`), a.options.plugins.legend.labels.generateLabels(a).forEach((l) => {
|
|
1294
1294
|
const n = document.createElement("li");
|
|
1295
1295
|
n.setAttribute("tabindex", "0"), n.dataset.datasetIndex = l.datasetIndex, n.dataset.labelIndex = l.index;
|
|
1296
|
-
const
|
|
1297
|
-
|
|
1298
|
-
const s = document.createTextNode(l.text),
|
|
1299
|
-
|
|
1296
|
+
const i = document.createElement("span");
|
|
1297
|
+
i.style.setProperty("--legend-item-box-fill", l.fillStyle), i.style.setProperty("--legend-item-box-stroke", l.strokeStyle);
|
|
1298
|
+
const s = document.createTextNode(l.text), o = document.createElement("p");
|
|
1299
|
+
o.style.setProperty("--legend-item-text-color", "var(--bs-ink-base)"), o.style.setProperty("--legend-item-text-decoration", l.hidden ? "line-through" : "none"), o.appendChild(s), n.appendChild(i), n.appendChild(o), e.value.appendChild(n);
|
|
1300
1300
|
});
|
|
1301
1301
|
}
|
|
1302
1302
|
});
|
|
@@ -1384,9 +1384,9 @@ function nt(e) {
|
|
|
1384
1384
|
showXGrid: t,
|
|
1385
1385
|
showYGrid: l,
|
|
1386
1386
|
stacked: n,
|
|
1387
|
-
xAxisType:
|
|
1387
|
+
xAxisType: i,
|
|
1388
1388
|
xLabel: s,
|
|
1389
|
-
yLabel:
|
|
1389
|
+
yLabel: o,
|
|
1390
1390
|
yMax: d,
|
|
1391
1391
|
yMin: r,
|
|
1392
1392
|
customOptions: f,
|
|
@@ -1407,7 +1407,7 @@ function nt(e) {
|
|
|
1407
1407
|
display: !!s,
|
|
1408
1408
|
text: s
|
|
1409
1409
|
},
|
|
1410
|
-
type:
|
|
1410
|
+
type: i || "category"
|
|
1411
1411
|
},
|
|
1412
1412
|
y: {
|
|
1413
1413
|
beginAtZero: !0,
|
|
@@ -1424,12 +1424,12 @@ function nt(e) {
|
|
|
1424
1424
|
}
|
|
1425
1425
|
},
|
|
1426
1426
|
title: {
|
|
1427
|
-
display: !!
|
|
1428
|
-
text:
|
|
1427
|
+
display: !!o,
|
|
1428
|
+
text: o
|
|
1429
1429
|
}
|
|
1430
1430
|
}
|
|
1431
1431
|
};
|
|
1432
|
-
return (
|
|
1432
|
+
return (i === "time" || ((w = (S = f == null ? void 0 : f.scales) == null ? void 0 : S.x) == null ? void 0 : w.type) === "time") && (b.x.ticks.source = a != null && a.length ? "labels" : "auto", b.x.time = {
|
|
1433
1433
|
tooltipFormat: "dd MMM yyyy : h:mm bbb"
|
|
1434
1434
|
}), b;
|
|
1435
1435
|
}
|
|
@@ -1663,8 +1663,8 @@ const ln = {
|
|
|
1663
1663
|
}
|
|
1664
1664
|
},
|
|
1665
1665
|
setup(e) {
|
|
1666
|
-
const a = e, { canvasRef: t, legendListRef: l, registerChart: n } = Qa("bar", a),
|
|
1667
|
-
return
|
|
1666
|
+
const a = e, { canvasRef: t, legendListRef: l, registerChart: n } = Qa("bar", a), i = p(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`);
|
|
1667
|
+
return H(() => n(
|
|
1668
1668
|
ta,
|
|
1669
1669
|
aa,
|
|
1670
1670
|
na,
|
|
@@ -1672,11 +1672,11 @@ const ln = {
|
|
|
1672
1672
|
oa,
|
|
1673
1673
|
ia,
|
|
1674
1674
|
ra
|
|
1675
|
-
)), (s,
|
|
1675
|
+
)), (s, o) => (u(), v("div", ln, [
|
|
1676
1676
|
k("figure", null, [
|
|
1677
1677
|
k("div", null, [
|
|
1678
1678
|
k("canvas", {
|
|
1679
|
-
"aria-label":
|
|
1679
|
+
"aria-label": i.value,
|
|
1680
1680
|
ref_key: "canvasRef",
|
|
1681
1681
|
ref: t,
|
|
1682
1682
|
role: "img"
|
|
@@ -1687,7 +1687,7 @@ const ln = {
|
|
|
1687
1687
|
"chart-type": "bar",
|
|
1688
1688
|
data: e.data,
|
|
1689
1689
|
"data-idx-labels": e.dataIdxLabels,
|
|
1690
|
-
"table-title":
|
|
1690
|
+
"table-title": i.value,
|
|
1691
1691
|
"x-axis-type": e.xAxisType,
|
|
1692
1692
|
"x-label": e.xLabel,
|
|
1693
1693
|
"y-label": e.yLabel
|
|
@@ -1767,7 +1767,7 @@ const ln = {
|
|
|
1767
1767
|
},
|
|
1768
1768
|
emits: ["update:modelValue"],
|
|
1769
1769
|
setup(e, { emit: a }) {
|
|
1770
|
-
const t = e, l = a, [n] = X(),
|
|
1770
|
+
const t = e, l = a, [n] = X(), i = p(() => et.concat(t.passAttrs.split(","))), s = I(null), o = p(() => t.inputId || n.value), d = p(() => t.checked || m.value), r = p(() => t.indeterminate || t.checkedPartially), f = p(() => Array.isArray(t.modelValue) && t.value), m = p(() => f.value && t.modelValue.includes(t.value) || typeof t.modelValue == "boolean" && t.modelValue);
|
|
1771
1771
|
function b() {
|
|
1772
1772
|
s.value && (s.value.indeterminate = r.value && !d.value);
|
|
1773
1773
|
}
|
|
@@ -1775,35 +1775,35 @@ const ln = {
|
|
|
1775
1775
|
l("update:modelValue", h);
|
|
1776
1776
|
}
|
|
1777
1777
|
function w(h) {
|
|
1778
|
-
const
|
|
1779
|
-
h ?
|
|
1778
|
+
const B = [...t.modelValue];
|
|
1779
|
+
h ? B.push(t.value) : B.splice(B.indexOf(t.value), 1), l("update:modelValue", B);
|
|
1780
1780
|
}
|
|
1781
|
-
function
|
|
1782
|
-
const { checked:
|
|
1783
|
-
f.value ? w(
|
|
1781
|
+
function $(h) {
|
|
1782
|
+
const { checked: B } = h.target;
|
|
1783
|
+
f.value ? w(B) : S(B);
|
|
1784
1784
|
}
|
|
1785
|
-
return j(d, b), j(r, b),
|
|
1785
|
+
return j(d, b), j(r, b), H(b), (h, B) => (u(), v("div", z({
|
|
1786
1786
|
class: "bs-boolean",
|
|
1787
1787
|
"data-component": "bs-checkbox",
|
|
1788
1788
|
"data-disabled": e.disabled,
|
|
1789
1789
|
"data-error": e.error,
|
|
1790
1790
|
"data-size": e.size
|
|
1791
|
-
}, c(
|
|
1791
|
+
}, c(Y)(h.$attrs, i.value).remaining), [
|
|
1792
1792
|
k("input", z({
|
|
1793
1793
|
ref_key: "inputEl",
|
|
1794
1794
|
ref: s,
|
|
1795
1795
|
checked: d.value,
|
|
1796
1796
|
"data-error": e.error,
|
|
1797
1797
|
disabled: e.disabled,
|
|
1798
|
-
id: h.$attrs.id ||
|
|
1798
|
+
id: h.$attrs.id || o.value,
|
|
1799
1799
|
required: e.required,
|
|
1800
1800
|
value: e.value || "on",
|
|
1801
1801
|
type: "checkbox",
|
|
1802
|
-
onChange:
|
|
1803
|
-
}, c(
|
|
1802
|
+
onChange: $
|
|
1803
|
+
}, c(Y)(h.$attrs, i.value).filtered), null, 16, dn),
|
|
1804
1804
|
e.label || h.$slots.label ? (u(), O(ae, {
|
|
1805
1805
|
key: 0,
|
|
1806
|
-
for: h.$attrs.id ||
|
|
1806
|
+
for: h.$attrs.id || o.value,
|
|
1807
1807
|
disabled: e.disabled,
|
|
1808
1808
|
required: e.required
|
|
1809
1809
|
}, {
|
|
@@ -1892,14 +1892,14 @@ const ln = {
|
|
|
1892
1892
|
return (l, n) => e.preloaded ? de((u(), O(st, {
|
|
1893
1893
|
key: 0,
|
|
1894
1894
|
name: e.name,
|
|
1895
|
-
onBeforeEnter: n[0] || (n[0] = (
|
|
1896
|
-
onEnter: n[1] || (n[1] = (
|
|
1897
|
-
onAfterEnter: n[2] || (n[2] = (
|
|
1898
|
-
onEnterCancelled: n[3] || (n[3] = (
|
|
1899
|
-
onBeforeLeave: n[4] || (n[4] = (
|
|
1900
|
-
onLeave: n[5] || (n[5] = (
|
|
1901
|
-
onAfterLeave: n[6] || (n[6] = (
|
|
1902
|
-
onLeaveCancelled: n[7] || (n[7] = (
|
|
1895
|
+
onBeforeEnter: n[0] || (n[0] = (i) => t("before-enter")),
|
|
1896
|
+
onEnter: n[1] || (n[1] = (i) => t("enter")),
|
|
1897
|
+
onAfterEnter: n[2] || (n[2] = (i) => t("after-enter")),
|
|
1898
|
+
onEnterCancelled: n[3] || (n[3] = (i) => t("enter-cancelled")),
|
|
1899
|
+
onBeforeLeave: n[4] || (n[4] = (i) => t("before-leave")),
|
|
1900
|
+
onLeave: n[5] || (n[5] = (i) => t("leave")),
|
|
1901
|
+
onAfterLeave: n[6] || (n[6] = (i) => t("after-leave")),
|
|
1902
|
+
onLeaveCancelled: n[7] || (n[7] = (i) => t("leave-cancelled"))
|
|
1903
1903
|
}, {
|
|
1904
1904
|
default: E(() => [
|
|
1905
1905
|
D(l.$slots, "default")
|
|
@@ -1910,14 +1910,14 @@ const ln = {
|
|
|
1910
1910
|
]) : (u(), O(st, {
|
|
1911
1911
|
key: 1,
|
|
1912
1912
|
name: e.name,
|
|
1913
|
-
onBeforeEnter: n[8] || (n[8] = (
|
|
1914
|
-
onEnter: n[9] || (n[9] = (
|
|
1915
|
-
onAfterEnter: n[10] || (n[10] = (
|
|
1916
|
-
onEnterCancelled: n[11] || (n[11] = (
|
|
1917
|
-
onBeforeLeave: n[12] || (n[12] = (
|
|
1918
|
-
onLeave: n[13] || (n[13] = (
|
|
1919
|
-
onAfterLeave: n[14] || (n[14] = (
|
|
1920
|
-
onLeaveCancelled: n[15] || (n[15] = (
|
|
1913
|
+
onBeforeEnter: n[8] || (n[8] = (i) => t("before-enter")),
|
|
1914
|
+
onEnter: n[9] || (n[9] = (i) => t("enter")),
|
|
1915
|
+
onAfterEnter: n[10] || (n[10] = (i) => t("after-enter")),
|
|
1916
|
+
onEnterCancelled: n[11] || (n[11] = (i) => t("enter-cancelled")),
|
|
1917
|
+
onBeforeLeave: n[12] || (n[12] = (i) => t("before-leave")),
|
|
1918
|
+
onLeave: n[13] || (n[13] = (i) => t("leave")),
|
|
1919
|
+
onAfterLeave: n[14] || (n[14] = (i) => t("after-leave")),
|
|
1920
|
+
onLeaveCancelled: n[15] || (n[15] = (i) => t("leave-cancelled"))
|
|
1921
1921
|
}, {
|
|
1922
1922
|
default: E(() => [
|
|
1923
1923
|
e.shown ? D(l.$slots, "default", { key: 0 }) : x("", !0)
|
|
@@ -1926,14 +1926,14 @@ const ln = {
|
|
|
1926
1926
|
}, 8, ["name"]));
|
|
1927
1927
|
}
|
|
1928
1928
|
}, cn = (e, a = void 0, t = "relative") => {
|
|
1929
|
-
const l = I(null), n = I(null),
|
|
1929
|
+
const l = I(null), n = I(null), i = I(!1);
|
|
1930
1930
|
let s = !1;
|
|
1931
|
-
return
|
|
1932
|
-
e && (l.value = a || St(), document.getElementById(l.value) ? (n.value = document.getElementById(l.value), s = !0) : (n.value = document.createElement("div"), n.value.id = l.value, n.value.style.position = t, document.body.insertAdjacentElement("afterbegin", n.value)),
|
|
1933
|
-
}),
|
|
1934
|
-
var
|
|
1935
|
-
e && !s && ((
|
|
1936
|
-
}), { breakoutId: l, breakoutStub: n, breakoutMounted:
|
|
1931
|
+
return H(() => {
|
|
1932
|
+
e && (l.value = a || St(), document.getElementById(l.value) ? (n.value = document.getElementById(l.value), s = !0) : (n.value = document.createElement("div"), n.value.id = l.value, n.value.style.position = t, document.body.insertAdjacentElement("afterbegin", n.value)), i.value = !0);
|
|
1933
|
+
}), Be(() => {
|
|
1934
|
+
var o;
|
|
1935
|
+
e && !s && ((o = document.getElementById(l.value)) == null || o.remove());
|
|
1936
|
+
}), { breakoutId: l, breakoutStub: n, breakoutMounted: i };
|
|
1937
1937
|
}, fn = {
|
|
1938
1938
|
key: 0,
|
|
1939
1939
|
class: "bs-dropdown-backdrop"
|
|
@@ -1990,22 +1990,22 @@ const ln = {
|
|
|
1990
1990
|
"after-leave"
|
|
1991
1991
|
],
|
|
1992
1992
|
setup(e, { emit: a }) {
|
|
1993
|
-
const t = e, l = a, n = I(null),
|
|
1994
|
-
kt([
|
|
1995
|
-
|
|
1993
|
+
const t = e, l = a, n = I(null), i = I(null), s = I(!1), o = I(!1), d = p(() => document.getElementById(t.anchorId)), r = p(() => t.breakout ? m.value : t.containerId ? document.getElementById(t.containerId) : n.value.internalContainerRef), f = p(() => t.width === "anchor" ? void 0 : t.width);
|
|
1994
|
+
kt([i, d], () => {
|
|
1995
|
+
o.value && l("close");
|
|
1996
1996
|
}), pe(["Escape"], () => {
|
|
1997
|
-
|
|
1997
|
+
o.value && l("close");
|
|
1998
1998
|
});
|
|
1999
1999
|
const { breakoutStub: m, breakoutMounted: b } = cn(t.breakout, t.containerId);
|
|
2000
|
-
ce("dropdownEnter", s), ce("dropdownAfterEnter",
|
|
2000
|
+
ce("dropdownEnter", s), ce("dropdownAfterEnter", o), ce("dropdownShown", p(() => t.shown));
|
|
2001
2001
|
const S = (T, P) => {
|
|
2002
|
-
|
|
2002
|
+
i.value.style.setProperty(T, P);
|
|
2003
2003
|
};
|
|
2004
2004
|
function w() {
|
|
2005
|
-
const T = r.value.getBoundingClientRect(), P = d.value.getBoundingClientRect(), R =
|
|
2006
|
-
|
|
2005
|
+
const T = r.value.getBoundingClientRect(), P = d.value.getBoundingClientRect(), R = i.value.getBoundingClientRect();
|
|
2006
|
+
$(T, P), h(T, P, R);
|
|
2007
2007
|
}
|
|
2008
|
-
function
|
|
2008
|
+
function $(T, P) {
|
|
2009
2009
|
if (t.position === "top") {
|
|
2010
2010
|
const R = T.bottom - P.bottom;
|
|
2011
2011
|
S("--dropdown-wscreen-top", "auto"), S("--dropdown-wscreen-bottom", `${R + P.height + 8}px`);
|
|
@@ -2027,7 +2027,7 @@ const ln = {
|
|
|
2027
2027
|
S("--dropdown-wscreen-left", `${_}px`), S("--dropdown-wscreen-right", "auto");
|
|
2028
2028
|
}
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2030
|
+
function B() {
|
|
2031
2031
|
if (t.width === "anchor") {
|
|
2032
2032
|
const T = d.value.getBoundingClientRect();
|
|
2033
2033
|
S("--dropdown-wscreen-width", `${T.width}px`);
|
|
@@ -2035,13 +2035,13 @@ const ln = {
|
|
|
2035
2035
|
S("--dropdown-wscreen-width", "");
|
|
2036
2036
|
}
|
|
2037
2037
|
function y() {
|
|
2038
|
-
s.value = !0, w(),
|
|
2038
|
+
s.value = !0, w(), B(), l("enter");
|
|
2039
2039
|
}
|
|
2040
2040
|
function g() {
|
|
2041
|
-
|
|
2041
|
+
o.value = !0, l("after-enter");
|
|
2042
2042
|
}
|
|
2043
2043
|
function M() {
|
|
2044
|
-
s.value = !1,
|
|
2044
|
+
s.value = !1, o.value = !1, l("after-leave");
|
|
2045
2045
|
}
|
|
2046
2046
|
return (T, P) => (u(), v(G, null, [
|
|
2047
2047
|
e.useMobileStyle && e.shown ? (u(), v("div", fn)) : x("", !0),
|
|
@@ -2065,7 +2065,7 @@ const ln = {
|
|
|
2065
2065
|
default: E(() => [
|
|
2066
2066
|
k("div", z({
|
|
2067
2067
|
ref_key: "dropdownRef",
|
|
2068
|
-
ref:
|
|
2068
|
+
ref: i,
|
|
2069
2069
|
class: "bs-dropdown",
|
|
2070
2070
|
"data-width": f.value,
|
|
2071
2071
|
"data-shown": e.shown,
|
|
@@ -2081,7 +2081,7 @@ const ln = {
|
|
|
2081
2081
|
title: "close",
|
|
2082
2082
|
onClick: P[0] || (P[0] = () => l("close"))
|
|
2083
2083
|
}, [
|
|
2084
|
-
L(c(
|
|
2084
|
+
L(c($e))
|
|
2085
2085
|
])
|
|
2086
2086
|
])) : x("", !0),
|
|
2087
2087
|
D(T.$slots, "default")
|
|
@@ -2184,9 +2184,9 @@ const ln = {
|
|
|
2184
2184
|
"after-leave"
|
|
2185
2185
|
],
|
|
2186
2186
|
setup(e, { emit: a }) {
|
|
2187
|
-
const t = e, l = a, { transition: n } = Ee(t),
|
|
2187
|
+
const t = e, l = a, { transition: n } = Ee(t), i = p(() => t.width === "toggle" ? "anchor" : t.width), s = p(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = p(() => t.toggleId ? t.toggleId : t.anchorId);
|
|
2188
2188
|
return (d, r) => (u(), O(mn, {
|
|
2189
|
-
"anchor-id":
|
|
2189
|
+
"anchor-id": o.value,
|
|
2190
2190
|
breakout: e.breakout,
|
|
2191
2191
|
"container-id": e.containerId,
|
|
2192
2192
|
"helper-description": e.helperDescription,
|
|
@@ -2195,7 +2195,7 @@ const ln = {
|
|
|
2195
2195
|
preloaded: e.preloaded,
|
|
2196
2196
|
shown: c(n),
|
|
2197
2197
|
"use-mobile-style": e.useMobileStyle,
|
|
2198
|
-
width:
|
|
2198
|
+
width: i.value,
|
|
2199
2199
|
onClose: r[0] || (r[0] = () => l("close")),
|
|
2200
2200
|
onEnter: r[1] || (r[1] = () => l("enter")),
|
|
2201
2201
|
onAfterEnter: r[2] || (r[2] = () => l("after-enter")),
|
|
@@ -2249,18 +2249,18 @@ const ln = {
|
|
|
2249
2249
|
setup(e, { emit: a }) {
|
|
2250
2250
|
const t = e, l = a;
|
|
2251
2251
|
let n = !1;
|
|
2252
|
-
const
|
|
2252
|
+
const i = I(null), [s] = X(1), o = p(() => ({
|
|
2253
2253
|
icon: t.modelValue ? "close" : t.optionsId ? "caret-down" : "",
|
|
2254
2254
|
show: !!(t.modelValue || t.optionsId),
|
|
2255
2255
|
text: t.modelValue ? "Clear this field" : t.optionsId ? "Toggle options dropdown" : ""
|
|
2256
2256
|
}));
|
|
2257
2257
|
function d() {
|
|
2258
|
-
t.modelValue && l("clear"), n = !0,
|
|
2258
|
+
t.modelValue && l("clear"), n = !0, i.value.$el.focus();
|
|
2259
2259
|
}
|
|
2260
2260
|
function r(m) {
|
|
2261
|
-
var w,
|
|
2261
|
+
var w, $;
|
|
2262
2262
|
const b = ((w = m.relatedTarget) == null ? void 0 : w.id) === s.value;
|
|
2263
|
-
!(((
|
|
2263
|
+
!((($ = m.relatedTarget) == null ? void 0 : $.id) === t.optionsId) && (!b || !n) && f(!0), n = !1;
|
|
2264
2264
|
}
|
|
2265
2265
|
const f = Ve((m) => l("toggled", m), 200, !0);
|
|
2266
2266
|
return (m, b) => (u(), O(Le, {
|
|
@@ -2275,7 +2275,7 @@ const ln = {
|
|
|
2275
2275
|
default: E(() => [
|
|
2276
2276
|
L(Ie, z({
|
|
2277
2277
|
ref_key: "inputRef",
|
|
2278
|
-
ref:
|
|
2278
|
+
ref: i,
|
|
2279
2279
|
"aria-controls": e.optionsId,
|
|
2280
2280
|
"aria-describedby": e.hintId,
|
|
2281
2281
|
"aria-expanded": e.optionsId ? e.open : void 0,
|
|
@@ -2302,21 +2302,21 @@ const ln = {
|
|
|
2302
2302
|
type: "button",
|
|
2303
2303
|
onClick: d
|
|
2304
2304
|
}, [
|
|
2305
|
-
k("span", gn, V(
|
|
2305
|
+
k("span", gn, V(o.value.text), 1),
|
|
2306
2306
|
de(L(c(_e), {
|
|
2307
2307
|
role: "presentation",
|
|
2308
2308
|
size: "md"
|
|
2309
2309
|
}, null, 512), [
|
|
2310
|
-
[ue,
|
|
2310
|
+
[ue, o.value.icon == "caret-down"]
|
|
2311
2311
|
]),
|
|
2312
|
-
de(L(c(
|
|
2312
|
+
de(L(c($e), {
|
|
2313
2313
|
role: "presentation",
|
|
2314
2314
|
size: "md"
|
|
2315
2315
|
}, null, 512), [
|
|
2316
|
-
[ue,
|
|
2316
|
+
[ue, o.value.icon == "close"]
|
|
2317
2317
|
])
|
|
2318
2318
|
], 8, bn), [
|
|
2319
|
-
[ue,
|
|
2319
|
+
[ue, o.value.show]
|
|
2320
2320
|
])
|
|
2321
2321
|
]),
|
|
2322
2322
|
_: 1
|
|
@@ -2376,7 +2376,7 @@ const ln = {
|
|
|
2376
2376
|
L(c(_e))
|
|
2377
2377
|
], 8, Sn));
|
|
2378
2378
|
}
|
|
2379
|
-
},
|
|
2379
|
+
}, Bn = ["data-value", "data-value-type", "data-variant", "id"], ot = {
|
|
2380
2380
|
__name: "BsDropdownOption",
|
|
2381
2381
|
props: {
|
|
2382
2382
|
value: {
|
|
@@ -2390,25 +2390,25 @@ const ln = {
|
|
|
2390
2390
|
},
|
|
2391
2391
|
setup(e) {
|
|
2392
2392
|
const a = e, t = I(null), l = fe("optionsId", ""), n = fe("handleOptionSelect", () => {
|
|
2393
|
-
}),
|
|
2394
|
-
function s(
|
|
2395
|
-
n(t.value),
|
|
2393
|
+
}), i = p(() => `${l.value}-option-${a.value}`);
|
|
2394
|
+
function s(o) {
|
|
2395
|
+
n(t.value), o.stopPropagation();
|
|
2396
2396
|
}
|
|
2397
|
-
return (
|
|
2397
|
+
return (o, d) => (u(), v("li", {
|
|
2398
2398
|
ref_key: "optionRef",
|
|
2399
2399
|
ref: t,
|
|
2400
2400
|
"data-component": "bs-dropdown-option",
|
|
2401
2401
|
"data-value": a.value,
|
|
2402
2402
|
"data-value-type": typeof a.value,
|
|
2403
2403
|
"data-variant": e.variant || void 0,
|
|
2404
|
-
id:
|
|
2404
|
+
id: i.value,
|
|
2405
2405
|
role: "option",
|
|
2406
2406
|
onClick: s
|
|
2407
2407
|
}, [
|
|
2408
|
-
D(
|
|
2409
|
-
], 8,
|
|
2408
|
+
D(o.$slots, "default")
|
|
2409
|
+
], 8, Bn));
|
|
2410
2410
|
}
|
|
2411
|
-
},
|
|
2411
|
+
}, $n = ["data-img-size", "data-initials", "data-no-img"], In = ["src", "alt"], Tt = {
|
|
2412
2412
|
__name: "BsProfileImg",
|
|
2413
2413
|
props: {
|
|
2414
2414
|
src: String,
|
|
@@ -2428,7 +2428,7 @@ const ln = {
|
|
|
2428
2428
|
},
|
|
2429
2429
|
setup(e) {
|
|
2430
2430
|
const a = e, t = I(!1), l = I(!!a.src);
|
|
2431
|
-
return
|
|
2431
|
+
return H(() => t.value = !0), (n, i) => (u(), v("div", {
|
|
2432
2432
|
class: "bs-profile-img",
|
|
2433
2433
|
"data-img-size": e.size,
|
|
2434
2434
|
"data-initials": e.initials,
|
|
@@ -2438,9 +2438,9 @@ const ln = {
|
|
|
2438
2438
|
key: 0,
|
|
2439
2439
|
src: e.src,
|
|
2440
2440
|
alt: e.useAltText ? e.profileName : "",
|
|
2441
|
-
onError:
|
|
2441
|
+
onError: i[0] || (i[0] = (s) => l.value = !1)
|
|
2442
2442
|
}, null, 40, In)) : x("", !0)
|
|
2443
|
-
], 8,
|
|
2443
|
+
], 8, $n));
|
|
2444
2444
|
}
|
|
2445
2445
|
}, kn = ["id", "data-checked"], Cn = { key: 1 }, xn = ["innerHTML"], Tn = { key: 4 }, An = { key: 5 }, Vn = {
|
|
2446
2446
|
key: 0,
|
|
@@ -2485,25 +2485,25 @@ const ln = {
|
|
|
2485
2485
|
l();
|
|
2486
2486
|
});
|
|
2487
2487
|
function l() {
|
|
2488
|
-
a.options.forEach((
|
|
2489
|
-
const { icon: d } =
|
|
2490
|
-
d && !t[d] && (t[d] =
|
|
2488
|
+
a.options.forEach((o) => {
|
|
2489
|
+
const { icon: d } = o;
|
|
2490
|
+
d && !t[d] && (t[d] = i(d));
|
|
2491
2491
|
});
|
|
2492
2492
|
}
|
|
2493
|
-
function n(
|
|
2493
|
+
function n(o) {
|
|
2494
2494
|
let d = "", r = 1;
|
|
2495
|
-
return r +=
|
|
2495
|
+
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;
|
|
2496
2496
|
}
|
|
2497
|
-
function o
|
|
2497
|
+
function i(o) {
|
|
2498
2498
|
return Qe(async () => {
|
|
2499
|
-
const { [`BsIcon${
|
|
2499
|
+
const { [`BsIcon${o}`]: d } = await import("@wwtdev/bsds-icons-vue3");
|
|
2500
2500
|
return d;
|
|
2501
2501
|
});
|
|
2502
2502
|
}
|
|
2503
|
-
function s(
|
|
2504
|
-
return !!
|
|
2503
|
+
function s(o, d) {
|
|
2504
|
+
return !!o && o !== d;
|
|
2505
2505
|
}
|
|
2506
|
-
return (
|
|
2506
|
+
return (o, d) => (u(), v(G, null, [
|
|
2507
2507
|
(u(!0), v(G, null, ee(e.options, (r) => (u(), O(ot, {
|
|
2508
2508
|
"aria-checked": r.checkbox ? r.checkbox.checked : void 0,
|
|
2509
2509
|
key: r.value,
|
|
@@ -2538,7 +2538,7 @@ const ln = {
|
|
|
2538
2538
|
_: 2
|
|
2539
2539
|
}, 1032, ["aria-checked", "value", "variant"]))), 128)),
|
|
2540
2540
|
e.showNoOptions && e.options.length === 0 ? (u(), v("li", Vn, [
|
|
2541
|
-
D(
|
|
2541
|
+
D(o.$slots, "no-options", {}, () => [
|
|
2542
2542
|
W("No options")
|
|
2543
2543
|
])
|
|
2544
2544
|
])) : x("", !0)
|
|
@@ -2618,25 +2618,25 @@ const ln = {
|
|
|
2618
2618
|
setup(e, { emit: a }) {
|
|
2619
2619
|
const t = e, l = a;
|
|
2620
2620
|
let n = null;
|
|
2621
|
-
const [
|
|
2621
|
+
const [i, s] = X(2), o = I(!1), d = () => n || (n = document.getElementById(m.value)), r = p(() => Qe(async () => await (t.multiselect ? Promise.resolve().then(() => zn) : Promise.resolve().then(() => Dn)))), f = p(() => t.optionsId || s.value), m = p(() => t.toggleId || i.value);
|
|
2622
2622
|
function b() {
|
|
2623
2623
|
const y = document.activeElement;
|
|
2624
2624
|
return !y || y.tagName === "BODY" || y.id === f.value;
|
|
2625
2625
|
}
|
|
2626
2626
|
function S() {
|
|
2627
2627
|
var y, g;
|
|
2628
|
-
|
|
2628
|
+
o.value = !1, l("close"), b() && ((g = (y = d()) == null ? void 0 : y.focus) == null || g.call(y));
|
|
2629
2629
|
}
|
|
2630
2630
|
function w() {
|
|
2631
|
-
|
|
2631
|
+
o.value && S();
|
|
2632
2632
|
}
|
|
2633
|
-
function
|
|
2634
|
-
|
|
2633
|
+
function $() {
|
|
2634
|
+
o.value = !0;
|
|
2635
2635
|
}
|
|
2636
2636
|
function h(y) {
|
|
2637
2637
|
l("update:selectedOptions", y);
|
|
2638
2638
|
}
|
|
2639
|
-
function
|
|
2639
|
+
function B(y) {
|
|
2640
2640
|
t.multiselect || (l("update:selectedOption", y), S());
|
|
2641
2641
|
}
|
|
2642
2642
|
return (y, g) => (u(), v("div", {
|
|
@@ -2677,7 +2677,7 @@ const ln = {
|
|
|
2677
2677
|
"use-mobile-style": e.useMobileStyle,
|
|
2678
2678
|
width: e.dropdownWidth,
|
|
2679
2679
|
onClose: w,
|
|
2680
|
-
onEnter:
|
|
2680
|
+
onEnter: $
|
|
2681
2681
|
}, {
|
|
2682
2682
|
default: E(() => [
|
|
2683
2683
|
L(c(r), {
|
|
@@ -2687,7 +2687,7 @@ const ln = {
|
|
|
2687
2687
|
"options-id": f.value,
|
|
2688
2688
|
"selected-options": e.selectedOptions,
|
|
2689
2689
|
shown: e.open,
|
|
2690
|
-
"onUpdate:modelValue":
|
|
2690
|
+
"onUpdate:modelValue": B,
|
|
2691
2691
|
"onUpdate:selectedOptions": h,
|
|
2692
2692
|
onClose: g[1] || (g[1] = (M) => e.multiselect ? void 0 : w())
|
|
2693
2693
|
}, {
|
|
@@ -2763,7 +2763,7 @@ const ln = {
|
|
|
2763
2763
|
},
|
|
2764
2764
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
2765
2765
|
setup(e, { emit: a }) {
|
|
2766
|
-
const t = e, l = a, [n,
|
|
2766
|
+
const t = e, l = a, [n, i, s] = X(3), o = I(!1), d = p(() => t.inputId || n.value);
|
|
2767
2767
|
function r(w) {
|
|
2768
2768
|
l("combobox:change", w.target.value), l("update:modelValue", w.target.value);
|
|
2769
2769
|
}
|
|
@@ -2771,41 +2771,41 @@ const ln = {
|
|
|
2771
2771
|
l("combobox:change", ""), l("update:modelValue", "");
|
|
2772
2772
|
}
|
|
2773
2773
|
function m(w) {
|
|
2774
|
-
var
|
|
2775
|
-
(
|
|
2774
|
+
var $, h;
|
|
2775
|
+
($ = w.relatedTarget) != null && $.closest(`#${s.value}`) || (h = w.relatedTarget) != null && h.closest(`#${i.value}`) || (o.value = !1);
|
|
2776
2776
|
}
|
|
2777
2777
|
function b(w) {
|
|
2778
2778
|
l("combobox:input", w.target.value), t.updateOnInput && l("update:modelValue", w.target.value);
|
|
2779
2779
|
}
|
|
2780
2780
|
function S(w) {
|
|
2781
|
-
w === !0 || w === !1 ?
|
|
2781
|
+
w === !0 || w === !1 ? o.value = w : o.value = !o.value;
|
|
2782
2782
|
}
|
|
2783
|
-
return (w,
|
|
2784
|
-
"anchor-id": c(
|
|
2783
|
+
return (w, $) => (u(), O(En, {
|
|
2784
|
+
"anchor-id": c(i),
|
|
2785
2785
|
disabled: e.disabled,
|
|
2786
2786
|
"dropdown-position": e.dropdownPosition,
|
|
2787
2787
|
"dropdown-width": e.dropdownWidth,
|
|
2788
2788
|
"helper-description": e.helperDescription,
|
|
2789
2789
|
"helper-text": e.helperText,
|
|
2790
2790
|
multiselect: !1,
|
|
2791
|
-
open:
|
|
2791
|
+
open: o.value,
|
|
2792
2792
|
options: e.options,
|
|
2793
2793
|
"options-id": c(s),
|
|
2794
2794
|
"selected-option": e.modelValue,
|
|
2795
2795
|
"toggle-id": w.$attrs.id || d.value,
|
|
2796
|
-
onClose:
|
|
2796
|
+
onClose: $[0] || ($[0] = (h) => o.value = !1),
|
|
2797
2797
|
onFocusout: m,
|
|
2798
|
-
"onUpdate:selectedOption":
|
|
2798
|
+
"onUpdate:selectedOption": $[1] || ($[1] = (h) => w.$emit("update:modelValue", h))
|
|
2799
2799
|
}, {
|
|
2800
2800
|
toggle: E(() => [
|
|
2801
2801
|
L(yn, z({
|
|
2802
2802
|
id: w.$attrs.id || d.value,
|
|
2803
|
-
"container-id": c(
|
|
2803
|
+
"container-id": c(i),
|
|
2804
2804
|
disabled: e.disabled,
|
|
2805
2805
|
error: e.error,
|
|
2806
2806
|
"hint-id": e.hintId,
|
|
2807
2807
|
"model-value": e.displayValue || e.modelValue,
|
|
2808
|
-
open:
|
|
2808
|
+
open: o.value,
|
|
2809
2809
|
"options-id": c(s),
|
|
2810
2810
|
placeholder: e.placeholder,
|
|
2811
2811
|
required: e.required,
|
|
@@ -2886,16 +2886,16 @@ const ln = {
|
|
|
2886
2886
|
},
|
|
2887
2887
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
2888
2888
|
setup(e, { emit: a }) {
|
|
2889
|
-
const t = e, [l, n] = X(2),
|
|
2890
|
-
return (
|
|
2891
|
-
e.label ||
|
|
2889
|
+
const t = e, [l, n] = X(2), i = p(() => t.error && t.errorMsg || t.hint || void 0), s = p(() => t.inputId || l.value);
|
|
2890
|
+
return (o, d) => (u(), v("div", z({ "data-component": "bs-dropdown-combobox-field" }, c(Y)(o.$attrs, c(he)).remaining), [
|
|
2891
|
+
e.label || o.$slots.label ? (u(), O(ae, {
|
|
2892
2892
|
key: 0,
|
|
2893
|
-
for:
|
|
2893
|
+
for: o.$attrs.id || s.value,
|
|
2894
2894
|
disabled: e.disabled,
|
|
2895
2895
|
required: e.required
|
|
2896
2896
|
}, {
|
|
2897
2897
|
default: E(() => [
|
|
2898
|
-
D(
|
|
2898
|
+
D(o.$slots, "label", {}, () => [
|
|
2899
2899
|
W(V(e.label), 1)
|
|
2900
2900
|
])
|
|
2901
2901
|
]),
|
|
@@ -2910,21 +2910,21 @@ const ln = {
|
|
|
2910
2910
|
"helper-text": e.helperText,
|
|
2911
2911
|
"helper-description": e.helperDescription,
|
|
2912
2912
|
"hint-id": c(n),
|
|
2913
|
-
"input-id":
|
|
2913
|
+
"input-id": o.$attrs.id || s.value,
|
|
2914
2914
|
"model-value": e.modelValue,
|
|
2915
2915
|
options: e.options,
|
|
2916
2916
|
placeholder: e.placeholder,
|
|
2917
2917
|
required: e.required,
|
|
2918
2918
|
"update-on-input": e.updateOnInput,
|
|
2919
|
-
"onCombobox:change": d[0] || (d[0] = (r) =>
|
|
2920
|
-
"onCombobox:input": d[1] || (d[1] = (r) =>
|
|
2921
|
-
"onUpdate:modelValue": d[2] || (d[2] = (r) =>
|
|
2922
|
-
}, c(
|
|
2923
|
-
|
|
2919
|
+
"onCombobox:change": d[0] || (d[0] = (r) => o.$emit("combobox:change", r)),
|
|
2920
|
+
"onCombobox:input": d[1] || (d[1] = (r) => o.$emit("combobox:input", r)),
|
|
2921
|
+
"onUpdate:modelValue": d[2] || (d[2] = (r) => o.$emit("update:modelValue", r))
|
|
2922
|
+
}, c(Y)(o.$attrs, c(he)).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"]),
|
|
2923
|
+
i.value ? (u(), O(ge, {
|
|
2924
2924
|
key: 1,
|
|
2925
2925
|
error: e.error,
|
|
2926
2926
|
"error-msg": e.errorMsg,
|
|
2927
|
-
hint: e.hint ||
|
|
2927
|
+
hint: e.hint || o.hintDeprecated,
|
|
2928
2928
|
"hint-id": c(n)
|
|
2929
2929
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
2930
2930
|
], 16));
|
|
@@ -2965,13 +2965,13 @@ const ln = {
|
|
|
2965
2965
|
"update:modelValue"
|
|
2966
2966
|
],
|
|
2967
2967
|
setup(e, { expose: a, emit: t }) {
|
|
2968
|
-
const l = e, n = t,
|
|
2969
|
-
ce("optionsId", p(() => l.optionsId)), ce("handleOptionSelect", ye), fa(
|
|
2970
|
-
const h = [/^[a-zA-Z0-9]{1}$/],
|
|
2968
|
+
const l = e, n = t, i = I(null), s = I(null), o = I(-1), d = I(-1), r = I(null), f = I(!1), m = fe("dropdownEnter", I(!1)), b = fe("dropdownAfterEnter", I(!1)), S = fe("dropdownShown", I(!1));
|
|
2969
|
+
ce("optionsId", p(() => l.optionsId)), ce("handleOptionSelect", ye), fa(i, g, { childList: !0 }), pe([" ", "Enter", "NumpadEnter"], ke, i), pe(["ArrowDown", "ArrowUp", "Home", "End"], Ce);
|
|
2970
|
+
const h = [/^[a-zA-Z0-9]{1}$/], B = {
|
|
2971
2971
|
keys: "",
|
|
2972
2972
|
lastTyped: 0
|
|
2973
2973
|
};
|
|
2974
|
-
pe(h, (A) => xe(A,
|
|
2974
|
+
pe(h, (A) => xe(A, B)), H(() => {
|
|
2975
2975
|
g(), J(S.value);
|
|
2976
2976
|
}), j(
|
|
2977
2977
|
[m, () => {
|
|
@@ -2979,7 +2979,7 @@ const ln = {
|
|
|
2979
2979
|
return (A = r.value) == null ? void 0 : A.length;
|
|
2980
2980
|
}],
|
|
2981
2981
|
([A, F]) => {
|
|
2982
|
-
(A || F > 0) && (f.value =
|
|
2982
|
+
(A || F > 0) && (f.value = i.value.scrollHeight > i.value.clientHeight);
|
|
2983
2983
|
}
|
|
2984
2984
|
), j(b, (A) => {
|
|
2985
2985
|
A && (M(), T());
|
|
@@ -2987,27 +2987,27 @@ const ln = {
|
|
|
2987
2987
|
const y = p(() => l.modelValue || l.selectedValue);
|
|
2988
2988
|
function g() {
|
|
2989
2989
|
r.value = Array.from(
|
|
2990
|
-
|
|
2990
|
+
i.value.querySelectorAll('[data-component="bs-dropdown-option"]')
|
|
2991
2991
|
);
|
|
2992
2992
|
}
|
|
2993
2993
|
function M() {
|
|
2994
|
-
|
|
2994
|
+
i.value.getBoundingClientRect().bottom > window.innerHeight && i.value.scrollIntoView({ block: "nearest" });
|
|
2995
2995
|
}
|
|
2996
2996
|
function T() {
|
|
2997
2997
|
var A;
|
|
2998
|
-
|
|
2998
|
+
o.value > -1 && (M(), (A = r.value[o.value]) == null || A.scrollIntoView({ block: "nearest" }));
|
|
2999
2999
|
}
|
|
3000
3000
|
function P() {
|
|
3001
3001
|
var A, F;
|
|
3002
|
-
|
|
3002
|
+
o.value > -1 && ((A = r.value[o.value]) == null || A.setAttribute("data-active", ""), s.value = (F = r.value[o.value]) == null ? void 0 : F.id, T());
|
|
3003
3003
|
}
|
|
3004
3004
|
function R() {
|
|
3005
3005
|
var A;
|
|
3006
|
-
|
|
3006
|
+
o.value > -1 && ((A = r.value[o.value]) == null || A.removeAttribute("data-active"));
|
|
3007
3007
|
}
|
|
3008
3008
|
function _() {
|
|
3009
3009
|
var A;
|
|
3010
|
-
|
|
3010
|
+
o.value < 0 && (o.value = 0, s.value = (A = r.value[0]) == null ? void 0 : A.id), P();
|
|
3011
3011
|
}
|
|
3012
3012
|
function J(A) {
|
|
3013
3013
|
A ? ne() : me();
|
|
@@ -3016,12 +3016,12 @@ const ln = {
|
|
|
3016
3016
|
var A, F;
|
|
3017
3017
|
l.multiselect || (d.value = r.value.findIndex(
|
|
3018
3018
|
(q) => q.getAttribute("data-value") === String(y.value)
|
|
3019
|
-
), !l.multiselect && d.value > -1 && ((A = r.value[d.value]) == null || A.setAttribute("data-selected", ""), (F = r.value[d.value]) == null || F.setAttribute("aria-selected", "true")),
|
|
3019
|
+
), !l.multiselect && d.value > -1 && ((A = r.value[d.value]) == null || A.setAttribute("data-selected", ""), (F = r.value[d.value]) == null || F.setAttribute("aria-selected", "true")), o.value = d.value);
|
|
3020
3020
|
}
|
|
3021
3021
|
function me() {
|
|
3022
3022
|
r.value.forEach((A) => {
|
|
3023
3023
|
A.removeAttribute("data-selected"), A.setAttribute("aria-selected", "false");
|
|
3024
|
-
}), R(), d.value = -1,
|
|
3024
|
+
}), R(), d.value = -1, o.value = -1, s.value = null;
|
|
3025
3025
|
}
|
|
3026
3026
|
function ye(A) {
|
|
3027
3027
|
var q;
|
|
@@ -3030,7 +3030,7 @@ const ln = {
|
|
|
3030
3030
|
A.getAttribute("data-value-type") === "number" && (F = Number(F)), s.value = A.id, R(), n("optselected", F), n("update:modelValue", F), n("close");
|
|
3031
3031
|
}
|
|
3032
3032
|
function ke(A) {
|
|
3033
|
-
ye(r.value[
|
|
3033
|
+
ye(r.value[o.value]), A.preventDefault();
|
|
3034
3034
|
}
|
|
3035
3035
|
function Ce(A) {
|
|
3036
3036
|
if (S.value)
|
|
@@ -3053,10 +3053,10 @@ const ln = {
|
|
|
3053
3053
|
let F;
|
|
3054
3054
|
switch (A) {
|
|
3055
3055
|
case "up":
|
|
3056
|
-
F =
|
|
3056
|
+
F = o.value - 1 < 0 ? r.value.length - 1 : o.value - 1;
|
|
3057
3057
|
break;
|
|
3058
3058
|
case "down":
|
|
3059
|
-
F = (
|
|
3059
|
+
F = (o.value + 1) % r.value.length;
|
|
3060
3060
|
break;
|
|
3061
3061
|
case "home":
|
|
3062
3062
|
F = 0;
|
|
@@ -3071,21 +3071,21 @@ const ln = {
|
|
|
3071
3071
|
if (!S.value)
|
|
3072
3072
|
return;
|
|
3073
3073
|
F.keys = A.timeStamp - F.lastTyped > 500 ? A.key : F.keys + A.key, F.lastTyped = A.timeStamp;
|
|
3074
|
-
const q = r.value.findIndex((
|
|
3074
|
+
const q = r.value.findIndex((K) => K.textContent.replaceAll(/[^a-zA-Z0-9]/g, "").toLowerCase().startsWith(F.keys));
|
|
3075
3075
|
q > -1 && Se(q, !1);
|
|
3076
3076
|
}
|
|
3077
3077
|
function Se(A, F = !0) {
|
|
3078
|
-
R(),
|
|
3078
|
+
R(), o.value = A, document.activeElement !== i.value && F ? i.value.focus() : P();
|
|
3079
3079
|
}
|
|
3080
3080
|
return a({
|
|
3081
|
-
activeIndex:
|
|
3081
|
+
activeIndex: o,
|
|
3082
3082
|
optionEls: r,
|
|
3083
|
-
optionsRef:
|
|
3083
|
+
optionsRef: i,
|
|
3084
3084
|
refreshOptions: g,
|
|
3085
3085
|
setCurrentActive: P
|
|
3086
3086
|
}), (A, F) => (u(), v("ul", {
|
|
3087
3087
|
ref_key: "optionsRef",
|
|
3088
|
-
ref:
|
|
3088
|
+
ref: i,
|
|
3089
3089
|
"aria-activedescendant": s.value || void 0,
|
|
3090
3090
|
"aria-label": e.label,
|
|
3091
3091
|
"aria-live": "polite",
|
|
@@ -3141,12 +3141,12 @@ const ln = {
|
|
|
3141
3141
|
"uncheck-option"
|
|
3142
3142
|
],
|
|
3143
3143
|
setup(e, { emit: a }) {
|
|
3144
|
-
const t = e, l = a, n = I(null),
|
|
3145
|
-
var
|
|
3146
|
-
return ((
|
|
3144
|
+
const t = e, l = a, n = I(null), i = I([]), s = I([]), o = p(() => {
|
|
3145
|
+
var $, h;
|
|
3146
|
+
return (($ = i.value) == null ? void 0 : $.length) && ((h = s.value) == null ? void 0 : h.length);
|
|
3147
3147
|
}), d = p(() => {
|
|
3148
|
-
var
|
|
3149
|
-
return ((
|
|
3148
|
+
var $, h;
|
|
3149
|
+
return (($ = i.value) == null ? void 0 : $.length) || ((h = s.value) == null ? void 0 : h.length);
|
|
3150
3150
|
});
|
|
3151
3151
|
let r = !1;
|
|
3152
3152
|
j(() => t.options, () => {
|
|
@@ -3155,8 +3155,8 @@ const ln = {
|
|
|
3155
3155
|
() => t.selectedOptions,
|
|
3156
3156
|
b,
|
|
3157
3157
|
{ immediate: !0 }
|
|
3158
|
-
), j(() => t.shown, (
|
|
3159
|
-
|
|
3158
|
+
), j(() => t.shown, ($) => {
|
|
3159
|
+
$ && Ae(f);
|
|
3160
3160
|
});
|
|
3161
3161
|
function f() {
|
|
3162
3162
|
n.value && (n.value.refreshOptions(), n.value.optionsRef.focus());
|
|
@@ -3164,28 +3164,28 @@ const ln = {
|
|
|
3164
3164
|
function m() {
|
|
3165
3165
|
n.value && (n.value.refreshOptions(), n.value.setCurrentActive());
|
|
3166
3166
|
}
|
|
3167
|
-
function b(
|
|
3168
|
-
const h = new Set(
|
|
3167
|
+
function b($ = []) {
|
|
3168
|
+
const h = new Set($), B = [], y = [];
|
|
3169
3169
|
t.options.forEach((g) => {
|
|
3170
3170
|
const M = { ...g }, T = `${t.optionsId}-${g.value}-cb`;
|
|
3171
|
-
h.has(g.value) ? (M.checkbox = { inputId: T, checked: !0 },
|
|
3172
|
-
}),
|
|
3171
|
+
h.has(g.value) ? (M.checkbox = { inputId: T, checked: !0 }, B.push(M)) : (M.checkbox = { inputId: T, checked: !1 }, y.push(M));
|
|
3172
|
+
}), i.value = B, Ae(() => {
|
|
3173
3173
|
s.value = y, Ae(() => {
|
|
3174
3174
|
r && m(), r = !1;
|
|
3175
3175
|
});
|
|
3176
3176
|
});
|
|
3177
3177
|
}
|
|
3178
|
-
function S(
|
|
3179
|
-
const h = new Set(
|
|
3178
|
+
function S($ = []) {
|
|
3179
|
+
const h = new Set($), B = [];
|
|
3180
3180
|
return t.options.forEach((y) => {
|
|
3181
|
-
h.has(y.value) &&
|
|
3182
|
-
}),
|
|
3181
|
+
h.has(y.value) && B.push(y.value);
|
|
3182
|
+
}), B;
|
|
3183
3183
|
}
|
|
3184
|
-
function w(
|
|
3184
|
+
function w($) {
|
|
3185
3185
|
let h = [];
|
|
3186
|
-
t.selectedOptions.includes(
|
|
3186
|
+
t.selectedOptions.includes($) ? (h = t.selectedOptions.filter((B) => B !== $), l("uncheck-option", $)) : (h = S([...t.selectedOptions, $]), l("check-option", $)), r = !0, l("update:selectedOptions", h);
|
|
3187
3187
|
}
|
|
3188
|
-
return (
|
|
3188
|
+
return ($, h) => (u(), O(Re, {
|
|
3189
3189
|
ref_key: "optlist",
|
|
3190
3190
|
ref: n,
|
|
3191
3191
|
"aria-multiselectable": "true",
|
|
@@ -3199,18 +3199,18 @@ const ln = {
|
|
|
3199
3199
|
default: E(() => [
|
|
3200
3200
|
d.value ? (u(), v(G, { key: 0 }, [
|
|
3201
3201
|
L(qe, {
|
|
3202
|
-
options:
|
|
3202
|
+
options: i.value,
|
|
3203
3203
|
"show-no-options": !1
|
|
3204
3204
|
}, null, 8, ["options"]),
|
|
3205
3205
|
de(k("li", Pn, Mn, 512), [
|
|
3206
|
-
[ue,
|
|
3206
|
+
[ue, o.value]
|
|
3207
3207
|
]),
|
|
3208
3208
|
L(qe, {
|
|
3209
3209
|
options: s.value,
|
|
3210
3210
|
"show-no-options": !1
|
|
3211
3211
|
}, null, 8, ["options"])
|
|
3212
3212
|
], 64)) : (u(), v("li", Nn, [
|
|
3213
|
-
D(
|
|
3213
|
+
D($.$slots, "no-options", {}, () => [
|
|
3214
3214
|
W("No options")
|
|
3215
3215
|
])
|
|
3216
3216
|
]))
|
|
@@ -3300,13 +3300,13 @@ const ln = {
|
|
|
3300
3300
|
function n() {
|
|
3301
3301
|
l.value = !0;
|
|
3302
3302
|
}
|
|
3303
|
-
function o
|
|
3304
|
-
l.value = !1, t("update:modelValue",
|
|
3303
|
+
function i(o) {
|
|
3304
|
+
l.value = !1, t("update:modelValue", o), t("close");
|
|
3305
3305
|
}
|
|
3306
3306
|
function s() {
|
|
3307
3307
|
l.value && (l.value = !1, t("close"));
|
|
3308
3308
|
}
|
|
3309
|
-
return (
|
|
3309
|
+
return (o, d) => (u(), O(c(lt), {
|
|
3310
3310
|
"anchor-id": e.anchorId,
|
|
3311
3311
|
breakout: e.breakout,
|
|
3312
3312
|
"container-id": e.containerId,
|
|
@@ -3329,11 +3329,11 @@ const ln = {
|
|
|
3329
3329
|
"options-id": e.optionsId,
|
|
3330
3330
|
"prevent-tab": e.preventTab,
|
|
3331
3331
|
"type-to-focus": e.typeToFocus,
|
|
3332
|
-
"onUpdate:modelValue":
|
|
3332
|
+
"onUpdate:modelValue": i,
|
|
3333
3333
|
onClose: s
|
|
3334
3334
|
}, {
|
|
3335
3335
|
default: E(() => [
|
|
3336
|
-
D(
|
|
3336
|
+
D(o.$slots, "default")
|
|
3337
3337
|
]),
|
|
3338
3338
|
_: 3
|
|
3339
3339
|
}, 8, ["label", "model-value", "options-id", "prevent-tab", "type-to-focus"])
|
|
@@ -3455,12 +3455,12 @@ const ln = {
|
|
|
3455
3455
|
"after-leave"
|
|
3456
3456
|
],
|
|
3457
3457
|
setup(e, { emit: a }) {
|
|
3458
|
-
const t = e, l = a, { transition: n } = Ee(t),
|
|
3458
|
+
const t = e, l = a, { transition: n } = Ee(t), i = p(() => t.width === "toggle" ? "anchor" : t.width), s = p(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = p(() => t.toggleId ? t.toggleId : t.anchorId), d = p(() => t.selectedValue || t.modelValue);
|
|
3459
3459
|
function r(f) {
|
|
3460
3460
|
l("optselected", f), l("update:modelValue", f);
|
|
3461
3461
|
}
|
|
3462
3462
|
return (f, m) => (u(), O(Rn, {
|
|
3463
|
-
"anchor-id":
|
|
3463
|
+
"anchor-id": o.value,
|
|
3464
3464
|
breakout: e.breakout,
|
|
3465
3465
|
"container-id": e.containerId,
|
|
3466
3466
|
"helper-description": e.helperDescription,
|
|
@@ -3473,7 +3473,7 @@ const ln = {
|
|
|
3473
3473
|
"prevent-tab": e.preventTab,
|
|
3474
3474
|
shown: c(n),
|
|
3475
3475
|
"use-mobile-style": e.useMobileStyle,
|
|
3476
|
-
width:
|
|
3476
|
+
width: i.value,
|
|
3477
3477
|
onClose: m[0] || (m[0] = (b) => l("close")),
|
|
3478
3478
|
onAfterEnter: m[1] || (m[1] = (b) => l("after-enter")),
|
|
3479
3479
|
onAfterLeave: m[2] || (m[2] = (b) => l("after-leave")),
|
|
@@ -3521,12 +3521,12 @@ const ln = {
|
|
|
3521
3521
|
},
|
|
3522
3522
|
emits: ["close"],
|
|
3523
3523
|
setup(e, { emit: a }) {
|
|
3524
|
-
const t = e, l = a, n = I(null),
|
|
3525
|
-
kt([n,
|
|
3524
|
+
const t = e, l = a, n = I(null), i = p(() => document.getElementById(t.toggleId));
|
|
3525
|
+
kt([n, i], s), pe(["Escape"], s);
|
|
3526
3526
|
function s() {
|
|
3527
3527
|
t.shown && l("close");
|
|
3528
3528
|
}
|
|
3529
|
-
return (
|
|
3529
|
+
return (o, d) => (u(), O(De, {
|
|
3530
3530
|
name: "bs-flyout",
|
|
3531
3531
|
preloaded: e.preloaded,
|
|
3532
3532
|
shown: e.shown
|
|
@@ -3540,7 +3540,7 @@ const ln = {
|
|
|
3540
3540
|
"data-position": e.position,
|
|
3541
3541
|
"data-shown": e.shown,
|
|
3542
3542
|
"data-size": e.size
|
|
3543
|
-
},
|
|
3543
|
+
}, o.$attrs), [
|
|
3544
3544
|
k("div", jn, [
|
|
3545
3545
|
k("button", {
|
|
3546
3546
|
type: "button",
|
|
@@ -3548,10 +3548,10 @@ const ln = {
|
|
|
3548
3548
|
"aria-label": "Close",
|
|
3549
3549
|
onClick: s
|
|
3550
3550
|
}, [
|
|
3551
|
-
L(c(
|
|
3551
|
+
L(c($e))
|
|
3552
3552
|
])
|
|
3553
3553
|
]),
|
|
3554
|
-
D(
|
|
3554
|
+
D(o.$slots, "default")
|
|
3555
3555
|
], 16, Fn)
|
|
3556
3556
|
]),
|
|
3557
3557
|
_: 3
|
|
@@ -3565,16 +3565,16 @@ const ln = {
|
|
|
3565
3565
|
{ offset: 0.5466, color: "#1C0087" },
|
|
3566
3566
|
{ offset: 0.9715, color: "#0086EA" }
|
|
3567
3567
|
], [n] = X();
|
|
3568
|
-
return
|
|
3568
|
+
return H(() => {
|
|
3569
3569
|
t.value = a.value.querySelector("svg").getAttribute("viewBox") || "0 0 0 0";
|
|
3570
|
-
}), (
|
|
3570
|
+
}), (i, s) => (u(), v(G, null, [
|
|
3571
3571
|
k("span", z({
|
|
3572
3572
|
ref_key: "svgWrapperRef",
|
|
3573
3573
|
ref: a,
|
|
3574
3574
|
class: "bs-icon-gradient-wrapper",
|
|
3575
3575
|
style: `fill: url(#${c(n)});`
|
|
3576
|
-
},
|
|
3577
|
-
D(
|
|
3576
|
+
}, i.$attrs), [
|
|
3577
|
+
D(i.$slots, "default")
|
|
3578
3578
|
], 16),
|
|
3579
3579
|
(u(), v("svg", {
|
|
3580
3580
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3590,10 +3590,10 @@ const ln = {
|
|
|
3590
3590
|
y2: "100%",
|
|
3591
3591
|
"gradient-units": "userSpaceOnUse"
|
|
3592
3592
|
}, [
|
|
3593
|
-
(u(), v(G, null, ee(l, (
|
|
3594
|
-
key:
|
|
3595
|
-
offset:
|
|
3596
|
-
"stop-color":
|
|
3593
|
+
(u(), v(G, null, ee(l, (o) => k("stop", {
|
|
3594
|
+
key: o.offset,
|
|
3595
|
+
offset: o.offset,
|
|
3596
|
+
"stop-color": o.color
|
|
3597
3597
|
}, null, 8, Gn)), 64))
|
|
3598
3598
|
], 8, Wn)
|
|
3599
3599
|
], 8, Un))
|
|
@@ -3646,12 +3646,12 @@ const ln = {
|
|
|
3646
3646
|
},
|
|
3647
3647
|
emits: ["update:modelValue"],
|
|
3648
3648
|
setup(e, { emit: a }) {
|
|
3649
|
-
const t = e, [l, n] = X(2),
|
|
3649
|
+
const t = e, [l, n] = X(2), i = p(() => he.concat(t.passAttrs.split(",")).concat("type")), s = p(() => {
|
|
3650
3650
|
var r, f;
|
|
3651
3651
|
return ((f = (r = t.hints) == null ? void 0 : r.join) == null ? void 0 : f.call(r, `
|
|
3652
3652
|
`)) || t.hints;
|
|
3653
|
-
}),
|
|
3654
|
-
return (r, f) => (u(), v("div", z({ "data-component": "bs-input-field" }, c(
|
|
3653
|
+
}), o = p(() => t.error && t.errorMsg || t.hint || s.value || void 0), d = p(() => t.inputId || l.value);
|
|
3654
|
+
return (r, f) => (u(), v("div", z({ "data-component": "bs-input-field" }, c(Y)(r.$attrs, i.value).remaining), [
|
|
3655
3655
|
e.label || r.$slots.label ? (u(), O(ae, {
|
|
3656
3656
|
key: 0,
|
|
3657
3657
|
for: r.$attrs.id || d.value,
|
|
@@ -3675,8 +3675,8 @@ const ln = {
|
|
|
3675
3675
|
type: e.type,
|
|
3676
3676
|
value: e.value || e.modelValue,
|
|
3677
3677
|
"onUpdate:modelValue": f[0] || (f[0] = (m) => r.$emit("update:modelValue", m))
|
|
3678
|
-
}, c(
|
|
3679
|
-
|
|
3678
|
+
}, c(Y)(r.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
|
|
3679
|
+
o.value ? (u(), O(ge, {
|
|
3680
3680
|
key: 1,
|
|
3681
3681
|
error: e.error,
|
|
3682
3682
|
"error-msg": e.errorMsg,
|
|
@@ -3806,7 +3806,7 @@ const ln = {
|
|
|
3806
3806
|
},
|
|
3807
3807
|
emits: ["update:modelValue", "input-blur"],
|
|
3808
3808
|
setup(e, { expose: a, emit: t }) {
|
|
3809
|
-
const l = e, n = t,
|
|
3809
|
+
const l = e, n = t, i = [
|
|
3810
3810
|
"ArrowDown",
|
|
3811
3811
|
"ArrowLeft",
|
|
3812
3812
|
"ArrowRight",
|
|
@@ -3818,62 +3818,62 @@ const ln = {
|
|
|
3818
3818
|
"Escape",
|
|
3819
3819
|
"Home",
|
|
3820
3820
|
"Tab"
|
|
3821
|
-
], s = I(null),
|
|
3821
|
+
], s = I(null), o = I(1), d = I([]), r = I(null), [
|
|
3822
3822
|
f,
|
|
3823
3823
|
m,
|
|
3824
3824
|
b,
|
|
3825
3825
|
S
|
|
3826
|
-
] = X(4), w = I(!1),
|
|
3826
|
+
] = X(4), w = I(!1), $ = I(""), h = I(""), B = I(!1), y = I(!1), g = I(!0);
|
|
3827
3827
|
a({
|
|
3828
|
-
validationErr:
|
|
3828
|
+
validationErr: B,
|
|
3829
3829
|
validationErrMsg: h
|
|
3830
3830
|
});
|
|
3831
|
-
const M = p(() =>
|
|
3831
|
+
const M = p(() => $.value ? `+${o.value}${$.value}` : ""), T = p(() => `Country code: ${o.value}. Click to change.`), P = p(() => g.value ? l.errorMsg || h.value : ""), R = p(() => l.error || B.value), _ = p(() => l.hint || R.value && P.value), J = p(() => g.value && R.value);
|
|
3832
3832
|
j(M, (q) => {
|
|
3833
3833
|
n("update:modelValue", q), F(q);
|
|
3834
|
-
}), j(() => l.modelValue, ne), xe(),
|
|
3835
|
-
function ne(q,
|
|
3836
|
-
q === "" && q !==
|
|
3834
|
+
}), j(() => l.modelValue, ne), xe(), H(() => w.value = !0);
|
|
3835
|
+
function ne(q, K) {
|
|
3836
|
+
q === "" && q !== K && ($.value = "");
|
|
3837
3837
|
}
|
|
3838
3838
|
function me() {
|
|
3839
3839
|
var q;
|
|
3840
3840
|
y.value && (y.value = !1, (q = s.value) == null || q.focus());
|
|
3841
3841
|
}
|
|
3842
3842
|
function ye(q) {
|
|
3843
|
-
var
|
|
3844
|
-
|
|
3843
|
+
var K;
|
|
3844
|
+
o.value = q, y.value = !1, (K = s.value) == null || K.focus(), A(q);
|
|
3845
3845
|
}
|
|
3846
3846
|
function ke() {
|
|
3847
3847
|
l.deferValidation && (g.value = !0), n("input-blur");
|
|
3848
3848
|
}
|
|
3849
3849
|
function Ce(q) {
|
|
3850
|
-
|
|
3850
|
+
$.value = q.target.value, l.deferValidation && (g.value = !1);
|
|
3851
3851
|
}
|
|
3852
3852
|
function re(q) {
|
|
3853
|
-
var
|
|
3854
|
-
!((Z = (
|
|
3853
|
+
var K, Z;
|
|
3854
|
+
!((Z = (K = q.key) == null ? void 0 : K.match) != null && Z.call(K, /[0-9]/)) && !i.includes(q.key) && !q.ctrlKey && !q.metaKey && q.preventDefault();
|
|
3855
3855
|
}
|
|
3856
3856
|
function xe() {
|
|
3857
|
-
je.initSourceData(), Se(), A(
|
|
3857
|
+
je.initSourceData(), Se(), A(o.value), F(M.value);
|
|
3858
3858
|
}
|
|
3859
3859
|
function Se() {
|
|
3860
|
-
var
|
|
3860
|
+
var K, Z;
|
|
3861
3861
|
let q = ut(l.modelValue);
|
|
3862
|
-
q.valid || q.countryCode && ((Z = (
|
|
3862
|
+
q.valid || q.countryCode && ((Z = (K = l.modelValue) == null ? void 0 : K.startsWith) != null && Z.call(K, "+")) ? (o.value = q.countryCode, $.value = q.number.significant) : $.value = l.modelValue, d.value = je.data.allCountries.map((Te) => ({
|
|
3863
3863
|
...Te,
|
|
3864
|
-
isSelected:
|
|
3864
|
+
isSelected: o.value === Te
|
|
3865
3865
|
}));
|
|
3866
3866
|
}
|
|
3867
3867
|
function A(q) {
|
|
3868
3868
|
r.value = je.getCountryByCountryCode(q);
|
|
3869
3869
|
}
|
|
3870
3870
|
function F(q) {
|
|
3871
|
-
|
|
3871
|
+
B.value = q ? !ut(q).valid : !1, h.value = B.value ? "Invalid phone number" : "";
|
|
3872
3872
|
}
|
|
3873
|
-
return (q,
|
|
3873
|
+
return (q, K) => (u(), v("div", z({
|
|
3874
3874
|
class: "bs-input-phone",
|
|
3875
3875
|
"data-component": "bs-input-phone"
|
|
3876
|
-
}, c(
|
|
3876
|
+
}, c(Y)(q.$attrs, c(he)).remaining), [
|
|
3877
3877
|
L(ae, {
|
|
3878
3878
|
for: q.$attrs.id || e.inputId || c(S),
|
|
3879
3879
|
required: e.required,
|
|
@@ -3904,10 +3904,10 @@ const ln = {
|
|
|
3904
3904
|
"aria-label": T.value,
|
|
3905
3905
|
disabled: e.disabled,
|
|
3906
3906
|
type: "button",
|
|
3907
|
-
onClick:
|
|
3907
|
+
onClick: K[0] || (K[0] = (Te) => y.value = !y.value)
|
|
3908
3908
|
}, [
|
|
3909
3909
|
k("span", null, V((Z = r.value) == null ? void 0 : Z.flag), 1),
|
|
3910
|
-
k("span", null, "+" + V(
|
|
3910
|
+
k("span", null, "+" + V(o.value), 1),
|
|
3911
3911
|
L(c(Ft), { size: "sm" })
|
|
3912
3912
|
], 8, Hn),
|
|
3913
3913
|
L(Ie, z({
|
|
@@ -3915,10 +3915,10 @@ const ln = {
|
|
|
3915
3915
|
disabled: e.disabled,
|
|
3916
3916
|
"hint-id": c(b),
|
|
3917
3917
|
placeholder: e.placeholder,
|
|
3918
|
-
value:
|
|
3918
|
+
value: $.value,
|
|
3919
3919
|
"data-autowidth": "",
|
|
3920
3920
|
type: "tel"
|
|
3921
|
-
}, c(
|
|
3921
|
+
}, c(Y)(q.$attrs, c(he)).filtered, {
|
|
3922
3922
|
onInput: Ce,
|
|
3923
3923
|
onFocusout: ke,
|
|
3924
3924
|
onKeydown: re
|
|
@@ -3940,7 +3940,7 @@ const ln = {
|
|
|
3940
3940
|
"anchor-id": c(f),
|
|
3941
3941
|
"helper-text": "Country Code",
|
|
3942
3942
|
label: "Country Code",
|
|
3943
|
-
"model-value":
|
|
3943
|
+
"model-value": o.value,
|
|
3944
3944
|
"options-id": c(m),
|
|
3945
3945
|
preloaded: "",
|
|
3946
3946
|
shown: y.value,
|
|
@@ -4013,29 +4013,29 @@ const ln = {
|
|
|
4013
4013
|
emits: ["clear", "update:modelValue"],
|
|
4014
4014
|
setup(e, { emit: a }) {
|
|
4015
4015
|
const t = e, l = p(() => he.concat(t.passAttrs.split(","))), n = p(() => !t.disabled && !t.hideClear && t.variant !== "filter");
|
|
4016
|
-
return (
|
|
4016
|
+
return (i, s) => (u(), O(Le, z({
|
|
4017
4017
|
class: "bs-input-search",
|
|
4018
4018
|
"data-component": "bs-input-search",
|
|
4019
4019
|
"data-variant": e.variant,
|
|
4020
4020
|
disabled: e.disabled
|
|
4021
|
-
}, c(
|
|
4021
|
+
}, c(Y)(i.$attrs, l.value).remaining), {
|
|
4022
4022
|
default: E(() => [
|
|
4023
4023
|
e.hideSearchIcon ? x("", !0) : (u(), O(c(jt), { key: 0 })),
|
|
4024
4024
|
L(Ie, z({
|
|
4025
4025
|
"data-autowidth": "",
|
|
4026
4026
|
disabled: e.disabled,
|
|
4027
|
-
"input-id":
|
|
4027
|
+
"input-id": i.$attrs.id || e.inputId,
|
|
4028
4028
|
placeholder: e.placeholder,
|
|
4029
4029
|
value: e.value || e.modelValue
|
|
4030
|
-
}, c(
|
|
4031
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
4030
|
+
}, c(Y)(i.$attrs, l.value).filtered, {
|
|
4031
|
+
"onUpdate:modelValue": s[0] || (s[0] = (o) => i.$emit("update:modelValue", o))
|
|
4032
4032
|
}), null, 16, ["disabled", "input-id", "placeholder", "value"]),
|
|
4033
4033
|
de(k("button", {
|
|
4034
4034
|
title: "Clear",
|
|
4035
4035
|
type: "button",
|
|
4036
|
-
onClick: s[1] || (s[1] = (
|
|
4036
|
+
onClick: s[1] || (s[1] = (o) => i.$emit("clear"))
|
|
4037
4037
|
}, [
|
|
4038
|
-
L(c(
|
|
4038
|
+
L(c($e), { size: "sm" })
|
|
4039
4039
|
], 512), [
|
|
4040
4040
|
[ue, n.value]
|
|
4041
4041
|
])
|
|
@@ -4158,23 +4158,23 @@ const ln = {
|
|
|
4158
4158
|
},
|
|
4159
4159
|
emits: ["update:inputValue", "update:optionsValue"],
|
|
4160
4160
|
setup(e, { emit: a }) {
|
|
4161
|
-
const t = e, l = a, n = I(!1),
|
|
4162
|
-
let
|
|
4161
|
+
const t = e, l = a, n = I(!1), i = I(!1), [s] = X();
|
|
4162
|
+
let o = [];
|
|
4163
4163
|
j(() => t.inputValue, () => {
|
|
4164
|
-
|
|
4164
|
+
i.value ? i.value = !1 : h();
|
|
4165
4165
|
});
|
|
4166
4166
|
const d = p(() => t.typeaheadId || s.value), r = p(() => `${d.value}-input-container`), f = p(() => `${d.value}-input`), m = p(() => `${d.value}-options`), b = p(() => t.multiselect ? Array.isArray(t.optionsValue) ? t.optionsValue : [t.optionsValue] : t.optionsValue), S = p(() => {
|
|
4167
4167
|
if (n.value) {
|
|
4168
4168
|
let T = t.options;
|
|
4169
4169
|
const P = t.inputValue.toLowerCase(), R = t.filterType === "includes" ? "includes" : "startsWith";
|
|
4170
|
-
return t.inputValue.length >= t.characterThreshold && (T = w(T, P, R), T = T.slice(0, t.maxOptions), T =
|
|
4170
|
+
return t.inputValue.length >= t.characterThreshold && (T = w(T, P, R), T = T.slice(0, t.maxOptions), T = $(T, P, R), o = T), T;
|
|
4171
4171
|
} else
|
|
4172
|
-
return
|
|
4172
|
+
return o;
|
|
4173
4173
|
});
|
|
4174
4174
|
function w(T, P, R) {
|
|
4175
4175
|
return t.internalFiltering ? T.filter((_) => _.label.toLowerCase()[R](P)) : T;
|
|
4176
4176
|
}
|
|
4177
|
-
function
|
|
4177
|
+
function $(T, P, R) {
|
|
4178
4178
|
return T.map((_) => {
|
|
4179
4179
|
let J = _.label;
|
|
4180
4180
|
if (P !== "") {
|
|
@@ -4187,11 +4187,11 @@ const ln = {
|
|
|
4187
4187
|
function h() {
|
|
4188
4188
|
t.showDropdownOnFocus || t.inputValue.length >= t.characterThreshold ? n.value = !0 : n.value = !1;
|
|
4189
4189
|
}
|
|
4190
|
-
function
|
|
4190
|
+
function B() {
|
|
4191
4191
|
l("update:inputValue", ""), t.multiselect || l("update:optionsValue", ""), document.getElementById(f.value).focus();
|
|
4192
4192
|
}
|
|
4193
4193
|
function y(T) {
|
|
4194
|
-
|
|
4194
|
+
i.value = !0;
|
|
4195
4195
|
const P = S.value.find((R) => R.value === T);
|
|
4196
4196
|
l("update:inputValue", P.label), l("update:optionsValue", T);
|
|
4197
4197
|
}
|
|
@@ -4235,7 +4235,7 @@ const ln = {
|
|
|
4235
4235
|
role: "combobox",
|
|
4236
4236
|
value: e.inputValue
|
|
4237
4237
|
}, T.$attrs, {
|
|
4238
|
-
onClear:
|
|
4238
|
+
onClear: B,
|
|
4239
4239
|
onFocusin: h,
|
|
4240
4240
|
"onUpdate:modelValue": P[0] || (P[0] = (R) => l("update:inputValue", R))
|
|
4241
4241
|
}), null, 16, ["aria-controls", "aria-expanded", "disabled", "hide-clear", "hide-search-icon", "input-id", "placeholder", "value"])
|
|
@@ -4366,14 +4366,20 @@ const ln = {
|
|
|
4366
4366
|
emits: ["after-enter", "after-leave"],
|
|
4367
4367
|
setup(e, { emit: a }) {
|
|
4368
4368
|
const t = e, l = a, { transition: n } = Ee(t);
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
}
|
|
4369
|
+
H(() => {
|
|
4370
|
+
i();
|
|
4371
|
+
}), j(n, () => {
|
|
4372
|
+
i();
|
|
4373
|
+
});
|
|
4374
|
+
function i() {
|
|
4375
|
+
n.value ? document.body.setAttribute("data-scroll", "false") : document.body.removeAttribute("data-scroll");
|
|
4376
|
+
}
|
|
4377
|
+
return (s, o) => (u(), O(De, {
|
|
4372
4378
|
name: "bs-overlay",
|
|
4373
4379
|
shown: c(n),
|
|
4374
4380
|
preloaded: e.preloaded,
|
|
4375
|
-
onAfterEnter:
|
|
4376
|
-
onAfterLeave:
|
|
4381
|
+
onAfterEnter: o[0] || (o[0] = (d) => l("after-enter")),
|
|
4382
|
+
onAfterLeave: o[1] || (o[1] = (d) => l("after-leave"))
|
|
4377
4383
|
}, {
|
|
4378
4384
|
default: E(() => [
|
|
4379
4385
|
k("div", {
|
|
@@ -4429,14 +4435,14 @@ const ln = {
|
|
|
4429
4435
|
},
|
|
4430
4436
|
emits: ["close", "after-enter", "after-leave"],
|
|
4431
4437
|
setup(e, { emit: a }) {
|
|
4432
|
-
const t = e, l = a, { transition: n } = Ee(t), [
|
|
4438
|
+
const t = e, l = a, { transition: n } = Ee(t), [i] = X();
|
|
4433
4439
|
let s = !1;
|
|
4434
|
-
const
|
|
4435
|
-
|
|
4440
|
+
const o = I(null), d = (m) => {
|
|
4441
|
+
o.value && m.target.closest(".bs-overlay") && l("close", t.modalId);
|
|
4436
4442
|
};
|
|
4437
|
-
|
|
4443
|
+
H(() => {
|
|
4438
4444
|
document.addEventListener("click", d);
|
|
4439
|
-
}),
|
|
4445
|
+
}), Be(() => {
|
|
4440
4446
|
document.removeEventListener("click", d);
|
|
4441
4447
|
}), pe(["Escape"], () => {
|
|
4442
4448
|
s && l("close", t.modalId);
|
|
@@ -4463,11 +4469,11 @@ const ln = {
|
|
|
4463
4469
|
id: e.modalId,
|
|
4464
4470
|
class: "bs-modal",
|
|
4465
4471
|
role: e.alert ? "alertdialog" : "dialog",
|
|
4466
|
-
"aria-labelledby": e.title && !m.$attrs["aria-label"] ? c(
|
|
4472
|
+
"aria-labelledby": e.title && !m.$attrs["aria-label"] ? c(i) : void 0,
|
|
4467
4473
|
"aria-modal": "true"
|
|
4468
4474
|
}, m.$attrs, {
|
|
4469
4475
|
ref_key: "modalRef",
|
|
4470
|
-
ref:
|
|
4476
|
+
ref: o,
|
|
4471
4477
|
"data-shown": c(n)
|
|
4472
4478
|
}), [
|
|
4473
4479
|
e.title || e.closeButton ? (u(), v("header", {
|
|
@@ -4479,7 +4485,7 @@ const ln = {
|
|
|
4479
4485
|
}, [
|
|
4480
4486
|
e.title ? (u(), v("span", {
|
|
4481
4487
|
key: 0,
|
|
4482
|
-
id: c(
|
|
4488
|
+
id: c(i),
|
|
4483
4489
|
class: "modal-title"
|
|
4484
4490
|
}, V(e.title), 9, vl)) : x("", !0),
|
|
4485
4491
|
e.closeButton ? (u(), v("button", {
|
|
@@ -4489,7 +4495,7 @@ const ln = {
|
|
|
4489
4495
|
"aria-label": "Close Modal",
|
|
4490
4496
|
onClick: b[0] || (b[0] = (S) => l("close", e.modalId))
|
|
4491
4497
|
}, [
|
|
4492
|
-
L(c(
|
|
4498
|
+
L(c($e), { class: "close-button" })
|
|
4493
4499
|
])) : x("", !0)
|
|
4494
4500
|
], 2)) : x("", !0),
|
|
4495
4501
|
D(m.$slots, "default")
|
|
@@ -4502,10 +4508,10 @@ const ln = {
|
|
|
4502
4508
|
}), ml = ["data-variant", "data-fixed"], bl = {
|
|
4503
4509
|
key: 0,
|
|
4504
4510
|
class: "bs-pagination-carets"
|
|
4505
|
-
}, gl = ["aria-label", "title", "disabled"], yl = { key: 0 }, Sl = ["aria-label", "title", "disabled"], wl = { key: 0 },
|
|
4511
|
+
}, gl = ["aria-label", "title", "disabled"], yl = { key: 0 }, Sl = ["aria-label", "title", "disabled"], wl = { key: 0 }, Bl = {
|
|
4506
4512
|
key: 1,
|
|
4507
4513
|
class: "bs-pagination-page-numbers"
|
|
4508
|
-
},
|
|
4514
|
+
}, $l = ["title", "data-selected", "onClick"], Il = { key: 2 }, kl = { key: 3 }, Cl = /* @__PURE__ */ k("span", null, "Results Per Page:", -1), xl = { class: "bs-pagination-results-numbers" }, Tl = ["data-selected", "disabled", "onClick"], Al = {
|
|
4509
4515
|
key: 5,
|
|
4510
4516
|
class: "bs-pagination-carets"
|
|
4511
4517
|
}, Vl = ["aria-label", "title", "disabled"], Ol = { key: 0 }, El = ["aria-label", "title", "disabled"], Ll = { key: 0 }, Zo = {
|
|
@@ -4595,23 +4601,23 @@ const ln = {
|
|
|
4595
4601
|
emits: ["selchange", "update:modelValue"],
|
|
4596
4602
|
setup(e, { emit: a }) {
|
|
4597
4603
|
const t = e, l = a, n = I(null);
|
|
4598
|
-
|
|
4599
|
-
|
|
4604
|
+
H(() => {
|
|
4605
|
+
i.value ? n.value = i.value : t.variant === "results" ? n.value = $.value[0] : n.value = 1;
|
|
4600
4606
|
});
|
|
4601
|
-
const
|
|
4607
|
+
const i = p(() => t.modelValue || t.selection);
|
|
4602
4608
|
j(() => t.selection, (h) => {
|
|
4603
4609
|
n.value = h;
|
|
4604
4610
|
}), j(() => t.modelValue, (h) => {
|
|
4605
4611
|
n.value = h;
|
|
4606
|
-
}), j(n, (h,
|
|
4607
|
-
|
|
4612
|
+
}), j(n, (h, B) => {
|
|
4613
|
+
B !== null && (l("selchange", h), l("update:modelValue", h));
|
|
4608
4614
|
});
|
|
4609
4615
|
const s = p(() => {
|
|
4610
4616
|
if (t.variant === "group")
|
|
4611
4617
|
return Math.ceil(t.itemsCount / t.itemsPerGroup);
|
|
4612
4618
|
if (t.variant === "base")
|
|
4613
4619
|
return t.pageCount;
|
|
4614
|
-
}),
|
|
4620
|
+
}), o = p(() => t.variant === "base" ? t.centerDisplay === "text" ? "group" : void 0 : t.variant);
|
|
4615
4621
|
function d() {
|
|
4616
4622
|
n.value = 1;
|
|
4617
4623
|
}
|
|
@@ -4630,19 +4636,19 @@ const ln = {
|
|
|
4630
4636
|
const b = p(() => {
|
|
4631
4637
|
if (t.pageCount <= t.pageRange)
|
|
4632
4638
|
return [...Array(t.pageCount + 1).keys()].slice(1);
|
|
4633
|
-
const h = [1],
|
|
4634
|
-
let y = n.value -
|
|
4639
|
+
const h = [1], B = (t.pageRange - 1) / 2;
|
|
4640
|
+
let y = n.value - B, g = n.value + B;
|
|
4635
4641
|
y < 1 && (g += 1 - y, y = 1), g > t.pageCount && (y -= g - t.pageCount, g = t.pageCount), y = Math.max(y, 2), g = Math.min(g, t.pageCount - 1), y > 2 && h.push(t.breakText);
|
|
4636
4642
|
for (let M = y; M <= g; M++)
|
|
4637
4643
|
h.push(M);
|
|
4638
4644
|
return g < t.pageCount - 1 && h.push(t.breakText), h.push(t.pageCount), h;
|
|
4639
4645
|
}), S = p(() => `${t.centerLabel ?? "Page"} ${n.value} of ${s.value}`), w = p(() => {
|
|
4640
|
-
const h = (n.value - 1) * t.itemsPerGroup + 1,
|
|
4641
|
-
return `${t.centerLabel ?? "Results"} ${h} - ${
|
|
4642
|
-
}),
|
|
4643
|
-
return (h,
|
|
4646
|
+
const h = (n.value - 1) * t.itemsPerGroup + 1, B = Math.min(h - 1 + t.itemsPerGroup, t.itemsCount);
|
|
4647
|
+
return `${t.centerLabel ?? "Results"} ${h} - ${B} of ${t.itemsCount}`;
|
|
4648
|
+
}), $ = p(() => t.resultsIncrements.split(",").map((h) => parseInt(h)));
|
|
4649
|
+
return (h, B) => (u(), v("div", {
|
|
4644
4650
|
class: "bs-pagination",
|
|
4645
|
-
"data-variant":
|
|
4651
|
+
"data-variant": o.value,
|
|
4646
4652
|
"data-fixed": t.fixed
|
|
4647
4653
|
}, [
|
|
4648
4654
|
e.variant === "base" || e.variant === "group" ? (u(), v("div", bl, [
|
|
@@ -4666,25 +4672,25 @@ const ln = {
|
|
|
4666
4672
|
disabled: n.value === 1,
|
|
4667
4673
|
onClick: r
|
|
4668
4674
|
}, [
|
|
4669
|
-
L(c(
|
|
4675
|
+
L(c($t)),
|
|
4670
4676
|
e.prevPageText ? (u(), v("span", wl, V(e.prevPageText), 1)) : x("", !0)
|
|
4671
4677
|
], 10, Sl)
|
|
4672
4678
|
])) : x("", !0),
|
|
4673
|
-
e.variant === "base" && e.centerDisplay === "numbers" ? (u(), v("div",
|
|
4679
|
+
e.variant === "base" && e.centerDisplay === "numbers" ? (u(), v("div", Bl, [
|
|
4674
4680
|
(u(!0), v(G, null, ee(b.value, (y) => (u(), v("button", {
|
|
4675
4681
|
key: `page-${y}-button`,
|
|
4676
4682
|
type: "button",
|
|
4677
4683
|
title: `Page ${y}`,
|
|
4678
4684
|
"data-selected": y === n.value,
|
|
4679
4685
|
onClick: (g) => n.value = y
|
|
4680
|
-
}, V(y), 9,
|
|
4686
|
+
}, V(y), 9, $l))), 128))
|
|
4681
4687
|
])) : x("", !0),
|
|
4682
4688
|
t.variant === "base" && t.centerDisplay === "text" ? (u(), v("span", Il, V(S.value), 1)) : x("", !0),
|
|
4683
4689
|
t.variant === "group" ? (u(), v("span", kl, V(w.value), 1)) : x("", !0),
|
|
4684
4690
|
t.variant === "results" ? (u(), v(G, { key: 4 }, [
|
|
4685
4691
|
Cl,
|
|
4686
4692
|
k("div", xl, [
|
|
4687
|
-
(u(!0), v(G, null, ee(
|
|
4693
|
+
(u(!0), v(G, null, ee($.value, (y) => (u(), v("button", {
|
|
4688
4694
|
type: "button",
|
|
4689
4695
|
key: `results-${y}`,
|
|
4690
4696
|
"data-selected": y === n.value,
|
|
@@ -4703,7 +4709,7 @@ const ln = {
|
|
|
4703
4709
|
onClick: f
|
|
4704
4710
|
}, [
|
|
4705
4711
|
e.nextPageText ? (u(), v("span", Ol, V(e.nextPageText), 1)) : x("", !0),
|
|
4706
|
-
L(c(
|
|
4712
|
+
L(c(Bt))
|
|
4707
4713
|
], 10, Vl),
|
|
4708
4714
|
e.showFirstLastButtons ? (u(), v("button", {
|
|
4709
4715
|
key: 0,
|
|
@@ -4744,8 +4750,8 @@ const ln = {
|
|
|
4744
4750
|
}
|
|
4745
4751
|
},
|
|
4746
4752
|
setup(e) {
|
|
4747
|
-
const a = e, { onLinkClick: t } = ze(a), l = ve(), { rootTag: n, attrsToBind:
|
|
4748
|
-
return (
|
|
4753
|
+
const a = e, { onLinkClick: t } = ze(a), l = ve(), { rootTag: n, attrsToBind: i, hrefUrl: s } = Ne(a, l, "span");
|
|
4754
|
+
return (o, d) => (u(), O(te(c(n)), z({
|
|
4749
4755
|
class: "bs-pill",
|
|
4750
4756
|
"data-active": e.active,
|
|
4751
4757
|
"data-component": "bs-pill",
|
|
@@ -4753,10 +4759,10 @@ const ln = {
|
|
|
4753
4759
|
"data-variant": e.variant || void 0,
|
|
4754
4760
|
disabled: e.disabled,
|
|
4755
4761
|
".href": c(s)
|
|
4756
|
-
}, c(
|
|
4762
|
+
}, c(i), { onClick: c(t) }), {
|
|
4757
4763
|
default: E(() => [
|
|
4758
4764
|
k("span", { "data-truncate": e.truncate }, [
|
|
4759
|
-
D(
|
|
4765
|
+
D(o.$slots, "default")
|
|
4760
4766
|
], 8, Dl)
|
|
4761
4767
|
]),
|
|
4762
4768
|
_: 3
|
|
@@ -4789,17 +4795,17 @@ const ln = {
|
|
|
4789
4795
|
},
|
|
4790
4796
|
emits: ["action-toggled"],
|
|
4791
4797
|
setup(e, { emit: a }) {
|
|
4792
|
-
const t = e, l = a, { icon: n } = Pe(t, "actionIcon"), { icon:
|
|
4793
|
-
function s(
|
|
4794
|
-
|
|
4798
|
+
const t = e, l = a, { icon: n } = Pe(t, "actionIcon"), { icon: i } = Pe(t, "miscMetaIcon");
|
|
4799
|
+
function s(o) {
|
|
4800
|
+
o.target.tagName === "BUTTON" && (o.preventDefault(), o.stopImmediatePropagation(), l("action-toggled"));
|
|
4795
4801
|
}
|
|
4796
|
-
return (
|
|
4797
|
-
e.action ||
|
|
4802
|
+
return (o, d) => (u(), v("div", Pl, [
|
|
4803
|
+
e.action || o.$slots.action ? (u(), v("button", {
|
|
4798
4804
|
key: 0,
|
|
4799
4805
|
"data-icon": "true",
|
|
4800
4806
|
onClick: s
|
|
4801
4807
|
}, [
|
|
4802
|
-
D(
|
|
4808
|
+
D(o.$slots, "action", {}, () => [
|
|
4803
4809
|
e.actionIcon ? (u(), O(te(c(n) ? c(n) : "span"), {
|
|
4804
4810
|
key: 0,
|
|
4805
4811
|
class: "bs-icon"
|
|
@@ -4811,9 +4817,9 @@ const ln = {
|
|
|
4811
4817
|
e.company ? (u(), v("span", Ml, V(e.company), 1)) : x("", !0),
|
|
4812
4818
|
e.jobTitle ? (u(), v("span", Nl, V(e.jobTitle), 1)) : x("", !0),
|
|
4813
4819
|
e.email ? (u(), v("span", zl, V(e.email), 1)) : x("", !0),
|
|
4814
|
-
e.miscMeta ||
|
|
4815
|
-
D(
|
|
4816
|
-
e.miscMetaIcon ? (u(), O(te(c(
|
|
4820
|
+
e.miscMeta || o.$slots.misc ? (u(), v("span", Rl, [
|
|
4821
|
+
D(o.$slots, "misc", {}, () => [
|
|
4822
|
+
e.miscMetaIcon ? (u(), O(te(c(i) ? c(i) : "span"), {
|
|
4817
4823
|
key: 0,
|
|
4818
4824
|
class: "bs-icon"
|
|
4819
4825
|
})) : x("", !0),
|
|
@@ -4852,12 +4858,12 @@ const ln = {
|
|
|
4852
4858
|
},
|
|
4853
4859
|
emits: ["action-toggled"],
|
|
4854
4860
|
setup(e, { emit: a }) {
|
|
4855
|
-
const t = e, l = a, n = ve(), { onLinkClick:
|
|
4861
|
+
const t = e, l = a, n = ve(), { onLinkClick: i } = ze(t), { rootTag: s, attrsToBind: o, hrefUrl: d } = Ne(t, n, "div");
|
|
4856
4862
|
return (r, f) => (u(), O(te(c(s)), z({
|
|
4857
4863
|
class: "bs-profile",
|
|
4858
4864
|
".href": c(d),
|
|
4859
4865
|
"data-layout": e.layout
|
|
4860
|
-
}, c(
|
|
4866
|
+
}, c(o), { onClick: c(i) }), {
|
|
4861
4867
|
default: E(() => [
|
|
4862
4868
|
L(Tt, {
|
|
4863
4869
|
src: e.imageSrc,
|
|
@@ -4897,7 +4903,7 @@ function Et(e) {
|
|
|
4897
4903
|
case void 0:
|
|
4898
4904
|
case null:
|
|
4899
4905
|
case "":
|
|
4900
|
-
return (n = e.steps.filter((
|
|
4906
|
+
return (n = e.steps.filter((i) => i.status === "complete")) == null ? void 0 : n.length;
|
|
4901
4907
|
case "complete":
|
|
4902
4908
|
return e.steps.length;
|
|
4903
4909
|
case "in-progress":
|
|
@@ -4906,8 +4912,8 @@ function Et(e) {
|
|
|
4906
4912
|
return e.currentStep;
|
|
4907
4913
|
}
|
|
4908
4914
|
}), t = p(() => `${a.value} of ${e.steps.length} completed.`);
|
|
4909
|
-
function l(n,
|
|
4910
|
-
return n || (e.currentStatus ?
|
|
4915
|
+
function l(n, i) {
|
|
4916
|
+
return n || (e.currentStatus ? i < e.currentStep ? "complete" : i === e.currentStep ? e.currentStatus : "not-started" : "not-started");
|
|
4911
4917
|
}
|
|
4912
4918
|
return {
|
|
4913
4919
|
progressStep: a,
|
|
@@ -4944,21 +4950,21 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
4944
4950
|
},
|
|
4945
4951
|
setup(e) {
|
|
4946
4952
|
const a = e, { progressStep: t, progressText: l, getStatus: n } = Et(a);
|
|
4947
|
-
return (
|
|
4953
|
+
return (i, s) => (u(), v("div", {
|
|
4948
4954
|
"aria-valuemax": e.steps.length,
|
|
4949
4955
|
"aria-valuenow": c(t),
|
|
4950
4956
|
"aria-valuetext": c(l),
|
|
4951
4957
|
class: "bs-progress-bar",
|
|
4952
4958
|
role: "progressbar"
|
|
4953
4959
|
}, [
|
|
4954
|
-
(u(!0), v(G, null, ee(e.steps, (
|
|
4960
|
+
(u(!0), v(G, null, ee(e.steps, (o, d) => (u(), v("div", {
|
|
4955
4961
|
class: "bs-step-item",
|
|
4956
|
-
"data-status": c(n)(
|
|
4962
|
+
"data-status": c(n)(o.status, d),
|
|
4957
4963
|
"data-variant": "progress",
|
|
4958
|
-
key:
|
|
4964
|
+
key: o.id || o.label,
|
|
4959
4965
|
role: "status"
|
|
4960
4966
|
}, [
|
|
4961
|
-
k("span", null, V(
|
|
4967
|
+
k("span", null, V(o.label || o) + " : " + V(c(n)(o.status, d) || "not started"), 1)
|
|
4962
4968
|
], 8, Ul))), 128))
|
|
4963
4969
|
], 8, jl));
|
|
4964
4970
|
}
|
|
@@ -5006,33 +5012,33 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5006
5012
|
},
|
|
5007
5013
|
emits: ["update:modelValue"],
|
|
5008
5014
|
setup(e, { emit: a }) {
|
|
5009
|
-
const t = e, [l] = X(), n = p(() => et.concat(t.passAttrs.split(","))),
|
|
5010
|
-
return (
|
|
5015
|
+
const t = e, [l] = X(), n = p(() => et.concat(t.passAttrs.split(","))), i = p(() => t.inputId || l.value), s = p(() => t.checked || t.modelValue && t.modelValue === t.value);
|
|
5016
|
+
return (o, d) => (u(), v("div", z({
|
|
5011
5017
|
class: "bs-boolean",
|
|
5012
5018
|
"data-component": "bs-radio",
|
|
5013
5019
|
"data-disabled": e.disabled,
|
|
5014
5020
|
"data-error": e.error,
|
|
5015
5021
|
"data-size": e.size
|
|
5016
|
-
}, c(
|
|
5022
|
+
}, c(Y)(o.$attrs, n.value).remaining), [
|
|
5017
5023
|
k("input", z({
|
|
5018
5024
|
checked: s.value,
|
|
5019
5025
|
disabled: e.disabled,
|
|
5020
|
-
id:
|
|
5026
|
+
id: o.$attrs.id || i.value,
|
|
5021
5027
|
required: e.required,
|
|
5022
5028
|
type: "radio",
|
|
5023
5029
|
value: e.value,
|
|
5024
5030
|
"data-error": e.error
|
|
5025
|
-
}, c(
|
|
5026
|
-
onChange: d[0] || (d[0] = (r) =>
|
|
5031
|
+
}, c(Y)(o.$attrs, n.value).filtered, {
|
|
5032
|
+
onChange: d[0] || (d[0] = (r) => o.$emit("update:modelValue", r.target.value))
|
|
5027
5033
|
}), null, 16, Gl),
|
|
5028
|
-
e.label ||
|
|
5034
|
+
e.label || o.$slots.label ? (u(), O(ae, {
|
|
5029
5035
|
key: 0,
|
|
5030
|
-
for:
|
|
5036
|
+
for: o.$attrs.id || i.value,
|
|
5031
5037
|
disabled: e.disabled,
|
|
5032
5038
|
required: e.required
|
|
5033
5039
|
}, {
|
|
5034
5040
|
default: E(() => [
|
|
5035
|
-
D(
|
|
5041
|
+
D(o.$slots, "label", {}, () => [
|
|
5036
5042
|
W(V(e.label), 1)
|
|
5037
5043
|
])
|
|
5038
5044
|
]),
|
|
@@ -5054,7 +5060,7 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5054
5060
|
emits: ["update:modelValue"],
|
|
5055
5061
|
setup(e, { emit: a }) {
|
|
5056
5062
|
const t = e, l = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
5057
|
-
return (n,
|
|
5063
|
+
return (n, i) => (u(), v("select", z({
|
|
5058
5064
|
id: n.$attrs.id || e.inputId,
|
|
5059
5065
|
class: "bs-select",
|
|
5060
5066
|
"data-component": "bs-select",
|
|
@@ -5063,7 +5069,7 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5063
5069
|
"data-error": e.error,
|
|
5064
5070
|
value: e.value || e.modelValue
|
|
5065
5071
|
}, l.value, {
|
|
5066
|
-
onChange:
|
|
5072
|
+
onChange: i[0] || (i[0] = (s) => n.$emit("update:modelValue", s.target.value))
|
|
5067
5073
|
}), [
|
|
5068
5074
|
D(n.$slots, "default")
|
|
5069
5075
|
], 16, Hl));
|
|
@@ -5112,15 +5118,15 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5112
5118
|
modelValue: [String, Number]
|
|
5113
5119
|
},
|
|
5114
5120
|
setup(e) {
|
|
5115
|
-
const a = e, [t, l] = X(2), n = p(() => Na.concat(a.passAttrs.split(","))),
|
|
5121
|
+
const a = e, [t, l] = X(2), n = p(() => Na.concat(a.passAttrs.split(","))), i = p(() => {
|
|
5116
5122
|
var r, f;
|
|
5117
5123
|
return ((f = (r = a.hints) == null ? void 0 : r.join) == null ? void 0 : f.call(r, `
|
|
5118
5124
|
`)) || a.hints;
|
|
5119
|
-
}), s = p(() => a.error && a.errorMsg || a.hint ||
|
|
5120
|
-
return (r, f) => (u(), v("div", z({ "data-component": "bs-select-field" }, c(
|
|
5125
|
+
}), s = p(() => a.error && a.errorMsg || a.hint || i.value || void 0), o = p(() => a.inputId || t.value), d = p(() => a.value || a.modelValue);
|
|
5126
|
+
return (r, f) => (u(), v("div", z({ "data-component": "bs-select-field" }, c(Y)(r.$attrs, n.value).remaining), [
|
|
5121
5127
|
e.label || r.$slots.label ? (u(), O(ae, {
|
|
5122
5128
|
key: 0,
|
|
5123
|
-
for: r.$attrs.id ||
|
|
5129
|
+
for: r.$attrs.id || o.value,
|
|
5124
5130
|
disabled: e.disabled,
|
|
5125
5131
|
required: e.required
|
|
5126
5132
|
}, {
|
|
@@ -5135,11 +5141,11 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5135
5141
|
disabled: e.disabled,
|
|
5136
5142
|
error: e.error,
|
|
5137
5143
|
"hint-id": c(l),
|
|
5138
|
-
"input-id": r.$attrs.id ||
|
|
5144
|
+
"input-id": r.$attrs.id || o.value,
|
|
5139
5145
|
required: e.required,
|
|
5140
5146
|
value: d.value,
|
|
5141
5147
|
"onUpdate:modelValue": f[0] || (f[0] = (m) => r.$emit("update:modelValue", m))
|
|
5142
|
-
}, c(
|
|
5148
|
+
}, c(Y)(r.$attrs, n.value).filtered), {
|
|
5143
5149
|
default: E(() => [
|
|
5144
5150
|
k("option", {
|
|
5145
5151
|
selected: !d.value,
|
|
@@ -5160,7 +5166,7 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5160
5166
|
"data-disabled": e.disabled,
|
|
5161
5167
|
error: e.error,
|
|
5162
5168
|
"error-msg": e.errorMsg,
|
|
5163
|
-
hint: e.hint ||
|
|
5169
|
+
hint: e.hint || i.value,
|
|
5164
5170
|
"hint-id": c(l)
|
|
5165
5171
|
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
5166
5172
|
], 16));
|
|
@@ -5211,13 +5217,13 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5211
5217
|
},
|
|
5212
5218
|
emits: ["update:modelValue"],
|
|
5213
5219
|
setup(e, { emit: a }) {
|
|
5214
|
-
const t = e, l = a, [n] = X(),
|
|
5220
|
+
const t = e, l = a, [n] = X(), i = p(() => et.concat(t.passAttrs.split(","))), s = p(() => t.inputId || n.value), o = p(() => t.checked || t.modelValue);
|
|
5215
5221
|
return (d, r) => (u(), v("div", z({
|
|
5216
5222
|
class: "bs-boolean",
|
|
5217
5223
|
"data-component": "bs-switch",
|
|
5218
5224
|
"data-disabled": e.disabled,
|
|
5219
5225
|
"data-size": e.size
|
|
5220
|
-
}, c(
|
|
5226
|
+
}, c(Y)(d.$attrs, i.value).remaining), [
|
|
5221
5227
|
e.label || d.$slots.label ? (u(), O(ae, {
|
|
5222
5228
|
key: 0,
|
|
5223
5229
|
for: d.$attrs.id || s.value,
|
|
@@ -5238,11 +5244,11 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5238
5244
|
"data-size": e.size
|
|
5239
5245
|
}, [
|
|
5240
5246
|
k("input", z({
|
|
5241
|
-
checked:
|
|
5247
|
+
checked: o.value,
|
|
5242
5248
|
disabled: e.disabled,
|
|
5243
5249
|
id: d.$attrs.id || s.value,
|
|
5244
5250
|
type: "checkbox"
|
|
5245
|
-
}, c(
|
|
5251
|
+
}, c(Y)(d.$attrs, i.value).filtered, {
|
|
5246
5252
|
onChange: r[0] || (r[0] = (f) => l("update:modelValue", f.target.checked))
|
|
5247
5253
|
}), null, 16, Jl),
|
|
5248
5254
|
k("span", {
|
|
@@ -5270,8 +5276,8 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5270
5276
|
},
|
|
5271
5277
|
emits: ["tabClick"],
|
|
5272
5278
|
setup(e, { emit: a }) {
|
|
5273
|
-
const t = e, l = ve(), n = I(),
|
|
5274
|
-
function
|
|
5279
|
+
const t = e, l = ve(), n = I(), i = p(() => t.activeTabId === l.id), s = p(() => t.panelId || `${l.id}-panel`);
|
|
5280
|
+
function o(r) {
|
|
5275
5281
|
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), d());
|
|
5276
5282
|
}
|
|
5277
5283
|
function d() {
|
|
@@ -5282,7 +5288,7 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5282
5288
|
}
|
|
5283
5289
|
return (r, f) => (u(), v("div", {
|
|
5284
5290
|
"aria-controls": s.value,
|
|
5285
|
-
"aria-selected":
|
|
5291
|
+
"aria-selected": i.value ? "true" : "false",
|
|
5286
5292
|
"data-hidden": e.hidden || void 0,
|
|
5287
5293
|
"data-component": "bs-tab",
|
|
5288
5294
|
role: "tab",
|
|
@@ -5290,7 +5296,7 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5290
5296
|
ref_key: "hostEl",
|
|
5291
5297
|
ref: n,
|
|
5292
5298
|
onClick: d,
|
|
5293
|
-
onKeydown:
|
|
5299
|
+
onKeydown: o
|
|
5294
5300
|
}, [
|
|
5295
5301
|
D(r.$slots, "default")
|
|
5296
5302
|
], 40, eo));
|
|
@@ -5306,7 +5312,7 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5306
5312
|
},
|
|
5307
5313
|
emits: ["tabChange", "update:modelValue"],
|
|
5308
5314
|
setup(e, { emit: a }) {
|
|
5309
|
-
const t = e, l = a, n = I(!1),
|
|
5315
|
+
const t = e, l = a, n = I(!1), i = I(!1), s = I([]), o = I(!1), d = I(!1), r = I(), f = I([]), m = I(!1), b = I([]), S = I(), w = I([]), $ = I(), h = I(), [B, y] = X(2), g = p(() => t.activeTabId ? b.value.findIndex((C) => C.id === t.activeTabId) : 0), M = p(() => s.value.some((C) => C.id === t.activeTabId)), T = p(() => `${y.value}-options`), P = p(() => `${y.value}-toggle`), R = p(() => {
|
|
5310
5316
|
var C;
|
|
5311
5317
|
return M.value ? (C = b.value[g.value]) == null ? void 0 : C.textContent : "More";
|
|
5312
5318
|
}), _ = p(() => M.value ? f.value[g.value] - f.value[g.value - 1] + lo + Ue : no + Ue);
|
|
@@ -5344,14 +5350,14 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5344
5350
|
}
|
|
5345
5351
|
function ke() {
|
|
5346
5352
|
var C;
|
|
5347
|
-
(C = S.value) == null || C.focus(),
|
|
5353
|
+
(C = S.value) == null || C.focus(), o.value = !1;
|
|
5348
5354
|
}
|
|
5349
5355
|
function Ce() {
|
|
5350
|
-
|
|
5356
|
+
o.value = !o.value, i.value || (i.value = !0);
|
|
5351
5357
|
}
|
|
5352
5358
|
function re(C) {
|
|
5353
5359
|
var N;
|
|
5354
|
-
|
|
5360
|
+
o.value = !1, (N = S.value) == null || N.focus(), ne(C);
|
|
5355
5361
|
}
|
|
5356
5362
|
function xe(C) {
|
|
5357
5363
|
if (t.withBsTabs)
|
|
@@ -5386,15 +5392,15 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5386
5392
|
let U = 300, Q = ((oe = (se = w.value) == null ? void 0 : se[g.value]) == null ? void 0 : oe.offsetLeft) || 0, le = me(g.value);
|
|
5387
5393
|
d.value && M.value && (Q = (it = S.value) == null ? void 0 : it.offsetLeft, le = (rt = S.value) == null ? void 0 : rt.offsetWidth), U = Math.max(Math.abs((Q - C) / N * 300), 100), r.value.style.setProperty("--active-line-max-width", `${N}px`), r.value.style.setProperty("--active-line-scale", `${le / N}`), r.value.style.setProperty("--active-line-offset", `${Q}px`), r.value.style.setProperty("--active-line-transition-duration", `${U}ms`);
|
|
5388
5394
|
}
|
|
5389
|
-
function
|
|
5395
|
+
function K() {
|
|
5390
5396
|
var C, N;
|
|
5391
|
-
(N = (C =
|
|
5397
|
+
(N = (C = $.value) == null ? void 0 : C.disconnect) == null || N.call(C), $.value = null;
|
|
5392
5398
|
}
|
|
5393
5399
|
function Z() {
|
|
5394
5400
|
const C = Ve(() => {
|
|
5395
5401
|
h.value = r.value.clientWidth, J();
|
|
5396
5402
|
}, 25);
|
|
5397
|
-
|
|
5403
|
+
$.value = new ResizeObserver(C), $.value.observe(document.body);
|
|
5398
5404
|
}
|
|
5399
5405
|
function Te() {
|
|
5400
5406
|
b.value = Array.from(r.value.children).filter((C) => C.role === "tab");
|
|
@@ -5417,17 +5423,17 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5417
5423
|
}
|
|
5418
5424
|
d.value && C.push(r.value.querySelector(".bs-tab-list-toggle")), w.value = C;
|
|
5419
5425
|
}
|
|
5420
|
-
return j(() => t.activeTabId, ye),
|
|
5426
|
+
return j(() => t.activeTabId, ye), H(() => {
|
|
5421
5427
|
var C;
|
|
5422
5428
|
try {
|
|
5423
5429
|
Te(), Lt(), Z(), h.value = r.value.getBoundingClientRect().width, J(), t.withBsTabs || (C = b.value[g.value]) == null || C.setAttribute("aria-selected", "true");
|
|
5424
5430
|
} catch (N) {
|
|
5425
5431
|
console.log("tab error", N);
|
|
5426
5432
|
}
|
|
5427
|
-
}),
|
|
5433
|
+
}), Be(K), (C, N) => (u(), v("div", {
|
|
5428
5434
|
class: "bs-tab-list",
|
|
5429
5435
|
"data-component": "bs-tab-list",
|
|
5430
|
-
id: C.$attrs.id || c(
|
|
5436
|
+
id: C.$attrs.id || c(B),
|
|
5431
5437
|
ref_key: "hostEl",
|
|
5432
5438
|
ref: r,
|
|
5433
5439
|
role: "tablist",
|
|
@@ -5439,7 +5445,7 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5439
5445
|
D(C.$slots, "default"),
|
|
5440
5446
|
k("button", {
|
|
5441
5447
|
"aria-controls": c(y),
|
|
5442
|
-
"aria-expanded":
|
|
5448
|
+
"aria-expanded": o.value,
|
|
5443
5449
|
class: "bs-tab-list-toggle",
|
|
5444
5450
|
"data-active": M.value || void 0,
|
|
5445
5451
|
"data-hidden": !d.value,
|
|
@@ -5454,14 +5460,14 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5454
5460
|
L(Ot, {
|
|
5455
5461
|
"anchor-id": P.value,
|
|
5456
5462
|
breakout: "",
|
|
5457
|
-
"container-id": C.$attrs.id || c(
|
|
5463
|
+
"container-id": C.$attrs.id || c(B),
|
|
5458
5464
|
"helper-description": e.helperDescription || void 0,
|
|
5459
5465
|
"helper-text": e.helperText,
|
|
5460
5466
|
id: c(y),
|
|
5461
5467
|
"options-id": T.value,
|
|
5462
5468
|
position: "right",
|
|
5463
5469
|
preloaded: "",
|
|
5464
|
-
shown:
|
|
5470
|
+
shown: o.value,
|
|
5465
5471
|
width: "content",
|
|
5466
5472
|
onClose: ke,
|
|
5467
5473
|
"onUpdate:modelValue": re
|
|
@@ -5496,14 +5502,14 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5496
5502
|
},
|
|
5497
5503
|
setup(e) {
|
|
5498
5504
|
const a = e, t = ve(), l = p(() => a.activeTabId && a.activeTabId === a.tabId), n = p(() => t.id || `${a.tabId}-panel`);
|
|
5499
|
-
return (
|
|
5505
|
+
return (i, s) => (u(), v("section", {
|
|
5500
5506
|
"aria-labelledby": e.tabId,
|
|
5501
5507
|
"data-active": l.value,
|
|
5502
5508
|
"data-component": "bs-tab-panel",
|
|
5503
5509
|
id: n.value,
|
|
5504
5510
|
role: "tabpanel"
|
|
5505
5511
|
}, [
|
|
5506
|
-
D(
|
|
5512
|
+
D(i.$slots, "default")
|
|
5507
5513
|
], 8, oo));
|
|
5508
5514
|
}
|
|
5509
5515
|
}, io = ["data-error", "id", "rows", "value"], ro = {
|
|
@@ -5522,14 +5528,14 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5522
5528
|
emits: ["update:modelValue"],
|
|
5523
5529
|
setup(e, { emit: a }) {
|
|
5524
5530
|
const t = e, l = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
5525
|
-
return (n,
|
|
5531
|
+
return (n, i) => (u(), v("textarea", z({
|
|
5526
5532
|
class: "bs-textarea",
|
|
5527
5533
|
"data-component": "bs-textarea",
|
|
5528
5534
|
"data-error": e.error,
|
|
5529
5535
|
id: n.$attrs.id || e.inputId,
|
|
5530
5536
|
rows: n.$attrs.rows || 6,
|
|
5531
5537
|
value: e.value || e.modelValue,
|
|
5532
|
-
onInput:
|
|
5538
|
+
onInput: i[0] || (i[0] = (s) => n.$emit("update:modelValue", s.target.value))
|
|
5533
5539
|
}, l.value), null, 16, io));
|
|
5534
5540
|
}
|
|
5535
5541
|
}, oi = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
@@ -5581,15 +5587,15 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5581
5587
|
},
|
|
5582
5588
|
emits: ["update:modelValue"],
|
|
5583
5589
|
setup(e, { emit: a }) {
|
|
5584
|
-
const t = e, [l, n] = X(2),
|
|
5590
|
+
const t = e, [l, n] = X(2), i = p(() => za.concat(t.passAttrs.split(","))), s = p(() => {
|
|
5585
5591
|
var f;
|
|
5586
5592
|
return ((f = t.value || t.modelValue) == null ? void 0 : f.length) || 0;
|
|
5587
|
-
}),
|
|
5593
|
+
}), o = p(() => {
|
|
5588
5594
|
var f, m;
|
|
5589
5595
|
return ((m = (f = t.hints) == null ? void 0 : f.join) == null ? void 0 : m.call(f, `
|
|
5590
5596
|
`)) || t.hints;
|
|
5591
|
-
}), d = p(() => t.error && t.errorMsg || t.hint ||
|
|
5592
|
-
return (f, m) => (u(), v("div", z({ "data-component": "bs-textarea-field" }, c(
|
|
5597
|
+
}), d = p(() => t.error && t.errorMsg || t.hint || o.value || void 0), r = p(() => t.inputId || l.value);
|
|
5598
|
+
return (f, m) => (u(), v("div", z({ "data-component": "bs-textarea-field" }, c(Y)(f.$attrs, i.value).remaining), [
|
|
5593
5599
|
e.label || f.$slots.label ? (u(), O(ae, {
|
|
5594
5600
|
key: 0,
|
|
5595
5601
|
for: f.$attrs.id || r.value,
|
|
@@ -5613,7 +5619,7 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5613
5619
|
rows: e.rows,
|
|
5614
5620
|
value: e.value || e.modelValue,
|
|
5615
5621
|
"onUpdate:modelValue": m[0] || (m[0] = (b) => f.$emit("update:modelValue", b))
|
|
5616
|
-
}, c(
|
|
5622
|
+
}, c(Y)(f.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
|
|
5617
5623
|
d.value || e.charMax ? (u(), O(ge, {
|
|
5618
5624
|
key: 1,
|
|
5619
5625
|
"char-count": s.value,
|
|
@@ -5621,7 +5627,7 @@ const jl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ul = ["data-sta
|
|
|
5621
5627
|
"data-disabled": e.disabled,
|
|
5622
5628
|
error: e.error,
|
|
5623
5629
|
"error-msg": e.errorMsg,
|
|
5624
|
-
hint: e.hint ||
|
|
5630
|
+
hint: e.hint || o.value,
|
|
5625
5631
|
"hint-id": c(n)
|
|
5626
5632
|
}, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
5627
5633
|
], 16));
|
|
@@ -5642,8 +5648,8 @@ function uo(e = "") {
|
|
|
5642
5648
|
break;
|
|
5643
5649
|
case "amPm":
|
|
5644
5650
|
case "amPmNoColon":
|
|
5645
|
-
const
|
|
5646
|
-
l = we(
|
|
5651
|
+
const i = e.split(/(a|p|am|pm)/), s = e.includes("p");
|
|
5652
|
+
l = we(i[0].slice(-2)), t = we(i[0].slice(0, -2)), t < 12 && s && (t += 12), t === 12 && !s && (t = 0), t === 24 && (t = 0);
|
|
5647
5653
|
break;
|
|
5648
5654
|
}
|
|
5649
5655
|
return {
|
|
@@ -5655,8 +5661,8 @@ function be(e = "") {
|
|
|
5655
5661
|
const a = /[^0-9:]/g;
|
|
5656
5662
|
if (e = e.replaceAll(a, ""), !e)
|
|
5657
5663
|
return "";
|
|
5658
|
-
const [t, l] = e.split(":"), n = we(t),
|
|
5659
|
-
return isNaN(n) || isNaN(
|
|
5664
|
+
const [t, l] = e.split(":"), n = we(t), i = we(l), s = n < 12 ? "AM" : "PM";
|
|
5665
|
+
return isNaN(n) || isNaN(i) || n > 23 || i > 59 ? "" : `${n % 12 || 12}:${l} ${s}`;
|
|
5660
5666
|
}
|
|
5661
5667
|
function co(e = "") {
|
|
5662
5668
|
const { hours: a, minutes: t } = uo(e);
|
|
@@ -5727,9 +5733,9 @@ const We = "excluded", Ge = "over", mt = "skip", bt = "stop", He = "under", fo =
|
|
|
5727
5733
|
},
|
|
5728
5734
|
emits: ["update:modelValue"],
|
|
5729
5735
|
setup(e, { expose: a, emit: t }) {
|
|
5730
|
-
const l = e, n = t,
|
|
5736
|
+
const l = e, n = t, i = I(be(l.modelValue)), s = I([]), o = I(""), d = I(!1);
|
|
5731
5737
|
function r() {
|
|
5732
|
-
const
|
|
5738
|
+
const B = [];
|
|
5733
5739
|
let y = !1;
|
|
5734
5740
|
for (let g = 0; g < 24 && !y; g++)
|
|
5735
5741
|
for (let M = 0; M < 60; M += l.step) {
|
|
@@ -5739,19 +5745,19 @@ const We = "excluded", Ge = "over", mt = "skip", bt = "stop", He = "under", fo =
|
|
|
5739
5745
|
y = !0;
|
|
5740
5746
|
break;
|
|
5741
5747
|
}
|
|
5742
|
-
|
|
5748
|
+
B.push({
|
|
5743
5749
|
label: be(T),
|
|
5744
5750
|
value: T
|
|
5745
5751
|
});
|
|
5746
5752
|
}
|
|
5747
5753
|
}
|
|
5748
|
-
return
|
|
5754
|
+
return B;
|
|
5749
5755
|
}
|
|
5750
|
-
function f(
|
|
5751
|
-
return
|
|
5756
|
+
function f(B) {
|
|
5757
|
+
return B ? l.minTime && B < l.minTime ? He : l.maxTime && B > l.maxTime ? Ge : l.disabledTimes.includes(B) ? We : "" : "";
|
|
5752
5758
|
}
|
|
5753
|
-
function m(
|
|
5754
|
-
switch (f(
|
|
5759
|
+
function m(B) {
|
|
5760
|
+
switch (f(B)) {
|
|
5755
5761
|
case Ge:
|
|
5756
5762
|
return bt;
|
|
5757
5763
|
case He:
|
|
@@ -5761,35 +5767,35 @@ const We = "excluded", Ge = "over", mt = "skip", bt = "stop", He = "under", fo =
|
|
|
5761
5767
|
return "";
|
|
5762
5768
|
}
|
|
5763
5769
|
}
|
|
5764
|
-
function b(
|
|
5765
|
-
return
|
|
5770
|
+
function b(B, y) {
|
|
5771
|
+
return B = B.toString().padStart(2, "0"), y = y.toString().padStart(2, "0"), `${B}:${y}`;
|
|
5766
5772
|
}
|
|
5767
|
-
function S(
|
|
5768
|
-
const y = co(
|
|
5769
|
-
y === l.modelValue && (
|
|
5773
|
+
function S(B) {
|
|
5774
|
+
const y = co(B);
|
|
5775
|
+
y === l.modelValue && (i.value = be(l.modelValue)), $(y);
|
|
5770
5776
|
}
|
|
5771
5777
|
function w() {
|
|
5772
5778
|
s.value = r();
|
|
5773
5779
|
}
|
|
5774
|
-
function B
|
|
5775
|
-
h(
|
|
5780
|
+
function $(B) {
|
|
5781
|
+
h(B), n("update:modelValue", B);
|
|
5776
5782
|
}
|
|
5777
|
-
function h(
|
|
5778
|
-
switch (f(
|
|
5783
|
+
function h(B) {
|
|
5784
|
+
switch (f(B)) {
|
|
5779
5785
|
case Ge:
|
|
5780
|
-
|
|
5786
|
+
o.value = `Time must be before ${be(l.maxTime)}`, d.value = !0;
|
|
5781
5787
|
break;
|
|
5782
5788
|
case He:
|
|
5783
|
-
|
|
5789
|
+
o.value = `Time must be after ${be(l.minTime)}`, d.value = !0;
|
|
5784
5790
|
break;
|
|
5785
5791
|
case We:
|
|
5786
|
-
|
|
5792
|
+
o.value = `The following times are disabled: ${l.disabledTimes.map((g) => be(g)).join(", ")}`, d.value = !0;
|
|
5787
5793
|
break;
|
|
5788
5794
|
default:
|
|
5789
|
-
|
|
5795
|
+
o.value = "", d.value = !1;
|
|
5790
5796
|
}
|
|
5791
5797
|
}
|
|
5792
|
-
return
|
|
5798
|
+
return H(w), j([
|
|
5793
5799
|
() => l.disabledTimes,
|
|
5794
5800
|
() => l.maxTime,
|
|
5795
5801
|
() => l.minTime,
|
|
@@ -5799,14 +5805,14 @@ const We = "excluded", Ge = "over", mt = "skip", bt = "stop", He = "under", fo =
|
|
|
5799
5805
|
() => l.maxTime,
|
|
5800
5806
|
() => l.minTime,
|
|
5801
5807
|
() => l.modelValue
|
|
5802
|
-
], () => h(l.modelValue)), j(() => l.modelValue, (
|
|
5803
|
-
|
|
5808
|
+
], () => h(l.modelValue)), j(() => l.modelValue, (B) => {
|
|
5809
|
+
i.value = l.modelValue ? be(B) : "";
|
|
5804
5810
|
}), a({
|
|
5805
5811
|
validationErr: d,
|
|
5806
|
-
validationErrMsg:
|
|
5807
|
-
}), (
|
|
5812
|
+
validationErrMsg: o
|
|
5813
|
+
}), (B, y) => (u(), O(At, {
|
|
5808
5814
|
disabled: e.disabled,
|
|
5809
|
-
"display-value":
|
|
5815
|
+
"display-value": i.value,
|
|
5810
5816
|
"dropdown-position": e.dropdownPosition,
|
|
5811
5817
|
"dropdown-width": e.dropdownWidth,
|
|
5812
5818
|
error: e.error || d.value,
|
|
@@ -5891,7 +5897,7 @@ const We = "excluded", Ge = "over", mt = "skip", bt = "stop", He = "under", fo =
|
|
|
5891
5897
|
},
|
|
5892
5898
|
emits: ["update:modelValue"],
|
|
5893
5899
|
setup(e, { expose: a, emit: t }) {
|
|
5894
|
-
const l = e, [n,
|
|
5900
|
+
const l = e, [n, i] = X(2), s = I(null), o = p(() => l.errorMsg || m.value), d = p(() => l.error || b.value), r = p(() => l.inputId || n.value), f = p(() => l.hint || d.value && o.value), m = p(() => {
|
|
5895
5901
|
var S;
|
|
5896
5902
|
return (S = s.value) == null ? void 0 : S.validationErrMsg;
|
|
5897
5903
|
}), b = p(() => {
|
|
@@ -5904,7 +5910,7 @@ const We = "excluded", Ge = "over", mt = "skip", bt = "stop", He = "under", fo =
|
|
|
5904
5910
|
}), (S, w) => (u(), v("div", z({
|
|
5905
5911
|
"aria-live": "polite",
|
|
5906
5912
|
"data-component": "bs-time-picker-field"
|
|
5907
|
-
}, c(
|
|
5913
|
+
}, c(Y)(S.$attrs, c(he)).remaining), [
|
|
5908
5914
|
e.label || S.$slots.label ? (u(), O(ae, {
|
|
5909
5915
|
key: 0,
|
|
5910
5916
|
for: S.$attrs.id || r.value,
|
|
@@ -5928,7 +5934,7 @@ const We = "excluded", Ge = "over", mt = "skip", bt = "stop", He = "under", fo =
|
|
|
5928
5934
|
error: d.value,
|
|
5929
5935
|
"helper-description": e.helperDescription,
|
|
5930
5936
|
"helper-text": e.helperText,
|
|
5931
|
-
"hint-id": c(
|
|
5937
|
+
"hint-id": c(i),
|
|
5932
5938
|
"input-id": S.$attrs.id || r.value,
|
|
5933
5939
|
"max-time": e.maxTime,
|
|
5934
5940
|
"min-time": e.minTime,
|
|
@@ -5936,13 +5942,13 @@ const We = "excluded", Ge = "over", mt = "skip", bt = "stop", He = "under", fo =
|
|
|
5936
5942
|
placeholder: e.placeholder,
|
|
5937
5943
|
required: e.required,
|
|
5938
5944
|
step: e.step,
|
|
5939
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
5940
|
-
}, c(
|
|
5945
|
+
"onUpdate:modelValue": w[0] || (w[0] = ($) => S.$emit("update:modelValue", $))
|
|
5946
|
+
}, c(Y)(S.$attrs, c(he)).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"]),
|
|
5941
5947
|
de(L(ge, {
|
|
5942
5948
|
error: d.value,
|
|
5943
|
-
"error-msg":
|
|
5949
|
+
"error-msg": o.value,
|
|
5944
5950
|
hint: e.hint,
|
|
5945
|
-
"hint-id": c(
|
|
5951
|
+
"hint-id": c(i)
|
|
5946
5952
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
5947
5953
|
[ue, f.value]
|
|
5948
5954
|
])
|
|
@@ -5985,11 +5991,11 @@ const We = "excluded", Ge = "over", mt = "skip", bt = "stop", He = "under", fo =
|
|
|
5985
5991
|
ongoing: Xt,
|
|
5986
5992
|
paused: Qt,
|
|
5987
5993
|
warning: It
|
|
5988
|
-
}, { progressStep: l, progressText: n, getStatus:
|
|
5989
|
-
function s(
|
|
5990
|
-
return
|
|
5994
|
+
}, { progressStep: l, progressText: n, getStatus: i } = Et(a);
|
|
5995
|
+
function s(o, d) {
|
|
5996
|
+
return o = i(o, d), t[o] || dt;
|
|
5991
5997
|
}
|
|
5992
|
-
return (
|
|
5998
|
+
return (o, d) => (u(), v("div", {
|
|
5993
5999
|
"aria-valuemax": e.steps.length,
|
|
5994
6000
|
"aria-valuenow": c(l),
|
|
5995
6001
|
"aria-valuetext": c(n),
|
|
@@ -5998,7 +6004,7 @@ const We = "excluded", Ge = "over", mt = "skip", bt = "stop", He = "under", fo =
|
|
|
5998
6004
|
}, [
|
|
5999
6005
|
(u(!0), v(G, null, ee(e.steps, (r, f) => (u(), v("div", {
|
|
6000
6006
|
class: "bs-step-item",
|
|
6001
|
-
"data-status": c(
|
|
6007
|
+
"data-status": c(i)(r.status, f),
|
|
6002
6008
|
key: r.id || r.label,
|
|
6003
6009
|
role: "status"
|
|
6004
6010
|
}, [
|
|
@@ -6008,7 +6014,7 @@ const We = "excluded", Ge = "over", mt = "skip", bt = "stop", He = "under", fo =
|
|
|
6008
6014
|
})),
|
|
6009
6015
|
k("p", null, [
|
|
6010
6016
|
W(V(r.label || r) + " ", 1),
|
|
6011
|
-
k("span", vo, " : " + V(c(
|
|
6017
|
+
k("span", vo, " : " + V(c(i)(r.status, f) || "not started"), 1)
|
|
6012
6018
|
])
|
|
6013
6019
|
], 8, ho))), 128))
|
|
6014
6020
|
], 8, po));
|
|
@@ -6060,15 +6066,15 @@ const We = "excluded", Ge = "over", mt = "skip", bt = "stop", He = "under", fo =
|
|
|
6060
6066
|
emits: ["dismiss", "after-enter", "after-leave"],
|
|
6061
6067
|
setup(e, { emit: a }) {
|
|
6062
6068
|
const t = e, l = a, { transition: n } = Ee(t);
|
|
6063
|
-
let
|
|
6064
|
-
ce("variant", t.variant), ce("handleDismiss",
|
|
6069
|
+
let i = null;
|
|
6070
|
+
ce("variant", t.variant), ce("handleDismiss", o);
|
|
6065
6071
|
const s = fe("stacked", t.stacked);
|
|
6066
|
-
function
|
|
6067
|
-
|
|
6072
|
+
function o() {
|
|
6073
|
+
i && (clearTimeout(i), i = null), l("dismiss", t.toastId);
|
|
6068
6074
|
}
|
|
6069
6075
|
function d() {
|
|
6070
|
-
t.duration > 0 && (
|
|
6071
|
-
|
|
6076
|
+
t.duration > 0 && (i = setTimeout(() => {
|
|
6077
|
+
o();
|
|
6072
6078
|
}, t.duration)), l("after-enter");
|
|
6073
6079
|
}
|
|
6074
6080
|
return (r, f) => (u(), O(De, {
|
|
@@ -6096,7 +6102,7 @@ const We = "excluded", Ge = "over", mt = "skip", bt = "stop", He = "under", fo =
|
|
|
6096
6102
|
__name: "BsToastActions",
|
|
6097
6103
|
setup(e) {
|
|
6098
6104
|
const a = I(!1);
|
|
6099
|
-
|
|
6105
|
+
H(() => {
|
|
6100
6106
|
var n;
|
|
6101
6107
|
const l = yt();
|
|
6102
6108
|
((n = l.default) == null ? void 0 : n.call(l).length) > 2 && (a.value = !0);
|
|
@@ -6131,7 +6137,7 @@ function wo(e, a) {
|
|
|
6131
6137
|
D(e.$slots, "default")
|
|
6132
6138
|
]);
|
|
6133
6139
|
}
|
|
6134
|
-
const ui = /* @__PURE__ */ go(yo, [["render", wo]]),
|
|
6140
|
+
const ui = /* @__PURE__ */ go(yo, [["render", wo]]), Bo = ["data-variant"], ci = {
|
|
6135
6141
|
__name: "BsToastHeader",
|
|
6136
6142
|
setup(e) {
|
|
6137
6143
|
const a = fe("variant"), t = p(() => {
|
|
@@ -6154,12 +6160,12 @@ const ui = /* @__PURE__ */ go(yo, [["render", wo]]), $o = ["data-variant"], ci =
|
|
|
6154
6160
|
k("h5", null, [
|
|
6155
6161
|
D(l.$slots, "default")
|
|
6156
6162
|
])
|
|
6157
|
-
], 8,
|
|
6163
|
+
], 8, Bo));
|
|
6158
6164
|
}
|
|
6159
|
-
},
|
|
6165
|
+
}, $o = { class: "bs-toaster" }, fi = {
|
|
6160
6166
|
__name: "BsToaster",
|
|
6161
6167
|
setup(e) {
|
|
6162
|
-
return ce("stacked", !0), (a, t) => (u(), v("div",
|
|
6168
|
+
return ce("stacked", !0), (a, t) => (u(), v("div", $o, [
|
|
6163
6169
|
D(a.$slots, "default")
|
|
6164
6170
|
]));
|
|
6165
6171
|
}
|
|
@@ -6191,28 +6197,28 @@ const ui = /* @__PURE__ */ go(yo, [["render", wo]]), $o = ["data-variant"], ci =
|
|
|
6191
6197
|
},
|
|
6192
6198
|
setup(e) {
|
|
6193
6199
|
const a = e, t = I(!1), l = I(!1), n = p(() => {
|
|
6194
|
-
let
|
|
6195
|
-
return l.value && (a.position === void 0 || a.position === "top" || a.position === "bottom" ?
|
|
6200
|
+
let o = "bs-tooltip-text";
|
|
6201
|
+
return l.value && (a.position === void 0 || a.position === "top" || a.position === "bottom" ? o += " escaped-x" : a.position === "left" || a.position === "right" ? o += " escaped-y" : o += " escaped"), o;
|
|
6196
6202
|
});
|
|
6197
6203
|
pe(["Escape"], () => {
|
|
6198
6204
|
t.value && (t.value = !1, l.value = !0);
|
|
6199
6205
|
});
|
|
6200
|
-
function
|
|
6206
|
+
function i() {
|
|
6201
6207
|
t.value = !0;
|
|
6202
6208
|
}
|
|
6203
6209
|
function s() {
|
|
6204
6210
|
t.value = !1, l.value = !1;
|
|
6205
6211
|
}
|
|
6206
|
-
return (
|
|
6212
|
+
return (o, d) => (u(), v("div", {
|
|
6207
6213
|
class: "bs-tooltip",
|
|
6208
6214
|
"data-position": e.position || void 0,
|
|
6209
6215
|
"data-component": "bs-tooltip",
|
|
6210
|
-
onMouseenter:
|
|
6211
|
-
onFocusin:
|
|
6216
|
+
onMouseenter: i,
|
|
6217
|
+
onFocusin: i,
|
|
6212
6218
|
onMouseleave: s,
|
|
6213
6219
|
onFocusout: s
|
|
6214
6220
|
}, [
|
|
6215
|
-
D(
|
|
6221
|
+
D(o.$slots, "default"),
|
|
6216
6222
|
e.content ? (u(), v("div", {
|
|
6217
6223
|
key: 0,
|
|
6218
6224
|
class: ie(n.value),
|