@wwtdev/bsds-components-vue3 2.0.8 → 2.0.10
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 +495 -469
- package/lib/components.css +1 -1
- package/package.json +3 -3
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 N, onUnmounted as ne, shallowRef as Re, watch as E, defineAsyncComponent as Ne, openBlock as u, createElementBlock as f, unref as v, createElementVNode as m, renderSlot as I, createBlock as A, resolveDynamicComponent as U, createCommentVNode as $, toDisplayString as T, createVNode as V, normalizeClass as X, useAttrs as R, mergeProps as D, withCtx as C, Fragment as O, renderList as Y, createTextVNode as j, withDirectives as je, Transition as me, vShow as We, inject as te, provide as ae, onDeactivated as Ge, isRef as Fe, nextTick as Ue, useSlots as He } from "vue";
|
|
2
|
+
import { v4 as Ke } from "uuid";
|
|
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
|
+
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";
|
|
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 = 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
|
-
function
|
|
19
|
-
const l = Object.keys(ye).find((n) =>
|
|
18
|
+
function dt(e, a, t) {
|
|
19
|
+
const l = Object.keys(ye).find((n) => ut(e, a, n));
|
|
20
20
|
return k(ye[l] || t);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function ut(e, a, t) {
|
|
23
23
|
return e[t] || a[t];
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const ct = (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
|
+
N(() => {
|
|
33
33
|
document.addEventListener("click", t);
|
|
34
34
|
}), ne(() => {
|
|
35
35
|
document.removeEventListener("click", t);
|
|
@@ -44,12 +44,12 @@ 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, 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
|
}
|
|
@@ -61,54 +61,54 @@ const le = (e, a) => {
|
|
|
61
61
|
if (!n)
|
|
62
62
|
return null;
|
|
63
63
|
const o = n.startsWith("bs-") ? Be(n) : `BsIcon${Be(n)}`;
|
|
64
|
-
return
|
|
65
|
-
const { [o]:
|
|
66
|
-
return
|
|
64
|
+
return Ne(async () => {
|
|
65
|
+
const { [o]: d } = await import("@wwtdev/bsds-icons-vue3");
|
|
66
|
+
return d;
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
const l =
|
|
69
|
+
const l = Re();
|
|
70
70
|
return l.value = t(e[a]), E(() => e[a], async (n) => l.value = t(n)), { icon: l };
|
|
71
71
|
};
|
|
72
72
|
function H(e = 1) {
|
|
73
73
|
const a = [];
|
|
74
74
|
for (let t = 0; t < e; t++)
|
|
75
75
|
a.push(k(""));
|
|
76
|
-
return
|
|
77
|
-
a.forEach((t) => t.value =
|
|
76
|
+
return N(() => {
|
|
77
|
+
a.forEach((t) => t.value = Ke());
|
|
78
78
|
}), a;
|
|
79
79
|
}
|
|
80
80
|
const re = (e, a, t = void 0) => {
|
|
81
81
|
const l = (n) => {
|
|
82
82
|
e.includes(n.key) && a(n);
|
|
83
83
|
};
|
|
84
|
-
|
|
84
|
+
N(() => {
|
|
85
85
|
((t == null ? void 0 : t.value) ?? document).addEventListener("keydown", l);
|
|
86
86
|
}), ne(() => {
|
|
87
87
|
((t == null ? void 0 : t.value) ?? document).removeEventListener("keydown", l);
|
|
88
88
|
});
|
|
89
|
-
},
|
|
89
|
+
}, ft = (e, a, t) => {
|
|
90
90
|
let l = null;
|
|
91
|
-
|
|
91
|
+
N(() => {
|
|
92
92
|
l = new MutationObserver(a), l.observe(e.value, t);
|
|
93
93
|
}), ne(() => {
|
|
94
94
|
l.disconnect();
|
|
95
95
|
});
|
|
96
96
|
};
|
|
97
|
-
function Z(e, a) {
|
|
98
|
-
var
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
const
|
|
102
|
-
for (let
|
|
103
|
-
|
|
97
|
+
function Z(e, a, t = []) {
|
|
98
|
+
var i, s;
|
|
99
|
+
const l = ((s = (i = e.passAttrs) == null ? void 0 : i.split) == null ? void 0 : s.call(i, ",")) || [], n = /* @__PURE__ */ new Set([...l, ...t]);
|
|
100
|
+
n.delete("");
|
|
101
|
+
const o = k({}), d = k({});
|
|
102
|
+
for (let r in a)
|
|
103
|
+
n.has(r) ? d.value[r] = a[r] : o.value[r] = a[r];
|
|
104
104
|
return {
|
|
105
|
-
toRoot:
|
|
106
|
-
toChild:
|
|
105
|
+
toRoot: o,
|
|
106
|
+
toChild: d
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
109
|
const se = (e) => {
|
|
110
110
|
const a = k(!1);
|
|
111
|
-
return
|
|
111
|
+
return N(() => {
|
|
112
112
|
a.value = e.enterControlled || e.preloaded ? e.enterTrigger : e.shown;
|
|
113
113
|
}), E(() => e.shown, (t) => {
|
|
114
114
|
a.value = t;
|
|
@@ -117,11 +117,11 @@ const se = (e) => {
|
|
|
117
117
|
}), E(() => e.leaveTrigger, (t) => {
|
|
118
118
|
t && (a.value = !1);
|
|
119
119
|
}), { transition: a };
|
|
120
|
-
},
|
|
120
|
+
}, vt = ["id", "data-stacked"], ht = ["data-open"], pt = ["aria-controls", "aria-expanded"], gt = {
|
|
121
121
|
key: 0,
|
|
122
122
|
"data-position": "start",
|
|
123
123
|
style: { display: "inline-flex" }
|
|
124
|
-
},
|
|
124
|
+
}, bt = ["id", "aria-level"], mt = ["aria-labelledby", "data-open", "id"], An = {
|
|
125
125
|
__name: "BsAccordion",
|
|
126
126
|
props: {
|
|
127
127
|
controlled: { type: Boolean, default: !1 },
|
|
@@ -137,7 +137,7 @@ const se = (e) => {
|
|
|
137
137
|
},
|
|
138
138
|
emits: ["toggled"],
|
|
139
139
|
setup(e, { emit: a }) {
|
|
140
|
-
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: d } = le(t, "icon"), [i] = H(), s = p(() => i.value + "-content"), r = p(() => i.value + "-title"), c = p(() => t.openItemId && t.openItemId === i.value || t.openItem === !0), b = p(() => t.controlled ? c.value : o.value);
|
|
141
141
|
function g() {
|
|
142
142
|
l("toggled", i.value), t.controlled || (o.value = !o.value);
|
|
143
143
|
}
|
|
@@ -154,42 +154,42 @@ const se = (e) => {
|
|
|
154
154
|
"data-open": b.value
|
|
155
155
|
}, [
|
|
156
156
|
m("button", {
|
|
157
|
-
"aria-controls":
|
|
157
|
+
"aria-controls": s.value,
|
|
158
158
|
"aria-expanded": b.value,
|
|
159
159
|
type: "button",
|
|
160
160
|
onClick: g
|
|
161
161
|
}, [
|
|
162
|
-
e.icon || y.$slots.icon ? (u(), f("span",
|
|
162
|
+
e.icon || y.$slots.icon ? (u(), f("span", gt, [
|
|
163
163
|
I(y.$slots, "icon", {}, () => [
|
|
164
|
-
e.icon ? (u(), A(U(v(
|
|
164
|
+
e.icon ? (u(), A(U(v(d) ? v(d) : "span"), { key: 0 })) : $("", !0)
|
|
165
165
|
])
|
|
166
166
|
])) : $("", !0),
|
|
167
167
|
m("span", {
|
|
168
168
|
id: r.value,
|
|
169
169
|
"aria-level": e.headingLevel,
|
|
170
170
|
role: "heading"
|
|
171
|
-
}, T(e.headerText), 9,
|
|
172
|
-
|
|
171
|
+
}, T(e.headerText), 9, bt),
|
|
172
|
+
V(v(Ye), {
|
|
173
173
|
size: "md",
|
|
174
174
|
"data-position": "end"
|
|
175
175
|
})
|
|
176
|
-
], 8,
|
|
177
|
-
], 8,
|
|
176
|
+
], 8, pt)
|
|
177
|
+
], 8, ht),
|
|
178
178
|
m("div", {
|
|
179
179
|
"aria-labelledby": r.value,
|
|
180
180
|
class: "bs-accordion-content",
|
|
181
181
|
"data-open": b.value,
|
|
182
|
-
id:
|
|
182
|
+
id: s.value,
|
|
183
183
|
part: "content",
|
|
184
184
|
role: "region"
|
|
185
185
|
}, [
|
|
186
186
|
m("div", null, [
|
|
187
187
|
I(y.$slots, "default")
|
|
188
188
|
])
|
|
189
|
-
], 8,
|
|
190
|
-
], 8,
|
|
189
|
+
], 8, mt)
|
|
190
|
+
], 8, vt));
|
|
191
191
|
}
|
|
192
|
-
},
|
|
192
|
+
}, yt = ["data-badge-color", "data-count", "data-position", "data-show-zero", "aria-label"], Ln = {
|
|
193
193
|
__name: "BsBadge",
|
|
194
194
|
props: {
|
|
195
195
|
/** Pass value to set `data-badge-color`. */
|
|
@@ -233,14 +233,14 @@ const se = (e) => {
|
|
|
233
233
|
},
|
|
234
234
|
setup(e) {
|
|
235
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(() => {
|
|
236
|
-
var
|
|
237
|
-
const o = ((r = (
|
|
238
|
-
if (!
|
|
236
|
+
var s, r;
|
|
237
|
+
const o = ((r = (s = t.value) == null ? void 0 : s.textContent) == null ? void 0 : r.trim()) || "", d = l.value ? l.value + " " : "";
|
|
238
|
+
if (!d && !a.dot)
|
|
239
239
|
return o;
|
|
240
240
|
const i = a.count !== 1 ? "s" : "";
|
|
241
|
-
return `${o}, ${
|
|
241
|
+
return `${o}, ${d}${a.label}${i}`;
|
|
242
242
|
});
|
|
243
|
-
return (o,
|
|
243
|
+
return (o, d) => (u(), f("span", {
|
|
244
244
|
ref_key: "hostRef",
|
|
245
245
|
ref: t,
|
|
246
246
|
class: X({ "bs-badge": e.dot || l.value }),
|
|
@@ -252,13 +252,13 @@ const se = (e) => {
|
|
|
252
252
|
"aria-label": n.value
|
|
253
253
|
}, [
|
|
254
254
|
I(o.$slots, "default")
|
|
255
|
-
], 10,
|
|
255
|
+
], 10, yt));
|
|
256
256
|
}
|
|
257
|
-
},
|
|
257
|
+
}, Bt = {
|
|
258
258
|
key: 0,
|
|
259
259
|
role: "alert",
|
|
260
260
|
class: "bs-banner"
|
|
261
|
-
},
|
|
261
|
+
}, $t = { class: "bs-banner-content" }, St = { class: "bs-banner-warning-icon" }, Pn = {
|
|
262
262
|
__name: "BsBanner",
|
|
263
263
|
emits: ["dismiss"],
|
|
264
264
|
setup(e, { emit: a }) {
|
|
@@ -266,10 +266,10 @@ const se = (e) => {
|
|
|
266
266
|
function n() {
|
|
267
267
|
l.value = !0, t("dismiss");
|
|
268
268
|
}
|
|
269
|
-
return (o,
|
|
270
|
-
m("div",
|
|
271
|
-
m("div",
|
|
272
|
-
|
|
269
|
+
return (o, d) => l.value ? $("", !0) : (u(), f("div", Bt, [
|
|
270
|
+
m("div", $t, [
|
|
271
|
+
m("div", St, [
|
|
272
|
+
V(v(ve), { size: "lg" })
|
|
273
273
|
]),
|
|
274
274
|
m("p", null, [
|
|
275
275
|
I(o.$slots, "default")
|
|
@@ -279,12 +279,12 @@ const se = (e) => {
|
|
|
279
279
|
title: "Close Banner",
|
|
280
280
|
onClick: n
|
|
281
281
|
}, [
|
|
282
|
-
|
|
282
|
+
V(v(oe))
|
|
283
283
|
])
|
|
284
284
|
])
|
|
285
285
|
]));
|
|
286
286
|
}
|
|
287
|
-
},
|
|
287
|
+
}, wt = {
|
|
288
288
|
__name: "BsButton",
|
|
289
289
|
props: {
|
|
290
290
|
variant: { type: String },
|
|
@@ -296,8 +296,8 @@ const se = (e) => {
|
|
|
296
296
|
size: { type: String, validator: (e) => !e || e === "sm" }
|
|
297
297
|
},
|
|
298
298
|
setup(e) {
|
|
299
|
-
const a = e, t =
|
|
300
|
-
return (
|
|
299
|
+
const a = e, t = R(), { rootTag: l, attrsToBind: n } = he(a, t), { onLinkClick: o } = ie(a);
|
|
300
|
+
return (d, i) => (u(), A(U(v(l)), D({
|
|
301
301
|
class: "bs-button",
|
|
302
302
|
"data-component": "bs-button",
|
|
303
303
|
"data-ghost": e.ghostBtn,
|
|
@@ -307,12 +307,12 @@ const se = (e) => {
|
|
|
307
307
|
href: e.href
|
|
308
308
|
}, v(n), { onClick: v(o) }), {
|
|
309
309
|
default: C(() => [
|
|
310
|
-
I(
|
|
310
|
+
I(d.$slots, "default")
|
|
311
311
|
]),
|
|
312
312
|
_: 3
|
|
313
313
|
}, 16, ["data-ghost", "data-size", "data-text", "data-variant", "href", "onClick"]));
|
|
314
314
|
}
|
|
315
|
-
},
|
|
315
|
+
}, kt = { "data-component": "bs-chart-table" }, It = ["summary"], Tt = ["colspan"], xt = /* @__PURE__ */ m("th", { scope: "col" }, " Dataset ", -1), Ct = { scope: "row" }, At = {
|
|
316
316
|
__name: "BsChartTable",
|
|
317
317
|
props: {
|
|
318
318
|
data: {
|
|
@@ -331,52 +331,52 @@ const se = (e) => {
|
|
|
331
331
|
setup(e) {
|
|
332
332
|
return (a, t) => {
|
|
333
333
|
var l;
|
|
334
|
-
return u(), f("div",
|
|
334
|
+
return u(), f("div", kt, [
|
|
335
335
|
m("table", { summary: e.tableTitle }, [
|
|
336
336
|
m("thead", null, [
|
|
337
337
|
m("tr", null, [
|
|
338
338
|
m("th", {
|
|
339
339
|
colspan: ((l = e.dataIdxLabels) == null ? void 0 : l.length) + 1
|
|
340
|
-
}, T(e.tableTitle), 9,
|
|
340
|
+
}, T(e.tableTitle), 9, Tt)
|
|
341
341
|
]),
|
|
342
342
|
m("tr", null, [
|
|
343
|
-
|
|
344
|
-
(u(!0), f(
|
|
343
|
+
xt,
|
|
344
|
+
(u(!0), f(O, null, Y(e.dataIdxLabels, (n) => (u(), f("th", {
|
|
345
345
|
key: n,
|
|
346
346
|
scope: "col"
|
|
347
347
|
}, T(n), 1))), 128))
|
|
348
348
|
])
|
|
349
349
|
]),
|
|
350
350
|
m("tbody", null, [
|
|
351
|
-
(u(!0), f(
|
|
351
|
+
(u(!0), f(O, null, Y(e.data, (n) => (u(), f("tr", {
|
|
352
352
|
key: n.label
|
|
353
353
|
}, [
|
|
354
|
-
m("th",
|
|
355
|
-
(u(!0), f(
|
|
356
|
-
key: `${o}${
|
|
354
|
+
m("th", Ct, T(n.label), 1),
|
|
355
|
+
(u(!0), f(O, null, Y(n.data, (o, d) => (u(), f("td", {
|
|
356
|
+
key: `${o}${d}`
|
|
357
357
|
}, T(o), 1))), 128))
|
|
358
358
|
]))), 128))
|
|
359
359
|
])
|
|
360
|
-
], 8,
|
|
360
|
+
], 8, It)
|
|
361
361
|
]);
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
|
-
},
|
|
364
|
+
}, Lt = (e) => ({
|
|
365
365
|
id: "htmlLegend",
|
|
366
366
|
afterUpdate(a) {
|
|
367
367
|
e.innerHTML = "", e.style.setProperty("--legend-padding", `${a.scales.x.left}px`), a.options.plugins.legend.labels.generateLabels(a).forEach((l) => {
|
|
368
368
|
const n = document.createElement("li");
|
|
369
369
|
n.onclick = () => {
|
|
370
|
-
const { type:
|
|
371
|
-
|
|
370
|
+
const { type: s } = a.config._config;
|
|
371
|
+
s === "pie" || s === "doughnut" ? a.toggleDataVisibility(l.index) : a.setDatasetVisibility(l.datasetIndex, !a.isDatasetVisible(l.datasetIndex)), a.update();
|
|
372
372
|
};
|
|
373
373
|
const o = document.createElement("span");
|
|
374
374
|
o.style.setProperty("--item-box-fill", l.fillStyle), o.style.setProperty("--item-box-stroke", l.strokeStyle);
|
|
375
|
-
const
|
|
376
|
-
i.style.setProperty("--item-text-color", l.fontColor), i.style.setProperty("--item-text-decoration", l.hidden ? "line-through" : "none"), i.appendChild(
|
|
375
|
+
const d = 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(d), n.appendChild(o), n.appendChild(i), e.appendChild(n);
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
|
-
}),
|
|
379
|
+
}), Pt = ({ type: e, datasets: a, labels: t, tooltips: l }) => ({
|
|
380
380
|
type: e,
|
|
381
381
|
data: {
|
|
382
382
|
datasets: a,
|
|
@@ -395,7 +395,7 @@ const se = (e) => {
|
|
|
395
395
|
responsive: !0
|
|
396
396
|
}
|
|
397
397
|
});
|
|
398
|
-
function
|
|
398
|
+
function Dt(e) {
|
|
399
399
|
const a = [
|
|
400
400
|
"rgba(209, 26, 111, 1)",
|
|
401
401
|
"rgba(130, 18, 196, 1)",
|
|
@@ -417,10 +417,10 @@ function $e(e, a, t) {
|
|
|
417
417
|
}, a);
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
|
-
const
|
|
420
|
+
const Vt = {
|
|
421
421
|
class: "bs-chart-bar",
|
|
422
422
|
"data-component": "bs-chart-bar"
|
|
423
|
-
},
|
|
423
|
+
}, Et = ["aria-label"], qt = ["data-hidden"], Dn = {
|
|
424
424
|
__name: "BsChartBar",
|
|
425
425
|
props: {
|
|
426
426
|
chartTitle: {
|
|
@@ -478,12 +478,12 @@ const Et = {
|
|
|
478
478
|
let n;
|
|
479
479
|
const o = p(() => {
|
|
480
480
|
const c = {
|
|
481
|
-
datasets:
|
|
481
|
+
datasets: d.value,
|
|
482
482
|
labels: a.dataIdxLabels,
|
|
483
483
|
type: "bar",
|
|
484
484
|
tooltips: a.showTooltips
|
|
485
|
-
}, b =
|
|
486
|
-
return b.plugins = [
|
|
485
|
+
}, b = Pt(c);
|
|
486
|
+
return b.plugins = [Lt(l.value)], b.options.scales = {
|
|
487
487
|
x: {
|
|
488
488
|
grid: {
|
|
489
489
|
display: a.showXGrid
|
|
@@ -505,18 +505,18 @@ const Et = {
|
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
507
|
}, b;
|
|
508
|
-
}),
|
|
508
|
+
}), d = p(() => a.data.map((c, b) => ({
|
|
509
509
|
...c,
|
|
510
|
-
backgroundColor:
|
|
510
|
+
backgroundColor: Dt(b),
|
|
511
511
|
categoryPercentage: a.data.length > 1 ? 0.5 : 0.33
|
|
512
|
-
}))), i = p(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`),
|
|
512
|
+
}))), i = p(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`), s = $e(function(c, b) {
|
|
513
513
|
!n || c === b || (n.options = o.value.options, n.update());
|
|
514
514
|
}, 100), r = $e(function() {
|
|
515
515
|
n && (n.data = o.value.data, n.update());
|
|
516
516
|
}, 100);
|
|
517
|
-
return
|
|
518
|
-
fe.register(lt, ot, it, rt, st
|
|
519
|
-
}), E(() => a.showLegend,
|
|
517
|
+
return N(() => {
|
|
518
|
+
fe.register(nt, lt, ot, it, rt, st), fe.defaults.font.family = "'Roobert', sans-serif", n = new fe(t.value, o.value);
|
|
519
|
+
}), E(() => a.showLegend, s), E(() => a.showTooltips, s), E(() => a.showXGrid, s), E(() => a.showYGrid, s), E(() => a.stacked, s), E(() => a.xLabel, s), E(() => a.yLabel, s), E(() => a.data, r), E(() => a.dataIdxLabels, r), (c, b) => (u(), f("div", Vt, [
|
|
520
520
|
m("figure", null, [
|
|
521
521
|
m("div", null, [
|
|
522
522
|
m("canvas", {
|
|
@@ -524,10 +524,10 @@ const Et = {
|
|
|
524
524
|
ref_key: "canvas",
|
|
525
525
|
ref: t,
|
|
526
526
|
role: "img"
|
|
527
|
-
}, null, 8,
|
|
527
|
+
}, null, 8, Et)
|
|
528
528
|
]),
|
|
529
529
|
m("div", null, [
|
|
530
|
-
|
|
530
|
+
V(At, {
|
|
531
531
|
data: e.data,
|
|
532
532
|
"data-idx-labels": e.dataIdxLabels,
|
|
533
533
|
"table-title": i.value
|
|
@@ -539,15 +539,15 @@ const Et = {
|
|
|
539
539
|
ref_key: "legendList",
|
|
540
540
|
ref: l
|
|
541
541
|
}, null, 512)
|
|
542
|
-
], 8,
|
|
542
|
+
], 8, qt)
|
|
543
543
|
])
|
|
544
544
|
])
|
|
545
545
|
]));
|
|
546
546
|
}
|
|
547
|
-
},
|
|
547
|
+
}, zt = ["data-disabled", "for"], Mt = /* @__PURE__ */ m("span", {
|
|
548
548
|
"data-required": "true",
|
|
549
549
|
"aria-hidden": "true"
|
|
550
|
-
}, " *", -1),
|
|
550
|
+
}, " *", -1), Ot = /* @__PURE__ */ m("span", { class: "visually-hidden" }, "required", -1), _ = {
|
|
551
551
|
__name: "BsLabel",
|
|
552
552
|
props: {
|
|
553
553
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -565,13 +565,13 @@ const Et = {
|
|
|
565
565
|
m("span", null, [
|
|
566
566
|
I(a.$slots, "default")
|
|
567
567
|
]),
|
|
568
|
-
e.required ? (u(), f(
|
|
569
|
-
|
|
570
|
-
|
|
568
|
+
e.required ? (u(), f(O, { key: 0 }, [
|
|
569
|
+
Mt,
|
|
570
|
+
Ot
|
|
571
571
|
], 64)) : $("", !0)
|
|
572
|
-
], 10,
|
|
572
|
+
], 10, zt));
|
|
573
573
|
}
|
|
574
|
-
},
|
|
574
|
+
}, Rt = ["data-size"], Nt = ["checked", "disabled", "id", "required", "data-error"], Vn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
575
575
|
__name: "BsCheckbox",
|
|
576
576
|
props: {
|
|
577
577
|
/** Sets the label. */
|
|
@@ -626,42 +626,42 @@ const Et = {
|
|
|
626
626
|
},
|
|
627
627
|
emits: ["update:modelValue"],
|
|
628
628
|
setup(e, { emit: a }) {
|
|
629
|
-
const t = e, l =
|
|
629
|
+
const t = e, l = R(), [n] = H(), { toChild: o, toRoot: d } = Z(t, l, ["name", "value"]), i = k(null), s = p(() => t.inputId || n.value), r = p(() => t.checked || t.modelValue);
|
|
630
630
|
function c() {
|
|
631
631
|
i.value && (i.value.indeterminate = t.checkedPartially && !r.value);
|
|
632
632
|
}
|
|
633
|
-
return E(r, c), E(() => t.checkedPartially, c), (b, g) => (u(), f("div",
|
|
633
|
+
return E(r, c), E(() => t.checkedPartially, c), (b, g) => (u(), f("div", D({
|
|
634
634
|
class: "bs-boolean",
|
|
635
635
|
"data-component": "bs-checkbox",
|
|
636
636
|
"data-size": e.size
|
|
637
|
-
}, v(
|
|
638
|
-
m("input",
|
|
637
|
+
}, v(d)), [
|
|
638
|
+
m("input", D({
|
|
639
639
|
ref_key: "inputEl",
|
|
640
640
|
ref: i,
|
|
641
641
|
checked: r.value,
|
|
642
642
|
disabled: e.disabled,
|
|
643
|
-
id:
|
|
643
|
+
id: s.value,
|
|
644
644
|
required: e.required,
|
|
645
645
|
type: "checkbox",
|
|
646
646
|
"data-error": e.error,
|
|
647
647
|
onChange: g[0] || (g[0] = (y) => b.$emit("update:modelValue", y.target.checked))
|
|
648
|
-
}, v(o)), null, 16,
|
|
648
|
+
}, v(o)), null, 16, Nt),
|
|
649
649
|
e.label || b.$slots.label ? (u(), A(_, {
|
|
650
650
|
key: 0,
|
|
651
|
-
for:
|
|
651
|
+
for: s.value,
|
|
652
652
|
disabled: e.disabled,
|
|
653
653
|
required: e.required
|
|
654
654
|
}, {
|
|
655
655
|
default: C(() => [
|
|
656
656
|
I(b.$slots, "label", {}, () => [
|
|
657
|
-
|
|
657
|
+
j(T(e.label), 1)
|
|
658
658
|
])
|
|
659
659
|
]),
|
|
660
660
|
_: 3
|
|
661
661
|
}, 8, ["for", "disabled", "required"])) : $("", !0)
|
|
662
|
-
], 16,
|
|
662
|
+
], 16, Rt));
|
|
663
663
|
}
|
|
664
|
-
}), jt = { key: 0 },
|
|
664
|
+
}), jt = { key: 0 }, Wt = { class: "bs-circle-button-icon" }, Gt = { key: 1 }, En = {
|
|
665
665
|
__name: "BsCircleButton",
|
|
666
666
|
props: {
|
|
667
667
|
disabled: {
|
|
@@ -704,27 +704,27 @@ const Et = {
|
|
|
704
704
|
}
|
|
705
705
|
},
|
|
706
706
|
setup(e) {
|
|
707
|
-
const a = e, t =
|
|
707
|
+
const a = e, t = R(), { 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(() => {
|
|
708
708
|
if (a.hoverEffect)
|
|
709
709
|
return a.iconPosition;
|
|
710
710
|
}), r = p(() => a.textBtn && a.iconPosition !== "left"), c = p(() => a.textBtn && a.iconPosition === "left");
|
|
711
|
-
return (b, g) => (u(), A(U(v(l)),
|
|
711
|
+
return (b, g) => (u(), A(U(v(l)), D({
|
|
712
712
|
class: "bs-circle-button",
|
|
713
713
|
"data-disabled": e.disabled,
|
|
714
|
-
"data-direction":
|
|
714
|
+
"data-direction": s.value,
|
|
715
715
|
"data-ghost": e.ghostBtn,
|
|
716
716
|
"data-size": e.size,
|
|
717
717
|
"data-text": e.textBtn,
|
|
718
718
|
href: e.href
|
|
719
|
-
}, { ...v(n), ...i.value }, { onClick: v(
|
|
719
|
+
}, { ...v(n), ...i.value }, { onClick: v(d) }), {
|
|
720
720
|
default: C(() => [
|
|
721
721
|
r.value ? (u(), f("span", jt, T(e.label), 1)) : $("", !0),
|
|
722
|
-
m("span",
|
|
722
|
+
m("span", Wt, [
|
|
723
723
|
I(b.$slots, "icon", {}, () => [
|
|
724
724
|
(u(), A(U(v(o)), { size: e.size }, null, 8, ["size"]))
|
|
725
725
|
])
|
|
726
726
|
]),
|
|
727
|
-
c.value ? (u(), f("span",
|
|
727
|
+
c.value ? (u(), f("span", Gt, T(e.label), 1)) : $("", !0)
|
|
728
728
|
]),
|
|
729
729
|
_: 3
|
|
730
730
|
}, 16, ["data-disabled", "data-direction", "data-ghost", "data-size", "data-text", "href", "onClick"]));
|
|
@@ -773,15 +773,15 @@ const Et = {
|
|
|
773
773
|
],
|
|
774
774
|
setup(e, { emit: a }) {
|
|
775
775
|
const t = e, l = a, n = [];
|
|
776
|
-
function o(
|
|
776
|
+
function o(s, r) {
|
|
777
777
|
const { duration: c, enterClass: b, enterAttribute: g } = t;
|
|
778
778
|
n.push(setTimeout(() => {
|
|
779
|
-
b &&
|
|
779
|
+
b && s.classList.add(b), g && s.setAttribute(g, ""), n.push(setTimeout(() => {
|
|
780
780
|
r();
|
|
781
|
-
}, c)), l("enter",
|
|
781
|
+
}, c)), l("enter", s);
|
|
782
782
|
}));
|
|
783
783
|
}
|
|
784
|
-
function s
|
|
784
|
+
function d(s, r) {
|
|
785
785
|
const {
|
|
786
786
|
duration: c,
|
|
787
787
|
enterClass: b,
|
|
@@ -789,19 +789,19 @@ const Et = {
|
|
|
789
789
|
leaveClass: y,
|
|
790
790
|
leaveAttribute: L
|
|
791
791
|
} = t;
|
|
792
|
-
|
|
792
|
+
s.classList.remove(b), s.removeAttribute(g), y && s.classList.add(y), L && s.setAttribute(L, ""), n.push(setTimeout(() => {
|
|
793
793
|
r();
|
|
794
|
-
}, c)), l("leave",
|
|
794
|
+
}, c)), l("leave", s);
|
|
795
795
|
}
|
|
796
|
-
function i(
|
|
796
|
+
function i(s) {
|
|
797
797
|
const { leaveClass: r, leaveAttribute: c } = t;
|
|
798
|
-
|
|
798
|
+
s.classList.remove(r), s.removeAttribute(c), l("after-leave", s);
|
|
799
799
|
}
|
|
800
800
|
return ne(() => {
|
|
801
|
-
n.forEach((
|
|
802
|
-
clearTimeout(
|
|
801
|
+
n.forEach((s) => {
|
|
802
|
+
clearTimeout(s);
|
|
803
803
|
});
|
|
804
|
-
}), (
|
|
804
|
+
}), (s, r) => e.preloaded ? je((u(), A(me, {
|
|
805
805
|
key: 0,
|
|
806
806
|
css: !1,
|
|
807
807
|
onBeforeEnter: r[0] || (r[0] = (c) => l("before-enter", c)),
|
|
@@ -809,16 +809,16 @@ const Et = {
|
|
|
809
809
|
onAfterEnter: r[1] || (r[1] = (c) => l("after-enter", c)),
|
|
810
810
|
onEnterCancelled: r[2] || (r[2] = (c) => l("enter-cancelled", c)),
|
|
811
811
|
onBeforeLeave: r[3] || (r[3] = (c) => l("before-leave", c)),
|
|
812
|
-
onLeave:
|
|
812
|
+
onLeave: d,
|
|
813
813
|
onAfterLeave: i,
|
|
814
814
|
onLeaveCancelled: r[4] || (r[4] = (c) => l("leave-cancelled", c))
|
|
815
815
|
}, {
|
|
816
816
|
default: C(() => [
|
|
817
|
-
I(
|
|
817
|
+
I(s.$slots, "default")
|
|
818
818
|
]),
|
|
819
819
|
_: 3
|
|
820
820
|
}, 512)), [
|
|
821
|
-
[
|
|
821
|
+
[We, e.shown]
|
|
822
822
|
]) : (u(), A(me, {
|
|
823
823
|
key: 1,
|
|
824
824
|
css: !1,
|
|
@@ -827,17 +827,17 @@ const Et = {
|
|
|
827
827
|
onAfterEnter: r[6] || (r[6] = (c) => l("after-enter", c)),
|
|
828
828
|
onEnterCancelled: r[7] || (r[7] = (c) => l("enter-cancelled", c)),
|
|
829
829
|
onBeforeLeave: r[8] || (r[8] = (c) => l("before-leave", c)),
|
|
830
|
-
onLeave:
|
|
830
|
+
onLeave: d,
|
|
831
831
|
onAfterLeave: i,
|
|
832
832
|
onLeaveCancelled: r[9] || (r[9] = (c) => l("leave-cancelled", c))
|
|
833
833
|
}, {
|
|
834
834
|
default: C(() => [
|
|
835
|
-
e.shown ? I(
|
|
835
|
+
e.shown ? I(s.$slots, "default", { key: 0 }) : $("", !0)
|
|
836
836
|
]),
|
|
837
837
|
_: 3
|
|
838
838
|
}));
|
|
839
839
|
}
|
|
840
|
-
},
|
|
840
|
+
}, Ft = ["data-width"], Ut = { key: 0 }, Ht = { key: 0 }, Se = {
|
|
841
841
|
__name: "BsDropdownInternal",
|
|
842
842
|
props: {
|
|
843
843
|
shown: {
|
|
@@ -856,7 +856,7 @@ const Et = {
|
|
|
856
856
|
position: {
|
|
857
857
|
type: String,
|
|
858
858
|
default: void 0,
|
|
859
|
-
validator: (e) => ["top", "
|
|
859
|
+
validator: (e) => ["top", "center", "right"].includes(e)
|
|
860
860
|
},
|
|
861
861
|
anchorId: {
|
|
862
862
|
required: !0
|
|
@@ -887,12 +887,12 @@ const Et = {
|
|
|
887
887
|
setup(e, { emit: a }) {
|
|
888
888
|
const t = e, l = a, n = k(null);
|
|
889
889
|
let o = !1;
|
|
890
|
-
|
|
890
|
+
ct([n], () => {
|
|
891
891
|
o && l("close");
|
|
892
892
|
}), re(["Escape"], () => {
|
|
893
893
|
o && l("close");
|
|
894
894
|
});
|
|
895
|
-
function
|
|
895
|
+
function d() {
|
|
896
896
|
const y = (t.containerRef || document.getElementById(t.containerId)).getBoundingClientRect(), L = document.getElementById(t.anchorId).getBoundingClientRect(), M = n.value.getBoundingClientRect();
|
|
897
897
|
if (t.position === "top") {
|
|
898
898
|
const w = y.bottom - L.bottom;
|
|
@@ -918,8 +918,8 @@ const Et = {
|
|
|
918
918
|
} else
|
|
919
919
|
n.value.style.setProperty("--dropdown-wscreen-width", "");
|
|
920
920
|
}
|
|
921
|
-
function
|
|
922
|
-
|
|
921
|
+
function s() {
|
|
922
|
+
d(), i(), l("enter");
|
|
923
923
|
}
|
|
924
924
|
function r() {
|
|
925
925
|
o = !0, l("after-enter");
|
|
@@ -936,39 +936,39 @@ const Et = {
|
|
|
936
936
|
duration: 75,
|
|
937
937
|
"enter-attribute": "data-shown",
|
|
938
938
|
onAfterEnter: y[1] || (y[1] = (L) => r()),
|
|
939
|
-
onEnter: y[2] || (y[2] = (L) =>
|
|
939
|
+
onEnter: y[2] || (y[2] = (L) => s()),
|
|
940
940
|
onAfterLeave: y[3] || (y[3] = (L) => c())
|
|
941
941
|
}, {
|
|
942
942
|
default: C(() => [
|
|
943
|
-
m("div",
|
|
943
|
+
m("div", D({
|
|
944
944
|
ref_key: "dropdownRef",
|
|
945
945
|
ref: n,
|
|
946
946
|
class: "bs-dropdown",
|
|
947
947
|
"data-width": b()
|
|
948
948
|
}, g.$attrs), [
|
|
949
|
-
e.helperText ? (u(), f("header",
|
|
949
|
+
e.helperText ? (u(), f("header", Ut, [
|
|
950
950
|
m("div", null, [
|
|
951
951
|
m("h3", null, T(e.helperText), 1),
|
|
952
|
-
e.helperDescription ? (u(), f("p",
|
|
952
|
+
e.helperDescription ? (u(), f("p", Ht, T(e.helperDescription), 1)) : $("", !0)
|
|
953
953
|
]),
|
|
954
954
|
m("button", {
|
|
955
955
|
type: "button",
|
|
956
956
|
title: "close",
|
|
957
957
|
onClick: y[0] || (y[0] = () => l("close"))
|
|
958
958
|
}, [
|
|
959
|
-
|
|
959
|
+
V(v(oe))
|
|
960
960
|
])
|
|
961
961
|
])) : $("", !0),
|
|
962
962
|
I(g.$slots, "default")
|
|
963
|
-
], 16,
|
|
963
|
+
], 16, Ft)
|
|
964
964
|
]),
|
|
965
965
|
_: 3
|
|
966
966
|
}, 8, ["shown", "preloaded"]));
|
|
967
967
|
}
|
|
968
|
-
},
|
|
968
|
+
}, Kt = {
|
|
969
969
|
key: 0,
|
|
970
970
|
class: "bs-dropdown-backdrop"
|
|
971
|
-
},
|
|
971
|
+
}, Yt = {
|
|
972
972
|
__name: "BsDropdown",
|
|
973
973
|
props: {
|
|
974
974
|
shown: {
|
|
@@ -1048,27 +1048,27 @@ const Et = {
|
|
|
1048
1048
|
"after-leave"
|
|
1049
1049
|
],
|
|
1050
1050
|
setup(e, { emit: a }) {
|
|
1051
|
-
const t = e, l = a, n = k(null), { transition: o } = se(t),
|
|
1052
|
-
return (
|
|
1053
|
-
v(o) ? (u(), f("div",
|
|
1054
|
-
e.containerId ? (u(), A(v(Se),
|
|
1051
|
+
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);
|
|
1052
|
+
return (s, r) => (u(), f(O, null, [
|
|
1053
|
+
v(o) ? (u(), f("div", Kt)) : $("", !0),
|
|
1054
|
+
e.containerId ? (u(), A(v(Se), D({
|
|
1055
1055
|
key: 1,
|
|
1056
1056
|
shown: v(o),
|
|
1057
1057
|
preloaded: e.preloaded,
|
|
1058
|
-
"anchor-id":
|
|
1058
|
+
"anchor-id": d.value,
|
|
1059
1059
|
"container-id": e.containerId,
|
|
1060
1060
|
"helper-description": e.helperDescription,
|
|
1061
1061
|
"helper-text": e.helperText,
|
|
1062
1062
|
position: i.value,
|
|
1063
1063
|
width: e.width
|
|
1064
|
-
},
|
|
1064
|
+
}, s.$attrs, {
|
|
1065
1065
|
onClose: r[0] || (r[0] = (c) => l("close")),
|
|
1066
1066
|
onAfterEnter: r[1] || (r[1] = (c) => l("after-enter")),
|
|
1067
1067
|
onEnter: r[2] || (r[2] = (c) => l("enter")),
|
|
1068
1068
|
onAfterLeave: r[3] || (r[3] = (c) => l("after-leave"))
|
|
1069
1069
|
}), {
|
|
1070
1070
|
default: C(() => [
|
|
1071
|
-
I(
|
|
1071
|
+
I(s.$slots, "default")
|
|
1072
1072
|
]),
|
|
1073
1073
|
_: 3
|
|
1074
1074
|
}, 16, ["shown", "preloaded", "anchor-id", "container-id", "helper-description", "helper-text", "position", "width"])) : (u(), f("div", {
|
|
@@ -1077,30 +1077,30 @@ const Et = {
|
|
|
1077
1077
|
ref: n,
|
|
1078
1078
|
style: { position: "relative" }
|
|
1079
1079
|
}, [
|
|
1080
|
-
|
|
1080
|
+
V(v(Se), D({
|
|
1081
1081
|
shown: v(o),
|
|
1082
1082
|
preloaded: e.preloaded,
|
|
1083
|
-
"anchor-id":
|
|
1083
|
+
"anchor-id": d.value,
|
|
1084
1084
|
"container-ref": n.value,
|
|
1085
1085
|
"helper-description": e.helperDescription,
|
|
1086
1086
|
"helper-text": e.helperText,
|
|
1087
1087
|
position: i.value,
|
|
1088
1088
|
width: e.width
|
|
1089
|
-
},
|
|
1089
|
+
}, s.$attrs, {
|
|
1090
1090
|
onClose: r[4] || (r[4] = (c) => l("close")),
|
|
1091
1091
|
onAfterEnter: r[5] || (r[5] = (c) => l("after-enter")),
|
|
1092
1092
|
onEnter: r[6] || (r[6] = (c) => l("enter")),
|
|
1093
1093
|
onAfterLeave: r[7] || (r[7] = (c) => l("after-leave"))
|
|
1094
1094
|
}), {
|
|
1095
1095
|
default: C(() => [
|
|
1096
|
-
I(
|
|
1096
|
+
I(s.$slots, "default")
|
|
1097
1097
|
]),
|
|
1098
1098
|
_: 3
|
|
1099
1099
|
}, 16, ["shown", "preloaded", "anchor-id", "container-ref", "helper-description", "helper-text", "position", "width"])
|
|
1100
1100
|
], 512))
|
|
1101
1101
|
], 64));
|
|
1102
1102
|
}
|
|
1103
|
-
},
|
|
1103
|
+
}, Xt = ["data-value", "data-variant", "id"], Zt = {
|
|
1104
1104
|
__name: "BsDropdownOption",
|
|
1105
1105
|
props: {
|
|
1106
1106
|
value: {
|
|
@@ -1115,14 +1115,14 @@ const Et = {
|
|
|
1115
1115
|
setup(e) {
|
|
1116
1116
|
const a = e, t = k(null), l = te("optionsId"), n = te("handleSelect"), o = p(() => `${l}-option-${a.value}`);
|
|
1117
1117
|
re([" ", "Enter", "NumpadEnter"], (i) => {
|
|
1118
|
-
var
|
|
1119
|
-
|
|
1118
|
+
var s;
|
|
1119
|
+
d(), (s = t.value.querySelector("a")) == null || s.click(), i.preventDefault();
|
|
1120
1120
|
}, t);
|
|
1121
|
-
function
|
|
1121
|
+
function d() {
|
|
1122
1122
|
var i;
|
|
1123
1123
|
n(o.value, a.value), (i = t.value.querySelector("a")) == null || i.click();
|
|
1124
1124
|
}
|
|
1125
|
-
return (i,
|
|
1125
|
+
return (i, s) => (u(), f("li", {
|
|
1126
1126
|
"data-component": "bs-dropdown-option",
|
|
1127
1127
|
"data-value": a.value,
|
|
1128
1128
|
ref_key: "optionRef",
|
|
@@ -1131,12 +1131,12 @@ const Et = {
|
|
|
1131
1131
|
"data-variant": e.variant || void 0,
|
|
1132
1132
|
id: o.value,
|
|
1133
1133
|
tabIndex: -1,
|
|
1134
|
-
onClick:
|
|
1134
|
+
onClick: d
|
|
1135
1135
|
}, [
|
|
1136
1136
|
I(i.$slots, "default")
|
|
1137
|
-
], 8,
|
|
1137
|
+
], 8, Xt));
|
|
1138
1138
|
}
|
|
1139
|
-
},
|
|
1139
|
+
}, Jt = ["aria-activedescendant", "aria-label", "id"], Qt = {
|
|
1140
1140
|
__name: "BsDropdownOptionList",
|
|
1141
1141
|
props: {
|
|
1142
1142
|
optionsId: {
|
|
@@ -1175,12 +1175,12 @@ const Et = {
|
|
|
1175
1175
|
emits: ["optselected", "update:modelValue", "close"],
|
|
1176
1176
|
setup(e, { emit: a }) {
|
|
1177
1177
|
const t = e, l = a, n = k(null), o = k(null);
|
|
1178
|
-
let
|
|
1178
|
+
let d = null, i = -1, s = -1;
|
|
1179
1179
|
ae("optionsId", t.optionsId), ae("handleSelect", P);
|
|
1180
1180
|
function r() {
|
|
1181
|
-
return
|
|
1181
|
+
return d || (d = Array.from(n.value.querySelectorAll('[data-component="bs-dropdown-option"]'))), d;
|
|
1182
1182
|
}
|
|
1183
|
-
|
|
1183
|
+
N(() => {
|
|
1184
1184
|
g(), document.addEventListener("keydown", L);
|
|
1185
1185
|
}), Ge(() => {
|
|
1186
1186
|
document.removeEventListener("keydown", L);
|
|
@@ -1191,18 +1191,18 @@ const Et = {
|
|
|
1191
1191
|
});
|
|
1192
1192
|
const c = p(() => t.visible || t.shown), b = p(() => t.modelValue || t.selectedValue);
|
|
1193
1193
|
function g() {
|
|
1194
|
-
var w, S, q,
|
|
1195
|
-
c.value ? (
|
|
1194
|
+
var w, S, q, W, ee;
|
|
1195
|
+
c.value ? (s = r().findIndex(
|
|
1196
1196
|
(J) => J.getAttribute("data-value") === String(b.value)
|
|
1197
|
-
),
|
|
1197
|
+
), 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(() => {
|
|
1198
1198
|
var J;
|
|
1199
|
-
(J = r()[
|
|
1200
|
-
}, t.focusDelay) : (q = r()[
|
|
1199
|
+
(J = r()[s]) == null || J.focus();
|
|
1200
|
+
}, t.focusDelay) : (q = r()[s]) == null || q.focus())) : ((W = r()[s]) == null || W.removeAttribute("data-selected"), (ee = r()[s]) == null || ee.removeAttribute("aria-selected"));
|
|
1201
1201
|
}
|
|
1202
|
-
|
|
1202
|
+
ft(
|
|
1203
1203
|
n,
|
|
1204
1204
|
() => {
|
|
1205
|
-
|
|
1205
|
+
d = null;
|
|
1206
1206
|
},
|
|
1207
1207
|
{ childList: !0 }
|
|
1208
1208
|
);
|
|
@@ -1261,9 +1261,9 @@ const Et = {
|
|
|
1261
1261
|
role: "listbox"
|
|
1262
1262
|
}, [
|
|
1263
1263
|
I(w.$slots, "default")
|
|
1264
|
-
], 8,
|
|
1264
|
+
], 8, Jt));
|
|
1265
1265
|
}
|
|
1266
|
-
},
|
|
1266
|
+
}, _t = {
|
|
1267
1267
|
__name: "BsDropdownWithOptions",
|
|
1268
1268
|
props: {
|
|
1269
1269
|
// OPTION LIST PROPS
|
|
@@ -1370,10 +1370,10 @@ const Et = {
|
|
|
1370
1370
|
function o(i) {
|
|
1371
1371
|
l.value = !1, t("optselected", i), t("update:modelValue", i), t("close");
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function d() {
|
|
1374
1374
|
l.value && (l.value = !1, t("close"));
|
|
1375
1375
|
}
|
|
1376
|
-
return (i,
|
|
1376
|
+
return (i, s) => (u(), A(v(Yt), {
|
|
1377
1377
|
shown: e.shown,
|
|
1378
1378
|
preloaded: e.preloaded,
|
|
1379
1379
|
"anchor-id": e.anchorId,
|
|
@@ -1389,20 +1389,20 @@ const Et = {
|
|
|
1389
1389
|
"toggle-id": e.toggleId,
|
|
1390
1390
|
top: e.top,
|
|
1391
1391
|
width: e.width,
|
|
1392
|
-
onClose:
|
|
1393
|
-
onAfterEnter:
|
|
1392
|
+
onClose: d,
|
|
1393
|
+
onAfterEnter: s[0] || (s[0] = (r) => t("after-enter")),
|
|
1394
1394
|
onEnter: n,
|
|
1395
|
-
onAfterLeave:
|
|
1395
|
+
onAfterLeave: s[1] || (s[1] = (r) => t("after-leave"))
|
|
1396
1396
|
}, {
|
|
1397
1397
|
default: C(() => [
|
|
1398
|
-
|
|
1398
|
+
V(v(Qt), {
|
|
1399
1399
|
label: e.label,
|
|
1400
1400
|
"model-value": e.modelValue,
|
|
1401
1401
|
"options-id": e.optionsId,
|
|
1402
1402
|
"selected-value": e.selectedValue,
|
|
1403
1403
|
shown: l.value,
|
|
1404
1404
|
"onUpdate:modelValue": o,
|
|
1405
|
-
onClose:
|
|
1405
|
+
onClose: d
|
|
1406
1406
|
}, {
|
|
1407
1407
|
default: C(() => [
|
|
1408
1408
|
I(i.$slots, "default")
|
|
@@ -1413,10 +1413,10 @@ const Et = {
|
|
|
1413
1413
|
_: 3
|
|
1414
1414
|
}, 8, ["shown", "preloaded", "anchor-id", "center", "container-id", "enter-controlled", "enter-trigger", "helper-description", "helper-text", "leave-trigger", "position", "right", "toggle-id", "top", "width"]));
|
|
1415
1415
|
}
|
|
1416
|
-
},
|
|
1416
|
+
}, ea = {
|
|
1417
1417
|
class: "bs-field-details",
|
|
1418
1418
|
"data-component": "bs-field-details"
|
|
1419
|
-
},
|
|
1419
|
+
}, ta = ["id", "data-error"], aa = ["data-error"], pe = {
|
|
1420
1420
|
__name: "BsFieldDetails",
|
|
1421
1421
|
props: {
|
|
1422
1422
|
/** The number of characters that have been entered by the user. */
|
|
@@ -1437,22 +1437,22 @@ const Et = {
|
|
|
1437
1437
|
},
|
|
1438
1438
|
setup(e) {
|
|
1439
1439
|
const a = e, t = p(() => a.error && a.errorMsg || a.hint);
|
|
1440
|
-
return (l, n) => (u(), f("div",
|
|
1440
|
+
return (l, n) => (u(), f("div", ea, [
|
|
1441
1441
|
t.value ? (u(), f("span", {
|
|
1442
1442
|
key: 0,
|
|
1443
1443
|
id: e.hintId,
|
|
1444
1444
|
class: "bs-hint",
|
|
1445
1445
|
"data-error": e.error
|
|
1446
|
-
}, T(t.value), 9,
|
|
1446
|
+
}, T(t.value), 9, ta)) : $("", !0),
|
|
1447
1447
|
e.charMax ? (u(), f("span", {
|
|
1448
1448
|
key: 1,
|
|
1449
1449
|
"aria-description": "character count over character limit for the preceding text field",
|
|
1450
1450
|
class: "bs-character-count",
|
|
1451
1451
|
"data-error": a.charCount > a.charMax
|
|
1452
|
-
}, T(a.charCount || "0") + " / " + T(a.charMax), 9,
|
|
1452
|
+
}, T(a.charCount || "0") + " / " + T(a.charMax), 9, aa)) : $("", !0)
|
|
1453
1453
|
]));
|
|
1454
1454
|
}
|
|
1455
|
-
},
|
|
1455
|
+
}, na = ["view-box"], la = ["id"], oa = ["offset", "stop-color"], qn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1456
1456
|
__name: "BsIconGradientWrapper",
|
|
1457
1457
|
setup(e) {
|
|
1458
1458
|
const a = k(null), t = k(null), l = [
|
|
@@ -1460,17 +1460,17 @@ const Et = {
|
|
|
1460
1460
|
{ offset: 0.5466, color: "#1C0087" },
|
|
1461
1461
|
{ offset: 0.9715, color: "#0086EA" }
|
|
1462
1462
|
], [n] = H();
|
|
1463
|
-
return
|
|
1463
|
+
return N(() => {
|
|
1464
1464
|
t.value = a.value.querySelector("svg").getAttribute("viewBox") || "0 0 0 0";
|
|
1465
|
-
}), (o,
|
|
1466
|
-
m("span", {
|
|
1465
|
+
}), (o, d) => (u(), f(O, null, [
|
|
1466
|
+
m("span", D({
|
|
1467
1467
|
ref_key: "svgWrapperRef",
|
|
1468
1468
|
ref: a,
|
|
1469
1469
|
class: "bs-icon-gradient-wrapper",
|
|
1470
|
-
style:
|
|
1471
|
-
}, [
|
|
1470
|
+
style: `fill: url(#${v(n)});`
|
|
1471
|
+
}, o.$attrs), [
|
|
1472
1472
|
I(o.$slots, "default")
|
|
1473
|
-
],
|
|
1473
|
+
], 16),
|
|
1474
1474
|
(u(), f("svg", {
|
|
1475
1475
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1476
1476
|
"view-box": t.value,
|
|
@@ -1485,16 +1485,16 @@ const Et = {
|
|
|
1485
1485
|
y2: "100%",
|
|
1486
1486
|
"gradient-units": "userSpaceOnUse"
|
|
1487
1487
|
}, [
|
|
1488
|
-
(u(), f(
|
|
1488
|
+
(u(), f(O, null, Y(l, (i) => m("stop", {
|
|
1489
1489
|
key: i.offset,
|
|
1490
1490
|
offset: i.offset,
|
|
1491
1491
|
"stop-color": i.color
|
|
1492
|
-
}, null, 8,
|
|
1493
|
-
], 8,
|
|
1494
|
-
], 8,
|
|
1492
|
+
}, null, 8, oa)), 64))
|
|
1493
|
+
], 8, la)
|
|
1494
|
+
], 8, na))
|
|
1495
1495
|
], 64));
|
|
1496
1496
|
}
|
|
1497
|
-
},
|
|
1497
|
+
}), ia = ["data-error", "id", "value"], we = {
|
|
1498
1498
|
__name: "BsInput",
|
|
1499
1499
|
props: {
|
|
1500
1500
|
error: {
|
|
@@ -1509,21 +1509,21 @@ const Et = {
|
|
|
1509
1509
|
},
|
|
1510
1510
|
emits: ["update:modelValue"],
|
|
1511
1511
|
setup(e, { emit: a }) {
|
|
1512
|
-
const t = e, l = a, n =
|
|
1513
|
-
function
|
|
1514
|
-
const
|
|
1515
|
-
l("update:modelValue",
|
|
1512
|
+
const t = e, l = a, n = R(), o = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
1513
|
+
function d(i) {
|
|
1514
|
+
const s = n.type === "number" ? parseInt(i.target.value) : i.target.value;
|
|
1515
|
+
l("update:modelValue", s);
|
|
1516
1516
|
}
|
|
1517
|
-
return (i,
|
|
1517
|
+
return (i, s) => (u(), f("input", D({
|
|
1518
1518
|
class: "bs-input",
|
|
1519
1519
|
"data-component": "bs-input",
|
|
1520
1520
|
"data-error": e.error,
|
|
1521
1521
|
id: i.$attrs.id || e.inputId,
|
|
1522
1522
|
value: e.value || e.modelValue,
|
|
1523
|
-
onInput:
|
|
1524
|
-
}, o.value), null, 16,
|
|
1523
|
+
onInput: d
|
|
1524
|
+
}, o.value), null, 16, ia));
|
|
1525
1525
|
}
|
|
1526
|
-
},
|
|
1526
|
+
}, ra = ["data-disabled", "data-error", "data-variant", "data-multifocus"], sa = {
|
|
1527
1527
|
__name: "BsInputAddon",
|
|
1528
1528
|
props: {
|
|
1529
1529
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -1541,9 +1541,9 @@ const Et = {
|
|
|
1541
1541
|
"data-multifocus": e.multifocus
|
|
1542
1542
|
}, [
|
|
1543
1543
|
I(a.$slots, "default")
|
|
1544
|
-
], 8,
|
|
1544
|
+
], 8, ra));
|
|
1545
1545
|
}
|
|
1546
|
-
},
|
|
1546
|
+
}, zn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1547
1547
|
__name: "BsInputField",
|
|
1548
1548
|
props: {
|
|
1549
1549
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -1590,12 +1590,19 @@ const Et = {
|
|
|
1590
1590
|
},
|
|
1591
1591
|
emits: ["update:modelValue"],
|
|
1592
1592
|
setup(e, { emit: a }) {
|
|
1593
|
-
const t = e, l =
|
|
1593
|
+
const t = e, l = R(), [n, o] = H(2), { toChild: d, toRoot: i } = Z(t, l, [
|
|
1594
|
+
"autocomplete",
|
|
1595
|
+
"max",
|
|
1596
|
+
"maxlength",
|
|
1597
|
+
"min",
|
|
1598
|
+
"minlength",
|
|
1599
|
+
"name"
|
|
1600
|
+
]), s = p(() => {
|
|
1594
1601
|
var b, g;
|
|
1595
1602
|
return ((g = (b = t.hints) == null ? void 0 : b.join) == null ? void 0 : g.call(b, `
|
|
1596
1603
|
`)) || t.hints;
|
|
1597
|
-
}), r = p(() => t.error && t.errorMsg || t.hint ||
|
|
1598
|
-
return (b, g) => (u(), f("div",
|
|
1604
|
+
}), r = p(() => t.error && t.errorMsg || t.hint || s.value || void 0), c = p(() => t.inputId || n.value);
|
|
1605
|
+
return (b, g) => (u(), f("div", D({ "data-component": "bs-input-field" }, v(i)), [
|
|
1599
1606
|
e.label || b.$slots.label ? (u(), A(_, {
|
|
1600
1607
|
key: 0,
|
|
1601
1608
|
for: c.value,
|
|
@@ -1604,12 +1611,12 @@ const Et = {
|
|
|
1604
1611
|
}, {
|
|
1605
1612
|
default: C(() => [
|
|
1606
1613
|
I(b.$slots, "label", {}, () => [
|
|
1607
|
-
|
|
1614
|
+
j(T(e.label), 1)
|
|
1608
1615
|
])
|
|
1609
1616
|
]),
|
|
1610
1617
|
_: 3
|
|
1611
1618
|
}, 8, ["for", "disabled", "required"])) : $("", !0),
|
|
1612
|
-
|
|
1619
|
+
V(we, D({
|
|
1613
1620
|
disabled: e.disabled,
|
|
1614
1621
|
error: e.error,
|
|
1615
1622
|
"hint-id": v(o),
|
|
@@ -1619,17 +1626,17 @@ const Et = {
|
|
|
1619
1626
|
type: e.type,
|
|
1620
1627
|
value: e.value || e.modelValue,
|
|
1621
1628
|
"onUpdate:modelValue": g[0] || (g[0] = (y) => b.$emit("update:modelValue", y))
|
|
1622
|
-
}, v(
|
|
1629
|
+
}, v(d)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
|
|
1623
1630
|
r.value ? (u(), A(pe, {
|
|
1624
1631
|
key: 1,
|
|
1625
1632
|
error: e.error,
|
|
1626
1633
|
"error-msg": e.errorMsg,
|
|
1627
|
-
hint: e.hint ||
|
|
1634
|
+
hint: e.hint || s.value,
|
|
1628
1635
|
"hint-id": v(o)
|
|
1629
1636
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : $("", !0)
|
|
1630
1637
|
], 16));
|
|
1631
1638
|
}
|
|
1632
|
-
}),
|
|
1639
|
+
}), Mn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1633
1640
|
__name: "BsInputSearch",
|
|
1634
1641
|
props: {
|
|
1635
1642
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -1662,41 +1669,46 @@ const Et = {
|
|
|
1662
1669
|
},
|
|
1663
1670
|
emits: ["clear", "update:modelValue"],
|
|
1664
1671
|
setup(e, { emit: a }) {
|
|
1665
|
-
const t = e, l =
|
|
1666
|
-
|
|
1672
|
+
const t = e, l = R(), { toChild: n, toRoot: o } = Z(t, l, [
|
|
1673
|
+
"autocomplete",
|
|
1674
|
+
"maxlength",
|
|
1675
|
+
"minlength",
|
|
1676
|
+
"name"
|
|
1677
|
+
]);
|
|
1678
|
+
return (d, i) => (u(), A(sa, D({
|
|
1667
1679
|
class: "bs-input-search",
|
|
1668
1680
|
"data-component": "bs-input-search",
|
|
1669
1681
|
disabled: e.disabled
|
|
1670
1682
|
}, v(o)), {
|
|
1671
1683
|
default: C(() => [
|
|
1672
|
-
|
|
1673
|
-
|
|
1684
|
+
V(v(Xe)),
|
|
1685
|
+
V(we, D({
|
|
1674
1686
|
"data-autowidth": "",
|
|
1675
1687
|
disabled: e.disabled,
|
|
1676
1688
|
"input-id": e.inputId,
|
|
1677
1689
|
placeholder: e.placeholder,
|
|
1678
1690
|
value: e.value || e.modelValue,
|
|
1679
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
1691
|
+
"onUpdate:modelValue": i[0] || (i[0] = (s) => d.$emit("update:modelValue", s))
|
|
1680
1692
|
}, v(n)), null, 16, ["disabled", "input-id", "placeholder", "value"]),
|
|
1681
1693
|
e.disabled || e.hideClear ? $("", !0) : (u(), f("button", {
|
|
1682
1694
|
key: 0,
|
|
1683
1695
|
title: "Clear",
|
|
1684
1696
|
type: "button",
|
|
1685
|
-
onClick: i[1] || (i[1] = (
|
|
1697
|
+
onClick: i[1] || (i[1] = (s) => d.$emit("clear"))
|
|
1686
1698
|
}, [
|
|
1687
|
-
|
|
1699
|
+
V(v(oe), { size: "sm" })
|
|
1688
1700
|
]))
|
|
1689
1701
|
]),
|
|
1690
1702
|
_: 1
|
|
1691
1703
|
}, 16, ["disabled"]));
|
|
1692
1704
|
}
|
|
1693
|
-
}),
|
|
1705
|
+
}), 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 = [
|
|
1706
|
+
ua,
|
|
1694
1707
|
ca,
|
|
1695
1708
|
fa,
|
|
1696
1709
|
va,
|
|
1697
|
-
ha
|
|
1698
|
-
|
|
1699
|
-
], Nn = {
|
|
1710
|
+
ha
|
|
1711
|
+
], On = {
|
|
1700
1712
|
__name: "BsLoader",
|
|
1701
1713
|
props: {
|
|
1702
1714
|
size: {
|
|
@@ -1715,9 +1727,9 @@ const Et = {
|
|
|
1715
1727
|
"data-size": e.size,
|
|
1716
1728
|
"data-variant": e.variant,
|
|
1717
1729
|
role: "status"
|
|
1718
|
-
},
|
|
1730
|
+
}, pa, 8, da));
|
|
1719
1731
|
}
|
|
1720
|
-
},
|
|
1732
|
+
}, ga = /* @__PURE__ */ m("div", { class: "bs-overlay" }, null, -1), ba = {
|
|
1721
1733
|
__name: "BsOverlay",
|
|
1722
1734
|
props: {
|
|
1723
1735
|
shown: {
|
|
@@ -1747,24 +1759,24 @@ const Et = {
|
|
|
1747
1759
|
emits: ["after-enter", "after-leave"],
|
|
1748
1760
|
setup(e, { emit: a }) {
|
|
1749
1761
|
const t = e, l = a, { transition: n } = se(t);
|
|
1750
|
-
return (o,
|
|
1762
|
+
return (o, d) => (u(), A(v(de), {
|
|
1751
1763
|
shown: v(n),
|
|
1752
1764
|
preloaded: e.preloaded,
|
|
1753
1765
|
duration: 75,
|
|
1754
1766
|
"enter-attribute": "data-shown",
|
|
1755
|
-
onAfterEnter:
|
|
1756
|
-
onAfterLeave:
|
|
1767
|
+
onAfterEnter: d[0] || (d[0] = (i) => l("after-enter")),
|
|
1768
|
+
onAfterLeave: d[1] || (d[1] = (i) => l("after-leave"))
|
|
1757
1769
|
}, {
|
|
1758
1770
|
default: C(() => [
|
|
1759
|
-
|
|
1771
|
+
ga
|
|
1760
1772
|
]),
|
|
1761
1773
|
_: 1
|
|
1762
1774
|
}, 8, ["shown", "preloaded"]));
|
|
1763
1775
|
}
|
|
1764
|
-
},
|
|
1776
|
+
}, ma = ["id", "role"], ya = {
|
|
1765
1777
|
key: 0,
|
|
1766
1778
|
class: "close-button-container"
|
|
1767
|
-
},
|
|
1779
|
+
}, Rn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1768
1780
|
__name: "BsModal",
|
|
1769
1781
|
props: {
|
|
1770
1782
|
modalId: {
|
|
@@ -1813,57 +1825,57 @@ const Et = {
|
|
|
1813
1825
|
let o = !1;
|
|
1814
1826
|
return re(["Escape"], () => {
|
|
1815
1827
|
o && l("close", t.modalId);
|
|
1816
|
-
}), (
|
|
1817
|
-
|
|
1828
|
+
}), (d, i) => (u(), f(O, null, [
|
|
1829
|
+
V(ba, {
|
|
1818
1830
|
shown: v(n),
|
|
1819
1831
|
preloaded: e.preloaded,
|
|
1820
1832
|
"enter-controlled": e.enterControlled,
|
|
1821
1833
|
"enter-trigger": e.enterTrigger,
|
|
1822
1834
|
"leave-trigger": e.leaveTrigger
|
|
1823
1835
|
}, null, 8, ["shown", "preloaded", "enter-controlled", "enter-trigger", "leave-trigger"]),
|
|
1824
|
-
|
|
1836
|
+
V(de, {
|
|
1825
1837
|
shown: v(n),
|
|
1826
1838
|
preloaded: e.preloaded,
|
|
1827
1839
|
duration: 75,
|
|
1828
1840
|
"enter-attribute": "data-shown",
|
|
1829
|
-
onEnter: i[1] || (i[1] = (
|
|
1830
|
-
onAfterEnter: i[2] || (i[2] = (
|
|
1831
|
-
onAfterLeave: i[3] || (i[3] = (
|
|
1841
|
+
onEnter: i[1] || (i[1] = (s) => Fe(o) ? o.value = !0 : o = !0),
|
|
1842
|
+
onAfterEnter: i[2] || (i[2] = (s) => l("after-enter")),
|
|
1843
|
+
onAfterLeave: i[3] || (i[3] = (s) => l("after-leave"))
|
|
1832
1844
|
}, {
|
|
1833
1845
|
default: C(() => [
|
|
1834
|
-
m("div", {
|
|
1846
|
+
m("div", D({
|
|
1835
1847
|
id: t.modalId,
|
|
1836
1848
|
class: "bs-modal",
|
|
1837
1849
|
role: e.alert ? "alertdialog" : "dialog",
|
|
1838
1850
|
"aria-modal": "true"
|
|
1839
|
-
}, [
|
|
1840
|
-
e.closeButton ? (u(), f("div",
|
|
1851
|
+
}, d.$attrs), [
|
|
1852
|
+
e.closeButton ? (u(), f("div", ya, [
|
|
1841
1853
|
m("button", {
|
|
1842
1854
|
type: "button",
|
|
1843
1855
|
title: "Close Modal",
|
|
1844
1856
|
"aria-label": "Close Modal",
|
|
1845
|
-
onClick: i[0] || (i[0] = (
|
|
1857
|
+
onClick: i[0] || (i[0] = (s) => l("close", e.modalId))
|
|
1846
1858
|
}, [
|
|
1847
|
-
|
|
1859
|
+
V(v(oe), { class: "close-button" })
|
|
1848
1860
|
])
|
|
1849
1861
|
])) : $("", !0),
|
|
1850
|
-
I(
|
|
1851
|
-
],
|
|
1862
|
+
I(d.$slots, "default")
|
|
1863
|
+
], 16, ma)
|
|
1852
1864
|
]),
|
|
1853
1865
|
_: 3
|
|
1854
1866
|
}, 8, ["shown", "preloaded"])
|
|
1855
1867
|
], 64));
|
|
1856
1868
|
}
|
|
1857
|
-
},
|
|
1869
|
+
}), Ba = ["data-variant", "data-fixed"], $a = {
|
|
1858
1870
|
key: 0,
|
|
1859
1871
|
class: "bs-pagination-carets"
|
|
1860
|
-
},
|
|
1872
|
+
}, Sa = ["title", "disabled"], wa = { key: 0 }, ka = ["title", "disabled"], Ia = { key: 0 }, Ta = {
|
|
1861
1873
|
key: 1,
|
|
1862
1874
|
class: "bs-pagination-page-numbers"
|
|
1863
|
-
},
|
|
1875
|
+
}, xa = ["title", "data-selected", "onClick"], Ca = { key: 2 }, Aa = { key: 3 }, La = /* @__PURE__ */ m("span", null, "Results Per Page:", -1), Pa = { class: "bs-pagination-results-numbers" }, Da = ["data-selected", "disabled", "onClick"], Va = {
|
|
1864
1876
|
key: 5,
|
|
1865
1877
|
class: "bs-pagination-carets"
|
|
1866
|
-
},
|
|
1878
|
+
}, Ea = ["title", "disabled"], qa = { key: 0 }, za = ["title", "disabled"], Ma = { key: 0 }, Nn = {
|
|
1867
1879
|
__name: "BsPagination",
|
|
1868
1880
|
props: {
|
|
1869
1881
|
// Used for all
|
|
@@ -1950,7 +1962,7 @@ const Et = {
|
|
|
1950
1962
|
emits: ["selchange", "update:modelValue"],
|
|
1951
1963
|
setup(e, { emit: a }) {
|
|
1952
1964
|
const t = e, l = a, n = k(null);
|
|
1953
|
-
|
|
1965
|
+
N(() => {
|
|
1954
1966
|
o.value ? n.value = o.value : t.variant === "results" ? n.value = M.value[0] : n.value = 1;
|
|
1955
1967
|
});
|
|
1956
1968
|
const o = p(() => t.modelValue || t.selection);
|
|
@@ -1961,13 +1973,13 @@ const Et = {
|
|
|
1961
1973
|
}), E(n, (P, w) => {
|
|
1962
1974
|
w !== null && (l("selchange", P), l("update:modelValue", P));
|
|
1963
1975
|
});
|
|
1964
|
-
const
|
|
1976
|
+
const d = p(() => {
|
|
1965
1977
|
if (t.variant === "group")
|
|
1966
1978
|
return Math.ceil(t.itemsCount / t.itemsPerGroup);
|
|
1967
1979
|
if (t.variant === "base")
|
|
1968
1980
|
return t.pageCount;
|
|
1969
1981
|
}), i = p(() => t.variant === "base" ? t.centerDisplay === "text" ? "group" : void 0 : t.variant);
|
|
1970
|
-
function
|
|
1982
|
+
function s() {
|
|
1971
1983
|
n.value = 1;
|
|
1972
1984
|
}
|
|
1973
1985
|
function r() {
|
|
@@ -1976,11 +1988,11 @@ const Et = {
|
|
|
1976
1988
|
function c() {
|
|
1977
1989
|
n.value = Math.min(
|
|
1978
1990
|
n.value + 1,
|
|
1979
|
-
|
|
1991
|
+
d.value
|
|
1980
1992
|
);
|
|
1981
1993
|
}
|
|
1982
1994
|
function b() {
|
|
1983
|
-
n.value =
|
|
1995
|
+
n.value = d.value;
|
|
1984
1996
|
}
|
|
1985
1997
|
const g = p(() => {
|
|
1986
1998
|
if (t.pageCount <= t.pageRange)
|
|
@@ -1988,10 +2000,10 @@ const Et = {
|
|
|
1988
2000
|
const P = [1], w = (t.pageRange - 1) / 2;
|
|
1989
2001
|
let S = n.value - w, q = n.value + w;
|
|
1990
2002
|
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);
|
|
1991
|
-
for (let
|
|
1992
|
-
P.push(
|
|
2003
|
+
for (let W = S; W <= q; W++)
|
|
2004
|
+
P.push(W);
|
|
1993
2005
|
return q < t.pageCount - 1 && P.push(t.breakText), P.push(t.pageCount), P;
|
|
1994
|
-
}), y = p(() => `${t.centerLabel ?? "Page"} ${n.value} of ${
|
|
2006
|
+
}), y = p(() => `${t.centerLabel ?? "Page"} ${n.value} of ${d.value}`), L = p(() => {
|
|
1995
2007
|
const P = (n.value - 1) * t.itemsPerGroup + 1, w = Math.min(P - 1 + t.itemsPerGroup, t.itemsCount);
|
|
1996
2008
|
return `${t.centerLabel ?? "Results"} ${P} - ${w} of ${t.itemsCount}`;
|
|
1997
2009
|
}), M = p(() => t.resultsIncrements.split(",").map((P) => parseInt(P)));
|
|
@@ -2000,18 +2012,18 @@ const Et = {
|
|
|
2000
2012
|
"data-variant": i.value,
|
|
2001
2013
|
"data-fixed": t.fixed
|
|
2002
2014
|
}, [
|
|
2003
|
-
e.variant === "base" || e.variant === "group" ? (u(), f("div",
|
|
2015
|
+
e.variant === "base" || e.variant === "group" ? (u(), f("div", $a, [
|
|
2004
2016
|
e.showFirstLastButtons ? (u(), f("button", {
|
|
2005
2017
|
key: 0,
|
|
2006
2018
|
type: "button",
|
|
2007
2019
|
class: X(e.firstPageText ? "bs-pagination-word-caret" : void 0),
|
|
2008
2020
|
title: e.firstPageText,
|
|
2009
2021
|
disabled: n.value === 1,
|
|
2010
|
-
onClick:
|
|
2022
|
+
onClick: s
|
|
2011
2023
|
}, [
|
|
2012
|
-
|
|
2013
|
-
e.firstPageText ? (u(), f("span",
|
|
2014
|
-
], 10,
|
|
2024
|
+
V(v(Ze)),
|
|
2025
|
+
e.firstPageText ? (u(), f("span", wa, T(e.firstPageText), 1)) : $("", !0)
|
|
2026
|
+
], 10, Sa)) : $("", !0),
|
|
2015
2027
|
m("button", {
|
|
2016
2028
|
type: "button",
|
|
2017
2029
|
class: X(e.prevPageText ? "bs-pagination-word-caret" : void 0),
|
|
@@ -2019,59 +2031,59 @@ const Et = {
|
|
|
2019
2031
|
disabled: n.value === 1,
|
|
2020
2032
|
onClick: r
|
|
2021
2033
|
}, [
|
|
2022
|
-
|
|
2023
|
-
e.prevPageText ? (u(), f("span",
|
|
2024
|
-
], 10,
|
|
2034
|
+
V(v(Je)),
|
|
2035
|
+
e.prevPageText ? (u(), f("span", Ia, T(e.prevPageText), 1)) : $("", !0)
|
|
2036
|
+
], 10, ka)
|
|
2025
2037
|
])) : $("", !0),
|
|
2026
|
-
e.variant === "base" && e.centerDisplay === "numbers" ? (u(), f("div",
|
|
2027
|
-
(u(!0), f(
|
|
2038
|
+
e.variant === "base" && e.centerDisplay === "numbers" ? (u(), f("div", Ta, [
|
|
2039
|
+
(u(!0), f(O, null, Y(g.value, (S) => (u(), f("button", {
|
|
2028
2040
|
key: `page-${S}-button`,
|
|
2029
2041
|
type: "button",
|
|
2030
2042
|
title: `Page ${S}`,
|
|
2031
2043
|
"data-selected": S === n.value,
|
|
2032
2044
|
onClick: (q) => n.value = S
|
|
2033
|
-
}, T(S), 9,
|
|
2045
|
+
}, T(S), 9, xa))), 128))
|
|
2034
2046
|
])) : $("", !0),
|
|
2035
|
-
t.variant === "base" && t.centerDisplay === "text" ? (u(), f("span",
|
|
2036
|
-
t.variant === "group" ? (u(), f("span",
|
|
2037
|
-
t.variant === "results" ? (u(), f(
|
|
2038
|
-
|
|
2039
|
-
m("div",
|
|
2040
|
-
(u(!0), f(
|
|
2047
|
+
t.variant === "base" && t.centerDisplay === "text" ? (u(), f("span", Ca, T(y.value), 1)) : $("", !0),
|
|
2048
|
+
t.variant === "group" ? (u(), f("span", Aa, T(L.value), 1)) : $("", !0),
|
|
2049
|
+
t.variant === "results" ? (u(), f(O, { key: 4 }, [
|
|
2050
|
+
La,
|
|
2051
|
+
m("div", Pa, [
|
|
2052
|
+
(u(!0), f(O, null, Y(M.value, (S) => (u(), f("button", {
|
|
2041
2053
|
type: "button",
|
|
2042
2054
|
key: `results-${S}`,
|
|
2043
2055
|
"data-selected": S === n.value,
|
|
2044
2056
|
disabled: n.value === S,
|
|
2045
2057
|
onClick: (q) => n.value = S
|
|
2046
|
-
}, T(S), 9,
|
|
2058
|
+
}, T(S), 9, Da))), 128))
|
|
2047
2059
|
])
|
|
2048
2060
|
], 64)) : $("", !0),
|
|
2049
|
-
e.variant === "base" || e.variant === "group" ? (u(), f("div",
|
|
2061
|
+
e.variant === "base" || e.variant === "group" ? (u(), f("div", Va, [
|
|
2050
2062
|
m("button", {
|
|
2051
2063
|
type: "button",
|
|
2052
2064
|
class: X(e.nextPageText ? "bs-pagination-word-caret" : void 0),
|
|
2053
2065
|
title: e.nextPageText,
|
|
2054
|
-
disabled: n.value ===
|
|
2066
|
+
disabled: n.value === d.value,
|
|
2055
2067
|
onClick: c
|
|
2056
2068
|
}, [
|
|
2057
|
-
e.nextPageText ? (u(), f("span",
|
|
2058
|
-
|
|
2059
|
-
], 10,
|
|
2069
|
+
e.nextPageText ? (u(), f("span", qa, T(e.nextPageText), 1)) : $("", !0),
|
|
2070
|
+
V(v(Qe))
|
|
2071
|
+
], 10, Ea),
|
|
2060
2072
|
e.showFirstLastButtons ? (u(), f("button", {
|
|
2061
2073
|
key: 0,
|
|
2062
2074
|
type: "button",
|
|
2063
2075
|
class: X(e.lastPageText ? "bs-pagination-word-caret" : void 0),
|
|
2064
2076
|
title: e.lastPageText,
|
|
2065
|
-
disabled: n.value ===
|
|
2077
|
+
disabled: n.value === d.value,
|
|
2066
2078
|
onClick: b
|
|
2067
2079
|
}, [
|
|
2068
|
-
e.lastPageText ? (u(), f("span",
|
|
2069
|
-
|
|
2070
|
-
], 10,
|
|
2080
|
+
e.lastPageText ? (u(), f("span", Ma, T(e.lastPageText), 1)) : $("", !0),
|
|
2081
|
+
V(v(_e))
|
|
2082
|
+
], 10, za)) : $("", !0)
|
|
2071
2083
|
])) : $("", !0)
|
|
2072
|
-
], 8,
|
|
2084
|
+
], 8, Ba));
|
|
2073
2085
|
}
|
|
2074
|
-
},
|
|
2086
|
+
}, Oa = ["data-truncate"], jn = {
|
|
2075
2087
|
__name: "BsPill",
|
|
2076
2088
|
props: {
|
|
2077
2089
|
active: { type: Boolean, default: !1 },
|
|
@@ -2080,7 +2092,8 @@ const Et = {
|
|
|
2080
2092
|
router: {},
|
|
2081
2093
|
status: {
|
|
2082
2094
|
type: String,
|
|
2083
|
-
|
|
2095
|
+
/** option 'inactive' is DEPRECATED */
|
|
2096
|
+
validator: (e) => ["active", "complete", "disabled", "inactive", "error", "warning", "positive"].includes(e)
|
|
2084
2097
|
},
|
|
2085
2098
|
truncate: {
|
|
2086
2099
|
type: Boolean,
|
|
@@ -2088,12 +2101,12 @@ const Et = {
|
|
|
2088
2101
|
},
|
|
2089
2102
|
variant: {
|
|
2090
2103
|
type: String,
|
|
2091
|
-
validator: (e) => ["filter", "filter-add", "filter-remove", "live"].includes(e)
|
|
2104
|
+
validator: (e) => ["filter", "filter-add", "filter-remove", "inactive", "live"].includes(e)
|
|
2092
2105
|
}
|
|
2093
2106
|
},
|
|
2094
2107
|
setup(e) {
|
|
2095
|
-
const a = e, { onLinkClick: t } = ie(a), l =
|
|
2096
|
-
return (
|
|
2108
|
+
const a = e, { onLinkClick: t } = ie(a), l = R(), { rootTag: n, attrsToBind: o } = he(a, l, "span");
|
|
2109
|
+
return (d, i) => (u(), A(U(v(n)), D({
|
|
2097
2110
|
class: "bs-pill",
|
|
2098
2111
|
"data-active": e.active,
|
|
2099
2112
|
"data-component": "bs-pill",
|
|
@@ -2104,23 +2117,23 @@ const Et = {
|
|
|
2104
2117
|
}, v(o), { onClick: v(t) }), {
|
|
2105
2118
|
default: C(() => [
|
|
2106
2119
|
m("span", { "data-truncate": e.truncate }, [
|
|
2107
|
-
I(
|
|
2108
|
-
], 8,
|
|
2120
|
+
I(d.$slots, "default")
|
|
2121
|
+
], 8, Oa)
|
|
2109
2122
|
]),
|
|
2110
2123
|
_: 3
|
|
2111
2124
|
}, 16, ["data-active", "data-status", "data-variant", "disabled", "href", "onClick"]));
|
|
2112
2125
|
}
|
|
2113
|
-
},
|
|
2126
|
+
}, Ra = { class: "bs-profile-details" }, Na = {
|
|
2114
2127
|
class: "bs-profile-name",
|
|
2115
2128
|
"data-size": "sm",
|
|
2116
2129
|
"data-weight": "bold"
|
|
2117
2130
|
}, ja = {
|
|
2118
2131
|
key: 1,
|
|
2119
2132
|
"data-weight": "bold"
|
|
2120
|
-
},
|
|
2133
|
+
}, Wa = { key: 2 }, Ga = { key: 3 }, Fa = {
|
|
2121
2134
|
key: 4,
|
|
2122
2135
|
"data-icon": "true"
|
|
2123
|
-
},
|
|
2136
|
+
}, Ua = {
|
|
2124
2137
|
__name: "BsProfileDetails",
|
|
2125
2138
|
props: {
|
|
2126
2139
|
profileName: {
|
|
@@ -2138,39 +2151,39 @@ const Et = {
|
|
|
2138
2151
|
emits: ["action-toggled"],
|
|
2139
2152
|
setup(e, { emit: a }) {
|
|
2140
2153
|
const t = e, l = a, { icon: n } = le(t, "actionIcon"), { icon: o } = le(t, "miscMetaIcon");
|
|
2141
|
-
function
|
|
2154
|
+
function d(i) {
|
|
2142
2155
|
i.target.tagName === "BUTTON" && (i.preventDefault(), i.stopImmediatePropagation(), l("action-toggled"));
|
|
2143
2156
|
}
|
|
2144
|
-
return (i,
|
|
2157
|
+
return (i, s) => (u(), f("div", Ra, [
|
|
2145
2158
|
e.action || i.$slots.action ? (u(), f("button", {
|
|
2146
2159
|
key: 0,
|
|
2147
2160
|
"data-icon": "true",
|
|
2148
|
-
onClick:
|
|
2161
|
+
onClick: d
|
|
2149
2162
|
}, [
|
|
2150
2163
|
I(i.$slots, "action", {}, () => [
|
|
2151
2164
|
e.actionIcon ? (u(), A(U(v(n) ? v(n) : "span"), {
|
|
2152
2165
|
key: 0,
|
|
2153
2166
|
class: "bs-icon"
|
|
2154
2167
|
})) : $("", !0),
|
|
2155
|
-
|
|
2168
|
+
j(" " + T(e.action), 1)
|
|
2156
2169
|
])
|
|
2157
2170
|
])) : $("", !0),
|
|
2158
|
-
m("span",
|
|
2171
|
+
m("span", Na, T(e.profileName), 1),
|
|
2159
2172
|
e.company ? (u(), f("span", ja, T(e.company), 1)) : $("", !0),
|
|
2160
|
-
e.jobTitle ? (u(), f("span",
|
|
2161
|
-
e.email ? (u(), f("span",
|
|
2162
|
-
e.miscMeta || i.$slots.misc ? (u(), f("span",
|
|
2173
|
+
e.jobTitle ? (u(), f("span", Wa, T(e.jobTitle), 1)) : $("", !0),
|
|
2174
|
+
e.email ? (u(), f("span", Ga, T(e.email), 1)) : $("", !0),
|
|
2175
|
+
e.miscMeta || i.$slots.misc ? (u(), f("span", Fa, [
|
|
2163
2176
|
I(i.$slots, "misc", {}, () => [
|
|
2164
2177
|
e.miscMetaIcon ? (u(), A(U(v(o) ? v(o) : "span"), {
|
|
2165
2178
|
key: 0,
|
|
2166
2179
|
class: "bs-icon"
|
|
2167
2180
|
})) : $("", !0),
|
|
2168
|
-
|
|
2181
|
+
j(" " + T(e.miscMeta), 1)
|
|
2169
2182
|
])
|
|
2170
2183
|
])) : $("", !0)
|
|
2171
2184
|
]));
|
|
2172
2185
|
}
|
|
2173
|
-
},
|
|
2186
|
+
}, Ha = ["data-img-size", "data-initials", "data-no-img"], Ka = ["src", "alt"], Ya = {
|
|
2174
2187
|
__name: "BsProfileImg",
|
|
2175
2188
|
props: {
|
|
2176
2189
|
src: String,
|
|
@@ -2186,7 +2199,7 @@ const Et = {
|
|
|
2186
2199
|
},
|
|
2187
2200
|
setup(e) {
|
|
2188
2201
|
const a = e, t = k(!1), l = k(!!a.src);
|
|
2189
|
-
return
|
|
2202
|
+
return N(() => t.value = !0), (n, o) => (u(), f("div", {
|
|
2190
2203
|
class: "bs-profile-img",
|
|
2191
2204
|
"data-img-size": e.size,
|
|
2192
2205
|
"data-initials": e.initials,
|
|
@@ -2196,11 +2209,11 @@ const Et = {
|
|
|
2196
2209
|
key: 0,
|
|
2197
2210
|
src: e.src,
|
|
2198
2211
|
alt: e.profileName,
|
|
2199
|
-
onError: o[0] || (o[0] = (
|
|
2200
|
-
}, null, 40,
|
|
2201
|
-
], 8,
|
|
2212
|
+
onError: o[0] || (o[0] = (d) => l.value = !1)
|
|
2213
|
+
}, null, 40, Ka)) : $("", !0)
|
|
2214
|
+
], 8, Ha));
|
|
2202
2215
|
}
|
|
2203
|
-
},
|
|
2216
|
+
}, Wn = {
|
|
2204
2217
|
__name: "BsProfile",
|
|
2205
2218
|
props: {
|
|
2206
2219
|
layout: {
|
|
@@ -2229,20 +2242,20 @@ const Et = {
|
|
|
2229
2242
|
emits: ["action-toggled"],
|
|
2230
2243
|
setup(e, { emit: a }) {
|
|
2231
2244
|
const t = e, l = a, { onLinkClick: n } = ie(t), o = p(() => t.href ? "a" : "div");
|
|
2232
|
-
return (
|
|
2245
|
+
return (d, i) => (u(), A(U(o.value), {
|
|
2233
2246
|
class: "bs-profile",
|
|
2234
2247
|
href: e.href,
|
|
2235
2248
|
"data-layout": e.layout,
|
|
2236
2249
|
onClick: v(n)
|
|
2237
2250
|
}, {
|
|
2238
2251
|
default: C(() => [
|
|
2239
|
-
|
|
2252
|
+
V(Ya, {
|
|
2240
2253
|
src: e.imageSrc,
|
|
2241
2254
|
size: e.imageSize,
|
|
2242
2255
|
initials: e.initials,
|
|
2243
2256
|
"profile-name": e.profileName
|
|
2244
2257
|
}, null, 8, ["src", "size", "initials", "profile-name"]),
|
|
2245
|
-
|
|
2258
|
+
V(Ua, {
|
|
2246
2259
|
"profile-name": e.profileName,
|
|
2247
2260
|
company: e.company,
|
|
2248
2261
|
"job-title": e.jobTitle,
|
|
@@ -2251,13 +2264,13 @@ const Et = {
|
|
|
2251
2264
|
"action-icon": e.actionIcon,
|
|
2252
2265
|
"misc-meta": e.miscMeta,
|
|
2253
2266
|
"misc-meta-icon": e.miscMetaIcon,
|
|
2254
|
-
onActionToggled: i[0] || (i[0] = (
|
|
2267
|
+
onActionToggled: i[0] || (i[0] = (s) => l("action-toggled"))
|
|
2255
2268
|
}, {
|
|
2256
2269
|
action: C(() => [
|
|
2257
|
-
I(
|
|
2270
|
+
I(d.$slots, "action")
|
|
2258
2271
|
]),
|
|
2259
2272
|
misc: C(() => [
|
|
2260
|
-
I(
|
|
2273
|
+
I(d.$slots, "misc")
|
|
2261
2274
|
]),
|
|
2262
2275
|
_: 3
|
|
2263
2276
|
}, 8, ["profile-name", "company", "job-title", "email", "action", "action-icon", "misc-meta", "misc-meta-icon"])
|
|
@@ -2265,7 +2278,7 @@ const Et = {
|
|
|
2265
2278
|
_: 3
|
|
2266
2279
|
}, 8, ["href", "data-layout", "onClick"]));
|
|
2267
2280
|
}
|
|
2268
|
-
},
|
|
2281
|
+
}, Xa = ["data-size"], Za = ["checked", "disabled", "id", "required", "value", "data-error"], Gn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2269
2282
|
__name: "BsRadio",
|
|
2270
2283
|
props: {
|
|
2271
2284
|
label: {
|
|
@@ -2309,14 +2322,14 @@ const Et = {
|
|
|
2309
2322
|
},
|
|
2310
2323
|
emits: ["update:modelValue"],
|
|
2311
2324
|
setup(e, { emit: a }) {
|
|
2312
|
-
const t = e, l =
|
|
2313
|
-
return (r, c) => (u(), f("div",
|
|
2325
|
+
const t = e, l = R(), [n] = H(), { toChild: o, toRoot: d } = Z(t, l, ["name"]), i = p(() => t.inputId || n.value), s = p(() => t.checked || t.modelValue && t.modelValue === t.value);
|
|
2326
|
+
return (r, c) => (u(), f("div", D({
|
|
2314
2327
|
class: "bs-boolean",
|
|
2315
2328
|
"data-component": "bs-radio",
|
|
2316
2329
|
"data-size": e.size
|
|
2317
|
-
}, v(
|
|
2318
|
-
m("input",
|
|
2319
|
-
checked:
|
|
2330
|
+
}, v(d)), [
|
|
2331
|
+
m("input", D({
|
|
2332
|
+
checked: s.value,
|
|
2320
2333
|
disabled: e.disabled,
|
|
2321
2334
|
id: i.value,
|
|
2322
2335
|
required: e.required,
|
|
@@ -2325,7 +2338,7 @@ const Et = {
|
|
|
2325
2338
|
"data-error": e.error
|
|
2326
2339
|
}, v(o), {
|
|
2327
2340
|
onChange: c[0] || (c[0] = (b) => r.$emit("update:modelValue", b.target.value))
|
|
2328
|
-
}), null, 16,
|
|
2341
|
+
}), null, 16, Za),
|
|
2329
2342
|
e.label || r.$slots.label ? (u(), A(_, {
|
|
2330
2343
|
key: 0,
|
|
2331
2344
|
for: i.value,
|
|
@@ -2334,14 +2347,14 @@ const Et = {
|
|
|
2334
2347
|
}, {
|
|
2335
2348
|
default: C(() => [
|
|
2336
2349
|
I(r.$slots, "label", {}, () => [
|
|
2337
|
-
|
|
2350
|
+
j(T(e.label), 1)
|
|
2338
2351
|
])
|
|
2339
2352
|
]),
|
|
2340
2353
|
_: 3
|
|
2341
2354
|
}, 8, ["for", "disabled", "required"])) : $("", !0)
|
|
2342
|
-
], 16,
|
|
2355
|
+
], 16, Xa));
|
|
2343
2356
|
}
|
|
2344
|
-
}),
|
|
2357
|
+
}), Ja = ["id", "disabled", "required", "data-error", "value"], Qa = {
|
|
2345
2358
|
__name: "BsSelect",
|
|
2346
2359
|
props: {
|
|
2347
2360
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -2355,7 +2368,7 @@ const Et = {
|
|
|
2355
2368
|
emits: ["update:modelValue"],
|
|
2356
2369
|
setup(e, { emit: a }) {
|
|
2357
2370
|
const t = e, l = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
2358
|
-
return (n, o) => (u(), f("select",
|
|
2371
|
+
return (n, o) => (u(), f("select", D({
|
|
2359
2372
|
id: n.$attrs.id || e.inputId,
|
|
2360
2373
|
class: "bs-select",
|
|
2361
2374
|
"data-component": "bs-select",
|
|
@@ -2364,12 +2377,12 @@ const Et = {
|
|
|
2364
2377
|
"data-error": e.error,
|
|
2365
2378
|
value: e.value || e.modelValue
|
|
2366
2379
|
}, l.value, {
|
|
2367
|
-
onChange: o[0] || (o[0] = (
|
|
2380
|
+
onChange: o[0] || (o[0] = (d) => n.$emit("update:modelValue", d.target.value))
|
|
2368
2381
|
}), [
|
|
2369
2382
|
I(n.$slots, "default")
|
|
2370
|
-
], 16,
|
|
2383
|
+
], 16, Ja));
|
|
2371
2384
|
}
|
|
2372
|
-
},
|
|
2385
|
+
}, _a = ["selected", "disabled"], en = ["disabled", "selected", "value"], Fn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2373
2386
|
__name: "BsSelectField",
|
|
2374
2387
|
props: {
|
|
2375
2388
|
data: {
|
|
@@ -2396,6 +2409,10 @@ const Et = {
|
|
|
2396
2409
|
inputId: String,
|
|
2397
2410
|
/** Pass label text. */
|
|
2398
2411
|
label: { type: String },
|
|
2412
|
+
passAttrs: {
|
|
2413
|
+
type: String,
|
|
2414
|
+
default: ""
|
|
2415
|
+
},
|
|
2399
2416
|
/** Placeholder attribute for `<input>`. */
|
|
2400
2417
|
placeholder: String,
|
|
2401
2418
|
/** Sets the required state on the input, append required* indicator to label. */
|
|
@@ -2409,12 +2426,15 @@ const Et = {
|
|
|
2409
2426
|
modelValue: [String, Number]
|
|
2410
2427
|
},
|
|
2411
2428
|
setup(e) {
|
|
2412
|
-
const a = e, t =
|
|
2429
|
+
const a = e, t = R(), [l, n] = H(2), { toChild: o, toRoot: d } = Z(a, t, [
|
|
2430
|
+
"autofocus",
|
|
2431
|
+
"name"
|
|
2432
|
+
]), i = p(() => {
|
|
2413
2433
|
var b, g;
|
|
2414
2434
|
return ((g = (b = a.hints) == null ? void 0 : b.join) == null ? void 0 : g.call(b, `
|
|
2415
2435
|
`)) || a.hints;
|
|
2416
|
-
}),
|
|
2417
|
-
return (b, g) => (u(), f("div",
|
|
2436
|
+
}), s = p(() => a.error && a.errorMsg || a.hint || i.value || void 0), r = p(() => a.inputId || l.value), c = p(() => a.value || a.modelValue);
|
|
2437
|
+
return (b, g) => (u(), f("div", D({ "data-component": "bs-select-field" }, v(d)), [
|
|
2418
2438
|
e.label || b.$slots.label ? (u(), A(_, {
|
|
2419
2439
|
key: 0,
|
|
2420
2440
|
for: r.value,
|
|
@@ -2423,12 +2443,12 @@ const Et = {
|
|
|
2423
2443
|
}, {
|
|
2424
2444
|
default: C(() => [
|
|
2425
2445
|
I(b.$slots, "label", {}, () => [
|
|
2426
|
-
|
|
2446
|
+
j(T(e.label), 1)
|
|
2427
2447
|
])
|
|
2428
2448
|
]),
|
|
2429
2449
|
_: 3
|
|
2430
2450
|
}, 8, ["for", "disabled", "required"])) : $("", !0),
|
|
2431
|
-
|
|
2451
|
+
V(Qa, D({
|
|
2432
2452
|
disabled: e.disabled,
|
|
2433
2453
|
error: e.error,
|
|
2434
2454
|
"hint-id": v(n),
|
|
@@ -2442,17 +2462,17 @@ const Et = {
|
|
|
2442
2462
|
selected: !c.value,
|
|
2443
2463
|
value: "",
|
|
2444
2464
|
disabled: !!c.value
|
|
2445
|
-
}, T(e.placeholder), 9,
|
|
2446
|
-
(u(!0), f(
|
|
2465
|
+
}, T(e.placeholder), 9, _a),
|
|
2466
|
+
(u(!0), f(O, null, Y(e.data, (y) => (u(), f("option", {
|
|
2447
2467
|
key: y.value,
|
|
2448
2468
|
disabled: y.disabled,
|
|
2449
2469
|
selected: c.value === y.value,
|
|
2450
2470
|
value: y.value
|
|
2451
|
-
}, T(y.label), 9,
|
|
2471
|
+
}, T(y.label), 9, en))), 128))
|
|
2452
2472
|
]),
|
|
2453
2473
|
_: 1
|
|
2454
2474
|
}, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
|
|
2455
|
-
|
|
2475
|
+
s.value ? (u(), A(pe, {
|
|
2456
2476
|
key: 1,
|
|
2457
2477
|
"data-disabled": e.disabled,
|
|
2458
2478
|
error: e.error,
|
|
@@ -2462,7 +2482,7 @@ const Et = {
|
|
|
2462
2482
|
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : $("", !0)
|
|
2463
2483
|
], 16));
|
|
2464
2484
|
}
|
|
2465
|
-
}),
|
|
2485
|
+
}), tn = ["data-size"], an = ["data-disabled", "data-pending", "data-size"], nn = ["checked", "disabled", "id"], ln = ["data-inner-on-label", "data-inner-off-label"], Un = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2466
2486
|
__name: "BsSwitch",
|
|
2467
2487
|
props: {
|
|
2468
2488
|
checked: {
|
|
@@ -2508,21 +2528,21 @@ const Et = {
|
|
|
2508
2528
|
},
|
|
2509
2529
|
emits: ["update:modelValue"],
|
|
2510
2530
|
setup(e, { emit: a }) {
|
|
2511
|
-
const t = e, l = a, n =
|
|
2512
|
-
return (c, b) => (u(), f("div",
|
|
2531
|
+
const t = e, l = a, n = R(), [o] = H(), { toChild: d, toRoot: i } = Z(t, n, ["name", "value"]), s = p(() => t.inputId || o.value), r = p(() => t.checked || t.modelValue);
|
|
2532
|
+
return (c, b) => (u(), f("div", D({
|
|
2513
2533
|
class: "bs-boolean",
|
|
2514
2534
|
"data-component": "bs-switch",
|
|
2515
2535
|
"data-size": e.size
|
|
2516
2536
|
}, v(i)), [
|
|
2517
2537
|
e.label || c.$slots.label ? (u(), A(_, {
|
|
2518
2538
|
key: 0,
|
|
2519
|
-
for:
|
|
2539
|
+
for: s.value,
|
|
2520
2540
|
disabled: e.disabled,
|
|
2521
2541
|
hide: e.hideLabel
|
|
2522
2542
|
}, {
|
|
2523
2543
|
default: C(() => [
|
|
2524
2544
|
I(c.$slots, "label", {}, () => [
|
|
2525
|
-
|
|
2545
|
+
j(T(e.label), 1)
|
|
2526
2546
|
])
|
|
2527
2547
|
]),
|
|
2528
2548
|
_: 3
|
|
@@ -2533,23 +2553,23 @@ const Et = {
|
|
|
2533
2553
|
"data-pending": e.pending,
|
|
2534
2554
|
"data-size": e.size
|
|
2535
2555
|
}, [
|
|
2536
|
-
m("input",
|
|
2556
|
+
m("input", D({
|
|
2537
2557
|
checked: r.value,
|
|
2538
2558
|
disabled: e.disabled,
|
|
2539
|
-
id:
|
|
2559
|
+
id: s.value,
|
|
2540
2560
|
type: "checkbox"
|
|
2541
|
-
}, v(
|
|
2561
|
+
}, v(d), {
|
|
2542
2562
|
onChange: b[0] || (b[0] = (g) => l("update:modelValue", g.target.checked))
|
|
2543
|
-
}), null, 16,
|
|
2563
|
+
}), null, 16, nn),
|
|
2544
2564
|
m("span", {
|
|
2545
2565
|
"aria-hidden": "true",
|
|
2546
2566
|
"data-inner-on-label": e.innerOnLabel,
|
|
2547
2567
|
"data-inner-off-label": e.innerOffLabel
|
|
2548
|
-
}, null, 8,
|
|
2549
|
-
], 8,
|
|
2550
|
-
], 16,
|
|
2568
|
+
}, null, 8, ln)
|
|
2569
|
+
], 8, an)
|
|
2570
|
+
], 16, tn));
|
|
2551
2571
|
}
|
|
2552
|
-
}),
|
|
2572
|
+
}), on = ["aria-controls", "aria-selected", "data-hidden"], Hn = {
|
|
2553
2573
|
__name: "BsTab",
|
|
2554
2574
|
props: {
|
|
2555
2575
|
activeTabId: {
|
|
@@ -2566,18 +2586,18 @@ const Et = {
|
|
|
2566
2586
|
},
|
|
2567
2587
|
emits: ["tabClick"],
|
|
2568
2588
|
setup(e, { emit: a }) {
|
|
2569
|
-
const t = e, l =
|
|
2589
|
+
const t = e, l = R(), n = k(), o = p(() => t.activeTabId === l.id), d = p(() => t.panelId || `${l.id}-panel`);
|
|
2570
2590
|
function i(r) {
|
|
2571
|
-
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(),
|
|
2591
|
+
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), s());
|
|
2572
2592
|
}
|
|
2573
|
-
function
|
|
2593
|
+
function s() {
|
|
2574
2594
|
if (t.activeTabId !== l.id) {
|
|
2575
2595
|
const r = new CustomEvent("tabClick", { detail: l.id, bubbles: !0 });
|
|
2576
2596
|
n.value.dispatchEvent(r);
|
|
2577
2597
|
}
|
|
2578
2598
|
}
|
|
2579
2599
|
return (r, c) => (u(), f("div", {
|
|
2580
|
-
"aria-controls":
|
|
2600
|
+
"aria-controls": d.value,
|
|
2581
2601
|
"aria-selected": o.value ? "true" : "false",
|
|
2582
2602
|
"data-hidden": e.hidden || void 0,
|
|
2583
2603
|
"data-component": "bs-tab",
|
|
@@ -2585,13 +2605,13 @@ const Et = {
|
|
|
2585
2605
|
tabindex: "0",
|
|
2586
2606
|
ref_key: "hostEl",
|
|
2587
2607
|
ref: n,
|
|
2588
|
-
onClick:
|
|
2608
|
+
onClick: s,
|
|
2589
2609
|
onKeydown: i
|
|
2590
2610
|
}, [
|
|
2591
2611
|
I(r.$slots, "default")
|
|
2592
|
-
], 40,
|
|
2612
|
+
], 40, on));
|
|
2593
2613
|
}
|
|
2594
|
-
},
|
|
2614
|
+
}, rn = ["id", "data-resizing"], sn = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], dn = 73, un = 20, cn = 16, Kn = {
|
|
2595
2615
|
__name: "BsTabList",
|
|
2596
2616
|
props: {
|
|
2597
2617
|
activeTabId: { type: String, required: !0 },
|
|
@@ -2602,10 +2622,10 @@ const Et = {
|
|
|
2602
2622
|
},
|
|
2603
2623
|
emits: ["tabChange", "update:modelValue"],
|
|
2604
2624
|
setup(e, { emit: a }) {
|
|
2605
|
-
const t = e, l = a, n = k(!1), o = k(!1),
|
|
2625
|
+
const t = e, l = a, n = k(!1), o = k(!1), d = k([]), i = k(!1), s = k(!1), r = k(), c = 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)), W = p(() => `${w.value}-options`), ee = p(() => `${w.value}-toggle`), J = p(() => {
|
|
2606
2626
|
var h;
|
|
2607
2627
|
return q.value ? (h = g.value[S.value]) == null ? void 0 : h.textContent : "More";
|
|
2608
|
-
}), ke = p(() => q.value ? c.value[S.value] - c.value[S.value - 1] +
|
|
2628
|
+
}), ke = p(() => q.value ? c.value[S.value] - c.value[S.value - 1] + un : dn), Q = p(() => {
|
|
2609
2629
|
var B, x;
|
|
2610
2630
|
let h = [];
|
|
2611
2631
|
if (typeof window > "u")
|
|
@@ -2615,7 +2635,7 @@ const Et = {
|
|
|
2615
2635
|
break;
|
|
2616
2636
|
h.push(z);
|
|
2617
2637
|
}
|
|
2618
|
-
return
|
|
2638
|
+
return s.value && h.push(r.value.querySelector(".bs-tab-list-toggle")), h;
|
|
2619
2639
|
});
|
|
2620
2640
|
function ue() {
|
|
2621
2641
|
var K;
|
|
@@ -2632,7 +2652,7 @@ const Et = {
|
|
|
2632
2652
|
}
|
|
2633
2653
|
B.dataset.hidden = "false", B.setAttribute("tabindex", "0");
|
|
2634
2654
|
}
|
|
2635
|
-
|
|
2655
|
+
s.value = h, d.value = G, n.value || Ue(() => n.value = !0), setTimeout(() => {
|
|
2636
2656
|
Ee(), b.value = !0;
|
|
2637
2657
|
}, b.value ? 0 : 1e3);
|
|
2638
2658
|
}
|
|
@@ -2691,7 +2711,7 @@ const Et = {
|
|
|
2691
2711
|
var K, F, ge, be;
|
|
2692
2712
|
const h = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0, B = M.value;
|
|
2693
2713
|
let x = 300, z = ((F = (K = Q.value) == null ? void 0 : K[S.value]) == null ? void 0 : F.offsetLeft) || 0, G = Ie(S.value);
|
|
2694
|
-
|
|
2714
|
+
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`);
|
|
2695
2715
|
}
|
|
2696
2716
|
function qe() {
|
|
2697
2717
|
var h, B;
|
|
@@ -2707,16 +2727,16 @@ const Et = {
|
|
|
2707
2727
|
function Me() {
|
|
2708
2728
|
g.value = Array.from(r.value.children).filter((h) => h.role === "tab");
|
|
2709
2729
|
}
|
|
2710
|
-
function
|
|
2730
|
+
function Oe() {
|
|
2711
2731
|
let h;
|
|
2712
2732
|
g.value.forEach((B, x) => {
|
|
2713
|
-
h = B.getBoundingClientRect().width +
|
|
2733
|
+
h = B.getBoundingClientRect().width + cn, c.value.push(x ? h + c.value[x - 1] : h);
|
|
2714
2734
|
});
|
|
2715
2735
|
}
|
|
2716
|
-
return E(() => t.activeTabId, Te),
|
|
2736
|
+
return E(() => t.activeTabId, Te), N(() => {
|
|
2717
2737
|
var h;
|
|
2718
2738
|
try {
|
|
2719
|
-
Me(),
|
|
2739
|
+
Me(), Oe(), ze(), M.value = r.value.getBoundingClientRect().width, ue(), t.withBsTabs || (h = g.value[S.value]) == null || h.setAttribute("aria-selected", "true");
|
|
2720
2740
|
} catch (B) {
|
|
2721
2741
|
console.log("tab error", B);
|
|
2722
2742
|
}
|
|
@@ -2738,22 +2758,22 @@ const Et = {
|
|
|
2738
2758
|
"aria-expanded": i.value,
|
|
2739
2759
|
class: "bs-tab-list-toggle",
|
|
2740
2760
|
"data-active": q.value || void 0,
|
|
2741
|
-
"data-hidden": !
|
|
2761
|
+
"data-hidden": !s.value,
|
|
2742
2762
|
id: ee.value,
|
|
2743
2763
|
ref_key: "dropdownToggle",
|
|
2744
2764
|
ref: y,
|
|
2745
2765
|
onClick: Ce
|
|
2746
2766
|
}, [
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
], 8,
|
|
2750
|
-
|
|
2767
|
+
V(v(et), { size: "sm" }),
|
|
2768
|
+
j(" " + T(J.value), 1)
|
|
2769
|
+
], 8, sn),
|
|
2770
|
+
V(_t, {
|
|
2751
2771
|
"anchor-id": ee.value,
|
|
2752
2772
|
"container-id": h.$attrs.id || v(P),
|
|
2753
2773
|
"helper-description": e.helperDescription || void 0,
|
|
2754
2774
|
"helper-text": e.helperText,
|
|
2755
2775
|
id: v(w),
|
|
2756
|
-
"options-id":
|
|
2776
|
+
"options-id": W.value,
|
|
2757
2777
|
position: "right",
|
|
2758
2778
|
preloaded: "",
|
|
2759
2779
|
shown: i.value,
|
|
@@ -2762,22 +2782,22 @@ const Et = {
|
|
|
2762
2782
|
"onUpdate:modelValue": Ae
|
|
2763
2783
|
}, {
|
|
2764
2784
|
default: C(() => [
|
|
2765
|
-
(u(!0), f(
|
|
2785
|
+
(u(!0), f(O, null, Y(d.value, (x) => (u(), A(Zt, {
|
|
2766
2786
|
key: x.id,
|
|
2767
2787
|
value: x.id,
|
|
2768
|
-
"options-id":
|
|
2788
|
+
"options-id": W.value
|
|
2769
2789
|
}, {
|
|
2770
2790
|
default: C(() => [
|
|
2771
|
-
|
|
2791
|
+
j(T(x.textContent), 1)
|
|
2772
2792
|
]),
|
|
2773
2793
|
_: 2
|
|
2774
2794
|
}, 1032, ["value", "options-id"]))), 128))
|
|
2775
2795
|
]),
|
|
2776
2796
|
_: 1
|
|
2777
2797
|
}, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])
|
|
2778
|
-
], 40,
|
|
2798
|
+
], 40, rn));
|
|
2779
2799
|
}
|
|
2780
|
-
},
|
|
2800
|
+
}, fn = ["aria-labelledby", "data-active", "id"], Yn = {
|
|
2781
2801
|
__name: "BsTabPanel",
|
|
2782
2802
|
props: {
|
|
2783
2803
|
activeTabId: {
|
|
@@ -2790,8 +2810,8 @@ const Et = {
|
|
|
2790
2810
|
}
|
|
2791
2811
|
},
|
|
2792
2812
|
setup(e) {
|
|
2793
|
-
const a = e, t =
|
|
2794
|
-
return (o,
|
|
2813
|
+
const a = e, t = R(), l = p(() => a.activeTabId && a.activeTabId === a.tabId), n = p(() => t.id || `${a.tabId}-panel`);
|
|
2814
|
+
return (o, d) => (u(), f("section", {
|
|
2795
2815
|
"aria-labelledby": e.tabId,
|
|
2796
2816
|
"data-active": l.value,
|
|
2797
2817
|
"data-component": "bs-tab-panel",
|
|
@@ -2799,9 +2819,9 @@ const Et = {
|
|
|
2799
2819
|
role: "tabpanel"
|
|
2800
2820
|
}, [
|
|
2801
2821
|
I(o.$slots, "default")
|
|
2802
|
-
], 8,
|
|
2822
|
+
], 8, fn));
|
|
2803
2823
|
}
|
|
2804
|
-
},
|
|
2824
|
+
}, vn = ["data-error", "id", "rows", "value"], hn = {
|
|
2805
2825
|
__name: "BsTextarea",
|
|
2806
2826
|
props: {
|
|
2807
2827
|
error: {
|
|
@@ -2817,17 +2837,17 @@ const Et = {
|
|
|
2817
2837
|
emits: ["update:modelValue"],
|
|
2818
2838
|
setup(e, { emit: a }) {
|
|
2819
2839
|
const t = e, l = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
2820
|
-
return (n, o) => (u(), f("textarea",
|
|
2840
|
+
return (n, o) => (u(), f("textarea", D({
|
|
2821
2841
|
class: "bs-textarea",
|
|
2822
2842
|
"data-component": "bs-textarea",
|
|
2823
2843
|
"data-error": e.error,
|
|
2824
2844
|
id: n.$attrs.id || e.inputId,
|
|
2825
2845
|
rows: n.$attrs.rows || 6,
|
|
2826
2846
|
value: e.value || e.modelValue,
|
|
2827
|
-
onInput: o[0] || (o[0] = (
|
|
2828
|
-
}, l.value), null, 16,
|
|
2847
|
+
onInput: o[0] || (o[0] = (d) => n.$emit("update:modelValue", d.target.value))
|
|
2848
|
+
}, l.value), null, 16, vn));
|
|
2829
2849
|
}
|
|
2830
|
-
},
|
|
2850
|
+
}, Xn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2831
2851
|
__name: "BsTextareaField",
|
|
2832
2852
|
props: {
|
|
2833
2853
|
/** 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. */
|
|
@@ -2876,7 +2896,13 @@ const Et = {
|
|
|
2876
2896
|
},
|
|
2877
2897
|
emits: ["update:modelValue"],
|
|
2878
2898
|
setup(e, { emit: a }) {
|
|
2879
|
-
const t = e, l =
|
|
2899
|
+
const t = e, l = R(), [n, o] = H(2), { toChild: d, toRoot: i } = Z(t, l, [
|
|
2900
|
+
"autocomplete",
|
|
2901
|
+
"cols",
|
|
2902
|
+
"maxlength",
|
|
2903
|
+
"minlength",
|
|
2904
|
+
"name"
|
|
2905
|
+
]), s = p(() => {
|
|
2880
2906
|
var g;
|
|
2881
2907
|
return ((g = t.value || t.modelValue) == null ? void 0 : g.length) || 0;
|
|
2882
2908
|
}), r = p(() => {
|
|
@@ -2884,7 +2910,7 @@ const Et = {
|
|
|
2884
2910
|
return ((y = (g = t.hints) == null ? void 0 : g.join) == null ? void 0 : y.call(g, `
|
|
2885
2911
|
`)) || t.hints;
|
|
2886
2912
|
}), c = p(() => t.error && t.errorMsg || t.hint || r.value || void 0), b = p(() => t.inputId || n.value);
|
|
2887
|
-
return (g, y) => (u(), f("div",
|
|
2913
|
+
return (g, y) => (u(), f("div", D({ "data-component": "bs-textarea-field" }, v(i)), [
|
|
2888
2914
|
e.label || g.$slots.label ? (u(), A(_, {
|
|
2889
2915
|
key: 0,
|
|
2890
2916
|
for: b.value,
|
|
@@ -2893,12 +2919,12 @@ const Et = {
|
|
|
2893
2919
|
}, {
|
|
2894
2920
|
default: C(() => [
|
|
2895
2921
|
I(g.$slots, "label", {}, () => [
|
|
2896
|
-
|
|
2922
|
+
j(T(e.label), 1)
|
|
2897
2923
|
])
|
|
2898
2924
|
]),
|
|
2899
2925
|
_: 3
|
|
2900
2926
|
}, 8, ["for", "disabled", "required"])) : $("", !0),
|
|
2901
|
-
|
|
2927
|
+
V(hn, D({
|
|
2902
2928
|
disabled: e.disabled,
|
|
2903
2929
|
error: e.error,
|
|
2904
2930
|
"hint-id": v(o),
|
|
@@ -2908,10 +2934,10 @@ const Et = {
|
|
|
2908
2934
|
rows: e.rows,
|
|
2909
2935
|
value: e.value || e.modelValue,
|
|
2910
2936
|
"onUpdate:modelValue": y[0] || (y[0] = (L) => g.$emit("update:modelValue", L))
|
|
2911
|
-
}, v(
|
|
2937
|
+
}, v(d)), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
|
|
2912
2938
|
c.value || e.charMax ? (u(), A(pe, {
|
|
2913
2939
|
key: 1,
|
|
2914
|
-
"char-count":
|
|
2940
|
+
"char-count": s.value,
|
|
2915
2941
|
"char-max": e.charMax,
|
|
2916
2942
|
"data-disabled": e.disabled,
|
|
2917
2943
|
error: e.error,
|
|
@@ -2921,7 +2947,7 @@ const Et = {
|
|
|
2921
2947
|
}, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) : $("", !0)
|
|
2922
2948
|
], 16));
|
|
2923
2949
|
}
|
|
2924
|
-
}),
|
|
2950
|
+
}), pn = ["data-variant", "data-stacked"], Zn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2925
2951
|
__name: "BsToast",
|
|
2926
2952
|
props: {
|
|
2927
2953
|
shown: {
|
|
@@ -2970,11 +2996,11 @@ const Et = {
|
|
|
2970
2996
|
const t = e, l = a, { transition: n } = se(t);
|
|
2971
2997
|
let o = null;
|
|
2972
2998
|
ae("variant", t.variant), ae("handleDismiss", i);
|
|
2973
|
-
const
|
|
2999
|
+
const d = te("stacked", t.stacked);
|
|
2974
3000
|
function i() {
|
|
2975
3001
|
o && (clearTimeout(o), o = null), l("dismiss", t.toastId);
|
|
2976
3002
|
}
|
|
2977
|
-
function
|
|
3003
|
+
function s() {
|
|
2978
3004
|
t.duration > 0 && (o = setTimeout(() => {
|
|
2979
3005
|
i();
|
|
2980
3006
|
}, t.duration)), l("after-enter");
|
|
@@ -2984,29 +3010,29 @@ const Et = {
|
|
|
2984
3010
|
preloaded: e.preloaded,
|
|
2985
3011
|
duration: 200,
|
|
2986
3012
|
"enter-attribute": "data-shown",
|
|
2987
|
-
onAfterEnter:
|
|
3013
|
+
onAfterEnter: s,
|
|
2988
3014
|
onAfterLeave: c[0] || (c[0] = (b) => l("after-leave"))
|
|
2989
3015
|
}, {
|
|
2990
3016
|
default: C(() => [
|
|
2991
|
-
m("div", {
|
|
3017
|
+
m("div", D({
|
|
2992
3018
|
class: "bs-toast",
|
|
2993
3019
|
"data-variant": e.variant,
|
|
2994
|
-
"data-stacked": v(
|
|
3020
|
+
"data-stacked": v(d) || void 0,
|
|
2995
3021
|
"aria-role": "alert"
|
|
2996
|
-
}, [
|
|
3022
|
+
}, r.$attrs), [
|
|
2997
3023
|
I(r.$slots, "default")
|
|
2998
|
-
],
|
|
3024
|
+
], 16, pn)
|
|
2999
3025
|
]),
|
|
3000
3026
|
_: 3
|
|
3001
3027
|
}, 8, ["shown", "preloaded"]));
|
|
3002
3028
|
}
|
|
3003
|
-
},
|
|
3029
|
+
}), gn = ["data-stacked"], Jn = {
|
|
3004
3030
|
__name: "BsToastActions",
|
|
3005
3031
|
setup(e) {
|
|
3006
3032
|
const a = k(!1);
|
|
3007
|
-
|
|
3033
|
+
N(() => {
|
|
3008
3034
|
var n;
|
|
3009
|
-
const l =
|
|
3035
|
+
const l = He();
|
|
3010
3036
|
((n = l.default) == null ? void 0 : n.call(l).length) > 2 && (a.value = !0);
|
|
3011
3037
|
});
|
|
3012
3038
|
const t = te("handleDismiss");
|
|
@@ -3015,31 +3041,31 @@ const Et = {
|
|
|
3015
3041
|
"data-stacked": a.value || void 0
|
|
3016
3042
|
}, [
|
|
3017
3043
|
I(l.$slots, "default", {}, () => [
|
|
3018
|
-
|
|
3044
|
+
V(wt, {
|
|
3019
3045
|
size: "sm",
|
|
3020
3046
|
"text-btn": "",
|
|
3021
3047
|
onClick: v(t)
|
|
3022
3048
|
}, {
|
|
3023
3049
|
default: C(() => [
|
|
3024
|
-
|
|
3050
|
+
j(" Dismiss ")
|
|
3025
3051
|
]),
|
|
3026
3052
|
_: 1
|
|
3027
3053
|
}, 8, ["onClick"])
|
|
3028
3054
|
])
|
|
3029
|
-
], 8,
|
|
3055
|
+
], 8, gn));
|
|
3030
3056
|
}
|
|
3031
|
-
},
|
|
3057
|
+
}, bn = (e, a) => {
|
|
3032
3058
|
const t = e.__vccOpts || e;
|
|
3033
3059
|
for (const [l, n] of a)
|
|
3034
3060
|
t[l] = n;
|
|
3035
3061
|
return t;
|
|
3036
|
-
},
|
|
3037
|
-
function
|
|
3038
|
-
return u(), f("div",
|
|
3062
|
+
}, mn = {}, yn = { class: "bs-toast-body" };
|
|
3063
|
+
function Bn(e, a) {
|
|
3064
|
+
return u(), f("div", yn, [
|
|
3039
3065
|
I(e.$slots, "default")
|
|
3040
3066
|
]);
|
|
3041
3067
|
}
|
|
3042
|
-
const
|
|
3068
|
+
const Qn = /* @__PURE__ */ bn(mn, [["render", Bn]]), $n = ["data-variant"], _n = {
|
|
3043
3069
|
__name: "BsToastHeader",
|
|
3044
3070
|
setup(e) {
|
|
3045
3071
|
const a = te("variant"), t = p(() => {
|
|
@@ -3047,11 +3073,11 @@ const _n = /* @__PURE__ */ mn(yn, [["render", $n]]), Sn = ["data-variant"], el =
|
|
|
3047
3073
|
case "warning":
|
|
3048
3074
|
return ve;
|
|
3049
3075
|
case "positive":
|
|
3050
|
-
return
|
|
3076
|
+
return at;
|
|
3051
3077
|
case "negative":
|
|
3052
3078
|
return ve;
|
|
3053
3079
|
default:
|
|
3054
|
-
return
|
|
3080
|
+
return tt;
|
|
3055
3081
|
}
|
|
3056
3082
|
});
|
|
3057
3083
|
return (l, n) => (u(), f("div", {
|
|
@@ -3062,16 +3088,16 @@ const _n = /* @__PURE__ */ mn(yn, [["render", $n]]), Sn = ["data-variant"], el =
|
|
|
3062
3088
|
m("h5", null, [
|
|
3063
3089
|
I(l.$slots, "default")
|
|
3064
3090
|
])
|
|
3065
|
-
], 8,
|
|
3091
|
+
], 8, $n));
|
|
3066
3092
|
}
|
|
3067
|
-
},
|
|
3093
|
+
}, Sn = { class: "bs-toaster" }, el = {
|
|
3068
3094
|
__name: "BsToaster",
|
|
3069
3095
|
setup(e) {
|
|
3070
|
-
return ae("stacked", !0), (a, t) => (u(), f("div",
|
|
3096
|
+
return ae("stacked", !0), (a, t) => (u(), f("div", Sn, [
|
|
3071
3097
|
I(a.$slots, "default")
|
|
3072
3098
|
]));
|
|
3073
3099
|
}
|
|
3074
|
-
},
|
|
3100
|
+
}, wn = ["data-position"], kn = ["id"], tl = {
|
|
3075
3101
|
__name: "BsTooltip",
|
|
3076
3102
|
props: {
|
|
3077
3103
|
tooltipId: {
|
|
@@ -3108,17 +3134,17 @@ const _n = /* @__PURE__ */ mn(yn, [["render", $n]]), Sn = ["data-variant"], el =
|
|
|
3108
3134
|
function o() {
|
|
3109
3135
|
t.value = !0;
|
|
3110
3136
|
}
|
|
3111
|
-
function
|
|
3137
|
+
function d() {
|
|
3112
3138
|
t.value = !1, l.value = !1;
|
|
3113
3139
|
}
|
|
3114
|
-
return (i,
|
|
3140
|
+
return (i, s) => (u(), f("div", {
|
|
3115
3141
|
class: "bs-tooltip",
|
|
3116
3142
|
"data-position": e.position || void 0,
|
|
3117
3143
|
"data-component": "bs-tooltip",
|
|
3118
3144
|
onMouseenter: o,
|
|
3119
3145
|
onFocusin: o,
|
|
3120
|
-
onMouseleave:
|
|
3121
|
-
onFocusout:
|
|
3146
|
+
onMouseleave: d,
|
|
3147
|
+
onFocusout: d
|
|
3122
3148
|
}, [
|
|
3123
3149
|
I(i.$slots, "default"),
|
|
3124
3150
|
e.content ? (u(), f("div", {
|
|
@@ -3126,51 +3152,51 @@ const _n = /* @__PURE__ */ mn(yn, [["render", $n]]), Sn = ["data-variant"], el =
|
|
|
3126
3152
|
class: X(n.value),
|
|
3127
3153
|
id: e.tooltipId,
|
|
3128
3154
|
role: "tooltip"
|
|
3129
|
-
}, T(e.content), 11,
|
|
3130
|
-
], 40,
|
|
3155
|
+
}, T(e.content), 11, kn)) : $("", !0)
|
|
3156
|
+
], 40, wn));
|
|
3131
3157
|
}
|
|
3132
3158
|
};
|
|
3133
3159
|
export {
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3160
|
+
An as BsAccordion,
|
|
3161
|
+
Ln as BsBadge,
|
|
3162
|
+
Pn as BsBanner,
|
|
3163
|
+
wt as BsButton,
|
|
3164
|
+
Dn as BsChartBar,
|
|
3165
|
+
Vn as BsCheckbox,
|
|
3166
|
+
En as BsCircleButton,
|
|
3167
|
+
Yt as BsDropdown,
|
|
3168
|
+
Zt as BsDropdownOption,
|
|
3169
|
+
Qt as BsDropdownOptionList,
|
|
3170
|
+
_t as BsDropdownWithOptions,
|
|
3145
3171
|
pe as BsFieldDetails,
|
|
3146
|
-
|
|
3172
|
+
qn as BsIconGradientWrapper,
|
|
3147
3173
|
we as BsInput,
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3174
|
+
sa as BsInputAddon,
|
|
3175
|
+
zn as BsInputField,
|
|
3176
|
+
Mn as BsInputSearch,
|
|
3151
3177
|
_ as BsLabel,
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3178
|
+
On as BsLoader,
|
|
3179
|
+
Rn as BsModal,
|
|
3180
|
+
ba as BsOverlay,
|
|
3181
|
+
Nn as BsPagination,
|
|
3156
3182
|
jn as BsPill,
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3183
|
+
Wn as BsProfile,
|
|
3184
|
+
Ua as BsProfileDetails,
|
|
3185
|
+
Ya as BsProfileImg,
|
|
3186
|
+
Gn as BsRadio,
|
|
3187
|
+
Qa as BsSelect,
|
|
3188
|
+
Fn as BsSelectField,
|
|
3189
|
+
Un as BsSwitch,
|
|
3190
|
+
Hn as BsTab,
|
|
3191
|
+
Kn as BsTabList,
|
|
3192
|
+
Yn as BsTabPanel,
|
|
3193
|
+
hn as BsTextarea,
|
|
3194
|
+
Xn as BsTextareaField,
|
|
3195
|
+
Zn as BsToast,
|
|
3196
|
+
Jn as BsToastActions,
|
|
3197
|
+
Qn as BsToastBody,
|
|
3198
|
+
_n as BsToastHeader,
|
|
3199
|
+
el as BsToaster,
|
|
3200
|
+
tl as BsTooltip,
|
|
3175
3201
|
de as BsTransition
|
|
3176
3202
|
};
|