@wwtdev/bsds-components-vue3 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bsds-components.js +1898 -1489
- package/lib/components.css +1 -1
- package/package.json +4 -2
package/lib/bsds-components.js
CHANGED
|
@@ -1,52 +1,53 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { v4 as
|
|
3
|
-
import { BsIconCaretDown as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { computed as v, ref as y, onMounted as W, onUnmounted as oe, shallowRef as st, watch as z, defineAsyncComponent as Me, openBlock as d, createElementBlock as h, unref as p, createElementVNode as B, renderSlot as E, createBlock as V, resolveDynamicComponent as J, createCommentVNode as $, toDisplayString as T, createVNode as D, normalizeClass as ae, Fragment as j, useAttrs as G, mergeProps as P, withCtx as O, toHandlers as De, onBeforeUnmount as Je, onBeforeMount as _e, createTextVNode as U, renderList as Z, withDirectives as ge, Transition as Fe, vShow as ye, provide as re, Teleport as dt, normalizeStyle as ut, inject as se, withModifiers as We, nextTick as ve, isRef as ct, useSlots as ft } from "vue";
|
|
2
|
+
import { v4 as et } from "uuid";
|
|
3
|
+
import { BsIconCaretDown as tt, BsIconWarning as Oe, BsIconClose as Be, BsIconCalendar as at, BsIconCaretSort as pt, BsIconSearch as ht, BsIconCaretLeftDouble as vt, BsIconCaretLeft as bt, BsIconCaretRight as mt, BsIconCaretRightDouble as gt, BsIconActionEllipsis as yt, BsIconCircleExclamation as Bt, BsIconThumbsUpStroke as St } from "@wwtdev/bsds-icons-vue3";
|
|
4
|
+
import { DatePicker as wt } from "v-calendar";
|
|
5
|
+
import { Chart as Ve, BarController as $t, BarElement as kt, CategoryScale as It, LinearScale as Ct, Legend as xt, Tooltip as Tt } from "chart.js";
|
|
6
|
+
import { getSupportedCallingCodes as At, getRegionCodeForCountryCode as Lt, parsePhoneNumber as Ge } from "awesome-phonenumber";
|
|
7
|
+
const He = {
|
|
7
8
|
href: "a",
|
|
8
9
|
linkTo: "a",
|
|
9
10
|
onclick: "button",
|
|
10
11
|
onClick: "button",
|
|
11
12
|
type: "button"
|
|
12
13
|
};
|
|
13
|
-
function
|
|
14
|
-
const n =
|
|
15
|
-
const
|
|
16
|
-
return
|
|
17
|
-
}), r =
|
|
18
|
-
const
|
|
19
|
-
return delete
|
|
20
|
-
}),
|
|
21
|
-
return { rootTag: n, attrsToBind: r, hrefUrl:
|
|
14
|
+
function Se(e, a, t = "button") {
|
|
15
|
+
const n = Vt(e, a, t), l = v(() => {
|
|
16
|
+
const o = n.value === "button", i = {};
|
|
17
|
+
return o ? (i.type = a.type || "button", i.autocomplete = "off", e.disabled && (i.disabled = !0)) : e.disabled && (i["aria-disabled"] = "true", i.tabindex = "-1"), i;
|
|
18
|
+
}), r = v(() => {
|
|
19
|
+
const o = { ...a, ...l.value };
|
|
20
|
+
return delete o.href, o;
|
|
21
|
+
}), s = v(() => e.linkTo || e.href);
|
|
22
|
+
return { rootTag: n, attrsToBind: r, hrefUrl: s };
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
-
const n = Object.keys(
|
|
25
|
-
return
|
|
24
|
+
function Vt(e, a, t) {
|
|
25
|
+
const n = Object.keys(He).find((l) => Et(e, a, l));
|
|
26
|
+
return y(He[n] || t);
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
+
function Et(e, a, t) {
|
|
28
29
|
return e[t] || a[t];
|
|
29
30
|
}
|
|
30
|
-
const
|
|
31
|
+
const Dt = (e, a) => {
|
|
31
32
|
const t = (n) => {
|
|
32
33
|
e.some((l) => {
|
|
33
34
|
var r;
|
|
34
35
|
return (r = l.value) == null ? void 0 : r.contains(n.target);
|
|
35
36
|
}) || a(n);
|
|
36
37
|
};
|
|
37
|
-
|
|
38
|
+
W(() => {
|
|
38
39
|
document.addEventListener("click", t);
|
|
39
|
-
}),
|
|
40
|
+
}), oe(() => {
|
|
40
41
|
document.removeEventListener("click", t);
|
|
41
42
|
});
|
|
42
43
|
};
|
|
43
|
-
function
|
|
44
|
-
const a =
|
|
45
|
-
var r,
|
|
46
|
-
return ((
|
|
47
|
-
}), n =
|
|
48
|
-
var r,
|
|
49
|
-
return t.value && ((r = e.router) == null ? void 0 : r.navigateTo) || ((
|
|
44
|
+
function we(e) {
|
|
45
|
+
const a = v(() => e.linkTo || e.href || ""), t = v(() => {
|
|
46
|
+
var r, s;
|
|
47
|
+
return ((s = (r = a.value) == null ? void 0 : r.startsWith) == null ? void 0 : s.call(r, "/")) || !1;
|
|
48
|
+
}), n = v(() => {
|
|
49
|
+
var r, s;
|
|
50
|
+
return t.value && ((r = e.router) == null ? void 0 : r.navigateTo) || ((s = e.router) == null ? void 0 : s.push) || null;
|
|
50
51
|
});
|
|
51
52
|
function l(r) {
|
|
52
53
|
if (e.disabled) {
|
|
@@ -59,62 +60,62 @@ function me(e) {
|
|
|
59
60
|
}
|
|
60
61
|
return { onLinkClick: l };
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
+
function Ke(e) {
|
|
63
64
|
return e.split("-").map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join("");
|
|
64
65
|
}
|
|
65
|
-
const
|
|
66
|
+
const be = (e, a) => {
|
|
66
67
|
function t(l) {
|
|
67
68
|
if (!l)
|
|
68
69
|
return null;
|
|
69
|
-
const r = l.startsWith("bs-") ?
|
|
70
|
-
return
|
|
71
|
-
const { [r]:
|
|
72
|
-
return
|
|
70
|
+
const r = l.startsWith("bs-") ? Ke(l) : `BsIcon${Ke(l)}`;
|
|
71
|
+
return Me(async () => {
|
|
72
|
+
const { [r]: s } = await import("@wwtdev/bsds-icons-vue3");
|
|
73
|
+
return s;
|
|
73
74
|
});
|
|
74
75
|
}
|
|
75
|
-
const n =
|
|
76
|
+
const n = st();
|
|
76
77
|
return n.value = t(e[a]), z(() => e[a], async (l) => n.value = t(l)), { icon: n };
|
|
77
78
|
};
|
|
78
79
|
function Y(e = 1) {
|
|
79
80
|
const a = [];
|
|
80
81
|
for (let t = 0; t < e; t++)
|
|
81
|
-
a.push(
|
|
82
|
-
return
|
|
83
|
-
a.forEach((t) => t.value = `id-${
|
|
82
|
+
a.push(y(""));
|
|
83
|
+
return W(() => {
|
|
84
|
+
a.forEach((t) => t.value = `id-${et()}`);
|
|
84
85
|
}), a;
|
|
85
86
|
}
|
|
86
|
-
const
|
|
87
|
+
const $e = (e, a, t = void 0) => {
|
|
87
88
|
const n = (l) => {
|
|
88
89
|
e.includes(l.key) && a(l);
|
|
89
90
|
};
|
|
90
|
-
|
|
91
|
+
W(() => {
|
|
91
92
|
((t == null ? void 0 : t.value) ?? document).addEventListener("keydown", n);
|
|
92
|
-
}),
|
|
93
|
+
}), oe(() => {
|
|
93
94
|
((t == null ? void 0 : t.value) ?? document).removeEventListener("keydown", n);
|
|
94
95
|
});
|
|
95
|
-
},
|
|
96
|
+
}, Ot = (e, a, t) => {
|
|
96
97
|
let n = null;
|
|
97
|
-
|
|
98
|
+
W(() => {
|
|
98
99
|
n = new MutationObserver(a), n.observe(e.value, t);
|
|
99
|
-
}),
|
|
100
|
+
}), oe(() => {
|
|
100
101
|
n.disconnect();
|
|
101
102
|
});
|
|
102
103
|
};
|
|
103
104
|
function ie(e, a, t = []) {
|
|
104
|
-
var
|
|
105
|
-
const n = ((
|
|
105
|
+
var o, i;
|
|
106
|
+
const n = ((i = (o = e.passAttrs) == null ? void 0 : o.split) == null ? void 0 : i.call(o, ",")) || [], l = /* @__PURE__ */ new Set([...n, ...t]);
|
|
106
107
|
l.delete("");
|
|
107
|
-
const r =
|
|
108
|
+
const r = y({}), s = y({});
|
|
108
109
|
for (let u in a)
|
|
109
|
-
l.has(u) ?
|
|
110
|
+
l.has(u) ? s.value[u] = a[u] : r.value[u] = a[u];
|
|
110
111
|
return {
|
|
111
112
|
toRoot: r,
|
|
112
|
-
toChild:
|
|
113
|
+
toChild: s
|
|
113
114
|
};
|
|
114
115
|
}
|
|
115
|
-
const
|
|
116
|
-
const a =
|
|
117
|
-
return
|
|
116
|
+
const ue = (e) => {
|
|
117
|
+
const a = y(!1);
|
|
118
|
+
return W(() => {
|
|
118
119
|
a.value = e.enterControlled || e.preloaded ? e.enterTrigger : e.shown;
|
|
119
120
|
}), z(() => e.shown, (t) => {
|
|
120
121
|
a.value = t;
|
|
@@ -123,11 +124,11 @@ const Be = (e) => {
|
|
|
123
124
|
}), z(() => e.leaveTrigger, (t) => {
|
|
124
125
|
t && (a.value = !1);
|
|
125
126
|
}), { transition: a };
|
|
126
|
-
},
|
|
127
|
+
}, qt = ["id", "data-stacked"], Mt = ["data-open"], Pt = ["aria-controls", "aria-expanded"], zt = {
|
|
127
128
|
key: 0,
|
|
128
129
|
"data-position": "start",
|
|
129
130
|
style: { display: "inline-flex" }
|
|
130
|
-
},
|
|
131
|
+
}, Rt = ["id", "aria-level"], Nt = ["aria-labelledby", "data-open", "id"], xl = {
|
|
131
132
|
__name: "BsAccordion",
|
|
132
133
|
props: {
|
|
133
134
|
controlled: { type: Boolean, default: !1 },
|
|
@@ -143,12 +144,12 @@ const Be = (e) => {
|
|
|
143
144
|
},
|
|
144
145
|
emits: ["toggled"],
|
|
145
146
|
setup(e, { emit: a }) {
|
|
146
|
-
const t = e, n = a, l =
|
|
147
|
-
function
|
|
148
|
-
n("toggled",
|
|
147
|
+
const t = e, n = a, l = y(null), r = y(!1), { icon: s } = be(t, "icon"), [o] = Y(), i = v(() => o.value + "-content"), u = v(() => o.value + "-title"), c = v(() => t.openItemId && t.openItemId === o.value || t.openItem === !0), f = v(() => t.controlled ? c.value : r.value);
|
|
148
|
+
function g() {
|
|
149
|
+
n("toggled", o.value), t.controlled || (r.value = !r.value);
|
|
149
150
|
}
|
|
150
|
-
return (
|
|
151
|
-
id:
|
|
151
|
+
return (m, x) => (d(), h("div", {
|
|
152
|
+
id: p(o),
|
|
152
153
|
ref_key: "containerRef",
|
|
153
154
|
ref: l,
|
|
154
155
|
class: "bs-accordion",
|
|
@@ -157,45 +158,45 @@ const Be = (e) => {
|
|
|
157
158
|
}, [
|
|
158
159
|
B("header", {
|
|
159
160
|
part: "header",
|
|
160
|
-
"data-open":
|
|
161
|
+
"data-open": f.value
|
|
161
162
|
}, [
|
|
162
163
|
B("button", {
|
|
163
|
-
"aria-controls":
|
|
164
|
-
"aria-expanded":
|
|
164
|
+
"aria-controls": i.value,
|
|
165
|
+
"aria-expanded": f.value,
|
|
165
166
|
type: "button",
|
|
166
|
-
onClick:
|
|
167
|
+
onClick: g
|
|
167
168
|
}, [
|
|
168
|
-
e.icon ||
|
|
169
|
-
|
|
170
|
-
e.icon ? (
|
|
169
|
+
e.icon || m.$slots.icon ? (d(), h("span", zt, [
|
|
170
|
+
E(m.$slots, "icon", {}, () => [
|
|
171
|
+
e.icon ? (d(), V(J(p(s) ? p(s) : "span"), { key: 0 })) : $("", !0)
|
|
171
172
|
])
|
|
172
|
-
])) :
|
|
173
|
+
])) : $("", !0),
|
|
173
174
|
B("span", {
|
|
174
175
|
id: u.value,
|
|
175
176
|
"aria-level": e.headingLevel,
|
|
176
177
|
role: "heading"
|
|
177
|
-
}, T(e.headerText), 9,
|
|
178
|
-
|
|
178
|
+
}, T(e.headerText), 9, Rt),
|
|
179
|
+
D(p(tt), {
|
|
179
180
|
size: "md",
|
|
180
181
|
"data-position": "end"
|
|
181
182
|
})
|
|
182
|
-
], 8,
|
|
183
|
-
], 8,
|
|
183
|
+
], 8, Pt)
|
|
184
|
+
], 8, Mt),
|
|
184
185
|
B("div", {
|
|
185
186
|
"aria-labelledby": u.value,
|
|
186
187
|
class: "bs-accordion-content",
|
|
187
|
-
"data-open":
|
|
188
|
-
id:
|
|
188
|
+
"data-open": f.value,
|
|
189
|
+
id: i.value,
|
|
189
190
|
part: "content",
|
|
190
191
|
role: "region"
|
|
191
192
|
}, [
|
|
192
193
|
B("div", null, [
|
|
193
|
-
|
|
194
|
+
E(m.$slots, "default")
|
|
194
195
|
])
|
|
195
|
-
], 8,
|
|
196
|
-
], 8,
|
|
196
|
+
], 8, Nt)
|
|
197
|
+
], 8, qt));
|
|
197
198
|
}
|
|
198
|
-
},
|
|
199
|
+
}, jt = ["data-badge-color", "data-count", "data-position", "data-show-zero", "data-variant", "aria-label"], Ut = {
|
|
199
200
|
__name: "BsBadge",
|
|
200
201
|
props: {
|
|
201
202
|
/** Pass value to set `data-badge-color`. */
|
|
@@ -242,18 +243,18 @@ const Be = (e) => {
|
|
|
242
243
|
}
|
|
243
244
|
},
|
|
244
245
|
setup(e) {
|
|
245
|
-
const a = e, t =
|
|
246
|
-
var
|
|
247
|
-
const r = ((u = (
|
|
248
|
-
if (!
|
|
246
|
+
const a = e, t = y(null), n = v(() => a.count === 0 ? "0" : !a.count || a.dot ? null : a.count > a.countMax ? a.countMax + "+" : a.count.toString()), l = v(() => {
|
|
247
|
+
var i, u;
|
|
248
|
+
const r = ((u = (i = t.value) == null ? void 0 : i.textContent) == null ? void 0 : u.trim()) || "", s = n.value ? n.value + " " : "";
|
|
249
|
+
if (!s && !a.dot)
|
|
249
250
|
return r;
|
|
250
|
-
const
|
|
251
|
-
return `${r ? `${r}, ` : ""}${
|
|
251
|
+
const o = a.count !== 1 ? "s" : "";
|
|
252
|
+
return `${r ? `${r}, ` : ""}${s}${a.label}${o}`;
|
|
252
253
|
});
|
|
253
|
-
return (r,
|
|
254
|
+
return (r, s) => (d(), h("span", {
|
|
254
255
|
ref_key: "hostRef",
|
|
255
256
|
ref: t,
|
|
256
|
-
class:
|
|
257
|
+
class: ae({ "bs-badge": e.dot || n.value }),
|
|
257
258
|
"data-badge-color": e.color,
|
|
258
259
|
"data-component": "bs-badge",
|
|
259
260
|
"data-count": n.value,
|
|
@@ -262,40 +263,491 @@ const Be = (e) => {
|
|
|
262
263
|
"data-variant": e.variant,
|
|
263
264
|
"aria-label": l.value
|
|
264
265
|
}, [
|
|
265
|
-
e.variant !== "notext" ?
|
|
266
|
-
], 10,
|
|
266
|
+
e.variant !== "notext" ? E(r.$slots, "default", { key: 0 }) : $("", !0)
|
|
267
|
+
], 10, jt));
|
|
267
268
|
}
|
|
268
|
-
},
|
|
269
|
+
}, Ft = {
|
|
269
270
|
key: 0,
|
|
270
271
|
role: "alert",
|
|
271
272
|
class: "bs-banner"
|
|
272
|
-
},
|
|
273
|
+
}, Wt = { class: "bs-banner-content" }, Gt = { class: "bs-banner-warning-icon" }, Tl = {
|
|
273
274
|
__name: "BsBanner",
|
|
274
275
|
emits: ["dismiss"],
|
|
275
276
|
setup(e, { emit: a }) {
|
|
276
|
-
const t = a, n =
|
|
277
|
+
const t = a, n = y(!1);
|
|
277
278
|
function l() {
|
|
278
279
|
n.value = !0, t("dismiss");
|
|
279
280
|
}
|
|
280
|
-
return (r,
|
|
281
|
-
B("div",
|
|
282
|
-
B("div",
|
|
283
|
-
|
|
281
|
+
return (r, s) => n.value ? $("", !0) : (d(), h("div", Ft, [
|
|
282
|
+
B("div", Wt, [
|
|
283
|
+
B("div", Gt, [
|
|
284
|
+
D(p(Oe), { size: "lg" })
|
|
284
285
|
]),
|
|
285
286
|
B("p", null, [
|
|
286
|
-
|
|
287
|
+
E(r.$slots, "default")
|
|
287
288
|
]),
|
|
288
289
|
B("button", {
|
|
289
290
|
type: "button",
|
|
290
291
|
title: "Close Banner",
|
|
291
292
|
onClick: l
|
|
292
293
|
}, [
|
|
293
|
-
|
|
294
|
+
D(p(Be))
|
|
294
295
|
])
|
|
295
296
|
])
|
|
296
297
|
]));
|
|
297
298
|
}
|
|
298
|
-
},
|
|
299
|
+
}, Ht = {
|
|
300
|
+
class: "bs-field-details",
|
|
301
|
+
"data-component": "bs-field-details"
|
|
302
|
+
}, Kt = ["id", "data-error"], Yt = ["data-error"], ce = {
|
|
303
|
+
__name: "BsFieldDetails",
|
|
304
|
+
props: {
|
|
305
|
+
/** The number of characters that have been entered by the user. */
|
|
306
|
+
charCount: Number,
|
|
307
|
+
/** Pass value to show character count and set the maximum number of characters that are allowed to be submitted by the user. */
|
|
308
|
+
charMax: Number,
|
|
309
|
+
/** Applies error styles to the helper text. */
|
|
310
|
+
error: {
|
|
311
|
+
type: Boolean,
|
|
312
|
+
default: !1
|
|
313
|
+
},
|
|
314
|
+
/** Pass error text. Will be shown if `error` is `true`. */
|
|
315
|
+
errorMsg: String,
|
|
316
|
+
/** Pass single helper text. */
|
|
317
|
+
hint: String,
|
|
318
|
+
/** Adds an id to associate a hint to an input. */
|
|
319
|
+
hintId: String
|
|
320
|
+
},
|
|
321
|
+
setup(e) {
|
|
322
|
+
const a = e, t = v(() => a.error && a.errorMsg || a.hint);
|
|
323
|
+
return (n, l) => (d(), h("div", Ht, [
|
|
324
|
+
t.value ? (d(), h("span", {
|
|
325
|
+
key: 0,
|
|
326
|
+
id: e.hintId,
|
|
327
|
+
class: "bs-hint",
|
|
328
|
+
"data-error": e.error
|
|
329
|
+
}, T(t.value), 9, Kt)) : $("", !0),
|
|
330
|
+
e.charMax ? (d(), h("span", {
|
|
331
|
+
key: 1,
|
|
332
|
+
"aria-description": "character count over character limit for the preceding text field",
|
|
333
|
+
class: "bs-character-count",
|
|
334
|
+
"data-error": a.charCount > a.charMax
|
|
335
|
+
}, T(a.charCount || "0") + " / " + T(a.charMax), 9, Yt)) : $("", !0)
|
|
336
|
+
]));
|
|
337
|
+
}
|
|
338
|
+
}, Qt = ["data-disabled", "for"], Xt = /* @__PURE__ */ B("span", {
|
|
339
|
+
"data-required": "true",
|
|
340
|
+
"aria-hidden": "true"
|
|
341
|
+
}, " *", -1), Zt = /* @__PURE__ */ B("span", { class: "visually-hidden" }, "required", -1), ne = {
|
|
342
|
+
__name: "BsLabel",
|
|
343
|
+
props: {
|
|
344
|
+
disabled: { type: Boolean, default: !1 },
|
|
345
|
+
for: { type: String, required: !0 },
|
|
346
|
+
hide: { type: Boolean, default: !1 },
|
|
347
|
+
required: { type: Boolean, default: !1 }
|
|
348
|
+
},
|
|
349
|
+
setup(e) {
|
|
350
|
+
return (a, t) => (d(), h("label", {
|
|
351
|
+
class: ae(["bs-label", e.hide ? "visually-hidden" : ""]),
|
|
352
|
+
"data-component": "bs-label",
|
|
353
|
+
"data-disabled": e.disabled,
|
|
354
|
+
for: e.for
|
|
355
|
+
}, [
|
|
356
|
+
B("span", null, [
|
|
357
|
+
E(a.$slots, "default")
|
|
358
|
+
]),
|
|
359
|
+
e.required ? (d(), h(j, { key: 0 }, [
|
|
360
|
+
Xt,
|
|
361
|
+
Zt
|
|
362
|
+
], 64)) : $("", !0)
|
|
363
|
+
], 10, Qt));
|
|
364
|
+
}
|
|
365
|
+
}, Jt = ["data-error", "id", "value"], fe = {
|
|
366
|
+
__name: "BsInput",
|
|
367
|
+
props: {
|
|
368
|
+
error: {
|
|
369
|
+
type: Boolean,
|
|
370
|
+
default: !1
|
|
371
|
+
},
|
|
372
|
+
hintId: String,
|
|
373
|
+
/** @Deprecated - Just set `id` since it will fall-through to the inner input element. */
|
|
374
|
+
inputId: String,
|
|
375
|
+
modelValue: [String, Number],
|
|
376
|
+
value: [String, Number]
|
|
377
|
+
},
|
|
378
|
+
emits: ["update:modelValue"],
|
|
379
|
+
setup(e, { emit: a }) {
|
|
380
|
+
const t = e, n = a, l = G(), r = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
381
|
+
function s(o) {
|
|
382
|
+
const i = l.type === "number" ? parseInt(o.target.value) : o.target.value;
|
|
383
|
+
n("update:modelValue", i);
|
|
384
|
+
}
|
|
385
|
+
return (o, i) => (d(), h("input", P({
|
|
386
|
+
class: "bs-input",
|
|
387
|
+
"data-component": "bs-input",
|
|
388
|
+
"data-error": e.error,
|
|
389
|
+
id: o.$attrs.id || e.inputId,
|
|
390
|
+
value: e.value || e.modelValue,
|
|
391
|
+
onInput: s
|
|
392
|
+
}, r.value), null, 16, Jt));
|
|
393
|
+
}
|
|
394
|
+
}, _t = ["data-disabled", "data-error", "data-variant", "data-multifocus"], ke = {
|
|
395
|
+
__name: "BsInputAddon",
|
|
396
|
+
props: {
|
|
397
|
+
disabled: { type: Boolean, default: !1 },
|
|
398
|
+
error: { type: Boolean, default: !1 },
|
|
399
|
+
multifocus: { type: Boolean, default: !1 },
|
|
400
|
+
variant: { type: String, validator: (e) => e === "inner-bordered" }
|
|
401
|
+
},
|
|
402
|
+
setup(e) {
|
|
403
|
+
return (a, t) => (d(), h("div", {
|
|
404
|
+
class: "bs-input-addon",
|
|
405
|
+
"data-component": "bs-input-addon",
|
|
406
|
+
"data-disabled": e.disabled,
|
|
407
|
+
"data-error": e.error,
|
|
408
|
+
"data-variant": e.variant,
|
|
409
|
+
"data-multifocus": e.multifocus
|
|
410
|
+
}, [
|
|
411
|
+
E(a.$slots, "default")
|
|
412
|
+
], 8, _t));
|
|
413
|
+
}
|
|
414
|
+
}, ea = {
|
|
415
|
+
__name: "BsInputDateSingle",
|
|
416
|
+
props: {
|
|
417
|
+
disabled: {
|
|
418
|
+
type: Boolean,
|
|
419
|
+
default: !1
|
|
420
|
+
},
|
|
421
|
+
error: {
|
|
422
|
+
type: Boolean,
|
|
423
|
+
default: !1
|
|
424
|
+
},
|
|
425
|
+
inputId: {
|
|
426
|
+
type: String,
|
|
427
|
+
required: !0
|
|
428
|
+
},
|
|
429
|
+
listeners: {
|
|
430
|
+
type: Object,
|
|
431
|
+
default: () => ({})
|
|
432
|
+
},
|
|
433
|
+
modelValue: {
|
|
434
|
+
type: [Date, Object, String],
|
|
435
|
+
default: null
|
|
436
|
+
},
|
|
437
|
+
placeholder: {
|
|
438
|
+
type: String,
|
|
439
|
+
default: "Choose your date"
|
|
440
|
+
},
|
|
441
|
+
required: {
|
|
442
|
+
type: Boolean,
|
|
443
|
+
default: !1
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
setup(e) {
|
|
447
|
+
return (a, t) => (d(), V(ke, {
|
|
448
|
+
disabled: e.disabled,
|
|
449
|
+
error: e.error
|
|
450
|
+
}, {
|
|
451
|
+
default: O(() => [
|
|
452
|
+
D(p(at)),
|
|
453
|
+
D(fe, P({
|
|
454
|
+
"data-autowidth": "",
|
|
455
|
+
disabled: e.disabled,
|
|
456
|
+
id: e.inputId,
|
|
457
|
+
"model-value": e.modelValue,
|
|
458
|
+
placeholder: e.placeholder,
|
|
459
|
+
required: e.required
|
|
460
|
+
}, De(e.listeners)), null, 16, ["disabled", "id", "model-value", "placeholder", "required"])
|
|
461
|
+
]),
|
|
462
|
+
_: 1
|
|
463
|
+
}, 8, ["disabled", "error"]));
|
|
464
|
+
}
|
|
465
|
+
};
|
|
466
|
+
function qe(e, a, t) {
|
|
467
|
+
let n;
|
|
468
|
+
return function() {
|
|
469
|
+
let l = this, r = arguments;
|
|
470
|
+
clearTimeout(n), t && !n && e.apply(l, r), n = setTimeout(function() {
|
|
471
|
+
n = null, t || e.apply(l, r);
|
|
472
|
+
}, a);
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
const ta = ["disabled", "id", "model-value"], aa = ["disabled", "id", "model-value"], na = {
|
|
476
|
+
__name: "BsInputDateRange",
|
|
477
|
+
props: {
|
|
478
|
+
disabled: {
|
|
479
|
+
type: Boolean,
|
|
480
|
+
default: !1
|
|
481
|
+
},
|
|
482
|
+
error: {
|
|
483
|
+
type: Boolean,
|
|
484
|
+
default: !1
|
|
485
|
+
},
|
|
486
|
+
inputId: {
|
|
487
|
+
type: String,
|
|
488
|
+
required: !0
|
|
489
|
+
},
|
|
490
|
+
inputValue: {
|
|
491
|
+
type: Object,
|
|
492
|
+
default: null
|
|
493
|
+
},
|
|
494
|
+
inputValueFmt: {
|
|
495
|
+
type: String
|
|
496
|
+
},
|
|
497
|
+
listeners: {
|
|
498
|
+
type: Object,
|
|
499
|
+
default: () => ({})
|
|
500
|
+
},
|
|
501
|
+
placeholder: {
|
|
502
|
+
type: String,
|
|
503
|
+
default: "Choose your date"
|
|
504
|
+
},
|
|
505
|
+
required: {
|
|
506
|
+
type: Boolean,
|
|
507
|
+
default: !1
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
emits: ["ui-focusin", "ui-input"],
|
|
511
|
+
setup(e, { emit: a }) {
|
|
512
|
+
const t = a, n = y(null), l = y(null);
|
|
513
|
+
function r(u) {
|
|
514
|
+
const c = new Event("change", { bubbles: !0, cancelable: !0 });
|
|
515
|
+
u.dispatchEvent(c);
|
|
516
|
+
}
|
|
517
|
+
function s(u) {
|
|
518
|
+
const { value: c } = u.target, [f, g] = c.split(/ to | - /);
|
|
519
|
+
n.value.value = f || "", l.value.value = g || "", r(n.value), r(l.value);
|
|
520
|
+
}
|
|
521
|
+
const o = qe(s, 1e3);
|
|
522
|
+
function i(u) {
|
|
523
|
+
t("ui-input"), o(u);
|
|
524
|
+
}
|
|
525
|
+
return (u, c) => (d(), V(ke, {
|
|
526
|
+
disabled: e.disabled,
|
|
527
|
+
error: e.error
|
|
528
|
+
}, {
|
|
529
|
+
default: O(() => [
|
|
530
|
+
D(p(at)),
|
|
531
|
+
D(fe, {
|
|
532
|
+
"data-autowidth": "",
|
|
533
|
+
disabled: e.disabled,
|
|
534
|
+
id: e.inputId,
|
|
535
|
+
"model-value": e.inputValueFmt,
|
|
536
|
+
placeholder: e.placeholder,
|
|
537
|
+
required: e.required,
|
|
538
|
+
onFocusin: c[0] || (c[0] = (f) => u.$emit("ui-focusin")),
|
|
539
|
+
onInput: i,
|
|
540
|
+
onChange: s
|
|
541
|
+
}, null, 8, ["disabled", "id", "model-value", "placeholder", "required"]),
|
|
542
|
+
B("input", P({
|
|
543
|
+
ref_key: "hiddenStart",
|
|
544
|
+
ref: n,
|
|
545
|
+
type: "hidden",
|
|
546
|
+
disabled: e.disabled,
|
|
547
|
+
id: `${e.inputId}-start`,
|
|
548
|
+
"model-value": e.inputValue.start
|
|
549
|
+
}, De(e.listeners.start, !0)), null, 16, ta),
|
|
550
|
+
B("input", P({
|
|
551
|
+
ref_key: "hiddenEnd",
|
|
552
|
+
ref: l,
|
|
553
|
+
type: "hidden",
|
|
554
|
+
disabled: e.disabled,
|
|
555
|
+
id: `${e.inputId}-end`,
|
|
556
|
+
"model-value": e.inputValue.end
|
|
557
|
+
}, De(e.listeners.end, !0)), null, 16, aa)
|
|
558
|
+
]),
|
|
559
|
+
_: 1
|
|
560
|
+
}, 8, ["disabled", "error"]));
|
|
561
|
+
}
|
|
562
|
+
};
|
|
563
|
+
function la(e) {
|
|
564
|
+
var a, t;
|
|
565
|
+
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"));
|
|
566
|
+
}
|
|
567
|
+
function oa(e) {
|
|
568
|
+
return e === " " || e === "Spacebar" || e === "Enter";
|
|
569
|
+
}
|
|
570
|
+
function Ye(e) {
|
|
571
|
+
la(e == null ? void 0 : e.target) && oa(e == null ? void 0 : e.key) && e.preventDefault();
|
|
572
|
+
}
|
|
573
|
+
function ia(e) {
|
|
574
|
+
let a;
|
|
575
|
+
W(() => {
|
|
576
|
+
var t, n, l;
|
|
577
|
+
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", Ye);
|
|
578
|
+
}), Je(() => {
|
|
579
|
+
var t, n;
|
|
580
|
+
(n = (t = a == null ? void 0 : a.$el) == null ? void 0 : t.removeEventListener) == null || n.call(t, "keydown", Ye), a = null;
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
function Qe(e, a, t = []) {
|
|
584
|
+
let n;
|
|
585
|
+
_e(() => {
|
|
586
|
+
n = window.matchMedia(e), n.addEventListener("change", a), a(n);
|
|
587
|
+
}), Je(() => {
|
|
588
|
+
n.removeEventListener("change", a), n = null;
|
|
589
|
+
}), t.length && z(t, () => a(n));
|
|
590
|
+
}
|
|
591
|
+
const ra = ["data-range"], Xe = "(min-width: 752px)", Al = {
|
|
592
|
+
__name: "BsCalendar",
|
|
593
|
+
props: {
|
|
594
|
+
disabled: {
|
|
595
|
+
type: Boolean,
|
|
596
|
+
default: !1
|
|
597
|
+
},
|
|
598
|
+
/** Date[] */
|
|
599
|
+
disabledDates: {
|
|
600
|
+
type: [Array],
|
|
601
|
+
default: null
|
|
602
|
+
},
|
|
603
|
+
error: {
|
|
604
|
+
type: Boolean,
|
|
605
|
+
default: !1
|
|
606
|
+
},
|
|
607
|
+
errorMsg: {
|
|
608
|
+
type: String
|
|
609
|
+
},
|
|
610
|
+
hint: {
|
|
611
|
+
type: String
|
|
612
|
+
},
|
|
613
|
+
inputId: {
|
|
614
|
+
type: String
|
|
615
|
+
},
|
|
616
|
+
isRange: {
|
|
617
|
+
type: Boolean,
|
|
618
|
+
default: !1
|
|
619
|
+
},
|
|
620
|
+
label: {
|
|
621
|
+
type: String
|
|
622
|
+
},
|
|
623
|
+
maxDate: {
|
|
624
|
+
type: Date
|
|
625
|
+
},
|
|
626
|
+
minDate: {
|
|
627
|
+
type: Date
|
|
628
|
+
},
|
|
629
|
+
/** Date | { start: Date, end: Date } */
|
|
630
|
+
modelValue: {
|
|
631
|
+
type: [Date, Object],
|
|
632
|
+
default: null
|
|
633
|
+
},
|
|
634
|
+
placeholder: {
|
|
635
|
+
type: String,
|
|
636
|
+
default: "Choose your date"
|
|
637
|
+
},
|
|
638
|
+
required: {
|
|
639
|
+
type: Boolean,
|
|
640
|
+
default: !1
|
|
641
|
+
},
|
|
642
|
+
step: {
|
|
643
|
+
type: Number,
|
|
644
|
+
default: 1,
|
|
645
|
+
validator: (e) => e === 1 || e === 2
|
|
646
|
+
},
|
|
647
|
+
variant: {
|
|
648
|
+
type: String,
|
|
649
|
+
validator: (e) => ["", "2-col"].includes(e)
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
emits: ["update:modelValue"],
|
|
653
|
+
setup(e, { emit: a }) {
|
|
654
|
+
const t = e, n = y(null), l = y(1), r = y(null), [s, o] = Y(2), i = y(1), { toRoot: u, toChild: c } = ie({}, G(), [
|
|
655
|
+
"attributes",
|
|
656
|
+
"expanded",
|
|
657
|
+
"first-day-of-week",
|
|
658
|
+
"locale",
|
|
659
|
+
"masks",
|
|
660
|
+
"rows",
|
|
661
|
+
"trim-weeks"
|
|
662
|
+
]), f = v(() => t.inputId || s.value), g = v(() => ({ range: t.isRange })), m = v(() => !!(t.error && t.errorMsg || t.hint)), x = v(() => t.step), k = v(() => t.variant);
|
|
663
|
+
ia(n), Qe(
|
|
664
|
+
Xe,
|
|
665
|
+
(b) => l.value = b != null && b.matches && k.value == "2-col" ? 2 : 1,
|
|
666
|
+
[k]
|
|
667
|
+
), Qe(
|
|
668
|
+
Xe,
|
|
669
|
+
(b) => i.value = b != null && b.matches && k.value == "2-col" ? x.value : 1,
|
|
670
|
+
[x, k]
|
|
671
|
+
);
|
|
672
|
+
function w(b) {
|
|
673
|
+
return t.isRange && b.start && b.end ? `${b.start} to ${b.end}` : !t.isRange && b ? b : "";
|
|
674
|
+
}
|
|
675
|
+
function I(b) {
|
|
676
|
+
!t.isRange || r.value.contains(b.relatedTarget) || n.value.hidePopover();
|
|
677
|
+
}
|
|
678
|
+
return (b, C) => (d(), h("div", P({
|
|
679
|
+
ref_key: "container",
|
|
680
|
+
ref: r,
|
|
681
|
+
class: "bs-calendar",
|
|
682
|
+
"data-range": e.isRange,
|
|
683
|
+
onFocusout: I
|
|
684
|
+
}, p(u)), [
|
|
685
|
+
e.label || b.$slots.label ? (d(), V(ne, {
|
|
686
|
+
key: 0,
|
|
687
|
+
for: f.value,
|
|
688
|
+
disabled: e.disabled,
|
|
689
|
+
required: e.required
|
|
690
|
+
}, {
|
|
691
|
+
default: O(() => [
|
|
692
|
+
E(b.$slots, "label", {}, () => [
|
|
693
|
+
U(T(e.label), 1)
|
|
694
|
+
])
|
|
695
|
+
]),
|
|
696
|
+
_: 3
|
|
697
|
+
}, 8, ["for", "disabled", "required"])) : $("", !0),
|
|
698
|
+
D(p(wt), P({
|
|
699
|
+
ref_key: "calendar",
|
|
700
|
+
ref: n,
|
|
701
|
+
columns: l.value,
|
|
702
|
+
"disabled-dates": e.disabledDates,
|
|
703
|
+
"max-date": e.maxDate,
|
|
704
|
+
"min-date": e.minDate,
|
|
705
|
+
mode: "date",
|
|
706
|
+
"model-value": e.modelValue,
|
|
707
|
+
"model-modifiers": g.value,
|
|
708
|
+
popover: { visibility: "focus" },
|
|
709
|
+
rows: 1,
|
|
710
|
+
step: i.value,
|
|
711
|
+
"onUpdate:modelValue": C[0] || (C[0] = (q) => b.$emit("update:modelValue", q))
|
|
712
|
+
}, p(c)), {
|
|
713
|
+
default: O(({ inputValue: q, inputEvents: A, showPopover: M }) => [
|
|
714
|
+
e.isRange ? (d(), V(na, {
|
|
715
|
+
key: 1,
|
|
716
|
+
disabled: e.disabled,
|
|
717
|
+
error: e.error,
|
|
718
|
+
"hidden-end-ref": b.inputEnd,
|
|
719
|
+
"hidden-start-ref": b.inputStart,
|
|
720
|
+
"input-id": f.value,
|
|
721
|
+
"input-value": q,
|
|
722
|
+
"input-value-fmt": w(q),
|
|
723
|
+
listeners: A,
|
|
724
|
+
placeholder: e.placeholder,
|
|
725
|
+
required: e.required,
|
|
726
|
+
onUiFocusin: M,
|
|
727
|
+
onUiInput: M
|
|
728
|
+
}, null, 8, ["disabled", "error", "hidden-end-ref", "hidden-start-ref", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (d(), V(ea, {
|
|
729
|
+
key: 0,
|
|
730
|
+
disabled: e.disabled,
|
|
731
|
+
error: e.error,
|
|
732
|
+
"input-id": f.value,
|
|
733
|
+
listeners: A,
|
|
734
|
+
"model-value": w(q),
|
|
735
|
+
placeholder: e.placeholder,
|
|
736
|
+
required: e.required
|
|
737
|
+
}, null, 8, ["disabled", "error", "input-id", "listeners", "model-value", "placeholder", "required"]))
|
|
738
|
+
]),
|
|
739
|
+
_: 1
|
|
740
|
+
}, 16, ["columns", "disabled-dates", "max-date", "min-date", "model-value", "model-modifiers", "step"]),
|
|
741
|
+
m.value ? (d(), V(ce, {
|
|
742
|
+
key: 1,
|
|
743
|
+
error: e.error,
|
|
744
|
+
"error-msg": e.errorMsg,
|
|
745
|
+
hint: e.hint,
|
|
746
|
+
"hint-id": p(o)
|
|
747
|
+
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : $("", !0)
|
|
748
|
+
], 16, ra));
|
|
749
|
+
}
|
|
750
|
+
}, sa = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
299
751
|
__name: "BsButton",
|
|
300
752
|
props: {
|
|
301
753
|
variant: { type: String },
|
|
@@ -309,23 +761,23 @@ const Be = (e) => {
|
|
|
309
761
|
size: { type: String, validator: (e) => ["sm", "xs", "xxs"].includes(e) }
|
|
310
762
|
},
|
|
311
763
|
setup(e) {
|
|
312
|
-
const a = e, t = G(), { rootTag: n, attrsToBind: l, hrefUrl: r } =
|
|
313
|
-
return (
|
|
764
|
+
const a = e, t = G(), { rootTag: n, attrsToBind: l, hrefUrl: r } = Se(a, t), { onLinkClick: s } = we(a);
|
|
765
|
+
return (o, i) => (d(), V(J(p(n)), P({
|
|
314
766
|
class: "bs-button",
|
|
315
767
|
"data-component": "bs-button",
|
|
316
768
|
"data-ghost": e.ghostBtn,
|
|
317
769
|
"data-size": e.size,
|
|
318
770
|
"data-text": e.textBtn,
|
|
319
771
|
"data-variant": e.variant,
|
|
320
|
-
".href":
|
|
321
|
-
},
|
|
322
|
-
default:
|
|
323
|
-
|
|
772
|
+
".href": p(r)
|
|
773
|
+
}, p(l), { onClick: p(s) }), {
|
|
774
|
+
default: O(() => [
|
|
775
|
+
E(o.$slots, "default")
|
|
324
776
|
]),
|
|
325
777
|
_: 3
|
|
326
778
|
}, 48, ["data-ghost", "data-size", "data-text", "data-variant", ".href", "onClick"]));
|
|
327
779
|
}
|
|
328
|
-
}),
|
|
780
|
+
}), da = { "data-component": "bs-chart-table" }, ua = ["summary"], ca = ["colspan"], fa = /* @__PURE__ */ B("th", { scope: "col" }, " Dataset ", -1), pa = { scope: "row" }, ha = {
|
|
329
781
|
__name: "BsChartTable",
|
|
330
782
|
props: {
|
|
331
783
|
data: {
|
|
@@ -344,52 +796,52 @@ const Be = (e) => {
|
|
|
344
796
|
setup(e) {
|
|
345
797
|
return (a, t) => {
|
|
346
798
|
var n;
|
|
347
|
-
return
|
|
799
|
+
return d(), h("div", da, [
|
|
348
800
|
B("table", { summary: e.tableTitle }, [
|
|
349
801
|
B("thead", null, [
|
|
350
802
|
B("tr", null, [
|
|
351
803
|
B("th", {
|
|
352
804
|
colspan: ((n = e.dataIdxLabels) == null ? void 0 : n.length) + 1
|
|
353
|
-
}, T(e.tableTitle), 9,
|
|
805
|
+
}, T(e.tableTitle), 9, ca)
|
|
354
806
|
]),
|
|
355
807
|
B("tr", null, [
|
|
356
|
-
|
|
357
|
-
(
|
|
808
|
+
fa,
|
|
809
|
+
(d(!0), h(j, null, Z(e.dataIdxLabels, (l) => (d(), h("th", {
|
|
358
810
|
key: l,
|
|
359
811
|
scope: "col"
|
|
360
812
|
}, T(l), 1))), 128))
|
|
361
813
|
])
|
|
362
814
|
]),
|
|
363
815
|
B("tbody", null, [
|
|
364
|
-
(
|
|
816
|
+
(d(!0), h(j, null, Z(e.data, (l) => (d(), h("tr", {
|
|
365
817
|
key: l.label
|
|
366
818
|
}, [
|
|
367
|
-
B("th",
|
|
368
|
-
(
|
|
369
|
-
key: `${r}${
|
|
819
|
+
B("th", pa, T(l.label), 1),
|
|
820
|
+
(d(!0), h(j, null, Z(l.data, (r, s) => (d(), h("td", {
|
|
821
|
+
key: `${r}${s}`
|
|
370
822
|
}, T(r), 1))), 128))
|
|
371
823
|
]))), 128))
|
|
372
824
|
])
|
|
373
|
-
], 8,
|
|
825
|
+
], 8, ua)
|
|
374
826
|
]);
|
|
375
827
|
};
|
|
376
828
|
}
|
|
377
|
-
},
|
|
829
|
+
}, va = (e) => ({
|
|
378
830
|
id: "htmlLegend",
|
|
379
831
|
afterUpdate(a) {
|
|
380
832
|
e.innerHTML = "", e.style.setProperty("--legend-padding", `${a.scales.x.left}px`), a.options.plugins.legend.labels.generateLabels(a).forEach((n) => {
|
|
381
833
|
const l = document.createElement("li");
|
|
382
834
|
l.onclick = () => {
|
|
383
|
-
const { type:
|
|
384
|
-
|
|
835
|
+
const { type: i } = a.config._config;
|
|
836
|
+
i === "pie" || i === "doughnut" ? a.toggleDataVisibility(n.index) : a.setDatasetVisibility(n.datasetIndex, !a.isDatasetVisible(n.datasetIndex)), a.update();
|
|
385
837
|
};
|
|
386
838
|
const r = document.createElement("span");
|
|
387
839
|
r.style.setProperty("--item-box-fill", n.fillStyle), r.style.setProperty("--item-box-stroke", n.strokeStyle);
|
|
388
|
-
const
|
|
389
|
-
|
|
840
|
+
const s = document.createTextNode(n.text), o = document.createElement("p");
|
|
841
|
+
o.style.setProperty("--item-text-color", n.fontColor), o.style.setProperty("--item-text-decoration", n.hidden ? "line-through" : "none"), o.appendChild(s), l.appendChild(r), l.appendChild(o), e.appendChild(l);
|
|
390
842
|
});
|
|
391
843
|
}
|
|
392
|
-
}),
|
|
844
|
+
}), ba = ({ type: e, datasets: a, labels: t, tooltips: n }) => ({
|
|
393
845
|
type: e,
|
|
394
846
|
data: {
|
|
395
847
|
datasets: a,
|
|
@@ -408,7 +860,7 @@ const Be = (e) => {
|
|
|
408
860
|
responsive: !0
|
|
409
861
|
}
|
|
410
862
|
});
|
|
411
|
-
function
|
|
863
|
+
function ma(e) {
|
|
412
864
|
const a = [
|
|
413
865
|
"rgba(209, 26, 111, 1)",
|
|
414
866
|
"rgba(130, 18, 196, 1)",
|
|
@@ -421,19 +873,10 @@ function Yt(e) {
|
|
|
421
873
|
], t = a[e % a.length];
|
|
422
874
|
return e >= a.length ? t.replace("1)", "0.5)") : t;
|
|
423
875
|
}
|
|
424
|
-
|
|
425
|
-
let n;
|
|
426
|
-
return function() {
|
|
427
|
-
let l = this, r = arguments;
|
|
428
|
-
clearTimeout(n), t && !n && e.apply(l, r), n = setTimeout(function() {
|
|
429
|
-
n = null, t || e.apply(l, r);
|
|
430
|
-
}, a);
|
|
431
|
-
};
|
|
432
|
-
}
|
|
433
|
-
const Xt = {
|
|
876
|
+
const ga = {
|
|
434
877
|
class: "bs-chart-bar",
|
|
435
878
|
"data-component": "bs-chart-bar"
|
|
436
|
-
},
|
|
879
|
+
}, ya = ["aria-label"], Ba = ["data-hidden"], Ll = {
|
|
437
880
|
__name: "BsChartBar",
|
|
438
881
|
props: {
|
|
439
882
|
chartTitle: {
|
|
@@ -487,16 +930,16 @@ const Xt = {
|
|
|
487
930
|
}
|
|
488
931
|
},
|
|
489
932
|
setup(e) {
|
|
490
|
-
const a = e, t =
|
|
933
|
+
const a = e, t = y(null), n = y(null);
|
|
491
934
|
let l;
|
|
492
|
-
const r =
|
|
935
|
+
const r = v(() => {
|
|
493
936
|
const c = {
|
|
494
|
-
datasets:
|
|
937
|
+
datasets: s.value,
|
|
495
938
|
labels: a.dataIdxLabels,
|
|
496
939
|
type: "bar",
|
|
497
940
|
tooltips: a.showTooltips
|
|
498
|
-
},
|
|
499
|
-
return
|
|
941
|
+
}, f = ba(c);
|
|
942
|
+
return f.plugins = [va(n.value)], f.options.scales = {
|
|
500
943
|
x: {
|
|
501
944
|
grid: {
|
|
502
945
|
display: a.showXGrid
|
|
@@ -517,33 +960,33 @@ const Xt = {
|
|
|
517
960
|
text: a.yLabel
|
|
518
961
|
}
|
|
519
962
|
}
|
|
520
|
-
},
|
|
521
|
-
}),
|
|
963
|
+
}, f;
|
|
964
|
+
}), s = v(() => a.data.map((c, f) => ({
|
|
522
965
|
...c,
|
|
523
|
-
backgroundColor:
|
|
966
|
+
backgroundColor: ma(f),
|
|
524
967
|
categoryPercentage: a.data.length > 1 ? 0.5 : 0.33
|
|
525
|
-
}))),
|
|
526
|
-
!l || c ===
|
|
527
|
-
}, 100), u =
|
|
968
|
+
}))), o = v(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`), i = qe(function(c, f) {
|
|
969
|
+
!l || c === f || (l.options = r.value.options, l.update());
|
|
970
|
+
}, 100), u = qe(function() {
|
|
528
971
|
l && (l.data = r.value.data, l.update());
|
|
529
972
|
}, 100);
|
|
530
|
-
return
|
|
531
|
-
|
|
532
|
-
}), z(() => a.showLegend,
|
|
973
|
+
return W(() => {
|
|
974
|
+
Ve.register($t, kt, It, Ct, xt, Tt), Ve.defaults.font.family = "'Roobert', sans-serif", l = new Ve(t.value, r.value);
|
|
975
|
+
}), z(() => a.showLegend, i), z(() => a.showTooltips, i), z(() => a.showXGrid, i), z(() => a.showYGrid, i), z(() => a.stacked, i), z(() => a.xLabel, i), z(() => a.yLabel, i), z(() => a.data, u), z(() => a.dataIdxLabels, u), (c, f) => (d(), h("div", ga, [
|
|
533
976
|
B("figure", null, [
|
|
534
977
|
B("div", null, [
|
|
535
978
|
B("canvas", {
|
|
536
|
-
"aria-label":
|
|
979
|
+
"aria-label": o.value,
|
|
537
980
|
ref_key: "canvas",
|
|
538
981
|
ref: t,
|
|
539
982
|
role: "img"
|
|
540
|
-
}, null, 8,
|
|
983
|
+
}, null, 8, ya)
|
|
541
984
|
]),
|
|
542
985
|
B("div", null, [
|
|
543
|
-
|
|
986
|
+
D(ha, {
|
|
544
987
|
data: e.data,
|
|
545
988
|
"data-idx-labels": e.dataIdxLabels,
|
|
546
|
-
"table-title":
|
|
989
|
+
"table-title": o.value
|
|
547
990
|
}, null, 8, ["data", "data-idx-labels", "table-title"]),
|
|
548
991
|
B("figcaption", {
|
|
549
992
|
"data-hidden": !e.showLegend
|
|
@@ -552,39 +995,12 @@ const Xt = {
|
|
|
552
995
|
ref_key: "legendList",
|
|
553
996
|
ref: n
|
|
554
997
|
}, null, 512)
|
|
555
|
-
], 8,
|
|
998
|
+
], 8, Ba)
|
|
556
999
|
])
|
|
557
1000
|
])
|
|
558
1001
|
]));
|
|
559
1002
|
}
|
|
560
|
-
},
|
|
561
|
-
"data-required": "true",
|
|
562
|
-
"aria-hidden": "true"
|
|
563
|
-
}, " *", -1), ea = /* @__PURE__ */ B("span", { class: "visually-hidden" }, "required", -1), ne = {
|
|
564
|
-
__name: "BsLabel",
|
|
565
|
-
props: {
|
|
566
|
-
disabled: { type: Boolean, default: !1 },
|
|
567
|
-
for: { type: String, required: !0 },
|
|
568
|
-
hide: { type: Boolean, default: !1 },
|
|
569
|
-
required: { type: Boolean, default: !1 }
|
|
570
|
-
},
|
|
571
|
-
setup(e) {
|
|
572
|
-
return (a, t) => (s(), p("label", {
|
|
573
|
-
class: _(["bs-label", e.hide ? "visually-hidden" : ""]),
|
|
574
|
-
"data-component": "bs-label",
|
|
575
|
-
"data-disabled": e.disabled,
|
|
576
|
-
for: e.for
|
|
577
|
-
}, [
|
|
578
|
-
B("span", null, [
|
|
579
|
-
L(a.$slots, "default")
|
|
580
|
-
]),
|
|
581
|
-
e.required ? (s(), p(N, { key: 0 }, [
|
|
582
|
-
_t,
|
|
583
|
-
ea
|
|
584
|
-
], 64)) : I("", !0)
|
|
585
|
-
], 10, Qt));
|
|
586
|
-
}
|
|
587
|
-
}, ta = ["data-size"], aa = ["checked", "data-error", "disabled", "id", "required", "value"], na = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1003
|
+
}, Sa = ["data-size"], wa = ["checked", "data-error", "disabled", "id", "required", "value"], $a = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
588
1004
|
__name: "BsCheckbox",
|
|
589
1005
|
props: {
|
|
590
1006
|
/** Sets the label. */
|
|
@@ -642,29 +1058,29 @@ const Xt = {
|
|
|
642
1058
|
},
|
|
643
1059
|
emits: ["update:modelValue"],
|
|
644
1060
|
setup(e, { emit: a }) {
|
|
645
|
-
const t = e, n = a, l = G(), [r] = Y(), { toChild:
|
|
646
|
-
function
|
|
647
|
-
|
|
1061
|
+
const t = e, n = a, l = G(), [r] = Y(), { toChild: s, toRoot: o } = ie(t, l, ["aria-label", "name", "value"]), i = y(null), u = v(() => t.inputId || r.value), c = v(() => t.checked || g.value), f = v(() => Array.isArray(t.modelValue) && t.value), g = v(() => f.value && t.modelValue.includes(t.value) || typeof t.modelValue == "boolean" && t.modelValue);
|
|
1062
|
+
function m() {
|
|
1063
|
+
i.value && (i.value.indeterminate = t.checkedPartially && !c.value);
|
|
648
1064
|
}
|
|
649
|
-
function x(
|
|
650
|
-
n("update:modelValue",
|
|
1065
|
+
function x(I) {
|
|
1066
|
+
n("update:modelValue", I);
|
|
651
1067
|
}
|
|
652
|
-
function
|
|
653
|
-
const
|
|
654
|
-
|
|
1068
|
+
function k(I) {
|
|
1069
|
+
const b = [...t.modelValue];
|
|
1070
|
+
I ? b.push(t.value) : b.splice(b.indexOf(t.value), 1), n("update:modelValue", b);
|
|
655
1071
|
}
|
|
656
|
-
function
|
|
657
|
-
const { checked:
|
|
658
|
-
|
|
1072
|
+
function w(I) {
|
|
1073
|
+
const { checked: b } = I.target;
|
|
1074
|
+
f.value ? k(b) : x(b);
|
|
659
1075
|
}
|
|
660
|
-
return z(c,
|
|
1076
|
+
return z(c, m), z(() => t.checkedPartially, m), (I, b) => (d(), h("div", P({
|
|
661
1077
|
class: "bs-boolean",
|
|
662
1078
|
"data-component": "bs-checkbox",
|
|
663
1079
|
"data-size": e.size
|
|
664
|
-
},
|
|
665
|
-
B("input",
|
|
1080
|
+
}, p(o)), [
|
|
1081
|
+
B("input", P({
|
|
666
1082
|
ref_key: "inputEl",
|
|
667
|
-
ref:
|
|
1083
|
+
ref: i,
|
|
668
1084
|
checked: c.value,
|
|
669
1085
|
"data-error": e.error,
|
|
670
1086
|
disabled: e.disabled,
|
|
@@ -672,24 +1088,24 @@ const Xt = {
|
|
|
672
1088
|
required: e.required,
|
|
673
1089
|
value: e.value || "on",
|
|
674
1090
|
type: "checkbox",
|
|
675
|
-
onChange:
|
|
676
|
-
},
|
|
677
|
-
e.label ||
|
|
1091
|
+
onChange: w
|
|
1092
|
+
}, p(s)), null, 16, wa),
|
|
1093
|
+
e.label || I.$slots.label ? (d(), V(ne, {
|
|
678
1094
|
key: 0,
|
|
679
1095
|
for: u.value,
|
|
680
1096
|
disabled: e.disabled,
|
|
681
1097
|
required: e.required
|
|
682
1098
|
}, {
|
|
683
|
-
default:
|
|
684
|
-
|
|
685
|
-
|
|
1099
|
+
default: O(() => [
|
|
1100
|
+
E(I.$slots, "label", {}, () => [
|
|
1101
|
+
U(T(e.label), 1)
|
|
686
1102
|
])
|
|
687
1103
|
]),
|
|
688
1104
|
_: 3
|
|
689
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
690
|
-
], 16,
|
|
1105
|
+
}, 8, ["for", "disabled", "required"])) : $("", !0)
|
|
1106
|
+
], 16, Sa));
|
|
691
1107
|
}
|
|
692
|
-
}),
|
|
1108
|
+
}), ka = { key: 0 }, Ia = { class: "bs-circle-button-icon" }, Ca = { key: 1 }, Vl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
693
1109
|
__name: "BsCircleButton",
|
|
694
1110
|
props: {
|
|
695
1111
|
disabled: {
|
|
@@ -735,32 +1151,32 @@ const Xt = {
|
|
|
735
1151
|
}
|
|
736
1152
|
},
|
|
737
1153
|
setup(e) {
|
|
738
|
-
const a = e, t = G(), { rootTag: n, attrsToBind: l, hrefUrl: r } =
|
|
1154
|
+
const a = e, t = G(), { rootTag: n, attrsToBind: l, hrefUrl: r } = Se(a, t), { icon: s } = be(a, "icon"), { onLinkClick: o } = we(a), i = v(() => a.textBtn ? {} : a.href ? { title: a.label } : { "aria-label": a.label }), u = v(() => {
|
|
739
1155
|
if (a.hoverEffect)
|
|
740
1156
|
return a.iconPosition;
|
|
741
|
-
}), c =
|
|
742
|
-
return (
|
|
1157
|
+
}), c = v(() => a.textBtn && a.iconPosition !== "left"), f = v(() => a.textBtn && a.iconPosition === "left");
|
|
1158
|
+
return (g, m) => (d(), V(J(p(n)), P({
|
|
743
1159
|
class: "bs-circle-button",
|
|
744
1160
|
"data-disabled": e.disabled,
|
|
745
1161
|
"data-direction": u.value,
|
|
746
1162
|
"data-ghost": e.ghostBtn,
|
|
747
1163
|
"data-size": e.size,
|
|
748
1164
|
"data-text": e.textBtn,
|
|
749
|
-
".href":
|
|
750
|
-
}, { ...
|
|
751
|
-
default:
|
|
752
|
-
c.value ? (
|
|
753
|
-
B("span",
|
|
754
|
-
|
|
755
|
-
(
|
|
1165
|
+
".href": p(r)
|
|
1166
|
+
}, { ...p(l), ...i.value }, { onClick: p(o) }), {
|
|
1167
|
+
default: O(() => [
|
|
1168
|
+
c.value ? (d(), h("span", ka, T(e.label), 1)) : $("", !0),
|
|
1169
|
+
B("span", Ia, [
|
|
1170
|
+
E(g.$slots, "icon", {}, () => [
|
|
1171
|
+
(d(), V(J(p(s)), { size: e.size }, null, 8, ["size"]))
|
|
756
1172
|
])
|
|
757
1173
|
]),
|
|
758
|
-
|
|
1174
|
+
f.value ? (d(), h("span", Ca, T(e.label), 1)) : $("", !0)
|
|
759
1175
|
]),
|
|
760
1176
|
_: 3
|
|
761
1177
|
}, 48, ["data-disabled", "data-direction", "data-ghost", "data-size", "data-text", ".href", "onClick"]));
|
|
762
1178
|
}
|
|
763
|
-
}),
|
|
1179
|
+
}), Ie = {
|
|
764
1180
|
__name: "BsTransition",
|
|
765
1181
|
props: {
|
|
766
1182
|
shown: {
|
|
@@ -804,35 +1220,35 @@ const Xt = {
|
|
|
804
1220
|
],
|
|
805
1221
|
setup(e, { emit: a }) {
|
|
806
1222
|
const t = e, n = a, l = [];
|
|
807
|
-
function r(
|
|
808
|
-
const { duration: c, enterClass:
|
|
1223
|
+
function r(i, u) {
|
|
1224
|
+
const { duration: c, enterClass: f, enterAttribute: g } = t;
|
|
809
1225
|
l.push(setTimeout(() => {
|
|
810
|
-
|
|
1226
|
+
f && i.classList.add(f), g && i.setAttribute(g, ""), l.push(setTimeout(() => {
|
|
811
1227
|
u();
|
|
812
|
-
}, c)), n("enter",
|
|
1228
|
+
}, c)), n("enter", i);
|
|
813
1229
|
}));
|
|
814
1230
|
}
|
|
815
|
-
function
|
|
1231
|
+
function s(i, u) {
|
|
816
1232
|
const {
|
|
817
1233
|
duration: c,
|
|
818
|
-
enterClass:
|
|
819
|
-
enterAttribute:
|
|
820
|
-
leaveClass:
|
|
1234
|
+
enterClass: f,
|
|
1235
|
+
enterAttribute: g,
|
|
1236
|
+
leaveClass: m,
|
|
821
1237
|
leaveAttribute: x
|
|
822
1238
|
} = t;
|
|
823
|
-
|
|
1239
|
+
i.classList.remove(f), i.removeAttribute(g), m && i.classList.add(m), x && i.setAttribute(x, ""), l.push(setTimeout(() => {
|
|
824
1240
|
u();
|
|
825
|
-
}, c)), n("leave",
|
|
1241
|
+
}, c)), n("leave", i);
|
|
826
1242
|
}
|
|
827
|
-
function i
|
|
1243
|
+
function o(i) {
|
|
828
1244
|
const { leaveClass: u, leaveAttribute: c } = t;
|
|
829
|
-
|
|
1245
|
+
i.classList.remove(u), i.removeAttribute(c), n("after-leave", i);
|
|
830
1246
|
}
|
|
831
|
-
return
|
|
832
|
-
l.forEach((
|
|
833
|
-
clearTimeout(
|
|
1247
|
+
return oe(() => {
|
|
1248
|
+
l.forEach((i) => {
|
|
1249
|
+
clearTimeout(i);
|
|
834
1250
|
});
|
|
835
|
-
}), (
|
|
1251
|
+
}), (i, u) => e.preloaded ? ge((d(), V(Fe, {
|
|
836
1252
|
key: 0,
|
|
837
1253
|
css: !1,
|
|
838
1254
|
onBeforeEnter: u[0] || (u[0] = (c) => n("before-enter", c)),
|
|
@@ -840,77 +1256,91 @@ const Xt = {
|
|
|
840
1256
|
onAfterEnter: u[1] || (u[1] = (c) => n("after-enter", c)),
|
|
841
1257
|
onEnterCancelled: u[2] || (u[2] = (c) => n("enter-cancelled", c)),
|
|
842
1258
|
onBeforeLeave: u[3] || (u[3] = (c) => n("before-leave", c)),
|
|
843
|
-
onLeave:
|
|
844
|
-
onAfterLeave:
|
|
1259
|
+
onLeave: s,
|
|
1260
|
+
onAfterLeave: o,
|
|
845
1261
|
onLeaveCancelled: u[4] || (u[4] = (c) => n("leave-cancelled", c))
|
|
846
1262
|
}, {
|
|
847
|
-
default:
|
|
848
|
-
|
|
1263
|
+
default: O(() => [
|
|
1264
|
+
E(i.$slots, "default")
|
|
849
1265
|
]),
|
|
850
1266
|
_: 3
|
|
851
1267
|
}, 512)), [
|
|
852
|
-
[
|
|
853
|
-
]) : (
|
|
1268
|
+
[ye, e.shown]
|
|
1269
|
+
]) : (d(), V(Fe, {
|
|
854
1270
|
key: 1,
|
|
1271
|
+
appear: !0,
|
|
855
1272
|
css: !1,
|
|
856
1273
|
onBeforeEnter: u[5] || (u[5] = (c) => n("before-enter", c)),
|
|
857
1274
|
onEnter: r,
|
|
858
1275
|
onAfterEnter: u[6] || (u[6] = (c) => n("after-enter", c)),
|
|
859
1276
|
onEnterCancelled: u[7] || (u[7] = (c) => n("enter-cancelled", c)),
|
|
860
1277
|
onBeforeLeave: u[8] || (u[8] = (c) => n("before-leave", c)),
|
|
861
|
-
onLeave:
|
|
862
|
-
onAfterLeave:
|
|
1278
|
+
onLeave: s,
|
|
1279
|
+
onAfterLeave: o,
|
|
863
1280
|
onLeaveCancelled: u[9] || (u[9] = (c) => n("leave-cancelled", c))
|
|
864
1281
|
}, {
|
|
865
|
-
default:
|
|
866
|
-
e.shown ?
|
|
1282
|
+
default: O(() => [
|
|
1283
|
+
e.shown ? E(i.$slots, "default", { key: 0 }) : $("", !0)
|
|
867
1284
|
]),
|
|
868
1285
|
_: 3
|
|
869
1286
|
}));
|
|
870
1287
|
}
|
|
871
|
-
},
|
|
872
|
-
|
|
1288
|
+
}, xa = (e, a = void 0, t = "relative") => {
|
|
1289
|
+
const n = y(null), l = y(null), r = y(!1);
|
|
1290
|
+
let s = !1;
|
|
1291
|
+
return W(() => {
|
|
1292
|
+
e && (n.value = a || et(), document.getElementById(n.value) ? (l.value = document.getElementById(n.value), s = !0) : (l.value = document.createElement("div"), l.value.id = n.value, l.value.style.position = t, document.body.insertAdjacentElement("afterbegin", l.value)), r.value = !0);
|
|
1293
|
+
}), oe(() => {
|
|
1294
|
+
var o;
|
|
1295
|
+
e && !s && ((o = document.getElementById(n.value)) == null || o.remove());
|
|
1296
|
+
}), { breakoutId: n, breakoutStub: l, breakoutMounted: r };
|
|
1297
|
+
}, Ta = {
|
|
1298
|
+
key: 0,
|
|
1299
|
+
class: "bs-dropdown-backdrop"
|
|
1300
|
+
}, Aa = ["data-width", "data-no-mobile"], La = { key: 0 }, Va = { key: 0 }, Ea = {
|
|
1301
|
+
__name: "BsDropdownNew",
|
|
873
1302
|
props: {
|
|
874
|
-
|
|
875
|
-
type:
|
|
876
|
-
|
|
1303
|
+
anchorId: {
|
|
1304
|
+
type: String,
|
|
1305
|
+
required: !0
|
|
877
1306
|
},
|
|
878
|
-
|
|
1307
|
+
breakout: {
|
|
879
1308
|
type: Boolean,
|
|
880
1309
|
default: !1
|
|
881
1310
|
},
|
|
882
|
-
width: {
|
|
883
|
-
type: String,
|
|
884
|
-
default: void 0,
|
|
885
|
-
validator: (e) => ["sm", "md", "lg", "content", "anchor"].includes(e)
|
|
886
|
-
},
|
|
887
|
-
position: {
|
|
888
|
-
type: String,
|
|
889
|
-
default: void 0,
|
|
890
|
-
validator: (e) => ["top", "center", "right"].includes(e)
|
|
891
|
-
},
|
|
892
|
-
anchorId: {
|
|
893
|
-
required: !0
|
|
894
|
-
},
|
|
895
1311
|
containerId: {
|
|
896
1312
|
type: String,
|
|
897
1313
|
default: void 0
|
|
898
1314
|
},
|
|
899
|
-
|
|
900
|
-
type:
|
|
1315
|
+
helperDescription: {
|
|
1316
|
+
type: String,
|
|
901
1317
|
default: void 0
|
|
902
1318
|
},
|
|
903
1319
|
helperText: {
|
|
904
1320
|
type: String,
|
|
905
1321
|
default: void 0
|
|
906
1322
|
},
|
|
907
|
-
|
|
1323
|
+
position: {
|
|
908
1324
|
type: String,
|
|
909
|
-
default: void 0
|
|
1325
|
+
default: void 0,
|
|
1326
|
+
validator: (e) => ["top", "center", "right"].includes(e)
|
|
1327
|
+
},
|
|
1328
|
+
preloaded: {
|
|
1329
|
+
type: Boolean,
|
|
1330
|
+
default: !1
|
|
1331
|
+
},
|
|
1332
|
+
shown: {
|
|
1333
|
+
type: Boolean,
|
|
1334
|
+
default: !0
|
|
910
1335
|
},
|
|
911
1336
|
useMobileStyle: {
|
|
912
1337
|
type: Boolean,
|
|
913
1338
|
default: !0
|
|
1339
|
+
},
|
|
1340
|
+
width: {
|
|
1341
|
+
type: String,
|
|
1342
|
+
default: void 0,
|
|
1343
|
+
validator: (e) => ["sm", "md", "lg", "content", "anchor"].includes(e)
|
|
914
1344
|
}
|
|
915
1345
|
},
|
|
916
1346
|
emits: [
|
|
@@ -920,107 +1350,123 @@ const Xt = {
|
|
|
920
1350
|
"after-leave"
|
|
921
1351
|
],
|
|
922
1352
|
setup(e, { emit: a }) {
|
|
923
|
-
const t = e, n = a, l =
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
1353
|
+
const t = e, n = a, l = y(null), r = y(null), s = y(!1), o = v(() => document.getElementById(t.anchorId)), i = v(() => t.breakout ? f.value : t.containerId ? document.getElementById(t.containerId) : l.value), u = v(() => t.breakout ? g.value : !0), c = v(() => t.width === "anchor" ? void 0 : t.width), { breakoutStub: f, breakoutMounted: g } = xa(t.breakout, t.containerId);
|
|
1354
|
+
Dt([r, o], () => {
|
|
1355
|
+
s.value && n("close");
|
|
1356
|
+
}), $e(["Escape"], () => {
|
|
1357
|
+
s.value && n("close");
|
|
1358
|
+
}), re("dropdownAfterEnter", s), re("dropdownShown", v(() => t.shown));
|
|
1359
|
+
const m = (A, M) => {
|
|
1360
|
+
r.value.style.setProperty(A, M);
|
|
1361
|
+
};
|
|
1362
|
+
function x() {
|
|
1363
|
+
const A = i.value.getBoundingClientRect(), M = o.value.getBoundingClientRect(), Q = r.value.getBoundingClientRect();
|
|
1364
|
+
k(A, M), w(A, M, Q);
|
|
1365
|
+
}
|
|
1366
|
+
function k(A, M) {
|
|
935
1367
|
if (t.position === "top") {
|
|
936
|
-
const
|
|
937
|
-
|
|
1368
|
+
const Q = A.bottom - M.bottom;
|
|
1369
|
+
m("--dropdown-wscreen-top", "auto"), m("--dropdown-wscreen-bottom", `${Q + M.height + 8}px`);
|
|
938
1370
|
} else {
|
|
939
|
-
const
|
|
940
|
-
|
|
1371
|
+
const Q = M.top - A.top;
|
|
1372
|
+
m("--dropdown-wscreen-top", `${Q + M.height + 8}px`), m("--dropdown-wscreen-bottom", "auto");
|
|
941
1373
|
}
|
|
1374
|
+
}
|
|
1375
|
+
function w(A, M, Q) {
|
|
942
1376
|
if (t.width !== "anchor") {
|
|
943
|
-
const
|
|
1377
|
+
const X = M.left - A.left;
|
|
944
1378
|
if (t.position === "center") {
|
|
945
|
-
const
|
|
946
|
-
|
|
1379
|
+
const _ = (M.width - Q.width) / 2;
|
|
1380
|
+
m("--dropdown-wscreen-left", `${X + _}px`), m("--dropdown-wscreen-right", "auto");
|
|
947
1381
|
} else if (t.position === "right") {
|
|
948
|
-
const
|
|
949
|
-
|
|
1382
|
+
const _ = A.right - M.right;
|
|
1383
|
+
m("--dropdown-wscreen-left", "auto"), m("--dropdown-wscreen-right", `${_}px`);
|
|
950
1384
|
} else
|
|
951
|
-
|
|
1385
|
+
m("--dropdown-wscreen-left", `${X}px`), m("--dropdown-wscreen-right", "auto");
|
|
952
1386
|
}
|
|
953
1387
|
}
|
|
954
|
-
function
|
|
1388
|
+
function I() {
|
|
955
1389
|
if (t.width === "anchor") {
|
|
956
|
-
const
|
|
957
|
-
|
|
1390
|
+
const A = o.value.getBoundingClientRect();
|
|
1391
|
+
m("--dropdown-wscreen-width", `${A.width}px`);
|
|
958
1392
|
} else
|
|
959
|
-
|
|
1393
|
+
m("--dropdown-wscreen-width", "");
|
|
960
1394
|
}
|
|
961
|
-
function
|
|
962
|
-
|
|
963
|
-
}
|
|
964
|
-
function c() {
|
|
965
|
-
r = !0, n("after-enter");
|
|
1395
|
+
function b() {
|
|
1396
|
+
x(), I(), n("enter");
|
|
966
1397
|
}
|
|
967
|
-
function
|
|
968
|
-
|
|
1398
|
+
function C() {
|
|
1399
|
+
s.value = !0, n("after-enter");
|
|
969
1400
|
}
|
|
970
|
-
function
|
|
971
|
-
|
|
1401
|
+
function q() {
|
|
1402
|
+
s.value = !1, n("after-leave");
|
|
972
1403
|
}
|
|
973
|
-
return (
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
default: E(() => [
|
|
983
|
-
B("div", R({
|
|
984
|
-
ref_key: "dropdownRef",
|
|
1404
|
+
return (A, M) => (d(), h(j, null, [
|
|
1405
|
+
e.useMobileStyle && e.shown ? (d(), h("div", Ta)) : $("", !0),
|
|
1406
|
+
u.value ? (d(), V(dt, {
|
|
1407
|
+
key: 1,
|
|
1408
|
+
disabled: !e.breakout,
|
|
1409
|
+
to: e.breakout ? p(f) : void 0
|
|
1410
|
+
}, [
|
|
1411
|
+
B("div", {
|
|
1412
|
+
ref_key: "containerRef",
|
|
985
1413
|
ref: l,
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
1414
|
+
style: ut(e.breakout || e.containerId ? void 0 : { position: "relative" })
|
|
1415
|
+
}, [
|
|
1416
|
+
D(Ie, {
|
|
1417
|
+
shown: e.shown,
|
|
1418
|
+
preloaded: e.preloaded,
|
|
1419
|
+
duration: 75,
|
|
1420
|
+
"enter-attribute": "data-shown",
|
|
1421
|
+
onAfterEnter: C,
|
|
1422
|
+
onEnter: b,
|
|
1423
|
+
onAfterLeave: q
|
|
1424
|
+
}, {
|
|
1425
|
+
default: O(() => [
|
|
1426
|
+
B("div", P({
|
|
1427
|
+
ref_key: "dropdownRef",
|
|
1428
|
+
ref: r,
|
|
1429
|
+
class: "bs-dropdown",
|
|
1430
|
+
"data-width": c.value,
|
|
1431
|
+
"data-no-mobile": !e.useMobileStyle
|
|
1432
|
+
}, A.$attrs), [
|
|
1433
|
+
e.helperText ? (d(), h("header", La, [
|
|
1434
|
+
B("div", null, [
|
|
1435
|
+
B("h3", null, T(e.helperText), 1),
|
|
1436
|
+
e.helperDescription ? (d(), h("p", Va, T(e.helperDescription), 1)) : $("", !0)
|
|
1437
|
+
]),
|
|
1438
|
+
B("button", {
|
|
1439
|
+
type: "button",
|
|
1440
|
+
title: "close",
|
|
1441
|
+
onClick: M[0] || (M[0] = () => n("close"))
|
|
1442
|
+
}, [
|
|
1443
|
+
D(p(Be))
|
|
1444
|
+
])
|
|
1445
|
+
])) : $("", !0),
|
|
1446
|
+
E(A.$slots, "default")
|
|
1447
|
+
], 16, Aa)
|
|
995
1448
|
]),
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
P(f(be))
|
|
1002
|
-
])
|
|
1003
|
-
])) : I("", !0),
|
|
1004
|
-
L(b.$slots, "default")
|
|
1005
|
-
], 16, ra)
|
|
1006
|
-
]),
|
|
1007
|
-
_: 3
|
|
1008
|
-
}, 8, ["shown", "preloaded"]));
|
|
1449
|
+
_: 3
|
|
1450
|
+
}, 8, ["shown", "preloaded"])
|
|
1451
|
+
], 4)
|
|
1452
|
+
], 8, ["disabled", "to"])) : $("", !0)
|
|
1453
|
+
], 64));
|
|
1009
1454
|
}
|
|
1010
|
-
},
|
|
1011
|
-
key: 0,
|
|
1012
|
-
class: "bs-dropdown-backdrop"
|
|
1013
|
-
}, Xe = {
|
|
1455
|
+
}, nt = {
|
|
1014
1456
|
__name: "BsDropdown",
|
|
1015
1457
|
props: {
|
|
1016
1458
|
anchorId: {
|
|
1017
1459
|
type: String,
|
|
1018
|
-
|
|
1460
|
+
required: !0
|
|
1019
1461
|
},
|
|
1020
1462
|
shown: {
|
|
1021
1463
|
type: Boolean,
|
|
1022
1464
|
default: !0
|
|
1023
1465
|
},
|
|
1466
|
+
breakout: {
|
|
1467
|
+
type: Boolean,
|
|
1468
|
+
default: !1
|
|
1469
|
+
},
|
|
1024
1470
|
containerId: {
|
|
1025
1471
|
type: String,
|
|
1026
1472
|
default: void 0
|
|
@@ -1052,6 +1498,7 @@ const Xt = {
|
|
|
1052
1498
|
default: void 0,
|
|
1053
1499
|
validator: (e) => ["sm", "md", "lg", "content", "anchor", "toggle"].includes(e)
|
|
1054
1500
|
},
|
|
1501
|
+
// DEPRECATED DROPDOWN PROPS
|
|
1055
1502
|
/** @Deprecated - Use position instead */
|
|
1056
1503
|
center: {
|
|
1057
1504
|
type: Boolean,
|
|
@@ -1095,69 +1542,30 @@ const Xt = {
|
|
|
1095
1542
|
"after-leave"
|
|
1096
1543
|
],
|
|
1097
1544
|
setup(e, { emit: a }) {
|
|
1098
|
-
const t = e, n = a, l =
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
"
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
}, m.$attrs, {
|
|
1121
|
-
onClose: b[0] || (b[0] = (x) => n("close")),
|
|
1122
|
-
onAfterEnter: c,
|
|
1123
|
-
onEnter: b[1] || (b[1] = (x) => n("enter")),
|
|
1124
|
-
onAfterLeave: h
|
|
1125
|
-
}), {
|
|
1126
|
-
default: E(() => [
|
|
1127
|
-
L(m.$slots, "default")
|
|
1128
|
-
]),
|
|
1129
|
-
_: 3
|
|
1130
|
-
}, 16, ["shown", "preloaded", "anchor-id", "container-id", "helper-description", "helper-text", "position", "use-mobile-style", "width"])) : (s(), p("div", {
|
|
1131
|
-
key: 2,
|
|
1132
|
-
ref_key: "containerRef",
|
|
1133
|
-
ref: l,
|
|
1134
|
-
style: { position: "relative" }
|
|
1135
|
-
}, [
|
|
1136
|
-
P(f(He), R({
|
|
1137
|
-
shown: f(d),
|
|
1138
|
-
preloaded: e.preloaded,
|
|
1139
|
-
"anchor-id": i.value,
|
|
1140
|
-
"container-ref": l.value,
|
|
1141
|
-
"helper-description": e.helperDescription,
|
|
1142
|
-
"helper-text": e.helperText,
|
|
1143
|
-
position: o.value,
|
|
1144
|
-
"use-mobile-style": e.useMobileStyle,
|
|
1145
|
-
width: u.value
|
|
1146
|
-
}, m.$attrs, {
|
|
1147
|
-
onClose: b[2] || (b[2] = (x) => n("close")),
|
|
1148
|
-
onAfterEnter: c,
|
|
1149
|
-
onEnter: b[3] || (b[3] = (x) => n("enter")),
|
|
1150
|
-
onAfterLeave: h
|
|
1151
|
-
}), {
|
|
1152
|
-
default: E(() => [
|
|
1153
|
-
L(m.$slots, "default")
|
|
1154
|
-
]),
|
|
1155
|
-
_: 3
|
|
1156
|
-
}, 16, ["shown", "preloaded", "anchor-id", "container-ref", "helper-description", "helper-text", "position", "use-mobile-style", "width"])
|
|
1157
|
-
], 512))
|
|
1158
|
-
], 64));
|
|
1545
|
+
const t = e, n = a, { transition: l } = ue(t), r = v(() => t.width === "toggle" ? "anchor" : t.width), s = v(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = v(() => t.toggleId ? t.toggleId : t.anchorId);
|
|
1546
|
+
return (i, u) => (d(), V(Ea, {
|
|
1547
|
+
"anchor-id": o.value,
|
|
1548
|
+
breakout: e.breakout,
|
|
1549
|
+
"container-id": e.containerId,
|
|
1550
|
+
"helper-description": e.helperDescription,
|
|
1551
|
+
"helper-text": e.helperText,
|
|
1552
|
+
position: s.value,
|
|
1553
|
+
preloaded: e.preloaded,
|
|
1554
|
+
shown: p(l),
|
|
1555
|
+
"use-mobile-style": e.useMobileStyle,
|
|
1556
|
+
width: r.value,
|
|
1557
|
+
onClose: u[0] || (u[0] = () => n("close")),
|
|
1558
|
+
onEnter: u[1] || (u[1] = () => n("enter")),
|
|
1559
|
+
onAfterEnter: u[2] || (u[2] = () => n("after-enter")),
|
|
1560
|
+
onAfterLeave: u[3] || (u[3] = () => n("after-leave"))
|
|
1561
|
+
}, {
|
|
1562
|
+
default: O(() => [
|
|
1563
|
+
E(i.$slots, "default")
|
|
1564
|
+
]),
|
|
1565
|
+
_: 3
|
|
1566
|
+
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
|
|
1159
1567
|
}
|
|
1160
|
-
},
|
|
1568
|
+
}, Da = ["aria-activedescendant", "aria-label", "id"], Pe = {
|
|
1161
1569
|
__name: "BsDropdownOptionList",
|
|
1162
1570
|
props: {
|
|
1163
1571
|
optionsId: {
|
|
@@ -1193,110 +1601,110 @@ const Xt = {
|
|
|
1193
1601
|
},
|
|
1194
1602
|
emits: ["optselected", "update:modelValue", "close"],
|
|
1195
1603
|
setup(e, { expose: a, emit: t }) {
|
|
1196
|
-
const n = e, l = t, r =
|
|
1197
|
-
let
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
}),
|
|
1201
|
-
document.removeEventListener("keydown",
|
|
1202
|
-
}), z(u, (
|
|
1203
|
-
var
|
|
1204
|
-
|
|
1604
|
+
const n = e, l = t, r = y(null), s = y(null), o = y(-1), i = y(null), u = se("dropdownAfterEnter"), c = se("dropdownShown", !1);
|
|
1605
|
+
let f = -1;
|
|
1606
|
+
re("handleSelect", b), re("optionsId", v(() => n.optionsId)), W(() => {
|
|
1607
|
+
m(), x(), document.addEventListener("keydown", w);
|
|
1608
|
+
}), oe(() => {
|
|
1609
|
+
document.removeEventListener("keydown", w);
|
|
1610
|
+
}), z(u, (C) => {
|
|
1611
|
+
var q, A;
|
|
1612
|
+
C && f > -1 && (n.focusOnShow ? (q = i.value[f]) == null || q.focus() : (A = i.value[f]) == null || A.scrollIntoView({ block: "nearest" }));
|
|
1205
1613
|
}), z(c, x);
|
|
1206
|
-
const
|
|
1207
|
-
function
|
|
1208
|
-
|
|
1614
|
+
const g = v(() => n.modelValue || n.selectedValue);
|
|
1615
|
+
function m() {
|
|
1616
|
+
i.value = Array.from(
|
|
1209
1617
|
r.value.querySelectorAll('[data-component="bs-dropdown-option"]')
|
|
1210
1618
|
);
|
|
1211
1619
|
}
|
|
1212
1620
|
function x() {
|
|
1213
|
-
var
|
|
1214
|
-
c.value && !n.multiselect ? (
|
|
1215
|
-
(
|
|
1216
|
-
),
|
|
1217
|
-
var
|
|
1218
|
-
return (
|
|
1219
|
-
}),
|
|
1220
|
-
var
|
|
1221
|
-
return (
|
|
1222
|
-
}),
|
|
1223
|
-
var
|
|
1224
|
-
return (
|
|
1621
|
+
var C, q;
|
|
1622
|
+
c.value && !n.multiselect ? (f = i.value.findIndex(
|
|
1623
|
+
(A) => A.getAttribute("data-value") === String(g.value)
|
|
1624
|
+
), i.value.forEach((A) => {
|
|
1625
|
+
var M;
|
|
1626
|
+
return (M = A == null ? void 0 : A.setAttribute) == null ? void 0 : M.call(A, "aria-selected", "false");
|
|
1627
|
+
}), f > -1 && ((C = i.value[f]) == null || C.setAttribute("data-selected", ""), (q = i.value[f]) == null || q.setAttribute("aria-selected", "true"), o.value = f)) : (i.value.forEach((A) => {
|
|
1628
|
+
var M;
|
|
1629
|
+
return (M = A == null ? void 0 : A.removeAttribute) == null ? void 0 : M.call(A, "data-selected");
|
|
1630
|
+
}), i.value.forEach((A) => {
|
|
1631
|
+
var M;
|
|
1632
|
+
return (M = A == null ? void 0 : A.removeAttribute) == null ? void 0 : M.call(A, "aria-selected");
|
|
1225
1633
|
}));
|
|
1226
1634
|
}
|
|
1227
|
-
|
|
1635
|
+
Ot(
|
|
1228
1636
|
r,
|
|
1229
1637
|
() => {
|
|
1230
|
-
|
|
1638
|
+
m();
|
|
1231
1639
|
},
|
|
1232
1640
|
{ childList: !0 }
|
|
1233
1641
|
);
|
|
1234
|
-
function
|
|
1235
|
-
var
|
|
1236
|
-
|
|
1642
|
+
function k() {
|
|
1643
|
+
var C;
|
|
1644
|
+
o.value > -1 && ((C = i.value[o.value]) == null || C.blur());
|
|
1237
1645
|
}
|
|
1238
|
-
function
|
|
1646
|
+
function w(C) {
|
|
1239
1647
|
if (c.value)
|
|
1240
|
-
switch (
|
|
1648
|
+
switch (C.key) {
|
|
1241
1649
|
case "ArrowDown":
|
|
1242
|
-
|
|
1650
|
+
I("down"), C.preventDefault();
|
|
1243
1651
|
break;
|
|
1244
1652
|
case "ArrowUp":
|
|
1245
|
-
|
|
1653
|
+
I("up"), C.preventDefault();
|
|
1246
1654
|
break;
|
|
1247
1655
|
case "Home":
|
|
1248
|
-
|
|
1656
|
+
I("home"), C.preventDefault();
|
|
1249
1657
|
break;
|
|
1250
1658
|
case "End":
|
|
1251
|
-
|
|
1659
|
+
I("end"), C.preventDefault();
|
|
1252
1660
|
break;
|
|
1253
1661
|
case "Tab":
|
|
1254
|
-
|
|
1662
|
+
o.value = f, n.preventTab && C.preventDefault();
|
|
1255
1663
|
break;
|
|
1256
1664
|
}
|
|
1257
1665
|
}
|
|
1258
|
-
function
|
|
1259
|
-
let
|
|
1260
|
-
switch (
|
|
1666
|
+
function I(C) {
|
|
1667
|
+
let q;
|
|
1668
|
+
switch (C) {
|
|
1261
1669
|
case "up":
|
|
1262
|
-
|
|
1670
|
+
q = o.value - 1 < 0 ? i.value.length - 1 : o.value - 1;
|
|
1263
1671
|
break;
|
|
1264
1672
|
case "down":
|
|
1265
|
-
|
|
1673
|
+
q = (o.value + 1) % i.value.length;
|
|
1266
1674
|
break;
|
|
1267
1675
|
case "home":
|
|
1268
|
-
|
|
1676
|
+
q = 0;
|
|
1269
1677
|
break;
|
|
1270
1678
|
case "end":
|
|
1271
|
-
|
|
1679
|
+
q = i.value.length - 1;
|
|
1272
1680
|
break;
|
|
1273
1681
|
}
|
|
1274
|
-
|
|
1682
|
+
k(), i.value[q].focus(), s.value = i.value[q].id, o.value = q;
|
|
1275
1683
|
}
|
|
1276
|
-
function
|
|
1277
|
-
|
|
1684
|
+
function b(C, q) {
|
|
1685
|
+
s.value = C, k(), l("optselected", q), l("update:modelValue", q), l("close");
|
|
1278
1686
|
}
|
|
1279
1687
|
return a({
|
|
1280
|
-
activeDescendantId:
|
|
1281
|
-
focusedIndex:
|
|
1282
|
-
optionEls:
|
|
1283
|
-
refreshOptions:
|
|
1284
|
-
}), (
|
|
1688
|
+
activeDescendantId: s,
|
|
1689
|
+
focusedIndex: o,
|
|
1690
|
+
optionEls: i,
|
|
1691
|
+
refreshOptions: m
|
|
1692
|
+
}), (C, q) => (d(), h("ul", {
|
|
1285
1693
|
ref_key: "optionsRef",
|
|
1286
1694
|
ref: r,
|
|
1287
|
-
"aria-activedescendant":
|
|
1695
|
+
"aria-activedescendant": s.value || void 0,
|
|
1288
1696
|
"aria-label": n.label || void 0,
|
|
1289
1697
|
class: "bs-dropdown-options",
|
|
1290
1698
|
id: n.optionsId,
|
|
1291
1699
|
role: "listbox"
|
|
1292
1700
|
}, [
|
|
1293
|
-
|
|
1294
|
-
], 8,
|
|
1701
|
+
E(C.$slots, "default")
|
|
1702
|
+
], 8, Da));
|
|
1295
1703
|
}
|
|
1296
|
-
},
|
|
1704
|
+
}, Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1297
1705
|
__proto__: null,
|
|
1298
1706
|
default: Pe
|
|
1299
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1707
|
+
}, Symbol.toStringTag, { value: "Module" })), qa = ["data-value", "data-variant", "id"], ze = {
|
|
1300
1708
|
__name: "BsDropdownOption",
|
|
1301
1709
|
props: {
|
|
1302
1710
|
value: {
|
|
@@ -1309,16 +1717,16 @@ const Xt = {
|
|
|
1309
1717
|
}
|
|
1310
1718
|
},
|
|
1311
1719
|
setup(e) {
|
|
1312
|
-
const a = e, t =
|
|
1313
|
-
}), r =
|
|
1314
|
-
|
|
1315
|
-
|
|
1720
|
+
const a = e, t = y(null), n = se("optionsId", ""), l = se("handleSelect", () => {
|
|
1721
|
+
}), r = v(() => `${n.value}-option-${a.value}`);
|
|
1722
|
+
$e([" ", "Enter", "NumpadEnter"], (o) => {
|
|
1723
|
+
s(), o.preventDefault();
|
|
1316
1724
|
}, t);
|
|
1317
|
-
function
|
|
1318
|
-
var
|
|
1319
|
-
l(r.value, a.value), (
|
|
1725
|
+
function s(o) {
|
|
1726
|
+
var i, u;
|
|
1727
|
+
l(r.value, a.value), (i = t.value.querySelector("a")) == null || i.click(), (u = o == null ? void 0 : o.stopPropagation) == null || u.call(o);
|
|
1320
1728
|
}
|
|
1321
|
-
return (
|
|
1729
|
+
return (o, i) => (d(), h("li", {
|
|
1322
1730
|
ref_key: "optionRef",
|
|
1323
1731
|
ref: t,
|
|
1324
1732
|
"data-component": "bs-dropdown-option",
|
|
@@ -1327,12 +1735,12 @@ const Xt = {
|
|
|
1327
1735
|
id: r.value,
|
|
1328
1736
|
role: "option",
|
|
1329
1737
|
tabIndex: -1,
|
|
1330
|
-
onClick:
|
|
1738
|
+
onClick: s
|
|
1331
1739
|
}, [
|
|
1332
|
-
|
|
1333
|
-
], 8,
|
|
1740
|
+
E(o.$slots, "default")
|
|
1741
|
+
], 8, qa));
|
|
1334
1742
|
}
|
|
1335
|
-
},
|
|
1743
|
+
}, Ma = ["data-img-size", "data-initials", "data-no-img"], Pa = ["src", "alt"], lt = {
|
|
1336
1744
|
__name: "BsProfileImg",
|
|
1337
1745
|
props: {
|
|
1338
1746
|
src: String,
|
|
@@ -1347,25 +1755,25 @@ const Xt = {
|
|
|
1347
1755
|
}
|
|
1348
1756
|
},
|
|
1349
1757
|
setup(e) {
|
|
1350
|
-
const a = e, t =
|
|
1351
|
-
return
|
|
1758
|
+
const a = e, t = y(!1), n = y(!!a.src);
|
|
1759
|
+
return W(() => t.value = !0), (l, r) => (d(), h("div", {
|
|
1352
1760
|
class: "bs-profile-img",
|
|
1353
1761
|
"data-img-size": e.size,
|
|
1354
1762
|
"data-initials": e.initials,
|
|
1355
1763
|
"data-no-img": !n.value
|
|
1356
1764
|
}, [
|
|
1357
|
-
n.value && t.value ? (
|
|
1765
|
+
n.value && t.value ? (d(), h("img", {
|
|
1358
1766
|
key: 0,
|
|
1359
1767
|
src: e.src,
|
|
1360
1768
|
alt: e.profileName,
|
|
1361
|
-
onError: r[0] || (r[0] = (
|
|
1362
|
-
}, null, 40,
|
|
1363
|
-
], 8,
|
|
1769
|
+
onError: r[0] || (r[0] = (s) => n.value = !1)
|
|
1770
|
+
}, null, 40, Pa)) : $("", !0)
|
|
1771
|
+
], 8, Ma));
|
|
1364
1772
|
}
|
|
1365
|
-
},
|
|
1773
|
+
}, za = { key: 1 }, Ra = ["for", "innerHTML"], Na = ["innerHTML"], ja = ["for"], Ua = { key: 1 }, Fa = { key: 5 }, Wa = {
|
|
1366
1774
|
key: 0,
|
|
1367
1775
|
"data-no-hover": ""
|
|
1368
|
-
},
|
|
1776
|
+
}, me = {
|
|
1369
1777
|
__name: "BsDropdownOptionBuilder",
|
|
1370
1778
|
props: {
|
|
1371
1779
|
// Array of objects with the following properties (either label or labelHtml
|
|
@@ -1398,83 +1806,83 @@ const Xt = {
|
|
|
1398
1806
|
},
|
|
1399
1807
|
setup(e) {
|
|
1400
1808
|
const a = e, t = {};
|
|
1401
|
-
|
|
1809
|
+
_e(() => {
|
|
1402
1810
|
n();
|
|
1403
1811
|
}), z(() => a.options, () => {
|
|
1404
1812
|
n();
|
|
1405
1813
|
});
|
|
1406
1814
|
function n() {
|
|
1407
|
-
a.options.forEach((
|
|
1408
|
-
const { icon:
|
|
1409
|
-
|
|
1815
|
+
a.options.forEach((s) => {
|
|
1816
|
+
const { icon: o } = s;
|
|
1817
|
+
o && !t[o] && (t[o] = r(o));
|
|
1410
1818
|
});
|
|
1411
1819
|
}
|
|
1412
|
-
function l(
|
|
1413
|
-
let
|
|
1414
|
-
return
|
|
1820
|
+
function l(s) {
|
|
1821
|
+
let o = "", i = 1;
|
|
1822
|
+
return i += s.checkbox ? 1 : 0, i += s.icon ? 1 : 0, i += s.profileImg ? 1 : 0, i > 1 && (o += ` ${i}-col`), s.checkbox && (o += " checkbox"), s.description && (o += " description"), s.negative && (o += " negative"), o;
|
|
1415
1823
|
}
|
|
1416
|
-
function r(
|
|
1417
|
-
return
|
|
1418
|
-
const { [`BsIcon${
|
|
1419
|
-
return
|
|
1824
|
+
function r(s) {
|
|
1825
|
+
return Me(async () => {
|
|
1826
|
+
const { [`BsIcon${s}`]: o } = await import("@wwtdev/bsds-icons-vue3");
|
|
1827
|
+
return o;
|
|
1420
1828
|
});
|
|
1421
1829
|
}
|
|
1422
|
-
return (
|
|
1423
|
-
(
|
|
1424
|
-
"aria-checked":
|
|
1425
|
-
key:
|
|
1426
|
-
value:
|
|
1427
|
-
variant: l(
|
|
1830
|
+
return (s, o) => (d(), h(j, null, [
|
|
1831
|
+
(d(!0), h(j, null, Z(e.options, (i) => (d(), V(ze, {
|
|
1832
|
+
"aria-checked": i.checkbox ? i.checkbox.checked : void 0,
|
|
1833
|
+
key: i.value,
|
|
1834
|
+
value: i.value,
|
|
1835
|
+
variant: l(i)
|
|
1428
1836
|
}, {
|
|
1429
|
-
default:
|
|
1430
|
-
|
|
1837
|
+
default: O(() => [
|
|
1838
|
+
i.checkbox ? (d(), V($a, {
|
|
1431
1839
|
key: 0,
|
|
1432
|
-
"input-id":
|
|
1433
|
-
"model-value":
|
|
1434
|
-
}, null, 8, ["input-id", "model-value"])) :
|
|
1435
|
-
|
|
1436
|
-
(
|
|
1437
|
-
])) :
|
|
1438
|
-
|
|
1840
|
+
"input-id": i.checkbox.inputId,
|
|
1841
|
+
"model-value": i.checkbox.checked
|
|
1842
|
+
}, null, 8, ["input-id", "model-value"])) : $("", !0),
|
|
1843
|
+
i.icon ? (d(), h("span", za, [
|
|
1844
|
+
(d(), V(J(t[i.icon])))
|
|
1845
|
+
])) : $("", !0),
|
|
1846
|
+
i.profileImg ? (d(), V(lt, {
|
|
1439
1847
|
key: 2,
|
|
1440
|
-
src:
|
|
1848
|
+
src: i.profileImg.src,
|
|
1441
1849
|
size: "xs",
|
|
1442
|
-
initials:
|
|
1443
|
-
"profile-name":
|
|
1444
|
-
}, null, 8, ["src", "initials", "profile-name"])) :
|
|
1445
|
-
|
|
1446
|
-
|
|
1850
|
+
initials: i.profileImg.initials,
|
|
1851
|
+
"profile-name": i.profileImg.profileName
|
|
1852
|
+
}, null, 8, ["src", "initials", "profile-name"])) : $("", !0),
|
|
1853
|
+
i.labelHtml ? (d(), h(j, { key: 3 }, [
|
|
1854
|
+
i.checkbox ? (d(), h("label", {
|
|
1447
1855
|
key: 0,
|
|
1448
|
-
for:
|
|
1449
|
-
innerHTML:
|
|
1450
|
-
onClick:
|
|
1856
|
+
for: i.checkbox.inputId,
|
|
1857
|
+
innerHTML: i.labelHtml,
|
|
1858
|
+
onClick: o[0] || (o[0] = We(() => {
|
|
1451
1859
|
}, ["prevent"]))
|
|
1452
|
-
}, null, 8,
|
|
1860
|
+
}, null, 8, Ra)) : (d(), h("span", {
|
|
1453
1861
|
key: 1,
|
|
1454
|
-
innerHTML:
|
|
1455
|
-
}, null, 8,
|
|
1456
|
-
], 64)) : (
|
|
1457
|
-
|
|
1862
|
+
innerHTML: i.labelHtml
|
|
1863
|
+
}, null, 8, Na))
|
|
1864
|
+
], 64)) : (d(), h(j, { key: 4 }, [
|
|
1865
|
+
i.checkbox ? (d(), h("label", {
|
|
1458
1866
|
key: 0,
|
|
1459
|
-
for:
|
|
1460
|
-
onClick:
|
|
1867
|
+
for: i.checkbox.inputId,
|
|
1868
|
+
onClick: o[1] || (o[1] = We(() => {
|
|
1461
1869
|
}, ["prevent"]))
|
|
1462
|
-
}, T(
|
|
1870
|
+
}, T(i.label), 9, ja)) : (d(), h("span", Ua, T(i.label), 1))
|
|
1463
1871
|
], 64)),
|
|
1464
|
-
|
|
1872
|
+
i.description ? (d(), h("span", Fa, T(i.description), 1)) : $("", !0)
|
|
1465
1873
|
]),
|
|
1466
1874
|
_: 2
|
|
1467
1875
|
}, 1032, ["aria-checked", "value", "variant"]))), 128)),
|
|
1468
|
-
e.showNoOptions && e.options.length === 0 ? (
|
|
1469
|
-
|
|
1470
|
-
|
|
1876
|
+
e.showNoOptions && e.options.length === 0 ? (d(), h("li", Wa, [
|
|
1877
|
+
E(s.$slots, "no-options", {}, () => [
|
|
1878
|
+
U("No options")
|
|
1471
1879
|
])
|
|
1472
|
-
])) :
|
|
1880
|
+
])) : $("", !0)
|
|
1473
1881
|
], 64));
|
|
1474
1882
|
}
|
|
1475
|
-
},
|
|
1476
|
-
|
|
1477
|
-
],
|
|
1883
|
+
}, Ga = { role: "separator" }, Ha = /* @__PURE__ */ B("hr", null, null, -1), Ka = [
|
|
1884
|
+
Ha
|
|
1885
|
+
], Ya = {
|
|
1478
1886
|
__name: "BsDropdownMultiselect",
|
|
1479
1887
|
props: {
|
|
1480
1888
|
label: {
|
|
@@ -1500,52 +1908,52 @@ const Xt = {
|
|
|
1500
1908
|
emits: ["update:selectedOptions"],
|
|
1501
1909
|
setup(e, { emit: a }) {
|
|
1502
1910
|
const t = e, n = a;
|
|
1503
|
-
|
|
1504
|
-
const l =
|
|
1505
|
-
let
|
|
1911
|
+
y(null), y(null);
|
|
1912
|
+
const l = y(null), r = y([]), s = y([]);
|
|
1913
|
+
let o = !1;
|
|
1506
1914
|
z(
|
|
1507
1915
|
() => t.selectedOptions,
|
|
1508
1916
|
c,
|
|
1509
1917
|
{ immediate: !0 }
|
|
1510
|
-
), z(() => t.shown, (
|
|
1511
|
-
|
|
1918
|
+
), z(() => t.shown, (m) => {
|
|
1919
|
+
m && ve(i);
|
|
1512
1920
|
});
|
|
1513
|
-
function
|
|
1514
|
-
var x,
|
|
1921
|
+
function i() {
|
|
1922
|
+
var x, k;
|
|
1515
1923
|
l.value && (l.value.refreshOptions(), l.value.activeDescendantId = (x = l.value.optionEls[0]) == null ? void 0 : x.id, l.value.focusedIndex = 0);
|
|
1516
|
-
const
|
|
1517
|
-
(
|
|
1924
|
+
const m = document.querySelector(`#${t.optionsId} [data-component="bs-dropdown-option"]`);
|
|
1925
|
+
(k = m == null ? void 0 : m.focus) == null || k.call(m, { preventScroll: !0 });
|
|
1518
1926
|
}
|
|
1519
1927
|
function u() {
|
|
1520
|
-
var
|
|
1928
|
+
var m;
|
|
1521
1929
|
if (l.value) {
|
|
1522
1930
|
l.value.refreshOptions();
|
|
1523
|
-
const x = l.value.focusedIndex,
|
|
1524
|
-
(
|
|
1931
|
+
const x = l.value.focusedIndex, k = l.value.optionEls[x];
|
|
1932
|
+
(m = k == null ? void 0 : k.focus) == null || m.call(k), l.value.activeDescendantId = k == null ? void 0 : k.id;
|
|
1525
1933
|
}
|
|
1526
1934
|
}
|
|
1527
|
-
function c(
|
|
1528
|
-
const x = new Set(
|
|
1529
|
-
t.options.forEach((
|
|
1530
|
-
const
|
|
1531
|
-
x.has(
|
|
1532
|
-
}), r.value =
|
|
1533
|
-
|
|
1534
|
-
|
|
1935
|
+
function c(m = []) {
|
|
1936
|
+
const x = new Set(m), k = [], w = [];
|
|
1937
|
+
t.options.forEach((I) => {
|
|
1938
|
+
const b = { ...I }, C = `${t.optionsId}-${I.value}-cb`;
|
|
1939
|
+
x.has(I.value) ? (b.checkbox = { inputId: C, checked: !0 }, k.push(b)) : (b.checkbox = { inputId: C, checked: !1 }, w.push(b));
|
|
1940
|
+
}), r.value = k, ve(() => {
|
|
1941
|
+
s.value = w, ve(() => {
|
|
1942
|
+
o && u(), o = !1;
|
|
1535
1943
|
});
|
|
1536
1944
|
});
|
|
1537
1945
|
}
|
|
1538
|
-
function
|
|
1539
|
-
const x = new Set(
|
|
1540
|
-
return t.options.forEach((
|
|
1541
|
-
x.has(
|
|
1542
|
-
}),
|
|
1946
|
+
function f(m = []) {
|
|
1947
|
+
const x = new Set(m), k = [];
|
|
1948
|
+
return t.options.forEach((w) => {
|
|
1949
|
+
x.has(w.value) && k.push(w.value);
|
|
1950
|
+
}), k;
|
|
1543
1951
|
}
|
|
1544
|
-
function m
|
|
1545
|
-
const x = t.selectedOptions.includes(
|
|
1546
|
-
|
|
1952
|
+
function g(m) {
|
|
1953
|
+
const x = t.selectedOptions.includes(m) ? t.selectedOptions.filter((k) => k !== m) : f([...t.selectedOptions, m]);
|
|
1954
|
+
o = !0, n("update:selectedOptions", x);
|
|
1547
1955
|
}
|
|
1548
|
-
return (
|
|
1956
|
+
return (m, x) => (d(), V(Pe, {
|
|
1549
1957
|
ref_key: "optlist",
|
|
1550
1958
|
ref: l,
|
|
1551
1959
|
"aria-multiselectable": "true",
|
|
@@ -1554,20 +1962,20 @@ const Xt = {
|
|
|
1554
1962
|
multiselect: "",
|
|
1555
1963
|
"options-id": e.optionsId,
|
|
1556
1964
|
shown: e.shown,
|
|
1557
|
-
"onUpdate:modelValue":
|
|
1965
|
+
"onUpdate:modelValue": g
|
|
1558
1966
|
}, {
|
|
1559
|
-
default:
|
|
1560
|
-
var
|
|
1967
|
+
default: O(() => {
|
|
1968
|
+
var k;
|
|
1561
1969
|
return [
|
|
1562
|
-
|
|
1970
|
+
D(me, {
|
|
1563
1971
|
options: r.value,
|
|
1564
1972
|
"show-no-options": !1
|
|
1565
1973
|
}, null, 8, ["options"]),
|
|
1566
|
-
|
|
1567
|
-
[
|
|
1974
|
+
ge(B("li", Ga, Ka, 512), [
|
|
1975
|
+
[ye, (k = r.value) == null ? void 0 : k.length]
|
|
1568
1976
|
]),
|
|
1569
|
-
|
|
1570
|
-
options:
|
|
1977
|
+
D(me, {
|
|
1978
|
+
options: s.value,
|
|
1571
1979
|
"show-no-options": !1
|
|
1572
1980
|
}, null, 8, ["options"])
|
|
1573
1981
|
];
|
|
@@ -1575,17 +1983,56 @@ const Xt = {
|
|
|
1575
1983
|
_: 1
|
|
1576
1984
|
}, 8, ["label", "options-id", "shown"]));
|
|
1577
1985
|
}
|
|
1578
|
-
},
|
|
1986
|
+
}, Qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1579
1987
|
__proto__: null,
|
|
1580
|
-
default:
|
|
1581
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1582
|
-
__name: "
|
|
1988
|
+
default: Ya
|
|
1989
|
+
}, Symbol.toStringTag, { value: "Module" })), Xa = {
|
|
1990
|
+
__name: "BsDropdownWithOptionsNew",
|
|
1583
1991
|
props: {
|
|
1584
|
-
//
|
|
1585
|
-
|
|
1992
|
+
// DROPDOWN PROPS
|
|
1993
|
+
anchorId: {
|
|
1994
|
+
type: String,
|
|
1995
|
+
default: void 0
|
|
1996
|
+
},
|
|
1997
|
+
breakout: {
|
|
1998
|
+
type: Boolean,
|
|
1999
|
+
default: !1
|
|
2000
|
+
},
|
|
2001
|
+
containerId: {
|
|
2002
|
+
type: String,
|
|
2003
|
+
default: void 0
|
|
2004
|
+
},
|
|
2005
|
+
helperDescription: {
|
|
2006
|
+
type: String,
|
|
2007
|
+
default: void 0
|
|
2008
|
+
},
|
|
2009
|
+
helperText: {
|
|
1586
2010
|
type: String,
|
|
1587
|
-
|
|
2011
|
+
default: void 0
|
|
2012
|
+
},
|
|
2013
|
+
position: {
|
|
2014
|
+
type: String,
|
|
2015
|
+
default: void 0,
|
|
2016
|
+
validator: (e) => ["top", "center", "right"].includes(e)
|
|
2017
|
+
},
|
|
2018
|
+
preloaded: {
|
|
2019
|
+
type: Boolean,
|
|
2020
|
+
default: !1
|
|
2021
|
+
},
|
|
2022
|
+
shown: {
|
|
2023
|
+
type: Boolean,
|
|
2024
|
+
default: !0
|
|
2025
|
+
},
|
|
2026
|
+
useMobileStyle: {
|
|
2027
|
+
type: Boolean,
|
|
2028
|
+
default: !0
|
|
2029
|
+
},
|
|
2030
|
+
width: {
|
|
2031
|
+
type: String,
|
|
2032
|
+
default: void 0,
|
|
2033
|
+
validator: (e) => ["sm", "md", "lg", "content", "anchor"].includes(e)
|
|
1588
2034
|
},
|
|
2035
|
+
// OPTION LIST PROPS
|
|
1589
2036
|
focusOnShow: {
|
|
1590
2037
|
type: Boolean,
|
|
1591
2038
|
default: !0
|
|
@@ -1598,16 +2045,70 @@ const Xt = {
|
|
|
1598
2045
|
type: [String, Number],
|
|
1599
2046
|
default: void 0
|
|
1600
2047
|
},
|
|
2048
|
+
optionsId: {
|
|
2049
|
+
type: String,
|
|
2050
|
+
required: !0
|
|
2051
|
+
},
|
|
1601
2052
|
preventTab: {
|
|
1602
2053
|
type: Boolean,
|
|
1603
2054
|
default: !0
|
|
1604
|
-
}
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
2055
|
+
}
|
|
2056
|
+
},
|
|
2057
|
+
emits: [
|
|
2058
|
+
"update:modelValue",
|
|
2059
|
+
"close",
|
|
2060
|
+
"after-enter",
|
|
2061
|
+
"after-leave"
|
|
2062
|
+
],
|
|
2063
|
+
setup(e, { emit: a }) {
|
|
2064
|
+
const t = a, n = y(!1);
|
|
2065
|
+
function l() {
|
|
2066
|
+
n.value = !0;
|
|
2067
|
+
}
|
|
2068
|
+
function r(o) {
|
|
2069
|
+
n.value = !1, t("update:modelValue", o), t("close");
|
|
2070
|
+
}
|
|
2071
|
+
function s() {
|
|
2072
|
+
n.value && (n.value = !1, t("close"));
|
|
2073
|
+
}
|
|
2074
|
+
return (o, i) => (d(), V(p(nt), {
|
|
2075
|
+
"anchor-id": e.anchorId,
|
|
2076
|
+
breakout: e.breakout,
|
|
2077
|
+
"container-id": e.containerId,
|
|
2078
|
+
"helper-description": e.helperDescription,
|
|
2079
|
+
"helper-text": e.helperText,
|
|
2080
|
+
position: e.position,
|
|
2081
|
+
preloaded: e.preloaded,
|
|
2082
|
+
shown: e.shown,
|
|
2083
|
+
"use-mobile-style": e.useMobileStyle,
|
|
2084
|
+
width: e.width,
|
|
2085
|
+
onClose: s,
|
|
2086
|
+
onAfterEnter: i[0] || (i[0] = (u) => t("after-enter")),
|
|
2087
|
+
onEnter: l,
|
|
2088
|
+
onAfterLeave: i[1] || (i[1] = (u) => t("after-leave"))
|
|
2089
|
+
}, {
|
|
2090
|
+
default: O(() => [
|
|
2091
|
+
D(p(Pe), {
|
|
2092
|
+
"focus-on-show": e.focusOnShow,
|
|
2093
|
+
label: e.label,
|
|
2094
|
+
"model-value": e.modelValue,
|
|
2095
|
+
"options-id": e.optionsId,
|
|
2096
|
+
"prevent-tab": e.preventTab,
|
|
2097
|
+
"onUpdate:modelValue": r,
|
|
2098
|
+
onClose: s
|
|
2099
|
+
}, {
|
|
2100
|
+
default: O(() => [
|
|
2101
|
+
E(o.$slots, "default")
|
|
2102
|
+
]),
|
|
2103
|
+
_: 3
|
|
2104
|
+
}, 8, ["focus-on-show", "label", "model-value", "options-id", "prevent-tab"])
|
|
2105
|
+
]),
|
|
2106
|
+
_: 3
|
|
2107
|
+
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
|
|
2108
|
+
}
|
|
2109
|
+
}, Re = {
|
|
2110
|
+
__name: "BsDropdownWithOptions",
|
|
2111
|
+
props: {
|
|
1611
2112
|
anchorId: {
|
|
1612
2113
|
type: String,
|
|
1613
2114
|
default: void 0
|
|
@@ -1616,6 +2117,10 @@ const Xt = {
|
|
|
1616
2117
|
type: Boolean,
|
|
1617
2118
|
default: !0
|
|
1618
2119
|
},
|
|
2120
|
+
breakout: {
|
|
2121
|
+
type: Boolean,
|
|
2122
|
+
default: !1
|
|
2123
|
+
},
|
|
1619
2124
|
containerId: {
|
|
1620
2125
|
type: String,
|
|
1621
2126
|
default: void 0
|
|
@@ -1647,6 +2152,7 @@ const Xt = {
|
|
|
1647
2152
|
default: void 0,
|
|
1648
2153
|
validator: (e) => ["sm", "md", "lg", "content", "anchor", "toggle"].includes(e)
|
|
1649
2154
|
},
|
|
2155
|
+
// DEPRECATED DROPDOWN PROPS
|
|
1650
2156
|
/** @Deprecated - Use position instead */
|
|
1651
2157
|
center: {
|
|
1652
2158
|
type: Boolean,
|
|
@@ -1681,6 +2187,33 @@ const Xt = {
|
|
|
1681
2187
|
top: {
|
|
1682
2188
|
type: Boolean,
|
|
1683
2189
|
default: !1
|
|
2190
|
+
},
|
|
2191
|
+
// OPTION LIST PROPS
|
|
2192
|
+
focusOnShow: {
|
|
2193
|
+
type: Boolean,
|
|
2194
|
+
default: !0
|
|
2195
|
+
},
|
|
2196
|
+
label: {
|
|
2197
|
+
type: String,
|
|
2198
|
+
default: void 0
|
|
2199
|
+
},
|
|
2200
|
+
modelValue: {
|
|
2201
|
+
type: [String, Number],
|
|
2202
|
+
default: void 0
|
|
2203
|
+
},
|
|
2204
|
+
optionsId: {
|
|
2205
|
+
type: String,
|
|
2206
|
+
required: !0
|
|
2207
|
+
},
|
|
2208
|
+
preventTab: {
|
|
2209
|
+
type: Boolean,
|
|
2210
|
+
default: !0
|
|
2211
|
+
},
|
|
2212
|
+
// DEPRECATED OPTION LIST PROPS
|
|
2213
|
+
/** @Deprecated - Use modelValue (or v-model) instead */
|
|
2214
|
+
selectedValue: {
|
|
2215
|
+
type: [String, Number],
|
|
2216
|
+
default: void 0
|
|
1684
2217
|
}
|
|
1685
2218
|
},
|
|
1686
2219
|
emits: [
|
|
@@ -1691,60 +2224,38 @@ const Xt = {
|
|
|
1691
2224
|
"after-leave"
|
|
1692
2225
|
],
|
|
1693
2226
|
setup(e, { emit: a }) {
|
|
1694
|
-
const t =
|
|
1695
|
-
function
|
|
1696
|
-
n
|
|
1697
|
-
}
|
|
1698
|
-
function r(i) {
|
|
1699
|
-
n.value = !1, t("optselected", i), t("update:modelValue", i), t("close");
|
|
2227
|
+
const t = e, n = a, { transition: l } = ue(t), r = v(() => t.width === "toggle" ? "anchor" : t.width), s = v(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = v(() => t.toggleId ? t.toggleId : t.anchorId), i = v(() => t.selectedValue || t.modelValue);
|
|
2228
|
+
function u(c) {
|
|
2229
|
+
n("optselected", c), n("update:modelValue", c);
|
|
1700
2230
|
}
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
return (i, o) => (s(), V(f(Xe), {
|
|
1705
|
-
shown: e.shown,
|
|
1706
|
-
preloaded: e.preloaded,
|
|
1707
|
-
"anchor-id": e.anchorId,
|
|
1708
|
-
center: e.center,
|
|
2231
|
+
return (c, f) => (d(), V(Xa, {
|
|
2232
|
+
"anchor-id": o.value,
|
|
2233
|
+
breakout: e.breakout,
|
|
1709
2234
|
"container-id": e.containerId,
|
|
1710
|
-
"
|
|
1711
|
-
"enter-trigger": e.enterTrigger,
|
|
2235
|
+
"focus-on-show": e.focusOnShow,
|
|
1712
2236
|
"helper-description": e.helperDescription,
|
|
1713
2237
|
"helper-text": e.helperText,
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
2238
|
+
label: e.label,
|
|
2239
|
+
"model-value": i.value,
|
|
2240
|
+
"options-id": e.optionsId,
|
|
2241
|
+
position: s.value,
|
|
2242
|
+
preloaded: e.preloaded,
|
|
2243
|
+
"prevent-tab": e.preventTab,
|
|
2244
|
+
shown: p(l),
|
|
1719
2245
|
"use-mobile-style": e.useMobileStyle,
|
|
1720
|
-
width:
|
|
1721
|
-
onClose:
|
|
1722
|
-
onAfterEnter:
|
|
1723
|
-
|
|
1724
|
-
|
|
2246
|
+
width: r.value,
|
|
2247
|
+
onClose: f[0] || (f[0] = (g) => n("close")),
|
|
2248
|
+
onAfterEnter: f[1] || (f[1] = (g) => n("after-enter")),
|
|
2249
|
+
onAfterLeave: f[2] || (f[2] = (g) => n("after-leave")),
|
|
2250
|
+
"onUpdate:modelValue": u
|
|
1725
2251
|
}, {
|
|
1726
|
-
default:
|
|
1727
|
-
|
|
1728
|
-
"focus-on-show": e.focusOnShow,
|
|
1729
|
-
label: e.label,
|
|
1730
|
-
"model-value": e.modelValue,
|
|
1731
|
-
"options-id": e.optionsId,
|
|
1732
|
-
"prevent-tab": e.preventTab,
|
|
1733
|
-
"selected-value": e.selectedValue,
|
|
1734
|
-
shown: n.value,
|
|
1735
|
-
"onUpdate:modelValue": r,
|
|
1736
|
-
onClose: d
|
|
1737
|
-
}, {
|
|
1738
|
-
default: E(() => [
|
|
1739
|
-
L(i.$slots, "default")
|
|
1740
|
-
]),
|
|
1741
|
-
_: 3
|
|
1742
|
-
}, 8, ["focus-on-show", "label", "model-value", "options-id", "prevent-tab", "selected-value", "shown"])
|
|
2252
|
+
default: O(() => [
|
|
2253
|
+
E(c.$slots, "default")
|
|
1743
2254
|
]),
|
|
1744
2255
|
_: 3
|
|
1745
|
-
}, 8, ["
|
|
2256
|
+
}, 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"]));
|
|
1746
2257
|
}
|
|
1747
|
-
},
|
|
2258
|
+
}, Za = ["aria-controls", "aria-expanded", "data-open", "data-size", "disabled"], Ja = {
|
|
1748
2259
|
__name: "BsFilterButton",
|
|
1749
2260
|
props: {
|
|
1750
2261
|
badgeCount: {
|
|
@@ -1773,8 +2284,8 @@ const Xt = {
|
|
|
1773
2284
|
}
|
|
1774
2285
|
},
|
|
1775
2286
|
setup(e) {
|
|
1776
|
-
const a = e, t =
|
|
1777
|
-
return (n, l) => (
|
|
2287
|
+
const a = e, t = v(() => a.badgeCount > 0);
|
|
2288
|
+
return (n, l) => (d(), h("button", {
|
|
1778
2289
|
class: "bs-filter-button",
|
|
1779
2290
|
"aria-controls": e.optionsId,
|
|
1780
2291
|
"aria-expanded": e.open,
|
|
@@ -1784,21 +2295,21 @@ const Xt = {
|
|
|
1784
2295
|
disabled: e.disabled,
|
|
1785
2296
|
type: "button"
|
|
1786
2297
|
}, [
|
|
1787
|
-
t.value ? (
|
|
2298
|
+
t.value ? (d(), V(Ut, {
|
|
1788
2299
|
key: 0,
|
|
1789
2300
|
color: "blue",
|
|
1790
2301
|
count: e.badgeCount,
|
|
1791
2302
|
label: "active filter",
|
|
1792
2303
|
position: "left",
|
|
1793
2304
|
variant: "notext"
|
|
1794
|
-
}, null, 8, ["count"])) :
|
|
1795
|
-
|
|
1796
|
-
|
|
2305
|
+
}, null, 8, ["count"])) : $("", !0),
|
|
2306
|
+
E(n.$slots, "label", {}, () => [
|
|
2307
|
+
U(T(e.label), 1)
|
|
1797
2308
|
]),
|
|
1798
|
-
|
|
1799
|
-
], 8,
|
|
2309
|
+
D(p(tt))
|
|
2310
|
+
], 8, Za));
|
|
1800
2311
|
}
|
|
1801
|
-
},
|
|
2312
|
+
}, _a = ["id"], El = {
|
|
1802
2313
|
__name: "BsDropdownWithToggle",
|
|
1803
2314
|
props: {
|
|
1804
2315
|
breakout: {
|
|
@@ -1860,234 +2371,129 @@ const Xt = {
|
|
|
1860
2371
|
},
|
|
1861
2372
|
emits: ["update:selectedOptions", "update:selectedOption", "toggled", "close"],
|
|
1862
2373
|
setup(e, { emit: a }) {
|
|
1863
|
-
const t = e, n = a, l =
|
|
1864
|
-
z(
|
|
1865
|
-
|
|
1866
|
-
})
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
function h() {
|
|
1870
|
-
r.value = !1, n("close"), d.value.$el.focus();
|
|
1871
|
-
}
|
|
1872
|
-
function m() {
|
|
1873
|
-
r.value && h();
|
|
1874
|
-
}
|
|
1875
|
-
function b() {
|
|
1876
|
-
r.value = !0;
|
|
2374
|
+
const t = e, n = a, l = y(!1), r = y(null), s = v(() => Me(async () => await (t.multiselect ? Promise.resolve().then(() => Qa) : Promise.resolve().then(() => Oa)))), [o, i] = Y(2);
|
|
2375
|
+
z(l, (x) => {
|
|
2376
|
+
x && r.value.$el.blur();
|
|
2377
|
+
});
|
|
2378
|
+
function u() {
|
|
2379
|
+
l.value = !1, n("close"), r.value.$el.focus();
|
|
1877
2380
|
}
|
|
1878
|
-
function
|
|
1879
|
-
|
|
2381
|
+
function c() {
|
|
2382
|
+
l.value && u();
|
|
1880
2383
|
}
|
|
1881
|
-
function
|
|
1882
|
-
|
|
2384
|
+
function f() {
|
|
2385
|
+
l.value = !0;
|
|
1883
2386
|
}
|
|
1884
|
-
function
|
|
1885
|
-
|
|
1886
|
-
const v = document.querySelector("body"), k = document.createElement("div");
|
|
1887
|
-
k.id = u.value, k.style.position = "absolute", v.insertAdjacentElement("afterbegin", k);
|
|
1888
|
-
}
|
|
2387
|
+
function g(x) {
|
|
2388
|
+
n("update:selectedOptions", x);
|
|
1889
2389
|
}
|
|
1890
|
-
function
|
|
1891
|
-
t.
|
|
2390
|
+
function m(x) {
|
|
2391
|
+
t.multiselect || (n("update:selectedOption", x), u());
|
|
1892
2392
|
}
|
|
1893
|
-
return (
|
|
2393
|
+
return (x, k) => (d(), h("div", {
|
|
1894
2394
|
class: "bs-dropdown-with-toggle",
|
|
1895
|
-
id:
|
|
2395
|
+
id: x.$attrs.id
|
|
1896
2396
|
}, [
|
|
1897
|
-
|
|
2397
|
+
D(Ja, {
|
|
1898
2398
|
ref_key: "toggleRef",
|
|
1899
|
-
ref:
|
|
1900
|
-
"aria-controls":
|
|
2399
|
+
ref: r,
|
|
2400
|
+
"aria-controls": p(i),
|
|
1901
2401
|
"aria-expanded": e.open,
|
|
1902
2402
|
disabled: e.disabled,
|
|
1903
|
-
id:
|
|
2403
|
+
id: p(o),
|
|
1904
2404
|
open: e.open,
|
|
1905
|
-
"options-id":
|
|
2405
|
+
"options-id": p(i),
|
|
1906
2406
|
size: e.toggleSize,
|
|
1907
|
-
onClick: k[0] || (k[0] = (
|
|
2407
|
+
onClick: k[0] || (k[0] = (w) => x.$emit("toggled"))
|
|
1908
2408
|
}, {
|
|
1909
|
-
label:
|
|
1910
|
-
|
|
1911
|
-
|
|
2409
|
+
label: O(() => [
|
|
2410
|
+
E(x.$slots, "toggle-label", {}, () => [
|
|
2411
|
+
U(T(e.toggleLabel), 1)
|
|
1912
2412
|
])
|
|
1913
2413
|
]),
|
|
1914
2414
|
_: 3
|
|
1915
2415
|
}, 8, ["aria-controls", "aria-expanded", "disabled", "id", "open", "options-id", "size"]),
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
"
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
}, 8, ["label", "model-value", "options", "options-id", "selected-options", "shown"])
|
|
1954
|
-
]),
|
|
1955
|
-
_: 1
|
|
1956
|
-
}, 8, ["shown", "anchor-id", "container-id", "helper-text", "helper-description", "position", "use-mobile-style", "width"])
|
|
1957
|
-
], 8, ["disabled", "to"])) : I("", !0)
|
|
1958
|
-
], 8, La));
|
|
1959
|
-
}
|
|
1960
|
-
}, Va = {
|
|
1961
|
-
class: "bs-field-details",
|
|
1962
|
-
"data-component": "bs-field-details"
|
|
1963
|
-
}, Ea = ["id", "data-error"], Pa = ["data-error"], Se = {
|
|
1964
|
-
__name: "BsFieldDetails",
|
|
1965
|
-
props: {
|
|
1966
|
-
/** The number of characters that have been entered by the user. */
|
|
1967
|
-
charCount: Number,
|
|
1968
|
-
/** Pass value to show character count and set the maximum number of characters that are allowed to be submitted by the user. */
|
|
1969
|
-
charMax: Number,
|
|
1970
|
-
/** Applies error styles to the helper text. */
|
|
1971
|
-
error: {
|
|
1972
|
-
type: Boolean,
|
|
1973
|
-
default: !1
|
|
1974
|
-
},
|
|
1975
|
-
/** Pass error text. Will be shown if `error` is `true`. */
|
|
1976
|
-
errorMsg: String,
|
|
1977
|
-
/** Pass single helper text. */
|
|
1978
|
-
hint: String,
|
|
1979
|
-
/** Adds an id to associate a hint to an input. */
|
|
1980
|
-
hintId: String
|
|
1981
|
-
},
|
|
1982
|
-
setup(e) {
|
|
1983
|
-
const a = e, t = g(() => a.error && a.errorMsg || a.hint);
|
|
1984
|
-
return (n, l) => (s(), p("div", Va, [
|
|
1985
|
-
t.value ? (s(), p("span", {
|
|
1986
|
-
key: 0,
|
|
1987
|
-
id: e.hintId,
|
|
1988
|
-
class: "bs-hint",
|
|
1989
|
-
"data-error": e.error
|
|
1990
|
-
}, T(t.value), 9, Ea)) : I("", !0),
|
|
1991
|
-
e.charMax ? (s(), p("span", {
|
|
1992
|
-
key: 1,
|
|
1993
|
-
"aria-description": "character count over character limit for the preceding text field",
|
|
1994
|
-
class: "bs-character-count",
|
|
1995
|
-
"data-error": a.charCount > a.charMax
|
|
1996
|
-
}, T(a.charCount || "0") + " / " + T(a.charMax), 9, Pa)) : I("", !0)
|
|
1997
|
-
]));
|
|
2416
|
+
D(nt, {
|
|
2417
|
+
shown: e.open,
|
|
2418
|
+
"anchor-id": p(o),
|
|
2419
|
+
breakout: e.breakout,
|
|
2420
|
+
"helper-text": e.helperText,
|
|
2421
|
+
"helper-description": e.helperDescription,
|
|
2422
|
+
position: e.dropdownPosition,
|
|
2423
|
+
preloaded: "",
|
|
2424
|
+
"use-mobile-style": e.useMobileStyle,
|
|
2425
|
+
width: e.dropdownWidth,
|
|
2426
|
+
onClose: c,
|
|
2427
|
+
onEnter: f
|
|
2428
|
+
}, {
|
|
2429
|
+
default: O(() => [
|
|
2430
|
+
D(p(s), {
|
|
2431
|
+
label: e.dropdownLabel,
|
|
2432
|
+
"model-value": e.selectedOption,
|
|
2433
|
+
options: e.options,
|
|
2434
|
+
"options-id": p(i),
|
|
2435
|
+
"selected-options": e.selectedOptions,
|
|
2436
|
+
shown: e.open,
|
|
2437
|
+
"onUpdate:modelValue": m,
|
|
2438
|
+
"onUpdate:selectedOptions": g,
|
|
2439
|
+
onClose: k[1] || (k[1] = (w) => e.multiselect ? void 0 : c())
|
|
2440
|
+
}, {
|
|
2441
|
+
default: O(() => [
|
|
2442
|
+
e.multiselect ? $("", !0) : (d(), V(me, {
|
|
2443
|
+
key: 0,
|
|
2444
|
+
options: e.options
|
|
2445
|
+
}, null, 8, ["options"]))
|
|
2446
|
+
]),
|
|
2447
|
+
_: 1
|
|
2448
|
+
}, 8, ["label", "model-value", "options", "options-id", "selected-options", "shown"])
|
|
2449
|
+
]),
|
|
2450
|
+
_: 1
|
|
2451
|
+
}, 8, ["shown", "anchor-id", "breakout", "helper-text", "helper-description", "position", "use-mobile-style", "width"])
|
|
2452
|
+
], 8, _a));
|
|
1998
2453
|
}
|
|
1999
|
-
},
|
|
2454
|
+
}, en = ["view-box"], tn = ["id"], an = ["offset", "stop-color"], Dl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2000
2455
|
__name: "BsIconGradientWrapper",
|
|
2001
2456
|
setup(e) {
|
|
2002
|
-
const a =
|
|
2457
|
+
const a = y(null), t = y(null), n = [
|
|
2003
2458
|
{ offset: 0.1326, color: "#EE282A" },
|
|
2004
2459
|
{ offset: 0.5466, color: "#1C0087" },
|
|
2005
2460
|
{ offset: 0.9715, color: "#0086EA" }
|
|
2006
2461
|
], [l] = Y();
|
|
2007
|
-
return
|
|
2462
|
+
return W(() => {
|
|
2008
2463
|
t.value = a.value.querySelector("svg").getAttribute("viewBox") || "0 0 0 0";
|
|
2009
|
-
}), (r,
|
|
2010
|
-
B("span",
|
|
2464
|
+
}), (r, s) => (d(), h(j, null, [
|
|
2465
|
+
B("span", P({
|
|
2011
2466
|
ref_key: "svgWrapperRef",
|
|
2012
2467
|
ref: a,
|
|
2013
2468
|
class: "bs-icon-gradient-wrapper",
|
|
2014
|
-
style: `fill: url(#${
|
|
2469
|
+
style: `fill: url(#${p(l)});`
|
|
2015
2470
|
}, r.$attrs), [
|
|
2016
|
-
|
|
2471
|
+
E(r.$slots, "default")
|
|
2017
2472
|
], 16),
|
|
2018
|
-
(
|
|
2473
|
+
(d(), h("svg", {
|
|
2019
2474
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2020
2475
|
"view-box": t.value,
|
|
2021
2476
|
width: "0",
|
|
2022
2477
|
height: "0"
|
|
2023
2478
|
}, [
|
|
2024
2479
|
B("linearGradient", {
|
|
2025
|
-
id:
|
|
2480
|
+
id: p(l),
|
|
2026
2481
|
x1: "0",
|
|
2027
2482
|
y1: "0",
|
|
2028
2483
|
x2: "100%",
|
|
2029
2484
|
y2: "100%",
|
|
2030
2485
|
"gradient-units": "userSpaceOnUse"
|
|
2031
2486
|
}, [
|
|
2032
|
-
(
|
|
2033
|
-
key:
|
|
2034
|
-
offset:
|
|
2035
|
-
"stop-color":
|
|
2036
|
-
}, null, 8,
|
|
2037
|
-
], 8,
|
|
2038
|
-
], 8,
|
|
2487
|
+
(d(), h(j, null, Z(n, (o) => B("stop", {
|
|
2488
|
+
key: o.offset,
|
|
2489
|
+
offset: o.offset,
|
|
2490
|
+
"stop-color": o.color
|
|
2491
|
+
}, null, 8, an)), 64))
|
|
2492
|
+
], 8, tn)
|
|
2493
|
+
], 8, en))
|
|
2039
2494
|
], 64));
|
|
2040
2495
|
}
|
|
2041
|
-
}),
|
|
2042
|
-
__name: "BsInput",
|
|
2043
|
-
props: {
|
|
2044
|
-
error: {
|
|
2045
|
-
type: Boolean,
|
|
2046
|
-
default: !1
|
|
2047
|
-
},
|
|
2048
|
-
hintId: String,
|
|
2049
|
-
/** @Deprecated - Just set `id` since it will fall-through to the inner input element. */
|
|
2050
|
-
inputId: String,
|
|
2051
|
-
modelValue: [String, Number],
|
|
2052
|
-
value: [String, Number]
|
|
2053
|
-
},
|
|
2054
|
-
emits: ["update:modelValue"],
|
|
2055
|
-
setup(e, { emit: a }) {
|
|
2056
|
-
const t = e, n = a, l = G(), r = g(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
2057
|
-
function d(i) {
|
|
2058
|
-
const o = l.type === "number" ? parseInt(i.target.value) : i.target.value;
|
|
2059
|
-
n("update:modelValue", o);
|
|
2060
|
-
}
|
|
2061
|
-
return (i, o) => (s(), p("input", R({
|
|
2062
|
-
class: "bs-input",
|
|
2063
|
-
"data-component": "bs-input",
|
|
2064
|
-
"data-error": e.error,
|
|
2065
|
-
id: i.$attrs.id || e.inputId,
|
|
2066
|
-
value: e.value || e.modelValue,
|
|
2067
|
-
onInput: d
|
|
2068
|
-
}, r.value), null, 16, qa));
|
|
2069
|
-
}
|
|
2070
|
-
}, za = ["data-disabled", "data-error", "data-variant", "data-multifocus"], Je = {
|
|
2071
|
-
__name: "BsInputAddon",
|
|
2072
|
-
props: {
|
|
2073
|
-
disabled: { type: Boolean, default: !1 },
|
|
2074
|
-
error: { type: Boolean, default: !1 },
|
|
2075
|
-
multifocus: { type: Boolean, default: !1 },
|
|
2076
|
-
variant: { type: String, validator: (e) => e === "inner-bordered" }
|
|
2077
|
-
},
|
|
2078
|
-
setup(e) {
|
|
2079
|
-
return (a, t) => (s(), p("div", {
|
|
2080
|
-
class: "bs-input-addon",
|
|
2081
|
-
"data-component": "bs-input-addon",
|
|
2082
|
-
"data-disabled": e.disabled,
|
|
2083
|
-
"data-error": e.error,
|
|
2084
|
-
"data-variant": e.variant,
|
|
2085
|
-
"data-multifocus": e.multifocus
|
|
2086
|
-
}, [
|
|
2087
|
-
L(a.$slots, "default")
|
|
2088
|
-
], 8, za));
|
|
2089
|
-
}
|
|
2090
|
-
}, hl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2496
|
+
}), Ol = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2091
2497
|
__name: "BsInputField",
|
|
2092
2498
|
props: {
|
|
2093
2499
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -2134,7 +2540,7 @@ const Xt = {
|
|
|
2134
2540
|
},
|
|
2135
2541
|
emits: ["update:modelValue"],
|
|
2136
2542
|
setup(e, { emit: a }) {
|
|
2137
|
-
const t = e, n = G(), [l, r] = Y(2), { toChild:
|
|
2543
|
+
const t = e, n = G(), [l, r] = Y(2), { toChild: s, toRoot: o } = ie(t, n, [
|
|
2138
2544
|
"aria-label",
|
|
2139
2545
|
"autocomplete",
|
|
2140
2546
|
"max",
|
|
@@ -2142,46 +2548,46 @@ const Xt = {
|
|
|
2142
2548
|
"min",
|
|
2143
2549
|
"minlength",
|
|
2144
2550
|
"name"
|
|
2145
|
-
]),
|
|
2146
|
-
var
|
|
2147
|
-
return ((
|
|
2551
|
+
]), i = v(() => {
|
|
2552
|
+
var f, g;
|
|
2553
|
+
return ((g = (f = t.hints) == null ? void 0 : f.join) == null ? void 0 : g.call(f, `
|
|
2148
2554
|
`)) || t.hints;
|
|
2149
|
-
}), u =
|
|
2150
|
-
return (
|
|
2151
|
-
e.label ||
|
|
2555
|
+
}), u = v(() => t.error && t.errorMsg || t.hint || i.value || void 0), c = v(() => t.inputId || l.value);
|
|
2556
|
+
return (f, g) => (d(), h("div", P({ "data-component": "bs-input-field" }, p(o)), [
|
|
2557
|
+
e.label || f.$slots.label ? (d(), V(ne, {
|
|
2152
2558
|
key: 0,
|
|
2153
2559
|
for: c.value,
|
|
2154
2560
|
disabled: e.disabled,
|
|
2155
2561
|
required: e.required
|
|
2156
2562
|
}, {
|
|
2157
|
-
default:
|
|
2158
|
-
|
|
2159
|
-
|
|
2563
|
+
default: O(() => [
|
|
2564
|
+
E(f.$slots, "label", {}, () => [
|
|
2565
|
+
U(T(e.label), 1)
|
|
2160
2566
|
])
|
|
2161
2567
|
]),
|
|
2162
2568
|
_: 3
|
|
2163
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
2164
|
-
|
|
2569
|
+
}, 8, ["for", "disabled", "required"])) : $("", !0),
|
|
2570
|
+
D(fe, P({
|
|
2165
2571
|
disabled: e.disabled,
|
|
2166
2572
|
error: e.error,
|
|
2167
|
-
"hint-id":
|
|
2573
|
+
"hint-id": p(r),
|
|
2168
2574
|
id: c.value,
|
|
2169
2575
|
placeholder: e.placeholder,
|
|
2170
2576
|
required: e.required,
|
|
2171
2577
|
type: e.type,
|
|
2172
2578
|
value: e.value || e.modelValue,
|
|
2173
|
-
"onUpdate:modelValue":
|
|
2174
|
-
},
|
|
2175
|
-
u.value ? (
|
|
2579
|
+
"onUpdate:modelValue": g[0] || (g[0] = (m) => f.$emit("update:modelValue", m))
|
|
2580
|
+
}, p(s)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
|
|
2581
|
+
u.value ? (d(), V(ce, {
|
|
2176
2582
|
key: 1,
|
|
2177
2583
|
error: e.error,
|
|
2178
2584
|
"error-msg": e.errorMsg,
|
|
2179
|
-
hint: e.hint ||
|
|
2180
|
-
"hint-id":
|
|
2181
|
-
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) :
|
|
2585
|
+
hint: e.hint || i.value,
|
|
2586
|
+
"hint-id": p(r)
|
|
2587
|
+
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : $("", !0)
|
|
2182
2588
|
], 16));
|
|
2183
2589
|
}
|
|
2184
|
-
}),
|
|
2590
|
+
}), Ze = {
|
|
2185
2591
|
A: "🇦",
|
|
2186
2592
|
B: "🇧",
|
|
2187
2593
|
C: "🇨",
|
|
@@ -2208,7 +2614,7 @@ const Xt = {
|
|
|
2208
2614
|
X: "🇽",
|
|
2209
2615
|
Y: "🇾",
|
|
2210
2616
|
Z: "🇿"
|
|
2211
|
-
},
|
|
2617
|
+
}, Ee = {
|
|
2212
2618
|
data: {
|
|
2213
2619
|
allCountries: null,
|
|
2214
2620
|
byCountryCode: null,
|
|
@@ -2234,8 +2640,8 @@ const Xt = {
|
|
|
2234
2640
|
* @returns {Country[]} an array of country objects
|
|
2235
2641
|
*/
|
|
2236
2642
|
initSourceData() {
|
|
2237
|
-
return this.data.allCountries || (this.data.allCountries =
|
|
2238
|
-
const a =
|
|
2643
|
+
return this.data.allCountries || (this.data.allCountries = At().map((e) => {
|
|
2644
|
+
const a = Lt(e), t = Ze[a[0]] + Ze[a[1]] || "";
|
|
2239
2645
|
return {
|
|
2240
2646
|
label: `+${e}`,
|
|
2241
2647
|
flag: t,
|
|
@@ -2249,13 +2655,13 @@ const Xt = {
|
|
|
2249
2655
|
this.data[e][t[a]] = t;
|
|
2250
2656
|
}));
|
|
2251
2657
|
}
|
|
2252
|
-
},
|
|
2658
|
+
}, nn = {
|
|
2253
2659
|
class: "bs-input-phone",
|
|
2254
2660
|
"data-component": "bs-input-phone"
|
|
2255
|
-
},
|
|
2661
|
+
}, ln = ["id", "aria-controls", "aria-expanded", "aria-label", "disabled"], on = {
|
|
2256
2662
|
"aria-hidden": "true",
|
|
2257
2663
|
style: { width: "1.25rem" }
|
|
2258
|
-
},
|
|
2664
|
+
}, rn = { "aria-hidden": "true" }, ql = {
|
|
2259
2665
|
__name: "BsInputPhone",
|
|
2260
2666
|
props: {
|
|
2261
2667
|
deferValidation: {
|
|
@@ -2317,148 +2723,148 @@ const Xt = {
|
|
|
2317
2723
|
"Escape",
|
|
2318
2724
|
"Home",
|
|
2319
2725
|
"Tab"
|
|
2320
|
-
],
|
|
2726
|
+
], s = y(null), o = y(1), i = y([]), u = y(null), [
|
|
2321
2727
|
c,
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
] = Y(4), x =
|
|
2728
|
+
f,
|
|
2729
|
+
g,
|
|
2730
|
+
m
|
|
2731
|
+
] = Y(4), x = y(!1), k = y(""), w = y(""), I = y(!1), b = y(!1);
|
|
2326
2732
|
a({
|
|
2327
|
-
validationErr:
|
|
2328
|
-
validationErrMsg:
|
|
2733
|
+
validationErr: I,
|
|
2734
|
+
validationErrMsg: w
|
|
2329
2735
|
});
|
|
2330
|
-
const
|
|
2331
|
-
z(
|
|
2332
|
-
l("update:modelValue",
|
|
2333
|
-
}), z(() => n.modelValue,
|
|
2334
|
-
function
|
|
2335
|
-
|
|
2736
|
+
const C = v(() => k.value ? `+${o.value}${k.value}` : ""), q = v(() => `Country code: ${o.value}. Click to change.`), A = v(() => n.errorMsg || w.value), M = v(() => n.error || I.value), Q = v(() => n.hint || M.value && A.value);
|
|
2737
|
+
z(C, (R) => {
|
|
2738
|
+
l("update:modelValue", R);
|
|
2739
|
+
}), z(() => n.modelValue, X), Ae(), W(() => x.value = !0);
|
|
2740
|
+
function X(R, H) {
|
|
2741
|
+
R === "" && R !== H && (k.value = "");
|
|
2336
2742
|
}
|
|
2337
|
-
function
|
|
2338
|
-
var
|
|
2339
|
-
|
|
2743
|
+
function _() {
|
|
2744
|
+
var R;
|
|
2745
|
+
b.value && (b.value = !1, (R = s.value) == null || R.focus());
|
|
2340
2746
|
}
|
|
2341
|
-
function
|
|
2747
|
+
function de(R) {
|
|
2342
2748
|
var H;
|
|
2343
|
-
|
|
2749
|
+
o.value = R, b.value = !1, (H = s.value) == null || H.focus(), pe(R);
|
|
2344
2750
|
}
|
|
2345
|
-
function
|
|
2346
|
-
n.deferValidation &&
|
|
2751
|
+
function Ce() {
|
|
2752
|
+
n.deferValidation && he(C.value), l("input-blur");
|
|
2347
2753
|
}
|
|
2348
|
-
function
|
|
2349
|
-
|
|
2754
|
+
function xe(R) {
|
|
2755
|
+
k.value = R.target.value, n.deferValidation || he(C.value);
|
|
2350
2756
|
}
|
|
2351
|
-
function
|
|
2352
|
-
!
|
|
2757
|
+
function Te(R) {
|
|
2758
|
+
!R.key.match(/[0-9]/) && !r.includes(R.key) && R.preventDefault();
|
|
2353
2759
|
}
|
|
2354
|
-
function
|
|
2355
|
-
|
|
2760
|
+
function Ae() {
|
|
2761
|
+
Ee.initSourceData(), Le(), pe(o.value);
|
|
2356
2762
|
}
|
|
2357
|
-
function
|
|
2358
|
-
let
|
|
2359
|
-
|
|
2763
|
+
function Le() {
|
|
2764
|
+
let R = Ge(n.modelValue);
|
|
2765
|
+
R.valid ? (o.value = R.countryCode, k.value = R.number.significant) : k.value = n.modelValue, i.value = Ee.data.allCountries.map((H) => ({
|
|
2360
2766
|
...H,
|
|
2361
|
-
isSelected:
|
|
2767
|
+
isSelected: o.value === H
|
|
2362
2768
|
}));
|
|
2363
2769
|
}
|
|
2364
|
-
function
|
|
2365
|
-
u.value =
|
|
2770
|
+
function pe(R) {
|
|
2771
|
+
u.value = Ee.getCountryByCountryCode(R);
|
|
2366
2772
|
}
|
|
2367
|
-
function
|
|
2368
|
-
|
|
2773
|
+
function he(R) {
|
|
2774
|
+
I.value = R ? !Ge(R).valid : !1, w.value = I.value ? "Invalid phone number" : "";
|
|
2369
2775
|
}
|
|
2370
|
-
return (
|
|
2371
|
-
|
|
2372
|
-
for: e.inputId ||
|
|
2776
|
+
return (R, H) => (d(), h("div", nn, [
|
|
2777
|
+
D(ne, {
|
|
2778
|
+
for: e.inputId || p(m),
|
|
2373
2779
|
required: e.required,
|
|
2374
|
-
class:
|
|
2780
|
+
class: ae({ "visually-hidden": e.hideLabel })
|
|
2375
2781
|
}, {
|
|
2376
|
-
default:
|
|
2377
|
-
|
|
2782
|
+
default: O(() => [
|
|
2783
|
+
U(T(e.label), 1)
|
|
2378
2784
|
]),
|
|
2379
2785
|
_: 1
|
|
2380
2786
|
}, 8, ["for", "required", "class"]),
|
|
2381
|
-
|
|
2787
|
+
D(ke, {
|
|
2382
2788
|
disabled: e.disabled,
|
|
2383
|
-
error:
|
|
2789
|
+
error: M.value,
|
|
2384
2790
|
multifocus: !0,
|
|
2385
2791
|
variant: "inner-bordered"
|
|
2386
2792
|
}, {
|
|
2387
|
-
default:
|
|
2793
|
+
default: O(() => {
|
|
2388
2794
|
var K;
|
|
2389
2795
|
return [
|
|
2390
2796
|
B("button", {
|
|
2391
|
-
id:
|
|
2797
|
+
id: p(c),
|
|
2392
2798
|
ref_key: "countryCodesToggle",
|
|
2393
|
-
ref:
|
|
2394
|
-
"aria-controls": f
|
|
2395
|
-
"aria-expanded":
|
|
2799
|
+
ref: s,
|
|
2800
|
+
"aria-controls": p(f),
|
|
2801
|
+
"aria-expanded": b.value,
|
|
2396
2802
|
"aria-haspopup": "listbox",
|
|
2397
|
-
"aria-label":
|
|
2803
|
+
"aria-label": q.value,
|
|
2398
2804
|
disabled: e.disabled,
|
|
2399
2805
|
type: "button",
|
|
2400
|
-
onClick: H[0] || (H[0] = (
|
|
2806
|
+
onClick: H[0] || (H[0] = (Ne) => b.value = !b.value)
|
|
2401
2807
|
}, [
|
|
2402
2808
|
B("span", null, T((K = u.value) == null ? void 0 : K.flag), 1),
|
|
2403
|
-
B("span", null, "+" + T(
|
|
2404
|
-
|
|
2405
|
-
], 8,
|
|
2406
|
-
|
|
2407
|
-
"input-id": e.inputId ||
|
|
2809
|
+
B("span", null, "+" + T(o.value), 1),
|
|
2810
|
+
D(p(pt), { size: "sm" })
|
|
2811
|
+
], 8, ln),
|
|
2812
|
+
D(fe, {
|
|
2813
|
+
"input-id": e.inputId || p(m),
|
|
2408
2814
|
disabled: e.disabled,
|
|
2409
|
-
"hint-id":
|
|
2815
|
+
"hint-id": p(g),
|
|
2410
2816
|
placeholder: e.placeholder,
|
|
2411
|
-
value:
|
|
2817
|
+
value: k.value,
|
|
2412
2818
|
"data-autowidth": "",
|
|
2413
2819
|
type: "tel",
|
|
2414
|
-
onInput:
|
|
2415
|
-
onFocusout:
|
|
2416
|
-
onKeydown:
|
|
2820
|
+
onInput: xe,
|
|
2821
|
+
onFocusout: Ce,
|
|
2822
|
+
onKeydown: Te
|
|
2417
2823
|
}, null, 8, ["input-id", "disabled", "hint-id", "placeholder", "value"])
|
|
2418
2824
|
];
|
|
2419
2825
|
}),
|
|
2420
2826
|
_: 1
|
|
2421
2827
|
}, 8, ["disabled", "error"]),
|
|
2422
|
-
|
|
2423
|
-
error:
|
|
2424
|
-
"error-msg":
|
|
2828
|
+
ge(D(ce, {
|
|
2829
|
+
error: M.value,
|
|
2830
|
+
"error-msg": A.value,
|
|
2425
2831
|
hint: e.hint,
|
|
2426
|
-
"hint-id":
|
|
2832
|
+
"hint-id": p(g)
|
|
2427
2833
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
2428
|
-
[
|
|
2834
|
+
[ye, Q.value]
|
|
2429
2835
|
]),
|
|
2430
|
-
x.value ? (
|
|
2836
|
+
x.value ? (d(), V(Re, {
|
|
2431
2837
|
key: 0,
|
|
2432
|
-
"anchor-id":
|
|
2838
|
+
"anchor-id": p(c),
|
|
2433
2839
|
"helper-text": "Country Code",
|
|
2434
2840
|
label: "Country Code",
|
|
2435
|
-
"model-value":
|
|
2436
|
-
"options-id": f
|
|
2841
|
+
"model-value": o.value,
|
|
2842
|
+
"options-id": p(f),
|
|
2437
2843
|
preloaded: "",
|
|
2438
|
-
shown:
|
|
2844
|
+
shown: b.value,
|
|
2439
2845
|
width: "content",
|
|
2440
|
-
onClose:
|
|
2441
|
-
"onUpdate:modelValue":
|
|
2846
|
+
onClose: _,
|
|
2847
|
+
"onUpdate:modelValue": de
|
|
2442
2848
|
}, {
|
|
2443
|
-
default:
|
|
2444
|
-
(
|
|
2849
|
+
default: O(() => [
|
|
2850
|
+
(d(!0), h(j, null, Z(i.value, (K) => (d(), V(ze, {
|
|
2445
2851
|
"aria-label": K.value,
|
|
2446
2852
|
key: K.value,
|
|
2447
2853
|
value: `${K.value}`,
|
|
2448
2854
|
variant: "2-col"
|
|
2449
2855
|
}, {
|
|
2450
|
-
default:
|
|
2451
|
-
B("span",
|
|
2452
|
-
B("span",
|
|
2856
|
+
default: O(() => [
|
|
2857
|
+
B("span", on, T(K == null ? void 0 : K.flag), 1),
|
|
2858
|
+
B("span", rn, T(K.label), 1)
|
|
2453
2859
|
]),
|
|
2454
2860
|
_: 2
|
|
2455
2861
|
}, 1032, ["aria-label", "value"]))), 128))
|
|
2456
2862
|
]),
|
|
2457
2863
|
_: 1
|
|
2458
|
-
}, 8, ["anchor-id", "model-value", "options-id", "shown"])) :
|
|
2864
|
+
}, 8, ["anchor-id", "model-value", "options-id", "shown"])) : $("", !0)
|
|
2459
2865
|
]));
|
|
2460
2866
|
}
|
|
2461
|
-
},
|
|
2867
|
+
}, sn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2462
2868
|
__name: "BsInputSearch",
|
|
2463
2869
|
props: {
|
|
2464
2870
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -2509,37 +2915,37 @@ const Xt = {
|
|
|
2509
2915
|
"maxlength",
|
|
2510
2916
|
"minlength",
|
|
2511
2917
|
"name"
|
|
2512
|
-
]),
|
|
2513
|
-
return (
|
|
2918
|
+
]), s = v(() => !t.disabled && !t.hideClear && t.variant !== "filter");
|
|
2919
|
+
return (o, i) => (d(), V(ke, P({
|
|
2514
2920
|
class: "bs-input-search",
|
|
2515
2921
|
"data-component": "bs-input-search",
|
|
2516
2922
|
"data-variant": e.variant,
|
|
2517
2923
|
disabled: e.disabled
|
|
2518
|
-
},
|
|
2519
|
-
default:
|
|
2520
|
-
e.hideSearchIcon ?
|
|
2521
|
-
|
|
2924
|
+
}, p(r)), {
|
|
2925
|
+
default: O(() => [
|
|
2926
|
+
e.hideSearchIcon ? $("", !0) : (d(), V(p(ht), { key: 0 })),
|
|
2927
|
+
D(fe, P({
|
|
2522
2928
|
"data-autowidth": "",
|
|
2523
2929
|
disabled: e.disabled,
|
|
2524
2930
|
"input-id": e.inputId,
|
|
2525
2931
|
placeholder: e.placeholder,
|
|
2526
2932
|
value: e.value || e.modelValue,
|
|
2527
|
-
"onUpdate:modelValue":
|
|
2528
|
-
},
|
|
2529
|
-
|
|
2933
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => o.$emit("update:modelValue", u))
|
|
2934
|
+
}, p(l)), null, 16, ["disabled", "input-id", "placeholder", "value"]),
|
|
2935
|
+
ge(B("button", {
|
|
2530
2936
|
title: "Clear",
|
|
2531
2937
|
type: "button",
|
|
2532
|
-
onClick:
|
|
2938
|
+
onClick: i[1] || (i[1] = (u) => o.$emit("clear"))
|
|
2533
2939
|
}, [
|
|
2534
|
-
|
|
2940
|
+
D(p(Be), { size: "sm" })
|
|
2535
2941
|
], 512), [
|
|
2536
|
-
[
|
|
2942
|
+
[ye, s.value]
|
|
2537
2943
|
])
|
|
2538
2944
|
]),
|
|
2539
2945
|
_: 1
|
|
2540
2946
|
}, 16, ["data-variant", "disabled"]));
|
|
2541
2947
|
}
|
|
2542
|
-
}),
|
|
2948
|
+
}), Ml = {
|
|
2543
2949
|
__name: "BsInputTypeahead",
|
|
2544
2950
|
props: {
|
|
2545
2951
|
characterThreshold: {
|
|
@@ -2599,58 +3005,58 @@ const Xt = {
|
|
|
2599
3005
|
},
|
|
2600
3006
|
emits: ["update:inputValue", "update:optionsValue"],
|
|
2601
3007
|
setup(e, { emit: a }) {
|
|
2602
|
-
const t = e, n = a, l =
|
|
2603
|
-
let
|
|
3008
|
+
const t = e, n = a, l = y(!1), r = y(!1);
|
|
3009
|
+
let s = [];
|
|
2604
3010
|
z(() => t.inputValue, () => {
|
|
2605
|
-
r.value ? r.value = !1 :
|
|
3011
|
+
r.value ? r.value = !1 : m();
|
|
2606
3012
|
});
|
|
2607
|
-
const
|
|
3013
|
+
const o = v(() => `${t.typeaheadId}-input-addon`), i = v(() => `${t.typeaheadId}-input`), u = v(() => `${t.typeaheadId}-options`), c = v(() => {
|
|
2608
3014
|
if (l.value) {
|
|
2609
|
-
let
|
|
2610
|
-
const
|
|
2611
|
-
return
|
|
3015
|
+
let w = t.options;
|
|
3016
|
+
const I = t.inputValue.toLowerCase(), b = t.filterType === "includes" ? "includes" : "startsWith";
|
|
3017
|
+
return w = f(w, I, b), w = w.slice(0, t.maxOptions), w = g(w, I, b), s = w, w;
|
|
2612
3018
|
} else
|
|
2613
|
-
return
|
|
3019
|
+
return s;
|
|
2614
3020
|
});
|
|
2615
|
-
function
|
|
2616
|
-
return t.internalFiltering ?
|
|
3021
|
+
function f(w, I, b) {
|
|
3022
|
+
return t.internalFiltering ? w.filter((C) => C.label.toLowerCase()[b](I)) : w;
|
|
2617
3023
|
}
|
|
2618
|
-
function
|
|
2619
|
-
return
|
|
2620
|
-
let
|
|
2621
|
-
if (
|
|
2622
|
-
const
|
|
2623
|
-
|
|
3024
|
+
function g(w, I, b) {
|
|
3025
|
+
return w.map((C) => {
|
|
3026
|
+
let q = C.label;
|
|
3027
|
+
if (I !== "") {
|
|
3028
|
+
const A = b === "includes" ? "gi" : "i", M = new RegExp(`(${I})`, A);
|
|
3029
|
+
q = C.label.replace(M, '<span style="color: var(--bs-blue-base)">$1</span>');
|
|
2624
3030
|
}
|
|
2625
|
-
return { ...
|
|
3031
|
+
return { ...C, labelHtml: q };
|
|
2626
3032
|
});
|
|
2627
3033
|
}
|
|
2628
|
-
function
|
|
3034
|
+
function m() {
|
|
2629
3035
|
t.inputValue.length >= t.characterThreshold ? l.value = !0 : l.value = !1;
|
|
2630
3036
|
}
|
|
2631
3037
|
function x() {
|
|
2632
|
-
n("update:inputValue", ""), n("update:optionsValue", ""), document.getElementById(
|
|
3038
|
+
n("update:inputValue", ""), n("update:optionsValue", ""), document.getElementById(i.value).focus();
|
|
2633
3039
|
}
|
|
2634
|
-
function
|
|
3040
|
+
function k(w) {
|
|
2635
3041
|
r.value = !0, l.value = !1;
|
|
2636
|
-
const
|
|
2637
|
-
n("update:inputValue",
|
|
3042
|
+
const I = c.value.find((b) => b.value === w);
|
|
3043
|
+
n("update:inputValue", I.label), n("update:optionsValue", w);
|
|
2638
3044
|
}
|
|
2639
|
-
return (
|
|
2640
|
-
e.label ||
|
|
3045
|
+
return (w, I) => (d(), h(j, null, [
|
|
3046
|
+
e.label || w.$slots.label ? (d(), V(ne, {
|
|
2641
3047
|
key: 0,
|
|
2642
|
-
for:
|
|
3048
|
+
for: i.value,
|
|
2643
3049
|
disabled: e.disabled,
|
|
2644
3050
|
required: e.required
|
|
2645
3051
|
}, {
|
|
2646
|
-
default:
|
|
2647
|
-
|
|
2648
|
-
|
|
3052
|
+
default: O(() => [
|
|
3053
|
+
E(w.$slots, "label", {}, () => [
|
|
3054
|
+
U(T(e.label), 1)
|
|
2649
3055
|
])
|
|
2650
3056
|
]),
|
|
2651
3057
|
_: 3
|
|
2652
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
2653
|
-
|
|
3058
|
+
}, 8, ["for", "disabled", "required"])) : $("", !0),
|
|
3059
|
+
D(sn, P({
|
|
2654
3060
|
"aria-controls": u.value,
|
|
2655
3061
|
"aria-expanded": l.value,
|
|
2656
3062
|
"aria-haspopup": "listbox",
|
|
@@ -2658,17 +3064,17 @@ const Xt = {
|
|
|
2658
3064
|
disabled: e.disabled,
|
|
2659
3065
|
"hide-clear": e.inputValue === "",
|
|
2660
3066
|
"hide-search-icon": e.hideSearchIcon,
|
|
2661
|
-
id:
|
|
2662
|
-
"input-id":
|
|
3067
|
+
id: o.value,
|
|
3068
|
+
"input-id": i.value,
|
|
2663
3069
|
placeholder: e.placeholder,
|
|
2664
3070
|
value: e.inputValue
|
|
2665
|
-
},
|
|
3071
|
+
}, w.$attrs, {
|
|
2666
3072
|
onClear: x,
|
|
2667
|
-
onFocusin:
|
|
2668
|
-
"onUpdate:modelValue":
|
|
3073
|
+
onFocusin: m,
|
|
3074
|
+
"onUpdate:modelValue": I[0] || (I[0] = (b) => n("update:inputValue", b))
|
|
2669
3075
|
}), null, 16, ["aria-controls", "aria-expanded", "disabled", "hide-clear", "hide-search-icon", "id", "input-id", "placeholder", "value"]),
|
|
2670
|
-
|
|
2671
|
-
"anchor-id":
|
|
3076
|
+
D(Re, {
|
|
3077
|
+
"anchor-id": o.value,
|
|
2672
3078
|
"focus-on-show": !1,
|
|
2673
3079
|
"model-value": e.optionsValue,
|
|
2674
3080
|
"options-id": u.value,
|
|
@@ -2677,13 +3083,13 @@ const Xt = {
|
|
|
2677
3083
|
shown: l.value,
|
|
2678
3084
|
"use-mobile-style": !1,
|
|
2679
3085
|
width: "toggle",
|
|
2680
|
-
onClose:
|
|
2681
|
-
"onUpdate:modelValue":
|
|
3086
|
+
onClose: I[1] || (I[1] = (b) => l.value = !1),
|
|
3087
|
+
"onUpdate:modelValue": k
|
|
2682
3088
|
}, {
|
|
2683
|
-
default:
|
|
2684
|
-
|
|
2685
|
-
"no-options":
|
|
2686
|
-
|
|
3089
|
+
default: O(() => [
|
|
3090
|
+
D(me, { options: c.value }, {
|
|
3091
|
+
"no-options": O(() => [
|
|
3092
|
+
U("No results found")
|
|
2687
3093
|
]),
|
|
2688
3094
|
_: 1
|
|
2689
3095
|
}, 8, ["options"])
|
|
@@ -2692,13 +3098,13 @@ const Xt = {
|
|
|
2692
3098
|
}, 8, ["anchor-id", "model-value", "options-id", "shown"])
|
|
2693
3099
|
], 64));
|
|
2694
3100
|
}
|
|
2695
|
-
},
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
],
|
|
3101
|
+
}, dn = ["data-size", "data-variant"], un = /* @__PURE__ */ B("span", null, null, -1), cn = /* @__PURE__ */ B("span", null, null, -1), fn = /* @__PURE__ */ B("span", null, null, -1), pn = /* @__PURE__ */ B("span", null, null, -1), hn = /* @__PURE__ */ B("span", { class: "visually-hidden" }, "Loading", -1), vn = [
|
|
3102
|
+
un,
|
|
3103
|
+
cn,
|
|
3104
|
+
fn,
|
|
3105
|
+
pn,
|
|
3106
|
+
hn
|
|
3107
|
+
], Pl = {
|
|
2702
3108
|
__name: "BsLoader",
|
|
2703
3109
|
props: {
|
|
2704
3110
|
size: {
|
|
@@ -2712,14 +3118,14 @@ const Xt = {
|
|
|
2712
3118
|
}
|
|
2713
3119
|
},
|
|
2714
3120
|
setup(e) {
|
|
2715
|
-
return (a, t) => (
|
|
3121
|
+
return (a, t) => (d(), h("span", {
|
|
2716
3122
|
class: "bs-loader",
|
|
2717
3123
|
"data-size": e.size,
|
|
2718
3124
|
"data-variant": e.variant,
|
|
2719
3125
|
role: "status"
|
|
2720
|
-
},
|
|
3126
|
+
}, vn, 8, dn));
|
|
2721
3127
|
}
|
|
2722
|
-
},
|
|
3128
|
+
}, bn = /* @__PURE__ */ B("div", { class: "bs-overlay" }, null, -1), mn = {
|
|
2723
3129
|
__name: "BsOverlay",
|
|
2724
3130
|
props: {
|
|
2725
3131
|
shown: {
|
|
@@ -2748,25 +3154,27 @@ const Xt = {
|
|
|
2748
3154
|
},
|
|
2749
3155
|
emits: ["after-enter", "after-leave"],
|
|
2750
3156
|
setup(e, { emit: a }) {
|
|
2751
|
-
const t = e, n = a, { transition: l } =
|
|
2752
|
-
return (
|
|
2753
|
-
|
|
3157
|
+
const t = e, n = a, { transition: l } = ue(t);
|
|
3158
|
+
return watch(l, (r) => {
|
|
3159
|
+
r ? document.body.setAttribute("data-scroll", "false") : document.body.removeAttribute("data-scroll");
|
|
3160
|
+
}), (r, s) => (d(), V(p(Ie), {
|
|
3161
|
+
shown: p(l),
|
|
2754
3162
|
preloaded: e.preloaded,
|
|
2755
3163
|
duration: 75,
|
|
2756
3164
|
"enter-attribute": "data-shown",
|
|
2757
|
-
onAfterEnter:
|
|
2758
|
-
onAfterLeave:
|
|
3165
|
+
onAfterEnter: s[0] || (s[0] = (o) => n("after-enter")),
|
|
3166
|
+
onAfterLeave: s[1] || (s[1] = (o) => n("after-leave"))
|
|
2759
3167
|
}, {
|
|
2760
|
-
default:
|
|
2761
|
-
|
|
3168
|
+
default: O(() => [
|
|
3169
|
+
bn
|
|
2762
3170
|
]),
|
|
2763
3171
|
_: 1
|
|
2764
3172
|
}, 8, ["shown", "preloaded"]));
|
|
2765
3173
|
}
|
|
2766
|
-
},
|
|
3174
|
+
}, gn = ["id", "role"], yn = {
|
|
2767
3175
|
key: 0,
|
|
2768
3176
|
class: "modal-title"
|
|
2769
|
-
},
|
|
3177
|
+
}, zl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2770
3178
|
__name: "BsModal",
|
|
2771
3179
|
props: {
|
|
2772
3180
|
modalId: {
|
|
@@ -2811,81 +3219,81 @@ const Xt = {
|
|
|
2811
3219
|
},
|
|
2812
3220
|
emits: ["close", "after-enter", "after-leave"],
|
|
2813
3221
|
setup(e, { emit: a }) {
|
|
2814
|
-
const t = e, n = a, { transition: l } =
|
|
3222
|
+
const t = e, n = a, { transition: l } = ue(t);
|
|
2815
3223
|
let r = !1;
|
|
2816
|
-
const
|
|
2817
|
-
|
|
3224
|
+
const s = y(null), o = (c) => {
|
|
3225
|
+
s.value && c.target.closest(".bs-overlay") && n("close", t.modalId);
|
|
2818
3226
|
};
|
|
2819
|
-
|
|
2820
|
-
document.addEventListener("click",
|
|
2821
|
-
}),
|
|
2822
|
-
document.removeEventListener("click",
|
|
2823
|
-
}),
|
|
3227
|
+
W(() => {
|
|
3228
|
+
document.addEventListener("click", o);
|
|
3229
|
+
}), oe(() => {
|
|
3230
|
+
document.removeEventListener("click", o);
|
|
3231
|
+
}), $e(["Escape"], () => {
|
|
2824
3232
|
r && n("close", t.modalId);
|
|
2825
3233
|
});
|
|
2826
|
-
const
|
|
2827
|
-
return (c,
|
|
2828
|
-
|
|
2829
|
-
shown:
|
|
3234
|
+
const i = () => !t.title && t.closeButton, u = () => t.title && t.closeButton;
|
|
3235
|
+
return (c, f) => (d(), h(j, null, [
|
|
3236
|
+
D(mn, {
|
|
3237
|
+
shown: p(l),
|
|
2830
3238
|
preloaded: e.preloaded,
|
|
2831
3239
|
"enter-controlled": e.enterControlled,
|
|
2832
3240
|
"enter-trigger": e.enterTrigger,
|
|
2833
3241
|
"leave-trigger": e.leaveTrigger
|
|
2834
3242
|
}, null, 8, ["shown", "preloaded", "enter-controlled", "enter-trigger", "leave-trigger"]),
|
|
2835
|
-
|
|
2836
|
-
shown:
|
|
3243
|
+
D(Ie, {
|
|
3244
|
+
shown: p(l),
|
|
2837
3245
|
preloaded: e.preloaded,
|
|
2838
3246
|
duration: 75,
|
|
2839
3247
|
"enter-attribute": "data-shown",
|
|
2840
|
-
onEnter:
|
|
2841
|
-
onAfterEnter:
|
|
2842
|
-
onAfterLeave:
|
|
3248
|
+
onEnter: f[1] || (f[1] = (g) => ct(r) ? r.value = !0 : r = !0),
|
|
3249
|
+
onAfterEnter: f[2] || (f[2] = (g) => n("after-enter")),
|
|
3250
|
+
onAfterLeave: f[3] || (f[3] = (g) => n("after-leave"))
|
|
2843
3251
|
}, {
|
|
2844
|
-
default:
|
|
2845
|
-
B("div",
|
|
3252
|
+
default: O(() => [
|
|
3253
|
+
B("div", P({
|
|
2846
3254
|
id: t.modalId,
|
|
2847
3255
|
class: "bs-modal",
|
|
2848
3256
|
role: e.alert ? "alertdialog" : "dialog",
|
|
2849
3257
|
"aria-modal": "true"
|
|
2850
3258
|
}, c.$attrs, {
|
|
2851
3259
|
ref_key: "modalRef",
|
|
2852
|
-
ref:
|
|
3260
|
+
ref: s
|
|
2853
3261
|
}), [
|
|
2854
|
-
e.title || e.closeButton ? (
|
|
3262
|
+
e.title || e.closeButton ? (d(), h("header", {
|
|
2855
3263
|
key: 0,
|
|
2856
|
-
class:
|
|
2857
|
-
"only-close-button-modal-header":
|
|
3264
|
+
class: ae({
|
|
3265
|
+
"only-close-button-modal-header": i,
|
|
2858
3266
|
"modal-header": u
|
|
2859
3267
|
})
|
|
2860
3268
|
}, [
|
|
2861
|
-
e.title ? (
|
|
2862
|
-
e.closeButton ? (
|
|
3269
|
+
e.title ? (d(), h("h5", yn, T(e.title), 1)) : $("", !0),
|
|
3270
|
+
e.closeButton ? (d(), h("button", {
|
|
2863
3271
|
key: 1,
|
|
2864
3272
|
type: "button",
|
|
2865
3273
|
title: "Close Modal",
|
|
2866
3274
|
"aria-label": "Close Modal",
|
|
2867
|
-
onClick:
|
|
3275
|
+
onClick: f[0] || (f[0] = (g) => n("close", e.modalId))
|
|
2868
3276
|
}, [
|
|
2869
|
-
|
|
2870
|
-
])) :
|
|
2871
|
-
], 2)) :
|
|
2872
|
-
|
|
2873
|
-
], 16,
|
|
3277
|
+
D(p(Be), { class: "close-button" })
|
|
3278
|
+
])) : $("", !0)
|
|
3279
|
+
], 2)) : $("", !0),
|
|
3280
|
+
E(c.$slots, "default")
|
|
3281
|
+
], 16, gn)
|
|
2874
3282
|
]),
|
|
2875
3283
|
_: 3
|
|
2876
3284
|
}, 8, ["shown", "preloaded"])
|
|
2877
3285
|
], 64));
|
|
2878
3286
|
}
|
|
2879
|
-
}),
|
|
3287
|
+
}), Bn = ["data-variant", "data-fixed"], Sn = {
|
|
2880
3288
|
key: 0,
|
|
2881
3289
|
class: "bs-pagination-carets"
|
|
2882
|
-
},
|
|
3290
|
+
}, wn = ["title", "disabled"], $n = { key: 0 }, kn = ["title", "disabled"], In = { key: 0 }, Cn = {
|
|
2883
3291
|
key: 1,
|
|
2884
3292
|
class: "bs-pagination-page-numbers"
|
|
2885
|
-
},
|
|
3293
|
+
}, xn = ["title", "data-selected", "onClick"], Tn = { key: 2 }, An = { key: 3 }, Ln = /* @__PURE__ */ B("span", null, "Results Per Page:", -1), Vn = { class: "bs-pagination-results-numbers" }, En = ["data-selected", "disabled", "onClick"], Dn = {
|
|
2886
3294
|
key: 5,
|
|
2887
3295
|
class: "bs-pagination-carets"
|
|
2888
|
-
},
|
|
3296
|
+
}, On = ["title", "disabled"], qn = { key: 0 }, Mn = ["title", "disabled"], Pn = { key: 0 }, Rl = {
|
|
2889
3297
|
__name: "BsPagination",
|
|
2890
3298
|
props: {
|
|
2891
3299
|
// Used for all
|
|
@@ -2971,25 +3379,25 @@ const Xt = {
|
|
|
2971
3379
|
},
|
|
2972
3380
|
emits: ["selchange", "update:modelValue"],
|
|
2973
3381
|
setup(e, { emit: a }) {
|
|
2974
|
-
const t = e, n = a, l =
|
|
2975
|
-
|
|
2976
|
-
r.value ? l.value = r.value : t.variant === "results" ? l.value =
|
|
3382
|
+
const t = e, n = a, l = y(null);
|
|
3383
|
+
W(() => {
|
|
3384
|
+
r.value ? l.value = r.value : t.variant === "results" ? l.value = k.value[0] : l.value = 1;
|
|
2977
3385
|
});
|
|
2978
|
-
const r =
|
|
2979
|
-
z(() => t.selection, (
|
|
2980
|
-
l.value =
|
|
2981
|
-
}), z(() => t.modelValue, (
|
|
2982
|
-
l.value =
|
|
2983
|
-
}), z(l, (
|
|
2984
|
-
|
|
3386
|
+
const r = v(() => t.modelValue || t.selection);
|
|
3387
|
+
z(() => t.selection, (w) => {
|
|
3388
|
+
l.value = w;
|
|
3389
|
+
}), z(() => t.modelValue, (w) => {
|
|
3390
|
+
l.value = w;
|
|
3391
|
+
}), z(l, (w, I) => {
|
|
3392
|
+
I !== null && (n("selchange", w), n("update:modelValue", w));
|
|
2985
3393
|
});
|
|
2986
|
-
const
|
|
3394
|
+
const s = v(() => {
|
|
2987
3395
|
if (t.variant === "group")
|
|
2988
3396
|
return Math.ceil(t.itemsCount / t.itemsPerGroup);
|
|
2989
3397
|
if (t.variant === "base")
|
|
2990
3398
|
return t.pageCount;
|
|
2991
|
-
}),
|
|
2992
|
-
function
|
|
3399
|
+
}), o = v(() => t.variant === "base" ? t.centerDisplay === "text" ? "group" : void 0 : t.variant);
|
|
3400
|
+
function i() {
|
|
2993
3401
|
l.value = 1;
|
|
2994
3402
|
}
|
|
2995
3403
|
function u() {
|
|
@@ -2998,102 +3406,102 @@ const Xt = {
|
|
|
2998
3406
|
function c() {
|
|
2999
3407
|
l.value = Math.min(
|
|
3000
3408
|
l.value + 1,
|
|
3001
|
-
|
|
3409
|
+
s.value
|
|
3002
3410
|
);
|
|
3003
3411
|
}
|
|
3004
|
-
function
|
|
3005
|
-
l.value =
|
|
3412
|
+
function f() {
|
|
3413
|
+
l.value = s.value;
|
|
3006
3414
|
}
|
|
3007
|
-
const
|
|
3415
|
+
const g = v(() => {
|
|
3008
3416
|
if (t.pageCount <= t.pageRange)
|
|
3009
3417
|
return [...Array(t.pageCount + 1).keys()].slice(1);
|
|
3010
|
-
const
|
|
3011
|
-
let
|
|
3012
|
-
|
|
3013
|
-
for (let
|
|
3014
|
-
|
|
3015
|
-
return
|
|
3016
|
-
}),
|
|
3017
|
-
const
|
|
3018
|
-
return `${t.centerLabel ?? "Results"} ${
|
|
3019
|
-
}),
|
|
3020
|
-
return (
|
|
3418
|
+
const w = [1], I = (t.pageRange - 1) / 2;
|
|
3419
|
+
let b = l.value - I, C = l.value + I;
|
|
3420
|
+
b < 1 && (C += 1 - b, b = 1), C > t.pageCount && (b -= C - t.pageCount, C = t.pageCount), b = Math.max(b, 2), C = Math.min(C, t.pageCount - 1), b > 2 && w.push(t.breakText);
|
|
3421
|
+
for (let q = b; q <= C; q++)
|
|
3422
|
+
w.push(q);
|
|
3423
|
+
return C < t.pageCount - 1 && w.push(t.breakText), w.push(t.pageCount), w;
|
|
3424
|
+
}), m = v(() => `${t.centerLabel ?? "Page"} ${l.value} of ${s.value}`), x = v(() => {
|
|
3425
|
+
const w = (l.value - 1) * t.itemsPerGroup + 1, I = Math.min(w - 1 + t.itemsPerGroup, t.itemsCount);
|
|
3426
|
+
return `${t.centerLabel ?? "Results"} ${w} - ${I} of ${t.itemsCount}`;
|
|
3427
|
+
}), k = v(() => t.resultsIncrements.split(",").map((w) => parseInt(w)));
|
|
3428
|
+
return (w, I) => (d(), h("div", {
|
|
3021
3429
|
class: "bs-pagination",
|
|
3022
|
-
"data-variant":
|
|
3430
|
+
"data-variant": o.value,
|
|
3023
3431
|
"data-fixed": t.fixed
|
|
3024
3432
|
}, [
|
|
3025
|
-
e.variant === "base" || e.variant === "group" ? (
|
|
3026
|
-
e.showFirstLastButtons ? (
|
|
3433
|
+
e.variant === "base" || e.variant === "group" ? (d(), h("div", Sn, [
|
|
3434
|
+
e.showFirstLastButtons ? (d(), h("button", {
|
|
3027
3435
|
key: 0,
|
|
3028
3436
|
type: "button",
|
|
3029
|
-
class:
|
|
3437
|
+
class: ae(e.firstPageText ? "bs-pagination-word-caret" : void 0),
|
|
3030
3438
|
title: e.firstPageText,
|
|
3031
3439
|
disabled: l.value === 1,
|
|
3032
|
-
onClick:
|
|
3440
|
+
onClick: i
|
|
3033
3441
|
}, [
|
|
3034
|
-
|
|
3035
|
-
e.firstPageText ? (
|
|
3036
|
-
], 10,
|
|
3442
|
+
D(p(vt)),
|
|
3443
|
+
e.firstPageText ? (d(), h("span", $n, T(e.firstPageText), 1)) : $("", !0)
|
|
3444
|
+
], 10, wn)) : $("", !0),
|
|
3037
3445
|
B("button", {
|
|
3038
3446
|
type: "button",
|
|
3039
|
-
class:
|
|
3447
|
+
class: ae(e.prevPageText ? "bs-pagination-word-caret" : void 0),
|
|
3040
3448
|
title: e.prevPageText,
|
|
3041
3449
|
disabled: l.value === 1,
|
|
3042
3450
|
onClick: u
|
|
3043
3451
|
}, [
|
|
3044
|
-
|
|
3045
|
-
e.prevPageText ? (
|
|
3046
|
-
], 10,
|
|
3047
|
-
])) :
|
|
3048
|
-
e.variant === "base" && e.centerDisplay === "numbers" ? (
|
|
3049
|
-
(
|
|
3050
|
-
key: `page-${
|
|
3452
|
+
D(p(bt)),
|
|
3453
|
+
e.prevPageText ? (d(), h("span", In, T(e.prevPageText), 1)) : $("", !0)
|
|
3454
|
+
], 10, kn)
|
|
3455
|
+
])) : $("", !0),
|
|
3456
|
+
e.variant === "base" && e.centerDisplay === "numbers" ? (d(), h("div", Cn, [
|
|
3457
|
+
(d(!0), h(j, null, Z(g.value, (b) => (d(), h("button", {
|
|
3458
|
+
key: `page-${b}-button`,
|
|
3051
3459
|
type: "button",
|
|
3052
|
-
title: `Page ${
|
|
3053
|
-
"data-selected":
|
|
3054
|
-
onClick: (
|
|
3055
|
-
}, T(
|
|
3056
|
-
])) :
|
|
3057
|
-
t.variant === "base" && t.centerDisplay === "text" ? (
|
|
3058
|
-
t.variant === "group" ? (
|
|
3059
|
-
t.variant === "results" ? (
|
|
3060
|
-
|
|
3061
|
-
B("div",
|
|
3062
|
-
(
|
|
3460
|
+
title: `Page ${b}`,
|
|
3461
|
+
"data-selected": b === l.value,
|
|
3462
|
+
onClick: (C) => l.value = b
|
|
3463
|
+
}, T(b), 9, xn))), 128))
|
|
3464
|
+
])) : $("", !0),
|
|
3465
|
+
t.variant === "base" && t.centerDisplay === "text" ? (d(), h("span", Tn, T(m.value), 1)) : $("", !0),
|
|
3466
|
+
t.variant === "group" ? (d(), h("span", An, T(x.value), 1)) : $("", !0),
|
|
3467
|
+
t.variant === "results" ? (d(), h(j, { key: 4 }, [
|
|
3468
|
+
Ln,
|
|
3469
|
+
B("div", Vn, [
|
|
3470
|
+
(d(!0), h(j, null, Z(k.value, (b) => (d(), h("button", {
|
|
3063
3471
|
type: "button",
|
|
3064
|
-
key: `results-${
|
|
3065
|
-
"data-selected":
|
|
3066
|
-
disabled: l.value ===
|
|
3067
|
-
onClick: (
|
|
3068
|
-
}, T(
|
|
3472
|
+
key: `results-${b}`,
|
|
3473
|
+
"data-selected": b === l.value,
|
|
3474
|
+
disabled: l.value === b,
|
|
3475
|
+
onClick: (C) => l.value = b
|
|
3476
|
+
}, T(b), 9, En))), 128))
|
|
3069
3477
|
])
|
|
3070
|
-
], 64)) :
|
|
3071
|
-
e.variant === "base" || e.variant === "group" ? (
|
|
3478
|
+
], 64)) : $("", !0),
|
|
3479
|
+
e.variant === "base" || e.variant === "group" ? (d(), h("div", Dn, [
|
|
3072
3480
|
B("button", {
|
|
3073
3481
|
type: "button",
|
|
3074
|
-
class:
|
|
3482
|
+
class: ae(e.nextPageText ? "bs-pagination-word-caret" : void 0),
|
|
3075
3483
|
title: e.nextPageText,
|
|
3076
|
-
disabled: l.value ===
|
|
3484
|
+
disabled: l.value === s.value,
|
|
3077
3485
|
onClick: c
|
|
3078
3486
|
}, [
|
|
3079
|
-
e.nextPageText ? (
|
|
3080
|
-
|
|
3081
|
-
], 10,
|
|
3082
|
-
e.showFirstLastButtons ? (
|
|
3487
|
+
e.nextPageText ? (d(), h("span", qn, T(e.nextPageText), 1)) : $("", !0),
|
|
3488
|
+
D(p(mt))
|
|
3489
|
+
], 10, On),
|
|
3490
|
+
e.showFirstLastButtons ? (d(), h("button", {
|
|
3083
3491
|
key: 0,
|
|
3084
3492
|
type: "button",
|
|
3085
|
-
class:
|
|
3493
|
+
class: ae(e.lastPageText ? "bs-pagination-word-caret" : void 0),
|
|
3086
3494
|
title: e.lastPageText,
|
|
3087
|
-
disabled: l.value ===
|
|
3088
|
-
onClick:
|
|
3495
|
+
disabled: l.value === s.value,
|
|
3496
|
+
onClick: f
|
|
3089
3497
|
}, [
|
|
3090
|
-
e.lastPageText ? (
|
|
3091
|
-
|
|
3092
|
-
], 10,
|
|
3093
|
-
])) :
|
|
3094
|
-
], 8,
|
|
3498
|
+
e.lastPageText ? (d(), h("span", Pn, T(e.lastPageText), 1)) : $("", !0),
|
|
3499
|
+
D(p(gt))
|
|
3500
|
+
], 10, Mn)) : $("", !0)
|
|
3501
|
+
])) : $("", !0)
|
|
3502
|
+
], 8, Bn));
|
|
3095
3503
|
}
|
|
3096
|
-
},
|
|
3504
|
+
}, zn = ["data-truncate"], Nl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3097
3505
|
__name: "BsPill",
|
|
3098
3506
|
props: {
|
|
3099
3507
|
active: { type: Boolean, default: !1 },
|
|
@@ -3117,35 +3525,35 @@ const Xt = {
|
|
|
3117
3525
|
}
|
|
3118
3526
|
},
|
|
3119
3527
|
setup(e) {
|
|
3120
|
-
const a = e, { onLinkClick: t } =
|
|
3121
|
-
return (
|
|
3528
|
+
const a = e, { onLinkClick: t } = we(a), n = G(), { rootTag: l, attrsToBind: r, hrefUrl: s } = Se(a, n, "span");
|
|
3529
|
+
return (o, i) => (d(), V(J(p(l)), P({
|
|
3122
3530
|
class: "bs-pill",
|
|
3123
3531
|
"data-active": e.active,
|
|
3124
3532
|
"data-component": "bs-pill",
|
|
3125
3533
|
"data-status": e.status || void 0,
|
|
3126
3534
|
"data-variant": e.variant || void 0,
|
|
3127
3535
|
disabled: e.disabled,
|
|
3128
|
-
".href":
|
|
3129
|
-
},
|
|
3130
|
-
default:
|
|
3536
|
+
".href": p(s)
|
|
3537
|
+
}, p(r), { onClick: p(t) }), {
|
|
3538
|
+
default: O(() => [
|
|
3131
3539
|
B("span", { "data-truncate": e.truncate }, [
|
|
3132
|
-
|
|
3133
|
-
], 8,
|
|
3540
|
+
E(o.$slots, "default")
|
|
3541
|
+
], 8, zn)
|
|
3134
3542
|
]),
|
|
3135
3543
|
_: 3
|
|
3136
3544
|
}, 48, ["data-active", "data-status", "data-variant", "disabled", ".href", "onClick"]));
|
|
3137
3545
|
}
|
|
3138
|
-
}),
|
|
3546
|
+
}), Rn = { class: "bs-profile-details" }, Nn = {
|
|
3139
3547
|
class: "bs-profile-name",
|
|
3140
3548
|
"data-size": "sm",
|
|
3141
3549
|
"data-weight": "bold"
|
|
3142
|
-
},
|
|
3550
|
+
}, jn = {
|
|
3143
3551
|
key: 1,
|
|
3144
3552
|
"data-weight": "bold"
|
|
3145
|
-
},
|
|
3553
|
+
}, Un = { key: 2 }, Fn = { key: 3 }, Wn = {
|
|
3146
3554
|
key: 4,
|
|
3147
3555
|
"data-icon": "true"
|
|
3148
|
-
},
|
|
3556
|
+
}, Gn = {
|
|
3149
3557
|
__name: "BsProfileDetails",
|
|
3150
3558
|
props: {
|
|
3151
3559
|
profileName: {
|
|
@@ -3162,40 +3570,40 @@ const Xt = {
|
|
|
3162
3570
|
},
|
|
3163
3571
|
emits: ["action-toggled"],
|
|
3164
3572
|
setup(e, { emit: a }) {
|
|
3165
|
-
const t = e, n = a, { icon: l } =
|
|
3166
|
-
function
|
|
3167
|
-
|
|
3573
|
+
const t = e, n = a, { icon: l } = be(t, "actionIcon"), { icon: r } = be(t, "miscMetaIcon");
|
|
3574
|
+
function s(o) {
|
|
3575
|
+
o.target.tagName === "BUTTON" && (o.preventDefault(), o.stopImmediatePropagation(), n("action-toggled"));
|
|
3168
3576
|
}
|
|
3169
|
-
return (
|
|
3170
|
-
e.action ||
|
|
3577
|
+
return (o, i) => (d(), h("div", Rn, [
|
|
3578
|
+
e.action || o.$slots.action ? (d(), h("button", {
|
|
3171
3579
|
key: 0,
|
|
3172
3580
|
"data-icon": "true",
|
|
3173
|
-
onClick:
|
|
3581
|
+
onClick: s
|
|
3174
3582
|
}, [
|
|
3175
|
-
|
|
3176
|
-
e.actionIcon ? (
|
|
3583
|
+
E(o.$slots, "action", {}, () => [
|
|
3584
|
+
e.actionIcon ? (d(), V(J(p(l) ? p(l) : "span"), {
|
|
3177
3585
|
key: 0,
|
|
3178
3586
|
class: "bs-icon"
|
|
3179
|
-
})) :
|
|
3180
|
-
|
|
3587
|
+
})) : $("", !0),
|
|
3588
|
+
U(" " + T(e.action), 1)
|
|
3181
3589
|
])
|
|
3182
|
-
])) :
|
|
3183
|
-
B("span",
|
|
3184
|
-
e.company ? (
|
|
3185
|
-
e.jobTitle ? (
|
|
3186
|
-
e.email ? (
|
|
3187
|
-
e.miscMeta ||
|
|
3188
|
-
|
|
3189
|
-
e.miscMetaIcon ? (
|
|
3590
|
+
])) : $("", !0),
|
|
3591
|
+
B("span", Nn, T(e.profileName), 1),
|
|
3592
|
+
e.company ? (d(), h("span", jn, T(e.company), 1)) : $("", !0),
|
|
3593
|
+
e.jobTitle ? (d(), h("span", Un, T(e.jobTitle), 1)) : $("", !0),
|
|
3594
|
+
e.email ? (d(), h("span", Fn, T(e.email), 1)) : $("", !0),
|
|
3595
|
+
e.miscMeta || o.$slots.misc ? (d(), h("span", Wn, [
|
|
3596
|
+
E(o.$slots, "misc", {}, () => [
|
|
3597
|
+
e.miscMetaIcon ? (d(), V(J(p(r) ? p(r) : "span"), {
|
|
3190
3598
|
key: 0,
|
|
3191
3599
|
class: "bs-icon"
|
|
3192
|
-
})) :
|
|
3193
|
-
|
|
3600
|
+
})) : $("", !0),
|
|
3601
|
+
U(" " + T(e.miscMeta), 1)
|
|
3194
3602
|
])
|
|
3195
|
-
])) :
|
|
3603
|
+
])) : $("", !0)
|
|
3196
3604
|
]));
|
|
3197
3605
|
}
|
|
3198
|
-
},
|
|
3606
|
+
}, jl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3199
3607
|
__name: "BsProfile",
|
|
3200
3608
|
props: {
|
|
3201
3609
|
layout: {
|
|
@@ -3225,20 +3633,20 @@ const Xt = {
|
|
|
3225
3633
|
},
|
|
3226
3634
|
emits: ["action-toggled"],
|
|
3227
3635
|
setup(e, { emit: a }) {
|
|
3228
|
-
const t = e, n = a, l = G(), { onLinkClick: r } =
|
|
3229
|
-
return (u, c) => (
|
|
3636
|
+
const t = e, n = a, l = G(), { onLinkClick: r } = we(t), { rootTag: s, attrsToBind: o, hrefUrl: i } = Se(t, l, "div");
|
|
3637
|
+
return (u, c) => (d(), V(J(p(s)), P({
|
|
3230
3638
|
class: "bs-profile",
|
|
3231
|
-
".href":
|
|
3639
|
+
".href": p(i),
|
|
3232
3640
|
"data-layout": e.layout
|
|
3233
|
-
},
|
|
3234
|
-
default:
|
|
3235
|
-
|
|
3641
|
+
}, p(o), { onClick: p(r) }), {
|
|
3642
|
+
default: O(() => [
|
|
3643
|
+
D(lt, {
|
|
3236
3644
|
src: e.imageSrc,
|
|
3237
3645
|
size: e.imageSize,
|
|
3238
3646
|
initials: e.initials,
|
|
3239
3647
|
"profile-name": e.profileName
|
|
3240
3648
|
}, null, 8, ["src", "size", "initials", "profile-name"]),
|
|
3241
|
-
|
|
3649
|
+
D(Gn, {
|
|
3242
3650
|
"profile-name": e.profileName,
|
|
3243
3651
|
company: e.company,
|
|
3244
3652
|
"job-title": e.jobTitle,
|
|
@@ -3247,13 +3655,13 @@ const Xt = {
|
|
|
3247
3655
|
"action-icon": e.actionIcon,
|
|
3248
3656
|
"misc-meta": e.miscMeta,
|
|
3249
3657
|
"misc-meta-icon": e.miscMetaIcon,
|
|
3250
|
-
onActionToggled: c[0] || (c[0] = (
|
|
3658
|
+
onActionToggled: c[0] || (c[0] = (f) => n("action-toggled"))
|
|
3251
3659
|
}, {
|
|
3252
|
-
action:
|
|
3253
|
-
|
|
3660
|
+
action: O(() => [
|
|
3661
|
+
E(u.$slots, "action")
|
|
3254
3662
|
]),
|
|
3255
|
-
misc:
|
|
3256
|
-
|
|
3663
|
+
misc: O(() => [
|
|
3664
|
+
E(u.$slots, "misc")
|
|
3257
3665
|
]),
|
|
3258
3666
|
_: 3
|
|
3259
3667
|
}, 8, ["profile-name", "company", "job-title", "email", "action", "action-icon", "misc-meta", "misc-meta-icon"])
|
|
@@ -3261,7 +3669,7 @@ const Xt = {
|
|
|
3261
3669
|
_: 3
|
|
3262
3670
|
}, 48, [".href", "data-layout", "onClick"]));
|
|
3263
3671
|
}
|
|
3264
|
-
}),
|
|
3672
|
+
}), Hn = ["data-size"], Kn = ["checked", "disabled", "id", "required", "value", "data-error"], Ul = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3265
3673
|
__name: "BsRadio",
|
|
3266
3674
|
props: {
|
|
3267
3675
|
label: {
|
|
@@ -3305,39 +3713,39 @@ const Xt = {
|
|
|
3305
3713
|
},
|
|
3306
3714
|
emits: ["update:modelValue"],
|
|
3307
3715
|
setup(e, { emit: a }) {
|
|
3308
|
-
const t = e, n = G(), [l] = Y(), { toChild: r, toRoot:
|
|
3309
|
-
return (u, c) => (
|
|
3716
|
+
const t = e, n = G(), [l] = Y(), { toChild: r, toRoot: s } = ie(t, n, ["aria-label", "name"]), o = v(() => t.inputId || l.value), i = v(() => t.checked || t.modelValue && t.modelValue === t.value);
|
|
3717
|
+
return (u, c) => (d(), h("div", P({
|
|
3310
3718
|
class: "bs-boolean",
|
|
3311
3719
|
"data-component": "bs-radio",
|
|
3312
3720
|
"data-size": e.size
|
|
3313
|
-
},
|
|
3314
|
-
B("input",
|
|
3315
|
-
checked:
|
|
3721
|
+
}, p(s)), [
|
|
3722
|
+
B("input", P({
|
|
3723
|
+
checked: i.value,
|
|
3316
3724
|
disabled: e.disabled,
|
|
3317
|
-
id:
|
|
3725
|
+
id: o.value,
|
|
3318
3726
|
required: e.required,
|
|
3319
3727
|
type: "radio",
|
|
3320
3728
|
value: e.value,
|
|
3321
3729
|
"data-error": e.error
|
|
3322
|
-
},
|
|
3323
|
-
onChange: c[0] || (c[0] = (
|
|
3324
|
-
}), null, 16,
|
|
3325
|
-
e.label || u.$slots.label ? (
|
|
3730
|
+
}, p(r), {
|
|
3731
|
+
onChange: c[0] || (c[0] = (f) => u.$emit("update:modelValue", f.target.value))
|
|
3732
|
+
}), null, 16, Kn),
|
|
3733
|
+
e.label || u.$slots.label ? (d(), V(ne, {
|
|
3326
3734
|
key: 0,
|
|
3327
|
-
for:
|
|
3735
|
+
for: o.value,
|
|
3328
3736
|
disabled: e.disabled,
|
|
3329
3737
|
required: e.required
|
|
3330
3738
|
}, {
|
|
3331
|
-
default:
|
|
3332
|
-
|
|
3333
|
-
|
|
3739
|
+
default: O(() => [
|
|
3740
|
+
E(u.$slots, "label", {}, () => [
|
|
3741
|
+
U(T(e.label), 1)
|
|
3334
3742
|
])
|
|
3335
3743
|
]),
|
|
3336
3744
|
_: 3
|
|
3337
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
3338
|
-
], 16,
|
|
3745
|
+
}, 8, ["for", "disabled", "required"])) : $("", !0)
|
|
3746
|
+
], 16, Hn));
|
|
3339
3747
|
}
|
|
3340
|
-
}),
|
|
3748
|
+
}), Yn = ["id", "disabled", "required", "data-error", "value"], Qn = {
|
|
3341
3749
|
__name: "BsSelect",
|
|
3342
3750
|
props: {
|
|
3343
3751
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -3350,8 +3758,8 @@ const Xt = {
|
|
|
3350
3758
|
},
|
|
3351
3759
|
emits: ["update:modelValue"],
|
|
3352
3760
|
setup(e, { emit: a }) {
|
|
3353
|
-
const t = e, n =
|
|
3354
|
-
return (l, r) => (
|
|
3761
|
+
const t = e, n = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
3762
|
+
return (l, r) => (d(), h("select", P({
|
|
3355
3763
|
id: l.$attrs.id || e.inputId,
|
|
3356
3764
|
class: "bs-select",
|
|
3357
3765
|
"data-component": "bs-select",
|
|
@@ -3360,12 +3768,12 @@ const Xt = {
|
|
|
3360
3768
|
"data-error": e.error,
|
|
3361
3769
|
value: e.value || e.modelValue
|
|
3362
3770
|
}, n.value, {
|
|
3363
|
-
onChange: r[0] || (r[0] = (
|
|
3771
|
+
onChange: r[0] || (r[0] = (s) => l.$emit("update:modelValue", s.target.value))
|
|
3364
3772
|
}), [
|
|
3365
|
-
|
|
3366
|
-
], 16,
|
|
3773
|
+
E(l.$slots, "default")
|
|
3774
|
+
], 16, Yn));
|
|
3367
3775
|
}
|
|
3368
|
-
},
|
|
3776
|
+
}, Xn = ["selected", "disabled"], Zn = ["disabled", "selected", "value"], Fl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3369
3777
|
__name: "BsSelectField",
|
|
3370
3778
|
props: {
|
|
3371
3779
|
data: {
|
|
@@ -3409,64 +3817,64 @@ const Xt = {
|
|
|
3409
3817
|
modelValue: [String, Number]
|
|
3410
3818
|
},
|
|
3411
3819
|
setup(e) {
|
|
3412
|
-
const a = e, t = G(), [n, l] = Y(2), { toChild: r, toRoot:
|
|
3820
|
+
const a = e, t = G(), [n, l] = Y(2), { toChild: r, toRoot: s } = ie(a, t, [
|
|
3413
3821
|
"aria-label",
|
|
3414
3822
|
"autofocus",
|
|
3415
3823
|
"name"
|
|
3416
|
-
]),
|
|
3417
|
-
var
|
|
3418
|
-
return ((
|
|
3824
|
+
]), o = v(() => {
|
|
3825
|
+
var f, g;
|
|
3826
|
+
return ((g = (f = a.hints) == null ? void 0 : f.join) == null ? void 0 : g.call(f, `
|
|
3419
3827
|
`)) || a.hints;
|
|
3420
|
-
}),
|
|
3421
|
-
return (
|
|
3422
|
-
e.label ||
|
|
3828
|
+
}), i = v(() => a.error && a.errorMsg || a.hint || o.value || void 0), u = v(() => a.inputId || n.value), c = v(() => a.value || a.modelValue);
|
|
3829
|
+
return (f, g) => (d(), h("div", P({ "data-component": "bs-select-field" }, p(s)), [
|
|
3830
|
+
e.label || f.$slots.label ? (d(), V(ne, {
|
|
3423
3831
|
key: 0,
|
|
3424
3832
|
for: u.value,
|
|
3425
3833
|
disabled: e.disabled,
|
|
3426
3834
|
required: e.required
|
|
3427
3835
|
}, {
|
|
3428
|
-
default:
|
|
3429
|
-
|
|
3430
|
-
|
|
3836
|
+
default: O(() => [
|
|
3837
|
+
E(f.$slots, "label", {}, () => [
|
|
3838
|
+
U(T(e.label), 1)
|
|
3431
3839
|
])
|
|
3432
3840
|
]),
|
|
3433
3841
|
_: 3
|
|
3434
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
3435
|
-
|
|
3842
|
+
}, 8, ["for", "disabled", "required"])) : $("", !0),
|
|
3843
|
+
D(Qn, P({
|
|
3436
3844
|
disabled: e.disabled,
|
|
3437
3845
|
error: e.error,
|
|
3438
|
-
"hint-id":
|
|
3846
|
+
"hint-id": p(l),
|
|
3439
3847
|
"input-id": u.value,
|
|
3440
3848
|
required: e.required,
|
|
3441
3849
|
value: c.value,
|
|
3442
|
-
"onUpdate:modelValue":
|
|
3443
|
-
},
|
|
3444
|
-
default:
|
|
3850
|
+
"onUpdate:modelValue": g[0] || (g[0] = (m) => f.$emit("update:modelValue", m))
|
|
3851
|
+
}, p(r)), {
|
|
3852
|
+
default: O(() => [
|
|
3445
3853
|
B("option", {
|
|
3446
3854
|
selected: !c.value,
|
|
3447
3855
|
value: "",
|
|
3448
3856
|
disabled: !!c.value
|
|
3449
|
-
}, T(e.disabled ? "" : e.placeholder), 9,
|
|
3450
|
-
(
|
|
3451
|
-
key:
|
|
3452
|
-
disabled:
|
|
3453
|
-
selected: c.value ===
|
|
3454
|
-
value:
|
|
3455
|
-
}, T(
|
|
3857
|
+
}, T(e.disabled ? "" : e.placeholder), 9, Xn),
|
|
3858
|
+
(d(!0), h(j, null, Z(e.data, (m) => (d(), h("option", {
|
|
3859
|
+
key: m.value,
|
|
3860
|
+
disabled: m.disabled,
|
|
3861
|
+
selected: c.value === m.value,
|
|
3862
|
+
value: m.value
|
|
3863
|
+
}, T(m.label), 9, Zn))), 128))
|
|
3456
3864
|
]),
|
|
3457
3865
|
_: 1
|
|
3458
3866
|
}, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
|
|
3459
|
-
|
|
3867
|
+
i.value ? (d(), V(ce, {
|
|
3460
3868
|
key: 1,
|
|
3461
3869
|
"data-disabled": e.disabled,
|
|
3462
3870
|
error: e.error,
|
|
3463
3871
|
"error-msg": e.errorMsg,
|
|
3464
|
-
hint: e.hint ||
|
|
3465
|
-
"hint-id":
|
|
3466
|
-
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) :
|
|
3872
|
+
hint: e.hint || o.value,
|
|
3873
|
+
"hint-id": p(l)
|
|
3874
|
+
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : $("", !0)
|
|
3467
3875
|
], 16));
|
|
3468
3876
|
}
|
|
3469
|
-
}),
|
|
3877
|
+
}), Jn = ["data-size"], _n = ["data-disabled", "data-pending", "data-size"], el = ["checked", "disabled", "id"], tl = ["data-inner-on-label", "data-inner-off-label"], Wl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3470
3878
|
__name: "BsSwitch",
|
|
3471
3879
|
props: {
|
|
3472
3880
|
checked: {
|
|
@@ -3512,48 +3920,48 @@ const Xt = {
|
|
|
3512
3920
|
},
|
|
3513
3921
|
emits: ["update:modelValue"],
|
|
3514
3922
|
setup(e, { emit: a }) {
|
|
3515
|
-
const t = e, n = a, l = G(), [r] = Y(), { toChild:
|
|
3516
|
-
return (c,
|
|
3923
|
+
const t = e, n = a, l = G(), [r] = Y(), { toChild: s, toRoot: o } = ie(t, l, ["aria-label", "name", "value"]), i = v(() => t.inputId || r.value), u = v(() => t.checked || t.modelValue);
|
|
3924
|
+
return (c, f) => (d(), h("div", P({
|
|
3517
3925
|
class: "bs-boolean",
|
|
3518
3926
|
"data-component": "bs-switch",
|
|
3519
3927
|
"data-size": e.size
|
|
3520
|
-
},
|
|
3521
|
-
e.label || c.$slots.label ? (
|
|
3928
|
+
}, p(o)), [
|
|
3929
|
+
e.label || c.$slots.label ? (d(), V(ne, {
|
|
3522
3930
|
key: 0,
|
|
3523
|
-
for:
|
|
3931
|
+
for: i.value,
|
|
3524
3932
|
disabled: e.disabled,
|
|
3525
3933
|
hide: e.hideLabel
|
|
3526
3934
|
}, {
|
|
3527
|
-
default:
|
|
3528
|
-
|
|
3529
|
-
|
|
3935
|
+
default: O(() => [
|
|
3936
|
+
E(c.$slots, "label", {}, () => [
|
|
3937
|
+
U(T(e.label), 1)
|
|
3530
3938
|
])
|
|
3531
3939
|
]),
|
|
3532
3940
|
_: 3
|
|
3533
|
-
}, 8, ["for", "disabled", "hide"])) :
|
|
3941
|
+
}, 8, ["for", "disabled", "hide"])) : $("", !0),
|
|
3534
3942
|
B("div", {
|
|
3535
3943
|
class: "bs-switch",
|
|
3536
3944
|
"data-disabled": e.disabled,
|
|
3537
3945
|
"data-pending": e.pending,
|
|
3538
3946
|
"data-size": e.size
|
|
3539
3947
|
}, [
|
|
3540
|
-
B("input",
|
|
3948
|
+
B("input", P({
|
|
3541
3949
|
checked: u.value,
|
|
3542
3950
|
disabled: e.disabled,
|
|
3543
|
-
id:
|
|
3951
|
+
id: i.value,
|
|
3544
3952
|
type: "checkbox"
|
|
3545
|
-
},
|
|
3546
|
-
onChange:
|
|
3547
|
-
}), null, 16,
|
|
3953
|
+
}, p(s), {
|
|
3954
|
+
onChange: f[0] || (f[0] = (g) => n("update:modelValue", g.target.checked))
|
|
3955
|
+
}), null, 16, el),
|
|
3548
3956
|
B("span", {
|
|
3549
3957
|
"aria-hidden": "true",
|
|
3550
3958
|
"data-inner-on-label": e.innerOnLabel,
|
|
3551
3959
|
"data-inner-off-label": e.innerOffLabel
|
|
3552
|
-
}, null, 8,
|
|
3553
|
-
], 8,
|
|
3554
|
-
], 16,
|
|
3960
|
+
}, null, 8, tl)
|
|
3961
|
+
], 8, _n)
|
|
3962
|
+
], 16, Jn));
|
|
3555
3963
|
}
|
|
3556
|
-
}),
|
|
3964
|
+
}), al = ["aria-controls", "aria-selected", "data-hidden"], Gl = {
|
|
3557
3965
|
__name: "BsTab",
|
|
3558
3966
|
props: {
|
|
3559
3967
|
activeTabId: {
|
|
@@ -3570,18 +3978,18 @@ const Xt = {
|
|
|
3570
3978
|
},
|
|
3571
3979
|
emits: ["tabClick"],
|
|
3572
3980
|
setup(e, { emit: a }) {
|
|
3573
|
-
const t = e, n = G(), l =
|
|
3574
|
-
function
|
|
3575
|
-
(u.key === "Enter" || u.key === " ") && (u.preventDefault(), u.stopPropagation(),
|
|
3981
|
+
const t = e, n = G(), l = y(), r = v(() => t.activeTabId === n.id), s = v(() => t.panelId || `${n.id}-panel`);
|
|
3982
|
+
function o(u) {
|
|
3983
|
+
(u.key === "Enter" || u.key === " ") && (u.preventDefault(), u.stopPropagation(), i());
|
|
3576
3984
|
}
|
|
3577
|
-
function
|
|
3985
|
+
function i() {
|
|
3578
3986
|
if (t.activeTabId !== n.id) {
|
|
3579
3987
|
const u = new CustomEvent("tabClick", { detail: n.id, bubbles: !0 });
|
|
3580
3988
|
l.value.dispatchEvent(u);
|
|
3581
3989
|
}
|
|
3582
3990
|
}
|
|
3583
|
-
return (u, c) => (
|
|
3584
|
-
"aria-controls":
|
|
3991
|
+
return (u, c) => (d(), h("div", {
|
|
3992
|
+
"aria-controls": s.value,
|
|
3585
3993
|
"aria-selected": r.value ? "true" : "false",
|
|
3586
3994
|
"data-hidden": e.hidden || void 0,
|
|
3587
3995
|
"data-component": "bs-tab",
|
|
@@ -3589,13 +3997,13 @@ const Xt = {
|
|
|
3589
3997
|
tabindex: "0",
|
|
3590
3998
|
ref_key: "hostEl",
|
|
3591
3999
|
ref: l,
|
|
3592
|
-
onClick:
|
|
3593
|
-
onKeydown:
|
|
4000
|
+
onClick: i,
|
|
4001
|
+
onKeydown: o
|
|
3594
4002
|
}, [
|
|
3595
|
-
|
|
3596
|
-
], 40,
|
|
4003
|
+
E(u.$slots, "default")
|
|
4004
|
+
], 40, al));
|
|
3597
4005
|
}
|
|
3598
|
-
},
|
|
4006
|
+
}, nl = ["id", "data-resizing"], ll = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], ol = 73, il = 20, rl = 16, Hl = {
|
|
3599
4007
|
__name: "BsTabList",
|
|
3600
4008
|
props: {
|
|
3601
4009
|
activeTabId: { type: String, required: !0 },
|
|
@@ -3606,182 +4014,182 @@ const Xt = {
|
|
|
3606
4014
|
},
|
|
3607
4015
|
emits: ["tabChange", "update:modelValue"],
|
|
3608
4016
|
setup(e, { emit: a }) {
|
|
3609
|
-
const t = e, n = a, l =
|
|
3610
|
-
var
|
|
3611
|
-
return
|
|
3612
|
-
}),
|
|
3613
|
-
var
|
|
3614
|
-
let
|
|
4017
|
+
const t = e, n = a, l = y(!1), r = y(!1), s = y([]), o = y(!1), i = y(!1), u = y(), c = y([]), f = y(!1), g = y([]), m = y(), x = y(), k = y(), [w, I] = Y(2), b = v(() => t.activeTabId ? g.value.findIndex((S) => S.id === t.activeTabId) : 0), C = v(() => s.value.some((S) => S.id === t.activeTabId)), q = v(() => `${I.value}-options`), A = v(() => `${I.value}-toggle`), M = v(() => {
|
|
4018
|
+
var S;
|
|
4019
|
+
return C.value ? (S = g.value[b.value]) == null ? void 0 : S.textContent : "More";
|
|
4020
|
+
}), Q = v(() => C.value ? c.value[b.value] - c.value[b.value - 1] + il : ol), X = v(() => {
|
|
4021
|
+
var L, N;
|
|
4022
|
+
let S = [];
|
|
3615
4023
|
if (typeof window > "u")
|
|
3616
|
-
return
|
|
3617
|
-
for (let
|
|
3618
|
-
if (((
|
|
4024
|
+
return S;
|
|
4025
|
+
for (let F of g.value) {
|
|
4026
|
+
if (((L = F.dataset) == null ? void 0 : L.hidden) === "true" || ((N = F.dataset) == null ? void 0 : N.hidden) === "" || F.getAttribute("tabindex") === "-1")
|
|
3619
4027
|
break;
|
|
3620
|
-
|
|
4028
|
+
S.push(F);
|
|
3621
4029
|
}
|
|
3622
|
-
return
|
|
4030
|
+
return i.value && S.push(u.value.querySelector(".bs-tab-list-toggle")), S;
|
|
3623
4031
|
});
|
|
3624
|
-
function
|
|
3625
|
-
var
|
|
3626
|
-
let
|
|
3627
|
-
if ((
|
|
3628
|
-
for (let
|
|
3629
|
-
if (
|
|
3630
|
-
|
|
4032
|
+
function _() {
|
|
4033
|
+
var le;
|
|
4034
|
+
let S = !1, L, N = 0, F = !1, ee = [];
|
|
4035
|
+
if ((le = g.value) != null && le.length) {
|
|
4036
|
+
for (let te = 0; te < g.value.length; te++) {
|
|
4037
|
+
if (L = g.value[te], L.setAttribute("tabindex", "-1"), F && te !== b.value) {
|
|
4038
|
+
L.dataset.hidden = "true", ee.push(L);
|
|
3631
4039
|
continue;
|
|
3632
4040
|
}
|
|
3633
|
-
if (
|
|
3634
|
-
|
|
4041
|
+
if (N = te < g.value.length - 1 ? k.value - Q.value : k.value, c.value[te] > N) {
|
|
4042
|
+
L.dataset.hidden = "true", ee.push(L), S = !0, F = !0;
|
|
3635
4043
|
continue;
|
|
3636
4044
|
}
|
|
3637
|
-
|
|
4045
|
+
L.dataset.hidden = "false", L.setAttribute("tabindex", "0");
|
|
3638
4046
|
}
|
|
3639
|
-
|
|
3640
|
-
K(),
|
|
3641
|
-
},
|
|
4047
|
+
i.value = S, s.value = ee, l.value || ve(() => l.value = !0), setTimeout(() => {
|
|
4048
|
+
K(), f.value = !0;
|
|
4049
|
+
}, f.value ? 0 : 1e3);
|
|
3642
4050
|
}
|
|
3643
4051
|
}
|
|
3644
|
-
function
|
|
3645
|
-
n("tabChange",
|
|
3646
|
-
}
|
|
3647
|
-
function ke(y) {
|
|
3648
|
-
var W, J, te;
|
|
3649
|
-
const A = (te = (J = (W = m.value[y]) == null ? void 0 : W.getBoundingClientRect) == null ? void 0 : J.call(W)) == null ? void 0 : te.width;
|
|
3650
|
-
return A || (y === 0 ? c.value[0] : c.value[y] - c.value[y - 1]) || 0;
|
|
4052
|
+
function de(S) {
|
|
4053
|
+
n("tabChange", S), n("update:modelValue", S);
|
|
3651
4054
|
}
|
|
3652
|
-
function
|
|
3653
|
-
var
|
|
3654
|
-
(
|
|
4055
|
+
function Ce(S) {
|
|
4056
|
+
var F, ee, le;
|
|
4057
|
+
const L = (le = (ee = (F = g.value[S]) == null ? void 0 : F.getBoundingClientRect) == null ? void 0 : ee.call(F)) == null ? void 0 : le.width;
|
|
4058
|
+
return L || (S === 0 ? c.value[0] : c.value[S] - c.value[S - 1]) || 0;
|
|
3655
4059
|
}
|
|
3656
|
-
function
|
|
3657
|
-
var
|
|
3658
|
-
(
|
|
4060
|
+
function xe() {
|
|
4061
|
+
var S;
|
|
4062
|
+
(S = g.value[b.value]) == null || S.setAttribute("aria-selected", "true"), _();
|
|
3659
4063
|
}
|
|
3660
4064
|
function Te() {
|
|
3661
|
-
|
|
4065
|
+
var S;
|
|
4066
|
+
(S = m.value) == null || S.focus(), o.value = !1;
|
|
3662
4067
|
}
|
|
3663
|
-
function
|
|
3664
|
-
|
|
3665
|
-
i.value = !1, (A = b.value) == null || A.focus(), se(y);
|
|
4068
|
+
function Ae() {
|
|
4069
|
+
o.value = !o.value, r.value || (r.value = !0);
|
|
3666
4070
|
}
|
|
3667
|
-
function
|
|
4071
|
+
function Le(S) {
|
|
4072
|
+
var L;
|
|
4073
|
+
o.value = !1, (L = m.value) == null || L.focus(), de(S);
|
|
4074
|
+
}
|
|
4075
|
+
function pe(S) {
|
|
3668
4076
|
if (t.withBsTabs)
|
|
3669
4077
|
return;
|
|
3670
|
-
const
|
|
3671
|
-
if (!
|
|
4078
|
+
const L = S.target.closest('[role="tab"]');
|
|
4079
|
+
if (!L || L.getAttribute("aria-selected") === "true")
|
|
3672
4080
|
return;
|
|
3673
|
-
const
|
|
3674
|
-
|
|
4081
|
+
const N = L.getAttribute("id");
|
|
4082
|
+
de(N);
|
|
3675
4083
|
}
|
|
3676
|
-
function
|
|
3677
|
-
if (
|
|
3678
|
-
const
|
|
3679
|
-
if (
|
|
4084
|
+
function he(S) {
|
|
4085
|
+
if (S.key === "ArrowLeft" || S.key === "ArrowRight") {
|
|
4086
|
+
const L = X.value.findIndex((N) => N.id === S.target.id);
|
|
4087
|
+
if (L === -1)
|
|
3680
4088
|
return;
|
|
3681
|
-
|
|
4089
|
+
S.preventDefault(), S.stopPropagation(), S.key === "ArrowLeft" ? H(L) : R(L);
|
|
3682
4090
|
}
|
|
3683
4091
|
}
|
|
3684
|
-
function
|
|
3685
|
-
var
|
|
3686
|
-
const
|
|
3687
|
-
(
|
|
4092
|
+
function R(S) {
|
|
4093
|
+
var N;
|
|
4094
|
+
const L = (S + 1) % X.value.length;
|
|
4095
|
+
(N = X.value[L]) == null || N.focus();
|
|
3688
4096
|
}
|
|
3689
|
-
function H(
|
|
3690
|
-
var
|
|
3691
|
-
const
|
|
3692
|
-
(
|
|
4097
|
+
function H(S) {
|
|
4098
|
+
var N;
|
|
4099
|
+
const L = S === 0 ? X.value.length - 1 : S - 1;
|
|
4100
|
+
(N = X.value[L]) == null || N.focus();
|
|
3693
4101
|
}
|
|
3694
4102
|
function K() {
|
|
3695
|
-
var
|
|
3696
|
-
const
|
|
3697
|
-
let
|
|
3698
|
-
|
|
4103
|
+
var le, te, je, Ue;
|
|
4104
|
+
const S = parseInt(u.value.style.getPropertyValue("--active-line-offset")) || 0, L = k.value;
|
|
4105
|
+
let N = 300, F = ((te = (le = X.value) == null ? void 0 : le[b.value]) == null ? void 0 : te.offsetLeft) || 0, ee = Ce(b.value);
|
|
4106
|
+
i.value && C.value && (F = (je = m.value) == null ? void 0 : je.offsetLeft, ee = (Ue = m.value) == null ? void 0 : Ue.offsetWidth), N = Math.max(Math.abs((F - S) / L * 300), 100), u.value.style.setProperty("--active-line-max-width", `${L}px`), u.value.style.setProperty("--active-line-scale", `${ee / L}`), u.value.style.setProperty("--active-line-offset", `${F}px`), u.value.style.setProperty("--active-line-transition-duration", `${N}ms`);
|
|
3699
4107
|
}
|
|
3700
|
-
function
|
|
3701
|
-
var
|
|
3702
|
-
(
|
|
4108
|
+
function Ne() {
|
|
4109
|
+
var S, L;
|
|
4110
|
+
(L = (S = x.value) == null ? void 0 : S.disconnect) == null || L.call(S), x.value = null;
|
|
3703
4111
|
}
|
|
3704
|
-
function
|
|
3705
|
-
x.value = new ResizeObserver((
|
|
3706
|
-
for (let
|
|
3707
|
-
|
|
3708
|
-
|
|
4112
|
+
function ot() {
|
|
4113
|
+
x.value = new ResizeObserver((S) => {
|
|
4114
|
+
for (let L of S)
|
|
4115
|
+
k.value = L.contentBoxSize[0].inlineSize;
|
|
4116
|
+
_();
|
|
3709
4117
|
}), x.value.observe(u.value);
|
|
3710
4118
|
}
|
|
3711
|
-
function
|
|
3712
|
-
|
|
4119
|
+
function it() {
|
|
4120
|
+
g.value = Array.from(u.value.children).filter((S) => S.role === "tab");
|
|
3713
4121
|
}
|
|
3714
|
-
function
|
|
3715
|
-
let
|
|
3716
|
-
|
|
3717
|
-
|
|
4122
|
+
function rt() {
|
|
4123
|
+
let S;
|
|
4124
|
+
g.value.forEach((L, N) => {
|
|
4125
|
+
S = L.getBoundingClientRect().width + rl, c.value.push(N ? S + c.value[N - 1] : S);
|
|
3718
4126
|
});
|
|
3719
4127
|
}
|
|
3720
|
-
return z(() => t.activeTabId,
|
|
3721
|
-
var
|
|
4128
|
+
return z(() => t.activeTabId, xe), W(() => {
|
|
4129
|
+
var S;
|
|
3722
4130
|
try {
|
|
3723
|
-
|
|
3724
|
-
} catch (
|
|
3725
|
-
console.log("tab error",
|
|
4131
|
+
it(), rt(), ot(), k.value = u.value.getBoundingClientRect().width, _(), t.withBsTabs || (S = g.value[b.value]) == null || S.setAttribute("aria-selected", "true");
|
|
4132
|
+
} catch (L) {
|
|
4133
|
+
console.log("tab error", L);
|
|
3726
4134
|
}
|
|
3727
|
-
}),
|
|
4135
|
+
}), oe(Ne), (S, L) => (d(), h("div", {
|
|
3728
4136
|
class: "bs-tab-list",
|
|
3729
4137
|
"data-component": "bs-tab-list",
|
|
3730
|
-
id:
|
|
4138
|
+
id: S.$attrs.id || p(w),
|
|
3731
4139
|
ref_key: "hostEl",
|
|
3732
4140
|
ref: u,
|
|
3733
4141
|
role: "tablist",
|
|
3734
4142
|
"data-resizing": !l.value || void 0,
|
|
3735
|
-
onClick:
|
|
3736
|
-
"on:tabClick":
|
|
3737
|
-
onKeydown:
|
|
4143
|
+
onClick: pe,
|
|
4144
|
+
"on:tabClick": L[0] || (L[0] = (N) => de(N.detail)),
|
|
4145
|
+
onKeydown: he
|
|
3738
4146
|
}, [
|
|
3739
|
-
|
|
4147
|
+
E(S.$slots, "default"),
|
|
3740
4148
|
B("button", {
|
|
3741
|
-
"aria-controls":
|
|
3742
|
-
"aria-expanded":
|
|
4149
|
+
"aria-controls": p(I),
|
|
4150
|
+
"aria-expanded": o.value,
|
|
3743
4151
|
class: "bs-tab-list-toggle",
|
|
3744
|
-
"data-active":
|
|
3745
|
-
"data-hidden": !
|
|
3746
|
-
id:
|
|
4152
|
+
"data-active": C.value || void 0,
|
|
4153
|
+
"data-hidden": !i.value,
|
|
4154
|
+
id: A.value,
|
|
3747
4155
|
ref_key: "dropdownToggle",
|
|
3748
|
-
ref:
|
|
3749
|
-
onClick:
|
|
4156
|
+
ref: m,
|
|
4157
|
+
onClick: Ae
|
|
3750
4158
|
}, [
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
], 8,
|
|
3754
|
-
|
|
3755
|
-
"anchor-id":
|
|
3756
|
-
"container-id":
|
|
4159
|
+
D(p(yt), { size: "sm" }),
|
|
4160
|
+
U(" " + T(M.value), 1)
|
|
4161
|
+
], 8, ll),
|
|
4162
|
+
D(Re, {
|
|
4163
|
+
"anchor-id": A.value,
|
|
4164
|
+
"container-id": S.$attrs.id || p(w),
|
|
3757
4165
|
"helper-description": e.helperDescription || void 0,
|
|
3758
4166
|
"helper-text": e.helperText,
|
|
3759
|
-
id:
|
|
3760
|
-
"options-id":
|
|
4167
|
+
id: p(I),
|
|
4168
|
+
"options-id": q.value,
|
|
3761
4169
|
position: "right",
|
|
3762
4170
|
preloaded: "",
|
|
3763
|
-
shown:
|
|
4171
|
+
shown: o.value,
|
|
3764
4172
|
width: "content",
|
|
3765
|
-
onClose:
|
|
3766
|
-
"onUpdate:modelValue":
|
|
4173
|
+
onClose: Te,
|
|
4174
|
+
"onUpdate:modelValue": Le
|
|
3767
4175
|
}, {
|
|
3768
|
-
default:
|
|
3769
|
-
(
|
|
3770
|
-
key:
|
|
3771
|
-
value:
|
|
3772
|
-
"options-id":
|
|
4176
|
+
default: O(() => [
|
|
4177
|
+
(d(!0), h(j, null, Z(s.value, (N) => (d(), V(ze, {
|
|
4178
|
+
key: N.id,
|
|
4179
|
+
value: N.id,
|
|
4180
|
+
"options-id": q.value
|
|
3773
4181
|
}, {
|
|
3774
|
-
default:
|
|
3775
|
-
|
|
4182
|
+
default: O(() => [
|
|
4183
|
+
U(T(N.textContent), 1)
|
|
3776
4184
|
]),
|
|
3777
4185
|
_: 2
|
|
3778
4186
|
}, 1032, ["value", "options-id"]))), 128))
|
|
3779
4187
|
]),
|
|
3780
4188
|
_: 1
|
|
3781
4189
|
}, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])
|
|
3782
|
-
], 40,
|
|
4190
|
+
], 40, nl));
|
|
3783
4191
|
}
|
|
3784
|
-
},
|
|
4192
|
+
}, sl = ["aria-labelledby", "data-active", "id"], Kl = {
|
|
3785
4193
|
__name: "BsTabPanel",
|
|
3786
4194
|
props: {
|
|
3787
4195
|
activeTabId: {
|
|
@@ -3794,18 +4202,18 @@ const Xt = {
|
|
|
3794
4202
|
}
|
|
3795
4203
|
},
|
|
3796
4204
|
setup(e) {
|
|
3797
|
-
const a = e, t = G(), n =
|
|
3798
|
-
return (r,
|
|
4205
|
+
const a = e, t = G(), n = v(() => a.activeTabId && a.activeTabId === a.tabId), l = v(() => t.id || `${a.tabId}-panel`);
|
|
4206
|
+
return (r, s) => (d(), h("section", {
|
|
3799
4207
|
"aria-labelledby": e.tabId,
|
|
3800
4208
|
"data-active": n.value,
|
|
3801
4209
|
"data-component": "bs-tab-panel",
|
|
3802
4210
|
id: l.value,
|
|
3803
4211
|
role: "tabpanel"
|
|
3804
4212
|
}, [
|
|
3805
|
-
|
|
3806
|
-
], 8,
|
|
4213
|
+
E(r.$slots, "default")
|
|
4214
|
+
], 8, sl));
|
|
3807
4215
|
}
|
|
3808
|
-
},
|
|
4216
|
+
}, dl = ["data-error", "id", "rows", "value"], ul = {
|
|
3809
4217
|
__name: "BsTextarea",
|
|
3810
4218
|
props: {
|
|
3811
4219
|
error: {
|
|
@@ -3820,18 +4228,18 @@ const Xt = {
|
|
|
3820
4228
|
},
|
|
3821
4229
|
emits: ["update:modelValue"],
|
|
3822
4230
|
setup(e, { emit: a }) {
|
|
3823
|
-
const t = e, n =
|
|
3824
|
-
return (l, r) => (
|
|
4231
|
+
const t = e, n = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
4232
|
+
return (l, r) => (d(), h("textarea", P({
|
|
3825
4233
|
class: "bs-textarea",
|
|
3826
4234
|
"data-component": "bs-textarea",
|
|
3827
4235
|
"data-error": e.error,
|
|
3828
4236
|
id: l.$attrs.id || e.inputId,
|
|
3829
4237
|
rows: l.$attrs.rows || 6,
|
|
3830
4238
|
value: e.value || e.modelValue,
|
|
3831
|
-
onInput: r[0] || (r[0] = (
|
|
3832
|
-
}, n.value), null, 16,
|
|
4239
|
+
onInput: r[0] || (r[0] = (s) => l.$emit("update:modelValue", s.target.value))
|
|
4240
|
+
}, n.value), null, 16, dl));
|
|
3833
4241
|
}
|
|
3834
|
-
},
|
|
4242
|
+
}, Yl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3835
4243
|
__name: "BsTextareaField",
|
|
3836
4244
|
props: {
|
|
3837
4245
|
/** 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. */
|
|
@@ -3880,59 +4288,59 @@ const Xt = {
|
|
|
3880
4288
|
},
|
|
3881
4289
|
emits: ["update:modelValue"],
|
|
3882
4290
|
setup(e, { emit: a }) {
|
|
3883
|
-
const t = e, n = G(), [l, r] = Y(2), { toChild:
|
|
4291
|
+
const t = e, n = G(), [l, r] = Y(2), { toChild: s, toRoot: o } = ie(t, n, [
|
|
3884
4292
|
"aria-label",
|
|
3885
4293
|
"autocomplete",
|
|
3886
4294
|
"cols",
|
|
3887
4295
|
"maxlength",
|
|
3888
4296
|
"minlength",
|
|
3889
4297
|
"name"
|
|
3890
|
-
]),
|
|
3891
|
-
var
|
|
3892
|
-
return ((
|
|
3893
|
-
}), u =
|
|
3894
|
-
var
|
|
3895
|
-
return ((
|
|
4298
|
+
]), i = v(() => {
|
|
4299
|
+
var g;
|
|
4300
|
+
return ((g = t.value || t.modelValue) == null ? void 0 : g.length) || 0;
|
|
4301
|
+
}), u = v(() => {
|
|
4302
|
+
var g, m;
|
|
4303
|
+
return ((m = (g = t.hints) == null ? void 0 : g.join) == null ? void 0 : m.call(g, `
|
|
3896
4304
|
`)) || t.hints;
|
|
3897
|
-
}), c =
|
|
3898
|
-
return (
|
|
3899
|
-
e.label ||
|
|
4305
|
+
}), c = v(() => t.error && t.errorMsg || t.hint || u.value || void 0), f = v(() => t.inputId || l.value);
|
|
4306
|
+
return (g, m) => (d(), h("div", P({ "data-component": "bs-textarea-field" }, p(o)), [
|
|
4307
|
+
e.label || g.$slots.label ? (d(), V(ne, {
|
|
3900
4308
|
key: 0,
|
|
3901
|
-
for:
|
|
4309
|
+
for: f.value,
|
|
3902
4310
|
disabled: e.disabled,
|
|
3903
4311
|
required: e.required
|
|
3904
4312
|
}, {
|
|
3905
|
-
default:
|
|
3906
|
-
|
|
3907
|
-
|
|
4313
|
+
default: O(() => [
|
|
4314
|
+
E(g.$slots, "label", {}, () => [
|
|
4315
|
+
U(T(e.label), 1)
|
|
3908
4316
|
])
|
|
3909
4317
|
]),
|
|
3910
4318
|
_: 3
|
|
3911
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
3912
|
-
|
|
4319
|
+
}, 8, ["for", "disabled", "required"])) : $("", !0),
|
|
4320
|
+
D(ul, P({
|
|
3913
4321
|
disabled: e.disabled,
|
|
3914
4322
|
error: e.error,
|
|
3915
|
-
"hint-id":
|
|
3916
|
-
id:
|
|
4323
|
+
"hint-id": p(r),
|
|
4324
|
+
id: f.value,
|
|
3917
4325
|
placeholder: e.placeholder,
|
|
3918
4326
|
required: e.required,
|
|
3919
4327
|
rows: e.rows,
|
|
3920
4328
|
value: e.value || e.modelValue,
|
|
3921
|
-
"onUpdate:modelValue":
|
|
3922
|
-
},
|
|
3923
|
-
c.value || e.charMax ? (
|
|
4329
|
+
"onUpdate:modelValue": m[0] || (m[0] = (x) => g.$emit("update:modelValue", x))
|
|
4330
|
+
}, p(s)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
|
|
4331
|
+
c.value || e.charMax ? (d(), V(ce, {
|
|
3924
4332
|
key: 1,
|
|
3925
|
-
"char-count":
|
|
4333
|
+
"char-count": i.value,
|
|
3926
4334
|
"char-max": e.charMax,
|
|
3927
4335
|
"data-disabled": e.disabled,
|
|
3928
4336
|
error: e.error,
|
|
3929
4337
|
"error-msg": e.errorMsg,
|
|
3930
4338
|
hint: e.hint || u.value,
|
|
3931
|
-
"hint-id":
|
|
3932
|
-
}, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) :
|
|
4339
|
+
"hint-id": p(r)
|
|
4340
|
+
}, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) : $("", !0)
|
|
3933
4341
|
], 16));
|
|
3934
4342
|
}
|
|
3935
|
-
}),
|
|
4343
|
+
}), cl = ["data-variant", "data-stacked"], Ql = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3936
4344
|
__name: "BsToast",
|
|
3937
4345
|
props: {
|
|
3938
4346
|
shown: {
|
|
@@ -3978,111 +4386,111 @@ const Xt = {
|
|
|
3978
4386
|
},
|
|
3979
4387
|
emits: ["dismiss", "after-enter", "after-leave"],
|
|
3980
4388
|
setup(e, { emit: a }) {
|
|
3981
|
-
const t = e, n = a, { transition: l } =
|
|
4389
|
+
const t = e, n = a, { transition: l } = ue(t);
|
|
3982
4390
|
let r = null;
|
|
3983
|
-
|
|
3984
|
-
const
|
|
3985
|
-
function
|
|
4391
|
+
re("variant", t.variant), re("handleDismiss", o);
|
|
4392
|
+
const s = se("stacked", t.stacked);
|
|
4393
|
+
function o() {
|
|
3986
4394
|
r && (clearTimeout(r), r = null), n("dismiss", t.toastId);
|
|
3987
4395
|
}
|
|
3988
|
-
function
|
|
4396
|
+
function i() {
|
|
3989
4397
|
t.duration > 0 && (r = setTimeout(() => {
|
|
3990
|
-
|
|
4398
|
+
o();
|
|
3991
4399
|
}, t.duration)), n("after-enter");
|
|
3992
4400
|
}
|
|
3993
|
-
return (u, c) => (
|
|
3994
|
-
shown:
|
|
4401
|
+
return (u, c) => (d(), V(p(Ie), {
|
|
4402
|
+
shown: p(l),
|
|
3995
4403
|
preloaded: e.preloaded,
|
|
3996
4404
|
duration: 200,
|
|
3997
4405
|
"enter-attribute": "data-shown",
|
|
3998
|
-
onAfterEnter:
|
|
3999
|
-
onAfterLeave: c[0] || (c[0] = (
|
|
4406
|
+
onAfterEnter: i,
|
|
4407
|
+
onAfterLeave: c[0] || (c[0] = (f) => n("after-leave"))
|
|
4000
4408
|
}, {
|
|
4001
|
-
default:
|
|
4002
|
-
B("div",
|
|
4409
|
+
default: O(() => [
|
|
4410
|
+
B("div", P({
|
|
4003
4411
|
class: "bs-toast",
|
|
4004
4412
|
"data-variant": e.variant,
|
|
4005
|
-
"data-stacked":
|
|
4413
|
+
"data-stacked": p(s) || void 0,
|
|
4006
4414
|
"aria-role": "alert"
|
|
4007
4415
|
}, u.$attrs), [
|
|
4008
|
-
|
|
4009
|
-
], 16,
|
|
4416
|
+
E(u.$slots, "default")
|
|
4417
|
+
], 16, cl)
|
|
4010
4418
|
]),
|
|
4011
4419
|
_: 3
|
|
4012
4420
|
}, 8, ["shown", "preloaded"]));
|
|
4013
4421
|
}
|
|
4014
|
-
}),
|
|
4422
|
+
}), fl = ["data-stacked"], Xl = {
|
|
4015
4423
|
__name: "BsToastActions",
|
|
4016
4424
|
setup(e) {
|
|
4017
|
-
const a =
|
|
4018
|
-
|
|
4425
|
+
const a = y(!1);
|
|
4426
|
+
W(() => {
|
|
4019
4427
|
var l;
|
|
4020
|
-
const n =
|
|
4428
|
+
const n = ft();
|
|
4021
4429
|
((l = n.default) == null ? void 0 : l.call(n).length) > 2 && (a.value = !0);
|
|
4022
4430
|
});
|
|
4023
|
-
const t =
|
|
4024
|
-
return (n, l) => (
|
|
4431
|
+
const t = se("handleDismiss");
|
|
4432
|
+
return (n, l) => (d(), h("div", {
|
|
4025
4433
|
class: "bs-toast-actions",
|
|
4026
4434
|
"data-stacked": a.value || void 0
|
|
4027
4435
|
}, [
|
|
4028
|
-
|
|
4029
|
-
|
|
4436
|
+
E(n.$slots, "default", {}, () => [
|
|
4437
|
+
D(sa, {
|
|
4030
4438
|
size: "sm",
|
|
4031
4439
|
"text-btn": "",
|
|
4032
|
-
onClick:
|
|
4440
|
+
onClick: p(t)
|
|
4033
4441
|
}, {
|
|
4034
|
-
default:
|
|
4035
|
-
|
|
4442
|
+
default: O(() => [
|
|
4443
|
+
U(" Dismiss ")
|
|
4036
4444
|
]),
|
|
4037
4445
|
_: 1
|
|
4038
4446
|
}, 8, ["onClick"])
|
|
4039
4447
|
])
|
|
4040
|
-
], 8,
|
|
4448
|
+
], 8, fl));
|
|
4041
4449
|
}
|
|
4042
|
-
},
|
|
4450
|
+
}, pl = (e, a) => {
|
|
4043
4451
|
const t = e.__vccOpts || e;
|
|
4044
4452
|
for (const [n, l] of a)
|
|
4045
4453
|
t[n] = l;
|
|
4046
4454
|
return t;
|
|
4047
|
-
},
|
|
4048
|
-
function
|
|
4049
|
-
return
|
|
4050
|
-
|
|
4455
|
+
}, hl = {}, vl = { class: "bs-toast-body" };
|
|
4456
|
+
function bl(e, a) {
|
|
4457
|
+
return d(), h("div", vl, [
|
|
4458
|
+
E(e.$slots, "default")
|
|
4051
4459
|
]);
|
|
4052
4460
|
}
|
|
4053
|
-
const
|
|
4461
|
+
const Zl = /* @__PURE__ */ pl(hl, [["render", bl]]), ml = ["data-variant"], Jl = {
|
|
4054
4462
|
__name: "BsToastHeader",
|
|
4055
4463
|
setup(e) {
|
|
4056
|
-
const a =
|
|
4464
|
+
const a = se("variant"), t = v(() => {
|
|
4057
4465
|
switch (a) {
|
|
4058
4466
|
case "warning":
|
|
4059
|
-
return
|
|
4467
|
+
return Oe;
|
|
4060
4468
|
case "positive":
|
|
4061
|
-
return
|
|
4469
|
+
return St;
|
|
4062
4470
|
case "negative":
|
|
4063
|
-
return
|
|
4471
|
+
return Oe;
|
|
4064
4472
|
default:
|
|
4065
|
-
return
|
|
4473
|
+
return Bt;
|
|
4066
4474
|
}
|
|
4067
4475
|
});
|
|
4068
|
-
return (n, l) => (
|
|
4476
|
+
return (n, l) => (d(), h("div", {
|
|
4069
4477
|
class: "bs-toast-header",
|
|
4070
|
-
"data-variant":
|
|
4478
|
+
"data-variant": p(a)
|
|
4071
4479
|
}, [
|
|
4072
|
-
(
|
|
4480
|
+
(d(), V(J(t.value), { class: "bs-toast-header-icon" })),
|
|
4073
4481
|
B("h5", null, [
|
|
4074
|
-
|
|
4482
|
+
E(n.$slots, "default")
|
|
4075
4483
|
])
|
|
4076
|
-
], 8,
|
|
4484
|
+
], 8, ml));
|
|
4077
4485
|
}
|
|
4078
|
-
},
|
|
4486
|
+
}, gl = { class: "bs-toaster" }, _l = {
|
|
4079
4487
|
__name: "BsToaster",
|
|
4080
4488
|
setup(e) {
|
|
4081
|
-
return
|
|
4082
|
-
|
|
4489
|
+
return re("stacked", !0), (a, t) => (d(), h("div", gl, [
|
|
4490
|
+
E(a.$slots, "default")
|
|
4083
4491
|
]));
|
|
4084
4492
|
}
|
|
4085
|
-
},
|
|
4493
|
+
}, yl = ["data-position"], Bl = ["id"], eo = {
|
|
4086
4494
|
__name: "BsTooltip",
|
|
4087
4495
|
props: {
|
|
4088
4496
|
tooltipId: {
|
|
@@ -4109,85 +4517,86 @@ const Vl = /* @__PURE__ */ Xn(Zn, [["render", Qn]]), _n = ["data-variant"], El =
|
|
|
4109
4517
|
}
|
|
4110
4518
|
},
|
|
4111
4519
|
setup(e) {
|
|
4112
|
-
const a = e, t =
|
|
4113
|
-
let
|
|
4114
|
-
return n.value && (a.position === void 0 || a.position === "top" || a.position === "bottom" ?
|
|
4520
|
+
const a = e, t = y(!1), n = y(!1), l = v(() => {
|
|
4521
|
+
let o = "bs-tooltip-text";
|
|
4522
|
+
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;
|
|
4115
4523
|
});
|
|
4116
|
-
|
|
4524
|
+
$e(["Escape"], () => {
|
|
4117
4525
|
t.value && (t.value = !1, n.value = !0);
|
|
4118
4526
|
});
|
|
4119
4527
|
function r() {
|
|
4120
4528
|
t.value = !0;
|
|
4121
4529
|
}
|
|
4122
|
-
function
|
|
4530
|
+
function s() {
|
|
4123
4531
|
t.value = !1, n.value = !1;
|
|
4124
4532
|
}
|
|
4125
|
-
return (
|
|
4533
|
+
return (o, i) => (d(), h("div", {
|
|
4126
4534
|
class: "bs-tooltip",
|
|
4127
4535
|
"data-position": e.position || void 0,
|
|
4128
4536
|
"data-component": "bs-tooltip",
|
|
4129
4537
|
onMouseenter: r,
|
|
4130
4538
|
onFocusin: r,
|
|
4131
|
-
onMouseleave:
|
|
4132
|
-
onFocusout:
|
|
4539
|
+
onMouseleave: s,
|
|
4540
|
+
onFocusout: s
|
|
4133
4541
|
}, [
|
|
4134
|
-
|
|
4135
|
-
e.content ? (
|
|
4542
|
+
E(o.$slots, "default"),
|
|
4543
|
+
e.content ? (d(), h("div", {
|
|
4136
4544
|
key: 0,
|
|
4137
|
-
class:
|
|
4545
|
+
class: ae(l.value),
|
|
4138
4546
|
id: e.tooltipId,
|
|
4139
4547
|
role: "tooltip"
|
|
4140
|
-
}, T(e.content), 11,
|
|
4141
|
-
], 40,
|
|
4548
|
+
}, T(e.content), 11, Bl)) : $("", !0)
|
|
4549
|
+
], 40, yl));
|
|
4142
4550
|
}
|
|
4143
4551
|
};
|
|
4144
4552
|
export {
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4553
|
+
xl as BsAccordion,
|
|
4554
|
+
Ut as BsBadge,
|
|
4555
|
+
Tl as BsBanner,
|
|
4556
|
+
sa as BsButton,
|
|
4557
|
+
Al as BsCalendar,
|
|
4558
|
+
Ll as BsChartBar,
|
|
4559
|
+
$a as BsCheckbox,
|
|
4560
|
+
Vl as BsCircleButton,
|
|
4561
|
+
nt as BsDropdown,
|
|
4562
|
+
Ya as BsDropdownMultiselect,
|
|
4563
|
+
ze as BsDropdownOption,
|
|
4564
|
+
me as BsDropdownOptionBuilder,
|
|
4156
4565
|
Pe as BsDropdownOptionList,
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4566
|
+
Re as BsDropdownWithOptions,
|
|
4567
|
+
El as BsDropdownWithToggle,
|
|
4568
|
+
ce as BsFieldDetails,
|
|
4569
|
+
Ja as BsFilterButton,
|
|
4570
|
+
Dl as BsIconGradientWrapper,
|
|
4571
|
+
fe as BsInput,
|
|
4572
|
+
ke as BsInputAddon,
|
|
4573
|
+
Ol as BsInputField,
|
|
4574
|
+
ql as BsInputPhone,
|
|
4575
|
+
sn as BsInputSearch,
|
|
4576
|
+
Ml as BsInputTypeahead,
|
|
4168
4577
|
ne as BsLabel,
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4578
|
+
Pl as BsLoader,
|
|
4579
|
+
zl as BsModal,
|
|
4580
|
+
mn as BsOverlay,
|
|
4581
|
+
Rl as BsPagination,
|
|
4582
|
+
Nl as BsPill,
|
|
4583
|
+
jl as BsProfile,
|
|
4584
|
+
Gn as BsProfileDetails,
|
|
4585
|
+
lt as BsProfileImg,
|
|
4586
|
+
Ul as BsRadio,
|
|
4587
|
+
Qn as BsSelect,
|
|
4588
|
+
Fl as BsSelectField,
|
|
4589
|
+
Wl as BsSwitch,
|
|
4590
|
+
Gl as BsTab,
|
|
4591
|
+
Hl as BsTabList,
|
|
4592
|
+
Kl as BsTabPanel,
|
|
4593
|
+
ul as BsTextarea,
|
|
4594
|
+
Yl as BsTextareaField,
|
|
4595
|
+
Ql as BsToast,
|
|
4596
|
+
Xl as BsToastActions,
|
|
4597
|
+
Zl as BsToastBody,
|
|
4598
|
+
Jl as BsToastHeader,
|
|
4599
|
+
_l as BsToaster,
|
|
4600
|
+
eo as BsTooltip,
|
|
4601
|
+
Ie as BsTransition
|
|
4193
4602
|
};
|