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