@wwtdev/bsds-components-vue3 2.0.2 → 2.0.3
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 +463 -442
- package/lib/components.css +1 -1
- package/package.json +2 -2
package/lib/bsds-components.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { computed as p, ref as k, onMounted as
|
|
2
|
-
import { v4 as
|
|
3
|
-
import { BsIconCaretDown as
|
|
4
|
-
import { Chart as fe, BarController as
|
|
1
|
+
import { computed as p, ref as k, onMounted as O, onUnmounted as ne, shallowRef as Ne, watch as E, defineAsyncComponent as Oe, 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 N, mergeProps as V, withCtx as C, Fragment as R, renderList as Y, createTextVNode as W, withDirectives as We, Transition as me, vShow as je, inject as te, provide as ae, onDeactivated as Ge, normalizeStyle as Fe, isRef as Ue, nextTick as He, useSlots as Ke } from "vue";
|
|
2
|
+
import { v4 as Ye } from "uuid";
|
|
3
|
+
import { BsIconCaretDown as Xe, BsIconWarning as ve, BsIconClose as oe, BsIconSearch as Ze, BsIconCaretLeftDouble as Je, BsIconCaretLeft as Qe, BsIconCaretRight as _e, BsIconCaretRightDouble as et, BsIconActionEllipsis as tt, BsIconCircleExclamation as at, BsIconThumbsUpStroke as nt } from "@wwtdev/bsds-icons-vue3";
|
|
4
|
+
import { Chart as fe, BarController as lt, BarElement as ot, CategoryScale as it, LinearScale as rt, Legend as st, Tooltip as dt } from "chart.js";
|
|
5
5
|
const ye = {
|
|
6
6
|
href: "a",
|
|
7
7
|
onclick: "button",
|
|
@@ -9,27 +9,27 @@ const ye = {
|
|
|
9
9
|
type: "button"
|
|
10
10
|
};
|
|
11
11
|
function he(e, a, t = "button") {
|
|
12
|
-
const l =
|
|
13
|
-
const o = l.value === "button",
|
|
14
|
-
return o ? (
|
|
12
|
+
const l = ut(e, a, t), n = p(() => {
|
|
13
|
+
const o = l.value === "button", s = {};
|
|
14
|
+
return o ? (s.type = a.type || "button", s.autocomplete = "off", e.disabled && (s.disabled = !0)) : e.disabled && (s["aria-disabled"] = "true", s.tabindex = "-1"), s;
|
|
15
15
|
});
|
|
16
16
|
return { rootTag: l, attrsToBind: n };
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
const l = Object.keys(ye).find((n) =>
|
|
18
|
+
function ut(e, a, t) {
|
|
19
|
+
const l = Object.keys(ye).find((n) => ct(e, a, n));
|
|
20
20
|
return k(ye[l] || t);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function ct(e, a, t) {
|
|
23
23
|
return e[t] || a[t];
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const ft = (e, a) => {
|
|
26
26
|
const t = (l) => {
|
|
27
27
|
e.some((n) => {
|
|
28
28
|
var o;
|
|
29
29
|
return (o = n.value) == null ? void 0 : o.contains(l.target);
|
|
30
30
|
}) || a(l);
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
O(() => {
|
|
33
33
|
document.addEventListener("click", t);
|
|
34
34
|
}), ne(() => {
|
|
35
35
|
document.removeEventListener("click", t);
|
|
@@ -44,41 +44,51 @@ function ie(e) {
|
|
|
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, s, i, d, 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 || ((s = (o = n.target.href) == null ? void 0 : o.endsWith) != null && s.call(o, e.href) || (r = (d = (i = n.target.closest("a")) == null ? void 0 : i.href) == null ? void 0 : d.endsWith) != null && r.call(d, 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) =>
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
const le = (e, a) => {
|
|
60
|
+
function t(n) {
|
|
61
|
+
if (!n)
|
|
62
|
+
return null;
|
|
63
|
+
const o = n.startsWith("bs-") ? Be(n) : `BsIcon${Be(n)}`;
|
|
64
|
+
return Oe(async () => {
|
|
65
|
+
const { [o]: s } = await import("@wwtdev/bsds-icons-vue3");
|
|
66
|
+
return s;
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
const l = Ne();
|
|
70
|
+
return l.value = t(e[a]), E(() => e[a], async (n) => l.value = t(n)), { icon: l };
|
|
71
|
+
};
|
|
62
72
|
function H(e = 1) {
|
|
63
73
|
const a = [];
|
|
64
74
|
for (let t = 0; t < e; t++)
|
|
65
75
|
a.push(k(""));
|
|
66
|
-
return
|
|
67
|
-
a.forEach((t) => t.value =
|
|
76
|
+
return O(() => {
|
|
77
|
+
a.forEach((t) => t.value = Ye());
|
|
68
78
|
}), a;
|
|
69
79
|
}
|
|
70
80
|
const re = (e, a, t = void 0) => {
|
|
71
81
|
const l = (n) => {
|
|
72
82
|
e.includes(n.key) && a(n);
|
|
73
83
|
};
|
|
74
|
-
|
|
84
|
+
O(() => {
|
|
75
85
|
((t == null ? void 0 : t.value) ?? document).addEventListener("keydown", l);
|
|
76
86
|
}), ne(() => {
|
|
77
87
|
((t == null ? void 0 : t.value) ?? document).removeEventListener("keydown", l);
|
|
78
88
|
});
|
|
79
|
-
},
|
|
89
|
+
}, vt = (e, a, t) => {
|
|
80
90
|
let l = null;
|
|
81
|
-
|
|
91
|
+
O(() => {
|
|
82
92
|
l = new MutationObserver(a), l.observe(e.value, t);
|
|
83
93
|
}), ne(() => {
|
|
84
94
|
l.disconnect();
|
|
@@ -89,8 +99,8 @@ function Z(e, a) {
|
|
|
89
99
|
const t = new Set(((o = e.passAttrs) == null ? void 0 : o.split(",")) || "");
|
|
90
100
|
t.delete("");
|
|
91
101
|
const l = k({}), n = k({});
|
|
92
|
-
for (let
|
|
93
|
-
t.has(
|
|
102
|
+
for (let s in a)
|
|
103
|
+
t.has(s) ? n.value[s] = a[s] : l.value[s] = a[s];
|
|
94
104
|
return {
|
|
95
105
|
toRoot: l,
|
|
96
106
|
toChild: n
|
|
@@ -98,20 +108,20 @@ function Z(e, a) {
|
|
|
98
108
|
}
|
|
99
109
|
const se = (e) => {
|
|
100
110
|
const a = k(!1);
|
|
101
|
-
return
|
|
111
|
+
return O(() => {
|
|
102
112
|
a.value = e.enterControlled || e.preloaded ? e.enterTrigger : e.shown;
|
|
103
|
-
}),
|
|
113
|
+
}), E(() => e.shown, (t) => {
|
|
104
114
|
a.value = t;
|
|
105
|
-
}),
|
|
115
|
+
}), E(() => e.enterTrigger, (t) => {
|
|
106
116
|
a.value = t;
|
|
107
|
-
}),
|
|
117
|
+
}), E(() => e.leaveTrigger, (t) => {
|
|
108
118
|
t && (a.value = !1);
|
|
109
119
|
}), { transition: a };
|
|
110
|
-
},
|
|
120
|
+
}, ht = ["id", "data-stacked"], pt = ["data-open"], gt = ["aria-controls", "aria-expanded"], bt = {
|
|
111
121
|
key: 0,
|
|
112
122
|
"data-position": "start",
|
|
113
123
|
style: { display: "inline-flex" }
|
|
114
|
-
},
|
|
124
|
+
}, mt = ["id", "aria-level"], yt = ["aria-labelledby", "data-open", "id"], Ln = {
|
|
115
125
|
__name: "BsAccordion",
|
|
116
126
|
props: {
|
|
117
127
|
controlled: { type: Boolean, default: !1 },
|
|
@@ -127,7 +137,7 @@ const se = (e) => {
|
|
|
127
137
|
},
|
|
128
138
|
emits: ["toggled"],
|
|
129
139
|
setup(e, { emit: a }) {
|
|
130
|
-
const t = e, l = a, n = k(null), o = k(!1), { icon:
|
|
140
|
+
const t = e, l = a, n = k(null), o = k(!1), { icon: s } = le(t, "icon"), [i] = H(), d = 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
141
|
function g() {
|
|
132
142
|
l("toggled", i.value), t.controlled || (o.value = !o.value);
|
|
133
143
|
}
|
|
@@ -144,42 +154,42 @@ const se = (e) => {
|
|
|
144
154
|
"data-open": b.value
|
|
145
155
|
}, [
|
|
146
156
|
m("button", {
|
|
147
|
-
"aria-controls":
|
|
157
|
+
"aria-controls": d.value,
|
|
148
158
|
"aria-expanded": b.value,
|
|
149
159
|
type: "button",
|
|
150
160
|
onClick: g
|
|
151
161
|
}, [
|
|
152
|
-
e.icon || y.$slots.icon ? (u(), v("span",
|
|
162
|
+
e.icon || y.$slots.icon ? (u(), v("span", bt, [
|
|
153
163
|
I(y.$slots, "icon", {}, () => [
|
|
154
|
-
e.icon ? (u(), A(U(c(
|
|
164
|
+
e.icon ? (u(), A(U(c(s) ? c(s) : "span"), { key: 0 })) : $("", !0)
|
|
155
165
|
])
|
|
156
166
|
])) : $("", !0),
|
|
157
167
|
m("span", {
|
|
158
168
|
id: r.value,
|
|
159
169
|
"aria-level": e.headingLevel,
|
|
160
170
|
role: "heading"
|
|
161
|
-
}, T(e.headerText), 9,
|
|
162
|
-
D(c(
|
|
171
|
+
}, T(e.headerText), 9, mt),
|
|
172
|
+
D(c(Xe), {
|
|
163
173
|
size: "md",
|
|
164
174
|
"data-position": "end"
|
|
165
175
|
})
|
|
166
|
-
], 8,
|
|
167
|
-
], 8,
|
|
176
|
+
], 8, gt)
|
|
177
|
+
], 8, pt),
|
|
168
178
|
m("div", {
|
|
169
179
|
"aria-labelledby": r.value,
|
|
170
180
|
class: "bs-accordion-content",
|
|
171
181
|
"data-open": b.value,
|
|
172
|
-
id:
|
|
182
|
+
id: d.value,
|
|
173
183
|
part: "content",
|
|
174
184
|
role: "region"
|
|
175
185
|
}, [
|
|
176
186
|
m("div", null, [
|
|
177
187
|
I(y.$slots, "default")
|
|
178
188
|
])
|
|
179
|
-
], 8,
|
|
180
|
-
], 8,
|
|
189
|
+
], 8, yt)
|
|
190
|
+
], 8, ht));
|
|
181
191
|
}
|
|
182
|
-
},
|
|
192
|
+
}, Bt = ["data-badge-color", "data-count", "data-position", "data-show-zero", "aria-label"], Pn = {
|
|
183
193
|
__name: "BsBadge",
|
|
184
194
|
props: {
|
|
185
195
|
/** Pass value to set `data-badge-color`. */
|
|
@@ -223,14 +233,14 @@ const se = (e) => {
|
|
|
223
233
|
},
|
|
224
234
|
setup(e) {
|
|
225
235
|
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
|
|
227
|
-
const o = ((r = (
|
|
228
|
-
if (!
|
|
236
|
+
var d, r;
|
|
237
|
+
const o = ((r = (d = t.value) == null ? void 0 : d.textContent) == null ? void 0 : r.trim()) || "", s = l.value ? l.value + " " : "";
|
|
238
|
+
if (!s && !a.dot)
|
|
229
239
|
return o;
|
|
230
240
|
const i = a.count !== 1 ? "s" : "";
|
|
231
|
-
return `${o}, ${
|
|
241
|
+
return `${o}, ${s}${a.label}${i}`;
|
|
232
242
|
});
|
|
233
|
-
return (o,
|
|
243
|
+
return (o, s) => (u(), v("span", {
|
|
234
244
|
ref_key: "hostRef",
|
|
235
245
|
ref: t,
|
|
236
246
|
class: X({ "bs-badge": e.dot || l.value }),
|
|
@@ -242,13 +252,13 @@ const se = (e) => {
|
|
|
242
252
|
"aria-label": n.value
|
|
243
253
|
}, [
|
|
244
254
|
I(o.$slots, "default")
|
|
245
|
-
], 10,
|
|
255
|
+
], 10, Bt));
|
|
246
256
|
}
|
|
247
|
-
},
|
|
257
|
+
}, $t = {
|
|
248
258
|
key: 0,
|
|
249
259
|
role: "alert",
|
|
250
260
|
class: "bs-banner"
|
|
251
|
-
},
|
|
261
|
+
}, St = { class: "bs-banner-content" }, wt = { class: "bs-banner-warning-icon" }, Dn = {
|
|
252
262
|
__name: "BsBanner",
|
|
253
263
|
emits: ["dismiss"],
|
|
254
264
|
setup(e, { emit: a }) {
|
|
@@ -256,9 +266,9 @@ const se = (e) => {
|
|
|
256
266
|
function n() {
|
|
257
267
|
l.value = !0, t("dismiss");
|
|
258
268
|
}
|
|
259
|
-
return (o,
|
|
260
|
-
m("div",
|
|
261
|
-
m("div",
|
|
269
|
+
return (o, s) => l.value ? $("", !0) : (u(), v("div", $t, [
|
|
270
|
+
m("div", St, [
|
|
271
|
+
m("div", wt, [
|
|
262
272
|
D(c(ve), { size: "lg" })
|
|
263
273
|
]),
|
|
264
274
|
m("p", null, [
|
|
@@ -274,7 +284,7 @@ const se = (e) => {
|
|
|
274
284
|
])
|
|
275
285
|
]));
|
|
276
286
|
}
|
|
277
|
-
},
|
|
287
|
+
}, kt = {
|
|
278
288
|
__name: "BsButton",
|
|
279
289
|
props: {
|
|
280
290
|
variant: { type: String },
|
|
@@ -286,8 +296,8 @@ const se = (e) => {
|
|
|
286
296
|
size: { type: String, validator: (e) => !e || e === "sm" }
|
|
287
297
|
},
|
|
288
298
|
setup(e) {
|
|
289
|
-
const a = e, t =
|
|
290
|
-
return (
|
|
299
|
+
const a = e, t = N(), { rootTag: l, attrsToBind: n } = he(a, t), { onLinkClick: o } = ie(a);
|
|
300
|
+
return (s, i) => (u(), A(U(c(l)), V({
|
|
291
301
|
class: "bs-button",
|
|
292
302
|
"data-component": "bs-button",
|
|
293
303
|
"data-ghost": e.ghostBtn,
|
|
@@ -297,12 +307,12 @@ const se = (e) => {
|
|
|
297
307
|
href: e.href
|
|
298
308
|
}, c(n), { onClick: c(o) }), {
|
|
299
309
|
default: C(() => [
|
|
300
|
-
I(
|
|
310
|
+
I(s.$slots, "default")
|
|
301
311
|
]),
|
|
302
312
|
_: 3
|
|
303
313
|
}, 16, ["data-ghost", "data-size", "data-text", "data-variant", "href", "onClick"]));
|
|
304
314
|
}
|
|
305
|
-
},
|
|
315
|
+
}, It = { "data-component": "bs-chart-table" }, Tt = ["summary"], xt = ["colspan"], Ct = /* @__PURE__ */ m("th", { scope: "col" }, " Dataset ", -1), At = { scope: "row" }, Lt = {
|
|
306
316
|
__name: "BsChartTable",
|
|
307
317
|
props: {
|
|
308
318
|
data: {
|
|
@@ -321,16 +331,16 @@ const se = (e) => {
|
|
|
321
331
|
setup(e) {
|
|
322
332
|
return (a, t) => {
|
|
323
333
|
var l;
|
|
324
|
-
return u(), v("div",
|
|
334
|
+
return u(), v("div", It, [
|
|
325
335
|
m("table", { summary: e.tableTitle }, [
|
|
326
336
|
m("thead", null, [
|
|
327
337
|
m("tr", null, [
|
|
328
338
|
m("th", {
|
|
329
339
|
colspan: ((l = e.dataIdxLabels) == null ? void 0 : l.length) + 1
|
|
330
|
-
}, T(e.tableTitle), 9,
|
|
340
|
+
}, T(e.tableTitle), 9, xt)
|
|
331
341
|
]),
|
|
332
342
|
m("tr", null, [
|
|
333
|
-
|
|
343
|
+
Ct,
|
|
334
344
|
(u(!0), v(R, null, Y(e.dataIdxLabels, (n) => (u(), v("th", {
|
|
335
345
|
key: n,
|
|
336
346
|
scope: "col"
|
|
@@ -341,32 +351,32 @@ const se = (e) => {
|
|
|
341
351
|
(u(!0), v(R, null, Y(e.data, (n) => (u(), v("tr", {
|
|
342
352
|
key: n.label
|
|
343
353
|
}, [
|
|
344
|
-
m("th",
|
|
345
|
-
(u(!0), v(R, null, Y(n.data, (o,
|
|
346
|
-
key: `${o}${
|
|
354
|
+
m("th", At, T(n.label), 1),
|
|
355
|
+
(u(!0), v(R, null, Y(n.data, (o, s) => (u(), v("td", {
|
|
356
|
+
key: `${o}${s}`
|
|
347
357
|
}, T(o), 1))), 128))
|
|
348
358
|
]))), 128))
|
|
349
359
|
])
|
|
350
|
-
], 8,
|
|
360
|
+
], 8, Tt)
|
|
351
361
|
]);
|
|
352
362
|
};
|
|
353
363
|
}
|
|
354
|
-
},
|
|
364
|
+
}, Pt = (e) => ({
|
|
355
365
|
id: "htmlLegend",
|
|
356
366
|
afterUpdate(a) {
|
|
357
367
|
e.innerHTML = "", e.style.setProperty("--legend-padding", `${a.scales.x.left}px`), a.options.plugins.legend.labels.generateLabels(a).forEach((l) => {
|
|
358
368
|
const n = document.createElement("li");
|
|
359
369
|
n.onclick = () => {
|
|
360
|
-
const { type:
|
|
361
|
-
|
|
370
|
+
const { type: d } = a.config._config;
|
|
371
|
+
d === "pie" || d === "doughnut" ? a.toggleDataVisibility(l.index) : a.setDatasetVisibility(l.datasetIndex, !a.isDatasetVisible(l.datasetIndex)), a.update();
|
|
362
372
|
};
|
|
363
373
|
const o = document.createElement("span");
|
|
364
374
|
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(
|
|
375
|
+
const s = document.createTextNode(l.text), i = document.createElement("p");
|
|
376
|
+
i.style.setProperty("--item-text-color", l.fontColor), i.style.setProperty("--item-text-decoration", l.hidden ? "line-through" : "none"), i.appendChild(s), n.appendChild(o), n.appendChild(i), e.appendChild(n);
|
|
367
377
|
});
|
|
368
378
|
}
|
|
369
|
-
}),
|
|
379
|
+
}), Dt = ({ type: e, datasets: a, labels: t, tooltips: l }) => ({
|
|
370
380
|
type: e,
|
|
371
381
|
data: {
|
|
372
382
|
datasets: a,
|
|
@@ -385,7 +395,7 @@ const se = (e) => {
|
|
|
385
395
|
responsive: !0
|
|
386
396
|
}
|
|
387
397
|
});
|
|
388
|
-
function
|
|
398
|
+
function Vt(e) {
|
|
389
399
|
const a = [
|
|
390
400
|
"rgba(209, 26, 111, 1)",
|
|
391
401
|
"rgba(130, 18, 196, 1)",
|
|
@@ -410,7 +420,7 @@ function $e(e, a, t) {
|
|
|
410
420
|
const Et = {
|
|
411
421
|
class: "bs-chart-bar",
|
|
412
422
|
"data-component": "bs-chart-bar"
|
|
413
|
-
},
|
|
423
|
+
}, qt = ["aria-label"], zt = ["data-hidden"], Vn = {
|
|
414
424
|
__name: "BsChartBar",
|
|
415
425
|
props: {
|
|
416
426
|
chartTitle: {
|
|
@@ -468,12 +478,12 @@ const Et = {
|
|
|
468
478
|
let n;
|
|
469
479
|
const o = p(() => {
|
|
470
480
|
const f = {
|
|
471
|
-
datasets:
|
|
481
|
+
datasets: s.value,
|
|
472
482
|
labels: a.dataIdxLabels,
|
|
473
483
|
type: "bar",
|
|
474
484
|
tooltips: a.showTooltips
|
|
475
|
-
}, b =
|
|
476
|
-
return b.plugins = [
|
|
485
|
+
}, b = Dt(f);
|
|
486
|
+
return b.plugins = [Pt(l.value)], b.options.scales = {
|
|
477
487
|
x: {
|
|
478
488
|
grid: {
|
|
479
489
|
display: a.showXGrid
|
|
@@ -495,18 +505,18 @@ const Et = {
|
|
|
495
505
|
}
|
|
496
506
|
}
|
|
497
507
|
}, b;
|
|
498
|
-
}),
|
|
508
|
+
}), s = p(() => a.data.map((f, b) => ({
|
|
499
509
|
...f,
|
|
500
|
-
backgroundColor:
|
|
510
|
+
backgroundColor: Vt(b),
|
|
501
511
|
categoryPercentage: a.data.length > 1 ? 0.5 : 0.33
|
|
502
|
-
}))), i = p(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`),
|
|
512
|
+
}))), i = p(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`), d = $e(function(f, b) {
|
|
503
513
|
!n || f === b || (n.options = o.value.options, n.update());
|
|
504
514
|
}, 100), r = $e(function() {
|
|
505
515
|
n && (n.data = o.value.data, n.update());
|
|
506
516
|
}, 100);
|
|
507
|
-
return
|
|
508
|
-
fe.register(
|
|
509
|
-
}),
|
|
517
|
+
return O(() => {
|
|
518
|
+
fe.register(lt, ot, it, rt, st, dt), fe.defaults.font.family = "'Roobert', sans-serif", n = new fe(t.value, o.value);
|
|
519
|
+
}), E(() => a.showLegend, d), E(() => a.showTooltips, d), E(() => a.showXGrid, d), E(() => a.showYGrid, d), E(() => a.stacked, d), E(() => a.xLabel, d), E(() => a.yLabel, d), E(() => a.data, r), E(() => a.dataIdxLabels, r), (f, b) => (u(), v("div", Et, [
|
|
510
520
|
m("figure", null, [
|
|
511
521
|
m("div", null, [
|
|
512
522
|
m("canvas", {
|
|
@@ -514,10 +524,10 @@ const Et = {
|
|
|
514
524
|
ref_key: "canvas",
|
|
515
525
|
ref: t,
|
|
516
526
|
role: "img"
|
|
517
|
-
}, null, 8,
|
|
527
|
+
}, null, 8, qt)
|
|
518
528
|
]),
|
|
519
529
|
m("div", null, [
|
|
520
|
-
D(
|
|
530
|
+
D(Lt, {
|
|
521
531
|
data: e.data,
|
|
522
532
|
"data-idx-labels": e.dataIdxLabels,
|
|
523
533
|
"table-title": i.value
|
|
@@ -529,12 +539,12 @@ const Et = {
|
|
|
529
539
|
ref_key: "legendList",
|
|
530
540
|
ref: l
|
|
531
541
|
}, null, 512)
|
|
532
|
-
], 8,
|
|
542
|
+
], 8, zt)
|
|
533
543
|
])
|
|
534
544
|
])
|
|
535
545
|
]));
|
|
536
546
|
}
|
|
537
|
-
},
|
|
547
|
+
}, Mt = ["data-size"], Rt = ["checked", "disabled", "id", "required", "data-error"], En = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
538
548
|
__name: "BsCheckbox",
|
|
539
549
|
props: {
|
|
540
550
|
/** Sets the label. */
|
|
@@ -589,29 +599,29 @@ const Et = {
|
|
|
589
599
|
},
|
|
590
600
|
emits: ["update:modelValue"],
|
|
591
601
|
setup(e, { emit: a }) {
|
|
592
|
-
const t = e, l =
|
|
602
|
+
const t = e, l = N(), [n] = H(), { toChild: o, toRoot: s } = Z(t, l), i = k(null), d = p(() => t.inputId || n.value), r = p(() => t.checked || t.modelValue);
|
|
593
603
|
function f() {
|
|
594
604
|
i.value && (i.value.indeterminate = t.checkedPartially && !r.value);
|
|
595
605
|
}
|
|
596
|
-
return
|
|
606
|
+
return E(r, f), E(() => t.checkedPartially, f), (b, g) => (u(), v("div", V({
|
|
597
607
|
class: "bs-boolean",
|
|
598
608
|
"data-component": "bs-checkbox",
|
|
599
609
|
"data-size": e.size
|
|
600
|
-
}, c(
|
|
601
|
-
m("input",
|
|
610
|
+
}, c(s)), [
|
|
611
|
+
m("input", V({
|
|
602
612
|
ref_key: "inputEl",
|
|
603
613
|
ref: i,
|
|
604
614
|
checked: r.value,
|
|
605
615
|
disabled: e.disabled,
|
|
606
|
-
id:
|
|
616
|
+
id: d.value,
|
|
607
617
|
required: e.required,
|
|
608
618
|
type: "checkbox",
|
|
609
619
|
"data-error": e.error,
|
|
610
620
|
onChange: g[0] || (g[0] = (y) => b.$emit("update:modelValue", y.target.checked))
|
|
611
|
-
}, c(o)), null, 16,
|
|
621
|
+
}, c(o)), null, 16, Rt),
|
|
612
622
|
e.label || b.$slots.label ? (u(), A(c(_), {
|
|
613
623
|
key: 0,
|
|
614
|
-
for:
|
|
624
|
+
for: d.value,
|
|
615
625
|
disabled: e.disabled,
|
|
616
626
|
required: e.required
|
|
617
627
|
}, {
|
|
@@ -622,9 +632,9 @@ const Et = {
|
|
|
622
632
|
]),
|
|
623
633
|
_: 3
|
|
624
634
|
}, 8, ["for", "disabled", "required"])) : $("", !0)
|
|
625
|
-
], 16,
|
|
635
|
+
], 16, Mt));
|
|
626
636
|
}
|
|
627
|
-
}),
|
|
637
|
+
}), Nt = { key: 0 }, Ot = { class: "bs-circle-button-icon" }, Wt = { key: 1 }, qn = {
|
|
628
638
|
__name: "BsCircleButton",
|
|
629
639
|
props: {
|
|
630
640
|
disabled: {
|
|
@@ -667,27 +677,27 @@ const Et = {
|
|
|
667
677
|
}
|
|
668
678
|
},
|
|
669
679
|
setup(e) {
|
|
670
|
-
const a = e, t =
|
|
680
|
+
const a = e, t = N(), { rootTag: l, attrsToBind: n } = he(a, t), { icon: o } = le(a, "icon"), { onLinkClick: s } = ie(a), i = p(() => a.textBtn ? {} : a.href ? { title: a.label } : { "aria-label": a.label }), d = p(() => {
|
|
671
681
|
if (a.hoverEffect)
|
|
672
682
|
return a.iconPosition;
|
|
673
683
|
}), r = p(() => a.textBtn && a.iconPosition !== "left"), f = p(() => a.textBtn && a.iconPosition === "left");
|
|
674
|
-
return (b, g) => (u(), A(U(c(l)),
|
|
684
|
+
return (b, g) => (u(), A(U(c(l)), V({
|
|
675
685
|
class: "bs-circle-button",
|
|
676
686
|
"data-disabled": e.disabled,
|
|
677
|
-
"data-direction":
|
|
687
|
+
"data-direction": d.value,
|
|
678
688
|
"data-ghost": e.ghostBtn,
|
|
679
689
|
"data-size": e.size,
|
|
680
690
|
"data-text": e.textBtn,
|
|
681
691
|
href: e.href
|
|
682
|
-
}, { ...c(n), ...i.value }, { onClick: c(
|
|
692
|
+
}, { ...c(n), ...i.value }, { onClick: c(s) }), {
|
|
683
693
|
default: C(() => [
|
|
684
|
-
r.value ? (u(), v("span",
|
|
694
|
+
r.value ? (u(), v("span", Nt, T(e.label), 1)) : $("", !0),
|
|
685
695
|
m("span", Ot, [
|
|
686
696
|
I(b.$slots, "icon", {}, () => [
|
|
687
697
|
(u(), A(U(c(o)), { size: e.size }, null, 8, ["size"]))
|
|
688
698
|
])
|
|
689
699
|
]),
|
|
690
|
-
f.value ? (u(), v("span",
|
|
700
|
+
f.value ? (u(), v("span", Wt, T(e.label), 1)) : $("", !0)
|
|
691
701
|
]),
|
|
692
702
|
_: 3
|
|
693
703
|
}, 16, ["data-disabled", "data-direction", "data-ghost", "data-size", "data-text", "href", "onClick"]));
|
|
@@ -736,15 +746,15 @@ const Et = {
|
|
|
736
746
|
],
|
|
737
747
|
setup(e, { emit: a }) {
|
|
738
748
|
const t = e, l = a, n = [];
|
|
739
|
-
function o(
|
|
749
|
+
function o(d, r) {
|
|
740
750
|
const { duration: f, enterClass: b, enterAttribute: g } = t;
|
|
741
751
|
n.push(setTimeout(() => {
|
|
742
|
-
b &&
|
|
752
|
+
b && d.classList.add(b), g && d.setAttribute(g, ""), n.push(setTimeout(() => {
|
|
743
753
|
r();
|
|
744
|
-
}, f)), l("enter",
|
|
754
|
+
}, f)), l("enter", d);
|
|
745
755
|
}));
|
|
746
756
|
}
|
|
747
|
-
function d
|
|
757
|
+
function s(d, r) {
|
|
748
758
|
const {
|
|
749
759
|
duration: f,
|
|
750
760
|
enterClass: b,
|
|
@@ -752,19 +762,19 @@ const Et = {
|
|
|
752
762
|
leaveClass: y,
|
|
753
763
|
leaveAttribute: L
|
|
754
764
|
} = t;
|
|
755
|
-
|
|
765
|
+
d.classList.remove(b), d.removeAttribute(g), y && d.classList.add(y), L && d.setAttribute(L, ""), n.push(setTimeout(() => {
|
|
756
766
|
r();
|
|
757
|
-
}, f)), l("leave",
|
|
767
|
+
}, f)), l("leave", d);
|
|
758
768
|
}
|
|
759
|
-
function i(
|
|
769
|
+
function i(d) {
|
|
760
770
|
const { leaveClass: r, leaveAttribute: f } = t;
|
|
761
|
-
|
|
771
|
+
d.classList.remove(r), d.removeAttribute(f), l("after-leave", d);
|
|
762
772
|
}
|
|
763
773
|
return ne(() => {
|
|
764
|
-
n.forEach((
|
|
765
|
-
clearTimeout(
|
|
774
|
+
n.forEach((d) => {
|
|
775
|
+
clearTimeout(d);
|
|
766
776
|
});
|
|
767
|
-
}), (
|
|
777
|
+
}), (d, r) => e.preloaded ? We((u(), A(me, {
|
|
768
778
|
key: 0,
|
|
769
779
|
css: !1,
|
|
770
780
|
onBeforeEnter: r[0] || (r[0] = (f) => l("before-enter", f)),
|
|
@@ -772,16 +782,16 @@ const Et = {
|
|
|
772
782
|
onAfterEnter: r[1] || (r[1] = (f) => l("after-enter", f)),
|
|
773
783
|
onEnterCancelled: r[2] || (r[2] = (f) => l("enter-cancelled", f)),
|
|
774
784
|
onBeforeLeave: r[3] || (r[3] = (f) => l("before-leave", f)),
|
|
775
|
-
onLeave:
|
|
785
|
+
onLeave: s,
|
|
776
786
|
onAfterLeave: i,
|
|
777
787
|
onLeaveCancelled: r[4] || (r[4] = (f) => l("leave-cancelled", f))
|
|
778
788
|
}, {
|
|
779
789
|
default: C(() => [
|
|
780
|
-
I(
|
|
790
|
+
I(d.$slots, "default")
|
|
781
791
|
]),
|
|
782
792
|
_: 3
|
|
783
793
|
}, 512)), [
|
|
784
|
-
[
|
|
794
|
+
[je, e.shown]
|
|
785
795
|
]) : (u(), A(me, {
|
|
786
796
|
key: 1,
|
|
787
797
|
css: !1,
|
|
@@ -790,17 +800,17 @@ const Et = {
|
|
|
790
800
|
onAfterEnter: r[6] || (r[6] = (f) => l("after-enter", f)),
|
|
791
801
|
onEnterCancelled: r[7] || (r[7] = (f) => l("enter-cancelled", f)),
|
|
792
802
|
onBeforeLeave: r[8] || (r[8] = (f) => l("before-leave", f)),
|
|
793
|
-
onLeave:
|
|
803
|
+
onLeave: s,
|
|
794
804
|
onAfterLeave: i,
|
|
795
805
|
onLeaveCancelled: r[9] || (r[9] = (f) => l("leave-cancelled", f))
|
|
796
806
|
}, {
|
|
797
807
|
default: C(() => [
|
|
798
|
-
e.shown ? I(
|
|
808
|
+
e.shown ? I(d.$slots, "default", { key: 0 }) : $("", !0)
|
|
799
809
|
]),
|
|
800
810
|
_: 3
|
|
801
811
|
}));
|
|
802
812
|
}
|
|
803
|
-
},
|
|
813
|
+
}, jt = ["data-width"], Gt = { key: 0 }, Ft = { key: 0 }, Se = {
|
|
804
814
|
__name: "BsDropdownInternal",
|
|
805
815
|
props: {
|
|
806
816
|
shown: {
|
|
@@ -850,12 +860,12 @@ const Et = {
|
|
|
850
860
|
setup(e, { emit: a }) {
|
|
851
861
|
const t = e, l = a, n = k(null);
|
|
852
862
|
let o = !1;
|
|
853
|
-
|
|
863
|
+
ft([n], () => {
|
|
854
864
|
o && l("close");
|
|
855
865
|
}), re(["Escape"], () => {
|
|
856
866
|
o && l("close");
|
|
857
867
|
});
|
|
858
|
-
function
|
|
868
|
+
function s() {
|
|
859
869
|
const y = (t.containerRef || document.getElementById(t.containerId)).getBoundingClientRect(), L = document.getElementById(t.anchorId).getBoundingClientRect(), M = n.value.getBoundingClientRect();
|
|
860
870
|
if (t.position === "top") {
|
|
861
871
|
const w = y.bottom - L.bottom;
|
|
@@ -881,8 +891,8 @@ const Et = {
|
|
|
881
891
|
} else
|
|
882
892
|
n.value.style.setProperty("--dropdown-wscreen-width", "");
|
|
883
893
|
}
|
|
884
|
-
function
|
|
885
|
-
|
|
894
|
+
function d() {
|
|
895
|
+
s(), i(), l("enter");
|
|
886
896
|
}
|
|
887
897
|
function r() {
|
|
888
898
|
o = !0, l("after-enter");
|
|
@@ -899,20 +909,20 @@ const Et = {
|
|
|
899
909
|
duration: 75,
|
|
900
910
|
"enter-attribute": "data-shown",
|
|
901
911
|
onAfterEnter: y[1] || (y[1] = (L) => r()),
|
|
902
|
-
onEnter: y[2] || (y[2] = (L) =>
|
|
912
|
+
onEnter: y[2] || (y[2] = (L) => d()),
|
|
903
913
|
onAfterLeave: y[3] || (y[3] = (L) => f())
|
|
904
914
|
}, {
|
|
905
915
|
default: C(() => [
|
|
906
|
-
m("div",
|
|
916
|
+
m("div", V({
|
|
907
917
|
ref_key: "dropdownRef",
|
|
908
918
|
ref: n,
|
|
909
919
|
class: "bs-dropdown",
|
|
910
920
|
"data-width": b()
|
|
911
921
|
}, g.$attrs), [
|
|
912
|
-
e.helperText ? (u(), v("header",
|
|
922
|
+
e.helperText ? (u(), v("header", Gt, [
|
|
913
923
|
m("div", null, [
|
|
914
924
|
m("h3", null, T(e.helperText), 1),
|
|
915
|
-
e.helperDescription ? (u(), v("p",
|
|
925
|
+
e.helperDescription ? (u(), v("p", Ft, T(e.helperDescription), 1)) : $("", !0)
|
|
916
926
|
]),
|
|
917
927
|
m("button", {
|
|
918
928
|
type: "button",
|
|
@@ -923,15 +933,15 @@ const Et = {
|
|
|
923
933
|
])
|
|
924
934
|
])) : $("", !0),
|
|
925
935
|
I(g.$slots, "default")
|
|
926
|
-
], 16,
|
|
936
|
+
], 16, jt)
|
|
927
937
|
]),
|
|
928
938
|
_: 3
|
|
929
939
|
}, 8, ["shown", "preloaded"]));
|
|
930
940
|
}
|
|
931
|
-
},
|
|
941
|
+
}, Ut = {
|
|
932
942
|
key: 0,
|
|
933
943
|
class: "bs-dropdown-backdrop"
|
|
934
|
-
},
|
|
944
|
+
}, Ht = {
|
|
935
945
|
__name: "BsDropdown",
|
|
936
946
|
props: {
|
|
937
947
|
shown: {
|
|
@@ -1011,27 +1021,27 @@ const Et = {
|
|
|
1011
1021
|
"after-leave"
|
|
1012
1022
|
],
|
|
1013
1023
|
setup(e, { emit: a }) {
|
|
1014
|
-
const t = e, l = a, n = k(null), { transition: o } = se(t),
|
|
1015
|
-
return (
|
|
1016
|
-
c(o) ? (u(), v("div",
|
|
1017
|
-
e.containerId ? (u(), A(c(Se),
|
|
1024
|
+
const t = e, l = a, n = k(null), { transition: o } = se(t), s = p(() => t.toggleId ? t.toggleId : t.anchorId), i = p(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position);
|
|
1025
|
+
return (d, r) => (u(), v(R, null, [
|
|
1026
|
+
c(o) ? (u(), v("div", Ut)) : $("", !0),
|
|
1027
|
+
e.containerId ? (u(), A(c(Se), V({
|
|
1018
1028
|
key: 1,
|
|
1019
1029
|
shown: c(o),
|
|
1020
1030
|
preloaded: e.preloaded,
|
|
1021
|
-
"anchor-id":
|
|
1031
|
+
"anchor-id": s.value,
|
|
1022
1032
|
"container-id": e.containerId,
|
|
1023
1033
|
"helper-description": e.helperDescription,
|
|
1024
1034
|
"helper-text": e.helperText,
|
|
1025
1035
|
position: i.value,
|
|
1026
1036
|
width: e.width
|
|
1027
|
-
},
|
|
1037
|
+
}, d.$attrs, {
|
|
1028
1038
|
onClose: r[0] || (r[0] = (f) => l("close")),
|
|
1029
1039
|
onAfterEnter: r[1] || (r[1] = (f) => l("after-enter")),
|
|
1030
1040
|
onEnter: r[2] || (r[2] = (f) => l("enter")),
|
|
1031
1041
|
onAfterLeave: r[3] || (r[3] = (f) => l("after-leave"))
|
|
1032
1042
|
}), {
|
|
1033
1043
|
default: C(() => [
|
|
1034
|
-
I(
|
|
1044
|
+
I(d.$slots, "default")
|
|
1035
1045
|
]),
|
|
1036
1046
|
_: 3
|
|
1037
1047
|
}, 16, ["shown", "preloaded", "anchor-id", "container-id", "helper-description", "helper-text", "position", "width"])) : (u(), v("div", {
|
|
@@ -1040,34 +1050,34 @@ const Et = {
|
|
|
1040
1050
|
ref: n,
|
|
1041
1051
|
style: { position: "relative" }
|
|
1042
1052
|
}, [
|
|
1043
|
-
D(c(Se),
|
|
1053
|
+
D(c(Se), V({
|
|
1044
1054
|
shown: c(o),
|
|
1045
1055
|
preloaded: e.preloaded,
|
|
1046
|
-
"anchor-id":
|
|
1056
|
+
"anchor-id": s.value,
|
|
1047
1057
|
"container-ref": n.value,
|
|
1048
1058
|
"helper-description": e.helperDescription,
|
|
1049
1059
|
"helper-text": e.helperText,
|
|
1050
1060
|
position: i.value,
|
|
1051
1061
|
width: e.width
|
|
1052
|
-
},
|
|
1062
|
+
}, d.$attrs, {
|
|
1053
1063
|
onClose: r[4] || (r[4] = (f) => l("close")),
|
|
1054
1064
|
onAfterEnter: r[5] || (r[5] = (f) => l("after-enter")),
|
|
1055
1065
|
onEnter: r[6] || (r[6] = (f) => l("enter")),
|
|
1056
1066
|
onAfterLeave: r[7] || (r[7] = (f) => l("after-leave"))
|
|
1057
1067
|
}), {
|
|
1058
1068
|
default: C(() => [
|
|
1059
|
-
I(
|
|
1069
|
+
I(d.$slots, "default")
|
|
1060
1070
|
]),
|
|
1061
1071
|
_: 3
|
|
1062
1072
|
}, 16, ["shown", "preloaded", "anchor-id", "container-ref", "helper-description", "helper-text", "position", "width"])
|
|
1063
1073
|
], 512))
|
|
1064
1074
|
], 64));
|
|
1065
1075
|
}
|
|
1066
|
-
},
|
|
1076
|
+
}, Kt = ["data-value", "data-variant", "id"], Yt = {
|
|
1067
1077
|
__name: "BsDropdownOption",
|
|
1068
1078
|
props: {
|
|
1069
1079
|
value: {
|
|
1070
|
-
type: String,
|
|
1080
|
+
type: [String, Number],
|
|
1071
1081
|
required: !0
|
|
1072
1082
|
},
|
|
1073
1083
|
variant: {
|
|
@@ -1078,14 +1088,14 @@ const Et = {
|
|
|
1078
1088
|
setup(e) {
|
|
1079
1089
|
const a = e, t = k(null), l = te("optionsId"), n = te("handleSelect"), o = p(() => `${l}-option-${a.value}`);
|
|
1080
1090
|
re([" ", "Enter", "NumpadEnter"], (i) => {
|
|
1081
|
-
var
|
|
1082
|
-
|
|
1091
|
+
var d;
|
|
1092
|
+
s(), (d = t.value.querySelector("a")) == null || d.click(), i.preventDefault();
|
|
1083
1093
|
}, t);
|
|
1084
|
-
function
|
|
1094
|
+
function s() {
|
|
1085
1095
|
var i;
|
|
1086
1096
|
n(o.value, a.value), (i = t.value.querySelector("a")) == null || i.click();
|
|
1087
1097
|
}
|
|
1088
|
-
return (i,
|
|
1098
|
+
return (i, d) => (u(), v("li", {
|
|
1089
1099
|
"data-component": "bs-dropdown-option",
|
|
1090
1100
|
"data-value": a.value,
|
|
1091
1101
|
ref_key: "optionRef",
|
|
@@ -1094,12 +1104,12 @@ const Et = {
|
|
|
1094
1104
|
"data-variant": e.variant || void 0,
|
|
1095
1105
|
id: o.value,
|
|
1096
1106
|
tabIndex: -1,
|
|
1097
|
-
onClick:
|
|
1107
|
+
onClick: s
|
|
1098
1108
|
}, [
|
|
1099
1109
|
I(i.$slots, "default")
|
|
1100
|
-
], 8,
|
|
1110
|
+
], 8, Kt));
|
|
1101
1111
|
}
|
|
1102
|
-
},
|
|
1112
|
+
}, Xt = ["aria-activedescendant", "aria-label", "id"], Zt = {
|
|
1103
1113
|
__name: "BsDropdownOptionList",
|
|
1104
1114
|
props: {
|
|
1105
1115
|
optionsId: {
|
|
@@ -1127,45 +1137,45 @@ const Et = {
|
|
|
1127
1137
|
},
|
|
1128
1138
|
/** @Deprecated - Use modelValue (or v-model) instead */
|
|
1129
1139
|
selectedValue: {
|
|
1130
|
-
type: String,
|
|
1140
|
+
type: [String, Number],
|
|
1131
1141
|
default: void 0
|
|
1132
1142
|
},
|
|
1133
1143
|
modelValue: {
|
|
1134
|
-
type: String,
|
|
1144
|
+
type: [String, Number],
|
|
1135
1145
|
default: void 0
|
|
1136
1146
|
}
|
|
1137
1147
|
},
|
|
1138
1148
|
emits: ["optselected", "update:modelValue", "close"],
|
|
1139
1149
|
setup(e, { emit: a }) {
|
|
1140
1150
|
const t = e, l = a, n = k(null), o = k(null);
|
|
1141
|
-
let
|
|
1151
|
+
let s = null, i = -1, d = -1;
|
|
1142
1152
|
ae("optionsId", t.optionsId), ae("handleSelect", P);
|
|
1143
1153
|
function r() {
|
|
1144
|
-
return
|
|
1154
|
+
return s || (s = Array.from(n.value.querySelectorAll('[data-component="bs-dropdown-option"]'))), s;
|
|
1145
1155
|
}
|
|
1146
|
-
|
|
1156
|
+
O(() => {
|
|
1147
1157
|
g(), document.addEventListener("keydown", L);
|
|
1148
|
-
}),
|
|
1158
|
+
}), Ge(() => {
|
|
1149
1159
|
document.removeEventListener("keydown", L);
|
|
1150
|
-
}),
|
|
1160
|
+
}), E(() => t.visible, () => {
|
|
1151
1161
|
g();
|
|
1152
|
-
}),
|
|
1162
|
+
}), E(() => t.shown, () => {
|
|
1153
1163
|
g();
|
|
1154
1164
|
});
|
|
1155
1165
|
const f = p(() => t.visible || t.shown), b = p(() => t.modelValue || t.selectedValue);
|
|
1156
1166
|
function g() {
|
|
1157
1167
|
var w, S, q, j, ee;
|
|
1158
|
-
f.value ? (
|
|
1159
|
-
(J) => J.getAttribute("data-value") === b.value
|
|
1160
|
-
),
|
|
1168
|
+
f.value ? (d = r().findIndex(
|
|
1169
|
+
(J) => J.getAttribute("data-value") === String(b.value)
|
|
1170
|
+
), d > -1 && ((w = r()[d]) == null || w.setAttribute("data-selected", ""), (S = r()[d]) == null || S.setAttribute("aria-selected", "true"), i = d, t.focusDelay > 0 ? setTimeout(() => {
|
|
1161
1171
|
var J;
|
|
1162
|
-
(J = r()[
|
|
1163
|
-
}, t.focusDelay) : (q = r()[
|
|
1172
|
+
(J = r()[d]) == null || J.focus();
|
|
1173
|
+
}, t.focusDelay) : (q = r()[d]) == null || q.focus())) : ((j = r()[d]) == null || j.removeAttribute("data-selected"), (ee = r()[d]) == null || ee.removeAttribute("aria-selected"));
|
|
1164
1174
|
}
|
|
1165
|
-
|
|
1175
|
+
vt(
|
|
1166
1176
|
n,
|
|
1167
1177
|
() => {
|
|
1168
|
-
|
|
1178
|
+
s = null;
|
|
1169
1179
|
},
|
|
1170
1180
|
{ childList: !0 }
|
|
1171
1181
|
);
|
|
@@ -1224,9 +1234,9 @@ const Et = {
|
|
|
1224
1234
|
role: "listbox"
|
|
1225
1235
|
}, [
|
|
1226
1236
|
I(w.$slots, "default")
|
|
1227
|
-
], 8,
|
|
1237
|
+
], 8, Xt));
|
|
1228
1238
|
}
|
|
1229
|
-
},
|
|
1239
|
+
}, Jt = {
|
|
1230
1240
|
__name: "BsDropdownWithOptions",
|
|
1231
1241
|
props: {
|
|
1232
1242
|
// OPTION LIST PROPS
|
|
@@ -1240,11 +1250,11 @@ const Et = {
|
|
|
1240
1250
|
},
|
|
1241
1251
|
/** @Deprecated - Use modelValue (or v-model) instead */
|
|
1242
1252
|
selectedValue: {
|
|
1243
|
-
type: String,
|
|
1253
|
+
type: [String, Number],
|
|
1244
1254
|
default: void 0
|
|
1245
1255
|
},
|
|
1246
1256
|
modelValue: {
|
|
1247
|
-
type: String,
|
|
1257
|
+
type: [String, Number],
|
|
1248
1258
|
default: void 0
|
|
1249
1259
|
},
|
|
1250
1260
|
// DROPDOWN PROPS
|
|
@@ -1333,10 +1343,10 @@ const Et = {
|
|
|
1333
1343
|
function o(i) {
|
|
1334
1344
|
l.value = !1, t("optselected", i), t("update:modelValue", i), t("close");
|
|
1335
1345
|
}
|
|
1336
|
-
function
|
|
1346
|
+
function s() {
|
|
1337
1347
|
l.value && (l.value = !1, t("close"));
|
|
1338
1348
|
}
|
|
1339
|
-
return (i,
|
|
1349
|
+
return (i, d) => (u(), A(c(Ht), {
|
|
1340
1350
|
shown: e.shown,
|
|
1341
1351
|
preloaded: e.preloaded,
|
|
1342
1352
|
"anchor-id": e.anchorId,
|
|
@@ -1352,21 +1362,20 @@ const Et = {
|
|
|
1352
1362
|
"toggle-id": e.toggleId,
|
|
1353
1363
|
top: e.top,
|
|
1354
1364
|
width: e.width,
|
|
1355
|
-
onClose:
|
|
1356
|
-
onAfterEnter:
|
|
1365
|
+
onClose: s,
|
|
1366
|
+
onAfterEnter: d[0] || (d[0] = (r) => t("after-enter")),
|
|
1357
1367
|
onEnter: n,
|
|
1358
|
-
onAfterLeave:
|
|
1368
|
+
onAfterLeave: d[1] || (d[1] = (r) => t("after-leave"))
|
|
1359
1369
|
}, {
|
|
1360
1370
|
default: C(() => [
|
|
1361
|
-
D(c(
|
|
1371
|
+
D(c(Zt), {
|
|
1362
1372
|
label: e.label,
|
|
1363
1373
|
"model-value": e.modelValue,
|
|
1364
1374
|
"options-id": e.optionsId,
|
|
1365
1375
|
"selected-value": e.selectedValue,
|
|
1366
1376
|
shown: l.value,
|
|
1367
|
-
onOptselected: o,
|
|
1368
1377
|
"onUpdate:modelValue": o,
|
|
1369
|
-
onClose:
|
|
1378
|
+
onClose: s
|
|
1370
1379
|
}, {
|
|
1371
1380
|
default: C(() => [
|
|
1372
1381
|
I(i.$slots, "default")
|
|
@@ -1377,10 +1386,10 @@ const Et = {
|
|
|
1377
1386
|
_: 3
|
|
1378
1387
|
}, 8, ["shown", "preloaded", "anchor-id", "center", "container-id", "enter-controlled", "enter-trigger", "helper-description", "helper-text", "leave-trigger", "position", "right", "toggle-id", "top", "width"]));
|
|
1379
1388
|
}
|
|
1380
|
-
},
|
|
1389
|
+
}, Qt = {
|
|
1381
1390
|
class: "bs-field-details",
|
|
1382
1391
|
"data-component": "bs-field-details"
|
|
1383
|
-
},
|
|
1392
|
+
}, _t = ["id", "data-error"], ea = ["data-error"], pe = {
|
|
1384
1393
|
__name: "BsFieldDetails",
|
|
1385
1394
|
props: {
|
|
1386
1395
|
/** The number of characters that have been entered by the user. */
|
|
@@ -1401,22 +1410,22 @@ const Et = {
|
|
|
1401
1410
|
},
|
|
1402
1411
|
setup(e) {
|
|
1403
1412
|
const a = e, t = p(() => a.error && a.errorMsg || a.hint);
|
|
1404
|
-
return (l, n) => (u(), v("div",
|
|
1413
|
+
return (l, n) => (u(), v("div", Qt, [
|
|
1405
1414
|
t.value ? (u(), v("span", {
|
|
1406
1415
|
key: 0,
|
|
1407
1416
|
id: e.hintId,
|
|
1408
1417
|
class: "bs-hint",
|
|
1409
1418
|
"data-error": e.error
|
|
1410
|
-
}, T(t.value), 9,
|
|
1419
|
+
}, T(t.value), 9, _t)) : $("", !0),
|
|
1411
1420
|
e.charMax ? (u(), v("span", {
|
|
1412
1421
|
key: 1,
|
|
1413
1422
|
"aria-description": "character count over character limit for the preceding text field",
|
|
1414
1423
|
class: "bs-character-count",
|
|
1415
1424
|
"data-error": a.charCount > a.charMax
|
|
1416
|
-
}, T(a.charCount || "0") + " / " + T(a.charMax), 9,
|
|
1425
|
+
}, T(a.charCount || "0") + " / " + T(a.charMax), 9, ea)) : $("", !0)
|
|
1417
1426
|
]));
|
|
1418
1427
|
}
|
|
1419
|
-
},
|
|
1428
|
+
}, ta = ["view-box"], aa = ["id"], na = ["offset", "stop-color"], zn = {
|
|
1420
1429
|
__name: "BsIconGradientWrapper",
|
|
1421
1430
|
setup(e) {
|
|
1422
1431
|
const a = k(null), t = k(null), l = [
|
|
@@ -1424,14 +1433,14 @@ const Et = {
|
|
|
1424
1433
|
{ offset: 0.5466, color: "#1C0087" },
|
|
1425
1434
|
{ offset: 0.9715, color: "#0086EA" }
|
|
1426
1435
|
], [n] = H();
|
|
1427
|
-
return
|
|
1436
|
+
return O(() => {
|
|
1428
1437
|
t.value = a.value.querySelector("svg").getAttribute("viewBox") || "0 0 0 0";
|
|
1429
|
-
}), (o,
|
|
1438
|
+
}), (o, s) => (u(), v(R, null, [
|
|
1430
1439
|
m("span", {
|
|
1431
1440
|
ref_key: "svgWrapperRef",
|
|
1432
1441
|
ref: a,
|
|
1433
1442
|
class: "bs-icon-gradient-wrapper",
|
|
1434
|
-
style:
|
|
1443
|
+
style: Fe(`fill: url(#${c(n)});`)
|
|
1435
1444
|
}, [
|
|
1436
1445
|
I(o.$slots, "default")
|
|
1437
1446
|
], 4),
|
|
@@ -1453,12 +1462,12 @@ const Et = {
|
|
|
1453
1462
|
key: i.offset,
|
|
1454
1463
|
offset: i.offset,
|
|
1455
1464
|
"stop-color": i.color
|
|
1456
|
-
}, null, 8,
|
|
1457
|
-
], 8,
|
|
1458
|
-
], 8,
|
|
1465
|
+
}, null, 8, na)), 64))
|
|
1466
|
+
], 8, aa)
|
|
1467
|
+
], 8, ta))
|
|
1459
1468
|
], 64));
|
|
1460
1469
|
}
|
|
1461
|
-
},
|
|
1470
|
+
}, la = ["data-error", "id", "value"], we = {
|
|
1462
1471
|
__name: "BsInput",
|
|
1463
1472
|
props: {
|
|
1464
1473
|
error: {
|
|
@@ -1473,20 +1482,20 @@ const Et = {
|
|
|
1473
1482
|
},
|
|
1474
1483
|
emits: ["update:modelValue"],
|
|
1475
1484
|
setup(e, { emit: a }) {
|
|
1476
|
-
const t = e, l = a, n =
|
|
1477
|
-
function
|
|
1478
|
-
const
|
|
1479
|
-
l("update:modelValue",
|
|
1485
|
+
const t = e, l = a, n = N(), o = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
1486
|
+
function s(i) {
|
|
1487
|
+
const d = n.type === "number" ? parseInt(i.target.value) : i.target.value;
|
|
1488
|
+
l("update:modelValue", d);
|
|
1480
1489
|
}
|
|
1481
|
-
return (i,
|
|
1490
|
+
return (i, d) => (u(), v("input", V({
|
|
1482
1491
|
"data-component": "bs-input",
|
|
1483
1492
|
"data-error": e.error,
|
|
1484
1493
|
id: i.$attrs.id || e.inputId,
|
|
1485
1494
|
value: e.value || e.modelValue,
|
|
1486
|
-
onInput:
|
|
1487
|
-
}, o.value), null, 16,
|
|
1495
|
+
onInput: s
|
|
1496
|
+
}, o.value), null, 16, la));
|
|
1488
1497
|
}
|
|
1489
|
-
},
|
|
1498
|
+
}, oa = ["data-disabled", "data-error", "data-variant", "data-multifocus"], ia = {
|
|
1490
1499
|
__name: "BsInputAddon",
|
|
1491
1500
|
props: {
|
|
1492
1501
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -1504,9 +1513,9 @@ const Et = {
|
|
|
1504
1513
|
"data-multifocus": e.multifocus
|
|
1505
1514
|
}, [
|
|
1506
1515
|
I(a.$slots, "default")
|
|
1507
|
-
], 8,
|
|
1516
|
+
], 8, oa));
|
|
1508
1517
|
}
|
|
1509
|
-
},
|
|
1518
|
+
}, Mn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1510
1519
|
__name: "BsInputField",
|
|
1511
1520
|
props: {
|
|
1512
1521
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -1553,12 +1562,12 @@ const Et = {
|
|
|
1553
1562
|
},
|
|
1554
1563
|
emits: ["update:modelValue"],
|
|
1555
1564
|
setup(e, { emit: a }) {
|
|
1556
|
-
const t = e, l =
|
|
1565
|
+
const t = e, l = N(), [n, o] = H(2), { toChild: s, toRoot: i } = Z(t, l), d = p(() => {
|
|
1557
1566
|
var b, g;
|
|
1558
1567
|
return ((g = (b = t.hints) == null ? void 0 : b.join) == null ? void 0 : g.call(b, `
|
|
1559
1568
|
`)) || t.hints;
|
|
1560
|
-
}), r = p(() => t.error && t.errorMsg || t.hint ||
|
|
1561
|
-
return (b, g) => (u(), v("div",
|
|
1569
|
+
}), r = p(() => t.error && t.errorMsg || t.hint || d.value || void 0), f = p(() => t.inputId || n.value);
|
|
1570
|
+
return (b, g) => (u(), v("div", V({ "data-component": "bs-input-field" }, c(i)), [
|
|
1562
1571
|
e.label || b.$slots.label ? (u(), A(c(_), {
|
|
1563
1572
|
key: 0,
|
|
1564
1573
|
for: f.value,
|
|
@@ -1572,7 +1581,7 @@ const Et = {
|
|
|
1572
1581
|
]),
|
|
1573
1582
|
_: 3
|
|
1574
1583
|
}, 8, ["for", "disabled", "required"])) : $("", !0),
|
|
1575
|
-
D(c(we),
|
|
1584
|
+
D(c(we), V({
|
|
1576
1585
|
disabled: e.disabled,
|
|
1577
1586
|
error: e.error,
|
|
1578
1587
|
"hint-id": c(o),
|
|
@@ -1582,17 +1591,17 @@ const Et = {
|
|
|
1582
1591
|
type: e.type,
|
|
1583
1592
|
value: e.value || e.modelValue,
|
|
1584
1593
|
"onUpdate:modelValue": g[0] || (g[0] = (y) => b.$emit("update:modelValue", y))
|
|
1585
|
-
}, c(
|
|
1594
|
+
}, c(s)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
|
|
1586
1595
|
r.value ? (u(), A(pe, {
|
|
1587
1596
|
key: 1,
|
|
1588
1597
|
error: e.error,
|
|
1589
1598
|
"error-msg": e.errorMsg,
|
|
1590
|
-
hint: e.hint ||
|
|
1599
|
+
hint: e.hint || d.value,
|
|
1591
1600
|
"hint-id": c(o)
|
|
1592
1601
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : $("", !0)
|
|
1593
1602
|
], 16));
|
|
1594
1603
|
}
|
|
1595
|
-
}),
|
|
1604
|
+
}), Rn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1596
1605
|
__name: "BsInputSearch",
|
|
1597
1606
|
props: {
|
|
1598
1607
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -1625,27 +1634,27 @@ const Et = {
|
|
|
1625
1634
|
},
|
|
1626
1635
|
emits: ["clear", "update:modelValue"],
|
|
1627
1636
|
setup(e, { emit: a }) {
|
|
1628
|
-
const t = e, l =
|
|
1629
|
-
return (
|
|
1637
|
+
const t = e, l = N(), { toChild: n, toRoot: o } = Z(t, l);
|
|
1638
|
+
return (s, i) => (u(), A(c(ia), V({
|
|
1630
1639
|
class: "bs-input-search",
|
|
1631
1640
|
"data-component": "bs-input-search",
|
|
1632
1641
|
disabled: e.disabled
|
|
1633
1642
|
}, c(o)), {
|
|
1634
1643
|
default: C(() => [
|
|
1635
|
-
D(c(
|
|
1636
|
-
D(c(we),
|
|
1644
|
+
D(c(Ze)),
|
|
1645
|
+
D(c(we), V({
|
|
1637
1646
|
"data-autowidth": "",
|
|
1638
1647
|
disabled: e.disabled,
|
|
1639
1648
|
"input-id": e.inputId,
|
|
1640
1649
|
placeholder: e.placeholder,
|
|
1641
1650
|
value: e.value || e.modelValue,
|
|
1642
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
1651
|
+
"onUpdate:modelValue": i[0] || (i[0] = (d) => s.$emit("update:modelValue", d))
|
|
1643
1652
|
}, c(n)), null, 16, ["disabled", "input-id", "placeholder", "value"]),
|
|
1644
1653
|
e.disabled || e.hideClear ? $("", !0) : (u(), v("button", {
|
|
1645
1654
|
key: 0,
|
|
1646
1655
|
title: "Clear",
|
|
1647
1656
|
type: "button",
|
|
1648
|
-
onClick: i[1] || (i[1] = (
|
|
1657
|
+
onClick: i[1] || (i[1] = (d) => s.$emit("clear"))
|
|
1649
1658
|
}, [
|
|
1650
1659
|
D(c(oe), { size: "sm" })
|
|
1651
1660
|
]))
|
|
@@ -1653,10 +1662,10 @@ const Et = {
|
|
|
1653
1662
|
_: 1
|
|
1654
1663
|
}, 16, ["disabled"]));
|
|
1655
1664
|
}
|
|
1656
|
-
}),
|
|
1665
|
+
}), ra = ["data-disabled", "for"], sa = /* @__PURE__ */ m("span", {
|
|
1657
1666
|
"data-required": "true",
|
|
1658
1667
|
"aria-hidden": "true"
|
|
1659
|
-
}, " *", -1),
|
|
1668
|
+
}, " *", -1), da = /* @__PURE__ */ m("span", { class: "visually-hidden" }, "required", -1), _ = {
|
|
1660
1669
|
__name: "BsLabel",
|
|
1661
1670
|
props: {
|
|
1662
1671
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -1675,18 +1684,18 @@ const Et = {
|
|
|
1675
1684
|
I(a.$slots, "default")
|
|
1676
1685
|
]),
|
|
1677
1686
|
e.required ? (u(), v(R, { key: 0 }, [
|
|
1678
|
-
|
|
1679
|
-
|
|
1687
|
+
sa,
|
|
1688
|
+
da
|
|
1680
1689
|
], 64)) : $("", !0)
|
|
1681
|
-
], 10,
|
|
1690
|
+
], 10, ra));
|
|
1682
1691
|
}
|
|
1683
|
-
},
|
|
1684
|
-
ua,
|
|
1692
|
+
}, ua = ["data-size", "data-variant"], 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", null, null, -1), pa = /* @__PURE__ */ m("span", { class: "visually-hidden" }, "Loading", -1), ga = [
|
|
1685
1693
|
ca,
|
|
1686
1694
|
fa,
|
|
1687
1695
|
va,
|
|
1688
|
-
ha
|
|
1689
|
-
|
|
1696
|
+
ha,
|
|
1697
|
+
pa
|
|
1698
|
+
], Nn = {
|
|
1690
1699
|
__name: "BsLoader",
|
|
1691
1700
|
props: {
|
|
1692
1701
|
size: {
|
|
@@ -1705,9 +1714,9 @@ const Et = {
|
|
|
1705
1714
|
"data-size": e.size,
|
|
1706
1715
|
"data-variant": e.variant,
|
|
1707
1716
|
role: "status"
|
|
1708
|
-
},
|
|
1717
|
+
}, ga, 8, ua));
|
|
1709
1718
|
}
|
|
1710
|
-
},
|
|
1719
|
+
}, ba = /* @__PURE__ */ m("div", { class: "bs-overlay" }, null, -1), ma = {
|
|
1711
1720
|
__name: "BsOverlay",
|
|
1712
1721
|
props: {
|
|
1713
1722
|
shown: {
|
|
@@ -1737,24 +1746,24 @@ const Et = {
|
|
|
1737
1746
|
emits: ["after-enter", "after-leave"],
|
|
1738
1747
|
setup(e, { emit: a }) {
|
|
1739
1748
|
const t = e, l = a, { transition: n } = se(t);
|
|
1740
|
-
return (o,
|
|
1749
|
+
return (o, s) => (u(), A(c(de), {
|
|
1741
1750
|
shown: c(n),
|
|
1742
1751
|
preloaded: e.preloaded,
|
|
1743
1752
|
duration: 75,
|
|
1744
1753
|
"enter-attribute": "data-shown",
|
|
1745
|
-
onAfterEnter:
|
|
1746
|
-
onAfterLeave:
|
|
1754
|
+
onAfterEnter: s[0] || (s[0] = (i) => l("after-enter")),
|
|
1755
|
+
onAfterLeave: s[1] || (s[1] = (i) => l("after-leave"))
|
|
1747
1756
|
}, {
|
|
1748
1757
|
default: C(() => [
|
|
1749
|
-
|
|
1758
|
+
ba
|
|
1750
1759
|
]),
|
|
1751
1760
|
_: 1
|
|
1752
1761
|
}, 8, ["shown", "preloaded"]));
|
|
1753
1762
|
}
|
|
1754
|
-
},
|
|
1763
|
+
}, ya = ["id", "role"], Ba = {
|
|
1755
1764
|
key: 0,
|
|
1756
1765
|
class: "close-button-container"
|
|
1757
|
-
},
|
|
1766
|
+
}, On = {
|
|
1758
1767
|
__name: "BsModal",
|
|
1759
1768
|
props: {
|
|
1760
1769
|
modalId: {
|
|
@@ -1803,8 +1812,8 @@ const Et = {
|
|
|
1803
1812
|
let o = !1;
|
|
1804
1813
|
return re(["Escape"], () => {
|
|
1805
1814
|
o && l("close", t.modalId);
|
|
1806
|
-
}), (
|
|
1807
|
-
D(
|
|
1815
|
+
}), (s, i) => (u(), v(R, null, [
|
|
1816
|
+
D(ma, {
|
|
1808
1817
|
shown: c(n),
|
|
1809
1818
|
preloaded: e.preloaded,
|
|
1810
1819
|
"enter-controlled": e.enterControlled,
|
|
@@ -1816,9 +1825,9 @@ const Et = {
|
|
|
1816
1825
|
preloaded: e.preloaded,
|
|
1817
1826
|
duration: 75,
|
|
1818
1827
|
"enter-attribute": "data-shown",
|
|
1819
|
-
onEnter: i[1] || (i[1] = (
|
|
1820
|
-
onAfterEnter: i[2] || (i[2] = (
|
|
1821
|
-
onAfterLeave: i[3] || (i[3] = (
|
|
1828
|
+
onEnter: i[1] || (i[1] = (d) => Ue(o) ? o.value = !0 : o = !0),
|
|
1829
|
+
onAfterEnter: i[2] || (i[2] = (d) => l("after-enter")),
|
|
1830
|
+
onAfterLeave: i[3] || (i[3] = (d) => l("after-leave"))
|
|
1822
1831
|
}, {
|
|
1823
1832
|
default: C(() => [
|
|
1824
1833
|
m("div", {
|
|
@@ -1827,33 +1836,33 @@ const Et = {
|
|
|
1827
1836
|
role: e.alert ? "alertdialog" : "dialog",
|
|
1828
1837
|
"aria-modal": "true"
|
|
1829
1838
|
}, [
|
|
1830
|
-
e.closeButton ? (u(), v("div",
|
|
1839
|
+
e.closeButton ? (u(), v("div", Ba, [
|
|
1831
1840
|
m("button", {
|
|
1832
1841
|
type: "button",
|
|
1833
1842
|
title: "Close Modal",
|
|
1834
1843
|
"aria-label": "Close Modal",
|
|
1835
|
-
onClick: i[0] || (i[0] = (
|
|
1844
|
+
onClick: i[0] || (i[0] = (d) => l("close", e.modalId))
|
|
1836
1845
|
}, [
|
|
1837
1846
|
D(c(oe), { class: "close-button" })
|
|
1838
1847
|
])
|
|
1839
1848
|
])) : $("", !0),
|
|
1840
|
-
I(
|
|
1841
|
-
], 8,
|
|
1849
|
+
I(s.$slots, "default")
|
|
1850
|
+
], 8, ya)
|
|
1842
1851
|
]),
|
|
1843
1852
|
_: 3
|
|
1844
1853
|
}, 8, ["shown", "preloaded"])
|
|
1845
1854
|
], 64));
|
|
1846
1855
|
}
|
|
1847
|
-
},
|
|
1856
|
+
}, $a = ["data-variant", "data-fixed"], Sa = {
|
|
1848
1857
|
key: 0,
|
|
1849
1858
|
class: "bs-pagination-carets"
|
|
1850
|
-
},
|
|
1859
|
+
}, wa = ["title", "disabled"], ka = { key: 0 }, Ia = ["title", "disabled"], Ta = { key: 0 }, xa = {
|
|
1851
1860
|
key: 1,
|
|
1852
1861
|
class: "bs-pagination-page-numbers"
|
|
1853
|
-
},
|
|
1862
|
+
}, Ca = ["title", "data-selected", "onClick"], Aa = { key: 2 }, La = { key: 3 }, Pa = /* @__PURE__ */ m("span", null, "Results Per Page:", -1), Da = { class: "bs-pagination-results-numbers" }, Va = ["data-selected", "disabled", "onClick"], Ea = {
|
|
1854
1863
|
key: 5,
|
|
1855
1864
|
class: "bs-pagination-carets"
|
|
1856
|
-
},
|
|
1865
|
+
}, qa = ["title", "disabled"], za = { key: 0 }, Ma = ["title", "disabled"], Ra = { key: 0 }, Wn = {
|
|
1857
1866
|
__name: "BsPagination",
|
|
1858
1867
|
props: {
|
|
1859
1868
|
// Used for all
|
|
@@ -1940,24 +1949,24 @@ const Et = {
|
|
|
1940
1949
|
emits: ["selchange", "update:modelValue"],
|
|
1941
1950
|
setup(e, { emit: a }) {
|
|
1942
1951
|
const t = e, l = a, n = k(null);
|
|
1943
|
-
|
|
1952
|
+
O(() => {
|
|
1944
1953
|
o.value ? n.value = o.value : t.variant === "results" ? n.value = M.value[0] : n.value = 1;
|
|
1945
1954
|
});
|
|
1946
1955
|
const o = p(() => t.modelValue || t.selection);
|
|
1947
|
-
|
|
1956
|
+
E(() => t.selection, (P) => {
|
|
1948
1957
|
n.value = P;
|
|
1949
|
-
}),
|
|
1958
|
+
}), E(() => t.modelValue, (P) => {
|
|
1950
1959
|
n.value = P;
|
|
1951
|
-
}),
|
|
1960
|
+
}), E(n, (P, w) => {
|
|
1952
1961
|
w !== null && (l("selchange", P), l("update:modelValue", P));
|
|
1953
1962
|
});
|
|
1954
|
-
const
|
|
1963
|
+
const s = p(() => {
|
|
1955
1964
|
if (t.variant === "group")
|
|
1956
1965
|
return Math.ceil(t.itemsCount / t.itemsPerGroup);
|
|
1957
1966
|
if (t.variant === "base")
|
|
1958
1967
|
return t.pageCount;
|
|
1959
1968
|
}), i = p(() => t.variant === "base" ? t.centerDisplay === "text" ? "group" : void 0 : t.variant);
|
|
1960
|
-
function
|
|
1969
|
+
function d() {
|
|
1961
1970
|
n.value = 1;
|
|
1962
1971
|
}
|
|
1963
1972
|
function r() {
|
|
@@ -1966,11 +1975,11 @@ const Et = {
|
|
|
1966
1975
|
function f() {
|
|
1967
1976
|
n.value = Math.min(
|
|
1968
1977
|
n.value + 1,
|
|
1969
|
-
|
|
1978
|
+
s.value
|
|
1970
1979
|
);
|
|
1971
1980
|
}
|
|
1972
1981
|
function b() {
|
|
1973
|
-
n.value =
|
|
1982
|
+
n.value = s.value;
|
|
1974
1983
|
}
|
|
1975
1984
|
const g = p(() => {
|
|
1976
1985
|
if (t.pageCount <= t.pageRange)
|
|
@@ -1981,7 +1990,7 @@ const Et = {
|
|
|
1981
1990
|
for (let j = S; j <= q; j++)
|
|
1982
1991
|
P.push(j);
|
|
1983
1992
|
return q < t.pageCount - 1 && P.push(t.breakText), P.push(t.pageCount), P;
|
|
1984
|
-
}), y = p(() => `${t.centerLabel ?? "Page"} ${n.value} of ${
|
|
1993
|
+
}), y = p(() => `${t.centerLabel ?? "Page"} ${n.value} of ${s.value}`), L = p(() => {
|
|
1985
1994
|
const P = (n.value - 1) * t.itemsPerGroup + 1, w = Math.min(P - 1 + t.itemsPerGroup, t.itemsCount);
|
|
1986
1995
|
return `${t.centerLabel ?? "Results"} ${P} - ${w} of ${t.itemsCount}`;
|
|
1987
1996
|
}), M = p(() => t.resultsIncrements.split(",").map((P) => parseInt(P)));
|
|
@@ -1990,18 +1999,18 @@ const Et = {
|
|
|
1990
1999
|
"data-variant": i.value,
|
|
1991
2000
|
"data-fixed": t.fixed
|
|
1992
2001
|
}, [
|
|
1993
|
-
e.variant === "base" || e.variant === "group" ? (u(), v("div",
|
|
2002
|
+
e.variant === "base" || e.variant === "group" ? (u(), v("div", Sa, [
|
|
1994
2003
|
e.showFirstLastButtons ? (u(), v("button", {
|
|
1995
2004
|
key: 0,
|
|
1996
2005
|
type: "button",
|
|
1997
2006
|
class: X(e.firstPageText ? "bs-pagination-word-caret" : void 0),
|
|
1998
2007
|
title: e.firstPageText,
|
|
1999
2008
|
disabled: n.value === 1,
|
|
2000
|
-
onClick:
|
|
2009
|
+
onClick: d
|
|
2001
2010
|
}, [
|
|
2002
|
-
D(c(
|
|
2003
|
-
e.firstPageText ? (u(), v("span",
|
|
2004
|
-
], 10,
|
|
2011
|
+
D(c(Je)),
|
|
2012
|
+
e.firstPageText ? (u(), v("span", ka, T(e.firstPageText), 1)) : $("", !0)
|
|
2013
|
+
], 10, wa)) : $("", !0),
|
|
2005
2014
|
m("button", {
|
|
2006
2015
|
type: "button",
|
|
2007
2016
|
class: X(e.prevPageText ? "bs-pagination-word-caret" : void 0),
|
|
@@ -2009,31 +2018,31 @@ const Et = {
|
|
|
2009
2018
|
disabled: n.value === 1,
|
|
2010
2019
|
onClick: r
|
|
2011
2020
|
}, [
|
|
2012
|
-
D(c(
|
|
2013
|
-
e.prevPageText ? (u(), v("span",
|
|
2014
|
-
], 10,
|
|
2021
|
+
D(c(Qe)),
|
|
2022
|
+
e.prevPageText ? (u(), v("span", Ta, T(e.prevPageText), 1)) : $("", !0)
|
|
2023
|
+
], 10, Ia)
|
|
2015
2024
|
])) : $("", !0),
|
|
2016
|
-
e.variant === "base" && e.centerDisplay === "numbers" ? (u(), v("div",
|
|
2025
|
+
e.variant === "base" && e.centerDisplay === "numbers" ? (u(), v("div", xa, [
|
|
2017
2026
|
(u(!0), v(R, null, Y(g.value, (S) => (u(), v("button", {
|
|
2018
2027
|
key: `page-${S}-button`,
|
|
2019
2028
|
type: "button",
|
|
2020
2029
|
title: `Page ${S}`,
|
|
2021
2030
|
"data-selected": S === n.value,
|
|
2022
2031
|
onClick: (q) => n.value = S
|
|
2023
|
-
}, T(S), 9,
|
|
2032
|
+
}, T(S), 9, Ca))), 128))
|
|
2024
2033
|
])) : $("", !0),
|
|
2025
|
-
t.variant === "base" && t.centerDisplay === "text" ? (u(), v("span",
|
|
2026
|
-
t.variant === "group" ? (u(), v("span",
|
|
2034
|
+
t.variant === "base" && t.centerDisplay === "text" ? (u(), v("span", Aa, T(y.value), 1)) : $("", !0),
|
|
2035
|
+
t.variant === "group" ? (u(), v("span", La, T(L.value), 1)) : $("", !0),
|
|
2027
2036
|
t.variant === "results" ? (u(), v(R, { key: 4 }, [
|
|
2028
|
-
|
|
2029
|
-
m("div",
|
|
2037
|
+
Pa,
|
|
2038
|
+
m("div", Da, [
|
|
2030
2039
|
(u(!0), v(R, null, Y(M.value, (S) => (u(), v("button", {
|
|
2031
2040
|
type: "button",
|
|
2032
2041
|
key: `results-${S}`,
|
|
2033
2042
|
"data-selected": S === n.value,
|
|
2034
2043
|
disabled: n.value === S,
|
|
2035
2044
|
onClick: (q) => n.value = S
|
|
2036
|
-
}, T(S), 9,
|
|
2045
|
+
}, T(S), 9, Va))), 128))
|
|
2037
2046
|
])
|
|
2038
2047
|
], 64)) : $("", !0),
|
|
2039
2048
|
e.variant === "base" || e.variant === "group" ? (u(), v("div", Ea, [
|
|
@@ -2041,27 +2050,27 @@ const Et = {
|
|
|
2041
2050
|
type: "button",
|
|
2042
2051
|
class: X(e.nextPageText ? "bs-pagination-word-caret" : void 0),
|
|
2043
2052
|
title: e.nextPageText,
|
|
2044
|
-
disabled: n.value ===
|
|
2053
|
+
disabled: n.value === s.value,
|
|
2045
2054
|
onClick: f
|
|
2046
2055
|
}, [
|
|
2047
|
-
e.nextPageText ? (u(), v("span",
|
|
2048
|
-
D(c(
|
|
2049
|
-
], 10,
|
|
2056
|
+
e.nextPageText ? (u(), v("span", za, T(e.nextPageText), 1)) : $("", !0),
|
|
2057
|
+
D(c(_e))
|
|
2058
|
+
], 10, qa),
|
|
2050
2059
|
e.showFirstLastButtons ? (u(), v("button", {
|
|
2051
2060
|
key: 0,
|
|
2052
2061
|
type: "button",
|
|
2053
2062
|
class: X(e.lastPageText ? "bs-pagination-word-caret" : void 0),
|
|
2054
2063
|
title: e.lastPageText,
|
|
2055
|
-
disabled: n.value ===
|
|
2064
|
+
disabled: n.value === s.value,
|
|
2056
2065
|
onClick: b
|
|
2057
2066
|
}, [
|
|
2058
|
-
e.lastPageText ? (u(), v("span",
|
|
2059
|
-
D(c(
|
|
2060
|
-
], 10,
|
|
2067
|
+
e.lastPageText ? (u(), v("span", Ra, T(e.lastPageText), 1)) : $("", !0),
|
|
2068
|
+
D(c(et))
|
|
2069
|
+
], 10, Ma)) : $("", !0)
|
|
2061
2070
|
])) : $("", !0)
|
|
2062
|
-
], 8,
|
|
2071
|
+
], 8, $a));
|
|
2063
2072
|
}
|
|
2064
|
-
},
|
|
2073
|
+
}, Na = ["data-truncate"], jn = {
|
|
2065
2074
|
__name: "BsPill",
|
|
2066
2075
|
props: {
|
|
2067
2076
|
active: { type: Boolean, default: !1 },
|
|
@@ -2072,14 +2081,18 @@ const Et = {
|
|
|
2072
2081
|
type: String,
|
|
2073
2082
|
validator: (e) => ["active", "complete", "inactive", "error", "warning", "positive"].includes(e)
|
|
2074
2083
|
},
|
|
2084
|
+
truncate: {
|
|
2085
|
+
type: Boolean,
|
|
2086
|
+
default: !0
|
|
2087
|
+
},
|
|
2075
2088
|
variant: {
|
|
2076
2089
|
type: String,
|
|
2077
2090
|
validator: (e) => ["filter", "filter-add", "filter-remove", "live"].includes(e)
|
|
2078
2091
|
}
|
|
2079
2092
|
},
|
|
2080
2093
|
setup(e) {
|
|
2081
|
-
const a = e, { onLinkClick: t } = ie(a), l =
|
|
2082
|
-
return (
|
|
2094
|
+
const a = e, { onLinkClick: t } = ie(a), l = N(), { rootTag: n, attrsToBind: o } = he(a, l, "span");
|
|
2095
|
+
return (s, i) => (u(), A(U(c(n)), V({
|
|
2083
2096
|
class: "bs-pill",
|
|
2084
2097
|
"data-active": e.active,
|
|
2085
2098
|
"data-component": "bs-pill",
|
|
@@ -2089,12 +2102,14 @@ const Et = {
|
|
|
2089
2102
|
href: e.href
|
|
2090
2103
|
}, c(o), { onClick: c(t) }), {
|
|
2091
2104
|
default: C(() => [
|
|
2092
|
-
|
|
2105
|
+
m("span", { "data-truncate": e.truncate }, [
|
|
2106
|
+
I(s.$slots, "default")
|
|
2107
|
+
], 8, Na)
|
|
2093
2108
|
]),
|
|
2094
2109
|
_: 3
|
|
2095
2110
|
}, 16, ["data-active", "data-status", "data-variant", "disabled", "href", "onClick"]));
|
|
2096
2111
|
}
|
|
2097
|
-
},
|
|
2112
|
+
}, Gn = {
|
|
2098
2113
|
__name: "BsProfile",
|
|
2099
2114
|
props: {
|
|
2100
2115
|
layout: {
|
|
@@ -2123,20 +2138,20 @@ const Et = {
|
|
|
2123
2138
|
emits: ["action-toggled"],
|
|
2124
2139
|
setup(e, { emit: a }) {
|
|
2125
2140
|
const t = e, l = a, { onLinkClick: n } = ie(t), o = p(() => t.href ? "a" : "div");
|
|
2126
|
-
return (
|
|
2141
|
+
return (s, i) => (u(), A(U(o.value), {
|
|
2127
2142
|
class: "bs-profile",
|
|
2128
2143
|
href: e.href,
|
|
2129
2144
|
"data-layout": e.layout,
|
|
2130
2145
|
onClick: c(n)
|
|
2131
2146
|
}, {
|
|
2132
2147
|
default: C(() => [
|
|
2133
|
-
D(c(
|
|
2148
|
+
D(c(Xa), {
|
|
2134
2149
|
src: e.imageSrc,
|
|
2135
2150
|
size: e.imageSize,
|
|
2136
2151
|
initials: e.initials,
|
|
2137
2152
|
"profile-name": e.profileName
|
|
2138
2153
|
}, null, 8, ["src", "size", "initials", "profile-name"]),
|
|
2139
|
-
D(c(
|
|
2154
|
+
D(c(Ha), {
|
|
2140
2155
|
"profile-name": e.profileName,
|
|
2141
2156
|
company: e.company,
|
|
2142
2157
|
"job-title": e.jobTitle,
|
|
@@ -2145,13 +2160,13 @@ const Et = {
|
|
|
2145
2160
|
"action-icon": e.actionIcon,
|
|
2146
2161
|
"misc-meta": e.miscMeta,
|
|
2147
2162
|
"misc-meta-icon": e.miscMetaIcon,
|
|
2148
|
-
onActionToggled: i[0] || (i[0] = (
|
|
2163
|
+
onActionToggled: i[0] || (i[0] = (d) => l("action-toggled"))
|
|
2149
2164
|
}, {
|
|
2150
2165
|
action: C(() => [
|
|
2151
|
-
I(
|
|
2166
|
+
I(s.$slots, "action")
|
|
2152
2167
|
]),
|
|
2153
2168
|
misc: C(() => [
|
|
2154
|
-
I(
|
|
2169
|
+
I(s.$slots, "misc")
|
|
2155
2170
|
]),
|
|
2156
2171
|
_: 3
|
|
2157
2172
|
}, 8, ["profile-name", "company", "job-title", "email", "action", "action-icon", "misc-meta", "misc-meta-icon"])
|
|
@@ -2159,17 +2174,17 @@ const Et = {
|
|
|
2159
2174
|
_: 3
|
|
2160
2175
|
}, 8, ["href", "data-layout", "onClick"]));
|
|
2161
2176
|
}
|
|
2162
|
-
},
|
|
2177
|
+
}, Oa = { class: "bs-profile-details" }, Wa = {
|
|
2163
2178
|
class: "bs-profile-name",
|
|
2164
2179
|
"data-size": "sm",
|
|
2165
2180
|
"data-weight": "bold"
|
|
2166
|
-
},
|
|
2181
|
+
}, ja = {
|
|
2167
2182
|
key: 1,
|
|
2168
2183
|
"data-weight": "bold"
|
|
2169
|
-
},
|
|
2184
|
+
}, Ga = { key: 2 }, Fa = { key: 3 }, Ua = {
|
|
2170
2185
|
key: 4,
|
|
2171
2186
|
"data-icon": "true"
|
|
2172
|
-
},
|
|
2187
|
+
}, Ha = {
|
|
2173
2188
|
__name: "BsProfileDetails",
|
|
2174
2189
|
props: {
|
|
2175
2190
|
profileName: {
|
|
@@ -2186,34 +2201,40 @@ const Et = {
|
|
|
2186
2201
|
},
|
|
2187
2202
|
emits: ["action-toggled"],
|
|
2188
2203
|
setup(e, { emit: a }) {
|
|
2189
|
-
const t = e, l = a, { icon: n } = le(t
|
|
2190
|
-
function
|
|
2204
|
+
const t = e, l = a, { icon: n } = le(t, "actionIcon"), { icon: o } = le(t, "miscMetaIcon");
|
|
2205
|
+
function s(i) {
|
|
2191
2206
|
i.target.tagName === "BUTTON" && (i.preventDefault(), i.stopImmediatePropagation(), l("action-toggled"));
|
|
2192
2207
|
}
|
|
2193
|
-
return (i,
|
|
2208
|
+
return (i, d) => (u(), v("div", Oa, [
|
|
2194
2209
|
e.action || i.$slots.action ? (u(), v("button", {
|
|
2195
2210
|
key: 0,
|
|
2196
2211
|
"data-icon": "true",
|
|
2197
|
-
onClick:
|
|
2212
|
+
onClick: s
|
|
2198
2213
|
}, [
|
|
2199
2214
|
I(i.$slots, "action", {}, () => [
|
|
2200
|
-
e.actionIcon ? (u(), A(U(c(n) ? c(n) : "span"), {
|
|
2215
|
+
e.actionIcon ? (u(), A(U(c(n) ? c(n) : "span"), {
|
|
2216
|
+
key: 0,
|
|
2217
|
+
class: "bs-icon"
|
|
2218
|
+
})) : $("", !0),
|
|
2201
2219
|
W(" " + T(e.action), 1)
|
|
2202
2220
|
])
|
|
2203
2221
|
])) : $("", !0),
|
|
2204
|
-
m("span",
|
|
2205
|
-
e.company ? (u(), v("span",
|
|
2206
|
-
e.jobTitle ? (u(), v("span",
|
|
2207
|
-
e.email ? (u(), v("span",
|
|
2208
|
-
e.miscMeta || i.$slots.misc ? (u(), v("span",
|
|
2222
|
+
m("span", Wa, T(e.profileName), 1),
|
|
2223
|
+
e.company ? (u(), v("span", ja, T(e.company), 1)) : $("", !0),
|
|
2224
|
+
e.jobTitle ? (u(), v("span", Ga, T(e.jobTitle), 1)) : $("", !0),
|
|
2225
|
+
e.email ? (u(), v("span", Fa, T(e.email), 1)) : $("", !0),
|
|
2226
|
+
e.miscMeta || i.$slots.misc ? (u(), v("span", Ua, [
|
|
2209
2227
|
I(i.$slots, "misc", {}, () => [
|
|
2210
|
-
e.miscMetaIcon ? (u(), A(U(c(o) ? c(o) : "span"), {
|
|
2228
|
+
e.miscMetaIcon ? (u(), A(U(c(o) ? c(o) : "span"), {
|
|
2229
|
+
key: 0,
|
|
2230
|
+
class: "bs-icon"
|
|
2231
|
+
})) : $("", !0),
|
|
2211
2232
|
W(" " + T(e.miscMeta), 1)
|
|
2212
2233
|
])
|
|
2213
2234
|
])) : $("", !0)
|
|
2214
2235
|
]));
|
|
2215
2236
|
}
|
|
2216
|
-
},
|
|
2237
|
+
}, Ka = ["data-img-size", "data-initials", "data-no-img"], Ya = ["src", "alt"], Xa = {
|
|
2217
2238
|
__name: "BsProfileImg",
|
|
2218
2239
|
props: {
|
|
2219
2240
|
src: String,
|
|
@@ -2229,7 +2250,7 @@ const Et = {
|
|
|
2229
2250
|
},
|
|
2230
2251
|
setup(e) {
|
|
2231
2252
|
const a = e, t = k(!1), l = k(!!a.src);
|
|
2232
|
-
return
|
|
2253
|
+
return O(() => t.value = !0), (n, o) => (u(), v("div", {
|
|
2233
2254
|
class: "bs-profile-img",
|
|
2234
2255
|
"data-img-size": e.size,
|
|
2235
2256
|
"data-initials": e.initials,
|
|
@@ -2239,11 +2260,11 @@ const Et = {
|
|
|
2239
2260
|
key: 0,
|
|
2240
2261
|
src: e.src,
|
|
2241
2262
|
alt: e.profileName,
|
|
2242
|
-
onError: o[0] || (o[0] = (
|
|
2243
|
-
}, null, 40,
|
|
2244
|
-
], 8,
|
|
2263
|
+
onError: o[0] || (o[0] = (s) => l.value = !1)
|
|
2264
|
+
}, null, 40, Ya)) : $("", !0)
|
|
2265
|
+
], 8, Ka));
|
|
2245
2266
|
}
|
|
2246
|
-
},
|
|
2267
|
+
}, Za = ["data-size"], Ja = ["checked", "disabled", "id", "required", "value", "data-error"], Fn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2247
2268
|
__name: "BsRadio",
|
|
2248
2269
|
props: {
|
|
2249
2270
|
label: {
|
|
@@ -2287,14 +2308,14 @@ const Et = {
|
|
|
2287
2308
|
},
|
|
2288
2309
|
emits: ["update:modelValue"],
|
|
2289
2310
|
setup(e, { emit: a }) {
|
|
2290
|
-
const t = e, l =
|
|
2291
|
-
return (r, f) => (u(), v("div",
|
|
2311
|
+
const t = e, l = N(), [n] = H(), { toChild: o, toRoot: s } = Z(t, l), i = p(() => t.inputId || n.value), d = p(() => t.checked || t.modelValue && t.modelValue === t.value);
|
|
2312
|
+
return (r, f) => (u(), v("div", V({
|
|
2292
2313
|
class: "bs-boolean",
|
|
2293
2314
|
"data-component": "bs-radio",
|
|
2294
2315
|
"data-size": e.size
|
|
2295
|
-
}, c(
|
|
2296
|
-
m("input",
|
|
2297
|
-
checked:
|
|
2316
|
+
}, c(s)), [
|
|
2317
|
+
m("input", V({
|
|
2318
|
+
checked: d.value,
|
|
2298
2319
|
disabled: e.disabled,
|
|
2299
2320
|
id: i.value,
|
|
2300
2321
|
required: e.required,
|
|
@@ -2303,7 +2324,7 @@ const Et = {
|
|
|
2303
2324
|
"data-error": e.error
|
|
2304
2325
|
}, c(o), {
|
|
2305
2326
|
onChange: f[0] || (f[0] = (b) => r.$emit("update:modelValue", b.target.value))
|
|
2306
|
-
}), null, 16,
|
|
2327
|
+
}), null, 16, Ja),
|
|
2307
2328
|
e.label || r.$slots.label ? (u(), A(c(_), {
|
|
2308
2329
|
key: 0,
|
|
2309
2330
|
for: i.value,
|
|
@@ -2317,9 +2338,9 @@ const Et = {
|
|
|
2317
2338
|
]),
|
|
2318
2339
|
_: 3
|
|
2319
2340
|
}, 8, ["for", "disabled", "required"])) : $("", !0)
|
|
2320
|
-
], 16,
|
|
2341
|
+
], 16, Za));
|
|
2321
2342
|
}
|
|
2322
|
-
}),
|
|
2343
|
+
}), Qa = ["id", "disabled", "required", "data-error", "value"], _a = {
|
|
2323
2344
|
__name: "BsSelect",
|
|
2324
2345
|
props: {
|
|
2325
2346
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -2333,7 +2354,7 @@ const Et = {
|
|
|
2333
2354
|
emits: ["update:modelValue"],
|
|
2334
2355
|
setup(e, { emit: a }) {
|
|
2335
2356
|
const t = e, l = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
2336
|
-
return (n, o) => (u(), v("select",
|
|
2357
|
+
return (n, o) => (u(), v("select", V({
|
|
2337
2358
|
id: n.$attrs.id || e.inputId,
|
|
2338
2359
|
class: "bs-select",
|
|
2339
2360
|
"data-component": "bs-select",
|
|
@@ -2342,12 +2363,12 @@ const Et = {
|
|
|
2342
2363
|
"data-error": e.error,
|
|
2343
2364
|
value: e.value || e.modelValue
|
|
2344
2365
|
}, l.value, {
|
|
2345
|
-
onChange: o[0] || (o[0] = (
|
|
2366
|
+
onChange: o[0] || (o[0] = (s) => n.$emit("update:modelValue", s.target.value))
|
|
2346
2367
|
}), [
|
|
2347
2368
|
I(n.$slots, "default")
|
|
2348
|
-
], 16,
|
|
2369
|
+
], 16, Qa));
|
|
2349
2370
|
}
|
|
2350
|
-
},
|
|
2371
|
+
}, en = ["selected", "disabled"], tn = ["disabled", "selected", "value"], Un = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2351
2372
|
__name: "BsSelectField",
|
|
2352
2373
|
props: {
|
|
2353
2374
|
data: {
|
|
@@ -2387,12 +2408,12 @@ const Et = {
|
|
|
2387
2408
|
modelValue: [String, Number]
|
|
2388
2409
|
},
|
|
2389
2410
|
setup(e) {
|
|
2390
|
-
const a = e, t =
|
|
2411
|
+
const a = e, t = N(), [l, n] = H(2), { toChild: o, toRoot: s } = Z(a, t), i = p(() => {
|
|
2391
2412
|
var b, g;
|
|
2392
2413
|
return ((g = (b = a.hints) == null ? void 0 : b.join) == null ? void 0 : g.call(b, `
|
|
2393
2414
|
`)) || a.hints;
|
|
2394
|
-
}),
|
|
2395
|
-
return (b, g) => (u(), v("div",
|
|
2415
|
+
}), d = p(() => a.error && a.errorMsg || a.hint || i.value || void 0), r = p(() => a.inputId || l.value), f = p(() => a.value || a.modelValue);
|
|
2416
|
+
return (b, g) => (u(), v("div", V({ "data-component": "bs-select-field" }, c(s)), [
|
|
2396
2417
|
e.label || b.$slots.label ? (u(), A(c(_), {
|
|
2397
2418
|
key: 0,
|
|
2398
2419
|
for: r.value,
|
|
@@ -2406,7 +2427,7 @@ const Et = {
|
|
|
2406
2427
|
]),
|
|
2407
2428
|
_: 3
|
|
2408
2429
|
}, 8, ["for", "disabled", "required"])) : $("", !0),
|
|
2409
|
-
D(c(
|
|
2430
|
+
D(c(_a), V({
|
|
2410
2431
|
disabled: e.disabled,
|
|
2411
2432
|
error: e.error,
|
|
2412
2433
|
"hint-id": c(n),
|
|
@@ -2420,17 +2441,17 @@ const Et = {
|
|
|
2420
2441
|
selected: !f.value,
|
|
2421
2442
|
value: "",
|
|
2422
2443
|
disabled: !!f.value
|
|
2423
|
-
}, T(e.placeholder), 9,
|
|
2444
|
+
}, T(e.placeholder), 9, en),
|
|
2424
2445
|
(u(!0), v(R, null, Y(e.data, (y) => (u(), v("option", {
|
|
2425
2446
|
key: y.value,
|
|
2426
2447
|
disabled: y.disabled,
|
|
2427
2448
|
selected: f.value === y.value,
|
|
2428
2449
|
value: y.value
|
|
2429
|
-
}, T(y.label), 9,
|
|
2450
|
+
}, T(y.label), 9, tn))), 128))
|
|
2430
2451
|
]),
|
|
2431
2452
|
_: 1
|
|
2432
2453
|
}, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
|
|
2433
|
-
|
|
2454
|
+
d.value ? (u(), A(pe, {
|
|
2434
2455
|
key: 1,
|
|
2435
2456
|
"data-disabled": e.disabled,
|
|
2436
2457
|
error: e.error,
|
|
@@ -2440,7 +2461,7 @@ const Et = {
|
|
|
2440
2461
|
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : $("", !0)
|
|
2441
2462
|
], 16));
|
|
2442
2463
|
}
|
|
2443
|
-
}),
|
|
2464
|
+
}), an = ["data-size"], nn = ["data-disabled", "data-pending", "data-size"], ln = ["checked", "disabled", "id"], on = ["data-inner-on-label", "data-inner-off-label"], Hn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2444
2465
|
__name: "BsSwitch",
|
|
2445
2466
|
props: {
|
|
2446
2467
|
checked: {
|
|
@@ -2486,15 +2507,15 @@ const Et = {
|
|
|
2486
2507
|
},
|
|
2487
2508
|
emits: ["update:modelValue"],
|
|
2488
2509
|
setup(e, { emit: a }) {
|
|
2489
|
-
const t = e, l = a, n =
|
|
2490
|
-
return (f, b) => (u(), v("div",
|
|
2510
|
+
const t = e, l = a, n = N(), [o] = H(), { toChild: s, toRoot: i } = Z(t, n), d = p(() => t.inputId || o.value), r = p(() => t.checked || t.modelValue);
|
|
2511
|
+
return (f, b) => (u(), v("div", V({
|
|
2491
2512
|
class: "bs-boolean",
|
|
2492
2513
|
"data-component": "bs-switch",
|
|
2493
2514
|
"data-size": e.size
|
|
2494
2515
|
}, c(i)), [
|
|
2495
2516
|
e.label || f.$slots.label ? (u(), A(c(_), {
|
|
2496
2517
|
key: 0,
|
|
2497
|
-
for:
|
|
2518
|
+
for: d.value,
|
|
2498
2519
|
disabled: e.disabled,
|
|
2499
2520
|
hide: e.hideLabel
|
|
2500
2521
|
}, {
|
|
@@ -2511,23 +2532,23 @@ const Et = {
|
|
|
2511
2532
|
"data-pending": e.pending,
|
|
2512
2533
|
"data-size": e.size
|
|
2513
2534
|
}, [
|
|
2514
|
-
m("input",
|
|
2535
|
+
m("input", V({
|
|
2515
2536
|
checked: r.value,
|
|
2516
2537
|
disabled: e.disabled,
|
|
2517
|
-
id:
|
|
2538
|
+
id: d.value,
|
|
2518
2539
|
type: "checkbox"
|
|
2519
|
-
}, c(
|
|
2540
|
+
}, c(s), {
|
|
2520
2541
|
onChange: b[0] || (b[0] = (g) => l("update:modelValue", g.target.checked))
|
|
2521
|
-
}), null, 16,
|
|
2542
|
+
}), null, 16, ln),
|
|
2522
2543
|
m("span", {
|
|
2523
2544
|
"aria-hidden": "true",
|
|
2524
2545
|
"data-inner-on-label": e.innerOnLabel,
|
|
2525
2546
|
"data-inner-off-label": e.innerOffLabel
|
|
2526
|
-
}, null, 8,
|
|
2527
|
-
], 8,
|
|
2528
|
-
], 16,
|
|
2547
|
+
}, null, 8, on)
|
|
2548
|
+
], 8, nn)
|
|
2549
|
+
], 16, an));
|
|
2529
2550
|
}
|
|
2530
|
-
}),
|
|
2551
|
+
}), rn = ["aria-controls", "aria-selected", "data-hidden"], Kn = {
|
|
2531
2552
|
__name: "BsTab",
|
|
2532
2553
|
props: {
|
|
2533
2554
|
activeTabId: {
|
|
@@ -2544,18 +2565,18 @@ const Et = {
|
|
|
2544
2565
|
},
|
|
2545
2566
|
emits: ["tabClick"],
|
|
2546
2567
|
setup(e, { emit: a }) {
|
|
2547
|
-
const t = e, l =
|
|
2568
|
+
const t = e, l = N(), n = k(), o = p(() => t.activeTabId === l.id), s = p(() => t.panelId || `${l.id}-panel`);
|
|
2548
2569
|
function i(r) {
|
|
2549
|
-
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(),
|
|
2570
|
+
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), d());
|
|
2550
2571
|
}
|
|
2551
|
-
function
|
|
2572
|
+
function d() {
|
|
2552
2573
|
if (t.activeTabId !== l.id) {
|
|
2553
2574
|
const r = new CustomEvent("tabClick", { detail: l.id, bubbles: !0 });
|
|
2554
2575
|
n.value.dispatchEvent(r);
|
|
2555
2576
|
}
|
|
2556
2577
|
}
|
|
2557
2578
|
return (r, f) => (u(), v("div", {
|
|
2558
|
-
"aria-controls":
|
|
2579
|
+
"aria-controls": s.value,
|
|
2559
2580
|
"aria-selected": o.value ? "true" : "false",
|
|
2560
2581
|
"data-hidden": e.hidden || void 0,
|
|
2561
2582
|
"data-component": "bs-tab",
|
|
@@ -2563,13 +2584,13 @@ const Et = {
|
|
|
2563
2584
|
tabindex: "0",
|
|
2564
2585
|
ref_key: "hostEl",
|
|
2565
2586
|
ref: n,
|
|
2566
|
-
onClick:
|
|
2587
|
+
onClick: d,
|
|
2567
2588
|
onKeydown: i
|
|
2568
2589
|
}, [
|
|
2569
2590
|
I(r.$slots, "default")
|
|
2570
|
-
], 40,
|
|
2591
|
+
], 40, rn));
|
|
2571
2592
|
}
|
|
2572
|
-
},
|
|
2593
|
+
}, sn = ["id", "data-resizing"], dn = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], un = 73, cn = 20, fn = 16, Yn = {
|
|
2573
2594
|
__name: "BsTabList",
|
|
2574
2595
|
props: {
|
|
2575
2596
|
activeTabId: { type: String, required: !0 },
|
|
@@ -2580,10 +2601,10 @@ const Et = {
|
|
|
2580
2601
|
},
|
|
2581
2602
|
emits: ["tabChange", "update:modelValue"],
|
|
2582
2603
|
setup(e, { emit: a }) {
|
|
2583
|
-
const t = e, l = a, n = k(!1), o = k(!1),
|
|
2604
|
+
const t = e, l = a, n = k(!1), o = k(!1), s = k([]), i = k(!1), d = 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(() => s.value.some((h) => h.id === t.activeTabId)), j = p(() => `${w.value}-options`), ee = p(() => `${w.value}-toggle`), J = p(() => {
|
|
2584
2605
|
var h;
|
|
2585
2606
|
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] +
|
|
2607
|
+
}), ke = p(() => q.value ? f.value[S.value] - f.value[S.value - 1] + cn : un), Q = p(() => {
|
|
2587
2608
|
var B, x;
|
|
2588
2609
|
let h = [];
|
|
2589
2610
|
if (typeof window > "u")
|
|
@@ -2593,7 +2614,7 @@ const Et = {
|
|
|
2593
2614
|
break;
|
|
2594
2615
|
h.push(z);
|
|
2595
2616
|
}
|
|
2596
|
-
return
|
|
2617
|
+
return d.value && h.push(r.value.querySelector(".bs-tab-list-toggle")), h;
|
|
2597
2618
|
});
|
|
2598
2619
|
function ue() {
|
|
2599
2620
|
var K;
|
|
@@ -2610,8 +2631,8 @@ const Et = {
|
|
|
2610
2631
|
}
|
|
2611
2632
|
B.dataset.hidden = "false", B.setAttribute("tabindex", "0");
|
|
2612
2633
|
}
|
|
2613
|
-
|
|
2614
|
-
|
|
2634
|
+
d.value = h, s.value = G, n.value || He(() => n.value = !0), setTimeout(() => {
|
|
2635
|
+
Ee(), b.value = !0;
|
|
2615
2636
|
}, b.value ? 0 : 1e3);
|
|
2616
2637
|
}
|
|
2617
2638
|
}
|
|
@@ -2652,7 +2673,7 @@ const Et = {
|
|
|
2652
2673
|
const B = Q.value.findIndex((x) => x.id === h.target.id);
|
|
2653
2674
|
if (B === -1)
|
|
2654
2675
|
return;
|
|
2655
|
-
h.preventDefault(), h.stopPropagation(), h.key === "ArrowLeft" ?
|
|
2676
|
+
h.preventDefault(), h.stopPropagation(), h.key === "ArrowLeft" ? Ve(B) : De(B);
|
|
2656
2677
|
}
|
|
2657
2678
|
}
|
|
2658
2679
|
function De(h) {
|
|
@@ -2660,16 +2681,16 @@ const Et = {
|
|
|
2660
2681
|
const B = (h + 1) % Q.value.length;
|
|
2661
2682
|
(x = Q.value[B]) == null || x.focus();
|
|
2662
2683
|
}
|
|
2663
|
-
function
|
|
2684
|
+
function Ve(h) {
|
|
2664
2685
|
var x;
|
|
2665
2686
|
const B = h === 0 ? Q.value.length - 1 : h - 1;
|
|
2666
2687
|
(x = Q.value[B]) == null || x.focus();
|
|
2667
2688
|
}
|
|
2668
|
-
function
|
|
2689
|
+
function Ee() {
|
|
2669
2690
|
var K, F, ge, be;
|
|
2670
2691
|
const h = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0, B = M.value;
|
|
2671
2692
|
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
|
-
|
|
2693
|
+
d.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`);
|
|
2673
2694
|
}
|
|
2674
2695
|
function qe() {
|
|
2675
2696
|
var h, B;
|
|
@@ -2688,10 +2709,10 @@ const Et = {
|
|
|
2688
2709
|
function Re() {
|
|
2689
2710
|
let h;
|
|
2690
2711
|
g.value.forEach((B, x) => {
|
|
2691
|
-
h = B.getBoundingClientRect().width +
|
|
2712
|
+
h = B.getBoundingClientRect().width + fn, f.value.push(x ? h + f.value[x - 1] : h);
|
|
2692
2713
|
});
|
|
2693
2714
|
}
|
|
2694
|
-
return
|
|
2715
|
+
return E(() => t.activeTabId, Te), O(() => {
|
|
2695
2716
|
var h;
|
|
2696
2717
|
try {
|
|
2697
2718
|
Me(), Re(), ze(), M.value = r.value.getBoundingClientRect().width, ue(), t.withBsTabs || (h = g.value[S.value]) == null || h.setAttribute("aria-selected", "true");
|
|
@@ -2716,16 +2737,16 @@ const Et = {
|
|
|
2716
2737
|
"aria-expanded": i.value,
|
|
2717
2738
|
class: "bs-tab-list-toggle",
|
|
2718
2739
|
"data-active": q.value || void 0,
|
|
2719
|
-
"data-hidden": !
|
|
2740
|
+
"data-hidden": !d.value,
|
|
2720
2741
|
id: ee.value,
|
|
2721
2742
|
ref_key: "dropdownToggle",
|
|
2722
2743
|
ref: y,
|
|
2723
2744
|
onClick: Ce
|
|
2724
2745
|
}, [
|
|
2725
|
-
D(c(
|
|
2746
|
+
D(c(tt), { size: "sm" }),
|
|
2726
2747
|
W(" " + T(J.value), 1)
|
|
2727
|
-
], 8,
|
|
2728
|
-
D(c(
|
|
2748
|
+
], 8, dn),
|
|
2749
|
+
D(c(Jt), {
|
|
2729
2750
|
"anchor-id": ee.value,
|
|
2730
2751
|
"container-id": h.$attrs.id || c(P),
|
|
2731
2752
|
"helper-description": e.helperDescription || void 0,
|
|
@@ -2740,7 +2761,7 @@ const Et = {
|
|
|
2740
2761
|
"onUpdate:modelValue": Ae
|
|
2741
2762
|
}, {
|
|
2742
2763
|
default: C(() => [
|
|
2743
|
-
(u(!0), v(R, null, Y(
|
|
2764
|
+
(u(!0), v(R, null, Y(s.value, (x) => (u(), A(c(Yt), {
|
|
2744
2765
|
key: x.id,
|
|
2745
2766
|
value: x.id,
|
|
2746
2767
|
"options-id": j.value
|
|
@@ -2753,9 +2774,9 @@ const Et = {
|
|
|
2753
2774
|
]),
|
|
2754
2775
|
_: 1
|
|
2755
2776
|
}, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])
|
|
2756
|
-
], 40,
|
|
2777
|
+
], 40, sn));
|
|
2757
2778
|
}
|
|
2758
|
-
},
|
|
2779
|
+
}, vn = ["aria-labelledby", "data-active", "id"], Xn = {
|
|
2759
2780
|
__name: "BsTabPanel",
|
|
2760
2781
|
props: {
|
|
2761
2782
|
activeTabId: {
|
|
@@ -2768,8 +2789,8 @@ const Et = {
|
|
|
2768
2789
|
}
|
|
2769
2790
|
},
|
|
2770
2791
|
setup(e) {
|
|
2771
|
-
const a = e, t =
|
|
2772
|
-
return (o,
|
|
2792
|
+
const a = e, t = N(), l = p(() => a.activeTabId && a.activeTabId === a.tabId), n = p(() => t.id || `${a.tabId}-panel`);
|
|
2793
|
+
return (o, s) => (u(), v("section", {
|
|
2773
2794
|
"aria-labelledby": e.tabId,
|
|
2774
2795
|
"data-active": l.value,
|
|
2775
2796
|
"data-component": "bs-tab-panel",
|
|
@@ -2777,9 +2798,9 @@ const Et = {
|
|
|
2777
2798
|
role: "tabpanel"
|
|
2778
2799
|
}, [
|
|
2779
2800
|
I(o.$slots, "default")
|
|
2780
|
-
], 8,
|
|
2801
|
+
], 8, vn));
|
|
2781
2802
|
}
|
|
2782
|
-
},
|
|
2803
|
+
}, hn = ["data-error", "id", "rows", "value"], pn = {
|
|
2783
2804
|
__name: "BsTextarea",
|
|
2784
2805
|
props: {
|
|
2785
2806
|
error: {
|
|
@@ -2795,16 +2816,16 @@ const Et = {
|
|
|
2795
2816
|
emits: ["update:modelValue"],
|
|
2796
2817
|
setup(e, { emit: a }) {
|
|
2797
2818
|
const t = e, l = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
2798
|
-
return (n, o) => (u(), v("textarea",
|
|
2819
|
+
return (n, o) => (u(), v("textarea", V({
|
|
2799
2820
|
"data-component": "bs-textarea",
|
|
2800
2821
|
"data-error": e.error,
|
|
2801
2822
|
id: n.$attrs.id || e.inputId,
|
|
2802
2823
|
rows: n.$attrs.rows || 6,
|
|
2803
2824
|
value: e.value || e.modelValue,
|
|
2804
|
-
onInput: o[0] || (o[0] = (
|
|
2805
|
-
}, l.value), null, 16,
|
|
2825
|
+
onInput: o[0] || (o[0] = (s) => n.$emit("update:modelValue", s.target.value))
|
|
2826
|
+
}, l.value), null, 16, hn));
|
|
2806
2827
|
}
|
|
2807
|
-
},
|
|
2828
|
+
}, Zn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2808
2829
|
__name: "BsTextareaField",
|
|
2809
2830
|
props: {
|
|
2810
2831
|
/** Sets the maximum value this textarea will allow. Will also display character count if present. This does not set maxlength, so users are able to enter text that is longer and edit it down. Enforcement of length must be by the developer. */
|
|
@@ -2853,7 +2874,7 @@ const Et = {
|
|
|
2853
2874
|
},
|
|
2854
2875
|
emits: ["update:modelValue"],
|
|
2855
2876
|
setup(e, { emit: a }) {
|
|
2856
|
-
const t = e, l =
|
|
2877
|
+
const t = e, l = N(), [n, o] = H(2), { toChild: s, toRoot: i } = Z(t, l), d = p(() => {
|
|
2857
2878
|
var g;
|
|
2858
2879
|
return ((g = t.value || t.modelValue) == null ? void 0 : g.length) || 0;
|
|
2859
2880
|
}), r = p(() => {
|
|
@@ -2861,7 +2882,7 @@ const Et = {
|
|
|
2861
2882
|
return ((y = (g = t.hints) == null ? void 0 : g.join) == null ? void 0 : y.call(g, `
|
|
2862
2883
|
`)) || t.hints;
|
|
2863
2884
|
}), 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",
|
|
2885
|
+
return (g, y) => (u(), v("div", V({ "data-component": "bs-textarea-field" }, c(i)), [
|
|
2865
2886
|
e.label || g.$slots.label ? (u(), A(c(_), {
|
|
2866
2887
|
key: 0,
|
|
2867
2888
|
for: b.value,
|
|
@@ -2875,7 +2896,7 @@ const Et = {
|
|
|
2875
2896
|
]),
|
|
2876
2897
|
_: 3
|
|
2877
2898
|
}, 8, ["for", "disabled", "required"])) : $("", !0),
|
|
2878
|
-
D(c(
|
|
2899
|
+
D(c(pn), V({
|
|
2879
2900
|
disabled: e.disabled,
|
|
2880
2901
|
error: e.error,
|
|
2881
2902
|
"hint-id": c(o),
|
|
@@ -2885,10 +2906,10 @@ const Et = {
|
|
|
2885
2906
|
rows: e.rows,
|
|
2886
2907
|
value: e.value || e.modelValue,
|
|
2887
2908
|
"onUpdate:modelValue": y[0] || (y[0] = (L) => g.$emit("update:modelValue", L))
|
|
2888
|
-
}, c(
|
|
2909
|
+
}, c(s)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
|
|
2889
2910
|
f.value || e.charMax ? (u(), A(pe, {
|
|
2890
2911
|
key: 1,
|
|
2891
|
-
"char-count":
|
|
2912
|
+
"char-count": d.value,
|
|
2892
2913
|
"char-max": e.charMax,
|
|
2893
2914
|
"data-disabled": e.disabled,
|
|
2894
2915
|
error: e.error,
|
|
@@ -2898,7 +2919,7 @@ const Et = {
|
|
|
2898
2919
|
}, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) : $("", !0)
|
|
2899
2920
|
], 16));
|
|
2900
2921
|
}
|
|
2901
|
-
}),
|
|
2922
|
+
}), gn = ["data-variant", "data-stacked"], Jn = {
|
|
2902
2923
|
__name: "BsToast",
|
|
2903
2924
|
props: {
|
|
2904
2925
|
shown: {
|
|
@@ -2947,11 +2968,11 @@ const Et = {
|
|
|
2947
2968
|
const t = e, l = a, { transition: n } = se(t);
|
|
2948
2969
|
let o = null;
|
|
2949
2970
|
ae("variant", t.variant), ae("handleDismiss", i);
|
|
2950
|
-
const
|
|
2971
|
+
const s = te("stacked", t.stacked);
|
|
2951
2972
|
function i() {
|
|
2952
2973
|
o && (clearTimeout(o), o = null), l("dismiss", t.toastId);
|
|
2953
2974
|
}
|
|
2954
|
-
function
|
|
2975
|
+
function d() {
|
|
2955
2976
|
t.duration > 0 && (o = setTimeout(() => {
|
|
2956
2977
|
i();
|
|
2957
2978
|
}, t.duration)), l("after-enter");
|
|
@@ -2961,29 +2982,29 @@ const Et = {
|
|
|
2961
2982
|
preloaded: e.preloaded,
|
|
2962
2983
|
duration: 200,
|
|
2963
2984
|
"enter-attribute": "data-shown",
|
|
2964
|
-
onAfterEnter:
|
|
2985
|
+
onAfterEnter: d,
|
|
2965
2986
|
onAfterLeave: f[0] || (f[0] = (b) => l("after-leave"))
|
|
2966
2987
|
}, {
|
|
2967
2988
|
default: C(() => [
|
|
2968
2989
|
m("div", {
|
|
2969
2990
|
class: "bs-toast",
|
|
2970
2991
|
"data-variant": e.variant,
|
|
2971
|
-
"data-stacked": c(
|
|
2992
|
+
"data-stacked": c(s) || void 0,
|
|
2972
2993
|
"aria-role": "alert"
|
|
2973
2994
|
}, [
|
|
2974
2995
|
I(r.$slots, "default")
|
|
2975
|
-
], 8,
|
|
2996
|
+
], 8, gn)
|
|
2976
2997
|
]),
|
|
2977
2998
|
_: 3
|
|
2978
2999
|
}, 8, ["shown", "preloaded"]));
|
|
2979
3000
|
}
|
|
2980
|
-
},
|
|
3001
|
+
}, bn = ["data-stacked"], Qn = {
|
|
2981
3002
|
__name: "BsToastActions",
|
|
2982
3003
|
setup(e) {
|
|
2983
3004
|
const a = k(!1);
|
|
2984
|
-
|
|
3005
|
+
O(() => {
|
|
2985
3006
|
var n;
|
|
2986
|
-
const l =
|
|
3007
|
+
const l = Ke();
|
|
2987
3008
|
((n = l.default) == null ? void 0 : n.call(l).length) > 2 && (a.value = !0);
|
|
2988
3009
|
});
|
|
2989
3010
|
const t = te("handleDismiss");
|
|
@@ -2992,7 +3013,7 @@ const Et = {
|
|
|
2992
3013
|
"data-stacked": a.value || void 0
|
|
2993
3014
|
}, [
|
|
2994
3015
|
I(l.$slots, "default", {}, () => [
|
|
2995
|
-
D(
|
|
3016
|
+
D(kt, {
|
|
2996
3017
|
size: "sm",
|
|
2997
3018
|
"text-btn": "",
|
|
2998
3019
|
onClick: c(t)
|
|
@@ -3003,20 +3024,20 @@ const Et = {
|
|
|
3003
3024
|
_: 1
|
|
3004
3025
|
}, 8, ["onClick"])
|
|
3005
3026
|
])
|
|
3006
|
-
], 8,
|
|
3027
|
+
], 8, bn));
|
|
3007
3028
|
}
|
|
3008
|
-
},
|
|
3029
|
+
}, mn = (e, a) => {
|
|
3009
3030
|
const t = e.__vccOpts || e;
|
|
3010
3031
|
for (const [l, n] of a)
|
|
3011
3032
|
t[l] = n;
|
|
3012
3033
|
return t;
|
|
3013
|
-
},
|
|
3014
|
-
function
|
|
3015
|
-
return u(), v("div",
|
|
3034
|
+
}, yn = {}, Bn = { class: "bs-toast-body" };
|
|
3035
|
+
function $n(e, a) {
|
|
3036
|
+
return u(), v("div", Bn, [
|
|
3016
3037
|
I(e.$slots, "default")
|
|
3017
3038
|
]);
|
|
3018
3039
|
}
|
|
3019
|
-
const
|
|
3040
|
+
const _n = /* @__PURE__ */ mn(yn, [["render", $n]]), Sn = ["data-variant"], el = {
|
|
3020
3041
|
__name: "BsToastHeader",
|
|
3021
3042
|
setup(e) {
|
|
3022
3043
|
const a = te("variant"), t = p(() => {
|
|
@@ -3024,11 +3045,11 @@ const Jn = /* @__PURE__ */ gn(bn, [["render", yn]]), Bn = ["data-variant"], Qn =
|
|
|
3024
3045
|
case "warning":
|
|
3025
3046
|
return ve;
|
|
3026
3047
|
case "positive":
|
|
3027
|
-
return
|
|
3048
|
+
return nt;
|
|
3028
3049
|
case "negative":
|
|
3029
3050
|
return ve;
|
|
3030
3051
|
default:
|
|
3031
|
-
return
|
|
3052
|
+
return at;
|
|
3032
3053
|
}
|
|
3033
3054
|
});
|
|
3034
3055
|
return (l, n) => (u(), v("div", {
|
|
@@ -3039,16 +3060,16 @@ const Jn = /* @__PURE__ */ gn(bn, [["render", yn]]), Bn = ["data-variant"], Qn =
|
|
|
3039
3060
|
m("h5", null, [
|
|
3040
3061
|
I(l.$slots, "default")
|
|
3041
3062
|
])
|
|
3042
|
-
], 8,
|
|
3063
|
+
], 8, Sn));
|
|
3043
3064
|
}
|
|
3044
|
-
},
|
|
3065
|
+
}, wn = { class: "bs-toaster" }, tl = {
|
|
3045
3066
|
__name: "BsToaster",
|
|
3046
3067
|
setup(e) {
|
|
3047
|
-
return ae("stacked", !0), (a, t) => (u(), v("div",
|
|
3068
|
+
return ae("stacked", !0), (a, t) => (u(), v("div", wn, [
|
|
3048
3069
|
I(a.$slots, "default")
|
|
3049
3070
|
]));
|
|
3050
3071
|
}
|
|
3051
|
-
},
|
|
3072
|
+
}, kn = ["data-position"], In = ["id"], al = {
|
|
3052
3073
|
__name: "BsTooltip",
|
|
3053
3074
|
props: {
|
|
3054
3075
|
tooltipId: {
|
|
@@ -3085,17 +3106,17 @@ const Jn = /* @__PURE__ */ gn(bn, [["render", yn]]), Bn = ["data-variant"], Qn =
|
|
|
3085
3106
|
function o() {
|
|
3086
3107
|
t.value = !0;
|
|
3087
3108
|
}
|
|
3088
|
-
function
|
|
3109
|
+
function s() {
|
|
3089
3110
|
t.value = !1, l.value = !1;
|
|
3090
3111
|
}
|
|
3091
|
-
return (i,
|
|
3112
|
+
return (i, d) => (u(), v("div", {
|
|
3092
3113
|
class: "bs-tooltip",
|
|
3093
3114
|
"data-position": e.position || void 0,
|
|
3094
3115
|
"data-component": "bs-tooltip",
|
|
3095
3116
|
onMouseenter: o,
|
|
3096
3117
|
onFocusin: o,
|
|
3097
|
-
onMouseleave:
|
|
3098
|
-
onFocusout:
|
|
3118
|
+
onMouseleave: s,
|
|
3119
|
+
onFocusout: s
|
|
3099
3120
|
}, [
|
|
3100
3121
|
I(i.$slots, "default"),
|
|
3101
3122
|
e.content ? (u(), v("div", {
|
|
@@ -3103,51 +3124,51 @@ const Jn = /* @__PURE__ */ gn(bn, [["render", yn]]), Bn = ["data-variant"], Qn =
|
|
|
3103
3124
|
class: X(n.value),
|
|
3104
3125
|
id: e.tooltipId,
|
|
3105
3126
|
role: "tooltip"
|
|
3106
|
-
}, T(e.content), 11,
|
|
3107
|
-
], 40,
|
|
3127
|
+
}, T(e.content), 11, In)) : $("", !0)
|
|
3128
|
+
], 40, kn));
|
|
3108
3129
|
}
|
|
3109
3130
|
};
|
|
3110
3131
|
export {
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3132
|
+
Ln as BsAccordion,
|
|
3133
|
+
Pn as BsBadge,
|
|
3134
|
+
Dn as BsBanner,
|
|
3135
|
+
kt as BsButton,
|
|
3136
|
+
Vn as BsChartBar,
|
|
3137
|
+
En as BsCheckbox,
|
|
3138
|
+
qn as BsCircleButton,
|
|
3139
|
+
Ht as BsDropdown,
|
|
3140
|
+
Yt as BsDropdownOption,
|
|
3141
|
+
Zt as BsDropdownOptionList,
|
|
3142
|
+
Jt as BsDropdownWithOptions,
|
|
3122
3143
|
pe as BsFieldDetails,
|
|
3123
|
-
|
|
3144
|
+
zn as BsIconGradientWrapper,
|
|
3124
3145
|
we as BsInput,
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3146
|
+
ia as BsInputAddon,
|
|
3147
|
+
Mn as BsInputField,
|
|
3148
|
+
Rn as BsInputSearch,
|
|
3128
3149
|
_ as BsLabel,
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3150
|
+
Nn as BsLoader,
|
|
3151
|
+
On as BsModal,
|
|
3152
|
+
ma as BsOverlay,
|
|
3153
|
+
Wn as BsPagination,
|
|
3154
|
+
jn as BsPill,
|
|
3155
|
+
Gn as BsProfile,
|
|
3156
|
+
Ha as BsProfileDetails,
|
|
3157
|
+
Xa as BsProfileImg,
|
|
3158
|
+
Fn as BsRadio,
|
|
3159
|
+
_a as BsSelect,
|
|
3160
|
+
Un as BsSelectField,
|
|
3161
|
+
Hn as BsSwitch,
|
|
3162
|
+
Kn as BsTab,
|
|
3163
|
+
Yn as BsTabList,
|
|
3164
|
+
Xn as BsTabPanel,
|
|
3165
|
+
pn as BsTextarea,
|
|
3166
|
+
Zn as BsTextareaField,
|
|
3167
|
+
Jn as BsToast,
|
|
3168
|
+
Qn as BsToastActions,
|
|
3169
|
+
_n as BsToastBody,
|
|
3170
|
+
el as BsToastHeader,
|
|
3171
|
+
tl as BsToaster,
|
|
3172
|
+
al as BsTooltip,
|
|
3152
3173
|
de as BsTransition
|
|
3153
3174
|
};
|