@wwtdev/bsds-components-vue3 2.13.1 → 2.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bsds-components.js +1104 -1110
- package/lib/components.css +1 -1
- package/package.json +9 -10
package/lib/bsds-components.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import {
|
|
3
|
-
import { BsIconCaretDown as Me, BsIconWarning as Xe, BsIconClose as Be, BsIconCalendar as $t, BsIconCaretRight as Bt, BsIconCaretLeft as It, BsIconSmallCaretRight as Ft, BsIconSmallCaretLeft as Rt, BsIconCaretSort as jt, BsIconSearch as Wt, BsIconCaretLeftDouble as Ut, BsIconCaretRightDouble as Gt, BsIconActionEllipsis as Ht, BsIconGraphPieEmpty as dt, BsIconCircleStop as Kt, BsIconCircleCheck as Yt, BsIconCircleX as Zt, BsIconCircleEllipsis as Xt, BsIconCirclePlay as Qt, BsIconCirclePause as Jt, BsIconCircleExclamation as kt, BsIconThumbsUpStroke as _t } from "@wwtdev/bsds-icons-vue3";
|
|
1
|
+
import { computed as f, ref as I, onMounted as H, onUnmounted as Be, shallowRef as Mt, watch as j, defineAsyncComponent as Je, useId as gt, openBlock as u, createElementBlock as b, unref as c, createElementVNode as w, renderSlot as E, createBlock as V, resolveDynamicComponent as te, createCommentVNode as x, createTextVNode as W, toDisplayString as O, createVNode as P, normalizeClass as ie, useAttrs as re, mergeProps as z, withCtx as D, Fragment as G, toHandlers as Ye, onBeforeUnmount as _e, onBeforeMount as yt, nextTick as Ae, createSlots as Ze, useSlots as St, renderList as ee, Teleport as Nt, withDirectives as ue, Transition as st, vShow as ce, provide as fe, inject as pe, withModifiers as wt, isRef as zt } from "vue";
|
|
2
|
+
import { BsIconCaretDown as Me, BsIconWarning as Xe, BsIconClose as $e, BsIconCalendar as Bt, BsIconCaretRight as $t, BsIconCaretLeft as It, BsIconSmallCaretRight as Ft, BsIconSmallCaretLeft as Rt, BsIconCaretSort as jt, BsIconSearch as Wt, BsIconCaretLeftDouble as Ut, BsIconCaretRightDouble as Gt, BsIconActionEllipsis as Ht, BsIconGraphPieEmpty as dt, BsIconCircleStop as Kt, BsIconCircleCheck as Yt, BsIconCircleX as Zt, BsIconCircleEllipsis as Xt, BsIconCirclePlay as Qt, BsIconCirclePause as Jt, BsIconCircleExclamation as kt, BsIconThumbsUpStroke as _t } from "@wwtdev/bsds-icons-vue3";
|
|
4
3
|
import { DatePicker as ea } from "v-calendar";
|
|
5
4
|
import { Filler as ta, Chart as je, BarController as aa, BarElement as na, CategoryScale as la, LinearScale as oa, Legend as ia, TimeScale as ra, Tooltip as sa } from "chart.js";
|
|
6
5
|
import "chartjs-adapter-date-fns";
|
|
@@ -14,13 +13,13 @@ const ct = {
|
|
|
14
13
|
type: "button"
|
|
15
14
|
};
|
|
16
15
|
function ze(e, a, t = "button") {
|
|
17
|
-
const l = ca(e, a, t), n =
|
|
16
|
+
const l = ca(e, a, t), n = f(() => {
|
|
18
17
|
const o = l.value === "button", s = {};
|
|
19
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;
|
|
20
|
-
}), i =
|
|
19
|
+
}), i = f(() => {
|
|
21
20
|
const o = { ...a, ...n.value };
|
|
22
21
|
return delete o.href, o;
|
|
23
|
-
}), d =
|
|
22
|
+
}), d = f(() => e.linkTo || e.href);
|
|
24
23
|
return { rootTag: l, attrsToBind: i, hrefUrl: d };
|
|
25
24
|
}
|
|
26
25
|
function ca(e, a, t) {
|
|
@@ -39,15 +38,15 @@ const Ct = (e, a) => {
|
|
|
39
38
|
};
|
|
40
39
|
H(() => {
|
|
41
40
|
document.addEventListener("mouseup", t);
|
|
42
|
-
}),
|
|
41
|
+
}), Be(() => {
|
|
43
42
|
document.removeEventListener("mouseup", t);
|
|
44
43
|
});
|
|
45
44
|
};
|
|
46
45
|
function Fe(e) {
|
|
47
|
-
const a =
|
|
46
|
+
const a = f(() => e.linkTo || e.href || ""), t = f(() => {
|
|
48
47
|
var i, d;
|
|
49
48
|
return ((d = (i = a.value) == null ? void 0 : i.startsWith) == null ? void 0 : d.call(i, "/")) || !1;
|
|
50
|
-
}), l =
|
|
49
|
+
}), l = f(() => {
|
|
51
50
|
var i, d;
|
|
52
51
|
return t.value && ((i = e.router) == null ? void 0 : i.navigateTo) || ((d = e.router) == null ? void 0 : d.push) || null;
|
|
53
52
|
});
|
|
@@ -56,8 +55,7 @@ function Fe(e) {
|
|
|
56
55
|
i.preventDefault(), i.stopImmediatePropagation();
|
|
57
56
|
return;
|
|
58
57
|
}
|
|
59
|
-
if (!a.value || !l.value)
|
|
60
|
-
return;
|
|
58
|
+
if (!a.value || !l.value) return;
|
|
61
59
|
i.target.closest("a").href === `${window.location.origin}${a.value}` && (i.preventDefault(), l.value(a.value));
|
|
62
60
|
}
|
|
63
61
|
return { onLinkClick: n };
|
|
@@ -65,11 +63,10 @@ function Fe(e) {
|
|
|
65
63
|
function ft(e) {
|
|
66
64
|
return e.split("-").map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("");
|
|
67
65
|
}
|
|
68
|
-
const
|
|
66
|
+
const Oe = (e, a) => {
|
|
69
67
|
var i;
|
|
70
68
|
function t(d) {
|
|
71
|
-
if (!d)
|
|
72
|
-
return null;
|
|
69
|
+
if (!d) return null;
|
|
73
70
|
const o = d.startsWith("bs-") ? ft(d) : `BsIcon${ft(d)}`;
|
|
74
71
|
return Je(async () => {
|
|
75
72
|
const { [o]: s } = await import("@wwtdev/bsds-icons-vue3");
|
|
@@ -93,7 +90,7 @@ function Z(e = 1) {
|
|
|
93
90
|
for (let t = 0; t < e; t++)
|
|
94
91
|
a.push(I(""));
|
|
95
92
|
return H(() => {
|
|
96
|
-
a.forEach((t) => t.value =
|
|
93
|
+
a.forEach((t) => t.value = gt());
|
|
97
94
|
}), a;
|
|
98
95
|
}
|
|
99
96
|
const me = (e, a, t = void 0) => {
|
|
@@ -106,14 +103,14 @@ const me = (e, a, t = void 0) => {
|
|
|
106
103
|
};
|
|
107
104
|
H(() => {
|
|
108
105
|
((t == null ? void 0 : t.value) ?? document).addEventListener("keydown", l);
|
|
109
|
-
}),
|
|
106
|
+
}), Be(() => {
|
|
110
107
|
((t == null ? void 0 : t.value) ?? document).removeEventListener("keydown", l);
|
|
111
108
|
});
|
|
112
109
|
}, pa = (e, a, t) => {
|
|
113
110
|
let l = null;
|
|
114
111
|
H(() => {
|
|
115
112
|
l = new MutationObserver(a), l.observe(e.value, t);
|
|
116
|
-
}),
|
|
113
|
+
}), Be(() => {
|
|
117
114
|
l.disconnect();
|
|
118
115
|
});
|
|
119
116
|
}, Le = (e) => {
|
|
@@ -127,11 +124,11 @@ const me = (e, a, t = void 0) => {
|
|
|
127
124
|
}), j(() => e.leaveTrigger, (t) => {
|
|
128
125
|
t && (a.value = !1);
|
|
129
126
|
}), { transition: a };
|
|
130
|
-
}, ma = ["id", "data-stacked"],
|
|
127
|
+
}, ma = ["id", "data-stacked"], ba = ["data-open"], ha = ["aria-controls", "aria-expanded"], va = {
|
|
131
128
|
key: 0,
|
|
132
129
|
"data-position": "start",
|
|
133
130
|
style: { display: "inline-flex" }
|
|
134
|
-
}, ga = ["id"], ya = ["aria-labelledby", "data-open", "id"],
|
|
131
|
+
}, ga = ["id"], ya = ["aria-labelledby", "data-open", "id"], xo = {
|
|
135
132
|
__name: "BsAccordion",
|
|
136
133
|
props: {
|
|
137
134
|
controlled: { type: Boolean, default: !1 },
|
|
@@ -148,11 +145,11 @@ const me = (e, a, t = void 0) => {
|
|
|
148
145
|
},
|
|
149
146
|
emits: ["toggled"],
|
|
150
147
|
setup(e, { emit: a }) {
|
|
151
|
-
const t = e, l = a, n = I(null), i = I(!1), { icon: d } =
|
|
148
|
+
const t = e, l = a, n = I(null), i = I(!1), { icon: d } = Oe(t, "icon"), [o] = Z(), s = f(() => o.value + "-content"), r = f(() => o.value + "-title"), m = f(() => t.openItemId && t.openItemId === o.value || t.openItem === !0), h = f(() => t.controlled ? m.value : i.value);
|
|
152
149
|
function v() {
|
|
153
150
|
l("toggled", o.value), t.controlled || (i.value = !i.value);
|
|
154
151
|
}
|
|
155
|
-
return (g, y) => (u(),
|
|
152
|
+
return (g, y) => (u(), b("div", {
|
|
156
153
|
id: c(o),
|
|
157
154
|
ref_key: "containerRef",
|
|
158
155
|
ref: n,
|
|
@@ -160,41 +157,41 @@ const me = (e, a, t = void 0) => {
|
|
|
160
157
|
"data-component": "bs-accordion",
|
|
161
158
|
"data-stacked": e.stacked
|
|
162
159
|
}, [
|
|
163
|
-
|
|
160
|
+
w("header", {
|
|
164
161
|
part: "header",
|
|
165
|
-
"data-open":
|
|
162
|
+
"data-open": h.value
|
|
166
163
|
}, [
|
|
167
|
-
|
|
164
|
+
w("button", {
|
|
168
165
|
"aria-controls": s.value,
|
|
169
|
-
"aria-expanded":
|
|
166
|
+
"aria-expanded": h.value,
|
|
170
167
|
type: "button",
|
|
171
168
|
onClick: v
|
|
172
169
|
}, [
|
|
173
|
-
e.icon || g.$slots.icon ? (u(),
|
|
170
|
+
e.icon || g.$slots.icon ? (u(), b("span", va, [
|
|
174
171
|
E(g.$slots, "icon", {}, () => [
|
|
175
|
-
e.icon ? (u(),
|
|
172
|
+
e.icon ? (u(), V(te(c(d) ? c(d) : "span"), { key: 0 })) : x("", !0)
|
|
176
173
|
])
|
|
177
|
-
])) :
|
|
178
|
-
|
|
174
|
+
])) : x("", !0),
|
|
175
|
+
w("span", { id: r.value }, [
|
|
179
176
|
E(g.$slots, "header", {}, () => [
|
|
180
|
-
W(
|
|
177
|
+
W(O(e.headerText), 1)
|
|
181
178
|
])
|
|
182
179
|
], 8, ga),
|
|
183
180
|
P(c(Me), {
|
|
184
181
|
size: "md",
|
|
185
182
|
"data-position": "end"
|
|
186
183
|
})
|
|
187
|
-
], 8,
|
|
188
|
-
], 8,
|
|
189
|
-
|
|
184
|
+
], 8, ha)
|
|
185
|
+
], 8, ba),
|
|
186
|
+
w("div", {
|
|
190
187
|
"aria-labelledby": r.value,
|
|
191
188
|
class: "bs-accordion-content",
|
|
192
|
-
"data-open":
|
|
189
|
+
"data-open": h.value,
|
|
193
190
|
id: s.value,
|
|
194
191
|
part: "content",
|
|
195
192
|
role: "region"
|
|
196
193
|
}, [
|
|
197
|
-
|
|
194
|
+
w("div", null, [
|
|
198
195
|
E(g.$slots, "default")
|
|
199
196
|
])
|
|
200
197
|
], 8, ya)
|
|
@@ -247,15 +244,14 @@ const me = (e, a, t = void 0) => {
|
|
|
247
244
|
}
|
|
248
245
|
},
|
|
249
246
|
setup(e) {
|
|
250
|
-
const a = e, t = I(null), l =
|
|
247
|
+
const a = e, t = I(null), l = f(() => a.count === 0 ? "0" : !a.count || a.dot ? null : a.count > a.countMax ? a.countMax + "+" : a.count.toString()), n = f(() => {
|
|
251
248
|
var s, r;
|
|
252
249
|
const i = ((r = (s = t.value) == null ? void 0 : s.textContent) == null ? void 0 : r.trim()) || "", d = l.value ? l.value + " " : "";
|
|
253
|
-
if (!d && !a.dot)
|
|
254
|
-
return i;
|
|
250
|
+
if (!d && !a.dot) return i;
|
|
255
251
|
const o = a.count !== 1 ? "s" : "";
|
|
256
252
|
return `${i ? `${i}, ` : ""}${d}${a.label}${o}`;
|
|
257
253
|
});
|
|
258
|
-
return (i, d) => (u(),
|
|
254
|
+
return (i, d) => (u(), b("span", {
|
|
259
255
|
ref_key: "hostRef",
|
|
260
256
|
ref: t,
|
|
261
257
|
"aria-label": n.value,
|
|
@@ -268,15 +264,15 @@ const me = (e, a, t = void 0) => {
|
|
|
268
264
|
"data-variant": e.variant,
|
|
269
265
|
role: "status"
|
|
270
266
|
}, [
|
|
271
|
-
e.variant !== "notext" ? E(i.$slots, "default", { key: 0 }) :
|
|
267
|
+
e.variant !== "notext" ? E(i.$slots, "default", { key: 0 }) : x("", !0)
|
|
272
268
|
], 10, Sa));
|
|
273
269
|
}
|
|
274
|
-
},
|
|
270
|
+
}, Ba = {
|
|
275
271
|
key: 0,
|
|
276
272
|
role: "alert",
|
|
277
273
|
class: "bs-banner",
|
|
278
274
|
"data-component": "bs-banner"
|
|
279
|
-
},
|
|
275
|
+
}, $a = { class: "bs-banner-content" }, Ia = { class: "bs-banner-warning-icon" }, To = {
|
|
280
276
|
__name: "BsBanner",
|
|
281
277
|
emits: ["dismiss"],
|
|
282
278
|
setup(e, { emit: a }) {
|
|
@@ -284,20 +280,20 @@ const me = (e, a, t = void 0) => {
|
|
|
284
280
|
function n() {
|
|
285
281
|
l.value = !0, t("dismiss");
|
|
286
282
|
}
|
|
287
|
-
return (i, d) => l.value ?
|
|
288
|
-
|
|
289
|
-
|
|
283
|
+
return (i, d) => l.value ? x("", !0) : (u(), b("div", Ba, [
|
|
284
|
+
w("div", $a, [
|
|
285
|
+
w("div", Ia, [
|
|
290
286
|
P(c(Xe), { size: "lg" })
|
|
291
287
|
]),
|
|
292
|
-
|
|
288
|
+
w("p", null, [
|
|
293
289
|
E(i.$slots, "default")
|
|
294
290
|
]),
|
|
295
|
-
|
|
291
|
+
w("button", {
|
|
296
292
|
type: "button",
|
|
297
293
|
title: "Close Banner",
|
|
298
294
|
onClick: n
|
|
299
295
|
}, [
|
|
300
|
-
P(c(
|
|
296
|
+
P(c($e))
|
|
301
297
|
])
|
|
302
298
|
])
|
|
303
299
|
]));
|
|
@@ -334,7 +330,7 @@ const me = (e, a, t = void 0) => {
|
|
|
334
330
|
},
|
|
335
331
|
setup(e) {
|
|
336
332
|
const a = e, t = re(), { rootTag: l, attrsToBind: n, hrefUrl: i } = ze(a, t), { onLinkClick: d } = Fe(a);
|
|
337
|
-
return (o, s) => (u(),
|
|
333
|
+
return (o, s) => (u(), V(te(c(l)), z({
|
|
338
334
|
class: "bs-button",
|
|
339
335
|
"data-component": "bs-button",
|
|
340
336
|
"data-ghost": e.ghostBtn,
|
|
@@ -372,26 +368,23 @@ const me = (e, a, t = void 0) => {
|
|
|
372
368
|
hintId: String
|
|
373
369
|
},
|
|
374
370
|
setup(e) {
|
|
375
|
-
const a = e, t =
|
|
376
|
-
return (l, n) => (u(),
|
|
377
|
-
t.value ? (u(),
|
|
371
|
+
const a = e, t = f(() => a.error && a.errorMsg || a.hint);
|
|
372
|
+
return (l, n) => (u(), b("div", Ca, [
|
|
373
|
+
t.value ? (u(), b("span", {
|
|
378
374
|
key: 0,
|
|
379
375
|
id: e.hintId,
|
|
380
376
|
class: "bs-hint",
|
|
381
377
|
"data-error": e.error
|
|
382
|
-
},
|
|
383
|
-
e.charMax ? (u(),
|
|
378
|
+
}, O(t.value), 9, xa)) : x("", !0),
|
|
379
|
+
e.charMax ? (u(), b("span", {
|
|
384
380
|
key: 1,
|
|
385
381
|
"aria-description": "character count over character limit for the preceding text field",
|
|
386
382
|
class: "bs-character-count",
|
|
387
383
|
"data-error": a.charCount > a.charMax
|
|
388
|
-
},
|
|
384
|
+
}, O(a.charCount || "0") + " / " + O(a.charMax), 9, Ta)) : x("", !0)
|
|
389
385
|
]));
|
|
390
386
|
}
|
|
391
|
-
}, Aa = ["data-disabled", "for"],
|
|
392
|
-
"data-required": "true",
|
|
393
|
-
"aria-hidden": "true"
|
|
394
|
-
}, " *", -1), Oa = /* @__PURE__ */ S("span", { class: "visually-hidden" }, "required", -1), ae = {
|
|
387
|
+
}, Aa = ["data-disabled", "for"], ae = {
|
|
395
388
|
__name: "BsLabel",
|
|
396
389
|
props: {
|
|
397
390
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -400,22 +393,25 @@ const me = (e, a, t = void 0) => {
|
|
|
400
393
|
required: { type: Boolean, default: !1 }
|
|
401
394
|
},
|
|
402
395
|
setup(e) {
|
|
403
|
-
return (a, t) => (u(),
|
|
396
|
+
return (a, t) => (u(), b("label", {
|
|
404
397
|
class: ie(["bs-label", e.hide ? "visually-hidden" : ""]),
|
|
405
398
|
"data-component": "bs-label",
|
|
406
399
|
"data-disabled": e.disabled,
|
|
407
400
|
for: e.for
|
|
408
401
|
}, [
|
|
409
|
-
|
|
402
|
+
w("span", null, [
|
|
410
403
|
E(a.$slots, "default")
|
|
411
404
|
]),
|
|
412
|
-
e.required ? (u(),
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
405
|
+
e.required ? (u(), b(G, { key: 0 }, [
|
|
406
|
+
t[0] || (t[0] = w("span", {
|
|
407
|
+
"data-required": "true",
|
|
408
|
+
"aria-hidden": "true"
|
|
409
|
+
}, " *", -1)),
|
|
410
|
+
t[1] || (t[1] = w("span", { class: "visually-hidden" }, "required", -1))
|
|
411
|
+
], 64)) : x("", !0)
|
|
416
412
|
], 10, Aa));
|
|
417
413
|
}
|
|
418
|
-
},
|
|
414
|
+
}, Oa = ["data-error", "id", "value"], Ie = {
|
|
419
415
|
__name: "BsInput",
|
|
420
416
|
props: {
|
|
421
417
|
error: {
|
|
@@ -430,21 +426,21 @@ const me = (e, a, t = void 0) => {
|
|
|
430
426
|
},
|
|
431
427
|
emits: ["update:modelValue"],
|
|
432
428
|
setup(e, { emit: a }) {
|
|
433
|
-
const t = e, l = a, n = re(), i =
|
|
429
|
+
const t = e, l = a, n = re(), i = f(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
434
430
|
function d(o) {
|
|
435
431
|
const s = n.type === "number" ? parseInt(o.target.value) : o.target.value;
|
|
436
432
|
l("update:modelValue", s);
|
|
437
433
|
}
|
|
438
|
-
return (o, s) => (u(),
|
|
434
|
+
return (o, s) => (u(), b("input", z({
|
|
439
435
|
class: "bs-input",
|
|
440
436
|
"data-component": "bs-input",
|
|
441
437
|
"data-error": e.error,
|
|
442
438
|
id: o.$attrs.id || e.inputId,
|
|
443
439
|
value: e.value || e.modelValue,
|
|
444
440
|
onInput: d
|
|
445
|
-
}, i.value), null, 16,
|
|
441
|
+
}, i.value), null, 16, Oa));
|
|
446
442
|
}
|
|
447
|
-
},
|
|
443
|
+
}, Va = ["data-autopad", "data-autosize-icons", "data-disabled", "data-error", "data-variant", "data-multifocus"], De = {
|
|
448
444
|
__name: "BsInputAddon",
|
|
449
445
|
props: {
|
|
450
446
|
autopad: { type: Boolean, default: !1 },
|
|
@@ -455,7 +451,7 @@ const me = (e, a, t = void 0) => {
|
|
|
455
451
|
variant: { type: String, validator: (e) => ["inner-bordered", "combobox"].includes(e) }
|
|
456
452
|
},
|
|
457
453
|
setup(e) {
|
|
458
|
-
return (a, t) => (u(),
|
|
454
|
+
return (a, t) => (u(), b("div", {
|
|
459
455
|
class: "bs-input-addon",
|
|
460
456
|
"data-component": "bs-input-addon",
|
|
461
457
|
"data-autopad": e.autopad,
|
|
@@ -466,9 +462,9 @@ const me = (e, a, t = void 0) => {
|
|
|
466
462
|
"data-multifocus": e.multifocus
|
|
467
463
|
}, [
|
|
468
464
|
E(a.$slots, "default")
|
|
469
|
-
], 8,
|
|
465
|
+
], 8, Va));
|
|
470
466
|
}
|
|
471
|
-
},
|
|
467
|
+
}, Ea = {
|
|
472
468
|
__name: "BsInputDateSingle",
|
|
473
469
|
props: {
|
|
474
470
|
disabled: {
|
|
@@ -501,12 +497,12 @@ const me = (e, a, t = void 0) => {
|
|
|
501
497
|
}
|
|
502
498
|
},
|
|
503
499
|
setup(e) {
|
|
504
|
-
return (a, t) => (u(),
|
|
500
|
+
return (a, t) => (u(), V(De, {
|
|
505
501
|
disabled: e.disabled,
|
|
506
502
|
error: e.error
|
|
507
503
|
}, {
|
|
508
504
|
default: D(() => [
|
|
509
|
-
P(c(
|
|
505
|
+
P(c(Bt)),
|
|
510
506
|
P(Ie, z({
|
|
511
507
|
"data-autowidth": "",
|
|
512
508
|
disabled: e.disabled,
|
|
@@ -520,7 +516,7 @@ const me = (e, a, t = void 0) => {
|
|
|
520
516
|
}, 8, ["disabled", "error"]));
|
|
521
517
|
}
|
|
522
518
|
};
|
|
523
|
-
function
|
|
519
|
+
function Ve(e, a, t) {
|
|
524
520
|
let l;
|
|
525
521
|
return function() {
|
|
526
522
|
let n = this, i = arguments;
|
|
@@ -529,7 +525,7 @@ function Oe(e, a, t) {
|
|
|
529
525
|
}, a);
|
|
530
526
|
};
|
|
531
527
|
}
|
|
532
|
-
const
|
|
528
|
+
const La = ["disabled", "id", "model-value"], Da = ["disabled", "id", "model-value"], Pa = {
|
|
533
529
|
__name: "BsInputDateRange",
|
|
534
530
|
props: {
|
|
535
531
|
disabled: {
|
|
@@ -568,23 +564,23 @@ const Pa = ["disabled", "id", "model-value"], qa = ["disabled", "id", "model-val
|
|
|
568
564
|
setup(e, { emit: a }) {
|
|
569
565
|
const t = a, l = I(null), n = I(null);
|
|
570
566
|
function i(r) {
|
|
571
|
-
const
|
|
572
|
-
r.dispatchEvent(
|
|
567
|
+
const m = new Event("change", { bubbles: !0, cancelable: !0 });
|
|
568
|
+
r.dispatchEvent(m);
|
|
573
569
|
}
|
|
574
570
|
function d(r) {
|
|
575
|
-
const { value:
|
|
576
|
-
l.value.value =
|
|
571
|
+
const { value: m } = r.target, [h, v] = m.split(/ to | - /);
|
|
572
|
+
l.value.value = h || "", n.value.value = v || "", i(l.value), i(n.value);
|
|
577
573
|
}
|
|
578
|
-
const o =
|
|
574
|
+
const o = Ve(d, 1e3);
|
|
579
575
|
function s(r) {
|
|
580
576
|
t("ui-input"), o(r);
|
|
581
577
|
}
|
|
582
|
-
return (r,
|
|
578
|
+
return (r, m) => (u(), V(De, {
|
|
583
579
|
disabled: e.disabled,
|
|
584
580
|
error: e.error
|
|
585
581
|
}, {
|
|
586
582
|
default: D(() => [
|
|
587
|
-
P(c(
|
|
583
|
+
P(c(Bt)),
|
|
588
584
|
P(Ie, {
|
|
589
585
|
"data-autowidth": "",
|
|
590
586
|
disabled: e.disabled,
|
|
@@ -592,32 +588,32 @@ const Pa = ["disabled", "id", "model-value"], qa = ["disabled", "id", "model-val
|
|
|
592
588
|
"model-value": e.inputValueFmt,
|
|
593
589
|
placeholder: e.placeholder,
|
|
594
590
|
required: e.required,
|
|
595
|
-
onFocusin:
|
|
591
|
+
onFocusin: m[0] || (m[0] = (h) => r.$emit("ui-focusin")),
|
|
596
592
|
onInput: s,
|
|
597
593
|
onChange: d
|
|
598
594
|
}, null, 8, ["disabled", "id", "model-value", "placeholder", "required"]),
|
|
599
|
-
|
|
595
|
+
w("input", z({
|
|
600
596
|
ref_key: "hiddenStart",
|
|
601
597
|
ref: l,
|
|
602
598
|
type: "hidden",
|
|
603
599
|
disabled: e.disabled,
|
|
604
600
|
id: `${e.inputId}-start`,
|
|
605
601
|
"model-value": e.inputValue.start
|
|
606
|
-
}, Ye(e.listeners.start, !0)), null, 16,
|
|
607
|
-
|
|
602
|
+
}, Ye(e.listeners.start, !0)), null, 16, La),
|
|
603
|
+
w("input", z({
|
|
608
604
|
ref_key: "hiddenEnd",
|
|
609
605
|
ref: n,
|
|
610
606
|
type: "hidden",
|
|
611
607
|
disabled: e.disabled,
|
|
612
608
|
id: `${e.inputId}-end`,
|
|
613
609
|
"model-value": e.inputValue.end
|
|
614
|
-
}, Ye(e.listeners.end, !0)), null, 16,
|
|
610
|
+
}, Ye(e.listeners.end, !0)), null, 16, Da)
|
|
615
611
|
]),
|
|
616
612
|
_: 1
|
|
617
613
|
}, 8, ["disabled", "error"]));
|
|
618
614
|
}
|
|
619
615
|
};
|
|
620
|
-
function
|
|
616
|
+
function qa(e) {
|
|
621
617
|
function a(n) {
|
|
622
618
|
var i, d;
|
|
623
619
|
return ((d = (i = n == null ? void 0 : n.classList) == null ? void 0 : i.contains) == null ? void 0 : d.call(i, "vc-arrow")) && (n.classList.contains("vc-prev") || n.classList.contains("vc-next"));
|
|
@@ -638,7 +634,7 @@ function Na(e) {
|
|
|
638
634
|
}
|
|
639
635
|
function Qe(e, a, t = []) {
|
|
640
636
|
let l;
|
|
641
|
-
|
|
637
|
+
yt(() => {
|
|
642
638
|
l = window.matchMedia(e), l.addEventListener("change", a), a(l);
|
|
643
639
|
}), _e(() => {
|
|
644
640
|
l.removeEventListener("change", a), l = null;
|
|
@@ -651,7 +647,7 @@ const et = [
|
|
|
651
647
|
"form",
|
|
652
648
|
"id",
|
|
653
649
|
"name"
|
|
654
|
-
],
|
|
650
|
+
], Ma = [
|
|
655
651
|
"aria-describedby",
|
|
656
652
|
"aria-label",
|
|
657
653
|
"autocomplete",
|
|
@@ -662,7 +658,7 @@ const et = [
|
|
|
662
658
|
"multiple",
|
|
663
659
|
"name",
|
|
664
660
|
"size"
|
|
665
|
-
],
|
|
661
|
+
], Na = [
|
|
666
662
|
"aria-describedby",
|
|
667
663
|
"aria-label",
|
|
668
664
|
"autocapitalize",
|
|
@@ -681,7 +677,7 @@ const et = [
|
|
|
681
677
|
"rows",
|
|
682
678
|
"spellcheck",
|
|
683
679
|
"wrap"
|
|
684
|
-
],
|
|
680
|
+
], be = [
|
|
685
681
|
"aria-describedby",
|
|
686
682
|
"aria-label",
|
|
687
683
|
"autocapitalize",
|
|
@@ -709,7 +705,7 @@ function Y(e, a = []) {
|
|
|
709
705
|
a.includes(n) ? t[n] = e[n] : l[n] = e[n];
|
|
710
706
|
}), { filtered: t, remaining: l };
|
|
711
707
|
}
|
|
712
|
-
const
|
|
708
|
+
const za = ["data-range"], pt = "(min-width: 752px)", Ao = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
713
709
|
__name: "BsCalendar",
|
|
714
710
|
props: {
|
|
715
711
|
disabled: {
|
|
@@ -776,7 +772,7 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Wo = /* @__PURE__ */ Objec
|
|
|
776
772
|
},
|
|
777
773
|
emits: ["update:modelValue"],
|
|
778
774
|
setup(e, { emit: a }) {
|
|
779
|
-
const t = e, l = I(null), n = I(1), i = I(null), [d, o] = Z(2), s = I(1), { filtered: r, remaining:
|
|
775
|
+
const t = e, l = I(null), n = I(1), i = I(null), [d, o] = Z(2), s = I(1), { filtered: r, remaining: m } = Y(re(), [
|
|
780
776
|
"attributes",
|
|
781
777
|
"data-cy",
|
|
782
778
|
"expanded",
|
|
@@ -785,8 +781,8 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Wo = /* @__PURE__ */ Objec
|
|
|
785
781
|
"masks",
|
|
786
782
|
"rows",
|
|
787
783
|
"trim-weeks"
|
|
788
|
-
]),
|
|
789
|
-
|
|
784
|
+
]), h = f(() => t.inputId || d.value), v = f(() => ({ range: t.isRange })), g = f(() => !!(t.error && t.errorMsg || t.hint)), y = f(() => t.step), B = f(() => t.variant);
|
|
785
|
+
qa(i), Qe(
|
|
790
786
|
pt,
|
|
791
787
|
($) => n.value = $ != null && $.matches && B.value == "2-col" ? 2 : 1,
|
|
792
788
|
[B]
|
|
@@ -795,44 +791,44 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Wo = /* @__PURE__ */ Objec
|
|
|
795
791
|
($) => s.value = $ != null && $.matches && B.value == "2-col" ? y.value : 1,
|
|
796
792
|
[y, B]
|
|
797
793
|
), H(() => {
|
|
798
|
-
t.inputMode ||
|
|
794
|
+
t.inputMode || C();
|
|
799
795
|
}), j(() => {
|
|
800
|
-
var $,
|
|
801
|
-
return (
|
|
796
|
+
var $, M;
|
|
797
|
+
return (M = ($ = l.value) == null ? void 0 : $.popoverRef) == null ? void 0 : M.isVisible;
|
|
802
798
|
}, ($) => {
|
|
803
|
-
$ && Ae(
|
|
799
|
+
$ && Ae(C);
|
|
804
800
|
});
|
|
805
|
-
function
|
|
801
|
+
function p($) {
|
|
806
802
|
return t.isRange && $.start && $.end ? `${$.start} to ${$.end}` : !t.isRange && $ ? $ : "";
|
|
807
803
|
}
|
|
808
|
-
function
|
|
804
|
+
function S($) {
|
|
809
805
|
!t.isRange || i.value.contains($.relatedTarget) || l.value.hidePopover();
|
|
810
806
|
}
|
|
811
|
-
function
|
|
812
|
-
const $ = i.value.querySelector("button.vc-prev"),
|
|
813
|
-
$ && $.setAttribute("aria-label", "Previous month"),
|
|
807
|
+
function C() {
|
|
808
|
+
const $ = i.value.querySelector("button.vc-prev"), M = i.value.querySelector("button.vc-next");
|
|
809
|
+
$ && $.setAttribute("aria-label", "Previous month"), M && M.setAttribute("aria-label", "Next month");
|
|
814
810
|
}
|
|
815
|
-
return ($,
|
|
811
|
+
return ($, M) => (u(), b("div", z({
|
|
816
812
|
ref_key: "container",
|
|
817
813
|
ref: i,
|
|
818
814
|
class: "bs-calendar",
|
|
819
815
|
"data-component": "bs-calendar",
|
|
820
816
|
"data-range": e.isRange,
|
|
821
|
-
onFocusout:
|
|
822
|
-
}, c(
|
|
823
|
-
e.label || $.$slots.label ? (u(),
|
|
817
|
+
onFocusout: S
|
|
818
|
+
}, c(m)), [
|
|
819
|
+
e.label || $.$slots.label ? (u(), V(ae, {
|
|
824
820
|
key: 0,
|
|
825
|
-
for:
|
|
821
|
+
for: h.value,
|
|
826
822
|
disabled: e.disabled,
|
|
827
823
|
required: e.required
|
|
828
824
|
}, {
|
|
829
825
|
default: D(() => [
|
|
830
826
|
E($.$slots, "label", {}, () => [
|
|
831
|
-
W(
|
|
827
|
+
W(O(e.label), 1)
|
|
832
828
|
])
|
|
833
829
|
]),
|
|
834
830
|
_: 3
|
|
835
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
831
|
+
}, 8, ["for", "disabled", "required"])) : x("", !0),
|
|
836
832
|
P(c(ea), z({
|
|
837
833
|
ref_key: "calendar",
|
|
838
834
|
ref: l,
|
|
@@ -846,30 +842,30 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Wo = /* @__PURE__ */ Objec
|
|
|
846
842
|
popover: { visibility: "focus" },
|
|
847
843
|
rows: 1,
|
|
848
844
|
step: s.value,
|
|
849
|
-
"onUpdate:modelValue":
|
|
845
|
+
"onUpdate:modelValue": M[0] || (M[0] = (k) => $.$emit("update:modelValue", k))
|
|
850
846
|
}, c(r)), Ze({ _: 2 }, [
|
|
851
847
|
e.inputMode ? {
|
|
852
848
|
name: "default",
|
|
853
|
-
fn: D(({ inputValue:
|
|
854
|
-
e.isRange ? (u(),
|
|
849
|
+
fn: D(({ inputValue: k, inputEvents: A, showPopover: F }) => [
|
|
850
|
+
e.isRange ? (u(), V(Pa, {
|
|
855
851
|
key: 1,
|
|
856
852
|
disabled: e.disabled,
|
|
857
853
|
error: e.error,
|
|
858
|
-
"input-id":
|
|
859
|
-
"input-value":
|
|
860
|
-
"input-value-fmt":
|
|
861
|
-
listeners:
|
|
854
|
+
"input-id": h.value,
|
|
855
|
+
"input-value": k,
|
|
856
|
+
"input-value-fmt": p(k),
|
|
857
|
+
listeners: A,
|
|
862
858
|
placeholder: e.placeholder,
|
|
863
859
|
required: e.required,
|
|
864
860
|
onUiFocusin: F,
|
|
865
861
|
onUiInput: F
|
|
866
|
-
}, null, 8, ["disabled", "error", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (u(),
|
|
862
|
+
}, null, 8, ["disabled", "error", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (u(), V(Ea, {
|
|
867
863
|
key: 0,
|
|
868
864
|
disabled: e.disabled,
|
|
869
865
|
error: e.error,
|
|
870
|
-
"input-id":
|
|
871
|
-
listeners:
|
|
872
|
-
"model-value":
|
|
866
|
+
"input-id": h.value,
|
|
867
|
+
listeners: A,
|
|
868
|
+
"model-value": p(k),
|
|
873
869
|
placeholder: e.placeholder,
|
|
874
870
|
required: e.required
|
|
875
871
|
}, null, 8, ["disabled", "error", "input-id", "listeners", "model-value", "placeholder", "required"]))
|
|
@@ -877,19 +873,19 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Wo = /* @__PURE__ */ Objec
|
|
|
877
873
|
key: "0"
|
|
878
874
|
} : void 0
|
|
879
875
|
]), 1040, ["columns", "disabled-dates", "max-date", "min-date", "model-value", "model-modifiers", "step"]),
|
|
880
|
-
g.value ? (u(),
|
|
876
|
+
g.value ? (u(), V(ge, {
|
|
881
877
|
key: 1,
|
|
882
878
|
error: e.error,
|
|
883
879
|
"error-msg": e.errorMsg,
|
|
884
880
|
hint: e.hint,
|
|
885
881
|
"hint-id": c(o)
|
|
886
|
-
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) :
|
|
887
|
-
], 16,
|
|
882
|
+
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
883
|
+
], 16, za));
|
|
888
884
|
}
|
|
889
|
-
}),
|
|
885
|
+
}), Fa = { key: 0 }, Ra = {
|
|
890
886
|
class: "bs-circle-button-icon",
|
|
891
887
|
role: "presentation"
|
|
892
|
-
},
|
|
888
|
+
}, ja = { key: 1 }, xt = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
893
889
|
__name: "BsCircleButton",
|
|
894
890
|
props: {
|
|
895
891
|
disabled: {
|
|
@@ -938,47 +934,47 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Wo = /* @__PURE__ */ Objec
|
|
|
938
934
|
}
|
|
939
935
|
},
|
|
940
936
|
setup(e) {
|
|
941
|
-
const a = e, t = re(), l =
|
|
937
|
+
const a = e, t = re(), l = St(), { rootTag: n, attrsToBind: i, hrefUrl: d } = ze(a, t), { onLinkClick: o } = Fe(a), s = f(() => h.value ? {} : a.href ? { title: a.label } : { "aria-label": a.label }), r = f(() => {
|
|
942
938
|
if (a.hoverEffect)
|
|
943
939
|
return a.iconPosition;
|
|
944
|
-
}),
|
|
945
|
-
const
|
|
940
|
+
}), m = f(() => {
|
|
941
|
+
const p = a.iconPosition === "left" ? "caret-left" : "caret-right";
|
|
946
942
|
return {
|
|
947
|
-
icon: a.icon || (a.textBtn || a.size == "sm" ? `small-${
|
|
943
|
+
icon: a.icon || (a.textBtn || a.size == "sm" ? `small-${p}` : p)
|
|
948
944
|
};
|
|
949
|
-
}),
|
|
950
|
-
return (
|
|
945
|
+
}), h = f(() => a.textBtn || !!(l != null && l.default)), v = f(() => h.value && a.iconPosition !== "left"), g = f(() => h.value && a.iconPosition === "left"), y = f(() => a.variant ? `color-${a.variant}` : void 0), { icon: B } = Oe(m, "icon");
|
|
946
|
+
return (p, S) => (u(), V(te(c(n)), z({
|
|
951
947
|
class: "bs-circle-button",
|
|
952
948
|
"data-disabled": e.disabled,
|
|
953
949
|
"data-direction": r.value,
|
|
954
950
|
"data-ghost": e.ghostBtn,
|
|
955
951
|
"data-size": e.size,
|
|
956
|
-
"data-text":
|
|
952
|
+
"data-text": h.value,
|
|
957
953
|
"data-variant": y.value,
|
|
958
954
|
"data-component": "bs-circle-button",
|
|
959
955
|
".href": c(d)
|
|
960
956
|
}, { ...c(i), ...s.value }, { onClick: c(o) }), {
|
|
961
957
|
default: D(() => [
|
|
962
|
-
v.value ? (u(),
|
|
963
|
-
E(
|
|
964
|
-
W(
|
|
958
|
+
v.value ? (u(), b("span", Fa, [
|
|
959
|
+
E(p.$slots, "default", {}, () => [
|
|
960
|
+
W(O(e.label), 1)
|
|
965
961
|
])
|
|
966
|
-
])) :
|
|
967
|
-
|
|
968
|
-
E(
|
|
969
|
-
(u(),
|
|
962
|
+
])) : x("", !0),
|
|
963
|
+
w("span", Ra, [
|
|
964
|
+
E(p.$slots, "icon", {}, () => [
|
|
965
|
+
(u(), V(te(c(B))))
|
|
970
966
|
])
|
|
971
967
|
]),
|
|
972
|
-
g.value ? (u(),
|
|
973
|
-
E(
|
|
974
|
-
W(
|
|
968
|
+
g.value ? (u(), b("span", ja, [
|
|
969
|
+
E(p.$slots, "default", {}, () => [
|
|
970
|
+
W(O(e.label), 1)
|
|
975
971
|
])
|
|
976
|
-
])) :
|
|
972
|
+
])) : x("", !0)
|
|
977
973
|
]),
|
|
978
974
|
_: 3
|
|
979
975
|
}, 48, ["data-disabled", "data-direction", "data-ghost", "data-size", "data-text", "data-variant", ".href", "onClick"]));
|
|
980
976
|
}
|
|
981
|
-
}),
|
|
977
|
+
}), Oo = {
|
|
982
978
|
__name: "BsCaretButton",
|
|
983
979
|
props: {
|
|
984
980
|
direction: {
|
|
@@ -1012,7 +1008,7 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Wo = /* @__PURE__ */ Objec
|
|
|
1012
1008
|
}
|
|
1013
1009
|
},
|
|
1014
1010
|
setup(e) {
|
|
1015
|
-
return (a, t) => (u(),
|
|
1011
|
+
return (a, t) => (u(), V(xt, {
|
|
1016
1012
|
disabled: e.disabled,
|
|
1017
1013
|
"ghost-btn": e.ghostBtn,
|
|
1018
1014
|
"hover-effect": e.hoverEffect,
|
|
@@ -1024,12 +1020,12 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Wo = /* @__PURE__ */ Objec
|
|
|
1024
1020
|
"text-btn": !1
|
|
1025
1021
|
}, {
|
|
1026
1022
|
icon: D(() => [
|
|
1027
|
-
e.direction == "right" ? (u(),
|
|
1023
|
+
e.direction == "right" ? (u(), V(c($t), { key: 0 })) : (u(), V(c(It), { key: 1 }))
|
|
1028
1024
|
]),
|
|
1029
1025
|
_: 1
|
|
1030
1026
|
}, 8, ["disabled", "ghost-btn", "hover-effect", "icon-position", "label", "link-to", "router", "size"]));
|
|
1031
1027
|
}
|
|
1032
|
-
},
|
|
1028
|
+
}, Vo = {
|
|
1033
1029
|
__name: "BsCaretTextButton",
|
|
1034
1030
|
props: {
|
|
1035
1031
|
direction: {
|
|
@@ -1068,7 +1064,7 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Wo = /* @__PURE__ */ Objec
|
|
|
1068
1064
|
}
|
|
1069
1065
|
},
|
|
1070
1066
|
setup(e) {
|
|
1071
|
-
return (a, t) => (u(),
|
|
1067
|
+
return (a, t) => (u(), V(xt, {
|
|
1072
1068
|
disabled: e.disabled,
|
|
1073
1069
|
"ghost-btn": e.ghostBtn,
|
|
1074
1070
|
"hover-effect": e.hoverEffect,
|
|
@@ -1081,20 +1077,20 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Wo = /* @__PURE__ */ Objec
|
|
|
1081
1077
|
variant: e.variant
|
|
1082
1078
|
}, {
|
|
1083
1079
|
icon: D(() => [
|
|
1084
|
-
e.direction == "right" ? (u(),
|
|
1080
|
+
e.direction == "right" ? (u(), V(c(Ft), { key: 0 })) : (u(), V(c(Rt), { key: 1 }))
|
|
1085
1081
|
]),
|
|
1086
1082
|
default: D(() => [
|
|
1087
1083
|
E(a.$slots, "default", {}, () => [
|
|
1088
|
-
W(
|
|
1084
|
+
W(O(e.label), 1)
|
|
1089
1085
|
])
|
|
1090
1086
|
]),
|
|
1091
1087
|
_: 3
|
|
1092
1088
|
}, 8, ["disabled", "ghost-btn", "hover-effect", "icon-position", "label", "link-to", "router", "size", "variant"]));
|
|
1093
1089
|
}
|
|
1094
|
-
},
|
|
1090
|
+
}, Wa = {
|
|
1095
1091
|
class: "bs-chart-table",
|
|
1096
1092
|
"data-component": "bs-chart-table"
|
|
1097
|
-
},
|
|
1093
|
+
}, Ua = ["summary"], Ga = ["colspan"], Ha = { scope: "col" }, Ka = { scope: "row" }, Ya = {
|
|
1098
1094
|
__name: "BsChartTable",
|
|
1099
1095
|
props: {
|
|
1100
1096
|
chartType: {
|
|
@@ -1128,143 +1124,143 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Wo = /* @__PURE__ */ Objec
|
|
|
1128
1124
|
}
|
|
1129
1125
|
},
|
|
1130
1126
|
setup(e) {
|
|
1131
|
-
const a = e, t = I(!1), l = (
|
|
1132
|
-
const
|
|
1127
|
+
const a = e, t = I(!1), l = (m) => {
|
|
1128
|
+
const h = new Date(m), v = h.toTimeString().split(" ")[0], g = h.toDateString().split(" ").slice(1, 3).join(" ");
|
|
1133
1129
|
return `${v} (${g})`;
|
|
1134
|
-
}, n =
|
|
1135
|
-
var
|
|
1136
|
-
return !((
|
|
1130
|
+
}, n = f(() => {
|
|
1131
|
+
var m;
|
|
1132
|
+
return !((m = a.dataIdxLabels) != null && m.length);
|
|
1137
1133
|
});
|
|
1138
|
-
function i(
|
|
1134
|
+
function i(m) {
|
|
1139
1135
|
try {
|
|
1140
|
-
return
|
|
1141
|
-
const v =
|
|
1136
|
+
return m.map((h) => {
|
|
1137
|
+
const v = h.label;
|
|
1142
1138
|
let g = [];
|
|
1143
|
-
if (
|
|
1144
|
-
const y =
|
|
1139
|
+
if (h.data.some((y) => (y == null ? void 0 : y.x) && (y == null ? void 0 : y.y))) {
|
|
1140
|
+
const y = h.data.reduce((B, p) => (B[p.x] = p.y, B), {});
|
|
1145
1141
|
g = a.dataIdxLabels.map((B) => ({ value: y[B] ?? null }));
|
|
1146
1142
|
} else
|
|
1147
|
-
g =
|
|
1143
|
+
g = h.data.map((y) => ({ value: y }));
|
|
1148
1144
|
return { rowLabel: v, dataCells: g };
|
|
1149
1145
|
});
|
|
1150
1146
|
} catch {
|
|
1151
1147
|
return [];
|
|
1152
1148
|
}
|
|
1153
1149
|
}
|
|
1154
|
-
function d(
|
|
1150
|
+
function d(m) {
|
|
1155
1151
|
try {
|
|
1156
|
-
const
|
|
1157
|
-
const
|
|
1158
|
-
return [...y, ...
|
|
1159
|
-
}, []), v = Array.from(new Set(
|
|
1152
|
+
const h = m.reduce((y, B) => {
|
|
1153
|
+
const p = B.data.map((S) => S == null ? void 0 : S.x);
|
|
1154
|
+
return [...y, ...p];
|
|
1155
|
+
}, []), v = Array.from(new Set(h));
|
|
1160
1156
|
return (a.xAxisType === "time" || a.xAxisType === "linear") && v.sort((y, B) => (typeof y == "string" && typeof B == "string" && (y = y.toLowerCase(), B = B.toLowerCase()), y < B ? -1 : y > B ? 1 : 0)), v.map((y) => {
|
|
1161
|
-
const B = { rowLabel: y },
|
|
1162
|
-
return
|
|
1163
|
-
const
|
|
1164
|
-
|
|
1165
|
-
}), B.dataCells =
|
|
1157
|
+
const B = { rowLabel: y }, p = [];
|
|
1158
|
+
return m.forEach((S) => {
|
|
1159
|
+
const C = { datasetLabel: S.label }, $ = S.data.find((M) => M.x === y);
|
|
1160
|
+
C.value = $ ? $.y : null, p.push(C);
|
|
1161
|
+
}), B.dataCells = p, a.xAxisType === "time" && (B.rowLabelFmt = l(y)), B;
|
|
1166
1162
|
});
|
|
1167
1163
|
} catch {
|
|
1168
1164
|
return [];
|
|
1169
1165
|
}
|
|
1170
1166
|
}
|
|
1171
|
-
const o =
|
|
1167
|
+
const o = f(() => n.value ? d(a.data) : i(a.data)), s = f(() => ({
|
|
1172
1168
|
colspan: n.value ? a.data.length + 1 : a.dataIdxLabels.length + 1,
|
|
1173
1169
|
title: a.tableTitle,
|
|
1174
1170
|
colHeadingFirst: n.value ? a.xLabel : "Dataset",
|
|
1175
|
-
colHeadings: n.value ? a.data.map((
|
|
1171
|
+
colHeadings: n.value ? a.data.map((m) => m.label) : a.dataIdxLabels,
|
|
1176
1172
|
rows: o.value
|
|
1177
|
-
})), r =
|
|
1178
|
-
var
|
|
1179
|
-
return t.value && !!((
|
|
1173
|
+
})), r = f(() => {
|
|
1174
|
+
var m;
|
|
1175
|
+
return t.value && !!((m = o.value) != null && m.length);
|
|
1180
1176
|
});
|
|
1181
1177
|
return H(() => {
|
|
1182
1178
|
t.value = !0;
|
|
1183
|
-
}), (
|
|
1184
|
-
r.value ? (u(),
|
|
1179
|
+
}), (m, h) => (u(), b("div", Wa, [
|
|
1180
|
+
r.value ? (u(), b("table", {
|
|
1185
1181
|
key: 0,
|
|
1186
1182
|
summary: s.value.title
|
|
1187
1183
|
}, [
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1184
|
+
w("thead", null, [
|
|
1185
|
+
w("tr", null, [
|
|
1186
|
+
w("th", {
|
|
1191
1187
|
colspan: s.value.colspan
|
|
1192
|
-
},
|
|
1188
|
+
}, O(s.value.title), 9, Ga)
|
|
1193
1189
|
]),
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
(u(!0),
|
|
1190
|
+
w("tr", null, [
|
|
1191
|
+
w("th", Ha, O(s.value.colHeadingFirst), 1),
|
|
1192
|
+
(u(!0), b(G, null, ee(s.value.colHeadings, (v) => (u(), b("th", {
|
|
1197
1193
|
key: v,
|
|
1198
1194
|
scope: "col"
|
|
1199
|
-
},
|
|
1195
|
+
}, O(v), 1))), 128))
|
|
1200
1196
|
])
|
|
1201
1197
|
]),
|
|
1202
|
-
|
|
1203
|
-
(u(!0),
|
|
1198
|
+
w("tbody", null, [
|
|
1199
|
+
(u(!0), b(G, null, ee(s.value.rows, (v) => (u(), b("tr", {
|
|
1204
1200
|
key: v.rowLabelFmt || v.rowLabel
|
|
1205
1201
|
}, [
|
|
1206
|
-
|
|
1207
|
-
(u(!0),
|
|
1202
|
+
w("th", Ka, O(v.rowLabelFmt || v.rowLabel), 1),
|
|
1203
|
+
(u(!0), b(G, null, ee(v.dataCells, (g) => (u(), b("td", {
|
|
1208
1204
|
key: `${v.rowLabelFmt || v.rowLabel}${g.datasetLabel}${g.value}`
|
|
1209
|
-
},
|
|
1205
|
+
}, O(g.value), 1))), 128))
|
|
1210
1206
|
]))), 128))
|
|
1211
1207
|
])
|
|
1212
|
-
], 8,
|
|
1208
|
+
], 8, Ua)) : x("", !0)
|
|
1213
1209
|
]));
|
|
1214
1210
|
}
|
|
1215
|
-
}, Ee = 16,
|
|
1216
|
-
function
|
|
1217
|
-
const t = I(null), l = I(!1), n = I(null), i = "(min-width: 1166px)", d = { tickSize: Ee }, o = { tickSize:
|
|
1211
|
+
}, Ee = 16, Za = 20;
|
|
1212
|
+
function Xa(e, a) {
|
|
1213
|
+
const t = I(null), l = I(!1), n = I(null), i = "(min-width: 1166px)", d = { tickSize: Ee }, o = { tickSize: Za };
|
|
1218
1214
|
let s, r;
|
|
1219
|
-
function
|
|
1220
|
-
let
|
|
1221
|
-
switch (
|
|
1215
|
+
function m(p, S) {
|
|
1216
|
+
let C;
|
|
1217
|
+
switch (p) {
|
|
1222
1218
|
case "bar":
|
|
1223
|
-
|
|
1219
|
+
C = "setBarChartConfigs";
|
|
1224
1220
|
break;
|
|
1225
1221
|
case "line":
|
|
1226
|
-
|
|
1222
|
+
C = "setLineChartConfigs";
|
|
1227
1223
|
break;
|
|
1228
1224
|
default:
|
|
1229
|
-
throw new Error(`Unsupported chart type: ${
|
|
1225
|
+
throw new Error(`Unsupported chart type: ${p}`);
|
|
1230
1226
|
}
|
|
1231
|
-
return new
|
|
1227
|
+
return new an().setCommonConfigs(S).setCustomOptions(S)[C](S).setPlugins([Qa(n), ta]).build();
|
|
1232
1228
|
}
|
|
1233
|
-
function
|
|
1234
|
-
|
|
1235
|
-
const
|
|
1236
|
-
if (
|
|
1237
|
-
const { labelIndex:
|
|
1238
|
-
|
|
1229
|
+
function h(p) {
|
|
1230
|
+
p.preventDefault(), p.stopImmediatePropagation();
|
|
1231
|
+
const S = p.target.closest("li");
|
|
1232
|
+
if (S && s) {
|
|
1233
|
+
const { labelIndex: C, datasetIndex: $ } = S.dataset;
|
|
1234
|
+
s.setDatasetVisibility($, !s.isDatasetVisible($)), s.update(), p.preventDefault(), p.stopImmediatePropagation(), v($, C);
|
|
1239
1235
|
}
|
|
1240
1236
|
}
|
|
1241
|
-
function v(
|
|
1242
|
-
var
|
|
1243
|
-
const
|
|
1244
|
-
(
|
|
1237
|
+
function v(p, S) {
|
|
1238
|
+
var M;
|
|
1239
|
+
const C = `[data-dataset-index="${p}"][data-label-index="${S}"]`, $ = n.value.querySelector(C);
|
|
1240
|
+
(M = $ == null ? void 0 : $.focus) == null || M.call($);
|
|
1245
1241
|
}
|
|
1246
|
-
function g(...
|
|
1247
|
-
!r || !t.value || (je.register(...
|
|
1242
|
+
function g(...p) {
|
|
1243
|
+
!r || !t.value || (je.register(...p), je.defaults.font.family = "'Roobert', sans-serif", s = new je(t.value, r));
|
|
1248
1244
|
}
|
|
1249
|
-
const y =
|
|
1250
|
-
r && (r.updateOptions(
|
|
1251
|
-
}, 100), B =
|
|
1252
|
-
r && (r.updateData(
|
|
1245
|
+
const y = Ve(function(p) {
|
|
1246
|
+
r && (r.updateOptions(p), s.options = r.options, s.update());
|
|
1247
|
+
}, 100), B = Ve(function(p) {
|
|
1248
|
+
r && (r.updateData(p), s.data = r.data, s.update());
|
|
1253
1249
|
}, 100);
|
|
1254
1250
|
return Qe(
|
|
1255
1251
|
i,
|
|
1256
|
-
(
|
|
1252
|
+
(p) => l.value = p == null ? void 0 : p.matches,
|
|
1257
1253
|
[l]
|
|
1258
1254
|
), H(() => {
|
|
1259
|
-
var
|
|
1255
|
+
var p;
|
|
1260
1256
|
try {
|
|
1261
|
-
r =
|
|
1262
|
-
} catch (
|
|
1263
|
-
console.error("Error creating chart config",
|
|
1257
|
+
r = m(e, a), (p = n.value) == null || p.addEventListener("click", h);
|
|
1258
|
+
} catch (S) {
|
|
1259
|
+
console.error("Error creating chart config", S), r = null;
|
|
1264
1260
|
}
|
|
1265
|
-
}), me([" ", "Enter"],
|
|
1266
|
-
var
|
|
1267
|
-
(
|
|
1261
|
+
}), me([" ", "Enter"], h, n), _e(() => {
|
|
1262
|
+
var p;
|
|
1263
|
+
(p = n.value) == null || p.removeEventListener("click", h), s == null || s.destroy();
|
|
1268
1264
|
}), j([
|
|
1269
1265
|
() => a.customOptions,
|
|
1270
1266
|
() => a.showTooltips,
|
|
@@ -1277,10 +1273,10 @@ function Ja(e, a) {
|
|
|
1277
1273
|
() => a.yMax
|
|
1278
1274
|
], () => y(a)), j(
|
|
1279
1275
|
l,
|
|
1280
|
-
(
|
|
1276
|
+
(p) => y(Ne(
|
|
1281
1277
|
{},
|
|
1282
1278
|
a,
|
|
1283
|
-
|
|
1279
|
+
p ? o : d
|
|
1284
1280
|
))
|
|
1285
1281
|
), j(
|
|
1286
1282
|
[
|
|
@@ -1295,7 +1291,7 @@ function Ja(e, a) {
|
|
|
1295
1291
|
registerChart: g
|
|
1296
1292
|
};
|
|
1297
1293
|
}
|
|
1298
|
-
const
|
|
1294
|
+
const Qa = (e) => ({
|
|
1299
1295
|
id: "htmlLegend",
|
|
1300
1296
|
afterUpdate(a) {
|
|
1301
1297
|
e.value.innerHTML = "", e.value.style.setProperty("--cjs-legend-padding-inline", `${a.scales.x.left}px`), a.options.plugins.legend.labels.generateLabels(a).forEach((l) => {
|
|
@@ -1361,10 +1357,10 @@ function tt(e, a = 1) {
|
|
|
1361
1357
|
], l = t[e % t.length], n = Math.floor(e / t.length) + a;
|
|
1362
1358
|
return `rgba(${l.toString()}, ${1 / n})`;
|
|
1363
1359
|
}
|
|
1364
|
-
function
|
|
1360
|
+
function Ja(e) {
|
|
1365
1361
|
return tt(e);
|
|
1366
1362
|
}
|
|
1367
|
-
function
|
|
1363
|
+
function _a(e) {
|
|
1368
1364
|
return {
|
|
1369
1365
|
maintainAspectRatio: !1,
|
|
1370
1366
|
plugins: {
|
|
@@ -1397,8 +1393,8 @@ function nt(e) {
|
|
|
1397
1393
|
yLabel: o,
|
|
1398
1394
|
yMax: s,
|
|
1399
1395
|
yMin: r,
|
|
1400
|
-
customOptions:
|
|
1401
|
-
tickSize:
|
|
1396
|
+
customOptions: m,
|
|
1397
|
+
tickSize: h
|
|
1402
1398
|
} = e, v = {
|
|
1403
1399
|
x: {
|
|
1404
1400
|
grid: {
|
|
@@ -1408,7 +1404,7 @@ function nt(e) {
|
|
|
1408
1404
|
stacked: n,
|
|
1409
1405
|
ticks: {
|
|
1410
1406
|
font: {
|
|
1411
|
-
size:
|
|
1407
|
+
size: h || Ee
|
|
1412
1408
|
}
|
|
1413
1409
|
},
|
|
1414
1410
|
title: {
|
|
@@ -1428,7 +1424,7 @@ function nt(e) {
|
|
|
1428
1424
|
suggestedMin: r,
|
|
1429
1425
|
ticks: {
|
|
1430
1426
|
font: {
|
|
1431
|
-
size:
|
|
1427
|
+
size: h || Ee
|
|
1432
1428
|
}
|
|
1433
1429
|
},
|
|
1434
1430
|
title: {
|
|
@@ -1437,7 +1433,7 @@ function nt(e) {
|
|
|
1437
1433
|
}
|
|
1438
1434
|
}
|
|
1439
1435
|
};
|
|
1440
|
-
return (i === "time" || ((y = (g =
|
|
1436
|
+
return (i === "time" || ((y = (g = m == null ? void 0 : m.scales) == null ? void 0 : g.x) == null ? void 0 : y.type) === "time") && (v.x.ticks.source = a != null && a.length ? "labels" : "auto", v.x.time = {
|
|
1441
1437
|
tooltipFormat: "dd MMM yyyy : h:mm bbb"
|
|
1442
1438
|
}), v;
|
|
1443
1439
|
}
|
|
@@ -1471,7 +1467,7 @@ class Tt {
|
|
|
1471
1467
|
return a;
|
|
1472
1468
|
}
|
|
1473
1469
|
}
|
|
1474
|
-
class
|
|
1470
|
+
class en extends Tt {
|
|
1475
1471
|
constructor({ data: a, options: t, plugins: l }) {
|
|
1476
1472
|
super({ type: "bar", data: a, options: t, plugins: l });
|
|
1477
1473
|
}
|
|
@@ -1495,7 +1491,7 @@ class an extends Tt {
|
|
|
1495
1491
|
this.options = n;
|
|
1496
1492
|
}
|
|
1497
1493
|
}
|
|
1498
|
-
class
|
|
1494
|
+
class tn extends Tt {
|
|
1499
1495
|
constructor({ data: a, options: t, plugins: l }) {
|
|
1500
1496
|
super({ type: "line", data: a, options: t, plugins: l });
|
|
1501
1497
|
}
|
|
@@ -1503,7 +1499,7 @@ class nn extends Tt {
|
|
|
1503
1499
|
return a.map((t, l) => ({
|
|
1504
1500
|
...t,
|
|
1505
1501
|
backgroundColor: tt(l, 2),
|
|
1506
|
-
borderColor:
|
|
1502
|
+
borderColor: Ja(l),
|
|
1507
1503
|
borderWidth: 4
|
|
1508
1504
|
}));
|
|
1509
1505
|
}
|
|
@@ -1520,7 +1516,7 @@ class nn extends Tt {
|
|
|
1520
1516
|
this.options = n;
|
|
1521
1517
|
}
|
|
1522
1518
|
}
|
|
1523
|
-
class
|
|
1519
|
+
class an {
|
|
1524
1520
|
constructor() {
|
|
1525
1521
|
return this;
|
|
1526
1522
|
}
|
|
@@ -1537,7 +1533,7 @@ class ln {
|
|
|
1537
1533
|
*/
|
|
1538
1534
|
setCommonConfigs(a) {
|
|
1539
1535
|
const { data: t } = a;
|
|
1540
|
-
return this.commonOptionsBasic =
|
|
1536
|
+
return this.commonOptionsBasic = _a(a), this.commonOptionsStrict = at(), this.datasets = t, this;
|
|
1541
1537
|
}
|
|
1542
1538
|
setCustomOptions(a) {
|
|
1543
1539
|
return this.customOptions = a.customOptions, this;
|
|
@@ -1589,18 +1585,18 @@ class ln {
|
|
|
1589
1585
|
};
|
|
1590
1586
|
switch (this.type) {
|
|
1591
1587
|
case "bar":
|
|
1592
|
-
return new
|
|
1588
|
+
return new en(a);
|
|
1593
1589
|
case "line":
|
|
1594
|
-
return new
|
|
1590
|
+
return new tn(a);
|
|
1595
1591
|
default:
|
|
1596
1592
|
throw new Error(`Unsupported chart type: ${this.type}`);
|
|
1597
1593
|
}
|
|
1598
1594
|
}
|
|
1599
1595
|
}
|
|
1600
|
-
const
|
|
1596
|
+
const nn = {
|
|
1601
1597
|
class: "bs-chart bs-chart-bar",
|
|
1602
1598
|
"data-component": "bs-chart-bar"
|
|
1603
|
-
},
|
|
1599
|
+
}, ln = ["aria-label"], on = ["data-hidden"], Eo = {
|
|
1604
1600
|
__name: "BsChartBar",
|
|
1605
1601
|
props: {
|
|
1606
1602
|
chartTitle: {
|
|
@@ -1671,7 +1667,7 @@ const on = {
|
|
|
1671
1667
|
}
|
|
1672
1668
|
},
|
|
1673
1669
|
setup(e) {
|
|
1674
|
-
const a = e, { canvasRef: t, legendListRef: l, registerChart: n } =
|
|
1670
|
+
const a = e, { canvasRef: t, legendListRef: l, registerChart: n } = Xa("bar", a), i = f(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`);
|
|
1675
1671
|
return H(() => n(
|
|
1676
1672
|
aa,
|
|
1677
1673
|
na,
|
|
@@ -1680,18 +1676,18 @@ const on = {
|
|
|
1680
1676
|
ia,
|
|
1681
1677
|
ra,
|
|
1682
1678
|
sa
|
|
1683
|
-
)), (d, o) => (u(),
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1679
|
+
)), (d, o) => (u(), b("div", nn, [
|
|
1680
|
+
w("figure", null, [
|
|
1681
|
+
w("div", null, [
|
|
1682
|
+
w("canvas", {
|
|
1687
1683
|
"aria-label": i.value,
|
|
1688
1684
|
ref_key: "canvasRef",
|
|
1689
1685
|
ref: t,
|
|
1690
1686
|
role: "img"
|
|
1691
|
-
}, null, 8,
|
|
1687
|
+
}, null, 8, ln)
|
|
1692
1688
|
]),
|
|
1693
|
-
|
|
1694
|
-
P(
|
|
1689
|
+
w("div", null, [
|
|
1690
|
+
P(Ya, {
|
|
1695
1691
|
"chart-type": "bar",
|
|
1696
1692
|
data: e.data,
|
|
1697
1693
|
"data-idx-labels": e.dataIdxLabels,
|
|
@@ -1700,19 +1696,19 @@ const on = {
|
|
|
1700
1696
|
"x-label": e.xLabel,
|
|
1701
1697
|
"y-label": e.yLabel
|
|
1702
1698
|
}, null, 8, ["data", "data-idx-labels", "table-title", "x-axis-type", "x-label", "y-label"]),
|
|
1703
|
-
|
|
1699
|
+
w("figcaption", {
|
|
1704
1700
|
"data-hidden": !e.showLegend
|
|
1705
1701
|
}, [
|
|
1706
|
-
|
|
1702
|
+
w("ul", {
|
|
1707
1703
|
ref_key: "legendListRef",
|
|
1708
1704
|
ref: l
|
|
1709
1705
|
}, null, 512)
|
|
1710
|
-
], 8,
|
|
1706
|
+
], 8, on)
|
|
1711
1707
|
])
|
|
1712
1708
|
])
|
|
1713
1709
|
]));
|
|
1714
1710
|
}
|
|
1715
|
-
},
|
|
1711
|
+
}, rn = ["data-disabled", "data-error", "data-size"], sn = ["checked", "data-error", "disabled", "id", "required", "value"], Lo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1716
1712
|
__name: "BsCheckbox",
|
|
1717
1713
|
props: {
|
|
1718
1714
|
/** Sets the label. */
|
|
@@ -1775,56 +1771,56 @@ const on = {
|
|
|
1775
1771
|
},
|
|
1776
1772
|
emits: ["update:modelValue"],
|
|
1777
1773
|
setup(e, { emit: a }) {
|
|
1778
|
-
const t = e, l = a, [n] = Z(), i =
|
|
1774
|
+
const t = e, l = a, [n] = Z(), i = f(() => et.concat(t.passAttrs.split(","))), d = I(null), o = f(() => t.inputId || n.value), s = f(() => t.checked || h.value), r = f(() => t.indeterminate || t.checkedPartially), m = f(() => Array.isArray(t.modelValue) && t.value), h = f(() => m.value && t.modelValue.includes(t.value) || typeof t.modelValue == "boolean" && t.modelValue);
|
|
1779
1775
|
function v() {
|
|
1780
1776
|
d.value && (d.value.indeterminate = r.value && !s.value);
|
|
1781
1777
|
}
|
|
1782
|
-
function g(
|
|
1783
|
-
l("update:modelValue",
|
|
1778
|
+
function g(p) {
|
|
1779
|
+
l("update:modelValue", p);
|
|
1784
1780
|
}
|
|
1785
|
-
function y(
|
|
1786
|
-
const
|
|
1787
|
-
|
|
1781
|
+
function y(p) {
|
|
1782
|
+
const S = [...t.modelValue];
|
|
1783
|
+
p ? S.push(t.value) : S.splice(S.indexOf(t.value), 1), l("update:modelValue", S);
|
|
1788
1784
|
}
|
|
1789
|
-
function B(
|
|
1790
|
-
const { checked:
|
|
1791
|
-
|
|
1785
|
+
function B(p) {
|
|
1786
|
+
const { checked: S } = p.target;
|
|
1787
|
+
m.value ? y(S) : g(S);
|
|
1792
1788
|
}
|
|
1793
|
-
return j(s, v), j(r, v), H(v), (
|
|
1789
|
+
return j(s, v), j(r, v), H(v), (p, S) => (u(), b("div", z({
|
|
1794
1790
|
class: "bs-boolean",
|
|
1795
1791
|
"data-component": "bs-checkbox",
|
|
1796
1792
|
"data-disabled": e.disabled,
|
|
1797
1793
|
"data-error": e.error,
|
|
1798
1794
|
"data-size": e.size
|
|
1799
|
-
}, c(Y)(
|
|
1800
|
-
|
|
1795
|
+
}, c(Y)(p.$attrs, i.value).remaining), [
|
|
1796
|
+
w("input", z({
|
|
1801
1797
|
ref_key: "inputEl",
|
|
1802
1798
|
ref: d,
|
|
1803
1799
|
checked: s.value,
|
|
1804
1800
|
"data-error": e.error,
|
|
1805
1801
|
disabled: e.disabled,
|
|
1806
|
-
id:
|
|
1802
|
+
id: p.$attrs.id || o.value,
|
|
1807
1803
|
required: e.required,
|
|
1808
1804
|
value: e.value || "on",
|
|
1809
1805
|
type: "checkbox",
|
|
1810
1806
|
onChange: B
|
|
1811
|
-
}, c(Y)(
|
|
1812
|
-
e.label ||
|
|
1807
|
+
}, c(Y)(p.$attrs, i.value).filtered), null, 16, sn),
|
|
1808
|
+
e.label || p.$slots.label ? (u(), V(ae, {
|
|
1813
1809
|
key: 0,
|
|
1814
|
-
for:
|
|
1810
|
+
for: p.$attrs.id || o.value,
|
|
1815
1811
|
disabled: e.disabled,
|
|
1816
1812
|
required: e.required
|
|
1817
1813
|
}, {
|
|
1818
1814
|
default: D(() => [
|
|
1819
|
-
E(
|
|
1820
|
-
W(
|
|
1815
|
+
E(p.$slots, "label", {}, () => [
|
|
1816
|
+
W(O(e.label), 1)
|
|
1821
1817
|
])
|
|
1822
1818
|
]),
|
|
1823
1819
|
_: 3
|
|
1824
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
1825
|
-
], 16,
|
|
1820
|
+
}, 8, ["for", "disabled", "required"])) : x("", !0)
|
|
1821
|
+
], 16, rn));
|
|
1826
1822
|
}
|
|
1827
|
-
}),
|
|
1823
|
+
}), dn = {
|
|
1828
1824
|
__name: "BsDropdownContainer",
|
|
1829
1825
|
props: {
|
|
1830
1826
|
breakout: {
|
|
@@ -1846,15 +1842,15 @@ const on = {
|
|
|
1846
1842
|
},
|
|
1847
1843
|
setup(e, { expose: a }) {
|
|
1848
1844
|
const t = I(null);
|
|
1849
|
-
return a({ internalContainerRef: t }), (l, n) => (u(),
|
|
1850
|
-
e.breakout && e.breakoutMounted ? (u(),
|
|
1845
|
+
return a({ internalContainerRef: t }), (l, n) => (u(), b(G, null, [
|
|
1846
|
+
e.breakout && e.breakoutMounted ? (u(), V(Nt, {
|
|
1851
1847
|
key: 0,
|
|
1852
1848
|
to: e.breakoutStub
|
|
1853
1849
|
}, [
|
|
1854
1850
|
E(l.$slots, "default")
|
|
1855
|
-
], 8, ["to"])) :
|
|
1856
|
-
e.breakout ?
|
|
1857
|
-
e.containerId ? E(l.$slots, "default", { key: 0 }) : (u(),
|
|
1851
|
+
], 8, ["to"])) : x("", !0),
|
|
1852
|
+
e.breakout ? x("", !0) : (u(), b(G, { key: 1 }, [
|
|
1853
|
+
e.containerId ? E(l.$slots, "default", { key: 0 }) : (u(), b("div", {
|
|
1858
1854
|
key: 1,
|
|
1859
1855
|
ref_key: "internalContainerRef",
|
|
1860
1856
|
ref: t,
|
|
@@ -1897,7 +1893,7 @@ const on = {
|
|
|
1897
1893
|
],
|
|
1898
1894
|
setup(e, { emit: a }) {
|
|
1899
1895
|
const t = a;
|
|
1900
|
-
return (l, n) => e.preloaded ? ue((u(),
|
|
1896
|
+
return (l, n) => e.preloaded ? ue((u(), V(st, {
|
|
1901
1897
|
key: 0,
|
|
1902
1898
|
name: e.name,
|
|
1903
1899
|
onBeforeEnter: n[0] || (n[0] = (i) => t("before-enter")),
|
|
@@ -1915,7 +1911,7 @@ const on = {
|
|
|
1915
1911
|
_: 3
|
|
1916
1912
|
}, 8, ["name"])), [
|
|
1917
1913
|
[ce, e.shown]
|
|
1918
|
-
]) : (u(),
|
|
1914
|
+
]) : (u(), V(st, {
|
|
1919
1915
|
key: 1,
|
|
1920
1916
|
name: e.name,
|
|
1921
1917
|
onBeforeEnter: n[8] || (n[8] = (i) => t("before-enter")),
|
|
@@ -1928,24 +1924,24 @@ const on = {
|
|
|
1928
1924
|
onLeaveCancelled: n[15] || (n[15] = (i) => t("leave-cancelled"))
|
|
1929
1925
|
}, {
|
|
1930
1926
|
default: D(() => [
|
|
1931
|
-
e.shown ? E(l.$slots, "default", { key: 0 }) :
|
|
1927
|
+
e.shown ? E(l.$slots, "default", { key: 0 }) : x("", !0)
|
|
1932
1928
|
]),
|
|
1933
1929
|
_: 3
|
|
1934
1930
|
}, 8, ["name"]));
|
|
1935
1931
|
}
|
|
1936
|
-
},
|
|
1932
|
+
}, un = (e, a = void 0, t = "relative") => {
|
|
1937
1933
|
const l = I(null), n = I(null), i = I(!1);
|
|
1938
1934
|
let d = !1;
|
|
1939
1935
|
return H(() => {
|
|
1940
|
-
e && (l.value = a ||
|
|
1941
|
-
}),
|
|
1936
|
+
e && (l.value = a || gt(), document.getElementById(l.value) ? (n.value = document.getElementById(l.value), d = !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);
|
|
1937
|
+
}), Be(() => {
|
|
1942
1938
|
var o;
|
|
1943
1939
|
e && !d && ((o = document.getElementById(l.value)) == null || o.remove());
|
|
1944
1940
|
}), { breakoutId: l, breakoutStub: n, breakoutMounted: i };
|
|
1945
|
-
},
|
|
1941
|
+
}, cn = {
|
|
1946
1942
|
key: 0,
|
|
1947
1943
|
class: "bs-dropdown-backdrop"
|
|
1948
|
-
},
|
|
1944
|
+
}, fn = ["data-width", "data-shown", "data-no-mobile"], pn = { key: 0 }, mn = { key: 0 }, bn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1949
1945
|
__name: "BsDropdownNew",
|
|
1950
1946
|
props: {
|
|
1951
1947
|
anchorId: {
|
|
@@ -1998,65 +1994,65 @@ const on = {
|
|
|
1998
1994
|
"after-leave"
|
|
1999
1995
|
],
|
|
2000
1996
|
setup(e, { emit: a }) {
|
|
2001
|
-
const t = e, l = a, n = I(null), i = I(null), d = I(!1), o = I(!1), s =
|
|
1997
|
+
const t = e, l = a, n = I(null), i = I(null), d = I(!1), o = I(!1), s = f(() => document.getElementById(t.anchorId)), r = f(() => t.breakout ? h.value : t.containerId ? document.getElementById(t.containerId) : n.value.internalContainerRef), m = f(() => t.width === "anchor" ? void 0 : t.width);
|
|
2002
1998
|
Ct([i, s], () => {
|
|
2003
1999
|
o.value && l("close");
|
|
2004
2000
|
}), me(["Escape"], () => {
|
|
2005
2001
|
o.value && l("close");
|
|
2006
2002
|
});
|
|
2007
|
-
const { breakoutStub:
|
|
2008
|
-
fe("dropdownEnter", d), fe("dropdownAfterEnter", o), fe("dropdownShown",
|
|
2009
|
-
const g = (
|
|
2010
|
-
i.value.style.setProperty(
|
|
2003
|
+
const { breakoutStub: h, breakoutMounted: v } = un(t.breakout, t.containerId);
|
|
2004
|
+
fe("dropdownEnter", d), fe("dropdownAfterEnter", o), fe("dropdownShown", f(() => t.shown));
|
|
2005
|
+
const g = (k, A) => {
|
|
2006
|
+
i.value.style.setProperty(k, A);
|
|
2011
2007
|
};
|
|
2012
2008
|
function y() {
|
|
2013
|
-
const
|
|
2014
|
-
B(
|
|
2009
|
+
const k = r.value.getBoundingClientRect(), A = s.value.getBoundingClientRect(), F = i.value.getBoundingClientRect();
|
|
2010
|
+
B(k, A), p(k, A, F);
|
|
2015
2011
|
}
|
|
2016
|
-
function B(
|
|
2012
|
+
function B(k, A) {
|
|
2017
2013
|
if (t.position === "top") {
|
|
2018
|
-
const F =
|
|
2019
|
-
g("--dropdown-wscreen-top", "auto"), g("--dropdown-wscreen-bottom", `${F +
|
|
2014
|
+
const F = k.bottom - A.bottom;
|
|
2015
|
+
g("--dropdown-wscreen-top", "auto"), g("--dropdown-wscreen-bottom", `${F + A.height + 8}px`);
|
|
2020
2016
|
} else {
|
|
2021
|
-
const F =
|
|
2022
|
-
g("--dropdown-wscreen-top", `${F +
|
|
2017
|
+
const F = A.top - k.top;
|
|
2018
|
+
g("--dropdown-wscreen-top", `${F + A.height + 8}px`), g("--dropdown-wscreen-bottom", "auto");
|
|
2023
2019
|
}
|
|
2024
2020
|
}
|
|
2025
|
-
function
|
|
2026
|
-
const _ =
|
|
2021
|
+
function p(k, A, F) {
|
|
2022
|
+
const _ = A.left - k.left;
|
|
2027
2023
|
if (t.position === "center") {
|
|
2028
|
-
const J = (
|
|
2024
|
+
const J = (A.width - F.width) / 2;
|
|
2029
2025
|
g("--dropdown-wscreen-left", `${_ + J}px`), g("--dropdown-wscreen-right", "auto");
|
|
2030
2026
|
} else if (t.position === "right") {
|
|
2031
|
-
const J =
|
|
2027
|
+
const J = k.right - A.right;
|
|
2032
2028
|
g("--dropdown-wscreen-left", "auto"), g("--dropdown-wscreen-right", `${J}px`);
|
|
2033
2029
|
} else
|
|
2034
2030
|
g("--dropdown-wscreen-left", `${_}px`), g("--dropdown-wscreen-right", "auto");
|
|
2035
2031
|
}
|
|
2036
|
-
function
|
|
2032
|
+
function S() {
|
|
2037
2033
|
if (t.width === "anchor") {
|
|
2038
|
-
const
|
|
2039
|
-
g("--dropdown-wscreen-width", `${
|
|
2034
|
+
const k = s.value.getBoundingClientRect();
|
|
2035
|
+
g("--dropdown-wscreen-width", `${k.width}px`);
|
|
2040
2036
|
} else
|
|
2041
2037
|
g("--dropdown-wscreen-width", "");
|
|
2042
2038
|
}
|
|
2043
|
-
function
|
|
2044
|
-
d.value = !0, y(),
|
|
2039
|
+
function C() {
|
|
2040
|
+
d.value = !0, y(), S(), l("enter");
|
|
2045
2041
|
}
|
|
2046
2042
|
function $() {
|
|
2047
2043
|
o.value = !0, l("after-enter");
|
|
2048
2044
|
}
|
|
2049
|
-
function
|
|
2045
|
+
function M() {
|
|
2050
2046
|
d.value = !1, o.value = !1, l("after-leave");
|
|
2051
2047
|
}
|
|
2052
|
-
return (
|
|
2053
|
-
e.useMobileStyle && e.shown ? (u(),
|
|
2054
|
-
P(
|
|
2048
|
+
return (k, A) => (u(), b(G, null, [
|
|
2049
|
+
e.useMobileStyle && e.shown ? (u(), b("div", cn)) : x("", !0),
|
|
2050
|
+
P(dn, {
|
|
2055
2051
|
ref_key: "dropdownContainerRef",
|
|
2056
2052
|
ref: n,
|
|
2057
2053
|
breakout: e.breakout,
|
|
2058
2054
|
breakoutMounted: c(v),
|
|
2059
|
-
breakoutStub: c(
|
|
2055
|
+
breakoutStub: c(h),
|
|
2060
2056
|
containerId: e.containerId
|
|
2061
2057
|
}, {
|
|
2062
2058
|
default: D(() => [
|
|
@@ -2065,33 +2061,33 @@ const on = {
|
|
|
2065
2061
|
preloaded: e.preloaded,
|
|
2066
2062
|
shown: e.shown,
|
|
2067
2063
|
onAfterEnter: $,
|
|
2068
|
-
onEnter:
|
|
2069
|
-
onAfterLeave:
|
|
2064
|
+
onEnter: C,
|
|
2065
|
+
onAfterLeave: M
|
|
2070
2066
|
}, {
|
|
2071
2067
|
default: D(() => [
|
|
2072
|
-
|
|
2068
|
+
w("div", z({
|
|
2073
2069
|
ref_key: "dropdownRef",
|
|
2074
2070
|
ref: i,
|
|
2075
2071
|
class: "bs-dropdown",
|
|
2076
|
-
"data-width":
|
|
2072
|
+
"data-width": m.value,
|
|
2077
2073
|
"data-shown": e.shown,
|
|
2078
2074
|
"data-no-mobile": !e.useMobileStyle
|
|
2079
|
-
},
|
|
2080
|
-
e.helperText ? (u(),
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
e.helperDescription ? (u(),
|
|
2075
|
+
}, k.$attrs), [
|
|
2076
|
+
e.helperText ? (u(), b("header", pn, [
|
|
2077
|
+
w("div", null, [
|
|
2078
|
+
w("h3", null, O(e.helperText), 1),
|
|
2079
|
+
e.helperDescription ? (u(), b("p", mn, O(e.helperDescription), 1)) : x("", !0)
|
|
2084
2080
|
]),
|
|
2085
|
-
|
|
2081
|
+
w("button", {
|
|
2086
2082
|
type: "button",
|
|
2087
2083
|
title: "close",
|
|
2088
|
-
onClick:
|
|
2084
|
+
onClick: A[0] || (A[0] = () => l("close"))
|
|
2089
2085
|
}, [
|
|
2090
|
-
P(c(
|
|
2086
|
+
P(c($e))
|
|
2091
2087
|
])
|
|
2092
|
-
])) :
|
|
2093
|
-
E(
|
|
2094
|
-
], 16,
|
|
2088
|
+
])) : x("", !0),
|
|
2089
|
+
E(k.$slots, "default")
|
|
2090
|
+
], 16, fn)
|
|
2095
2091
|
]),
|
|
2096
2092
|
_: 3
|
|
2097
2093
|
}, 8, ["preloaded", "shown"])
|
|
@@ -2190,8 +2186,8 @@ const on = {
|
|
|
2190
2186
|
"after-leave"
|
|
2191
2187
|
],
|
|
2192
2188
|
setup(e, { emit: a }) {
|
|
2193
|
-
const t = e, l = a, { transition: n } = Le(t), i =
|
|
2194
|
-
return (s, r) => (u(),
|
|
2189
|
+
const t = e, l = a, { transition: n } = Le(t), i = f(() => t.width === "toggle" ? "anchor" : t.width), d = f(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = f(() => t.toggleId ? t.toggleId : t.anchorId);
|
|
2190
|
+
return (s, r) => (u(), V(bn, {
|
|
2195
2191
|
"anchor-id": o.value,
|
|
2196
2192
|
breakout: e.breakout,
|
|
2197
2193
|
"container-id": e.containerId,
|
|
@@ -2213,7 +2209,7 @@ const on = {
|
|
|
2213
2209
|
_: 3
|
|
2214
2210
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
|
|
2215
2211
|
}
|
|
2216
|
-
},
|
|
2212
|
+
}, hn = ["aria-controls", "aria-expanded", "data-open", "disabled", "id", "tabindex"], vn = { class: "visually-hidden" }, gn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2217
2213
|
__name: "BsInputCombobox",
|
|
2218
2214
|
props: {
|
|
2219
2215
|
containerId: {
|
|
@@ -2255,7 +2251,7 @@ const on = {
|
|
|
2255
2251
|
setup(e, { emit: a }) {
|
|
2256
2252
|
const t = e, l = a;
|
|
2257
2253
|
let n = !1;
|
|
2258
|
-
const i = I(null), [d] = Z(1), o =
|
|
2254
|
+
const i = I(null), [d] = Z(1), o = f(() => ({
|
|
2259
2255
|
icon: t.modelValue ? "close" : t.optionsId ? "caret-down" : "",
|
|
2260
2256
|
show: !!(t.modelValue || t.optionsId),
|
|
2261
2257
|
text: t.modelValue ? "Clear this field" : t.optionsId ? "Toggle options dropdown" : ""
|
|
@@ -2263,20 +2259,20 @@ const on = {
|
|
|
2263
2259
|
function s() {
|
|
2264
2260
|
t.modelValue && l("clear"), n = !0, i.value.$el.focus();
|
|
2265
2261
|
}
|
|
2266
|
-
function r(
|
|
2262
|
+
function r(h) {
|
|
2267
2263
|
var y, B;
|
|
2268
|
-
const v = ((y =
|
|
2269
|
-
!(((B =
|
|
2264
|
+
const v = ((y = h.relatedTarget) == null ? void 0 : y.id) === d.value;
|
|
2265
|
+
!(((B = h.relatedTarget) == null ? void 0 : B.id) === t.optionsId) && (!v || !n) && m(!0), n = !1;
|
|
2270
2266
|
}
|
|
2271
|
-
const
|
|
2272
|
-
return (
|
|
2267
|
+
const m = Ve((h) => l("toggled", h), 200, !0);
|
|
2268
|
+
return (h, v) => (u(), V(De, {
|
|
2273
2269
|
"aria-live": "polite",
|
|
2274
2270
|
disabled: e.disabled,
|
|
2275
2271
|
error: e.error,
|
|
2276
2272
|
id: e.containerId,
|
|
2277
2273
|
multifocus: !1,
|
|
2278
2274
|
variant: "combobox",
|
|
2279
|
-
onClick: c(
|
|
2275
|
+
onClick: c(m)
|
|
2280
2276
|
}, {
|
|
2281
2277
|
default: D(() => [
|
|
2282
2278
|
P(Ie, z({
|
|
@@ -2295,9 +2291,9 @@ const on = {
|
|
|
2295
2291
|
required: e.required,
|
|
2296
2292
|
role: e.optionsId ? "combobox" : void 0,
|
|
2297
2293
|
onFocus: r,
|
|
2298
|
-
onInput: v[0] || (v[0] = (g) =>
|
|
2299
|
-
},
|
|
2300
|
-
ue(
|
|
2294
|
+
onInput: v[0] || (v[0] = (g) => h.$emit("update:modelValue", g.target.value))
|
|
2295
|
+
}, h.$attrs), null, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup", "aria-invalid", "data-error", "disabled", "model-value", "placeholder", "required", "role"]),
|
|
2296
|
+
ue(w("button", {
|
|
2301
2297
|
"aria-controls": !e.modelValue && e.optionsId ? e.optionsId : void 0,
|
|
2302
2298
|
"aria-expanded": !e.modelValue && e.optionsId ? e.open : void 0,
|
|
2303
2299
|
"data-open": e.modelValue ? void 0 : e.open,
|
|
@@ -2308,27 +2304,27 @@ const on = {
|
|
|
2308
2304
|
type: "button",
|
|
2309
2305
|
onClick: s
|
|
2310
2306
|
}, [
|
|
2311
|
-
|
|
2307
|
+
w("span", vn, O(o.value.text), 1),
|
|
2312
2308
|
ue(P(c(Me), {
|
|
2313
2309
|
role: "presentation",
|
|
2314
2310
|
size: "md"
|
|
2315
2311
|
}, null, 512), [
|
|
2316
2312
|
[ce, o.value.icon == "caret-down"]
|
|
2317
2313
|
]),
|
|
2318
|
-
ue(P(c(
|
|
2314
|
+
ue(P(c($e), {
|
|
2319
2315
|
role: "presentation",
|
|
2320
2316
|
size: "md"
|
|
2321
2317
|
}, null, 512), [
|
|
2322
2318
|
[ce, o.value.icon == "close"]
|
|
2323
2319
|
])
|
|
2324
|
-
], 8,
|
|
2320
|
+
], 8, hn), [
|
|
2325
2321
|
[ce, o.value.show]
|
|
2326
2322
|
])
|
|
2327
2323
|
]),
|
|
2328
2324
|
_: 1
|
|
2329
2325
|
}, 8, ["disabled", "error", "id", "onClick"]));
|
|
2330
2326
|
}
|
|
2331
|
-
}),
|
|
2327
|
+
}), yn = ["aria-controls", "aria-expanded", "data-open", "data-size", "disabled"], Sn = {
|
|
2332
2328
|
__name: "BsFilterButton",
|
|
2333
2329
|
props: {
|
|
2334
2330
|
badgeCount: {
|
|
@@ -2357,8 +2353,8 @@ const on = {
|
|
|
2357
2353
|
}
|
|
2358
2354
|
},
|
|
2359
2355
|
setup(e) {
|
|
2360
|
-
const a = e, t =
|
|
2361
|
-
return (l, n) => (u(),
|
|
2356
|
+
const a = e, t = f(() => a.badgeCount > 0);
|
|
2357
|
+
return (l, n) => (u(), b("button", {
|
|
2362
2358
|
class: "bs-filter-button",
|
|
2363
2359
|
"aria-controls": e.optionsId,
|
|
2364
2360
|
"aria-expanded": e.open,
|
|
@@ -2369,21 +2365,21 @@ const on = {
|
|
|
2369
2365
|
disabled: e.disabled,
|
|
2370
2366
|
type: "button"
|
|
2371
2367
|
}, [
|
|
2372
|
-
t.value ? (u(),
|
|
2368
|
+
t.value ? (u(), V(wa, {
|
|
2373
2369
|
key: 0,
|
|
2374
2370
|
color: "blue",
|
|
2375
2371
|
count: e.badgeCount,
|
|
2376
2372
|
label: "active filter",
|
|
2377
2373
|
position: "left",
|
|
2378
2374
|
variant: "notext"
|
|
2379
|
-
}, null, 8, ["count"])) :
|
|
2375
|
+
}, null, 8, ["count"])) : x("", !0),
|
|
2380
2376
|
E(l.$slots, "label", {}, () => [
|
|
2381
|
-
W(
|
|
2377
|
+
W(O(e.label), 1)
|
|
2382
2378
|
]),
|
|
2383
2379
|
P(c(Me))
|
|
2384
|
-
], 8,
|
|
2380
|
+
], 8, yn));
|
|
2385
2381
|
}
|
|
2386
|
-
},
|
|
2382
|
+
}, wn = ["data-value", "data-value-type", "data-variant", "id"], ot = {
|
|
2387
2383
|
__name: "BsDropdownOption",
|
|
2388
2384
|
props: {
|
|
2389
2385
|
value: {
|
|
@@ -2397,11 +2393,11 @@ const on = {
|
|
|
2397
2393
|
},
|
|
2398
2394
|
setup(e) {
|
|
2399
2395
|
const a = e, t = I(null), l = pe("optionsId", ""), n = pe("handleOptionSelect", () => {
|
|
2400
|
-
}), i =
|
|
2396
|
+
}), i = f(() => `${l.value}-option-${a.value}`);
|
|
2401
2397
|
function d(o) {
|
|
2402
2398
|
n(t.value), o.stopPropagation();
|
|
2403
2399
|
}
|
|
2404
|
-
return (o, s) => (u(),
|
|
2400
|
+
return (o, s) => (u(), b("li", {
|
|
2405
2401
|
ref_key: "optionRef",
|
|
2406
2402
|
ref: t,
|
|
2407
2403
|
"data-component": "bs-dropdown-option",
|
|
@@ -2413,9 +2409,9 @@ const on = {
|
|
|
2413
2409
|
onClick: d
|
|
2414
2410
|
}, [
|
|
2415
2411
|
E(o.$slots, "default")
|
|
2416
|
-
], 8,
|
|
2412
|
+
], 8, wn));
|
|
2417
2413
|
}
|
|
2418
|
-
},
|
|
2414
|
+
}, Bn = ["data-img-size", "data-initials", "data-no-img"], $n = ["src", "alt"], At = {
|
|
2419
2415
|
__name: "BsProfileImg",
|
|
2420
2416
|
props: {
|
|
2421
2417
|
src: String,
|
|
@@ -2435,22 +2431,22 @@ const on = {
|
|
|
2435
2431
|
},
|
|
2436
2432
|
setup(e) {
|
|
2437
2433
|
const a = e, t = I(!1), l = I(!!a.src);
|
|
2438
|
-
return H(() => t.value = !0), (n, i) => (u(),
|
|
2434
|
+
return H(() => t.value = !0), (n, i) => (u(), b("div", {
|
|
2439
2435
|
class: "bs-profile-img",
|
|
2440
2436
|
"data-component": "bs-profile-img",
|
|
2441
2437
|
"data-img-size": e.size,
|
|
2442
2438
|
"data-initials": e.initials,
|
|
2443
2439
|
"data-no-img": !l.value
|
|
2444
2440
|
}, [
|
|
2445
|
-
l.value && t.value ? (u(),
|
|
2441
|
+
l.value && t.value ? (u(), b("img", {
|
|
2446
2442
|
key: 0,
|
|
2447
2443
|
src: e.src,
|
|
2448
2444
|
alt: e.useAltText ? e.profileName : "",
|
|
2449
2445
|
onError: i[0] || (i[0] = (d) => l.value = !1)
|
|
2450
|
-
}, null, 40,
|
|
2451
|
-
], 8,
|
|
2446
|
+
}, null, 40, $n)) : x("", !0)
|
|
2447
|
+
], 8, Bn));
|
|
2452
2448
|
}
|
|
2453
|
-
},
|
|
2449
|
+
}, In = ["id", "data-checked"], kn = { key: 1 }, Cn = ["innerHTML"], xn = { key: 4 }, Tn = { key: 5 }, An = {
|
|
2454
2450
|
key: 0,
|
|
2455
2451
|
role: "option",
|
|
2456
2452
|
"data-no-hover": ""
|
|
@@ -2487,7 +2483,7 @@ const on = {
|
|
|
2487
2483
|
},
|
|
2488
2484
|
setup(e) {
|
|
2489
2485
|
const a = e, t = {};
|
|
2490
|
-
|
|
2486
|
+
yt(() => {
|
|
2491
2487
|
l();
|
|
2492
2488
|
}), j(() => a.options, () => {
|
|
2493
2489
|
l();
|
|
@@ -2511,48 +2507,48 @@ const on = {
|
|
|
2511
2507
|
function d(o, s) {
|
|
2512
2508
|
return !!o && o !== s;
|
|
2513
2509
|
}
|
|
2514
|
-
return (o, s) => (u(),
|
|
2515
|
-
(u(!0),
|
|
2510
|
+
return (o, s) => (u(), b(G, null, [
|
|
2511
|
+
(u(!0), b(G, null, ee(e.options, (r) => (u(), V(ot, {
|
|
2516
2512
|
"aria-checked": r.checkbox ? r.checkbox.checked : void 0,
|
|
2517
2513
|
key: r.value,
|
|
2518
2514
|
value: r.value,
|
|
2519
2515
|
variant: n(r)
|
|
2520
2516
|
}, {
|
|
2521
2517
|
default: D(() => [
|
|
2522
|
-
r.checkbox ? (u(),
|
|
2518
|
+
r.checkbox ? (u(), b("span", {
|
|
2523
2519
|
key: 0,
|
|
2524
2520
|
id: r.checkbox.inputId,
|
|
2525
2521
|
"aria-hidden": "true",
|
|
2526
2522
|
class: "bs-checkbox",
|
|
2527
2523
|
"data-checked": r.checkbox.checked
|
|
2528
|
-
}, null, 8,
|
|
2529
|
-
r.icon ? (u(),
|
|
2530
|
-
(u(),
|
|
2531
|
-
])) :
|
|
2532
|
-
r.profileImg ? (u(),
|
|
2524
|
+
}, null, 8, In)) : x("", !0),
|
|
2525
|
+
r.icon ? (u(), b("span", kn, [
|
|
2526
|
+
(u(), V(te(t[r.icon])))
|
|
2527
|
+
])) : x("", !0),
|
|
2528
|
+
r.profileImg ? (u(), V(At, {
|
|
2533
2529
|
key: 2,
|
|
2534
2530
|
src: r.profileImg.src,
|
|
2535
2531
|
size: "xs",
|
|
2536
2532
|
initials: r.profileImg.initials,
|
|
2537
2533
|
"profile-name": r.profileImg.profileName,
|
|
2538
2534
|
"use-alt-text": d(r.profileImg.profileName, r.label)
|
|
2539
|
-
}, null, 8, ["src", "initials", "profile-name", "use-alt-text"])) :
|
|
2540
|
-
r.labelHtml ? (u(),
|
|
2535
|
+
}, null, 8, ["src", "initials", "profile-name", "use-alt-text"])) : x("", !0),
|
|
2536
|
+
r.labelHtml ? (u(), b("span", {
|
|
2541
2537
|
key: 3,
|
|
2542
2538
|
innerHTML: r.labelHtml
|
|
2543
|
-
}, null, 8,
|
|
2544
|
-
r.description ? (u(),
|
|
2539
|
+
}, null, 8, Cn)) : (u(), b("span", xn, O(r.label), 1)),
|
|
2540
|
+
r.description ? (u(), b("span", Tn, O(r.description), 1)) : x("", !0)
|
|
2545
2541
|
]),
|
|
2546
2542
|
_: 2
|
|
2547
2543
|
}, 1032, ["aria-checked", "value", "variant"]))), 128)),
|
|
2548
|
-
e.showNoOptions && e.options.length === 0 ? (u(),
|
|
2544
|
+
e.showNoOptions && e.options.length === 0 ? (u(), b("li", An, [
|
|
2549
2545
|
E(o.$slots, "no-options", {}, () => [
|
|
2550
|
-
W("No options")
|
|
2546
|
+
s[0] || (s[0] = W("No options"))
|
|
2551
2547
|
])
|
|
2552
|
-
])) :
|
|
2548
|
+
])) : x("", !0)
|
|
2553
2549
|
], 64));
|
|
2554
2550
|
}
|
|
2555
|
-
},
|
|
2551
|
+
}, On = ["id"], Ot = {
|
|
2556
2552
|
__name: "BsDropdownWithToggle",
|
|
2557
2553
|
props: {
|
|
2558
2554
|
anchorId: {
|
|
@@ -2606,6 +2602,10 @@ const on = {
|
|
|
2606
2602
|
type: Array,
|
|
2607
2603
|
default: () => []
|
|
2608
2604
|
},
|
|
2605
|
+
showBadgeCount: {
|
|
2606
|
+
type: Boolean,
|
|
2607
|
+
default: !1
|
|
2608
|
+
},
|
|
2609
2609
|
toggleId: {
|
|
2610
2610
|
type: String
|
|
2611
2611
|
},
|
|
@@ -2624,64 +2624,65 @@ const on = {
|
|
|
2624
2624
|
},
|
|
2625
2625
|
emits: ["update:selectedOptions", "update:selectedOption", "toggled", "close", "check-option", "uncheck-option"],
|
|
2626
2626
|
setup(e, { emit: a }) {
|
|
2627
|
-
const t = e, l = a;
|
|
2628
|
-
let
|
|
2629
|
-
const [
|
|
2630
|
-
function v() {
|
|
2631
|
-
const A = document.activeElement;
|
|
2632
|
-
return !A || A.tagName === "BODY" || A.id === f.value;
|
|
2633
|
-
}
|
|
2627
|
+
const t = e, l = a, n = f(() => t.selectedOptions.length);
|
|
2628
|
+
let i = null;
|
|
2629
|
+
const [d, o] = Z(2), s = I(!1), r = () => i || (i = document.getElementById(v.value)), m = f(() => Je(async () => await (t.multiselect ? Promise.resolve().then(() => Pn) : Promise.resolve().then(() => En)))), h = f(() => t.optionsId || o.value), v = f(() => t.toggleId || d.value);
|
|
2634
2630
|
function g() {
|
|
2635
|
-
|
|
2636
|
-
|
|
2631
|
+
const k = document.activeElement;
|
|
2632
|
+
return !k || k.tagName === "BODY" || k.id === h.value;
|
|
2637
2633
|
}
|
|
2638
2634
|
function y() {
|
|
2639
|
-
|
|
2635
|
+
var k, A;
|
|
2636
|
+
s.value = !1, l("close"), g() && ((A = (k = r()) == null ? void 0 : k.focus) == null || A.call(k));
|
|
2640
2637
|
}
|
|
2641
2638
|
function B() {
|
|
2642
|
-
|
|
2639
|
+
s.value && y();
|
|
2643
2640
|
}
|
|
2644
|
-
function
|
|
2645
|
-
|
|
2641
|
+
function p() {
|
|
2642
|
+
s.value = !0;
|
|
2646
2643
|
}
|
|
2647
|
-
function
|
|
2648
|
-
l("
|
|
2644
|
+
function S(k) {
|
|
2645
|
+
l("uncheck-option", k);
|
|
2649
2646
|
}
|
|
2650
|
-
function k
|
|
2651
|
-
l("
|
|
2647
|
+
function C(k) {
|
|
2648
|
+
l("check-option", k);
|
|
2652
2649
|
}
|
|
2653
|
-
function $(
|
|
2654
|
-
|
|
2650
|
+
function $(k) {
|
|
2651
|
+
l("update:selectedOptions", k);
|
|
2655
2652
|
}
|
|
2656
|
-
|
|
2653
|
+
function M(k) {
|
|
2654
|
+
t.multiselect || (l("update:selectedOption", k), y());
|
|
2655
|
+
}
|
|
2656
|
+
return (k, A) => (u(), b("div", {
|
|
2657
2657
|
class: "bs-dropdown-with-toggle",
|
|
2658
|
-
id:
|
|
2658
|
+
id: k.$attrs.id
|
|
2659
2659
|
}, [
|
|
2660
|
-
E(
|
|
2660
|
+
E(k.$slots, "toggle", {
|
|
2661
2661
|
anchorId: e.anchorId,
|
|
2662
|
-
optionsId:
|
|
2663
|
-
toggleId:
|
|
2662
|
+
optionsId: h.value,
|
|
2663
|
+
toggleId: v.value
|
|
2664
2664
|
}, () => [
|
|
2665
|
-
P(
|
|
2666
|
-
"aria-controls":
|
|
2665
|
+
P(Sn, {
|
|
2666
|
+
"aria-controls": h.value,
|
|
2667
2667
|
"aria-expanded": e.open,
|
|
2668
2668
|
disabled: e.disabled,
|
|
2669
|
-
id:
|
|
2669
|
+
id: v.value,
|
|
2670
2670
|
open: e.open,
|
|
2671
|
-
"options-id":
|
|
2671
|
+
"options-id": h.value,
|
|
2672
2672
|
size: e.toggleSize,
|
|
2673
|
-
|
|
2673
|
+
"badge-count": e.showBadgeCount && e.multiselect ? n.value : void 0,
|
|
2674
|
+
onClick: A[0] || (A[0] = (F) => k.$emit("toggled"))
|
|
2674
2675
|
}, {
|
|
2675
2676
|
label: D(() => [
|
|
2676
|
-
E(
|
|
2677
|
-
W(
|
|
2677
|
+
E(k.$slots, "toggle-label", {}, () => [
|
|
2678
|
+
W(O(e.toggleLabel), 1)
|
|
2678
2679
|
])
|
|
2679
2680
|
]),
|
|
2680
2681
|
_: 3
|
|
2681
|
-
}, 8, ["aria-controls", "aria-expanded", "disabled", "id", "open", "options-id", "size"])
|
|
2682
|
+
}, 8, ["aria-controls", "aria-expanded", "disabled", "id", "open", "options-id", "size", "badge-count"])
|
|
2682
2683
|
]),
|
|
2683
2684
|
P(lt, {
|
|
2684
|
-
"anchor-id": e.anchorId ||
|
|
2685
|
+
"anchor-id": e.anchorId || v.value,
|
|
2685
2686
|
breakout: e.breakout,
|
|
2686
2687
|
"helper-text": e.helperText,
|
|
2687
2688
|
"helper-description": e.helperDescription,
|
|
@@ -2690,25 +2691,25 @@ const on = {
|
|
|
2690
2691
|
shown: e.open,
|
|
2691
2692
|
"use-mobile-style": e.useMobileStyle,
|
|
2692
2693
|
width: e.dropdownWidth,
|
|
2693
|
-
onClose:
|
|
2694
|
-
onEnter:
|
|
2694
|
+
onClose: B,
|
|
2695
|
+
onEnter: p
|
|
2695
2696
|
}, {
|
|
2696
2697
|
default: D(() => [
|
|
2697
|
-
P(c(
|
|
2698
|
+
P(c(m), {
|
|
2698
2699
|
label: e.dropdownLabel,
|
|
2699
2700
|
"model-value": e.selectedOption,
|
|
2700
2701
|
options: e.multiselect ? e.options : void 0,
|
|
2701
|
-
"options-id":
|
|
2702
|
+
"options-id": h.value,
|
|
2702
2703
|
"selected-options": e.selectedOptions,
|
|
2703
2704
|
shown: e.open,
|
|
2704
|
-
"onUpdate:modelValue":
|
|
2705
|
-
"onUpdate:selectedOptions":
|
|
2706
|
-
onCheckOption:
|
|
2707
|
-
onUncheckOption:
|
|
2708
|
-
onClose:
|
|
2705
|
+
"onUpdate:modelValue": M,
|
|
2706
|
+
"onUpdate:selectedOptions": $,
|
|
2707
|
+
onCheckOption: C,
|
|
2708
|
+
onUncheckOption: S,
|
|
2709
|
+
onClose: A[1] || (A[1] = (F) => e.multiselect ? void 0 : B())
|
|
2709
2710
|
}, {
|
|
2710
2711
|
default: D(() => [
|
|
2711
|
-
e.multiselect ?
|
|
2712
|
+
e.multiselect ? x("", !0) : (u(), V(qe, {
|
|
2712
2713
|
key: 0,
|
|
2713
2714
|
options: e.options
|
|
2714
2715
|
}, null, 8, ["options"]))
|
|
@@ -2718,9 +2719,9 @@ const on = {
|
|
|
2718
2719
|
]),
|
|
2719
2720
|
_: 1
|
|
2720
2721
|
}, 8, ["anchor-id", "breakout", "helper-text", "helper-description", "position", "shown", "use-mobile-style", "width"])
|
|
2721
|
-
], 8,
|
|
2722
|
+
], 8, On));
|
|
2722
2723
|
}
|
|
2723
|
-
},
|
|
2724
|
+
}, Vt = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2724
2725
|
__name: "BsDropdownCombobox",
|
|
2725
2726
|
props: {
|
|
2726
2727
|
disabled: {
|
|
@@ -2779,16 +2780,16 @@ const on = {
|
|
|
2779
2780
|
},
|
|
2780
2781
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
2781
2782
|
setup(e, { emit: a }) {
|
|
2782
|
-
const t = e, l = a, [n, i, d] = Z(3), o = I(!1), s =
|
|
2783
|
+
const t = e, l = a, [n, i, d] = Z(3), o = I(!1), s = f(() => t.inputId || n.value);
|
|
2783
2784
|
function r(y) {
|
|
2784
2785
|
l("combobox:change", y.target.value), l("update:modelValue", y.target.value);
|
|
2785
2786
|
}
|
|
2786
|
-
function
|
|
2787
|
+
function m() {
|
|
2787
2788
|
l("combobox:change", ""), l("update:modelValue", "");
|
|
2788
2789
|
}
|
|
2789
|
-
function
|
|
2790
|
-
var B,
|
|
2791
|
-
(B = y.relatedTarget) != null && B.closest(`#${d.value}`) || (
|
|
2790
|
+
function h(y) {
|
|
2791
|
+
var B, p;
|
|
2792
|
+
(B = y.relatedTarget) != null && B.closest(`#${d.value}`) || (p = y.relatedTarget) != null && p.closest(`#${i.value}`) || (o.value = !1);
|
|
2792
2793
|
}
|
|
2793
2794
|
function v(y) {
|
|
2794
2795
|
l("combobox:input", y.target.value), t.updateOnInput && l("update:modelValue", y.target.value);
|
|
@@ -2796,7 +2797,7 @@ const on = {
|
|
|
2796
2797
|
function g(y) {
|
|
2797
2798
|
y === !0 || y === !1 ? o.value = y : o.value = !o.value;
|
|
2798
2799
|
}
|
|
2799
|
-
return (y, B) => (u(),
|
|
2800
|
+
return (y, B) => (u(), V(Ot, {
|
|
2800
2801
|
"anchor-id": c(i),
|
|
2801
2802
|
disabled: e.disabled,
|
|
2802
2803
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -2809,12 +2810,12 @@ const on = {
|
|
|
2809
2810
|
"options-id": c(d),
|
|
2810
2811
|
"selected-option": e.modelValue,
|
|
2811
2812
|
"toggle-id": y.$attrs.id || s.value,
|
|
2812
|
-
onClose: B[0] || (B[0] = (
|
|
2813
|
-
onFocusout:
|
|
2814
|
-
"onUpdate:selectedOption": B[1] || (B[1] = (
|
|
2813
|
+
onClose: B[0] || (B[0] = (p) => o.value = !1),
|
|
2814
|
+
onFocusout: h,
|
|
2815
|
+
"onUpdate:selectedOption": B[1] || (B[1] = (p) => y.$emit("update:modelValue", p))
|
|
2815
2816
|
}, {
|
|
2816
2817
|
toggle: D(() => [
|
|
2817
|
-
P(
|
|
2818
|
+
P(gn, z({
|
|
2818
2819
|
id: y.$attrs.id || s.value,
|
|
2819
2820
|
"container-id": c(i),
|
|
2820
2821
|
disabled: e.disabled,
|
|
@@ -2826,7 +2827,7 @@ const on = {
|
|
|
2826
2827
|
placeholder: e.placeholder,
|
|
2827
2828
|
required: e.required,
|
|
2828
2829
|
onChange: r,
|
|
2829
|
-
onClear:
|
|
2830
|
+
onClear: m,
|
|
2830
2831
|
onInput: v,
|
|
2831
2832
|
onToggled: g
|
|
2832
2833
|
}, y.$attrs), null, 16, ["id", "container-id", "disabled", "error", "hint-id", "model-value", "open", "options-id", "placeholder", "required"])
|
|
@@ -2834,7 +2835,7 @@ const on = {
|
|
|
2834
2835
|
_: 1
|
|
2835
2836
|
}, 8, ["anchor-id", "disabled", "dropdown-position", "dropdown-width", "helper-description", "helper-text", "open", "options", "options-id", "selected-option", "toggle-id"]));
|
|
2836
2837
|
}
|
|
2837
|
-
}),
|
|
2838
|
+
}), Do = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2838
2839
|
__name: "BsDropdownComboboxField",
|
|
2839
2840
|
props: {
|
|
2840
2841
|
disabled: {
|
|
@@ -2902,9 +2903,9 @@ const on = {
|
|
|
2902
2903
|
},
|
|
2903
2904
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
2904
2905
|
setup(e, { emit: a }) {
|
|
2905
|
-
const t = e, [l, n] = Z(2), i =
|
|
2906
|
-
return (o, s) => (u(),
|
|
2907
|
-
e.label || o.$slots.label ? (u(),
|
|
2906
|
+
const t = e, [l, n] = Z(2), i = f(() => t.error && t.errorMsg || t.hint || void 0), d = f(() => t.inputId || l.value);
|
|
2907
|
+
return (o, s) => (u(), b("div", z({ "data-component": "bs-dropdown-combobox-field" }, c(Y)(o.$attrs, c(be)).remaining), [
|
|
2908
|
+
e.label || o.$slots.label ? (u(), V(ae, {
|
|
2908
2909
|
key: 0,
|
|
2909
2910
|
for: o.$attrs.id || d.value,
|
|
2910
2911
|
disabled: e.disabled,
|
|
@@ -2912,12 +2913,12 @@ const on = {
|
|
|
2912
2913
|
}, {
|
|
2913
2914
|
default: D(() => [
|
|
2914
2915
|
E(o.$slots, "label", {}, () => [
|
|
2915
|
-
W(
|
|
2916
|
+
W(O(e.label), 1)
|
|
2916
2917
|
])
|
|
2917
2918
|
]),
|
|
2918
2919
|
_: 3
|
|
2919
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
2920
|
-
P(
|
|
2920
|
+
}, 8, ["for", "disabled", "required"])) : x("", !0),
|
|
2921
|
+
P(Vt, z({
|
|
2921
2922
|
disabled: e.disabled,
|
|
2922
2923
|
"display-value": e.displayValue,
|
|
2923
2924
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -2935,17 +2936,17 @@ const on = {
|
|
|
2935
2936
|
"onCombobox:change": s[0] || (s[0] = (r) => o.$emit("combobox:change", r)),
|
|
2936
2937
|
"onCombobox:input": s[1] || (s[1] = (r) => o.$emit("combobox:input", r)),
|
|
2937
2938
|
"onUpdate:modelValue": s[2] || (s[2] = (r) => o.$emit("update:modelValue", r))
|
|
2938
|
-
}, c(Y)(o.$attrs, c(
|
|
2939
|
-
i.value ? (u(),
|
|
2939
|
+
}, c(Y)(o.$attrs, c(be)).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"]),
|
|
2940
|
+
i.value ? (u(), V(ge, {
|
|
2940
2941
|
key: 1,
|
|
2941
2942
|
error: e.error,
|
|
2942
2943
|
"error-msg": e.errorMsg,
|
|
2943
2944
|
hint: e.hint || o.hintDeprecated,
|
|
2944
2945
|
"hint-id": c(n)
|
|
2945
|
-
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) :
|
|
2946
|
+
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
2946
2947
|
], 16));
|
|
2947
2948
|
}
|
|
2948
|
-
}),
|
|
2949
|
+
}), Vn = ["aria-activedescendant", "aria-label", "data-overflow", "id", "tabindex"], Re = {
|
|
2949
2950
|
__name: "BsDropdownOptionList",
|
|
2950
2951
|
props: {
|
|
2951
2952
|
optionsId: {
|
|
@@ -2981,41 +2982,41 @@ const on = {
|
|
|
2981
2982
|
"update:modelValue"
|
|
2982
2983
|
],
|
|
2983
2984
|
setup(e, { expose: a, emit: t }) {
|
|
2984
|
-
const l = e, n = t, i = I(null), d = I(null), o = I(-1), s = I(-1), r = I(null),
|
|
2985
|
-
fe("optionsId",
|
|
2986
|
-
const
|
|
2985
|
+
const l = e, n = t, i = I(null), d = I(null), o = I(-1), s = I(-1), r = I(null), m = I(!1), h = pe("dropdownEnter", I(!1)), v = pe("dropdownAfterEnter", I(!1)), g = pe("dropdownShown", I(!1));
|
|
2986
|
+
fe("optionsId", f(() => l.optionsId)), fe("handleOptionSelect", ye), pa(i, $, { childList: !0 }), me([" ", "Enter", "NumpadEnter"], ke, i), me(["ArrowDown", "ArrowUp", "Home", "End"], Ce);
|
|
2987
|
+
const p = [/^[a-zA-Z0-9]{1}$/], S = {
|
|
2987
2988
|
keys: "",
|
|
2988
2989
|
lastTyped: 0
|
|
2989
2990
|
};
|
|
2990
|
-
me(
|
|
2991
|
+
me(p, (L) => xe(L, S)), H(() => {
|
|
2991
2992
|
$(), J(g.value);
|
|
2992
2993
|
}), j(
|
|
2993
|
-
[
|
|
2994
|
+
[h, () => {
|
|
2994
2995
|
var L;
|
|
2995
2996
|
return (L = r.value) == null ? void 0 : L.length;
|
|
2996
2997
|
}],
|
|
2997
2998
|
([L, R]) => {
|
|
2998
|
-
(L || R > 0) && (
|
|
2999
|
+
(L || R > 0) && (m.value = i.value.scrollHeight > i.value.clientHeight);
|
|
2999
3000
|
}
|
|
3000
3001
|
), j(v, (L) => {
|
|
3001
|
-
L && (
|
|
3002
|
+
L && (M(), k());
|
|
3002
3003
|
}), j(g, (L) => J(L));
|
|
3003
|
-
const
|
|
3004
|
+
const C = f(() => l.modelValue || l.selectedValue);
|
|
3004
3005
|
function $() {
|
|
3005
3006
|
r.value = Array.from(
|
|
3006
3007
|
i.value.querySelectorAll('[data-component="bs-dropdown-option"]')
|
|
3007
3008
|
);
|
|
3008
3009
|
}
|
|
3009
|
-
function
|
|
3010
|
+
function M() {
|
|
3010
3011
|
i.value.getBoundingClientRect().bottom > window.innerHeight && i.value.scrollIntoView({ block: "nearest" });
|
|
3011
3012
|
}
|
|
3012
|
-
function
|
|
3013
|
+
function k() {
|
|
3013
3014
|
var L;
|
|
3014
|
-
o.value > -1 && (
|
|
3015
|
+
o.value > -1 && (M(), (L = r.value[o.value]) == null || L.scrollIntoView({ block: "nearest" }));
|
|
3015
3016
|
}
|
|
3016
|
-
function
|
|
3017
|
+
function A() {
|
|
3017
3018
|
var L, R;
|
|
3018
|
-
o.value > -1 && ((L = r.value[o.value]) == null || L.setAttribute("data-active", ""), d.value = (R = r.value[o.value]) == null ? void 0 : R.id,
|
|
3019
|
+
o.value > -1 && ((L = r.value[o.value]) == null || L.setAttribute("data-active", ""), d.value = (R = r.value[o.value]) == null ? void 0 : R.id, k());
|
|
3019
3020
|
}
|
|
3020
3021
|
function F() {
|
|
3021
3022
|
var L;
|
|
@@ -3023,25 +3024,25 @@ const on = {
|
|
|
3023
3024
|
}
|
|
3024
3025
|
function _() {
|
|
3025
3026
|
var L;
|
|
3026
|
-
o.value < 0 && (o.value = 0, d.value = (L = r.value[0]) == null ? void 0 : L.id),
|
|
3027
|
+
o.value < 0 && (o.value = 0, d.value = (L = r.value[0]) == null ? void 0 : L.id), A();
|
|
3027
3028
|
}
|
|
3028
3029
|
function J(L) {
|
|
3029
|
-
L ? ne() :
|
|
3030
|
+
L ? ne() : he();
|
|
3030
3031
|
}
|
|
3031
3032
|
function ne() {
|
|
3032
3033
|
var L, R;
|
|
3033
3034
|
l.multiselect || (s.value = r.value.findIndex(
|
|
3034
|
-
(
|
|
3035
|
+
(q) => q.getAttribute("data-value") === String(C.value)
|
|
3035
3036
|
), !l.multiselect && s.value > -1 && ((L = r.value[s.value]) == null || L.setAttribute("data-selected", ""), (R = r.value[s.value]) == null || R.setAttribute("aria-selected", "true")), o.value = s.value);
|
|
3036
3037
|
}
|
|
3037
|
-
function
|
|
3038
|
+
function he() {
|
|
3038
3039
|
r.value.forEach((L) => {
|
|
3039
3040
|
L.removeAttribute("data-selected"), L.setAttribute("aria-selected", "false");
|
|
3040
3041
|
}), F(), s.value = -1, o.value = -1, d.value = null;
|
|
3041
3042
|
}
|
|
3042
3043
|
function ye(L) {
|
|
3043
|
-
var
|
|
3044
|
-
(
|
|
3044
|
+
var q;
|
|
3045
|
+
(q = L.querySelector("a")) == null || q.click();
|
|
3045
3046
|
let R = L.getAttribute("data-value");
|
|
3046
3047
|
L.getAttribute("data-value-type") === "number" && (R = Number(R)), d.value = L.id, F(), n("optselected", R), n("update:modelValue", R), n("close");
|
|
3047
3048
|
}
|
|
@@ -3084,22 +3085,21 @@ const on = {
|
|
|
3084
3085
|
Se(R);
|
|
3085
3086
|
}
|
|
3086
3087
|
function xe(L, R) {
|
|
3087
|
-
if (!g.value)
|
|
3088
|
-
return;
|
|
3088
|
+
if (!g.value) return;
|
|
3089
3089
|
R.keys = L.timeStamp - R.lastTyped > 500 ? L.key : R.keys + L.key, R.lastTyped = L.timeStamp;
|
|
3090
|
-
const
|
|
3091
|
-
|
|
3090
|
+
const q = r.value.findIndex((K) => K.textContent.replaceAll(/[^a-zA-Z0-9]/g, "").toLowerCase().startsWith(R.keys));
|
|
3091
|
+
q > -1 && Se(q, !1);
|
|
3092
3092
|
}
|
|
3093
3093
|
function Se(L, R = !0) {
|
|
3094
|
-
F(), o.value = L, document.activeElement !== i.value && R ? i.value.focus() :
|
|
3094
|
+
F(), o.value = L, document.activeElement !== i.value && R ? i.value.focus() : A();
|
|
3095
3095
|
}
|
|
3096
3096
|
return a({
|
|
3097
3097
|
activeIndex: o,
|
|
3098
3098
|
optionEls: r,
|
|
3099
3099
|
optionsRef: i,
|
|
3100
3100
|
refreshOptions: $,
|
|
3101
|
-
setCurrentActive:
|
|
3102
|
-
}), (L, R) => (u(),
|
|
3101
|
+
setCurrentActive: A
|
|
3102
|
+
}), (L, R) => (u(), b("ul", {
|
|
3103
3103
|
ref_key: "optionsRef",
|
|
3104
3104
|
ref: i,
|
|
3105
3105
|
"aria-activedescendant": d.value || void 0,
|
|
@@ -3107,24 +3107,22 @@ const on = {
|
|
|
3107
3107
|
"aria-live": "polite",
|
|
3108
3108
|
class: "bs-dropdown-options",
|
|
3109
3109
|
"data-component": "bs-dropdown-option-list",
|
|
3110
|
-
"data-overflow":
|
|
3110
|
+
"data-overflow": m.value,
|
|
3111
3111
|
id: e.optionsId,
|
|
3112
3112
|
role: "listbox",
|
|
3113
3113
|
tabindex: c(g) ? 0 : void 0,
|
|
3114
3114
|
onBlur: F,
|
|
3115
3115
|
onFocus: _,
|
|
3116
|
-
onMousedown: R[0] || (R[0] =
|
|
3116
|
+
onMousedown: R[0] || (R[0] = wt(() => {
|
|
3117
3117
|
}, ["prevent"]))
|
|
3118
3118
|
}, [
|
|
3119
3119
|
E(L.$slots, "default")
|
|
3120
|
-
], 40,
|
|
3120
|
+
], 40, Vn));
|
|
3121
3121
|
}
|
|
3122
|
-
},
|
|
3122
|
+
}, En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3123
3123
|
__proto__: null,
|
|
3124
3124
|
default: Re
|
|
3125
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3126
|
-
qn
|
|
3127
|
-
], Nn = {
|
|
3125
|
+
}, Symbol.toStringTag, { value: "Module" })), Ln = { role: "separator" }, Dn = {
|
|
3128
3126
|
key: 1,
|
|
3129
3127
|
role: "option",
|
|
3130
3128
|
"data-no-hover": "true"
|
|
@@ -3162,12 +3160,12 @@ const on = {
|
|
|
3162
3160
|
"uncheck-option"
|
|
3163
3161
|
],
|
|
3164
3162
|
setup(e, { emit: a }) {
|
|
3165
|
-
const t = e, l = a, n = I(null), i = I([]), d = I([]), o =
|
|
3166
|
-
var B,
|
|
3167
|
-
return ((B = i.value) == null ? void 0 : B.length) && ((
|
|
3168
|
-
}), s =
|
|
3169
|
-
var B,
|
|
3170
|
-
return ((B = i.value) == null ? void 0 : B.length) || ((
|
|
3163
|
+
const t = e, l = a, n = I(null), i = I([]), d = I([]), o = f(() => {
|
|
3164
|
+
var B, p;
|
|
3165
|
+
return ((B = i.value) == null ? void 0 : B.length) && ((p = d.value) == null ? void 0 : p.length);
|
|
3166
|
+
}), s = f(() => {
|
|
3167
|
+
var B, p;
|
|
3168
|
+
return ((B = i.value) == null ? void 0 : B.length) || ((p = d.value) == null ? void 0 : p.length);
|
|
3171
3169
|
});
|
|
3172
3170
|
let r = !1;
|
|
3173
3171
|
j(() => t.options, () => {
|
|
@@ -3177,36 +3175,36 @@ const on = {
|
|
|
3177
3175
|
v,
|
|
3178
3176
|
{ immediate: !0 }
|
|
3179
3177
|
), j(() => t.shown, (B) => {
|
|
3180
|
-
B && t.focusOnOpen && Ae(
|
|
3178
|
+
B && t.focusOnOpen && Ae(m);
|
|
3181
3179
|
});
|
|
3182
|
-
function
|
|
3180
|
+
function m() {
|
|
3183
3181
|
n.value && (n.value.refreshOptions(), n.value.optionsRef.focus());
|
|
3184
3182
|
}
|
|
3185
|
-
function
|
|
3183
|
+
function h() {
|
|
3186
3184
|
n.value && (n.value.refreshOptions(), n.value.setCurrentActive());
|
|
3187
3185
|
}
|
|
3188
3186
|
function v(B = []) {
|
|
3189
|
-
const
|
|
3187
|
+
const p = new Set(B), S = [], C = [];
|
|
3190
3188
|
t.options.forEach(($) => {
|
|
3191
|
-
const
|
|
3192
|
-
|
|
3193
|
-
}), i.value =
|
|
3194
|
-
d.value =
|
|
3195
|
-
r &&
|
|
3189
|
+
const M = { ...$ }, k = `${t.optionsId}-${$.value}-cb`;
|
|
3190
|
+
p.has($.value) ? (M.checkbox = { inputId: k, checked: !0 }, S.push(M)) : (M.checkbox = { inputId: k, checked: !1 }, C.push(M));
|
|
3191
|
+
}), i.value = S, Ae(() => {
|
|
3192
|
+
d.value = C, Ae(() => {
|
|
3193
|
+
r && h(), r = !1;
|
|
3196
3194
|
});
|
|
3197
3195
|
});
|
|
3198
3196
|
}
|
|
3199
3197
|
function g(B = []) {
|
|
3200
|
-
const
|
|
3201
|
-
return t.options.forEach((
|
|
3202
|
-
|
|
3203
|
-
}),
|
|
3198
|
+
const p = new Set(B), S = [];
|
|
3199
|
+
return t.options.forEach((C) => {
|
|
3200
|
+
p.has(C.value) && S.push(C.value);
|
|
3201
|
+
}), S;
|
|
3204
3202
|
}
|
|
3205
3203
|
function y(B) {
|
|
3206
|
-
let
|
|
3207
|
-
t.selectedOptions.includes(B) ? (
|
|
3204
|
+
let p = [];
|
|
3205
|
+
t.selectedOptions.includes(B) ? (p = t.selectedOptions.filter((S) => S !== B), l("uncheck-option", B)) : (p = g([...t.selectedOptions, B]), l("check-option", B)), r = !0, l("update:selectedOptions", p);
|
|
3208
3206
|
}
|
|
3209
|
-
return (B,
|
|
3207
|
+
return (B, p) => (u(), V(Re, {
|
|
3210
3208
|
ref_key: "optlist",
|
|
3211
3209
|
ref: n,
|
|
3212
3210
|
"aria-multiselectable": "true",
|
|
@@ -3218,31 +3216,33 @@ const on = {
|
|
|
3218
3216
|
"onUpdate:modelValue": y
|
|
3219
3217
|
}, {
|
|
3220
3218
|
default: D(() => [
|
|
3221
|
-
s.value ? (u(),
|
|
3219
|
+
s.value ? (u(), b(G, { key: 0 }, [
|
|
3222
3220
|
P(qe, {
|
|
3223
3221
|
options: i.value,
|
|
3224
3222
|
"show-no-options": !1
|
|
3225
3223
|
}, null, 8, ["options"]),
|
|
3226
|
-
ue(
|
|
3224
|
+
ue(w("li", Ln, p[0] || (p[0] = [
|
|
3225
|
+
w("hr", null, null, -1)
|
|
3226
|
+
]), 512), [
|
|
3227
3227
|
[ce, o.value]
|
|
3228
3228
|
]),
|
|
3229
3229
|
P(qe, {
|
|
3230
3230
|
options: d.value,
|
|
3231
3231
|
"show-no-options": !1
|
|
3232
3232
|
}, null, 8, ["options"])
|
|
3233
|
-
], 64)) : (u(),
|
|
3233
|
+
], 64)) : (u(), b("li", Dn, [
|
|
3234
3234
|
E(B.$slots, "no-options", {}, () => [
|
|
3235
|
-
W("No options")
|
|
3235
|
+
p[1] || (p[1] = W("No options"))
|
|
3236
3236
|
])
|
|
3237
3237
|
]))
|
|
3238
3238
|
]),
|
|
3239
3239
|
_: 3
|
|
3240
3240
|
}, 8, ["label", "options-id", "shown"]));
|
|
3241
3241
|
}
|
|
3242
|
-
},
|
|
3242
|
+
}, Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3243
3243
|
__proto__: null,
|
|
3244
3244
|
default: Et
|
|
3245
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3245
|
+
}, Symbol.toStringTag, { value: "Module" })), qn = {
|
|
3246
3246
|
__name: "BsDropdownWithOptionsNew",
|
|
3247
3247
|
props: {
|
|
3248
3248
|
// DROPDOWN PROPS
|
|
@@ -3327,7 +3327,7 @@ const on = {
|
|
|
3327
3327
|
function d() {
|
|
3328
3328
|
l.value && (l.value = !1, t("close"));
|
|
3329
3329
|
}
|
|
3330
|
-
return (o, s) => (u(),
|
|
3330
|
+
return (o, s) => (u(), V(c(lt), {
|
|
3331
3331
|
"anchor-id": e.anchorId,
|
|
3332
3332
|
breakout: e.breakout,
|
|
3333
3333
|
"container-id": e.containerId,
|
|
@@ -3476,11 +3476,11 @@ const on = {
|
|
|
3476
3476
|
"after-leave"
|
|
3477
3477
|
],
|
|
3478
3478
|
setup(e, { emit: a }) {
|
|
3479
|
-
const t = e, l = a, { transition: n } = Le(t), i =
|
|
3480
|
-
function r(
|
|
3481
|
-
l("optselected",
|
|
3479
|
+
const t = e, l = a, { transition: n } = Le(t), i = f(() => t.width === "toggle" ? "anchor" : t.width), d = f(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = f(() => t.toggleId ? t.toggleId : t.anchorId), s = f(() => t.selectedValue || t.modelValue);
|
|
3480
|
+
function r(m) {
|
|
3481
|
+
l("optselected", m), l("update:modelValue", m);
|
|
3482
3482
|
}
|
|
3483
|
-
return (
|
|
3483
|
+
return (m, h) => (u(), V(qn, {
|
|
3484
3484
|
"anchor-id": o.value,
|
|
3485
3485
|
breakout: e.breakout,
|
|
3486
3486
|
"container-id": e.containerId,
|
|
@@ -3495,21 +3495,21 @@ const on = {
|
|
|
3495
3495
|
shown: c(n),
|
|
3496
3496
|
"use-mobile-style": e.useMobileStyle,
|
|
3497
3497
|
width: i.value,
|
|
3498
|
-
onClose:
|
|
3499
|
-
onAfterEnter:
|
|
3500
|
-
onAfterLeave:
|
|
3498
|
+
onClose: h[0] || (h[0] = (v) => l("close")),
|
|
3499
|
+
onAfterEnter: h[1] || (h[1] = (v) => l("after-enter")),
|
|
3500
|
+
onAfterLeave: h[2] || (h[2] = (v) => l("after-leave")),
|
|
3501
3501
|
"onUpdate:modelValue": r
|
|
3502
3502
|
}, {
|
|
3503
3503
|
default: D(() => [
|
|
3504
|
-
E(
|
|
3504
|
+
E(m.$slots, "default")
|
|
3505
3505
|
]),
|
|
3506
3506
|
_: 3
|
|
3507
3507
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "label", "model-value", "options-id", "position", "preloaded", "prevent-tab", "shown", "use-mobile-style", "width"]));
|
|
3508
3508
|
}
|
|
3509
|
-
},
|
|
3509
|
+
}, Mn = ["data-size"], Nn = { class: "bs-empty-state-icon" }, zn = { class: "bs-empty-state-title" }, Fn = {
|
|
3510
3510
|
key: 0,
|
|
3511
3511
|
class: "bs-empty-state-description"
|
|
3512
|
-
},
|
|
3512
|
+
}, Po = {
|
|
3513
3513
|
__name: "BsEmptyState",
|
|
3514
3514
|
props: {
|
|
3515
3515
|
description: {
|
|
@@ -3531,29 +3531,29 @@ const on = {
|
|
|
3531
3531
|
}
|
|
3532
3532
|
},
|
|
3533
3533
|
setup(e) {
|
|
3534
|
-
const a = e, { icon: t } =
|
|
3535
|
-
return (l, n) => (u(),
|
|
3534
|
+
const a = e, { icon: t } = Oe(a, "iconName");
|
|
3535
|
+
return (l, n) => (u(), b("div", {
|
|
3536
3536
|
class: "bs-empty-state",
|
|
3537
3537
|
"data-component": "bs-empty-state",
|
|
3538
3538
|
"data-size": e.size
|
|
3539
3539
|
}, [
|
|
3540
|
-
|
|
3540
|
+
w("div", Nn, [
|
|
3541
3541
|
E(l.$slots, "icon", {}, () => [
|
|
3542
|
-
(u(),
|
|
3542
|
+
(u(), V(te(c(t)), { size: "" }))
|
|
3543
3543
|
])
|
|
3544
3544
|
]),
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
e.size !== "xs" ? (u(),
|
|
3545
|
+
w("div", null, [
|
|
3546
|
+
w("p", zn, O(e.title), 1),
|
|
3547
|
+
e.size !== "xs" ? (u(), b("p", Fn, [
|
|
3548
3548
|
E(l.$slots, "description", {}, () => [
|
|
3549
|
-
W(
|
|
3549
|
+
W(O(e.description), 1)
|
|
3550
3550
|
])
|
|
3551
|
-
])) :
|
|
3551
|
+
])) : x("", !0),
|
|
3552
3552
|
E(l.$slots, "call-to-action")
|
|
3553
3553
|
])
|
|
3554
|
-
], 8,
|
|
3554
|
+
], 8, Mn));
|
|
3555
3555
|
}
|
|
3556
|
-
},
|
|
3556
|
+
}, Rn = ["data-absolute", "data-position", "data-shown", "data-size"], jn = { class: "bs-flyout-close-container" }, qo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3557
3557
|
__name: "BsFlyout",
|
|
3558
3558
|
props: {
|
|
3559
3559
|
absolute: {
|
|
@@ -3589,18 +3589,18 @@ const on = {
|
|
|
3589
3589
|
},
|
|
3590
3590
|
emits: ["close"],
|
|
3591
3591
|
setup(e, { emit: a }) {
|
|
3592
|
-
const t = e, l = a, n = I(null), i =
|
|
3592
|
+
const t = e, l = a, n = I(null), i = f(() => document.getElementById(t.toggleId));
|
|
3593
3593
|
Ct([n, i], d), me(["Escape"], d);
|
|
3594
3594
|
function d() {
|
|
3595
3595
|
t.shown && l("close");
|
|
3596
3596
|
}
|
|
3597
|
-
return (o, s) => (u(),
|
|
3597
|
+
return (o, s) => (u(), V(Pe, {
|
|
3598
3598
|
name: "bs-flyout",
|
|
3599
3599
|
preloaded: e.preloaded,
|
|
3600
3600
|
shown: e.shown
|
|
3601
3601
|
}, {
|
|
3602
3602
|
default: D(() => [
|
|
3603
|
-
|
|
3603
|
+
w("div", z({
|
|
3604
3604
|
ref_key: "flyout",
|
|
3605
3605
|
ref: n,
|
|
3606
3606
|
class: "bs-flyout",
|
|
@@ -3610,23 +3610,23 @@ const on = {
|
|
|
3610
3610
|
"data-shown": e.shown,
|
|
3611
3611
|
"data-size": e.size
|
|
3612
3612
|
}, o.$attrs), [
|
|
3613
|
-
|
|
3614
|
-
|
|
3613
|
+
w("div", jn, [
|
|
3614
|
+
w("button", {
|
|
3615
3615
|
type: "button",
|
|
3616
3616
|
title: "Close",
|
|
3617
3617
|
"aria-label": "Close",
|
|
3618
3618
|
onClick: d
|
|
3619
3619
|
}, [
|
|
3620
|
-
P(c(
|
|
3620
|
+
P(c($e))
|
|
3621
3621
|
])
|
|
3622
3622
|
]),
|
|
3623
3623
|
E(o.$slots, "default")
|
|
3624
|
-
], 16,
|
|
3624
|
+
], 16, Rn)
|
|
3625
3625
|
]),
|
|
3626
3626
|
_: 3
|
|
3627
3627
|
}, 8, ["preloaded", "shown"]));
|
|
3628
3628
|
}
|
|
3629
|
-
}),
|
|
3629
|
+
}), Wn = ["view-box"], Un = ["id"], Gn = ["offset", "stop-color"], Mo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3630
3630
|
__name: "BsIconGradientWrapper",
|
|
3631
3631
|
setup(e) {
|
|
3632
3632
|
const a = I(null), t = I(null), l = [
|
|
@@ -3636,8 +3636,8 @@ const on = {
|
|
|
3636
3636
|
], [n] = Z();
|
|
3637
3637
|
return H(() => {
|
|
3638
3638
|
t.value = a.value.querySelector("svg").getAttribute("viewBox") || "0 0 0 0";
|
|
3639
|
-
}), (i, d) => (u(),
|
|
3640
|
-
|
|
3639
|
+
}), (i, d) => (u(), b(G, null, [
|
|
3640
|
+
w("span", z({
|
|
3641
3641
|
ref_key: "svgWrapperRef",
|
|
3642
3642
|
ref: a,
|
|
3643
3643
|
class: "bs-icon-gradient-wrapper",
|
|
@@ -3645,13 +3645,13 @@ const on = {
|
|
|
3645
3645
|
}, i.$attrs), [
|
|
3646
3646
|
E(i.$slots, "default")
|
|
3647
3647
|
], 16),
|
|
3648
|
-
(u(),
|
|
3648
|
+
(u(), b("svg", {
|
|
3649
3649
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3650
3650
|
"view-box": t.value,
|
|
3651
3651
|
width: "0",
|
|
3652
3652
|
height: "0"
|
|
3653
3653
|
}, [
|
|
3654
|
-
|
|
3654
|
+
w("linearGradient", {
|
|
3655
3655
|
id: c(n),
|
|
3656
3656
|
x1: "0",
|
|
3657
3657
|
y1: "0",
|
|
@@ -3659,16 +3659,16 @@ const on = {
|
|
|
3659
3659
|
y2: "100%",
|
|
3660
3660
|
"gradient-units": "userSpaceOnUse"
|
|
3661
3661
|
}, [
|
|
3662
|
-
(u(),
|
|
3662
|
+
(u(), b(G, null, ee(l, (o) => w("stop", {
|
|
3663
3663
|
key: o.offset,
|
|
3664
3664
|
offset: o.offset,
|
|
3665
3665
|
"stop-color": o.color
|
|
3666
|
-
}, null, 8,
|
|
3667
|
-
], 8,
|
|
3668
|
-
], 8,
|
|
3666
|
+
}, null, 8, Gn)), 64))
|
|
3667
|
+
], 8, Un)
|
|
3668
|
+
], 8, Wn))
|
|
3669
3669
|
], 64));
|
|
3670
3670
|
}
|
|
3671
|
-
}),
|
|
3671
|
+
}), No = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3672
3672
|
__name: "BsInputField",
|
|
3673
3673
|
props: {
|
|
3674
3674
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -3715,13 +3715,13 @@ const on = {
|
|
|
3715
3715
|
},
|
|
3716
3716
|
emits: ["update:modelValue"],
|
|
3717
3717
|
setup(e, { emit: a }) {
|
|
3718
|
-
const t = e, [l, n] = Z(2), i =
|
|
3719
|
-
var r,
|
|
3720
|
-
return ((
|
|
3718
|
+
const t = e, [l, n] = Z(2), i = f(() => be.concat(t.passAttrs.split(",")).concat("type")), d = f(() => {
|
|
3719
|
+
var r, m;
|
|
3720
|
+
return ((m = (r = t.hints) == null ? void 0 : r.join) == null ? void 0 : m.call(r, `
|
|
3721
3721
|
`)) || t.hints;
|
|
3722
|
-
}), o =
|
|
3723
|
-
return (r,
|
|
3724
|
-
e.label || r.$slots.label ? (u(),
|
|
3722
|
+
}), o = f(() => t.error && t.errorMsg || t.hint || d.value || void 0), s = f(() => t.inputId || l.value);
|
|
3723
|
+
return (r, m) => (u(), b("div", z({ "data-component": "bs-input-field" }, c(Y)(r.$attrs, i.value).remaining), [
|
|
3724
|
+
e.label || r.$slots.label ? (u(), V(ae, {
|
|
3725
3725
|
key: 0,
|
|
3726
3726
|
for: r.$attrs.id || s.value,
|
|
3727
3727
|
disabled: e.disabled,
|
|
@@ -3729,11 +3729,11 @@ const on = {
|
|
|
3729
3729
|
}, {
|
|
3730
3730
|
default: D(() => [
|
|
3731
3731
|
E(r.$slots, "label", {}, () => [
|
|
3732
|
-
W(
|
|
3732
|
+
W(O(e.label), 1)
|
|
3733
3733
|
])
|
|
3734
3734
|
]),
|
|
3735
3735
|
_: 3
|
|
3736
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
3736
|
+
}, 8, ["for", "disabled", "required"])) : x("", !0),
|
|
3737
3737
|
P(Ie, z({
|
|
3738
3738
|
disabled: e.disabled,
|
|
3739
3739
|
error: e.error,
|
|
@@ -3743,15 +3743,15 @@ const on = {
|
|
|
3743
3743
|
required: e.required,
|
|
3744
3744
|
type: e.type,
|
|
3745
3745
|
value: e.value || e.modelValue,
|
|
3746
|
-
"onUpdate:modelValue":
|
|
3746
|
+
"onUpdate:modelValue": m[0] || (m[0] = (h) => r.$emit("update:modelValue", h))
|
|
3747
3747
|
}, c(Y)(r.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
|
|
3748
|
-
o.value ? (u(),
|
|
3748
|
+
o.value ? (u(), V(ge, {
|
|
3749
3749
|
key: 1,
|
|
3750
3750
|
error: e.error,
|
|
3751
3751
|
"error-msg": e.errorMsg,
|
|
3752
3752
|
hint: e.hint || d.value,
|
|
3753
3753
|
"hint-id": c(n)
|
|
3754
|
-
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) :
|
|
3754
|
+
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
3755
3755
|
], 16));
|
|
3756
3756
|
}
|
|
3757
3757
|
}), mt = {
|
|
@@ -3822,10 +3822,10 @@ const on = {
|
|
|
3822
3822
|
this.data[e][t[a]] = t;
|
|
3823
3823
|
}));
|
|
3824
3824
|
}
|
|
3825
|
-
},
|
|
3825
|
+
}, Hn = ["id", "aria-controls", "aria-expanded", "aria-label", "disabled"], Kn = { key: 0 }, Yn = {
|
|
3826
3826
|
"aria-hidden": "true",
|
|
3827
3827
|
style: { width: "1.25rem" }
|
|
3828
|
-
},
|
|
3828
|
+
}, Zn = { "aria-hidden": "true" }, zo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3829
3829
|
__name: "BsInputPhone",
|
|
3830
3830
|
props: {
|
|
3831
3831
|
deferValidation: {
|
|
@@ -3888,69 +3888,69 @@ const on = {
|
|
|
3888
3888
|
"Home",
|
|
3889
3889
|
"Tab"
|
|
3890
3890
|
], d = I(null), o = I(1), s = I([]), r = I(null), [
|
|
3891
|
-
|
|
3892
|
-
|
|
3891
|
+
m,
|
|
3892
|
+
h,
|
|
3893
3893
|
v,
|
|
3894
3894
|
g
|
|
3895
|
-
] = Z(4), y = I(!1), B = I(""),
|
|
3895
|
+
] = Z(4), y = I(!1), B = I(""), p = I(""), S = I(!1), C = I(!1), $ = I(!0);
|
|
3896
3896
|
a({
|
|
3897
|
-
validationErr:
|
|
3898
|
-
validationErrMsg:
|
|
3897
|
+
validationErr: S,
|
|
3898
|
+
validationErrMsg: p
|
|
3899
3899
|
});
|
|
3900
|
-
const
|
|
3901
|
-
j(
|
|
3902
|
-
n("update:modelValue",
|
|
3900
|
+
const M = f(() => B.value ? `+${o.value}${B.value}` : ""), k = f(() => `Country code: ${o.value}. Click to change.`), A = f(() => $.value ? l.errorMsg || p.value : ""), F = f(() => l.error || S.value), _ = f(() => l.hint || F.value && A.value), J = f(() => $.value && F.value);
|
|
3901
|
+
j(M, (q) => {
|
|
3902
|
+
n("update:modelValue", q), R(q);
|
|
3903
3903
|
}), j(() => l.modelValue, ne), xe(), H(() => y.value = !0);
|
|
3904
|
-
function ne(
|
|
3905
|
-
|
|
3904
|
+
function ne(q, K) {
|
|
3905
|
+
q === "" && q !== K && (B.value = "");
|
|
3906
3906
|
}
|
|
3907
|
-
function
|
|
3908
|
-
var
|
|
3909
|
-
|
|
3907
|
+
function he() {
|
|
3908
|
+
var q;
|
|
3909
|
+
C.value && (C.value = !1, (q = d.value) == null || q.focus());
|
|
3910
3910
|
}
|
|
3911
|
-
function ye(
|
|
3911
|
+
function ye(q) {
|
|
3912
3912
|
var K;
|
|
3913
|
-
o.value =
|
|
3913
|
+
o.value = q, C.value = !1, (K = d.value) == null || K.focus(), L(q);
|
|
3914
3914
|
}
|
|
3915
3915
|
function ke() {
|
|
3916
3916
|
l.deferValidation && ($.value = !0), n("input-blur");
|
|
3917
3917
|
}
|
|
3918
|
-
function Ce(
|
|
3919
|
-
B.value =
|
|
3918
|
+
function Ce(q) {
|
|
3919
|
+
B.value = q.target.value, l.deferValidation && ($.value = !1);
|
|
3920
3920
|
}
|
|
3921
|
-
function se(
|
|
3921
|
+
function se(q) {
|
|
3922
3922
|
var K, X;
|
|
3923
|
-
!((X = (K =
|
|
3923
|
+
!((X = (K = q.key) == null ? void 0 : K.match) != null && X.call(K, /[0-9]/)) && !i.includes(q.key) && !q.ctrlKey && !q.metaKey && q.preventDefault();
|
|
3924
3924
|
}
|
|
3925
3925
|
function xe() {
|
|
3926
|
-
We.initSourceData(), Se(), L(o.value), R(
|
|
3926
|
+
We.initSourceData(), Se(), L(o.value), R(M.value);
|
|
3927
3927
|
}
|
|
3928
3928
|
function Se() {
|
|
3929
3929
|
var K, X;
|
|
3930
|
-
let
|
|
3931
|
-
|
|
3930
|
+
let q = ut(l.modelValue);
|
|
3931
|
+
q.valid || q.countryCode && ((X = (K = l.modelValue) == null ? void 0 : K.startsWith) != null && X.call(K, "+")) ? (o.value = q.countryCode, B.value = q.number.significant) : B.value = l.modelValue, s.value = We.data.allCountries.map((Te) => ({
|
|
3932
3932
|
...Te,
|
|
3933
3933
|
isSelected: o.value === Te
|
|
3934
3934
|
}));
|
|
3935
3935
|
}
|
|
3936
|
-
function L(
|
|
3937
|
-
r.value = We.getCountryByCountryCode(
|
|
3936
|
+
function L(q) {
|
|
3937
|
+
r.value = We.getCountryByCountryCode(q);
|
|
3938
3938
|
}
|
|
3939
|
-
function R(
|
|
3940
|
-
|
|
3939
|
+
function R(q) {
|
|
3940
|
+
S.value = q ? !ut(q).valid : !1, p.value = S.value ? "Invalid phone number" : "";
|
|
3941
3941
|
}
|
|
3942
|
-
return (
|
|
3942
|
+
return (q, K) => (u(), b("div", z({
|
|
3943
3943
|
class: "bs-input-phone",
|
|
3944
3944
|
"data-component": "bs-input-phone"
|
|
3945
|
-
}, c(Y)(
|
|
3945
|
+
}, c(Y)(q.$attrs, c(be)).remaining), [
|
|
3946
3946
|
P(ae, {
|
|
3947
|
-
for:
|
|
3947
|
+
for: q.$attrs.id || e.inputId || c(g),
|
|
3948
3948
|
required: e.required,
|
|
3949
3949
|
disabled: e.disabled,
|
|
3950
3950
|
class: ie({ "visually-hidden": e.hideLabel })
|
|
3951
3951
|
}, {
|
|
3952
3952
|
default: D(() => [
|
|
3953
|
-
W(
|
|
3953
|
+
W(O(e.label), 1)
|
|
3954
3954
|
]),
|
|
3955
3955
|
_: 1
|
|
3956
3956
|
}, 8, ["for", "required", "disabled", "class"]),
|
|
@@ -3963,31 +3963,31 @@ const on = {
|
|
|
3963
3963
|
default: D(() => {
|
|
3964
3964
|
var X;
|
|
3965
3965
|
return [
|
|
3966
|
-
|
|
3967
|
-
id: c(
|
|
3966
|
+
w("button", {
|
|
3967
|
+
id: c(m),
|
|
3968
3968
|
ref_key: "countryCodesToggle",
|
|
3969
3969
|
ref: d,
|
|
3970
|
-
"aria-controls": c(
|
|
3971
|
-
"aria-expanded":
|
|
3970
|
+
"aria-controls": c(h),
|
|
3971
|
+
"aria-expanded": C.value,
|
|
3972
3972
|
"aria-haspopup": "listbox",
|
|
3973
|
-
"aria-label":
|
|
3973
|
+
"aria-label": k.value,
|
|
3974
3974
|
disabled: e.disabled,
|
|
3975
3975
|
type: "button",
|
|
3976
|
-
onClick: K[0] || (K[0] = (Te) =>
|
|
3976
|
+
onClick: K[0] || (K[0] = (Te) => C.value = !C.value)
|
|
3977
3977
|
}, [
|
|
3978
|
-
|
|
3979
|
-
|
|
3978
|
+
w("span", null, O((X = r.value) == null ? void 0 : X.flag), 1),
|
|
3979
|
+
w("span", null, "+" + O(o.value), 1),
|
|
3980
3980
|
P(c(jt), { size: "sm" })
|
|
3981
|
-
], 8,
|
|
3981
|
+
], 8, Hn),
|
|
3982
3982
|
P(Ie, z({
|
|
3983
|
-
"input-id":
|
|
3983
|
+
"input-id": q.$attrs.id || e.inputId || c(g),
|
|
3984
3984
|
disabled: e.disabled,
|
|
3985
3985
|
"hint-id": c(v),
|
|
3986
3986
|
placeholder: e.placeholder,
|
|
3987
3987
|
value: B.value,
|
|
3988
3988
|
"data-autowidth": "",
|
|
3989
3989
|
type: "tel"
|
|
3990
|
-
}, c(Y)(
|
|
3990
|
+
}, c(Y)(q.$attrs, c(be)).filtered, {
|
|
3991
3991
|
onInput: Ce,
|
|
3992
3992
|
onFocusout: ke,
|
|
3993
3993
|
onKeydown: se
|
|
@@ -3998,45 +3998,45 @@ const on = {
|
|
|
3998
3998
|
}, 8, ["disabled", "error"]),
|
|
3999
3999
|
ue(P(ge, {
|
|
4000
4000
|
error: F.value,
|
|
4001
|
-
"error-msg":
|
|
4001
|
+
"error-msg": A.value,
|
|
4002
4002
|
hint: e.hint,
|
|
4003
4003
|
"hint-id": c(v)
|
|
4004
4004
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
4005
4005
|
[ce, _.value]
|
|
4006
4006
|
]),
|
|
4007
|
-
y.value ? (u(),
|
|
4007
|
+
y.value ? (u(), b("div", Kn, [
|
|
4008
4008
|
P(Lt, {
|
|
4009
|
-
"anchor-id": c(
|
|
4009
|
+
"anchor-id": c(m),
|
|
4010
4010
|
"helper-text": "Country Code",
|
|
4011
4011
|
label: "Country Code",
|
|
4012
4012
|
"model-value": o.value,
|
|
4013
|
-
"options-id": c(
|
|
4013
|
+
"options-id": c(h),
|
|
4014
4014
|
preloaded: "",
|
|
4015
|
-
shown:
|
|
4015
|
+
shown: C.value,
|
|
4016
4016
|
width: "content",
|
|
4017
|
-
onClose:
|
|
4017
|
+
onClose: he,
|
|
4018
4018
|
"onUpdate:modelValue": ye
|
|
4019
4019
|
}, {
|
|
4020
4020
|
default: D(() => [
|
|
4021
|
-
y.value ? (u(!0),
|
|
4021
|
+
y.value ? (u(!0), b(G, { key: 0 }, ee(s.value, (X) => (u(), V(ot, {
|
|
4022
4022
|
"aria-label": X.value,
|
|
4023
4023
|
key: X.value,
|
|
4024
4024
|
value: `${X.value}`,
|
|
4025
4025
|
variant: "2-col"
|
|
4026
4026
|
}, {
|
|
4027
4027
|
default: D(() => [
|
|
4028
|
-
|
|
4029
|
-
|
|
4028
|
+
w("span", Yn, O(X == null ? void 0 : X.flag), 1),
|
|
4029
|
+
w("span", Zn, O(X.label), 1)
|
|
4030
4030
|
]),
|
|
4031
4031
|
_: 2
|
|
4032
|
-
}, 1032, ["aria-label", "value"]))), 128)) :
|
|
4032
|
+
}, 1032, ["aria-label", "value"]))), 128)) : x("", !0)
|
|
4033
4033
|
]),
|
|
4034
4034
|
_: 1
|
|
4035
4035
|
}, 8, ["anchor-id", "model-value", "options-id", "shown"])
|
|
4036
|
-
])) :
|
|
4036
|
+
])) : x("", !0)
|
|
4037
4037
|
], 16));
|
|
4038
4038
|
}
|
|
4039
|
-
}),
|
|
4039
|
+
}), Xn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4040
4040
|
__name: "BsInputSearch",
|
|
4041
4041
|
props: {
|
|
4042
4042
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -4081,15 +4081,15 @@ const on = {
|
|
|
4081
4081
|
},
|
|
4082
4082
|
emits: ["clear", "update:modelValue"],
|
|
4083
4083
|
setup(e, { emit: a }) {
|
|
4084
|
-
const t = e, l =
|
|
4085
|
-
return (i, d) => (u(),
|
|
4084
|
+
const t = e, l = f(() => be.concat(t.passAttrs.split(","))), n = f(() => !t.disabled && !t.hideClear && t.variant !== "filter");
|
|
4085
|
+
return (i, d) => (u(), V(De, z({
|
|
4086
4086
|
class: "bs-input-search",
|
|
4087
4087
|
"data-component": "bs-input-search",
|
|
4088
4088
|
"data-variant": e.variant,
|
|
4089
4089
|
disabled: e.disabled
|
|
4090
4090
|
}, c(Y)(i.$attrs, l.value).remaining), {
|
|
4091
4091
|
default: D(() => [
|
|
4092
|
-
e.hideSearchIcon ?
|
|
4092
|
+
e.hideSearchIcon ? x("", !0) : (u(), V(c(Wt), { key: 0 })),
|
|
4093
4093
|
P(Ie, z({
|
|
4094
4094
|
"data-autowidth": "",
|
|
4095
4095
|
disabled: e.disabled,
|
|
@@ -4099,12 +4099,12 @@ const on = {
|
|
|
4099
4099
|
}, c(Y)(i.$attrs, l.value).filtered, {
|
|
4100
4100
|
"onUpdate:modelValue": d[0] || (d[0] = (o) => i.$emit("update:modelValue", o))
|
|
4101
4101
|
}), null, 16, ["disabled", "input-id", "placeholder", "value"]),
|
|
4102
|
-
ue(
|
|
4102
|
+
ue(w("button", {
|
|
4103
4103
|
title: "Clear",
|
|
4104
4104
|
type: "button",
|
|
4105
4105
|
onClick: d[1] || (d[1] = (o) => i.$emit("clear"))
|
|
4106
4106
|
}, [
|
|
4107
|
-
P(c(
|
|
4107
|
+
P(c($e), { size: "sm" })
|
|
4108
4108
|
], 512), [
|
|
4109
4109
|
[ce, n.value]
|
|
4110
4110
|
])
|
|
@@ -4112,13 +4112,7 @@ const on = {
|
|
|
4112
4112
|
_: 1
|
|
4113
4113
|
}, 16, ["data-variant", "disabled"]));
|
|
4114
4114
|
}
|
|
4115
|
-
}),
|
|
4116
|
-
/* @__PURE__ */ S("stop", { offset: "0%" }),
|
|
4117
|
-
/* @__PURE__ */ S("stop", { offset: "49%" }),
|
|
4118
|
-
/* @__PURE__ */ S("stop", { offset: "100%" })
|
|
4119
|
-
], -1), ol = [
|
|
4120
|
-
ll
|
|
4121
|
-
], ht = {
|
|
4115
|
+
}), Qn = ["data-size", "data-variant"], Jn = ["stroke"], _n = { key: 0 }, bt = {
|
|
4122
4116
|
__name: "BsSpinner",
|
|
4123
4117
|
props: {
|
|
4124
4118
|
label: {
|
|
@@ -4135,7 +4129,7 @@ const on = {
|
|
|
4135
4129
|
}
|
|
4136
4130
|
},
|
|
4137
4131
|
setup(e) {
|
|
4138
|
-
return (a, t) => (u(),
|
|
4132
|
+
return (a, t) => (u(), b("svg", {
|
|
4139
4133
|
class: "bs-spinner",
|
|
4140
4134
|
"data-component": "bs-spinner",
|
|
4141
4135
|
"data-size": e.size,
|
|
@@ -4145,18 +4139,24 @@ const on = {
|
|
|
4145
4139
|
viewBox: "0 0 100 100",
|
|
4146
4140
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4147
4141
|
}, [
|
|
4148
|
-
|
|
4149
|
-
|
|
4142
|
+
w("title", null, O(e.label), 1),
|
|
4143
|
+
w("circle", {
|
|
4150
4144
|
cx: "50",
|
|
4151
4145
|
cy: "50",
|
|
4152
4146
|
pathLength: "100",
|
|
4153
4147
|
r: "45",
|
|
4154
4148
|
stroke: e.variant === "gradient" ? "url(#bs-spinner-gradient)" : void 0
|
|
4155
|
-
}, null, 8,
|
|
4156
|
-
e.variant === "gradient" ? (u(),
|
|
4157
|
-
|
|
4149
|
+
}, null, 8, Jn),
|
|
4150
|
+
e.variant === "gradient" ? (u(), b("defs", _n, t[0] || (t[0] = [
|
|
4151
|
+
w("linearGradient", { id: "bs-spinner-gradient" }, [
|
|
4152
|
+
w("stop", { offset: "0%" }),
|
|
4153
|
+
w("stop", { offset: "49%" }),
|
|
4154
|
+
w("stop", { offset: "100%" })
|
|
4155
|
+
], -1)
|
|
4156
|
+
]))) : x("", !0)
|
|
4157
|
+
], 8, Qn));
|
|
4158
4158
|
}
|
|
4159
|
-
},
|
|
4159
|
+
}, el = ["id"], tl = { style: { display: "flex", "justify-content": "center" } }, al = { style: { display: "flex", "justify-content": "center" } }, Fo = {
|
|
4160
4160
|
__name: "BsInputTypeahead",
|
|
4161
4161
|
props: {
|
|
4162
4162
|
characterThreshold: {
|
|
@@ -4231,143 +4231,143 @@ const on = {
|
|
|
4231
4231
|
const t = e, l = a, n = I(!1), i = I(!1), [d] = Z();
|
|
4232
4232
|
let o = [];
|
|
4233
4233
|
j(() => t.inputValue, () => {
|
|
4234
|
-
i.value ? i.value = !1 :
|
|
4234
|
+
i.value ? i.value = !1 : p();
|
|
4235
4235
|
});
|
|
4236
|
-
const s =
|
|
4236
|
+
const s = f(() => t.typeaheadId || d.value), r = f(() => `${s.value}-input-container`), m = f(() => `${s.value}-input`), h = f(() => `${s.value}-options`), v = f(() => t.multiselect ? Array.isArray(t.optionsValue) ? t.optionsValue : [t.optionsValue] : t.optionsValue), g = f(() => {
|
|
4237
4237
|
if (n.value) {
|
|
4238
|
-
let
|
|
4239
|
-
const
|
|
4240
|
-
return t.inputValue.length >= t.characterThreshold && (
|
|
4238
|
+
let k = t.options;
|
|
4239
|
+
const A = t.inputValue.toLowerCase(), F = t.filterType === "includes" ? "includes" : "startsWith";
|
|
4240
|
+
return t.inputValue.length >= t.characterThreshold && (k = y(k, A, F), k = k.slice(0, t.maxOptions), k = B(k, A, F), o = k), k;
|
|
4241
4241
|
} else
|
|
4242
4242
|
return o;
|
|
4243
4243
|
});
|
|
4244
|
-
function y(
|
|
4245
|
-
return t.internalFiltering ?
|
|
4244
|
+
function y(k, A, F) {
|
|
4245
|
+
return t.internalFiltering ? k.filter((_) => _.label.toLowerCase()[F](A)) : k;
|
|
4246
4246
|
}
|
|
4247
|
-
function B(
|
|
4248
|
-
return
|
|
4247
|
+
function B(k, A, F) {
|
|
4248
|
+
return k.map((_) => {
|
|
4249
4249
|
let J = _.label;
|
|
4250
|
-
if (
|
|
4251
|
-
const ne = F === "includes" ? "gi" : "i",
|
|
4252
|
-
J = _.label.replace(
|
|
4250
|
+
if (A !== "") {
|
|
4251
|
+
const ne = F === "includes" ? "gi" : "i", he = new RegExp(`(${A})`, ne);
|
|
4252
|
+
J = _.label.replace(he, '<span style="color: var(--bs-blue-base)">$1</span>');
|
|
4253
4253
|
}
|
|
4254
4254
|
return { ..._, labelHtml: J };
|
|
4255
4255
|
});
|
|
4256
4256
|
}
|
|
4257
|
-
function
|
|
4257
|
+
function p() {
|
|
4258
4258
|
t.showDropdownOnFocus || t.inputValue.length >= t.characterThreshold ? n.value = !0 : n.value = !1;
|
|
4259
4259
|
}
|
|
4260
|
-
function
|
|
4261
|
-
l("update:inputValue", ""), t.multiselect || l("update:optionsValue", ""), document.getElementById(
|
|
4260
|
+
function S() {
|
|
4261
|
+
l("update:inputValue", ""), t.multiselect || l("update:optionsValue", ""), document.getElementById(m.value).focus();
|
|
4262
4262
|
}
|
|
4263
|
-
function k
|
|
4263
|
+
function C(k) {
|
|
4264
4264
|
i.value = !0;
|
|
4265
|
-
const
|
|
4266
|
-
l("update:inputValue",
|
|
4265
|
+
const A = g.value.find((F) => F.value === k);
|
|
4266
|
+
l("update:inputValue", A.label), l("update:optionsValue", k);
|
|
4267
4267
|
}
|
|
4268
|
-
function $(
|
|
4269
|
-
const
|
|
4270
|
-
l("update:optionsValue",
|
|
4268
|
+
function $(k) {
|
|
4269
|
+
const A = [...v.value, k];
|
|
4270
|
+
l("update:optionsValue", A);
|
|
4271
4271
|
}
|
|
4272
|
-
function
|
|
4273
|
-
const
|
|
4274
|
-
l("update:optionsValue",
|
|
4272
|
+
function M(k) {
|
|
4273
|
+
const A = v.value.filter((F) => F !== k);
|
|
4274
|
+
l("update:optionsValue", A);
|
|
4275
4275
|
}
|
|
4276
|
-
return (
|
|
4277
|
-
e.label ||
|
|
4276
|
+
return (k, A) => (u(), b(G, null, [
|
|
4277
|
+
e.label || k.$slots.label ? (u(), V(ae, {
|
|
4278
4278
|
key: 0,
|
|
4279
|
-
for:
|
|
4279
|
+
for: m.value,
|
|
4280
4280
|
disabled: e.disabled,
|
|
4281
4281
|
required: e.required
|
|
4282
4282
|
}, {
|
|
4283
4283
|
default: D(() => [
|
|
4284
|
-
E(
|
|
4285
|
-
W(
|
|
4284
|
+
E(k.$slots, "label", {}, () => [
|
|
4285
|
+
W(O(e.label), 1)
|
|
4286
4286
|
])
|
|
4287
4287
|
]),
|
|
4288
4288
|
_: 3
|
|
4289
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
4290
|
-
|
|
4289
|
+
}, 8, ["for", "disabled", "required"])) : x("", !0),
|
|
4290
|
+
w("div", {
|
|
4291
4291
|
id: r.value,
|
|
4292
4292
|
class: "typeahead-search-wrapper"
|
|
4293
4293
|
}, [
|
|
4294
|
-
P(
|
|
4295
|
-
"aria-controls":
|
|
4294
|
+
P(Xn, z({
|
|
4295
|
+
"aria-controls": h.value,
|
|
4296
4296
|
"aria-expanded": n.value,
|
|
4297
4297
|
"aria-haspopup": "listbox",
|
|
4298
4298
|
autocomplete: "off",
|
|
4299
4299
|
disabled: e.disabled,
|
|
4300
4300
|
"hide-clear": e.inputValue === "",
|
|
4301
4301
|
"hide-search-icon": e.hideSearchIcon,
|
|
4302
|
-
"input-id":
|
|
4302
|
+
"input-id": m.value,
|
|
4303
4303
|
"pass-attrs": "aria-controls,aria-expanded,role",
|
|
4304
4304
|
placeholder: e.placeholder,
|
|
4305
4305
|
role: "combobox",
|
|
4306
4306
|
value: e.inputValue
|
|
4307
|
-
},
|
|
4308
|
-
onClear:
|
|
4309
|
-
onFocusin:
|
|
4310
|
-
"onUpdate:modelValue":
|
|
4307
|
+
}, k.$attrs, {
|
|
4308
|
+
onClear: S,
|
|
4309
|
+
onFocusin: p,
|
|
4310
|
+
"onUpdate:modelValue": A[0] || (A[0] = (F) => l("update:inputValue", F))
|
|
4311
4311
|
}), null, 16, ["aria-controls", "aria-expanded", "disabled", "hide-clear", "hide-search-icon", "input-id", "placeholder", "value"])
|
|
4312
|
-
], 8,
|
|
4312
|
+
], 8, el),
|
|
4313
4313
|
P(lt, {
|
|
4314
4314
|
"anchor-id": r.value,
|
|
4315
4315
|
preloaded: !0,
|
|
4316
4316
|
shown: n.value,
|
|
4317
4317
|
"use-mobile-style": !1,
|
|
4318
4318
|
width: "toggle",
|
|
4319
|
-
onClose:
|
|
4319
|
+
onClose: A[2] || (A[2] = (F) => n.value = !1)
|
|
4320
4320
|
}, {
|
|
4321
4321
|
default: D(() => [
|
|
4322
|
-
e.multiselect ? (u(),
|
|
4322
|
+
e.multiselect ? (u(), V(Et, {
|
|
4323
4323
|
key: 0,
|
|
4324
4324
|
"focus-on-open": !1,
|
|
4325
4325
|
label: e.label,
|
|
4326
4326
|
options: g.value,
|
|
4327
|
-
"options-id":
|
|
4327
|
+
"options-id": h.value,
|
|
4328
4328
|
"selected-options": v.value,
|
|
4329
4329
|
shown: n.value,
|
|
4330
4330
|
onCheckOption: $,
|
|
4331
|
-
onUncheckOption:
|
|
4331
|
+
onUncheckOption: M
|
|
4332
4332
|
}, Ze({ _: 2 }, [
|
|
4333
4333
|
e.loading ? {
|
|
4334
4334
|
name: "no-options",
|
|
4335
4335
|
fn: D(() => [
|
|
4336
|
-
|
|
4337
|
-
P(
|
|
4336
|
+
w("span", tl, [
|
|
4337
|
+
P(bt, { size: "sm" })
|
|
4338
4338
|
])
|
|
4339
4339
|
]),
|
|
4340
4340
|
key: "0"
|
|
4341
4341
|
} : {
|
|
4342
4342
|
name: "no-options",
|
|
4343
4343
|
fn: D(() => [
|
|
4344
|
-
W("No results found")
|
|
4344
|
+
A[3] || (A[3] = W("No results found"))
|
|
4345
4345
|
]),
|
|
4346
4346
|
key: "1"
|
|
4347
4347
|
}
|
|
4348
|
-
]), 1032, ["label", "options", "options-id", "selected-options", "shown"])) : (u(),
|
|
4348
|
+
]), 1032, ["label", "options", "options-id", "selected-options", "shown"])) : (u(), V(Re, {
|
|
4349
4349
|
key: 1,
|
|
4350
4350
|
label: e.label,
|
|
4351
4351
|
"model-value": v.value,
|
|
4352
|
-
"options-id":
|
|
4352
|
+
"options-id": h.value,
|
|
4353
4353
|
shown: n.value,
|
|
4354
|
-
"onUpdate:modelValue":
|
|
4355
|
-
onClose:
|
|
4354
|
+
"onUpdate:modelValue": C,
|
|
4355
|
+
onClose: A[1] || (A[1] = (F) => n.value = !1)
|
|
4356
4356
|
}, {
|
|
4357
4357
|
default: D(() => [
|
|
4358
4358
|
P(qe, { options: g.value }, Ze({ _: 2 }, [
|
|
4359
4359
|
e.loading ? {
|
|
4360
4360
|
name: "no-options",
|
|
4361
4361
|
fn: D(() => [
|
|
4362
|
-
|
|
4363
|
-
P(
|
|
4362
|
+
w("span", al, [
|
|
4363
|
+
P(bt, { size: "sm" })
|
|
4364
4364
|
])
|
|
4365
4365
|
]),
|
|
4366
4366
|
key: "0"
|
|
4367
4367
|
} : {
|
|
4368
4368
|
name: "no-options",
|
|
4369
4369
|
fn: D(() => [
|
|
4370
|
-
W("No results found")
|
|
4370
|
+
A[4] || (A[4] = W("No results found"))
|
|
4371
4371
|
]),
|
|
4372
4372
|
key: "1"
|
|
4373
4373
|
}
|
|
@@ -4380,13 +4380,7 @@ const on = {
|
|
|
4380
4380
|
}, 8, ["anchor-id", "shown"])
|
|
4381
4381
|
], 64));
|
|
4382
4382
|
}
|
|
4383
|
-
},
|
|
4384
|
-
ul,
|
|
4385
|
-
cl,
|
|
4386
|
-
fl,
|
|
4387
|
-
pl,
|
|
4388
|
-
ml
|
|
4389
|
-
], ti = {
|
|
4383
|
+
}, nl = ["data-size", "data-variant"], Ro = {
|
|
4390
4384
|
__name: "BsLoader",
|
|
4391
4385
|
props: {
|
|
4392
4386
|
size: {
|
|
@@ -4400,14 +4394,20 @@ const on = {
|
|
|
4400
4394
|
}
|
|
4401
4395
|
},
|
|
4402
4396
|
setup(e) {
|
|
4403
|
-
return (a, t) => (u(),
|
|
4397
|
+
return (a, t) => (u(), b("span", {
|
|
4404
4398
|
class: "bs-loader",
|
|
4405
4399
|
"data-size": e.size,
|
|
4406
4400
|
"data-variant": e.variant,
|
|
4407
4401
|
role: "status"
|
|
4408
|
-
},
|
|
4402
|
+
}, t[0] || (t[0] = [
|
|
4403
|
+
w("span", null, null, -1),
|
|
4404
|
+
w("span", null, null, -1),
|
|
4405
|
+
w("span", null, null, -1),
|
|
4406
|
+
w("span", null, null, -1),
|
|
4407
|
+
w("span", { class: "visually-hidden" }, "Loading", -1)
|
|
4408
|
+
]), 8, nl));
|
|
4409
4409
|
}
|
|
4410
|
-
},
|
|
4410
|
+
}, ll = ["data-shown"], ol = {
|
|
4411
4411
|
__name: "BsOverlay",
|
|
4412
4412
|
props: {
|
|
4413
4413
|
shown: {
|
|
@@ -4445,7 +4445,7 @@ const on = {
|
|
|
4445
4445
|
function i() {
|
|
4446
4446
|
n.value ? document.body.setAttribute("data-scroll", "false") : document.body.removeAttribute("data-scroll");
|
|
4447
4447
|
}
|
|
4448
|
-
return (d, o) => (u(),
|
|
4448
|
+
return (d, o) => (u(), V(Pe, {
|
|
4449
4449
|
name: "bs-overlay",
|
|
4450
4450
|
shown: c(n),
|
|
4451
4451
|
preloaded: e.preloaded,
|
|
@@ -4453,15 +4453,15 @@ const on = {
|
|
|
4453
4453
|
onAfterLeave: o[1] || (o[1] = (s) => l("after-leave"))
|
|
4454
4454
|
}, {
|
|
4455
4455
|
default: D(() => [
|
|
4456
|
-
|
|
4456
|
+
w("div", {
|
|
4457
4457
|
class: "bs-overlay",
|
|
4458
4458
|
"data-shown": c(n)
|
|
4459
|
-
}, null, 8,
|
|
4459
|
+
}, null, 8, ll)
|
|
4460
4460
|
]),
|
|
4461
4461
|
_: 1
|
|
4462
4462
|
}, 8, ["shown", "preloaded"]));
|
|
4463
4463
|
}
|
|
4464
|
-
},
|
|
4464
|
+
}, il = ["id", "role", "aria-labelledby", "data-shown"], rl = ["id"], jo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4465
4465
|
__name: "BsModal",
|
|
4466
4466
|
props: {
|
|
4467
4467
|
modalId: {
|
|
@@ -4508,19 +4508,19 @@ const on = {
|
|
|
4508
4508
|
setup(e, { emit: a }) {
|
|
4509
4509
|
const t = e, l = a, { transition: n } = Le(t), [i] = Z();
|
|
4510
4510
|
let d = !1;
|
|
4511
|
-
const o = I(null), s = (
|
|
4512
|
-
o.value &&
|
|
4511
|
+
const o = I(null), s = (h) => {
|
|
4512
|
+
o.value && h.target.closest(".bs-overlay") && l("close", t.modalId);
|
|
4513
4513
|
};
|
|
4514
4514
|
H(() => {
|
|
4515
4515
|
document.addEventListener("click", s);
|
|
4516
|
-
}),
|
|
4516
|
+
}), Be(() => {
|
|
4517
4517
|
document.removeEventListener("click", s);
|
|
4518
4518
|
}), me(["Escape"], () => {
|
|
4519
4519
|
d && l("close", t.modalId);
|
|
4520
4520
|
});
|
|
4521
|
-
const r = () => !t.title && t.closeButton,
|
|
4522
|
-
return (
|
|
4523
|
-
P(
|
|
4521
|
+
const r = () => !t.title && t.closeButton, m = () => t.title && t.closeButton;
|
|
4522
|
+
return (h, v) => (u(), b(G, null, [
|
|
4523
|
+
P(ol, {
|
|
4524
4524
|
shown: c(n),
|
|
4525
4525
|
preloaded: e.preloaded,
|
|
4526
4526
|
"enter-controlled": e.enterControlled,
|
|
@@ -4536,57 +4536,57 @@ const on = {
|
|
|
4536
4536
|
onEnter: v[3] || (v[3] = (g) => zt(d) ? d.value = !0 : d = !0)
|
|
4537
4537
|
}, {
|
|
4538
4538
|
default: D(() => [
|
|
4539
|
-
|
|
4539
|
+
w("div", z({
|
|
4540
4540
|
id: e.modalId,
|
|
4541
4541
|
class: "bs-modal",
|
|
4542
4542
|
"data-component": "bs-modal",
|
|
4543
4543
|
role: e.alert ? "alertdialog" : "dialog",
|
|
4544
|
-
"aria-labelledby": e.title && !
|
|
4544
|
+
"aria-labelledby": e.title && !h.$attrs["aria-label"] ? c(i) : void 0,
|
|
4545
4545
|
"aria-modal": "true"
|
|
4546
|
-
},
|
|
4546
|
+
}, h.$attrs, {
|
|
4547
4547
|
ref_key: "modalRef",
|
|
4548
4548
|
ref: o,
|
|
4549
4549
|
"data-shown": c(n)
|
|
4550
4550
|
}), [
|
|
4551
|
-
e.title || e.closeButton ? (u(),
|
|
4551
|
+
e.title || e.closeButton ? (u(), b("header", {
|
|
4552
4552
|
key: 0,
|
|
4553
4553
|
class: ie({
|
|
4554
4554
|
"only-close-button-modal-header": r,
|
|
4555
|
-
"modal-header":
|
|
4555
|
+
"modal-header": m
|
|
4556
4556
|
})
|
|
4557
4557
|
}, [
|
|
4558
|
-
e.title ? (u(),
|
|
4558
|
+
e.title ? (u(), b("span", {
|
|
4559
4559
|
key: 0,
|
|
4560
4560
|
id: c(i),
|
|
4561
4561
|
class: "modal-title"
|
|
4562
|
-
},
|
|
4563
|
-
e.closeButton ? (u(),
|
|
4562
|
+
}, O(e.title), 9, rl)) : x("", !0),
|
|
4563
|
+
e.closeButton ? (u(), b("button", {
|
|
4564
4564
|
key: 1,
|
|
4565
4565
|
type: "button",
|
|
4566
4566
|
title: "Close Modal",
|
|
4567
4567
|
"aria-label": "Close Modal",
|
|
4568
4568
|
onClick: v[0] || (v[0] = (g) => l("close", e.modalId))
|
|
4569
4569
|
}, [
|
|
4570
|
-
P(c(
|
|
4571
|
-
])) :
|
|
4572
|
-
], 2)) :
|
|
4573
|
-
E(
|
|
4574
|
-
], 16,
|
|
4570
|
+
P(c($e), { class: "close-button" })
|
|
4571
|
+
])) : x("", !0)
|
|
4572
|
+
], 2)) : x("", !0),
|
|
4573
|
+
E(h.$slots, "default")
|
|
4574
|
+
], 16, il)
|
|
4575
4575
|
]),
|
|
4576
4576
|
_: 3
|
|
4577
4577
|
}, 8, ["preloaded", "shown"])
|
|
4578
4578
|
], 64));
|
|
4579
4579
|
}
|
|
4580
|
-
}),
|
|
4580
|
+
}), sl = ["data-variant", "data-fixed"], dl = {
|
|
4581
4581
|
key: 0,
|
|
4582
4582
|
class: "bs-pagination-carets"
|
|
4583
|
-
},
|
|
4583
|
+
}, ul = ["aria-label", "title", "disabled"], cl = { key: 0 }, fl = ["aria-label", "title", "disabled"], pl = { key: 0 }, ml = {
|
|
4584
4584
|
key: 1,
|
|
4585
4585
|
class: "bs-pagination-page-numbers"
|
|
4586
|
-
},
|
|
4586
|
+
}, bl = ["title", "data-selected", "onClick"], hl = { key: 2 }, vl = { key: 3 }, gl = { class: "bs-pagination-results-numbers" }, yl = ["data-selected", "disabled", "onClick"], Sl = {
|
|
4587
4587
|
key: 5,
|
|
4588
4588
|
class: "bs-pagination-carets"
|
|
4589
|
-
},
|
|
4589
|
+
}, wl = ["aria-label", "title", "disabled"], Bl = { key: 0 }, $l = ["aria-label", "title", "disabled"], Il = { key: 0 }, Wo = {
|
|
4590
4590
|
__name: "BsPagination",
|
|
4591
4591
|
props: {
|
|
4592
4592
|
// Used for all
|
|
@@ -4676,56 +4676,56 @@ const on = {
|
|
|
4676
4676
|
H(() => {
|
|
4677
4677
|
i.value ? n.value = i.value : t.variant === "results" ? n.value = B.value[0] : n.value = 1;
|
|
4678
4678
|
});
|
|
4679
|
-
const i =
|
|
4680
|
-
j(() => t.selection, (
|
|
4681
|
-
n.value =
|
|
4682
|
-
}), j(() => t.modelValue, (
|
|
4683
|
-
n.value =
|
|
4684
|
-
}), j(n, (
|
|
4685
|
-
|
|
4679
|
+
const i = f(() => t.modelValue || t.selection);
|
|
4680
|
+
j(() => t.selection, (p) => {
|
|
4681
|
+
n.value = p;
|
|
4682
|
+
}), j(() => t.modelValue, (p) => {
|
|
4683
|
+
n.value = p;
|
|
4684
|
+
}), j(n, (p, S) => {
|
|
4685
|
+
S !== null && (l("selchange", p), l("update:modelValue", p));
|
|
4686
4686
|
});
|
|
4687
|
-
const d =
|
|
4687
|
+
const d = f(() => {
|
|
4688
4688
|
if (t.variant === "group")
|
|
4689
4689
|
return Math.ceil(t.itemsCount / t.itemsPerGroup);
|
|
4690
4690
|
if (t.variant === "base")
|
|
4691
4691
|
return t.pageCount;
|
|
4692
|
-
}), o =
|
|
4692
|
+
}), o = f(() => t.variant === "base" ? t.centerDisplay === "text" ? "group" : void 0 : t.variant);
|
|
4693
4693
|
function s() {
|
|
4694
4694
|
n.value = 1;
|
|
4695
4695
|
}
|
|
4696
4696
|
function r() {
|
|
4697
4697
|
n.value = Math.max(n.value - 1, 1);
|
|
4698
4698
|
}
|
|
4699
|
-
function
|
|
4699
|
+
function m() {
|
|
4700
4700
|
n.value = Math.min(
|
|
4701
4701
|
n.value + 1,
|
|
4702
4702
|
d.value
|
|
4703
4703
|
);
|
|
4704
4704
|
}
|
|
4705
|
-
function
|
|
4705
|
+
function h() {
|
|
4706
4706
|
n.value = d.value;
|
|
4707
4707
|
}
|
|
4708
|
-
const v =
|
|
4708
|
+
const v = f(() => {
|
|
4709
4709
|
if (t.pageCount <= t.pageRange)
|
|
4710
4710
|
return [...Array(t.pageCount + 1).keys()].slice(1);
|
|
4711
|
-
const
|
|
4712
|
-
let
|
|
4713
|
-
|
|
4714
|
-
for (let
|
|
4715
|
-
|
|
4716
|
-
return $ < t.pageCount - 1 &&
|
|
4717
|
-
}), g =
|
|
4718
|
-
const
|
|
4719
|
-
return `${t.centerLabel ?? "Results"} ${
|
|
4720
|
-
}), B =
|
|
4721
|
-
return (
|
|
4711
|
+
const p = [1], S = (t.pageRange - 1) / 2;
|
|
4712
|
+
let C = n.value - S, $ = n.value + S;
|
|
4713
|
+
C < 1 && ($ += 1 - C, C = 1), $ > t.pageCount && (C -= $ - t.pageCount, $ = t.pageCount), C = Math.max(C, 2), $ = Math.min($, t.pageCount - 1), C > 2 && p.push(t.breakText);
|
|
4714
|
+
for (let M = C; M <= $; M++)
|
|
4715
|
+
p.push(M);
|
|
4716
|
+
return $ < t.pageCount - 1 && p.push(t.breakText), p.push(t.pageCount), p;
|
|
4717
|
+
}), g = f(() => `${t.centerLabel ?? "Page"} ${n.value} of ${d.value}`), y = f(() => {
|
|
4718
|
+
const p = (n.value - 1) * t.itemsPerGroup + 1, S = Math.min(p - 1 + t.itemsPerGroup, t.itemsCount);
|
|
4719
|
+
return `${t.centerLabel ?? "Results"} ${p} - ${S} of ${t.itemsCount}`;
|
|
4720
|
+
}), B = f(() => t.resultsIncrements.split(",").map((p) => parseInt(p)));
|
|
4721
|
+
return (p, S) => (u(), b("div", {
|
|
4722
4722
|
class: "bs-pagination",
|
|
4723
4723
|
"data-component": "bs-pagination",
|
|
4724
4724
|
"data-variant": o.value,
|
|
4725
4725
|
"data-fixed": t.fixed
|
|
4726
4726
|
}, [
|
|
4727
|
-
e.variant === "base" || e.variant === "group" ? (u(),
|
|
4728
|
-
e.showFirstLastButtons ? (u(),
|
|
4727
|
+
e.variant === "base" || e.variant === "group" ? (u(), b("div", dl, [
|
|
4728
|
+
e.showFirstLastButtons ? (u(), b("button", {
|
|
4729
4729
|
key: 0,
|
|
4730
4730
|
type: "button",
|
|
4731
4731
|
class: ie(e.firstPageText ? "bs-pagination-word-caret" : void 0),
|
|
@@ -4735,9 +4735,9 @@ const on = {
|
|
|
4735
4735
|
onClick: s
|
|
4736
4736
|
}, [
|
|
4737
4737
|
P(c(Ut)),
|
|
4738
|
-
e.firstPageText ? (u(),
|
|
4739
|
-
], 10,
|
|
4740
|
-
|
|
4738
|
+
e.firstPageText ? (u(), b("span", cl, O(e.firstPageText), 1)) : x("", !0)
|
|
4739
|
+
], 10, ul)) : x("", !0),
|
|
4740
|
+
w("button", {
|
|
4741
4741
|
type: "button",
|
|
4742
4742
|
class: ie(e.prevPageText ? "bs-pagination-word-caret" : void 0),
|
|
4743
4743
|
"aria-label": e.prevPageText ? void 0 : "Previous Page",
|
|
@@ -4746,60 +4746,60 @@ const on = {
|
|
|
4746
4746
|
onClick: r
|
|
4747
4747
|
}, [
|
|
4748
4748
|
P(c(It)),
|
|
4749
|
-
e.prevPageText ? (u(),
|
|
4750
|
-
], 10,
|
|
4751
|
-
])) :
|
|
4752
|
-
e.variant === "base" && e.centerDisplay === "numbers" ? (u(),
|
|
4753
|
-
(u(!0),
|
|
4754
|
-
key: `page-${
|
|
4749
|
+
e.prevPageText ? (u(), b("span", pl, O(e.prevPageText), 1)) : x("", !0)
|
|
4750
|
+
], 10, fl)
|
|
4751
|
+
])) : x("", !0),
|
|
4752
|
+
e.variant === "base" && e.centerDisplay === "numbers" ? (u(), b("div", ml, [
|
|
4753
|
+
(u(!0), b(G, null, ee(v.value, (C) => (u(), b("button", {
|
|
4754
|
+
key: `page-${C}-button`,
|
|
4755
4755
|
type: "button",
|
|
4756
|
-
title: `Page ${
|
|
4757
|
-
"data-selected":
|
|
4758
|
-
onClick: ($) => n.value =
|
|
4759
|
-
},
|
|
4760
|
-
])) :
|
|
4761
|
-
t.variant === "base" && t.centerDisplay === "text" ? (u(),
|
|
4762
|
-
t.variant === "group" ? (u(),
|
|
4763
|
-
t.variant === "results" ? (u(),
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
(u(!0),
|
|
4756
|
+
title: `Page ${C}`,
|
|
4757
|
+
"data-selected": C === n.value,
|
|
4758
|
+
onClick: ($) => n.value = C
|
|
4759
|
+
}, O(C), 9, bl))), 128))
|
|
4760
|
+
])) : x("", !0),
|
|
4761
|
+
t.variant === "base" && t.centerDisplay === "text" ? (u(), b("span", hl, O(g.value), 1)) : x("", !0),
|
|
4762
|
+
t.variant === "group" ? (u(), b("span", vl, O(y.value), 1)) : x("", !0),
|
|
4763
|
+
t.variant === "results" ? (u(), b(G, { key: 4 }, [
|
|
4764
|
+
S[0] || (S[0] = w("span", null, "Results Per Page:", -1)),
|
|
4765
|
+
w("div", gl, [
|
|
4766
|
+
(u(!0), b(G, null, ee(B.value, (C) => (u(), b("button", {
|
|
4767
4767
|
type: "button",
|
|
4768
|
-
key: `results-${
|
|
4769
|
-
"data-selected":
|
|
4770
|
-
disabled: n.value ===
|
|
4771
|
-
onClick: ($) => n.value =
|
|
4772
|
-
},
|
|
4768
|
+
key: `results-${C}`,
|
|
4769
|
+
"data-selected": C === n.value,
|
|
4770
|
+
disabled: n.value === C,
|
|
4771
|
+
onClick: ($) => n.value = C
|
|
4772
|
+
}, O(C), 9, yl))), 128))
|
|
4773
4773
|
])
|
|
4774
|
-
], 64)) :
|
|
4775
|
-
e.variant === "base" || e.variant === "group" ? (u(),
|
|
4776
|
-
|
|
4774
|
+
], 64)) : x("", !0),
|
|
4775
|
+
e.variant === "base" || e.variant === "group" ? (u(), b("div", Sl, [
|
|
4776
|
+
w("button", {
|
|
4777
4777
|
type: "button",
|
|
4778
4778
|
class: ie(e.nextPageText ? "bs-pagination-word-caret" : void 0),
|
|
4779
4779
|
"aria-label": e.nextPageText ? void 0 : "Next Page",
|
|
4780
4780
|
title: e.nextPageText,
|
|
4781
4781
|
disabled: n.value === d.value,
|
|
4782
|
-
onClick:
|
|
4782
|
+
onClick: m
|
|
4783
4783
|
}, [
|
|
4784
|
-
e.nextPageText ? (u(),
|
|
4785
|
-
P(c(
|
|
4786
|
-
], 10,
|
|
4787
|
-
e.showFirstLastButtons ? (u(),
|
|
4784
|
+
e.nextPageText ? (u(), b("span", Bl, O(e.nextPageText), 1)) : x("", !0),
|
|
4785
|
+
P(c($t))
|
|
4786
|
+
], 10, wl),
|
|
4787
|
+
e.showFirstLastButtons ? (u(), b("button", {
|
|
4788
4788
|
key: 0,
|
|
4789
4789
|
type: "button",
|
|
4790
4790
|
class: ie(e.lastPageText ? "bs-pagination-word-caret" : void 0),
|
|
4791
4791
|
"aria-label": e.lastPageText ? void 0 : "Last Page",
|
|
4792
4792
|
title: e.lastPageText,
|
|
4793
4793
|
disabled: n.value === d.value,
|
|
4794
|
-
onClick:
|
|
4794
|
+
onClick: h
|
|
4795
4795
|
}, [
|
|
4796
|
-
e.lastPageText ? (u(),
|
|
4796
|
+
e.lastPageText ? (u(), b("span", Il, O(e.lastPageText), 1)) : x("", !0),
|
|
4797
4797
|
P(c(Gt))
|
|
4798
|
-
], 10,
|
|
4799
|
-
])) :
|
|
4800
|
-
], 8,
|
|
4798
|
+
], 10, $l)) : x("", !0)
|
|
4799
|
+
])) : x("", !0)
|
|
4800
|
+
], 8, sl));
|
|
4801
4801
|
}
|
|
4802
|
-
},
|
|
4802
|
+
}, kl = ["data-truncate"], Uo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4803
4803
|
__name: "BsPill",
|
|
4804
4804
|
props: {
|
|
4805
4805
|
active: { type: Boolean, default: !1 },
|
|
@@ -4824,7 +4824,7 @@ const on = {
|
|
|
4824
4824
|
},
|
|
4825
4825
|
setup(e) {
|
|
4826
4826
|
const a = e, { onLinkClick: t } = Fe(a), l = re(), { rootTag: n, attrsToBind: i, hrefUrl: d } = ze(a, l, "span");
|
|
4827
|
-
return (o, s) => (u(),
|
|
4827
|
+
return (o, s) => (u(), V(te(c(n)), z({
|
|
4828
4828
|
class: "bs-pill",
|
|
4829
4829
|
"data-active": e.active,
|
|
4830
4830
|
"data-component": "bs-pill",
|
|
@@ -4834,27 +4834,27 @@ const on = {
|
|
|
4834
4834
|
".href": c(d)
|
|
4835
4835
|
}, c(i), { onClick: c(t) }), {
|
|
4836
4836
|
default: D(() => [
|
|
4837
|
-
|
|
4837
|
+
w("span", { "data-truncate": e.truncate }, [
|
|
4838
4838
|
E(o.$slots, "default")
|
|
4839
|
-
], 8,
|
|
4839
|
+
], 8, kl)
|
|
4840
4840
|
]),
|
|
4841
4841
|
_: 3
|
|
4842
4842
|
}, 48, ["data-active", "data-status", "data-variant", "disabled", ".href", "onClick"]));
|
|
4843
4843
|
}
|
|
4844
|
-
}),
|
|
4844
|
+
}), Cl = {
|
|
4845
4845
|
class: "bs-profile-details",
|
|
4846
4846
|
"data-component": "bs-profile-details"
|
|
4847
|
-
},
|
|
4847
|
+
}, xl = {
|
|
4848
4848
|
class: "bs-profile-name",
|
|
4849
4849
|
"data-size": "sm",
|
|
4850
4850
|
"data-weight": "bold"
|
|
4851
|
-
},
|
|
4851
|
+
}, Tl = {
|
|
4852
4852
|
key: 1,
|
|
4853
4853
|
"data-weight": "bold"
|
|
4854
|
-
},
|
|
4854
|
+
}, Al = { key: 2 }, Ol = { key: 3 }, Vl = {
|
|
4855
4855
|
key: 4,
|
|
4856
4856
|
"data-icon": "true"
|
|
4857
|
-
},
|
|
4857
|
+
}, El = {
|
|
4858
4858
|
__name: "BsProfileDetails",
|
|
4859
4859
|
props: {
|
|
4860
4860
|
profileName: {
|
|
@@ -4871,40 +4871,40 @@ const on = {
|
|
|
4871
4871
|
},
|
|
4872
4872
|
emits: ["action-toggled"],
|
|
4873
4873
|
setup(e, { emit: a }) {
|
|
4874
|
-
const t = e, l = a, { icon: n } =
|
|
4874
|
+
const t = e, l = a, { icon: n } = Oe(t, "actionIcon"), { icon: i } = Oe(t, "miscMetaIcon");
|
|
4875
4875
|
function d(o) {
|
|
4876
4876
|
o.target.tagName === "BUTTON" && (o.preventDefault(), o.stopImmediatePropagation(), l("action-toggled"));
|
|
4877
4877
|
}
|
|
4878
|
-
return (o, s) => (u(),
|
|
4879
|
-
e.action || o.$slots.action ? (u(),
|
|
4878
|
+
return (o, s) => (u(), b("div", Cl, [
|
|
4879
|
+
e.action || o.$slots.action ? (u(), b("button", {
|
|
4880
4880
|
key: 0,
|
|
4881
4881
|
"data-icon": "true",
|
|
4882
4882
|
onClick: d
|
|
4883
4883
|
}, [
|
|
4884
4884
|
E(o.$slots, "action", {}, () => [
|
|
4885
|
-
e.actionIcon ? (u(),
|
|
4885
|
+
e.actionIcon ? (u(), V(te(c(n) ? c(n) : "span"), {
|
|
4886
4886
|
key: 0,
|
|
4887
4887
|
class: "bs-icon"
|
|
4888
|
-
})) :
|
|
4889
|
-
W(" " +
|
|
4888
|
+
})) : x("", !0),
|
|
4889
|
+
W(" " + O(e.action), 1)
|
|
4890
4890
|
])
|
|
4891
|
-
])) :
|
|
4892
|
-
|
|
4893
|
-
e.company ? (u(),
|
|
4894
|
-
e.jobTitle ? (u(),
|
|
4895
|
-
e.email ? (u(),
|
|
4896
|
-
e.miscMeta || o.$slots.misc ? (u(),
|
|
4891
|
+
])) : x("", !0),
|
|
4892
|
+
w("span", xl, O(e.profileName), 1),
|
|
4893
|
+
e.company ? (u(), b("span", Tl, O(e.company), 1)) : x("", !0),
|
|
4894
|
+
e.jobTitle ? (u(), b("span", Al, O(e.jobTitle), 1)) : x("", !0),
|
|
4895
|
+
e.email ? (u(), b("span", Ol, O(e.email), 1)) : x("", !0),
|
|
4896
|
+
e.miscMeta || o.$slots.misc ? (u(), b("span", Vl, [
|
|
4897
4897
|
E(o.$slots, "misc", {}, () => [
|
|
4898
|
-
e.miscMetaIcon ? (u(),
|
|
4898
|
+
e.miscMetaIcon ? (u(), V(te(c(i) ? c(i) : "span"), {
|
|
4899
4899
|
key: 0,
|
|
4900
4900
|
class: "bs-icon"
|
|
4901
|
-
})) :
|
|
4902
|
-
W(" " +
|
|
4901
|
+
})) : x("", !0),
|
|
4902
|
+
W(" " + O(e.miscMeta), 1)
|
|
4903
4903
|
])
|
|
4904
|
-
])) :
|
|
4904
|
+
])) : x("", !0)
|
|
4905
4905
|
]));
|
|
4906
4906
|
}
|
|
4907
|
-
},
|
|
4907
|
+
}, Go = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4908
4908
|
__name: "BsProfile",
|
|
4909
4909
|
props: {
|
|
4910
4910
|
layout: {
|
|
@@ -4935,7 +4935,7 @@ const on = {
|
|
|
4935
4935
|
emits: ["action-toggled"],
|
|
4936
4936
|
setup(e, { emit: a }) {
|
|
4937
4937
|
const t = e, l = a, n = re(), { onLinkClick: i } = Fe(t), { rootTag: d, attrsToBind: o, hrefUrl: s } = ze(t, n, "div");
|
|
4938
|
-
return (r,
|
|
4938
|
+
return (r, m) => (u(), V(te(c(d)), z({
|
|
4939
4939
|
class: "bs-profile",
|
|
4940
4940
|
".href": c(s),
|
|
4941
4941
|
"data-component": "bs-profile",
|
|
@@ -4949,7 +4949,7 @@ const on = {
|
|
|
4949
4949
|
"profile-name": e.profileName,
|
|
4950
4950
|
"use-alt-text": !1
|
|
4951
4951
|
}, null, 8, ["src", "size", "initials", "profile-name"]),
|
|
4952
|
-
P(
|
|
4952
|
+
P(El, {
|
|
4953
4953
|
"profile-name": e.profileName,
|
|
4954
4954
|
company: e.company,
|
|
4955
4955
|
"job-title": e.jobTitle,
|
|
@@ -4958,7 +4958,7 @@ const on = {
|
|
|
4958
4958
|
"action-icon": e.actionIcon,
|
|
4959
4959
|
"misc-meta": e.miscMeta,
|
|
4960
4960
|
"misc-meta-icon": e.miscMetaIcon,
|
|
4961
|
-
onActionToggled:
|
|
4961
|
+
onActionToggled: m[0] || (m[0] = (h) => l("action-toggled"))
|
|
4962
4962
|
}, {
|
|
4963
4963
|
action: D(() => [
|
|
4964
4964
|
E(r.$slots, "action")
|
|
@@ -4974,7 +4974,7 @@ const on = {
|
|
|
4974
4974
|
}
|
|
4975
4975
|
});
|
|
4976
4976
|
function Dt(e) {
|
|
4977
|
-
const a =
|
|
4977
|
+
const a = f(() => {
|
|
4978
4978
|
var n;
|
|
4979
4979
|
switch (e.currentStatus) {
|
|
4980
4980
|
case void 0:
|
|
@@ -4988,7 +4988,7 @@ function Dt(e) {
|
|
|
4988
4988
|
default:
|
|
4989
4989
|
return e.currentStep;
|
|
4990
4990
|
}
|
|
4991
|
-
}), t =
|
|
4991
|
+
}), t = f(() => `${a.value} of ${e.steps.length} completed.`);
|
|
4992
4992
|
function l(n, i) {
|
|
4993
4993
|
return n || (e.currentStatus ? i < e.currentStep ? "complete" : i === e.currentStep ? e.currentStatus : "not-started" : "not-started");
|
|
4994
4994
|
}
|
|
@@ -4998,7 +4998,7 @@ function Dt(e) {
|
|
|
4998
4998
|
getStatus: l
|
|
4999
4999
|
};
|
|
5000
5000
|
}
|
|
5001
|
-
const
|
|
5001
|
+
const Ll = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Dl = ["data-status"], Ho = {
|
|
5002
5002
|
__name: "BsProgressBar",
|
|
5003
5003
|
props: {
|
|
5004
5004
|
/** @type {Status} */
|
|
@@ -5027,7 +5027,7 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5027
5027
|
},
|
|
5028
5028
|
setup(e) {
|
|
5029
5029
|
const a = e, { progressStep: t, progressText: l, getStatus: n } = Dt(a);
|
|
5030
|
-
return (i, d) => (u(),
|
|
5030
|
+
return (i, d) => (u(), b("div", {
|
|
5031
5031
|
"aria-valuemax": e.steps.length,
|
|
5032
5032
|
"aria-valuenow": c(t),
|
|
5033
5033
|
"aria-valuetext": c(l),
|
|
@@ -5035,18 +5035,18 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5035
5035
|
"data-component": "bs-progress-bar",
|
|
5036
5036
|
role: "progressbar"
|
|
5037
5037
|
}, [
|
|
5038
|
-
(u(!0),
|
|
5038
|
+
(u(!0), b(G, null, ee(e.steps, (o, s) => (u(), b("div", {
|
|
5039
5039
|
class: "bs-step-item",
|
|
5040
5040
|
"data-status": c(n)(o.status, s),
|
|
5041
5041
|
"data-variant": "progress",
|
|
5042
5042
|
key: o.id || o.label,
|
|
5043
5043
|
role: "status"
|
|
5044
5044
|
}, [
|
|
5045
|
-
|
|
5046
|
-
], 8,
|
|
5047
|
-
], 8,
|
|
5045
|
+
w("span", null, O(o.label || o) + " : " + O(c(n)(o.status, s) || "not started"), 1)
|
|
5046
|
+
], 8, Dl))), 128))
|
|
5047
|
+
], 8, Ll));
|
|
5048
5048
|
}
|
|
5049
|
-
},
|
|
5049
|
+
}, Pl = ["data-disabled", "data-error", "data-size"], ql = ["checked", "disabled", "id", "required", "value", "data-error"], Ko = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5050
5050
|
__name: "BsRadio",
|
|
5051
5051
|
props: {
|
|
5052
5052
|
label: {
|
|
@@ -5090,15 +5090,15 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5090
5090
|
},
|
|
5091
5091
|
emits: ["update:modelValue"],
|
|
5092
5092
|
setup(e, { emit: a }) {
|
|
5093
|
-
const t = e, [l] = Z(), n =
|
|
5094
|
-
return (o, s) => (u(),
|
|
5093
|
+
const t = e, [l] = Z(), n = f(() => et.concat(t.passAttrs.split(","))), i = f(() => t.inputId || l.value), d = f(() => t.checked || t.modelValue && t.modelValue === t.value);
|
|
5094
|
+
return (o, s) => (u(), b("div", z({
|
|
5095
5095
|
class: "bs-boolean",
|
|
5096
5096
|
"data-component": "bs-radio",
|
|
5097
5097
|
"data-disabled": e.disabled,
|
|
5098
5098
|
"data-error": e.error,
|
|
5099
5099
|
"data-size": e.size
|
|
5100
5100
|
}, c(Y)(o.$attrs, n.value).remaining), [
|
|
5101
|
-
|
|
5101
|
+
w("input", z({
|
|
5102
5102
|
checked: d.value,
|
|
5103
5103
|
disabled: e.disabled,
|
|
5104
5104
|
id: o.$attrs.id || i.value,
|
|
@@ -5108,8 +5108,8 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5108
5108
|
"data-error": e.error
|
|
5109
5109
|
}, c(Y)(o.$attrs, n.value).filtered, {
|
|
5110
5110
|
onChange: s[0] || (s[0] = (r) => o.$emit("update:modelValue", r.target.value))
|
|
5111
|
-
}), null, 16,
|
|
5112
|
-
e.label || o.$slots.label ? (u(),
|
|
5111
|
+
}), null, 16, ql),
|
|
5112
|
+
e.label || o.$slots.label ? (u(), V(ae, {
|
|
5113
5113
|
key: 0,
|
|
5114
5114
|
for: o.$attrs.id || i.value,
|
|
5115
5115
|
disabled: e.disabled,
|
|
@@ -5117,14 +5117,14 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5117
5117
|
}, {
|
|
5118
5118
|
default: D(() => [
|
|
5119
5119
|
E(o.$slots, "label", {}, () => [
|
|
5120
|
-
W(
|
|
5120
|
+
W(O(e.label), 1)
|
|
5121
5121
|
])
|
|
5122
5122
|
]),
|
|
5123
5123
|
_: 3
|
|
5124
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
5125
|
-
], 16,
|
|
5124
|
+
}, 8, ["for", "disabled", "required"])) : x("", !0)
|
|
5125
|
+
], 16, Pl));
|
|
5126
5126
|
}
|
|
5127
|
-
}),
|
|
5127
|
+
}), Ml = ["id", "disabled", "required", "data-error", "value"], Nl = {
|
|
5128
5128
|
__name: "BsSelect",
|
|
5129
5129
|
props: {
|
|
5130
5130
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -5137,8 +5137,8 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5137
5137
|
},
|
|
5138
5138
|
emits: ["update:modelValue"],
|
|
5139
5139
|
setup(e, { emit: a }) {
|
|
5140
|
-
const t = e, l =
|
|
5141
|
-
return (n, i) => (u(),
|
|
5140
|
+
const t = e, l = f(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
5141
|
+
return (n, i) => (u(), b("select", z({
|
|
5142
5142
|
id: n.$attrs.id || e.inputId,
|
|
5143
5143
|
class: "bs-select",
|
|
5144
5144
|
"data-component": "bs-select",
|
|
@@ -5150,9 +5150,9 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5150
5150
|
onChange: i[0] || (i[0] = (d) => n.$emit("update:modelValue", d.target.value))
|
|
5151
5151
|
}), [
|
|
5152
5152
|
E(n.$slots, "default")
|
|
5153
|
-
], 16,
|
|
5153
|
+
], 16, Ml));
|
|
5154
5154
|
}
|
|
5155
|
-
},
|
|
5155
|
+
}, zl = ["selected", "disabled"], Fl = ["disabled", "selected", "value"], Yo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5156
5156
|
__name: "BsSelectField",
|
|
5157
5157
|
props: {
|
|
5158
5158
|
data: {
|
|
@@ -5196,13 +5196,13 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5196
5196
|
modelValue: [String, Number]
|
|
5197
5197
|
},
|
|
5198
5198
|
setup(e) {
|
|
5199
|
-
const a = e, [t, l] = Z(2), n =
|
|
5200
|
-
var r,
|
|
5201
|
-
return ((
|
|
5199
|
+
const a = e, [t, l] = Z(2), n = f(() => Ma.concat(a.passAttrs.split(","))), i = f(() => {
|
|
5200
|
+
var r, m;
|
|
5201
|
+
return ((m = (r = a.hints) == null ? void 0 : r.join) == null ? void 0 : m.call(r, `
|
|
5202
5202
|
`)) || a.hints;
|
|
5203
|
-
}), d =
|
|
5204
|
-
return (r,
|
|
5205
|
-
e.label || r.$slots.label ? (u(),
|
|
5203
|
+
}), d = f(() => a.error && a.errorMsg || a.hint || i.value || void 0), o = f(() => a.inputId || t.value), s = f(() => a.value || a.modelValue);
|
|
5204
|
+
return (r, m) => (u(), b("div", z({ "data-component": "bs-select-field" }, c(Y)(r.$attrs, n.value).remaining), [
|
|
5205
|
+
e.label || r.$slots.label ? (u(), V(ae, {
|
|
5206
5206
|
key: 0,
|
|
5207
5207
|
for: r.$attrs.id || o.value,
|
|
5208
5208
|
disabled: e.disabled,
|
|
@@ -5210,46 +5210,46 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5210
5210
|
}, {
|
|
5211
5211
|
default: D(() => [
|
|
5212
5212
|
E(r.$slots, "label", {}, () => [
|
|
5213
|
-
W(
|
|
5213
|
+
W(O(e.label), 1)
|
|
5214
5214
|
])
|
|
5215
5215
|
]),
|
|
5216
5216
|
_: 3
|
|
5217
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
5218
|
-
P(
|
|
5217
|
+
}, 8, ["for", "disabled", "required"])) : x("", !0),
|
|
5218
|
+
P(Nl, z({
|
|
5219
5219
|
disabled: e.disabled,
|
|
5220
5220
|
error: e.error,
|
|
5221
5221
|
"hint-id": c(l),
|
|
5222
5222
|
"input-id": r.$attrs.id || o.value,
|
|
5223
5223
|
required: e.required,
|
|
5224
5224
|
value: s.value,
|
|
5225
|
-
"onUpdate:modelValue":
|
|
5225
|
+
"onUpdate:modelValue": m[0] || (m[0] = (h) => r.$emit("update:modelValue", h))
|
|
5226
5226
|
}, c(Y)(r.$attrs, n.value).filtered), {
|
|
5227
5227
|
default: D(() => [
|
|
5228
|
-
|
|
5228
|
+
w("option", {
|
|
5229
5229
|
selected: !s.value,
|
|
5230
5230
|
value: "",
|
|
5231
5231
|
disabled: !!s.value
|
|
5232
|
-
},
|
|
5233
|
-
(u(!0),
|
|
5234
|
-
key:
|
|
5235
|
-
disabled:
|
|
5236
|
-
selected: s.value ===
|
|
5237
|
-
value:
|
|
5238
|
-
},
|
|
5232
|
+
}, O(e.disabled ? "" : e.placeholder), 9, zl),
|
|
5233
|
+
(u(!0), b(G, null, ee(e.data, (h) => (u(), b("option", {
|
|
5234
|
+
key: h.value,
|
|
5235
|
+
disabled: h.disabled,
|
|
5236
|
+
selected: s.value === h.value,
|
|
5237
|
+
value: h.value
|
|
5238
|
+
}, O(h.label), 9, Fl))), 128))
|
|
5239
5239
|
]),
|
|
5240
5240
|
_: 1
|
|
5241
5241
|
}, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
|
|
5242
|
-
d.value ? (u(),
|
|
5242
|
+
d.value ? (u(), V(ge, {
|
|
5243
5243
|
key: 1,
|
|
5244
5244
|
"data-disabled": e.disabled,
|
|
5245
5245
|
error: e.error,
|
|
5246
5246
|
"error-msg": e.errorMsg,
|
|
5247
5247
|
hint: e.hint || i.value,
|
|
5248
5248
|
"hint-id": c(l)
|
|
5249
|
-
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) :
|
|
5249
|
+
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
5250
5250
|
], 16));
|
|
5251
5251
|
}
|
|
5252
|
-
}),
|
|
5252
|
+
}), Rl = ["id", "name", "value"], jl = ["aria-controls", "aria-describedby", "aria-expanded", "aria-invalid", "aria-label", "data-cy", "data-disabled", "data-error", "data-open", "data-placeholder", "data-required", "disabled", "id"], Zo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5253
5253
|
__name: "BsSelectWithDropdown",
|
|
5254
5254
|
props: {
|
|
5255
5255
|
breakout: {
|
|
@@ -5325,15 +5325,15 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5325
5325
|
},
|
|
5326
5326
|
emits: ["update:model-value"],
|
|
5327
5327
|
setup(e, { emit: a }) {
|
|
5328
|
-
const t = e, l = a, [n, i] = Z(2), d = re(), o = I(!1), s =
|
|
5328
|
+
const t = e, l = a, [n, i] = Z(2), d = re(), o = I(!1), s = f(() => t.selectId || d.id || n.value), r = f(() => t.optionsId || i.value), m = f(() => {
|
|
5329
5329
|
if (t.modelValue) {
|
|
5330
5330
|
const v = t.options.find((g) => g.value === t.modelValue);
|
|
5331
5331
|
return v ? v.label : t.placeholder;
|
|
5332
5332
|
}
|
|
5333
5333
|
return t.placeholder;
|
|
5334
|
-
}),
|
|
5335
|
-
return (v, g) => (u(),
|
|
5336
|
-
e.label || v.$slots.label ? (u(),
|
|
5334
|
+
}), h = f(() => m.value === t.placeholder);
|
|
5335
|
+
return (v, g) => (u(), b("div", null, [
|
|
5336
|
+
e.label || v.$slots.label ? (u(), V(ae, {
|
|
5337
5337
|
key: 0,
|
|
5338
5338
|
disabled: e.disabled,
|
|
5339
5339
|
for: s.value,
|
|
@@ -5341,19 +5341,19 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5341
5341
|
}, {
|
|
5342
5342
|
default: D(() => [
|
|
5343
5343
|
E(v.$slots, "label", {}, () => [
|
|
5344
|
-
W(
|
|
5344
|
+
W(O(e.label), 1)
|
|
5345
5345
|
])
|
|
5346
5346
|
]),
|
|
5347
5347
|
_: 3
|
|
5348
|
-
}, 8, ["disabled", "for", "required"])) :
|
|
5349
|
-
e.inputName || e.inputId ? (u(),
|
|
5348
|
+
}, 8, ["disabled", "for", "required"])) : x("", !0),
|
|
5349
|
+
e.inputName || e.inputId ? (u(), b("input", {
|
|
5350
5350
|
key: 1,
|
|
5351
5351
|
id: e.inputId,
|
|
5352
5352
|
name: e.inputName,
|
|
5353
5353
|
type: "hidden",
|
|
5354
5354
|
value: e.modelValue
|
|
5355
|
-
}, null, 8,
|
|
5356
|
-
P(
|
|
5355
|
+
}, null, 8, Rl)) : x("", !0),
|
|
5356
|
+
P(Ot, {
|
|
5357
5357
|
"anchor-id": s.value,
|
|
5358
5358
|
breakout: e.breakout,
|
|
5359
5359
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -5370,7 +5370,7 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5370
5370
|
"onUpdate:selectedOption": g[2] || (g[2] = (y) => l("update:model-value", y))
|
|
5371
5371
|
}, {
|
|
5372
5372
|
toggle: D(() => [
|
|
5373
|
-
|
|
5373
|
+
w("button", z({
|
|
5374
5374
|
"aria-controls": r.value,
|
|
5375
5375
|
"aria-describedby": e.hintId,
|
|
5376
5376
|
"aria-expanded": o.value,
|
|
@@ -5378,30 +5378,30 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5378
5378
|
"aria-invalid": e.error,
|
|
5379
5379
|
"aria-label": `${o.value ? "Close" : "Open"} Combobox`,
|
|
5380
5380
|
class: "bs-select",
|
|
5381
|
-
"data-cy":
|
|
5381
|
+
"data-cy": h.value ? "ignore" : void 0,
|
|
5382
5382
|
"data-disabled": e.disabled,
|
|
5383
5383
|
"data-error": e.error,
|
|
5384
5384
|
"data-open": o.value,
|
|
5385
|
-
"data-placeholder":
|
|
5385
|
+
"data-placeholder": h.value,
|
|
5386
5386
|
"data-required": e.required,
|
|
5387
5387
|
disabled: e.disabled,
|
|
5388
5388
|
id: s.value,
|
|
5389
5389
|
role: "combobox"
|
|
5390
5390
|
}, v.$attrs, {
|
|
5391
|
-
onClick: g[0] || (g[0] =
|
|
5391
|
+
onClick: g[0] || (g[0] = wt((y) => o.value = !o.value, ["prevent"]))
|
|
5392
5392
|
}), [
|
|
5393
|
-
|
|
5394
|
-
e.disabled ?
|
|
5393
|
+
w("span", null, O(m.value), 1),
|
|
5394
|
+
e.disabled ? x("", !0) : (u(), V(c(Me), {
|
|
5395
5395
|
key: 0,
|
|
5396
5396
|
size: "md"
|
|
5397
5397
|
}))
|
|
5398
|
-
], 16,
|
|
5398
|
+
], 16, jl)
|
|
5399
5399
|
]),
|
|
5400
5400
|
_: 1
|
|
5401
5401
|
}, 8, ["anchor-id", "breakout", "dropdown-position", "dropdown-width", "helper-description", "helper-text", "open", "options-id", "options", "selected-option", "toggle-id"])
|
|
5402
5402
|
]));
|
|
5403
5403
|
}
|
|
5404
|
-
}),
|
|
5404
|
+
}), Wl = ["data-disabled", "data-size"], Ul = ["data-disabled", "data-pending", "data-size"], Gl = ["checked", "disabled", "id"], Hl = ["data-inner-on-label", "data-inner-off-label"], Xo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5405
5405
|
__name: "BsSwitch",
|
|
5406
5406
|
props: {
|
|
5407
5407
|
checked: {
|
|
@@ -5447,14 +5447,14 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5447
5447
|
},
|
|
5448
5448
|
emits: ["update:modelValue"],
|
|
5449
5449
|
setup(e, { emit: a }) {
|
|
5450
|
-
const t = e, l = a, [n] = Z(), i =
|
|
5451
|
-
return (s, r) => (u(),
|
|
5450
|
+
const t = e, l = a, [n] = Z(), i = f(() => et.concat(t.passAttrs.split(","))), d = f(() => t.inputId || n.value), o = f(() => t.checked || t.modelValue);
|
|
5451
|
+
return (s, r) => (u(), b("div", z({
|
|
5452
5452
|
class: "bs-boolean",
|
|
5453
5453
|
"data-component": "bs-switch",
|
|
5454
5454
|
"data-disabled": e.disabled,
|
|
5455
5455
|
"data-size": e.size
|
|
5456
5456
|
}, c(Y)(s.$attrs, i.value).remaining), [
|
|
5457
|
-
e.label || s.$slots.label ? (u(),
|
|
5457
|
+
e.label || s.$slots.label ? (u(), V(ae, {
|
|
5458
5458
|
key: 0,
|
|
5459
5459
|
for: s.$attrs.id || d.value,
|
|
5460
5460
|
disabled: e.disabled,
|
|
@@ -5462,34 +5462,34 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5462
5462
|
}, {
|
|
5463
5463
|
default: D(() => [
|
|
5464
5464
|
E(s.$slots, "label", {}, () => [
|
|
5465
|
-
W(
|
|
5465
|
+
W(O(e.label), 1)
|
|
5466
5466
|
])
|
|
5467
5467
|
]),
|
|
5468
5468
|
_: 3
|
|
5469
|
-
}, 8, ["for", "disabled", "hide"])) :
|
|
5470
|
-
|
|
5469
|
+
}, 8, ["for", "disabled", "hide"])) : x("", !0),
|
|
5470
|
+
w("div", {
|
|
5471
5471
|
class: "bs-switch",
|
|
5472
5472
|
"data-disabled": e.disabled,
|
|
5473
5473
|
"data-pending": e.pending,
|
|
5474
5474
|
"data-size": e.size
|
|
5475
5475
|
}, [
|
|
5476
|
-
|
|
5476
|
+
w("input", z({
|
|
5477
5477
|
checked: o.value,
|
|
5478
5478
|
disabled: e.disabled,
|
|
5479
5479
|
id: s.$attrs.id || d.value,
|
|
5480
5480
|
type: "checkbox"
|
|
5481
5481
|
}, c(Y)(s.$attrs, i.value).filtered, {
|
|
5482
|
-
onChange: r[0] || (r[0] = (
|
|
5483
|
-
}), null, 16,
|
|
5484
|
-
|
|
5482
|
+
onChange: r[0] || (r[0] = (m) => l("update:modelValue", m.target.checked))
|
|
5483
|
+
}), null, 16, Gl),
|
|
5484
|
+
w("span", {
|
|
5485
5485
|
"aria-hidden": "true",
|
|
5486
5486
|
"data-inner-on-label": e.innerOnLabel,
|
|
5487
5487
|
"data-inner-off-label": e.innerOffLabel
|
|
5488
|
-
}, null, 8,
|
|
5489
|
-
], 8,
|
|
5490
|
-
], 16,
|
|
5488
|
+
}, null, 8, Hl)
|
|
5489
|
+
], 8, Ul)
|
|
5490
|
+
], 16, Wl));
|
|
5491
5491
|
}
|
|
5492
|
-
}),
|
|
5492
|
+
}), Kl = ["aria-controls", "aria-selected", "data-hidden"], Qo = {
|
|
5493
5493
|
__name: "BsTab",
|
|
5494
5494
|
props: {
|
|
5495
5495
|
activeTabId: {
|
|
@@ -5506,7 +5506,7 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5506
5506
|
},
|
|
5507
5507
|
emits: ["tabClick"],
|
|
5508
5508
|
setup(e, { emit: a }) {
|
|
5509
|
-
const t = e, l = re(), n = I(), i =
|
|
5509
|
+
const t = e, l = re(), n = I(), i = f(() => t.activeTabId === l.id), d = f(() => t.panelId || `${l.id}-panel`);
|
|
5510
5510
|
function o(r) {
|
|
5511
5511
|
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), s());
|
|
5512
5512
|
}
|
|
@@ -5516,7 +5516,7 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5516
5516
|
n.value.dispatchEvent(r);
|
|
5517
5517
|
}
|
|
5518
5518
|
}
|
|
5519
|
-
return (r,
|
|
5519
|
+
return (r, m) => (u(), b("div", {
|
|
5520
5520
|
"aria-controls": d.value,
|
|
5521
5521
|
"aria-selected": i.value ? "true" : "false",
|
|
5522
5522
|
"data-hidden": e.hidden || void 0,
|
|
@@ -5529,9 +5529,9 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5529
5529
|
onKeydown: o
|
|
5530
5530
|
}, [
|
|
5531
5531
|
E(r.$slots, "default")
|
|
5532
|
-
], 40,
|
|
5532
|
+
], 40, Kl));
|
|
5533
5533
|
}
|
|
5534
|
-
},
|
|
5534
|
+
}, Yl = ["id", "data-resizing"], Zl = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], Xl = 73, Ql = 20, Ue = 16, Jo = {
|
|
5535
5535
|
__name: "BsTabList",
|
|
5536
5536
|
props: {
|
|
5537
5537
|
activeTabId: { type: String, required: !0 },
|
|
@@ -5542,10 +5542,10 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5542
5542
|
},
|
|
5543
5543
|
emits: ["tabChange", "update:modelValue"],
|
|
5544
5544
|
setup(e, { emit: a }) {
|
|
5545
|
-
const t = e, l = a, n = I(!1), i = I(!1), d = I([]), o = I(!1), s = I(!1), r = I(),
|
|
5545
|
+
const t = e, l = a, n = I(!1), i = I(!1), d = I([]), o = I(!1), s = I(!1), r = I(), m = I([]), h = I(!1), v = I([]), g = I(), y = I([]), B = I(), p = I(), [S, C] = Z(2), $ = f(() => t.activeTabId ? v.value.findIndex((T) => T.id === t.activeTabId) : 0), M = f(() => d.value.some((T) => T.id === t.activeTabId)), k = f(() => `${C.value}-options`), A = f(() => `${C.value}-toggle`), F = f(() => {
|
|
5546
5546
|
var T;
|
|
5547
|
-
return
|
|
5548
|
-
}), _ =
|
|
5547
|
+
return M.value ? (T = v.value[$.value]) == null ? void 0 : T.textContent : "More";
|
|
5548
|
+
}), _ = f(() => M.value ? m.value[$.value] - m.value[$.value - 1] + Ql + Ue : Xl + Ue);
|
|
5549
5549
|
function J() {
|
|
5550
5550
|
var de;
|
|
5551
5551
|
let T = !1, N, U = 0, Q = !1, le = [];
|
|
@@ -5555,24 +5555,24 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5555
5555
|
N.dataset.hidden = "true", le.push(N);
|
|
5556
5556
|
continue;
|
|
5557
5557
|
}
|
|
5558
|
-
if (U = oe < v.value.length - 1 ?
|
|
5558
|
+
if (U = oe < v.value.length - 1 ? p.value - _.value : p.value, m.value[oe] > U) {
|
|
5559
5559
|
N.dataset.hidden = "true", le.push(N), T = !0, Q = !0;
|
|
5560
5560
|
continue;
|
|
5561
5561
|
}
|
|
5562
5562
|
N.dataset.hidden = "false", N.setAttribute("tabindex", "0");
|
|
5563
5563
|
}
|
|
5564
5564
|
s.value = T, d.value = le, n.value || Ae(() => n.value = !0), setTimeout(() => {
|
|
5565
|
-
qt(),
|
|
5566
|
-
},
|
|
5565
|
+
qt(), q(), h.value = !0;
|
|
5566
|
+
}, h.value ? 25 : 1e3);
|
|
5567
5567
|
}
|
|
5568
5568
|
}
|
|
5569
5569
|
function ne(T) {
|
|
5570
5570
|
l("tabChange", T), l("update:modelValue", T);
|
|
5571
5571
|
}
|
|
5572
|
-
function
|
|
5572
|
+
function he(T) {
|
|
5573
5573
|
var Q, le, de;
|
|
5574
5574
|
const N = (de = (le = (Q = v.value[T]) == null ? void 0 : Q.getBoundingClientRect) == null ? void 0 : le.call(Q)) == null ? void 0 : de.width;
|
|
5575
|
-
return N || (T === 0 ?
|
|
5575
|
+
return N || (T === 0 ? m.value[0] : m.value[T] - m.value[T - 1]) || 0;
|
|
5576
5576
|
}
|
|
5577
5577
|
function ye() {
|
|
5578
5578
|
var T;
|
|
@@ -5590,19 +5590,16 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5590
5590
|
o.value = !1, (N = g.value) == null || N.focus(), ne(T);
|
|
5591
5591
|
}
|
|
5592
5592
|
function xe(T) {
|
|
5593
|
-
if (t.withBsTabs)
|
|
5594
|
-
return;
|
|
5593
|
+
if (t.withBsTabs) return;
|
|
5595
5594
|
const N = T.target.closest('[role="tab"]');
|
|
5596
|
-
if (!N || N.getAttribute("aria-selected") === "true")
|
|
5597
|
-
return;
|
|
5595
|
+
if (!N || N.getAttribute("aria-selected") === "true") return;
|
|
5598
5596
|
const U = N.getAttribute("id");
|
|
5599
5597
|
ne(U);
|
|
5600
5598
|
}
|
|
5601
5599
|
function Se(T) {
|
|
5602
5600
|
if (T.key === "ArrowLeft" || T.key === "ArrowRight") {
|
|
5603
5601
|
const N = y.value.findIndex((U) => U.id === T.target.id);
|
|
5604
|
-
if (N === -1)
|
|
5605
|
-
return;
|
|
5602
|
+
if (N === -1) return;
|
|
5606
5603
|
T.preventDefault(), T.stopPropagation(), T.key === "ArrowLeft" ? R(N) : L(N);
|
|
5607
5604
|
}
|
|
5608
5605
|
}
|
|
@@ -5616,19 +5613,19 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5616
5613
|
const N = T === 0 ? y.value.length - 1 : T - 1;
|
|
5617
5614
|
(U = y.value[N]) == null || U.focus();
|
|
5618
5615
|
}
|
|
5619
|
-
function
|
|
5616
|
+
function q() {
|
|
5620
5617
|
var de, oe, it, rt;
|
|
5621
|
-
const T = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0, N =
|
|
5622
|
-
let U = 300, Q = ((oe = (de = y.value) == null ? void 0 : de[$.value]) == null ? void 0 : oe.offsetLeft) || 0, le =
|
|
5623
|
-
s.value &&
|
|
5618
|
+
const T = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0, N = p.value;
|
|
5619
|
+
let U = 300, Q = ((oe = (de = y.value) == null ? void 0 : de[$.value]) == null ? void 0 : oe.offsetLeft) || 0, le = he($.value);
|
|
5620
|
+
s.value && M.value && (Q = (it = g.value) == null ? void 0 : it.offsetLeft, le = (rt = g.value) == null ? void 0 : rt.offsetWidth), U = Math.max(Math.abs((Q - T) / N * 300), 100), r.value.style.setProperty("--active-line-max-width", `${N}px`), r.value.style.setProperty("--active-line-scale", `${le / N}`), r.value.style.setProperty("--active-line-offset", `${Q}px`), r.value.style.setProperty("--active-line-transition-duration", `${U}ms`);
|
|
5624
5621
|
}
|
|
5625
5622
|
function K() {
|
|
5626
5623
|
var T, N;
|
|
5627
5624
|
(N = (T = B.value) == null ? void 0 : T.disconnect) == null || N.call(T), B.value = null;
|
|
5628
5625
|
}
|
|
5629
5626
|
function X() {
|
|
5630
|
-
const T =
|
|
5631
|
-
|
|
5627
|
+
const T = Ve(() => {
|
|
5628
|
+
p.value = r.value.clientWidth, J();
|
|
5632
5629
|
}, 25);
|
|
5633
5630
|
B.value = new ResizeObserver(T), B.value.observe(document.body);
|
|
5634
5631
|
}
|
|
@@ -5638,17 +5635,15 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5638
5635
|
function Pt() {
|
|
5639
5636
|
let T;
|
|
5640
5637
|
v.value.forEach((N, U) => {
|
|
5641
|
-
T = N.getBoundingClientRect().width + Ue,
|
|
5638
|
+
T = N.getBoundingClientRect().width + Ue, m.value.push(U ? T + m.value[U - 1] : T);
|
|
5642
5639
|
});
|
|
5643
5640
|
}
|
|
5644
5641
|
function qt() {
|
|
5645
5642
|
var N, U;
|
|
5646
5643
|
let T = [];
|
|
5647
|
-
if (typeof window > "u")
|
|
5648
|
-
return T;
|
|
5644
|
+
if (typeof window > "u") return T;
|
|
5649
5645
|
for (let Q of v.value) {
|
|
5650
|
-
if (((N = Q.dataset) == null ? void 0 : N.hidden) === "true" || ((U = Q.dataset) == null ? void 0 : U.hidden) === "" || Q.getAttribute("tabindex") === "-1")
|
|
5651
|
-
break;
|
|
5646
|
+
if (((N = Q.dataset) == null ? void 0 : N.hidden) === "true" || ((U = Q.dataset) == null ? void 0 : U.hidden) === "" || Q.getAttribute("tabindex") === "-1") break;
|
|
5652
5647
|
T.push(Q);
|
|
5653
5648
|
}
|
|
5654
5649
|
s.value && T.push(r.value.querySelector(".bs-tab-list-toggle")), y.value = T;
|
|
@@ -5656,14 +5651,14 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5656
5651
|
return j(() => t.activeTabId, ye), H(() => {
|
|
5657
5652
|
var T;
|
|
5658
5653
|
try {
|
|
5659
|
-
Te(), Pt(), X(),
|
|
5654
|
+
Te(), Pt(), X(), p.value = r.value.getBoundingClientRect().width, J(), t.withBsTabs || (T = v.value[$.value]) == null || T.setAttribute("aria-selected", "true");
|
|
5660
5655
|
} catch (N) {
|
|
5661
5656
|
console.log("tab error", N);
|
|
5662
5657
|
}
|
|
5663
|
-
}),
|
|
5658
|
+
}), Be(K), (T, N) => (u(), b("div", {
|
|
5664
5659
|
class: "bs-tab-list",
|
|
5665
5660
|
"data-component": "bs-tab-list",
|
|
5666
|
-
id: T.$attrs.id || c(
|
|
5661
|
+
id: T.$attrs.id || c(S),
|
|
5667
5662
|
ref_key: "hostEl",
|
|
5668
5663
|
ref: r,
|
|
5669
5664
|
role: "tablist",
|
|
@@ -5673,28 +5668,28 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5673
5668
|
onKeydown: Se
|
|
5674
5669
|
}, [
|
|
5675
5670
|
E(T.$slots, "default"),
|
|
5676
|
-
|
|
5677
|
-
"aria-controls": c(
|
|
5671
|
+
w("button", {
|
|
5672
|
+
"aria-controls": c(C),
|
|
5678
5673
|
"aria-expanded": o.value,
|
|
5679
5674
|
class: "bs-tab-list-toggle",
|
|
5680
|
-
"data-active":
|
|
5675
|
+
"data-active": M.value || void 0,
|
|
5681
5676
|
"data-hidden": !s.value,
|
|
5682
|
-
id:
|
|
5677
|
+
id: A.value,
|
|
5683
5678
|
ref_key: "dropdownToggle",
|
|
5684
5679
|
ref: g,
|
|
5685
5680
|
onClick: Ce
|
|
5686
5681
|
}, [
|
|
5687
5682
|
P(c(Ht), { size: "sm" }),
|
|
5688
|
-
W(" " +
|
|
5689
|
-
], 8,
|
|
5683
|
+
W(" " + O(F.value), 1)
|
|
5684
|
+
], 8, Zl),
|
|
5690
5685
|
P(Lt, {
|
|
5691
|
-
"anchor-id":
|
|
5686
|
+
"anchor-id": A.value,
|
|
5692
5687
|
breakout: "",
|
|
5693
|
-
"container-id": T.$attrs.id || c(
|
|
5688
|
+
"container-id": T.$attrs.id || c(S),
|
|
5694
5689
|
"helper-description": e.helperDescription || void 0,
|
|
5695
5690
|
"helper-text": e.helperText,
|
|
5696
|
-
id: c(
|
|
5697
|
-
"options-id":
|
|
5691
|
+
id: c(C),
|
|
5692
|
+
"options-id": k.value,
|
|
5698
5693
|
position: "right",
|
|
5699
5694
|
preloaded: "",
|
|
5700
5695
|
shown: o.value,
|
|
@@ -5703,22 +5698,22 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5703
5698
|
"onUpdate:modelValue": se
|
|
5704
5699
|
}, {
|
|
5705
5700
|
default: D(() => [
|
|
5706
|
-
(u(!0),
|
|
5701
|
+
(u(!0), b(G, null, ee(d.value, (U) => (u(), V(ot, {
|
|
5707
5702
|
key: U.id,
|
|
5708
5703
|
value: U.id,
|
|
5709
|
-
"options-id":
|
|
5704
|
+
"options-id": k.value
|
|
5710
5705
|
}, {
|
|
5711
5706
|
default: D(() => [
|
|
5712
|
-
W(
|
|
5707
|
+
W(O(U.textContent), 1)
|
|
5713
5708
|
]),
|
|
5714
5709
|
_: 2
|
|
5715
5710
|
}, 1032, ["value", "options-id"]))), 128))
|
|
5716
5711
|
]),
|
|
5717
5712
|
_: 1
|
|
5718
5713
|
}, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])
|
|
5719
|
-
], 40,
|
|
5714
|
+
], 40, Yl));
|
|
5720
5715
|
}
|
|
5721
|
-
},
|
|
5716
|
+
}, Jl = ["aria-labelledby", "data-active", "id"], _o = {
|
|
5722
5717
|
__name: "BsTabPanel",
|
|
5723
5718
|
props: {
|
|
5724
5719
|
activeTabId: {
|
|
@@ -5731,8 +5726,8 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5731
5726
|
}
|
|
5732
5727
|
},
|
|
5733
5728
|
setup(e) {
|
|
5734
|
-
const a = e, t = re(), l =
|
|
5735
|
-
return (i, d) => (u(),
|
|
5729
|
+
const a = e, t = re(), l = f(() => a.activeTabId && a.activeTabId === a.tabId), n = f(() => t.id || `${a.tabId}-panel`);
|
|
5730
|
+
return (i, d) => (u(), b("section", {
|
|
5736
5731
|
"aria-labelledby": e.tabId,
|
|
5737
5732
|
"data-active": l.value,
|
|
5738
5733
|
"data-component": "bs-tab-panel",
|
|
@@ -5740,9 +5735,9 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5740
5735
|
role: "tabpanel"
|
|
5741
5736
|
}, [
|
|
5742
5737
|
E(i.$slots, "default")
|
|
5743
|
-
], 8,
|
|
5738
|
+
], 8, Jl));
|
|
5744
5739
|
}
|
|
5745
|
-
},
|
|
5740
|
+
}, _l = ["data-error", "id", "rows", "value"], eo = {
|
|
5746
5741
|
__name: "BsTextarea",
|
|
5747
5742
|
props: {
|
|
5748
5743
|
error: {
|
|
@@ -5757,8 +5752,8 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5757
5752
|
},
|
|
5758
5753
|
emits: ["update:modelValue"],
|
|
5759
5754
|
setup(e, { emit: a }) {
|
|
5760
|
-
const t = e, l =
|
|
5761
|
-
return (n, i) => (u(),
|
|
5755
|
+
const t = e, l = f(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
5756
|
+
return (n, i) => (u(), b("textarea", z({
|
|
5762
5757
|
class: "bs-textarea",
|
|
5763
5758
|
"data-component": "bs-textarea",
|
|
5764
5759
|
"data-error": e.error,
|
|
@@ -5766,9 +5761,9 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5766
5761
|
rows: n.$attrs.rows || 6,
|
|
5767
5762
|
value: e.value || e.modelValue,
|
|
5768
5763
|
onInput: i[0] || (i[0] = (d) => n.$emit("update:modelValue", d.target.value))
|
|
5769
|
-
}, l.value), null, 16,
|
|
5764
|
+
}, l.value), null, 16, _l));
|
|
5770
5765
|
}
|
|
5771
|
-
},
|
|
5766
|
+
}, ei = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5772
5767
|
__name: "BsTextareaField",
|
|
5773
5768
|
props: {
|
|
5774
5769
|
/** 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. */
|
|
@@ -5817,40 +5812,40 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5817
5812
|
},
|
|
5818
5813
|
emits: ["update:modelValue"],
|
|
5819
5814
|
setup(e, { emit: a }) {
|
|
5820
|
-
const t = e, [l, n] = Z(2), i =
|
|
5821
|
-
var
|
|
5822
|
-
return ((
|
|
5823
|
-
}), o =
|
|
5824
|
-
var
|
|
5825
|
-
return ((
|
|
5815
|
+
const t = e, [l, n] = Z(2), i = f(() => Na.concat(t.passAttrs.split(","))), d = f(() => {
|
|
5816
|
+
var m;
|
|
5817
|
+
return ((m = t.value || t.modelValue) == null ? void 0 : m.length) || 0;
|
|
5818
|
+
}), o = f(() => {
|
|
5819
|
+
var m, h;
|
|
5820
|
+
return ((h = (m = t.hints) == null ? void 0 : m.join) == null ? void 0 : h.call(m, `
|
|
5826
5821
|
`)) || t.hints;
|
|
5827
|
-
}), s =
|
|
5828
|
-
return (
|
|
5829
|
-
e.label ||
|
|
5822
|
+
}), s = f(() => t.error && t.errorMsg || t.hint || o.value || void 0), r = f(() => t.inputId || l.value);
|
|
5823
|
+
return (m, h) => (u(), b("div", z({ "data-component": "bs-textarea-field" }, c(Y)(m.$attrs, i.value).remaining), [
|
|
5824
|
+
e.label || m.$slots.label ? (u(), V(ae, {
|
|
5830
5825
|
key: 0,
|
|
5831
|
-
for:
|
|
5826
|
+
for: m.$attrs.id || r.value,
|
|
5832
5827
|
disabled: e.disabled,
|
|
5833
5828
|
required: e.required
|
|
5834
5829
|
}, {
|
|
5835
5830
|
default: D(() => [
|
|
5836
|
-
E(
|
|
5837
|
-
W(
|
|
5831
|
+
E(m.$slots, "label", {}, () => [
|
|
5832
|
+
W(O(e.label), 1)
|
|
5838
5833
|
])
|
|
5839
5834
|
]),
|
|
5840
5835
|
_: 3
|
|
5841
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
5842
|
-
P(
|
|
5836
|
+
}, 8, ["for", "disabled", "required"])) : x("", !0),
|
|
5837
|
+
P(eo, z({
|
|
5843
5838
|
disabled: e.disabled,
|
|
5844
5839
|
error: e.error,
|
|
5845
5840
|
"hint-id": c(n),
|
|
5846
|
-
id:
|
|
5841
|
+
id: m.$attrs.id || r.value,
|
|
5847
5842
|
placeholder: e.placeholder,
|
|
5848
5843
|
required: e.required,
|
|
5849
5844
|
rows: e.rows,
|
|
5850
5845
|
value: e.value || e.modelValue,
|
|
5851
|
-
"onUpdate:modelValue":
|
|
5852
|
-
}, c(Y)(
|
|
5853
|
-
s.value || e.charMax ? (u(),
|
|
5846
|
+
"onUpdate:modelValue": h[0] || (h[0] = (v) => m.$emit("update:modelValue", v))
|
|
5847
|
+
}, c(Y)(m.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
|
|
5848
|
+
s.value || e.charMax ? (u(), V(ge, {
|
|
5854
5849
|
key: 1,
|
|
5855
5850
|
"char-count": d.value,
|
|
5856
5851
|
"char-max": e.charMax,
|
|
@@ -5859,19 +5854,19 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5859
5854
|
"error-msg": e.errorMsg,
|
|
5860
5855
|
hint: e.hint || o.value,
|
|
5861
5856
|
"hint-id": c(n)
|
|
5862
|
-
}, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) :
|
|
5857
|
+
}, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) : x("", !0)
|
|
5863
5858
|
], 16));
|
|
5864
5859
|
}
|
|
5865
5860
|
});
|
|
5866
|
-
function
|
|
5861
|
+
function to(e) {
|
|
5867
5862
|
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);
|
|
5868
5863
|
return a ? "uFmt" : t ? "uFmtNoColon" : l ? "amPm" : n ? "amPmNoColon" : "";
|
|
5869
5864
|
}
|
|
5870
5865
|
const we = (e) => parseInt(e, 10);
|
|
5871
|
-
function
|
|
5866
|
+
function ao(e = "") {
|
|
5872
5867
|
const a = /[^0-9:apmAPM]/g;
|
|
5873
5868
|
let t, l;
|
|
5874
|
-
switch (e = e.replaceAll(a, "").toLowerCase(),
|
|
5869
|
+
switch (e = e.replaceAll(a, "").toLowerCase(), to(e)) {
|
|
5875
5870
|
case "uFmt":
|
|
5876
5871
|
case "uFmtNoColon":
|
|
5877
5872
|
l = we(e.slice(-2)), t = we(e.slice(0, -2));
|
|
@@ -5889,16 +5884,15 @@ function bo(e = "") {
|
|
|
5889
5884
|
}
|
|
5890
5885
|
function ve(e = "") {
|
|
5891
5886
|
const a = /[^0-9:]/g;
|
|
5892
|
-
if (e = e.replaceAll(a, ""), !e)
|
|
5893
|
-
return "";
|
|
5887
|
+
if (e = e.replaceAll(a, ""), !e) return "";
|
|
5894
5888
|
const [t, l] = e.split(":"), n = we(t), i = we(l), d = n < 12 ? "AM" : "PM";
|
|
5895
5889
|
return isNaN(n) || isNaN(i) || n > 23 || i > 59 ? "" : `${n % 12 || 12}:${l} ${d}`;
|
|
5896
5890
|
}
|
|
5897
|
-
function
|
|
5898
|
-
const { hours: a, minutes: t } =
|
|
5891
|
+
function no(e = "") {
|
|
5892
|
+
const { hours: a, minutes: t } = ao(e);
|
|
5899
5893
|
return isNaN(a) || isNaN(t) ? "" : `${a.toString().padStart(2, "0")}:${t.toString().padStart(2, "0")}`;
|
|
5900
5894
|
}
|
|
5901
|
-
const Ge = "excluded", He = "over",
|
|
5895
|
+
const Ge = "excluded", He = "over", ht = "skip", vt = "stop", Ke = "under", lo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5902
5896
|
__name: "BsTimePicker",
|
|
5903
5897
|
props: {
|
|
5904
5898
|
disabled: {
|
|
@@ -5965,53 +5959,53 @@ const Ge = "excluded", He = "over", bt = "skip", vt = "stop", Ke = "under", go =
|
|
|
5965
5959
|
setup(e, { expose: a, emit: t }) {
|
|
5966
5960
|
const l = e, n = t, i = I(ve(l.modelValue)), d = I([]), o = I(""), s = I(!1);
|
|
5967
5961
|
function r() {
|
|
5968
|
-
const
|
|
5969
|
-
let
|
|
5970
|
-
for (let $ = 0; $ < 24 && !
|
|
5971
|
-
for (let
|
|
5972
|
-
const
|
|
5973
|
-
if (
|
|
5974
|
-
if (
|
|
5975
|
-
|
|
5962
|
+
const S = [];
|
|
5963
|
+
let C = !1;
|
|
5964
|
+
for (let $ = 0; $ < 24 && !C; $++)
|
|
5965
|
+
for (let M = 0; M < 60; M += l.step) {
|
|
5966
|
+
const k = v($, M), A = h(k);
|
|
5967
|
+
if (A !== ht) {
|
|
5968
|
+
if (A === vt) {
|
|
5969
|
+
C = !0;
|
|
5976
5970
|
break;
|
|
5977
5971
|
}
|
|
5978
|
-
|
|
5979
|
-
label: ve(
|
|
5980
|
-
value:
|
|
5972
|
+
S.push({
|
|
5973
|
+
label: ve(k),
|
|
5974
|
+
value: k
|
|
5981
5975
|
});
|
|
5982
5976
|
}
|
|
5983
5977
|
}
|
|
5984
|
-
return
|
|
5978
|
+
return S;
|
|
5985
5979
|
}
|
|
5986
|
-
function
|
|
5987
|
-
return
|
|
5980
|
+
function m(S) {
|
|
5981
|
+
return S ? l.minTime && S < l.minTime ? Ke : l.maxTime && S > l.maxTime ? He : l.disabledTimes.includes(S) ? Ge : "" : "";
|
|
5988
5982
|
}
|
|
5989
|
-
function
|
|
5990
|
-
switch (
|
|
5983
|
+
function h(S) {
|
|
5984
|
+
switch (m(S)) {
|
|
5991
5985
|
case He:
|
|
5992
5986
|
return vt;
|
|
5993
5987
|
case Ke:
|
|
5994
5988
|
case Ge:
|
|
5995
|
-
return
|
|
5989
|
+
return ht;
|
|
5996
5990
|
default:
|
|
5997
5991
|
return "";
|
|
5998
5992
|
}
|
|
5999
5993
|
}
|
|
6000
|
-
function v(
|
|
6001
|
-
return
|
|
5994
|
+
function v(S, C) {
|
|
5995
|
+
return S = S.toString().padStart(2, "0"), C = C.toString().padStart(2, "0"), `${S}:${C}`;
|
|
6002
5996
|
}
|
|
6003
|
-
function g(
|
|
6004
|
-
const
|
|
6005
|
-
|
|
5997
|
+
function g(S) {
|
|
5998
|
+
const C = no(S);
|
|
5999
|
+
C === l.modelValue && (i.value = ve(l.modelValue)), B(C);
|
|
6006
6000
|
}
|
|
6007
6001
|
function y() {
|
|
6008
6002
|
d.value = r();
|
|
6009
6003
|
}
|
|
6010
|
-
function B(
|
|
6011
|
-
|
|
6004
|
+
function B(S) {
|
|
6005
|
+
p(S), n("update:modelValue", S);
|
|
6012
6006
|
}
|
|
6013
|
-
function
|
|
6014
|
-
switch (
|
|
6007
|
+
function p(S) {
|
|
6008
|
+
switch (m(S)) {
|
|
6015
6009
|
case He:
|
|
6016
6010
|
o.value = `Time must be before ${ve(l.maxTime)}`, s.value = !0;
|
|
6017
6011
|
break;
|
|
@@ -6035,12 +6029,12 @@ const Ge = "excluded", He = "over", bt = "skip", vt = "stop", Ke = "under", go =
|
|
|
6035
6029
|
() => l.maxTime,
|
|
6036
6030
|
() => l.minTime,
|
|
6037
6031
|
() => l.modelValue
|
|
6038
|
-
], () =>
|
|
6039
|
-
i.value = l.modelValue ? ve(
|
|
6032
|
+
], () => p(l.modelValue)), j(() => l.modelValue, (S) => {
|
|
6033
|
+
i.value = l.modelValue ? ve(S) : "";
|
|
6040
6034
|
}), a({
|
|
6041
6035
|
validationErr: s,
|
|
6042
6036
|
validationErrMsg: o
|
|
6043
|
-
}), (
|
|
6037
|
+
}), (S, C) => (u(), V(Vt, {
|
|
6044
6038
|
disabled: e.disabled,
|
|
6045
6039
|
"display-value": i.value,
|
|
6046
6040
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -6058,7 +6052,7 @@ const Ge = "excluded", He = "over", bt = "skip", vt = "stop", Ke = "under", go =
|
|
|
6058
6052
|
"onUpdate:modelValue": g
|
|
6059
6053
|
}, null, 8, ["disabled", "display-value", "dropdown-position", "dropdown-width", "error", "helper-description", "helper-text", "hint-id", "input-id", "model-value", "options", "placeholder", "required"]));
|
|
6060
6054
|
}
|
|
6061
|
-
}),
|
|
6055
|
+
}), ti = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
6062
6056
|
__name: "BsTimePickerField",
|
|
6063
6057
|
props: {
|
|
6064
6058
|
disabled: {
|
|
@@ -6127,21 +6121,21 @@ const Ge = "excluded", He = "over", bt = "skip", vt = "stop", Ke = "under", go =
|
|
|
6127
6121
|
},
|
|
6128
6122
|
emits: ["update:modelValue"],
|
|
6129
6123
|
setup(e, { expose: a, emit: t }) {
|
|
6130
|
-
const l = e, [n, i] = Z(2), d = I(null), o =
|
|
6124
|
+
const l = e, [n, i] = Z(2), d = I(null), o = f(() => l.errorMsg || h.value), s = f(() => l.error || v.value), r = f(() => l.inputId || n.value), m = f(() => l.hint || s.value && o.value), h = f(() => {
|
|
6131
6125
|
var g;
|
|
6132
6126
|
return (g = d.value) == null ? void 0 : g.validationErrMsg;
|
|
6133
|
-
}), v =
|
|
6127
|
+
}), v = f(() => {
|
|
6134
6128
|
var g;
|
|
6135
6129
|
return (g = d.value) == null ? void 0 : g.validationErr;
|
|
6136
6130
|
});
|
|
6137
6131
|
return a({
|
|
6138
6132
|
validationErr: v,
|
|
6139
|
-
validationErrMsg:
|
|
6140
|
-
}), (g, y) => (u(),
|
|
6133
|
+
validationErrMsg: h
|
|
6134
|
+
}), (g, y) => (u(), b("div", z({
|
|
6141
6135
|
"aria-live": "polite",
|
|
6142
6136
|
"data-component": "bs-time-picker-field"
|
|
6143
|
-
}, c(Y)(g.$attrs, c(
|
|
6144
|
-
e.label || g.$slots.label ? (u(),
|
|
6137
|
+
}, c(Y)(g.$attrs, c(be)).remaining), [
|
|
6138
|
+
e.label || g.$slots.label ? (u(), V(ae, {
|
|
6145
6139
|
key: 0,
|
|
6146
6140
|
for: g.$attrs.id || r.value,
|
|
6147
6141
|
disabled: e.disabled,
|
|
@@ -6149,12 +6143,12 @@ const Ge = "excluded", He = "over", bt = "skip", vt = "stop", Ke = "under", go =
|
|
|
6149
6143
|
}, {
|
|
6150
6144
|
default: D(() => [
|
|
6151
6145
|
E(g.$slots, "label", {}, () => [
|
|
6152
|
-
W(
|
|
6146
|
+
W(O(e.label), 1)
|
|
6153
6147
|
])
|
|
6154
6148
|
]),
|
|
6155
6149
|
_: 3
|
|
6156
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
6157
|
-
P(
|
|
6150
|
+
}, 8, ["for", "disabled", "required"])) : x("", !0),
|
|
6151
|
+
P(lo, z({
|
|
6158
6152
|
ref_key: "timePicker",
|
|
6159
6153
|
ref: d,
|
|
6160
6154
|
disabled: e.disabled,
|
|
@@ -6173,18 +6167,18 @@ const Ge = "excluded", He = "over", bt = "skip", vt = "stop", Ke = "under", go =
|
|
|
6173
6167
|
required: e.required,
|
|
6174
6168
|
step: e.step,
|
|
6175
6169
|
"onUpdate:modelValue": y[0] || (y[0] = (B) => g.$emit("update:modelValue", B))
|
|
6176
|
-
}, c(Y)(g.$attrs, c(
|
|
6170
|
+
}, c(Y)(g.$attrs, c(be)).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"]),
|
|
6177
6171
|
ue(P(ge, {
|
|
6178
6172
|
error: s.value,
|
|
6179
6173
|
"error-msg": o.value,
|
|
6180
6174
|
hint: e.hint,
|
|
6181
6175
|
"hint-id": c(i)
|
|
6182
6176
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
6183
|
-
[ce,
|
|
6177
|
+
[ce, m.value]
|
|
6184
6178
|
])
|
|
6185
6179
|
], 16));
|
|
6186
6180
|
}
|
|
6187
|
-
}),
|
|
6181
|
+
}), oo = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], io = ["data-status"], ro = { class: "visually-hidden" }, ai = {
|
|
6188
6182
|
__name: "BsTimeline",
|
|
6189
6183
|
props: {
|
|
6190
6184
|
/** @type {Status} */
|
|
@@ -6225,7 +6219,7 @@ const Ge = "excluded", He = "over", bt = "skip", vt = "stop", Ke = "under", go =
|
|
|
6225
6219
|
function d(o, s) {
|
|
6226
6220
|
return o = i(o, s), t[o] || dt;
|
|
6227
6221
|
}
|
|
6228
|
-
return (o, s) => (u(),
|
|
6222
|
+
return (o, s) => (u(), b("div", {
|
|
6229
6223
|
"aria-valuemax": e.steps.length,
|
|
6230
6224
|
"aria-valuenow": c(l),
|
|
6231
6225
|
"aria-valuetext": c(n),
|
|
@@ -6233,24 +6227,24 @@ const Ge = "excluded", He = "over", bt = "skip", vt = "stop", Ke = "under", go =
|
|
|
6233
6227
|
"data-component": "bs-timeline",
|
|
6234
6228
|
role: "progressbar"
|
|
6235
6229
|
}, [
|
|
6236
|
-
(u(!0),
|
|
6230
|
+
(u(!0), b(G, null, ee(e.steps, (r, m) => (u(), b("div", {
|
|
6237
6231
|
class: "bs-step-item",
|
|
6238
|
-
"data-status": c(i)(r.status,
|
|
6232
|
+
"data-status": c(i)(r.status, m),
|
|
6239
6233
|
key: r.id || r.label,
|
|
6240
6234
|
role: "status"
|
|
6241
6235
|
}, [
|
|
6242
|
-
(u(),
|
|
6236
|
+
(u(), V(te(d(r.status, m)), {
|
|
6243
6237
|
class: "bs-step-icon",
|
|
6244
6238
|
role: "presentation"
|
|
6245
6239
|
})),
|
|
6246
|
-
|
|
6247
|
-
W(
|
|
6248
|
-
|
|
6240
|
+
w("p", null, [
|
|
6241
|
+
W(O(r.label || r) + " ", 1),
|
|
6242
|
+
w("span", ro, " : " + O(c(i)(r.status, m) || "not started"), 1)
|
|
6249
6243
|
])
|
|
6250
|
-
], 8,
|
|
6251
|
-
], 8,
|
|
6244
|
+
], 8, io))), 128))
|
|
6245
|
+
], 8, oo));
|
|
6252
6246
|
}
|
|
6253
|
-
},
|
|
6247
|
+
}, so = ["data-variant", "data-shown", "data-stacked"], ni = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
6254
6248
|
__name: "BsToast",
|
|
6255
6249
|
props: {
|
|
6256
6250
|
shown: {
|
|
@@ -6308,15 +6302,15 @@ const Ge = "excluded", He = "over", bt = "skip", vt = "stop", Ke = "under", go =
|
|
|
6308
6302
|
o();
|
|
6309
6303
|
}, t.duration)), l("after-enter");
|
|
6310
6304
|
}
|
|
6311
|
-
return (r,
|
|
6305
|
+
return (r, m) => (u(), V(Pe, {
|
|
6312
6306
|
name: "bs-toast",
|
|
6313
6307
|
shown: c(n),
|
|
6314
6308
|
preloaded: e.preloaded,
|
|
6315
6309
|
onAfterEnter: s,
|
|
6316
|
-
onAfterLeave:
|
|
6310
|
+
onAfterLeave: m[0] || (m[0] = (h) => l("after-leave"))
|
|
6317
6311
|
}, {
|
|
6318
6312
|
default: D(() => [
|
|
6319
|
-
|
|
6313
|
+
w("div", z({
|
|
6320
6314
|
class: "bs-toast",
|
|
6321
6315
|
"data-component": "bs-toast",
|
|
6322
6316
|
"data-variant": e.variant,
|
|
@@ -6325,22 +6319,22 @@ const Ge = "excluded", He = "over", bt = "skip", vt = "stop", Ke = "under", go =
|
|
|
6325
6319
|
role: "alert"
|
|
6326
6320
|
}, r.$attrs), [
|
|
6327
6321
|
E(r.$slots, "default")
|
|
6328
|
-
], 16,
|
|
6322
|
+
], 16, so)
|
|
6329
6323
|
]),
|
|
6330
6324
|
_: 3
|
|
6331
6325
|
}, 8, ["shown", "preloaded"]));
|
|
6332
6326
|
}
|
|
6333
|
-
}),
|
|
6327
|
+
}), uo = ["data-stacked"], li = {
|
|
6334
6328
|
__name: "BsToastActions",
|
|
6335
6329
|
setup(e) {
|
|
6336
6330
|
const a = I(!1);
|
|
6337
6331
|
H(() => {
|
|
6338
6332
|
var n;
|
|
6339
|
-
const l =
|
|
6333
|
+
const l = St();
|
|
6340
6334
|
((n = l.default) == null ? void 0 : n.call(l).length) > 2 && (a.value = !0);
|
|
6341
6335
|
});
|
|
6342
6336
|
const t = pe("handleDismiss");
|
|
6343
|
-
return (l, n) => (u(),
|
|
6337
|
+
return (l, n) => (u(), b("div", {
|
|
6344
6338
|
class: "bs-toast-actions",
|
|
6345
6339
|
"data-component": "bs-toast-actions",
|
|
6346
6340
|
"data-stacked": a.value || void 0
|
|
@@ -6351,32 +6345,32 @@ const Ge = "excluded", He = "over", bt = "skip", vt = "stop", Ke = "under", go =
|
|
|
6351
6345
|
"text-btn": "",
|
|
6352
6346
|
onClick: c(t)
|
|
6353
6347
|
}, {
|
|
6354
|
-
default: D(() => [
|
|
6348
|
+
default: D(() => n[0] || (n[0] = [
|
|
6355
6349
|
W(" Dismiss ")
|
|
6356
|
-
]),
|
|
6350
|
+
])),
|
|
6357
6351
|
_: 1
|
|
6358
6352
|
}, 8, ["onClick"])
|
|
6359
6353
|
])
|
|
6360
|
-
], 8,
|
|
6354
|
+
], 8, uo));
|
|
6361
6355
|
}
|
|
6362
|
-
},
|
|
6356
|
+
}, co = (e, a) => {
|
|
6363
6357
|
const t = e.__vccOpts || e;
|
|
6364
6358
|
for (const [l, n] of a)
|
|
6365
6359
|
t[l] = n;
|
|
6366
6360
|
return t;
|
|
6367
|
-
},
|
|
6361
|
+
}, fo = {}, po = {
|
|
6368
6362
|
class: "bs-toast-body",
|
|
6369
6363
|
"data-component": "bs-toast-body"
|
|
6370
6364
|
};
|
|
6371
|
-
function
|
|
6372
|
-
return u(),
|
|
6365
|
+
function mo(e, a) {
|
|
6366
|
+
return u(), b("div", po, [
|
|
6373
6367
|
E(e.$slots, "default")
|
|
6374
6368
|
]);
|
|
6375
6369
|
}
|
|
6376
|
-
const
|
|
6370
|
+
const oi = /* @__PURE__ */ co(fo, [["render", mo]]), bo = ["data-variant"], ii = {
|
|
6377
6371
|
__name: "BsToastHeader",
|
|
6378
6372
|
setup(e) {
|
|
6379
|
-
const a = pe("variant"), t =
|
|
6373
|
+
const a = pe("variant"), t = f(() => {
|
|
6380
6374
|
switch (a) {
|
|
6381
6375
|
case "warning":
|
|
6382
6376
|
return Xe;
|
|
@@ -6388,28 +6382,28 @@ const yi = /* @__PURE__ */ Io(ko, [["render", xo]]), To = ["data-variant"], Si =
|
|
|
6388
6382
|
return kt;
|
|
6389
6383
|
}
|
|
6390
6384
|
});
|
|
6391
|
-
return (l, n) => (u(),
|
|
6385
|
+
return (l, n) => (u(), b("div", {
|
|
6392
6386
|
class: "bs-toast-header",
|
|
6393
6387
|
"data-component": "bs-toast-header",
|
|
6394
6388
|
"data-variant": c(a)
|
|
6395
6389
|
}, [
|
|
6396
|
-
(u(),
|
|
6397
|
-
|
|
6390
|
+
(u(), V(te(t.value), { class: "bs-toast-header-icon" })),
|
|
6391
|
+
w("h5", null, [
|
|
6398
6392
|
E(l.$slots, "default")
|
|
6399
6393
|
])
|
|
6400
|
-
], 8,
|
|
6394
|
+
], 8, bo));
|
|
6401
6395
|
}
|
|
6402
|
-
},
|
|
6396
|
+
}, ho = {
|
|
6403
6397
|
class: "bs-toaster",
|
|
6404
6398
|
"data-component": "bs-toaster"
|
|
6405
|
-
},
|
|
6399
|
+
}, ri = {
|
|
6406
6400
|
__name: "BsToaster",
|
|
6407
6401
|
setup(e) {
|
|
6408
|
-
return fe("stacked", !0), (a, t) => (u(),
|
|
6402
|
+
return fe("stacked", !0), (a, t) => (u(), b("div", ho, [
|
|
6409
6403
|
E(a.$slots, "default")
|
|
6410
6404
|
]));
|
|
6411
6405
|
}
|
|
6412
|
-
},
|
|
6406
|
+
}, vo = ["data-position"], go = ["id"], si = {
|
|
6413
6407
|
__name: "BsTooltip",
|
|
6414
6408
|
props: {
|
|
6415
6409
|
tooltipId: {
|
|
@@ -6436,7 +6430,7 @@ const yi = /* @__PURE__ */ Io(ko, [["render", xo]]), To = ["data-variant"], Si =
|
|
|
6436
6430
|
}
|
|
6437
6431
|
},
|
|
6438
6432
|
setup(e) {
|
|
6439
|
-
const a = e, t = I(!1), l = I(!1), n =
|
|
6433
|
+
const a = e, t = I(!1), l = I(!1), n = f(() => {
|
|
6440
6434
|
let o = "bs-tooltip-text";
|
|
6441
6435
|
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;
|
|
6442
6436
|
});
|
|
@@ -6449,7 +6443,7 @@ const yi = /* @__PURE__ */ Io(ko, [["render", xo]]), To = ["data-variant"], Si =
|
|
|
6449
6443
|
function d() {
|
|
6450
6444
|
t.value = !1, l.value = !1;
|
|
6451
6445
|
}
|
|
6452
|
-
return (o, s) => (u(),
|
|
6446
|
+
return (o, s) => (u(), b("div", {
|
|
6453
6447
|
class: "bs-tooltip",
|
|
6454
6448
|
"data-position": e.position || void 0,
|
|
6455
6449
|
"data-component": "bs-tooltip",
|
|
@@ -6459,15 +6453,15 @@ const yi = /* @__PURE__ */ Io(ko, [["render", xo]]), To = ["data-variant"], Si =
|
|
|
6459
6453
|
onFocusout: d
|
|
6460
6454
|
}, [
|
|
6461
6455
|
E(o.$slots, "default"),
|
|
6462
|
-
e.content ? (u(),
|
|
6456
|
+
e.content ? (u(), b("div", {
|
|
6463
6457
|
key: 0,
|
|
6464
6458
|
class: ie(n.value),
|
|
6465
6459
|
id: e.tooltipId,
|
|
6466
6460
|
role: "tooltip"
|
|
6467
|
-
},
|
|
6468
|
-
], 40,
|
|
6461
|
+
}, O(e.content), 11, go)) : x("", !0)
|
|
6462
|
+
], 40, vo));
|
|
6469
6463
|
}
|
|
6470
|
-
},
|
|
6464
|
+
}, yo = {
|
|
6471
6465
|
accordion: "[data-component=bs-accordion]",
|
|
6472
6466
|
badge: "[data-component=bs-badge]",
|
|
6473
6467
|
banner: "[data-component=bs-banner]",
|
|
@@ -6524,69 +6518,69 @@ const yi = /* @__PURE__ */ Io(ko, [["render", xo]]), To = ["data-variant"], Si =
|
|
|
6524
6518
|
toastHeader: "[data-component=bs-toast-header]",
|
|
6525
6519
|
toaster: "[data-component=bs-toaster]",
|
|
6526
6520
|
tooltip: "[data-component=bs-tooltip]"
|
|
6527
|
-
},
|
|
6528
|
-
bsSelectors:
|
|
6521
|
+
}, di = {
|
|
6522
|
+
bsSelectors: yo
|
|
6529
6523
|
};
|
|
6530
6524
|
export {
|
|
6531
|
-
|
|
6525
|
+
xo as BsAccordion,
|
|
6532
6526
|
wa as BsBadge,
|
|
6533
|
-
|
|
6527
|
+
To as BsBanner,
|
|
6534
6528
|
ka as BsButton,
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6529
|
+
Ao as BsCalendar,
|
|
6530
|
+
Oo as BsCaretButton,
|
|
6531
|
+
Vo as BsCaretTextButton,
|
|
6532
|
+
Eo as BsChartBar,
|
|
6533
|
+
Lo as BsCheckbox,
|
|
6540
6534
|
xt as BsCircleButton,
|
|
6541
6535
|
lt as BsDropdown,
|
|
6542
|
-
|
|
6543
|
-
|
|
6536
|
+
Vt as BsDropdownCombobox,
|
|
6537
|
+
Do as BsDropdownComboboxField,
|
|
6544
6538
|
Et as BsDropdownMultiselect,
|
|
6545
6539
|
ot as BsDropdownOption,
|
|
6546
6540
|
qe as BsDropdownOptionBuilder,
|
|
6547
6541
|
Re as BsDropdownOptionList,
|
|
6548
6542
|
Lt as BsDropdownWithOptions,
|
|
6549
|
-
|
|
6550
|
-
|
|
6543
|
+
Ot as BsDropdownWithToggle,
|
|
6544
|
+
Po as BsEmptyState,
|
|
6551
6545
|
ge as BsFieldDetails,
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6546
|
+
Sn as BsFilterButton,
|
|
6547
|
+
qo as BsFlyout,
|
|
6548
|
+
Mo as BsIconGradientWrapper,
|
|
6555
6549
|
Ie as BsInput,
|
|
6556
6550
|
De as BsInputAddon,
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6551
|
+
No as BsInputField,
|
|
6552
|
+
zo as BsInputPhone,
|
|
6553
|
+
Xn as BsInputSearch,
|
|
6554
|
+
Fo as BsInputTypeahead,
|
|
6561
6555
|
ae as BsLabel,
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6556
|
+
Ro as BsLoader,
|
|
6557
|
+
jo as BsModal,
|
|
6558
|
+
ol as BsOverlay,
|
|
6559
|
+
Wo as BsPagination,
|
|
6560
|
+
Uo as BsPill,
|
|
6561
|
+
Go as BsProfile,
|
|
6562
|
+
El as BsProfileDetails,
|
|
6569
6563
|
At as BsProfileImg,
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6564
|
+
Ho as BsProgressBar,
|
|
6565
|
+
Ko as BsRadio,
|
|
6566
|
+
Nl as BsSelect,
|
|
6567
|
+
Yo as BsSelectField,
|
|
6568
|
+
Zo as BsSelectWithDropdown,
|
|
6569
|
+
bt as BsSpinner,
|
|
6570
|
+
Xo as BsSwitch,
|
|
6571
|
+
Qo as BsTab,
|
|
6572
|
+
Jo as BsTabList,
|
|
6573
|
+
_o as BsTabPanel,
|
|
6574
|
+
eo as BsTextarea,
|
|
6575
|
+
ei as BsTextareaField,
|
|
6576
|
+
lo as BsTimePicker,
|
|
6577
|
+
ti as BsTimePickerField,
|
|
6578
|
+
ai as BsTimeline,
|
|
6579
|
+
ni as BsToast,
|
|
6580
|
+
li as BsToastActions,
|
|
6581
|
+
oi as BsToastBody,
|
|
6582
|
+
ii as BsToastHeader,
|
|
6583
|
+
ri as BsToaster,
|
|
6584
|
+
si as BsTooltip,
|
|
6585
|
+
di as bsSelectors
|
|
6592
6586
|
};
|