@wwtdev/bsds-components-vue3 2.3.4 → 2.3.5
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 +1251 -1211
- package/lib/components.css +1 -1
- package/package.json +20 -4
package/lib/bsds-components.js
CHANGED
|
@@ -1,121 +1,121 @@
|
|
|
1
|
-
import { computed as v, ref as
|
|
2
|
-
import { v4 as
|
|
3
|
-
import { BsIconCaretDown as
|
|
4
|
-
import { DatePicker as
|
|
5
|
-
import { Chart as
|
|
6
|
-
import { getSupportedCallingCodes as
|
|
7
|
-
const
|
|
1
|
+
import { computed as v, ref as m, onMounted as Y, onUnmounted as de, shallowRef as ft, watch as z, defineAsyncComponent as je, openBlock as d, createElementBlock as b, unref as p, createElementVNode as $, renderSlot as D, createBlock as L, resolveDynamicComponent as _, createCommentVNode as k, toDisplayString as x, createVNode as V, normalizeClass as ne, Fragment as G, useAttrs as le, mergeProps as M, withCtx as E, toHandlers as ze, onBeforeUnmount as at, onBeforeMount as nt, nextTick as pe, createTextVNode as H, renderList as J, withDirectives as Se, Transition as Ye, vShow as we, useSlots as lt, provide as ue, Teleport as pt, h as se, inject as ce, createSlots as vt, isRef as ht } from "vue";
|
|
2
|
+
import { v4 as ot } from "uuid";
|
|
3
|
+
import { BsIconCaretDown as it, BsIconWarning as Ne, BsIconClose as ke, BsIconCalendar as rt, BsIconCaretSort as bt, BsIconSearch as mt, BsIconCaretLeftDouble as gt, BsIconCaretLeft as yt, BsIconCaretRight as Bt, BsIconCaretRightDouble as $t, BsIconActionEllipsis as St, BsIconCircleExclamation as wt, BsIconThumbsUpStroke as kt } from "@wwtdev/bsds-icons-vue3";
|
|
4
|
+
import { DatePicker as It } from "v-calendar";
|
|
5
|
+
import { Chart as Pe, BarController as Ct, BarElement as Tt, CategoryScale as xt, LinearScale as At, Legend as Lt, Tooltip as Vt } from "chart.js";
|
|
6
|
+
import { getSupportedCallingCodes as Et, getRegionCodeForCountryCode as Dt, parsePhoneNumber as Qe } from "awesome-phonenumber";
|
|
7
|
+
const Xe = {
|
|
8
8
|
href: "a",
|
|
9
9
|
linkTo: "a",
|
|
10
10
|
onclick: "button",
|
|
11
11
|
onClick: "button",
|
|
12
12
|
type: "button"
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
const n =
|
|
14
|
+
function Ie(e, a, t = "button") {
|
|
15
|
+
const n = Ot(e, a, t), l = v(() => {
|
|
16
16
|
const o = n.value === "button", s = {};
|
|
17
17
|
return o ? (s.type = a.type || "button", s.autocomplete = "off", e.disabled && (s.disabled = !0)) : e.disabled && (s["aria-disabled"] = "true", s.tabindex = "-1"), s;
|
|
18
|
-
}),
|
|
18
|
+
}), i = v(() => {
|
|
19
19
|
const o = { ...a, ...l.value };
|
|
20
20
|
return delete o.href, o;
|
|
21
21
|
}), u = v(() => e.linkTo || e.href);
|
|
22
|
-
return { rootTag: n, attrsToBind:
|
|
23
|
-
}
|
|
24
|
-
function Dt(e, a, t) {
|
|
25
|
-
const n = Object.keys(Qe).find((l) => Ot(e, a, l));
|
|
26
|
-
return g(Qe[n] || t);
|
|
22
|
+
return { rootTag: n, attrsToBind: i, hrefUrl: u };
|
|
27
23
|
}
|
|
28
24
|
function Ot(e, a, t) {
|
|
25
|
+
const n = Object.keys(Xe).find((l) => qt(e, a, l));
|
|
26
|
+
return m(Xe[n] || t);
|
|
27
|
+
}
|
|
28
|
+
function qt(e, a, t) {
|
|
29
29
|
return e[t] || a[t];
|
|
30
30
|
}
|
|
31
|
-
const
|
|
31
|
+
const Pt = (e, a) => {
|
|
32
32
|
const t = (n) => {
|
|
33
33
|
e.some((l) => {
|
|
34
|
-
var
|
|
35
|
-
return (
|
|
34
|
+
var i;
|
|
35
|
+
return (i = l.value) == null ? void 0 : i.contains(n.target);
|
|
36
36
|
}) || a(n);
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
Y(() => {
|
|
39
39
|
document.addEventListener("click", t);
|
|
40
|
-
}),
|
|
40
|
+
}), de(() => {
|
|
41
41
|
document.removeEventListener("click", t);
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
-
function
|
|
44
|
+
function Ce(e) {
|
|
45
45
|
const a = v(() => e.linkTo || e.href || ""), t = v(() => {
|
|
46
|
-
var
|
|
47
|
-
return ((u = (
|
|
46
|
+
var i, u;
|
|
47
|
+
return ((u = (i = a.value) == null ? void 0 : i.startsWith) == null ? void 0 : u.call(i, "/")) || !1;
|
|
48
48
|
}), n = v(() => {
|
|
49
|
-
var
|
|
50
|
-
return t.value && ((
|
|
49
|
+
var i, u;
|
|
50
|
+
return t.value && ((i = e.router) == null ? void 0 : i.navigateTo) || ((u = e.router) == null ? void 0 : u.push) || null;
|
|
51
51
|
});
|
|
52
|
-
function l(
|
|
52
|
+
function l(i) {
|
|
53
53
|
if (e.disabled) {
|
|
54
|
-
|
|
54
|
+
i.preventDefault(), i.stopImmediatePropagation();
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
57
|
if (!a.value || !n.value)
|
|
58
58
|
return;
|
|
59
|
-
|
|
59
|
+
i.target.closest("a").href === `${window.location.origin}${a.value}` && (i.preventDefault(), n.value(a.value));
|
|
60
60
|
}
|
|
61
61
|
return { onLinkClick: l };
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Ze(e) {
|
|
64
64
|
return e.split("-").map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join("");
|
|
65
65
|
}
|
|
66
66
|
const ye = (e, a) => {
|
|
67
67
|
function t(l) {
|
|
68
68
|
if (!l)
|
|
69
69
|
return null;
|
|
70
|
-
const
|
|
71
|
-
return
|
|
72
|
-
const { [
|
|
70
|
+
const i = l.startsWith("bs-") ? Ze(l) : `BsIcon${Ze(l)}`;
|
|
71
|
+
return je(async () => {
|
|
72
|
+
const { [i]: 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 = ft();
|
|
77
|
+
return n.value = t(e[a]), z(() => 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(m(""));
|
|
83
|
+
return Y(() => {
|
|
84
|
+
a.forEach((t) => t.value = `id-${ot()}`);
|
|
85
85
|
}), a;
|
|
86
86
|
}
|
|
87
|
-
const
|
|
87
|
+
const Te = (e, a, t = void 0) => {
|
|
88
88
|
const n = (l) => {
|
|
89
89
|
e.includes(l.key) && a(l);
|
|
90
90
|
};
|
|
91
|
-
|
|
91
|
+
Y(() => {
|
|
92
92
|
((t == null ? void 0 : t.value) ?? document).addEventListener("keydown", n);
|
|
93
|
-
}),
|
|
93
|
+
}), de(() => {
|
|
94
94
|
((t == null ? void 0 : t.value) ?? document).removeEventListener("keydown", n);
|
|
95
95
|
});
|
|
96
|
-
},
|
|
96
|
+
}, Mt = (e, a, t) => {
|
|
97
97
|
let n = null;
|
|
98
|
-
|
|
98
|
+
Y(() => {
|
|
99
99
|
n = new MutationObserver(a), n.observe(e.value, t);
|
|
100
|
-
}),
|
|
100
|
+
}), de(() => {
|
|
101
101
|
n.disconnect();
|
|
102
102
|
});
|
|
103
103
|
}, ve = (e) => {
|
|
104
|
-
const a =
|
|
105
|
-
return
|
|
104
|
+
const a = m(!1);
|
|
105
|
+
return Y(() => {
|
|
106
106
|
e.enterControlled ? a.value = e.enterTrigger : a.value = e.shown;
|
|
107
|
-
}),
|
|
107
|
+
}), z(() => e.shown, (t) => {
|
|
108
108
|
a.value = t;
|
|
109
|
-
}),
|
|
109
|
+
}), z(() => e.enterTrigger, (t) => {
|
|
110
110
|
a.value = t;
|
|
111
|
-
}),
|
|
111
|
+
}), z(() => e.leaveTrigger, (t) => {
|
|
112
112
|
t && (a.value = !1);
|
|
113
113
|
}), { transition: a };
|
|
114
|
-
},
|
|
114
|
+
}, zt = ["id", "data-stacked"], Nt = ["data-open"], Rt = ["aria-controls", "aria-expanded"], jt = {
|
|
115
115
|
key: 0,
|
|
116
116
|
"data-position": "start",
|
|
117
117
|
style: { display: "inline-flex" }
|
|
118
|
-
},
|
|
118
|
+
}, Ft = ["id"], Ut = ["aria-labelledby", "data-open", "id"], Al = {
|
|
119
119
|
__name: "BsAccordion",
|
|
120
120
|
props: {
|
|
121
121
|
controlled: { type: Boolean, default: !1 },
|
|
@@ -132,11 +132,11 @@ const Ce = (e, a, t = void 0) => {
|
|
|
132
132
|
},
|
|
133
133
|
emits: ["toggled"],
|
|
134
134
|
setup(e, { emit: a }) {
|
|
135
|
-
const t = e, n = a, l =
|
|
136
|
-
function
|
|
137
|
-
n("toggled", o.value), t.controlled || (
|
|
135
|
+
const t = e, n = a, l = m(null), i = m(!1), { icon: u } = ye(t, "icon"), [o] = Z(), s = v(() => o.value + "-content"), r = v(() => o.value + "-title"), c = v(() => t.openItemId && t.openItemId === o.value || t.openItem === !0), f = v(() => t.controlled ? c.value : i.value);
|
|
136
|
+
function T() {
|
|
137
|
+
n("toggled", o.value), t.controlled || (i.value = !i.value);
|
|
138
138
|
}
|
|
139
|
-
return (
|
|
139
|
+
return (y, S) => (d(), b("div", {
|
|
140
140
|
id: p(o),
|
|
141
141
|
ref_key: "containerRef",
|
|
142
142
|
ref: l,
|
|
@@ -144,43 +144,43 @@ const Ce = (e, a, t = void 0) => {
|
|
|
144
144
|
"data-component": "bs-accordion",
|
|
145
145
|
"data-stacked": e.stacked
|
|
146
146
|
}, [
|
|
147
|
-
|
|
147
|
+
$("header", {
|
|
148
148
|
part: "header",
|
|
149
149
|
"data-open": f.value
|
|
150
150
|
}, [
|
|
151
|
-
|
|
151
|
+
$("button", {
|
|
152
152
|
"aria-controls": s.value,
|
|
153
153
|
"aria-expanded": f.value,
|
|
154
154
|
type: "button",
|
|
155
|
-
onClick:
|
|
155
|
+
onClick: T
|
|
156
156
|
}, [
|
|
157
|
-
e.icon ||
|
|
158
|
-
|
|
159
|
-
e.icon ? (d(),
|
|
157
|
+
e.icon || y.$slots.icon ? (d(), b("span", jt, [
|
|
158
|
+
D(y.$slots, "icon", {}, () => [
|
|
159
|
+
e.icon ? (d(), L(_(p(u) ? p(u) : "span"), { key: 0 })) : k("", !0)
|
|
160
160
|
])
|
|
161
|
-
])) :
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
])) : k("", !0),
|
|
162
|
+
$("span", { id: r.value }, x(e.headerText), 9, Ft),
|
|
163
|
+
V(p(it), {
|
|
164
164
|
size: "md",
|
|
165
165
|
"data-position": "end"
|
|
166
166
|
})
|
|
167
|
-
], 8,
|
|
168
|
-
], 8,
|
|
169
|
-
|
|
170
|
-
"aria-labelledby":
|
|
167
|
+
], 8, Rt)
|
|
168
|
+
], 8, Nt),
|
|
169
|
+
$("div", {
|
|
170
|
+
"aria-labelledby": r.value,
|
|
171
171
|
class: "bs-accordion-content",
|
|
172
172
|
"data-open": f.value,
|
|
173
173
|
id: s.value,
|
|
174
174
|
part: "content",
|
|
175
175
|
role: "region"
|
|
176
176
|
}, [
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
$("div", null, [
|
|
178
|
+
D(y.$slots, "default")
|
|
179
179
|
])
|
|
180
|
-
], 8,
|
|
181
|
-
], 8,
|
|
180
|
+
], 8, Ut)
|
|
181
|
+
], 8, zt));
|
|
182
182
|
}
|
|
183
|
-
},
|
|
183
|
+
}, Wt = ["aria-label", "data-badge-color", "data-count", "data-position", "data-show-zero", "data-variant"], Gt = {
|
|
184
184
|
__name: "BsBadge",
|
|
185
185
|
props: {
|
|
186
186
|
/** Pass value to set `data-badge-color`. */
|
|
@@ -227,19 +227,19 @@ const Ce = (e, a, t = void 0) => {
|
|
|
227
227
|
}
|
|
228
228
|
},
|
|
229
229
|
setup(e) {
|
|
230
|
-
const a = e, t =
|
|
231
|
-
var s,
|
|
232
|
-
const
|
|
230
|
+
const a = e, t = m(null), n = v(() => a.count === 0 ? "0" : !a.count || a.dot ? null : a.count > a.countMax ? a.countMax + "+" : a.count.toString()), l = v(() => {
|
|
231
|
+
var s, r;
|
|
232
|
+
const i = ((r = (s = t.value) == null ? void 0 : s.textContent) == null ? void 0 : r.trim()) || "", u = n.value ? n.value + " " : "";
|
|
233
233
|
if (!u && !a.dot)
|
|
234
|
-
return
|
|
234
|
+
return i;
|
|
235
235
|
const o = a.count !== 1 ? "s" : "";
|
|
236
|
-
return `${
|
|
236
|
+
return `${i ? `${i}, ` : ""}${u}${a.label}${o}`;
|
|
237
237
|
});
|
|
238
|
-
return (
|
|
238
|
+
return (i, u) => (d(), b("span", {
|
|
239
239
|
ref_key: "hostRef",
|
|
240
240
|
ref: t,
|
|
241
241
|
"aria-label": l.value,
|
|
242
|
-
class:
|
|
242
|
+
class: ne({ "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,43 @@ const Ce = (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" ? D(i.$slots, "default", { key: 0 }) : k("", !0)
|
|
252
|
+
], 10, Wt));
|
|
253
253
|
}
|
|
254
|
-
},
|
|
254
|
+
}, Ht = {
|
|
255
255
|
key: 0,
|
|
256
256
|
role: "alert",
|
|
257
257
|
class: "bs-banner"
|
|
258
|
-
},
|
|
258
|
+
}, Kt = { class: "bs-banner-content" }, Yt = { class: "bs-banner-warning-icon" }, Ll = {
|
|
259
259
|
__name: "BsBanner",
|
|
260
260
|
emits: ["dismiss"],
|
|
261
261
|
setup(e, { emit: a }) {
|
|
262
|
-
const t = a, n =
|
|
262
|
+
const t = a, n = m(!1);
|
|
263
263
|
function l() {
|
|
264
264
|
n.value = !0, t("dismiss");
|
|
265
265
|
}
|
|
266
|
-
return (
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
266
|
+
return (i, u) => n.value ? k("", !0) : (d(), b("div", Ht, [
|
|
267
|
+
$("div", Kt, [
|
|
268
|
+
$("div", Yt, [
|
|
269
|
+
V(p(Ne), { size: "lg" })
|
|
270
270
|
]),
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
$("p", null, [
|
|
272
|
+
D(i.$slots, "default")
|
|
273
273
|
]),
|
|
274
|
-
|
|
274
|
+
$("button", {
|
|
275
275
|
type: "button",
|
|
276
276
|
title: "Close Banner",
|
|
277
277
|
onClick: l
|
|
278
278
|
}, [
|
|
279
|
-
|
|
279
|
+
V(p(ke))
|
|
280
280
|
])
|
|
281
281
|
])
|
|
282
282
|
]));
|
|
283
283
|
}
|
|
284
|
-
},
|
|
284
|
+
}, Qt = {
|
|
285
285
|
class: "bs-field-details",
|
|
286
286
|
"data-component": "bs-field-details"
|
|
287
|
-
},
|
|
287
|
+
}, Xt = ["id", "data-error"], Zt = ["data-error"], he = {
|
|
288
288
|
__name: "BsFieldDetails",
|
|
289
289
|
props: {
|
|
290
290
|
/** The number of characters that have been entered by the user. */
|
|
@@ -305,25 +305,25 @@ const Ce = (e, a, t = void 0) => {
|
|
|
305
305
|
},
|
|
306
306
|
setup(e) {
|
|
307
307
|
const a = e, t = v(() => a.error && a.errorMsg || a.hint);
|
|
308
|
-
return (n, l) => (d(), b("div",
|
|
308
|
+
return (n, l) => (d(), b("div", Qt, [
|
|
309
309
|
t.value ? (d(), b("span", {
|
|
310
310
|
key: 0,
|
|
311
311
|
id: e.hintId,
|
|
312
312
|
class: "bs-hint",
|
|
313
313
|
"data-error": e.error
|
|
314
|
-
},
|
|
314
|
+
}, x(t.value), 9, Xt)) : k("", !0),
|
|
315
315
|
e.charMax ? (d(), b("span", {
|
|
316
316
|
key: 1,
|
|
317
317
|
"aria-description": "character count over character limit for the preceding text field",
|
|
318
318
|
class: "bs-character-count",
|
|
319
319
|
"data-error": a.charCount > a.charMax
|
|
320
|
-
},
|
|
320
|
+
}, x(a.charCount || "0") + " / " + x(a.charMax), 9, Zt)) : k("", !0)
|
|
321
321
|
]));
|
|
322
322
|
}
|
|
323
|
-
},
|
|
323
|
+
}, Jt = ["data-disabled", "for"], _t = /* @__PURE__ */ $("span", {
|
|
324
324
|
"data-required": "true",
|
|
325
325
|
"aria-hidden": "true"
|
|
326
|
-
}, " *", -1),
|
|
326
|
+
}, " *", -1), ea = /* @__PURE__ */ $("span", { class: "visually-hidden" }, "required", -1), oe = {
|
|
327
327
|
__name: "BsLabel",
|
|
328
328
|
props: {
|
|
329
329
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -333,21 +333,21 @@ const Ce = (e, a, t = void 0) => {
|
|
|
333
333
|
},
|
|
334
334
|
setup(e) {
|
|
335
335
|
return (a, t) => (d(), b("label", {
|
|
336
|
-
class:
|
|
336
|
+
class: ne(["bs-label", e.hide ? "visually-hidden" : ""]),
|
|
337
337
|
"data-component": "bs-label",
|
|
338
338
|
"data-disabled": e.disabled,
|
|
339
339
|
for: e.for
|
|
340
340
|
}, [
|
|
341
|
-
|
|
342
|
-
|
|
341
|
+
$("span", null, [
|
|
342
|
+
D(a.$slots, "default")
|
|
343
343
|
]),
|
|
344
344
|
e.required ? (d(), b(G, { key: 0 }, [
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
], 64)) :
|
|
348
|
-
], 10,
|
|
345
|
+
_t,
|
|
346
|
+
ea
|
|
347
|
+
], 64)) : k("", !0)
|
|
348
|
+
], 10, Jt));
|
|
349
349
|
}
|
|
350
|
-
},
|
|
350
|
+
}, ta = ["data-error", "id", "value"], be = {
|
|
351
351
|
__name: "BsInput",
|
|
352
352
|
props: {
|
|
353
353
|
error: {
|
|
@@ -362,21 +362,21 @@ const Ce = (e, a, t = void 0) => {
|
|
|
362
362
|
},
|
|
363
363
|
emits: ["update:modelValue"],
|
|
364
364
|
setup(e, { emit: a }) {
|
|
365
|
-
const t = e, n = a, l =
|
|
365
|
+
const t = e, n = a, l = le(), i = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
366
366
|
function u(o) {
|
|
367
367
|
const s = l.type === "number" ? parseInt(o.target.value) : o.target.value;
|
|
368
368
|
n("update:modelValue", s);
|
|
369
369
|
}
|
|
370
|
-
return (o, s) => (d(), b("input",
|
|
370
|
+
return (o, s) => (d(), b("input", M({
|
|
371
371
|
class: "bs-input",
|
|
372
372
|
"data-component": "bs-input",
|
|
373
373
|
"data-error": e.error,
|
|
374
374
|
id: o.$attrs.id || e.inputId,
|
|
375
375
|
value: e.value || e.modelValue,
|
|
376
376
|
onInput: u
|
|
377
|
-
},
|
|
377
|
+
}, i.value), null, 16, ta));
|
|
378
378
|
}
|
|
379
|
-
},
|
|
379
|
+
}, aa = ["data-disabled", "data-error", "data-variant", "data-multifocus"], xe = {
|
|
380
380
|
__name: "BsInputAddon",
|
|
381
381
|
props: {
|
|
382
382
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -393,10 +393,10 @@ const Ce = (e, a, t = void 0) => {
|
|
|
393
393
|
"data-variant": e.variant,
|
|
394
394
|
"data-multifocus": e.multifocus
|
|
395
395
|
}, [
|
|
396
|
-
|
|
397
|
-
], 8,
|
|
396
|
+
D(a.$slots, "default")
|
|
397
|
+
], 8, aa));
|
|
398
398
|
}
|
|
399
|
-
},
|
|
399
|
+
}, na = {
|
|
400
400
|
__name: "BsInputDateSingle",
|
|
401
401
|
props: {
|
|
402
402
|
disabled: {
|
|
@@ -429,35 +429,35 @@ const Ce = (e, a, t = void 0) => {
|
|
|
429
429
|
}
|
|
430
430
|
},
|
|
431
431
|
setup(e) {
|
|
432
|
-
return (a, t) => (d(),
|
|
432
|
+
return (a, t) => (d(), L(xe, {
|
|
433
433
|
disabled: e.disabled,
|
|
434
434
|
error: e.error
|
|
435
435
|
}, {
|
|
436
|
-
default:
|
|
437
|
-
|
|
438
|
-
|
|
436
|
+
default: E(() => [
|
|
437
|
+
V(p(rt)),
|
|
438
|
+
V(be, M({
|
|
439
439
|
"data-autowidth": "",
|
|
440
440
|
disabled: e.disabled,
|
|
441
441
|
id: e.inputId,
|
|
442
442
|
"model-value": e.modelValue,
|
|
443
443
|
placeholder: e.placeholder,
|
|
444
444
|
required: e.required
|
|
445
|
-
},
|
|
445
|
+
}, ze(e.listeners)), null, 16, ["disabled", "id", "model-value", "placeholder", "required"])
|
|
446
446
|
]),
|
|
447
447
|
_: 1
|
|
448
448
|
}, 8, ["disabled", "error"]));
|
|
449
449
|
}
|
|
450
450
|
};
|
|
451
|
-
function
|
|
451
|
+
function Re(e, a, t) {
|
|
452
452
|
let n;
|
|
453
453
|
return function() {
|
|
454
|
-
let l = this,
|
|
455
|
-
clearTimeout(n), t && !n && e.apply(l,
|
|
456
|
-
n = null, t || e.apply(l,
|
|
454
|
+
let l = this, i = arguments;
|
|
455
|
+
clearTimeout(n), t && !n && e.apply(l, i), n = setTimeout(function() {
|
|
456
|
+
n = null, t || e.apply(l, i);
|
|
457
457
|
}, a);
|
|
458
458
|
};
|
|
459
459
|
}
|
|
460
|
-
const
|
|
460
|
+
const la = ["disabled", "id", "model-value"], oa = ["disabled", "id", "model-value"], ia = {
|
|
461
461
|
__name: "BsInputDateRange",
|
|
462
462
|
props: {
|
|
463
463
|
disabled: {
|
|
@@ -494,92 +494,92 @@ const na = ["disabled", "id", "model-value"], la = ["disabled", "id", "model-val
|
|
|
494
494
|
},
|
|
495
495
|
emits: ["ui-focusin", "ui-input"],
|
|
496
496
|
setup(e, { emit: a }) {
|
|
497
|
-
const t = a, n =
|
|
498
|
-
function r
|
|
497
|
+
const t = a, n = m(null), l = m(null);
|
|
498
|
+
function i(r) {
|
|
499
499
|
const c = new Event("change", { bubbles: !0, cancelable: !0 });
|
|
500
|
-
|
|
500
|
+
r.dispatchEvent(c);
|
|
501
501
|
}
|
|
502
|
-
function u(
|
|
503
|
-
const { value: c } =
|
|
504
|
-
n.value.value = f || "", l.value.value =
|
|
502
|
+
function u(r) {
|
|
503
|
+
const { value: c } = r.target, [f, T] = c.split(/ to | - /);
|
|
504
|
+
n.value.value = f || "", l.value.value = T || "", i(n.value), i(l.value);
|
|
505
505
|
}
|
|
506
|
-
const o =
|
|
507
|
-
function s(
|
|
508
|
-
t("ui-input"), o(
|
|
506
|
+
const o = Re(u, 1e3);
|
|
507
|
+
function s(r) {
|
|
508
|
+
t("ui-input"), o(r);
|
|
509
509
|
}
|
|
510
|
-
return (
|
|
510
|
+
return (r, c) => (d(), L(xe, {
|
|
511
511
|
disabled: e.disabled,
|
|
512
512
|
error: e.error
|
|
513
513
|
}, {
|
|
514
|
-
default:
|
|
515
|
-
|
|
516
|
-
|
|
514
|
+
default: E(() => [
|
|
515
|
+
V(p(rt)),
|
|
516
|
+
V(be, {
|
|
517
517
|
"data-autowidth": "",
|
|
518
518
|
disabled: e.disabled,
|
|
519
519
|
id: e.inputId,
|
|
520
520
|
"model-value": e.inputValueFmt,
|
|
521
521
|
placeholder: e.placeholder,
|
|
522
522
|
required: e.required,
|
|
523
|
-
onFocusin: c[0] || (c[0] = (f) =>
|
|
523
|
+
onFocusin: c[0] || (c[0] = (f) => r.$emit("ui-focusin")),
|
|
524
524
|
onInput: s,
|
|
525
525
|
onChange: u
|
|
526
526
|
}, null, 8, ["disabled", "id", "model-value", "placeholder", "required"]),
|
|
527
|
-
|
|
527
|
+
$("input", M({
|
|
528
528
|
ref_key: "hiddenStart",
|
|
529
529
|
ref: n,
|
|
530
530
|
type: "hidden",
|
|
531
531
|
disabled: e.disabled,
|
|
532
532
|
id: `${e.inputId}-start`,
|
|
533
533
|
"model-value": e.inputValue.start
|
|
534
|
-
},
|
|
535
|
-
|
|
534
|
+
}, ze(e.listeners.start, !0)), null, 16, la),
|
|
535
|
+
$("input", M({
|
|
536
536
|
ref_key: "hiddenEnd",
|
|
537
537
|
ref: l,
|
|
538
538
|
type: "hidden",
|
|
539
539
|
disabled: e.disabled,
|
|
540
540
|
id: `${e.inputId}-end`,
|
|
541
541
|
"model-value": e.inputValue.end
|
|
542
|
-
},
|
|
542
|
+
}, ze(e.listeners.end, !0)), null, 16, oa)
|
|
543
543
|
]),
|
|
544
544
|
_: 1
|
|
545
545
|
}, 8, ["disabled", "error"]));
|
|
546
546
|
}
|
|
547
547
|
};
|
|
548
|
-
function
|
|
548
|
+
function ra(e) {
|
|
549
549
|
var a, t;
|
|
550
550
|
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
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function sa(e) {
|
|
553
553
|
return e === " " || e === "Spacebar" || e === "Enter";
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
|
|
555
|
+
function Je(e) {
|
|
556
|
+
ra(e == null ? void 0 : e.target) && sa(e == null ? void 0 : e.key) && e.preventDefault();
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function da(e) {
|
|
559
559
|
let a;
|
|
560
|
-
|
|
560
|
+
Y(() => {
|
|
561
561
|
var t, n, l;
|
|
562
|
-
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",
|
|
563
|
-
}),
|
|
562
|
+
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", Je);
|
|
563
|
+
}), at(() => {
|
|
564
564
|
var t, n;
|
|
565
|
-
(n = (t = a == null ? void 0 : a.$el) == null ? void 0 : t.removeEventListener) == null || n.call(t, "keydown",
|
|
565
|
+
(n = (t = a == null ? void 0 : a.$el) == null ? void 0 : t.removeEventListener) == null || n.call(t, "keydown", Je), a = null;
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function _e(e, a, t = []) {
|
|
569
569
|
let n;
|
|
570
|
-
|
|
570
|
+
nt(() => {
|
|
571
571
|
n = window.matchMedia(e), n.addEventListener("change", a), a(n);
|
|
572
|
-
}),
|
|
572
|
+
}), at(() => {
|
|
573
573
|
n.removeEventListener("change", a), n = null;
|
|
574
|
-
}), t.length &&
|
|
574
|
+
}), t.length && z(t, () => a(n));
|
|
575
575
|
}
|
|
576
|
-
const
|
|
576
|
+
const Fe = [
|
|
577
577
|
"aria-describedby",
|
|
578
578
|
"aria-label",
|
|
579
579
|
"form",
|
|
580
580
|
"id",
|
|
581
581
|
"name"
|
|
582
|
-
],
|
|
582
|
+
], ua = [
|
|
583
583
|
"aria-describedby",
|
|
584
584
|
"aria-label",
|
|
585
585
|
"autocomplete",
|
|
@@ -589,7 +589,7 @@ const je = [
|
|
|
589
589
|
"multiple",
|
|
590
590
|
"name",
|
|
591
591
|
"size"
|
|
592
|
-
],
|
|
592
|
+
], ca = [
|
|
593
593
|
"aria-describedby",
|
|
594
594
|
"aria-label",
|
|
595
595
|
"autocapitalize",
|
|
@@ -607,7 +607,7 @@ const je = [
|
|
|
607
607
|
"rows",
|
|
608
608
|
"spellcheck",
|
|
609
609
|
"wrap"
|
|
610
|
-
],
|
|
610
|
+
], Be = [
|
|
611
611
|
"aria-describedby",
|
|
612
612
|
"aria-label",
|
|
613
613
|
"autocapitalize",
|
|
@@ -628,13 +628,13 @@ const je = [
|
|
|
628
628
|
"size",
|
|
629
629
|
"step"
|
|
630
630
|
];
|
|
631
|
-
function
|
|
631
|
+
function K(e, a = []) {
|
|
632
632
|
const t = {}, n = {};
|
|
633
633
|
return Object.keys(e).forEach((l) => {
|
|
634
634
|
a.includes(l) ? t[l] = e[l] : n[l] = e[l];
|
|
635
635
|
}), { filtered: t, remaining: n };
|
|
636
636
|
}
|
|
637
|
-
const
|
|
637
|
+
const fa = ["data-range"], et = "(min-width: 752px)", Vl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
638
638
|
__name: "BsCalendar",
|
|
639
639
|
props: {
|
|
640
640
|
disabled: {
|
|
@@ -697,7 +697,7 @@ const ca = ["data-range"], _e = "(min-width: 752px)", Vl = /* @__PURE__ */ Objec
|
|
|
697
697
|
},
|
|
698
698
|
emits: ["update:modelValue"],
|
|
699
699
|
setup(e, { emit: a }) {
|
|
700
|
-
const t = e, n =
|
|
700
|
+
const t = e, n = m(null), l = m(1), i = m(null), [u, o] = Z(2), s = m(1), { filtered: r, remaining: c } = K(le(), [
|
|
701
701
|
"attributes",
|
|
702
702
|
"expanded",
|
|
703
703
|
"first-day-of-week",
|
|
@@ -705,52 +705,52 @@ const ca = ["data-range"], _e = "(min-width: 752px)", Vl = /* @__PURE__ */ Objec
|
|
|
705
705
|
"masks",
|
|
706
706
|
"rows",
|
|
707
707
|
"trim-weeks"
|
|
708
|
-
]), f = v(() => t.inputId || u.value),
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
(h) => l.value = h != null && h.matches &&
|
|
712
|
-
[
|
|
713
|
-
),
|
|
714
|
-
|
|
715
|
-
(h) => s.value = h != null && h.matches &&
|
|
716
|
-
[
|
|
717
|
-
),
|
|
708
|
+
]), f = v(() => t.inputId || u.value), T = v(() => ({ range: t.isRange })), y = v(() => !!(t.error && t.errorMsg || t.hint)), S = v(() => t.step), w = v(() => t.variant);
|
|
709
|
+
da(n), _e(
|
|
710
|
+
et,
|
|
711
|
+
(h) => l.value = h != null && h.matches && w.value == "2-col" ? 2 : 1,
|
|
712
|
+
[w]
|
|
713
|
+
), _e(
|
|
714
|
+
et,
|
|
715
|
+
(h) => s.value = h != null && h.matches && w.value == "2-col" ? S.value : 1,
|
|
716
|
+
[S, w]
|
|
717
|
+
), z(() => {
|
|
718
718
|
var h, C;
|
|
719
719
|
return (C = (h = n.value) == null ? void 0 : h.popoverRef) == null ? void 0 : C.isVisible;
|
|
720
720
|
}, (h) => {
|
|
721
|
-
h &&
|
|
721
|
+
h && pe(B);
|
|
722
722
|
});
|
|
723
|
-
function
|
|
723
|
+
function I(h) {
|
|
724
724
|
return t.isRange && h.start && h.end ? `${h.start} to ${h.end}` : !t.isRange && h ? h : "";
|
|
725
725
|
}
|
|
726
726
|
function q(h) {
|
|
727
|
-
!t.isRange ||
|
|
727
|
+
!t.isRange || i.value.contains(h.relatedTarget) || n.value.hidePopover();
|
|
728
728
|
}
|
|
729
|
-
function
|
|
730
|
-
const h =
|
|
729
|
+
function B() {
|
|
730
|
+
const h = i.value.querySelector("button.vc-prev"), C = i.value.querySelector("button.vc-next");
|
|
731
731
|
h && h.setAttribute("aria-label", "Previous month"), C && C.setAttribute("aria-label", "Next month");
|
|
732
732
|
}
|
|
733
|
-
return (h, C) => (d(), b("div",
|
|
733
|
+
return (h, C) => (d(), b("div", M({
|
|
734
734
|
ref_key: "container",
|
|
735
|
-
ref:
|
|
735
|
+
ref: i,
|
|
736
736
|
class: "bs-calendar",
|
|
737
737
|
"data-range": e.isRange,
|
|
738
738
|
onFocusout: q
|
|
739
739
|
}, p(c)), [
|
|
740
|
-
e.label || h.$slots.label ? (d(),
|
|
740
|
+
e.label || h.$slots.label ? (d(), L(oe, {
|
|
741
741
|
key: 0,
|
|
742
742
|
for: f.value,
|
|
743
743
|
disabled: e.disabled,
|
|
744
744
|
required: e.required
|
|
745
745
|
}, {
|
|
746
|
-
default:
|
|
747
|
-
|
|
748
|
-
|
|
746
|
+
default: E(() => [
|
|
747
|
+
D(h.$slots, "label", {}, () => [
|
|
748
|
+
H(x(e.label), 1)
|
|
749
749
|
])
|
|
750
750
|
]),
|
|
751
751
|
_: 3
|
|
752
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
753
|
-
|
|
752
|
+
}, 8, ["for", "disabled", "required"])) : k("", !0),
|
|
753
|
+
V(p(It), M({
|
|
754
754
|
ref_key: "calendar",
|
|
755
755
|
ref: n,
|
|
756
756
|
columns: l.value,
|
|
@@ -759,50 +759,50 @@ const ca = ["data-range"], _e = "(min-width: 752px)", Vl = /* @__PURE__ */ Objec
|
|
|
759
759
|
"min-date": e.minDate,
|
|
760
760
|
mode: "date",
|
|
761
761
|
"model-value": e.modelValue,
|
|
762
|
-
"model-modifiers":
|
|
762
|
+
"model-modifiers": T.value,
|
|
763
763
|
popover: { visibility: "focus" },
|
|
764
764
|
rows: 1,
|
|
765
765
|
step: s.value,
|
|
766
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
767
|
-
}, p(
|
|
768
|
-
default:
|
|
769
|
-
e.isRange ? (d(),
|
|
766
|
+
"onUpdate:modelValue": C[0] || (C[0] = (O) => h.$emit("update:modelValue", O))
|
|
767
|
+
}, p(r)), {
|
|
768
|
+
default: E(({ inputValue: O, inputEvents: j, showPopover: R }) => [
|
|
769
|
+
e.isRange ? (d(), L(ia, {
|
|
770
770
|
key: 1,
|
|
771
771
|
disabled: e.disabled,
|
|
772
772
|
error: e.error,
|
|
773
773
|
"hidden-end-ref": h.inputEnd,
|
|
774
774
|
"hidden-start-ref": h.inputStart,
|
|
775
775
|
"input-id": f.value,
|
|
776
|
-
"input-value":
|
|
777
|
-
"input-value-fmt":
|
|
778
|
-
listeners:
|
|
776
|
+
"input-value": O,
|
|
777
|
+
"input-value-fmt": I(O),
|
|
778
|
+
listeners: j,
|
|
779
779
|
placeholder: e.placeholder,
|
|
780
780
|
required: e.required,
|
|
781
|
-
onUiFocusin:
|
|
782
|
-
onUiInput:
|
|
783
|
-
}, null, 8, ["disabled", "error", "hidden-end-ref", "hidden-start-ref", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (d(),
|
|
781
|
+
onUiFocusin: R,
|
|
782
|
+
onUiInput: R
|
|
783
|
+
}, null, 8, ["disabled", "error", "hidden-end-ref", "hidden-start-ref", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (d(), L(na, {
|
|
784
784
|
key: 0,
|
|
785
785
|
disabled: e.disabled,
|
|
786
786
|
error: e.error,
|
|
787
787
|
"input-id": f.value,
|
|
788
|
-
listeners:
|
|
789
|
-
"model-value":
|
|
788
|
+
listeners: j,
|
|
789
|
+
"model-value": I(O),
|
|
790
790
|
placeholder: e.placeholder,
|
|
791
791
|
required: e.required
|
|
792
792
|
}, null, 8, ["disabled", "error", "input-id", "listeners", "model-value", "placeholder", "required"]))
|
|
793
793
|
]),
|
|
794
794
|
_: 1
|
|
795
795
|
}, 16, ["columns", "disabled-dates", "max-date", "min-date", "model-value", "model-modifiers", "step"]),
|
|
796
|
-
|
|
796
|
+
y.value ? (d(), L(he, {
|
|
797
797
|
key: 1,
|
|
798
798
|
error: e.error,
|
|
799
799
|
"error-msg": e.errorMsg,
|
|
800
800
|
hint: e.hint,
|
|
801
801
|
"hint-id": p(o)
|
|
802
|
-
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) :
|
|
803
|
-
], 16,
|
|
802
|
+
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : k("", !0)
|
|
803
|
+
], 16, fa));
|
|
804
804
|
}
|
|
805
|
-
}),
|
|
805
|
+
}), pa = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
806
806
|
__name: "BsButton",
|
|
807
807
|
props: {
|
|
808
808
|
variant: { type: String },
|
|
@@ -816,23 +816,23 @@ const ca = ["data-range"], _e = "(min-width: 752px)", Vl = /* @__PURE__ */ Objec
|
|
|
816
816
|
size: { type: String, validator: (e) => ["sm", "xs", "xxs"].includes(e) }
|
|
817
817
|
},
|
|
818
818
|
setup(e) {
|
|
819
|
-
const a = e, t =
|
|
820
|
-
return (o, s) => (d(),
|
|
819
|
+
const a = e, t = le(), { rootTag: n, attrsToBind: l, hrefUrl: i } = Ie(a, t), { onLinkClick: u } = Ce(a);
|
|
820
|
+
return (o, s) => (d(), L(_(p(n)), M({
|
|
821
821
|
class: "bs-button",
|
|
822
822
|
"data-component": "bs-button",
|
|
823
823
|
"data-ghost": e.ghostBtn,
|
|
824
824
|
"data-size": e.size,
|
|
825
825
|
"data-text": e.textBtn,
|
|
826
826
|
"data-variant": e.variant,
|
|
827
|
-
".href": p(
|
|
827
|
+
".href": p(i)
|
|
828
828
|
}, p(l), { onClick: p(u) }), {
|
|
829
|
-
default:
|
|
830
|
-
|
|
829
|
+
default: E(() => [
|
|
830
|
+
D(o.$slots, "default")
|
|
831
831
|
]),
|
|
832
832
|
_: 3
|
|
833
833
|
}, 48, ["data-ghost", "data-size", "data-text", "data-variant", ".href", "onClick"]));
|
|
834
834
|
}
|
|
835
|
-
}),
|
|
835
|
+
}), va = { "data-component": "bs-chart-table" }, ha = ["summary"], ba = ["colspan"], ma = /* @__PURE__ */ $("th", { scope: "col" }, " Dataset ", -1), ga = { scope: "row" }, ya = {
|
|
836
836
|
__name: "BsChartTable",
|
|
837
837
|
props: {
|
|
838
838
|
data: {
|
|
@@ -851,37 +851,37 @@ const ca = ["data-range"], _e = "(min-width: 752px)", Vl = /* @__PURE__ */ Objec
|
|
|
851
851
|
setup(e) {
|
|
852
852
|
return (a, t) => {
|
|
853
853
|
var n;
|
|
854
|
-
return d(), b("div",
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
854
|
+
return d(), b("div", va, [
|
|
855
|
+
$("table", { summary: e.tableTitle }, [
|
|
856
|
+
$("thead", null, [
|
|
857
|
+
$("tr", null, [
|
|
858
|
+
$("th", {
|
|
859
859
|
colspan: ((n = e.dataIdxLabels) == null ? void 0 : n.length) + 1
|
|
860
|
-
},
|
|
860
|
+
}, x(e.tableTitle), 9, ba)
|
|
861
861
|
]),
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
(d(!0), b(G, null,
|
|
862
|
+
$("tr", null, [
|
|
863
|
+
ma,
|
|
864
|
+
(d(!0), b(G, null, J(e.dataIdxLabels, (l) => (d(), b("th", {
|
|
865
865
|
key: l,
|
|
866
866
|
scope: "col"
|
|
867
|
-
},
|
|
867
|
+
}, x(l), 1))), 128))
|
|
868
868
|
])
|
|
869
869
|
]),
|
|
870
|
-
|
|
871
|
-
(d(!0), b(G, null,
|
|
870
|
+
$("tbody", null, [
|
|
871
|
+
(d(!0), b(G, null, J(e.data, (l) => (d(), b("tr", {
|
|
872
872
|
key: l.label
|
|
873
873
|
}, [
|
|
874
|
-
|
|
875
|
-
(d(!0), b(G, null,
|
|
876
|
-
key: `${
|
|
877
|
-
},
|
|
874
|
+
$("th", ga, x(l.label), 1),
|
|
875
|
+
(d(!0), b(G, null, J(l.data, (i, u) => (d(), b("td", {
|
|
876
|
+
key: `${i}${u}`
|
|
877
|
+
}, x(i), 1))), 128))
|
|
878
878
|
]))), 128))
|
|
879
879
|
])
|
|
880
|
-
], 8,
|
|
880
|
+
], 8, ha)
|
|
881
881
|
]);
|
|
882
882
|
};
|
|
883
883
|
}
|
|
884
|
-
},
|
|
884
|
+
}, Ba = (e) => ({
|
|
885
885
|
id: "htmlLegend",
|
|
886
886
|
afterUpdate(a) {
|
|
887
887
|
e.innerHTML = "", e.style.setProperty("--legend-padding", `${a.scales.x.left}px`), a.options.plugins.legend.labels.generateLabels(a).forEach((n) => {
|
|
@@ -890,13 +890,13 @@ const ca = ["data-range"], _e = "(min-width: 752px)", Vl = /* @__PURE__ */ Objec
|
|
|
890
890
|
const { type: s } = a.config._config;
|
|
891
891
|
s === "pie" || s === "doughnut" ? a.toggleDataVisibility(n.index) : a.setDatasetVisibility(n.datasetIndex, !a.isDatasetVisible(n.datasetIndex)), a.update();
|
|
892
892
|
};
|
|
893
|
-
const
|
|
894
|
-
|
|
893
|
+
const i = document.createElement("span");
|
|
894
|
+
i.style.setProperty("--item-box-fill", n.fillStyle), i.style.setProperty("--item-box-stroke", n.strokeStyle);
|
|
895
895
|
const u = document.createTextNode(n.text), o = document.createElement("p");
|
|
896
|
-
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(
|
|
896
|
+
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(i), l.appendChild(o), e.appendChild(l);
|
|
897
897
|
});
|
|
898
898
|
}
|
|
899
|
-
}),
|
|
899
|
+
}), $a = ({ type: e, datasets: a, labels: t, tooltips: n }) => ({
|
|
900
900
|
type: e,
|
|
901
901
|
data: {
|
|
902
902
|
datasets: a,
|
|
@@ -915,7 +915,7 @@ const ca = ["data-range"], _e = "(min-width: 752px)", Vl = /* @__PURE__ */ Objec
|
|
|
915
915
|
responsive: !0
|
|
916
916
|
}
|
|
917
917
|
});
|
|
918
|
-
function
|
|
918
|
+
function Sa(e) {
|
|
919
919
|
const a = [
|
|
920
920
|
"rgba(209, 26, 111, 1)",
|
|
921
921
|
"rgba(130, 18, 196, 1)",
|
|
@@ -928,10 +928,10 @@ function $a(e) {
|
|
|
928
928
|
], t = a[e % a.length];
|
|
929
929
|
return e >= a.length ? t.replace("1)", "0.5)") : t;
|
|
930
930
|
}
|
|
931
|
-
const
|
|
931
|
+
const wa = {
|
|
932
932
|
class: "bs-chart-bar",
|
|
933
933
|
"data-component": "bs-chart-bar"
|
|
934
|
-
},
|
|
934
|
+
}, ka = ["aria-label"], Ia = ["data-hidden"], El = {
|
|
935
935
|
__name: "BsChartBar",
|
|
936
936
|
props: {
|
|
937
937
|
chartTitle: {
|
|
@@ -985,16 +985,16 @@ const Sa = {
|
|
|
985
985
|
}
|
|
986
986
|
},
|
|
987
987
|
setup(e) {
|
|
988
|
-
const a = e, t =
|
|
988
|
+
const a = e, t = m(null), n = m(null);
|
|
989
989
|
let l;
|
|
990
|
-
const
|
|
990
|
+
const i = v(() => {
|
|
991
991
|
const c = {
|
|
992
992
|
datasets: u.value,
|
|
993
993
|
labels: a.dataIdxLabels,
|
|
994
994
|
type: "bar",
|
|
995
995
|
tooltips: a.showTooltips
|
|
996
|
-
}, f =
|
|
997
|
-
return f.plugins = [
|
|
996
|
+
}, f = $a(c);
|
|
997
|
+
return f.plugins = [Ba(n.value)], f.options.scales = {
|
|
998
998
|
x: {
|
|
999
999
|
grid: {
|
|
1000
1000
|
display: a.showXGrid
|
|
@@ -1018,44 +1018,44 @@ const Sa = {
|
|
|
1018
1018
|
}, f;
|
|
1019
1019
|
}), u = v(() => a.data.map((c, f) => ({
|
|
1020
1020
|
...c,
|
|
1021
|
-
backgroundColor:
|
|
1021
|
+
backgroundColor: Sa(f),
|
|
1022
1022
|
categoryPercentage: a.data.length > 1 ? 0.5 : 0.33
|
|
1023
|
-
}))), o = v(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`), s =
|
|
1024
|
-
!l || c === f || (l.options =
|
|
1025
|
-
}, 100),
|
|
1026
|
-
l && (l.data =
|
|
1023
|
+
}))), o = v(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`), s = Re(function(c, f) {
|
|
1024
|
+
!l || c === f || (l.options = i.value.options, l.update());
|
|
1025
|
+
}, 100), r = Re(function() {
|
|
1026
|
+
l && (l.data = i.value.data, l.update());
|
|
1027
1027
|
}, 100);
|
|
1028
|
-
return
|
|
1029
|
-
|
|
1030
|
-
}),
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1028
|
+
return Y(() => {
|
|
1029
|
+
Pe.register(Ct, Tt, xt, At, Lt, Vt), Pe.defaults.font.family = "'Roobert', sans-serif", l = new Pe(t.value, i.value);
|
|
1030
|
+
}), z(() => a.showLegend, s), z(() => a.showTooltips, s), z(() => a.showXGrid, s), z(() => a.showYGrid, s), z(() => a.stacked, s), z(() => a.xLabel, s), z(() => a.yLabel, s), z(() => a.data, r), z(() => a.dataIdxLabels, r), (c, f) => (d(), b("div", wa, [
|
|
1031
|
+
$("figure", null, [
|
|
1032
|
+
$("div", null, [
|
|
1033
|
+
$("canvas", {
|
|
1034
1034
|
"aria-label": o.value,
|
|
1035
1035
|
ref_key: "canvas",
|
|
1036
1036
|
ref: t,
|
|
1037
1037
|
role: "img"
|
|
1038
|
-
}, null, 8,
|
|
1038
|
+
}, null, 8, ka)
|
|
1039
1039
|
]),
|
|
1040
|
-
|
|
1041
|
-
|
|
1040
|
+
$("div", null, [
|
|
1041
|
+
V(ya, {
|
|
1042
1042
|
data: e.data,
|
|
1043
1043
|
"data-idx-labels": e.dataIdxLabels,
|
|
1044
1044
|
"table-title": o.value
|
|
1045
1045
|
}, null, 8, ["data", "data-idx-labels", "table-title"]),
|
|
1046
|
-
|
|
1046
|
+
$("figcaption", {
|
|
1047
1047
|
"data-hidden": !e.showLegend
|
|
1048
1048
|
}, [
|
|
1049
|
-
|
|
1049
|
+
$("ul", {
|
|
1050
1050
|
ref_key: "legendList",
|
|
1051
1051
|
ref: n
|
|
1052
1052
|
}, null, 512)
|
|
1053
|
-
], 8,
|
|
1053
|
+
], 8, Ia)
|
|
1054
1054
|
])
|
|
1055
1055
|
])
|
|
1056
1056
|
]));
|
|
1057
1057
|
}
|
|
1058
|
-
},
|
|
1058
|
+
}, Ca = ["data-size"], Ta = ["checked", "data-error", "disabled", "id", "required", "value"], Dl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1059
1059
|
__name: "BsCheckbox",
|
|
1060
1060
|
props: {
|
|
1061
1061
|
/** Sets the label. */
|
|
@@ -1118,54 +1118,54 @@ const Sa = {
|
|
|
1118
1118
|
},
|
|
1119
1119
|
emits: ["update:modelValue"],
|
|
1120
1120
|
setup(e, { emit: a }) {
|
|
1121
|
-
const t = e, n = a, [l] =
|
|
1122
|
-
function
|
|
1123
|
-
u.value && (u.value.indeterminate =
|
|
1121
|
+
const t = e, n = a, [l] = Z(), i = v(() => Fe.concat(t.passAttrs.split(","))), u = m(null), o = v(() => t.inputId || l.value), s = v(() => t.checked || f.value), r = v(() => t.indeterminate || t.checkedPartially), c = v(() => Array.isArray(t.modelValue) && t.value), f = v(() => c.value && t.modelValue.includes(t.value) || typeof t.modelValue == "boolean" && t.modelValue);
|
|
1122
|
+
function T() {
|
|
1123
|
+
u.value && (u.value.indeterminate = r.value && !s.value);
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1126
|
-
n("update:modelValue",
|
|
1125
|
+
function y(I) {
|
|
1126
|
+
n("update:modelValue", I);
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1128
|
+
function S(I) {
|
|
1129
1129
|
const q = [...t.modelValue];
|
|
1130
|
-
|
|
1130
|
+
I ? q.push(t.value) : q.splice(q.indexOf(t.value), 1), n("update:modelValue", q);
|
|
1131
1131
|
}
|
|
1132
|
-
function
|
|
1133
|
-
const { checked: q } =
|
|
1134
|
-
c.value ?
|
|
1132
|
+
function w(I) {
|
|
1133
|
+
const { checked: q } = I.target;
|
|
1134
|
+
c.value ? S(q) : y(q);
|
|
1135
1135
|
}
|
|
1136
|
-
return
|
|
1136
|
+
return z(s, T), z(r, T), Y(T), (I, q) => (d(), b("div", M({
|
|
1137
1137
|
class: "bs-boolean",
|
|
1138
1138
|
"data-component": "bs-checkbox",
|
|
1139
1139
|
"data-size": e.size
|
|
1140
|
-
}, p(
|
|
1141
|
-
|
|
1140
|
+
}, p(K)(I.$attrs, i.value).remaining), [
|
|
1141
|
+
$("input", M({
|
|
1142
1142
|
ref_key: "inputEl",
|
|
1143
1143
|
ref: u,
|
|
1144
1144
|
checked: s.value,
|
|
1145
1145
|
"data-error": e.error,
|
|
1146
1146
|
disabled: e.disabled,
|
|
1147
|
-
id:
|
|
1147
|
+
id: I.$attrs.id || o.value,
|
|
1148
1148
|
required: e.required,
|
|
1149
1149
|
value: e.value || "on",
|
|
1150
1150
|
type: "checkbox",
|
|
1151
|
-
onChange:
|
|
1152
|
-
}, p(
|
|
1153
|
-
e.label ||
|
|
1151
|
+
onChange: w
|
|
1152
|
+
}, p(K)(I.$attrs, i.value).filtered), null, 16, Ta),
|
|
1153
|
+
e.label || I.$slots.label ? (d(), L(oe, {
|
|
1154
1154
|
key: 0,
|
|
1155
|
-
for:
|
|
1155
|
+
for: I.$attrs.id || o.value,
|
|
1156
1156
|
disabled: e.disabled,
|
|
1157
1157
|
required: e.required
|
|
1158
1158
|
}, {
|
|
1159
|
-
default:
|
|
1160
|
-
|
|
1161
|
-
|
|
1159
|
+
default: E(() => [
|
|
1160
|
+
D(I.$slots, "label", {}, () => [
|
|
1161
|
+
H(x(e.label), 1)
|
|
1162
1162
|
])
|
|
1163
1163
|
]),
|
|
1164
1164
|
_: 3
|
|
1165
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
1166
|
-
], 16,
|
|
1165
|
+
}, 8, ["for", "disabled", "required"])) : k("", !0)
|
|
1166
|
+
], 16, Ca));
|
|
1167
1167
|
}
|
|
1168
|
-
}),
|
|
1168
|
+
}), xa = { key: 0 }, Aa = { class: "bs-circle-button-icon" }, La = { key: 1 }, Ol = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1169
1169
|
__name: "BsCircleButton",
|
|
1170
1170
|
props: {
|
|
1171
1171
|
disabled: {
|
|
@@ -1211,32 +1211,32 @@ const Sa = {
|
|
|
1211
1211
|
}
|
|
1212
1212
|
},
|
|
1213
1213
|
setup(e) {
|
|
1214
|
-
const a = e, t =
|
|
1214
|
+
const a = e, t = le(), { rootTag: n, attrsToBind: l, hrefUrl: i } = Ie(a, t), { icon: u } = ye(a, "icon"), { onLinkClick: o } = Ce(a), s = v(() => a.textBtn ? {} : a.href ? { title: a.label } : { "aria-label": a.label }), r = v(() => {
|
|
1215
1215
|
if (a.hoverEffect)
|
|
1216
1216
|
return a.iconPosition;
|
|
1217
1217
|
}), c = v(() => a.textBtn && a.iconPosition !== "left"), f = v(() => a.textBtn && a.iconPosition === "left");
|
|
1218
|
-
return (
|
|
1218
|
+
return (T, y) => (d(), L(_(p(n)), M({
|
|
1219
1219
|
class: "bs-circle-button",
|
|
1220
1220
|
"data-disabled": e.disabled,
|
|
1221
|
-
"data-direction":
|
|
1221
|
+
"data-direction": r.value,
|
|
1222
1222
|
"data-ghost": e.ghostBtn,
|
|
1223
1223
|
"data-size": e.size,
|
|
1224
1224
|
"data-text": e.textBtn,
|
|
1225
|
-
".href": p(
|
|
1225
|
+
".href": p(i)
|
|
1226
1226
|
}, { ...p(l), ...s.value }, { onClick: p(o) }), {
|
|
1227
|
-
default:
|
|
1228
|
-
c.value ? (d(), b("span",
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
(d(),
|
|
1227
|
+
default: E(() => [
|
|
1228
|
+
c.value ? (d(), b("span", xa, x(e.label), 1)) : k("", !0),
|
|
1229
|
+
$("span", Aa, [
|
|
1230
|
+
D(T.$slots, "icon", {}, () => [
|
|
1231
|
+
(d(), L(_(p(u)), { size: e.size }, null, 8, ["size"]))
|
|
1232
1232
|
])
|
|
1233
1233
|
]),
|
|
1234
|
-
f.value ? (d(), b("span",
|
|
1234
|
+
f.value ? (d(), b("span", La, x(e.label), 1)) : k("", !0)
|
|
1235
1235
|
]),
|
|
1236
1236
|
_: 3
|
|
1237
1237
|
}, 48, ["data-disabled", "data-direction", "data-ghost", "data-size", "data-text", ".href", "onClick"]));
|
|
1238
1238
|
}
|
|
1239
|
-
}),
|
|
1239
|
+
}), Ae = {
|
|
1240
1240
|
__name: "BsTransition",
|
|
1241
1241
|
props: {
|
|
1242
1242
|
shown: {
|
|
@@ -1279,38 +1279,38 @@ const Sa = {
|
|
|
1279
1279
|
"leave-cancelled"
|
|
1280
1280
|
],
|
|
1281
1281
|
setup(e, { emit: a }) {
|
|
1282
|
-
const t = e, n = a, l = [],
|
|
1283
|
-
function u(
|
|
1284
|
-
const { duration: f, enterClass:
|
|
1282
|
+
const t = e, n = a, l = [], i = t.preloaded && t.shown;
|
|
1283
|
+
function u(r, c) {
|
|
1284
|
+
const { duration: f, enterClass: T, enterAttribute: y } = t;
|
|
1285
1285
|
l.push(setTimeout(() => {
|
|
1286
|
-
|
|
1286
|
+
T && r.classList.add(T), y && r.setAttribute(y, ""), l.push(setTimeout(() => {
|
|
1287
1287
|
c();
|
|
1288
|
-
}, f)), n("enter",
|
|
1288
|
+
}, f)), n("enter", r);
|
|
1289
1289
|
}));
|
|
1290
1290
|
}
|
|
1291
|
-
function o(
|
|
1291
|
+
function o(r, c) {
|
|
1292
1292
|
const {
|
|
1293
1293
|
duration: f,
|
|
1294
|
-
enterClass:
|
|
1295
|
-
enterAttribute:
|
|
1296
|
-
leaveClass:
|
|
1297
|
-
leaveAttribute:
|
|
1294
|
+
enterClass: T,
|
|
1295
|
+
enterAttribute: y,
|
|
1296
|
+
leaveClass: S,
|
|
1297
|
+
leaveAttribute: w
|
|
1298
1298
|
} = t;
|
|
1299
|
-
|
|
1299
|
+
r.classList.remove(T), r.removeAttribute(y), S && r.classList.add(S), w && r.setAttribute(w, ""), l.push(setTimeout(() => {
|
|
1300
1300
|
c();
|
|
1301
|
-
}, f)), n("leave",
|
|
1301
|
+
}, f)), n("leave", r);
|
|
1302
1302
|
}
|
|
1303
|
-
function s(
|
|
1303
|
+
function s(r) {
|
|
1304
1304
|
const { leaveClass: c, leaveAttribute: f } = t;
|
|
1305
|
-
|
|
1305
|
+
r.classList.remove(c), r.removeAttribute(f), n("after-leave", r);
|
|
1306
1306
|
}
|
|
1307
|
-
return
|
|
1308
|
-
l.forEach((
|
|
1309
|
-
clearTimeout(
|
|
1307
|
+
return de(() => {
|
|
1308
|
+
l.forEach((r) => {
|
|
1309
|
+
clearTimeout(r);
|
|
1310
1310
|
});
|
|
1311
|
-
}), (
|
|
1311
|
+
}), (r, c) => e.preloaded ? Se((d(), L(Ye, {
|
|
1312
1312
|
key: 0,
|
|
1313
|
-
appear: p(
|
|
1313
|
+
appear: p(i),
|
|
1314
1314
|
css: !1,
|
|
1315
1315
|
onBeforeEnter: c[0] || (c[0] = (f) => n("before-enter", f)),
|
|
1316
1316
|
onEnter: u,
|
|
@@ -1321,13 +1321,13 @@ const Sa = {
|
|
|
1321
1321
|
onAfterLeave: s,
|
|
1322
1322
|
onLeaveCancelled: c[4] || (c[4] = (f) => n("leave-cancelled", f))
|
|
1323
1323
|
}, {
|
|
1324
|
-
default:
|
|
1325
|
-
|
|
1324
|
+
default: E(() => [
|
|
1325
|
+
D(r.$slots, "default")
|
|
1326
1326
|
]),
|
|
1327
1327
|
_: 3
|
|
1328
1328
|
}, 8, ["appear"])), [
|
|
1329
|
-
[
|
|
1330
|
-
]) : (d(),
|
|
1329
|
+
[we, e.shown]
|
|
1330
|
+
]) : (d(), L(Ye, {
|
|
1331
1331
|
key: 1,
|
|
1332
1332
|
appear: !0,
|
|
1333
1333
|
css: !1,
|
|
@@ -1340,25 +1340,25 @@ const Sa = {
|
|
|
1340
1340
|
onAfterLeave: s,
|
|
1341
1341
|
onLeaveCancelled: c[9] || (c[9] = (f) => n("leave-cancelled", f))
|
|
1342
1342
|
}, {
|
|
1343
|
-
default:
|
|
1344
|
-
e.shown ?
|
|
1343
|
+
default: E(() => [
|
|
1344
|
+
e.shown ? D(r.$slots, "default", { key: 0 }) : k("", !0)
|
|
1345
1345
|
]),
|
|
1346
1346
|
_: 3
|
|
1347
1347
|
}));
|
|
1348
1348
|
}
|
|
1349
|
-
},
|
|
1350
|
-
const n =
|
|
1349
|
+
}, Va = (e, a = void 0, t = "relative") => {
|
|
1350
|
+
const n = m(null), l = m(null), i = m(!1);
|
|
1351
1351
|
let u = !1;
|
|
1352
|
-
return
|
|
1353
|
-
e && (n.value = a ||
|
|
1354
|
-
}),
|
|
1352
|
+
return Y(() => {
|
|
1353
|
+
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)), i.value = !0);
|
|
1354
|
+
}), de(() => {
|
|
1355
1355
|
var o;
|
|
1356
1356
|
e && !u && ((o = document.getElementById(n.value)) == null || o.remove());
|
|
1357
|
-
}), { breakoutId: n, breakoutStub: l, breakoutMounted:
|
|
1358
|
-
},
|
|
1357
|
+
}), { breakoutId: n, breakoutStub: l, breakoutMounted: i };
|
|
1358
|
+
}, Ea = {
|
|
1359
1359
|
key: 0,
|
|
1360
1360
|
class: "bs-dropdown-backdrop"
|
|
1361
|
-
},
|
|
1361
|
+
}, Da = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1362
1362
|
__name: "BsDropdownNew",
|
|
1363
1363
|
props: {
|
|
1364
1364
|
anchorId: {
|
|
@@ -1411,109 +1411,132 @@ const Sa = {
|
|
|
1411
1411
|
"after-leave"
|
|
1412
1412
|
],
|
|
1413
1413
|
setup(e, { emit: a }) {
|
|
1414
|
-
const t =
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
}),
|
|
1418
|
-
|
|
1419
|
-
}),
|
|
1420
|
-
const
|
|
1421
|
-
|
|
1414
|
+
const t = lt(), n = le(), l = e, i = a, u = m(null), o = m(null), s = m(!1), r = v(() => document.getElementById(l.anchorId)), c = v(() => l.breakout ? T.value : l.containerId ? document.getElementById(l.containerId) : u.value), f = v(() => l.width === "anchor" ? void 0 : l.width), { breakoutStub: T, breakoutMounted: y } = Va(l.breakout, l.containerId);
|
|
1415
|
+
Pt([o, r], () => {
|
|
1416
|
+
s.value && i("close");
|
|
1417
|
+
}), Te(["Escape"], () => {
|
|
1418
|
+
s.value && i("close");
|
|
1419
|
+
}), ue("dropdownAfterEnter", s), ue("dropdownShown", v(() => l.shown));
|
|
1420
|
+
const S = (R, F) => {
|
|
1421
|
+
o.value.style.setProperty(R, F);
|
|
1422
1422
|
};
|
|
1423
|
-
function
|
|
1424
|
-
const
|
|
1425
|
-
|
|
1423
|
+
function w() {
|
|
1424
|
+
const R = c.value.getBoundingClientRect(), F = r.value.getBoundingClientRect(), Q = o.value.getBoundingClientRect();
|
|
1425
|
+
I(R, F), q(R, F, Q);
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1428
|
-
if (
|
|
1429
|
-
const
|
|
1430
|
-
|
|
1427
|
+
function I(R, F) {
|
|
1428
|
+
if (l.position === "top") {
|
|
1429
|
+
const Q = R.bottom - F.bottom;
|
|
1430
|
+
S("--dropdown-wscreen-top", "auto"), S("--dropdown-wscreen-bottom", `${Q + F.height + 8}px`);
|
|
1431
1431
|
} else {
|
|
1432
|
-
const
|
|
1433
|
-
|
|
1432
|
+
const Q = F.top - R.top;
|
|
1433
|
+
S("--dropdown-wscreen-top", `${Q + F.height + 8}px`), S("--dropdown-wscreen-bottom", "auto");
|
|
1434
1434
|
}
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1437
|
-
if (
|
|
1438
|
-
const
|
|
1439
|
-
if (
|
|
1440
|
-
const
|
|
1441
|
-
|
|
1442
|
-
} else if (
|
|
1443
|
-
const
|
|
1444
|
-
|
|
1436
|
+
function q(R, F, Q) {
|
|
1437
|
+
if (l.width !== "anchor") {
|
|
1438
|
+
const ie = F.left - R.left;
|
|
1439
|
+
if (l.position === "center") {
|
|
1440
|
+
const ee = (F.width - Q.width) / 2;
|
|
1441
|
+
S("--dropdown-wscreen-left", `${ie + ee}px`), S("--dropdown-wscreen-right", "auto");
|
|
1442
|
+
} else if (l.position === "right") {
|
|
1443
|
+
const ee = R.right - F.right;
|
|
1444
|
+
S("--dropdown-wscreen-left", "auto"), S("--dropdown-wscreen-right", `${ee}px`);
|
|
1445
1445
|
} else
|
|
1446
|
-
|
|
1446
|
+
S("--dropdown-wscreen-left", `${ie}px`), S("--dropdown-wscreen-right", "auto");
|
|
1447
1447
|
}
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1450
|
-
if (
|
|
1451
|
-
const
|
|
1452
|
-
|
|
1449
|
+
function B() {
|
|
1450
|
+
if (l.width === "anchor") {
|
|
1451
|
+
const R = r.value.getBoundingClientRect();
|
|
1452
|
+
S("--dropdown-wscreen-width", `${R.width}px`);
|
|
1453
1453
|
} else
|
|
1454
|
-
|
|
1455
|
-
}
|
|
1456
|
-
function $() {
|
|
1457
|
-
T(), q(), n("enter");
|
|
1454
|
+
S("--dropdown-wscreen-width", "");
|
|
1458
1455
|
}
|
|
1459
1456
|
function h() {
|
|
1460
|
-
|
|
1457
|
+
w(), B(), i("enter");
|
|
1461
1458
|
}
|
|
1462
1459
|
function C() {
|
|
1463
|
-
|
|
1460
|
+
s.value = !0, i("after-enter");
|
|
1464
1461
|
}
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1462
|
+
function O() {
|
|
1463
|
+
s.value = !1, i("after-leave");
|
|
1464
|
+
}
|
|
1465
|
+
const j = () => (
|
|
1466
|
+
// <BsTransition>
|
|
1467
|
+
se(
|
|
1468
|
+
Ae,
|
|
1469
|
+
{
|
|
1470
|
+
shown: l.shown,
|
|
1471
|
+
preloaded: l.preloaded,
|
|
1472
|
+
duration: 75,
|
|
1473
|
+
enterAttribute: "data-shown",
|
|
1474
|
+
onAfterEnter: C,
|
|
1475
|
+
onEnter: h,
|
|
1476
|
+
onAfterLeave: O
|
|
1477
|
+
},
|
|
1478
|
+
// <div class="bs-dropdown">
|
|
1479
|
+
() => {
|
|
1480
|
+
var R;
|
|
1481
|
+
return se("div", {
|
|
1482
|
+
ref: o,
|
|
1483
|
+
class: "bs-dropdown",
|
|
1484
|
+
"data-width": f.value,
|
|
1485
|
+
"data-no-mobile": !l.useMobileStyle,
|
|
1486
|
+
...n
|
|
1487
|
+
}, [
|
|
1488
|
+
// <header>
|
|
1489
|
+
l.helperText && se("header", [
|
|
1490
|
+
// <div>
|
|
1491
|
+
se("div", [
|
|
1492
|
+
// <h3>Helper Text</h3>
|
|
1493
|
+
se("h3", l.helperText),
|
|
1494
|
+
// <p>Helper Description</p>
|
|
1495
|
+
l.helperDescription && se("p", l.helperDescription)
|
|
1496
|
+
]),
|
|
1497
|
+
// </div>
|
|
1498
|
+
// <button>
|
|
1499
|
+
se(
|
|
1500
|
+
"button",
|
|
1501
|
+
{
|
|
1502
|
+
type: "button",
|
|
1503
|
+
title: "close",
|
|
1504
|
+
onClick: () => i("close")
|
|
1505
|
+
},
|
|
1506
|
+
// <BsIconClose />
|
|
1507
|
+
se(ke)
|
|
1508
|
+
)
|
|
1509
|
+
// </button>
|
|
1510
|
+
]),
|
|
1511
|
+
// </header>
|
|
1512
|
+
// <slot />
|
|
1513
|
+
(R = t.default) == null ? void 0 : R.call(t)
|
|
1514
|
+
]);
|
|
1515
|
+
}
|
|
1516
|
+
// </div>
|
|
1517
|
+
)
|
|
1518
|
+
);
|
|
1519
|
+
return (R, F) => (d(), b(G, null, [
|
|
1520
|
+
e.useMobileStyle && e.shown ? (d(), b("div", Ea)) : k("", !0),
|
|
1521
|
+
e.breakout && p(y) ? (d(), L(pt, {
|
|
1468
1522
|
key: 1,
|
|
1469
|
-
|
|
1470
|
-
to: e.breakout ? p(f) : void 0
|
|
1523
|
+
to: p(T)
|
|
1471
1524
|
}, [
|
|
1472
|
-
|
|
1525
|
+
V(j)
|
|
1526
|
+
], 8, ["to"])) : k("", !0),
|
|
1527
|
+
e.breakout ? k("", !0) : (d(), b(G, { key: 2 }, [
|
|
1528
|
+
e.containerId ? (d(), L(j, { key: 0 })) : (d(), b("div", {
|
|
1529
|
+
key: 1,
|
|
1473
1530
|
ref_key: "containerRef",
|
|
1474
|
-
ref:
|
|
1475
|
-
style:
|
|
1531
|
+
ref: u,
|
|
1532
|
+
style: { position: "relative" }
|
|
1476
1533
|
}, [
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
duration: 75,
|
|
1481
|
-
"enter-attribute": "data-shown",
|
|
1482
|
-
onAfterEnter: h,
|
|
1483
|
-
onEnter: $,
|
|
1484
|
-
onAfterLeave: C
|
|
1485
|
-
}, {
|
|
1486
|
-
default: O(() => [
|
|
1487
|
-
y("div", z({
|
|
1488
|
-
ref_key: "dropdownRef",
|
|
1489
|
-
ref: r,
|
|
1490
|
-
class: "bs-dropdown",
|
|
1491
|
-
"data-width": c.value,
|
|
1492
|
-
"data-no-mobile": !e.useMobileStyle
|
|
1493
|
-
}, I.$attrs), [
|
|
1494
|
-
e.helperText ? (d(), b("header", Da, [
|
|
1495
|
-
y("div", null, [
|
|
1496
|
-
y("h3", null, A(e.helperText), 1),
|
|
1497
|
-
e.helperDescription ? (d(), b("p", Oa, A(e.helperDescription), 1)) : w("", !0)
|
|
1498
|
-
]),
|
|
1499
|
-
y("button", {
|
|
1500
|
-
type: "button",
|
|
1501
|
-
title: "close",
|
|
1502
|
-
onClick: P[0] || (P[0] = () => n("close"))
|
|
1503
|
-
}, [
|
|
1504
|
-
D(p(we))
|
|
1505
|
-
])
|
|
1506
|
-
])) : w("", !0),
|
|
1507
|
-
E(I.$slots, "default")
|
|
1508
|
-
], 16, Ea)
|
|
1509
|
-
]),
|
|
1510
|
-
_: 3
|
|
1511
|
-
}, 8, ["shown", "preloaded"])
|
|
1512
|
-
], 4)
|
|
1513
|
-
], 8, ["disabled", "to"])) : w("", !0)
|
|
1534
|
+
V(j)
|
|
1535
|
+
], 512))
|
|
1536
|
+
], 64))
|
|
1514
1537
|
], 64));
|
|
1515
1538
|
}
|
|
1516
|
-
}),
|
|
1539
|
+
}), st = {
|
|
1517
1540
|
__name: "BsDropdown",
|
|
1518
1541
|
props: {
|
|
1519
1542
|
anchorId: {
|
|
@@ -1603,8 +1626,8 @@ const Sa = {
|
|
|
1603
1626
|
"after-leave"
|
|
1604
1627
|
],
|
|
1605
1628
|
setup(e, { emit: a }) {
|
|
1606
|
-
const t = e, n = a, { transition: l } = ve(t),
|
|
1607
|
-
return (s,
|
|
1629
|
+
const t = e, n = a, { transition: l } = ve(t), i = v(() => t.width === "toggle" ? "anchor" : t.width), u = v(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = v(() => t.toggleId ? t.toggleId : t.anchorId);
|
|
1630
|
+
return (s, r) => (d(), L(Da, {
|
|
1608
1631
|
"anchor-id": o.value,
|
|
1609
1632
|
breakout: e.breakout,
|
|
1610
1633
|
"container-id": e.containerId,
|
|
@@ -1614,19 +1637,19 @@ const Sa = {
|
|
|
1614
1637
|
preloaded: e.preloaded,
|
|
1615
1638
|
shown: p(l),
|
|
1616
1639
|
"use-mobile-style": e.useMobileStyle,
|
|
1617
|
-
width:
|
|
1618
|
-
onClose:
|
|
1619
|
-
onEnter:
|
|
1620
|
-
onAfterEnter:
|
|
1621
|
-
onAfterLeave:
|
|
1640
|
+
width: i.value,
|
|
1641
|
+
onClose: r[0] || (r[0] = () => n("close")),
|
|
1642
|
+
onEnter: r[1] || (r[1] = () => n("enter")),
|
|
1643
|
+
onAfterEnter: r[2] || (r[2] = () => n("after-enter")),
|
|
1644
|
+
onAfterLeave: r[3] || (r[3] = () => n("after-leave"))
|
|
1622
1645
|
}, {
|
|
1623
|
-
default:
|
|
1624
|
-
|
|
1646
|
+
default: E(() => [
|
|
1647
|
+
D(s.$slots, "default")
|
|
1625
1648
|
]),
|
|
1626
1649
|
_: 3
|
|
1627
1650
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
|
|
1628
1651
|
}
|
|
1629
|
-
},
|
|
1652
|
+
}, Oa = ["aria-activedescendant", "aria-label", "id"], Ue = {
|
|
1630
1653
|
__name: "BsDropdownOptionList",
|
|
1631
1654
|
props: {
|
|
1632
1655
|
optionsId: {
|
|
@@ -1662,49 +1685,49 @@ const Sa = {
|
|
|
1662
1685
|
},
|
|
1663
1686
|
emits: ["optselected", "update:modelValue", "close"],
|
|
1664
1687
|
setup(e, { expose: a, emit: t }) {
|
|
1665
|
-
const n = e, l = t,
|
|
1688
|
+
const n = e, l = t, i = m(null), u = m(null), o = m(-1), s = m(null), r = ce("dropdownAfterEnter"), c = ce("dropdownShown", !1);
|
|
1666
1689
|
let f = -1;
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
}),
|
|
1670
|
-
document.removeEventListener("keydown",
|
|
1671
|
-
}),
|
|
1672
|
-
var C,
|
|
1673
|
-
h && f > -1 && (n.focusOnShow ? (C = s.value[f]) == null || C.focus() : (
|
|
1674
|
-
}),
|
|
1675
|
-
const
|
|
1676
|
-
function
|
|
1690
|
+
ue("handleSelect", B), ue("optionsId", v(() => n.optionsId)), Y(() => {
|
|
1691
|
+
y(), S(), document.addEventListener("keydown", I);
|
|
1692
|
+
}), de(() => {
|
|
1693
|
+
document.removeEventListener("keydown", I);
|
|
1694
|
+
}), z(r, (h) => {
|
|
1695
|
+
var C, O;
|
|
1696
|
+
h && f > -1 && (n.focusOnShow ? (C = s.value[f]) == null || C.focus() : (O = s.value[f]) == null || O.scrollIntoView({ block: "nearest" }));
|
|
1697
|
+
}), z(c, S);
|
|
1698
|
+
const T = v(() => n.modelValue || n.selectedValue);
|
|
1699
|
+
function y() {
|
|
1677
1700
|
s.value = Array.from(
|
|
1678
|
-
|
|
1701
|
+
i.value.querySelectorAll('[data-component="bs-dropdown-option"]')
|
|
1679
1702
|
);
|
|
1680
1703
|
}
|
|
1681
|
-
function
|
|
1704
|
+
function S() {
|
|
1682
1705
|
var h, C;
|
|
1683
1706
|
c.value && !n.multiselect ? (f = s.value.findIndex(
|
|
1684
|
-
(
|
|
1685
|
-
), s.value.forEach((
|
|
1686
|
-
var
|
|
1687
|
-
return (
|
|
1688
|
-
}), f > -1 && ((h = s.value[f]) == null || h.setAttribute("data-selected", ""), (C = s.value[f]) == null || C.setAttribute("aria-selected", "true"), o.value = f)) : (s.value.forEach((
|
|
1689
|
-
var
|
|
1690
|
-
return (
|
|
1691
|
-
}), s.value.forEach((
|
|
1692
|
-
var
|
|
1693
|
-
return (
|
|
1707
|
+
(O) => O.getAttribute("data-value") === String(T.value)
|
|
1708
|
+
), s.value.forEach((O) => {
|
|
1709
|
+
var j;
|
|
1710
|
+
return (j = O == null ? void 0 : O.setAttribute) == null ? void 0 : j.call(O, "aria-selected", "false");
|
|
1711
|
+
}), f > -1 && ((h = s.value[f]) == null || h.setAttribute("data-selected", ""), (C = s.value[f]) == null || C.setAttribute("aria-selected", "true"), o.value = f)) : (s.value.forEach((O) => {
|
|
1712
|
+
var j;
|
|
1713
|
+
return (j = O == null ? void 0 : O.removeAttribute) == null ? void 0 : j.call(O, "data-selected");
|
|
1714
|
+
}), s.value.forEach((O) => {
|
|
1715
|
+
var j;
|
|
1716
|
+
return (j = O == null ? void 0 : O.removeAttribute) == null ? void 0 : j.call(O, "aria-selected");
|
|
1694
1717
|
}));
|
|
1695
1718
|
}
|
|
1696
|
-
|
|
1697
|
-
|
|
1719
|
+
Mt(
|
|
1720
|
+
i,
|
|
1698
1721
|
() => {
|
|
1699
|
-
|
|
1722
|
+
y();
|
|
1700
1723
|
},
|
|
1701
1724
|
{ childList: !0 }
|
|
1702
1725
|
);
|
|
1703
|
-
function
|
|
1726
|
+
function w() {
|
|
1704
1727
|
var h;
|
|
1705
1728
|
o.value > -1 && ((h = s.value[o.value]) == null || h.blur());
|
|
1706
1729
|
}
|
|
1707
|
-
function
|
|
1730
|
+
function I(h) {
|
|
1708
1731
|
if (c.value)
|
|
1709
1732
|
switch (h.key) {
|
|
1710
1733
|
case "ArrowDown":
|
|
@@ -1740,32 +1763,32 @@ const Sa = {
|
|
|
1740
1763
|
C = s.value.length - 1;
|
|
1741
1764
|
break;
|
|
1742
1765
|
}
|
|
1743
|
-
|
|
1766
|
+
w(), s.value[C].focus(), u.value = s.value[C].id, o.value = C;
|
|
1744
1767
|
}
|
|
1745
|
-
function
|
|
1746
|
-
u.value = h,
|
|
1768
|
+
function B(h, C) {
|
|
1769
|
+
u.value = h, w(), l("optselected", C), l("update:modelValue", C), l("close");
|
|
1747
1770
|
}
|
|
1748
1771
|
return a({
|
|
1749
1772
|
activeDescendantId: u,
|
|
1750
1773
|
focusedIndex: o,
|
|
1751
1774
|
optionEls: s,
|
|
1752
|
-
refreshOptions:
|
|
1775
|
+
refreshOptions: y
|
|
1753
1776
|
}), (h, C) => (d(), b("ul", {
|
|
1754
1777
|
ref_key: "optionsRef",
|
|
1755
|
-
ref:
|
|
1778
|
+
ref: i,
|
|
1756
1779
|
"aria-activedescendant": u.value || void 0,
|
|
1757
1780
|
"aria-label": e.label,
|
|
1758
1781
|
class: "bs-dropdown-options",
|
|
1759
1782
|
id: e.optionsId,
|
|
1760
1783
|
role: "listbox"
|
|
1761
1784
|
}, [
|
|
1762
|
-
|
|
1763
|
-
], 8,
|
|
1785
|
+
D(h.$slots, "default")
|
|
1786
|
+
], 8, Oa));
|
|
1764
1787
|
}
|
|
1765
|
-
},
|
|
1788
|
+
}, qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1766
1789
|
__proto__: null,
|
|
1767
|
-
default:
|
|
1768
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1790
|
+
default: Ue
|
|
1791
|
+
}, Symbol.toStringTag, { value: "Module" })), Pa = ["data-value", "data-variant", "id"], We = {
|
|
1769
1792
|
__name: "BsDropdownOption",
|
|
1770
1793
|
props: {
|
|
1771
1794
|
value: {
|
|
@@ -1778,14 +1801,14 @@ const Sa = {
|
|
|
1778
1801
|
}
|
|
1779
1802
|
},
|
|
1780
1803
|
setup(e) {
|
|
1781
|
-
const a = e, t =
|
|
1782
|
-
}),
|
|
1783
|
-
|
|
1804
|
+
const a = e, t = m(null), n = ce("optionsId", ""), l = ce("handleSelect", () => {
|
|
1805
|
+
}), i = v(() => `${n.value}-option-${a.value}`);
|
|
1806
|
+
Te([" ", "Enter", "NumpadEnter"], (o) => {
|
|
1784
1807
|
u(), o.preventDefault();
|
|
1785
1808
|
}, t);
|
|
1786
1809
|
function u(o) {
|
|
1787
|
-
var s,
|
|
1788
|
-
l(
|
|
1810
|
+
var s, r;
|
|
1811
|
+
l(i.value, a.value), (s = t.value.querySelector("a")) == null || s.click(), (r = o == null ? void 0 : o.stopPropagation) == null || r.call(o);
|
|
1789
1812
|
}
|
|
1790
1813
|
return (o, s) => (d(), b("li", {
|
|
1791
1814
|
ref_key: "optionRef",
|
|
@@ -1793,15 +1816,15 @@ const Sa = {
|
|
|
1793
1816
|
"data-component": "bs-dropdown-option",
|
|
1794
1817
|
"data-value": a.value,
|
|
1795
1818
|
"data-variant": e.variant || void 0,
|
|
1796
|
-
id:
|
|
1819
|
+
id: i.value,
|
|
1797
1820
|
role: "option",
|
|
1798
1821
|
tabIndex: -1,
|
|
1799
1822
|
onClick: u
|
|
1800
1823
|
}, [
|
|
1801
|
-
|
|
1802
|
-
], 8,
|
|
1824
|
+
D(o.$slots, "default")
|
|
1825
|
+
], 8, Pa));
|
|
1803
1826
|
}
|
|
1804
|
-
},
|
|
1827
|
+
}, Ma = ["data-img-size", "data-initials", "data-no-img"], za = ["src", "alt"], dt = {
|
|
1805
1828
|
__name: "BsProfileImg",
|
|
1806
1829
|
props: {
|
|
1807
1830
|
src: String,
|
|
@@ -1820,8 +1843,8 @@ const Sa = {
|
|
|
1820
1843
|
}
|
|
1821
1844
|
},
|
|
1822
1845
|
setup(e) {
|
|
1823
|
-
const a = e, t =
|
|
1824
|
-
return
|
|
1846
|
+
const a = e, t = m(!1), n = m(!!a.src);
|
|
1847
|
+
return Y(() => t.value = !0), (l, i) => (d(), b("div", {
|
|
1825
1848
|
class: "bs-profile-img",
|
|
1826
1849
|
"data-img-size": e.size,
|
|
1827
1850
|
"data-initials": e.initials,
|
|
@@ -1831,14 +1854,15 @@ const Sa = {
|
|
|
1831
1854
|
key: 0,
|
|
1832
1855
|
src: e.src,
|
|
1833
1856
|
alt: e.useAltText ? e.profileName : "",
|
|
1834
|
-
onError:
|
|
1835
|
-
}, null, 40,
|
|
1836
|
-
], 8,
|
|
1857
|
+
onError: i[0] || (i[0] = (u) => n.value = !1)
|
|
1858
|
+
}, null, 40, za)) : k("", !0)
|
|
1859
|
+
], 8, Ma));
|
|
1837
1860
|
}
|
|
1838
|
-
},
|
|
1861
|
+
}, Na = ["id", "data-checked"], Ra = { key: 1 }, ja = ["innerHTML"], Fa = { key: 4 }, Ua = { key: 5 }, Wa = {
|
|
1839
1862
|
key: 0,
|
|
1863
|
+
role: "option",
|
|
1840
1864
|
"data-no-hover": ""
|
|
1841
|
-
},
|
|
1865
|
+
}, $e = {
|
|
1842
1866
|
__name: "BsDropdownOptionBuilder",
|
|
1843
1867
|
props: {
|
|
1844
1868
|
// Array of objects with the following properties (either label or labelHtml
|
|
@@ -1871,23 +1895,23 @@ const Sa = {
|
|
|
1871
1895
|
},
|
|
1872
1896
|
setup(e) {
|
|
1873
1897
|
const a = e, t = {};
|
|
1874
|
-
|
|
1898
|
+
nt(() => {
|
|
1875
1899
|
n();
|
|
1876
|
-
}),
|
|
1900
|
+
}), z(() => a.options, () => {
|
|
1877
1901
|
n();
|
|
1878
1902
|
});
|
|
1879
1903
|
function n() {
|
|
1880
1904
|
a.options.forEach((o) => {
|
|
1881
1905
|
const { icon: s } = o;
|
|
1882
|
-
s && !t[s] && (t[s] =
|
|
1906
|
+
s && !t[s] && (t[s] = i(s));
|
|
1883
1907
|
});
|
|
1884
1908
|
}
|
|
1885
1909
|
function l(o) {
|
|
1886
|
-
let s = "",
|
|
1887
|
-
return
|
|
1910
|
+
let s = "", r = 1;
|
|
1911
|
+
return r += o.checkbox ? 1 : 0, r += o.icon ? 1 : 0, r += o.profileImg ? 1 : 0, r > 1 && (s += ` ${r}-col`), o.checkbox && (s += " checkbox"), o.description && (s += " description"), o.negative && (s += " negative"), s;
|
|
1888
1912
|
}
|
|
1889
|
-
function
|
|
1890
|
-
return
|
|
1913
|
+
function i(o) {
|
|
1914
|
+
return je(async () => {
|
|
1891
1915
|
const { [`BsIcon${o}`]: s } = await import("@wwtdev/bsds-icons-vue3");
|
|
1892
1916
|
return s;
|
|
1893
1917
|
});
|
|
@@ -1896,49 +1920,49 @@ const Sa = {
|
|
|
1896
1920
|
return !!o && o !== s;
|
|
1897
1921
|
}
|
|
1898
1922
|
return (o, s) => (d(), b(G, null, [
|
|
1899
|
-
(d(!0), b(G, null,
|
|
1900
|
-
"aria-checked":
|
|
1901
|
-
key:
|
|
1902
|
-
value:
|
|
1903
|
-
variant: l(
|
|
1923
|
+
(d(!0), b(G, null, J(e.options, (r) => (d(), L(We, {
|
|
1924
|
+
"aria-checked": r.checkbox ? r.checkbox.checked : void 0,
|
|
1925
|
+
key: r.value,
|
|
1926
|
+
value: r.value,
|
|
1927
|
+
variant: l(r)
|
|
1904
1928
|
}, {
|
|
1905
|
-
default:
|
|
1906
|
-
|
|
1929
|
+
default: E(() => [
|
|
1930
|
+
r.checkbox ? (d(), b("span", {
|
|
1907
1931
|
key: 0,
|
|
1908
|
-
id:
|
|
1932
|
+
id: r.checkbox.inputId,
|
|
1909
1933
|
"aria-hidden": "true",
|
|
1910
1934
|
class: "bs-checkbox",
|
|
1911
|
-
"data-checked":
|
|
1912
|
-
}, null, 8,
|
|
1913
|
-
|
|
1914
|
-
(d(),
|
|
1915
|
-
])) :
|
|
1916
|
-
|
|
1935
|
+
"data-checked": r.checkbox.checked
|
|
1936
|
+
}, null, 8, Na)) : k("", !0),
|
|
1937
|
+
r.icon ? (d(), b("span", Ra, [
|
|
1938
|
+
(d(), L(_(t[r.icon])))
|
|
1939
|
+
])) : k("", !0),
|
|
1940
|
+
r.profileImg ? (d(), L(dt, {
|
|
1917
1941
|
key: 2,
|
|
1918
|
-
src:
|
|
1942
|
+
src: r.profileImg.src,
|
|
1919
1943
|
size: "xs",
|
|
1920
|
-
initials:
|
|
1921
|
-
"profile-name":
|
|
1922
|
-
"use-alt-text": u(
|
|
1923
|
-
}, null, 8, ["src", "initials", "profile-name", "use-alt-text"])) :
|
|
1924
|
-
|
|
1944
|
+
initials: r.profileImg.initials,
|
|
1945
|
+
"profile-name": r.profileImg.profileName,
|
|
1946
|
+
"use-alt-text": u(r.profileImg.profileName, r.label)
|
|
1947
|
+
}, null, 8, ["src", "initials", "profile-name", "use-alt-text"])) : k("", !0),
|
|
1948
|
+
r.labelHtml ? (d(), b("span", {
|
|
1925
1949
|
key: 3,
|
|
1926
|
-
innerHTML:
|
|
1927
|
-
}, null, 8,
|
|
1928
|
-
|
|
1950
|
+
innerHTML: r.labelHtml
|
|
1951
|
+
}, null, 8, ja)) : (d(), b("span", Fa, x(r.label), 1)),
|
|
1952
|
+
r.description ? (d(), b("span", Ua, x(r.description), 1)) : k("", !0)
|
|
1929
1953
|
]),
|
|
1930
1954
|
_: 2
|
|
1931
1955
|
}, 1032, ["aria-checked", "value", "variant"]))), 128)),
|
|
1932
|
-
e.showNoOptions && e.options.length === 0 ? (d(), b("li",
|
|
1933
|
-
|
|
1934
|
-
|
|
1956
|
+
e.showNoOptions && e.options.length === 0 ? (d(), b("li", Wa, [
|
|
1957
|
+
D(o.$slots, "no-options", {}, () => [
|
|
1958
|
+
H("No options")
|
|
1935
1959
|
])
|
|
1936
|
-
])) :
|
|
1960
|
+
])) : k("", !0)
|
|
1937
1961
|
], 64));
|
|
1938
1962
|
}
|
|
1939
|
-
},
|
|
1940
|
-
|
|
1941
|
-
],
|
|
1963
|
+
}, Ga = { role: "separator" }, Ha = /* @__PURE__ */ $("hr", null, null, -1), Ka = [
|
|
1964
|
+
Ha
|
|
1965
|
+
], Ya = {
|
|
1942
1966
|
__name: "BsDropdownMultiselect",
|
|
1943
1967
|
props: {
|
|
1944
1968
|
label: {
|
|
@@ -1964,51 +1988,51 @@ const Sa = {
|
|
|
1964
1988
|
},
|
|
1965
1989
|
emits: ["update:selectedOptions"],
|
|
1966
1990
|
setup(e, { emit: a }) {
|
|
1967
|
-
const t = e, n = a, l =
|
|
1991
|
+
const t = e, n = a, l = m(null), i = m([]), u = m([]);
|
|
1968
1992
|
let o = !1;
|
|
1969
|
-
|
|
1993
|
+
z(
|
|
1970
1994
|
() => t.selectedOptions,
|
|
1971
1995
|
c,
|
|
1972
1996
|
{ immediate: !0 }
|
|
1973
|
-
),
|
|
1974
|
-
|
|
1997
|
+
), z(() => t.shown, (y) => {
|
|
1998
|
+
y && pe(s);
|
|
1975
1999
|
});
|
|
1976
2000
|
function s() {
|
|
1977
|
-
var
|
|
1978
|
-
l.value && (l.value.refreshOptions(), l.value.activeDescendantId = (
|
|
1979
|
-
const
|
|
1980
|
-
(
|
|
2001
|
+
var S, w;
|
|
2002
|
+
l.value && (l.value.refreshOptions(), l.value.activeDescendantId = (S = l.value.optionEls[0]) == null ? void 0 : S.id, l.value.focusedIndex = 0);
|
|
2003
|
+
const y = document.querySelector(`#${t.optionsId} [data-component="bs-dropdown-option"]`);
|
|
2004
|
+
(w = y == null ? void 0 : y.focus) == null || w.call(y, { preventScroll: !0 });
|
|
1981
2005
|
}
|
|
1982
|
-
function
|
|
1983
|
-
var
|
|
2006
|
+
function r() {
|
|
2007
|
+
var y;
|
|
1984
2008
|
if (l.value) {
|
|
1985
2009
|
l.value.refreshOptions();
|
|
1986
|
-
const
|
|
1987
|
-
(
|
|
2010
|
+
const S = l.value.focusedIndex, w = l.value.optionEls[S];
|
|
2011
|
+
(y = w == null ? void 0 : w.focus) == null || y.call(w), l.value.activeDescendantId = w == null ? void 0 : w.id;
|
|
1988
2012
|
}
|
|
1989
2013
|
}
|
|
1990
|
-
function c(
|
|
1991
|
-
const
|
|
2014
|
+
function c(y = []) {
|
|
2015
|
+
const S = new Set(y), w = [], I = [];
|
|
1992
2016
|
t.options.forEach((q) => {
|
|
1993
|
-
const
|
|
1994
|
-
|
|
1995
|
-
}),
|
|
1996
|
-
u.value =
|
|
1997
|
-
o &&
|
|
2017
|
+
const B = { ...q }, h = `${t.optionsId}-${q.value}-cb`;
|
|
2018
|
+
S.has(q.value) ? (B.checkbox = { inputId: h, checked: !0 }, w.push(B)) : (B.checkbox = { inputId: h, checked: !1 }, I.push(B));
|
|
2019
|
+
}), i.value = w, pe(() => {
|
|
2020
|
+
u.value = I, pe(() => {
|
|
2021
|
+
o && r(), o = !1;
|
|
1998
2022
|
});
|
|
1999
2023
|
});
|
|
2000
2024
|
}
|
|
2001
|
-
function f(
|
|
2002
|
-
const
|
|
2003
|
-
return t.options.forEach((
|
|
2004
|
-
|
|
2005
|
-
}),
|
|
2025
|
+
function f(y = []) {
|
|
2026
|
+
const S = new Set(y), w = [];
|
|
2027
|
+
return t.options.forEach((I) => {
|
|
2028
|
+
S.has(I.value) && w.push(I.value);
|
|
2029
|
+
}), w;
|
|
2006
2030
|
}
|
|
2007
|
-
function
|
|
2008
|
-
const
|
|
2009
|
-
o = !0, n("update:selectedOptions",
|
|
2031
|
+
function T(y) {
|
|
2032
|
+
const S = t.selectedOptions.includes(y) ? t.selectedOptions.filter((w) => w !== y) : f([...t.selectedOptions, y]);
|
|
2033
|
+
o = !0, n("update:selectedOptions", S);
|
|
2010
2034
|
}
|
|
2011
|
-
return (
|
|
2035
|
+
return (y, S) => (d(), L(Ue, {
|
|
2012
2036
|
ref_key: "optlist",
|
|
2013
2037
|
ref: l,
|
|
2014
2038
|
"aria-multiselectable": "true",
|
|
@@ -2017,19 +2041,19 @@ const Sa = {
|
|
|
2017
2041
|
multiselect: "",
|
|
2018
2042
|
"options-id": e.optionsId,
|
|
2019
2043
|
shown: e.shown,
|
|
2020
|
-
"onUpdate:modelValue":
|
|
2044
|
+
"onUpdate:modelValue": T
|
|
2021
2045
|
}, {
|
|
2022
|
-
default:
|
|
2023
|
-
var
|
|
2046
|
+
default: E(() => {
|
|
2047
|
+
var w;
|
|
2024
2048
|
return [
|
|
2025
|
-
|
|
2026
|
-
options:
|
|
2049
|
+
V($e, {
|
|
2050
|
+
options: i.value,
|
|
2027
2051
|
"show-no-options": !1
|
|
2028
2052
|
}, null, 8, ["options"]),
|
|
2029
|
-
$
|
|
2030
|
-
[
|
|
2053
|
+
Se($("li", Ga, Ka, 512), [
|
|
2054
|
+
[we, (w = i.value) == null ? void 0 : w.length]
|
|
2031
2055
|
]),
|
|
2032
|
-
|
|
2056
|
+
V($e, {
|
|
2033
2057
|
options: u.value,
|
|
2034
2058
|
"show-no-options": !1
|
|
2035
2059
|
}, null, 8, ["options"])
|
|
@@ -2038,10 +2062,10 @@ const Sa = {
|
|
|
2038
2062
|
_: 1
|
|
2039
2063
|
}, 8, ["label", "options-id", "shown"]));
|
|
2040
2064
|
}
|
|
2041
|
-
},
|
|
2065
|
+
}, Qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2042
2066
|
__proto__: null,
|
|
2043
|
-
default:
|
|
2044
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2067
|
+
default: Ya
|
|
2068
|
+
}, Symbol.toStringTag, { value: "Module" })), Xa = {
|
|
2045
2069
|
__name: "BsDropdownWithOptionsNew",
|
|
2046
2070
|
props: {
|
|
2047
2071
|
// DROPDOWN PROPS
|
|
@@ -2116,17 +2140,17 @@ const Sa = {
|
|
|
2116
2140
|
"after-leave"
|
|
2117
2141
|
],
|
|
2118
2142
|
setup(e, { emit: a }) {
|
|
2119
|
-
const t = a, n =
|
|
2143
|
+
const t = a, n = m(!1);
|
|
2120
2144
|
function l() {
|
|
2121
2145
|
n.value = !0;
|
|
2122
2146
|
}
|
|
2123
|
-
function
|
|
2147
|
+
function i(o) {
|
|
2124
2148
|
n.value = !1, t("update:modelValue", o), t("close");
|
|
2125
2149
|
}
|
|
2126
2150
|
function u() {
|
|
2127
2151
|
n.value && (n.value = !1, t("close"));
|
|
2128
2152
|
}
|
|
2129
|
-
return (o, s) => (d(),
|
|
2153
|
+
return (o, s) => (d(), L(p(st), {
|
|
2130
2154
|
"anchor-id": e.anchorId,
|
|
2131
2155
|
breakout: e.breakout,
|
|
2132
2156
|
"container-id": e.containerId,
|
|
@@ -2138,22 +2162,22 @@ const Sa = {
|
|
|
2138
2162
|
"use-mobile-style": e.useMobileStyle,
|
|
2139
2163
|
width: e.width,
|
|
2140
2164
|
onClose: u,
|
|
2141
|
-
onAfterEnter: s[0] || (s[0] = (
|
|
2165
|
+
onAfterEnter: s[0] || (s[0] = (r) => t("after-enter")),
|
|
2142
2166
|
onEnter: l,
|
|
2143
|
-
onAfterLeave: s[1] || (s[1] = (
|
|
2167
|
+
onAfterLeave: s[1] || (s[1] = (r) => t("after-leave"))
|
|
2144
2168
|
}, {
|
|
2145
|
-
default:
|
|
2146
|
-
|
|
2169
|
+
default: E(() => [
|
|
2170
|
+
V(p(Ue), {
|
|
2147
2171
|
"focus-on-show": e.focusOnShow,
|
|
2148
2172
|
label: e.label,
|
|
2149
2173
|
"model-value": e.modelValue,
|
|
2150
2174
|
"options-id": e.optionsId,
|
|
2151
2175
|
"prevent-tab": e.preventTab,
|
|
2152
|
-
"onUpdate:modelValue":
|
|
2176
|
+
"onUpdate:modelValue": i,
|
|
2153
2177
|
onClose: u
|
|
2154
2178
|
}, {
|
|
2155
|
-
default:
|
|
2156
|
-
|
|
2179
|
+
default: E(() => [
|
|
2180
|
+
D(o.$slots, "default")
|
|
2157
2181
|
]),
|
|
2158
2182
|
_: 3
|
|
2159
2183
|
}, 8, ["focus-on-show", "label", "model-value", "options-id", "prevent-tab"])
|
|
@@ -2161,7 +2185,7 @@ const Sa = {
|
|
|
2161
2185
|
_: 3
|
|
2162
2186
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
|
|
2163
2187
|
}
|
|
2164
|
-
},
|
|
2188
|
+
}, Ge = {
|
|
2165
2189
|
__name: "BsDropdownWithOptions",
|
|
2166
2190
|
props: {
|
|
2167
2191
|
anchorId: {
|
|
@@ -2279,11 +2303,11 @@ const Sa = {
|
|
|
2279
2303
|
"after-leave"
|
|
2280
2304
|
],
|
|
2281
2305
|
setup(e, { emit: a }) {
|
|
2282
|
-
const t = e, n = a, { transition: l } = ve(t),
|
|
2283
|
-
function
|
|
2306
|
+
const t = e, n = a, { transition: l } = ve(t), i = v(() => t.width === "toggle" ? "anchor" : t.width), u = v(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = v(() => t.toggleId ? t.toggleId : t.anchorId), s = v(() => t.selectedValue || t.modelValue);
|
|
2307
|
+
function r(c) {
|
|
2284
2308
|
n("optselected", c), n("update:modelValue", c);
|
|
2285
2309
|
}
|
|
2286
|
-
return (c, f) => (d(),
|
|
2310
|
+
return (c, f) => (d(), L(Xa, {
|
|
2287
2311
|
"anchor-id": o.value,
|
|
2288
2312
|
breakout: e.breakout,
|
|
2289
2313
|
"container-id": e.containerId,
|
|
@@ -2298,19 +2322,19 @@ const Sa = {
|
|
|
2298
2322
|
"prevent-tab": e.preventTab,
|
|
2299
2323
|
shown: p(l),
|
|
2300
2324
|
"use-mobile-style": e.useMobileStyle,
|
|
2301
|
-
width:
|
|
2302
|
-
onClose: f[0] || (f[0] = (
|
|
2303
|
-
onAfterEnter: f[1] || (f[1] = (
|
|
2304
|
-
onAfterLeave: f[2] || (f[2] = (
|
|
2305
|
-
"onUpdate:modelValue":
|
|
2325
|
+
width: i.value,
|
|
2326
|
+
onClose: f[0] || (f[0] = (T) => n("close")),
|
|
2327
|
+
onAfterEnter: f[1] || (f[1] = (T) => n("after-enter")),
|
|
2328
|
+
onAfterLeave: f[2] || (f[2] = (T) => n("after-leave")),
|
|
2329
|
+
"onUpdate:modelValue": r
|
|
2306
2330
|
}, {
|
|
2307
|
-
default:
|
|
2308
|
-
|
|
2331
|
+
default: E(() => [
|
|
2332
|
+
D(c.$slots, "default")
|
|
2309
2333
|
]),
|
|
2310
2334
|
_: 3
|
|
2311
2335
|
}, 8, ["anchor-id", "breakout", "container-id", "focus-on-show", "helper-description", "helper-text", "label", "model-value", "options-id", "position", "preloaded", "prevent-tab", "shown", "use-mobile-style", "width"]));
|
|
2312
2336
|
}
|
|
2313
|
-
},
|
|
2337
|
+
}, Za = ["aria-controls", "aria-expanded", "data-open", "data-size", "disabled"], Ja = {
|
|
2314
2338
|
__name: "BsFilterButton",
|
|
2315
2339
|
props: {
|
|
2316
2340
|
badgeCount: {
|
|
@@ -2350,21 +2374,21 @@ const Sa = {
|
|
|
2350
2374
|
disabled: e.disabled,
|
|
2351
2375
|
type: "button"
|
|
2352
2376
|
}, [
|
|
2353
|
-
t.value ? (d(),
|
|
2377
|
+
t.value ? (d(), L(Gt, {
|
|
2354
2378
|
key: 0,
|
|
2355
2379
|
color: "blue",
|
|
2356
2380
|
count: e.badgeCount,
|
|
2357
2381
|
label: "active filter",
|
|
2358
2382
|
position: "left",
|
|
2359
2383
|
variant: "notext"
|
|
2360
|
-
}, null, 8, ["count"])) :
|
|
2361
|
-
|
|
2362
|
-
|
|
2384
|
+
}, null, 8, ["count"])) : k("", !0),
|
|
2385
|
+
D(n.$slots, "label", {}, () => [
|
|
2386
|
+
H(x(e.label), 1)
|
|
2363
2387
|
]),
|
|
2364
|
-
|
|
2365
|
-
], 8,
|
|
2388
|
+
V(p(it))
|
|
2389
|
+
], 8, Za));
|
|
2366
2390
|
}
|
|
2367
|
-
},
|
|
2391
|
+
}, _a = ["id"], ql = {
|
|
2368
2392
|
__name: "BsDropdownWithToggle",
|
|
2369
2393
|
props: {
|
|
2370
2394
|
breakout: {
|
|
@@ -2427,32 +2451,32 @@ const Sa = {
|
|
|
2427
2451
|
},
|
|
2428
2452
|
emits: ["update:selectedOptions", "update:selectedOption", "toggled", "close"],
|
|
2429
2453
|
setup(e, { emit: a }) {
|
|
2430
|
-
const t = e, n = a, l =
|
|
2431
|
-
|
|
2432
|
-
|
|
2454
|
+
const t = e, n = a, l = m(!1), i = m(null), u = v(() => je(async () => await (t.multiselect ? Promise.resolve().then(() => Qa) : Promise.resolve().then(() => qa)))), [o, s] = Z(2);
|
|
2455
|
+
z(l, (S) => {
|
|
2456
|
+
S && i.value.$el.blur();
|
|
2433
2457
|
});
|
|
2434
|
-
function
|
|
2435
|
-
l.value = !1, n("close"),
|
|
2458
|
+
function r() {
|
|
2459
|
+
l.value = !1, n("close"), i.value.$el.focus();
|
|
2436
2460
|
}
|
|
2437
2461
|
function c() {
|
|
2438
|
-
l.value &&
|
|
2462
|
+
l.value && r();
|
|
2439
2463
|
}
|
|
2440
2464
|
function f() {
|
|
2441
2465
|
l.value = !0;
|
|
2442
2466
|
}
|
|
2443
|
-
function
|
|
2444
|
-
n("update:selectedOptions",
|
|
2467
|
+
function T(S) {
|
|
2468
|
+
n("update:selectedOptions", S);
|
|
2445
2469
|
}
|
|
2446
|
-
function
|
|
2447
|
-
t.multiselect || (n("update:selectedOption",
|
|
2470
|
+
function y(S) {
|
|
2471
|
+
t.multiselect || (n("update:selectedOption", S), r());
|
|
2448
2472
|
}
|
|
2449
|
-
return (
|
|
2473
|
+
return (S, w) => (d(), b("div", {
|
|
2450
2474
|
class: "bs-dropdown-with-toggle",
|
|
2451
|
-
id:
|
|
2475
|
+
id: S.$attrs.id
|
|
2452
2476
|
}, [
|
|
2453
|
-
|
|
2477
|
+
V(Ja, {
|
|
2454
2478
|
ref_key: "toggleRef",
|
|
2455
|
-
ref:
|
|
2479
|
+
ref: i,
|
|
2456
2480
|
"aria-controls": p(s),
|
|
2457
2481
|
"aria-expanded": e.open,
|
|
2458
2482
|
disabled: e.disabled,
|
|
@@ -2460,16 +2484,16 @@ const Sa = {
|
|
|
2460
2484
|
open: e.open,
|
|
2461
2485
|
"options-id": p(s),
|
|
2462
2486
|
size: e.toggleSize,
|
|
2463
|
-
onClick:
|
|
2487
|
+
onClick: w[0] || (w[0] = (I) => S.$emit("toggled"))
|
|
2464
2488
|
}, {
|
|
2465
|
-
label:
|
|
2466
|
-
|
|
2467
|
-
|
|
2489
|
+
label: E(() => [
|
|
2490
|
+
D(S.$slots, "toggle-label", {}, () => [
|
|
2491
|
+
H(x(e.toggleLabel), 1)
|
|
2468
2492
|
])
|
|
2469
2493
|
]),
|
|
2470
2494
|
_: 3
|
|
2471
2495
|
}, 8, ["aria-controls", "aria-expanded", "disabled", "id", "open", "options-id", "size"]),
|
|
2472
|
-
|
|
2496
|
+
V(st, {
|
|
2473
2497
|
shown: e.open,
|
|
2474
2498
|
"anchor-id": p(o),
|
|
2475
2499
|
breakout: e.breakout,
|
|
@@ -2482,20 +2506,20 @@ const Sa = {
|
|
|
2482
2506
|
onClose: c,
|
|
2483
2507
|
onEnter: f
|
|
2484
2508
|
}, {
|
|
2485
|
-
default:
|
|
2486
|
-
|
|
2509
|
+
default: E(() => [
|
|
2510
|
+
V(p(u), {
|
|
2487
2511
|
label: e.dropdownLabel,
|
|
2488
2512
|
"model-value": e.selectedOption,
|
|
2489
2513
|
options: e.options,
|
|
2490
2514
|
"options-id": p(s),
|
|
2491
2515
|
"selected-options": e.selectedOptions,
|
|
2492
2516
|
shown: e.open,
|
|
2493
|
-
"onUpdate:modelValue":
|
|
2494
|
-
"onUpdate:selectedOptions":
|
|
2495
|
-
onClose:
|
|
2517
|
+
"onUpdate:modelValue": y,
|
|
2518
|
+
"onUpdate:selectedOptions": T,
|
|
2519
|
+
onClose: w[1] || (w[1] = (I) => e.multiselect ? void 0 : c())
|
|
2496
2520
|
}, {
|
|
2497
|
-
default:
|
|
2498
|
-
e.multiselect ?
|
|
2521
|
+
default: E(() => [
|
|
2522
|
+
e.multiselect ? k("", !0) : (d(), L($e, {
|
|
2499
2523
|
key: 0,
|
|
2500
2524
|
options: e.options
|
|
2501
2525
|
}, null, 8, ["options"]))
|
|
@@ -2505,26 +2529,26 @@ const Sa = {
|
|
|
2505
2529
|
]),
|
|
2506
2530
|
_: 1
|
|
2507
2531
|
}, 8, ["shown", "anchor-id", "breakout", "helper-text", "helper-description", "position", "use-mobile-style", "width"])
|
|
2508
|
-
], 8,
|
|
2532
|
+
], 8, _a));
|
|
2509
2533
|
}
|
|
2510
|
-
},
|
|
2534
|
+
}, en = ["view-box"], tn = ["id"], an = ["offset", "stop-color"], Pl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2511
2535
|
__name: "BsIconGradientWrapper",
|
|
2512
2536
|
setup(e) {
|
|
2513
|
-
const a =
|
|
2537
|
+
const a = m(null), t = m(null), n = [
|
|
2514
2538
|
{ offset: 0.1326, color: "#EE282A" },
|
|
2515
2539
|
{ offset: 0.5466, color: "#1C0087" },
|
|
2516
2540
|
{ offset: 0.9715, color: "#0086EA" }
|
|
2517
|
-
], [l] =
|
|
2518
|
-
return
|
|
2541
|
+
], [l] = Z();
|
|
2542
|
+
return Y(() => {
|
|
2519
2543
|
t.value = a.value.querySelector("svg").getAttribute("viewBox") || "0 0 0 0";
|
|
2520
|
-
}), (
|
|
2521
|
-
|
|
2544
|
+
}), (i, u) => (d(), b(G, null, [
|
|
2545
|
+
$("span", M({
|
|
2522
2546
|
ref_key: "svgWrapperRef",
|
|
2523
2547
|
ref: a,
|
|
2524
2548
|
class: "bs-icon-gradient-wrapper",
|
|
2525
2549
|
style: `fill: url(#${p(l)});`
|
|
2526
|
-
},
|
|
2527
|
-
|
|
2550
|
+
}, i.$attrs), [
|
|
2551
|
+
D(i.$slots, "default")
|
|
2528
2552
|
], 16),
|
|
2529
2553
|
(d(), b("svg", {
|
|
2530
2554
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2532,7 +2556,7 @@ const Sa = {
|
|
|
2532
2556
|
width: "0",
|
|
2533
2557
|
height: "0"
|
|
2534
2558
|
}, [
|
|
2535
|
-
|
|
2559
|
+
$("linearGradient", {
|
|
2536
2560
|
id: p(l),
|
|
2537
2561
|
x1: "0",
|
|
2538
2562
|
y1: "0",
|
|
@@ -2540,13 +2564,13 @@ const Sa = {
|
|
|
2540
2564
|
y2: "100%",
|
|
2541
2565
|
"gradient-units": "userSpaceOnUse"
|
|
2542
2566
|
}, [
|
|
2543
|
-
(d(), b(G, null,
|
|
2567
|
+
(d(), b(G, null, J(n, (o) => $("stop", {
|
|
2544
2568
|
key: o.offset,
|
|
2545
2569
|
offset: o.offset,
|
|
2546
2570
|
"stop-color": o.color
|
|
2547
|
-
}, null, 8,
|
|
2548
|
-
], 8,
|
|
2549
|
-
], 8,
|
|
2571
|
+
}, null, 8, an)), 64))
|
|
2572
|
+
], 8, tn)
|
|
2573
|
+
], 8, en))
|
|
2550
2574
|
], 64));
|
|
2551
2575
|
}
|
|
2552
2576
|
}), Ml = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
@@ -2596,46 +2620,46 @@ const Sa = {
|
|
|
2596
2620
|
},
|
|
2597
2621
|
emits: ["update:modelValue"],
|
|
2598
2622
|
setup(e, { emit: a }) {
|
|
2599
|
-
const t = e, [n, l] =
|
|
2600
|
-
var
|
|
2601
|
-
return ((c = (
|
|
2623
|
+
const t = e, [n, l] = Z(2), i = v(() => Be.concat(t.passAttrs.split(",")).concat("type")), u = v(() => {
|
|
2624
|
+
var r, c;
|
|
2625
|
+
return ((c = (r = t.hints) == null ? void 0 : r.join) == null ? void 0 : c.call(r, `
|
|
2602
2626
|
`)) || t.hints;
|
|
2603
2627
|
}), o = v(() => t.error && t.errorMsg || t.hint || u.value || void 0), s = v(() => t.inputId || n.value);
|
|
2604
|
-
return (
|
|
2605
|
-
e.label ||
|
|
2628
|
+
return (r, c) => (d(), b("div", M({ "data-component": "bs-input-field" }, p(K)(r.$attrs, i.value).remaining), [
|
|
2629
|
+
e.label || r.$slots.label ? (d(), L(oe, {
|
|
2606
2630
|
key: 0,
|
|
2607
|
-
for:
|
|
2631
|
+
for: r.$attrs.id || s.value,
|
|
2608
2632
|
disabled: e.disabled,
|
|
2609
2633
|
required: e.required
|
|
2610
2634
|
}, {
|
|
2611
|
-
default:
|
|
2612
|
-
|
|
2613
|
-
|
|
2635
|
+
default: E(() => [
|
|
2636
|
+
D(r.$slots, "label", {}, () => [
|
|
2637
|
+
H(x(e.label), 1)
|
|
2614
2638
|
])
|
|
2615
2639
|
]),
|
|
2616
2640
|
_: 3
|
|
2617
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
2618
|
-
|
|
2641
|
+
}, 8, ["for", "disabled", "required"])) : k("", !0),
|
|
2642
|
+
V(be, M({
|
|
2619
2643
|
disabled: e.disabled,
|
|
2620
2644
|
error: e.error,
|
|
2621
2645
|
"hint-id": p(l),
|
|
2622
|
-
id:
|
|
2646
|
+
id: r.$attrs.id || s.value,
|
|
2623
2647
|
placeholder: e.placeholder,
|
|
2624
2648
|
required: e.required,
|
|
2625
2649
|
type: e.type,
|
|
2626
2650
|
value: e.value || e.modelValue,
|
|
2627
|
-
"onUpdate:modelValue": c[0] || (c[0] = (f) =>
|
|
2628
|
-
}, p(
|
|
2629
|
-
o.value ? (d(),
|
|
2651
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => r.$emit("update:modelValue", f))
|
|
2652
|
+
}, p(K)(r.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
|
|
2653
|
+
o.value ? (d(), L(he, {
|
|
2630
2654
|
key: 1,
|
|
2631
2655
|
error: e.error,
|
|
2632
2656
|
"error-msg": e.errorMsg,
|
|
2633
2657
|
hint: e.hint || u.value,
|
|
2634
2658
|
"hint-id": p(l)
|
|
2635
|
-
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) :
|
|
2659
|
+
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : k("", !0)
|
|
2636
2660
|
], 16));
|
|
2637
2661
|
}
|
|
2638
|
-
}),
|
|
2662
|
+
}), tt = {
|
|
2639
2663
|
A: "🇦",
|
|
2640
2664
|
B: "🇧",
|
|
2641
2665
|
C: "🇨",
|
|
@@ -2662,7 +2686,7 @@ const Sa = {
|
|
|
2662
2686
|
X: "🇽",
|
|
2663
2687
|
Y: "🇾",
|
|
2664
2688
|
Z: "🇿"
|
|
2665
|
-
},
|
|
2689
|
+
}, Me = {
|
|
2666
2690
|
data: {
|
|
2667
2691
|
allCountries: null,
|
|
2668
2692
|
byCountryCode: null,
|
|
@@ -2688,8 +2712,8 @@ const Sa = {
|
|
|
2688
2712
|
* @returns {Country[]} an array of country objects
|
|
2689
2713
|
*/
|
|
2690
2714
|
initSourceData() {
|
|
2691
|
-
return this.data.allCountries || (this.data.allCountries =
|
|
2692
|
-
const a =
|
|
2715
|
+
return this.data.allCountries || (this.data.allCountries = Et().map((e) => {
|
|
2716
|
+
const a = Dt(e), t = tt[a[0]] + tt[a[1]] || "";
|
|
2693
2717
|
return {
|
|
2694
2718
|
label: `+${e}`,
|
|
2695
2719
|
flag: t,
|
|
@@ -2703,10 +2727,10 @@ const Sa = {
|
|
|
2703
2727
|
this.data[e][t[a]] = t;
|
|
2704
2728
|
}));
|
|
2705
2729
|
}
|
|
2706
|
-
},
|
|
2730
|
+
}, nn = ["id", "aria-controls", "aria-expanded", "aria-label", "disabled"], ln = { key: 0 }, on = {
|
|
2707
2731
|
"aria-hidden": "true",
|
|
2708
2732
|
style: { width: "1.25rem" }
|
|
2709
|
-
},
|
|
2733
|
+
}, rn = { "aria-hidden": "true" }, zl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2710
2734
|
__name: "BsInputPhone",
|
|
2711
2735
|
props: {
|
|
2712
2736
|
deferValidation: {
|
|
@@ -2756,7 +2780,7 @@ const Sa = {
|
|
|
2756
2780
|
},
|
|
2757
2781
|
emits: ["update:modelValue", "input-blur"],
|
|
2758
2782
|
setup(e, { expose: a, emit: t }) {
|
|
2759
|
-
const n = e, l = t,
|
|
2783
|
+
const n = e, l = t, i = [
|
|
2760
2784
|
"ArrowDown",
|
|
2761
2785
|
"ArrowLeft",
|
|
2762
2786
|
"ArrowRight",
|
|
@@ -2768,155 +2792,155 @@ const Sa = {
|
|
|
2768
2792
|
"Escape",
|
|
2769
2793
|
"Home",
|
|
2770
2794
|
"Tab"
|
|
2771
|
-
], u =
|
|
2795
|
+
], u = m(null), o = m(1), s = m([]), r = m(null), [
|
|
2772
2796
|
c,
|
|
2773
2797
|
f,
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
] =
|
|
2798
|
+
T,
|
|
2799
|
+
y
|
|
2800
|
+
] = Z(4), S = m(!1), w = m(""), I = m(""), q = m(!1), B = m(!1), h = m(!0);
|
|
2777
2801
|
a({
|
|
2778
2802
|
validationErr: q,
|
|
2779
|
-
validationErrMsg:
|
|
2803
|
+
validationErrMsg: I
|
|
2780
2804
|
});
|
|
2781
|
-
const C = v(() =>
|
|
2782
|
-
|
|
2783
|
-
l("update:modelValue",
|
|
2784
|
-
}),
|
|
2785
|
-
function
|
|
2786
|
-
|
|
2805
|
+
const C = v(() => w.value ? `+${o.value}${w.value}` : ""), O = v(() => `Country code: ${o.value}. Click to change.`), j = v(() => h.value ? n.errorMsg || I.value : ""), R = v(() => n.error || q.value), F = v(() => n.hint || R.value && j.value), Q = v(() => h.value && R.value);
|
|
2806
|
+
z(C, (P) => {
|
|
2807
|
+
l("update:modelValue", P), ge(P);
|
|
2808
|
+
}), z(() => n.modelValue, ie), Oe(), Y(() => S.value = !0);
|
|
2809
|
+
function ie(P, U) {
|
|
2810
|
+
P === "" && P !== U && (w.value = "");
|
|
2787
2811
|
}
|
|
2788
|
-
function
|
|
2789
|
-
var
|
|
2790
|
-
|
|
2812
|
+
function ee() {
|
|
2813
|
+
var P;
|
|
2814
|
+
B.value && (B.value = !1, (P = u.value) == null || P.focus());
|
|
2791
2815
|
}
|
|
2792
|
-
function
|
|
2793
|
-
var
|
|
2794
|
-
o.value =
|
|
2816
|
+
function Le(P) {
|
|
2817
|
+
var U;
|
|
2818
|
+
o.value = P, B.value = !1, (U = u.value) == null || U.focus(), me(P);
|
|
2795
2819
|
}
|
|
2796
|
-
function
|
|
2820
|
+
function Ve() {
|
|
2797
2821
|
n.deferValidation && (h.value = !0), l("input-blur");
|
|
2798
2822
|
}
|
|
2799
|
-
function
|
|
2800
|
-
|
|
2801
|
-
}
|
|
2802
|
-
function Ee(M) {
|
|
2803
|
-
var j, U;
|
|
2804
|
-
!((U = (j = M.key) == null ? void 0 : j.match) != null && U.call(j, /[0-9]/)) && !r.includes(M.key) && !M.ctrlKey && !M.metaKey && M.preventDefault();
|
|
2823
|
+
function Ee(P) {
|
|
2824
|
+
w.value = P.target.value, n.deferValidation && (h.value = !1);
|
|
2805
2825
|
}
|
|
2806
|
-
function De() {
|
|
2807
|
-
|
|
2826
|
+
function De(P) {
|
|
2827
|
+
var U, W;
|
|
2828
|
+
!((W = (U = P.key) == null ? void 0 : U.match) != null && W.call(U, /[0-9]/)) && !i.includes(P.key) && !P.ctrlKey && !P.metaKey && P.preventDefault();
|
|
2808
2829
|
}
|
|
2809
2830
|
function Oe() {
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2831
|
+
Me.initSourceData(), qe(), me(o.value), ge(C.value);
|
|
2832
|
+
}
|
|
2833
|
+
function qe() {
|
|
2834
|
+
var U, W;
|
|
2835
|
+
let P = Qe(n.modelValue);
|
|
2836
|
+
P.valid || P.countryCode && ((W = (U = n.modelValue) == null ? void 0 : U.startsWith) != null && W.call(U, "+")) ? (o.value = P.countryCode, w.value = P.number.significant) : w.value = n.modelValue, s.value = Me.data.allCountries.map((fe) => ({
|
|
2837
|
+
...fe,
|
|
2838
|
+
isSelected: o.value === fe
|
|
2815
2839
|
}));
|
|
2816
2840
|
}
|
|
2817
|
-
function me(
|
|
2818
|
-
|
|
2841
|
+
function me(P) {
|
|
2842
|
+
r.value = Me.getCountryByCountryCode(P);
|
|
2819
2843
|
}
|
|
2820
|
-
function ge(
|
|
2821
|
-
q.value =
|
|
2844
|
+
function ge(P) {
|
|
2845
|
+
q.value = P ? !Qe(P).valid : !1, I.value = q.value ? "Invalid phone number" : "";
|
|
2822
2846
|
}
|
|
2823
|
-
return (
|
|
2847
|
+
return (P, U) => (d(), b("div", M({
|
|
2824
2848
|
class: "bs-input-phone",
|
|
2825
2849
|
"data-component": "bs-input-phone"
|
|
2826
|
-
}, p(
|
|
2827
|
-
|
|
2828
|
-
for:
|
|
2850
|
+
}, p(K)(P.$attrs, p(Be)).remaining), [
|
|
2851
|
+
V(oe, {
|
|
2852
|
+
for: P.$attrs.id || e.inputId || p(y),
|
|
2829
2853
|
required: e.required,
|
|
2830
|
-
class:
|
|
2854
|
+
class: ne({ "visually-hidden": e.hideLabel })
|
|
2831
2855
|
}, {
|
|
2832
|
-
default:
|
|
2833
|
-
|
|
2856
|
+
default: E(() => [
|
|
2857
|
+
H(x(e.label), 1)
|
|
2834
2858
|
]),
|
|
2835
2859
|
_: 1
|
|
2836
2860
|
}, 8, ["for", "required", "class"]),
|
|
2837
|
-
|
|
2861
|
+
V(xe, {
|
|
2838
2862
|
disabled: e.disabled,
|
|
2839
|
-
error:
|
|
2863
|
+
error: Q.value,
|
|
2840
2864
|
multifocus: !0,
|
|
2841
2865
|
variant: "inner-bordered"
|
|
2842
2866
|
}, {
|
|
2843
|
-
default:
|
|
2844
|
-
var
|
|
2867
|
+
default: E(() => {
|
|
2868
|
+
var W;
|
|
2845
2869
|
return [
|
|
2846
|
-
|
|
2870
|
+
$("button", {
|
|
2847
2871
|
id: p(c),
|
|
2848
2872
|
ref_key: "countryCodesToggle",
|
|
2849
2873
|
ref: u,
|
|
2850
2874
|
"aria-controls": p(f),
|
|
2851
|
-
"aria-expanded":
|
|
2875
|
+
"aria-expanded": B.value,
|
|
2852
2876
|
"aria-haspopup": "listbox",
|
|
2853
|
-
"aria-label":
|
|
2877
|
+
"aria-label": O.value,
|
|
2854
2878
|
disabled: e.disabled,
|
|
2855
2879
|
type: "button",
|
|
2856
|
-
onClick:
|
|
2880
|
+
onClick: U[0] || (U[0] = (fe) => B.value = !B.value)
|
|
2857
2881
|
}, [
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
], 8,
|
|
2862
|
-
|
|
2863
|
-
"input-id":
|
|
2882
|
+
$("span", null, x((W = r.value) == null ? void 0 : W.flag), 1),
|
|
2883
|
+
$("span", null, "+" + x(o.value), 1),
|
|
2884
|
+
V(p(bt), { size: "sm" })
|
|
2885
|
+
], 8, nn),
|
|
2886
|
+
V(be, M({
|
|
2887
|
+
"input-id": P.$attrs.id || e.inputId || p(y),
|
|
2864
2888
|
disabled: e.disabled,
|
|
2865
|
-
"hint-id": p(
|
|
2889
|
+
"hint-id": p(T),
|
|
2866
2890
|
placeholder: e.placeholder,
|
|
2867
|
-
value:
|
|
2891
|
+
value: w.value,
|
|
2868
2892
|
"data-autowidth": "",
|
|
2869
2893
|
type: "tel"
|
|
2870
|
-
}, p(
|
|
2871
|
-
onInput:
|
|
2872
|
-
onFocusout:
|
|
2873
|
-
onKeydown:
|
|
2894
|
+
}, p(K)(P.$attrs, p(Be)).filtered, {
|
|
2895
|
+
onInput: Ee,
|
|
2896
|
+
onFocusout: Ve,
|
|
2897
|
+
onKeydown: De
|
|
2874
2898
|
}), null, 16, ["input-id", "disabled", "hint-id", "placeholder", "value"])
|
|
2875
2899
|
];
|
|
2876
2900
|
}),
|
|
2877
2901
|
_: 1
|
|
2878
2902
|
}, 8, ["disabled", "error"]),
|
|
2879
|
-
|
|
2880
|
-
error:
|
|
2881
|
-
"error-msg":
|
|
2903
|
+
Se(V(he, {
|
|
2904
|
+
error: R.value,
|
|
2905
|
+
"error-msg": j.value,
|
|
2882
2906
|
hint: e.hint,
|
|
2883
|
-
"hint-id": p(
|
|
2907
|
+
"hint-id": p(T)
|
|
2884
2908
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
2885
|
-
[
|
|
2909
|
+
[we, F.value]
|
|
2886
2910
|
]),
|
|
2887
|
-
|
|
2888
|
-
|
|
2911
|
+
S.value ? (d(), b("div", ln, [
|
|
2912
|
+
V(Ge, {
|
|
2889
2913
|
"anchor-id": p(c),
|
|
2890
2914
|
"helper-text": "Country Code",
|
|
2891
2915
|
label: "Country Code",
|
|
2892
2916
|
"model-value": o.value,
|
|
2893
2917
|
"options-id": p(f),
|
|
2894
2918
|
preloaded: "",
|
|
2895
|
-
shown:
|
|
2919
|
+
shown: B.value,
|
|
2896
2920
|
width: "content",
|
|
2897
|
-
onClose:
|
|
2898
|
-
"onUpdate:modelValue":
|
|
2921
|
+
onClose: ee,
|
|
2922
|
+
"onUpdate:modelValue": Le
|
|
2899
2923
|
}, {
|
|
2900
|
-
default:
|
|
2901
|
-
|
|
2902
|
-
"aria-label":
|
|
2903
|
-
key:
|
|
2904
|
-
value: `${
|
|
2924
|
+
default: E(() => [
|
|
2925
|
+
S.value ? (d(!0), b(G, { key: 0 }, J(s.value, (W) => (d(), L(We, {
|
|
2926
|
+
"aria-label": W.value,
|
|
2927
|
+
key: W.value,
|
|
2928
|
+
value: `${W.value}`,
|
|
2905
2929
|
variant: "2-col"
|
|
2906
2930
|
}, {
|
|
2907
|
-
default:
|
|
2908
|
-
|
|
2909
|
-
|
|
2931
|
+
default: E(() => [
|
|
2932
|
+
$("span", on, x(W == null ? void 0 : W.flag), 1),
|
|
2933
|
+
$("span", rn, x(W.label), 1)
|
|
2910
2934
|
]),
|
|
2911
2935
|
_: 2
|
|
2912
|
-
}, 1032, ["aria-label", "value"]))), 128)) :
|
|
2936
|
+
}, 1032, ["aria-label", "value"]))), 128)) : k("", !0)
|
|
2913
2937
|
]),
|
|
2914
2938
|
_: 1
|
|
2915
2939
|
}, 8, ["anchor-id", "model-value", "options-id", "shown"])
|
|
2916
|
-
])) :
|
|
2940
|
+
])) : k("", !0)
|
|
2917
2941
|
], 16));
|
|
2918
2942
|
}
|
|
2919
|
-
}),
|
|
2943
|
+
}), sn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2920
2944
|
__name: "BsInputSearch",
|
|
2921
2945
|
props: {
|
|
2922
2946
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -2961,38 +2985,65 @@ const Sa = {
|
|
|
2961
2985
|
},
|
|
2962
2986
|
emits: ["clear", "update:modelValue"],
|
|
2963
2987
|
setup(e, { emit: a }) {
|
|
2964
|
-
const t = e, n = v(() => !t.disabled && !t.hideClear && t.variant !== "filter");
|
|
2965
|
-
return (
|
|
2988
|
+
const t = e, n = v(() => Be.concat(t.passAttrs.split(","))), l = v(() => !t.disabled && !t.hideClear && t.variant !== "filter");
|
|
2989
|
+
return (i, u) => (d(), L(xe, M({
|
|
2966
2990
|
class: "bs-input-search",
|
|
2967
2991
|
"data-component": "bs-input-search",
|
|
2968
2992
|
"data-variant": e.variant,
|
|
2969
2993
|
disabled: e.disabled
|
|
2970
|
-
}, p(
|
|
2971
|
-
default:
|
|
2972
|
-
e.hideSearchIcon ?
|
|
2973
|
-
|
|
2994
|
+
}, p(K)(i.$attrs, n.value).remaining), {
|
|
2995
|
+
default: E(() => [
|
|
2996
|
+
e.hideSearchIcon ? k("", !0) : (d(), L(p(mt), { key: 0 })),
|
|
2997
|
+
V(be, M({
|
|
2974
2998
|
"data-autowidth": "",
|
|
2975
2999
|
disabled: e.disabled,
|
|
2976
|
-
"input-id":
|
|
3000
|
+
"input-id": i.$attrs.id || e.inputId,
|
|
2977
3001
|
placeholder: e.placeholder,
|
|
2978
3002
|
value: e.value || e.modelValue
|
|
2979
|
-
}, p(
|
|
2980
|
-
"onUpdate:modelValue":
|
|
3003
|
+
}, p(K)(i.$attrs, n.value).filtered, {
|
|
3004
|
+
"onUpdate:modelValue": u[0] || (u[0] = (o) => i.$emit("update:modelValue", o))
|
|
2981
3005
|
}), null, 16, ["disabled", "input-id", "placeholder", "value"]),
|
|
2982
|
-
$
|
|
3006
|
+
Se($("button", {
|
|
2983
3007
|
title: "Clear",
|
|
2984
3008
|
type: "button",
|
|
2985
|
-
onClick:
|
|
3009
|
+
onClick: u[1] || (u[1] = (o) => i.$emit("clear"))
|
|
2986
3010
|
}, [
|
|
2987
|
-
|
|
3011
|
+
V(p(ke), { size: "sm" })
|
|
2988
3012
|
], 512), [
|
|
2989
|
-
[
|
|
3013
|
+
[we, l.value]
|
|
2990
3014
|
])
|
|
2991
3015
|
]),
|
|
2992
3016
|
_: 1
|
|
2993
3017
|
}, 16, ["data-variant", "disabled"]));
|
|
2994
3018
|
}
|
|
2995
|
-
}),
|
|
3019
|
+
}), dn = ["data-size", "data-variant"], un = /* @__PURE__ */ $("span", null, null, -1), cn = /* @__PURE__ */ $("span", null, null, -1), fn = /* @__PURE__ */ $("span", null, null, -1), pn = /* @__PURE__ */ $("span", null, null, -1), vn = /* @__PURE__ */ $("span", { class: "visually-hidden" }, "Loading", -1), hn = [
|
|
3020
|
+
un,
|
|
3021
|
+
cn,
|
|
3022
|
+
fn,
|
|
3023
|
+
pn,
|
|
3024
|
+
vn
|
|
3025
|
+
], bn = {
|
|
3026
|
+
__name: "BsLoader",
|
|
3027
|
+
props: {
|
|
3028
|
+
size: {
|
|
3029
|
+
type: String,
|
|
3030
|
+
default: "md",
|
|
3031
|
+
validator: (e) => ["xs", "sm", "md", "lg"].includes(e)
|
|
3032
|
+
},
|
|
3033
|
+
variant: {
|
|
3034
|
+
type: String,
|
|
3035
|
+
validator: (e) => ["black", "white", "gray"].includes(e)
|
|
3036
|
+
}
|
|
3037
|
+
},
|
|
3038
|
+
setup(e) {
|
|
3039
|
+
return (a, t) => (d(), b("span", {
|
|
3040
|
+
class: "bs-loader",
|
|
3041
|
+
"data-size": e.size,
|
|
3042
|
+
"data-variant": e.variant,
|
|
3043
|
+
role: "status"
|
|
3044
|
+
}, hn, 8, dn));
|
|
3045
|
+
}
|
|
3046
|
+
}, mn = ["id"], Nl = {
|
|
2996
3047
|
__name: "BsInputTypeahead",
|
|
2997
3048
|
props: {
|
|
2998
3049
|
characterThreshold: {
|
|
@@ -3024,6 +3075,10 @@ const Sa = {
|
|
|
3024
3075
|
type: String,
|
|
3025
3076
|
default: ""
|
|
3026
3077
|
},
|
|
3078
|
+
loading: {
|
|
3079
|
+
type: Boolean,
|
|
3080
|
+
default: !1
|
|
3081
|
+
},
|
|
3027
3082
|
maxOptions: {
|
|
3028
3083
|
type: Number,
|
|
3029
3084
|
default: void 0
|
|
@@ -3052,76 +3107,79 @@ const Sa = {
|
|
|
3052
3107
|
},
|
|
3053
3108
|
emits: ["update:inputValue", "update:optionsValue"],
|
|
3054
3109
|
setup(e, { emit: a }) {
|
|
3055
|
-
const t = e, n = a, l =
|
|
3110
|
+
const t = e, n = a, l = m(!1), i = m(!1), [u] = Z();
|
|
3056
3111
|
let o = [];
|
|
3057
|
-
|
|
3058
|
-
|
|
3112
|
+
z(() => t.inputValue, () => {
|
|
3113
|
+
i.value ? i.value = !1 : w();
|
|
3059
3114
|
});
|
|
3060
|
-
const s = v(() => t.typeaheadId || u.value),
|
|
3115
|
+
const s = v(() => t.typeaheadId || u.value), r = v(() => `${s.value}-input-container`), c = v(() => `${s.value}-input`), f = v(() => `${s.value}-options`), T = v(() => {
|
|
3061
3116
|
if (l.value) {
|
|
3062
|
-
let
|
|
3117
|
+
let B = t.options;
|
|
3063
3118
|
const h = t.inputValue.toLowerCase(), C = t.filterType === "includes" ? "includes" : "startsWith";
|
|
3064
|
-
return
|
|
3119
|
+
return B = y(B, h, C), B = B.slice(0, t.maxOptions), B = S(B, h, C), o = B, B;
|
|
3065
3120
|
} else
|
|
3066
3121
|
return o;
|
|
3067
3122
|
});
|
|
3068
|
-
function
|
|
3069
|
-
return t.internalFiltering ?
|
|
3123
|
+
function y(B, h, C) {
|
|
3124
|
+
return t.internalFiltering ? B.filter((O) => O.label.toLowerCase()[C](h)) : B;
|
|
3070
3125
|
}
|
|
3071
|
-
function
|
|
3072
|
-
return
|
|
3073
|
-
let
|
|
3126
|
+
function S(B, h, C) {
|
|
3127
|
+
return B.map((O) => {
|
|
3128
|
+
let j = O.label;
|
|
3074
3129
|
if (h !== "") {
|
|
3075
|
-
const
|
|
3076
|
-
|
|
3130
|
+
const R = C === "includes" ? "gi" : "i", F = new RegExp(`(${h})`, R);
|
|
3131
|
+
j = O.label.replace(F, '<span style="color: var(--bs-blue-base)">$1</span>');
|
|
3077
3132
|
}
|
|
3078
|
-
return { ...
|
|
3133
|
+
return { ...O, labelHtml: j };
|
|
3079
3134
|
});
|
|
3080
3135
|
}
|
|
3081
|
-
function
|
|
3136
|
+
function w() {
|
|
3082
3137
|
t.inputValue.length >= t.characterThreshold ? l.value = !0 : l.value = !1;
|
|
3083
3138
|
}
|
|
3084
|
-
function
|
|
3139
|
+
function I() {
|
|
3085
3140
|
n("update:inputValue", ""), n("update:optionsValue", ""), document.getElementById(c.value).focus();
|
|
3086
3141
|
}
|
|
3087
|
-
function q(
|
|
3088
|
-
|
|
3089
|
-
const h =
|
|
3090
|
-
n("update:inputValue", h.label), n("update:optionsValue",
|
|
3142
|
+
function q(B) {
|
|
3143
|
+
i.value = !0, l.value = !1;
|
|
3144
|
+
const h = T.value.find((C) => C.value === B);
|
|
3145
|
+
n("update:inputValue", h.label), n("update:optionsValue", B);
|
|
3091
3146
|
}
|
|
3092
|
-
return (
|
|
3093
|
-
e.label ||
|
|
3147
|
+
return (B, h) => (d(), b(G, null, [
|
|
3148
|
+
e.label || B.$slots.label ? (d(), L(oe, {
|
|
3094
3149
|
key: 0,
|
|
3095
3150
|
for: c.value,
|
|
3096
3151
|
disabled: e.disabled,
|
|
3097
3152
|
required: e.required
|
|
3098
3153
|
}, {
|
|
3099
|
-
default:
|
|
3100
|
-
|
|
3101
|
-
|
|
3154
|
+
default: E(() => [
|
|
3155
|
+
D(B.$slots, "label", {}, () => [
|
|
3156
|
+
H(x(e.label), 1)
|
|
3102
3157
|
])
|
|
3103
3158
|
]),
|
|
3104
3159
|
_: 3
|
|
3105
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
"
|
|
3160
|
+
}, 8, ["for", "disabled", "required"])) : k("", !0),
|
|
3161
|
+
$("div", { id: r.value }, [
|
|
3162
|
+
V(sn, M({
|
|
3163
|
+
"aria-controls": f.value,
|
|
3164
|
+
"aria-expanded": l.value,
|
|
3165
|
+
"aria-haspopup": "listbox",
|
|
3166
|
+
autocomplete: "off",
|
|
3167
|
+
disabled: e.disabled,
|
|
3168
|
+
"hide-clear": e.inputValue === "",
|
|
3169
|
+
"hide-search-icon": e.hideSearchIcon,
|
|
3170
|
+
"input-id": c.value,
|
|
3171
|
+
"pass-attrs": "aria-controls,aria-expanded,role",
|
|
3172
|
+
placeholder: e.placeholder,
|
|
3173
|
+
role: "combobox",
|
|
3174
|
+
value: e.inputValue
|
|
3175
|
+
}, B.$attrs, {
|
|
3176
|
+
onClear: I,
|
|
3177
|
+
onFocusin: w,
|
|
3178
|
+
"onUpdate:modelValue": h[0] || (h[0] = (C) => n("update:inputValue", C))
|
|
3179
|
+
}), null, 16, ["aria-controls", "aria-expanded", "disabled", "hide-clear", "hide-search-icon", "input-id", "placeholder", "value"])
|
|
3180
|
+
], 8, mn),
|
|
3181
|
+
V(Ge, {
|
|
3182
|
+
"anchor-id": r.value,
|
|
3125
3183
|
"focus-on-show": !1,
|
|
3126
3184
|
"model-value": e.optionsValue,
|
|
3127
3185
|
"options-id": f.value,
|
|
@@ -3133,46 +3191,28 @@ const Sa = {
|
|
|
3133
3191
|
onClose: h[1] || (h[1] = (C) => l.value = !1),
|
|
3134
3192
|
"onUpdate:modelValue": q
|
|
3135
3193
|
}, {
|
|
3136
|
-
default:
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3194
|
+
default: E(() => [
|
|
3195
|
+
V($e, { options: T.value }, vt({ _: 2 }, [
|
|
3196
|
+
e.loading ? {
|
|
3197
|
+
name: "no-options",
|
|
3198
|
+
fn: E(() => [
|
|
3199
|
+
V(bn, { size: "xs" })
|
|
3200
|
+
]),
|
|
3201
|
+
key: "0"
|
|
3202
|
+
} : {
|
|
3203
|
+
name: "no-options",
|
|
3204
|
+
fn: E(() => [
|
|
3205
|
+
H("No results found")
|
|
3206
|
+
]),
|
|
3207
|
+
key: "1"
|
|
3208
|
+
}
|
|
3209
|
+
]), 1032, ["options"])
|
|
3143
3210
|
]),
|
|
3144
3211
|
_: 1
|
|
3145
3212
|
}, 8, ["anchor-id", "model-value", "options-id", "shown"])
|
|
3146
3213
|
], 64));
|
|
3147
3214
|
}
|
|
3148
|
-
},
|
|
3149
|
-
fn,
|
|
3150
|
-
pn,
|
|
3151
|
-
vn,
|
|
3152
|
-
hn,
|
|
3153
|
-
bn
|
|
3154
|
-
], Rl = {
|
|
3155
|
-
__name: "BsLoader",
|
|
3156
|
-
props: {
|
|
3157
|
-
size: {
|
|
3158
|
-
type: String,
|
|
3159
|
-
default: "md",
|
|
3160
|
-
validator: (e) => ["xs", "sm", "md", "lg"].includes(e)
|
|
3161
|
-
},
|
|
3162
|
-
variant: {
|
|
3163
|
-
type: String,
|
|
3164
|
-
validator: (e) => ["black", "white", "gray"].includes(e)
|
|
3165
|
-
}
|
|
3166
|
-
},
|
|
3167
|
-
setup(e) {
|
|
3168
|
-
return (a, t) => (d(), b("span", {
|
|
3169
|
-
class: "bs-loader",
|
|
3170
|
-
"data-size": e.size,
|
|
3171
|
-
"data-variant": e.variant,
|
|
3172
|
-
role: "status"
|
|
3173
|
-
}, mn, 8, cn));
|
|
3174
|
-
}
|
|
3175
|
-
}, gn = /* @__PURE__ */ y("div", { class: "bs-overlay" }, null, -1), yn = {
|
|
3215
|
+
}, gn = /* @__PURE__ */ $("div", { class: "bs-overlay" }, null, -1), yn = {
|
|
3176
3216
|
__name: "BsOverlay",
|
|
3177
3217
|
props: {
|
|
3178
3218
|
shown: {
|
|
@@ -3202,9 +3242,9 @@ const Sa = {
|
|
|
3202
3242
|
emits: ["after-enter", "after-leave"],
|
|
3203
3243
|
setup(e, { emit: a }) {
|
|
3204
3244
|
const t = e, n = a, { transition: l } = ve(t);
|
|
3205
|
-
return
|
|
3206
|
-
|
|
3207
|
-
}), (
|
|
3245
|
+
return z(l, (i) => {
|
|
3246
|
+
i ? document.body.setAttribute("data-scroll", "false") : document.body.removeAttribute("data-scroll");
|
|
3247
|
+
}), (i, u) => (d(), L(p(Ae), {
|
|
3208
3248
|
shown: p(l),
|
|
3209
3249
|
preloaded: e.preloaded,
|
|
3210
3250
|
duration: 75,
|
|
@@ -3212,13 +3252,13 @@ const Sa = {
|
|
|
3212
3252
|
onAfterEnter: u[0] || (u[0] = (o) => n("after-enter")),
|
|
3213
3253
|
onAfterLeave: u[1] || (u[1] = (o) => n("after-leave"))
|
|
3214
3254
|
}, {
|
|
3215
|
-
default:
|
|
3255
|
+
default: E(() => [
|
|
3216
3256
|
gn
|
|
3217
3257
|
]),
|
|
3218
3258
|
_: 1
|
|
3219
3259
|
}, 8, ["shown", "preloaded"]));
|
|
3220
3260
|
}
|
|
3221
|
-
}, Bn = ["id", "role", "aria-labelledby"], $n = ["id"],
|
|
3261
|
+
}, Bn = ["id", "role", "aria-labelledby"], $n = ["id"], Rl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3222
3262
|
__name: "BsModal",
|
|
3223
3263
|
props: {
|
|
3224
3264
|
modalId: {
|
|
@@ -3263,42 +3303,42 @@ const Sa = {
|
|
|
3263
3303
|
},
|
|
3264
3304
|
emits: ["close", "after-enter", "after-leave"],
|
|
3265
3305
|
setup(e, { emit: a }) {
|
|
3266
|
-
const t = e, n = a, { transition: l } = ve(t), [
|
|
3306
|
+
const t = e, n = a, { transition: l } = ve(t), [i] = Z();
|
|
3267
3307
|
let u = !1;
|
|
3268
|
-
const o =
|
|
3308
|
+
const o = m(null), s = (f) => {
|
|
3269
3309
|
o.value && f.target.closest(".bs-overlay") && n("close", t.modalId);
|
|
3270
3310
|
};
|
|
3271
|
-
|
|
3311
|
+
Y(() => {
|
|
3272
3312
|
document.addEventListener("click", s);
|
|
3273
|
-
}),
|
|
3313
|
+
}), de(() => {
|
|
3274
3314
|
document.removeEventListener("click", s);
|
|
3275
|
-
}),
|
|
3315
|
+
}), Te(["Escape"], () => {
|
|
3276
3316
|
u && n("close", t.modalId);
|
|
3277
3317
|
});
|
|
3278
|
-
const
|
|
3279
|
-
return (f,
|
|
3280
|
-
|
|
3318
|
+
const r = () => !t.title && t.closeButton, c = () => t.title && t.closeButton;
|
|
3319
|
+
return (f, T) => (d(), b(G, null, [
|
|
3320
|
+
V(yn, {
|
|
3281
3321
|
shown: p(l),
|
|
3282
3322
|
preloaded: e.preloaded,
|
|
3283
3323
|
"enter-controlled": e.enterControlled,
|
|
3284
3324
|
"enter-trigger": e.enterTrigger,
|
|
3285
3325
|
"leave-trigger": e.leaveTrigger
|
|
3286
3326
|
}, null, 8, ["shown", "preloaded", "enter-controlled", "enter-trigger", "leave-trigger"]),
|
|
3287
|
-
|
|
3327
|
+
V(Ae, {
|
|
3288
3328
|
shown: p(l),
|
|
3289
3329
|
preloaded: e.preloaded,
|
|
3290
3330
|
duration: 75,
|
|
3291
3331
|
"enter-attribute": "data-shown",
|
|
3292
|
-
onEnter:
|
|
3293
|
-
onAfterEnter:
|
|
3294
|
-
onAfterLeave:
|
|
3332
|
+
onEnter: T[1] || (T[1] = (y) => ht(u) ? u.value = !0 : u = !0),
|
|
3333
|
+
onAfterEnter: T[2] || (T[2] = (y) => n("after-enter")),
|
|
3334
|
+
onAfterLeave: T[3] || (T[3] = (y) => n("after-leave"))
|
|
3295
3335
|
}, {
|
|
3296
|
-
default:
|
|
3297
|
-
|
|
3336
|
+
default: E(() => [
|
|
3337
|
+
$("div", M({
|
|
3298
3338
|
id: e.modalId,
|
|
3299
3339
|
class: "bs-modal",
|
|
3300
3340
|
role: e.alert ? "alertdialog" : "dialog",
|
|
3301
|
-
"aria-labelledby": e.title && !f.$attrs["aria-label"] ? p(
|
|
3341
|
+
"aria-labelledby": e.title && !f.$attrs["aria-label"] ? p(i) : void 0,
|
|
3302
3342
|
"aria-modal": "true"
|
|
3303
3343
|
}, f.$attrs, {
|
|
3304
3344
|
ref_key: "modalRef",
|
|
@@ -3306,27 +3346,27 @@ const Sa = {
|
|
|
3306
3346
|
}), [
|
|
3307
3347
|
e.title || e.closeButton ? (d(), b("header", {
|
|
3308
3348
|
key: 0,
|
|
3309
|
-
class:
|
|
3310
|
-
"only-close-button-modal-header":
|
|
3349
|
+
class: ne({
|
|
3350
|
+
"only-close-button-modal-header": r,
|
|
3311
3351
|
"modal-header": c
|
|
3312
3352
|
})
|
|
3313
3353
|
}, [
|
|
3314
3354
|
e.title ? (d(), b("h5", {
|
|
3315
3355
|
key: 0,
|
|
3316
|
-
id: p(
|
|
3356
|
+
id: p(i),
|
|
3317
3357
|
class: "modal-title"
|
|
3318
|
-
},
|
|
3358
|
+
}, x(e.title), 9, $n)) : k("", !0),
|
|
3319
3359
|
e.closeButton ? (d(), b("button", {
|
|
3320
3360
|
key: 1,
|
|
3321
3361
|
type: "button",
|
|
3322
3362
|
title: "Close Modal",
|
|
3323
3363
|
"aria-label": "Close Modal",
|
|
3324
|
-
onClick:
|
|
3364
|
+
onClick: T[0] || (T[0] = (y) => n("close", e.modalId))
|
|
3325
3365
|
}, [
|
|
3326
|
-
|
|
3327
|
-
])) :
|
|
3328
|
-
], 2)) :
|
|
3329
|
-
|
|
3366
|
+
V(p(ke), { class: "close-button" })
|
|
3367
|
+
])) : k("", !0)
|
|
3368
|
+
], 2)) : k("", !0),
|
|
3369
|
+
D(f.$slots, "default")
|
|
3330
3370
|
], 16, Bn)
|
|
3331
3371
|
]),
|
|
3332
3372
|
_: 3
|
|
@@ -3339,10 +3379,10 @@ const Sa = {
|
|
|
3339
3379
|
}, kn = ["aria-label", "title", "disabled"], In = { key: 0 }, Cn = ["aria-label", "title", "disabled"], Tn = { key: 0 }, xn = {
|
|
3340
3380
|
key: 1,
|
|
3341
3381
|
class: "bs-pagination-page-numbers"
|
|
3342
|
-
}, An = ["title", "data-selected", "onClick"], Ln = { key: 2 }, Vn = { key: 3 }, En = /* @__PURE__ */
|
|
3382
|
+
}, An = ["title", "data-selected", "onClick"], Ln = { key: 2 }, Vn = { key: 3 }, En = /* @__PURE__ */ $("span", null, "Results Per Page:", -1), Dn = { class: "bs-pagination-results-numbers" }, On = ["data-selected", "disabled", "onClick"], qn = {
|
|
3343
3383
|
key: 5,
|
|
3344
3384
|
class: "bs-pagination-carets"
|
|
3345
|
-
}, Pn = ["aria-label", "title", "disabled"], Mn = { key: 0 }, zn = ["aria-label", "title", "disabled"], Nn = { key: 0 },
|
|
3385
|
+
}, Pn = ["aria-label", "title", "disabled"], Mn = { key: 0 }, zn = ["aria-label", "title", "disabled"], Nn = { key: 0 }, jl = {
|
|
3346
3386
|
__name: "BsPagination",
|
|
3347
3387
|
props: {
|
|
3348
3388
|
// Used for all
|
|
@@ -3428,17 +3468,17 @@ const Sa = {
|
|
|
3428
3468
|
},
|
|
3429
3469
|
emits: ["selchange", "update:modelValue"],
|
|
3430
3470
|
setup(e, { emit: a }) {
|
|
3431
|
-
const t = e, n = a, l =
|
|
3432
|
-
|
|
3433
|
-
|
|
3471
|
+
const t = e, n = a, l = m(null);
|
|
3472
|
+
Y(() => {
|
|
3473
|
+
i.value ? l.value = i.value : t.variant === "results" ? l.value = w.value[0] : l.value = 1;
|
|
3434
3474
|
});
|
|
3435
|
-
const
|
|
3436
|
-
|
|
3437
|
-
l.value =
|
|
3438
|
-
}),
|
|
3439
|
-
l.value =
|
|
3440
|
-
}),
|
|
3441
|
-
q !== null && (n("selchange",
|
|
3475
|
+
const i = v(() => t.modelValue || t.selection);
|
|
3476
|
+
z(() => t.selection, (I) => {
|
|
3477
|
+
l.value = I;
|
|
3478
|
+
}), z(() => t.modelValue, (I) => {
|
|
3479
|
+
l.value = I;
|
|
3480
|
+
}), z(l, (I, q) => {
|
|
3481
|
+
q !== null && (n("selchange", I), n("update:modelValue", I));
|
|
3442
3482
|
});
|
|
3443
3483
|
const u = v(() => {
|
|
3444
3484
|
if (t.variant === "group")
|
|
@@ -3449,7 +3489,7 @@ const Sa = {
|
|
|
3449
3489
|
function s() {
|
|
3450
3490
|
l.value = 1;
|
|
3451
3491
|
}
|
|
3452
|
-
function
|
|
3492
|
+
function r() {
|
|
3453
3493
|
l.value = Math.max(l.value - 1, 1);
|
|
3454
3494
|
}
|
|
3455
3495
|
function c() {
|
|
@@ -3461,20 +3501,20 @@ const Sa = {
|
|
|
3461
3501
|
function f() {
|
|
3462
3502
|
l.value = u.value;
|
|
3463
3503
|
}
|
|
3464
|
-
const
|
|
3504
|
+
const T = v(() => {
|
|
3465
3505
|
if (t.pageCount <= t.pageRange)
|
|
3466
3506
|
return [...Array(t.pageCount + 1).keys()].slice(1);
|
|
3467
|
-
const
|
|
3468
|
-
let
|
|
3469
|
-
|
|
3470
|
-
for (let C =
|
|
3471
|
-
|
|
3472
|
-
return h < t.pageCount - 1 &&
|
|
3473
|
-
}),
|
|
3474
|
-
const
|
|
3475
|
-
return `${t.centerLabel ?? "Results"} ${
|
|
3476
|
-
}),
|
|
3477
|
-
return (
|
|
3507
|
+
const I = [1], q = (t.pageRange - 1) / 2;
|
|
3508
|
+
let B = l.value - q, h = l.value + q;
|
|
3509
|
+
B < 1 && (h += 1 - B, B = 1), h > t.pageCount && (B -= h - t.pageCount, h = t.pageCount), B = Math.max(B, 2), h = Math.min(h, t.pageCount - 1), B > 2 && I.push(t.breakText);
|
|
3510
|
+
for (let C = B; C <= h; C++)
|
|
3511
|
+
I.push(C);
|
|
3512
|
+
return h < t.pageCount - 1 && I.push(t.breakText), I.push(t.pageCount), I;
|
|
3513
|
+
}), y = v(() => `${t.centerLabel ?? "Page"} ${l.value} of ${u.value}`), S = v(() => {
|
|
3514
|
+
const I = (l.value - 1) * t.itemsPerGroup + 1, q = Math.min(I - 1 + t.itemsPerGroup, t.itemsCount);
|
|
3515
|
+
return `${t.centerLabel ?? "Results"} ${I} - ${q} of ${t.itemsCount}`;
|
|
3516
|
+
}), w = v(() => t.resultsIncrements.split(",").map((I) => parseInt(I)));
|
|
3517
|
+
return (I, q) => (d(), b("div", {
|
|
3478
3518
|
class: "bs-pagination",
|
|
3479
3519
|
"data-variant": o.value,
|
|
3480
3520
|
"data-fixed": t.fixed
|
|
@@ -3483,78 +3523,78 @@ const Sa = {
|
|
|
3483
3523
|
e.showFirstLastButtons ? (d(), b("button", {
|
|
3484
3524
|
key: 0,
|
|
3485
3525
|
type: "button",
|
|
3486
|
-
class:
|
|
3526
|
+
class: ne(e.firstPageText ? "bs-pagination-word-caret" : void 0),
|
|
3487
3527
|
"aria-label": e.firstPageText ? void 0 : "First Page",
|
|
3488
3528
|
title: e.firstPageText,
|
|
3489
3529
|
disabled: l.value === 1,
|
|
3490
3530
|
onClick: s
|
|
3491
3531
|
}, [
|
|
3492
|
-
|
|
3493
|
-
e.firstPageText ? (d(), b("span", In,
|
|
3494
|
-
], 10, kn)) :
|
|
3495
|
-
|
|
3532
|
+
V(p(gt)),
|
|
3533
|
+
e.firstPageText ? (d(), b("span", In, x(e.firstPageText), 1)) : k("", !0)
|
|
3534
|
+
], 10, kn)) : k("", !0),
|
|
3535
|
+
$("button", {
|
|
3496
3536
|
type: "button",
|
|
3497
|
-
class:
|
|
3537
|
+
class: ne(e.prevPageText ? "bs-pagination-word-caret" : void 0),
|
|
3498
3538
|
"aria-label": e.prevPageText ? void 0 : "Previous Page",
|
|
3499
3539
|
title: e.prevPageText,
|
|
3500
3540
|
disabled: l.value === 1,
|
|
3501
|
-
onClick:
|
|
3541
|
+
onClick: r
|
|
3502
3542
|
}, [
|
|
3503
|
-
|
|
3504
|
-
e.prevPageText ? (d(), b("span", Tn,
|
|
3543
|
+
V(p(yt)),
|
|
3544
|
+
e.prevPageText ? (d(), b("span", Tn, x(e.prevPageText), 1)) : k("", !0)
|
|
3505
3545
|
], 10, Cn)
|
|
3506
|
-
])) :
|
|
3546
|
+
])) : k("", !0),
|
|
3507
3547
|
e.variant === "base" && e.centerDisplay === "numbers" ? (d(), b("div", xn, [
|
|
3508
|
-
(d(!0), b(G, null,
|
|
3509
|
-
key: `page-${
|
|
3548
|
+
(d(!0), b(G, null, J(T.value, (B) => (d(), b("button", {
|
|
3549
|
+
key: `page-${B}-button`,
|
|
3510
3550
|
type: "button",
|
|
3511
|
-
title: `Page ${
|
|
3512
|
-
"data-selected":
|
|
3513
|
-
onClick: (h) => l.value =
|
|
3514
|
-
},
|
|
3515
|
-
])) :
|
|
3516
|
-
t.variant === "base" && t.centerDisplay === "text" ? (d(), b("span", Ln,
|
|
3517
|
-
t.variant === "group" ? (d(), b("span", Vn,
|
|
3551
|
+
title: `Page ${B}`,
|
|
3552
|
+
"data-selected": B === l.value,
|
|
3553
|
+
onClick: (h) => l.value = B
|
|
3554
|
+
}, x(B), 9, An))), 128))
|
|
3555
|
+
])) : k("", !0),
|
|
3556
|
+
t.variant === "base" && t.centerDisplay === "text" ? (d(), b("span", Ln, x(y.value), 1)) : k("", !0),
|
|
3557
|
+
t.variant === "group" ? (d(), b("span", Vn, x(S.value), 1)) : k("", !0),
|
|
3518
3558
|
t.variant === "results" ? (d(), b(G, { key: 4 }, [
|
|
3519
3559
|
En,
|
|
3520
|
-
|
|
3521
|
-
(d(!0), b(G, null,
|
|
3560
|
+
$("div", Dn, [
|
|
3561
|
+
(d(!0), b(G, null, J(w.value, (B) => (d(), b("button", {
|
|
3522
3562
|
type: "button",
|
|
3523
|
-
key: `results-${
|
|
3524
|
-
"data-selected":
|
|
3525
|
-
disabled: l.value ===
|
|
3526
|
-
onClick: (h) => l.value =
|
|
3527
|
-
},
|
|
3563
|
+
key: `results-${B}`,
|
|
3564
|
+
"data-selected": B === l.value,
|
|
3565
|
+
disabled: l.value === B,
|
|
3566
|
+
onClick: (h) => l.value = B
|
|
3567
|
+
}, x(B), 9, On))), 128))
|
|
3528
3568
|
])
|
|
3529
|
-
], 64)) :
|
|
3569
|
+
], 64)) : k("", !0),
|
|
3530
3570
|
e.variant === "base" || e.variant === "group" ? (d(), b("div", qn, [
|
|
3531
|
-
|
|
3571
|
+
$("button", {
|
|
3532
3572
|
type: "button",
|
|
3533
|
-
class:
|
|
3573
|
+
class: ne(e.nextPageText ? "bs-pagination-word-caret" : void 0),
|
|
3534
3574
|
"aria-label": e.nextPageText ? void 0 : "Next Page",
|
|
3535
3575
|
title: e.nextPageText,
|
|
3536
3576
|
disabled: l.value === u.value,
|
|
3537
3577
|
onClick: c
|
|
3538
3578
|
}, [
|
|
3539
|
-
e.nextPageText ? (d(), b("span", Mn,
|
|
3540
|
-
|
|
3579
|
+
e.nextPageText ? (d(), b("span", Mn, x(e.nextPageText), 1)) : k("", !0),
|
|
3580
|
+
V(p(Bt))
|
|
3541
3581
|
], 10, Pn),
|
|
3542
3582
|
e.showFirstLastButtons ? (d(), b("button", {
|
|
3543
3583
|
key: 0,
|
|
3544
3584
|
type: "button",
|
|
3545
|
-
class:
|
|
3585
|
+
class: ne(e.lastPageText ? "bs-pagination-word-caret" : void 0),
|
|
3546
3586
|
"aria-label": e.lastPageText ? void 0 : "Last Page",
|
|
3547
3587
|
title: e.lastPageText,
|
|
3548
3588
|
disabled: l.value === u.value,
|
|
3549
3589
|
onClick: f
|
|
3550
3590
|
}, [
|
|
3551
|
-
e.lastPageText ? (d(), b("span", Nn,
|
|
3552
|
-
|
|
3553
|
-
], 10, zn)) :
|
|
3554
|
-
])) :
|
|
3591
|
+
e.lastPageText ? (d(), b("span", Nn, x(e.lastPageText), 1)) : k("", !0),
|
|
3592
|
+
V(p($t))
|
|
3593
|
+
], 10, zn)) : k("", !0)
|
|
3594
|
+
])) : k("", !0)
|
|
3555
3595
|
], 8, Sn));
|
|
3556
3596
|
}
|
|
3557
|
-
}, Rn = ["data-truncate"],
|
|
3597
|
+
}, Rn = ["data-truncate"], Fl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3558
3598
|
__name: "BsPill",
|
|
3559
3599
|
props: {
|
|
3560
3600
|
active: { type: Boolean, default: !1 },
|
|
@@ -3578,8 +3618,8 @@ const Sa = {
|
|
|
3578
3618
|
}
|
|
3579
3619
|
},
|
|
3580
3620
|
setup(e) {
|
|
3581
|
-
const a = e, { onLinkClick: t } =
|
|
3582
|
-
return (o, s) => (d(),
|
|
3621
|
+
const a = e, { onLinkClick: t } = Ce(a), n = le(), { rootTag: l, attrsToBind: i, hrefUrl: u } = Ie(a, n, "span");
|
|
3622
|
+
return (o, s) => (d(), L(_(p(l)), M({
|
|
3583
3623
|
class: "bs-pill",
|
|
3584
3624
|
"data-active": e.active,
|
|
3585
3625
|
"data-component": "bs-pill",
|
|
@@ -3587,10 +3627,10 @@ const Sa = {
|
|
|
3587
3627
|
"data-variant": e.variant || void 0,
|
|
3588
3628
|
disabled: e.disabled,
|
|
3589
3629
|
".href": p(u)
|
|
3590
|
-
}, p(
|
|
3591
|
-
default:
|
|
3592
|
-
|
|
3593
|
-
|
|
3630
|
+
}, p(i), { onClick: p(t) }), {
|
|
3631
|
+
default: E(() => [
|
|
3632
|
+
$("span", { "data-truncate": e.truncate }, [
|
|
3633
|
+
D(o.$slots, "default")
|
|
3594
3634
|
], 8, Rn)
|
|
3595
3635
|
]),
|
|
3596
3636
|
_: 3
|
|
@@ -3623,7 +3663,7 @@ const Sa = {
|
|
|
3623
3663
|
},
|
|
3624
3664
|
emits: ["action-toggled"],
|
|
3625
3665
|
setup(e, { emit: a }) {
|
|
3626
|
-
const t = e, n = a, { icon: l } = ye(t, "actionIcon"), { icon:
|
|
3666
|
+
const t = e, n = a, { icon: l } = ye(t, "actionIcon"), { icon: i } = ye(t, "miscMetaIcon");
|
|
3627
3667
|
function u(o) {
|
|
3628
3668
|
o.target.tagName === "BUTTON" && (o.preventDefault(), o.stopImmediatePropagation(), n("action-toggled"));
|
|
3629
3669
|
}
|
|
@@ -3633,30 +3673,30 @@ const Sa = {
|
|
|
3633
3673
|
"data-icon": "true",
|
|
3634
3674
|
onClick: u
|
|
3635
3675
|
}, [
|
|
3636
|
-
|
|
3637
|
-
e.actionIcon ? (d(),
|
|
3676
|
+
D(o.$slots, "action", {}, () => [
|
|
3677
|
+
e.actionIcon ? (d(), L(_(p(l) ? p(l) : "span"), {
|
|
3638
3678
|
key: 0,
|
|
3639
3679
|
class: "bs-icon"
|
|
3640
|
-
})) :
|
|
3641
|
-
|
|
3680
|
+
})) : k("", !0),
|
|
3681
|
+
H(" " + x(e.action), 1)
|
|
3642
3682
|
])
|
|
3643
|
-
])) :
|
|
3644
|
-
|
|
3645
|
-
e.company ? (d(), b("span", Un,
|
|
3646
|
-
e.jobTitle ? (d(), b("span", Wn,
|
|
3647
|
-
e.email ? (d(), b("span", Gn,
|
|
3683
|
+
])) : k("", !0),
|
|
3684
|
+
$("span", Fn, x(e.profileName), 1),
|
|
3685
|
+
e.company ? (d(), b("span", Un, x(e.company), 1)) : k("", !0),
|
|
3686
|
+
e.jobTitle ? (d(), b("span", Wn, x(e.jobTitle), 1)) : k("", !0),
|
|
3687
|
+
e.email ? (d(), b("span", Gn, x(e.email), 1)) : k("", !0),
|
|
3648
3688
|
e.miscMeta || o.$slots.misc ? (d(), b("span", Hn, [
|
|
3649
|
-
|
|
3650
|
-
e.miscMetaIcon ? (d(),
|
|
3689
|
+
D(o.$slots, "misc", {}, () => [
|
|
3690
|
+
e.miscMetaIcon ? (d(), L(_(p(i) ? p(i) : "span"), {
|
|
3651
3691
|
key: 0,
|
|
3652
3692
|
class: "bs-icon"
|
|
3653
|
-
})) :
|
|
3654
|
-
|
|
3693
|
+
})) : k("", !0),
|
|
3694
|
+
H(" " + x(e.miscMeta), 1)
|
|
3655
3695
|
])
|
|
3656
|
-
])) :
|
|
3696
|
+
])) : k("", !0)
|
|
3657
3697
|
]));
|
|
3658
3698
|
}
|
|
3659
|
-
},
|
|
3699
|
+
}, Ul = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3660
3700
|
__name: "BsProfile",
|
|
3661
3701
|
props: {
|
|
3662
3702
|
layout: {
|
|
@@ -3686,21 +3726,21 @@ const Sa = {
|
|
|
3686
3726
|
},
|
|
3687
3727
|
emits: ["action-toggled"],
|
|
3688
3728
|
setup(e, { emit: a }) {
|
|
3689
|
-
const t = e, n = a, l =
|
|
3690
|
-
return (
|
|
3729
|
+
const t = e, n = a, l = le(), { onLinkClick: i } = Ce(t), { rootTag: u, attrsToBind: o, hrefUrl: s } = Ie(t, l, "div");
|
|
3730
|
+
return (r, c) => (d(), L(_(p(u)), M({
|
|
3691
3731
|
class: "bs-profile",
|
|
3692
3732
|
".href": p(s),
|
|
3693
3733
|
"data-layout": e.layout
|
|
3694
|
-
}, p(o), { onClick: p(
|
|
3695
|
-
default:
|
|
3696
|
-
|
|
3734
|
+
}, p(o), { onClick: p(i) }), {
|
|
3735
|
+
default: E(() => [
|
|
3736
|
+
V(dt, {
|
|
3697
3737
|
src: e.imageSrc,
|
|
3698
3738
|
size: e.imageSize,
|
|
3699
3739
|
initials: e.initials,
|
|
3700
3740
|
"profile-name": e.profileName,
|
|
3701
3741
|
"use-alt-text": !1
|
|
3702
3742
|
}, null, 8, ["src", "size", "initials", "profile-name"]),
|
|
3703
|
-
|
|
3743
|
+
V(Kn, {
|
|
3704
3744
|
"profile-name": e.profileName,
|
|
3705
3745
|
company: e.company,
|
|
3706
3746
|
"job-title": e.jobTitle,
|
|
@@ -3711,11 +3751,11 @@ const Sa = {
|
|
|
3711
3751
|
"misc-meta-icon": e.miscMetaIcon,
|
|
3712
3752
|
onActionToggled: c[0] || (c[0] = (f) => n("action-toggled"))
|
|
3713
3753
|
}, {
|
|
3714
|
-
action:
|
|
3715
|
-
|
|
3754
|
+
action: E(() => [
|
|
3755
|
+
D(r.$slots, "action")
|
|
3716
3756
|
]),
|
|
3717
|
-
misc:
|
|
3718
|
-
|
|
3757
|
+
misc: E(() => [
|
|
3758
|
+
D(r.$slots, "misc")
|
|
3719
3759
|
]),
|
|
3720
3760
|
_: 3
|
|
3721
3761
|
}, 8, ["profile-name", "company", "job-title", "email", "action", "action-icon", "misc-meta", "misc-meta-icon"])
|
|
@@ -3723,7 +3763,7 @@ const Sa = {
|
|
|
3723
3763
|
_: 3
|
|
3724
3764
|
}, 48, [".href", "data-layout", "onClick"]));
|
|
3725
3765
|
}
|
|
3726
|
-
}), Yn = ["data-size"], Qn = ["checked", "disabled", "id", "required", "value", "data-error"],
|
|
3766
|
+
}), Yn = ["data-size"], Qn = ["checked", "disabled", "id", "required", "value", "data-error"], Wl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3727
3767
|
__name: "BsRadio",
|
|
3728
3768
|
props: {
|
|
3729
3769
|
label: {
|
|
@@ -3767,36 +3807,36 @@ const Sa = {
|
|
|
3767
3807
|
},
|
|
3768
3808
|
emits: ["update:modelValue"],
|
|
3769
3809
|
setup(e, { emit: a }) {
|
|
3770
|
-
const t = e, [n] =
|
|
3771
|
-
return (o, s) => (d(), b("div",
|
|
3810
|
+
const t = e, [n] = Z(), l = v(() => Fe.concat(t.passAttrs.split(","))), i = v(() => t.inputId || n.value), u = v(() => t.checked || t.modelValue && t.modelValue === t.value);
|
|
3811
|
+
return (o, s) => (d(), b("div", M({
|
|
3772
3812
|
class: "bs-boolean",
|
|
3773
3813
|
"data-component": "bs-radio",
|
|
3774
3814
|
"data-size": e.size
|
|
3775
|
-
}, p(
|
|
3776
|
-
|
|
3815
|
+
}, p(K)(o.$attrs, l.value).remaining), [
|
|
3816
|
+
$("input", M({
|
|
3777
3817
|
checked: u.value,
|
|
3778
3818
|
disabled: e.disabled,
|
|
3779
|
-
id: o.$attrs.id ||
|
|
3819
|
+
id: o.$attrs.id || i.value,
|
|
3780
3820
|
required: e.required,
|
|
3781
3821
|
type: "radio",
|
|
3782
3822
|
value: e.value,
|
|
3783
3823
|
"data-error": e.error
|
|
3784
|
-
}, p(
|
|
3785
|
-
onChange: s[0] || (s[0] = (
|
|
3824
|
+
}, p(K)(o.$attrs, l.value).filtered, {
|
|
3825
|
+
onChange: s[0] || (s[0] = (r) => o.$emit("update:modelValue", r.target.value))
|
|
3786
3826
|
}), null, 16, Qn),
|
|
3787
|
-
e.label || o.$slots.label ? (d(),
|
|
3827
|
+
e.label || o.$slots.label ? (d(), L(oe, {
|
|
3788
3828
|
key: 0,
|
|
3789
|
-
for: o.$attrs.id ||
|
|
3829
|
+
for: o.$attrs.id || i.value,
|
|
3790
3830
|
disabled: e.disabled,
|
|
3791
3831
|
required: e.required
|
|
3792
3832
|
}, {
|
|
3793
|
-
default:
|
|
3794
|
-
|
|
3795
|
-
|
|
3833
|
+
default: E(() => [
|
|
3834
|
+
D(o.$slots, "label", {}, () => [
|
|
3835
|
+
H(x(e.label), 1)
|
|
3796
3836
|
])
|
|
3797
3837
|
]),
|
|
3798
3838
|
_: 3
|
|
3799
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
3839
|
+
}, 8, ["for", "disabled", "required"])) : k("", !0)
|
|
3800
3840
|
], 16, Yn));
|
|
3801
3841
|
}
|
|
3802
3842
|
}), Xn = ["id", "disabled", "required", "data-error", "value"], Zn = {
|
|
@@ -3813,7 +3853,7 @@ const Sa = {
|
|
|
3813
3853
|
emits: ["update:modelValue"],
|
|
3814
3854
|
setup(e, { emit: a }) {
|
|
3815
3855
|
const t = e, n = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
3816
|
-
return (l,
|
|
3856
|
+
return (l, i) => (d(), b("select", M({
|
|
3817
3857
|
id: l.$attrs.id || e.inputId,
|
|
3818
3858
|
class: "bs-select",
|
|
3819
3859
|
"data-component": "bs-select",
|
|
@@ -3822,12 +3862,12 @@ const Sa = {
|
|
|
3822
3862
|
"data-error": e.error,
|
|
3823
3863
|
value: e.value || e.modelValue
|
|
3824
3864
|
}, n.value, {
|
|
3825
|
-
onChange:
|
|
3865
|
+
onChange: i[0] || (i[0] = (u) => l.$emit("update:modelValue", u.target.value))
|
|
3826
3866
|
}), [
|
|
3827
|
-
|
|
3867
|
+
D(l.$slots, "default")
|
|
3828
3868
|
], 16, Xn));
|
|
3829
3869
|
}
|
|
3830
|
-
}, Jn = ["selected", "disabled"], _n = ["disabled", "selected", "value"],
|
|
3870
|
+
}, Jn = ["selected", "disabled"], _n = ["disabled", "selected", "value"], Gl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3831
3871
|
__name: "BsSelectField",
|
|
3832
3872
|
props: {
|
|
3833
3873
|
data: {
|
|
@@ -3871,60 +3911,60 @@ const Sa = {
|
|
|
3871
3911
|
modelValue: [String, Number]
|
|
3872
3912
|
},
|
|
3873
3913
|
setup(e) {
|
|
3874
|
-
const a = e, [t, n] =
|
|
3875
|
-
var
|
|
3876
|
-
return ((c = (
|
|
3914
|
+
const a = e, [t, n] = Z(2), l = v(() => ua.concat(a.passAttrs.split(","))), i = v(() => {
|
|
3915
|
+
var r, c;
|
|
3916
|
+
return ((c = (r = a.hints) == null ? void 0 : r.join) == null ? void 0 : c.call(r, `
|
|
3877
3917
|
`)) || a.hints;
|
|
3878
|
-
}), u = v(() => a.error && a.errorMsg || a.hint ||
|
|
3879
|
-
return (
|
|
3880
|
-
e.label ||
|
|
3918
|
+
}), u = v(() => a.error && a.errorMsg || a.hint || i.value || void 0), o = v(() => a.inputId || t.value), s = v(() => a.value || a.modelValue);
|
|
3919
|
+
return (r, c) => (d(), b("div", M({ "data-component": "bs-select-field" }, p(K)(r.$attrs, l.value).remaining), [
|
|
3920
|
+
e.label || r.$slots.label ? (d(), L(oe, {
|
|
3881
3921
|
key: 0,
|
|
3882
|
-
for:
|
|
3922
|
+
for: r.$attrs.id || o.value,
|
|
3883
3923
|
disabled: e.disabled,
|
|
3884
3924
|
required: e.required
|
|
3885
3925
|
}, {
|
|
3886
|
-
default:
|
|
3887
|
-
|
|
3888
|
-
|
|
3926
|
+
default: E(() => [
|
|
3927
|
+
D(r.$slots, "label", {}, () => [
|
|
3928
|
+
H(x(e.label), 1)
|
|
3889
3929
|
])
|
|
3890
3930
|
]),
|
|
3891
3931
|
_: 3
|
|
3892
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
3893
|
-
|
|
3932
|
+
}, 8, ["for", "disabled", "required"])) : k("", !0),
|
|
3933
|
+
V(Zn, M({
|
|
3894
3934
|
disabled: e.disabled,
|
|
3895
3935
|
error: e.error,
|
|
3896
3936
|
"hint-id": p(n),
|
|
3897
|
-
"input-id":
|
|
3937
|
+
"input-id": r.$attrs.id || o.value,
|
|
3898
3938
|
required: e.required,
|
|
3899
3939
|
value: s.value,
|
|
3900
|
-
"onUpdate:modelValue": c[0] || (c[0] = (f) =>
|
|
3901
|
-
}, p(
|
|
3902
|
-
default:
|
|
3903
|
-
|
|
3940
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => r.$emit("update:modelValue", f))
|
|
3941
|
+
}, p(K)(r.$attrs, l.value).filtered), {
|
|
3942
|
+
default: E(() => [
|
|
3943
|
+
$("option", {
|
|
3904
3944
|
selected: !s.value,
|
|
3905
3945
|
value: "",
|
|
3906
3946
|
disabled: !!s.value
|
|
3907
|
-
},
|
|
3908
|
-
(d(!0), b(G, null,
|
|
3947
|
+
}, x(e.disabled ? "" : e.placeholder), 9, Jn),
|
|
3948
|
+
(d(!0), b(G, null, J(e.data, (f) => (d(), b("option", {
|
|
3909
3949
|
key: f.value,
|
|
3910
3950
|
disabled: f.disabled,
|
|
3911
3951
|
selected: s.value === f.value,
|
|
3912
3952
|
value: f.value
|
|
3913
|
-
},
|
|
3953
|
+
}, x(f.label), 9, _n))), 128))
|
|
3914
3954
|
]),
|
|
3915
3955
|
_: 1
|
|
3916
3956
|
}, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
|
|
3917
|
-
u.value ? (d(),
|
|
3957
|
+
u.value ? (d(), L(he, {
|
|
3918
3958
|
key: 1,
|
|
3919
3959
|
"data-disabled": e.disabled,
|
|
3920
3960
|
error: e.error,
|
|
3921
3961
|
"error-msg": e.errorMsg,
|
|
3922
|
-
hint: e.hint ||
|
|
3962
|
+
hint: e.hint || i.value,
|
|
3923
3963
|
"hint-id": p(n)
|
|
3924
|
-
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) :
|
|
3964
|
+
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : k("", !0)
|
|
3925
3965
|
], 16));
|
|
3926
3966
|
}
|
|
3927
|
-
}), el = ["data-size"], tl = ["data-disabled", "data-pending", "data-size"], al = ["checked", "disabled", "id"], nl = ["data-inner-on-label", "data-inner-off-label"],
|
|
3967
|
+
}), el = ["data-size"], tl = ["data-disabled", "data-pending", "data-size"], al = ["checked", "disabled", "id"], nl = ["data-inner-on-label", "data-inner-off-label"], Hl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3928
3968
|
__name: "BsSwitch",
|
|
3929
3969
|
props: {
|
|
3930
3970
|
checked: {
|
|
@@ -3970,40 +4010,40 @@ const Sa = {
|
|
|
3970
4010
|
},
|
|
3971
4011
|
emits: ["update:modelValue"],
|
|
3972
4012
|
setup(e, { emit: a }) {
|
|
3973
|
-
const t = e, n = a, [l] =
|
|
3974
|
-
return (s,
|
|
4013
|
+
const t = e, n = a, [l] = Z(), i = v(() => Fe.concat(t.passAttrs.split(","))), u = v(() => t.inputId || l.value), o = v(() => t.checked || t.modelValue);
|
|
4014
|
+
return (s, r) => (d(), b("div", M({
|
|
3975
4015
|
class: "bs-boolean",
|
|
3976
4016
|
"data-component": "bs-switch",
|
|
3977
4017
|
"data-size": e.size
|
|
3978
|
-
}, p(
|
|
3979
|
-
e.label || s.$slots.label ? (d(),
|
|
4018
|
+
}, p(K)(s.$attrs, i.value).remaining), [
|
|
4019
|
+
e.label || s.$slots.label ? (d(), L(oe, {
|
|
3980
4020
|
key: 0,
|
|
3981
4021
|
for: s.$attrs.id || u.value,
|
|
3982
4022
|
disabled: e.disabled,
|
|
3983
4023
|
hide: e.hideLabel
|
|
3984
4024
|
}, {
|
|
3985
|
-
default:
|
|
3986
|
-
|
|
3987
|
-
|
|
4025
|
+
default: E(() => [
|
|
4026
|
+
D(s.$slots, "label", {}, () => [
|
|
4027
|
+
H(x(e.label), 1)
|
|
3988
4028
|
])
|
|
3989
4029
|
]),
|
|
3990
4030
|
_: 3
|
|
3991
|
-
}, 8, ["for", "disabled", "hide"])) :
|
|
3992
|
-
|
|
4031
|
+
}, 8, ["for", "disabled", "hide"])) : k("", !0),
|
|
4032
|
+
$("div", {
|
|
3993
4033
|
class: "bs-switch",
|
|
3994
4034
|
"data-disabled": e.disabled,
|
|
3995
4035
|
"data-pending": e.pending,
|
|
3996
4036
|
"data-size": e.size
|
|
3997
4037
|
}, [
|
|
3998
|
-
|
|
4038
|
+
$("input", M({
|
|
3999
4039
|
checked: o.value,
|
|
4000
4040
|
disabled: e.disabled,
|
|
4001
4041
|
id: s.$attrs.id || u.value,
|
|
4002
4042
|
type: "checkbox"
|
|
4003
|
-
}, p(
|
|
4004
|
-
onChange:
|
|
4043
|
+
}, p(K)(s.$attrs, i.value).filtered, {
|
|
4044
|
+
onChange: r[0] || (r[0] = (c) => n("update:modelValue", c.target.checked))
|
|
4005
4045
|
}), null, 16, al),
|
|
4006
|
-
|
|
4046
|
+
$("span", {
|
|
4007
4047
|
"aria-hidden": "true",
|
|
4008
4048
|
"data-inner-on-label": e.innerOnLabel,
|
|
4009
4049
|
"data-inner-off-label": e.innerOffLabel
|
|
@@ -4011,7 +4051,7 @@ const Sa = {
|
|
|
4011
4051
|
], 8, tl)
|
|
4012
4052
|
], 16, el));
|
|
4013
4053
|
}
|
|
4014
|
-
}), ll = ["aria-controls", "aria-selected", "data-hidden"],
|
|
4054
|
+
}), ll = ["aria-controls", "aria-selected", "data-hidden"], Kl = {
|
|
4015
4055
|
__name: "BsTab",
|
|
4016
4056
|
props: {
|
|
4017
4057
|
activeTabId: {
|
|
@@ -4028,19 +4068,19 @@ const Sa = {
|
|
|
4028
4068
|
},
|
|
4029
4069
|
emits: ["tabClick"],
|
|
4030
4070
|
setup(e, { emit: a }) {
|
|
4031
|
-
const t = e, n =
|
|
4032
|
-
function o(
|
|
4033
|
-
(
|
|
4071
|
+
const t = e, n = le(), l = m(), i = v(() => t.activeTabId === n.id), u = v(() => t.panelId || `${n.id}-panel`);
|
|
4072
|
+
function o(r) {
|
|
4073
|
+
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), s());
|
|
4034
4074
|
}
|
|
4035
4075
|
function s() {
|
|
4036
4076
|
if (t.activeTabId !== n.id) {
|
|
4037
|
-
const
|
|
4038
|
-
l.value.dispatchEvent(
|
|
4077
|
+
const r = new CustomEvent("tabClick", { detail: n.id, bubbles: !0 });
|
|
4078
|
+
l.value.dispatchEvent(r);
|
|
4039
4079
|
}
|
|
4040
4080
|
}
|
|
4041
|
-
return (
|
|
4081
|
+
return (r, c) => (d(), b("div", {
|
|
4042
4082
|
"aria-controls": u.value,
|
|
4043
|
-
"aria-selected":
|
|
4083
|
+
"aria-selected": i.value ? "true" : "false",
|
|
4044
4084
|
"data-hidden": e.hidden || void 0,
|
|
4045
4085
|
"data-component": "bs-tab",
|
|
4046
4086
|
role: "tab",
|
|
@@ -4050,10 +4090,10 @@ const Sa = {
|
|
|
4050
4090
|
onClick: s,
|
|
4051
4091
|
onKeydown: o
|
|
4052
4092
|
}, [
|
|
4053
|
-
|
|
4093
|
+
D(r.$slots, "default")
|
|
4054
4094
|
], 40, ll));
|
|
4055
4095
|
}
|
|
4056
|
-
}, ol = ["id", "data-resizing"], il = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], rl = 73, sl = 20, dl = 16,
|
|
4096
|
+
}, ol = ["id", "data-resizing"], il = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], rl = 73, sl = 20, dl = 16, Yl = {
|
|
4057
4097
|
__name: "BsTabList",
|
|
4058
4098
|
props: {
|
|
4059
4099
|
activeTabId: { type: String, required: !0 },
|
|
@@ -4064,183 +4104,183 @@ const Sa = {
|
|
|
4064
4104
|
},
|
|
4065
4105
|
emits: ["tabChange", "update:modelValue"],
|
|
4066
4106
|
setup(e, { emit: a }) {
|
|
4067
|
-
const t = e, n = a, l =
|
|
4068
|
-
var
|
|
4069
|
-
return C.value ? (
|
|
4070
|
-
}),
|
|
4071
|
-
var
|
|
4072
|
-
let
|
|
4107
|
+
const t = e, n = a, l = m(!1), i = m(!1), u = m([]), o = m(!1), s = m(!1), r = m(), c = m(!1), f = m([]), T = m(!1), y = m([]), S = m(), w = m(), I = m(), [q, B] = Z(2), h = v(() => t.activeTabId ? y.value.findIndex((g) => g.id === t.activeTabId) : 0), C = v(() => u.value.some((g) => g.id === t.activeTabId)), O = v(() => `${B.value}-options`), j = v(() => `${B.value}-toggle`), R = v(() => {
|
|
4108
|
+
var g;
|
|
4109
|
+
return C.value ? (g = y.value[h.value]) == null ? void 0 : g.textContent : "More";
|
|
4110
|
+
}), F = v(() => C.value ? f.value[h.value] - f.value[h.value - 1] + sl : rl), Q = v(() => {
|
|
4111
|
+
var A, N;
|
|
4112
|
+
let g = [];
|
|
4073
4113
|
if (typeof window > "u")
|
|
4074
|
-
return
|
|
4075
|
-
for (let
|
|
4076
|
-
if (((
|
|
4114
|
+
return g;
|
|
4115
|
+
for (let X of y.value) {
|
|
4116
|
+
if (((A = X.dataset) == null ? void 0 : A.hidden) === "true" || ((N = X.dataset) == null ? void 0 : N.hidden) === "" || X.getAttribute("tabindex") === "-1")
|
|
4077
4117
|
break;
|
|
4078
|
-
|
|
4118
|
+
g.push(X);
|
|
4079
4119
|
}
|
|
4080
|
-
return s.value &&
|
|
4120
|
+
return s.value && g.push(r.value.querySelector(".bs-tab-list-toggle")), g;
|
|
4081
4121
|
});
|
|
4082
|
-
function
|
|
4083
|
-
var
|
|
4084
|
-
let
|
|
4085
|
-
if ((
|
|
4086
|
-
for (let
|
|
4087
|
-
if (
|
|
4088
|
-
|
|
4122
|
+
function ie() {
|
|
4123
|
+
var re;
|
|
4124
|
+
let g = !1, A, N = 0, X = !1, te = [];
|
|
4125
|
+
if ((re = y.value) != null && re.length) {
|
|
4126
|
+
for (let ae = 0; ae < y.value.length; ae++) {
|
|
4127
|
+
if (A = y.value[ae], A.setAttribute("tabindex", "-1"), X && ae !== h.value) {
|
|
4128
|
+
A.dataset.hidden = "true", te.push(A);
|
|
4089
4129
|
continue;
|
|
4090
4130
|
}
|
|
4091
|
-
if (
|
|
4092
|
-
|
|
4131
|
+
if (N = ae < y.value.length - 1 ? I.value - F.value : I.value, f.value[ae] > N) {
|
|
4132
|
+
A.dataset.hidden = "true", te.push(A), g = !0, X = !0;
|
|
4093
4133
|
continue;
|
|
4094
4134
|
}
|
|
4095
|
-
|
|
4135
|
+
A.dataset.hidden = "false", A.setAttribute("tabindex", "0");
|
|
4096
4136
|
}
|
|
4097
|
-
s.value =
|
|
4098
|
-
|
|
4099
|
-
},
|
|
4137
|
+
s.value = g, u.value = te, l.value || pe(() => l.value = !0), setTimeout(() => {
|
|
4138
|
+
U(), T.value = !0;
|
|
4139
|
+
}, T.value ? 0 : 1e3);
|
|
4100
4140
|
}
|
|
4101
4141
|
}
|
|
4102
|
-
function
|
|
4103
|
-
n("tabChange",
|
|
4142
|
+
function ee(g) {
|
|
4143
|
+
n("tabChange", g), n("update:modelValue", g);
|
|
4104
4144
|
}
|
|
4105
|
-
function
|
|
4106
|
-
var
|
|
4107
|
-
const
|
|
4108
|
-
return
|
|
4109
|
-
}
|
|
4110
|
-
function Le() {
|
|
4111
|
-
var B;
|
|
4112
|
-
(B = m.value[h.value]) == null || B.setAttribute("aria-selected", "true"), de();
|
|
4145
|
+
function Le(g) {
|
|
4146
|
+
var X, te, re;
|
|
4147
|
+
const A = (re = (te = (X = y.value[g]) == null ? void 0 : X.getBoundingClientRect) == null ? void 0 : te.call(X)) == null ? void 0 : re.width;
|
|
4148
|
+
return A || (g === 0 ? f.value[0] : f.value[g] - f.value[g - 1]) || 0;
|
|
4113
4149
|
}
|
|
4114
4150
|
function Ve() {
|
|
4115
|
-
var
|
|
4116
|
-
(
|
|
4151
|
+
var g;
|
|
4152
|
+
(g = y.value[h.value]) == null || g.setAttribute("aria-selected", "true"), ie();
|
|
4117
4153
|
}
|
|
4118
4154
|
function Ee() {
|
|
4119
|
-
|
|
4155
|
+
var g;
|
|
4156
|
+
(g = S.value) == null || g.focus(), o.value = !1;
|
|
4120
4157
|
}
|
|
4121
|
-
function De(
|
|
4122
|
-
|
|
4123
|
-
o.value = !1, (L = T.value) == null || L.focus(), ue(B);
|
|
4158
|
+
function De() {
|
|
4159
|
+
o.value = !o.value, i.value || (i.value = !0);
|
|
4124
4160
|
}
|
|
4125
|
-
function Oe(
|
|
4161
|
+
function Oe(g) {
|
|
4162
|
+
var A;
|
|
4163
|
+
o.value = !1, (A = S.value) == null || A.focus(), ee(g);
|
|
4164
|
+
}
|
|
4165
|
+
function qe(g) {
|
|
4126
4166
|
if (t.withBsTabs)
|
|
4127
4167
|
return;
|
|
4128
|
-
const
|
|
4129
|
-
if (!
|
|
4168
|
+
const A = g.target.closest('[role="tab"]');
|
|
4169
|
+
if (!A || A.getAttribute("aria-selected") === "true")
|
|
4130
4170
|
return;
|
|
4131
|
-
const
|
|
4132
|
-
|
|
4171
|
+
const N = A.getAttribute("id");
|
|
4172
|
+
ee(N);
|
|
4133
4173
|
}
|
|
4134
|
-
function me(
|
|
4135
|
-
if (
|
|
4136
|
-
const
|
|
4137
|
-
if (
|
|
4174
|
+
function me(g) {
|
|
4175
|
+
if (g.key === "ArrowLeft" || g.key === "ArrowRight") {
|
|
4176
|
+
const A = Q.value.findIndex((N) => N.id === g.target.id);
|
|
4177
|
+
if (A === -1)
|
|
4138
4178
|
return;
|
|
4139
|
-
|
|
4179
|
+
g.preventDefault(), g.stopPropagation(), g.key === "ArrowLeft" ? P(A) : ge(A);
|
|
4140
4180
|
}
|
|
4141
4181
|
}
|
|
4142
|
-
function ge(
|
|
4143
|
-
var
|
|
4144
|
-
const
|
|
4145
|
-
(
|
|
4146
|
-
}
|
|
4147
|
-
function M(B) {
|
|
4148
|
-
var R;
|
|
4149
|
-
const L = B === 0 ? X.value.length - 1 : B - 1;
|
|
4150
|
-
(R = X.value[L]) == null || R.focus();
|
|
4182
|
+
function ge(g) {
|
|
4183
|
+
var N;
|
|
4184
|
+
const A = (g + 1) % Q.value.length;
|
|
4185
|
+
(N = Q.value[A]) == null || N.focus();
|
|
4151
4186
|
}
|
|
4152
|
-
function
|
|
4153
|
-
var
|
|
4154
|
-
const
|
|
4155
|
-
|
|
4156
|
-
s.value && C.value && (Y = (Ge = T.value) == null ? void 0 : Ge.offsetLeft, _ = (He = T.value) == null ? void 0 : He.offsetWidth), R = Math.max(Math.abs((Y - B) / L * 300), 100), i.value.style.setProperty("--active-line-max-width", `${L}px`), i.value.style.setProperty("--active-line-scale", `${_ / L}`), i.value.style.setProperty("--active-line-offset", `${Y}px`), i.value.style.setProperty("--active-line-transition-duration", `${R}ms`);
|
|
4187
|
+
function P(g) {
|
|
4188
|
+
var N;
|
|
4189
|
+
const A = g === 0 ? Q.value.length - 1 : g - 1;
|
|
4190
|
+
(N = Q.value[A]) == null || N.focus();
|
|
4157
4191
|
}
|
|
4158
4192
|
function U() {
|
|
4159
|
-
var
|
|
4160
|
-
|
|
4193
|
+
var re, ae, He, Ke;
|
|
4194
|
+
const g = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0, A = I.value;
|
|
4195
|
+
let N = 300, X = ((ae = (re = Q.value) == null ? void 0 : re[h.value]) == null ? void 0 : ae.offsetLeft) || 0, te = Le(h.value);
|
|
4196
|
+
s.value && C.value && (X = (He = S.value) == null ? void 0 : He.offsetLeft, te = (Ke = S.value) == null ? void 0 : Ke.offsetWidth), N = Math.max(Math.abs((X - g) / A * 300), 100), r.value.style.setProperty("--active-line-max-width", `${A}px`), r.value.style.setProperty("--active-line-scale", `${te / A}`), r.value.style.setProperty("--active-line-offset", `${X}px`), r.value.style.setProperty("--active-line-transition-duration", `${N}ms`);
|
|
4197
|
+
}
|
|
4198
|
+
function W() {
|
|
4199
|
+
var g, A;
|
|
4200
|
+
(A = (g = w.value) == null ? void 0 : g.disconnect) == null || A.call(g), w.value = null;
|
|
4161
4201
|
}
|
|
4162
|
-
function
|
|
4163
|
-
|
|
4164
|
-
for (let
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
}),
|
|
4202
|
+
function fe() {
|
|
4203
|
+
w.value = new ResizeObserver((g) => {
|
|
4204
|
+
for (let A of g)
|
|
4205
|
+
I.value = A.contentBoxSize[0].inlineSize;
|
|
4206
|
+
ie();
|
|
4207
|
+
}), w.value.observe(r.value);
|
|
4168
4208
|
}
|
|
4169
|
-
function
|
|
4170
|
-
|
|
4209
|
+
function ut() {
|
|
4210
|
+
y.value = Array.from(r.value.children).filter((g) => g.role === "tab");
|
|
4171
4211
|
}
|
|
4172
|
-
function
|
|
4173
|
-
let
|
|
4174
|
-
|
|
4175
|
-
|
|
4212
|
+
function ct() {
|
|
4213
|
+
let g;
|
|
4214
|
+
y.value.forEach((A, N) => {
|
|
4215
|
+
g = A.getBoundingClientRect().width + dl, f.value.push(N ? g + f.value[N - 1] : g);
|
|
4176
4216
|
});
|
|
4177
4217
|
}
|
|
4178
|
-
return
|
|
4179
|
-
var
|
|
4218
|
+
return z(() => t.activeTabId, Ve), Y(() => {
|
|
4219
|
+
var g;
|
|
4180
4220
|
try {
|
|
4181
|
-
|
|
4182
|
-
} catch (
|
|
4183
|
-
console.log("tab error",
|
|
4221
|
+
ut(), ct(), fe(), I.value = r.value.getBoundingClientRect().width, ie(), t.withBsTabs || (g = y.value[h.value]) == null || g.setAttribute("aria-selected", "true"), c.value = !0;
|
|
4222
|
+
} catch (A) {
|
|
4223
|
+
console.log("tab error", A);
|
|
4184
4224
|
}
|
|
4185
|
-
}),
|
|
4225
|
+
}), de(W), (g, A) => (d(), b("div", {
|
|
4186
4226
|
class: "bs-tab-list",
|
|
4187
4227
|
"data-component": "bs-tab-list",
|
|
4188
|
-
id:
|
|
4228
|
+
id: g.$attrs.id || p(q),
|
|
4189
4229
|
ref_key: "hostEl",
|
|
4190
|
-
ref:
|
|
4230
|
+
ref: r,
|
|
4191
4231
|
role: "tablist",
|
|
4192
4232
|
"data-resizing": !l.value || void 0,
|
|
4193
|
-
onClick:
|
|
4194
|
-
"on:tabClick":
|
|
4233
|
+
onClick: qe,
|
|
4234
|
+
"on:tabClick": A[0] || (A[0] = (N) => ee(N.detail)),
|
|
4195
4235
|
onKeydown: me
|
|
4196
4236
|
}, [
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
"aria-controls": p(
|
|
4237
|
+
D(g.$slots, "default"),
|
|
4238
|
+
$("button", {
|
|
4239
|
+
"aria-controls": p(B),
|
|
4200
4240
|
"aria-expanded": o.value,
|
|
4201
4241
|
class: "bs-tab-list-toggle",
|
|
4202
4242
|
"data-active": C.value || void 0,
|
|
4203
4243
|
"data-hidden": !s.value,
|
|
4204
|
-
id:
|
|
4244
|
+
id: j.value,
|
|
4205
4245
|
ref_key: "dropdownToggle",
|
|
4206
|
-
ref:
|
|
4207
|
-
onClick:
|
|
4246
|
+
ref: S,
|
|
4247
|
+
onClick: De
|
|
4208
4248
|
}, [
|
|
4209
|
-
|
|
4210
|
-
|
|
4249
|
+
V(p(St), { size: "sm" }),
|
|
4250
|
+
H(" " + x(R.value), 1)
|
|
4211
4251
|
], 8, il),
|
|
4212
|
-
c.value ? (d(),
|
|
4252
|
+
c.value ? (d(), L(Ge, {
|
|
4213
4253
|
key: 0,
|
|
4214
|
-
"anchor-id":
|
|
4215
|
-
"container-id":
|
|
4254
|
+
"anchor-id": j.value,
|
|
4255
|
+
"container-id": g.$attrs.id || p(q),
|
|
4216
4256
|
"helper-description": e.helperDescription || void 0,
|
|
4217
4257
|
"helper-text": e.helperText,
|
|
4218
|
-
id: p(
|
|
4219
|
-
"options-id":
|
|
4258
|
+
id: p(B),
|
|
4259
|
+
"options-id": O.value,
|
|
4220
4260
|
position: "right",
|
|
4221
4261
|
preloaded: "",
|
|
4222
4262
|
shown: o.value,
|
|
4223
4263
|
width: "content",
|
|
4224
|
-
onClose:
|
|
4225
|
-
"onUpdate:modelValue":
|
|
4264
|
+
onClose: Ee,
|
|
4265
|
+
"onUpdate:modelValue": Oe
|
|
4226
4266
|
}, {
|
|
4227
|
-
default:
|
|
4228
|
-
(d(!0), b(G, null,
|
|
4229
|
-
key:
|
|
4230
|
-
value:
|
|
4231
|
-
"options-id":
|
|
4267
|
+
default: E(() => [
|
|
4268
|
+
(d(!0), b(G, null, J(u.value, (N) => (d(), L(We, {
|
|
4269
|
+
key: N.id,
|
|
4270
|
+
value: N.id,
|
|
4271
|
+
"options-id": O.value
|
|
4232
4272
|
}, {
|
|
4233
|
-
default:
|
|
4234
|
-
|
|
4273
|
+
default: E(() => [
|
|
4274
|
+
H(x(N.textContent), 1)
|
|
4235
4275
|
]),
|
|
4236
4276
|
_: 2
|
|
4237
4277
|
}, 1032, ["value", "options-id"]))), 128))
|
|
4238
4278
|
]),
|
|
4239
4279
|
_: 1
|
|
4240
|
-
}, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])) :
|
|
4280
|
+
}, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])) : k("", !0)
|
|
4241
4281
|
], 40, ol));
|
|
4242
4282
|
}
|
|
4243
|
-
}, ul = ["aria-labelledby", "data-active", "id"],
|
|
4283
|
+
}, ul = ["aria-labelledby", "data-active", "id"], Ql = {
|
|
4244
4284
|
__name: "BsTabPanel",
|
|
4245
4285
|
props: {
|
|
4246
4286
|
activeTabId: {
|
|
@@ -4253,15 +4293,15 @@ const Sa = {
|
|
|
4253
4293
|
}
|
|
4254
4294
|
},
|
|
4255
4295
|
setup(e) {
|
|
4256
|
-
const a = e, t =
|
|
4257
|
-
return (
|
|
4296
|
+
const a = e, t = le(), n = v(() => a.activeTabId && a.activeTabId === a.tabId), l = v(() => t.id || `${a.tabId}-panel`);
|
|
4297
|
+
return (i, u) => (d(), b("section", {
|
|
4258
4298
|
"aria-labelledby": e.tabId,
|
|
4259
4299
|
"data-active": n.value,
|
|
4260
4300
|
"data-component": "bs-tab-panel",
|
|
4261
4301
|
id: l.value,
|
|
4262
4302
|
role: "tabpanel"
|
|
4263
4303
|
}, [
|
|
4264
|
-
|
|
4304
|
+
D(i.$slots, "default")
|
|
4265
4305
|
], 8, ul));
|
|
4266
4306
|
}
|
|
4267
4307
|
}, cl = ["data-error", "id", "rows", "value"], fl = {
|
|
@@ -4280,17 +4320,17 @@ const Sa = {
|
|
|
4280
4320
|
emits: ["update:modelValue"],
|
|
4281
4321
|
setup(e, { emit: a }) {
|
|
4282
4322
|
const t = e, n = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
4283
|
-
return (l,
|
|
4323
|
+
return (l, i) => (d(), b("textarea", M({
|
|
4284
4324
|
class: "bs-textarea",
|
|
4285
4325
|
"data-component": "bs-textarea",
|
|
4286
4326
|
"data-error": e.error,
|
|
4287
4327
|
id: l.$attrs.id || e.inputId,
|
|
4288
4328
|
rows: l.$attrs.rows || 6,
|
|
4289
4329
|
value: e.value || e.modelValue,
|
|
4290
|
-
onInput:
|
|
4330
|
+
onInput: i[0] || (i[0] = (u) => l.$emit("update:modelValue", u.target.value))
|
|
4291
4331
|
}, n.value), null, 16, cl));
|
|
4292
4332
|
}
|
|
4293
|
-
},
|
|
4333
|
+
}, Xl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4294
4334
|
__name: "BsTextareaField",
|
|
4295
4335
|
props: {
|
|
4296
4336
|
/** 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. */
|
|
@@ -4339,40 +4379,40 @@ const Sa = {
|
|
|
4339
4379
|
},
|
|
4340
4380
|
emits: ["update:modelValue"],
|
|
4341
4381
|
setup(e, { emit: a }) {
|
|
4342
|
-
const t = e, [n, l] =
|
|
4382
|
+
const t = e, [n, l] = Z(2), i = v(() => ca.concat(t.passAttrs.split(","))), u = v(() => {
|
|
4343
4383
|
var c;
|
|
4344
4384
|
return ((c = t.value || t.modelValue) == null ? void 0 : c.length) || 0;
|
|
4345
4385
|
}), o = v(() => {
|
|
4346
4386
|
var c, f;
|
|
4347
4387
|
return ((f = (c = t.hints) == null ? void 0 : c.join) == null ? void 0 : f.call(c, `
|
|
4348
4388
|
`)) || t.hints;
|
|
4349
|
-
}), s = v(() => t.error && t.errorMsg || t.hint || o.value || void 0),
|
|
4350
|
-
return (c, f) => (d(), b("div",
|
|
4351
|
-
e.label || c.$slots.label ? (d(),
|
|
4389
|
+
}), s = v(() => t.error && t.errorMsg || t.hint || o.value || void 0), r = v(() => t.inputId || n.value);
|
|
4390
|
+
return (c, f) => (d(), b("div", M({ "data-component": "bs-textarea-field" }, p(K)(c.$attrs, i.value).remaining), [
|
|
4391
|
+
e.label || c.$slots.label ? (d(), L(oe, {
|
|
4352
4392
|
key: 0,
|
|
4353
|
-
for: c.$attrs.id ||
|
|
4393
|
+
for: c.$attrs.id || r.value,
|
|
4354
4394
|
disabled: e.disabled,
|
|
4355
4395
|
required: e.required
|
|
4356
4396
|
}, {
|
|
4357
|
-
default:
|
|
4358
|
-
|
|
4359
|
-
|
|
4397
|
+
default: E(() => [
|
|
4398
|
+
D(c.$slots, "label", {}, () => [
|
|
4399
|
+
H(x(e.label), 1)
|
|
4360
4400
|
])
|
|
4361
4401
|
]),
|
|
4362
4402
|
_: 3
|
|
4363
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
4364
|
-
|
|
4403
|
+
}, 8, ["for", "disabled", "required"])) : k("", !0),
|
|
4404
|
+
V(fl, M({
|
|
4365
4405
|
disabled: e.disabled,
|
|
4366
4406
|
error: e.error,
|
|
4367
4407
|
"hint-id": p(l),
|
|
4368
|
-
id: c.$attrs.id ||
|
|
4408
|
+
id: c.$attrs.id || r.value,
|
|
4369
4409
|
placeholder: e.placeholder,
|
|
4370
4410
|
required: e.required,
|
|
4371
4411
|
rows: e.rows,
|
|
4372
4412
|
value: e.value || e.modelValue,
|
|
4373
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
4374
|
-
}, p(
|
|
4375
|
-
s.value || e.charMax ? (d(),
|
|
4413
|
+
"onUpdate:modelValue": f[0] || (f[0] = (T) => c.$emit("update:modelValue", T))
|
|
4414
|
+
}, p(K)(c.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
|
|
4415
|
+
s.value || e.charMax ? (d(), L(he, {
|
|
4376
4416
|
key: 1,
|
|
4377
4417
|
"char-count": u.value,
|
|
4378
4418
|
"char-max": e.charMax,
|
|
@@ -4381,10 +4421,10 @@ const Sa = {
|
|
|
4381
4421
|
"error-msg": e.errorMsg,
|
|
4382
4422
|
hint: e.hint || o.value,
|
|
4383
4423
|
"hint-id": p(l)
|
|
4384
|
-
}, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) :
|
|
4424
|
+
}, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) : k("", !0)
|
|
4385
4425
|
], 16));
|
|
4386
4426
|
}
|
|
4387
|
-
}), pl = ["data-variant", "data-stacked"],
|
|
4427
|
+
}), pl = ["data-variant", "data-stacked"], Zl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4388
4428
|
__name: "BsToast",
|
|
4389
4429
|
props: {
|
|
4390
4430
|
shown: {
|
|
@@ -4431,18 +4471,18 @@ const Sa = {
|
|
|
4431
4471
|
emits: ["dismiss", "after-enter", "after-leave"],
|
|
4432
4472
|
setup(e, { emit: a }) {
|
|
4433
4473
|
const t = e, n = a, { transition: l } = ve(t);
|
|
4434
|
-
let
|
|
4435
|
-
|
|
4436
|
-
const u =
|
|
4474
|
+
let i = null;
|
|
4475
|
+
ue("variant", t.variant), ue("handleDismiss", o);
|
|
4476
|
+
const u = ce("stacked", t.stacked);
|
|
4437
4477
|
function o() {
|
|
4438
|
-
|
|
4478
|
+
i && (clearTimeout(i), i = null), n("dismiss", t.toastId);
|
|
4439
4479
|
}
|
|
4440
4480
|
function s() {
|
|
4441
|
-
t.duration > 0 && (
|
|
4481
|
+
t.duration > 0 && (i = setTimeout(() => {
|
|
4442
4482
|
o();
|
|
4443
4483
|
}, t.duration)), n("after-enter");
|
|
4444
4484
|
}
|
|
4445
|
-
return (
|
|
4485
|
+
return (r, c) => (d(), L(p(Ae), {
|
|
4446
4486
|
shown: p(l),
|
|
4447
4487
|
preloaded: e.preloaded,
|
|
4448
4488
|
duration: 200,
|
|
@@ -4450,41 +4490,41 @@ const Sa = {
|
|
|
4450
4490
|
onAfterEnter: s,
|
|
4451
4491
|
onAfterLeave: c[0] || (c[0] = (f) => n("after-leave"))
|
|
4452
4492
|
}, {
|
|
4453
|
-
default:
|
|
4454
|
-
|
|
4493
|
+
default: E(() => [
|
|
4494
|
+
$("div", M({
|
|
4455
4495
|
class: "bs-toast",
|
|
4456
4496
|
"data-variant": e.variant,
|
|
4457
4497
|
"data-stacked": p(u) || void 0,
|
|
4458
4498
|
role: "alert"
|
|
4459
|
-
},
|
|
4460
|
-
|
|
4499
|
+
}, r.$attrs), [
|
|
4500
|
+
D(r.$slots, "default")
|
|
4461
4501
|
], 16, pl)
|
|
4462
4502
|
]),
|
|
4463
4503
|
_: 3
|
|
4464
4504
|
}, 8, ["shown", "preloaded"]));
|
|
4465
4505
|
}
|
|
4466
|
-
}), vl = ["data-stacked"],
|
|
4506
|
+
}), vl = ["data-stacked"], Jl = {
|
|
4467
4507
|
__name: "BsToastActions",
|
|
4468
4508
|
setup(e) {
|
|
4469
|
-
const a =
|
|
4470
|
-
|
|
4509
|
+
const a = m(!1);
|
|
4510
|
+
Y(() => {
|
|
4471
4511
|
var l;
|
|
4472
|
-
const n =
|
|
4512
|
+
const n = lt();
|
|
4473
4513
|
((l = n.default) == null ? void 0 : l.call(n).length) > 2 && (a.value = !0);
|
|
4474
4514
|
});
|
|
4475
|
-
const t =
|
|
4515
|
+
const t = ce("handleDismiss");
|
|
4476
4516
|
return (n, l) => (d(), b("div", {
|
|
4477
4517
|
class: "bs-toast-actions",
|
|
4478
4518
|
"data-stacked": a.value || void 0
|
|
4479
4519
|
}, [
|
|
4480
|
-
|
|
4481
|
-
|
|
4520
|
+
D(n.$slots, "default", {}, () => [
|
|
4521
|
+
V(pa, {
|
|
4482
4522
|
size: "sm",
|
|
4483
4523
|
"text-btn": "",
|
|
4484
4524
|
onClick: p(t)
|
|
4485
4525
|
}, {
|
|
4486
|
-
default:
|
|
4487
|
-
|
|
4526
|
+
default: E(() => [
|
|
4527
|
+
H(" Dismiss ")
|
|
4488
4528
|
]),
|
|
4489
4529
|
_: 1
|
|
4490
4530
|
}, 8, ["onClick"])
|
|
@@ -4499,42 +4539,42 @@ const Sa = {
|
|
|
4499
4539
|
}, bl = {}, ml = { class: "bs-toast-body" };
|
|
4500
4540
|
function gl(e, a) {
|
|
4501
4541
|
return d(), b("div", ml, [
|
|
4502
|
-
|
|
4542
|
+
D(e.$slots, "default")
|
|
4503
4543
|
]);
|
|
4504
4544
|
}
|
|
4505
|
-
const
|
|
4545
|
+
const _l = /* @__PURE__ */ hl(bl, [["render", gl]]), yl = ["data-variant"], eo = {
|
|
4506
4546
|
__name: "BsToastHeader",
|
|
4507
4547
|
setup(e) {
|
|
4508
|
-
const a =
|
|
4548
|
+
const a = ce("variant"), t = v(() => {
|
|
4509
4549
|
switch (a) {
|
|
4510
4550
|
case "warning":
|
|
4511
|
-
return
|
|
4551
|
+
return Ne;
|
|
4512
4552
|
case "positive":
|
|
4513
|
-
return
|
|
4553
|
+
return kt;
|
|
4514
4554
|
case "negative":
|
|
4515
|
-
return
|
|
4555
|
+
return Ne;
|
|
4516
4556
|
default:
|
|
4517
|
-
return
|
|
4557
|
+
return wt;
|
|
4518
4558
|
}
|
|
4519
4559
|
});
|
|
4520
4560
|
return (n, l) => (d(), b("div", {
|
|
4521
4561
|
class: "bs-toast-header",
|
|
4522
4562
|
"data-variant": p(a)
|
|
4523
4563
|
}, [
|
|
4524
|
-
(d(),
|
|
4525
|
-
|
|
4526
|
-
|
|
4564
|
+
(d(), L(_(t.value), { class: "bs-toast-header-icon" })),
|
|
4565
|
+
$("h5", null, [
|
|
4566
|
+
D(n.$slots, "default")
|
|
4527
4567
|
])
|
|
4528
4568
|
], 8, yl));
|
|
4529
4569
|
}
|
|
4530
|
-
}, Bl = { class: "bs-toaster" },
|
|
4570
|
+
}, Bl = { class: "bs-toaster" }, to = {
|
|
4531
4571
|
__name: "BsToaster",
|
|
4532
4572
|
setup(e) {
|
|
4533
|
-
return
|
|
4534
|
-
|
|
4573
|
+
return ue("stacked", !0), (a, t) => (d(), b("div", Bl, [
|
|
4574
|
+
D(a.$slots, "default")
|
|
4535
4575
|
]));
|
|
4536
4576
|
}
|
|
4537
|
-
}, $l = ["data-position"], Sl = ["id"],
|
|
4577
|
+
}, $l = ["data-position"], Sl = ["id"], ao = {
|
|
4538
4578
|
__name: "BsTooltip",
|
|
4539
4579
|
props: {
|
|
4540
4580
|
tooltipId: {
|
|
@@ -4561,14 +4601,14 @@ const eo = /* @__PURE__ */ hl(bl, [["render", gl]]), yl = ["data-variant"], to =
|
|
|
4561
4601
|
}
|
|
4562
4602
|
},
|
|
4563
4603
|
setup(e) {
|
|
4564
|
-
const a = e, t =
|
|
4604
|
+
const a = e, t = m(!1), n = m(!1), l = v(() => {
|
|
4565
4605
|
let o = "bs-tooltip-text";
|
|
4566
4606
|
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;
|
|
4567
4607
|
});
|
|
4568
|
-
|
|
4608
|
+
Te(["Escape"], () => {
|
|
4569
4609
|
t.value && (t.value = !1, n.value = !0);
|
|
4570
4610
|
});
|
|
4571
|
-
function
|
|
4611
|
+
function i() {
|
|
4572
4612
|
t.value = !0;
|
|
4573
4613
|
}
|
|
4574
4614
|
function u() {
|
|
@@ -4578,69 +4618,69 @@ const eo = /* @__PURE__ */ hl(bl, [["render", gl]]), yl = ["data-variant"], to =
|
|
|
4578
4618
|
class: "bs-tooltip",
|
|
4579
4619
|
"data-position": e.position || void 0,
|
|
4580
4620
|
"data-component": "bs-tooltip",
|
|
4581
|
-
onMouseenter:
|
|
4582
|
-
onFocusin:
|
|
4621
|
+
onMouseenter: i,
|
|
4622
|
+
onFocusin: i,
|
|
4583
4623
|
onMouseleave: u,
|
|
4584
4624
|
onFocusout: u
|
|
4585
4625
|
}, [
|
|
4586
|
-
|
|
4626
|
+
D(o.$slots, "default"),
|
|
4587
4627
|
e.content ? (d(), b("div", {
|
|
4588
4628
|
key: 0,
|
|
4589
|
-
class:
|
|
4629
|
+
class: ne(l.value),
|
|
4590
4630
|
id: e.tooltipId,
|
|
4591
4631
|
role: "tooltip"
|
|
4592
|
-
},
|
|
4632
|
+
}, x(e.content), 11, Sl)) : k("", !0)
|
|
4593
4633
|
], 40, $l));
|
|
4594
4634
|
}
|
|
4595
4635
|
};
|
|
4596
4636
|
export {
|
|
4597
4637
|
Al as BsAccordion,
|
|
4598
|
-
|
|
4638
|
+
Gt as BsBadge,
|
|
4599
4639
|
Ll as BsBanner,
|
|
4600
|
-
|
|
4640
|
+
pa as BsButton,
|
|
4601
4641
|
Vl as BsCalendar,
|
|
4602
4642
|
El as BsChartBar,
|
|
4603
4643
|
Dl as BsCheckbox,
|
|
4604
4644
|
Ol as BsCircleButton,
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4645
|
+
st as BsDropdown,
|
|
4646
|
+
Ya as BsDropdownMultiselect,
|
|
4647
|
+
We as BsDropdownOption,
|
|
4648
|
+
$e as BsDropdownOptionBuilder,
|
|
4649
|
+
Ue as BsDropdownOptionList,
|
|
4650
|
+
Ge as BsDropdownWithOptions,
|
|
4611
4651
|
ql as BsDropdownWithToggle,
|
|
4612
4652
|
he as BsFieldDetails,
|
|
4613
|
-
|
|
4653
|
+
Ja as BsFilterButton,
|
|
4614
4654
|
Pl as BsIconGradientWrapper,
|
|
4615
4655
|
be as BsInput,
|
|
4616
|
-
|
|
4656
|
+
xe as BsInputAddon,
|
|
4617
4657
|
Ml as BsInputField,
|
|
4618
4658
|
zl as BsInputPhone,
|
|
4619
|
-
|
|
4659
|
+
sn as BsInputSearch,
|
|
4620
4660
|
Nl as BsInputTypeahead,
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4661
|
+
oe as BsLabel,
|
|
4662
|
+
bn as BsLoader,
|
|
4663
|
+
Rl as BsModal,
|
|
4624
4664
|
yn as BsOverlay,
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4665
|
+
jl as BsPagination,
|
|
4666
|
+
Fl as BsPill,
|
|
4667
|
+
Ul as BsProfile,
|
|
4628
4668
|
Kn as BsProfileDetails,
|
|
4629
|
-
|
|
4630
|
-
|
|
4669
|
+
dt as BsProfileImg,
|
|
4670
|
+
Wl as BsRadio,
|
|
4631
4671
|
Zn as BsSelect,
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4672
|
+
Gl as BsSelectField,
|
|
4673
|
+
Hl as BsSwitch,
|
|
4674
|
+
Kl as BsTab,
|
|
4675
|
+
Yl as BsTabList,
|
|
4676
|
+
Ql as BsTabPanel,
|
|
4637
4677
|
fl as BsTextarea,
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4678
|
+
Xl as BsTextareaField,
|
|
4679
|
+
Zl as BsToast,
|
|
4680
|
+
Jl as BsToastActions,
|
|
4681
|
+
_l as BsToastBody,
|
|
4682
|
+
eo as BsToastHeader,
|
|
4683
|
+
to as BsToaster,
|
|
4684
|
+
ao as BsTooltip,
|
|
4685
|
+
Ae as BsTransition
|
|
4646
4686
|
};
|