@wwtdev/bsds-components-vue3 2.0.0 → 2.0.1
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 +708 -717
- package/lib/components.css +1 -1
- package/package.json +5 -4
package/lib/bsds-components.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as
|
|
1
|
+
import { computed as p, ref as k, onMounted as N, onUnmounted as ne, defineAsyncComponent as Oe, watch as V, openBlock as u, createElementBlock as v, unref as c, createElementVNode as m, renderSlot as I, createBlock as A, resolveDynamicComponent as U, createCommentVNode as $, toDisplayString as T, createVNode as D, normalizeClass as X, useAttrs as O, mergeProps as E, withCtx as C, Fragment as R, renderList as Y, createTextVNode as W, withDirectives as Ne, Transition as me, vShow as We, inject as te, provide as ae, onDeactivated as je, normalizeStyle as Ge, isRef as Fe, nextTick as Ue, useSlots as He } from "vue";
|
|
2
2
|
import { v4 as Ke } from "uuid";
|
|
3
3
|
import { BsIconCaretDown as Ye, BsIconWarning as ve, BsIconClose as oe, BsIconSearch as Xe, BsIconCaretLeftDouble as Ze, BsIconCaretLeft as Je, BsIconCaretRight as Qe, BsIconCaretRightDouble as _e, BsIconActionEllipsis as et, BsIconCircleExclamation as tt, BsIconThumbsUpStroke as at } from "@wwtdev/bsds-icons-vue3";
|
|
4
4
|
import { Chart as fe, BarController as nt, BarElement as lt, CategoryScale as ot, LinearScale as it, Legend as rt, Tooltip as st } from "chart.js";
|
|
@@ -8,16 +8,16 @@ const ye = {
|
|
|
8
8
|
onClick: "button",
|
|
9
9
|
type: "button"
|
|
10
10
|
};
|
|
11
|
-
function
|
|
12
|
-
const l = dt(e, a, t), n =
|
|
13
|
-
const o = l.value === "button",
|
|
14
|
-
return o ? (
|
|
11
|
+
function he(e, a, t = "button") {
|
|
12
|
+
const l = dt(e, a, t), n = p(() => {
|
|
13
|
+
const o = l.value === "button", d = {};
|
|
14
|
+
return o ? (d.type = a.type || "button", d.autocomplete = "off", e.disabled && (d.disabled = !0)) : e.disabled && (d["aria-disabled"] = "true", d.tabindex = "-1"), d;
|
|
15
15
|
});
|
|
16
16
|
return { rootTag: l, attrsToBind: n };
|
|
17
17
|
}
|
|
18
18
|
function dt(e, a, t) {
|
|
19
19
|
const l = Object.keys(ye).find((n) => ut(e, a, n));
|
|
20
|
-
return
|
|
20
|
+
return k(ye[l] || t);
|
|
21
21
|
}
|
|
22
22
|
function ut(e, a, t) {
|
|
23
23
|
return e[t] || a[t];
|
|
@@ -29,41 +29,41 @@ const ct = (e, a) => {
|
|
|
29
29
|
return (o = n.value) == null ? void 0 : o.contains(l.target);
|
|
30
30
|
}) || a(l);
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
N(() => {
|
|
33
33
|
document.addEventListener("click", t);
|
|
34
34
|
}), ne(() => {
|
|
35
35
|
document.removeEventListener("click", t);
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
function ie(e) {
|
|
39
|
-
const a =
|
|
39
|
+
const a = p(() => {
|
|
40
40
|
var n, o;
|
|
41
41
|
return ((o = (n = e.href) == null ? void 0 : n.startsWith) == null ? void 0 : o.call(n, "/")) || !1;
|
|
42
|
-
}), t =
|
|
42
|
+
}), t = p(() => {
|
|
43
43
|
var n, o;
|
|
44
44
|
return a.value && ((n = e.router) == null ? void 0 : n.navigateTo) || ((o = e.router) == null ? void 0 : o.push) || null;
|
|
45
45
|
});
|
|
46
46
|
function l(n) {
|
|
47
|
-
var o,
|
|
47
|
+
var o, d, i, s, r;
|
|
48
48
|
if (e.disabled) {
|
|
49
49
|
n.preventDefault(), n.stopImmediatePropagation();
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
|
-
!e.href || !t.value || ((
|
|
52
|
+
!e.href || !t.value || ((d = (o = n.target.href) == null ? void 0 : o.endsWith) != null && d.call(o, e.href) || (r = (s = (i = n.target.closest("a")) == null ? void 0 : i.href) == null ? void 0 : s.endsWith) != null && r.call(s, e.href)) && (n.preventDefault(), t.value(e.href));
|
|
53
53
|
}
|
|
54
54
|
return { onLinkClick: l };
|
|
55
55
|
}
|
|
56
56
|
function Be(e) {
|
|
57
57
|
return e.split("-").map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("");
|
|
58
58
|
}
|
|
59
|
-
const le = (e) => ({ icon:
|
|
59
|
+
const le = (e) => ({ icon: p(
|
|
60
60
|
() => Oe(() => import("@wwtdev/bsds-icons-vue3").then((t) => e.startsWith("bs-") ? t[Be(e)] : t[`BsIcon${Be(e)}`]))
|
|
61
61
|
) });
|
|
62
62
|
function H(e = 1) {
|
|
63
63
|
const a = [];
|
|
64
64
|
for (let t = 0; t < e; t++)
|
|
65
|
-
a.push(
|
|
66
|
-
return
|
|
65
|
+
a.push(k(""));
|
|
66
|
+
return N(() => {
|
|
67
67
|
a.forEach((t) => t.value = Ke());
|
|
68
68
|
}), a;
|
|
69
69
|
}
|
|
@@ -71,14 +71,14 @@ const re = (e, a, t = void 0) => {
|
|
|
71
71
|
const l = (n) => {
|
|
72
72
|
e.includes(n.key) && a(n);
|
|
73
73
|
};
|
|
74
|
-
|
|
74
|
+
N(() => {
|
|
75
75
|
((t == null ? void 0 : t.value) ?? document).addEventListener("keydown", l);
|
|
76
76
|
}), ne(() => {
|
|
77
77
|
((t == null ? void 0 : t.value) ?? document).removeEventListener("keydown", l);
|
|
78
78
|
});
|
|
79
79
|
}, ft = (e, a, t) => {
|
|
80
80
|
let l = null;
|
|
81
|
-
|
|
81
|
+
N(() => {
|
|
82
82
|
l = new MutationObserver(a), l.observe(e.value, t);
|
|
83
83
|
}), ne(() => {
|
|
84
84
|
l.disconnect();
|
|
@@ -88,26 +88,26 @@ function Z(e, a) {
|
|
|
88
88
|
var o;
|
|
89
89
|
const t = new Set(((o = e.passAttrs) == null ? void 0 : o.split(",")) || "");
|
|
90
90
|
t.delete("");
|
|
91
|
-
const l =
|
|
92
|
-
for (let
|
|
93
|
-
t.has(
|
|
91
|
+
const l = k({}), n = k({});
|
|
92
|
+
for (let d in a)
|
|
93
|
+
t.has(d) ? n.value[d] = a[d] : l.value[d] = a[d];
|
|
94
94
|
return {
|
|
95
95
|
toRoot: l,
|
|
96
96
|
toChild: n
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
const se = (e) => {
|
|
100
|
-
const a =
|
|
101
|
-
return
|
|
100
|
+
const a = k(!1);
|
|
101
|
+
return N(() => {
|
|
102
102
|
a.value = e.enterControlled || e.preloaded ? e.enterTrigger : e.shown;
|
|
103
|
-
}),
|
|
103
|
+
}), V(() => e.shown, (t) => {
|
|
104
104
|
a.value = t;
|
|
105
|
-
}),
|
|
105
|
+
}), V(() => e.enterTrigger, (t) => {
|
|
106
106
|
a.value = t;
|
|
107
|
-
}),
|
|
107
|
+
}), V(() => e.leaveTrigger, (t) => {
|
|
108
108
|
t && (a.value = !1);
|
|
109
109
|
}), { transition: a };
|
|
110
|
-
}, vt = ["id", "data-stacked"],
|
|
110
|
+
}, vt = ["id", "data-stacked"], ht = ["data-open"], pt = ["aria-controls", "aria-expanded"], gt = {
|
|
111
111
|
key: 0,
|
|
112
112
|
"data-position": "start",
|
|
113
113
|
style: { display: "inline-flex" }
|
|
@@ -127,12 +127,12 @@ const se = (e) => {
|
|
|
127
127
|
},
|
|
128
128
|
emits: ["toggled"],
|
|
129
129
|
setup(e, { emit: a }) {
|
|
130
|
-
const t = e, l = a, n =
|
|
131
|
-
function
|
|
130
|
+
const t = e, l = a, n = k(null), o = k(!1), { icon: d } = le(t.icon), [i] = H(), s = p(() => i.value + "-content"), r = p(() => i.value + "-title"), f = p(() => t.openItemId && t.openItemId === i.value || t.openItem === !0), b = p(() => t.controlled ? f.value : o.value);
|
|
131
|
+
function g() {
|
|
132
132
|
l("toggled", i.value), t.controlled || (o.value = !o.value);
|
|
133
133
|
}
|
|
134
|
-
return (y,
|
|
135
|
-
id:
|
|
134
|
+
return (y, L) => (u(), v("div", {
|
|
135
|
+
id: c(i),
|
|
136
136
|
ref_key: "containerRef",
|
|
137
137
|
ref: n,
|
|
138
138
|
class: "bs-accordion",
|
|
@@ -141,40 +141,40 @@ const se = (e) => {
|
|
|
141
141
|
}, [
|
|
142
142
|
m("header", {
|
|
143
143
|
part: "header",
|
|
144
|
-
"data-open":
|
|
144
|
+
"data-open": b.value
|
|
145
145
|
}, [
|
|
146
146
|
m("button", {
|
|
147
|
-
"aria-controls":
|
|
148
|
-
"aria-expanded":
|
|
147
|
+
"aria-controls": s.value,
|
|
148
|
+
"aria-expanded": b.value,
|
|
149
149
|
type: "button",
|
|
150
|
-
onClick:
|
|
150
|
+
onClick: g
|
|
151
151
|
}, [
|
|
152
|
-
e.icon || y.$slots.icon ? (
|
|
153
|
-
|
|
154
|
-
e.icon ? (
|
|
152
|
+
e.icon || y.$slots.icon ? (u(), v("span", gt, [
|
|
153
|
+
I(y.$slots, "icon", {}, () => [
|
|
154
|
+
e.icon ? (u(), A(U(c(d) ? c(d) : "span"), { key: 0 })) : $("", !0)
|
|
155
155
|
])
|
|
156
156
|
])) : $("", !0),
|
|
157
157
|
m("span", {
|
|
158
|
-
id:
|
|
158
|
+
id: r.value,
|
|
159
159
|
"aria-level": e.headingLevel,
|
|
160
160
|
role: "heading"
|
|
161
|
-
},
|
|
162
|
-
|
|
161
|
+
}, T(e.headerText), 9, bt),
|
|
162
|
+
D(c(Ye), {
|
|
163
163
|
size: "md",
|
|
164
164
|
"data-position": "end"
|
|
165
165
|
})
|
|
166
|
-
], 8,
|
|
167
|
-
], 8,
|
|
166
|
+
], 8, pt)
|
|
167
|
+
], 8, ht),
|
|
168
168
|
m("div", {
|
|
169
|
-
"aria-labelledby":
|
|
169
|
+
"aria-labelledby": r.value,
|
|
170
170
|
class: "bs-accordion-content",
|
|
171
|
-
"data-open":
|
|
172
|
-
id:
|
|
171
|
+
"data-open": b.value,
|
|
172
|
+
id: s.value,
|
|
173
173
|
part: "content",
|
|
174
174
|
role: "region"
|
|
175
175
|
}, [
|
|
176
176
|
m("div", null, [
|
|
177
|
-
|
|
177
|
+
I(y.$slots, "default")
|
|
178
178
|
])
|
|
179
179
|
], 8, mt)
|
|
180
180
|
], 8, vt));
|
|
@@ -222,15 +222,15 @@ const se = (e) => {
|
|
|
222
222
|
}
|
|
223
223
|
},
|
|
224
224
|
setup(e) {
|
|
225
|
-
const a = e, t =
|
|
226
|
-
var
|
|
227
|
-
const o = ((
|
|
228
|
-
if (!
|
|
225
|
+
const a = e, t = k(null), l = p(() => a.count === 0 ? "0" : !a.count || a.dot ? null : a.count > a.countMax ? a.countMax + "+" : a.count.toString()), n = p(() => {
|
|
226
|
+
var s, r;
|
|
227
|
+
const o = ((r = (s = t.value) == null ? void 0 : s.textContent) == null ? void 0 : r.trim()) || "", d = l.value ? l.value + " " : "";
|
|
228
|
+
if (!d && !a.dot)
|
|
229
229
|
return o;
|
|
230
230
|
const i = a.count !== 1 ? "s" : "";
|
|
231
|
-
return `${o}, ${
|
|
231
|
+
return `${o}, ${d}${a.label}${i}`;
|
|
232
232
|
});
|
|
233
|
-
return (o,
|
|
233
|
+
return (o, d) => (u(), v("span", {
|
|
234
234
|
ref_key: "hostRef",
|
|
235
235
|
ref: t,
|
|
236
236
|
class: X({ "bs-badge": e.dot || l.value }),
|
|
@@ -241,7 +241,7 @@ const se = (e) => {
|
|
|
241
241
|
"data-show-zero": e.showZero,
|
|
242
242
|
"aria-label": n.value
|
|
243
243
|
}, [
|
|
244
|
-
|
|
244
|
+
I(o.$slots, "default")
|
|
245
245
|
], 10, yt));
|
|
246
246
|
}
|
|
247
247
|
}, Bt = {
|
|
@@ -252,24 +252,24 @@ const se = (e) => {
|
|
|
252
252
|
__name: "BsBanner",
|
|
253
253
|
emits: ["dismiss"],
|
|
254
254
|
setup(e, { emit: a }) {
|
|
255
|
-
const t = a, l =
|
|
255
|
+
const t = a, l = k(!1);
|
|
256
256
|
function n() {
|
|
257
257
|
l.value = !0, t("dismiss");
|
|
258
258
|
}
|
|
259
|
-
return (o,
|
|
259
|
+
return (o, d) => l.value ? $("", !0) : (u(), v("div", Bt, [
|
|
260
260
|
m("div", $t, [
|
|
261
261
|
m("div", St, [
|
|
262
|
-
|
|
262
|
+
D(c(ve), { size: "lg" })
|
|
263
263
|
]),
|
|
264
264
|
m("p", null, [
|
|
265
|
-
|
|
265
|
+
I(o.$slots, "default")
|
|
266
266
|
]),
|
|
267
267
|
m("button", {
|
|
268
268
|
type: "button",
|
|
269
269
|
title: "Close Banner",
|
|
270
270
|
onClick: n
|
|
271
271
|
}, [
|
|
272
|
-
|
|
272
|
+
D(c(oe))
|
|
273
273
|
])
|
|
274
274
|
])
|
|
275
275
|
]));
|
|
@@ -286,8 +286,8 @@ const se = (e) => {
|
|
|
286
286
|
size: { type: String, validator: (e) => !e || e === "sm" }
|
|
287
287
|
},
|
|
288
288
|
setup(e) {
|
|
289
|
-
const a = e, t =
|
|
290
|
-
return (
|
|
289
|
+
const a = e, t = O(), { rootTag: l, attrsToBind: n } = he(a, t), { onLinkClick: o } = ie(a);
|
|
290
|
+
return (d, i) => (u(), A(U(c(l)), E({
|
|
291
291
|
class: "bs-button",
|
|
292
292
|
"data-component": "bs-button",
|
|
293
293
|
"data-ghost": e.ghostBtn,
|
|
@@ -295,9 +295,9 @@ const se = (e) => {
|
|
|
295
295
|
"data-text": e.textBtn,
|
|
296
296
|
"data-variant": e.variant,
|
|
297
297
|
href: e.href
|
|
298
|
-
},
|
|
299
|
-
default:
|
|
300
|
-
|
|
298
|
+
}, c(n), { onClick: c(o) }), {
|
|
299
|
+
default: C(() => [
|
|
300
|
+
I(d.$slots, "default")
|
|
301
301
|
]),
|
|
302
302
|
_: 3
|
|
303
303
|
}, 16, ["data-ghost", "data-size", "data-text", "data-variant", "href", "onClick"]));
|
|
@@ -321,30 +321,30 @@ const se = (e) => {
|
|
|
321
321
|
setup(e) {
|
|
322
322
|
return (a, t) => {
|
|
323
323
|
var l;
|
|
324
|
-
return
|
|
324
|
+
return u(), v("div", kt, [
|
|
325
325
|
m("table", { summary: e.tableTitle }, [
|
|
326
326
|
m("thead", null, [
|
|
327
327
|
m("tr", null, [
|
|
328
328
|
m("th", {
|
|
329
329
|
colspan: ((l = e.dataIdxLabels) == null ? void 0 : l.length) + 1
|
|
330
|
-
},
|
|
330
|
+
}, T(e.tableTitle), 9, Tt)
|
|
331
331
|
]),
|
|
332
332
|
m("tr", null, [
|
|
333
333
|
xt,
|
|
334
|
-
(
|
|
334
|
+
(u(!0), v(R, null, Y(e.dataIdxLabels, (n) => (u(), v("th", {
|
|
335
335
|
key: n,
|
|
336
336
|
scope: "col"
|
|
337
|
-
},
|
|
337
|
+
}, T(n), 1))), 128))
|
|
338
338
|
])
|
|
339
339
|
]),
|
|
340
340
|
m("tbody", null, [
|
|
341
|
-
(
|
|
341
|
+
(u(!0), v(R, null, Y(e.data, (n) => (u(), v("tr", {
|
|
342
342
|
key: n.label
|
|
343
343
|
}, [
|
|
344
|
-
m("th", Ct,
|
|
345
|
-
(
|
|
346
|
-
key: `${o}${
|
|
347
|
-
},
|
|
344
|
+
m("th", Ct, T(n.label), 1),
|
|
345
|
+
(u(!0), v(R, null, Y(n.data, (o, d) => (u(), v("td", {
|
|
346
|
+
key: `${o}${d}`
|
|
347
|
+
}, T(o), 1))), 128))
|
|
348
348
|
]))), 128))
|
|
349
349
|
])
|
|
350
350
|
], 8, It)
|
|
@@ -357,13 +357,13 @@ const se = (e) => {
|
|
|
357
357
|
e.innerHTML = "", e.style.setProperty("--legend-padding", `${a.scales.x.left}px`), a.options.plugins.legend.labels.generateLabels(a).forEach((l) => {
|
|
358
358
|
const n = document.createElement("li");
|
|
359
359
|
n.onclick = () => {
|
|
360
|
-
const { type:
|
|
361
|
-
|
|
360
|
+
const { type: s } = a.config._config;
|
|
361
|
+
s === "pie" || s === "doughnut" ? a.toggleDataVisibility(l.index) : a.setDatasetVisibility(l.datasetIndex, !a.isDatasetVisible(l.datasetIndex)), a.update();
|
|
362
362
|
};
|
|
363
363
|
const o = document.createElement("span");
|
|
364
364
|
o.style.setProperty("--item-box-fill", l.fillStyle), o.style.setProperty("--item-box-stroke", l.strokeStyle);
|
|
365
|
-
const
|
|
366
|
-
i.style.setProperty("--item-text-color", l.fontColor), i.style.setProperty("--item-text-decoration", l.hidden ? "line-through" : "none"), i.appendChild(
|
|
365
|
+
const d = document.createTextNode(l.text), i = document.createElement("p");
|
|
366
|
+
i.style.setProperty("--item-text-color", l.fontColor), i.style.setProperty("--item-text-decoration", l.hidden ? "line-through" : "none"), i.appendChild(d), n.appendChild(o), n.appendChild(i), e.appendChild(n);
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
369
|
}), Pt = ({ type: e, datasets: a, labels: t, tooltips: l }) => ({
|
|
@@ -464,16 +464,16 @@ const Et = {
|
|
|
464
464
|
}
|
|
465
465
|
},
|
|
466
466
|
setup(e) {
|
|
467
|
-
const a = e, t =
|
|
467
|
+
const a = e, t = k(null), l = k(null);
|
|
468
468
|
let n;
|
|
469
|
-
const o =
|
|
470
|
-
const
|
|
471
|
-
datasets:
|
|
469
|
+
const o = p(() => {
|
|
470
|
+
const f = {
|
|
471
|
+
datasets: d.value,
|
|
472
472
|
labels: a.dataIdxLabels,
|
|
473
473
|
type: "bar",
|
|
474
474
|
tooltips: a.showTooltips
|
|
475
|
-
},
|
|
476
|
-
return
|
|
475
|
+
}, b = Pt(f);
|
|
476
|
+
return b.plugins = [Lt(l.value)], b.options.scales = {
|
|
477
477
|
x: {
|
|
478
478
|
grid: {
|
|
479
479
|
display: a.showXGrid
|
|
@@ -494,19 +494,19 @@ const Et = {
|
|
|
494
494
|
text: a.yLabel
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
},
|
|
498
|
-
}),
|
|
499
|
-
...
|
|
500
|
-
backgroundColor: Dt(
|
|
497
|
+
}, b;
|
|
498
|
+
}), d = p(() => a.data.map((f, b) => ({
|
|
499
|
+
...f,
|
|
500
|
+
backgroundColor: Dt(b),
|
|
501
501
|
categoryPercentage: a.data.length > 1 ? 0.5 : 0.33
|
|
502
|
-
}))), i =
|
|
503
|
-
!n ||
|
|
504
|
-
}, 100),
|
|
502
|
+
}))), i = p(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`), s = $e(function(f, b) {
|
|
503
|
+
!n || f === b || (n.options = o.value.options, n.update());
|
|
504
|
+
}, 100), r = $e(function() {
|
|
505
505
|
n && (n.data = o.value.data, n.update());
|
|
506
506
|
}, 100);
|
|
507
|
-
return
|
|
507
|
+
return N(() => {
|
|
508
508
|
fe.register(nt, lt, ot, it, rt, st), fe.defaults.font.family = "'Roobert', sans-serif", n = new fe(t.value, o.value);
|
|
509
|
-
}),
|
|
509
|
+
}), V(() => a.showLegend, s), V(() => a.showTooltips, s), V(() => a.showXGrid, s), V(() => a.showYGrid, s), V(() => a.stacked, s), V(() => a.xLabel, s), V(() => a.yLabel, s), V(() => a.data, r), V(() => a.dataIdxLabels, r), (f, b) => (u(), v("div", Et, [
|
|
510
510
|
m("figure", null, [
|
|
511
511
|
m("div", null, [
|
|
512
512
|
m("canvas", {
|
|
@@ -517,7 +517,7 @@ const Et = {
|
|
|
517
517
|
}, null, 8, Vt)
|
|
518
518
|
]),
|
|
519
519
|
m("div", null, [
|
|
520
|
-
|
|
520
|
+
D(At, {
|
|
521
521
|
data: e.data,
|
|
522
522
|
"data-idx-labels": e.dataIdxLabels,
|
|
523
523
|
"table-title": i.value
|
|
@@ -589,35 +589,35 @@ const Et = {
|
|
|
589
589
|
},
|
|
590
590
|
emits: ["update:modelValue"],
|
|
591
591
|
setup(e, { emit: a }) {
|
|
592
|
-
const t = e, l =
|
|
593
|
-
function
|
|
594
|
-
i.value && (i.value.indeterminate = t.checkedPartially && !
|
|
592
|
+
const t = e, l = O(), [n] = H(), { toChild: o, toRoot: d } = Z(t, l), i = k(null), s = p(() => t.inputId || n.value), r = p(() => t.checked || t.modelValue);
|
|
593
|
+
function f() {
|
|
594
|
+
i.value && (i.value.indeterminate = t.checkedPartially && !r.value);
|
|
595
595
|
}
|
|
596
|
-
return
|
|
596
|
+
return V(r, f), V(() => t.checkedPartially, f), (b, g) => (u(), v("div", E({
|
|
597
597
|
class: "bs-boolean",
|
|
598
598
|
"data-component": "bs-checkbox",
|
|
599
599
|
"data-size": e.size
|
|
600
|
-
},
|
|
601
|
-
m("input",
|
|
600
|
+
}, c(d)), [
|
|
601
|
+
m("input", E({
|
|
602
602
|
ref_key: "inputEl",
|
|
603
603
|
ref: i,
|
|
604
|
-
checked:
|
|
604
|
+
checked: r.value,
|
|
605
605
|
disabled: e.disabled,
|
|
606
|
-
id:
|
|
606
|
+
id: s.value,
|
|
607
607
|
required: e.required,
|
|
608
608
|
type: "checkbox",
|
|
609
609
|
"data-error": e.error,
|
|
610
|
-
onChange:
|
|
611
|
-
},
|
|
612
|
-
e.label ||
|
|
610
|
+
onChange: g[0] || (g[0] = (y) => b.$emit("update:modelValue", y.target.checked))
|
|
611
|
+
}, c(o)), null, 16, Mt),
|
|
612
|
+
e.label || b.$slots.label ? (u(), A(c(_), {
|
|
613
613
|
key: 0,
|
|
614
|
-
for:
|
|
614
|
+
for: s.value,
|
|
615
615
|
disabled: e.disabled,
|
|
616
616
|
required: e.required
|
|
617
617
|
}, {
|
|
618
|
-
default:
|
|
619
|
-
|
|
620
|
-
W(
|
|
618
|
+
default: C(() => [
|
|
619
|
+
I(b.$slots, "label", {}, () => [
|
|
620
|
+
W(T(e.label), 1)
|
|
621
621
|
])
|
|
622
622
|
]),
|
|
623
623
|
_: 3
|
|
@@ -667,27 +667,27 @@ const Et = {
|
|
|
667
667
|
}
|
|
668
668
|
},
|
|
669
669
|
setup(e) {
|
|
670
|
-
const a = e, t =
|
|
670
|
+
const a = e, t = O(), { rootTag: l, attrsToBind: n } = he(a, t), { icon: o } = le(a.icon), { onLinkClick: d } = ie(a), i = p(() => a.textBtn ? {} : a.href ? { title: a.label } : { "aria-label": a.label }), s = p(() => {
|
|
671
671
|
if (a.hoverEffect)
|
|
672
672
|
return a.iconPosition;
|
|
673
|
-
}),
|
|
674
|
-
return (
|
|
673
|
+
}), r = p(() => a.textBtn && a.iconPosition !== "left"), f = p(() => a.textBtn && a.iconPosition === "left");
|
|
674
|
+
return (b, g) => (u(), A(U(c(l)), E({
|
|
675
675
|
class: "bs-circle-button",
|
|
676
676
|
"data-disabled": e.disabled,
|
|
677
|
-
"data-direction":
|
|
677
|
+
"data-direction": s.value,
|
|
678
678
|
"data-ghost": e.ghostBtn,
|
|
679
679
|
"data-size": e.size,
|
|
680
680
|
"data-text": e.textBtn,
|
|
681
681
|
href: e.href
|
|
682
|
-
}, { ...
|
|
683
|
-
default:
|
|
684
|
-
|
|
682
|
+
}, { ...c(n), ...i.value }, { onClick: c(d) }), {
|
|
683
|
+
default: C(() => [
|
|
684
|
+
r.value ? (u(), v("span", Rt, T(e.label), 1)) : $("", !0),
|
|
685
685
|
m("span", Ot, [
|
|
686
|
-
|
|
687
|
-
(
|
|
686
|
+
I(b.$slots, "icon", {}, () => [
|
|
687
|
+
(u(), A(U(c(o)), { size: e.size }, null, 8, ["size"]))
|
|
688
688
|
])
|
|
689
689
|
]),
|
|
690
|
-
|
|
690
|
+
f.value ? (u(), v("span", Nt, T(e.label), 1)) : $("", !0)
|
|
691
691
|
]),
|
|
692
692
|
_: 3
|
|
693
693
|
}, 16, ["data-disabled", "data-direction", "data-ghost", "data-size", "data-text", "href", "onClick"]));
|
|
@@ -736,71 +736,71 @@ const Et = {
|
|
|
736
736
|
],
|
|
737
737
|
setup(e, { emit: a }) {
|
|
738
738
|
const t = e, l = a, n = [];
|
|
739
|
-
function o(
|
|
740
|
-
const { duration:
|
|
739
|
+
function o(s, r) {
|
|
740
|
+
const { duration: f, enterClass: b, enterAttribute: g } = t;
|
|
741
741
|
n.push(setTimeout(() => {
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
},
|
|
742
|
+
b && s.classList.add(b), g && s.setAttribute(g, ""), n.push(setTimeout(() => {
|
|
743
|
+
r();
|
|
744
|
+
}, f)), l("enter", s);
|
|
745
745
|
}));
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function d(s, r) {
|
|
748
748
|
const {
|
|
749
|
-
duration:
|
|
750
|
-
enterClass:
|
|
751
|
-
enterAttribute:
|
|
749
|
+
duration: f,
|
|
750
|
+
enterClass: b,
|
|
751
|
+
enterAttribute: g,
|
|
752
752
|
leaveClass: y,
|
|
753
|
-
leaveAttribute:
|
|
753
|
+
leaveAttribute: L
|
|
754
754
|
} = t;
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
},
|
|
755
|
+
s.classList.remove(b), s.removeAttribute(g), y && s.classList.add(y), L && s.setAttribute(L, ""), n.push(setTimeout(() => {
|
|
756
|
+
r();
|
|
757
|
+
}, f)), l("leave", s);
|
|
758
758
|
}
|
|
759
|
-
function i(
|
|
760
|
-
const { leaveClass:
|
|
761
|
-
|
|
759
|
+
function i(s) {
|
|
760
|
+
const { leaveClass: r, leaveAttribute: f } = t;
|
|
761
|
+
s.classList.remove(r), s.removeAttribute(f), l("after-leave", s);
|
|
762
762
|
}
|
|
763
763
|
return ne(() => {
|
|
764
|
-
n.forEach((
|
|
765
|
-
clearTimeout(
|
|
764
|
+
n.forEach((s) => {
|
|
765
|
+
clearTimeout(s);
|
|
766
766
|
});
|
|
767
|
-
}), (
|
|
767
|
+
}), (s, r) => e.preloaded ? Ne((u(), A(me, {
|
|
768
768
|
key: 0,
|
|
769
769
|
css: !1,
|
|
770
|
-
onBeforeEnter:
|
|
770
|
+
onBeforeEnter: r[0] || (r[0] = (f) => l("before-enter", f)),
|
|
771
771
|
onEnter: o,
|
|
772
|
-
onAfterEnter:
|
|
773
|
-
onEnterCancelled:
|
|
774
|
-
onBeforeLeave:
|
|
775
|
-
onLeave:
|
|
772
|
+
onAfterEnter: r[1] || (r[1] = (f) => l("after-enter", f)),
|
|
773
|
+
onEnterCancelled: r[2] || (r[2] = (f) => l("enter-cancelled", f)),
|
|
774
|
+
onBeforeLeave: r[3] || (r[3] = (f) => l("before-leave", f)),
|
|
775
|
+
onLeave: d,
|
|
776
776
|
onAfterLeave: i,
|
|
777
|
-
onLeaveCancelled:
|
|
777
|
+
onLeaveCancelled: r[4] || (r[4] = (f) => l("leave-cancelled", f))
|
|
778
778
|
}, {
|
|
779
|
-
default:
|
|
780
|
-
|
|
779
|
+
default: C(() => [
|
|
780
|
+
I(s.$slots, "default")
|
|
781
781
|
]),
|
|
782
782
|
_: 3
|
|
783
783
|
}, 512)), [
|
|
784
784
|
[We, e.shown]
|
|
785
|
-
]) : (
|
|
785
|
+
]) : (u(), A(me, {
|
|
786
786
|
key: 1,
|
|
787
787
|
css: !1,
|
|
788
|
-
onBeforeEnter:
|
|
788
|
+
onBeforeEnter: r[5] || (r[5] = (f) => l("before-enter", f)),
|
|
789
789
|
onEnter: o,
|
|
790
|
-
onAfterEnter:
|
|
791
|
-
onEnterCancelled:
|
|
792
|
-
onBeforeLeave:
|
|
793
|
-
onLeave:
|
|
790
|
+
onAfterEnter: r[6] || (r[6] = (f) => l("after-enter", f)),
|
|
791
|
+
onEnterCancelled: r[7] || (r[7] = (f) => l("enter-cancelled", f)),
|
|
792
|
+
onBeforeLeave: r[8] || (r[8] = (f) => l("before-leave", f)),
|
|
793
|
+
onLeave: d,
|
|
794
794
|
onAfterLeave: i,
|
|
795
|
-
onLeaveCancelled:
|
|
795
|
+
onLeaveCancelled: r[9] || (r[9] = (f) => l("leave-cancelled", f))
|
|
796
796
|
}, {
|
|
797
|
-
default:
|
|
798
|
-
e.shown ?
|
|
797
|
+
default: C(() => [
|
|
798
|
+
e.shown ? I(s.$slots, "default", { key: 0 }) : $("", !0)
|
|
799
799
|
]),
|
|
800
800
|
_: 3
|
|
801
801
|
}));
|
|
802
802
|
}
|
|
803
|
-
}, Wt = ["data-width"],
|
|
803
|
+
}, Wt = ["data-width"], jt = { key: 0 }, Gt = { key: 0 }, Se = {
|
|
804
804
|
__name: "BsDropdownInternal",
|
|
805
805
|
props: {
|
|
806
806
|
shown: {
|
|
@@ -821,11 +821,16 @@ const Et = {
|
|
|
821
821
|
default: void 0,
|
|
822
822
|
validator: (e) => ["top", "bottom", "right"].includes(e)
|
|
823
823
|
},
|
|
824
|
-
|
|
824
|
+
anchorId: {
|
|
825
825
|
required: !0
|
|
826
826
|
},
|
|
827
|
+
containerId: {
|
|
828
|
+
type: String,
|
|
829
|
+
default: void 0
|
|
830
|
+
},
|
|
827
831
|
containerRef: {
|
|
828
|
-
|
|
832
|
+
type: Object,
|
|
833
|
+
default: void 0
|
|
829
834
|
},
|
|
830
835
|
helperText: {
|
|
831
836
|
type: String,
|
|
@@ -843,82 +848,82 @@ const Et = {
|
|
|
843
848
|
"after-leave"
|
|
844
849
|
],
|
|
845
850
|
setup(e, { emit: a }) {
|
|
846
|
-
const t = e, l = a, n =
|
|
851
|
+
const t = e, l = a, n = k(null);
|
|
847
852
|
let o = !1;
|
|
848
853
|
ct([n], () => {
|
|
849
854
|
o && l("close");
|
|
850
855
|
}), re(["Escape"], () => {
|
|
851
856
|
o && l("close");
|
|
852
857
|
});
|
|
853
|
-
function
|
|
854
|
-
const
|
|
858
|
+
function d() {
|
|
859
|
+
const y = (t.containerRef || document.getElementById(t.containerId)).getBoundingClientRect(), L = document.getElementById(t.anchorId).getBoundingClientRect(), M = n.value.getBoundingClientRect();
|
|
855
860
|
if (t.position === "top") {
|
|
856
|
-
const
|
|
857
|
-
n.value.style.setProperty("--dropdown-wscreen-top", "auto"), n.value.style.setProperty("--dropdown-wscreen-bottom", `${
|
|
861
|
+
const w = y.bottom - L.bottom;
|
|
862
|
+
n.value.style.setProperty("--dropdown-wscreen-top", "auto"), n.value.style.setProperty("--dropdown-wscreen-bottom", `${w + L.height + 8}px`);
|
|
858
863
|
} else {
|
|
859
|
-
const
|
|
860
|
-
n.value.style.setProperty("--dropdown-wscreen-top", `${
|
|
864
|
+
const w = L.top - y.top;
|
|
865
|
+
n.value.style.setProperty("--dropdown-wscreen-top", `${w + L.height + 8}px`), n.value.style.setProperty("--dropdown-wscreen-bottom", "auto");
|
|
861
866
|
}
|
|
862
|
-
const
|
|
867
|
+
const P = L.left - y.left;
|
|
863
868
|
if (t.position === "center") {
|
|
864
|
-
const
|
|
865
|
-
n.value.style.setProperty("--dropdown-wscreen-left", `${
|
|
869
|
+
const w = (L.width - M.width) / 2;
|
|
870
|
+
n.value.style.setProperty("--dropdown-wscreen-left", `${P + w}px`);
|
|
866
871
|
} else if (t.position === "right") {
|
|
867
|
-
const
|
|
868
|
-
n.value.style.setProperty("--dropdown-wscreen-left", "auto"), n.value.style.setProperty("--dropdown-wscreen-right", `${
|
|
872
|
+
const w = y.right - L.right;
|
|
873
|
+
n.value.style.setProperty("--dropdown-wscreen-left", "auto"), n.value.style.setProperty("--dropdown-wscreen-right", `${w}px`);
|
|
869
874
|
} else
|
|
870
|
-
n.value.style.setProperty("--dropdown-wscreen-left", `${
|
|
875
|
+
n.value.style.setProperty("--dropdown-wscreen-left", `${P}px`);
|
|
871
876
|
}
|
|
872
877
|
function i() {
|
|
873
878
|
if (t.width === "toggle") {
|
|
874
|
-
const
|
|
875
|
-
n.value.style.setProperty("--dropdown-wscreen-width", `${
|
|
879
|
+
const g = document.getElementById(t.anchorId).getBoundingClientRect();
|
|
880
|
+
n.value.style.setProperty("--dropdown-wscreen-width", `${g.width}px`);
|
|
876
881
|
} else
|
|
877
882
|
n.value.style.setProperty("--dropdown-wscreen-width", "");
|
|
878
883
|
}
|
|
879
|
-
function
|
|
880
|
-
|
|
884
|
+
function s() {
|
|
885
|
+
d(), i(), l("enter");
|
|
881
886
|
}
|
|
882
|
-
function
|
|
887
|
+
function r() {
|
|
883
888
|
o = !0, l("after-enter");
|
|
884
889
|
}
|
|
885
|
-
function
|
|
890
|
+
function f() {
|
|
886
891
|
o = !1, l("after-leave");
|
|
887
892
|
}
|
|
888
|
-
function
|
|
893
|
+
function b() {
|
|
889
894
|
return t.width === "toggle" ? void 0 : t.width;
|
|
890
895
|
}
|
|
891
|
-
return (
|
|
896
|
+
return (g, y) => (u(), A(c(de), {
|
|
892
897
|
shown: e.shown,
|
|
893
898
|
preloaded: e.preloaded,
|
|
894
899
|
duration: 75,
|
|
895
900
|
"enter-attribute": "data-shown",
|
|
896
|
-
onAfterEnter: y[1] || (y[1] = (
|
|
897
|
-
onEnter: y[2] || (y[2] = (
|
|
898
|
-
onAfterLeave: y[3] || (y[3] = (
|
|
901
|
+
onAfterEnter: y[1] || (y[1] = (L) => r()),
|
|
902
|
+
onEnter: y[2] || (y[2] = (L) => s()),
|
|
903
|
+
onAfterLeave: y[3] || (y[3] = (L) => f())
|
|
899
904
|
}, {
|
|
900
|
-
default:
|
|
901
|
-
m("div", {
|
|
905
|
+
default: C(() => [
|
|
906
|
+
m("div", E({
|
|
902
907
|
ref_key: "dropdownRef",
|
|
903
908
|
ref: n,
|
|
904
909
|
class: "bs-dropdown",
|
|
905
|
-
"data-width":
|
|
906
|
-
}, [
|
|
907
|
-
e.helperText ? (
|
|
910
|
+
"data-width": b()
|
|
911
|
+
}, g.$attrs), [
|
|
912
|
+
e.helperText ? (u(), v("header", jt, [
|
|
908
913
|
m("div", null, [
|
|
909
|
-
m("h3", null,
|
|
910
|
-
e.helperDescription ? (
|
|
914
|
+
m("h3", null, T(e.helperText), 1),
|
|
915
|
+
e.helperDescription ? (u(), v("p", Gt, T(e.helperDescription), 1)) : $("", !0)
|
|
911
916
|
]),
|
|
912
917
|
m("button", {
|
|
913
918
|
type: "button",
|
|
914
919
|
title: "close",
|
|
915
920
|
onClick: y[0] || (y[0] = () => l("close"))
|
|
916
921
|
}, [
|
|
917
|
-
|
|
922
|
+
D(c(oe))
|
|
918
923
|
])
|
|
919
924
|
])) : $("", !0),
|
|
920
|
-
|
|
921
|
-
],
|
|
925
|
+
I(g.$slots, "default")
|
|
926
|
+
], 16, Wt)
|
|
922
927
|
]),
|
|
923
928
|
_: 3
|
|
924
929
|
}, 8, ["shown", "preloaded"]));
|
|
@@ -1006,63 +1011,55 @@ const Et = {
|
|
|
1006
1011
|
"after-leave"
|
|
1007
1012
|
],
|
|
1008
1013
|
setup(e, { emit: a }) {
|
|
1009
|
-
const t = e, l = a, n =
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
const i = b(() => t.toggleId ? t.toggleId : t.anchorId), d = b(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position);
|
|
1014
|
-
return (u, c) => (s(), v(R, null, [
|
|
1015
|
-
f(r) ? (s(), v("div", Ft)) : $("", !0),
|
|
1016
|
-
e.containerId ? (s(), L(f(Se), {
|
|
1014
|
+
const t = e, l = a, n = k(null), { transition: o } = se(t), d = p(() => t.toggleId ? t.toggleId : t.anchorId), i = p(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position);
|
|
1015
|
+
return (s, r) => (u(), v(R, null, [
|
|
1016
|
+
c(o) ? (u(), v("div", Ft)) : $("", !0),
|
|
1017
|
+
e.containerId ? (u(), A(c(Se), E({
|
|
1017
1018
|
key: 1,
|
|
1018
|
-
shown:
|
|
1019
|
+
shown: c(o),
|
|
1019
1020
|
preloaded: e.preloaded,
|
|
1020
|
-
"anchor-
|
|
1021
|
-
"container-
|
|
1022
|
-
"enter-controlled": e.enterControlled,
|
|
1023
|
-
"enter-trigger": e.enterTrigger,
|
|
1021
|
+
"anchor-id": d.value,
|
|
1022
|
+
"container-id": e.containerId,
|
|
1024
1023
|
"helper-description": e.helperDescription,
|
|
1025
1024
|
"helper-text": e.helperText,
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
onClose:
|
|
1030
|
-
onAfterEnter:
|
|
1031
|
-
onEnter:
|
|
1032
|
-
onAfterLeave:
|
|
1033
|
-
}, {
|
|
1034
|
-
default:
|
|
1035
|
-
|
|
1025
|
+
position: i.value,
|
|
1026
|
+
width: e.width
|
|
1027
|
+
}, s.$attrs, {
|
|
1028
|
+
onClose: r[0] || (r[0] = (f) => l("close")),
|
|
1029
|
+
onAfterEnter: r[1] || (r[1] = (f) => l("after-enter")),
|
|
1030
|
+
onEnter: r[2] || (r[2] = (f) => l("enter")),
|
|
1031
|
+
onAfterLeave: r[3] || (r[3] = (f) => l("after-leave"))
|
|
1032
|
+
}), {
|
|
1033
|
+
default: C(() => [
|
|
1034
|
+
I(s.$slots, "default")
|
|
1036
1035
|
]),
|
|
1037
1036
|
_: 3
|
|
1038
|
-
},
|
|
1037
|
+
}, 16, ["shown", "preloaded", "anchor-id", "container-id", "helper-description", "helper-text", "position", "width"])) : (u(), v("div", {
|
|
1039
1038
|
key: 2,
|
|
1040
1039
|
ref_key: "containerRef",
|
|
1041
1040
|
ref: n,
|
|
1042
1041
|
style: { position: "relative" }
|
|
1043
1042
|
}, [
|
|
1044
|
-
|
|
1045
|
-
shown:
|
|
1043
|
+
D(c(Se), E({
|
|
1044
|
+
shown: c(o),
|
|
1046
1045
|
preloaded: e.preloaded,
|
|
1047
|
-
"anchor-
|
|
1046
|
+
"anchor-id": d.value,
|
|
1048
1047
|
"container-ref": n.value,
|
|
1049
|
-
"enter-controlled": e.enterControlled,
|
|
1050
|
-
"enter-trigger": e.enterTrigger,
|
|
1051
1048
|
"helper-description": e.helperDescription,
|
|
1052
1049
|
"helper-text": e.helperText,
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
onClose:
|
|
1057
|
-
onAfterEnter:
|
|
1058
|
-
onEnter:
|
|
1059
|
-
onAfterLeave:
|
|
1060
|
-
}, {
|
|
1061
|
-
default:
|
|
1062
|
-
|
|
1050
|
+
position: i.value,
|
|
1051
|
+
width: e.width
|
|
1052
|
+
}, s.$attrs, {
|
|
1053
|
+
onClose: r[4] || (r[4] = (f) => l("close")),
|
|
1054
|
+
onAfterEnter: r[5] || (r[5] = (f) => l("after-enter")),
|
|
1055
|
+
onEnter: r[6] || (r[6] = (f) => l("enter")),
|
|
1056
|
+
onAfterLeave: r[7] || (r[7] = (f) => l("after-leave"))
|
|
1057
|
+
}), {
|
|
1058
|
+
default: C(() => [
|
|
1059
|
+
I(s.$slots, "default")
|
|
1063
1060
|
]),
|
|
1064
1061
|
_: 3
|
|
1065
|
-
},
|
|
1062
|
+
}, 16, ["shown", "preloaded", "anchor-id", "container-ref", "helper-description", "helper-text", "position", "width"])
|
|
1066
1063
|
], 512))
|
|
1067
1064
|
], 64));
|
|
1068
1065
|
}
|
|
@@ -1079,16 +1076,16 @@ const Et = {
|
|
|
1079
1076
|
}
|
|
1080
1077
|
},
|
|
1081
1078
|
setup(e) {
|
|
1082
|
-
const a = e, t =
|
|
1079
|
+
const a = e, t = k(null), l = te("optionsId"), n = te("handleSelect"), o = p(() => `${l}-option-${a.value}`);
|
|
1083
1080
|
re([" ", "Enter", "NumpadEnter"], (i) => {
|
|
1084
|
-
var
|
|
1085
|
-
|
|
1081
|
+
var s;
|
|
1082
|
+
d(), (s = t.value.querySelector("a")) == null || s.click(), i.preventDefault();
|
|
1086
1083
|
}, t);
|
|
1087
|
-
function
|
|
1084
|
+
function d() {
|
|
1088
1085
|
var i;
|
|
1089
1086
|
n(o.value, a.value), (i = t.value.querySelector("a")) == null || i.click();
|
|
1090
1087
|
}
|
|
1091
|
-
return (i,
|
|
1088
|
+
return (i, s) => (u(), v("li", {
|
|
1092
1089
|
"data-component": "bs-dropdown-option",
|
|
1093
1090
|
"data-value": a.value,
|
|
1094
1091
|
ref_key: "optionRef",
|
|
@@ -1097,9 +1094,9 @@ const Et = {
|
|
|
1097
1094
|
"data-variant": e.variant || void 0,
|
|
1098
1095
|
id: o.value,
|
|
1099
1096
|
tabIndex: -1,
|
|
1100
|
-
onClick:
|
|
1097
|
+
onClick: d
|
|
1101
1098
|
}, [
|
|
1102
|
-
|
|
1099
|
+
I(i.$slots, "default")
|
|
1103
1100
|
], 8, Ht));
|
|
1104
1101
|
}
|
|
1105
1102
|
}, Yt = ["aria-activedescendant", "aria-label", "id"], Xt = {
|
|
@@ -1140,84 +1137,84 @@ const Et = {
|
|
|
1140
1137
|
},
|
|
1141
1138
|
emits: ["optselected", "update:modelValue", "close"],
|
|
1142
1139
|
setup(e, { emit: a }) {
|
|
1143
|
-
const t = e, l = a, n =
|
|
1144
|
-
let
|
|
1145
|
-
ae("optionsId", t.optionsId), ae("handleSelect",
|
|
1146
|
-
function
|
|
1147
|
-
return
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
}),
|
|
1152
|
-
document.removeEventListener("keydown",
|
|
1153
|
-
}),
|
|
1154
|
-
|
|
1155
|
-
}),
|
|
1156
|
-
|
|
1140
|
+
const t = e, l = a, n = k(null), o = k(null);
|
|
1141
|
+
let d = null, i = -1, s = -1;
|
|
1142
|
+
ae("optionsId", t.optionsId), ae("handleSelect", P);
|
|
1143
|
+
function r() {
|
|
1144
|
+
return d || (d = Array.from(n.value.querySelectorAll('[data-component="bs-dropdown-option"]'))), d;
|
|
1145
|
+
}
|
|
1146
|
+
N(() => {
|
|
1147
|
+
g(), document.addEventListener("keydown", L);
|
|
1148
|
+
}), je(() => {
|
|
1149
|
+
document.removeEventListener("keydown", L);
|
|
1150
|
+
}), V(() => t.visible, () => {
|
|
1151
|
+
g();
|
|
1152
|
+
}), V(() => t.shown, () => {
|
|
1153
|
+
g();
|
|
1157
1154
|
});
|
|
1158
|
-
const
|
|
1159
|
-
function
|
|
1160
|
-
var
|
|
1161
|
-
|
|
1162
|
-
(J) => J.getAttribute("data-value") ===
|
|
1163
|
-
),
|
|
1155
|
+
const f = p(() => t.visible || t.shown), b = p(() => t.modelValue || t.selectedValue);
|
|
1156
|
+
function g() {
|
|
1157
|
+
var w, S, q, j, ee;
|
|
1158
|
+
f.value ? (s = r().findIndex(
|
|
1159
|
+
(J) => J.getAttribute("data-value") === b.value
|
|
1160
|
+
), s > -1 && ((w = r()[s]) == null || w.setAttribute("data-selected", ""), (S = r()[s]) == null || S.setAttribute("aria-selected", "true"), i = s, t.focusDelay > 0 ? setTimeout(() => {
|
|
1164
1161
|
var J;
|
|
1165
|
-
(J =
|
|
1166
|
-
}, t.focusDelay) : (q =
|
|
1162
|
+
(J = r()[s]) == null || J.focus();
|
|
1163
|
+
}, t.focusDelay) : (q = r()[s]) == null || q.focus())) : ((j = r()[s]) == null || j.removeAttribute("data-selected"), (ee = r()[s]) == null || ee.removeAttribute("aria-selected"));
|
|
1167
1164
|
}
|
|
1168
1165
|
ft(
|
|
1169
1166
|
n,
|
|
1170
1167
|
() => {
|
|
1171
|
-
|
|
1168
|
+
d = null;
|
|
1172
1169
|
},
|
|
1173
1170
|
{ childList: !0 }
|
|
1174
1171
|
);
|
|
1175
1172
|
function y() {
|
|
1176
|
-
var
|
|
1177
|
-
i > -1 && ((
|
|
1173
|
+
var w;
|
|
1174
|
+
i > -1 && ((w = r()[i]) == null || w.blur());
|
|
1178
1175
|
}
|
|
1179
|
-
function
|
|
1180
|
-
if (
|
|
1181
|
-
switch (
|
|
1176
|
+
function L(w) {
|
|
1177
|
+
if (f.value)
|
|
1178
|
+
switch (w.key) {
|
|
1182
1179
|
case "ArrowDown":
|
|
1183
|
-
|
|
1180
|
+
M("down"), w.preventDefault();
|
|
1184
1181
|
break;
|
|
1185
1182
|
case "ArrowUp":
|
|
1186
|
-
|
|
1183
|
+
M("up"), w.preventDefault();
|
|
1187
1184
|
break;
|
|
1188
1185
|
case "Home":
|
|
1189
|
-
|
|
1186
|
+
M("home"), w.preventDefault();
|
|
1190
1187
|
break;
|
|
1191
1188
|
case "End":
|
|
1192
|
-
|
|
1189
|
+
M("end"), w.preventDefault();
|
|
1193
1190
|
break;
|
|
1194
1191
|
case "Tab":
|
|
1195
|
-
|
|
1192
|
+
w.preventDefault();
|
|
1196
1193
|
break;
|
|
1197
1194
|
}
|
|
1198
1195
|
}
|
|
1199
|
-
function
|
|
1196
|
+
function M(w) {
|
|
1200
1197
|
let S;
|
|
1201
|
-
switch (
|
|
1198
|
+
switch (w) {
|
|
1202
1199
|
case "up":
|
|
1203
|
-
S = i - 1 < 0 ?
|
|
1200
|
+
S = i - 1 < 0 ? r().length - 1 : i - 1;
|
|
1204
1201
|
break;
|
|
1205
1202
|
case "down":
|
|
1206
|
-
S = (i + 1) %
|
|
1203
|
+
S = (i + 1) % r().length;
|
|
1207
1204
|
break;
|
|
1208
1205
|
case "home":
|
|
1209
1206
|
S = 0;
|
|
1210
1207
|
break;
|
|
1211
1208
|
case "end":
|
|
1212
|
-
S =
|
|
1209
|
+
S = r().length - 1;
|
|
1213
1210
|
break;
|
|
1214
1211
|
}
|
|
1215
|
-
y(),
|
|
1212
|
+
y(), r()[S].focus(), i = S;
|
|
1216
1213
|
}
|
|
1217
|
-
function
|
|
1218
|
-
o.value =
|
|
1214
|
+
function P(w, S) {
|
|
1215
|
+
o.value = w, y(), l("optselected", S), l("update:modelValue", S), l("close");
|
|
1219
1216
|
}
|
|
1220
|
-
return (
|
|
1217
|
+
return (w, S) => (u(), v("ul", {
|
|
1221
1218
|
ref_key: "optionsRef",
|
|
1222
1219
|
ref: n,
|
|
1223
1220
|
"aria-activedescendant": o.value || void 0,
|
|
@@ -1226,7 +1223,7 @@ const Et = {
|
|
|
1226
1223
|
id: t.optionsId,
|
|
1227
1224
|
role: "listbox"
|
|
1228
1225
|
}, [
|
|
1229
|
-
|
|
1226
|
+
I(w.$slots, "default")
|
|
1230
1227
|
], 8, Yt));
|
|
1231
1228
|
}
|
|
1232
1229
|
}, Zt = {
|
|
@@ -1329,17 +1326,17 @@ const Et = {
|
|
|
1329
1326
|
"after-leave"
|
|
1330
1327
|
],
|
|
1331
1328
|
setup(e, { emit: a }) {
|
|
1332
|
-
const t = a, l =
|
|
1329
|
+
const t = a, l = k(!1);
|
|
1333
1330
|
function n() {
|
|
1334
1331
|
l.value = !0;
|
|
1335
1332
|
}
|
|
1336
1333
|
function o(i) {
|
|
1337
1334
|
l.value = !1, t("optselected", i), t("update:modelValue", i), t("close");
|
|
1338
1335
|
}
|
|
1339
|
-
function
|
|
1336
|
+
function d() {
|
|
1340
1337
|
l.value && (l.value = !1, t("close"));
|
|
1341
1338
|
}
|
|
1342
|
-
return (i,
|
|
1339
|
+
return (i, s) => (u(), A(c(Ut), {
|
|
1343
1340
|
shown: e.shown,
|
|
1344
1341
|
preloaded: e.preloaded,
|
|
1345
1342
|
"anchor-id": e.anchorId,
|
|
@@ -1355,13 +1352,13 @@ const Et = {
|
|
|
1355
1352
|
"toggle-id": e.toggleId,
|
|
1356
1353
|
top: e.top,
|
|
1357
1354
|
width: e.width,
|
|
1358
|
-
onClose:
|
|
1359
|
-
onAfterEnter:
|
|
1355
|
+
onClose: d,
|
|
1356
|
+
onAfterEnter: s[0] || (s[0] = (r) => t("after-enter")),
|
|
1360
1357
|
onEnter: n,
|
|
1361
|
-
onAfterLeave:
|
|
1358
|
+
onAfterLeave: s[1] || (s[1] = (r) => t("after-leave"))
|
|
1362
1359
|
}, {
|
|
1363
|
-
default:
|
|
1364
|
-
|
|
1360
|
+
default: C(() => [
|
|
1361
|
+
D(c(Xt), {
|
|
1365
1362
|
label: e.label,
|
|
1366
1363
|
"model-value": e.modelValue,
|
|
1367
1364
|
"options-id": e.optionsId,
|
|
@@ -1369,10 +1366,10 @@ const Et = {
|
|
|
1369
1366
|
shown: l.value,
|
|
1370
1367
|
onOptselected: o,
|
|
1371
1368
|
"onUpdate:modelValue": o,
|
|
1372
|
-
onClose:
|
|
1369
|
+
onClose: d
|
|
1373
1370
|
}, {
|
|
1374
|
-
default:
|
|
1375
|
-
|
|
1371
|
+
default: C(() => [
|
|
1372
|
+
I(i.$slots, "default")
|
|
1376
1373
|
]),
|
|
1377
1374
|
_: 3
|
|
1378
1375
|
}, 8, ["label", "model-value", "options-id", "selected-value", "shown"])
|
|
@@ -1380,49 +1377,88 @@ const Et = {
|
|
|
1380
1377
|
_: 3
|
|
1381
1378
|
}, 8, ["shown", "preloaded", "anchor-id", "center", "container-id", "enter-controlled", "enter-trigger", "helper-description", "helper-text", "leave-trigger", "position", "right", "toggle-id", "top", "width"]));
|
|
1382
1379
|
}
|
|
1383
|
-
}, Jt =
|
|
1380
|
+
}, Jt = {
|
|
1381
|
+
class: "bs-field-details",
|
|
1382
|
+
"data-component": "bs-field-details"
|
|
1383
|
+
}, Qt = ["id", "data-error"], _t = ["data-error"], pe = {
|
|
1384
|
+
__name: "BsFieldDetails",
|
|
1385
|
+
props: {
|
|
1386
|
+
/** The number of characters that have been entered by the user. */
|
|
1387
|
+
charCount: Number,
|
|
1388
|
+
/** Pass value to show character count and set the maximum number of characters that are allowed to be submitted by the user. */
|
|
1389
|
+
charMax: Number,
|
|
1390
|
+
/** Applies error styles to the helper text. */
|
|
1391
|
+
error: {
|
|
1392
|
+
type: Boolean,
|
|
1393
|
+
default: !1
|
|
1394
|
+
},
|
|
1395
|
+
/** Pass error text. Will be shown if `error` is `true`. */
|
|
1396
|
+
errorMsg: String,
|
|
1397
|
+
/** Pass single helper text. */
|
|
1398
|
+
hint: String,
|
|
1399
|
+
/** Adds an id to associate a hint to an input. */
|
|
1400
|
+
hintId: String
|
|
1401
|
+
},
|
|
1402
|
+
setup(e) {
|
|
1403
|
+
const a = e, t = p(() => a.error && a.errorMsg || a.hint);
|
|
1404
|
+
return (l, n) => (u(), v("div", Jt, [
|
|
1405
|
+
t.value ? (u(), v("span", {
|
|
1406
|
+
key: 0,
|
|
1407
|
+
id: e.hintId,
|
|
1408
|
+
class: "bs-hint",
|
|
1409
|
+
"data-error": e.error
|
|
1410
|
+
}, T(t.value), 9, Qt)) : $("", !0),
|
|
1411
|
+
e.charMax ? (u(), v("span", {
|
|
1412
|
+
key: 1,
|
|
1413
|
+
"aria-description": "character count over character limit for the preceding text field",
|
|
1414
|
+
class: "bs-character-count",
|
|
1415
|
+
"data-error": a.charCount > a.charMax
|
|
1416
|
+
}, T(a.charCount || "0") + " / " + T(a.charMax), 9, _t)) : $("", !0)
|
|
1417
|
+
]));
|
|
1418
|
+
}
|
|
1419
|
+
}, ea = ["view-box"], ta = ["id"], aa = ["offset", "stop-color"], Vn = {
|
|
1384
1420
|
__name: "BsIconGradientWrapper",
|
|
1385
1421
|
setup(e) {
|
|
1386
|
-
const a =
|
|
1422
|
+
const a = k(null), t = k(null), l = [
|
|
1387
1423
|
{ offset: 0.1326, color: "#EE282A" },
|
|
1388
1424
|
{ offset: 0.5466, color: "#1C0087" },
|
|
1389
1425
|
{ offset: 0.9715, color: "#0086EA" }
|
|
1390
1426
|
], [n] = H();
|
|
1391
|
-
return
|
|
1427
|
+
return N(() => {
|
|
1392
1428
|
t.value = a.value.querySelector("svg").getAttribute("viewBox") || "0 0 0 0";
|
|
1393
|
-
}), (o,
|
|
1429
|
+
}), (o, d) => (u(), v(R, null, [
|
|
1394
1430
|
m("span", {
|
|
1395
1431
|
ref_key: "svgWrapperRef",
|
|
1396
1432
|
ref: a,
|
|
1397
1433
|
class: "bs-icon-gradient-wrapper",
|
|
1398
|
-
style:
|
|
1434
|
+
style: Ge(`fill: url(#${c(n)});`)
|
|
1399
1435
|
}, [
|
|
1400
|
-
|
|
1436
|
+
I(o.$slots, "default")
|
|
1401
1437
|
], 4),
|
|
1402
|
-
(
|
|
1438
|
+
(u(), v("svg", {
|
|
1403
1439
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1404
1440
|
"view-box": t.value,
|
|
1405
1441
|
width: "0",
|
|
1406
1442
|
height: "0"
|
|
1407
1443
|
}, [
|
|
1408
1444
|
m("linearGradient", {
|
|
1409
|
-
id:
|
|
1445
|
+
id: c(n),
|
|
1410
1446
|
x1: "0",
|
|
1411
1447
|
y1: "0",
|
|
1412
1448
|
x2: "100%",
|
|
1413
1449
|
y2: "100%",
|
|
1414
1450
|
"gradient-units": "userSpaceOnUse"
|
|
1415
1451
|
}, [
|
|
1416
|
-
(
|
|
1452
|
+
(u(), v(R, null, Y(l, (i) => m("stop", {
|
|
1417
1453
|
key: i.offset,
|
|
1418
1454
|
offset: i.offset,
|
|
1419
1455
|
"stop-color": i.color
|
|
1420
|
-
}, null, 8,
|
|
1421
|
-
], 8,
|
|
1422
|
-
], 8,
|
|
1456
|
+
}, null, 8, aa)), 64))
|
|
1457
|
+
], 8, ta)
|
|
1458
|
+
], 8, ea))
|
|
1423
1459
|
], 64));
|
|
1424
1460
|
}
|
|
1425
|
-
},
|
|
1461
|
+
}, na = ["data-error", "id", "value"], we = {
|
|
1426
1462
|
__name: "BsInput",
|
|
1427
1463
|
props: {
|
|
1428
1464
|
error: {
|
|
@@ -1437,20 +1473,20 @@ const Et = {
|
|
|
1437
1473
|
},
|
|
1438
1474
|
emits: ["update:modelValue"],
|
|
1439
1475
|
setup(e, { emit: a }) {
|
|
1440
|
-
const t = e, l = a, n =
|
|
1441
|
-
function
|
|
1442
|
-
const
|
|
1443
|
-
l("update:modelValue",
|
|
1476
|
+
const t = e, l = a, n = O(), o = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
1477
|
+
function d(i) {
|
|
1478
|
+
const s = n.type === "number" ? parseInt(i.target.value) : i.target.value;
|
|
1479
|
+
l("update:modelValue", s);
|
|
1444
1480
|
}
|
|
1445
|
-
return (i,
|
|
1481
|
+
return (i, s) => (u(), v("input", E({
|
|
1446
1482
|
"data-component": "bs-input",
|
|
1447
1483
|
"data-error": e.error,
|
|
1448
1484
|
id: i.$attrs.id || e.inputId,
|
|
1449
1485
|
value: e.value || e.modelValue,
|
|
1450
|
-
onInput:
|
|
1451
|
-
}, o.value), null, 16,
|
|
1486
|
+
onInput: d
|
|
1487
|
+
}, o.value), null, 16, na));
|
|
1452
1488
|
}
|
|
1453
|
-
},
|
|
1489
|
+
}, la = ["data-disabled", "data-error", "data-variant", "data-multifocus"], oa = {
|
|
1454
1490
|
__name: "BsInputAddon",
|
|
1455
1491
|
props: {
|
|
1456
1492
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -1459,7 +1495,7 @@ const Et = {
|
|
|
1459
1495
|
variant: { type: String, validator: (e) => e === "inner-bordered" }
|
|
1460
1496
|
},
|
|
1461
1497
|
setup(e) {
|
|
1462
|
-
return (a, t) => (
|
|
1498
|
+
return (a, t) => (u(), v("div", {
|
|
1463
1499
|
class: "bs-input-addon",
|
|
1464
1500
|
"data-component": "bs-input-addon",
|
|
1465
1501
|
"data-disabled": e.disabled,
|
|
@@ -1467,47 +1503,8 @@ const Et = {
|
|
|
1467
1503
|
"data-variant": e.variant,
|
|
1468
1504
|
"data-multifocus": e.multifocus
|
|
1469
1505
|
}, [
|
|
1470
|
-
|
|
1471
|
-
], 8,
|
|
1472
|
-
}
|
|
1473
|
-
}, na = {
|
|
1474
|
-
class: "bs-field-details",
|
|
1475
|
-
"data-component": "bs-field-details"
|
|
1476
|
-
}, la = ["id", "data-error"], oa = ["data-error"], he = {
|
|
1477
|
-
__name: "BsFieldDetails",
|
|
1478
|
-
props: {
|
|
1479
|
-
/** The number of characters that have been entered by the user. */
|
|
1480
|
-
charCount: Number,
|
|
1481
|
-
/** Pass value to show character count and set the maximum number of characters that are allowed to be submitted by the user. */
|
|
1482
|
-
charMax: Number,
|
|
1483
|
-
/** Applies error styles to the helper text. */
|
|
1484
|
-
error: {
|
|
1485
|
-
type: Boolean,
|
|
1486
|
-
default: !1
|
|
1487
|
-
},
|
|
1488
|
-
/** Pass error text. Will be shown if `error` is `true`. */
|
|
1489
|
-
errorMsg: String,
|
|
1490
|
-
/** Pass single helper text. */
|
|
1491
|
-
hint: String,
|
|
1492
|
-
/** Adds an id to associate a hint to an input. */
|
|
1493
|
-
hintId: String
|
|
1494
|
-
},
|
|
1495
|
-
setup(e) {
|
|
1496
|
-
const a = e, t = b(() => a.error && a.errorMsg || a.hint);
|
|
1497
|
-
return (l, n) => (s(), v("div", na, [
|
|
1498
|
-
t.value ? (s(), v("span", {
|
|
1499
|
-
key: 0,
|
|
1500
|
-
id: e.hintId,
|
|
1501
|
-
class: "bs-hint",
|
|
1502
|
-
"data-error": e.error
|
|
1503
|
-
}, I(t.value), 9, la)) : $("", !0),
|
|
1504
|
-
e.charMax ? (s(), v("span", {
|
|
1505
|
-
key: 1,
|
|
1506
|
-
"aria-description": "character count over character limit for the preceding text field",
|
|
1507
|
-
class: "bs-character-count",
|
|
1508
|
-
"data-error": a.charCount > a.charMax
|
|
1509
|
-
}, I(a.charCount || "0") + " / " + I(a.charMax), 9, oa)) : $("", !0)
|
|
1510
|
-
]));
|
|
1506
|
+
I(a.$slots, "default")
|
|
1507
|
+
], 8, la));
|
|
1511
1508
|
}
|
|
1512
1509
|
}, qn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1513
1510
|
__name: "BsInputField",
|
|
@@ -1531,10 +1528,7 @@ const Et = {
|
|
|
1531
1528
|
/** Pass id for the input element. Will also be applied to label attribute. */
|
|
1532
1529
|
inputId: String,
|
|
1533
1530
|
/** Pass label text. */
|
|
1534
|
-
label: {
|
|
1535
|
-
type: String,
|
|
1536
|
-
required: !0
|
|
1537
|
-
},
|
|
1531
|
+
label: { type: String },
|
|
1538
1532
|
/** List additional attributes by name (comma-separated) to pass through to `<input>`. */
|
|
1539
1533
|
passAttrs: {
|
|
1540
1534
|
type: String,
|
|
@@ -1559,42 +1553,42 @@ const Et = {
|
|
|
1559
1553
|
},
|
|
1560
1554
|
emits: ["update:modelValue"],
|
|
1561
1555
|
setup(e, { emit: a }) {
|
|
1562
|
-
const t = e, l =
|
|
1563
|
-
var
|
|
1564
|
-
return ((
|
|
1556
|
+
const t = e, l = O(), [n, o] = H(2), { toChild: d, toRoot: i } = Z(t, l), s = p(() => {
|
|
1557
|
+
var b, g;
|
|
1558
|
+
return ((g = (b = t.hints) == null ? void 0 : b.join) == null ? void 0 : g.call(b, `
|
|
1565
1559
|
`)) || t.hints;
|
|
1566
|
-
}),
|
|
1567
|
-
return (
|
|
1568
|
-
e.label ||
|
|
1560
|
+
}), r = p(() => t.error && t.errorMsg || t.hint || s.value || void 0), f = p(() => t.inputId || n.value);
|
|
1561
|
+
return (b, g) => (u(), v("div", E({ "data-component": "bs-input-field" }, c(i)), [
|
|
1562
|
+
e.label || b.$slots.label ? (u(), A(c(_), {
|
|
1569
1563
|
key: 0,
|
|
1570
|
-
for:
|
|
1564
|
+
for: f.value,
|
|
1571
1565
|
disabled: e.disabled,
|
|
1572
1566
|
required: e.required
|
|
1573
1567
|
}, {
|
|
1574
|
-
default:
|
|
1575
|
-
|
|
1576
|
-
W(
|
|
1568
|
+
default: C(() => [
|
|
1569
|
+
I(b.$slots, "label", {}, () => [
|
|
1570
|
+
W(T(e.label), 1)
|
|
1577
1571
|
])
|
|
1578
1572
|
]),
|
|
1579
1573
|
_: 3
|
|
1580
1574
|
}, 8, ["for", "disabled", "required"])) : $("", !0),
|
|
1581
|
-
|
|
1575
|
+
D(c(we), E({
|
|
1582
1576
|
disabled: e.disabled,
|
|
1583
1577
|
error: e.error,
|
|
1584
|
-
"hint-id":
|
|
1585
|
-
id:
|
|
1578
|
+
"hint-id": c(o),
|
|
1579
|
+
id: f.value,
|
|
1586
1580
|
placeholder: e.placeholder,
|
|
1587
1581
|
required: e.required,
|
|
1588
1582
|
type: e.type,
|
|
1589
1583
|
value: e.value || e.modelValue,
|
|
1590
|
-
"onUpdate:modelValue":
|
|
1591
|
-
},
|
|
1592
|
-
|
|
1584
|
+
"onUpdate:modelValue": g[0] || (g[0] = (y) => b.$emit("update:modelValue", y))
|
|
1585
|
+
}, c(d)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
|
|
1586
|
+
r.value ? (u(), A(pe, {
|
|
1593
1587
|
key: 1,
|
|
1594
1588
|
error: e.error,
|
|
1595
1589
|
"error-msg": e.errorMsg,
|
|
1596
|
-
hint: e.hint ||
|
|
1597
|
-
"hint-id":
|
|
1590
|
+
hint: e.hint || s.value,
|
|
1591
|
+
"hint-id": c(o)
|
|
1598
1592
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : $("", !0)
|
|
1599
1593
|
], 16));
|
|
1600
1594
|
}
|
|
@@ -1631,29 +1625,29 @@ const Et = {
|
|
|
1631
1625
|
},
|
|
1632
1626
|
emits: ["clear", "update:modelValue"],
|
|
1633
1627
|
setup(e, { emit: a }) {
|
|
1634
|
-
const t = e, l =
|
|
1635
|
-
return (
|
|
1628
|
+
const t = e, l = O(), { toChild: n, toRoot: o } = Z(t, l);
|
|
1629
|
+
return (d, i) => (u(), A(c(oa), E({
|
|
1636
1630
|
class: "bs-input-search",
|
|
1637
1631
|
"data-component": "bs-input-search",
|
|
1638
1632
|
disabled: e.disabled
|
|
1639
|
-
},
|
|
1640
|
-
default:
|
|
1641
|
-
|
|
1642
|
-
|
|
1633
|
+
}, c(o)), {
|
|
1634
|
+
default: C(() => [
|
|
1635
|
+
D(c(Xe)),
|
|
1636
|
+
D(c(we), E({
|
|
1643
1637
|
"data-autowidth": "",
|
|
1644
1638
|
disabled: e.disabled,
|
|
1645
1639
|
"input-id": e.inputId,
|
|
1646
1640
|
placeholder: e.placeholder,
|
|
1647
1641
|
value: e.value || e.modelValue,
|
|
1648
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
1649
|
-
},
|
|
1650
|
-
e.disabled || e.hideClear ? $("", !0) : (
|
|
1642
|
+
"onUpdate:modelValue": i[0] || (i[0] = (s) => d.$emit("update:modelValue", s))
|
|
1643
|
+
}, c(n)), null, 16, ["disabled", "input-id", "placeholder", "value"]),
|
|
1644
|
+
e.disabled || e.hideClear ? $("", !0) : (u(), v("button", {
|
|
1651
1645
|
key: 0,
|
|
1652
1646
|
title: "Clear",
|
|
1653
1647
|
type: "button",
|
|
1654
|
-
onClick: i[1] || (i[1] = (
|
|
1648
|
+
onClick: i[1] || (i[1] = (s) => d.$emit("clear"))
|
|
1655
1649
|
}, [
|
|
1656
|
-
|
|
1650
|
+
D(c(oe), { size: "sm" })
|
|
1657
1651
|
]))
|
|
1658
1652
|
]),
|
|
1659
1653
|
_: 1
|
|
@@ -1671,27 +1665,27 @@ const Et = {
|
|
|
1671
1665
|
required: { type: Boolean, default: !1 }
|
|
1672
1666
|
},
|
|
1673
1667
|
setup(e) {
|
|
1674
|
-
return (a, t) => (
|
|
1668
|
+
return (a, t) => (u(), v("label", {
|
|
1675
1669
|
class: X(["bs-label", e.hide ? "visually-hidden" : ""]),
|
|
1676
1670
|
"data-component": "bs-label",
|
|
1677
1671
|
"data-disabled": e.disabled,
|
|
1678
1672
|
for: e.for
|
|
1679
1673
|
}, [
|
|
1680
1674
|
m("span", null, [
|
|
1681
|
-
|
|
1675
|
+
I(a.$slots, "default")
|
|
1682
1676
|
]),
|
|
1683
|
-
e.required ? (
|
|
1677
|
+
e.required ? (u(), v(R, { key: 0 }, [
|
|
1684
1678
|
ra,
|
|
1685
1679
|
sa
|
|
1686
1680
|
], 64)) : $("", !0)
|
|
1687
1681
|
], 10, ia));
|
|
1688
1682
|
}
|
|
1689
|
-
}, da = ["data-size", "data-variant"], ua = /* @__PURE__ */ m("span", null, null, -1), ca = /* @__PURE__ */ m("span", null, null, -1), fa = /* @__PURE__ */ m("span", null, null, -1), va = /* @__PURE__ */ m("span", null, null, -1),
|
|
1683
|
+
}, da = ["data-size", "data-variant"], ua = /* @__PURE__ */ m("span", null, null, -1), ca = /* @__PURE__ */ m("span", null, null, -1), fa = /* @__PURE__ */ m("span", null, null, -1), va = /* @__PURE__ */ m("span", null, null, -1), ha = /* @__PURE__ */ m("span", { class: "visually-hidden" }, "Loading", -1), pa = [
|
|
1690
1684
|
ua,
|
|
1691
1685
|
ca,
|
|
1692
1686
|
fa,
|
|
1693
1687
|
va,
|
|
1694
|
-
|
|
1688
|
+
ha
|
|
1695
1689
|
], Mn = {
|
|
1696
1690
|
__name: "BsLoader",
|
|
1697
1691
|
props: {
|
|
@@ -1706,14 +1700,14 @@ const Et = {
|
|
|
1706
1700
|
}
|
|
1707
1701
|
},
|
|
1708
1702
|
setup(e) {
|
|
1709
|
-
return (a, t) => (
|
|
1703
|
+
return (a, t) => (u(), v("span", {
|
|
1710
1704
|
class: "bs-loader",
|
|
1711
1705
|
"data-size": e.size,
|
|
1712
1706
|
"data-variant": e.variant,
|
|
1713
1707
|
role: "status"
|
|
1714
|
-
},
|
|
1708
|
+
}, pa, 8, da));
|
|
1715
1709
|
}
|
|
1716
|
-
},
|
|
1710
|
+
}, ga = /* @__PURE__ */ m("div", { class: "bs-overlay" }, null, -1), ba = {
|
|
1717
1711
|
__name: "BsOverlay",
|
|
1718
1712
|
props: {
|
|
1719
1713
|
shown: {
|
|
@@ -1743,16 +1737,16 @@ const Et = {
|
|
|
1743
1737
|
emits: ["after-enter", "after-leave"],
|
|
1744
1738
|
setup(e, { emit: a }) {
|
|
1745
1739
|
const t = e, l = a, { transition: n } = se(t);
|
|
1746
|
-
return (o,
|
|
1747
|
-
shown:
|
|
1740
|
+
return (o, d) => (u(), A(c(de), {
|
|
1741
|
+
shown: c(n),
|
|
1748
1742
|
preloaded: e.preloaded,
|
|
1749
1743
|
duration: 75,
|
|
1750
1744
|
"enter-attribute": "data-shown",
|
|
1751
|
-
onAfterEnter:
|
|
1752
|
-
onAfterLeave:
|
|
1745
|
+
onAfterEnter: d[0] || (d[0] = (i) => l("after-enter")),
|
|
1746
|
+
onAfterLeave: d[1] || (d[1] = (i) => l("after-leave"))
|
|
1753
1747
|
}, {
|
|
1754
|
-
default:
|
|
1755
|
-
|
|
1748
|
+
default: C(() => [
|
|
1749
|
+
ga
|
|
1756
1750
|
]),
|
|
1757
1751
|
_: 1
|
|
1758
1752
|
}, 8, ["shown", "preloaded"]));
|
|
@@ -1809,41 +1803,41 @@ const Et = {
|
|
|
1809
1803
|
let o = !1;
|
|
1810
1804
|
return re(["Escape"], () => {
|
|
1811
1805
|
o && l("close", t.modalId);
|
|
1812
|
-
}), (
|
|
1813
|
-
|
|
1814
|
-
shown:
|
|
1806
|
+
}), (d, i) => (u(), v(R, null, [
|
|
1807
|
+
D(ba, {
|
|
1808
|
+
shown: c(n),
|
|
1815
1809
|
preloaded: e.preloaded,
|
|
1816
1810
|
"enter-controlled": e.enterControlled,
|
|
1817
1811
|
"enter-trigger": e.enterTrigger,
|
|
1818
1812
|
"leave-trigger": e.leaveTrigger
|
|
1819
1813
|
}, null, 8, ["shown", "preloaded", "enter-controlled", "enter-trigger", "leave-trigger"]),
|
|
1820
|
-
|
|
1821
|
-
shown:
|
|
1814
|
+
D(de, {
|
|
1815
|
+
shown: c(n),
|
|
1822
1816
|
preloaded: e.preloaded,
|
|
1823
1817
|
duration: 75,
|
|
1824
1818
|
"enter-attribute": "data-shown",
|
|
1825
|
-
onEnter: i[1] || (i[1] = (
|
|
1826
|
-
onAfterEnter: i[2] || (i[2] = (
|
|
1827
|
-
onAfterLeave: i[3] || (i[3] = (
|
|
1819
|
+
onEnter: i[1] || (i[1] = (s) => Fe(o) ? o.value = !0 : o = !0),
|
|
1820
|
+
onAfterEnter: i[2] || (i[2] = (s) => l("after-enter")),
|
|
1821
|
+
onAfterLeave: i[3] || (i[3] = (s) => l("after-leave"))
|
|
1828
1822
|
}, {
|
|
1829
|
-
default:
|
|
1823
|
+
default: C(() => [
|
|
1830
1824
|
m("div", {
|
|
1831
1825
|
id: t.modalId,
|
|
1832
1826
|
class: "bs-modal",
|
|
1833
1827
|
role: e.alert ? "alertdialog" : "dialog",
|
|
1834
1828
|
"aria-modal": "true"
|
|
1835
1829
|
}, [
|
|
1836
|
-
e.closeButton ? (
|
|
1830
|
+
e.closeButton ? (u(), v("div", ya, [
|
|
1837
1831
|
m("button", {
|
|
1838
1832
|
type: "button",
|
|
1839
1833
|
title: "Close Modal",
|
|
1840
1834
|
"aria-label": "Close Modal",
|
|
1841
|
-
onClick: i[0] || (i[0] = (
|
|
1835
|
+
onClick: i[0] || (i[0] = (s) => l("close", e.modalId))
|
|
1842
1836
|
}, [
|
|
1843
|
-
|
|
1837
|
+
D(c(oe), { class: "close-button" })
|
|
1844
1838
|
])
|
|
1845
1839
|
])) : $("", !0),
|
|
1846
|
-
|
|
1840
|
+
I(d.$slots, "default")
|
|
1847
1841
|
], 8, ma)
|
|
1848
1842
|
]),
|
|
1849
1843
|
_: 3
|
|
@@ -1945,124 +1939,124 @@ const Et = {
|
|
|
1945
1939
|
},
|
|
1946
1940
|
emits: ["selchange", "update:modelValue"],
|
|
1947
1941
|
setup(e, { emit: a }) {
|
|
1948
|
-
const t = e, l = a, n =
|
|
1949
|
-
|
|
1950
|
-
o.value ? n.value = o.value : t.variant === "results" ? n.value =
|
|
1942
|
+
const t = e, l = a, n = k(null);
|
|
1943
|
+
N(() => {
|
|
1944
|
+
o.value ? n.value = o.value : t.variant === "results" ? n.value = M.value[0] : n.value = 1;
|
|
1951
1945
|
});
|
|
1952
|
-
const o =
|
|
1953
|
-
|
|
1954
|
-
n.value =
|
|
1955
|
-
}),
|
|
1956
|
-
n.value =
|
|
1957
|
-
}),
|
|
1958
|
-
|
|
1946
|
+
const o = p(() => t.modelValue || t.selection);
|
|
1947
|
+
V(() => t.selection, (P) => {
|
|
1948
|
+
n.value = P;
|
|
1949
|
+
}), V(() => t.modelValue, (P) => {
|
|
1950
|
+
n.value = P;
|
|
1951
|
+
}), V(n, (P, w) => {
|
|
1952
|
+
w !== null && (l("selchange", P), l("update:modelValue", P));
|
|
1959
1953
|
});
|
|
1960
|
-
const
|
|
1954
|
+
const d = p(() => {
|
|
1961
1955
|
if (t.variant === "group")
|
|
1962
1956
|
return Math.ceil(t.itemsCount / t.itemsPerGroup);
|
|
1963
1957
|
if (t.variant === "base")
|
|
1964
1958
|
return t.pageCount;
|
|
1965
|
-
}), i =
|
|
1966
|
-
function
|
|
1959
|
+
}), i = p(() => t.variant === "base" ? t.centerDisplay === "text" ? "group" : void 0 : t.variant);
|
|
1960
|
+
function s() {
|
|
1967
1961
|
n.value = 1;
|
|
1968
1962
|
}
|
|
1969
|
-
function
|
|
1963
|
+
function r() {
|
|
1970
1964
|
n.value = Math.max(n.value - 1, 1);
|
|
1971
1965
|
}
|
|
1972
|
-
function
|
|
1966
|
+
function f() {
|
|
1973
1967
|
n.value = Math.min(
|
|
1974
1968
|
n.value + 1,
|
|
1975
|
-
|
|
1969
|
+
d.value
|
|
1976
1970
|
);
|
|
1977
1971
|
}
|
|
1978
|
-
function
|
|
1979
|
-
n.value =
|
|
1972
|
+
function b() {
|
|
1973
|
+
n.value = d.value;
|
|
1980
1974
|
}
|
|
1981
|
-
const
|
|
1975
|
+
const g = p(() => {
|
|
1982
1976
|
if (t.pageCount <= t.pageRange)
|
|
1983
1977
|
return [...Array(t.pageCount + 1).keys()].slice(1);
|
|
1984
|
-
const
|
|
1985
|
-
let S = n.value -
|
|
1986
|
-
S < 1 && (q += 1 - S, S = 1), q > t.pageCount && (S -= q - t.pageCount, q = t.pageCount), S = Math.max(S, 2), q = Math.min(q, t.pageCount - 1), S > 2 &&
|
|
1987
|
-
for (let
|
|
1988
|
-
|
|
1989
|
-
return q < t.pageCount - 1 &&
|
|
1990
|
-
}), y =
|
|
1991
|
-
const
|
|
1992
|
-
return `${t.centerLabel ?? "Results"} ${
|
|
1993
|
-
}),
|
|
1994
|
-
return (
|
|
1978
|
+
const P = [1], w = (t.pageRange - 1) / 2;
|
|
1979
|
+
let S = n.value - w, q = n.value + w;
|
|
1980
|
+
S < 1 && (q += 1 - S, S = 1), q > t.pageCount && (S -= q - t.pageCount, q = t.pageCount), S = Math.max(S, 2), q = Math.min(q, t.pageCount - 1), S > 2 && P.push(t.breakText);
|
|
1981
|
+
for (let j = S; j <= q; j++)
|
|
1982
|
+
P.push(j);
|
|
1983
|
+
return q < t.pageCount - 1 && P.push(t.breakText), P.push(t.pageCount), P;
|
|
1984
|
+
}), y = p(() => `${t.centerLabel ?? "Page"} ${n.value} of ${d.value}`), L = p(() => {
|
|
1985
|
+
const P = (n.value - 1) * t.itemsPerGroup + 1, w = Math.min(P - 1 + t.itemsPerGroup, t.itemsCount);
|
|
1986
|
+
return `${t.centerLabel ?? "Results"} ${P} - ${w} of ${t.itemsCount}`;
|
|
1987
|
+
}), M = p(() => t.resultsIncrements.split(",").map((P) => parseInt(P)));
|
|
1988
|
+
return (P, w) => (u(), v("div", {
|
|
1995
1989
|
class: "bs-pagination",
|
|
1996
1990
|
"data-variant": i.value,
|
|
1997
1991
|
"data-fixed": t.fixed
|
|
1998
1992
|
}, [
|
|
1999
|
-
e.variant === "base" || e.variant === "group" ? (
|
|
2000
|
-
e.showFirstLastButtons ? (
|
|
1993
|
+
e.variant === "base" || e.variant === "group" ? (u(), v("div", $a, [
|
|
1994
|
+
e.showFirstLastButtons ? (u(), v("button", {
|
|
2001
1995
|
key: 0,
|
|
2002
1996
|
type: "button",
|
|
2003
1997
|
class: X(e.firstPageText ? "bs-pagination-word-caret" : void 0),
|
|
2004
1998
|
title: e.firstPageText,
|
|
2005
1999
|
disabled: n.value === 1,
|
|
2006
|
-
onClick:
|
|
2000
|
+
onClick: s
|
|
2007
2001
|
}, [
|
|
2008
|
-
|
|
2009
|
-
e.firstPageText ? (
|
|
2002
|
+
D(c(Ze)),
|
|
2003
|
+
e.firstPageText ? (u(), v("span", wa, T(e.firstPageText), 1)) : $("", !0)
|
|
2010
2004
|
], 10, Sa)) : $("", !0),
|
|
2011
2005
|
m("button", {
|
|
2012
2006
|
type: "button",
|
|
2013
2007
|
class: X(e.prevPageText ? "bs-pagination-word-caret" : void 0),
|
|
2014
2008
|
title: e.prevPageText,
|
|
2015
2009
|
disabled: n.value === 1,
|
|
2016
|
-
onClick:
|
|
2010
|
+
onClick: r
|
|
2017
2011
|
}, [
|
|
2018
|
-
|
|
2019
|
-
e.prevPageText ? (
|
|
2012
|
+
D(c(Je)),
|
|
2013
|
+
e.prevPageText ? (u(), v("span", Ia, T(e.prevPageText), 1)) : $("", !0)
|
|
2020
2014
|
], 10, ka)
|
|
2021
2015
|
])) : $("", !0),
|
|
2022
|
-
e.variant === "base" && e.centerDisplay === "numbers" ? (
|
|
2023
|
-
(
|
|
2016
|
+
e.variant === "base" && e.centerDisplay === "numbers" ? (u(), v("div", Ta, [
|
|
2017
|
+
(u(!0), v(R, null, Y(g.value, (S) => (u(), v("button", {
|
|
2024
2018
|
key: `page-${S}-button`,
|
|
2025
2019
|
type: "button",
|
|
2026
2020
|
title: `Page ${S}`,
|
|
2027
2021
|
"data-selected": S === n.value,
|
|
2028
2022
|
onClick: (q) => n.value = S
|
|
2029
|
-
},
|
|
2023
|
+
}, T(S), 9, xa))), 128))
|
|
2030
2024
|
])) : $("", !0),
|
|
2031
|
-
t.variant === "base" && t.centerDisplay === "text" ? (
|
|
2032
|
-
t.variant === "group" ? (
|
|
2033
|
-
t.variant === "results" ? (
|
|
2025
|
+
t.variant === "base" && t.centerDisplay === "text" ? (u(), v("span", Ca, T(y.value), 1)) : $("", !0),
|
|
2026
|
+
t.variant === "group" ? (u(), v("span", Aa, T(L.value), 1)) : $("", !0),
|
|
2027
|
+
t.variant === "results" ? (u(), v(R, { key: 4 }, [
|
|
2034
2028
|
La,
|
|
2035
2029
|
m("div", Pa, [
|
|
2036
|
-
(
|
|
2030
|
+
(u(!0), v(R, null, Y(M.value, (S) => (u(), v("button", {
|
|
2037
2031
|
type: "button",
|
|
2038
2032
|
key: `results-${S}`,
|
|
2039
2033
|
"data-selected": S === n.value,
|
|
2040
2034
|
disabled: n.value === S,
|
|
2041
2035
|
onClick: (q) => n.value = S
|
|
2042
|
-
},
|
|
2036
|
+
}, T(S), 9, Da))), 128))
|
|
2043
2037
|
])
|
|
2044
2038
|
], 64)) : $("", !0),
|
|
2045
|
-
e.variant === "base" || e.variant === "group" ? (
|
|
2039
|
+
e.variant === "base" || e.variant === "group" ? (u(), v("div", Ea, [
|
|
2046
2040
|
m("button", {
|
|
2047
2041
|
type: "button",
|
|
2048
2042
|
class: X(e.nextPageText ? "bs-pagination-word-caret" : void 0),
|
|
2049
2043
|
title: e.nextPageText,
|
|
2050
|
-
disabled: n.value ===
|
|
2051
|
-
onClick:
|
|
2044
|
+
disabled: n.value === d.value,
|
|
2045
|
+
onClick: f
|
|
2052
2046
|
}, [
|
|
2053
|
-
e.nextPageText ? (
|
|
2054
|
-
|
|
2047
|
+
e.nextPageText ? (u(), v("span", qa, T(e.nextPageText), 1)) : $("", !0),
|
|
2048
|
+
D(c(Qe))
|
|
2055
2049
|
], 10, Va),
|
|
2056
|
-
e.showFirstLastButtons ? (
|
|
2050
|
+
e.showFirstLastButtons ? (u(), v("button", {
|
|
2057
2051
|
key: 0,
|
|
2058
2052
|
type: "button",
|
|
2059
2053
|
class: X(e.lastPageText ? "bs-pagination-word-caret" : void 0),
|
|
2060
2054
|
title: e.lastPageText,
|
|
2061
|
-
disabled: n.value ===
|
|
2062
|
-
onClick:
|
|
2055
|
+
disabled: n.value === d.value,
|
|
2056
|
+
onClick: b
|
|
2063
2057
|
}, [
|
|
2064
|
-
e.lastPageText ? (
|
|
2065
|
-
|
|
2058
|
+
e.lastPageText ? (u(), v("span", Ma, T(e.lastPageText), 1)) : $("", !0),
|
|
2059
|
+
D(c(_e))
|
|
2066
2060
|
], 10, za)) : $("", !0)
|
|
2067
2061
|
])) : $("", !0)
|
|
2068
2062
|
], 8, Ba));
|
|
@@ -2084,8 +2078,8 @@ const Et = {
|
|
|
2084
2078
|
}
|
|
2085
2079
|
},
|
|
2086
2080
|
setup(e) {
|
|
2087
|
-
const a = e, { onLinkClick: t } = ie(a), l =
|
|
2088
|
-
return (
|
|
2081
|
+
const a = e, { onLinkClick: t } = ie(a), l = O(), { rootTag: n, attrsToBind: o } = he(a, l, "span");
|
|
2082
|
+
return (d, i) => (u(), A(U(c(n)), E({
|
|
2089
2083
|
class: "bs-pill",
|
|
2090
2084
|
"data-active": e.active,
|
|
2091
2085
|
"data-component": "bs-pill",
|
|
@@ -2093,9 +2087,9 @@ const Et = {
|
|
|
2093
2087
|
"data-variant": e.variant || void 0,
|
|
2094
2088
|
disabled: e.disabled,
|
|
2095
2089
|
href: e.href
|
|
2096
|
-
},
|
|
2097
|
-
default:
|
|
2098
|
-
|
|
2090
|
+
}, c(o), { onClick: c(t) }), {
|
|
2091
|
+
default: C(() => [
|
|
2092
|
+
I(d.$slots, "default")
|
|
2099
2093
|
]),
|
|
2100
2094
|
_: 3
|
|
2101
2095
|
}, 16, ["data-active", "data-status", "data-variant", "disabled", "href", "onClick"]));
|
|
@@ -2128,21 +2122,21 @@ const Et = {
|
|
|
2128
2122
|
},
|
|
2129
2123
|
emits: ["action-toggled"],
|
|
2130
2124
|
setup(e, { emit: a }) {
|
|
2131
|
-
const t = e, l = a, { onLinkClick: n } = ie(t), o =
|
|
2132
|
-
return (
|
|
2125
|
+
const t = e, l = a, { onLinkClick: n } = ie(t), o = p(() => t.href ? "a" : "div");
|
|
2126
|
+
return (d, i) => (u(), A(U(o.value), {
|
|
2133
2127
|
class: "bs-profile",
|
|
2134
2128
|
href: e.href,
|
|
2135
2129
|
"data-layout": e.layout,
|
|
2136
|
-
onClick:
|
|
2130
|
+
onClick: c(n)
|
|
2137
2131
|
}, {
|
|
2138
|
-
default:
|
|
2139
|
-
|
|
2132
|
+
default: C(() => [
|
|
2133
|
+
D(c(Ka), {
|
|
2140
2134
|
src: e.imageSrc,
|
|
2141
2135
|
size: e.imageSize,
|
|
2142
2136
|
initials: e.initials,
|
|
2143
2137
|
"profile-name": e.profileName
|
|
2144
2138
|
}, null, 8, ["src", "size", "initials", "profile-name"]),
|
|
2145
|
-
|
|
2139
|
+
D(c(Fa), {
|
|
2146
2140
|
"profile-name": e.profileName,
|
|
2147
2141
|
company: e.company,
|
|
2148
2142
|
"job-title": e.jobTitle,
|
|
@@ -2151,13 +2145,13 @@ const Et = {
|
|
|
2151
2145
|
"action-icon": e.actionIcon,
|
|
2152
2146
|
"misc-meta": e.miscMeta,
|
|
2153
2147
|
"misc-meta-icon": e.miscMetaIcon,
|
|
2154
|
-
onActionToggled: i[0] || (i[0] = (
|
|
2148
|
+
onActionToggled: i[0] || (i[0] = (s) => l("action-toggled"))
|
|
2155
2149
|
}, {
|
|
2156
|
-
action:
|
|
2157
|
-
|
|
2150
|
+
action: C(() => [
|
|
2151
|
+
I(d.$slots, "action")
|
|
2158
2152
|
]),
|
|
2159
|
-
misc:
|
|
2160
|
-
|
|
2153
|
+
misc: C(() => [
|
|
2154
|
+
I(d.$slots, "misc")
|
|
2161
2155
|
]),
|
|
2162
2156
|
_: 3
|
|
2163
2157
|
}, 8, ["profile-name", "company", "job-title", "email", "action", "action-icon", "misc-meta", "misc-meta-icon"])
|
|
@@ -2172,7 +2166,7 @@ const Et = {
|
|
|
2172
2166
|
}, Na = {
|
|
2173
2167
|
key: 1,
|
|
2174
2168
|
"data-weight": "bold"
|
|
2175
|
-
}, Wa = { key: 2 },
|
|
2169
|
+
}, Wa = { key: 2 }, ja = { key: 3 }, Ga = {
|
|
2176
2170
|
key: 4,
|
|
2177
2171
|
"data-icon": "true"
|
|
2178
2172
|
}, Fa = {
|
|
@@ -2193,28 +2187,28 @@ const Et = {
|
|
|
2193
2187
|
emits: ["action-toggled"],
|
|
2194
2188
|
setup(e, { emit: a }) {
|
|
2195
2189
|
const t = e, l = a, { icon: n } = le(t.actionIcon), { icon: o } = le(t.miscMetaIcon);
|
|
2196
|
-
function
|
|
2190
|
+
function d(i) {
|
|
2197
2191
|
i.target.tagName === "BUTTON" && (i.preventDefault(), i.stopImmediatePropagation(), l("action-toggled"));
|
|
2198
2192
|
}
|
|
2199
|
-
return (i,
|
|
2200
|
-
e.action || i.$slots.action ? (
|
|
2193
|
+
return (i, s) => (u(), v("div", Ra, [
|
|
2194
|
+
e.action || i.$slots.action ? (u(), v("button", {
|
|
2201
2195
|
key: 0,
|
|
2202
2196
|
"data-icon": "true",
|
|
2203
|
-
onClick:
|
|
2197
|
+
onClick: d
|
|
2204
2198
|
}, [
|
|
2205
|
-
|
|
2206
|
-
e.actionIcon ? (
|
|
2207
|
-
W(" " +
|
|
2199
|
+
I(i.$slots, "action", {}, () => [
|
|
2200
|
+
e.actionIcon ? (u(), A(U(c(n) ? c(n) : "span"), { key: 0 })) : $("", !0),
|
|
2201
|
+
W(" " + T(e.action), 1)
|
|
2208
2202
|
])
|
|
2209
2203
|
])) : $("", !0),
|
|
2210
|
-
m("span", Oa,
|
|
2211
|
-
e.company ? (
|
|
2212
|
-
e.jobTitle ? (
|
|
2213
|
-
e.email ? (
|
|
2214
|
-
e.miscMeta || i.$slots.misc ? (
|
|
2215
|
-
|
|
2216
|
-
e.miscMetaIcon ? (
|
|
2217
|
-
W(" " +
|
|
2204
|
+
m("span", Oa, T(e.profileName), 1),
|
|
2205
|
+
e.company ? (u(), v("span", Na, T(e.company), 1)) : $("", !0),
|
|
2206
|
+
e.jobTitle ? (u(), v("span", Wa, T(e.jobTitle), 1)) : $("", !0),
|
|
2207
|
+
e.email ? (u(), v("span", ja, T(e.email), 1)) : $("", !0),
|
|
2208
|
+
e.miscMeta || i.$slots.misc ? (u(), v("span", Ga, [
|
|
2209
|
+
I(i.$slots, "misc", {}, () => [
|
|
2210
|
+
e.miscMetaIcon ? (u(), A(U(c(o) ? c(o) : "span"), { key: 0 })) : $("", !0),
|
|
2211
|
+
W(" " + T(e.miscMeta), 1)
|
|
2218
2212
|
])
|
|
2219
2213
|
])) : $("", !0)
|
|
2220
2214
|
]));
|
|
@@ -2234,22 +2228,22 @@ const Et = {
|
|
|
2234
2228
|
}
|
|
2235
2229
|
},
|
|
2236
2230
|
setup(e) {
|
|
2237
|
-
const a = e, t =
|
|
2238
|
-
return
|
|
2231
|
+
const a = e, t = k(!1), l = k(!!a.src);
|
|
2232
|
+
return N(() => t.value = !0), (n, o) => (u(), v("div", {
|
|
2239
2233
|
class: "bs-profile-img",
|
|
2240
2234
|
"data-img-size": e.size,
|
|
2241
2235
|
"data-initials": e.initials,
|
|
2242
2236
|
"data-no-img": !l.value
|
|
2243
2237
|
}, [
|
|
2244
|
-
l.value && t.value ? (
|
|
2238
|
+
l.value && t.value ? (u(), v("img", {
|
|
2245
2239
|
key: 0,
|
|
2246
2240
|
src: e.src,
|
|
2247
2241
|
alt: e.profileName,
|
|
2248
|
-
onError: o[0] || (o[0] = (
|
|
2242
|
+
onError: o[0] || (o[0] = (d) => l.value = !1)
|
|
2249
2243
|
}, null, 40, Ha)) : $("", !0)
|
|
2250
2244
|
], 8, Ua));
|
|
2251
2245
|
}
|
|
2252
|
-
}, Ya = ["data-size"], Xa = ["checked", "disabled", "id", "required", "value", "data-error"],
|
|
2246
|
+
}, Ya = ["data-size"], Xa = ["checked", "disabled", "id", "required", "value", "data-error"], jn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2253
2247
|
__name: "BsRadio",
|
|
2254
2248
|
props: {
|
|
2255
2249
|
label: {
|
|
@@ -2293,32 +2287,32 @@ const Et = {
|
|
|
2293
2287
|
},
|
|
2294
2288
|
emits: ["update:modelValue"],
|
|
2295
2289
|
setup(e, { emit: a }) {
|
|
2296
|
-
const t = e, l =
|
|
2297
|
-
return (
|
|
2290
|
+
const t = e, l = O(), [n] = H(), { toChild: o, toRoot: d } = Z(t, l), i = p(() => t.inputId || n.value), s = p(() => t.checked || t.modelValue && t.modelValue === t.value);
|
|
2291
|
+
return (r, f) => (u(), v("div", E({
|
|
2298
2292
|
class: "bs-boolean",
|
|
2299
2293
|
"data-component": "bs-radio",
|
|
2300
2294
|
"data-size": e.size
|
|
2301
|
-
},
|
|
2302
|
-
m("input",
|
|
2303
|
-
checked:
|
|
2295
|
+
}, c(d)), [
|
|
2296
|
+
m("input", E({
|
|
2297
|
+
checked: s.value,
|
|
2304
2298
|
disabled: e.disabled,
|
|
2305
2299
|
id: i.value,
|
|
2306
2300
|
required: e.required,
|
|
2307
2301
|
type: "radio",
|
|
2308
2302
|
value: e.value,
|
|
2309
2303
|
"data-error": e.error
|
|
2310
|
-
},
|
|
2311
|
-
onChange:
|
|
2304
|
+
}, c(o), {
|
|
2305
|
+
onChange: f[0] || (f[0] = (b) => r.$emit("update:modelValue", b.target.value))
|
|
2312
2306
|
}), null, 16, Xa),
|
|
2313
|
-
e.label ||
|
|
2307
|
+
e.label || r.$slots.label ? (u(), A(c(_), {
|
|
2314
2308
|
key: 0,
|
|
2315
2309
|
for: i.value,
|
|
2316
2310
|
disabled: e.disabled,
|
|
2317
2311
|
required: e.required
|
|
2318
2312
|
}, {
|
|
2319
|
-
default:
|
|
2320
|
-
|
|
2321
|
-
W(
|
|
2313
|
+
default: C(() => [
|
|
2314
|
+
I(r.$slots, "label", {}, () => [
|
|
2315
|
+
W(T(e.label), 1)
|
|
2322
2316
|
])
|
|
2323
2317
|
]),
|
|
2324
2318
|
_: 3
|
|
@@ -2338,8 +2332,8 @@ const Et = {
|
|
|
2338
2332
|
},
|
|
2339
2333
|
emits: ["update:modelValue"],
|
|
2340
2334
|
setup(e, { emit: a }) {
|
|
2341
|
-
const t = e, l =
|
|
2342
|
-
return (n, o) => (
|
|
2335
|
+
const t = e, l = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
2336
|
+
return (n, o) => (u(), v("select", E({
|
|
2343
2337
|
id: n.$attrs.id || e.inputId,
|
|
2344
2338
|
class: "bs-select",
|
|
2345
2339
|
"data-component": "bs-select",
|
|
@@ -2348,12 +2342,12 @@ const Et = {
|
|
|
2348
2342
|
"data-error": e.error,
|
|
2349
2343
|
value: e.value || e.modelValue
|
|
2350
2344
|
}, l.value, {
|
|
2351
|
-
onChange: o[0] || (o[0] = (
|
|
2345
|
+
onChange: o[0] || (o[0] = (d) => n.$emit("update:modelValue", d.target.value))
|
|
2352
2346
|
}), [
|
|
2353
|
-
|
|
2347
|
+
I(n.$slots, "default")
|
|
2354
2348
|
], 16, Za));
|
|
2355
2349
|
}
|
|
2356
|
-
}, Qa = ["selected", "disabled"], _a = ["disabled", "selected", "value"],
|
|
2350
|
+
}, Qa = ["selected", "disabled"], _a = ["disabled", "selected", "value"], Gn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2357
2351
|
__name: "BsSelectField",
|
|
2358
2352
|
props: {
|
|
2359
2353
|
data: {
|
|
@@ -2379,10 +2373,7 @@ const Et = {
|
|
|
2379
2373
|
/** Pass id for the input element. Will also be applied to label attribute. */
|
|
2380
2374
|
inputId: String,
|
|
2381
2375
|
/** Pass label text. */
|
|
2382
|
-
label: {
|
|
2383
|
-
type: String,
|
|
2384
|
-
required: !0
|
|
2385
|
-
},
|
|
2376
|
+
label: { type: String },
|
|
2386
2377
|
/** Placeholder attribute for `<input>`. */
|
|
2387
2378
|
placeholder: String,
|
|
2388
2379
|
/** Sets the required state on the input, append required* indicator to label. */
|
|
@@ -2396,56 +2387,56 @@ const Et = {
|
|
|
2396
2387
|
modelValue: [String, Number]
|
|
2397
2388
|
},
|
|
2398
2389
|
setup(e) {
|
|
2399
|
-
const a = e, t =
|
|
2400
|
-
var
|
|
2401
|
-
return ((
|
|
2390
|
+
const a = e, t = O(), [l, n] = H(2), { toChild: o, toRoot: d } = Z(a, t), i = p(() => {
|
|
2391
|
+
var b, g;
|
|
2392
|
+
return ((g = (b = a.hints) == null ? void 0 : b.join) == null ? void 0 : g.call(b, `
|
|
2402
2393
|
`)) || a.hints;
|
|
2403
|
-
}),
|
|
2404
|
-
return (
|
|
2405
|
-
e.label ||
|
|
2394
|
+
}), s = p(() => a.error && a.errorMsg || a.hint || i.value || void 0), r = p(() => a.inputId || l.value), f = p(() => a.value || a.modelValue);
|
|
2395
|
+
return (b, g) => (u(), v("div", E({ "data-component": "bs-select-field" }, c(d)), [
|
|
2396
|
+
e.label || b.$slots.label ? (u(), A(c(_), {
|
|
2406
2397
|
key: 0,
|
|
2407
|
-
for:
|
|
2398
|
+
for: r.value,
|
|
2408
2399
|
disabled: e.disabled,
|
|
2409
2400
|
required: e.required
|
|
2410
2401
|
}, {
|
|
2411
|
-
default:
|
|
2412
|
-
|
|
2413
|
-
W(
|
|
2402
|
+
default: C(() => [
|
|
2403
|
+
I(b.$slots, "label", {}, () => [
|
|
2404
|
+
W(T(e.label), 1)
|
|
2414
2405
|
])
|
|
2415
2406
|
]),
|
|
2416
2407
|
_: 3
|
|
2417
2408
|
}, 8, ["for", "disabled", "required"])) : $("", !0),
|
|
2418
|
-
|
|
2409
|
+
D(c(Ja), E({
|
|
2419
2410
|
disabled: e.disabled,
|
|
2420
2411
|
error: e.error,
|
|
2421
|
-
"hint-id":
|
|
2422
|
-
"input-id":
|
|
2412
|
+
"hint-id": c(n),
|
|
2413
|
+
"input-id": r.value,
|
|
2423
2414
|
required: e.required,
|
|
2424
|
-
value:
|
|
2425
|
-
"onUpdate:modelValue":
|
|
2426
|
-
},
|
|
2427
|
-
default:
|
|
2415
|
+
value: f.value,
|
|
2416
|
+
"onUpdate:modelValue": g[0] || (g[0] = (y) => b.$emit("update:modelValue", y))
|
|
2417
|
+
}, c(o)), {
|
|
2418
|
+
default: C(() => [
|
|
2428
2419
|
m("option", {
|
|
2429
|
-
selected: !
|
|
2420
|
+
selected: !f.value,
|
|
2430
2421
|
value: "",
|
|
2431
|
-
disabled: !!
|
|
2432
|
-
},
|
|
2433
|
-
(
|
|
2422
|
+
disabled: !!f.value
|
|
2423
|
+
}, T(e.placeholder), 9, Qa),
|
|
2424
|
+
(u(!0), v(R, null, Y(e.data, (y) => (u(), v("option", {
|
|
2434
2425
|
key: y.value,
|
|
2435
2426
|
disabled: y.disabled,
|
|
2436
|
-
selected:
|
|
2427
|
+
selected: f.value === y.value,
|
|
2437
2428
|
value: y.value
|
|
2438
|
-
},
|
|
2429
|
+
}, T(y.label), 9, _a))), 128))
|
|
2439
2430
|
]),
|
|
2440
2431
|
_: 1
|
|
2441
2432
|
}, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
|
|
2442
|
-
|
|
2433
|
+
s.value ? (u(), A(pe, {
|
|
2443
2434
|
key: 1,
|
|
2444
2435
|
"data-disabled": e.disabled,
|
|
2445
2436
|
error: e.error,
|
|
2446
2437
|
"error-msg": e.errorMsg,
|
|
2447
2438
|
hint: e.hint || i.value,
|
|
2448
|
-
"hint-id":
|
|
2439
|
+
"hint-id": c(n)
|
|
2449
2440
|
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : $("", !0)
|
|
2450
2441
|
], 16));
|
|
2451
2442
|
}
|
|
@@ -2495,21 +2486,21 @@ const Et = {
|
|
|
2495
2486
|
},
|
|
2496
2487
|
emits: ["update:modelValue"],
|
|
2497
2488
|
setup(e, { emit: a }) {
|
|
2498
|
-
const t = e, l = a, n =
|
|
2499
|
-
return (
|
|
2489
|
+
const t = e, l = a, n = O(), [o] = H(), { toChild: d, toRoot: i } = Z(t, n), s = p(() => t.inputId || o.value), r = p(() => t.checked || t.modelValue);
|
|
2490
|
+
return (f, b) => (u(), v("div", E({
|
|
2500
2491
|
class: "bs-boolean",
|
|
2501
2492
|
"data-component": "bs-switch",
|
|
2502
2493
|
"data-size": e.size
|
|
2503
|
-
},
|
|
2504
|
-
e.label ||
|
|
2494
|
+
}, c(i)), [
|
|
2495
|
+
e.label || f.$slots.label ? (u(), A(c(_), {
|
|
2505
2496
|
key: 0,
|
|
2506
|
-
for:
|
|
2497
|
+
for: s.value,
|
|
2507
2498
|
disabled: e.disabled,
|
|
2508
2499
|
hide: e.hideLabel
|
|
2509
2500
|
}, {
|
|
2510
|
-
default:
|
|
2511
|
-
|
|
2512
|
-
W(
|
|
2501
|
+
default: C(() => [
|
|
2502
|
+
I(f.$slots, "label", {}, () => [
|
|
2503
|
+
W(T(e.label), 1)
|
|
2513
2504
|
])
|
|
2514
2505
|
]),
|
|
2515
2506
|
_: 3
|
|
@@ -2520,13 +2511,13 @@ const Et = {
|
|
|
2520
2511
|
"data-pending": e.pending,
|
|
2521
2512
|
"data-size": e.size
|
|
2522
2513
|
}, [
|
|
2523
|
-
m("input",
|
|
2524
|
-
checked:
|
|
2514
|
+
m("input", E({
|
|
2515
|
+
checked: r.value,
|
|
2525
2516
|
disabled: e.disabled,
|
|
2526
|
-
id:
|
|
2517
|
+
id: s.value,
|
|
2527
2518
|
type: "checkbox"
|
|
2528
|
-
},
|
|
2529
|
-
onChange:
|
|
2519
|
+
}, c(d), {
|
|
2520
|
+
onChange: b[0] || (b[0] = (g) => l("update:modelValue", g.target.checked))
|
|
2530
2521
|
}), null, 16, an),
|
|
2531
2522
|
m("span", {
|
|
2532
2523
|
"aria-hidden": "true",
|
|
@@ -2553,18 +2544,18 @@ const Et = {
|
|
|
2553
2544
|
},
|
|
2554
2545
|
emits: ["tabClick"],
|
|
2555
2546
|
setup(e, { emit: a }) {
|
|
2556
|
-
const t = e, l =
|
|
2557
|
-
function i(
|
|
2558
|
-
(
|
|
2547
|
+
const t = e, l = O(), n = k(), o = p(() => t.activeTabId === l.id), d = p(() => t.panelId || `${l.id}-panel`);
|
|
2548
|
+
function i(r) {
|
|
2549
|
+
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), s());
|
|
2559
2550
|
}
|
|
2560
|
-
function
|
|
2551
|
+
function s() {
|
|
2561
2552
|
if (t.activeTabId !== l.id) {
|
|
2562
|
-
const
|
|
2563
|
-
n.value.dispatchEvent(
|
|
2553
|
+
const r = new CustomEvent("tabClick", { detail: l.id, bubbles: !0 });
|
|
2554
|
+
n.value.dispatchEvent(r);
|
|
2564
2555
|
}
|
|
2565
2556
|
}
|
|
2566
|
-
return (
|
|
2567
|
-
"aria-controls":
|
|
2557
|
+
return (r, f) => (u(), v("div", {
|
|
2558
|
+
"aria-controls": d.value,
|
|
2568
2559
|
"aria-selected": o.value ? "true" : "false",
|
|
2569
2560
|
"data-hidden": e.hidden || void 0,
|
|
2570
2561
|
"data-component": "bs-tab",
|
|
@@ -2572,10 +2563,10 @@ const Et = {
|
|
|
2572
2563
|
tabindex: "0",
|
|
2573
2564
|
ref_key: "hostEl",
|
|
2574
2565
|
ref: n,
|
|
2575
|
-
onClick:
|
|
2566
|
+
onClick: s,
|
|
2576
2567
|
onKeydown: i
|
|
2577
2568
|
}, [
|
|
2578
|
-
|
|
2569
|
+
I(r.$slots, "default")
|
|
2579
2570
|
], 40, ln));
|
|
2580
2571
|
}
|
|
2581
2572
|
}, on = ["id", "data-resizing"], rn = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], sn = 73, dn = 20, un = 16, Hn = {
|
|
@@ -2589,52 +2580,52 @@ const Et = {
|
|
|
2589
2580
|
},
|
|
2590
2581
|
emits: ["tabChange", "update:modelValue"],
|
|
2591
2582
|
setup(e, { emit: a }) {
|
|
2592
|
-
const t = e, l = a, n =
|
|
2583
|
+
const t = e, l = a, n = k(!1), o = k(!1), d = k([]), i = k(!1), s = k(!1), r = k(), f = k([]), b = k(!1), g = k([]), y = k(), L = k(), M = k(), [P, w] = H(2), S = p(() => t.activeTabId ? g.value.findIndex((h) => h.id === t.activeTabId) : 0), q = p(() => d.value.some((h) => h.id === t.activeTabId)), j = p(() => `${w.value}-options`), ee = p(() => `${w.value}-toggle`), J = p(() => {
|
|
2593
2584
|
var h;
|
|
2594
|
-
return q.value ? (h =
|
|
2595
|
-
}), ke =
|
|
2596
|
-
var B,
|
|
2585
|
+
return q.value ? (h = g.value[S.value]) == null ? void 0 : h.textContent : "More";
|
|
2586
|
+
}), ke = p(() => q.value ? f.value[S.value] - f.value[S.value - 1] + dn : sn), Q = p(() => {
|
|
2587
|
+
var B, x;
|
|
2597
2588
|
let h = [];
|
|
2598
2589
|
if (typeof window > "u")
|
|
2599
2590
|
return h;
|
|
2600
|
-
for (let
|
|
2601
|
-
if (((B =
|
|
2591
|
+
for (let z of g.value) {
|
|
2592
|
+
if (((B = z.dataset) == null ? void 0 : B.hidden) === "true" || ((x = z.dataset) == null ? void 0 : x.hidden) === "" || z.getAttribute("tabindex") === "-1")
|
|
2602
2593
|
break;
|
|
2603
|
-
h.push(
|
|
2594
|
+
h.push(z);
|
|
2604
2595
|
}
|
|
2605
|
-
return
|
|
2596
|
+
return s.value && h.push(r.value.querySelector(".bs-tab-list-toggle")), h;
|
|
2606
2597
|
});
|
|
2607
2598
|
function ue() {
|
|
2608
2599
|
var K;
|
|
2609
|
-
let h = !1, B,
|
|
2610
|
-
if ((K =
|
|
2611
|
-
for (let F = 0; F <
|
|
2612
|
-
if (B =
|
|
2613
|
-
B.dataset.hidden = "true",
|
|
2600
|
+
let h = !1, B, x = 0, z = !1, G = [];
|
|
2601
|
+
if ((K = g.value) != null && K.length) {
|
|
2602
|
+
for (let F = 0; F < g.value.length; F++) {
|
|
2603
|
+
if (B = g.value[F], B.setAttribute("tabindex", "-1"), z && F !== S.value) {
|
|
2604
|
+
B.dataset.hidden = "true", G.push(B);
|
|
2614
2605
|
continue;
|
|
2615
2606
|
}
|
|
2616
|
-
if (
|
|
2617
|
-
B.dataset.hidden = "true",
|
|
2607
|
+
if (x = F < g.value.length - 1 ? M.value - ke.value : M.value, f.value[F] > x) {
|
|
2608
|
+
B.dataset.hidden = "true", G.push(B), h = !0, z = !0;
|
|
2618
2609
|
continue;
|
|
2619
2610
|
}
|
|
2620
2611
|
B.dataset.hidden = "false", B.setAttribute("tabindex", "0");
|
|
2621
2612
|
}
|
|
2622
|
-
|
|
2623
|
-
Ve(),
|
|
2624
|
-
},
|
|
2613
|
+
s.value = h, d.value = G, n.value || Ue(() => n.value = !0), setTimeout(() => {
|
|
2614
|
+
Ve(), b.value = !0;
|
|
2615
|
+
}, b.value ? 0 : 1e3);
|
|
2625
2616
|
}
|
|
2626
2617
|
}
|
|
2627
2618
|
function ce(h) {
|
|
2628
2619
|
l("tabChange", h), l("update:modelValue", h);
|
|
2629
2620
|
}
|
|
2630
2621
|
function Ie(h) {
|
|
2631
|
-
var
|
|
2632
|
-
const B = (K = (
|
|
2633
|
-
return B || (h === 0 ?
|
|
2622
|
+
var z, G, K;
|
|
2623
|
+
const B = (K = (G = (z = g.value[h]) == null ? void 0 : z.getBoundingClientRect) == null ? void 0 : G.call(z)) == null ? void 0 : K.width;
|
|
2624
|
+
return B || (h === 0 ? f.value[0] : f.value[h] - f.value[h - 1]) || 0;
|
|
2634
2625
|
}
|
|
2635
2626
|
function Te() {
|
|
2636
2627
|
var h;
|
|
2637
|
-
(h =
|
|
2628
|
+
(h = g.value[S.value]) == null || h.setAttribute("aria-selected", "true"), ue();
|
|
2638
2629
|
}
|
|
2639
2630
|
function xe() {
|
|
2640
2631
|
var h;
|
|
@@ -2653,113 +2644,115 @@ const Et = {
|
|
|
2653
2644
|
const B = h.target.closest('[role="tab"]');
|
|
2654
2645
|
if (!B || B.getAttribute("aria-selected") === "true")
|
|
2655
2646
|
return;
|
|
2656
|
-
const
|
|
2657
|
-
ce(
|
|
2647
|
+
const x = B.getAttribute("id");
|
|
2648
|
+
ce(x);
|
|
2658
2649
|
}
|
|
2659
2650
|
function Pe(h) {
|
|
2660
2651
|
if (h.key === "ArrowLeft" || h.key === "ArrowRight") {
|
|
2661
|
-
const B = Q.value.findIndex((
|
|
2652
|
+
const B = Q.value.findIndex((x) => x.id === h.target.id);
|
|
2662
2653
|
if (B === -1)
|
|
2663
2654
|
return;
|
|
2664
2655
|
h.preventDefault(), h.stopPropagation(), h.key === "ArrowLeft" ? Ee(B) : De(B);
|
|
2665
2656
|
}
|
|
2666
2657
|
}
|
|
2667
2658
|
function De(h) {
|
|
2668
|
-
var
|
|
2659
|
+
var x;
|
|
2669
2660
|
const B = (h + 1) % Q.value.length;
|
|
2670
|
-
(
|
|
2661
|
+
(x = Q.value[B]) == null || x.focus();
|
|
2671
2662
|
}
|
|
2672
2663
|
function Ee(h) {
|
|
2673
|
-
var
|
|
2664
|
+
var x;
|
|
2674
2665
|
const B = h === 0 ? Q.value.length - 1 : h - 1;
|
|
2675
|
-
(
|
|
2666
|
+
(x = Q.value[B]) == null || x.focus();
|
|
2676
2667
|
}
|
|
2677
2668
|
function Ve() {
|
|
2678
|
-
var K, F,
|
|
2679
|
-
const h = parseInt(
|
|
2680
|
-
let
|
|
2681
|
-
|
|
2669
|
+
var K, F, ge, be;
|
|
2670
|
+
const h = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0, B = M.value;
|
|
2671
|
+
let x = 300, z = ((F = (K = Q.value) == null ? void 0 : K[S.value]) == null ? void 0 : F.offsetLeft) || 0, G = Ie(S.value);
|
|
2672
|
+
s.value && q.value && (z = (ge = y.value) == null ? void 0 : ge.offsetLeft, G = (be = y.value) == null ? void 0 : be.offsetWidth), x = Math.max(Math.abs((z - h) / B * 300), 100), r.value.style.setProperty("--active-line-max-width", `${B}px`), r.value.style.setProperty("--active-line-scale", `${G / B}`), r.value.style.setProperty("--active-line-offset", `${z}px`), r.value.style.setProperty("--active-line-transition-duration", `${x}ms`);
|
|
2682
2673
|
}
|
|
2683
2674
|
function qe() {
|
|
2684
2675
|
var h, B;
|
|
2685
|
-
(B = (h =
|
|
2676
|
+
(B = (h = L.value) == null ? void 0 : h.disconnect) == null || B.call(h), L.value = null;
|
|
2686
2677
|
}
|
|
2687
2678
|
function ze() {
|
|
2688
|
-
|
|
2679
|
+
L.value = new ResizeObserver((h) => {
|
|
2689
2680
|
for (let B of h)
|
|
2690
|
-
|
|
2681
|
+
M.value = B.contentBoxSize[0].inlineSize;
|
|
2691
2682
|
ue();
|
|
2692
|
-
}),
|
|
2683
|
+
}), L.value.observe(r.value);
|
|
2693
2684
|
}
|
|
2694
2685
|
function Me() {
|
|
2695
|
-
|
|
2686
|
+
g.value = Array.from(r.value.children).filter((h) => h.role === "tab");
|
|
2696
2687
|
}
|
|
2697
2688
|
function Re() {
|
|
2698
2689
|
let h;
|
|
2699
|
-
|
|
2700
|
-
h = B.getBoundingClientRect().width + un,
|
|
2690
|
+
g.value.forEach((B, x) => {
|
|
2691
|
+
h = B.getBoundingClientRect().width + un, f.value.push(x ? h + f.value[x - 1] : h);
|
|
2701
2692
|
});
|
|
2702
2693
|
}
|
|
2703
|
-
return
|
|
2694
|
+
return V(() => t.activeTabId, Te), N(() => {
|
|
2704
2695
|
var h;
|
|
2705
2696
|
try {
|
|
2706
|
-
Me(), Re(), ze(),
|
|
2697
|
+
Me(), Re(), ze(), M.value = r.value.getBoundingClientRect().width, ue(), t.withBsTabs || (h = g.value[S.value]) == null || h.setAttribute("aria-selected", "true");
|
|
2707
2698
|
} catch (B) {
|
|
2708
2699
|
console.log("tab error", B);
|
|
2709
2700
|
}
|
|
2710
|
-
}), ne(qe), (h, B) => (
|
|
2701
|
+
}), ne(qe), (h, B) => (u(), v("div", {
|
|
2711
2702
|
class: "bs-tab-list",
|
|
2712
2703
|
"data-component": "bs-tab-list",
|
|
2713
|
-
id: h.$attrs.id ||
|
|
2704
|
+
id: h.$attrs.id || c(P),
|
|
2714
2705
|
ref_key: "hostEl",
|
|
2715
|
-
ref:
|
|
2706
|
+
ref: r,
|
|
2716
2707
|
role: "tablist",
|
|
2717
2708
|
"data-resizing": !n.value || void 0,
|
|
2718
2709
|
onClick: Le,
|
|
2719
|
-
"on:tabClick": B[0] || (B[0] = (
|
|
2710
|
+
"on:tabClick": B[0] || (B[0] = (x) => ce(x.detail)),
|
|
2720
2711
|
onKeydown: Pe
|
|
2721
2712
|
}, [
|
|
2722
|
-
|
|
2713
|
+
I(h.$slots, "default"),
|
|
2723
2714
|
m("button", {
|
|
2724
|
-
"aria-controls":
|
|
2715
|
+
"aria-controls": c(w),
|
|
2725
2716
|
"aria-expanded": i.value,
|
|
2726
2717
|
class: "bs-tab-list-toggle",
|
|
2727
2718
|
"data-active": q.value || void 0,
|
|
2728
|
-
"data-hidden": !
|
|
2719
|
+
"data-hidden": !s.value,
|
|
2729
2720
|
id: ee.value,
|
|
2730
2721
|
ref_key: "dropdownToggle",
|
|
2731
2722
|
ref: y,
|
|
2732
2723
|
onClick: Ce
|
|
2733
2724
|
}, [
|
|
2734
|
-
|
|
2735
|
-
W(" " +
|
|
2725
|
+
D(c(et), { size: "sm" }),
|
|
2726
|
+
W(" " + T(J.value), 1)
|
|
2736
2727
|
], 8, rn),
|
|
2737
|
-
|
|
2728
|
+
D(c(Zt), {
|
|
2729
|
+
"anchor-id": ee.value,
|
|
2730
|
+
"container-id": h.$attrs.id || c(P),
|
|
2731
|
+
"helper-description": e.helperDescription || void 0,
|
|
2732
|
+
"helper-text": e.helperText,
|
|
2733
|
+
id: c(w),
|
|
2734
|
+
"options-id": j.value,
|
|
2735
|
+
position: "right",
|
|
2736
|
+
preloaded: "",
|
|
2738
2737
|
shown: i.value,
|
|
2739
|
-
|
|
2740
|
-
class: "bs-tab-list-dropdown",
|
|
2741
|
-
containerId: h.$attrs.id || f(T),
|
|
2742
|
-
helperText: e.helperText,
|
|
2743
|
-
helperDescription: e.helperDescription || void 0,
|
|
2744
|
-
optionsId: G.value,
|
|
2745
|
-
toggleId: ee.value,
|
|
2738
|
+
width: "content",
|
|
2746
2739
|
onClose: xe,
|
|
2747
|
-
|
|
2740
|
+
"onUpdate:modelValue": Ae
|
|
2748
2741
|
}, {
|
|
2749
|
-
default:
|
|
2750
|
-
(
|
|
2751
|
-
key:
|
|
2752
|
-
value:
|
|
2753
|
-
"options-id":
|
|
2742
|
+
default: C(() => [
|
|
2743
|
+
(u(!0), v(R, null, Y(d.value, (x) => (u(), A(c(Kt), {
|
|
2744
|
+
key: x.id,
|
|
2745
|
+
value: x.id,
|
|
2746
|
+
"options-id": j.value
|
|
2754
2747
|
}, {
|
|
2755
|
-
default:
|
|
2756
|
-
W(
|
|
2748
|
+
default: C(() => [
|
|
2749
|
+
W(T(x.textContent), 1)
|
|
2757
2750
|
]),
|
|
2758
2751
|
_: 2
|
|
2759
2752
|
}, 1032, ["value", "options-id"]))), 128))
|
|
2760
2753
|
]),
|
|
2761
2754
|
_: 1
|
|
2762
|
-
}, 8, ["
|
|
2755
|
+
}, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])
|
|
2763
2756
|
], 40, on));
|
|
2764
2757
|
}
|
|
2765
2758
|
}, cn = ["aria-labelledby", "data-active", "id"], Kn = {
|
|
@@ -2775,15 +2768,15 @@ const Et = {
|
|
|
2775
2768
|
}
|
|
2776
2769
|
},
|
|
2777
2770
|
setup(e) {
|
|
2778
|
-
const a = e, t =
|
|
2779
|
-
return (o,
|
|
2771
|
+
const a = e, t = O(), l = p(() => a.activeTabId && a.activeTabId === a.tabId), n = p(() => t.id || `${a.tabId}-panel`);
|
|
2772
|
+
return (o, d) => (u(), v("section", {
|
|
2780
2773
|
"aria-labelledby": e.tabId,
|
|
2781
2774
|
"data-active": l.value,
|
|
2782
2775
|
"data-component": "bs-tab-panel",
|
|
2783
2776
|
id: n.value,
|
|
2784
2777
|
role: "tabpanel"
|
|
2785
2778
|
}, [
|
|
2786
|
-
|
|
2779
|
+
I(o.$slots, "default")
|
|
2787
2780
|
], 8, cn));
|
|
2788
2781
|
}
|
|
2789
2782
|
}, fn = ["data-error", "id", "rows", "value"], vn = {
|
|
@@ -2801,14 +2794,14 @@ const Et = {
|
|
|
2801
2794
|
},
|
|
2802
2795
|
emits: ["update:modelValue"],
|
|
2803
2796
|
setup(e, { emit: a }) {
|
|
2804
|
-
const t = e, l =
|
|
2805
|
-
return (n, o) => (
|
|
2797
|
+
const t = e, l = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
2798
|
+
return (n, o) => (u(), v("textarea", E({
|
|
2806
2799
|
"data-component": "bs-textarea",
|
|
2807
2800
|
"data-error": e.error,
|
|
2808
2801
|
id: n.$attrs.id || e.inputId,
|
|
2809
2802
|
rows: n.$attrs.rows || 6,
|
|
2810
2803
|
value: e.value || e.modelValue,
|
|
2811
|
-
onInput: o[0] || (o[0] = (
|
|
2804
|
+
onInput: o[0] || (o[0] = (d) => n.$emit("update:modelValue", d.target.value))
|
|
2812
2805
|
}, l.value), null, 16, fn));
|
|
2813
2806
|
}
|
|
2814
2807
|
}, Yn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
@@ -2835,10 +2828,7 @@ const Et = {
|
|
|
2835
2828
|
/** Pass id for the input element. Will also be applied to label attribute. */
|
|
2836
2829
|
inputId: String,
|
|
2837
2830
|
/** Pass label text. */
|
|
2838
|
-
label: {
|
|
2839
|
-
type: String,
|
|
2840
|
-
required: !0
|
|
2841
|
-
},
|
|
2831
|
+
label: { type: String },
|
|
2842
2832
|
/** List additional attributes by name (comma-separated) to pass through to `<textarea>`. */
|
|
2843
2833
|
passAttrs: {
|
|
2844
2834
|
type: String,
|
|
@@ -2853,7 +2843,7 @@ const Et = {
|
|
|
2853
2843
|
},
|
|
2854
2844
|
/** Sets the number of rows for the textarea. Defaults to `6`. */
|
|
2855
2845
|
rows: {
|
|
2856
|
-
type: Number,
|
|
2846
|
+
type: [Number, String],
|
|
2857
2847
|
default: 6
|
|
2858
2848
|
},
|
|
2859
2849
|
/** Sets the textarea value - do not use if using `v-model`. */
|
|
@@ -2863,52 +2853,52 @@ const Et = {
|
|
|
2863
2853
|
},
|
|
2864
2854
|
emits: ["update:modelValue"],
|
|
2865
2855
|
setup(e, { emit: a }) {
|
|
2866
|
-
const t = e, l =
|
|
2867
|
-
var
|
|
2868
|
-
return ((
|
|
2869
|
-
}),
|
|
2870
|
-
var
|
|
2871
|
-
return ((y = (
|
|
2856
|
+
const t = e, l = O(), [n, o] = H(2), { toChild: d, toRoot: i } = Z(t, l), s = p(() => {
|
|
2857
|
+
var g;
|
|
2858
|
+
return ((g = t.value || t.modelValue) == null ? void 0 : g.length) || 0;
|
|
2859
|
+
}), r = p(() => {
|
|
2860
|
+
var g, y;
|
|
2861
|
+
return ((y = (g = t.hints) == null ? void 0 : g.join) == null ? void 0 : y.call(g, `
|
|
2872
2862
|
`)) || t.hints;
|
|
2873
|
-
}),
|
|
2874
|
-
return (
|
|
2875
|
-
e.label ||
|
|
2863
|
+
}), f = p(() => t.error && t.errorMsg || t.hint || r.value || void 0), b = p(() => t.inputId || n.value);
|
|
2864
|
+
return (g, y) => (u(), v("div", E({ "data-component": "bs-textarea-field" }, c(i)), [
|
|
2865
|
+
e.label || g.$slots.label ? (u(), A(c(_), {
|
|
2876
2866
|
key: 0,
|
|
2877
|
-
for:
|
|
2867
|
+
for: b.value,
|
|
2878
2868
|
disabled: e.disabled,
|
|
2879
2869
|
required: e.required
|
|
2880
2870
|
}, {
|
|
2881
|
-
default:
|
|
2882
|
-
|
|
2883
|
-
W(
|
|
2871
|
+
default: C(() => [
|
|
2872
|
+
I(g.$slots, "label", {}, () => [
|
|
2873
|
+
W(T(e.label), 1)
|
|
2884
2874
|
])
|
|
2885
2875
|
]),
|
|
2886
2876
|
_: 3
|
|
2887
2877
|
}, 8, ["for", "disabled", "required"])) : $("", !0),
|
|
2888
|
-
|
|
2878
|
+
D(c(vn), E({
|
|
2889
2879
|
disabled: e.disabled,
|
|
2890
2880
|
error: e.error,
|
|
2891
|
-
"hint-id":
|
|
2892
|
-
id:
|
|
2881
|
+
"hint-id": c(o),
|
|
2882
|
+
id: b.value,
|
|
2893
2883
|
placeholder: e.placeholder,
|
|
2894
2884
|
required: e.required,
|
|
2895
2885
|
rows: e.rows,
|
|
2896
2886
|
value: e.value || e.modelValue,
|
|
2897
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
2898
|
-
},
|
|
2899
|
-
|
|
2887
|
+
"onUpdate:modelValue": y[0] || (y[0] = (L) => g.$emit("update:modelValue", L))
|
|
2888
|
+
}, c(d)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
|
|
2889
|
+
f.value || e.charMax ? (u(), A(pe, {
|
|
2900
2890
|
key: 1,
|
|
2901
|
-
"char-count":
|
|
2891
|
+
"char-count": s.value,
|
|
2902
2892
|
"char-max": e.charMax,
|
|
2903
2893
|
"data-disabled": e.disabled,
|
|
2904
2894
|
error: e.error,
|
|
2905
2895
|
"error-msg": e.errorMsg,
|
|
2906
|
-
hint: e.hint ||
|
|
2907
|
-
"hint-id":
|
|
2896
|
+
hint: e.hint || r.value,
|
|
2897
|
+
"hint-id": c(o)
|
|
2908
2898
|
}, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) : $("", !0)
|
|
2909
2899
|
], 16));
|
|
2910
2900
|
}
|
|
2911
|
-
}),
|
|
2901
|
+
}), hn = ["data-variant", "data-stacked"], Xn = {
|
|
2912
2902
|
__name: "BsToast",
|
|
2913
2903
|
props: {
|
|
2914
2904
|
shown: {
|
|
@@ -2957,79 +2947,79 @@ const Et = {
|
|
|
2957
2947
|
const t = e, l = a, { transition: n } = se(t);
|
|
2958
2948
|
let o = null;
|
|
2959
2949
|
ae("variant", t.variant), ae("handleDismiss", i);
|
|
2960
|
-
const
|
|
2950
|
+
const d = te("stacked", t.stacked);
|
|
2961
2951
|
function i() {
|
|
2962
2952
|
o && (clearTimeout(o), o = null), l("dismiss", t.toastId);
|
|
2963
2953
|
}
|
|
2964
|
-
function
|
|
2954
|
+
function s() {
|
|
2965
2955
|
t.duration > 0 && (o = setTimeout(() => {
|
|
2966
2956
|
i();
|
|
2967
2957
|
}, t.duration)), l("after-enter");
|
|
2968
2958
|
}
|
|
2969
|
-
return (
|
|
2970
|
-
shown:
|
|
2959
|
+
return (r, f) => (u(), A(c(de), {
|
|
2960
|
+
shown: c(n),
|
|
2971
2961
|
preloaded: e.preloaded,
|
|
2972
2962
|
duration: 200,
|
|
2973
2963
|
"enter-attribute": "data-shown",
|
|
2974
|
-
onAfterEnter:
|
|
2975
|
-
onAfterLeave:
|
|
2964
|
+
onAfterEnter: s,
|
|
2965
|
+
onAfterLeave: f[0] || (f[0] = (b) => l("after-leave"))
|
|
2976
2966
|
}, {
|
|
2977
|
-
default:
|
|
2967
|
+
default: C(() => [
|
|
2978
2968
|
m("div", {
|
|
2979
2969
|
class: "bs-toast",
|
|
2980
2970
|
"data-variant": e.variant,
|
|
2981
|
-
"data-stacked":
|
|
2971
|
+
"data-stacked": c(d) || void 0,
|
|
2982
2972
|
"aria-role": "alert"
|
|
2983
2973
|
}, [
|
|
2984
|
-
|
|
2985
|
-
], 8,
|
|
2974
|
+
I(r.$slots, "default")
|
|
2975
|
+
], 8, hn)
|
|
2986
2976
|
]),
|
|
2987
2977
|
_: 3
|
|
2988
2978
|
}, 8, ["shown", "preloaded"]));
|
|
2989
2979
|
}
|
|
2990
|
-
},
|
|
2980
|
+
}, pn = ["data-stacked"], Zn = {
|
|
2991
2981
|
__name: "BsToastActions",
|
|
2992
2982
|
setup(e) {
|
|
2993
|
-
const a =
|
|
2994
|
-
|
|
2983
|
+
const a = k(!1);
|
|
2984
|
+
N(() => {
|
|
2995
2985
|
var n;
|
|
2996
2986
|
const l = He();
|
|
2997
2987
|
((n = l.default) == null ? void 0 : n.call(l).length) > 2 && (a.value = !0);
|
|
2998
2988
|
});
|
|
2999
2989
|
const t = te("handleDismiss");
|
|
3000
|
-
return (l, n) => (
|
|
2990
|
+
return (l, n) => (u(), v("div", {
|
|
3001
2991
|
class: "bs-toast-actions",
|
|
3002
2992
|
"data-stacked": a.value || void 0
|
|
3003
2993
|
}, [
|
|
3004
|
-
|
|
3005
|
-
|
|
2994
|
+
I(l.$slots, "default", {}, () => [
|
|
2995
|
+
D(wt, {
|
|
3006
2996
|
size: "sm",
|
|
3007
2997
|
"text-btn": "",
|
|
3008
|
-
onClick:
|
|
2998
|
+
onClick: c(t)
|
|
3009
2999
|
}, {
|
|
3010
|
-
default:
|
|
3000
|
+
default: C(() => [
|
|
3011
3001
|
W(" Dismiss ")
|
|
3012
3002
|
]),
|
|
3013
3003
|
_: 1
|
|
3014
3004
|
}, 8, ["onClick"])
|
|
3015
3005
|
])
|
|
3016
|
-
], 8,
|
|
3006
|
+
], 8, pn));
|
|
3017
3007
|
}
|
|
3018
|
-
},
|
|
3008
|
+
}, gn = (e, a) => {
|
|
3019
3009
|
const t = e.__vccOpts || e;
|
|
3020
3010
|
for (const [l, n] of a)
|
|
3021
3011
|
t[l] = n;
|
|
3022
3012
|
return t;
|
|
3023
3013
|
}, bn = {}, mn = { class: "bs-toast-body" };
|
|
3024
3014
|
function yn(e, a) {
|
|
3025
|
-
return
|
|
3026
|
-
|
|
3015
|
+
return u(), v("div", mn, [
|
|
3016
|
+
I(e.$slots, "default")
|
|
3027
3017
|
]);
|
|
3028
3018
|
}
|
|
3029
|
-
const Jn = /* @__PURE__ */
|
|
3019
|
+
const Jn = /* @__PURE__ */ gn(bn, [["render", yn]]), Bn = ["data-variant"], Qn = {
|
|
3030
3020
|
__name: "BsToastHeader",
|
|
3031
3021
|
setup(e) {
|
|
3032
|
-
const a = te("variant"), t =
|
|
3022
|
+
const a = te("variant"), t = p(() => {
|
|
3033
3023
|
switch (a) {
|
|
3034
3024
|
case "warning":
|
|
3035
3025
|
return ve;
|
|
@@ -3041,21 +3031,21 @@ const Jn = /* @__PURE__ */ pn(bn, [["render", yn]]), Bn = ["data-variant"], Qn =
|
|
|
3041
3031
|
return tt;
|
|
3042
3032
|
}
|
|
3043
3033
|
});
|
|
3044
|
-
return (l, n) => (
|
|
3034
|
+
return (l, n) => (u(), v("div", {
|
|
3045
3035
|
class: "bs-toast-header",
|
|
3046
|
-
"data-variant":
|
|
3036
|
+
"data-variant": c(a)
|
|
3047
3037
|
}, [
|
|
3048
|
-
(
|
|
3038
|
+
(u(), A(U(t.value), { class: "bs-toast-header-icon" })),
|
|
3049
3039
|
m("h5", null, [
|
|
3050
|
-
|
|
3040
|
+
I(l.$slots, "default")
|
|
3051
3041
|
])
|
|
3052
3042
|
], 8, Bn));
|
|
3053
3043
|
}
|
|
3054
3044
|
}, $n = { class: "bs-toaster" }, _n = {
|
|
3055
3045
|
__name: "BsToaster",
|
|
3056
3046
|
setup(e) {
|
|
3057
|
-
return ae("stacked", !0), (a, t) => (
|
|
3058
|
-
|
|
3047
|
+
return ae("stacked", !0), (a, t) => (u(), v("div", $n, [
|
|
3048
|
+
I(a.$slots, "default")
|
|
3059
3049
|
]));
|
|
3060
3050
|
}
|
|
3061
3051
|
}, Sn = ["data-position"], wn = ["id"], el = {
|
|
@@ -3085,7 +3075,7 @@ const Jn = /* @__PURE__ */ pn(bn, [["render", yn]]), Bn = ["data-variant"], Qn =
|
|
|
3085
3075
|
}
|
|
3086
3076
|
},
|
|
3087
3077
|
setup(e) {
|
|
3088
|
-
const a = e, t =
|
|
3078
|
+
const a = e, t = k(!1), l = k(!1), n = p(() => {
|
|
3089
3079
|
let i = "bs-tooltip-text";
|
|
3090
3080
|
return l.value && (a.position === void 0 || a.position === "top" || a.position === "bottom" ? i += " escaped-x" : a.position === "left" || a.position === "right" ? i += " escaped-y" : i += " escaped"), i;
|
|
3091
3081
|
});
|
|
@@ -3095,25 +3085,25 @@ const Jn = /* @__PURE__ */ pn(bn, [["render", yn]]), Bn = ["data-variant"], Qn =
|
|
|
3095
3085
|
function o() {
|
|
3096
3086
|
t.value = !0;
|
|
3097
3087
|
}
|
|
3098
|
-
function
|
|
3088
|
+
function d() {
|
|
3099
3089
|
t.value = !1, l.value = !1;
|
|
3100
3090
|
}
|
|
3101
|
-
return (i,
|
|
3091
|
+
return (i, s) => (u(), v("div", {
|
|
3102
3092
|
class: "bs-tooltip",
|
|
3103
3093
|
"data-position": e.position || void 0,
|
|
3104
3094
|
"data-component": "bs-tooltip",
|
|
3105
3095
|
onMouseenter: o,
|
|
3106
3096
|
onFocusin: o,
|
|
3107
|
-
onMouseleave:
|
|
3108
|
-
onFocusout:
|
|
3097
|
+
onMouseleave: d,
|
|
3098
|
+
onFocusout: d
|
|
3109
3099
|
}, [
|
|
3110
|
-
|
|
3111
|
-
e.content ? (
|
|
3100
|
+
I(i.$slots, "default"),
|
|
3101
|
+
e.content ? (u(), v("div", {
|
|
3112
3102
|
key: 0,
|
|
3113
3103
|
class: X(n.value),
|
|
3114
3104
|
id: e.tooltipId,
|
|
3115
3105
|
role: "tooltip"
|
|
3116
|
-
},
|
|
3106
|
+
}, T(e.content), 11, wn)) : $("", !0)
|
|
3117
3107
|
], 40, Sn));
|
|
3118
3108
|
}
|
|
3119
3109
|
};
|
|
@@ -3129,9 +3119,10 @@ export {
|
|
|
3129
3119
|
Kt as BsDropdownOption,
|
|
3130
3120
|
Xt as BsDropdownOptionList,
|
|
3131
3121
|
Zt as BsDropdownWithOptions,
|
|
3122
|
+
pe as BsFieldDetails,
|
|
3132
3123
|
Vn as BsIconGradientWrapper,
|
|
3133
3124
|
we as BsInput,
|
|
3134
|
-
|
|
3125
|
+
oa as BsInputAddon,
|
|
3135
3126
|
qn as BsInputField,
|
|
3136
3127
|
zn as BsInputSearch,
|
|
3137
3128
|
_ as BsLabel,
|
|
@@ -3143,9 +3134,9 @@ export {
|
|
|
3143
3134
|
Wn as BsProfile,
|
|
3144
3135
|
Fa as BsProfileDetails,
|
|
3145
3136
|
Ka as BsProfileImg,
|
|
3146
|
-
|
|
3137
|
+
jn as BsRadio,
|
|
3147
3138
|
Ja as BsSelect,
|
|
3148
|
-
|
|
3139
|
+
Gn as BsSelectField,
|
|
3149
3140
|
Fn as BsSwitch,
|
|
3150
3141
|
Un as BsTab,
|
|
3151
3142
|
Hn as BsTabList,
|