@wwtdev/bsds-components-vue3 2.17.0 → 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 +1098 -1072
- 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);
|
|
@@ -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,21 +101,21 @@ const me = (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;
|
|
@@ -128,7 +128,7 @@ const me = (e, a, t = void 0) => {
|
|
|
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 me = (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 me = (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 me = (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,11 +251,11 @@ const me = (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,
|
|
258
|
-
class:
|
|
258
|
+
class: oe({ "bs-badge": e.dot || l.value }),
|
|
259
259
|
"data-badge-color": e.color,
|
|
260
260
|
"data-component": "bs-badge",
|
|
261
261
|
"data-count": l.value,
|
|
@@ -264,7 +264,7 @@ const me = (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 me = (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 me = (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 me = (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 me = (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,22 +371,22 @@ const me = (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
|
-
}, Ea = ["data-disabled", "for"],
|
|
389
|
+
}, Ea = ["data-disabled", "for"], le = {
|
|
388
390
|
__name: "BsLabel",
|
|
389
391
|
props: {
|
|
390
392
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -393,16 +395,16 @@ const me = (e, a, t = void 0) => {
|
|
|
393
395
|
required: { type: Boolean, default: !1 }
|
|
394
396
|
},
|
|
395
397
|
setup(e) {
|
|
396
|
-
return (a, t) => (d(),
|
|
397
|
-
class:
|
|
398
|
+
return (a, t) => (d(), h("label", {
|
|
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 me = (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 me = (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 me = (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 me = (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(() => {
|
|
@@ -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,16 +784,16 @@ 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;
|
|
@@ -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,41 +1227,41 @@ 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([
|
|
@@ -1284,12 +1286,12 @@ function en(e, a) {
|
|
|
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 G(s, v), G(r, v),
|
|
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 : "",
|
|
@@ -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] =
|
|
2745
|
-
function w() {
|
|
2746
|
-
const R = document.activeElement;
|
|
2747
|
-
return !R || R.tagName === "BODY" || R.id === v.value;
|
|
2748
|
-
}
|
|
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));
|
|
2749
2747
|
function p() {
|
|
2750
|
-
|
|
2751
|
-
|
|
2748
|
+
const P = document.activeElement;
|
|
2749
|
+
return !P || P.tagName === "BODY" || P.id === v.value;
|
|
2752
2750
|
}
|
|
2753
|
-
function
|
|
2754
|
-
|
|
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));
|
|
2755
2754
|
}
|
|
2756
2755
|
function k() {
|
|
2756
|
+
o.value && w();
|
|
2757
|
+
}
|
|
2758
|
+
function I() {
|
|
2757
2759
|
o.value = !0;
|
|
2758
2760
|
}
|
|
2759
|
-
function
|
|
2760
|
-
const
|
|
2761
|
-
l("update:selectedOptions",
|
|
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
|
|
2765
|
-
l("update:selectedOptions",
|
|
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
|
-
var
|
|
2776
|
-
return
|
|
2775
|
+
function W(P) {
|
|
2776
|
+
s.value = P, r.value = t.options.filter((H) => {
|
|
2777
|
+
var te;
|
|
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:
|
|
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,
|
|
@@ -2814,48 +2816,49 @@ const sn = {
|
|
|
2814
2816
|
shown: e.open,
|
|
2815
2817
|
"use-mobile-style": e.useMobileStyle,
|
|
2816
2818
|
width: e.dropdownWidth,
|
|
2817
|
-
onClose:
|
|
2818
|
-
onEnter:
|
|
2819
|
+
onClose: k,
|
|
2820
|
+
onEnter: I,
|
|
2821
|
+
onAfterLeave: D
|
|
2819
2822
|
}, {
|
|
2820
|
-
default:
|
|
2821
|
-
e.filter ? (d(),
|
|
2822
|
-
|
|
2823
|
+
default: L(() => [
|
|
2824
|
+
e.filter ? (d(), h("div", Pn, [
|
|
2825
|
+
E(Vt, {
|
|
2823
2826
|
"aria-label": e.filterLabel,
|
|
2824
2827
|
"model-value": s.value,
|
|
2825
2828
|
placeholder: e.filterPlaceholder,
|
|
2826
|
-
"onUpdate:modelValue":
|
|
2827
|
-
onClear:
|
|
2829
|
+
"onUpdate:modelValue": W,
|
|
2830
|
+
onClear: D
|
|
2828
2831
|
}, null, 8, ["aria-label", "model-value", "placeholder"])
|
|
2829
2832
|
])) : C("", !0),
|
|
2830
|
-
|
|
2831
|
-
class:
|
|
2833
|
+
E(c(g), {
|
|
2834
|
+
class: oe({ "filterable-options": e.filter }),
|
|
2832
2835
|
label: e.dropdownLabel,
|
|
2833
2836
|
"model-value": e.selectedOption,
|
|
2834
|
-
options: e.multiselect ?
|
|
2837
|
+
options: e.multiselect ? y.value : void 0,
|
|
2835
2838
|
"options-id": v.value,
|
|
2836
2839
|
"selected-options": e.selectedOptions,
|
|
2837
2840
|
shown: e.open,
|
|
2838
|
-
"onUpdate:modelValue":
|
|
2839
|
-
onCheckOption:
|
|
2840
|
-
onUncheckOption:
|
|
2841
|
-
onClose:
|
|
2841
|
+
"onUpdate:modelValue": R,
|
|
2842
|
+
onCheckOption: z,
|
|
2843
|
+
onUncheckOption: q,
|
|
2844
|
+
onClose: H[1] || (H[1] = (te) => e.multiselect ? void 0 : k())
|
|
2842
2845
|
}, {
|
|
2843
|
-
default:
|
|
2844
|
-
e.multiselect ? C("", !0) : (d(),
|
|
2846
|
+
default: L(() => [
|
|
2847
|
+
e.multiselect ? C("", !0) : (d(), A(qe, {
|
|
2845
2848
|
key: 0,
|
|
2846
|
-
options:
|
|
2849
|
+
options: y.value
|
|
2847
2850
|
}, null, 8, ["options"]))
|
|
2848
2851
|
]),
|
|
2849
2852
|
_: 1
|
|
2850
2853
|
}, 8, ["class", "label", "model-value", "options", "options-id", "selected-options", "shown"]),
|
|
2851
|
-
e.multiselect ? (d(),
|
|
2852
|
-
|
|
2854
|
+
e.multiselect ? (d(), h("div", qn, [
|
|
2855
|
+
E(xt, {
|
|
2853
2856
|
title: e.filterButtonText,
|
|
2854
2857
|
class: "mobile-select-button",
|
|
2855
|
-
onClick:
|
|
2858
|
+
onClick: H[2] || (H[2] = () => l("close"))
|
|
2856
2859
|
}, {
|
|
2857
|
-
default:
|
|
2858
|
-
|
|
2860
|
+
default: L(() => [
|
|
2861
|
+
U(T(e.filterButtonText), 1)
|
|
2859
2862
|
]),
|
|
2860
2863
|
_: 1
|
|
2861
2864
|
}, 8, ["title"])
|
|
@@ -2924,7 +2927,7 @@ const sn = {
|
|
|
2924
2927
|
},
|
|
2925
2928
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
2926
2929
|
setup(e, { emit: a }) {
|
|
2927
|
-
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);
|
|
2928
2931
|
function r(y) {
|
|
2929
2932
|
l("combobox:change", y.target.value), l("update:modelValue", y.target.value);
|
|
2930
2933
|
}
|
|
@@ -2932,16 +2935,16 @@ const sn = {
|
|
|
2932
2935
|
l("combobox:change", ""), l("update:modelValue", "");
|
|
2933
2936
|
}
|
|
2934
2937
|
function g(y) {
|
|
2935
|
-
var
|
|
2936
|
-
(
|
|
2938
|
+
var S, p;
|
|
2939
|
+
(S = y.relatedTarget) != null && S.closest(`#${u.value}`) || (p = y.relatedTarget) != null && p.closest(`#${i.value}`) || (o.value = !1);
|
|
2937
2940
|
}
|
|
2938
2941
|
function v(y) {
|
|
2939
2942
|
l("combobox:input", y.target.value), t.updateOnInput && l("update:modelValue", y.target.value);
|
|
2940
2943
|
}
|
|
2941
|
-
function
|
|
2944
|
+
function b(y) {
|
|
2942
2945
|
y === !0 || y === !1 ? o.value = y : o.value = !o.value;
|
|
2943
2946
|
}
|
|
2944
|
-
return (y,
|
|
2947
|
+
return (y, S) => (d(), A(Lt, {
|
|
2945
2948
|
"anchor-id": c(i),
|
|
2946
2949
|
disabled: e.disabled,
|
|
2947
2950
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -2954,12 +2957,12 @@ const sn = {
|
|
|
2954
2957
|
"options-id": c(u),
|
|
2955
2958
|
"selected-option": e.modelValue,
|
|
2956
2959
|
"toggle-id": y.$attrs.id || s.value,
|
|
2957
|
-
onClose:
|
|
2960
|
+
onClose: S[0] || (S[0] = (p) => o.value = !1),
|
|
2958
2961
|
onFocusout: g,
|
|
2959
|
-
"onUpdate:selectedOption":
|
|
2962
|
+
"onUpdate:selectedOption": S[1] || (S[1] = (p) => y.$emit("update:modelValue", p))
|
|
2960
2963
|
}, {
|
|
2961
|
-
toggle:
|
|
2962
|
-
|
|
2964
|
+
toggle: L(() => [
|
|
2965
|
+
E(Bn, F({
|
|
2963
2966
|
id: y.$attrs.id || s.value,
|
|
2964
2967
|
"container-id": c(i),
|
|
2965
2968
|
disabled: e.disabled,
|
|
@@ -2973,13 +2976,13 @@ const sn = {
|
|
|
2973
2976
|
onChange: r,
|
|
2974
2977
|
onClear: m,
|
|
2975
2978
|
onInput: v,
|
|
2976
|
-
onToggled:
|
|
2979
|
+
onToggled: b
|
|
2977
2980
|
}, y.$attrs), null, 16, ["id", "container-id", "disabled", "error", "hint-id", "model-value", "open", "options-id", "placeholder", "required"])
|
|
2978
2981
|
]),
|
|
2979
2982
|
_: 1
|
|
2980
2983
|
}, 8, ["anchor-id", "disabled", "dropdown-position", "dropdown-width", "helper-description", "helper-text", "open", "options", "options-id", "selected-option", "toggle-id"]));
|
|
2981
2984
|
}
|
|
2982
|
-
}),
|
|
2985
|
+
}), Ro = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2983
2986
|
__name: "BsDropdownComboboxField",
|
|
2984
2987
|
props: {
|
|
2985
2988
|
disabled: {
|
|
@@ -3047,22 +3050,22 @@ const sn = {
|
|
|
3047
3050
|
},
|
|
3048
3051
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
3049
3052
|
setup(e, { emit: a }) {
|
|
3050
|
-
const t = e, [l, n] =
|
|
3051
|
-
return (o, s) => (d(),
|
|
3052
|
-
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, {
|
|
3053
3056
|
key: 0,
|
|
3054
3057
|
for: o.$attrs.id || u.value,
|
|
3055
3058
|
disabled: e.disabled,
|
|
3056
3059
|
required: e.required
|
|
3057
3060
|
}, {
|
|
3058
|
-
default:
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
+
default: L(() => [
|
|
3062
|
+
O(o.$slots, "label", {}, () => [
|
|
3063
|
+
U(T(e.label), 1)
|
|
3061
3064
|
])
|
|
3062
3065
|
]),
|
|
3063
3066
|
_: 3
|
|
3064
3067
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
3065
|
-
|
|
3068
|
+
E(Et, F({
|
|
3066
3069
|
disabled: e.disabled,
|
|
3067
3070
|
"display-value": e.displayValue,
|
|
3068
3071
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -3080,8 +3083,8 @@ const sn = {
|
|
|
3080
3083
|
"onCombobox:change": s[0] || (s[0] = (r) => o.$emit("combobox:change", r)),
|
|
3081
3084
|
"onCombobox:input": s[1] || (s[1] = (r) => o.$emit("combobox:input", r)),
|
|
3082
3085
|
"onUpdate:modelValue": s[2] || (s[2] = (r) => o.$emit("update:modelValue", r))
|
|
3083
|
-
}, c(
|
|
3084
|
-
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, {
|
|
3085
3088
|
key: 1,
|
|
3086
3089
|
error: e.error,
|
|
3087
3090
|
"error-msg": e.errorMsg,
|
|
@@ -3126,25 +3129,25 @@ const sn = {
|
|
|
3126
3129
|
"update:modelValue"
|
|
3127
3130
|
],
|
|
3128
3131
|
setup(e, { expose: a, emit: t }) {
|
|
3129
|
-
const l = e, n = t, i = $(null), u = $(null), o = $(-1), s = $(-1), r = $(null), m = $(!1), g =
|
|
3130
|
-
|
|
3131
|
-
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 = {
|
|
3132
3135
|
keys: "",
|
|
3133
3136
|
lastTyped: 0
|
|
3134
3137
|
};
|
|
3135
|
-
|
|
3136
|
-
I(),
|
|
3138
|
+
ve(p, (V) => xe(V, w)), Q(() => {
|
|
3139
|
+
I(), P(b.value);
|
|
3137
3140
|
}), G(
|
|
3138
3141
|
[g, () => {
|
|
3139
|
-
var
|
|
3140
|
-
return (
|
|
3142
|
+
var V;
|
|
3143
|
+
return (V = r.value) == null ? void 0 : V.length;
|
|
3141
3144
|
}],
|
|
3142
|
-
([
|
|
3143
|
-
(
|
|
3145
|
+
([V, j]) => {
|
|
3146
|
+
(V || j > 0) && (m.value = i.value.scrollHeight > i.value.clientHeight);
|
|
3144
3147
|
}
|
|
3145
|
-
), G(v, (
|
|
3146
|
-
|
|
3147
|
-
}), G(
|
|
3148
|
+
), G(v, (V) => {
|
|
3149
|
+
V && (q(), z());
|
|
3150
|
+
}), G(b, (V) => P(V));
|
|
3148
3151
|
const k = f(() => l.modelValue || l.selectedValue);
|
|
3149
3152
|
function I() {
|
|
3150
3153
|
r.value = Array.from(
|
|
@@ -3154,96 +3157,96 @@ const sn = {
|
|
|
3154
3157
|
function q() {
|
|
3155
3158
|
i.value.getBoundingClientRect().bottom > window.innerHeight && i.value.scrollIntoView({ block: "nearest" });
|
|
3156
3159
|
}
|
|
3157
|
-
function
|
|
3158
|
-
var
|
|
3159
|
-
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" }));
|
|
3160
3163
|
}
|
|
3161
|
-
function
|
|
3162
|
-
var
|
|
3163
|
-
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());
|
|
3164
3167
|
}
|
|
3165
|
-
function
|
|
3166
|
-
var
|
|
3167
|
-
o.value > -1 && ((
|
|
3168
|
+
function D() {
|
|
3169
|
+
var V;
|
|
3170
|
+
o.value > -1 && ((V = r.value[o.value]) == null || V.removeAttribute("data-active"));
|
|
3168
3171
|
}
|
|
3169
|
-
function
|
|
3170
|
-
var
|
|
3171
|
-
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();
|
|
3172
3175
|
}
|
|
3173
|
-
function
|
|
3174
|
-
|
|
3176
|
+
function P(V) {
|
|
3177
|
+
V ? H() : te();
|
|
3175
3178
|
}
|
|
3176
|
-
function
|
|
3177
|
-
var
|
|
3179
|
+
function H() {
|
|
3180
|
+
var V, j;
|
|
3178
3181
|
l.multiselect || (s.value = r.value.findIndex(
|
|
3179
3182
|
(M) => M.getAttribute("data-value") === String(k.value)
|
|
3180
|
-
), !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);
|
|
3181
3184
|
}
|
|
3182
|
-
function
|
|
3183
|
-
r.value.forEach((
|
|
3184
|
-
|
|
3185
|
-
}),
|
|
3185
|
+
function te() {
|
|
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;
|
|
3186
3189
|
}
|
|
3187
|
-
function
|
|
3190
|
+
function ue(V) {
|
|
3188
3191
|
var M;
|
|
3189
|
-
(M =
|
|
3190
|
-
let
|
|
3191
|
-
|
|
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");
|
|
3192
3195
|
}
|
|
3193
|
-
function
|
|
3194
|
-
|
|
3196
|
+
function ie(V) {
|
|
3197
|
+
ue(r.value[o.value]), V.preventDefault();
|
|
3195
3198
|
}
|
|
3196
|
-
function Ce(
|
|
3197
|
-
if (
|
|
3198
|
-
switch (
|
|
3199
|
+
function Ce(V) {
|
|
3200
|
+
if (b.value)
|
|
3201
|
+
switch (V.key) {
|
|
3199
3202
|
case "ArrowDown":
|
|
3200
|
-
|
|
3203
|
+
ce("down"), V.preventDefault();
|
|
3201
3204
|
break;
|
|
3202
3205
|
case "ArrowUp":
|
|
3203
|
-
|
|
3206
|
+
ce("up"), V.preventDefault();
|
|
3204
3207
|
break;
|
|
3205
3208
|
case "Home":
|
|
3206
|
-
|
|
3209
|
+
ce("home"), V.preventDefault();
|
|
3207
3210
|
break;
|
|
3208
3211
|
case "End":
|
|
3209
|
-
|
|
3212
|
+
ce("end"), V.preventDefault();
|
|
3210
3213
|
break;
|
|
3211
3214
|
}
|
|
3212
3215
|
}
|
|
3213
|
-
function
|
|
3214
|
-
let
|
|
3215
|
-
switch (
|
|
3216
|
+
function ce(V) {
|
|
3217
|
+
let j;
|
|
3218
|
+
switch (V) {
|
|
3216
3219
|
case "up":
|
|
3217
|
-
|
|
3220
|
+
j = o.value - 1 < 0 ? r.value.length - 1 : o.value - 1;
|
|
3218
3221
|
break;
|
|
3219
3222
|
case "down":
|
|
3220
|
-
|
|
3223
|
+
j = (o.value + 1) % r.value.length;
|
|
3221
3224
|
break;
|
|
3222
3225
|
case "home":
|
|
3223
|
-
|
|
3226
|
+
j = 0;
|
|
3224
3227
|
break;
|
|
3225
3228
|
case "end":
|
|
3226
|
-
|
|
3229
|
+
j = r.value.length - 1;
|
|
3227
3230
|
break;
|
|
3228
3231
|
}
|
|
3229
|
-
we(
|
|
3232
|
+
we(j);
|
|
3230
3233
|
}
|
|
3231
|
-
function xe(
|
|
3232
|
-
if (!
|
|
3233
|
-
|
|
3234
|
-
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));
|
|
3235
3238
|
M > -1 && we(M, !1);
|
|
3236
3239
|
}
|
|
3237
|
-
function we(
|
|
3238
|
-
|
|
3240
|
+
function we(V, j = !0) {
|
|
3241
|
+
D(), o.value = V, document.activeElement !== i.value && j ? i.value.focus() : R();
|
|
3239
3242
|
}
|
|
3240
3243
|
return a({
|
|
3241
3244
|
activeIndex: o,
|
|
3242
3245
|
optionEls: r,
|
|
3243
3246
|
optionsRef: i,
|
|
3244
3247
|
refreshOptions: I,
|
|
3245
|
-
setCurrentActive:
|
|
3246
|
-
}), (
|
|
3248
|
+
setCurrentActive: R
|
|
3249
|
+
}), (V, j) => (d(), h("ul", {
|
|
3247
3250
|
ref_key: "optionsRef",
|
|
3248
3251
|
ref: i,
|
|
3249
3252
|
"aria-activedescendant": u.value || void 0,
|
|
@@ -3254,13 +3257,13 @@ const sn = {
|
|
|
3254
3257
|
"data-overflow": m.value,
|
|
3255
3258
|
id: e.optionsId,
|
|
3256
3259
|
role: "listbox",
|
|
3257
|
-
tabindex: c(
|
|
3258
|
-
onBlur:
|
|
3259
|
-
onFocus:
|
|
3260
|
-
onMousedown:
|
|
3260
|
+
tabindex: c(b) ? 0 : void 0,
|
|
3261
|
+
onBlur: D,
|
|
3262
|
+
onFocus: W,
|
|
3263
|
+
onMousedown: j[0] || (j[0] = wt(() => {
|
|
3261
3264
|
}, ["prevent"]))
|
|
3262
3265
|
}, [
|
|
3263
|
-
V
|
|
3266
|
+
O(V.$slots, "default")
|
|
3264
3267
|
], 40, Mn));
|
|
3265
3268
|
}
|
|
3266
3269
|
}, Nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -3305,11 +3308,11 @@ const sn = {
|
|
|
3305
3308
|
],
|
|
3306
3309
|
setup(e, { emit: a }) {
|
|
3307
3310
|
const t = e, l = a, n = $(null), i = $([]), u = $([]), o = f(() => {
|
|
3308
|
-
var
|
|
3309
|
-
return ((
|
|
3311
|
+
var S, p;
|
|
3312
|
+
return ((S = i.value) == null ? void 0 : S.length) && ((p = u.value) == null ? void 0 : p.length);
|
|
3310
3313
|
}), s = f(() => {
|
|
3311
|
-
var
|
|
3312
|
-
return ((
|
|
3314
|
+
var S, p;
|
|
3315
|
+
return ((S = i.value) == null ? void 0 : S.length) || ((p = u.value) == null ? void 0 : p.length);
|
|
3313
3316
|
});
|
|
3314
3317
|
let r = !1;
|
|
3315
3318
|
G(() => t.options, () => {
|
|
@@ -3318,8 +3321,8 @@ const sn = {
|
|
|
3318
3321
|
() => t.selectedOptions,
|
|
3319
3322
|
v,
|
|
3320
3323
|
{ immediate: !0 }
|
|
3321
|
-
), G(() => t.shown, (
|
|
3322
|
-
|
|
3324
|
+
), G(() => t.shown, (S) => {
|
|
3325
|
+
S && t.focusOnOpen && Ae(m);
|
|
3323
3326
|
});
|
|
3324
3327
|
function m() {
|
|
3325
3328
|
n.value && (n.value.refreshOptions(), n.value.optionsRef.focus());
|
|
@@ -3327,28 +3330,28 @@ const sn = {
|
|
|
3327
3330
|
function g() {
|
|
3328
3331
|
n.value && (n.value.refreshOptions(), n.value.setCurrentActive());
|
|
3329
3332
|
}
|
|
3330
|
-
function v(
|
|
3331
|
-
const p = new Set(
|
|
3333
|
+
function v(S = []) {
|
|
3334
|
+
const p = new Set(S), w = [], k = [];
|
|
3332
3335
|
t.options.forEach((I) => {
|
|
3333
|
-
const q = { ...I },
|
|
3334
|
-
p.has(I.value) ? (q.checkbox = { inputId:
|
|
3335
|
-
}), 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(() => {
|
|
3336
3339
|
u.value = k, Ae(() => {
|
|
3337
3340
|
r && g(), r = !1;
|
|
3338
3341
|
});
|
|
3339
3342
|
});
|
|
3340
3343
|
}
|
|
3341
|
-
function
|
|
3342
|
-
const p = new Set(
|
|
3344
|
+
function b(S = []) {
|
|
3345
|
+
const p = new Set(S), w = [];
|
|
3343
3346
|
return t.options.forEach((k) => {
|
|
3344
|
-
p.has(k.value) &&
|
|
3345
|
-
}),
|
|
3347
|
+
p.has(k.value) && w.push(k.value);
|
|
3348
|
+
}), w;
|
|
3346
3349
|
}
|
|
3347
|
-
function y(
|
|
3350
|
+
function y(S) {
|
|
3348
3351
|
let p = [];
|
|
3349
|
-
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);
|
|
3350
3353
|
}
|
|
3351
|
-
return (
|
|
3354
|
+
return (S, p) => (d(), A(Re, {
|
|
3352
3355
|
ref_key: "optlist",
|
|
3353
3356
|
ref: n,
|
|
3354
3357
|
"aria-multiselectable": "true",
|
|
@@ -3359,24 +3362,24 @@ const sn = {
|
|
|
3359
3362
|
shown: e.shown,
|
|
3360
3363
|
"onUpdate:modelValue": y
|
|
3361
3364
|
}, {
|
|
3362
|
-
default:
|
|
3363
|
-
s.value ? (d(),
|
|
3364
|
-
|
|
3365
|
+
default: L(() => [
|
|
3366
|
+
s.value ? (d(), h(Y, { key: 0 }, [
|
|
3367
|
+
E(qe, {
|
|
3365
3368
|
options: i.value,
|
|
3366
3369
|
"show-no-options": !1
|
|
3367
3370
|
}, null, 8, ["options"]),
|
|
3368
|
-
|
|
3371
|
+
pe(B("li", zn, p[0] || (p[0] = [
|
|
3369
3372
|
B("hr", null, null, -1)
|
|
3370
3373
|
]), 512), [
|
|
3371
|
-
[
|
|
3374
|
+
[me, o.value]
|
|
3372
3375
|
]),
|
|
3373
|
-
|
|
3376
|
+
E(qe, {
|
|
3374
3377
|
options: u.value,
|
|
3375
3378
|
"show-no-options": !1
|
|
3376
3379
|
}, null, 8, ["options"])
|
|
3377
|
-
], 64)) : (d(),
|
|
3378
|
-
|
|
3379
|
-
p[1] || (p[1] =
|
|
3380
|
+
], 64)) : (d(), h("li", Fn, [
|
|
3381
|
+
O(S.$slots, "no-options", {}, () => [
|
|
3382
|
+
p[1] || (p[1] = U("No options"))
|
|
3380
3383
|
])
|
|
3381
3384
|
]))
|
|
3382
3385
|
]),
|
|
@@ -3471,7 +3474,7 @@ const sn = {
|
|
|
3471
3474
|
function u() {
|
|
3472
3475
|
l.value && (l.value = !1, t("close"));
|
|
3473
3476
|
}
|
|
3474
|
-
return (o, s) => (d(),
|
|
3477
|
+
return (o, s) => (d(), A(c(ot), {
|
|
3475
3478
|
"anchor-id": e.anchorId,
|
|
3476
3479
|
breakout: e.breakout,
|
|
3477
3480
|
"container-id": e.containerId,
|
|
@@ -3487,8 +3490,8 @@ const sn = {
|
|
|
3487
3490
|
onEnter: n,
|
|
3488
3491
|
onAfterLeave: s[1] || (s[1] = (r) => t("after-leave"))
|
|
3489
3492
|
}, {
|
|
3490
|
-
default:
|
|
3491
|
-
|
|
3493
|
+
default: L(() => [
|
|
3494
|
+
E(c(Re), {
|
|
3492
3495
|
label: e.label,
|
|
3493
3496
|
"model-value": e.modelValue,
|
|
3494
3497
|
"options-id": e.optionsId,
|
|
@@ -3497,8 +3500,8 @@ const sn = {
|
|
|
3497
3500
|
"onUpdate:modelValue": i,
|
|
3498
3501
|
onClose: u
|
|
3499
3502
|
}, {
|
|
3500
|
-
default:
|
|
3501
|
-
|
|
3503
|
+
default: L(() => [
|
|
3504
|
+
O(o.$slots, "default")
|
|
3502
3505
|
]),
|
|
3503
3506
|
_: 3
|
|
3504
3507
|
}, 8, ["label", "model-value", "options-id", "prevent-tab", "type-to-focus"])
|
|
@@ -3624,7 +3627,7 @@ const sn = {
|
|
|
3624
3627
|
function r(m) {
|
|
3625
3628
|
l("optselected", m), l("update:modelValue", m);
|
|
3626
3629
|
}
|
|
3627
|
-
return (m, g) => (d(),
|
|
3630
|
+
return (m, g) => (d(), A(Wn, {
|
|
3628
3631
|
"anchor-id": o.value,
|
|
3629
3632
|
breakout: e.breakout,
|
|
3630
3633
|
"container-id": e.containerId,
|
|
@@ -3644,16 +3647,16 @@ const sn = {
|
|
|
3644
3647
|
onAfterLeave: g[2] || (g[2] = (v) => l("after-leave")),
|
|
3645
3648
|
"onUpdate:modelValue": r
|
|
3646
3649
|
}, {
|
|
3647
|
-
default:
|
|
3648
|
-
|
|
3650
|
+
default: L(() => [
|
|
3651
|
+
O(m.$slots, "default")
|
|
3649
3652
|
]),
|
|
3650
3653
|
_: 3
|
|
3651
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"]));
|
|
3652
3655
|
}
|
|
3653
|
-
}, 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 = {
|
|
3654
3657
|
key: 0,
|
|
3655
3658
|
class: "bs-empty-state-description"
|
|
3656
|
-
},
|
|
3659
|
+
}, Wo = {
|
|
3657
3660
|
__name: "BsEmptyState",
|
|
3658
3661
|
props: {
|
|
3659
3662
|
description: {
|
|
@@ -3676,28 +3679,28 @@ const sn = {
|
|
|
3676
3679
|
},
|
|
3677
3680
|
setup(e) {
|
|
3678
3681
|
const a = e, { icon: t } = Oe(a, "iconName");
|
|
3679
|
-
return (l, n) => (d(),
|
|
3682
|
+
return (l, n) => (d(), h("div", {
|
|
3680
3683
|
class: "bs-empty-state",
|
|
3681
3684
|
"data-component": "bs-empty-state",
|
|
3682
3685
|
"data-size": e.size
|
|
3683
3686
|
}, [
|
|
3684
3687
|
B("div", Un, [
|
|
3685
|
-
|
|
3686
|
-
(d(),
|
|
3688
|
+
O(l.$slots, "icon", {}, () => [
|
|
3689
|
+
(d(), A(ne(c(t)), { size: "auto" }))
|
|
3687
3690
|
])
|
|
3688
3691
|
]),
|
|
3689
3692
|
B("div", null, [
|
|
3690
|
-
B("p",
|
|
3691
|
-
e.size !== "xs" ? (d(),
|
|
3692
|
-
|
|
3693
|
-
|
|
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)
|
|
3694
3697
|
])
|
|
3695
3698
|
])) : C("", !0),
|
|
3696
|
-
|
|
3699
|
+
O(l.$slots, "call-to-action")
|
|
3697
3700
|
])
|
|
3698
3701
|
], 8, jn));
|
|
3699
3702
|
}
|
|
3700
|
-
}, 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 }, {
|
|
3701
3704
|
__name: "BsFlyout",
|
|
3702
3705
|
props: {
|
|
3703
3706
|
absolute: {
|
|
@@ -3734,17 +3737,17 @@ const sn = {
|
|
|
3734
3737
|
emits: ["close"],
|
|
3735
3738
|
setup(e, { emit: a }) {
|
|
3736
3739
|
const t = e, l = a, n = $(null), i = f(() => document.getElementById(t.toggleId));
|
|
3737
|
-
Ct([n, i], u),
|
|
3740
|
+
Ct([n, i], u), ve(["Escape"], u);
|
|
3738
3741
|
function u() {
|
|
3739
3742
|
t.shown && l("close");
|
|
3740
3743
|
}
|
|
3741
|
-
return (o, s) => (d(),
|
|
3744
|
+
return (o, s) => (d(), A(Pe, {
|
|
3742
3745
|
name: "bs-flyout",
|
|
3743
3746
|
preloaded: e.preloaded,
|
|
3744
3747
|
shown: e.shown
|
|
3745
3748
|
}, {
|
|
3746
|
-
default:
|
|
3747
|
-
B("div",
|
|
3749
|
+
default: L(() => [
|
|
3750
|
+
B("div", F({
|
|
3748
3751
|
ref_key: "flyout",
|
|
3749
3752
|
ref: n,
|
|
3750
3753
|
class: "bs-flyout",
|
|
@@ -3761,35 +3764,35 @@ const sn = {
|
|
|
3761
3764
|
"aria-label": "Close",
|
|
3762
3765
|
onClick: u
|
|
3763
3766
|
}, [
|
|
3764
|
-
|
|
3767
|
+
E(c(Ie))
|
|
3765
3768
|
])
|
|
3766
3769
|
]),
|
|
3767
|
-
|
|
3770
|
+
O(o.$slots, "default")
|
|
3768
3771
|
], 16, Kn)
|
|
3769
3772
|
]),
|
|
3770
3773
|
_: 3
|
|
3771
3774
|
}, 8, ["preloaded", "shown"]));
|
|
3772
3775
|
}
|
|
3773
|
-
}), 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 }, {
|
|
3774
3777
|
__name: "BsIconGradientWrapper",
|
|
3775
3778
|
setup(e) {
|
|
3776
3779
|
const a = $(null), t = $(null), l = [
|
|
3777
3780
|
{ offset: 0.1326, color: "#EE282A" },
|
|
3778
3781
|
{ offset: 0.5466, color: "#1C0087" },
|
|
3779
3782
|
{ offset: 0.9715, color: "#0086EA" }
|
|
3780
|
-
], [n] =
|
|
3781
|
-
return
|
|
3783
|
+
], [n] = J();
|
|
3784
|
+
return Q(() => {
|
|
3782
3785
|
t.value = a.value.querySelector("svg").getAttribute("viewBox") || "0 0 0 0";
|
|
3783
|
-
}), (i, u) => (d(),
|
|
3784
|
-
B("span",
|
|
3786
|
+
}), (i, u) => (d(), h(Y, null, [
|
|
3787
|
+
B("span", F({
|
|
3785
3788
|
ref_key: "svgWrapperRef",
|
|
3786
3789
|
ref: a,
|
|
3787
3790
|
class: "bs-icon-gradient-wrapper",
|
|
3788
3791
|
style: `fill: url(#${c(n)});`
|
|
3789
3792
|
}, i.$attrs), [
|
|
3790
|
-
|
|
3793
|
+
O(i.$slots, "default")
|
|
3791
3794
|
], 16),
|
|
3792
|
-
(d(),
|
|
3795
|
+
(d(), h("svg", {
|
|
3793
3796
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3794
3797
|
"view-box": t.value,
|
|
3795
3798
|
width: "0",
|
|
@@ -3803,7 +3806,7 @@ const sn = {
|
|
|
3803
3806
|
y2: "100%",
|
|
3804
3807
|
"gradient-units": "userSpaceOnUse"
|
|
3805
3808
|
}, [
|
|
3806
|
-
(d(),
|
|
3809
|
+
(d(), h(Y, null, ae(l, (o) => B("stop", {
|
|
3807
3810
|
key: o.offset,
|
|
3808
3811
|
offset: o.offset,
|
|
3809
3812
|
"stop-color": o.color
|
|
@@ -3812,7 +3815,7 @@ const sn = {
|
|
|
3812
3815
|
], 8, Zn))
|
|
3813
3816
|
], 64));
|
|
3814
3817
|
}
|
|
3815
|
-
}),
|
|
3818
|
+
}), Ho = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3816
3819
|
__name: "BsInputField",
|
|
3817
3820
|
props: {
|
|
3818
3821
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -3859,26 +3862,26 @@ const sn = {
|
|
|
3859
3862
|
},
|
|
3860
3863
|
emits: ["update:modelValue"],
|
|
3861
3864
|
setup(e, { emit: a }) {
|
|
3862
|
-
const t = e, [l, n] =
|
|
3865
|
+
const t = e, [l, n] = J(2), i = f(() => ge.concat(t.passAttrs.split(",")).concat("type")), u = f(() => {
|
|
3863
3866
|
var r, m;
|
|
3864
3867
|
return ((m = (r = t.hints) == null ? void 0 : r.join) == null ? void 0 : m.call(r, `
|
|
3865
3868
|
`)) || t.hints;
|
|
3866
3869
|
}), o = f(() => t.error && t.errorMsg || t.hint || u.value || void 0), s = f(() => t.inputId || l.value);
|
|
3867
|
-
return (r, m) => (d(),
|
|
3868
|
-
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, {
|
|
3869
3872
|
key: 0,
|
|
3870
3873
|
for: r.$attrs.id || s.value,
|
|
3871
3874
|
disabled: e.disabled,
|
|
3872
3875
|
required: e.required
|
|
3873
3876
|
}, {
|
|
3874
|
-
default:
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
+
default: L(() => [
|
|
3878
|
+
O(r.$slots, "label", {}, () => [
|
|
3879
|
+
U(T(e.label), 1)
|
|
3877
3880
|
])
|
|
3878
3881
|
]),
|
|
3879
3882
|
_: 3
|
|
3880
3883
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
3881
|
-
|
|
3884
|
+
E(ke, F({
|
|
3882
3885
|
disabled: e.disabled,
|
|
3883
3886
|
error: e.error,
|
|
3884
3887
|
"hint-id": c(n),
|
|
@@ -3888,8 +3891,8 @@ const sn = {
|
|
|
3888
3891
|
type: e.type,
|
|
3889
3892
|
value: e.value || e.modelValue,
|
|
3890
3893
|
"onUpdate:modelValue": m[0] || (m[0] = (g) => r.$emit("update:modelValue", g))
|
|
3891
|
-
}, c(
|
|
3892
|
-
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, {
|
|
3893
3896
|
key: 1,
|
|
3894
3897
|
error: e.error,
|
|
3895
3898
|
"error-msg": e.errorMsg,
|
|
@@ -3898,7 +3901,7 @@ const sn = {
|
|
|
3898
3901
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : C("", !0)
|
|
3899
3902
|
], 16));
|
|
3900
3903
|
}
|
|
3901
|
-
}),
|
|
3904
|
+
}), ht = {
|
|
3902
3905
|
A: "🇦",
|
|
3903
3906
|
B: "🇧",
|
|
3904
3907
|
C: "🇨",
|
|
@@ -3952,7 +3955,7 @@ const sn = {
|
|
|
3952
3955
|
*/
|
|
3953
3956
|
initSourceData() {
|
|
3954
3957
|
return this.data.allCountries || (this.data.allCountries = ma().map((e) => {
|
|
3955
|
-
const a =
|
|
3958
|
+
const a = ha(e), t = ht[a[0]] + ht[a[1]] || "";
|
|
3956
3959
|
return {
|
|
3957
3960
|
label: `+${e}`,
|
|
3958
3961
|
flag: t,
|
|
@@ -4035,77 +4038,77 @@ const sn = {
|
|
|
4035
4038
|
m,
|
|
4036
4039
|
g,
|
|
4037
4040
|
v,
|
|
4038
|
-
|
|
4039
|
-
] =
|
|
4041
|
+
b
|
|
4042
|
+
] = J(4), y = $(!1), S = $(""), p = $(""), w = $(!1), k = $(!1), I = $(!0);
|
|
4040
4043
|
a({
|
|
4041
|
-
validationErr:
|
|
4044
|
+
validationErr: w,
|
|
4042
4045
|
validationErrMsg: p
|
|
4043
4046
|
});
|
|
4044
|
-
const q = f(() =>
|
|
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);
|
|
4045
4048
|
G(q, (M) => {
|
|
4046
|
-
n("update:modelValue", M),
|
|
4047
|
-
}), G(() => l.modelValue,
|
|
4048
|
-
function
|
|
4049
|
-
M === "" && 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 = "");
|
|
4050
4053
|
}
|
|
4051
|
-
function
|
|
4054
|
+
function te() {
|
|
4052
4055
|
var M;
|
|
4053
4056
|
k.value && (k.value = !1, (M = u.value) == null || M.focus());
|
|
4054
4057
|
}
|
|
4055
|
-
function
|
|
4056
|
-
var
|
|
4057
|
-
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);
|
|
4058
4061
|
}
|
|
4059
|
-
function
|
|
4062
|
+
function ie() {
|
|
4060
4063
|
l.deferValidation && (I.value = !0), n("input-blur");
|
|
4061
4064
|
}
|
|
4062
4065
|
function Ce(M) {
|
|
4063
|
-
|
|
4066
|
+
S.value = M.target.value, l.deferValidation && (I.value = !1);
|
|
4064
4067
|
}
|
|
4065
|
-
function
|
|
4066
|
-
var
|
|
4067
|
-
!((
|
|
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();
|
|
4068
4071
|
}
|
|
4069
4072
|
function xe() {
|
|
4070
|
-
je.initSourceData(), we(),
|
|
4073
|
+
je.initSourceData(), we(), V(o.value), j(q.value);
|
|
4071
4074
|
}
|
|
4072
4075
|
function we() {
|
|
4073
|
-
var
|
|
4076
|
+
var Z, _;
|
|
4074
4077
|
let M = ct(l.modelValue);
|
|
4075
|
-
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) => ({
|
|
4076
4079
|
...Te,
|
|
4077
4080
|
isSelected: o.value === Te
|
|
4078
4081
|
}));
|
|
4079
4082
|
}
|
|
4080
|
-
function
|
|
4083
|
+
function V(M) {
|
|
4081
4084
|
r.value = je.getCountryByCountryCode(M);
|
|
4082
4085
|
}
|
|
4083
|
-
function
|
|
4084
|
-
|
|
4086
|
+
function j(M) {
|
|
4087
|
+
w.value = M ? !ct(M).valid : !1, p.value = w.value ? "Invalid phone number" : "";
|
|
4085
4088
|
}
|
|
4086
|
-
return (M,
|
|
4089
|
+
return (M, Z) => (d(), h("div", F({
|
|
4087
4090
|
class: "bs-input-phone",
|
|
4088
4091
|
"data-component": "bs-input-phone"
|
|
4089
|
-
}, c(
|
|
4090
|
-
|
|
4091
|
-
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),
|
|
4092
4095
|
required: e.required,
|
|
4093
4096
|
disabled: e.disabled,
|
|
4094
|
-
class:
|
|
4097
|
+
class: oe({ "visually-hidden": e.hideLabel })
|
|
4095
4098
|
}, {
|
|
4096
|
-
default:
|
|
4097
|
-
|
|
4099
|
+
default: L(() => [
|
|
4100
|
+
U(T(e.label), 1)
|
|
4098
4101
|
]),
|
|
4099
4102
|
_: 1
|
|
4100
4103
|
}, 8, ["for", "required", "disabled", "class"]),
|
|
4101
|
-
|
|
4104
|
+
E(De, {
|
|
4102
4105
|
disabled: e.disabled,
|
|
4103
|
-
error:
|
|
4106
|
+
error: P.value,
|
|
4104
4107
|
multifocus: !0,
|
|
4105
4108
|
variant: "inner-bordered"
|
|
4106
4109
|
}, {
|
|
4107
|
-
default:
|
|
4108
|
-
var
|
|
4110
|
+
default: L(() => {
|
|
4111
|
+
var _;
|
|
4109
4112
|
return [
|
|
4110
4113
|
B("button", {
|
|
4111
4114
|
id: c(m),
|
|
@@ -4114,42 +4117,42 @@ const sn = {
|
|
|
4114
4117
|
"aria-controls": c(g),
|
|
4115
4118
|
"aria-expanded": k.value,
|
|
4116
4119
|
"aria-haspopup": "listbox",
|
|
4117
|
-
"aria-label":
|
|
4120
|
+
"aria-label": z.value,
|
|
4118
4121
|
disabled: e.disabled,
|
|
4119
4122
|
type: "button",
|
|
4120
|
-
onClick:
|
|
4123
|
+
onClick: Z[0] || (Z[0] = (Te) => k.value = !k.value)
|
|
4121
4124
|
}, [
|
|
4122
|
-
B("span", null,
|
|
4123
|
-
B("span", null, "+" +
|
|
4124
|
-
|
|
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" })
|
|
4125
4128
|
], 8, Jn),
|
|
4126
|
-
|
|
4127
|
-
"input-id": M.$attrs.id || e.inputId || c(
|
|
4129
|
+
E(ke, F({
|
|
4130
|
+
"input-id": M.$attrs.id || e.inputId || c(b),
|
|
4128
4131
|
disabled: e.disabled,
|
|
4129
4132
|
"hint-id": c(v),
|
|
4130
4133
|
placeholder: e.placeholder,
|
|
4131
|
-
value:
|
|
4134
|
+
value: S.value,
|
|
4132
4135
|
"data-autowidth": "",
|
|
4133
4136
|
type: "tel"
|
|
4134
|
-
}, c(
|
|
4137
|
+
}, c(X)(M.$attrs, c(ge)).filtered, {
|
|
4135
4138
|
onInput: Ce,
|
|
4136
|
-
onFocusout:
|
|
4137
|
-
onKeydown:
|
|
4139
|
+
onFocusout: ie,
|
|
4140
|
+
onKeydown: ce
|
|
4138
4141
|
}), null, 16, ["input-id", "disabled", "hint-id", "placeholder", "value"])
|
|
4139
4142
|
];
|
|
4140
4143
|
}),
|
|
4141
4144
|
_: 1
|
|
4142
4145
|
}, 8, ["disabled", "error"]),
|
|
4143
|
-
|
|
4144
|
-
error:
|
|
4145
|
-
"error-msg":
|
|
4146
|
+
pe(E(ye, {
|
|
4147
|
+
error: D.value,
|
|
4148
|
+
"error-msg": R.value,
|
|
4146
4149
|
hint: e.hint,
|
|
4147
4150
|
"hint-id": c(v)
|
|
4148
4151
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
4149
|
-
[
|
|
4152
|
+
[me, W.value]
|
|
4150
4153
|
]),
|
|
4151
|
-
y.value ? (d(),
|
|
4152
|
-
|
|
4154
|
+
y.value ? (d(), h("div", _n, [
|
|
4155
|
+
E(Pt, {
|
|
4153
4156
|
"anchor-id": c(m),
|
|
4154
4157
|
"helper-text": "Country Code",
|
|
4155
4158
|
label: "Country Code",
|
|
@@ -4158,19 +4161,19 @@ const sn = {
|
|
|
4158
4161
|
preloaded: "",
|
|
4159
4162
|
shown: k.value,
|
|
4160
4163
|
width: "content",
|
|
4161
|
-
onClose:
|
|
4162
|
-
"onUpdate:modelValue":
|
|
4164
|
+
onClose: te,
|
|
4165
|
+
"onUpdate:modelValue": ue
|
|
4163
4166
|
}, {
|
|
4164
|
-
default:
|
|
4165
|
-
y.value ? (d(!0),
|
|
4166
|
-
"aria-label":
|
|
4167
|
-
key:
|
|
4168
|
-
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}`,
|
|
4169
4172
|
variant: "2-col"
|
|
4170
4173
|
}, {
|
|
4171
|
-
default:
|
|
4172
|
-
B("span", el,
|
|
4173
|
-
B("span", tl,
|
|
4174
|
+
default: L(() => [
|
|
4175
|
+
B("span", el, T(_ == null ? void 0 : _.flag), 1),
|
|
4176
|
+
B("span", tl, T(_.label), 1)
|
|
4174
4177
|
]),
|
|
4175
4178
|
_: 2
|
|
4176
4179
|
}, 1032, ["aria-label", "value"]))), 128)) : C("", !0)
|
|
@@ -4180,7 +4183,7 @@ const sn = {
|
|
|
4180
4183
|
])) : C("", !0)
|
|
4181
4184
|
], 16));
|
|
4182
4185
|
}
|
|
4183
|
-
}), al = ["data-size", "data-variant"], nl = ["stroke"], ll = { key: 0 },
|
|
4186
|
+
}), al = ["data-size", "data-variant"], nl = ["stroke"], ll = { key: 0 }, bt = {
|
|
4184
4187
|
__name: "BsSpinner",
|
|
4185
4188
|
props: {
|
|
4186
4189
|
label: {
|
|
@@ -4197,7 +4200,7 @@ const sn = {
|
|
|
4197
4200
|
}
|
|
4198
4201
|
},
|
|
4199
4202
|
setup(e) {
|
|
4200
|
-
return (a, t) => (d(),
|
|
4203
|
+
return (a, t) => (d(), h("svg", {
|
|
4201
4204
|
class: "bs-spinner",
|
|
4202
4205
|
"data-component": "bs-spinner",
|
|
4203
4206
|
"data-size": e.size,
|
|
@@ -4207,7 +4210,7 @@ const sn = {
|
|
|
4207
4210
|
viewBox: "0 0 100 100",
|
|
4208
4211
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4209
4212
|
}, [
|
|
4210
|
-
B("title", null,
|
|
4213
|
+
B("title", null, T(e.label), 1),
|
|
4211
4214
|
B("circle", {
|
|
4212
4215
|
cx: "50",
|
|
4213
4216
|
cy: "50",
|
|
@@ -4215,7 +4218,7 @@ const sn = {
|
|
|
4215
4218
|
r: "45",
|
|
4216
4219
|
stroke: e.variant === "gradient" ? "url(#bs-spinner-gradient)" : void 0
|
|
4217
4220
|
}, null, 8, nl),
|
|
4218
|
-
e.variant === "gradient" ? (d(),
|
|
4221
|
+
e.variant === "gradient" ? (d(), h("defs", ll, t[0] || (t[0] = [
|
|
4219
4222
|
B("linearGradient", { id: "bs-spinner-gradient" }, [
|
|
4220
4223
|
B("stop", { offset: "0%" }),
|
|
4221
4224
|
B("stop", { offset: "49%" }),
|
|
@@ -4224,7 +4227,7 @@ const sn = {
|
|
|
4224
4227
|
]))) : C("", !0)
|
|
4225
4228
|
], 8, al));
|
|
4226
4229
|
}
|
|
4227
|
-
}, 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 = {
|
|
4228
4231
|
__name: "BsInputTypeahead",
|
|
4229
4232
|
props: {
|
|
4230
4233
|
characterThreshold: {
|
|
@@ -4235,6 +4238,14 @@ const sn = {
|
|
|
4235
4238
|
type: Boolean,
|
|
4236
4239
|
default: !1
|
|
4237
4240
|
},
|
|
4241
|
+
error: {
|
|
4242
|
+
type: Boolean,
|
|
4243
|
+
default: !1
|
|
4244
|
+
},
|
|
4245
|
+
errorMsg: {
|
|
4246
|
+
type: String,
|
|
4247
|
+
default: ""
|
|
4248
|
+
},
|
|
4238
4249
|
filterType: {
|
|
4239
4250
|
type: String,
|
|
4240
4251
|
default: "starts-with",
|
|
@@ -4244,6 +4255,10 @@ const sn = {
|
|
|
4244
4255
|
type: Boolean,
|
|
4245
4256
|
default: !1
|
|
4246
4257
|
},
|
|
4258
|
+
hint: {
|
|
4259
|
+
type: String,
|
|
4260
|
+
default: ""
|
|
4261
|
+
},
|
|
4247
4262
|
inputValue: {
|
|
4248
4263
|
type: String,
|
|
4249
4264
|
default: ""
|
|
@@ -4296,146 +4311,148 @@ const sn = {
|
|
|
4296
4311
|
},
|
|
4297
4312
|
emits: ["update:inputValue", "update:optionsValue"],
|
|
4298
4313
|
setup(e, { emit: a }) {
|
|
4299
|
-
const t = e, l = a, n = $(!1), i = $(!1), [u] =
|
|
4300
|
-
let
|
|
4314
|
+
const t = e, l = a, n = $(!1), i = $(!1), [u, o] = J(2);
|
|
4315
|
+
let s = [];
|
|
4301
4316
|
G(() => t.inputValue, () => {
|
|
4302
|
-
i.value ? i.value = !1 :
|
|
4317
|
+
i.value ? i.value = !1 : k();
|
|
4303
4318
|
});
|
|
4304
|
-
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(() => {
|
|
4305
4320
|
if (n.value) {
|
|
4306
|
-
let
|
|
4307
|
-
const
|
|
4308
|
-
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;
|
|
4309
4324
|
} else
|
|
4310
|
-
return
|
|
4325
|
+
return s;
|
|
4311
4326
|
});
|
|
4312
|
-
function
|
|
4313
|
-
return t.internalFiltering ?
|
|
4314
|
-
}
|
|
4315
|
-
function w(
|
|
4316
|
-
return
|
|
4317
|
-
let
|
|
4318
|
-
if (
|
|
4319
|
-
const
|
|
4320
|
-
|
|
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>');
|
|
4321
4336
|
}
|
|
4322
|
-
return { ...
|
|
4337
|
+
return { ...H, labelHtml: te };
|
|
4323
4338
|
});
|
|
4324
4339
|
}
|
|
4325
|
-
function
|
|
4340
|
+
function k() {
|
|
4326
4341
|
t.showDropdownOnFocus || t.inputValue.length >= t.characterThreshold ? n.value = !0 : n.value = !1;
|
|
4327
4342
|
}
|
|
4328
|
-
function
|
|
4329
|
-
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();
|
|
4330
4345
|
}
|
|
4331
|
-
function
|
|
4346
|
+
function q(D) {
|
|
4332
4347
|
i.value = !0;
|
|
4333
|
-
const
|
|
4334
|
-
l("update:inputValue",
|
|
4348
|
+
const W = S.value.find((P) => P.value === D);
|
|
4349
|
+
l("update:inputValue", W.label), l("update:optionsValue", D);
|
|
4335
4350
|
}
|
|
4336
|
-
function
|
|
4337
|
-
const
|
|
4338
|
-
l("update:optionsValue",
|
|
4351
|
+
function z(D) {
|
|
4352
|
+
const W = [...y.value, D];
|
|
4353
|
+
l("update:optionsValue", W);
|
|
4339
4354
|
}
|
|
4340
|
-
function
|
|
4341
|
-
const
|
|
4342
|
-
l("update:optionsValue",
|
|
4355
|
+
function R(D) {
|
|
4356
|
+
const W = y.value.filter((P) => P !== D);
|
|
4357
|
+
l("update:optionsValue", W);
|
|
4343
4358
|
}
|
|
4344
|
-
return (
|
|
4345
|
-
e.label ||
|
|
4359
|
+
return (D, W) => (d(), h(Y, null, [
|
|
4360
|
+
e.label || D.$slots.label ? (d(), A(le, {
|
|
4346
4361
|
key: 0,
|
|
4347
|
-
for:
|
|
4362
|
+
for: v.value,
|
|
4348
4363
|
disabled: e.disabled,
|
|
4349
4364
|
required: e.required
|
|
4350
4365
|
}, {
|
|
4351
|
-
default:
|
|
4352
|
-
|
|
4353
|
-
|
|
4366
|
+
default: L(() => [
|
|
4367
|
+
O(D.$slots, "label", {}, () => [
|
|
4368
|
+
U(T(e.label), 1)
|
|
4354
4369
|
])
|
|
4355
4370
|
]),
|
|
4356
4371
|
_: 3
|
|
4357
4372
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
4358
4373
|
B("div", {
|
|
4359
|
-
id:
|
|
4374
|
+
id: g.value,
|
|
4360
4375
|
class: "typeahead-search-wrapper"
|
|
4361
4376
|
}, [
|
|
4362
|
-
|
|
4363
|
-
"aria-controls":
|
|
4377
|
+
E(Vt, F({
|
|
4378
|
+
"aria-controls": b.value,
|
|
4379
|
+
"aria-describedby": m.value ? c(o) : void 0,
|
|
4364
4380
|
"aria-expanded": n.value,
|
|
4365
4381
|
"aria-haspopup": "listbox",
|
|
4366
4382
|
autocomplete: "off",
|
|
4367
4383
|
disabled: e.disabled,
|
|
4384
|
+
error: e.error,
|
|
4368
4385
|
"hide-clear": e.inputValue === "",
|
|
4369
4386
|
"hide-search-icon": e.hideSearchIcon,
|
|
4370
|
-
"input-id":
|
|
4371
|
-
"pass-attrs": "aria-controls,aria-expanded,role",
|
|
4387
|
+
"input-id": v.value,
|
|
4388
|
+
"pass-attrs": "aria-controls,aria-describedby,aria-expanded,role",
|
|
4372
4389
|
placeholder: e.placeholder,
|
|
4373
4390
|
role: "combobox",
|
|
4374
4391
|
value: e.inputValue
|
|
4375
|
-
},
|
|
4376
|
-
onClear:
|
|
4377
|
-
onFocusin:
|
|
4378
|
-
"onUpdate:modelValue":
|
|
4379
|
-
}), 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"])
|
|
4380
4397
|
], 8, ol),
|
|
4381
|
-
|
|
4382
|
-
"anchor-id":
|
|
4398
|
+
E(ot, {
|
|
4399
|
+
"anchor-id": g.value,
|
|
4383
4400
|
preloaded: !0,
|
|
4384
4401
|
shown: n.value,
|
|
4385
4402
|
"use-mobile-style": !1,
|
|
4386
4403
|
width: "toggle",
|
|
4387
|
-
onClose:
|
|
4404
|
+
onClose: W[2] || (W[2] = (P) => n.value = !1)
|
|
4388
4405
|
}, {
|
|
4389
|
-
default:
|
|
4390
|
-
e.multiselect ? (d(),
|
|
4406
|
+
default: L(() => [
|
|
4407
|
+
e.multiselect ? (d(), A(Dt, {
|
|
4391
4408
|
key: 0,
|
|
4392
4409
|
"focus-on-open": !1,
|
|
4393
4410
|
label: e.label,
|
|
4394
|
-
options:
|
|
4395
|
-
"options-id":
|
|
4396
|
-
"selected-options":
|
|
4411
|
+
options: S.value,
|
|
4412
|
+
"options-id": b.value,
|
|
4413
|
+
"selected-options": y.value,
|
|
4397
4414
|
shown: n.value,
|
|
4398
|
-
onCheckOption:
|
|
4399
|
-
onUncheckOption:
|
|
4415
|
+
onCheckOption: z,
|
|
4416
|
+
onUncheckOption: R
|
|
4400
4417
|
}, Ze({ _: 2 }, [
|
|
4401
4418
|
e.loading ? {
|
|
4402
4419
|
name: "no-options",
|
|
4403
|
-
fn:
|
|
4420
|
+
fn: L(() => [
|
|
4404
4421
|
B("span", il, [
|
|
4405
|
-
|
|
4422
|
+
E(bt, { size: "sm" })
|
|
4406
4423
|
])
|
|
4407
4424
|
]),
|
|
4408
4425
|
key: "0"
|
|
4409
4426
|
} : {
|
|
4410
4427
|
name: "no-options",
|
|
4411
|
-
fn:
|
|
4412
|
-
|
|
4428
|
+
fn: L(() => [
|
|
4429
|
+
W[3] || (W[3] = U("No results found"))
|
|
4413
4430
|
]),
|
|
4414
4431
|
key: "1"
|
|
4415
4432
|
}
|
|
4416
|
-
]), 1032, ["label", "options", "options-id", "selected-options", "shown"])) : (d(),
|
|
4433
|
+
]), 1032, ["label", "options", "options-id", "selected-options", "shown"])) : (d(), A(Re, {
|
|
4417
4434
|
key: 1,
|
|
4418
4435
|
label: e.label,
|
|
4419
|
-
"model-value":
|
|
4420
|
-
"options-id":
|
|
4436
|
+
"model-value": y.value,
|
|
4437
|
+
"options-id": b.value,
|
|
4421
4438
|
shown: n.value,
|
|
4422
|
-
"onUpdate:modelValue":
|
|
4423
|
-
onClose:
|
|
4439
|
+
"onUpdate:modelValue": q,
|
|
4440
|
+
onClose: W[1] || (W[1] = (P) => n.value = !1)
|
|
4424
4441
|
}, {
|
|
4425
|
-
default:
|
|
4426
|
-
|
|
4442
|
+
default: L(() => [
|
|
4443
|
+
E(qe, { options: S.value }, Ze({ _: 2 }, [
|
|
4427
4444
|
e.loading ? {
|
|
4428
4445
|
name: "no-options",
|
|
4429
|
-
fn:
|
|
4446
|
+
fn: L(() => [
|
|
4430
4447
|
B("span", rl, [
|
|
4431
|
-
|
|
4448
|
+
E(bt, { size: "sm" })
|
|
4432
4449
|
])
|
|
4433
4450
|
]),
|
|
4434
4451
|
key: "0"
|
|
4435
4452
|
} : {
|
|
4436
4453
|
name: "no-options",
|
|
4437
|
-
fn:
|
|
4438
|
-
|
|
4454
|
+
fn: L(() => [
|
|
4455
|
+
W[4] || (W[4] = U("No results found"))
|
|
4439
4456
|
]),
|
|
4440
4457
|
key: "1"
|
|
4441
4458
|
}
|
|
@@ -4445,10 +4462,19 @@ const sn = {
|
|
|
4445
4462
|
}, 8, ["label", "model-value", "options-id", "shown"]))
|
|
4446
4463
|
]),
|
|
4447
4464
|
_: 1
|
|
4448
|
-
}, 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
|
+
])
|
|
4449
4475
|
], 64));
|
|
4450
4476
|
}
|
|
4451
|
-
},
|
|
4477
|
+
}, dl = ["data-size", "data-variant"], Yo = {
|
|
4452
4478
|
__name: "BsLoader",
|
|
4453
4479
|
props: {
|
|
4454
4480
|
size: {
|
|
@@ -4462,7 +4488,7 @@ const sn = {
|
|
|
4462
4488
|
}
|
|
4463
4489
|
},
|
|
4464
4490
|
setup(e) {
|
|
4465
|
-
return (a, t) => (d(),
|
|
4491
|
+
return (a, t) => (d(), h("span", {
|
|
4466
4492
|
class: "bs-loader",
|
|
4467
4493
|
"data-size": e.size,
|
|
4468
4494
|
"data-variant": e.variant,
|
|
@@ -4473,9 +4499,9 @@ const sn = {
|
|
|
4473
4499
|
B("span", null, null, -1),
|
|
4474
4500
|
B("span", null, null, -1),
|
|
4475
4501
|
B("span", { class: "visually-hidden" }, "Loading", -1)
|
|
4476
|
-
]), 8,
|
|
4502
|
+
]), 8, dl));
|
|
4477
4503
|
}
|
|
4478
|
-
},
|
|
4504
|
+
}, ul = ["data-shown"], cl = {
|
|
4479
4505
|
__name: "BsOverlay",
|
|
4480
4506
|
props: {
|
|
4481
4507
|
shown: {
|
|
@@ -4505,7 +4531,7 @@ const sn = {
|
|
|
4505
4531
|
emits: ["after-enter", "after-leave"],
|
|
4506
4532
|
setup(e, { emit: a }) {
|
|
4507
4533
|
const t = e, l = a, { transition: n } = Ee(t);
|
|
4508
|
-
|
|
4534
|
+
Q(() => {
|
|
4509
4535
|
i();
|
|
4510
4536
|
}), G(n, () => {
|
|
4511
4537
|
i();
|
|
@@ -4513,26 +4539,26 @@ const sn = {
|
|
|
4513
4539
|
function i() {
|
|
4514
4540
|
n.value ? document.body.setAttribute("data-scroll", "false") : document.body.removeAttribute("data-scroll");
|
|
4515
4541
|
}
|
|
4516
|
-
return (u, o) => (d(),
|
|
4542
|
+
return (u, o) => (d(), A(Pe, {
|
|
4517
4543
|
name: "bs-overlay",
|
|
4518
4544
|
shown: c(n),
|
|
4519
4545
|
preloaded: e.preloaded,
|
|
4520
4546
|
onAfterEnter: o[0] || (o[0] = (s) => l("after-enter")),
|
|
4521
4547
|
onAfterLeave: o[1] || (o[1] = (s) => l("after-leave"))
|
|
4522
4548
|
}, {
|
|
4523
|
-
default:
|
|
4549
|
+
default: L(() => [
|
|
4524
4550
|
B("div", {
|
|
4525
4551
|
class: "bs-overlay",
|
|
4526
4552
|
"data-shown": c(n)
|
|
4527
|
-
}, null, 8,
|
|
4553
|
+
}, null, 8, ul)
|
|
4528
4554
|
]),
|
|
4529
4555
|
_: 1
|
|
4530
4556
|
}, 8, ["shown", "preloaded"]));
|
|
4531
4557
|
}
|
|
4532
|
-
},
|
|
4558
|
+
}, fl = ["id", "role", "aria-labelledby", "data-shown", "data-full-width", "data-full-height"], pl = ["id"], ml = {
|
|
4533
4559
|
key: 1,
|
|
4534
4560
|
class: "modal-footer"
|
|
4535
|
-
},
|
|
4561
|
+
}, Zo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4536
4562
|
__name: "BsModal",
|
|
4537
4563
|
props: {
|
|
4538
4564
|
modalId: {
|
|
@@ -4585,37 +4611,37 @@ const sn = {
|
|
|
4585
4611
|
},
|
|
4586
4612
|
emits: ["close", "after-enter", "after-leave"],
|
|
4587
4613
|
setup(e, { emit: a }) {
|
|
4588
|
-
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();
|
|
4589
4615
|
let o = !1;
|
|
4590
4616
|
const s = $(null), r = (v) => {
|
|
4591
4617
|
s.value && v.target.closest(".bs-overlay") && n("close", l.modalId);
|
|
4592
4618
|
};
|
|
4593
|
-
|
|
4619
|
+
Q(() => {
|
|
4594
4620
|
document.addEventListener("click", r);
|
|
4595
4621
|
}), $e(() => {
|
|
4596
4622
|
document.removeEventListener("click", r);
|
|
4597
|
-
}),
|
|
4623
|
+
}), ve(["Escape"], () => {
|
|
4598
4624
|
o && n("close", l.modalId);
|
|
4599
4625
|
});
|
|
4600
4626
|
const m = f(() => !l.title && !t.title && l.closeButton), g = f(() => (l.title || t.title) && l.closeButton);
|
|
4601
|
-
return (v,
|
|
4602
|
-
|
|
4627
|
+
return (v, b) => (d(), h(Y, null, [
|
|
4628
|
+
E(cl, {
|
|
4603
4629
|
shown: c(i),
|
|
4604
4630
|
preloaded: e.preloaded,
|
|
4605
4631
|
"enter-controlled": e.enterControlled,
|
|
4606
4632
|
"enter-trigger": e.enterTrigger,
|
|
4607
4633
|
"leave-trigger": e.leaveTrigger
|
|
4608
4634
|
}, null, 8, ["shown", "preloaded", "enter-controlled", "enter-trigger", "leave-trigger"]),
|
|
4609
|
-
|
|
4635
|
+
E(Pe, {
|
|
4610
4636
|
name: "bs-modal",
|
|
4611
4637
|
preloaded: e.preloaded,
|
|
4612
4638
|
shown: c(i),
|
|
4613
|
-
onAfterEnter:
|
|
4614
|
-
onAfterLeave:
|
|
4615
|
-
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)
|
|
4616
4642
|
}, {
|
|
4617
|
-
default:
|
|
4618
|
-
B("div",
|
|
4643
|
+
default: L(() => [
|
|
4644
|
+
B("div", F({
|
|
4619
4645
|
id: e.modalId,
|
|
4620
4646
|
class: "bs-modal",
|
|
4621
4647
|
"data-component": "bs-modal",
|
|
@@ -4629,53 +4655,53 @@ const sn = {
|
|
|
4629
4655
|
"data-full-width": e.fullWidth,
|
|
4630
4656
|
"data-full-height": e.fullHeight
|
|
4631
4657
|
}), [
|
|
4632
|
-
e.title || v.$slots.title || e.closeButton ? (d(),
|
|
4658
|
+
e.title || v.$slots.title || e.closeButton ? (d(), h("header", {
|
|
4633
4659
|
key: 0,
|
|
4634
|
-
class:
|
|
4660
|
+
class: oe({
|
|
4635
4661
|
"only-close-button-modal-header": m.value,
|
|
4636
4662
|
"modal-header": g.value
|
|
4637
4663
|
})
|
|
4638
4664
|
}, [
|
|
4639
|
-
|
|
4640
|
-
e.title ? (d(),
|
|
4665
|
+
O(v.$slots, "title", {}, () => [
|
|
4666
|
+
e.title ? (d(), h("span", {
|
|
4641
4667
|
key: 0,
|
|
4642
4668
|
id: c(u),
|
|
4643
4669
|
class: "modal-title"
|
|
4644
|
-
},
|
|
4670
|
+
}, T(e.title), 9, pl)) : C("", !0)
|
|
4645
4671
|
]),
|
|
4646
|
-
e.closeButton ? (d(),
|
|
4672
|
+
e.closeButton ? (d(), h("button", {
|
|
4647
4673
|
key: 0,
|
|
4648
4674
|
type: "button",
|
|
4649
4675
|
title: "Close Modal",
|
|
4650
4676
|
"aria-label": "Close Modal",
|
|
4651
|
-
class:
|
|
4652
|
-
onClick:
|
|
4677
|
+
class: oe({ "full-width-header-close-button": e.fullWidth || e.fullHeight }),
|
|
4678
|
+
onClick: b[0] || (b[0] = (y) => n("close", e.modalId))
|
|
4653
4679
|
}, [
|
|
4654
|
-
|
|
4680
|
+
E(c(Ie), { class: "close-button" })
|
|
4655
4681
|
], 2)) : C("", !0)
|
|
4656
4682
|
], 2)) : C("", !0),
|
|
4657
4683
|
B("div", null, [
|
|
4658
|
-
|
|
4684
|
+
O(v.$slots, "default")
|
|
4659
4685
|
]),
|
|
4660
|
-
v.$slots.footer ? (d(),
|
|
4661
|
-
|
|
4686
|
+
v.$slots.footer ? (d(), h("footer", ml, [
|
|
4687
|
+
O(v.$slots, "footer")
|
|
4662
4688
|
])) : C("", !0)
|
|
4663
|
-
], 16,
|
|
4689
|
+
], 16, fl)
|
|
4664
4690
|
]),
|
|
4665
4691
|
_: 3
|
|
4666
4692
|
}, 8, ["preloaded", "shown"])
|
|
4667
4693
|
], 64));
|
|
4668
4694
|
}
|
|
4669
|
-
}),
|
|
4695
|
+
}), hl = ["data-variant", "data-fixed"], bl = {
|
|
4670
4696
|
key: 0,
|
|
4671
4697
|
class: "bs-pagination-carets"
|
|
4672
|
-
},
|
|
4698
|
+
}, vl = ["aria-label", "title", "disabled"], gl = { key: 0 }, yl = ["aria-label", "title", "disabled"], Sl = { key: 0 }, wl = {
|
|
4673
4699
|
key: 1,
|
|
4674
4700
|
class: "bs-pagination-page-numbers"
|
|
4675
|
-
},
|
|
4701
|
+
}, Bl = ["title", "data-selected", "onClick"], $l = { key: 2 }, Il = { key: 3 }, kl = { class: "bs-pagination-results-numbers" }, Cl = ["data-selected", "disabled", "onClick"], xl = {
|
|
4676
4702
|
key: 5,
|
|
4677
4703
|
class: "bs-pagination-carets"
|
|
4678
|
-
},
|
|
4704
|
+
}, Tl = ["aria-label", "title", "disabled"], Al = { key: 0 }, Ol = ["aria-label", "title", "disabled"], Vl = { key: 0 }, Xo = {
|
|
4679
4705
|
__name: "BsPagination",
|
|
4680
4706
|
props: {
|
|
4681
4707
|
// Used for all
|
|
@@ -4762,16 +4788,16 @@ const sn = {
|
|
|
4762
4788
|
emits: ["selchange", "update:modelValue"],
|
|
4763
4789
|
setup(e, { emit: a }) {
|
|
4764
4790
|
const t = e, l = a, n = $(null);
|
|
4765
|
-
|
|
4766
|
-
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;
|
|
4767
4793
|
});
|
|
4768
4794
|
const i = f(() => t.modelValue || t.selection);
|
|
4769
4795
|
G(() => t.selection, (p) => {
|
|
4770
4796
|
n.value = p;
|
|
4771
4797
|
}), G(() => t.modelValue, (p) => {
|
|
4772
4798
|
n.value = p;
|
|
4773
|
-
}), G(n, (p,
|
|
4774
|
-
|
|
4799
|
+
}), G(n, (p, w) => {
|
|
4800
|
+
w !== null && (l("selchange", p), l("update:modelValue", p));
|
|
4775
4801
|
});
|
|
4776
4802
|
const u = f(() => {
|
|
4777
4803
|
if (t.variant === "group")
|
|
@@ -4797,98 +4823,98 @@ const sn = {
|
|
|
4797
4823
|
const v = f(() => {
|
|
4798
4824
|
if (t.pageCount <= t.pageRange)
|
|
4799
4825
|
return [...Array(t.pageCount + 1).keys()].slice(1);
|
|
4800
|
-
const p = [1],
|
|
4801
|
-
let k = n.value -
|
|
4826
|
+
const p = [1], w = (t.pageRange - 1) / 2;
|
|
4827
|
+
let k = n.value - w, I = n.value + w;
|
|
4802
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);
|
|
4803
4829
|
for (let q = k; q <= I; q++)
|
|
4804
4830
|
p.push(q);
|
|
4805
4831
|
return I < t.pageCount - 1 && p.push(t.breakText), p.push(t.pageCount), p;
|
|
4806
|
-
}),
|
|
4807
|
-
const p = (n.value - 1) * t.itemsPerGroup + 1,
|
|
4808
|
-
return `${t.centerLabel ?? "Results"} ${p} - ${
|
|
4809
|
-
}),
|
|
4810
|
-
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", {
|
|
4811
4837
|
class: "bs-pagination",
|
|
4812
4838
|
"data-component": "bs-pagination",
|
|
4813
4839
|
"data-variant": o.value,
|
|
4814
4840
|
"data-fixed": t.fixed
|
|
4815
4841
|
}, [
|
|
4816
|
-
e.variant === "base" || e.variant === "group" ? (d(),
|
|
4817
|
-
e.showFirstLastButtons ? (d(),
|
|
4842
|
+
e.variant === "base" || e.variant === "group" ? (d(), h("div", bl, [
|
|
4843
|
+
e.showFirstLastButtons ? (d(), h("button", {
|
|
4818
4844
|
key: 0,
|
|
4819
4845
|
type: "button",
|
|
4820
|
-
class:
|
|
4846
|
+
class: oe(e.firstPageText ? "bs-pagination-word-caret" : void 0),
|
|
4821
4847
|
"aria-label": e.firstPageText ? void 0 : "First Page",
|
|
4822
4848
|
title: e.firstPageText,
|
|
4823
4849
|
disabled: n.value === 1,
|
|
4824
4850
|
onClick: s
|
|
4825
4851
|
}, [
|
|
4826
|
-
|
|
4827
|
-
e.firstPageText ? (d(),
|
|
4828
|
-
], 10,
|
|
4852
|
+
E(c(Zt)),
|
|
4853
|
+
e.firstPageText ? (d(), h("span", gl, T(e.firstPageText), 1)) : C("", !0)
|
|
4854
|
+
], 10, vl)) : C("", !0),
|
|
4829
4855
|
B("button", {
|
|
4830
4856
|
type: "button",
|
|
4831
|
-
class:
|
|
4857
|
+
class: oe(e.prevPageText ? "bs-pagination-word-caret" : void 0),
|
|
4832
4858
|
"aria-label": e.prevPageText ? void 0 : "Previous Page",
|
|
4833
4859
|
title: e.prevPageText,
|
|
4834
4860
|
disabled: n.value === 1,
|
|
4835
4861
|
onClick: r
|
|
4836
4862
|
}, [
|
|
4837
|
-
|
|
4838
|
-
e.prevPageText ? (d(),
|
|
4839
|
-
], 10,
|
|
4863
|
+
E(c(It)),
|
|
4864
|
+
e.prevPageText ? (d(), h("span", Sl, T(e.prevPageText), 1)) : C("", !0)
|
|
4865
|
+
], 10, yl)
|
|
4840
4866
|
])) : C("", !0),
|
|
4841
|
-
e.variant === "base" && e.centerDisplay === "numbers" ? (d(),
|
|
4842
|
-
(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", {
|
|
4843
4869
|
key: `page-${k}-button`,
|
|
4844
4870
|
type: "button",
|
|
4845
4871
|
title: `Page ${k}`,
|
|
4846
4872
|
"data-selected": k === n.value,
|
|
4847
4873
|
onClick: (I) => n.value = k
|
|
4848
|
-
},
|
|
4874
|
+
}, T(k), 9, Bl))), 128))
|
|
4849
4875
|
])) : C("", !0),
|
|
4850
|
-
t.variant === "base" && t.centerDisplay === "text" ? (d(),
|
|
4851
|
-
t.variant === "group" ? (d(),
|
|
4852
|
-
t.variant === "results" ? (d(),
|
|
4853
|
-
|
|
4854
|
-
B("div",
|
|
4855
|
-
(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", {
|
|
4856
4882
|
type: "button",
|
|
4857
4883
|
key: `results-${k}`,
|
|
4858
4884
|
"data-selected": k === n.value,
|
|
4859
4885
|
disabled: n.value === k,
|
|
4860
4886
|
onClick: (I) => n.value = k
|
|
4861
|
-
},
|
|
4887
|
+
}, T(k), 9, Cl))), 128))
|
|
4862
4888
|
])
|
|
4863
4889
|
], 64)) : C("", !0),
|
|
4864
|
-
e.variant === "base" || e.variant === "group" ? (d(),
|
|
4890
|
+
e.variant === "base" || e.variant === "group" ? (d(), h("div", xl, [
|
|
4865
4891
|
B("button", {
|
|
4866
4892
|
type: "button",
|
|
4867
|
-
class:
|
|
4893
|
+
class: oe(e.nextPageText ? "bs-pagination-word-caret" : void 0),
|
|
4868
4894
|
"aria-label": e.nextPageText ? void 0 : "Next Page",
|
|
4869
4895
|
title: e.nextPageText,
|
|
4870
4896
|
disabled: n.value === u.value,
|
|
4871
4897
|
onClick: m
|
|
4872
4898
|
}, [
|
|
4873
|
-
e.nextPageText ? (d(),
|
|
4874
|
-
|
|
4875
|
-
], 10,
|
|
4876
|
-
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", {
|
|
4877
4903
|
key: 0,
|
|
4878
4904
|
type: "button",
|
|
4879
|
-
class:
|
|
4905
|
+
class: oe(e.lastPageText ? "bs-pagination-word-caret" : void 0),
|
|
4880
4906
|
"aria-label": e.lastPageText ? void 0 : "Last Page",
|
|
4881
4907
|
title: e.lastPageText,
|
|
4882
4908
|
disabled: n.value === u.value,
|
|
4883
4909
|
onClick: g
|
|
4884
4910
|
}, [
|
|
4885
|
-
e.lastPageText ? (d(),
|
|
4886
|
-
|
|
4887
|
-
], 10,
|
|
4911
|
+
e.lastPageText ? (d(), h("span", Vl, T(e.lastPageText), 1)) : C("", !0),
|
|
4912
|
+
E(c(Xt))
|
|
4913
|
+
], 10, Ol)) : C("", !0)
|
|
4888
4914
|
])) : C("", !0)
|
|
4889
|
-
], 8,
|
|
4915
|
+
], 8, hl));
|
|
4890
4916
|
}
|
|
4891
|
-
},
|
|
4917
|
+
}, Ll = ["data-truncate"], Qo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4892
4918
|
__name: "BsPill",
|
|
4893
4919
|
props: {
|
|
4894
4920
|
active: { type: Boolean, default: !1 },
|
|
@@ -4912,8 +4938,8 @@ const sn = {
|
|
|
4912
4938
|
}
|
|
4913
4939
|
},
|
|
4914
4940
|
setup(e) {
|
|
4915
|
-
const a = e, { onLinkClick: t } = Fe(a), l =
|
|
4916
|
-
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({
|
|
4917
4943
|
class: "bs-pill",
|
|
4918
4944
|
"data-active": e.active,
|
|
4919
4945
|
"data-component": "bs-pill",
|
|
@@ -4922,28 +4948,28 @@ const sn = {
|
|
|
4922
4948
|
disabled: e.disabled,
|
|
4923
4949
|
".href": c(u)
|
|
4924
4950
|
}, c(i), { onClick: c(t) }), {
|
|
4925
|
-
default:
|
|
4951
|
+
default: L(() => [
|
|
4926
4952
|
B("span", { "data-truncate": e.truncate }, [
|
|
4927
|
-
|
|
4928
|
-
], 8,
|
|
4953
|
+
O(o.$slots, "default")
|
|
4954
|
+
], 8, Ll)
|
|
4929
4955
|
]),
|
|
4930
4956
|
_: 3
|
|
4931
4957
|
}, 48, ["data-active", "data-status", "data-variant", "disabled", ".href", "onClick"]));
|
|
4932
4958
|
}
|
|
4933
|
-
}),
|
|
4959
|
+
}), El = {
|
|
4934
4960
|
class: "bs-profile-details",
|
|
4935
4961
|
"data-component": "bs-profile-details"
|
|
4936
|
-
},
|
|
4962
|
+
}, Dl = {
|
|
4937
4963
|
class: "bs-profile-name",
|
|
4938
4964
|
"data-size": "sm",
|
|
4939
4965
|
"data-weight": "bold"
|
|
4940
|
-
},
|
|
4966
|
+
}, Pl = {
|
|
4941
4967
|
key: 1,
|
|
4942
4968
|
"data-weight": "bold"
|
|
4943
|
-
},
|
|
4969
|
+
}, ql = { key: 2 }, Ml = { key: 3 }, Nl = {
|
|
4944
4970
|
key: 4,
|
|
4945
4971
|
"data-icon": "true"
|
|
4946
|
-
},
|
|
4972
|
+
}, zl = {
|
|
4947
4973
|
__name: "BsProfileDetails",
|
|
4948
4974
|
props: {
|
|
4949
4975
|
profileName: {
|
|
@@ -4964,36 +4990,36 @@ const sn = {
|
|
|
4964
4990
|
function u(o) {
|
|
4965
4991
|
o.target.tagName === "BUTTON" && (o.preventDefault(), o.stopImmediatePropagation(), l("action-toggled"));
|
|
4966
4992
|
}
|
|
4967
|
-
return (o, s) => (d(),
|
|
4968
|
-
e.action || o.$slots.action ? (d(),
|
|
4993
|
+
return (o, s) => (d(), h("div", El, [
|
|
4994
|
+
e.action || o.$slots.action ? (d(), h("button", {
|
|
4969
4995
|
key: 0,
|
|
4970
4996
|
"data-icon": "true",
|
|
4971
4997
|
onClick: u
|
|
4972
4998
|
}, [
|
|
4973
|
-
|
|
4974
|
-
e.actionIcon ? (d(),
|
|
4999
|
+
O(o.$slots, "action", {}, () => [
|
|
5000
|
+
e.actionIcon ? (d(), A(ne(c(n) ? c(n) : "span"), {
|
|
4975
5001
|
key: 0,
|
|
4976
5002
|
class: "bs-icon"
|
|
4977
5003
|
})) : C("", !0),
|
|
4978
|
-
|
|
5004
|
+
U(" " + T(e.action), 1)
|
|
4979
5005
|
])
|
|
4980
5006
|
])) : C("", !0),
|
|
4981
|
-
B("span",
|
|
4982
|
-
e.company ? (d(),
|
|
4983
|
-
e.jobTitle ? (d(),
|
|
4984
|
-
e.email ? (d(),
|
|
4985
|
-
e.miscMeta || o.$slots.misc ? (d(),
|
|
4986
|
-
|
|
4987
|
-
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"), {
|
|
4988
5014
|
key: 0,
|
|
4989
5015
|
class: "bs-icon"
|
|
4990
5016
|
})) : C("", !0),
|
|
4991
|
-
|
|
5017
|
+
U(" " + T(e.miscMeta), 1)
|
|
4992
5018
|
])
|
|
4993
5019
|
])) : C("", !0)
|
|
4994
5020
|
]));
|
|
4995
5021
|
}
|
|
4996
|
-
},
|
|
5022
|
+
}, Jo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4997
5023
|
__name: "BsProfile",
|
|
4998
5024
|
props: {
|
|
4999
5025
|
layout: {
|
|
@@ -5023,22 +5049,22 @@ const sn = {
|
|
|
5023
5049
|
},
|
|
5024
5050
|
emits: ["action-toggled"],
|
|
5025
5051
|
setup(e, { emit: a }) {
|
|
5026
|
-
const t = e, l = a, n =
|
|
5027
|
-
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({
|
|
5028
5054
|
class: "bs-profile",
|
|
5029
5055
|
".href": c(s),
|
|
5030
5056
|
"data-component": "bs-profile",
|
|
5031
5057
|
"data-layout": e.layout
|
|
5032
5058
|
}, c(o), { onClick: c(i) }), {
|
|
5033
|
-
default:
|
|
5034
|
-
|
|
5059
|
+
default: L(() => [
|
|
5060
|
+
E(Ot, {
|
|
5035
5061
|
src: e.imageSrc,
|
|
5036
5062
|
size: e.imageSize,
|
|
5037
5063
|
initials: e.initials,
|
|
5038
5064
|
"profile-name": e.profileName,
|
|
5039
5065
|
"use-alt-text": !1
|
|
5040
5066
|
}, null, 8, ["src", "size", "initials", "profile-name"]),
|
|
5041
|
-
|
|
5067
|
+
E(zl, {
|
|
5042
5068
|
"profile-name": e.profileName,
|
|
5043
5069
|
company: e.company,
|
|
5044
5070
|
"job-title": e.jobTitle,
|
|
@@ -5049,11 +5075,11 @@ const sn = {
|
|
|
5049
5075
|
"misc-meta-icon": e.miscMetaIcon,
|
|
5050
5076
|
onActionToggled: m[0] || (m[0] = (g) => l("action-toggled"))
|
|
5051
5077
|
}, {
|
|
5052
|
-
action:
|
|
5053
|
-
|
|
5078
|
+
action: L(() => [
|
|
5079
|
+
O(r.$slots, "action")
|
|
5054
5080
|
]),
|
|
5055
|
-
misc:
|
|
5056
|
-
|
|
5081
|
+
misc: L(() => [
|
|
5082
|
+
O(r.$slots, "misc")
|
|
5057
5083
|
]),
|
|
5058
5084
|
_: 3
|
|
5059
5085
|
}, 8, ["profile-name", "company", "job-title", "email", "action", "action-icon", "misc-meta", "misc-meta-icon"])
|
|
@@ -5087,7 +5113,7 @@ function qt(e) {
|
|
|
5087
5113
|
getStatus: l
|
|
5088
5114
|
};
|
|
5089
5115
|
}
|
|
5090
|
-
const
|
|
5116
|
+
const Fl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Rl = ["data-status"], _o = {
|
|
5091
5117
|
__name: "BsProgressBar",
|
|
5092
5118
|
props: {
|
|
5093
5119
|
/** @type {Status} */
|
|
@@ -5116,7 +5142,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5116
5142
|
},
|
|
5117
5143
|
setup(e) {
|
|
5118
5144
|
const a = e, { progressStep: t, progressText: l, getStatus: n } = qt(a);
|
|
5119
|
-
return (i, u) => (d(),
|
|
5145
|
+
return (i, u) => (d(), h("div", {
|
|
5120
5146
|
"aria-valuemax": e.steps.length,
|
|
5121
5147
|
"aria-valuenow": c(t),
|
|
5122
5148
|
"aria-valuetext": c(l),
|
|
@@ -5124,18 +5150,18 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5124
5150
|
"data-component": "bs-progress-bar",
|
|
5125
5151
|
role: "progressbar"
|
|
5126
5152
|
}, [
|
|
5127
|
-
(d(!0),
|
|
5153
|
+
(d(!0), h(Y, null, ae(e.steps, (o, s) => (d(), h("div", {
|
|
5128
5154
|
class: "bs-step-item",
|
|
5129
5155
|
"data-status": c(n)(o.status, s),
|
|
5130
5156
|
"data-variant": "progress",
|
|
5131
5157
|
key: o.id || o.label,
|
|
5132
5158
|
role: "status"
|
|
5133
5159
|
}, [
|
|
5134
|
-
B("span", null,
|
|
5135
|
-
], 8,
|
|
5136
|
-
], 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));
|
|
5137
5163
|
}
|
|
5138
|
-
},
|
|
5164
|
+
}, Wl = ["data-disabled", "data-error", "data-size"], jl = ["checked", "disabled", "id", "required", "value", "data-error"], ei = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5139
5165
|
__name: "BsRadio",
|
|
5140
5166
|
props: {
|
|
5141
5167
|
label: {
|
|
@@ -5179,15 +5205,15 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5179
5205
|
},
|
|
5180
5206
|
emits: ["update:modelValue"],
|
|
5181
5207
|
setup(e, { emit: a }) {
|
|
5182
|
-
const t = e, [l] =
|
|
5183
|
-
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({
|
|
5184
5210
|
class: "bs-boolean",
|
|
5185
5211
|
"data-component": "bs-radio",
|
|
5186
5212
|
"data-disabled": e.disabled,
|
|
5187
5213
|
"data-error": e.error,
|
|
5188
5214
|
"data-size": e.size
|
|
5189
|
-
}, c(
|
|
5190
|
-
B("input",
|
|
5215
|
+
}, c(X)(o.$attrs, n.value).remaining), [
|
|
5216
|
+
B("input", F({
|
|
5191
5217
|
checked: u.value,
|
|
5192
5218
|
disabled: e.disabled,
|
|
5193
5219
|
id: o.$attrs.id || i.value,
|
|
@@ -5195,25 +5221,25 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5195
5221
|
type: "radio",
|
|
5196
5222
|
value: e.value,
|
|
5197
5223
|
"data-error": e.error
|
|
5198
|
-
}, c(
|
|
5224
|
+
}, c(X)(o.$attrs, n.value).filtered, {
|
|
5199
5225
|
onChange: s[0] || (s[0] = (r) => o.$emit("update:modelValue", r.target.value))
|
|
5200
|
-
}), null, 16,
|
|
5201
|
-
e.label || o.$slots.label ? (d(),
|
|
5226
|
+
}), null, 16, jl),
|
|
5227
|
+
e.label || o.$slots.label ? (d(), A(le, {
|
|
5202
5228
|
key: 0,
|
|
5203
5229
|
for: o.$attrs.id || i.value,
|
|
5204
5230
|
disabled: e.disabled,
|
|
5205
5231
|
required: e.required
|
|
5206
5232
|
}, {
|
|
5207
|
-
default:
|
|
5208
|
-
|
|
5209
|
-
|
|
5233
|
+
default: L(() => [
|
|
5234
|
+
O(o.$slots, "label", {}, () => [
|
|
5235
|
+
U(T(e.label), 1)
|
|
5210
5236
|
])
|
|
5211
5237
|
]),
|
|
5212
5238
|
_: 3
|
|
5213
5239
|
}, 8, ["for", "disabled", "required"])) : C("", !0)
|
|
5214
|
-
], 16,
|
|
5240
|
+
], 16, Wl));
|
|
5215
5241
|
}
|
|
5216
|
-
}),
|
|
5242
|
+
}), Ul = ["id", "disabled", "required", "data-error", "value"], Hl = {
|
|
5217
5243
|
__name: "BsSelect",
|
|
5218
5244
|
props: {
|
|
5219
5245
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -5227,7 +5253,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5227
5253
|
emits: ["update:modelValue"],
|
|
5228
5254
|
setup(e, { emit: a }) {
|
|
5229
5255
|
const t = e, l = f(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
5230
|
-
return (n, i) => (d(),
|
|
5256
|
+
return (n, i) => (d(), h("select", F({
|
|
5231
5257
|
id: n.$attrs.id || e.inputId,
|
|
5232
5258
|
class: "bs-select",
|
|
5233
5259
|
"data-component": "bs-select",
|
|
@@ -5238,10 +5264,10 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5238
5264
|
}, l.value, {
|
|
5239
5265
|
onChange: i[0] || (i[0] = (u) => n.$emit("update:modelValue", u.target.value))
|
|
5240
5266
|
}), [
|
|
5241
|
-
|
|
5242
|
-
], 16,
|
|
5267
|
+
O(n.$slots, "default")
|
|
5268
|
+
], 16, Ul));
|
|
5243
5269
|
}
|
|
5244
|
-
}, Gl = ["selected", "disabled"],
|
|
5270
|
+
}, Gl = ["selected", "disabled"], Kl = ["disabled", "selected", "value"], ti = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5245
5271
|
__name: "BsSelectField",
|
|
5246
5272
|
props: {
|
|
5247
5273
|
data: {
|
|
@@ -5285,26 +5311,26 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5285
5311
|
modelValue: [String, Number]
|
|
5286
5312
|
},
|
|
5287
5313
|
setup(e) {
|
|
5288
|
-
const a = e, [t, l] =
|
|
5314
|
+
const a = e, [t, l] = J(2), n = f(() => Ra.concat(a.passAttrs.split(","))), i = f(() => {
|
|
5289
5315
|
var r, m;
|
|
5290
5316
|
return ((m = (r = a.hints) == null ? void 0 : r.join) == null ? void 0 : m.call(r, `
|
|
5291
5317
|
`)) || a.hints;
|
|
5292
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);
|
|
5293
|
-
return (r, m) => (d(),
|
|
5294
|
-
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, {
|
|
5295
5321
|
key: 0,
|
|
5296
5322
|
for: r.$attrs.id || o.value,
|
|
5297
5323
|
disabled: e.disabled,
|
|
5298
5324
|
required: e.required
|
|
5299
5325
|
}, {
|
|
5300
|
-
default:
|
|
5301
|
-
|
|
5302
|
-
|
|
5326
|
+
default: L(() => [
|
|
5327
|
+
O(r.$slots, "label", {}, () => [
|
|
5328
|
+
U(T(e.label), 1)
|
|
5303
5329
|
])
|
|
5304
5330
|
]),
|
|
5305
5331
|
_: 3
|
|
5306
5332
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
5307
|
-
|
|
5333
|
+
E(Hl, F({
|
|
5308
5334
|
disabled: e.disabled,
|
|
5309
5335
|
error: e.error,
|
|
5310
5336
|
"hint-id": c(l),
|
|
@@ -5312,23 +5338,23 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5312
5338
|
required: e.required,
|
|
5313
5339
|
value: s.value,
|
|
5314
5340
|
"onUpdate:modelValue": m[0] || (m[0] = (g) => r.$emit("update:modelValue", g))
|
|
5315
|
-
}, c(
|
|
5316
|
-
default:
|
|
5341
|
+
}, c(X)(r.$attrs, n.value).filtered), {
|
|
5342
|
+
default: L(() => [
|
|
5317
5343
|
B("option", {
|
|
5318
5344
|
selected: !s.value,
|
|
5319
5345
|
value: "",
|
|
5320
5346
|
disabled: !!s.value
|
|
5321
|
-
},
|
|
5322
|
-
(d(!0),
|
|
5347
|
+
}, T(e.disabled ? "" : e.placeholder), 9, Gl),
|
|
5348
|
+
(d(!0), h(Y, null, ae(e.data, (g) => (d(), h("option", {
|
|
5323
5349
|
key: g.value,
|
|
5324
5350
|
disabled: g.disabled,
|
|
5325
5351
|
selected: s.value === g.value,
|
|
5326
5352
|
value: g.value
|
|
5327
|
-
},
|
|
5353
|
+
}, T(g.label), 9, Kl))), 128))
|
|
5328
5354
|
]),
|
|
5329
5355
|
_: 1
|
|
5330
5356
|
}, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
|
|
5331
|
-
u.value ? (d(),
|
|
5357
|
+
u.value ? (d(), A(ye, {
|
|
5332
5358
|
key: 1,
|
|
5333
5359
|
"data-disabled": e.disabled,
|
|
5334
5360
|
error: e.error,
|
|
@@ -5338,7 +5364,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5338
5364
|
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : C("", !0)
|
|
5339
5365
|
], 16));
|
|
5340
5366
|
}
|
|
5341
|
-
}),
|
|
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 }, {
|
|
5342
5368
|
__name: "BsSelectWithDropdown",
|
|
5343
5369
|
props: {
|
|
5344
5370
|
breakout: {
|
|
@@ -5414,35 +5440,35 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5414
5440
|
},
|
|
5415
5441
|
emits: ["update:model-value"],
|
|
5416
5442
|
setup(e, { emit: a }) {
|
|
5417
|
-
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(() => {
|
|
5418
5444
|
if (t.modelValue) {
|
|
5419
|
-
const v = t.options.find((
|
|
5445
|
+
const v = t.options.find((b) => b.value === t.modelValue);
|
|
5420
5446
|
return v ? v.label : t.placeholder;
|
|
5421
5447
|
}
|
|
5422
5448
|
return t.placeholder;
|
|
5423
5449
|
}), g = f(() => m.value === t.placeholder);
|
|
5424
|
-
return (v,
|
|
5425
|
-
e.label || v.$slots.label ? (d(),
|
|
5450
|
+
return (v, b) => (d(), h("div", null, [
|
|
5451
|
+
e.label || v.$slots.label ? (d(), A(le, {
|
|
5426
5452
|
key: 0,
|
|
5427
5453
|
disabled: e.disabled,
|
|
5428
5454
|
for: s.value,
|
|
5429
5455
|
required: e.required
|
|
5430
5456
|
}, {
|
|
5431
|
-
default:
|
|
5432
|
-
|
|
5433
|
-
|
|
5457
|
+
default: L(() => [
|
|
5458
|
+
O(v.$slots, "label", {}, () => [
|
|
5459
|
+
U(T(e.label), 1)
|
|
5434
5460
|
])
|
|
5435
5461
|
]),
|
|
5436
5462
|
_: 3
|
|
5437
5463
|
}, 8, ["disabled", "for", "required"])) : C("", !0),
|
|
5438
|
-
e.inputName || e.inputId ? (d(),
|
|
5464
|
+
e.inputName || e.inputId ? (d(), h("input", {
|
|
5439
5465
|
key: 1,
|
|
5440
5466
|
id: e.inputId,
|
|
5441
5467
|
name: e.inputName,
|
|
5442
5468
|
type: "hidden",
|
|
5443
5469
|
value: e.modelValue
|
|
5444
|
-
}, null, 8,
|
|
5445
|
-
|
|
5470
|
+
}, null, 8, Yl)) : C("", !0),
|
|
5471
|
+
E(Lt, {
|
|
5446
5472
|
"anchor-id": s.value,
|
|
5447
5473
|
breakout: e.breakout,
|
|
5448
5474
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -5455,11 +5481,11 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5455
5481
|
options: e.options,
|
|
5456
5482
|
"selected-option": e.modelValue,
|
|
5457
5483
|
"toggle-id": s.value,
|
|
5458
|
-
onClose:
|
|
5459
|
-
"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))
|
|
5460
5486
|
}, {
|
|
5461
|
-
toggle:
|
|
5462
|
-
B("button",
|
|
5487
|
+
toggle: L(() => [
|
|
5488
|
+
B("button", F({
|
|
5463
5489
|
"aria-controls": r.value,
|
|
5464
5490
|
"aria-describedby": e.hintId,
|
|
5465
5491
|
"aria-expanded": o.value,
|
|
@@ -5477,20 +5503,20 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5477
5503
|
id: s.value,
|
|
5478
5504
|
role: "combobox"
|
|
5479
5505
|
}, v.$attrs, {
|
|
5480
|
-
onClick:
|
|
5506
|
+
onClick: b[0] || (b[0] = wt((y) => o.value = !o.value, ["prevent"]))
|
|
5481
5507
|
}), [
|
|
5482
|
-
B("span", null,
|
|
5483
|
-
e.disabled ? C("", !0) : (d(),
|
|
5508
|
+
B("span", null, T(m.value), 1),
|
|
5509
|
+
e.disabled ? C("", !0) : (d(), A(c(Me), {
|
|
5484
5510
|
key: 0,
|
|
5485
5511
|
size: "md"
|
|
5486
5512
|
}))
|
|
5487
|
-
], 16,
|
|
5513
|
+
], 16, Zl)
|
|
5488
5514
|
]),
|
|
5489
5515
|
_: 1
|
|
5490
5516
|
}, 8, ["anchor-id", "breakout", "dropdown-position", "dropdown-width", "helper-description", "helper-text", "open", "options-id", "options", "selected-option", "toggle-id"])
|
|
5491
5517
|
]));
|
|
5492
5518
|
}
|
|
5493
|
-
}),
|
|
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 }, {
|
|
5494
5520
|
__name: "BsSwitch",
|
|
5495
5521
|
props: {
|
|
5496
5522
|
checked: {
|
|
@@ -5536,22 +5562,22 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5536
5562
|
},
|
|
5537
5563
|
emits: ["update:modelValue"],
|
|
5538
5564
|
setup(e, { emit: a }) {
|
|
5539
|
-
const t = e, l = a, [n] =
|
|
5540
|
-
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({
|
|
5541
5567
|
class: "bs-boolean",
|
|
5542
5568
|
"data-component": "bs-switch",
|
|
5543
5569
|
"data-disabled": e.disabled,
|
|
5544
5570
|
"data-size": e.size
|
|
5545
|
-
}, c(
|
|
5546
|
-
e.label || s.$slots.label ? (d(),
|
|
5571
|
+
}, c(X)(s.$attrs, i.value).remaining), [
|
|
5572
|
+
e.label || s.$slots.label ? (d(), A(le, {
|
|
5547
5573
|
key: 0,
|
|
5548
5574
|
for: s.$attrs.id || u.value,
|
|
5549
5575
|
disabled: e.disabled,
|
|
5550
5576
|
hide: e.hideLabel
|
|
5551
5577
|
}, {
|
|
5552
|
-
default:
|
|
5553
|
-
|
|
5554
|
-
|
|
5578
|
+
default: L(() => [
|
|
5579
|
+
O(s.$slots, "label", {}, () => [
|
|
5580
|
+
U(T(e.label), 1)
|
|
5555
5581
|
])
|
|
5556
5582
|
]),
|
|
5557
5583
|
_: 3
|
|
@@ -5562,23 +5588,23 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5562
5588
|
"data-pending": e.pending,
|
|
5563
5589
|
"data-size": e.size
|
|
5564
5590
|
}, [
|
|
5565
|
-
B("input",
|
|
5591
|
+
B("input", F({
|
|
5566
5592
|
checked: o.value,
|
|
5567
5593
|
disabled: e.disabled,
|
|
5568
5594
|
id: s.$attrs.id || u.value,
|
|
5569
5595
|
type: "checkbox"
|
|
5570
|
-
}, c(
|
|
5596
|
+
}, c(X)(s.$attrs, i.value).filtered, {
|
|
5571
5597
|
onChange: r[0] || (r[0] = (m) => l("update:modelValue", m.target.checked))
|
|
5572
|
-
}), null, 16,
|
|
5598
|
+
}), null, 16, Jl),
|
|
5573
5599
|
B("span", {
|
|
5574
5600
|
"aria-hidden": "true",
|
|
5575
5601
|
"data-inner-on-label": e.innerOnLabel,
|
|
5576
5602
|
"data-inner-off-label": e.innerOffLabel
|
|
5577
|
-
}, null, 8,
|
|
5578
|
-
], 8,
|
|
5579
|
-
], 16,
|
|
5603
|
+
}, null, 8, _l)
|
|
5604
|
+
], 8, Ql)
|
|
5605
|
+
], 16, Xl));
|
|
5580
5606
|
}
|
|
5581
|
-
}),
|
|
5607
|
+
}), eo = ["aria-controls", "aria-selected", "data-hidden"], li = {
|
|
5582
5608
|
__name: "BsTab",
|
|
5583
5609
|
props: {
|
|
5584
5610
|
activeTabId: {
|
|
@@ -5595,7 +5621,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5595
5621
|
},
|
|
5596
5622
|
emits: ["tabClick"],
|
|
5597
5623
|
setup(e, { emit: a }) {
|
|
5598
|
-
const t = e, l =
|
|
5624
|
+
const t = e, l = de(), n = $(), i = f(() => t.activeTabId === l.id), u = f(() => t.panelId || `${l.id}-panel`);
|
|
5599
5625
|
function o(r) {
|
|
5600
5626
|
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), s());
|
|
5601
5627
|
}
|
|
@@ -5605,7 +5631,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5605
5631
|
n.value.dispatchEvent(r);
|
|
5606
5632
|
}
|
|
5607
5633
|
}
|
|
5608
|
-
return (r, m) => (d(),
|
|
5634
|
+
return (r, m) => (d(), h("div", {
|
|
5609
5635
|
"aria-controls": u.value,
|
|
5610
5636
|
"aria-selected": i.value ? "true" : "false",
|
|
5611
5637
|
"data-hidden": e.hidden || void 0,
|
|
@@ -5617,10 +5643,10 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5617
5643
|
onClick: s,
|
|
5618
5644
|
onKeydown: o
|
|
5619
5645
|
}, [
|
|
5620
|
-
|
|
5621
|
-
], 40,
|
|
5646
|
+
O(r.$slots, "default")
|
|
5647
|
+
], 40, eo));
|
|
5622
5648
|
}
|
|
5623
|
-
},
|
|
5649
|
+
}, to = ["id", "data-resizing"], ao = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], no = 73, lo = 20, Ue = 16, oi = {
|
|
5624
5650
|
__name: "BsTabList",
|
|
5625
5651
|
props: {
|
|
5626
5652
|
activeTabId: { type: String, required: !0 },
|
|
@@ -5631,185 +5657,185 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5631
5657
|
},
|
|
5632
5658
|
emits: ["tabChange", "update:modelValue"],
|
|
5633
5659
|
setup(e, { emit: a }) {
|
|
5634
|
-
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);
|
|
5635
5661
|
let I;
|
|
5636
|
-
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(() => {
|
|
5637
5663
|
var x;
|
|
5638
|
-
return
|
|
5639
|
-
}),
|
|
5640
|
-
function
|
|
5641
|
-
var
|
|
5642
|
-
let x = !1, N,
|
|
5643
|
-
if ((
|
|
5644
|
-
for (let
|
|
5645
|
-
if (N = v.value[
|
|
5646
|
-
N.dataset.hidden = "true",
|
|
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);
|
|
5666
|
+
function H() {
|
|
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);
|
|
5647
5673
|
continue;
|
|
5648
5674
|
}
|
|
5649
|
-
if (
|
|
5650
|
-
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;
|
|
5651
5677
|
continue;
|
|
5652
5678
|
}
|
|
5653
5679
|
N.dataset.hidden = "false", N.setAttribute("tabindex", "0");
|
|
5654
5680
|
}
|
|
5655
|
-
s.value = x, u.value =
|
|
5681
|
+
s.value = x, u.value = re, n.value || Ae(() => n.value = !0), I = setTimeout(() => {
|
|
5656
5682
|
r.value && (Rt(), Te(), g.value = !0);
|
|
5657
5683
|
}, g.value ? 25 : 1e3);
|
|
5658
5684
|
}
|
|
5659
5685
|
}
|
|
5660
|
-
function
|
|
5686
|
+
function te() {
|
|
5661
5687
|
clearTimeout(I);
|
|
5662
5688
|
}
|
|
5663
|
-
function
|
|
5664
|
-
|
|
5689
|
+
function ue() {
|
|
5690
|
+
te(), Mt();
|
|
5665
5691
|
}
|
|
5666
|
-
function
|
|
5692
|
+
function ie(x) {
|
|
5667
5693
|
l("tabChange", x), l("update:modelValue", x);
|
|
5668
5694
|
}
|
|
5669
5695
|
function Ce(x) {
|
|
5670
|
-
var ee,
|
|
5671
|
-
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;
|
|
5672
5698
|
return N || (x === 0 ? m.value[0] : m.value[x] - m.value[x - 1]) || 0;
|
|
5673
5699
|
}
|
|
5674
|
-
function
|
|
5700
|
+
function ce() {
|
|
5675
5701
|
var x;
|
|
5676
|
-
(x = v.value[q.value]) == null || x.setAttribute("aria-selected", "true"),
|
|
5702
|
+
(x = v.value[q.value]) == null || x.setAttribute("aria-selected", "true"), H();
|
|
5677
5703
|
}
|
|
5678
5704
|
function xe() {
|
|
5679
5705
|
var x;
|
|
5680
|
-
(x =
|
|
5706
|
+
(x = b.value) == null || x.focus(), o.value = !1;
|
|
5681
5707
|
}
|
|
5682
5708
|
function we() {
|
|
5683
5709
|
o.value = !o.value, i.value || (i.value = !0);
|
|
5684
5710
|
}
|
|
5685
|
-
function
|
|
5711
|
+
function V(x) {
|
|
5686
5712
|
var N;
|
|
5687
|
-
o.value = !1, (N =
|
|
5713
|
+
o.value = !1, (N = b.value) == null || N.focus(), ie(x);
|
|
5688
5714
|
}
|
|
5689
|
-
function
|
|
5715
|
+
function j(x) {
|
|
5690
5716
|
if (t.withBsTabs) return;
|
|
5691
5717
|
const N = x.target.closest('[role="tab"]');
|
|
5692
5718
|
if (!N || N.getAttribute("aria-selected") === "true") return;
|
|
5693
|
-
const
|
|
5694
|
-
|
|
5719
|
+
const K = N.getAttribute("id");
|
|
5720
|
+
ie(K);
|
|
5695
5721
|
}
|
|
5696
5722
|
function M(x) {
|
|
5697
5723
|
if (x.key === "ArrowLeft" || x.key === "ArrowRight") {
|
|
5698
|
-
const N = y.value.findIndex((
|
|
5724
|
+
const N = y.value.findIndex((K) => K.id === x.target.id);
|
|
5699
5725
|
if (N === -1) return;
|
|
5700
|
-
x.preventDefault(), x.stopPropagation(), x.key === "ArrowLeft" ?
|
|
5726
|
+
x.preventDefault(), x.stopPropagation(), x.key === "ArrowLeft" ? _(N) : Z(N);
|
|
5701
5727
|
}
|
|
5702
5728
|
}
|
|
5703
|
-
function
|
|
5704
|
-
var
|
|
5729
|
+
function Z(x) {
|
|
5730
|
+
var K;
|
|
5705
5731
|
const N = (x + 1) % y.value.length;
|
|
5706
|
-
(
|
|
5732
|
+
(K = y.value[N]) == null || K.focus();
|
|
5707
5733
|
}
|
|
5708
|
-
function
|
|
5709
|
-
var
|
|
5734
|
+
function _(x) {
|
|
5735
|
+
var K;
|
|
5710
5736
|
const N = x === 0 ? y.value.length - 1 : x - 1;
|
|
5711
|
-
(
|
|
5737
|
+
(K = y.value[N]) == null || K.focus();
|
|
5712
5738
|
}
|
|
5713
5739
|
function Te() {
|
|
5714
|
-
var
|
|
5740
|
+
var fe, se, rt, st;
|
|
5715
5741
|
const x = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0, N = p.value;
|
|
5716
|
-
let
|
|
5717
|
-
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`);
|
|
5718
5744
|
}
|
|
5719
5745
|
function Mt() {
|
|
5720
5746
|
var x, N;
|
|
5721
|
-
(N = (x =
|
|
5747
|
+
(N = (x = S.value) == null ? void 0 : x.disconnect) == null || N.call(x), S.value = null;
|
|
5722
5748
|
}
|
|
5723
5749
|
function Nt() {
|
|
5724
5750
|
const x = Ve(() => {
|
|
5725
|
-
p.value = r.value.clientWidth,
|
|
5751
|
+
p.value = r.value.clientWidth, H();
|
|
5726
5752
|
}, 25);
|
|
5727
|
-
|
|
5753
|
+
S.value = new ResizeObserver(x), S.value.observe(document.body), r.value && S.value.observe(r.value);
|
|
5728
5754
|
}
|
|
5729
5755
|
function zt() {
|
|
5730
5756
|
v.value = Array.from(r.value.children).filter((x) => x.role === "tab");
|
|
5731
5757
|
}
|
|
5732
5758
|
function Ft() {
|
|
5733
5759
|
let x;
|
|
5734
|
-
v.value.forEach((N,
|
|
5735
|
-
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);
|
|
5736
5762
|
});
|
|
5737
5763
|
}
|
|
5738
5764
|
function Rt() {
|
|
5739
|
-
var N,
|
|
5765
|
+
var N, K;
|
|
5740
5766
|
let x = [];
|
|
5741
5767
|
if (typeof window > "u") return x;
|
|
5742
5768
|
for (let ee of v.value) {
|
|
5743
|
-
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;
|
|
5744
5770
|
x.push(ee);
|
|
5745
5771
|
}
|
|
5746
5772
|
s.value && x.push(r.value.querySelector(".bs-tab-list-toggle")), y.value = x;
|
|
5747
5773
|
}
|
|
5748
|
-
return G(() => t.activeTabId,
|
|
5774
|
+
return G(() => t.activeTabId, ce), Q(() => {
|
|
5749
5775
|
var x;
|
|
5750
5776
|
try {
|
|
5751
|
-
zt(), Ft(), Nt(), p.value = r.value.getBoundingClientRect().width,
|
|
5777
|
+
zt(), Ft(), Nt(), p.value = r.value.getBoundingClientRect().width, H(), t.withBsTabs || (x = v.value[q.value]) == null || x.setAttribute("aria-selected", "true");
|
|
5752
5778
|
} catch (N) {
|
|
5753
5779
|
console.log("tab error", N);
|
|
5754
5780
|
}
|
|
5755
|
-
}), $e(
|
|
5781
|
+
}), $e(ue), (x, N) => (d(), h("div", {
|
|
5756
5782
|
class: "bs-tab-list",
|
|
5757
5783
|
"data-component": "bs-tab-list",
|
|
5758
|
-
id: x.$attrs.id || c(
|
|
5784
|
+
id: x.$attrs.id || c(w),
|
|
5759
5785
|
ref_key: "hostEl",
|
|
5760
5786
|
ref: r,
|
|
5761
5787
|
role: "tablist",
|
|
5762
5788
|
"data-resizing": !n.value || void 0,
|
|
5763
|
-
onClick:
|
|
5764
|
-
"on:tabClick": N[0] || (N[0] = (
|
|
5789
|
+
onClick: j,
|
|
5790
|
+
"on:tabClick": N[0] || (N[0] = (K) => ie(K.detail)),
|
|
5765
5791
|
onKeydown: M
|
|
5766
5792
|
}, [
|
|
5767
|
-
|
|
5793
|
+
O(x.$slots, "default"),
|
|
5768
5794
|
B("button", {
|
|
5769
5795
|
"aria-controls": c(k),
|
|
5770
5796
|
"aria-expanded": o.value,
|
|
5771
5797
|
class: "bs-tab-list-toggle",
|
|
5772
|
-
"data-active":
|
|
5798
|
+
"data-active": z.value || void 0,
|
|
5773
5799
|
"data-hidden": !s.value,
|
|
5774
|
-
id:
|
|
5800
|
+
id: D.value,
|
|
5775
5801
|
ref_key: "dropdownToggle",
|
|
5776
|
-
ref:
|
|
5802
|
+
ref: b,
|
|
5777
5803
|
onClick: we
|
|
5778
5804
|
}, [
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
], 8,
|
|
5782
|
-
|
|
5783
|
-
"anchor-id":
|
|
5784
|
-
"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),
|
|
5785
5811
|
"helper-description": e.helperDescription || void 0,
|
|
5786
5812
|
"helper-text": e.helperText,
|
|
5787
5813
|
id: c(k),
|
|
5788
|
-
"options-id":
|
|
5814
|
+
"options-id": R.value,
|
|
5789
5815
|
position: "right",
|
|
5790
5816
|
preloaded: "",
|
|
5791
5817
|
shown: o.value,
|
|
5792
5818
|
width: "content",
|
|
5793
5819
|
onClose: xe,
|
|
5794
|
-
"onUpdate:modelValue":
|
|
5820
|
+
"onUpdate:modelValue": V
|
|
5795
5821
|
}, {
|
|
5796
|
-
default:
|
|
5797
|
-
(d(!0),
|
|
5798
|
-
key:
|
|
5799
|
-
value:
|
|
5800
|
-
"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
|
|
5801
5827
|
}, {
|
|
5802
|
-
default:
|
|
5803
|
-
|
|
5828
|
+
default: L(() => [
|
|
5829
|
+
U(T(K.textContent), 1)
|
|
5804
5830
|
]),
|
|
5805
5831
|
_: 2
|
|
5806
5832
|
}, 1032, ["value", "options-id"]))), 128))
|
|
5807
5833
|
]),
|
|
5808
5834
|
_: 1
|
|
5809
5835
|
}, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])
|
|
5810
|
-
], 40,
|
|
5836
|
+
], 40, to));
|
|
5811
5837
|
}
|
|
5812
|
-
},
|
|
5838
|
+
}, oo = ["aria-labelledby", "data-active", "id"], ii = {
|
|
5813
5839
|
__name: "BsTabPanel",
|
|
5814
5840
|
props: {
|
|
5815
5841
|
activeTabId: {
|
|
@@ -5822,18 +5848,18 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5822
5848
|
}
|
|
5823
5849
|
},
|
|
5824
5850
|
setup(e) {
|
|
5825
|
-
const a = e, t =
|
|
5826
|
-
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", {
|
|
5827
5853
|
"aria-labelledby": e.tabId,
|
|
5828
5854
|
"data-active": l.value,
|
|
5829
5855
|
"data-component": "bs-tab-panel",
|
|
5830
5856
|
id: n.value,
|
|
5831
5857
|
role: "tabpanel"
|
|
5832
5858
|
}, [
|
|
5833
|
-
|
|
5834
|
-
], 8,
|
|
5859
|
+
O(i.$slots, "default")
|
|
5860
|
+
], 8, oo));
|
|
5835
5861
|
}
|
|
5836
|
-
},
|
|
5862
|
+
}, io = ["data-error", "id", "rows", "value"], ro = {
|
|
5837
5863
|
__name: "BsTextarea",
|
|
5838
5864
|
props: {
|
|
5839
5865
|
error: {
|
|
@@ -5849,7 +5875,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5849
5875
|
emits: ["update:modelValue"],
|
|
5850
5876
|
setup(e, { emit: a }) {
|
|
5851
5877
|
const t = e, l = f(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
5852
|
-
return (n, i) => (d(),
|
|
5878
|
+
return (n, i) => (d(), h("textarea", F({
|
|
5853
5879
|
class: "bs-textarea",
|
|
5854
5880
|
"data-component": "bs-textarea",
|
|
5855
5881
|
"data-error": e.error,
|
|
@@ -5857,9 +5883,9 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5857
5883
|
rows: n.$attrs.rows || 6,
|
|
5858
5884
|
value: e.value || e.modelValue,
|
|
5859
5885
|
onInput: i[0] || (i[0] = (u) => n.$emit("update:modelValue", u.target.value))
|
|
5860
|
-
}, l.value), null, 16,
|
|
5886
|
+
}, l.value), null, 16, io));
|
|
5861
5887
|
}
|
|
5862
|
-
},
|
|
5888
|
+
}, ri = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5863
5889
|
__name: "BsTextareaField",
|
|
5864
5890
|
props: {
|
|
5865
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. */
|
|
@@ -5908,7 +5934,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5908
5934
|
},
|
|
5909
5935
|
emits: ["update:modelValue"],
|
|
5910
5936
|
setup(e, { emit: a }) {
|
|
5911
|
-
const t = e, [l, n] =
|
|
5937
|
+
const t = e, [l, n] = J(2), i = f(() => Wa.concat(t.passAttrs.split(","))), u = f(() => {
|
|
5912
5938
|
var m;
|
|
5913
5939
|
return ((m = t.value || t.modelValue) == null ? void 0 : m.length) || 0;
|
|
5914
5940
|
}), o = f(() => {
|
|
@@ -5916,21 +5942,21 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5916
5942
|
return ((g = (m = t.hints) == null ? void 0 : m.join) == null ? void 0 : g.call(m, `
|
|
5917
5943
|
`)) || t.hints;
|
|
5918
5944
|
}), s = f(() => t.error && t.errorMsg || t.hint || o.value || void 0), r = f(() => t.inputId || l.value);
|
|
5919
|
-
return (m, g) => (d(),
|
|
5920
|
-
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, {
|
|
5921
5947
|
key: 0,
|
|
5922
5948
|
for: m.$attrs.id || r.value,
|
|
5923
5949
|
disabled: e.disabled,
|
|
5924
5950
|
required: e.required
|
|
5925
5951
|
}, {
|
|
5926
|
-
default:
|
|
5927
|
-
|
|
5928
|
-
|
|
5952
|
+
default: L(() => [
|
|
5953
|
+
O(m.$slots, "label", {}, () => [
|
|
5954
|
+
U(T(e.label), 1)
|
|
5929
5955
|
])
|
|
5930
5956
|
]),
|
|
5931
5957
|
_: 3
|
|
5932
5958
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
5933
|
-
|
|
5959
|
+
E(ro, F({
|
|
5934
5960
|
disabled: e.disabled,
|
|
5935
5961
|
error: e.error,
|
|
5936
5962
|
"hint-id": c(n),
|
|
@@ -5940,8 +5966,8 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5940
5966
|
rows: e.rows,
|
|
5941
5967
|
value: e.value || e.modelValue,
|
|
5942
5968
|
"onUpdate:modelValue": g[0] || (g[0] = (v) => m.$emit("update:modelValue", v))
|
|
5943
|
-
}, c(
|
|
5944
|
-
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, {
|
|
5945
5971
|
key: 1,
|
|
5946
5972
|
"char-count": u.value,
|
|
5947
5973
|
"char-max": e.charMax,
|
|
@@ -5954,15 +5980,15 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5954
5980
|
], 16));
|
|
5955
5981
|
}
|
|
5956
5982
|
});
|
|
5957
|
-
function
|
|
5983
|
+
function so(e) {
|
|
5958
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);
|
|
5959
5985
|
return a ? "uFmt" : t ? "uFmtNoColon" : l ? "amPm" : n ? "amPmNoColon" : "";
|
|
5960
5986
|
}
|
|
5961
5987
|
const Be = (e) => parseInt(e, 10);
|
|
5962
|
-
function
|
|
5988
|
+
function uo(e = "") {
|
|
5963
5989
|
const a = /[^0-9:apmAPM]/g;
|
|
5964
5990
|
let t, l;
|
|
5965
|
-
switch (e = e.replaceAll(a, "").toLowerCase(),
|
|
5991
|
+
switch (e = e.replaceAll(a, "").toLowerCase(), so(e)) {
|
|
5966
5992
|
case "uFmt":
|
|
5967
5993
|
case "uFmtNoColon":
|
|
5968
5994
|
l = Be(e.slice(-2)), t = Be(e.slice(0, -2));
|
|
@@ -5978,17 +6004,17 @@ function so(e = "") {
|
|
|
5978
6004
|
minutes: l
|
|
5979
6005
|
};
|
|
5980
6006
|
}
|
|
5981
|
-
function
|
|
6007
|
+
function Se(e = "") {
|
|
5982
6008
|
const a = /[^0-9:]/g;
|
|
5983
6009
|
if (e = e.replaceAll(a, ""), !e) return "";
|
|
5984
6010
|
const [t, l] = e.split(":"), n = Be(t), i = Be(l), u = n < 12 ? "AM" : "PM";
|
|
5985
6011
|
return isNaN(n) || isNaN(i) || n > 23 || i > 59 ? "" : `${n % 12 || 12}:${l} ${u}`;
|
|
5986
6012
|
}
|
|
5987
|
-
function
|
|
5988
|
-
const { hours: a, minutes: t } =
|
|
6013
|
+
function co(e = "") {
|
|
6014
|
+
const { hours: a, minutes: t } = uo(e);
|
|
5989
6015
|
return isNaN(a) || isNaN(t) ? "" : `${a.toString().padStart(2, "0")}:${t.toString().padStart(2, "0")}`;
|
|
5990
6016
|
}
|
|
5991
|
-
const
|
|
6017
|
+
const He = "excluded", Ge = "over", vt = "skip", gt = "stop", Ke = "under", fo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5992
6018
|
__name: "BsTimePicker",
|
|
5993
6019
|
props: {
|
|
5994
6020
|
disabled: {
|
|
@@ -6053,69 +6079,69 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6053
6079
|
},
|
|
6054
6080
|
emits: ["update:modelValue"],
|
|
6055
6081
|
setup(e, { expose: a, emit: t }) {
|
|
6056
|
-
const l = e, n = t, i = $(
|
|
6082
|
+
const l = e, n = t, i = $(Se(l.modelValue)), u = $([]), o = $(""), s = $(!1);
|
|
6057
6083
|
function r() {
|
|
6058
|
-
const
|
|
6084
|
+
const w = [];
|
|
6059
6085
|
let k = !1;
|
|
6060
6086
|
for (let I = 0; I < 24 && !k; I++)
|
|
6061
6087
|
for (let q = 0; q < 60; q += l.step) {
|
|
6062
|
-
const
|
|
6063
|
-
if (
|
|
6064
|
-
if (
|
|
6088
|
+
const z = v(I, q), R = g(z);
|
|
6089
|
+
if (R !== vt) {
|
|
6090
|
+
if (R === gt) {
|
|
6065
6091
|
k = !0;
|
|
6066
6092
|
break;
|
|
6067
6093
|
}
|
|
6068
|
-
|
|
6069
|
-
label:
|
|
6070
|
-
value:
|
|
6094
|
+
w.push({
|
|
6095
|
+
label: Se(z),
|
|
6096
|
+
value: z
|
|
6071
6097
|
});
|
|
6072
6098
|
}
|
|
6073
6099
|
}
|
|
6074
|
-
return
|
|
6100
|
+
return w;
|
|
6075
6101
|
}
|
|
6076
|
-
function m(
|
|
6077
|
-
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 : "" : "";
|
|
6078
6104
|
}
|
|
6079
|
-
function g(
|
|
6080
|
-
switch (m(
|
|
6081
|
-
case
|
|
6105
|
+
function g(w) {
|
|
6106
|
+
switch (m(w)) {
|
|
6107
|
+
case Ge:
|
|
6082
6108
|
return gt;
|
|
6083
6109
|
case Ke:
|
|
6084
|
-
case
|
|
6110
|
+
case He:
|
|
6085
6111
|
return vt;
|
|
6086
6112
|
default:
|
|
6087
6113
|
return "";
|
|
6088
6114
|
}
|
|
6089
6115
|
}
|
|
6090
|
-
function v(
|
|
6091
|
-
return
|
|
6116
|
+
function v(w, k) {
|
|
6117
|
+
return w = w.toString().padStart(2, "0"), k = k.toString().padStart(2, "0"), `${w}:${k}`;
|
|
6092
6118
|
}
|
|
6093
|
-
function
|
|
6094
|
-
const k =
|
|
6095
|
-
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);
|
|
6096
6122
|
}
|
|
6097
6123
|
function y() {
|
|
6098
6124
|
u.value = r();
|
|
6099
6125
|
}
|
|
6100
|
-
function w
|
|
6101
|
-
p(
|
|
6126
|
+
function S(w) {
|
|
6127
|
+
p(w), n("update:modelValue", w);
|
|
6102
6128
|
}
|
|
6103
|
-
function p(
|
|
6104
|
-
switch (m(
|
|
6105
|
-
case
|
|
6106
|
-
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;
|
|
6107
6133
|
break;
|
|
6108
6134
|
case Ke:
|
|
6109
|
-
o.value = `Time must be after ${
|
|
6135
|
+
o.value = `Time must be after ${Se(l.minTime)}`, s.value = !0;
|
|
6110
6136
|
break;
|
|
6111
|
-
case
|
|
6112
|
-
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;
|
|
6113
6139
|
break;
|
|
6114
6140
|
default:
|
|
6115
6141
|
o.value = "", s.value = !1;
|
|
6116
6142
|
}
|
|
6117
6143
|
}
|
|
6118
|
-
return
|
|
6144
|
+
return Q(y), G([
|
|
6119
6145
|
() => l.disabledTimes,
|
|
6120
6146
|
() => l.maxTime,
|
|
6121
6147
|
() => l.minTime,
|
|
@@ -6125,12 +6151,12 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6125
6151
|
() => l.maxTime,
|
|
6126
6152
|
() => l.minTime,
|
|
6127
6153
|
() => l.modelValue
|
|
6128
|
-
], () => p(l.modelValue)), G(() => l.modelValue, (
|
|
6129
|
-
i.value = l.modelValue ?
|
|
6154
|
+
], () => p(l.modelValue)), G(() => l.modelValue, (w) => {
|
|
6155
|
+
i.value = l.modelValue ? Se(w) : "";
|
|
6130
6156
|
}), a({
|
|
6131
6157
|
validationErr: s,
|
|
6132
6158
|
validationErrMsg: o
|
|
6133
|
-
}), (
|
|
6159
|
+
}), (w, k) => (d(), A(Et, {
|
|
6134
6160
|
disabled: e.disabled,
|
|
6135
6161
|
"display-value": i.value,
|
|
6136
6162
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -6145,10 +6171,10 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6145
6171
|
placeholder: e.placeholder,
|
|
6146
6172
|
required: e.required,
|
|
6147
6173
|
"update-on-input": !1,
|
|
6148
|
-
"onUpdate:modelValue":
|
|
6174
|
+
"onUpdate:modelValue": b
|
|
6149
6175
|
}, null, 8, ["disabled", "display-value", "dropdown-position", "dropdown-width", "error", "helper-description", "helper-text", "hint-id", "input-id", "model-value", "options", "placeholder", "required"]));
|
|
6150
6176
|
}
|
|
6151
|
-
}),
|
|
6177
|
+
}), si = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
6152
6178
|
__name: "BsTimePickerField",
|
|
6153
6179
|
props: {
|
|
6154
6180
|
disabled: {
|
|
@@ -6217,34 +6243,34 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6217
6243
|
},
|
|
6218
6244
|
emits: ["update:modelValue"],
|
|
6219
6245
|
setup(e, { expose: a, emit: t }) {
|
|
6220
|
-
const l = e, [n, i] =
|
|
6221
|
-
var
|
|
6222
|
-
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;
|
|
6223
6249
|
}), v = f(() => {
|
|
6224
|
-
var
|
|
6225
|
-
return (
|
|
6250
|
+
var b;
|
|
6251
|
+
return (b = u.value) == null ? void 0 : b.validationErr;
|
|
6226
6252
|
});
|
|
6227
6253
|
return a({
|
|
6228
6254
|
validationErr: v,
|
|
6229
6255
|
validationErrMsg: g
|
|
6230
|
-
}), (
|
|
6256
|
+
}), (b, y) => (d(), h("div", F({
|
|
6231
6257
|
"aria-live": "polite",
|
|
6232
6258
|
"data-component": "bs-time-picker-field"
|
|
6233
|
-
}, c(
|
|
6234
|
-
e.label ||
|
|
6259
|
+
}, c(X)(b.$attrs, c(ge)).remaining), [
|
|
6260
|
+
e.label || b.$slots.label ? (d(), A(le, {
|
|
6235
6261
|
key: 0,
|
|
6236
|
-
for:
|
|
6262
|
+
for: b.$attrs.id || r.value,
|
|
6237
6263
|
disabled: e.disabled,
|
|
6238
6264
|
required: e.required
|
|
6239
6265
|
}, {
|
|
6240
|
-
default:
|
|
6241
|
-
|
|
6242
|
-
|
|
6266
|
+
default: L(() => [
|
|
6267
|
+
O(b.$slots, "label", {}, () => [
|
|
6268
|
+
U(T(e.label), 1)
|
|
6243
6269
|
])
|
|
6244
6270
|
]),
|
|
6245
6271
|
_: 3
|
|
6246
6272
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
6247
|
-
|
|
6273
|
+
E(fo, F({
|
|
6248
6274
|
ref_key: "timePicker",
|
|
6249
6275
|
ref: u,
|
|
6250
6276
|
disabled: e.disabled,
|
|
@@ -6255,26 +6281,26 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6255
6281
|
"helper-description": e.helperDescription,
|
|
6256
6282
|
"helper-text": e.helperText,
|
|
6257
6283
|
"hint-id": c(i),
|
|
6258
|
-
"input-id":
|
|
6284
|
+
"input-id": b.$attrs.id || r.value,
|
|
6259
6285
|
"max-time": e.maxTime,
|
|
6260
6286
|
"min-time": e.minTime,
|
|
6261
6287
|
"model-value": e.modelValue,
|
|
6262
6288
|
placeholder: e.placeholder,
|
|
6263
6289
|
required: e.required,
|
|
6264
6290
|
step: e.step,
|
|
6265
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
6266
|
-
}, c(
|
|
6267
|
-
|
|
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, {
|
|
6268
6294
|
error: s.value,
|
|
6269
6295
|
"error-msg": o.value,
|
|
6270
6296
|
hint: e.hint,
|
|
6271
6297
|
"hint-id": c(i)
|
|
6272
6298
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
6273
|
-
[
|
|
6299
|
+
[me, m.value]
|
|
6274
6300
|
])
|
|
6275
6301
|
], 16));
|
|
6276
6302
|
}
|
|
6277
|
-
}),
|
|
6303
|
+
}), po = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], mo = ["data-status"], ho = { class: "visually-hidden" }, di = {
|
|
6278
6304
|
__name: "BsTimeline",
|
|
6279
6305
|
props: {
|
|
6280
6306
|
/** @type {Status} */
|
|
@@ -6315,7 +6341,7 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6315
6341
|
function u(o, s) {
|
|
6316
6342
|
return o = i(o, s), t[o] || ut;
|
|
6317
6343
|
}
|
|
6318
|
-
return (o, s) => (d(),
|
|
6344
|
+
return (o, s) => (d(), h("div", {
|
|
6319
6345
|
"aria-valuemax": e.steps.length,
|
|
6320
6346
|
"aria-valuenow": c(l),
|
|
6321
6347
|
"aria-valuetext": c(n),
|
|
@@ -6323,24 +6349,24 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6323
6349
|
"data-component": "bs-timeline",
|
|
6324
6350
|
role: "progressbar"
|
|
6325
6351
|
}, [
|
|
6326
|
-
(d(!0),
|
|
6352
|
+
(d(!0), h(Y, null, ae(e.steps, (r, m) => (d(), h("div", {
|
|
6327
6353
|
class: "bs-step-item",
|
|
6328
6354
|
"data-status": c(i)(r.status, m),
|
|
6329
6355
|
key: r.id || r.label,
|
|
6330
6356
|
role: "status"
|
|
6331
6357
|
}, [
|
|
6332
|
-
(d(),
|
|
6358
|
+
(d(), A(ne(u(r.status, m)), {
|
|
6333
6359
|
class: "bs-step-icon",
|
|
6334
6360
|
role: "presentation"
|
|
6335
6361
|
})),
|
|
6336
6362
|
B("p", null, [
|
|
6337
|
-
|
|
6338
|
-
B("span",
|
|
6363
|
+
U(T(r.label || r) + " ", 1),
|
|
6364
|
+
B("span", ho, " : " + T(c(i)(r.status, m) || "not started"), 1)
|
|
6339
6365
|
])
|
|
6340
|
-
], 8,
|
|
6341
|
-
], 8,
|
|
6366
|
+
], 8, mo))), 128))
|
|
6367
|
+
], 8, po));
|
|
6342
6368
|
}
|
|
6343
|
-
}, bo = ["data-variant", "data-shown", "data-stacked"],
|
|
6369
|
+
}, bo = ["data-variant", "data-shown", "data-stacked"], ui = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
6344
6370
|
__name: "BsToast",
|
|
6345
6371
|
props: {
|
|
6346
6372
|
shown: {
|
|
@@ -6388,8 +6414,8 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6388
6414
|
setup(e, { emit: a }) {
|
|
6389
6415
|
const t = e, l = a, { transition: n } = Ee(t);
|
|
6390
6416
|
let i = null;
|
|
6391
|
-
|
|
6392
|
-
const u =
|
|
6417
|
+
he("variant", t.variant), he("handleDismiss", o);
|
|
6418
|
+
const u = be("stacked", t.stacked);
|
|
6393
6419
|
function o() {
|
|
6394
6420
|
i && (clearTimeout(i), i = null), l("dismiss", t.toastId);
|
|
6395
6421
|
}
|
|
@@ -6398,15 +6424,15 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6398
6424
|
o();
|
|
6399
6425
|
}, t.duration)), l("after-enter");
|
|
6400
6426
|
}
|
|
6401
|
-
return (r, m) => (d(),
|
|
6427
|
+
return (r, m) => (d(), A(Pe, {
|
|
6402
6428
|
name: "bs-toast",
|
|
6403
6429
|
shown: c(n),
|
|
6404
6430
|
preloaded: e.preloaded,
|
|
6405
6431
|
onAfterEnter: s,
|
|
6406
6432
|
onAfterLeave: m[0] || (m[0] = (g) => l("after-leave"))
|
|
6407
6433
|
}, {
|
|
6408
|
-
default:
|
|
6409
|
-
B("div",
|
|
6434
|
+
default: L(() => [
|
|
6435
|
+
B("div", F({
|
|
6410
6436
|
class: "bs-toast",
|
|
6411
6437
|
"data-component": "bs-toast",
|
|
6412
6438
|
"data-variant": e.variant,
|
|
@@ -6414,58 +6440,58 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6414
6440
|
"data-stacked": c(u) || void 0,
|
|
6415
6441
|
role: "alert"
|
|
6416
6442
|
}, r.$attrs), [
|
|
6417
|
-
|
|
6443
|
+
O(r.$slots, "default")
|
|
6418
6444
|
], 16, bo)
|
|
6419
6445
|
]),
|
|
6420
6446
|
_: 3
|
|
6421
6447
|
}, 8, ["shown", "preloaded"]));
|
|
6422
6448
|
}
|
|
6423
|
-
}),
|
|
6449
|
+
}), vo = ["data-stacked"], ci = {
|
|
6424
6450
|
__name: "BsToastActions",
|
|
6425
6451
|
setup(e) {
|
|
6426
|
-
const a =
|
|
6452
|
+
const a = be("handleDismiss", () => {
|
|
6427
6453
|
});
|
|
6428
6454
|
function t() {
|
|
6429
6455
|
var l, n;
|
|
6430
6456
|
return ((n = (l = et()).default) == null ? void 0 : n.call(l).length) > 2 || void 0;
|
|
6431
6457
|
}
|
|
6432
|
-
return (l, n) => (d(),
|
|
6458
|
+
return (l, n) => (d(), h("div", {
|
|
6433
6459
|
class: "bs-toast-actions",
|
|
6434
6460
|
"data-component": "bs-toast-actions",
|
|
6435
6461
|
"data-stacked": t()
|
|
6436
6462
|
}, [
|
|
6437
|
-
|
|
6438
|
-
|
|
6463
|
+
O(l.$slots, "default", {}, () => [
|
|
6464
|
+
E(xt, {
|
|
6439
6465
|
size: "sm",
|
|
6440
6466
|
"text-btn": "",
|
|
6441
6467
|
onClick: c(a)
|
|
6442
6468
|
}, {
|
|
6443
|
-
default:
|
|
6444
|
-
|
|
6469
|
+
default: L(() => n[0] || (n[0] = [
|
|
6470
|
+
U(" Dismiss ")
|
|
6445
6471
|
])),
|
|
6446
6472
|
_: 1
|
|
6447
6473
|
}, 8, ["onClick"])
|
|
6448
6474
|
])
|
|
6449
|
-
], 8,
|
|
6475
|
+
], 8, vo));
|
|
6450
6476
|
}
|
|
6451
|
-
},
|
|
6477
|
+
}, go = (e, a) => {
|
|
6452
6478
|
const t = e.__vccOpts || e;
|
|
6453
6479
|
for (const [l, n] of a)
|
|
6454
6480
|
t[l] = n;
|
|
6455
6481
|
return t;
|
|
6456
|
-
},
|
|
6482
|
+
}, yo = {}, So = {
|
|
6457
6483
|
class: "bs-toast-body",
|
|
6458
6484
|
"data-component": "bs-toast-body"
|
|
6459
6485
|
};
|
|
6460
|
-
function
|
|
6461
|
-
return d(),
|
|
6462
|
-
|
|
6486
|
+
function wo(e, a) {
|
|
6487
|
+
return d(), h("div", So, [
|
|
6488
|
+
O(e.$slots, "default")
|
|
6463
6489
|
]);
|
|
6464
6490
|
}
|
|
6465
|
-
const
|
|
6491
|
+
const fi = /* @__PURE__ */ go(yo, [["render", wo]]), Bo = ["data-variant"], pi = {
|
|
6466
6492
|
__name: "BsToastHeader",
|
|
6467
6493
|
setup(e) {
|
|
6468
|
-
const a =
|
|
6494
|
+
const a = be("variant", void 0), t = f(() => {
|
|
6469
6495
|
switch (a) {
|
|
6470
6496
|
case "warning":
|
|
6471
6497
|
return Xe;
|
|
@@ -6477,28 +6503,28 @@ const ci = /* @__PURE__ */ vo(go, [["render", So]]), wo = ["data-variant"], fi =
|
|
|
6477
6503
|
return kt;
|
|
6478
6504
|
}
|
|
6479
6505
|
});
|
|
6480
|
-
return (l, n) => (d(),
|
|
6506
|
+
return (l, n) => (d(), h("div", {
|
|
6481
6507
|
class: "bs-toast-header",
|
|
6482
6508
|
"data-component": "bs-toast-header",
|
|
6483
6509
|
"data-variant": c(a)
|
|
6484
6510
|
}, [
|
|
6485
|
-
(d(),
|
|
6511
|
+
(d(), A(ne(t.value), { class: "bs-toast-header-icon" })),
|
|
6486
6512
|
B("h5", null, [
|
|
6487
|
-
|
|
6513
|
+
O(l.$slots, "default")
|
|
6488
6514
|
])
|
|
6489
|
-
], 8,
|
|
6515
|
+
], 8, Bo));
|
|
6490
6516
|
}
|
|
6491
|
-
},
|
|
6517
|
+
}, $o = {
|
|
6492
6518
|
class: "bs-toaster",
|
|
6493
6519
|
"data-component": "bs-toaster"
|
|
6494
|
-
},
|
|
6520
|
+
}, mi = {
|
|
6495
6521
|
__name: "BsToaster",
|
|
6496
6522
|
setup(e) {
|
|
6497
|
-
return
|
|
6498
|
-
|
|
6523
|
+
return he("stacked", !0), (a, t) => (d(), h("div", $o, [
|
|
6524
|
+
O(a.$slots, "default")
|
|
6499
6525
|
]));
|
|
6500
6526
|
}
|
|
6501
|
-
},
|
|
6527
|
+
}, Io = ["data-position"], ko = ["id"], hi = {
|
|
6502
6528
|
__name: "BsTooltip",
|
|
6503
6529
|
props: {
|
|
6504
6530
|
tooltipId: {
|
|
@@ -6529,7 +6555,7 @@ const ci = /* @__PURE__ */ vo(go, [["render", So]]), wo = ["data-variant"], fi =
|
|
|
6529
6555
|
let o = "bs-tooltip-text";
|
|
6530
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;
|
|
6531
6557
|
});
|
|
6532
|
-
|
|
6558
|
+
ve(["Escape"], () => {
|
|
6533
6559
|
t.value && (t.value = !1, l.value = !0);
|
|
6534
6560
|
});
|
|
6535
6561
|
function i() {
|
|
@@ -6538,7 +6564,7 @@ const ci = /* @__PURE__ */ vo(go, [["render", So]]), wo = ["data-variant"], fi =
|
|
|
6538
6564
|
function u() {
|
|
6539
6565
|
t.value = !1, l.value = !1;
|
|
6540
6566
|
}
|
|
6541
|
-
return (o, s) => (d(),
|
|
6567
|
+
return (o, s) => (d(), h("div", {
|
|
6542
6568
|
class: "bs-tooltip",
|
|
6543
6569
|
"data-position": e.position || void 0,
|
|
6544
6570
|
"data-component": "bs-tooltip",
|
|
@@ -6547,16 +6573,16 @@ const ci = /* @__PURE__ */ vo(go, [["render", So]]), wo = ["data-variant"], fi =
|
|
|
6547
6573
|
onMouseleave: u,
|
|
6548
6574
|
onFocusout: u
|
|
6549
6575
|
}, [
|
|
6550
|
-
|
|
6551
|
-
e.content ? (d(),
|
|
6576
|
+
O(o.$slots, "default"),
|
|
6577
|
+
e.content ? (d(), h("div", {
|
|
6552
6578
|
key: 0,
|
|
6553
|
-
class:
|
|
6579
|
+
class: oe(n.value),
|
|
6554
6580
|
id: e.tooltipId,
|
|
6555
6581
|
role: "tooltip"
|
|
6556
|
-
},
|
|
6557
|
-
], 40,
|
|
6582
|
+
}, T(e.content), 11, ko)) : C("", !0)
|
|
6583
|
+
], 40, Io));
|
|
6558
6584
|
}
|
|
6559
|
-
},
|
|
6585
|
+
}, Co = {
|
|
6560
6586
|
accordion: "[data-component=bs-accordion]",
|
|
6561
6587
|
badge: "[data-component=bs-badge]",
|
|
6562
6588
|
banner: "[data-component=bs-banner]",
|
|
@@ -6614,68 +6640,68 @@ const ci = /* @__PURE__ */ vo(go, [["render", So]]), wo = ["data-variant"], fi =
|
|
|
6614
6640
|
toaster: "[data-component=bs-toaster]",
|
|
6615
6641
|
tooltip: "[data-component=bs-tooltip]"
|
|
6616
6642
|
}, bi = {
|
|
6617
|
-
bsSelectors:
|
|
6643
|
+
bsSelectors: Co
|
|
6618
6644
|
};
|
|
6619
6645
|
export {
|
|
6620
|
-
|
|
6646
|
+
Do as BsAccordion,
|
|
6621
6647
|
Ca as BsBadge,
|
|
6622
|
-
|
|
6648
|
+
Po as BsBanner,
|
|
6623
6649
|
xt as BsButton,
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6650
|
+
qo as BsCalendar,
|
|
6651
|
+
Mo as BsCaretButton,
|
|
6652
|
+
No as BsCaretTextButton,
|
|
6653
|
+
zo as BsChartBar,
|
|
6654
|
+
Fo as BsCheckbox,
|
|
6629
6655
|
Tt as BsCircleButton,
|
|
6630
6656
|
ot as BsDropdown,
|
|
6631
6657
|
Et as BsDropdownCombobox,
|
|
6632
|
-
|
|
6658
|
+
Ro as BsDropdownComboboxField,
|
|
6633
6659
|
Dt as BsDropdownMultiselect,
|
|
6634
6660
|
it as BsDropdownOption,
|
|
6635
6661
|
qe as BsDropdownOptionBuilder,
|
|
6636
6662
|
Re as BsDropdownOptionList,
|
|
6637
6663
|
Pt as BsDropdownWithOptions,
|
|
6638
6664
|
Lt as BsDropdownWithToggle,
|
|
6639
|
-
|
|
6665
|
+
Wo as BsEmptyState,
|
|
6640
6666
|
ye as BsFieldDetails,
|
|
6641
6667
|
In as BsFilterButton,
|
|
6642
|
-
|
|
6643
|
-
|
|
6668
|
+
jo as BsFlyout,
|
|
6669
|
+
Uo as BsIconGradientWrapper,
|
|
6644
6670
|
ke as BsInput,
|
|
6645
6671
|
De as BsInputAddon,
|
|
6646
|
-
|
|
6672
|
+
Ho as BsInputField,
|
|
6647
6673
|
Go as BsInputPhone,
|
|
6648
6674
|
Vt as BsInputSearch,
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6675
|
+
Ko as BsInputTypeahead,
|
|
6676
|
+
le as BsLabel,
|
|
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,
|
|
6658
6684
|
Ot as BsProfileImg,
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
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,
|
|
6680
6706
|
bi as bsSelectors
|
|
6681
6707
|
};
|