@wwtdev/bsds-components-vue3 2.3.2 → 2.3.4
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 +1236 -1223
- package/lib/components.css +1 -1
- package/package.json +3 -3
package/lib/bsds-components.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { v4 as
|
|
3
|
-
import { BsIconCaretDown as
|
|
1
|
+
import { computed as v, ref as g, onMounted as K, onUnmounted as oe, shallowRef as ut, watch as N, defineAsyncComponent as Re, openBlock as d, createElementBlock as b, unref as p, createElementVNode as y, renderSlot as E, createBlock as V, resolveDynamicComponent as J, createCommentVNode as w, toDisplayString as A, createVNode as D, normalizeClass as te, Fragment as G, useAttrs as ie, mergeProps as z, withCtx as O, toHandlers as Me, onBeforeUnmount as tt, onBeforeMount as at, nextTick as fe, createTextVNode as W, renderList as Z, withDirectives as $e, Transition as Ke, vShow as Se, provide as re, Teleport as ct, normalizeStyle as ft, inject as se, isRef as pt, useSlots as vt } from "vue";
|
|
2
|
+
import { v4 as nt } from "uuid";
|
|
3
|
+
import { BsIconCaretDown as lt, BsIconWarning as ze, BsIconClose as we, BsIconCalendar as ot, BsIconCaretSort as ht, BsIconSearch as bt, BsIconCaretLeftDouble as mt, BsIconCaretLeft as gt, BsIconCaretRight as yt, BsIconCaretRightDouble as Bt, BsIconActionEllipsis as $t, BsIconCircleExclamation as St, BsIconThumbsUpStroke as wt } from "@wwtdev/bsds-icons-vue3";
|
|
4
4
|
import { DatePicker as kt } from "v-calendar";
|
|
5
5
|
import { Chart as qe, BarController as It, BarElement as Ct, CategoryScale as Tt, LinearScale as xt, Legend as At, Tooltip as Lt } from "chart.js";
|
|
6
|
-
import { getSupportedCallingCodes as Vt, getRegionCodeForCountryCode as Et, parsePhoneNumber as
|
|
7
|
-
const
|
|
6
|
+
import { getSupportedCallingCodes as Vt, getRegionCodeForCountryCode as Et, parsePhoneNumber as Ye } from "awesome-phonenumber";
|
|
7
|
+
const Qe = {
|
|
8
8
|
href: "a",
|
|
9
9
|
linkTo: "a",
|
|
10
10
|
onclick: "button",
|
|
11
11
|
onClick: "button",
|
|
12
12
|
type: "button"
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
const n = Dt(e, a, t), l =
|
|
16
|
-
const
|
|
17
|
-
return
|
|
18
|
-
}), r =
|
|
19
|
-
const
|
|
20
|
-
return delete
|
|
21
|
-
}),
|
|
22
|
-
return { rootTag: n, attrsToBind: r, hrefUrl:
|
|
14
|
+
function ke(e, a, t = "button") {
|
|
15
|
+
const n = Dt(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
|
+
}), r = 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: r, hrefUrl: u };
|
|
23
23
|
}
|
|
24
24
|
function Dt(e, a, t) {
|
|
25
|
-
const n = Object.keys(
|
|
26
|
-
return
|
|
25
|
+
const n = Object.keys(Qe).find((l) => Ot(e, a, l));
|
|
26
|
+
return g(Qe[n] || t);
|
|
27
27
|
}
|
|
28
28
|
function Ot(e, a, t) {
|
|
29
29
|
return e[t] || a[t];
|
|
@@ -35,19 +35,19 @@ const qt = (e, a) => {
|
|
|
35
35
|
return (r = l.value) == null ? void 0 : r.contains(n.target);
|
|
36
36
|
}) || a(n);
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
K(() => {
|
|
39
39
|
document.addEventListener("click", t);
|
|
40
40
|
}), oe(() => {
|
|
41
41
|
document.removeEventListener("click", t);
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
-
function
|
|
45
|
-
const a =
|
|
46
|
-
var r,
|
|
47
|
-
return ((
|
|
48
|
-
}), n =
|
|
49
|
-
var r,
|
|
50
|
-
return t.value && ((r = e.router) == null ? void 0 : r.navigateTo) || ((
|
|
44
|
+
function Ie(e) {
|
|
45
|
+
const a = v(() => e.linkTo || e.href || ""), t = v(() => {
|
|
46
|
+
var r, u;
|
|
47
|
+
return ((u = (r = a.value) == null ? void 0 : r.startsWith) == null ? void 0 : u.call(r, "/")) || !1;
|
|
48
|
+
}), n = v(() => {
|
|
49
|
+
var r, u;
|
|
50
|
+
return t.value && ((r = e.router) == null ? void 0 : r.navigateTo) || ((u = e.router) == null ? void 0 : u.push) || null;
|
|
51
51
|
});
|
|
52
52
|
function l(r) {
|
|
53
53
|
if (e.disabled) {
|
|
@@ -60,49 +60,49 @@ function ke(e) {
|
|
|
60
60
|
}
|
|
61
61
|
return { onLinkClick: l };
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Xe(e) {
|
|
64
64
|
return e.split("-").map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join("");
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const ye = (e, a) => {
|
|
67
67
|
function t(l) {
|
|
68
68
|
if (!l)
|
|
69
69
|
return null;
|
|
70
|
-
const r = l.startsWith("bs-") ?
|
|
70
|
+
const r = l.startsWith("bs-") ? Xe(l) : `BsIcon${Xe(l)}`;
|
|
71
71
|
return Re(async () => {
|
|
72
|
-
const { [r]:
|
|
73
|
-
return
|
|
72
|
+
const { [r]: u } = await import("@wwtdev/bsds-icons-vue3");
|
|
73
|
+
return u;
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
const n = ut();
|
|
77
77
|
return n.value = t(e[a]), N(() => e[a], async (l) => n.value = t(l)), { icon: n };
|
|
78
78
|
};
|
|
79
|
-
function
|
|
79
|
+
function Q(e = 1) {
|
|
80
80
|
const a = [];
|
|
81
81
|
for (let t = 0; t < e; t++)
|
|
82
|
-
a.push(
|
|
83
|
-
return
|
|
84
|
-
a.forEach((t) => t.value = `id-${
|
|
82
|
+
a.push(g(""));
|
|
83
|
+
return K(() => {
|
|
84
|
+
a.forEach((t) => t.value = `id-${nt()}`);
|
|
85
85
|
}), a;
|
|
86
86
|
}
|
|
87
|
-
const
|
|
87
|
+
const Ce = (e, a, t = void 0) => {
|
|
88
88
|
const n = (l) => {
|
|
89
89
|
e.includes(l.key) && a(l);
|
|
90
90
|
};
|
|
91
|
-
|
|
91
|
+
K(() => {
|
|
92
92
|
((t == null ? void 0 : t.value) ?? document).addEventListener("keydown", n);
|
|
93
93
|
}), oe(() => {
|
|
94
94
|
((t == null ? void 0 : t.value) ?? document).removeEventListener("keydown", n);
|
|
95
95
|
});
|
|
96
|
-
},
|
|
96
|
+
}, Pt = (e, a, t) => {
|
|
97
97
|
let n = null;
|
|
98
|
-
|
|
98
|
+
K(() => {
|
|
99
99
|
n = new MutationObserver(a), n.observe(e.value, t);
|
|
100
100
|
}), oe(() => {
|
|
101
101
|
n.disconnect();
|
|
102
102
|
});
|
|
103
|
-
},
|
|
104
|
-
const a =
|
|
105
|
-
return
|
|
103
|
+
}, ve = (e) => {
|
|
104
|
+
const a = g(!1);
|
|
105
|
+
return K(() => {
|
|
106
106
|
e.enterControlled ? a.value = e.enterTrigger : a.value = e.shown;
|
|
107
107
|
}), N(() => e.shown, (t) => {
|
|
108
108
|
a.value = t;
|
|
@@ -111,16 +111,17 @@ const Ie = (e, a, t = void 0) => {
|
|
|
111
111
|
}), N(() => e.leaveTrigger, (t) => {
|
|
112
112
|
t && (a.value = !1);
|
|
113
113
|
}), { transition: a };
|
|
114
|
-
},
|
|
114
|
+
}, Mt = ["id", "data-stacked"], zt = ["data-open"], Nt = ["aria-controls", "aria-expanded"], Rt = {
|
|
115
115
|
key: 0,
|
|
116
116
|
"data-position": "start",
|
|
117
117
|
style: { display: "inline-flex" }
|
|
118
|
-
}, jt = ["id"
|
|
118
|
+
}, jt = ["id"], Ft = ["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 =
|
|
135
|
-
function
|
|
136
|
-
n("toggled",
|
|
135
|
+
const t = e, n = a, l = g(null), r = g(!1), { icon: u } = ye(t, "icon"), [o] = Q(), s = v(() => o.value + "-content"), i = v(() => o.value + "-title"), c = v(() => t.openItemId && t.openItemId === o.value || t.openItem === !0), f = v(() => t.controlled ? c.value : r.value);
|
|
136
|
+
function x() {
|
|
137
|
+
n("toggled", o.value), t.controlled || (r.value = !r.value);
|
|
137
138
|
}
|
|
138
|
-
return (
|
|
139
|
-
id:
|
|
139
|
+
return (m, T) => (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
|
+
y("header", {
|
|
147
148
|
part: "header",
|
|
148
|
-
"data-open":
|
|
149
|
+
"data-open": f.value
|
|
149
150
|
}, [
|
|
150
|
-
|
|
151
|
-
"aria-controls":
|
|
152
|
-
"aria-expanded":
|
|
151
|
+
y("button", {
|
|
152
|
+
"aria-controls": s.value,
|
|
153
|
+
"aria-expanded": f.value,
|
|
153
154
|
type: "button",
|
|
154
|
-
onClick:
|
|
155
|
+
onClick: x
|
|
155
156
|
}, [
|
|
156
|
-
e.icon ||
|
|
157
|
-
E(
|
|
158
|
-
e.icon ? (
|
|
157
|
+
e.icon || m.$slots.icon ? (d(), b("span", Rt, [
|
|
158
|
+
E(m.$slots, "icon", {}, () => [
|
|
159
|
+
e.icon ? (d(), V(J(p(u) ? p(u) : "span"), { key: 0 })) : w("", !0)
|
|
159
160
|
])
|
|
160
161
|
])) : w("", !0),
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
"aria-level": e.headingLevel,
|
|
164
|
-
role: "heading"
|
|
165
|
-
}, T(e.headerText), 9, jt),
|
|
166
|
-
D(f(ot), {
|
|
162
|
+
y("span", { id: i.value }, A(e.headerText), 9, jt),
|
|
163
|
+
D(p(lt), {
|
|
167
164
|
size: "md",
|
|
168
165
|
"data-position": "end"
|
|
169
166
|
})
|
|
170
167
|
], 8, Nt)
|
|
171
168
|
], 8, zt),
|
|
172
|
-
|
|
173
|
-
"aria-labelledby":
|
|
169
|
+
y("div", {
|
|
170
|
+
"aria-labelledby": i.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
|
-
E(
|
|
177
|
+
y("div", null, [
|
|
178
|
+
E(m.$slots, "default")
|
|
182
179
|
])
|
|
183
180
|
], 8, Ft)
|
|
184
|
-
], 8,
|
|
181
|
+
], 8, Mt));
|
|
185
182
|
}
|
|
186
|
-
}, Ut = ["data-badge-color", "data-count", "data-position", "data-show-zero", "data-variant"
|
|
183
|
+
}, Ut = ["aria-label", "data-badge-color", "data-count", "data-position", "data-show-zero", "data-variant"], Wt = {
|
|
187
184
|
__name: "BsBadge",
|
|
188
185
|
props: {
|
|
189
186
|
/** Pass value to set `data-badge-color`. */
|
|
@@ -230,25 +227,26 @@ const Ie = (e, a, t = void 0) => {
|
|
|
230
227
|
}
|
|
231
228
|
},
|
|
232
229
|
setup(e) {
|
|
233
|
-
const a = e, t =
|
|
234
|
-
var
|
|
235
|
-
const r = ((
|
|
236
|
-
if (!
|
|
230
|
+
const a = e, t = g(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, i;
|
|
232
|
+
const r = ((i = (s = t.value) == null ? void 0 : s.textContent) == null ? void 0 : i.trim()) || "", u = n.value ? n.value + " " : "";
|
|
233
|
+
if (!u && !a.dot)
|
|
237
234
|
return r;
|
|
238
|
-
const
|
|
239
|
-
return `${r ? `${r}, ` : ""}${
|
|
235
|
+
const o = a.count !== 1 ? "s" : "";
|
|
236
|
+
return `${r ? `${r}, ` : ""}${u}${a.label}${o}`;
|
|
240
237
|
});
|
|
241
|
-
return (r,
|
|
238
|
+
return (r, u) => (d(), b("span", {
|
|
242
239
|
ref_key: "hostRef",
|
|
243
240
|
ref: t,
|
|
244
|
-
|
|
241
|
+
"aria-label": l.value,
|
|
242
|
+
class: te({ "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
251
|
e.variant !== "notext" ? E(r.$slots, "default", { key: 0 }) : w("", !0)
|
|
254
252
|
], 10, Ut));
|
|
@@ -257,28 +255,28 @@ const Ie = (e, a, t = void 0) => {
|
|
|
257
255
|
key: 0,
|
|
258
256
|
role: "alert",
|
|
259
257
|
class: "bs-banner"
|
|
260
|
-
}, Ht = { class: "bs-banner-content" }, Kt = { class: "bs-banner-warning-icon" },
|
|
258
|
+
}, Ht = { class: "bs-banner-content" }, Kt = { class: "bs-banner-warning-icon" }, Ll = {
|
|
261
259
|
__name: "BsBanner",
|
|
262
260
|
emits: ["dismiss"],
|
|
263
261
|
setup(e, { emit: a }) {
|
|
264
|
-
const t = a, n =
|
|
262
|
+
const t = a, n = g(!1);
|
|
265
263
|
function l() {
|
|
266
264
|
n.value = !0, t("dismiss");
|
|
267
265
|
}
|
|
268
|
-
return (r,
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
D(
|
|
266
|
+
return (r, u) => n.value ? w("", !0) : (d(), b("div", Gt, [
|
|
267
|
+
y("div", Ht, [
|
|
268
|
+
y("div", Kt, [
|
|
269
|
+
D(p(ze), { size: "lg" })
|
|
272
270
|
]),
|
|
273
|
-
|
|
271
|
+
y("p", null, [
|
|
274
272
|
E(r.$slots, "default")
|
|
275
273
|
]),
|
|
276
|
-
|
|
274
|
+
y("button", {
|
|
277
275
|
type: "button",
|
|
278
276
|
title: "Close Banner",
|
|
279
277
|
onClick: l
|
|
280
278
|
}, [
|
|
281
|
-
D(
|
|
279
|
+
D(p(we))
|
|
282
280
|
])
|
|
283
281
|
])
|
|
284
282
|
]));
|
|
@@ -286,7 +284,7 @@ const Ie = (e, a, t = void 0) => {
|
|
|
286
284
|
}, Yt = {
|
|
287
285
|
class: "bs-field-details",
|
|
288
286
|
"data-component": "bs-field-details"
|
|
289
|
-
}, Qt = ["id", "data-error"], Xt = ["data-error"],
|
|
287
|
+
}, Qt = ["id", "data-error"], Xt = ["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", Yt, [
|
|
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
|
+
}, A(t.value), 9, Qt)) : w("", !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
|
+
}, A(a.charCount || "0") + " / " + A(a.charMax), 9, Xt)) : w("", !0)
|
|
323
321
|
]));
|
|
324
322
|
}
|
|
325
|
-
}, Zt = ["data-disabled", "for"], Jt = /* @__PURE__ */
|
|
323
|
+
}, Zt = ["data-disabled", "for"], Jt = /* @__PURE__ */ y("span", {
|
|
326
324
|
"data-required": "true",
|
|
327
325
|
"aria-hidden": "true"
|
|
328
|
-
}, " *", -1), _t = /* @__PURE__ */
|
|
326
|
+
}, " *", -1), _t = /* @__PURE__ */ y("span", { class: "visually-hidden" }, "required", -1), ae = {
|
|
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: te(["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
|
-
|
|
341
|
+
y("span", null, [
|
|
344
342
|
E(a.$slots, "default")
|
|
345
343
|
]),
|
|
346
|
-
e.required ? (
|
|
344
|
+
e.required ? (d(), b(G, { key: 0 }, [
|
|
347
345
|
Jt,
|
|
348
346
|
_t
|
|
349
347
|
], 64)) : w("", !0)
|
|
350
348
|
], 10, Zt));
|
|
351
349
|
}
|
|
352
|
-
}, ea = ["data-error", "id", "value"],
|
|
350
|
+
}, ea = ["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 = ie(), r =
|
|
368
|
-
function
|
|
369
|
-
const
|
|
370
|
-
n("update:modelValue",
|
|
365
|
+
const t = e, n = a, l = ie(), r = 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", z({
|
|
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:
|
|
376
|
+
onInput: u
|
|
379
377
|
}, r.value), null, 16, ea));
|
|
380
378
|
}
|
|
381
|
-
}, ta = ["data-disabled", "data-error", "data-variant", "data-multifocus"],
|
|
379
|
+
}, ta = ["data-disabled", "data-error", "data-variant", "data-multifocus"], Te = {
|
|
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,
|
|
@@ -431,20 +429,20 @@ const Ie = (e, a, t = void 0) => {
|
|
|
431
429
|
}
|
|
432
430
|
},
|
|
433
431
|
setup(e) {
|
|
434
|
-
return (a, t) => (
|
|
432
|
+
return (a, t) => (d(), V(Te, {
|
|
435
433
|
disabled: e.disabled,
|
|
436
434
|
error: e.error
|
|
437
435
|
}, {
|
|
438
436
|
default: O(() => [
|
|
439
|
-
D(
|
|
440
|
-
D(
|
|
437
|
+
D(p(ot)),
|
|
438
|
+
D(be, z({
|
|
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
|
+
}, Me(e.listeners)), null, 16, ["disabled", "id", "model-value", "placeholder", "required"])
|
|
448
446
|
]),
|
|
449
447
|
_: 1
|
|
450
448
|
}, 8, ["disabled", "error"]));
|
|
@@ -496,52 +494,52 @@ const na = ["disabled", "id", "model-value"], la = ["disabled", "id", "model-val
|
|
|
496
494
|
},
|
|
497
495
|
emits: ["ui-focusin", "ui-input"],
|
|
498
496
|
setup(e, { emit: a }) {
|
|
499
|
-
const t = a, n =
|
|
500
|
-
function r(
|
|
497
|
+
const t = a, n = g(null), l = g(null);
|
|
498
|
+
function r(i) {
|
|
501
499
|
const c = new Event("change", { bubbles: !0, cancelable: !0 });
|
|
502
|
-
|
|
500
|
+
i.dispatchEvent(c);
|
|
503
501
|
}
|
|
504
|
-
function
|
|
505
|
-
const { value: c } =
|
|
506
|
-
n.value.value =
|
|
502
|
+
function u(i) {
|
|
503
|
+
const { value: c } = i.target, [f, x] = c.split(/ to | - /);
|
|
504
|
+
n.value.value = f || "", l.value.value = x || "", r(n.value), r(l.value);
|
|
507
505
|
}
|
|
508
|
-
const
|
|
509
|
-
function
|
|
510
|
-
t("ui-input"), i
|
|
506
|
+
const o = Ne(u, 1e3);
|
|
507
|
+
function s(i) {
|
|
508
|
+
t("ui-input"), o(i);
|
|
511
509
|
}
|
|
512
|
-
return (
|
|
510
|
+
return (i, c) => (d(), V(Te, {
|
|
513
511
|
disabled: e.disabled,
|
|
514
512
|
error: e.error
|
|
515
513
|
}, {
|
|
516
514
|
default: O(() => [
|
|
517
|
-
D(
|
|
518
|
-
D(
|
|
515
|
+
D(p(ot)),
|
|
516
|
+
D(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) => i.$emit("ui-focusin")),
|
|
524
|
+
onInput: s,
|
|
525
|
+
onChange: u
|
|
528
526
|
}, null, 8, ["disabled", "id", "model-value", "placeholder", "required"]),
|
|
529
|
-
|
|
527
|
+
y("input", z({
|
|
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
|
+
}, Me(e.listeners.start, !0)), null, 16, na),
|
|
535
|
+
y("input", z({
|
|
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
|
+
}, Me(e.listeners.end, !0)), null, 16, la)
|
|
545
543
|
]),
|
|
546
544
|
_: 1
|
|
547
545
|
}, 8, ["disabled", "error"]));
|
|
@@ -554,24 +552,24 @@ function ia(e) {
|
|
|
554
552
|
function ra(e) {
|
|
555
553
|
return e === " " || e === "Spacebar" || e === "Enter";
|
|
556
554
|
}
|
|
557
|
-
function
|
|
555
|
+
function Ze(e) {
|
|
558
556
|
ia(e == null ? void 0 : e.target) && ra(e == null ? void 0 : e.key) && e.preventDefault();
|
|
559
557
|
}
|
|
560
558
|
function sa(e) {
|
|
561
559
|
let a;
|
|
562
|
-
|
|
560
|
+
K(() => {
|
|
563
561
|
var t, n, l;
|
|
564
|
-
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",
|
|
565
|
-
}),
|
|
562
|
+
a = (t = e == null ? void 0 : e.value) == null ? void 0 : t.popoverRef, (l = (n = a == null ? void 0 : a.$el) == null ? void 0 : n.addEventListener) == null || l.call(n, "keydown", Ze);
|
|
563
|
+
}), tt(() => {
|
|
566
564
|
var t, n;
|
|
567
|
-
(n = (t = a == null ? void 0 : a.$el) == null ? void 0 : t.removeEventListener) == null || n.call(t, "keydown",
|
|
565
|
+
(n = (t = a == null ? void 0 : a.$el) == null ? void 0 : t.removeEventListener) == null || n.call(t, "keydown", Ze), a = null;
|
|
568
566
|
});
|
|
569
567
|
}
|
|
570
|
-
function
|
|
568
|
+
function Je(e, a, t = []) {
|
|
571
569
|
let n;
|
|
572
|
-
|
|
570
|
+
at(() => {
|
|
573
571
|
n = window.matchMedia(e), n.addEventListener("change", a), a(n);
|
|
574
|
-
}),
|
|
572
|
+
}), tt(() => {
|
|
575
573
|
n.removeEventListener("change", a), n = null;
|
|
576
574
|
}), t.length && N(t, () => a(n));
|
|
577
575
|
}
|
|
@@ -609,7 +607,7 @@ const je = [
|
|
|
609
607
|
"rows",
|
|
610
608
|
"spellcheck",
|
|
611
609
|
"wrap"
|
|
612
|
-
],
|
|
610
|
+
], pe = [
|
|
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 H(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 ca = ["data-range"],
|
|
637
|
+
const ca = ["data-range"], _e = "(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 =
|
|
700
|
+
const t = e, n = g(null), l = g(1), r = g(null), [u, o] = Q(2), s = g(1), { filtered: i, remaining: c } = H(ie(), [
|
|
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
|
-
sa(n),
|
|
712
|
-
|
|
713
|
-
(
|
|
708
|
+
]), f = v(() => t.inputId || u.value), x = v(() => ({ range: t.isRange })), m = v(() => !!(t.error && t.errorMsg || t.hint)), T = v(() => t.step), S = v(() => t.variant);
|
|
709
|
+
sa(n), Je(
|
|
710
|
+
_e,
|
|
711
|
+
(h) => l.value = h != null && h.matches && S.value == "2-col" ? 2 : 1,
|
|
714
712
|
[S]
|
|
715
|
-
),
|
|
716
|
-
|
|
717
|
-
(
|
|
718
|
-
[
|
|
719
|
-
)
|
|
720
|
-
|
|
721
|
-
return
|
|
713
|
+
), Je(
|
|
714
|
+
_e,
|
|
715
|
+
(h) => s.value = h != null && h.matches && S.value == "2-col" ? T.value : 1,
|
|
716
|
+
[T, S]
|
|
717
|
+
), N(() => {
|
|
718
|
+
var h, C;
|
|
719
|
+
return (C = (h = n.value) == null ? void 0 : h.popoverRef) == null ? void 0 : C.isVisible;
|
|
720
|
+
}, (h) => {
|
|
721
|
+
h && fe($);
|
|
722
|
+
});
|
|
723
|
+
function k(h) {
|
|
724
|
+
return t.isRange && h.start && h.end ? `${h.start} to ${h.end}` : !t.isRange && h ? h : "";
|
|
725
|
+
}
|
|
726
|
+
function q(h) {
|
|
727
|
+
!t.isRange || r.value.contains(h.relatedTarget) || n.value.hidePopover();
|
|
722
728
|
}
|
|
723
|
-
function
|
|
724
|
-
|
|
729
|
+
function $() {
|
|
730
|
+
const h = r.value.querySelector("button.vc-prev"), C = r.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", z({
|
|
727
734
|
ref_key: "container",
|
|
728
735
|
ref: r,
|
|
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(), V(ae, {
|
|
734
741
|
key: 0,
|
|
735
|
-
for:
|
|
742
|
+
for: f.value,
|
|
736
743
|
disabled: e.disabled,
|
|
737
744
|
required: e.required
|
|
738
745
|
}, {
|
|
739
746
|
default: O(() => [
|
|
740
|
-
E(
|
|
741
|
-
|
|
747
|
+
E(h.$slots, "label", {}, () => [
|
|
748
|
+
W(A(e.label), 1)
|
|
742
749
|
])
|
|
743
750
|
]),
|
|
744
751
|
_: 3
|
|
745
752
|
}, 8, ["for", "disabled", "required"])) : w("", !0),
|
|
746
|
-
D(
|
|
753
|
+
D(p(kt), z({
|
|
747
754
|
ref_key: "calendar",
|
|
748
755
|
ref: n,
|
|
749
756
|
columns: l.value,
|
|
@@ -752,46 +759,46 @@ 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": x.value,
|
|
756
763
|
popover: { visibility: "focus" },
|
|
757
764
|
rows: 1,
|
|
758
|
-
step:
|
|
759
|
-
"onUpdate:modelValue":
|
|
760
|
-
},
|
|
761
|
-
default: O(({ inputValue:
|
|
762
|
-
e.isRange ? (
|
|
765
|
+
step: s.value,
|
|
766
|
+
"onUpdate:modelValue": C[0] || (C[0] = (I) => h.$emit("update:modelValue", I))
|
|
767
|
+
}, p(i)), {
|
|
768
|
+
default: O(({ inputValue: I, inputEvents: P, showPopover: F }) => [
|
|
769
|
+
e.isRange ? (d(), V(oa, {
|
|
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": k(
|
|
771
|
-
listeners:
|
|
773
|
+
"hidden-end-ref": h.inputEnd,
|
|
774
|
+
"hidden-start-ref": h.inputStart,
|
|
775
|
+
"input-id": f.value,
|
|
776
|
+
"input-value": I,
|
|
777
|
+
"input-value-fmt": k(I),
|
|
778
|
+
listeners: P,
|
|
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: F,
|
|
782
|
+
onUiInput: F
|
|
783
|
+
}, null, 8, ["disabled", "error", "hidden-end-ref", "hidden-start-ref", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (d(), V(aa, {
|
|
777
784
|
key: 0,
|
|
778
785
|
disabled: e.disabled,
|
|
779
786
|
error: e.error,
|
|
780
|
-
"input-id":
|
|
781
|
-
listeners:
|
|
782
|
-
"model-value": k(
|
|
787
|
+
"input-id": f.value,
|
|
788
|
+
listeners: P,
|
|
789
|
+
"model-value": k(I),
|
|
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
|
+
m.value ? (d(), V(he, {
|
|
790
797
|
key: 1,
|
|
791
798
|
error: e.error,
|
|
792
799
|
"error-msg": e.errorMsg,
|
|
793
800
|
hint: e.hint,
|
|
794
|
-
"hint-id":
|
|
801
|
+
"hint-id": p(o)
|
|
795
802
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : w("", !0)
|
|
796
803
|
], 16, ca));
|
|
797
804
|
}
|
|
@@ -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 = ie(), { rootTag: n, attrsToBind: l, hrefUrl: r } =
|
|
813
|
-
return (
|
|
819
|
+
const a = e, t = ie(), { rootTag: n, attrsToBind: l, hrefUrl: r } = ke(a, t), { onLinkClick: u } = Ie(a);
|
|
820
|
+
return (o, s) => (d(), V(J(p(n)), z({
|
|
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
|
-
},
|
|
827
|
+
".href": p(r)
|
|
828
|
+
}, p(l), { onClick: p(u) }), {
|
|
822
829
|
default: O(() => [
|
|
823
|
-
E(
|
|
830
|
+
E(o.$slots, "default")
|
|
824
831
|
]),
|
|
825
832
|
_: 3
|
|
826
833
|
}, 48, ["data-ghost", "data-size", "data-text", "data-variant", ".href", "onClick"]));
|
|
827
834
|
}
|
|
828
|
-
}), pa = { "data-component": "bs-chart-table" }, va = ["summary"], ha = ["colspan"], ba = /* @__PURE__ */
|
|
835
|
+
}), pa = { "data-component": "bs-chart-table" }, va = ["summary"], ha = ["colspan"], ba = /* @__PURE__ */ y("th", { scope: "col" }, " Dataset ", -1), ma = { scope: "row" }, ga = {
|
|
829
836
|
__name: "BsChartTable",
|
|
830
837
|
props: {
|
|
831
838
|
data: {
|
|
@@ -844,30 +851,30 @@ 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", pa, [
|
|
855
|
+
y("table", { summary: e.tableTitle }, [
|
|
856
|
+
y("thead", null, [
|
|
857
|
+
y("tr", null, [
|
|
858
|
+
y("th", {
|
|
852
859
|
colspan: ((n = e.dataIdxLabels) == null ? void 0 : n.length) + 1
|
|
853
|
-
},
|
|
860
|
+
}, A(e.tableTitle), 9, ha)
|
|
854
861
|
]),
|
|
855
|
-
|
|
862
|
+
y("tr", null, [
|
|
856
863
|
ba,
|
|
857
|
-
(
|
|
864
|
+
(d(!0), b(G, null, Z(e.dataIdxLabels, (l) => (d(), b("th", {
|
|
858
865
|
key: l,
|
|
859
866
|
scope: "col"
|
|
860
|
-
},
|
|
867
|
+
}, A(l), 1))), 128))
|
|
861
868
|
])
|
|
862
869
|
]),
|
|
863
|
-
|
|
864
|
-
(
|
|
870
|
+
y("tbody", null, [
|
|
871
|
+
(d(!0), b(G, null, Z(e.data, (l) => (d(), b("tr", {
|
|
865
872
|
key: l.label
|
|
866
873
|
}, [
|
|
867
|
-
|
|
868
|
-
(
|
|
869
|
-
key: `${r}${
|
|
870
|
-
},
|
|
874
|
+
y("th", ma, A(l.label), 1),
|
|
875
|
+
(d(!0), b(G, null, Z(l.data, (r, u) => (d(), b("td", {
|
|
876
|
+
key: `${r}${u}`
|
|
877
|
+
}, A(r), 1))), 128))
|
|
871
878
|
]))), 128))
|
|
872
879
|
])
|
|
873
880
|
], 8, va)
|
|
@@ -880,13 +887,13 @@ const ca = ["data-range"], et = "(min-width: 752px)", El = /* @__PURE__ */ Objec
|
|
|
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
893
|
const r = document.createElement("span");
|
|
887
894
|
r.style.setProperty("--item-box-fill", n.fillStyle), r.style.setProperty("--item-box-stroke", n.strokeStyle);
|
|
888
|
-
const
|
|
889
|
-
|
|
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(r), l.appendChild(o), e.appendChild(l);
|
|
890
897
|
});
|
|
891
898
|
}
|
|
892
899
|
}), Ba = ({ type: e, datasets: a, labels: t, tooltips: n }) => ({
|
|
@@ -924,7 +931,7 @@ function $a(e) {
|
|
|
924
931
|
const Sa = {
|
|
925
932
|
class: "bs-chart-bar",
|
|
926
933
|
"data-component": "bs-chart-bar"
|
|
927
|
-
}, wa = ["aria-label"], ka = ["data-hidden"],
|
|
934
|
+
}, wa = ["aria-label"], ka = ["data-hidden"], El = {
|
|
928
935
|
__name: "BsChartBar",
|
|
929
936
|
props: {
|
|
930
937
|
chartTitle: {
|
|
@@ -978,16 +985,16 @@ const Sa = {
|
|
|
978
985
|
}
|
|
979
986
|
},
|
|
980
987
|
setup(e) {
|
|
981
|
-
const a = e, t =
|
|
988
|
+
const a = e, t = g(null), n = g(null);
|
|
982
989
|
let l;
|
|
983
|
-
const r =
|
|
990
|
+
const r = 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 = Ba(c);
|
|
997
|
+
return f.plugins = [ya(n.value)], f.options.scales = {
|
|
991
998
|
x: {
|
|
992
999
|
grid: {
|
|
993
1000
|
display: a.showXGrid
|
|
@@ -1008,38 +1015,38 @@ 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: $a(
|
|
1021
|
+
backgroundColor: $a(f),
|
|
1015
1022
|
categoryPercentage: a.data.length > 1 ? 0.5 : 0.33
|
|
1016
|
-
}))),
|
|
1017
|
-
!l || c ===
|
|
1018
|
-
}, 100),
|
|
1023
|
+
}))), o = v(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`), s = Ne(function(c, f) {
|
|
1024
|
+
!l || c === f || (l.options = r.value.options, l.update());
|
|
1025
|
+
}, 100), i = Ne(function() {
|
|
1019
1026
|
l && (l.data = r.value.data, l.update());
|
|
1020
1027
|
}, 100);
|
|
1021
|
-
return
|
|
1028
|
+
return K(() => {
|
|
1022
1029
|
qe.register(It, Ct, Tt, xt, At, Lt), qe.defaults.font.family = "'Roobert', sans-serif", l = new qe(t.value, r.value);
|
|
1023
|
-
}), N(() => a.showLegend,
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
"aria-label":
|
|
1030
|
+
}), N(() => a.showLegend, s), N(() => a.showTooltips, s), N(() => a.showXGrid, s), N(() => a.showYGrid, s), N(() => a.stacked, s), N(() => a.xLabel, s), N(() => a.yLabel, s), N(() => a.data, i), N(() => a.dataIdxLabels, i), (c, f) => (d(), b("div", Sa, [
|
|
1031
|
+
y("figure", null, [
|
|
1032
|
+
y("div", null, [
|
|
1033
|
+
y("canvas", {
|
|
1034
|
+
"aria-label": o.value,
|
|
1028
1035
|
ref_key: "canvas",
|
|
1029
1036
|
ref: t,
|
|
1030
1037
|
role: "img"
|
|
1031
1038
|
}, null, 8, wa)
|
|
1032
1039
|
]),
|
|
1033
|
-
|
|
1040
|
+
y("div", null, [
|
|
1034
1041
|
D(ga, {
|
|
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
|
+
y("figcaption", {
|
|
1040
1047
|
"data-hidden": !e.showLegend
|
|
1041
1048
|
}, [
|
|
1042
|
-
|
|
1049
|
+
y("ul", {
|
|
1043
1050
|
ref_key: "legendList",
|
|
1044
1051
|
ref: n
|
|
1045
1052
|
}, null, 512)
|
|
@@ -1048,7 +1055,7 @@ const Sa = {
|
|
|
1048
1055
|
])
|
|
1049
1056
|
]));
|
|
1050
1057
|
}
|
|
1051
|
-
}, Ia = ["data-size"], Ca = ["checked", "data-error", "disabled", "id", "required", "value"],
|
|
1058
|
+
}, Ia = ["data-size"], Ca = ["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,54 +1118,54 @@ 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] = Q(), r = v(() => je.concat(t.passAttrs.split(","))), u = g(null), o = v(() => t.inputId || l.value), s = v(() => t.checked || f.value), i = 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 x() {
|
|
1123
|
+
u.value && (u.value.indeterminate = i.value && !s.value);
|
|
1117
1124
|
}
|
|
1118
|
-
function
|
|
1125
|
+
function m(k) {
|
|
1119
1126
|
n("update:modelValue", k);
|
|
1120
1127
|
}
|
|
1121
|
-
function
|
|
1128
|
+
function T(k) {
|
|
1122
1129
|
const q = [...t.modelValue];
|
|
1123
1130
|
k ? q.push(t.value) : q.splice(q.indexOf(t.value), 1), n("update:modelValue", q);
|
|
1124
1131
|
}
|
|
1125
1132
|
function S(k) {
|
|
1126
1133
|
const { checked: q } = k.target;
|
|
1127
|
-
c.value ?
|
|
1134
|
+
c.value ? T(q) : m(q);
|
|
1128
1135
|
}
|
|
1129
|
-
return N(
|
|
1136
|
+
return N(s, x), N(i, x), K(x), (k, q) => (d(), b("div", z({
|
|
1130
1137
|
class: "bs-boolean",
|
|
1131
1138
|
"data-component": "bs-checkbox",
|
|
1132
1139
|
"data-size": e.size
|
|
1133
|
-
},
|
|
1134
|
-
|
|
1140
|
+
}, p(H)(k.$attrs, r.value).remaining), [
|
|
1141
|
+
y("input", z({
|
|
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: k.$attrs.id ||
|
|
1147
|
+
id: k.$attrs.id || o.value,
|
|
1141
1148
|
required: e.required,
|
|
1142
1149
|
value: e.value || "on",
|
|
1143
1150
|
type: "checkbox",
|
|
1144
1151
|
onChange: S
|
|
1145
|
-
},
|
|
1146
|
-
e.label || k.$slots.label ? (
|
|
1152
|
+
}, p(H)(k.$attrs, r.value).filtered), null, 16, Ca),
|
|
1153
|
+
e.label || k.$slots.label ? (d(), V(ae, {
|
|
1147
1154
|
key: 0,
|
|
1148
|
-
for: k.$attrs.id ||
|
|
1155
|
+
for: k.$attrs.id || o.value,
|
|
1149
1156
|
disabled: e.disabled,
|
|
1150
1157
|
required: e.required
|
|
1151
1158
|
}, {
|
|
1152
1159
|
default: O(() => [
|
|
1153
1160
|
E(k.$slots, "label", {}, () => [
|
|
1154
|
-
|
|
1161
|
+
W(A(e.label), 1)
|
|
1155
1162
|
])
|
|
1156
1163
|
]),
|
|
1157
1164
|
_: 3
|
|
1158
1165
|
}, 8, ["for", "disabled", "required"])) : w("", !0)
|
|
1159
1166
|
], 16, Ia));
|
|
1160
1167
|
}
|
|
1161
|
-
}),
|
|
1168
|
+
}), Ta = { key: 0 }, xa = { class: "bs-circle-button-icon" }, Aa = { key: 1 }, Ol = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1162
1169
|
__name: "BsCircleButton",
|
|
1163
1170
|
props: {
|
|
1164
1171
|
disabled: {
|
|
@@ -1204,32 +1211,32 @@ const Sa = {
|
|
|
1204
1211
|
}
|
|
1205
1212
|
},
|
|
1206
1213
|
setup(e) {
|
|
1207
|
-
const a = e, t = ie(), { rootTag: n, attrsToBind: l, hrefUrl: r } =
|
|
1214
|
+
const a = e, t = ie(), { rootTag: n, attrsToBind: l, hrefUrl: r } = ke(a, t), { icon: u } = ye(a, "icon"), { onLinkClick: o } = Ie(a), s = v(() => a.textBtn ? {} : a.href ? { title: a.label } : { "aria-label": a.label }), i = 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 (x, m) => (d(), V(J(p(n)), z({
|
|
1212
1219
|
class: "bs-circle-button",
|
|
1213
1220
|
"data-disabled": e.disabled,
|
|
1214
|
-
"data-direction":
|
|
1221
|
+
"data-direction": i.value,
|
|
1215
1222
|
"data-ghost": e.ghostBtn,
|
|
1216
1223
|
"data-size": e.size,
|
|
1217
1224
|
"data-text": e.textBtn,
|
|
1218
|
-
".href":
|
|
1219
|
-
}, { ...
|
|
1225
|
+
".href": p(r)
|
|
1226
|
+
}, { ...p(l), ...s.value }, { onClick: p(o) }), {
|
|
1220
1227
|
default: O(() => [
|
|
1221
|
-
c.value ? (
|
|
1222
|
-
|
|
1223
|
-
E(
|
|
1224
|
-
(
|
|
1228
|
+
c.value ? (d(), b("span", Ta, A(e.label), 1)) : w("", !0),
|
|
1229
|
+
y("span", xa, [
|
|
1230
|
+
E(x.$slots, "icon", {}, () => [
|
|
1231
|
+
(d(), V(J(p(u)), { size: e.size }, null, 8, ["size"]))
|
|
1225
1232
|
])
|
|
1226
1233
|
]),
|
|
1227
|
-
|
|
1234
|
+
f.value ? (d(), b("span", Aa, A(e.label), 1)) : w("", !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
|
+
}), xe = {
|
|
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
|
|
1277
|
-
const { duration:
|
|
1282
|
+
const t = e, n = a, l = [], r = t.preloaded && t.shown;
|
|
1283
|
+
function u(i, c) {
|
|
1284
|
+
const { duration: f, enterClass: x, enterAttribute: m } = t;
|
|
1278
1285
|
l.push(setTimeout(() => {
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
},
|
|
1286
|
+
x && i.classList.add(x), m && i.setAttribute(m, ""), l.push(setTimeout(() => {
|
|
1287
|
+
c();
|
|
1288
|
+
}, f)), n("enter", i);
|
|
1282
1289
|
}));
|
|
1283
1290
|
}
|
|
1284
|
-
function
|
|
1291
|
+
function o(i, c) {
|
|
1285
1292
|
const {
|
|
1286
|
-
duration:
|
|
1287
|
-
enterClass:
|
|
1288
|
-
enterAttribute:
|
|
1289
|
-
leaveClass:
|
|
1290
|
-
leaveAttribute:
|
|
1293
|
+
duration: f,
|
|
1294
|
+
enterClass: x,
|
|
1295
|
+
enterAttribute: m,
|
|
1296
|
+
leaveClass: T,
|
|
1297
|
+
leaveAttribute: S
|
|
1291
1298
|
} = t;
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
},
|
|
1299
|
+
i.classList.remove(x), i.removeAttribute(m), T && i.classList.add(T), S && i.setAttribute(S, ""), l.push(setTimeout(() => {
|
|
1300
|
+
c();
|
|
1301
|
+
}, f)), n("leave", i);
|
|
1295
1302
|
}
|
|
1296
|
-
function i
|
|
1297
|
-
const { leaveClass:
|
|
1298
|
-
|
|
1303
|
+
function s(i) {
|
|
1304
|
+
const { leaveClass: c, leaveAttribute: f } = t;
|
|
1305
|
+
i.classList.remove(c), i.removeAttribute(f), n("after-leave", i);
|
|
1299
1306
|
}
|
|
1300
1307
|
return oe(() => {
|
|
1301
|
-
l.forEach((
|
|
1302
|
-
clearTimeout(
|
|
1308
|
+
l.forEach((i) => {
|
|
1309
|
+
clearTimeout(i);
|
|
1303
1310
|
});
|
|
1304
|
-
}), (
|
|
1311
|
+
}), (i, c) => e.preloaded ? $e((d(), V(Ke, {
|
|
1305
1312
|
key: 0,
|
|
1313
|
+
appear: p(r),
|
|
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
1324
|
default: O(() => [
|
|
1317
|
-
E(
|
|
1325
|
+
E(i.$slots, "default")
|
|
1318
1326
|
]),
|
|
1319
1327
|
_: 3
|
|
1320
|
-
},
|
|
1321
|
-
[
|
|
1322
|
-
]) : (
|
|
1328
|
+
}, 8, ["appear"])), [
|
|
1329
|
+
[Se, e.shown]
|
|
1330
|
+
]) : (d(), V(Ke, {
|
|
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
1343
|
default: O(() => [
|
|
1336
|
-
e.shown ? E(
|
|
1344
|
+
e.shown ? E(i.$slots, "default", { key: 0 }) : w("", !0)
|
|
1337
1345
|
]),
|
|
1338
1346
|
_: 3
|
|
1339
1347
|
}));
|
|
1340
1348
|
}
|
|
1341
|
-
},
|
|
1342
|
-
const n =
|
|
1343
|
-
let
|
|
1344
|
-
return
|
|
1345
|
-
e && (n.value = a ||
|
|
1349
|
+
}, La = (e, a = void 0, t = "relative") => {
|
|
1350
|
+
const n = g(null), l = g(null), r = g(!1);
|
|
1351
|
+
let u = !1;
|
|
1352
|
+
return K(() => {
|
|
1353
|
+
e && (n.value = a || nt(), document.getElementById(n.value) ? (l.value = document.getElementById(n.value), u = !0) : (l.value = document.createElement("div"), l.value.id = n.value, l.value.style.position = t, document.body.insertAdjacentElement("afterbegin", l.value)), r.value = !0);
|
|
1346
1354
|
}), oe(() => {
|
|
1347
|
-
var
|
|
1348
|
-
e && !
|
|
1355
|
+
var o;
|
|
1356
|
+
e && !u && ((o = document.getElementById(n.value)) == null || o.remove());
|
|
1349
1357
|
}), { breakoutId: n, breakoutStub: l, breakoutMounted: r };
|
|
1350
|
-
},
|
|
1358
|
+
}, Va = {
|
|
1351
1359
|
key: 0,
|
|
1352
1360
|
class: "bs-dropdown-backdrop"
|
|
1353
|
-
},
|
|
1361
|
+
}, Ea = ["data-width", "data-no-mobile"], Da = { key: 0 }, Oa = { key: 0 }, qa = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1354
1362
|
__name: "BsDropdownNew",
|
|
1355
1363
|
props: {
|
|
1356
1364
|
anchorId: {
|
|
@@ -1403,101 +1411,101 @@ const Sa = {
|
|
|
1403
1411
|
"after-leave"
|
|
1404
1412
|
],
|
|
1405
1413
|
setup(e, { emit: a }) {
|
|
1406
|
-
const t = e, n = a, l =
|
|
1407
|
-
qt([r,
|
|
1408
|
-
|
|
1409
|
-
}),
|
|
1410
|
-
|
|
1411
|
-
}), re("dropdownAfterEnter",
|
|
1412
|
-
const
|
|
1413
|
-
r.value.style.setProperty(
|
|
1414
|
+
const t = e, n = a, l = g(null), r = g(null), u = g(!1), o = v(() => document.getElementById(t.anchorId)), s = v(() => t.breakout ? f.value : t.containerId ? document.getElementById(t.containerId) : l.value), i = v(() => t.breakout ? x.value : !0), c = v(() => t.width === "anchor" ? void 0 : t.width), { breakoutStub: f, breakoutMounted: x } = La(t.breakout, t.containerId);
|
|
1415
|
+
qt([r, o], () => {
|
|
1416
|
+
u.value && n("close");
|
|
1417
|
+
}), Ce(["Escape"], () => {
|
|
1418
|
+
u.value && n("close");
|
|
1419
|
+
}), re("dropdownAfterEnter", u), re("dropdownShown", v(() => t.shown));
|
|
1420
|
+
const m = (I, P) => {
|
|
1421
|
+
r.value.style.setProperty(I, P);
|
|
1414
1422
|
};
|
|
1415
|
-
function
|
|
1416
|
-
const
|
|
1417
|
-
S(
|
|
1423
|
+
function T() {
|
|
1424
|
+
const I = s.value.getBoundingClientRect(), P = o.value.getBoundingClientRect(), F = r.value.getBoundingClientRect();
|
|
1425
|
+
S(I, P), k(I, P, F);
|
|
1418
1426
|
}
|
|
1419
|
-
function S(
|
|
1427
|
+
function S(I, P) {
|
|
1420
1428
|
if (t.position === "top") {
|
|
1421
|
-
const
|
|
1422
|
-
|
|
1429
|
+
const F = I.bottom - P.bottom;
|
|
1430
|
+
m("--dropdown-wscreen-top", "auto"), m("--dropdown-wscreen-bottom", `${F + P.height + 8}px`);
|
|
1423
1431
|
} else {
|
|
1424
|
-
const
|
|
1425
|
-
|
|
1432
|
+
const F = P.top - I.top;
|
|
1433
|
+
m("--dropdown-wscreen-top", `${F + P.height + 8}px`), m("--dropdown-wscreen-bottom", "auto");
|
|
1426
1434
|
}
|
|
1427
1435
|
}
|
|
1428
|
-
function k(
|
|
1436
|
+
function k(I, P, F) {
|
|
1429
1437
|
if (t.width !== "anchor") {
|
|
1430
|
-
const
|
|
1438
|
+
const ne = P.left - I.left;
|
|
1431
1439
|
if (t.position === "center") {
|
|
1432
|
-
const
|
|
1433
|
-
|
|
1440
|
+
const X = (P.width - F.width) / 2;
|
|
1441
|
+
m("--dropdown-wscreen-left", `${ne + X}px`), m("--dropdown-wscreen-right", "auto");
|
|
1434
1442
|
} else if (t.position === "right") {
|
|
1435
|
-
const
|
|
1436
|
-
|
|
1443
|
+
const X = I.right - P.right;
|
|
1444
|
+
m("--dropdown-wscreen-left", "auto"), m("--dropdown-wscreen-right", `${X}px`);
|
|
1437
1445
|
} else
|
|
1438
|
-
|
|
1446
|
+
m("--dropdown-wscreen-left", `${ne}px`), m("--dropdown-wscreen-right", "auto");
|
|
1439
1447
|
}
|
|
1440
1448
|
}
|
|
1441
1449
|
function q() {
|
|
1442
1450
|
if (t.width === "anchor") {
|
|
1443
|
-
const
|
|
1444
|
-
|
|
1451
|
+
const I = o.value.getBoundingClientRect();
|
|
1452
|
+
m("--dropdown-wscreen-width", `${I.width}px`);
|
|
1445
1453
|
} else
|
|
1446
|
-
|
|
1454
|
+
m("--dropdown-wscreen-width", "");
|
|
1447
1455
|
}
|
|
1448
|
-
function
|
|
1449
|
-
|
|
1456
|
+
function $() {
|
|
1457
|
+
T(), q(), n("enter");
|
|
1450
1458
|
}
|
|
1451
|
-
function
|
|
1452
|
-
|
|
1459
|
+
function h() {
|
|
1460
|
+
u.value = !0, n("after-enter");
|
|
1453
1461
|
}
|
|
1454
|
-
function
|
|
1455
|
-
|
|
1462
|
+
function C() {
|
|
1463
|
+
u.value = !1, n("after-leave");
|
|
1456
1464
|
}
|
|
1457
|
-
return (
|
|
1458
|
-
e.useMobileStyle && e.shown ? (
|
|
1459
|
-
|
|
1465
|
+
return (I, P) => (d(), b(G, null, [
|
|
1466
|
+
e.useMobileStyle && e.shown ? (d(), b("div", Va)) : w("", !0),
|
|
1467
|
+
i.value ? (d(), V(ct, {
|
|
1460
1468
|
key: 1,
|
|
1461
1469
|
disabled: !e.breakout,
|
|
1462
|
-
to: e.breakout ? f
|
|
1470
|
+
to: e.breakout ? p(f) : void 0
|
|
1463
1471
|
}, [
|
|
1464
|
-
|
|
1472
|
+
y("div", {
|
|
1465
1473
|
ref_key: "containerRef",
|
|
1466
1474
|
ref: l,
|
|
1467
1475
|
style: ft(e.breakout || e.containerId ? void 0 : { position: "relative" })
|
|
1468
1476
|
}, [
|
|
1469
|
-
D(
|
|
1477
|
+
D(xe, {
|
|
1470
1478
|
shown: e.shown,
|
|
1471
1479
|
preloaded: e.preloaded,
|
|
1472
1480
|
duration: 75,
|
|
1473
1481
|
"enter-attribute": "data-shown",
|
|
1474
|
-
onAfterEnter:
|
|
1475
|
-
onEnter:
|
|
1476
|
-
onAfterLeave:
|
|
1482
|
+
onAfterEnter: h,
|
|
1483
|
+
onEnter: $,
|
|
1484
|
+
onAfterLeave: C
|
|
1477
1485
|
}, {
|
|
1478
1486
|
default: O(() => [
|
|
1479
|
-
|
|
1487
|
+
y("div", z({
|
|
1480
1488
|
ref_key: "dropdownRef",
|
|
1481
1489
|
ref: r,
|
|
1482
1490
|
class: "bs-dropdown",
|
|
1483
1491
|
"data-width": c.value,
|
|
1484
1492
|
"data-no-mobile": !e.useMobileStyle
|
|
1485
|
-
},
|
|
1486
|
-
e.helperText ? (
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
e.helperDescription ? (
|
|
1493
|
+
}, I.$attrs), [
|
|
1494
|
+
e.helperText ? (d(), b("header", Da, [
|
|
1495
|
+
y("div", null, [
|
|
1496
|
+
y("h3", null, A(e.helperText), 1),
|
|
1497
|
+
e.helperDescription ? (d(), b("p", Oa, A(e.helperDescription), 1)) : w("", !0)
|
|
1490
1498
|
]),
|
|
1491
|
-
|
|
1499
|
+
y("button", {
|
|
1492
1500
|
type: "button",
|
|
1493
1501
|
title: "close",
|
|
1494
|
-
onClick:
|
|
1502
|
+
onClick: P[0] || (P[0] = () => n("close"))
|
|
1495
1503
|
}, [
|
|
1496
|
-
D(
|
|
1504
|
+
D(p(we))
|
|
1497
1505
|
])
|
|
1498
1506
|
])) : w("", !0),
|
|
1499
|
-
E(
|
|
1500
|
-
], 16,
|
|
1507
|
+
E(I.$slots, "default")
|
|
1508
|
+
], 16, Ea)
|
|
1501
1509
|
]),
|
|
1502
1510
|
_: 3
|
|
1503
1511
|
}, 8, ["shown", "preloaded"])
|
|
@@ -1505,12 +1513,12 @@ const Sa = {
|
|
|
1505
1513
|
], 8, ["disabled", "to"])) : w("", !0)
|
|
1506
1514
|
], 64));
|
|
1507
1515
|
}
|
|
1508
|
-
},
|
|
1516
|
+
}), it = {
|
|
1509
1517
|
__name: "BsDropdown",
|
|
1510
1518
|
props: {
|
|
1511
1519
|
anchorId: {
|
|
1512
1520
|
type: String,
|
|
1513
|
-
|
|
1521
|
+
default: void 0
|
|
1514
1522
|
},
|
|
1515
1523
|
shown: {
|
|
1516
1524
|
type: Boolean,
|
|
@@ -1595,25 +1603,25 @@ const Sa = {
|
|
|
1595
1603
|
"after-leave"
|
|
1596
1604
|
],
|
|
1597
1605
|
setup(e, { emit: a }) {
|
|
1598
|
-
const t = e, n = a, { transition: l } =
|
|
1599
|
-
return (
|
|
1600
|
-
"anchor-id":
|
|
1606
|
+
const t = e, n = a, { transition: l } = ve(t), r = 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);
|
|
1607
|
+
return (s, i) => (d(), V(qa, {
|
|
1608
|
+
"anchor-id": o.value,
|
|
1601
1609
|
breakout: e.breakout,
|
|
1602
1610
|
"container-id": e.containerId,
|
|
1603
1611
|
"helper-description": e.helperDescription,
|
|
1604
1612
|
"helper-text": e.helperText,
|
|
1605
|
-
position:
|
|
1613
|
+
position: u.value,
|
|
1606
1614
|
preloaded: e.preloaded,
|
|
1607
|
-
shown:
|
|
1615
|
+
shown: p(l),
|
|
1608
1616
|
"use-mobile-style": e.useMobileStyle,
|
|
1609
1617
|
width: r.value,
|
|
1610
|
-
onClose:
|
|
1611
|
-
onEnter:
|
|
1612
|
-
onAfterEnter:
|
|
1613
|
-
onAfterLeave:
|
|
1618
|
+
onClose: i[0] || (i[0] = () => n("close")),
|
|
1619
|
+
onEnter: i[1] || (i[1] = () => n("enter")),
|
|
1620
|
+
onAfterEnter: i[2] || (i[2] = () => n("after-enter")),
|
|
1621
|
+
onAfterLeave: i[3] || (i[3] = () => n("after-leave"))
|
|
1614
1622
|
}, {
|
|
1615
1623
|
default: O(() => [
|
|
1616
|
-
E(
|
|
1624
|
+
E(s.$slots, "default")
|
|
1617
1625
|
]),
|
|
1618
1626
|
_: 3
|
|
1619
1627
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
|
|
@@ -1631,7 +1639,7 @@ const Sa = {
|
|
|
1631
1639
|
},
|
|
1632
1640
|
label: {
|
|
1633
1641
|
type: String,
|
|
1634
|
-
default:
|
|
1642
|
+
default: "Select an option"
|
|
1635
1643
|
},
|
|
1636
1644
|
modelValue: {
|
|
1637
1645
|
type: [String, Number],
|
|
@@ -1654,110 +1662,110 @@ const Sa = {
|
|
|
1654
1662
|
},
|
|
1655
1663
|
emits: ["optselected", "update:modelValue", "close"],
|
|
1656
1664
|
setup(e, { expose: a, emit: t }) {
|
|
1657
|
-
const n = e, l = t, r =
|
|
1658
|
-
let
|
|
1659
|
-
re("handleSelect",
|
|
1660
|
-
|
|
1665
|
+
const n = e, l = t, r = g(null), u = g(null), o = g(-1), s = g(null), i = se("dropdownAfterEnter"), c = se("dropdownShown", !1);
|
|
1666
|
+
let f = -1;
|
|
1667
|
+
re("handleSelect", $), re("optionsId", v(() => n.optionsId)), K(() => {
|
|
1668
|
+
m(), T(), document.addEventListener("keydown", k);
|
|
1661
1669
|
}), oe(() => {
|
|
1662
1670
|
document.removeEventListener("keydown", k);
|
|
1663
|
-
}), N(
|
|
1664
|
-
var
|
|
1665
|
-
|
|
1666
|
-
}), N(c,
|
|
1667
|
-
const
|
|
1668
|
-
function
|
|
1669
|
-
|
|
1671
|
+
}), N(i, (h) => {
|
|
1672
|
+
var C, I;
|
|
1673
|
+
h && f > -1 && (n.focusOnShow ? (C = s.value[f]) == null || C.focus() : (I = s.value[f]) == null || I.scrollIntoView({ block: "nearest" }));
|
|
1674
|
+
}), N(c, T);
|
|
1675
|
+
const x = v(() => n.modelValue || n.selectedValue);
|
|
1676
|
+
function m() {
|
|
1677
|
+
s.value = Array.from(
|
|
1670
1678
|
r.value.querySelectorAll('[data-component="bs-dropdown-option"]')
|
|
1671
1679
|
);
|
|
1672
1680
|
}
|
|
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 (
|
|
1681
|
+
function T() {
|
|
1682
|
+
var h, C;
|
|
1683
|
+
c.value && !n.multiselect ? (f = s.value.findIndex(
|
|
1684
|
+
(I) => I.getAttribute("data-value") === String(x.value)
|
|
1685
|
+
), s.value.forEach((I) => {
|
|
1686
|
+
var P;
|
|
1687
|
+
return (P = I == null ? void 0 : I.setAttribute) == null ? void 0 : P.call(I, "aria-selected", "false");
|
|
1688
|
+
}), f > -1 && ((h = s.value[f]) == null || h.setAttribute("data-selected", ""), (C = s.value[f]) == null || C.setAttribute("aria-selected", "true"), o.value = f)) : (s.value.forEach((I) => {
|
|
1689
|
+
var P;
|
|
1690
|
+
return (P = I == null ? void 0 : I.removeAttribute) == null ? void 0 : P.call(I, "data-selected");
|
|
1691
|
+
}), s.value.forEach((I) => {
|
|
1692
|
+
var P;
|
|
1693
|
+
return (P = I == null ? void 0 : I.removeAttribute) == null ? void 0 : P.call(I, "aria-selected");
|
|
1686
1694
|
}));
|
|
1687
1695
|
}
|
|
1688
|
-
|
|
1696
|
+
Pt(
|
|
1689
1697
|
r,
|
|
1690
1698
|
() => {
|
|
1691
|
-
|
|
1699
|
+
m();
|
|
1692
1700
|
},
|
|
1693
1701
|
{ childList: !0 }
|
|
1694
1702
|
);
|
|
1695
1703
|
function S() {
|
|
1696
|
-
var
|
|
1697
|
-
|
|
1704
|
+
var h;
|
|
1705
|
+
o.value > -1 && ((h = s.value[o.value]) == null || h.blur());
|
|
1698
1706
|
}
|
|
1699
|
-
function k(
|
|
1707
|
+
function k(h) {
|
|
1700
1708
|
if (c.value)
|
|
1701
|
-
switch (
|
|
1709
|
+
switch (h.key) {
|
|
1702
1710
|
case "ArrowDown":
|
|
1703
|
-
q("down"),
|
|
1711
|
+
q("down"), h.preventDefault();
|
|
1704
1712
|
break;
|
|
1705
1713
|
case "ArrowUp":
|
|
1706
|
-
q("up"),
|
|
1714
|
+
q("up"), h.preventDefault();
|
|
1707
1715
|
break;
|
|
1708
1716
|
case "Home":
|
|
1709
|
-
q("home"),
|
|
1717
|
+
q("home"), h.preventDefault();
|
|
1710
1718
|
break;
|
|
1711
1719
|
case "End":
|
|
1712
|
-
q("end"),
|
|
1720
|
+
q("end"), h.preventDefault();
|
|
1713
1721
|
break;
|
|
1714
1722
|
case "Tab":
|
|
1715
|
-
|
|
1723
|
+
o.value = f, n.preventTab && h.preventDefault();
|
|
1716
1724
|
break;
|
|
1717
1725
|
}
|
|
1718
1726
|
}
|
|
1719
|
-
function q(
|
|
1720
|
-
let
|
|
1721
|
-
switch (
|
|
1727
|
+
function q(h) {
|
|
1728
|
+
let C;
|
|
1729
|
+
switch (h) {
|
|
1722
1730
|
case "up":
|
|
1723
|
-
|
|
1731
|
+
C = o.value - 1 < 0 ? s.value.length - 1 : o.value - 1;
|
|
1724
1732
|
break;
|
|
1725
1733
|
case "down":
|
|
1726
|
-
|
|
1734
|
+
C = (o.value + 1) % s.value.length;
|
|
1727
1735
|
break;
|
|
1728
1736
|
case "home":
|
|
1729
|
-
|
|
1737
|
+
C = 0;
|
|
1730
1738
|
break;
|
|
1731
1739
|
case "end":
|
|
1732
|
-
|
|
1740
|
+
C = s.value.length - 1;
|
|
1733
1741
|
break;
|
|
1734
1742
|
}
|
|
1735
|
-
S(),
|
|
1743
|
+
S(), s.value[C].focus(), u.value = s.value[C].id, o.value = C;
|
|
1736
1744
|
}
|
|
1737
|
-
function
|
|
1738
|
-
|
|
1745
|
+
function $(h, C) {
|
|
1746
|
+
u.value = h, S(), l("optselected", C), l("update:modelValue", C), l("close");
|
|
1739
1747
|
}
|
|
1740
1748
|
return a({
|
|
1741
|
-
activeDescendantId:
|
|
1742
|
-
focusedIndex:
|
|
1743
|
-
optionEls:
|
|
1744
|
-
refreshOptions:
|
|
1745
|
-
}), (
|
|
1749
|
+
activeDescendantId: u,
|
|
1750
|
+
focusedIndex: o,
|
|
1751
|
+
optionEls: s,
|
|
1752
|
+
refreshOptions: m
|
|
1753
|
+
}), (h, C) => (d(), b("ul", {
|
|
1746
1754
|
ref_key: "optionsRef",
|
|
1747
1755
|
ref: r,
|
|
1748
|
-
"aria-activedescendant":
|
|
1749
|
-
"aria-label":
|
|
1756
|
+
"aria-activedescendant": u.value || void 0,
|
|
1757
|
+
"aria-label": e.label,
|
|
1750
1758
|
class: "bs-dropdown-options",
|
|
1751
|
-
id:
|
|
1759
|
+
id: e.optionsId,
|
|
1752
1760
|
role: "listbox"
|
|
1753
1761
|
}, [
|
|
1754
|
-
E(
|
|
1762
|
+
E(h.$slots, "default")
|
|
1755
1763
|
], 8, Pa));
|
|
1756
1764
|
}
|
|
1757
|
-
},
|
|
1765
|
+
}, Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1758
1766
|
__proto__: null,
|
|
1759
1767
|
default: Fe
|
|
1760
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1768
|
+
}, Symbol.toStringTag, { value: "Module" })), za = ["data-value", "data-variant", "id"], Ue = {
|
|
1761
1769
|
__name: "BsDropdownOption",
|
|
1762
1770
|
props: {
|
|
1763
1771
|
value: {
|
|
@@ -1770,16 +1778,16 @@ const Sa = {
|
|
|
1770
1778
|
}
|
|
1771
1779
|
},
|
|
1772
1780
|
setup(e) {
|
|
1773
|
-
const a = e, t =
|
|
1774
|
-
}), r =
|
|
1775
|
-
|
|
1776
|
-
|
|
1781
|
+
const a = e, t = g(null), n = se("optionsId", ""), l = se("handleSelect", () => {
|
|
1782
|
+
}), r = v(() => `${n.value}-option-${a.value}`);
|
|
1783
|
+
Ce([" ", "Enter", "NumpadEnter"], (o) => {
|
|
1784
|
+
u(), o.preventDefault();
|
|
1777
1785
|
}, t);
|
|
1778
|
-
function
|
|
1779
|
-
var
|
|
1780
|
-
l(r.value, a.value), (
|
|
1786
|
+
function u(o) {
|
|
1787
|
+
var s, i;
|
|
1788
|
+
l(r.value, a.value), (s = t.value.querySelector("a")) == null || s.click(), (i = o == null ? void 0 : o.stopPropagation) == null || i.call(o);
|
|
1781
1789
|
}
|
|
1782
|
-
return (
|
|
1790
|
+
return (o, s) => (d(), b("li", {
|
|
1783
1791
|
ref_key: "optionRef",
|
|
1784
1792
|
ref: t,
|
|
1785
1793
|
"data-component": "bs-dropdown-option",
|
|
@@ -1788,12 +1796,12 @@ const Sa = {
|
|
|
1788
1796
|
id: r.value,
|
|
1789
1797
|
role: "option",
|
|
1790
1798
|
tabIndex: -1,
|
|
1791
|
-
onClick:
|
|
1799
|
+
onClick: u
|
|
1792
1800
|
}, [
|
|
1793
|
-
E(
|
|
1794
|
-
], 8,
|
|
1801
|
+
E(o.$slots, "default")
|
|
1802
|
+
], 8, za));
|
|
1795
1803
|
}
|
|
1796
|
-
},
|
|
1804
|
+
}, Na = ["data-img-size", "data-initials", "data-no-img"], Ra = ["src", "alt"], rt = {
|
|
1797
1805
|
__name: "BsProfileImg",
|
|
1798
1806
|
props: {
|
|
1799
1807
|
src: String,
|
|
@@ -1805,28 +1813,32 @@ const Sa = {
|
|
|
1805
1813
|
profileName: {
|
|
1806
1814
|
type: String,
|
|
1807
1815
|
required: !0
|
|
1816
|
+
},
|
|
1817
|
+
useAltText: {
|
|
1818
|
+
type: Boolean,
|
|
1819
|
+
default: !0
|
|
1808
1820
|
}
|
|
1809
1821
|
},
|
|
1810
1822
|
setup(e) {
|
|
1811
|
-
const a = e, t =
|
|
1812
|
-
return
|
|
1823
|
+
const a = e, t = g(!1), n = g(!!a.src);
|
|
1824
|
+
return K(() => t.value = !0), (l, r) => (d(), b("div", {
|
|
1813
1825
|
class: "bs-profile-img",
|
|
1814
1826
|
"data-img-size": e.size,
|
|
1815
1827
|
"data-initials": e.initials,
|
|
1816
1828
|
"data-no-img": !n.value
|
|
1817
1829
|
}, [
|
|
1818
|
-
n.value && t.value ? (
|
|
1830
|
+
n.value && t.value ? (d(), b("img", {
|
|
1819
1831
|
key: 0,
|
|
1820
1832
|
src: e.src,
|
|
1821
|
-
alt: e.profileName,
|
|
1822
|
-
onError: r[0] || (r[0] = (
|
|
1823
|
-
}, null, 40,
|
|
1824
|
-
], 8,
|
|
1833
|
+
alt: e.useAltText ? e.profileName : "",
|
|
1834
|
+
onError: r[0] || (r[0] = (u) => n.value = !1)
|
|
1835
|
+
}, null, 40, Ra)) : w("", !0)
|
|
1836
|
+
], 8, Na));
|
|
1825
1837
|
}
|
|
1826
|
-
},
|
|
1838
|
+
}, ja = ["id", "data-checked"], Fa = { key: 1 }, Ua = ["innerHTML"], Wa = { key: 4 }, Ga = { key: 5 }, Ha = {
|
|
1827
1839
|
key: 0,
|
|
1828
1840
|
"data-no-hover": ""
|
|
1829
|
-
},
|
|
1841
|
+
}, Be = {
|
|
1830
1842
|
__name: "BsDropdownOptionBuilder",
|
|
1831
1843
|
props: {
|
|
1832
1844
|
// Array of objects with the following properties (either label or labelHtml
|
|
@@ -1859,87 +1871,79 @@ const Sa = {
|
|
|
1859
1871
|
},
|
|
1860
1872
|
setup(e) {
|
|
1861
1873
|
const a = e, t = {};
|
|
1862
|
-
|
|
1874
|
+
at(() => {
|
|
1863
1875
|
n();
|
|
1864
1876
|
}), N(() => a.options, () => {
|
|
1865
1877
|
n();
|
|
1866
1878
|
});
|
|
1867
1879
|
function n() {
|
|
1868
|
-
a.options.forEach((
|
|
1869
|
-
const { icon:
|
|
1870
|
-
|
|
1880
|
+
a.options.forEach((o) => {
|
|
1881
|
+
const { icon: s } = o;
|
|
1882
|
+
s && !t[s] && (t[s] = r(s));
|
|
1871
1883
|
});
|
|
1872
1884
|
}
|
|
1873
|
-
function l(
|
|
1874
|
-
let
|
|
1875
|
-
return
|
|
1885
|
+
function l(o) {
|
|
1886
|
+
let s = "", i = 1;
|
|
1887
|
+
return i += o.checkbox ? 1 : 0, i += o.icon ? 1 : 0, i += o.profileImg ? 1 : 0, i > 1 && (s += ` ${i}-col`), o.checkbox && (s += " checkbox"), o.description && (s += " description"), o.negative && (s += " negative"), s;
|
|
1876
1888
|
}
|
|
1877
|
-
function r(
|
|
1889
|
+
function r(o) {
|
|
1878
1890
|
return Re(async () => {
|
|
1879
|
-
const { [`BsIcon${
|
|
1880
|
-
return
|
|
1891
|
+
const { [`BsIcon${o}`]: s } = await import("@wwtdev/bsds-icons-vue3");
|
|
1892
|
+
return s;
|
|
1881
1893
|
});
|
|
1882
1894
|
}
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1895
|
+
function u(o, s) {
|
|
1896
|
+
return !!o && o !== s;
|
|
1897
|
+
}
|
|
1898
|
+
return (o, s) => (d(), b(G, null, [
|
|
1899
|
+
(d(!0), b(G, null, Z(e.options, (i) => (d(), V(Ue, {
|
|
1900
|
+
"aria-checked": i.checkbox ? i.checkbox.checked : void 0,
|
|
1901
|
+
key: i.value,
|
|
1902
|
+
value: i.value,
|
|
1903
|
+
variant: l(i)
|
|
1889
1904
|
}, {
|
|
1890
1905
|
default: O(() => [
|
|
1891
|
-
|
|
1906
|
+
i.checkbox ? (d(), b("span", {
|
|
1892
1907
|
key: 0,
|
|
1893
|
-
|
|
1894
|
-
"
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1908
|
+
id: i.checkbox.inputId,
|
|
1909
|
+
"aria-hidden": "true",
|
|
1910
|
+
class: "bs-checkbox",
|
|
1911
|
+
"data-checked": i.checkbox.checked
|
|
1912
|
+
}, null, 8, ja)) : w("", !0),
|
|
1913
|
+
i.icon ? (d(), b("span", Fa, [
|
|
1914
|
+
(d(), V(J(t[i.icon])))
|
|
1898
1915
|
])) : w("", !0),
|
|
1899
|
-
|
|
1916
|
+
i.profileImg ? (d(), V(rt, {
|
|
1900
1917
|
key: 2,
|
|
1901
|
-
src:
|
|
1918
|
+
src: i.profileImg.src,
|
|
1902
1919
|
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)
|
|
1920
|
+
initials: i.profileImg.initials,
|
|
1921
|
+
"profile-name": i.profileImg.profileName,
|
|
1922
|
+
"use-alt-text": u(i.profileImg.profileName, i.label)
|
|
1923
|
+
}, null, 8, ["src", "initials", "profile-name", "use-alt-text"])) : w("", !0),
|
|
1924
|
+
i.labelHtml ? (d(), b("span", {
|
|
1925
|
+
key: 3,
|
|
1926
|
+
innerHTML: i.labelHtml
|
|
1927
|
+
}, null, 8, Ua)) : (d(), b("span", Wa, A(i.label), 1)),
|
|
1928
|
+
i.description ? (d(), b("span", Ga, A(i.description), 1)) : w("", !0)
|
|
1926
1929
|
]),
|
|
1927
1930
|
_: 2
|
|
1928
1931
|
}, 1032, ["aria-checked", "value", "variant"]))), 128)),
|
|
1929
|
-
e.showNoOptions && e.options.length === 0 ? (
|
|
1930
|
-
E(
|
|
1931
|
-
|
|
1932
|
+
e.showNoOptions && e.options.length === 0 ? (d(), b("li", Ha, [
|
|
1933
|
+
E(o.$slots, "no-options", {}, () => [
|
|
1934
|
+
W("No options")
|
|
1932
1935
|
])
|
|
1933
1936
|
])) : w("", !0)
|
|
1934
1937
|
], 64));
|
|
1935
1938
|
}
|
|
1936
|
-
},
|
|
1937
|
-
|
|
1938
|
-
],
|
|
1939
|
+
}, Ka = { role: "separator" }, Ya = /* @__PURE__ */ y("hr", null, null, -1), Qa = [
|
|
1940
|
+
Ya
|
|
1941
|
+
], Xa = {
|
|
1939
1942
|
__name: "BsDropdownMultiselect",
|
|
1940
1943
|
props: {
|
|
1941
1944
|
label: {
|
|
1942
|
-
type: String
|
|
1945
|
+
type: String,
|
|
1946
|
+
default: "Select an option"
|
|
1943
1947
|
},
|
|
1944
1948
|
options: {
|
|
1945
1949
|
type: Array,
|
|
@@ -1960,53 +1964,51 @@ const Sa = {
|
|
|
1960
1964
|
},
|
|
1961
1965
|
emits: ["update:selectedOptions"],
|
|
1962
1966
|
setup(e, { emit: a }) {
|
|
1963
|
-
const t = e, n = a;
|
|
1964
|
-
|
|
1965
|
-
const l = m(null), r = m([]), d = m([]);
|
|
1966
|
-
let i = !1;
|
|
1967
|
+
const t = e, n = a, l = g(null), r = g([]), u = g([]);
|
|
1968
|
+
let o = !1;
|
|
1967
1969
|
N(
|
|
1968
1970
|
() => t.selectedOptions,
|
|
1969
1971
|
c,
|
|
1970
1972
|
{ immediate: !0 }
|
|
1971
|
-
), N(() => t.shown, (
|
|
1972
|
-
|
|
1973
|
+
), N(() => t.shown, (m) => {
|
|
1974
|
+
m && fe(s);
|
|
1973
1975
|
});
|
|
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
1976
|
function s() {
|
|
1981
|
-
var
|
|
1977
|
+
var T, S;
|
|
1978
|
+
l.value && (l.value.refreshOptions(), l.value.activeDescendantId = (T = l.value.optionEls[0]) == null ? void 0 : T.id, l.value.focusedIndex = 0);
|
|
1979
|
+
const m = document.querySelector(`#${t.optionsId} [data-component="bs-dropdown-option"]`);
|
|
1980
|
+
(S = m == null ? void 0 : m.focus) == null || S.call(m, { preventScroll: !0 });
|
|
1981
|
+
}
|
|
1982
|
+
function i() {
|
|
1983
|
+
var m;
|
|
1982
1984
|
if (l.value) {
|
|
1983
1985
|
l.value.refreshOptions();
|
|
1984
|
-
const
|
|
1985
|
-
(
|
|
1986
|
+
const T = l.value.focusedIndex, S = l.value.optionEls[T];
|
|
1987
|
+
(m = S == null ? void 0 : S.focus) == null || m.call(S), l.value.activeDescendantId = S == null ? void 0 : S.id;
|
|
1986
1988
|
}
|
|
1987
1989
|
}
|
|
1988
|
-
function c(
|
|
1989
|
-
const
|
|
1990
|
+
function c(m = []) {
|
|
1991
|
+
const T = new Set(m), S = [], k = [];
|
|
1990
1992
|
t.options.forEach((q) => {
|
|
1991
|
-
const
|
|
1992
|
-
|
|
1993
|
-
}), r.value = S,
|
|
1994
|
-
|
|
1995
|
-
|
|
1993
|
+
const $ = { ...q }, h = `${t.optionsId}-${q.value}-cb`;
|
|
1994
|
+
T.has(q.value) ? ($.checkbox = { inputId: h, checked: !0 }, S.push($)) : ($.checkbox = { inputId: h, checked: !1 }, k.push($));
|
|
1995
|
+
}), r.value = S, fe(() => {
|
|
1996
|
+
u.value = k, fe(() => {
|
|
1997
|
+
o && i(), o = !1;
|
|
1996
1998
|
});
|
|
1997
1999
|
});
|
|
1998
2000
|
}
|
|
1999
|
-
function
|
|
2000
|
-
const
|
|
2001
|
+
function f(m = []) {
|
|
2002
|
+
const T = new Set(m), S = [];
|
|
2001
2003
|
return t.options.forEach((k) => {
|
|
2002
|
-
|
|
2004
|
+
T.has(k.value) && S.push(k.value);
|
|
2003
2005
|
}), S;
|
|
2004
2006
|
}
|
|
2005
|
-
function
|
|
2006
|
-
const
|
|
2007
|
-
|
|
2007
|
+
function x(m) {
|
|
2008
|
+
const T = t.selectedOptions.includes(m) ? t.selectedOptions.filter((S) => S !== m) : f([...t.selectedOptions, m]);
|
|
2009
|
+
o = !0, n("update:selectedOptions", T);
|
|
2008
2010
|
}
|
|
2009
|
-
return (
|
|
2011
|
+
return (m, T) => (d(), V(Fe, {
|
|
2010
2012
|
ref_key: "optlist",
|
|
2011
2013
|
ref: l,
|
|
2012
2014
|
"aria-multiselectable": "true",
|
|
@@ -2015,20 +2017,20 @@ const Sa = {
|
|
|
2015
2017
|
multiselect: "",
|
|
2016
2018
|
"options-id": e.optionsId,
|
|
2017
2019
|
shown: e.shown,
|
|
2018
|
-
"onUpdate:modelValue":
|
|
2020
|
+
"onUpdate:modelValue": x
|
|
2019
2021
|
}, {
|
|
2020
2022
|
default: O(() => {
|
|
2021
2023
|
var S;
|
|
2022
2024
|
return [
|
|
2023
|
-
D(
|
|
2025
|
+
D(Be, {
|
|
2024
2026
|
options: r.value,
|
|
2025
2027
|
"show-no-options": !1
|
|
2026
2028
|
}, null, 8, ["options"]),
|
|
2027
|
-
|
|
2028
|
-
[
|
|
2029
|
+
$e(y("li", Ka, Qa, 512), [
|
|
2030
|
+
[Se, (S = r.value) == null ? void 0 : S.length]
|
|
2029
2031
|
]),
|
|
2030
|
-
D(
|
|
2031
|
-
options:
|
|
2032
|
+
D(Be, {
|
|
2033
|
+
options: u.value,
|
|
2032
2034
|
"show-no-options": !1
|
|
2033
2035
|
}, null, 8, ["options"])
|
|
2034
2036
|
];
|
|
@@ -2036,10 +2038,10 @@ const Sa = {
|
|
|
2036
2038
|
_: 1
|
|
2037
2039
|
}, 8, ["label", "options-id", "shown"]));
|
|
2038
2040
|
}
|
|
2039
|
-
},
|
|
2041
|
+
}, Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2040
2042
|
__proto__: null,
|
|
2041
|
-
default:
|
|
2042
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2043
|
+
default: Xa
|
|
2044
|
+
}, Symbol.toStringTag, { value: "Module" })), Ja = {
|
|
2043
2045
|
__name: "BsDropdownWithOptionsNew",
|
|
2044
2046
|
props: {
|
|
2045
2047
|
// DROPDOWN PROPS
|
|
@@ -2092,7 +2094,7 @@ const Sa = {
|
|
|
2092
2094
|
},
|
|
2093
2095
|
label: {
|
|
2094
2096
|
type: String,
|
|
2095
|
-
default:
|
|
2097
|
+
default: "Select an option"
|
|
2096
2098
|
},
|
|
2097
2099
|
modelValue: {
|
|
2098
2100
|
type: [String, Number],
|
|
@@ -2114,17 +2116,17 @@ const Sa = {
|
|
|
2114
2116
|
"after-leave"
|
|
2115
2117
|
],
|
|
2116
2118
|
setup(e, { emit: a }) {
|
|
2117
|
-
const t = a, n =
|
|
2119
|
+
const t = a, n = g(!1);
|
|
2118
2120
|
function l() {
|
|
2119
2121
|
n.value = !0;
|
|
2120
2122
|
}
|
|
2121
|
-
function r(
|
|
2122
|
-
n.value = !1, t("update:modelValue",
|
|
2123
|
+
function r(o) {
|
|
2124
|
+
n.value = !1, t("update:modelValue", o), t("close");
|
|
2123
2125
|
}
|
|
2124
|
-
function
|
|
2126
|
+
function u() {
|
|
2125
2127
|
n.value && (n.value = !1, t("close"));
|
|
2126
2128
|
}
|
|
2127
|
-
return (
|
|
2129
|
+
return (o, s) => (d(), V(p(it), {
|
|
2128
2130
|
"anchor-id": e.anchorId,
|
|
2129
2131
|
breakout: e.breakout,
|
|
2130
2132
|
"container-id": e.containerId,
|
|
@@ -2135,23 +2137,23 @@ const Sa = {
|
|
|
2135
2137
|
shown: e.shown,
|
|
2136
2138
|
"use-mobile-style": e.useMobileStyle,
|
|
2137
2139
|
width: e.width,
|
|
2138
|
-
onClose:
|
|
2139
|
-
onAfterEnter:
|
|
2140
|
+
onClose: u,
|
|
2141
|
+
onAfterEnter: s[0] || (s[0] = (i) => t("after-enter")),
|
|
2140
2142
|
onEnter: l,
|
|
2141
|
-
onAfterLeave:
|
|
2143
|
+
onAfterLeave: s[1] || (s[1] = (i) => t("after-leave"))
|
|
2142
2144
|
}, {
|
|
2143
2145
|
default: O(() => [
|
|
2144
|
-
D(
|
|
2146
|
+
D(p(Fe), {
|
|
2145
2147
|
"focus-on-show": e.focusOnShow,
|
|
2146
2148
|
label: e.label,
|
|
2147
2149
|
"model-value": e.modelValue,
|
|
2148
2150
|
"options-id": e.optionsId,
|
|
2149
2151
|
"prevent-tab": e.preventTab,
|
|
2150
2152
|
"onUpdate:modelValue": r,
|
|
2151
|
-
onClose:
|
|
2153
|
+
onClose: u
|
|
2152
2154
|
}, {
|
|
2153
2155
|
default: O(() => [
|
|
2154
|
-
E(
|
|
2156
|
+
E(o.$slots, "default")
|
|
2155
2157
|
]),
|
|
2156
2158
|
_: 3
|
|
2157
2159
|
}, 8, ["focus-on-show", "label", "model-value", "options-id", "prevent-tab"])
|
|
@@ -2248,7 +2250,7 @@ const Sa = {
|
|
|
2248
2250
|
},
|
|
2249
2251
|
label: {
|
|
2250
2252
|
type: String,
|
|
2251
|
-
default:
|
|
2253
|
+
default: "Select an option"
|
|
2252
2254
|
},
|
|
2253
2255
|
modelValue: {
|
|
2254
2256
|
type: [String, Number],
|
|
@@ -2277,30 +2279,30 @@ const Sa = {
|
|
|
2277
2279
|
"after-leave"
|
|
2278
2280
|
],
|
|
2279
2281
|
setup(e, { emit: a }) {
|
|
2280
|
-
const t = e, n = a, { transition: l } =
|
|
2281
|
-
function
|
|
2282
|
+
const t = e, n = a, { transition: l } = ve(t), r = 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);
|
|
2283
|
+
function i(c) {
|
|
2282
2284
|
n("optselected", c), n("update:modelValue", c);
|
|
2283
2285
|
}
|
|
2284
|
-
return (c,
|
|
2285
|
-
"anchor-id":
|
|
2286
|
+
return (c, f) => (d(), V(Ja, {
|
|
2287
|
+
"anchor-id": o.value,
|
|
2286
2288
|
breakout: e.breakout,
|
|
2287
2289
|
"container-id": e.containerId,
|
|
2288
2290
|
"focus-on-show": e.focusOnShow,
|
|
2289
2291
|
"helper-description": e.helperDescription,
|
|
2290
2292
|
"helper-text": e.helperText,
|
|
2291
2293
|
label: e.label,
|
|
2292
|
-
"model-value":
|
|
2294
|
+
"model-value": s.value,
|
|
2293
2295
|
"options-id": e.optionsId,
|
|
2294
|
-
position:
|
|
2296
|
+
position: u.value,
|
|
2295
2297
|
preloaded: e.preloaded,
|
|
2296
2298
|
"prevent-tab": e.preventTab,
|
|
2297
|
-
shown:
|
|
2299
|
+
shown: p(l),
|
|
2298
2300
|
"use-mobile-style": e.useMobileStyle,
|
|
2299
2301
|
width: r.value,
|
|
2300
|
-
onClose:
|
|
2301
|
-
onAfterEnter:
|
|
2302
|
-
onAfterLeave:
|
|
2303
|
-
"onUpdate:modelValue":
|
|
2302
|
+
onClose: f[0] || (f[0] = (x) => n("close")),
|
|
2303
|
+
onAfterEnter: f[1] || (f[1] = (x) => n("after-enter")),
|
|
2304
|
+
onAfterLeave: f[2] || (f[2] = (x) => n("after-leave")),
|
|
2305
|
+
"onUpdate:modelValue": i
|
|
2304
2306
|
}, {
|
|
2305
2307
|
default: O(() => [
|
|
2306
2308
|
E(c.$slots, "default")
|
|
@@ -2308,7 +2310,7 @@ const Sa = {
|
|
|
2308
2310
|
_: 3
|
|
2309
2311
|
}, 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
2312
|
}
|
|
2311
|
-
},
|
|
2313
|
+
}, _a = ["aria-controls", "aria-expanded", "data-open", "data-size", "disabled"], en = {
|
|
2312
2314
|
__name: "BsFilterButton",
|
|
2313
2315
|
props: {
|
|
2314
2316
|
badgeCount: {
|
|
@@ -2337,8 +2339,8 @@ const Sa = {
|
|
|
2337
2339
|
}
|
|
2338
2340
|
},
|
|
2339
2341
|
setup(e) {
|
|
2340
|
-
const a = e, t =
|
|
2341
|
-
return (n, l) => (
|
|
2342
|
+
const a = e, t = v(() => a.badgeCount > 0);
|
|
2343
|
+
return (n, l) => (d(), b("button", {
|
|
2342
2344
|
class: "bs-filter-button",
|
|
2343
2345
|
"aria-controls": e.optionsId,
|
|
2344
2346
|
"aria-expanded": e.open,
|
|
@@ -2348,7 +2350,7 @@ const Sa = {
|
|
|
2348
2350
|
disabled: e.disabled,
|
|
2349
2351
|
type: "button"
|
|
2350
2352
|
}, [
|
|
2351
|
-
t.value ? (
|
|
2353
|
+
t.value ? (d(), V(Wt, {
|
|
2352
2354
|
key: 0,
|
|
2353
2355
|
color: "blue",
|
|
2354
2356
|
count: e.badgeCount,
|
|
@@ -2357,12 +2359,12 @@ const Sa = {
|
|
|
2357
2359
|
variant: "notext"
|
|
2358
2360
|
}, null, 8, ["count"])) : w("", !0),
|
|
2359
2361
|
E(n.$slots, "label", {}, () => [
|
|
2360
|
-
|
|
2362
|
+
W(A(e.label), 1)
|
|
2361
2363
|
]),
|
|
2362
|
-
D(
|
|
2363
|
-
], 8,
|
|
2364
|
+
D(p(lt))
|
|
2365
|
+
], 8, _a));
|
|
2364
2366
|
}
|
|
2365
|
-
},
|
|
2367
|
+
}, tn = ["id"], ql = {
|
|
2366
2368
|
__name: "BsDropdownWithToggle",
|
|
2367
2369
|
props: {
|
|
2368
2370
|
breakout: {
|
|
@@ -2374,7 +2376,8 @@ const Sa = {
|
|
|
2374
2376
|
default: !1
|
|
2375
2377
|
},
|
|
2376
2378
|
dropdownLabel: {
|
|
2377
|
-
type: String
|
|
2379
|
+
type: String,
|
|
2380
|
+
default: "Select an option"
|
|
2378
2381
|
},
|
|
2379
2382
|
dropdownPosition: {
|
|
2380
2383
|
type: String,
|
|
@@ -2424,51 +2427,51 @@ const Sa = {
|
|
|
2424
2427
|
},
|
|
2425
2428
|
emits: ["update:selectedOptions", "update:selectedOption", "toggled", "close"],
|
|
2426
2429
|
setup(e, { emit: a }) {
|
|
2427
|
-
const t = e, n = a, l =
|
|
2428
|
-
N(l, (
|
|
2429
|
-
|
|
2430
|
+
const t = e, n = a, l = g(!1), r = g(null), u = v(() => Re(async () => await (t.multiselect ? Promise.resolve().then(() => Za) : Promise.resolve().then(() => Ma)))), [o, s] = Q(2);
|
|
2431
|
+
N(l, (T) => {
|
|
2432
|
+
T && r.value.$el.blur();
|
|
2430
2433
|
});
|
|
2431
|
-
function
|
|
2434
|
+
function i() {
|
|
2432
2435
|
l.value = !1, n("close"), r.value.$el.focus();
|
|
2433
2436
|
}
|
|
2434
2437
|
function c() {
|
|
2435
|
-
l.value &&
|
|
2438
|
+
l.value && i();
|
|
2436
2439
|
}
|
|
2437
|
-
function
|
|
2440
|
+
function f() {
|
|
2438
2441
|
l.value = !0;
|
|
2439
2442
|
}
|
|
2440
|
-
function
|
|
2441
|
-
n("update:selectedOptions",
|
|
2443
|
+
function x(T) {
|
|
2444
|
+
n("update:selectedOptions", T);
|
|
2442
2445
|
}
|
|
2443
|
-
function
|
|
2444
|
-
t.multiselect || (n("update:selectedOption",
|
|
2446
|
+
function m(T) {
|
|
2447
|
+
t.multiselect || (n("update:selectedOption", T), i());
|
|
2445
2448
|
}
|
|
2446
|
-
return (
|
|
2449
|
+
return (T, S) => (d(), b("div", {
|
|
2447
2450
|
class: "bs-dropdown-with-toggle",
|
|
2448
|
-
id:
|
|
2451
|
+
id: T.$attrs.id
|
|
2449
2452
|
}, [
|
|
2450
|
-
D(
|
|
2453
|
+
D(en, {
|
|
2451
2454
|
ref_key: "toggleRef",
|
|
2452
2455
|
ref: r,
|
|
2453
|
-
"aria-controls":
|
|
2456
|
+
"aria-controls": p(s),
|
|
2454
2457
|
"aria-expanded": e.open,
|
|
2455
2458
|
disabled: e.disabled,
|
|
2456
|
-
id:
|
|
2459
|
+
id: p(o),
|
|
2457
2460
|
open: e.open,
|
|
2458
|
-
"options-id":
|
|
2461
|
+
"options-id": p(s),
|
|
2459
2462
|
size: e.toggleSize,
|
|
2460
|
-
onClick: S[0] || (S[0] = (k) =>
|
|
2463
|
+
onClick: S[0] || (S[0] = (k) => T.$emit("toggled"))
|
|
2461
2464
|
}, {
|
|
2462
2465
|
label: O(() => [
|
|
2463
|
-
E(
|
|
2464
|
-
|
|
2466
|
+
E(T.$slots, "toggle-label", {}, () => [
|
|
2467
|
+
W(A(e.toggleLabel), 1)
|
|
2465
2468
|
])
|
|
2466
2469
|
]),
|
|
2467
2470
|
_: 3
|
|
2468
2471
|
}, 8, ["aria-controls", "aria-expanded", "disabled", "id", "open", "options-id", "size"]),
|
|
2469
|
-
D(
|
|
2472
|
+
D(it, {
|
|
2470
2473
|
shown: e.open,
|
|
2471
|
-
"anchor-id":
|
|
2474
|
+
"anchor-id": p(o),
|
|
2472
2475
|
breakout: e.breakout,
|
|
2473
2476
|
"helper-text": e.helperText,
|
|
2474
2477
|
"helper-description": e.helperDescription,
|
|
@@ -2477,22 +2480,22 @@ const Sa = {
|
|
|
2477
2480
|
"use-mobile-style": e.useMobileStyle,
|
|
2478
2481
|
width: e.dropdownWidth,
|
|
2479
2482
|
onClose: c,
|
|
2480
|
-
onEnter:
|
|
2483
|
+
onEnter: f
|
|
2481
2484
|
}, {
|
|
2482
2485
|
default: O(() => [
|
|
2483
|
-
D(
|
|
2486
|
+
D(p(u), {
|
|
2484
2487
|
label: e.dropdownLabel,
|
|
2485
2488
|
"model-value": e.selectedOption,
|
|
2486
2489
|
options: e.options,
|
|
2487
|
-
"options-id":
|
|
2490
|
+
"options-id": p(s),
|
|
2488
2491
|
"selected-options": e.selectedOptions,
|
|
2489
2492
|
shown: e.open,
|
|
2490
|
-
"onUpdate:modelValue":
|
|
2491
|
-
"onUpdate:selectedOptions":
|
|
2493
|
+
"onUpdate:modelValue": m,
|
|
2494
|
+
"onUpdate:selectedOptions": x,
|
|
2492
2495
|
onClose: S[1] || (S[1] = (k) => e.multiselect ? void 0 : c())
|
|
2493
2496
|
}, {
|
|
2494
2497
|
default: O(() => [
|
|
2495
|
-
e.multiselect ? w("", !0) : (
|
|
2498
|
+
e.multiselect ? w("", !0) : (d(), V(Be, {
|
|
2496
2499
|
key: 0,
|
|
2497
2500
|
options: e.options
|
|
2498
2501
|
}, null, 8, ["options"]))
|
|
@@ -2502,51 +2505,51 @@ const Sa = {
|
|
|
2502
2505
|
]),
|
|
2503
2506
|
_: 1
|
|
2504
2507
|
}, 8, ["shown", "anchor-id", "breakout", "helper-text", "helper-description", "position", "use-mobile-style", "width"])
|
|
2505
|
-
], 8,
|
|
2508
|
+
], 8, tn));
|
|
2506
2509
|
}
|
|
2507
|
-
},
|
|
2510
|
+
}, an = ["view-box"], nn = ["id"], ln = ["offset", "stop-color"], Pl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2508
2511
|
__name: "BsIconGradientWrapper",
|
|
2509
2512
|
setup(e) {
|
|
2510
|
-
const a =
|
|
2513
|
+
const a = g(null), t = g(null), n = [
|
|
2511
2514
|
{ offset: 0.1326, color: "#EE282A" },
|
|
2512
2515
|
{ offset: 0.5466, color: "#1C0087" },
|
|
2513
2516
|
{ offset: 0.9715, color: "#0086EA" }
|
|
2514
|
-
], [l] =
|
|
2515
|
-
return
|
|
2517
|
+
], [l] = Q();
|
|
2518
|
+
return K(() => {
|
|
2516
2519
|
t.value = a.value.querySelector("svg").getAttribute("viewBox") || "0 0 0 0";
|
|
2517
|
-
}), (r,
|
|
2518
|
-
|
|
2520
|
+
}), (r, u) => (d(), b(G, null, [
|
|
2521
|
+
y("span", z({
|
|
2519
2522
|
ref_key: "svgWrapperRef",
|
|
2520
2523
|
ref: a,
|
|
2521
2524
|
class: "bs-icon-gradient-wrapper",
|
|
2522
|
-
style: `fill: url(#${
|
|
2525
|
+
style: `fill: url(#${p(l)});`
|
|
2523
2526
|
}, r.$attrs), [
|
|
2524
2527
|
E(r.$slots, "default")
|
|
2525
2528
|
], 16),
|
|
2526
|
-
(
|
|
2529
|
+
(d(), b("svg", {
|
|
2527
2530
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2528
2531
|
"view-box": t.value,
|
|
2529
2532
|
width: "0",
|
|
2530
2533
|
height: "0"
|
|
2531
2534
|
}, [
|
|
2532
|
-
|
|
2533
|
-
id:
|
|
2535
|
+
y("linearGradient", {
|
|
2536
|
+
id: p(l),
|
|
2534
2537
|
x1: "0",
|
|
2535
2538
|
y1: "0",
|
|
2536
2539
|
x2: "100%",
|
|
2537
2540
|
y2: "100%",
|
|
2538
2541
|
"gradient-units": "userSpaceOnUse"
|
|
2539
2542
|
}, [
|
|
2540
|
-
(
|
|
2541
|
-
key:
|
|
2542
|
-
offset:
|
|
2543
|
-
"stop-color":
|
|
2544
|
-
}, null, 8,
|
|
2545
|
-
], 8,
|
|
2546
|
-
], 8,
|
|
2543
|
+
(d(), b(G, null, Z(n, (o) => y("stop", {
|
|
2544
|
+
key: o.offset,
|
|
2545
|
+
offset: o.offset,
|
|
2546
|
+
"stop-color": o.color
|
|
2547
|
+
}, null, 8, ln)), 64))
|
|
2548
|
+
], 8, nn)
|
|
2549
|
+
], 8, an))
|
|
2547
2550
|
], 64));
|
|
2548
2551
|
}
|
|
2549
|
-
}),
|
|
2552
|
+
}), Ml = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2550
2553
|
__name: "BsInputField",
|
|
2551
2554
|
props: {
|
|
2552
2555
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -2593,46 +2596,46 @@ const Sa = {
|
|
|
2593
2596
|
},
|
|
2594
2597
|
emits: ["update:modelValue"],
|
|
2595
2598
|
setup(e, { emit: a }) {
|
|
2596
|
-
const t = e, [n, l] =
|
|
2597
|
-
var
|
|
2598
|
-
return ((c = (
|
|
2599
|
+
const t = e, [n, l] = Q(2), r = v(() => pe.concat(t.passAttrs.split(",")).concat("type")), u = v(() => {
|
|
2600
|
+
var i, c;
|
|
2601
|
+
return ((c = (i = t.hints) == null ? void 0 : i.join) == null ? void 0 : c.call(i, `
|
|
2599
2602
|
`)) || t.hints;
|
|
2600
|
-
}),
|
|
2601
|
-
return (
|
|
2602
|
-
e.label ||
|
|
2603
|
+
}), o = v(() => t.error && t.errorMsg || t.hint || u.value || void 0), s = v(() => t.inputId || n.value);
|
|
2604
|
+
return (i, c) => (d(), b("div", z({ "data-component": "bs-input-field" }, p(H)(i.$attrs, r.value).remaining), [
|
|
2605
|
+
e.label || i.$slots.label ? (d(), V(ae, {
|
|
2603
2606
|
key: 0,
|
|
2604
|
-
for:
|
|
2607
|
+
for: i.$attrs.id || s.value,
|
|
2605
2608
|
disabled: e.disabled,
|
|
2606
2609
|
required: e.required
|
|
2607
2610
|
}, {
|
|
2608
2611
|
default: O(() => [
|
|
2609
|
-
E(
|
|
2610
|
-
|
|
2612
|
+
E(i.$slots, "label", {}, () => [
|
|
2613
|
+
W(A(e.label), 1)
|
|
2611
2614
|
])
|
|
2612
2615
|
]),
|
|
2613
2616
|
_: 3
|
|
2614
2617
|
}, 8, ["for", "disabled", "required"])) : w("", !0),
|
|
2615
|
-
D(
|
|
2618
|
+
D(be, z({
|
|
2616
2619
|
disabled: e.disabled,
|
|
2617
2620
|
error: e.error,
|
|
2618
|
-
"hint-id":
|
|
2619
|
-
id:
|
|
2621
|
+
"hint-id": p(l),
|
|
2622
|
+
id: i.$attrs.id || s.value,
|
|
2620
2623
|
placeholder: e.placeholder,
|
|
2621
2624
|
required: e.required,
|
|
2622
2625
|
type: e.type,
|
|
2623
2626
|
value: e.value || e.modelValue,
|
|
2624
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
2625
|
-
},
|
|
2626
|
-
|
|
2627
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.$emit("update:modelValue", f))
|
|
2628
|
+
}, p(H)(i.$attrs, r.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
|
|
2629
|
+
o.value ? (d(), V(he, {
|
|
2627
2630
|
key: 1,
|
|
2628
2631
|
error: e.error,
|
|
2629
2632
|
"error-msg": e.errorMsg,
|
|
2630
|
-
hint: e.hint ||
|
|
2631
|
-
"hint-id":
|
|
2633
|
+
hint: e.hint || u.value,
|
|
2634
|
+
"hint-id": p(l)
|
|
2632
2635
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : w("", !0)
|
|
2633
2636
|
], 16));
|
|
2634
2637
|
}
|
|
2635
|
-
}),
|
|
2638
|
+
}), et = {
|
|
2636
2639
|
A: "🇦",
|
|
2637
2640
|
B: "🇧",
|
|
2638
2641
|
C: "🇨",
|
|
@@ -2659,7 +2662,7 @@ const Sa = {
|
|
|
2659
2662
|
X: "🇽",
|
|
2660
2663
|
Y: "🇾",
|
|
2661
2664
|
Z: "🇿"
|
|
2662
|
-
},
|
|
2665
|
+
}, Pe = {
|
|
2663
2666
|
data: {
|
|
2664
2667
|
allCountries: null,
|
|
2665
2668
|
byCountryCode: null,
|
|
@@ -2686,7 +2689,7 @@ const Sa = {
|
|
|
2686
2689
|
*/
|
|
2687
2690
|
initSourceData() {
|
|
2688
2691
|
return this.data.allCountries || (this.data.allCountries = Vt().map((e) => {
|
|
2689
|
-
const a = Et(e), t =
|
|
2692
|
+
const a = Et(e), t = et[a[0]] + et[a[1]] || "";
|
|
2690
2693
|
return {
|
|
2691
2694
|
label: `+${e}`,
|
|
2692
2695
|
flag: t,
|
|
@@ -2700,10 +2703,10 @@ const Sa = {
|
|
|
2700
2703
|
this.data[e][t[a]] = t;
|
|
2701
2704
|
}));
|
|
2702
2705
|
}
|
|
2703
|
-
},
|
|
2706
|
+
}, on = ["id", "aria-controls", "aria-expanded", "aria-label", "disabled"], rn = { key: 0 }, sn = {
|
|
2704
2707
|
"aria-hidden": "true",
|
|
2705
2708
|
style: { width: "1.25rem" }
|
|
2706
|
-
},
|
|
2709
|
+
}, dn = { "aria-hidden": "true" }, zl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2707
2710
|
__name: "BsInputPhone",
|
|
2708
2711
|
props: {
|
|
2709
2712
|
deferValidation: {
|
|
@@ -2765,105 +2768,106 @@ const Sa = {
|
|
|
2765
2768
|
"Escape",
|
|
2766
2769
|
"Home",
|
|
2767
2770
|
"Tab"
|
|
2768
|
-
],
|
|
2771
|
+
], u = g(null), o = g(1), s = g([]), i = g(null), [
|
|
2769
2772
|
c,
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
] =
|
|
2773
|
+
f,
|
|
2774
|
+
x,
|
|
2775
|
+
m
|
|
2776
|
+
] = Q(4), T = g(!1), S = g(""), k = g(""), q = g(!1), $ = g(!1), h = g(!0);
|
|
2774
2777
|
a({
|
|
2775
2778
|
validationErr: q,
|
|
2776
2779
|
validationErrMsg: k
|
|
2777
2780
|
});
|
|
2778
|
-
const
|
|
2779
|
-
N(
|
|
2780
|
-
l("update:modelValue",
|
|
2781
|
-
}), N(() => n.modelValue, de), De(),
|
|
2782
|
-
function de(
|
|
2783
|
-
|
|
2781
|
+
const C = v(() => S.value ? `+${o.value}${S.value}` : ""), I = v(() => `Country code: ${o.value}. Click to change.`), P = v(() => h.value ? n.errorMsg || k.value : ""), F = v(() => n.error || q.value), ne = v(() => n.hint || F.value && P.value), X = v(() => h.value && F.value);
|
|
2782
|
+
N(C, (M) => {
|
|
2783
|
+
l("update:modelValue", M), ge(M);
|
|
2784
|
+
}), N(() => n.modelValue, de), De(), K(() => T.value = !0);
|
|
2785
|
+
function de(M, j) {
|
|
2786
|
+
M === "" && M !== j && (S.value = "");
|
|
2784
2787
|
}
|
|
2785
|
-
function
|
|
2786
|
-
var
|
|
2787
|
-
|
|
2788
|
+
function ue() {
|
|
2789
|
+
var M;
|
|
2790
|
+
$.value && ($.value = !1, (M = u.value) == null || M.focus());
|
|
2788
2791
|
}
|
|
2789
|
-
function Ae(
|
|
2790
|
-
var
|
|
2791
|
-
|
|
2792
|
+
function Ae(M) {
|
|
2793
|
+
var j;
|
|
2794
|
+
o.value = M, $.value = !1, (j = u.value) == null || j.focus(), me(M);
|
|
2792
2795
|
}
|
|
2793
2796
|
function Le() {
|
|
2794
|
-
n.deferValidation && (
|
|
2797
|
+
n.deferValidation && (h.value = !0), l("input-blur");
|
|
2795
2798
|
}
|
|
2796
|
-
function Ve(
|
|
2797
|
-
S.value =
|
|
2799
|
+
function Ve(M) {
|
|
2800
|
+
S.value = M.target.value, n.deferValidation && (h.value = !1);
|
|
2798
2801
|
}
|
|
2799
|
-
function Ee(
|
|
2800
|
-
|
|
2802
|
+
function Ee(M) {
|
|
2803
|
+
var j, U;
|
|
2804
|
+
!((U = (j = M.key) == null ? void 0 : j.match) != null && U.call(j, /[0-9]/)) && !r.includes(M.key) && !M.ctrlKey && !M.metaKey && M.preventDefault();
|
|
2801
2805
|
}
|
|
2802
2806
|
function De() {
|
|
2803
|
-
|
|
2807
|
+
Pe.initSourceData(), Oe(), me(o.value), ge(C.value);
|
|
2804
2808
|
}
|
|
2805
2809
|
function Oe() {
|
|
2806
|
-
var
|
|
2807
|
-
let
|
|
2808
|
-
|
|
2809
|
-
...
|
|
2810
|
-
isSelected:
|
|
2810
|
+
var j, U;
|
|
2811
|
+
let M = Ye(n.modelValue);
|
|
2812
|
+
M.valid || M.countryCode && ((U = (j = n.modelValue) == null ? void 0 : j.startsWith) != null && U.call(j, "+")) ? (o.value = M.countryCode, S.value = M.number.significant) : S.value = n.modelValue, s.value = Pe.data.allCountries.map((ce) => ({
|
|
2813
|
+
...ce,
|
|
2814
|
+
isSelected: o.value === ce
|
|
2811
2815
|
}));
|
|
2812
2816
|
}
|
|
2813
|
-
function
|
|
2814
|
-
|
|
2817
|
+
function me(M) {
|
|
2818
|
+
i.value = Pe.getCountryByCountryCode(M);
|
|
2815
2819
|
}
|
|
2816
|
-
function
|
|
2817
|
-
q.value =
|
|
2820
|
+
function ge(M) {
|
|
2821
|
+
q.value = M ? !Ye(M).valid : !1, k.value = q.value ? "Invalid phone number" : "";
|
|
2818
2822
|
}
|
|
2819
|
-
return (
|
|
2823
|
+
return (M, j) => (d(), b("div", z({
|
|
2820
2824
|
class: "bs-input-phone",
|
|
2821
2825
|
"data-component": "bs-input-phone"
|
|
2822
|
-
},
|
|
2823
|
-
D(
|
|
2824
|
-
for:
|
|
2826
|
+
}, p(H)(M.$attrs, p(pe)).remaining), [
|
|
2827
|
+
D(ae, {
|
|
2828
|
+
for: M.$attrs.id || e.inputId || p(m),
|
|
2825
2829
|
required: e.required,
|
|
2826
|
-
class:
|
|
2830
|
+
class: te({ "visually-hidden": e.hideLabel })
|
|
2827
2831
|
}, {
|
|
2828
2832
|
default: O(() => [
|
|
2829
|
-
|
|
2833
|
+
W(A(e.label), 1)
|
|
2830
2834
|
]),
|
|
2831
2835
|
_: 1
|
|
2832
2836
|
}, 8, ["for", "required", "class"]),
|
|
2833
|
-
D(
|
|
2837
|
+
D(Te, {
|
|
2834
2838
|
disabled: e.disabled,
|
|
2835
|
-
error:
|
|
2839
|
+
error: X.value,
|
|
2836
2840
|
multifocus: !0,
|
|
2837
2841
|
variant: "inner-bordered"
|
|
2838
2842
|
}, {
|
|
2839
2843
|
default: O(() => {
|
|
2840
|
-
var
|
|
2844
|
+
var U;
|
|
2841
2845
|
return [
|
|
2842
|
-
|
|
2843
|
-
id:
|
|
2846
|
+
y("button", {
|
|
2847
|
+
id: p(c),
|
|
2844
2848
|
ref_key: "countryCodesToggle",
|
|
2845
|
-
ref:
|
|
2846
|
-
"aria-controls": f
|
|
2847
|
-
"aria-expanded":
|
|
2849
|
+
ref: u,
|
|
2850
|
+
"aria-controls": p(f),
|
|
2851
|
+
"aria-expanded": $.value,
|
|
2848
2852
|
"aria-haspopup": "listbox",
|
|
2849
|
-
"aria-label":
|
|
2853
|
+
"aria-label": I.value,
|
|
2850
2854
|
disabled: e.disabled,
|
|
2851
2855
|
type: "button",
|
|
2852
|
-
onClick:
|
|
2856
|
+
onClick: j[0] || (j[0] = (ce) => $.value = !$.value)
|
|
2853
2857
|
}, [
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
D(
|
|
2857
|
-
], 8,
|
|
2858
|
-
D(
|
|
2859
|
-
"input-id":
|
|
2858
|
+
y("span", null, A((U = i.value) == null ? void 0 : U.flag), 1),
|
|
2859
|
+
y("span", null, "+" + A(o.value), 1),
|
|
2860
|
+
D(p(ht), { size: "sm" })
|
|
2861
|
+
], 8, on),
|
|
2862
|
+
D(be, z({
|
|
2863
|
+
"input-id": M.$attrs.id || e.inputId || p(m),
|
|
2860
2864
|
disabled: e.disabled,
|
|
2861
|
-
"hint-id":
|
|
2865
|
+
"hint-id": p(x),
|
|
2862
2866
|
placeholder: e.placeholder,
|
|
2863
2867
|
value: S.value,
|
|
2864
2868
|
"data-autowidth": "",
|
|
2865
2869
|
type: "tel"
|
|
2866
|
-
},
|
|
2870
|
+
}, p(H)(M.$attrs, p(pe)).filtered, {
|
|
2867
2871
|
onInput: Ve,
|
|
2868
2872
|
onFocusout: Le,
|
|
2869
2873
|
onKeydown: Ee
|
|
@@ -2872,46 +2876,47 @@ const Sa = {
|
|
|
2872
2876
|
}),
|
|
2873
2877
|
_: 1
|
|
2874
2878
|
}, 8, ["disabled", "error"]),
|
|
2875
|
-
|
|
2876
|
-
error:
|
|
2877
|
-
"error-msg":
|
|
2879
|
+
$e(D(he, {
|
|
2880
|
+
error: F.value,
|
|
2881
|
+
"error-msg": P.value,
|
|
2878
2882
|
hint: e.hint,
|
|
2879
|
-
"hint-id":
|
|
2883
|
+
"hint-id": p(x)
|
|
2880
2884
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
2881
|
-
[
|
|
2885
|
+
[Se, ne.value]
|
|
2882
2886
|
]),
|
|
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
|
-
|
|
2887
|
+
T.value ? (d(), b("div", rn, [
|
|
2888
|
+
D(We, {
|
|
2889
|
+
"anchor-id": p(c),
|
|
2890
|
+
"helper-text": "Country Code",
|
|
2891
|
+
label: "Country Code",
|
|
2892
|
+
"model-value": o.value,
|
|
2893
|
+
"options-id": p(f),
|
|
2894
|
+
preloaded: "",
|
|
2895
|
+
shown: $.value,
|
|
2896
|
+
width: "content",
|
|
2897
|
+
onClose: ue,
|
|
2898
|
+
"onUpdate:modelValue": Ae
|
|
2899
|
+
}, {
|
|
2900
|
+
default: O(() => [
|
|
2901
|
+
T.value ? (d(!0), b(G, { key: 0 }, Z(s.value, (U) => (d(), V(Ue, {
|
|
2902
|
+
"aria-label": U.value,
|
|
2903
|
+
key: U.value,
|
|
2904
|
+
value: `${U.value}`,
|
|
2905
|
+
variant: "2-col"
|
|
2906
|
+
}, {
|
|
2907
|
+
default: O(() => [
|
|
2908
|
+
y("span", sn, A(U == null ? void 0 : U.flag), 1),
|
|
2909
|
+
y("span", dn, A(U.label), 1)
|
|
2910
|
+
]),
|
|
2911
|
+
_: 2
|
|
2912
|
+
}, 1032, ["aria-label", "value"]))), 128)) : w("", !0)
|
|
2913
|
+
]),
|
|
2914
|
+
_: 1
|
|
2915
|
+
}, 8, ["anchor-id", "model-value", "options-id", "shown"])
|
|
2916
|
+
])) : w("", !0)
|
|
2912
2917
|
], 16));
|
|
2913
2918
|
}
|
|
2914
|
-
}),
|
|
2919
|
+
}), un = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2915
2920
|
__name: "BsInputSearch",
|
|
2916
2921
|
props: {
|
|
2917
2922
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -2956,32 +2961,32 @@ const Sa = {
|
|
|
2956
2961
|
},
|
|
2957
2962
|
emits: ["clear", "update:modelValue"],
|
|
2958
2963
|
setup(e, { emit: a }) {
|
|
2959
|
-
const t = e, n =
|
|
2960
|
-
return (l, r) => (
|
|
2964
|
+
const t = e, n = v(() => !t.disabled && !t.hideClear && t.variant !== "filter");
|
|
2965
|
+
return (l, r) => (d(), V(Te, z({
|
|
2961
2966
|
class: "bs-input-search",
|
|
2962
2967
|
"data-component": "bs-input-search",
|
|
2963
2968
|
"data-variant": e.variant,
|
|
2964
2969
|
disabled: e.disabled
|
|
2965
|
-
},
|
|
2970
|
+
}, p(H)(l.$attrs, p(pe)).remaining), {
|
|
2966
2971
|
default: O(() => [
|
|
2967
|
-
e.hideSearchIcon ? w("", !0) : (
|
|
2968
|
-
D(
|
|
2972
|
+
e.hideSearchIcon ? w("", !0) : (d(), V(p(bt), { key: 0 })),
|
|
2973
|
+
D(be, z({
|
|
2969
2974
|
"data-autowidth": "",
|
|
2970
2975
|
disabled: e.disabled,
|
|
2971
2976
|
"input-id": l.$attrs.id || e.inputId,
|
|
2972
2977
|
placeholder: e.placeholder,
|
|
2973
2978
|
value: e.value || e.modelValue
|
|
2974
|
-
},
|
|
2975
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
2979
|
+
}, p(H)(l.$attrs, p(pe)).filtered, {
|
|
2980
|
+
"onUpdate:modelValue": r[0] || (r[0] = (u) => l.$emit("update:modelValue", u))
|
|
2976
2981
|
}), null, 16, ["disabled", "input-id", "placeholder", "value"]),
|
|
2977
|
-
|
|
2982
|
+
$e(y("button", {
|
|
2978
2983
|
title: "Clear",
|
|
2979
2984
|
type: "button",
|
|
2980
|
-
onClick: r[1] || (r[1] = (
|
|
2985
|
+
onClick: r[1] || (r[1] = (u) => l.$emit("clear"))
|
|
2981
2986
|
}, [
|
|
2982
|
-
D(
|
|
2987
|
+
D(p(we), { size: "sm" })
|
|
2983
2988
|
], 512), [
|
|
2984
|
-
[
|
|
2989
|
+
[Se, n.value]
|
|
2985
2990
|
])
|
|
2986
2991
|
]),
|
|
2987
2992
|
_: 1
|
|
@@ -3047,30 +3052,30 @@ const Sa = {
|
|
|
3047
3052
|
},
|
|
3048
3053
|
emits: ["update:inputValue", "update:optionsValue"],
|
|
3049
3054
|
setup(e, { emit: a }) {
|
|
3050
|
-
const t = e, n = a, l =
|
|
3051
|
-
let
|
|
3055
|
+
const t = e, n = a, l = g(!1), r = g(!1), [u] = Q();
|
|
3056
|
+
let o = [];
|
|
3052
3057
|
N(() => t.inputValue, () => {
|
|
3053
3058
|
r.value ? r.value = !1 : S();
|
|
3054
3059
|
});
|
|
3055
|
-
const
|
|
3060
|
+
const s = v(() => t.typeaheadId || u.value), i = v(() => `${s.value}-input-addon`), c = v(() => `${s.value}-input`), f = v(() => `${s.value}-options`), x = v(() => {
|
|
3056
3061
|
if (l.value) {
|
|
3057
|
-
let
|
|
3058
|
-
const
|
|
3059
|
-
return
|
|
3062
|
+
let $ = t.options;
|
|
3063
|
+
const h = t.inputValue.toLowerCase(), C = t.filterType === "includes" ? "includes" : "startsWith";
|
|
3064
|
+
return $ = m($, h, C), $ = $.slice(0, t.maxOptions), $ = T($, h, C), o = $, $;
|
|
3060
3065
|
} else
|
|
3061
|
-
return
|
|
3066
|
+
return o;
|
|
3062
3067
|
});
|
|
3063
|
-
function
|
|
3064
|
-
return t.internalFiltering ?
|
|
3068
|
+
function m($, h, C) {
|
|
3069
|
+
return t.internalFiltering ? $.filter((I) => I.label.toLowerCase()[C](h)) : $;
|
|
3065
3070
|
}
|
|
3066
|
-
function
|
|
3067
|
-
return
|
|
3068
|
-
let
|
|
3069
|
-
if (
|
|
3070
|
-
const
|
|
3071
|
-
|
|
3071
|
+
function T($, h, C) {
|
|
3072
|
+
return $.map((I) => {
|
|
3073
|
+
let P = I.label;
|
|
3074
|
+
if (h !== "") {
|
|
3075
|
+
const F = C === "includes" ? "gi" : "i", ne = new RegExp(`(${h})`, F);
|
|
3076
|
+
P = I.label.replace(ne, '<span style="color: var(--bs-blue-base)">$1</span>');
|
|
3072
3077
|
}
|
|
3073
|
-
return { ...
|
|
3078
|
+
return { ...I, labelHtml: P };
|
|
3074
3079
|
});
|
|
3075
3080
|
}
|
|
3076
3081
|
function S() {
|
|
@@ -3079,59 +3084,59 @@ const Sa = {
|
|
|
3079
3084
|
function k() {
|
|
3080
3085
|
n("update:inputValue", ""), n("update:optionsValue", ""), document.getElementById(c.value).focus();
|
|
3081
3086
|
}
|
|
3082
|
-
function q(
|
|
3087
|
+
function q($) {
|
|
3083
3088
|
r.value = !0, l.value = !1;
|
|
3084
|
-
const
|
|
3085
|
-
n("update:inputValue",
|
|
3089
|
+
const h = x.value.find((C) => C.value === $);
|
|
3090
|
+
n("update:inputValue", h.label), n("update:optionsValue", $);
|
|
3086
3091
|
}
|
|
3087
|
-
return (
|
|
3088
|
-
e.label ||
|
|
3092
|
+
return ($, h) => (d(), b(G, null, [
|
|
3093
|
+
e.label || $.$slots.label ? (d(), V(ae, {
|
|
3089
3094
|
key: 0,
|
|
3090
3095
|
for: c.value,
|
|
3091
3096
|
disabled: e.disabled,
|
|
3092
3097
|
required: e.required
|
|
3093
3098
|
}, {
|
|
3094
3099
|
default: O(() => [
|
|
3095
|
-
E(
|
|
3096
|
-
|
|
3100
|
+
E($.$slots, "label", {}, () => [
|
|
3101
|
+
W(A(e.label), 1)
|
|
3097
3102
|
])
|
|
3098
3103
|
]),
|
|
3099
3104
|
_: 3
|
|
3100
3105
|
}, 8, ["for", "disabled", "required"])) : w("", !0),
|
|
3101
|
-
D(
|
|
3102
|
-
"aria-controls":
|
|
3106
|
+
D(un, z({
|
|
3107
|
+
"aria-controls": f.value,
|
|
3103
3108
|
"aria-expanded": l.value,
|
|
3104
3109
|
"aria-haspopup": "listbox",
|
|
3105
3110
|
autocomplete: "off",
|
|
3106
3111
|
disabled: e.disabled,
|
|
3107
3112
|
"hide-clear": e.inputValue === "",
|
|
3108
3113
|
"hide-search-icon": e.hideSearchIcon,
|
|
3109
|
-
id:
|
|
3114
|
+
id: i.value,
|
|
3110
3115
|
"input-id": c.value,
|
|
3111
3116
|
placeholder: e.placeholder,
|
|
3112
3117
|
value: e.inputValue
|
|
3113
|
-
},
|
|
3118
|
+
}, $.$attrs, {
|
|
3114
3119
|
onClear: k,
|
|
3115
3120
|
onFocusin: S,
|
|
3116
|
-
"onUpdate:modelValue":
|
|
3121
|
+
"onUpdate:modelValue": h[0] || (h[0] = (C) => n("update:inputValue", C))
|
|
3117
3122
|
}), null, 16, ["aria-controls", "aria-expanded", "disabled", "hide-clear", "hide-search-icon", "id", "input-id", "placeholder", "value"]),
|
|
3118
3123
|
D(We, {
|
|
3119
|
-
"anchor-id":
|
|
3124
|
+
"anchor-id": i.value,
|
|
3120
3125
|
"focus-on-show": !1,
|
|
3121
3126
|
"model-value": e.optionsValue,
|
|
3122
|
-
"options-id":
|
|
3127
|
+
"options-id": f.value,
|
|
3123
3128
|
preloaded: !0,
|
|
3124
3129
|
"prevent-tab": !1,
|
|
3125
3130
|
shown: l.value,
|
|
3126
3131
|
"use-mobile-style": !1,
|
|
3127
3132
|
width: "toggle",
|
|
3128
|
-
onClose:
|
|
3133
|
+
onClose: h[1] || (h[1] = (C) => l.value = !1),
|
|
3129
3134
|
"onUpdate:modelValue": q
|
|
3130
3135
|
}, {
|
|
3131
3136
|
default: O(() => [
|
|
3132
|
-
D(
|
|
3137
|
+
D(Be, { options: x.value }, {
|
|
3133
3138
|
"no-options": O(() => [
|
|
3134
|
-
|
|
3139
|
+
W("No results found")
|
|
3135
3140
|
]),
|
|
3136
3141
|
_: 1
|
|
3137
3142
|
}, 8, ["options"])
|
|
@@ -3140,12 +3145,12 @@ const Sa = {
|
|
|
3140
3145
|
}, 8, ["anchor-id", "model-value", "options-id", "shown"])
|
|
3141
3146
|
], 64));
|
|
3142
3147
|
}
|
|
3143
|
-
},
|
|
3148
|
+
}, cn = ["data-size", "data-variant"], fn = /* @__PURE__ */ y("span", null, null, -1), pn = /* @__PURE__ */ y("span", null, null, -1), vn = /* @__PURE__ */ y("span", null, null, -1), hn = /* @__PURE__ */ y("span", null, null, -1), bn = /* @__PURE__ */ y("span", { class: "visually-hidden" }, "Loading", -1), mn = [
|
|
3149
|
+
fn,
|
|
3144
3150
|
pn,
|
|
3145
3151
|
vn,
|
|
3146
3152
|
hn,
|
|
3147
|
-
bn
|
|
3148
|
-
mn
|
|
3153
|
+
bn
|
|
3149
3154
|
], Rl = {
|
|
3150
3155
|
__name: "BsLoader",
|
|
3151
3156
|
props: {
|
|
@@ -3160,14 +3165,14 @@ const Sa = {
|
|
|
3160
3165
|
}
|
|
3161
3166
|
},
|
|
3162
3167
|
setup(e) {
|
|
3163
|
-
return (a, t) => (
|
|
3168
|
+
return (a, t) => (d(), b("span", {
|
|
3164
3169
|
class: "bs-loader",
|
|
3165
3170
|
"data-size": e.size,
|
|
3166
3171
|
"data-variant": e.variant,
|
|
3167
3172
|
role: "status"
|
|
3168
|
-
},
|
|
3173
|
+
}, mn, 8, cn));
|
|
3169
3174
|
}
|
|
3170
|
-
},
|
|
3175
|
+
}, gn = /* @__PURE__ */ y("div", { class: "bs-overlay" }, null, -1), yn = {
|
|
3171
3176
|
__name: "BsOverlay",
|
|
3172
3177
|
props: {
|
|
3173
3178
|
shown: {
|
|
@@ -3196,27 +3201,24 @@ const Sa = {
|
|
|
3196
3201
|
},
|
|
3197
3202
|
emits: ["after-enter", "after-leave"],
|
|
3198
3203
|
setup(e, { emit: a }) {
|
|
3199
|
-
const t = e, n = a, { transition: l } =
|
|
3204
|
+
const t = e, n = a, { transition: l } = ve(t);
|
|
3200
3205
|
return N(l, (r) => {
|
|
3201
3206
|
r ? document.body.setAttribute("data-scroll", "false") : document.body.removeAttribute("data-scroll");
|
|
3202
|
-
}), (r,
|
|
3203
|
-
shown:
|
|
3207
|
+
}), (r, u) => (d(), V(p(xe), {
|
|
3208
|
+
shown: p(l),
|
|
3204
3209
|
preloaded: e.preloaded,
|
|
3205
3210
|
duration: 75,
|
|
3206
3211
|
"enter-attribute": "data-shown",
|
|
3207
|
-
onAfterEnter:
|
|
3208
|
-
onAfterLeave:
|
|
3212
|
+
onAfterEnter: u[0] || (u[0] = (o) => n("after-enter")),
|
|
3213
|
+
onAfterLeave: u[1] || (u[1] = (o) => n("after-leave"))
|
|
3209
3214
|
}, {
|
|
3210
3215
|
default: O(() => [
|
|
3211
|
-
|
|
3216
|
+
gn
|
|
3212
3217
|
]),
|
|
3213
3218
|
_: 1
|
|
3214
3219
|
}, 8, ["shown", "preloaded"]));
|
|
3215
3220
|
}
|
|
3216
|
-
},
|
|
3217
|
-
key: 0,
|
|
3218
|
-
class: "modal-title"
|
|
3219
|
-
}, jl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3221
|
+
}, Bn = ["id", "role", "aria-labelledby"], $n = ["id"], jl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3220
3222
|
__name: "BsModal",
|
|
3221
3223
|
props: {
|
|
3222
3224
|
modalId: {
|
|
@@ -3261,81 +3263,86 @@ const Sa = {
|
|
|
3261
3263
|
},
|
|
3262
3264
|
emits: ["close", "after-enter", "after-leave"],
|
|
3263
3265
|
setup(e, { emit: a }) {
|
|
3264
|
-
const t = e, n = a, { transition: l } =
|
|
3265
|
-
let
|
|
3266
|
-
const
|
|
3267
|
-
|
|
3266
|
+
const t = e, n = a, { transition: l } = ve(t), [r] = Q();
|
|
3267
|
+
let u = !1;
|
|
3268
|
+
const o = g(null), s = (f) => {
|
|
3269
|
+
o.value && f.target.closest(".bs-overlay") && n("close", t.modalId);
|
|
3268
3270
|
};
|
|
3269
|
-
|
|
3270
|
-
document.addEventListener("click",
|
|
3271
|
+
K(() => {
|
|
3272
|
+
document.addEventListener("click", s);
|
|
3271
3273
|
}), oe(() => {
|
|
3272
|
-
document.removeEventListener("click",
|
|
3273
|
-
}),
|
|
3274
|
-
|
|
3274
|
+
document.removeEventListener("click", s);
|
|
3275
|
+
}), Ce(["Escape"], () => {
|
|
3276
|
+
u && n("close", t.modalId);
|
|
3275
3277
|
});
|
|
3276
|
-
const
|
|
3277
|
-
return (
|
|
3278
|
-
D(
|
|
3279
|
-
shown:
|
|
3278
|
+
const i = () => !t.title && t.closeButton, c = () => t.title && t.closeButton;
|
|
3279
|
+
return (f, x) => (d(), b(G, null, [
|
|
3280
|
+
D(yn, {
|
|
3281
|
+
shown: p(l),
|
|
3280
3282
|
preloaded: e.preloaded,
|
|
3281
3283
|
"enter-controlled": e.enterControlled,
|
|
3282
3284
|
"enter-trigger": e.enterTrigger,
|
|
3283
3285
|
"leave-trigger": e.leaveTrigger
|
|
3284
3286
|
}, null, 8, ["shown", "preloaded", "enter-controlled", "enter-trigger", "leave-trigger"]),
|
|
3285
|
-
D(
|
|
3286
|
-
shown:
|
|
3287
|
+
D(xe, {
|
|
3288
|
+
shown: p(l),
|
|
3287
3289
|
preloaded: e.preloaded,
|
|
3288
3290
|
duration: 75,
|
|
3289
3291
|
"enter-attribute": "data-shown",
|
|
3290
|
-
onEnter:
|
|
3291
|
-
onAfterEnter:
|
|
3292
|
-
onAfterLeave:
|
|
3292
|
+
onEnter: x[1] || (x[1] = (m) => pt(u) ? u.value = !0 : u = !0),
|
|
3293
|
+
onAfterEnter: x[2] || (x[2] = (m) => n("after-enter")),
|
|
3294
|
+
onAfterLeave: x[3] || (x[3] = (m) => n("after-leave"))
|
|
3293
3295
|
}, {
|
|
3294
3296
|
default: O(() => [
|
|
3295
|
-
|
|
3296
|
-
id:
|
|
3297
|
+
y("div", z({
|
|
3298
|
+
id: e.modalId,
|
|
3297
3299
|
class: "bs-modal",
|
|
3298
3300
|
role: e.alert ? "alertdialog" : "dialog",
|
|
3301
|
+
"aria-labelledby": e.title && !f.$attrs["aria-label"] ? p(r) : void 0,
|
|
3299
3302
|
"aria-modal": "true"
|
|
3300
|
-
},
|
|
3303
|
+
}, f.$attrs, {
|
|
3301
3304
|
ref_key: "modalRef",
|
|
3302
|
-
ref:
|
|
3305
|
+
ref: o
|
|
3303
3306
|
}), [
|
|
3304
|
-
e.title || e.closeButton ? (
|
|
3307
|
+
e.title || e.closeButton ? (d(), b("header", {
|
|
3305
3308
|
key: 0,
|
|
3306
|
-
class:
|
|
3307
|
-
"only-close-button-modal-header":
|
|
3308
|
-
"modal-header":
|
|
3309
|
+
class: te({
|
|
3310
|
+
"only-close-button-modal-header": i,
|
|
3311
|
+
"modal-header": c
|
|
3309
3312
|
})
|
|
3310
3313
|
}, [
|
|
3311
|
-
e.title ? (
|
|
3312
|
-
|
|
3314
|
+
e.title ? (d(), b("h5", {
|
|
3315
|
+
key: 0,
|
|
3316
|
+
id: p(r),
|
|
3317
|
+
class: "modal-title"
|
|
3318
|
+
}, A(e.title), 9, $n)) : w("", !0),
|
|
3319
|
+
e.closeButton ? (d(), b("button", {
|
|
3313
3320
|
key: 1,
|
|
3314
3321
|
type: "button",
|
|
3315
3322
|
title: "Close Modal",
|
|
3316
3323
|
"aria-label": "Close Modal",
|
|
3317
|
-
onClick:
|
|
3324
|
+
onClick: x[0] || (x[0] = (m) => n("close", e.modalId))
|
|
3318
3325
|
}, [
|
|
3319
|
-
D(
|
|
3326
|
+
D(p(we), { class: "close-button" })
|
|
3320
3327
|
])) : w("", !0)
|
|
3321
3328
|
], 2)) : w("", !0),
|
|
3322
|
-
E(
|
|
3323
|
-
], 16,
|
|
3329
|
+
E(f.$slots, "default")
|
|
3330
|
+
], 16, Bn)
|
|
3324
3331
|
]),
|
|
3325
3332
|
_: 3
|
|
3326
3333
|
}, 8, ["shown", "preloaded"])
|
|
3327
3334
|
], 64));
|
|
3328
3335
|
}
|
|
3329
|
-
}),
|
|
3336
|
+
}), Sn = ["data-variant", "data-fixed"], wn = {
|
|
3330
3337
|
key: 0,
|
|
3331
3338
|
class: "bs-pagination-carets"
|
|
3332
|
-
},
|
|
3339
|
+
}, kn = ["aria-label", "title", "disabled"], In = { key: 0 }, Cn = ["aria-label", "title", "disabled"], Tn = { key: 0 }, xn = {
|
|
3333
3340
|
key: 1,
|
|
3334
3341
|
class: "bs-pagination-page-numbers"
|
|
3335
|
-
},
|
|
3342
|
+
}, An = ["title", "data-selected", "onClick"], Ln = { key: 2 }, Vn = { key: 3 }, En = /* @__PURE__ */ y("span", null, "Results Per Page:", -1), Dn = { class: "bs-pagination-results-numbers" }, On = ["data-selected", "disabled", "onClick"], qn = {
|
|
3336
3343
|
key: 5,
|
|
3337
3344
|
class: "bs-pagination-carets"
|
|
3338
|
-
}, Pn = ["title", "disabled"],
|
|
3345
|
+
}, Pn = ["aria-label", "title", "disabled"], Mn = { key: 0 }, zn = ["aria-label", "title", "disabled"], Nn = { key: 0 }, Fl = {
|
|
3339
3346
|
__name: "BsPagination",
|
|
3340
3347
|
props: {
|
|
3341
3348
|
// Used for all
|
|
@@ -3421,11 +3428,11 @@ const Sa = {
|
|
|
3421
3428
|
},
|
|
3422
3429
|
emits: ["selchange", "update:modelValue"],
|
|
3423
3430
|
setup(e, { emit: a }) {
|
|
3424
|
-
const t = e, n = a, l =
|
|
3425
|
-
|
|
3431
|
+
const t = e, n = a, l = g(null);
|
|
3432
|
+
K(() => {
|
|
3426
3433
|
r.value ? l.value = r.value : t.variant === "results" ? l.value = S.value[0] : l.value = 1;
|
|
3427
3434
|
});
|
|
3428
|
-
const r =
|
|
3435
|
+
const r = v(() => t.modelValue || t.selection);
|
|
3429
3436
|
N(() => t.selection, (k) => {
|
|
3430
3437
|
l.value = k;
|
|
3431
3438
|
}), N(() => t.modelValue, (k) => {
|
|
@@ -3433,117 +3440,121 @@ const Sa = {
|
|
|
3433
3440
|
}), N(l, (k, q) => {
|
|
3434
3441
|
q !== null && (n("selchange", k), n("update:modelValue", k));
|
|
3435
3442
|
});
|
|
3436
|
-
const
|
|
3443
|
+
const u = v(() => {
|
|
3437
3444
|
if (t.variant === "group")
|
|
3438
3445
|
return Math.ceil(t.itemsCount / t.itemsPerGroup);
|
|
3439
3446
|
if (t.variant === "base")
|
|
3440
3447
|
return t.pageCount;
|
|
3441
|
-
}),
|
|
3442
|
-
function
|
|
3448
|
+
}), o = v(() => t.variant === "base" ? t.centerDisplay === "text" ? "group" : void 0 : t.variant);
|
|
3449
|
+
function s() {
|
|
3443
3450
|
l.value = 1;
|
|
3444
3451
|
}
|
|
3445
|
-
function
|
|
3452
|
+
function i() {
|
|
3446
3453
|
l.value = Math.max(l.value - 1, 1);
|
|
3447
3454
|
}
|
|
3448
3455
|
function c() {
|
|
3449
3456
|
l.value = Math.min(
|
|
3450
3457
|
l.value + 1,
|
|
3451
|
-
|
|
3458
|
+
u.value
|
|
3452
3459
|
);
|
|
3453
3460
|
}
|
|
3454
|
-
function
|
|
3455
|
-
l.value =
|
|
3461
|
+
function f() {
|
|
3462
|
+
l.value = u.value;
|
|
3456
3463
|
}
|
|
3457
|
-
const
|
|
3464
|
+
const x = v(() => {
|
|
3458
3465
|
if (t.pageCount <= t.pageRange)
|
|
3459
3466
|
return [...Array(t.pageCount + 1).keys()].slice(1);
|
|
3460
3467
|
const k = [1], q = (t.pageRange - 1) / 2;
|
|
3461
|
-
let
|
|
3462
|
-
|
|
3463
|
-
for (let
|
|
3464
|
-
k.push(
|
|
3465
|
-
return
|
|
3466
|
-
}),
|
|
3468
|
+
let $ = l.value - q, h = l.value + q;
|
|
3469
|
+
$ < 1 && (h += 1 - $, $ = 1), h > t.pageCount && ($ -= h - t.pageCount, h = t.pageCount), $ = Math.max($, 2), h = Math.min(h, t.pageCount - 1), $ > 2 && k.push(t.breakText);
|
|
3470
|
+
for (let C = $; C <= h; C++)
|
|
3471
|
+
k.push(C);
|
|
3472
|
+
return h < t.pageCount - 1 && k.push(t.breakText), k.push(t.pageCount), k;
|
|
3473
|
+
}), m = v(() => `${t.centerLabel ?? "Page"} ${l.value} of ${u.value}`), T = v(() => {
|
|
3467
3474
|
const k = (l.value - 1) * t.itemsPerGroup + 1, q = Math.min(k - 1 + t.itemsPerGroup, t.itemsCount);
|
|
3468
3475
|
return `${t.centerLabel ?? "Results"} ${k} - ${q} of ${t.itemsCount}`;
|
|
3469
|
-
}), S =
|
|
3470
|
-
return (k, q) => (
|
|
3476
|
+
}), S = v(() => t.resultsIncrements.split(",").map((k) => parseInt(k)));
|
|
3477
|
+
return (k, q) => (d(), b("div", {
|
|
3471
3478
|
class: "bs-pagination",
|
|
3472
|
-
"data-variant":
|
|
3479
|
+
"data-variant": o.value,
|
|
3473
3480
|
"data-fixed": t.fixed
|
|
3474
3481
|
}, [
|
|
3475
|
-
e.variant === "base" || e.variant === "group" ? (
|
|
3476
|
-
e.showFirstLastButtons ? (
|
|
3482
|
+
e.variant === "base" || e.variant === "group" ? (d(), b("div", wn, [
|
|
3483
|
+
e.showFirstLastButtons ? (d(), b("button", {
|
|
3477
3484
|
key: 0,
|
|
3478
3485
|
type: "button",
|
|
3479
|
-
class:
|
|
3486
|
+
class: te(e.firstPageText ? "bs-pagination-word-caret" : void 0),
|
|
3487
|
+
"aria-label": e.firstPageText ? void 0 : "First Page",
|
|
3480
3488
|
title: e.firstPageText,
|
|
3481
3489
|
disabled: l.value === 1,
|
|
3482
|
-
onClick:
|
|
3490
|
+
onClick: s
|
|
3483
3491
|
}, [
|
|
3484
|
-
D(
|
|
3485
|
-
e.firstPageText ? (
|
|
3486
|
-
], 10,
|
|
3487
|
-
|
|
3492
|
+
D(p(mt)),
|
|
3493
|
+
e.firstPageText ? (d(), b("span", In, A(e.firstPageText), 1)) : w("", !0)
|
|
3494
|
+
], 10, kn)) : w("", !0),
|
|
3495
|
+
y("button", {
|
|
3488
3496
|
type: "button",
|
|
3489
|
-
class:
|
|
3497
|
+
class: te(e.prevPageText ? "bs-pagination-word-caret" : void 0),
|
|
3498
|
+
"aria-label": e.prevPageText ? void 0 : "Previous Page",
|
|
3490
3499
|
title: e.prevPageText,
|
|
3491
3500
|
disabled: l.value === 1,
|
|
3492
|
-
onClick:
|
|
3501
|
+
onClick: i
|
|
3493
3502
|
}, [
|
|
3494
|
-
D(
|
|
3495
|
-
e.prevPageText ? (
|
|
3496
|
-
], 10,
|
|
3503
|
+
D(p(gt)),
|
|
3504
|
+
e.prevPageText ? (d(), b("span", Tn, A(e.prevPageText), 1)) : w("", !0)
|
|
3505
|
+
], 10, Cn)
|
|
3497
3506
|
])) : w("", !0),
|
|
3498
|
-
e.variant === "base" && e.centerDisplay === "numbers" ? (
|
|
3499
|
-
(
|
|
3500
|
-
key: `page-${
|
|
3507
|
+
e.variant === "base" && e.centerDisplay === "numbers" ? (d(), b("div", xn, [
|
|
3508
|
+
(d(!0), b(G, null, Z(x.value, ($) => (d(), b("button", {
|
|
3509
|
+
key: `page-${$}-button`,
|
|
3501
3510
|
type: "button",
|
|
3502
|
-
title: `Page ${
|
|
3503
|
-
"data-selected":
|
|
3504
|
-
onClick: (
|
|
3505
|
-
},
|
|
3511
|
+
title: `Page ${$}`,
|
|
3512
|
+
"data-selected": $ === l.value,
|
|
3513
|
+
onClick: (h) => l.value = $
|
|
3514
|
+
}, A($), 9, An))), 128))
|
|
3506
3515
|
])) : w("", !0),
|
|
3507
|
-
t.variant === "base" && t.centerDisplay === "text" ? (
|
|
3508
|
-
t.variant === "group" ? (
|
|
3509
|
-
t.variant === "results" ? (
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
(
|
|
3516
|
+
t.variant === "base" && t.centerDisplay === "text" ? (d(), b("span", Ln, A(m.value), 1)) : w("", !0),
|
|
3517
|
+
t.variant === "group" ? (d(), b("span", Vn, A(T.value), 1)) : w("", !0),
|
|
3518
|
+
t.variant === "results" ? (d(), b(G, { key: 4 }, [
|
|
3519
|
+
En,
|
|
3520
|
+
y("div", Dn, [
|
|
3521
|
+
(d(!0), b(G, null, Z(S.value, ($) => (d(), b("button", {
|
|
3513
3522
|
type: "button",
|
|
3514
|
-
key: `results-${
|
|
3515
|
-
"data-selected":
|
|
3516
|
-
disabled: l.value ===
|
|
3517
|
-
onClick: (
|
|
3518
|
-
},
|
|
3523
|
+
key: `results-${$}`,
|
|
3524
|
+
"data-selected": $ === l.value,
|
|
3525
|
+
disabled: l.value === $,
|
|
3526
|
+
onClick: (h) => l.value = $
|
|
3527
|
+
}, A($), 9, On))), 128))
|
|
3519
3528
|
])
|
|
3520
3529
|
], 64)) : w("", !0),
|
|
3521
|
-
e.variant === "base" || e.variant === "group" ? (
|
|
3522
|
-
|
|
3530
|
+
e.variant === "base" || e.variant === "group" ? (d(), b("div", qn, [
|
|
3531
|
+
y("button", {
|
|
3523
3532
|
type: "button",
|
|
3524
|
-
class:
|
|
3533
|
+
class: te(e.nextPageText ? "bs-pagination-word-caret" : void 0),
|
|
3534
|
+
"aria-label": e.nextPageText ? void 0 : "Next Page",
|
|
3525
3535
|
title: e.nextPageText,
|
|
3526
|
-
disabled: l.value ===
|
|
3536
|
+
disabled: l.value === u.value,
|
|
3527
3537
|
onClick: c
|
|
3528
3538
|
}, [
|
|
3529
|
-
e.nextPageText ? (
|
|
3530
|
-
D(
|
|
3539
|
+
e.nextPageText ? (d(), b("span", Mn, A(e.nextPageText), 1)) : w("", !0),
|
|
3540
|
+
D(p(yt))
|
|
3531
3541
|
], 10, Pn),
|
|
3532
|
-
e.showFirstLastButtons ? (
|
|
3542
|
+
e.showFirstLastButtons ? (d(), b("button", {
|
|
3533
3543
|
key: 0,
|
|
3534
3544
|
type: "button",
|
|
3535
|
-
class:
|
|
3545
|
+
class: te(e.lastPageText ? "bs-pagination-word-caret" : void 0),
|
|
3546
|
+
"aria-label": e.lastPageText ? void 0 : "Last Page",
|
|
3536
3547
|
title: e.lastPageText,
|
|
3537
|
-
disabled: l.value ===
|
|
3538
|
-
onClick:
|
|
3548
|
+
disabled: l.value === u.value,
|
|
3549
|
+
onClick: f
|
|
3539
3550
|
}, [
|
|
3540
|
-
e.lastPageText ? (
|
|
3541
|
-
D(
|
|
3542
|
-
], 10,
|
|
3551
|
+
e.lastPageText ? (d(), b("span", Nn, A(e.lastPageText), 1)) : w("", !0),
|
|
3552
|
+
D(p(Bt))
|
|
3553
|
+
], 10, zn)) : w("", !0)
|
|
3543
3554
|
])) : w("", !0)
|
|
3544
|
-
], 8,
|
|
3555
|
+
], 8, Sn));
|
|
3545
3556
|
}
|
|
3546
|
-
},
|
|
3557
|
+
}, Rn = ["data-truncate"], Ul = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3547
3558
|
__name: "BsPill",
|
|
3548
3559
|
props: {
|
|
3549
3560
|
active: { type: Boolean, default: !1 },
|
|
@@ -3567,35 +3578,35 @@ const Sa = {
|
|
|
3567
3578
|
}
|
|
3568
3579
|
},
|
|
3569
3580
|
setup(e) {
|
|
3570
|
-
const a = e, { onLinkClick: t } =
|
|
3571
|
-
return (
|
|
3581
|
+
const a = e, { onLinkClick: t } = Ie(a), n = ie(), { rootTag: l, attrsToBind: r, hrefUrl: u } = ke(a, n, "span");
|
|
3582
|
+
return (o, s) => (d(), V(J(p(l)), z({
|
|
3572
3583
|
class: "bs-pill",
|
|
3573
3584
|
"data-active": e.active,
|
|
3574
3585
|
"data-component": "bs-pill",
|
|
3575
3586
|
"data-status": e.status || void 0,
|
|
3576
3587
|
"data-variant": e.variant || void 0,
|
|
3577
3588
|
disabled: e.disabled,
|
|
3578
|
-
".href":
|
|
3579
|
-
},
|
|
3589
|
+
".href": p(u)
|
|
3590
|
+
}, p(r), { onClick: p(t) }), {
|
|
3580
3591
|
default: O(() => [
|
|
3581
|
-
|
|
3582
|
-
E(
|
|
3583
|
-
], 8,
|
|
3592
|
+
y("span", { "data-truncate": e.truncate }, [
|
|
3593
|
+
E(o.$slots, "default")
|
|
3594
|
+
], 8, Rn)
|
|
3584
3595
|
]),
|
|
3585
3596
|
_: 3
|
|
3586
3597
|
}, 48, ["data-active", "data-status", "data-variant", "disabled", ".href", "onClick"]));
|
|
3587
3598
|
}
|
|
3588
|
-
}),
|
|
3599
|
+
}), jn = { class: "bs-profile-details" }, Fn = {
|
|
3589
3600
|
class: "bs-profile-name",
|
|
3590
3601
|
"data-size": "sm",
|
|
3591
3602
|
"data-weight": "bold"
|
|
3592
|
-
},
|
|
3603
|
+
}, Un = {
|
|
3593
3604
|
key: 1,
|
|
3594
3605
|
"data-weight": "bold"
|
|
3595
|
-
},
|
|
3606
|
+
}, Wn = { key: 2 }, Gn = { key: 3 }, Hn = {
|
|
3596
3607
|
key: 4,
|
|
3597
3608
|
"data-icon": "true"
|
|
3598
|
-
},
|
|
3609
|
+
}, Kn = {
|
|
3599
3610
|
__name: "BsProfileDetails",
|
|
3600
3611
|
props: {
|
|
3601
3612
|
profileName: {
|
|
@@ -3612,35 +3623,35 @@ const Sa = {
|
|
|
3612
3623
|
},
|
|
3613
3624
|
emits: ["action-toggled"],
|
|
3614
3625
|
setup(e, { emit: a }) {
|
|
3615
|
-
const t = e, n = a, { icon: l } =
|
|
3616
|
-
function
|
|
3617
|
-
|
|
3626
|
+
const t = e, n = a, { icon: l } = ye(t, "actionIcon"), { icon: r } = ye(t, "miscMetaIcon");
|
|
3627
|
+
function u(o) {
|
|
3628
|
+
o.target.tagName === "BUTTON" && (o.preventDefault(), o.stopImmediatePropagation(), n("action-toggled"));
|
|
3618
3629
|
}
|
|
3619
|
-
return (
|
|
3620
|
-
e.action ||
|
|
3630
|
+
return (o, s) => (d(), b("div", jn, [
|
|
3631
|
+
e.action || o.$slots.action ? (d(), b("button", {
|
|
3621
3632
|
key: 0,
|
|
3622
3633
|
"data-icon": "true",
|
|
3623
|
-
onClick:
|
|
3634
|
+
onClick: u
|
|
3624
3635
|
}, [
|
|
3625
|
-
E(
|
|
3626
|
-
e.actionIcon ? (
|
|
3636
|
+
E(o.$slots, "action", {}, () => [
|
|
3637
|
+
e.actionIcon ? (d(), V(J(p(l) ? p(l) : "span"), {
|
|
3627
3638
|
key: 0,
|
|
3628
3639
|
class: "bs-icon"
|
|
3629
3640
|
})) : w("", !0),
|
|
3630
|
-
|
|
3641
|
+
W(" " + A(e.action), 1)
|
|
3631
3642
|
])
|
|
3632
3643
|
])) : w("", !0),
|
|
3633
|
-
|
|
3634
|
-
e.company ? (
|
|
3635
|
-
e.jobTitle ? (
|
|
3636
|
-
e.email ? (
|
|
3637
|
-
e.miscMeta ||
|
|
3638
|
-
E(
|
|
3639
|
-
e.miscMetaIcon ? (
|
|
3644
|
+
y("span", Fn, A(e.profileName), 1),
|
|
3645
|
+
e.company ? (d(), b("span", Un, A(e.company), 1)) : w("", !0),
|
|
3646
|
+
e.jobTitle ? (d(), b("span", Wn, A(e.jobTitle), 1)) : w("", !0),
|
|
3647
|
+
e.email ? (d(), b("span", Gn, A(e.email), 1)) : w("", !0),
|
|
3648
|
+
e.miscMeta || o.$slots.misc ? (d(), b("span", Hn, [
|
|
3649
|
+
E(o.$slots, "misc", {}, () => [
|
|
3650
|
+
e.miscMetaIcon ? (d(), V(J(p(r) ? p(r) : "span"), {
|
|
3640
3651
|
key: 0,
|
|
3641
3652
|
class: "bs-icon"
|
|
3642
3653
|
})) : w("", !0),
|
|
3643
|
-
|
|
3654
|
+
W(" " + A(e.miscMeta), 1)
|
|
3644
3655
|
])
|
|
3645
3656
|
])) : w("", !0)
|
|
3646
3657
|
]));
|
|
@@ -3675,20 +3686,21 @@ const Sa = {
|
|
|
3675
3686
|
},
|
|
3676
3687
|
emits: ["action-toggled"],
|
|
3677
3688
|
setup(e, { emit: a }) {
|
|
3678
|
-
const t = e, n = a, l = ie(), { onLinkClick: r } =
|
|
3679
|
-
return (
|
|
3689
|
+
const t = e, n = a, l = ie(), { onLinkClick: r } = Ie(t), { rootTag: u, attrsToBind: o, hrefUrl: s } = ke(t, l, "div");
|
|
3690
|
+
return (i, c) => (d(), V(J(p(u)), z({
|
|
3680
3691
|
class: "bs-profile",
|
|
3681
|
-
".href":
|
|
3692
|
+
".href": p(s),
|
|
3682
3693
|
"data-layout": e.layout
|
|
3683
|
-
},
|
|
3694
|
+
}, p(o), { onClick: p(r) }), {
|
|
3684
3695
|
default: O(() => [
|
|
3685
|
-
D(
|
|
3696
|
+
D(rt, {
|
|
3686
3697
|
src: e.imageSrc,
|
|
3687
3698
|
size: e.imageSize,
|
|
3688
3699
|
initials: e.initials,
|
|
3689
|
-
"profile-name": e.profileName
|
|
3700
|
+
"profile-name": e.profileName,
|
|
3701
|
+
"use-alt-text": !1
|
|
3690
3702
|
}, null, 8, ["src", "size", "initials", "profile-name"]),
|
|
3691
|
-
D(
|
|
3703
|
+
D(Kn, {
|
|
3692
3704
|
"profile-name": e.profileName,
|
|
3693
3705
|
company: e.company,
|
|
3694
3706
|
"job-title": e.jobTitle,
|
|
@@ -3697,13 +3709,13 @@ const Sa = {
|
|
|
3697
3709
|
"action-icon": e.actionIcon,
|
|
3698
3710
|
"misc-meta": e.miscMeta,
|
|
3699
3711
|
"misc-meta-icon": e.miscMetaIcon,
|
|
3700
|
-
onActionToggled: c[0] || (c[0] = (
|
|
3712
|
+
onActionToggled: c[0] || (c[0] = (f) => n("action-toggled"))
|
|
3701
3713
|
}, {
|
|
3702
3714
|
action: O(() => [
|
|
3703
|
-
E(
|
|
3715
|
+
E(i.$slots, "action")
|
|
3704
3716
|
]),
|
|
3705
3717
|
misc: O(() => [
|
|
3706
|
-
E(
|
|
3718
|
+
E(i.$slots, "misc")
|
|
3707
3719
|
]),
|
|
3708
3720
|
_: 3
|
|
3709
3721
|
}, 8, ["profile-name", "company", "job-title", "email", "action", "action-icon", "misc-meta", "misc-meta-icon"])
|
|
@@ -3711,7 +3723,7 @@ const Sa = {
|
|
|
3711
3723
|
_: 3
|
|
3712
3724
|
}, 48, [".href", "data-layout", "onClick"]));
|
|
3713
3725
|
}
|
|
3714
|
-
}),
|
|
3726
|
+
}), Yn = ["data-size"], Qn = ["checked", "disabled", "id", "required", "value", "data-error"], Gl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3715
3727
|
__name: "BsRadio",
|
|
3716
3728
|
props: {
|
|
3717
3729
|
label: {
|
|
@@ -3755,39 +3767,39 @@ const Sa = {
|
|
|
3755
3767
|
},
|
|
3756
3768
|
emits: ["update:modelValue"],
|
|
3757
3769
|
setup(e, { emit: a }) {
|
|
3758
|
-
const t = e, [n] =
|
|
3759
|
-
return (
|
|
3770
|
+
const t = e, [n] = Q(), l = v(() => je.concat(t.passAttrs.split(","))), r = v(() => t.inputId || n.value), u = v(() => t.checked || t.modelValue && t.modelValue === t.value);
|
|
3771
|
+
return (o, s) => (d(), b("div", z({
|
|
3760
3772
|
class: "bs-boolean",
|
|
3761
3773
|
"data-component": "bs-radio",
|
|
3762
3774
|
"data-size": e.size
|
|
3763
|
-
},
|
|
3764
|
-
|
|
3765
|
-
checked:
|
|
3775
|
+
}, p(H)(o.$attrs, l.value).remaining), [
|
|
3776
|
+
y("input", z({
|
|
3777
|
+
checked: u.value,
|
|
3766
3778
|
disabled: e.disabled,
|
|
3767
|
-
id:
|
|
3779
|
+
id: o.$attrs.id || r.value,
|
|
3768
3780
|
required: e.required,
|
|
3769
3781
|
type: "radio",
|
|
3770
3782
|
value: e.value,
|
|
3771
3783
|
"data-error": e.error
|
|
3772
|
-
},
|
|
3773
|
-
onChange:
|
|
3774
|
-
}), null, 16,
|
|
3775
|
-
e.label ||
|
|
3784
|
+
}, p(H)(o.$attrs, l.value).filtered, {
|
|
3785
|
+
onChange: s[0] || (s[0] = (i) => o.$emit("update:modelValue", i.target.value))
|
|
3786
|
+
}), null, 16, Qn),
|
|
3787
|
+
e.label || o.$slots.label ? (d(), V(ae, {
|
|
3776
3788
|
key: 0,
|
|
3777
|
-
for:
|
|
3789
|
+
for: o.$attrs.id || r.value,
|
|
3778
3790
|
disabled: e.disabled,
|
|
3779
3791
|
required: e.required
|
|
3780
3792
|
}, {
|
|
3781
3793
|
default: O(() => [
|
|
3782
|
-
E(
|
|
3783
|
-
|
|
3794
|
+
E(o.$slots, "label", {}, () => [
|
|
3795
|
+
W(A(e.label), 1)
|
|
3784
3796
|
])
|
|
3785
3797
|
]),
|
|
3786
3798
|
_: 3
|
|
3787
3799
|
}, 8, ["for", "disabled", "required"])) : w("", !0)
|
|
3788
|
-
], 16,
|
|
3800
|
+
], 16, Yn));
|
|
3789
3801
|
}
|
|
3790
|
-
}),
|
|
3802
|
+
}), Xn = ["id", "disabled", "required", "data-error", "value"], Zn = {
|
|
3791
3803
|
__name: "BsSelect",
|
|
3792
3804
|
props: {
|
|
3793
3805
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -3800,8 +3812,8 @@ const Sa = {
|
|
|
3800
3812
|
},
|
|
3801
3813
|
emits: ["update:modelValue"],
|
|
3802
3814
|
setup(e, { emit: a }) {
|
|
3803
|
-
const t = e, n =
|
|
3804
|
-
return (l, r) => (
|
|
3815
|
+
const t = e, n = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
3816
|
+
return (l, r) => (d(), b("select", z({
|
|
3805
3817
|
id: l.$attrs.id || e.inputId,
|
|
3806
3818
|
class: "bs-select",
|
|
3807
3819
|
"data-component": "bs-select",
|
|
@@ -3810,12 +3822,12 @@ const Sa = {
|
|
|
3810
3822
|
"data-error": e.error,
|
|
3811
3823
|
value: e.value || e.modelValue
|
|
3812
3824
|
}, n.value, {
|
|
3813
|
-
onChange: r[0] || (r[0] = (
|
|
3825
|
+
onChange: r[0] || (r[0] = (u) => l.$emit("update:modelValue", u.target.value))
|
|
3814
3826
|
}), [
|
|
3815
3827
|
E(l.$slots, "default")
|
|
3816
|
-
], 16,
|
|
3828
|
+
], 16, Xn));
|
|
3817
3829
|
}
|
|
3818
|
-
},
|
|
3830
|
+
}, Jn = ["selected", "disabled"], _n = ["disabled", "selected", "value"], Hl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3819
3831
|
__name: "BsSelectField",
|
|
3820
3832
|
props: {
|
|
3821
3833
|
data: {
|
|
@@ -3859,60 +3871,60 @@ const Sa = {
|
|
|
3859
3871
|
modelValue: [String, Number]
|
|
3860
3872
|
},
|
|
3861
3873
|
setup(e) {
|
|
3862
|
-
const a = e, [t, n] =
|
|
3863
|
-
var
|
|
3864
|
-
return ((c = (
|
|
3874
|
+
const a = e, [t, n] = Q(2), l = v(() => da.concat(a.passAttrs.split(","))), r = v(() => {
|
|
3875
|
+
var i, c;
|
|
3876
|
+
return ((c = (i = a.hints) == null ? void 0 : i.join) == null ? void 0 : c.call(i, `
|
|
3865
3877
|
`)) || a.hints;
|
|
3866
|
-
}),
|
|
3867
|
-
return (
|
|
3868
|
-
e.label ||
|
|
3878
|
+
}), u = v(() => a.error && a.errorMsg || a.hint || r.value || void 0), o = v(() => a.inputId || t.value), s = v(() => a.value || a.modelValue);
|
|
3879
|
+
return (i, c) => (d(), b("div", z({ "data-component": "bs-select-field" }, p(H)(i.$attrs, l.value).remaining), [
|
|
3880
|
+
e.label || i.$slots.label ? (d(), V(ae, {
|
|
3869
3881
|
key: 0,
|
|
3870
|
-
for:
|
|
3882
|
+
for: i.$attrs.id || o.value,
|
|
3871
3883
|
disabled: e.disabled,
|
|
3872
3884
|
required: e.required
|
|
3873
3885
|
}, {
|
|
3874
3886
|
default: O(() => [
|
|
3875
|
-
E(
|
|
3876
|
-
|
|
3887
|
+
E(i.$slots, "label", {}, () => [
|
|
3888
|
+
W(A(e.label), 1)
|
|
3877
3889
|
])
|
|
3878
3890
|
]),
|
|
3879
3891
|
_: 3
|
|
3880
3892
|
}, 8, ["for", "disabled", "required"])) : w("", !0),
|
|
3881
|
-
D(
|
|
3893
|
+
D(Zn, z({
|
|
3882
3894
|
disabled: e.disabled,
|
|
3883
3895
|
error: e.error,
|
|
3884
|
-
"hint-id":
|
|
3885
|
-
"input-id":
|
|
3896
|
+
"hint-id": p(n),
|
|
3897
|
+
"input-id": i.$attrs.id || o.value,
|
|
3886
3898
|
required: e.required,
|
|
3887
|
-
value:
|
|
3888
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
3889
|
-
},
|
|
3899
|
+
value: s.value,
|
|
3900
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.$emit("update:modelValue", f))
|
|
3901
|
+
}, p(H)(i.$attrs, l.value).filtered), {
|
|
3890
3902
|
default: O(() => [
|
|
3891
|
-
|
|
3892
|
-
selected: !
|
|
3903
|
+
y("option", {
|
|
3904
|
+
selected: !s.value,
|
|
3893
3905
|
value: "",
|
|
3894
|
-
disabled: !!
|
|
3895
|
-
},
|
|
3896
|
-
(
|
|
3897
|
-
key:
|
|
3898
|
-
disabled:
|
|
3899
|
-
selected:
|
|
3900
|
-
value:
|
|
3901
|
-
},
|
|
3906
|
+
disabled: !!s.value
|
|
3907
|
+
}, A(e.disabled ? "" : e.placeholder), 9, Jn),
|
|
3908
|
+
(d(!0), b(G, null, Z(e.data, (f) => (d(), b("option", {
|
|
3909
|
+
key: f.value,
|
|
3910
|
+
disabled: f.disabled,
|
|
3911
|
+
selected: s.value === f.value,
|
|
3912
|
+
value: f.value
|
|
3913
|
+
}, A(f.label), 9, _n))), 128))
|
|
3902
3914
|
]),
|
|
3903
3915
|
_: 1
|
|
3904
3916
|
}, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
|
|
3905
|
-
|
|
3917
|
+
u.value ? (d(), V(he, {
|
|
3906
3918
|
key: 1,
|
|
3907
3919
|
"data-disabled": e.disabled,
|
|
3908
3920
|
error: e.error,
|
|
3909
3921
|
"error-msg": e.errorMsg,
|
|
3910
3922
|
hint: e.hint || r.value,
|
|
3911
|
-
"hint-id":
|
|
3923
|
+
"hint-id": p(n)
|
|
3912
3924
|
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : w("", !0)
|
|
3913
3925
|
], 16));
|
|
3914
3926
|
}
|
|
3915
|
-
}),
|
|
3927
|
+
}), el = ["data-size"], tl = ["data-disabled", "data-pending", "data-size"], al = ["checked", "disabled", "id"], nl = ["data-inner-on-label", "data-inner-off-label"], Kl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3916
3928
|
__name: "BsSwitch",
|
|
3917
3929
|
props: {
|
|
3918
3930
|
checked: {
|
|
@@ -3958,48 +3970,48 @@ const Sa = {
|
|
|
3958
3970
|
},
|
|
3959
3971
|
emits: ["update:modelValue"],
|
|
3960
3972
|
setup(e, { emit: a }) {
|
|
3961
|
-
const t = e, n = a, [l] =
|
|
3962
|
-
return (
|
|
3973
|
+
const t = e, n = a, [l] = Q(), r = v(() => je.concat(t.passAttrs.split(","))), u = v(() => t.inputId || l.value), o = v(() => t.checked || t.modelValue);
|
|
3974
|
+
return (s, i) => (d(), b("div", z({
|
|
3963
3975
|
class: "bs-boolean",
|
|
3964
3976
|
"data-component": "bs-switch",
|
|
3965
3977
|
"data-size": e.size
|
|
3966
|
-
},
|
|
3967
|
-
e.label ||
|
|
3978
|
+
}, p(H)(s.$attrs, r.value).remaining), [
|
|
3979
|
+
e.label || s.$slots.label ? (d(), V(ae, {
|
|
3968
3980
|
key: 0,
|
|
3969
|
-
for:
|
|
3981
|
+
for: s.$attrs.id || u.value,
|
|
3970
3982
|
disabled: e.disabled,
|
|
3971
3983
|
hide: e.hideLabel
|
|
3972
3984
|
}, {
|
|
3973
3985
|
default: O(() => [
|
|
3974
|
-
E(
|
|
3975
|
-
|
|
3986
|
+
E(s.$slots, "label", {}, () => [
|
|
3987
|
+
W(A(e.label), 1)
|
|
3976
3988
|
])
|
|
3977
3989
|
]),
|
|
3978
3990
|
_: 3
|
|
3979
3991
|
}, 8, ["for", "disabled", "hide"])) : w("", !0),
|
|
3980
|
-
|
|
3992
|
+
y("div", {
|
|
3981
3993
|
class: "bs-switch",
|
|
3982
3994
|
"data-disabled": e.disabled,
|
|
3983
3995
|
"data-pending": e.pending,
|
|
3984
3996
|
"data-size": e.size
|
|
3985
3997
|
}, [
|
|
3986
|
-
|
|
3987
|
-
checked:
|
|
3998
|
+
y("input", z({
|
|
3999
|
+
checked: o.value,
|
|
3988
4000
|
disabled: e.disabled,
|
|
3989
|
-
id:
|
|
4001
|
+
id: s.$attrs.id || u.value,
|
|
3990
4002
|
type: "checkbox"
|
|
3991
|
-
},
|
|
3992
|
-
onChange:
|
|
3993
|
-
}), null, 16,
|
|
3994
|
-
|
|
4003
|
+
}, p(H)(s.$attrs, r.value).filtered, {
|
|
4004
|
+
onChange: i[0] || (i[0] = (c) => n("update:modelValue", c.target.checked))
|
|
4005
|
+
}), null, 16, al),
|
|
4006
|
+
y("span", {
|
|
3995
4007
|
"aria-hidden": "true",
|
|
3996
4008
|
"data-inner-on-label": e.innerOnLabel,
|
|
3997
4009
|
"data-inner-off-label": e.innerOffLabel
|
|
3998
|
-
}, null, 8,
|
|
3999
|
-
], 8,
|
|
4000
|
-
], 16,
|
|
4010
|
+
}, null, 8, nl)
|
|
4011
|
+
], 8, tl)
|
|
4012
|
+
], 16, el));
|
|
4001
4013
|
}
|
|
4002
|
-
}),
|
|
4014
|
+
}), ll = ["aria-controls", "aria-selected", "data-hidden"], Yl = {
|
|
4003
4015
|
__name: "BsTab",
|
|
4004
4016
|
props: {
|
|
4005
4017
|
activeTabId: {
|
|
@@ -4016,18 +4028,18 @@ const Sa = {
|
|
|
4016
4028
|
},
|
|
4017
4029
|
emits: ["tabClick"],
|
|
4018
4030
|
setup(e, { emit: a }) {
|
|
4019
|
-
const t = e, n = ie(), l =
|
|
4020
|
-
function i
|
|
4021
|
-
(
|
|
4031
|
+
const t = e, n = ie(), l = g(), r = v(() => t.activeTabId === n.id), u = v(() => t.panelId || `${n.id}-panel`);
|
|
4032
|
+
function o(i) {
|
|
4033
|
+
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), s());
|
|
4022
4034
|
}
|
|
4023
|
-
function
|
|
4035
|
+
function s() {
|
|
4024
4036
|
if (t.activeTabId !== n.id) {
|
|
4025
|
-
const
|
|
4026
|
-
l.value.dispatchEvent(
|
|
4037
|
+
const i = new CustomEvent("tabClick", { detail: n.id, bubbles: !0 });
|
|
4038
|
+
l.value.dispatchEvent(i);
|
|
4027
4039
|
}
|
|
4028
4040
|
}
|
|
4029
|
-
return (
|
|
4030
|
-
"aria-controls":
|
|
4041
|
+
return (i, c) => (d(), b("div", {
|
|
4042
|
+
"aria-controls": u.value,
|
|
4031
4043
|
"aria-selected": r.value ? "true" : "false",
|
|
4032
4044
|
"data-hidden": e.hidden || void 0,
|
|
4033
4045
|
"data-component": "bs-tab",
|
|
@@ -4035,13 +4047,13 @@ const Sa = {
|
|
|
4035
4047
|
tabindex: "0",
|
|
4036
4048
|
ref_key: "hostEl",
|
|
4037
4049
|
ref: l,
|
|
4038
|
-
onClick:
|
|
4039
|
-
onKeydown:
|
|
4050
|
+
onClick: s,
|
|
4051
|
+
onKeydown: o
|
|
4040
4052
|
}, [
|
|
4041
|
-
E(
|
|
4042
|
-
], 40,
|
|
4053
|
+
E(i.$slots, "default")
|
|
4054
|
+
], 40, ll));
|
|
4043
4055
|
}
|
|
4044
|
-
},
|
|
4056
|
+
}, ol = ["id", "data-resizing"], il = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], rl = 73, sl = 20, dl = 16, Ql = {
|
|
4045
4057
|
__name: "BsTabList",
|
|
4046
4058
|
props: {
|
|
4047
4059
|
activeTabId: { type: String, required: !0 },
|
|
@@ -4052,182 +4064,183 @@ const Sa = {
|
|
|
4052
4064
|
},
|
|
4053
4065
|
emits: ["tabChange", "update:modelValue"],
|
|
4054
4066
|
setup(e, { emit: a }) {
|
|
4055
|
-
const t = e, n = a, l =
|
|
4056
|
-
var
|
|
4057
|
-
return
|
|
4058
|
-
}),
|
|
4067
|
+
const t = e, n = a, l = g(!1), r = g(!1), u = g([]), o = g(!1), s = g(!1), i = g(), c = g(!1), f = g([]), x = g(!1), m = g([]), T = g(), S = g(), k = g(), [q, $] = Q(2), h = v(() => t.activeTabId ? m.value.findIndex((B) => B.id === t.activeTabId) : 0), C = v(() => u.value.some((B) => B.id === t.activeTabId)), I = v(() => `${$.value}-options`), P = v(() => `${$.value}-toggle`), F = v(() => {
|
|
4068
|
+
var B;
|
|
4069
|
+
return C.value ? (B = m.value[h.value]) == null ? void 0 : B.textContent : "More";
|
|
4070
|
+
}), ne = v(() => C.value ? f.value[h.value] - f.value[h.value - 1] + sl : rl), X = v(() => {
|
|
4059
4071
|
var L, R;
|
|
4060
|
-
let
|
|
4072
|
+
let B = [];
|
|
4061
4073
|
if (typeof window > "u")
|
|
4062
|
-
return
|
|
4063
|
-
for (let
|
|
4064
|
-
if (((L =
|
|
4074
|
+
return B;
|
|
4075
|
+
for (let Y of m.value) {
|
|
4076
|
+
if (((L = Y.dataset) == null ? void 0 : L.hidden) === "true" || ((R = Y.dataset) == null ? void 0 : R.hidden) === "" || Y.getAttribute("tabindex") === "-1")
|
|
4065
4077
|
break;
|
|
4066
|
-
|
|
4078
|
+
B.push(Y);
|
|
4067
4079
|
}
|
|
4068
|
-
return
|
|
4080
|
+
return s.value && B.push(i.value.querySelector(".bs-tab-list-toggle")), B;
|
|
4069
4081
|
});
|
|
4070
|
-
function
|
|
4082
|
+
function de() {
|
|
4071
4083
|
var le;
|
|
4072
|
-
let
|
|
4073
|
-
if ((le =
|
|
4074
|
-
for (let
|
|
4075
|
-
if (L =
|
|
4076
|
-
L.dataset.hidden = "true",
|
|
4084
|
+
let B = !1, L, R = 0, Y = !1, _ = [];
|
|
4085
|
+
if ((le = m.value) != null && le.length) {
|
|
4086
|
+
for (let ee = 0; ee < m.value.length; ee++) {
|
|
4087
|
+
if (L = m.value[ee], L.setAttribute("tabindex", "-1"), Y && ee !== h.value) {
|
|
4088
|
+
L.dataset.hidden = "true", _.push(L);
|
|
4077
4089
|
continue;
|
|
4078
4090
|
}
|
|
4079
|
-
if (R =
|
|
4080
|
-
L.dataset.hidden = "true",
|
|
4091
|
+
if (R = ee < m.value.length - 1 ? k.value - ne.value : k.value, f.value[ee] > R) {
|
|
4092
|
+
L.dataset.hidden = "true", _.push(L), B = !0, Y = !0;
|
|
4081
4093
|
continue;
|
|
4082
4094
|
}
|
|
4083
4095
|
L.dataset.hidden = "false", L.setAttribute("tabindex", "0");
|
|
4084
4096
|
}
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
},
|
|
4097
|
+
s.value = B, u.value = _, l.value || fe(() => l.value = !0), setTimeout(() => {
|
|
4098
|
+
j(), x.value = !0;
|
|
4099
|
+
}, x.value ? 0 : 1e3);
|
|
4088
4100
|
}
|
|
4089
4101
|
}
|
|
4090
|
-
function
|
|
4091
|
-
n("tabChange",
|
|
4092
|
-
}
|
|
4093
|
-
function xe(y) {
|
|
4094
|
-
var G, ee, le;
|
|
4095
|
-
const L = (le = (ee = (G = I.value[y]) == null ? void 0 : G.getBoundingClientRect) == null ? void 0 : ee.call(G)) == null ? void 0 : le.width;
|
|
4096
|
-
return L || (y === 0 ? c.value[0] : c.value[y] - c.value[y - 1]) || 0;
|
|
4102
|
+
function ue(B) {
|
|
4103
|
+
n("tabChange", B), n("update:modelValue", B);
|
|
4097
4104
|
}
|
|
4098
|
-
function Ae() {
|
|
4099
|
-
var
|
|
4100
|
-
(
|
|
4105
|
+
function Ae(B) {
|
|
4106
|
+
var Y, _, le;
|
|
4107
|
+
const L = (le = (_ = (Y = m.value[B]) == null ? void 0 : Y.getBoundingClientRect) == null ? void 0 : _.call(Y)) == null ? void 0 : le.width;
|
|
4108
|
+
return L || (B === 0 ? f.value[0] : f.value[B] - f.value[B - 1]) || 0;
|
|
4101
4109
|
}
|
|
4102
4110
|
function Le() {
|
|
4103
|
-
var
|
|
4104
|
-
(
|
|
4111
|
+
var B;
|
|
4112
|
+
(B = m.value[h.value]) == null || B.setAttribute("aria-selected", "true"), de();
|
|
4105
4113
|
}
|
|
4106
4114
|
function Ve() {
|
|
4107
|
-
|
|
4115
|
+
var B;
|
|
4116
|
+
(B = T.value) == null || B.focus(), o.value = !1;
|
|
4108
4117
|
}
|
|
4109
|
-
function Ee(
|
|
4118
|
+
function Ee() {
|
|
4119
|
+
o.value = !o.value, r.value || (r.value = !0);
|
|
4120
|
+
}
|
|
4121
|
+
function De(B) {
|
|
4110
4122
|
var L;
|
|
4111
|
-
|
|
4123
|
+
o.value = !1, (L = T.value) == null || L.focus(), ue(B);
|
|
4112
4124
|
}
|
|
4113
|
-
function
|
|
4125
|
+
function Oe(B) {
|
|
4114
4126
|
if (t.withBsTabs)
|
|
4115
4127
|
return;
|
|
4116
|
-
const L =
|
|
4128
|
+
const L = B.target.closest('[role="tab"]');
|
|
4117
4129
|
if (!L || L.getAttribute("aria-selected") === "true")
|
|
4118
4130
|
return;
|
|
4119
4131
|
const R = L.getAttribute("id");
|
|
4120
|
-
|
|
4132
|
+
ue(R);
|
|
4121
4133
|
}
|
|
4122
|
-
function
|
|
4123
|
-
if (
|
|
4124
|
-
const L =
|
|
4134
|
+
function me(B) {
|
|
4135
|
+
if (B.key === "ArrowLeft" || B.key === "ArrowRight") {
|
|
4136
|
+
const L = X.value.findIndex((R) => R.id === B.target.id);
|
|
4125
4137
|
if (L === -1)
|
|
4126
4138
|
return;
|
|
4127
|
-
|
|
4139
|
+
B.preventDefault(), B.stopPropagation(), B.key === "ArrowLeft" ? M(L) : ge(L);
|
|
4128
4140
|
}
|
|
4129
4141
|
}
|
|
4130
|
-
function
|
|
4142
|
+
function ge(B) {
|
|
4131
4143
|
var R;
|
|
4132
|
-
const L = (
|
|
4133
|
-
(R =
|
|
4144
|
+
const L = (B + 1) % X.value.length;
|
|
4145
|
+
(R = X.value[L]) == null || R.focus();
|
|
4134
4146
|
}
|
|
4135
|
-
function
|
|
4147
|
+
function M(B) {
|
|
4136
4148
|
var R;
|
|
4137
|
-
const L =
|
|
4138
|
-
(R =
|
|
4149
|
+
const L = B === 0 ? X.value.length - 1 : B - 1;
|
|
4150
|
+
(R = X.value[L]) == null || R.focus();
|
|
4139
4151
|
}
|
|
4140
|
-
function
|
|
4141
|
-
var le,
|
|
4142
|
-
const
|
|
4143
|
-
let R = 300,
|
|
4144
|
-
|
|
4152
|
+
function j() {
|
|
4153
|
+
var le, ee, Ge, He;
|
|
4154
|
+
const B = parseInt(i.value.style.getPropertyValue("--active-line-offset")) || 0, L = k.value;
|
|
4155
|
+
let R = 300, Y = ((ee = (le = X.value) == null ? void 0 : le[h.value]) == null ? void 0 : ee.offsetLeft) || 0, _ = Ae(h.value);
|
|
4156
|
+
s.value && C.value && (Y = (Ge = T.value) == null ? void 0 : Ge.offsetLeft, _ = (He = T.value) == null ? void 0 : He.offsetWidth), R = Math.max(Math.abs((Y - B) / L * 300), 100), i.value.style.setProperty("--active-line-max-width", `${L}px`), i.value.style.setProperty("--active-line-scale", `${_ / L}`), i.value.style.setProperty("--active-line-offset", `${Y}px`), i.value.style.setProperty("--active-line-transition-duration", `${R}ms`);
|
|
4145
4157
|
}
|
|
4146
|
-
function
|
|
4147
|
-
var
|
|
4148
|
-
(L = (
|
|
4158
|
+
function U() {
|
|
4159
|
+
var B, L;
|
|
4160
|
+
(L = (B = S.value) == null ? void 0 : B.disconnect) == null || L.call(B), S.value = null;
|
|
4149
4161
|
}
|
|
4150
|
-
function
|
|
4151
|
-
|
|
4152
|
-
for (let L of
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
}),
|
|
4162
|
+
function ce() {
|
|
4163
|
+
S.value = new ResizeObserver((B) => {
|
|
4164
|
+
for (let L of B)
|
|
4165
|
+
k.value = L.contentBoxSize[0].inlineSize;
|
|
4166
|
+
de();
|
|
4167
|
+
}), S.value.observe(i.value);
|
|
4156
4168
|
}
|
|
4157
|
-
function
|
|
4158
|
-
|
|
4169
|
+
function st() {
|
|
4170
|
+
m.value = Array.from(i.value.children).filter((B) => B.role === "tab");
|
|
4159
4171
|
}
|
|
4160
4172
|
function dt() {
|
|
4161
|
-
let
|
|
4162
|
-
|
|
4163
|
-
|
|
4173
|
+
let B;
|
|
4174
|
+
m.value.forEach((L, R) => {
|
|
4175
|
+
B = L.getBoundingClientRect().width + dl, f.value.push(R ? B + f.value[R - 1] : B);
|
|
4164
4176
|
});
|
|
4165
4177
|
}
|
|
4166
|
-
return N(() => t.activeTabId,
|
|
4167
|
-
var
|
|
4178
|
+
return N(() => t.activeTabId, Le), K(() => {
|
|
4179
|
+
var B;
|
|
4168
4180
|
try {
|
|
4169
|
-
|
|
4181
|
+
st(), dt(), ce(), k.value = i.value.getBoundingClientRect().width, de(), t.withBsTabs || (B = m.value[h.value]) == null || B.setAttribute("aria-selected", "true"), c.value = !0;
|
|
4170
4182
|
} catch (L) {
|
|
4171
4183
|
console.log("tab error", L);
|
|
4172
4184
|
}
|
|
4173
|
-
}), oe(
|
|
4185
|
+
}), oe(U), (B, L) => (d(), b("div", {
|
|
4174
4186
|
class: "bs-tab-list",
|
|
4175
4187
|
"data-component": "bs-tab-list",
|
|
4176
|
-
id:
|
|
4188
|
+
id: B.$attrs.id || p(q),
|
|
4177
4189
|
ref_key: "hostEl",
|
|
4178
|
-
ref:
|
|
4190
|
+
ref: i,
|
|
4179
4191
|
role: "tablist",
|
|
4180
4192
|
"data-resizing": !l.value || void 0,
|
|
4181
|
-
onClick:
|
|
4182
|
-
"on:tabClick": L[0] || (L[0] = (R) =>
|
|
4183
|
-
onKeydown:
|
|
4193
|
+
onClick: Oe,
|
|
4194
|
+
"on:tabClick": L[0] || (L[0] = (R) => ue(R.detail)),
|
|
4195
|
+
onKeydown: me
|
|
4184
4196
|
}, [
|
|
4185
|
-
E(
|
|
4186
|
-
|
|
4187
|
-
"aria-controls":
|
|
4188
|
-
"aria-expanded":
|
|
4197
|
+
E(B.$slots, "default"),
|
|
4198
|
+
y("button", {
|
|
4199
|
+
"aria-controls": p($),
|
|
4200
|
+
"aria-expanded": o.value,
|
|
4189
4201
|
class: "bs-tab-list-toggle",
|
|
4190
|
-
"data-active":
|
|
4191
|
-
"data-hidden": !
|
|
4192
|
-
id:
|
|
4202
|
+
"data-active": C.value || void 0,
|
|
4203
|
+
"data-hidden": !s.value,
|
|
4204
|
+
id: P.value,
|
|
4193
4205
|
ref_key: "dropdownToggle",
|
|
4194
|
-
ref:
|
|
4195
|
-
onClick:
|
|
4206
|
+
ref: T,
|
|
4207
|
+
onClick: Ee
|
|
4196
4208
|
}, [
|
|
4197
|
-
D(
|
|
4198
|
-
|
|
4199
|
-
], 8,
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
"
|
|
4209
|
+
D(p($t), { size: "sm" }),
|
|
4210
|
+
W(" " + A(F.value), 1)
|
|
4211
|
+
], 8, il),
|
|
4212
|
+
c.value ? (d(), V(We, {
|
|
4213
|
+
key: 0,
|
|
4214
|
+
"anchor-id": P.value,
|
|
4215
|
+
"container-id": B.$attrs.id || p(q),
|
|
4203
4216
|
"helper-description": e.helperDescription || void 0,
|
|
4204
4217
|
"helper-text": e.helperText,
|
|
4205
|
-
id:
|
|
4206
|
-
"options-id":
|
|
4218
|
+
id: p($),
|
|
4219
|
+
"options-id": I.value,
|
|
4207
4220
|
position: "right",
|
|
4208
4221
|
preloaded: "",
|
|
4209
|
-
shown:
|
|
4222
|
+
shown: o.value,
|
|
4210
4223
|
width: "content",
|
|
4211
|
-
onClose:
|
|
4212
|
-
"onUpdate:modelValue":
|
|
4224
|
+
onClose: Ve,
|
|
4225
|
+
"onUpdate:modelValue": De
|
|
4213
4226
|
}, {
|
|
4214
4227
|
default: O(() => [
|
|
4215
|
-
(
|
|
4228
|
+
(d(!0), b(G, null, Z(u.value, (R) => (d(), V(Ue, {
|
|
4216
4229
|
key: R.id,
|
|
4217
4230
|
value: R.id,
|
|
4218
|
-
"options-id":
|
|
4231
|
+
"options-id": I.value
|
|
4219
4232
|
}, {
|
|
4220
4233
|
default: O(() => [
|
|
4221
|
-
|
|
4234
|
+
W(A(R.textContent), 1)
|
|
4222
4235
|
]),
|
|
4223
4236
|
_: 2
|
|
4224
4237
|
}, 1032, ["value", "options-id"]))), 128))
|
|
4225
4238
|
]),
|
|
4226
4239
|
_: 1
|
|
4227
|
-
}, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])
|
|
4228
|
-
], 40,
|
|
4240
|
+
}, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])) : w("", !0)
|
|
4241
|
+
], 40, ol));
|
|
4229
4242
|
}
|
|
4230
|
-
},
|
|
4243
|
+
}, ul = ["aria-labelledby", "data-active", "id"], Xl = {
|
|
4231
4244
|
__name: "BsTabPanel",
|
|
4232
4245
|
props: {
|
|
4233
4246
|
activeTabId: {
|
|
@@ -4240,8 +4253,8 @@ const Sa = {
|
|
|
4240
4253
|
}
|
|
4241
4254
|
},
|
|
4242
4255
|
setup(e) {
|
|
4243
|
-
const a = e, t = ie(), n =
|
|
4244
|
-
return (r,
|
|
4256
|
+
const a = e, t = ie(), n = v(() => a.activeTabId && a.activeTabId === a.tabId), l = v(() => t.id || `${a.tabId}-panel`);
|
|
4257
|
+
return (r, u) => (d(), b("section", {
|
|
4245
4258
|
"aria-labelledby": e.tabId,
|
|
4246
4259
|
"data-active": n.value,
|
|
4247
4260
|
"data-component": "bs-tab-panel",
|
|
@@ -4249,9 +4262,9 @@ const Sa = {
|
|
|
4249
4262
|
role: "tabpanel"
|
|
4250
4263
|
}, [
|
|
4251
4264
|
E(r.$slots, "default")
|
|
4252
|
-
], 8,
|
|
4265
|
+
], 8, ul));
|
|
4253
4266
|
}
|
|
4254
|
-
},
|
|
4267
|
+
}, cl = ["data-error", "id", "rows", "value"], fl = {
|
|
4255
4268
|
__name: "BsTextarea",
|
|
4256
4269
|
props: {
|
|
4257
4270
|
error: {
|
|
@@ -4266,16 +4279,16 @@ const Sa = {
|
|
|
4266
4279
|
},
|
|
4267
4280
|
emits: ["update:modelValue"],
|
|
4268
4281
|
setup(e, { emit: a }) {
|
|
4269
|
-
const t = e, n =
|
|
4270
|
-
return (l, r) => (
|
|
4282
|
+
const t = e, n = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
4283
|
+
return (l, r) => (d(), b("textarea", z({
|
|
4271
4284
|
class: "bs-textarea",
|
|
4272
4285
|
"data-component": "bs-textarea",
|
|
4273
4286
|
"data-error": e.error,
|
|
4274
4287
|
id: l.$attrs.id || e.inputId,
|
|
4275
4288
|
rows: l.$attrs.rows || 6,
|
|
4276
4289
|
value: e.value || e.modelValue,
|
|
4277
|
-
onInput: r[0] || (r[0] = (
|
|
4278
|
-
}, n.value), null, 16,
|
|
4290
|
+
onInput: r[0] || (r[0] = (u) => l.$emit("update:modelValue", u.target.value))
|
|
4291
|
+
}, n.value), null, 16, cl));
|
|
4279
4292
|
}
|
|
4280
4293
|
}, Zl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4281
4294
|
__name: "BsTextareaField",
|
|
@@ -4326,52 +4339,52 @@ const Sa = {
|
|
|
4326
4339
|
},
|
|
4327
4340
|
emits: ["update:modelValue"],
|
|
4328
4341
|
setup(e, { emit: a }) {
|
|
4329
|
-
const t = e, [n, l] =
|
|
4342
|
+
const t = e, [n, l] = Q(2), r = v(() => ua.concat(t.passAttrs.split(","))), u = v(() => {
|
|
4330
4343
|
var c;
|
|
4331
4344
|
return ((c = t.value || t.modelValue) == null ? void 0 : c.length) || 0;
|
|
4332
|
-
}),
|
|
4333
|
-
var c,
|
|
4334
|
-
return ((
|
|
4345
|
+
}), o = v(() => {
|
|
4346
|
+
var c, f;
|
|
4347
|
+
return ((f = (c = t.hints) == null ? void 0 : c.join) == null ? void 0 : f.call(c, `
|
|
4335
4348
|
`)) || t.hints;
|
|
4336
|
-
}),
|
|
4337
|
-
return (c,
|
|
4338
|
-
e.label || c.$slots.label ? (
|
|
4349
|
+
}), s = v(() => t.error && t.errorMsg || t.hint || o.value || void 0), i = v(() => t.inputId || n.value);
|
|
4350
|
+
return (c, f) => (d(), b("div", z({ "data-component": "bs-textarea-field" }, p(H)(c.$attrs, r.value).remaining), [
|
|
4351
|
+
e.label || c.$slots.label ? (d(), V(ae, {
|
|
4339
4352
|
key: 0,
|
|
4340
|
-
for: c.$attrs.id ||
|
|
4353
|
+
for: c.$attrs.id || i.value,
|
|
4341
4354
|
disabled: e.disabled,
|
|
4342
4355
|
required: e.required
|
|
4343
4356
|
}, {
|
|
4344
4357
|
default: O(() => [
|
|
4345
4358
|
E(c.$slots, "label", {}, () => [
|
|
4346
|
-
|
|
4359
|
+
W(A(e.label), 1)
|
|
4347
4360
|
])
|
|
4348
4361
|
]),
|
|
4349
4362
|
_: 3
|
|
4350
4363
|
}, 8, ["for", "disabled", "required"])) : w("", !0),
|
|
4351
|
-
D(
|
|
4364
|
+
D(fl, z({
|
|
4352
4365
|
disabled: e.disabled,
|
|
4353
4366
|
error: e.error,
|
|
4354
|
-
"hint-id":
|
|
4355
|
-
id: c.$attrs.id ||
|
|
4367
|
+
"hint-id": p(l),
|
|
4368
|
+
id: c.$attrs.id || i.value,
|
|
4356
4369
|
placeholder: e.placeholder,
|
|
4357
4370
|
required: e.required,
|
|
4358
4371
|
rows: e.rows,
|
|
4359
4372
|
value: e.value || e.modelValue,
|
|
4360
|
-
"onUpdate:modelValue":
|
|
4361
|
-
},
|
|
4362
|
-
|
|
4373
|
+
"onUpdate:modelValue": f[0] || (f[0] = (x) => c.$emit("update:modelValue", x))
|
|
4374
|
+
}, p(H)(c.$attrs, r.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
|
|
4375
|
+
s.value || e.charMax ? (d(), V(he, {
|
|
4363
4376
|
key: 1,
|
|
4364
|
-
"char-count":
|
|
4377
|
+
"char-count": u.value,
|
|
4365
4378
|
"char-max": e.charMax,
|
|
4366
4379
|
"data-disabled": e.disabled,
|
|
4367
4380
|
error: e.error,
|
|
4368
4381
|
"error-msg": e.errorMsg,
|
|
4369
|
-
hint: e.hint ||
|
|
4370
|
-
"hint-id":
|
|
4382
|
+
hint: e.hint || o.value,
|
|
4383
|
+
"hint-id": p(l)
|
|
4371
4384
|
}, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) : w("", !0)
|
|
4372
4385
|
], 16));
|
|
4373
4386
|
}
|
|
4374
|
-
}),
|
|
4387
|
+
}), pl = ["data-variant", "data-stacked"], Jl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4375
4388
|
__name: "BsToast",
|
|
4376
4389
|
props: {
|
|
4377
4390
|
shown: {
|
|
@@ -4417,50 +4430,50 @@ const Sa = {
|
|
|
4417
4430
|
},
|
|
4418
4431
|
emits: ["dismiss", "after-enter", "after-leave"],
|
|
4419
4432
|
setup(e, { emit: a }) {
|
|
4420
|
-
const t = e, n = a, { transition: l } =
|
|
4433
|
+
const t = e, n = a, { transition: l } = ve(t);
|
|
4421
4434
|
let r = null;
|
|
4422
|
-
re("variant", t.variant), re("handleDismiss",
|
|
4423
|
-
const
|
|
4424
|
-
function
|
|
4435
|
+
re("variant", t.variant), re("handleDismiss", o);
|
|
4436
|
+
const u = se("stacked", t.stacked);
|
|
4437
|
+
function o() {
|
|
4425
4438
|
r && (clearTimeout(r), r = null), n("dismiss", t.toastId);
|
|
4426
4439
|
}
|
|
4427
|
-
function
|
|
4440
|
+
function s() {
|
|
4428
4441
|
t.duration > 0 && (r = setTimeout(() => {
|
|
4429
|
-
|
|
4442
|
+
o();
|
|
4430
4443
|
}, t.duration)), n("after-enter");
|
|
4431
4444
|
}
|
|
4432
|
-
return (
|
|
4433
|
-
shown:
|
|
4445
|
+
return (i, c) => (d(), V(p(xe), {
|
|
4446
|
+
shown: p(l),
|
|
4434
4447
|
preloaded: e.preloaded,
|
|
4435
4448
|
duration: 200,
|
|
4436
4449
|
"enter-attribute": "data-shown",
|
|
4437
|
-
onAfterEnter:
|
|
4438
|
-
onAfterLeave: c[0] || (c[0] = (
|
|
4450
|
+
onAfterEnter: s,
|
|
4451
|
+
onAfterLeave: c[0] || (c[0] = (f) => n("after-leave"))
|
|
4439
4452
|
}, {
|
|
4440
4453
|
default: O(() => [
|
|
4441
|
-
|
|
4454
|
+
y("div", z({
|
|
4442
4455
|
class: "bs-toast",
|
|
4443
4456
|
"data-variant": e.variant,
|
|
4444
|
-
"data-stacked":
|
|
4445
|
-
|
|
4446
|
-
},
|
|
4447
|
-
E(
|
|
4448
|
-
], 16,
|
|
4457
|
+
"data-stacked": p(u) || void 0,
|
|
4458
|
+
role: "alert"
|
|
4459
|
+
}, i.$attrs), [
|
|
4460
|
+
E(i.$slots, "default")
|
|
4461
|
+
], 16, pl)
|
|
4449
4462
|
]),
|
|
4450
4463
|
_: 3
|
|
4451
4464
|
}, 8, ["shown", "preloaded"]));
|
|
4452
4465
|
}
|
|
4453
|
-
}),
|
|
4466
|
+
}), vl = ["data-stacked"], _l = {
|
|
4454
4467
|
__name: "BsToastActions",
|
|
4455
4468
|
setup(e) {
|
|
4456
|
-
const a =
|
|
4457
|
-
|
|
4469
|
+
const a = g(!1);
|
|
4470
|
+
K(() => {
|
|
4458
4471
|
var l;
|
|
4459
4472
|
const n = vt();
|
|
4460
4473
|
((l = n.default) == null ? void 0 : l.call(n).length) > 2 && (a.value = !0);
|
|
4461
4474
|
});
|
|
4462
4475
|
const t = se("handleDismiss");
|
|
4463
|
-
return (n, l) => (
|
|
4476
|
+
return (n, l) => (d(), b("div", {
|
|
4464
4477
|
class: "bs-toast-actions",
|
|
4465
4478
|
"data-stacked": a.value || void 0
|
|
4466
4479
|
}, [
|
|
@@ -4468,31 +4481,31 @@ const Sa = {
|
|
|
4468
4481
|
D(fa, {
|
|
4469
4482
|
size: "sm",
|
|
4470
4483
|
"text-btn": "",
|
|
4471
|
-
onClick:
|
|
4484
|
+
onClick: p(t)
|
|
4472
4485
|
}, {
|
|
4473
4486
|
default: O(() => [
|
|
4474
|
-
|
|
4487
|
+
W(" Dismiss ")
|
|
4475
4488
|
]),
|
|
4476
4489
|
_: 1
|
|
4477
4490
|
}, 8, ["onClick"])
|
|
4478
4491
|
])
|
|
4479
|
-
], 8,
|
|
4492
|
+
], 8, vl));
|
|
4480
4493
|
}
|
|
4481
|
-
},
|
|
4494
|
+
}, hl = (e, a) => {
|
|
4482
4495
|
const t = e.__vccOpts || e;
|
|
4483
4496
|
for (const [n, l] of a)
|
|
4484
4497
|
t[n] = l;
|
|
4485
4498
|
return t;
|
|
4486
|
-
},
|
|
4487
|
-
function
|
|
4488
|
-
return
|
|
4499
|
+
}, bl = {}, ml = { class: "bs-toast-body" };
|
|
4500
|
+
function gl(e, a) {
|
|
4501
|
+
return d(), b("div", ml, [
|
|
4489
4502
|
E(e.$slots, "default")
|
|
4490
4503
|
]);
|
|
4491
4504
|
}
|
|
4492
|
-
const eo = /* @__PURE__ */ bl
|
|
4505
|
+
const eo = /* @__PURE__ */ hl(bl, [["render", gl]]), yl = ["data-variant"], to = {
|
|
4493
4506
|
__name: "BsToastHeader",
|
|
4494
4507
|
setup(e) {
|
|
4495
|
-
const a = se("variant"), t =
|
|
4508
|
+
const a = se("variant"), t = v(() => {
|
|
4496
4509
|
switch (a) {
|
|
4497
4510
|
case "warning":
|
|
4498
4511
|
return ze;
|
|
@@ -4504,24 +4517,24 @@ const eo = /* @__PURE__ */ bl(ml, [["render", yl]]), Bl = ["data-variant"], to =
|
|
|
4504
4517
|
return St;
|
|
4505
4518
|
}
|
|
4506
4519
|
});
|
|
4507
|
-
return (n, l) => (
|
|
4520
|
+
return (n, l) => (d(), b("div", {
|
|
4508
4521
|
class: "bs-toast-header",
|
|
4509
|
-
"data-variant":
|
|
4522
|
+
"data-variant": p(a)
|
|
4510
4523
|
}, [
|
|
4511
|
-
(
|
|
4512
|
-
|
|
4524
|
+
(d(), V(J(t.value), { class: "bs-toast-header-icon" })),
|
|
4525
|
+
y("h5", null, [
|
|
4513
4526
|
E(n.$slots, "default")
|
|
4514
4527
|
])
|
|
4515
|
-
], 8,
|
|
4528
|
+
], 8, yl));
|
|
4516
4529
|
}
|
|
4517
|
-
},
|
|
4530
|
+
}, Bl = { class: "bs-toaster" }, ao = {
|
|
4518
4531
|
__name: "BsToaster",
|
|
4519
4532
|
setup(e) {
|
|
4520
|
-
return re("stacked", !0), (a, t) => (
|
|
4533
|
+
return re("stacked", !0), (a, t) => (d(), b("div", Bl, [
|
|
4521
4534
|
E(a.$slots, "default")
|
|
4522
4535
|
]));
|
|
4523
4536
|
}
|
|
4524
|
-
},
|
|
4537
|
+
}, $l = ["data-position"], Sl = ["id"], no = {
|
|
4525
4538
|
__name: "BsTooltip",
|
|
4526
4539
|
props: {
|
|
4527
4540
|
tooltipId: {
|
|
@@ -4548,80 +4561,80 @@ const eo = /* @__PURE__ */ bl(ml, [["render", yl]]), Bl = ["data-variant"], to =
|
|
|
4548
4561
|
}
|
|
4549
4562
|
},
|
|
4550
4563
|
setup(e) {
|
|
4551
|
-
const a = e, t =
|
|
4552
|
-
let
|
|
4553
|
-
return n.value && (a.position === void 0 || a.position === "top" || a.position === "bottom" ?
|
|
4564
|
+
const a = e, t = g(!1), n = g(!1), l = v(() => {
|
|
4565
|
+
let o = "bs-tooltip-text";
|
|
4566
|
+
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
4567
|
});
|
|
4555
|
-
|
|
4568
|
+
Ce(["Escape"], () => {
|
|
4556
4569
|
t.value && (t.value = !1, n.value = !0);
|
|
4557
4570
|
});
|
|
4558
4571
|
function r() {
|
|
4559
4572
|
t.value = !0;
|
|
4560
4573
|
}
|
|
4561
|
-
function
|
|
4574
|
+
function u() {
|
|
4562
4575
|
t.value = !1, n.value = !1;
|
|
4563
4576
|
}
|
|
4564
|
-
return (
|
|
4577
|
+
return (o, s) => (d(), b("div", {
|
|
4565
4578
|
class: "bs-tooltip",
|
|
4566
4579
|
"data-position": e.position || void 0,
|
|
4567
4580
|
"data-component": "bs-tooltip",
|
|
4568
4581
|
onMouseenter: r,
|
|
4569
4582
|
onFocusin: r,
|
|
4570
|
-
onMouseleave:
|
|
4571
|
-
onFocusout:
|
|
4583
|
+
onMouseleave: u,
|
|
4584
|
+
onFocusout: u
|
|
4572
4585
|
}, [
|
|
4573
|
-
E(
|
|
4574
|
-
e.content ? (
|
|
4586
|
+
E(o.$slots, "default"),
|
|
4587
|
+
e.content ? (d(), b("div", {
|
|
4575
4588
|
key: 0,
|
|
4576
|
-
class:
|
|
4589
|
+
class: te(l.value),
|
|
4577
4590
|
id: e.tooltipId,
|
|
4578
4591
|
role: "tooltip"
|
|
4579
|
-
},
|
|
4580
|
-
], 40,
|
|
4592
|
+
}, A(e.content), 11, Sl)) : w("", !0)
|
|
4593
|
+
], 40, $l));
|
|
4581
4594
|
}
|
|
4582
4595
|
};
|
|
4583
4596
|
export {
|
|
4584
|
-
|
|
4597
|
+
Al as BsAccordion,
|
|
4585
4598
|
Wt as BsBadge,
|
|
4586
|
-
|
|
4599
|
+
Ll as BsBanner,
|
|
4587
4600
|
fa as BsButton,
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4601
|
+
Vl as BsCalendar,
|
|
4602
|
+
El as BsChartBar,
|
|
4603
|
+
Dl as BsCheckbox,
|
|
4591
4604
|
Ol as BsCircleButton,
|
|
4592
|
-
|
|
4593
|
-
|
|
4605
|
+
it as BsDropdown,
|
|
4606
|
+
Xa as BsDropdownMultiselect,
|
|
4594
4607
|
Ue as BsDropdownOption,
|
|
4595
|
-
|
|
4608
|
+
Be as BsDropdownOptionBuilder,
|
|
4596
4609
|
Fe as BsDropdownOptionList,
|
|
4597
4610
|
We as BsDropdownWithOptions,
|
|
4598
4611
|
ql as BsDropdownWithToggle,
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4612
|
+
he as BsFieldDetails,
|
|
4613
|
+
en as BsFilterButton,
|
|
4614
|
+
Pl as BsIconGradientWrapper,
|
|
4615
|
+
be as BsInput,
|
|
4616
|
+
Te as BsInputAddon,
|
|
4617
|
+
Ml as BsInputField,
|
|
4605
4618
|
zl as BsInputPhone,
|
|
4606
|
-
|
|
4619
|
+
un as BsInputSearch,
|
|
4607
4620
|
Nl as BsInputTypeahead,
|
|
4608
|
-
|
|
4621
|
+
ae as BsLabel,
|
|
4609
4622
|
Rl as BsLoader,
|
|
4610
4623
|
jl as BsModal,
|
|
4611
|
-
|
|
4624
|
+
yn as BsOverlay,
|
|
4612
4625
|
Fl as BsPagination,
|
|
4613
4626
|
Ul as BsPill,
|
|
4614
4627
|
Wl as BsProfile,
|
|
4615
|
-
|
|
4616
|
-
|
|
4628
|
+
Kn as BsProfileDetails,
|
|
4629
|
+
rt as BsProfileImg,
|
|
4617
4630
|
Gl as BsRadio,
|
|
4618
|
-
|
|
4631
|
+
Zn as BsSelect,
|
|
4619
4632
|
Hl as BsSelectField,
|
|
4620
4633
|
Kl as BsSwitch,
|
|
4621
4634
|
Yl as BsTab,
|
|
4622
4635
|
Ql as BsTabList,
|
|
4623
4636
|
Xl as BsTabPanel,
|
|
4624
|
-
|
|
4637
|
+
fl as BsTextarea,
|
|
4625
4638
|
Zl as BsTextareaField,
|
|
4626
4639
|
Jl as BsToast,
|
|
4627
4640
|
_l as BsToastActions,
|
|
@@ -4629,5 +4642,5 @@ export {
|
|
|
4629
4642
|
to as BsToastHeader,
|
|
4630
4643
|
ao as BsToaster,
|
|
4631
4644
|
no as BsTooltip,
|
|
4632
|
-
|
|
4645
|
+
xe as BsTransition
|
|
4633
4646
|
};
|