@wwtdev/bsds-components-vue3 2.4.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bsds-components.js +1583 -1404
- package/lib/components.css +1 -1
- package/package.json +2 -2
package/lib/bsds-components.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { computed as p, ref as
|
|
2
|
-
import { v4 as
|
|
3
|
-
import { BsIconCaretDown as
|
|
4
|
-
import { DatePicker as
|
|
5
|
-
import { Chart as
|
|
6
|
-
import { getSupportedCallingCodes as
|
|
1
|
+
import { computed as p, ref as g, onMounted as X, onUnmounted as ve, shallowRef as vt, watch as N, defineAsyncComponent as Re, openBlock as s, createElementBlock as v, unref as f, createElementVNode as b, renderSlot as x, createBlock as E, resolveDynamicComponent as te, createCommentVNode as S, toDisplayString as C, createVNode as A, normalizeClass as le, useAttrs as fe, mergeProps as z, withCtx as L, Fragment as W, toHandlers as Me, onBeforeUnmount as at, onBeforeMount as nt, nextTick as ge, createTextVNode as H, createSlots as lt, renderList as _, Teleport as pt, withDirectives as Te, Transition as Ke, vShow as xe, provide as ue, inject as ce, withModifiers as ht, isRef as bt, useSlots as gt } from "vue";
|
|
2
|
+
import { v4 as ot } from "uuid";
|
|
3
|
+
import { BsIconCaretDown as it, BsIconWarning as Ne, BsIconClose as Ae, BsIconCalendar as rt, BsIconCaretSort as mt, BsIconSearch as yt, BsIconCaretLeftDouble as Bt, BsIconCaretLeft as St, BsIconCaretRight as $t, BsIconCaretRightDouble as wt, BsIconActionEllipsis as kt, BsIconGraphPieEmpty as Ye, BsIconCircleStop as It, BsIconCircleCheck as Ct, BsIconCircleX as Tt, BsIconCircleEllipsis as xt, BsIconCirclePlay as At, BsIconCirclePause as Vt, BsIconCircleExclamation as st, BsIconThumbsUpStroke as Lt } from "@wwtdev/bsds-icons-vue3";
|
|
4
|
+
import { DatePicker as Et } from "v-calendar";
|
|
5
|
+
import { Chart as Pe, BarController as Ot, BarElement as Dt, CategoryScale as Pt, LinearScale as qt, Legend as Mt, Tooltip as Nt } from "chart.js";
|
|
6
|
+
import { getSupportedCallingCodes as zt, getRegionCodeForCountryCode as Rt, parsePhoneNumber as Xe } from "awesome-phonenumber";
|
|
7
7
|
const Qe = {
|
|
8
8
|
href: "a",
|
|
9
9
|
linkTo: "a",
|
|
@@ -11,111 +11,111 @@ const Qe = {
|
|
|
11
11
|
onClick: "button",
|
|
12
12
|
type: "button"
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
const n =
|
|
16
|
-
const o = n.value === "button",
|
|
17
|
-
return o ? (
|
|
18
|
-
}),
|
|
14
|
+
function Ve(e, a, t = "button") {
|
|
15
|
+
const n = Ft(e, a, t), l = p(() => {
|
|
16
|
+
const o = n.value === "button", d = {};
|
|
17
|
+
return o ? (d.type = a.type || "button", d.autocomplete = "off", e.disabled && (d.disabled = !0)) : e.disabled && (d["aria-disabled"] = "true", d.tabindex = "-1"), d;
|
|
18
|
+
}), r = p(() => {
|
|
19
19
|
const o = { ...a, ...l.value };
|
|
20
20
|
return delete o.href, o;
|
|
21
21
|
}), u = p(() => e.linkTo || e.href);
|
|
22
|
-
return { rootTag: n, attrsToBind:
|
|
22
|
+
return { rootTag: n, attrsToBind: r, hrefUrl: u };
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
const n = Object.keys(Qe).find((l) =>
|
|
26
|
-
return
|
|
24
|
+
function Ft(e, a, t) {
|
|
25
|
+
const n = Object.keys(Qe).find((l) => jt(e, a, l));
|
|
26
|
+
return g(Qe[n] || t);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function jt(e, a, t) {
|
|
29
29
|
return e[t] || a[t];
|
|
30
30
|
}
|
|
31
|
-
const
|
|
31
|
+
const Ut = (e, a) => {
|
|
32
32
|
const t = (n) => {
|
|
33
33
|
e.some((l) => {
|
|
34
|
-
var
|
|
35
|
-
return (
|
|
34
|
+
var r;
|
|
35
|
+
return (r = l.value) == null ? void 0 : r.contains(n.target);
|
|
36
36
|
}) || a(n);
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
X(() => {
|
|
39
39
|
document.addEventListener("click", t);
|
|
40
|
-
}),
|
|
40
|
+
}), ve(() => {
|
|
41
41
|
document.removeEventListener("click", t);
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
-
function
|
|
44
|
+
function Le(e) {
|
|
45
45
|
const a = p(() => e.linkTo || e.href || ""), t = p(() => {
|
|
46
|
-
var
|
|
47
|
-
return ((u = (
|
|
46
|
+
var r, u;
|
|
47
|
+
return ((u = (r = a.value) == null ? void 0 : r.startsWith) == null ? void 0 : u.call(r, "/")) || !1;
|
|
48
48
|
}), n = p(() => {
|
|
49
|
-
var
|
|
50
|
-
return t.value && ((
|
|
49
|
+
var r, u;
|
|
50
|
+
return t.value && ((r = e.router) == null ? void 0 : r.navigateTo) || ((u = e.router) == null ? void 0 : u.push) || null;
|
|
51
51
|
});
|
|
52
|
-
function l(
|
|
52
|
+
function l(r) {
|
|
53
53
|
if (e.disabled) {
|
|
54
|
-
|
|
54
|
+
r.preventDefault(), r.stopImmediatePropagation();
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
57
|
if (!a.value || !n.value)
|
|
58
58
|
return;
|
|
59
|
-
|
|
59
|
+
r.target.closest("a").href === `${window.location.origin}${a.value}` && (r.preventDefault(), n.value(a.value));
|
|
60
60
|
}
|
|
61
61
|
return { onLinkClick: l };
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Je(e) {
|
|
64
64
|
return e.split("-").map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join("");
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const ke = (e, a) => {
|
|
67
67
|
function t(l) {
|
|
68
68
|
if (!l)
|
|
69
69
|
return null;
|
|
70
|
-
const
|
|
70
|
+
const r = l.startsWith("bs-") ? Je(l) : `BsIcon${Je(l)}`;
|
|
71
71
|
return Re(async () => {
|
|
72
|
-
const { [
|
|
72
|
+
const { [r]: u } = await import("@wwtdev/bsds-icons-vue3");
|
|
73
73
|
return u;
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
const n =
|
|
77
|
-
return n.value = t(e[a]),
|
|
76
|
+
const n = vt();
|
|
77
|
+
return n.value = t(e[a]), N(() => e[a], async (l) => n.value = t(l)), { icon: n };
|
|
78
78
|
};
|
|
79
|
-
function
|
|
79
|
+
function Z(e = 1) {
|
|
80
80
|
const a = [];
|
|
81
81
|
for (let t = 0; t < e; t++)
|
|
82
|
-
a.push(
|
|
83
|
-
return
|
|
84
|
-
a.forEach((t) => t.value = `id-${
|
|
82
|
+
a.push(g(""));
|
|
83
|
+
return X(() => {
|
|
84
|
+
a.forEach((t) => t.value = `id-${ot()}`);
|
|
85
85
|
}), a;
|
|
86
86
|
}
|
|
87
|
-
const
|
|
87
|
+
const me = (e, a, t = void 0) => {
|
|
88
88
|
const n = (l) => {
|
|
89
89
|
e.includes(l.key) && a(l);
|
|
90
90
|
};
|
|
91
|
-
|
|
91
|
+
X(() => {
|
|
92
92
|
((t == null ? void 0 : t.value) ?? document).addEventListener("keydown", n);
|
|
93
|
-
}),
|
|
93
|
+
}), ve(() => {
|
|
94
94
|
((t == null ? void 0 : t.value) ?? document).removeEventListener("keydown", n);
|
|
95
95
|
});
|
|
96
|
-
},
|
|
96
|
+
}, Wt = (e, a, t) => {
|
|
97
97
|
let n = null;
|
|
98
|
-
|
|
98
|
+
X(() => {
|
|
99
99
|
n = new MutationObserver(a), n.observe(e.value, t);
|
|
100
|
-
}),
|
|
100
|
+
}), ve(() => {
|
|
101
101
|
n.disconnect();
|
|
102
102
|
});
|
|
103
|
-
},
|
|
104
|
-
const a =
|
|
105
|
-
return
|
|
103
|
+
}, ye = (e) => {
|
|
104
|
+
const a = g(!1);
|
|
105
|
+
return X(() => {
|
|
106
106
|
e.enterControlled ? a.value = e.enterTrigger : a.value = e.shown;
|
|
107
|
-
}),
|
|
107
|
+
}), N(() => e.shown, (t) => {
|
|
108
108
|
a.value = t;
|
|
109
|
-
}),
|
|
109
|
+
}), N(() => e.enterTrigger, (t) => {
|
|
110
110
|
a.value = t;
|
|
111
|
-
}),
|
|
111
|
+
}), N(() => e.leaveTrigger, (t) => {
|
|
112
112
|
t && (a.value = !1);
|
|
113
113
|
}), { transition: a };
|
|
114
|
-
},
|
|
114
|
+
}, Gt = ["id", "data-stacked"], Ht = ["data-open"], Kt = ["aria-controls", "aria-expanded"], Yt = {
|
|
115
115
|
key: 0,
|
|
116
116
|
"data-position": "start",
|
|
117
117
|
style: { display: "inline-flex" }
|
|
118
|
-
},
|
|
118
|
+
}, Xt = ["id"], Qt = ["aria-labelledby", "data-open", "id"], Ql = {
|
|
119
119
|
__name: "BsAccordion",
|
|
120
120
|
props: {
|
|
121
121
|
controlled: { type: Boolean, default: !1 },
|
|
@@ -132,11 +132,11 @@ const Ie = (e, a, t = void 0) => {
|
|
|
132
132
|
},
|
|
133
133
|
emits: ["toggled"],
|
|
134
134
|
setup(e, { emit: a }) {
|
|
135
|
-
const t = e, n = a, l =
|
|
135
|
+
const t = e, n = a, l = g(null), r = g(!1), { icon: u } = ke(t, "icon"), [o] = Z(), d = p(() => o.value + "-content"), i = p(() => o.value + "-title"), c = p(() => t.openItemId && t.openItemId === o.value || t.openItem === !0), h = p(() => t.controlled ? c.value : r.value);
|
|
136
136
|
function w() {
|
|
137
|
-
n("toggled", o.value), t.controlled || (
|
|
137
|
+
n("toggled", o.value), t.controlled || (r.value = !r.value);
|
|
138
138
|
}
|
|
139
|
-
return (
|
|
139
|
+
return ($, M) => (s(), v("div", {
|
|
140
140
|
id: f(o),
|
|
141
141
|
ref_key: "containerRef",
|
|
142
142
|
ref: l,
|
|
@@ -144,43 +144,43 @@ const Ie = (e, a, t = void 0) => {
|
|
|
144
144
|
"data-component": "bs-accordion",
|
|
145
145
|
"data-stacked": e.stacked
|
|
146
146
|
}, [
|
|
147
|
-
|
|
147
|
+
b("header", {
|
|
148
148
|
part: "header",
|
|
149
|
-
"data-open":
|
|
149
|
+
"data-open": h.value
|
|
150
150
|
}, [
|
|
151
|
-
|
|
152
|
-
"aria-controls":
|
|
153
|
-
"aria-expanded":
|
|
151
|
+
b("button", {
|
|
152
|
+
"aria-controls": d.value,
|
|
153
|
+
"aria-expanded": h.value,
|
|
154
154
|
type: "button",
|
|
155
155
|
onClick: w
|
|
156
156
|
}, [
|
|
157
|
-
e.icon ||
|
|
158
|
-
|
|
159
|
-
e.icon ? (
|
|
157
|
+
e.icon || $.$slots.icon ? (s(), v("span", Yt, [
|
|
158
|
+
x($.$slots, "icon", {}, () => [
|
|
159
|
+
e.icon ? (s(), E(te(f(u) ? f(u) : "span"), { key: 0 })) : S("", !0)
|
|
160
160
|
])
|
|
161
|
-
])) :
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
])) : S("", !0),
|
|
162
|
+
b("span", { id: i.value }, C(e.headerText), 9, Xt),
|
|
163
|
+
A(f(it), {
|
|
164
164
|
size: "md",
|
|
165
165
|
"data-position": "end"
|
|
166
166
|
})
|
|
167
|
-
], 8,
|
|
168
|
-
], 8,
|
|
169
|
-
|
|
170
|
-
"aria-labelledby":
|
|
167
|
+
], 8, Kt)
|
|
168
|
+
], 8, Ht),
|
|
169
|
+
b("div", {
|
|
170
|
+
"aria-labelledby": i.value,
|
|
171
171
|
class: "bs-accordion-content",
|
|
172
|
-
"data-open":
|
|
173
|
-
id:
|
|
172
|
+
"data-open": h.value,
|
|
173
|
+
id: d.value,
|
|
174
174
|
part: "content",
|
|
175
175
|
role: "region"
|
|
176
176
|
}, [
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
b("div", null, [
|
|
178
|
+
x($.$slots, "default")
|
|
179
179
|
])
|
|
180
|
-
], 8,
|
|
181
|
-
], 8,
|
|
180
|
+
], 8, Qt)
|
|
181
|
+
], 8, Gt));
|
|
182
182
|
}
|
|
183
|
-
},
|
|
183
|
+
}, Jt = ["aria-label", "data-badge-color", "data-count", "data-position", "data-show-zero", "data-variant"], Zt = {
|
|
184
184
|
__name: "BsBadge",
|
|
185
185
|
props: {
|
|
186
186
|
/** Pass value to set `data-badge-color`. */
|
|
@@ -227,19 +227,19 @@ const Ie = (e, a, t = void 0) => {
|
|
|
227
227
|
}
|
|
228
228
|
},
|
|
229
229
|
setup(e) {
|
|
230
|
-
const a = e, t =
|
|
231
|
-
var
|
|
232
|
-
const
|
|
230
|
+
const a = e, t = g(null), n = p(() => a.count === 0 ? "0" : !a.count || a.dot ? null : a.count > a.countMax ? a.countMax + "+" : a.count.toString()), l = p(() => {
|
|
231
|
+
var d, i;
|
|
232
|
+
const r = ((i = (d = t.value) == null ? void 0 : d.textContent) == null ? void 0 : i.trim()) || "", u = n.value ? n.value + " " : "";
|
|
233
233
|
if (!u && !a.dot)
|
|
234
|
-
return
|
|
234
|
+
return r;
|
|
235
235
|
const o = a.count !== 1 ? "s" : "";
|
|
236
|
-
return `${
|
|
236
|
+
return `${r ? `${r}, ` : ""}${u}${a.label}${o}`;
|
|
237
237
|
});
|
|
238
|
-
return (
|
|
238
|
+
return (r, u) => (s(), v("span", {
|
|
239
239
|
ref_key: "hostRef",
|
|
240
240
|
ref: t,
|
|
241
241
|
"aria-label": l.value,
|
|
242
|
-
class:
|
|
242
|
+
class: le({ "bs-badge": e.dot || n.value }),
|
|
243
243
|
"data-badge-color": e.color,
|
|
244
244
|
"data-component": "bs-badge",
|
|
245
245
|
"data-count": n.value,
|
|
@@ -248,43 +248,73 @@ const Ie = (e, a, t = void 0) => {
|
|
|
248
248
|
"data-variant": e.variant,
|
|
249
249
|
role: "status"
|
|
250
250
|
}, [
|
|
251
|
-
e.variant !== "notext" ?
|
|
252
|
-
], 10,
|
|
251
|
+
e.variant !== "notext" ? x(r.$slots, "default", { key: 0 }) : S("", !0)
|
|
252
|
+
], 10, Jt));
|
|
253
253
|
}
|
|
254
|
-
},
|
|
254
|
+
}, _t = {
|
|
255
255
|
key: 0,
|
|
256
256
|
role: "alert",
|
|
257
257
|
class: "bs-banner"
|
|
258
|
-
},
|
|
258
|
+
}, ea = { class: "bs-banner-content" }, ta = { class: "bs-banner-warning-icon" }, Jl = {
|
|
259
259
|
__name: "BsBanner",
|
|
260
260
|
emits: ["dismiss"],
|
|
261
261
|
setup(e, { emit: a }) {
|
|
262
|
-
const t = a, n =
|
|
262
|
+
const t = a, n = g(!1);
|
|
263
263
|
function l() {
|
|
264
264
|
n.value = !0, t("dismiss");
|
|
265
265
|
}
|
|
266
|
-
return (
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
266
|
+
return (r, u) => n.value ? S("", !0) : (s(), v("div", _t, [
|
|
267
|
+
b("div", ea, [
|
|
268
|
+
b("div", ta, [
|
|
269
|
+
A(f(Ne), { size: "lg" })
|
|
270
270
|
]),
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
b("p", null, [
|
|
272
|
+
x(r.$slots, "default")
|
|
273
273
|
]),
|
|
274
|
-
|
|
274
|
+
b("button", {
|
|
275
275
|
type: "button",
|
|
276
276
|
title: "Close Banner",
|
|
277
277
|
onClick: l
|
|
278
278
|
}, [
|
|
279
|
-
|
|
279
|
+
A(f(Ae))
|
|
280
280
|
])
|
|
281
281
|
])
|
|
282
282
|
]));
|
|
283
283
|
}
|
|
284
|
-
},
|
|
284
|
+
}, aa = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
285
|
+
__name: "BsButton",
|
|
286
|
+
props: {
|
|
287
|
+
variant: { type: String },
|
|
288
|
+
disabled: { type: Boolean, default: !1 },
|
|
289
|
+
ghostBtn: { type: Boolean, default: !1 },
|
|
290
|
+
/** @DEPRECATED in favor of linkTo */
|
|
291
|
+
href: { type: String },
|
|
292
|
+
linkTo: { type: String },
|
|
293
|
+
router: {},
|
|
294
|
+
textBtn: { type: Boolean, default: !1 },
|
|
295
|
+
size: { type: String, validator: (e) => ["sm", "xs", "xxs"].includes(e) }
|
|
296
|
+
},
|
|
297
|
+
setup(e) {
|
|
298
|
+
const a = e, t = fe(), { rootTag: n, attrsToBind: l, hrefUrl: r } = Ve(a, t), { onLinkClick: u } = Le(a);
|
|
299
|
+
return (o, d) => (s(), E(te(f(n)), z({
|
|
300
|
+
class: "bs-button",
|
|
301
|
+
"data-component": "bs-button",
|
|
302
|
+
"data-ghost": e.ghostBtn,
|
|
303
|
+
"data-size": e.size,
|
|
304
|
+
"data-text": e.textBtn,
|
|
305
|
+
"data-variant": e.variant,
|
|
306
|
+
".href": f(r)
|
|
307
|
+
}, f(l), { onClick: f(u) }), {
|
|
308
|
+
default: L(() => [
|
|
309
|
+
x(o.$slots, "default")
|
|
310
|
+
]),
|
|
311
|
+
_: 3
|
|
312
|
+
}, 48, ["data-ghost", "data-size", "data-text", "data-variant", ".href", "onClick"]));
|
|
313
|
+
}
|
|
314
|
+
}), na = {
|
|
285
315
|
class: "bs-field-details",
|
|
286
316
|
"data-component": "bs-field-details"
|
|
287
|
-
},
|
|
317
|
+
}, la = ["id", "data-error"], oa = ["data-error"], Be = {
|
|
288
318
|
__name: "BsFieldDetails",
|
|
289
319
|
props: {
|
|
290
320
|
/** The number of characters that have been entered by the user. */
|
|
@@ -305,25 +335,25 @@ const Ie = (e, a, t = void 0) => {
|
|
|
305
335
|
},
|
|
306
336
|
setup(e) {
|
|
307
337
|
const a = e, t = p(() => a.error && a.errorMsg || a.hint);
|
|
308
|
-
return (n, l) => (
|
|
309
|
-
t.value ? (
|
|
338
|
+
return (n, l) => (s(), v("div", na, [
|
|
339
|
+
t.value ? (s(), v("span", {
|
|
310
340
|
key: 0,
|
|
311
341
|
id: e.hintId,
|
|
312
342
|
class: "bs-hint",
|
|
313
343
|
"data-error": e.error
|
|
314
|
-
},
|
|
315
|
-
e.charMax ? (
|
|
344
|
+
}, C(t.value), 9, la)) : S("", !0),
|
|
345
|
+
e.charMax ? (s(), v("span", {
|
|
316
346
|
key: 1,
|
|
317
347
|
"aria-description": "character count over character limit for the preceding text field",
|
|
318
348
|
class: "bs-character-count",
|
|
319
349
|
"data-error": a.charCount > a.charMax
|
|
320
|
-
},
|
|
350
|
+
}, C(a.charCount || "0") + " / " + C(a.charMax), 9, oa)) : S("", !0)
|
|
321
351
|
]));
|
|
322
352
|
}
|
|
323
|
-
},
|
|
353
|
+
}, ia = ["data-disabled", "for"], ra = /* @__PURE__ */ b("span", {
|
|
324
354
|
"data-required": "true",
|
|
325
355
|
"aria-hidden": "true"
|
|
326
|
-
}, " *", -1),
|
|
356
|
+
}, " *", -1), sa = /* @__PURE__ */ b("span", { class: "visually-hidden" }, "required", -1), oe = {
|
|
327
357
|
__name: "BsLabel",
|
|
328
358
|
props: {
|
|
329
359
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -332,22 +362,22 @@ const Ie = (e, a, t = void 0) => {
|
|
|
332
362
|
required: { type: Boolean, default: !1 }
|
|
333
363
|
},
|
|
334
364
|
setup(e) {
|
|
335
|
-
return (a, t) => (
|
|
336
|
-
class:
|
|
365
|
+
return (a, t) => (s(), v("label", {
|
|
366
|
+
class: le(["bs-label", e.hide ? "visually-hidden" : ""]),
|
|
337
367
|
"data-component": "bs-label",
|
|
338
368
|
"data-disabled": e.disabled,
|
|
339
369
|
for: e.for
|
|
340
370
|
}, [
|
|
341
|
-
|
|
342
|
-
|
|
371
|
+
b("span", null, [
|
|
372
|
+
x(a.$slots, "default")
|
|
343
373
|
]),
|
|
344
|
-
e.required ? (
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
], 64)) :
|
|
348
|
-
], 10,
|
|
374
|
+
e.required ? (s(), v(W, { key: 0 }, [
|
|
375
|
+
ra,
|
|
376
|
+
sa
|
|
377
|
+
], 64)) : S("", !0)
|
|
378
|
+
], 10, ia));
|
|
349
379
|
}
|
|
350
|
-
},
|
|
380
|
+
}, da = ["data-error", "id", "value"], Se = {
|
|
351
381
|
__name: "BsInput",
|
|
352
382
|
props: {
|
|
353
383
|
error: {
|
|
@@ -362,21 +392,21 @@ const Ie = (e, a, t = void 0) => {
|
|
|
362
392
|
},
|
|
363
393
|
emits: ["update:modelValue"],
|
|
364
394
|
setup(e, { emit: a }) {
|
|
365
|
-
const t = e, n = a, l =
|
|
395
|
+
const t = e, n = a, l = fe(), r = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
366
396
|
function u(o) {
|
|
367
|
-
const
|
|
368
|
-
n("update:modelValue",
|
|
397
|
+
const d = l.type === "number" ? parseInt(o.target.value) : o.target.value;
|
|
398
|
+
n("update:modelValue", d);
|
|
369
399
|
}
|
|
370
|
-
return (o,
|
|
400
|
+
return (o, d) => (s(), v("input", z({
|
|
371
401
|
class: "bs-input",
|
|
372
402
|
"data-component": "bs-input",
|
|
373
403
|
"data-error": e.error,
|
|
374
404
|
id: o.$attrs.id || e.inputId,
|
|
375
405
|
value: e.value || e.modelValue,
|
|
376
406
|
onInput: u
|
|
377
|
-
},
|
|
407
|
+
}, r.value), null, 16, da));
|
|
378
408
|
}
|
|
379
|
-
},
|
|
409
|
+
}, ua = ["data-disabled", "data-error", "data-variant", "data-multifocus"], Ee = {
|
|
380
410
|
__name: "BsInputAddon",
|
|
381
411
|
props: {
|
|
382
412
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -385,7 +415,7 @@ const Ie = (e, a, t = void 0) => {
|
|
|
385
415
|
variant: { type: String, validator: (e) => e === "inner-bordered" }
|
|
386
416
|
},
|
|
387
417
|
setup(e) {
|
|
388
|
-
return (a, t) => (
|
|
418
|
+
return (a, t) => (s(), v("div", {
|
|
389
419
|
class: "bs-input-addon",
|
|
390
420
|
"data-component": "bs-input-addon",
|
|
391
421
|
"data-disabled": e.disabled,
|
|
@@ -393,10 +423,10 @@ const Ie = (e, a, t = void 0) => {
|
|
|
393
423
|
"data-variant": e.variant,
|
|
394
424
|
"data-multifocus": e.multifocus
|
|
395
425
|
}, [
|
|
396
|
-
|
|
397
|
-
], 8,
|
|
426
|
+
x(a.$slots, "default")
|
|
427
|
+
], 8, ua));
|
|
398
428
|
}
|
|
399
|
-
},
|
|
429
|
+
}, ca = {
|
|
400
430
|
__name: "BsInputDateSingle",
|
|
401
431
|
props: {
|
|
402
432
|
disabled: {
|
|
@@ -429,13 +459,13 @@ const Ie = (e, a, t = void 0) => {
|
|
|
429
459
|
}
|
|
430
460
|
},
|
|
431
461
|
setup(e) {
|
|
432
|
-
return (a, t) => (
|
|
462
|
+
return (a, t) => (s(), E(Ee, {
|
|
433
463
|
disabled: e.disabled,
|
|
434
464
|
error: e.error
|
|
435
465
|
}, {
|
|
436
|
-
default:
|
|
437
|
-
|
|
438
|
-
|
|
466
|
+
default: L(() => [
|
|
467
|
+
A(f(rt)),
|
|
468
|
+
A(Se, z({
|
|
439
469
|
"data-autowidth": "",
|
|
440
470
|
disabled: e.disabled,
|
|
441
471
|
id: e.inputId,
|
|
@@ -448,16 +478,16 @@ const Ie = (e, a, t = void 0) => {
|
|
|
448
478
|
}, 8, ["disabled", "error"]));
|
|
449
479
|
}
|
|
450
480
|
};
|
|
451
|
-
function
|
|
481
|
+
function ze(e, a, t) {
|
|
452
482
|
let n;
|
|
453
483
|
return function() {
|
|
454
|
-
let l = this,
|
|
455
|
-
clearTimeout(n), t && !n && e.apply(l,
|
|
456
|
-
n = null, t || e.apply(l,
|
|
484
|
+
let l = this, r = arguments;
|
|
485
|
+
clearTimeout(n), t && !n && e.apply(l, r), n = setTimeout(function() {
|
|
486
|
+
n = null, t || e.apply(l, r);
|
|
457
487
|
}, a);
|
|
458
488
|
};
|
|
459
489
|
}
|
|
460
|
-
const
|
|
490
|
+
const fa = ["disabled", "id", "model-value"], va = ["disabled", "id", "model-value"], pa = {
|
|
461
491
|
__name: "BsInputDateRange",
|
|
462
492
|
props: {
|
|
463
493
|
disabled: {
|
|
@@ -494,92 +524,92 @@ const aa = ["disabled", "id", "model-value"], na = ["disabled", "id", "model-val
|
|
|
494
524
|
},
|
|
495
525
|
emits: ["ui-focusin", "ui-input"],
|
|
496
526
|
setup(e, { emit: a }) {
|
|
497
|
-
const t = a, n =
|
|
498
|
-
function i
|
|
527
|
+
const t = a, n = g(null), l = g(null);
|
|
528
|
+
function r(i) {
|
|
499
529
|
const c = new Event("change", { bubbles: !0, cancelable: !0 });
|
|
500
|
-
|
|
530
|
+
i.dispatchEvent(c);
|
|
501
531
|
}
|
|
502
|
-
function u(
|
|
503
|
-
const { value: c } =
|
|
504
|
-
n.value.value =
|
|
532
|
+
function u(i) {
|
|
533
|
+
const { value: c } = i.target, [h, w] = c.split(/ to | - /);
|
|
534
|
+
n.value.value = h || "", l.value.value = w || "", r(n.value), r(l.value);
|
|
505
535
|
}
|
|
506
|
-
const o =
|
|
507
|
-
function
|
|
508
|
-
t("ui-input"), o(
|
|
536
|
+
const o = ze(u, 1e3);
|
|
537
|
+
function d(i) {
|
|
538
|
+
t("ui-input"), o(i);
|
|
509
539
|
}
|
|
510
|
-
return (
|
|
540
|
+
return (i, c) => (s(), E(Ee, {
|
|
511
541
|
disabled: e.disabled,
|
|
512
542
|
error: e.error
|
|
513
543
|
}, {
|
|
514
|
-
default:
|
|
515
|
-
|
|
516
|
-
|
|
544
|
+
default: L(() => [
|
|
545
|
+
A(f(rt)),
|
|
546
|
+
A(Se, {
|
|
517
547
|
"data-autowidth": "",
|
|
518
548
|
disabled: e.disabled,
|
|
519
549
|
id: e.inputId,
|
|
520
550
|
"model-value": e.inputValueFmt,
|
|
521
551
|
placeholder: e.placeholder,
|
|
522
552
|
required: e.required,
|
|
523
|
-
onFocusin: c[0] || (c[0] = (
|
|
524
|
-
onInput:
|
|
553
|
+
onFocusin: c[0] || (c[0] = (h) => i.$emit("ui-focusin")),
|
|
554
|
+
onInput: d,
|
|
525
555
|
onChange: u
|
|
526
556
|
}, null, 8, ["disabled", "id", "model-value", "placeholder", "required"]),
|
|
527
|
-
|
|
557
|
+
b("input", z({
|
|
528
558
|
ref_key: "hiddenStart",
|
|
529
559
|
ref: n,
|
|
530
560
|
type: "hidden",
|
|
531
561
|
disabled: e.disabled,
|
|
532
562
|
id: `${e.inputId}-start`,
|
|
533
563
|
"model-value": e.inputValue.start
|
|
534
|
-
}, Me(e.listeners.start, !0)), null, 16,
|
|
535
|
-
|
|
564
|
+
}, Me(e.listeners.start, !0)), null, 16, fa),
|
|
565
|
+
b("input", z({
|
|
536
566
|
ref_key: "hiddenEnd",
|
|
537
567
|
ref: l,
|
|
538
568
|
type: "hidden",
|
|
539
569
|
disabled: e.disabled,
|
|
540
570
|
id: `${e.inputId}-end`,
|
|
541
571
|
"model-value": e.inputValue.end
|
|
542
|
-
}, Me(e.listeners.end, !0)), null, 16,
|
|
572
|
+
}, Me(e.listeners.end, !0)), null, 16, va)
|
|
543
573
|
]),
|
|
544
574
|
_: 1
|
|
545
575
|
}, 8, ["disabled", "error"]));
|
|
546
576
|
}
|
|
547
577
|
};
|
|
548
|
-
function
|
|
578
|
+
function ha(e) {
|
|
549
579
|
var a, t;
|
|
550
580
|
return ((t = (a = e == null ? void 0 : e.classList) == null ? void 0 : a.contains) == null ? void 0 : t.call(a, "vc-arrow")) && (e.classList.contains("vc-prev") || e.classList.contains("vc-next"));
|
|
551
581
|
}
|
|
552
|
-
function
|
|
582
|
+
function ba(e) {
|
|
553
583
|
return e === " " || e === "Spacebar" || e === "Enter";
|
|
554
584
|
}
|
|
555
585
|
function Ze(e) {
|
|
556
|
-
|
|
586
|
+
ha(e == null ? void 0 : e.target) && ba(e == null ? void 0 : e.key) && e.preventDefault();
|
|
557
587
|
}
|
|
558
|
-
function
|
|
588
|
+
function ga(e) {
|
|
559
589
|
let a;
|
|
560
|
-
|
|
590
|
+
X(() => {
|
|
561
591
|
var t, n, l;
|
|
562
592
|
a = (t = e == null ? void 0 : e.value) == null ? void 0 : t.popoverRef, (l = (n = a == null ? void 0 : a.$el) == null ? void 0 : n.addEventListener) == null || l.call(n, "keydown", Ze);
|
|
563
|
-
}),
|
|
593
|
+
}), at(() => {
|
|
564
594
|
var t, n;
|
|
565
595
|
(n = (t = a == null ? void 0 : a.$el) == null ? void 0 : t.removeEventListener) == null || n.call(t, "keydown", Ze), a = null;
|
|
566
596
|
});
|
|
567
597
|
}
|
|
568
|
-
function
|
|
598
|
+
function _e(e, a, t = []) {
|
|
569
599
|
let n;
|
|
570
|
-
|
|
600
|
+
nt(() => {
|
|
571
601
|
n = window.matchMedia(e), n.addEventListener("change", a), a(n);
|
|
572
|
-
}),
|
|
602
|
+
}), at(() => {
|
|
573
603
|
n.removeEventListener("change", a), n = null;
|
|
574
|
-
}), t.length &&
|
|
604
|
+
}), t.length && N(t, () => a(n));
|
|
575
605
|
}
|
|
576
|
-
const
|
|
606
|
+
const Fe = [
|
|
577
607
|
"aria-describedby",
|
|
578
608
|
"aria-label",
|
|
579
609
|
"form",
|
|
580
610
|
"id",
|
|
581
611
|
"name"
|
|
582
|
-
],
|
|
612
|
+
], ma = [
|
|
583
613
|
"aria-describedby",
|
|
584
614
|
"aria-label",
|
|
585
615
|
"autocomplete",
|
|
@@ -589,7 +619,7 @@ const je = [
|
|
|
589
619
|
"multiple",
|
|
590
620
|
"name",
|
|
591
621
|
"size"
|
|
592
|
-
],
|
|
622
|
+
], ya = [
|
|
593
623
|
"aria-describedby",
|
|
594
624
|
"aria-label",
|
|
595
625
|
"autocapitalize",
|
|
@@ -607,7 +637,7 @@ const je = [
|
|
|
607
637
|
"rows",
|
|
608
638
|
"spellcheck",
|
|
609
639
|
"wrap"
|
|
610
|
-
],
|
|
640
|
+
], Ie = [
|
|
611
641
|
"aria-describedby",
|
|
612
642
|
"aria-label",
|
|
613
643
|
"autocapitalize",
|
|
@@ -628,13 +658,13 @@ const je = [
|
|
|
628
658
|
"size",
|
|
629
659
|
"step"
|
|
630
660
|
];
|
|
631
|
-
function
|
|
661
|
+
function Y(e, a = []) {
|
|
632
662
|
const t = {}, n = {};
|
|
633
663
|
return Object.keys(e).forEach((l) => {
|
|
634
664
|
a.includes(l) ? t[l] = e[l] : n[l] = e[l];
|
|
635
665
|
}), { filtered: t, remaining: n };
|
|
636
666
|
}
|
|
637
|
-
const
|
|
667
|
+
const Ba = ["data-range"], et = "(min-width: 752px)", Zl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
638
668
|
__name: "BsCalendar",
|
|
639
669
|
props: {
|
|
640
670
|
disabled: {
|
|
@@ -701,7 +731,7 @@ const ua = ["data-range"], _e = "(min-width: 752px)", Dl = /* @__PURE__ */ Objec
|
|
|
701
731
|
},
|
|
702
732
|
emits: ["update:modelValue"],
|
|
703
733
|
setup(e, { emit: a }) {
|
|
704
|
-
const t = e, n =
|
|
734
|
+
const t = e, n = g(null), l = g(1), r = g(null), [u, o] = Z(2), d = g(1), { filtered: i, remaining: c } = Y(fe(), [
|
|
705
735
|
"attributes",
|
|
706
736
|
"expanded",
|
|
707
737
|
"first-day-of-week",
|
|
@@ -709,52 +739,52 @@ const ua = ["data-range"], _e = "(min-width: 752px)", Dl = /* @__PURE__ */ Objec
|
|
|
709
739
|
"masks",
|
|
710
740
|
"rows",
|
|
711
741
|
"trim-weeks"
|
|
712
|
-
]),
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
(m) => l.value = m != null && m.matches &&
|
|
716
|
-
[
|
|
717
|
-
),
|
|
718
|
-
|
|
719
|
-
(m) =>
|
|
720
|
-
[
|
|
721
|
-
),
|
|
722
|
-
var m,
|
|
723
|
-
return (
|
|
742
|
+
]), h = p(() => t.inputId || u.value), w = p(() => ({ range: t.isRange })), $ = p(() => !!(t.error && t.errorMsg || t.hint)), M = p(() => t.step), k = p(() => t.variant);
|
|
743
|
+
ga(n), _e(
|
|
744
|
+
et,
|
|
745
|
+
(m) => l.value = m != null && m.matches && k.value == "2-col" ? 2 : 1,
|
|
746
|
+
[k]
|
|
747
|
+
), _e(
|
|
748
|
+
et,
|
|
749
|
+
(m) => d.value = m != null && m.matches && k.value == "2-col" ? M.value : 1,
|
|
750
|
+
[M, k]
|
|
751
|
+
), N(() => {
|
|
752
|
+
var m, P;
|
|
753
|
+
return (P = (m = n.value) == null ? void 0 : m.popoverRef) == null ? void 0 : P.isVisible;
|
|
724
754
|
}, (m) => {
|
|
725
|
-
m &&
|
|
755
|
+
m && ge(y);
|
|
726
756
|
});
|
|
727
|
-
function
|
|
757
|
+
function I(m) {
|
|
728
758
|
return t.isRange && m.start && m.end ? `${m.start} to ${m.end}` : !t.isRange && m ? m : "";
|
|
729
759
|
}
|
|
730
|
-
function
|
|
731
|
-
!t.isRange ||
|
|
760
|
+
function O(m) {
|
|
761
|
+
!t.isRange || r.value.contains(m.relatedTarget) || n.value.hidePopover();
|
|
732
762
|
}
|
|
733
|
-
function
|
|
734
|
-
const m =
|
|
735
|
-
m && m.setAttribute("aria-label", "Previous month"),
|
|
763
|
+
function y() {
|
|
764
|
+
const m = r.value.querySelector("button.vc-prev"), P = r.value.querySelector("button.vc-next");
|
|
765
|
+
m && m.setAttribute("aria-label", "Previous month"), P && P.setAttribute("aria-label", "Next month");
|
|
736
766
|
}
|
|
737
|
-
return (m,
|
|
767
|
+
return (m, P) => (s(), v("div", z({
|
|
738
768
|
ref_key: "container",
|
|
739
|
-
ref:
|
|
769
|
+
ref: r,
|
|
740
770
|
class: "bs-calendar",
|
|
741
771
|
"data-range": e.isRange,
|
|
742
|
-
onFocusout:
|
|
772
|
+
onFocusout: O
|
|
743
773
|
}, f(c)), [
|
|
744
|
-
e.label || m.$slots.label ? (
|
|
774
|
+
e.label || m.$slots.label ? (s(), E(oe, {
|
|
745
775
|
key: 0,
|
|
746
|
-
for:
|
|
776
|
+
for: h.value,
|
|
747
777
|
disabled: e.disabled,
|
|
748
778
|
required: e.required
|
|
749
779
|
}, {
|
|
750
|
-
default:
|
|
751
|
-
|
|
752
|
-
H(
|
|
780
|
+
default: L(() => [
|
|
781
|
+
x(m.$slots, "label", {}, () => [
|
|
782
|
+
H(C(e.label), 1)
|
|
753
783
|
])
|
|
754
784
|
]),
|
|
755
785
|
_: 3
|
|
756
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
757
|
-
|
|
786
|
+
}, 8, ["for", "disabled", "required"])) : S("", !0),
|
|
787
|
+
A(f(Et), z({
|
|
758
788
|
ref_key: "calendar",
|
|
759
789
|
ref: n,
|
|
760
790
|
columns: l.value,
|
|
@@ -766,31 +796,31 @@ const ua = ["data-range"], _e = "(min-width: 752px)", Dl = /* @__PURE__ */ Objec
|
|
|
766
796
|
"model-modifiers": w.value,
|
|
767
797
|
popover: { visibility: "focus" },
|
|
768
798
|
rows: 1,
|
|
769
|
-
step:
|
|
770
|
-
"onUpdate:modelValue":
|
|
771
|
-
}, f(
|
|
799
|
+
step: d.value,
|
|
800
|
+
"onUpdate:modelValue": P[0] || (P[0] = (D) => m.$emit("update:modelValue", D))
|
|
801
|
+
}, f(i)), lt({ _: 2 }, [
|
|
772
802
|
e.inputMode ? {
|
|
773
803
|
name: "default",
|
|
774
|
-
fn:
|
|
775
|
-
e.isRange ? (
|
|
804
|
+
fn: L(({ inputValue: D, inputEvents: R, showPopover: U }) => [
|
|
805
|
+
e.isRange ? (s(), E(pa, {
|
|
776
806
|
key: 1,
|
|
777
807
|
disabled: e.disabled,
|
|
778
808
|
error: e.error,
|
|
779
|
-
"input-id":
|
|
780
|
-
"input-value":
|
|
781
|
-
"input-value-fmt":
|
|
782
|
-
listeners:
|
|
809
|
+
"input-id": h.value,
|
|
810
|
+
"input-value": D,
|
|
811
|
+
"input-value-fmt": I(D),
|
|
812
|
+
listeners: R,
|
|
783
813
|
placeholder: e.placeholder,
|
|
784
814
|
required: e.required,
|
|
785
|
-
onUiFocusin:
|
|
786
|
-
onUiInput:
|
|
787
|
-
}, null, 8, ["disabled", "error", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (
|
|
815
|
+
onUiFocusin: U,
|
|
816
|
+
onUiInput: U
|
|
817
|
+
}, null, 8, ["disabled", "error", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (s(), E(ca, {
|
|
788
818
|
key: 0,
|
|
789
819
|
disabled: e.disabled,
|
|
790
820
|
error: e.error,
|
|
791
|
-
"input-id":
|
|
792
|
-
listeners:
|
|
793
|
-
"model-value":
|
|
821
|
+
"input-id": h.value,
|
|
822
|
+
listeners: R,
|
|
823
|
+
"model-value": I(D),
|
|
794
824
|
placeholder: e.placeholder,
|
|
795
825
|
required: e.required
|
|
796
826
|
}, null, 8, ["disabled", "error", "input-id", "listeners", "model-value", "placeholder", "required"]))
|
|
@@ -798,46 +828,16 @@ const ua = ["data-range"], _e = "(min-width: 752px)", Dl = /* @__PURE__ */ Objec
|
|
|
798
828
|
key: "0"
|
|
799
829
|
} : void 0
|
|
800
830
|
]), 1040, ["columns", "disabled-dates", "max-date", "min-date", "model-value", "model-modifiers", "step"]),
|
|
801
|
-
|
|
831
|
+
$.value ? (s(), E(Be, {
|
|
802
832
|
key: 1,
|
|
803
833
|
error: e.error,
|
|
804
834
|
"error-msg": e.errorMsg,
|
|
805
835
|
hint: e.hint,
|
|
806
836
|
"hint-id": f(o)
|
|
807
|
-
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) :
|
|
808
|
-
], 16,
|
|
837
|
+
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : S("", !0)
|
|
838
|
+
], 16, Ba));
|
|
809
839
|
}
|
|
810
|
-
}),
|
|
811
|
-
__name: "BsButton",
|
|
812
|
-
props: {
|
|
813
|
-
variant: { type: String },
|
|
814
|
-
disabled: { type: Boolean, default: !1 },
|
|
815
|
-
ghostBtn: { type: Boolean, default: !1 },
|
|
816
|
-
/** @DEPRECATED in favor of linkTo */
|
|
817
|
-
href: { type: String },
|
|
818
|
-
linkTo: { type: String },
|
|
819
|
-
router: {},
|
|
820
|
-
textBtn: { type: Boolean, default: !1 },
|
|
821
|
-
size: { type: String, validator: (e) => ["sm", "xs", "xxs"].includes(e) }
|
|
822
|
-
},
|
|
823
|
-
setup(e) {
|
|
824
|
-
const a = e, t = se(), { rootTag: n, attrsToBind: l, hrefUrl: i } = we(a, t), { onLinkClick: u } = ke(a);
|
|
825
|
-
return (o, s) => (d(), O(J(f(n)), N({
|
|
826
|
-
class: "bs-button",
|
|
827
|
-
"data-component": "bs-button",
|
|
828
|
-
"data-ghost": e.ghostBtn,
|
|
829
|
-
"data-size": e.size,
|
|
830
|
-
"data-text": e.textBtn,
|
|
831
|
-
"data-variant": e.variant,
|
|
832
|
-
".href": f(i)
|
|
833
|
-
}, f(l), { onClick: f(u) }), {
|
|
834
|
-
default: D(() => [
|
|
835
|
-
L(o.$slots, "default")
|
|
836
|
-
]),
|
|
837
|
-
_: 3
|
|
838
|
-
}, 48, ["data-ghost", "data-size", "data-text", "data-variant", ".href", "onClick"]));
|
|
839
|
-
}
|
|
840
|
-
}), fa = { "data-component": "bs-chart-table" }, pa = ["summary"], va = ["colspan"], ha = /* @__PURE__ */ B("th", { scope: "col" }, " Dataset ", -1), ba = { scope: "row" }, ma = {
|
|
840
|
+
}), Sa = { "data-component": "bs-chart-table" }, $a = ["summary"], wa = ["colspan"], ka = /* @__PURE__ */ b("th", { scope: "col" }, " Dataset ", -1), Ia = { scope: "row" }, Ca = {
|
|
841
841
|
__name: "BsChartTable",
|
|
842
842
|
props: {
|
|
843
843
|
data: {
|
|
@@ -856,52 +856,52 @@ const ua = ["data-range"], _e = "(min-width: 752px)", Dl = /* @__PURE__ */ Objec
|
|
|
856
856
|
setup(e) {
|
|
857
857
|
return (a, t) => {
|
|
858
858
|
var n;
|
|
859
|
-
return
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
859
|
+
return s(), v("div", Sa, [
|
|
860
|
+
b("table", { summary: e.tableTitle }, [
|
|
861
|
+
b("thead", null, [
|
|
862
|
+
b("tr", null, [
|
|
863
|
+
b("th", {
|
|
864
864
|
colspan: ((n = e.dataIdxLabels) == null ? void 0 : n.length) + 1
|
|
865
|
-
},
|
|
865
|
+
}, C(e.tableTitle), 9, wa)
|
|
866
866
|
]),
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
(
|
|
867
|
+
b("tr", null, [
|
|
868
|
+
ka,
|
|
869
|
+
(s(!0), v(W, null, _(e.dataIdxLabels, (l) => (s(), v("th", {
|
|
870
870
|
key: l,
|
|
871
871
|
scope: "col"
|
|
872
|
-
},
|
|
872
|
+
}, C(l), 1))), 128))
|
|
873
873
|
])
|
|
874
874
|
]),
|
|
875
|
-
|
|
876
|
-
(
|
|
875
|
+
b("tbody", null, [
|
|
876
|
+
(s(!0), v(W, null, _(e.data, (l) => (s(), v("tr", {
|
|
877
877
|
key: l.label
|
|
878
878
|
}, [
|
|
879
|
-
|
|
880
|
-
(
|
|
881
|
-
key: `${
|
|
882
|
-
},
|
|
879
|
+
b("th", Ia, C(l.label), 1),
|
|
880
|
+
(s(!0), v(W, null, _(l.data, (r, u) => (s(), v("td", {
|
|
881
|
+
key: `${r}${u}`
|
|
882
|
+
}, C(r), 1))), 128))
|
|
883
883
|
]))), 128))
|
|
884
884
|
])
|
|
885
|
-
], 8,
|
|
885
|
+
], 8, $a)
|
|
886
886
|
]);
|
|
887
887
|
};
|
|
888
888
|
}
|
|
889
|
-
},
|
|
889
|
+
}, Ta = (e) => ({
|
|
890
890
|
id: "htmlLegend",
|
|
891
891
|
afterUpdate(a) {
|
|
892
892
|
e.innerHTML = "", e.style.setProperty("--legend-padding", `${a.scales.x.left}px`), a.options.plugins.legend.labels.generateLabels(a).forEach((n) => {
|
|
893
893
|
const l = document.createElement("li");
|
|
894
894
|
l.onclick = () => {
|
|
895
|
-
const { type:
|
|
896
|
-
|
|
895
|
+
const { type: d } = a.config._config;
|
|
896
|
+
d === "pie" || d === "doughnut" ? a.toggleDataVisibility(n.index) : a.setDatasetVisibility(n.datasetIndex, !a.isDatasetVisible(n.datasetIndex)), a.update();
|
|
897
897
|
};
|
|
898
|
-
const
|
|
899
|
-
|
|
898
|
+
const r = document.createElement("span");
|
|
899
|
+
r.style.setProperty("--item-box-fill", n.fillStyle), r.style.setProperty("--item-box-stroke", n.strokeStyle);
|
|
900
900
|
const u = document.createTextNode(n.text), o = document.createElement("p");
|
|
901
|
-
o.style.setProperty("--item-text-color", "var(--bs-ink-base)"), o.style.setProperty("--item-text-decoration", n.hidden ? "line-through" : "none"), o.appendChild(u), l.appendChild(
|
|
901
|
+
o.style.setProperty("--item-text-color", "var(--bs-ink-base)"), o.style.setProperty("--item-text-decoration", n.hidden ? "line-through" : "none"), o.appendChild(u), l.appendChild(r), l.appendChild(o), e.appendChild(l);
|
|
902
902
|
});
|
|
903
903
|
}
|
|
904
|
-
}),
|
|
904
|
+
}), xa = ({ type: e, datasets: a, labels: t, tooltips: n }) => ({
|
|
905
905
|
type: e,
|
|
906
906
|
data: {
|
|
907
907
|
datasets: a,
|
|
@@ -920,7 +920,7 @@ const ua = ["data-range"], _e = "(min-width: 752px)", Dl = /* @__PURE__ */ Objec
|
|
|
920
920
|
responsive: !0
|
|
921
921
|
}
|
|
922
922
|
});
|
|
923
|
-
function
|
|
923
|
+
function Aa(e) {
|
|
924
924
|
const a = [
|
|
925
925
|
"rgba(209, 26, 111, 1)",
|
|
926
926
|
"rgba(130, 18, 196, 1)",
|
|
@@ -933,10 +933,10 @@ function Ba(e) {
|
|
|
933
933
|
], t = a[e % a.length];
|
|
934
934
|
return e >= a.length ? t.replace("1)", "0.5)") : t;
|
|
935
935
|
}
|
|
936
|
-
const
|
|
936
|
+
const Va = {
|
|
937
937
|
class: "bs-chart-bar",
|
|
938
938
|
"data-component": "bs-chart-bar"
|
|
939
|
-
},
|
|
939
|
+
}, La = ["aria-label"], Ea = ["data-hidden"], _l = {
|
|
940
940
|
__name: "BsChartBar",
|
|
941
941
|
props: {
|
|
942
942
|
chartTitle: {
|
|
@@ -990,16 +990,16 @@ const $a = {
|
|
|
990
990
|
}
|
|
991
991
|
},
|
|
992
992
|
setup(e) {
|
|
993
|
-
const a = e, t =
|
|
993
|
+
const a = e, t = g(null), n = g(null);
|
|
994
994
|
let l;
|
|
995
|
-
const
|
|
995
|
+
const r = p(() => {
|
|
996
996
|
const c = {
|
|
997
997
|
datasets: u.value,
|
|
998
998
|
labels: a.dataIdxLabels,
|
|
999
999
|
type: "bar",
|
|
1000
1000
|
tooltips: a.showTooltips
|
|
1001
|
-
},
|
|
1002
|
-
return
|
|
1001
|
+
}, h = xa(c);
|
|
1002
|
+
return h.plugins = [Ta(n.value)], h.options.scales = {
|
|
1003
1003
|
x: {
|
|
1004
1004
|
grid: {
|
|
1005
1005
|
display: a.showXGrid
|
|
@@ -1020,47 +1020,47 @@ const $a = {
|
|
|
1020
1020
|
text: a.yLabel
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
|
-
},
|
|
1024
|
-
}), u = p(() => a.data.map((c,
|
|
1023
|
+
}, h;
|
|
1024
|
+
}), u = p(() => a.data.map((c, h) => ({
|
|
1025
1025
|
...c,
|
|
1026
|
-
backgroundColor:
|
|
1026
|
+
backgroundColor: Aa(h),
|
|
1027
1027
|
categoryPercentage: a.data.length > 1 ? 0.5 : 0.33
|
|
1028
|
-
}))), o = p(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`),
|
|
1029
|
-
!l || c ===
|
|
1030
|
-
}, 100),
|
|
1031
|
-
l && (l.data =
|
|
1028
|
+
}))), o = p(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`), d = ze(function(c, h) {
|
|
1029
|
+
!l || c === h || (l.options = r.value.options, l.update());
|
|
1030
|
+
}, 100), i = ze(function() {
|
|
1031
|
+
l && (l.data = r.value.data, l.update());
|
|
1032
1032
|
}, 100);
|
|
1033
|
-
return
|
|
1034
|
-
|
|
1035
|
-
}),
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1033
|
+
return X(() => {
|
|
1034
|
+
Pe.register(Ot, Dt, Pt, qt, Mt, Nt), Pe.defaults.font.family = "'Roobert', sans-serif", l = new Pe(t.value, r.value);
|
|
1035
|
+
}), N(() => a.showLegend, d), N(() => a.showTooltips, d), N(() => a.showXGrid, d), N(() => a.showYGrid, d), N(() => a.stacked, d), N(() => a.xLabel, d), N(() => a.yLabel, d), N(() => a.data, i), N(() => a.dataIdxLabels, i), (c, h) => (s(), v("div", Va, [
|
|
1036
|
+
b("figure", null, [
|
|
1037
|
+
b("div", null, [
|
|
1038
|
+
b("canvas", {
|
|
1039
1039
|
"aria-label": o.value,
|
|
1040
1040
|
ref_key: "canvas",
|
|
1041
1041
|
ref: t,
|
|
1042
1042
|
role: "img"
|
|
1043
|
-
}, null, 8,
|
|
1043
|
+
}, null, 8, La)
|
|
1044
1044
|
]),
|
|
1045
|
-
|
|
1046
|
-
|
|
1045
|
+
b("div", null, [
|
|
1046
|
+
A(Ca, {
|
|
1047
1047
|
data: e.data,
|
|
1048
1048
|
"data-idx-labels": e.dataIdxLabels,
|
|
1049
1049
|
"table-title": o.value
|
|
1050
1050
|
}, null, 8, ["data", "data-idx-labels", "table-title"]),
|
|
1051
|
-
|
|
1051
|
+
b("figcaption", {
|
|
1052
1052
|
"data-hidden": !e.showLegend
|
|
1053
1053
|
}, [
|
|
1054
|
-
|
|
1054
|
+
b("ul", {
|
|
1055
1055
|
ref_key: "legendList",
|
|
1056
1056
|
ref: n
|
|
1057
1057
|
}, null, 512)
|
|
1058
|
-
], 8,
|
|
1058
|
+
], 8, Ea)
|
|
1059
1059
|
])
|
|
1060
1060
|
])
|
|
1061
1061
|
]));
|
|
1062
1062
|
}
|
|
1063
|
-
},
|
|
1063
|
+
}, Oa = ["data-size"], Da = ["checked", "data-error", "disabled", "id", "required", "value"], eo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1064
1064
|
__name: "BsCheckbox",
|
|
1065
1065
|
props: {
|
|
1066
1066
|
/** Sets the label. */
|
|
@@ -1123,54 +1123,54 @@ const $a = {
|
|
|
1123
1123
|
},
|
|
1124
1124
|
emits: ["update:modelValue"],
|
|
1125
1125
|
setup(e, { emit: a }) {
|
|
1126
|
-
const t = e, n = a, [l] =
|
|
1126
|
+
const t = e, n = a, [l] = Z(), r = p(() => Fe.concat(t.passAttrs.split(","))), u = g(null), o = p(() => t.inputId || l.value), d = p(() => t.checked || h.value), i = p(() => t.indeterminate || t.checkedPartially), c = p(() => Array.isArray(t.modelValue) && t.value), h = p(() => c.value && t.modelValue.includes(t.value) || typeof t.modelValue == "boolean" && t.modelValue);
|
|
1127
1127
|
function w() {
|
|
1128
|
-
u.value && (u.value.indeterminate =
|
|
1128
|
+
u.value && (u.value.indeterminate = i.value && !d.value);
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1131
|
-
n("update:modelValue",
|
|
1130
|
+
function $(I) {
|
|
1131
|
+
n("update:modelValue", I);
|
|
1132
1132
|
}
|
|
1133
|
-
function
|
|
1134
|
-
const
|
|
1135
|
-
|
|
1133
|
+
function M(I) {
|
|
1134
|
+
const O = [...t.modelValue];
|
|
1135
|
+
I ? O.push(t.value) : O.splice(O.indexOf(t.value), 1), n("update:modelValue", O);
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1138
|
-
const { checked:
|
|
1139
|
-
c.value ?
|
|
1137
|
+
function k(I) {
|
|
1138
|
+
const { checked: O } = I.target;
|
|
1139
|
+
c.value ? M(O) : $(O);
|
|
1140
1140
|
}
|
|
1141
|
-
return
|
|
1141
|
+
return N(d, w), N(i, w), X(w), (I, O) => (s(), v("div", z({
|
|
1142
1142
|
class: "bs-boolean",
|
|
1143
1143
|
"data-component": "bs-checkbox",
|
|
1144
1144
|
"data-size": e.size
|
|
1145
|
-
}, f(
|
|
1146
|
-
|
|
1145
|
+
}, f(Y)(I.$attrs, r.value).remaining), [
|
|
1146
|
+
b("input", z({
|
|
1147
1147
|
ref_key: "inputEl",
|
|
1148
1148
|
ref: u,
|
|
1149
|
-
checked:
|
|
1149
|
+
checked: d.value,
|
|
1150
1150
|
"data-error": e.error,
|
|
1151
1151
|
disabled: e.disabled,
|
|
1152
|
-
id:
|
|
1152
|
+
id: I.$attrs.id || o.value,
|
|
1153
1153
|
required: e.required,
|
|
1154
1154
|
value: e.value || "on",
|
|
1155
1155
|
type: "checkbox",
|
|
1156
|
-
onChange:
|
|
1157
|
-
}, f(
|
|
1158
|
-
e.label ||
|
|
1156
|
+
onChange: k
|
|
1157
|
+
}, f(Y)(I.$attrs, r.value).filtered), null, 16, Da),
|
|
1158
|
+
e.label || I.$slots.label ? (s(), E(oe, {
|
|
1159
1159
|
key: 0,
|
|
1160
|
-
for:
|
|
1160
|
+
for: I.$attrs.id || o.value,
|
|
1161
1161
|
disabled: e.disabled,
|
|
1162
1162
|
required: e.required
|
|
1163
1163
|
}, {
|
|
1164
|
-
default:
|
|
1165
|
-
|
|
1166
|
-
H(
|
|
1164
|
+
default: L(() => [
|
|
1165
|
+
x(I.$slots, "label", {}, () => [
|
|
1166
|
+
H(C(e.label), 1)
|
|
1167
1167
|
])
|
|
1168
1168
|
]),
|
|
1169
1169
|
_: 3
|
|
1170
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
1171
|
-
], 16,
|
|
1170
|
+
}, 8, ["for", "disabled", "required"])) : S("", !0)
|
|
1171
|
+
], 16, Oa));
|
|
1172
1172
|
}
|
|
1173
|
-
}),
|
|
1173
|
+
}), Pa = { key: 0 }, qa = { class: "bs-circle-button-icon" }, Ma = { key: 1 }, to = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1174
1174
|
__name: "BsCircleButton",
|
|
1175
1175
|
props: {
|
|
1176
1176
|
disabled: {
|
|
@@ -1216,32 +1216,32 @@ const $a = {
|
|
|
1216
1216
|
}
|
|
1217
1217
|
},
|
|
1218
1218
|
setup(e) {
|
|
1219
|
-
const a = e, t =
|
|
1219
|
+
const a = e, t = fe(), { rootTag: n, attrsToBind: l, hrefUrl: r } = Ve(a, t), { icon: u } = ke(a, "icon"), { onLinkClick: o } = Le(a), d = p(() => a.textBtn ? {} : a.href ? { title: a.label } : { "aria-label": a.label }), i = p(() => {
|
|
1220
1220
|
if (a.hoverEffect)
|
|
1221
1221
|
return a.iconPosition;
|
|
1222
|
-
}), c = p(() => a.textBtn && a.iconPosition !== "left"),
|
|
1223
|
-
return (w,
|
|
1222
|
+
}), c = p(() => a.textBtn && a.iconPosition !== "left"), h = p(() => a.textBtn && a.iconPosition === "left");
|
|
1223
|
+
return (w, $) => (s(), E(te(f(n)), z({
|
|
1224
1224
|
class: "bs-circle-button",
|
|
1225
1225
|
"data-disabled": e.disabled,
|
|
1226
|
-
"data-direction":
|
|
1226
|
+
"data-direction": i.value,
|
|
1227
1227
|
"data-ghost": e.ghostBtn,
|
|
1228
1228
|
"data-size": e.size,
|
|
1229
1229
|
"data-text": e.textBtn,
|
|
1230
|
-
".href": f(
|
|
1231
|
-
}, { ...f(l), ...
|
|
1232
|
-
default:
|
|
1233
|
-
c.value ? (
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
(
|
|
1230
|
+
".href": f(r)
|
|
1231
|
+
}, { ...f(l), ...d.value }, { onClick: f(o) }), {
|
|
1232
|
+
default: L(() => [
|
|
1233
|
+
c.value ? (s(), v("span", Pa, C(e.label), 1)) : S("", !0),
|
|
1234
|
+
b("span", qa, [
|
|
1235
|
+
x(w.$slots, "icon", {}, () => [
|
|
1236
|
+
(s(), E(te(f(u)), { size: e.size }, null, 8, ["size"]))
|
|
1237
1237
|
])
|
|
1238
1238
|
]),
|
|
1239
|
-
|
|
1239
|
+
h.value ? (s(), v("span", Ma, C(e.label), 1)) : S("", !0)
|
|
1240
1240
|
]),
|
|
1241
1241
|
_: 3
|
|
1242
1242
|
}, 48, ["data-disabled", "data-direction", "data-ghost", "data-size", "data-text", ".href", "onClick"]));
|
|
1243
1243
|
}
|
|
1244
|
-
}),
|
|
1244
|
+
}), Na = {
|
|
1245
1245
|
__name: "BsDropdownContainer",
|
|
1246
1246
|
props: {
|
|
1247
1247
|
breakout: {
|
|
@@ -1262,27 +1262,27 @@ const $a = {
|
|
|
1262
1262
|
}
|
|
1263
1263
|
},
|
|
1264
1264
|
setup(e, { expose: a }) {
|
|
1265
|
-
const t =
|
|
1266
|
-
return a({ internalContainerRef: t }), (n, l) => (
|
|
1267
|
-
e.breakout && e.breakoutMounted ? (
|
|
1265
|
+
const t = g(null);
|
|
1266
|
+
return a({ internalContainerRef: t }), (n, l) => (s(), v(W, null, [
|
|
1267
|
+
e.breakout && e.breakoutMounted ? (s(), E(pt, {
|
|
1268
1268
|
key: 0,
|
|
1269
1269
|
to: e.breakoutStub
|
|
1270
1270
|
}, [
|
|
1271
|
-
|
|
1272
|
-
], 8, ["to"])) :
|
|
1273
|
-
e.breakout ?
|
|
1274
|
-
e.containerId ?
|
|
1271
|
+
x(n.$slots, "default")
|
|
1272
|
+
], 8, ["to"])) : S("", !0),
|
|
1273
|
+
e.breakout ? S("", !0) : (s(), v(W, { key: 1 }, [
|
|
1274
|
+
e.containerId ? x(n.$slots, "default", { key: 0 }) : (s(), v("div", {
|
|
1275
1275
|
key: 1,
|
|
1276
1276
|
ref_key: "internalContainerRef",
|
|
1277
1277
|
ref: t,
|
|
1278
1278
|
style: { position: "relative" }
|
|
1279
1279
|
}, [
|
|
1280
|
-
|
|
1280
|
+
x(n.$slots, "default")
|
|
1281
1281
|
], 512))
|
|
1282
1282
|
], 64))
|
|
1283
1283
|
], 64));
|
|
1284
1284
|
}
|
|
1285
|
-
},
|
|
1285
|
+
}, Oe = {
|
|
1286
1286
|
__name: "BsTransition",
|
|
1287
1287
|
props: {
|
|
1288
1288
|
shown: {
|
|
@@ -1325,86 +1325,86 @@ const $a = {
|
|
|
1325
1325
|
"leave-cancelled"
|
|
1326
1326
|
],
|
|
1327
1327
|
setup(e, { emit: a }) {
|
|
1328
|
-
const t = e, n = a, l = [],
|
|
1329
|
-
function u(
|
|
1330
|
-
const { duration:
|
|
1328
|
+
const t = e, n = a, l = [], r = t.preloaded && t.shown;
|
|
1329
|
+
function u(i, c) {
|
|
1330
|
+
const { duration: h, enterClass: w, enterAttribute: $ } = t;
|
|
1331
1331
|
l.push(setTimeout(() => {
|
|
1332
|
-
w &&
|
|
1332
|
+
w && i.classList.add(w), $ && i.setAttribute($, ""), l.push(setTimeout(() => {
|
|
1333
1333
|
c();
|
|
1334
|
-
},
|
|
1334
|
+
}, h)), n("enter", i);
|
|
1335
1335
|
}));
|
|
1336
1336
|
}
|
|
1337
|
-
function o(
|
|
1337
|
+
function o(i, c) {
|
|
1338
1338
|
const {
|
|
1339
|
-
duration:
|
|
1339
|
+
duration: h,
|
|
1340
1340
|
enterClass: w,
|
|
1341
|
-
enterAttribute:
|
|
1342
|
-
leaveClass:
|
|
1343
|
-
leaveAttribute:
|
|
1341
|
+
enterAttribute: $,
|
|
1342
|
+
leaveClass: M,
|
|
1343
|
+
leaveAttribute: k
|
|
1344
1344
|
} = t;
|
|
1345
|
-
|
|
1345
|
+
i.classList.remove(w), i.removeAttribute($), M && i.classList.add(M), k && i.setAttribute(k, ""), l.push(setTimeout(() => {
|
|
1346
1346
|
c();
|
|
1347
|
-
},
|
|
1347
|
+
}, h)), n("leave", i);
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1350
|
-
const { leaveClass: c, leaveAttribute:
|
|
1351
|
-
|
|
1349
|
+
function d(i) {
|
|
1350
|
+
const { leaveClass: c, leaveAttribute: h } = t;
|
|
1351
|
+
i.classList.remove(c), i.removeAttribute(h), n("after-leave", i);
|
|
1352
1352
|
}
|
|
1353
|
-
return
|
|
1354
|
-
l.forEach((
|
|
1355
|
-
clearTimeout(
|
|
1353
|
+
return ve(() => {
|
|
1354
|
+
l.forEach((i) => {
|
|
1355
|
+
clearTimeout(i);
|
|
1356
1356
|
});
|
|
1357
|
-
}), (
|
|
1357
|
+
}), (i, c) => e.preloaded ? Te((s(), E(Ke, {
|
|
1358
1358
|
key: 0,
|
|
1359
|
-
appear: f(
|
|
1359
|
+
appear: f(r),
|
|
1360
1360
|
css: !1,
|
|
1361
|
-
onBeforeEnter: c[0] || (c[0] = (
|
|
1361
|
+
onBeforeEnter: c[0] || (c[0] = (h) => n("before-enter", h)),
|
|
1362
1362
|
onEnter: u,
|
|
1363
|
-
onAfterEnter: c[1] || (c[1] = (
|
|
1364
|
-
onEnterCancelled: c[2] || (c[2] = (
|
|
1365
|
-
onBeforeLeave: c[3] || (c[3] = (
|
|
1363
|
+
onAfterEnter: c[1] || (c[1] = (h) => n("after-enter", h)),
|
|
1364
|
+
onEnterCancelled: c[2] || (c[2] = (h) => n("enter-cancelled", h)),
|
|
1365
|
+
onBeforeLeave: c[3] || (c[3] = (h) => n("before-leave", h)),
|
|
1366
1366
|
onLeave: o,
|
|
1367
|
-
onAfterLeave:
|
|
1368
|
-
onLeaveCancelled: c[4] || (c[4] = (
|
|
1367
|
+
onAfterLeave: d,
|
|
1368
|
+
onLeaveCancelled: c[4] || (c[4] = (h) => n("leave-cancelled", h))
|
|
1369
1369
|
}, {
|
|
1370
|
-
default:
|
|
1371
|
-
|
|
1370
|
+
default: L(() => [
|
|
1371
|
+
x(i.$slots, "default")
|
|
1372
1372
|
]),
|
|
1373
1373
|
_: 3
|
|
1374
1374
|
}, 8, ["appear"])), [
|
|
1375
|
-
[
|
|
1376
|
-
]) : (
|
|
1375
|
+
[xe, e.shown]
|
|
1376
|
+
]) : (s(), E(Ke, {
|
|
1377
1377
|
key: 1,
|
|
1378
1378
|
appear: !0,
|
|
1379
1379
|
css: !1,
|
|
1380
|
-
onBeforeEnter: c[5] || (c[5] = (
|
|
1380
|
+
onBeforeEnter: c[5] || (c[5] = (h) => n("before-enter", h)),
|
|
1381
1381
|
onEnter: u,
|
|
1382
|
-
onAfterEnter: c[6] || (c[6] = (
|
|
1383
|
-
onEnterCancelled: c[7] || (c[7] = (
|
|
1384
|
-
onBeforeLeave: c[8] || (c[8] = (
|
|
1382
|
+
onAfterEnter: c[6] || (c[6] = (h) => n("after-enter", h)),
|
|
1383
|
+
onEnterCancelled: c[7] || (c[7] = (h) => n("enter-cancelled", h)),
|
|
1384
|
+
onBeforeLeave: c[8] || (c[8] = (h) => n("before-leave", h)),
|
|
1385
1385
|
onLeave: o,
|
|
1386
|
-
onAfterLeave:
|
|
1387
|
-
onLeaveCancelled: c[9] || (c[9] = (
|
|
1386
|
+
onAfterLeave: d,
|
|
1387
|
+
onLeaveCancelled: c[9] || (c[9] = (h) => n("leave-cancelled", h))
|
|
1388
1388
|
}, {
|
|
1389
|
-
default:
|
|
1390
|
-
e.shown ?
|
|
1389
|
+
default: L(() => [
|
|
1390
|
+
e.shown ? x(i.$slots, "default", { key: 0 }) : S("", !0)
|
|
1391
1391
|
]),
|
|
1392
1392
|
_: 3
|
|
1393
1393
|
}));
|
|
1394
1394
|
}
|
|
1395
|
-
},
|
|
1396
|
-
const n =
|
|
1395
|
+
}, za = (e, a = void 0, t = "relative") => {
|
|
1396
|
+
const n = g(null), l = g(null), r = g(!1);
|
|
1397
1397
|
let u = !1;
|
|
1398
|
-
return
|
|
1399
|
-
e && (n.value = a ||
|
|
1400
|
-
}),
|
|
1398
|
+
return X(() => {
|
|
1399
|
+
e && (n.value = a || ot(), document.getElementById(n.value) ? (l.value = document.getElementById(n.value), u = !0) : (l.value = document.createElement("div"), l.value.id = n.value, l.value.style.position = t, document.body.insertAdjacentElement("afterbegin", l.value)), r.value = !0);
|
|
1400
|
+
}), ve(() => {
|
|
1401
1401
|
var o;
|
|
1402
1402
|
e && !u && ((o = document.getElementById(n.value)) == null || o.remove());
|
|
1403
|
-
}), { breakoutId: n, breakoutStub: l, breakoutMounted:
|
|
1404
|
-
},
|
|
1403
|
+
}), { breakoutId: n, breakoutStub: l, breakoutMounted: r };
|
|
1404
|
+
}, Ra = {
|
|
1405
1405
|
key: 0,
|
|
1406
1406
|
class: "bs-dropdown-backdrop"
|
|
1407
|
-
},
|
|
1407
|
+
}, Fa = ["data-width", "data-no-mobile"], ja = { key: 0 }, Ua = { key: 0 }, Wa = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1408
1408
|
__name: "BsDropdownNew",
|
|
1409
1409
|
props: {
|
|
1410
1410
|
anchorId: {
|
|
@@ -1457,102 +1457,102 @@ const $a = {
|
|
|
1457
1457
|
"after-leave"
|
|
1458
1458
|
],
|
|
1459
1459
|
setup(e, { emit: a }) {
|
|
1460
|
-
const t = e, n = a, l =
|
|
1461
|
-
|
|
1460
|
+
const t = e, n = a, l = g(null), r = g(null), u = g(!1), o = g(!1), d = p(() => document.getElementById(t.anchorId)), i = p(() => t.breakout ? h.value : t.containerId ? document.getElementById(t.containerId) : l.value.internalContainerRef), c = p(() => t.width === "anchor" ? void 0 : t.width);
|
|
1461
|
+
Ut([r, d], () => {
|
|
1462
1462
|
o.value && n("close");
|
|
1463
|
-
}),
|
|
1463
|
+
}), me(["Escape"], () => {
|
|
1464
1464
|
o.value && n("close");
|
|
1465
1465
|
});
|
|
1466
|
-
const { breakoutStub:
|
|
1467
|
-
|
|
1468
|
-
const
|
|
1469
|
-
|
|
1466
|
+
const { breakoutStub: h, breakoutMounted: w } = za(t.breakout, t.containerId);
|
|
1467
|
+
ue("dropdownEnter", u), ue("dropdownAfterEnter", o), ue("dropdownShown", p(() => t.shown));
|
|
1468
|
+
const $ = (D, R) => {
|
|
1469
|
+
r.value.style.setProperty(D, R);
|
|
1470
1470
|
};
|
|
1471
|
-
function
|
|
1472
|
-
const
|
|
1473
|
-
|
|
1471
|
+
function M() {
|
|
1472
|
+
const D = i.value.getBoundingClientRect(), R = d.value.getBoundingClientRect(), U = r.value.getBoundingClientRect();
|
|
1473
|
+
k(D, R), I(D, R, U);
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1475
|
+
function k(D, R) {
|
|
1476
1476
|
if (t.position === "top") {
|
|
1477
|
-
const
|
|
1478
|
-
|
|
1477
|
+
const U = D.bottom - R.bottom;
|
|
1478
|
+
$("--dropdown-wscreen-top", "auto"), $("--dropdown-wscreen-bottom", `${U + R.height + 8}px`);
|
|
1479
1479
|
} else {
|
|
1480
|
-
const
|
|
1481
|
-
|
|
1480
|
+
const U = R.top - D.top;
|
|
1481
|
+
$("--dropdown-wscreen-top", `${U + R.height + 8}px`), $("--dropdown-wscreen-bottom", "auto");
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1484
|
+
function I(D, R, U) {
|
|
1485
1485
|
if (t.width !== "anchor") {
|
|
1486
|
-
const
|
|
1486
|
+
const J = R.left - D.left;
|
|
1487
1487
|
if (t.position === "center") {
|
|
1488
|
-
const
|
|
1489
|
-
|
|
1488
|
+
const ee = (R.width - U.width) / 2;
|
|
1489
|
+
$("--dropdown-wscreen-left", `${J + ee}px`), $("--dropdown-wscreen-right", "auto");
|
|
1490
1490
|
} else if (t.position === "right") {
|
|
1491
|
-
const
|
|
1492
|
-
|
|
1491
|
+
const ee = D.right - R.right;
|
|
1492
|
+
$("--dropdown-wscreen-left", "auto"), $("--dropdown-wscreen-right", `${ee}px`);
|
|
1493
1493
|
} else
|
|
1494
|
-
|
|
1494
|
+
$("--dropdown-wscreen-left", `${J}px`), $("--dropdown-wscreen-right", "auto");
|
|
1495
1495
|
}
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1497
|
+
function O() {
|
|
1498
1498
|
if (t.width === "anchor") {
|
|
1499
|
-
const
|
|
1500
|
-
|
|
1499
|
+
const D = d.value.getBoundingClientRect();
|
|
1500
|
+
$("--dropdown-wscreen-width", `${D.width}px`);
|
|
1501
1501
|
} else
|
|
1502
|
-
|
|
1502
|
+
$("--dropdown-wscreen-width", "");
|
|
1503
1503
|
}
|
|
1504
|
-
function
|
|
1505
|
-
u.value = !0,
|
|
1504
|
+
function y() {
|
|
1505
|
+
u.value = !0, M(), O(), n("enter");
|
|
1506
1506
|
}
|
|
1507
1507
|
function m() {
|
|
1508
1508
|
o.value = !0, n("after-enter");
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1510
|
+
function P() {
|
|
1511
1511
|
u.value = !1, o.value = !1, n("after-leave");
|
|
1512
1512
|
}
|
|
1513
|
-
return (
|
|
1514
|
-
e.useMobileStyle && e.shown ? (
|
|
1515
|
-
|
|
1513
|
+
return (D, R) => (s(), v(W, null, [
|
|
1514
|
+
e.useMobileStyle && e.shown ? (s(), v("div", Ra)) : S("", !0),
|
|
1515
|
+
A(Na, {
|
|
1516
1516
|
ref_key: "dropdownContainerRef",
|
|
1517
1517
|
ref: l,
|
|
1518
1518
|
breakout: e.breakout,
|
|
1519
1519
|
breakoutMounted: f(w),
|
|
1520
|
-
breakoutStub: f(
|
|
1520
|
+
breakoutStub: f(h),
|
|
1521
1521
|
containerId: e.containerId
|
|
1522
1522
|
}, {
|
|
1523
|
-
default:
|
|
1524
|
-
|
|
1523
|
+
default: L(() => [
|
|
1524
|
+
A(Oe, {
|
|
1525
1525
|
shown: e.shown,
|
|
1526
1526
|
preloaded: e.preloaded,
|
|
1527
1527
|
duration: 75,
|
|
1528
1528
|
"enter-attribute": "data-shown",
|
|
1529
1529
|
onAfterEnter: m,
|
|
1530
|
-
onEnter:
|
|
1531
|
-
onAfterLeave:
|
|
1530
|
+
onEnter: y,
|
|
1531
|
+
onAfterLeave: P
|
|
1532
1532
|
}, {
|
|
1533
|
-
default:
|
|
1534
|
-
|
|
1533
|
+
default: L(() => [
|
|
1534
|
+
b("div", z({
|
|
1535
1535
|
ref_key: "dropdownRef",
|
|
1536
|
-
ref:
|
|
1536
|
+
ref: r,
|
|
1537
1537
|
class: "bs-dropdown",
|
|
1538
1538
|
"data-width": c.value,
|
|
1539
1539
|
"data-no-mobile": !e.useMobileStyle
|
|
1540
|
-
},
|
|
1541
|
-
e.helperText ? (
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
e.helperDescription ? (
|
|
1540
|
+
}, D.$attrs), [
|
|
1541
|
+
e.helperText ? (s(), v("header", ja, [
|
|
1542
|
+
b("div", null, [
|
|
1543
|
+
b("h3", null, C(e.helperText), 1),
|
|
1544
|
+
e.helperDescription ? (s(), v("p", Ua, C(e.helperDescription), 1)) : S("", !0)
|
|
1545
1545
|
]),
|
|
1546
|
-
|
|
1546
|
+
b("button", {
|
|
1547
1547
|
type: "button",
|
|
1548
1548
|
title: "close",
|
|
1549
|
-
onClick:
|
|
1549
|
+
onClick: R[0] || (R[0] = () => n("close"))
|
|
1550
1550
|
}, [
|
|
1551
|
-
|
|
1551
|
+
A(f(Ae))
|
|
1552
1552
|
])
|
|
1553
|
-
])) :
|
|
1554
|
-
|
|
1555
|
-
], 16,
|
|
1553
|
+
])) : S("", !0),
|
|
1554
|
+
x(D.$slots, "default")
|
|
1555
|
+
], 16, Fa)
|
|
1556
1556
|
]),
|
|
1557
1557
|
_: 3
|
|
1558
1558
|
}, 8, ["shown", "preloaded"])
|
|
@@ -1561,7 +1561,7 @@ const $a = {
|
|
|
1561
1561
|
}, 8, ["breakout", "breakoutMounted", "breakoutStub", "containerId"])
|
|
1562
1562
|
], 64));
|
|
1563
1563
|
}
|
|
1564
|
-
}),
|
|
1564
|
+
}), dt = {
|
|
1565
1565
|
__name: "BsDropdown",
|
|
1566
1566
|
props: {
|
|
1567
1567
|
anchorId: {
|
|
@@ -1651,8 +1651,8 @@ const $a = {
|
|
|
1651
1651
|
"after-leave"
|
|
1652
1652
|
],
|
|
1653
1653
|
setup(e, { emit: a }) {
|
|
1654
|
-
const t = e, n = a, { transition: l } =
|
|
1655
|
-
return (
|
|
1654
|
+
const t = e, n = a, { transition: l } = ye(t), r = p(() => t.width === "toggle" ? "anchor" : t.width), u = p(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = p(() => t.toggleId ? t.toggleId : t.anchorId);
|
|
1655
|
+
return (d, i) => (s(), E(Wa, {
|
|
1656
1656
|
"anchor-id": o.value,
|
|
1657
1657
|
breakout: e.breakout,
|
|
1658
1658
|
"container-id": e.containerId,
|
|
@@ -1662,29 +1662,25 @@ const $a = {
|
|
|
1662
1662
|
preloaded: e.preloaded,
|
|
1663
1663
|
shown: f(l),
|
|
1664
1664
|
"use-mobile-style": e.useMobileStyle,
|
|
1665
|
-
width:
|
|
1666
|
-
onClose:
|
|
1667
|
-
onEnter:
|
|
1668
|
-
onAfterEnter:
|
|
1669
|
-
onAfterLeave:
|
|
1665
|
+
width: r.value,
|
|
1666
|
+
onClose: i[0] || (i[0] = () => n("close")),
|
|
1667
|
+
onEnter: i[1] || (i[1] = () => n("enter")),
|
|
1668
|
+
onAfterEnter: i[2] || (i[2] = () => n("after-enter")),
|
|
1669
|
+
onAfterLeave: i[3] || (i[3] = () => n("after-leave"))
|
|
1670
1670
|
}, {
|
|
1671
|
-
default:
|
|
1672
|
-
|
|
1671
|
+
default: L(() => [
|
|
1672
|
+
x(d.$slots, "default")
|
|
1673
1673
|
]),
|
|
1674
1674
|
_: 3
|
|
1675
1675
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
|
|
1676
1676
|
}
|
|
1677
|
-
},
|
|
1677
|
+
}, Ga = ["aria-activedescendant", "aria-label", "data-overflow", "id", "tabindex"], je = {
|
|
1678
1678
|
__name: "BsDropdownOptionList",
|
|
1679
1679
|
props: {
|
|
1680
1680
|
optionsId: {
|
|
1681
1681
|
type: String,
|
|
1682
1682
|
required: !0
|
|
1683
1683
|
},
|
|
1684
|
-
focusOnShow: {
|
|
1685
|
-
type: Boolean,
|
|
1686
|
-
default: !0
|
|
1687
|
-
},
|
|
1688
1684
|
label: {
|
|
1689
1685
|
type: String,
|
|
1690
1686
|
default: "Select an option"
|
|
@@ -1708,121 +1704,137 @@ const $a = {
|
|
|
1708
1704
|
default: void 0
|
|
1709
1705
|
}
|
|
1710
1706
|
},
|
|
1711
|
-
emits: [
|
|
1707
|
+
emits: [
|
|
1708
|
+
"close",
|
|
1709
|
+
"optselected",
|
|
1710
|
+
"update:modelValue"
|
|
1711
|
+
],
|
|
1712
1712
|
setup(e, { expose: a, emit: t }) {
|
|
1713
|
-
const n = e, l = t,
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
[c, () => {
|
|
1721
|
-
var I;
|
|
1722
|
-
return (I = s.value) == null ? void 0 : I.length;
|
|
1713
|
+
const n = e, l = t, r = g(null), u = g(null), o = g(-1), d = g(-1), i = g(null), c = g(!1), h = ce("dropdownEnter", g(!1)), w = ce("dropdownAfterEnter", g(!1)), $ = ce("dropdownShown", g(!1));
|
|
1714
|
+
ue("optionsId", p(() => n.optionsId)), ue("handleOptionSelect", ie), Wt(r, O, { childList: !0 }), me([" ", "Enter", "NumpadEnter"], pe, r), me(["ArrowDown", "ArrowUp", "Home", "End"], he), X(() => {
|
|
1715
|
+
O(), U($.value);
|
|
1716
|
+
}), N(
|
|
1717
|
+
[h, () => {
|
|
1718
|
+
var T;
|
|
1719
|
+
return (T = i.value) == null ? void 0 : T.length;
|
|
1723
1720
|
}],
|
|
1724
|
-
([
|
|
1725
|
-
(
|
|
1721
|
+
([T, j]) => {
|
|
1722
|
+
(T || j > 0) && (c.value = r.value.scrollHeight > r.value.clientHeight);
|
|
1726
1723
|
}
|
|
1727
|
-
),
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
i.value.querySelectorAll('[data-component="bs-dropdown-option"]')
|
|
1724
|
+
), N(w, (T) => {
|
|
1725
|
+
T && (y(), m());
|
|
1726
|
+
}), N($, (T) => U(T));
|
|
1727
|
+
const I = p(() => n.modelValue || n.selectedValue);
|
|
1728
|
+
function O() {
|
|
1729
|
+
i.value = Array.from(
|
|
1730
|
+
r.value.querySelectorAll('[data-component="bs-dropdown-option"]')
|
|
1735
1731
|
);
|
|
1736
1732
|
}
|
|
1737
|
-
function
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
return (F = q == null ? void 0 : q.setAttribute) == null ? void 0 : F.call(q, "aria-selected", "false");
|
|
1744
|
-
}), b > -1 && ((I = s.value[b]) == null || I.setAttribute("data-selected", ""), (A = s.value[b]) == null || A.setAttribute("aria-selected", "true"), o.value = b)) : (s.value.forEach((q) => {
|
|
1745
|
-
var F;
|
|
1746
|
-
return (F = q == null ? void 0 : q.removeAttribute) == null ? void 0 : F.call(q, "data-selected");
|
|
1747
|
-
}), s.value.forEach((q) => {
|
|
1748
|
-
var F;
|
|
1749
|
-
return (F = q == null ? void 0 : q.removeAttribute) == null ? void 0 : F.call(q, "aria-selected");
|
|
1750
|
-
}));
|
|
1733
|
+
function y() {
|
|
1734
|
+
r.value.getBoundingClientRect().bottom > window.innerHeight && r.value.scrollIntoView();
|
|
1735
|
+
}
|
|
1736
|
+
function m() {
|
|
1737
|
+
var T;
|
|
1738
|
+
o.value > -1 && (y(), (T = i.value[o.value]) == null || T.scrollIntoView({ block: "nearest" }));
|
|
1751
1739
|
}
|
|
1752
|
-
qt(
|
|
1753
|
-
i,
|
|
1754
|
-
() => {
|
|
1755
|
-
S();
|
|
1756
|
-
},
|
|
1757
|
-
{ childList: !0 }
|
|
1758
|
-
);
|
|
1759
1740
|
function P() {
|
|
1760
|
-
var
|
|
1761
|
-
o.value > -1 && ((
|
|
1741
|
+
var T;
|
|
1742
|
+
o.value > -1 && ((T = i.value[o.value]) == null || T.setAttribute("data-active", ""), u.value = i.value[o.value].id, m());
|
|
1743
|
+
}
|
|
1744
|
+
function D() {
|
|
1745
|
+
var T;
|
|
1746
|
+
o.value > -1 && ((T = i.value[o.value]) == null || T.removeAttribute("data-active"));
|
|
1747
|
+
}
|
|
1748
|
+
function R() {
|
|
1749
|
+
var T;
|
|
1750
|
+
o.value < 0 && (o.value = 0, u.value = (T = i.value[0]) == null ? void 0 : T.id), P();
|
|
1751
|
+
}
|
|
1752
|
+
function U(T) {
|
|
1753
|
+
T ? J() : ee();
|
|
1754
|
+
}
|
|
1755
|
+
function J() {
|
|
1756
|
+
var T, j;
|
|
1757
|
+
n.multiselect || (d.value = i.value.findIndex(
|
|
1758
|
+
(se) => se.getAttribute("data-value") === String(I.value)
|
|
1759
|
+
), !n.multiselect && d.value > -1 && ((T = i.value[d.value]) == null || T.setAttribute("data-selected", ""), (j = i.value[d.value]) == null || j.setAttribute("aria-selected", "true")), o.value = d.value);
|
|
1760
|
+
}
|
|
1761
|
+
function ee() {
|
|
1762
|
+
i.value.forEach((T) => {
|
|
1763
|
+
T.removeAttribute("data-selected"), T.setAttribute("aria-selected", "false");
|
|
1764
|
+
}), D(), d.value = -1, o.value = -1, u.value = null;
|
|
1765
|
+
}
|
|
1766
|
+
function ie(T) {
|
|
1767
|
+
var se;
|
|
1768
|
+
(se = T.querySelector("a")) == null || se.click();
|
|
1769
|
+
let j = T.getAttribute("data-value");
|
|
1770
|
+
T.getAttribute("data-value-type") === "number" && (j = Number(j)), u.value = T.id, D(), l("optselected", j), l("update:modelValue", j), l("close");
|
|
1771
|
+
}
|
|
1772
|
+
function pe(T) {
|
|
1773
|
+
ie(i.value[o.value]), T.preventDefault();
|
|
1762
1774
|
}
|
|
1763
|
-
function
|
|
1764
|
-
if (
|
|
1765
|
-
switch (
|
|
1775
|
+
function he(T) {
|
|
1776
|
+
if ($.value)
|
|
1777
|
+
switch (T.key) {
|
|
1766
1778
|
case "ArrowDown":
|
|
1767
|
-
|
|
1779
|
+
re("down"), T.preventDefault();
|
|
1768
1780
|
break;
|
|
1769
1781
|
case "ArrowUp":
|
|
1770
|
-
|
|
1782
|
+
re("up"), T.preventDefault();
|
|
1771
1783
|
break;
|
|
1772
1784
|
case "Home":
|
|
1773
|
-
|
|
1785
|
+
re("home"), T.preventDefault();
|
|
1774
1786
|
break;
|
|
1775
1787
|
case "End":
|
|
1776
|
-
|
|
1777
|
-
break;
|
|
1778
|
-
case "Tab":
|
|
1779
|
-
o.value = b, n.preventTab && I.preventDefault();
|
|
1788
|
+
re("end"), T.preventDefault();
|
|
1780
1789
|
break;
|
|
1781
1790
|
}
|
|
1782
1791
|
}
|
|
1783
|
-
function
|
|
1784
|
-
let
|
|
1785
|
-
switch (
|
|
1792
|
+
function re(T) {
|
|
1793
|
+
let j;
|
|
1794
|
+
switch (T) {
|
|
1786
1795
|
case "up":
|
|
1787
|
-
|
|
1796
|
+
j = o.value - 1 < 0 ? i.value.length - 1 : o.value - 1;
|
|
1788
1797
|
break;
|
|
1789
1798
|
case "down":
|
|
1790
|
-
|
|
1799
|
+
j = (o.value + 1) % i.value.length;
|
|
1791
1800
|
break;
|
|
1792
1801
|
case "home":
|
|
1793
|
-
|
|
1802
|
+
j = 0;
|
|
1794
1803
|
break;
|
|
1795
1804
|
case "end":
|
|
1796
|
-
|
|
1805
|
+
j = i.value.length - 1;
|
|
1797
1806
|
break;
|
|
1798
1807
|
}
|
|
1799
|
-
|
|
1800
|
-
}
|
|
1801
|
-
function z(I, A) {
|
|
1802
|
-
u.value = I, P(), l("optselected", A), l("update:modelValue", A), l("close");
|
|
1808
|
+
D(), o.value = j, document.activeElement !== r.value ? r.value.focus() : P();
|
|
1803
1809
|
}
|
|
1804
1810
|
return a({
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
refreshOptions:
|
|
1809
|
-
|
|
1811
|
+
activeIndex: o,
|
|
1812
|
+
optionEls: i,
|
|
1813
|
+
optionsRef: r,
|
|
1814
|
+
refreshOptions: O,
|
|
1815
|
+
setCurrentActive: P
|
|
1816
|
+
}), (T, j) => (s(), v("ul", {
|
|
1810
1817
|
ref_key: "optionsRef",
|
|
1811
|
-
ref:
|
|
1818
|
+
ref: r,
|
|
1812
1819
|
"aria-activedescendant": u.value || void 0,
|
|
1813
1820
|
"aria-label": e.label,
|
|
1814
1821
|
class: "bs-dropdown-options",
|
|
1815
|
-
"data-overflow":
|
|
1822
|
+
"data-overflow": c.value,
|
|
1816
1823
|
id: e.optionsId,
|
|
1817
|
-
role: "listbox"
|
|
1824
|
+
role: "listbox",
|
|
1825
|
+
tabindex: f($) ? 0 : void 0,
|
|
1826
|
+
onBlur: D,
|
|
1827
|
+
onFocus: R,
|
|
1828
|
+
onMousedown: j[0] || (j[0] = ht(() => {
|
|
1829
|
+
}, ["prevent"]))
|
|
1818
1830
|
}, [
|
|
1819
|
-
|
|
1820
|
-
],
|
|
1831
|
+
x(T.$slots, "default")
|
|
1832
|
+
], 40, Ga));
|
|
1821
1833
|
}
|
|
1822
|
-
},
|
|
1834
|
+
}, Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1823
1835
|
__proto__: null,
|
|
1824
|
-
default:
|
|
1825
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1836
|
+
default: je
|
|
1837
|
+
}, Symbol.toStringTag, { value: "Module" })), Ka = ["data-value", "data-value-type", "data-variant", "id"], Ue = {
|
|
1826
1838
|
__name: "BsDropdownOption",
|
|
1827
1839
|
props: {
|
|
1828
1840
|
value: {
|
|
@@ -1835,30 +1847,26 @@ const $a = {
|
|
|
1835
1847
|
}
|
|
1836
1848
|
},
|
|
1837
1849
|
setup(e) {
|
|
1838
|
-
const a = e, t =
|
|
1839
|
-
}),
|
|
1840
|
-
Ie([" ", "Enter", "NumpadEnter"], (o) => {
|
|
1841
|
-
u(), o.preventDefault();
|
|
1842
|
-
}, t);
|
|
1850
|
+
const a = e, t = g(null), n = ce("optionsId", ""), l = ce("handleOptionSelect", () => {
|
|
1851
|
+
}), r = p(() => `${n.value}-option-${a.value}`);
|
|
1843
1852
|
function u(o) {
|
|
1844
|
-
|
|
1845
|
-
l(i.value, a.value), (s = t.value.querySelector("a")) == null || s.click(), (r = o == null ? void 0 : o.stopPropagation) == null || r.call(o);
|
|
1853
|
+
l(t.value), o.stopPropagation();
|
|
1846
1854
|
}
|
|
1847
|
-
return (o,
|
|
1855
|
+
return (o, d) => (s(), v("li", {
|
|
1848
1856
|
ref_key: "optionRef",
|
|
1849
1857
|
ref: t,
|
|
1850
1858
|
"data-component": "bs-dropdown-option",
|
|
1851
1859
|
"data-value": a.value,
|
|
1860
|
+
"data-value-type": typeof a.value,
|
|
1852
1861
|
"data-variant": e.variant || void 0,
|
|
1853
|
-
id:
|
|
1862
|
+
id: r.value,
|
|
1854
1863
|
role: "option",
|
|
1855
|
-
tabIndex: -1,
|
|
1856
1864
|
onClick: u
|
|
1857
1865
|
}, [
|
|
1858
|
-
|
|
1859
|
-
], 8,
|
|
1866
|
+
x(o.$slots, "default")
|
|
1867
|
+
], 8, Ka));
|
|
1860
1868
|
}
|
|
1861
|
-
},
|
|
1869
|
+
}, Ya = ["data-img-size", "data-initials", "data-no-img"], Xa = ["src", "alt"], ut = {
|
|
1862
1870
|
__name: "BsProfileImg",
|
|
1863
1871
|
props: {
|
|
1864
1872
|
src: String,
|
|
@@ -1877,26 +1885,26 @@ const $a = {
|
|
|
1877
1885
|
}
|
|
1878
1886
|
},
|
|
1879
1887
|
setup(e) {
|
|
1880
|
-
const a = e, t =
|
|
1881
|
-
return
|
|
1888
|
+
const a = e, t = g(!1), n = g(!!a.src);
|
|
1889
|
+
return X(() => t.value = !0), (l, r) => (s(), v("div", {
|
|
1882
1890
|
class: "bs-profile-img",
|
|
1883
1891
|
"data-img-size": e.size,
|
|
1884
1892
|
"data-initials": e.initials,
|
|
1885
1893
|
"data-no-img": !n.value
|
|
1886
1894
|
}, [
|
|
1887
|
-
n.value && t.value ? (
|
|
1895
|
+
n.value && t.value ? (s(), v("img", {
|
|
1888
1896
|
key: 0,
|
|
1889
1897
|
src: e.src,
|
|
1890
1898
|
alt: e.useAltText ? e.profileName : "",
|
|
1891
|
-
onError:
|
|
1892
|
-
}, null, 40,
|
|
1893
|
-
], 8,
|
|
1899
|
+
onError: r[0] || (r[0] = (u) => n.value = !1)
|
|
1900
|
+
}, null, 40, Xa)) : S("", !0)
|
|
1901
|
+
], 8, Ya));
|
|
1894
1902
|
}
|
|
1895
|
-
},
|
|
1903
|
+
}, Qa = ["id", "data-checked"], Ja = { key: 1 }, Za = ["innerHTML"], _a = { key: 4 }, en = { key: 5 }, tn = {
|
|
1896
1904
|
key: 0,
|
|
1897
1905
|
role: "option",
|
|
1898
1906
|
"data-no-hover": ""
|
|
1899
|
-
},
|
|
1907
|
+
}, Ce = {
|
|
1900
1908
|
__name: "BsDropdownOptionBuilder",
|
|
1901
1909
|
props: {
|
|
1902
1910
|
// Array of objects with the following properties (either label or labelHtml
|
|
@@ -1929,74 +1937,74 @@ const $a = {
|
|
|
1929
1937
|
},
|
|
1930
1938
|
setup(e) {
|
|
1931
1939
|
const a = e, t = {};
|
|
1932
|
-
|
|
1940
|
+
nt(() => {
|
|
1933
1941
|
n();
|
|
1934
|
-
}),
|
|
1942
|
+
}), N(() => a.options, () => {
|
|
1935
1943
|
n();
|
|
1936
1944
|
});
|
|
1937
1945
|
function n() {
|
|
1938
1946
|
a.options.forEach((o) => {
|
|
1939
|
-
const { icon:
|
|
1940
|
-
|
|
1947
|
+
const { icon: d } = o;
|
|
1948
|
+
d && !t[d] && (t[d] = r(d));
|
|
1941
1949
|
});
|
|
1942
1950
|
}
|
|
1943
1951
|
function l(o) {
|
|
1944
|
-
let
|
|
1945
|
-
return
|
|
1952
|
+
let d = "", i = 1;
|
|
1953
|
+
return i += o.checkbox ? 1 : 0, i += o.icon ? 1 : 0, i += o.profileImg ? 1 : 0, i > 1 && (d += ` ${i}-col`), o.checkbox && (d += " checkbox"), o.description && (d += " description"), o.negative && (d += " negative"), d;
|
|
1946
1954
|
}
|
|
1947
|
-
function
|
|
1955
|
+
function r(o) {
|
|
1948
1956
|
return Re(async () => {
|
|
1949
|
-
const { [`BsIcon${o}`]:
|
|
1950
|
-
return
|
|
1957
|
+
const { [`BsIcon${o}`]: d } = await import("@wwtdev/bsds-icons-vue3");
|
|
1958
|
+
return d;
|
|
1951
1959
|
});
|
|
1952
1960
|
}
|
|
1953
|
-
function u(o,
|
|
1954
|
-
return !!o && o !==
|
|
1961
|
+
function u(o, d) {
|
|
1962
|
+
return !!o && o !== d;
|
|
1955
1963
|
}
|
|
1956
|
-
return (o,
|
|
1957
|
-
(
|
|
1958
|
-
"aria-checked":
|
|
1959
|
-
key:
|
|
1960
|
-
value:
|
|
1961
|
-
variant: l(
|
|
1964
|
+
return (o, d) => (s(), v(W, null, [
|
|
1965
|
+
(s(!0), v(W, null, _(e.options, (i) => (s(), E(Ue, {
|
|
1966
|
+
"aria-checked": i.checkbox ? i.checkbox.checked : void 0,
|
|
1967
|
+
key: i.value,
|
|
1968
|
+
value: i.value,
|
|
1969
|
+
variant: l(i)
|
|
1962
1970
|
}, {
|
|
1963
|
-
default:
|
|
1964
|
-
|
|
1971
|
+
default: L(() => [
|
|
1972
|
+
i.checkbox ? (s(), v("span", {
|
|
1965
1973
|
key: 0,
|
|
1966
|
-
id:
|
|
1974
|
+
id: i.checkbox.inputId,
|
|
1967
1975
|
"aria-hidden": "true",
|
|
1968
1976
|
class: "bs-checkbox",
|
|
1969
|
-
"data-checked":
|
|
1970
|
-
}, null, 8,
|
|
1971
|
-
|
|
1972
|
-
(
|
|
1973
|
-
])) :
|
|
1974
|
-
|
|
1977
|
+
"data-checked": i.checkbox.checked
|
|
1978
|
+
}, null, 8, Qa)) : S("", !0),
|
|
1979
|
+
i.icon ? (s(), v("span", Ja, [
|
|
1980
|
+
(s(), E(te(t[i.icon])))
|
|
1981
|
+
])) : S("", !0),
|
|
1982
|
+
i.profileImg ? (s(), E(ut, {
|
|
1975
1983
|
key: 2,
|
|
1976
|
-
src:
|
|
1984
|
+
src: i.profileImg.src,
|
|
1977
1985
|
size: "xs",
|
|
1978
|
-
initials:
|
|
1979
|
-
"profile-name":
|
|
1980
|
-
"use-alt-text": u(
|
|
1981
|
-
}, null, 8, ["src", "initials", "profile-name", "use-alt-text"])) :
|
|
1982
|
-
|
|
1986
|
+
initials: i.profileImg.initials,
|
|
1987
|
+
"profile-name": i.profileImg.profileName,
|
|
1988
|
+
"use-alt-text": u(i.profileImg.profileName, i.label)
|
|
1989
|
+
}, null, 8, ["src", "initials", "profile-name", "use-alt-text"])) : S("", !0),
|
|
1990
|
+
i.labelHtml ? (s(), v("span", {
|
|
1983
1991
|
key: 3,
|
|
1984
|
-
innerHTML:
|
|
1985
|
-
}, null, 8,
|
|
1986
|
-
|
|
1992
|
+
innerHTML: i.labelHtml
|
|
1993
|
+
}, null, 8, Za)) : (s(), v("span", _a, C(i.label), 1)),
|
|
1994
|
+
i.description ? (s(), v("span", en, C(i.description), 1)) : S("", !0)
|
|
1987
1995
|
]),
|
|
1988
1996
|
_: 2
|
|
1989
1997
|
}, 1032, ["aria-checked", "value", "variant"]))), 128)),
|
|
1990
|
-
e.showNoOptions && e.options.length === 0 ? (
|
|
1991
|
-
|
|
1998
|
+
e.showNoOptions && e.options.length === 0 ? (s(), v("li", tn, [
|
|
1999
|
+
x(o.$slots, "no-options", {}, () => [
|
|
1992
2000
|
H("No options")
|
|
1993
2001
|
])
|
|
1994
|
-
])) :
|
|
2002
|
+
])) : S("", !0)
|
|
1995
2003
|
], 64));
|
|
1996
2004
|
}
|
|
1997
|
-
},
|
|
1998
|
-
|
|
1999
|
-
],
|
|
2005
|
+
}, an = { role: "separator" }, nn = /* @__PURE__ */ b("hr", null, null, -1), ln = [
|
|
2006
|
+
nn
|
|
2007
|
+
], on = {
|
|
2000
2008
|
__name: "BsDropdownMultiselect",
|
|
2001
2009
|
props: {
|
|
2002
2010
|
label: {
|
|
@@ -2022,51 +2030,45 @@ const $a = {
|
|
|
2022
2030
|
},
|
|
2023
2031
|
emits: ["update:selectedOptions"],
|
|
2024
2032
|
setup(e, { emit: a }) {
|
|
2025
|
-
const t = e, n = a, l =
|
|
2033
|
+
const t = e, n = a, l = g(null), r = g([]), u = g([]);
|
|
2026
2034
|
let o = !1;
|
|
2027
|
-
|
|
2035
|
+
N(() => t.options, () => {
|
|
2036
|
+
c(t.selectedOptions);
|
|
2037
|
+
}), N(
|
|
2028
2038
|
() => t.selectedOptions,
|
|
2029
2039
|
c,
|
|
2030
2040
|
{ immediate: !0 }
|
|
2031
|
-
),
|
|
2032
|
-
|
|
2041
|
+
), N(() => t.shown, ($) => {
|
|
2042
|
+
$ && ge(d);
|
|
2033
2043
|
});
|
|
2034
|
-
function
|
|
2035
|
-
|
|
2036
|
-
l.value && (l.value.refreshOptions(), l.value.activeDescendantId = (x = l.value.optionEls[0]) == null ? void 0 : x.id, l.value.focusedIndex = 0);
|
|
2037
|
-
const b = document.querySelector(`#${t.optionsId} [data-component="bs-dropdown-option"]`);
|
|
2038
|
-
(S = b == null ? void 0 : b.focus) == null || S.call(b, { preventScroll: !0 });
|
|
2044
|
+
function d() {
|
|
2045
|
+
l.value && (l.value.refreshOptions(), l.value.optionsRef.focus());
|
|
2039
2046
|
}
|
|
2040
|
-
function
|
|
2041
|
-
|
|
2042
|
-
if (l.value) {
|
|
2043
|
-
l.value.refreshOptions();
|
|
2044
|
-
const x = l.value.focusedIndex, S = l.value.optionEls[x];
|
|
2045
|
-
(b = S == null ? void 0 : S.focus) == null || b.call(S), l.value.activeDescendantId = S == null ? void 0 : S.id;
|
|
2046
|
-
}
|
|
2047
|
+
function i() {
|
|
2048
|
+
l.value && (l.value.refreshOptions(), l.value.setCurrentActive());
|
|
2047
2049
|
}
|
|
2048
|
-
function c(
|
|
2049
|
-
const
|
|
2050
|
-
t.options.forEach((
|
|
2051
|
-
const
|
|
2052
|
-
|
|
2053
|
-
}),
|
|
2054
|
-
u.value =
|
|
2055
|
-
o &&
|
|
2050
|
+
function c($ = []) {
|
|
2051
|
+
const M = new Set($), k = [], I = [];
|
|
2052
|
+
t.options.forEach((O) => {
|
|
2053
|
+
const y = { ...O }, m = `${t.optionsId}-${O.value}-cb`;
|
|
2054
|
+
M.has(O.value) ? (y.checkbox = { inputId: m, checked: !0 }, k.push(y)) : (y.checkbox = { inputId: m, checked: !1 }, I.push(y));
|
|
2055
|
+
}), r.value = k, ge(() => {
|
|
2056
|
+
u.value = I, ge(() => {
|
|
2057
|
+
o && i(), o = !1;
|
|
2056
2058
|
});
|
|
2057
2059
|
});
|
|
2058
2060
|
}
|
|
2059
|
-
function
|
|
2060
|
-
const
|
|
2061
|
-
return t.options.forEach((
|
|
2062
|
-
|
|
2063
|
-
}),
|
|
2061
|
+
function h($ = []) {
|
|
2062
|
+
const M = new Set($), k = [];
|
|
2063
|
+
return t.options.forEach((I) => {
|
|
2064
|
+
M.has(I.value) && k.push(I.value);
|
|
2065
|
+
}), k;
|
|
2064
2066
|
}
|
|
2065
|
-
function w(
|
|
2066
|
-
const
|
|
2067
|
-
o = !0, n("update:selectedOptions",
|
|
2067
|
+
function w($) {
|
|
2068
|
+
const M = t.selectedOptions.includes($) ? t.selectedOptions.filter((k) => k !== $) : h([...t.selectedOptions, $]);
|
|
2069
|
+
o = !0, n("update:selectedOptions", M);
|
|
2068
2070
|
}
|
|
2069
|
-
return (
|
|
2071
|
+
return ($, M) => (s(), E(je, {
|
|
2070
2072
|
ref_key: "optlist",
|
|
2071
2073
|
ref: l,
|
|
2072
2074
|
"aria-multiselectable": "true",
|
|
@@ -2077,17 +2079,17 @@ const $a = {
|
|
|
2077
2079
|
shown: e.shown,
|
|
2078
2080
|
"onUpdate:modelValue": w
|
|
2079
2081
|
}, {
|
|
2080
|
-
default:
|
|
2081
|
-
var
|
|
2082
|
+
default: L(() => {
|
|
2083
|
+
var k;
|
|
2082
2084
|
return [
|
|
2083
|
-
|
|
2084
|
-
options:
|
|
2085
|
+
A(Ce, {
|
|
2086
|
+
options: r.value,
|
|
2085
2087
|
"show-no-options": !1
|
|
2086
2088
|
}, null, 8, ["options"]),
|
|
2087
|
-
|
|
2088
|
-
[
|
|
2089
|
+
Te(b("li", an, ln, 512), [
|
|
2090
|
+
[xe, (k = r.value) == null ? void 0 : k.length]
|
|
2089
2091
|
]),
|
|
2090
|
-
|
|
2092
|
+
A(Ce, {
|
|
2091
2093
|
options: u.value,
|
|
2092
2094
|
"show-no-options": !1
|
|
2093
2095
|
}, null, 8, ["options"])
|
|
@@ -2096,10 +2098,10 @@ const $a = {
|
|
|
2096
2098
|
_: 1
|
|
2097
2099
|
}, 8, ["label", "options-id", "shown"]));
|
|
2098
2100
|
}
|
|
2099
|
-
},
|
|
2101
|
+
}, rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2100
2102
|
__proto__: null,
|
|
2101
|
-
default:
|
|
2102
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2103
|
+
default: on
|
|
2104
|
+
}, Symbol.toStringTag, { value: "Module" })), sn = {
|
|
2103
2105
|
__name: "BsDropdownWithOptionsNew",
|
|
2104
2106
|
props: {
|
|
2105
2107
|
// DROPDOWN PROPS
|
|
@@ -2146,10 +2148,6 @@ const $a = {
|
|
|
2146
2148
|
validator: (e) => ["sm", "md", "lg", "content", "anchor"].includes(e)
|
|
2147
2149
|
},
|
|
2148
2150
|
// OPTION LIST PROPS
|
|
2149
|
-
focusOnShow: {
|
|
2150
|
-
type: Boolean,
|
|
2151
|
-
default: !0
|
|
2152
|
-
},
|
|
2153
2151
|
label: {
|
|
2154
2152
|
type: String,
|
|
2155
2153
|
default: "Select an option"
|
|
@@ -2174,17 +2172,17 @@ const $a = {
|
|
|
2174
2172
|
"after-leave"
|
|
2175
2173
|
],
|
|
2176
2174
|
setup(e, { emit: a }) {
|
|
2177
|
-
const t = a, n =
|
|
2175
|
+
const t = a, n = g(!1);
|
|
2178
2176
|
function l() {
|
|
2179
2177
|
n.value = !0;
|
|
2180
2178
|
}
|
|
2181
|
-
function
|
|
2179
|
+
function r(o) {
|
|
2182
2180
|
n.value = !1, t("update:modelValue", o), t("close");
|
|
2183
2181
|
}
|
|
2184
2182
|
function u() {
|
|
2185
2183
|
n.value && (n.value = !1, t("close"));
|
|
2186
2184
|
}
|
|
2187
|
-
return (o,
|
|
2185
|
+
return (o, d) => (s(), E(f(dt), {
|
|
2188
2186
|
"anchor-id": e.anchorId,
|
|
2189
2187
|
breakout: e.breakout,
|
|
2190
2188
|
"container-id": e.containerId,
|
|
@@ -2196,25 +2194,24 @@ const $a = {
|
|
|
2196
2194
|
"use-mobile-style": e.useMobileStyle,
|
|
2197
2195
|
width: e.width,
|
|
2198
2196
|
onClose: u,
|
|
2199
|
-
onAfterEnter:
|
|
2197
|
+
onAfterEnter: d[0] || (d[0] = (i) => t("after-enter")),
|
|
2200
2198
|
onEnter: l,
|
|
2201
|
-
onAfterLeave:
|
|
2199
|
+
onAfterLeave: d[1] || (d[1] = (i) => t("after-leave"))
|
|
2202
2200
|
}, {
|
|
2203
|
-
default:
|
|
2204
|
-
|
|
2205
|
-
"focus-on-show": e.focusOnShow,
|
|
2201
|
+
default: L(() => [
|
|
2202
|
+
A(f(je), {
|
|
2206
2203
|
label: e.label,
|
|
2207
2204
|
"model-value": e.modelValue,
|
|
2208
2205
|
"options-id": e.optionsId,
|
|
2209
2206
|
"prevent-tab": e.preventTab,
|
|
2210
|
-
"onUpdate:modelValue":
|
|
2207
|
+
"onUpdate:modelValue": r,
|
|
2211
2208
|
onClose: u
|
|
2212
2209
|
}, {
|
|
2213
|
-
default:
|
|
2214
|
-
|
|
2210
|
+
default: L(() => [
|
|
2211
|
+
x(o.$slots, "default")
|
|
2215
2212
|
]),
|
|
2216
2213
|
_: 3
|
|
2217
|
-
}, 8, ["
|
|
2214
|
+
}, 8, ["label", "model-value", "options-id", "prevent-tab"])
|
|
2218
2215
|
]),
|
|
2219
2216
|
_: 3
|
|
2220
2217
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
|
|
@@ -2302,10 +2299,6 @@ const $a = {
|
|
|
2302
2299
|
default: !1
|
|
2303
2300
|
},
|
|
2304
2301
|
// OPTION LIST PROPS
|
|
2305
|
-
focusOnShow: {
|
|
2306
|
-
type: Boolean,
|
|
2307
|
-
default: !0
|
|
2308
|
-
},
|
|
2309
2302
|
label: {
|
|
2310
2303
|
type: String,
|
|
2311
2304
|
default: "Select an option"
|
|
@@ -2337,38 +2330,37 @@ const $a = {
|
|
|
2337
2330
|
"after-leave"
|
|
2338
2331
|
],
|
|
2339
2332
|
setup(e, { emit: a }) {
|
|
2340
|
-
const t = e, n = a, { transition: l } =
|
|
2341
|
-
function
|
|
2333
|
+
const t = e, n = a, { transition: l } = ye(t), r = p(() => t.width === "toggle" ? "anchor" : t.width), u = p(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = p(() => t.toggleId ? t.toggleId : t.anchorId), d = p(() => t.selectedValue || t.modelValue);
|
|
2334
|
+
function i(c) {
|
|
2342
2335
|
n("optselected", c), n("update:modelValue", c);
|
|
2343
2336
|
}
|
|
2344
|
-
return (c,
|
|
2337
|
+
return (c, h) => (s(), E(sn, {
|
|
2345
2338
|
"anchor-id": o.value,
|
|
2346
2339
|
breakout: e.breakout,
|
|
2347
2340
|
"container-id": e.containerId,
|
|
2348
|
-
"focus-on-show": e.focusOnShow,
|
|
2349
2341
|
"helper-description": e.helperDescription,
|
|
2350
2342
|
"helper-text": e.helperText,
|
|
2351
2343
|
label: e.label,
|
|
2352
|
-
"model-value":
|
|
2344
|
+
"model-value": d.value,
|
|
2353
2345
|
"options-id": e.optionsId,
|
|
2354
2346
|
position: u.value,
|
|
2355
2347
|
preloaded: e.preloaded,
|
|
2356
2348
|
"prevent-tab": e.preventTab,
|
|
2357
2349
|
shown: f(l),
|
|
2358
2350
|
"use-mobile-style": e.useMobileStyle,
|
|
2359
|
-
width:
|
|
2360
|
-
onClose:
|
|
2361
|
-
onAfterEnter:
|
|
2362
|
-
onAfterLeave:
|
|
2363
|
-
"onUpdate:modelValue":
|
|
2351
|
+
width: r.value,
|
|
2352
|
+
onClose: h[0] || (h[0] = (w) => n("close")),
|
|
2353
|
+
onAfterEnter: h[1] || (h[1] = (w) => n("after-enter")),
|
|
2354
|
+
onAfterLeave: h[2] || (h[2] = (w) => n("after-leave")),
|
|
2355
|
+
"onUpdate:modelValue": i
|
|
2364
2356
|
}, {
|
|
2365
|
-
default:
|
|
2366
|
-
|
|
2357
|
+
default: L(() => [
|
|
2358
|
+
x(c.$slots, "default")
|
|
2367
2359
|
]),
|
|
2368
2360
|
_: 3
|
|
2369
|
-
}, 8, ["anchor-id", "breakout", "container-id", "
|
|
2361
|
+
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "label", "model-value", "options-id", "position", "preloaded", "prevent-tab", "shown", "use-mobile-style", "width"]));
|
|
2370
2362
|
}
|
|
2371
|
-
},
|
|
2363
|
+
}, dn = ["aria-controls", "aria-expanded", "data-open", "data-size", "disabled"], un = {
|
|
2372
2364
|
__name: "BsFilterButton",
|
|
2373
2365
|
props: {
|
|
2374
2366
|
badgeCount: {
|
|
@@ -2398,7 +2390,7 @@ const $a = {
|
|
|
2398
2390
|
},
|
|
2399
2391
|
setup(e) {
|
|
2400
2392
|
const a = e, t = p(() => a.badgeCount > 0);
|
|
2401
|
-
return (n, l) => (
|
|
2393
|
+
return (n, l) => (s(), v("button", {
|
|
2402
2394
|
class: "bs-filter-button",
|
|
2403
2395
|
"aria-controls": e.optionsId,
|
|
2404
2396
|
"aria-expanded": e.open,
|
|
@@ -2408,21 +2400,21 @@ const $a = {
|
|
|
2408
2400
|
disabled: e.disabled,
|
|
2409
2401
|
type: "button"
|
|
2410
2402
|
}, [
|
|
2411
|
-
t.value ? (
|
|
2403
|
+
t.value ? (s(), E(Zt, {
|
|
2412
2404
|
key: 0,
|
|
2413
2405
|
color: "blue",
|
|
2414
2406
|
count: e.badgeCount,
|
|
2415
2407
|
label: "active filter",
|
|
2416
2408
|
position: "left",
|
|
2417
2409
|
variant: "notext"
|
|
2418
|
-
}, null, 8, ["count"])) :
|
|
2419
|
-
|
|
2420
|
-
H(
|
|
2410
|
+
}, null, 8, ["count"])) : S("", !0),
|
|
2411
|
+
x(n.$slots, "label", {}, () => [
|
|
2412
|
+
H(C(e.label), 1)
|
|
2421
2413
|
]),
|
|
2422
|
-
|
|
2423
|
-
], 8,
|
|
2414
|
+
A(f(it))
|
|
2415
|
+
], 8, dn));
|
|
2424
2416
|
}
|
|
2425
|
-
},
|
|
2417
|
+
}, cn = ["id"], ao = {
|
|
2426
2418
|
__name: "BsDropdownWithToggle",
|
|
2427
2419
|
props: {
|
|
2428
2420
|
breakout: {
|
|
@@ -2485,49 +2477,53 @@ const $a = {
|
|
|
2485
2477
|
},
|
|
2486
2478
|
emits: ["update:selectedOptions", "update:selectedOption", "toggled", "close"],
|
|
2487
2479
|
setup(e, { emit: a }) {
|
|
2488
|
-
const t = e, n = a, l =
|
|
2489
|
-
|
|
2490
|
-
|
|
2480
|
+
const t = e, n = a, l = g(!1), r = g(null), u = p(() => Re(async () => await (t.multiselect ? Promise.resolve().then(() => rn) : Promise.resolve().then(() => Ha)))), [o, d] = Z(2);
|
|
2481
|
+
N(l, (k) => {
|
|
2482
|
+
k && r.value.$el.blur();
|
|
2491
2483
|
});
|
|
2492
|
-
function
|
|
2493
|
-
|
|
2484
|
+
function i() {
|
|
2485
|
+
const k = document.activeElement;
|
|
2486
|
+
return !k || k.tagName === "BODY" || k.id === d.value;
|
|
2494
2487
|
}
|
|
2495
2488
|
function c() {
|
|
2496
|
-
l.value && r();
|
|
2489
|
+
l.value = !1, n("close"), i() && r.value.$el.focus();
|
|
2497
2490
|
}
|
|
2498
|
-
function
|
|
2491
|
+
function h() {
|
|
2492
|
+
l.value && c();
|
|
2493
|
+
}
|
|
2494
|
+
function w() {
|
|
2499
2495
|
l.value = !0;
|
|
2500
2496
|
}
|
|
2501
|
-
function
|
|
2502
|
-
n("update:selectedOptions",
|
|
2497
|
+
function $(k) {
|
|
2498
|
+
n("update:selectedOptions", k);
|
|
2503
2499
|
}
|
|
2504
|
-
function
|
|
2505
|
-
t.multiselect || (n("update:selectedOption",
|
|
2500
|
+
function M(k) {
|
|
2501
|
+
t.multiselect || (n("update:selectedOption", k), c());
|
|
2506
2502
|
}
|
|
2507
|
-
return (
|
|
2503
|
+
return (k, I) => (s(), v("div", {
|
|
2508
2504
|
class: "bs-dropdown-with-toggle",
|
|
2509
|
-
id:
|
|
2505
|
+
id: k.$attrs.id
|
|
2510
2506
|
}, [
|
|
2511
|
-
|
|
2507
|
+
A(un, {
|
|
2512
2508
|
ref_key: "toggleRef",
|
|
2513
|
-
ref:
|
|
2514
|
-
"aria-controls": f(
|
|
2509
|
+
ref: r,
|
|
2510
|
+
"aria-controls": f(d),
|
|
2515
2511
|
"aria-expanded": e.open,
|
|
2516
2512
|
disabled: e.disabled,
|
|
2517
2513
|
id: f(o),
|
|
2518
2514
|
open: e.open,
|
|
2519
|
-
"options-id": f(
|
|
2515
|
+
"options-id": f(d),
|
|
2520
2516
|
size: e.toggleSize,
|
|
2521
|
-
onClick:
|
|
2517
|
+
onClick: I[0] || (I[0] = (O) => k.$emit("toggled"))
|
|
2522
2518
|
}, {
|
|
2523
|
-
label:
|
|
2524
|
-
|
|
2525
|
-
H(
|
|
2519
|
+
label: L(() => [
|
|
2520
|
+
x(k.$slots, "toggle-label", {}, () => [
|
|
2521
|
+
H(C(e.toggleLabel), 1)
|
|
2526
2522
|
])
|
|
2527
2523
|
]),
|
|
2528
2524
|
_: 3
|
|
2529
2525
|
}, 8, ["aria-controls", "aria-expanded", "disabled", "id", "open", "options-id", "size"]),
|
|
2530
|
-
|
|
2526
|
+
A(dt, {
|
|
2531
2527
|
shown: e.open,
|
|
2532
2528
|
"anchor-id": f(o),
|
|
2533
2529
|
breakout: e.breakout,
|
|
@@ -2537,23 +2533,23 @@ const $a = {
|
|
|
2537
2533
|
preloaded: "",
|
|
2538
2534
|
"use-mobile-style": e.useMobileStyle,
|
|
2539
2535
|
width: e.dropdownWidth,
|
|
2540
|
-
onClose:
|
|
2541
|
-
onEnter:
|
|
2536
|
+
onClose: h,
|
|
2537
|
+
onEnter: w
|
|
2542
2538
|
}, {
|
|
2543
|
-
default:
|
|
2544
|
-
|
|
2539
|
+
default: L(() => [
|
|
2540
|
+
A(f(u), {
|
|
2545
2541
|
label: e.dropdownLabel,
|
|
2546
2542
|
"model-value": e.selectedOption,
|
|
2547
2543
|
options: e.options,
|
|
2548
|
-
"options-id": f(
|
|
2544
|
+
"options-id": f(d),
|
|
2549
2545
|
"selected-options": e.selectedOptions,
|
|
2550
2546
|
shown: e.open,
|
|
2551
|
-
"onUpdate:modelValue":
|
|
2552
|
-
"onUpdate:selectedOptions":
|
|
2553
|
-
onClose:
|
|
2547
|
+
"onUpdate:modelValue": M,
|
|
2548
|
+
"onUpdate:selectedOptions": $,
|
|
2549
|
+
onClose: I[1] || (I[1] = (O) => e.multiselect ? void 0 : h())
|
|
2554
2550
|
}, {
|
|
2555
|
-
default:
|
|
2556
|
-
e.multiselect ?
|
|
2551
|
+
default: L(() => [
|
|
2552
|
+
e.multiselect ? S("", !0) : (s(), E(Ce, {
|
|
2557
2553
|
key: 0,
|
|
2558
2554
|
options: e.options
|
|
2559
2555
|
}, null, 8, ["options"]))
|
|
@@ -2563,34 +2559,34 @@ const $a = {
|
|
|
2563
2559
|
]),
|
|
2564
2560
|
_: 1
|
|
2565
2561
|
}, 8, ["shown", "anchor-id", "breakout", "helper-text", "helper-description", "position", "use-mobile-style", "width"])
|
|
2566
|
-
], 8,
|
|
2562
|
+
], 8, cn));
|
|
2567
2563
|
}
|
|
2568
|
-
},
|
|
2564
|
+
}, fn = ["view-box"], vn = ["id"], pn = ["offset", "stop-color"], no = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2569
2565
|
__name: "BsIconGradientWrapper",
|
|
2570
2566
|
setup(e) {
|
|
2571
|
-
const a =
|
|
2567
|
+
const a = g(null), t = g(null), n = [
|
|
2572
2568
|
{ offset: 0.1326, color: "#EE282A" },
|
|
2573
2569
|
{ offset: 0.5466, color: "#1C0087" },
|
|
2574
2570
|
{ offset: 0.9715, color: "#0086EA" }
|
|
2575
|
-
], [l] =
|
|
2576
|
-
return
|
|
2571
|
+
], [l] = Z();
|
|
2572
|
+
return X(() => {
|
|
2577
2573
|
t.value = a.value.querySelector("svg").getAttribute("viewBox") || "0 0 0 0";
|
|
2578
|
-
}), (
|
|
2579
|
-
|
|
2574
|
+
}), (r, u) => (s(), v(W, null, [
|
|
2575
|
+
b("span", z({
|
|
2580
2576
|
ref_key: "svgWrapperRef",
|
|
2581
2577
|
ref: a,
|
|
2582
2578
|
class: "bs-icon-gradient-wrapper",
|
|
2583
2579
|
style: `fill: url(#${f(l)});`
|
|
2584
|
-
},
|
|
2585
|
-
|
|
2580
|
+
}, r.$attrs), [
|
|
2581
|
+
x(r.$slots, "default")
|
|
2586
2582
|
], 16),
|
|
2587
|
-
(
|
|
2583
|
+
(s(), v("svg", {
|
|
2588
2584
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2589
2585
|
"view-box": t.value,
|
|
2590
2586
|
width: "0",
|
|
2591
2587
|
height: "0"
|
|
2592
2588
|
}, [
|
|
2593
|
-
|
|
2589
|
+
b("linearGradient", {
|
|
2594
2590
|
id: f(l),
|
|
2595
2591
|
x1: "0",
|
|
2596
2592
|
y1: "0",
|
|
@@ -2598,16 +2594,16 @@ const $a = {
|
|
|
2598
2594
|
y2: "100%",
|
|
2599
2595
|
"gradient-units": "userSpaceOnUse"
|
|
2600
2596
|
}, [
|
|
2601
|
-
(
|
|
2597
|
+
(s(), v(W, null, _(n, (o) => b("stop", {
|
|
2602
2598
|
key: o.offset,
|
|
2603
2599
|
offset: o.offset,
|
|
2604
2600
|
"stop-color": o.color
|
|
2605
|
-
}, null, 8,
|
|
2606
|
-
], 8,
|
|
2607
|
-
], 8,
|
|
2601
|
+
}, null, 8, pn)), 64))
|
|
2602
|
+
], 8, vn)
|
|
2603
|
+
], 8, fn))
|
|
2608
2604
|
], 64));
|
|
2609
2605
|
}
|
|
2610
|
-
}),
|
|
2606
|
+
}), lo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2611
2607
|
__name: "BsInputField",
|
|
2612
2608
|
props: {
|
|
2613
2609
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -2654,46 +2650,46 @@ const $a = {
|
|
|
2654
2650
|
},
|
|
2655
2651
|
emits: ["update:modelValue"],
|
|
2656
2652
|
setup(e, { emit: a }) {
|
|
2657
|
-
const t = e, [n, l] =
|
|
2658
|
-
var
|
|
2659
|
-
return ((c = (
|
|
2653
|
+
const t = e, [n, l] = Z(2), r = p(() => Ie.concat(t.passAttrs.split(",")).concat("type")), u = p(() => {
|
|
2654
|
+
var i, c;
|
|
2655
|
+
return ((c = (i = t.hints) == null ? void 0 : i.join) == null ? void 0 : c.call(i, `
|
|
2660
2656
|
`)) || t.hints;
|
|
2661
|
-
}), o = p(() => t.error && t.errorMsg || t.hint || u.value || void 0),
|
|
2662
|
-
return (
|
|
2663
|
-
e.label ||
|
|
2657
|
+
}), o = p(() => t.error && t.errorMsg || t.hint || u.value || void 0), d = p(() => t.inputId || n.value);
|
|
2658
|
+
return (i, c) => (s(), v("div", z({ "data-component": "bs-input-field" }, f(Y)(i.$attrs, r.value).remaining), [
|
|
2659
|
+
e.label || i.$slots.label ? (s(), E(oe, {
|
|
2664
2660
|
key: 0,
|
|
2665
|
-
for:
|
|
2661
|
+
for: i.$attrs.id || d.value,
|
|
2666
2662
|
disabled: e.disabled,
|
|
2667
2663
|
required: e.required
|
|
2668
2664
|
}, {
|
|
2669
|
-
default:
|
|
2670
|
-
|
|
2671
|
-
H(
|
|
2665
|
+
default: L(() => [
|
|
2666
|
+
x(i.$slots, "label", {}, () => [
|
|
2667
|
+
H(C(e.label), 1)
|
|
2672
2668
|
])
|
|
2673
2669
|
]),
|
|
2674
2670
|
_: 3
|
|
2675
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
2676
|
-
|
|
2671
|
+
}, 8, ["for", "disabled", "required"])) : S("", !0),
|
|
2672
|
+
A(Se, z({
|
|
2677
2673
|
disabled: e.disabled,
|
|
2678
2674
|
error: e.error,
|
|
2679
2675
|
"hint-id": f(l),
|
|
2680
|
-
id:
|
|
2676
|
+
id: i.$attrs.id || d.value,
|
|
2681
2677
|
placeholder: e.placeholder,
|
|
2682
2678
|
required: e.required,
|
|
2683
2679
|
type: e.type,
|
|
2684
2680
|
value: e.value || e.modelValue,
|
|
2685
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
2686
|
-
}, f(
|
|
2687
|
-
o.value ? (
|
|
2681
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => i.$emit("update:modelValue", h))
|
|
2682
|
+
}, f(Y)(i.$attrs, r.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
|
|
2683
|
+
o.value ? (s(), E(Be, {
|
|
2688
2684
|
key: 1,
|
|
2689
2685
|
error: e.error,
|
|
2690
2686
|
"error-msg": e.errorMsg,
|
|
2691
2687
|
hint: e.hint || u.value,
|
|
2692
2688
|
"hint-id": f(l)
|
|
2693
|
-
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) :
|
|
2689
|
+
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : S("", !0)
|
|
2694
2690
|
], 16));
|
|
2695
2691
|
}
|
|
2696
|
-
}),
|
|
2692
|
+
}), tt = {
|
|
2697
2693
|
A: "🇦",
|
|
2698
2694
|
B: "🇧",
|
|
2699
2695
|
C: "🇨",
|
|
@@ -2720,7 +2716,7 @@ const $a = {
|
|
|
2720
2716
|
X: "🇽",
|
|
2721
2717
|
Y: "🇾",
|
|
2722
2718
|
Z: "🇿"
|
|
2723
|
-
},
|
|
2719
|
+
}, qe = {
|
|
2724
2720
|
data: {
|
|
2725
2721
|
allCountries: null,
|
|
2726
2722
|
byCountryCode: null,
|
|
@@ -2746,8 +2742,8 @@ const $a = {
|
|
|
2746
2742
|
* @returns {Country[]} an array of country objects
|
|
2747
2743
|
*/
|
|
2748
2744
|
initSourceData() {
|
|
2749
|
-
return this.data.allCountries || (this.data.allCountries =
|
|
2750
|
-
const a =
|
|
2745
|
+
return this.data.allCountries || (this.data.allCountries = zt().map((e) => {
|
|
2746
|
+
const a = Rt(e), t = tt[a[0]] + tt[a[1]] || "";
|
|
2751
2747
|
return {
|
|
2752
2748
|
label: `+${e}`,
|
|
2753
2749
|
flag: t,
|
|
@@ -2761,10 +2757,10 @@ const $a = {
|
|
|
2761
2757
|
this.data[e][t[a]] = t;
|
|
2762
2758
|
}));
|
|
2763
2759
|
}
|
|
2764
|
-
},
|
|
2760
|
+
}, hn = ["id", "aria-controls", "aria-expanded", "aria-label", "disabled"], bn = { key: 0 }, gn = {
|
|
2765
2761
|
"aria-hidden": "true",
|
|
2766
2762
|
style: { width: "1.25rem" }
|
|
2767
|
-
},
|
|
2763
|
+
}, mn = { "aria-hidden": "true" }, oo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2768
2764
|
__name: "BsInputPhone",
|
|
2769
2765
|
props: {
|
|
2770
2766
|
deferValidation: {
|
|
@@ -2814,7 +2810,7 @@ const $a = {
|
|
|
2814
2810
|
},
|
|
2815
2811
|
emits: ["update:modelValue", "input-blur"],
|
|
2816
2812
|
setup(e, { expose: a, emit: t }) {
|
|
2817
|
-
const n = e, l = t,
|
|
2813
|
+
const n = e, l = t, r = [
|
|
2818
2814
|
"ArrowDown",
|
|
2819
2815
|
"ArrowLeft",
|
|
2820
2816
|
"ArrowRight",
|
|
@@ -2826,155 +2822,155 @@ const $a = {
|
|
|
2826
2822
|
"Escape",
|
|
2827
2823
|
"Home",
|
|
2828
2824
|
"Tab"
|
|
2829
|
-
], u =
|
|
2825
|
+
], u = g(null), o = g(1), d = g([]), i = g(null), [
|
|
2830
2826
|
c,
|
|
2831
|
-
|
|
2827
|
+
h,
|
|
2832
2828
|
w,
|
|
2833
|
-
|
|
2834
|
-
] =
|
|
2829
|
+
$
|
|
2830
|
+
] = Z(4), M = g(!1), k = g(""), I = g(""), O = g(!1), y = g(!1), m = g(!0);
|
|
2835
2831
|
a({
|
|
2836
|
-
validationErr:
|
|
2837
|
-
validationErrMsg:
|
|
2832
|
+
validationErr: O,
|
|
2833
|
+
validationErrMsg: I
|
|
2838
2834
|
});
|
|
2839
|
-
const
|
|
2840
|
-
|
|
2841
|
-
l("update:modelValue",
|
|
2842
|
-
}),
|
|
2843
|
-
function
|
|
2844
|
-
|
|
2845
|
-
}
|
|
2846
|
-
function
|
|
2847
|
-
var
|
|
2848
|
-
|
|
2849
|
-
}
|
|
2850
|
-
function
|
|
2851
|
-
var
|
|
2852
|
-
o.value =
|
|
2853
|
-
}
|
|
2854
|
-
function
|
|
2835
|
+
const P = p(() => k.value ? `+${o.value}${k.value}` : ""), D = p(() => `Country code: ${o.value}. Click to change.`), R = p(() => m.value ? n.errorMsg || I.value : ""), U = p(() => n.error || O.value), J = p(() => n.hint || U.value && R.value), ee = p(() => m.value && U.value);
|
|
2836
|
+
N(P, (q) => {
|
|
2837
|
+
l("update:modelValue", q), we(q);
|
|
2838
|
+
}), N(() => n.modelValue, ie), se(), X(() => M.value = !0);
|
|
2839
|
+
function ie(q, G) {
|
|
2840
|
+
q === "" && q !== G && (k.value = "");
|
|
2841
|
+
}
|
|
2842
|
+
function pe() {
|
|
2843
|
+
var q;
|
|
2844
|
+
y.value && (y.value = !1, (q = u.value) == null || q.focus());
|
|
2845
|
+
}
|
|
2846
|
+
function he(q) {
|
|
2847
|
+
var G;
|
|
2848
|
+
o.value = q, y.value = !1, (G = u.value) == null || G.focus(), $e(q);
|
|
2849
|
+
}
|
|
2850
|
+
function re() {
|
|
2855
2851
|
n.deferValidation && (m.value = !0), l("input-blur");
|
|
2856
2852
|
}
|
|
2857
|
-
function
|
|
2858
|
-
|
|
2853
|
+
function T(q) {
|
|
2854
|
+
k.value = q.target.value, n.deferValidation && (m.value = !1);
|
|
2859
2855
|
}
|
|
2860
|
-
function
|
|
2861
|
-
var
|
|
2862
|
-
!((
|
|
2856
|
+
function j(q) {
|
|
2857
|
+
var G, K;
|
|
2858
|
+
!((K = (G = q.key) == null ? void 0 : G.match) != null && K.call(G, /[0-9]/)) && !r.includes(q.key) && !q.ctrlKey && !q.metaKey && q.preventDefault();
|
|
2859
|
+
}
|
|
2860
|
+
function se() {
|
|
2861
|
+
qe.initSourceData(), De(), $e(o.value), we(P.value);
|
|
2863
2862
|
}
|
|
2864
2863
|
function De() {
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
M.valid || M.countryCode && ((G = (U = n.modelValue) == null ? void 0 : U.startsWith) != null && G.call(U, "+")) ? (o.value = M.countryCode, S.value = M.number.significant) : S.value = n.modelValue, s.value = Pe.data.allCountries.map((ue) => ({
|
|
2871
|
-
...ue,
|
|
2872
|
-
isSelected: o.value === ue
|
|
2864
|
+
var G, K;
|
|
2865
|
+
let q = Xe(n.modelValue);
|
|
2866
|
+
q.valid || q.countryCode && ((K = (G = n.modelValue) == null ? void 0 : G.startsWith) != null && K.call(G, "+")) ? (o.value = q.countryCode, k.value = q.number.significant) : k.value = n.modelValue, d.value = qe.data.allCountries.map((be) => ({
|
|
2867
|
+
...be,
|
|
2868
|
+
isSelected: o.value === be
|
|
2873
2869
|
}));
|
|
2874
2870
|
}
|
|
2875
|
-
function
|
|
2876
|
-
|
|
2871
|
+
function $e(q) {
|
|
2872
|
+
i.value = qe.getCountryByCountryCode(q);
|
|
2877
2873
|
}
|
|
2878
|
-
function
|
|
2879
|
-
|
|
2874
|
+
function we(q) {
|
|
2875
|
+
O.value = q ? !Xe(q).valid : !1, I.value = O.value ? "Invalid phone number" : "";
|
|
2880
2876
|
}
|
|
2881
|
-
return (
|
|
2877
|
+
return (q, G) => (s(), v("div", z({
|
|
2882
2878
|
class: "bs-input-phone",
|
|
2883
2879
|
"data-component": "bs-input-phone"
|
|
2884
|
-
}, f(
|
|
2885
|
-
|
|
2886
|
-
for:
|
|
2880
|
+
}, f(Y)(q.$attrs, f(Ie)).remaining), [
|
|
2881
|
+
A(oe, {
|
|
2882
|
+
for: q.$attrs.id || e.inputId || f($),
|
|
2887
2883
|
required: e.required,
|
|
2888
|
-
class:
|
|
2884
|
+
class: le({ "visually-hidden": e.hideLabel })
|
|
2889
2885
|
}, {
|
|
2890
|
-
default:
|
|
2891
|
-
H(
|
|
2886
|
+
default: L(() => [
|
|
2887
|
+
H(C(e.label), 1)
|
|
2892
2888
|
]),
|
|
2893
2889
|
_: 1
|
|
2894
2890
|
}, 8, ["for", "required", "class"]),
|
|
2895
|
-
|
|
2891
|
+
A(Ee, {
|
|
2896
2892
|
disabled: e.disabled,
|
|
2897
|
-
error:
|
|
2893
|
+
error: ee.value,
|
|
2898
2894
|
multifocus: !0,
|
|
2899
2895
|
variant: "inner-bordered"
|
|
2900
2896
|
}, {
|
|
2901
|
-
default:
|
|
2902
|
-
var
|
|
2897
|
+
default: L(() => {
|
|
2898
|
+
var K;
|
|
2903
2899
|
return [
|
|
2904
|
-
|
|
2900
|
+
b("button", {
|
|
2905
2901
|
id: f(c),
|
|
2906
2902
|
ref_key: "countryCodesToggle",
|
|
2907
2903
|
ref: u,
|
|
2908
|
-
"aria-controls": f(
|
|
2909
|
-
"aria-expanded":
|
|
2904
|
+
"aria-controls": f(h),
|
|
2905
|
+
"aria-expanded": y.value,
|
|
2910
2906
|
"aria-haspopup": "listbox",
|
|
2911
|
-
"aria-label":
|
|
2907
|
+
"aria-label": D.value,
|
|
2912
2908
|
disabled: e.disabled,
|
|
2913
2909
|
type: "button",
|
|
2914
|
-
onClick:
|
|
2910
|
+
onClick: G[0] || (G[0] = (be) => y.value = !y.value)
|
|
2915
2911
|
}, [
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
], 8,
|
|
2920
|
-
|
|
2921
|
-
"input-id":
|
|
2912
|
+
b("span", null, C((K = i.value) == null ? void 0 : K.flag), 1),
|
|
2913
|
+
b("span", null, "+" + C(o.value), 1),
|
|
2914
|
+
A(f(mt), { size: "sm" })
|
|
2915
|
+
], 8, hn),
|
|
2916
|
+
A(Se, z({
|
|
2917
|
+
"input-id": q.$attrs.id || e.inputId || f($),
|
|
2922
2918
|
disabled: e.disabled,
|
|
2923
2919
|
"hint-id": f(w),
|
|
2924
2920
|
placeholder: e.placeholder,
|
|
2925
|
-
value:
|
|
2921
|
+
value: k.value,
|
|
2926
2922
|
"data-autowidth": "",
|
|
2927
2923
|
type: "tel"
|
|
2928
|
-
}, f(
|
|
2929
|
-
onInput:
|
|
2930
|
-
onFocusout:
|
|
2931
|
-
onKeydown:
|
|
2924
|
+
}, f(Y)(q.$attrs, f(Ie)).filtered, {
|
|
2925
|
+
onInput: T,
|
|
2926
|
+
onFocusout: re,
|
|
2927
|
+
onKeydown: j
|
|
2932
2928
|
}), null, 16, ["input-id", "disabled", "hint-id", "placeholder", "value"])
|
|
2933
2929
|
];
|
|
2934
2930
|
}),
|
|
2935
2931
|
_: 1
|
|
2936
2932
|
}, 8, ["disabled", "error"]),
|
|
2937
|
-
|
|
2938
|
-
error:
|
|
2939
|
-
"error-msg":
|
|
2933
|
+
Te(A(Be, {
|
|
2934
|
+
error: U.value,
|
|
2935
|
+
"error-msg": R.value,
|
|
2940
2936
|
hint: e.hint,
|
|
2941
2937
|
"hint-id": f(w)
|
|
2942
2938
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
2943
|
-
[
|
|
2939
|
+
[xe, J.value]
|
|
2944
2940
|
]),
|
|
2945
|
-
|
|
2946
|
-
|
|
2941
|
+
M.value ? (s(), v("div", bn, [
|
|
2942
|
+
A(We, {
|
|
2947
2943
|
"anchor-id": f(c),
|
|
2948
2944
|
"helper-text": "Country Code",
|
|
2949
2945
|
label: "Country Code",
|
|
2950
2946
|
"model-value": o.value,
|
|
2951
|
-
"options-id": f(
|
|
2947
|
+
"options-id": f(h),
|
|
2952
2948
|
preloaded: "",
|
|
2953
|
-
shown:
|
|
2949
|
+
shown: y.value,
|
|
2954
2950
|
width: "content",
|
|
2955
|
-
onClose:
|
|
2956
|
-
"onUpdate:modelValue":
|
|
2951
|
+
onClose: pe,
|
|
2952
|
+
"onUpdate:modelValue": he
|
|
2957
2953
|
}, {
|
|
2958
|
-
default:
|
|
2959
|
-
|
|
2960
|
-
"aria-label":
|
|
2961
|
-
key:
|
|
2962
|
-
value: `${
|
|
2954
|
+
default: L(() => [
|
|
2955
|
+
M.value ? (s(!0), v(W, { key: 0 }, _(d.value, (K) => (s(), E(Ue, {
|
|
2956
|
+
"aria-label": K.value,
|
|
2957
|
+
key: K.value,
|
|
2958
|
+
value: `${K.value}`,
|
|
2963
2959
|
variant: "2-col"
|
|
2964
2960
|
}, {
|
|
2965
|
-
default:
|
|
2966
|
-
|
|
2967
|
-
|
|
2961
|
+
default: L(() => [
|
|
2962
|
+
b("span", gn, C(K == null ? void 0 : K.flag), 1),
|
|
2963
|
+
b("span", mn, C(K.label), 1)
|
|
2968
2964
|
]),
|
|
2969
2965
|
_: 2
|
|
2970
|
-
}, 1032, ["aria-label", "value"]))), 128)) :
|
|
2966
|
+
}, 1032, ["aria-label", "value"]))), 128)) : S("", !0)
|
|
2971
2967
|
]),
|
|
2972
2968
|
_: 1
|
|
2973
2969
|
}, 8, ["anchor-id", "model-value", "options-id", "shown"])
|
|
2974
|
-
])) :
|
|
2970
|
+
])) : S("", !0)
|
|
2975
2971
|
], 16));
|
|
2976
2972
|
}
|
|
2977
|
-
}),
|
|
2973
|
+
}), yn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2978
2974
|
__name: "BsInputSearch",
|
|
2979
2975
|
props: {
|
|
2980
2976
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -3019,44 +3015,44 @@ const $a = {
|
|
|
3019
3015
|
},
|
|
3020
3016
|
emits: ["clear", "update:modelValue"],
|
|
3021
3017
|
setup(e, { emit: a }) {
|
|
3022
|
-
const t = e, n = p(() =>
|
|
3023
|
-
return (
|
|
3018
|
+
const t = e, n = p(() => Ie.concat(t.passAttrs.split(","))), l = p(() => !t.disabled && !t.hideClear && t.variant !== "filter");
|
|
3019
|
+
return (r, u) => (s(), E(Ee, z({
|
|
3024
3020
|
class: "bs-input-search",
|
|
3025
3021
|
"data-component": "bs-input-search",
|
|
3026
3022
|
"data-variant": e.variant,
|
|
3027
3023
|
disabled: e.disabled
|
|
3028
|
-
}, f(
|
|
3029
|
-
default:
|
|
3030
|
-
e.hideSearchIcon ?
|
|
3031
|
-
|
|
3024
|
+
}, f(Y)(r.$attrs, n.value).remaining), {
|
|
3025
|
+
default: L(() => [
|
|
3026
|
+
e.hideSearchIcon ? S("", !0) : (s(), E(f(yt), { key: 0 })),
|
|
3027
|
+
A(Se, z({
|
|
3032
3028
|
"data-autowidth": "",
|
|
3033
3029
|
disabled: e.disabled,
|
|
3034
|
-
"input-id":
|
|
3030
|
+
"input-id": r.$attrs.id || e.inputId,
|
|
3035
3031
|
placeholder: e.placeholder,
|
|
3036
3032
|
value: e.value || e.modelValue
|
|
3037
|
-
}, f(
|
|
3038
|
-
"onUpdate:modelValue": u[0] || (u[0] = (o) =>
|
|
3033
|
+
}, f(Y)(r.$attrs, n.value).filtered, {
|
|
3034
|
+
"onUpdate:modelValue": u[0] || (u[0] = (o) => r.$emit("update:modelValue", o))
|
|
3039
3035
|
}), null, 16, ["disabled", "input-id", "placeholder", "value"]),
|
|
3040
|
-
|
|
3036
|
+
Te(b("button", {
|
|
3041
3037
|
title: "Clear",
|
|
3042
3038
|
type: "button",
|
|
3043
|
-
onClick: u[1] || (u[1] = (o) =>
|
|
3039
|
+
onClick: u[1] || (u[1] = (o) => r.$emit("clear"))
|
|
3044
3040
|
}, [
|
|
3045
|
-
|
|
3041
|
+
A(f(Ae), { size: "sm" })
|
|
3046
3042
|
], 512), [
|
|
3047
|
-
[
|
|
3043
|
+
[xe, l.value]
|
|
3048
3044
|
])
|
|
3049
3045
|
]),
|
|
3050
3046
|
_: 1
|
|
3051
3047
|
}, 16, ["data-variant", "disabled"]));
|
|
3052
3048
|
}
|
|
3053
|
-
}),
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
],
|
|
3049
|
+
}), Bn = ["data-size", "data-variant"], Sn = /* @__PURE__ */ b("span", null, null, -1), $n = /* @__PURE__ */ b("span", null, null, -1), wn = /* @__PURE__ */ b("span", null, null, -1), kn = /* @__PURE__ */ b("span", null, null, -1), In = /* @__PURE__ */ b("span", { class: "visually-hidden" }, "Loading", -1), Cn = [
|
|
3050
|
+
Sn,
|
|
3051
|
+
$n,
|
|
3052
|
+
wn,
|
|
3053
|
+
kn,
|
|
3054
|
+
In
|
|
3055
|
+
], Tn = {
|
|
3060
3056
|
__name: "BsLoader",
|
|
3061
3057
|
props: {
|
|
3062
3058
|
size: {
|
|
@@ -3070,14 +3066,14 @@ const $a = {
|
|
|
3070
3066
|
}
|
|
3071
3067
|
},
|
|
3072
3068
|
setup(e) {
|
|
3073
|
-
return (a, t) => (
|
|
3069
|
+
return (a, t) => (s(), v("span", {
|
|
3074
3070
|
class: "bs-loader",
|
|
3075
3071
|
"data-size": e.size,
|
|
3076
3072
|
"data-variant": e.variant,
|
|
3077
3073
|
role: "status"
|
|
3078
|
-
},
|
|
3074
|
+
}, Cn, 8, Bn));
|
|
3079
3075
|
}
|
|
3080
|
-
},
|
|
3076
|
+
}, xn = ["id"], io = {
|
|
3081
3077
|
__name: "BsInputTypeahead",
|
|
3082
3078
|
props: {
|
|
3083
3079
|
characterThreshold: {
|
|
@@ -3141,60 +3137,60 @@ const $a = {
|
|
|
3141
3137
|
},
|
|
3142
3138
|
emits: ["update:inputValue", "update:optionsValue"],
|
|
3143
3139
|
setup(e, { emit: a }) {
|
|
3144
|
-
const t = e, n = a, l =
|
|
3140
|
+
const t = e, n = a, l = g(!1), r = g(!1), [u] = Z();
|
|
3145
3141
|
let o = [];
|
|
3146
|
-
|
|
3147
|
-
|
|
3142
|
+
N(() => t.inputValue, () => {
|
|
3143
|
+
r.value ? r.value = !1 : k();
|
|
3148
3144
|
});
|
|
3149
|
-
const
|
|
3145
|
+
const d = p(() => t.typeaheadId || u.value), i = p(() => `${d.value}-input-container`), c = p(() => `${d.value}-input`), h = p(() => `${d.value}-options`), w = p(() => {
|
|
3150
3146
|
if (l.value) {
|
|
3151
|
-
let
|
|
3152
|
-
const m = t.inputValue.toLowerCase(),
|
|
3153
|
-
return
|
|
3147
|
+
let y = t.options;
|
|
3148
|
+
const m = t.inputValue.toLowerCase(), P = t.filterType === "includes" ? "includes" : "startsWith";
|
|
3149
|
+
return y = $(y, m, P), y = y.slice(0, t.maxOptions), y = M(y, m, P), o = y, y;
|
|
3154
3150
|
} else
|
|
3155
3151
|
return o;
|
|
3156
3152
|
});
|
|
3157
|
-
function
|
|
3158
|
-
return t.internalFiltering ?
|
|
3153
|
+
function $(y, m, P) {
|
|
3154
|
+
return t.internalFiltering ? y.filter((D) => D.label.toLowerCase()[P](m)) : y;
|
|
3159
3155
|
}
|
|
3160
|
-
function
|
|
3161
|
-
return
|
|
3162
|
-
let
|
|
3156
|
+
function M(y, m, P) {
|
|
3157
|
+
return y.map((D) => {
|
|
3158
|
+
let R = D.label;
|
|
3163
3159
|
if (m !== "") {
|
|
3164
|
-
const
|
|
3165
|
-
|
|
3160
|
+
const U = P === "includes" ? "gi" : "i", J = new RegExp(`(${m})`, U);
|
|
3161
|
+
R = D.label.replace(J, '<span style="color: var(--bs-blue-base)">$1</span>');
|
|
3166
3162
|
}
|
|
3167
|
-
return { ...
|
|
3163
|
+
return { ...D, labelHtml: R };
|
|
3168
3164
|
});
|
|
3169
3165
|
}
|
|
3170
|
-
function
|
|
3166
|
+
function k() {
|
|
3171
3167
|
t.inputValue.length >= t.characterThreshold ? l.value = !0 : l.value = !1;
|
|
3172
3168
|
}
|
|
3173
|
-
function
|
|
3169
|
+
function I() {
|
|
3174
3170
|
n("update:inputValue", ""), n("update:optionsValue", ""), document.getElementById(c.value).focus();
|
|
3175
3171
|
}
|
|
3176
|
-
function
|
|
3177
|
-
|
|
3178
|
-
const m = w.value.find((
|
|
3179
|
-
n("update:inputValue", m.label), n("update:optionsValue",
|
|
3172
|
+
function O(y) {
|
|
3173
|
+
r.value = !0, l.value = !1;
|
|
3174
|
+
const m = w.value.find((P) => P.value === y);
|
|
3175
|
+
n("update:inputValue", m.label), n("update:optionsValue", y);
|
|
3180
3176
|
}
|
|
3181
|
-
return (
|
|
3182
|
-
e.label ||
|
|
3177
|
+
return (y, m) => (s(), v(W, null, [
|
|
3178
|
+
e.label || y.$slots.label ? (s(), E(oe, {
|
|
3183
3179
|
key: 0,
|
|
3184
3180
|
for: c.value,
|
|
3185
3181
|
disabled: e.disabled,
|
|
3186
3182
|
required: e.required
|
|
3187
3183
|
}, {
|
|
3188
|
-
default:
|
|
3189
|
-
|
|
3190
|
-
H(
|
|
3184
|
+
default: L(() => [
|
|
3185
|
+
x(y.$slots, "label", {}, () => [
|
|
3186
|
+
H(C(e.label), 1)
|
|
3191
3187
|
])
|
|
3192
3188
|
]),
|
|
3193
3189
|
_: 3
|
|
3194
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
"aria-controls":
|
|
3190
|
+
}, 8, ["for", "disabled", "required"])) : S("", !0),
|
|
3191
|
+
b("div", { id: i.value }, [
|
|
3192
|
+
A(yn, z({
|
|
3193
|
+
"aria-controls": h.value,
|
|
3198
3194
|
"aria-expanded": l.value,
|
|
3199
3195
|
"aria-haspopup": "listbox",
|
|
3200
3196
|
autocomplete: "off",
|
|
@@ -3206,36 +3202,35 @@ const $a = {
|
|
|
3206
3202
|
placeholder: e.placeholder,
|
|
3207
3203
|
role: "combobox",
|
|
3208
3204
|
value: e.inputValue
|
|
3209
|
-
},
|
|
3210
|
-
onClear:
|
|
3211
|
-
onFocusin:
|
|
3212
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
3205
|
+
}, y.$attrs, {
|
|
3206
|
+
onClear: I,
|
|
3207
|
+
onFocusin: k,
|
|
3208
|
+
"onUpdate:modelValue": m[0] || (m[0] = (P) => n("update:inputValue", P))
|
|
3213
3209
|
}), null, 16, ["aria-controls", "aria-expanded", "disabled", "hide-clear", "hide-search-icon", "input-id", "placeholder", "value"])
|
|
3214
|
-
], 8,
|
|
3215
|
-
|
|
3216
|
-
"anchor-id":
|
|
3217
|
-
"focus-on-show": !1,
|
|
3210
|
+
], 8, xn),
|
|
3211
|
+
A(We, {
|
|
3212
|
+
"anchor-id": i.value,
|
|
3218
3213
|
"model-value": e.optionsValue,
|
|
3219
|
-
"options-id":
|
|
3214
|
+
"options-id": h.value,
|
|
3220
3215
|
preloaded: !0,
|
|
3221
3216
|
"prevent-tab": !1,
|
|
3222
3217
|
shown: l.value,
|
|
3223
3218
|
"use-mobile-style": !1,
|
|
3224
3219
|
width: "toggle",
|
|
3225
|
-
onClose: m[1] || (m[1] = (
|
|
3226
|
-
"onUpdate:modelValue":
|
|
3220
|
+
onClose: m[1] || (m[1] = (P) => l.value = !1),
|
|
3221
|
+
"onUpdate:modelValue": O
|
|
3227
3222
|
}, {
|
|
3228
|
-
default:
|
|
3229
|
-
|
|
3223
|
+
default: L(() => [
|
|
3224
|
+
A(Ce, { options: w.value }, lt({ _: 2 }, [
|
|
3230
3225
|
e.loading ? {
|
|
3231
3226
|
name: "no-options",
|
|
3232
|
-
fn:
|
|
3233
|
-
|
|
3227
|
+
fn: L(() => [
|
|
3228
|
+
A(Tn, { size: "xs" })
|
|
3234
3229
|
]),
|
|
3235
3230
|
key: "0"
|
|
3236
3231
|
} : {
|
|
3237
3232
|
name: "no-options",
|
|
3238
|
-
fn:
|
|
3233
|
+
fn: L(() => [
|
|
3239
3234
|
H("No results found")
|
|
3240
3235
|
]),
|
|
3241
3236
|
key: "1"
|
|
@@ -3246,7 +3241,7 @@ const $a = {
|
|
|
3246
3241
|
}, 8, ["anchor-id", "model-value", "options-id", "shown"])
|
|
3247
3242
|
], 64));
|
|
3248
3243
|
}
|
|
3249
|
-
},
|
|
3244
|
+
}, An = /* @__PURE__ */ b("div", { class: "bs-overlay" }, null, -1), Vn = {
|
|
3250
3245
|
__name: "BsOverlay",
|
|
3251
3246
|
props: {
|
|
3252
3247
|
shown: {
|
|
@@ -3275,10 +3270,10 @@ const $a = {
|
|
|
3275
3270
|
},
|
|
3276
3271
|
emits: ["after-enter", "after-leave"],
|
|
3277
3272
|
setup(e, { emit: a }) {
|
|
3278
|
-
const t = e, n = a, { transition: l } =
|
|
3279
|
-
return
|
|
3280
|
-
|
|
3281
|
-
}), (
|
|
3273
|
+
const t = e, n = a, { transition: l } = ye(t);
|
|
3274
|
+
return N(l, (r) => {
|
|
3275
|
+
r ? document.body.setAttribute("data-scroll", "false") : document.body.removeAttribute("data-scroll");
|
|
3276
|
+
}), (r, u) => (s(), E(f(Oe), {
|
|
3282
3277
|
shown: f(l),
|
|
3283
3278
|
preloaded: e.preloaded,
|
|
3284
3279
|
duration: 75,
|
|
@@ -3286,13 +3281,13 @@ const $a = {
|
|
|
3286
3281
|
onAfterEnter: u[0] || (u[0] = (o) => n("after-enter")),
|
|
3287
3282
|
onAfterLeave: u[1] || (u[1] = (o) => n("after-leave"))
|
|
3288
3283
|
}, {
|
|
3289
|
-
default:
|
|
3290
|
-
|
|
3284
|
+
default: L(() => [
|
|
3285
|
+
An
|
|
3291
3286
|
]),
|
|
3292
3287
|
_: 1
|
|
3293
3288
|
}, 8, ["shown", "preloaded"]));
|
|
3294
3289
|
}
|
|
3295
|
-
},
|
|
3290
|
+
}, Ln = ["id", "role", "aria-labelledby"], En = ["id"], ro = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3296
3291
|
__name: "BsModal",
|
|
3297
3292
|
props: {
|
|
3298
3293
|
modalId: {
|
|
@@ -3337,86 +3332,86 @@ const $a = {
|
|
|
3337
3332
|
},
|
|
3338
3333
|
emits: ["close", "after-enter", "after-leave"],
|
|
3339
3334
|
setup(e, { emit: a }) {
|
|
3340
|
-
const t = e, n = a, { transition: l } =
|
|
3335
|
+
const t = e, n = a, { transition: l } = ye(t), [r] = Z();
|
|
3341
3336
|
let u = !1;
|
|
3342
|
-
const o =
|
|
3343
|
-
o.value &&
|
|
3337
|
+
const o = g(null), d = (h) => {
|
|
3338
|
+
o.value && h.target.closest(".bs-overlay") && n("close", t.modalId);
|
|
3344
3339
|
};
|
|
3345
|
-
|
|
3346
|
-
document.addEventListener("click",
|
|
3347
|
-
}),
|
|
3348
|
-
document.removeEventListener("click",
|
|
3349
|
-
}),
|
|
3340
|
+
X(() => {
|
|
3341
|
+
document.addEventListener("click", d);
|
|
3342
|
+
}), ve(() => {
|
|
3343
|
+
document.removeEventListener("click", d);
|
|
3344
|
+
}), me(["Escape"], () => {
|
|
3350
3345
|
u && n("close", t.modalId);
|
|
3351
3346
|
});
|
|
3352
|
-
const
|
|
3353
|
-
return (
|
|
3354
|
-
|
|
3347
|
+
const i = () => !t.title && t.closeButton, c = () => t.title && t.closeButton;
|
|
3348
|
+
return (h, w) => (s(), v(W, null, [
|
|
3349
|
+
A(Vn, {
|
|
3355
3350
|
shown: f(l),
|
|
3356
3351
|
preloaded: e.preloaded,
|
|
3357
3352
|
"enter-controlled": e.enterControlled,
|
|
3358
3353
|
"enter-trigger": e.enterTrigger,
|
|
3359
3354
|
"leave-trigger": e.leaveTrigger
|
|
3360
3355
|
}, null, 8, ["shown", "preloaded", "enter-controlled", "enter-trigger", "leave-trigger"]),
|
|
3361
|
-
|
|
3356
|
+
A(Oe, {
|
|
3362
3357
|
shown: f(l),
|
|
3363
3358
|
preloaded: e.preloaded,
|
|
3364
3359
|
duration: 75,
|
|
3365
3360
|
"enter-attribute": "data-shown",
|
|
3366
|
-
onEnter: w[1] || (w[1] = (
|
|
3367
|
-
onAfterEnter: w[2] || (w[2] = (
|
|
3368
|
-
onAfterLeave: w[3] || (w[3] = (
|
|
3361
|
+
onEnter: w[1] || (w[1] = ($) => bt(u) ? u.value = !0 : u = !0),
|
|
3362
|
+
onAfterEnter: w[2] || (w[2] = ($) => n("after-enter")),
|
|
3363
|
+
onAfterLeave: w[3] || (w[3] = ($) => n("after-leave"))
|
|
3369
3364
|
}, {
|
|
3370
|
-
default:
|
|
3371
|
-
|
|
3365
|
+
default: L(() => [
|
|
3366
|
+
b("div", z({
|
|
3372
3367
|
id: e.modalId,
|
|
3373
3368
|
class: "bs-modal",
|
|
3374
3369
|
role: e.alert ? "alertdialog" : "dialog",
|
|
3375
|
-
"aria-labelledby": e.title && !
|
|
3370
|
+
"aria-labelledby": e.title && !h.$attrs["aria-label"] ? f(r) : void 0,
|
|
3376
3371
|
"aria-modal": "true"
|
|
3377
|
-
},
|
|
3372
|
+
}, h.$attrs, {
|
|
3378
3373
|
ref_key: "modalRef",
|
|
3379
3374
|
ref: o
|
|
3380
3375
|
}), [
|
|
3381
|
-
e.title || e.closeButton ? (
|
|
3376
|
+
e.title || e.closeButton ? (s(), v("header", {
|
|
3382
3377
|
key: 0,
|
|
3383
|
-
class:
|
|
3384
|
-
"only-close-button-modal-header":
|
|
3378
|
+
class: le({
|
|
3379
|
+
"only-close-button-modal-header": i,
|
|
3385
3380
|
"modal-header": c
|
|
3386
3381
|
})
|
|
3387
3382
|
}, [
|
|
3388
|
-
e.title ? (
|
|
3383
|
+
e.title ? (s(), v("h5", {
|
|
3389
3384
|
key: 0,
|
|
3390
|
-
id: f(
|
|
3385
|
+
id: f(r),
|
|
3391
3386
|
class: "modal-title"
|
|
3392
|
-
},
|
|
3393
|
-
e.closeButton ? (
|
|
3387
|
+
}, C(e.title), 9, En)) : S("", !0),
|
|
3388
|
+
e.closeButton ? (s(), v("button", {
|
|
3394
3389
|
key: 1,
|
|
3395
3390
|
type: "button",
|
|
3396
3391
|
title: "Close Modal",
|
|
3397
3392
|
"aria-label": "Close Modal",
|
|
3398
|
-
onClick: w[0] || (w[0] = (
|
|
3393
|
+
onClick: w[0] || (w[0] = ($) => n("close", e.modalId))
|
|
3399
3394
|
}, [
|
|
3400
|
-
|
|
3401
|
-
])) :
|
|
3402
|
-
], 2)) :
|
|
3403
|
-
|
|
3404
|
-
], 16,
|
|
3395
|
+
A(f(Ae), { class: "close-button" })
|
|
3396
|
+
])) : S("", !0)
|
|
3397
|
+
], 2)) : S("", !0),
|
|
3398
|
+
x(h.$slots, "default")
|
|
3399
|
+
], 16, Ln)
|
|
3405
3400
|
]),
|
|
3406
3401
|
_: 3
|
|
3407
3402
|
}, 8, ["shown", "preloaded"])
|
|
3408
3403
|
], 64));
|
|
3409
3404
|
}
|
|
3410
|
-
}),
|
|
3405
|
+
}), On = ["data-variant", "data-fixed"], Dn = {
|
|
3411
3406
|
key: 0,
|
|
3412
3407
|
class: "bs-pagination-carets"
|
|
3413
|
-
},
|
|
3408
|
+
}, Pn = ["aria-label", "title", "disabled"], qn = { key: 0 }, Mn = ["aria-label", "title", "disabled"], Nn = { key: 0 }, zn = {
|
|
3414
3409
|
key: 1,
|
|
3415
3410
|
class: "bs-pagination-page-numbers"
|
|
3416
|
-
},
|
|
3411
|
+
}, Rn = ["title", "data-selected", "onClick"], Fn = { key: 2 }, jn = { key: 3 }, Un = /* @__PURE__ */ b("span", null, "Results Per Page:", -1), Wn = { class: "bs-pagination-results-numbers" }, Gn = ["data-selected", "disabled", "onClick"], Hn = {
|
|
3417
3412
|
key: 5,
|
|
3418
3413
|
class: "bs-pagination-carets"
|
|
3419
|
-
},
|
|
3414
|
+
}, Kn = ["aria-label", "title", "disabled"], Yn = { key: 0 }, Xn = ["aria-label", "title", "disabled"], Qn = { key: 0 }, so = {
|
|
3420
3415
|
__name: "BsPagination",
|
|
3421
3416
|
props: {
|
|
3422
3417
|
// Used for all
|
|
@@ -3502,17 +3497,17 @@ const $a = {
|
|
|
3502
3497
|
},
|
|
3503
3498
|
emits: ["selchange", "update:modelValue"],
|
|
3504
3499
|
setup(e, { emit: a }) {
|
|
3505
|
-
const t = e, n = a, l =
|
|
3506
|
-
|
|
3507
|
-
|
|
3500
|
+
const t = e, n = a, l = g(null);
|
|
3501
|
+
X(() => {
|
|
3502
|
+
r.value ? l.value = r.value : t.variant === "results" ? l.value = k.value[0] : l.value = 1;
|
|
3508
3503
|
});
|
|
3509
|
-
const
|
|
3510
|
-
|
|
3511
|
-
l.value =
|
|
3512
|
-
}),
|
|
3513
|
-
l.value =
|
|
3514
|
-
}),
|
|
3515
|
-
|
|
3504
|
+
const r = p(() => t.modelValue || t.selection);
|
|
3505
|
+
N(() => t.selection, (I) => {
|
|
3506
|
+
l.value = I;
|
|
3507
|
+
}), N(() => t.modelValue, (I) => {
|
|
3508
|
+
l.value = I;
|
|
3509
|
+
}), N(l, (I, O) => {
|
|
3510
|
+
O !== null && (n("selchange", I), n("update:modelValue", I));
|
|
3516
3511
|
});
|
|
3517
3512
|
const u = p(() => {
|
|
3518
3513
|
if (t.variant === "group")
|
|
@@ -3520,10 +3515,10 @@ const $a = {
|
|
|
3520
3515
|
if (t.variant === "base")
|
|
3521
3516
|
return t.pageCount;
|
|
3522
3517
|
}), o = p(() => t.variant === "base" ? t.centerDisplay === "text" ? "group" : void 0 : t.variant);
|
|
3523
|
-
function
|
|
3518
|
+
function d() {
|
|
3524
3519
|
l.value = 1;
|
|
3525
3520
|
}
|
|
3526
|
-
function
|
|
3521
|
+
function i() {
|
|
3527
3522
|
l.value = Math.max(l.value - 1, 1);
|
|
3528
3523
|
}
|
|
3529
3524
|
function c() {
|
|
@@ -3532,103 +3527,103 @@ const $a = {
|
|
|
3532
3527
|
u.value
|
|
3533
3528
|
);
|
|
3534
3529
|
}
|
|
3535
|
-
function
|
|
3530
|
+
function h() {
|
|
3536
3531
|
l.value = u.value;
|
|
3537
3532
|
}
|
|
3538
3533
|
const w = p(() => {
|
|
3539
3534
|
if (t.pageCount <= t.pageRange)
|
|
3540
3535
|
return [...Array(t.pageCount + 1).keys()].slice(1);
|
|
3541
|
-
const
|
|
3542
|
-
let
|
|
3543
|
-
|
|
3544
|
-
for (let
|
|
3545
|
-
|
|
3546
|
-
return m < t.pageCount - 1 &&
|
|
3547
|
-
}),
|
|
3548
|
-
const
|
|
3549
|
-
return `${t.centerLabel ?? "Results"} ${
|
|
3550
|
-
}),
|
|
3551
|
-
return (
|
|
3536
|
+
const I = [1], O = (t.pageRange - 1) / 2;
|
|
3537
|
+
let y = l.value - O, m = l.value + O;
|
|
3538
|
+
y < 1 && (m += 1 - y, y = 1), m > t.pageCount && (y -= m - t.pageCount, m = t.pageCount), y = Math.max(y, 2), m = Math.min(m, t.pageCount - 1), y > 2 && I.push(t.breakText);
|
|
3539
|
+
for (let P = y; P <= m; P++)
|
|
3540
|
+
I.push(P);
|
|
3541
|
+
return m < t.pageCount - 1 && I.push(t.breakText), I.push(t.pageCount), I;
|
|
3542
|
+
}), $ = p(() => `${t.centerLabel ?? "Page"} ${l.value} of ${u.value}`), M = p(() => {
|
|
3543
|
+
const I = (l.value - 1) * t.itemsPerGroup + 1, O = Math.min(I - 1 + t.itemsPerGroup, t.itemsCount);
|
|
3544
|
+
return `${t.centerLabel ?? "Results"} ${I} - ${O} of ${t.itemsCount}`;
|
|
3545
|
+
}), k = p(() => t.resultsIncrements.split(",").map((I) => parseInt(I)));
|
|
3546
|
+
return (I, O) => (s(), v("div", {
|
|
3552
3547
|
class: "bs-pagination",
|
|
3553
3548
|
"data-variant": o.value,
|
|
3554
3549
|
"data-fixed": t.fixed
|
|
3555
3550
|
}, [
|
|
3556
|
-
e.variant === "base" || e.variant === "group" ? (
|
|
3557
|
-
e.showFirstLastButtons ? (
|
|
3551
|
+
e.variant === "base" || e.variant === "group" ? (s(), v("div", Dn, [
|
|
3552
|
+
e.showFirstLastButtons ? (s(), v("button", {
|
|
3558
3553
|
key: 0,
|
|
3559
3554
|
type: "button",
|
|
3560
|
-
class:
|
|
3555
|
+
class: le(e.firstPageText ? "bs-pagination-word-caret" : void 0),
|
|
3561
3556
|
"aria-label": e.firstPageText ? void 0 : "First Page",
|
|
3562
3557
|
title: e.firstPageText,
|
|
3563
3558
|
disabled: l.value === 1,
|
|
3564
|
-
onClick:
|
|
3559
|
+
onClick: d
|
|
3565
3560
|
}, [
|
|
3566
|
-
|
|
3567
|
-
e.firstPageText ? (
|
|
3568
|
-
], 10,
|
|
3569
|
-
|
|
3561
|
+
A(f(Bt)),
|
|
3562
|
+
e.firstPageText ? (s(), v("span", qn, C(e.firstPageText), 1)) : S("", !0)
|
|
3563
|
+
], 10, Pn)) : S("", !0),
|
|
3564
|
+
b("button", {
|
|
3570
3565
|
type: "button",
|
|
3571
|
-
class:
|
|
3566
|
+
class: le(e.prevPageText ? "bs-pagination-word-caret" : void 0),
|
|
3572
3567
|
"aria-label": e.prevPageText ? void 0 : "Previous Page",
|
|
3573
3568
|
title: e.prevPageText,
|
|
3574
3569
|
disabled: l.value === 1,
|
|
3575
|
-
onClick:
|
|
3570
|
+
onClick: i
|
|
3576
3571
|
}, [
|
|
3577
|
-
|
|
3578
|
-
e.prevPageText ? (
|
|
3579
|
-
], 10,
|
|
3580
|
-
])) :
|
|
3581
|
-
e.variant === "base" && e.centerDisplay === "numbers" ? (
|
|
3582
|
-
(
|
|
3583
|
-
key: `page-${
|
|
3572
|
+
A(f(St)),
|
|
3573
|
+
e.prevPageText ? (s(), v("span", Nn, C(e.prevPageText), 1)) : S("", !0)
|
|
3574
|
+
], 10, Mn)
|
|
3575
|
+
])) : S("", !0),
|
|
3576
|
+
e.variant === "base" && e.centerDisplay === "numbers" ? (s(), v("div", zn, [
|
|
3577
|
+
(s(!0), v(W, null, _(w.value, (y) => (s(), v("button", {
|
|
3578
|
+
key: `page-${y}-button`,
|
|
3584
3579
|
type: "button",
|
|
3585
|
-
title: `Page ${
|
|
3586
|
-
"data-selected":
|
|
3587
|
-
onClick: (m) => l.value =
|
|
3588
|
-
},
|
|
3589
|
-
])) :
|
|
3590
|
-
t.variant === "base" && t.centerDisplay === "text" ? (
|
|
3591
|
-
t.variant === "group" ? (
|
|
3592
|
-
t.variant === "results" ? (
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
(
|
|
3580
|
+
title: `Page ${y}`,
|
|
3581
|
+
"data-selected": y === l.value,
|
|
3582
|
+
onClick: (m) => l.value = y
|
|
3583
|
+
}, C(y), 9, Rn))), 128))
|
|
3584
|
+
])) : S("", !0),
|
|
3585
|
+
t.variant === "base" && t.centerDisplay === "text" ? (s(), v("span", Fn, C($.value), 1)) : S("", !0),
|
|
3586
|
+
t.variant === "group" ? (s(), v("span", jn, C(M.value), 1)) : S("", !0),
|
|
3587
|
+
t.variant === "results" ? (s(), v(W, { key: 4 }, [
|
|
3588
|
+
Un,
|
|
3589
|
+
b("div", Wn, [
|
|
3590
|
+
(s(!0), v(W, null, _(k.value, (y) => (s(), v("button", {
|
|
3596
3591
|
type: "button",
|
|
3597
|
-
key: `results-${
|
|
3598
|
-
"data-selected":
|
|
3599
|
-
disabled: l.value ===
|
|
3600
|
-
onClick: (m) => l.value =
|
|
3601
|
-
},
|
|
3592
|
+
key: `results-${y}`,
|
|
3593
|
+
"data-selected": y === l.value,
|
|
3594
|
+
disabled: l.value === y,
|
|
3595
|
+
onClick: (m) => l.value = y
|
|
3596
|
+
}, C(y), 9, Gn))), 128))
|
|
3602
3597
|
])
|
|
3603
|
-
], 64)) :
|
|
3604
|
-
e.variant === "base" || e.variant === "group" ? (
|
|
3605
|
-
|
|
3598
|
+
], 64)) : S("", !0),
|
|
3599
|
+
e.variant === "base" || e.variant === "group" ? (s(), v("div", Hn, [
|
|
3600
|
+
b("button", {
|
|
3606
3601
|
type: "button",
|
|
3607
|
-
class:
|
|
3602
|
+
class: le(e.nextPageText ? "bs-pagination-word-caret" : void 0),
|
|
3608
3603
|
"aria-label": e.nextPageText ? void 0 : "Next Page",
|
|
3609
3604
|
title: e.nextPageText,
|
|
3610
3605
|
disabled: l.value === u.value,
|
|
3611
3606
|
onClick: c
|
|
3612
3607
|
}, [
|
|
3613
|
-
e.nextPageText ? (
|
|
3614
|
-
|
|
3615
|
-
], 10,
|
|
3616
|
-
e.showFirstLastButtons ? (
|
|
3608
|
+
e.nextPageText ? (s(), v("span", Yn, C(e.nextPageText), 1)) : S("", !0),
|
|
3609
|
+
A(f($t))
|
|
3610
|
+
], 10, Kn),
|
|
3611
|
+
e.showFirstLastButtons ? (s(), v("button", {
|
|
3617
3612
|
key: 0,
|
|
3618
3613
|
type: "button",
|
|
3619
|
-
class:
|
|
3614
|
+
class: le(e.lastPageText ? "bs-pagination-word-caret" : void 0),
|
|
3620
3615
|
"aria-label": e.lastPageText ? void 0 : "Last Page",
|
|
3621
3616
|
title: e.lastPageText,
|
|
3622
3617
|
disabled: l.value === u.value,
|
|
3623
|
-
onClick:
|
|
3618
|
+
onClick: h
|
|
3624
3619
|
}, [
|
|
3625
|
-
e.lastPageText ? (
|
|
3626
|
-
|
|
3627
|
-
], 10,
|
|
3628
|
-
])) :
|
|
3629
|
-
], 8,
|
|
3620
|
+
e.lastPageText ? (s(), v("span", Qn, C(e.lastPageText), 1)) : S("", !0),
|
|
3621
|
+
A(f(wt))
|
|
3622
|
+
], 10, Xn)) : S("", !0)
|
|
3623
|
+
])) : S("", !0)
|
|
3624
|
+
], 8, On));
|
|
3630
3625
|
}
|
|
3631
|
-
},
|
|
3626
|
+
}, Jn = ["data-truncate"], uo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3632
3627
|
__name: "BsPill",
|
|
3633
3628
|
props: {
|
|
3634
3629
|
active: { type: Boolean, default: !1 },
|
|
@@ -3652,8 +3647,8 @@ const $a = {
|
|
|
3652
3647
|
}
|
|
3653
3648
|
},
|
|
3654
3649
|
setup(e) {
|
|
3655
|
-
const a = e, { onLinkClick: t } =
|
|
3656
|
-
return (o,
|
|
3650
|
+
const a = e, { onLinkClick: t } = Le(a), n = fe(), { rootTag: l, attrsToBind: r, hrefUrl: u } = Ve(a, n, "span");
|
|
3651
|
+
return (o, d) => (s(), E(te(f(l)), z({
|
|
3657
3652
|
class: "bs-pill",
|
|
3658
3653
|
"data-active": e.active,
|
|
3659
3654
|
"data-component": "bs-pill",
|
|
@@ -3661,26 +3656,26 @@ const $a = {
|
|
|
3661
3656
|
"data-variant": e.variant || void 0,
|
|
3662
3657
|
disabled: e.disabled,
|
|
3663
3658
|
".href": f(u)
|
|
3664
|
-
}, f(
|
|
3665
|
-
default:
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
], 8,
|
|
3659
|
+
}, f(r), { onClick: f(t) }), {
|
|
3660
|
+
default: L(() => [
|
|
3661
|
+
b("span", { "data-truncate": e.truncate }, [
|
|
3662
|
+
x(o.$slots, "default")
|
|
3663
|
+
], 8, Jn)
|
|
3669
3664
|
]),
|
|
3670
3665
|
_: 3
|
|
3671
3666
|
}, 48, ["data-active", "data-status", "data-variant", "disabled", ".href", "onClick"]));
|
|
3672
3667
|
}
|
|
3673
|
-
}),
|
|
3668
|
+
}), Zn = { class: "bs-profile-details" }, _n = {
|
|
3674
3669
|
class: "bs-profile-name",
|
|
3675
3670
|
"data-size": "sm",
|
|
3676
3671
|
"data-weight": "bold"
|
|
3677
|
-
},
|
|
3672
|
+
}, el = {
|
|
3678
3673
|
key: 1,
|
|
3679
3674
|
"data-weight": "bold"
|
|
3680
|
-
},
|
|
3675
|
+
}, tl = { key: 2 }, al = { key: 3 }, nl = {
|
|
3681
3676
|
key: 4,
|
|
3682
3677
|
"data-icon": "true"
|
|
3683
|
-
},
|
|
3678
|
+
}, ll = {
|
|
3684
3679
|
__name: "BsProfileDetails",
|
|
3685
3680
|
props: {
|
|
3686
3681
|
profileName: {
|
|
@@ -3697,40 +3692,40 @@ const $a = {
|
|
|
3697
3692
|
},
|
|
3698
3693
|
emits: ["action-toggled"],
|
|
3699
3694
|
setup(e, { emit: a }) {
|
|
3700
|
-
const t = e, n = a, { icon: l } =
|
|
3695
|
+
const t = e, n = a, { icon: l } = ke(t, "actionIcon"), { icon: r } = ke(t, "miscMetaIcon");
|
|
3701
3696
|
function u(o) {
|
|
3702
3697
|
o.target.tagName === "BUTTON" && (o.preventDefault(), o.stopImmediatePropagation(), n("action-toggled"));
|
|
3703
3698
|
}
|
|
3704
|
-
return (o,
|
|
3705
|
-
e.action || o.$slots.action ? (
|
|
3699
|
+
return (o, d) => (s(), v("div", Zn, [
|
|
3700
|
+
e.action || o.$slots.action ? (s(), v("button", {
|
|
3706
3701
|
key: 0,
|
|
3707
3702
|
"data-icon": "true",
|
|
3708
3703
|
onClick: u
|
|
3709
3704
|
}, [
|
|
3710
|
-
|
|
3711
|
-
e.actionIcon ? (
|
|
3705
|
+
x(o.$slots, "action", {}, () => [
|
|
3706
|
+
e.actionIcon ? (s(), E(te(f(l) ? f(l) : "span"), {
|
|
3712
3707
|
key: 0,
|
|
3713
3708
|
class: "bs-icon"
|
|
3714
|
-
})) :
|
|
3715
|
-
H(" " +
|
|
3709
|
+
})) : S("", !0),
|
|
3710
|
+
H(" " + C(e.action), 1)
|
|
3716
3711
|
])
|
|
3717
|
-
])) :
|
|
3718
|
-
|
|
3719
|
-
e.company ? (
|
|
3720
|
-
e.jobTitle ? (
|
|
3721
|
-
e.email ? (
|
|
3722
|
-
e.miscMeta || o.$slots.misc ? (
|
|
3723
|
-
|
|
3724
|
-
e.miscMetaIcon ? (
|
|
3712
|
+
])) : S("", !0),
|
|
3713
|
+
b("span", _n, C(e.profileName), 1),
|
|
3714
|
+
e.company ? (s(), v("span", el, C(e.company), 1)) : S("", !0),
|
|
3715
|
+
e.jobTitle ? (s(), v("span", tl, C(e.jobTitle), 1)) : S("", !0),
|
|
3716
|
+
e.email ? (s(), v("span", al, C(e.email), 1)) : S("", !0),
|
|
3717
|
+
e.miscMeta || o.$slots.misc ? (s(), v("span", nl, [
|
|
3718
|
+
x(o.$slots, "misc", {}, () => [
|
|
3719
|
+
e.miscMetaIcon ? (s(), E(te(f(r) ? f(r) : "span"), {
|
|
3725
3720
|
key: 0,
|
|
3726
3721
|
class: "bs-icon"
|
|
3727
|
-
})) :
|
|
3728
|
-
H(" " +
|
|
3722
|
+
})) : S("", !0),
|
|
3723
|
+
H(" " + C(e.miscMeta), 1)
|
|
3729
3724
|
])
|
|
3730
|
-
])) :
|
|
3725
|
+
])) : S("", !0)
|
|
3731
3726
|
]));
|
|
3732
3727
|
}
|
|
3733
|
-
},
|
|
3728
|
+
}, co = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3734
3729
|
__name: "BsProfile",
|
|
3735
3730
|
props: {
|
|
3736
3731
|
layout: {
|
|
@@ -3760,21 +3755,21 @@ const $a = {
|
|
|
3760
3755
|
},
|
|
3761
3756
|
emits: ["action-toggled"],
|
|
3762
3757
|
setup(e, { emit: a }) {
|
|
3763
|
-
const t = e, n = a, l =
|
|
3764
|
-
return (
|
|
3758
|
+
const t = e, n = a, l = fe(), { onLinkClick: r } = Le(t), { rootTag: u, attrsToBind: o, hrefUrl: d } = Ve(t, l, "div");
|
|
3759
|
+
return (i, c) => (s(), E(te(f(u)), z({
|
|
3765
3760
|
class: "bs-profile",
|
|
3766
|
-
".href": f(
|
|
3761
|
+
".href": f(d),
|
|
3767
3762
|
"data-layout": e.layout
|
|
3768
|
-
}, f(o), { onClick: f(
|
|
3769
|
-
default:
|
|
3770
|
-
|
|
3763
|
+
}, f(o), { onClick: f(r) }), {
|
|
3764
|
+
default: L(() => [
|
|
3765
|
+
A(ut, {
|
|
3771
3766
|
src: e.imageSrc,
|
|
3772
3767
|
size: e.imageSize,
|
|
3773
3768
|
initials: e.initials,
|
|
3774
3769
|
"profile-name": e.profileName,
|
|
3775
3770
|
"use-alt-text": !1
|
|
3776
3771
|
}, null, 8, ["src", "size", "initials", "profile-name"]),
|
|
3777
|
-
|
|
3772
|
+
A(ll, {
|
|
3778
3773
|
"profile-name": e.profileName,
|
|
3779
3774
|
company: e.company,
|
|
3780
3775
|
"job-title": e.jobTitle,
|
|
@@ -3783,13 +3778,13 @@ const $a = {
|
|
|
3783
3778
|
"action-icon": e.actionIcon,
|
|
3784
3779
|
"misc-meta": e.miscMeta,
|
|
3785
3780
|
"misc-meta-icon": e.miscMetaIcon,
|
|
3786
|
-
onActionToggled: c[0] || (c[0] = (
|
|
3781
|
+
onActionToggled: c[0] || (c[0] = (h) => n("action-toggled"))
|
|
3787
3782
|
}, {
|
|
3788
|
-
action:
|
|
3789
|
-
|
|
3783
|
+
action: L(() => [
|
|
3784
|
+
x(i.$slots, "action")
|
|
3790
3785
|
]),
|
|
3791
|
-
misc:
|
|
3792
|
-
|
|
3786
|
+
misc: L(() => [
|
|
3787
|
+
x(i.$slots, "misc")
|
|
3793
3788
|
]),
|
|
3794
3789
|
_: 3
|
|
3795
3790
|
}, 8, ["profile-name", "company", "job-title", "email", "action", "action-icon", "misc-meta", "misc-meta-icon"])
|
|
@@ -3797,7 +3792,80 @@ const $a = {
|
|
|
3797
3792
|
_: 3
|
|
3798
3793
|
}, 48, [".href", "data-layout", "onClick"]));
|
|
3799
3794
|
}
|
|
3800
|
-
})
|
|
3795
|
+
});
|
|
3796
|
+
function ct(e) {
|
|
3797
|
+
const a = p(() => {
|
|
3798
|
+
var l;
|
|
3799
|
+
switch (e.currentStatus) {
|
|
3800
|
+
case void 0:
|
|
3801
|
+
case null:
|
|
3802
|
+
case "":
|
|
3803
|
+
return (l = e.steps.filter((r) => r.status === "complete")) == null ? void 0 : l.length;
|
|
3804
|
+
case "complete":
|
|
3805
|
+
return e.steps.length;
|
|
3806
|
+
case "in-progress":
|
|
3807
|
+
return e.currentStep;
|
|
3808
|
+
default:
|
|
3809
|
+
return e.currentStep;
|
|
3810
|
+
}
|
|
3811
|
+
}), t = p(() => `${a.value} of ${e.steps.length} completed.`);
|
|
3812
|
+
function n(l, r) {
|
|
3813
|
+
return l || (e.currentStatus ? r < e.currentStep ? "complete" : r === e.currentStep ? e.currentStatus : "not-started" : "not-started");
|
|
3814
|
+
}
|
|
3815
|
+
return {
|
|
3816
|
+
progressStep: a,
|
|
3817
|
+
progressText: t,
|
|
3818
|
+
getStatus: n
|
|
3819
|
+
};
|
|
3820
|
+
}
|
|
3821
|
+
const ol = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], il = ["data-status"], fo = {
|
|
3822
|
+
__name: "BsProgressBar",
|
|
3823
|
+
props: {
|
|
3824
|
+
/** @type {Status} */
|
|
3825
|
+
currentStatus: {
|
|
3826
|
+
type: String,
|
|
3827
|
+
validator: (e) => [
|
|
3828
|
+
"cancelled",
|
|
3829
|
+
"complete",
|
|
3830
|
+
"error",
|
|
3831
|
+
"in-progress",
|
|
3832
|
+
"not-started",
|
|
3833
|
+
"ongoing",
|
|
3834
|
+
"paused",
|
|
3835
|
+
"warning"
|
|
3836
|
+
].includes(e)
|
|
3837
|
+
},
|
|
3838
|
+
currentStep: {
|
|
3839
|
+
type: Number,
|
|
3840
|
+
default: 0
|
|
3841
|
+
},
|
|
3842
|
+
/** @type {Array<Step|string>} */
|
|
3843
|
+
steps: {
|
|
3844
|
+
type: Array,
|
|
3845
|
+
required: !0
|
|
3846
|
+
}
|
|
3847
|
+
},
|
|
3848
|
+
setup(e) {
|
|
3849
|
+
const a = e, { progressStep: t, progressText: n, getStatus: l } = ct(a);
|
|
3850
|
+
return (r, u) => (s(), v("div", {
|
|
3851
|
+
"aria-valuemax": e.steps.length,
|
|
3852
|
+
"aria-valuenow": f(t),
|
|
3853
|
+
"aria-valuetext": f(n),
|
|
3854
|
+
class: "bs-progress-bar",
|
|
3855
|
+
role: "progressbar"
|
|
3856
|
+
}, [
|
|
3857
|
+
(s(!0), v(W, null, _(e.steps, (o, d) => (s(), v("div", {
|
|
3858
|
+
class: "bs-step-item",
|
|
3859
|
+
"data-status": f(l)(o.status, d),
|
|
3860
|
+
"data-variant": "progress",
|
|
3861
|
+
key: o.id || o.label,
|
|
3862
|
+
role: "status"
|
|
3863
|
+
}, [
|
|
3864
|
+
b("span", null, C(o.label || o) + " : " + C(f(l)(o.status, d) || "not started"), 1)
|
|
3865
|
+
], 8, il))), 128))
|
|
3866
|
+
], 8, ol));
|
|
3867
|
+
}
|
|
3868
|
+
}, rl = ["data-size"], sl = ["checked", "disabled", "id", "required", "value", "data-error"], vo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3801
3869
|
__name: "BsRadio",
|
|
3802
3870
|
props: {
|
|
3803
3871
|
label: {
|
|
@@ -3841,39 +3909,39 @@ const $a = {
|
|
|
3841
3909
|
},
|
|
3842
3910
|
emits: ["update:modelValue"],
|
|
3843
3911
|
setup(e, { emit: a }) {
|
|
3844
|
-
const t = e, [n] =
|
|
3845
|
-
return (o,
|
|
3912
|
+
const t = e, [n] = Z(), l = p(() => Fe.concat(t.passAttrs.split(","))), r = p(() => t.inputId || n.value), u = p(() => t.checked || t.modelValue && t.modelValue === t.value);
|
|
3913
|
+
return (o, d) => (s(), v("div", z({
|
|
3846
3914
|
class: "bs-boolean",
|
|
3847
3915
|
"data-component": "bs-radio",
|
|
3848
3916
|
"data-size": e.size
|
|
3849
|
-
}, f(
|
|
3850
|
-
|
|
3917
|
+
}, f(Y)(o.$attrs, l.value).remaining), [
|
|
3918
|
+
b("input", z({
|
|
3851
3919
|
checked: u.value,
|
|
3852
3920
|
disabled: e.disabled,
|
|
3853
|
-
id: o.$attrs.id ||
|
|
3921
|
+
id: o.$attrs.id || r.value,
|
|
3854
3922
|
required: e.required,
|
|
3855
3923
|
type: "radio",
|
|
3856
3924
|
value: e.value,
|
|
3857
3925
|
"data-error": e.error
|
|
3858
|
-
}, f(
|
|
3859
|
-
onChange:
|
|
3860
|
-
}), null, 16,
|
|
3861
|
-
e.label || o.$slots.label ? (
|
|
3926
|
+
}, f(Y)(o.$attrs, l.value).filtered, {
|
|
3927
|
+
onChange: d[0] || (d[0] = (i) => o.$emit("update:modelValue", i.target.value))
|
|
3928
|
+
}), null, 16, sl),
|
|
3929
|
+
e.label || o.$slots.label ? (s(), E(oe, {
|
|
3862
3930
|
key: 0,
|
|
3863
|
-
for: o.$attrs.id ||
|
|
3931
|
+
for: o.$attrs.id || r.value,
|
|
3864
3932
|
disabled: e.disabled,
|
|
3865
3933
|
required: e.required
|
|
3866
3934
|
}, {
|
|
3867
|
-
default:
|
|
3868
|
-
|
|
3869
|
-
H(
|
|
3935
|
+
default: L(() => [
|
|
3936
|
+
x(o.$slots, "label", {}, () => [
|
|
3937
|
+
H(C(e.label), 1)
|
|
3870
3938
|
])
|
|
3871
3939
|
]),
|
|
3872
3940
|
_: 3
|
|
3873
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
3874
|
-
], 16,
|
|
3941
|
+
}, 8, ["for", "disabled", "required"])) : S("", !0)
|
|
3942
|
+
], 16, rl));
|
|
3875
3943
|
}
|
|
3876
|
-
}),
|
|
3944
|
+
}), dl = ["id", "disabled", "required", "data-error", "value"], ul = {
|
|
3877
3945
|
__name: "BsSelect",
|
|
3878
3946
|
props: {
|
|
3879
3947
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -3887,7 +3955,7 @@ const $a = {
|
|
|
3887
3955
|
emits: ["update:modelValue"],
|
|
3888
3956
|
setup(e, { emit: a }) {
|
|
3889
3957
|
const t = e, n = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
3890
|
-
return (l,
|
|
3958
|
+
return (l, r) => (s(), v("select", z({
|
|
3891
3959
|
id: l.$attrs.id || e.inputId,
|
|
3892
3960
|
class: "bs-select",
|
|
3893
3961
|
"data-component": "bs-select",
|
|
@@ -3896,12 +3964,12 @@ const $a = {
|
|
|
3896
3964
|
"data-error": e.error,
|
|
3897
3965
|
value: e.value || e.modelValue
|
|
3898
3966
|
}, n.value, {
|
|
3899
|
-
onChange:
|
|
3967
|
+
onChange: r[0] || (r[0] = (u) => l.$emit("update:modelValue", u.target.value))
|
|
3900
3968
|
}), [
|
|
3901
|
-
|
|
3902
|
-
], 16,
|
|
3969
|
+
x(l.$slots, "default")
|
|
3970
|
+
], 16, dl));
|
|
3903
3971
|
}
|
|
3904
|
-
},
|
|
3972
|
+
}, cl = ["selected", "disabled"], fl = ["disabled", "selected", "value"], po = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3905
3973
|
__name: "BsSelectField",
|
|
3906
3974
|
props: {
|
|
3907
3975
|
data: {
|
|
@@ -3945,60 +4013,103 @@ const $a = {
|
|
|
3945
4013
|
modelValue: [String, Number]
|
|
3946
4014
|
},
|
|
3947
4015
|
setup(e) {
|
|
3948
|
-
const a = e, [t, n] =
|
|
3949
|
-
var
|
|
3950
|
-
return ((c = (
|
|
4016
|
+
const a = e, [t, n] = Z(2), l = p(() => ma.concat(a.passAttrs.split(","))), r = p(() => {
|
|
4017
|
+
var i, c;
|
|
4018
|
+
return ((c = (i = a.hints) == null ? void 0 : i.join) == null ? void 0 : c.call(i, `
|
|
3951
4019
|
`)) || a.hints;
|
|
3952
|
-
}), u = p(() => a.error && a.errorMsg || a.hint ||
|
|
3953
|
-
return (
|
|
3954
|
-
e.label ||
|
|
4020
|
+
}), u = p(() => a.error && a.errorMsg || a.hint || r.value || void 0), o = p(() => a.inputId || t.value), d = p(() => a.value || a.modelValue);
|
|
4021
|
+
return (i, c) => (s(), v("div", z({ "data-component": "bs-select-field" }, f(Y)(i.$attrs, l.value).remaining), [
|
|
4022
|
+
e.label || i.$slots.label ? (s(), E(oe, {
|
|
3955
4023
|
key: 0,
|
|
3956
|
-
for:
|
|
4024
|
+
for: i.$attrs.id || o.value,
|
|
3957
4025
|
disabled: e.disabled,
|
|
3958
4026
|
required: e.required
|
|
3959
4027
|
}, {
|
|
3960
|
-
default:
|
|
3961
|
-
|
|
3962
|
-
H(
|
|
4028
|
+
default: L(() => [
|
|
4029
|
+
x(i.$slots, "label", {}, () => [
|
|
4030
|
+
H(C(e.label), 1)
|
|
3963
4031
|
])
|
|
3964
4032
|
]),
|
|
3965
4033
|
_: 3
|
|
3966
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
3967
|
-
|
|
4034
|
+
}, 8, ["for", "disabled", "required"])) : S("", !0),
|
|
4035
|
+
A(ul, z({
|
|
3968
4036
|
disabled: e.disabled,
|
|
3969
4037
|
error: e.error,
|
|
3970
4038
|
"hint-id": f(n),
|
|
3971
|
-
"input-id":
|
|
4039
|
+
"input-id": i.$attrs.id || o.value,
|
|
3972
4040
|
required: e.required,
|
|
3973
|
-
value:
|
|
3974
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
3975
|
-
}, f(
|
|
3976
|
-
default:
|
|
3977
|
-
|
|
3978
|
-
selected: !
|
|
4041
|
+
value: d.value,
|
|
4042
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => i.$emit("update:modelValue", h))
|
|
4043
|
+
}, f(Y)(i.$attrs, l.value).filtered), {
|
|
4044
|
+
default: L(() => [
|
|
4045
|
+
b("option", {
|
|
4046
|
+
selected: !d.value,
|
|
3979
4047
|
value: "",
|
|
3980
|
-
disabled: !!
|
|
3981
|
-
},
|
|
3982
|
-
(
|
|
3983
|
-
key:
|
|
3984
|
-
disabled:
|
|
3985
|
-
selected:
|
|
3986
|
-
value:
|
|
3987
|
-
},
|
|
4048
|
+
disabled: !!d.value
|
|
4049
|
+
}, C(e.disabled ? "" : e.placeholder), 9, cl),
|
|
4050
|
+
(s(!0), v(W, null, _(e.data, (h) => (s(), v("option", {
|
|
4051
|
+
key: h.value,
|
|
4052
|
+
disabled: h.disabled,
|
|
4053
|
+
selected: d.value === h.value,
|
|
4054
|
+
value: h.value
|
|
4055
|
+
}, C(h.label), 9, fl))), 128))
|
|
3988
4056
|
]),
|
|
3989
4057
|
_: 1
|
|
3990
4058
|
}, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
|
|
3991
|
-
u.value ? (
|
|
4059
|
+
u.value ? (s(), E(Be, {
|
|
3992
4060
|
key: 1,
|
|
3993
4061
|
"data-disabled": e.disabled,
|
|
3994
4062
|
error: e.error,
|
|
3995
4063
|
"error-msg": e.errorMsg,
|
|
3996
|
-
hint: e.hint ||
|
|
4064
|
+
hint: e.hint || r.value,
|
|
3997
4065
|
"hint-id": f(n)
|
|
3998
|
-
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) :
|
|
4066
|
+
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : S("", !0)
|
|
3999
4067
|
], 16));
|
|
4000
4068
|
}
|
|
4001
|
-
}),
|
|
4069
|
+
}), vl = ["data-size", "data-variant"], pl = ["stroke"], hl = { key: 0 }, bl = /* @__PURE__ */ b("linearGradient", { id: "bs-spinner-gradient" }, [
|
|
4070
|
+
/* @__PURE__ */ b("stop", { offset: "0%" }),
|
|
4071
|
+
/* @__PURE__ */ b("stop", { offset: "49%" }),
|
|
4072
|
+
/* @__PURE__ */ b("stop", { offset: "100%" })
|
|
4073
|
+
], -1), gl = [
|
|
4074
|
+
bl
|
|
4075
|
+
], ho = {
|
|
4076
|
+
__name: "BsSpinner",
|
|
4077
|
+
props: {
|
|
4078
|
+
label: {
|
|
4079
|
+
type: String,
|
|
4080
|
+
default: "Loading..."
|
|
4081
|
+
},
|
|
4082
|
+
size: {
|
|
4083
|
+
type: String,
|
|
4084
|
+
validator: (e) => ["sm", "md", "lg"].includes(e)
|
|
4085
|
+
},
|
|
4086
|
+
variant: {
|
|
4087
|
+
type: String,
|
|
4088
|
+
validator: (e) => ["blue", "white", "gradient"].includes(e)
|
|
4089
|
+
}
|
|
4090
|
+
},
|
|
4091
|
+
setup(e) {
|
|
4092
|
+
return (a, t) => (s(), v("svg", {
|
|
4093
|
+
class: "bs-spinner",
|
|
4094
|
+
"data-size": e.size,
|
|
4095
|
+
"data-variant": e.variant,
|
|
4096
|
+
fill: "none",
|
|
4097
|
+
ref: "spinnerRef",
|
|
4098
|
+
viewBox: "0 0 100 100",
|
|
4099
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4100
|
+
}, [
|
|
4101
|
+
b("title", null, C(e.label), 1),
|
|
4102
|
+
b("circle", {
|
|
4103
|
+
cx: "50",
|
|
4104
|
+
cy: "50",
|
|
4105
|
+
pathLength: "100",
|
|
4106
|
+
r: "45",
|
|
4107
|
+
stroke: e.variant === "gradient" ? "url(#bs-spinner-gradient)" : void 0
|
|
4108
|
+
}, null, 8, pl),
|
|
4109
|
+
e.variant === "gradient" ? (s(), v("defs", hl, gl)) : S("", !0)
|
|
4110
|
+
], 8, vl));
|
|
4111
|
+
}
|
|
4112
|
+
}, ml = ["data-size"], yl = ["data-disabled", "data-pending", "data-size"], Bl = ["checked", "disabled", "id"], Sl = ["data-inner-on-label", "data-inner-off-label"], bo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4002
4113
|
__name: "BsSwitch",
|
|
4003
4114
|
props: {
|
|
4004
4115
|
checked: {
|
|
@@ -4044,48 +4155,48 @@ const $a = {
|
|
|
4044
4155
|
},
|
|
4045
4156
|
emits: ["update:modelValue"],
|
|
4046
4157
|
setup(e, { emit: a }) {
|
|
4047
|
-
const t = e, n = a, [l] =
|
|
4048
|
-
return (
|
|
4158
|
+
const t = e, n = a, [l] = Z(), r = p(() => Fe.concat(t.passAttrs.split(","))), u = p(() => t.inputId || l.value), o = p(() => t.checked || t.modelValue);
|
|
4159
|
+
return (d, i) => (s(), v("div", z({
|
|
4049
4160
|
class: "bs-boolean",
|
|
4050
4161
|
"data-component": "bs-switch",
|
|
4051
4162
|
"data-size": e.size
|
|
4052
|
-
}, f(
|
|
4053
|
-
e.label ||
|
|
4163
|
+
}, f(Y)(d.$attrs, r.value).remaining), [
|
|
4164
|
+
e.label || d.$slots.label ? (s(), E(oe, {
|
|
4054
4165
|
key: 0,
|
|
4055
|
-
for:
|
|
4166
|
+
for: d.$attrs.id || u.value,
|
|
4056
4167
|
disabled: e.disabled,
|
|
4057
4168
|
hide: e.hideLabel
|
|
4058
4169
|
}, {
|
|
4059
|
-
default:
|
|
4060
|
-
|
|
4061
|
-
H(
|
|
4170
|
+
default: L(() => [
|
|
4171
|
+
x(d.$slots, "label", {}, () => [
|
|
4172
|
+
H(C(e.label), 1)
|
|
4062
4173
|
])
|
|
4063
4174
|
]),
|
|
4064
4175
|
_: 3
|
|
4065
|
-
}, 8, ["for", "disabled", "hide"])) :
|
|
4066
|
-
|
|
4176
|
+
}, 8, ["for", "disabled", "hide"])) : S("", !0),
|
|
4177
|
+
b("div", {
|
|
4067
4178
|
class: "bs-switch",
|
|
4068
4179
|
"data-disabled": e.disabled,
|
|
4069
4180
|
"data-pending": e.pending,
|
|
4070
4181
|
"data-size": e.size
|
|
4071
4182
|
}, [
|
|
4072
|
-
|
|
4183
|
+
b("input", z({
|
|
4073
4184
|
checked: o.value,
|
|
4074
4185
|
disabled: e.disabled,
|
|
4075
|
-
id:
|
|
4186
|
+
id: d.$attrs.id || u.value,
|
|
4076
4187
|
type: "checkbox"
|
|
4077
|
-
}, f(
|
|
4078
|
-
onChange:
|
|
4079
|
-
}), null, 16,
|
|
4080
|
-
|
|
4188
|
+
}, f(Y)(d.$attrs, r.value).filtered, {
|
|
4189
|
+
onChange: i[0] || (i[0] = (c) => n("update:modelValue", c.target.checked))
|
|
4190
|
+
}), null, 16, Bl),
|
|
4191
|
+
b("span", {
|
|
4081
4192
|
"aria-hidden": "true",
|
|
4082
4193
|
"data-inner-on-label": e.innerOnLabel,
|
|
4083
4194
|
"data-inner-off-label": e.innerOffLabel
|
|
4084
|
-
}, null, 8,
|
|
4085
|
-
], 8,
|
|
4086
|
-
], 16,
|
|
4195
|
+
}, null, 8, Sl)
|
|
4196
|
+
], 8, yl)
|
|
4197
|
+
], 16, ml));
|
|
4087
4198
|
}
|
|
4088
|
-
}),
|
|
4199
|
+
}), $l = ["aria-controls", "aria-selected", "data-hidden"], go = {
|
|
4089
4200
|
__name: "BsTab",
|
|
4090
4201
|
props: {
|
|
4091
4202
|
activeTabId: {
|
|
@@ -4102,32 +4213,32 @@ const $a = {
|
|
|
4102
4213
|
},
|
|
4103
4214
|
emits: ["tabClick"],
|
|
4104
4215
|
setup(e, { emit: a }) {
|
|
4105
|
-
const t = e, n =
|
|
4106
|
-
function o(
|
|
4107
|
-
(
|
|
4216
|
+
const t = e, n = fe(), l = g(), r = p(() => t.activeTabId === n.id), u = p(() => t.panelId || `${n.id}-panel`);
|
|
4217
|
+
function o(i) {
|
|
4218
|
+
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), d());
|
|
4108
4219
|
}
|
|
4109
|
-
function
|
|
4220
|
+
function d() {
|
|
4110
4221
|
if (t.activeTabId !== n.id) {
|
|
4111
|
-
const
|
|
4112
|
-
l.value.dispatchEvent(
|
|
4222
|
+
const i = new CustomEvent("tabClick", { detail: n.id, bubbles: !0 });
|
|
4223
|
+
l.value.dispatchEvent(i);
|
|
4113
4224
|
}
|
|
4114
4225
|
}
|
|
4115
|
-
return (
|
|
4226
|
+
return (i, c) => (s(), v("div", {
|
|
4116
4227
|
"aria-controls": u.value,
|
|
4117
|
-
"aria-selected":
|
|
4228
|
+
"aria-selected": r.value ? "true" : "false",
|
|
4118
4229
|
"data-hidden": e.hidden || void 0,
|
|
4119
4230
|
"data-component": "bs-tab",
|
|
4120
4231
|
role: "tab",
|
|
4121
4232
|
tabindex: "0",
|
|
4122
4233
|
ref_key: "hostEl",
|
|
4123
4234
|
ref: l,
|
|
4124
|
-
onClick:
|
|
4235
|
+
onClick: d,
|
|
4125
4236
|
onKeydown: o
|
|
4126
4237
|
}, [
|
|
4127
|
-
|
|
4128
|
-
], 40,
|
|
4238
|
+
x(i.$slots, "default")
|
|
4239
|
+
], 40, $l));
|
|
4129
4240
|
}
|
|
4130
|
-
},
|
|
4241
|
+
}, wl = ["id", "data-resizing"], kl = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], Il = 73, Cl = 20, Tl = 16, mo = {
|
|
4131
4242
|
__name: "BsTabList",
|
|
4132
4243
|
props: {
|
|
4133
4244
|
activeTabId: { type: String, required: !0 },
|
|
@@ -4138,182 +4249,182 @@ const $a = {
|
|
|
4138
4249
|
},
|
|
4139
4250
|
emits: ["tabChange", "update:modelValue"],
|
|
4140
4251
|
setup(e, { emit: a }) {
|
|
4141
|
-
const t = e, n = a, l =
|
|
4142
|
-
var
|
|
4143
|
-
return m.value ? (
|
|
4144
|
-
}),
|
|
4145
|
-
var
|
|
4146
|
-
let
|
|
4252
|
+
const t = e, n = a, l = g(!1), r = g(!1), u = g([]), o = g(!1), d = g(!1), i = g(), c = g([]), h = g(!1), w = g([]), $ = g(), M = g(), k = g(), [I, O] = Z(2), y = p(() => t.activeTabId ? w.value.findIndex((B) => B.id === t.activeTabId) : 0), m = p(() => u.value.some((B) => B.id === t.activeTabId)), P = p(() => `${O.value}-options`), D = p(() => `${O.value}-toggle`), R = p(() => {
|
|
4253
|
+
var B;
|
|
4254
|
+
return m.value ? (B = w.value[y.value]) == null ? void 0 : B.textContent : "More";
|
|
4255
|
+
}), U = p(() => m.value ? c.value[y.value] - c.value[y.value - 1] + Cl : Il), J = p(() => {
|
|
4256
|
+
var V, F;
|
|
4257
|
+
let B = [];
|
|
4147
4258
|
if (typeof window > "u")
|
|
4148
|
-
return
|
|
4259
|
+
return B;
|
|
4149
4260
|
for (let Q of w.value) {
|
|
4150
|
-
if (((
|
|
4261
|
+
if (((V = Q.dataset) == null ? void 0 : V.hidden) === "true" || ((F = Q.dataset) == null ? void 0 : F.hidden) === "" || Q.getAttribute("tabindex") === "-1")
|
|
4151
4262
|
break;
|
|
4152
|
-
|
|
4263
|
+
B.push(Q);
|
|
4153
4264
|
}
|
|
4154
|
-
return
|
|
4265
|
+
return d.value && B.push(i.value.querySelector(".bs-tab-list-toggle")), B;
|
|
4155
4266
|
});
|
|
4156
|
-
function
|
|
4157
|
-
var
|
|
4158
|
-
let
|
|
4159
|
-
if ((
|
|
4160
|
-
for (let
|
|
4161
|
-
if (
|
|
4162
|
-
|
|
4267
|
+
function ee() {
|
|
4268
|
+
var de;
|
|
4269
|
+
let B = !1, V, F = 0, Q = !1, ae = [];
|
|
4270
|
+
if ((de = w.value) != null && de.length) {
|
|
4271
|
+
for (let ne = 0; ne < w.value.length; ne++) {
|
|
4272
|
+
if (V = w.value[ne], V.setAttribute("tabindex", "-1"), Q && ne !== y.value) {
|
|
4273
|
+
V.dataset.hidden = "true", ae.push(V);
|
|
4163
4274
|
continue;
|
|
4164
4275
|
}
|
|
4165
|
-
if (
|
|
4166
|
-
|
|
4276
|
+
if (F = ne < w.value.length - 1 ? k.value - U.value : k.value, c.value[ne] > F) {
|
|
4277
|
+
V.dataset.hidden = "true", ae.push(V), B = !0, Q = !0;
|
|
4167
4278
|
continue;
|
|
4168
4279
|
}
|
|
4169
|
-
|
|
4280
|
+
V.dataset.hidden = "false", V.setAttribute("tabindex", "0");
|
|
4170
4281
|
}
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
},
|
|
4282
|
+
d.value = B, u.value = ae, l.value || ge(() => l.value = !0), setTimeout(() => {
|
|
4283
|
+
q(), h.value = !0;
|
|
4284
|
+
}, h.value ? 0 : 1e3);
|
|
4174
4285
|
}
|
|
4175
4286
|
}
|
|
4176
|
-
function
|
|
4177
|
-
n("tabChange",
|
|
4287
|
+
function ie(B) {
|
|
4288
|
+
n("tabChange", B), n("update:modelValue", B);
|
|
4178
4289
|
}
|
|
4179
|
-
function
|
|
4180
|
-
var Q,
|
|
4181
|
-
const
|
|
4182
|
-
return
|
|
4290
|
+
function pe(B) {
|
|
4291
|
+
var Q, ae, de;
|
|
4292
|
+
const V = (de = (ae = (Q = w.value[B]) == null ? void 0 : Q.getBoundingClientRect) == null ? void 0 : ae.call(Q)) == null ? void 0 : de.width;
|
|
4293
|
+
return V || (B === 0 ? c.value[0] : c.value[B] - c.value[B - 1]) || 0;
|
|
4183
4294
|
}
|
|
4184
|
-
function
|
|
4185
|
-
var
|
|
4186
|
-
(
|
|
4295
|
+
function he() {
|
|
4296
|
+
var B;
|
|
4297
|
+
(B = w.value[y.value]) == null || B.setAttribute("aria-selected", "true"), ee();
|
|
4187
4298
|
}
|
|
4188
|
-
function
|
|
4189
|
-
var
|
|
4190
|
-
(
|
|
4299
|
+
function re() {
|
|
4300
|
+
var B;
|
|
4301
|
+
(B = $.value) == null || B.focus(), o.value = !1;
|
|
4191
4302
|
}
|
|
4192
|
-
function
|
|
4193
|
-
o.value = !o.value,
|
|
4303
|
+
function T() {
|
|
4304
|
+
o.value = !o.value, r.value || (r.value = !0);
|
|
4194
4305
|
}
|
|
4195
|
-
function
|
|
4196
|
-
var
|
|
4197
|
-
o.value = !1, (
|
|
4306
|
+
function j(B) {
|
|
4307
|
+
var V;
|
|
4308
|
+
o.value = !1, (V = $.value) == null || V.focus(), ie(B);
|
|
4198
4309
|
}
|
|
4199
|
-
function
|
|
4310
|
+
function se(B) {
|
|
4200
4311
|
if (t.withBsTabs)
|
|
4201
4312
|
return;
|
|
4202
|
-
const
|
|
4203
|
-
if (!
|
|
4313
|
+
const V = B.target.closest('[role="tab"]');
|
|
4314
|
+
if (!V || V.getAttribute("aria-selected") === "true")
|
|
4204
4315
|
return;
|
|
4205
|
-
const
|
|
4206
|
-
|
|
4316
|
+
const F = V.getAttribute("id");
|
|
4317
|
+
ie(F);
|
|
4207
4318
|
}
|
|
4208
|
-
function
|
|
4209
|
-
if (
|
|
4210
|
-
const
|
|
4211
|
-
if (
|
|
4319
|
+
function De(B) {
|
|
4320
|
+
if (B.key === "ArrowLeft" || B.key === "ArrowRight") {
|
|
4321
|
+
const V = J.value.findIndex((F) => F.id === B.target.id);
|
|
4322
|
+
if (V === -1)
|
|
4212
4323
|
return;
|
|
4213
|
-
|
|
4324
|
+
B.preventDefault(), B.stopPropagation(), B.key === "ArrowLeft" ? we(V) : $e(V);
|
|
4214
4325
|
}
|
|
4215
4326
|
}
|
|
4216
|
-
function
|
|
4217
|
-
var
|
|
4218
|
-
const
|
|
4219
|
-
(
|
|
4220
|
-
}
|
|
4221
|
-
function be($) {
|
|
4222
|
-
var j;
|
|
4223
|
-
const E = $ === 0 ? F.value.length - 1 : $ - 1;
|
|
4224
|
-
(j = F.value[E]) == null || j.focus();
|
|
4327
|
+
function $e(B) {
|
|
4328
|
+
var F;
|
|
4329
|
+
const V = (B + 1) % J.value.length;
|
|
4330
|
+
(F = J.value[V]) == null || F.focus();
|
|
4225
4331
|
}
|
|
4226
|
-
function
|
|
4227
|
-
var
|
|
4228
|
-
const
|
|
4229
|
-
|
|
4230
|
-
s.value && m.value && (Q = (Ge = b.value) == null ? void 0 : Ge.offsetLeft, ee = (He = b.value) == null ? void 0 : He.offsetWidth), j = Math.max(Math.abs((Q - $) / E * 300), 100), r.value.style.setProperty("--active-line-max-width", `${E}px`), r.value.style.setProperty("--active-line-scale", `${ee / E}`), r.value.style.setProperty("--active-line-offset", `${Q}px`), r.value.style.setProperty("--active-line-transition-duration", `${j}ms`);
|
|
4332
|
+
function we(B) {
|
|
4333
|
+
var F;
|
|
4334
|
+
const V = B === 0 ? J.value.length - 1 : B - 1;
|
|
4335
|
+
(F = J.value[V]) == null || F.focus();
|
|
4231
4336
|
}
|
|
4232
|
-
function
|
|
4233
|
-
var
|
|
4234
|
-
|
|
4337
|
+
function q() {
|
|
4338
|
+
var de, ne, Ge, He;
|
|
4339
|
+
const B = parseInt(i.value.style.getPropertyValue("--active-line-offset")) || 0, V = k.value;
|
|
4340
|
+
let F = 300, Q = ((ne = (de = J.value) == null ? void 0 : de[y.value]) == null ? void 0 : ne.offsetLeft) || 0, ae = pe(y.value);
|
|
4341
|
+
d.value && m.value && (Q = (Ge = $.value) == null ? void 0 : Ge.offsetLeft, ae = (He = $.value) == null ? void 0 : He.offsetWidth), F = Math.max(Math.abs((Q - B) / V * 300), 100), i.value.style.setProperty("--active-line-max-width", `${V}px`), i.value.style.setProperty("--active-line-scale", `${ae / V}`), i.value.style.setProperty("--active-line-offset", `${Q}px`), i.value.style.setProperty("--active-line-transition-duration", `${F}ms`);
|
|
4235
4342
|
}
|
|
4236
4343
|
function G() {
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
w.value.
|
|
4249
|
-
|
|
4344
|
+
var B, V;
|
|
4345
|
+
(V = (B = M.value) == null ? void 0 : B.disconnect) == null || V.call(B), M.value = null;
|
|
4346
|
+
}
|
|
4347
|
+
function K() {
|
|
4348
|
+
M.value = new ResizeObserver((B) => {
|
|
4349
|
+
for (let V of B)
|
|
4350
|
+
k.value = V.contentBoxSize[0].inlineSize;
|
|
4351
|
+
ee();
|
|
4352
|
+
}), M.value.observe(i.value);
|
|
4353
|
+
}
|
|
4354
|
+
function be() {
|
|
4355
|
+
w.value = Array.from(i.value.children).filter((B) => B.role === "tab");
|
|
4356
|
+
}
|
|
4357
|
+
function ft() {
|
|
4358
|
+
let B;
|
|
4359
|
+
w.value.forEach((V, F) => {
|
|
4360
|
+
B = V.getBoundingClientRect().width + Tl, c.value.push(F ? B + c.value[F - 1] : B);
|
|
4250
4361
|
});
|
|
4251
4362
|
}
|
|
4252
|
-
return
|
|
4253
|
-
var
|
|
4363
|
+
return N(() => t.activeTabId, he), X(() => {
|
|
4364
|
+
var B;
|
|
4254
4365
|
try {
|
|
4255
|
-
|
|
4256
|
-
} catch (
|
|
4257
|
-
console.log("tab error",
|
|
4366
|
+
be(), ft(), K(), k.value = i.value.getBoundingClientRect().width, ee(), t.withBsTabs || (B = w.value[y.value]) == null || B.setAttribute("aria-selected", "true");
|
|
4367
|
+
} catch (V) {
|
|
4368
|
+
console.log("tab error", V);
|
|
4258
4369
|
}
|
|
4259
|
-
}),
|
|
4370
|
+
}), ve(G), (B, V) => (s(), v("div", {
|
|
4260
4371
|
class: "bs-tab-list",
|
|
4261
4372
|
"data-component": "bs-tab-list",
|
|
4262
|
-
id:
|
|
4373
|
+
id: B.$attrs.id || f(I),
|
|
4263
4374
|
ref_key: "hostEl",
|
|
4264
|
-
ref:
|
|
4375
|
+
ref: i,
|
|
4265
4376
|
role: "tablist",
|
|
4266
4377
|
"data-resizing": !l.value || void 0,
|
|
4267
|
-
onClick:
|
|
4268
|
-
"on:tabClick":
|
|
4269
|
-
onKeydown:
|
|
4378
|
+
onClick: se,
|
|
4379
|
+
"on:tabClick": V[0] || (V[0] = (F) => ie(F.detail)),
|
|
4380
|
+
onKeydown: De
|
|
4270
4381
|
}, [
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
"aria-controls": f(
|
|
4382
|
+
x(B.$slots, "default"),
|
|
4383
|
+
b("button", {
|
|
4384
|
+
"aria-controls": f(O),
|
|
4274
4385
|
"aria-expanded": o.value,
|
|
4275
4386
|
class: "bs-tab-list-toggle",
|
|
4276
4387
|
"data-active": m.value || void 0,
|
|
4277
|
-
"data-hidden": !
|
|
4278
|
-
id:
|
|
4388
|
+
"data-hidden": !d.value,
|
|
4389
|
+
id: D.value,
|
|
4279
4390
|
ref_key: "dropdownToggle",
|
|
4280
|
-
ref:
|
|
4281
|
-
onClick:
|
|
4391
|
+
ref: $,
|
|
4392
|
+
onClick: T
|
|
4282
4393
|
}, [
|
|
4283
|
-
|
|
4284
|
-
H(" " +
|
|
4285
|
-
], 8,
|
|
4286
|
-
|
|
4287
|
-
"anchor-id":
|
|
4288
|
-
"container-id":
|
|
4394
|
+
A(f(kt), { size: "sm" }),
|
|
4395
|
+
H(" " + C(R.value), 1)
|
|
4396
|
+
], 8, kl),
|
|
4397
|
+
A(We, {
|
|
4398
|
+
"anchor-id": D.value,
|
|
4399
|
+
"container-id": B.$attrs.id || f(I),
|
|
4289
4400
|
"helper-description": e.helperDescription || void 0,
|
|
4290
4401
|
"helper-text": e.helperText,
|
|
4291
|
-
id: f(
|
|
4292
|
-
"options-id":
|
|
4402
|
+
id: f(O),
|
|
4403
|
+
"options-id": P.value,
|
|
4293
4404
|
position: "right",
|
|
4294
4405
|
preloaded: "",
|
|
4295
4406
|
shown: o.value,
|
|
4296
4407
|
width: "content",
|
|
4297
|
-
onClose:
|
|
4298
|
-
"onUpdate:modelValue":
|
|
4408
|
+
onClose: re,
|
|
4409
|
+
"onUpdate:modelValue": j
|
|
4299
4410
|
}, {
|
|
4300
|
-
default:
|
|
4301
|
-
(
|
|
4302
|
-
key:
|
|
4303
|
-
value:
|
|
4304
|
-
"options-id":
|
|
4411
|
+
default: L(() => [
|
|
4412
|
+
(s(!0), v(W, null, _(u.value, (F) => (s(), E(Ue, {
|
|
4413
|
+
key: F.id,
|
|
4414
|
+
value: F.id,
|
|
4415
|
+
"options-id": P.value
|
|
4305
4416
|
}, {
|
|
4306
|
-
default:
|
|
4307
|
-
H(
|
|
4417
|
+
default: L(() => [
|
|
4418
|
+
H(C(F.textContent), 1)
|
|
4308
4419
|
]),
|
|
4309
4420
|
_: 2
|
|
4310
4421
|
}, 1032, ["value", "options-id"]))), 128))
|
|
4311
4422
|
]),
|
|
4312
4423
|
_: 1
|
|
4313
4424
|
}, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])
|
|
4314
|
-
], 40,
|
|
4425
|
+
], 40, wl));
|
|
4315
4426
|
}
|
|
4316
|
-
},
|
|
4427
|
+
}, xl = ["aria-labelledby", "data-active", "id"], yo = {
|
|
4317
4428
|
__name: "BsTabPanel",
|
|
4318
4429
|
props: {
|
|
4319
4430
|
activeTabId: {
|
|
@@ -4326,18 +4437,18 @@ const $a = {
|
|
|
4326
4437
|
}
|
|
4327
4438
|
},
|
|
4328
4439
|
setup(e) {
|
|
4329
|
-
const a = e, t =
|
|
4330
|
-
return (
|
|
4440
|
+
const a = e, t = fe(), n = p(() => a.activeTabId && a.activeTabId === a.tabId), l = p(() => t.id || `${a.tabId}-panel`);
|
|
4441
|
+
return (r, u) => (s(), v("section", {
|
|
4331
4442
|
"aria-labelledby": e.tabId,
|
|
4332
4443
|
"data-active": n.value,
|
|
4333
4444
|
"data-component": "bs-tab-panel",
|
|
4334
4445
|
id: l.value,
|
|
4335
4446
|
role: "tabpanel"
|
|
4336
4447
|
}, [
|
|
4337
|
-
|
|
4338
|
-
], 8,
|
|
4448
|
+
x(r.$slots, "default")
|
|
4449
|
+
], 8, xl));
|
|
4339
4450
|
}
|
|
4340
|
-
},
|
|
4451
|
+
}, Al = ["data-error", "id", "rows", "value"], Vl = {
|
|
4341
4452
|
__name: "BsTextarea",
|
|
4342
4453
|
props: {
|
|
4343
4454
|
error: {
|
|
@@ -4353,17 +4464,17 @@ const $a = {
|
|
|
4353
4464
|
emits: ["update:modelValue"],
|
|
4354
4465
|
setup(e, { emit: a }) {
|
|
4355
4466
|
const t = e, n = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
4356
|
-
return (l,
|
|
4467
|
+
return (l, r) => (s(), v("textarea", z({
|
|
4357
4468
|
class: "bs-textarea",
|
|
4358
4469
|
"data-component": "bs-textarea",
|
|
4359
4470
|
"data-error": e.error,
|
|
4360
4471
|
id: l.$attrs.id || e.inputId,
|
|
4361
4472
|
rows: l.$attrs.rows || 6,
|
|
4362
4473
|
value: e.value || e.modelValue,
|
|
4363
|
-
onInput:
|
|
4364
|
-
}, n.value), null, 16,
|
|
4474
|
+
onInput: r[0] || (r[0] = (u) => l.$emit("update:modelValue", u.target.value))
|
|
4475
|
+
}, n.value), null, 16, Al));
|
|
4365
4476
|
}
|
|
4366
|
-
},
|
|
4477
|
+
}, Bo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4367
4478
|
__name: "BsTextareaField",
|
|
4368
4479
|
props: {
|
|
4369
4480
|
/** 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. */
|
|
@@ -4412,40 +4523,40 @@ const $a = {
|
|
|
4412
4523
|
},
|
|
4413
4524
|
emits: ["update:modelValue"],
|
|
4414
4525
|
setup(e, { emit: a }) {
|
|
4415
|
-
const t = e, [n, l] =
|
|
4526
|
+
const t = e, [n, l] = Z(2), r = p(() => ya.concat(t.passAttrs.split(","))), u = p(() => {
|
|
4416
4527
|
var c;
|
|
4417
4528
|
return ((c = t.value || t.modelValue) == null ? void 0 : c.length) || 0;
|
|
4418
4529
|
}), o = p(() => {
|
|
4419
|
-
var c,
|
|
4420
|
-
return ((
|
|
4530
|
+
var c, h;
|
|
4531
|
+
return ((h = (c = t.hints) == null ? void 0 : c.join) == null ? void 0 : h.call(c, `
|
|
4421
4532
|
`)) || t.hints;
|
|
4422
|
-
}),
|
|
4423
|
-
return (c,
|
|
4424
|
-
e.label || c.$slots.label ? (
|
|
4533
|
+
}), d = p(() => t.error && t.errorMsg || t.hint || o.value || void 0), i = p(() => t.inputId || n.value);
|
|
4534
|
+
return (c, h) => (s(), v("div", z({ "data-component": "bs-textarea-field" }, f(Y)(c.$attrs, r.value).remaining), [
|
|
4535
|
+
e.label || c.$slots.label ? (s(), E(oe, {
|
|
4425
4536
|
key: 0,
|
|
4426
|
-
for: c.$attrs.id ||
|
|
4537
|
+
for: c.$attrs.id || i.value,
|
|
4427
4538
|
disabled: e.disabled,
|
|
4428
4539
|
required: e.required
|
|
4429
4540
|
}, {
|
|
4430
|
-
default:
|
|
4431
|
-
|
|
4432
|
-
H(
|
|
4541
|
+
default: L(() => [
|
|
4542
|
+
x(c.$slots, "label", {}, () => [
|
|
4543
|
+
H(C(e.label), 1)
|
|
4433
4544
|
])
|
|
4434
4545
|
]),
|
|
4435
4546
|
_: 3
|
|
4436
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
4437
|
-
|
|
4547
|
+
}, 8, ["for", "disabled", "required"])) : S("", !0),
|
|
4548
|
+
A(Vl, z({
|
|
4438
4549
|
disabled: e.disabled,
|
|
4439
4550
|
error: e.error,
|
|
4440
4551
|
"hint-id": f(l),
|
|
4441
|
-
id: c.$attrs.id ||
|
|
4552
|
+
id: c.$attrs.id || i.value,
|
|
4442
4553
|
placeholder: e.placeholder,
|
|
4443
4554
|
required: e.required,
|
|
4444
4555
|
rows: e.rows,
|
|
4445
4556
|
value: e.value || e.modelValue,
|
|
4446
|
-
"onUpdate:modelValue":
|
|
4447
|
-
}, f(
|
|
4448
|
-
|
|
4557
|
+
"onUpdate:modelValue": h[0] || (h[0] = (w) => c.$emit("update:modelValue", w))
|
|
4558
|
+
}, f(Y)(c.$attrs, r.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
|
|
4559
|
+
d.value || e.charMax ? (s(), E(Be, {
|
|
4449
4560
|
key: 1,
|
|
4450
4561
|
"char-count": u.value,
|
|
4451
4562
|
"char-max": e.charMax,
|
|
@@ -4454,10 +4565,75 @@ const $a = {
|
|
|
4454
4565
|
"error-msg": e.errorMsg,
|
|
4455
4566
|
hint: e.hint || o.value,
|
|
4456
4567
|
"hint-id": f(l)
|
|
4457
|
-
}, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) :
|
|
4568
|
+
}, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) : S("", !0)
|
|
4458
4569
|
], 16));
|
|
4459
4570
|
}
|
|
4460
|
-
}),
|
|
4571
|
+
}), Ll = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], El = ["data-status"], Ol = { class: "visually-hidden" }, So = {
|
|
4572
|
+
__name: "BsTimeline",
|
|
4573
|
+
props: {
|
|
4574
|
+
/** @type {Status} */
|
|
4575
|
+
currentStatus: {
|
|
4576
|
+
type: String,
|
|
4577
|
+
validator: (e) => [
|
|
4578
|
+
"cancelled",
|
|
4579
|
+
"complete",
|
|
4580
|
+
"error",
|
|
4581
|
+
"in-progress",
|
|
4582
|
+
"not-started",
|
|
4583
|
+
"ongoing",
|
|
4584
|
+
"paused",
|
|
4585
|
+
"warning"
|
|
4586
|
+
].includes(e)
|
|
4587
|
+
},
|
|
4588
|
+
currentStep: {
|
|
4589
|
+
type: Number,
|
|
4590
|
+
default: 0
|
|
4591
|
+
},
|
|
4592
|
+
/** @type {Array<Step|string>} */
|
|
4593
|
+
steps: {
|
|
4594
|
+
type: Array,
|
|
4595
|
+
required: !0
|
|
4596
|
+
}
|
|
4597
|
+
},
|
|
4598
|
+
setup(e) {
|
|
4599
|
+
const a = e, t = {
|
|
4600
|
+
cancelled: It,
|
|
4601
|
+
complete: Ct,
|
|
4602
|
+
error: Tt,
|
|
4603
|
+
"in-progress": xt,
|
|
4604
|
+
"not-started": Ye,
|
|
4605
|
+
ongoing: At,
|
|
4606
|
+
paused: Vt,
|
|
4607
|
+
warning: st
|
|
4608
|
+
}, { progressStep: n, progressText: l, getStatus: r } = ct(a);
|
|
4609
|
+
function u(o, d) {
|
|
4610
|
+
return o = r(o, d), t[o] || Ye;
|
|
4611
|
+
}
|
|
4612
|
+
return (o, d) => (s(), v("div", {
|
|
4613
|
+
"aria-valuemax": e.steps.length,
|
|
4614
|
+
"aria-valuenow": f(n),
|
|
4615
|
+
"aria-valuetext": f(l),
|
|
4616
|
+
class: "bs-timeline",
|
|
4617
|
+
role: "progressbar"
|
|
4618
|
+
}, [
|
|
4619
|
+
(s(!0), v(W, null, _(e.steps, (i, c) => (s(), v("div", {
|
|
4620
|
+
class: "bs-step-item",
|
|
4621
|
+
"data-status": f(r)(i.status, c),
|
|
4622
|
+
key: i.id || i.label,
|
|
4623
|
+
role: "status"
|
|
4624
|
+
}, [
|
|
4625
|
+
(s(), E(te(u(i.status, c)), {
|
|
4626
|
+
class: "bs-step-icon",
|
|
4627
|
+
role: "presentation"
|
|
4628
|
+
})),
|
|
4629
|
+
b("p", null, [
|
|
4630
|
+
H(C(i.label || i) + " ", 1),
|
|
4631
|
+
b("span", Ol, " : " + C(f(r)(i.status, c) || "not started"), 1)
|
|
4632
|
+
])
|
|
4633
|
+
], 8, El))), 128))
|
|
4634
|
+
], 8, Ll));
|
|
4635
|
+
}
|
|
4636
|
+
}, Dl = ["data-variant", "data-stacked"], $o = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4461
4637
|
__name: "BsToast",
|
|
4462
4638
|
props: {
|
|
4463
4639
|
shown: {
|
|
@@ -4503,111 +4679,111 @@ const $a = {
|
|
|
4503
4679
|
},
|
|
4504
4680
|
emits: ["dismiss", "after-enter", "after-leave"],
|
|
4505
4681
|
setup(e, { emit: a }) {
|
|
4506
|
-
const t = e, n = a, { transition: l } =
|
|
4507
|
-
let
|
|
4508
|
-
|
|
4509
|
-
const u =
|
|
4682
|
+
const t = e, n = a, { transition: l } = ye(t);
|
|
4683
|
+
let r = null;
|
|
4684
|
+
ue("variant", t.variant), ue("handleDismiss", o);
|
|
4685
|
+
const u = ce("stacked", t.stacked);
|
|
4510
4686
|
function o() {
|
|
4511
|
-
|
|
4687
|
+
r && (clearTimeout(r), r = null), n("dismiss", t.toastId);
|
|
4512
4688
|
}
|
|
4513
|
-
function
|
|
4514
|
-
t.duration > 0 && (
|
|
4689
|
+
function d() {
|
|
4690
|
+
t.duration > 0 && (r = setTimeout(() => {
|
|
4515
4691
|
o();
|
|
4516
4692
|
}, t.duration)), n("after-enter");
|
|
4517
4693
|
}
|
|
4518
|
-
return (
|
|
4694
|
+
return (i, c) => (s(), E(f(Oe), {
|
|
4519
4695
|
shown: f(l),
|
|
4520
4696
|
preloaded: e.preloaded,
|
|
4521
4697
|
duration: 200,
|
|
4522
4698
|
"enter-attribute": "data-shown",
|
|
4523
|
-
onAfterEnter:
|
|
4524
|
-
onAfterLeave: c[0] || (c[0] = (
|
|
4699
|
+
onAfterEnter: d,
|
|
4700
|
+
onAfterLeave: c[0] || (c[0] = (h) => n("after-leave"))
|
|
4525
4701
|
}, {
|
|
4526
|
-
default:
|
|
4527
|
-
|
|
4702
|
+
default: L(() => [
|
|
4703
|
+
b("div", z({
|
|
4528
4704
|
class: "bs-toast",
|
|
4529
4705
|
"data-variant": e.variant,
|
|
4530
4706
|
"data-stacked": f(u) || void 0,
|
|
4531
4707
|
role: "alert"
|
|
4532
|
-
},
|
|
4533
|
-
|
|
4534
|
-
], 16,
|
|
4708
|
+
}, i.$attrs), [
|
|
4709
|
+
x(i.$slots, "default")
|
|
4710
|
+
], 16, Dl)
|
|
4535
4711
|
]),
|
|
4536
4712
|
_: 3
|
|
4537
4713
|
}, 8, ["shown", "preloaded"]));
|
|
4538
4714
|
}
|
|
4539
|
-
}),
|
|
4715
|
+
}), Pl = ["data-stacked"], wo = {
|
|
4540
4716
|
__name: "BsToastActions",
|
|
4541
4717
|
setup(e) {
|
|
4542
|
-
const a =
|
|
4543
|
-
|
|
4718
|
+
const a = g(!1);
|
|
4719
|
+
X(() => {
|
|
4544
4720
|
var l;
|
|
4545
|
-
const n =
|
|
4721
|
+
const n = gt();
|
|
4546
4722
|
((l = n.default) == null ? void 0 : l.call(n).length) > 2 && (a.value = !0);
|
|
4547
4723
|
});
|
|
4548
|
-
const t =
|
|
4549
|
-
return (n, l) => (
|
|
4724
|
+
const t = ce("handleDismiss");
|
|
4725
|
+
return (n, l) => (s(), v("div", {
|
|
4550
4726
|
class: "bs-toast-actions",
|
|
4551
4727
|
"data-stacked": a.value || void 0
|
|
4552
4728
|
}, [
|
|
4553
|
-
|
|
4554
|
-
|
|
4729
|
+
x(n.$slots, "default", {}, () => [
|
|
4730
|
+
A(aa, {
|
|
4555
4731
|
size: "sm",
|
|
4556
4732
|
"text-btn": "",
|
|
4557
4733
|
onClick: f(t)
|
|
4558
4734
|
}, {
|
|
4559
|
-
default:
|
|
4735
|
+
default: L(() => [
|
|
4560
4736
|
H(" Dismiss ")
|
|
4561
4737
|
]),
|
|
4562
4738
|
_: 1
|
|
4563
4739
|
}, 8, ["onClick"])
|
|
4564
4740
|
])
|
|
4565
|
-
], 8,
|
|
4741
|
+
], 8, Pl));
|
|
4566
4742
|
}
|
|
4567
|
-
},
|
|
4743
|
+
}, ql = (e, a) => {
|
|
4568
4744
|
const t = e.__vccOpts || e;
|
|
4569
4745
|
for (const [n, l] of a)
|
|
4570
4746
|
t[n] = l;
|
|
4571
4747
|
return t;
|
|
4572
|
-
},
|
|
4573
|
-
function
|
|
4574
|
-
return
|
|
4575
|
-
|
|
4748
|
+
}, Ml = {}, Nl = { class: "bs-toast-body" };
|
|
4749
|
+
function zl(e, a) {
|
|
4750
|
+
return s(), v("div", Nl, [
|
|
4751
|
+
x(e.$slots, "default")
|
|
4576
4752
|
]);
|
|
4577
4753
|
}
|
|
4578
|
-
const
|
|
4754
|
+
const ko = /* @__PURE__ */ ql(Ml, [["render", zl]]), Rl = ["data-variant"], Io = {
|
|
4579
4755
|
__name: "BsToastHeader",
|
|
4580
4756
|
setup(e) {
|
|
4581
|
-
const a =
|
|
4757
|
+
const a = ce("variant"), t = p(() => {
|
|
4582
4758
|
switch (a) {
|
|
4583
4759
|
case "warning":
|
|
4584
|
-
return
|
|
4760
|
+
return Ne;
|
|
4585
4761
|
case "positive":
|
|
4586
|
-
return
|
|
4762
|
+
return Lt;
|
|
4587
4763
|
case "negative":
|
|
4588
|
-
return
|
|
4764
|
+
return Ne;
|
|
4589
4765
|
default:
|
|
4590
|
-
return
|
|
4766
|
+
return st;
|
|
4591
4767
|
}
|
|
4592
4768
|
});
|
|
4593
|
-
return (n, l) => (
|
|
4769
|
+
return (n, l) => (s(), v("div", {
|
|
4594
4770
|
class: "bs-toast-header",
|
|
4595
4771
|
"data-variant": f(a)
|
|
4596
4772
|
}, [
|
|
4597
|
-
(
|
|
4598
|
-
|
|
4599
|
-
|
|
4773
|
+
(s(), E(te(t.value), { class: "bs-toast-header-icon" })),
|
|
4774
|
+
b("h5", null, [
|
|
4775
|
+
x(n.$slots, "default")
|
|
4600
4776
|
])
|
|
4601
|
-
], 8,
|
|
4777
|
+
], 8, Rl));
|
|
4602
4778
|
}
|
|
4603
|
-
},
|
|
4779
|
+
}, Fl = { class: "bs-toaster" }, Co = {
|
|
4604
4780
|
__name: "BsToaster",
|
|
4605
4781
|
setup(e) {
|
|
4606
|
-
return
|
|
4607
|
-
|
|
4782
|
+
return ue("stacked", !0), (a, t) => (s(), v("div", Fl, [
|
|
4783
|
+
x(a.$slots, "default")
|
|
4608
4784
|
]));
|
|
4609
4785
|
}
|
|
4610
|
-
},
|
|
4786
|
+
}, jl = ["data-position"], Ul = ["id"], To = {
|
|
4611
4787
|
__name: "BsTooltip",
|
|
4612
4788
|
props: {
|
|
4613
4789
|
tooltipId: {
|
|
@@ -4634,86 +4810,89 @@ const to = /* @__PURE__ */ ml(gl, [["render", Bl]]), $l = ["data-variant"], ao =
|
|
|
4634
4810
|
}
|
|
4635
4811
|
},
|
|
4636
4812
|
setup(e) {
|
|
4637
|
-
const a = e, t =
|
|
4813
|
+
const a = e, t = g(!1), n = g(!1), l = p(() => {
|
|
4638
4814
|
let o = "bs-tooltip-text";
|
|
4639
4815
|
return n.value && (a.position === void 0 || a.position === "top" || a.position === "bottom" ? o += " escaped-x" : a.position === "left" || a.position === "right" ? o += " escaped-y" : o += " escaped"), o;
|
|
4640
4816
|
});
|
|
4641
|
-
|
|
4817
|
+
me(["Escape"], () => {
|
|
4642
4818
|
t.value && (t.value = !1, n.value = !0);
|
|
4643
4819
|
});
|
|
4644
|
-
function
|
|
4820
|
+
function r() {
|
|
4645
4821
|
t.value = !0;
|
|
4646
4822
|
}
|
|
4647
4823
|
function u() {
|
|
4648
4824
|
t.value = !1, n.value = !1;
|
|
4649
4825
|
}
|
|
4650
|
-
return (o,
|
|
4826
|
+
return (o, d) => (s(), v("div", {
|
|
4651
4827
|
class: "bs-tooltip",
|
|
4652
4828
|
"data-position": e.position || void 0,
|
|
4653
4829
|
"data-component": "bs-tooltip",
|
|
4654
|
-
onMouseenter:
|
|
4655
|
-
onFocusin:
|
|
4830
|
+
onMouseenter: r,
|
|
4831
|
+
onFocusin: r,
|
|
4656
4832
|
onMouseleave: u,
|
|
4657
4833
|
onFocusout: u
|
|
4658
4834
|
}, [
|
|
4659
|
-
|
|
4660
|
-
e.content ? (
|
|
4835
|
+
x(o.$slots, "default"),
|
|
4836
|
+
e.content ? (s(), v("div", {
|
|
4661
4837
|
key: 0,
|
|
4662
|
-
class:
|
|
4838
|
+
class: le(l.value),
|
|
4663
4839
|
id: e.tooltipId,
|
|
4664
4840
|
role: "tooltip"
|
|
4665
|
-
},
|
|
4666
|
-
], 40,
|
|
4841
|
+
}, C(e.content), 11, Ul)) : S("", !0)
|
|
4842
|
+
], 40, jl));
|
|
4667
4843
|
}
|
|
4668
4844
|
};
|
|
4669
4845
|
export {
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4846
|
+
Ql as BsAccordion,
|
|
4847
|
+
Zt as BsBadge,
|
|
4848
|
+
Jl as BsBanner,
|
|
4849
|
+
aa as BsButton,
|
|
4850
|
+
Zl as BsCalendar,
|
|
4851
|
+
_l as BsChartBar,
|
|
4852
|
+
eo as BsCheckbox,
|
|
4853
|
+
to as BsCircleButton,
|
|
4854
|
+
dt as BsDropdown,
|
|
4855
|
+
on as BsDropdownMultiselect,
|
|
4680
4856
|
Ue as BsDropdownOption,
|
|
4681
|
-
|
|
4682
|
-
|
|
4857
|
+
Ce as BsDropdownOptionBuilder,
|
|
4858
|
+
je as BsDropdownOptionList,
|
|
4683
4859
|
We as BsDropdownWithOptions,
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4860
|
+
ao as BsDropdownWithToggle,
|
|
4861
|
+
Be as BsFieldDetails,
|
|
4862
|
+
un as BsFilterButton,
|
|
4863
|
+
no as BsIconGradientWrapper,
|
|
4864
|
+
Se as BsInput,
|
|
4865
|
+
Ee as BsInputAddon,
|
|
4866
|
+
lo as BsInputField,
|
|
4867
|
+
oo as BsInputPhone,
|
|
4868
|
+
yn as BsInputSearch,
|
|
4869
|
+
io as BsInputTypeahead,
|
|
4870
|
+
oe as BsLabel,
|
|
4871
|
+
Tn as BsLoader,
|
|
4872
|
+
ro as BsModal,
|
|
4873
|
+
Vn as BsOverlay,
|
|
4874
|
+
so as BsPagination,
|
|
4875
|
+
uo as BsPill,
|
|
4876
|
+
co as BsProfile,
|
|
4877
|
+
ll as BsProfileDetails,
|
|
4878
|
+
ut as BsProfileImg,
|
|
4879
|
+
fo as BsProgressBar,
|
|
4880
|
+
vo as BsRadio,
|
|
4881
|
+
ul as BsSelect,
|
|
4882
|
+
po as BsSelectField,
|
|
4883
|
+
ho as BsSpinner,
|
|
4884
|
+
bo as BsSwitch,
|
|
4885
|
+
go as BsTab,
|
|
4886
|
+
mo as BsTabList,
|
|
4887
|
+
yo as BsTabPanel,
|
|
4888
|
+
Vl as BsTextarea,
|
|
4889
|
+
Bo as BsTextareaField,
|
|
4890
|
+
So as BsTimeline,
|
|
4891
|
+
$o as BsToast,
|
|
4892
|
+
wo as BsToastActions,
|
|
4893
|
+
ko as BsToastBody,
|
|
4894
|
+
Io as BsToastHeader,
|
|
4895
|
+
Co as BsToaster,
|
|
4896
|
+
To as BsTooltip,
|
|
4897
|
+
Oe as BsTransition
|
|
4719
4898
|
};
|