@wwtdev/bsds-components-vue3 2.17.1 → 2.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bsds-components.js +1083 -1058
- package/lib/components.css +1 -1
- package/package.json +3 -3
package/lib/bsds-components.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { computed as f, ref as $, onMounted as
|
|
2
|
-
import { BsIconCaretDown as Me, BsIconWarning as Xe, BsIconClose as Ie, BsIconCalendar as Bt, BsIconCaretRight as $t, BsIconCaretLeft as It, BsIconSmallCaretRight as
|
|
1
|
+
import { computed as f, ref as $, onMounted as Q, onUnmounted as $e, shallowRef as Wt, watch as G, defineAsyncComponent as Je, useId as yt, openBlock as d, createElementBlock as h, unref as c, createElementVNode as B, renderSlot as O, createBlock as A, resolveDynamicComponent as ne, createCommentVNode as C, createTextVNode as U, toDisplayString as T, createVNode as E, normalizeClass as oe, useAttrs as de, mergeProps as F, withCtx as L, Fragment as Y, toHandlers as Ye, onBeforeUnmount as _e, onBeforeMount as St, nextTick as Ae, createSlots as Ze, useSlots as et, renderList as ae, Teleport as jt, withDirectives as pe, Transition as dt, vShow as me, provide as he, inject as be, withModifiers as wt, isRef as Ut } from "vue";
|
|
2
|
+
import { BsIconCaretDown as Me, BsIconWarning as Xe, BsIconClose as Ie, BsIconCalendar as Bt, BsIconCaretRight as $t, BsIconCaretLeft as It, BsIconSmallCaretRight as Ht, BsIconSmallCaretLeft as Gt, BsIconSearch as Kt, BsIconCaretSort as Yt, BsIconCaretLeftDouble as Zt, BsIconCaretRightDouble as Xt, BsIconActionEllipsis as Qt, BsIconGraphPieEmpty as ut, BsIconCircleStop as Jt, BsIconCircleCheck as _t, BsIconCircleX as ea, BsIconCircleEllipsis as ta, BsIconCirclePlay as aa, BsIconCirclePause as na, BsIconCircleExclamation as kt, BsIconThumbsUpStroke as la } from "@wwtdev/bsds-icons-vue3";
|
|
3
3
|
import { DatePicker as oa } from "v-calendar";
|
|
4
4
|
import { Filler as ia, Chart as We, BarController as ra, BarElement as sa, CategoryScale as da, LinearScale as ua, Legend as ca, TimeScale as fa, Tooltip as pa } from "chart.js";
|
|
5
5
|
import "chartjs-adapter-date-fns";
|
|
6
6
|
import Ne from "lodash.merge";
|
|
7
|
-
import { getSupportedCallingCodes as ma, getRegionCodeForCountryCode as
|
|
7
|
+
import { getSupportedCallingCodes as ma, getRegionCodeForCountryCode as ha, parsePhoneNumber as ct } from "awesome-phonenumber";
|
|
8
8
|
const ft = {
|
|
9
9
|
href: "a",
|
|
10
10
|
linkTo: "a",
|
|
@@ -13,7 +13,7 @@ const ft = {
|
|
|
13
13
|
type: "button"
|
|
14
14
|
};
|
|
15
15
|
function ze(e, a, t = "button") {
|
|
16
|
-
const l =
|
|
16
|
+
const l = ba(e, a, t), n = f(() => {
|
|
17
17
|
const o = l.value === "button", s = {};
|
|
18
18
|
return o ? (s.type = a.type || "button", s.autocomplete = "off", e.disabled && (s.disabled = !0)) : e.disabled && (s["aria-disabled"] = "true", s.tabindex = "-1"), s;
|
|
19
19
|
}), i = f(() => {
|
|
@@ -22,7 +22,7 @@ function ze(e, a, t = "button") {
|
|
|
22
22
|
}), u = f(() => e.linkTo || e.href);
|
|
23
23
|
return { rootTag: l, attrsToBind: i, hrefUrl: u };
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function ba(e, a, t) {
|
|
26
26
|
const l = Object.keys(ft).find((n) => va(e, a, n));
|
|
27
27
|
return $(ft[l] || t);
|
|
28
28
|
}
|
|
@@ -36,7 +36,7 @@ const Ct = (e, a) => {
|
|
|
36
36
|
return (i = n.value) == null ? void 0 : i.contains(l.target);
|
|
37
37
|
}) || a(l);
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
Q(() => {
|
|
40
40
|
document.addEventListener("mouseup", t);
|
|
41
41
|
}), $e(() => {
|
|
42
42
|
document.removeEventListener("mouseup", t);
|
|
@@ -74,7 +74,7 @@ const Oe = (e, a) => {
|
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
const l = Wt(), n = e[a] || ((i = e == null ? void 0 : e.value) == null ? void 0 : i[a]);
|
|
77
|
-
return l.value = t(n),
|
|
77
|
+
return l.value = t(n), G(
|
|
78
78
|
[
|
|
79
79
|
() => e[a],
|
|
80
80
|
() => {
|
|
@@ -85,15 +85,15 @@ const Oe = (e, a) => {
|
|
|
85
85
|
async ([u, o]) => l.value = t(u || o)
|
|
86
86
|
), { icon: l };
|
|
87
87
|
};
|
|
88
|
-
function
|
|
88
|
+
function J(e = 1) {
|
|
89
89
|
const a = [];
|
|
90
90
|
for (let t = 0; t < e; t++)
|
|
91
91
|
a.push($(""));
|
|
92
|
-
return
|
|
92
|
+
return Q(() => {
|
|
93
93
|
a.forEach((t) => t.value = yt());
|
|
94
94
|
}), a;
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const ve = (e, a, t = void 0) => {
|
|
97
97
|
const l = (n) => {
|
|
98
98
|
var i, u;
|
|
99
99
|
((i = e == null ? void 0 : e.includes) != null && i.call(e, n.key) || (u = e == null ? void 0 : e.some) != null && u.call(e, (o) => {
|
|
@@ -101,34 +101,34 @@ const be = (e, a, t = void 0) => {
|
|
|
101
101
|
return (s = o == null ? void 0 : o.test) == null ? void 0 : s.call(o, n.key);
|
|
102
102
|
})) && a(n);
|
|
103
103
|
};
|
|
104
|
-
|
|
104
|
+
Q(() => {
|
|
105
105
|
((t == null ? void 0 : t.value) ?? document).addEventListener("keydown", l);
|
|
106
106
|
}), $e(() => {
|
|
107
107
|
((t == null ? void 0 : t.value) ?? document).removeEventListener("keydown", l);
|
|
108
108
|
});
|
|
109
109
|
}, ga = (e, a, t) => {
|
|
110
110
|
let l = null;
|
|
111
|
-
|
|
111
|
+
Q(() => {
|
|
112
112
|
l = new MutationObserver(a), l.observe(e.value, t);
|
|
113
113
|
}), $e(() => {
|
|
114
114
|
l.disconnect();
|
|
115
115
|
});
|
|
116
116
|
}, Ee = (e) => {
|
|
117
117
|
const a = $(!1);
|
|
118
|
-
return
|
|
118
|
+
return Q(() => {
|
|
119
119
|
e.enterControlled ? a.value = e.enterTrigger : a.value = e.shown;
|
|
120
|
-
}),
|
|
120
|
+
}), G(() => e.shown, (t) => {
|
|
121
121
|
a.value = t;
|
|
122
|
-
}),
|
|
122
|
+
}), G(() => e.enterTrigger, (t) => {
|
|
123
123
|
a.value = t;
|
|
124
|
-
}),
|
|
124
|
+
}), G(() => e.leaveTrigger, (t) => {
|
|
125
125
|
t && (a.value = !1);
|
|
126
126
|
}), { transition: a };
|
|
127
127
|
}, ya = ["id", "data-stacked"], Sa = ["data-open"], wa = ["aria-controls", "aria-expanded"], Ba = {
|
|
128
128
|
key: 0,
|
|
129
129
|
"data-position": "start",
|
|
130
130
|
style: { display: "inline-flex" }
|
|
131
|
-
}, $a = ["id"], Ia = ["aria-labelledby", "data-open", "id"],
|
|
131
|
+
}, $a = ["id"], Ia = ["aria-labelledby", "data-open", "id"], Do = {
|
|
132
132
|
__name: "BsAccordion",
|
|
133
133
|
props: {
|
|
134
134
|
controlled: { type: Boolean, default: !1 },
|
|
@@ -145,11 +145,11 @@ const be = (e, a, t = void 0) => {
|
|
|
145
145
|
},
|
|
146
146
|
emits: ["toggled"],
|
|
147
147
|
setup(e, { emit: a }) {
|
|
148
|
-
const t = e, l = a, n = $(null), i = $(!1), { icon: u } = Oe(t, "icon"), [o] =
|
|
148
|
+
const t = e, l = a, n = $(null), i = $(!1), { icon: u } = Oe(t, "icon"), [o] = J(), s = f(() => o.value + "-content"), r = f(() => o.value + "-title"), m = f(() => t.openItemId && t.openItemId === o.value || t.openItem === !0), g = f(() => t.controlled ? m.value : i.value);
|
|
149
149
|
function v() {
|
|
150
150
|
l("toggled", o.value), t.controlled || (i.value = !i.value);
|
|
151
151
|
}
|
|
152
|
-
return (
|
|
152
|
+
return (b, y) => (d(), h("div", {
|
|
153
153
|
id: c(o),
|
|
154
154
|
ref_key: "containerRef",
|
|
155
155
|
ref: n,
|
|
@@ -167,17 +167,17 @@ const be = (e, a, t = void 0) => {
|
|
|
167
167
|
type: "button",
|
|
168
168
|
onClick: v
|
|
169
169
|
}, [
|
|
170
|
-
e.icon ||
|
|
171
|
-
|
|
172
|
-
e.icon ? (d(),
|
|
170
|
+
e.icon || b.$slots.icon ? (d(), h("span", Ba, [
|
|
171
|
+
O(b.$slots, "icon", {}, () => [
|
|
172
|
+
e.icon ? (d(), A(ne(c(u) ? c(u) : "span"), { key: 0 })) : C("", !0)
|
|
173
173
|
])
|
|
174
174
|
])) : C("", !0),
|
|
175
175
|
B("span", { id: r.value }, [
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
O(b.$slots, "header", {}, () => [
|
|
177
|
+
U(T(e.headerText), 1)
|
|
178
178
|
])
|
|
179
179
|
], 8, $a),
|
|
180
|
-
|
|
180
|
+
E(c(Me), {
|
|
181
181
|
size: "md",
|
|
182
182
|
"data-position": "end"
|
|
183
183
|
})
|
|
@@ -192,7 +192,7 @@ const be = (e, a, t = void 0) => {
|
|
|
192
192
|
role: "region"
|
|
193
193
|
}, [
|
|
194
194
|
B("div", null, [
|
|
195
|
-
|
|
195
|
+
O(b.$slots, "default")
|
|
196
196
|
])
|
|
197
197
|
], 8, Ia)
|
|
198
198
|
], 8, ya));
|
|
@@ -251,7 +251,7 @@ const be = (e, a, t = void 0) => {
|
|
|
251
251
|
const o = a.count !== 1 ? "s" : "";
|
|
252
252
|
return `${i ? `${i}, ` : ""}${u}${a.label}${o}`;
|
|
253
253
|
});
|
|
254
|
-
return (i, u) => (d(),
|
|
254
|
+
return (i, u) => (d(), h("span", {
|
|
255
255
|
ref_key: "hostRef",
|
|
256
256
|
ref: t,
|
|
257
257
|
"aria-label": n.value,
|
|
@@ -264,7 +264,7 @@ const be = (e, a, t = void 0) => {
|
|
|
264
264
|
"data-variant": e.variant,
|
|
265
265
|
role: "status"
|
|
266
266
|
}, [
|
|
267
|
-
e.variant !== "notext" ?
|
|
267
|
+
e.variant !== "notext" ? O(i.$slots, "default", { key: 0 }) : C("", !0)
|
|
268
268
|
], 10, ka));
|
|
269
269
|
}
|
|
270
270
|
}, xa = {
|
|
@@ -272,7 +272,7 @@ const be = (e, a, t = void 0) => {
|
|
|
272
272
|
role: "alert",
|
|
273
273
|
class: "bs-banner",
|
|
274
274
|
"data-component": "bs-banner"
|
|
275
|
-
}, Ta = { class: "bs-banner-content" }, Aa = { class: "bs-banner-warning-icon" },
|
|
275
|
+
}, Ta = { class: "bs-banner-content" }, Aa = { class: "bs-banner-warning-icon" }, Po = {
|
|
276
276
|
__name: "BsBanner",
|
|
277
277
|
emits: ["dismiss"],
|
|
278
278
|
setup(e, { emit: a }) {
|
|
@@ -280,20 +280,22 @@ const be = (e, a, t = void 0) => {
|
|
|
280
280
|
function n() {
|
|
281
281
|
l.value = !0, t("dismiss");
|
|
282
282
|
}
|
|
283
|
-
return (i, u) => l.value ? C("", !0) : (d(),
|
|
283
|
+
return (i, u) => l.value ? C("", !0) : (d(), h("div", xa, [
|
|
284
284
|
B("div", Ta, [
|
|
285
285
|
B("div", Aa, [
|
|
286
|
-
|
|
286
|
+
O(i.$slots, "icon", {}, () => [
|
|
287
|
+
E(c(Xe), { size: "md" })
|
|
288
|
+
])
|
|
287
289
|
]),
|
|
288
290
|
B("p", null, [
|
|
289
|
-
|
|
291
|
+
O(i.$slots, "default")
|
|
290
292
|
]),
|
|
291
293
|
B("button", {
|
|
292
294
|
type: "button",
|
|
293
295
|
title: "Close Banner",
|
|
294
296
|
onClick: n
|
|
295
297
|
}, [
|
|
296
|
-
|
|
298
|
+
E(c(Ie))
|
|
297
299
|
])
|
|
298
300
|
])
|
|
299
301
|
]));
|
|
@@ -329,8 +331,8 @@ const be = (e, a, t = void 0) => {
|
|
|
329
331
|
href: { type: String }
|
|
330
332
|
},
|
|
331
333
|
setup(e) {
|
|
332
|
-
const a = e, t =
|
|
333
|
-
return (o, s) => (d(),
|
|
334
|
+
const a = e, t = de(), { rootTag: l, attrsToBind: n, hrefUrl: i } = ze(a, t), { onLinkClick: u } = Fe(a);
|
|
335
|
+
return (o, s) => (d(), A(ne(c(l)), F({
|
|
334
336
|
class: "bs-button",
|
|
335
337
|
"data-component": "bs-button",
|
|
336
338
|
"data-ghost": e.ghostBtn,
|
|
@@ -339,8 +341,8 @@ const be = (e, a, t = void 0) => {
|
|
|
339
341
|
"data-variant": e.variant,
|
|
340
342
|
".href": c(i)
|
|
341
343
|
}, c(n), { onClick: c(u) }), {
|
|
342
|
-
default:
|
|
343
|
-
|
|
344
|
+
default: L(() => [
|
|
345
|
+
O(o.$slots, "default")
|
|
344
346
|
]),
|
|
345
347
|
_: 3
|
|
346
348
|
}, 48, ["data-ghost", "data-size", "data-text", "data-variant", ".href", "onClick"]));
|
|
@@ -369,19 +371,19 @@ const be = (e, a, t = void 0) => {
|
|
|
369
371
|
},
|
|
370
372
|
setup(e) {
|
|
371
373
|
const a = e, t = f(() => a.error && a.errorMsg || a.hint);
|
|
372
|
-
return (l, n) => (d(),
|
|
373
|
-
t.value ? (d(),
|
|
374
|
+
return (l, n) => (d(), h("div", Oa, [
|
|
375
|
+
t.value ? (d(), h("span", {
|
|
374
376
|
key: 0,
|
|
375
377
|
id: e.hintId,
|
|
376
378
|
class: "bs-hint",
|
|
377
379
|
"data-error": e.error
|
|
378
|
-
},
|
|
379
|
-
e.charMax ? (d(),
|
|
380
|
+
}, T(t.value), 9, Va)) : C("", !0),
|
|
381
|
+
e.charMax ? (d(), h("span", {
|
|
380
382
|
key: 1,
|
|
381
383
|
"aria-description": "character count over character limit for the preceding text field",
|
|
382
384
|
class: "bs-character-count",
|
|
383
385
|
"data-error": a.charCount > a.charMax
|
|
384
|
-
},
|
|
386
|
+
}, T(a.charCount || "0") + " / " + T(a.charMax), 9, La)) : C("", !0)
|
|
385
387
|
]));
|
|
386
388
|
}
|
|
387
389
|
}, Ea = ["data-disabled", "for"], le = {
|
|
@@ -393,16 +395,16 @@ const be = (e, a, t = void 0) => {
|
|
|
393
395
|
required: { type: Boolean, default: !1 }
|
|
394
396
|
},
|
|
395
397
|
setup(e) {
|
|
396
|
-
return (a, t) => (d(),
|
|
398
|
+
return (a, t) => (d(), h("label", {
|
|
397
399
|
class: oe(["bs-label", e.hide ? "visually-hidden" : ""]),
|
|
398
400
|
"data-component": "bs-label",
|
|
399
401
|
"data-disabled": e.disabled,
|
|
400
402
|
for: e.for
|
|
401
403
|
}, [
|
|
402
404
|
B("span", null, [
|
|
403
|
-
|
|
405
|
+
O(a.$slots, "default")
|
|
404
406
|
]),
|
|
405
|
-
e.required ? (d(),
|
|
407
|
+
e.required ? (d(), h(Y, { key: 0 }, [
|
|
406
408
|
t[0] || (t[0] = B("span", {
|
|
407
409
|
"data-required": "true",
|
|
408
410
|
"aria-hidden": "true"
|
|
@@ -426,12 +428,12 @@ const be = (e, a, t = void 0) => {
|
|
|
426
428
|
},
|
|
427
429
|
emits: ["update:modelValue"],
|
|
428
430
|
setup(e, { emit: a }) {
|
|
429
|
-
const t = e, l = a, n =
|
|
431
|
+
const t = e, l = a, n = de(), i = f(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
430
432
|
function u(o) {
|
|
431
433
|
const s = n.type === "number" ? parseInt(o.target.value) : o.target.value;
|
|
432
434
|
l("update:modelValue", s);
|
|
433
435
|
}
|
|
434
|
-
return (o, s) => (d(),
|
|
436
|
+
return (o, s) => (d(), h("input", F({
|
|
435
437
|
class: "bs-input",
|
|
436
438
|
"data-component": "bs-input",
|
|
437
439
|
"data-error": e.error,
|
|
@@ -451,7 +453,7 @@ const be = (e, a, t = void 0) => {
|
|
|
451
453
|
variant: { type: String, validator: (e) => ["inner-bordered", "combobox"].includes(e) }
|
|
452
454
|
},
|
|
453
455
|
setup(e) {
|
|
454
|
-
return (a, t) => (d(),
|
|
456
|
+
return (a, t) => (d(), h("div", {
|
|
455
457
|
class: "bs-input-addon",
|
|
456
458
|
"data-component": "bs-input-addon",
|
|
457
459
|
"data-autopad": e.autopad,
|
|
@@ -461,7 +463,7 @@ const be = (e, a, t = void 0) => {
|
|
|
461
463
|
"data-variant": e.variant,
|
|
462
464
|
"data-multifocus": e.multifocus
|
|
463
465
|
}, [
|
|
464
|
-
|
|
466
|
+
O(a.$slots, "default")
|
|
465
467
|
], 8, Pa));
|
|
466
468
|
}
|
|
467
469
|
}, qa = {
|
|
@@ -497,13 +499,13 @@ const be = (e, a, t = void 0) => {
|
|
|
497
499
|
}
|
|
498
500
|
},
|
|
499
501
|
setup(e) {
|
|
500
|
-
return (a, t) => (d(),
|
|
502
|
+
return (a, t) => (d(), A(De, {
|
|
501
503
|
disabled: e.disabled,
|
|
502
504
|
error: e.error
|
|
503
505
|
}, {
|
|
504
|
-
default:
|
|
505
|
-
|
|
506
|
-
|
|
506
|
+
default: L(() => [
|
|
507
|
+
E(c(Bt)),
|
|
508
|
+
E(ke, F({
|
|
507
509
|
"data-autowidth": "",
|
|
508
510
|
disabled: e.disabled,
|
|
509
511
|
id: e.inputId,
|
|
@@ -564,36 +566,36 @@ const Ma = ["disabled", "id", "model-value"], Na = ["disabled", "id", "model-val
|
|
|
564
566
|
setup(e, { emit: a }) {
|
|
565
567
|
const t = e, l = a, n = $(null), i = $(null);
|
|
566
568
|
function u(v) {
|
|
567
|
-
const
|
|
568
|
-
v.dispatchEvent(
|
|
569
|
+
const b = new Event("change", { bubbles: !0, cancelable: !0 });
|
|
570
|
+
v.dispatchEvent(b);
|
|
569
571
|
}
|
|
570
572
|
function o(v) {
|
|
571
|
-
const { value:
|
|
572
|
-
n.value.value = y || "", i.value.value =
|
|
573
|
+
const { value: b } = v.target, [y, S] = b.split(/ to | - /);
|
|
574
|
+
n.value.value = y || "", i.value.value = S || "", u(n.value), u(i.value);
|
|
573
575
|
}
|
|
574
576
|
const s = Ve(o, 1e3);
|
|
575
577
|
function r(v) {
|
|
576
578
|
l("ui-input"), s(v);
|
|
577
579
|
}
|
|
578
580
|
const m = f(() => t.listeners.start ? t.listeners.start : {}), g = f(() => t.listeners.end ? t.listeners.end : {});
|
|
579
|
-
return (v,
|
|
581
|
+
return (v, b) => (d(), A(De, {
|
|
580
582
|
disabled: e.disabled,
|
|
581
583
|
error: e.error
|
|
582
584
|
}, {
|
|
583
|
-
default:
|
|
584
|
-
|
|
585
|
-
|
|
585
|
+
default: L(() => [
|
|
586
|
+
E(c(Bt)),
|
|
587
|
+
E(ke, {
|
|
586
588
|
"data-autowidth": "",
|
|
587
589
|
disabled: e.disabled,
|
|
588
590
|
id: e.inputId,
|
|
589
591
|
"model-value": e.inputValueFmt,
|
|
590
592
|
placeholder: e.placeholder,
|
|
591
593
|
required: e.required,
|
|
592
|
-
onFocusin:
|
|
594
|
+
onFocusin: b[0] || (b[0] = (y) => v.$emit("ui-focusin")),
|
|
593
595
|
onInput: r,
|
|
594
596
|
onChange: o
|
|
595
597
|
}, null, 8, ["disabled", "id", "model-value", "placeholder", "required"]),
|
|
596
|
-
B("input",
|
|
598
|
+
B("input", F({
|
|
597
599
|
ref_key: "hiddenStart",
|
|
598
600
|
ref: n,
|
|
599
601
|
type: "hidden",
|
|
@@ -601,7 +603,7 @@ const Ma = ["disabled", "id", "model-value"], Na = ["disabled", "id", "model-val
|
|
|
601
603
|
id: `${e.inputId}-start`,
|
|
602
604
|
"model-value": e.inputValue.start
|
|
603
605
|
}, Ye(m.value, !0)), null, 16, Ma),
|
|
604
|
-
B("input",
|
|
606
|
+
B("input", F({
|
|
605
607
|
ref_key: "hiddenEnd",
|
|
606
608
|
ref: i,
|
|
607
609
|
type: "hidden",
|
|
@@ -625,7 +627,7 @@ function Fa(e) {
|
|
|
625
627
|
function l(n) {
|
|
626
628
|
a(n == null ? void 0 : n.target) && t(n == null ? void 0 : n.key) && n.preventDefault();
|
|
627
629
|
}
|
|
628
|
-
|
|
630
|
+
Q(() => {
|
|
629
631
|
var n, i;
|
|
630
632
|
(i = (n = e.value) == null ? void 0 : n.addEventListener) == null || i.call(n, "keydown", l);
|
|
631
633
|
}), _e(() => {
|
|
@@ -639,7 +641,7 @@ function Qe(e, a, t = []) {
|
|
|
639
641
|
l = window.matchMedia(e), l.addEventListener("change", a), a(l);
|
|
640
642
|
}), _e(() => {
|
|
641
643
|
l.removeEventListener("change", a), l = null;
|
|
642
|
-
}), t.length &&
|
|
644
|
+
}), t.length && G(t, () => a(l));
|
|
643
645
|
}
|
|
644
646
|
const tt = [
|
|
645
647
|
"aria-describedby",
|
|
@@ -678,7 +680,7 @@ const tt = [
|
|
|
678
680
|
"rows",
|
|
679
681
|
"spellcheck",
|
|
680
682
|
"wrap"
|
|
681
|
-
],
|
|
683
|
+
], ge = [
|
|
682
684
|
"aria-describedby",
|
|
683
685
|
"aria-label",
|
|
684
686
|
"autocapitalize",
|
|
@@ -700,13 +702,13 @@ const tt = [
|
|
|
700
702
|
"size",
|
|
701
703
|
"step"
|
|
702
704
|
];
|
|
703
|
-
function
|
|
705
|
+
function X(e, a = []) {
|
|
704
706
|
const t = {}, l = {};
|
|
705
707
|
return Object.keys(e).forEach((n) => {
|
|
706
708
|
a.includes(n) ? t[n] = e[n] : l[n] = e[n];
|
|
707
709
|
}), { filtered: t, remaining: l };
|
|
708
710
|
}
|
|
709
|
-
const ja = ["data-range"], mt = "(min-width: 752px)",
|
|
711
|
+
const ja = ["data-range"], mt = "(min-width: 752px)", qo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
710
712
|
__name: "BsCalendar",
|
|
711
713
|
props: {
|
|
712
714
|
disabled: {
|
|
@@ -773,7 +775,7 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
773
775
|
},
|
|
774
776
|
emits: ["update:modelValue"],
|
|
775
777
|
setup(e, { emit: a }) {
|
|
776
|
-
const t = e, l = $(null), n = $(1), i = $(null), [u, o] =
|
|
778
|
+
const t = e, l = $(null), n = $(1), i = $(null), [u, o] = J(2), s = $(1), { filtered: r, remaining: m } = X(de(), [
|
|
777
779
|
"attributes",
|
|
778
780
|
"data-cy",
|
|
779
781
|
"expanded",
|
|
@@ -782,18 +784,18 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
782
784
|
"masks",
|
|
783
785
|
"rows",
|
|
784
786
|
"trim-weeks"
|
|
785
|
-
]), g = f(() => t.inputId || u.value), v = f(() => ({ range: t.isRange })),
|
|
787
|
+
]), g = f(() => t.inputId || u.value), v = f(() => ({ range: t.isRange })), b = f(() => !!(t.error && t.errorMsg || t.hint)), y = f(() => t.step), S = f(() => t.variant);
|
|
786
788
|
Fa(i), Qe(
|
|
787
789
|
mt,
|
|
788
|
-
(I) => n.value = I != null && I.matches &&
|
|
789
|
-
[
|
|
790
|
+
(I) => n.value = I != null && I.matches && S.value == "2-col" ? 2 : 1,
|
|
791
|
+
[S]
|
|
790
792
|
), Qe(
|
|
791
793
|
mt,
|
|
792
|
-
(I) => s.value = I != null && I.matches &&
|
|
793
|
-
[y,
|
|
794
|
-
),
|
|
794
|
+
(I) => s.value = I != null && I.matches && S.value == "2-col" ? y.value : 1,
|
|
795
|
+
[y, S]
|
|
796
|
+
), Q(() => {
|
|
795
797
|
t.inputMode || k();
|
|
796
|
-
}),
|
|
798
|
+
}), G(() => {
|
|
797
799
|
var I, q;
|
|
798
800
|
return (q = (I = l.value) == null ? void 0 : I.popoverRef) == null ? void 0 : q.isVisible;
|
|
799
801
|
}, (I) => {
|
|
@@ -802,35 +804,35 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
802
804
|
function p(I) {
|
|
803
805
|
return t.isRange && I.start && I.end ? `${I.start} to ${I.end}` : !t.isRange && I ? I : "";
|
|
804
806
|
}
|
|
805
|
-
function
|
|
807
|
+
function w(I) {
|
|
806
808
|
!t.isRange || i.value.contains(I.relatedTarget) || l.value.hidePopover();
|
|
807
809
|
}
|
|
808
810
|
function k() {
|
|
809
811
|
const I = i.value.querySelector("button.vc-prev"), q = i.value.querySelector("button.vc-next");
|
|
810
812
|
I && I.setAttribute("aria-label", "Previous month"), q && q.setAttribute("aria-label", "Next month");
|
|
811
813
|
}
|
|
812
|
-
return (I, q) => (d(),
|
|
814
|
+
return (I, q) => (d(), h("div", F({
|
|
813
815
|
ref_key: "container",
|
|
814
816
|
ref: i,
|
|
815
817
|
class: "bs-calendar",
|
|
816
818
|
"data-component": "bs-calendar",
|
|
817
819
|
"data-range": e.isRange,
|
|
818
|
-
onFocusout:
|
|
820
|
+
onFocusout: w
|
|
819
821
|
}, c(m)), [
|
|
820
|
-
e.label || I.$slots.label ? (d(),
|
|
822
|
+
e.label || I.$slots.label ? (d(), A(le, {
|
|
821
823
|
key: 0,
|
|
822
824
|
for: g.value,
|
|
823
825
|
disabled: e.disabled,
|
|
824
826
|
required: e.required
|
|
825
827
|
}, {
|
|
826
|
-
default:
|
|
827
|
-
|
|
828
|
-
|
|
828
|
+
default: L(() => [
|
|
829
|
+
O(I.$slots, "label", {}, () => [
|
|
830
|
+
U(T(e.label), 1)
|
|
829
831
|
])
|
|
830
832
|
]),
|
|
831
833
|
_: 3
|
|
832
834
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
833
|
-
|
|
835
|
+
E(c(oa), F({
|
|
834
836
|
ref_key: "calendar",
|
|
835
837
|
ref: l,
|
|
836
838
|
columns: n.value,
|
|
@@ -843,30 +845,30 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
843
845
|
popover: { visibility: "focus" },
|
|
844
846
|
rows: 1,
|
|
845
847
|
step: s.value,
|
|
846
|
-
"onUpdate:modelValue": q[0] || (q[0] = (
|
|
848
|
+
"onUpdate:modelValue": q[0] || (q[0] = (z) => I.$emit("update:modelValue", z))
|
|
847
849
|
}, c(r)), Ze({ _: 2 }, [
|
|
848
850
|
e.inputMode ? {
|
|
849
851
|
name: "default",
|
|
850
|
-
fn:
|
|
851
|
-
e.isRange ? (d(),
|
|
852
|
+
fn: L(({ inputValue: z, inputEvents: R, showPopover: D }) => [
|
|
853
|
+
e.isRange ? (d(), A(za, {
|
|
852
854
|
key: 1,
|
|
853
855
|
disabled: e.disabled,
|
|
854
856
|
error: e.error,
|
|
855
857
|
"input-id": g.value,
|
|
856
|
-
"input-value":
|
|
857
|
-
"input-value-fmt": p(
|
|
858
|
-
listeners:
|
|
858
|
+
"input-value": z,
|
|
859
|
+
"input-value-fmt": p(z),
|
|
860
|
+
listeners: R,
|
|
859
861
|
placeholder: e.placeholder,
|
|
860
862
|
required: e.required,
|
|
861
|
-
onUiFocusin:
|
|
862
|
-
onUiInput:
|
|
863
|
-
}, null, 8, ["disabled", "error", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (d(),
|
|
863
|
+
onUiFocusin: D,
|
|
864
|
+
onUiInput: D
|
|
865
|
+
}, null, 8, ["disabled", "error", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (d(), A(qa, {
|
|
864
866
|
key: 0,
|
|
865
867
|
disabled: e.disabled,
|
|
866
868
|
error: e.error,
|
|
867
869
|
"input-id": g.value,
|
|
868
|
-
listeners:
|
|
869
|
-
"model-value": p(
|
|
870
|
+
listeners: R,
|
|
871
|
+
"model-value": p(z),
|
|
870
872
|
placeholder: e.placeholder,
|
|
871
873
|
required: e.required
|
|
872
874
|
}, null, 8, ["disabled", "error", "input-id", "listeners", "model-value", "placeholder", "required"]))
|
|
@@ -874,7 +876,7 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
874
876
|
key: "0"
|
|
875
877
|
} : void 0
|
|
876
878
|
]), 1040, ["columns", "disabled-dates", "max-date", "min-date", "model-value", "model-modifiers", "step"]),
|
|
877
|
-
|
|
879
|
+
b.value ? (d(), A(ye, {
|
|
878
880
|
key: 1,
|
|
879
881
|
error: e.error,
|
|
880
882
|
"error-msg": e.errorMsg,
|
|
@@ -883,10 +885,10 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
883
885
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : C("", !0)
|
|
884
886
|
], 16, ja));
|
|
885
887
|
}
|
|
886
|
-
}), Ua = { key: 0 },
|
|
888
|
+
}), Ua = { key: 0 }, Ha = {
|
|
887
889
|
class: "bs-circle-button-icon",
|
|
888
890
|
role: "presentation"
|
|
889
|
-
},
|
|
891
|
+
}, Ga = { key: 1 }, Tt = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
890
892
|
__name: "BsCircleButton",
|
|
891
893
|
props: {
|
|
892
894
|
disabled: {
|
|
@@ -927,7 +929,7 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
927
929
|
},
|
|
928
930
|
variant: {
|
|
929
931
|
type: String,
|
|
930
|
-
validator: (e) => ["", "blue", "pink", "purple", "red", "royal"].includes(e)
|
|
932
|
+
validator: (e) => ["", "blue", "pink", "purple", "red", "royal", "white"].includes(e)
|
|
931
933
|
},
|
|
932
934
|
/** @DEPRECATED in favor of linkTo */
|
|
933
935
|
href: {
|
|
@@ -935,7 +937,7 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
935
937
|
}
|
|
936
938
|
},
|
|
937
939
|
setup(e) {
|
|
938
|
-
const a = e, t =
|
|
940
|
+
const a = e, t = de(), l = et(), { rootTag: n, attrsToBind: i, hrefUrl: u } = ze(a, t), { onLinkClick: o } = Fe(a), s = f(() => g.value ? {} : a.href ? { title: a.label } : { "aria-label": a.label }), r = f(() => {
|
|
939
941
|
if (a.hoverEffect)
|
|
940
942
|
return a.iconPosition;
|
|
941
943
|
}), m = f(() => {
|
|
@@ -943,8 +945,8 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
943
945
|
return {
|
|
944
946
|
icon: a.icon || (a.textBtn || a.size == "sm" ? `small-${p}` : p)
|
|
945
947
|
};
|
|
946
|
-
}), g = f(() => a.textBtn || !!(l != null && l.default)), v = f(() => g.value && a.iconPosition !== "left"),
|
|
947
|
-
return (p,
|
|
948
|
+
}), g = f(() => a.textBtn || !!(l != null && l.default)), v = f(() => g.value && a.iconPosition !== "left"), b = f(() => g.value && a.iconPosition === "left"), y = f(() => a.variant ? `color-${a.variant}` : void 0), { icon: S } = Oe(m, "icon");
|
|
949
|
+
return (p, w) => (d(), A(ne(c(n)), F({
|
|
948
950
|
class: "bs-circle-button",
|
|
949
951
|
"data-disabled": e.disabled,
|
|
950
952
|
"data-direction": r.value,
|
|
@@ -955,27 +957,27 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
955
957
|
"data-component": "bs-circle-button",
|
|
956
958
|
".href": c(u)
|
|
957
959
|
}, { ...c(i), ...s.value }, { onClick: c(o) }), {
|
|
958
|
-
default:
|
|
959
|
-
v.value ? (d(),
|
|
960
|
-
|
|
961
|
-
|
|
960
|
+
default: L(() => [
|
|
961
|
+
v.value ? (d(), h("span", Ua, [
|
|
962
|
+
O(p.$slots, "default", {}, () => [
|
|
963
|
+
U(T(e.label), 1)
|
|
962
964
|
])
|
|
963
965
|
])) : C("", !0),
|
|
964
|
-
B("span",
|
|
965
|
-
|
|
966
|
-
(d(),
|
|
966
|
+
B("span", Ha, [
|
|
967
|
+
O(p.$slots, "icon", {}, () => [
|
|
968
|
+
(d(), A(ne(c(S))))
|
|
967
969
|
])
|
|
968
970
|
]),
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
971
|
+
b.value ? (d(), h("span", Ga, [
|
|
972
|
+
O(p.$slots, "default", {}, () => [
|
|
973
|
+
U(T(e.label), 1)
|
|
972
974
|
])
|
|
973
975
|
])) : C("", !0)
|
|
974
976
|
]),
|
|
975
977
|
_: 3
|
|
976
978
|
}, 48, ["data-disabled", "data-direction", "data-ghost", "data-size", "data-text", "data-variant", ".href", "onClick"]));
|
|
977
979
|
}
|
|
978
|
-
}),
|
|
980
|
+
}), Mo = {
|
|
979
981
|
__name: "BsCaretButton",
|
|
980
982
|
props: {
|
|
981
983
|
direction: {
|
|
@@ -1009,7 +1011,7 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
1009
1011
|
}
|
|
1010
1012
|
},
|
|
1011
1013
|
setup(e) {
|
|
1012
|
-
return (a, t) => (d(),
|
|
1014
|
+
return (a, t) => (d(), A(Tt, {
|
|
1013
1015
|
disabled: e.disabled,
|
|
1014
1016
|
"ghost-btn": e.ghostBtn,
|
|
1015
1017
|
"hover-effect": e.hoverEffect,
|
|
@@ -1020,13 +1022,13 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
1020
1022
|
size: e.size,
|
|
1021
1023
|
"text-btn": !1
|
|
1022
1024
|
}, {
|
|
1023
|
-
icon:
|
|
1024
|
-
e.direction == "right" ? (d(),
|
|
1025
|
+
icon: L(() => [
|
|
1026
|
+
e.direction == "right" ? (d(), A(c($t), { key: 0 })) : (d(), A(c(It), { key: 1 }))
|
|
1025
1027
|
]),
|
|
1026
1028
|
_: 1
|
|
1027
1029
|
}, 8, ["disabled", "ghost-btn", "hover-effect", "icon-position", "label", "link-to", "router", "size"]));
|
|
1028
1030
|
}
|
|
1029
|
-
},
|
|
1031
|
+
}, No = {
|
|
1030
1032
|
__name: "BsCaretTextButton",
|
|
1031
1033
|
props: {
|
|
1032
1034
|
direction: {
|
|
@@ -1060,12 +1062,12 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
1060
1062
|
},
|
|
1061
1063
|
variant: {
|
|
1062
1064
|
type: String,
|
|
1063
|
-
validator: (e) => ["", "blue", "pink", "purple", "red", "royal"].includes(e),
|
|
1065
|
+
validator: (e) => ["", "blue", "pink", "purple", "red", "royal", "white"].includes(e),
|
|
1064
1066
|
default: ""
|
|
1065
1067
|
}
|
|
1066
1068
|
},
|
|
1067
1069
|
setup(e) {
|
|
1068
|
-
return (a, t) => (d(),
|
|
1070
|
+
return (a, t) => (d(), A(Tt, {
|
|
1069
1071
|
disabled: e.disabled,
|
|
1070
1072
|
"ghost-btn": e.ghostBtn,
|
|
1071
1073
|
"hover-effect": e.hoverEffect,
|
|
@@ -1077,12 +1079,12 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
1077
1079
|
"text-btn": "",
|
|
1078
1080
|
variant: e.variant
|
|
1079
1081
|
}, {
|
|
1080
|
-
icon:
|
|
1081
|
-
e.direction == "right" ? (d(),
|
|
1082
|
+
icon: L(() => [
|
|
1083
|
+
e.direction == "right" ? (d(), A(c(Ht), { key: 0 })) : (d(), A(c(Gt), { key: 1 }))
|
|
1082
1084
|
]),
|
|
1083
|
-
default:
|
|
1084
|
-
|
|
1085
|
-
|
|
1085
|
+
default: L(() => [
|
|
1086
|
+
O(a.$slots, "default", {}, () => [
|
|
1087
|
+
U(T(e.label), 1)
|
|
1086
1088
|
])
|
|
1087
1089
|
]),
|
|
1088
1090
|
_: 3
|
|
@@ -1126,8 +1128,8 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
1126
1128
|
},
|
|
1127
1129
|
setup(e) {
|
|
1128
1130
|
const a = e, t = $(!1), l = (m) => {
|
|
1129
|
-
const g = new Date(m), v = g.toTimeString().split(" ")[0],
|
|
1130
|
-
return `${v} (${
|
|
1131
|
+
const g = new Date(m), v = g.toTimeString().split(" ")[0], b = g.toDateString().split(" ").slice(1, 3).join(" ");
|
|
1132
|
+
return `${v} (${b})`;
|
|
1131
1133
|
}, n = f(() => {
|
|
1132
1134
|
var m;
|
|
1133
1135
|
return !((m = a.dataIdxLabels) != null && m.length);
|
|
@@ -1136,13 +1138,13 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
1136
1138
|
try {
|
|
1137
1139
|
return m.map((g) => {
|
|
1138
1140
|
const v = g.label;
|
|
1139
|
-
let
|
|
1141
|
+
let b = [];
|
|
1140
1142
|
if (g.data.some((y) => (y == null ? void 0 : y.x) && (y == null ? void 0 : y.y))) {
|
|
1141
|
-
const y = g.data.reduce((
|
|
1142
|
-
|
|
1143
|
+
const y = g.data.reduce((S, p) => (S[p.x] = p.y, S), {});
|
|
1144
|
+
b = a.dataIdxLabels.map((S) => ({ value: y[S] ?? null }));
|
|
1143
1145
|
} else
|
|
1144
|
-
|
|
1145
|
-
return { rowLabel: v, dataCells:
|
|
1146
|
+
b = g.data.map((y) => ({ value: y }));
|
|
1147
|
+
return { rowLabel: v, dataCells: b };
|
|
1146
1148
|
});
|
|
1147
1149
|
} catch {
|
|
1148
1150
|
return [];
|
|
@@ -1150,16 +1152,16 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
1150
1152
|
}
|
|
1151
1153
|
function u(m) {
|
|
1152
1154
|
try {
|
|
1153
|
-
const g = m.reduce((y,
|
|
1154
|
-
const p =
|
|
1155
|
+
const g = m.reduce((y, S) => {
|
|
1156
|
+
const p = S.data.map((w) => w == null ? void 0 : w.x);
|
|
1155
1157
|
return [...y, ...p];
|
|
1156
1158
|
}, []), v = Array.from(new Set(g));
|
|
1157
|
-
return (a.xAxisType === "time" || a.xAxisType === "linear") && v.sort((y,
|
|
1158
|
-
const
|
|
1159
|
-
return m.forEach((
|
|
1160
|
-
const k = { datasetLabel:
|
|
1159
|
+
return (a.xAxisType === "time" || a.xAxisType === "linear") && v.sort((y, S) => (typeof y == "string" && typeof S == "string" && (y = y.toLowerCase(), S = S.toLowerCase()), y < S ? -1 : y > S ? 1 : 0)), v.map((y) => {
|
|
1160
|
+
const S = { rowLabel: y }, p = [];
|
|
1161
|
+
return m.forEach((w) => {
|
|
1162
|
+
const k = { datasetLabel: w.label }, I = w.data.find((q) => q.x === y);
|
|
1161
1163
|
k.value = I ? I.y : null, p.push(k);
|
|
1162
|
-
}),
|
|
1164
|
+
}), S.dataCells = p, a.xAxisType === "time" && (S.rowLabelFmt = l(y)), S;
|
|
1163
1165
|
});
|
|
1164
1166
|
} catch {
|
|
1165
1167
|
return [];
|
|
@@ -1175,10 +1177,10 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
1175
1177
|
var m;
|
|
1176
1178
|
return t.value && !!((m = o.value) != null && m.length);
|
|
1177
1179
|
});
|
|
1178
|
-
return
|
|
1180
|
+
return Q(() => {
|
|
1179
1181
|
t.value = !0;
|
|
1180
|
-
}), (m, g) => (d(),
|
|
1181
|
-
r.value ? (d(),
|
|
1182
|
+
}), (m, g) => (d(), h("div", Ka, [
|
|
1183
|
+
r.value ? (d(), h("table", {
|
|
1182
1184
|
key: 0,
|
|
1183
1185
|
summary: s.value.title
|
|
1184
1186
|
}, [
|
|
@@ -1186,24 +1188,24 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
1186
1188
|
B("tr", null, [
|
|
1187
1189
|
B("th", {
|
|
1188
1190
|
colspan: s.value.colspan
|
|
1189
|
-
},
|
|
1191
|
+
}, T(s.value.title), 9, Za)
|
|
1190
1192
|
]),
|
|
1191
1193
|
B("tr", null, [
|
|
1192
|
-
B("th", Xa,
|
|
1193
|
-
(d(!0),
|
|
1194
|
+
B("th", Xa, T(s.value.colHeadingFirst), 1),
|
|
1195
|
+
(d(!0), h(Y, null, ae(s.value.colHeadings, (v) => (d(), h("th", {
|
|
1194
1196
|
key: v,
|
|
1195
1197
|
scope: "col"
|
|
1196
|
-
},
|
|
1198
|
+
}, T(v), 1))), 128))
|
|
1197
1199
|
])
|
|
1198
1200
|
]),
|
|
1199
1201
|
B("tbody", null, [
|
|
1200
|
-
(d(!0),
|
|
1202
|
+
(d(!0), h(Y, null, ae(s.value.rows, (v) => (d(), h("tr", {
|
|
1201
1203
|
key: v.rowLabelFmt || v.rowLabel
|
|
1202
1204
|
}, [
|
|
1203
|
-
B("th", Qa,
|
|
1204
|
-
(d(!0),
|
|
1205
|
-
key: `${v.rowLabelFmt || v.rowLabel}${
|
|
1206
|
-
},
|
|
1205
|
+
B("th", Qa, T(v.rowLabelFmt || v.rowLabel), 1),
|
|
1206
|
+
(d(!0), h(Y, null, ae(v.dataCells, (b) => (d(), h("td", {
|
|
1207
|
+
key: `${v.rowLabelFmt || v.rowLabel}${b.datasetLabel}${b.value}`
|
|
1208
|
+
}, T(b.value), 1))), 128))
|
|
1207
1209
|
]))), 128))
|
|
1208
1210
|
])
|
|
1209
1211
|
], 8, Ya)) : C("", !0)
|
|
@@ -1213,7 +1215,7 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
1213
1215
|
function en(e, a) {
|
|
1214
1216
|
const t = $(null), l = $(!1), n = $(null), i = "(min-width: 1166px)", u = { tickSize: Le }, o = { tickSize: _a };
|
|
1215
1217
|
let s, r;
|
|
1216
|
-
function m(p,
|
|
1218
|
+
function m(p, w) {
|
|
1217
1219
|
let k;
|
|
1218
1220
|
switch (p) {
|
|
1219
1221
|
case "bar":
|
|
@@ -1225,44 +1227,44 @@ function en(e, a) {
|
|
|
1225
1227
|
default:
|
|
1226
1228
|
throw new Error(`Unsupported chart type: ${p}`);
|
|
1227
1229
|
}
|
|
1228
|
-
return new rn().setCommonConfigs(
|
|
1230
|
+
return new rn().setCommonConfigs(w).setCustomOptions(w)[k](w).setPlugins([tn(n), ia]).build();
|
|
1229
1231
|
}
|
|
1230
1232
|
function g(p) {
|
|
1231
1233
|
p.preventDefault(), p.stopImmediatePropagation();
|
|
1232
|
-
const
|
|
1233
|
-
if (
|
|
1234
|
-
const { labelIndex: k, datasetIndex: I } =
|
|
1234
|
+
const w = p.target.closest("li");
|
|
1235
|
+
if (w && s) {
|
|
1236
|
+
const { labelIndex: k, datasetIndex: I } = w.dataset;
|
|
1235
1237
|
s.setDatasetVisibility(I, !s.isDatasetVisible(I)), s.update(), p.preventDefault(), p.stopImmediatePropagation(), v(I, k);
|
|
1236
1238
|
}
|
|
1237
1239
|
}
|
|
1238
|
-
function v(p,
|
|
1240
|
+
function v(p, w) {
|
|
1239
1241
|
var q;
|
|
1240
|
-
const k = `[data-dataset-index="${p}"][data-label-index="${
|
|
1242
|
+
const k = `[data-dataset-index="${p}"][data-label-index="${w}"]`, I = n.value.querySelector(k);
|
|
1241
1243
|
(q = I == null ? void 0 : I.focus) == null || q.call(I);
|
|
1242
1244
|
}
|
|
1243
|
-
function
|
|
1245
|
+
function b(...p) {
|
|
1244
1246
|
!r || !t.value || (We.register(...p), We.defaults.font.family = "'Roobert', sans-serif", s = new We(t.value, r));
|
|
1245
1247
|
}
|
|
1246
1248
|
const y = Ve(function(p) {
|
|
1247
1249
|
r && (r.updateOptions(p), s.options = r.options, s.update());
|
|
1248
|
-
}, 100),
|
|
1250
|
+
}, 100), S = Ve(function(p) {
|
|
1249
1251
|
r && (r.updateData(p), s.data = r.data, s.update());
|
|
1250
1252
|
}, 100);
|
|
1251
1253
|
return Qe(
|
|
1252
1254
|
i,
|
|
1253
1255
|
(p) => l.value = p == null ? void 0 : p.matches,
|
|
1254
1256
|
[l]
|
|
1255
|
-
),
|
|
1257
|
+
), Q(() => {
|
|
1256
1258
|
var p;
|
|
1257
1259
|
try {
|
|
1258
1260
|
r = m(e, a), (p = n.value) == null || p.addEventListener("click", g);
|
|
1259
|
-
} catch (
|
|
1260
|
-
console.error("Error creating chart config",
|
|
1261
|
+
} catch (w) {
|
|
1262
|
+
console.error("Error creating chart config", w), r = null;
|
|
1261
1263
|
}
|
|
1262
|
-
}),
|
|
1264
|
+
}), ve([" ", "Enter"], g, n), _e(() => {
|
|
1263
1265
|
var p;
|
|
1264
1266
|
(p = n.value) == null || p.removeEventListener("click", g), s == null || s.destroy();
|
|
1265
|
-
}),
|
|
1267
|
+
}), G([
|
|
1266
1268
|
() => a.customOptions,
|
|
1267
1269
|
() => a.showTooltips,
|
|
1268
1270
|
() => a.showXGrid,
|
|
@@ -1272,24 +1274,24 @@ function en(e, a) {
|
|
|
1272
1274
|
() => a.yLabel,
|
|
1273
1275
|
() => a.yMin,
|
|
1274
1276
|
() => a.yMax
|
|
1275
|
-
], () => y(a)),
|
|
1277
|
+
], () => y(a)), G(
|
|
1276
1278
|
l,
|
|
1277
1279
|
(p) => y(Ne(
|
|
1278
1280
|
{},
|
|
1279
1281
|
a,
|
|
1280
1282
|
p ? o : u
|
|
1281
1283
|
))
|
|
1282
|
-
),
|
|
1284
|
+
), G(
|
|
1283
1285
|
[
|
|
1284
1286
|
() => a.data,
|
|
1285
1287
|
() => a.dataIdxLabels
|
|
1286
1288
|
],
|
|
1287
|
-
() =>
|
|
1289
|
+
() => S(a),
|
|
1288
1290
|
{ deep: !0 }
|
|
1289
1291
|
), {
|
|
1290
1292
|
canvasRef: t,
|
|
1291
1293
|
legendListRef: n,
|
|
1292
|
-
registerChart:
|
|
1294
|
+
registerChart: b
|
|
1293
1295
|
};
|
|
1294
1296
|
}
|
|
1295
1297
|
const tn = (e) => ({
|
|
@@ -1383,7 +1385,7 @@ function nt() {
|
|
|
1383
1385
|
};
|
|
1384
1386
|
}
|
|
1385
1387
|
function lt(e) {
|
|
1386
|
-
var
|
|
1388
|
+
var b, y;
|
|
1387
1389
|
const {
|
|
1388
1390
|
dataIdxLabels: a,
|
|
1389
1391
|
showXGrid: t,
|
|
@@ -1434,7 +1436,7 @@ function lt(e) {
|
|
|
1434
1436
|
}
|
|
1435
1437
|
}
|
|
1436
1438
|
};
|
|
1437
|
-
return (i === "time" || ((y = (
|
|
1439
|
+
return (i === "time" || ((y = (b = m == null ? void 0 : m.scales) == null ? void 0 : b.x) == null ? void 0 : y.type) === "time") && (v.x.ticks.source = a != null && a.length ? "labels" : "auto", v.x.time = {
|
|
1438
1440
|
tooltipFormat: "dd MMM yyyy : h:mm bbb"
|
|
1439
1441
|
}), v;
|
|
1440
1442
|
}
|
|
@@ -1597,7 +1599,7 @@ class rn {
|
|
|
1597
1599
|
const sn = {
|
|
1598
1600
|
class: "bs-chart bs-chart-bar",
|
|
1599
1601
|
"data-component": "bs-chart-bar"
|
|
1600
|
-
}, dn = ["aria-label"], un = ["data-hidden"],
|
|
1602
|
+
}, dn = ["aria-label"], un = ["data-hidden"], zo = {
|
|
1601
1603
|
__name: "BsChartBar",
|
|
1602
1604
|
props: {
|
|
1603
1605
|
chartTitle: {
|
|
@@ -1669,7 +1671,7 @@ const sn = {
|
|
|
1669
1671
|
},
|
|
1670
1672
|
setup(e) {
|
|
1671
1673
|
const a = e, { canvasRef: t, legendListRef: l, registerChart: n } = en("bar", a), i = f(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`);
|
|
1672
|
-
return
|
|
1674
|
+
return Q(() => n(
|
|
1673
1675
|
ra,
|
|
1674
1676
|
sa,
|
|
1675
1677
|
da,
|
|
@@ -1677,7 +1679,7 @@ const sn = {
|
|
|
1677
1679
|
ca,
|
|
1678
1680
|
fa,
|
|
1679
1681
|
pa
|
|
1680
|
-
)), (u, o) => (d(),
|
|
1682
|
+
)), (u, o) => (d(), h("div", sn, [
|
|
1681
1683
|
B("figure", null, [
|
|
1682
1684
|
B("div", null, [
|
|
1683
1685
|
B("canvas", {
|
|
@@ -1688,7 +1690,7 @@ const sn = {
|
|
|
1688
1690
|
}, null, 8, dn)
|
|
1689
1691
|
]),
|
|
1690
1692
|
B("div", null, [
|
|
1691
|
-
|
|
1693
|
+
E(Ja, {
|
|
1692
1694
|
"chart-type": "bar",
|
|
1693
1695
|
data: e.data,
|
|
1694
1696
|
"data-idx-labels": e.dataIdxLabels,
|
|
@@ -1709,7 +1711,7 @@ const sn = {
|
|
|
1709
1711
|
])
|
|
1710
1712
|
]));
|
|
1711
1713
|
}
|
|
1712
|
-
}, cn = ["data-disabled", "data-error", "data-size"], fn = ["checked", "data-error", "disabled", "id", "required", "value"],
|
|
1714
|
+
}, cn = ["data-disabled", "data-error", "data-size"], fn = ["checked", "data-error", "disabled", "id", "required", "value"], Fo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1713
1715
|
__name: "BsCheckbox",
|
|
1714
1716
|
props: {
|
|
1715
1717
|
/** Sets the label. */
|
|
@@ -1772,29 +1774,29 @@ const sn = {
|
|
|
1772
1774
|
},
|
|
1773
1775
|
emits: ["update:modelValue"],
|
|
1774
1776
|
setup(e, { emit: a }) {
|
|
1775
|
-
const t = e, l = a, [n] =
|
|
1777
|
+
const t = e, l = a, [n] = J(), i = f(() => tt.concat(t.passAttrs.split(","))), u = $(null), o = f(() => t.inputId || n.value), s = f(() => t.checked || g.value), r = f(() => t.indeterminate || t.checkedPartially), m = f(() => Array.isArray(t.modelValue) && t.value), g = f(() => m.value && t.modelValue.includes(t.value) || typeof t.modelValue == "boolean" && t.modelValue);
|
|
1776
1778
|
function v() {
|
|
1777
1779
|
u.value && (u.value.indeterminate = r.value && !s.value);
|
|
1778
1780
|
}
|
|
1779
|
-
function
|
|
1781
|
+
function b(p) {
|
|
1780
1782
|
l("update:modelValue", p);
|
|
1781
1783
|
}
|
|
1782
1784
|
function y(p) {
|
|
1783
|
-
const
|
|
1784
|
-
p ?
|
|
1785
|
+
const w = [...t.modelValue];
|
|
1786
|
+
p ? w.push(t.value) : w.splice(w.indexOf(t.value), 1), l("update:modelValue", w);
|
|
1785
1787
|
}
|
|
1786
|
-
function
|
|
1787
|
-
const { checked:
|
|
1788
|
-
m.value ? y(
|
|
1788
|
+
function S(p) {
|
|
1789
|
+
const { checked: w } = p.target;
|
|
1790
|
+
m.value ? y(w) : b(w);
|
|
1789
1791
|
}
|
|
1790
|
-
return
|
|
1792
|
+
return G(s, v), G(r, v), Q(v), (p, w) => (d(), h("div", F({
|
|
1791
1793
|
class: "bs-boolean",
|
|
1792
1794
|
"data-component": "bs-checkbox",
|
|
1793
1795
|
"data-disabled": e.disabled,
|
|
1794
1796
|
"data-error": e.error,
|
|
1795
1797
|
"data-size": e.size
|
|
1796
|
-
}, c(
|
|
1797
|
-
B("input",
|
|
1798
|
+
}, c(X)(p.$attrs, i.value).remaining), [
|
|
1799
|
+
B("input", F({
|
|
1798
1800
|
ref_key: "inputEl",
|
|
1799
1801
|
ref: u,
|
|
1800
1802
|
checked: s.value,
|
|
@@ -1804,17 +1806,17 @@ const sn = {
|
|
|
1804
1806
|
required: e.required,
|
|
1805
1807
|
value: e.value || "on",
|
|
1806
1808
|
type: "checkbox",
|
|
1807
|
-
onChange:
|
|
1808
|
-
}, c(
|
|
1809
|
-
e.label || p.$slots.label ? (d(),
|
|
1809
|
+
onChange: S
|
|
1810
|
+
}, c(X)(p.$attrs, i.value).filtered), null, 16, fn),
|
|
1811
|
+
e.label || p.$slots.label ? (d(), A(le, {
|
|
1810
1812
|
key: 0,
|
|
1811
1813
|
for: p.$attrs.id || o.value,
|
|
1812
1814
|
disabled: e.disabled,
|
|
1813
1815
|
required: e.required
|
|
1814
1816
|
}, {
|
|
1815
|
-
default:
|
|
1816
|
-
|
|
1817
|
-
|
|
1817
|
+
default: L(() => [
|
|
1818
|
+
O(p.$slots, "label", {}, () => [
|
|
1819
|
+
U(T(e.label), 1)
|
|
1818
1820
|
])
|
|
1819
1821
|
]),
|
|
1820
1822
|
_: 3
|
|
@@ -1843,21 +1845,21 @@ const sn = {
|
|
|
1843
1845
|
},
|
|
1844
1846
|
setup(e, { expose: a }) {
|
|
1845
1847
|
const t = $(null);
|
|
1846
|
-
return a({ internalContainerRef: t }), (l, n) => (d(),
|
|
1847
|
-
e.breakout && e.breakoutMounted ? (d(),
|
|
1848
|
+
return a({ internalContainerRef: t }), (l, n) => (d(), h(Y, null, [
|
|
1849
|
+
e.breakout && e.breakoutMounted ? (d(), A(jt, {
|
|
1848
1850
|
key: 0,
|
|
1849
1851
|
to: e.breakoutStub
|
|
1850
1852
|
}, [
|
|
1851
|
-
|
|
1853
|
+
O(l.$slots, "default")
|
|
1852
1854
|
], 8, ["to"])) : C("", !0),
|
|
1853
|
-
e.breakout ? C("", !0) : (d(),
|
|
1854
|
-
e.containerId ?
|
|
1855
|
+
e.breakout ? C("", !0) : (d(), h(Y, { key: 1 }, [
|
|
1856
|
+
e.containerId ? O(l.$slots, "default", { key: 0 }) : (d(), h("div", {
|
|
1855
1857
|
key: 1,
|
|
1856
1858
|
ref_key: "internalContainerRef",
|
|
1857
1859
|
ref: t,
|
|
1858
1860
|
style: { position: "relative" }
|
|
1859
1861
|
}, [
|
|
1860
|
-
|
|
1862
|
+
O(l.$slots, "default")
|
|
1861
1863
|
], 512))
|
|
1862
1864
|
], 64))
|
|
1863
1865
|
], 64));
|
|
@@ -1894,7 +1896,7 @@ const sn = {
|
|
|
1894
1896
|
],
|
|
1895
1897
|
setup(e, { emit: a }) {
|
|
1896
1898
|
const t = a;
|
|
1897
|
-
return (l, n) => e.preloaded ?
|
|
1899
|
+
return (l, n) => e.preloaded ? pe((d(), A(dt, {
|
|
1898
1900
|
key: 0,
|
|
1899
1901
|
name: e.name,
|
|
1900
1902
|
onBeforeEnter: n[0] || (n[0] = (i) => t("before-enter")),
|
|
@@ -1906,13 +1908,13 @@ const sn = {
|
|
|
1906
1908
|
onAfterLeave: n[6] || (n[6] = (i) => t("after-leave")),
|
|
1907
1909
|
onLeaveCancelled: n[7] || (n[7] = (i) => t("leave-cancelled"))
|
|
1908
1910
|
}, {
|
|
1909
|
-
default:
|
|
1910
|
-
|
|
1911
|
+
default: L(() => [
|
|
1912
|
+
O(l.$slots, "default")
|
|
1911
1913
|
]),
|
|
1912
1914
|
_: 3
|
|
1913
1915
|
}, 8, ["name"])), [
|
|
1914
|
-
[
|
|
1915
|
-
]) : (d(),
|
|
1916
|
+
[me, e.shown]
|
|
1917
|
+
]) : (d(), A(dt, {
|
|
1916
1918
|
key: 1,
|
|
1917
1919
|
name: e.name,
|
|
1918
1920
|
onBeforeEnter: n[8] || (n[8] = (i) => t("before-enter")),
|
|
@@ -1924,8 +1926,8 @@ const sn = {
|
|
|
1924
1926
|
onAfterLeave: n[14] || (n[14] = (i) => t("after-leave")),
|
|
1925
1927
|
onLeaveCancelled: n[15] || (n[15] = (i) => t("leave-cancelled"))
|
|
1926
1928
|
}, {
|
|
1927
|
-
default:
|
|
1928
|
-
e.shown ?
|
|
1929
|
+
default: L(() => [
|
|
1930
|
+
e.shown ? O(l.$slots, "default", { key: 0 }) : C("", !0)
|
|
1929
1931
|
]),
|
|
1930
1932
|
_: 3
|
|
1931
1933
|
}, 8, ["name"]));
|
|
@@ -1933,16 +1935,16 @@ const sn = {
|
|
|
1933
1935
|
}, mn = (e, a = void 0, t = "relative") => {
|
|
1934
1936
|
const l = $(null), n = $(null), i = $(!1);
|
|
1935
1937
|
let u = !1;
|
|
1936
|
-
return
|
|
1938
|
+
return Q(() => {
|
|
1937
1939
|
e && (l.value = a || yt(), document.getElementById(l.value) ? (n.value = document.getElementById(l.value), u = !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);
|
|
1938
1940
|
}), $e(() => {
|
|
1939
1941
|
var o;
|
|
1940
1942
|
e && !u && ((o = document.getElementById(l.value)) == null || o.remove());
|
|
1941
1943
|
}), { breakoutId: l, breakoutStub: n, breakoutMounted: i };
|
|
1942
|
-
},
|
|
1944
|
+
}, hn = {
|
|
1943
1945
|
key: 0,
|
|
1944
1946
|
class: "bs-dropdown-backdrop"
|
|
1945
|
-
},
|
|
1947
|
+
}, bn = ["data-width", "data-shown", "data-no-mobile"], vn = { key: 0 }, gn = { key: 0 }, yn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1946
1948
|
__name: "BsDropdownNew",
|
|
1947
1949
|
props: {
|
|
1948
1950
|
anchorId: {
|
|
@@ -1998,47 +2000,47 @@ const sn = {
|
|
|
1998
2000
|
const t = e, l = a, n = $(null), i = $(null), u = $(!1), o = $(!1), s = f(() => document.getElementById(t.anchorId)), r = f(() => t.breakout ? g.value : t.containerId ? document.getElementById(t.containerId) : n.value.internalContainerRef), m = f(() => t.width === "anchor" ? void 0 : t.width);
|
|
1999
2001
|
Ct([i, s], () => {
|
|
2000
2002
|
o.value && l("close");
|
|
2001
|
-
}),
|
|
2003
|
+
}), ve(["Escape"], () => {
|
|
2002
2004
|
o.value && l("close");
|
|
2003
2005
|
});
|
|
2004
2006
|
const { breakoutStub: g, breakoutMounted: v } = mn(t.breakout, t.containerId);
|
|
2005
|
-
|
|
2006
|
-
const
|
|
2007
|
-
i.value.style.setProperty(
|
|
2007
|
+
he("dropdownEnter", u), he("dropdownAfterEnter", o), he("dropdownShown", f(() => t.shown));
|
|
2008
|
+
const b = (z, R) => {
|
|
2009
|
+
i.value.style.setProperty(z, R);
|
|
2008
2010
|
};
|
|
2009
2011
|
function y() {
|
|
2010
|
-
const
|
|
2011
|
-
|
|
2012
|
+
const z = r.value.getBoundingClientRect(), R = s.value.getBoundingClientRect(), D = i.value.getBoundingClientRect();
|
|
2013
|
+
S(z, R), p(z, R, D);
|
|
2012
2014
|
}
|
|
2013
|
-
function
|
|
2015
|
+
function S(z, R) {
|
|
2014
2016
|
if (t.position === "top") {
|
|
2015
|
-
const
|
|
2016
|
-
|
|
2017
|
+
const D = z.bottom - R.bottom;
|
|
2018
|
+
b("--dropdown-wscreen-top", "auto"), b("--dropdown-wscreen-bottom", `${D + R.height + 8}px`);
|
|
2017
2019
|
} else {
|
|
2018
|
-
const
|
|
2019
|
-
|
|
2020
|
+
const D = R.top - z.top;
|
|
2021
|
+
b("--dropdown-wscreen-top", `${D + R.height + 8}px`), b("--dropdown-wscreen-bottom", "auto");
|
|
2020
2022
|
}
|
|
2021
2023
|
}
|
|
2022
|
-
function p(
|
|
2023
|
-
const
|
|
2024
|
+
function p(z, R, D) {
|
|
2025
|
+
const W = R.left - z.left;
|
|
2024
2026
|
if (t.position === "center") {
|
|
2025
|
-
const
|
|
2026
|
-
|
|
2027
|
+
const P = (R.width - D.width) / 2;
|
|
2028
|
+
b("--dropdown-wscreen-left", `${W + P}px`), b("--dropdown-wscreen-right", "auto");
|
|
2027
2029
|
} else if (t.position === "right") {
|
|
2028
|
-
const
|
|
2029
|
-
|
|
2030
|
+
const P = z.right - R.right;
|
|
2031
|
+
b("--dropdown-wscreen-left", "auto"), b("--dropdown-wscreen-right", `${P}px`);
|
|
2030
2032
|
} else
|
|
2031
|
-
|
|
2033
|
+
b("--dropdown-wscreen-left", `${W}px`), b("--dropdown-wscreen-right", "auto");
|
|
2032
2034
|
}
|
|
2033
|
-
function
|
|
2035
|
+
function w() {
|
|
2034
2036
|
if (t.width === "anchor") {
|
|
2035
|
-
const
|
|
2036
|
-
|
|
2037
|
+
const z = s.value.getBoundingClientRect();
|
|
2038
|
+
b("--dropdown-wscreen-width", `${z.width}px`);
|
|
2037
2039
|
} else
|
|
2038
|
-
|
|
2040
|
+
b("--dropdown-wscreen-width", "");
|
|
2039
2041
|
}
|
|
2040
2042
|
function k() {
|
|
2041
|
-
u.value = !0, y(),
|
|
2043
|
+
u.value = !0, y(), w(), l("enter");
|
|
2042
2044
|
}
|
|
2043
2045
|
function I() {
|
|
2044
2046
|
o.value = !0, l("after-enter");
|
|
@@ -2046,9 +2048,9 @@ const sn = {
|
|
|
2046
2048
|
function q() {
|
|
2047
2049
|
u.value = !1, o.value = !1, l("after-leave");
|
|
2048
2050
|
}
|
|
2049
|
-
return (
|
|
2050
|
-
e.useMobileStyle && e.shown ? (d(),
|
|
2051
|
-
|
|
2051
|
+
return (z, R) => (d(), h(Y, null, [
|
|
2052
|
+
e.useMobileStyle && e.shown ? (d(), h("div", hn)) : C("", !0),
|
|
2053
|
+
E(pn, {
|
|
2052
2054
|
ref_key: "dropdownContainerRef",
|
|
2053
2055
|
ref: n,
|
|
2054
2056
|
breakout: e.breakout,
|
|
@@ -2056,8 +2058,8 @@ const sn = {
|
|
|
2056
2058
|
breakoutStub: c(g),
|
|
2057
2059
|
containerId: e.containerId
|
|
2058
2060
|
}, {
|
|
2059
|
-
default:
|
|
2060
|
-
|
|
2061
|
+
default: L(() => [
|
|
2062
|
+
E(Pe, {
|
|
2061
2063
|
name: "bs-dropdown",
|
|
2062
2064
|
preloaded: e.preloaded,
|
|
2063
2065
|
shown: e.shown,
|
|
@@ -2065,30 +2067,30 @@ const sn = {
|
|
|
2065
2067
|
onEnter: k,
|
|
2066
2068
|
onAfterLeave: q
|
|
2067
2069
|
}, {
|
|
2068
|
-
default:
|
|
2069
|
-
B("div",
|
|
2070
|
+
default: L(() => [
|
|
2071
|
+
B("div", F({
|
|
2070
2072
|
ref_key: "dropdownRef",
|
|
2071
2073
|
ref: i,
|
|
2072
2074
|
class: "bs-dropdown",
|
|
2073
2075
|
"data-width": m.value,
|
|
2074
2076
|
"data-shown": e.shown,
|
|
2075
2077
|
"data-no-mobile": !e.useMobileStyle
|
|
2076
|
-
},
|
|
2077
|
-
e.helperText ? (d(),
|
|
2078
|
+
}, z.$attrs), [
|
|
2079
|
+
e.helperText ? (d(), h("header", vn, [
|
|
2078
2080
|
B("div", null, [
|
|
2079
|
-
B("h3", null,
|
|
2080
|
-
e.helperDescription ? (d(),
|
|
2081
|
+
B("h3", null, T(e.helperText), 1),
|
|
2082
|
+
e.helperDescription ? (d(), h("p", gn, T(e.helperDescription), 1)) : C("", !0)
|
|
2081
2083
|
]),
|
|
2082
2084
|
B("button", {
|
|
2083
2085
|
type: "button",
|
|
2084
2086
|
title: "close",
|
|
2085
|
-
onClick:
|
|
2087
|
+
onClick: R[0] || (R[0] = () => l("close"))
|
|
2086
2088
|
}, [
|
|
2087
|
-
|
|
2089
|
+
E(c(Ie))
|
|
2088
2090
|
])
|
|
2089
2091
|
])) : C("", !0),
|
|
2090
|
-
|
|
2091
|
-
], 16,
|
|
2092
|
+
O(z.$slots, "default")
|
|
2093
|
+
], 16, bn)
|
|
2092
2094
|
]),
|
|
2093
2095
|
_: 3
|
|
2094
2096
|
}, 8, ["preloaded", "shown"])
|
|
@@ -2188,7 +2190,7 @@ const sn = {
|
|
|
2188
2190
|
],
|
|
2189
2191
|
setup(e, { emit: a }) {
|
|
2190
2192
|
const t = e, l = a, { transition: n } = Ee(t), i = f(() => t.width === "toggle" ? "anchor" : t.width), u = f(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = f(() => t.toggleId ? t.toggleId : t.anchorId);
|
|
2191
|
-
return (s, r) => (d(),
|
|
2193
|
+
return (s, r) => (d(), A(yn, {
|
|
2192
2194
|
"anchor-id": o.value,
|
|
2193
2195
|
breakout: e.breakout,
|
|
2194
2196
|
"container-id": e.containerId,
|
|
@@ -2204,8 +2206,8 @@ const sn = {
|
|
|
2204
2206
|
onAfterEnter: r[2] || (r[2] = () => l("after-enter")),
|
|
2205
2207
|
onAfterLeave: r[3] || (r[3] = () => l("after-leave"))
|
|
2206
2208
|
}, {
|
|
2207
|
-
default:
|
|
2208
|
-
|
|
2209
|
+
default: L(() => [
|
|
2210
|
+
O(s.$slots, "default")
|
|
2209
2211
|
]),
|
|
2210
2212
|
_: 3
|
|
2211
2213
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
|
|
@@ -2252,7 +2254,7 @@ const sn = {
|
|
|
2252
2254
|
setup(e, { emit: a }) {
|
|
2253
2255
|
const t = e, l = a;
|
|
2254
2256
|
let n = !1;
|
|
2255
|
-
const i = $(null), [u] =
|
|
2257
|
+
const i = $(null), [u] = J(1), o = f(() => ({
|
|
2256
2258
|
icon: t.modelValue ? "close" : t.optionsId ? "caret-down" : "",
|
|
2257
2259
|
show: !!(t.modelValue || t.optionsId),
|
|
2258
2260
|
text: t.modelValue ? "Clear this field" : t.optionsId ? "Toggle options dropdown" : ""
|
|
@@ -2261,12 +2263,12 @@ const sn = {
|
|
|
2261
2263
|
t.modelValue && l("clear"), n = !0, i.value.$el.focus();
|
|
2262
2264
|
}
|
|
2263
2265
|
function r(g) {
|
|
2264
|
-
var y,
|
|
2266
|
+
var y, S;
|
|
2265
2267
|
const v = ((y = g.relatedTarget) == null ? void 0 : y.id) === u.value;
|
|
2266
|
-
!(((
|
|
2268
|
+
!(((S = g.relatedTarget) == null ? void 0 : S.id) === t.optionsId) && (!v || !n) && m(!0), n = !1;
|
|
2267
2269
|
}
|
|
2268
2270
|
const m = Ve((g) => l("toggled", g), 200, !0);
|
|
2269
|
-
return (g, v) => (d(),
|
|
2271
|
+
return (g, v) => (d(), A(De, {
|
|
2270
2272
|
"aria-live": "polite",
|
|
2271
2273
|
disabled: e.disabled,
|
|
2272
2274
|
error: e.error,
|
|
@@ -2275,8 +2277,8 @@ const sn = {
|
|
|
2275
2277
|
variant: "combobox",
|
|
2276
2278
|
onClick: c(m)
|
|
2277
2279
|
}, {
|
|
2278
|
-
default:
|
|
2279
|
-
|
|
2280
|
+
default: L(() => [
|
|
2281
|
+
E(ke, F({
|
|
2280
2282
|
ref_key: "inputRef",
|
|
2281
2283
|
ref: i,
|
|
2282
2284
|
"aria-controls": e.optionsId,
|
|
@@ -2292,9 +2294,9 @@ const sn = {
|
|
|
2292
2294
|
required: e.required,
|
|
2293
2295
|
role: e.optionsId ? "combobox" : void 0,
|
|
2294
2296
|
onFocus: r,
|
|
2295
|
-
onInput: v[0] || (v[0] = (
|
|
2297
|
+
onInput: v[0] || (v[0] = (b) => g.$emit("update:modelValue", b.target.value))
|
|
2296
2298
|
}, g.$attrs), null, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup", "aria-invalid", "data-error", "disabled", "model-value", "placeholder", "required", "role"]),
|
|
2297
|
-
|
|
2299
|
+
pe(B("button", {
|
|
2298
2300
|
"aria-controls": !e.modelValue && e.optionsId ? e.optionsId : void 0,
|
|
2299
2301
|
"aria-expanded": !e.modelValue && e.optionsId ? e.open : void 0,
|
|
2300
2302
|
"data-open": e.modelValue ? void 0 : e.open,
|
|
@@ -2305,21 +2307,21 @@ const sn = {
|
|
|
2305
2307
|
type: "button",
|
|
2306
2308
|
onClick: s
|
|
2307
2309
|
}, [
|
|
2308
|
-
B("span", wn,
|
|
2309
|
-
|
|
2310
|
+
B("span", wn, T(o.value.text), 1),
|
|
2311
|
+
pe(E(c(Me), {
|
|
2310
2312
|
role: "presentation",
|
|
2311
2313
|
size: "md"
|
|
2312
2314
|
}, null, 512), [
|
|
2313
|
-
[
|
|
2315
|
+
[me, o.value.icon == "caret-down"]
|
|
2314
2316
|
]),
|
|
2315
|
-
|
|
2317
|
+
pe(E(c(Ie), {
|
|
2316
2318
|
role: "presentation",
|
|
2317
2319
|
size: "md"
|
|
2318
2320
|
}, null, 512), [
|
|
2319
|
-
[
|
|
2321
|
+
[me, o.value.icon == "close"]
|
|
2320
2322
|
])
|
|
2321
2323
|
], 8, Sn), [
|
|
2322
|
-
[
|
|
2324
|
+
[me, o.value.show]
|
|
2323
2325
|
])
|
|
2324
2326
|
]),
|
|
2325
2327
|
_: 1
|
|
@@ -2355,7 +2357,7 @@ const sn = {
|
|
|
2355
2357
|
},
|
|
2356
2358
|
setup(e) {
|
|
2357
2359
|
const a = e, t = f(() => a.badgeCount > 0);
|
|
2358
|
-
return (l, n) => (d(),
|
|
2360
|
+
return (l, n) => (d(), h("button", {
|
|
2359
2361
|
class: "bs-filter-button",
|
|
2360
2362
|
"aria-controls": e.optionsId,
|
|
2361
2363
|
"aria-expanded": e.open,
|
|
@@ -2366,7 +2368,7 @@ const sn = {
|
|
|
2366
2368
|
disabled: e.disabled,
|
|
2367
2369
|
type: "button"
|
|
2368
2370
|
}, [
|
|
2369
|
-
t.value ? (d(),
|
|
2371
|
+
t.value ? (d(), A(Ca, {
|
|
2370
2372
|
key: 0,
|
|
2371
2373
|
color: "blue",
|
|
2372
2374
|
count: e.badgeCount,
|
|
@@ -2374,10 +2376,10 @@ const sn = {
|
|
|
2374
2376
|
position: "left",
|
|
2375
2377
|
variant: "notext"
|
|
2376
2378
|
}, null, 8, ["count"])) : C("", !0),
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
+
O(l.$slots, "label", {}, () => [
|
|
2380
|
+
U(T(e.label), 1)
|
|
2379
2381
|
]),
|
|
2380
|
-
|
|
2382
|
+
E(c(Me))
|
|
2381
2383
|
], 8, $n));
|
|
2382
2384
|
}
|
|
2383
2385
|
}, kn = ["data-value", "data-value-type", "data-variant", "id"], it = {
|
|
@@ -2393,12 +2395,12 @@ const sn = {
|
|
|
2393
2395
|
}
|
|
2394
2396
|
},
|
|
2395
2397
|
setup(e) {
|
|
2396
|
-
const a = e, t = $(null), l =
|
|
2398
|
+
const a = e, t = $(null), l = be("optionsId", ""), n = be("handleOptionSelect", () => {
|
|
2397
2399
|
}), i = f(() => `${l.value}-option-${a.value}`);
|
|
2398
2400
|
function u(o) {
|
|
2399
2401
|
n(t.value), o.stopPropagation();
|
|
2400
2402
|
}
|
|
2401
|
-
return (o, s) => (d(),
|
|
2403
|
+
return (o, s) => (d(), h("li", {
|
|
2402
2404
|
ref_key: "optionRef",
|
|
2403
2405
|
ref: t,
|
|
2404
2406
|
"data-component": "bs-dropdown-option",
|
|
@@ -2409,7 +2411,7 @@ const sn = {
|
|
|
2409
2411
|
role: "option",
|
|
2410
2412
|
onClick: u
|
|
2411
2413
|
}, [
|
|
2412
|
-
|
|
2414
|
+
O(o.$slots, "default")
|
|
2413
2415
|
], 8, kn));
|
|
2414
2416
|
}
|
|
2415
2417
|
}, Cn = ["data-img-size", "data-initials", "data-no-img"], xn = ["src", "alt"], Ot = {
|
|
@@ -2432,14 +2434,14 @@ const sn = {
|
|
|
2432
2434
|
},
|
|
2433
2435
|
setup(e) {
|
|
2434
2436
|
const a = e, t = $(!1), l = $(!!a.src);
|
|
2435
|
-
return
|
|
2437
|
+
return Q(() => t.value = !0), (n, i) => (d(), h("div", {
|
|
2436
2438
|
class: "bs-profile-img",
|
|
2437
2439
|
"data-component": "bs-profile-img",
|
|
2438
2440
|
"data-img-size": e.size,
|
|
2439
2441
|
"data-initials": e.initials,
|
|
2440
2442
|
"data-no-img": !l.value
|
|
2441
2443
|
}, [
|
|
2442
|
-
l.value && t.value ? (d(),
|
|
2444
|
+
l.value && t.value ? (d(), h("img", {
|
|
2443
2445
|
key: 0,
|
|
2444
2446
|
src: e.src,
|
|
2445
2447
|
alt: e.useAltText ? e.profileName : "",
|
|
@@ -2486,7 +2488,7 @@ const sn = {
|
|
|
2486
2488
|
const a = e, t = {};
|
|
2487
2489
|
St(() => {
|
|
2488
2490
|
l();
|
|
2489
|
-
}),
|
|
2491
|
+
}), G(() => a.options, () => {
|
|
2490
2492
|
l();
|
|
2491
2493
|
});
|
|
2492
2494
|
function l() {
|
|
@@ -2508,25 +2510,25 @@ const sn = {
|
|
|
2508
2510
|
function u(o, s) {
|
|
2509
2511
|
return !!o && o !== s;
|
|
2510
2512
|
}
|
|
2511
|
-
return (o, s) => (d(),
|
|
2512
|
-
(d(!0),
|
|
2513
|
+
return (o, s) => (d(), h(Y, null, [
|
|
2514
|
+
(d(!0), h(Y, null, ae(e.options, (r) => (d(), A(it, {
|
|
2513
2515
|
"aria-checked": r.checkbox ? r.checkbox.checked : void 0,
|
|
2514
2516
|
key: r.value,
|
|
2515
2517
|
value: r.value,
|
|
2516
2518
|
variant: n(r)
|
|
2517
2519
|
}, {
|
|
2518
|
-
default:
|
|
2519
|
-
r.checkbox ? (d(),
|
|
2520
|
+
default: L(() => [
|
|
2521
|
+
r.checkbox ? (d(), h("span", {
|
|
2520
2522
|
key: 0,
|
|
2521
2523
|
id: r.checkbox.inputId,
|
|
2522
2524
|
"aria-hidden": "true",
|
|
2523
2525
|
class: "bs-checkbox",
|
|
2524
2526
|
"data-checked": r.checkbox.checked
|
|
2525
2527
|
}, null, 8, Tn)) : C("", !0),
|
|
2526
|
-
r.icon ? (d(),
|
|
2527
|
-
(d(),
|
|
2528
|
+
r.icon ? (d(), h("span", An, [
|
|
2529
|
+
(d(), A(ne(t[r.icon])))
|
|
2528
2530
|
])) : C("", !0),
|
|
2529
|
-
r.profileImg ? (d(),
|
|
2531
|
+
r.profileImg ? (d(), A(Ot, {
|
|
2530
2532
|
key: 2,
|
|
2531
2533
|
src: r.profileImg.src,
|
|
2532
2534
|
size: "xs",
|
|
@@ -2534,17 +2536,17 @@ const sn = {
|
|
|
2534
2536
|
"profile-name": r.profileImg.profileName,
|
|
2535
2537
|
"use-alt-text": u(r.profileImg.profileName, r.label)
|
|
2536
2538
|
}, null, 8, ["src", "initials", "profile-name", "use-alt-text"])) : C("", !0),
|
|
2537
|
-
r.labelHtml ? (d(),
|
|
2539
|
+
r.labelHtml ? (d(), h("span", {
|
|
2538
2540
|
key: 3,
|
|
2539
2541
|
innerHTML: r.labelHtml
|
|
2540
|
-
}, null, 8, On)) : (d(),
|
|
2541
|
-
r.description ? (d(),
|
|
2542
|
+
}, null, 8, On)) : (d(), h("span", Vn, T(r.label), 1)),
|
|
2543
|
+
r.description ? (d(), h("span", Ln, T(r.description), 1)) : C("", !0)
|
|
2542
2544
|
]),
|
|
2543
2545
|
_: 2
|
|
2544
2546
|
}, 1032, ["aria-checked", "value", "variant"]))), 128)),
|
|
2545
|
-
e.showNoOptions && e.options.length === 0 ? (d(),
|
|
2546
|
-
|
|
2547
|
-
s[0] || (s[0] =
|
|
2547
|
+
e.showNoOptions && e.options.length === 0 ? (d(), h("li", En, [
|
|
2548
|
+
O(o.$slots, "no-options", {}, () => [
|
|
2549
|
+
s[0] || (s[0] = U("No options"))
|
|
2548
2550
|
])
|
|
2549
2551
|
])) : C("", !0)
|
|
2550
2552
|
], 64));
|
|
@@ -2594,32 +2596,32 @@ const sn = {
|
|
|
2594
2596
|
},
|
|
2595
2597
|
emits: ["clear", "update:modelValue"],
|
|
2596
2598
|
setup(e, { emit: a }) {
|
|
2597
|
-
const t = e, l = f(() =>
|
|
2598
|
-
return (i, u) => (d(),
|
|
2599
|
+
const t = e, l = f(() => ge.concat(t.passAttrs.split(","))), n = f(() => !t.disabled && !t.hideClear && t.variant !== "filter");
|
|
2600
|
+
return (i, u) => (d(), A(De, F({
|
|
2599
2601
|
class: "bs-input-search",
|
|
2600
2602
|
"data-component": "bs-input-search",
|
|
2601
2603
|
"data-variant": e.variant,
|
|
2602
2604
|
disabled: e.disabled
|
|
2603
|
-
}, c(
|
|
2604
|
-
default:
|
|
2605
|
-
e.hideSearchIcon ? C("", !0) : (d(),
|
|
2606
|
-
|
|
2605
|
+
}, c(X)(i.$attrs, l.value).remaining), {
|
|
2606
|
+
default: L(() => [
|
|
2607
|
+
e.hideSearchIcon ? C("", !0) : (d(), A(c(Kt), { key: 0 })),
|
|
2608
|
+
E(ke, F({
|
|
2607
2609
|
"data-autowidth": "",
|
|
2608
2610
|
disabled: e.disabled,
|
|
2609
2611
|
"input-id": i.$attrs.id || e.inputId,
|
|
2610
2612
|
placeholder: e.placeholder,
|
|
2611
2613
|
value: e.value || e.modelValue
|
|
2612
|
-
}, c(
|
|
2614
|
+
}, c(X)(i.$attrs, l.value).filtered, {
|
|
2613
2615
|
"onUpdate:modelValue": u[0] || (u[0] = (o) => i.$emit("update:modelValue", o))
|
|
2614
2616
|
}), null, 16, ["disabled", "input-id", "placeholder", "value"]),
|
|
2615
|
-
|
|
2617
|
+
pe(B("button", {
|
|
2616
2618
|
title: "Clear",
|
|
2617
2619
|
type: "button",
|
|
2618
2620
|
onClick: u[1] || (u[1] = (o) => i.$emit("clear"))
|
|
2619
2621
|
}, [
|
|
2620
|
-
|
|
2622
|
+
E(c(Ie), { size: "sm" })
|
|
2621
2623
|
], 512), [
|
|
2622
|
-
[
|
|
2624
|
+
[me, n.value]
|
|
2623
2625
|
])
|
|
2624
2626
|
]),
|
|
2625
2627
|
_: 1
|
|
@@ -2741,71 +2743,71 @@ const sn = {
|
|
|
2741
2743
|
setup(e, { emit: a }) {
|
|
2742
2744
|
const t = e, l = a;
|
|
2743
2745
|
let n = null;
|
|
2744
|
-
const [i, u] =
|
|
2746
|
+
const [i, u] = J(2), o = $(!1), s = $(""), r = $([...t.options]), m = f(() => t.selectedOptions.length), g = f(() => Je(async () => await (t.multiselect ? Promise.resolve().then(() => Rn) : Promise.resolve().then(() => Nn)))), v = f(() => t.optionsId || u.value), b = f(() => t.toggleId || i.value), y = f(() => t.filter ? r.value : t.options), S = () => n || (n = document.getElementById(b.value));
|
|
2745
2747
|
function p() {
|
|
2746
|
-
const
|
|
2747
|
-
return !
|
|
2748
|
+
const P = document.activeElement;
|
|
2749
|
+
return !P || P.tagName === "BODY" || P.id === v.value;
|
|
2748
2750
|
}
|
|
2749
|
-
function
|
|
2750
|
-
var
|
|
2751
|
-
o.value = !1, l("close"), p() && ((H = (
|
|
2751
|
+
function w() {
|
|
2752
|
+
var P, H;
|
|
2753
|
+
o.value = !1, l("close"), p() && ((H = (P = S()) == null ? void 0 : P.focus) == null || H.call(P));
|
|
2752
2754
|
}
|
|
2753
2755
|
function k() {
|
|
2754
|
-
o.value &&
|
|
2756
|
+
o.value && w();
|
|
2755
2757
|
}
|
|
2756
2758
|
function I() {
|
|
2757
2759
|
o.value = !0;
|
|
2758
2760
|
}
|
|
2759
|
-
function q(
|
|
2760
|
-
const H = t.selectedOptions.filter((te) => te !==
|
|
2761
|
-
l("update:selectedOptions", H), l("uncheck-option",
|
|
2761
|
+
function q(P) {
|
|
2762
|
+
const H = t.selectedOptions.filter((te) => te !== P);
|
|
2763
|
+
l("update:selectedOptions", H), l("uncheck-option", P);
|
|
2762
2764
|
}
|
|
2763
|
-
function
|
|
2764
|
-
const H = [...t.selectedOptions,
|
|
2765
|
-
l("update:selectedOptions", H), l("check-option",
|
|
2765
|
+
function z(P) {
|
|
2766
|
+
const H = [...t.selectedOptions, P];
|
|
2767
|
+
l("update:selectedOptions", H), l("check-option", P);
|
|
2766
2768
|
}
|
|
2767
|
-
function
|
|
2768
|
-
t.multiselect || (l("update:selectedOption",
|
|
2769
|
+
function R(P) {
|
|
2770
|
+
t.multiselect || (l("update:selectedOption", P), w());
|
|
2769
2771
|
}
|
|
2770
|
-
function
|
|
2772
|
+
function D() {
|
|
2771
2773
|
s.value = "", r.value = t.options;
|
|
2772
2774
|
}
|
|
2773
|
-
function
|
|
2774
|
-
s.value =
|
|
2775
|
+
function W(P) {
|
|
2776
|
+
s.value = P, r.value = t.options.filter((H) => {
|
|
2775
2777
|
var te;
|
|
2776
2778
|
return H.label.toLowerCase().startsWith((te = s.value) == null ? void 0 : te.toLowerCase());
|
|
2777
2779
|
});
|
|
2778
2780
|
}
|
|
2779
|
-
return (
|
|
2781
|
+
return (P, H) => (d(), h("div", {
|
|
2780
2782
|
class: "bs-dropdown-with-toggle",
|
|
2781
|
-
id:
|
|
2783
|
+
id: P.$attrs.id
|
|
2782
2784
|
}, [
|
|
2783
|
-
|
|
2785
|
+
O(P.$slots, "toggle", {
|
|
2784
2786
|
anchorId: e.anchorId,
|
|
2785
2787
|
optionsId: v.value,
|
|
2786
|
-
toggleId:
|
|
2788
|
+
toggleId: b.value
|
|
2787
2789
|
}, () => [
|
|
2788
|
-
|
|
2790
|
+
E(In, {
|
|
2789
2791
|
"aria-controls": v.value,
|
|
2790
2792
|
"aria-expanded": e.open,
|
|
2791
2793
|
disabled: e.disabled,
|
|
2792
|
-
id:
|
|
2794
|
+
id: b.value,
|
|
2793
2795
|
open: e.open,
|
|
2794
2796
|
"options-id": v.value,
|
|
2795
2797
|
size: e.toggleSize,
|
|
2796
2798
|
"badge-count": e.showBadgeCount && e.multiselect ? m.value : void 0,
|
|
2797
|
-
onClick: H[0] || (H[0] = (te) =>
|
|
2799
|
+
onClick: H[0] || (H[0] = (te) => P.$emit("toggled"))
|
|
2798
2800
|
}, {
|
|
2799
|
-
label:
|
|
2800
|
-
|
|
2801
|
-
|
|
2801
|
+
label: L(() => [
|
|
2802
|
+
O(P.$slots, "toggle-label", {}, () => [
|
|
2803
|
+
U(T(e.toggleLabel), 1)
|
|
2802
2804
|
])
|
|
2803
2805
|
]),
|
|
2804
2806
|
_: 3
|
|
2805
2807
|
}, 8, ["aria-controls", "aria-expanded", "disabled", "id", "open", "options-id", "size", "badge-count"])
|
|
2806
2808
|
]),
|
|
2807
|
-
|
|
2808
|
-
"anchor-id": e.anchorId ||
|
|
2809
|
+
E(ot, {
|
|
2810
|
+
"anchor-id": e.anchorId || b.value,
|
|
2809
2811
|
breakout: e.breakout,
|
|
2810
2812
|
"helper-text": e.helperText,
|
|
2811
2813
|
"helper-description": e.helperDescription,
|
|
@@ -2816,19 +2818,19 @@ const sn = {
|
|
|
2816
2818
|
width: e.dropdownWidth,
|
|
2817
2819
|
onClose: k,
|
|
2818
2820
|
onEnter: I,
|
|
2819
|
-
onAfterLeave:
|
|
2821
|
+
onAfterLeave: D
|
|
2820
2822
|
}, {
|
|
2821
|
-
default:
|
|
2822
|
-
e.filter ? (d(),
|
|
2823
|
-
|
|
2823
|
+
default: L(() => [
|
|
2824
|
+
e.filter ? (d(), h("div", Pn, [
|
|
2825
|
+
E(Vt, {
|
|
2824
2826
|
"aria-label": e.filterLabel,
|
|
2825
2827
|
"model-value": s.value,
|
|
2826
2828
|
placeholder: e.filterPlaceholder,
|
|
2827
|
-
"onUpdate:modelValue":
|
|
2828
|
-
onClear:
|
|
2829
|
+
"onUpdate:modelValue": W,
|
|
2830
|
+
onClear: D
|
|
2829
2831
|
}, null, 8, ["aria-label", "model-value", "placeholder"])
|
|
2830
2832
|
])) : C("", !0),
|
|
2831
|
-
|
|
2833
|
+
E(c(g), {
|
|
2832
2834
|
class: oe({ "filterable-options": e.filter }),
|
|
2833
2835
|
label: e.dropdownLabel,
|
|
2834
2836
|
"model-value": e.selectedOption,
|
|
@@ -2836,27 +2838,27 @@ const sn = {
|
|
|
2836
2838
|
"options-id": v.value,
|
|
2837
2839
|
"selected-options": e.selectedOptions,
|
|
2838
2840
|
shown: e.open,
|
|
2839
|
-
"onUpdate:modelValue":
|
|
2840
|
-
onCheckOption:
|
|
2841
|
+
"onUpdate:modelValue": R,
|
|
2842
|
+
onCheckOption: z,
|
|
2841
2843
|
onUncheckOption: q,
|
|
2842
2844
|
onClose: H[1] || (H[1] = (te) => e.multiselect ? void 0 : k())
|
|
2843
2845
|
}, {
|
|
2844
|
-
default:
|
|
2845
|
-
e.multiselect ? C("", !0) : (d(),
|
|
2846
|
+
default: L(() => [
|
|
2847
|
+
e.multiselect ? C("", !0) : (d(), A(qe, {
|
|
2846
2848
|
key: 0,
|
|
2847
2849
|
options: y.value
|
|
2848
2850
|
}, null, 8, ["options"]))
|
|
2849
2851
|
]),
|
|
2850
2852
|
_: 1
|
|
2851
2853
|
}, 8, ["class", "label", "model-value", "options", "options-id", "selected-options", "shown"]),
|
|
2852
|
-
e.multiselect ? (d(),
|
|
2853
|
-
|
|
2854
|
+
e.multiselect ? (d(), h("div", qn, [
|
|
2855
|
+
E(xt, {
|
|
2854
2856
|
title: e.filterButtonText,
|
|
2855
2857
|
class: "mobile-select-button",
|
|
2856
2858
|
onClick: H[2] || (H[2] = () => l("close"))
|
|
2857
2859
|
}, {
|
|
2858
|
-
default:
|
|
2859
|
-
|
|
2860
|
+
default: L(() => [
|
|
2861
|
+
U(T(e.filterButtonText), 1)
|
|
2860
2862
|
]),
|
|
2861
2863
|
_: 1
|
|
2862
2864
|
}, 8, ["title"])
|
|
@@ -2925,7 +2927,7 @@ const sn = {
|
|
|
2925
2927
|
},
|
|
2926
2928
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
2927
2929
|
setup(e, { emit: a }) {
|
|
2928
|
-
const t = e, l = a, [n, i, u] =
|
|
2930
|
+
const t = e, l = a, [n, i, u] = J(3), o = $(!1), s = f(() => t.inputId || n.value);
|
|
2929
2931
|
function r(y) {
|
|
2930
2932
|
l("combobox:change", y.target.value), l("update:modelValue", y.target.value);
|
|
2931
2933
|
}
|
|
@@ -2933,16 +2935,16 @@ const sn = {
|
|
|
2933
2935
|
l("combobox:change", ""), l("update:modelValue", "");
|
|
2934
2936
|
}
|
|
2935
2937
|
function g(y) {
|
|
2936
|
-
var
|
|
2937
|
-
(
|
|
2938
|
+
var S, p;
|
|
2939
|
+
(S = y.relatedTarget) != null && S.closest(`#${u.value}`) || (p = y.relatedTarget) != null && p.closest(`#${i.value}`) || (o.value = !1);
|
|
2938
2940
|
}
|
|
2939
2941
|
function v(y) {
|
|
2940
2942
|
l("combobox:input", y.target.value), t.updateOnInput && l("update:modelValue", y.target.value);
|
|
2941
2943
|
}
|
|
2942
|
-
function
|
|
2944
|
+
function b(y) {
|
|
2943
2945
|
y === !0 || y === !1 ? o.value = y : o.value = !o.value;
|
|
2944
2946
|
}
|
|
2945
|
-
return (y,
|
|
2947
|
+
return (y, S) => (d(), A(Lt, {
|
|
2946
2948
|
"anchor-id": c(i),
|
|
2947
2949
|
disabled: e.disabled,
|
|
2948
2950
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -2955,12 +2957,12 @@ const sn = {
|
|
|
2955
2957
|
"options-id": c(u),
|
|
2956
2958
|
"selected-option": e.modelValue,
|
|
2957
2959
|
"toggle-id": y.$attrs.id || s.value,
|
|
2958
|
-
onClose:
|
|
2960
|
+
onClose: S[0] || (S[0] = (p) => o.value = !1),
|
|
2959
2961
|
onFocusout: g,
|
|
2960
|
-
"onUpdate:selectedOption":
|
|
2962
|
+
"onUpdate:selectedOption": S[1] || (S[1] = (p) => y.$emit("update:modelValue", p))
|
|
2961
2963
|
}, {
|
|
2962
|
-
toggle:
|
|
2963
|
-
|
|
2964
|
+
toggle: L(() => [
|
|
2965
|
+
E(Bn, F({
|
|
2964
2966
|
id: y.$attrs.id || s.value,
|
|
2965
2967
|
"container-id": c(i),
|
|
2966
2968
|
disabled: e.disabled,
|
|
@@ -2974,13 +2976,13 @@ const sn = {
|
|
|
2974
2976
|
onChange: r,
|
|
2975
2977
|
onClear: m,
|
|
2976
2978
|
onInput: v,
|
|
2977
|
-
onToggled:
|
|
2979
|
+
onToggled: b
|
|
2978
2980
|
}, y.$attrs), null, 16, ["id", "container-id", "disabled", "error", "hint-id", "model-value", "open", "options-id", "placeholder", "required"])
|
|
2979
2981
|
]),
|
|
2980
2982
|
_: 1
|
|
2981
2983
|
}, 8, ["anchor-id", "disabled", "dropdown-position", "dropdown-width", "helper-description", "helper-text", "open", "options", "options-id", "selected-option", "toggle-id"]));
|
|
2982
2984
|
}
|
|
2983
|
-
}),
|
|
2985
|
+
}), Ro = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2984
2986
|
__name: "BsDropdownComboboxField",
|
|
2985
2987
|
props: {
|
|
2986
2988
|
disabled: {
|
|
@@ -3048,22 +3050,22 @@ const sn = {
|
|
|
3048
3050
|
},
|
|
3049
3051
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
3050
3052
|
setup(e, { emit: a }) {
|
|
3051
|
-
const t = e, [l, n] =
|
|
3052
|
-
return (o, s) => (d(),
|
|
3053
|
-
e.label || o.$slots.label ? (d(),
|
|
3053
|
+
const t = e, [l, n] = J(2), i = f(() => t.error && t.errorMsg || t.hint || void 0), u = f(() => t.inputId || l.value);
|
|
3054
|
+
return (o, s) => (d(), h("div", F({ "data-component": "bs-dropdown-combobox-field" }, c(X)(o.$attrs, c(ge)).remaining), [
|
|
3055
|
+
e.label || o.$slots.label ? (d(), A(le, {
|
|
3054
3056
|
key: 0,
|
|
3055
3057
|
for: o.$attrs.id || u.value,
|
|
3056
3058
|
disabled: e.disabled,
|
|
3057
3059
|
required: e.required
|
|
3058
3060
|
}, {
|
|
3059
|
-
default:
|
|
3060
|
-
|
|
3061
|
-
|
|
3061
|
+
default: L(() => [
|
|
3062
|
+
O(o.$slots, "label", {}, () => [
|
|
3063
|
+
U(T(e.label), 1)
|
|
3062
3064
|
])
|
|
3063
3065
|
]),
|
|
3064
3066
|
_: 3
|
|
3065
3067
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
3066
|
-
|
|
3068
|
+
E(Et, F({
|
|
3067
3069
|
disabled: e.disabled,
|
|
3068
3070
|
"display-value": e.displayValue,
|
|
3069
3071
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -3081,8 +3083,8 @@ const sn = {
|
|
|
3081
3083
|
"onCombobox:change": s[0] || (s[0] = (r) => o.$emit("combobox:change", r)),
|
|
3082
3084
|
"onCombobox:input": s[1] || (s[1] = (r) => o.$emit("combobox:input", r)),
|
|
3083
3085
|
"onUpdate:modelValue": s[2] || (s[2] = (r) => o.$emit("update:modelValue", r))
|
|
3084
|
-
}, c(
|
|
3085
|
-
i.value ? (d(),
|
|
3086
|
+
}, c(X)(o.$attrs, c(ge)).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"]),
|
|
3087
|
+
i.value ? (d(), A(ye, {
|
|
3086
3088
|
key: 1,
|
|
3087
3089
|
error: e.error,
|
|
3088
3090
|
"error-msg": e.errorMsg,
|
|
@@ -3127,25 +3129,25 @@ const sn = {
|
|
|
3127
3129
|
"update:modelValue"
|
|
3128
3130
|
],
|
|
3129
3131
|
setup(e, { expose: a, emit: t }) {
|
|
3130
|
-
const l = e, n = t, i = $(null), u = $(null), o = $(-1), s = $(-1), r = $(null), m = $(!1), g =
|
|
3131
|
-
|
|
3132
|
-
const p = [/^[a-zA-Z0-9]{1}$/],
|
|
3132
|
+
const l = e, n = t, i = $(null), u = $(null), o = $(-1), s = $(-1), r = $(null), m = $(!1), g = be("dropdownEnter", $(!1)), v = be("dropdownAfterEnter", $(!1)), b = be("dropdownShown", $(!1));
|
|
3133
|
+
he("optionsId", f(() => l.optionsId)), he("handleOptionSelect", ue), ga(i, I, { childList: !0 }), ve([" ", "Enter", "NumpadEnter"], ie, i), ve(["ArrowDown", "ArrowUp", "Home", "End"], Ce);
|
|
3134
|
+
const p = [/^[a-zA-Z0-9]{1}$/], w = {
|
|
3133
3135
|
keys: "",
|
|
3134
3136
|
lastTyped: 0
|
|
3135
3137
|
};
|
|
3136
|
-
|
|
3137
|
-
I(),
|
|
3138
|
-
}),
|
|
3138
|
+
ve(p, (V) => xe(V, w)), Q(() => {
|
|
3139
|
+
I(), P(b.value);
|
|
3140
|
+
}), G(
|
|
3139
3141
|
[g, () => {
|
|
3140
|
-
var
|
|
3141
|
-
return (
|
|
3142
|
+
var V;
|
|
3143
|
+
return (V = r.value) == null ? void 0 : V.length;
|
|
3142
3144
|
}],
|
|
3143
|
-
([
|
|
3144
|
-
(
|
|
3145
|
+
([V, j]) => {
|
|
3146
|
+
(V || j > 0) && (m.value = i.value.scrollHeight > i.value.clientHeight);
|
|
3145
3147
|
}
|
|
3146
|
-
),
|
|
3147
|
-
|
|
3148
|
-
}),
|
|
3148
|
+
), G(v, (V) => {
|
|
3149
|
+
V && (q(), z());
|
|
3150
|
+
}), G(b, (V) => P(V));
|
|
3149
3151
|
const k = f(() => l.modelValue || l.selectedValue);
|
|
3150
3152
|
function I() {
|
|
3151
3153
|
r.value = Array.from(
|
|
@@ -3155,96 +3157,96 @@ const sn = {
|
|
|
3155
3157
|
function q() {
|
|
3156
3158
|
i.value.getBoundingClientRect().bottom > window.innerHeight && i.value.scrollIntoView({ block: "nearest" });
|
|
3157
3159
|
}
|
|
3158
|
-
function
|
|
3159
|
-
var
|
|
3160
|
-
o.value > -1 && (q(), (
|
|
3160
|
+
function z() {
|
|
3161
|
+
var V;
|
|
3162
|
+
o.value > -1 && (q(), (V = r.value[o.value]) == null || V.scrollIntoView({ block: "nearest" }));
|
|
3161
3163
|
}
|
|
3162
|
-
function
|
|
3163
|
-
var
|
|
3164
|
-
o.value > -1 && ((
|
|
3164
|
+
function R() {
|
|
3165
|
+
var V, j;
|
|
3166
|
+
o.value > -1 && ((V = r.value[o.value]) == null || V.setAttribute("data-active", ""), u.value = (j = r.value[o.value]) == null ? void 0 : j.id, z());
|
|
3165
3167
|
}
|
|
3166
|
-
function
|
|
3167
|
-
var
|
|
3168
|
-
o.value > -1 && ((
|
|
3168
|
+
function D() {
|
|
3169
|
+
var V;
|
|
3170
|
+
o.value > -1 && ((V = r.value[o.value]) == null || V.removeAttribute("data-active"));
|
|
3169
3171
|
}
|
|
3170
|
-
function
|
|
3171
|
-
var
|
|
3172
|
-
o.value < 0 && (o.value = 0, u.value = (
|
|
3172
|
+
function W() {
|
|
3173
|
+
var V;
|
|
3174
|
+
o.value < 0 && (o.value = 0, u.value = (V = r.value[0]) == null ? void 0 : V.id), R();
|
|
3173
3175
|
}
|
|
3174
|
-
function
|
|
3175
|
-
|
|
3176
|
+
function P(V) {
|
|
3177
|
+
V ? H() : te();
|
|
3176
3178
|
}
|
|
3177
3179
|
function H() {
|
|
3178
|
-
var
|
|
3180
|
+
var V, j;
|
|
3179
3181
|
l.multiselect || (s.value = r.value.findIndex(
|
|
3180
3182
|
(M) => M.getAttribute("data-value") === String(k.value)
|
|
3181
|
-
), !l.multiselect && s.value > -1 && ((
|
|
3183
|
+
), !l.multiselect && s.value > -1 && ((V = r.value[s.value]) == null || V.setAttribute("data-selected", ""), (j = r.value[s.value]) == null || j.setAttribute("aria-selected", "true")), o.value = s.value);
|
|
3182
3184
|
}
|
|
3183
3185
|
function te() {
|
|
3184
|
-
r.value.forEach((
|
|
3185
|
-
|
|
3186
|
-
}),
|
|
3186
|
+
r.value.forEach((V) => {
|
|
3187
|
+
V.removeAttribute("data-selected"), V.setAttribute("aria-selected", "false");
|
|
3188
|
+
}), D(), s.value = -1, o.value = -1, u.value = null;
|
|
3187
3189
|
}
|
|
3188
|
-
function
|
|
3190
|
+
function ue(V) {
|
|
3189
3191
|
var M;
|
|
3190
|
-
(M =
|
|
3191
|
-
let
|
|
3192
|
-
|
|
3192
|
+
(M = V.querySelector("a")) == null || M.click();
|
|
3193
|
+
let j = V.getAttribute("data-value");
|
|
3194
|
+
V.getAttribute("data-value-type") === "number" && (j = Number(j)), u.value = V.id, D(), n("optselected", j), n("update:modelValue", j), n("close");
|
|
3193
3195
|
}
|
|
3194
|
-
function
|
|
3195
|
-
|
|
3196
|
+
function ie(V) {
|
|
3197
|
+
ue(r.value[o.value]), V.preventDefault();
|
|
3196
3198
|
}
|
|
3197
|
-
function Ce(
|
|
3198
|
-
if (
|
|
3199
|
-
switch (
|
|
3199
|
+
function Ce(V) {
|
|
3200
|
+
if (b.value)
|
|
3201
|
+
switch (V.key) {
|
|
3200
3202
|
case "ArrowDown":
|
|
3201
|
-
|
|
3203
|
+
ce("down"), V.preventDefault();
|
|
3202
3204
|
break;
|
|
3203
3205
|
case "ArrowUp":
|
|
3204
|
-
|
|
3206
|
+
ce("up"), V.preventDefault();
|
|
3205
3207
|
break;
|
|
3206
3208
|
case "Home":
|
|
3207
|
-
|
|
3209
|
+
ce("home"), V.preventDefault();
|
|
3208
3210
|
break;
|
|
3209
3211
|
case "End":
|
|
3210
|
-
|
|
3212
|
+
ce("end"), V.preventDefault();
|
|
3211
3213
|
break;
|
|
3212
3214
|
}
|
|
3213
3215
|
}
|
|
3214
|
-
function
|
|
3215
|
-
let
|
|
3216
|
-
switch (
|
|
3216
|
+
function ce(V) {
|
|
3217
|
+
let j;
|
|
3218
|
+
switch (V) {
|
|
3217
3219
|
case "up":
|
|
3218
|
-
|
|
3220
|
+
j = o.value - 1 < 0 ? r.value.length - 1 : o.value - 1;
|
|
3219
3221
|
break;
|
|
3220
3222
|
case "down":
|
|
3221
|
-
|
|
3223
|
+
j = (o.value + 1) % r.value.length;
|
|
3222
3224
|
break;
|
|
3223
3225
|
case "home":
|
|
3224
|
-
|
|
3226
|
+
j = 0;
|
|
3225
3227
|
break;
|
|
3226
3228
|
case "end":
|
|
3227
|
-
|
|
3229
|
+
j = r.value.length - 1;
|
|
3228
3230
|
break;
|
|
3229
3231
|
}
|
|
3230
|
-
we(
|
|
3232
|
+
we(j);
|
|
3231
3233
|
}
|
|
3232
|
-
function xe(
|
|
3233
|
-
if (!
|
|
3234
|
-
|
|
3235
|
-
const M = r.value.findIndex((
|
|
3234
|
+
function xe(V, j) {
|
|
3235
|
+
if (!b.value) return;
|
|
3236
|
+
j.keys = V.timeStamp - j.lastTyped > 500 ? V.key : j.keys + V.key, j.lastTyped = V.timeStamp;
|
|
3237
|
+
const M = r.value.findIndex((Z) => Z.textContent.replaceAll(/[^a-zA-Z0-9]/g, "").toLowerCase().startsWith(j.keys));
|
|
3236
3238
|
M > -1 && we(M, !1);
|
|
3237
3239
|
}
|
|
3238
|
-
function we(
|
|
3239
|
-
|
|
3240
|
+
function we(V, j = !0) {
|
|
3241
|
+
D(), o.value = V, document.activeElement !== i.value && j ? i.value.focus() : R();
|
|
3240
3242
|
}
|
|
3241
3243
|
return a({
|
|
3242
3244
|
activeIndex: o,
|
|
3243
3245
|
optionEls: r,
|
|
3244
3246
|
optionsRef: i,
|
|
3245
3247
|
refreshOptions: I,
|
|
3246
|
-
setCurrentActive:
|
|
3247
|
-
}), (
|
|
3248
|
+
setCurrentActive: R
|
|
3249
|
+
}), (V, j) => (d(), h("ul", {
|
|
3248
3250
|
ref_key: "optionsRef",
|
|
3249
3251
|
ref: i,
|
|
3250
3252
|
"aria-activedescendant": u.value || void 0,
|
|
@@ -3255,13 +3257,13 @@ const sn = {
|
|
|
3255
3257
|
"data-overflow": m.value,
|
|
3256
3258
|
id: e.optionsId,
|
|
3257
3259
|
role: "listbox",
|
|
3258
|
-
tabindex: c(
|
|
3259
|
-
onBlur:
|
|
3260
|
-
onFocus:
|
|
3261
|
-
onMousedown:
|
|
3260
|
+
tabindex: c(b) ? 0 : void 0,
|
|
3261
|
+
onBlur: D,
|
|
3262
|
+
onFocus: W,
|
|
3263
|
+
onMousedown: j[0] || (j[0] = wt(() => {
|
|
3262
3264
|
}, ["prevent"]))
|
|
3263
3265
|
}, [
|
|
3264
|
-
V
|
|
3266
|
+
O(V.$slots, "default")
|
|
3265
3267
|
], 40, Mn));
|
|
3266
3268
|
}
|
|
3267
3269
|
}, Nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -3306,21 +3308,21 @@ const sn = {
|
|
|
3306
3308
|
],
|
|
3307
3309
|
setup(e, { emit: a }) {
|
|
3308
3310
|
const t = e, l = a, n = $(null), i = $([]), u = $([]), o = f(() => {
|
|
3309
|
-
var
|
|
3310
|
-
return ((
|
|
3311
|
+
var S, p;
|
|
3312
|
+
return ((S = i.value) == null ? void 0 : S.length) && ((p = u.value) == null ? void 0 : p.length);
|
|
3311
3313
|
}), s = f(() => {
|
|
3312
|
-
var
|
|
3313
|
-
return ((
|
|
3314
|
+
var S, p;
|
|
3315
|
+
return ((S = i.value) == null ? void 0 : S.length) || ((p = u.value) == null ? void 0 : p.length);
|
|
3314
3316
|
});
|
|
3315
3317
|
let r = !1;
|
|
3316
|
-
|
|
3318
|
+
G(() => t.options, () => {
|
|
3317
3319
|
v(t.selectedOptions);
|
|
3318
|
-
}),
|
|
3320
|
+
}), G(
|
|
3319
3321
|
() => t.selectedOptions,
|
|
3320
3322
|
v,
|
|
3321
3323
|
{ immediate: !0 }
|
|
3322
|
-
),
|
|
3323
|
-
|
|
3324
|
+
), G(() => t.shown, (S) => {
|
|
3325
|
+
S && t.focusOnOpen && Ae(m);
|
|
3324
3326
|
});
|
|
3325
3327
|
function m() {
|
|
3326
3328
|
n.value && (n.value.refreshOptions(), n.value.optionsRef.focus());
|
|
@@ -3328,28 +3330,28 @@ const sn = {
|
|
|
3328
3330
|
function g() {
|
|
3329
3331
|
n.value && (n.value.refreshOptions(), n.value.setCurrentActive());
|
|
3330
3332
|
}
|
|
3331
|
-
function v(
|
|
3332
|
-
const p = new Set(
|
|
3333
|
+
function v(S = []) {
|
|
3334
|
+
const p = new Set(S), w = [], k = [];
|
|
3333
3335
|
t.options.forEach((I) => {
|
|
3334
|
-
const q = { ...I },
|
|
3335
|
-
p.has(I.value) ? (q.checkbox = { inputId:
|
|
3336
|
-
}), i.value =
|
|
3336
|
+
const q = { ...I }, z = `${t.optionsId}-${I.value}-cb`;
|
|
3337
|
+
p.has(I.value) ? (q.checkbox = { inputId: z, checked: !0 }, w.push(q)) : (q.checkbox = { inputId: z, checked: !1 }, k.push(q));
|
|
3338
|
+
}), i.value = w, Ae(() => {
|
|
3337
3339
|
u.value = k, Ae(() => {
|
|
3338
3340
|
r && g(), r = !1;
|
|
3339
3341
|
});
|
|
3340
3342
|
});
|
|
3341
3343
|
}
|
|
3342
|
-
function
|
|
3343
|
-
const p = new Set(
|
|
3344
|
+
function b(S = []) {
|
|
3345
|
+
const p = new Set(S), w = [];
|
|
3344
3346
|
return t.options.forEach((k) => {
|
|
3345
|
-
p.has(k.value) &&
|
|
3346
|
-
}),
|
|
3347
|
+
p.has(k.value) && w.push(k.value);
|
|
3348
|
+
}), w;
|
|
3347
3349
|
}
|
|
3348
|
-
function y(
|
|
3350
|
+
function y(S) {
|
|
3349
3351
|
let p = [];
|
|
3350
|
-
t.selectedOptions.includes(
|
|
3352
|
+
t.selectedOptions.includes(S) ? (p = t.selectedOptions.filter((w) => w !== S), l("uncheck-option", S)) : (p = b([...t.selectedOptions, S]), l("check-option", S)), r = !0, l("update:selectedOptions", p);
|
|
3351
3353
|
}
|
|
3352
|
-
return (
|
|
3354
|
+
return (S, p) => (d(), A(Re, {
|
|
3353
3355
|
ref_key: "optlist",
|
|
3354
3356
|
ref: n,
|
|
3355
3357
|
"aria-multiselectable": "true",
|
|
@@ -3360,24 +3362,24 @@ const sn = {
|
|
|
3360
3362
|
shown: e.shown,
|
|
3361
3363
|
"onUpdate:modelValue": y
|
|
3362
3364
|
}, {
|
|
3363
|
-
default:
|
|
3364
|
-
s.value ? (d(),
|
|
3365
|
-
|
|
3365
|
+
default: L(() => [
|
|
3366
|
+
s.value ? (d(), h(Y, { key: 0 }, [
|
|
3367
|
+
E(qe, {
|
|
3366
3368
|
options: i.value,
|
|
3367
3369
|
"show-no-options": !1
|
|
3368
3370
|
}, null, 8, ["options"]),
|
|
3369
|
-
|
|
3371
|
+
pe(B("li", zn, p[0] || (p[0] = [
|
|
3370
3372
|
B("hr", null, null, -1)
|
|
3371
3373
|
]), 512), [
|
|
3372
|
-
[
|
|
3374
|
+
[me, o.value]
|
|
3373
3375
|
]),
|
|
3374
|
-
|
|
3376
|
+
E(qe, {
|
|
3375
3377
|
options: u.value,
|
|
3376
3378
|
"show-no-options": !1
|
|
3377
3379
|
}, null, 8, ["options"])
|
|
3378
|
-
], 64)) : (d(),
|
|
3379
|
-
|
|
3380
|
-
p[1] || (p[1] =
|
|
3380
|
+
], 64)) : (d(), h("li", Fn, [
|
|
3381
|
+
O(S.$slots, "no-options", {}, () => [
|
|
3382
|
+
p[1] || (p[1] = U("No options"))
|
|
3381
3383
|
])
|
|
3382
3384
|
]))
|
|
3383
3385
|
]),
|
|
@@ -3472,7 +3474,7 @@ const sn = {
|
|
|
3472
3474
|
function u() {
|
|
3473
3475
|
l.value && (l.value = !1, t("close"));
|
|
3474
3476
|
}
|
|
3475
|
-
return (o, s) => (d(),
|
|
3477
|
+
return (o, s) => (d(), A(c(ot), {
|
|
3476
3478
|
"anchor-id": e.anchorId,
|
|
3477
3479
|
breakout: e.breakout,
|
|
3478
3480
|
"container-id": e.containerId,
|
|
@@ -3488,8 +3490,8 @@ const sn = {
|
|
|
3488
3490
|
onEnter: n,
|
|
3489
3491
|
onAfterLeave: s[1] || (s[1] = (r) => t("after-leave"))
|
|
3490
3492
|
}, {
|
|
3491
|
-
default:
|
|
3492
|
-
|
|
3493
|
+
default: L(() => [
|
|
3494
|
+
E(c(Re), {
|
|
3493
3495
|
label: e.label,
|
|
3494
3496
|
"model-value": e.modelValue,
|
|
3495
3497
|
"options-id": e.optionsId,
|
|
@@ -3498,8 +3500,8 @@ const sn = {
|
|
|
3498
3500
|
"onUpdate:modelValue": i,
|
|
3499
3501
|
onClose: u
|
|
3500
3502
|
}, {
|
|
3501
|
-
default:
|
|
3502
|
-
|
|
3503
|
+
default: L(() => [
|
|
3504
|
+
O(o.$slots, "default")
|
|
3503
3505
|
]),
|
|
3504
3506
|
_: 3
|
|
3505
3507
|
}, 8, ["label", "model-value", "options-id", "prevent-tab", "type-to-focus"])
|
|
@@ -3625,7 +3627,7 @@ const sn = {
|
|
|
3625
3627
|
function r(m) {
|
|
3626
3628
|
l("optselected", m), l("update:modelValue", m);
|
|
3627
3629
|
}
|
|
3628
|
-
return (m, g) => (d(),
|
|
3630
|
+
return (m, g) => (d(), A(Wn, {
|
|
3629
3631
|
"anchor-id": o.value,
|
|
3630
3632
|
breakout: e.breakout,
|
|
3631
3633
|
"container-id": e.containerId,
|
|
@@ -3645,16 +3647,16 @@ const sn = {
|
|
|
3645
3647
|
onAfterLeave: g[2] || (g[2] = (v) => l("after-leave")),
|
|
3646
3648
|
"onUpdate:modelValue": r
|
|
3647
3649
|
}, {
|
|
3648
|
-
default:
|
|
3649
|
-
|
|
3650
|
+
default: L(() => [
|
|
3651
|
+
O(m.$slots, "default")
|
|
3650
3652
|
]),
|
|
3651
3653
|
_: 3
|
|
3652
3654
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "label", "model-value", "options-id", "position", "preloaded", "prevent-tab", "shown", "use-mobile-style", "width"]));
|
|
3653
3655
|
}
|
|
3654
|
-
}, jn = ["data-size"], Un = { class: "bs-empty-state-icon" },
|
|
3656
|
+
}, jn = ["data-size"], Un = { class: "bs-empty-state-icon" }, Hn = { class: "bs-empty-state-title" }, Gn = {
|
|
3655
3657
|
key: 0,
|
|
3656
3658
|
class: "bs-empty-state-description"
|
|
3657
|
-
},
|
|
3659
|
+
}, Wo = {
|
|
3658
3660
|
__name: "BsEmptyState",
|
|
3659
3661
|
props: {
|
|
3660
3662
|
description: {
|
|
@@ -3677,28 +3679,28 @@ const sn = {
|
|
|
3677
3679
|
},
|
|
3678
3680
|
setup(e) {
|
|
3679
3681
|
const a = e, { icon: t } = Oe(a, "iconName");
|
|
3680
|
-
return (l, n) => (d(),
|
|
3682
|
+
return (l, n) => (d(), h("div", {
|
|
3681
3683
|
class: "bs-empty-state",
|
|
3682
3684
|
"data-component": "bs-empty-state",
|
|
3683
3685
|
"data-size": e.size
|
|
3684
3686
|
}, [
|
|
3685
3687
|
B("div", Un, [
|
|
3686
|
-
|
|
3687
|
-
(d(),
|
|
3688
|
+
O(l.$slots, "icon", {}, () => [
|
|
3689
|
+
(d(), A(ne(c(t)), { size: "auto" }))
|
|
3688
3690
|
])
|
|
3689
3691
|
]),
|
|
3690
3692
|
B("div", null, [
|
|
3691
|
-
B("p",
|
|
3692
|
-
e.size !== "xs" ? (d(),
|
|
3693
|
-
|
|
3694
|
-
|
|
3693
|
+
B("p", Hn, T(e.title), 1),
|
|
3694
|
+
e.size !== "xs" ? (d(), h("p", Gn, [
|
|
3695
|
+
O(l.$slots, "description", {}, () => [
|
|
3696
|
+
U(T(e.description), 1)
|
|
3695
3697
|
])
|
|
3696
3698
|
])) : C("", !0),
|
|
3697
|
-
|
|
3699
|
+
O(l.$slots, "call-to-action")
|
|
3698
3700
|
])
|
|
3699
3701
|
], 8, jn));
|
|
3700
3702
|
}
|
|
3701
|
-
}, Kn = ["data-absolute", "data-position", "data-shown", "data-size"], Yn = { class: "bs-flyout-close-container" },
|
|
3703
|
+
}, Kn = ["data-absolute", "data-position", "data-shown", "data-size"], Yn = { class: "bs-flyout-close-container" }, jo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3702
3704
|
__name: "BsFlyout",
|
|
3703
3705
|
props: {
|
|
3704
3706
|
absolute: {
|
|
@@ -3735,17 +3737,17 @@ const sn = {
|
|
|
3735
3737
|
emits: ["close"],
|
|
3736
3738
|
setup(e, { emit: a }) {
|
|
3737
3739
|
const t = e, l = a, n = $(null), i = f(() => document.getElementById(t.toggleId));
|
|
3738
|
-
Ct([n, i], u),
|
|
3740
|
+
Ct([n, i], u), ve(["Escape"], u);
|
|
3739
3741
|
function u() {
|
|
3740
3742
|
t.shown && l("close");
|
|
3741
3743
|
}
|
|
3742
|
-
return (o, s) => (d(),
|
|
3744
|
+
return (o, s) => (d(), A(Pe, {
|
|
3743
3745
|
name: "bs-flyout",
|
|
3744
3746
|
preloaded: e.preloaded,
|
|
3745
3747
|
shown: e.shown
|
|
3746
3748
|
}, {
|
|
3747
|
-
default:
|
|
3748
|
-
B("div",
|
|
3749
|
+
default: L(() => [
|
|
3750
|
+
B("div", F({
|
|
3749
3751
|
ref_key: "flyout",
|
|
3750
3752
|
ref: n,
|
|
3751
3753
|
class: "bs-flyout",
|
|
@@ -3762,35 +3764,35 @@ const sn = {
|
|
|
3762
3764
|
"aria-label": "Close",
|
|
3763
3765
|
onClick: u
|
|
3764
3766
|
}, [
|
|
3765
|
-
|
|
3767
|
+
E(c(Ie))
|
|
3766
3768
|
])
|
|
3767
3769
|
]),
|
|
3768
|
-
|
|
3770
|
+
O(o.$slots, "default")
|
|
3769
3771
|
], 16, Kn)
|
|
3770
3772
|
]),
|
|
3771
3773
|
_: 3
|
|
3772
3774
|
}, 8, ["preloaded", "shown"]));
|
|
3773
3775
|
}
|
|
3774
|
-
}), Zn = ["view-box"], Xn = ["id"], Qn = ["offset", "stop-color"],
|
|
3776
|
+
}), Zn = ["view-box"], Xn = ["id"], Qn = ["offset", "stop-color"], Uo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3775
3777
|
__name: "BsIconGradientWrapper",
|
|
3776
3778
|
setup(e) {
|
|
3777
3779
|
const a = $(null), t = $(null), l = [
|
|
3778
3780
|
{ offset: 0.1326, color: "#EE282A" },
|
|
3779
3781
|
{ offset: 0.5466, color: "#1C0087" },
|
|
3780
3782
|
{ offset: 0.9715, color: "#0086EA" }
|
|
3781
|
-
], [n] =
|
|
3782
|
-
return
|
|
3783
|
+
], [n] = J();
|
|
3784
|
+
return Q(() => {
|
|
3783
3785
|
t.value = a.value.querySelector("svg").getAttribute("viewBox") || "0 0 0 0";
|
|
3784
|
-
}), (i, u) => (d(),
|
|
3785
|
-
B("span",
|
|
3786
|
+
}), (i, u) => (d(), h(Y, null, [
|
|
3787
|
+
B("span", F({
|
|
3786
3788
|
ref_key: "svgWrapperRef",
|
|
3787
3789
|
ref: a,
|
|
3788
3790
|
class: "bs-icon-gradient-wrapper",
|
|
3789
3791
|
style: `fill: url(#${c(n)});`
|
|
3790
3792
|
}, i.$attrs), [
|
|
3791
|
-
|
|
3793
|
+
O(i.$slots, "default")
|
|
3792
3794
|
], 16),
|
|
3793
|
-
(d(),
|
|
3795
|
+
(d(), h("svg", {
|
|
3794
3796
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3795
3797
|
"view-box": t.value,
|
|
3796
3798
|
width: "0",
|
|
@@ -3804,7 +3806,7 @@ const sn = {
|
|
|
3804
3806
|
y2: "100%",
|
|
3805
3807
|
"gradient-units": "userSpaceOnUse"
|
|
3806
3808
|
}, [
|
|
3807
|
-
(d(),
|
|
3809
|
+
(d(), h(Y, null, ae(l, (o) => B("stop", {
|
|
3808
3810
|
key: o.offset,
|
|
3809
3811
|
offset: o.offset,
|
|
3810
3812
|
"stop-color": o.color
|
|
@@ -3813,7 +3815,7 @@ const sn = {
|
|
|
3813
3815
|
], 8, Zn))
|
|
3814
3816
|
], 64));
|
|
3815
3817
|
}
|
|
3816
|
-
}),
|
|
3818
|
+
}), Ho = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3817
3819
|
__name: "BsInputField",
|
|
3818
3820
|
props: {
|
|
3819
3821
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -3860,26 +3862,26 @@ const sn = {
|
|
|
3860
3862
|
},
|
|
3861
3863
|
emits: ["update:modelValue"],
|
|
3862
3864
|
setup(e, { emit: a }) {
|
|
3863
|
-
const t = e, [l, n] =
|
|
3865
|
+
const t = e, [l, n] = J(2), i = f(() => ge.concat(t.passAttrs.split(",")).concat("type")), u = f(() => {
|
|
3864
3866
|
var r, m;
|
|
3865
3867
|
return ((m = (r = t.hints) == null ? void 0 : r.join) == null ? void 0 : m.call(r, `
|
|
3866
3868
|
`)) || t.hints;
|
|
3867
3869
|
}), o = f(() => t.error && t.errorMsg || t.hint || u.value || void 0), s = f(() => t.inputId || l.value);
|
|
3868
|
-
return (r, m) => (d(),
|
|
3869
|
-
e.label || r.$slots.label ? (d(),
|
|
3870
|
+
return (r, m) => (d(), h("div", F({ "data-component": "bs-input-field" }, c(X)(r.$attrs, i.value).remaining), [
|
|
3871
|
+
e.label || r.$slots.label ? (d(), A(le, {
|
|
3870
3872
|
key: 0,
|
|
3871
3873
|
for: r.$attrs.id || s.value,
|
|
3872
3874
|
disabled: e.disabled,
|
|
3873
3875
|
required: e.required
|
|
3874
3876
|
}, {
|
|
3875
|
-
default:
|
|
3876
|
-
|
|
3877
|
-
|
|
3877
|
+
default: L(() => [
|
|
3878
|
+
O(r.$slots, "label", {}, () => [
|
|
3879
|
+
U(T(e.label), 1)
|
|
3878
3880
|
])
|
|
3879
3881
|
]),
|
|
3880
3882
|
_: 3
|
|
3881
3883
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
3882
|
-
|
|
3884
|
+
E(ke, F({
|
|
3883
3885
|
disabled: e.disabled,
|
|
3884
3886
|
error: e.error,
|
|
3885
3887
|
"hint-id": c(n),
|
|
@@ -3889,8 +3891,8 @@ const sn = {
|
|
|
3889
3891
|
type: e.type,
|
|
3890
3892
|
value: e.value || e.modelValue,
|
|
3891
3893
|
"onUpdate:modelValue": m[0] || (m[0] = (g) => r.$emit("update:modelValue", g))
|
|
3892
|
-
}, c(
|
|
3893
|
-
o.value ? (d(),
|
|
3894
|
+
}, c(X)(r.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
|
|
3895
|
+
o.value ? (d(), A(ye, {
|
|
3894
3896
|
key: 1,
|
|
3895
3897
|
error: e.error,
|
|
3896
3898
|
"error-msg": e.errorMsg,
|
|
@@ -3899,7 +3901,7 @@ const sn = {
|
|
|
3899
3901
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : C("", !0)
|
|
3900
3902
|
], 16));
|
|
3901
3903
|
}
|
|
3902
|
-
}),
|
|
3904
|
+
}), ht = {
|
|
3903
3905
|
A: "🇦",
|
|
3904
3906
|
B: "🇧",
|
|
3905
3907
|
C: "🇨",
|
|
@@ -3953,7 +3955,7 @@ const sn = {
|
|
|
3953
3955
|
*/
|
|
3954
3956
|
initSourceData() {
|
|
3955
3957
|
return this.data.allCountries || (this.data.allCountries = ma().map((e) => {
|
|
3956
|
-
const a =
|
|
3958
|
+
const a = ha(e), t = ht[a[0]] + ht[a[1]] || "";
|
|
3957
3959
|
return {
|
|
3958
3960
|
label: `+${e}`,
|
|
3959
3961
|
flag: t,
|
|
@@ -4036,77 +4038,77 @@ const sn = {
|
|
|
4036
4038
|
m,
|
|
4037
4039
|
g,
|
|
4038
4040
|
v,
|
|
4039
|
-
|
|
4040
|
-
] =
|
|
4041
|
+
b
|
|
4042
|
+
] = J(4), y = $(!1), S = $(""), p = $(""), w = $(!1), k = $(!1), I = $(!0);
|
|
4041
4043
|
a({
|
|
4042
|
-
validationErr:
|
|
4044
|
+
validationErr: w,
|
|
4043
4045
|
validationErrMsg: p
|
|
4044
4046
|
});
|
|
4045
|
-
const q = f(() =>
|
|
4046
|
-
|
|
4047
|
-
n("update:modelValue", M),
|
|
4048
|
-
}),
|
|
4049
|
-
function H(M,
|
|
4050
|
-
M === "" && M !==
|
|
4047
|
+
const q = f(() => S.value ? `+${o.value}${S.value}` : ""), z = f(() => `Country code: ${o.value}. Click to change.`), R = f(() => I.value ? l.errorMsg || p.value : ""), D = f(() => l.error || w.value), W = f(() => l.hint || D.value && R.value), P = f(() => I.value && D.value);
|
|
4048
|
+
G(q, (M) => {
|
|
4049
|
+
n("update:modelValue", M), j(M);
|
|
4050
|
+
}), G(() => l.modelValue, H), xe(), Q(() => y.value = !0);
|
|
4051
|
+
function H(M, Z) {
|
|
4052
|
+
M === "" && M !== Z && (S.value = "");
|
|
4051
4053
|
}
|
|
4052
4054
|
function te() {
|
|
4053
4055
|
var M;
|
|
4054
4056
|
k.value && (k.value = !1, (M = u.value) == null || M.focus());
|
|
4055
4057
|
}
|
|
4056
|
-
function
|
|
4057
|
-
var
|
|
4058
|
-
o.value = M, k.value = !1, (
|
|
4058
|
+
function ue(M) {
|
|
4059
|
+
var Z;
|
|
4060
|
+
o.value = M, k.value = !1, (Z = u.value) == null || Z.focus(), V(M);
|
|
4059
4061
|
}
|
|
4060
|
-
function
|
|
4062
|
+
function ie() {
|
|
4061
4063
|
l.deferValidation && (I.value = !0), n("input-blur");
|
|
4062
4064
|
}
|
|
4063
4065
|
function Ce(M) {
|
|
4064
|
-
|
|
4066
|
+
S.value = M.target.value, l.deferValidation && (I.value = !1);
|
|
4065
4067
|
}
|
|
4066
|
-
function
|
|
4067
|
-
var
|
|
4068
|
-
!((
|
|
4068
|
+
function ce(M) {
|
|
4069
|
+
var Z, _;
|
|
4070
|
+
!((_ = (Z = M.key) == null ? void 0 : Z.match) != null && _.call(Z, /[0-9]/)) && !i.includes(M.key) && !M.ctrlKey && !M.metaKey && M.preventDefault();
|
|
4069
4071
|
}
|
|
4070
4072
|
function xe() {
|
|
4071
|
-
je.initSourceData(), we(),
|
|
4073
|
+
je.initSourceData(), we(), V(o.value), j(q.value);
|
|
4072
4074
|
}
|
|
4073
4075
|
function we() {
|
|
4074
|
-
var
|
|
4076
|
+
var Z, _;
|
|
4075
4077
|
let M = ct(l.modelValue);
|
|
4076
|
-
M.valid || M.countryCode && ((
|
|
4078
|
+
M.valid || M.countryCode && ((_ = (Z = l.modelValue) == null ? void 0 : Z.startsWith) != null && _.call(Z, "+")) ? (o.value = M.countryCode, S.value = M.number.significant) : S.value = l.modelValue, s.value = je.data.allCountries.map((Te) => ({
|
|
4077
4079
|
...Te,
|
|
4078
4080
|
isSelected: o.value === Te
|
|
4079
4081
|
}));
|
|
4080
4082
|
}
|
|
4081
|
-
function
|
|
4083
|
+
function V(M) {
|
|
4082
4084
|
r.value = je.getCountryByCountryCode(M);
|
|
4083
4085
|
}
|
|
4084
|
-
function
|
|
4085
|
-
|
|
4086
|
+
function j(M) {
|
|
4087
|
+
w.value = M ? !ct(M).valid : !1, p.value = w.value ? "Invalid phone number" : "";
|
|
4086
4088
|
}
|
|
4087
|
-
return (M,
|
|
4089
|
+
return (M, Z) => (d(), h("div", F({
|
|
4088
4090
|
class: "bs-input-phone",
|
|
4089
4091
|
"data-component": "bs-input-phone"
|
|
4090
|
-
}, c(
|
|
4091
|
-
|
|
4092
|
-
for: M.$attrs.id || e.inputId || c(
|
|
4092
|
+
}, c(X)(M.$attrs, c(ge)).remaining), [
|
|
4093
|
+
E(le, {
|
|
4094
|
+
for: M.$attrs.id || e.inputId || c(b),
|
|
4093
4095
|
required: e.required,
|
|
4094
4096
|
disabled: e.disabled,
|
|
4095
4097
|
class: oe({ "visually-hidden": e.hideLabel })
|
|
4096
4098
|
}, {
|
|
4097
|
-
default:
|
|
4098
|
-
|
|
4099
|
+
default: L(() => [
|
|
4100
|
+
U(T(e.label), 1)
|
|
4099
4101
|
]),
|
|
4100
4102
|
_: 1
|
|
4101
4103
|
}, 8, ["for", "required", "disabled", "class"]),
|
|
4102
|
-
|
|
4104
|
+
E(De, {
|
|
4103
4105
|
disabled: e.disabled,
|
|
4104
|
-
error:
|
|
4106
|
+
error: P.value,
|
|
4105
4107
|
multifocus: !0,
|
|
4106
4108
|
variant: "inner-bordered"
|
|
4107
4109
|
}, {
|
|
4108
|
-
default:
|
|
4109
|
-
var
|
|
4110
|
+
default: L(() => {
|
|
4111
|
+
var _;
|
|
4110
4112
|
return [
|
|
4111
4113
|
B("button", {
|
|
4112
4114
|
id: c(m),
|
|
@@ -4115,42 +4117,42 @@ const sn = {
|
|
|
4115
4117
|
"aria-controls": c(g),
|
|
4116
4118
|
"aria-expanded": k.value,
|
|
4117
4119
|
"aria-haspopup": "listbox",
|
|
4118
|
-
"aria-label":
|
|
4120
|
+
"aria-label": z.value,
|
|
4119
4121
|
disabled: e.disabled,
|
|
4120
4122
|
type: "button",
|
|
4121
|
-
onClick:
|
|
4123
|
+
onClick: Z[0] || (Z[0] = (Te) => k.value = !k.value)
|
|
4122
4124
|
}, [
|
|
4123
|
-
B("span", null,
|
|
4124
|
-
B("span", null, "+" +
|
|
4125
|
-
|
|
4125
|
+
B("span", null, T((_ = r.value) == null ? void 0 : _.flag), 1),
|
|
4126
|
+
B("span", null, "+" + T(o.value), 1),
|
|
4127
|
+
E(c(Yt), { size: "sm" })
|
|
4126
4128
|
], 8, Jn),
|
|
4127
|
-
|
|
4128
|
-
"input-id": M.$attrs.id || e.inputId || c(
|
|
4129
|
+
E(ke, F({
|
|
4130
|
+
"input-id": M.$attrs.id || e.inputId || c(b),
|
|
4129
4131
|
disabled: e.disabled,
|
|
4130
4132
|
"hint-id": c(v),
|
|
4131
4133
|
placeholder: e.placeholder,
|
|
4132
|
-
value:
|
|
4134
|
+
value: S.value,
|
|
4133
4135
|
"data-autowidth": "",
|
|
4134
4136
|
type: "tel"
|
|
4135
|
-
}, c(
|
|
4137
|
+
}, c(X)(M.$attrs, c(ge)).filtered, {
|
|
4136
4138
|
onInput: Ce,
|
|
4137
|
-
onFocusout:
|
|
4138
|
-
onKeydown:
|
|
4139
|
+
onFocusout: ie,
|
|
4140
|
+
onKeydown: ce
|
|
4139
4141
|
}), null, 16, ["input-id", "disabled", "hint-id", "placeholder", "value"])
|
|
4140
4142
|
];
|
|
4141
4143
|
}),
|
|
4142
4144
|
_: 1
|
|
4143
4145
|
}, 8, ["disabled", "error"]),
|
|
4144
|
-
|
|
4145
|
-
error:
|
|
4146
|
-
"error-msg":
|
|
4146
|
+
pe(E(ye, {
|
|
4147
|
+
error: D.value,
|
|
4148
|
+
"error-msg": R.value,
|
|
4147
4149
|
hint: e.hint,
|
|
4148
4150
|
"hint-id": c(v)
|
|
4149
4151
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
4150
|
-
[
|
|
4152
|
+
[me, W.value]
|
|
4151
4153
|
]),
|
|
4152
|
-
y.value ? (d(),
|
|
4153
|
-
|
|
4154
|
+
y.value ? (d(), h("div", _n, [
|
|
4155
|
+
E(Pt, {
|
|
4154
4156
|
"anchor-id": c(m),
|
|
4155
4157
|
"helper-text": "Country Code",
|
|
4156
4158
|
label: "Country Code",
|
|
@@ -4160,18 +4162,18 @@ const sn = {
|
|
|
4160
4162
|
shown: k.value,
|
|
4161
4163
|
width: "content",
|
|
4162
4164
|
onClose: te,
|
|
4163
|
-
"onUpdate:modelValue":
|
|
4165
|
+
"onUpdate:modelValue": ue
|
|
4164
4166
|
}, {
|
|
4165
|
-
default:
|
|
4166
|
-
y.value ? (d(!0),
|
|
4167
|
-
"aria-label":
|
|
4168
|
-
key:
|
|
4169
|
-
value: `${
|
|
4167
|
+
default: L(() => [
|
|
4168
|
+
y.value ? (d(!0), h(Y, { key: 0 }, ae(s.value, (_) => (d(), A(it, {
|
|
4169
|
+
"aria-label": _.value,
|
|
4170
|
+
key: _.value,
|
|
4171
|
+
value: `${_.value}`,
|
|
4170
4172
|
variant: "2-col"
|
|
4171
4173
|
}, {
|
|
4172
|
-
default:
|
|
4173
|
-
B("span", el,
|
|
4174
|
-
B("span", tl,
|
|
4174
|
+
default: L(() => [
|
|
4175
|
+
B("span", el, T(_ == null ? void 0 : _.flag), 1),
|
|
4176
|
+
B("span", tl, T(_.label), 1)
|
|
4175
4177
|
]),
|
|
4176
4178
|
_: 2
|
|
4177
4179
|
}, 1032, ["aria-label", "value"]))), 128)) : C("", !0)
|
|
@@ -4181,7 +4183,7 @@ const sn = {
|
|
|
4181
4183
|
])) : C("", !0)
|
|
4182
4184
|
], 16));
|
|
4183
4185
|
}
|
|
4184
|
-
}), al = ["data-size", "data-variant"], nl = ["stroke"], ll = { key: 0 },
|
|
4186
|
+
}), al = ["data-size", "data-variant"], nl = ["stroke"], ll = { key: 0 }, bt = {
|
|
4185
4187
|
__name: "BsSpinner",
|
|
4186
4188
|
props: {
|
|
4187
4189
|
label: {
|
|
@@ -4198,7 +4200,7 @@ const sn = {
|
|
|
4198
4200
|
}
|
|
4199
4201
|
},
|
|
4200
4202
|
setup(e) {
|
|
4201
|
-
return (a, t) => (d(),
|
|
4203
|
+
return (a, t) => (d(), h("svg", {
|
|
4202
4204
|
class: "bs-spinner",
|
|
4203
4205
|
"data-component": "bs-spinner",
|
|
4204
4206
|
"data-size": e.size,
|
|
@@ -4208,7 +4210,7 @@ const sn = {
|
|
|
4208
4210
|
viewBox: "0 0 100 100",
|
|
4209
4211
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4210
4212
|
}, [
|
|
4211
|
-
B("title", null,
|
|
4213
|
+
B("title", null, T(e.label), 1),
|
|
4212
4214
|
B("circle", {
|
|
4213
4215
|
cx: "50",
|
|
4214
4216
|
cy: "50",
|
|
@@ -4216,7 +4218,7 @@ const sn = {
|
|
|
4216
4218
|
r: "45",
|
|
4217
4219
|
stroke: e.variant === "gradient" ? "url(#bs-spinner-gradient)" : void 0
|
|
4218
4220
|
}, null, 8, nl),
|
|
4219
|
-
e.variant === "gradient" ? (d(),
|
|
4221
|
+
e.variant === "gradient" ? (d(), h("defs", ll, t[0] || (t[0] = [
|
|
4220
4222
|
B("linearGradient", { id: "bs-spinner-gradient" }, [
|
|
4221
4223
|
B("stop", { offset: "0%" }),
|
|
4222
4224
|
B("stop", { offset: "49%" }),
|
|
@@ -4225,7 +4227,7 @@ const sn = {
|
|
|
4225
4227
|
]))) : C("", !0)
|
|
4226
4228
|
], 8, al));
|
|
4227
4229
|
}
|
|
4228
|
-
}, ol = ["id"], il = { style: { display: "flex", "justify-content": "center" } }, rl = { style: { display: "flex", "justify-content": "center" } },
|
|
4230
|
+
}, ol = ["id"], il = { style: { display: "flex", "justify-content": "center" } }, rl = { style: { display: "flex", "justify-content": "center" } }, sl = { "aria-live": "polite" }, Ko = {
|
|
4229
4231
|
__name: "BsInputTypeahead",
|
|
4230
4232
|
props: {
|
|
4231
4233
|
characterThreshold: {
|
|
@@ -4236,6 +4238,14 @@ const sn = {
|
|
|
4236
4238
|
type: Boolean,
|
|
4237
4239
|
default: !1
|
|
4238
4240
|
},
|
|
4241
|
+
error: {
|
|
4242
|
+
type: Boolean,
|
|
4243
|
+
default: !1
|
|
4244
|
+
},
|
|
4245
|
+
errorMsg: {
|
|
4246
|
+
type: String,
|
|
4247
|
+
default: ""
|
|
4248
|
+
},
|
|
4239
4249
|
filterType: {
|
|
4240
4250
|
type: String,
|
|
4241
4251
|
default: "starts-with",
|
|
@@ -4245,6 +4255,10 @@ const sn = {
|
|
|
4245
4255
|
type: Boolean,
|
|
4246
4256
|
default: !1
|
|
4247
4257
|
},
|
|
4258
|
+
hint: {
|
|
4259
|
+
type: String,
|
|
4260
|
+
default: ""
|
|
4261
|
+
},
|
|
4248
4262
|
inputValue: {
|
|
4249
4263
|
type: String,
|
|
4250
4264
|
default: ""
|
|
@@ -4297,146 +4311,148 @@ const sn = {
|
|
|
4297
4311
|
},
|
|
4298
4312
|
emits: ["update:inputValue", "update:optionsValue"],
|
|
4299
4313
|
setup(e, { emit: a }) {
|
|
4300
|
-
const t = e, l = a, n = $(!1), i = $(!1), [u] =
|
|
4301
|
-
let
|
|
4302
|
-
|
|
4303
|
-
i.value ? i.value = !1 :
|
|
4314
|
+
const t = e, l = a, n = $(!1), i = $(!1), [u, o] = J(2);
|
|
4315
|
+
let s = [];
|
|
4316
|
+
G(() => t.inputValue, () => {
|
|
4317
|
+
i.value ? i.value = !1 : k();
|
|
4304
4318
|
});
|
|
4305
|
-
const
|
|
4319
|
+
const r = f(() => t.typeaheadId || u.value), m = f(() => t.error && t.errorMsg || t.hint || void 0), g = f(() => `${r.value}-input-container`), v = f(() => `${r.value}-input`), b = f(() => `${r.value}-options`), y = f(() => t.multiselect ? Array.isArray(t.optionsValue) ? t.optionsValue : [t.optionsValue] : t.optionsValue), S = f(() => {
|
|
4306
4320
|
if (n.value) {
|
|
4307
|
-
let
|
|
4308
|
-
const
|
|
4309
|
-
return t.inputValue.length >= t.characterThreshold && (
|
|
4321
|
+
let D = t.options;
|
|
4322
|
+
const W = t.inputValue.toLowerCase(), P = t.filterType === "includes" ? "includes" : "startsWith";
|
|
4323
|
+
return t.inputValue.length >= t.characterThreshold && (D = p(D, W, P), D = D.slice(0, t.maxOptions), D = w(D, W, P), s = D), D;
|
|
4310
4324
|
} else
|
|
4311
|
-
return
|
|
4325
|
+
return s;
|
|
4312
4326
|
});
|
|
4313
|
-
function
|
|
4314
|
-
return t.internalFiltering ?
|
|
4315
|
-
}
|
|
4316
|
-
function w(
|
|
4317
|
-
return
|
|
4318
|
-
let
|
|
4319
|
-
if (
|
|
4320
|
-
const
|
|
4321
|
-
|
|
4327
|
+
function p(D, W, P) {
|
|
4328
|
+
return t.internalFiltering ? D.filter((H) => H.label.toLowerCase()[P](W)) : D;
|
|
4329
|
+
}
|
|
4330
|
+
function w(D, W, P) {
|
|
4331
|
+
return D.map((H) => {
|
|
4332
|
+
let te = H.label;
|
|
4333
|
+
if (W !== "") {
|
|
4334
|
+
const ue = P === "includes" ? "gi" : "i", ie = new RegExp(`(${W})`, ue);
|
|
4335
|
+
te = H.label.replace(ie, '<span style="color: var(--bs-blue-base)">$1</span>');
|
|
4322
4336
|
}
|
|
4323
|
-
return { ...
|
|
4337
|
+
return { ...H, labelHtml: te };
|
|
4324
4338
|
});
|
|
4325
4339
|
}
|
|
4326
|
-
function
|
|
4340
|
+
function k() {
|
|
4327
4341
|
t.showDropdownOnFocus || t.inputValue.length >= t.characterThreshold ? n.value = !0 : n.value = !1;
|
|
4328
4342
|
}
|
|
4329
|
-
function
|
|
4330
|
-
l("update:inputValue", ""), t.multiselect || l("update:optionsValue", ""), document.getElementById(
|
|
4343
|
+
function I() {
|
|
4344
|
+
l("update:inputValue", ""), t.multiselect || l("update:optionsValue", ""), document.getElementById(v.value).focus();
|
|
4331
4345
|
}
|
|
4332
|
-
function
|
|
4346
|
+
function q(D) {
|
|
4333
4347
|
i.value = !0;
|
|
4334
|
-
const
|
|
4335
|
-
l("update:inputValue",
|
|
4348
|
+
const W = S.value.find((P) => P.value === D);
|
|
4349
|
+
l("update:inputValue", W.label), l("update:optionsValue", D);
|
|
4336
4350
|
}
|
|
4337
|
-
function
|
|
4338
|
-
const
|
|
4339
|
-
l("update:optionsValue",
|
|
4351
|
+
function z(D) {
|
|
4352
|
+
const W = [...y.value, D];
|
|
4353
|
+
l("update:optionsValue", W);
|
|
4340
4354
|
}
|
|
4341
|
-
function
|
|
4342
|
-
const
|
|
4343
|
-
l("update:optionsValue",
|
|
4355
|
+
function R(D) {
|
|
4356
|
+
const W = y.value.filter((P) => P !== D);
|
|
4357
|
+
l("update:optionsValue", W);
|
|
4344
4358
|
}
|
|
4345
|
-
return (
|
|
4346
|
-
e.label ||
|
|
4359
|
+
return (D, W) => (d(), h(Y, null, [
|
|
4360
|
+
e.label || D.$slots.label ? (d(), A(le, {
|
|
4347
4361
|
key: 0,
|
|
4348
|
-
for:
|
|
4362
|
+
for: v.value,
|
|
4349
4363
|
disabled: e.disabled,
|
|
4350
4364
|
required: e.required
|
|
4351
4365
|
}, {
|
|
4352
|
-
default:
|
|
4353
|
-
|
|
4354
|
-
|
|
4366
|
+
default: L(() => [
|
|
4367
|
+
O(D.$slots, "label", {}, () => [
|
|
4368
|
+
U(T(e.label), 1)
|
|
4355
4369
|
])
|
|
4356
4370
|
]),
|
|
4357
4371
|
_: 3
|
|
4358
4372
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
4359
4373
|
B("div", {
|
|
4360
|
-
id:
|
|
4374
|
+
id: g.value,
|
|
4361
4375
|
class: "typeahead-search-wrapper"
|
|
4362
4376
|
}, [
|
|
4363
|
-
|
|
4364
|
-
"aria-controls":
|
|
4377
|
+
E(Vt, F({
|
|
4378
|
+
"aria-controls": b.value,
|
|
4379
|
+
"aria-describedby": m.value ? c(o) : void 0,
|
|
4365
4380
|
"aria-expanded": n.value,
|
|
4366
4381
|
"aria-haspopup": "listbox",
|
|
4367
4382
|
autocomplete: "off",
|
|
4368
4383
|
disabled: e.disabled,
|
|
4384
|
+
error: e.error,
|
|
4369
4385
|
"hide-clear": e.inputValue === "",
|
|
4370
4386
|
"hide-search-icon": e.hideSearchIcon,
|
|
4371
|
-
"input-id":
|
|
4372
|
-
"pass-attrs": "aria-controls,aria-expanded,role",
|
|
4387
|
+
"input-id": v.value,
|
|
4388
|
+
"pass-attrs": "aria-controls,aria-describedby,aria-expanded,role",
|
|
4373
4389
|
placeholder: e.placeholder,
|
|
4374
4390
|
role: "combobox",
|
|
4375
4391
|
value: e.inputValue
|
|
4376
|
-
},
|
|
4377
|
-
onClear:
|
|
4378
|
-
onFocusin:
|
|
4379
|
-
"onUpdate:modelValue":
|
|
4380
|
-
}), null, 16, ["aria-controls", "aria-expanded", "disabled", "hide-clear", "hide-search-icon", "input-id", "placeholder", "value"])
|
|
4392
|
+
}, D.$attrs, {
|
|
4393
|
+
onClear: I,
|
|
4394
|
+
onFocusin: k,
|
|
4395
|
+
"onUpdate:modelValue": W[0] || (W[0] = (P) => l("update:inputValue", P))
|
|
4396
|
+
}), null, 16, ["aria-controls", "aria-describedby", "aria-expanded", "disabled", "error", "hide-clear", "hide-search-icon", "input-id", "placeholder", "value"])
|
|
4381
4397
|
], 8, ol),
|
|
4382
|
-
|
|
4383
|
-
"anchor-id":
|
|
4398
|
+
E(ot, {
|
|
4399
|
+
"anchor-id": g.value,
|
|
4384
4400
|
preloaded: !0,
|
|
4385
4401
|
shown: n.value,
|
|
4386
4402
|
"use-mobile-style": !1,
|
|
4387
4403
|
width: "toggle",
|
|
4388
|
-
onClose:
|
|
4404
|
+
onClose: W[2] || (W[2] = (P) => n.value = !1)
|
|
4389
4405
|
}, {
|
|
4390
|
-
default:
|
|
4391
|
-
e.multiselect ? (d(),
|
|
4406
|
+
default: L(() => [
|
|
4407
|
+
e.multiselect ? (d(), A(Dt, {
|
|
4392
4408
|
key: 0,
|
|
4393
4409
|
"focus-on-open": !1,
|
|
4394
4410
|
label: e.label,
|
|
4395
|
-
options:
|
|
4396
|
-
"options-id":
|
|
4397
|
-
"selected-options":
|
|
4411
|
+
options: S.value,
|
|
4412
|
+
"options-id": b.value,
|
|
4413
|
+
"selected-options": y.value,
|
|
4398
4414
|
shown: n.value,
|
|
4399
|
-
onCheckOption:
|
|
4400
|
-
onUncheckOption:
|
|
4415
|
+
onCheckOption: z,
|
|
4416
|
+
onUncheckOption: R
|
|
4401
4417
|
}, Ze({ _: 2 }, [
|
|
4402
4418
|
e.loading ? {
|
|
4403
4419
|
name: "no-options",
|
|
4404
|
-
fn:
|
|
4420
|
+
fn: L(() => [
|
|
4405
4421
|
B("span", il, [
|
|
4406
|
-
|
|
4422
|
+
E(bt, { size: "sm" })
|
|
4407
4423
|
])
|
|
4408
4424
|
]),
|
|
4409
4425
|
key: "0"
|
|
4410
4426
|
} : {
|
|
4411
4427
|
name: "no-options",
|
|
4412
|
-
fn:
|
|
4413
|
-
|
|
4428
|
+
fn: L(() => [
|
|
4429
|
+
W[3] || (W[3] = U("No results found"))
|
|
4414
4430
|
]),
|
|
4415
4431
|
key: "1"
|
|
4416
4432
|
}
|
|
4417
|
-
]), 1032, ["label", "options", "options-id", "selected-options", "shown"])) : (d(),
|
|
4433
|
+
]), 1032, ["label", "options", "options-id", "selected-options", "shown"])) : (d(), A(Re, {
|
|
4418
4434
|
key: 1,
|
|
4419
4435
|
label: e.label,
|
|
4420
|
-
"model-value":
|
|
4421
|
-
"options-id":
|
|
4436
|
+
"model-value": y.value,
|
|
4437
|
+
"options-id": b.value,
|
|
4422
4438
|
shown: n.value,
|
|
4423
|
-
"onUpdate:modelValue":
|
|
4424
|
-
onClose:
|
|
4439
|
+
"onUpdate:modelValue": q,
|
|
4440
|
+
onClose: W[1] || (W[1] = (P) => n.value = !1)
|
|
4425
4441
|
}, {
|
|
4426
|
-
default:
|
|
4427
|
-
|
|
4442
|
+
default: L(() => [
|
|
4443
|
+
E(qe, { options: S.value }, Ze({ _: 2 }, [
|
|
4428
4444
|
e.loading ? {
|
|
4429
4445
|
name: "no-options",
|
|
4430
|
-
fn:
|
|
4446
|
+
fn: L(() => [
|
|
4431
4447
|
B("span", rl, [
|
|
4432
|
-
|
|
4448
|
+
E(bt, { size: "sm" })
|
|
4433
4449
|
])
|
|
4434
4450
|
]),
|
|
4435
4451
|
key: "0"
|
|
4436
4452
|
} : {
|
|
4437
4453
|
name: "no-options",
|
|
4438
|
-
fn:
|
|
4439
|
-
|
|
4454
|
+
fn: L(() => [
|
|
4455
|
+
W[4] || (W[4] = U("No results found"))
|
|
4440
4456
|
]),
|
|
4441
4457
|
key: "1"
|
|
4442
4458
|
}
|
|
@@ -4446,10 +4462,19 @@ const sn = {
|
|
|
4446
4462
|
}, 8, ["label", "model-value", "options-id", "shown"]))
|
|
4447
4463
|
]),
|
|
4448
4464
|
_: 1
|
|
4449
|
-
}, 8, ["anchor-id", "shown"])
|
|
4465
|
+
}, 8, ["anchor-id", "shown"]),
|
|
4466
|
+
B("div", sl, [
|
|
4467
|
+
m.value ? (d(), A(ye, {
|
|
4468
|
+
key: 0,
|
|
4469
|
+
error: e.error,
|
|
4470
|
+
"error-msg": e.errorMsg,
|
|
4471
|
+
hint: e.hint,
|
|
4472
|
+
"hint-id": c(o)
|
|
4473
|
+
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : C("", !0)
|
|
4474
|
+
])
|
|
4450
4475
|
], 64));
|
|
4451
4476
|
}
|
|
4452
|
-
},
|
|
4477
|
+
}, dl = ["data-size", "data-variant"], Yo = {
|
|
4453
4478
|
__name: "BsLoader",
|
|
4454
4479
|
props: {
|
|
4455
4480
|
size: {
|
|
@@ -4463,7 +4488,7 @@ const sn = {
|
|
|
4463
4488
|
}
|
|
4464
4489
|
},
|
|
4465
4490
|
setup(e) {
|
|
4466
|
-
return (a, t) => (d(),
|
|
4491
|
+
return (a, t) => (d(), h("span", {
|
|
4467
4492
|
class: "bs-loader",
|
|
4468
4493
|
"data-size": e.size,
|
|
4469
4494
|
"data-variant": e.variant,
|
|
@@ -4474,9 +4499,9 @@ const sn = {
|
|
|
4474
4499
|
B("span", null, null, -1),
|
|
4475
4500
|
B("span", null, null, -1),
|
|
4476
4501
|
B("span", { class: "visually-hidden" }, "Loading", -1)
|
|
4477
|
-
]), 8,
|
|
4502
|
+
]), 8, dl));
|
|
4478
4503
|
}
|
|
4479
|
-
},
|
|
4504
|
+
}, ul = ["data-shown"], cl = {
|
|
4480
4505
|
__name: "BsOverlay",
|
|
4481
4506
|
props: {
|
|
4482
4507
|
shown: {
|
|
@@ -4506,34 +4531,34 @@ const sn = {
|
|
|
4506
4531
|
emits: ["after-enter", "after-leave"],
|
|
4507
4532
|
setup(e, { emit: a }) {
|
|
4508
4533
|
const t = e, l = a, { transition: n } = Ee(t);
|
|
4509
|
-
|
|
4534
|
+
Q(() => {
|
|
4510
4535
|
i();
|
|
4511
|
-
}),
|
|
4536
|
+
}), G(n, () => {
|
|
4512
4537
|
i();
|
|
4513
4538
|
});
|
|
4514
4539
|
function i() {
|
|
4515
4540
|
n.value ? document.body.setAttribute("data-scroll", "false") : document.body.removeAttribute("data-scroll");
|
|
4516
4541
|
}
|
|
4517
|
-
return (u, o) => (d(),
|
|
4542
|
+
return (u, o) => (d(), A(Pe, {
|
|
4518
4543
|
name: "bs-overlay",
|
|
4519
4544
|
shown: c(n),
|
|
4520
4545
|
preloaded: e.preloaded,
|
|
4521
4546
|
onAfterEnter: o[0] || (o[0] = (s) => l("after-enter")),
|
|
4522
4547
|
onAfterLeave: o[1] || (o[1] = (s) => l("after-leave"))
|
|
4523
4548
|
}, {
|
|
4524
|
-
default:
|
|
4549
|
+
default: L(() => [
|
|
4525
4550
|
B("div", {
|
|
4526
4551
|
class: "bs-overlay",
|
|
4527
4552
|
"data-shown": c(n)
|
|
4528
|
-
}, null, 8,
|
|
4553
|
+
}, null, 8, ul)
|
|
4529
4554
|
]),
|
|
4530
4555
|
_: 1
|
|
4531
4556
|
}, 8, ["shown", "preloaded"]));
|
|
4532
4557
|
}
|
|
4533
|
-
},
|
|
4558
|
+
}, fl = ["id", "role", "aria-labelledby", "data-shown", "data-full-width", "data-full-height"], pl = ["id"], ml = {
|
|
4534
4559
|
key: 1,
|
|
4535
4560
|
class: "modal-footer"
|
|
4536
|
-
},
|
|
4561
|
+
}, Zo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4537
4562
|
__name: "BsModal",
|
|
4538
4563
|
props: {
|
|
4539
4564
|
modalId: {
|
|
@@ -4586,37 +4611,37 @@ const sn = {
|
|
|
4586
4611
|
},
|
|
4587
4612
|
emits: ["close", "after-enter", "after-leave"],
|
|
4588
4613
|
setup(e, { emit: a }) {
|
|
4589
|
-
const t = et(), l = e, n = a, { transition: i } = Ee(l), [u] =
|
|
4614
|
+
const t = et(), l = e, n = a, { transition: i } = Ee(l), [u] = J();
|
|
4590
4615
|
let o = !1;
|
|
4591
4616
|
const s = $(null), r = (v) => {
|
|
4592
4617
|
s.value && v.target.closest(".bs-overlay") && n("close", l.modalId);
|
|
4593
4618
|
};
|
|
4594
|
-
|
|
4619
|
+
Q(() => {
|
|
4595
4620
|
document.addEventListener("click", r);
|
|
4596
4621
|
}), $e(() => {
|
|
4597
4622
|
document.removeEventListener("click", r);
|
|
4598
|
-
}),
|
|
4623
|
+
}), ve(["Escape"], () => {
|
|
4599
4624
|
o && n("close", l.modalId);
|
|
4600
4625
|
});
|
|
4601
4626
|
const m = f(() => !l.title && !t.title && l.closeButton), g = f(() => (l.title || t.title) && l.closeButton);
|
|
4602
|
-
return (v,
|
|
4603
|
-
|
|
4627
|
+
return (v, b) => (d(), h(Y, null, [
|
|
4628
|
+
E(cl, {
|
|
4604
4629
|
shown: c(i),
|
|
4605
4630
|
preloaded: e.preloaded,
|
|
4606
4631
|
"enter-controlled": e.enterControlled,
|
|
4607
4632
|
"enter-trigger": e.enterTrigger,
|
|
4608
4633
|
"leave-trigger": e.leaveTrigger
|
|
4609
4634
|
}, null, 8, ["shown", "preloaded", "enter-controlled", "enter-trigger", "leave-trigger"]),
|
|
4610
|
-
|
|
4635
|
+
E(Pe, {
|
|
4611
4636
|
name: "bs-modal",
|
|
4612
4637
|
preloaded: e.preloaded,
|
|
4613
4638
|
shown: c(i),
|
|
4614
|
-
onAfterEnter:
|
|
4615
|
-
onAfterLeave:
|
|
4616
|
-
onEnter:
|
|
4639
|
+
onAfterEnter: b[1] || (b[1] = (y) => n("after-enter")),
|
|
4640
|
+
onAfterLeave: b[2] || (b[2] = (y) => n("after-leave")),
|
|
4641
|
+
onEnter: b[3] || (b[3] = (y) => Ut(o) ? o.value = !0 : o = !0)
|
|
4617
4642
|
}, {
|
|
4618
|
-
default:
|
|
4619
|
-
B("div",
|
|
4643
|
+
default: L(() => [
|
|
4644
|
+
B("div", F({
|
|
4620
4645
|
id: e.modalId,
|
|
4621
4646
|
class: "bs-modal",
|
|
4622
4647
|
"data-component": "bs-modal",
|
|
@@ -4630,53 +4655,53 @@ const sn = {
|
|
|
4630
4655
|
"data-full-width": e.fullWidth,
|
|
4631
4656
|
"data-full-height": e.fullHeight
|
|
4632
4657
|
}), [
|
|
4633
|
-
e.title || v.$slots.title || e.closeButton ? (d(),
|
|
4658
|
+
e.title || v.$slots.title || e.closeButton ? (d(), h("header", {
|
|
4634
4659
|
key: 0,
|
|
4635
4660
|
class: oe({
|
|
4636
4661
|
"only-close-button-modal-header": m.value,
|
|
4637
4662
|
"modal-header": g.value
|
|
4638
4663
|
})
|
|
4639
4664
|
}, [
|
|
4640
|
-
|
|
4641
|
-
e.title ? (d(),
|
|
4665
|
+
O(v.$slots, "title", {}, () => [
|
|
4666
|
+
e.title ? (d(), h("span", {
|
|
4642
4667
|
key: 0,
|
|
4643
4668
|
id: c(u),
|
|
4644
4669
|
class: "modal-title"
|
|
4645
|
-
},
|
|
4670
|
+
}, T(e.title), 9, pl)) : C("", !0)
|
|
4646
4671
|
]),
|
|
4647
|
-
e.closeButton ? (d(),
|
|
4672
|
+
e.closeButton ? (d(), h("button", {
|
|
4648
4673
|
key: 0,
|
|
4649
4674
|
type: "button",
|
|
4650
4675
|
title: "Close Modal",
|
|
4651
4676
|
"aria-label": "Close Modal",
|
|
4652
4677
|
class: oe({ "full-width-header-close-button": e.fullWidth || e.fullHeight }),
|
|
4653
|
-
onClick:
|
|
4678
|
+
onClick: b[0] || (b[0] = (y) => n("close", e.modalId))
|
|
4654
4679
|
}, [
|
|
4655
|
-
|
|
4680
|
+
E(c(Ie), { class: "close-button" })
|
|
4656
4681
|
], 2)) : C("", !0)
|
|
4657
4682
|
], 2)) : C("", !0),
|
|
4658
4683
|
B("div", null, [
|
|
4659
|
-
|
|
4684
|
+
O(v.$slots, "default")
|
|
4660
4685
|
]),
|
|
4661
|
-
v.$slots.footer ? (d(),
|
|
4662
|
-
|
|
4686
|
+
v.$slots.footer ? (d(), h("footer", ml, [
|
|
4687
|
+
O(v.$slots, "footer")
|
|
4663
4688
|
])) : C("", !0)
|
|
4664
|
-
], 16,
|
|
4689
|
+
], 16, fl)
|
|
4665
4690
|
]),
|
|
4666
4691
|
_: 3
|
|
4667
4692
|
}, 8, ["preloaded", "shown"])
|
|
4668
4693
|
], 64));
|
|
4669
4694
|
}
|
|
4670
|
-
}),
|
|
4695
|
+
}), hl = ["data-variant", "data-fixed"], bl = {
|
|
4671
4696
|
key: 0,
|
|
4672
4697
|
class: "bs-pagination-carets"
|
|
4673
|
-
},
|
|
4698
|
+
}, vl = ["aria-label", "title", "disabled"], gl = { key: 0 }, yl = ["aria-label", "title", "disabled"], Sl = { key: 0 }, wl = {
|
|
4674
4699
|
key: 1,
|
|
4675
4700
|
class: "bs-pagination-page-numbers"
|
|
4676
|
-
},
|
|
4701
|
+
}, Bl = ["title", "data-selected", "onClick"], $l = { key: 2 }, Il = { key: 3 }, kl = { class: "bs-pagination-results-numbers" }, Cl = ["data-selected", "disabled", "onClick"], xl = {
|
|
4677
4702
|
key: 5,
|
|
4678
4703
|
class: "bs-pagination-carets"
|
|
4679
|
-
},
|
|
4704
|
+
}, Tl = ["aria-label", "title", "disabled"], Al = { key: 0 }, Ol = ["aria-label", "title", "disabled"], Vl = { key: 0 }, Xo = {
|
|
4680
4705
|
__name: "BsPagination",
|
|
4681
4706
|
props: {
|
|
4682
4707
|
// Used for all
|
|
@@ -4763,16 +4788,16 @@ const sn = {
|
|
|
4763
4788
|
emits: ["selchange", "update:modelValue"],
|
|
4764
4789
|
setup(e, { emit: a }) {
|
|
4765
4790
|
const t = e, l = a, n = $(null);
|
|
4766
|
-
|
|
4767
|
-
i.value ? n.value = i.value : t.variant === "results" ? n.value =
|
|
4791
|
+
Q(() => {
|
|
4792
|
+
i.value ? n.value = i.value : t.variant === "results" ? n.value = S.value[0] : n.value = 1;
|
|
4768
4793
|
});
|
|
4769
4794
|
const i = f(() => t.modelValue || t.selection);
|
|
4770
|
-
|
|
4795
|
+
G(() => t.selection, (p) => {
|
|
4771
4796
|
n.value = p;
|
|
4772
|
-
}),
|
|
4797
|
+
}), G(() => t.modelValue, (p) => {
|
|
4773
4798
|
n.value = p;
|
|
4774
|
-
}),
|
|
4775
|
-
|
|
4799
|
+
}), G(n, (p, w) => {
|
|
4800
|
+
w !== null && (l("selchange", p), l("update:modelValue", p));
|
|
4776
4801
|
});
|
|
4777
4802
|
const u = f(() => {
|
|
4778
4803
|
if (t.variant === "group")
|
|
@@ -4798,24 +4823,24 @@ const sn = {
|
|
|
4798
4823
|
const v = f(() => {
|
|
4799
4824
|
if (t.pageCount <= t.pageRange)
|
|
4800
4825
|
return [...Array(t.pageCount + 1).keys()].slice(1);
|
|
4801
|
-
const p = [1],
|
|
4802
|
-
let k = n.value -
|
|
4826
|
+
const p = [1], w = (t.pageRange - 1) / 2;
|
|
4827
|
+
let k = n.value - w, I = n.value + w;
|
|
4803
4828
|
k < 1 && (I += 1 - k, k = 1), I > t.pageCount && (k -= I - t.pageCount, I = t.pageCount), k = Math.max(k, 2), I = Math.min(I, t.pageCount - 1), k > 2 && p.push(t.breakText);
|
|
4804
4829
|
for (let q = k; q <= I; q++)
|
|
4805
4830
|
p.push(q);
|
|
4806
4831
|
return I < t.pageCount - 1 && p.push(t.breakText), p.push(t.pageCount), p;
|
|
4807
|
-
}),
|
|
4808
|
-
const p = (n.value - 1) * t.itemsPerGroup + 1,
|
|
4809
|
-
return `${t.centerLabel ?? "Results"} ${p} - ${
|
|
4810
|
-
}),
|
|
4811
|
-
return (p,
|
|
4832
|
+
}), b = f(() => `${t.centerLabel ?? "Page"} ${n.value} of ${u.value}`), y = f(() => {
|
|
4833
|
+
const p = (n.value - 1) * t.itemsPerGroup + 1, w = Math.min(p - 1 + t.itemsPerGroup, t.itemsCount);
|
|
4834
|
+
return `${t.centerLabel ?? "Results"} ${p} - ${w} of ${t.itemsCount}`;
|
|
4835
|
+
}), S = f(() => t.resultsIncrements.split(",").map((p) => parseInt(p)));
|
|
4836
|
+
return (p, w) => (d(), h("div", {
|
|
4812
4837
|
class: "bs-pagination",
|
|
4813
4838
|
"data-component": "bs-pagination",
|
|
4814
4839
|
"data-variant": o.value,
|
|
4815
4840
|
"data-fixed": t.fixed
|
|
4816
4841
|
}, [
|
|
4817
|
-
e.variant === "base" || e.variant === "group" ? (d(),
|
|
4818
|
-
e.showFirstLastButtons ? (d(),
|
|
4842
|
+
e.variant === "base" || e.variant === "group" ? (d(), h("div", bl, [
|
|
4843
|
+
e.showFirstLastButtons ? (d(), h("button", {
|
|
4819
4844
|
key: 0,
|
|
4820
4845
|
type: "button",
|
|
4821
4846
|
class: oe(e.firstPageText ? "bs-pagination-word-caret" : void 0),
|
|
@@ -4824,9 +4849,9 @@ const sn = {
|
|
|
4824
4849
|
disabled: n.value === 1,
|
|
4825
4850
|
onClick: s
|
|
4826
4851
|
}, [
|
|
4827
|
-
|
|
4828
|
-
e.firstPageText ? (d(),
|
|
4829
|
-
], 10,
|
|
4852
|
+
E(c(Zt)),
|
|
4853
|
+
e.firstPageText ? (d(), h("span", gl, T(e.firstPageText), 1)) : C("", !0)
|
|
4854
|
+
], 10, vl)) : C("", !0),
|
|
4830
4855
|
B("button", {
|
|
4831
4856
|
type: "button",
|
|
4832
4857
|
class: oe(e.prevPageText ? "bs-pagination-word-caret" : void 0),
|
|
@@ -4835,34 +4860,34 @@ const sn = {
|
|
|
4835
4860
|
disabled: n.value === 1,
|
|
4836
4861
|
onClick: r
|
|
4837
4862
|
}, [
|
|
4838
|
-
|
|
4839
|
-
e.prevPageText ? (d(),
|
|
4840
|
-
], 10,
|
|
4863
|
+
E(c(It)),
|
|
4864
|
+
e.prevPageText ? (d(), h("span", Sl, T(e.prevPageText), 1)) : C("", !0)
|
|
4865
|
+
], 10, yl)
|
|
4841
4866
|
])) : C("", !0),
|
|
4842
|
-
e.variant === "base" && e.centerDisplay === "numbers" ? (d(),
|
|
4843
|
-
(d(!0),
|
|
4867
|
+
e.variant === "base" && e.centerDisplay === "numbers" ? (d(), h("div", wl, [
|
|
4868
|
+
(d(!0), h(Y, null, ae(v.value, (k) => (d(), h("button", {
|
|
4844
4869
|
key: `page-${k}-button`,
|
|
4845
4870
|
type: "button",
|
|
4846
4871
|
title: `Page ${k}`,
|
|
4847
4872
|
"data-selected": k === n.value,
|
|
4848
4873
|
onClick: (I) => n.value = k
|
|
4849
|
-
},
|
|
4874
|
+
}, T(k), 9, Bl))), 128))
|
|
4850
4875
|
])) : C("", !0),
|
|
4851
|
-
t.variant === "base" && t.centerDisplay === "text" ? (d(),
|
|
4852
|
-
t.variant === "group" ? (d(),
|
|
4853
|
-
t.variant === "results" ? (d(),
|
|
4854
|
-
|
|
4855
|
-
B("div",
|
|
4856
|
-
(d(!0),
|
|
4876
|
+
t.variant === "base" && t.centerDisplay === "text" ? (d(), h("span", $l, T(b.value), 1)) : C("", !0),
|
|
4877
|
+
t.variant === "group" ? (d(), h("span", Il, T(y.value), 1)) : C("", !0),
|
|
4878
|
+
t.variant === "results" ? (d(), h(Y, { key: 4 }, [
|
|
4879
|
+
w[0] || (w[0] = B("span", null, "Results Per Page:", -1)),
|
|
4880
|
+
B("div", kl, [
|
|
4881
|
+
(d(!0), h(Y, null, ae(S.value, (k) => (d(), h("button", {
|
|
4857
4882
|
type: "button",
|
|
4858
4883
|
key: `results-${k}`,
|
|
4859
4884
|
"data-selected": k === n.value,
|
|
4860
4885
|
disabled: n.value === k,
|
|
4861
4886
|
onClick: (I) => n.value = k
|
|
4862
|
-
},
|
|
4887
|
+
}, T(k), 9, Cl))), 128))
|
|
4863
4888
|
])
|
|
4864
4889
|
], 64)) : C("", !0),
|
|
4865
|
-
e.variant === "base" || e.variant === "group" ? (d(),
|
|
4890
|
+
e.variant === "base" || e.variant === "group" ? (d(), h("div", xl, [
|
|
4866
4891
|
B("button", {
|
|
4867
4892
|
type: "button",
|
|
4868
4893
|
class: oe(e.nextPageText ? "bs-pagination-word-caret" : void 0),
|
|
@@ -4871,10 +4896,10 @@ const sn = {
|
|
|
4871
4896
|
disabled: n.value === u.value,
|
|
4872
4897
|
onClick: m
|
|
4873
4898
|
}, [
|
|
4874
|
-
e.nextPageText ? (d(),
|
|
4875
|
-
|
|
4876
|
-
], 10,
|
|
4877
|
-
e.showFirstLastButtons ? (d(),
|
|
4899
|
+
e.nextPageText ? (d(), h("span", Al, T(e.nextPageText), 1)) : C("", !0),
|
|
4900
|
+
E(c($t))
|
|
4901
|
+
], 10, Tl),
|
|
4902
|
+
e.showFirstLastButtons ? (d(), h("button", {
|
|
4878
4903
|
key: 0,
|
|
4879
4904
|
type: "button",
|
|
4880
4905
|
class: oe(e.lastPageText ? "bs-pagination-word-caret" : void 0),
|
|
@@ -4883,13 +4908,13 @@ const sn = {
|
|
|
4883
4908
|
disabled: n.value === u.value,
|
|
4884
4909
|
onClick: g
|
|
4885
4910
|
}, [
|
|
4886
|
-
e.lastPageText ? (d(),
|
|
4887
|
-
|
|
4888
|
-
], 10,
|
|
4911
|
+
e.lastPageText ? (d(), h("span", Vl, T(e.lastPageText), 1)) : C("", !0),
|
|
4912
|
+
E(c(Xt))
|
|
4913
|
+
], 10, Ol)) : C("", !0)
|
|
4889
4914
|
])) : C("", !0)
|
|
4890
|
-
], 8,
|
|
4915
|
+
], 8, hl));
|
|
4891
4916
|
}
|
|
4892
|
-
},
|
|
4917
|
+
}, Ll = ["data-truncate"], Qo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4893
4918
|
__name: "BsPill",
|
|
4894
4919
|
props: {
|
|
4895
4920
|
active: { type: Boolean, default: !1 },
|
|
@@ -4913,8 +4938,8 @@ const sn = {
|
|
|
4913
4938
|
}
|
|
4914
4939
|
},
|
|
4915
4940
|
setup(e) {
|
|
4916
|
-
const a = e, { onLinkClick: t } = Fe(a), l =
|
|
4917
|
-
return (o, s) => (d(),
|
|
4941
|
+
const a = e, { onLinkClick: t } = Fe(a), l = de(), { rootTag: n, attrsToBind: i, hrefUrl: u } = ze(a, l, "span");
|
|
4942
|
+
return (o, s) => (d(), A(ne(c(n)), F({
|
|
4918
4943
|
class: "bs-pill",
|
|
4919
4944
|
"data-active": e.active,
|
|
4920
4945
|
"data-component": "bs-pill",
|
|
@@ -4923,28 +4948,28 @@ const sn = {
|
|
|
4923
4948
|
disabled: e.disabled,
|
|
4924
4949
|
".href": c(u)
|
|
4925
4950
|
}, c(i), { onClick: c(t) }), {
|
|
4926
|
-
default:
|
|
4951
|
+
default: L(() => [
|
|
4927
4952
|
B("span", { "data-truncate": e.truncate }, [
|
|
4928
|
-
|
|
4929
|
-
], 8,
|
|
4953
|
+
O(o.$slots, "default")
|
|
4954
|
+
], 8, Ll)
|
|
4930
4955
|
]),
|
|
4931
4956
|
_: 3
|
|
4932
4957
|
}, 48, ["data-active", "data-status", "data-variant", "disabled", ".href", "onClick"]));
|
|
4933
4958
|
}
|
|
4934
|
-
}),
|
|
4959
|
+
}), El = {
|
|
4935
4960
|
class: "bs-profile-details",
|
|
4936
4961
|
"data-component": "bs-profile-details"
|
|
4937
|
-
},
|
|
4962
|
+
}, Dl = {
|
|
4938
4963
|
class: "bs-profile-name",
|
|
4939
4964
|
"data-size": "sm",
|
|
4940
4965
|
"data-weight": "bold"
|
|
4941
|
-
},
|
|
4966
|
+
}, Pl = {
|
|
4942
4967
|
key: 1,
|
|
4943
4968
|
"data-weight": "bold"
|
|
4944
|
-
},
|
|
4969
|
+
}, ql = { key: 2 }, Ml = { key: 3 }, Nl = {
|
|
4945
4970
|
key: 4,
|
|
4946
4971
|
"data-icon": "true"
|
|
4947
|
-
},
|
|
4972
|
+
}, zl = {
|
|
4948
4973
|
__name: "BsProfileDetails",
|
|
4949
4974
|
props: {
|
|
4950
4975
|
profileName: {
|
|
@@ -4965,36 +4990,36 @@ const sn = {
|
|
|
4965
4990
|
function u(o) {
|
|
4966
4991
|
o.target.tagName === "BUTTON" && (o.preventDefault(), o.stopImmediatePropagation(), l("action-toggled"));
|
|
4967
4992
|
}
|
|
4968
|
-
return (o, s) => (d(),
|
|
4969
|
-
e.action || o.$slots.action ? (d(),
|
|
4993
|
+
return (o, s) => (d(), h("div", El, [
|
|
4994
|
+
e.action || o.$slots.action ? (d(), h("button", {
|
|
4970
4995
|
key: 0,
|
|
4971
4996
|
"data-icon": "true",
|
|
4972
4997
|
onClick: u
|
|
4973
4998
|
}, [
|
|
4974
|
-
|
|
4975
|
-
e.actionIcon ? (d(),
|
|
4999
|
+
O(o.$slots, "action", {}, () => [
|
|
5000
|
+
e.actionIcon ? (d(), A(ne(c(n) ? c(n) : "span"), {
|
|
4976
5001
|
key: 0,
|
|
4977
5002
|
class: "bs-icon"
|
|
4978
5003
|
})) : C("", !0),
|
|
4979
|
-
|
|
5004
|
+
U(" " + T(e.action), 1)
|
|
4980
5005
|
])
|
|
4981
5006
|
])) : C("", !0),
|
|
4982
|
-
B("span",
|
|
4983
|
-
e.company ? (d(),
|
|
4984
|
-
e.jobTitle ? (d(),
|
|
4985
|
-
e.email ? (d(),
|
|
4986
|
-
e.miscMeta || o.$slots.misc ? (d(),
|
|
4987
|
-
|
|
4988
|
-
e.miscMetaIcon ? (d(),
|
|
5007
|
+
B("span", Dl, T(e.profileName), 1),
|
|
5008
|
+
e.company ? (d(), h("span", Pl, T(e.company), 1)) : C("", !0),
|
|
5009
|
+
e.jobTitle ? (d(), h("span", ql, T(e.jobTitle), 1)) : C("", !0),
|
|
5010
|
+
e.email ? (d(), h("span", Ml, T(e.email), 1)) : C("", !0),
|
|
5011
|
+
e.miscMeta || o.$slots.misc ? (d(), h("span", Nl, [
|
|
5012
|
+
O(o.$slots, "misc", {}, () => [
|
|
5013
|
+
e.miscMetaIcon ? (d(), A(ne(c(i) ? c(i) : "span"), {
|
|
4989
5014
|
key: 0,
|
|
4990
5015
|
class: "bs-icon"
|
|
4991
5016
|
})) : C("", !0),
|
|
4992
|
-
|
|
5017
|
+
U(" " + T(e.miscMeta), 1)
|
|
4993
5018
|
])
|
|
4994
5019
|
])) : C("", !0)
|
|
4995
5020
|
]));
|
|
4996
5021
|
}
|
|
4997
|
-
},
|
|
5022
|
+
}, Jo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4998
5023
|
__name: "BsProfile",
|
|
4999
5024
|
props: {
|
|
5000
5025
|
layout: {
|
|
@@ -5024,22 +5049,22 @@ const sn = {
|
|
|
5024
5049
|
},
|
|
5025
5050
|
emits: ["action-toggled"],
|
|
5026
5051
|
setup(e, { emit: a }) {
|
|
5027
|
-
const t = e, l = a, n =
|
|
5028
|
-
return (r, m) => (d(),
|
|
5052
|
+
const t = e, l = a, n = de(), { onLinkClick: i } = Fe(t), { rootTag: u, attrsToBind: o, hrefUrl: s } = ze(t, n, "div");
|
|
5053
|
+
return (r, m) => (d(), A(ne(c(u)), F({
|
|
5029
5054
|
class: "bs-profile",
|
|
5030
5055
|
".href": c(s),
|
|
5031
5056
|
"data-component": "bs-profile",
|
|
5032
5057
|
"data-layout": e.layout
|
|
5033
5058
|
}, c(o), { onClick: c(i) }), {
|
|
5034
|
-
default:
|
|
5035
|
-
|
|
5059
|
+
default: L(() => [
|
|
5060
|
+
E(Ot, {
|
|
5036
5061
|
src: e.imageSrc,
|
|
5037
5062
|
size: e.imageSize,
|
|
5038
5063
|
initials: e.initials,
|
|
5039
5064
|
"profile-name": e.profileName,
|
|
5040
5065
|
"use-alt-text": !1
|
|
5041
5066
|
}, null, 8, ["src", "size", "initials", "profile-name"]),
|
|
5042
|
-
|
|
5067
|
+
E(zl, {
|
|
5043
5068
|
"profile-name": e.profileName,
|
|
5044
5069
|
company: e.company,
|
|
5045
5070
|
"job-title": e.jobTitle,
|
|
@@ -5050,11 +5075,11 @@ const sn = {
|
|
|
5050
5075
|
"misc-meta-icon": e.miscMetaIcon,
|
|
5051
5076
|
onActionToggled: m[0] || (m[0] = (g) => l("action-toggled"))
|
|
5052
5077
|
}, {
|
|
5053
|
-
action:
|
|
5054
|
-
|
|
5078
|
+
action: L(() => [
|
|
5079
|
+
O(r.$slots, "action")
|
|
5055
5080
|
]),
|
|
5056
|
-
misc:
|
|
5057
|
-
|
|
5081
|
+
misc: L(() => [
|
|
5082
|
+
O(r.$slots, "misc")
|
|
5058
5083
|
]),
|
|
5059
5084
|
_: 3
|
|
5060
5085
|
}, 8, ["profile-name", "company", "job-title", "email", "action", "action-icon", "misc-meta", "misc-meta-icon"])
|
|
@@ -5088,7 +5113,7 @@ function qt(e) {
|
|
|
5088
5113
|
getStatus: l
|
|
5089
5114
|
};
|
|
5090
5115
|
}
|
|
5091
|
-
const
|
|
5116
|
+
const Fl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Rl = ["data-status"], _o = {
|
|
5092
5117
|
__name: "BsProgressBar",
|
|
5093
5118
|
props: {
|
|
5094
5119
|
/** @type {Status} */
|
|
@@ -5117,7 +5142,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5117
5142
|
},
|
|
5118
5143
|
setup(e) {
|
|
5119
5144
|
const a = e, { progressStep: t, progressText: l, getStatus: n } = qt(a);
|
|
5120
|
-
return (i, u) => (d(),
|
|
5145
|
+
return (i, u) => (d(), h("div", {
|
|
5121
5146
|
"aria-valuemax": e.steps.length,
|
|
5122
5147
|
"aria-valuenow": c(t),
|
|
5123
5148
|
"aria-valuetext": c(l),
|
|
@@ -5125,18 +5150,18 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5125
5150
|
"data-component": "bs-progress-bar",
|
|
5126
5151
|
role: "progressbar"
|
|
5127
5152
|
}, [
|
|
5128
|
-
(d(!0),
|
|
5153
|
+
(d(!0), h(Y, null, ae(e.steps, (o, s) => (d(), h("div", {
|
|
5129
5154
|
class: "bs-step-item",
|
|
5130
5155
|
"data-status": c(n)(o.status, s),
|
|
5131
5156
|
"data-variant": "progress",
|
|
5132
5157
|
key: o.id || o.label,
|
|
5133
5158
|
role: "status"
|
|
5134
5159
|
}, [
|
|
5135
|
-
B("span", null,
|
|
5136
|
-
], 8,
|
|
5137
|
-
], 8,
|
|
5160
|
+
B("span", null, T(o.label || o) + " : " + T(c(n)(o.status, s) || "not started"), 1)
|
|
5161
|
+
], 8, Rl))), 128))
|
|
5162
|
+
], 8, Fl));
|
|
5138
5163
|
}
|
|
5139
|
-
},
|
|
5164
|
+
}, Wl = ["data-disabled", "data-error", "data-size"], jl = ["checked", "disabled", "id", "required", "value", "data-error"], ei = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5140
5165
|
__name: "BsRadio",
|
|
5141
5166
|
props: {
|
|
5142
5167
|
label: {
|
|
@@ -5180,15 +5205,15 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5180
5205
|
},
|
|
5181
5206
|
emits: ["update:modelValue"],
|
|
5182
5207
|
setup(e, { emit: a }) {
|
|
5183
|
-
const t = e, [l] =
|
|
5184
|
-
return (o, s) => (d(),
|
|
5208
|
+
const t = e, [l] = J(), n = f(() => tt.concat(t.passAttrs.split(","))), i = f(() => t.inputId || l.value), u = f(() => t.checked || t.modelValue && t.modelValue === t.value);
|
|
5209
|
+
return (o, s) => (d(), h("div", F({
|
|
5185
5210
|
class: "bs-boolean",
|
|
5186
5211
|
"data-component": "bs-radio",
|
|
5187
5212
|
"data-disabled": e.disabled,
|
|
5188
5213
|
"data-error": e.error,
|
|
5189
5214
|
"data-size": e.size
|
|
5190
|
-
}, c(
|
|
5191
|
-
B("input",
|
|
5215
|
+
}, c(X)(o.$attrs, n.value).remaining), [
|
|
5216
|
+
B("input", F({
|
|
5192
5217
|
checked: u.value,
|
|
5193
5218
|
disabled: e.disabled,
|
|
5194
5219
|
id: o.$attrs.id || i.value,
|
|
@@ -5196,25 +5221,25 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5196
5221
|
type: "radio",
|
|
5197
5222
|
value: e.value,
|
|
5198
5223
|
"data-error": e.error
|
|
5199
|
-
}, c(
|
|
5224
|
+
}, c(X)(o.$attrs, n.value).filtered, {
|
|
5200
5225
|
onChange: s[0] || (s[0] = (r) => o.$emit("update:modelValue", r.target.value))
|
|
5201
|
-
}), null, 16,
|
|
5202
|
-
e.label || o.$slots.label ? (d(),
|
|
5226
|
+
}), null, 16, jl),
|
|
5227
|
+
e.label || o.$slots.label ? (d(), A(le, {
|
|
5203
5228
|
key: 0,
|
|
5204
5229
|
for: o.$attrs.id || i.value,
|
|
5205
5230
|
disabled: e.disabled,
|
|
5206
5231
|
required: e.required
|
|
5207
5232
|
}, {
|
|
5208
|
-
default:
|
|
5209
|
-
|
|
5210
|
-
|
|
5233
|
+
default: L(() => [
|
|
5234
|
+
O(o.$slots, "label", {}, () => [
|
|
5235
|
+
U(T(e.label), 1)
|
|
5211
5236
|
])
|
|
5212
5237
|
]),
|
|
5213
5238
|
_: 3
|
|
5214
5239
|
}, 8, ["for", "disabled", "required"])) : C("", !0)
|
|
5215
|
-
], 16,
|
|
5240
|
+
], 16, Wl));
|
|
5216
5241
|
}
|
|
5217
|
-
}),
|
|
5242
|
+
}), Ul = ["id", "disabled", "required", "data-error", "value"], Hl = {
|
|
5218
5243
|
__name: "BsSelect",
|
|
5219
5244
|
props: {
|
|
5220
5245
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -5228,7 +5253,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5228
5253
|
emits: ["update:modelValue"],
|
|
5229
5254
|
setup(e, { emit: a }) {
|
|
5230
5255
|
const t = e, l = f(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
5231
|
-
return (n, i) => (d(),
|
|
5256
|
+
return (n, i) => (d(), h("select", F({
|
|
5232
5257
|
id: n.$attrs.id || e.inputId,
|
|
5233
5258
|
class: "bs-select",
|
|
5234
5259
|
"data-component": "bs-select",
|
|
@@ -5239,10 +5264,10 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5239
5264
|
}, l.value, {
|
|
5240
5265
|
onChange: i[0] || (i[0] = (u) => n.$emit("update:modelValue", u.target.value))
|
|
5241
5266
|
}), [
|
|
5242
|
-
|
|
5243
|
-
], 16,
|
|
5267
|
+
O(n.$slots, "default")
|
|
5268
|
+
], 16, Ul));
|
|
5244
5269
|
}
|
|
5245
|
-
}, Gl = ["selected", "disabled"],
|
|
5270
|
+
}, Gl = ["selected", "disabled"], Kl = ["disabled", "selected", "value"], ti = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5246
5271
|
__name: "BsSelectField",
|
|
5247
5272
|
props: {
|
|
5248
5273
|
data: {
|
|
@@ -5286,26 +5311,26 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5286
5311
|
modelValue: [String, Number]
|
|
5287
5312
|
},
|
|
5288
5313
|
setup(e) {
|
|
5289
|
-
const a = e, [t, l] =
|
|
5314
|
+
const a = e, [t, l] = J(2), n = f(() => Ra.concat(a.passAttrs.split(","))), i = f(() => {
|
|
5290
5315
|
var r, m;
|
|
5291
5316
|
return ((m = (r = a.hints) == null ? void 0 : r.join) == null ? void 0 : m.call(r, `
|
|
5292
5317
|
`)) || a.hints;
|
|
5293
5318
|
}), u = f(() => a.error && a.errorMsg || a.hint || i.value || void 0), o = f(() => a.inputId || t.value), s = f(() => a.value || a.modelValue);
|
|
5294
|
-
return (r, m) => (d(),
|
|
5295
|
-
e.label || r.$slots.label ? (d(),
|
|
5319
|
+
return (r, m) => (d(), h("div", F({ "data-component": "bs-select-field" }, c(X)(r.$attrs, n.value).remaining), [
|
|
5320
|
+
e.label || r.$slots.label ? (d(), A(le, {
|
|
5296
5321
|
key: 0,
|
|
5297
5322
|
for: r.$attrs.id || o.value,
|
|
5298
5323
|
disabled: e.disabled,
|
|
5299
5324
|
required: e.required
|
|
5300
5325
|
}, {
|
|
5301
|
-
default:
|
|
5302
|
-
|
|
5303
|
-
|
|
5326
|
+
default: L(() => [
|
|
5327
|
+
O(r.$slots, "label", {}, () => [
|
|
5328
|
+
U(T(e.label), 1)
|
|
5304
5329
|
])
|
|
5305
5330
|
]),
|
|
5306
5331
|
_: 3
|
|
5307
5332
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
5308
|
-
|
|
5333
|
+
E(Hl, F({
|
|
5309
5334
|
disabled: e.disabled,
|
|
5310
5335
|
error: e.error,
|
|
5311
5336
|
"hint-id": c(l),
|
|
@@ -5313,23 +5338,23 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5313
5338
|
required: e.required,
|
|
5314
5339
|
value: s.value,
|
|
5315
5340
|
"onUpdate:modelValue": m[0] || (m[0] = (g) => r.$emit("update:modelValue", g))
|
|
5316
|
-
}, c(
|
|
5317
|
-
default:
|
|
5341
|
+
}, c(X)(r.$attrs, n.value).filtered), {
|
|
5342
|
+
default: L(() => [
|
|
5318
5343
|
B("option", {
|
|
5319
5344
|
selected: !s.value,
|
|
5320
5345
|
value: "",
|
|
5321
5346
|
disabled: !!s.value
|
|
5322
|
-
},
|
|
5323
|
-
(d(!0),
|
|
5347
|
+
}, T(e.disabled ? "" : e.placeholder), 9, Gl),
|
|
5348
|
+
(d(!0), h(Y, null, ae(e.data, (g) => (d(), h("option", {
|
|
5324
5349
|
key: g.value,
|
|
5325
5350
|
disabled: g.disabled,
|
|
5326
5351
|
selected: s.value === g.value,
|
|
5327
5352
|
value: g.value
|
|
5328
|
-
},
|
|
5353
|
+
}, T(g.label), 9, Kl))), 128))
|
|
5329
5354
|
]),
|
|
5330
5355
|
_: 1
|
|
5331
5356
|
}, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
|
|
5332
|
-
u.value ? (d(),
|
|
5357
|
+
u.value ? (d(), A(ye, {
|
|
5333
5358
|
key: 1,
|
|
5334
5359
|
"data-disabled": e.disabled,
|
|
5335
5360
|
error: e.error,
|
|
@@ -5339,7 +5364,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5339
5364
|
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : C("", !0)
|
|
5340
5365
|
], 16));
|
|
5341
5366
|
}
|
|
5342
|
-
}),
|
|
5367
|
+
}), Yl = ["id", "name", "value"], Zl = ["aria-controls", "aria-describedby", "aria-expanded", "aria-invalid", "aria-label", "data-cy", "data-disabled", "data-error", "data-open", "data-placeholder", "data-required", "disabled", "id"], ai = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5343
5368
|
__name: "BsSelectWithDropdown",
|
|
5344
5369
|
props: {
|
|
5345
5370
|
breakout: {
|
|
@@ -5415,35 +5440,35 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5415
5440
|
},
|
|
5416
5441
|
emits: ["update:model-value"],
|
|
5417
5442
|
setup(e, { emit: a }) {
|
|
5418
|
-
const t = e, l = a, [n, i] =
|
|
5443
|
+
const t = e, l = a, [n, i] = J(2), u = de(), o = $(!1), s = f(() => t.selectId || u.id || n.value), r = f(() => t.optionsId || i.value), m = f(() => {
|
|
5419
5444
|
if (t.modelValue) {
|
|
5420
|
-
const v = t.options.find((
|
|
5445
|
+
const v = t.options.find((b) => b.value === t.modelValue);
|
|
5421
5446
|
return v ? v.label : t.placeholder;
|
|
5422
5447
|
}
|
|
5423
5448
|
return t.placeholder;
|
|
5424
5449
|
}), g = f(() => m.value === t.placeholder);
|
|
5425
|
-
return (v,
|
|
5426
|
-
e.label || v.$slots.label ? (d(),
|
|
5450
|
+
return (v, b) => (d(), h("div", null, [
|
|
5451
|
+
e.label || v.$slots.label ? (d(), A(le, {
|
|
5427
5452
|
key: 0,
|
|
5428
5453
|
disabled: e.disabled,
|
|
5429
5454
|
for: s.value,
|
|
5430
5455
|
required: e.required
|
|
5431
5456
|
}, {
|
|
5432
|
-
default:
|
|
5433
|
-
|
|
5434
|
-
|
|
5457
|
+
default: L(() => [
|
|
5458
|
+
O(v.$slots, "label", {}, () => [
|
|
5459
|
+
U(T(e.label), 1)
|
|
5435
5460
|
])
|
|
5436
5461
|
]),
|
|
5437
5462
|
_: 3
|
|
5438
5463
|
}, 8, ["disabled", "for", "required"])) : C("", !0),
|
|
5439
|
-
e.inputName || e.inputId ? (d(),
|
|
5464
|
+
e.inputName || e.inputId ? (d(), h("input", {
|
|
5440
5465
|
key: 1,
|
|
5441
5466
|
id: e.inputId,
|
|
5442
5467
|
name: e.inputName,
|
|
5443
5468
|
type: "hidden",
|
|
5444
5469
|
value: e.modelValue
|
|
5445
|
-
}, null, 8,
|
|
5446
|
-
|
|
5470
|
+
}, null, 8, Yl)) : C("", !0),
|
|
5471
|
+
E(Lt, {
|
|
5447
5472
|
"anchor-id": s.value,
|
|
5448
5473
|
breakout: e.breakout,
|
|
5449
5474
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -5456,11 +5481,11 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5456
5481
|
options: e.options,
|
|
5457
5482
|
"selected-option": e.modelValue,
|
|
5458
5483
|
"toggle-id": s.value,
|
|
5459
|
-
onClose:
|
|
5460
|
-
"onUpdate:selectedOption":
|
|
5484
|
+
onClose: b[1] || (b[1] = (y) => o.value = !1),
|
|
5485
|
+
"onUpdate:selectedOption": b[2] || (b[2] = (y) => l("update:model-value", y))
|
|
5461
5486
|
}, {
|
|
5462
|
-
toggle:
|
|
5463
|
-
B("button",
|
|
5487
|
+
toggle: L(() => [
|
|
5488
|
+
B("button", F({
|
|
5464
5489
|
"aria-controls": r.value,
|
|
5465
5490
|
"aria-describedby": e.hintId,
|
|
5466
5491
|
"aria-expanded": o.value,
|
|
@@ -5478,20 +5503,20 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5478
5503
|
id: s.value,
|
|
5479
5504
|
role: "combobox"
|
|
5480
5505
|
}, v.$attrs, {
|
|
5481
|
-
onClick:
|
|
5506
|
+
onClick: b[0] || (b[0] = wt((y) => o.value = !o.value, ["prevent"]))
|
|
5482
5507
|
}), [
|
|
5483
|
-
B("span", null,
|
|
5484
|
-
e.disabled ? C("", !0) : (d(),
|
|
5508
|
+
B("span", null, T(m.value), 1),
|
|
5509
|
+
e.disabled ? C("", !0) : (d(), A(c(Me), {
|
|
5485
5510
|
key: 0,
|
|
5486
5511
|
size: "md"
|
|
5487
5512
|
}))
|
|
5488
|
-
], 16,
|
|
5513
|
+
], 16, Zl)
|
|
5489
5514
|
]),
|
|
5490
5515
|
_: 1
|
|
5491
5516
|
}, 8, ["anchor-id", "breakout", "dropdown-position", "dropdown-width", "helper-description", "helper-text", "open", "options-id", "options", "selected-option", "toggle-id"])
|
|
5492
5517
|
]));
|
|
5493
5518
|
}
|
|
5494
|
-
}),
|
|
5519
|
+
}), Xl = ["data-disabled", "data-size"], Ql = ["data-disabled", "data-pending", "data-size"], Jl = ["checked", "disabled", "id"], _l = ["data-inner-on-label", "data-inner-off-label"], ni = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5495
5520
|
__name: "BsSwitch",
|
|
5496
5521
|
props: {
|
|
5497
5522
|
checked: {
|
|
@@ -5537,22 +5562,22 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5537
5562
|
},
|
|
5538
5563
|
emits: ["update:modelValue"],
|
|
5539
5564
|
setup(e, { emit: a }) {
|
|
5540
|
-
const t = e, l = a, [n] =
|
|
5541
|
-
return (s, r) => (d(),
|
|
5565
|
+
const t = e, l = a, [n] = J(), i = f(() => tt.concat(t.passAttrs.split(","))), u = f(() => t.inputId || n.value), o = f(() => t.checked || t.modelValue);
|
|
5566
|
+
return (s, r) => (d(), h("div", F({
|
|
5542
5567
|
class: "bs-boolean",
|
|
5543
5568
|
"data-component": "bs-switch",
|
|
5544
5569
|
"data-disabled": e.disabled,
|
|
5545
5570
|
"data-size": e.size
|
|
5546
|
-
}, c(
|
|
5547
|
-
e.label || s.$slots.label ? (d(),
|
|
5571
|
+
}, c(X)(s.$attrs, i.value).remaining), [
|
|
5572
|
+
e.label || s.$slots.label ? (d(), A(le, {
|
|
5548
5573
|
key: 0,
|
|
5549
5574
|
for: s.$attrs.id || u.value,
|
|
5550
5575
|
disabled: e.disabled,
|
|
5551
5576
|
hide: e.hideLabel
|
|
5552
5577
|
}, {
|
|
5553
|
-
default:
|
|
5554
|
-
|
|
5555
|
-
|
|
5578
|
+
default: L(() => [
|
|
5579
|
+
O(s.$slots, "label", {}, () => [
|
|
5580
|
+
U(T(e.label), 1)
|
|
5556
5581
|
])
|
|
5557
5582
|
]),
|
|
5558
5583
|
_: 3
|
|
@@ -5563,23 +5588,23 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5563
5588
|
"data-pending": e.pending,
|
|
5564
5589
|
"data-size": e.size
|
|
5565
5590
|
}, [
|
|
5566
|
-
B("input",
|
|
5591
|
+
B("input", F({
|
|
5567
5592
|
checked: o.value,
|
|
5568
5593
|
disabled: e.disabled,
|
|
5569
5594
|
id: s.$attrs.id || u.value,
|
|
5570
5595
|
type: "checkbox"
|
|
5571
|
-
}, c(
|
|
5596
|
+
}, c(X)(s.$attrs, i.value).filtered, {
|
|
5572
5597
|
onChange: r[0] || (r[0] = (m) => l("update:modelValue", m.target.checked))
|
|
5573
|
-
}), null, 16,
|
|
5598
|
+
}), null, 16, Jl),
|
|
5574
5599
|
B("span", {
|
|
5575
5600
|
"aria-hidden": "true",
|
|
5576
5601
|
"data-inner-on-label": e.innerOnLabel,
|
|
5577
5602
|
"data-inner-off-label": e.innerOffLabel
|
|
5578
|
-
}, null, 8,
|
|
5579
|
-
], 8,
|
|
5580
|
-
], 16,
|
|
5603
|
+
}, null, 8, _l)
|
|
5604
|
+
], 8, Ql)
|
|
5605
|
+
], 16, Xl));
|
|
5581
5606
|
}
|
|
5582
|
-
}),
|
|
5607
|
+
}), eo = ["aria-controls", "aria-selected", "data-hidden"], li = {
|
|
5583
5608
|
__name: "BsTab",
|
|
5584
5609
|
props: {
|
|
5585
5610
|
activeTabId: {
|
|
@@ -5596,7 +5621,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5596
5621
|
},
|
|
5597
5622
|
emits: ["tabClick"],
|
|
5598
5623
|
setup(e, { emit: a }) {
|
|
5599
|
-
const t = e, l =
|
|
5624
|
+
const t = e, l = de(), n = $(), i = f(() => t.activeTabId === l.id), u = f(() => t.panelId || `${l.id}-panel`);
|
|
5600
5625
|
function o(r) {
|
|
5601
5626
|
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), s());
|
|
5602
5627
|
}
|
|
@@ -5606,7 +5631,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5606
5631
|
n.value.dispatchEvent(r);
|
|
5607
5632
|
}
|
|
5608
5633
|
}
|
|
5609
|
-
return (r, m) => (d(),
|
|
5634
|
+
return (r, m) => (d(), h("div", {
|
|
5610
5635
|
"aria-controls": u.value,
|
|
5611
5636
|
"aria-selected": i.value ? "true" : "false",
|
|
5612
5637
|
"data-hidden": e.hidden || void 0,
|
|
@@ -5618,10 +5643,10 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5618
5643
|
onClick: s,
|
|
5619
5644
|
onKeydown: o
|
|
5620
5645
|
}, [
|
|
5621
|
-
|
|
5622
|
-
], 40,
|
|
5646
|
+
O(r.$slots, "default")
|
|
5647
|
+
], 40, eo));
|
|
5623
5648
|
}
|
|
5624
|
-
},
|
|
5649
|
+
}, to = ["id", "data-resizing"], ao = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], no = 73, lo = 20, Ue = 16, oi = {
|
|
5625
5650
|
__name: "BsTabList",
|
|
5626
5651
|
props: {
|
|
5627
5652
|
activeTabId: { type: String, required: !0 },
|
|
@@ -5632,28 +5657,28 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5632
5657
|
},
|
|
5633
5658
|
emits: ["tabChange", "update:modelValue"],
|
|
5634
5659
|
setup(e, { emit: a }) {
|
|
5635
|
-
const t = e, l = a, n = $(!1), i = $(!1), u = $([]), o = $(!1), s = $(!1), r = $(), m = $([]), g = $(!1), v = $([]),
|
|
5660
|
+
const t = e, l = a, n = $(!1), i = $(!1), u = $([]), o = $(!1), s = $(!1), r = $(), m = $([]), g = $(!1), v = $([]), b = $(), y = $([]), S = $(), p = $(), [w, k] = J(2);
|
|
5636
5661
|
let I;
|
|
5637
|
-
const q = f(() => t.activeTabId ? v.value.findIndex((x) => x.id === t.activeTabId) : 0),
|
|
5662
|
+
const q = f(() => t.activeTabId ? v.value.findIndex((x) => x.id === t.activeTabId) : 0), z = f(() => u.value.some((x) => x.id === t.activeTabId)), R = f(() => `${k.value}-options`), D = f(() => `${k.value}-toggle`), W = f(() => {
|
|
5638
5663
|
var x;
|
|
5639
|
-
return
|
|
5640
|
-
}),
|
|
5664
|
+
return z.value ? (x = v.value[q.value]) == null ? void 0 : x.textContent : "More";
|
|
5665
|
+
}), P = f(() => z.value ? m.value[q.value] - m.value[q.value - 1] + lo + Ue : no + Ue);
|
|
5641
5666
|
function H() {
|
|
5642
|
-
var
|
|
5643
|
-
let x = !1, N,
|
|
5644
|
-
if ((
|
|
5645
|
-
for (let
|
|
5646
|
-
if (N = v.value[
|
|
5647
|
-
N.dataset.hidden = "true",
|
|
5667
|
+
var fe;
|
|
5668
|
+
let x = !1, N, K = 0, ee = !1, re = [];
|
|
5669
|
+
if ((fe = v.value) != null && fe.length) {
|
|
5670
|
+
for (let se = 0; se < v.value.length; se++) {
|
|
5671
|
+
if (N = v.value[se], N.setAttribute("tabindex", "-1"), ee && se !== q.value) {
|
|
5672
|
+
N.dataset.hidden = "true", re.push(N);
|
|
5648
5673
|
continue;
|
|
5649
5674
|
}
|
|
5650
|
-
if (
|
|
5651
|
-
N.dataset.hidden = "true",
|
|
5675
|
+
if (K = se < v.value.length - 1 ? p.value - P.value : p.value, m.value[se] > K) {
|
|
5676
|
+
N.dataset.hidden = "true", re.push(N), x = !0, ee = !0;
|
|
5652
5677
|
continue;
|
|
5653
5678
|
}
|
|
5654
5679
|
N.dataset.hidden = "false", N.setAttribute("tabindex", "0");
|
|
5655
5680
|
}
|
|
5656
|
-
s.value = x, u.value =
|
|
5681
|
+
s.value = x, u.value = re, n.value || Ae(() => n.value = !0), I = setTimeout(() => {
|
|
5657
5682
|
r.value && (Rt(), Te(), g.value = !0);
|
|
5658
5683
|
}, g.value ? 25 : 1e3);
|
|
5659
5684
|
}
|
|
@@ -5661,156 +5686,156 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5661
5686
|
function te() {
|
|
5662
5687
|
clearTimeout(I);
|
|
5663
5688
|
}
|
|
5664
|
-
function
|
|
5689
|
+
function ue() {
|
|
5665
5690
|
te(), Mt();
|
|
5666
5691
|
}
|
|
5667
|
-
function
|
|
5692
|
+
function ie(x) {
|
|
5668
5693
|
l("tabChange", x), l("update:modelValue", x);
|
|
5669
5694
|
}
|
|
5670
5695
|
function Ce(x) {
|
|
5671
|
-
var ee,
|
|
5672
|
-
const N = (
|
|
5696
|
+
var ee, re, fe;
|
|
5697
|
+
const N = (fe = (re = (ee = v.value[x]) == null ? void 0 : ee.getBoundingClientRect) == null ? void 0 : re.call(ee)) == null ? void 0 : fe.width;
|
|
5673
5698
|
return N || (x === 0 ? m.value[0] : m.value[x] - m.value[x - 1]) || 0;
|
|
5674
5699
|
}
|
|
5675
|
-
function
|
|
5700
|
+
function ce() {
|
|
5676
5701
|
var x;
|
|
5677
5702
|
(x = v.value[q.value]) == null || x.setAttribute("aria-selected", "true"), H();
|
|
5678
5703
|
}
|
|
5679
5704
|
function xe() {
|
|
5680
5705
|
var x;
|
|
5681
|
-
(x =
|
|
5706
|
+
(x = b.value) == null || x.focus(), o.value = !1;
|
|
5682
5707
|
}
|
|
5683
5708
|
function we() {
|
|
5684
5709
|
o.value = !o.value, i.value || (i.value = !0);
|
|
5685
5710
|
}
|
|
5686
|
-
function
|
|
5711
|
+
function V(x) {
|
|
5687
5712
|
var N;
|
|
5688
|
-
o.value = !1, (N =
|
|
5713
|
+
o.value = !1, (N = b.value) == null || N.focus(), ie(x);
|
|
5689
5714
|
}
|
|
5690
|
-
function
|
|
5715
|
+
function j(x) {
|
|
5691
5716
|
if (t.withBsTabs) return;
|
|
5692
5717
|
const N = x.target.closest('[role="tab"]');
|
|
5693
5718
|
if (!N || N.getAttribute("aria-selected") === "true") return;
|
|
5694
|
-
const
|
|
5695
|
-
|
|
5719
|
+
const K = N.getAttribute("id");
|
|
5720
|
+
ie(K);
|
|
5696
5721
|
}
|
|
5697
5722
|
function M(x) {
|
|
5698
5723
|
if (x.key === "ArrowLeft" || x.key === "ArrowRight") {
|
|
5699
|
-
const N = y.value.findIndex((
|
|
5724
|
+
const N = y.value.findIndex((K) => K.id === x.target.id);
|
|
5700
5725
|
if (N === -1) return;
|
|
5701
|
-
x.preventDefault(), x.stopPropagation(), x.key === "ArrowLeft" ?
|
|
5726
|
+
x.preventDefault(), x.stopPropagation(), x.key === "ArrowLeft" ? _(N) : Z(N);
|
|
5702
5727
|
}
|
|
5703
5728
|
}
|
|
5704
|
-
function
|
|
5705
|
-
var
|
|
5729
|
+
function Z(x) {
|
|
5730
|
+
var K;
|
|
5706
5731
|
const N = (x + 1) % y.value.length;
|
|
5707
|
-
(
|
|
5732
|
+
(K = y.value[N]) == null || K.focus();
|
|
5708
5733
|
}
|
|
5709
|
-
function
|
|
5710
|
-
var
|
|
5734
|
+
function _(x) {
|
|
5735
|
+
var K;
|
|
5711
5736
|
const N = x === 0 ? y.value.length - 1 : x - 1;
|
|
5712
|
-
(
|
|
5737
|
+
(K = y.value[N]) == null || K.focus();
|
|
5713
5738
|
}
|
|
5714
5739
|
function Te() {
|
|
5715
|
-
var
|
|
5740
|
+
var fe, se, rt, st;
|
|
5716
5741
|
const x = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0, N = p.value;
|
|
5717
|
-
let
|
|
5718
|
-
s.value &&
|
|
5742
|
+
let K = 300, ee = ((se = (fe = y.value) == null ? void 0 : fe[q.value]) == null ? void 0 : se.offsetLeft) || 0, re = Ce(q.value);
|
|
5743
|
+
s.value && z.value && (ee = (rt = b.value) == null ? void 0 : rt.offsetLeft, re = (st = b.value) == null ? void 0 : st.offsetWidth), K = Math.max(Math.abs((ee - x) / N * 300), 100), r.value.style.setProperty("--active-line-max-width", `${N}px`), r.value.style.setProperty("--active-line-scale", `${re / N}`), r.value.style.setProperty("--active-line-offset", `${ee}px`), r.value.style.setProperty("--active-line-transition-duration", `${K}ms`);
|
|
5719
5744
|
}
|
|
5720
5745
|
function Mt() {
|
|
5721
5746
|
var x, N;
|
|
5722
|
-
(N = (x =
|
|
5747
|
+
(N = (x = S.value) == null ? void 0 : x.disconnect) == null || N.call(x), S.value = null;
|
|
5723
5748
|
}
|
|
5724
5749
|
function Nt() {
|
|
5725
5750
|
const x = Ve(() => {
|
|
5726
5751
|
p.value = r.value.clientWidth, H();
|
|
5727
5752
|
}, 25);
|
|
5728
|
-
|
|
5753
|
+
S.value = new ResizeObserver(x), S.value.observe(document.body), r.value && S.value.observe(r.value);
|
|
5729
5754
|
}
|
|
5730
5755
|
function zt() {
|
|
5731
5756
|
v.value = Array.from(r.value.children).filter((x) => x.role === "tab");
|
|
5732
5757
|
}
|
|
5733
5758
|
function Ft() {
|
|
5734
5759
|
let x;
|
|
5735
|
-
v.value.forEach((N,
|
|
5736
|
-
x = N.getBoundingClientRect().width + Ue, m.value.push(
|
|
5760
|
+
v.value.forEach((N, K) => {
|
|
5761
|
+
x = N.getBoundingClientRect().width + Ue, m.value.push(K ? x + m.value[K - 1] : x);
|
|
5737
5762
|
});
|
|
5738
5763
|
}
|
|
5739
5764
|
function Rt() {
|
|
5740
|
-
var N,
|
|
5765
|
+
var N, K;
|
|
5741
5766
|
let x = [];
|
|
5742
5767
|
if (typeof window > "u") return x;
|
|
5743
5768
|
for (let ee of v.value) {
|
|
5744
|
-
if (((N = ee.dataset) == null ? void 0 : N.hidden) === "true" || ((
|
|
5769
|
+
if (((N = ee.dataset) == null ? void 0 : N.hidden) === "true" || ((K = ee.dataset) == null ? void 0 : K.hidden) === "" || ee.getAttribute("tabindex") === "-1") break;
|
|
5745
5770
|
x.push(ee);
|
|
5746
5771
|
}
|
|
5747
5772
|
s.value && x.push(r.value.querySelector(".bs-tab-list-toggle")), y.value = x;
|
|
5748
5773
|
}
|
|
5749
|
-
return
|
|
5774
|
+
return G(() => t.activeTabId, ce), Q(() => {
|
|
5750
5775
|
var x;
|
|
5751
5776
|
try {
|
|
5752
5777
|
zt(), Ft(), Nt(), p.value = r.value.getBoundingClientRect().width, H(), t.withBsTabs || (x = v.value[q.value]) == null || x.setAttribute("aria-selected", "true");
|
|
5753
5778
|
} catch (N) {
|
|
5754
5779
|
console.log("tab error", N);
|
|
5755
5780
|
}
|
|
5756
|
-
}), $e(
|
|
5781
|
+
}), $e(ue), (x, N) => (d(), h("div", {
|
|
5757
5782
|
class: "bs-tab-list",
|
|
5758
5783
|
"data-component": "bs-tab-list",
|
|
5759
|
-
id: x.$attrs.id || c(
|
|
5784
|
+
id: x.$attrs.id || c(w),
|
|
5760
5785
|
ref_key: "hostEl",
|
|
5761
5786
|
ref: r,
|
|
5762
5787
|
role: "tablist",
|
|
5763
5788
|
"data-resizing": !n.value || void 0,
|
|
5764
|
-
onClick:
|
|
5765
|
-
"on:tabClick": N[0] || (N[0] = (
|
|
5789
|
+
onClick: j,
|
|
5790
|
+
"on:tabClick": N[0] || (N[0] = (K) => ie(K.detail)),
|
|
5766
5791
|
onKeydown: M
|
|
5767
5792
|
}, [
|
|
5768
|
-
|
|
5793
|
+
O(x.$slots, "default"),
|
|
5769
5794
|
B("button", {
|
|
5770
5795
|
"aria-controls": c(k),
|
|
5771
5796
|
"aria-expanded": o.value,
|
|
5772
5797
|
class: "bs-tab-list-toggle",
|
|
5773
|
-
"data-active":
|
|
5798
|
+
"data-active": z.value || void 0,
|
|
5774
5799
|
"data-hidden": !s.value,
|
|
5775
|
-
id:
|
|
5800
|
+
id: D.value,
|
|
5776
5801
|
ref_key: "dropdownToggle",
|
|
5777
|
-
ref:
|
|
5802
|
+
ref: b,
|
|
5778
5803
|
onClick: we
|
|
5779
5804
|
}, [
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
], 8,
|
|
5783
|
-
|
|
5784
|
-
"anchor-id":
|
|
5785
|
-
"container-id": x.$attrs.id || c(
|
|
5805
|
+
E(c(Qt), { size: "sm" }),
|
|
5806
|
+
U(" " + T(W.value), 1)
|
|
5807
|
+
], 8, ao),
|
|
5808
|
+
E(Pt, {
|
|
5809
|
+
"anchor-id": D.value,
|
|
5810
|
+
"container-id": x.$attrs.id || c(w),
|
|
5786
5811
|
"helper-description": e.helperDescription || void 0,
|
|
5787
5812
|
"helper-text": e.helperText,
|
|
5788
5813
|
id: c(k),
|
|
5789
|
-
"options-id":
|
|
5814
|
+
"options-id": R.value,
|
|
5790
5815
|
position: "right",
|
|
5791
5816
|
preloaded: "",
|
|
5792
5817
|
shown: o.value,
|
|
5793
5818
|
width: "content",
|
|
5794
5819
|
onClose: xe,
|
|
5795
|
-
"onUpdate:modelValue":
|
|
5820
|
+
"onUpdate:modelValue": V
|
|
5796
5821
|
}, {
|
|
5797
|
-
default:
|
|
5798
|
-
(d(!0),
|
|
5799
|
-
key:
|
|
5800
|
-
value:
|
|
5801
|
-
"options-id":
|
|
5822
|
+
default: L(() => [
|
|
5823
|
+
(d(!0), h(Y, null, ae(u.value, (K) => (d(), A(it, {
|
|
5824
|
+
key: K.id,
|
|
5825
|
+
value: K.id,
|
|
5826
|
+
"options-id": R.value
|
|
5802
5827
|
}, {
|
|
5803
|
-
default:
|
|
5804
|
-
|
|
5828
|
+
default: L(() => [
|
|
5829
|
+
U(T(K.textContent), 1)
|
|
5805
5830
|
]),
|
|
5806
5831
|
_: 2
|
|
5807
5832
|
}, 1032, ["value", "options-id"]))), 128))
|
|
5808
5833
|
]),
|
|
5809
5834
|
_: 1
|
|
5810
5835
|
}, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])
|
|
5811
|
-
], 40,
|
|
5836
|
+
], 40, to));
|
|
5812
5837
|
}
|
|
5813
|
-
},
|
|
5838
|
+
}, oo = ["aria-labelledby", "data-active", "id"], ii = {
|
|
5814
5839
|
__name: "BsTabPanel",
|
|
5815
5840
|
props: {
|
|
5816
5841
|
activeTabId: {
|
|
@@ -5823,18 +5848,18 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5823
5848
|
}
|
|
5824
5849
|
},
|
|
5825
5850
|
setup(e) {
|
|
5826
|
-
const a = e, t =
|
|
5827
|
-
return (i, u) => (d(),
|
|
5851
|
+
const a = e, t = de(), l = f(() => a.activeTabId && a.activeTabId === a.tabId), n = f(() => t.id || `${a.tabId}-panel`);
|
|
5852
|
+
return (i, u) => (d(), h("section", {
|
|
5828
5853
|
"aria-labelledby": e.tabId,
|
|
5829
5854
|
"data-active": l.value,
|
|
5830
5855
|
"data-component": "bs-tab-panel",
|
|
5831
5856
|
id: n.value,
|
|
5832
5857
|
role: "tabpanel"
|
|
5833
5858
|
}, [
|
|
5834
|
-
|
|
5835
|
-
], 8,
|
|
5859
|
+
O(i.$slots, "default")
|
|
5860
|
+
], 8, oo));
|
|
5836
5861
|
}
|
|
5837
|
-
},
|
|
5862
|
+
}, io = ["data-error", "id", "rows", "value"], ro = {
|
|
5838
5863
|
__name: "BsTextarea",
|
|
5839
5864
|
props: {
|
|
5840
5865
|
error: {
|
|
@@ -5850,7 +5875,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5850
5875
|
emits: ["update:modelValue"],
|
|
5851
5876
|
setup(e, { emit: a }) {
|
|
5852
5877
|
const t = e, l = f(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
5853
|
-
return (n, i) => (d(),
|
|
5878
|
+
return (n, i) => (d(), h("textarea", F({
|
|
5854
5879
|
class: "bs-textarea",
|
|
5855
5880
|
"data-component": "bs-textarea",
|
|
5856
5881
|
"data-error": e.error,
|
|
@@ -5858,9 +5883,9 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5858
5883
|
rows: n.$attrs.rows || 6,
|
|
5859
5884
|
value: e.value || e.modelValue,
|
|
5860
5885
|
onInput: i[0] || (i[0] = (u) => n.$emit("update:modelValue", u.target.value))
|
|
5861
|
-
}, l.value), null, 16,
|
|
5886
|
+
}, l.value), null, 16, io));
|
|
5862
5887
|
}
|
|
5863
|
-
},
|
|
5888
|
+
}, ri = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5864
5889
|
__name: "BsTextareaField",
|
|
5865
5890
|
props: {
|
|
5866
5891
|
/** Sets the maximum value this textarea will allow. Will also display character count if present. This does not set maxlength, so users are able to enter text that is longer and edit it down. Enforcement of length must be by the developer. */
|
|
@@ -5909,7 +5934,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5909
5934
|
},
|
|
5910
5935
|
emits: ["update:modelValue"],
|
|
5911
5936
|
setup(e, { emit: a }) {
|
|
5912
|
-
const t = e, [l, n] =
|
|
5937
|
+
const t = e, [l, n] = J(2), i = f(() => Wa.concat(t.passAttrs.split(","))), u = f(() => {
|
|
5913
5938
|
var m;
|
|
5914
5939
|
return ((m = t.value || t.modelValue) == null ? void 0 : m.length) || 0;
|
|
5915
5940
|
}), o = f(() => {
|
|
@@ -5917,21 +5942,21 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5917
5942
|
return ((g = (m = t.hints) == null ? void 0 : m.join) == null ? void 0 : g.call(m, `
|
|
5918
5943
|
`)) || t.hints;
|
|
5919
5944
|
}), s = f(() => t.error && t.errorMsg || t.hint || o.value || void 0), r = f(() => t.inputId || l.value);
|
|
5920
|
-
return (m, g) => (d(),
|
|
5921
|
-
e.label || m.$slots.label ? (d(),
|
|
5945
|
+
return (m, g) => (d(), h("div", F({ "data-component": "bs-textarea-field" }, c(X)(m.$attrs, i.value).remaining), [
|
|
5946
|
+
e.label || m.$slots.label ? (d(), A(le, {
|
|
5922
5947
|
key: 0,
|
|
5923
5948
|
for: m.$attrs.id || r.value,
|
|
5924
5949
|
disabled: e.disabled,
|
|
5925
5950
|
required: e.required
|
|
5926
5951
|
}, {
|
|
5927
|
-
default:
|
|
5928
|
-
|
|
5929
|
-
|
|
5952
|
+
default: L(() => [
|
|
5953
|
+
O(m.$slots, "label", {}, () => [
|
|
5954
|
+
U(T(e.label), 1)
|
|
5930
5955
|
])
|
|
5931
5956
|
]),
|
|
5932
5957
|
_: 3
|
|
5933
5958
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
5934
|
-
|
|
5959
|
+
E(ro, F({
|
|
5935
5960
|
disabled: e.disabled,
|
|
5936
5961
|
error: e.error,
|
|
5937
5962
|
"hint-id": c(n),
|
|
@@ -5941,8 +5966,8 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5941
5966
|
rows: e.rows,
|
|
5942
5967
|
value: e.value || e.modelValue,
|
|
5943
5968
|
"onUpdate:modelValue": g[0] || (g[0] = (v) => m.$emit("update:modelValue", v))
|
|
5944
|
-
}, c(
|
|
5945
|
-
s.value || e.charMax ? (d(),
|
|
5969
|
+
}, c(X)(m.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
|
|
5970
|
+
s.value || e.charMax ? (d(), A(ye, {
|
|
5946
5971
|
key: 1,
|
|
5947
5972
|
"char-count": u.value,
|
|
5948
5973
|
"char-max": e.charMax,
|
|
@@ -5955,15 +5980,15 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5955
5980
|
], 16));
|
|
5956
5981
|
}
|
|
5957
5982
|
});
|
|
5958
|
-
function
|
|
5983
|
+
function so(e) {
|
|
5959
5984
|
const a = /^([01]?[0-9]|2[0-3]):[0-5][0-9]$/.test(e), t = /^([01]?[0-9]|2[0-3])[0-5][0-9]$/.test(e), l = /^([0]?[0-9]|1[0-2]):[0-5][0-9] ?(a|p|am|pm)$/i.test(e), n = /^([0]?[0-9]|1[0-2])[0-5][0-9] ?(a|p|am|pm)$/i.test(e);
|
|
5960
5985
|
return a ? "uFmt" : t ? "uFmtNoColon" : l ? "amPm" : n ? "amPmNoColon" : "";
|
|
5961
5986
|
}
|
|
5962
5987
|
const Be = (e) => parseInt(e, 10);
|
|
5963
|
-
function
|
|
5988
|
+
function uo(e = "") {
|
|
5964
5989
|
const a = /[^0-9:apmAPM]/g;
|
|
5965
5990
|
let t, l;
|
|
5966
|
-
switch (e = e.replaceAll(a, "").toLowerCase(),
|
|
5991
|
+
switch (e = e.replaceAll(a, "").toLowerCase(), so(e)) {
|
|
5967
5992
|
case "uFmt":
|
|
5968
5993
|
case "uFmtNoColon":
|
|
5969
5994
|
l = Be(e.slice(-2)), t = Be(e.slice(0, -2));
|
|
@@ -5979,17 +6004,17 @@ function so(e = "") {
|
|
|
5979
6004
|
minutes: l
|
|
5980
6005
|
};
|
|
5981
6006
|
}
|
|
5982
|
-
function
|
|
6007
|
+
function Se(e = "") {
|
|
5983
6008
|
const a = /[^0-9:]/g;
|
|
5984
6009
|
if (e = e.replaceAll(a, ""), !e) return "";
|
|
5985
6010
|
const [t, l] = e.split(":"), n = Be(t), i = Be(l), u = n < 12 ? "AM" : "PM";
|
|
5986
6011
|
return isNaN(n) || isNaN(i) || n > 23 || i > 59 ? "" : `${n % 12 || 12}:${l} ${u}`;
|
|
5987
6012
|
}
|
|
5988
|
-
function
|
|
5989
|
-
const { hours: a, minutes: t } =
|
|
6013
|
+
function co(e = "") {
|
|
6014
|
+
const { hours: a, minutes: t } = uo(e);
|
|
5990
6015
|
return isNaN(a) || isNaN(t) ? "" : `${a.toString().padStart(2, "0")}:${t.toString().padStart(2, "0")}`;
|
|
5991
6016
|
}
|
|
5992
|
-
const
|
|
6017
|
+
const He = "excluded", Ge = "over", vt = "skip", gt = "stop", Ke = "under", fo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5993
6018
|
__name: "BsTimePicker",
|
|
5994
6019
|
props: {
|
|
5995
6020
|
disabled: {
|
|
@@ -6054,84 +6079,84 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6054
6079
|
},
|
|
6055
6080
|
emits: ["update:modelValue"],
|
|
6056
6081
|
setup(e, { expose: a, emit: t }) {
|
|
6057
|
-
const l = e, n = t, i = $(
|
|
6082
|
+
const l = e, n = t, i = $(Se(l.modelValue)), u = $([]), o = $(""), s = $(!1);
|
|
6058
6083
|
function r() {
|
|
6059
|
-
const
|
|
6084
|
+
const w = [];
|
|
6060
6085
|
let k = !1;
|
|
6061
6086
|
for (let I = 0; I < 24 && !k; I++)
|
|
6062
6087
|
for (let q = 0; q < 60; q += l.step) {
|
|
6063
|
-
const
|
|
6064
|
-
if (
|
|
6065
|
-
if (
|
|
6088
|
+
const z = v(I, q), R = g(z);
|
|
6089
|
+
if (R !== vt) {
|
|
6090
|
+
if (R === gt) {
|
|
6066
6091
|
k = !0;
|
|
6067
6092
|
break;
|
|
6068
6093
|
}
|
|
6069
|
-
|
|
6070
|
-
label:
|
|
6071
|
-
value:
|
|
6094
|
+
w.push({
|
|
6095
|
+
label: Se(z),
|
|
6096
|
+
value: z
|
|
6072
6097
|
});
|
|
6073
6098
|
}
|
|
6074
6099
|
}
|
|
6075
|
-
return
|
|
6100
|
+
return w;
|
|
6076
6101
|
}
|
|
6077
|
-
function m(
|
|
6078
|
-
return
|
|
6102
|
+
function m(w) {
|
|
6103
|
+
return w ? l.minTime && w < l.minTime ? Ke : l.maxTime && w > l.maxTime ? Ge : l.disabledTimes.includes(w) ? He : "" : "";
|
|
6079
6104
|
}
|
|
6080
|
-
function g(
|
|
6081
|
-
switch (m(
|
|
6082
|
-
case
|
|
6105
|
+
function g(w) {
|
|
6106
|
+
switch (m(w)) {
|
|
6107
|
+
case Ge:
|
|
6083
6108
|
return gt;
|
|
6084
6109
|
case Ke:
|
|
6085
|
-
case
|
|
6110
|
+
case He:
|
|
6086
6111
|
return vt;
|
|
6087
6112
|
default:
|
|
6088
6113
|
return "";
|
|
6089
6114
|
}
|
|
6090
6115
|
}
|
|
6091
|
-
function v(
|
|
6092
|
-
return
|
|
6116
|
+
function v(w, k) {
|
|
6117
|
+
return w = w.toString().padStart(2, "0"), k = k.toString().padStart(2, "0"), `${w}:${k}`;
|
|
6093
6118
|
}
|
|
6094
|
-
function
|
|
6095
|
-
const k =
|
|
6096
|
-
k === l.modelValue && (i.value =
|
|
6119
|
+
function b(w) {
|
|
6120
|
+
const k = co(w);
|
|
6121
|
+
k === l.modelValue && (i.value = Se(l.modelValue)), S(k);
|
|
6097
6122
|
}
|
|
6098
6123
|
function y() {
|
|
6099
6124
|
u.value = r();
|
|
6100
6125
|
}
|
|
6101
|
-
function w
|
|
6102
|
-
p(
|
|
6126
|
+
function S(w) {
|
|
6127
|
+
p(w), n("update:modelValue", w);
|
|
6103
6128
|
}
|
|
6104
|
-
function p(
|
|
6105
|
-
switch (m(
|
|
6106
|
-
case
|
|
6107
|
-
o.value = `Time must be before ${
|
|
6129
|
+
function p(w) {
|
|
6130
|
+
switch (m(w)) {
|
|
6131
|
+
case Ge:
|
|
6132
|
+
o.value = `Time must be before ${Se(l.maxTime)}`, s.value = !0;
|
|
6108
6133
|
break;
|
|
6109
6134
|
case Ke:
|
|
6110
|
-
o.value = `Time must be after ${
|
|
6135
|
+
o.value = `Time must be after ${Se(l.minTime)}`, s.value = !0;
|
|
6111
6136
|
break;
|
|
6112
|
-
case
|
|
6113
|
-
o.value = `The following times are disabled: ${l.disabledTimes.map((I) =>
|
|
6137
|
+
case He:
|
|
6138
|
+
o.value = `The following times are disabled: ${l.disabledTimes.map((I) => Se(I)).join(", ")}`, s.value = !0;
|
|
6114
6139
|
break;
|
|
6115
6140
|
default:
|
|
6116
6141
|
o.value = "", s.value = !1;
|
|
6117
6142
|
}
|
|
6118
6143
|
}
|
|
6119
|
-
return
|
|
6144
|
+
return Q(y), G([
|
|
6120
6145
|
() => l.disabledTimes,
|
|
6121
6146
|
() => l.maxTime,
|
|
6122
6147
|
() => l.minTime,
|
|
6123
6148
|
() => l.step
|
|
6124
|
-
], y),
|
|
6149
|
+
], y), G([
|
|
6125
6150
|
() => l.disabledTimes,
|
|
6126
6151
|
() => l.maxTime,
|
|
6127
6152
|
() => l.minTime,
|
|
6128
6153
|
() => l.modelValue
|
|
6129
|
-
], () => p(l.modelValue)),
|
|
6130
|
-
i.value = l.modelValue ?
|
|
6154
|
+
], () => p(l.modelValue)), G(() => l.modelValue, (w) => {
|
|
6155
|
+
i.value = l.modelValue ? Se(w) : "";
|
|
6131
6156
|
}), a({
|
|
6132
6157
|
validationErr: s,
|
|
6133
6158
|
validationErrMsg: o
|
|
6134
|
-
}), (
|
|
6159
|
+
}), (w, k) => (d(), A(Et, {
|
|
6135
6160
|
disabled: e.disabled,
|
|
6136
6161
|
"display-value": i.value,
|
|
6137
6162
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -6146,10 +6171,10 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6146
6171
|
placeholder: e.placeholder,
|
|
6147
6172
|
required: e.required,
|
|
6148
6173
|
"update-on-input": !1,
|
|
6149
|
-
"onUpdate:modelValue":
|
|
6174
|
+
"onUpdate:modelValue": b
|
|
6150
6175
|
}, null, 8, ["disabled", "display-value", "dropdown-position", "dropdown-width", "error", "helper-description", "helper-text", "hint-id", "input-id", "model-value", "options", "placeholder", "required"]));
|
|
6151
6176
|
}
|
|
6152
|
-
}),
|
|
6177
|
+
}), si = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
6153
6178
|
__name: "BsTimePickerField",
|
|
6154
6179
|
props: {
|
|
6155
6180
|
disabled: {
|
|
@@ -6218,34 +6243,34 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6218
6243
|
},
|
|
6219
6244
|
emits: ["update:modelValue"],
|
|
6220
6245
|
setup(e, { expose: a, emit: t }) {
|
|
6221
|
-
const l = e, [n, i] =
|
|
6222
|
-
var
|
|
6223
|
-
return (
|
|
6246
|
+
const l = e, [n, i] = J(2), u = $(null), o = f(() => l.errorMsg || g.value), s = f(() => l.error || v.value), r = f(() => l.inputId || n.value), m = f(() => l.hint || s.value && o.value), g = f(() => {
|
|
6247
|
+
var b;
|
|
6248
|
+
return (b = u.value) == null ? void 0 : b.validationErrMsg;
|
|
6224
6249
|
}), v = f(() => {
|
|
6225
|
-
var
|
|
6226
|
-
return (
|
|
6250
|
+
var b;
|
|
6251
|
+
return (b = u.value) == null ? void 0 : b.validationErr;
|
|
6227
6252
|
});
|
|
6228
6253
|
return a({
|
|
6229
6254
|
validationErr: v,
|
|
6230
6255
|
validationErrMsg: g
|
|
6231
|
-
}), (
|
|
6256
|
+
}), (b, y) => (d(), h("div", F({
|
|
6232
6257
|
"aria-live": "polite",
|
|
6233
6258
|
"data-component": "bs-time-picker-field"
|
|
6234
|
-
}, c(
|
|
6235
|
-
e.label ||
|
|
6259
|
+
}, c(X)(b.$attrs, c(ge)).remaining), [
|
|
6260
|
+
e.label || b.$slots.label ? (d(), A(le, {
|
|
6236
6261
|
key: 0,
|
|
6237
|
-
for:
|
|
6262
|
+
for: b.$attrs.id || r.value,
|
|
6238
6263
|
disabled: e.disabled,
|
|
6239
6264
|
required: e.required
|
|
6240
6265
|
}, {
|
|
6241
|
-
default:
|
|
6242
|
-
|
|
6243
|
-
|
|
6266
|
+
default: L(() => [
|
|
6267
|
+
O(b.$slots, "label", {}, () => [
|
|
6268
|
+
U(T(e.label), 1)
|
|
6244
6269
|
])
|
|
6245
6270
|
]),
|
|
6246
6271
|
_: 3
|
|
6247
6272
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
6248
|
-
|
|
6273
|
+
E(fo, F({
|
|
6249
6274
|
ref_key: "timePicker",
|
|
6250
6275
|
ref: u,
|
|
6251
6276
|
disabled: e.disabled,
|
|
@@ -6256,26 +6281,26 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6256
6281
|
"helper-description": e.helperDescription,
|
|
6257
6282
|
"helper-text": e.helperText,
|
|
6258
6283
|
"hint-id": c(i),
|
|
6259
|
-
"input-id":
|
|
6284
|
+
"input-id": b.$attrs.id || r.value,
|
|
6260
6285
|
"max-time": e.maxTime,
|
|
6261
6286
|
"min-time": e.minTime,
|
|
6262
6287
|
"model-value": e.modelValue,
|
|
6263
6288
|
placeholder: e.placeholder,
|
|
6264
6289
|
required: e.required,
|
|
6265
6290
|
step: e.step,
|
|
6266
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
6267
|
-
}, c(
|
|
6268
|
-
|
|
6291
|
+
"onUpdate:modelValue": y[0] || (y[0] = (S) => b.$emit("update:modelValue", S))
|
|
6292
|
+
}, c(X)(b.$attrs, c(ge)).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"]),
|
|
6293
|
+
pe(E(ye, {
|
|
6269
6294
|
error: s.value,
|
|
6270
6295
|
"error-msg": o.value,
|
|
6271
6296
|
hint: e.hint,
|
|
6272
6297
|
"hint-id": c(i)
|
|
6273
6298
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
6274
|
-
[
|
|
6299
|
+
[me, m.value]
|
|
6275
6300
|
])
|
|
6276
6301
|
], 16));
|
|
6277
6302
|
}
|
|
6278
|
-
}),
|
|
6303
|
+
}), po = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], mo = ["data-status"], ho = { class: "visually-hidden" }, di = {
|
|
6279
6304
|
__name: "BsTimeline",
|
|
6280
6305
|
props: {
|
|
6281
6306
|
/** @type {Status} */
|
|
@@ -6316,7 +6341,7 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6316
6341
|
function u(o, s) {
|
|
6317
6342
|
return o = i(o, s), t[o] || ut;
|
|
6318
6343
|
}
|
|
6319
|
-
return (o, s) => (d(),
|
|
6344
|
+
return (o, s) => (d(), h("div", {
|
|
6320
6345
|
"aria-valuemax": e.steps.length,
|
|
6321
6346
|
"aria-valuenow": c(l),
|
|
6322
6347
|
"aria-valuetext": c(n),
|
|
@@ -6324,24 +6349,24 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6324
6349
|
"data-component": "bs-timeline",
|
|
6325
6350
|
role: "progressbar"
|
|
6326
6351
|
}, [
|
|
6327
|
-
(d(!0),
|
|
6352
|
+
(d(!0), h(Y, null, ae(e.steps, (r, m) => (d(), h("div", {
|
|
6328
6353
|
class: "bs-step-item",
|
|
6329
6354
|
"data-status": c(i)(r.status, m),
|
|
6330
6355
|
key: r.id || r.label,
|
|
6331
6356
|
role: "status"
|
|
6332
6357
|
}, [
|
|
6333
|
-
(d(),
|
|
6358
|
+
(d(), A(ne(u(r.status, m)), {
|
|
6334
6359
|
class: "bs-step-icon",
|
|
6335
6360
|
role: "presentation"
|
|
6336
6361
|
})),
|
|
6337
6362
|
B("p", null, [
|
|
6338
|
-
|
|
6339
|
-
B("span",
|
|
6363
|
+
U(T(r.label || r) + " ", 1),
|
|
6364
|
+
B("span", ho, " : " + T(c(i)(r.status, m) || "not started"), 1)
|
|
6340
6365
|
])
|
|
6341
|
-
], 8,
|
|
6342
|
-
], 8,
|
|
6366
|
+
], 8, mo))), 128))
|
|
6367
|
+
], 8, po));
|
|
6343
6368
|
}
|
|
6344
|
-
}, bo = ["data-variant", "data-shown", "data-stacked"],
|
|
6369
|
+
}, bo = ["data-variant", "data-shown", "data-stacked"], ui = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
6345
6370
|
__name: "BsToast",
|
|
6346
6371
|
props: {
|
|
6347
6372
|
shown: {
|
|
@@ -6389,8 +6414,8 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6389
6414
|
setup(e, { emit: a }) {
|
|
6390
6415
|
const t = e, l = a, { transition: n } = Ee(t);
|
|
6391
6416
|
let i = null;
|
|
6392
|
-
|
|
6393
|
-
const u =
|
|
6417
|
+
he("variant", t.variant), he("handleDismiss", o);
|
|
6418
|
+
const u = be("stacked", t.stacked);
|
|
6394
6419
|
function o() {
|
|
6395
6420
|
i && (clearTimeout(i), i = null), l("dismiss", t.toastId);
|
|
6396
6421
|
}
|
|
@@ -6399,15 +6424,15 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6399
6424
|
o();
|
|
6400
6425
|
}, t.duration)), l("after-enter");
|
|
6401
6426
|
}
|
|
6402
|
-
return (r, m) => (d(),
|
|
6427
|
+
return (r, m) => (d(), A(Pe, {
|
|
6403
6428
|
name: "bs-toast",
|
|
6404
6429
|
shown: c(n),
|
|
6405
6430
|
preloaded: e.preloaded,
|
|
6406
6431
|
onAfterEnter: s,
|
|
6407
6432
|
onAfterLeave: m[0] || (m[0] = (g) => l("after-leave"))
|
|
6408
6433
|
}, {
|
|
6409
|
-
default:
|
|
6410
|
-
B("div",
|
|
6434
|
+
default: L(() => [
|
|
6435
|
+
B("div", F({
|
|
6411
6436
|
class: "bs-toast",
|
|
6412
6437
|
"data-component": "bs-toast",
|
|
6413
6438
|
"data-variant": e.variant,
|
|
@@ -6415,58 +6440,58 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6415
6440
|
"data-stacked": c(u) || void 0,
|
|
6416
6441
|
role: "alert"
|
|
6417
6442
|
}, r.$attrs), [
|
|
6418
|
-
|
|
6443
|
+
O(r.$slots, "default")
|
|
6419
6444
|
], 16, bo)
|
|
6420
6445
|
]),
|
|
6421
6446
|
_: 3
|
|
6422
6447
|
}, 8, ["shown", "preloaded"]));
|
|
6423
6448
|
}
|
|
6424
|
-
}),
|
|
6449
|
+
}), vo = ["data-stacked"], ci = {
|
|
6425
6450
|
__name: "BsToastActions",
|
|
6426
6451
|
setup(e) {
|
|
6427
|
-
const a =
|
|
6452
|
+
const a = be("handleDismiss", () => {
|
|
6428
6453
|
});
|
|
6429
6454
|
function t() {
|
|
6430
6455
|
var l, n;
|
|
6431
6456
|
return ((n = (l = et()).default) == null ? void 0 : n.call(l).length) > 2 || void 0;
|
|
6432
6457
|
}
|
|
6433
|
-
return (l, n) => (d(),
|
|
6458
|
+
return (l, n) => (d(), h("div", {
|
|
6434
6459
|
class: "bs-toast-actions",
|
|
6435
6460
|
"data-component": "bs-toast-actions",
|
|
6436
6461
|
"data-stacked": t()
|
|
6437
6462
|
}, [
|
|
6438
|
-
|
|
6439
|
-
|
|
6463
|
+
O(l.$slots, "default", {}, () => [
|
|
6464
|
+
E(xt, {
|
|
6440
6465
|
size: "sm",
|
|
6441
6466
|
"text-btn": "",
|
|
6442
6467
|
onClick: c(a)
|
|
6443
6468
|
}, {
|
|
6444
|
-
default:
|
|
6445
|
-
|
|
6469
|
+
default: L(() => n[0] || (n[0] = [
|
|
6470
|
+
U(" Dismiss ")
|
|
6446
6471
|
])),
|
|
6447
6472
|
_: 1
|
|
6448
6473
|
}, 8, ["onClick"])
|
|
6449
6474
|
])
|
|
6450
|
-
], 8,
|
|
6475
|
+
], 8, vo));
|
|
6451
6476
|
}
|
|
6452
|
-
},
|
|
6477
|
+
}, go = (e, a) => {
|
|
6453
6478
|
const t = e.__vccOpts || e;
|
|
6454
6479
|
for (const [l, n] of a)
|
|
6455
6480
|
t[l] = n;
|
|
6456
6481
|
return t;
|
|
6457
|
-
},
|
|
6482
|
+
}, yo = {}, So = {
|
|
6458
6483
|
class: "bs-toast-body",
|
|
6459
6484
|
"data-component": "bs-toast-body"
|
|
6460
6485
|
};
|
|
6461
|
-
function
|
|
6462
|
-
return d(),
|
|
6463
|
-
|
|
6486
|
+
function wo(e, a) {
|
|
6487
|
+
return d(), h("div", So, [
|
|
6488
|
+
O(e.$slots, "default")
|
|
6464
6489
|
]);
|
|
6465
6490
|
}
|
|
6466
|
-
const
|
|
6491
|
+
const fi = /* @__PURE__ */ go(yo, [["render", wo]]), Bo = ["data-variant"], pi = {
|
|
6467
6492
|
__name: "BsToastHeader",
|
|
6468
6493
|
setup(e) {
|
|
6469
|
-
const a =
|
|
6494
|
+
const a = be("variant", void 0), t = f(() => {
|
|
6470
6495
|
switch (a) {
|
|
6471
6496
|
case "warning":
|
|
6472
6497
|
return Xe;
|
|
@@ -6478,28 +6503,28 @@ const ci = /* @__PURE__ */ vo(go, [["render", So]]), wo = ["data-variant"], fi =
|
|
|
6478
6503
|
return kt;
|
|
6479
6504
|
}
|
|
6480
6505
|
});
|
|
6481
|
-
return (l, n) => (d(),
|
|
6506
|
+
return (l, n) => (d(), h("div", {
|
|
6482
6507
|
class: "bs-toast-header",
|
|
6483
6508
|
"data-component": "bs-toast-header",
|
|
6484
6509
|
"data-variant": c(a)
|
|
6485
6510
|
}, [
|
|
6486
|
-
(d(),
|
|
6511
|
+
(d(), A(ne(t.value), { class: "bs-toast-header-icon" })),
|
|
6487
6512
|
B("h5", null, [
|
|
6488
|
-
|
|
6513
|
+
O(l.$slots, "default")
|
|
6489
6514
|
])
|
|
6490
|
-
], 8,
|
|
6515
|
+
], 8, Bo));
|
|
6491
6516
|
}
|
|
6492
|
-
},
|
|
6517
|
+
}, $o = {
|
|
6493
6518
|
class: "bs-toaster",
|
|
6494
6519
|
"data-component": "bs-toaster"
|
|
6495
|
-
},
|
|
6520
|
+
}, mi = {
|
|
6496
6521
|
__name: "BsToaster",
|
|
6497
6522
|
setup(e) {
|
|
6498
|
-
return
|
|
6499
|
-
|
|
6523
|
+
return he("stacked", !0), (a, t) => (d(), h("div", $o, [
|
|
6524
|
+
O(a.$slots, "default")
|
|
6500
6525
|
]));
|
|
6501
6526
|
}
|
|
6502
|
-
},
|
|
6527
|
+
}, Io = ["data-position"], ko = ["id"], hi = {
|
|
6503
6528
|
__name: "BsTooltip",
|
|
6504
6529
|
props: {
|
|
6505
6530
|
tooltipId: {
|
|
@@ -6530,7 +6555,7 @@ const ci = /* @__PURE__ */ vo(go, [["render", So]]), wo = ["data-variant"], fi =
|
|
|
6530
6555
|
let o = "bs-tooltip-text";
|
|
6531
6556
|
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;
|
|
6532
6557
|
});
|
|
6533
|
-
|
|
6558
|
+
ve(["Escape"], () => {
|
|
6534
6559
|
t.value && (t.value = !1, l.value = !0);
|
|
6535
6560
|
});
|
|
6536
6561
|
function i() {
|
|
@@ -6539,7 +6564,7 @@ const ci = /* @__PURE__ */ vo(go, [["render", So]]), wo = ["data-variant"], fi =
|
|
|
6539
6564
|
function u() {
|
|
6540
6565
|
t.value = !1, l.value = !1;
|
|
6541
6566
|
}
|
|
6542
|
-
return (o, s) => (d(),
|
|
6567
|
+
return (o, s) => (d(), h("div", {
|
|
6543
6568
|
class: "bs-tooltip",
|
|
6544
6569
|
"data-position": e.position || void 0,
|
|
6545
6570
|
"data-component": "bs-tooltip",
|
|
@@ -6548,16 +6573,16 @@ const ci = /* @__PURE__ */ vo(go, [["render", So]]), wo = ["data-variant"], fi =
|
|
|
6548
6573
|
onMouseleave: u,
|
|
6549
6574
|
onFocusout: u
|
|
6550
6575
|
}, [
|
|
6551
|
-
|
|
6552
|
-
e.content ? (d(),
|
|
6576
|
+
O(o.$slots, "default"),
|
|
6577
|
+
e.content ? (d(), h("div", {
|
|
6553
6578
|
key: 0,
|
|
6554
6579
|
class: oe(n.value),
|
|
6555
6580
|
id: e.tooltipId,
|
|
6556
6581
|
role: "tooltip"
|
|
6557
|
-
},
|
|
6558
|
-
], 40,
|
|
6582
|
+
}, T(e.content), 11, ko)) : C("", !0)
|
|
6583
|
+
], 40, Io));
|
|
6559
6584
|
}
|
|
6560
|
-
},
|
|
6585
|
+
}, Co = {
|
|
6561
6586
|
accordion: "[data-component=bs-accordion]",
|
|
6562
6587
|
badge: "[data-component=bs-badge]",
|
|
6563
6588
|
banner: "[data-component=bs-banner]",
|
|
@@ -6615,68 +6640,68 @@ const ci = /* @__PURE__ */ vo(go, [["render", So]]), wo = ["data-variant"], fi =
|
|
|
6615
6640
|
toaster: "[data-component=bs-toaster]",
|
|
6616
6641
|
tooltip: "[data-component=bs-tooltip]"
|
|
6617
6642
|
}, bi = {
|
|
6618
|
-
bsSelectors:
|
|
6643
|
+
bsSelectors: Co
|
|
6619
6644
|
};
|
|
6620
6645
|
export {
|
|
6621
|
-
|
|
6646
|
+
Do as BsAccordion,
|
|
6622
6647
|
Ca as BsBadge,
|
|
6623
|
-
|
|
6648
|
+
Po as BsBanner,
|
|
6624
6649
|
xt as BsButton,
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6650
|
+
qo as BsCalendar,
|
|
6651
|
+
Mo as BsCaretButton,
|
|
6652
|
+
No as BsCaretTextButton,
|
|
6653
|
+
zo as BsChartBar,
|
|
6654
|
+
Fo as BsCheckbox,
|
|
6630
6655
|
Tt as BsCircleButton,
|
|
6631
6656
|
ot as BsDropdown,
|
|
6632
6657
|
Et as BsDropdownCombobox,
|
|
6633
|
-
|
|
6658
|
+
Ro as BsDropdownComboboxField,
|
|
6634
6659
|
Dt as BsDropdownMultiselect,
|
|
6635
6660
|
it as BsDropdownOption,
|
|
6636
6661
|
qe as BsDropdownOptionBuilder,
|
|
6637
6662
|
Re as BsDropdownOptionList,
|
|
6638
6663
|
Pt as BsDropdownWithOptions,
|
|
6639
6664
|
Lt as BsDropdownWithToggle,
|
|
6640
|
-
|
|
6665
|
+
Wo as BsEmptyState,
|
|
6641
6666
|
ye as BsFieldDetails,
|
|
6642
6667
|
In as BsFilterButton,
|
|
6643
|
-
|
|
6644
|
-
|
|
6668
|
+
jo as BsFlyout,
|
|
6669
|
+
Uo as BsIconGradientWrapper,
|
|
6645
6670
|
ke as BsInput,
|
|
6646
6671
|
De as BsInputAddon,
|
|
6647
|
-
|
|
6672
|
+
Ho as BsInputField,
|
|
6648
6673
|
Go as BsInputPhone,
|
|
6649
6674
|
Vt as BsInputSearch,
|
|
6650
|
-
|
|
6675
|
+
Ko as BsInputTypeahead,
|
|
6651
6676
|
le as BsLabel,
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6677
|
+
Yo as BsLoader,
|
|
6678
|
+
Zo as BsModal,
|
|
6679
|
+
cl as BsOverlay,
|
|
6680
|
+
Xo as BsPagination,
|
|
6681
|
+
Qo as BsPill,
|
|
6682
|
+
Jo as BsProfile,
|
|
6683
|
+
zl as BsProfileDetails,
|
|
6659
6684
|
Ot as BsProfileImg,
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6685
|
+
_o as BsProgressBar,
|
|
6686
|
+
ei as BsRadio,
|
|
6687
|
+
Hl as BsSelect,
|
|
6688
|
+
ti as BsSelectField,
|
|
6689
|
+
ai as BsSelectWithDropdown,
|
|
6690
|
+
bt as BsSpinner,
|
|
6691
|
+
ni as BsSwitch,
|
|
6692
|
+
li as BsTab,
|
|
6693
|
+
oi as BsTabList,
|
|
6694
|
+
ii as BsTabPanel,
|
|
6695
|
+
ro as BsTextarea,
|
|
6696
|
+
ri as BsTextareaField,
|
|
6697
|
+
fo as BsTimePicker,
|
|
6698
|
+
si as BsTimePickerField,
|
|
6699
|
+
di as BsTimeline,
|
|
6700
|
+
ui as BsToast,
|
|
6701
|
+
ci as BsToastActions,
|
|
6702
|
+
fi as BsToastBody,
|
|
6703
|
+
pi as BsToastHeader,
|
|
6704
|
+
mi as BsToaster,
|
|
6705
|
+
hi as BsTooltip,
|
|
6681
6706
|
bi as bsSelectors
|
|
6682
6707
|
};
|