@wwtdev/bsds-components-vue3 2.16.1 → 2.17.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 +956 -948
- package/lib/components.css +1 -1
- package/package.json +3 -3
package/lib/bsds-components.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { computed as f, ref as
|
|
2
|
-
import { BsIconCaretDown as Me, BsIconWarning as Xe, BsIconClose as
|
|
3
|
-
import { DatePicker as
|
|
4
|
-
import { Filler as
|
|
1
|
+
import { computed as f, ref as $, onMounted as X, onUnmounted as $e, shallowRef as Wt, watch as U, defineAsyncComponent as Je, useId as yt, openBlock as d, createElementBlock as b, unref as c, createElementVNode as B, renderSlot as V, createBlock as O, resolveDynamicComponent as ne, createCommentVNode as C, createTextVNode as j, toDisplayString as A, createVNode as P, normalizeClass as oe, useAttrs as se, mergeProps as z, withCtx as D, Fragment as K, toHandlers as Ye, onBeforeUnmount as _e, onBeforeMount as St, nextTick as Ae, createSlots as Ze, useSlots as et, renderList as ae, Teleport as jt, withDirectives as ce, Transition as dt, vShow as fe, provide as pe, inject as me, withModifiers as wt, isRef as Ut } from "vue";
|
|
2
|
+
import { BsIconCaretDown as Me, BsIconWarning as Xe, BsIconClose as Ie, BsIconCalendar as Bt, BsIconCaretRight as $t, BsIconCaretLeft as It, BsIconSmallCaretRight as Gt, BsIconSmallCaretLeft as Ht, BsIconSearch as Kt, BsIconCaretSort as Yt, BsIconCaretLeftDouble as Zt, BsIconCaretRightDouble as Xt, BsIconActionEllipsis as Qt, BsIconGraphPieEmpty as ut, BsIconCircleStop as Jt, BsIconCircleCheck as _t, BsIconCircleX as ea, BsIconCircleEllipsis as ta, BsIconCirclePlay as aa, BsIconCirclePause as na, BsIconCircleExclamation as kt, BsIconThumbsUpStroke as la } from "@wwtdev/bsds-icons-vue3";
|
|
3
|
+
import { DatePicker as oa } from "v-calendar";
|
|
4
|
+
import { Filler as ia, Chart as We, BarController as ra, BarElement as sa, CategoryScale as da, LinearScale as ua, Legend as ca, TimeScale as fa, Tooltip as pa } from "chart.js";
|
|
5
5
|
import "chartjs-adapter-date-fns";
|
|
6
6
|
import Ne from "lodash.merge";
|
|
7
|
-
import { getSupportedCallingCodes as
|
|
7
|
+
import { getSupportedCallingCodes as ma, getRegionCodeForCountryCode as ba, parsePhoneNumber as ct } from "awesome-phonenumber";
|
|
8
8
|
const ft = {
|
|
9
9
|
href: "a",
|
|
10
10
|
linkTo: "a",
|
|
@@ -13,7 +13,7 @@ const ft = {
|
|
|
13
13
|
type: "button"
|
|
14
14
|
};
|
|
15
15
|
function ze(e, a, t = "button") {
|
|
16
|
-
const l =
|
|
16
|
+
const l = ha(e, a, t), n = f(() => {
|
|
17
17
|
const o = l.value === "button", s = {};
|
|
18
18
|
return o ? (s.type = a.type || "button", s.autocomplete = "off", e.disabled && (s.disabled = !0)) : e.disabled && (s["aria-disabled"] = "true", s.tabindex = "-1"), s;
|
|
19
19
|
}), i = f(() => {
|
|
@@ -22,11 +22,11 @@ function ze(e, a, t = "button") {
|
|
|
22
22
|
}), u = f(() => e.linkTo || e.href);
|
|
23
23
|
return { rootTag: l, attrsToBind: i, hrefUrl: u };
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
const l = Object.keys(ft).find((n) =>
|
|
27
|
-
return
|
|
25
|
+
function ha(e, a, t) {
|
|
26
|
+
const l = Object.keys(ft).find((n) => va(e, a, n));
|
|
27
|
+
return $(ft[l] || t);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function va(e, a, t) {
|
|
30
30
|
return e[t] || a[t];
|
|
31
31
|
}
|
|
32
32
|
const Ct = (e, a) => {
|
|
@@ -38,7 +38,7 @@ const Ct = (e, a) => {
|
|
|
38
38
|
};
|
|
39
39
|
X(() => {
|
|
40
40
|
document.addEventListener("mouseup", t);
|
|
41
|
-
}),
|
|
41
|
+
}), $e(() => {
|
|
42
42
|
document.removeEventListener("mouseup", t);
|
|
43
43
|
});
|
|
44
44
|
};
|
|
@@ -73,8 +73,8 @@ const Oe = (e, a) => {
|
|
|
73
73
|
return s;
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
const l =
|
|
77
|
-
return l.value = t(n),
|
|
76
|
+
const l = Wt(), n = e[a] || ((i = e == null ? void 0 : e.value) == null ? void 0 : i[a]);
|
|
77
|
+
return l.value = t(n), U(
|
|
78
78
|
[
|
|
79
79
|
() => e[a],
|
|
80
80
|
() => {
|
|
@@ -88,12 +88,12 @@ const Oe = (e, a) => {
|
|
|
88
88
|
function Q(e = 1) {
|
|
89
89
|
const a = [];
|
|
90
90
|
for (let t = 0; t < e; t++)
|
|
91
|
-
a.push(
|
|
91
|
+
a.push($(""));
|
|
92
92
|
return X(() => {
|
|
93
93
|
a.forEach((t) => t.value = yt());
|
|
94
94
|
}), a;
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const be = (e, a, t = void 0) => {
|
|
97
97
|
const l = (n) => {
|
|
98
98
|
var i, u;
|
|
99
99
|
((i = e == null ? void 0 : e.includes) != null && i.call(e, n.key) || (u = e == null ? void 0 : e.some) != null && u.call(e, (o) => {
|
|
@@ -103,32 +103,32 @@ const me = (e, a, t = void 0) => {
|
|
|
103
103
|
};
|
|
104
104
|
X(() => {
|
|
105
105
|
((t == null ? void 0 : t.value) ?? document).addEventListener("keydown", l);
|
|
106
|
-
}),
|
|
106
|
+
}), $e(() => {
|
|
107
107
|
((t == null ? void 0 : t.value) ?? document).removeEventListener("keydown", l);
|
|
108
108
|
});
|
|
109
|
-
},
|
|
109
|
+
}, ga = (e, a, t) => {
|
|
110
110
|
let l = null;
|
|
111
111
|
X(() => {
|
|
112
112
|
l = new MutationObserver(a), l.observe(e.value, t);
|
|
113
|
-
}),
|
|
113
|
+
}), $e(() => {
|
|
114
114
|
l.disconnect();
|
|
115
115
|
});
|
|
116
116
|
}, Ee = (e) => {
|
|
117
|
-
const a =
|
|
117
|
+
const a = $(!1);
|
|
118
118
|
return X(() => {
|
|
119
119
|
e.enterControlled ? a.value = e.enterTrigger : a.value = e.shown;
|
|
120
|
-
}),
|
|
120
|
+
}), U(() => e.shown, (t) => {
|
|
121
121
|
a.value = t;
|
|
122
|
-
}),
|
|
122
|
+
}), U(() => e.enterTrigger, (t) => {
|
|
123
123
|
a.value = t;
|
|
124
|
-
}),
|
|
124
|
+
}), U(() => e.leaveTrigger, (t) => {
|
|
125
125
|
t && (a.value = !1);
|
|
126
126
|
}), { transition: a };
|
|
127
|
-
},
|
|
127
|
+
}, ya = ["id", "data-stacked"], Sa = ["data-open"], wa = ["aria-controls", "aria-expanded"], Ba = {
|
|
128
128
|
key: 0,
|
|
129
129
|
"data-position": "start",
|
|
130
130
|
style: { display: "inline-flex" }
|
|
131
|
-
},
|
|
131
|
+
}, $a = ["id"], Ia = ["aria-labelledby", "data-open", "id"], Eo = {
|
|
132
132
|
__name: "BsAccordion",
|
|
133
133
|
props: {
|
|
134
134
|
controlled: { type: Boolean, default: !1 },
|
|
@@ -145,7 +145,7 @@ const me = (e, a, t = void 0) => {
|
|
|
145
145
|
},
|
|
146
146
|
emits: ["toggled"],
|
|
147
147
|
setup(e, { emit: a }) {
|
|
148
|
-
const t = e, l = a, n =
|
|
148
|
+
const t = e, l = a, n = $(null), i = $(!1), { icon: u } = Oe(t, "icon"), [o] = Q(), s = f(() => o.value + "-content"), r = f(() => o.value + "-title"), m = f(() => t.openItemId && t.openItemId === o.value || t.openItem === !0), g = f(() => t.controlled ? m.value : i.value);
|
|
149
149
|
function v() {
|
|
150
150
|
l("toggled", o.value), t.controlled || (i.value = !i.value);
|
|
151
151
|
}
|
|
@@ -157,33 +157,33 @@ const me = (e, a, t = void 0) => {
|
|
|
157
157
|
"data-component": "bs-accordion",
|
|
158
158
|
"data-stacked": e.stacked
|
|
159
159
|
}, [
|
|
160
|
-
|
|
160
|
+
B("header", {
|
|
161
161
|
part: "header",
|
|
162
162
|
"data-open": g.value
|
|
163
163
|
}, [
|
|
164
|
-
|
|
164
|
+
B("button", {
|
|
165
165
|
"aria-controls": s.value,
|
|
166
166
|
"aria-expanded": g.value,
|
|
167
167
|
type: "button",
|
|
168
168
|
onClick: v
|
|
169
169
|
}, [
|
|
170
|
-
e.icon || h.$slots.icon ? (d(), b("span",
|
|
170
|
+
e.icon || h.$slots.icon ? (d(), b("span", Ba, [
|
|
171
171
|
V(h.$slots, "icon", {}, () => [
|
|
172
|
-
e.icon ? (d(), O(
|
|
172
|
+
e.icon ? (d(), O(ne(c(u) ? c(u) : "span"), { key: 0 })) : C("", !0)
|
|
173
173
|
])
|
|
174
174
|
])) : C("", !0),
|
|
175
|
-
|
|
175
|
+
B("span", { id: r.value }, [
|
|
176
176
|
V(h.$slots, "header", {}, () => [
|
|
177
|
-
|
|
177
|
+
j(A(e.headerText), 1)
|
|
178
178
|
])
|
|
179
|
-
], 8,
|
|
179
|
+
], 8, $a),
|
|
180
180
|
P(c(Me), {
|
|
181
181
|
size: "md",
|
|
182
182
|
"data-position": "end"
|
|
183
183
|
})
|
|
184
|
-
], 8,
|
|
185
|
-
], 8,
|
|
186
|
-
|
|
184
|
+
], 8, wa)
|
|
185
|
+
], 8, Sa),
|
|
186
|
+
B("div", {
|
|
187
187
|
"aria-labelledby": r.value,
|
|
188
188
|
class: "bs-accordion-content",
|
|
189
189
|
"data-open": g.value,
|
|
@@ -191,13 +191,13 @@ const me = (e, a, t = void 0) => {
|
|
|
191
191
|
part: "content",
|
|
192
192
|
role: "region"
|
|
193
193
|
}, [
|
|
194
|
-
|
|
194
|
+
B("div", null, [
|
|
195
195
|
V(h.$slots, "default")
|
|
196
196
|
])
|
|
197
|
-
], 8,
|
|
198
|
-
], 8,
|
|
197
|
+
], 8, Ia)
|
|
198
|
+
], 8, ya));
|
|
199
199
|
}
|
|
200
|
-
},
|
|
200
|
+
}, ka = ["aria-label", "data-badge-color", "data-count", "data-position", "data-show-zero", "data-variant"], Ca = {
|
|
201
201
|
__name: "BsBadge",
|
|
202
202
|
props: {
|
|
203
203
|
/** Pass value to set `data-badge-color`. */
|
|
@@ -244,7 +244,7 @@ const me = (e, a, t = void 0) => {
|
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
246
|
setup(e) {
|
|
247
|
-
const a = e, t =
|
|
247
|
+
const a = e, t = $(null), l = f(() => a.count === 0 ? "0" : !a.count || a.dot ? null : a.count > a.countMax ? a.countMax + "+" : a.count.toString()), n = f(() => {
|
|
248
248
|
var s, r;
|
|
249
249
|
const i = ((r = (s = t.value) == null ? void 0 : s.textContent) == null ? void 0 : r.trim()) || "", u = l.value ? l.value + " " : "";
|
|
250
250
|
if (!u && !a.dot) return i;
|
|
@@ -255,7 +255,7 @@ const me = (e, a, t = void 0) => {
|
|
|
255
255
|
ref_key: "hostRef",
|
|
256
256
|
ref: t,
|
|
257
257
|
"aria-label": n.value,
|
|
258
|
-
class:
|
|
258
|
+
class: oe({ "bs-badge": e.dot || l.value }),
|
|
259
259
|
"data-badge-color": e.color,
|
|
260
260
|
"data-component": "bs-badge",
|
|
261
261
|
"data-count": l.value,
|
|
@@ -265,35 +265,35 @@ const me = (e, a, t = void 0) => {
|
|
|
265
265
|
role: "status"
|
|
266
266
|
}, [
|
|
267
267
|
e.variant !== "notext" ? V(i.$slots, "default", { key: 0 }) : C("", !0)
|
|
268
|
-
], 10,
|
|
268
|
+
], 10, ka));
|
|
269
269
|
}
|
|
270
|
-
},
|
|
270
|
+
}, xa = {
|
|
271
271
|
key: 0,
|
|
272
272
|
role: "alert",
|
|
273
273
|
class: "bs-banner",
|
|
274
274
|
"data-component": "bs-banner"
|
|
275
|
-
},
|
|
275
|
+
}, Ta = { class: "bs-banner-content" }, Aa = { class: "bs-banner-warning-icon" }, Do = {
|
|
276
276
|
__name: "BsBanner",
|
|
277
277
|
emits: ["dismiss"],
|
|
278
278
|
setup(e, { emit: a }) {
|
|
279
|
-
const t = a, l =
|
|
279
|
+
const t = a, l = $(!1);
|
|
280
280
|
function n() {
|
|
281
281
|
l.value = !0, t("dismiss");
|
|
282
282
|
}
|
|
283
|
-
return (i, u) => l.value ? C("", !0) : (d(), b("div",
|
|
284
|
-
|
|
285
|
-
|
|
283
|
+
return (i, u) => l.value ? C("", !0) : (d(), b("div", xa, [
|
|
284
|
+
B("div", Ta, [
|
|
285
|
+
B("div", Aa, [
|
|
286
286
|
P(c(Xe), { size: "lg" })
|
|
287
287
|
]),
|
|
288
|
-
|
|
288
|
+
B("p", null, [
|
|
289
289
|
V(i.$slots, "default")
|
|
290
290
|
]),
|
|
291
|
-
|
|
291
|
+
B("button", {
|
|
292
292
|
type: "button",
|
|
293
293
|
title: "Close Banner",
|
|
294
294
|
onClick: n
|
|
295
295
|
}, [
|
|
296
|
-
P(c(
|
|
296
|
+
P(c(Ie))
|
|
297
297
|
])
|
|
298
298
|
])
|
|
299
299
|
]));
|
|
@@ -329,8 +329,8 @@ const me = (e, a, t = void 0) => {
|
|
|
329
329
|
href: { type: String }
|
|
330
330
|
},
|
|
331
331
|
setup(e) {
|
|
332
|
-
const a = e, t =
|
|
333
|
-
return (o, s) => (d(), O(
|
|
332
|
+
const a = e, t = se(), { rootTag: l, attrsToBind: n, hrefUrl: i } = ze(a, t), { onLinkClick: u } = Fe(a);
|
|
333
|
+
return (o, s) => (d(), O(ne(c(l)), z({
|
|
334
334
|
class: "bs-button",
|
|
335
335
|
"data-component": "bs-button",
|
|
336
336
|
"data-ghost": e.ghostBtn,
|
|
@@ -345,10 +345,10 @@ const me = (e, a, t = void 0) => {
|
|
|
345
345
|
_: 3
|
|
346
346
|
}, 48, ["data-ghost", "data-size", "data-text", "data-variant", ".href", "onClick"]));
|
|
347
347
|
}
|
|
348
|
-
}),
|
|
348
|
+
}), Oa = {
|
|
349
349
|
class: "bs-field-details",
|
|
350
350
|
"data-component": "bs-field-details"
|
|
351
|
-
},
|
|
351
|
+
}, Va = ["id", "data-error"], La = ["data-error"], ye = {
|
|
352
352
|
__name: "BsFieldDetails",
|
|
353
353
|
props: {
|
|
354
354
|
/** The number of characters that have been entered by the user. */
|
|
@@ -369,22 +369,22 @@ const me = (e, a, t = void 0) => {
|
|
|
369
369
|
},
|
|
370
370
|
setup(e) {
|
|
371
371
|
const a = e, t = f(() => a.error && a.errorMsg || a.hint);
|
|
372
|
-
return (l, n) => (d(), b("div",
|
|
372
|
+
return (l, n) => (d(), b("div", Oa, [
|
|
373
373
|
t.value ? (d(), b("span", {
|
|
374
374
|
key: 0,
|
|
375
375
|
id: e.hintId,
|
|
376
376
|
class: "bs-hint",
|
|
377
377
|
"data-error": e.error
|
|
378
|
-
},
|
|
378
|
+
}, A(t.value), 9, Va)) : C("", !0),
|
|
379
379
|
e.charMax ? (d(), b("span", {
|
|
380
380
|
key: 1,
|
|
381
381
|
"aria-description": "character count over character limit for the preceding text field",
|
|
382
382
|
class: "bs-character-count",
|
|
383
383
|
"data-error": a.charCount > a.charMax
|
|
384
|
-
},
|
|
384
|
+
}, A(a.charCount || "0") + " / " + A(a.charMax), 9, La)) : C("", !0)
|
|
385
385
|
]));
|
|
386
386
|
}
|
|
387
|
-
},
|
|
387
|
+
}, Ea = ["data-disabled", "for"], le = {
|
|
388
388
|
__name: "BsLabel",
|
|
389
389
|
props: {
|
|
390
390
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -394,24 +394,24 @@ const me = (e, a, t = void 0) => {
|
|
|
394
394
|
},
|
|
395
395
|
setup(e) {
|
|
396
396
|
return (a, t) => (d(), b("label", {
|
|
397
|
-
class:
|
|
397
|
+
class: oe(["bs-label", e.hide ? "visually-hidden" : ""]),
|
|
398
398
|
"data-component": "bs-label",
|
|
399
399
|
"data-disabled": e.disabled,
|
|
400
400
|
for: e.for
|
|
401
401
|
}, [
|
|
402
|
-
|
|
402
|
+
B("span", null, [
|
|
403
403
|
V(a.$slots, "default")
|
|
404
404
|
]),
|
|
405
405
|
e.required ? (d(), b(K, { key: 0 }, [
|
|
406
|
-
t[0] || (t[0] =
|
|
406
|
+
t[0] || (t[0] = B("span", {
|
|
407
407
|
"data-required": "true",
|
|
408
408
|
"aria-hidden": "true"
|
|
409
409
|
}, " *", -1)),
|
|
410
|
-
t[1] || (t[1] =
|
|
410
|
+
t[1] || (t[1] = B("span", { class: "visually-hidden" }, "required", -1))
|
|
411
411
|
], 64)) : C("", !0)
|
|
412
|
-
], 10,
|
|
412
|
+
], 10, Ea));
|
|
413
413
|
}
|
|
414
|
-
},
|
|
414
|
+
}, Da = ["data-error", "id", "value"], ke = {
|
|
415
415
|
__name: "BsInput",
|
|
416
416
|
props: {
|
|
417
417
|
error: {
|
|
@@ -426,7 +426,7 @@ const me = (e, a, t = void 0) => {
|
|
|
426
426
|
},
|
|
427
427
|
emits: ["update:modelValue"],
|
|
428
428
|
setup(e, { emit: a }) {
|
|
429
|
-
const t = e, l = a, n =
|
|
429
|
+
const t = e, l = a, n = se(), i = f(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
430
430
|
function u(o) {
|
|
431
431
|
const s = n.type === "number" ? parseInt(o.target.value) : o.target.value;
|
|
432
432
|
l("update:modelValue", s);
|
|
@@ -438,9 +438,9 @@ const me = (e, a, t = void 0) => {
|
|
|
438
438
|
id: o.$attrs.id || e.inputId,
|
|
439
439
|
value: e.value || e.modelValue,
|
|
440
440
|
onInput: u
|
|
441
|
-
}, i.value), null, 16,
|
|
441
|
+
}, i.value), null, 16, Da));
|
|
442
442
|
}
|
|
443
|
-
},
|
|
443
|
+
}, Pa = ["data-autopad", "data-autosize-icons", "data-disabled", "data-error", "data-variant", "data-multifocus"], De = {
|
|
444
444
|
__name: "BsInputAddon",
|
|
445
445
|
props: {
|
|
446
446
|
autopad: { type: Boolean, default: !1 },
|
|
@@ -462,9 +462,9 @@ const me = (e, a, t = void 0) => {
|
|
|
462
462
|
"data-multifocus": e.multifocus
|
|
463
463
|
}, [
|
|
464
464
|
V(a.$slots, "default")
|
|
465
|
-
], 8,
|
|
465
|
+
], 8, Pa));
|
|
466
466
|
}
|
|
467
|
-
},
|
|
467
|
+
}, qa = {
|
|
468
468
|
__name: "BsInputDateSingle",
|
|
469
469
|
props: {
|
|
470
470
|
disabled: {
|
|
@@ -503,7 +503,7 @@ const me = (e, a, t = void 0) => {
|
|
|
503
503
|
}, {
|
|
504
504
|
default: D(() => [
|
|
505
505
|
P(c(Bt)),
|
|
506
|
-
P(
|
|
506
|
+
P(ke, z({
|
|
507
507
|
"data-autowidth": "",
|
|
508
508
|
disabled: e.disabled,
|
|
509
509
|
id: e.inputId,
|
|
@@ -525,7 +525,7 @@ function Ve(e, a, t) {
|
|
|
525
525
|
}, a);
|
|
526
526
|
};
|
|
527
527
|
}
|
|
528
|
-
const
|
|
528
|
+
const Ma = ["disabled", "id", "model-value"], Na = ["disabled", "id", "model-value"], za = {
|
|
529
529
|
__name: "BsInputDateRange",
|
|
530
530
|
props: {
|
|
531
531
|
disabled: {
|
|
@@ -562,14 +562,14 @@ const Da = ["disabled", "id", "model-value"], Pa = ["disabled", "id", "model-val
|
|
|
562
562
|
},
|
|
563
563
|
emits: ["ui-focusin", "ui-input"],
|
|
564
564
|
setup(e, { emit: a }) {
|
|
565
|
-
const t = e, l = a, n =
|
|
565
|
+
const t = e, l = a, n = $(null), i = $(null);
|
|
566
566
|
function u(v) {
|
|
567
567
|
const h = new Event("change", { bubbles: !0, cancelable: !0 });
|
|
568
568
|
v.dispatchEvent(h);
|
|
569
569
|
}
|
|
570
570
|
function o(v) {
|
|
571
|
-
const { value: h } = v.target, [y,
|
|
572
|
-
n.value.value = y || "", i.value.value =
|
|
571
|
+
const { value: h } = v.target, [y, w] = h.split(/ to | - /);
|
|
572
|
+
n.value.value = y || "", i.value.value = w || "", u(n.value), u(i.value);
|
|
573
573
|
}
|
|
574
574
|
const s = Ve(o, 1e3);
|
|
575
575
|
function r(v) {
|
|
@@ -582,7 +582,7 @@ const Da = ["disabled", "id", "model-value"], Pa = ["disabled", "id", "model-val
|
|
|
582
582
|
}, {
|
|
583
583
|
default: D(() => [
|
|
584
584
|
P(c(Bt)),
|
|
585
|
-
P(
|
|
585
|
+
P(ke, {
|
|
586
586
|
"data-autowidth": "",
|
|
587
587
|
disabled: e.disabled,
|
|
588
588
|
id: e.inputId,
|
|
@@ -593,28 +593,28 @@ const Da = ["disabled", "id", "model-value"], Pa = ["disabled", "id", "model-val
|
|
|
593
593
|
onInput: r,
|
|
594
594
|
onChange: o
|
|
595
595
|
}, null, 8, ["disabled", "id", "model-value", "placeholder", "required"]),
|
|
596
|
-
|
|
596
|
+
B("input", z({
|
|
597
597
|
ref_key: "hiddenStart",
|
|
598
598
|
ref: n,
|
|
599
599
|
type: "hidden",
|
|
600
600
|
disabled: e.disabled,
|
|
601
601
|
id: `${e.inputId}-start`,
|
|
602
602
|
"model-value": e.inputValue.start
|
|
603
|
-
}, Ye(m.value, !0)), null, 16,
|
|
604
|
-
|
|
603
|
+
}, Ye(m.value, !0)), null, 16, Ma),
|
|
604
|
+
B("input", z({
|
|
605
605
|
ref_key: "hiddenEnd",
|
|
606
606
|
ref: i,
|
|
607
607
|
type: "hidden",
|
|
608
608
|
disabled: e.disabled,
|
|
609
609
|
id: `${e.inputId}-end`,
|
|
610
610
|
"model-value": e.inputValue.end
|
|
611
|
-
}, Ye(g.value, !0)), null, 16,
|
|
611
|
+
}, Ye(g.value, !0)), null, 16, Na)
|
|
612
612
|
]),
|
|
613
613
|
_: 1
|
|
614
614
|
}, 8, ["disabled", "error"]));
|
|
615
615
|
}
|
|
616
616
|
};
|
|
617
|
-
function
|
|
617
|
+
function Fa(e) {
|
|
618
618
|
function a(n) {
|
|
619
619
|
var i, u;
|
|
620
620
|
return ((u = (i = n == null ? void 0 : n.classList) == null ? void 0 : i.contains) == null ? void 0 : u.call(i, "vc-arrow")) && (n.classList.contains("vc-prev") || n.classList.contains("vc-next"));
|
|
@@ -639,7 +639,7 @@ function Qe(e, a, t = []) {
|
|
|
639
639
|
l = window.matchMedia(e), l.addEventListener("change", a), a(l);
|
|
640
640
|
}), _e(() => {
|
|
641
641
|
l.removeEventListener("change", a), l = null;
|
|
642
|
-
}), t.length &&
|
|
642
|
+
}), t.length && U(t, () => a(l));
|
|
643
643
|
}
|
|
644
644
|
const tt = [
|
|
645
645
|
"aria-describedby",
|
|
@@ -648,7 +648,7 @@ const tt = [
|
|
|
648
648
|
"form",
|
|
649
649
|
"id",
|
|
650
650
|
"name"
|
|
651
|
-
],
|
|
651
|
+
], Ra = [
|
|
652
652
|
"aria-describedby",
|
|
653
653
|
"aria-label",
|
|
654
654
|
"autocomplete",
|
|
@@ -659,7 +659,7 @@ const tt = [
|
|
|
659
659
|
"multiple",
|
|
660
660
|
"name",
|
|
661
661
|
"size"
|
|
662
|
-
],
|
|
662
|
+
], Wa = [
|
|
663
663
|
"aria-describedby",
|
|
664
664
|
"aria-label",
|
|
665
665
|
"autocapitalize",
|
|
@@ -678,7 +678,7 @@ const tt = [
|
|
|
678
678
|
"rows",
|
|
679
679
|
"spellcheck",
|
|
680
680
|
"wrap"
|
|
681
|
-
],
|
|
681
|
+
], he = [
|
|
682
682
|
"aria-describedby",
|
|
683
683
|
"aria-label",
|
|
684
684
|
"autocapitalize",
|
|
@@ -706,7 +706,7 @@ function Z(e, a = []) {
|
|
|
706
706
|
a.includes(n) ? t[n] = e[n] : l[n] = e[n];
|
|
707
707
|
}), { filtered: t, remaining: l };
|
|
708
708
|
}
|
|
709
|
-
const
|
|
709
|
+
const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
710
710
|
__name: "BsCalendar",
|
|
711
711
|
props: {
|
|
712
712
|
disabled: {
|
|
@@ -773,7 +773,7 @@ const Fa = ["data-range"], mt = "(min-width: 752px)", Lo = /* @__PURE__ */ Objec
|
|
|
773
773
|
},
|
|
774
774
|
emits: ["update:modelValue"],
|
|
775
775
|
setup(e, { emit: a }) {
|
|
776
|
-
const t = e, l =
|
|
776
|
+
const t = e, l = $(null), n = $(1), i = $(null), [u, o] = Q(2), s = $(1), { filtered: r, remaining: m } = Z(se(), [
|
|
777
777
|
"attributes",
|
|
778
778
|
"data-cy",
|
|
779
779
|
"expanded",
|
|
@@ -782,34 +782,34 @@ const Fa = ["data-range"], mt = "(min-width: 752px)", Lo = /* @__PURE__ */ Objec
|
|
|
782
782
|
"masks",
|
|
783
783
|
"rows",
|
|
784
784
|
"trim-weeks"
|
|
785
|
-
]), g = f(() => t.inputId || u.value), v = f(() => ({ range: t.isRange })), h = f(() => !!(t.error && t.errorMsg || t.hint)), y = f(() => t.step),
|
|
786
|
-
|
|
785
|
+
]), g = f(() => t.inputId || u.value), v = f(() => ({ range: t.isRange })), h = f(() => !!(t.error && t.errorMsg || t.hint)), y = f(() => t.step), w = f(() => t.variant);
|
|
786
|
+
Fa(i), Qe(
|
|
787
787
|
mt,
|
|
788
|
-
(
|
|
789
|
-
[
|
|
788
|
+
(I) => n.value = I != null && I.matches && w.value == "2-col" ? 2 : 1,
|
|
789
|
+
[w]
|
|
790
790
|
), Qe(
|
|
791
791
|
mt,
|
|
792
|
-
(
|
|
793
|
-
[y,
|
|
792
|
+
(I) => s.value = I != null && I.matches && w.value == "2-col" ? y.value : 1,
|
|
793
|
+
[y, w]
|
|
794
794
|
), X(() => {
|
|
795
795
|
t.inputMode || k();
|
|
796
|
-
}),
|
|
797
|
-
var
|
|
798
|
-
return (
|
|
799
|
-
}, (
|
|
800
|
-
|
|
796
|
+
}), U(() => {
|
|
797
|
+
var I, q;
|
|
798
|
+
return (q = (I = l.value) == null ? void 0 : I.popoverRef) == null ? void 0 : q.isVisible;
|
|
799
|
+
}, (I) => {
|
|
800
|
+
I && Ae(k);
|
|
801
801
|
});
|
|
802
|
-
function p(
|
|
803
|
-
return t.isRange &&
|
|
802
|
+
function p(I) {
|
|
803
|
+
return t.isRange && I.start && I.end ? `${I.start} to ${I.end}` : !t.isRange && I ? I : "";
|
|
804
804
|
}
|
|
805
|
-
function S(
|
|
806
|
-
!t.isRange || i.value.contains(
|
|
805
|
+
function S(I) {
|
|
806
|
+
!t.isRange || i.value.contains(I.relatedTarget) || l.value.hidePopover();
|
|
807
807
|
}
|
|
808
808
|
function k() {
|
|
809
|
-
const
|
|
810
|
-
|
|
809
|
+
const I = i.value.querySelector("button.vc-prev"), q = i.value.querySelector("button.vc-next");
|
|
810
|
+
I && I.setAttribute("aria-label", "Previous month"), q && q.setAttribute("aria-label", "Next month");
|
|
811
811
|
}
|
|
812
|
-
return (
|
|
812
|
+
return (I, q) => (d(), b("div", z({
|
|
813
813
|
ref_key: "container",
|
|
814
814
|
ref: i,
|
|
815
815
|
class: "bs-calendar",
|
|
@@ -817,20 +817,20 @@ const Fa = ["data-range"], mt = "(min-width: 752px)", Lo = /* @__PURE__ */ Objec
|
|
|
817
817
|
"data-range": e.isRange,
|
|
818
818
|
onFocusout: S
|
|
819
819
|
}, c(m)), [
|
|
820
|
-
e.label ||
|
|
820
|
+
e.label || I.$slots.label ? (d(), O(le, {
|
|
821
821
|
key: 0,
|
|
822
822
|
for: g.value,
|
|
823
823
|
disabled: e.disabled,
|
|
824
824
|
required: e.required
|
|
825
825
|
}, {
|
|
826
826
|
default: D(() => [
|
|
827
|
-
V(
|
|
828
|
-
|
|
827
|
+
V(I.$slots, "label", {}, () => [
|
|
828
|
+
j(A(e.label), 1)
|
|
829
829
|
])
|
|
830
830
|
]),
|
|
831
831
|
_: 3
|
|
832
832
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
833
|
-
P(c(
|
|
833
|
+
P(c(oa), z({
|
|
834
834
|
ref_key: "calendar",
|
|
835
835
|
ref: l,
|
|
836
836
|
columns: n.value,
|
|
@@ -843,30 +843,30 @@ const Fa = ["data-range"], mt = "(min-width: 752px)", Lo = /* @__PURE__ */ Objec
|
|
|
843
843
|
popover: { visibility: "focus" },
|
|
844
844
|
rows: 1,
|
|
845
845
|
step: s.value,
|
|
846
|
-
"onUpdate:modelValue":
|
|
846
|
+
"onUpdate:modelValue": q[0] || (q[0] = (T) => I.$emit("update:modelValue", T))
|
|
847
847
|
}, c(r)), Ze({ _: 2 }, [
|
|
848
848
|
e.inputMode ? {
|
|
849
849
|
name: "default",
|
|
850
|
-
fn: D(({ inputValue:
|
|
851
|
-
e.isRange ? (d(), O(
|
|
850
|
+
fn: D(({ inputValue: T, inputEvents: L, showPopover: F }) => [
|
|
851
|
+
e.isRange ? (d(), O(za, {
|
|
852
852
|
key: 1,
|
|
853
853
|
disabled: e.disabled,
|
|
854
854
|
error: e.error,
|
|
855
855
|
"input-id": g.value,
|
|
856
|
-
"input-value":
|
|
857
|
-
"input-value-fmt": p(
|
|
856
|
+
"input-value": T,
|
|
857
|
+
"input-value-fmt": p(T),
|
|
858
858
|
listeners: L,
|
|
859
859
|
placeholder: e.placeholder,
|
|
860
860
|
required: e.required,
|
|
861
|
-
onUiFocusin:
|
|
862
|
-
onUiInput:
|
|
863
|
-
}, null, 8, ["disabled", "error", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (d(), O(
|
|
861
|
+
onUiFocusin: F,
|
|
862
|
+
onUiInput: F
|
|
863
|
+
}, null, 8, ["disabled", "error", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (d(), O(qa, {
|
|
864
864
|
key: 0,
|
|
865
865
|
disabled: e.disabled,
|
|
866
866
|
error: e.error,
|
|
867
867
|
"input-id": g.value,
|
|
868
868
|
listeners: L,
|
|
869
|
-
"model-value": p(
|
|
869
|
+
"model-value": p(T),
|
|
870
870
|
placeholder: e.placeholder,
|
|
871
871
|
required: e.required
|
|
872
872
|
}, null, 8, ["disabled", "error", "input-id", "listeners", "model-value", "placeholder", "required"]))
|
|
@@ -874,19 +874,19 @@ const Fa = ["data-range"], mt = "(min-width: 752px)", Lo = /* @__PURE__ */ Objec
|
|
|
874
874
|
key: "0"
|
|
875
875
|
} : void 0
|
|
876
876
|
]), 1040, ["columns", "disabled-dates", "max-date", "min-date", "model-value", "model-modifiers", "step"]),
|
|
877
|
-
h.value ? (d(), O(
|
|
877
|
+
h.value ? (d(), O(ye, {
|
|
878
878
|
key: 1,
|
|
879
879
|
error: e.error,
|
|
880
880
|
"error-msg": e.errorMsg,
|
|
881
881
|
hint: e.hint,
|
|
882
882
|
"hint-id": c(o)
|
|
883
883
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : C("", !0)
|
|
884
|
-
], 16,
|
|
884
|
+
], 16, ja));
|
|
885
885
|
}
|
|
886
|
-
}),
|
|
886
|
+
}), Ua = { key: 0 }, Ga = {
|
|
887
887
|
class: "bs-circle-button-icon",
|
|
888
888
|
role: "presentation"
|
|
889
|
-
},
|
|
889
|
+
}, Ha = { key: 1 }, Tt = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
890
890
|
__name: "BsCircleButton",
|
|
891
891
|
props: {
|
|
892
892
|
disabled: {
|
|
@@ -935,7 +935,7 @@ const Fa = ["data-range"], mt = "(min-width: 752px)", Lo = /* @__PURE__ */ Objec
|
|
|
935
935
|
}
|
|
936
936
|
},
|
|
937
937
|
setup(e) {
|
|
938
|
-
const a = e, t =
|
|
938
|
+
const a = e, t = se(), l = et(), { rootTag: n, attrsToBind: i, hrefUrl: u } = ze(a, t), { onLinkClick: o } = Fe(a), s = f(() => g.value ? {} : a.href ? { title: a.label } : { "aria-label": a.label }), r = f(() => {
|
|
939
939
|
if (a.hoverEffect)
|
|
940
940
|
return a.iconPosition;
|
|
941
941
|
}), m = f(() => {
|
|
@@ -943,8 +943,8 @@ const Fa = ["data-range"], mt = "(min-width: 752px)", Lo = /* @__PURE__ */ Objec
|
|
|
943
943
|
return {
|
|
944
944
|
icon: a.icon || (a.textBtn || a.size == "sm" ? `small-${p}` : p)
|
|
945
945
|
};
|
|
946
|
-
}), g = f(() => a.textBtn || !!(l != null && l.default)), v = f(() => g.value && a.iconPosition !== "left"), h = f(() => g.value && a.iconPosition === "left"), y = f(() => a.variant ? `color-${a.variant}` : void 0), { icon:
|
|
947
|
-
return (p, S) => (d(), O(
|
|
946
|
+
}), g = f(() => a.textBtn || !!(l != null && l.default)), v = f(() => g.value && a.iconPosition !== "left"), h = f(() => g.value && a.iconPosition === "left"), y = f(() => a.variant ? `color-${a.variant}` : void 0), { icon: w } = Oe(m, "icon");
|
|
947
|
+
return (p, S) => (d(), O(ne(c(n)), z({
|
|
948
948
|
class: "bs-circle-button",
|
|
949
949
|
"data-disabled": e.disabled,
|
|
950
950
|
"data-direction": r.value,
|
|
@@ -956,26 +956,26 @@ const Fa = ["data-range"], mt = "(min-width: 752px)", Lo = /* @__PURE__ */ Objec
|
|
|
956
956
|
".href": c(u)
|
|
957
957
|
}, { ...c(i), ...s.value }, { onClick: c(o) }), {
|
|
958
958
|
default: D(() => [
|
|
959
|
-
v.value ? (d(), b("span",
|
|
959
|
+
v.value ? (d(), b("span", Ua, [
|
|
960
960
|
V(p.$slots, "default", {}, () => [
|
|
961
|
-
|
|
961
|
+
j(A(e.label), 1)
|
|
962
962
|
])
|
|
963
963
|
])) : C("", !0),
|
|
964
|
-
|
|
964
|
+
B("span", Ga, [
|
|
965
965
|
V(p.$slots, "icon", {}, () => [
|
|
966
|
-
(d(), O(
|
|
966
|
+
(d(), O(ne(c(w))))
|
|
967
967
|
])
|
|
968
968
|
]),
|
|
969
|
-
h.value ? (d(), b("span",
|
|
969
|
+
h.value ? (d(), b("span", Ha, [
|
|
970
970
|
V(p.$slots, "default", {}, () => [
|
|
971
|
-
|
|
971
|
+
j(A(e.label), 1)
|
|
972
972
|
])
|
|
973
973
|
])) : C("", !0)
|
|
974
974
|
]),
|
|
975
975
|
_: 3
|
|
976
976
|
}, 48, ["data-disabled", "data-direction", "data-ghost", "data-size", "data-text", "data-variant", ".href", "onClick"]));
|
|
977
977
|
}
|
|
978
|
-
}),
|
|
978
|
+
}), qo = {
|
|
979
979
|
__name: "BsCaretButton",
|
|
980
980
|
props: {
|
|
981
981
|
direction: {
|
|
@@ -1026,7 +1026,7 @@ const Fa = ["data-range"], mt = "(min-width: 752px)", Lo = /* @__PURE__ */ Objec
|
|
|
1026
1026
|
_: 1
|
|
1027
1027
|
}, 8, ["disabled", "ghost-btn", "hover-effect", "icon-position", "label", "link-to", "router", "size"]));
|
|
1028
1028
|
}
|
|
1029
|
-
},
|
|
1029
|
+
}, Mo = {
|
|
1030
1030
|
__name: "BsCaretTextButton",
|
|
1031
1031
|
props: {
|
|
1032
1032
|
direction: {
|
|
@@ -1078,20 +1078,20 @@ const Fa = ["data-range"], mt = "(min-width: 752px)", Lo = /* @__PURE__ */ Objec
|
|
|
1078
1078
|
variant: e.variant
|
|
1079
1079
|
}, {
|
|
1080
1080
|
icon: D(() => [
|
|
1081
|
-
e.direction == "right" ? (d(), O(c(
|
|
1081
|
+
e.direction == "right" ? (d(), O(c(Gt), { key: 0 })) : (d(), O(c(Ht), { key: 1 }))
|
|
1082
1082
|
]),
|
|
1083
1083
|
default: D(() => [
|
|
1084
1084
|
V(a.$slots, "default", {}, () => [
|
|
1085
|
-
|
|
1085
|
+
j(A(e.label), 1)
|
|
1086
1086
|
])
|
|
1087
1087
|
]),
|
|
1088
1088
|
_: 3
|
|
1089
1089
|
}, 8, ["disabled", "ghost-btn", "hover-effect", "icon-position", "label", "link-to", "router", "size", "variant"]));
|
|
1090
1090
|
}
|
|
1091
|
-
},
|
|
1091
|
+
}, Ka = {
|
|
1092
1092
|
class: "bs-chart-table",
|
|
1093
1093
|
"data-component": "bs-chart-table"
|
|
1094
|
-
},
|
|
1094
|
+
}, Ya = ["summary"], Za = ["colspan"], Xa = { scope: "col" }, Qa = { scope: "row" }, Ja = {
|
|
1095
1095
|
__name: "BsChartTable",
|
|
1096
1096
|
props: {
|
|
1097
1097
|
chartType: {
|
|
@@ -1125,7 +1125,7 @@ const Fa = ["data-range"], mt = "(min-width: 752px)", Lo = /* @__PURE__ */ Objec
|
|
|
1125
1125
|
}
|
|
1126
1126
|
},
|
|
1127
1127
|
setup(e) {
|
|
1128
|
-
const a = e, t =
|
|
1128
|
+
const a = e, t = $(!1), l = (m) => {
|
|
1129
1129
|
const g = new Date(m), v = g.toTimeString().split(" ")[0], h = g.toDateString().split(" ").slice(1, 3).join(" ");
|
|
1130
1130
|
return `${v} (${h})`;
|
|
1131
1131
|
}, n = f(() => {
|
|
@@ -1138,8 +1138,8 @@ const Fa = ["data-range"], mt = "(min-width: 752px)", Lo = /* @__PURE__ */ Objec
|
|
|
1138
1138
|
const v = g.label;
|
|
1139
1139
|
let h = [];
|
|
1140
1140
|
if (g.data.some((y) => (y == null ? void 0 : y.x) && (y == null ? void 0 : y.y))) {
|
|
1141
|
-
const y = g.data.reduce((
|
|
1142
|
-
h = a.dataIdxLabels.map((
|
|
1141
|
+
const y = g.data.reduce((w, p) => (w[p.x] = p.y, w), {});
|
|
1142
|
+
h = a.dataIdxLabels.map((w) => ({ value: y[w] ?? null }));
|
|
1143
1143
|
} else
|
|
1144
1144
|
h = g.data.map((y) => ({ value: y }));
|
|
1145
1145
|
return { rowLabel: v, dataCells: h };
|
|
@@ -1150,16 +1150,16 @@ const Fa = ["data-range"], mt = "(min-width: 752px)", Lo = /* @__PURE__ */ Objec
|
|
|
1150
1150
|
}
|
|
1151
1151
|
function u(m) {
|
|
1152
1152
|
try {
|
|
1153
|
-
const g = m.reduce((y,
|
|
1154
|
-
const p =
|
|
1153
|
+
const g = m.reduce((y, w) => {
|
|
1154
|
+
const p = w.data.map((S) => S == null ? void 0 : S.x);
|
|
1155
1155
|
return [...y, ...p];
|
|
1156
1156
|
}, []), v = Array.from(new Set(g));
|
|
1157
|
-
return (a.xAxisType === "time" || a.xAxisType === "linear") && v.sort((y,
|
|
1158
|
-
const
|
|
1157
|
+
return (a.xAxisType === "time" || a.xAxisType === "linear") && v.sort((y, w) => (typeof y == "string" && typeof w == "string" && (y = y.toLowerCase(), w = w.toLowerCase()), y < w ? -1 : y > w ? 1 : 0)), v.map((y) => {
|
|
1158
|
+
const w = { rowLabel: y }, p = [];
|
|
1159
1159
|
return m.forEach((S) => {
|
|
1160
|
-
const k = { datasetLabel: S.label },
|
|
1161
|
-
k.value =
|
|
1162
|
-
}),
|
|
1160
|
+
const k = { datasetLabel: S.label }, I = S.data.find((q) => q.x === y);
|
|
1161
|
+
k.value = I ? I.y : null, p.push(k);
|
|
1162
|
+
}), w.dataCells = p, a.xAxisType === "time" && (w.rowLabelFmt = l(y)), w;
|
|
1163
1163
|
});
|
|
1164
1164
|
} catch {
|
|
1165
1165
|
return [];
|
|
@@ -1177,41 +1177,41 @@ const Fa = ["data-range"], mt = "(min-width: 752px)", Lo = /* @__PURE__ */ Objec
|
|
|
1177
1177
|
});
|
|
1178
1178
|
return X(() => {
|
|
1179
1179
|
t.value = !0;
|
|
1180
|
-
}), (m, g) => (d(), b("div",
|
|
1180
|
+
}), (m, g) => (d(), b("div", Ka, [
|
|
1181
1181
|
r.value ? (d(), b("table", {
|
|
1182
1182
|
key: 0,
|
|
1183
1183
|
summary: s.value.title
|
|
1184
1184
|
}, [
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1185
|
+
B("thead", null, [
|
|
1186
|
+
B("tr", null, [
|
|
1187
|
+
B("th", {
|
|
1188
1188
|
colspan: s.value.colspan
|
|
1189
|
-
},
|
|
1189
|
+
}, A(s.value.title), 9, Za)
|
|
1190
1190
|
]),
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
(d(!0), b(K, null,
|
|
1191
|
+
B("tr", null, [
|
|
1192
|
+
B("th", Xa, A(s.value.colHeadingFirst), 1),
|
|
1193
|
+
(d(!0), b(K, null, ae(s.value.colHeadings, (v) => (d(), b("th", {
|
|
1194
1194
|
key: v,
|
|
1195
1195
|
scope: "col"
|
|
1196
|
-
},
|
|
1196
|
+
}, A(v), 1))), 128))
|
|
1197
1197
|
])
|
|
1198
1198
|
]),
|
|
1199
|
-
|
|
1200
|
-
(d(!0), b(K, null,
|
|
1199
|
+
B("tbody", null, [
|
|
1200
|
+
(d(!0), b(K, null, ae(s.value.rows, (v) => (d(), b("tr", {
|
|
1201
1201
|
key: v.rowLabelFmt || v.rowLabel
|
|
1202
1202
|
}, [
|
|
1203
|
-
|
|
1204
|
-
(d(!0), b(K, null,
|
|
1203
|
+
B("th", Qa, A(v.rowLabelFmt || v.rowLabel), 1),
|
|
1204
|
+
(d(!0), b(K, null, ae(v.dataCells, (h) => (d(), b("td", {
|
|
1205
1205
|
key: `${v.rowLabelFmt || v.rowLabel}${h.datasetLabel}${h.value}`
|
|
1206
|
-
},
|
|
1206
|
+
}, A(h.value), 1))), 128))
|
|
1207
1207
|
]))), 128))
|
|
1208
1208
|
])
|
|
1209
|
-
], 8,
|
|
1209
|
+
], 8, Ya)) : C("", !0)
|
|
1210
1210
|
]));
|
|
1211
1211
|
}
|
|
1212
|
-
}, Le = 16,
|
|
1213
|
-
function
|
|
1214
|
-
const t =
|
|
1212
|
+
}, Le = 16, _a = 20;
|
|
1213
|
+
function en(e, a) {
|
|
1214
|
+
const t = $(null), l = $(!1), n = $(null), i = "(min-width: 1166px)", u = { tickSize: Le }, o = { tickSize: _a };
|
|
1215
1215
|
let s, r;
|
|
1216
1216
|
function m(p, S) {
|
|
1217
1217
|
let k;
|
|
@@ -1225,27 +1225,27 @@ function Qa(e, a) {
|
|
|
1225
1225
|
default:
|
|
1226
1226
|
throw new Error(`Unsupported chart type: ${p}`);
|
|
1227
1227
|
}
|
|
1228
|
-
return new
|
|
1228
|
+
return new rn().setCommonConfigs(S).setCustomOptions(S)[k](S).setPlugins([tn(n), ia]).build();
|
|
1229
1229
|
}
|
|
1230
1230
|
function g(p) {
|
|
1231
1231
|
p.preventDefault(), p.stopImmediatePropagation();
|
|
1232
1232
|
const S = p.target.closest("li");
|
|
1233
1233
|
if (S && s) {
|
|
1234
|
-
const { labelIndex: k, datasetIndex:
|
|
1235
|
-
s.setDatasetVisibility(
|
|
1234
|
+
const { labelIndex: k, datasetIndex: I } = S.dataset;
|
|
1235
|
+
s.setDatasetVisibility(I, !s.isDatasetVisible(I)), s.update(), p.preventDefault(), p.stopImmediatePropagation(), v(I, k);
|
|
1236
1236
|
}
|
|
1237
1237
|
}
|
|
1238
1238
|
function v(p, S) {
|
|
1239
|
-
var
|
|
1240
|
-
const k = `[data-dataset-index="${p}"][data-label-index="${S}"]`,
|
|
1241
|
-
(
|
|
1239
|
+
var q;
|
|
1240
|
+
const k = `[data-dataset-index="${p}"][data-label-index="${S}"]`, I = n.value.querySelector(k);
|
|
1241
|
+
(q = I == null ? void 0 : I.focus) == null || q.call(I);
|
|
1242
1242
|
}
|
|
1243
1243
|
function h(...p) {
|
|
1244
|
-
!r || !t.value || (
|
|
1244
|
+
!r || !t.value || (We.register(...p), We.defaults.font.family = "'Roobert', sans-serif", s = new We(t.value, r));
|
|
1245
1245
|
}
|
|
1246
1246
|
const y = Ve(function(p) {
|
|
1247
1247
|
r && (r.updateOptions(p), s.options = r.options, s.update());
|
|
1248
|
-
}, 100),
|
|
1248
|
+
}, 100), w = Ve(function(p) {
|
|
1249
1249
|
r && (r.updateData(p), s.data = r.data, s.update());
|
|
1250
1250
|
}, 100);
|
|
1251
1251
|
return Qe(
|
|
@@ -1259,10 +1259,10 @@ function Qa(e, a) {
|
|
|
1259
1259
|
} catch (S) {
|
|
1260
1260
|
console.error("Error creating chart config", S), r = null;
|
|
1261
1261
|
}
|
|
1262
|
-
}),
|
|
1262
|
+
}), be([" ", "Enter"], g, n), _e(() => {
|
|
1263
1263
|
var p;
|
|
1264
1264
|
(p = n.value) == null || p.removeEventListener("click", g), s == null || s.destroy();
|
|
1265
|
-
}),
|
|
1265
|
+
}), U([
|
|
1266
1266
|
() => a.customOptions,
|
|
1267
1267
|
() => a.showTooltips,
|
|
1268
1268
|
() => a.showXGrid,
|
|
@@ -1272,19 +1272,19 @@ function Qa(e, a) {
|
|
|
1272
1272
|
() => a.yLabel,
|
|
1273
1273
|
() => a.yMin,
|
|
1274
1274
|
() => a.yMax
|
|
1275
|
-
], () => y(a)),
|
|
1275
|
+
], () => y(a)), U(
|
|
1276
1276
|
l,
|
|
1277
1277
|
(p) => y(Ne(
|
|
1278
1278
|
{},
|
|
1279
1279
|
a,
|
|
1280
1280
|
p ? o : u
|
|
1281
1281
|
))
|
|
1282
|
-
),
|
|
1282
|
+
), U(
|
|
1283
1283
|
[
|
|
1284
1284
|
() => a.data,
|
|
1285
1285
|
() => a.dataIdxLabels
|
|
1286
1286
|
],
|
|
1287
|
-
() =>
|
|
1287
|
+
() => w(a),
|
|
1288
1288
|
{ deep: !0 }
|
|
1289
1289
|
), {
|
|
1290
1290
|
canvasRef: t,
|
|
@@ -1292,7 +1292,7 @@ function Qa(e, a) {
|
|
|
1292
1292
|
registerChart: h
|
|
1293
1293
|
};
|
|
1294
1294
|
}
|
|
1295
|
-
const
|
|
1295
|
+
const tn = (e) => ({
|
|
1296
1296
|
id: "htmlLegend",
|
|
1297
1297
|
afterUpdate(a) {
|
|
1298
1298
|
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) => {
|
|
@@ -1358,10 +1358,10 @@ function at(e, a = 1) {
|
|
|
1358
1358
|
], l = t[e % t.length], n = Math.floor(e / t.length) + a;
|
|
1359
1359
|
return `rgba(${l.toString()}, ${1 / n})`;
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function an(e) {
|
|
1362
1362
|
return at(e);
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function nn(e) {
|
|
1365
1365
|
return {
|
|
1366
1366
|
maintainAspectRatio: !1,
|
|
1367
1367
|
plugins: {
|
|
@@ -1468,7 +1468,7 @@ class At {
|
|
|
1468
1468
|
return a;
|
|
1469
1469
|
}
|
|
1470
1470
|
}
|
|
1471
|
-
class
|
|
1471
|
+
class ln extends At {
|
|
1472
1472
|
constructor({ data: a, options: t, plugins: l }) {
|
|
1473
1473
|
super({ type: "bar", data: a, options: t, plugins: l });
|
|
1474
1474
|
}
|
|
@@ -1492,7 +1492,7 @@ class tn extends At {
|
|
|
1492
1492
|
this.options = n;
|
|
1493
1493
|
}
|
|
1494
1494
|
}
|
|
1495
|
-
class
|
|
1495
|
+
class on extends At {
|
|
1496
1496
|
constructor({ data: a, options: t, plugins: l }) {
|
|
1497
1497
|
super({ type: "line", data: a, options: t, plugins: l });
|
|
1498
1498
|
}
|
|
@@ -1500,7 +1500,7 @@ class an extends At {
|
|
|
1500
1500
|
return a.map((t, l) => ({
|
|
1501
1501
|
...t,
|
|
1502
1502
|
backgroundColor: at(l, 2),
|
|
1503
|
-
borderColor:
|
|
1503
|
+
borderColor: an(l),
|
|
1504
1504
|
borderWidth: 4
|
|
1505
1505
|
}));
|
|
1506
1506
|
}
|
|
@@ -1517,7 +1517,7 @@ class an extends At {
|
|
|
1517
1517
|
this.options = n;
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
|
-
class
|
|
1520
|
+
class rn {
|
|
1521
1521
|
constructor() {
|
|
1522
1522
|
return this;
|
|
1523
1523
|
}
|
|
@@ -1534,7 +1534,7 @@ class nn {
|
|
|
1534
1534
|
*/
|
|
1535
1535
|
setCommonConfigs(a) {
|
|
1536
1536
|
const { data: t } = a;
|
|
1537
|
-
return this.commonOptionsBasic =
|
|
1537
|
+
return this.commonOptionsBasic = nn(a), this.commonOptionsStrict = nt(), this.datasets = t, this;
|
|
1538
1538
|
}
|
|
1539
1539
|
setCustomOptions(a) {
|
|
1540
1540
|
return this.customOptions = a.customOptions, this;
|
|
@@ -1586,18 +1586,18 @@ class nn {
|
|
|
1586
1586
|
};
|
|
1587
1587
|
switch (this.type) {
|
|
1588
1588
|
case "bar":
|
|
1589
|
-
return new
|
|
1589
|
+
return new ln(a);
|
|
1590
1590
|
case "line":
|
|
1591
|
-
return new
|
|
1591
|
+
return new on(a);
|
|
1592
1592
|
default:
|
|
1593
1593
|
throw new Error(`Unsupported chart type: ${this.type}`);
|
|
1594
1594
|
}
|
|
1595
1595
|
}
|
|
1596
1596
|
}
|
|
1597
|
-
const
|
|
1597
|
+
const sn = {
|
|
1598
1598
|
class: "bs-chart bs-chart-bar",
|
|
1599
1599
|
"data-component": "bs-chart-bar"
|
|
1600
|
-
},
|
|
1600
|
+
}, dn = ["aria-label"], un = ["data-hidden"], No = {
|
|
1601
1601
|
__name: "BsChartBar",
|
|
1602
1602
|
props: {
|
|
1603
1603
|
chartTitle: {
|
|
@@ -1668,27 +1668,27 @@ const ln = {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
},
|
|
1670
1670
|
setup(e) {
|
|
1671
|
-
const a = e, { canvasRef: t, legendListRef: l, registerChart: n } =
|
|
1671
|
+
const a = e, { canvasRef: t, legendListRef: l, registerChart: n } = en("bar", a), i = f(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`);
|
|
1672
1672
|
return X(() => n(
|
|
1673
|
-
la,
|
|
1674
|
-
oa,
|
|
1675
|
-
ia,
|
|
1676
1673
|
ra,
|
|
1677
1674
|
sa,
|
|
1678
1675
|
da,
|
|
1679
|
-
ua
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1676
|
+
ua,
|
|
1677
|
+
ca,
|
|
1678
|
+
fa,
|
|
1679
|
+
pa
|
|
1680
|
+
)), (u, o) => (d(), b("div", sn, [
|
|
1681
|
+
B("figure", null, [
|
|
1682
|
+
B("div", null, [
|
|
1683
|
+
B("canvas", {
|
|
1684
1684
|
"aria-label": i.value,
|
|
1685
1685
|
ref_key: "canvasRef",
|
|
1686
1686
|
ref: t,
|
|
1687
1687
|
role: "img"
|
|
1688
|
-
}, null, 8,
|
|
1688
|
+
}, null, 8, dn)
|
|
1689
1689
|
]),
|
|
1690
|
-
|
|
1691
|
-
P(
|
|
1690
|
+
B("div", null, [
|
|
1691
|
+
P(Ja, {
|
|
1692
1692
|
"chart-type": "bar",
|
|
1693
1693
|
data: e.data,
|
|
1694
1694
|
"data-idx-labels": e.dataIdxLabels,
|
|
@@ -1697,19 +1697,19 @@ const ln = {
|
|
|
1697
1697
|
"x-label": e.xLabel,
|
|
1698
1698
|
"y-label": e.yLabel
|
|
1699
1699
|
}, null, 8, ["data", "data-idx-labels", "table-title", "x-axis-type", "x-label", "y-label"]),
|
|
1700
|
-
|
|
1700
|
+
B("figcaption", {
|
|
1701
1701
|
"data-hidden": !e.showLegend
|
|
1702
1702
|
}, [
|
|
1703
|
-
|
|
1703
|
+
B("ul", {
|
|
1704
1704
|
ref_key: "legendListRef",
|
|
1705
1705
|
ref: l
|
|
1706
1706
|
}, null, 512)
|
|
1707
|
-
], 8,
|
|
1707
|
+
], 8, un)
|
|
1708
1708
|
])
|
|
1709
1709
|
])
|
|
1710
1710
|
]));
|
|
1711
1711
|
}
|
|
1712
|
-
},
|
|
1712
|
+
}, cn = ["data-disabled", "data-error", "data-size"], fn = ["checked", "data-error", "disabled", "id", "required", "value"], zo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1713
1713
|
__name: "BsCheckbox",
|
|
1714
1714
|
props: {
|
|
1715
1715
|
/** Sets the label. */
|
|
@@ -1772,7 +1772,7 @@ const ln = {
|
|
|
1772
1772
|
},
|
|
1773
1773
|
emits: ["update:modelValue"],
|
|
1774
1774
|
setup(e, { emit: a }) {
|
|
1775
|
-
const t = e, l = a, [n] = Q(), i = f(() => tt.concat(t.passAttrs.split(","))), u =
|
|
1775
|
+
const t = e, l = a, [n] = Q(), i = f(() => tt.concat(t.passAttrs.split(","))), u = $(null), o = f(() => t.inputId || n.value), s = f(() => t.checked || g.value), r = f(() => t.indeterminate || t.checkedPartially), m = f(() => Array.isArray(t.modelValue) && t.value), g = f(() => m.value && t.modelValue.includes(t.value) || typeof t.modelValue == "boolean" && t.modelValue);
|
|
1776
1776
|
function v() {
|
|
1777
1777
|
u.value && (u.value.indeterminate = r.value && !s.value);
|
|
1778
1778
|
}
|
|
@@ -1783,18 +1783,18 @@ const ln = {
|
|
|
1783
1783
|
const S = [...t.modelValue];
|
|
1784
1784
|
p ? S.push(t.value) : S.splice(S.indexOf(t.value), 1), l("update:modelValue", S);
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function w(p) {
|
|
1787
1787
|
const { checked: S } = p.target;
|
|
1788
1788
|
m.value ? y(S) : h(S);
|
|
1789
1789
|
}
|
|
1790
|
-
return
|
|
1790
|
+
return U(s, v), U(r, v), X(v), (p, S) => (d(), b("div", z({
|
|
1791
1791
|
class: "bs-boolean",
|
|
1792
1792
|
"data-component": "bs-checkbox",
|
|
1793
1793
|
"data-disabled": e.disabled,
|
|
1794
1794
|
"data-error": e.error,
|
|
1795
1795
|
"data-size": e.size
|
|
1796
1796
|
}, c(Z)(p.$attrs, i.value).remaining), [
|
|
1797
|
-
|
|
1797
|
+
B("input", z({
|
|
1798
1798
|
ref_key: "inputEl",
|
|
1799
1799
|
ref: u,
|
|
1800
1800
|
checked: s.value,
|
|
@@ -1804,9 +1804,9 @@ const ln = {
|
|
|
1804
1804
|
required: e.required,
|
|
1805
1805
|
value: e.value || "on",
|
|
1806
1806
|
type: "checkbox",
|
|
1807
|
-
onChange:
|
|
1808
|
-
}, c(Z)(p.$attrs, i.value).filtered), null, 16,
|
|
1809
|
-
e.label || p.$slots.label ? (d(), O(
|
|
1807
|
+
onChange: w
|
|
1808
|
+
}, c(Z)(p.$attrs, i.value).filtered), null, 16, fn),
|
|
1809
|
+
e.label || p.$slots.label ? (d(), O(le, {
|
|
1810
1810
|
key: 0,
|
|
1811
1811
|
for: p.$attrs.id || o.value,
|
|
1812
1812
|
disabled: e.disabled,
|
|
@@ -1814,14 +1814,14 @@ const ln = {
|
|
|
1814
1814
|
}, {
|
|
1815
1815
|
default: D(() => [
|
|
1816
1816
|
V(p.$slots, "label", {}, () => [
|
|
1817
|
-
|
|
1817
|
+
j(A(e.label), 1)
|
|
1818
1818
|
])
|
|
1819
1819
|
]),
|
|
1820
1820
|
_: 3
|
|
1821
1821
|
}, 8, ["for", "disabled", "required"])) : C("", !0)
|
|
1822
|
-
], 16,
|
|
1822
|
+
], 16, cn));
|
|
1823
1823
|
}
|
|
1824
|
-
}),
|
|
1824
|
+
}), pn = {
|
|
1825
1825
|
__name: "BsDropdownContainer",
|
|
1826
1826
|
props: {
|
|
1827
1827
|
breakout: {
|
|
@@ -1842,9 +1842,9 @@ const ln = {
|
|
|
1842
1842
|
}
|
|
1843
1843
|
},
|
|
1844
1844
|
setup(e, { expose: a }) {
|
|
1845
|
-
const t =
|
|
1845
|
+
const t = $(null);
|
|
1846
1846
|
return a({ internalContainerRef: t }), (l, n) => (d(), b(K, null, [
|
|
1847
|
-
e.breakout && e.breakoutMounted ? (d(), O(
|
|
1847
|
+
e.breakout && e.breakoutMounted ? (d(), O(jt, {
|
|
1848
1848
|
key: 0,
|
|
1849
1849
|
to: e.breakoutStub
|
|
1850
1850
|
}, [
|
|
@@ -1894,7 +1894,7 @@ const ln = {
|
|
|
1894
1894
|
],
|
|
1895
1895
|
setup(e, { emit: a }) {
|
|
1896
1896
|
const t = a;
|
|
1897
|
-
return (l, n) => e.preloaded ?
|
|
1897
|
+
return (l, n) => e.preloaded ? ce((d(), O(dt, {
|
|
1898
1898
|
key: 0,
|
|
1899
1899
|
name: e.name,
|
|
1900
1900
|
onBeforeEnter: n[0] || (n[0] = (i) => t("before-enter")),
|
|
@@ -1911,7 +1911,7 @@ const ln = {
|
|
|
1911
1911
|
]),
|
|
1912
1912
|
_: 3
|
|
1913
1913
|
}, 8, ["name"])), [
|
|
1914
|
-
[
|
|
1914
|
+
[fe, e.shown]
|
|
1915
1915
|
]) : (d(), O(dt, {
|
|
1916
1916
|
key: 1,
|
|
1917
1917
|
name: e.name,
|
|
@@ -1930,19 +1930,19 @@ const ln = {
|
|
|
1930
1930
|
_: 3
|
|
1931
1931
|
}, 8, ["name"]));
|
|
1932
1932
|
}
|
|
1933
|
-
},
|
|
1934
|
-
const l =
|
|
1933
|
+
}, mn = (e, a = void 0, t = "relative") => {
|
|
1934
|
+
const l = $(null), n = $(null), i = $(!1);
|
|
1935
1935
|
let u = !1;
|
|
1936
1936
|
return X(() => {
|
|
1937
1937
|
e && (l.value = a || yt(), document.getElementById(l.value) ? (n.value = document.getElementById(l.value), u = !0) : (n.value = document.createElement("div"), n.value.id = l.value, n.value.style.position = t, document.body.insertAdjacentElement("afterbegin", n.value)), i.value = !0);
|
|
1938
|
-
}),
|
|
1938
|
+
}), $e(() => {
|
|
1939
1939
|
var o;
|
|
1940
1940
|
e && !u && ((o = document.getElementById(l.value)) == null || o.remove());
|
|
1941
1941
|
}), { breakoutId: l, breakoutStub: n, breakoutMounted: i };
|
|
1942
|
-
},
|
|
1942
|
+
}, bn = {
|
|
1943
1943
|
key: 0,
|
|
1944
1944
|
class: "bs-dropdown-backdrop"
|
|
1945
|
-
},
|
|
1945
|
+
}, hn = ["data-width", "data-shown", "data-no-mobile"], vn = { key: 0 }, gn = { key: 0 }, yn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1946
1946
|
__name: "BsDropdownNew",
|
|
1947
1947
|
props: {
|
|
1948
1948
|
anchorId: {
|
|
@@ -1995,60 +1995,60 @@ const ln = {
|
|
|
1995
1995
|
"after-leave"
|
|
1996
1996
|
],
|
|
1997
1997
|
setup(e, { emit: a }) {
|
|
1998
|
-
const t = e, l = a, n =
|
|
1998
|
+
const t = e, l = a, n = $(null), i = $(null), u = $(!1), o = $(!1), s = f(() => document.getElementById(t.anchorId)), r = f(() => t.breakout ? g.value : t.containerId ? document.getElementById(t.containerId) : n.value.internalContainerRef), m = f(() => t.width === "anchor" ? void 0 : t.width);
|
|
1999
1999
|
Ct([i, s], () => {
|
|
2000
2000
|
o.value && l("close");
|
|
2001
|
-
}),
|
|
2001
|
+
}), be(["Escape"], () => {
|
|
2002
2002
|
o.value && l("close");
|
|
2003
2003
|
});
|
|
2004
|
-
const { breakoutStub: g, breakoutMounted: v } =
|
|
2005
|
-
|
|
2006
|
-
const h = (
|
|
2007
|
-
i.value.style.setProperty(
|
|
2004
|
+
const { breakoutStub: g, breakoutMounted: v } = mn(t.breakout, t.containerId);
|
|
2005
|
+
pe("dropdownEnter", u), pe("dropdownAfterEnter", o), pe("dropdownShown", f(() => t.shown));
|
|
2006
|
+
const h = (T, L) => {
|
|
2007
|
+
i.value.style.setProperty(T, L);
|
|
2008
2008
|
};
|
|
2009
2009
|
function y() {
|
|
2010
|
-
const
|
|
2011
|
-
|
|
2010
|
+
const T = r.value.getBoundingClientRect(), L = s.value.getBoundingClientRect(), F = i.value.getBoundingClientRect();
|
|
2011
|
+
w(T, L), p(T, L, F);
|
|
2012
2012
|
}
|
|
2013
|
-
function
|
|
2013
|
+
function w(T, L) {
|
|
2014
2014
|
if (t.position === "top") {
|
|
2015
|
-
const
|
|
2016
|
-
h("--dropdown-wscreen-top", "auto"), h("--dropdown-wscreen-bottom", `${
|
|
2015
|
+
const F = T.bottom - L.bottom;
|
|
2016
|
+
h("--dropdown-wscreen-top", "auto"), h("--dropdown-wscreen-bottom", `${F + L.height + 8}px`);
|
|
2017
2017
|
} else {
|
|
2018
|
-
const
|
|
2019
|
-
h("--dropdown-wscreen-top", `${
|
|
2018
|
+
const F = L.top - T.top;
|
|
2019
|
+
h("--dropdown-wscreen-top", `${F + L.height + 8}px`), h("--dropdown-wscreen-bottom", "auto");
|
|
2020
2020
|
}
|
|
2021
2021
|
}
|
|
2022
|
-
function p(
|
|
2023
|
-
const
|
|
2022
|
+
function p(T, L, F) {
|
|
2023
|
+
const _ = L.left - T.left;
|
|
2024
2024
|
if (t.position === "center") {
|
|
2025
|
-
const
|
|
2026
|
-
h("--dropdown-wscreen-left", `${
|
|
2025
|
+
const R = (L.width - F.width) / 2;
|
|
2026
|
+
h("--dropdown-wscreen-left", `${_ + R}px`), h("--dropdown-wscreen-right", "auto");
|
|
2027
2027
|
} else if (t.position === "right") {
|
|
2028
|
-
const
|
|
2029
|
-
h("--dropdown-wscreen-left", "auto"), h("--dropdown-wscreen-right", `${
|
|
2028
|
+
const R = T.right - L.right;
|
|
2029
|
+
h("--dropdown-wscreen-left", "auto"), h("--dropdown-wscreen-right", `${R}px`);
|
|
2030
2030
|
} else
|
|
2031
|
-
h("--dropdown-wscreen-left", `${
|
|
2031
|
+
h("--dropdown-wscreen-left", `${_}px`), h("--dropdown-wscreen-right", "auto");
|
|
2032
2032
|
}
|
|
2033
2033
|
function S() {
|
|
2034
2034
|
if (t.width === "anchor") {
|
|
2035
|
-
const
|
|
2036
|
-
h("--dropdown-wscreen-width", `${
|
|
2035
|
+
const T = s.value.getBoundingClientRect();
|
|
2036
|
+
h("--dropdown-wscreen-width", `${T.width}px`);
|
|
2037
2037
|
} else
|
|
2038
2038
|
h("--dropdown-wscreen-width", "");
|
|
2039
2039
|
}
|
|
2040
2040
|
function k() {
|
|
2041
2041
|
u.value = !0, y(), S(), l("enter");
|
|
2042
2042
|
}
|
|
2043
|
-
function
|
|
2043
|
+
function I() {
|
|
2044
2044
|
o.value = !0, l("after-enter");
|
|
2045
2045
|
}
|
|
2046
|
-
function
|
|
2046
|
+
function q() {
|
|
2047
2047
|
u.value = !1, o.value = !1, l("after-leave");
|
|
2048
2048
|
}
|
|
2049
|
-
return (
|
|
2050
|
-
e.useMobileStyle && e.shown ? (d(), b("div",
|
|
2051
|
-
P(
|
|
2049
|
+
return (T, L) => (d(), b(K, null, [
|
|
2050
|
+
e.useMobileStyle && e.shown ? (d(), b("div", bn)) : C("", !0),
|
|
2051
|
+
P(pn, {
|
|
2052
2052
|
ref_key: "dropdownContainerRef",
|
|
2053
2053
|
ref: n,
|
|
2054
2054
|
breakout: e.breakout,
|
|
@@ -2061,34 +2061,34 @@ const ln = {
|
|
|
2061
2061
|
name: "bs-dropdown",
|
|
2062
2062
|
preloaded: e.preloaded,
|
|
2063
2063
|
shown: e.shown,
|
|
2064
|
-
onAfterEnter:
|
|
2064
|
+
onAfterEnter: I,
|
|
2065
2065
|
onEnter: k,
|
|
2066
|
-
onAfterLeave:
|
|
2066
|
+
onAfterLeave: q
|
|
2067
2067
|
}, {
|
|
2068
2068
|
default: D(() => [
|
|
2069
|
-
|
|
2069
|
+
B("div", z({
|
|
2070
2070
|
ref_key: "dropdownRef",
|
|
2071
2071
|
ref: i,
|
|
2072
2072
|
class: "bs-dropdown",
|
|
2073
2073
|
"data-width": m.value,
|
|
2074
2074
|
"data-shown": e.shown,
|
|
2075
2075
|
"data-no-mobile": !e.useMobileStyle
|
|
2076
|
-
},
|
|
2077
|
-
e.helperText ? (d(), b("header",
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
e.helperDescription ? (d(), b("p",
|
|
2076
|
+
}, T.$attrs), [
|
|
2077
|
+
e.helperText ? (d(), b("header", vn, [
|
|
2078
|
+
B("div", null, [
|
|
2079
|
+
B("h3", null, A(e.helperText), 1),
|
|
2080
|
+
e.helperDescription ? (d(), b("p", gn, A(e.helperDescription), 1)) : C("", !0)
|
|
2081
2081
|
]),
|
|
2082
|
-
|
|
2082
|
+
B("button", {
|
|
2083
2083
|
type: "button",
|
|
2084
2084
|
title: "close",
|
|
2085
2085
|
onClick: L[0] || (L[0] = () => l("close"))
|
|
2086
2086
|
}, [
|
|
2087
|
-
P(c(
|
|
2087
|
+
P(c(Ie))
|
|
2088
2088
|
])
|
|
2089
2089
|
])) : C("", !0),
|
|
2090
|
-
V(
|
|
2091
|
-
], 16,
|
|
2090
|
+
V(T.$slots, "default")
|
|
2091
|
+
], 16, hn)
|
|
2092
2092
|
]),
|
|
2093
2093
|
_: 3
|
|
2094
2094
|
}, 8, ["preloaded", "shown"])
|
|
@@ -2188,7 +2188,7 @@ const ln = {
|
|
|
2188
2188
|
],
|
|
2189
2189
|
setup(e, { emit: a }) {
|
|
2190
2190
|
const t = e, l = a, { transition: n } = Ee(t), i = f(() => t.width === "toggle" ? "anchor" : t.width), u = f(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = f(() => t.toggleId ? t.toggleId : t.anchorId);
|
|
2191
|
-
return (s, r) => (d(), O(
|
|
2191
|
+
return (s, r) => (d(), O(yn, {
|
|
2192
2192
|
"anchor-id": o.value,
|
|
2193
2193
|
breakout: e.breakout,
|
|
2194
2194
|
"container-id": e.containerId,
|
|
@@ -2210,7 +2210,7 @@ const ln = {
|
|
|
2210
2210
|
_: 3
|
|
2211
2211
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
|
|
2212
2212
|
}
|
|
2213
|
-
},
|
|
2213
|
+
}, Sn = ["aria-controls", "aria-expanded", "data-open", "disabled", "id", "tabindex"], wn = { class: "visually-hidden" }, Bn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2214
2214
|
__name: "BsInputCombobox",
|
|
2215
2215
|
props: {
|
|
2216
2216
|
containerId: {
|
|
@@ -2252,7 +2252,7 @@ const ln = {
|
|
|
2252
2252
|
setup(e, { emit: a }) {
|
|
2253
2253
|
const t = e, l = a;
|
|
2254
2254
|
let n = !1;
|
|
2255
|
-
const i =
|
|
2255
|
+
const i = $(null), [u] = Q(1), o = f(() => ({
|
|
2256
2256
|
icon: t.modelValue ? "close" : t.optionsId ? "caret-down" : "",
|
|
2257
2257
|
show: !!(t.modelValue || t.optionsId),
|
|
2258
2258
|
text: t.modelValue ? "Clear this field" : t.optionsId ? "Toggle options dropdown" : ""
|
|
@@ -2261,9 +2261,9 @@ const ln = {
|
|
|
2261
2261
|
t.modelValue && l("clear"), n = !0, i.value.$el.focus();
|
|
2262
2262
|
}
|
|
2263
2263
|
function r(g) {
|
|
2264
|
-
var y,
|
|
2264
|
+
var y, w;
|
|
2265
2265
|
const v = ((y = g.relatedTarget) == null ? void 0 : y.id) === u.value;
|
|
2266
|
-
!(((
|
|
2266
|
+
!(((w = g.relatedTarget) == null ? void 0 : w.id) === t.optionsId) && (!v || !n) && m(!0), n = !1;
|
|
2267
2267
|
}
|
|
2268
2268
|
const m = Ve((g) => l("toggled", g), 200, !0);
|
|
2269
2269
|
return (g, v) => (d(), O(De, {
|
|
@@ -2276,7 +2276,7 @@ const ln = {
|
|
|
2276
2276
|
onClick: c(m)
|
|
2277
2277
|
}, {
|
|
2278
2278
|
default: D(() => [
|
|
2279
|
-
P(
|
|
2279
|
+
P(ke, z({
|
|
2280
2280
|
ref_key: "inputRef",
|
|
2281
2281
|
ref: i,
|
|
2282
2282
|
"aria-controls": e.optionsId,
|
|
@@ -2294,7 +2294,7 @@ const ln = {
|
|
|
2294
2294
|
onFocus: r,
|
|
2295
2295
|
onInput: v[0] || (v[0] = (h) => g.$emit("update:modelValue", h.target.value))
|
|
2296
2296
|
}, g.$attrs), null, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup", "aria-invalid", "data-error", "disabled", "model-value", "placeholder", "required", "role"]),
|
|
2297
|
-
|
|
2297
|
+
ce(B("button", {
|
|
2298
2298
|
"aria-controls": !e.modelValue && e.optionsId ? e.optionsId : void 0,
|
|
2299
2299
|
"aria-expanded": !e.modelValue && e.optionsId ? e.open : void 0,
|
|
2300
2300
|
"data-open": e.modelValue ? void 0 : e.open,
|
|
@@ -2305,27 +2305,27 @@ const ln = {
|
|
|
2305
2305
|
type: "button",
|
|
2306
2306
|
onClick: s
|
|
2307
2307
|
}, [
|
|
2308
|
-
|
|
2309
|
-
|
|
2308
|
+
B("span", wn, A(o.value.text), 1),
|
|
2309
|
+
ce(P(c(Me), {
|
|
2310
2310
|
role: "presentation",
|
|
2311
2311
|
size: "md"
|
|
2312
2312
|
}, null, 512), [
|
|
2313
|
-
[
|
|
2313
|
+
[fe, o.value.icon == "caret-down"]
|
|
2314
2314
|
]),
|
|
2315
|
-
|
|
2315
|
+
ce(P(c(Ie), {
|
|
2316
2316
|
role: "presentation",
|
|
2317
2317
|
size: "md"
|
|
2318
2318
|
}, null, 512), [
|
|
2319
|
-
[
|
|
2319
|
+
[fe, o.value.icon == "close"]
|
|
2320
2320
|
])
|
|
2321
|
-
], 8,
|
|
2322
|
-
[
|
|
2321
|
+
], 8, Sn), [
|
|
2322
|
+
[fe, o.value.show]
|
|
2323
2323
|
])
|
|
2324
2324
|
]),
|
|
2325
2325
|
_: 1
|
|
2326
2326
|
}, 8, ["disabled", "error", "id", "onClick"]));
|
|
2327
2327
|
}
|
|
2328
|
-
}),
|
|
2328
|
+
}), $n = ["aria-controls", "aria-expanded", "data-open", "data-size", "disabled"], In = {
|
|
2329
2329
|
__name: "BsFilterButton",
|
|
2330
2330
|
props: {
|
|
2331
2331
|
badgeCount: {
|
|
@@ -2366,7 +2366,7 @@ const ln = {
|
|
|
2366
2366
|
disabled: e.disabled,
|
|
2367
2367
|
type: "button"
|
|
2368
2368
|
}, [
|
|
2369
|
-
t.value ? (d(), O(
|
|
2369
|
+
t.value ? (d(), O(Ca, {
|
|
2370
2370
|
key: 0,
|
|
2371
2371
|
color: "blue",
|
|
2372
2372
|
count: e.badgeCount,
|
|
@@ -2375,12 +2375,12 @@ const ln = {
|
|
|
2375
2375
|
variant: "notext"
|
|
2376
2376
|
}, null, 8, ["count"])) : C("", !0),
|
|
2377
2377
|
V(l.$slots, "label", {}, () => [
|
|
2378
|
-
|
|
2378
|
+
j(A(e.label), 1)
|
|
2379
2379
|
]),
|
|
2380
2380
|
P(c(Me))
|
|
2381
|
-
], 8,
|
|
2381
|
+
], 8, $n));
|
|
2382
2382
|
}
|
|
2383
|
-
},
|
|
2383
|
+
}, kn = ["data-value", "data-value-type", "data-variant", "id"], it = {
|
|
2384
2384
|
__name: "BsDropdownOption",
|
|
2385
2385
|
props: {
|
|
2386
2386
|
value: {
|
|
@@ -2393,7 +2393,7 @@ const ln = {
|
|
|
2393
2393
|
}
|
|
2394
2394
|
},
|
|
2395
2395
|
setup(e) {
|
|
2396
|
-
const a = e, t =
|
|
2396
|
+
const a = e, t = $(null), l = me("optionsId", ""), n = me("handleOptionSelect", () => {
|
|
2397
2397
|
}), i = f(() => `${l.value}-option-${a.value}`);
|
|
2398
2398
|
function u(o) {
|
|
2399
2399
|
n(t.value), o.stopPropagation();
|
|
@@ -2410,9 +2410,9 @@ const ln = {
|
|
|
2410
2410
|
onClick: u
|
|
2411
2411
|
}, [
|
|
2412
2412
|
V(o.$slots, "default")
|
|
2413
|
-
], 8,
|
|
2413
|
+
], 8, kn));
|
|
2414
2414
|
}
|
|
2415
|
-
},
|
|
2415
|
+
}, Cn = ["data-img-size", "data-initials", "data-no-img"], xn = ["src", "alt"], Ot = {
|
|
2416
2416
|
__name: "BsProfileImg",
|
|
2417
2417
|
props: {
|
|
2418
2418
|
src: String,
|
|
@@ -2431,7 +2431,7 @@ const ln = {
|
|
|
2431
2431
|
}
|
|
2432
2432
|
},
|
|
2433
2433
|
setup(e) {
|
|
2434
|
-
const a = e, t =
|
|
2434
|
+
const a = e, t = $(!1), l = $(!!a.src);
|
|
2435
2435
|
return X(() => t.value = !0), (n, i) => (d(), b("div", {
|
|
2436
2436
|
class: "bs-profile-img",
|
|
2437
2437
|
"data-component": "bs-profile-img",
|
|
@@ -2444,10 +2444,10 @@ const ln = {
|
|
|
2444
2444
|
src: e.src,
|
|
2445
2445
|
alt: e.useAltText ? e.profileName : "",
|
|
2446
2446
|
onError: i[0] || (i[0] = (u) => l.value = !1)
|
|
2447
|
-
}, null, 40,
|
|
2448
|
-
], 8,
|
|
2447
|
+
}, null, 40, xn)) : C("", !0)
|
|
2448
|
+
], 8, Cn));
|
|
2449
2449
|
}
|
|
2450
|
-
},
|
|
2450
|
+
}, Tn = ["id", "data-checked"], An = { key: 1 }, On = ["innerHTML"], Vn = { key: 4 }, Ln = { key: 5 }, En = {
|
|
2451
2451
|
key: 0,
|
|
2452
2452
|
role: "option",
|
|
2453
2453
|
"data-no-hover": ""
|
|
@@ -2486,7 +2486,7 @@ const ln = {
|
|
|
2486
2486
|
const a = e, t = {};
|
|
2487
2487
|
St(() => {
|
|
2488
2488
|
l();
|
|
2489
|
-
}),
|
|
2489
|
+
}), U(() => a.options, () => {
|
|
2490
2490
|
l();
|
|
2491
2491
|
});
|
|
2492
2492
|
function l() {
|
|
@@ -2509,7 +2509,7 @@ const ln = {
|
|
|
2509
2509
|
return !!o && o !== s;
|
|
2510
2510
|
}
|
|
2511
2511
|
return (o, s) => (d(), b(K, null, [
|
|
2512
|
-
(d(!0), b(K, null,
|
|
2512
|
+
(d(!0), b(K, null, ae(e.options, (r) => (d(), O(it, {
|
|
2513
2513
|
"aria-checked": r.checkbox ? r.checkbox.checked : void 0,
|
|
2514
2514
|
key: r.value,
|
|
2515
2515
|
value: r.value,
|
|
@@ -2522,9 +2522,9 @@ const ln = {
|
|
|
2522
2522
|
"aria-hidden": "true",
|
|
2523
2523
|
class: "bs-checkbox",
|
|
2524
2524
|
"data-checked": r.checkbox.checked
|
|
2525
|
-
}, null, 8,
|
|
2526
|
-
r.icon ? (d(), b("span",
|
|
2527
|
-
(d(), O(
|
|
2525
|
+
}, null, 8, Tn)) : C("", !0),
|
|
2526
|
+
r.icon ? (d(), b("span", An, [
|
|
2527
|
+
(d(), O(ne(t[r.icon])))
|
|
2528
2528
|
])) : C("", !0),
|
|
2529
2529
|
r.profileImg ? (d(), O(Ot, {
|
|
2530
2530
|
key: 2,
|
|
@@ -2537,14 +2537,14 @@ const ln = {
|
|
|
2537
2537
|
r.labelHtml ? (d(), b("span", {
|
|
2538
2538
|
key: 3,
|
|
2539
2539
|
innerHTML: r.labelHtml
|
|
2540
|
-
}, null, 8,
|
|
2541
|
-
r.description ? (d(), b("span",
|
|
2540
|
+
}, null, 8, On)) : (d(), b("span", Vn, A(r.label), 1)),
|
|
2541
|
+
r.description ? (d(), b("span", Ln, A(r.description), 1)) : C("", !0)
|
|
2542
2542
|
]),
|
|
2543
2543
|
_: 2
|
|
2544
2544
|
}, 1032, ["aria-checked", "value", "variant"]))), 128)),
|
|
2545
|
-
e.showNoOptions && e.options.length === 0 ? (d(), b("li",
|
|
2545
|
+
e.showNoOptions && e.options.length === 0 ? (d(), b("li", En, [
|
|
2546
2546
|
V(o.$slots, "no-options", {}, () => [
|
|
2547
|
-
s[0] || (s[0] =
|
|
2547
|
+
s[0] || (s[0] = j("No options"))
|
|
2548
2548
|
])
|
|
2549
2549
|
])) : C("", !0)
|
|
2550
2550
|
], 64));
|
|
@@ -2594,7 +2594,7 @@ const ln = {
|
|
|
2594
2594
|
},
|
|
2595
2595
|
emits: ["clear", "update:modelValue"],
|
|
2596
2596
|
setup(e, { emit: a }) {
|
|
2597
|
-
const t = e, l = f(() =>
|
|
2597
|
+
const t = e, l = f(() => he.concat(t.passAttrs.split(","))), n = f(() => !t.disabled && !t.hideClear && t.variant !== "filter");
|
|
2598
2598
|
return (i, u) => (d(), O(De, z({
|
|
2599
2599
|
class: "bs-input-search",
|
|
2600
2600
|
"data-component": "bs-input-search",
|
|
@@ -2602,8 +2602,8 @@ const ln = {
|
|
|
2602
2602
|
disabled: e.disabled
|
|
2603
2603
|
}, c(Z)(i.$attrs, l.value).remaining), {
|
|
2604
2604
|
default: D(() => [
|
|
2605
|
-
e.hideSearchIcon ? C("", !0) : (d(), O(c(
|
|
2606
|
-
P(
|
|
2605
|
+
e.hideSearchIcon ? C("", !0) : (d(), O(c(Kt), { key: 0 })),
|
|
2606
|
+
P(ke, z({
|
|
2607
2607
|
"data-autowidth": "",
|
|
2608
2608
|
disabled: e.disabled,
|
|
2609
2609
|
"input-id": i.$attrs.id || e.inputId,
|
|
@@ -2612,23 +2612,23 @@ const ln = {
|
|
|
2612
2612
|
}, c(Z)(i.$attrs, l.value).filtered, {
|
|
2613
2613
|
"onUpdate:modelValue": u[0] || (u[0] = (o) => i.$emit("update:modelValue", o))
|
|
2614
2614
|
}), null, 16, ["disabled", "input-id", "placeholder", "value"]),
|
|
2615
|
-
|
|
2615
|
+
ce(B("button", {
|
|
2616
2616
|
title: "Clear",
|
|
2617
2617
|
type: "button",
|
|
2618
2618
|
onClick: u[1] || (u[1] = (o) => i.$emit("clear"))
|
|
2619
2619
|
}, [
|
|
2620
|
-
P(c(
|
|
2620
|
+
P(c(Ie), { size: "sm" })
|
|
2621
2621
|
], 512), [
|
|
2622
|
-
[
|
|
2622
|
+
[fe, n.value]
|
|
2623
2623
|
])
|
|
2624
2624
|
]),
|
|
2625
2625
|
_: 1
|
|
2626
2626
|
}, 16, ["data-variant", "disabled"]));
|
|
2627
2627
|
}
|
|
2628
|
-
}),
|
|
2628
|
+
}), Dn = ["id"], Pn = {
|
|
2629
2629
|
key: 0,
|
|
2630
2630
|
class: "filter-input-container"
|
|
2631
|
-
},
|
|
2631
|
+
}, qn = {
|
|
2632
2632
|
key: 1,
|
|
2633
2633
|
class: "mobile-select-button-container"
|
|
2634
2634
|
}, Lt = {
|
|
@@ -2741,51 +2741,51 @@ const ln = {
|
|
|
2741
2741
|
setup(e, { emit: a }) {
|
|
2742
2742
|
const t = e, l = a;
|
|
2743
2743
|
let n = null;
|
|
2744
|
-
const [i, u] = Q(2), o =
|
|
2745
|
-
function B() {
|
|
2746
|
-
const F = document.activeElement;
|
|
2747
|
-
return !F || F.tagName === "BODY" || F.id === v.value;
|
|
2748
|
-
}
|
|
2744
|
+
const [i, u] = Q(2), o = $(!1), s = $(""), r = $([...t.options]), m = f(() => t.selectedOptions.length), g = f(() => Je(async () => await (t.multiselect ? Promise.resolve().then(() => Rn) : Promise.resolve().then(() => Nn)))), v = f(() => t.optionsId || u.value), h = f(() => t.toggleId || i.value), y = f(() => t.filter ? r.value : t.options), w = () => n || (n = document.getElementById(h.value));
|
|
2749
2745
|
function p() {
|
|
2750
|
-
|
|
2751
|
-
|
|
2746
|
+
const R = document.activeElement;
|
|
2747
|
+
return !R || R.tagName === "BODY" || R.id === v.value;
|
|
2752
2748
|
}
|
|
2753
2749
|
function S() {
|
|
2754
|
-
|
|
2750
|
+
var R, H;
|
|
2751
|
+
o.value = !1, l("close"), p() && ((H = (R = w()) == null ? void 0 : R.focus) == null || H.call(R));
|
|
2755
2752
|
}
|
|
2756
2753
|
function k() {
|
|
2754
|
+
o.value && S();
|
|
2755
|
+
}
|
|
2756
|
+
function I() {
|
|
2757
2757
|
o.value = !0;
|
|
2758
2758
|
}
|
|
2759
|
-
function
|
|
2760
|
-
const
|
|
2761
|
-
l("update:selectedOptions",
|
|
2759
|
+
function q(R) {
|
|
2760
|
+
const H = t.selectedOptions.filter((te) => te !== R);
|
|
2761
|
+
l("update:selectedOptions", H), l("uncheck-option", R);
|
|
2762
2762
|
}
|
|
2763
|
-
function
|
|
2764
|
-
const
|
|
2765
|
-
l("update:selectedOptions",
|
|
2763
|
+
function T(R) {
|
|
2764
|
+
const H = [...t.selectedOptions, R];
|
|
2765
|
+
l("update:selectedOptions", H), l("check-option", R);
|
|
2766
2766
|
}
|
|
2767
|
-
function
|
|
2768
|
-
t.multiselect || (l("update:selectedOption",
|
|
2767
|
+
function L(R) {
|
|
2768
|
+
t.multiselect || (l("update:selectedOption", R), S());
|
|
2769
2769
|
}
|
|
2770
|
-
function
|
|
2770
|
+
function F() {
|
|
2771
2771
|
s.value = "", r.value = t.options;
|
|
2772
2772
|
}
|
|
2773
|
-
function R
|
|
2774
|
-
s.value =
|
|
2775
|
-
var
|
|
2776
|
-
return
|
|
2773
|
+
function _(R) {
|
|
2774
|
+
s.value = R, r.value = t.options.filter((H) => {
|
|
2775
|
+
var te;
|
|
2776
|
+
return H.label.toLowerCase().startsWith((te = s.value) == null ? void 0 : te.toLowerCase());
|
|
2777
2777
|
});
|
|
2778
2778
|
}
|
|
2779
|
-
return (
|
|
2779
|
+
return (R, H) => (d(), b("div", {
|
|
2780
2780
|
class: "bs-dropdown-with-toggle",
|
|
2781
|
-
id:
|
|
2781
|
+
id: R.$attrs.id
|
|
2782
2782
|
}, [
|
|
2783
|
-
V(
|
|
2783
|
+
V(R.$slots, "toggle", {
|
|
2784
2784
|
anchorId: e.anchorId,
|
|
2785
2785
|
optionsId: v.value,
|
|
2786
2786
|
toggleId: h.value
|
|
2787
2787
|
}, () => [
|
|
2788
|
-
P(
|
|
2788
|
+
P(In, {
|
|
2789
2789
|
"aria-controls": v.value,
|
|
2790
2790
|
"aria-expanded": e.open,
|
|
2791
2791
|
disabled: e.disabled,
|
|
@@ -2794,11 +2794,11 @@ const ln = {
|
|
|
2794
2794
|
"options-id": v.value,
|
|
2795
2795
|
size: e.toggleSize,
|
|
2796
2796
|
"badge-count": e.showBadgeCount && e.multiselect ? m.value : void 0,
|
|
2797
|
-
onClick:
|
|
2797
|
+
onClick: H[0] || (H[0] = (te) => R.$emit("toggled"))
|
|
2798
2798
|
}, {
|
|
2799
2799
|
label: D(() => [
|
|
2800
|
-
V(
|
|
2801
|
-
|
|
2800
|
+
V(R.$slots, "toggle-label", {}, () => [
|
|
2801
|
+
j(A(e.toggleLabel), 1)
|
|
2802
2802
|
])
|
|
2803
2803
|
]),
|
|
2804
2804
|
_: 3
|
|
@@ -2814,48 +2814,49 @@ const ln = {
|
|
|
2814
2814
|
shown: e.open,
|
|
2815
2815
|
"use-mobile-style": e.useMobileStyle,
|
|
2816
2816
|
width: e.dropdownWidth,
|
|
2817
|
-
onClose:
|
|
2818
|
-
onEnter:
|
|
2817
|
+
onClose: k,
|
|
2818
|
+
onEnter: I,
|
|
2819
|
+
onAfterLeave: F
|
|
2819
2820
|
}, {
|
|
2820
2821
|
default: D(() => [
|
|
2821
|
-
e.filter ? (d(), b("div",
|
|
2822
|
+
e.filter ? (d(), b("div", Pn, [
|
|
2822
2823
|
P(Vt, {
|
|
2823
2824
|
"aria-label": e.filterLabel,
|
|
2824
2825
|
"model-value": s.value,
|
|
2825
2826
|
placeholder: e.filterPlaceholder,
|
|
2826
|
-
"onUpdate:modelValue":
|
|
2827
|
-
onClear:
|
|
2827
|
+
"onUpdate:modelValue": _,
|
|
2828
|
+
onClear: F
|
|
2828
2829
|
}, null, 8, ["aria-label", "model-value", "placeholder"])
|
|
2829
2830
|
])) : C("", !0),
|
|
2830
2831
|
P(c(g), {
|
|
2831
|
-
class:
|
|
2832
|
+
class: oe({ "filterable-options": e.filter }),
|
|
2832
2833
|
label: e.dropdownLabel,
|
|
2833
2834
|
"model-value": e.selectedOption,
|
|
2834
|
-
options: e.multiselect ?
|
|
2835
|
+
options: e.multiselect ? y.value : void 0,
|
|
2835
2836
|
"options-id": v.value,
|
|
2836
2837
|
"selected-options": e.selectedOptions,
|
|
2837
2838
|
shown: e.open,
|
|
2838
|
-
"onUpdate:modelValue":
|
|
2839
|
-
onCheckOption:
|
|
2840
|
-
onUncheckOption:
|
|
2841
|
-
onClose:
|
|
2839
|
+
"onUpdate:modelValue": L,
|
|
2840
|
+
onCheckOption: T,
|
|
2841
|
+
onUncheckOption: q,
|
|
2842
|
+
onClose: H[1] || (H[1] = (te) => e.multiselect ? void 0 : k())
|
|
2842
2843
|
}, {
|
|
2843
2844
|
default: D(() => [
|
|
2844
2845
|
e.multiselect ? C("", !0) : (d(), O(qe, {
|
|
2845
2846
|
key: 0,
|
|
2846
|
-
options:
|
|
2847
|
+
options: y.value
|
|
2847
2848
|
}, null, 8, ["options"]))
|
|
2848
2849
|
]),
|
|
2849
2850
|
_: 1
|
|
2850
2851
|
}, 8, ["class", "label", "model-value", "options", "options-id", "selected-options", "shown"]),
|
|
2851
|
-
e.multiselect ? (d(), b("div",
|
|
2852
|
+
e.multiselect ? (d(), b("div", qn, [
|
|
2852
2853
|
P(xt, {
|
|
2853
2854
|
title: e.filterButtonText,
|
|
2854
2855
|
class: "mobile-select-button",
|
|
2855
|
-
onClick:
|
|
2856
|
+
onClick: H[2] || (H[2] = () => l("close"))
|
|
2856
2857
|
}, {
|
|
2857
2858
|
default: D(() => [
|
|
2858
|
-
|
|
2859
|
+
j(A(e.filterButtonText), 1)
|
|
2859
2860
|
]),
|
|
2860
2861
|
_: 1
|
|
2861
2862
|
}, 8, ["title"])
|
|
@@ -2863,7 +2864,7 @@ const ln = {
|
|
|
2863
2864
|
]),
|
|
2864
2865
|
_: 1
|
|
2865
2866
|
}, 8, ["anchor-id", "breakout", "helper-text", "helper-description", "position", "shown", "use-mobile-style", "width"])
|
|
2866
|
-
], 8,
|
|
2867
|
+
], 8, Dn));
|
|
2867
2868
|
}
|
|
2868
2869
|
}, Et = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2869
2870
|
__name: "BsDropdownCombobox",
|
|
@@ -2924,7 +2925,7 @@ const ln = {
|
|
|
2924
2925
|
},
|
|
2925
2926
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
2926
2927
|
setup(e, { emit: a }) {
|
|
2927
|
-
const t = e, l = a, [n, i, u] = Q(3), o =
|
|
2928
|
+
const t = e, l = a, [n, i, u] = Q(3), o = $(!1), s = f(() => t.inputId || n.value);
|
|
2928
2929
|
function r(y) {
|
|
2929
2930
|
l("combobox:change", y.target.value), l("update:modelValue", y.target.value);
|
|
2930
2931
|
}
|
|
@@ -2932,8 +2933,8 @@ const ln = {
|
|
|
2932
2933
|
l("combobox:change", ""), l("update:modelValue", "");
|
|
2933
2934
|
}
|
|
2934
2935
|
function g(y) {
|
|
2935
|
-
var
|
|
2936
|
-
(
|
|
2936
|
+
var w, p;
|
|
2937
|
+
(w = y.relatedTarget) != null && w.closest(`#${u.value}`) || (p = y.relatedTarget) != null && p.closest(`#${i.value}`) || (o.value = !1);
|
|
2937
2938
|
}
|
|
2938
2939
|
function v(y) {
|
|
2939
2940
|
l("combobox:input", y.target.value), t.updateOnInput && l("update:modelValue", y.target.value);
|
|
@@ -2941,7 +2942,7 @@ const ln = {
|
|
|
2941
2942
|
function h(y) {
|
|
2942
2943
|
y === !0 || y === !1 ? o.value = y : o.value = !o.value;
|
|
2943
2944
|
}
|
|
2944
|
-
return (y,
|
|
2945
|
+
return (y, w) => (d(), O(Lt, {
|
|
2945
2946
|
"anchor-id": c(i),
|
|
2946
2947
|
disabled: e.disabled,
|
|
2947
2948
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -2954,12 +2955,12 @@ const ln = {
|
|
|
2954
2955
|
"options-id": c(u),
|
|
2955
2956
|
"selected-option": e.modelValue,
|
|
2956
2957
|
"toggle-id": y.$attrs.id || s.value,
|
|
2957
|
-
onClose:
|
|
2958
|
+
onClose: w[0] || (w[0] = (p) => o.value = !1),
|
|
2958
2959
|
onFocusout: g,
|
|
2959
|
-
"onUpdate:selectedOption":
|
|
2960
|
+
"onUpdate:selectedOption": w[1] || (w[1] = (p) => y.$emit("update:modelValue", p))
|
|
2960
2961
|
}, {
|
|
2961
2962
|
toggle: D(() => [
|
|
2962
|
-
P(
|
|
2963
|
+
P(Bn, z({
|
|
2963
2964
|
id: y.$attrs.id || s.value,
|
|
2964
2965
|
"container-id": c(i),
|
|
2965
2966
|
disabled: e.disabled,
|
|
@@ -2979,7 +2980,7 @@ const ln = {
|
|
|
2979
2980
|
_: 1
|
|
2980
2981
|
}, 8, ["anchor-id", "disabled", "dropdown-position", "dropdown-width", "helper-description", "helper-text", "open", "options", "options-id", "selected-option", "toggle-id"]));
|
|
2981
2982
|
}
|
|
2982
|
-
}),
|
|
2983
|
+
}), Fo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2983
2984
|
__name: "BsDropdownComboboxField",
|
|
2984
2985
|
props: {
|
|
2985
2986
|
disabled: {
|
|
@@ -3048,8 +3049,8 @@ const ln = {
|
|
|
3048
3049
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
3049
3050
|
setup(e, { emit: a }) {
|
|
3050
3051
|
const t = e, [l, n] = Q(2), i = f(() => t.error && t.errorMsg || t.hint || void 0), u = f(() => t.inputId || l.value);
|
|
3051
|
-
return (o, s) => (d(), b("div", z({ "data-component": "bs-dropdown-combobox-field" }, c(Z)(o.$attrs, c(
|
|
3052
|
-
e.label || o.$slots.label ? (d(), O(
|
|
3052
|
+
return (o, s) => (d(), b("div", z({ "data-component": "bs-dropdown-combobox-field" }, c(Z)(o.$attrs, c(he)).remaining), [
|
|
3053
|
+
e.label || o.$slots.label ? (d(), O(le, {
|
|
3053
3054
|
key: 0,
|
|
3054
3055
|
for: o.$attrs.id || u.value,
|
|
3055
3056
|
disabled: e.disabled,
|
|
@@ -3057,7 +3058,7 @@ const ln = {
|
|
|
3057
3058
|
}, {
|
|
3058
3059
|
default: D(() => [
|
|
3059
3060
|
V(o.$slots, "label", {}, () => [
|
|
3060
|
-
|
|
3061
|
+
j(A(e.label), 1)
|
|
3061
3062
|
])
|
|
3062
3063
|
]),
|
|
3063
3064
|
_: 3
|
|
@@ -3080,8 +3081,8 @@ const ln = {
|
|
|
3080
3081
|
"onCombobox:change": s[0] || (s[0] = (r) => o.$emit("combobox:change", r)),
|
|
3081
3082
|
"onCombobox:input": s[1] || (s[1] = (r) => o.$emit("combobox:input", r)),
|
|
3082
3083
|
"onUpdate:modelValue": s[2] || (s[2] = (r) => o.$emit("update:modelValue", r))
|
|
3083
|
-
}, c(Z)(o.$attrs, c(
|
|
3084
|
-
i.value ? (d(), O(
|
|
3084
|
+
}, c(Z)(o.$attrs, c(he)).filtered), null, 16, ["disabled", "display-value", "dropdown-position", "dropdown-width", "error", "helper-text", "helper-description", "hint-id", "input-id", "model-value", "options", "placeholder", "required", "update-on-input"]),
|
|
3085
|
+
i.value ? (d(), O(ye, {
|
|
3085
3086
|
key: 1,
|
|
3086
3087
|
error: e.error,
|
|
3087
3088
|
"error-msg": e.errorMsg,
|
|
@@ -3090,7 +3091,7 @@ const ln = {
|
|
|
3090
3091
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : C("", !0)
|
|
3091
3092
|
], 16));
|
|
3092
3093
|
}
|
|
3093
|
-
}),
|
|
3094
|
+
}), Mn = ["aria-activedescendant", "aria-label", "data-overflow", "id", "tabindex"], Re = {
|
|
3094
3095
|
__name: "BsDropdownOptionList",
|
|
3095
3096
|
props: {
|
|
3096
3097
|
optionsId: {
|
|
@@ -3126,124 +3127,124 @@ const ln = {
|
|
|
3126
3127
|
"update:modelValue"
|
|
3127
3128
|
],
|
|
3128
3129
|
setup(e, { expose: a, emit: t }) {
|
|
3129
|
-
const l = e, n = t, i =
|
|
3130
|
-
|
|
3130
|
+
const l = e, n = t, i = $(null), u = $(null), o = $(-1), s = $(-1), r = $(null), m = $(!1), g = me("dropdownEnter", $(!1)), v = me("dropdownAfterEnter", $(!1)), h = me("dropdownShown", $(!1));
|
|
3131
|
+
pe("optionsId", f(() => l.optionsId)), pe("handleOptionSelect", Se), ga(i, I, { childList: !0 }), be([" ", "Enter", "NumpadEnter"], ve, i), be(["ArrowDown", "ArrowUp", "Home", "End"], Ce);
|
|
3131
3132
|
const p = [/^[a-zA-Z0-9]{1}$/], S = {
|
|
3132
3133
|
keys: "",
|
|
3133
3134
|
lastTyped: 0
|
|
3134
3135
|
};
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
}),
|
|
3136
|
+
be(p, (E) => xe(E, S)), X(() => {
|
|
3137
|
+
I(), R(h.value);
|
|
3138
|
+
}), U(
|
|
3138
3139
|
[g, () => {
|
|
3139
3140
|
var E;
|
|
3140
3141
|
return (E = r.value) == null ? void 0 : E.length;
|
|
3141
3142
|
}],
|
|
3142
|
-
([E,
|
|
3143
|
-
(E ||
|
|
3143
|
+
([E, W]) => {
|
|
3144
|
+
(E || W > 0) && (m.value = i.value.scrollHeight > i.value.clientHeight);
|
|
3144
3145
|
}
|
|
3145
|
-
),
|
|
3146
|
-
E && (
|
|
3147
|
-
}),
|
|
3146
|
+
), U(v, (E) => {
|
|
3147
|
+
E && (q(), T());
|
|
3148
|
+
}), U(h, (E) => R(E));
|
|
3148
3149
|
const k = f(() => l.modelValue || l.selectedValue);
|
|
3149
|
-
function
|
|
3150
|
+
function I() {
|
|
3150
3151
|
r.value = Array.from(
|
|
3151
3152
|
i.value.querySelectorAll('[data-component="bs-dropdown-option"]')
|
|
3152
3153
|
);
|
|
3153
3154
|
}
|
|
3154
|
-
function
|
|
3155
|
+
function q() {
|
|
3155
3156
|
i.value.getBoundingClientRect().bottom > window.innerHeight && i.value.scrollIntoView({ block: "nearest" });
|
|
3156
3157
|
}
|
|
3157
|
-
function
|
|
3158
|
+
function T() {
|
|
3158
3159
|
var E;
|
|
3159
|
-
o.value > -1 && (
|
|
3160
|
+
o.value > -1 && (q(), (E = r.value[o.value]) == null || E.scrollIntoView({ block: "nearest" }));
|
|
3160
3161
|
}
|
|
3161
3162
|
function L() {
|
|
3162
|
-
var E,
|
|
3163
|
-
o.value > -1 && ((E = r.value[o.value]) == null || E.setAttribute("data-active", ""), u.value = (
|
|
3163
|
+
var E, W;
|
|
3164
|
+
o.value > -1 && ((E = r.value[o.value]) == null || E.setAttribute("data-active", ""), u.value = (W = r.value[o.value]) == null ? void 0 : W.id, T());
|
|
3164
3165
|
}
|
|
3165
|
-
function
|
|
3166
|
+
function F() {
|
|
3166
3167
|
var E;
|
|
3167
3168
|
o.value > -1 && ((E = r.value[o.value]) == null || E.removeAttribute("data-active"));
|
|
3168
3169
|
}
|
|
3169
|
-
function
|
|
3170
|
+
function _() {
|
|
3170
3171
|
var E;
|
|
3171
3172
|
o.value < 0 && (o.value = 0, u.value = (E = r.value[0]) == null ? void 0 : E.id), L();
|
|
3172
3173
|
}
|
|
3173
|
-
function
|
|
3174
|
-
E ?
|
|
3174
|
+
function R(E) {
|
|
3175
|
+
E ? H() : te();
|
|
3175
3176
|
}
|
|
3176
|
-
function
|
|
3177
|
-
var E,
|
|
3177
|
+
function H() {
|
|
3178
|
+
var E, W;
|
|
3178
3179
|
l.multiselect || (s.value = r.value.findIndex(
|
|
3179
|
-
(
|
|
3180
|
-
), !l.multiselect && s.value > -1 && ((E = r.value[s.value]) == null || E.setAttribute("data-selected", ""), (
|
|
3180
|
+
(M) => M.getAttribute("data-value") === String(k.value)
|
|
3181
|
+
), !l.multiselect && s.value > -1 && ((E = r.value[s.value]) == null || E.setAttribute("data-selected", ""), (W = r.value[s.value]) == null || W.setAttribute("aria-selected", "true")), o.value = s.value);
|
|
3181
3182
|
}
|
|
3182
|
-
function
|
|
3183
|
+
function te() {
|
|
3183
3184
|
r.value.forEach((E) => {
|
|
3184
3185
|
E.removeAttribute("data-selected"), E.setAttribute("aria-selected", "false");
|
|
3185
|
-
}),
|
|
3186
|
+
}), F(), s.value = -1, o.value = -1, u.value = null;
|
|
3186
3187
|
}
|
|
3187
|
-
function
|
|
3188
|
-
var
|
|
3189
|
-
(
|
|
3190
|
-
let
|
|
3191
|
-
E.getAttribute("data-value-type") === "number" && (
|
|
3188
|
+
function Se(E) {
|
|
3189
|
+
var M;
|
|
3190
|
+
(M = E.querySelector("a")) == null || M.click();
|
|
3191
|
+
let W = E.getAttribute("data-value");
|
|
3192
|
+
E.getAttribute("data-value-type") === "number" && (W = Number(W)), u.value = E.id, F(), n("optselected", W), n("update:modelValue", W), n("close");
|
|
3192
3193
|
}
|
|
3193
|
-
function
|
|
3194
|
-
|
|
3194
|
+
function ve(E) {
|
|
3195
|
+
Se(r.value[o.value]), E.preventDefault();
|
|
3195
3196
|
}
|
|
3196
3197
|
function Ce(E) {
|
|
3197
3198
|
if (h.value)
|
|
3198
3199
|
switch (E.key) {
|
|
3199
3200
|
case "ArrowDown":
|
|
3200
|
-
|
|
3201
|
+
de("down"), E.preventDefault();
|
|
3201
3202
|
break;
|
|
3202
3203
|
case "ArrowUp":
|
|
3203
|
-
|
|
3204
|
+
de("up"), E.preventDefault();
|
|
3204
3205
|
break;
|
|
3205
3206
|
case "Home":
|
|
3206
|
-
|
|
3207
|
+
de("home"), E.preventDefault();
|
|
3207
3208
|
break;
|
|
3208
3209
|
case "End":
|
|
3209
|
-
|
|
3210
|
+
de("end"), E.preventDefault();
|
|
3210
3211
|
break;
|
|
3211
3212
|
}
|
|
3212
3213
|
}
|
|
3213
|
-
function
|
|
3214
|
-
let
|
|
3214
|
+
function de(E) {
|
|
3215
|
+
let W;
|
|
3215
3216
|
switch (E) {
|
|
3216
3217
|
case "up":
|
|
3217
|
-
|
|
3218
|
+
W = o.value - 1 < 0 ? r.value.length - 1 : o.value - 1;
|
|
3218
3219
|
break;
|
|
3219
3220
|
case "down":
|
|
3220
|
-
|
|
3221
|
+
W = (o.value + 1) % r.value.length;
|
|
3221
3222
|
break;
|
|
3222
3223
|
case "home":
|
|
3223
|
-
|
|
3224
|
+
W = 0;
|
|
3224
3225
|
break;
|
|
3225
3226
|
case "end":
|
|
3226
|
-
|
|
3227
|
+
W = r.value.length - 1;
|
|
3227
3228
|
break;
|
|
3228
3229
|
}
|
|
3229
|
-
|
|
3230
|
+
we(W);
|
|
3230
3231
|
}
|
|
3231
|
-
function xe(E,
|
|
3232
|
+
function xe(E, W) {
|
|
3232
3233
|
if (!h.value) return;
|
|
3233
|
-
|
|
3234
|
-
const
|
|
3235
|
-
|
|
3234
|
+
W.keys = E.timeStamp - W.lastTyped > 500 ? E.key : W.keys + E.key, W.lastTyped = E.timeStamp;
|
|
3235
|
+
const M = r.value.findIndex((Y) => Y.textContent.replaceAll(/[^a-zA-Z0-9]/g, "").toLowerCase().startsWith(W.keys));
|
|
3236
|
+
M > -1 && we(M, !1);
|
|
3236
3237
|
}
|
|
3237
|
-
function
|
|
3238
|
-
|
|
3238
|
+
function we(E, W = !0) {
|
|
3239
|
+
F(), o.value = E, document.activeElement !== i.value && W ? i.value.focus() : L();
|
|
3239
3240
|
}
|
|
3240
3241
|
return a({
|
|
3241
3242
|
activeIndex: o,
|
|
3242
3243
|
optionEls: r,
|
|
3243
3244
|
optionsRef: i,
|
|
3244
|
-
refreshOptions:
|
|
3245
|
+
refreshOptions: I,
|
|
3245
3246
|
setCurrentActive: L
|
|
3246
|
-
}), (E,
|
|
3247
|
+
}), (E, W) => (d(), b("ul", {
|
|
3247
3248
|
ref_key: "optionsRef",
|
|
3248
3249
|
ref: i,
|
|
3249
3250
|
"aria-activedescendant": u.value || void 0,
|
|
@@ -3255,18 +3256,18 @@ const ln = {
|
|
|
3255
3256
|
id: e.optionsId,
|
|
3256
3257
|
role: "listbox",
|
|
3257
3258
|
tabindex: c(h) ? 0 : void 0,
|
|
3258
|
-
onBlur:
|
|
3259
|
-
onFocus:
|
|
3260
|
-
onMousedown:
|
|
3259
|
+
onBlur: F,
|
|
3260
|
+
onFocus: _,
|
|
3261
|
+
onMousedown: W[0] || (W[0] = wt(() => {
|
|
3261
3262
|
}, ["prevent"]))
|
|
3262
3263
|
}, [
|
|
3263
3264
|
V(E.$slots, "default")
|
|
3264
|
-
], 40,
|
|
3265
|
+
], 40, Mn));
|
|
3265
3266
|
}
|
|
3266
|
-
},
|
|
3267
|
+
}, Nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3267
3268
|
__proto__: null,
|
|
3268
3269
|
default: Re
|
|
3269
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3270
|
+
}, Symbol.toStringTag, { value: "Module" })), zn = { role: "separator" }, Fn = {
|
|
3270
3271
|
key: 1,
|
|
3271
3272
|
role: "option",
|
|
3272
3273
|
"data-no-hover": "true"
|
|
@@ -3304,22 +3305,22 @@ const ln = {
|
|
|
3304
3305
|
"uncheck-option"
|
|
3305
3306
|
],
|
|
3306
3307
|
setup(e, { emit: a }) {
|
|
3307
|
-
const t = e, l = a, n =
|
|
3308
|
-
var
|
|
3309
|
-
return ((
|
|
3308
|
+
const t = e, l = a, n = $(null), i = $([]), u = $([]), o = f(() => {
|
|
3309
|
+
var w, p;
|
|
3310
|
+
return ((w = i.value) == null ? void 0 : w.length) && ((p = u.value) == null ? void 0 : p.length);
|
|
3310
3311
|
}), s = f(() => {
|
|
3311
|
-
var
|
|
3312
|
-
return ((
|
|
3312
|
+
var w, p;
|
|
3313
|
+
return ((w = i.value) == null ? void 0 : w.length) || ((p = u.value) == null ? void 0 : p.length);
|
|
3313
3314
|
});
|
|
3314
3315
|
let r = !1;
|
|
3315
|
-
|
|
3316
|
+
U(() => t.options, () => {
|
|
3316
3317
|
v(t.selectedOptions);
|
|
3317
|
-
}),
|
|
3318
|
+
}), U(
|
|
3318
3319
|
() => t.selectedOptions,
|
|
3319
3320
|
v,
|
|
3320
3321
|
{ immediate: !0 }
|
|
3321
|
-
),
|
|
3322
|
-
|
|
3322
|
+
), U(() => t.shown, (w) => {
|
|
3323
|
+
w && t.focusOnOpen && Ae(m);
|
|
3323
3324
|
});
|
|
3324
3325
|
function m() {
|
|
3325
3326
|
n.value && (n.value.refreshOptions(), n.value.optionsRef.focus());
|
|
@@ -3327,28 +3328,28 @@ const ln = {
|
|
|
3327
3328
|
function g() {
|
|
3328
3329
|
n.value && (n.value.refreshOptions(), n.value.setCurrentActive());
|
|
3329
3330
|
}
|
|
3330
|
-
function v(
|
|
3331
|
-
const p = new Set(
|
|
3332
|
-
t.options.forEach((
|
|
3333
|
-
const
|
|
3334
|
-
p.has(
|
|
3331
|
+
function v(w = []) {
|
|
3332
|
+
const p = new Set(w), S = [], k = [];
|
|
3333
|
+
t.options.forEach((I) => {
|
|
3334
|
+
const q = { ...I }, T = `${t.optionsId}-${I.value}-cb`;
|
|
3335
|
+
p.has(I.value) ? (q.checkbox = { inputId: T, checked: !0 }, S.push(q)) : (q.checkbox = { inputId: T, checked: !1 }, k.push(q));
|
|
3335
3336
|
}), i.value = S, Ae(() => {
|
|
3336
3337
|
u.value = k, Ae(() => {
|
|
3337
3338
|
r && g(), r = !1;
|
|
3338
3339
|
});
|
|
3339
3340
|
});
|
|
3340
3341
|
}
|
|
3341
|
-
function h(
|
|
3342
|
-
const p = new Set(
|
|
3342
|
+
function h(w = []) {
|
|
3343
|
+
const p = new Set(w), S = [];
|
|
3343
3344
|
return t.options.forEach((k) => {
|
|
3344
3345
|
p.has(k.value) && S.push(k.value);
|
|
3345
3346
|
}), S;
|
|
3346
3347
|
}
|
|
3347
|
-
function y(
|
|
3348
|
+
function y(w) {
|
|
3348
3349
|
let p = [];
|
|
3349
|
-
t.selectedOptions.includes(
|
|
3350
|
+
t.selectedOptions.includes(w) ? (p = t.selectedOptions.filter((S) => S !== w), l("uncheck-option", w)) : (p = h([...t.selectedOptions, w]), l("check-option", w)), r = !0, l("update:selectedOptions", p);
|
|
3350
3351
|
}
|
|
3351
|
-
return (
|
|
3352
|
+
return (w, p) => (d(), O(Re, {
|
|
3352
3353
|
ref_key: "optlist",
|
|
3353
3354
|
ref: n,
|
|
3354
3355
|
"aria-multiselectable": "true",
|
|
@@ -3365,28 +3366,28 @@ const ln = {
|
|
|
3365
3366
|
options: i.value,
|
|
3366
3367
|
"show-no-options": !1
|
|
3367
3368
|
}, null, 8, ["options"]),
|
|
3368
|
-
|
|
3369
|
-
|
|
3369
|
+
ce(B("li", zn, p[0] || (p[0] = [
|
|
3370
|
+
B("hr", null, null, -1)
|
|
3370
3371
|
]), 512), [
|
|
3371
|
-
[
|
|
3372
|
+
[fe, o.value]
|
|
3372
3373
|
]),
|
|
3373
3374
|
P(qe, {
|
|
3374
3375
|
options: u.value,
|
|
3375
3376
|
"show-no-options": !1
|
|
3376
3377
|
}, null, 8, ["options"])
|
|
3377
|
-
], 64)) : (d(), b("li",
|
|
3378
|
-
V(
|
|
3379
|
-
p[1] || (p[1] =
|
|
3378
|
+
], 64)) : (d(), b("li", Fn, [
|
|
3379
|
+
V(w.$slots, "no-options", {}, () => [
|
|
3380
|
+
p[1] || (p[1] = j("No options"))
|
|
3380
3381
|
])
|
|
3381
3382
|
]))
|
|
3382
3383
|
]),
|
|
3383
3384
|
_: 3
|
|
3384
3385
|
}, 8, ["label", "options-id", "shown"]));
|
|
3385
3386
|
}
|
|
3386
|
-
},
|
|
3387
|
+
}, Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3387
3388
|
__proto__: null,
|
|
3388
3389
|
default: Dt
|
|
3389
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3390
|
+
}, Symbol.toStringTag, { value: "Module" })), Wn = {
|
|
3390
3391
|
__name: "BsDropdownWithOptionsNew",
|
|
3391
3392
|
props: {
|
|
3392
3393
|
// DROPDOWN PROPS
|
|
@@ -3461,7 +3462,7 @@ const ln = {
|
|
|
3461
3462
|
"after-leave"
|
|
3462
3463
|
],
|
|
3463
3464
|
setup(e, { emit: a }) {
|
|
3464
|
-
const t = a, l =
|
|
3465
|
+
const t = a, l = $(!1);
|
|
3465
3466
|
function n() {
|
|
3466
3467
|
l.value = !0;
|
|
3467
3468
|
}
|
|
@@ -3624,7 +3625,7 @@ const ln = {
|
|
|
3624
3625
|
function r(m) {
|
|
3625
3626
|
l("optselected", m), l("update:modelValue", m);
|
|
3626
3627
|
}
|
|
3627
|
-
return (m, g) => (d(), O(
|
|
3628
|
+
return (m, g) => (d(), O(Wn, {
|
|
3628
3629
|
"anchor-id": o.value,
|
|
3629
3630
|
breakout: e.breakout,
|
|
3630
3631
|
"container-id": e.containerId,
|
|
@@ -3650,10 +3651,10 @@ const ln = {
|
|
|
3650
3651
|
_: 3
|
|
3651
3652
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "label", "model-value", "options-id", "position", "preloaded", "prevent-tab", "shown", "use-mobile-style", "width"]));
|
|
3652
3653
|
}
|
|
3653
|
-
},
|
|
3654
|
+
}, jn = ["data-size"], Un = { class: "bs-empty-state-icon" }, Gn = { class: "bs-empty-state-title" }, Hn = {
|
|
3654
3655
|
key: 0,
|
|
3655
3656
|
class: "bs-empty-state-description"
|
|
3656
|
-
},
|
|
3657
|
+
}, Ro = {
|
|
3657
3658
|
__name: "BsEmptyState",
|
|
3658
3659
|
props: {
|
|
3659
3660
|
description: {
|
|
@@ -3681,23 +3682,23 @@ const ln = {
|
|
|
3681
3682
|
"data-component": "bs-empty-state",
|
|
3682
3683
|
"data-size": e.size
|
|
3683
3684
|
}, [
|
|
3684
|
-
|
|
3685
|
+
B("div", Un, [
|
|
3685
3686
|
V(l.$slots, "icon", {}, () => [
|
|
3686
|
-
(d(), O(
|
|
3687
|
+
(d(), O(ne(c(t)), { size: "auto" }))
|
|
3687
3688
|
])
|
|
3688
3689
|
]),
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
e.size !== "xs" ? (d(), b("p",
|
|
3690
|
+
B("div", null, [
|
|
3691
|
+
B("p", Gn, A(e.title), 1),
|
|
3692
|
+
e.size !== "xs" ? (d(), b("p", Hn, [
|
|
3692
3693
|
V(l.$slots, "description", {}, () => [
|
|
3693
|
-
|
|
3694
|
+
j(A(e.description), 1)
|
|
3694
3695
|
])
|
|
3695
3696
|
])) : C("", !0),
|
|
3696
3697
|
V(l.$slots, "call-to-action")
|
|
3697
3698
|
])
|
|
3698
|
-
], 8,
|
|
3699
|
+
], 8, jn));
|
|
3699
3700
|
}
|
|
3700
|
-
},
|
|
3701
|
+
}, Kn = ["data-absolute", "data-position", "data-shown", "data-size"], Yn = { class: "bs-flyout-close-container" }, Wo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3701
3702
|
__name: "BsFlyout",
|
|
3702
3703
|
props: {
|
|
3703
3704
|
absolute: {
|
|
@@ -3733,8 +3734,8 @@ const ln = {
|
|
|
3733
3734
|
},
|
|
3734
3735
|
emits: ["close"],
|
|
3735
3736
|
setup(e, { emit: a }) {
|
|
3736
|
-
const t = e, l = a, n =
|
|
3737
|
-
Ct([n, i], u),
|
|
3737
|
+
const t = e, l = a, n = $(null), i = f(() => document.getElementById(t.toggleId));
|
|
3738
|
+
Ct([n, i], u), be(["Escape"], u);
|
|
3738
3739
|
function u() {
|
|
3739
3740
|
t.shown && l("close");
|
|
3740
3741
|
}
|
|
@@ -3744,7 +3745,7 @@ const ln = {
|
|
|
3744
3745
|
shown: e.shown
|
|
3745
3746
|
}, {
|
|
3746
3747
|
default: D(() => [
|
|
3747
|
-
|
|
3748
|
+
B("div", z({
|
|
3748
3749
|
ref_key: "flyout",
|
|
3749
3750
|
ref: n,
|
|
3750
3751
|
class: "bs-flyout",
|
|
@@ -3754,26 +3755,26 @@ const ln = {
|
|
|
3754
3755
|
"data-shown": e.shown,
|
|
3755
3756
|
"data-size": e.size
|
|
3756
3757
|
}, o.$attrs), [
|
|
3757
|
-
|
|
3758
|
-
|
|
3758
|
+
B("div", Yn, [
|
|
3759
|
+
B("button", {
|
|
3759
3760
|
type: "button",
|
|
3760
3761
|
title: "Close",
|
|
3761
3762
|
"aria-label": "Close",
|
|
3762
3763
|
onClick: u
|
|
3763
3764
|
}, [
|
|
3764
|
-
P(c(
|
|
3765
|
+
P(c(Ie))
|
|
3765
3766
|
])
|
|
3766
3767
|
]),
|
|
3767
3768
|
V(o.$slots, "default")
|
|
3768
|
-
], 16,
|
|
3769
|
+
], 16, Kn)
|
|
3769
3770
|
]),
|
|
3770
3771
|
_: 3
|
|
3771
3772
|
}, 8, ["preloaded", "shown"]));
|
|
3772
3773
|
}
|
|
3773
|
-
}),
|
|
3774
|
+
}), Zn = ["view-box"], Xn = ["id"], Qn = ["offset", "stop-color"], jo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3774
3775
|
__name: "BsIconGradientWrapper",
|
|
3775
3776
|
setup(e) {
|
|
3776
|
-
const a =
|
|
3777
|
+
const a = $(null), t = $(null), l = [
|
|
3777
3778
|
{ offset: 0.1326, color: "#EE282A" },
|
|
3778
3779
|
{ offset: 0.5466, color: "#1C0087" },
|
|
3779
3780
|
{ offset: 0.9715, color: "#0086EA" }
|
|
@@ -3781,7 +3782,7 @@ const ln = {
|
|
|
3781
3782
|
return X(() => {
|
|
3782
3783
|
t.value = a.value.querySelector("svg").getAttribute("viewBox") || "0 0 0 0";
|
|
3783
3784
|
}), (i, u) => (d(), b(K, null, [
|
|
3784
|
-
|
|
3785
|
+
B("span", z({
|
|
3785
3786
|
ref_key: "svgWrapperRef",
|
|
3786
3787
|
ref: a,
|
|
3787
3788
|
class: "bs-icon-gradient-wrapper",
|
|
@@ -3795,7 +3796,7 @@ const ln = {
|
|
|
3795
3796
|
width: "0",
|
|
3796
3797
|
height: "0"
|
|
3797
3798
|
}, [
|
|
3798
|
-
|
|
3799
|
+
B("linearGradient", {
|
|
3799
3800
|
id: c(n),
|
|
3800
3801
|
x1: "0",
|
|
3801
3802
|
y1: "0",
|
|
@@ -3803,16 +3804,16 @@ const ln = {
|
|
|
3803
3804
|
y2: "100%",
|
|
3804
3805
|
"gradient-units": "userSpaceOnUse"
|
|
3805
3806
|
}, [
|
|
3806
|
-
(d(), b(K, null,
|
|
3807
|
+
(d(), b(K, null, ae(l, (o) => B("stop", {
|
|
3807
3808
|
key: o.offset,
|
|
3808
3809
|
offset: o.offset,
|
|
3809
3810
|
"stop-color": o.color
|
|
3810
|
-
}, null, 8,
|
|
3811
|
-
], 8,
|
|
3812
|
-
], 8,
|
|
3811
|
+
}, null, 8, Qn)), 64))
|
|
3812
|
+
], 8, Xn)
|
|
3813
|
+
], 8, Zn))
|
|
3813
3814
|
], 64));
|
|
3814
3815
|
}
|
|
3815
|
-
}),
|
|
3816
|
+
}), Uo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3816
3817
|
__name: "BsInputField",
|
|
3817
3818
|
props: {
|
|
3818
3819
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -3859,13 +3860,13 @@ const ln = {
|
|
|
3859
3860
|
},
|
|
3860
3861
|
emits: ["update:modelValue"],
|
|
3861
3862
|
setup(e, { emit: a }) {
|
|
3862
|
-
const t = e, [l, n] = Q(2), i = f(() =>
|
|
3863
|
+
const t = e, [l, n] = Q(2), i = f(() => he.concat(t.passAttrs.split(",")).concat("type")), u = f(() => {
|
|
3863
3864
|
var r, m;
|
|
3864
3865
|
return ((m = (r = t.hints) == null ? void 0 : r.join) == null ? void 0 : m.call(r, `
|
|
3865
3866
|
`)) || t.hints;
|
|
3866
3867
|
}), o = f(() => t.error && t.errorMsg || t.hint || u.value || void 0), s = f(() => t.inputId || l.value);
|
|
3867
3868
|
return (r, m) => (d(), b("div", z({ "data-component": "bs-input-field" }, c(Z)(r.$attrs, i.value).remaining), [
|
|
3868
|
-
e.label || r.$slots.label ? (d(), O(
|
|
3869
|
+
e.label || r.$slots.label ? (d(), O(le, {
|
|
3869
3870
|
key: 0,
|
|
3870
3871
|
for: r.$attrs.id || s.value,
|
|
3871
3872
|
disabled: e.disabled,
|
|
@@ -3873,12 +3874,12 @@ const ln = {
|
|
|
3873
3874
|
}, {
|
|
3874
3875
|
default: D(() => [
|
|
3875
3876
|
V(r.$slots, "label", {}, () => [
|
|
3876
|
-
|
|
3877
|
+
j(A(e.label), 1)
|
|
3877
3878
|
])
|
|
3878
3879
|
]),
|
|
3879
3880
|
_: 3
|
|
3880
3881
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
3881
|
-
P(
|
|
3882
|
+
P(ke, z({
|
|
3882
3883
|
disabled: e.disabled,
|
|
3883
3884
|
error: e.error,
|
|
3884
3885
|
"hint-id": c(n),
|
|
@@ -3889,7 +3890,7 @@ const ln = {
|
|
|
3889
3890
|
value: e.value || e.modelValue,
|
|
3890
3891
|
"onUpdate:modelValue": m[0] || (m[0] = (g) => r.$emit("update:modelValue", g))
|
|
3891
3892
|
}, c(Z)(r.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
|
|
3892
|
-
o.value ? (d(), O(
|
|
3893
|
+
o.value ? (d(), O(ye, {
|
|
3893
3894
|
key: 1,
|
|
3894
3895
|
error: e.error,
|
|
3895
3896
|
"error-msg": e.errorMsg,
|
|
@@ -3925,7 +3926,7 @@ const ln = {
|
|
|
3925
3926
|
X: "🇽",
|
|
3926
3927
|
Y: "🇾",
|
|
3927
3928
|
Z: "🇿"
|
|
3928
|
-
},
|
|
3929
|
+
}, je = {
|
|
3929
3930
|
data: {
|
|
3930
3931
|
allCountries: null,
|
|
3931
3932
|
byCountryCode: null,
|
|
@@ -3951,8 +3952,8 @@ const ln = {
|
|
|
3951
3952
|
* @returns {Country[]} an array of country objects
|
|
3952
3953
|
*/
|
|
3953
3954
|
initSourceData() {
|
|
3954
|
-
return this.data.allCountries || (this.data.allCountries =
|
|
3955
|
-
const a =
|
|
3955
|
+
return this.data.allCountries || (this.data.allCountries = ma().map((e) => {
|
|
3956
|
+
const a = ba(e), t = bt[a[0]] + bt[a[1]] || "";
|
|
3956
3957
|
return {
|
|
3957
3958
|
label: `+${e}`,
|
|
3958
3959
|
flag: t,
|
|
@@ -3966,10 +3967,10 @@ const ln = {
|
|
|
3966
3967
|
this.data[e][t[a]] = t;
|
|
3967
3968
|
}));
|
|
3968
3969
|
}
|
|
3969
|
-
},
|
|
3970
|
+
}, Jn = ["id", "aria-controls", "aria-expanded", "aria-label", "disabled"], _n = { key: 0 }, el = {
|
|
3970
3971
|
"aria-hidden": "true",
|
|
3971
3972
|
style: { width: "1.25rem" }
|
|
3972
|
-
},
|
|
3973
|
+
}, tl = { "aria-hidden": "true" }, Go = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3973
3974
|
__name: "BsInputPhone",
|
|
3974
3975
|
props: {
|
|
3975
3976
|
deferValidation: {
|
|
@@ -4031,124 +4032,124 @@ const ln = {
|
|
|
4031
4032
|
"Escape",
|
|
4032
4033
|
"Home",
|
|
4033
4034
|
"Tab"
|
|
4034
|
-
], u =
|
|
4035
|
+
], u = $(null), o = $(1), s = $([]), r = $(null), [
|
|
4035
4036
|
m,
|
|
4036
4037
|
g,
|
|
4037
4038
|
v,
|
|
4038
4039
|
h
|
|
4039
|
-
] = Q(4), y =
|
|
4040
|
+
] = Q(4), y = $(!1), w = $(""), p = $(""), S = $(!1), k = $(!1), I = $(!0);
|
|
4040
4041
|
a({
|
|
4041
4042
|
validationErr: S,
|
|
4042
4043
|
validationErrMsg: p
|
|
4043
4044
|
});
|
|
4044
|
-
const
|
|
4045
|
-
|
|
4046
|
-
n("update:modelValue",
|
|
4047
|
-
}),
|
|
4048
|
-
function
|
|
4049
|
-
|
|
4050
|
-
}
|
|
4051
|
-
function
|
|
4052
|
-
var
|
|
4053
|
-
k.value && (k.value = !1, (
|
|
4054
|
-
}
|
|
4055
|
-
function
|
|
4045
|
+
const q = f(() => w.value ? `+${o.value}${w.value}` : ""), T = f(() => `Country code: ${o.value}. Click to change.`), L = f(() => I.value ? l.errorMsg || p.value : ""), F = f(() => l.error || S.value), _ = f(() => l.hint || F.value && L.value), R = f(() => I.value && F.value);
|
|
4046
|
+
U(q, (M) => {
|
|
4047
|
+
n("update:modelValue", M), W(M);
|
|
4048
|
+
}), U(() => l.modelValue, H), xe(), X(() => y.value = !0);
|
|
4049
|
+
function H(M, Y) {
|
|
4050
|
+
M === "" && M !== Y && (w.value = "");
|
|
4051
|
+
}
|
|
4052
|
+
function te() {
|
|
4053
|
+
var M;
|
|
4054
|
+
k.value && (k.value = !1, (M = u.value) == null || M.focus());
|
|
4055
|
+
}
|
|
4056
|
+
function Se(M) {
|
|
4056
4057
|
var Y;
|
|
4057
|
-
o.value =
|
|
4058
|
+
o.value = M, k.value = !1, (Y = u.value) == null || Y.focus(), E(M);
|
|
4058
4059
|
}
|
|
4059
|
-
function
|
|
4060
|
-
l.deferValidation && (
|
|
4060
|
+
function ve() {
|
|
4061
|
+
l.deferValidation && (I.value = !0), n("input-blur");
|
|
4061
4062
|
}
|
|
4062
|
-
function Ce(
|
|
4063
|
-
|
|
4063
|
+
function Ce(M) {
|
|
4064
|
+
w.value = M.target.value, l.deferValidation && (I.value = !1);
|
|
4064
4065
|
}
|
|
4065
|
-
function
|
|
4066
|
+
function de(M) {
|
|
4066
4067
|
var Y, J;
|
|
4067
|
-
!((J = (Y =
|
|
4068
|
+
!((J = (Y = M.key) == null ? void 0 : Y.match) != null && J.call(Y, /[0-9]/)) && !i.includes(M.key) && !M.ctrlKey && !M.metaKey && M.preventDefault();
|
|
4068
4069
|
}
|
|
4069
4070
|
function xe() {
|
|
4070
|
-
|
|
4071
|
+
je.initSourceData(), we(), E(o.value), W(q.value);
|
|
4071
4072
|
}
|
|
4072
|
-
function
|
|
4073
|
+
function we() {
|
|
4073
4074
|
var Y, J;
|
|
4074
|
-
let
|
|
4075
|
-
|
|
4075
|
+
let M = ct(l.modelValue);
|
|
4076
|
+
M.valid || M.countryCode && ((J = (Y = l.modelValue) == null ? void 0 : Y.startsWith) != null && J.call(Y, "+")) ? (o.value = M.countryCode, w.value = M.number.significant) : w.value = l.modelValue, s.value = je.data.allCountries.map((Te) => ({
|
|
4076
4077
|
...Te,
|
|
4077
4078
|
isSelected: o.value === Te
|
|
4078
4079
|
}));
|
|
4079
4080
|
}
|
|
4080
|
-
function E(
|
|
4081
|
-
r.value =
|
|
4081
|
+
function E(M) {
|
|
4082
|
+
r.value = je.getCountryByCountryCode(M);
|
|
4082
4083
|
}
|
|
4083
|
-
function
|
|
4084
|
-
S.value =
|
|
4084
|
+
function W(M) {
|
|
4085
|
+
S.value = M ? !ct(M).valid : !1, p.value = S.value ? "Invalid phone number" : "";
|
|
4085
4086
|
}
|
|
4086
|
-
return (
|
|
4087
|
+
return (M, Y) => (d(), b("div", z({
|
|
4087
4088
|
class: "bs-input-phone",
|
|
4088
4089
|
"data-component": "bs-input-phone"
|
|
4089
|
-
}, c(Z)(
|
|
4090
|
-
P(
|
|
4091
|
-
for:
|
|
4090
|
+
}, c(Z)(M.$attrs, c(he)).remaining), [
|
|
4091
|
+
P(le, {
|
|
4092
|
+
for: M.$attrs.id || e.inputId || c(h),
|
|
4092
4093
|
required: e.required,
|
|
4093
4094
|
disabled: e.disabled,
|
|
4094
|
-
class:
|
|
4095
|
+
class: oe({ "visually-hidden": e.hideLabel })
|
|
4095
4096
|
}, {
|
|
4096
4097
|
default: D(() => [
|
|
4097
|
-
|
|
4098
|
+
j(A(e.label), 1)
|
|
4098
4099
|
]),
|
|
4099
4100
|
_: 1
|
|
4100
4101
|
}, 8, ["for", "required", "disabled", "class"]),
|
|
4101
4102
|
P(De, {
|
|
4102
4103
|
disabled: e.disabled,
|
|
4103
|
-
error:
|
|
4104
|
+
error: R.value,
|
|
4104
4105
|
multifocus: !0,
|
|
4105
4106
|
variant: "inner-bordered"
|
|
4106
4107
|
}, {
|
|
4107
4108
|
default: D(() => {
|
|
4108
4109
|
var J;
|
|
4109
4110
|
return [
|
|
4110
|
-
|
|
4111
|
+
B("button", {
|
|
4111
4112
|
id: c(m),
|
|
4112
4113
|
ref_key: "countryCodesToggle",
|
|
4113
4114
|
ref: u,
|
|
4114
4115
|
"aria-controls": c(g),
|
|
4115
4116
|
"aria-expanded": k.value,
|
|
4116
4117
|
"aria-haspopup": "listbox",
|
|
4117
|
-
"aria-label":
|
|
4118
|
+
"aria-label": T.value,
|
|
4118
4119
|
disabled: e.disabled,
|
|
4119
4120
|
type: "button",
|
|
4120
4121
|
onClick: Y[0] || (Y[0] = (Te) => k.value = !k.value)
|
|
4121
4122
|
}, [
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
P(c(
|
|
4125
|
-
], 8,
|
|
4126
|
-
P(
|
|
4127
|
-
"input-id":
|
|
4123
|
+
B("span", null, A((J = r.value) == null ? void 0 : J.flag), 1),
|
|
4124
|
+
B("span", null, "+" + A(o.value), 1),
|
|
4125
|
+
P(c(Yt), { size: "sm" })
|
|
4126
|
+
], 8, Jn),
|
|
4127
|
+
P(ke, z({
|
|
4128
|
+
"input-id": M.$attrs.id || e.inputId || c(h),
|
|
4128
4129
|
disabled: e.disabled,
|
|
4129
4130
|
"hint-id": c(v),
|
|
4130
4131
|
placeholder: e.placeholder,
|
|
4131
|
-
value:
|
|
4132
|
+
value: w.value,
|
|
4132
4133
|
"data-autowidth": "",
|
|
4133
4134
|
type: "tel"
|
|
4134
|
-
}, c(Z)(
|
|
4135
|
+
}, c(Z)(M.$attrs, c(he)).filtered, {
|
|
4135
4136
|
onInput: Ce,
|
|
4136
|
-
onFocusout:
|
|
4137
|
-
onKeydown:
|
|
4137
|
+
onFocusout: ve,
|
|
4138
|
+
onKeydown: de
|
|
4138
4139
|
}), null, 16, ["input-id", "disabled", "hint-id", "placeholder", "value"])
|
|
4139
4140
|
];
|
|
4140
4141
|
}),
|
|
4141
4142
|
_: 1
|
|
4142
4143
|
}, 8, ["disabled", "error"]),
|
|
4143
|
-
|
|
4144
|
-
error:
|
|
4144
|
+
ce(P(ye, {
|
|
4145
|
+
error: F.value,
|
|
4145
4146
|
"error-msg": L.value,
|
|
4146
4147
|
hint: e.hint,
|
|
4147
4148
|
"hint-id": c(v)
|
|
4148
4149
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
4149
|
-
[
|
|
4150
|
+
[fe, _.value]
|
|
4150
4151
|
]),
|
|
4151
|
-
y.value ? (d(), b("div",
|
|
4152
|
+
y.value ? (d(), b("div", _n, [
|
|
4152
4153
|
P(Pt, {
|
|
4153
4154
|
"anchor-id": c(m),
|
|
4154
4155
|
"helper-text": "Country Code",
|
|
@@ -4158,19 +4159,19 @@ const ln = {
|
|
|
4158
4159
|
preloaded: "",
|
|
4159
4160
|
shown: k.value,
|
|
4160
4161
|
width: "content",
|
|
4161
|
-
onClose:
|
|
4162
|
-
"onUpdate:modelValue":
|
|
4162
|
+
onClose: te,
|
|
4163
|
+
"onUpdate:modelValue": Se
|
|
4163
4164
|
}, {
|
|
4164
4165
|
default: D(() => [
|
|
4165
|
-
y.value ? (d(!0), b(K, { key: 0 },
|
|
4166
|
+
y.value ? (d(!0), b(K, { key: 0 }, ae(s.value, (J) => (d(), O(it, {
|
|
4166
4167
|
"aria-label": J.value,
|
|
4167
4168
|
key: J.value,
|
|
4168
4169
|
value: `${J.value}`,
|
|
4169
4170
|
variant: "2-col"
|
|
4170
4171
|
}, {
|
|
4171
4172
|
default: D(() => [
|
|
4172
|
-
|
|
4173
|
-
|
|
4173
|
+
B("span", el, A(J == null ? void 0 : J.flag), 1),
|
|
4174
|
+
B("span", tl, A(J.label), 1)
|
|
4174
4175
|
]),
|
|
4175
4176
|
_: 2
|
|
4176
4177
|
}, 1032, ["aria-label", "value"]))), 128)) : C("", !0)
|
|
@@ -4180,7 +4181,7 @@ const ln = {
|
|
|
4180
4181
|
])) : C("", !0)
|
|
4181
4182
|
], 16));
|
|
4182
4183
|
}
|
|
4183
|
-
}),
|
|
4184
|
+
}), al = ["data-size", "data-variant"], nl = ["stroke"], ll = { key: 0 }, ht = {
|
|
4184
4185
|
__name: "BsSpinner",
|
|
4185
4186
|
props: {
|
|
4186
4187
|
label: {
|
|
@@ -4207,24 +4208,24 @@ const ln = {
|
|
|
4207
4208
|
viewBox: "0 0 100 100",
|
|
4208
4209
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4209
4210
|
}, [
|
|
4210
|
-
|
|
4211
|
-
|
|
4211
|
+
B("title", null, A(e.label), 1),
|
|
4212
|
+
B("circle", {
|
|
4212
4213
|
cx: "50",
|
|
4213
4214
|
cy: "50",
|
|
4214
4215
|
pathLength: "100",
|
|
4215
4216
|
r: "45",
|
|
4216
4217
|
stroke: e.variant === "gradient" ? "url(#bs-spinner-gradient)" : void 0
|
|
4217
|
-
}, null, 8,
|
|
4218
|
-
e.variant === "gradient" ? (d(), b("defs",
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4218
|
+
}, null, 8, nl),
|
|
4219
|
+
e.variant === "gradient" ? (d(), b("defs", ll, t[0] || (t[0] = [
|
|
4220
|
+
B("linearGradient", { id: "bs-spinner-gradient" }, [
|
|
4221
|
+
B("stop", { offset: "0%" }),
|
|
4222
|
+
B("stop", { offset: "49%" }),
|
|
4223
|
+
B("stop", { offset: "100%" })
|
|
4223
4224
|
], -1)
|
|
4224
4225
|
]))) : C("", !0)
|
|
4225
|
-
], 8,
|
|
4226
|
+
], 8, al));
|
|
4226
4227
|
}
|
|
4227
|
-
},
|
|
4228
|
+
}, ol = ["id"], il = { style: { display: "flex", "justify-content": "center" } }, rl = { style: { display: "flex", "justify-content": "center" } }, Ho = {
|
|
4228
4229
|
__name: "BsInputTypeahead",
|
|
4229
4230
|
props: {
|
|
4230
4231
|
characterThreshold: {
|
|
@@ -4296,30 +4297,30 @@ const ln = {
|
|
|
4296
4297
|
},
|
|
4297
4298
|
emits: ["update:inputValue", "update:optionsValue"],
|
|
4298
4299
|
setup(e, { emit: a }) {
|
|
4299
|
-
const t = e, l = a, n =
|
|
4300
|
+
const t = e, l = a, n = $(!1), i = $(!1), [u] = Q();
|
|
4300
4301
|
let o = [];
|
|
4301
|
-
|
|
4302
|
+
U(() => t.inputValue, () => {
|
|
4302
4303
|
i.value ? i.value = !1 : p();
|
|
4303
4304
|
});
|
|
4304
4305
|
const s = f(() => t.typeaheadId || u.value), r = f(() => `${s.value}-input-container`), m = f(() => `${s.value}-input`), g = f(() => `${s.value}-options`), v = f(() => t.multiselect ? Array.isArray(t.optionsValue) ? t.optionsValue : [t.optionsValue] : t.optionsValue), h = f(() => {
|
|
4305
4306
|
if (n.value) {
|
|
4306
|
-
let
|
|
4307
|
-
const L = t.inputValue.toLowerCase(),
|
|
4308
|
-
return t.inputValue.length >= t.characterThreshold && (
|
|
4307
|
+
let T = t.options;
|
|
4308
|
+
const L = t.inputValue.toLowerCase(), F = t.filterType === "includes" ? "includes" : "startsWith";
|
|
4309
|
+
return t.inputValue.length >= t.characterThreshold && (T = y(T, L, F), T = T.slice(0, t.maxOptions), T = w(T, L, F), o = T), T;
|
|
4309
4310
|
} else
|
|
4310
4311
|
return o;
|
|
4311
4312
|
});
|
|
4312
|
-
function y(
|
|
4313
|
-
return t.internalFiltering ?
|
|
4313
|
+
function y(T, L, F) {
|
|
4314
|
+
return t.internalFiltering ? T.filter((_) => _.label.toLowerCase()[F](L)) : T;
|
|
4314
4315
|
}
|
|
4315
|
-
function
|
|
4316
|
-
return
|
|
4317
|
-
let
|
|
4316
|
+
function w(T, L, F) {
|
|
4317
|
+
return T.map((_) => {
|
|
4318
|
+
let R = _.label;
|
|
4318
4319
|
if (L !== "") {
|
|
4319
|
-
const
|
|
4320
|
-
|
|
4320
|
+
const H = F === "includes" ? "gi" : "i", te = new RegExp(`(${L})`, H);
|
|
4321
|
+
R = _.label.replace(te, '<span style="color: var(--bs-blue-base)">$1</span>');
|
|
4321
4322
|
}
|
|
4322
|
-
return { ...
|
|
4323
|
+
return { ..._, labelHtml: R };
|
|
4323
4324
|
});
|
|
4324
4325
|
}
|
|
4325
4326
|
function p() {
|
|
@@ -4328,34 +4329,34 @@ const ln = {
|
|
|
4328
4329
|
function S() {
|
|
4329
4330
|
l("update:inputValue", ""), t.multiselect || l("update:optionsValue", ""), document.getElementById(m.value).focus();
|
|
4330
4331
|
}
|
|
4331
|
-
function k(
|
|
4332
|
+
function k(T) {
|
|
4332
4333
|
i.value = !0;
|
|
4333
|
-
const L = h.value.find((
|
|
4334
|
-
l("update:inputValue", L.label), l("update:optionsValue",
|
|
4334
|
+
const L = h.value.find((F) => F.value === T);
|
|
4335
|
+
l("update:inputValue", L.label), l("update:optionsValue", T);
|
|
4335
4336
|
}
|
|
4336
|
-
function
|
|
4337
|
-
const L = [...v.value,
|
|
4337
|
+
function I(T) {
|
|
4338
|
+
const L = [...v.value, T];
|
|
4338
4339
|
l("update:optionsValue", L);
|
|
4339
4340
|
}
|
|
4340
|
-
function
|
|
4341
|
-
const L = v.value.filter((
|
|
4341
|
+
function q(T) {
|
|
4342
|
+
const L = v.value.filter((F) => F !== T);
|
|
4342
4343
|
l("update:optionsValue", L);
|
|
4343
4344
|
}
|
|
4344
|
-
return (
|
|
4345
|
-
e.label ||
|
|
4345
|
+
return (T, L) => (d(), b(K, null, [
|
|
4346
|
+
e.label || T.$slots.label ? (d(), O(le, {
|
|
4346
4347
|
key: 0,
|
|
4347
4348
|
for: m.value,
|
|
4348
4349
|
disabled: e.disabled,
|
|
4349
4350
|
required: e.required
|
|
4350
4351
|
}, {
|
|
4351
4352
|
default: D(() => [
|
|
4352
|
-
V(
|
|
4353
|
-
|
|
4353
|
+
V(T.$slots, "label", {}, () => [
|
|
4354
|
+
j(A(e.label), 1)
|
|
4354
4355
|
])
|
|
4355
4356
|
]),
|
|
4356
4357
|
_: 3
|
|
4357
4358
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
4358
|
-
|
|
4359
|
+
B("div", {
|
|
4359
4360
|
id: r.value,
|
|
4360
4361
|
class: "typeahead-search-wrapper"
|
|
4361
4362
|
}, [
|
|
@@ -4372,19 +4373,19 @@ const ln = {
|
|
|
4372
4373
|
placeholder: e.placeholder,
|
|
4373
4374
|
role: "combobox",
|
|
4374
4375
|
value: e.inputValue
|
|
4375
|
-
},
|
|
4376
|
+
}, T.$attrs, {
|
|
4376
4377
|
onClear: S,
|
|
4377
4378
|
onFocusin: p,
|
|
4378
|
-
"onUpdate:modelValue": L[0] || (L[0] = (
|
|
4379
|
+
"onUpdate:modelValue": L[0] || (L[0] = (F) => l("update:inputValue", F))
|
|
4379
4380
|
}), null, 16, ["aria-controls", "aria-expanded", "disabled", "hide-clear", "hide-search-icon", "input-id", "placeholder", "value"])
|
|
4380
|
-
], 8,
|
|
4381
|
+
], 8, ol),
|
|
4381
4382
|
P(ot, {
|
|
4382
4383
|
"anchor-id": r.value,
|
|
4383
4384
|
preloaded: !0,
|
|
4384
4385
|
shown: n.value,
|
|
4385
4386
|
"use-mobile-style": !1,
|
|
4386
4387
|
width: "toggle",
|
|
4387
|
-
onClose: L[2] || (L[2] = (
|
|
4388
|
+
onClose: L[2] || (L[2] = (F) => n.value = !1)
|
|
4388
4389
|
}, {
|
|
4389
4390
|
default: D(() => [
|
|
4390
4391
|
e.multiselect ? (d(), O(Dt, {
|
|
@@ -4395,13 +4396,13 @@ const ln = {
|
|
|
4395
4396
|
"options-id": g.value,
|
|
4396
4397
|
"selected-options": v.value,
|
|
4397
4398
|
shown: n.value,
|
|
4398
|
-
onCheckOption:
|
|
4399
|
-
onUncheckOption:
|
|
4399
|
+
onCheckOption: I,
|
|
4400
|
+
onUncheckOption: q
|
|
4400
4401
|
}, Ze({ _: 2 }, [
|
|
4401
4402
|
e.loading ? {
|
|
4402
4403
|
name: "no-options",
|
|
4403
4404
|
fn: D(() => [
|
|
4404
|
-
|
|
4405
|
+
B("span", il, [
|
|
4405
4406
|
P(ht, { size: "sm" })
|
|
4406
4407
|
])
|
|
4407
4408
|
]),
|
|
@@ -4409,7 +4410,7 @@ const ln = {
|
|
|
4409
4410
|
} : {
|
|
4410
4411
|
name: "no-options",
|
|
4411
4412
|
fn: D(() => [
|
|
4412
|
-
L[3] || (L[3] =
|
|
4413
|
+
L[3] || (L[3] = j("No results found"))
|
|
4413
4414
|
]),
|
|
4414
4415
|
key: "1"
|
|
4415
4416
|
}
|
|
@@ -4420,14 +4421,14 @@ const ln = {
|
|
|
4420
4421
|
"options-id": g.value,
|
|
4421
4422
|
shown: n.value,
|
|
4422
4423
|
"onUpdate:modelValue": k,
|
|
4423
|
-
onClose: L[1] || (L[1] = (
|
|
4424
|
+
onClose: L[1] || (L[1] = (F) => n.value = !1)
|
|
4424
4425
|
}, {
|
|
4425
4426
|
default: D(() => [
|
|
4426
4427
|
P(qe, { options: h.value }, Ze({ _: 2 }, [
|
|
4427
4428
|
e.loading ? {
|
|
4428
4429
|
name: "no-options",
|
|
4429
4430
|
fn: D(() => [
|
|
4430
|
-
|
|
4431
|
+
B("span", rl, [
|
|
4431
4432
|
P(ht, { size: "sm" })
|
|
4432
4433
|
])
|
|
4433
4434
|
]),
|
|
@@ -4435,7 +4436,7 @@ const ln = {
|
|
|
4435
4436
|
} : {
|
|
4436
4437
|
name: "no-options",
|
|
4437
4438
|
fn: D(() => [
|
|
4438
|
-
L[4] || (L[4] =
|
|
4439
|
+
L[4] || (L[4] = j("No results found"))
|
|
4439
4440
|
]),
|
|
4440
4441
|
key: "1"
|
|
4441
4442
|
}
|
|
@@ -4448,7 +4449,7 @@ const ln = {
|
|
|
4448
4449
|
}, 8, ["anchor-id", "shown"])
|
|
4449
4450
|
], 64));
|
|
4450
4451
|
}
|
|
4451
|
-
},
|
|
4452
|
+
}, sl = ["data-size", "data-variant"], Ko = {
|
|
4452
4453
|
__name: "BsLoader",
|
|
4453
4454
|
props: {
|
|
4454
4455
|
size: {
|
|
@@ -4468,14 +4469,14 @@ const ln = {
|
|
|
4468
4469
|
"data-variant": e.variant,
|
|
4469
4470
|
role: "status"
|
|
4470
4471
|
}, t[0] || (t[0] = [
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
]), 8,
|
|
4472
|
+
B("span", null, null, -1),
|
|
4473
|
+
B("span", null, null, -1),
|
|
4474
|
+
B("span", null, null, -1),
|
|
4475
|
+
B("span", null, null, -1),
|
|
4476
|
+
B("span", { class: "visually-hidden" }, "Loading", -1)
|
|
4477
|
+
]), 8, sl));
|
|
4477
4478
|
}
|
|
4478
|
-
},
|
|
4479
|
+
}, dl = ["data-shown"], ul = {
|
|
4479
4480
|
__name: "BsOverlay",
|
|
4480
4481
|
props: {
|
|
4481
4482
|
shown: {
|
|
@@ -4507,7 +4508,7 @@ const ln = {
|
|
|
4507
4508
|
const t = e, l = a, { transition: n } = Ee(t);
|
|
4508
4509
|
X(() => {
|
|
4509
4510
|
i();
|
|
4510
|
-
}),
|
|
4511
|
+
}), U(n, () => {
|
|
4511
4512
|
i();
|
|
4512
4513
|
});
|
|
4513
4514
|
function i() {
|
|
@@ -4521,18 +4522,18 @@ const ln = {
|
|
|
4521
4522
|
onAfterLeave: o[1] || (o[1] = (s) => l("after-leave"))
|
|
4522
4523
|
}, {
|
|
4523
4524
|
default: D(() => [
|
|
4524
|
-
|
|
4525
|
+
B("div", {
|
|
4525
4526
|
class: "bs-overlay",
|
|
4526
4527
|
"data-shown": c(n)
|
|
4527
|
-
}, null, 8,
|
|
4528
|
+
}, null, 8, dl)
|
|
4528
4529
|
]),
|
|
4529
4530
|
_: 1
|
|
4530
4531
|
}, 8, ["shown", "preloaded"]));
|
|
4531
4532
|
}
|
|
4532
|
-
},
|
|
4533
|
+
}, cl = ["id", "role", "aria-labelledby", "data-shown", "data-full-width", "data-full-height"], fl = ["id"], pl = {
|
|
4533
4534
|
key: 1,
|
|
4534
4535
|
class: "modal-footer"
|
|
4535
|
-
},
|
|
4536
|
+
}, Yo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4536
4537
|
__name: "BsModal",
|
|
4537
4538
|
props: {
|
|
4538
4539
|
modalId: {
|
|
@@ -4587,19 +4588,19 @@ const ln = {
|
|
|
4587
4588
|
setup(e, { emit: a }) {
|
|
4588
4589
|
const t = et(), l = e, n = a, { transition: i } = Ee(l), [u] = Q();
|
|
4589
4590
|
let o = !1;
|
|
4590
|
-
const s =
|
|
4591
|
+
const s = $(null), r = (v) => {
|
|
4591
4592
|
s.value && v.target.closest(".bs-overlay") && n("close", l.modalId);
|
|
4592
4593
|
};
|
|
4593
4594
|
X(() => {
|
|
4594
4595
|
document.addEventListener("click", r);
|
|
4595
|
-
}),
|
|
4596
|
+
}), $e(() => {
|
|
4596
4597
|
document.removeEventListener("click", r);
|
|
4597
|
-
}),
|
|
4598
|
+
}), be(["Escape"], () => {
|
|
4598
4599
|
o && n("close", l.modalId);
|
|
4599
4600
|
});
|
|
4600
4601
|
const m = f(() => !l.title && !t.title && l.closeButton), g = f(() => (l.title || t.title) && l.closeButton);
|
|
4601
4602
|
return (v, h) => (d(), b(K, null, [
|
|
4602
|
-
P(
|
|
4603
|
+
P(ul, {
|
|
4603
4604
|
shown: c(i),
|
|
4604
4605
|
preloaded: e.preloaded,
|
|
4605
4606
|
"enter-controlled": e.enterControlled,
|
|
@@ -4612,10 +4613,10 @@ const ln = {
|
|
|
4612
4613
|
shown: c(i),
|
|
4613
4614
|
onAfterEnter: h[1] || (h[1] = (y) => n("after-enter")),
|
|
4614
4615
|
onAfterLeave: h[2] || (h[2] = (y) => n("after-leave")),
|
|
4615
|
-
onEnter: h[3] || (h[3] = (y) =>
|
|
4616
|
+
onEnter: h[3] || (h[3] = (y) => Ut(o) ? o.value = !0 : o = !0)
|
|
4616
4617
|
}, {
|
|
4617
4618
|
default: D(() => [
|
|
4618
|
-
|
|
4619
|
+
B("div", z({
|
|
4619
4620
|
id: e.modalId,
|
|
4620
4621
|
class: "bs-modal",
|
|
4621
4622
|
"data-component": "bs-modal",
|
|
@@ -4631,7 +4632,7 @@ const ln = {
|
|
|
4631
4632
|
}), [
|
|
4632
4633
|
e.title || v.$slots.title || e.closeButton ? (d(), b("header", {
|
|
4633
4634
|
key: 0,
|
|
4634
|
-
class:
|
|
4635
|
+
class: oe({
|
|
4635
4636
|
"only-close-button-modal-header": m.value,
|
|
4636
4637
|
"modal-header": g.value
|
|
4637
4638
|
})
|
|
@@ -4641,41 +4642,41 @@ const ln = {
|
|
|
4641
4642
|
key: 0,
|
|
4642
4643
|
id: c(u),
|
|
4643
4644
|
class: "modal-title"
|
|
4644
|
-
},
|
|
4645
|
+
}, A(e.title), 9, fl)) : C("", !0)
|
|
4645
4646
|
]),
|
|
4646
4647
|
e.closeButton ? (d(), b("button", {
|
|
4647
4648
|
key: 0,
|
|
4648
4649
|
type: "button",
|
|
4649
4650
|
title: "Close Modal",
|
|
4650
4651
|
"aria-label": "Close Modal",
|
|
4651
|
-
class:
|
|
4652
|
+
class: oe({ "full-width-header-close-button": e.fullWidth || e.fullHeight }),
|
|
4652
4653
|
onClick: h[0] || (h[0] = (y) => n("close", e.modalId))
|
|
4653
4654
|
}, [
|
|
4654
|
-
P(c(
|
|
4655
|
+
P(c(Ie), { class: "close-button" })
|
|
4655
4656
|
], 2)) : C("", !0)
|
|
4656
4657
|
], 2)) : C("", !0),
|
|
4657
|
-
|
|
4658
|
+
B("div", null, [
|
|
4658
4659
|
V(v.$slots, "default")
|
|
4659
4660
|
]),
|
|
4660
|
-
v.$slots.footer ? (d(), b("footer",
|
|
4661
|
+
v.$slots.footer ? (d(), b("footer", pl, [
|
|
4661
4662
|
V(v.$slots, "footer")
|
|
4662
4663
|
])) : C("", !0)
|
|
4663
|
-
], 16,
|
|
4664
|
+
], 16, cl)
|
|
4664
4665
|
]),
|
|
4665
4666
|
_: 3
|
|
4666
4667
|
}, 8, ["preloaded", "shown"])
|
|
4667
4668
|
], 64));
|
|
4668
4669
|
}
|
|
4669
|
-
}),
|
|
4670
|
+
}), ml = ["data-variant", "data-fixed"], bl = {
|
|
4670
4671
|
key: 0,
|
|
4671
4672
|
class: "bs-pagination-carets"
|
|
4672
|
-
},
|
|
4673
|
+
}, hl = ["aria-label", "title", "disabled"], vl = { key: 0 }, gl = ["aria-label", "title", "disabled"], yl = { key: 0 }, Sl = {
|
|
4673
4674
|
key: 1,
|
|
4674
4675
|
class: "bs-pagination-page-numbers"
|
|
4675
|
-
},
|
|
4676
|
+
}, wl = ["title", "data-selected", "onClick"], Bl = { key: 2 }, $l = { key: 3 }, Il = { class: "bs-pagination-results-numbers" }, kl = ["data-selected", "disabled", "onClick"], Cl = {
|
|
4676
4677
|
key: 5,
|
|
4677
4678
|
class: "bs-pagination-carets"
|
|
4678
|
-
},
|
|
4679
|
+
}, xl = ["aria-label", "title", "disabled"], Tl = { key: 0 }, Al = ["aria-label", "title", "disabled"], Ol = { key: 0 }, Zo = {
|
|
4679
4680
|
__name: "BsPagination",
|
|
4680
4681
|
props: {
|
|
4681
4682
|
// Used for all
|
|
@@ -4761,16 +4762,16 @@ const ln = {
|
|
|
4761
4762
|
},
|
|
4762
4763
|
emits: ["selchange", "update:modelValue"],
|
|
4763
4764
|
setup(e, { emit: a }) {
|
|
4764
|
-
const t = e, l = a, n =
|
|
4765
|
+
const t = e, l = a, n = $(null);
|
|
4765
4766
|
X(() => {
|
|
4766
|
-
i.value ? n.value = i.value : t.variant === "results" ? n.value =
|
|
4767
|
+
i.value ? n.value = i.value : t.variant === "results" ? n.value = w.value[0] : n.value = 1;
|
|
4767
4768
|
});
|
|
4768
4769
|
const i = f(() => t.modelValue || t.selection);
|
|
4769
|
-
|
|
4770
|
+
U(() => t.selection, (p) => {
|
|
4770
4771
|
n.value = p;
|
|
4771
|
-
}),
|
|
4772
|
+
}), U(() => t.modelValue, (p) => {
|
|
4772
4773
|
n.value = p;
|
|
4773
|
-
}),
|
|
4774
|
+
}), U(n, (p, S) => {
|
|
4774
4775
|
S !== null && (l("selchange", p), l("update:modelValue", p));
|
|
4775
4776
|
});
|
|
4776
4777
|
const u = f(() => {
|
|
@@ -4798,97 +4799,97 @@ const ln = {
|
|
|
4798
4799
|
if (t.pageCount <= t.pageRange)
|
|
4799
4800
|
return [...Array(t.pageCount + 1).keys()].slice(1);
|
|
4800
4801
|
const p = [1], S = (t.pageRange - 1) / 2;
|
|
4801
|
-
let k = n.value - S,
|
|
4802
|
-
k < 1 && (
|
|
4803
|
-
for (let
|
|
4804
|
-
p.push(
|
|
4805
|
-
return
|
|
4802
|
+
let k = n.value - S, I = n.value + S;
|
|
4803
|
+
k < 1 && (I += 1 - k, k = 1), I > t.pageCount && (k -= I - t.pageCount, I = t.pageCount), k = Math.max(k, 2), I = Math.min(I, t.pageCount - 1), k > 2 && p.push(t.breakText);
|
|
4804
|
+
for (let q = k; q <= I; q++)
|
|
4805
|
+
p.push(q);
|
|
4806
|
+
return I < t.pageCount - 1 && p.push(t.breakText), p.push(t.pageCount), p;
|
|
4806
4807
|
}), h = f(() => `${t.centerLabel ?? "Page"} ${n.value} of ${u.value}`), y = f(() => {
|
|
4807
4808
|
const p = (n.value - 1) * t.itemsPerGroup + 1, S = Math.min(p - 1 + t.itemsPerGroup, t.itemsCount);
|
|
4808
4809
|
return `${t.centerLabel ?? "Results"} ${p} - ${S} of ${t.itemsCount}`;
|
|
4809
|
-
}),
|
|
4810
|
+
}), w = f(() => t.resultsIncrements.split(",").map((p) => parseInt(p)));
|
|
4810
4811
|
return (p, S) => (d(), b("div", {
|
|
4811
4812
|
class: "bs-pagination",
|
|
4812
4813
|
"data-component": "bs-pagination",
|
|
4813
4814
|
"data-variant": o.value,
|
|
4814
4815
|
"data-fixed": t.fixed
|
|
4815
4816
|
}, [
|
|
4816
|
-
e.variant === "base" || e.variant === "group" ? (d(), b("div",
|
|
4817
|
+
e.variant === "base" || e.variant === "group" ? (d(), b("div", bl, [
|
|
4817
4818
|
e.showFirstLastButtons ? (d(), b("button", {
|
|
4818
4819
|
key: 0,
|
|
4819
4820
|
type: "button",
|
|
4820
|
-
class:
|
|
4821
|
+
class: oe(e.firstPageText ? "bs-pagination-word-caret" : void 0),
|
|
4821
4822
|
"aria-label": e.firstPageText ? void 0 : "First Page",
|
|
4822
4823
|
title: e.firstPageText,
|
|
4823
4824
|
disabled: n.value === 1,
|
|
4824
4825
|
onClick: s
|
|
4825
4826
|
}, [
|
|
4826
|
-
P(c(
|
|
4827
|
-
e.firstPageText ? (d(), b("span",
|
|
4828
|
-
], 10,
|
|
4829
|
-
|
|
4827
|
+
P(c(Zt)),
|
|
4828
|
+
e.firstPageText ? (d(), b("span", vl, A(e.firstPageText), 1)) : C("", !0)
|
|
4829
|
+
], 10, hl)) : C("", !0),
|
|
4830
|
+
B("button", {
|
|
4830
4831
|
type: "button",
|
|
4831
|
-
class:
|
|
4832
|
+
class: oe(e.prevPageText ? "bs-pagination-word-caret" : void 0),
|
|
4832
4833
|
"aria-label": e.prevPageText ? void 0 : "Previous Page",
|
|
4833
4834
|
title: e.prevPageText,
|
|
4834
4835
|
disabled: n.value === 1,
|
|
4835
4836
|
onClick: r
|
|
4836
4837
|
}, [
|
|
4837
4838
|
P(c(It)),
|
|
4838
|
-
e.prevPageText ? (d(), b("span",
|
|
4839
|
-
], 10,
|
|
4839
|
+
e.prevPageText ? (d(), b("span", yl, A(e.prevPageText), 1)) : C("", !0)
|
|
4840
|
+
], 10, gl)
|
|
4840
4841
|
])) : C("", !0),
|
|
4841
|
-
e.variant === "base" && e.centerDisplay === "numbers" ? (d(), b("div",
|
|
4842
|
-
(d(!0), b(K, null,
|
|
4842
|
+
e.variant === "base" && e.centerDisplay === "numbers" ? (d(), b("div", Sl, [
|
|
4843
|
+
(d(!0), b(K, null, ae(v.value, (k) => (d(), b("button", {
|
|
4843
4844
|
key: `page-${k}-button`,
|
|
4844
4845
|
type: "button",
|
|
4845
4846
|
title: `Page ${k}`,
|
|
4846
4847
|
"data-selected": k === n.value,
|
|
4847
|
-
onClick: (
|
|
4848
|
-
},
|
|
4848
|
+
onClick: (I) => n.value = k
|
|
4849
|
+
}, A(k), 9, wl))), 128))
|
|
4849
4850
|
])) : C("", !0),
|
|
4850
|
-
t.variant === "base" && t.centerDisplay === "text" ? (d(), b("span",
|
|
4851
|
-
t.variant === "group" ? (d(), b("span",
|
|
4851
|
+
t.variant === "base" && t.centerDisplay === "text" ? (d(), b("span", Bl, A(h.value), 1)) : C("", !0),
|
|
4852
|
+
t.variant === "group" ? (d(), b("span", $l, A(y.value), 1)) : C("", !0),
|
|
4852
4853
|
t.variant === "results" ? (d(), b(K, { key: 4 }, [
|
|
4853
|
-
S[0] || (S[0] =
|
|
4854
|
-
|
|
4855
|
-
(d(!0), b(K, null,
|
|
4854
|
+
S[0] || (S[0] = B("span", null, "Results Per Page:", -1)),
|
|
4855
|
+
B("div", Il, [
|
|
4856
|
+
(d(!0), b(K, null, ae(w.value, (k) => (d(), b("button", {
|
|
4856
4857
|
type: "button",
|
|
4857
4858
|
key: `results-${k}`,
|
|
4858
4859
|
"data-selected": k === n.value,
|
|
4859
4860
|
disabled: n.value === k,
|
|
4860
|
-
onClick: (
|
|
4861
|
-
},
|
|
4861
|
+
onClick: (I) => n.value = k
|
|
4862
|
+
}, A(k), 9, kl))), 128))
|
|
4862
4863
|
])
|
|
4863
4864
|
], 64)) : C("", !0),
|
|
4864
|
-
e.variant === "base" || e.variant === "group" ? (d(), b("div",
|
|
4865
|
-
|
|
4865
|
+
e.variant === "base" || e.variant === "group" ? (d(), b("div", Cl, [
|
|
4866
|
+
B("button", {
|
|
4866
4867
|
type: "button",
|
|
4867
|
-
class:
|
|
4868
|
+
class: oe(e.nextPageText ? "bs-pagination-word-caret" : void 0),
|
|
4868
4869
|
"aria-label": e.nextPageText ? void 0 : "Next Page",
|
|
4869
4870
|
title: e.nextPageText,
|
|
4870
4871
|
disabled: n.value === u.value,
|
|
4871
4872
|
onClick: m
|
|
4872
4873
|
}, [
|
|
4873
|
-
e.nextPageText ? (d(), b("span",
|
|
4874
|
+
e.nextPageText ? (d(), b("span", Tl, A(e.nextPageText), 1)) : C("", !0),
|
|
4874
4875
|
P(c($t))
|
|
4875
|
-
], 10,
|
|
4876
|
+
], 10, xl),
|
|
4876
4877
|
e.showFirstLastButtons ? (d(), b("button", {
|
|
4877
4878
|
key: 0,
|
|
4878
4879
|
type: "button",
|
|
4879
|
-
class:
|
|
4880
|
+
class: oe(e.lastPageText ? "bs-pagination-word-caret" : void 0),
|
|
4880
4881
|
"aria-label": e.lastPageText ? void 0 : "Last Page",
|
|
4881
4882
|
title: e.lastPageText,
|
|
4882
4883
|
disabled: n.value === u.value,
|
|
4883
4884
|
onClick: g
|
|
4884
4885
|
}, [
|
|
4885
|
-
e.lastPageText ? (d(), b("span",
|
|
4886
|
-
P(c(
|
|
4887
|
-
], 10,
|
|
4886
|
+
e.lastPageText ? (d(), b("span", Ol, A(e.lastPageText), 1)) : C("", !0),
|
|
4887
|
+
P(c(Xt))
|
|
4888
|
+
], 10, Al)) : C("", !0)
|
|
4888
4889
|
])) : C("", !0)
|
|
4889
|
-
], 8,
|
|
4890
|
+
], 8, ml));
|
|
4890
4891
|
}
|
|
4891
|
-
},
|
|
4892
|
+
}, Vl = ["data-truncate"], Xo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4892
4893
|
__name: "BsPill",
|
|
4893
4894
|
props: {
|
|
4894
4895
|
active: { type: Boolean, default: !1 },
|
|
@@ -4912,8 +4913,8 @@ const ln = {
|
|
|
4912
4913
|
}
|
|
4913
4914
|
},
|
|
4914
4915
|
setup(e) {
|
|
4915
|
-
const a = e, { onLinkClick: t } = Fe(a), l =
|
|
4916
|
-
return (o, s) => (d(), O(
|
|
4916
|
+
const a = e, { onLinkClick: t } = Fe(a), l = se(), { rootTag: n, attrsToBind: i, hrefUrl: u } = ze(a, l, "span");
|
|
4917
|
+
return (o, s) => (d(), O(ne(c(n)), z({
|
|
4917
4918
|
class: "bs-pill",
|
|
4918
4919
|
"data-active": e.active,
|
|
4919
4920
|
"data-component": "bs-pill",
|
|
@@ -4923,27 +4924,27 @@ const ln = {
|
|
|
4923
4924
|
".href": c(u)
|
|
4924
4925
|
}, c(i), { onClick: c(t) }), {
|
|
4925
4926
|
default: D(() => [
|
|
4926
|
-
|
|
4927
|
+
B("span", { "data-truncate": e.truncate }, [
|
|
4927
4928
|
V(o.$slots, "default")
|
|
4928
|
-
], 8,
|
|
4929
|
+
], 8, Vl)
|
|
4929
4930
|
]),
|
|
4930
4931
|
_: 3
|
|
4931
4932
|
}, 48, ["data-active", "data-status", "data-variant", "disabled", ".href", "onClick"]));
|
|
4932
4933
|
}
|
|
4933
|
-
}),
|
|
4934
|
+
}), Ll = {
|
|
4934
4935
|
class: "bs-profile-details",
|
|
4935
4936
|
"data-component": "bs-profile-details"
|
|
4936
|
-
},
|
|
4937
|
+
}, El = {
|
|
4937
4938
|
class: "bs-profile-name",
|
|
4938
4939
|
"data-size": "sm",
|
|
4939
4940
|
"data-weight": "bold"
|
|
4940
|
-
},
|
|
4941
|
+
}, Dl = {
|
|
4941
4942
|
key: 1,
|
|
4942
4943
|
"data-weight": "bold"
|
|
4943
|
-
},
|
|
4944
|
+
}, Pl = { key: 2 }, ql = { key: 3 }, Ml = {
|
|
4944
4945
|
key: 4,
|
|
4945
4946
|
"data-icon": "true"
|
|
4946
|
-
},
|
|
4947
|
+
}, Nl = {
|
|
4947
4948
|
__name: "BsProfileDetails",
|
|
4948
4949
|
props: {
|
|
4949
4950
|
profileName: {
|
|
@@ -4964,36 +4965,36 @@ const ln = {
|
|
|
4964
4965
|
function u(o) {
|
|
4965
4966
|
o.target.tagName === "BUTTON" && (o.preventDefault(), o.stopImmediatePropagation(), l("action-toggled"));
|
|
4966
4967
|
}
|
|
4967
|
-
return (o, s) => (d(), b("div",
|
|
4968
|
+
return (o, s) => (d(), b("div", Ll, [
|
|
4968
4969
|
e.action || o.$slots.action ? (d(), b("button", {
|
|
4969
4970
|
key: 0,
|
|
4970
4971
|
"data-icon": "true",
|
|
4971
4972
|
onClick: u
|
|
4972
4973
|
}, [
|
|
4973
4974
|
V(o.$slots, "action", {}, () => [
|
|
4974
|
-
e.actionIcon ? (d(), O(
|
|
4975
|
+
e.actionIcon ? (d(), O(ne(c(n) ? c(n) : "span"), {
|
|
4975
4976
|
key: 0,
|
|
4976
4977
|
class: "bs-icon"
|
|
4977
4978
|
})) : C("", !0),
|
|
4978
|
-
|
|
4979
|
+
j(" " + A(e.action), 1)
|
|
4979
4980
|
])
|
|
4980
4981
|
])) : C("", !0),
|
|
4981
|
-
|
|
4982
|
-
e.company ? (d(), b("span",
|
|
4983
|
-
e.jobTitle ? (d(), b("span",
|
|
4984
|
-
e.email ? (d(), b("span",
|
|
4985
|
-
e.miscMeta || o.$slots.misc ? (d(), b("span",
|
|
4982
|
+
B("span", El, A(e.profileName), 1),
|
|
4983
|
+
e.company ? (d(), b("span", Dl, A(e.company), 1)) : C("", !0),
|
|
4984
|
+
e.jobTitle ? (d(), b("span", Pl, A(e.jobTitle), 1)) : C("", !0),
|
|
4985
|
+
e.email ? (d(), b("span", ql, A(e.email), 1)) : C("", !0),
|
|
4986
|
+
e.miscMeta || o.$slots.misc ? (d(), b("span", Ml, [
|
|
4986
4987
|
V(o.$slots, "misc", {}, () => [
|
|
4987
|
-
e.miscMetaIcon ? (d(), O(
|
|
4988
|
+
e.miscMetaIcon ? (d(), O(ne(c(i) ? c(i) : "span"), {
|
|
4988
4989
|
key: 0,
|
|
4989
4990
|
class: "bs-icon"
|
|
4990
4991
|
})) : C("", !0),
|
|
4991
|
-
|
|
4992
|
+
j(" " + A(e.miscMeta), 1)
|
|
4992
4993
|
])
|
|
4993
4994
|
])) : C("", !0)
|
|
4994
4995
|
]));
|
|
4995
4996
|
}
|
|
4996
|
-
},
|
|
4997
|
+
}, Qo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4997
4998
|
__name: "BsProfile",
|
|
4998
4999
|
props: {
|
|
4999
5000
|
layout: {
|
|
@@ -5023,8 +5024,8 @@ const ln = {
|
|
|
5023
5024
|
},
|
|
5024
5025
|
emits: ["action-toggled"],
|
|
5025
5026
|
setup(e, { emit: a }) {
|
|
5026
|
-
const t = e, l = a, n =
|
|
5027
|
-
return (r, m) => (d(), O(
|
|
5027
|
+
const t = e, l = a, n = se(), { onLinkClick: i } = Fe(t), { rootTag: u, attrsToBind: o, hrefUrl: s } = ze(t, n, "div");
|
|
5028
|
+
return (r, m) => (d(), O(ne(c(u)), z({
|
|
5028
5029
|
class: "bs-profile",
|
|
5029
5030
|
".href": c(s),
|
|
5030
5031
|
"data-component": "bs-profile",
|
|
@@ -5038,7 +5039,7 @@ const ln = {
|
|
|
5038
5039
|
"profile-name": e.profileName,
|
|
5039
5040
|
"use-alt-text": !1
|
|
5040
5041
|
}, null, 8, ["src", "size", "initials", "profile-name"]),
|
|
5041
|
-
P(
|
|
5042
|
+
P(Nl, {
|
|
5042
5043
|
"profile-name": e.profileName,
|
|
5043
5044
|
company: e.company,
|
|
5044
5045
|
"job-title": e.jobTitle,
|
|
@@ -5087,7 +5088,7 @@ function qt(e) {
|
|
|
5087
5088
|
getStatus: l
|
|
5088
5089
|
};
|
|
5089
5090
|
}
|
|
5090
|
-
const
|
|
5091
|
+
const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-status"], Jo = {
|
|
5091
5092
|
__name: "BsProgressBar",
|
|
5092
5093
|
props: {
|
|
5093
5094
|
/** @type {Status} */
|
|
@@ -5124,18 +5125,18 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5124
5125
|
"data-component": "bs-progress-bar",
|
|
5125
5126
|
role: "progressbar"
|
|
5126
5127
|
}, [
|
|
5127
|
-
(d(!0), b(K, null,
|
|
5128
|
+
(d(!0), b(K, null, ae(e.steps, (o, s) => (d(), b("div", {
|
|
5128
5129
|
class: "bs-step-item",
|
|
5129
5130
|
"data-status": c(n)(o.status, s),
|
|
5130
5131
|
"data-variant": "progress",
|
|
5131
5132
|
key: o.id || o.label,
|
|
5132
5133
|
role: "status"
|
|
5133
5134
|
}, [
|
|
5134
|
-
|
|
5135
|
-
], 8,
|
|
5136
|
-
], 8,
|
|
5135
|
+
B("span", null, A(o.label || o) + " : " + A(c(n)(o.status, s) || "not started"), 1)
|
|
5136
|
+
], 8, Fl))), 128))
|
|
5137
|
+
], 8, zl));
|
|
5137
5138
|
}
|
|
5138
|
-
},
|
|
5139
|
+
}, Rl = ["data-disabled", "data-error", "data-size"], Wl = ["checked", "disabled", "id", "required", "value", "data-error"], _o = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5139
5140
|
__name: "BsRadio",
|
|
5140
5141
|
props: {
|
|
5141
5142
|
label: {
|
|
@@ -5187,7 +5188,7 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5187
5188
|
"data-error": e.error,
|
|
5188
5189
|
"data-size": e.size
|
|
5189
5190
|
}, c(Z)(o.$attrs, n.value).remaining), [
|
|
5190
|
-
|
|
5191
|
+
B("input", z({
|
|
5191
5192
|
checked: u.value,
|
|
5192
5193
|
disabled: e.disabled,
|
|
5193
5194
|
id: o.$attrs.id || i.value,
|
|
@@ -5197,8 +5198,8 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5197
5198
|
"data-error": e.error
|
|
5198
5199
|
}, c(Z)(o.$attrs, n.value).filtered, {
|
|
5199
5200
|
onChange: s[0] || (s[0] = (r) => o.$emit("update:modelValue", r.target.value))
|
|
5200
|
-
}), null, 16,
|
|
5201
|
-
e.label || o.$slots.label ? (d(), O(
|
|
5201
|
+
}), null, 16, Wl),
|
|
5202
|
+
e.label || o.$slots.label ? (d(), O(le, {
|
|
5202
5203
|
key: 0,
|
|
5203
5204
|
for: o.$attrs.id || i.value,
|
|
5204
5205
|
disabled: e.disabled,
|
|
@@ -5206,14 +5207,14 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5206
5207
|
}, {
|
|
5207
5208
|
default: D(() => [
|
|
5208
5209
|
V(o.$slots, "label", {}, () => [
|
|
5209
|
-
|
|
5210
|
+
j(A(e.label), 1)
|
|
5210
5211
|
])
|
|
5211
5212
|
]),
|
|
5212
5213
|
_: 3
|
|
5213
5214
|
}, 8, ["for", "disabled", "required"])) : C("", !0)
|
|
5214
|
-
], 16,
|
|
5215
|
+
], 16, Rl));
|
|
5215
5216
|
}
|
|
5216
|
-
}),
|
|
5217
|
+
}), jl = ["id", "disabled", "required", "data-error", "value"], Ul = {
|
|
5217
5218
|
__name: "BsSelect",
|
|
5218
5219
|
props: {
|
|
5219
5220
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -5239,9 +5240,9 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5239
5240
|
onChange: i[0] || (i[0] = (u) => n.$emit("update:modelValue", u.target.value))
|
|
5240
5241
|
}), [
|
|
5241
5242
|
V(n.$slots, "default")
|
|
5242
|
-
], 16,
|
|
5243
|
+
], 16, jl));
|
|
5243
5244
|
}
|
|
5244
|
-
},
|
|
5245
|
+
}, Gl = ["selected", "disabled"], Hl = ["disabled", "selected", "value"], ei = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5245
5246
|
__name: "BsSelectField",
|
|
5246
5247
|
props: {
|
|
5247
5248
|
data: {
|
|
@@ -5285,13 +5286,13 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5285
5286
|
modelValue: [String, Number]
|
|
5286
5287
|
},
|
|
5287
5288
|
setup(e) {
|
|
5288
|
-
const a = e, [t, l] = Q(2), n = f(() =>
|
|
5289
|
+
const a = e, [t, l] = Q(2), n = f(() => Ra.concat(a.passAttrs.split(","))), i = f(() => {
|
|
5289
5290
|
var r, m;
|
|
5290
5291
|
return ((m = (r = a.hints) == null ? void 0 : r.join) == null ? void 0 : m.call(r, `
|
|
5291
5292
|
`)) || a.hints;
|
|
5292
5293
|
}), u = f(() => a.error && a.errorMsg || a.hint || i.value || void 0), o = f(() => a.inputId || t.value), s = f(() => a.value || a.modelValue);
|
|
5293
5294
|
return (r, m) => (d(), b("div", z({ "data-component": "bs-select-field" }, c(Z)(r.$attrs, n.value).remaining), [
|
|
5294
|
-
e.label || r.$slots.label ? (d(), O(
|
|
5295
|
+
e.label || r.$slots.label ? (d(), O(le, {
|
|
5295
5296
|
key: 0,
|
|
5296
5297
|
for: r.$attrs.id || o.value,
|
|
5297
5298
|
disabled: e.disabled,
|
|
@@ -5299,12 +5300,12 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5299
5300
|
}, {
|
|
5300
5301
|
default: D(() => [
|
|
5301
5302
|
V(r.$slots, "label", {}, () => [
|
|
5302
|
-
|
|
5303
|
+
j(A(e.label), 1)
|
|
5303
5304
|
])
|
|
5304
5305
|
]),
|
|
5305
5306
|
_: 3
|
|
5306
5307
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
5307
|
-
P(
|
|
5308
|
+
P(Ul, z({
|
|
5308
5309
|
disabled: e.disabled,
|
|
5309
5310
|
error: e.error,
|
|
5310
5311
|
"hint-id": c(l),
|
|
@@ -5314,21 +5315,21 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5314
5315
|
"onUpdate:modelValue": m[0] || (m[0] = (g) => r.$emit("update:modelValue", g))
|
|
5315
5316
|
}, c(Z)(r.$attrs, n.value).filtered), {
|
|
5316
5317
|
default: D(() => [
|
|
5317
|
-
|
|
5318
|
+
B("option", {
|
|
5318
5319
|
selected: !s.value,
|
|
5319
5320
|
value: "",
|
|
5320
5321
|
disabled: !!s.value
|
|
5321
|
-
},
|
|
5322
|
-
(d(!0), b(K, null,
|
|
5322
|
+
}, A(e.disabled ? "" : e.placeholder), 9, Gl),
|
|
5323
|
+
(d(!0), b(K, null, ae(e.data, (g) => (d(), b("option", {
|
|
5323
5324
|
key: g.value,
|
|
5324
5325
|
disabled: g.disabled,
|
|
5325
5326
|
selected: s.value === g.value,
|
|
5326
5327
|
value: g.value
|
|
5327
|
-
},
|
|
5328
|
+
}, A(g.label), 9, Hl))), 128))
|
|
5328
5329
|
]),
|
|
5329
5330
|
_: 1
|
|
5330
5331
|
}, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
|
|
5331
|
-
u.value ? (d(), O(
|
|
5332
|
+
u.value ? (d(), O(ye, {
|
|
5332
5333
|
key: 1,
|
|
5333
5334
|
"data-disabled": e.disabled,
|
|
5334
5335
|
error: e.error,
|
|
@@ -5338,7 +5339,7 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5338
5339
|
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : C("", !0)
|
|
5339
5340
|
], 16));
|
|
5340
5341
|
}
|
|
5341
|
-
}),
|
|
5342
|
+
}), Kl = ["id", "name", "value"], Yl = ["aria-controls", "aria-describedby", "aria-expanded", "aria-invalid", "aria-label", "data-cy", "data-disabled", "data-error", "data-open", "data-placeholder", "data-required", "disabled", "id"], ti = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5342
5343
|
__name: "BsSelectWithDropdown",
|
|
5343
5344
|
props: {
|
|
5344
5345
|
breakout: {
|
|
@@ -5414,7 +5415,7 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5414
5415
|
},
|
|
5415
5416
|
emits: ["update:model-value"],
|
|
5416
5417
|
setup(e, { emit: a }) {
|
|
5417
|
-
const t = e, l = a, [n, i] = Q(2), u =
|
|
5418
|
+
const t = e, l = a, [n, i] = Q(2), u = se(), o = $(!1), s = f(() => t.selectId || u.id || n.value), r = f(() => t.optionsId || i.value), m = f(() => {
|
|
5418
5419
|
if (t.modelValue) {
|
|
5419
5420
|
const v = t.options.find((h) => h.value === t.modelValue);
|
|
5420
5421
|
return v ? v.label : t.placeholder;
|
|
@@ -5422,7 +5423,7 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5422
5423
|
return t.placeholder;
|
|
5423
5424
|
}), g = f(() => m.value === t.placeholder);
|
|
5424
5425
|
return (v, h) => (d(), b("div", null, [
|
|
5425
|
-
e.label || v.$slots.label ? (d(), O(
|
|
5426
|
+
e.label || v.$slots.label ? (d(), O(le, {
|
|
5426
5427
|
key: 0,
|
|
5427
5428
|
disabled: e.disabled,
|
|
5428
5429
|
for: s.value,
|
|
@@ -5430,7 +5431,7 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5430
5431
|
}, {
|
|
5431
5432
|
default: D(() => [
|
|
5432
5433
|
V(v.$slots, "label", {}, () => [
|
|
5433
|
-
|
|
5434
|
+
j(A(e.label), 1)
|
|
5434
5435
|
])
|
|
5435
5436
|
]),
|
|
5436
5437
|
_: 3
|
|
@@ -5441,7 +5442,7 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5441
5442
|
name: e.inputName,
|
|
5442
5443
|
type: "hidden",
|
|
5443
5444
|
value: e.modelValue
|
|
5444
|
-
}, null, 8,
|
|
5445
|
+
}, null, 8, Kl)) : C("", !0),
|
|
5445
5446
|
P(Lt, {
|
|
5446
5447
|
"anchor-id": s.value,
|
|
5447
5448
|
breakout: e.breakout,
|
|
@@ -5459,7 +5460,7 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5459
5460
|
"onUpdate:selectedOption": h[2] || (h[2] = (y) => l("update:model-value", y))
|
|
5460
5461
|
}, {
|
|
5461
5462
|
toggle: D(() => [
|
|
5462
|
-
|
|
5463
|
+
B("button", z({
|
|
5463
5464
|
"aria-controls": r.value,
|
|
5464
5465
|
"aria-describedby": e.hintId,
|
|
5465
5466
|
"aria-expanded": o.value,
|
|
@@ -5479,18 +5480,18 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5479
5480
|
}, v.$attrs, {
|
|
5480
5481
|
onClick: h[0] || (h[0] = wt((y) => o.value = !o.value, ["prevent"]))
|
|
5481
5482
|
}), [
|
|
5482
|
-
|
|
5483
|
+
B("span", null, A(m.value), 1),
|
|
5483
5484
|
e.disabled ? C("", !0) : (d(), O(c(Me), {
|
|
5484
5485
|
key: 0,
|
|
5485
5486
|
size: "md"
|
|
5486
5487
|
}))
|
|
5487
|
-
], 16,
|
|
5488
|
+
], 16, Yl)
|
|
5488
5489
|
]),
|
|
5489
5490
|
_: 1
|
|
5490
5491
|
}, 8, ["anchor-id", "breakout", "dropdown-position", "dropdown-width", "helper-description", "helper-text", "open", "options-id", "options", "selected-option", "toggle-id"])
|
|
5491
5492
|
]));
|
|
5492
5493
|
}
|
|
5493
|
-
}),
|
|
5494
|
+
}), Zl = ["data-disabled", "data-size"], Xl = ["data-disabled", "data-pending", "data-size"], Ql = ["checked", "disabled", "id"], Jl = ["data-inner-on-label", "data-inner-off-label"], ai = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5494
5495
|
__name: "BsSwitch",
|
|
5495
5496
|
props: {
|
|
5496
5497
|
checked: {
|
|
@@ -5543,7 +5544,7 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5543
5544
|
"data-disabled": e.disabled,
|
|
5544
5545
|
"data-size": e.size
|
|
5545
5546
|
}, c(Z)(s.$attrs, i.value).remaining), [
|
|
5546
|
-
e.label || s.$slots.label ? (d(), O(
|
|
5547
|
+
e.label || s.$slots.label ? (d(), O(le, {
|
|
5547
5548
|
key: 0,
|
|
5548
5549
|
for: s.$attrs.id || u.value,
|
|
5549
5550
|
disabled: e.disabled,
|
|
@@ -5551,34 +5552,34 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5551
5552
|
}, {
|
|
5552
5553
|
default: D(() => [
|
|
5553
5554
|
V(s.$slots, "label", {}, () => [
|
|
5554
|
-
|
|
5555
|
+
j(A(e.label), 1)
|
|
5555
5556
|
])
|
|
5556
5557
|
]),
|
|
5557
5558
|
_: 3
|
|
5558
5559
|
}, 8, ["for", "disabled", "hide"])) : C("", !0),
|
|
5559
|
-
|
|
5560
|
+
B("div", {
|
|
5560
5561
|
class: "bs-switch",
|
|
5561
5562
|
"data-disabled": e.disabled,
|
|
5562
5563
|
"data-pending": e.pending,
|
|
5563
5564
|
"data-size": e.size
|
|
5564
5565
|
}, [
|
|
5565
|
-
|
|
5566
|
+
B("input", z({
|
|
5566
5567
|
checked: o.value,
|
|
5567
5568
|
disabled: e.disabled,
|
|
5568
5569
|
id: s.$attrs.id || u.value,
|
|
5569
5570
|
type: "checkbox"
|
|
5570
5571
|
}, c(Z)(s.$attrs, i.value).filtered, {
|
|
5571
5572
|
onChange: r[0] || (r[0] = (m) => l("update:modelValue", m.target.checked))
|
|
5572
|
-
}), null, 16,
|
|
5573
|
-
|
|
5573
|
+
}), null, 16, Ql),
|
|
5574
|
+
B("span", {
|
|
5574
5575
|
"aria-hidden": "true",
|
|
5575
5576
|
"data-inner-on-label": e.innerOnLabel,
|
|
5576
5577
|
"data-inner-off-label": e.innerOffLabel
|
|
5577
|
-
}, null, 8,
|
|
5578
|
-
], 8,
|
|
5579
|
-
], 16,
|
|
5578
|
+
}, null, 8, Jl)
|
|
5579
|
+
], 8, Xl)
|
|
5580
|
+
], 16, Zl));
|
|
5580
5581
|
}
|
|
5581
|
-
}),
|
|
5582
|
+
}), _l = ["aria-controls", "aria-selected", "data-hidden"], ni = {
|
|
5582
5583
|
__name: "BsTab",
|
|
5583
5584
|
props: {
|
|
5584
5585
|
activeTabId: {
|
|
@@ -5595,7 +5596,7 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5595
5596
|
},
|
|
5596
5597
|
emits: ["tabClick"],
|
|
5597
5598
|
setup(e, { emit: a }) {
|
|
5598
|
-
const t = e, l =
|
|
5599
|
+
const t = e, l = se(), n = $(), i = f(() => t.activeTabId === l.id), u = f(() => t.panelId || `${l.id}-panel`);
|
|
5599
5600
|
function o(r) {
|
|
5600
5601
|
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), s());
|
|
5601
5602
|
}
|
|
@@ -5618,9 +5619,9 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5618
5619
|
onKeydown: o
|
|
5619
5620
|
}, [
|
|
5620
5621
|
V(r.$slots, "default")
|
|
5621
|
-
], 40,
|
|
5622
|
+
], 40, _l));
|
|
5622
5623
|
}
|
|
5623
|
-
},
|
|
5624
|
+
}, eo = ["id", "data-resizing"], to = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], ao = 73, no = 20, Ue = 16, li = {
|
|
5624
5625
|
__name: "BsTabList",
|
|
5625
5626
|
props: {
|
|
5626
5627
|
activeTabId: { type: String, required: !0 },
|
|
@@ -5631,120 +5632,128 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5631
5632
|
},
|
|
5632
5633
|
emits: ["tabChange", "update:modelValue"],
|
|
5633
5634
|
setup(e, { emit: a }) {
|
|
5634
|
-
const t = e, l = a, n =
|
|
5635
|
+
const t = e, l = a, n = $(!1), i = $(!1), u = $([]), o = $(!1), s = $(!1), r = $(), m = $([]), g = $(!1), v = $([]), h = $(), y = $([]), w = $(), p = $(), [S, k] = Q(2);
|
|
5636
|
+
let I;
|
|
5637
|
+
const q = f(() => t.activeTabId ? v.value.findIndex((x) => x.id === t.activeTabId) : 0), T = f(() => u.value.some((x) => x.id === t.activeTabId)), L = f(() => `${k.value}-options`), F = f(() => `${k.value}-toggle`), _ = f(() => {
|
|
5635
5638
|
var x;
|
|
5636
|
-
return
|
|
5637
|
-
}),
|
|
5638
|
-
function
|
|
5639
|
-
var
|
|
5640
|
-
let x = !1, N,
|
|
5641
|
-
if ((
|
|
5642
|
-
for (let
|
|
5643
|
-
if (N = v.value[
|
|
5644
|
-
N.dataset.hidden = "true",
|
|
5639
|
+
return T.value ? (x = v.value[q.value]) == null ? void 0 : x.textContent : "More";
|
|
5640
|
+
}), R = f(() => T.value ? m.value[q.value] - m.value[q.value - 1] + no + Ue : ao + Ue);
|
|
5641
|
+
function H() {
|
|
5642
|
+
var ue;
|
|
5643
|
+
let x = !1, N, G = 0, ee = !1, ie = [];
|
|
5644
|
+
if ((ue = v.value) != null && ue.length) {
|
|
5645
|
+
for (let re = 0; re < v.value.length; re++) {
|
|
5646
|
+
if (N = v.value[re], N.setAttribute("tabindex", "-1"), ee && re !== q.value) {
|
|
5647
|
+
N.dataset.hidden = "true", ie.push(N);
|
|
5645
5648
|
continue;
|
|
5646
5649
|
}
|
|
5647
|
-
if (
|
|
5648
|
-
N.dataset.hidden = "true",
|
|
5650
|
+
if (G = re < v.value.length - 1 ? p.value - R.value : p.value, m.value[re] > G) {
|
|
5651
|
+
N.dataset.hidden = "true", ie.push(N), x = !0, ee = !0;
|
|
5649
5652
|
continue;
|
|
5650
5653
|
}
|
|
5651
5654
|
N.dataset.hidden = "false", N.setAttribute("tabindex", "0");
|
|
5652
5655
|
}
|
|
5653
|
-
s.value = x, u.value =
|
|
5654
|
-
|
|
5656
|
+
s.value = x, u.value = ie, n.value || Ae(() => n.value = !0), I = setTimeout(() => {
|
|
5657
|
+
r.value && (Rt(), Te(), g.value = !0);
|
|
5655
5658
|
}, g.value ? 25 : 1e3);
|
|
5656
5659
|
}
|
|
5657
5660
|
}
|
|
5658
|
-
function
|
|
5661
|
+
function te() {
|
|
5662
|
+
clearTimeout(I);
|
|
5663
|
+
}
|
|
5664
|
+
function Se() {
|
|
5665
|
+
te(), Mt();
|
|
5666
|
+
}
|
|
5667
|
+
function ve(x) {
|
|
5659
5668
|
l("tabChange", x), l("update:modelValue", x);
|
|
5660
5669
|
}
|
|
5661
|
-
function
|
|
5662
|
-
var ee,
|
|
5663
|
-
const N = (
|
|
5670
|
+
function Ce(x) {
|
|
5671
|
+
var ee, ie, ue;
|
|
5672
|
+
const N = (ue = (ie = (ee = v.value[x]) == null ? void 0 : ee.getBoundingClientRect) == null ? void 0 : ie.call(ee)) == null ? void 0 : ue.width;
|
|
5664
5673
|
return N || (x === 0 ? m.value[0] : m.value[x] - m.value[x - 1]) || 0;
|
|
5665
5674
|
}
|
|
5666
|
-
function
|
|
5675
|
+
function de() {
|
|
5667
5676
|
var x;
|
|
5668
|
-
(x = v.value[
|
|
5677
|
+
(x = v.value[q.value]) == null || x.setAttribute("aria-selected", "true"), H();
|
|
5669
5678
|
}
|
|
5670
|
-
function
|
|
5679
|
+
function xe() {
|
|
5671
5680
|
var x;
|
|
5672
5681
|
(x = h.value) == null || x.focus(), o.value = !1;
|
|
5673
5682
|
}
|
|
5674
|
-
function
|
|
5683
|
+
function we() {
|
|
5675
5684
|
o.value = !o.value, i.value || (i.value = !0);
|
|
5676
5685
|
}
|
|
5677
|
-
function
|
|
5686
|
+
function E(x) {
|
|
5678
5687
|
var N;
|
|
5679
|
-
o.value = !1, (N = h.value) == null || N.focus(),
|
|
5688
|
+
o.value = !1, (N = h.value) == null || N.focus(), ve(x);
|
|
5680
5689
|
}
|
|
5681
|
-
function
|
|
5690
|
+
function W(x) {
|
|
5682
5691
|
if (t.withBsTabs) return;
|
|
5683
5692
|
const N = x.target.closest('[role="tab"]');
|
|
5684
5693
|
if (!N || N.getAttribute("aria-selected") === "true") return;
|
|
5685
|
-
const
|
|
5686
|
-
|
|
5694
|
+
const G = N.getAttribute("id");
|
|
5695
|
+
ve(G);
|
|
5687
5696
|
}
|
|
5688
|
-
function
|
|
5697
|
+
function M(x) {
|
|
5689
5698
|
if (x.key === "ArrowLeft" || x.key === "ArrowRight") {
|
|
5690
|
-
const N = y.value.findIndex((
|
|
5699
|
+
const N = y.value.findIndex((G) => G.id === x.target.id);
|
|
5691
5700
|
if (N === -1) return;
|
|
5692
|
-
x.preventDefault(), x.stopPropagation(), x.key === "ArrowLeft" ?
|
|
5701
|
+
x.preventDefault(), x.stopPropagation(), x.key === "ArrowLeft" ? J(N) : Y(N);
|
|
5693
5702
|
}
|
|
5694
5703
|
}
|
|
5695
|
-
function
|
|
5696
|
-
var
|
|
5704
|
+
function Y(x) {
|
|
5705
|
+
var G;
|
|
5697
5706
|
const N = (x + 1) % y.value.length;
|
|
5698
|
-
(
|
|
5707
|
+
(G = y.value[N]) == null || G.focus();
|
|
5699
5708
|
}
|
|
5700
|
-
function
|
|
5701
|
-
var
|
|
5709
|
+
function J(x) {
|
|
5710
|
+
var G;
|
|
5702
5711
|
const N = x === 0 ? y.value.length - 1 : x - 1;
|
|
5703
|
-
(
|
|
5712
|
+
(G = y.value[N]) == null || G.focus();
|
|
5704
5713
|
}
|
|
5705
|
-
function
|
|
5706
|
-
var
|
|
5714
|
+
function Te() {
|
|
5715
|
+
var ue, re, rt, st;
|
|
5707
5716
|
const x = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0, N = p.value;
|
|
5708
|
-
let
|
|
5709
|
-
s.value &&
|
|
5717
|
+
let G = 300, ee = ((re = (ue = y.value) == null ? void 0 : ue[q.value]) == null ? void 0 : re.offsetLeft) || 0, ie = Ce(q.value);
|
|
5718
|
+
s.value && T.value && (ee = (rt = h.value) == null ? void 0 : rt.offsetLeft, ie = (st = h.value) == null ? void 0 : st.offsetWidth), G = Math.max(Math.abs((ee - x) / N * 300), 100), r.value.style.setProperty("--active-line-max-width", `${N}px`), r.value.style.setProperty("--active-line-scale", `${ie / N}`), r.value.style.setProperty("--active-line-offset", `${ee}px`), r.value.style.setProperty("--active-line-transition-duration", `${G}ms`);
|
|
5710
5719
|
}
|
|
5711
|
-
function
|
|
5720
|
+
function Mt() {
|
|
5712
5721
|
var x, N;
|
|
5713
|
-
(N = (x =
|
|
5722
|
+
(N = (x = w.value) == null ? void 0 : x.disconnect) == null || N.call(x), w.value = null;
|
|
5714
5723
|
}
|
|
5715
|
-
function
|
|
5724
|
+
function Nt() {
|
|
5716
5725
|
const x = Ve(() => {
|
|
5717
|
-
p.value = r.value.clientWidth,
|
|
5726
|
+
p.value = r.value.clientWidth, H();
|
|
5718
5727
|
}, 25);
|
|
5719
|
-
|
|
5728
|
+
w.value = new ResizeObserver(x), w.value.observe(document.body), r.value && w.value.observe(r.value);
|
|
5720
5729
|
}
|
|
5721
|
-
function
|
|
5730
|
+
function zt() {
|
|
5722
5731
|
v.value = Array.from(r.value.children).filter((x) => x.role === "tab");
|
|
5723
5732
|
}
|
|
5724
|
-
function
|
|
5733
|
+
function Ft() {
|
|
5725
5734
|
let x;
|
|
5726
|
-
v.value.forEach((N,
|
|
5727
|
-
x = N.getBoundingClientRect().width + Ue, m.value.push(
|
|
5735
|
+
v.value.forEach((N, G) => {
|
|
5736
|
+
x = N.getBoundingClientRect().width + Ue, m.value.push(G ? x + m.value[G - 1] : x);
|
|
5728
5737
|
});
|
|
5729
5738
|
}
|
|
5730
|
-
function
|
|
5731
|
-
var N,
|
|
5739
|
+
function Rt() {
|
|
5740
|
+
var N, G;
|
|
5732
5741
|
let x = [];
|
|
5733
5742
|
if (typeof window > "u") return x;
|
|
5734
5743
|
for (let ee of v.value) {
|
|
5735
|
-
if (((N = ee.dataset) == null ? void 0 : N.hidden) === "true" || ((
|
|
5744
|
+
if (((N = ee.dataset) == null ? void 0 : N.hidden) === "true" || ((G = ee.dataset) == null ? void 0 : G.hidden) === "" || ee.getAttribute("tabindex") === "-1") break;
|
|
5736
5745
|
x.push(ee);
|
|
5737
5746
|
}
|
|
5738
5747
|
s.value && x.push(r.value.querySelector(".bs-tab-list-toggle")), y.value = x;
|
|
5739
5748
|
}
|
|
5740
|
-
return
|
|
5749
|
+
return U(() => t.activeTabId, de), X(() => {
|
|
5741
5750
|
var x;
|
|
5742
5751
|
try {
|
|
5743
|
-
|
|
5752
|
+
zt(), Ft(), Nt(), p.value = r.value.getBoundingClientRect().width, H(), t.withBsTabs || (x = v.value[q.value]) == null || x.setAttribute("aria-selected", "true");
|
|
5744
5753
|
} catch (N) {
|
|
5745
5754
|
console.log("tab error", N);
|
|
5746
5755
|
}
|
|
5747
|
-
}),
|
|
5756
|
+
}), $e(Se), (x, N) => (d(), b("div", {
|
|
5748
5757
|
class: "bs-tab-list",
|
|
5749
5758
|
"data-component": "bs-tab-list",
|
|
5750
5759
|
id: x.$attrs.id || c(S),
|
|
@@ -5752,57 +5761,56 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5752
5761
|
ref: r,
|
|
5753
5762
|
role: "tablist",
|
|
5754
5763
|
"data-resizing": !n.value || void 0,
|
|
5755
|
-
onClick:
|
|
5756
|
-
"on:tabClick": N[0] || (N[0] = (
|
|
5757
|
-
onKeydown:
|
|
5764
|
+
onClick: W,
|
|
5765
|
+
"on:tabClick": N[0] || (N[0] = (G) => ve(G.detail)),
|
|
5766
|
+
onKeydown: M
|
|
5758
5767
|
}, [
|
|
5759
5768
|
V(x.$slots, "default"),
|
|
5760
|
-
|
|
5769
|
+
B("button", {
|
|
5761
5770
|
"aria-controls": c(k),
|
|
5762
5771
|
"aria-expanded": o.value,
|
|
5763
5772
|
class: "bs-tab-list-toggle",
|
|
5764
|
-
"data-active":
|
|
5773
|
+
"data-active": T.value || void 0,
|
|
5765
5774
|
"data-hidden": !s.value,
|
|
5766
|
-
id:
|
|
5775
|
+
id: F.value,
|
|
5767
5776
|
ref_key: "dropdownToggle",
|
|
5768
5777
|
ref: h,
|
|
5769
|
-
onClick:
|
|
5778
|
+
onClick: we
|
|
5770
5779
|
}, [
|
|
5771
|
-
P(c(
|
|
5772
|
-
|
|
5773
|
-
], 8,
|
|
5780
|
+
P(c(Qt), { size: "sm" }),
|
|
5781
|
+
j(" " + A(_.value), 1)
|
|
5782
|
+
], 8, to),
|
|
5774
5783
|
P(Pt, {
|
|
5775
|
-
"anchor-id":
|
|
5776
|
-
breakout: "",
|
|
5784
|
+
"anchor-id": F.value,
|
|
5777
5785
|
"container-id": x.$attrs.id || c(S),
|
|
5778
5786
|
"helper-description": e.helperDescription || void 0,
|
|
5779
5787
|
"helper-text": e.helperText,
|
|
5780
5788
|
id: c(k),
|
|
5781
|
-
"options-id":
|
|
5789
|
+
"options-id": L.value,
|
|
5782
5790
|
position: "right",
|
|
5783
5791
|
preloaded: "",
|
|
5784
5792
|
shown: o.value,
|
|
5785
5793
|
width: "content",
|
|
5786
|
-
onClose:
|
|
5787
|
-
"onUpdate:modelValue":
|
|
5794
|
+
onClose: xe,
|
|
5795
|
+
"onUpdate:modelValue": E
|
|
5788
5796
|
}, {
|
|
5789
5797
|
default: D(() => [
|
|
5790
|
-
(d(!0), b(K, null,
|
|
5791
|
-
key:
|
|
5792
|
-
value:
|
|
5793
|
-
"options-id":
|
|
5798
|
+
(d(!0), b(K, null, ae(u.value, (G) => (d(), O(it, {
|
|
5799
|
+
key: G.id,
|
|
5800
|
+
value: G.id,
|
|
5801
|
+
"options-id": L.value
|
|
5794
5802
|
}, {
|
|
5795
5803
|
default: D(() => [
|
|
5796
|
-
|
|
5804
|
+
j(A(G.textContent), 1)
|
|
5797
5805
|
]),
|
|
5798
5806
|
_: 2
|
|
5799
5807
|
}, 1032, ["value", "options-id"]))), 128))
|
|
5800
5808
|
]),
|
|
5801
5809
|
_: 1
|
|
5802
5810
|
}, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])
|
|
5803
|
-
], 40,
|
|
5811
|
+
], 40, eo));
|
|
5804
5812
|
}
|
|
5805
|
-
},
|
|
5813
|
+
}, lo = ["aria-labelledby", "data-active", "id"], oi = {
|
|
5806
5814
|
__name: "BsTabPanel",
|
|
5807
5815
|
props: {
|
|
5808
5816
|
activeTabId: {
|
|
@@ -5815,7 +5823,7 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5815
5823
|
}
|
|
5816
5824
|
},
|
|
5817
5825
|
setup(e) {
|
|
5818
|
-
const a = e, t =
|
|
5826
|
+
const a = e, t = se(), l = f(() => a.activeTabId && a.activeTabId === a.tabId), n = f(() => t.id || `${a.tabId}-panel`);
|
|
5819
5827
|
return (i, u) => (d(), b("section", {
|
|
5820
5828
|
"aria-labelledby": e.tabId,
|
|
5821
5829
|
"data-active": l.value,
|
|
@@ -5824,9 +5832,9 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5824
5832
|
role: "tabpanel"
|
|
5825
5833
|
}, [
|
|
5826
5834
|
V(i.$slots, "default")
|
|
5827
|
-
], 8,
|
|
5835
|
+
], 8, lo));
|
|
5828
5836
|
}
|
|
5829
|
-
},
|
|
5837
|
+
}, oo = ["data-error", "id", "rows", "value"], io = {
|
|
5830
5838
|
__name: "BsTextarea",
|
|
5831
5839
|
props: {
|
|
5832
5840
|
error: {
|
|
@@ -5850,9 +5858,9 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5850
5858
|
rows: n.$attrs.rows || 6,
|
|
5851
5859
|
value: e.value || e.modelValue,
|
|
5852
5860
|
onInput: i[0] || (i[0] = (u) => n.$emit("update:modelValue", u.target.value))
|
|
5853
|
-
}, l.value), null, 16,
|
|
5861
|
+
}, l.value), null, 16, oo));
|
|
5854
5862
|
}
|
|
5855
|
-
},
|
|
5863
|
+
}, ii = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5856
5864
|
__name: "BsTextareaField",
|
|
5857
5865
|
props: {
|
|
5858
5866
|
/** 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. */
|
|
@@ -5901,7 +5909,7 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5901
5909
|
},
|
|
5902
5910
|
emits: ["update:modelValue"],
|
|
5903
5911
|
setup(e, { emit: a }) {
|
|
5904
|
-
const t = e, [l, n] = Q(2), i = f(() =>
|
|
5912
|
+
const t = e, [l, n] = Q(2), i = f(() => Wa.concat(t.passAttrs.split(","))), u = f(() => {
|
|
5905
5913
|
var m;
|
|
5906
5914
|
return ((m = t.value || t.modelValue) == null ? void 0 : m.length) || 0;
|
|
5907
5915
|
}), o = f(() => {
|
|
@@ -5910,7 +5918,7 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5910
5918
|
`)) || t.hints;
|
|
5911
5919
|
}), s = f(() => t.error && t.errorMsg || t.hint || o.value || void 0), r = f(() => t.inputId || l.value);
|
|
5912
5920
|
return (m, g) => (d(), b("div", z({ "data-component": "bs-textarea-field" }, c(Z)(m.$attrs, i.value).remaining), [
|
|
5913
|
-
e.label || m.$slots.label ? (d(), O(
|
|
5921
|
+
e.label || m.$slots.label ? (d(), O(le, {
|
|
5914
5922
|
key: 0,
|
|
5915
5923
|
for: m.$attrs.id || r.value,
|
|
5916
5924
|
disabled: e.disabled,
|
|
@@ -5918,12 +5926,12 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5918
5926
|
}, {
|
|
5919
5927
|
default: D(() => [
|
|
5920
5928
|
V(m.$slots, "label", {}, () => [
|
|
5921
|
-
|
|
5929
|
+
j(A(e.label), 1)
|
|
5922
5930
|
])
|
|
5923
5931
|
]),
|
|
5924
5932
|
_: 3
|
|
5925
5933
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
5926
|
-
P(
|
|
5934
|
+
P(io, z({
|
|
5927
5935
|
disabled: e.disabled,
|
|
5928
5936
|
error: e.error,
|
|
5929
5937
|
"hint-id": c(n),
|
|
@@ -5934,7 +5942,7 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5934
5942
|
value: e.value || e.modelValue,
|
|
5935
5943
|
"onUpdate:modelValue": g[0] || (g[0] = (v) => m.$emit("update:modelValue", v))
|
|
5936
5944
|
}, c(Z)(m.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
|
|
5937
|
-
s.value || e.charMax ? (d(), O(
|
|
5945
|
+
s.value || e.charMax ? (d(), O(ye, {
|
|
5938
5946
|
key: 1,
|
|
5939
5947
|
"char-count": u.value,
|
|
5940
5948
|
"char-max": e.charMax,
|
|
@@ -5947,23 +5955,23 @@ const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-sta
|
|
|
5947
5955
|
], 16));
|
|
5948
5956
|
}
|
|
5949
5957
|
});
|
|
5950
|
-
function
|
|
5958
|
+
function ro(e) {
|
|
5951
5959
|
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);
|
|
5952
5960
|
return a ? "uFmt" : t ? "uFmtNoColon" : l ? "amPm" : n ? "amPmNoColon" : "";
|
|
5953
5961
|
}
|
|
5954
|
-
const
|
|
5955
|
-
function
|
|
5962
|
+
const Be = (e) => parseInt(e, 10);
|
|
5963
|
+
function so(e = "") {
|
|
5956
5964
|
const a = /[^0-9:apmAPM]/g;
|
|
5957
5965
|
let t, l;
|
|
5958
|
-
switch (e = e.replaceAll(a, "").toLowerCase(),
|
|
5966
|
+
switch (e = e.replaceAll(a, "").toLowerCase(), ro(e)) {
|
|
5959
5967
|
case "uFmt":
|
|
5960
5968
|
case "uFmtNoColon":
|
|
5961
|
-
l =
|
|
5969
|
+
l = Be(e.slice(-2)), t = Be(e.slice(0, -2));
|
|
5962
5970
|
break;
|
|
5963
5971
|
case "amPm":
|
|
5964
5972
|
case "amPmNoColon":
|
|
5965
5973
|
const i = e.split(/(a|p|am|pm)/), u = e.includes("p");
|
|
5966
|
-
l =
|
|
5974
|
+
l = Be(i[0].slice(-2)), t = Be(i[0].slice(0, -2)), t < 12 && u && (t += 12), t === 12 && !u && (t = 0), t === 24 && (t = 0);
|
|
5967
5975
|
break;
|
|
5968
5976
|
}
|
|
5969
5977
|
return {
|
|
@@ -5971,17 +5979,17 @@ function oo(e = "") {
|
|
|
5971
5979
|
minutes: l
|
|
5972
5980
|
};
|
|
5973
5981
|
}
|
|
5974
|
-
function
|
|
5982
|
+
function ge(e = "") {
|
|
5975
5983
|
const a = /[^0-9:]/g;
|
|
5976
5984
|
if (e = e.replaceAll(a, ""), !e) return "";
|
|
5977
|
-
const [t, l] = e.split(":"), n =
|
|
5985
|
+
const [t, l] = e.split(":"), n = Be(t), i = Be(l), u = n < 12 ? "AM" : "PM";
|
|
5978
5986
|
return isNaN(n) || isNaN(i) || n > 23 || i > 59 ? "" : `${n % 12 || 12}:${l} ${u}`;
|
|
5979
5987
|
}
|
|
5980
|
-
function
|
|
5981
|
-
const { hours: a, minutes: t } =
|
|
5988
|
+
function uo(e = "") {
|
|
5989
|
+
const { hours: a, minutes: t } = so(e);
|
|
5982
5990
|
return isNaN(a) || isNaN(t) ? "" : `${a.toString().padStart(2, "0")}:${t.toString().padStart(2, "0")}`;
|
|
5983
5991
|
}
|
|
5984
|
-
const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under",
|
|
5992
|
+
const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5985
5993
|
__name: "BsTimePicker",
|
|
5986
5994
|
props: {
|
|
5987
5995
|
disabled: {
|
|
@@ -6046,21 +6054,21 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", ro =
|
|
|
6046
6054
|
},
|
|
6047
6055
|
emits: ["update:modelValue"],
|
|
6048
6056
|
setup(e, { expose: a, emit: t }) {
|
|
6049
|
-
const l = e, n = t, i =
|
|
6057
|
+
const l = e, n = t, i = $(ge(l.modelValue)), u = $([]), o = $(""), s = $(!1);
|
|
6050
6058
|
function r() {
|
|
6051
6059
|
const S = [];
|
|
6052
6060
|
let k = !1;
|
|
6053
|
-
for (let
|
|
6054
|
-
for (let
|
|
6055
|
-
const
|
|
6061
|
+
for (let I = 0; I < 24 && !k; I++)
|
|
6062
|
+
for (let q = 0; q < 60; q += l.step) {
|
|
6063
|
+
const T = v(I, q), L = g(T);
|
|
6056
6064
|
if (L !== vt) {
|
|
6057
6065
|
if (L === gt) {
|
|
6058
6066
|
k = !0;
|
|
6059
6067
|
break;
|
|
6060
6068
|
}
|
|
6061
6069
|
S.push({
|
|
6062
|
-
label:
|
|
6063
|
-
value:
|
|
6070
|
+
label: ge(T),
|
|
6071
|
+
value: T
|
|
6064
6072
|
});
|
|
6065
6073
|
}
|
|
6066
6074
|
}
|
|
@@ -6084,42 +6092,42 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", ro =
|
|
|
6084
6092
|
return S = S.toString().padStart(2, "0"), k = k.toString().padStart(2, "0"), `${S}:${k}`;
|
|
6085
6093
|
}
|
|
6086
6094
|
function h(S) {
|
|
6087
|
-
const k =
|
|
6088
|
-
k === l.modelValue && (i.value =
|
|
6095
|
+
const k = uo(S);
|
|
6096
|
+
k === l.modelValue && (i.value = ge(l.modelValue)), w(k);
|
|
6089
6097
|
}
|
|
6090
6098
|
function y() {
|
|
6091
6099
|
u.value = r();
|
|
6092
6100
|
}
|
|
6093
|
-
function
|
|
6101
|
+
function w(S) {
|
|
6094
6102
|
p(S), n("update:modelValue", S);
|
|
6095
6103
|
}
|
|
6096
6104
|
function p(S) {
|
|
6097
6105
|
switch (m(S)) {
|
|
6098
6106
|
case He:
|
|
6099
|
-
o.value = `Time must be before ${
|
|
6107
|
+
o.value = `Time must be before ${ge(l.maxTime)}`, s.value = !0;
|
|
6100
6108
|
break;
|
|
6101
6109
|
case Ke:
|
|
6102
|
-
o.value = `Time must be after ${
|
|
6110
|
+
o.value = `Time must be after ${ge(l.minTime)}`, s.value = !0;
|
|
6103
6111
|
break;
|
|
6104
6112
|
case Ge:
|
|
6105
|
-
o.value = `The following times are disabled: ${l.disabledTimes.map((
|
|
6113
|
+
o.value = `The following times are disabled: ${l.disabledTimes.map((I) => ge(I)).join(", ")}`, s.value = !0;
|
|
6106
6114
|
break;
|
|
6107
6115
|
default:
|
|
6108
6116
|
o.value = "", s.value = !1;
|
|
6109
6117
|
}
|
|
6110
6118
|
}
|
|
6111
|
-
return X(y),
|
|
6119
|
+
return X(y), U([
|
|
6112
6120
|
() => l.disabledTimes,
|
|
6113
6121
|
() => l.maxTime,
|
|
6114
6122
|
() => l.minTime,
|
|
6115
6123
|
() => l.step
|
|
6116
|
-
], y),
|
|
6124
|
+
], y), U([
|
|
6117
6125
|
() => l.disabledTimes,
|
|
6118
6126
|
() => l.maxTime,
|
|
6119
6127
|
() => l.minTime,
|
|
6120
6128
|
() => l.modelValue
|
|
6121
|
-
], () => p(l.modelValue)),
|
|
6122
|
-
i.value = l.modelValue ?
|
|
6129
|
+
], () => p(l.modelValue)), U(() => l.modelValue, (S) => {
|
|
6130
|
+
i.value = l.modelValue ? ge(S) : "";
|
|
6123
6131
|
}), a({
|
|
6124
6132
|
validationErr: s,
|
|
6125
6133
|
validationErrMsg: o
|
|
@@ -6141,7 +6149,7 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", ro =
|
|
|
6141
6149
|
"onUpdate:modelValue": h
|
|
6142
6150
|
}, null, 8, ["disabled", "display-value", "dropdown-position", "dropdown-width", "error", "helper-description", "helper-text", "hint-id", "input-id", "model-value", "options", "placeholder", "required"]));
|
|
6143
6151
|
}
|
|
6144
|
-
}),
|
|
6152
|
+
}), ri = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
6145
6153
|
__name: "BsTimePickerField",
|
|
6146
6154
|
props: {
|
|
6147
6155
|
disabled: {
|
|
@@ -6210,7 +6218,7 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", ro =
|
|
|
6210
6218
|
},
|
|
6211
6219
|
emits: ["update:modelValue"],
|
|
6212
6220
|
setup(e, { expose: a, emit: t }) {
|
|
6213
|
-
const l = e, [n, i] = Q(2), u =
|
|
6221
|
+
const l = e, [n, i] = Q(2), u = $(null), o = f(() => l.errorMsg || g.value), s = f(() => l.error || v.value), r = f(() => l.inputId || n.value), m = f(() => l.hint || s.value && o.value), g = f(() => {
|
|
6214
6222
|
var h;
|
|
6215
6223
|
return (h = u.value) == null ? void 0 : h.validationErrMsg;
|
|
6216
6224
|
}), v = f(() => {
|
|
@@ -6223,8 +6231,8 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", ro =
|
|
|
6223
6231
|
}), (h, y) => (d(), b("div", z({
|
|
6224
6232
|
"aria-live": "polite",
|
|
6225
6233
|
"data-component": "bs-time-picker-field"
|
|
6226
|
-
}, c(Z)(h.$attrs, c(
|
|
6227
|
-
e.label || h.$slots.label ? (d(), O(
|
|
6234
|
+
}, c(Z)(h.$attrs, c(he)).remaining), [
|
|
6235
|
+
e.label || h.$slots.label ? (d(), O(le, {
|
|
6228
6236
|
key: 0,
|
|
6229
6237
|
for: h.$attrs.id || r.value,
|
|
6230
6238
|
disabled: e.disabled,
|
|
@@ -6232,12 +6240,12 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", ro =
|
|
|
6232
6240
|
}, {
|
|
6233
6241
|
default: D(() => [
|
|
6234
6242
|
V(h.$slots, "label", {}, () => [
|
|
6235
|
-
|
|
6243
|
+
j(A(e.label), 1)
|
|
6236
6244
|
])
|
|
6237
6245
|
]),
|
|
6238
6246
|
_: 3
|
|
6239
6247
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
6240
|
-
P(
|
|
6248
|
+
P(co, z({
|
|
6241
6249
|
ref_key: "timePicker",
|
|
6242
6250
|
ref: u,
|
|
6243
6251
|
disabled: e.disabled,
|
|
@@ -6255,19 +6263,19 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", ro =
|
|
|
6255
6263
|
placeholder: e.placeholder,
|
|
6256
6264
|
required: e.required,
|
|
6257
6265
|
step: e.step,
|
|
6258
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
6259
|
-
}, c(Z)(h.$attrs, c(
|
|
6260
|
-
|
|
6266
|
+
"onUpdate:modelValue": y[0] || (y[0] = (w) => h.$emit("update:modelValue", w))
|
|
6267
|
+
}, c(Z)(h.$attrs, c(he)).filtered), null, 16, ["disabled", "disabled-times", "dropdown-position", "dropdown-width", "error", "helper-description", "helper-text", "hint-id", "input-id", "max-time", "min-time", "model-value", "placeholder", "required", "step"]),
|
|
6268
|
+
ce(P(ye, {
|
|
6261
6269
|
error: s.value,
|
|
6262
6270
|
"error-msg": o.value,
|
|
6263
6271
|
hint: e.hint,
|
|
6264
6272
|
"hint-id": c(i)
|
|
6265
6273
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
6266
|
-
[
|
|
6274
|
+
[fe, m.value]
|
|
6267
6275
|
])
|
|
6268
6276
|
], 16));
|
|
6269
6277
|
}
|
|
6270
|
-
}),
|
|
6278
|
+
}), fo = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], po = ["data-status"], mo = { class: "visually-hidden" }, si = {
|
|
6271
6279
|
__name: "BsTimeline",
|
|
6272
6280
|
props: {
|
|
6273
6281
|
/** @type {Status} */
|
|
@@ -6296,13 +6304,13 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", ro =
|
|
|
6296
6304
|
},
|
|
6297
6305
|
setup(e) {
|
|
6298
6306
|
const a = e, t = {
|
|
6299
|
-
cancelled:
|
|
6300
|
-
complete:
|
|
6301
|
-
error:
|
|
6302
|
-
"in-progress":
|
|
6307
|
+
cancelled: Jt,
|
|
6308
|
+
complete: _t,
|
|
6309
|
+
error: ea,
|
|
6310
|
+
"in-progress": ta,
|
|
6303
6311
|
"not-started": ut,
|
|
6304
|
-
ongoing:
|
|
6305
|
-
paused:
|
|
6312
|
+
ongoing: aa,
|
|
6313
|
+
paused: na,
|
|
6306
6314
|
warning: kt
|
|
6307
6315
|
}, { progressStep: l, progressText: n, getStatus: i } = qt(a);
|
|
6308
6316
|
function u(o, s) {
|
|
@@ -6316,24 +6324,24 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", ro =
|
|
|
6316
6324
|
"data-component": "bs-timeline",
|
|
6317
6325
|
role: "progressbar"
|
|
6318
6326
|
}, [
|
|
6319
|
-
(d(!0), b(K, null,
|
|
6327
|
+
(d(!0), b(K, null, ae(e.steps, (r, m) => (d(), b("div", {
|
|
6320
6328
|
class: "bs-step-item",
|
|
6321
6329
|
"data-status": c(i)(r.status, m),
|
|
6322
6330
|
key: r.id || r.label,
|
|
6323
6331
|
role: "status"
|
|
6324
6332
|
}, [
|
|
6325
|
-
(d(), O(
|
|
6333
|
+
(d(), O(ne(u(r.status, m)), {
|
|
6326
6334
|
class: "bs-step-icon",
|
|
6327
6335
|
role: "presentation"
|
|
6328
6336
|
})),
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6337
|
+
B("p", null, [
|
|
6338
|
+
j(A(r.label || r) + " ", 1),
|
|
6339
|
+
B("span", mo, " : " + A(c(i)(r.status, m) || "not started"), 1)
|
|
6332
6340
|
])
|
|
6333
|
-
], 8,
|
|
6334
|
-
], 8,
|
|
6341
|
+
], 8, po))), 128))
|
|
6342
|
+
], 8, fo));
|
|
6335
6343
|
}
|
|
6336
|
-
},
|
|
6344
|
+
}, bo = ["data-variant", "data-shown", "data-stacked"], di = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
6337
6345
|
__name: "BsToast",
|
|
6338
6346
|
props: {
|
|
6339
6347
|
shown: {
|
|
@@ -6381,8 +6389,8 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", ro =
|
|
|
6381
6389
|
setup(e, { emit: a }) {
|
|
6382
6390
|
const t = e, l = a, { transition: n } = Ee(t);
|
|
6383
6391
|
let i = null;
|
|
6384
|
-
|
|
6385
|
-
const u =
|
|
6392
|
+
pe("variant", t.variant), pe("handleDismiss", o);
|
|
6393
|
+
const u = me("stacked", t.stacked);
|
|
6386
6394
|
function o() {
|
|
6387
6395
|
i && (clearTimeout(i), i = null), l("dismiss", t.toastId);
|
|
6388
6396
|
}
|
|
@@ -6399,7 +6407,7 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", ro =
|
|
|
6399
6407
|
onAfterLeave: m[0] || (m[0] = (g) => l("after-leave"))
|
|
6400
6408
|
}, {
|
|
6401
6409
|
default: D(() => [
|
|
6402
|
-
|
|
6410
|
+
B("div", z({
|
|
6403
6411
|
class: "bs-toast",
|
|
6404
6412
|
"data-component": "bs-toast",
|
|
6405
6413
|
"data-variant": e.variant,
|
|
@@ -6408,15 +6416,15 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", ro =
|
|
|
6408
6416
|
role: "alert"
|
|
6409
6417
|
}, r.$attrs), [
|
|
6410
6418
|
V(r.$slots, "default")
|
|
6411
|
-
], 16,
|
|
6419
|
+
], 16, bo)
|
|
6412
6420
|
]),
|
|
6413
6421
|
_: 3
|
|
6414
6422
|
}, 8, ["shown", "preloaded"]));
|
|
6415
6423
|
}
|
|
6416
|
-
}),
|
|
6424
|
+
}), ho = ["data-stacked"], ui = {
|
|
6417
6425
|
__name: "BsToastActions",
|
|
6418
6426
|
setup(e) {
|
|
6419
|
-
const a =
|
|
6427
|
+
const a = me("handleDismiss", () => {
|
|
6420
6428
|
});
|
|
6421
6429
|
function t() {
|
|
6422
6430
|
var l, n;
|
|
@@ -6434,36 +6442,36 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", ro =
|
|
|
6434
6442
|
onClick: c(a)
|
|
6435
6443
|
}, {
|
|
6436
6444
|
default: D(() => n[0] || (n[0] = [
|
|
6437
|
-
|
|
6445
|
+
j(" Dismiss ")
|
|
6438
6446
|
])),
|
|
6439
6447
|
_: 1
|
|
6440
6448
|
}, 8, ["onClick"])
|
|
6441
6449
|
])
|
|
6442
|
-
], 8,
|
|
6450
|
+
], 8, ho));
|
|
6443
6451
|
}
|
|
6444
|
-
},
|
|
6452
|
+
}, vo = (e, a) => {
|
|
6445
6453
|
const t = e.__vccOpts || e;
|
|
6446
6454
|
for (const [l, n] of a)
|
|
6447
6455
|
t[l] = n;
|
|
6448
6456
|
return t;
|
|
6449
|
-
},
|
|
6457
|
+
}, go = {}, yo = {
|
|
6450
6458
|
class: "bs-toast-body",
|
|
6451
6459
|
"data-component": "bs-toast-body"
|
|
6452
6460
|
};
|
|
6453
|
-
function
|
|
6454
|
-
return d(), b("div",
|
|
6461
|
+
function So(e, a) {
|
|
6462
|
+
return d(), b("div", yo, [
|
|
6455
6463
|
V(e.$slots, "default")
|
|
6456
6464
|
]);
|
|
6457
6465
|
}
|
|
6458
|
-
const
|
|
6466
|
+
const ci = /* @__PURE__ */ vo(go, [["render", So]]), wo = ["data-variant"], fi = {
|
|
6459
6467
|
__name: "BsToastHeader",
|
|
6460
6468
|
setup(e) {
|
|
6461
|
-
const a =
|
|
6469
|
+
const a = me("variant", void 0), t = f(() => {
|
|
6462
6470
|
switch (a) {
|
|
6463
6471
|
case "warning":
|
|
6464
6472
|
return Xe;
|
|
6465
6473
|
case "positive":
|
|
6466
|
-
return
|
|
6474
|
+
return la;
|
|
6467
6475
|
case "negative":
|
|
6468
6476
|
return Xe;
|
|
6469
6477
|
default:
|
|
@@ -6475,23 +6483,23 @@ const si = /* @__PURE__ */ mo(bo, [["render", vo]]), go = ["data-variant"], di =
|
|
|
6475
6483
|
"data-component": "bs-toast-header",
|
|
6476
6484
|
"data-variant": c(a)
|
|
6477
6485
|
}, [
|
|
6478
|
-
(d(), O(
|
|
6479
|
-
|
|
6486
|
+
(d(), O(ne(t.value), { class: "bs-toast-header-icon" })),
|
|
6487
|
+
B("h5", null, [
|
|
6480
6488
|
V(l.$slots, "default")
|
|
6481
6489
|
])
|
|
6482
|
-
], 8,
|
|
6490
|
+
], 8, wo));
|
|
6483
6491
|
}
|
|
6484
|
-
},
|
|
6492
|
+
}, Bo = {
|
|
6485
6493
|
class: "bs-toaster",
|
|
6486
6494
|
"data-component": "bs-toaster"
|
|
6487
|
-
},
|
|
6495
|
+
}, pi = {
|
|
6488
6496
|
__name: "BsToaster",
|
|
6489
6497
|
setup(e) {
|
|
6490
|
-
return
|
|
6498
|
+
return pe("stacked", !0), (a, t) => (d(), b("div", Bo, [
|
|
6491
6499
|
V(a.$slots, "default")
|
|
6492
6500
|
]));
|
|
6493
6501
|
}
|
|
6494
|
-
},
|
|
6502
|
+
}, $o = ["data-position"], Io = ["id"], mi = {
|
|
6495
6503
|
__name: "BsTooltip",
|
|
6496
6504
|
props: {
|
|
6497
6505
|
tooltipId: {
|
|
@@ -6518,11 +6526,11 @@ const si = /* @__PURE__ */ mo(bo, [["render", vo]]), go = ["data-variant"], di =
|
|
|
6518
6526
|
}
|
|
6519
6527
|
},
|
|
6520
6528
|
setup(e) {
|
|
6521
|
-
const a = e, t =
|
|
6529
|
+
const a = e, t = $(!1), l = $(!1), n = f(() => {
|
|
6522
6530
|
let o = "bs-tooltip-text";
|
|
6523
6531
|
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;
|
|
6524
6532
|
});
|
|
6525
|
-
|
|
6533
|
+
be(["Escape"], () => {
|
|
6526
6534
|
t.value && (t.value = !1, l.value = !0);
|
|
6527
6535
|
});
|
|
6528
6536
|
function i() {
|
|
@@ -6543,13 +6551,13 @@ const si = /* @__PURE__ */ mo(bo, [["render", vo]]), go = ["data-variant"], di =
|
|
|
6543
6551
|
V(o.$slots, "default"),
|
|
6544
6552
|
e.content ? (d(), b("div", {
|
|
6545
6553
|
key: 0,
|
|
6546
|
-
class:
|
|
6554
|
+
class: oe(n.value),
|
|
6547
6555
|
id: e.tooltipId,
|
|
6548
6556
|
role: "tooltip"
|
|
6549
|
-
},
|
|
6550
|
-
], 40,
|
|
6557
|
+
}, A(e.content), 11, Io)) : C("", !0)
|
|
6558
|
+
], 40, $o));
|
|
6551
6559
|
}
|
|
6552
|
-
},
|
|
6560
|
+
}, ko = {
|
|
6553
6561
|
accordion: "[data-component=bs-accordion]",
|
|
6554
6562
|
badge: "[data-component=bs-badge]",
|
|
6555
6563
|
banner: "[data-component=bs-banner]",
|
|
@@ -6606,69 +6614,69 @@ const si = /* @__PURE__ */ mo(bo, [["render", vo]]), go = ["data-variant"], di =
|
|
|
6606
6614
|
toastHeader: "[data-component=bs-toast-header]",
|
|
6607
6615
|
toaster: "[data-component=bs-toaster]",
|
|
6608
6616
|
tooltip: "[data-component=bs-tooltip]"
|
|
6609
|
-
},
|
|
6610
|
-
bsSelectors:
|
|
6617
|
+
}, bi = {
|
|
6618
|
+
bsSelectors: ko
|
|
6611
6619
|
};
|
|
6612
6620
|
export {
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6621
|
+
Eo as BsAccordion,
|
|
6622
|
+
Ca as BsBadge,
|
|
6623
|
+
Do as BsBanner,
|
|
6616
6624
|
xt as BsButton,
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6625
|
+
Po as BsCalendar,
|
|
6626
|
+
qo as BsCaretButton,
|
|
6627
|
+
Mo as BsCaretTextButton,
|
|
6628
|
+
No as BsChartBar,
|
|
6629
|
+
zo as BsCheckbox,
|
|
6622
6630
|
Tt as BsCircleButton,
|
|
6623
6631
|
ot as BsDropdown,
|
|
6624
6632
|
Et as BsDropdownCombobox,
|
|
6625
|
-
|
|
6633
|
+
Fo as BsDropdownComboboxField,
|
|
6626
6634
|
Dt as BsDropdownMultiselect,
|
|
6627
6635
|
it as BsDropdownOption,
|
|
6628
6636
|
qe as BsDropdownOptionBuilder,
|
|
6629
6637
|
Re as BsDropdownOptionList,
|
|
6630
6638
|
Pt as BsDropdownWithOptions,
|
|
6631
6639
|
Lt as BsDropdownWithToggle,
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6640
|
+
Ro as BsEmptyState,
|
|
6641
|
+
ye as BsFieldDetails,
|
|
6642
|
+
In as BsFilterButton,
|
|
6643
|
+
Wo as BsFlyout,
|
|
6644
|
+
jo as BsIconGradientWrapper,
|
|
6645
|
+
ke as BsInput,
|
|
6638
6646
|
De as BsInputAddon,
|
|
6639
|
-
|
|
6640
|
-
|
|
6647
|
+
Uo as BsInputField,
|
|
6648
|
+
Go as BsInputPhone,
|
|
6641
6649
|
Vt as BsInputSearch,
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6650
|
+
Ho as BsInputTypeahead,
|
|
6651
|
+
le as BsLabel,
|
|
6652
|
+
Ko as BsLoader,
|
|
6653
|
+
Yo as BsModal,
|
|
6654
|
+
ul as BsOverlay,
|
|
6655
|
+
Zo as BsPagination,
|
|
6656
|
+
Xo as BsPill,
|
|
6657
|
+
Qo as BsProfile,
|
|
6658
|
+
Nl as BsProfileDetails,
|
|
6651
6659
|
Ot as BsProfileImg,
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6660
|
+
Jo as BsProgressBar,
|
|
6661
|
+
_o as BsRadio,
|
|
6662
|
+
Ul as BsSelect,
|
|
6663
|
+
ei as BsSelectField,
|
|
6664
|
+
ti as BsSelectWithDropdown,
|
|
6657
6665
|
ht as BsSpinner,
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6666
|
+
ai as BsSwitch,
|
|
6667
|
+
ni as BsTab,
|
|
6668
|
+
li as BsTabList,
|
|
6669
|
+
oi as BsTabPanel,
|
|
6670
|
+
io as BsTextarea,
|
|
6671
|
+
ii as BsTextareaField,
|
|
6672
|
+
co as BsTimePicker,
|
|
6673
|
+
ri as BsTimePickerField,
|
|
6674
|
+
si as BsTimeline,
|
|
6675
|
+
di as BsToast,
|
|
6676
|
+
ui as BsToastActions,
|
|
6677
|
+
ci as BsToastBody,
|
|
6678
|
+
fi as BsToastHeader,
|
|
6679
|
+
pi as BsToaster,
|
|
6680
|
+
mi as BsTooltip,
|
|
6681
|
+
bi as bsSelectors
|
|
6674
6682
|
};
|