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