@wwtdev/bsds-components-vue3 2.6.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -0
- package/lib/bsds-components.js +1167 -1040
- package/lib/components.css +1 -1
- package/package.json +2 -2
package/lib/bsds-components.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { computed as v, ref as y, onMounted as
|
|
2
|
-
import { v4 as
|
|
3
|
-
import { BsIconCaretDown as Ke, BsIconWarning as Ge, BsIconClose as Ve, BsIconCalendar as
|
|
1
|
+
import { computed as v, ref as y, onMounted as Y, onUnmounted as me, shallowRef as Bt, watch as R, defineAsyncComponent as He, openBlock as u, createElementBlock as h, unref as f, createElementVNode as S, renderSlot as P, createBlock as E, resolveDynamicComponent as ee, createCommentVNode as I, toDisplayString as A, createVNode as V, normalizeClass as oe, useAttrs as pe, mergeProps as N, withCtx as O, Fragment as G, toHandlers as Ue, onBeforeUnmount as ut, onBeforeMount as ct, nextTick as xe, createTextVNode as H, createSlots as ft, renderList as _, Teleport as $t, withDirectives as de, Transition as et, vShow as se, provide as ue, inject as ce, withModifiers as It, isRef as kt, useSlots as Tt } from "vue";
|
|
2
|
+
import { v4 as pt } from "uuid";
|
|
3
|
+
import { BsIconCaretDown as Ke, BsIconWarning as Ge, BsIconClose as Ve, BsIconCalendar as vt, BsIconCaretSort as Ct, BsIconSearch as xt, BsIconCaretLeftDouble as At, BsIconCaretLeft as Vt, BsIconCaretRight as Et, BsIconCaretRightDouble as Pt, BsIconActionEllipsis as Ot, BsIconGraphPieEmpty as tt, BsIconCircleStop as Lt, BsIconCircleCheck as qt, BsIconCircleX as Dt, BsIconCircleEllipsis as Mt, BsIconCirclePlay as Nt, BsIconCirclePause as zt, BsIconCircleExclamation as ht, BsIconThumbsUpStroke as Rt } from "@wwtdev/bsds-icons-vue3";
|
|
4
4
|
import { DatePicker as Ft } from "v-calendar";
|
|
5
5
|
import { Chart as Ne, BarController as jt, BarElement as Wt, CategoryScale as Ut, LinearScale as Gt, Legend as Ht, Tooltip as Kt } from "chart.js";
|
|
6
6
|
import { getSupportedCallingCodes as Yt, getRegionCodeForCountryCode as Xt, parsePhoneNumber as at } from "awesome-phonenumber";
|
|
@@ -13,13 +13,13 @@ const nt = {
|
|
|
13
13
|
};
|
|
14
14
|
function qe(e, n, t = "button") {
|
|
15
15
|
const a = Zt(e, n, t), l = v(() => {
|
|
16
|
-
const o = a.value === "button",
|
|
17
|
-
return o ? (
|
|
16
|
+
const o = a.value === "button", s = {};
|
|
17
|
+
return o ? (s.type = n.type || "button", s.autocomplete = "off", e.disabled && (s.disabled = !0)) : e.disabled && (s["aria-disabled"] = "true", s.tabindex = "-1"), s;
|
|
18
18
|
}), i = v(() => {
|
|
19
19
|
const o = { ...n, ...l.value };
|
|
20
20
|
return delete o.href, o;
|
|
21
|
-
}),
|
|
22
|
-
return { rootTag: a, attrsToBind: i, hrefUrl:
|
|
21
|
+
}), d = v(() => e.linkTo || e.href);
|
|
22
|
+
return { rootTag: a, attrsToBind: i, hrefUrl: d };
|
|
23
23
|
}
|
|
24
24
|
function Zt(e, n, t) {
|
|
25
25
|
const a = Object.keys(nt).find((l) => Qt(e, n, l));
|
|
@@ -35,19 +35,19 @@ const Jt = (e, n) => {
|
|
|
35
35
|
return (i = l.value) == null ? void 0 : i.contains(a.target);
|
|
36
36
|
}) || n(a);
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
Y(() => {
|
|
39
39
|
document.addEventListener("click", t);
|
|
40
|
-
}),
|
|
40
|
+
}), me(() => {
|
|
41
41
|
document.removeEventListener("click", t);
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
function De(e) {
|
|
45
45
|
const n = v(() => e.linkTo || e.href || ""), t = v(() => {
|
|
46
|
-
var i,
|
|
47
|
-
return ((
|
|
46
|
+
var i, d;
|
|
47
|
+
return ((d = (i = n.value) == null ? void 0 : i.startsWith) == null ? void 0 : d.call(i, "/")) || !1;
|
|
48
48
|
}), a = v(() => {
|
|
49
|
-
var i,
|
|
50
|
-
return t.value && ((i = e.router) == null ? void 0 : i.navigateTo) || ((
|
|
49
|
+
var i, d;
|
|
50
|
+
return t.value && ((i = e.router) == null ? void 0 : i.navigateTo) || ((d = e.router) == null ? void 0 : d.push) || null;
|
|
51
51
|
});
|
|
52
52
|
function l(i) {
|
|
53
53
|
if (e.disabled) {
|
|
@@ -63,50 +63,50 @@ function De(e) {
|
|
|
63
63
|
function lt(e) {
|
|
64
64
|
return e.split("-").map((a) => a.charAt(0).toUpperCase() + a.slice(1)).join("");
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const Oe = (e, n) => {
|
|
67
67
|
function t(l) {
|
|
68
68
|
if (!l)
|
|
69
69
|
return null;
|
|
70
70
|
const i = l.startsWith("bs-") ? lt(l) : `BsIcon${lt(l)}`;
|
|
71
71
|
return He(async () => {
|
|
72
|
-
const { [i]:
|
|
73
|
-
return
|
|
72
|
+
const { [i]: d } = await import("@wwtdev/bsds-icons-vue3");
|
|
73
|
+
return d;
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
const a =
|
|
76
|
+
const a = Bt();
|
|
77
77
|
return a.value = t(e[n]), R(() => e[n], async (l) => a.value = t(l)), { icon: a };
|
|
78
78
|
};
|
|
79
79
|
function Z(e = 1) {
|
|
80
80
|
const n = [];
|
|
81
81
|
for (let t = 0; t < e; t++)
|
|
82
82
|
n.push(y(""));
|
|
83
|
-
return
|
|
84
|
-
n.forEach((t) => t.value = `id-${
|
|
83
|
+
return Y(() => {
|
|
84
|
+
n.forEach((t) => t.value = `id-${pt()}`);
|
|
85
85
|
}), n;
|
|
86
86
|
}
|
|
87
|
-
const
|
|
87
|
+
const we = (e, n, t = void 0) => {
|
|
88
88
|
const a = (l) => {
|
|
89
|
-
var i,
|
|
90
|
-
((i = e == null ? void 0 : e.includes) != null && i.call(e, l.key) || (
|
|
91
|
-
var
|
|
92
|
-
return (
|
|
89
|
+
var i, d;
|
|
90
|
+
((i = e == null ? void 0 : e.includes) != null && i.call(e, l.key) || (d = e == null ? void 0 : e.some) != null && d.call(e, (o) => {
|
|
91
|
+
var s;
|
|
92
|
+
return (s = o == null ? void 0 : o.test) == null ? void 0 : s.call(o, l.key);
|
|
93
93
|
})) && n(l);
|
|
94
94
|
};
|
|
95
|
-
|
|
95
|
+
Y(() => {
|
|
96
96
|
((t == null ? void 0 : t.value) ?? document).addEventListener("keydown", a);
|
|
97
|
-
}),
|
|
97
|
+
}), me(() => {
|
|
98
98
|
((t == null ? void 0 : t.value) ?? document).removeEventListener("keydown", a);
|
|
99
99
|
});
|
|
100
100
|
}, _t = (e, n, t) => {
|
|
101
101
|
let a = null;
|
|
102
|
-
|
|
102
|
+
Y(() => {
|
|
103
103
|
a = new MutationObserver(n), a.observe(e.value, t);
|
|
104
|
-
}),
|
|
104
|
+
}), me(() => {
|
|
105
105
|
a.disconnect();
|
|
106
106
|
});
|
|
107
107
|
}, Ee = (e) => {
|
|
108
108
|
const n = y(!1);
|
|
109
|
-
return
|
|
109
|
+
return Y(() => {
|
|
110
110
|
e.enterControlled ? n.value = e.enterTrigger : n.value = e.shown;
|
|
111
111
|
}), R(() => e.shown, (t) => {
|
|
112
112
|
n.value = t;
|
|
@@ -119,7 +119,7 @@ const ye = (e, n, t = void 0) => {
|
|
|
119
119
|
key: 0,
|
|
120
120
|
"data-position": "start",
|
|
121
121
|
style: { display: "inline-flex" }
|
|
122
|
-
}, la = ["id"], oa = ["aria-labelledby", "data-open", "id"],
|
|
122
|
+
}, la = ["id"], oa = ["aria-labelledby", "data-open", "id"], co = {
|
|
123
123
|
__name: "BsAccordion",
|
|
124
124
|
props: {
|
|
125
125
|
controlled: { type: Boolean, default: !1 },
|
|
@@ -136,11 +136,11 @@ const ye = (e, n, t = void 0) => {
|
|
|
136
136
|
},
|
|
137
137
|
emits: ["toggled"],
|
|
138
138
|
setup(e, { emit: n }) {
|
|
139
|
-
const t = e, a = n, l = y(null), i = y(!1), { icon:
|
|
140
|
-
function
|
|
139
|
+
const t = e, a = n, l = y(null), i = y(!1), { icon: d } = Oe(t, "icon"), [o] = Z(), s = v(() => o.value + "-content"), r = v(() => o.value + "-title"), c = v(() => t.openItemId && t.openItemId === o.value || t.openItem === !0), p = v(() => t.controlled ? c.value : i.value);
|
|
140
|
+
function w() {
|
|
141
141
|
a("toggled", o.value), t.controlled || (i.value = !i.value);
|
|
142
142
|
}
|
|
143
|
-
return (g,
|
|
143
|
+
return (g, k) => (u(), h("div", {
|
|
144
144
|
id: f(o),
|
|
145
145
|
ref_key: "containerRef",
|
|
146
146
|
ref: l,
|
|
@@ -153,16 +153,16 @@ const ye = (e, n, t = void 0) => {
|
|
|
153
153
|
"data-open": p.value
|
|
154
154
|
}, [
|
|
155
155
|
S("button", {
|
|
156
|
-
"aria-controls":
|
|
156
|
+
"aria-controls": s.value,
|
|
157
157
|
"aria-expanded": p.value,
|
|
158
158
|
type: "button",
|
|
159
|
-
onClick:
|
|
159
|
+
onClick: w
|
|
160
160
|
}, [
|
|
161
|
-
e.icon || g.$slots.icon ? (
|
|
162
|
-
|
|
163
|
-
e.icon ? (
|
|
161
|
+
e.icon || g.$slots.icon ? (u(), h("span", na, [
|
|
162
|
+
P(g.$slots, "icon", {}, () => [
|
|
163
|
+
e.icon ? (u(), E(ee(f(d) ? f(d) : "span"), { key: 0 })) : I("", !0)
|
|
164
164
|
])
|
|
165
|
-
])) :
|
|
165
|
+
])) : I("", !0),
|
|
166
166
|
S("span", { id: r.value }, A(e.headerText), 9, la),
|
|
167
167
|
V(f(Ke), {
|
|
168
168
|
size: "md",
|
|
@@ -174,12 +174,12 @@ const ye = (e, n, t = void 0) => {
|
|
|
174
174
|
"aria-labelledby": r.value,
|
|
175
175
|
class: "bs-accordion-content",
|
|
176
176
|
"data-open": p.value,
|
|
177
|
-
id:
|
|
177
|
+
id: s.value,
|
|
178
178
|
part: "content",
|
|
179
179
|
role: "region"
|
|
180
180
|
}, [
|
|
181
181
|
S("div", null, [
|
|
182
|
-
|
|
182
|
+
P(g.$slots, "default")
|
|
183
183
|
])
|
|
184
184
|
], 8, oa)
|
|
185
185
|
], 8, ea));
|
|
@@ -232,14 +232,14 @@ const ye = (e, n, t = void 0) => {
|
|
|
232
232
|
},
|
|
233
233
|
setup(e) {
|
|
234
234
|
const n = e, t = y(null), a = v(() => n.count === 0 ? "0" : !n.count || n.dot ? null : n.count > n.countMax ? n.countMax + "+" : n.count.toString()), l = v(() => {
|
|
235
|
-
var
|
|
236
|
-
const i = ((r = (
|
|
237
|
-
if (!
|
|
235
|
+
var s, r;
|
|
236
|
+
const i = ((r = (s = t.value) == null ? void 0 : s.textContent) == null ? void 0 : r.trim()) || "", d = a.value ? a.value + " " : "";
|
|
237
|
+
if (!d && !n.dot)
|
|
238
238
|
return i;
|
|
239
239
|
const o = n.count !== 1 ? "s" : "";
|
|
240
|
-
return `${i ? `${i}, ` : ""}${
|
|
240
|
+
return `${i ? `${i}, ` : ""}${d}${n.label}${o}`;
|
|
241
241
|
});
|
|
242
|
-
return (i,
|
|
242
|
+
return (i, d) => (u(), h("span", {
|
|
243
243
|
ref_key: "hostRef",
|
|
244
244
|
ref: t,
|
|
245
245
|
"aria-label": l.value,
|
|
@@ -252,14 +252,14 @@ const ye = (e, n, t = void 0) => {
|
|
|
252
252
|
"data-variant": e.variant,
|
|
253
253
|
role: "status"
|
|
254
254
|
}, [
|
|
255
|
-
e.variant !== "notext" ?
|
|
255
|
+
e.variant !== "notext" ? P(i.$slots, "default", { key: 0 }) : I("", !0)
|
|
256
256
|
], 10, ia));
|
|
257
257
|
}
|
|
258
|
-
},
|
|
258
|
+
}, da = {
|
|
259
259
|
key: 0,
|
|
260
260
|
role: "alert",
|
|
261
261
|
class: "bs-banner"
|
|
262
|
-
},
|
|
262
|
+
}, sa = { class: "bs-banner-content" }, ua = { class: "bs-banner-warning-icon" }, fo = {
|
|
263
263
|
__name: "BsBanner",
|
|
264
264
|
emits: ["dismiss"],
|
|
265
265
|
setup(e, { emit: n }) {
|
|
@@ -267,13 +267,13 @@ const ye = (e, n, t = void 0) => {
|
|
|
267
267
|
function l() {
|
|
268
268
|
a.value = !0, t("dismiss");
|
|
269
269
|
}
|
|
270
|
-
return (i,
|
|
271
|
-
S("div",
|
|
270
|
+
return (i, d) => a.value ? I("", !0) : (u(), h("div", da, [
|
|
271
|
+
S("div", sa, [
|
|
272
272
|
S("div", ua, [
|
|
273
273
|
V(f(Ge), { size: "lg" })
|
|
274
274
|
]),
|
|
275
275
|
S("p", null, [
|
|
276
|
-
|
|
276
|
+
P(i.$slots, "default")
|
|
277
277
|
]),
|
|
278
278
|
S("button", {
|
|
279
279
|
type: "button",
|
|
@@ -299,8 +299,8 @@ const ye = (e, n, t = void 0) => {
|
|
|
299
299
|
size: { type: String, validator: (e) => ["sm", "xs", "xxs"].includes(e) }
|
|
300
300
|
},
|
|
301
301
|
setup(e) {
|
|
302
|
-
const n = e, t =
|
|
303
|
-
return (o,
|
|
302
|
+
const n = e, t = pe(), { rootTag: a, attrsToBind: l, hrefUrl: i } = qe(n, t), { onLinkClick: d } = De(n);
|
|
303
|
+
return (o, s) => (u(), E(ee(f(a)), N({
|
|
304
304
|
class: "bs-button",
|
|
305
305
|
"data-component": "bs-button",
|
|
306
306
|
"data-ghost": e.ghostBtn,
|
|
@@ -308,9 +308,9 @@ const ye = (e, n, t = void 0) => {
|
|
|
308
308
|
"data-text": e.textBtn,
|
|
309
309
|
"data-variant": e.variant,
|
|
310
310
|
".href": f(i)
|
|
311
|
-
}, f(l), { onClick: f(
|
|
312
|
-
default:
|
|
313
|
-
|
|
311
|
+
}, f(l), { onClick: f(d) }), {
|
|
312
|
+
default: O(() => [
|
|
313
|
+
P(o.$slots, "default")
|
|
314
314
|
]),
|
|
315
315
|
_: 3
|
|
316
316
|
}, 48, ["data-ghost", "data-size", "data-text", "data-variant", ".href", "onClick"]));
|
|
@@ -318,7 +318,7 @@ const ye = (e, n, t = void 0) => {
|
|
|
318
318
|
}), fa = {
|
|
319
319
|
class: "bs-field-details",
|
|
320
320
|
"data-component": "bs-field-details"
|
|
321
|
-
}, pa = ["id", "data-error"], va = ["data-error"],
|
|
321
|
+
}, pa = ["id", "data-error"], va = ["data-error"], be = {
|
|
322
322
|
__name: "BsFieldDetails",
|
|
323
323
|
props: {
|
|
324
324
|
/** The number of characters that have been entered by the user. */
|
|
@@ -339,25 +339,25 @@ const ye = (e, n, t = void 0) => {
|
|
|
339
339
|
},
|
|
340
340
|
setup(e) {
|
|
341
341
|
const n = e, t = v(() => n.error && n.errorMsg || n.hint);
|
|
342
|
-
return (a, l) => (
|
|
343
|
-
t.value ? (
|
|
342
|
+
return (a, l) => (u(), h("div", fa, [
|
|
343
|
+
t.value ? (u(), h("span", {
|
|
344
344
|
key: 0,
|
|
345
345
|
id: e.hintId,
|
|
346
346
|
class: "bs-hint",
|
|
347
347
|
"data-error": e.error
|
|
348
|
-
}, A(t.value), 9, pa)) :
|
|
349
|
-
e.charMax ? (
|
|
348
|
+
}, A(t.value), 9, pa)) : I("", !0),
|
|
349
|
+
e.charMax ? (u(), h("span", {
|
|
350
350
|
key: 1,
|
|
351
351
|
"aria-description": "character count over character limit for the preceding text field",
|
|
352
352
|
class: "bs-character-count",
|
|
353
353
|
"data-error": n.charCount > n.charMax
|
|
354
|
-
}, A(n.charCount || "0") + " / " + A(n.charMax), 9, va)) :
|
|
354
|
+
}, A(n.charCount || "0") + " / " + A(n.charMax), 9, va)) : I("", !0)
|
|
355
355
|
]));
|
|
356
356
|
}
|
|
357
357
|
}, ha = ["data-disabled", "for"], ma = /* @__PURE__ */ S("span", {
|
|
358
358
|
"data-required": "true",
|
|
359
359
|
"aria-hidden": "true"
|
|
360
|
-
}, " *", -1), ba = /* @__PURE__ */ S("span", { class: "visually-hidden" }, "required", -1),
|
|
360
|
+
}, " *", -1), ba = /* @__PURE__ */ S("span", { class: "visually-hidden" }, "required", -1), te = {
|
|
361
361
|
__name: "BsLabel",
|
|
362
362
|
props: {
|
|
363
363
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -366,22 +366,22 @@ const ye = (e, n, t = void 0) => {
|
|
|
366
366
|
required: { type: Boolean, default: !1 }
|
|
367
367
|
},
|
|
368
368
|
setup(e) {
|
|
369
|
-
return (n, t) => (
|
|
369
|
+
return (n, t) => (u(), h("label", {
|
|
370
370
|
class: oe(["bs-label", e.hide ? "visually-hidden" : ""]),
|
|
371
371
|
"data-component": "bs-label",
|
|
372
372
|
"data-disabled": e.disabled,
|
|
373
373
|
for: e.for
|
|
374
374
|
}, [
|
|
375
375
|
S("span", null, [
|
|
376
|
-
|
|
376
|
+
P(n.$slots, "default")
|
|
377
377
|
]),
|
|
378
|
-
e.required ? (
|
|
378
|
+
e.required ? (u(), h(G, { key: 0 }, [
|
|
379
379
|
ma,
|
|
380
380
|
ba
|
|
381
|
-
], 64)) :
|
|
381
|
+
], 64)) : I("", !0)
|
|
382
382
|
], 10, ha));
|
|
383
383
|
}
|
|
384
|
-
}, ga = ["data-error", "id", "value"],
|
|
384
|
+
}, ga = ["data-error", "id", "value"], Be = {
|
|
385
385
|
__name: "BsInput",
|
|
386
386
|
props: {
|
|
387
387
|
error: {
|
|
@@ -396,18 +396,18 @@ const ye = (e, n, t = void 0) => {
|
|
|
396
396
|
},
|
|
397
397
|
emits: ["update:modelValue"],
|
|
398
398
|
setup(e, { emit: n }) {
|
|
399
|
-
const t = e, a = n, l =
|
|
400
|
-
function
|
|
401
|
-
const
|
|
402
|
-
a("update:modelValue",
|
|
399
|
+
const t = e, a = n, l = pe(), i = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
400
|
+
function d(o) {
|
|
401
|
+
const s = l.type === "number" ? parseInt(o.target.value) : o.target.value;
|
|
402
|
+
a("update:modelValue", s);
|
|
403
403
|
}
|
|
404
|
-
return (o,
|
|
404
|
+
return (o, s) => (u(), h("input", N({
|
|
405
405
|
class: "bs-input",
|
|
406
406
|
"data-component": "bs-input",
|
|
407
407
|
"data-error": e.error,
|
|
408
408
|
id: o.$attrs.id || e.inputId,
|
|
409
409
|
value: e.value || e.modelValue,
|
|
410
|
-
onInput:
|
|
410
|
+
onInput: d
|
|
411
411
|
}, i.value), null, 16, ga));
|
|
412
412
|
}
|
|
413
413
|
}, ya = ["data-autopad", "data-autosize-icons", "data-disabled", "data-error", "data-variant", "data-multifocus"], Pe = {
|
|
@@ -421,7 +421,7 @@ const ye = (e, n, t = void 0) => {
|
|
|
421
421
|
variant: { type: String, validator: (e) => ["inner-bordered", "combobox"].includes(e) }
|
|
422
422
|
},
|
|
423
423
|
setup(e) {
|
|
424
|
-
return (n, t) => (
|
|
424
|
+
return (n, t) => (u(), h("div", {
|
|
425
425
|
class: "bs-input-addon",
|
|
426
426
|
"data-component": "bs-input-addon",
|
|
427
427
|
"data-autopad": e.autopad,
|
|
@@ -431,7 +431,7 @@ const ye = (e, n, t = void 0) => {
|
|
|
431
431
|
"data-variant": e.variant,
|
|
432
432
|
"data-multifocus": e.multifocus
|
|
433
433
|
}, [
|
|
434
|
-
|
|
434
|
+
P(n.$slots, "default")
|
|
435
435
|
], 8, ya));
|
|
436
436
|
}
|
|
437
437
|
}, Sa = {
|
|
@@ -467,13 +467,13 @@ const ye = (e, n, t = void 0) => {
|
|
|
467
467
|
}
|
|
468
468
|
},
|
|
469
469
|
setup(e) {
|
|
470
|
-
return (n, t) => (
|
|
470
|
+
return (n, t) => (u(), E(Pe, {
|
|
471
471
|
disabled: e.disabled,
|
|
472
472
|
error: e.error
|
|
473
473
|
}, {
|
|
474
|
-
default:
|
|
475
|
-
V(f(
|
|
476
|
-
V(
|
|
474
|
+
default: O(() => [
|
|
475
|
+
V(f(vt)),
|
|
476
|
+
V(Be, N({
|
|
477
477
|
"data-autowidth": "",
|
|
478
478
|
disabled: e.disabled,
|
|
479
479
|
id: e.inputId,
|
|
@@ -495,7 +495,7 @@ function Ae(e, n, t) {
|
|
|
495
495
|
}, n);
|
|
496
496
|
};
|
|
497
497
|
}
|
|
498
|
-
const
|
|
498
|
+
const wa = ["disabled", "id", "model-value"], Ba = ["disabled", "id", "model-value"], $a = {
|
|
499
499
|
__name: "BsInputDateRange",
|
|
500
500
|
props: {
|
|
501
501
|
disabled: {
|
|
@@ -537,21 +537,21 @@ const Ba = ["disabled", "id", "model-value"], $a = ["disabled", "id", "model-val
|
|
|
537
537
|
const c = new Event("change", { bubbles: !0, cancelable: !0 });
|
|
538
538
|
r.dispatchEvent(c);
|
|
539
539
|
}
|
|
540
|
-
function
|
|
541
|
-
const { value: c } = r.target, [p,
|
|
542
|
-
a.value.value = p || "", l.value.value =
|
|
540
|
+
function d(r) {
|
|
541
|
+
const { value: c } = r.target, [p, w] = c.split(/ to | - /);
|
|
542
|
+
a.value.value = p || "", l.value.value = w || "", i(a.value), i(l.value);
|
|
543
543
|
}
|
|
544
|
-
const o = Ae(
|
|
545
|
-
function
|
|
544
|
+
const o = Ae(d, 1e3);
|
|
545
|
+
function s(r) {
|
|
546
546
|
t("ui-input"), o(r);
|
|
547
547
|
}
|
|
548
|
-
return (r, c) => (
|
|
548
|
+
return (r, c) => (u(), E(Pe, {
|
|
549
549
|
disabled: e.disabled,
|
|
550
550
|
error: e.error
|
|
551
551
|
}, {
|
|
552
|
-
default:
|
|
553
|
-
V(f(
|
|
554
|
-
V(
|
|
552
|
+
default: O(() => [
|
|
553
|
+
V(f(vt)),
|
|
554
|
+
V(Be, {
|
|
555
555
|
"data-autowidth": "",
|
|
556
556
|
disabled: e.disabled,
|
|
557
557
|
id: e.inputId,
|
|
@@ -559,8 +559,8 @@ const Ba = ["disabled", "id", "model-value"], $a = ["disabled", "id", "model-val
|
|
|
559
559
|
placeholder: e.placeholder,
|
|
560
560
|
required: e.required,
|
|
561
561
|
onFocusin: c[0] || (c[0] = (p) => r.$emit("ui-focusin")),
|
|
562
|
-
onInput:
|
|
563
|
-
onChange:
|
|
562
|
+
onInput: s,
|
|
563
|
+
onChange: d
|
|
564
564
|
}, null, 8, ["disabled", "id", "model-value", "placeholder", "required"]),
|
|
565
565
|
S("input", N({
|
|
566
566
|
ref_key: "hiddenStart",
|
|
@@ -569,7 +569,7 @@ const Ba = ["disabled", "id", "model-value"], $a = ["disabled", "id", "model-val
|
|
|
569
569
|
disabled: e.disabled,
|
|
570
570
|
id: `${e.inputId}-start`,
|
|
571
571
|
"model-value": e.inputValue.start
|
|
572
|
-
}, Ue(e.listeners.start, !0)), null, 16,
|
|
572
|
+
}, Ue(e.listeners.start, !0)), null, 16, wa),
|
|
573
573
|
S("input", N({
|
|
574
574
|
ref_key: "hiddenEnd",
|
|
575
575
|
ref: l,
|
|
@@ -577,37 +577,36 @@ const Ba = ["disabled", "id", "model-value"], $a = ["disabled", "id", "model-val
|
|
|
577
577
|
disabled: e.disabled,
|
|
578
578
|
id: `${e.inputId}-end`,
|
|
579
579
|
"model-value": e.inputValue.end
|
|
580
|
-
}, Ue(e.listeners.end, !0)), null, 16,
|
|
580
|
+
}, Ue(e.listeners.end, !0)), null, 16, Ba)
|
|
581
581
|
]),
|
|
582
582
|
_: 1
|
|
583
583
|
}, 8, ["disabled", "error"]));
|
|
584
584
|
}
|
|
585
585
|
};
|
|
586
586
|
function Ia(e) {
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
(a = (t = n == null ? void 0 : n.$el) == null ? void 0 : t.removeEventListener) == null || a.call(t, "keydown", ot), n = null;
|
|
587
|
+
function n(l) {
|
|
588
|
+
var i, d;
|
|
589
|
+
return ((d = (i = l == null ? void 0 : l.classList) == null ? void 0 : i.contains) == null ? void 0 : d.call(i, "vc-arrow")) && (l.classList.contains("vc-prev") || l.classList.contains("vc-next"));
|
|
590
|
+
}
|
|
591
|
+
function t(l) {
|
|
592
|
+
return l === " " || l === "Spacebar" || l === "Enter";
|
|
593
|
+
}
|
|
594
|
+
function a(l) {
|
|
595
|
+
n(l == null ? void 0 : l.target) && t(l == null ? void 0 : l.key) && l.preventDefault();
|
|
596
|
+
}
|
|
597
|
+
Y(() => {
|
|
598
|
+
var l, i;
|
|
599
|
+
(i = (l = e.value) == null ? void 0 : l.addEventListener) == null || i.call(l, "keydown", a);
|
|
600
|
+
}), ut(() => {
|
|
601
|
+
var l, i;
|
|
602
|
+
(i = (l = e.value) == null ? void 0 : l.removeEventListener) == null || i.call(l, "keydown", a);
|
|
604
603
|
});
|
|
605
604
|
}
|
|
606
|
-
function
|
|
605
|
+
function ot(e, n, t = []) {
|
|
607
606
|
let a;
|
|
608
|
-
|
|
607
|
+
ct(() => {
|
|
609
608
|
a = window.matchMedia(e), a.addEventListener("change", n), n(a);
|
|
610
|
-
}),
|
|
609
|
+
}), ut(() => {
|
|
611
610
|
a.removeEventListener("change", n), a = null;
|
|
612
611
|
}), t.length && R(t, () => n(a));
|
|
613
612
|
}
|
|
@@ -617,7 +616,7 @@ const Ye = [
|
|
|
617
616
|
"form",
|
|
618
617
|
"id",
|
|
619
618
|
"name"
|
|
620
|
-
],
|
|
619
|
+
], ka = [
|
|
621
620
|
"aria-describedby",
|
|
622
621
|
"aria-label",
|
|
623
622
|
"autocomplete",
|
|
@@ -627,7 +626,7 @@ const Ye = [
|
|
|
627
626
|
"multiple",
|
|
628
627
|
"name",
|
|
629
628
|
"size"
|
|
630
|
-
],
|
|
629
|
+
], Ta = [
|
|
631
630
|
"aria-describedby",
|
|
632
631
|
"aria-label",
|
|
633
632
|
"autocapitalize",
|
|
@@ -645,7 +644,7 @@ const Ye = [
|
|
|
645
644
|
"rows",
|
|
646
645
|
"spellcheck",
|
|
647
646
|
"wrap"
|
|
648
|
-
],
|
|
647
|
+
], fe = [
|
|
649
648
|
"aria-describedby",
|
|
650
649
|
"aria-label",
|
|
651
650
|
"autocapitalize",
|
|
@@ -672,7 +671,7 @@ function K(e, n = []) {
|
|
|
672
671
|
n.includes(l) ? t[l] = e[l] : a[l] = e[l];
|
|
673
672
|
}), { filtered: t, remaining: a };
|
|
674
673
|
}
|
|
675
|
-
const
|
|
674
|
+
const Ca = ["data-range"], it = "(min-width: 752px)", po = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
676
675
|
__name: "BsCalendar",
|
|
677
676
|
props: {
|
|
678
677
|
disabled: {
|
|
@@ -739,7 +738,7 @@ const Aa = ["data-range"], rt = "(min-width: 752px)", mo = /* @__PURE__ */ Objec
|
|
|
739
738
|
},
|
|
740
739
|
emits: ["update:modelValue"],
|
|
741
740
|
setup(e, { emit: n }) {
|
|
742
|
-
const t = e, a = y(null), l = y(1), i = y(null), [
|
|
741
|
+
const t = e, a = y(null), l = y(1), i = y(null), [d, o] = Z(2), s = y(1), { filtered: r, remaining: c } = K(pe(), [
|
|
743
742
|
"attributes",
|
|
744
743
|
"expanded",
|
|
745
744
|
"first-day-of-week",
|
|
@@ -747,22 +746,24 @@ const Aa = ["data-range"], rt = "(min-width: 752px)", mo = /* @__PURE__ */ Objec
|
|
|
747
746
|
"masks",
|
|
748
747
|
"rows",
|
|
749
748
|
"trim-weeks"
|
|
750
|
-
]), p = v(() => t.inputId ||
|
|
751
|
-
|
|
752
|
-
|
|
749
|
+
]), p = v(() => t.inputId || d.value), w = v(() => ({ range: t.isRange })), g = v(() => !!(t.error && t.errorMsg || t.hint)), k = v(() => t.step), C = v(() => t.variant);
|
|
750
|
+
Ia(i), ot(
|
|
751
|
+
it,
|
|
753
752
|
(b) => l.value = b != null && b.matches && C.value == "2-col" ? 2 : 1,
|
|
754
753
|
[C]
|
|
755
|
-
),
|
|
756
|
-
|
|
757
|
-
(b) =>
|
|
758
|
-
[
|
|
759
|
-
),
|
|
754
|
+
), ot(
|
|
755
|
+
it,
|
|
756
|
+
(b) => s.value = b != null && b.matches && C.value == "2-col" ? k.value : 1,
|
|
757
|
+
[k, C]
|
|
758
|
+
), Y(() => {
|
|
759
|
+
t.inputMode || m();
|
|
760
|
+
}), R(() => {
|
|
760
761
|
var b, q;
|
|
761
762
|
return (q = (b = a.value) == null ? void 0 : b.popoverRef) == null ? void 0 : q.isVisible;
|
|
762
763
|
}, (b) => {
|
|
763
764
|
b && xe(m);
|
|
764
765
|
});
|
|
765
|
-
function
|
|
766
|
+
function B(b) {
|
|
766
767
|
return t.isRange && b.start && b.end ? `${b.start} to ${b.end}` : !t.isRange && b ? b : "";
|
|
767
768
|
}
|
|
768
769
|
function T(b) {
|
|
@@ -772,26 +773,26 @@ const Aa = ["data-range"], rt = "(min-width: 752px)", mo = /* @__PURE__ */ Objec
|
|
|
772
773
|
const b = i.value.querySelector("button.vc-prev"), q = i.value.querySelector("button.vc-next");
|
|
773
774
|
b && b.setAttribute("aria-label", "Previous month"), q && q.setAttribute("aria-label", "Next month");
|
|
774
775
|
}
|
|
775
|
-
return (b, q) => (
|
|
776
|
+
return (b, q) => (u(), h("div", N({
|
|
776
777
|
ref_key: "container",
|
|
777
778
|
ref: i,
|
|
778
779
|
class: "bs-calendar",
|
|
779
780
|
"data-range": e.isRange,
|
|
780
781
|
onFocusout: T
|
|
781
782
|
}, f(c)), [
|
|
782
|
-
e.label || b.$slots.label ? (
|
|
783
|
+
e.label || b.$slots.label ? (u(), E(te, {
|
|
783
784
|
key: 0,
|
|
784
785
|
for: p.value,
|
|
785
786
|
disabled: e.disabled,
|
|
786
787
|
required: e.required
|
|
787
788
|
}, {
|
|
788
|
-
default:
|
|
789
|
-
|
|
789
|
+
default: O(() => [
|
|
790
|
+
P(b.$slots, "label", {}, () => [
|
|
790
791
|
H(A(e.label), 1)
|
|
791
792
|
])
|
|
792
793
|
]),
|
|
793
794
|
_: 3
|
|
794
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
795
|
+
}, 8, ["for", "disabled", "required"])) : I("", !0),
|
|
795
796
|
V(f(Ft), N({
|
|
796
797
|
ref_key: "calendar",
|
|
797
798
|
ref: a,
|
|
@@ -801,34 +802,34 @@ const Aa = ["data-range"], rt = "(min-width: 752px)", mo = /* @__PURE__ */ Objec
|
|
|
801
802
|
"min-date": e.minDate,
|
|
802
803
|
mode: "date",
|
|
803
804
|
"model-value": e.modelValue,
|
|
804
|
-
"model-modifiers":
|
|
805
|
+
"model-modifiers": w.value,
|
|
805
806
|
popover: { visibility: "focus" },
|
|
806
807
|
rows: 1,
|
|
807
|
-
step:
|
|
808
|
+
step: s.value,
|
|
808
809
|
"onUpdate:modelValue": q[0] || (q[0] = (M) => b.$emit("update:modelValue", M))
|
|
809
|
-
}, f(r)),
|
|
810
|
+
}, f(r)), ft({ _: 2 }, [
|
|
810
811
|
e.inputMode ? {
|
|
811
812
|
name: "default",
|
|
812
|
-
fn:
|
|
813
|
-
e.isRange ? (
|
|
813
|
+
fn: O(({ inputValue: M, inputEvents: z, showPopover: W }) => [
|
|
814
|
+
e.isRange ? (u(), E($a, {
|
|
814
815
|
key: 1,
|
|
815
816
|
disabled: e.disabled,
|
|
816
817
|
error: e.error,
|
|
817
818
|
"input-id": p.value,
|
|
818
819
|
"input-value": M,
|
|
819
|
-
"input-value-fmt":
|
|
820
|
+
"input-value-fmt": B(M),
|
|
820
821
|
listeners: z,
|
|
821
822
|
placeholder: e.placeholder,
|
|
822
823
|
required: e.required,
|
|
823
824
|
onUiFocusin: W,
|
|
824
825
|
onUiInput: W
|
|
825
|
-
}, null, 8, ["disabled", "error", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (
|
|
826
|
+
}, null, 8, ["disabled", "error", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (u(), E(Sa, {
|
|
826
827
|
key: 0,
|
|
827
828
|
disabled: e.disabled,
|
|
828
829
|
error: e.error,
|
|
829
830
|
"input-id": p.value,
|
|
830
831
|
listeners: z,
|
|
831
|
-
"model-value":
|
|
832
|
+
"model-value": B(M),
|
|
832
833
|
placeholder: e.placeholder,
|
|
833
834
|
required: e.required
|
|
834
835
|
}, null, 8, ["disabled", "error", "input-id", "listeners", "model-value", "placeholder", "required"]))
|
|
@@ -836,16 +837,16 @@ const Aa = ["data-range"], rt = "(min-width: 752px)", mo = /* @__PURE__ */ Objec
|
|
|
836
837
|
key: "0"
|
|
837
838
|
} : void 0
|
|
838
839
|
]), 1040, ["columns", "disabled-dates", "max-date", "min-date", "model-value", "model-modifiers", "step"]),
|
|
839
|
-
g.value ? (
|
|
840
|
+
g.value ? (u(), E(be, {
|
|
840
841
|
key: 1,
|
|
841
842
|
error: e.error,
|
|
842
843
|
"error-msg": e.errorMsg,
|
|
843
844
|
hint: e.hint,
|
|
844
845
|
"hint-id": f(o)
|
|
845
|
-
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) :
|
|
846
|
-
], 16,
|
|
846
|
+
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : I("", !0)
|
|
847
|
+
], 16, Ca));
|
|
847
848
|
}
|
|
848
|
-
}),
|
|
849
|
+
}), xa = { "data-component": "bs-chart-table" }, Aa = ["summary"], Va = ["colspan"], Ea = /* @__PURE__ */ S("th", { scope: "col" }, " Dataset ", -1), Pa = { scope: "row" }, Oa = {
|
|
849
850
|
__name: "BsChartTable",
|
|
850
851
|
props: {
|
|
851
852
|
data: {
|
|
@@ -864,52 +865,52 @@ const Aa = ["data-range"], rt = "(min-width: 752px)", mo = /* @__PURE__ */ Objec
|
|
|
864
865
|
setup(e) {
|
|
865
866
|
return (n, t) => {
|
|
866
867
|
var a;
|
|
867
|
-
return
|
|
868
|
+
return u(), h("div", xa, [
|
|
868
869
|
S("table", { summary: e.tableTitle }, [
|
|
869
870
|
S("thead", null, [
|
|
870
871
|
S("tr", null, [
|
|
871
872
|
S("th", {
|
|
872
873
|
colspan: ((a = e.dataIdxLabels) == null ? void 0 : a.length) + 1
|
|
873
|
-
}, A(e.tableTitle), 9,
|
|
874
|
+
}, A(e.tableTitle), 9, Va)
|
|
874
875
|
]),
|
|
875
876
|
S("tr", null, [
|
|
876
|
-
|
|
877
|
-
(
|
|
877
|
+
Ea,
|
|
878
|
+
(u(!0), h(G, null, _(e.dataIdxLabels, (l) => (u(), h("th", {
|
|
878
879
|
key: l,
|
|
879
880
|
scope: "col"
|
|
880
881
|
}, A(l), 1))), 128))
|
|
881
882
|
])
|
|
882
883
|
]),
|
|
883
884
|
S("tbody", null, [
|
|
884
|
-
(
|
|
885
|
+
(u(!0), h(G, null, _(e.data, (l) => (u(), h("tr", {
|
|
885
886
|
key: l.label
|
|
886
887
|
}, [
|
|
887
|
-
S("th",
|
|
888
|
-
(
|
|
889
|
-
key: `${i}${
|
|
888
|
+
S("th", Pa, A(l.label), 1),
|
|
889
|
+
(u(!0), h(G, null, _(l.data, (i, d) => (u(), h("td", {
|
|
890
|
+
key: `${i}${d}`
|
|
890
891
|
}, A(i), 1))), 128))
|
|
891
892
|
]))), 128))
|
|
892
893
|
])
|
|
893
|
-
], 8,
|
|
894
|
+
], 8, Aa)
|
|
894
895
|
]);
|
|
895
896
|
};
|
|
896
897
|
}
|
|
897
|
-
},
|
|
898
|
+
}, La = (e) => ({
|
|
898
899
|
id: "htmlLegend",
|
|
899
900
|
afterUpdate(n) {
|
|
900
901
|
e.innerHTML = "", e.style.setProperty("--legend-padding", `${n.scales.x.left}px`), n.options.plugins.legend.labels.generateLabels(n).forEach((a) => {
|
|
901
902
|
const l = document.createElement("li");
|
|
902
903
|
l.onclick = () => {
|
|
903
|
-
const { type:
|
|
904
|
-
|
|
904
|
+
const { type: s } = n.config._config;
|
|
905
|
+
s === "pie" || s === "doughnut" ? n.toggleDataVisibility(a.index) : n.setDatasetVisibility(a.datasetIndex, !n.isDatasetVisible(a.datasetIndex)), n.update();
|
|
905
906
|
};
|
|
906
907
|
const i = document.createElement("span");
|
|
907
908
|
i.style.setProperty("--item-box-fill", a.fillStyle), i.style.setProperty("--item-box-stroke", a.strokeStyle);
|
|
908
|
-
const
|
|
909
|
-
o.style.setProperty("--item-text-color", "var(--bs-ink-base)"), o.style.setProperty("--item-text-decoration", a.hidden ? "line-through" : "none"), o.appendChild(
|
|
909
|
+
const d = document.createTextNode(a.text), o = document.createElement("p");
|
|
910
|
+
o.style.setProperty("--item-text-color", "var(--bs-ink-base)"), o.style.setProperty("--item-text-decoration", a.hidden ? "line-through" : "none"), o.appendChild(d), l.appendChild(i), l.appendChild(o), e.appendChild(l);
|
|
910
911
|
});
|
|
911
912
|
}
|
|
912
|
-
}),
|
|
913
|
+
}), qa = ({ type: e, datasets: n, labels: t, tooltips: a }) => ({
|
|
913
914
|
type: e,
|
|
914
915
|
data: {
|
|
915
916
|
datasets: n,
|
|
@@ -928,7 +929,7 @@ const Aa = ["data-range"], rt = "(min-width: 752px)", mo = /* @__PURE__ */ Objec
|
|
|
928
929
|
responsive: !0
|
|
929
930
|
}
|
|
930
931
|
});
|
|
931
|
-
function
|
|
932
|
+
function Da(e) {
|
|
932
933
|
const n = [
|
|
933
934
|
"rgba(209, 26, 111, 1)",
|
|
934
935
|
"rgba(130, 18, 196, 1)",
|
|
@@ -941,10 +942,10 @@ function Na(e) {
|
|
|
941
942
|
], t = n[e % n.length];
|
|
942
943
|
return e >= n.length ? t.replace("1)", "0.5)") : t;
|
|
943
944
|
}
|
|
944
|
-
const
|
|
945
|
+
const Ma = {
|
|
945
946
|
class: "bs-chart-bar",
|
|
946
947
|
"data-component": "bs-chart-bar"
|
|
947
|
-
},
|
|
948
|
+
}, Na = ["aria-label"], za = ["data-hidden"], vo = {
|
|
948
949
|
__name: "BsChartBar",
|
|
949
950
|
props: {
|
|
950
951
|
chartTitle: {
|
|
@@ -1002,12 +1003,12 @@ const za = {
|
|
|
1002
1003
|
let l;
|
|
1003
1004
|
const i = v(() => {
|
|
1004
1005
|
const c = {
|
|
1005
|
-
datasets:
|
|
1006
|
+
datasets: d.value,
|
|
1006
1007
|
labels: n.dataIdxLabels,
|
|
1007
1008
|
type: "bar",
|
|
1008
1009
|
tooltips: n.showTooltips
|
|
1009
|
-
}, p =
|
|
1010
|
-
return p.plugins = [
|
|
1010
|
+
}, p = qa(c);
|
|
1011
|
+
return p.plugins = [La(a.value)], p.options.scales = {
|
|
1011
1012
|
x: {
|
|
1012
1013
|
grid: {
|
|
1013
1014
|
display: n.showXGrid
|
|
@@ -1029,18 +1030,18 @@ const za = {
|
|
|
1029
1030
|
}
|
|
1030
1031
|
}
|
|
1031
1032
|
}, p;
|
|
1032
|
-
}),
|
|
1033
|
+
}), d = v(() => n.data.map((c, p) => ({
|
|
1033
1034
|
...c,
|
|
1034
|
-
backgroundColor:
|
|
1035
|
+
backgroundColor: Da(p),
|
|
1035
1036
|
categoryPercentage: n.data.length > 1 ? 0.5 : 0.33
|
|
1036
|
-
}))), o = v(() => n.chartTitle || `${n.yLabel} / ${n.xLabel}`),
|
|
1037
|
+
}))), o = v(() => n.chartTitle || `${n.yLabel} / ${n.xLabel}`), s = Ae(function(c, p) {
|
|
1037
1038
|
!l || c === p || (l.options = i.value.options, l.update());
|
|
1038
1039
|
}, 100), r = Ae(function() {
|
|
1039
1040
|
l && (l.data = i.value.data, l.update());
|
|
1040
1041
|
}, 100);
|
|
1041
|
-
return
|
|
1042
|
+
return Y(() => {
|
|
1042
1043
|
Ne.register(jt, Wt, Ut, Gt, Ht, Kt), Ne.defaults.font.family = "'Roobert', sans-serif", l = new Ne(t.value, i.value);
|
|
1043
|
-
}), R(() => n.showLegend,
|
|
1044
|
+
}), R(() => n.showLegend, s), R(() => n.showTooltips, s), R(() => n.showXGrid, s), R(() => n.showYGrid, s), R(() => n.stacked, s), R(() => n.xLabel, s), R(() => n.yLabel, s), R(() => n.data, r), R(() => n.dataIdxLabels, r), (c, p) => (u(), h("div", Ma, [
|
|
1044
1045
|
S("figure", null, [
|
|
1045
1046
|
S("div", null, [
|
|
1046
1047
|
S("canvas", {
|
|
@@ -1048,10 +1049,10 @@ const za = {
|
|
|
1048
1049
|
ref_key: "canvas",
|
|
1049
1050
|
ref: t,
|
|
1050
1051
|
role: "img"
|
|
1051
|
-
}, null, 8,
|
|
1052
|
+
}, null, 8, Na)
|
|
1052
1053
|
]),
|
|
1053
1054
|
S("div", null, [
|
|
1054
|
-
V(
|
|
1055
|
+
V(Oa, {
|
|
1055
1056
|
data: e.data,
|
|
1056
1057
|
"data-idx-labels": e.dataIdxLabels,
|
|
1057
1058
|
"table-title": o.value
|
|
@@ -1063,12 +1064,12 @@ const za = {
|
|
|
1063
1064
|
ref_key: "legendList",
|
|
1064
1065
|
ref: a
|
|
1065
1066
|
}, null, 512)
|
|
1066
|
-
], 8,
|
|
1067
|
+
], 8, za)
|
|
1067
1068
|
])
|
|
1068
1069
|
])
|
|
1069
1070
|
]));
|
|
1070
1071
|
}
|
|
1071
|
-
},
|
|
1072
|
+
}, Ra = ["data-disabled", "data-error", "data-size"], Fa = ["checked", "data-error", "disabled", "id", "required", "value"], ho = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1072
1073
|
__name: "BsCheckbox",
|
|
1073
1074
|
props: {
|
|
1074
1075
|
/** Sets the label. */
|
|
@@ -1131,54 +1132,56 @@ const za = {
|
|
|
1131
1132
|
},
|
|
1132
1133
|
emits: ["update:modelValue"],
|
|
1133
1134
|
setup(e, { emit: n }) {
|
|
1134
|
-
const t = e, a = n, [l] = Z(), i = v(() => Ye.concat(t.passAttrs.split(","))),
|
|
1135
|
-
function
|
|
1136
|
-
|
|
1135
|
+
const t = e, a = n, [l] = Z(), i = v(() => Ye.concat(t.passAttrs.split(","))), d = y(null), o = v(() => t.inputId || l.value), s = v(() => t.checked || p.value), r = v(() => t.indeterminate || t.checkedPartially), c = v(() => Array.isArray(t.modelValue) && t.value), p = v(() => c.value && t.modelValue.includes(t.value) || typeof t.modelValue == "boolean" && t.modelValue);
|
|
1136
|
+
function w() {
|
|
1137
|
+
d.value && (d.value.indeterminate = r.value && !s.value);
|
|
1137
1138
|
}
|
|
1138
|
-
function g(
|
|
1139
|
-
a("update:modelValue",
|
|
1139
|
+
function g(B) {
|
|
1140
|
+
a("update:modelValue", B);
|
|
1140
1141
|
}
|
|
1141
|
-
function
|
|
1142
|
+
function k(B) {
|
|
1142
1143
|
const T = [...t.modelValue];
|
|
1143
|
-
|
|
1144
|
+
B ? T.push(t.value) : T.splice(T.indexOf(t.value), 1), a("update:modelValue", T);
|
|
1144
1145
|
}
|
|
1145
|
-
function C(
|
|
1146
|
-
const { checked: T } =
|
|
1147
|
-
c.value ?
|
|
1146
|
+
function C(B) {
|
|
1147
|
+
const { checked: T } = B.target;
|
|
1148
|
+
c.value ? k(T) : g(T);
|
|
1148
1149
|
}
|
|
1149
|
-
return R(
|
|
1150
|
+
return R(s, w), R(r, w), Y(w), (B, T) => (u(), h("div", N({
|
|
1150
1151
|
class: "bs-boolean",
|
|
1151
1152
|
"data-component": "bs-checkbox",
|
|
1153
|
+
"data-disabled": e.disabled,
|
|
1154
|
+
"data-error": e.error,
|
|
1152
1155
|
"data-size": e.size
|
|
1153
|
-
}, f(K)(
|
|
1156
|
+
}, f(K)(B.$attrs, i.value).remaining), [
|
|
1154
1157
|
S("input", N({
|
|
1155
1158
|
ref_key: "inputEl",
|
|
1156
|
-
ref:
|
|
1157
|
-
checked:
|
|
1159
|
+
ref: d,
|
|
1160
|
+
checked: s.value,
|
|
1158
1161
|
"data-error": e.error,
|
|
1159
1162
|
disabled: e.disabled,
|
|
1160
|
-
id:
|
|
1163
|
+
id: B.$attrs.id || o.value,
|
|
1161
1164
|
required: e.required,
|
|
1162
1165
|
value: e.value || "on",
|
|
1163
1166
|
type: "checkbox",
|
|
1164
1167
|
onChange: C
|
|
1165
|
-
}, f(K)(
|
|
1166
|
-
e.label ||
|
|
1168
|
+
}, f(K)(B.$attrs, i.value).filtered), null, 16, Fa),
|
|
1169
|
+
e.label || B.$slots.label ? (u(), E(te, {
|
|
1167
1170
|
key: 0,
|
|
1168
|
-
for:
|
|
1171
|
+
for: B.$attrs.id || o.value,
|
|
1169
1172
|
disabled: e.disabled,
|
|
1170
1173
|
required: e.required
|
|
1171
1174
|
}, {
|
|
1172
|
-
default:
|
|
1173
|
-
|
|
1175
|
+
default: O(() => [
|
|
1176
|
+
P(B.$slots, "label", {}, () => [
|
|
1174
1177
|
H(A(e.label), 1)
|
|
1175
1178
|
])
|
|
1176
1179
|
]),
|
|
1177
1180
|
_: 3
|
|
1178
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
1179
|
-
], 16,
|
|
1181
|
+
}, 8, ["for", "disabled", "required"])) : I("", !0)
|
|
1182
|
+
], 16, Ra));
|
|
1180
1183
|
}
|
|
1181
|
-
}),
|
|
1184
|
+
}), ja = { key: 0 }, Wa = { class: "bs-circle-button-icon" }, Ua = { key: 1 }, mo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1182
1185
|
__name: "BsCircleButton",
|
|
1183
1186
|
props: {
|
|
1184
1187
|
disabled: {
|
|
@@ -1224,11 +1227,11 @@ const za = {
|
|
|
1224
1227
|
}
|
|
1225
1228
|
},
|
|
1226
1229
|
setup(e) {
|
|
1227
|
-
const n = e, t =
|
|
1230
|
+
const n = e, t = pe(), { rootTag: a, attrsToBind: l, hrefUrl: i } = qe(n, t), { icon: d } = Oe(n, "icon"), { onLinkClick: o } = De(n), s = v(() => n.textBtn ? {} : n.href ? { title: n.label } : { "aria-label": n.label }), r = v(() => {
|
|
1228
1231
|
if (n.hoverEffect)
|
|
1229
1232
|
return n.iconPosition;
|
|
1230
1233
|
}), c = v(() => n.textBtn && n.iconPosition !== "left"), p = v(() => n.textBtn && n.iconPosition === "left");
|
|
1231
|
-
return (
|
|
1234
|
+
return (w, g) => (u(), E(ee(f(a)), N({
|
|
1232
1235
|
class: "bs-circle-button",
|
|
1233
1236
|
"data-disabled": e.disabled,
|
|
1234
1237
|
"data-direction": r.value,
|
|
@@ -1236,20 +1239,20 @@ const za = {
|
|
|
1236
1239
|
"data-size": e.size,
|
|
1237
1240
|
"data-text": e.textBtn,
|
|
1238
1241
|
".href": f(i)
|
|
1239
|
-
}, { ...f(l), ...
|
|
1240
|
-
default:
|
|
1241
|
-
c.value ? (
|
|
1242
|
-
S("span",
|
|
1243
|
-
|
|
1244
|
-
(
|
|
1242
|
+
}, { ...f(l), ...s.value }, { onClick: f(o) }), {
|
|
1243
|
+
default: O(() => [
|
|
1244
|
+
c.value ? (u(), h("span", ja, A(e.label), 1)) : I("", !0),
|
|
1245
|
+
S("span", Wa, [
|
|
1246
|
+
P(w.$slots, "icon", {}, () => [
|
|
1247
|
+
(u(), E(ee(f(d)), { size: e.size }, null, 8, ["size"]))
|
|
1245
1248
|
])
|
|
1246
1249
|
]),
|
|
1247
|
-
p.value ? (
|
|
1250
|
+
p.value ? (u(), h("span", Ua, A(e.label), 1)) : I("", !0)
|
|
1248
1251
|
]),
|
|
1249
1252
|
_: 3
|
|
1250
1253
|
}, 48, ["data-disabled", "data-direction", "data-ghost", "data-size", "data-text", ".href", "onClick"]));
|
|
1251
1254
|
}
|
|
1252
|
-
}),
|
|
1255
|
+
}), Ga = {
|
|
1253
1256
|
__name: "BsDropdownContainer",
|
|
1254
1257
|
props: {
|
|
1255
1258
|
breakout: {
|
|
@@ -1271,21 +1274,21 @@ const za = {
|
|
|
1271
1274
|
},
|
|
1272
1275
|
setup(e, { expose: n }) {
|
|
1273
1276
|
const t = y(null);
|
|
1274
|
-
return n({ internalContainerRef: t }), (a, l) => (
|
|
1275
|
-
e.breakout && e.breakoutMounted ? (
|
|
1277
|
+
return n({ internalContainerRef: t }), (a, l) => (u(), h(G, null, [
|
|
1278
|
+
e.breakout && e.breakoutMounted ? (u(), E($t, {
|
|
1276
1279
|
key: 0,
|
|
1277
1280
|
to: e.breakoutStub
|
|
1278
1281
|
}, [
|
|
1279
|
-
|
|
1280
|
-
], 8, ["to"])) :
|
|
1281
|
-
e.breakout ?
|
|
1282
|
-
e.containerId ?
|
|
1282
|
+
P(a.$slots, "default")
|
|
1283
|
+
], 8, ["to"])) : I("", !0),
|
|
1284
|
+
e.breakout ? I("", !0) : (u(), h(G, { key: 1 }, [
|
|
1285
|
+
e.containerId ? P(a.$slots, "default", { key: 0 }) : (u(), h("div", {
|
|
1283
1286
|
key: 1,
|
|
1284
1287
|
ref_key: "internalContainerRef",
|
|
1285
1288
|
ref: t,
|
|
1286
1289
|
style: { position: "relative" }
|
|
1287
1290
|
}, [
|
|
1288
|
-
|
|
1291
|
+
P(a.$slots, "default")
|
|
1289
1292
|
], 512))
|
|
1290
1293
|
], 64))
|
|
1291
1294
|
], 64));
|
|
@@ -1334,10 +1337,10 @@ const za = {
|
|
|
1334
1337
|
],
|
|
1335
1338
|
setup(e, { emit: n }) {
|
|
1336
1339
|
const t = e, a = n, l = [], i = t.preloaded && t.shown;
|
|
1337
|
-
function
|
|
1338
|
-
const { duration: p, enterClass:
|
|
1340
|
+
function d(r, c) {
|
|
1341
|
+
const { duration: p, enterClass: w, enterAttribute: g } = t;
|
|
1339
1342
|
l.push(setTimeout(() => {
|
|
1340
|
-
|
|
1343
|
+
w && r.classList.add(w), g && r.setAttribute(g, ""), l.push(setTimeout(() => {
|
|
1341
1344
|
c();
|
|
1342
1345
|
}, p)), a("enter", r);
|
|
1343
1346
|
}));
|
|
@@ -1345,74 +1348,74 @@ const za = {
|
|
|
1345
1348
|
function o(r, c) {
|
|
1346
1349
|
const {
|
|
1347
1350
|
duration: p,
|
|
1348
|
-
enterClass:
|
|
1351
|
+
enterClass: w,
|
|
1349
1352
|
enterAttribute: g,
|
|
1350
|
-
leaveClass:
|
|
1353
|
+
leaveClass: k,
|
|
1351
1354
|
leaveAttribute: C
|
|
1352
1355
|
} = t;
|
|
1353
|
-
r.classList.remove(
|
|
1356
|
+
r.classList.remove(w), r.removeAttribute(g), k && r.classList.add(k), C && r.setAttribute(C, ""), l.push(setTimeout(() => {
|
|
1354
1357
|
c();
|
|
1355
1358
|
}, p)), a("leave", r);
|
|
1356
1359
|
}
|
|
1357
|
-
function
|
|
1360
|
+
function s(r) {
|
|
1358
1361
|
const { leaveClass: c, leaveAttribute: p } = t;
|
|
1359
1362
|
r.classList.remove(c), r.removeAttribute(p), a("after-leave", r);
|
|
1360
1363
|
}
|
|
1361
|
-
return
|
|
1364
|
+
return me(() => {
|
|
1362
1365
|
l.forEach((r) => {
|
|
1363
1366
|
clearTimeout(r);
|
|
1364
1367
|
});
|
|
1365
|
-
}), (r, c) => e.preloaded ?
|
|
1368
|
+
}), (r, c) => e.preloaded ? de((u(), E(et, {
|
|
1366
1369
|
key: 0,
|
|
1367
1370
|
appear: f(i),
|
|
1368
1371
|
css: !1,
|
|
1369
1372
|
onBeforeEnter: c[0] || (c[0] = (p) => a("before-enter", p)),
|
|
1370
|
-
onEnter:
|
|
1373
|
+
onEnter: d,
|
|
1371
1374
|
onAfterEnter: c[1] || (c[1] = (p) => a("after-enter", p)),
|
|
1372
1375
|
onEnterCancelled: c[2] || (c[2] = (p) => a("enter-cancelled", p)),
|
|
1373
1376
|
onBeforeLeave: c[3] || (c[3] = (p) => a("before-leave", p)),
|
|
1374
1377
|
onLeave: o,
|
|
1375
|
-
onAfterLeave:
|
|
1378
|
+
onAfterLeave: s,
|
|
1376
1379
|
onLeaveCancelled: c[4] || (c[4] = (p) => a("leave-cancelled", p))
|
|
1377
1380
|
}, {
|
|
1378
|
-
default:
|
|
1379
|
-
|
|
1381
|
+
default: O(() => [
|
|
1382
|
+
P(r.$slots, "default")
|
|
1380
1383
|
]),
|
|
1381
1384
|
_: 3
|
|
1382
1385
|
}, 8, ["appear"])), [
|
|
1383
|
-
[
|
|
1384
|
-
]) : (
|
|
1386
|
+
[se, e.shown]
|
|
1387
|
+
]) : (u(), E(et, {
|
|
1385
1388
|
key: 1,
|
|
1386
1389
|
appear: !0,
|
|
1387
1390
|
css: !1,
|
|
1388
1391
|
onBeforeEnter: c[5] || (c[5] = (p) => a("before-enter", p)),
|
|
1389
|
-
onEnter:
|
|
1392
|
+
onEnter: d,
|
|
1390
1393
|
onAfterEnter: c[6] || (c[6] = (p) => a("after-enter", p)),
|
|
1391
1394
|
onEnterCancelled: c[7] || (c[7] = (p) => a("enter-cancelled", p)),
|
|
1392
1395
|
onBeforeLeave: c[8] || (c[8] = (p) => a("before-leave", p)),
|
|
1393
1396
|
onLeave: o,
|
|
1394
|
-
onAfterLeave:
|
|
1397
|
+
onAfterLeave: s,
|
|
1395
1398
|
onLeaveCancelled: c[9] || (c[9] = (p) => a("leave-cancelled", p))
|
|
1396
1399
|
}, {
|
|
1397
|
-
default:
|
|
1398
|
-
e.shown ?
|
|
1400
|
+
default: O(() => [
|
|
1401
|
+
e.shown ? P(r.$slots, "default", { key: 0 }) : I("", !0)
|
|
1399
1402
|
]),
|
|
1400
1403
|
_: 3
|
|
1401
1404
|
}));
|
|
1402
1405
|
}
|
|
1403
|
-
},
|
|
1406
|
+
}, Ha = (e, n = void 0, t = "relative") => {
|
|
1404
1407
|
const a = y(null), l = y(null), i = y(!1);
|
|
1405
|
-
let
|
|
1406
|
-
return
|
|
1407
|
-
e && (a.value = n ||
|
|
1408
|
-
}),
|
|
1408
|
+
let d = !1;
|
|
1409
|
+
return Y(() => {
|
|
1410
|
+
e && (a.value = n || pt(), document.getElementById(a.value) ? (l.value = document.getElementById(a.value), d = !0) : (l.value = document.createElement("div"), l.value.id = a.value, l.value.style.position = t, document.body.insertAdjacentElement("afterbegin", l.value)), i.value = !0);
|
|
1411
|
+
}), me(() => {
|
|
1409
1412
|
var o;
|
|
1410
|
-
e && !
|
|
1413
|
+
e && !d && ((o = document.getElementById(a.value)) == null || o.remove());
|
|
1411
1414
|
}), { breakoutId: a, breakoutStub: l, breakoutMounted: i };
|
|
1412
|
-
},
|
|
1415
|
+
}, Ka = {
|
|
1413
1416
|
key: 0,
|
|
1414
1417
|
class: "bs-dropdown-backdrop"
|
|
1415
|
-
},
|
|
1418
|
+
}, Ya = ["data-width", "data-no-mobile"], Xa = { key: 0 }, Za = { key: 0 }, Qa = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1416
1419
|
__name: "BsDropdownNew",
|
|
1417
1420
|
props: {
|
|
1418
1421
|
anchorId: {
|
|
@@ -1465,20 +1468,20 @@ const za = {
|
|
|
1465
1468
|
"after-leave"
|
|
1466
1469
|
],
|
|
1467
1470
|
setup(e, { emit: n }) {
|
|
1468
|
-
const t = e, a = n, l = y(null), i = y(null),
|
|
1469
|
-
Jt([i,
|
|
1471
|
+
const t = e, a = n, l = y(null), i = y(null), d = y(!1), o = y(!1), s = v(() => document.getElementById(t.anchorId)), r = v(() => t.breakout ? p.value : t.containerId ? document.getElementById(t.containerId) : l.value.internalContainerRef), c = v(() => t.width === "anchor" ? void 0 : t.width);
|
|
1472
|
+
Jt([i, s], () => {
|
|
1470
1473
|
o.value && a("close");
|
|
1471
|
-
}),
|
|
1474
|
+
}), we(["Escape"], () => {
|
|
1472
1475
|
o.value && a("close");
|
|
1473
1476
|
});
|
|
1474
|
-
const { breakoutStub: p, breakoutMounted:
|
|
1475
|
-
ue("dropdownEnter",
|
|
1477
|
+
const { breakoutStub: p, breakoutMounted: w } = Ha(t.breakout, t.containerId);
|
|
1478
|
+
ue("dropdownEnter", d), ue("dropdownAfterEnter", o), ue("dropdownShown", v(() => t.shown));
|
|
1476
1479
|
const g = (M, z) => {
|
|
1477
1480
|
i.value.style.setProperty(M, z);
|
|
1478
1481
|
};
|
|
1479
|
-
function
|
|
1480
|
-
const M = r.value.getBoundingClientRect(), z =
|
|
1481
|
-
C(M, z),
|
|
1482
|
+
function k() {
|
|
1483
|
+
const M = r.value.getBoundingClientRect(), z = s.value.getBoundingClientRect(), W = i.value.getBoundingClientRect();
|
|
1484
|
+
C(M, z), B(M, z, W);
|
|
1482
1485
|
}
|
|
1483
1486
|
function C(M, z) {
|
|
1484
1487
|
if (t.position === "top") {
|
|
@@ -1489,46 +1492,46 @@ const za = {
|
|
|
1489
1492
|
g("--dropdown-wscreen-top", `${W + z.height + 8}px`), g("--dropdown-wscreen-bottom", "auto");
|
|
1490
1493
|
}
|
|
1491
1494
|
}
|
|
1492
|
-
function
|
|
1495
|
+
function B(M, z, W) {
|
|
1493
1496
|
if (t.width !== "anchor") {
|
|
1494
|
-
const
|
|
1497
|
+
const ae = z.left - M.left;
|
|
1495
1498
|
if (t.position === "center") {
|
|
1496
1499
|
const J = (z.width - W.width) / 2;
|
|
1497
|
-
g("--dropdown-wscreen-left", `${
|
|
1500
|
+
g("--dropdown-wscreen-left", `${ae + J}px`), g("--dropdown-wscreen-right", "auto");
|
|
1498
1501
|
} else if (t.position === "right") {
|
|
1499
1502
|
const J = M.right - z.right;
|
|
1500
1503
|
g("--dropdown-wscreen-left", "auto"), g("--dropdown-wscreen-right", `${J}px`);
|
|
1501
1504
|
} else
|
|
1502
|
-
g("--dropdown-wscreen-left", `${
|
|
1505
|
+
g("--dropdown-wscreen-left", `${ae}px`), g("--dropdown-wscreen-right", "auto");
|
|
1503
1506
|
}
|
|
1504
1507
|
}
|
|
1505
1508
|
function T() {
|
|
1506
1509
|
if (t.width === "anchor") {
|
|
1507
|
-
const M =
|
|
1510
|
+
const M = s.value.getBoundingClientRect();
|
|
1508
1511
|
g("--dropdown-wscreen-width", `${M.width}px`);
|
|
1509
1512
|
} else
|
|
1510
1513
|
g("--dropdown-wscreen-width", "");
|
|
1511
1514
|
}
|
|
1512
1515
|
function m() {
|
|
1513
|
-
|
|
1516
|
+
d.value = !0, k(), T(), a("enter");
|
|
1514
1517
|
}
|
|
1515
1518
|
function b() {
|
|
1516
1519
|
o.value = !0, a("after-enter");
|
|
1517
1520
|
}
|
|
1518
1521
|
function q() {
|
|
1519
|
-
|
|
1522
|
+
d.value = !1, o.value = !1, a("after-leave");
|
|
1520
1523
|
}
|
|
1521
|
-
return (M, z) => (
|
|
1522
|
-
e.useMobileStyle && e.shown ? (
|
|
1523
|
-
V(
|
|
1524
|
+
return (M, z) => (u(), h(G, null, [
|
|
1525
|
+
e.useMobileStyle && e.shown ? (u(), h("div", Ka)) : I("", !0),
|
|
1526
|
+
V(Ga, {
|
|
1524
1527
|
ref_key: "dropdownContainerRef",
|
|
1525
1528
|
ref: l,
|
|
1526
1529
|
breakout: e.breakout,
|
|
1527
|
-
breakoutMounted: f(
|
|
1530
|
+
breakoutMounted: f(w),
|
|
1528
1531
|
breakoutStub: f(p),
|
|
1529
1532
|
containerId: e.containerId
|
|
1530
1533
|
}, {
|
|
1531
|
-
default:
|
|
1534
|
+
default: O(() => [
|
|
1532
1535
|
V(Me, {
|
|
1533
1536
|
shown: e.shown,
|
|
1534
1537
|
preloaded: e.preloaded,
|
|
@@ -1538,7 +1541,7 @@ const za = {
|
|
|
1538
1541
|
onEnter: m,
|
|
1539
1542
|
onAfterLeave: q
|
|
1540
1543
|
}, {
|
|
1541
|
-
default:
|
|
1544
|
+
default: O(() => [
|
|
1542
1545
|
S("div", N({
|
|
1543
1546
|
ref_key: "dropdownRef",
|
|
1544
1547
|
ref: i,
|
|
@@ -1546,10 +1549,10 @@ const za = {
|
|
|
1546
1549
|
"data-width": c.value,
|
|
1547
1550
|
"data-no-mobile": !e.useMobileStyle
|
|
1548
1551
|
}, M.$attrs), [
|
|
1549
|
-
e.helperText ? (
|
|
1552
|
+
e.helperText ? (u(), h("header", Xa, [
|
|
1550
1553
|
S("div", null, [
|
|
1551
1554
|
S("h3", null, A(e.helperText), 1),
|
|
1552
|
-
e.helperDescription ? (
|
|
1555
|
+
e.helperDescription ? (u(), h("p", Za, A(e.helperDescription), 1)) : I("", !0)
|
|
1553
1556
|
]),
|
|
1554
1557
|
S("button", {
|
|
1555
1558
|
type: "button",
|
|
@@ -1558,9 +1561,9 @@ const za = {
|
|
|
1558
1561
|
}, [
|
|
1559
1562
|
V(f(Ve))
|
|
1560
1563
|
])
|
|
1561
|
-
])) :
|
|
1562
|
-
|
|
1563
|
-
], 16,
|
|
1564
|
+
])) : I("", !0),
|
|
1565
|
+
P(M.$slots, "default")
|
|
1566
|
+
], 16, Ya)
|
|
1564
1567
|
]),
|
|
1565
1568
|
_: 3
|
|
1566
1569
|
}, 8, ["shown", "preloaded"])
|
|
@@ -1569,7 +1572,7 @@ const za = {
|
|
|
1569
1572
|
}, 8, ["breakout", "breakoutMounted", "breakoutStub", "containerId"])
|
|
1570
1573
|
], 64));
|
|
1571
1574
|
}
|
|
1572
|
-
}),
|
|
1575
|
+
}), mt = {
|
|
1573
1576
|
__name: "BsDropdown",
|
|
1574
1577
|
props: {
|
|
1575
1578
|
anchorId: {
|
|
@@ -1659,14 +1662,14 @@ const za = {
|
|
|
1659
1662
|
"after-leave"
|
|
1660
1663
|
],
|
|
1661
1664
|
setup(e, { emit: n }) {
|
|
1662
|
-
const t = e, a = n, { transition: l } = Ee(t), i = v(() => t.width === "toggle" ? "anchor" : t.width),
|
|
1663
|
-
return (
|
|
1665
|
+
const t = e, a = n, { transition: l } = Ee(t), i = v(() => t.width === "toggle" ? "anchor" : t.width), d = v(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = v(() => t.toggleId ? t.toggleId : t.anchorId);
|
|
1666
|
+
return (s, r) => (u(), E(Qa, {
|
|
1664
1667
|
"anchor-id": o.value,
|
|
1665
1668
|
breakout: e.breakout,
|
|
1666
1669
|
"container-id": e.containerId,
|
|
1667
1670
|
"helper-description": e.helperDescription,
|
|
1668
1671
|
"helper-text": e.helperText,
|
|
1669
|
-
position:
|
|
1672
|
+
position: d.value,
|
|
1670
1673
|
preloaded: e.preloaded,
|
|
1671
1674
|
shown: f(l),
|
|
1672
1675
|
"use-mobile-style": e.useMobileStyle,
|
|
@@ -1676,13 +1679,13 @@ const za = {
|
|
|
1676
1679
|
onAfterEnter: r[2] || (r[2] = () => a("after-enter")),
|
|
1677
1680
|
onAfterLeave: r[3] || (r[3] = () => a("after-leave"))
|
|
1678
1681
|
}, {
|
|
1679
|
-
default:
|
|
1680
|
-
|
|
1682
|
+
default: O(() => [
|
|
1683
|
+
P(s.$slots, "default")
|
|
1681
1684
|
]),
|
|
1682
1685
|
_: 3
|
|
1683
1686
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
|
|
1684
1687
|
}
|
|
1685
|
-
},
|
|
1688
|
+
}, Ja = ["aria-controls", "aria-expanded", "data-open", "disabled", "id", "tabindex"], _a = { class: "visually-hidden" }, en = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1686
1689
|
__name: "BsInputCombobox",
|
|
1687
1690
|
props: {
|
|
1688
1691
|
containerId: {
|
|
@@ -1724,21 +1727,21 @@ const za = {
|
|
|
1724
1727
|
setup(e, { emit: n }) {
|
|
1725
1728
|
const t = e, a = n;
|
|
1726
1729
|
let l = !1;
|
|
1727
|
-
const i = y(null), [
|
|
1730
|
+
const i = y(null), [d] = Z(1), o = v(() => ({
|
|
1728
1731
|
icon: t.modelValue ? "close" : t.optionsId ? "caret-down" : "",
|
|
1729
1732
|
show: !!(t.modelValue || t.optionsId),
|
|
1730
1733
|
text: t.modelValue ? "Clear this field" : t.optionsId ? "Toggle options dropdown" : ""
|
|
1731
1734
|
}));
|
|
1732
|
-
function
|
|
1735
|
+
function s() {
|
|
1733
1736
|
t.modelValue && a("clear"), l = !0, i.value.$el.focus();
|
|
1734
1737
|
}
|
|
1735
1738
|
function r(p) {
|
|
1736
|
-
var
|
|
1737
|
-
const
|
|
1738
|
-
!(((C = p.relatedTarget) == null ? void 0 : C.id) === t.optionsId) && (!
|
|
1739
|
+
var k, C;
|
|
1740
|
+
const w = ((k = p.relatedTarget) == null ? void 0 : k.id) === d.value;
|
|
1741
|
+
!(((C = p.relatedTarget) == null ? void 0 : C.id) === t.optionsId) && (!w || !l) && c(!0), l = !1;
|
|
1739
1742
|
}
|
|
1740
1743
|
const c = Ae((p) => a("toggled", p), 200, !0);
|
|
1741
|
-
return (p,
|
|
1744
|
+
return (p, w) => (u(), E(Pe, {
|
|
1742
1745
|
"aria-live": "polite",
|
|
1743
1746
|
disabled: e.disabled,
|
|
1744
1747
|
error: e.error,
|
|
@@ -1747,8 +1750,8 @@ const za = {
|
|
|
1747
1750
|
variant: "combobox",
|
|
1748
1751
|
onClick: f(c)
|
|
1749
1752
|
}, {
|
|
1750
|
-
default:
|
|
1751
|
-
V(
|
|
1753
|
+
default: O(() => [
|
|
1754
|
+
V(Be, N({
|
|
1752
1755
|
ref_key: "inputRef",
|
|
1753
1756
|
ref: i,
|
|
1754
1757
|
"aria-controls": e.optionsId,
|
|
@@ -1764,40 +1767,40 @@ const za = {
|
|
|
1764
1767
|
required: e.required,
|
|
1765
1768
|
role: e.optionsId ? "combobox" : void 0,
|
|
1766
1769
|
onFocus: r,
|
|
1767
|
-
onInput:
|
|
1770
|
+
onInput: w[0] || (w[0] = (g) => p.$emit("update:modelValue", g.target.value))
|
|
1768
1771
|
}, p.$attrs), null, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup", "aria-invalid", "data-error", "disabled", "model-value", "placeholder", "required", "role"]),
|
|
1769
|
-
|
|
1772
|
+
de(S("button", {
|
|
1770
1773
|
"aria-controls": !e.modelValue && e.optionsId ? e.optionsId : void 0,
|
|
1771
1774
|
"aria-expanded": !e.modelValue && e.optionsId ? e.open : void 0,
|
|
1772
1775
|
"data-open": e.modelValue ? void 0 : e.open,
|
|
1773
1776
|
"data-part": "right",
|
|
1774
1777
|
disabled: e.disabled,
|
|
1775
|
-
id: f(
|
|
1778
|
+
id: f(d),
|
|
1776
1779
|
tabindex: e.modelValue ? "0" : "-1",
|
|
1777
1780
|
type: "button",
|
|
1778
|
-
onClick:
|
|
1781
|
+
onClick: s
|
|
1779
1782
|
}, [
|
|
1780
|
-
S("span",
|
|
1781
|
-
|
|
1783
|
+
S("span", _a, A(o.value.text), 1),
|
|
1784
|
+
de(V(f(Ke), {
|
|
1782
1785
|
role: "presentation",
|
|
1783
1786
|
size: "md"
|
|
1784
1787
|
}, null, 512), [
|
|
1785
|
-
[
|
|
1788
|
+
[se, o.value.icon == "caret-down"]
|
|
1786
1789
|
]),
|
|
1787
|
-
|
|
1790
|
+
de(V(f(Ve), {
|
|
1788
1791
|
role: "presentation",
|
|
1789
1792
|
size: "md"
|
|
1790
1793
|
}, null, 512), [
|
|
1791
|
-
[
|
|
1794
|
+
[se, o.value.icon == "close"]
|
|
1792
1795
|
])
|
|
1793
|
-
], 8,
|
|
1794
|
-
[
|
|
1796
|
+
], 8, Ja), [
|
|
1797
|
+
[se, o.value.show]
|
|
1795
1798
|
])
|
|
1796
1799
|
]),
|
|
1797
1800
|
_: 1
|
|
1798
1801
|
}, 8, ["disabled", "error", "id", "onClick"]));
|
|
1799
1802
|
}
|
|
1800
|
-
}),
|
|
1803
|
+
}), tn = ["aria-controls", "aria-expanded", "data-open", "data-size", "disabled"], an = {
|
|
1801
1804
|
__name: "BsFilterButton",
|
|
1802
1805
|
props: {
|
|
1803
1806
|
badgeCount: {
|
|
@@ -1827,7 +1830,7 @@ const za = {
|
|
|
1827
1830
|
},
|
|
1828
1831
|
setup(e) {
|
|
1829
1832
|
const n = e, t = v(() => n.badgeCount > 0);
|
|
1830
|
-
return (a, l) => (
|
|
1833
|
+
return (a, l) => (u(), h("button", {
|
|
1831
1834
|
class: "bs-filter-button",
|
|
1832
1835
|
"aria-controls": e.optionsId,
|
|
1833
1836
|
"aria-expanded": e.open,
|
|
@@ -1837,21 +1840,21 @@ const za = {
|
|
|
1837
1840
|
disabled: e.disabled,
|
|
1838
1841
|
type: "button"
|
|
1839
1842
|
}, [
|
|
1840
|
-
t.value ? (
|
|
1843
|
+
t.value ? (u(), E(ra, {
|
|
1841
1844
|
key: 0,
|
|
1842
1845
|
color: "blue",
|
|
1843
1846
|
count: e.badgeCount,
|
|
1844
1847
|
label: "active filter",
|
|
1845
1848
|
position: "left",
|
|
1846
1849
|
variant: "notext"
|
|
1847
|
-
}, null, 8, ["count"])) :
|
|
1848
|
-
|
|
1850
|
+
}, null, 8, ["count"])) : I("", !0),
|
|
1851
|
+
P(a.$slots, "label", {}, () => [
|
|
1849
1852
|
H(A(e.label), 1)
|
|
1850
1853
|
]),
|
|
1851
1854
|
V(f(Ke))
|
|
1852
|
-
], 8,
|
|
1855
|
+
], 8, tn));
|
|
1853
1856
|
}
|
|
1854
|
-
},
|
|
1857
|
+
}, nn = ["data-value", "data-value-type", "data-variant", "id"], Xe = {
|
|
1855
1858
|
__name: "BsDropdownOption",
|
|
1856
1859
|
props: {
|
|
1857
1860
|
value: {
|
|
@@ -1866,10 +1869,10 @@ const za = {
|
|
|
1866
1869
|
setup(e) {
|
|
1867
1870
|
const n = e, t = y(null), a = ce("optionsId", ""), l = ce("handleOptionSelect", () => {
|
|
1868
1871
|
}), i = v(() => `${a.value}-option-${n.value}`);
|
|
1869
|
-
function
|
|
1872
|
+
function d(o) {
|
|
1870
1873
|
l(t.value), o.stopPropagation();
|
|
1871
1874
|
}
|
|
1872
|
-
return (o,
|
|
1875
|
+
return (o, s) => (u(), h("li", {
|
|
1873
1876
|
ref_key: "optionRef",
|
|
1874
1877
|
ref: t,
|
|
1875
1878
|
"data-component": "bs-dropdown-option",
|
|
@@ -1878,12 +1881,12 @@ const za = {
|
|
|
1878
1881
|
"data-variant": e.variant || void 0,
|
|
1879
1882
|
id: i.value,
|
|
1880
1883
|
role: "option",
|
|
1881
|
-
onClick:
|
|
1884
|
+
onClick: d
|
|
1882
1885
|
}, [
|
|
1883
|
-
|
|
1884
|
-
], 8,
|
|
1886
|
+
P(o.$slots, "default")
|
|
1887
|
+
], 8, nn));
|
|
1885
1888
|
}
|
|
1886
|
-
},
|
|
1889
|
+
}, ln = ["data-img-size", "data-initials", "data-no-img"], on = ["src", "alt"], bt = {
|
|
1887
1890
|
__name: "BsProfileImg",
|
|
1888
1891
|
props: {
|
|
1889
1892
|
src: String,
|
|
@@ -1903,25 +1906,25 @@ const za = {
|
|
|
1903
1906
|
},
|
|
1904
1907
|
setup(e) {
|
|
1905
1908
|
const n = e, t = y(!1), a = y(!!n.src);
|
|
1906
|
-
return
|
|
1909
|
+
return Y(() => t.value = !0), (l, i) => (u(), h("div", {
|
|
1907
1910
|
class: "bs-profile-img",
|
|
1908
1911
|
"data-img-size": e.size,
|
|
1909
1912
|
"data-initials": e.initials,
|
|
1910
1913
|
"data-no-img": !a.value
|
|
1911
1914
|
}, [
|
|
1912
|
-
a.value && t.value ? (
|
|
1915
|
+
a.value && t.value ? (u(), h("img", {
|
|
1913
1916
|
key: 0,
|
|
1914
1917
|
src: e.src,
|
|
1915
1918
|
alt: e.useAltText ? e.profileName : "",
|
|
1916
|
-
onError: i[0] || (i[0] = (
|
|
1917
|
-
}, null, 40,
|
|
1918
|
-
], 8,
|
|
1919
|
+
onError: i[0] || (i[0] = (d) => a.value = !1)
|
|
1920
|
+
}, null, 40, on)) : I("", !0)
|
|
1921
|
+
], 8, ln));
|
|
1919
1922
|
}
|
|
1920
|
-
},
|
|
1923
|
+
}, rn = ["id", "data-checked"], dn = { key: 1 }, sn = ["innerHTML"], un = { key: 4 }, cn = { key: 5 }, fn = {
|
|
1921
1924
|
key: 0,
|
|
1922
1925
|
role: "option",
|
|
1923
1926
|
"data-no-hover": ""
|
|
1924
|
-
},
|
|
1927
|
+
}, Le = {
|
|
1925
1928
|
__name: "BsDropdownOptionBuilder",
|
|
1926
1929
|
props: {
|
|
1927
1930
|
// Array of objects with the following properties (either label or labelHtml
|
|
@@ -1954,72 +1957,72 @@ const za = {
|
|
|
1954
1957
|
},
|
|
1955
1958
|
setup(e) {
|
|
1956
1959
|
const n = e, t = {};
|
|
1957
|
-
|
|
1960
|
+
ct(() => {
|
|
1958
1961
|
a();
|
|
1959
1962
|
}), R(() => n.options, () => {
|
|
1960
1963
|
a();
|
|
1961
1964
|
});
|
|
1962
1965
|
function a() {
|
|
1963
1966
|
n.options.forEach((o) => {
|
|
1964
|
-
const { icon:
|
|
1965
|
-
|
|
1967
|
+
const { icon: s } = o;
|
|
1968
|
+
s && !t[s] && (t[s] = i(s));
|
|
1966
1969
|
});
|
|
1967
1970
|
}
|
|
1968
1971
|
function l(o) {
|
|
1969
|
-
let
|
|
1970
|
-
return r += o.checkbox ? 1 : 0, r += o.icon ? 1 : 0, r += o.profileImg ? 1 : 0, r > 1 && (
|
|
1972
|
+
let s = "", r = 1;
|
|
1973
|
+
return r += o.checkbox ? 1 : 0, r += o.icon ? 1 : 0, r += o.profileImg ? 1 : 0, r > 1 && (s += ` ${r}-col`), o.checkbox && (s += " checkbox"), o.description && (s += " description"), o.negative && (s += " negative"), s;
|
|
1971
1974
|
}
|
|
1972
1975
|
function i(o) {
|
|
1973
1976
|
return He(async () => {
|
|
1974
|
-
const { [`BsIcon${o}`]:
|
|
1975
|
-
return
|
|
1977
|
+
const { [`BsIcon${o}`]: s } = await import("@wwtdev/bsds-icons-vue3");
|
|
1978
|
+
return s;
|
|
1976
1979
|
});
|
|
1977
1980
|
}
|
|
1978
|
-
function
|
|
1979
|
-
return !!o && o !==
|
|
1981
|
+
function d(o, s) {
|
|
1982
|
+
return !!o && o !== s;
|
|
1980
1983
|
}
|
|
1981
|
-
return (o,
|
|
1982
|
-
(
|
|
1984
|
+
return (o, s) => (u(), h(G, null, [
|
|
1985
|
+
(u(!0), h(G, null, _(e.options, (r) => (u(), E(Xe, {
|
|
1983
1986
|
"aria-checked": r.checkbox ? r.checkbox.checked : void 0,
|
|
1984
1987
|
key: r.value,
|
|
1985
1988
|
value: r.value,
|
|
1986
1989
|
variant: l(r)
|
|
1987
1990
|
}, {
|
|
1988
|
-
default:
|
|
1989
|
-
r.checkbox ? (
|
|
1991
|
+
default: O(() => [
|
|
1992
|
+
r.checkbox ? (u(), h("span", {
|
|
1990
1993
|
key: 0,
|
|
1991
1994
|
id: r.checkbox.inputId,
|
|
1992
1995
|
"aria-hidden": "true",
|
|
1993
1996
|
class: "bs-checkbox",
|
|
1994
1997
|
"data-checked": r.checkbox.checked
|
|
1995
|
-
}, null, 8,
|
|
1996
|
-
r.icon ? (
|
|
1997
|
-
(
|
|
1998
|
-
])) :
|
|
1999
|
-
r.profileImg ? (
|
|
1998
|
+
}, null, 8, rn)) : I("", !0),
|
|
1999
|
+
r.icon ? (u(), h("span", dn, [
|
|
2000
|
+
(u(), E(ee(t[r.icon])))
|
|
2001
|
+
])) : I("", !0),
|
|
2002
|
+
r.profileImg ? (u(), E(bt, {
|
|
2000
2003
|
key: 2,
|
|
2001
2004
|
src: r.profileImg.src,
|
|
2002
2005
|
size: "xs",
|
|
2003
2006
|
initials: r.profileImg.initials,
|
|
2004
2007
|
"profile-name": r.profileImg.profileName,
|
|
2005
|
-
"use-alt-text":
|
|
2006
|
-
}, null, 8, ["src", "initials", "profile-name", "use-alt-text"])) :
|
|
2007
|
-
r.labelHtml ? (
|
|
2008
|
+
"use-alt-text": d(r.profileImg.profileName, r.label)
|
|
2009
|
+
}, null, 8, ["src", "initials", "profile-name", "use-alt-text"])) : I("", !0),
|
|
2010
|
+
r.labelHtml ? (u(), h("span", {
|
|
2008
2011
|
key: 3,
|
|
2009
2012
|
innerHTML: r.labelHtml
|
|
2010
|
-
}, null, 8,
|
|
2011
|
-
r.description ? (
|
|
2013
|
+
}, null, 8, sn)) : (u(), h("span", un, A(r.label), 1)),
|
|
2014
|
+
r.description ? (u(), h("span", cn, A(r.description), 1)) : I("", !0)
|
|
2012
2015
|
]),
|
|
2013
2016
|
_: 2
|
|
2014
2017
|
}, 1032, ["aria-checked", "value", "variant"]))), 128)),
|
|
2015
|
-
e.showNoOptions && e.options.length === 0 ? (
|
|
2016
|
-
|
|
2018
|
+
e.showNoOptions && e.options.length === 0 ? (u(), h("li", fn, [
|
|
2019
|
+
P(o.$slots, "no-options", {}, () => [
|
|
2017
2020
|
H("No options")
|
|
2018
2021
|
])
|
|
2019
|
-
])) :
|
|
2022
|
+
])) : I("", !0)
|
|
2020
2023
|
], 64));
|
|
2021
2024
|
}
|
|
2022
|
-
},
|
|
2025
|
+
}, pn = ["id"], vn = {
|
|
2023
2026
|
__name: "BsDropdownWithToggle",
|
|
2024
2027
|
props: {
|
|
2025
2028
|
anchorId: {
|
|
@@ -2093,37 +2096,37 @@ const za = {
|
|
|
2093
2096
|
setup(e, { emit: n }) {
|
|
2094
2097
|
const t = e, a = n;
|
|
2095
2098
|
let l = null;
|
|
2096
|
-
const [i,
|
|
2097
|
-
function
|
|
2099
|
+
const [i, d] = Z(2), o = y(!1), s = () => l || (l = document.getElementById(p.value)), r = v(() => He(async () => await (t.multiselect ? Promise.resolve().then(() => wn) : Promise.resolve().then(() => mn)))), c = v(() => t.optionsId || d.value), p = v(() => t.toggleId || i.value);
|
|
2100
|
+
function w() {
|
|
2098
2101
|
const m = document.activeElement;
|
|
2099
2102
|
return !m || m.tagName === "BODY" || m.id === c.value;
|
|
2100
2103
|
}
|
|
2101
2104
|
function g() {
|
|
2102
2105
|
var m, b;
|
|
2103
|
-
o.value = !1, a("close"),
|
|
2106
|
+
o.value = !1, a("close"), w() && ((b = (m = s()) == null ? void 0 : m.focus) == null || b.call(m));
|
|
2104
2107
|
}
|
|
2105
|
-
function
|
|
2108
|
+
function k() {
|
|
2106
2109
|
o.value && g();
|
|
2107
2110
|
}
|
|
2108
2111
|
function C() {
|
|
2109
2112
|
o.value = !0;
|
|
2110
2113
|
}
|
|
2111
|
-
function
|
|
2114
|
+
function B(m) {
|
|
2112
2115
|
a("update:selectedOptions", m);
|
|
2113
2116
|
}
|
|
2114
2117
|
function T(m) {
|
|
2115
2118
|
t.multiselect || (a("update:selectedOption", m), g());
|
|
2116
2119
|
}
|
|
2117
|
-
return (m, b) => (
|
|
2120
|
+
return (m, b) => (u(), h("div", {
|
|
2118
2121
|
class: "bs-dropdown-with-toggle",
|
|
2119
2122
|
id: m.$attrs.id
|
|
2120
2123
|
}, [
|
|
2121
|
-
|
|
2124
|
+
P(m.$slots, "toggle", {
|
|
2122
2125
|
anchorId: e.anchorId,
|
|
2123
2126
|
optionsId: c.value,
|
|
2124
2127
|
toggleId: p.value
|
|
2125
2128
|
}, () => [
|
|
2126
|
-
V(
|
|
2129
|
+
V(an, {
|
|
2127
2130
|
"aria-controls": c.value,
|
|
2128
2131
|
"aria-expanded": e.open,
|
|
2129
2132
|
disabled: e.disabled,
|
|
@@ -2133,15 +2136,15 @@ const za = {
|
|
|
2133
2136
|
size: e.toggleSize,
|
|
2134
2137
|
onClick: b[0] || (b[0] = (q) => m.$emit("toggled"))
|
|
2135
2138
|
}, {
|
|
2136
|
-
label:
|
|
2137
|
-
|
|
2139
|
+
label: O(() => [
|
|
2140
|
+
P(m.$slots, "toggle-label", {}, () => [
|
|
2138
2141
|
H(A(e.toggleLabel), 1)
|
|
2139
2142
|
])
|
|
2140
2143
|
]),
|
|
2141
2144
|
_: 3
|
|
2142
2145
|
}, 8, ["aria-controls", "aria-expanded", "disabled", "id", "open", "options-id", "size"])
|
|
2143
2146
|
]),
|
|
2144
|
-
V(
|
|
2147
|
+
V(mt, {
|
|
2145
2148
|
"anchor-id": e.anchorId || p.value,
|
|
2146
2149
|
breakout: e.breakout,
|
|
2147
2150
|
"helper-text": e.helperText,
|
|
@@ -2151,10 +2154,10 @@ const za = {
|
|
|
2151
2154
|
shown: e.open,
|
|
2152
2155
|
"use-mobile-style": e.useMobileStyle,
|
|
2153
2156
|
width: e.dropdownWidth,
|
|
2154
|
-
onClose:
|
|
2157
|
+
onClose: k,
|
|
2155
2158
|
onEnter: C
|
|
2156
2159
|
}, {
|
|
2157
|
-
default:
|
|
2160
|
+
default: O(() => [
|
|
2158
2161
|
V(f(r), {
|
|
2159
2162
|
label: e.dropdownLabel,
|
|
2160
2163
|
"model-value": e.selectedOption,
|
|
@@ -2163,11 +2166,11 @@ const za = {
|
|
|
2163
2166
|
"selected-options": e.selectedOptions,
|
|
2164
2167
|
shown: e.open,
|
|
2165
2168
|
"onUpdate:modelValue": T,
|
|
2166
|
-
"onUpdate:selectedOptions":
|
|
2167
|
-
onClose: b[1] || (b[1] = (q) => e.multiselect ? void 0 :
|
|
2169
|
+
"onUpdate:selectedOptions": B,
|
|
2170
|
+
onClose: b[1] || (b[1] = (q) => e.multiselect ? void 0 : k())
|
|
2168
2171
|
}, {
|
|
2169
|
-
default:
|
|
2170
|
-
e.multiselect ?
|
|
2172
|
+
default: O(() => [
|
|
2173
|
+
e.multiselect ? I("", !0) : (u(), E(Le, {
|
|
2171
2174
|
key: 0,
|
|
2172
2175
|
options: e.options
|
|
2173
2176
|
}, null, 8, ["options"]))
|
|
@@ -2177,9 +2180,9 @@ const za = {
|
|
|
2177
2180
|
]),
|
|
2178
2181
|
_: 1
|
|
2179
2182
|
}, 8, ["anchor-id", "breakout", "helper-text", "helper-description", "position", "shown", "use-mobile-style", "width"])
|
|
2180
|
-
], 8,
|
|
2183
|
+
], 8, pn));
|
|
2181
2184
|
}
|
|
2182
|
-
},
|
|
2185
|
+
}, gt = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2183
2186
|
__name: "BsDropdownCombobox",
|
|
2184
2187
|
props: {
|
|
2185
2188
|
disabled: {
|
|
@@ -2238,24 +2241,24 @@ const za = {
|
|
|
2238
2241
|
},
|
|
2239
2242
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
2240
2243
|
setup(e, { emit: n }) {
|
|
2241
|
-
const t = e, a = n, [l, i,
|
|
2242
|
-
function r(
|
|
2243
|
-
a("combobox:change",
|
|
2244
|
+
const t = e, a = n, [l, i, d] = Z(3), o = y(!1), s = v(() => t.inputId || l.value);
|
|
2245
|
+
function r(k) {
|
|
2246
|
+
a("combobox:change", k.target.value), a("update:modelValue", k.target.value);
|
|
2244
2247
|
}
|
|
2245
2248
|
function c() {
|
|
2246
2249
|
a("combobox:change", ""), a("update:modelValue", "");
|
|
2247
2250
|
}
|
|
2248
|
-
function p(
|
|
2249
|
-
var C,
|
|
2250
|
-
(C =
|
|
2251
|
+
function p(k) {
|
|
2252
|
+
var C, B;
|
|
2253
|
+
(C = k.relatedTarget) != null && C.closest(`#${d.value}`) || (B = k.relatedTarget) != null && B.closest(`#${i.value}`) || (o.value = !1);
|
|
2251
2254
|
}
|
|
2252
|
-
function
|
|
2253
|
-
a("combobox:input",
|
|
2255
|
+
function w(k) {
|
|
2256
|
+
a("combobox:input", k.target.value), t.updateOnInput && a("update:modelValue", k.target.value);
|
|
2254
2257
|
}
|
|
2255
|
-
function g(
|
|
2256
|
-
|
|
2258
|
+
function g(k) {
|
|
2259
|
+
k === !0 || k === !1 ? o.value = k : o.value = !o.value;
|
|
2257
2260
|
}
|
|
2258
|
-
return (
|
|
2261
|
+
return (k, C) => (u(), E(vn, {
|
|
2259
2262
|
"anchor-id": f(i),
|
|
2260
2263
|
disabled: e.disabled,
|
|
2261
2264
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -2265,35 +2268,146 @@ const za = {
|
|
|
2265
2268
|
multiselect: !1,
|
|
2266
2269
|
open: o.value,
|
|
2267
2270
|
options: e.options,
|
|
2268
|
-
"options-id": f(
|
|
2271
|
+
"options-id": f(d),
|
|
2269
2272
|
"selected-option": e.modelValue,
|
|
2270
|
-
"toggle-id":
|
|
2271
|
-
onClose: C[0] || (C[0] = (
|
|
2273
|
+
"toggle-id": k.$attrs.id || s.value,
|
|
2274
|
+
onClose: C[0] || (C[0] = (B) => o.value = !1),
|
|
2272
2275
|
onFocusout: p,
|
|
2273
|
-
"onUpdate:selectedOption": C[1] || (C[1] = (
|
|
2276
|
+
"onUpdate:selectedOption": C[1] || (C[1] = (B) => k.$emit("update:modelValue", B))
|
|
2274
2277
|
}, {
|
|
2275
|
-
toggle:
|
|
2276
|
-
V(
|
|
2277
|
-
id:
|
|
2278
|
+
toggle: O(() => [
|
|
2279
|
+
V(en, N({
|
|
2280
|
+
id: k.$attrs.id || s.value,
|
|
2278
2281
|
"container-id": f(i),
|
|
2279
2282
|
disabled: e.disabled,
|
|
2280
2283
|
error: e.error,
|
|
2281
2284
|
"hint-id": e.hintId,
|
|
2282
2285
|
"model-value": e.displayValue || e.modelValue,
|
|
2283
2286
|
open: o.value,
|
|
2284
|
-
"options-id": f(
|
|
2287
|
+
"options-id": f(d),
|
|
2285
2288
|
placeholder: e.placeholder,
|
|
2286
2289
|
required: e.required,
|
|
2287
2290
|
onChange: r,
|
|
2288
2291
|
onClear: c,
|
|
2289
|
-
onInput:
|
|
2292
|
+
onInput: w,
|
|
2290
2293
|
onToggled: g
|
|
2291
|
-
},
|
|
2294
|
+
}, k.$attrs), null, 16, ["id", "container-id", "disabled", "error", "hint-id", "model-value", "open", "options-id", "placeholder", "required"])
|
|
2292
2295
|
]),
|
|
2293
2296
|
_: 1
|
|
2294
2297
|
}, 8, ["anchor-id", "disabled", "dropdown-position", "dropdown-width", "helper-description", "helper-text", "open", "options", "options-id", "selected-option", "toggle-id"]));
|
|
2295
2298
|
}
|
|
2296
|
-
}),
|
|
2299
|
+
}), bo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2300
|
+
__name: "BsDropdownComboboxField",
|
|
2301
|
+
props: {
|
|
2302
|
+
disabled: {
|
|
2303
|
+
type: Boolean,
|
|
2304
|
+
default: !1
|
|
2305
|
+
},
|
|
2306
|
+
displayValue: {
|
|
2307
|
+
type: String,
|
|
2308
|
+
default: ""
|
|
2309
|
+
},
|
|
2310
|
+
dropdownPosition: {
|
|
2311
|
+
type: String,
|
|
2312
|
+
validator: (e) => ["", "top", "center", "right"].includes(e)
|
|
2313
|
+
},
|
|
2314
|
+
dropdownWidth: {
|
|
2315
|
+
type: String,
|
|
2316
|
+
validator: (e) => ["", "sm", "md", "lg", "content", "anchor"].includes(e)
|
|
2317
|
+
},
|
|
2318
|
+
error: {
|
|
2319
|
+
type: Boolean,
|
|
2320
|
+
default: !1
|
|
2321
|
+
},
|
|
2322
|
+
errorMsg: {
|
|
2323
|
+
type: String
|
|
2324
|
+
},
|
|
2325
|
+
helperText: {
|
|
2326
|
+
type: String,
|
|
2327
|
+
default: ""
|
|
2328
|
+
},
|
|
2329
|
+
helperDescription: {
|
|
2330
|
+
type: String,
|
|
2331
|
+
default: ""
|
|
2332
|
+
},
|
|
2333
|
+
hint: {
|
|
2334
|
+
type: String
|
|
2335
|
+
},
|
|
2336
|
+
hintId: {
|
|
2337
|
+
type: String
|
|
2338
|
+
},
|
|
2339
|
+
inputId: {
|
|
2340
|
+
type: String
|
|
2341
|
+
},
|
|
2342
|
+
label: {
|
|
2343
|
+
type: String
|
|
2344
|
+
},
|
|
2345
|
+
modelValue: {
|
|
2346
|
+
type: String,
|
|
2347
|
+
default: ""
|
|
2348
|
+
},
|
|
2349
|
+
options: {
|
|
2350
|
+
type: Array,
|
|
2351
|
+
default: () => []
|
|
2352
|
+
},
|
|
2353
|
+
placeholder: {
|
|
2354
|
+
type: String
|
|
2355
|
+
},
|
|
2356
|
+
required: {
|
|
2357
|
+
type: Boolean,
|
|
2358
|
+
default: !1
|
|
2359
|
+
},
|
|
2360
|
+
updateOnInput: {
|
|
2361
|
+
type: Boolean,
|
|
2362
|
+
default: !1
|
|
2363
|
+
}
|
|
2364
|
+
},
|
|
2365
|
+
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
2366
|
+
setup(e, { emit: n }) {
|
|
2367
|
+
const t = e, [a, l] = Z(2), i = v(() => t.error && t.errorMsg || t.hint || void 0), d = v(() => t.inputId || a.value);
|
|
2368
|
+
return (o, s) => (u(), h("div", N({ "data-component": "bs-dropdown-combobox-field" }, f(K)(o.$attrs, f(fe)).remaining), [
|
|
2369
|
+
e.label || o.$slots.label ? (u(), E(te, {
|
|
2370
|
+
key: 0,
|
|
2371
|
+
for: o.$attrs.id || d.value,
|
|
2372
|
+
disabled: e.disabled,
|
|
2373
|
+
required: e.required
|
|
2374
|
+
}, {
|
|
2375
|
+
default: O(() => [
|
|
2376
|
+
P(o.$slots, "label", {}, () => [
|
|
2377
|
+
H(A(e.label), 1)
|
|
2378
|
+
])
|
|
2379
|
+
]),
|
|
2380
|
+
_: 3
|
|
2381
|
+
}, 8, ["for", "disabled", "required"])) : I("", !0),
|
|
2382
|
+
V(gt, N({
|
|
2383
|
+
disabled: e.disabled,
|
|
2384
|
+
"display-value": e.displayValue,
|
|
2385
|
+
"dropdown-position": e.dropdownPosition,
|
|
2386
|
+
"dropdown-width": e.dropdownWidth,
|
|
2387
|
+
error: e.error,
|
|
2388
|
+
"helper-text": e.helperText,
|
|
2389
|
+
"helper-description": e.helperDescription,
|
|
2390
|
+
"hint-id": f(l),
|
|
2391
|
+
"input-id": o.$attrs.id || d.value,
|
|
2392
|
+
"model-value": e.modelValue,
|
|
2393
|
+
options: e.options,
|
|
2394
|
+
placeholder: e.placeholder,
|
|
2395
|
+
required: e.required,
|
|
2396
|
+
"update-on-input": e.updateOnInput,
|
|
2397
|
+
"onCombobox:change": s[0] || (s[0] = (r) => o.$emit("combobox:change", r)),
|
|
2398
|
+
"onCombobox:input": s[1] || (s[1] = (r) => o.$emit("combobox:input", r)),
|
|
2399
|
+
"onUpdate:modelValue": s[2] || (s[2] = (r) => o.$emit("update:modelValue", r))
|
|
2400
|
+
}, f(K)(o.$attrs, f(fe)).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"]),
|
|
2401
|
+
i.value ? (u(), E(be, {
|
|
2402
|
+
key: 1,
|
|
2403
|
+
error: e.error,
|
|
2404
|
+
"error-msg": e.errorMsg,
|
|
2405
|
+
hint: e.hint || o.hintDeprecated,
|
|
2406
|
+
"hint-id": f(l)
|
|
2407
|
+
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : I("", !0)
|
|
2408
|
+
], 16));
|
|
2409
|
+
}
|
|
2410
|
+
}), hn = ["aria-activedescendant", "aria-label", "data-overflow", "id", "tabindex"], Ze = {
|
|
2297
2411
|
__name: "BsDropdownOptionList",
|
|
2298
2412
|
props: {
|
|
2299
2413
|
optionsId: {
|
|
@@ -2329,13 +2443,13 @@ const za = {
|
|
|
2329
2443
|
"update:modelValue"
|
|
2330
2444
|
],
|
|
2331
2445
|
setup(e, { expose: n, emit: t }) {
|
|
2332
|
-
const a = e, l = t, i = y(null),
|
|
2333
|
-
ue("optionsId", v(() => a.optionsId)), ue("handleOptionSelect",
|
|
2334
|
-
const
|
|
2446
|
+
const a = e, l = t, i = y(null), d = y(null), o = y(-1), s = y(-1), r = y(null), c = y(!1), p = ce("dropdownEnter", y(!1)), w = ce("dropdownAfterEnter", y(!1)), g = ce("dropdownShown", y(!1));
|
|
2447
|
+
ue("optionsId", v(() => a.optionsId)), ue("handleOptionSelect", ge), _t(i, b, { childList: !0 }), we([" ", "Enter", "NumpadEnter"], Ie, i), we(["ArrowDown", "ArrowUp", "Home", "End"], ke);
|
|
2448
|
+
const B = [/^[a-zA-Z0-9]{1}$/], T = {
|
|
2335
2449
|
keys: "",
|
|
2336
2450
|
lastTyped: 0
|
|
2337
2451
|
};
|
|
2338
|
-
|
|
2452
|
+
we(B, (x) => Te(x, T)), Y(() => {
|
|
2339
2453
|
b(), J(g.value);
|
|
2340
2454
|
}), R(
|
|
2341
2455
|
[p, () => {
|
|
@@ -2345,7 +2459,7 @@ const za = {
|
|
|
2345
2459
|
([x, F]) => {
|
|
2346
2460
|
(x || F > 0) && (c.value = i.value.scrollHeight > i.value.clientHeight);
|
|
2347
2461
|
}
|
|
2348
|
-
), R(
|
|
2462
|
+
), R(w, (x) => {
|
|
2349
2463
|
x && (q(), M());
|
|
2350
2464
|
}), R(g, (x) => J(x));
|
|
2351
2465
|
const m = v(() => a.modelValue || a.selectedValue);
|
|
@@ -2355,7 +2469,7 @@ const za = {
|
|
|
2355
2469
|
);
|
|
2356
2470
|
}
|
|
2357
2471
|
function q() {
|
|
2358
|
-
i.value.getBoundingClientRect().bottom > window.innerHeight && i.value.scrollIntoView();
|
|
2472
|
+
i.value.getBoundingClientRect().bottom > window.innerHeight && i.value.scrollIntoView({ block: "nearest" });
|
|
2359
2473
|
}
|
|
2360
2474
|
function M() {
|
|
2361
2475
|
var x;
|
|
@@ -2363,38 +2477,38 @@ const za = {
|
|
|
2363
2477
|
}
|
|
2364
2478
|
function z() {
|
|
2365
2479
|
var x;
|
|
2366
|
-
o.value > -1 && ((x = r.value[o.value]) == null || x.setAttribute("data-active", ""),
|
|
2480
|
+
o.value > -1 && ((x = r.value[o.value]) == null || x.setAttribute("data-active", ""), d.value = r.value[o.value].id, M());
|
|
2367
2481
|
}
|
|
2368
2482
|
function W() {
|
|
2369
2483
|
var x;
|
|
2370
2484
|
o.value > -1 && ((x = r.value[o.value]) == null || x.removeAttribute("data-active"));
|
|
2371
2485
|
}
|
|
2372
|
-
function
|
|
2486
|
+
function ae() {
|
|
2373
2487
|
var x;
|
|
2374
|
-
o.value < 0 && (o.value = 0,
|
|
2488
|
+
o.value < 0 && (o.value = 0, d.value = (x = r.value[0]) == null ? void 0 : x.id), z();
|
|
2375
2489
|
}
|
|
2376
2490
|
function J(x) {
|
|
2377
|
-
x ?
|
|
2491
|
+
x ? ve() : $e();
|
|
2378
2492
|
}
|
|
2379
|
-
function
|
|
2493
|
+
function ve() {
|
|
2380
2494
|
var x, F;
|
|
2381
|
-
a.multiselect || (
|
|
2382
|
-
(
|
|
2383
|
-
), !a.multiselect &&
|
|
2495
|
+
a.multiselect || (s.value = r.value.findIndex(
|
|
2496
|
+
(L) => L.getAttribute("data-value") === String(m.value)
|
|
2497
|
+
), !a.multiselect && s.value > -1 && ((x = r.value[s.value]) == null || x.setAttribute("data-selected", ""), (F = r.value[s.value]) == null || F.setAttribute("aria-selected", "true")), o.value = s.value);
|
|
2384
2498
|
}
|
|
2385
|
-
function
|
|
2499
|
+
function $e() {
|
|
2386
2500
|
r.value.forEach((x) => {
|
|
2387
2501
|
x.removeAttribute("data-selected"), x.setAttribute("aria-selected", "false");
|
|
2388
|
-
}), W(),
|
|
2502
|
+
}), W(), s.value = -1, o.value = -1, d.value = null;
|
|
2389
2503
|
}
|
|
2390
|
-
function
|
|
2391
|
-
var
|
|
2392
|
-
(
|
|
2504
|
+
function ge(x) {
|
|
2505
|
+
var L;
|
|
2506
|
+
(L = x.querySelector("a")) == null || L.click();
|
|
2393
2507
|
let F = x.getAttribute("data-value");
|
|
2394
|
-
x.getAttribute("data-value-type") === "number" && (F = Number(F)),
|
|
2508
|
+
x.getAttribute("data-value-type") === "number" && (F = Number(F)), d.value = x.id, W(), l("optselected", F), l("update:modelValue", F), l("close");
|
|
2395
2509
|
}
|
|
2396
2510
|
function Ie(x) {
|
|
2397
|
-
|
|
2511
|
+
ge(r.value[o.value]), x.preventDefault();
|
|
2398
2512
|
}
|
|
2399
2513
|
function ke(x) {
|
|
2400
2514
|
if (g.value)
|
|
@@ -2429,16 +2543,16 @@ const za = {
|
|
|
2429
2543
|
F = r.value.length - 1;
|
|
2430
2544
|
break;
|
|
2431
2545
|
}
|
|
2432
|
-
|
|
2546
|
+
ye(F);
|
|
2433
2547
|
}
|
|
2434
2548
|
function Te(x, F) {
|
|
2435
2549
|
if (!g.value)
|
|
2436
2550
|
return;
|
|
2437
2551
|
F.keys = x.timeStamp - F.lastTyped > 500 ? x.key : F.keys + x.key, F.lastTyped = x.timeStamp;
|
|
2438
|
-
const
|
|
2439
|
-
|
|
2552
|
+
const L = r.value.findIndex((U) => U.textContent.replaceAll(/[^a-zA-Z0-9]/g, "").toLowerCase().startsWith(F.keys));
|
|
2553
|
+
L > -1 && ye(L, !1);
|
|
2440
2554
|
}
|
|
2441
|
-
function
|
|
2555
|
+
function ye(x, F = !0) {
|
|
2442
2556
|
W(), o.value = x, document.activeElement !== i.value && F ? i.value.focus() : z();
|
|
2443
2557
|
}
|
|
2444
2558
|
return n({
|
|
@@ -2447,10 +2561,10 @@ const za = {
|
|
|
2447
2561
|
optionsRef: i,
|
|
2448
2562
|
refreshOptions: b,
|
|
2449
2563
|
setCurrentActive: z
|
|
2450
|
-
}), (x, F) => (
|
|
2564
|
+
}), (x, F) => (u(), h("ul", {
|
|
2451
2565
|
ref_key: "optionsRef",
|
|
2452
2566
|
ref: i,
|
|
2453
|
-
"aria-activedescendant":
|
|
2567
|
+
"aria-activedescendant": d.value || void 0,
|
|
2454
2568
|
"aria-label": e.label,
|
|
2455
2569
|
class: "bs-dropdown-options",
|
|
2456
2570
|
"data-overflow": c.value,
|
|
@@ -2458,19 +2572,19 @@ const za = {
|
|
|
2458
2572
|
role: "listbox",
|
|
2459
2573
|
tabindex: f(g) ? 0 : void 0,
|
|
2460
2574
|
onBlur: W,
|
|
2461
|
-
onFocus:
|
|
2575
|
+
onFocus: ae,
|
|
2462
2576
|
onMousedown: F[0] || (F[0] = It(() => {
|
|
2463
2577
|
}, ["prevent"]))
|
|
2464
2578
|
}, [
|
|
2465
|
-
|
|
2466
|
-
], 40,
|
|
2579
|
+
P(x.$slots, "default")
|
|
2580
|
+
], 40, hn));
|
|
2467
2581
|
}
|
|
2468
|
-
},
|
|
2582
|
+
}, mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2469
2583
|
__proto__: null,
|
|
2470
2584
|
default: Ze
|
|
2471
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2472
|
-
|
|
2473
|
-
],
|
|
2585
|
+
}, Symbol.toStringTag, { value: "Module" })), bn = { role: "separator" }, gn = /* @__PURE__ */ S("hr", null, null, -1), yn = [
|
|
2586
|
+
gn
|
|
2587
|
+
], Sn = {
|
|
2474
2588
|
__name: "BsDropdownMultiselect",
|
|
2475
2589
|
props: {
|
|
2476
2590
|
label: {
|
|
@@ -2496,7 +2610,7 @@ const za = {
|
|
|
2496
2610
|
},
|
|
2497
2611
|
emits: ["update:selectedOptions"],
|
|
2498
2612
|
setup(e, { emit: n }) {
|
|
2499
|
-
const t = e, a = n, l = y(null), i = y([]),
|
|
2613
|
+
const t = e, a = n, l = y(null), i = y([]), d = y([]);
|
|
2500
2614
|
let o = !1;
|
|
2501
2615
|
R(() => t.options, () => {
|
|
2502
2616
|
c(t.selectedOptions);
|
|
@@ -2505,36 +2619,36 @@ const za = {
|
|
|
2505
2619
|
c,
|
|
2506
2620
|
{ immediate: !0 }
|
|
2507
2621
|
), R(() => t.shown, (g) => {
|
|
2508
|
-
g && xe(
|
|
2622
|
+
g && xe(s);
|
|
2509
2623
|
});
|
|
2510
|
-
function
|
|
2624
|
+
function s() {
|
|
2511
2625
|
l.value && (l.value.refreshOptions(), l.value.optionsRef.focus());
|
|
2512
2626
|
}
|
|
2513
2627
|
function r() {
|
|
2514
2628
|
l.value && (l.value.refreshOptions(), l.value.setCurrentActive());
|
|
2515
2629
|
}
|
|
2516
2630
|
function c(g = []) {
|
|
2517
|
-
const
|
|
2631
|
+
const k = new Set(g), C = [], B = [];
|
|
2518
2632
|
t.options.forEach((T) => {
|
|
2519
2633
|
const m = { ...T }, b = `${t.optionsId}-${T.value}-cb`;
|
|
2520
|
-
|
|
2634
|
+
k.has(T.value) ? (m.checkbox = { inputId: b, checked: !0 }, C.push(m)) : (m.checkbox = { inputId: b, checked: !1 }, B.push(m));
|
|
2521
2635
|
}), i.value = C, xe(() => {
|
|
2522
|
-
|
|
2636
|
+
d.value = B, xe(() => {
|
|
2523
2637
|
o && r(), o = !1;
|
|
2524
2638
|
});
|
|
2525
2639
|
});
|
|
2526
2640
|
}
|
|
2527
2641
|
function p(g = []) {
|
|
2528
|
-
const
|
|
2529
|
-
return t.options.forEach((
|
|
2530
|
-
|
|
2642
|
+
const k = new Set(g), C = [];
|
|
2643
|
+
return t.options.forEach((B) => {
|
|
2644
|
+
k.has(B.value) && C.push(B.value);
|
|
2531
2645
|
}), C;
|
|
2532
2646
|
}
|
|
2533
|
-
function
|
|
2534
|
-
const
|
|
2535
|
-
o = !0, a("update:selectedOptions",
|
|
2647
|
+
function w(g) {
|
|
2648
|
+
const k = t.selectedOptions.includes(g) ? t.selectedOptions.filter((C) => C !== g) : p([...t.selectedOptions, g]);
|
|
2649
|
+
o = !0, a("update:selectedOptions", k);
|
|
2536
2650
|
}
|
|
2537
|
-
return (g,
|
|
2651
|
+
return (g, k) => (u(), E(Ze, {
|
|
2538
2652
|
ref_key: "optlist",
|
|
2539
2653
|
ref: l,
|
|
2540
2654
|
"aria-multiselectable": "true",
|
|
@@ -2543,20 +2657,20 @@ const za = {
|
|
|
2543
2657
|
multiselect: "",
|
|
2544
2658
|
"options-id": e.optionsId,
|
|
2545
2659
|
shown: e.shown,
|
|
2546
|
-
"onUpdate:modelValue":
|
|
2660
|
+
"onUpdate:modelValue": w
|
|
2547
2661
|
}, {
|
|
2548
|
-
default:
|
|
2662
|
+
default: O(() => {
|
|
2549
2663
|
var C;
|
|
2550
2664
|
return [
|
|
2551
|
-
V(
|
|
2665
|
+
V(Le, {
|
|
2552
2666
|
options: i.value,
|
|
2553
2667
|
"show-no-options": !1
|
|
2554
2668
|
}, null, 8, ["options"]),
|
|
2555
|
-
|
|
2556
|
-
[
|
|
2669
|
+
de(S("li", bn, yn, 512), [
|
|
2670
|
+
[se, (C = i.value) == null ? void 0 : C.length]
|
|
2557
2671
|
]),
|
|
2558
|
-
V(
|
|
2559
|
-
options:
|
|
2672
|
+
V(Le, {
|
|
2673
|
+
options: d.value,
|
|
2560
2674
|
"show-no-options": !1
|
|
2561
2675
|
}, null, 8, ["options"])
|
|
2562
2676
|
];
|
|
@@ -2564,10 +2678,10 @@ const za = {
|
|
|
2564
2678
|
_: 1
|
|
2565
2679
|
}, 8, ["label", "options-id", "shown"]));
|
|
2566
2680
|
}
|
|
2567
|
-
},
|
|
2681
|
+
}, wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2568
2682
|
__proto__: null,
|
|
2569
|
-
default:
|
|
2570
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2683
|
+
default: Sn
|
|
2684
|
+
}, Symbol.toStringTag, { value: "Module" })), Bn = {
|
|
2571
2685
|
__name: "BsDropdownWithOptionsNew",
|
|
2572
2686
|
props: {
|
|
2573
2687
|
// DROPDOWN PROPS
|
|
@@ -2649,10 +2763,10 @@ const za = {
|
|
|
2649
2763
|
function i(o) {
|
|
2650
2764
|
a.value = !1, t("update:modelValue", o), t("close");
|
|
2651
2765
|
}
|
|
2652
|
-
function
|
|
2766
|
+
function d() {
|
|
2653
2767
|
a.value && (a.value = !1, t("close"));
|
|
2654
2768
|
}
|
|
2655
|
-
return (o,
|
|
2769
|
+
return (o, s) => (u(), E(f(mt), {
|
|
2656
2770
|
"anchor-id": e.anchorId,
|
|
2657
2771
|
breakout: e.breakout,
|
|
2658
2772
|
"container-id": e.containerId,
|
|
@@ -2663,12 +2777,12 @@ const za = {
|
|
|
2663
2777
|
shown: e.shown,
|
|
2664
2778
|
"use-mobile-style": e.useMobileStyle,
|
|
2665
2779
|
width: e.width,
|
|
2666
|
-
onClose:
|
|
2667
|
-
onAfterEnter:
|
|
2780
|
+
onClose: d,
|
|
2781
|
+
onAfterEnter: s[0] || (s[0] = (r) => t("after-enter")),
|
|
2668
2782
|
onEnter: l,
|
|
2669
|
-
onAfterLeave:
|
|
2783
|
+
onAfterLeave: s[1] || (s[1] = (r) => t("after-leave"))
|
|
2670
2784
|
}, {
|
|
2671
|
-
default:
|
|
2785
|
+
default: O(() => [
|
|
2672
2786
|
V(f(Ze), {
|
|
2673
2787
|
label: e.label,
|
|
2674
2788
|
"model-value": e.modelValue,
|
|
@@ -2676,10 +2790,10 @@ const za = {
|
|
|
2676
2790
|
"prevent-tab": e.preventTab,
|
|
2677
2791
|
"type-to-focus": e.typeToFocus,
|
|
2678
2792
|
"onUpdate:modelValue": i,
|
|
2679
|
-
onClose:
|
|
2793
|
+
onClose: d
|
|
2680
2794
|
}, {
|
|
2681
|
-
default:
|
|
2682
|
-
|
|
2795
|
+
default: O(() => [
|
|
2796
|
+
P(o.$slots, "default")
|
|
2683
2797
|
]),
|
|
2684
2798
|
_: 3
|
|
2685
2799
|
}, 8, ["label", "model-value", "options-id", "prevent-tab", "type-to-focus"])
|
|
@@ -2801,37 +2915,37 @@ const za = {
|
|
|
2801
2915
|
"after-leave"
|
|
2802
2916
|
],
|
|
2803
2917
|
setup(e, { emit: n }) {
|
|
2804
|
-
const t = e, a = n, { transition: l } = Ee(t), i = v(() => t.width === "toggle" ? "anchor" : t.width),
|
|
2918
|
+
const t = e, a = n, { transition: l } = Ee(t), i = v(() => t.width === "toggle" ? "anchor" : t.width), d = v(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = v(() => t.toggleId ? t.toggleId : t.anchorId), s = v(() => t.selectedValue || t.modelValue);
|
|
2805
2919
|
function r(c) {
|
|
2806
2920
|
a("optselected", c), a("update:modelValue", c);
|
|
2807
2921
|
}
|
|
2808
|
-
return (c, p) => (
|
|
2922
|
+
return (c, p) => (u(), E(Bn, {
|
|
2809
2923
|
"anchor-id": o.value,
|
|
2810
2924
|
breakout: e.breakout,
|
|
2811
2925
|
"container-id": e.containerId,
|
|
2812
2926
|
"helper-description": e.helperDescription,
|
|
2813
2927
|
"helper-text": e.helperText,
|
|
2814
2928
|
label: e.label,
|
|
2815
|
-
"model-value":
|
|
2929
|
+
"model-value": s.value,
|
|
2816
2930
|
"options-id": e.optionsId,
|
|
2817
|
-
position:
|
|
2931
|
+
position: d.value,
|
|
2818
2932
|
preloaded: e.preloaded,
|
|
2819
2933
|
"prevent-tab": e.preventTab,
|
|
2820
2934
|
shown: f(l),
|
|
2821
2935
|
"use-mobile-style": e.useMobileStyle,
|
|
2822
2936
|
width: i.value,
|
|
2823
|
-
onClose: p[0] || (p[0] = (
|
|
2824
|
-
onAfterEnter: p[1] || (p[1] = (
|
|
2825
|
-
onAfterLeave: p[2] || (p[2] = (
|
|
2937
|
+
onClose: p[0] || (p[0] = (w) => a("close")),
|
|
2938
|
+
onAfterEnter: p[1] || (p[1] = (w) => a("after-enter")),
|
|
2939
|
+
onAfterLeave: p[2] || (p[2] = (w) => a("after-leave")),
|
|
2826
2940
|
"onUpdate:modelValue": r
|
|
2827
2941
|
}, {
|
|
2828
|
-
default:
|
|
2829
|
-
|
|
2942
|
+
default: O(() => [
|
|
2943
|
+
P(c.$slots, "default")
|
|
2830
2944
|
]),
|
|
2831
2945
|
_: 3
|
|
2832
2946
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "label", "model-value", "options-id", "position", "preloaded", "prevent-tab", "shown", "use-mobile-style", "width"]));
|
|
2833
2947
|
}
|
|
2834
|
-
},
|
|
2948
|
+
}, $n = ["view-box"], In = ["id"], kn = ["offset", "stop-color"], go = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2835
2949
|
__name: "BsIconGradientWrapper",
|
|
2836
2950
|
setup(e) {
|
|
2837
2951
|
const n = y(null), t = y(null), a = [
|
|
@@ -2839,18 +2953,18 @@ const za = {
|
|
|
2839
2953
|
{ offset: 0.5466, color: "#1C0087" },
|
|
2840
2954
|
{ offset: 0.9715, color: "#0086EA" }
|
|
2841
2955
|
], [l] = Z();
|
|
2842
|
-
return
|
|
2956
|
+
return Y(() => {
|
|
2843
2957
|
t.value = n.value.querySelector("svg").getAttribute("viewBox") || "0 0 0 0";
|
|
2844
|
-
}), (i,
|
|
2958
|
+
}), (i, d) => (u(), h(G, null, [
|
|
2845
2959
|
S("span", N({
|
|
2846
2960
|
ref_key: "svgWrapperRef",
|
|
2847
2961
|
ref: n,
|
|
2848
2962
|
class: "bs-icon-gradient-wrapper",
|
|
2849
2963
|
style: `fill: url(#${f(l)});`
|
|
2850
2964
|
}, i.$attrs), [
|
|
2851
|
-
|
|
2965
|
+
P(i.$slots, "default")
|
|
2852
2966
|
], 16),
|
|
2853
|
-
(
|
|
2967
|
+
(u(), h("svg", {
|
|
2854
2968
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2855
2969
|
"view-box": t.value,
|
|
2856
2970
|
width: "0",
|
|
@@ -2864,16 +2978,16 @@ const za = {
|
|
|
2864
2978
|
y2: "100%",
|
|
2865
2979
|
"gradient-units": "userSpaceOnUse"
|
|
2866
2980
|
}, [
|
|
2867
|
-
(
|
|
2981
|
+
(u(), h(G, null, _(a, (o) => S("stop", {
|
|
2868
2982
|
key: o.offset,
|
|
2869
2983
|
offset: o.offset,
|
|
2870
2984
|
"stop-color": o.color
|
|
2871
|
-
}, null, 8,
|
|
2872
|
-
], 8,
|
|
2873
|
-
], 8,
|
|
2985
|
+
}, null, 8, kn)), 64))
|
|
2986
|
+
], 8, In)
|
|
2987
|
+
], 8, $n))
|
|
2874
2988
|
], 64));
|
|
2875
2989
|
}
|
|
2876
|
-
}),
|
|
2990
|
+
}), yo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2877
2991
|
__name: "BsInputField",
|
|
2878
2992
|
props: {
|
|
2879
2993
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -2920,46 +3034,46 @@ const za = {
|
|
|
2920
3034
|
},
|
|
2921
3035
|
emits: ["update:modelValue"],
|
|
2922
3036
|
setup(e, { emit: n }) {
|
|
2923
|
-
const t = e, [a, l] = Z(2), i = v(() =>
|
|
3037
|
+
const t = e, [a, l] = Z(2), i = v(() => fe.concat(t.passAttrs.split(",")).concat("type")), d = v(() => {
|
|
2924
3038
|
var r, c;
|
|
2925
3039
|
return ((c = (r = t.hints) == null ? void 0 : r.join) == null ? void 0 : c.call(r, `
|
|
2926
3040
|
`)) || t.hints;
|
|
2927
|
-
}), o = v(() => t.error && t.errorMsg || t.hint ||
|
|
2928
|
-
return (r, c) => (
|
|
2929
|
-
e.label || r.$slots.label ? (
|
|
3041
|
+
}), o = v(() => t.error && t.errorMsg || t.hint || d.value || void 0), s = v(() => t.inputId || a.value);
|
|
3042
|
+
return (r, c) => (u(), h("div", N({ "data-component": "bs-input-field" }, f(K)(r.$attrs, i.value).remaining), [
|
|
3043
|
+
e.label || r.$slots.label ? (u(), E(te, {
|
|
2930
3044
|
key: 0,
|
|
2931
|
-
for: r.$attrs.id ||
|
|
3045
|
+
for: r.$attrs.id || s.value,
|
|
2932
3046
|
disabled: e.disabled,
|
|
2933
3047
|
required: e.required
|
|
2934
3048
|
}, {
|
|
2935
|
-
default:
|
|
2936
|
-
|
|
3049
|
+
default: O(() => [
|
|
3050
|
+
P(r.$slots, "label", {}, () => [
|
|
2937
3051
|
H(A(e.label), 1)
|
|
2938
3052
|
])
|
|
2939
3053
|
]),
|
|
2940
3054
|
_: 3
|
|
2941
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
2942
|
-
V(
|
|
3055
|
+
}, 8, ["for", "disabled", "required"])) : I("", !0),
|
|
3056
|
+
V(Be, N({
|
|
2943
3057
|
disabled: e.disabled,
|
|
2944
3058
|
error: e.error,
|
|
2945
3059
|
"hint-id": f(l),
|
|
2946
|
-
id: r.$attrs.id ||
|
|
3060
|
+
id: r.$attrs.id || s.value,
|
|
2947
3061
|
placeholder: e.placeholder,
|
|
2948
3062
|
required: e.required,
|
|
2949
3063
|
type: e.type,
|
|
2950
3064
|
value: e.value || e.modelValue,
|
|
2951
3065
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => r.$emit("update:modelValue", p))
|
|
2952
3066
|
}, f(K)(r.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
|
|
2953
|
-
o.value ? (
|
|
3067
|
+
o.value ? (u(), E(be, {
|
|
2954
3068
|
key: 1,
|
|
2955
3069
|
error: e.error,
|
|
2956
3070
|
"error-msg": e.errorMsg,
|
|
2957
|
-
hint: e.hint ||
|
|
3071
|
+
hint: e.hint || d.value,
|
|
2958
3072
|
"hint-id": f(l)
|
|
2959
|
-
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) :
|
|
3073
|
+
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : I("", !0)
|
|
2960
3074
|
], 16));
|
|
2961
3075
|
}
|
|
2962
|
-
}),
|
|
3076
|
+
}), rt = {
|
|
2963
3077
|
A: "🇦",
|
|
2964
3078
|
B: "🇧",
|
|
2965
3079
|
C: "🇨",
|
|
@@ -3013,7 +3127,7 @@ const za = {
|
|
|
3013
3127
|
*/
|
|
3014
3128
|
initSourceData() {
|
|
3015
3129
|
return this.data.allCountries || (this.data.allCountries = Yt().map((e) => {
|
|
3016
|
-
const n = Xt(e), t =
|
|
3130
|
+
const n = Xt(e), t = rt[n[0]] + rt[n[1]] || "";
|
|
3017
3131
|
return {
|
|
3018
3132
|
label: `+${e}`,
|
|
3019
3133
|
flag: t,
|
|
@@ -3027,10 +3141,10 @@ const za = {
|
|
|
3027
3141
|
this.data[e][t[n]] = t;
|
|
3028
3142
|
}));
|
|
3029
3143
|
}
|
|
3030
|
-
},
|
|
3144
|
+
}, Tn = ["id", "aria-controls", "aria-expanded", "aria-label", "disabled"], Cn = { key: 0 }, xn = {
|
|
3031
3145
|
"aria-hidden": "true",
|
|
3032
3146
|
style: { width: "1.25rem" }
|
|
3033
|
-
},
|
|
3147
|
+
}, An = { "aria-hidden": "true" }, So = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3034
3148
|
__name: "BsInputPhone",
|
|
3035
3149
|
props: {
|
|
3036
3150
|
deferValidation: {
|
|
@@ -3092,85 +3206,86 @@ const za = {
|
|
|
3092
3206
|
"Escape",
|
|
3093
3207
|
"Home",
|
|
3094
3208
|
"Tab"
|
|
3095
|
-
],
|
|
3209
|
+
], d = y(null), o = y(1), s = y([]), r = y(null), [
|
|
3096
3210
|
c,
|
|
3097
3211
|
p,
|
|
3098
|
-
|
|
3212
|
+
w,
|
|
3099
3213
|
g
|
|
3100
|
-
] = Z(4),
|
|
3214
|
+
] = Z(4), k = y(!1), C = y(""), B = y(""), T = y(!1), m = y(!1), b = y(!0);
|
|
3101
3215
|
n({
|
|
3102
3216
|
validationErr: T,
|
|
3103
|
-
validationErrMsg:
|
|
3217
|
+
validationErrMsg: B
|
|
3104
3218
|
});
|
|
3105
|
-
const q = v(() => C.value ? `+${o.value}${C.value}` : ""), M = v(() => `Country code: ${o.value}. Click to change.`), z = v(() => b.value ? a.errorMsg ||
|
|
3106
|
-
R(q, (
|
|
3107
|
-
l("update:modelValue",
|
|
3108
|
-
}), R(() => a.modelValue,
|
|
3109
|
-
function
|
|
3110
|
-
|
|
3111
|
-
}
|
|
3112
|
-
function
|
|
3113
|
-
var
|
|
3114
|
-
m.value && (m.value = !1, (
|
|
3115
|
-
}
|
|
3116
|
-
function
|
|
3219
|
+
const q = v(() => C.value ? `+${o.value}${C.value}` : ""), M = v(() => `Country code: ${o.value}. Click to change.`), z = v(() => b.value ? a.errorMsg || B.value : ""), W = v(() => a.error || T.value), ae = v(() => a.hint || W.value && z.value), J = v(() => b.value && W.value);
|
|
3220
|
+
R(q, (L) => {
|
|
3221
|
+
l("update:modelValue", L), F(L);
|
|
3222
|
+
}), R(() => a.modelValue, ve), Te(), Y(() => k.value = !0);
|
|
3223
|
+
function ve(L, U) {
|
|
3224
|
+
L === "" && L !== U && (C.value = "");
|
|
3225
|
+
}
|
|
3226
|
+
function $e() {
|
|
3227
|
+
var L;
|
|
3228
|
+
m.value && (m.value = !1, (L = d.value) == null || L.focus());
|
|
3229
|
+
}
|
|
3230
|
+
function ge(L) {
|
|
3117
3231
|
var U;
|
|
3118
|
-
o.value =
|
|
3232
|
+
o.value = L, m.value = !1, (U = d.value) == null || U.focus(), x(L);
|
|
3119
3233
|
}
|
|
3120
3234
|
function Ie() {
|
|
3121
3235
|
a.deferValidation && (b.value = !0), l("input-blur");
|
|
3122
3236
|
}
|
|
3123
|
-
function ke(
|
|
3124
|
-
C.value =
|
|
3237
|
+
function ke(L) {
|
|
3238
|
+
C.value = L.target.value, a.deferValidation && (b.value = !1);
|
|
3125
3239
|
}
|
|
3126
|
-
function ie(
|
|
3127
|
-
var U,
|
|
3128
|
-
!((
|
|
3240
|
+
function ie(L) {
|
|
3241
|
+
var U, X;
|
|
3242
|
+
!((X = (U = L.key) == null ? void 0 : U.match) != null && X.call(U, /[0-9]/)) && !i.includes(L.key) && !L.ctrlKey && !L.metaKey && L.preventDefault();
|
|
3129
3243
|
}
|
|
3130
3244
|
function Te() {
|
|
3131
|
-
ze.initSourceData(),
|
|
3245
|
+
ze.initSourceData(), ye(), x(o.value), F(q.value);
|
|
3132
3246
|
}
|
|
3133
|
-
function
|
|
3134
|
-
var U,
|
|
3135
|
-
let
|
|
3136
|
-
|
|
3247
|
+
function ye() {
|
|
3248
|
+
var U, X;
|
|
3249
|
+
let L = at(a.modelValue);
|
|
3250
|
+
L.valid || L.countryCode && ((X = (U = a.modelValue) == null ? void 0 : U.startsWith) != null && X.call(U, "+")) ? (o.value = L.countryCode, C.value = L.number.significant) : C.value = a.modelValue, s.value = ze.data.allCountries.map((Ce) => ({
|
|
3137
3251
|
...Ce,
|
|
3138
3252
|
isSelected: o.value === Ce
|
|
3139
3253
|
}));
|
|
3140
3254
|
}
|
|
3141
|
-
function x(
|
|
3142
|
-
r.value = ze.getCountryByCountryCode(
|
|
3255
|
+
function x(L) {
|
|
3256
|
+
r.value = ze.getCountryByCountryCode(L);
|
|
3143
3257
|
}
|
|
3144
|
-
function F(
|
|
3145
|
-
T.value =
|
|
3258
|
+
function F(L) {
|
|
3259
|
+
T.value = L ? !at(L).valid : !1, B.value = T.value ? "Invalid phone number" : "";
|
|
3146
3260
|
}
|
|
3147
|
-
return (
|
|
3261
|
+
return (L, U) => (u(), h("div", N({
|
|
3148
3262
|
class: "bs-input-phone",
|
|
3149
3263
|
"data-component": "bs-input-phone"
|
|
3150
|
-
}, f(K)(
|
|
3151
|
-
V(
|
|
3152
|
-
for:
|
|
3264
|
+
}, f(K)(L.$attrs, f(fe)).remaining), [
|
|
3265
|
+
V(te, {
|
|
3266
|
+
for: L.$attrs.id || e.inputId || f(g),
|
|
3153
3267
|
required: e.required,
|
|
3268
|
+
disabled: e.disabled,
|
|
3154
3269
|
class: oe({ "visually-hidden": e.hideLabel })
|
|
3155
3270
|
}, {
|
|
3156
|
-
default:
|
|
3271
|
+
default: O(() => [
|
|
3157
3272
|
H(A(e.label), 1)
|
|
3158
3273
|
]),
|
|
3159
3274
|
_: 1
|
|
3160
|
-
}, 8, ["for", "required", "class"]),
|
|
3275
|
+
}, 8, ["for", "required", "disabled", "class"]),
|
|
3161
3276
|
V(Pe, {
|
|
3162
3277
|
disabled: e.disabled,
|
|
3163
3278
|
error: J.value,
|
|
3164
3279
|
multifocus: !0,
|
|
3165
3280
|
variant: "inner-bordered"
|
|
3166
3281
|
}, {
|
|
3167
|
-
default:
|
|
3168
|
-
var
|
|
3282
|
+
default: O(() => {
|
|
3283
|
+
var X;
|
|
3169
3284
|
return [
|
|
3170
3285
|
S("button", {
|
|
3171
3286
|
id: f(c),
|
|
3172
3287
|
ref_key: "countryCodesToggle",
|
|
3173
|
-
ref:
|
|
3288
|
+
ref: d,
|
|
3174
3289
|
"aria-controls": f(p),
|
|
3175
3290
|
"aria-expanded": m.value,
|
|
3176
3291
|
"aria-haspopup": "listbox",
|
|
@@ -3179,19 +3294,19 @@ const za = {
|
|
|
3179
3294
|
type: "button",
|
|
3180
3295
|
onClick: U[0] || (U[0] = (Ce) => m.value = !m.value)
|
|
3181
3296
|
}, [
|
|
3182
|
-
S("span", null, A((
|
|
3297
|
+
S("span", null, A((X = r.value) == null ? void 0 : X.flag), 1),
|
|
3183
3298
|
S("span", null, "+" + A(o.value), 1),
|
|
3184
3299
|
V(f(Ct), { size: "sm" })
|
|
3185
|
-
], 8,
|
|
3186
|
-
V(
|
|
3187
|
-
"input-id":
|
|
3300
|
+
], 8, Tn),
|
|
3301
|
+
V(Be, N({
|
|
3302
|
+
"input-id": L.$attrs.id || e.inputId || f(g),
|
|
3188
3303
|
disabled: e.disabled,
|
|
3189
|
-
"hint-id": f(
|
|
3304
|
+
"hint-id": f(w),
|
|
3190
3305
|
placeholder: e.placeholder,
|
|
3191
3306
|
value: C.value,
|
|
3192
3307
|
"data-autowidth": "",
|
|
3193
3308
|
type: "tel"
|
|
3194
|
-
}, f(K)(
|
|
3309
|
+
}, f(K)(L.$attrs, f(fe)).filtered, {
|
|
3195
3310
|
onInput: ke,
|
|
3196
3311
|
onFocusout: Ie,
|
|
3197
3312
|
onKeydown: ie
|
|
@@ -3200,15 +3315,15 @@ const za = {
|
|
|
3200
3315
|
}),
|
|
3201
3316
|
_: 1
|
|
3202
3317
|
}, 8, ["disabled", "error"]),
|
|
3203
|
-
|
|
3318
|
+
de(V(be, {
|
|
3204
3319
|
error: W.value,
|
|
3205
3320
|
"error-msg": z.value,
|
|
3206
3321
|
hint: e.hint,
|
|
3207
|
-
"hint-id": f(
|
|
3322
|
+
"hint-id": f(w)
|
|
3208
3323
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
3209
|
-
[
|
|
3324
|
+
[se, ae.value]
|
|
3210
3325
|
]),
|
|
3211
|
-
|
|
3326
|
+
k.value ? (u(), h("div", Cn, [
|
|
3212
3327
|
V(Qe, {
|
|
3213
3328
|
"anchor-id": f(c),
|
|
3214
3329
|
"helper-text": "Country Code",
|
|
@@ -3218,29 +3333,29 @@ const za = {
|
|
|
3218
3333
|
preloaded: "",
|
|
3219
3334
|
shown: m.value,
|
|
3220
3335
|
width: "content",
|
|
3221
|
-
onClose:
|
|
3222
|
-
"onUpdate:modelValue":
|
|
3336
|
+
onClose: $e,
|
|
3337
|
+
"onUpdate:modelValue": ge
|
|
3223
3338
|
}, {
|
|
3224
|
-
default:
|
|
3225
|
-
|
|
3226
|
-
"aria-label":
|
|
3227
|
-
key:
|
|
3228
|
-
value: `${
|
|
3339
|
+
default: O(() => [
|
|
3340
|
+
k.value ? (u(!0), h(G, { key: 0 }, _(s.value, (X) => (u(), E(Xe, {
|
|
3341
|
+
"aria-label": X.value,
|
|
3342
|
+
key: X.value,
|
|
3343
|
+
value: `${X.value}`,
|
|
3229
3344
|
variant: "2-col"
|
|
3230
3345
|
}, {
|
|
3231
|
-
default:
|
|
3232
|
-
S("span",
|
|
3233
|
-
S("span",
|
|
3346
|
+
default: O(() => [
|
|
3347
|
+
S("span", xn, A(X == null ? void 0 : X.flag), 1),
|
|
3348
|
+
S("span", An, A(X.label), 1)
|
|
3234
3349
|
]),
|
|
3235
3350
|
_: 2
|
|
3236
|
-
}, 1032, ["aria-label", "value"]))), 128)) :
|
|
3351
|
+
}, 1032, ["aria-label", "value"]))), 128)) : I("", !0)
|
|
3237
3352
|
]),
|
|
3238
3353
|
_: 1
|
|
3239
3354
|
}, 8, ["anchor-id", "model-value", "options-id", "shown"])
|
|
3240
|
-
])) :
|
|
3355
|
+
])) : I("", !0)
|
|
3241
3356
|
], 16));
|
|
3242
3357
|
}
|
|
3243
|
-
}),
|
|
3358
|
+
}), Vn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3244
3359
|
__name: "BsInputSearch",
|
|
3245
3360
|
props: {
|
|
3246
3361
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -3285,44 +3400,44 @@ const za = {
|
|
|
3285
3400
|
},
|
|
3286
3401
|
emits: ["clear", "update:modelValue"],
|
|
3287
3402
|
setup(e, { emit: n }) {
|
|
3288
|
-
const t = e, a = v(() =>
|
|
3289
|
-
return (i,
|
|
3403
|
+
const t = e, a = v(() => fe.concat(t.passAttrs.split(","))), l = v(() => !t.disabled && !t.hideClear && t.variant !== "filter");
|
|
3404
|
+
return (i, d) => (u(), E(Pe, N({
|
|
3290
3405
|
class: "bs-input-search",
|
|
3291
3406
|
"data-component": "bs-input-search",
|
|
3292
3407
|
"data-variant": e.variant,
|
|
3293
3408
|
disabled: e.disabled
|
|
3294
3409
|
}, f(K)(i.$attrs, a.value).remaining), {
|
|
3295
|
-
default:
|
|
3296
|
-
e.hideSearchIcon ?
|
|
3297
|
-
V(
|
|
3410
|
+
default: O(() => [
|
|
3411
|
+
e.hideSearchIcon ? I("", !0) : (u(), E(f(xt), { key: 0 })),
|
|
3412
|
+
V(Be, N({
|
|
3298
3413
|
"data-autowidth": "",
|
|
3299
3414
|
disabled: e.disabled,
|
|
3300
3415
|
"input-id": i.$attrs.id || e.inputId,
|
|
3301
3416
|
placeholder: e.placeholder,
|
|
3302
3417
|
value: e.value || e.modelValue
|
|
3303
3418
|
}, f(K)(i.$attrs, a.value).filtered, {
|
|
3304
|
-
"onUpdate:modelValue":
|
|
3419
|
+
"onUpdate:modelValue": d[0] || (d[0] = (o) => i.$emit("update:modelValue", o))
|
|
3305
3420
|
}), null, 16, ["disabled", "input-id", "placeholder", "value"]),
|
|
3306
|
-
|
|
3421
|
+
de(S("button", {
|
|
3307
3422
|
title: "Clear",
|
|
3308
3423
|
type: "button",
|
|
3309
|
-
onClick:
|
|
3424
|
+
onClick: d[1] || (d[1] = (o) => i.$emit("clear"))
|
|
3310
3425
|
}, [
|
|
3311
3426
|
V(f(Ve), { size: "sm" })
|
|
3312
3427
|
], 512), [
|
|
3313
|
-
[
|
|
3428
|
+
[se, l.value]
|
|
3314
3429
|
])
|
|
3315
3430
|
]),
|
|
3316
3431
|
_: 1
|
|
3317
3432
|
}, 16, ["data-variant", "disabled"]));
|
|
3318
3433
|
}
|
|
3319
|
-
}),
|
|
3434
|
+
}), En = ["data-size", "data-variant"], Pn = /* @__PURE__ */ S("span", null, null, -1), On = /* @__PURE__ */ S("span", null, null, -1), Ln = /* @__PURE__ */ S("span", null, null, -1), qn = /* @__PURE__ */ S("span", null, null, -1), Dn = /* @__PURE__ */ S("span", { class: "visually-hidden" }, "Loading", -1), Mn = [
|
|
3435
|
+
Pn,
|
|
3436
|
+
On,
|
|
3437
|
+
Ln,
|
|
3320
3438
|
qn,
|
|
3321
|
-
Dn
|
|
3322
|
-
|
|
3323
|
-
Nn,
|
|
3324
|
-
zn
|
|
3325
|
-
], Fn = {
|
|
3439
|
+
Dn
|
|
3440
|
+
], Nn = {
|
|
3326
3441
|
__name: "BsLoader",
|
|
3327
3442
|
props: {
|
|
3328
3443
|
size: {
|
|
@@ -3336,14 +3451,14 @@ const za = {
|
|
|
3336
3451
|
}
|
|
3337
3452
|
},
|
|
3338
3453
|
setup(e) {
|
|
3339
|
-
return (n, t) => (
|
|
3454
|
+
return (n, t) => (u(), h("span", {
|
|
3340
3455
|
class: "bs-loader",
|
|
3341
3456
|
"data-size": e.size,
|
|
3342
3457
|
"data-variant": e.variant,
|
|
3343
3458
|
role: "status"
|
|
3344
|
-
},
|
|
3459
|
+
}, Mn, 8, En));
|
|
3345
3460
|
}
|
|
3346
|
-
},
|
|
3461
|
+
}, zn = ["id"], wo = {
|
|
3347
3462
|
__name: "BsInputTypeahead",
|
|
3348
3463
|
props: {
|
|
3349
3464
|
characterThreshold: {
|
|
@@ -3400,6 +3515,10 @@ const za = {
|
|
|
3400
3515
|
type: Boolean,
|
|
3401
3516
|
default: !1
|
|
3402
3517
|
},
|
|
3518
|
+
showDropdownOnFocus: {
|
|
3519
|
+
type: Boolean,
|
|
3520
|
+
default: !1
|
|
3521
|
+
},
|
|
3403
3522
|
typeaheadId: {
|
|
3404
3523
|
type: String,
|
|
3405
3524
|
default: void 0
|
|
@@ -3407,59 +3526,63 @@ const za = {
|
|
|
3407
3526
|
},
|
|
3408
3527
|
emits: ["update:inputValue", "update:optionsValue"],
|
|
3409
3528
|
setup(e, { emit: n }) {
|
|
3410
|
-
const t = e, a = n, l = y(!1), i = y(!1), [
|
|
3529
|
+
const t = e, a = n, l = y(!1), i = y(!1), [d] = Z();
|
|
3411
3530
|
let o = [];
|
|
3412
3531
|
R(() => t.inputValue, () => {
|
|
3413
3532
|
i.value ? i.value = !1 : C();
|
|
3414
3533
|
});
|
|
3415
|
-
const
|
|
3534
|
+
const s = v(() => t.typeaheadId || d.value), r = v(() => `${s.value}-input-container`), c = v(() => `${s.value}-input`), p = v(() => `${s.value}-options`), w = v(() => {
|
|
3416
3535
|
if (l.value) {
|
|
3417
3536
|
let m = t.options;
|
|
3418
3537
|
const b = t.inputValue.toLowerCase(), q = t.filterType === "includes" ? "includes" : "startsWith";
|
|
3419
|
-
return m = g(m, b, q), m = m.slice(0, t.maxOptions), m =
|
|
3538
|
+
return t.inputValue.length >= t.characterThreshold && (m = g(m, b, q), m = m.slice(0, t.maxOptions), m = k(m, b, q), o = m), m;
|
|
3420
3539
|
} else
|
|
3421
3540
|
return o;
|
|
3422
3541
|
});
|
|
3423
3542
|
function g(m, b, q) {
|
|
3424
3543
|
return t.internalFiltering ? m.filter((M) => M.label.toLowerCase()[q](b)) : m;
|
|
3425
3544
|
}
|
|
3426
|
-
function
|
|
3545
|
+
function k(m, b, q) {
|
|
3427
3546
|
return m.map((M) => {
|
|
3428
3547
|
let z = M.label;
|
|
3429
3548
|
if (b !== "") {
|
|
3430
|
-
const W = q === "includes" ? "gi" : "i",
|
|
3431
|
-
z = M.label.replace(
|
|
3549
|
+
const W = q === "includes" ? "gi" : "i", ae = new RegExp(`(${b})`, W);
|
|
3550
|
+
z = M.label.replace(ae, '<span style="color: var(--bs-blue-base)">$1</span>');
|
|
3432
3551
|
}
|
|
3433
3552
|
return { ...M, labelHtml: z };
|
|
3434
3553
|
});
|
|
3435
3554
|
}
|
|
3436
3555
|
function C() {
|
|
3437
|
-
t.inputValue.length >= t.characterThreshold ? l.value = !0 : l.value = !1;
|
|
3556
|
+
t.showDropdownOnFocus || t.inputValue.length >= t.characterThreshold ? l.value = !0 : l.value = !1;
|
|
3438
3557
|
}
|
|
3439
|
-
function
|
|
3558
|
+
function B() {
|
|
3440
3559
|
a("update:inputValue", ""), a("update:optionsValue", ""), document.getElementById(c.value).focus();
|
|
3441
3560
|
}
|
|
3442
3561
|
function T(m) {
|
|
3443
3562
|
i.value = !0, l.value = !1;
|
|
3444
|
-
const b =
|
|
3563
|
+
const b = w.value.find((q) => q.value === m);
|
|
3445
3564
|
a("update:inputValue", b.label), a("update:optionsValue", m);
|
|
3446
3565
|
}
|
|
3447
|
-
return (m, b) => (
|
|
3448
|
-
e.label || m.$slots.label ? (
|
|
3566
|
+
return (m, b) => (u(), h(G, null, [
|
|
3567
|
+
e.label || m.$slots.label ? (u(), E(te, {
|
|
3449
3568
|
key: 0,
|
|
3450
3569
|
for: c.value,
|
|
3451
3570
|
disabled: e.disabled,
|
|
3452
3571
|
required: e.required
|
|
3453
3572
|
}, {
|
|
3454
|
-
default:
|
|
3455
|
-
|
|
3573
|
+
default: O(() => [
|
|
3574
|
+
P(m.$slots, "label", {}, () => [
|
|
3456
3575
|
H(A(e.label), 1)
|
|
3457
3576
|
])
|
|
3458
3577
|
]),
|
|
3459
3578
|
_: 3
|
|
3460
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
3461
|
-
S("div", {
|
|
3462
|
-
|
|
3579
|
+
}, 8, ["for", "disabled", "required"])) : I("", !0),
|
|
3580
|
+
S("div", {
|
|
3581
|
+
id: r.value,
|
|
3582
|
+
class: "typeahead-search-wrapper"
|
|
3583
|
+
}, [
|
|
3584
|
+
V(Vn, N({
|
|
3585
|
+
id: r.value,
|
|
3463
3586
|
"aria-controls": p.value,
|
|
3464
3587
|
"aria-expanded": l.value,
|
|
3465
3588
|
"aria-haspopup": "listbox",
|
|
@@ -3473,11 +3596,11 @@ const za = {
|
|
|
3473
3596
|
role: "combobox",
|
|
3474
3597
|
value: e.inputValue
|
|
3475
3598
|
}, m.$attrs, {
|
|
3476
|
-
onClear:
|
|
3599
|
+
onClear: B,
|
|
3477
3600
|
onFocusin: C,
|
|
3478
3601
|
"onUpdate:modelValue": b[0] || (b[0] = (q) => a("update:inputValue", q))
|
|
3479
|
-
}), null, 16, ["aria-controls", "aria-expanded", "disabled", "hide-clear", "hide-search-icon", "input-id", "placeholder", "value"])
|
|
3480
|
-
], 8,
|
|
3602
|
+
}), null, 16, ["id", "aria-controls", "aria-expanded", "disabled", "hide-clear", "hide-search-icon", "input-id", "placeholder", "value"])
|
|
3603
|
+
], 8, zn),
|
|
3481
3604
|
V(Qe, {
|
|
3482
3605
|
"anchor-id": r.value,
|
|
3483
3606
|
"model-value": e.optionsValue,
|
|
@@ -3490,17 +3613,17 @@ const za = {
|
|
|
3490
3613
|
onClose: b[1] || (b[1] = (q) => l.value = !1),
|
|
3491
3614
|
"onUpdate:modelValue": T
|
|
3492
3615
|
}, {
|
|
3493
|
-
default:
|
|
3494
|
-
V(
|
|
3616
|
+
default: O(() => [
|
|
3617
|
+
V(Le, { options: w.value }, ft({ _: 2 }, [
|
|
3495
3618
|
e.loading ? {
|
|
3496
3619
|
name: "no-options",
|
|
3497
|
-
fn:
|
|
3498
|
-
V(
|
|
3620
|
+
fn: O(() => [
|
|
3621
|
+
V(Nn, { size: "xs" })
|
|
3499
3622
|
]),
|
|
3500
3623
|
key: "0"
|
|
3501
3624
|
} : {
|
|
3502
3625
|
name: "no-options",
|
|
3503
|
-
fn:
|
|
3626
|
+
fn: O(() => [
|
|
3504
3627
|
H("No results found")
|
|
3505
3628
|
]),
|
|
3506
3629
|
key: "1"
|
|
@@ -3511,7 +3634,7 @@ const za = {
|
|
|
3511
3634
|
}, 8, ["anchor-id", "model-value", "options-id", "shown"])
|
|
3512
3635
|
], 64));
|
|
3513
3636
|
}
|
|
3514
|
-
},
|
|
3637
|
+
}, Rn = /* @__PURE__ */ S("div", { class: "bs-overlay" }, null, -1), Fn = {
|
|
3515
3638
|
__name: "BsOverlay",
|
|
3516
3639
|
props: {
|
|
3517
3640
|
shown: {
|
|
@@ -3543,21 +3666,21 @@ const za = {
|
|
|
3543
3666
|
const t = e, a = n, { transition: l } = Ee(t);
|
|
3544
3667
|
return R(l, (i) => {
|
|
3545
3668
|
i ? document.body.setAttribute("data-scroll", "false") : document.body.removeAttribute("data-scroll");
|
|
3546
|
-
}), (i,
|
|
3669
|
+
}), (i, d) => (u(), E(f(Me), {
|
|
3547
3670
|
shown: f(l),
|
|
3548
3671
|
preloaded: e.preloaded,
|
|
3549
3672
|
duration: 75,
|
|
3550
3673
|
"enter-attribute": "data-shown",
|
|
3551
|
-
onAfterEnter:
|
|
3552
|
-
onAfterLeave:
|
|
3674
|
+
onAfterEnter: d[0] || (d[0] = (o) => a("after-enter")),
|
|
3675
|
+
onAfterLeave: d[1] || (d[1] = (o) => a("after-leave"))
|
|
3553
3676
|
}, {
|
|
3554
|
-
default:
|
|
3555
|
-
|
|
3677
|
+
default: O(() => [
|
|
3678
|
+
Rn
|
|
3556
3679
|
]),
|
|
3557
3680
|
_: 1
|
|
3558
3681
|
}, 8, ["shown", "preloaded"]));
|
|
3559
3682
|
}
|
|
3560
|
-
},
|
|
3683
|
+
}, jn = ["id", "role", "aria-labelledby"], Wn = ["id"], Bo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3561
3684
|
__name: "BsModal",
|
|
3562
3685
|
props: {
|
|
3563
3686
|
modalId: {
|
|
@@ -3603,20 +3726,20 @@ const za = {
|
|
|
3603
3726
|
emits: ["close", "after-enter", "after-leave"],
|
|
3604
3727
|
setup(e, { emit: n }) {
|
|
3605
3728
|
const t = e, a = n, { transition: l } = Ee(t), [i] = Z();
|
|
3606
|
-
let
|
|
3607
|
-
const o = y(null),
|
|
3729
|
+
let d = !1;
|
|
3730
|
+
const o = y(null), s = (p) => {
|
|
3608
3731
|
o.value && p.target.closest(".bs-overlay") && a("close", t.modalId);
|
|
3609
3732
|
};
|
|
3610
|
-
|
|
3611
|
-
document.addEventListener("click",
|
|
3612
|
-
}),
|
|
3613
|
-
document.removeEventListener("click",
|
|
3614
|
-
}),
|
|
3615
|
-
|
|
3733
|
+
Y(() => {
|
|
3734
|
+
document.addEventListener("click", s);
|
|
3735
|
+
}), me(() => {
|
|
3736
|
+
document.removeEventListener("click", s);
|
|
3737
|
+
}), we(["Escape"], () => {
|
|
3738
|
+
d && a("close", t.modalId);
|
|
3616
3739
|
});
|
|
3617
3740
|
const r = () => !t.title && t.closeButton, c = () => t.title && t.closeButton;
|
|
3618
|
-
return (p,
|
|
3619
|
-
V(
|
|
3741
|
+
return (p, w) => (u(), h(G, null, [
|
|
3742
|
+
V(Fn, {
|
|
3620
3743
|
shown: f(l),
|
|
3621
3744
|
preloaded: e.preloaded,
|
|
3622
3745
|
"enter-controlled": e.enterControlled,
|
|
@@ -3628,11 +3751,11 @@ const za = {
|
|
|
3628
3751
|
preloaded: e.preloaded,
|
|
3629
3752
|
duration: 75,
|
|
3630
3753
|
"enter-attribute": "data-shown",
|
|
3631
|
-
onEnter:
|
|
3632
|
-
onAfterEnter:
|
|
3633
|
-
onAfterLeave:
|
|
3754
|
+
onEnter: w[1] || (w[1] = (g) => kt(d) ? d.value = !0 : d = !0),
|
|
3755
|
+
onAfterEnter: w[2] || (w[2] = (g) => a("after-enter")),
|
|
3756
|
+
onAfterLeave: w[3] || (w[3] = (g) => a("after-leave"))
|
|
3634
3757
|
}, {
|
|
3635
|
-
default:
|
|
3758
|
+
default: O(() => [
|
|
3636
3759
|
S("div", N({
|
|
3637
3760
|
id: e.modalId,
|
|
3638
3761
|
class: "bs-modal",
|
|
@@ -3643,45 +3766,45 @@ const za = {
|
|
|
3643
3766
|
ref_key: "modalRef",
|
|
3644
3767
|
ref: o
|
|
3645
3768
|
}), [
|
|
3646
|
-
e.title || e.closeButton ? (
|
|
3769
|
+
e.title || e.closeButton ? (u(), h("header", {
|
|
3647
3770
|
key: 0,
|
|
3648
3771
|
class: oe({
|
|
3649
3772
|
"only-close-button-modal-header": r,
|
|
3650
3773
|
"modal-header": c
|
|
3651
3774
|
})
|
|
3652
3775
|
}, [
|
|
3653
|
-
e.title ? (
|
|
3776
|
+
e.title ? (u(), h("span", {
|
|
3654
3777
|
key: 0,
|
|
3655
3778
|
id: f(i),
|
|
3656
3779
|
class: "modal-title"
|
|
3657
|
-
}, A(e.title), 9,
|
|
3658
|
-
e.closeButton ? (
|
|
3780
|
+
}, A(e.title), 9, Wn)) : I("", !0),
|
|
3781
|
+
e.closeButton ? (u(), h("button", {
|
|
3659
3782
|
key: 1,
|
|
3660
3783
|
type: "button",
|
|
3661
3784
|
title: "Close Modal",
|
|
3662
3785
|
"aria-label": "Close Modal",
|
|
3663
|
-
onClick:
|
|
3786
|
+
onClick: w[0] || (w[0] = (g) => a("close", e.modalId))
|
|
3664
3787
|
}, [
|
|
3665
3788
|
V(f(Ve), { class: "close-button" })
|
|
3666
|
-
])) :
|
|
3667
|
-
], 2)) :
|
|
3668
|
-
|
|
3669
|
-
], 16,
|
|
3789
|
+
])) : I("", !0)
|
|
3790
|
+
], 2)) : I("", !0),
|
|
3791
|
+
P(p.$slots, "default")
|
|
3792
|
+
], 16, jn)
|
|
3670
3793
|
]),
|
|
3671
3794
|
_: 3
|
|
3672
3795
|
}, 8, ["shown", "preloaded"])
|
|
3673
3796
|
], 64));
|
|
3674
3797
|
}
|
|
3675
|
-
}),
|
|
3798
|
+
}), Un = ["data-variant", "data-fixed"], Gn = {
|
|
3676
3799
|
key: 0,
|
|
3677
3800
|
class: "bs-pagination-carets"
|
|
3678
|
-
},
|
|
3801
|
+
}, Hn = ["aria-label", "title", "disabled"], Kn = { key: 0 }, Yn = ["aria-label", "title", "disabled"], Xn = { key: 0 }, Zn = {
|
|
3679
3802
|
key: 1,
|
|
3680
3803
|
class: "bs-pagination-page-numbers"
|
|
3681
|
-
},
|
|
3804
|
+
}, Qn = ["title", "data-selected", "onClick"], Jn = { key: 2 }, _n = { key: 3 }, el = /* @__PURE__ */ S("span", null, "Results Per Page:", -1), tl = { class: "bs-pagination-results-numbers" }, al = ["data-selected", "disabled", "onClick"], nl = {
|
|
3682
3805
|
key: 5,
|
|
3683
3806
|
class: "bs-pagination-carets"
|
|
3684
|
-
},
|
|
3807
|
+
}, ll = ["aria-label", "title", "disabled"], ol = { key: 0 }, il = ["aria-label", "title", "disabled"], rl = { key: 0 }, $o = {
|
|
3685
3808
|
__name: "BsPagination",
|
|
3686
3809
|
props: {
|
|
3687
3810
|
// Used for all
|
|
@@ -3768,24 +3891,24 @@ const za = {
|
|
|
3768
3891
|
emits: ["selchange", "update:modelValue"],
|
|
3769
3892
|
setup(e, { emit: n }) {
|
|
3770
3893
|
const t = e, a = n, l = y(null);
|
|
3771
|
-
|
|
3894
|
+
Y(() => {
|
|
3772
3895
|
i.value ? l.value = i.value : t.variant === "results" ? l.value = C.value[0] : l.value = 1;
|
|
3773
3896
|
});
|
|
3774
3897
|
const i = v(() => t.modelValue || t.selection);
|
|
3775
|
-
R(() => t.selection, (
|
|
3776
|
-
l.value =
|
|
3777
|
-
}), R(() => t.modelValue, (
|
|
3778
|
-
l.value =
|
|
3779
|
-
}), R(l, (
|
|
3780
|
-
T !== null && (a("selchange",
|
|
3898
|
+
R(() => t.selection, (B) => {
|
|
3899
|
+
l.value = B;
|
|
3900
|
+
}), R(() => t.modelValue, (B) => {
|
|
3901
|
+
l.value = B;
|
|
3902
|
+
}), R(l, (B, T) => {
|
|
3903
|
+
T !== null && (a("selchange", B), a("update:modelValue", B));
|
|
3781
3904
|
});
|
|
3782
|
-
const
|
|
3905
|
+
const d = v(() => {
|
|
3783
3906
|
if (t.variant === "group")
|
|
3784
3907
|
return Math.ceil(t.itemsCount / t.itemsPerGroup);
|
|
3785
3908
|
if (t.variant === "base")
|
|
3786
3909
|
return t.pageCount;
|
|
3787
3910
|
}), o = v(() => t.variant === "base" ? t.centerDisplay === "text" ? "group" : void 0 : t.variant);
|
|
3788
|
-
function
|
|
3911
|
+
function s() {
|
|
3789
3912
|
l.value = 1;
|
|
3790
3913
|
}
|
|
3791
3914
|
function r() {
|
|
@@ -3794,43 +3917,43 @@ const za = {
|
|
|
3794
3917
|
function c() {
|
|
3795
3918
|
l.value = Math.min(
|
|
3796
3919
|
l.value + 1,
|
|
3797
|
-
|
|
3920
|
+
d.value
|
|
3798
3921
|
);
|
|
3799
3922
|
}
|
|
3800
3923
|
function p() {
|
|
3801
|
-
l.value =
|
|
3924
|
+
l.value = d.value;
|
|
3802
3925
|
}
|
|
3803
|
-
const
|
|
3926
|
+
const w = v(() => {
|
|
3804
3927
|
if (t.pageCount <= t.pageRange)
|
|
3805
3928
|
return [...Array(t.pageCount + 1).keys()].slice(1);
|
|
3806
|
-
const
|
|
3929
|
+
const B = [1], T = (t.pageRange - 1) / 2;
|
|
3807
3930
|
let m = l.value - T, b = l.value + T;
|
|
3808
|
-
m < 1 && (b += 1 - m, m = 1), b > t.pageCount && (m -= b - t.pageCount, b = t.pageCount), m = Math.max(m, 2), b = Math.min(b, t.pageCount - 1), m > 2 &&
|
|
3931
|
+
m < 1 && (b += 1 - m, m = 1), b > t.pageCount && (m -= b - t.pageCount, b = t.pageCount), m = Math.max(m, 2), b = Math.min(b, t.pageCount - 1), m > 2 && B.push(t.breakText);
|
|
3809
3932
|
for (let q = m; q <= b; q++)
|
|
3810
|
-
|
|
3811
|
-
return b < t.pageCount - 1 &&
|
|
3812
|
-
}), g = v(() => `${t.centerLabel ?? "Page"} ${l.value} of ${
|
|
3813
|
-
const
|
|
3814
|
-
return `${t.centerLabel ?? "Results"} ${
|
|
3815
|
-
}), C = v(() => t.resultsIncrements.split(",").map((
|
|
3816
|
-
return (
|
|
3933
|
+
B.push(q);
|
|
3934
|
+
return b < t.pageCount - 1 && B.push(t.breakText), B.push(t.pageCount), B;
|
|
3935
|
+
}), g = v(() => `${t.centerLabel ?? "Page"} ${l.value} of ${d.value}`), k = v(() => {
|
|
3936
|
+
const B = (l.value - 1) * t.itemsPerGroup + 1, T = Math.min(B - 1 + t.itemsPerGroup, t.itemsCount);
|
|
3937
|
+
return `${t.centerLabel ?? "Results"} ${B} - ${T} of ${t.itemsCount}`;
|
|
3938
|
+
}), C = v(() => t.resultsIncrements.split(",").map((B) => parseInt(B)));
|
|
3939
|
+
return (B, T) => (u(), h("div", {
|
|
3817
3940
|
class: "bs-pagination",
|
|
3818
3941
|
"data-variant": o.value,
|
|
3819
3942
|
"data-fixed": t.fixed
|
|
3820
3943
|
}, [
|
|
3821
|
-
e.variant === "base" || e.variant === "group" ? (
|
|
3822
|
-
e.showFirstLastButtons ? (
|
|
3944
|
+
e.variant === "base" || e.variant === "group" ? (u(), h("div", Gn, [
|
|
3945
|
+
e.showFirstLastButtons ? (u(), h("button", {
|
|
3823
3946
|
key: 0,
|
|
3824
3947
|
type: "button",
|
|
3825
3948
|
class: oe(e.firstPageText ? "bs-pagination-word-caret" : void 0),
|
|
3826
3949
|
"aria-label": e.firstPageText ? void 0 : "First Page",
|
|
3827
3950
|
title: e.firstPageText,
|
|
3828
3951
|
disabled: l.value === 1,
|
|
3829
|
-
onClick:
|
|
3952
|
+
onClick: s
|
|
3830
3953
|
}, [
|
|
3831
3954
|
V(f(At)),
|
|
3832
|
-
e.firstPageText ? (
|
|
3833
|
-
], 10,
|
|
3955
|
+
e.firstPageText ? (u(), h("span", Kn, A(e.firstPageText), 1)) : I("", !0)
|
|
3956
|
+
], 10, Hn)) : I("", !0),
|
|
3834
3957
|
S("button", {
|
|
3835
3958
|
type: "button",
|
|
3836
3959
|
class: oe(e.prevPageText ? "bs-pagination-word-caret" : void 0),
|
|
@@ -3840,60 +3963,60 @@ const za = {
|
|
|
3840
3963
|
onClick: r
|
|
3841
3964
|
}, [
|
|
3842
3965
|
V(f(Vt)),
|
|
3843
|
-
e.prevPageText ? (
|
|
3844
|
-
], 10,
|
|
3845
|
-
])) :
|
|
3846
|
-
e.variant === "base" && e.centerDisplay === "numbers" ? (
|
|
3847
|
-
(
|
|
3966
|
+
e.prevPageText ? (u(), h("span", Xn, A(e.prevPageText), 1)) : I("", !0)
|
|
3967
|
+
], 10, Yn)
|
|
3968
|
+
])) : I("", !0),
|
|
3969
|
+
e.variant === "base" && e.centerDisplay === "numbers" ? (u(), h("div", Zn, [
|
|
3970
|
+
(u(!0), h(G, null, _(w.value, (m) => (u(), h("button", {
|
|
3848
3971
|
key: `page-${m}-button`,
|
|
3849
3972
|
type: "button",
|
|
3850
3973
|
title: `Page ${m}`,
|
|
3851
3974
|
"data-selected": m === l.value,
|
|
3852
3975
|
onClick: (b) => l.value = m
|
|
3853
|
-
}, A(m), 9,
|
|
3854
|
-
])) :
|
|
3855
|
-
t.variant === "base" && t.centerDisplay === "text" ? (
|
|
3856
|
-
t.variant === "group" ? (
|
|
3857
|
-
t.variant === "results" ? (
|
|
3858
|
-
|
|
3859
|
-
S("div",
|
|
3860
|
-
(
|
|
3976
|
+
}, A(m), 9, Qn))), 128))
|
|
3977
|
+
])) : I("", !0),
|
|
3978
|
+
t.variant === "base" && t.centerDisplay === "text" ? (u(), h("span", Jn, A(g.value), 1)) : I("", !0),
|
|
3979
|
+
t.variant === "group" ? (u(), h("span", _n, A(k.value), 1)) : I("", !0),
|
|
3980
|
+
t.variant === "results" ? (u(), h(G, { key: 4 }, [
|
|
3981
|
+
el,
|
|
3982
|
+
S("div", tl, [
|
|
3983
|
+
(u(!0), h(G, null, _(C.value, (m) => (u(), h("button", {
|
|
3861
3984
|
type: "button",
|
|
3862
3985
|
key: `results-${m}`,
|
|
3863
3986
|
"data-selected": m === l.value,
|
|
3864
3987
|
disabled: l.value === m,
|
|
3865
3988
|
onClick: (b) => l.value = m
|
|
3866
|
-
}, A(m), 9,
|
|
3989
|
+
}, A(m), 9, al))), 128))
|
|
3867
3990
|
])
|
|
3868
|
-
], 64)) :
|
|
3869
|
-
e.variant === "base" || e.variant === "group" ? (
|
|
3991
|
+
], 64)) : I("", !0),
|
|
3992
|
+
e.variant === "base" || e.variant === "group" ? (u(), h("div", nl, [
|
|
3870
3993
|
S("button", {
|
|
3871
3994
|
type: "button",
|
|
3872
3995
|
class: oe(e.nextPageText ? "bs-pagination-word-caret" : void 0),
|
|
3873
3996
|
"aria-label": e.nextPageText ? void 0 : "Next Page",
|
|
3874
3997
|
title: e.nextPageText,
|
|
3875
|
-
disabled: l.value ===
|
|
3998
|
+
disabled: l.value === d.value,
|
|
3876
3999
|
onClick: c
|
|
3877
4000
|
}, [
|
|
3878
|
-
e.nextPageText ? (
|
|
4001
|
+
e.nextPageText ? (u(), h("span", ol, A(e.nextPageText), 1)) : I("", !0),
|
|
3879
4002
|
V(f(Et))
|
|
3880
|
-
], 10,
|
|
3881
|
-
e.showFirstLastButtons ? (
|
|
4003
|
+
], 10, ll),
|
|
4004
|
+
e.showFirstLastButtons ? (u(), h("button", {
|
|
3882
4005
|
key: 0,
|
|
3883
4006
|
type: "button",
|
|
3884
4007
|
class: oe(e.lastPageText ? "bs-pagination-word-caret" : void 0),
|
|
3885
4008
|
"aria-label": e.lastPageText ? void 0 : "Last Page",
|
|
3886
4009
|
title: e.lastPageText,
|
|
3887
|
-
disabled: l.value ===
|
|
4010
|
+
disabled: l.value === d.value,
|
|
3888
4011
|
onClick: p
|
|
3889
4012
|
}, [
|
|
3890
|
-
e.lastPageText ? (
|
|
4013
|
+
e.lastPageText ? (u(), h("span", rl, A(e.lastPageText), 1)) : I("", !0),
|
|
3891
4014
|
V(f(Pt))
|
|
3892
|
-
], 10,
|
|
3893
|
-
])) :
|
|
3894
|
-
], 8,
|
|
4015
|
+
], 10, il)) : I("", !0)
|
|
4016
|
+
])) : I("", !0)
|
|
4017
|
+
], 8, Un));
|
|
3895
4018
|
}
|
|
3896
|
-
},
|
|
4019
|
+
}, dl = ["data-truncate"], Io = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3897
4020
|
__name: "BsPill",
|
|
3898
4021
|
props: {
|
|
3899
4022
|
active: { type: Boolean, default: !1 },
|
|
@@ -3917,35 +4040,35 @@ const za = {
|
|
|
3917
4040
|
}
|
|
3918
4041
|
},
|
|
3919
4042
|
setup(e) {
|
|
3920
|
-
const n = e, { onLinkClick: t } = De(n), a =
|
|
3921
|
-
return (o,
|
|
4043
|
+
const n = e, { onLinkClick: t } = De(n), a = pe(), { rootTag: l, attrsToBind: i, hrefUrl: d } = qe(n, a, "span");
|
|
4044
|
+
return (o, s) => (u(), E(ee(f(l)), N({
|
|
3922
4045
|
class: "bs-pill",
|
|
3923
4046
|
"data-active": e.active,
|
|
3924
4047
|
"data-component": "bs-pill",
|
|
3925
4048
|
"data-status": e.status || void 0,
|
|
3926
4049
|
"data-variant": e.variant || void 0,
|
|
3927
4050
|
disabled: e.disabled,
|
|
3928
|
-
".href": f(
|
|
4051
|
+
".href": f(d)
|
|
3929
4052
|
}, f(i), { onClick: f(t) }), {
|
|
3930
|
-
default:
|
|
4053
|
+
default: O(() => [
|
|
3931
4054
|
S("span", { "data-truncate": e.truncate }, [
|
|
3932
|
-
|
|
3933
|
-
], 8,
|
|
4055
|
+
P(o.$slots, "default")
|
|
4056
|
+
], 8, dl)
|
|
3934
4057
|
]),
|
|
3935
4058
|
_: 3
|
|
3936
4059
|
}, 48, ["data-active", "data-status", "data-variant", "disabled", ".href", "onClick"]));
|
|
3937
4060
|
}
|
|
3938
|
-
}),
|
|
4061
|
+
}), sl = { class: "bs-profile-details" }, ul = {
|
|
3939
4062
|
class: "bs-profile-name",
|
|
3940
4063
|
"data-size": "sm",
|
|
3941
4064
|
"data-weight": "bold"
|
|
3942
|
-
},
|
|
4065
|
+
}, cl = {
|
|
3943
4066
|
key: 1,
|
|
3944
4067
|
"data-weight": "bold"
|
|
3945
|
-
},
|
|
4068
|
+
}, fl = { key: 2 }, pl = { key: 3 }, vl = {
|
|
3946
4069
|
key: 4,
|
|
3947
4070
|
"data-icon": "true"
|
|
3948
|
-
},
|
|
4071
|
+
}, hl = {
|
|
3949
4072
|
__name: "BsProfileDetails",
|
|
3950
4073
|
props: {
|
|
3951
4074
|
profileName: {
|
|
@@ -3962,40 +4085,40 @@ const za = {
|
|
|
3962
4085
|
},
|
|
3963
4086
|
emits: ["action-toggled"],
|
|
3964
4087
|
setup(e, { emit: n }) {
|
|
3965
|
-
const t = e, a = n, { icon: l } =
|
|
3966
|
-
function
|
|
4088
|
+
const t = e, a = n, { icon: l } = Oe(t, "actionIcon"), { icon: i } = Oe(t, "miscMetaIcon");
|
|
4089
|
+
function d(o) {
|
|
3967
4090
|
o.target.tagName === "BUTTON" && (o.preventDefault(), o.stopImmediatePropagation(), a("action-toggled"));
|
|
3968
4091
|
}
|
|
3969
|
-
return (o,
|
|
3970
|
-
e.action || o.$slots.action ? (
|
|
4092
|
+
return (o, s) => (u(), h("div", sl, [
|
|
4093
|
+
e.action || o.$slots.action ? (u(), h("button", {
|
|
3971
4094
|
key: 0,
|
|
3972
4095
|
"data-icon": "true",
|
|
3973
|
-
onClick:
|
|
4096
|
+
onClick: d
|
|
3974
4097
|
}, [
|
|
3975
|
-
|
|
3976
|
-
e.actionIcon ? (
|
|
4098
|
+
P(o.$slots, "action", {}, () => [
|
|
4099
|
+
e.actionIcon ? (u(), E(ee(f(l) ? f(l) : "span"), {
|
|
3977
4100
|
key: 0,
|
|
3978
4101
|
class: "bs-icon"
|
|
3979
|
-
})) :
|
|
4102
|
+
})) : I("", !0),
|
|
3980
4103
|
H(" " + A(e.action), 1)
|
|
3981
4104
|
])
|
|
3982
|
-
])) :
|
|
3983
|
-
S("span",
|
|
3984
|
-
e.company ? (
|
|
3985
|
-
e.jobTitle ? (
|
|
3986
|
-
e.email ? (
|
|
3987
|
-
e.miscMeta || o.$slots.misc ? (
|
|
3988
|
-
|
|
3989
|
-
e.miscMetaIcon ? (
|
|
4105
|
+
])) : I("", !0),
|
|
4106
|
+
S("span", ul, A(e.profileName), 1),
|
|
4107
|
+
e.company ? (u(), h("span", cl, A(e.company), 1)) : I("", !0),
|
|
4108
|
+
e.jobTitle ? (u(), h("span", fl, A(e.jobTitle), 1)) : I("", !0),
|
|
4109
|
+
e.email ? (u(), h("span", pl, A(e.email), 1)) : I("", !0),
|
|
4110
|
+
e.miscMeta || o.$slots.misc ? (u(), h("span", vl, [
|
|
4111
|
+
P(o.$slots, "misc", {}, () => [
|
|
4112
|
+
e.miscMetaIcon ? (u(), E(ee(f(i) ? f(i) : "span"), {
|
|
3990
4113
|
key: 0,
|
|
3991
4114
|
class: "bs-icon"
|
|
3992
|
-
})) :
|
|
4115
|
+
})) : I("", !0),
|
|
3993
4116
|
H(" " + A(e.miscMeta), 1)
|
|
3994
4117
|
])
|
|
3995
|
-
])) :
|
|
4118
|
+
])) : I("", !0)
|
|
3996
4119
|
]));
|
|
3997
4120
|
}
|
|
3998
|
-
},
|
|
4121
|
+
}, ko = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3999
4122
|
__name: "BsProfile",
|
|
4000
4123
|
props: {
|
|
4001
4124
|
layout: {
|
|
@@ -4009,7 +4132,7 @@ const za = {
|
|
|
4009
4132
|
imageSize: {
|
|
4010
4133
|
type: String,
|
|
4011
4134
|
default: "lg",
|
|
4012
|
-
validator: (e) => ["sm", "md", "lg"].includes(e)
|
|
4135
|
+
validator: (e) => ["xs", "sm", "md", "lg", "xl"].includes(e)
|
|
4013
4136
|
},
|
|
4014
4137
|
initials: String,
|
|
4015
4138
|
linkTo: String,
|
|
@@ -4025,21 +4148,21 @@ const za = {
|
|
|
4025
4148
|
},
|
|
4026
4149
|
emits: ["action-toggled"],
|
|
4027
4150
|
setup(e, { emit: n }) {
|
|
4028
|
-
const t = e, a = n, l =
|
|
4029
|
-
return (r, c) => (
|
|
4151
|
+
const t = e, a = n, l = pe(), { onLinkClick: i } = De(t), { rootTag: d, attrsToBind: o, hrefUrl: s } = qe(t, l, "div");
|
|
4152
|
+
return (r, c) => (u(), E(ee(f(d)), N({
|
|
4030
4153
|
class: "bs-profile",
|
|
4031
|
-
".href": f(
|
|
4154
|
+
".href": f(s),
|
|
4032
4155
|
"data-layout": e.layout
|
|
4033
4156
|
}, f(o), { onClick: f(i) }), {
|
|
4034
|
-
default:
|
|
4035
|
-
V(
|
|
4157
|
+
default: O(() => [
|
|
4158
|
+
V(bt, {
|
|
4036
4159
|
src: e.imageSrc,
|
|
4037
4160
|
size: e.imageSize,
|
|
4038
4161
|
initials: e.initials,
|
|
4039
4162
|
"profile-name": e.profileName,
|
|
4040
4163
|
"use-alt-text": !1
|
|
4041
4164
|
}, null, 8, ["src", "size", "initials", "profile-name"]),
|
|
4042
|
-
V(
|
|
4165
|
+
V(hl, {
|
|
4043
4166
|
"profile-name": e.profileName,
|
|
4044
4167
|
company: e.company,
|
|
4045
4168
|
"job-title": e.jobTitle,
|
|
@@ -4050,11 +4173,11 @@ const za = {
|
|
|
4050
4173
|
"misc-meta-icon": e.miscMetaIcon,
|
|
4051
4174
|
onActionToggled: c[0] || (c[0] = (p) => a("action-toggled"))
|
|
4052
4175
|
}, {
|
|
4053
|
-
action:
|
|
4054
|
-
|
|
4176
|
+
action: O(() => [
|
|
4177
|
+
P(r.$slots, "action")
|
|
4055
4178
|
]),
|
|
4056
|
-
misc:
|
|
4057
|
-
|
|
4179
|
+
misc: O(() => [
|
|
4180
|
+
P(r.$slots, "misc")
|
|
4058
4181
|
]),
|
|
4059
4182
|
_: 3
|
|
4060
4183
|
}, 8, ["profile-name", "company", "job-title", "email", "action", "action-icon", "misc-meta", "misc-meta-icon"])
|
|
@@ -4088,7 +4211,7 @@ function yt(e) {
|
|
|
4088
4211
|
getStatus: a
|
|
4089
4212
|
};
|
|
4090
4213
|
}
|
|
4091
|
-
const
|
|
4214
|
+
const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-status"], To = {
|
|
4092
4215
|
__name: "BsProgressBar",
|
|
4093
4216
|
props: {
|
|
4094
4217
|
/** @type {Status} */
|
|
@@ -4117,25 +4240,25 @@ const yl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Sl = ["data-sta
|
|
|
4117
4240
|
},
|
|
4118
4241
|
setup(e) {
|
|
4119
4242
|
const n = e, { progressStep: t, progressText: a, getStatus: l } = yt(n);
|
|
4120
|
-
return (i,
|
|
4243
|
+
return (i, d) => (u(), h("div", {
|
|
4121
4244
|
"aria-valuemax": e.steps.length,
|
|
4122
4245
|
"aria-valuenow": f(t),
|
|
4123
4246
|
"aria-valuetext": f(a),
|
|
4124
4247
|
class: "bs-progress-bar",
|
|
4125
4248
|
role: "progressbar"
|
|
4126
4249
|
}, [
|
|
4127
|
-
(
|
|
4250
|
+
(u(!0), h(G, null, _(e.steps, (o, s) => (u(), h("div", {
|
|
4128
4251
|
class: "bs-step-item",
|
|
4129
|
-
"data-status": f(l)(o.status,
|
|
4252
|
+
"data-status": f(l)(o.status, s),
|
|
4130
4253
|
"data-variant": "progress",
|
|
4131
4254
|
key: o.id || o.label,
|
|
4132
4255
|
role: "status"
|
|
4133
4256
|
}, [
|
|
4134
|
-
S("span", null, A(o.label || o) + " : " + A(f(l)(o.status,
|
|
4135
|
-
], 8,
|
|
4136
|
-
], 8,
|
|
4257
|
+
S("span", null, A(o.label || o) + " : " + A(f(l)(o.status, s) || "not started"), 1)
|
|
4258
|
+
], 8, bl))), 128))
|
|
4259
|
+
], 8, ml));
|
|
4137
4260
|
}
|
|
4138
|
-
},
|
|
4261
|
+
}, gl = ["data-disabled", "data-error", "data-size"], yl = ["checked", "disabled", "id", "required", "value", "data-error"], Co = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4139
4262
|
__name: "BsRadio",
|
|
4140
4263
|
props: {
|
|
4141
4264
|
label: {
|
|
@@ -4179,14 +4302,16 @@ const yl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Sl = ["data-sta
|
|
|
4179
4302
|
},
|
|
4180
4303
|
emits: ["update:modelValue"],
|
|
4181
4304
|
setup(e, { emit: n }) {
|
|
4182
|
-
const t = e, [a] = Z(), l = v(() => Ye.concat(t.passAttrs.split(","))), i = v(() => t.inputId || a.value),
|
|
4183
|
-
return (o,
|
|
4305
|
+
const t = e, [a] = Z(), l = v(() => Ye.concat(t.passAttrs.split(","))), i = v(() => t.inputId || a.value), d = v(() => t.checked || t.modelValue && t.modelValue === t.value);
|
|
4306
|
+
return (o, s) => (u(), h("div", N({
|
|
4184
4307
|
class: "bs-boolean",
|
|
4185
4308
|
"data-component": "bs-radio",
|
|
4309
|
+
"data-disabled": e.disabled,
|
|
4310
|
+
"data-error": e.error,
|
|
4186
4311
|
"data-size": e.size
|
|
4187
4312
|
}, f(K)(o.$attrs, l.value).remaining), [
|
|
4188
4313
|
S("input", N({
|
|
4189
|
-
checked:
|
|
4314
|
+
checked: d.value,
|
|
4190
4315
|
disabled: e.disabled,
|
|
4191
4316
|
id: o.$attrs.id || i.value,
|
|
4192
4317
|
required: e.required,
|
|
@@ -4194,24 +4319,24 @@ const yl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Sl = ["data-sta
|
|
|
4194
4319
|
value: e.value,
|
|
4195
4320
|
"data-error": e.error
|
|
4196
4321
|
}, f(K)(o.$attrs, l.value).filtered, {
|
|
4197
|
-
onChange:
|
|
4198
|
-
}), null, 16,
|
|
4199
|
-
e.label || o.$slots.label ? (
|
|
4322
|
+
onChange: s[0] || (s[0] = (r) => o.$emit("update:modelValue", r.target.value))
|
|
4323
|
+
}), null, 16, yl),
|
|
4324
|
+
e.label || o.$slots.label ? (u(), E(te, {
|
|
4200
4325
|
key: 0,
|
|
4201
4326
|
for: o.$attrs.id || i.value,
|
|
4202
4327
|
disabled: e.disabled,
|
|
4203
4328
|
required: e.required
|
|
4204
4329
|
}, {
|
|
4205
|
-
default:
|
|
4206
|
-
|
|
4330
|
+
default: O(() => [
|
|
4331
|
+
P(o.$slots, "label", {}, () => [
|
|
4207
4332
|
H(A(e.label), 1)
|
|
4208
4333
|
])
|
|
4209
4334
|
]),
|
|
4210
4335
|
_: 3
|
|
4211
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
4212
|
-
], 16,
|
|
4336
|
+
}, 8, ["for", "disabled", "required"])) : I("", !0)
|
|
4337
|
+
], 16, gl));
|
|
4213
4338
|
}
|
|
4214
|
-
}),
|
|
4339
|
+
}), Sl = ["id", "disabled", "required", "data-error", "value"], wl = {
|
|
4215
4340
|
__name: "BsSelect",
|
|
4216
4341
|
props: {
|
|
4217
4342
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -4225,7 +4350,7 @@ const yl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Sl = ["data-sta
|
|
|
4225
4350
|
emits: ["update:modelValue"],
|
|
4226
4351
|
setup(e, { emit: n }) {
|
|
4227
4352
|
const t = e, a = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
4228
|
-
return (l, i) => (
|
|
4353
|
+
return (l, i) => (u(), h("select", N({
|
|
4229
4354
|
id: l.$attrs.id || e.inputId,
|
|
4230
4355
|
class: "bs-select",
|
|
4231
4356
|
"data-component": "bs-select",
|
|
@@ -4234,12 +4359,12 @@ const yl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Sl = ["data-sta
|
|
|
4234
4359
|
"data-error": e.error,
|
|
4235
4360
|
value: e.value || e.modelValue
|
|
4236
4361
|
}, a.value, {
|
|
4237
|
-
onChange: i[0] || (i[0] = (
|
|
4362
|
+
onChange: i[0] || (i[0] = (d) => l.$emit("update:modelValue", d.target.value))
|
|
4238
4363
|
}), [
|
|
4239
|
-
|
|
4240
|
-
], 16,
|
|
4364
|
+
P(l.$slots, "default")
|
|
4365
|
+
], 16, Sl));
|
|
4241
4366
|
}
|
|
4242
|
-
},
|
|
4367
|
+
}, Bl = ["selected", "disabled"], $l = ["disabled", "selected", "value"], xo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4243
4368
|
__name: "BsSelectField",
|
|
4244
4369
|
props: {
|
|
4245
4370
|
data: {
|
|
@@ -4283,66 +4408,66 @@ const yl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Sl = ["data-sta
|
|
|
4283
4408
|
modelValue: [String, Number]
|
|
4284
4409
|
},
|
|
4285
4410
|
setup(e) {
|
|
4286
|
-
const n = e, [t, a] = Z(2), l = v(() =>
|
|
4411
|
+
const n = e, [t, a] = Z(2), l = v(() => ka.concat(n.passAttrs.split(","))), i = v(() => {
|
|
4287
4412
|
var r, c;
|
|
4288
4413
|
return ((c = (r = n.hints) == null ? void 0 : r.join) == null ? void 0 : c.call(r, `
|
|
4289
4414
|
`)) || n.hints;
|
|
4290
|
-
}),
|
|
4291
|
-
return (r, c) => (
|
|
4292
|
-
e.label || r.$slots.label ? (
|
|
4415
|
+
}), d = v(() => n.error && n.errorMsg || n.hint || i.value || void 0), o = v(() => n.inputId || t.value), s = v(() => n.value || n.modelValue);
|
|
4416
|
+
return (r, c) => (u(), h("div", N({ "data-component": "bs-select-field" }, f(K)(r.$attrs, l.value).remaining), [
|
|
4417
|
+
e.label || r.$slots.label ? (u(), E(te, {
|
|
4293
4418
|
key: 0,
|
|
4294
4419
|
for: r.$attrs.id || o.value,
|
|
4295
4420
|
disabled: e.disabled,
|
|
4296
4421
|
required: e.required
|
|
4297
4422
|
}, {
|
|
4298
|
-
default:
|
|
4299
|
-
|
|
4423
|
+
default: O(() => [
|
|
4424
|
+
P(r.$slots, "label", {}, () => [
|
|
4300
4425
|
H(A(e.label), 1)
|
|
4301
4426
|
])
|
|
4302
4427
|
]),
|
|
4303
4428
|
_: 3
|
|
4304
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
4305
|
-
V(
|
|
4429
|
+
}, 8, ["for", "disabled", "required"])) : I("", !0),
|
|
4430
|
+
V(wl, N({
|
|
4306
4431
|
disabled: e.disabled,
|
|
4307
4432
|
error: e.error,
|
|
4308
4433
|
"hint-id": f(a),
|
|
4309
4434
|
"input-id": r.$attrs.id || o.value,
|
|
4310
4435
|
required: e.required,
|
|
4311
|
-
value:
|
|
4436
|
+
value: s.value,
|
|
4312
4437
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => r.$emit("update:modelValue", p))
|
|
4313
4438
|
}, f(K)(r.$attrs, l.value).filtered), {
|
|
4314
|
-
default:
|
|
4439
|
+
default: O(() => [
|
|
4315
4440
|
S("option", {
|
|
4316
|
-
selected: !
|
|
4441
|
+
selected: !s.value,
|
|
4317
4442
|
value: "",
|
|
4318
|
-
disabled: !!
|
|
4319
|
-
}, A(e.disabled ? "" : e.placeholder), 9,
|
|
4320
|
-
(
|
|
4443
|
+
disabled: !!s.value
|
|
4444
|
+
}, A(e.disabled ? "" : e.placeholder), 9, Bl),
|
|
4445
|
+
(u(!0), h(G, null, _(e.data, (p) => (u(), h("option", {
|
|
4321
4446
|
key: p.value,
|
|
4322
4447
|
disabled: p.disabled,
|
|
4323
|
-
selected:
|
|
4448
|
+
selected: s.value === p.value,
|
|
4324
4449
|
value: p.value
|
|
4325
|
-
}, A(p.label), 9,
|
|
4450
|
+
}, A(p.label), 9, $l))), 128))
|
|
4326
4451
|
]),
|
|
4327
4452
|
_: 1
|
|
4328
4453
|
}, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
|
|
4329
|
-
|
|
4454
|
+
d.value ? (u(), E(be, {
|
|
4330
4455
|
key: 1,
|
|
4331
4456
|
"data-disabled": e.disabled,
|
|
4332
4457
|
error: e.error,
|
|
4333
4458
|
"error-msg": e.errorMsg,
|
|
4334
4459
|
hint: e.hint || i.value,
|
|
4335
4460
|
"hint-id": f(a)
|
|
4336
|
-
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) :
|
|
4461
|
+
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : I("", !0)
|
|
4337
4462
|
], 16));
|
|
4338
4463
|
}
|
|
4339
|
-
}),
|
|
4464
|
+
}), Il = ["data-size", "data-variant"], kl = ["stroke"], Tl = { key: 0 }, Cl = /* @__PURE__ */ S("linearGradient", { id: "bs-spinner-gradient" }, [
|
|
4340
4465
|
/* @__PURE__ */ S("stop", { offset: "0%" }),
|
|
4341
4466
|
/* @__PURE__ */ S("stop", { offset: "49%" }),
|
|
4342
4467
|
/* @__PURE__ */ S("stop", { offset: "100%" })
|
|
4343
|
-
], -1),
|
|
4344
|
-
|
|
4345
|
-
],
|
|
4468
|
+
], -1), xl = [
|
|
4469
|
+
Cl
|
|
4470
|
+
], Ao = {
|
|
4346
4471
|
__name: "BsSpinner",
|
|
4347
4472
|
props: {
|
|
4348
4473
|
label: {
|
|
@@ -4359,7 +4484,7 @@ const yl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Sl = ["data-sta
|
|
|
4359
4484
|
}
|
|
4360
4485
|
},
|
|
4361
4486
|
setup(e) {
|
|
4362
|
-
return (n, t) => (
|
|
4487
|
+
return (n, t) => (u(), h("svg", {
|
|
4363
4488
|
class: "bs-spinner",
|
|
4364
4489
|
"data-size": e.size,
|
|
4365
4490
|
"data-variant": e.variant,
|
|
@@ -4375,11 +4500,11 @@ const yl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Sl = ["data-sta
|
|
|
4375
4500
|
pathLength: "100",
|
|
4376
4501
|
r: "45",
|
|
4377
4502
|
stroke: e.variant === "gradient" ? "url(#bs-spinner-gradient)" : void 0
|
|
4378
|
-
}, null, 8,
|
|
4379
|
-
e.variant === "gradient" ? (
|
|
4380
|
-
], 8,
|
|
4503
|
+
}, null, 8, kl),
|
|
4504
|
+
e.variant === "gradient" ? (u(), h("defs", Tl, xl)) : I("", !0)
|
|
4505
|
+
], 8, Il));
|
|
4381
4506
|
}
|
|
4382
|
-
},
|
|
4507
|
+
}, Al = ["data-disabled", "data-size"], Vl = ["data-disabled", "data-pending", "data-size"], El = ["checked", "disabled", "id"], Pl = ["data-inner-on-label", "data-inner-off-label"], Vo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4383
4508
|
__name: "BsSwitch",
|
|
4384
4509
|
props: {
|
|
4385
4510
|
checked: {
|
|
@@ -4425,25 +4550,26 @@ const yl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Sl = ["data-sta
|
|
|
4425
4550
|
},
|
|
4426
4551
|
emits: ["update:modelValue"],
|
|
4427
4552
|
setup(e, { emit: n }) {
|
|
4428
|
-
const t = e, a = n, [l] = Z(), i = v(() => Ye.concat(t.passAttrs.split(","))),
|
|
4429
|
-
return (
|
|
4553
|
+
const t = e, a = n, [l] = Z(), i = v(() => Ye.concat(t.passAttrs.split(","))), d = v(() => t.inputId || l.value), o = v(() => t.checked || t.modelValue);
|
|
4554
|
+
return (s, r) => (u(), h("div", N({
|
|
4430
4555
|
class: "bs-boolean",
|
|
4431
4556
|
"data-component": "bs-switch",
|
|
4557
|
+
"data-disabled": e.disabled,
|
|
4432
4558
|
"data-size": e.size
|
|
4433
|
-
}, f(K)(
|
|
4434
|
-
e.label ||
|
|
4559
|
+
}, f(K)(s.$attrs, i.value).remaining), [
|
|
4560
|
+
e.label || s.$slots.label ? (u(), E(te, {
|
|
4435
4561
|
key: 0,
|
|
4436
|
-
for:
|
|
4562
|
+
for: s.$attrs.id || d.value,
|
|
4437
4563
|
disabled: e.disabled,
|
|
4438
4564
|
hide: e.hideLabel
|
|
4439
4565
|
}, {
|
|
4440
|
-
default:
|
|
4441
|
-
|
|
4566
|
+
default: O(() => [
|
|
4567
|
+
P(s.$slots, "label", {}, () => [
|
|
4442
4568
|
H(A(e.label), 1)
|
|
4443
4569
|
])
|
|
4444
4570
|
]),
|
|
4445
4571
|
_: 3
|
|
4446
|
-
}, 8, ["for", "disabled", "hide"])) :
|
|
4572
|
+
}, 8, ["for", "disabled", "hide"])) : I("", !0),
|
|
4447
4573
|
S("div", {
|
|
4448
4574
|
class: "bs-switch",
|
|
4449
4575
|
"data-disabled": e.disabled,
|
|
@@ -4453,20 +4579,20 @@ const yl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Sl = ["data-sta
|
|
|
4453
4579
|
S("input", N({
|
|
4454
4580
|
checked: o.value,
|
|
4455
4581
|
disabled: e.disabled,
|
|
4456
|
-
id:
|
|
4582
|
+
id: s.$attrs.id || d.value,
|
|
4457
4583
|
type: "checkbox"
|
|
4458
|
-
}, f(K)(
|
|
4584
|
+
}, f(K)(s.$attrs, i.value).filtered, {
|
|
4459
4585
|
onChange: r[0] || (r[0] = (c) => a("update:modelValue", c.target.checked))
|
|
4460
|
-
}), null, 16,
|
|
4586
|
+
}), null, 16, El),
|
|
4461
4587
|
S("span", {
|
|
4462
4588
|
"aria-hidden": "true",
|
|
4463
4589
|
"data-inner-on-label": e.innerOnLabel,
|
|
4464
4590
|
"data-inner-off-label": e.innerOffLabel
|
|
4465
|
-
}, null, 8,
|
|
4466
|
-
], 8,
|
|
4467
|
-
], 16,
|
|
4591
|
+
}, null, 8, Pl)
|
|
4592
|
+
], 8, Vl)
|
|
4593
|
+
], 16, Al));
|
|
4468
4594
|
}
|
|
4469
|
-
}),
|
|
4595
|
+
}), Ol = ["aria-controls", "aria-selected", "data-hidden"], Eo = {
|
|
4470
4596
|
__name: "BsTab",
|
|
4471
4597
|
props: {
|
|
4472
4598
|
activeTabId: {
|
|
@@ -4483,18 +4609,18 @@ const yl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Sl = ["data-sta
|
|
|
4483
4609
|
},
|
|
4484
4610
|
emits: ["tabClick"],
|
|
4485
4611
|
setup(e, { emit: n }) {
|
|
4486
|
-
const t = e, a =
|
|
4612
|
+
const t = e, a = pe(), l = y(), i = v(() => t.activeTabId === a.id), d = v(() => t.panelId || `${a.id}-panel`);
|
|
4487
4613
|
function o(r) {
|
|
4488
|
-
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(),
|
|
4614
|
+
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), s());
|
|
4489
4615
|
}
|
|
4490
|
-
function
|
|
4616
|
+
function s() {
|
|
4491
4617
|
if (t.activeTabId !== a.id) {
|
|
4492
4618
|
const r = new CustomEvent("tabClick", { detail: a.id, bubbles: !0 });
|
|
4493
4619
|
l.value.dispatchEvent(r);
|
|
4494
4620
|
}
|
|
4495
4621
|
}
|
|
4496
|
-
return (r, c) => (
|
|
4497
|
-
"aria-controls":
|
|
4622
|
+
return (r, c) => (u(), h("div", {
|
|
4623
|
+
"aria-controls": d.value,
|
|
4498
4624
|
"aria-selected": i.value ? "true" : "false",
|
|
4499
4625
|
"data-hidden": e.hidden || void 0,
|
|
4500
4626
|
"data-component": "bs-tab",
|
|
@@ -4502,13 +4628,13 @@ const yl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Sl = ["data-sta
|
|
|
4502
4628
|
tabindex: "0",
|
|
4503
4629
|
ref_key: "hostEl",
|
|
4504
4630
|
ref: l,
|
|
4505
|
-
onClick:
|
|
4631
|
+
onClick: s,
|
|
4506
4632
|
onKeydown: o
|
|
4507
4633
|
}, [
|
|
4508
|
-
|
|
4509
|
-
], 40,
|
|
4634
|
+
P(r.$slots, "default")
|
|
4635
|
+
], 40, Ol));
|
|
4510
4636
|
}
|
|
4511
|
-
},
|
|
4637
|
+
}, Ll = ["id", "data-resizing"], ql = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], Dl = 73, Ml = 20, Re = 16, Po = {
|
|
4512
4638
|
__name: "BsTabList",
|
|
4513
4639
|
props: {
|
|
4514
4640
|
activeTabId: { type: String, required: !0 },
|
|
@@ -4519,155 +4645,155 @@ const yl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Sl = ["data-sta
|
|
|
4519
4645
|
},
|
|
4520
4646
|
emits: ["tabChange", "update:modelValue"],
|
|
4521
4647
|
setup(e, { emit: n }) {
|
|
4522
|
-
const t = e, a = n, l = y(!1), i = y(!1),
|
|
4523
|
-
var
|
|
4524
|
-
return q.value ? (
|
|
4525
|
-
}),
|
|
4648
|
+
const t = e, a = n, l = y(!1), i = y(!1), d = y([]), o = y(!1), s = y(!1), r = y(), c = y([]), p = y(!1), w = y([]), g = y(), k = y([]), C = y(), B = y(), [T, m] = Z(2), b = v(() => t.activeTabId ? w.value.findIndex(($) => $.id === t.activeTabId) : 0), q = v(() => d.value.some(($) => $.id === t.activeTabId)), M = v(() => `${m.value}-options`), z = v(() => `${m.value}-toggle`), W = v(() => {
|
|
4649
|
+
var $;
|
|
4650
|
+
return q.value ? ($ = w.value[b.value]) == null ? void 0 : $.textContent : "More";
|
|
4651
|
+
}), ae = v(() => q.value ? c.value[b.value] - c.value[b.value - 1] + Ml + Re : Dl + Re);
|
|
4526
4652
|
function J() {
|
|
4527
4653
|
var re;
|
|
4528
|
-
let
|
|
4529
|
-
if ((re =
|
|
4530
|
-
for (let le = 0; le <
|
|
4531
|
-
if (D =
|
|
4654
|
+
let $ = !1, D, j = 0, Q = !1, ne = [];
|
|
4655
|
+
if ((re = w.value) != null && re.length) {
|
|
4656
|
+
for (let le = 0; le < w.value.length; le++) {
|
|
4657
|
+
if (D = w.value[le], D.setAttribute("tabindex", "-1"), Q && le !== b.value) {
|
|
4532
4658
|
D.dataset.hidden = "true", ne.push(D);
|
|
4533
4659
|
continue;
|
|
4534
4660
|
}
|
|
4535
|
-
if (j = le <
|
|
4536
|
-
D.dataset.hidden = "true", ne.push(D),
|
|
4661
|
+
if (j = le < w.value.length - 1 ? B.value - ae.value : B.value, c.value[le] > j) {
|
|
4662
|
+
D.dataset.hidden = "true", ne.push(D), $ = !0, Q = !0;
|
|
4537
4663
|
continue;
|
|
4538
4664
|
}
|
|
4539
4665
|
D.dataset.hidden = "false", D.setAttribute("tabindex", "0");
|
|
4540
4666
|
}
|
|
4541
|
-
|
|
4542
|
-
|
|
4667
|
+
s.value = $, d.value = ne, l.value || xe(() => l.value = !0), setTimeout(() => {
|
|
4668
|
+
wt(), L(), p.value = !0;
|
|
4543
4669
|
}, p.value ? 25 : 1e3);
|
|
4544
4670
|
}
|
|
4545
4671
|
}
|
|
4546
|
-
function
|
|
4547
|
-
a("tabChange",
|
|
4672
|
+
function ve($) {
|
|
4673
|
+
a("tabChange", $), a("update:modelValue", $);
|
|
4548
4674
|
}
|
|
4549
|
-
function
|
|
4675
|
+
function $e($) {
|
|
4550
4676
|
var Q, ne, re;
|
|
4551
|
-
const D = (re = (ne = (Q =
|
|
4552
|
-
return D || (
|
|
4677
|
+
const D = (re = (ne = (Q = w.value[$]) == null ? void 0 : Q.getBoundingClientRect) == null ? void 0 : ne.call(Q)) == null ? void 0 : re.width;
|
|
4678
|
+
return D || ($ === 0 ? c.value[0] : c.value[$] - c.value[$ - 1]) || 0;
|
|
4553
4679
|
}
|
|
4554
|
-
function
|
|
4555
|
-
var
|
|
4556
|
-
(
|
|
4680
|
+
function ge() {
|
|
4681
|
+
var $;
|
|
4682
|
+
($ = w.value[b.value]) == null || $.setAttribute("aria-selected", "true"), J();
|
|
4557
4683
|
}
|
|
4558
4684
|
function Ie() {
|
|
4559
|
-
var
|
|
4560
|
-
(
|
|
4685
|
+
var $;
|
|
4686
|
+
($ = g.value) == null || $.focus(), o.value = !1;
|
|
4561
4687
|
}
|
|
4562
4688
|
function ke() {
|
|
4563
4689
|
o.value = !o.value, i.value || (i.value = !0);
|
|
4564
4690
|
}
|
|
4565
|
-
function ie(
|
|
4691
|
+
function ie($) {
|
|
4566
4692
|
var D;
|
|
4567
|
-
o.value = !1, (D = g.value) == null || D.focus(),
|
|
4693
|
+
o.value = !1, (D = g.value) == null || D.focus(), ve($);
|
|
4568
4694
|
}
|
|
4569
|
-
function Te(
|
|
4695
|
+
function Te($) {
|
|
4570
4696
|
if (t.withBsTabs)
|
|
4571
4697
|
return;
|
|
4572
|
-
const D =
|
|
4698
|
+
const D = $.target.closest('[role="tab"]');
|
|
4573
4699
|
if (!D || D.getAttribute("aria-selected") === "true")
|
|
4574
4700
|
return;
|
|
4575
4701
|
const j = D.getAttribute("id");
|
|
4576
|
-
|
|
4702
|
+
ve(j);
|
|
4577
4703
|
}
|
|
4578
|
-
function
|
|
4579
|
-
if (
|
|
4580
|
-
const D =
|
|
4704
|
+
function ye($) {
|
|
4705
|
+
if ($.key === "ArrowLeft" || $.key === "ArrowRight") {
|
|
4706
|
+
const D = k.value.findIndex((j) => j.id === $.target.id);
|
|
4581
4707
|
if (D === -1)
|
|
4582
4708
|
return;
|
|
4583
|
-
|
|
4709
|
+
$.preventDefault(), $.stopPropagation(), $.key === "ArrowLeft" ? F(D) : x(D);
|
|
4584
4710
|
}
|
|
4585
4711
|
}
|
|
4586
|
-
function x(
|
|
4712
|
+
function x($) {
|
|
4587
4713
|
var j;
|
|
4588
|
-
const D = (
|
|
4589
|
-
(j =
|
|
4714
|
+
const D = ($ + 1) % k.value.length;
|
|
4715
|
+
(j = k.value[D]) == null || j.focus();
|
|
4590
4716
|
}
|
|
4591
|
-
function F(
|
|
4717
|
+
function F($) {
|
|
4592
4718
|
var j;
|
|
4593
|
-
const D =
|
|
4594
|
-
(j =
|
|
4719
|
+
const D = $ === 0 ? k.value.length - 1 : $ - 1;
|
|
4720
|
+
(j = k.value[D]) == null || j.focus();
|
|
4595
4721
|
}
|
|
4596
|
-
function
|
|
4722
|
+
function L() {
|
|
4597
4723
|
var re, le, Je, _e;
|
|
4598
|
-
const
|
|
4599
|
-
let j = 300, Q = ((le = (re =
|
|
4600
|
-
|
|
4724
|
+
const $ = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0, D = B.value;
|
|
4725
|
+
let j = 300, Q = ((le = (re = k.value) == null ? void 0 : re[b.value]) == null ? void 0 : le.offsetLeft) || 0, ne = $e(b.value);
|
|
4726
|
+
s.value && q.value && (Q = (Je = g.value) == null ? void 0 : Je.offsetLeft, ne = (_e = g.value) == null ? void 0 : _e.offsetWidth), j = Math.max(Math.abs((Q - $) / D * 300), 100), r.value.style.setProperty("--active-line-max-width", `${D}px`), r.value.style.setProperty("--active-line-scale", `${ne / D}`), r.value.style.setProperty("--active-line-offset", `${Q}px`), r.value.style.setProperty("--active-line-transition-duration", `${j}ms`);
|
|
4601
4727
|
}
|
|
4602
4728
|
function U() {
|
|
4603
|
-
var
|
|
4604
|
-
(D = (
|
|
4729
|
+
var $, D;
|
|
4730
|
+
(D = ($ = C.value) == null ? void 0 : $.disconnect) == null || D.call($), C.value = null;
|
|
4605
4731
|
}
|
|
4606
|
-
function
|
|
4607
|
-
const
|
|
4608
|
-
|
|
4732
|
+
function X() {
|
|
4733
|
+
const $ = Ae(() => {
|
|
4734
|
+
B.value = r.value.clientWidth, J();
|
|
4609
4735
|
}, 25);
|
|
4610
|
-
C.value = new ResizeObserver(
|
|
4736
|
+
C.value = new ResizeObserver($), C.value.observe(document.body);
|
|
4611
4737
|
}
|
|
4612
4738
|
function Ce() {
|
|
4613
|
-
|
|
4739
|
+
w.value = Array.from(r.value.children).filter(($) => $.role === "tab");
|
|
4614
4740
|
}
|
|
4615
4741
|
function St() {
|
|
4616
|
-
let
|
|
4617
|
-
|
|
4618
|
-
|
|
4742
|
+
let $;
|
|
4743
|
+
w.value.forEach((D, j) => {
|
|
4744
|
+
$ = D.getBoundingClientRect().width + Re, c.value.push(j ? $ + c.value[j - 1] : $);
|
|
4619
4745
|
});
|
|
4620
4746
|
}
|
|
4621
|
-
function
|
|
4747
|
+
function wt() {
|
|
4622
4748
|
var D, j;
|
|
4623
|
-
let
|
|
4749
|
+
let $ = [];
|
|
4624
4750
|
if (typeof window > "u")
|
|
4625
|
-
return
|
|
4626
|
-
for (let Q of
|
|
4751
|
+
return $;
|
|
4752
|
+
for (let Q of w.value) {
|
|
4627
4753
|
if (((D = Q.dataset) == null ? void 0 : D.hidden) === "true" || ((j = Q.dataset) == null ? void 0 : j.hidden) === "" || Q.getAttribute("tabindex") === "-1")
|
|
4628
4754
|
break;
|
|
4629
|
-
|
|
4755
|
+
$.push(Q);
|
|
4630
4756
|
}
|
|
4631
|
-
|
|
4757
|
+
s.value && $.push(r.value.querySelector(".bs-tab-list-toggle")), k.value = $;
|
|
4632
4758
|
}
|
|
4633
|
-
return R(() => t.activeTabId,
|
|
4634
|
-
var
|
|
4759
|
+
return R(() => t.activeTabId, ge), Y(() => {
|
|
4760
|
+
var $;
|
|
4635
4761
|
try {
|
|
4636
|
-
Ce(), St(),
|
|
4762
|
+
Ce(), St(), X(), B.value = r.value.getBoundingClientRect().width, J(), t.withBsTabs || ($ = w.value[b.value]) == null || $.setAttribute("aria-selected", "true");
|
|
4637
4763
|
} catch (D) {
|
|
4638
4764
|
console.log("tab error", D);
|
|
4639
4765
|
}
|
|
4640
|
-
}),
|
|
4766
|
+
}), me(U), ($, D) => (u(), h("div", {
|
|
4641
4767
|
class: "bs-tab-list",
|
|
4642
4768
|
"data-component": "bs-tab-list",
|
|
4643
|
-
id:
|
|
4769
|
+
id: $.$attrs.id || f(T),
|
|
4644
4770
|
ref_key: "hostEl",
|
|
4645
4771
|
ref: r,
|
|
4646
4772
|
role: "tablist",
|
|
4647
4773
|
"data-resizing": !l.value || void 0,
|
|
4648
4774
|
onClick: Te,
|
|
4649
|
-
"on:tabClick": D[0] || (D[0] = (j) =>
|
|
4650
|
-
onKeydown:
|
|
4775
|
+
"on:tabClick": D[0] || (D[0] = (j) => ve(j.detail)),
|
|
4776
|
+
onKeydown: ye
|
|
4651
4777
|
}, [
|
|
4652
|
-
|
|
4778
|
+
P($.$slots, "default"),
|
|
4653
4779
|
S("button", {
|
|
4654
4780
|
"aria-controls": f(m),
|
|
4655
4781
|
"aria-expanded": o.value,
|
|
4656
4782
|
class: "bs-tab-list-toggle",
|
|
4657
4783
|
"data-active": q.value || void 0,
|
|
4658
|
-
"data-hidden": !
|
|
4784
|
+
"data-hidden": !s.value,
|
|
4659
4785
|
id: z.value,
|
|
4660
4786
|
ref_key: "dropdownToggle",
|
|
4661
4787
|
ref: g,
|
|
4662
4788
|
onClick: ke
|
|
4663
4789
|
}, [
|
|
4664
|
-
V(f(
|
|
4790
|
+
V(f(Ot), { size: "sm" }),
|
|
4665
4791
|
H(" " + A(W.value), 1)
|
|
4666
|
-
], 8,
|
|
4792
|
+
], 8, ql),
|
|
4667
4793
|
V(Qe, {
|
|
4668
4794
|
"anchor-id": z.value,
|
|
4669
4795
|
breakout: "",
|
|
4670
|
-
"container-id":
|
|
4796
|
+
"container-id": $.$attrs.id || f(T),
|
|
4671
4797
|
"helper-description": e.helperDescription || void 0,
|
|
4672
4798
|
"helper-text": e.helperText,
|
|
4673
4799
|
id: f(m),
|
|
@@ -4679,13 +4805,13 @@ const yl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Sl = ["data-sta
|
|
|
4679
4805
|
onClose: Ie,
|
|
4680
4806
|
"onUpdate:modelValue": ie
|
|
4681
4807
|
}, {
|
|
4682
|
-
default:
|
|
4683
|
-
(
|
|
4808
|
+
default: O(() => [
|
|
4809
|
+
(u(!0), h(G, null, _(d.value, (j) => (u(), E(Xe, {
|
|
4684
4810
|
key: j.id,
|
|
4685
4811
|
value: j.id,
|
|
4686
4812
|
"options-id": M.value
|
|
4687
4813
|
}, {
|
|
4688
|
-
default:
|
|
4814
|
+
default: O(() => [
|
|
4689
4815
|
H(A(j.textContent), 1)
|
|
4690
4816
|
]),
|
|
4691
4817
|
_: 2
|
|
@@ -4693,9 +4819,9 @@ const yl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Sl = ["data-sta
|
|
|
4693
4819
|
]),
|
|
4694
4820
|
_: 1
|
|
4695
4821
|
}, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])
|
|
4696
|
-
], 40,
|
|
4822
|
+
], 40, Ll));
|
|
4697
4823
|
}
|
|
4698
|
-
},
|
|
4824
|
+
}, Nl = ["aria-labelledby", "data-active", "id"], Oo = {
|
|
4699
4825
|
__name: "BsTabPanel",
|
|
4700
4826
|
props: {
|
|
4701
4827
|
activeTabId: {
|
|
@@ -4708,18 +4834,18 @@ const yl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Sl = ["data-sta
|
|
|
4708
4834
|
}
|
|
4709
4835
|
},
|
|
4710
4836
|
setup(e) {
|
|
4711
|
-
const n = e, t =
|
|
4712
|
-
return (i,
|
|
4837
|
+
const n = e, t = pe(), a = v(() => n.activeTabId && n.activeTabId === n.tabId), l = v(() => t.id || `${n.tabId}-panel`);
|
|
4838
|
+
return (i, d) => (u(), h("section", {
|
|
4713
4839
|
"aria-labelledby": e.tabId,
|
|
4714
4840
|
"data-active": a.value,
|
|
4715
4841
|
"data-component": "bs-tab-panel",
|
|
4716
4842
|
id: l.value,
|
|
4717
4843
|
role: "tabpanel"
|
|
4718
4844
|
}, [
|
|
4719
|
-
|
|
4720
|
-
], 8,
|
|
4845
|
+
P(i.$slots, "default")
|
|
4846
|
+
], 8, Nl));
|
|
4721
4847
|
}
|
|
4722
|
-
},
|
|
4848
|
+
}, zl = ["data-error", "id", "rows", "value"], Rl = {
|
|
4723
4849
|
__name: "BsTextarea",
|
|
4724
4850
|
props: {
|
|
4725
4851
|
error: {
|
|
@@ -4735,17 +4861,17 @@ const yl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Sl = ["data-sta
|
|
|
4735
4861
|
emits: ["update:modelValue"],
|
|
4736
4862
|
setup(e, { emit: n }) {
|
|
4737
4863
|
const t = e, a = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
4738
|
-
return (l, i) => (
|
|
4864
|
+
return (l, i) => (u(), h("textarea", N({
|
|
4739
4865
|
class: "bs-textarea",
|
|
4740
4866
|
"data-component": "bs-textarea",
|
|
4741
4867
|
"data-error": e.error,
|
|
4742
4868
|
id: l.$attrs.id || e.inputId,
|
|
4743
4869
|
rows: l.$attrs.rows || 6,
|
|
4744
4870
|
value: e.value || e.modelValue,
|
|
4745
|
-
onInput: i[0] || (i[0] = (
|
|
4746
|
-
}, a.value), null, 16,
|
|
4871
|
+
onInput: i[0] || (i[0] = (d) => l.$emit("update:modelValue", d.target.value))
|
|
4872
|
+
}, a.value), null, 16, zl));
|
|
4747
4873
|
}
|
|
4748
|
-
},
|
|
4874
|
+
}, Lo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4749
4875
|
__name: "BsTextareaField",
|
|
4750
4876
|
props: {
|
|
4751
4877
|
/** 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. */
|
|
@@ -4794,29 +4920,29 @@ const yl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Sl = ["data-sta
|
|
|
4794
4920
|
},
|
|
4795
4921
|
emits: ["update:modelValue"],
|
|
4796
4922
|
setup(e, { emit: n }) {
|
|
4797
|
-
const t = e, [a, l] = Z(2), i = v(() =>
|
|
4923
|
+
const t = e, [a, l] = Z(2), i = v(() => Ta.concat(t.passAttrs.split(","))), d = v(() => {
|
|
4798
4924
|
var c;
|
|
4799
4925
|
return ((c = t.value || t.modelValue) == null ? void 0 : c.length) || 0;
|
|
4800
4926
|
}), o = v(() => {
|
|
4801
4927
|
var c, p;
|
|
4802
4928
|
return ((p = (c = t.hints) == null ? void 0 : c.join) == null ? void 0 : p.call(c, `
|
|
4803
4929
|
`)) || t.hints;
|
|
4804
|
-
}),
|
|
4805
|
-
return (c, p) => (
|
|
4806
|
-
e.label || c.$slots.label ? (
|
|
4930
|
+
}), s = v(() => t.error && t.errorMsg || t.hint || o.value || void 0), r = v(() => t.inputId || a.value);
|
|
4931
|
+
return (c, p) => (u(), h("div", N({ "data-component": "bs-textarea-field" }, f(K)(c.$attrs, i.value).remaining), [
|
|
4932
|
+
e.label || c.$slots.label ? (u(), E(te, {
|
|
4807
4933
|
key: 0,
|
|
4808
4934
|
for: c.$attrs.id || r.value,
|
|
4809
4935
|
disabled: e.disabled,
|
|
4810
4936
|
required: e.required
|
|
4811
4937
|
}, {
|
|
4812
|
-
default:
|
|
4813
|
-
|
|
4938
|
+
default: O(() => [
|
|
4939
|
+
P(c.$slots, "label", {}, () => [
|
|
4814
4940
|
H(A(e.label), 1)
|
|
4815
4941
|
])
|
|
4816
4942
|
]),
|
|
4817
4943
|
_: 3
|
|
4818
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
4819
|
-
V(
|
|
4944
|
+
}, 8, ["for", "disabled", "required"])) : I("", !0),
|
|
4945
|
+
V(Rl, N({
|
|
4820
4946
|
disabled: e.disabled,
|
|
4821
4947
|
error: e.error,
|
|
4822
4948
|
"hint-id": f(l),
|
|
@@ -4825,38 +4951,38 @@ const yl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Sl = ["data-sta
|
|
|
4825
4951
|
required: e.required,
|
|
4826
4952
|
rows: e.rows,
|
|
4827
4953
|
value: e.value || e.modelValue,
|
|
4828
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
4954
|
+
"onUpdate:modelValue": p[0] || (p[0] = (w) => c.$emit("update:modelValue", w))
|
|
4829
4955
|
}, f(K)(c.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
|
|
4830
|
-
|
|
4956
|
+
s.value || e.charMax ? (u(), E(be, {
|
|
4831
4957
|
key: 1,
|
|
4832
|
-
"char-count":
|
|
4958
|
+
"char-count": d.value,
|
|
4833
4959
|
"char-max": e.charMax,
|
|
4834
4960
|
"data-disabled": e.disabled,
|
|
4835
4961
|
error: e.error,
|
|
4836
4962
|
"error-msg": e.errorMsg,
|
|
4837
4963
|
hint: e.hint || o.value,
|
|
4838
4964
|
"hint-id": f(l)
|
|
4839
|
-
}, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) :
|
|
4965
|
+
}, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) : I("", !0)
|
|
4840
4966
|
], 16));
|
|
4841
4967
|
}
|
|
4842
4968
|
});
|
|
4843
|
-
function
|
|
4969
|
+
function Fl(e) {
|
|
4844
4970
|
const n = /^([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), a = /^([0]?[0-9]|1[0-2]):[0-5][0-9] ?(a|p|am|pm)$/i.test(e), l = /^([0]?[0-9]|1[0-2])[0-5][0-9] ?(a|p|am|pm)$/i.test(e);
|
|
4845
4971
|
return n ? "uFmt" : t ? "uFmtNoColon" : a ? "amPm" : l ? "amPmNoColon" : "";
|
|
4846
4972
|
}
|
|
4847
|
-
const
|
|
4848
|
-
function
|
|
4973
|
+
const Se = (e) => parseInt(e, 10);
|
|
4974
|
+
function jl(e = "") {
|
|
4849
4975
|
const n = /[^0-9:apmAPM]/g;
|
|
4850
4976
|
let t, a;
|
|
4851
|
-
switch (e = e.replaceAll(n, "").toLowerCase(),
|
|
4977
|
+
switch (e = e.replaceAll(n, "").toLowerCase(), Fl(e)) {
|
|
4852
4978
|
case "uFmt":
|
|
4853
4979
|
case "uFmtNoColon":
|
|
4854
|
-
a =
|
|
4980
|
+
a = Se(e.slice(-2)), t = Se(e.slice(0, -2));
|
|
4855
4981
|
break;
|
|
4856
4982
|
case "amPm":
|
|
4857
4983
|
case "amPmNoColon":
|
|
4858
|
-
const i = e.split(/(a|p|am|pm)/),
|
|
4859
|
-
a =
|
|
4984
|
+
const i = e.split(/(a|p|am|pm)/), d = e.includes("p");
|
|
4985
|
+
a = Se(i[0].slice(-2)), t = Se(i[0].slice(0, -2)), t < 12 && d && (t += 12), t === 12 && !d && (t = 0), t === 24 && (t = 0);
|
|
4860
4986
|
break;
|
|
4861
4987
|
}
|
|
4862
4988
|
return {
|
|
@@ -4864,18 +4990,18 @@ function Gl(e = "") {
|
|
|
4864
4990
|
minutes: a
|
|
4865
4991
|
};
|
|
4866
4992
|
}
|
|
4867
|
-
function
|
|
4993
|
+
function he(e = "") {
|
|
4868
4994
|
const n = /[^0-9:]/g;
|
|
4869
4995
|
if (e = e.replaceAll(n, ""), !e)
|
|
4870
4996
|
return "";
|
|
4871
|
-
const [t, a] = e.split(":"), l =
|
|
4872
|
-
return isNaN(l) || isNaN(i) || l > 23 || i > 59 ? "" : `${l % 12 || 12}:${a} ${
|
|
4997
|
+
const [t, a] = e.split(":"), l = Se(t), i = Se(a), d = l < 12 ? "AM" : "PM";
|
|
4998
|
+
return isNaN(l) || isNaN(i) || l > 23 || i > 59 ? "" : `${l % 12 || 12}:${a} ${d}`;
|
|
4873
4999
|
}
|
|
4874
|
-
function
|
|
4875
|
-
const { hours: n, minutes: t } =
|
|
5000
|
+
function Wl(e = "") {
|
|
5001
|
+
const { hours: n, minutes: t } = jl(e);
|
|
4876
5002
|
return isNaN(n) || isNaN(t) ? "" : `${n.toString().padStart(2, "0")}:${t.toString().padStart(2, "0")}`;
|
|
4877
5003
|
}
|
|
4878
|
-
const Fe = "excluded", je = "over", dt = "skip",
|
|
5004
|
+
const Fe = "excluded", je = "over", dt = "skip", st = "stop", We = "under", Ul = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4879
5005
|
__name: "BsTimePicker",
|
|
4880
5006
|
props: {
|
|
4881
5007
|
disabled: {
|
|
@@ -4940,20 +5066,20 @@ const Fe = "excluded", je = "over", dt = "skip", ut = "stop", We = "under", Kl =
|
|
|
4940
5066
|
},
|
|
4941
5067
|
emits: ["update:modelValue"],
|
|
4942
5068
|
setup(e, { expose: n, emit: t }) {
|
|
4943
|
-
const a = e, l = t, i = y(
|
|
5069
|
+
const a = e, l = t, i = y(he(a.modelValue)), d = y([]), o = y(""), s = y(!1);
|
|
4944
5070
|
function r() {
|
|
4945
5071
|
const T = [];
|
|
4946
5072
|
let m = !1;
|
|
4947
5073
|
for (let b = 0; b < 24 && !m; b++)
|
|
4948
5074
|
for (let q = 0; q < 60; q += a.step) {
|
|
4949
|
-
const M =
|
|
5075
|
+
const M = w(b, q), z = p(M);
|
|
4950
5076
|
if (z !== dt) {
|
|
4951
|
-
if (z ===
|
|
5077
|
+
if (z === st) {
|
|
4952
5078
|
m = !0;
|
|
4953
5079
|
break;
|
|
4954
5080
|
}
|
|
4955
5081
|
T.push({
|
|
4956
|
-
label:
|
|
5082
|
+
label: he(M),
|
|
4957
5083
|
value: M
|
|
4958
5084
|
});
|
|
4959
5085
|
}
|
|
@@ -4966,7 +5092,7 @@ const Fe = "excluded", je = "over", dt = "skip", ut = "stop", We = "under", Kl =
|
|
|
4966
5092
|
function p(T) {
|
|
4967
5093
|
switch (c(T)) {
|
|
4968
5094
|
case je:
|
|
4969
|
-
return
|
|
5095
|
+
return st;
|
|
4970
5096
|
case We:
|
|
4971
5097
|
case Fe:
|
|
4972
5098
|
return dt;
|
|
@@ -4974,68 +5100,68 @@ const Fe = "excluded", je = "over", dt = "skip", ut = "stop", We = "under", Kl =
|
|
|
4974
5100
|
return "";
|
|
4975
5101
|
}
|
|
4976
5102
|
}
|
|
4977
|
-
function
|
|
5103
|
+
function w(T, m) {
|
|
4978
5104
|
return T = T.toString().padStart(2, "0"), m = m.toString().padStart(2, "0"), `${T}:${m}`;
|
|
4979
5105
|
}
|
|
4980
5106
|
function g(T) {
|
|
4981
|
-
const m =
|
|
4982
|
-
m === a.modelValue && (i.value =
|
|
5107
|
+
const m = Wl(T);
|
|
5108
|
+
m === a.modelValue && (i.value = he(a.modelValue)), C(m);
|
|
4983
5109
|
}
|
|
4984
|
-
function
|
|
4985
|
-
|
|
5110
|
+
function k() {
|
|
5111
|
+
d.value = r();
|
|
4986
5112
|
}
|
|
4987
5113
|
function C(T) {
|
|
4988
|
-
|
|
5114
|
+
B(T), l("update:modelValue", T);
|
|
4989
5115
|
}
|
|
4990
|
-
function
|
|
5116
|
+
function B(T) {
|
|
4991
5117
|
switch (c(T)) {
|
|
4992
5118
|
case je:
|
|
4993
|
-
o.value = `Time must be before ${
|
|
5119
|
+
o.value = `Time must be before ${he(a.maxTime)}`, s.value = !0;
|
|
4994
5120
|
break;
|
|
4995
5121
|
case We:
|
|
4996
|
-
o.value = `Time must be after ${
|
|
5122
|
+
o.value = `Time must be after ${he(a.minTime)}`, s.value = !0;
|
|
4997
5123
|
break;
|
|
4998
5124
|
case Fe:
|
|
4999
|
-
o.value = `The following times are disabled: ${a.disabledTimes.map((b) =>
|
|
5125
|
+
o.value = `The following times are disabled: ${a.disabledTimes.map((b) => he(b)).join(", ")}`, s.value = !0;
|
|
5000
5126
|
break;
|
|
5001
5127
|
default:
|
|
5002
|
-
o.value = "",
|
|
5128
|
+
o.value = "", s.value = !1;
|
|
5003
5129
|
}
|
|
5004
5130
|
}
|
|
5005
|
-
return
|
|
5131
|
+
return Y(k), R([
|
|
5006
5132
|
() => a.disabledTimes,
|
|
5007
5133
|
() => a.maxTime,
|
|
5008
5134
|
() => a.minTime,
|
|
5009
5135
|
() => a.step
|
|
5010
|
-
],
|
|
5136
|
+
], k), R([
|
|
5011
5137
|
() => a.disabledTimes,
|
|
5012
5138
|
() => a.maxTime,
|
|
5013
5139
|
() => a.minTime,
|
|
5014
5140
|
() => a.modelValue
|
|
5015
|
-
], () =>
|
|
5016
|
-
i.value = a.modelValue ?
|
|
5141
|
+
], () => B(a.modelValue)), R(() => a.modelValue, (T) => {
|
|
5142
|
+
i.value = a.modelValue ? he(T) : "";
|
|
5017
5143
|
}), n({
|
|
5018
|
-
validationErr:
|
|
5144
|
+
validationErr: s,
|
|
5019
5145
|
validationErrMsg: o
|
|
5020
|
-
}), (T, m) => (
|
|
5146
|
+
}), (T, m) => (u(), E(gt, {
|
|
5021
5147
|
disabled: e.disabled,
|
|
5022
5148
|
"display-value": i.value,
|
|
5023
5149
|
"dropdown-position": e.dropdownPosition,
|
|
5024
5150
|
"dropdown-width": e.dropdownWidth,
|
|
5025
|
-
error: e.error ||
|
|
5151
|
+
error: e.error || s.value,
|
|
5026
5152
|
"helper-description": e.helperDescription,
|
|
5027
5153
|
"helper-text": e.helperText,
|
|
5028
5154
|
"hint-id": e.hintId,
|
|
5029
5155
|
"input-id": e.inputId,
|
|
5030
5156
|
"model-value": e.modelValue,
|
|
5031
|
-
options:
|
|
5157
|
+
options: d.value,
|
|
5032
5158
|
placeholder: e.placeholder,
|
|
5033
5159
|
required: e.required,
|
|
5034
5160
|
"update-on-input": !1,
|
|
5035
5161
|
"onUpdate:modelValue": g
|
|
5036
5162
|
}, null, 8, ["disabled", "display-value", "dropdown-position", "dropdown-width", "error", "helper-description", "helper-text", "hint-id", "input-id", "model-value", "options", "placeholder", "required"]));
|
|
5037
5163
|
}
|
|
5038
|
-
}),
|
|
5164
|
+
}), qo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5039
5165
|
__name: "BsTimePickerField",
|
|
5040
5166
|
props: {
|
|
5041
5167
|
disabled: {
|
|
@@ -5104,41 +5230,41 @@ const Fe = "excluded", je = "over", dt = "skip", ut = "stop", We = "under", Kl =
|
|
|
5104
5230
|
},
|
|
5105
5231
|
emits: ["update:modelValue"],
|
|
5106
5232
|
setup(e, { expose: n, emit: t }) {
|
|
5107
|
-
const a = e, [l, i] = Z(2),
|
|
5233
|
+
const a = e, [l, i] = Z(2), d = y(null), o = v(() => a.errorMsg || p.value), s = v(() => a.error || w.value), r = v(() => a.inputId || l.value), c = v(() => a.hint || s.value && o.value), p = v(() => {
|
|
5108
5234
|
var g;
|
|
5109
|
-
return (g =
|
|
5110
|
-
}),
|
|
5235
|
+
return (g = d.value) == null ? void 0 : g.validationErrMsg;
|
|
5236
|
+
}), w = v(() => {
|
|
5111
5237
|
var g;
|
|
5112
|
-
return (g =
|
|
5238
|
+
return (g = d.value) == null ? void 0 : g.validationErr;
|
|
5113
5239
|
});
|
|
5114
5240
|
return n({
|
|
5115
|
-
validationErr:
|
|
5241
|
+
validationErr: w,
|
|
5116
5242
|
validationErrMsg: p
|
|
5117
|
-
}), (g,
|
|
5243
|
+
}), (g, k) => (u(), h("div", N({
|
|
5118
5244
|
"aria-live": "polite",
|
|
5119
5245
|
"data-component": "bs-time-picker-field"
|
|
5120
|
-
}, f(K)(g.$attrs, f(
|
|
5121
|
-
e.label || g.$slots.label ? (
|
|
5246
|
+
}, f(K)(g.$attrs, f(fe)).remaining), [
|
|
5247
|
+
e.label || g.$slots.label ? (u(), E(te, {
|
|
5122
5248
|
key: 0,
|
|
5123
5249
|
for: g.$attrs.id || r.value,
|
|
5124
5250
|
disabled: e.disabled,
|
|
5125
5251
|
required: e.required
|
|
5126
5252
|
}, {
|
|
5127
|
-
default:
|
|
5128
|
-
|
|
5253
|
+
default: O(() => [
|
|
5254
|
+
P(g.$slots, "label", {}, () => [
|
|
5129
5255
|
H(A(e.label), 1)
|
|
5130
5256
|
])
|
|
5131
5257
|
]),
|
|
5132
5258
|
_: 3
|
|
5133
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
5134
|
-
V(
|
|
5259
|
+
}, 8, ["for", "disabled", "required"])) : I("", !0),
|
|
5260
|
+
V(Ul, N({
|
|
5135
5261
|
ref_key: "timePicker",
|
|
5136
|
-
ref:
|
|
5262
|
+
ref: d,
|
|
5137
5263
|
disabled: e.disabled,
|
|
5138
5264
|
"disabled-times": e.disabledTimes,
|
|
5139
5265
|
"dropdown-position": e.dropdownPosition,
|
|
5140
5266
|
"dropdown-width": e.dropdownWidth,
|
|
5141
|
-
error:
|
|
5267
|
+
error: s.value,
|
|
5142
5268
|
"helper-description": e.helperDescription,
|
|
5143
5269
|
"helper-text": e.helperText,
|
|
5144
5270
|
"hint-id": f(i),
|
|
@@ -5149,19 +5275,19 @@ const Fe = "excluded", je = "over", dt = "skip", ut = "stop", We = "under", Kl =
|
|
|
5149
5275
|
placeholder: e.placeholder,
|
|
5150
5276
|
required: e.required,
|
|
5151
5277
|
step: e.step,
|
|
5152
|
-
"onUpdate:modelValue":
|
|
5153
|
-
}, f(K)(g.$attrs, f(
|
|
5154
|
-
|
|
5155
|
-
error:
|
|
5278
|
+
"onUpdate:modelValue": k[0] || (k[0] = (C) => g.$emit("update:modelValue", C))
|
|
5279
|
+
}, f(K)(g.$attrs, f(fe)).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"]),
|
|
5280
|
+
de(V(be, {
|
|
5281
|
+
error: s.value,
|
|
5156
5282
|
"error-msg": o.value,
|
|
5157
5283
|
hint: e.hint,
|
|
5158
5284
|
"hint-id": f(i)
|
|
5159
5285
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
5160
|
-
[
|
|
5286
|
+
[se, c.value]
|
|
5161
5287
|
])
|
|
5162
5288
|
], 16));
|
|
5163
5289
|
}
|
|
5164
|
-
}),
|
|
5290
|
+
}), Gl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Hl = ["data-status"], Kl = { class: "visually-hidden" }, Do = {
|
|
5165
5291
|
__name: "BsTimeline",
|
|
5166
5292
|
props: {
|
|
5167
5293
|
/** @type {Status} */
|
|
@@ -5190,43 +5316,43 @@ const Fe = "excluded", je = "over", dt = "skip", ut = "stop", We = "under", Kl =
|
|
|
5190
5316
|
},
|
|
5191
5317
|
setup(e) {
|
|
5192
5318
|
const n = e, t = {
|
|
5193
|
-
cancelled:
|
|
5319
|
+
cancelled: Lt,
|
|
5194
5320
|
complete: qt,
|
|
5195
5321
|
error: Dt,
|
|
5196
5322
|
"in-progress": Mt,
|
|
5197
5323
|
"not-started": tt,
|
|
5198
5324
|
ongoing: Nt,
|
|
5199
5325
|
paused: zt,
|
|
5200
|
-
warning:
|
|
5326
|
+
warning: ht
|
|
5201
5327
|
}, { progressStep: a, progressText: l, getStatus: i } = yt(n);
|
|
5202
|
-
function
|
|
5203
|
-
return o = i(o,
|
|
5328
|
+
function d(o, s) {
|
|
5329
|
+
return o = i(o, s), t[o] || tt;
|
|
5204
5330
|
}
|
|
5205
|
-
return (o,
|
|
5331
|
+
return (o, s) => (u(), h("div", {
|
|
5206
5332
|
"aria-valuemax": e.steps.length,
|
|
5207
5333
|
"aria-valuenow": f(a),
|
|
5208
5334
|
"aria-valuetext": f(l),
|
|
5209
5335
|
class: "bs-timeline",
|
|
5210
5336
|
role: "progressbar"
|
|
5211
5337
|
}, [
|
|
5212
|
-
(
|
|
5338
|
+
(u(!0), h(G, null, _(e.steps, (r, c) => (u(), h("div", {
|
|
5213
5339
|
class: "bs-step-item",
|
|
5214
5340
|
"data-status": f(i)(r.status, c),
|
|
5215
5341
|
key: r.id || r.label,
|
|
5216
5342
|
role: "status"
|
|
5217
5343
|
}, [
|
|
5218
|
-
(
|
|
5344
|
+
(u(), E(ee(d(r.status, c)), {
|
|
5219
5345
|
class: "bs-step-icon",
|
|
5220
5346
|
role: "presentation"
|
|
5221
5347
|
})),
|
|
5222
5348
|
S("p", null, [
|
|
5223
5349
|
H(A(r.label || r) + " ", 1),
|
|
5224
|
-
S("span",
|
|
5350
|
+
S("span", Kl, " : " + A(f(i)(r.status, c) || "not started"), 1)
|
|
5225
5351
|
])
|
|
5226
|
-
], 8,
|
|
5227
|
-
], 8,
|
|
5352
|
+
], 8, Hl))), 128))
|
|
5353
|
+
], 8, Gl));
|
|
5228
5354
|
}
|
|
5229
|
-
},
|
|
5355
|
+
}, Yl = ["data-variant", "data-stacked"], Mo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5230
5356
|
__name: "BsToast",
|
|
5231
5357
|
props: {
|
|
5232
5358
|
shown: {
|
|
@@ -5275,76 +5401,76 @@ const Fe = "excluded", je = "over", dt = "skip", ut = "stop", We = "under", Kl =
|
|
|
5275
5401
|
const t = e, a = n, { transition: l } = Ee(t);
|
|
5276
5402
|
let i = null;
|
|
5277
5403
|
ue("variant", t.variant), ue("handleDismiss", o);
|
|
5278
|
-
const
|
|
5404
|
+
const d = ce("stacked", t.stacked);
|
|
5279
5405
|
function o() {
|
|
5280
5406
|
i && (clearTimeout(i), i = null), a("dismiss", t.toastId);
|
|
5281
5407
|
}
|
|
5282
|
-
function
|
|
5408
|
+
function s() {
|
|
5283
5409
|
t.duration > 0 && (i = setTimeout(() => {
|
|
5284
5410
|
o();
|
|
5285
5411
|
}, t.duration)), a("after-enter");
|
|
5286
5412
|
}
|
|
5287
|
-
return (r, c) => (
|
|
5413
|
+
return (r, c) => (u(), E(f(Me), {
|
|
5288
5414
|
shown: f(l),
|
|
5289
5415
|
preloaded: e.preloaded,
|
|
5290
5416
|
duration: 200,
|
|
5291
5417
|
"enter-attribute": "data-shown",
|
|
5292
|
-
onAfterEnter:
|
|
5418
|
+
onAfterEnter: s,
|
|
5293
5419
|
onAfterLeave: c[0] || (c[0] = (p) => a("after-leave"))
|
|
5294
5420
|
}, {
|
|
5295
|
-
default:
|
|
5421
|
+
default: O(() => [
|
|
5296
5422
|
S("div", N({
|
|
5297
5423
|
class: "bs-toast",
|
|
5298
5424
|
"data-variant": e.variant,
|
|
5299
|
-
"data-stacked": f(
|
|
5425
|
+
"data-stacked": f(d) || void 0,
|
|
5300
5426
|
role: "alert"
|
|
5301
5427
|
}, r.$attrs), [
|
|
5302
|
-
|
|
5303
|
-
], 16,
|
|
5428
|
+
P(r.$slots, "default")
|
|
5429
|
+
], 16, Yl)
|
|
5304
5430
|
]),
|
|
5305
5431
|
_: 3
|
|
5306
5432
|
}, 8, ["shown", "preloaded"]));
|
|
5307
5433
|
}
|
|
5308
|
-
}),
|
|
5434
|
+
}), Xl = ["data-stacked"], No = {
|
|
5309
5435
|
__name: "BsToastActions",
|
|
5310
5436
|
setup(e) {
|
|
5311
5437
|
const n = y(!1);
|
|
5312
|
-
|
|
5438
|
+
Y(() => {
|
|
5313
5439
|
var l;
|
|
5314
5440
|
const a = Tt();
|
|
5315
5441
|
((l = a.default) == null ? void 0 : l.call(a).length) > 2 && (n.value = !0);
|
|
5316
5442
|
});
|
|
5317
5443
|
const t = ce("handleDismiss");
|
|
5318
|
-
return (a, l) => (
|
|
5444
|
+
return (a, l) => (u(), h("div", {
|
|
5319
5445
|
class: "bs-toast-actions",
|
|
5320
5446
|
"data-stacked": n.value || void 0
|
|
5321
5447
|
}, [
|
|
5322
|
-
|
|
5448
|
+
P(a.$slots, "default", {}, () => [
|
|
5323
5449
|
V(ca, {
|
|
5324
5450
|
size: "sm",
|
|
5325
5451
|
"text-btn": "",
|
|
5326
5452
|
onClick: f(t)
|
|
5327
5453
|
}, {
|
|
5328
|
-
default:
|
|
5454
|
+
default: O(() => [
|
|
5329
5455
|
H(" Dismiss ")
|
|
5330
5456
|
]),
|
|
5331
5457
|
_: 1
|
|
5332
5458
|
}, 8, ["onClick"])
|
|
5333
5459
|
])
|
|
5334
|
-
], 8,
|
|
5460
|
+
], 8, Xl));
|
|
5335
5461
|
}
|
|
5336
|
-
},
|
|
5462
|
+
}, Zl = (e, n) => {
|
|
5337
5463
|
const t = e.__vccOpts || e;
|
|
5338
5464
|
for (const [a, l] of n)
|
|
5339
5465
|
t[a] = l;
|
|
5340
5466
|
return t;
|
|
5341
|
-
},
|
|
5342
|
-
function
|
|
5343
|
-
return
|
|
5344
|
-
|
|
5467
|
+
}, Ql = {}, Jl = { class: "bs-toast-body" };
|
|
5468
|
+
function _l(e, n) {
|
|
5469
|
+
return u(), h("div", Jl, [
|
|
5470
|
+
P(e.$slots, "default")
|
|
5345
5471
|
]);
|
|
5346
5472
|
}
|
|
5347
|
-
const
|
|
5473
|
+
const zo = /* @__PURE__ */ Zl(Ql, [["render", _l]]), eo = ["data-variant"], Ro = {
|
|
5348
5474
|
__name: "BsToastHeader",
|
|
5349
5475
|
setup(e) {
|
|
5350
5476
|
const n = ce("variant"), t = v(() => {
|
|
@@ -5356,27 +5482,27 @@ const Fo = /* @__PURE__ */ _l(eo, [["render", ao]]), no = ["data-variant"], jo =
|
|
|
5356
5482
|
case "negative":
|
|
5357
5483
|
return Ge;
|
|
5358
5484
|
default:
|
|
5359
|
-
return
|
|
5485
|
+
return ht;
|
|
5360
5486
|
}
|
|
5361
5487
|
});
|
|
5362
|
-
return (a, l) => (
|
|
5488
|
+
return (a, l) => (u(), h("div", {
|
|
5363
5489
|
class: "bs-toast-header",
|
|
5364
5490
|
"data-variant": f(n)
|
|
5365
5491
|
}, [
|
|
5366
|
-
(
|
|
5492
|
+
(u(), E(ee(t.value), { class: "bs-toast-header-icon" })),
|
|
5367
5493
|
S("h5", null, [
|
|
5368
|
-
|
|
5494
|
+
P(a.$slots, "default")
|
|
5369
5495
|
])
|
|
5370
|
-
], 8,
|
|
5496
|
+
], 8, eo));
|
|
5371
5497
|
}
|
|
5372
|
-
},
|
|
5498
|
+
}, to = { class: "bs-toaster" }, Fo = {
|
|
5373
5499
|
__name: "BsToaster",
|
|
5374
5500
|
setup(e) {
|
|
5375
|
-
return ue("stacked", !0), (n, t) => (
|
|
5376
|
-
|
|
5501
|
+
return ue("stacked", !0), (n, t) => (u(), h("div", to, [
|
|
5502
|
+
P(n.$slots, "default")
|
|
5377
5503
|
]));
|
|
5378
5504
|
}
|
|
5379
|
-
},
|
|
5505
|
+
}, ao = ["data-position"], no = ["id"], jo = {
|
|
5380
5506
|
__name: "BsTooltip",
|
|
5381
5507
|
props: {
|
|
5382
5508
|
tooltipId: {
|
|
@@ -5407,88 +5533,89 @@ const Fo = /* @__PURE__ */ _l(eo, [["render", ao]]), no = ["data-variant"], jo =
|
|
|
5407
5533
|
let o = "bs-tooltip-text";
|
|
5408
5534
|
return a.value && (n.position === void 0 || n.position === "top" || n.position === "bottom" ? o += " escaped-x" : n.position === "left" || n.position === "right" ? o += " escaped-y" : o += " escaped"), o;
|
|
5409
5535
|
});
|
|
5410
|
-
|
|
5536
|
+
we(["Escape"], () => {
|
|
5411
5537
|
t.value && (t.value = !1, a.value = !0);
|
|
5412
5538
|
});
|
|
5413
5539
|
function i() {
|
|
5414
5540
|
t.value = !0;
|
|
5415
5541
|
}
|
|
5416
|
-
function
|
|
5542
|
+
function d() {
|
|
5417
5543
|
t.value = !1, a.value = !1;
|
|
5418
5544
|
}
|
|
5419
|
-
return (o,
|
|
5545
|
+
return (o, s) => (u(), h("div", {
|
|
5420
5546
|
class: "bs-tooltip",
|
|
5421
5547
|
"data-position": e.position || void 0,
|
|
5422
5548
|
"data-component": "bs-tooltip",
|
|
5423
5549
|
onMouseenter: i,
|
|
5424
5550
|
onFocusin: i,
|
|
5425
|
-
onMouseleave:
|
|
5426
|
-
onFocusout:
|
|
5551
|
+
onMouseleave: d,
|
|
5552
|
+
onFocusout: d
|
|
5427
5553
|
}, [
|
|
5428
|
-
|
|
5429
|
-
e.content ? (
|
|
5554
|
+
P(o.$slots, "default"),
|
|
5555
|
+
e.content ? (u(), h("div", {
|
|
5430
5556
|
key: 0,
|
|
5431
5557
|
class: oe(l.value),
|
|
5432
5558
|
id: e.tooltipId,
|
|
5433
5559
|
role: "tooltip"
|
|
5434
|
-
}, A(e.content), 11,
|
|
5435
|
-
], 40,
|
|
5560
|
+
}, A(e.content), 11, no)) : I("", !0)
|
|
5561
|
+
], 40, ao));
|
|
5436
5562
|
}
|
|
5437
5563
|
};
|
|
5438
5564
|
export {
|
|
5439
|
-
|
|
5565
|
+
co as BsAccordion,
|
|
5440
5566
|
ra as BsBadge,
|
|
5441
|
-
|
|
5567
|
+
fo as BsBanner,
|
|
5442
5568
|
ca as BsButton,
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5569
|
+
po as BsCalendar,
|
|
5570
|
+
vo as BsChartBar,
|
|
5571
|
+
ho as BsCheckbox,
|
|
5572
|
+
mo as BsCircleButton,
|
|
5573
|
+
mt as BsDropdown,
|
|
5574
|
+
gt as BsDropdownCombobox,
|
|
5575
|
+
bo as BsDropdownComboboxField,
|
|
5576
|
+
Sn as BsDropdownMultiselect,
|
|
5450
5577
|
Xe as BsDropdownOption,
|
|
5451
|
-
|
|
5578
|
+
Le as BsDropdownOptionBuilder,
|
|
5452
5579
|
Ze as BsDropdownOptionList,
|
|
5453
5580
|
Qe as BsDropdownWithOptions,
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5581
|
+
vn as BsDropdownWithToggle,
|
|
5582
|
+
be as BsFieldDetails,
|
|
5583
|
+
an as BsFilterButton,
|
|
5584
|
+
go as BsIconGradientWrapper,
|
|
5585
|
+
Be as BsInput,
|
|
5459
5586
|
Pe as BsInputAddon,
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5587
|
+
yo as BsInputField,
|
|
5588
|
+
So as BsInputPhone,
|
|
5589
|
+
Vn as BsInputSearch,
|
|
5463
5590
|
wo as BsInputTypeahead,
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5591
|
+
te as BsLabel,
|
|
5592
|
+
Nn as BsLoader,
|
|
5593
|
+
Bo as BsModal,
|
|
5594
|
+
Fn as BsOverlay,
|
|
5595
|
+
$o as BsPagination,
|
|
5596
|
+
Io as BsPill,
|
|
5597
|
+
ko as BsProfile,
|
|
5598
|
+
hl as BsProfileDetails,
|
|
5599
|
+
bt as BsProfileImg,
|
|
5600
|
+
To as BsProgressBar,
|
|
5601
|
+
Co as BsRadio,
|
|
5602
|
+
wl as BsSelect,
|
|
5603
|
+
xo as BsSelectField,
|
|
5604
|
+
Ao as BsSpinner,
|
|
5605
|
+
Vo as BsSwitch,
|
|
5606
|
+
Eo as BsTab,
|
|
5607
|
+
Po as BsTabList,
|
|
5608
|
+
Oo as BsTabPanel,
|
|
5609
|
+
Rl as BsTextarea,
|
|
5610
|
+
Lo as BsTextareaField,
|
|
5611
|
+
Ul as BsTimePicker,
|
|
5612
|
+
qo as BsTimePickerField,
|
|
5613
|
+
Do as BsTimeline,
|
|
5614
|
+
Mo as BsToast,
|
|
5615
|
+
No as BsToastActions,
|
|
5616
|
+
zo as BsToastBody,
|
|
5617
|
+
Ro as BsToastHeader,
|
|
5618
|
+
Fo as BsToaster,
|
|
5619
|
+
jo as BsTooltip,
|
|
5493
5620
|
Me as BsTransition
|
|
5494
5621
|
};
|