@wwtdev/bsds-components-vue3 2.10.0 → 2.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bsds-components.js +1272 -1121
- package/lib/components.css +1 -1
- package/package.json +2 -2
package/lib/bsds-components.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { computed as p, ref as k, onMounted as H, onUnmounted as $e, shallowRef as
|
|
2
|
-
import { v4 as
|
|
3
|
-
import { BsIconCaretDown as
|
|
4
|
-
import { DatePicker as
|
|
5
|
-
import { Filler as
|
|
1
|
+
import { computed as p, ref as k, onMounted as H, onUnmounted as $e, shallowRef as Mt, watch as j, defineAsyncComponent as Je, openBlock as u, createElementBlock as v, unref as c, createElementVNode as $, renderSlot as E, createBlock as A, resolveDynamicComponent as te, createCommentVNode as C, toDisplayString as T, createVNode as D, normalizeClass as ie, useAttrs as re, mergeProps as z, withCtx as L, Fragment as G, toHandlers as Ye, onBeforeUnmount as _e, onBeforeMount as gt, nextTick as Ae, createTextVNode as U, createSlots as Ze, useSlots as yt, renderList as ee, Teleport as Nt, withDirectives as ue, Transition as st, vShow as ce, provide as fe, inject as pe, withModifiers as St, isRef as zt } from "vue";
|
|
2
|
+
import { v4 as wt } from "uuid";
|
|
3
|
+
import { BsIconCaretDown as Me, BsIconWarning as Xe, BsIconClose as Be, BsIconCalendar as $t, BsIconCaretRight as Bt, BsIconCaretLeft as It, BsIconSmallCaretRight as Rt, BsIconSmallCaretLeft as Ft, BsIconCaretSort as jt, BsIconSearch as Wt, BsIconCaretLeftDouble as Ut, BsIconCaretRightDouble as Gt, BsIconActionEllipsis as Ht, BsIconGraphPieEmpty as dt, BsIconCircleStop as Kt, BsIconCircleCheck as Yt, BsIconCircleX as Zt, BsIconCircleEllipsis as Xt, BsIconCirclePlay as Qt, BsIconCirclePause as Jt, BsIconCircleExclamation as kt, BsIconThumbsUpStroke as _t } from "@wwtdev/bsds-icons-vue3";
|
|
4
|
+
import { DatePicker as ea } from "v-calendar";
|
|
5
|
+
import { Filler as ta, Chart as je, BarController as aa, BarElement as na, CategoryScale as la, LinearScale as oa, Legend as ia, TimeScale as ra, Tooltip as sa } from "chart.js";
|
|
6
6
|
import "chartjs-adapter-date-fns";
|
|
7
|
-
import
|
|
8
|
-
import { getSupportedCallingCodes as
|
|
7
|
+
import Ne from "lodash.merge";
|
|
8
|
+
import { getSupportedCallingCodes as da, getRegionCodeForCountryCode as ua, parsePhoneNumber as ut } from "awesome-phonenumber";
|
|
9
9
|
const ct = {
|
|
10
10
|
href: "a",
|
|
11
11
|
linkTo: "a",
|
|
@@ -14,23 +14,23 @@ const ct = {
|
|
|
14
14
|
type: "button"
|
|
15
15
|
};
|
|
16
16
|
function ze(e, a, t = "button") {
|
|
17
|
-
const l =
|
|
18
|
-
const o = l.value === "button",
|
|
19
|
-
return o ? (
|
|
17
|
+
const l = ca(e, a, t), n = p(() => {
|
|
18
|
+
const o = l.value === "button", s = {};
|
|
19
|
+
return o ? (s.type = a.type || "button", s.autocomplete = "off", e.disabled && (s.disabled = !0)) : e.disabled && (s["aria-disabled"] = "true", s.tabindex = "-1"), s;
|
|
20
20
|
}), i = p(() => {
|
|
21
21
|
const o = { ...a, ...n.value };
|
|
22
22
|
return delete o.href, o;
|
|
23
|
-
}),
|
|
24
|
-
return { rootTag: l, attrsToBind: i, hrefUrl:
|
|
23
|
+
}), d = p(() => e.linkTo || e.href);
|
|
24
|
+
return { rootTag: l, attrsToBind: i, hrefUrl: d };
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
const l = Object.keys(ct).find((n) =>
|
|
26
|
+
function ca(e, a, t) {
|
|
27
|
+
const l = Object.keys(ct).find((n) => fa(e, a, n));
|
|
28
28
|
return k(ct[l] || t);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function fa(e, a, t) {
|
|
31
31
|
return e[t] || a[t];
|
|
32
32
|
}
|
|
33
|
-
const
|
|
33
|
+
const Ct = (e, a) => {
|
|
34
34
|
const t = (l) => {
|
|
35
35
|
e.some((n) => {
|
|
36
36
|
var i;
|
|
@@ -43,13 +43,13 @@ const kt = (e, a) => {
|
|
|
43
43
|
document.removeEventListener("mouseup", t);
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
|
-
function
|
|
46
|
+
function Re(e) {
|
|
47
47
|
const a = p(() => e.linkTo || e.href || ""), t = p(() => {
|
|
48
|
-
var i,
|
|
49
|
-
return ((
|
|
48
|
+
var i, d;
|
|
49
|
+
return ((d = (i = a.value) == null ? void 0 : i.startsWith) == null ? void 0 : d.call(i, "/")) || !1;
|
|
50
50
|
}), l = p(() => {
|
|
51
|
-
var i,
|
|
52
|
-
return t.value && ((i = e.router) == null ? void 0 : i.navigateTo) || ((
|
|
51
|
+
var i, d;
|
|
52
|
+
return t.value && ((i = e.router) == null ? void 0 : i.navigateTo) || ((d = e.router) == null ? void 0 : d.push) || null;
|
|
53
53
|
});
|
|
54
54
|
function n(i) {
|
|
55
55
|
if (e.disabled) {
|
|
@@ -67,41 +67,41 @@ function ft(e) {
|
|
|
67
67
|
}
|
|
68
68
|
const Ve = (e, a) => {
|
|
69
69
|
var i;
|
|
70
|
-
function t(
|
|
71
|
-
if (!
|
|
70
|
+
function t(d) {
|
|
71
|
+
if (!d)
|
|
72
72
|
return null;
|
|
73
|
-
const o =
|
|
74
|
-
return
|
|
75
|
-
const { [o]:
|
|
76
|
-
return
|
|
73
|
+
const o = d.startsWith("bs-") ? ft(d) : `BsIcon${ft(d)}`;
|
|
74
|
+
return Je(async () => {
|
|
75
|
+
const { [o]: s } = await import("@wwtdev/bsds-icons-vue3");
|
|
76
|
+
return s;
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
const l =
|
|
79
|
+
const l = Mt(), n = e[a] || ((i = e == null ? void 0 : e.value) == null ? void 0 : i[a]);
|
|
80
80
|
return l.value = t(n), j(
|
|
81
81
|
[
|
|
82
82
|
() => e[a],
|
|
83
83
|
() => {
|
|
84
|
-
var
|
|
85
|
-
return (
|
|
84
|
+
var d;
|
|
85
|
+
return (d = e == null ? void 0 : e.value) == null ? void 0 : d[a];
|
|
86
86
|
}
|
|
87
87
|
],
|
|
88
|
-
async ([
|
|
88
|
+
async ([d, o]) => l.value = t(d || o)
|
|
89
89
|
), { icon: l };
|
|
90
90
|
};
|
|
91
|
-
function
|
|
91
|
+
function Z(e = 1) {
|
|
92
92
|
const a = [];
|
|
93
93
|
for (let t = 0; t < e; t++)
|
|
94
94
|
a.push(k(""));
|
|
95
95
|
return H(() => {
|
|
96
|
-
a.forEach((t) => t.value = `id-${
|
|
96
|
+
a.forEach((t) => t.value = `id-${wt()}`);
|
|
97
97
|
}), a;
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const he = (e, a, t = void 0) => {
|
|
100
100
|
const l = (n) => {
|
|
101
|
-
var i,
|
|
102
|
-
((i = e == null ? void 0 : e.includes) != null && i.call(e, n.key) || (
|
|
103
|
-
var
|
|
104
|
-
return (
|
|
101
|
+
var i, d;
|
|
102
|
+
((i = e == null ? void 0 : e.includes) != null && i.call(e, n.key) || (d = e == null ? void 0 : e.some) != null && d.call(e, (o) => {
|
|
103
|
+
var s;
|
|
104
|
+
return (s = o == null ? void 0 : o.test) == null ? void 0 : s.call(o, n.key);
|
|
105
105
|
})) && a(n);
|
|
106
106
|
};
|
|
107
107
|
H(() => {
|
|
@@ -109,7 +109,7 @@ const pe = (e, a, t = void 0) => {
|
|
|
109
109
|
}), $e(() => {
|
|
110
110
|
((t == null ? void 0 : t.value) ?? document).removeEventListener("keydown", l);
|
|
111
111
|
});
|
|
112
|
-
},
|
|
112
|
+
}, pa = (e, a, t) => {
|
|
113
113
|
let l = null;
|
|
114
114
|
H(() => {
|
|
115
115
|
l = new MutationObserver(a), l.observe(e.value, t);
|
|
@@ -127,11 +127,11 @@ const pe = (e, a, t = void 0) => {
|
|
|
127
127
|
}), j(() => e.leaveTrigger, (t) => {
|
|
128
128
|
t && (a.value = !1);
|
|
129
129
|
}), { transition: a };
|
|
130
|
-
},
|
|
130
|
+
}, ha = ["id", "data-stacked"], va = ["data-open"], ma = ["aria-controls", "aria-expanded"], ba = {
|
|
131
131
|
key: 0,
|
|
132
132
|
"data-position": "start",
|
|
133
133
|
style: { display: "inline-flex" }
|
|
134
|
-
},
|
|
134
|
+
}, ga = ["id"], ya = ["aria-labelledby", "data-open", "id"], Ro = {
|
|
135
135
|
__name: "BsAccordion",
|
|
136
136
|
props: {
|
|
137
137
|
controlled: { type: Boolean, default: !1 },
|
|
@@ -148,11 +148,11 @@ const pe = (e, a, t = void 0) => {
|
|
|
148
148
|
},
|
|
149
149
|
emits: ["toggled"],
|
|
150
150
|
setup(e, { emit: a }) {
|
|
151
|
-
const t = e, l = a, n = k(null), i = k(!1), { icon:
|
|
151
|
+
const t = e, l = a, n = k(null), i = k(!1), { icon: d } = Ve(t, "icon"), [o] = Z(), s = p(() => o.value + "-content"), r = p(() => o.value + "-title"), f = p(() => t.openItemId && t.openItemId === o.value || t.openItem === !0), m = p(() => t.controlled ? f.value : i.value);
|
|
152
152
|
function b() {
|
|
153
153
|
l("toggled", o.value), t.controlled || (i.value = !i.value);
|
|
154
154
|
}
|
|
155
|
-
return (
|
|
155
|
+
return (g, S) => (u(), v("div", {
|
|
156
156
|
id: c(o),
|
|
157
157
|
ref_key: "containerRef",
|
|
158
158
|
ref: n,
|
|
@@ -160,43 +160,43 @@ const pe = (e, a, t = void 0) => {
|
|
|
160
160
|
"data-component": "bs-accordion",
|
|
161
161
|
"data-stacked": e.stacked
|
|
162
162
|
}, [
|
|
163
|
-
|
|
163
|
+
$("header", {
|
|
164
164
|
part: "header",
|
|
165
165
|
"data-open": m.value
|
|
166
166
|
}, [
|
|
167
|
-
|
|
168
|
-
"aria-controls":
|
|
167
|
+
$("button", {
|
|
168
|
+
"aria-controls": s.value,
|
|
169
169
|
"aria-expanded": m.value,
|
|
170
170
|
type: "button",
|
|
171
171
|
onClick: b
|
|
172
172
|
}, [
|
|
173
|
-
e.icon ||
|
|
174
|
-
E(
|
|
175
|
-
e.icon ? (u(),
|
|
173
|
+
e.icon || g.$slots.icon ? (u(), v("span", ba, [
|
|
174
|
+
E(g.$slots, "icon", {}, () => [
|
|
175
|
+
e.icon ? (u(), A(te(c(d) ? c(d) : "span"), { key: 0 })) : C("", !0)
|
|
176
176
|
])
|
|
177
177
|
])) : C("", !0),
|
|
178
|
-
|
|
179
|
-
D(c(
|
|
178
|
+
$("span", { id: r.value }, T(e.headerText), 9, ga),
|
|
179
|
+
D(c(Me), {
|
|
180
180
|
size: "md",
|
|
181
181
|
"data-position": "end"
|
|
182
182
|
})
|
|
183
|
-
], 8,
|
|
184
|
-
], 8,
|
|
185
|
-
|
|
183
|
+
], 8, ma)
|
|
184
|
+
], 8, va),
|
|
185
|
+
$("div", {
|
|
186
186
|
"aria-labelledby": r.value,
|
|
187
187
|
class: "bs-accordion-content",
|
|
188
188
|
"data-open": m.value,
|
|
189
|
-
id:
|
|
189
|
+
id: s.value,
|
|
190
190
|
part: "content",
|
|
191
191
|
role: "region"
|
|
192
192
|
}, [
|
|
193
|
-
|
|
194
|
-
E(
|
|
193
|
+
$("div", null, [
|
|
194
|
+
E(g.$slots, "default")
|
|
195
195
|
])
|
|
196
|
-
], 8,
|
|
197
|
-
], 8,
|
|
196
|
+
], 8, ya)
|
|
197
|
+
], 8, ha));
|
|
198
198
|
}
|
|
199
|
-
},
|
|
199
|
+
}, Sa = ["aria-label", "data-badge-color", "data-count", "data-position", "data-show-zero", "data-variant"], wa = {
|
|
200
200
|
__name: "BsBadge",
|
|
201
201
|
props: {
|
|
202
202
|
/** Pass value to set `data-badge-color`. */
|
|
@@ -244,14 +244,14 @@ const pe = (e, a, t = void 0) => {
|
|
|
244
244
|
},
|
|
245
245
|
setup(e) {
|
|
246
246
|
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(() => {
|
|
247
|
-
var
|
|
248
|
-
const i = ((r = (
|
|
249
|
-
if (!
|
|
247
|
+
var s, r;
|
|
248
|
+
const i = ((r = (s = t.value) == null ? void 0 : s.textContent) == null ? void 0 : r.trim()) || "", d = l.value ? l.value + " " : "";
|
|
249
|
+
if (!d && !a.dot)
|
|
250
250
|
return i;
|
|
251
251
|
const o = a.count !== 1 ? "s" : "";
|
|
252
|
-
return `${i ? `${i}, ` : ""}${
|
|
252
|
+
return `${i ? `${i}, ` : ""}${d}${a.label}${o}`;
|
|
253
253
|
});
|
|
254
|
-
return (i,
|
|
254
|
+
return (i, d) => (u(), v("span", {
|
|
255
255
|
ref_key: "hostRef",
|
|
256
256
|
ref: t,
|
|
257
257
|
"aria-label": n.value,
|
|
@@ -265,13 +265,13 @@ const pe = (e, a, t = void 0) => {
|
|
|
265
265
|
role: "status"
|
|
266
266
|
}, [
|
|
267
267
|
e.variant !== "notext" ? E(i.$slots, "default", { key: 0 }) : C("", !0)
|
|
268
|
-
], 10,
|
|
268
|
+
], 10, Sa));
|
|
269
269
|
}
|
|
270
|
-
},
|
|
270
|
+
}, $a = {
|
|
271
271
|
key: 0,
|
|
272
272
|
role: "alert",
|
|
273
273
|
class: "bs-banner"
|
|
274
|
-
},
|
|
274
|
+
}, Ba = { class: "bs-banner-content" }, Ia = { class: "bs-banner-warning-icon" }, Fo = {
|
|
275
275
|
__name: "BsBanner",
|
|
276
276
|
emits: ["dismiss"],
|
|
277
277
|
setup(e, { emit: a }) {
|
|
@@ -279,15 +279,15 @@ const pe = (e, a, t = void 0) => {
|
|
|
279
279
|
function n() {
|
|
280
280
|
l.value = !0, t("dismiss");
|
|
281
281
|
}
|
|
282
|
-
return (i,
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
D(c(
|
|
282
|
+
return (i, d) => l.value ? C("", !0) : (u(), v("div", $a, [
|
|
283
|
+
$("div", Ba, [
|
|
284
|
+
$("div", Ia, [
|
|
285
|
+
D(c(Xe), { size: "lg" })
|
|
286
286
|
]),
|
|
287
|
-
|
|
287
|
+
$("p", null, [
|
|
288
288
|
E(i.$slots, "default")
|
|
289
289
|
]),
|
|
290
|
-
|
|
290
|
+
$("button", {
|
|
291
291
|
type: "button",
|
|
292
292
|
title: "Close Banner",
|
|
293
293
|
onClick: n
|
|
@@ -297,7 +297,7 @@ const pe = (e, a, t = void 0) => {
|
|
|
297
297
|
])
|
|
298
298
|
]));
|
|
299
299
|
}
|
|
300
|
-
},
|
|
300
|
+
}, ka = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
301
301
|
__name: "BsButton",
|
|
302
302
|
props: {
|
|
303
303
|
disabled: {
|
|
@@ -328,8 +328,8 @@ const pe = (e, a, t = void 0) => {
|
|
|
328
328
|
href: { type: String }
|
|
329
329
|
},
|
|
330
330
|
setup(e) {
|
|
331
|
-
const a = e, t =
|
|
332
|
-
return (o,
|
|
331
|
+
const a = e, t = re(), { rootTag: l, attrsToBind: n, hrefUrl: i } = ze(a, t), { onLinkClick: d } = Re(a);
|
|
332
|
+
return (o, s) => (u(), A(te(c(l)), z({
|
|
333
333
|
class: "bs-button",
|
|
334
334
|
"data-component": "bs-button",
|
|
335
335
|
"data-ghost": e.ghostBtn,
|
|
@@ -337,17 +337,17 @@ const pe = (e, a, t = void 0) => {
|
|
|
337
337
|
"data-text": e.textBtn,
|
|
338
338
|
"data-variant": e.variant,
|
|
339
339
|
".href": c(i)
|
|
340
|
-
}, c(n), { onClick: c(
|
|
340
|
+
}, c(n), { onClick: c(d) }), {
|
|
341
341
|
default: L(() => [
|
|
342
342
|
E(o.$slots, "default")
|
|
343
343
|
]),
|
|
344
344
|
_: 3
|
|
345
345
|
}, 48, ["data-ghost", "data-size", "data-text", "data-variant", ".href", "onClick"]));
|
|
346
346
|
}
|
|
347
|
-
}),
|
|
347
|
+
}), Ca = {
|
|
348
348
|
class: "bs-field-details",
|
|
349
349
|
"data-component": "bs-field-details"
|
|
350
|
-
},
|
|
350
|
+
}, xa = ["id", "data-error"], Ta = ["data-error"], ge = {
|
|
351
351
|
__name: "BsFieldDetails",
|
|
352
352
|
props: {
|
|
353
353
|
/** The number of characters that have been entered by the user. */
|
|
@@ -368,25 +368,25 @@ const pe = (e, a, t = void 0) => {
|
|
|
368
368
|
},
|
|
369
369
|
setup(e) {
|
|
370
370
|
const a = e, t = p(() => a.error && a.errorMsg || a.hint);
|
|
371
|
-
return (l, n) => (u(), v("div",
|
|
371
|
+
return (l, n) => (u(), v("div", Ca, [
|
|
372
372
|
t.value ? (u(), v("span", {
|
|
373
373
|
key: 0,
|
|
374
374
|
id: e.hintId,
|
|
375
375
|
class: "bs-hint",
|
|
376
376
|
"data-error": e.error
|
|
377
|
-
},
|
|
377
|
+
}, T(t.value), 9, xa)) : C("", !0),
|
|
378
378
|
e.charMax ? (u(), v("span", {
|
|
379
379
|
key: 1,
|
|
380
380
|
"aria-description": "character count over character limit for the preceding text field",
|
|
381
381
|
class: "bs-character-count",
|
|
382
382
|
"data-error": a.charCount > a.charMax
|
|
383
|
-
},
|
|
383
|
+
}, T(a.charCount || "0") + " / " + T(a.charMax), 9, Ta)) : C("", !0)
|
|
384
384
|
]));
|
|
385
385
|
}
|
|
386
|
-
},
|
|
386
|
+
}, Aa = ["data-disabled", "for"], Va = /* @__PURE__ */ $("span", {
|
|
387
387
|
"data-required": "true",
|
|
388
388
|
"aria-hidden": "true"
|
|
389
|
-
}, " *", -1),
|
|
389
|
+
}, " *", -1), Oa = /* @__PURE__ */ $("span", { class: "visually-hidden" }, "required", -1), ae = {
|
|
390
390
|
__name: "BsLabel",
|
|
391
391
|
props: {
|
|
392
392
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -401,16 +401,16 @@ const pe = (e, a, t = void 0) => {
|
|
|
401
401
|
"data-disabled": e.disabled,
|
|
402
402
|
for: e.for
|
|
403
403
|
}, [
|
|
404
|
-
|
|
404
|
+
$("span", null, [
|
|
405
405
|
E(a.$slots, "default")
|
|
406
406
|
]),
|
|
407
407
|
e.required ? (u(), v(G, { key: 0 }, [
|
|
408
|
-
|
|
409
|
-
|
|
408
|
+
Va,
|
|
409
|
+
Oa
|
|
410
410
|
], 64)) : C("", !0)
|
|
411
|
-
], 10,
|
|
411
|
+
], 10, Aa));
|
|
412
412
|
}
|
|
413
|
-
},
|
|
413
|
+
}, Ea = ["data-error", "id", "value"], Ie = {
|
|
414
414
|
__name: "BsInput",
|
|
415
415
|
props: {
|
|
416
416
|
error: {
|
|
@@ -425,21 +425,21 @@ const pe = (e, a, t = void 0) => {
|
|
|
425
425
|
},
|
|
426
426
|
emits: ["update:modelValue"],
|
|
427
427
|
setup(e, { emit: a }) {
|
|
428
|
-
const t = e, l = a, n =
|
|
429
|
-
function
|
|
430
|
-
const
|
|
431
|
-
l("update:modelValue",
|
|
428
|
+
const t = e, l = a, n = re(), i = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
429
|
+
function d(o) {
|
|
430
|
+
const s = n.type === "number" ? parseInt(o.target.value) : o.target.value;
|
|
431
|
+
l("update:modelValue", s);
|
|
432
432
|
}
|
|
433
|
-
return (o,
|
|
433
|
+
return (o, s) => (u(), v("input", z({
|
|
434
434
|
class: "bs-input",
|
|
435
435
|
"data-component": "bs-input",
|
|
436
436
|
"data-error": e.error,
|
|
437
437
|
id: o.$attrs.id || e.inputId,
|
|
438
438
|
value: e.value || e.modelValue,
|
|
439
|
-
onInput:
|
|
440
|
-
}, i.value), null, 16,
|
|
439
|
+
onInput: d
|
|
440
|
+
}, i.value), null, 16, Ea));
|
|
441
441
|
}
|
|
442
|
-
},
|
|
442
|
+
}, La = ["data-autopad", "data-autosize-icons", "data-disabled", "data-error", "data-variant", "data-multifocus"], De = {
|
|
443
443
|
__name: "BsInputAddon",
|
|
444
444
|
props: {
|
|
445
445
|
autopad: { type: Boolean, default: !1 },
|
|
@@ -461,9 +461,9 @@ const pe = (e, a, t = void 0) => {
|
|
|
461
461
|
"data-multifocus": e.multifocus
|
|
462
462
|
}, [
|
|
463
463
|
E(a.$slots, "default")
|
|
464
|
-
], 8,
|
|
464
|
+
], 8, La));
|
|
465
465
|
}
|
|
466
|
-
},
|
|
466
|
+
}, Da = {
|
|
467
467
|
__name: "BsInputDateSingle",
|
|
468
468
|
props: {
|
|
469
469
|
disabled: {
|
|
@@ -496,20 +496,20 @@ const pe = (e, a, t = void 0) => {
|
|
|
496
496
|
}
|
|
497
497
|
},
|
|
498
498
|
setup(e) {
|
|
499
|
-
return (a, t) => (u(),
|
|
499
|
+
return (a, t) => (u(), A(De, {
|
|
500
500
|
disabled: e.disabled,
|
|
501
501
|
error: e.error
|
|
502
502
|
}, {
|
|
503
503
|
default: L(() => [
|
|
504
|
-
D(c(
|
|
505
|
-
D(Ie,
|
|
504
|
+
D(c($t)),
|
|
505
|
+
D(Ie, z({
|
|
506
506
|
"data-autowidth": "",
|
|
507
507
|
disabled: e.disabled,
|
|
508
508
|
id: e.inputId,
|
|
509
509
|
"model-value": e.modelValue,
|
|
510
510
|
placeholder: e.placeholder,
|
|
511
511
|
required: e.required
|
|
512
|
-
},
|
|
512
|
+
}, Ye(e.listeners)), null, 16, ["disabled", "id", "model-value", "placeholder", "required"])
|
|
513
513
|
]),
|
|
514
514
|
_: 1
|
|
515
515
|
}, 8, ["disabled", "error"]));
|
|
@@ -524,7 +524,7 @@ function Oe(e, a, t) {
|
|
|
524
524
|
}, a);
|
|
525
525
|
};
|
|
526
526
|
}
|
|
527
|
-
const
|
|
527
|
+
const qa = ["disabled", "id", "model-value"], Pa = ["disabled", "id", "model-value"], Ma = {
|
|
528
528
|
__name: "BsInputDateRange",
|
|
529
529
|
props: {
|
|
530
530
|
disabled: {
|
|
@@ -566,20 +566,20 @@ const Da = ["disabled", "id", "model-value"], qa = ["disabled", "id", "model-val
|
|
|
566
566
|
const f = new Event("change", { bubbles: !0, cancelable: !0 });
|
|
567
567
|
r.dispatchEvent(f);
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function d(r) {
|
|
570
570
|
const { value: f } = r.target, [m, b] = f.split(/ to | - /);
|
|
571
571
|
l.value.value = m || "", n.value.value = b || "", i(l.value), i(n.value);
|
|
572
572
|
}
|
|
573
|
-
const o = Oe(
|
|
574
|
-
function
|
|
573
|
+
const o = Oe(d, 1e3);
|
|
574
|
+
function s(r) {
|
|
575
575
|
t("ui-input"), o(r);
|
|
576
576
|
}
|
|
577
|
-
return (r, f) => (u(),
|
|
577
|
+
return (r, f) => (u(), A(De, {
|
|
578
578
|
disabled: e.disabled,
|
|
579
579
|
error: e.error
|
|
580
580
|
}, {
|
|
581
581
|
default: L(() => [
|
|
582
|
-
D(c(
|
|
582
|
+
D(c($t)),
|
|
583
583
|
D(Ie, {
|
|
584
584
|
"data-autowidth": "",
|
|
585
585
|
disabled: e.disabled,
|
|
@@ -588,34 +588,34 @@ const Da = ["disabled", "id", "model-value"], qa = ["disabled", "id", "model-val
|
|
|
588
588
|
placeholder: e.placeholder,
|
|
589
589
|
required: e.required,
|
|
590
590
|
onFocusin: f[0] || (f[0] = (m) => r.$emit("ui-focusin")),
|
|
591
|
-
onInput:
|
|
592
|
-
onChange:
|
|
591
|
+
onInput: s,
|
|
592
|
+
onChange: d
|
|
593
593
|
}, null, 8, ["disabled", "id", "model-value", "placeholder", "required"]),
|
|
594
|
-
|
|
594
|
+
$("input", z({
|
|
595
595
|
ref_key: "hiddenStart",
|
|
596
596
|
ref: l,
|
|
597
597
|
type: "hidden",
|
|
598
598
|
disabled: e.disabled,
|
|
599
599
|
id: `${e.inputId}-start`,
|
|
600
600
|
"model-value": e.inputValue.start
|
|
601
|
-
},
|
|
602
|
-
|
|
601
|
+
}, Ye(e.listeners.start, !0)), null, 16, qa),
|
|
602
|
+
$("input", z({
|
|
603
603
|
ref_key: "hiddenEnd",
|
|
604
604
|
ref: n,
|
|
605
605
|
type: "hidden",
|
|
606
606
|
disabled: e.disabled,
|
|
607
607
|
id: `${e.inputId}-end`,
|
|
608
608
|
"model-value": e.inputValue.end
|
|
609
|
-
},
|
|
609
|
+
}, Ye(e.listeners.end, !0)), null, 16, Pa)
|
|
610
610
|
]),
|
|
611
611
|
_: 1
|
|
612
612
|
}, 8, ["disabled", "error"]));
|
|
613
613
|
}
|
|
614
614
|
};
|
|
615
|
-
function
|
|
615
|
+
function Na(e) {
|
|
616
616
|
function a(n) {
|
|
617
|
-
var i,
|
|
618
|
-
return ((
|
|
617
|
+
var i, d;
|
|
618
|
+
return ((d = (i = n == null ? void 0 : n.classList) == null ? void 0 : i.contains) == null ? void 0 : d.call(i, "vc-arrow")) && (n.classList.contains("vc-prev") || n.classList.contains("vc-next"));
|
|
619
619
|
}
|
|
620
620
|
function t(n) {
|
|
621
621
|
return n === " " || n === "Spacebar" || n === "Enter";
|
|
@@ -626,16 +626,16 @@ function Ma(e) {
|
|
|
626
626
|
H(() => {
|
|
627
627
|
var n, i;
|
|
628
628
|
(i = (n = e.value) == null ? void 0 : n.addEventListener) == null || i.call(n, "keydown", l);
|
|
629
|
-
}),
|
|
629
|
+
}), _e(() => {
|
|
630
630
|
var n, i;
|
|
631
631
|
(i = (n = e.value) == null ? void 0 : n.removeEventListener) == null || i.call(n, "keydown", l);
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function Qe(e, a, t = []) {
|
|
635
635
|
let l;
|
|
636
636
|
gt(() => {
|
|
637
637
|
l = window.matchMedia(e), l.addEventListener("change", a), a(l);
|
|
638
|
-
}),
|
|
638
|
+
}), _e(() => {
|
|
639
639
|
l.removeEventListener("change", a), l = null;
|
|
640
640
|
}), t.length && j(t, () => a(l));
|
|
641
641
|
}
|
|
@@ -657,7 +657,7 @@ const et = [
|
|
|
657
657
|
"multiple",
|
|
658
658
|
"name",
|
|
659
659
|
"size"
|
|
660
|
-
],
|
|
660
|
+
], Ra = [
|
|
661
661
|
"aria-describedby",
|
|
662
662
|
"aria-label",
|
|
663
663
|
"autocapitalize",
|
|
@@ -676,7 +676,7 @@ const et = [
|
|
|
676
676
|
"rows",
|
|
677
677
|
"spellcheck",
|
|
678
678
|
"wrap"
|
|
679
|
-
],
|
|
679
|
+
], ve = [
|
|
680
680
|
"aria-describedby",
|
|
681
681
|
"aria-label",
|
|
682
682
|
"autocapitalize",
|
|
@@ -704,7 +704,7 @@ function Y(e, a = []) {
|
|
|
704
704
|
a.includes(n) ? t[n] = e[n] : l[n] = e[n];
|
|
705
705
|
}), { filtered: t, remaining: l };
|
|
706
706
|
}
|
|
707
|
-
const
|
|
707
|
+
const Fa = ["data-range"], pt = "(min-width: 752px)", jo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
708
708
|
__name: "BsCalendar",
|
|
709
709
|
props: {
|
|
710
710
|
disabled: {
|
|
@@ -771,7 +771,7 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Ro = /* @__PURE__ */ Objec
|
|
|
771
771
|
},
|
|
772
772
|
emits: ["update:modelValue"],
|
|
773
773
|
setup(e, { emit: a }) {
|
|
774
|
-
const t = e, l = k(null), n = k(1), i = k(null), [
|
|
774
|
+
const t = e, l = k(null), n = k(1), i = k(null), [d, o] = Z(2), s = k(1), { filtered: r, remaining: f } = Y(re(), [
|
|
775
775
|
"attributes",
|
|
776
776
|
"data-cy",
|
|
777
777
|
"expanded",
|
|
@@ -780,54 +780,54 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Ro = /* @__PURE__ */ Objec
|
|
|
780
780
|
"masks",
|
|
781
781
|
"rows",
|
|
782
782
|
"trim-weeks"
|
|
783
|
-
]), m = p(() => t.inputId ||
|
|
784
|
-
|
|
783
|
+
]), m = p(() => t.inputId || d.value), b = p(() => ({ range: t.isRange })), g = p(() => !!(t.error && t.errorMsg || t.hint)), S = p(() => t.step), I = p(() => t.variant);
|
|
784
|
+
Na(i), Qe(
|
|
785
785
|
pt,
|
|
786
|
-
(
|
|
787
|
-
[
|
|
788
|
-
),
|
|
786
|
+
(y) => n.value = y != null && y.matches && I.value == "2-col" ? 2 : 1,
|
|
787
|
+
[I]
|
|
788
|
+
), Qe(
|
|
789
789
|
pt,
|
|
790
|
-
(
|
|
791
|
-
[
|
|
790
|
+
(y) => s.value = y != null && y.matches && I.value == "2-col" ? S.value : 1,
|
|
791
|
+
[S, I]
|
|
792
792
|
), H(() => {
|
|
793
|
-
t.inputMode ||
|
|
793
|
+
t.inputMode || w();
|
|
794
794
|
}), j(() => {
|
|
795
|
-
var
|
|
796
|
-
return (M = (
|
|
797
|
-
}, (
|
|
798
|
-
|
|
795
|
+
var y, M;
|
|
796
|
+
return (M = (y = l.value) == null ? void 0 : y.popoverRef) == null ? void 0 : M.isVisible;
|
|
797
|
+
}, (y) => {
|
|
798
|
+
y && Ae(w);
|
|
799
799
|
});
|
|
800
|
-
function h(
|
|
801
|
-
return t.isRange &&
|
|
800
|
+
function h(y) {
|
|
801
|
+
return t.isRange && y.start && y.end ? `${y.start} to ${y.end}` : !t.isRange && y ? y : "";
|
|
802
802
|
}
|
|
803
|
-
function
|
|
804
|
-
!t.isRange || i.value.contains(
|
|
803
|
+
function B(y) {
|
|
804
|
+
!t.isRange || i.value.contains(y.relatedTarget) || l.value.hidePopover();
|
|
805
805
|
}
|
|
806
|
-
function
|
|
807
|
-
const
|
|
808
|
-
|
|
806
|
+
function w() {
|
|
807
|
+
const y = i.value.querySelector("button.vc-prev"), M = i.value.querySelector("button.vc-next");
|
|
808
|
+
y && y.setAttribute("aria-label", "Previous month"), M && M.setAttribute("aria-label", "Next month");
|
|
809
809
|
}
|
|
810
|
-
return (
|
|
810
|
+
return (y, M) => (u(), v("div", z({
|
|
811
811
|
ref_key: "container",
|
|
812
812
|
ref: i,
|
|
813
813
|
class: "bs-calendar",
|
|
814
814
|
"data-range": e.isRange,
|
|
815
|
-
onFocusout:
|
|
815
|
+
onFocusout: B
|
|
816
816
|
}, c(f)), [
|
|
817
|
-
e.label ||
|
|
817
|
+
e.label || y.$slots.label ? (u(), A(ae, {
|
|
818
818
|
key: 0,
|
|
819
819
|
for: m.value,
|
|
820
820
|
disabled: e.disabled,
|
|
821
821
|
required: e.required
|
|
822
822
|
}, {
|
|
823
823
|
default: L(() => [
|
|
824
|
-
E(
|
|
825
|
-
|
|
824
|
+
E(y.$slots, "label", {}, () => [
|
|
825
|
+
U(T(e.label), 1)
|
|
826
826
|
])
|
|
827
827
|
]),
|
|
828
828
|
_: 3
|
|
829
829
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
830
|
-
D(c(
|
|
830
|
+
D(c(ea), z({
|
|
831
831
|
ref_key: "calendar",
|
|
832
832
|
ref: l,
|
|
833
833
|
columns: n.value,
|
|
@@ -839,31 +839,31 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Ro = /* @__PURE__ */ Objec
|
|
|
839
839
|
"model-modifiers": b.value,
|
|
840
840
|
popover: { visibility: "focus" },
|
|
841
841
|
rows: 1,
|
|
842
|
-
step:
|
|
843
|
-
"onUpdate:modelValue": M[0] || (M[0] = (
|
|
844
|
-
}, c(r)),
|
|
842
|
+
step: s.value,
|
|
843
|
+
"onUpdate:modelValue": M[0] || (M[0] = (V) => y.$emit("update:modelValue", V))
|
|
844
|
+
}, c(r)), Ze({ _: 2 }, [
|
|
845
845
|
e.inputMode ? {
|
|
846
846
|
name: "default",
|
|
847
|
-
fn: L(({ inputValue:
|
|
848
|
-
e.isRange ? (u(),
|
|
847
|
+
fn: L(({ inputValue: V, inputEvents: q, showPopover: R }) => [
|
|
848
|
+
e.isRange ? (u(), A(Ma, {
|
|
849
849
|
key: 1,
|
|
850
850
|
disabled: e.disabled,
|
|
851
851
|
error: e.error,
|
|
852
852
|
"input-id": m.value,
|
|
853
|
-
"input-value":
|
|
854
|
-
"input-value-fmt": h(
|
|
853
|
+
"input-value": V,
|
|
854
|
+
"input-value-fmt": h(V),
|
|
855
855
|
listeners: q,
|
|
856
856
|
placeholder: e.placeholder,
|
|
857
857
|
required: e.required,
|
|
858
858
|
onUiFocusin: R,
|
|
859
859
|
onUiInput: R
|
|
860
|
-
}, null, 8, ["disabled", "error", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (u(),
|
|
860
|
+
}, null, 8, ["disabled", "error", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (u(), A(Da, {
|
|
861
861
|
key: 0,
|
|
862
862
|
disabled: e.disabled,
|
|
863
863
|
error: e.error,
|
|
864
864
|
"input-id": m.value,
|
|
865
865
|
listeners: q,
|
|
866
|
-
"model-value": h(
|
|
866
|
+
"model-value": h(V),
|
|
867
867
|
placeholder: e.placeholder,
|
|
868
868
|
required: e.required
|
|
869
869
|
}, null, 8, ["disabled", "error", "input-id", "listeners", "model-value", "placeholder", "required"]))
|
|
@@ -871,19 +871,19 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Ro = /* @__PURE__ */ Objec
|
|
|
871
871
|
key: "0"
|
|
872
872
|
} : void 0
|
|
873
873
|
]), 1040, ["columns", "disabled-dates", "max-date", "min-date", "model-value", "model-modifiers", "step"]),
|
|
874
|
-
|
|
874
|
+
g.value ? (u(), A(ge, {
|
|
875
875
|
key: 1,
|
|
876
876
|
error: e.error,
|
|
877
877
|
"error-msg": e.errorMsg,
|
|
878
878
|
hint: e.hint,
|
|
879
879
|
"hint-id": c(o)
|
|
880
880
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : C("", !0)
|
|
881
|
-
], 16,
|
|
881
|
+
], 16, Fa));
|
|
882
882
|
}
|
|
883
|
-
}),
|
|
883
|
+
}), ja = { key: 0 }, Wa = {
|
|
884
884
|
class: "bs-circle-button-icon",
|
|
885
885
|
role: "presentation"
|
|
886
|
-
}, Ua = { key: 1 },
|
|
886
|
+
}, Ua = { key: 1 }, xt = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
887
887
|
__name: "BsCircleButton",
|
|
888
888
|
props: {
|
|
889
889
|
disabled: {
|
|
@@ -932,7 +932,7 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Ro = /* @__PURE__ */ Objec
|
|
|
932
932
|
}
|
|
933
933
|
},
|
|
934
934
|
setup(e) {
|
|
935
|
-
const a = e, t =
|
|
935
|
+
const a = e, t = re(), l = yt(), { rootTag: n, attrsToBind: i, hrefUrl: d } = ze(a, t), { onLinkClick: o } = Re(a), s = p(() => m.value ? {} : a.href ? { title: a.label } : { "aria-label": a.label }), r = p(() => {
|
|
936
936
|
if (a.hoverEffect)
|
|
937
937
|
return a.iconPosition;
|
|
938
938
|
}), f = p(() => {
|
|
@@ -940,38 +940,38 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Ro = /* @__PURE__ */ Objec
|
|
|
940
940
|
return {
|
|
941
941
|
icon: a.icon || (a.textBtn || a.size == "sm" ? `small-${h}` : h)
|
|
942
942
|
};
|
|
943
|
-
}), m = p(() => a.textBtn || !!(l != null && l.default)), b = p(() => m.value && a.iconPosition !== "left"),
|
|
944
|
-
return (h,
|
|
943
|
+
}), m = p(() => a.textBtn || !!(l != null && l.default)), b = p(() => m.value && a.iconPosition !== "left"), g = p(() => m.value && a.iconPosition === "left"), S = p(() => a.variant ? `color-${a.variant}` : void 0), { icon: I } = Ve(f, "icon");
|
|
944
|
+
return (h, B) => (u(), A(te(c(n)), z({
|
|
945
945
|
class: "bs-circle-button",
|
|
946
946
|
"data-disabled": e.disabled,
|
|
947
947
|
"data-direction": r.value,
|
|
948
948
|
"data-ghost": e.ghostBtn,
|
|
949
949
|
"data-size": e.size,
|
|
950
950
|
"data-text": m.value,
|
|
951
|
-
"data-variant":
|
|
952
|
-
".href": c(
|
|
953
|
-
}, { ...c(i), ...
|
|
951
|
+
"data-variant": S.value,
|
|
952
|
+
".href": c(d)
|
|
953
|
+
}, { ...c(i), ...s.value }, { onClick: c(o) }), {
|
|
954
954
|
default: L(() => [
|
|
955
|
-
b.value ? (u(), v("span",
|
|
955
|
+
b.value ? (u(), v("span", ja, [
|
|
956
956
|
E(h.$slots, "default", {}, () => [
|
|
957
|
-
|
|
957
|
+
U(T(e.label), 1)
|
|
958
958
|
])
|
|
959
959
|
])) : C("", !0),
|
|
960
|
-
|
|
960
|
+
$("span", Wa, [
|
|
961
961
|
E(h.$slots, "icon", {}, () => [
|
|
962
|
-
(u(),
|
|
962
|
+
(u(), A(te(c(I))))
|
|
963
963
|
])
|
|
964
964
|
]),
|
|
965
|
-
|
|
965
|
+
g.value ? (u(), v("span", Ua, [
|
|
966
966
|
E(h.$slots, "default", {}, () => [
|
|
967
|
-
|
|
967
|
+
U(T(e.label), 1)
|
|
968
968
|
])
|
|
969
969
|
])) : C("", !0)
|
|
970
970
|
]),
|
|
971
971
|
_: 3
|
|
972
972
|
}, 48, ["data-disabled", "data-direction", "data-ghost", "data-size", "data-text", "data-variant", ".href", "onClick"]));
|
|
973
973
|
}
|
|
974
|
-
}),
|
|
974
|
+
}), Wo = {
|
|
975
975
|
__name: "BsCaretButton",
|
|
976
976
|
props: {
|
|
977
977
|
direction: {
|
|
@@ -1005,7 +1005,7 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Ro = /* @__PURE__ */ Objec
|
|
|
1005
1005
|
}
|
|
1006
1006
|
},
|
|
1007
1007
|
setup(e) {
|
|
1008
|
-
return (a, t) => (u(),
|
|
1008
|
+
return (a, t) => (u(), A(xt, {
|
|
1009
1009
|
disabled: e.disabled,
|
|
1010
1010
|
"ghost-btn": e.ghostBtn,
|
|
1011
1011
|
"hover-effect": e.hoverEffect,
|
|
@@ -1017,12 +1017,12 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Ro = /* @__PURE__ */ Objec
|
|
|
1017
1017
|
"text-btn": !1
|
|
1018
1018
|
}, {
|
|
1019
1019
|
icon: L(() => [
|
|
1020
|
-
e.direction == "right" ? (u(),
|
|
1020
|
+
e.direction == "right" ? (u(), A(c(Bt), { key: 0 })) : (u(), A(c(It), { key: 1 }))
|
|
1021
1021
|
]),
|
|
1022
1022
|
_: 1
|
|
1023
1023
|
}, 8, ["disabled", "ghost-btn", "hover-effect", "icon-position", "label", "link-to", "router", "size"]));
|
|
1024
1024
|
}
|
|
1025
|
-
},
|
|
1025
|
+
}, Uo = {
|
|
1026
1026
|
__name: "BsCaretTextButton",
|
|
1027
1027
|
props: {
|
|
1028
1028
|
direction: {
|
|
@@ -1061,7 +1061,7 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Ro = /* @__PURE__ */ Objec
|
|
|
1061
1061
|
}
|
|
1062
1062
|
},
|
|
1063
1063
|
setup(e) {
|
|
1064
|
-
return (a, t) => (u(),
|
|
1064
|
+
return (a, t) => (u(), A(xt, {
|
|
1065
1065
|
disabled: e.disabled,
|
|
1066
1066
|
"ghost-btn": e.ghostBtn,
|
|
1067
1067
|
"hover-effect": e.hoverEffect,
|
|
@@ -1074,20 +1074,20 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Ro = /* @__PURE__ */ Objec
|
|
|
1074
1074
|
variant: e.variant
|
|
1075
1075
|
}, {
|
|
1076
1076
|
icon: L(() => [
|
|
1077
|
-
e.direction == "right" ? (u(),
|
|
1077
|
+
e.direction == "right" ? (u(), A(c(Rt), { key: 0 })) : (u(), A(c(Ft), { key: 1 }))
|
|
1078
1078
|
]),
|
|
1079
1079
|
default: L(() => [
|
|
1080
1080
|
E(a.$slots, "default", {}, () => [
|
|
1081
|
-
|
|
1081
|
+
U(T(e.label), 1)
|
|
1082
1082
|
])
|
|
1083
1083
|
]),
|
|
1084
1084
|
_: 3
|
|
1085
1085
|
}, 8, ["disabled", "ghost-btn", "hover-effect", "icon-position", "label", "link-to", "router", "size", "variant"]));
|
|
1086
1086
|
}
|
|
1087
|
-
},
|
|
1087
|
+
}, Ga = {
|
|
1088
1088
|
class: "bs-chart-table",
|
|
1089
1089
|
"data-component": "bs-chart-table"
|
|
1090
|
-
},
|
|
1090
|
+
}, Ha = ["summary"], Ka = ["colspan"], Ya = { scope: "col" }, Za = { scope: "row" }, Xa = {
|
|
1091
1091
|
__name: "BsChartTable",
|
|
1092
1092
|
props: {
|
|
1093
1093
|
chartType: {
|
|
@@ -1122,8 +1122,8 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Ro = /* @__PURE__ */ Objec
|
|
|
1122
1122
|
},
|
|
1123
1123
|
setup(e) {
|
|
1124
1124
|
const a = e, t = k(!1), l = (f) => {
|
|
1125
|
-
const m = new Date(f), b = m.toTimeString().split(" ")[0],
|
|
1126
|
-
return `${b} (${
|
|
1125
|
+
const m = new Date(f), b = m.toTimeString().split(" ")[0], g = m.toDateString().split(" ").slice(1, 3).join(" ");
|
|
1126
|
+
return `${b} (${g})`;
|
|
1127
1127
|
}, n = p(() => {
|
|
1128
1128
|
var f;
|
|
1129
1129
|
return !((f = a.dataIdxLabels) != null && f.length);
|
|
@@ -1132,36 +1132,36 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Ro = /* @__PURE__ */ Objec
|
|
|
1132
1132
|
try {
|
|
1133
1133
|
return f.map((m) => {
|
|
1134
1134
|
const b = m.label;
|
|
1135
|
-
let
|
|
1136
|
-
if (m.data.some((
|
|
1137
|
-
const
|
|
1138
|
-
|
|
1135
|
+
let g = [];
|
|
1136
|
+
if (m.data.some((S) => (S == null ? void 0 : S.x) && (S == null ? void 0 : S.y))) {
|
|
1137
|
+
const S = m.data.reduce((I, h) => (I[h.x] = h.y, I), {});
|
|
1138
|
+
g = a.dataIdxLabels.map((I) => ({ value: S[I] ?? null }));
|
|
1139
1139
|
} else
|
|
1140
|
-
|
|
1141
|
-
return { rowLabel: b, dataCells:
|
|
1140
|
+
g = m.data.map((S) => ({ value: S }));
|
|
1141
|
+
return { rowLabel: b, dataCells: g };
|
|
1142
1142
|
});
|
|
1143
1143
|
} catch {
|
|
1144
1144
|
return [];
|
|
1145
1145
|
}
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1147
|
+
function d(f) {
|
|
1148
1148
|
try {
|
|
1149
|
-
const m = f.reduce((
|
|
1150
|
-
const h =
|
|
1151
|
-
return [...
|
|
1149
|
+
const m = f.reduce((S, I) => {
|
|
1150
|
+
const h = I.data.map((B) => B == null ? void 0 : B.x);
|
|
1151
|
+
return [...S, ...h];
|
|
1152
1152
|
}, []), b = Array.from(new Set(m));
|
|
1153
|
-
return (a.xAxisType === "time" || a.xAxisType === "linear") && b.sort((
|
|
1154
|
-
const
|
|
1155
|
-
return f.forEach((
|
|
1156
|
-
const
|
|
1157
|
-
|
|
1158
|
-
}),
|
|
1153
|
+
return (a.xAxisType === "time" || a.xAxisType === "linear") && b.sort((S, I) => (typeof S == "string" && typeof I == "string" && (S = S.toLowerCase(), I = I.toLowerCase()), S < I ? -1 : S > I ? 1 : 0)), b.map((S) => {
|
|
1154
|
+
const I = { rowLabel: S }, h = [];
|
|
1155
|
+
return f.forEach((B) => {
|
|
1156
|
+
const w = { datasetLabel: B.label }, y = B.data.find((M) => M.x === S);
|
|
1157
|
+
w.value = y ? y.y : null, h.push(w);
|
|
1158
|
+
}), I.dataCells = h, a.xAxisType === "time" && (I.rowLabelFmt = l(S)), I;
|
|
1159
1159
|
});
|
|
1160
1160
|
} catch {
|
|
1161
1161
|
return [];
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
1164
|
-
const o = p(() => n.value ?
|
|
1164
|
+
const o = p(() => n.value ? d(a.data) : i(a.data)), s = p(() => ({
|
|
1165
1165
|
colspan: n.value ? a.data.length + 1 : a.dataIdxLabels.length + 1,
|
|
1166
1166
|
title: a.tableTitle,
|
|
1167
1167
|
colHeadingFirst: n.value ? a.xLabel : "Dataset",
|
|
@@ -1173,78 +1173,78 @@ const Ra = ["data-range"], pt = "(min-width: 752px)", Ro = /* @__PURE__ */ Objec
|
|
|
1173
1173
|
});
|
|
1174
1174
|
return H(() => {
|
|
1175
1175
|
t.value = !0;
|
|
1176
|
-
}), (f, m) => (u(), v("div",
|
|
1176
|
+
}), (f, m) => (u(), v("div", Ga, [
|
|
1177
1177
|
r.value ? (u(), v("table", {
|
|
1178
1178
|
key: 0,
|
|
1179
|
-
summary:
|
|
1179
|
+
summary: s.value.title
|
|
1180
1180
|
}, [
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
colspan:
|
|
1185
|
-
},
|
|
1181
|
+
$("thead", null, [
|
|
1182
|
+
$("tr", null, [
|
|
1183
|
+
$("th", {
|
|
1184
|
+
colspan: s.value.colspan
|
|
1185
|
+
}, T(s.value.title), 9, Ka)
|
|
1186
1186
|
]),
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
(u(!0), v(G, null, ee(
|
|
1187
|
+
$("tr", null, [
|
|
1188
|
+
$("th", Ya, T(s.value.colHeadingFirst), 1),
|
|
1189
|
+
(u(!0), v(G, null, ee(s.value.colHeadings, (b) => (u(), v("th", {
|
|
1190
1190
|
key: b,
|
|
1191
1191
|
scope: "col"
|
|
1192
|
-
},
|
|
1192
|
+
}, T(b), 1))), 128))
|
|
1193
1193
|
])
|
|
1194
1194
|
]),
|
|
1195
|
-
|
|
1196
|
-
(u(!0), v(G, null, ee(
|
|
1195
|
+
$("tbody", null, [
|
|
1196
|
+
(u(!0), v(G, null, ee(s.value.rows, (b) => (u(), v("tr", {
|
|
1197
1197
|
key: b.rowLabelFmt || b.rowLabel
|
|
1198
1198
|
}, [
|
|
1199
|
-
|
|
1200
|
-
(u(!0), v(G, null, ee(b.dataCells, (
|
|
1201
|
-
key: `${b.rowLabelFmt || b.rowLabel}${
|
|
1202
|
-
},
|
|
1199
|
+
$("th", Za, T(b.rowLabelFmt || b.rowLabel), 1),
|
|
1200
|
+
(u(!0), v(G, null, ee(b.dataCells, (g) => (u(), v("td", {
|
|
1201
|
+
key: `${b.rowLabelFmt || b.rowLabel}${g.datasetLabel}${g.value}`
|
|
1202
|
+
}, T(g.value), 1))), 128))
|
|
1203
1203
|
]))), 128))
|
|
1204
1204
|
])
|
|
1205
|
-
], 8,
|
|
1205
|
+
], 8, Ha)) : C("", !0)
|
|
1206
1206
|
]));
|
|
1207
1207
|
}
|
|
1208
|
-
}, Ee = 16,
|
|
1209
|
-
function
|
|
1210
|
-
const t = k(null), l = k(!1), n = k(null), i = "(min-width: 1166px)",
|
|
1211
|
-
let
|
|
1212
|
-
function f(h,
|
|
1213
|
-
let
|
|
1208
|
+
}, Ee = 16, Qa = 20;
|
|
1209
|
+
function Ja(e, a) {
|
|
1210
|
+
const t = k(null), l = k(!1), n = k(null), i = "(min-width: 1166px)", d = { tickSize: Ee }, o = { tickSize: Qa };
|
|
1211
|
+
let s, r;
|
|
1212
|
+
function f(h, B) {
|
|
1213
|
+
let w;
|
|
1214
1214
|
switch (h) {
|
|
1215
1215
|
case "bar":
|
|
1216
|
-
|
|
1216
|
+
w = "setBarChartConfigs";
|
|
1217
1217
|
break;
|
|
1218
1218
|
case "line":
|
|
1219
|
-
|
|
1219
|
+
w = "setLineChartConfigs";
|
|
1220
1220
|
break;
|
|
1221
1221
|
default:
|
|
1222
1222
|
throw new Error(`Unsupported chart type: ${h}`);
|
|
1223
1223
|
}
|
|
1224
|
-
return new
|
|
1224
|
+
return new ln().setCommonConfigs(B).setCustomOptions(B)[w](B).setPlugins([_a(n), ta]).build();
|
|
1225
1225
|
}
|
|
1226
1226
|
function m(h) {
|
|
1227
1227
|
h.preventDefault(), h.stopImmediatePropagation();
|
|
1228
|
-
const
|
|
1229
|
-
if (
|
|
1230
|
-
const { labelIndex:
|
|
1231
|
-
e === "pie" || e === "doughnut" ?
|
|
1228
|
+
const B = h.target.closest("li");
|
|
1229
|
+
if (B && s) {
|
|
1230
|
+
const { labelIndex: w, datasetIndex: y } = B.dataset;
|
|
1231
|
+
e === "pie" || e === "doughnut" ? s.toggleDataVisibility(w) : s.setDatasetVisibility(y, !s.isDatasetVisible(y)), s.update(), h.preventDefault(), h.stopImmediatePropagation(), b(y, w);
|
|
1232
1232
|
}
|
|
1233
1233
|
}
|
|
1234
|
-
function b(h,
|
|
1234
|
+
function b(h, B) {
|
|
1235
1235
|
var M;
|
|
1236
|
-
const
|
|
1237
|
-
(M =
|
|
1236
|
+
const w = `[data-dataset-index="${h}"][data-label-index="${B}"]`, y = n.value.querySelector(w);
|
|
1237
|
+
(M = y == null ? void 0 : y.focus) == null || M.call(y);
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1240
|
-
!r || !t.value || (
|
|
1239
|
+
function g(...h) {
|
|
1240
|
+
!r || !t.value || (je.register(...h), je.defaults.font.family = "'Roobert', sans-serif", s = new je(t.value, r));
|
|
1241
1241
|
}
|
|
1242
|
-
const
|
|
1243
|
-
r && (r.updateOptions(h),
|
|
1244
|
-
}, 100),
|
|
1245
|
-
r && (r.updateData(h),
|
|
1242
|
+
const S = Oe(function(h) {
|
|
1243
|
+
r && (r.updateOptions(h), s.options = r.options, s.update());
|
|
1244
|
+
}, 100), I = Oe(function(h) {
|
|
1245
|
+
r && (r.updateData(h), s.data = r.data, s.update());
|
|
1246
1246
|
}, 100);
|
|
1247
|
-
return
|
|
1247
|
+
return Qe(
|
|
1248
1248
|
i,
|
|
1249
1249
|
(h) => l.value = h == null ? void 0 : h.matches,
|
|
1250
1250
|
[l]
|
|
@@ -1252,12 +1252,12 @@ function Qa(e, a) {
|
|
|
1252
1252
|
var h;
|
|
1253
1253
|
try {
|
|
1254
1254
|
r = f(e, a), (h = n.value) == null || h.addEventListener("click", m);
|
|
1255
|
-
} catch (
|
|
1256
|
-
console.error("Error creating chart config",
|
|
1255
|
+
} catch (B) {
|
|
1256
|
+
console.error("Error creating chart config", B), r = null;
|
|
1257
1257
|
}
|
|
1258
|
-
}),
|
|
1258
|
+
}), he([" ", "Enter"], m, n), _e(() => {
|
|
1259
1259
|
var h;
|
|
1260
|
-
(h = n.value) == null || h.removeEventListener("click", m),
|
|
1260
|
+
(h = n.value) == null || h.removeEventListener("click", m), s == null || s.destroy();
|
|
1261
1261
|
}), j([
|
|
1262
1262
|
() => a.customOptions,
|
|
1263
1263
|
() => a.showTooltips,
|
|
@@ -1268,27 +1268,27 @@ function Qa(e, a) {
|
|
|
1268
1268
|
() => a.yLabel,
|
|
1269
1269
|
() => a.yMin,
|
|
1270
1270
|
() => a.yMax
|
|
1271
|
-
], () =>
|
|
1271
|
+
], () => S(a)), j(
|
|
1272
1272
|
l,
|
|
1273
|
-
(h) =>
|
|
1273
|
+
(h) => S(Ne(
|
|
1274
1274
|
{},
|
|
1275
1275
|
a,
|
|
1276
|
-
h ? o :
|
|
1276
|
+
h ? o : d
|
|
1277
1277
|
))
|
|
1278
1278
|
), j(
|
|
1279
1279
|
[
|
|
1280
1280
|
() => a.data,
|
|
1281
1281
|
() => a.dataIdxLabels
|
|
1282
1282
|
],
|
|
1283
|
-
() =>
|
|
1283
|
+
() => I(a),
|
|
1284
1284
|
{ deep: !0 }
|
|
1285
1285
|
), {
|
|
1286
1286
|
canvasRef: t,
|
|
1287
1287
|
legendListRef: n,
|
|
1288
|
-
registerChart:
|
|
1288
|
+
registerChart: g
|
|
1289
1289
|
};
|
|
1290
1290
|
}
|
|
1291
|
-
const
|
|
1291
|
+
const _a = (e) => ({
|
|
1292
1292
|
id: "htmlLegend",
|
|
1293
1293
|
afterUpdate(a) {
|
|
1294
1294
|
e.value.innerHTML = "", e.value.style.setProperty("--cjs-legend-padding-inline", `${a.scales.x.left}px`), a.options.plugins.legend.labels.generateLabels(a).forEach((l) => {
|
|
@@ -1296,8 +1296,8 @@ const Ja = (e) => ({
|
|
|
1296
1296
|
n.setAttribute("tabindex", "0"), n.dataset.datasetIndex = l.datasetIndex, n.dataset.labelIndex = l.index;
|
|
1297
1297
|
const i = document.createElement("span");
|
|
1298
1298
|
i.style.setProperty("--legend-item-box-fill", l.fillStyle), i.style.setProperty("--legend-item-box-stroke", l.strokeStyle);
|
|
1299
|
-
const
|
|
1300
|
-
o.style.setProperty("--legend-item-text-color", "var(--bs-ink-base)"), o.style.setProperty("--legend-item-text-decoration", l.hidden ? "line-through" : "none"), o.appendChild(
|
|
1299
|
+
const d = document.createTextNode(l.text), o = document.createElement("p");
|
|
1300
|
+
o.style.setProperty("--legend-item-text-color", "var(--bs-ink-base)"), o.style.setProperty("--legend-item-text-decoration", l.hidden ? "line-through" : "none"), o.appendChild(d), n.appendChild(i), n.appendChild(o), e.value.appendChild(n);
|
|
1301
1301
|
});
|
|
1302
1302
|
}
|
|
1303
1303
|
});
|
|
@@ -1354,10 +1354,10 @@ function tt(e, a = 1) {
|
|
|
1354
1354
|
], l = t[e % t.length], n = Math.floor(e / t.length) + a;
|
|
1355
1355
|
return `rgba(${l.toString()}, ${1 / n})`;
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function en(e) {
|
|
1358
1358
|
return tt(e);
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1360
|
+
function tn(e) {
|
|
1361
1361
|
return {
|
|
1362
1362
|
maintainAspectRatio: !1,
|
|
1363
1363
|
plugins: {
|
|
@@ -1379,16 +1379,16 @@ function at() {
|
|
|
1379
1379
|
};
|
|
1380
1380
|
}
|
|
1381
1381
|
function nt(e) {
|
|
1382
|
-
var
|
|
1382
|
+
var g, S;
|
|
1383
1383
|
const {
|
|
1384
1384
|
dataIdxLabels: a,
|
|
1385
1385
|
showXGrid: t,
|
|
1386
1386
|
showYGrid: l,
|
|
1387
1387
|
stacked: n,
|
|
1388
1388
|
xAxisType: i,
|
|
1389
|
-
xLabel:
|
|
1389
|
+
xLabel: d,
|
|
1390
1390
|
yLabel: o,
|
|
1391
|
-
yMax:
|
|
1391
|
+
yMax: s,
|
|
1392
1392
|
yMin: r,
|
|
1393
1393
|
customOptions: f,
|
|
1394
1394
|
tickSize: m
|
|
@@ -1405,8 +1405,8 @@ function nt(e) {
|
|
|
1405
1405
|
}
|
|
1406
1406
|
},
|
|
1407
1407
|
title: {
|
|
1408
|
-
display: !!
|
|
1409
|
-
text:
|
|
1408
|
+
display: !!d,
|
|
1409
|
+
text: d
|
|
1410
1410
|
},
|
|
1411
1411
|
type: i || "category"
|
|
1412
1412
|
},
|
|
@@ -1417,7 +1417,7 @@ function nt(e) {
|
|
|
1417
1417
|
display: l
|
|
1418
1418
|
},
|
|
1419
1419
|
stacked: n,
|
|
1420
|
-
suggestedMax:
|
|
1420
|
+
suggestedMax: s,
|
|
1421
1421
|
suggestedMin: r,
|
|
1422
1422
|
ticks: {
|
|
1423
1423
|
font: {
|
|
@@ -1430,11 +1430,11 @@ function nt(e) {
|
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
1432
|
};
|
|
1433
|
-
return (i === "time" || ((
|
|
1433
|
+
return (i === "time" || ((S = (g = f == null ? void 0 : f.scales) == null ? void 0 : g.x) == null ? void 0 : S.type) === "time") && (b.x.ticks.source = a != null && a.length ? "labels" : "auto", b.x.time = {
|
|
1434
1434
|
tooltipFormat: "dd MMM yyyy : h:mm bbb"
|
|
1435
1435
|
}), b;
|
|
1436
1436
|
}
|
|
1437
|
-
class
|
|
1437
|
+
class Tt {
|
|
1438
1438
|
/**
|
|
1439
1439
|
* @param {Object} options
|
|
1440
1440
|
* @param {ChartType} options.type
|
|
@@ -1464,7 +1464,7 @@ class xt {
|
|
|
1464
1464
|
return a;
|
|
1465
1465
|
}
|
|
1466
1466
|
}
|
|
1467
|
-
class
|
|
1467
|
+
class an extends Tt {
|
|
1468
1468
|
constructor({ data: a, options: t, plugins: l }) {
|
|
1469
1469
|
super({ type: "bar", data: a, options: t, plugins: l });
|
|
1470
1470
|
}
|
|
@@ -1477,7 +1477,7 @@ class tn extends xt {
|
|
|
1477
1477
|
}
|
|
1478
1478
|
updateOptions(a) {
|
|
1479
1479
|
super.updateOptions(a);
|
|
1480
|
-
const t = nt(a), l = { x: { ticks: { font: t.x.ticks.font } }, y: { ticks: { font: t.y.ticks.font } } }, n =
|
|
1480
|
+
const t = nt(a), l = { x: { ticks: { font: t.x.ticks.font } }, y: { ticks: { font: t.y.ticks.font } } }, n = Ne(
|
|
1481
1481
|
{},
|
|
1482
1482
|
this.options,
|
|
1483
1483
|
{ scales: t },
|
|
@@ -1488,7 +1488,7 @@ class tn extends xt {
|
|
|
1488
1488
|
this.options = n;
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
1491
|
-
class
|
|
1491
|
+
class nn extends Tt {
|
|
1492
1492
|
constructor({ data: a, options: t, plugins: l }) {
|
|
1493
1493
|
super({ type: "line", data: a, options: t, plugins: l });
|
|
1494
1494
|
}
|
|
@@ -1496,13 +1496,13 @@ class an extends xt {
|
|
|
1496
1496
|
return a.map((t, l) => ({
|
|
1497
1497
|
...t,
|
|
1498
1498
|
backgroundColor: tt(l, 2),
|
|
1499
|
-
borderColor:
|
|
1499
|
+
borderColor: en(l),
|
|
1500
1500
|
borderWidth: 4
|
|
1501
1501
|
}));
|
|
1502
1502
|
}
|
|
1503
1503
|
updateOptions(a) {
|
|
1504
1504
|
super.updateOptions(a);
|
|
1505
|
-
const t = nt(a), l = { x: { ticks: { font: t.x.ticks.font } }, y: { ticks: { font: t.y.ticks.font } } }, n =
|
|
1505
|
+
const t = nt(a), l = { x: { ticks: { font: t.x.ticks.font } }, y: { ticks: { font: t.y.ticks.font } } }, n = Ne(
|
|
1506
1506
|
{},
|
|
1507
1507
|
this.options,
|
|
1508
1508
|
{ scales: t },
|
|
@@ -1513,7 +1513,7 @@ class an extends xt {
|
|
|
1513
1513
|
this.options = n;
|
|
1514
1514
|
}
|
|
1515
1515
|
}
|
|
1516
|
-
class
|
|
1516
|
+
class ln {
|
|
1517
1517
|
constructor() {
|
|
1518
1518
|
return this;
|
|
1519
1519
|
}
|
|
@@ -1530,7 +1530,7 @@ class nn {
|
|
|
1530
1530
|
*/
|
|
1531
1531
|
setCommonConfigs(a) {
|
|
1532
1532
|
const { data: t } = a;
|
|
1533
|
-
return this.commonOptionsBasic =
|
|
1533
|
+
return this.commonOptionsBasic = tn(a), this.commonOptionsStrict = at(), this.datasets = t, this;
|
|
1534
1534
|
}
|
|
1535
1535
|
setCustomOptions(a) {
|
|
1536
1536
|
return this.customOptions = a.customOptions, this;
|
|
@@ -1567,7 +1567,7 @@ class nn {
|
|
|
1567
1567
|
labels: this.dataIdxLabels
|
|
1568
1568
|
// TODO: || this.pieSliceLabels (or something)
|
|
1569
1569
|
},
|
|
1570
|
-
options:
|
|
1570
|
+
options: Ne(
|
|
1571
1571
|
{},
|
|
1572
1572
|
this.commonOptionsBasic,
|
|
1573
1573
|
{
|
|
@@ -1582,18 +1582,18 @@ class nn {
|
|
|
1582
1582
|
};
|
|
1583
1583
|
switch (this.type) {
|
|
1584
1584
|
case "bar":
|
|
1585
|
-
return new tn(a);
|
|
1586
|
-
case "line":
|
|
1587
1585
|
return new an(a);
|
|
1586
|
+
case "line":
|
|
1587
|
+
return new nn(a);
|
|
1588
1588
|
default:
|
|
1589
1589
|
throw new Error(`Unsupported chart type: ${this.type}`);
|
|
1590
1590
|
}
|
|
1591
1591
|
}
|
|
1592
1592
|
}
|
|
1593
|
-
const
|
|
1593
|
+
const on = {
|
|
1594
1594
|
class: "bs-chart bs-chart-bar",
|
|
1595
1595
|
"data-component": "bs-chart-bar"
|
|
1596
|
-
},
|
|
1596
|
+
}, rn = ["aria-label"], sn = ["data-hidden"], Go = {
|
|
1597
1597
|
__name: "BsChartBar",
|
|
1598
1598
|
props: {
|
|
1599
1599
|
chartTitle: {
|
|
@@ -1664,27 +1664,27 @@ const ln = {
|
|
|
1664
1664
|
}
|
|
1665
1665
|
},
|
|
1666
1666
|
setup(e) {
|
|
1667
|
-
const a = e, { canvasRef: t, legendListRef: l, registerChart: n } =
|
|
1667
|
+
const a = e, { canvasRef: t, legendListRef: l, registerChart: n } = Ja("bar", a), i = p(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`);
|
|
1668
1668
|
return H(() => n(
|
|
1669
|
-
ta,
|
|
1670
1669
|
aa,
|
|
1671
1670
|
na,
|
|
1672
1671
|
la,
|
|
1673
1672
|
oa,
|
|
1674
1673
|
ia,
|
|
1675
|
-
ra
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1674
|
+
ra,
|
|
1675
|
+
sa
|
|
1676
|
+
)), (d, o) => (u(), v("div", on, [
|
|
1677
|
+
$("figure", null, [
|
|
1678
|
+
$("div", null, [
|
|
1679
|
+
$("canvas", {
|
|
1680
1680
|
"aria-label": i.value,
|
|
1681
1681
|
ref_key: "canvasRef",
|
|
1682
1682
|
ref: t,
|
|
1683
1683
|
role: "img"
|
|
1684
|
-
}, null, 8,
|
|
1684
|
+
}, null, 8, rn)
|
|
1685
1685
|
]),
|
|
1686
|
-
|
|
1687
|
-
D(
|
|
1686
|
+
$("div", null, [
|
|
1687
|
+
D(Xa, {
|
|
1688
1688
|
"chart-type": "bar",
|
|
1689
1689
|
data: e.data,
|
|
1690
1690
|
"data-idx-labels": e.dataIdxLabels,
|
|
@@ -1693,19 +1693,19 @@ const ln = {
|
|
|
1693
1693
|
"x-label": e.xLabel,
|
|
1694
1694
|
"y-label": e.yLabel
|
|
1695
1695
|
}, null, 8, ["data", "data-idx-labels", "table-title", "x-axis-type", "x-label", "y-label"]),
|
|
1696
|
-
|
|
1696
|
+
$("figcaption", {
|
|
1697
1697
|
"data-hidden": !e.showLegend
|
|
1698
1698
|
}, [
|
|
1699
|
-
|
|
1699
|
+
$("ul", {
|
|
1700
1700
|
ref_key: "legendListRef",
|
|
1701
1701
|
ref: l
|
|
1702
1702
|
}, null, 512)
|
|
1703
|
-
], 8,
|
|
1703
|
+
], 8, sn)
|
|
1704
1704
|
])
|
|
1705
1705
|
])
|
|
1706
1706
|
]));
|
|
1707
1707
|
}
|
|
1708
|
-
},
|
|
1708
|
+
}, dn = ["data-disabled", "data-error", "data-size"], un = ["checked", "data-error", "disabled", "id", "required", "value"], Ho = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1709
1709
|
__name: "BsCheckbox",
|
|
1710
1710
|
props: {
|
|
1711
1711
|
/** Sets the label. */
|
|
@@ -1768,41 +1768,41 @@ const ln = {
|
|
|
1768
1768
|
},
|
|
1769
1769
|
emits: ["update:modelValue"],
|
|
1770
1770
|
setup(e, { emit: a }) {
|
|
1771
|
-
const t = e, l = a, [n] =
|
|
1771
|
+
const t = e, l = a, [n] = Z(), i = p(() => et.concat(t.passAttrs.split(","))), d = k(null), o = p(() => t.inputId || n.value), s = p(() => t.checked || m.value), r = p(() => t.indeterminate || t.checkedPartially), f = p(() => Array.isArray(t.modelValue) && t.value), m = p(() => f.value && t.modelValue.includes(t.value) || typeof t.modelValue == "boolean" && t.modelValue);
|
|
1772
1772
|
function b() {
|
|
1773
|
-
|
|
1773
|
+
d.value && (d.value.indeterminate = r.value && !s.value);
|
|
1774
1774
|
}
|
|
1775
|
-
function
|
|
1775
|
+
function g(h) {
|
|
1776
1776
|
l("update:modelValue", h);
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1779
|
-
const
|
|
1780
|
-
h ?
|
|
1778
|
+
function S(h) {
|
|
1779
|
+
const B = [...t.modelValue];
|
|
1780
|
+
h ? B.push(t.value) : B.splice(B.indexOf(t.value), 1), l("update:modelValue", B);
|
|
1781
1781
|
}
|
|
1782
|
-
function
|
|
1783
|
-
const { checked:
|
|
1784
|
-
f.value ?
|
|
1782
|
+
function I(h) {
|
|
1783
|
+
const { checked: B } = h.target;
|
|
1784
|
+
f.value ? S(B) : g(B);
|
|
1785
1785
|
}
|
|
1786
|
-
return j(
|
|
1786
|
+
return j(s, b), j(r, b), H(b), (h, B) => (u(), v("div", z({
|
|
1787
1787
|
class: "bs-boolean",
|
|
1788
1788
|
"data-component": "bs-checkbox",
|
|
1789
1789
|
"data-disabled": e.disabled,
|
|
1790
1790
|
"data-error": e.error,
|
|
1791
1791
|
"data-size": e.size
|
|
1792
1792
|
}, c(Y)(h.$attrs, i.value).remaining), [
|
|
1793
|
-
|
|
1793
|
+
$("input", z({
|
|
1794
1794
|
ref_key: "inputEl",
|
|
1795
|
-
ref:
|
|
1796
|
-
checked:
|
|
1795
|
+
ref: d,
|
|
1796
|
+
checked: s.value,
|
|
1797
1797
|
"data-error": e.error,
|
|
1798
1798
|
disabled: e.disabled,
|
|
1799
1799
|
id: h.$attrs.id || o.value,
|
|
1800
1800
|
required: e.required,
|
|
1801
1801
|
value: e.value || "on",
|
|
1802
1802
|
type: "checkbox",
|
|
1803
|
-
onChange:
|
|
1804
|
-
}, c(Y)(h.$attrs, i.value).filtered), null, 16,
|
|
1805
|
-
e.label || h.$slots.label ? (u(),
|
|
1803
|
+
onChange: I
|
|
1804
|
+
}, c(Y)(h.$attrs, i.value).filtered), null, 16, un),
|
|
1805
|
+
e.label || h.$slots.label ? (u(), A(ae, {
|
|
1806
1806
|
key: 0,
|
|
1807
1807
|
for: h.$attrs.id || o.value,
|
|
1808
1808
|
disabled: e.disabled,
|
|
@@ -1810,14 +1810,14 @@ const ln = {
|
|
|
1810
1810
|
}, {
|
|
1811
1811
|
default: L(() => [
|
|
1812
1812
|
E(h.$slots, "label", {}, () => [
|
|
1813
|
-
|
|
1813
|
+
U(T(e.label), 1)
|
|
1814
1814
|
])
|
|
1815
1815
|
]),
|
|
1816
1816
|
_: 3
|
|
1817
1817
|
}, 8, ["for", "disabled", "required"])) : C("", !0)
|
|
1818
|
-
], 16,
|
|
1818
|
+
], 16, dn));
|
|
1819
1819
|
}
|
|
1820
|
-
}),
|
|
1820
|
+
}), cn = {
|
|
1821
1821
|
__name: "BsDropdownContainer",
|
|
1822
1822
|
props: {
|
|
1823
1823
|
breakout: {
|
|
@@ -1840,7 +1840,7 @@ const ln = {
|
|
|
1840
1840
|
setup(e, { expose: a }) {
|
|
1841
1841
|
const t = k(null);
|
|
1842
1842
|
return a({ internalContainerRef: t }), (l, n) => (u(), v(G, null, [
|
|
1843
|
-
e.breakout && e.breakoutMounted ? (u(),
|
|
1843
|
+
e.breakout && e.breakoutMounted ? (u(), A(Nt, {
|
|
1844
1844
|
key: 0,
|
|
1845
1845
|
to: e.breakoutStub
|
|
1846
1846
|
}, [
|
|
@@ -1890,7 +1890,7 @@ const ln = {
|
|
|
1890
1890
|
],
|
|
1891
1891
|
setup(e, { emit: a }) {
|
|
1892
1892
|
const t = a;
|
|
1893
|
-
return (l, n) => e.preloaded ?
|
|
1893
|
+
return (l, n) => e.preloaded ? ue((u(), A(st, {
|
|
1894
1894
|
key: 0,
|
|
1895
1895
|
name: e.name,
|
|
1896
1896
|
onBeforeEnter: n[0] || (n[0] = (i) => t("before-enter")),
|
|
@@ -1907,8 +1907,8 @@ const ln = {
|
|
|
1907
1907
|
]),
|
|
1908
1908
|
_: 3
|
|
1909
1909
|
}, 8, ["name"])), [
|
|
1910
|
-
[
|
|
1911
|
-
]) : (u(),
|
|
1910
|
+
[ce, e.shown]
|
|
1911
|
+
]) : (u(), A(st, {
|
|
1912
1912
|
key: 1,
|
|
1913
1913
|
name: e.name,
|
|
1914
1914
|
onBeforeEnter: n[8] || (n[8] = (i) => t("before-enter")),
|
|
@@ -1926,19 +1926,19 @@ const ln = {
|
|
|
1926
1926
|
_: 3
|
|
1927
1927
|
}, 8, ["name"]));
|
|
1928
1928
|
}
|
|
1929
|
-
},
|
|
1929
|
+
}, fn = (e, a = void 0, t = "relative") => {
|
|
1930
1930
|
const l = k(null), n = k(null), i = k(!1);
|
|
1931
|
-
let
|
|
1931
|
+
let d = !1;
|
|
1932
1932
|
return H(() => {
|
|
1933
|
-
e && (l.value = a ||
|
|
1933
|
+
e && (l.value = a || wt(), document.getElementById(l.value) ? (n.value = document.getElementById(l.value), d = !0) : (n.value = document.createElement("div"), n.value.id = l.value, n.value.style.position = t, document.body.insertAdjacentElement("afterbegin", n.value)), i.value = !0);
|
|
1934
1934
|
}), $e(() => {
|
|
1935
1935
|
var o;
|
|
1936
|
-
e && !
|
|
1936
|
+
e && !d && ((o = document.getElementById(l.value)) == null || o.remove());
|
|
1937
1937
|
}), { breakoutId: l, breakoutStub: n, breakoutMounted: i };
|
|
1938
|
-
},
|
|
1938
|
+
}, pn = {
|
|
1939
1939
|
key: 0,
|
|
1940
1940
|
class: "bs-dropdown-backdrop"
|
|
1941
|
-
},
|
|
1941
|
+
}, hn = ["data-width", "data-shown", "data-no-mobile"], vn = { key: 0 }, mn = { key: 0 }, bn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1942
1942
|
__name: "BsDropdownNew",
|
|
1943
1943
|
props: {
|
|
1944
1944
|
anchorId: {
|
|
@@ -1991,62 +1991,60 @@ const ln = {
|
|
|
1991
1991
|
"after-leave"
|
|
1992
1992
|
],
|
|
1993
1993
|
setup(e, { emit: a }) {
|
|
1994
|
-
const t = e, l = a, n = k(null), i = k(null),
|
|
1995
|
-
|
|
1994
|
+
const t = e, l = a, n = k(null), i = k(null), d = k(!1), o = k(!1), s = p(() => document.getElementById(t.anchorId)), r = p(() => t.breakout ? m.value : t.containerId ? document.getElementById(t.containerId) : n.value.internalContainerRef), f = p(() => t.width === "anchor" ? void 0 : t.width);
|
|
1995
|
+
Ct([i, s], () => {
|
|
1996
1996
|
o.value && l("close");
|
|
1997
|
-
}),
|
|
1997
|
+
}), he(["Escape"], () => {
|
|
1998
1998
|
o.value && l("close");
|
|
1999
1999
|
});
|
|
2000
|
-
const { breakoutStub: m, breakoutMounted: b } =
|
|
2001
|
-
|
|
2002
|
-
const
|
|
2003
|
-
i.value.style.setProperty(
|
|
2000
|
+
const { breakoutStub: m, breakoutMounted: b } = fn(t.breakout, t.containerId);
|
|
2001
|
+
fe("dropdownEnter", d), fe("dropdownAfterEnter", o), fe("dropdownShown", p(() => t.shown));
|
|
2002
|
+
const g = (V, q) => {
|
|
2003
|
+
i.value.style.setProperty(V, q);
|
|
2004
2004
|
};
|
|
2005
|
-
function
|
|
2006
|
-
const
|
|
2007
|
-
|
|
2005
|
+
function S() {
|
|
2006
|
+
const V = r.value.getBoundingClientRect(), q = s.value.getBoundingClientRect(), R = i.value.getBoundingClientRect();
|
|
2007
|
+
I(V, q), h(V, q, R);
|
|
2008
2008
|
}
|
|
2009
|
-
function
|
|
2009
|
+
function I(V, q) {
|
|
2010
2010
|
if (t.position === "top") {
|
|
2011
|
-
const R =
|
|
2012
|
-
|
|
2011
|
+
const R = V.bottom - q.bottom;
|
|
2012
|
+
g("--dropdown-wscreen-top", "auto"), g("--dropdown-wscreen-bottom", `${R + q.height + 8}px`);
|
|
2013
2013
|
} else {
|
|
2014
|
-
const R = q.top -
|
|
2015
|
-
|
|
2014
|
+
const R = q.top - V.top;
|
|
2015
|
+
g("--dropdown-wscreen-top", `${R + q.height + 8}px`), g("--dropdown-wscreen-bottom", "auto");
|
|
2016
2016
|
}
|
|
2017
2017
|
}
|
|
2018
|
-
function h(
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
}
|
|
2028
|
-
S("--dropdown-wscreen-left", `${_}px`), S("--dropdown-wscreen-right", "auto");
|
|
2029
|
-
}
|
|
2018
|
+
function h(V, q, R) {
|
|
2019
|
+
const _ = q.left - V.left;
|
|
2020
|
+
if (t.position === "center") {
|
|
2021
|
+
const J = (q.width - R.width) / 2;
|
|
2022
|
+
g("--dropdown-wscreen-left", `${_ + J}px`), g("--dropdown-wscreen-right", "auto");
|
|
2023
|
+
} else if (t.position === "right") {
|
|
2024
|
+
const J = V.right - q.right;
|
|
2025
|
+
g("--dropdown-wscreen-left", "auto"), g("--dropdown-wscreen-right", `${J}px`);
|
|
2026
|
+
} else
|
|
2027
|
+
g("--dropdown-wscreen-left", `${_}px`), g("--dropdown-wscreen-right", "auto");
|
|
2030
2028
|
}
|
|
2031
|
-
function
|
|
2029
|
+
function B() {
|
|
2032
2030
|
if (t.width === "anchor") {
|
|
2033
|
-
const
|
|
2034
|
-
|
|
2031
|
+
const V = s.value.getBoundingClientRect();
|
|
2032
|
+
g("--dropdown-wscreen-width", `${V.width}px`);
|
|
2035
2033
|
} else
|
|
2036
|
-
|
|
2034
|
+
g("--dropdown-wscreen-width", "");
|
|
2037
2035
|
}
|
|
2038
|
-
function
|
|
2039
|
-
|
|
2036
|
+
function w() {
|
|
2037
|
+
d.value = !0, S(), B(), l("enter");
|
|
2040
2038
|
}
|
|
2041
|
-
function
|
|
2039
|
+
function y() {
|
|
2042
2040
|
o.value = !0, l("after-enter");
|
|
2043
2041
|
}
|
|
2044
2042
|
function M() {
|
|
2045
|
-
|
|
2043
|
+
d.value = !1, o.value = !1, l("after-leave");
|
|
2046
2044
|
}
|
|
2047
|
-
return (
|
|
2048
|
-
e.useMobileStyle && e.shown ? (u(), v("div",
|
|
2049
|
-
D(
|
|
2045
|
+
return (V, q) => (u(), v(G, null, [
|
|
2046
|
+
e.useMobileStyle && e.shown ? (u(), v("div", pn)) : C("", !0),
|
|
2047
|
+
D(cn, {
|
|
2050
2048
|
ref_key: "dropdownContainerRef",
|
|
2051
2049
|
ref: n,
|
|
2052
2050
|
breakout: e.breakout,
|
|
@@ -2059,25 +2057,25 @@ const ln = {
|
|
|
2059
2057
|
name: "bs-dropdown",
|
|
2060
2058
|
preloaded: e.preloaded,
|
|
2061
2059
|
shown: e.shown,
|
|
2062
|
-
onAfterEnter:
|
|
2063
|
-
onEnter:
|
|
2060
|
+
onAfterEnter: y,
|
|
2061
|
+
onEnter: w,
|
|
2064
2062
|
onAfterLeave: M
|
|
2065
2063
|
}, {
|
|
2066
2064
|
default: L(() => [
|
|
2067
|
-
|
|
2065
|
+
$("div", z({
|
|
2068
2066
|
ref_key: "dropdownRef",
|
|
2069
2067
|
ref: i,
|
|
2070
2068
|
class: "bs-dropdown",
|
|
2071
2069
|
"data-width": f.value,
|
|
2072
2070
|
"data-shown": e.shown,
|
|
2073
2071
|
"data-no-mobile": !e.useMobileStyle
|
|
2074
|
-
},
|
|
2075
|
-
e.helperText ? (u(), v("header",
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
e.helperDescription ? (u(), v("p",
|
|
2072
|
+
}, V.$attrs), [
|
|
2073
|
+
e.helperText ? (u(), v("header", vn, [
|
|
2074
|
+
$("div", null, [
|
|
2075
|
+
$("h3", null, T(e.helperText), 1),
|
|
2076
|
+
e.helperDescription ? (u(), v("p", mn, T(e.helperDescription), 1)) : C("", !0)
|
|
2079
2077
|
]),
|
|
2080
|
-
|
|
2078
|
+
$("button", {
|
|
2081
2079
|
type: "button",
|
|
2082
2080
|
title: "close",
|
|
2083
2081
|
onClick: q[0] || (q[0] = () => l("close"))
|
|
@@ -2085,8 +2083,8 @@ const ln = {
|
|
|
2085
2083
|
D(c(Be))
|
|
2086
2084
|
])
|
|
2087
2085
|
])) : C("", !0),
|
|
2088
|
-
E(
|
|
2089
|
-
], 16,
|
|
2086
|
+
E(V.$slots, "default")
|
|
2087
|
+
], 16, hn)
|
|
2090
2088
|
]),
|
|
2091
2089
|
_: 3
|
|
2092
2090
|
}, 8, ["preloaded", "shown"])
|
|
@@ -2185,14 +2183,14 @@ const ln = {
|
|
|
2185
2183
|
"after-leave"
|
|
2186
2184
|
],
|
|
2187
2185
|
setup(e, { emit: a }) {
|
|
2188
|
-
const t = e, l = a, { transition: n } = Le(t), i = p(() => t.width === "toggle" ? "anchor" : t.width),
|
|
2189
|
-
return (
|
|
2186
|
+
const t = e, l = a, { transition: n } = Le(t), i = p(() => t.width === "toggle" ? "anchor" : t.width), d = p(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = p(() => t.toggleId ? t.toggleId : t.anchorId);
|
|
2187
|
+
return (s, r) => (u(), A(bn, {
|
|
2190
2188
|
"anchor-id": o.value,
|
|
2191
2189
|
breakout: e.breakout,
|
|
2192
2190
|
"container-id": e.containerId,
|
|
2193
2191
|
"helper-description": e.helperDescription,
|
|
2194
2192
|
"helper-text": e.helperText,
|
|
2195
|
-
position:
|
|
2193
|
+
position: d.value,
|
|
2196
2194
|
preloaded: e.preloaded,
|
|
2197
2195
|
shown: c(n),
|
|
2198
2196
|
"use-mobile-style": e.useMobileStyle,
|
|
@@ -2203,12 +2201,12 @@ const ln = {
|
|
|
2203
2201
|
onAfterLeave: r[3] || (r[3] = () => l("after-leave"))
|
|
2204
2202
|
}, {
|
|
2205
2203
|
default: L(() => [
|
|
2206
|
-
E(
|
|
2204
|
+
E(s.$slots, "default")
|
|
2207
2205
|
]),
|
|
2208
2206
|
_: 3
|
|
2209
2207
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
|
|
2210
2208
|
}
|
|
2211
|
-
},
|
|
2209
|
+
}, gn = ["aria-controls", "aria-expanded", "data-open", "disabled", "id", "tabindex"], yn = { class: "visually-hidden" }, Sn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2212
2210
|
__name: "BsInputCombobox",
|
|
2213
2211
|
props: {
|
|
2214
2212
|
containerId: {
|
|
@@ -2250,21 +2248,21 @@ const ln = {
|
|
|
2250
2248
|
setup(e, { emit: a }) {
|
|
2251
2249
|
const t = e, l = a;
|
|
2252
2250
|
let n = !1;
|
|
2253
|
-
const i = k(null), [
|
|
2251
|
+
const i = k(null), [d] = Z(1), o = p(() => ({
|
|
2254
2252
|
icon: t.modelValue ? "close" : t.optionsId ? "caret-down" : "",
|
|
2255
2253
|
show: !!(t.modelValue || t.optionsId),
|
|
2256
2254
|
text: t.modelValue ? "Clear this field" : t.optionsId ? "Toggle options dropdown" : ""
|
|
2257
2255
|
}));
|
|
2258
|
-
function
|
|
2256
|
+
function s() {
|
|
2259
2257
|
t.modelValue && l("clear"), n = !0, i.value.$el.focus();
|
|
2260
2258
|
}
|
|
2261
2259
|
function r(m) {
|
|
2262
|
-
var
|
|
2263
|
-
const b = ((
|
|
2264
|
-
!(((
|
|
2260
|
+
var S, I;
|
|
2261
|
+
const b = ((S = m.relatedTarget) == null ? void 0 : S.id) === d.value;
|
|
2262
|
+
!(((I = m.relatedTarget) == null ? void 0 : I.id) === t.optionsId) && (!b || !n) && f(!0), n = !1;
|
|
2265
2263
|
}
|
|
2266
2264
|
const f = Oe((m) => l("toggled", m), 200, !0);
|
|
2267
|
-
return (m, b) => (u(),
|
|
2265
|
+
return (m, b) => (u(), A(De, {
|
|
2268
2266
|
"aria-live": "polite",
|
|
2269
2267
|
disabled: e.disabled,
|
|
2270
2268
|
error: e.error,
|
|
@@ -2274,7 +2272,7 @@ const ln = {
|
|
|
2274
2272
|
onClick: c(f)
|
|
2275
2273
|
}, {
|
|
2276
2274
|
default: L(() => [
|
|
2277
|
-
D(Ie,
|
|
2275
|
+
D(Ie, z({
|
|
2278
2276
|
ref_key: "inputRef",
|
|
2279
2277
|
ref: i,
|
|
2280
2278
|
"aria-controls": e.optionsId,
|
|
@@ -2290,40 +2288,40 @@ const ln = {
|
|
|
2290
2288
|
required: e.required,
|
|
2291
2289
|
role: e.optionsId ? "combobox" : void 0,
|
|
2292
2290
|
onFocus: r,
|
|
2293
|
-
onInput: b[0] || (b[0] = (
|
|
2291
|
+
onInput: b[0] || (b[0] = (g) => m.$emit("update:modelValue", g.target.value))
|
|
2294
2292
|
}, m.$attrs), null, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup", "aria-invalid", "data-error", "disabled", "model-value", "placeholder", "required", "role"]),
|
|
2295
|
-
|
|
2293
|
+
ue($("button", {
|
|
2296
2294
|
"aria-controls": !e.modelValue && e.optionsId ? e.optionsId : void 0,
|
|
2297
2295
|
"aria-expanded": !e.modelValue && e.optionsId ? e.open : void 0,
|
|
2298
2296
|
"data-open": e.modelValue ? void 0 : e.open,
|
|
2299
2297
|
"data-part": "right",
|
|
2300
2298
|
disabled: e.disabled,
|
|
2301
|
-
id: c(
|
|
2299
|
+
id: c(d),
|
|
2302
2300
|
tabindex: e.modelValue ? "0" : "-1",
|
|
2303
2301
|
type: "button",
|
|
2304
|
-
onClick:
|
|
2302
|
+
onClick: s
|
|
2305
2303
|
}, [
|
|
2306
|
-
|
|
2307
|
-
|
|
2304
|
+
$("span", yn, T(o.value.text), 1),
|
|
2305
|
+
ue(D(c(Me), {
|
|
2308
2306
|
role: "presentation",
|
|
2309
2307
|
size: "md"
|
|
2310
2308
|
}, null, 512), [
|
|
2311
|
-
[
|
|
2309
|
+
[ce, o.value.icon == "caret-down"]
|
|
2312
2310
|
]),
|
|
2313
|
-
|
|
2311
|
+
ue(D(c(Be), {
|
|
2314
2312
|
role: "presentation",
|
|
2315
2313
|
size: "md"
|
|
2316
2314
|
}, null, 512), [
|
|
2317
|
-
[
|
|
2315
|
+
[ce, o.value.icon == "close"]
|
|
2318
2316
|
])
|
|
2319
|
-
], 8,
|
|
2320
|
-
[
|
|
2317
|
+
], 8, gn), [
|
|
2318
|
+
[ce, o.value.show]
|
|
2321
2319
|
])
|
|
2322
2320
|
]),
|
|
2323
2321
|
_: 1
|
|
2324
2322
|
}, 8, ["disabled", "error", "id", "onClick"]));
|
|
2325
2323
|
}
|
|
2326
|
-
}),
|
|
2324
|
+
}), wn = ["aria-controls", "aria-expanded", "data-open", "data-size", "disabled"], $n = {
|
|
2327
2325
|
__name: "BsFilterButton",
|
|
2328
2326
|
props: {
|
|
2329
2327
|
badgeCount: {
|
|
@@ -2363,7 +2361,7 @@ const ln = {
|
|
|
2363
2361
|
disabled: e.disabled,
|
|
2364
2362
|
type: "button"
|
|
2365
2363
|
}, [
|
|
2366
|
-
t.value ? (u(),
|
|
2364
|
+
t.value ? (u(), A(wa, {
|
|
2367
2365
|
key: 0,
|
|
2368
2366
|
color: "blue",
|
|
2369
2367
|
count: e.badgeCount,
|
|
@@ -2372,12 +2370,12 @@ const ln = {
|
|
|
2372
2370
|
variant: "notext"
|
|
2373
2371
|
}, null, 8, ["count"])) : C("", !0),
|
|
2374
2372
|
E(l.$slots, "label", {}, () => [
|
|
2375
|
-
|
|
2373
|
+
U(T(e.label), 1)
|
|
2376
2374
|
]),
|
|
2377
|
-
D(c(
|
|
2378
|
-
], 8,
|
|
2375
|
+
D(c(Me))
|
|
2376
|
+
], 8, wn));
|
|
2379
2377
|
}
|
|
2380
|
-
},
|
|
2378
|
+
}, Bn = ["data-value", "data-value-type", "data-variant", "id"], ot = {
|
|
2381
2379
|
__name: "BsDropdownOption",
|
|
2382
2380
|
props: {
|
|
2383
2381
|
value: {
|
|
@@ -2390,12 +2388,12 @@ const ln = {
|
|
|
2390
2388
|
}
|
|
2391
2389
|
},
|
|
2392
2390
|
setup(e) {
|
|
2393
|
-
const a = e, t = k(null), l =
|
|
2391
|
+
const a = e, t = k(null), l = pe("optionsId", ""), n = pe("handleOptionSelect", () => {
|
|
2394
2392
|
}), i = p(() => `${l.value}-option-${a.value}`);
|
|
2395
|
-
function
|
|
2393
|
+
function d(o) {
|
|
2396
2394
|
n(t.value), o.stopPropagation();
|
|
2397
2395
|
}
|
|
2398
|
-
return (o,
|
|
2396
|
+
return (o, s) => (u(), v("li", {
|
|
2399
2397
|
ref_key: "optionRef",
|
|
2400
2398
|
ref: t,
|
|
2401
2399
|
"data-component": "bs-dropdown-option",
|
|
@@ -2404,12 +2402,12 @@ const ln = {
|
|
|
2404
2402
|
"data-variant": e.variant || void 0,
|
|
2405
2403
|
id: i.value,
|
|
2406
2404
|
role: "option",
|
|
2407
|
-
onClick:
|
|
2405
|
+
onClick: d
|
|
2408
2406
|
}, [
|
|
2409
2407
|
E(o.$slots, "default")
|
|
2410
|
-
], 8,
|
|
2408
|
+
], 8, Bn));
|
|
2411
2409
|
}
|
|
2412
|
-
},
|
|
2410
|
+
}, In = ["data-img-size", "data-initials", "data-no-img"], kn = ["src", "alt"], At = {
|
|
2413
2411
|
__name: "BsProfileImg",
|
|
2414
2412
|
props: {
|
|
2415
2413
|
src: String,
|
|
@@ -2439,11 +2437,11 @@ const ln = {
|
|
|
2439
2437
|
key: 0,
|
|
2440
2438
|
src: e.src,
|
|
2441
2439
|
alt: e.useAltText ? e.profileName : "",
|
|
2442
|
-
onError: i[0] || (i[0] = (
|
|
2443
|
-
}, null, 40,
|
|
2444
|
-
], 8,
|
|
2440
|
+
onError: i[0] || (i[0] = (d) => l.value = !1)
|
|
2441
|
+
}, null, 40, kn)) : C("", !0)
|
|
2442
|
+
], 8, In));
|
|
2445
2443
|
}
|
|
2446
|
-
},
|
|
2444
|
+
}, Cn = ["id", "data-checked"], xn = { key: 1 }, Tn = ["innerHTML"], An = { key: 4 }, Vn = { key: 5 }, On = {
|
|
2447
2445
|
key: 0,
|
|
2448
2446
|
role: "option",
|
|
2449
2447
|
"data-no-hover": ""
|
|
@@ -2487,25 +2485,25 @@ const ln = {
|
|
|
2487
2485
|
});
|
|
2488
2486
|
function l() {
|
|
2489
2487
|
a.options.forEach((o) => {
|
|
2490
|
-
const { icon:
|
|
2491
|
-
|
|
2488
|
+
const { icon: s } = o;
|
|
2489
|
+
s && !t[s] && (t[s] = i(s));
|
|
2492
2490
|
});
|
|
2493
2491
|
}
|
|
2494
2492
|
function n(o) {
|
|
2495
|
-
let
|
|
2496
|
-
return r += o.checkbox ? 1 : 0, r += o.icon ? 1 : 0, r += o.profileImg ? 1 : 0, r > 1 && (
|
|
2493
|
+
let s = "", r = 1;
|
|
2494
|
+
return r += o.checkbox ? 1 : 0, r += o.icon ? 1 : 0, r += o.profileImg ? 1 : 0, r > 1 && (s += ` ${r}-col`), o.checkbox && (s += " checkbox"), o.description && (s += " description"), o.negative && (s += " negative"), s;
|
|
2497
2495
|
}
|
|
2498
2496
|
function i(o) {
|
|
2499
|
-
return
|
|
2500
|
-
const { [`BsIcon${o}`]:
|
|
2501
|
-
return
|
|
2497
|
+
return Je(async () => {
|
|
2498
|
+
const { [`BsIcon${o}`]: s } = await import("@wwtdev/bsds-icons-vue3");
|
|
2499
|
+
return s;
|
|
2502
2500
|
});
|
|
2503
2501
|
}
|
|
2504
|
-
function
|
|
2505
|
-
return !!o && o !==
|
|
2502
|
+
function d(o, s) {
|
|
2503
|
+
return !!o && o !== s;
|
|
2506
2504
|
}
|
|
2507
|
-
return (o,
|
|
2508
|
-
(u(!0), v(G, null, ee(e.options, (r) => (u(),
|
|
2505
|
+
return (o, s) => (u(), v(G, null, [
|
|
2506
|
+
(u(!0), v(G, null, ee(e.options, (r) => (u(), A(ot, {
|
|
2509
2507
|
"aria-checked": r.checkbox ? r.checkbox.checked : void 0,
|
|
2510
2508
|
key: r.value,
|
|
2511
2509
|
value: r.value,
|
|
@@ -2518,34 +2516,34 @@ const ln = {
|
|
|
2518
2516
|
"aria-hidden": "true",
|
|
2519
2517
|
class: "bs-checkbox",
|
|
2520
2518
|
"data-checked": r.checkbox.checked
|
|
2521
|
-
}, null, 8,
|
|
2522
|
-
r.icon ? (u(), v("span",
|
|
2523
|
-
(u(),
|
|
2519
|
+
}, null, 8, Cn)) : C("", !0),
|
|
2520
|
+
r.icon ? (u(), v("span", xn, [
|
|
2521
|
+
(u(), A(te(t[r.icon])))
|
|
2524
2522
|
])) : C("", !0),
|
|
2525
|
-
r.profileImg ? (u(),
|
|
2523
|
+
r.profileImg ? (u(), A(At, {
|
|
2526
2524
|
key: 2,
|
|
2527
2525
|
src: r.profileImg.src,
|
|
2528
2526
|
size: "xs",
|
|
2529
2527
|
initials: r.profileImg.initials,
|
|
2530
2528
|
"profile-name": r.profileImg.profileName,
|
|
2531
|
-
"use-alt-text":
|
|
2529
|
+
"use-alt-text": d(r.profileImg.profileName, r.label)
|
|
2532
2530
|
}, null, 8, ["src", "initials", "profile-name", "use-alt-text"])) : C("", !0),
|
|
2533
2531
|
r.labelHtml ? (u(), v("span", {
|
|
2534
2532
|
key: 3,
|
|
2535
2533
|
innerHTML: r.labelHtml
|
|
2536
|
-
}, null, 8,
|
|
2537
|
-
r.description ? (u(), v("span",
|
|
2534
|
+
}, null, 8, Tn)) : (u(), v("span", An, T(r.label), 1)),
|
|
2535
|
+
r.description ? (u(), v("span", Vn, T(r.description), 1)) : C("", !0)
|
|
2538
2536
|
]),
|
|
2539
2537
|
_: 2
|
|
2540
2538
|
}, 1032, ["aria-checked", "value", "variant"]))), 128)),
|
|
2541
|
-
e.showNoOptions && e.options.length === 0 ? (u(), v("li",
|
|
2539
|
+
e.showNoOptions && e.options.length === 0 ? (u(), v("li", On, [
|
|
2542
2540
|
E(o.$slots, "no-options", {}, () => [
|
|
2543
|
-
|
|
2541
|
+
U("No options")
|
|
2544
2542
|
])
|
|
2545
2543
|
])) : C("", !0)
|
|
2546
2544
|
], 64));
|
|
2547
2545
|
}
|
|
2548
|
-
},
|
|
2546
|
+
}, En = ["id"], Vt = {
|
|
2549
2547
|
__name: "BsDropdownWithToggle",
|
|
2550
2548
|
props: {
|
|
2551
2549
|
anchorId: {
|
|
@@ -2619,37 +2617,37 @@ const ln = {
|
|
|
2619
2617
|
setup(e, { emit: a }) {
|
|
2620
2618
|
const t = e, l = a;
|
|
2621
2619
|
let n = null;
|
|
2622
|
-
const [i,
|
|
2620
|
+
const [i, d] = Z(2), o = k(!1), s = () => n || (n = document.getElementById(m.value)), r = p(() => Je(async () => await (t.multiselect ? Promise.resolve().then(() => zn) : Promise.resolve().then(() => Dn)))), f = p(() => t.optionsId || d.value), m = p(() => t.toggleId || i.value);
|
|
2623
2621
|
function b() {
|
|
2624
|
-
const
|
|
2625
|
-
return !
|
|
2622
|
+
const w = document.activeElement;
|
|
2623
|
+
return !w || w.tagName === "BODY" || w.id === f.value;
|
|
2626
2624
|
}
|
|
2627
|
-
function
|
|
2628
|
-
var
|
|
2629
|
-
o.value = !1, l("close"), b() && ((
|
|
2625
|
+
function g() {
|
|
2626
|
+
var w, y;
|
|
2627
|
+
o.value = !1, l("close"), b() && ((y = (w = s()) == null ? void 0 : w.focus) == null || y.call(w));
|
|
2630
2628
|
}
|
|
2631
|
-
function
|
|
2632
|
-
o.value &&
|
|
2629
|
+
function S() {
|
|
2630
|
+
o.value && g();
|
|
2633
2631
|
}
|
|
2634
|
-
function
|
|
2632
|
+
function I() {
|
|
2635
2633
|
o.value = !0;
|
|
2636
2634
|
}
|
|
2637
|
-
function h(
|
|
2638
|
-
l("update:selectedOptions",
|
|
2635
|
+
function h(w) {
|
|
2636
|
+
l("update:selectedOptions", w);
|
|
2639
2637
|
}
|
|
2640
|
-
function
|
|
2641
|
-
t.multiselect || (l("update:selectedOption",
|
|
2638
|
+
function B(w) {
|
|
2639
|
+
t.multiselect || (l("update:selectedOption", w), g());
|
|
2642
2640
|
}
|
|
2643
|
-
return (
|
|
2641
|
+
return (w, y) => (u(), v("div", {
|
|
2644
2642
|
class: "bs-dropdown-with-toggle",
|
|
2645
|
-
id:
|
|
2643
|
+
id: w.$attrs.id
|
|
2646
2644
|
}, [
|
|
2647
|
-
E(
|
|
2645
|
+
E(w.$slots, "toggle", {
|
|
2648
2646
|
anchorId: e.anchorId,
|
|
2649
2647
|
optionsId: f.value,
|
|
2650
2648
|
toggleId: m.value
|
|
2651
2649
|
}, () => [
|
|
2652
|
-
D(
|
|
2650
|
+
D($n, {
|
|
2653
2651
|
"aria-controls": f.value,
|
|
2654
2652
|
"aria-expanded": e.open,
|
|
2655
2653
|
disabled: e.disabled,
|
|
@@ -2657,11 +2655,11 @@ const ln = {
|
|
|
2657
2655
|
open: e.open,
|
|
2658
2656
|
"options-id": f.value,
|
|
2659
2657
|
size: e.toggleSize,
|
|
2660
|
-
onClick:
|
|
2658
|
+
onClick: y[0] || (y[0] = (M) => w.$emit("toggled"))
|
|
2661
2659
|
}, {
|
|
2662
2660
|
label: L(() => [
|
|
2663
|
-
E(
|
|
2664
|
-
|
|
2661
|
+
E(w.$slots, "toggle-label", {}, () => [
|
|
2662
|
+
U(T(e.toggleLabel), 1)
|
|
2665
2663
|
])
|
|
2666
2664
|
]),
|
|
2667
2665
|
_: 3
|
|
@@ -2677,23 +2675,23 @@ const ln = {
|
|
|
2677
2675
|
shown: e.open,
|
|
2678
2676
|
"use-mobile-style": e.useMobileStyle,
|
|
2679
2677
|
width: e.dropdownWidth,
|
|
2680
|
-
onClose:
|
|
2681
|
-
onEnter:
|
|
2678
|
+
onClose: S,
|
|
2679
|
+
onEnter: I
|
|
2682
2680
|
}, {
|
|
2683
2681
|
default: L(() => [
|
|
2684
2682
|
D(c(r), {
|
|
2685
2683
|
label: e.dropdownLabel,
|
|
2686
2684
|
"model-value": e.selectedOption,
|
|
2687
|
-
options: e.options,
|
|
2685
|
+
options: e.multiselect ? e.options : void 0,
|
|
2688
2686
|
"options-id": f.value,
|
|
2689
2687
|
"selected-options": e.selectedOptions,
|
|
2690
2688
|
shown: e.open,
|
|
2691
|
-
"onUpdate:modelValue":
|
|
2689
|
+
"onUpdate:modelValue": B,
|
|
2692
2690
|
"onUpdate:selectedOptions": h,
|
|
2693
|
-
onClose:
|
|
2691
|
+
onClose: y[1] || (y[1] = (M) => e.multiselect ? void 0 : S())
|
|
2694
2692
|
}, {
|
|
2695
2693
|
default: L(() => [
|
|
2696
|
-
e.multiselect ? C("", !0) : (u(),
|
|
2694
|
+
e.multiselect ? C("", !0) : (u(), A(Pe, {
|
|
2697
2695
|
key: 0,
|
|
2698
2696
|
options: e.options
|
|
2699
2697
|
}, null, 8, ["options"]))
|
|
@@ -2703,9 +2701,9 @@ const ln = {
|
|
|
2703
2701
|
]),
|
|
2704
2702
|
_: 1
|
|
2705
2703
|
}, 8, ["anchor-id", "breakout", "helper-text", "helper-description", "position", "shown", "use-mobile-style", "width"])
|
|
2706
|
-
], 8,
|
|
2704
|
+
], 8, En));
|
|
2707
2705
|
}
|
|
2708
|
-
},
|
|
2706
|
+
}, Ot = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2709
2707
|
__name: "BsDropdownCombobox",
|
|
2710
2708
|
props: {
|
|
2711
2709
|
disabled: {
|
|
@@ -2764,24 +2762,24 @@ const ln = {
|
|
|
2764
2762
|
},
|
|
2765
2763
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
2766
2764
|
setup(e, { emit: a }) {
|
|
2767
|
-
const t = e, l = a, [n, i,
|
|
2768
|
-
function r(
|
|
2769
|
-
l("combobox:change",
|
|
2765
|
+
const t = e, l = a, [n, i, d] = Z(3), o = k(!1), s = p(() => t.inputId || n.value);
|
|
2766
|
+
function r(S) {
|
|
2767
|
+
l("combobox:change", S.target.value), l("update:modelValue", S.target.value);
|
|
2770
2768
|
}
|
|
2771
2769
|
function f() {
|
|
2772
2770
|
l("combobox:change", ""), l("update:modelValue", "");
|
|
2773
2771
|
}
|
|
2774
|
-
function m(
|
|
2775
|
-
var
|
|
2776
|
-
(
|
|
2772
|
+
function m(S) {
|
|
2773
|
+
var I, h;
|
|
2774
|
+
(I = S.relatedTarget) != null && I.closest(`#${d.value}`) || (h = S.relatedTarget) != null && h.closest(`#${i.value}`) || (o.value = !1);
|
|
2777
2775
|
}
|
|
2778
|
-
function b(
|
|
2779
|
-
l("combobox:input",
|
|
2776
|
+
function b(S) {
|
|
2777
|
+
l("combobox:input", S.target.value), t.updateOnInput && l("update:modelValue", S.target.value);
|
|
2780
2778
|
}
|
|
2781
|
-
function S
|
|
2782
|
-
|
|
2779
|
+
function g(S) {
|
|
2780
|
+
S === !0 || S === !1 ? o.value = S : o.value = !o.value;
|
|
2783
2781
|
}
|
|
2784
|
-
return (
|
|
2782
|
+
return (S, I) => (u(), A(Vt, {
|
|
2785
2783
|
"anchor-id": c(i),
|
|
2786
2784
|
disabled: e.disabled,
|
|
2787
2785
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -2791,35 +2789,35 @@ const ln = {
|
|
|
2791
2789
|
multiselect: !1,
|
|
2792
2790
|
open: o.value,
|
|
2793
2791
|
options: e.options,
|
|
2794
|
-
"options-id": c(
|
|
2792
|
+
"options-id": c(d),
|
|
2795
2793
|
"selected-option": e.modelValue,
|
|
2796
|
-
"toggle-id":
|
|
2797
|
-
onClose:
|
|
2794
|
+
"toggle-id": S.$attrs.id || s.value,
|
|
2795
|
+
onClose: I[0] || (I[0] = (h) => o.value = !1),
|
|
2798
2796
|
onFocusout: m,
|
|
2799
|
-
"onUpdate:selectedOption":
|
|
2797
|
+
"onUpdate:selectedOption": I[1] || (I[1] = (h) => S.$emit("update:modelValue", h))
|
|
2800
2798
|
}, {
|
|
2801
2799
|
toggle: L(() => [
|
|
2802
|
-
D(
|
|
2803
|
-
id:
|
|
2800
|
+
D(Sn, z({
|
|
2801
|
+
id: S.$attrs.id || s.value,
|
|
2804
2802
|
"container-id": c(i),
|
|
2805
2803
|
disabled: e.disabled,
|
|
2806
2804
|
error: e.error,
|
|
2807
2805
|
"hint-id": e.hintId,
|
|
2808
2806
|
"model-value": e.displayValue || e.modelValue,
|
|
2809
2807
|
open: o.value,
|
|
2810
|
-
"options-id": c(
|
|
2808
|
+
"options-id": c(d),
|
|
2811
2809
|
placeholder: e.placeholder,
|
|
2812
2810
|
required: e.required,
|
|
2813
2811
|
onChange: r,
|
|
2814
2812
|
onClear: f,
|
|
2815
2813
|
onInput: b,
|
|
2816
|
-
onToggled:
|
|
2817
|
-
},
|
|
2814
|
+
onToggled: g
|
|
2815
|
+
}, S.$attrs), null, 16, ["id", "container-id", "disabled", "error", "hint-id", "model-value", "open", "options-id", "placeholder", "required"])
|
|
2818
2816
|
]),
|
|
2819
2817
|
_: 1
|
|
2820
2818
|
}, 8, ["anchor-id", "disabled", "dropdown-position", "dropdown-width", "helper-description", "helper-text", "open", "options", "options-id", "selected-option", "toggle-id"]));
|
|
2821
2819
|
}
|
|
2822
|
-
}),
|
|
2820
|
+
}), Ko = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2823
2821
|
__name: "BsDropdownComboboxField",
|
|
2824
2822
|
props: {
|
|
2825
2823
|
disabled: {
|
|
@@ -2887,22 +2885,22 @@ const ln = {
|
|
|
2887
2885
|
},
|
|
2888
2886
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
2889
2887
|
setup(e, { emit: a }) {
|
|
2890
|
-
const t = e, [l, n] =
|
|
2891
|
-
return (o,
|
|
2892
|
-
e.label || o.$slots.label ? (u(),
|
|
2888
|
+
const t = e, [l, n] = Z(2), i = p(() => t.error && t.errorMsg || t.hint || void 0), d = p(() => t.inputId || l.value);
|
|
2889
|
+
return (o, s) => (u(), v("div", z({ "data-component": "bs-dropdown-combobox-field" }, c(Y)(o.$attrs, c(ve)).remaining), [
|
|
2890
|
+
e.label || o.$slots.label ? (u(), A(ae, {
|
|
2893
2891
|
key: 0,
|
|
2894
|
-
for: o.$attrs.id ||
|
|
2892
|
+
for: o.$attrs.id || d.value,
|
|
2895
2893
|
disabled: e.disabled,
|
|
2896
2894
|
required: e.required
|
|
2897
2895
|
}, {
|
|
2898
2896
|
default: L(() => [
|
|
2899
2897
|
E(o.$slots, "label", {}, () => [
|
|
2900
|
-
|
|
2898
|
+
U(T(e.label), 1)
|
|
2901
2899
|
])
|
|
2902
2900
|
]),
|
|
2903
2901
|
_: 3
|
|
2904
2902
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
2905
|
-
D(
|
|
2903
|
+
D(Ot, z({
|
|
2906
2904
|
disabled: e.disabled,
|
|
2907
2905
|
"display-value": e.displayValue,
|
|
2908
2906
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -2911,17 +2909,17 @@ const ln = {
|
|
|
2911
2909
|
"helper-text": e.helperText,
|
|
2912
2910
|
"helper-description": e.helperDescription,
|
|
2913
2911
|
"hint-id": c(n),
|
|
2914
|
-
"input-id": o.$attrs.id ||
|
|
2912
|
+
"input-id": o.$attrs.id || d.value,
|
|
2915
2913
|
"model-value": e.modelValue,
|
|
2916
2914
|
options: e.options,
|
|
2917
2915
|
placeholder: e.placeholder,
|
|
2918
2916
|
required: e.required,
|
|
2919
2917
|
"update-on-input": e.updateOnInput,
|
|
2920
|
-
"onCombobox:change":
|
|
2921
|
-
"onCombobox:input":
|
|
2922
|
-
"onUpdate:modelValue":
|
|
2923
|
-
}, c(Y)(o.$attrs, c(
|
|
2924
|
-
i.value ? (u(),
|
|
2918
|
+
"onCombobox:change": s[0] || (s[0] = (r) => o.$emit("combobox:change", r)),
|
|
2919
|
+
"onCombobox:input": s[1] || (s[1] = (r) => o.$emit("combobox:input", r)),
|
|
2920
|
+
"onUpdate:modelValue": s[2] || (s[2] = (r) => o.$emit("update:modelValue", r))
|
|
2921
|
+
}, c(Y)(o.$attrs, c(ve)).filtered), null, 16, ["disabled", "display-value", "dropdown-position", "dropdown-width", "error", "helper-text", "helper-description", "hint-id", "input-id", "model-value", "options", "placeholder", "required", "update-on-input"]),
|
|
2922
|
+
i.value ? (u(), A(ge, {
|
|
2925
2923
|
key: 1,
|
|
2926
2924
|
error: e.error,
|
|
2927
2925
|
"error-msg": e.errorMsg,
|
|
@@ -2930,7 +2928,7 @@ const ln = {
|
|
|
2930
2928
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : C("", !0)
|
|
2931
2929
|
], 16));
|
|
2932
2930
|
}
|
|
2933
|
-
}), Ln = ["aria-activedescendant", "aria-label", "data-overflow", "id", "tabindex"],
|
|
2931
|
+
}), Ln = ["aria-activedescendant", "aria-label", "data-overflow", "id", "tabindex"], Fe = {
|
|
2934
2932
|
__name: "BsDropdownOptionList",
|
|
2935
2933
|
props: {
|
|
2936
2934
|
optionsId: {
|
|
@@ -2966,14 +2964,14 @@ const ln = {
|
|
|
2966
2964
|
"update:modelValue"
|
|
2967
2965
|
],
|
|
2968
2966
|
setup(e, { expose: a, emit: t }) {
|
|
2969
|
-
const l = e, n = t, i = k(null),
|
|
2970
|
-
|
|
2971
|
-
const h = [/^[a-zA-Z0-9]{1}$/],
|
|
2967
|
+
const l = e, n = t, i = k(null), d = k(null), o = k(-1), s = k(-1), r = k(null), f = k(!1), m = pe("dropdownEnter", k(!1)), b = pe("dropdownAfterEnter", k(!1)), g = pe("dropdownShown", k(!1));
|
|
2968
|
+
fe("optionsId", p(() => l.optionsId)), fe("handleOptionSelect", ye), pa(i, y, { childList: !0 }), he([" ", "Enter", "NumpadEnter"], ke, i), he(["ArrowDown", "ArrowUp", "Home", "End"], Ce);
|
|
2969
|
+
const h = [/^[a-zA-Z0-9]{1}$/], B = {
|
|
2972
2970
|
keys: "",
|
|
2973
2971
|
lastTyped: 0
|
|
2974
2972
|
};
|
|
2975
|
-
|
|
2976
|
-
|
|
2973
|
+
he(h, (O) => xe(O, B)), H(() => {
|
|
2974
|
+
y(), J(g.value);
|
|
2977
2975
|
}), j(
|
|
2978
2976
|
[m, () => {
|
|
2979
2977
|
var O;
|
|
@@ -2983,10 +2981,10 @@ const ln = {
|
|
|
2983
2981
|
(O || F > 0) && (f.value = i.value.scrollHeight > i.value.clientHeight);
|
|
2984
2982
|
}
|
|
2985
2983
|
), j(b, (O) => {
|
|
2986
|
-
O && (M(),
|
|
2987
|
-
}), j(
|
|
2988
|
-
const
|
|
2989
|
-
function
|
|
2984
|
+
O && (M(), V());
|
|
2985
|
+
}), j(g, (O) => J(O));
|
|
2986
|
+
const w = p(() => l.modelValue || l.selectedValue);
|
|
2987
|
+
function y() {
|
|
2990
2988
|
r.value = Array.from(
|
|
2991
2989
|
i.value.querySelectorAll('[data-component="bs-dropdown-option"]')
|
|
2992
2990
|
);
|
|
@@ -2994,13 +2992,13 @@ const ln = {
|
|
|
2994
2992
|
function M() {
|
|
2995
2993
|
i.value.getBoundingClientRect().bottom > window.innerHeight && i.value.scrollIntoView({ block: "nearest" });
|
|
2996
2994
|
}
|
|
2997
|
-
function
|
|
2995
|
+
function V() {
|
|
2998
2996
|
var O;
|
|
2999
2997
|
o.value > -1 && (M(), (O = r.value[o.value]) == null || O.scrollIntoView({ block: "nearest" }));
|
|
3000
2998
|
}
|
|
3001
2999
|
function q() {
|
|
3002
3000
|
var O, F;
|
|
3003
|
-
o.value > -1 && ((O = r.value[o.value]) == null || O.setAttribute("data-active", ""),
|
|
3001
|
+
o.value > -1 && ((O = r.value[o.value]) == null || O.setAttribute("data-active", ""), d.value = (F = r.value[o.value]) == null ? void 0 : F.id, V());
|
|
3004
3002
|
}
|
|
3005
3003
|
function R() {
|
|
3006
3004
|
var O;
|
|
@@ -3008,49 +3006,49 @@ const ln = {
|
|
|
3008
3006
|
}
|
|
3009
3007
|
function _() {
|
|
3010
3008
|
var O;
|
|
3011
|
-
o.value < 0 && (o.value = 0,
|
|
3009
|
+
o.value < 0 && (o.value = 0, d.value = (O = r.value[0]) == null ? void 0 : O.id), q();
|
|
3012
3010
|
}
|
|
3013
3011
|
function J(O) {
|
|
3014
3012
|
O ? ne() : me();
|
|
3015
3013
|
}
|
|
3016
3014
|
function ne() {
|
|
3017
3015
|
var O, F;
|
|
3018
|
-
l.multiselect || (
|
|
3019
|
-
(P) => P.getAttribute("data-value") === String(
|
|
3020
|
-
), !l.multiselect &&
|
|
3016
|
+
l.multiselect || (s.value = r.value.findIndex(
|
|
3017
|
+
(P) => P.getAttribute("data-value") === String(w.value)
|
|
3018
|
+
), !l.multiselect && s.value > -1 && ((O = r.value[s.value]) == null || O.setAttribute("data-selected", ""), (F = r.value[s.value]) == null || F.setAttribute("aria-selected", "true")), o.value = s.value);
|
|
3021
3019
|
}
|
|
3022
3020
|
function me() {
|
|
3023
3021
|
r.value.forEach((O) => {
|
|
3024
3022
|
O.removeAttribute("data-selected"), O.setAttribute("aria-selected", "false");
|
|
3025
|
-
}), R(),
|
|
3023
|
+
}), R(), s.value = -1, o.value = -1, d.value = null;
|
|
3026
3024
|
}
|
|
3027
3025
|
function ye(O) {
|
|
3028
3026
|
var P;
|
|
3029
3027
|
(P = O.querySelector("a")) == null || P.click();
|
|
3030
3028
|
let F = O.getAttribute("data-value");
|
|
3031
|
-
O.getAttribute("data-value-type") === "number" && (F = Number(F)),
|
|
3029
|
+
O.getAttribute("data-value-type") === "number" && (F = Number(F)), d.value = O.id, R(), n("optselected", F), n("update:modelValue", F), n("close");
|
|
3032
3030
|
}
|
|
3033
3031
|
function ke(O) {
|
|
3034
3032
|
ye(r.value[o.value]), O.preventDefault();
|
|
3035
3033
|
}
|
|
3036
3034
|
function Ce(O) {
|
|
3037
|
-
if (
|
|
3035
|
+
if (g.value)
|
|
3038
3036
|
switch (O.key) {
|
|
3039
3037
|
case "ArrowDown":
|
|
3040
|
-
|
|
3038
|
+
se("down"), O.preventDefault();
|
|
3041
3039
|
break;
|
|
3042
3040
|
case "ArrowUp":
|
|
3043
|
-
|
|
3041
|
+
se("up"), O.preventDefault();
|
|
3044
3042
|
break;
|
|
3045
3043
|
case "Home":
|
|
3046
|
-
|
|
3044
|
+
se("home"), O.preventDefault();
|
|
3047
3045
|
break;
|
|
3048
3046
|
case "End":
|
|
3049
|
-
|
|
3047
|
+
se("end"), O.preventDefault();
|
|
3050
3048
|
break;
|
|
3051
3049
|
}
|
|
3052
3050
|
}
|
|
3053
|
-
function
|
|
3051
|
+
function se(O) {
|
|
3054
3052
|
let F;
|
|
3055
3053
|
switch (O) {
|
|
3056
3054
|
case "up":
|
|
@@ -3069,7 +3067,7 @@ const ln = {
|
|
|
3069
3067
|
Se(F);
|
|
3070
3068
|
}
|
|
3071
3069
|
function xe(O, F) {
|
|
3072
|
-
if (!
|
|
3070
|
+
if (!g.value)
|
|
3073
3071
|
return;
|
|
3074
3072
|
F.keys = O.timeStamp - F.lastTyped > 500 ? O.key : F.keys + O.key, F.lastTyped = O.timeStamp;
|
|
3075
3073
|
const P = r.value.findIndex((K) => K.textContent.replaceAll(/[^a-zA-Z0-9]/g, "").toLowerCase().startsWith(F.keys));
|
|
@@ -3082,22 +3080,22 @@ const ln = {
|
|
|
3082
3080
|
activeIndex: o,
|
|
3083
3081
|
optionEls: r,
|
|
3084
3082
|
optionsRef: i,
|
|
3085
|
-
refreshOptions:
|
|
3083
|
+
refreshOptions: y,
|
|
3086
3084
|
setCurrentActive: q
|
|
3087
3085
|
}), (O, F) => (u(), v("ul", {
|
|
3088
3086
|
ref_key: "optionsRef",
|
|
3089
3087
|
ref: i,
|
|
3090
|
-
"aria-activedescendant":
|
|
3088
|
+
"aria-activedescendant": d.value || void 0,
|
|
3091
3089
|
"aria-label": e.label,
|
|
3092
3090
|
"aria-live": "polite",
|
|
3093
3091
|
class: "bs-dropdown-options",
|
|
3094
3092
|
"data-overflow": f.value,
|
|
3095
3093
|
id: e.optionsId,
|
|
3096
3094
|
role: "listbox",
|
|
3097
|
-
tabindex: c(
|
|
3095
|
+
tabindex: c(g) ? 0 : void 0,
|
|
3098
3096
|
onBlur: R,
|
|
3099
3097
|
onFocus: _,
|
|
3100
|
-
onMousedown: F[0] || (F[0] =
|
|
3098
|
+
onMousedown: F[0] || (F[0] = St(() => {
|
|
3101
3099
|
}, ["prevent"]))
|
|
3102
3100
|
}, [
|
|
3103
3101
|
E(O.$slots, "default")
|
|
@@ -3105,14 +3103,14 @@ const ln = {
|
|
|
3105
3103
|
}
|
|
3106
3104
|
}, Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3107
3105
|
__proto__: null,
|
|
3108
|
-
default:
|
|
3109
|
-
}, Symbol.toStringTag, { value: "Module" })), qn = { role: "separator" }, Pn = /* @__PURE__ */
|
|
3106
|
+
default: Fe
|
|
3107
|
+
}, Symbol.toStringTag, { value: "Module" })), qn = { role: "separator" }, Pn = /* @__PURE__ */ $("hr", null, null, -1), Mn = [
|
|
3110
3108
|
Pn
|
|
3111
|
-
],
|
|
3109
|
+
], Nn = {
|
|
3112
3110
|
key: 1,
|
|
3113
3111
|
role: "option",
|
|
3114
3112
|
"data-no-hover": "true"
|
|
3115
|
-
},
|
|
3113
|
+
}, Et = {
|
|
3116
3114
|
__name: "BsDropdownMultiselect",
|
|
3117
3115
|
props: {
|
|
3118
3116
|
focusOnOpen: {
|
|
@@ -3146,12 +3144,12 @@ const ln = {
|
|
|
3146
3144
|
"uncheck-option"
|
|
3147
3145
|
],
|
|
3148
3146
|
setup(e, { emit: a }) {
|
|
3149
|
-
const t = e, l = a, n = k(null), i = k([]),
|
|
3150
|
-
var
|
|
3151
|
-
return ((
|
|
3152
|
-
}),
|
|
3153
|
-
var
|
|
3154
|
-
return ((
|
|
3147
|
+
const t = e, l = a, n = k(null), i = k([]), d = k([]), o = p(() => {
|
|
3148
|
+
var I, h;
|
|
3149
|
+
return ((I = i.value) == null ? void 0 : I.length) && ((h = d.value) == null ? void 0 : h.length);
|
|
3150
|
+
}), s = p(() => {
|
|
3151
|
+
var I, h;
|
|
3152
|
+
return ((I = i.value) == null ? void 0 : I.length) || ((h = d.value) == null ? void 0 : h.length);
|
|
3155
3153
|
});
|
|
3156
3154
|
let r = !1;
|
|
3157
3155
|
j(() => t.options, () => {
|
|
@@ -3160,8 +3158,8 @@ const ln = {
|
|
|
3160
3158
|
() => t.selectedOptions,
|
|
3161
3159
|
b,
|
|
3162
3160
|
{ immediate: !0 }
|
|
3163
|
-
), j(() => t.shown, (
|
|
3164
|
-
|
|
3161
|
+
), j(() => t.shown, (I) => {
|
|
3162
|
+
I && t.focusOnOpen && Ae(f);
|
|
3165
3163
|
});
|
|
3166
3164
|
function f() {
|
|
3167
3165
|
n.value && (n.value.refreshOptions(), n.value.optionsRef.focus());
|
|
@@ -3169,28 +3167,28 @@ const ln = {
|
|
|
3169
3167
|
function m() {
|
|
3170
3168
|
n.value && (n.value.refreshOptions(), n.value.setCurrentActive());
|
|
3171
3169
|
}
|
|
3172
|
-
function b(
|
|
3173
|
-
const h = new Set(
|
|
3174
|
-
t.options.forEach((
|
|
3175
|
-
const M = { ...
|
|
3176
|
-
h.has(
|
|
3177
|
-
}), i.value =
|
|
3178
|
-
|
|
3170
|
+
function b(I = []) {
|
|
3171
|
+
const h = new Set(I), B = [], w = [];
|
|
3172
|
+
t.options.forEach((y) => {
|
|
3173
|
+
const M = { ...y }, V = `${t.optionsId}-${y.value}-cb`;
|
|
3174
|
+
h.has(y.value) ? (M.checkbox = { inputId: V, checked: !0 }, B.push(M)) : (M.checkbox = { inputId: V, checked: !1 }, w.push(M));
|
|
3175
|
+
}), i.value = B, Ae(() => {
|
|
3176
|
+
d.value = w, Ae(() => {
|
|
3179
3177
|
r && m(), r = !1;
|
|
3180
3178
|
});
|
|
3181
3179
|
});
|
|
3182
3180
|
}
|
|
3183
|
-
function
|
|
3184
|
-
const h = new Set(
|
|
3185
|
-
return t.options.forEach((
|
|
3186
|
-
h.has(
|
|
3187
|
-
}),
|
|
3181
|
+
function g(I = []) {
|
|
3182
|
+
const h = new Set(I), B = [];
|
|
3183
|
+
return t.options.forEach((w) => {
|
|
3184
|
+
h.has(w.value) && B.push(w.value);
|
|
3185
|
+
}), B;
|
|
3188
3186
|
}
|
|
3189
|
-
function
|
|
3187
|
+
function S(I) {
|
|
3190
3188
|
let h = [];
|
|
3191
|
-
t.selectedOptions.includes(
|
|
3189
|
+
t.selectedOptions.includes(I) ? (h = t.selectedOptions.filter((B) => B !== I), l("uncheck-option", I)) : (h = g([...t.selectedOptions, I]), l("check-option", I)), r = !0, l("update:selectedOptions", h);
|
|
3192
3190
|
}
|
|
3193
|
-
return (
|
|
3191
|
+
return (I, h) => (u(), A(Fe, {
|
|
3194
3192
|
ref_key: "optlist",
|
|
3195
3193
|
ref: n,
|
|
3196
3194
|
"aria-multiselectable": "true",
|
|
@@ -3199,33 +3197,33 @@ const ln = {
|
|
|
3199
3197
|
multiselect: "",
|
|
3200
3198
|
"options-id": e.optionsId,
|
|
3201
3199
|
shown: e.shown,
|
|
3202
|
-
"onUpdate:modelValue":
|
|
3200
|
+
"onUpdate:modelValue": S
|
|
3203
3201
|
}, {
|
|
3204
3202
|
default: L(() => [
|
|
3205
|
-
|
|
3203
|
+
s.value ? (u(), v(G, { key: 0 }, [
|
|
3206
3204
|
D(Pe, {
|
|
3207
3205
|
options: i.value,
|
|
3208
3206
|
"show-no-options": !1
|
|
3209
3207
|
}, null, 8, ["options"]),
|
|
3210
|
-
|
|
3211
|
-
[
|
|
3208
|
+
ue($("li", qn, Mn, 512), [
|
|
3209
|
+
[ce, o.value]
|
|
3212
3210
|
]),
|
|
3213
3211
|
D(Pe, {
|
|
3214
|
-
options:
|
|
3212
|
+
options: d.value,
|
|
3215
3213
|
"show-no-options": !1
|
|
3216
3214
|
}, null, 8, ["options"])
|
|
3217
|
-
], 64)) : (u(), v("li",
|
|
3218
|
-
E(
|
|
3219
|
-
|
|
3215
|
+
], 64)) : (u(), v("li", Nn, [
|
|
3216
|
+
E(I.$slots, "no-options", {}, () => [
|
|
3217
|
+
U("No options")
|
|
3220
3218
|
])
|
|
3221
3219
|
]))
|
|
3222
3220
|
]),
|
|
3223
3221
|
_: 3
|
|
3224
3222
|
}, 8, ["label", "options-id", "shown"]));
|
|
3225
3223
|
}
|
|
3226
|
-
},
|
|
3224
|
+
}, zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3227
3225
|
__proto__: null,
|
|
3228
|
-
default:
|
|
3226
|
+
default: Et
|
|
3229
3227
|
}, Symbol.toStringTag, { value: "Module" })), Rn = {
|
|
3230
3228
|
__name: "BsDropdownWithOptionsNew",
|
|
3231
3229
|
props: {
|
|
@@ -3308,10 +3306,10 @@ const ln = {
|
|
|
3308
3306
|
function i(o) {
|
|
3309
3307
|
l.value = !1, t("update:modelValue", o), t("close");
|
|
3310
3308
|
}
|
|
3311
|
-
function
|
|
3309
|
+
function d() {
|
|
3312
3310
|
l.value && (l.value = !1, t("close"));
|
|
3313
3311
|
}
|
|
3314
|
-
return (o,
|
|
3312
|
+
return (o, s) => (u(), A(c(lt), {
|
|
3315
3313
|
"anchor-id": e.anchorId,
|
|
3316
3314
|
breakout: e.breakout,
|
|
3317
3315
|
"container-id": e.containerId,
|
|
@@ -3322,20 +3320,20 @@ const ln = {
|
|
|
3322
3320
|
shown: e.shown,
|
|
3323
3321
|
"use-mobile-style": e.useMobileStyle,
|
|
3324
3322
|
width: e.width,
|
|
3325
|
-
onClose:
|
|
3326
|
-
onAfterEnter:
|
|
3323
|
+
onClose: d,
|
|
3324
|
+
onAfterEnter: s[0] || (s[0] = (r) => t("after-enter")),
|
|
3327
3325
|
onEnter: n,
|
|
3328
|
-
onAfterLeave:
|
|
3326
|
+
onAfterLeave: s[1] || (s[1] = (r) => t("after-leave"))
|
|
3329
3327
|
}, {
|
|
3330
3328
|
default: L(() => [
|
|
3331
|
-
D(c(
|
|
3329
|
+
D(c(Fe), {
|
|
3332
3330
|
label: e.label,
|
|
3333
3331
|
"model-value": e.modelValue,
|
|
3334
3332
|
"options-id": e.optionsId,
|
|
3335
3333
|
"prevent-tab": e.preventTab,
|
|
3336
3334
|
"type-to-focus": e.typeToFocus,
|
|
3337
3335
|
"onUpdate:modelValue": i,
|
|
3338
|
-
onClose:
|
|
3336
|
+
onClose: d
|
|
3339
3337
|
}, {
|
|
3340
3338
|
default: L(() => [
|
|
3341
3339
|
E(o.$slots, "default")
|
|
@@ -3346,7 +3344,7 @@ const ln = {
|
|
|
3346
3344
|
_: 3
|
|
3347
3345
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
|
|
3348
3346
|
}
|
|
3349
|
-
},
|
|
3347
|
+
}, Lt = {
|
|
3350
3348
|
__name: "BsDropdownWithOptions",
|
|
3351
3349
|
props: {
|
|
3352
3350
|
anchorId: {
|
|
@@ -3460,20 +3458,20 @@ const ln = {
|
|
|
3460
3458
|
"after-leave"
|
|
3461
3459
|
],
|
|
3462
3460
|
setup(e, { emit: a }) {
|
|
3463
|
-
const t = e, l = a, { transition: n } = Le(t), i = p(() => t.width === "toggle" ? "anchor" : t.width),
|
|
3461
|
+
const t = e, l = a, { transition: n } = Le(t), i = p(() => t.width === "toggle" ? "anchor" : t.width), d = p(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = p(() => t.toggleId ? t.toggleId : t.anchorId), s = p(() => t.selectedValue || t.modelValue);
|
|
3464
3462
|
function r(f) {
|
|
3465
3463
|
l("optselected", f), l("update:modelValue", f);
|
|
3466
3464
|
}
|
|
3467
|
-
return (f, m) => (u(),
|
|
3465
|
+
return (f, m) => (u(), A(Rn, {
|
|
3468
3466
|
"anchor-id": o.value,
|
|
3469
3467
|
breakout: e.breakout,
|
|
3470
3468
|
"container-id": e.containerId,
|
|
3471
3469
|
"helper-description": e.helperDescription,
|
|
3472
3470
|
"helper-text": e.helperText,
|
|
3473
3471
|
label: e.label,
|
|
3474
|
-
"model-value":
|
|
3472
|
+
"model-value": s.value,
|
|
3475
3473
|
"options-id": e.optionsId,
|
|
3476
|
-
position:
|
|
3474
|
+
position: d.value,
|
|
3477
3475
|
preloaded: e.preloaded,
|
|
3478
3476
|
"prevent-tab": e.preventTab,
|
|
3479
3477
|
shown: c(n),
|
|
@@ -3490,10 +3488,10 @@ const ln = {
|
|
|
3490
3488
|
_: 3
|
|
3491
3489
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "label", "model-value", "options-id", "position", "preloaded", "prevent-tab", "shown", "use-mobile-style", "width"]));
|
|
3492
3490
|
}
|
|
3493
|
-
}, Fn = ["data-size"], jn = { class: "bs-empty-state-icon" },
|
|
3491
|
+
}, Fn = ["data-size"], jn = { class: "bs-empty-state-icon" }, Wn = { class: "bs-empty-state-title" }, Un = {
|
|
3494
3492
|
key: 0,
|
|
3495
3493
|
class: "bs-empty-state-description"
|
|
3496
|
-
},
|
|
3494
|
+
}, Yo = {
|
|
3497
3495
|
__name: "BsEmptyState",
|
|
3498
3496
|
props: {
|
|
3499
3497
|
description: {
|
|
@@ -3520,23 +3518,23 @@ const ln = {
|
|
|
3520
3518
|
class: "bs-empty-state",
|
|
3521
3519
|
"data-size": e.size
|
|
3522
3520
|
}, [
|
|
3523
|
-
|
|
3521
|
+
$("div", jn, [
|
|
3524
3522
|
E(l.$slots, "icon", {}, () => [
|
|
3525
|
-
(u(),
|
|
3523
|
+
(u(), A(te(c(t)), { size: "" }))
|
|
3526
3524
|
])
|
|
3527
3525
|
]),
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
e.size !== "xs" ? (u(), v("p",
|
|
3526
|
+
$("div", null, [
|
|
3527
|
+
$("p", Wn, T(e.title), 1),
|
|
3528
|
+
e.size !== "xs" ? (u(), v("p", Un, [
|
|
3531
3529
|
E(l.$slots, "description", {}, () => [
|
|
3532
|
-
|
|
3530
|
+
U(T(e.description), 1)
|
|
3533
3531
|
])
|
|
3534
3532
|
])) : C("", !0),
|
|
3535
3533
|
E(l.$slots, "call-to-action")
|
|
3536
3534
|
])
|
|
3537
3535
|
], 8, Fn));
|
|
3538
3536
|
}
|
|
3539
|
-
}, Gn = ["data-absolute", "data-position", "data-shown", "data-size"], Hn = { class: "bs-flyout-close-container" },
|
|
3537
|
+
}, Gn = ["data-absolute", "data-position", "data-shown", "data-size"], Hn = { class: "bs-flyout-close-container" }, Zo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3540
3538
|
__name: "BsFlyout",
|
|
3541
3539
|
props: {
|
|
3542
3540
|
absolute: {
|
|
@@ -3573,17 +3571,17 @@ const ln = {
|
|
|
3573
3571
|
emits: ["close"],
|
|
3574
3572
|
setup(e, { emit: a }) {
|
|
3575
3573
|
const t = e, l = a, n = k(null), i = p(() => document.getElementById(t.toggleId));
|
|
3576
|
-
|
|
3577
|
-
function
|
|
3574
|
+
Ct([n, i], d), he(["Escape"], d);
|
|
3575
|
+
function d() {
|
|
3578
3576
|
t.shown && l("close");
|
|
3579
3577
|
}
|
|
3580
|
-
return (o,
|
|
3578
|
+
return (o, s) => (u(), A(qe, {
|
|
3581
3579
|
name: "bs-flyout",
|
|
3582
3580
|
preloaded: e.preloaded,
|
|
3583
3581
|
shown: e.shown
|
|
3584
3582
|
}, {
|
|
3585
3583
|
default: L(() => [
|
|
3586
|
-
|
|
3584
|
+
$("div", z({
|
|
3587
3585
|
ref_key: "flyout",
|
|
3588
3586
|
ref: n,
|
|
3589
3587
|
class: "bs-flyout",
|
|
@@ -3592,12 +3590,12 @@ const ln = {
|
|
|
3592
3590
|
"data-shown": e.shown,
|
|
3593
3591
|
"data-size": e.size
|
|
3594
3592
|
}, o.$attrs), [
|
|
3595
|
-
|
|
3596
|
-
|
|
3593
|
+
$("div", Hn, [
|
|
3594
|
+
$("button", {
|
|
3597
3595
|
type: "button",
|
|
3598
3596
|
title: "Close",
|
|
3599
3597
|
"aria-label": "Close",
|
|
3600
|
-
onClick:
|
|
3598
|
+
onClick: d
|
|
3601
3599
|
}, [
|
|
3602
3600
|
D(c(Be))
|
|
3603
3601
|
])
|
|
@@ -3608,18 +3606,18 @@ const ln = {
|
|
|
3608
3606
|
_: 3
|
|
3609
3607
|
}, 8, ["preloaded", "shown"]));
|
|
3610
3608
|
}
|
|
3611
|
-
}), Kn = ["view-box"], Yn = ["id"], Zn = ["offset", "stop-color"],
|
|
3609
|
+
}), Kn = ["view-box"], Yn = ["id"], Zn = ["offset", "stop-color"], Xo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3612
3610
|
__name: "BsIconGradientWrapper",
|
|
3613
3611
|
setup(e) {
|
|
3614
3612
|
const a = k(null), t = k(null), l = [
|
|
3615
3613
|
{ offset: 0.1326, color: "#EE282A" },
|
|
3616
3614
|
{ offset: 0.5466, color: "#1C0087" },
|
|
3617
3615
|
{ offset: 0.9715, color: "#0086EA" }
|
|
3618
|
-
], [n] =
|
|
3616
|
+
], [n] = Z();
|
|
3619
3617
|
return H(() => {
|
|
3620
3618
|
t.value = a.value.querySelector("svg").getAttribute("viewBox") || "0 0 0 0";
|
|
3621
|
-
}), (i,
|
|
3622
|
-
|
|
3619
|
+
}), (i, d) => (u(), v(G, null, [
|
|
3620
|
+
$("span", z({
|
|
3623
3621
|
ref_key: "svgWrapperRef",
|
|
3624
3622
|
ref: a,
|
|
3625
3623
|
class: "bs-icon-gradient-wrapper",
|
|
@@ -3633,7 +3631,7 @@ const ln = {
|
|
|
3633
3631
|
width: "0",
|
|
3634
3632
|
height: "0"
|
|
3635
3633
|
}, [
|
|
3636
|
-
|
|
3634
|
+
$("linearGradient", {
|
|
3637
3635
|
id: c(n),
|
|
3638
3636
|
x1: "0",
|
|
3639
3637
|
y1: "0",
|
|
@@ -3641,7 +3639,7 @@ const ln = {
|
|
|
3641
3639
|
y2: "100%",
|
|
3642
3640
|
"gradient-units": "userSpaceOnUse"
|
|
3643
3641
|
}, [
|
|
3644
|
-
(u(), v(G, null, ee(l, (o) =>
|
|
3642
|
+
(u(), v(G, null, ee(l, (o) => $("stop", {
|
|
3645
3643
|
key: o.offset,
|
|
3646
3644
|
offset: o.offset,
|
|
3647
3645
|
"stop-color": o.color
|
|
@@ -3650,7 +3648,7 @@ const ln = {
|
|
|
3650
3648
|
], 8, Kn))
|
|
3651
3649
|
], 64));
|
|
3652
3650
|
}
|
|
3653
|
-
}),
|
|
3651
|
+
}), Qo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3654
3652
|
__name: "BsInputField",
|
|
3655
3653
|
props: {
|
|
3656
3654
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -3697,41 +3695,41 @@ const ln = {
|
|
|
3697
3695
|
},
|
|
3698
3696
|
emits: ["update:modelValue"],
|
|
3699
3697
|
setup(e, { emit: a }) {
|
|
3700
|
-
const t = e, [l, n] =
|
|
3698
|
+
const t = e, [l, n] = Z(2), i = p(() => ve.concat(t.passAttrs.split(",")).concat("type")), d = p(() => {
|
|
3701
3699
|
var r, f;
|
|
3702
3700
|
return ((f = (r = t.hints) == null ? void 0 : r.join) == null ? void 0 : f.call(r, `
|
|
3703
3701
|
`)) || t.hints;
|
|
3704
|
-
}), o = p(() => t.error && t.errorMsg || t.hint ||
|
|
3705
|
-
return (r, f) => (u(), v("div",
|
|
3706
|
-
e.label || r.$slots.label ? (u(),
|
|
3702
|
+
}), o = p(() => t.error && t.errorMsg || t.hint || d.value || void 0), s = p(() => t.inputId || l.value);
|
|
3703
|
+
return (r, f) => (u(), v("div", z({ "data-component": "bs-input-field" }, c(Y)(r.$attrs, i.value).remaining), [
|
|
3704
|
+
e.label || r.$slots.label ? (u(), A(ae, {
|
|
3707
3705
|
key: 0,
|
|
3708
|
-
for: r.$attrs.id ||
|
|
3706
|
+
for: r.$attrs.id || s.value,
|
|
3709
3707
|
disabled: e.disabled,
|
|
3710
3708
|
required: e.required
|
|
3711
3709
|
}, {
|
|
3712
3710
|
default: L(() => [
|
|
3713
3711
|
E(r.$slots, "label", {}, () => [
|
|
3714
|
-
|
|
3712
|
+
U(T(e.label), 1)
|
|
3715
3713
|
])
|
|
3716
3714
|
]),
|
|
3717
3715
|
_: 3
|
|
3718
3716
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
3719
|
-
D(Ie,
|
|
3717
|
+
D(Ie, z({
|
|
3720
3718
|
disabled: e.disabled,
|
|
3721
3719
|
error: e.error,
|
|
3722
3720
|
"hint-id": c(n),
|
|
3723
|
-
id: r.$attrs.id ||
|
|
3721
|
+
id: r.$attrs.id || s.value,
|
|
3724
3722
|
placeholder: e.placeholder,
|
|
3725
3723
|
required: e.required,
|
|
3726
3724
|
type: e.type,
|
|
3727
3725
|
value: e.value || e.modelValue,
|
|
3728
3726
|
"onUpdate:modelValue": f[0] || (f[0] = (m) => r.$emit("update:modelValue", m))
|
|
3729
3727
|
}, c(Y)(r.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
|
|
3730
|
-
o.value ? (u(),
|
|
3728
|
+
o.value ? (u(), A(ge, {
|
|
3731
3729
|
key: 1,
|
|
3732
3730
|
error: e.error,
|
|
3733
3731
|
"error-msg": e.errorMsg,
|
|
3734
|
-
hint: e.hint ||
|
|
3732
|
+
hint: e.hint || d.value,
|
|
3735
3733
|
"hint-id": c(n)
|
|
3736
3734
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : C("", !0)
|
|
3737
3735
|
], 16));
|
|
@@ -3763,7 +3761,7 @@ const ln = {
|
|
|
3763
3761
|
X: "🇽",
|
|
3764
3762
|
Y: "🇾",
|
|
3765
3763
|
Z: "🇿"
|
|
3766
|
-
},
|
|
3764
|
+
}, We = {
|
|
3767
3765
|
data: {
|
|
3768
3766
|
allCountries: null,
|
|
3769
3767
|
byCountryCode: null,
|
|
@@ -3789,8 +3787,8 @@ const ln = {
|
|
|
3789
3787
|
* @returns {Country[]} an array of country objects
|
|
3790
3788
|
*/
|
|
3791
3789
|
initSourceData() {
|
|
3792
|
-
return this.data.allCountries || (this.data.allCountries =
|
|
3793
|
-
const a =
|
|
3790
|
+
return this.data.allCountries || (this.data.allCountries = da().map((e) => {
|
|
3791
|
+
const a = ua(e), t = ht[a[0]] + ht[a[1]] || "";
|
|
3794
3792
|
return {
|
|
3795
3793
|
label: `+${e}`,
|
|
3796
3794
|
flag: t,
|
|
@@ -3807,7 +3805,7 @@ const ln = {
|
|
|
3807
3805
|
}, Xn = ["id", "aria-controls", "aria-expanded", "aria-label", "disabled"], Qn = { key: 0 }, Jn = {
|
|
3808
3806
|
"aria-hidden": "true",
|
|
3809
3807
|
style: { width: "1.25rem" }
|
|
3810
|
-
}, _n = { "aria-hidden": "true" },
|
|
3808
|
+
}, _n = { "aria-hidden": "true" }, Jo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3811
3809
|
__name: "BsInputPhone",
|
|
3812
3810
|
props: {
|
|
3813
3811
|
deferValidation: {
|
|
@@ -3869,70 +3867,70 @@ const ln = {
|
|
|
3869
3867
|
"Escape",
|
|
3870
3868
|
"Home",
|
|
3871
3869
|
"Tab"
|
|
3872
|
-
],
|
|
3870
|
+
], d = k(null), o = k(1), s = k([]), r = k(null), [
|
|
3873
3871
|
f,
|
|
3874
3872
|
m,
|
|
3875
3873
|
b,
|
|
3876
|
-
|
|
3877
|
-
] =
|
|
3874
|
+
g
|
|
3875
|
+
] = Z(4), S = k(!1), I = k(""), h = k(""), B = k(!1), w = k(!1), y = k(!0);
|
|
3878
3876
|
a({
|
|
3879
|
-
validationErr:
|
|
3877
|
+
validationErr: B,
|
|
3880
3878
|
validationErrMsg: h
|
|
3881
3879
|
});
|
|
3882
|
-
const M = p(() =>
|
|
3880
|
+
const M = p(() => I.value ? `+${o.value}${I.value}` : ""), V = p(() => `Country code: ${o.value}. Click to change.`), q = p(() => y.value ? l.errorMsg || h.value : ""), R = p(() => l.error || B.value), _ = p(() => l.hint || R.value && q.value), J = p(() => y.value && R.value);
|
|
3883
3881
|
j(M, (P) => {
|
|
3884
3882
|
n("update:modelValue", P), F(P);
|
|
3885
|
-
}), j(() => l.modelValue, ne), xe(), H(() =>
|
|
3883
|
+
}), j(() => l.modelValue, ne), xe(), H(() => S.value = !0);
|
|
3886
3884
|
function ne(P, K) {
|
|
3887
|
-
P === "" && P !== K && (
|
|
3885
|
+
P === "" && P !== K && (I.value = "");
|
|
3888
3886
|
}
|
|
3889
3887
|
function me() {
|
|
3890
3888
|
var P;
|
|
3891
|
-
|
|
3889
|
+
w.value && (w.value = !1, (P = d.value) == null || P.focus());
|
|
3892
3890
|
}
|
|
3893
3891
|
function ye(P) {
|
|
3894
3892
|
var K;
|
|
3895
|
-
o.value = P,
|
|
3893
|
+
o.value = P, w.value = !1, (K = d.value) == null || K.focus(), O(P);
|
|
3896
3894
|
}
|
|
3897
3895
|
function ke() {
|
|
3898
|
-
l.deferValidation && (
|
|
3896
|
+
l.deferValidation && (y.value = !0), n("input-blur");
|
|
3899
3897
|
}
|
|
3900
3898
|
function Ce(P) {
|
|
3901
|
-
|
|
3899
|
+
I.value = P.target.value, l.deferValidation && (y.value = !1);
|
|
3902
3900
|
}
|
|
3903
|
-
function
|
|
3904
|
-
var K,
|
|
3905
|
-
!((
|
|
3901
|
+
function se(P) {
|
|
3902
|
+
var K, X;
|
|
3903
|
+
!((X = (K = P.key) == null ? void 0 : K.match) != null && X.call(K, /[0-9]/)) && !i.includes(P.key) && !P.ctrlKey && !P.metaKey && P.preventDefault();
|
|
3906
3904
|
}
|
|
3907
3905
|
function xe() {
|
|
3908
|
-
|
|
3906
|
+
We.initSourceData(), Se(), O(o.value), F(M.value);
|
|
3909
3907
|
}
|
|
3910
3908
|
function Se() {
|
|
3911
|
-
var K,
|
|
3909
|
+
var K, X;
|
|
3912
3910
|
let P = ut(l.modelValue);
|
|
3913
|
-
P.valid || P.countryCode && ((
|
|
3911
|
+
P.valid || P.countryCode && ((X = (K = l.modelValue) == null ? void 0 : K.startsWith) != null && X.call(K, "+")) ? (o.value = P.countryCode, I.value = P.number.significant) : I.value = l.modelValue, s.value = We.data.allCountries.map((Te) => ({
|
|
3914
3912
|
...Te,
|
|
3915
3913
|
isSelected: o.value === Te
|
|
3916
3914
|
}));
|
|
3917
3915
|
}
|
|
3918
3916
|
function O(P) {
|
|
3919
|
-
r.value =
|
|
3917
|
+
r.value = We.getCountryByCountryCode(P);
|
|
3920
3918
|
}
|
|
3921
3919
|
function F(P) {
|
|
3922
|
-
|
|
3920
|
+
B.value = P ? !ut(P).valid : !1, h.value = B.value ? "Invalid phone number" : "";
|
|
3923
3921
|
}
|
|
3924
|
-
return (P, K) => (u(), v("div",
|
|
3922
|
+
return (P, K) => (u(), v("div", z({
|
|
3925
3923
|
class: "bs-input-phone",
|
|
3926
3924
|
"data-component": "bs-input-phone"
|
|
3927
|
-
}, c(Y)(P.$attrs, c(
|
|
3925
|
+
}, c(Y)(P.$attrs, c(ve)).remaining), [
|
|
3928
3926
|
D(ae, {
|
|
3929
|
-
for: P.$attrs.id || e.inputId || c(
|
|
3927
|
+
for: P.$attrs.id || e.inputId || c(g),
|
|
3930
3928
|
required: e.required,
|
|
3931
3929
|
disabled: e.disabled,
|
|
3932
3930
|
class: ie({ "visually-hidden": e.hideLabel })
|
|
3933
3931
|
}, {
|
|
3934
3932
|
default: L(() => [
|
|
3935
|
-
|
|
3933
|
+
U(T(e.label), 1)
|
|
3936
3934
|
]),
|
|
3937
3935
|
_: 1
|
|
3938
3936
|
}, 8, ["for", "required", "disabled", "class"]),
|
|
@@ -3943,72 +3941,72 @@ const ln = {
|
|
|
3943
3941
|
variant: "inner-bordered"
|
|
3944
3942
|
}, {
|
|
3945
3943
|
default: L(() => {
|
|
3946
|
-
var
|
|
3944
|
+
var X;
|
|
3947
3945
|
return [
|
|
3948
|
-
|
|
3946
|
+
$("button", {
|
|
3949
3947
|
id: c(f),
|
|
3950
3948
|
ref_key: "countryCodesToggle",
|
|
3951
|
-
ref:
|
|
3949
|
+
ref: d,
|
|
3952
3950
|
"aria-controls": c(m),
|
|
3953
|
-
"aria-expanded":
|
|
3951
|
+
"aria-expanded": w.value,
|
|
3954
3952
|
"aria-haspopup": "listbox",
|
|
3955
|
-
"aria-label":
|
|
3953
|
+
"aria-label": V.value,
|
|
3956
3954
|
disabled: e.disabled,
|
|
3957
3955
|
type: "button",
|
|
3958
|
-
onClick: K[0] || (K[0] = (Te) =>
|
|
3956
|
+
onClick: K[0] || (K[0] = (Te) => w.value = !w.value)
|
|
3959
3957
|
}, [
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
D(c(
|
|
3958
|
+
$("span", null, T((X = r.value) == null ? void 0 : X.flag), 1),
|
|
3959
|
+
$("span", null, "+" + T(o.value), 1),
|
|
3960
|
+
D(c(jt), { size: "sm" })
|
|
3963
3961
|
], 8, Xn),
|
|
3964
|
-
D(Ie,
|
|
3965
|
-
"input-id": P.$attrs.id || e.inputId || c(
|
|
3962
|
+
D(Ie, z({
|
|
3963
|
+
"input-id": P.$attrs.id || e.inputId || c(g),
|
|
3966
3964
|
disabled: e.disabled,
|
|
3967
3965
|
"hint-id": c(b),
|
|
3968
3966
|
placeholder: e.placeholder,
|
|
3969
|
-
value:
|
|
3967
|
+
value: I.value,
|
|
3970
3968
|
"data-autowidth": "",
|
|
3971
3969
|
type: "tel"
|
|
3972
|
-
}, c(Y)(P.$attrs, c(
|
|
3970
|
+
}, c(Y)(P.$attrs, c(ve)).filtered, {
|
|
3973
3971
|
onInput: Ce,
|
|
3974
3972
|
onFocusout: ke,
|
|
3975
|
-
onKeydown:
|
|
3973
|
+
onKeydown: se
|
|
3976
3974
|
}), null, 16, ["input-id", "disabled", "hint-id", "placeholder", "value"])
|
|
3977
3975
|
];
|
|
3978
3976
|
}),
|
|
3979
3977
|
_: 1
|
|
3980
3978
|
}, 8, ["disabled", "error"]),
|
|
3981
|
-
|
|
3979
|
+
ue(D(ge, {
|
|
3982
3980
|
error: R.value,
|
|
3983
3981
|
"error-msg": q.value,
|
|
3984
3982
|
hint: e.hint,
|
|
3985
3983
|
"hint-id": c(b)
|
|
3986
3984
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
3987
|
-
[
|
|
3985
|
+
[ce, _.value]
|
|
3988
3986
|
]),
|
|
3989
|
-
|
|
3990
|
-
D(
|
|
3987
|
+
S.value ? (u(), v("div", Qn, [
|
|
3988
|
+
D(Lt, {
|
|
3991
3989
|
"anchor-id": c(f),
|
|
3992
3990
|
"helper-text": "Country Code",
|
|
3993
3991
|
label: "Country Code",
|
|
3994
3992
|
"model-value": o.value,
|
|
3995
3993
|
"options-id": c(m),
|
|
3996
3994
|
preloaded: "",
|
|
3997
|
-
shown:
|
|
3995
|
+
shown: w.value,
|
|
3998
3996
|
width: "content",
|
|
3999
3997
|
onClose: me,
|
|
4000
3998
|
"onUpdate:modelValue": ye
|
|
4001
3999
|
}, {
|
|
4002
4000
|
default: L(() => [
|
|
4003
|
-
|
|
4004
|
-
"aria-label":
|
|
4005
|
-
key:
|
|
4006
|
-
value: `${
|
|
4001
|
+
S.value ? (u(!0), v(G, { key: 0 }, ee(s.value, (X) => (u(), A(ot, {
|
|
4002
|
+
"aria-label": X.value,
|
|
4003
|
+
key: X.value,
|
|
4004
|
+
value: `${X.value}`,
|
|
4007
4005
|
variant: "2-col"
|
|
4008
4006
|
}, {
|
|
4009
4007
|
default: L(() => [
|
|
4010
|
-
|
|
4011
|
-
|
|
4008
|
+
$("span", Jn, T(X == null ? void 0 : X.flag), 1),
|
|
4009
|
+
$("span", _n, T(X.label), 1)
|
|
4012
4010
|
]),
|
|
4013
4011
|
_: 2
|
|
4014
4012
|
}, 1032, ["aria-label", "value"]))), 128)) : C("", !0)
|
|
@@ -4063,41 +4061,41 @@ const ln = {
|
|
|
4063
4061
|
},
|
|
4064
4062
|
emits: ["clear", "update:modelValue"],
|
|
4065
4063
|
setup(e, { emit: a }) {
|
|
4066
|
-
const t = e, l = p(() =>
|
|
4067
|
-
return (i,
|
|
4064
|
+
const t = e, l = p(() => ve.concat(t.passAttrs.split(","))), n = p(() => !t.disabled && !t.hideClear && t.variant !== "filter");
|
|
4065
|
+
return (i, d) => (u(), A(De, z({
|
|
4068
4066
|
class: "bs-input-search",
|
|
4069
4067
|
"data-component": "bs-input-search",
|
|
4070
4068
|
"data-variant": e.variant,
|
|
4071
4069
|
disabled: e.disabled
|
|
4072
4070
|
}, c(Y)(i.$attrs, l.value).remaining), {
|
|
4073
4071
|
default: L(() => [
|
|
4074
|
-
e.hideSearchIcon ? C("", !0) : (u(),
|
|
4075
|
-
D(Ie,
|
|
4072
|
+
e.hideSearchIcon ? C("", !0) : (u(), A(c(Wt), { key: 0 })),
|
|
4073
|
+
D(Ie, z({
|
|
4076
4074
|
"data-autowidth": "",
|
|
4077
4075
|
disabled: e.disabled,
|
|
4078
4076
|
"input-id": i.$attrs.id || e.inputId,
|
|
4079
4077
|
placeholder: e.placeholder,
|
|
4080
4078
|
value: e.value || e.modelValue
|
|
4081
4079
|
}, c(Y)(i.$attrs, l.value).filtered, {
|
|
4082
|
-
"onUpdate:modelValue":
|
|
4080
|
+
"onUpdate:modelValue": d[0] || (d[0] = (o) => i.$emit("update:modelValue", o))
|
|
4083
4081
|
}), null, 16, ["disabled", "input-id", "placeholder", "value"]),
|
|
4084
|
-
|
|
4082
|
+
ue($("button", {
|
|
4085
4083
|
title: "Clear",
|
|
4086
4084
|
type: "button",
|
|
4087
|
-
onClick:
|
|
4085
|
+
onClick: d[1] || (d[1] = (o) => i.$emit("clear"))
|
|
4088
4086
|
}, [
|
|
4089
4087
|
D(c(Be), { size: "sm" })
|
|
4090
4088
|
], 512), [
|
|
4091
|
-
[
|
|
4089
|
+
[ce, n.value]
|
|
4092
4090
|
])
|
|
4093
4091
|
]),
|
|
4094
4092
|
_: 1
|
|
4095
4093
|
}, 16, ["data-variant", "disabled"]));
|
|
4096
4094
|
}
|
|
4097
|
-
}), tl = ["data-size", "data-variant"], al = ["stroke"], nl = { key: 0 }, ll = /* @__PURE__ */
|
|
4098
|
-
/* @__PURE__ */
|
|
4099
|
-
/* @__PURE__ */
|
|
4100
|
-
/* @__PURE__ */
|
|
4095
|
+
}), tl = ["data-size", "data-variant"], al = ["stroke"], nl = { key: 0 }, ll = /* @__PURE__ */ $("linearGradient", { id: "bs-spinner-gradient" }, [
|
|
4096
|
+
/* @__PURE__ */ $("stop", { offset: "0%" }),
|
|
4097
|
+
/* @__PURE__ */ $("stop", { offset: "49%" }),
|
|
4098
|
+
/* @__PURE__ */ $("stop", { offset: "100%" })
|
|
4101
4099
|
], -1), ol = [
|
|
4102
4100
|
ll
|
|
4103
4101
|
], vt = {
|
|
@@ -4126,8 +4124,8 @@ const ln = {
|
|
|
4126
4124
|
viewBox: "0 0 100 100",
|
|
4127
4125
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4128
4126
|
}, [
|
|
4129
|
-
|
|
4130
|
-
|
|
4127
|
+
$("title", null, T(e.label), 1),
|
|
4128
|
+
$("circle", {
|
|
4131
4129
|
cx: "50",
|
|
4132
4130
|
cy: "50",
|
|
4133
4131
|
pathLength: "100",
|
|
@@ -4137,7 +4135,7 @@ const ln = {
|
|
|
4137
4135
|
e.variant === "gradient" ? (u(), v("defs", nl, ol)) : C("", !0)
|
|
4138
4136
|
], 8, tl));
|
|
4139
4137
|
}
|
|
4140
|
-
}, il = ["id"], rl = { style: { display: "flex", "justify-content": "center" } }, sl = { style: { display: "flex", "justify-content": "center" } },
|
|
4138
|
+
}, il = ["id"], rl = { style: { display: "flex", "justify-content": "center" } }, sl = { style: { display: "flex", "justify-content": "center" } }, _o = {
|
|
4141
4139
|
__name: "BsInputTypeahead",
|
|
4142
4140
|
props: {
|
|
4143
4141
|
characterThreshold: {
|
|
@@ -4209,24 +4207,24 @@ const ln = {
|
|
|
4209
4207
|
},
|
|
4210
4208
|
emits: ["update:inputValue", "update:optionsValue"],
|
|
4211
4209
|
setup(e, { emit: a }) {
|
|
4212
|
-
const t = e, l = a, n = k(!1), i = k(!1), [
|
|
4210
|
+
const t = e, l = a, n = k(!1), i = k(!1), [d] = Z();
|
|
4213
4211
|
let o = [];
|
|
4214
4212
|
j(() => t.inputValue, () => {
|
|
4215
4213
|
i.value ? i.value = !1 : h();
|
|
4216
4214
|
});
|
|
4217
|
-
const
|
|
4215
|
+
const s = p(() => t.typeaheadId || d.value), r = p(() => `${s.value}-input-container`), f = p(() => `${s.value}-input`), m = p(() => `${s.value}-options`), b = p(() => t.multiselect ? Array.isArray(t.optionsValue) ? t.optionsValue : [t.optionsValue] : t.optionsValue), g = p(() => {
|
|
4218
4216
|
if (n.value) {
|
|
4219
|
-
let
|
|
4217
|
+
let V = t.options;
|
|
4220
4218
|
const q = t.inputValue.toLowerCase(), R = t.filterType === "includes" ? "includes" : "startsWith";
|
|
4221
|
-
return t.inputValue.length >= t.characterThreshold && (
|
|
4219
|
+
return t.inputValue.length >= t.characterThreshold && (V = S(V, q, R), V = V.slice(0, t.maxOptions), V = I(V, q, R), o = V), V;
|
|
4222
4220
|
} else
|
|
4223
4221
|
return o;
|
|
4224
4222
|
});
|
|
4225
|
-
function
|
|
4226
|
-
return t.internalFiltering ?
|
|
4223
|
+
function S(V, q, R) {
|
|
4224
|
+
return t.internalFiltering ? V.filter((_) => _.label.toLowerCase()[R](q)) : V;
|
|
4227
4225
|
}
|
|
4228
|
-
function
|
|
4229
|
-
return
|
|
4226
|
+
function I(V, q, R) {
|
|
4227
|
+
return V.map((_) => {
|
|
4230
4228
|
let J = _.label;
|
|
4231
4229
|
if (q !== "") {
|
|
4232
4230
|
const ne = R === "includes" ? "gi" : "i", me = new RegExp(`(${q})`, ne);
|
|
@@ -4238,41 +4236,41 @@ const ln = {
|
|
|
4238
4236
|
function h() {
|
|
4239
4237
|
t.showDropdownOnFocus || t.inputValue.length >= t.characterThreshold ? n.value = !0 : n.value = !1;
|
|
4240
4238
|
}
|
|
4241
|
-
function
|
|
4239
|
+
function B() {
|
|
4242
4240
|
l("update:inputValue", ""), t.multiselect || l("update:optionsValue", ""), document.getElementById(f.value).focus();
|
|
4243
4241
|
}
|
|
4244
|
-
function
|
|
4242
|
+
function w(V) {
|
|
4245
4243
|
i.value = !0;
|
|
4246
|
-
const q =
|
|
4247
|
-
l("update:inputValue", q.label), l("update:optionsValue",
|
|
4244
|
+
const q = g.value.find((R) => R.value === V);
|
|
4245
|
+
l("update:inputValue", q.label), l("update:optionsValue", V);
|
|
4248
4246
|
}
|
|
4249
|
-
function
|
|
4250
|
-
const q = [...b.value,
|
|
4247
|
+
function y(V) {
|
|
4248
|
+
const q = [...b.value, V];
|
|
4251
4249
|
l("update:optionsValue", q);
|
|
4252
4250
|
}
|
|
4253
|
-
function M(
|
|
4254
|
-
const q = b.value.filter((R) => R !==
|
|
4251
|
+
function M(V) {
|
|
4252
|
+
const q = b.value.filter((R) => R !== V);
|
|
4255
4253
|
l("update:optionsValue", q);
|
|
4256
4254
|
}
|
|
4257
|
-
return (
|
|
4258
|
-
e.label ||
|
|
4255
|
+
return (V, q) => (u(), v(G, null, [
|
|
4256
|
+
e.label || V.$slots.label ? (u(), A(ae, {
|
|
4259
4257
|
key: 0,
|
|
4260
4258
|
for: f.value,
|
|
4261
4259
|
disabled: e.disabled,
|
|
4262
4260
|
required: e.required
|
|
4263
4261
|
}, {
|
|
4264
4262
|
default: L(() => [
|
|
4265
|
-
E(
|
|
4266
|
-
|
|
4263
|
+
E(V.$slots, "label", {}, () => [
|
|
4264
|
+
U(T(e.label), 1)
|
|
4267
4265
|
])
|
|
4268
4266
|
]),
|
|
4269
4267
|
_: 3
|
|
4270
4268
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
4271
|
-
|
|
4269
|
+
$("div", {
|
|
4272
4270
|
id: r.value,
|
|
4273
4271
|
class: "typeahead-search-wrapper"
|
|
4274
4272
|
}, [
|
|
4275
|
-
D(el,
|
|
4273
|
+
D(el, z({
|
|
4276
4274
|
"aria-controls": m.value,
|
|
4277
4275
|
"aria-expanded": n.value,
|
|
4278
4276
|
"aria-haspopup": "listbox",
|
|
@@ -4285,8 +4283,8 @@ const ln = {
|
|
|
4285
4283
|
placeholder: e.placeholder,
|
|
4286
4284
|
role: "combobox",
|
|
4287
4285
|
value: e.inputValue
|
|
4288
|
-
},
|
|
4289
|
-
onClear:
|
|
4286
|
+
}, V.$attrs, {
|
|
4287
|
+
onClear: B,
|
|
4290
4288
|
onFocusin: h,
|
|
4291
4289
|
"onUpdate:modelValue": q[0] || (q[0] = (R) => l("update:inputValue", R))
|
|
4292
4290
|
}), null, 16, ["aria-controls", "aria-expanded", "disabled", "hide-clear", "hide-search-icon", "input-id", "placeholder", "value"])
|
|
@@ -4300,21 +4298,21 @@ const ln = {
|
|
|
4300
4298
|
onClose: q[2] || (q[2] = (R) => n.value = !1)
|
|
4301
4299
|
}, {
|
|
4302
4300
|
default: L(() => [
|
|
4303
|
-
e.multiselect ? (u(),
|
|
4301
|
+
e.multiselect ? (u(), A(Et, {
|
|
4304
4302
|
key: 0,
|
|
4305
4303
|
"focus-on-open": !1,
|
|
4306
4304
|
label: e.label,
|
|
4307
|
-
options:
|
|
4305
|
+
options: g.value,
|
|
4308
4306
|
"options-id": m.value,
|
|
4309
4307
|
"selected-options": b.value,
|
|
4310
4308
|
shown: n.value,
|
|
4311
|
-
onCheckOption:
|
|
4309
|
+
onCheckOption: y,
|
|
4312
4310
|
onUncheckOption: M
|
|
4313
|
-
},
|
|
4311
|
+
}, Ze({ _: 2 }, [
|
|
4314
4312
|
e.loading ? {
|
|
4315
4313
|
name: "no-options",
|
|
4316
4314
|
fn: L(() => [
|
|
4317
|
-
|
|
4315
|
+
$("span", rl, [
|
|
4318
4316
|
D(vt, { size: "sm" })
|
|
4319
4317
|
])
|
|
4320
4318
|
]),
|
|
@@ -4322,25 +4320,25 @@ const ln = {
|
|
|
4322
4320
|
} : {
|
|
4323
4321
|
name: "no-options",
|
|
4324
4322
|
fn: L(() => [
|
|
4325
|
-
|
|
4323
|
+
U("No results found")
|
|
4326
4324
|
]),
|
|
4327
4325
|
key: "1"
|
|
4328
4326
|
}
|
|
4329
|
-
]), 1032, ["label", "options", "options-id", "selected-options", "shown"])) : (u(),
|
|
4327
|
+
]), 1032, ["label", "options", "options-id", "selected-options", "shown"])) : (u(), A(Fe, {
|
|
4330
4328
|
key: 1,
|
|
4331
4329
|
label: e.label,
|
|
4332
4330
|
"model-value": b.value,
|
|
4333
4331
|
"options-id": m.value,
|
|
4334
4332
|
shown: n.value,
|
|
4335
|
-
"onUpdate:modelValue":
|
|
4333
|
+
"onUpdate:modelValue": w,
|
|
4336
4334
|
onClose: q[1] || (q[1] = (R) => n.value = !1)
|
|
4337
4335
|
}, {
|
|
4338
4336
|
default: L(() => [
|
|
4339
|
-
D(Pe, { options:
|
|
4337
|
+
D(Pe, { options: g.value }, Ze({ _: 2 }, [
|
|
4340
4338
|
e.loading ? {
|
|
4341
4339
|
name: "no-options",
|
|
4342
4340
|
fn: L(() => [
|
|
4343
|
-
|
|
4341
|
+
$("span", sl, [
|
|
4344
4342
|
D(vt, { size: "sm" })
|
|
4345
4343
|
])
|
|
4346
4344
|
]),
|
|
@@ -4348,7 +4346,7 @@ const ln = {
|
|
|
4348
4346
|
} : {
|
|
4349
4347
|
name: "no-options",
|
|
4350
4348
|
fn: L(() => [
|
|
4351
|
-
|
|
4349
|
+
U("No results found")
|
|
4352
4350
|
]),
|
|
4353
4351
|
key: "1"
|
|
4354
4352
|
}
|
|
@@ -4361,13 +4359,13 @@ const ln = {
|
|
|
4361
4359
|
}, 8, ["anchor-id", "shown"])
|
|
4362
4360
|
], 64));
|
|
4363
4361
|
}
|
|
4364
|
-
}, dl = ["data-size", "data-variant"], ul = /* @__PURE__ */
|
|
4362
|
+
}, dl = ["data-size", "data-variant"], ul = /* @__PURE__ */ $("span", null, null, -1), cl = /* @__PURE__ */ $("span", null, null, -1), fl = /* @__PURE__ */ $("span", null, null, -1), pl = /* @__PURE__ */ $("span", null, null, -1), hl = /* @__PURE__ */ $("span", { class: "visually-hidden" }, "Loading", -1), vl = [
|
|
4365
4363
|
ul,
|
|
4366
4364
|
cl,
|
|
4367
4365
|
fl,
|
|
4368
4366
|
pl,
|
|
4369
4367
|
hl
|
|
4370
|
-
],
|
|
4368
|
+
], ei = {
|
|
4371
4369
|
__name: "BsLoader",
|
|
4372
4370
|
props: {
|
|
4373
4371
|
size: {
|
|
@@ -4426,15 +4424,15 @@ const ln = {
|
|
|
4426
4424
|
function i() {
|
|
4427
4425
|
n.value ? document.body.setAttribute("data-scroll", "false") : document.body.removeAttribute("data-scroll");
|
|
4428
4426
|
}
|
|
4429
|
-
return (
|
|
4427
|
+
return (d, o) => (u(), A(qe, {
|
|
4430
4428
|
name: "bs-overlay",
|
|
4431
4429
|
shown: c(n),
|
|
4432
4430
|
preloaded: e.preloaded,
|
|
4433
|
-
onAfterEnter: o[0] || (o[0] = (
|
|
4434
|
-
onAfterLeave: o[1] || (o[1] = (
|
|
4431
|
+
onAfterEnter: o[0] || (o[0] = (s) => l("after-enter")),
|
|
4432
|
+
onAfterLeave: o[1] || (o[1] = (s) => l("after-leave"))
|
|
4435
4433
|
}, {
|
|
4436
4434
|
default: L(() => [
|
|
4437
|
-
|
|
4435
|
+
$("div", {
|
|
4438
4436
|
class: "bs-overlay",
|
|
4439
4437
|
"data-shown": c(n)
|
|
4440
4438
|
}, null, 8, ml)
|
|
@@ -4442,7 +4440,7 @@ const ln = {
|
|
|
4442
4440
|
_: 1
|
|
4443
4441
|
}, 8, ["shown", "preloaded"]));
|
|
4444
4442
|
}
|
|
4445
|
-
}, gl = ["id", "role", "aria-labelledby", "data-shown"], yl = ["id"],
|
|
4443
|
+
}, gl = ["id", "role", "aria-labelledby", "data-shown"], yl = ["id"], ti = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4446
4444
|
__name: "BsModal",
|
|
4447
4445
|
props: {
|
|
4448
4446
|
modalId: {
|
|
@@ -4487,17 +4485,17 @@ const ln = {
|
|
|
4487
4485
|
},
|
|
4488
4486
|
emits: ["close", "after-enter", "after-leave"],
|
|
4489
4487
|
setup(e, { emit: a }) {
|
|
4490
|
-
const t = e, l = a, { transition: n } = Le(t), [i] =
|
|
4491
|
-
let
|
|
4492
|
-
const o = k(null),
|
|
4488
|
+
const t = e, l = a, { transition: n } = Le(t), [i] = Z();
|
|
4489
|
+
let d = !1;
|
|
4490
|
+
const o = k(null), s = (m) => {
|
|
4493
4491
|
o.value && m.target.closest(".bs-overlay") && l("close", t.modalId);
|
|
4494
4492
|
};
|
|
4495
4493
|
H(() => {
|
|
4496
|
-
document.addEventListener("click",
|
|
4494
|
+
document.addEventListener("click", s);
|
|
4497
4495
|
}), $e(() => {
|
|
4498
|
-
document.removeEventListener("click",
|
|
4499
|
-
}),
|
|
4500
|
-
|
|
4496
|
+
document.removeEventListener("click", s);
|
|
4497
|
+
}), he(["Escape"], () => {
|
|
4498
|
+
d && l("close", t.modalId);
|
|
4501
4499
|
});
|
|
4502
4500
|
const r = () => !t.title && t.closeButton, f = () => t.title && t.closeButton;
|
|
4503
4501
|
return (m, b) => (u(), v(G, null, [
|
|
@@ -4512,12 +4510,12 @@ const ln = {
|
|
|
4512
4510
|
name: "bs-modal",
|
|
4513
4511
|
preloaded: e.preloaded,
|
|
4514
4512
|
shown: c(n),
|
|
4515
|
-
onAfterEnter: b[1] || (b[1] = (
|
|
4516
|
-
onAfterLeave: b[2] || (b[2] = (
|
|
4517
|
-
onEnter: b[3] || (b[3] = (
|
|
4513
|
+
onAfterEnter: b[1] || (b[1] = (g) => l("after-enter")),
|
|
4514
|
+
onAfterLeave: b[2] || (b[2] = (g) => l("after-leave")),
|
|
4515
|
+
onEnter: b[3] || (b[3] = (g) => zt(d) ? d.value = !0 : d = !0)
|
|
4518
4516
|
}, {
|
|
4519
4517
|
default: L(() => [
|
|
4520
|
-
|
|
4518
|
+
$("div", z({
|
|
4521
4519
|
id: e.modalId,
|
|
4522
4520
|
class: "bs-modal",
|
|
4523
4521
|
role: e.alert ? "alertdialog" : "dialog",
|
|
@@ -4539,13 +4537,13 @@ const ln = {
|
|
|
4539
4537
|
key: 0,
|
|
4540
4538
|
id: c(i),
|
|
4541
4539
|
class: "modal-title"
|
|
4542
|
-
},
|
|
4540
|
+
}, T(e.title), 9, yl)) : C("", !0),
|
|
4543
4541
|
e.closeButton ? (u(), v("button", {
|
|
4544
4542
|
key: 1,
|
|
4545
4543
|
type: "button",
|
|
4546
4544
|
title: "Close Modal",
|
|
4547
4545
|
"aria-label": "Close Modal",
|
|
4548
|
-
onClick: b[0] || (b[0] = (
|
|
4546
|
+
onClick: b[0] || (b[0] = (g) => l("close", e.modalId))
|
|
4549
4547
|
}, [
|
|
4550
4548
|
D(c(Be), { class: "close-button" })
|
|
4551
4549
|
])) : C("", !0)
|
|
@@ -4563,10 +4561,10 @@ const ln = {
|
|
|
4563
4561
|
}, $l = ["aria-label", "title", "disabled"], Bl = { key: 0 }, Il = ["aria-label", "title", "disabled"], kl = { key: 0 }, Cl = {
|
|
4564
4562
|
key: 1,
|
|
4565
4563
|
class: "bs-pagination-page-numbers"
|
|
4566
|
-
}, xl = ["title", "data-selected", "onClick"], Tl = { key: 2 }, Al = { key: 3 }, Vl = /* @__PURE__ */
|
|
4564
|
+
}, xl = ["title", "data-selected", "onClick"], Tl = { key: 2 }, Al = { key: 3 }, Vl = /* @__PURE__ */ $("span", null, "Results Per Page:", -1), Ol = { class: "bs-pagination-results-numbers" }, El = ["data-selected", "disabled", "onClick"], Ll = {
|
|
4567
4565
|
key: 5,
|
|
4568
4566
|
class: "bs-pagination-carets"
|
|
4569
|
-
}, Dl = ["aria-label", "title", "disabled"], ql = { key: 0 }, Pl = ["aria-label", "title", "disabled"], Ml = { key: 0 },
|
|
4567
|
+
}, Dl = ["aria-label", "title", "disabled"], ql = { key: 0 }, Pl = ["aria-label", "title", "disabled"], Ml = { key: 0 }, ai = {
|
|
4570
4568
|
__name: "BsPagination",
|
|
4571
4569
|
props: {
|
|
4572
4570
|
// Used for all
|
|
@@ -4654,23 +4652,23 @@ const ln = {
|
|
|
4654
4652
|
setup(e, { emit: a }) {
|
|
4655
4653
|
const t = e, l = a, n = k(null);
|
|
4656
4654
|
H(() => {
|
|
4657
|
-
i.value ? n.value = i.value : t.variant === "results" ? n.value =
|
|
4655
|
+
i.value ? n.value = i.value : t.variant === "results" ? n.value = I.value[0] : n.value = 1;
|
|
4658
4656
|
});
|
|
4659
4657
|
const i = p(() => t.modelValue || t.selection);
|
|
4660
4658
|
j(() => t.selection, (h) => {
|
|
4661
4659
|
n.value = h;
|
|
4662
4660
|
}), j(() => t.modelValue, (h) => {
|
|
4663
4661
|
n.value = h;
|
|
4664
|
-
}), j(n, (h,
|
|
4665
|
-
|
|
4662
|
+
}), j(n, (h, B) => {
|
|
4663
|
+
B !== null && (l("selchange", h), l("update:modelValue", h));
|
|
4666
4664
|
});
|
|
4667
|
-
const
|
|
4665
|
+
const d = p(() => {
|
|
4668
4666
|
if (t.variant === "group")
|
|
4669
4667
|
return Math.ceil(t.itemsCount / t.itemsPerGroup);
|
|
4670
4668
|
if (t.variant === "base")
|
|
4671
4669
|
return t.pageCount;
|
|
4672
4670
|
}), o = p(() => t.variant === "base" ? t.centerDisplay === "text" ? "group" : void 0 : t.variant);
|
|
4673
|
-
function
|
|
4671
|
+
function s() {
|
|
4674
4672
|
n.value = 1;
|
|
4675
4673
|
}
|
|
4676
4674
|
function r() {
|
|
@@ -4679,26 +4677,26 @@ const ln = {
|
|
|
4679
4677
|
function f() {
|
|
4680
4678
|
n.value = Math.min(
|
|
4681
4679
|
n.value + 1,
|
|
4682
|
-
|
|
4680
|
+
d.value
|
|
4683
4681
|
);
|
|
4684
4682
|
}
|
|
4685
4683
|
function m() {
|
|
4686
|
-
n.value =
|
|
4684
|
+
n.value = d.value;
|
|
4687
4685
|
}
|
|
4688
4686
|
const b = p(() => {
|
|
4689
4687
|
if (t.pageCount <= t.pageRange)
|
|
4690
4688
|
return [...Array(t.pageCount + 1).keys()].slice(1);
|
|
4691
|
-
const h = [1],
|
|
4692
|
-
let
|
|
4693
|
-
|
|
4694
|
-
for (let M =
|
|
4689
|
+
const h = [1], B = (t.pageRange - 1) / 2;
|
|
4690
|
+
let w = n.value - B, y = n.value + B;
|
|
4691
|
+
w < 1 && (y += 1 - w, w = 1), y > t.pageCount && (w -= y - t.pageCount, y = t.pageCount), w = Math.max(w, 2), y = Math.min(y, t.pageCount - 1), w > 2 && h.push(t.breakText);
|
|
4692
|
+
for (let M = w; M <= y; M++)
|
|
4695
4693
|
h.push(M);
|
|
4696
|
-
return
|
|
4697
|
-
}),
|
|
4698
|
-
const h = (n.value - 1) * t.itemsPerGroup + 1,
|
|
4699
|
-
return `${t.centerLabel ?? "Results"} ${h} - ${
|
|
4700
|
-
}),
|
|
4701
|
-
return (h,
|
|
4694
|
+
return y < t.pageCount - 1 && h.push(t.breakText), h.push(t.pageCount), h;
|
|
4695
|
+
}), g = p(() => `${t.centerLabel ?? "Page"} ${n.value} of ${d.value}`), S = p(() => {
|
|
4696
|
+
const h = (n.value - 1) * t.itemsPerGroup + 1, B = Math.min(h - 1 + t.itemsPerGroup, t.itemsCount);
|
|
4697
|
+
return `${t.centerLabel ?? "Results"} ${h} - ${B} of ${t.itemsCount}`;
|
|
4698
|
+
}), I = p(() => t.resultsIncrements.split(",").map((h) => parseInt(h)));
|
|
4699
|
+
return (h, B) => (u(), v("div", {
|
|
4702
4700
|
class: "bs-pagination",
|
|
4703
4701
|
"data-variant": o.value,
|
|
4704
4702
|
"data-fixed": t.fixed
|
|
@@ -4711,12 +4709,12 @@ const ln = {
|
|
|
4711
4709
|
"aria-label": e.firstPageText ? void 0 : "First Page",
|
|
4712
4710
|
title: e.firstPageText,
|
|
4713
4711
|
disabled: n.value === 1,
|
|
4714
|
-
onClick:
|
|
4712
|
+
onClick: s
|
|
4715
4713
|
}, [
|
|
4716
4714
|
D(c(Ut)),
|
|
4717
|
-
e.firstPageText ? (u(), v("span", Bl,
|
|
4715
|
+
e.firstPageText ? (u(), v("span", Bl, T(e.firstPageText), 1)) : C("", !0)
|
|
4718
4716
|
], 10, $l)) : C("", !0),
|
|
4719
|
-
|
|
4717
|
+
$("button", {
|
|
4720
4718
|
type: "button",
|
|
4721
4719
|
class: ie(e.prevPageText ? "bs-pagination-word-caret" : void 0),
|
|
4722
4720
|
"aria-label": e.prevPageText ? void 0 : "Previous Page",
|
|
@@ -4724,44 +4722,44 @@ const ln = {
|
|
|
4724
4722
|
disabled: n.value === 1,
|
|
4725
4723
|
onClick: r
|
|
4726
4724
|
}, [
|
|
4727
|
-
D(c(
|
|
4728
|
-
e.prevPageText ? (u(), v("span", kl,
|
|
4725
|
+
D(c(It)),
|
|
4726
|
+
e.prevPageText ? (u(), v("span", kl, T(e.prevPageText), 1)) : C("", !0)
|
|
4729
4727
|
], 10, Il)
|
|
4730
4728
|
])) : C("", !0),
|
|
4731
4729
|
e.variant === "base" && e.centerDisplay === "numbers" ? (u(), v("div", Cl, [
|
|
4732
|
-
(u(!0), v(G, null, ee(b.value, (
|
|
4733
|
-
key: `page-${
|
|
4730
|
+
(u(!0), v(G, null, ee(b.value, (w) => (u(), v("button", {
|
|
4731
|
+
key: `page-${w}-button`,
|
|
4734
4732
|
type: "button",
|
|
4735
|
-
title: `Page ${
|
|
4736
|
-
"data-selected":
|
|
4737
|
-
onClick: (
|
|
4738
|
-
},
|
|
4733
|
+
title: `Page ${w}`,
|
|
4734
|
+
"data-selected": w === n.value,
|
|
4735
|
+
onClick: (y) => n.value = w
|
|
4736
|
+
}, T(w), 9, xl))), 128))
|
|
4739
4737
|
])) : C("", !0),
|
|
4740
|
-
t.variant === "base" && t.centerDisplay === "text" ? (u(), v("span", Tl,
|
|
4741
|
-
t.variant === "group" ? (u(), v("span", Al,
|
|
4738
|
+
t.variant === "base" && t.centerDisplay === "text" ? (u(), v("span", Tl, T(g.value), 1)) : C("", !0),
|
|
4739
|
+
t.variant === "group" ? (u(), v("span", Al, T(S.value), 1)) : C("", !0),
|
|
4742
4740
|
t.variant === "results" ? (u(), v(G, { key: 4 }, [
|
|
4743
4741
|
Vl,
|
|
4744
|
-
|
|
4745
|
-
(u(!0), v(G, null, ee(
|
|
4742
|
+
$("div", Ol, [
|
|
4743
|
+
(u(!0), v(G, null, ee(I.value, (w) => (u(), v("button", {
|
|
4746
4744
|
type: "button",
|
|
4747
|
-
key: `results-${
|
|
4748
|
-
"data-selected":
|
|
4749
|
-
disabled: n.value ===
|
|
4750
|
-
onClick: (
|
|
4751
|
-
},
|
|
4745
|
+
key: `results-${w}`,
|
|
4746
|
+
"data-selected": w === n.value,
|
|
4747
|
+
disabled: n.value === w,
|
|
4748
|
+
onClick: (y) => n.value = w
|
|
4749
|
+
}, T(w), 9, El))), 128))
|
|
4752
4750
|
])
|
|
4753
4751
|
], 64)) : C("", !0),
|
|
4754
4752
|
e.variant === "base" || e.variant === "group" ? (u(), v("div", Ll, [
|
|
4755
|
-
|
|
4753
|
+
$("button", {
|
|
4756
4754
|
type: "button",
|
|
4757
4755
|
class: ie(e.nextPageText ? "bs-pagination-word-caret" : void 0),
|
|
4758
4756
|
"aria-label": e.nextPageText ? void 0 : "Next Page",
|
|
4759
4757
|
title: e.nextPageText,
|
|
4760
|
-
disabled: n.value ===
|
|
4758
|
+
disabled: n.value === d.value,
|
|
4761
4759
|
onClick: f
|
|
4762
4760
|
}, [
|
|
4763
|
-
e.nextPageText ? (u(), v("span", ql,
|
|
4764
|
-
D(c(
|
|
4761
|
+
e.nextPageText ? (u(), v("span", ql, T(e.nextPageText), 1)) : C("", !0),
|
|
4762
|
+
D(c(Bt))
|
|
4765
4763
|
], 10, Dl),
|
|
4766
4764
|
e.showFirstLastButtons ? (u(), v("button", {
|
|
4767
4765
|
key: 0,
|
|
@@ -4769,16 +4767,16 @@ const ln = {
|
|
|
4769
4767
|
class: ie(e.lastPageText ? "bs-pagination-word-caret" : void 0),
|
|
4770
4768
|
"aria-label": e.lastPageText ? void 0 : "Last Page",
|
|
4771
4769
|
title: e.lastPageText,
|
|
4772
|
-
disabled: n.value ===
|
|
4770
|
+
disabled: n.value === d.value,
|
|
4773
4771
|
onClick: m
|
|
4774
4772
|
}, [
|
|
4775
|
-
e.lastPageText ? (u(), v("span", Ml,
|
|
4776
|
-
D(c(
|
|
4773
|
+
e.lastPageText ? (u(), v("span", Ml, T(e.lastPageText), 1)) : C("", !0),
|
|
4774
|
+
D(c(Gt))
|
|
4777
4775
|
], 10, Pl)) : C("", !0)
|
|
4778
4776
|
])) : C("", !0)
|
|
4779
4777
|
], 8, Sl));
|
|
4780
4778
|
}
|
|
4781
|
-
},
|
|
4779
|
+
}, Nl = ["data-truncate"], ni = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4782
4780
|
__name: "BsPill",
|
|
4783
4781
|
props: {
|
|
4784
4782
|
active: { type: Boolean, default: !1 },
|
|
@@ -4802,32 +4800,32 @@ const ln = {
|
|
|
4802
4800
|
}
|
|
4803
4801
|
},
|
|
4804
4802
|
setup(e) {
|
|
4805
|
-
const a = e, { onLinkClick: t } =
|
|
4806
|
-
return (o,
|
|
4803
|
+
const a = e, { onLinkClick: t } = Re(a), l = re(), { rootTag: n, attrsToBind: i, hrefUrl: d } = ze(a, l, "span");
|
|
4804
|
+
return (o, s) => (u(), A(te(c(n)), z({
|
|
4807
4805
|
class: "bs-pill",
|
|
4808
4806
|
"data-active": e.active,
|
|
4809
4807
|
"data-component": "bs-pill",
|
|
4810
4808
|
"data-status": e.status || void 0,
|
|
4811
4809
|
"data-variant": e.variant || void 0,
|
|
4812
4810
|
disabled: e.disabled,
|
|
4813
|
-
".href": c(
|
|
4811
|
+
".href": c(d)
|
|
4814
4812
|
}, c(i), { onClick: c(t) }), {
|
|
4815
4813
|
default: L(() => [
|
|
4816
|
-
|
|
4814
|
+
$("span", { "data-truncate": e.truncate }, [
|
|
4817
4815
|
E(o.$slots, "default")
|
|
4818
|
-
], 8,
|
|
4816
|
+
], 8, Nl)
|
|
4819
4817
|
]),
|
|
4820
4818
|
_: 3
|
|
4821
4819
|
}, 48, ["data-active", "data-status", "data-variant", "disabled", ".href", "onClick"]));
|
|
4822
4820
|
}
|
|
4823
|
-
}),
|
|
4821
|
+
}), zl = { class: "bs-profile-details" }, Rl = {
|
|
4824
4822
|
class: "bs-profile-name",
|
|
4825
4823
|
"data-size": "sm",
|
|
4826
4824
|
"data-weight": "bold"
|
|
4827
4825
|
}, Fl = {
|
|
4828
4826
|
key: 1,
|
|
4829
4827
|
"data-weight": "bold"
|
|
4830
|
-
}, jl = { key: 2 },
|
|
4828
|
+
}, jl = { key: 2 }, Wl = { key: 3 }, Ul = {
|
|
4831
4829
|
key: 4,
|
|
4832
4830
|
"data-icon": "true"
|
|
4833
4831
|
}, Gl = {
|
|
@@ -4848,39 +4846,39 @@ const ln = {
|
|
|
4848
4846
|
emits: ["action-toggled"],
|
|
4849
4847
|
setup(e, { emit: a }) {
|
|
4850
4848
|
const t = e, l = a, { icon: n } = Ve(t, "actionIcon"), { icon: i } = Ve(t, "miscMetaIcon");
|
|
4851
|
-
function
|
|
4849
|
+
function d(o) {
|
|
4852
4850
|
o.target.tagName === "BUTTON" && (o.preventDefault(), o.stopImmediatePropagation(), l("action-toggled"));
|
|
4853
4851
|
}
|
|
4854
|
-
return (o,
|
|
4852
|
+
return (o, s) => (u(), v("div", zl, [
|
|
4855
4853
|
e.action || o.$slots.action ? (u(), v("button", {
|
|
4856
4854
|
key: 0,
|
|
4857
4855
|
"data-icon": "true",
|
|
4858
|
-
onClick:
|
|
4856
|
+
onClick: d
|
|
4859
4857
|
}, [
|
|
4860
4858
|
E(o.$slots, "action", {}, () => [
|
|
4861
|
-
e.actionIcon ? (u(),
|
|
4859
|
+
e.actionIcon ? (u(), A(te(c(n) ? c(n) : "span"), {
|
|
4862
4860
|
key: 0,
|
|
4863
4861
|
class: "bs-icon"
|
|
4864
4862
|
})) : C("", !0),
|
|
4865
|
-
|
|
4863
|
+
U(" " + T(e.action), 1)
|
|
4866
4864
|
])
|
|
4867
4865
|
])) : C("", !0),
|
|
4868
|
-
|
|
4869
|
-
e.company ? (u(), v("span", Fl,
|
|
4870
|
-
e.jobTitle ? (u(), v("span", jl,
|
|
4871
|
-
e.email ? (u(), v("span",
|
|
4872
|
-
e.miscMeta || o.$slots.misc ? (u(), v("span",
|
|
4866
|
+
$("span", Rl, T(e.profileName), 1),
|
|
4867
|
+
e.company ? (u(), v("span", Fl, T(e.company), 1)) : C("", !0),
|
|
4868
|
+
e.jobTitle ? (u(), v("span", jl, T(e.jobTitle), 1)) : C("", !0),
|
|
4869
|
+
e.email ? (u(), v("span", Wl, T(e.email), 1)) : C("", !0),
|
|
4870
|
+
e.miscMeta || o.$slots.misc ? (u(), v("span", Ul, [
|
|
4873
4871
|
E(o.$slots, "misc", {}, () => [
|
|
4874
|
-
e.miscMetaIcon ? (u(),
|
|
4872
|
+
e.miscMetaIcon ? (u(), A(te(c(i) ? c(i) : "span"), {
|
|
4875
4873
|
key: 0,
|
|
4876
4874
|
class: "bs-icon"
|
|
4877
4875
|
})) : C("", !0),
|
|
4878
|
-
|
|
4876
|
+
U(" " + T(e.miscMeta), 1)
|
|
4879
4877
|
])
|
|
4880
4878
|
])) : C("", !0)
|
|
4881
4879
|
]));
|
|
4882
4880
|
}
|
|
4883
|
-
},
|
|
4881
|
+
}, li = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4884
4882
|
__name: "BsProfile",
|
|
4885
4883
|
props: {
|
|
4886
4884
|
layout: {
|
|
@@ -4910,14 +4908,14 @@ const ln = {
|
|
|
4910
4908
|
},
|
|
4911
4909
|
emits: ["action-toggled"],
|
|
4912
4910
|
setup(e, { emit: a }) {
|
|
4913
|
-
const t = e, l = a, n =
|
|
4914
|
-
return (r, f) => (u(),
|
|
4911
|
+
const t = e, l = a, n = re(), { onLinkClick: i } = Re(t), { rootTag: d, attrsToBind: o, hrefUrl: s } = ze(t, n, "div");
|
|
4912
|
+
return (r, f) => (u(), A(te(c(d)), z({
|
|
4915
4913
|
class: "bs-profile",
|
|
4916
|
-
".href": c(
|
|
4914
|
+
".href": c(s),
|
|
4917
4915
|
"data-layout": e.layout
|
|
4918
4916
|
}, c(o), { onClick: c(i) }), {
|
|
4919
4917
|
default: L(() => [
|
|
4920
|
-
D(
|
|
4918
|
+
D(At, {
|
|
4921
4919
|
src: e.imageSrc,
|
|
4922
4920
|
size: e.imageSize,
|
|
4923
4921
|
initials: e.initials,
|
|
@@ -4948,7 +4946,7 @@ const ln = {
|
|
|
4948
4946
|
}, 48, [".href", "data-layout", "onClick"]));
|
|
4949
4947
|
}
|
|
4950
4948
|
});
|
|
4951
|
-
function
|
|
4949
|
+
function Dt(e) {
|
|
4952
4950
|
const a = p(() => {
|
|
4953
4951
|
var n;
|
|
4954
4952
|
switch (e.currentStatus) {
|
|
@@ -4973,7 +4971,7 @@ function Et(e) {
|
|
|
4973
4971
|
getStatus: l
|
|
4974
4972
|
};
|
|
4975
4973
|
}
|
|
4976
|
-
const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-status"],
|
|
4974
|
+
const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-status"], oi = {
|
|
4977
4975
|
__name: "BsProgressBar",
|
|
4978
4976
|
props: {
|
|
4979
4977
|
/** @type {Status} */
|
|
@@ -5001,26 +4999,26 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5001
4999
|
}
|
|
5002
5000
|
},
|
|
5003
5001
|
setup(e) {
|
|
5004
|
-
const a = e, { progressStep: t, progressText: l, getStatus: n } =
|
|
5005
|
-
return (i,
|
|
5002
|
+
const a = e, { progressStep: t, progressText: l, getStatus: n } = Dt(a);
|
|
5003
|
+
return (i, d) => (u(), v("div", {
|
|
5006
5004
|
"aria-valuemax": e.steps.length,
|
|
5007
5005
|
"aria-valuenow": c(t),
|
|
5008
5006
|
"aria-valuetext": c(l),
|
|
5009
5007
|
class: "bs-progress-bar",
|
|
5010
5008
|
role: "progressbar"
|
|
5011
5009
|
}, [
|
|
5012
|
-
(u(!0), v(G, null, ee(e.steps, (o,
|
|
5010
|
+
(u(!0), v(G, null, ee(e.steps, (o, s) => (u(), v("div", {
|
|
5013
5011
|
class: "bs-step-item",
|
|
5014
|
-
"data-status": c(n)(o.status,
|
|
5012
|
+
"data-status": c(n)(o.status, s),
|
|
5015
5013
|
"data-variant": "progress",
|
|
5016
5014
|
key: o.id || o.label,
|
|
5017
5015
|
role: "status"
|
|
5018
5016
|
}, [
|
|
5019
|
-
|
|
5017
|
+
$("span", null, T(o.label || o) + " : " + T(c(n)(o.status, s) || "not started"), 1)
|
|
5020
5018
|
], 8, Kl))), 128))
|
|
5021
5019
|
], 8, Hl));
|
|
5022
5020
|
}
|
|
5023
|
-
}, Yl = ["data-disabled", "data-error", "data-size"], Zl = ["checked", "disabled", "id", "required", "value", "data-error"],
|
|
5021
|
+
}, Yl = ["data-disabled", "data-error", "data-size"], Zl = ["checked", "disabled", "id", "required", "value", "data-error"], ii = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5024
5022
|
__name: "BsRadio",
|
|
5025
5023
|
props: {
|
|
5026
5024
|
label: {
|
|
@@ -5064,16 +5062,16 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5064
5062
|
},
|
|
5065
5063
|
emits: ["update:modelValue"],
|
|
5066
5064
|
setup(e, { emit: a }) {
|
|
5067
|
-
const t = e, [l] =
|
|
5068
|
-
return (o,
|
|
5065
|
+
const t = e, [l] = Z(), n = p(() => et.concat(t.passAttrs.split(","))), i = p(() => t.inputId || l.value), d = p(() => t.checked || t.modelValue && t.modelValue === t.value);
|
|
5066
|
+
return (o, s) => (u(), v("div", z({
|
|
5069
5067
|
class: "bs-boolean",
|
|
5070
5068
|
"data-component": "bs-radio",
|
|
5071
5069
|
"data-disabled": e.disabled,
|
|
5072
5070
|
"data-error": e.error,
|
|
5073
5071
|
"data-size": e.size
|
|
5074
5072
|
}, c(Y)(o.$attrs, n.value).remaining), [
|
|
5075
|
-
|
|
5076
|
-
checked:
|
|
5073
|
+
$("input", z({
|
|
5074
|
+
checked: d.value,
|
|
5077
5075
|
disabled: e.disabled,
|
|
5078
5076
|
id: o.$attrs.id || i.value,
|
|
5079
5077
|
required: e.required,
|
|
@@ -5081,9 +5079,9 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5081
5079
|
value: e.value,
|
|
5082
5080
|
"data-error": e.error
|
|
5083
5081
|
}, c(Y)(o.$attrs, n.value).filtered, {
|
|
5084
|
-
onChange:
|
|
5082
|
+
onChange: s[0] || (s[0] = (r) => o.$emit("update:modelValue", r.target.value))
|
|
5085
5083
|
}), null, 16, Zl),
|
|
5086
|
-
e.label || o.$slots.label ? (u(),
|
|
5084
|
+
e.label || o.$slots.label ? (u(), A(ae, {
|
|
5087
5085
|
key: 0,
|
|
5088
5086
|
for: o.$attrs.id || i.value,
|
|
5089
5087
|
disabled: e.disabled,
|
|
@@ -5091,7 +5089,7 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5091
5089
|
}, {
|
|
5092
5090
|
default: L(() => [
|
|
5093
5091
|
E(o.$slots, "label", {}, () => [
|
|
5094
|
-
|
|
5092
|
+
U(T(e.label), 1)
|
|
5095
5093
|
])
|
|
5096
5094
|
]),
|
|
5097
5095
|
_: 3
|
|
@@ -5112,7 +5110,7 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5112
5110
|
emits: ["update:modelValue"],
|
|
5113
5111
|
setup(e, { emit: a }) {
|
|
5114
5112
|
const t = e, l = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
5115
|
-
return (n, i) => (u(), v("select",
|
|
5113
|
+
return (n, i) => (u(), v("select", z({
|
|
5116
5114
|
id: n.$attrs.id || e.inputId,
|
|
5117
5115
|
class: "bs-select",
|
|
5118
5116
|
"data-component": "bs-select",
|
|
@@ -5121,12 +5119,12 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5121
5119
|
"data-error": e.error,
|
|
5122
5120
|
value: e.value || e.modelValue
|
|
5123
5121
|
}, l.value, {
|
|
5124
|
-
onChange: i[0] || (i[0] = (
|
|
5122
|
+
onChange: i[0] || (i[0] = (d) => n.$emit("update:modelValue", d.target.value))
|
|
5125
5123
|
}), [
|
|
5126
5124
|
E(n.$slots, "default")
|
|
5127
5125
|
], 16, Xl));
|
|
5128
5126
|
}
|
|
5129
|
-
}, Jl = ["selected", "disabled"], _l = ["disabled", "selected", "value"],
|
|
5127
|
+
}, Jl = ["selected", "disabled"], _l = ["disabled", "selected", "value"], ri = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5130
5128
|
__name: "BsSelectField",
|
|
5131
5129
|
props: {
|
|
5132
5130
|
data: {
|
|
@@ -5170,13 +5168,13 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5170
5168
|
modelValue: [String, Number]
|
|
5171
5169
|
},
|
|
5172
5170
|
setup(e) {
|
|
5173
|
-
const a = e, [t, l] =
|
|
5171
|
+
const a = e, [t, l] = Z(2), n = p(() => za.concat(a.passAttrs.split(","))), i = p(() => {
|
|
5174
5172
|
var r, f;
|
|
5175
5173
|
return ((f = (r = a.hints) == null ? void 0 : r.join) == null ? void 0 : f.call(r, `
|
|
5176
5174
|
`)) || a.hints;
|
|
5177
|
-
}),
|
|
5178
|
-
return (r, f) => (u(), v("div",
|
|
5179
|
-
e.label || r.$slots.label ? (u(),
|
|
5175
|
+
}), d = p(() => a.error && a.errorMsg || a.hint || i.value || void 0), o = p(() => a.inputId || t.value), s = p(() => a.value || a.modelValue);
|
|
5176
|
+
return (r, f) => (u(), v("div", z({ "data-component": "bs-select-field" }, c(Y)(r.$attrs, n.value).remaining), [
|
|
5177
|
+
e.label || r.$slots.label ? (u(), A(ae, {
|
|
5180
5178
|
key: 0,
|
|
5181
5179
|
for: r.$attrs.id || o.value,
|
|
5182
5180
|
disabled: e.disabled,
|
|
@@ -5184,36 +5182,36 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5184
5182
|
}, {
|
|
5185
5183
|
default: L(() => [
|
|
5186
5184
|
E(r.$slots, "label", {}, () => [
|
|
5187
|
-
|
|
5185
|
+
U(T(e.label), 1)
|
|
5188
5186
|
])
|
|
5189
5187
|
]),
|
|
5190
5188
|
_: 3
|
|
5191
5189
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
5192
|
-
D(Ql,
|
|
5190
|
+
D(Ql, z({
|
|
5193
5191
|
disabled: e.disabled,
|
|
5194
5192
|
error: e.error,
|
|
5195
5193
|
"hint-id": c(l),
|
|
5196
5194
|
"input-id": r.$attrs.id || o.value,
|
|
5197
5195
|
required: e.required,
|
|
5198
|
-
value:
|
|
5196
|
+
value: s.value,
|
|
5199
5197
|
"onUpdate:modelValue": f[0] || (f[0] = (m) => r.$emit("update:modelValue", m))
|
|
5200
5198
|
}, c(Y)(r.$attrs, n.value).filtered), {
|
|
5201
5199
|
default: L(() => [
|
|
5202
|
-
|
|
5203
|
-
selected: !
|
|
5200
|
+
$("option", {
|
|
5201
|
+
selected: !s.value,
|
|
5204
5202
|
value: "",
|
|
5205
|
-
disabled: !!
|
|
5206
|
-
},
|
|
5203
|
+
disabled: !!s.value
|
|
5204
|
+
}, T(e.disabled ? "" : e.placeholder), 9, Jl),
|
|
5207
5205
|
(u(!0), v(G, null, ee(e.data, (m) => (u(), v("option", {
|
|
5208
5206
|
key: m.value,
|
|
5209
5207
|
disabled: m.disabled,
|
|
5210
|
-
selected:
|
|
5208
|
+
selected: s.value === m.value,
|
|
5211
5209
|
value: m.value
|
|
5212
|
-
},
|
|
5210
|
+
}, T(m.label), 9, _l))), 128))
|
|
5213
5211
|
]),
|
|
5214
5212
|
_: 1
|
|
5215
5213
|
}, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
|
|
5216
|
-
|
|
5214
|
+
d.value ? (u(), A(ge, {
|
|
5217
5215
|
key: 1,
|
|
5218
5216
|
"data-disabled": e.disabled,
|
|
5219
5217
|
error: e.error,
|
|
@@ -5223,7 +5221,159 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5223
5221
|
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : C("", !0)
|
|
5224
5222
|
], 16));
|
|
5225
5223
|
}
|
|
5226
|
-
}), eo = ["
|
|
5224
|
+
}), eo = ["id", "name", "value"], to = ["aria-controls", "aria-describedby", "aria-expanded", "aria-invalid", "aria-label", "data-cy", "data-disabled", "data-error", "data-open", "data-placeholder", "data-required", "disabled", "id"], si = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5225
|
+
__name: "BsSelectWithDropdown",
|
|
5226
|
+
props: {
|
|
5227
|
+
breakout: {
|
|
5228
|
+
type: Boolean,
|
|
5229
|
+
default: !1
|
|
5230
|
+
},
|
|
5231
|
+
disabled: {
|
|
5232
|
+
type: Boolean,
|
|
5233
|
+
default: !1
|
|
5234
|
+
},
|
|
5235
|
+
dropdownPosition: {
|
|
5236
|
+
type: String,
|
|
5237
|
+
default: "",
|
|
5238
|
+
validator: (e) => ["", "top", "center", "right"].includes(e)
|
|
5239
|
+
},
|
|
5240
|
+
dropdownWidth: {
|
|
5241
|
+
type: String,
|
|
5242
|
+
default: "anchor",
|
|
5243
|
+
validator: (e) => ["", "sm", "md", "lg", "content", "anchor"].includes(e)
|
|
5244
|
+
},
|
|
5245
|
+
error: {
|
|
5246
|
+
type: Boolean,
|
|
5247
|
+
default: !1
|
|
5248
|
+
},
|
|
5249
|
+
helperDescription: {
|
|
5250
|
+
type: String,
|
|
5251
|
+
default: void 0
|
|
5252
|
+
},
|
|
5253
|
+
helperText: {
|
|
5254
|
+
type: String,
|
|
5255
|
+
default: void 0
|
|
5256
|
+
},
|
|
5257
|
+
hintId: {
|
|
5258
|
+
type: String,
|
|
5259
|
+
default: void 0
|
|
5260
|
+
},
|
|
5261
|
+
inputId: {
|
|
5262
|
+
type: String,
|
|
5263
|
+
default: void 0
|
|
5264
|
+
},
|
|
5265
|
+
inputName: {
|
|
5266
|
+
type: String,
|
|
5267
|
+
default: void 0
|
|
5268
|
+
},
|
|
5269
|
+
label: {
|
|
5270
|
+
type: String,
|
|
5271
|
+
default: void 0
|
|
5272
|
+
},
|
|
5273
|
+
modelValue: {
|
|
5274
|
+
type: String,
|
|
5275
|
+
default: ""
|
|
5276
|
+
},
|
|
5277
|
+
options: {
|
|
5278
|
+
type: Array,
|
|
5279
|
+
required: !0
|
|
5280
|
+
},
|
|
5281
|
+
optionsId: {
|
|
5282
|
+
type: String,
|
|
5283
|
+
default: void 0
|
|
5284
|
+
},
|
|
5285
|
+
placeholder: {
|
|
5286
|
+
type: String,
|
|
5287
|
+
default: "Select an option"
|
|
5288
|
+
},
|
|
5289
|
+
required: {
|
|
5290
|
+
type: Boolean,
|
|
5291
|
+
default: !1
|
|
5292
|
+
},
|
|
5293
|
+
selectId: {
|
|
5294
|
+
type: String,
|
|
5295
|
+
default: void 0
|
|
5296
|
+
}
|
|
5297
|
+
},
|
|
5298
|
+
emits: ["update:model-value"],
|
|
5299
|
+
setup(e, { emit: a }) {
|
|
5300
|
+
const t = e, l = a, [n, i] = Z(2), d = re(), o = k(!1), s = p(() => t.selectId || d.id || n.value), r = p(() => t.optionsId || i.value), f = p(() => {
|
|
5301
|
+
if (t.modelValue) {
|
|
5302
|
+
const b = t.options.find((g) => g.value === t.modelValue);
|
|
5303
|
+
return b ? b.label : t.placeholder;
|
|
5304
|
+
}
|
|
5305
|
+
return t.placeholder;
|
|
5306
|
+
}), m = p(() => f.value === t.placeholder);
|
|
5307
|
+
return (b, g) => (u(), v("div", null, [
|
|
5308
|
+
e.label || b.$slots.label ? (u(), A(ae, {
|
|
5309
|
+
key: 0,
|
|
5310
|
+
disabled: e.disabled,
|
|
5311
|
+
for: s.value,
|
|
5312
|
+
required: e.required
|
|
5313
|
+
}, {
|
|
5314
|
+
default: L(() => [
|
|
5315
|
+
E(b.$slots, "label", {}, () => [
|
|
5316
|
+
U(T(e.label), 1)
|
|
5317
|
+
])
|
|
5318
|
+
]),
|
|
5319
|
+
_: 3
|
|
5320
|
+
}, 8, ["disabled", "for", "required"])) : C("", !0),
|
|
5321
|
+
e.inputName || e.inputId ? (u(), v("input", {
|
|
5322
|
+
key: 1,
|
|
5323
|
+
id: e.inputId,
|
|
5324
|
+
name: e.inputName,
|
|
5325
|
+
type: "hidden",
|
|
5326
|
+
value: e.modelValue
|
|
5327
|
+
}, null, 8, eo)) : C("", !0),
|
|
5328
|
+
D(Vt, {
|
|
5329
|
+
"anchor-id": s.value,
|
|
5330
|
+
breakout: e.breakout,
|
|
5331
|
+
"dropdown-position": e.dropdownPosition,
|
|
5332
|
+
"dropdown-width": e.dropdownWidth,
|
|
5333
|
+
"helper-description": e.helperDescription,
|
|
5334
|
+
"helper-text": e.helperText,
|
|
5335
|
+
multiselect: !1,
|
|
5336
|
+
open: o.value,
|
|
5337
|
+
"options-id": r.value,
|
|
5338
|
+
options: e.options,
|
|
5339
|
+
"selected-option": e.modelValue,
|
|
5340
|
+
"toggle-id": s.value,
|
|
5341
|
+
onClose: g[1] || (g[1] = (S) => o.value = !1),
|
|
5342
|
+
"onUpdate:selectedOption": g[2] || (g[2] = (S) => l("update:model-value", S))
|
|
5343
|
+
}, {
|
|
5344
|
+
toggle: L(() => [
|
|
5345
|
+
$("button", z({
|
|
5346
|
+
"aria-controls": r.value,
|
|
5347
|
+
"aria-describedby": e.hintId,
|
|
5348
|
+
"aria-expanded": o.value,
|
|
5349
|
+
"aria-haspopup": "listbox",
|
|
5350
|
+
"aria-invalid": e.error,
|
|
5351
|
+
"aria-label": `${o.value ? "Close" : "Open"} Combobox`,
|
|
5352
|
+
class: "bs-select",
|
|
5353
|
+
"data-cy": m.value ? "ignore" : void 0,
|
|
5354
|
+
"data-disabled": e.disabled,
|
|
5355
|
+
"data-error": e.error,
|
|
5356
|
+
"data-open": o.value,
|
|
5357
|
+
"data-placeholder": m.value,
|
|
5358
|
+
"data-required": e.required,
|
|
5359
|
+
disabled: e.disabled,
|
|
5360
|
+
id: s.value,
|
|
5361
|
+
role: "combobox"
|
|
5362
|
+
}, b.$attrs, {
|
|
5363
|
+
onClick: g[0] || (g[0] = St((S) => o.value = !o.value, ["prevent"]))
|
|
5364
|
+
}), [
|
|
5365
|
+
$("span", null, T(f.value), 1),
|
|
5366
|
+
e.disabled ? C("", !0) : (u(), A(c(Me), {
|
|
5367
|
+
key: 0,
|
|
5368
|
+
size: "md"
|
|
5369
|
+
}))
|
|
5370
|
+
], 16, to)
|
|
5371
|
+
]),
|
|
5372
|
+
_: 1
|
|
5373
|
+
}, 8, ["anchor-id", "breakout", "dropdown-position", "dropdown-width", "helper-description", "helper-text", "open", "options-id", "options", "selected-option", "toggle-id"])
|
|
5374
|
+
]));
|
|
5375
|
+
}
|
|
5376
|
+
}), ao = ["data-disabled", "data-size"], no = ["data-disabled", "data-pending", "data-size"], lo = ["checked", "disabled", "id"], oo = ["data-inner-on-label", "data-inner-off-label"], di = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5227
5377
|
__name: "BsSwitch",
|
|
5228
5378
|
props: {
|
|
5229
5379
|
checked: {
|
|
@@ -5269,49 +5419,49 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5269
5419
|
},
|
|
5270
5420
|
emits: ["update:modelValue"],
|
|
5271
5421
|
setup(e, { emit: a }) {
|
|
5272
|
-
const t = e, l = a, [n] =
|
|
5273
|
-
return (
|
|
5422
|
+
const t = e, l = a, [n] = Z(), i = p(() => et.concat(t.passAttrs.split(","))), d = p(() => t.inputId || n.value), o = p(() => t.checked || t.modelValue);
|
|
5423
|
+
return (s, r) => (u(), v("div", z({
|
|
5274
5424
|
class: "bs-boolean",
|
|
5275
5425
|
"data-component": "bs-switch",
|
|
5276
5426
|
"data-disabled": e.disabled,
|
|
5277
5427
|
"data-size": e.size
|
|
5278
|
-
}, c(Y)(
|
|
5279
|
-
e.label ||
|
|
5428
|
+
}, c(Y)(s.$attrs, i.value).remaining), [
|
|
5429
|
+
e.label || s.$slots.label ? (u(), A(ae, {
|
|
5280
5430
|
key: 0,
|
|
5281
|
-
for:
|
|
5431
|
+
for: s.$attrs.id || d.value,
|
|
5282
5432
|
disabled: e.disabled,
|
|
5283
5433
|
hide: e.hideLabel
|
|
5284
5434
|
}, {
|
|
5285
5435
|
default: L(() => [
|
|
5286
|
-
E(
|
|
5287
|
-
|
|
5436
|
+
E(s.$slots, "label", {}, () => [
|
|
5437
|
+
U(T(e.label), 1)
|
|
5288
5438
|
])
|
|
5289
5439
|
]),
|
|
5290
5440
|
_: 3
|
|
5291
5441
|
}, 8, ["for", "disabled", "hide"])) : C("", !0),
|
|
5292
|
-
|
|
5442
|
+
$("div", {
|
|
5293
5443
|
class: "bs-switch",
|
|
5294
5444
|
"data-disabled": e.disabled,
|
|
5295
5445
|
"data-pending": e.pending,
|
|
5296
5446
|
"data-size": e.size
|
|
5297
5447
|
}, [
|
|
5298
|
-
|
|
5448
|
+
$("input", z({
|
|
5299
5449
|
checked: o.value,
|
|
5300
5450
|
disabled: e.disabled,
|
|
5301
|
-
id:
|
|
5451
|
+
id: s.$attrs.id || d.value,
|
|
5302
5452
|
type: "checkbox"
|
|
5303
|
-
}, c(Y)(
|
|
5453
|
+
}, c(Y)(s.$attrs, i.value).filtered, {
|
|
5304
5454
|
onChange: r[0] || (r[0] = (f) => l("update:modelValue", f.target.checked))
|
|
5305
|
-
}), null, 16,
|
|
5306
|
-
|
|
5455
|
+
}), null, 16, lo),
|
|
5456
|
+
$("span", {
|
|
5307
5457
|
"aria-hidden": "true",
|
|
5308
5458
|
"data-inner-on-label": e.innerOnLabel,
|
|
5309
5459
|
"data-inner-off-label": e.innerOffLabel
|
|
5310
|
-
}, null, 8,
|
|
5311
|
-
], 8,
|
|
5312
|
-
], 16,
|
|
5460
|
+
}, null, 8, oo)
|
|
5461
|
+
], 8, no)
|
|
5462
|
+
], 16, ao));
|
|
5313
5463
|
}
|
|
5314
|
-
}),
|
|
5464
|
+
}), io = ["aria-controls", "aria-selected", "data-hidden"], ui = {
|
|
5315
5465
|
__name: "BsTab",
|
|
5316
5466
|
props: {
|
|
5317
5467
|
activeTabId: {
|
|
@@ -5328,18 +5478,18 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5328
5478
|
},
|
|
5329
5479
|
emits: ["tabClick"],
|
|
5330
5480
|
setup(e, { emit: a }) {
|
|
5331
|
-
const t = e, l =
|
|
5481
|
+
const t = e, l = re(), n = k(), i = p(() => t.activeTabId === l.id), d = p(() => t.panelId || `${l.id}-panel`);
|
|
5332
5482
|
function o(r) {
|
|
5333
|
-
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(),
|
|
5483
|
+
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), s());
|
|
5334
5484
|
}
|
|
5335
|
-
function
|
|
5485
|
+
function s() {
|
|
5336
5486
|
if (t.activeTabId !== l.id) {
|
|
5337
5487
|
const r = new CustomEvent("tabClick", { detail: l.id, bubbles: !0 });
|
|
5338
5488
|
n.value.dispatchEvent(r);
|
|
5339
5489
|
}
|
|
5340
5490
|
}
|
|
5341
5491
|
return (r, f) => (u(), v("div", {
|
|
5342
|
-
"aria-controls":
|
|
5492
|
+
"aria-controls": d.value,
|
|
5343
5493
|
"aria-selected": i.value ? "true" : "false",
|
|
5344
5494
|
"data-hidden": e.hidden || void 0,
|
|
5345
5495
|
"data-component": "bs-tab",
|
|
@@ -5347,13 +5497,13 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5347
5497
|
tabindex: "0",
|
|
5348
5498
|
ref_key: "hostEl",
|
|
5349
5499
|
ref: n,
|
|
5350
|
-
onClick:
|
|
5500
|
+
onClick: s,
|
|
5351
5501
|
onKeydown: o
|
|
5352
5502
|
}, [
|
|
5353
5503
|
E(r.$slots, "default")
|
|
5354
|
-
], 40,
|
|
5504
|
+
], 40, io));
|
|
5355
5505
|
}
|
|
5356
|
-
},
|
|
5506
|
+
}, ro = ["id", "data-resizing"], so = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], uo = 73, co = 20, Ue = 16, ci = {
|
|
5357
5507
|
__name: "BsTabList",
|
|
5358
5508
|
props: {
|
|
5359
5509
|
activeTabId: { type: String, required: !0 },
|
|
@@ -5364,27 +5514,27 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5364
5514
|
},
|
|
5365
5515
|
emits: ["tabChange", "update:modelValue"],
|
|
5366
5516
|
setup(e, { emit: a }) {
|
|
5367
|
-
const t = e, l = a, n = k(!1), i = k(!1),
|
|
5517
|
+
const t = e, l = a, n = k(!1), i = k(!1), d = k([]), o = k(!1), s = k(!1), r = k(), f = k([]), m = k(!1), b = k([]), g = k(), S = k([]), I = k(), h = k(), [B, w] = Z(2), y = p(() => t.activeTabId ? b.value.findIndex((x) => x.id === t.activeTabId) : 0), M = p(() => d.value.some((x) => x.id === t.activeTabId)), V = p(() => `${w.value}-options`), q = p(() => `${w.value}-toggle`), R = p(() => {
|
|
5368
5518
|
var x;
|
|
5369
|
-
return M.value ? (x = b.value[
|
|
5370
|
-
}), _ = p(() => M.value ? f.value[
|
|
5519
|
+
return M.value ? (x = b.value[y.value]) == null ? void 0 : x.textContent : "More";
|
|
5520
|
+
}), _ = p(() => M.value ? f.value[y.value] - f.value[y.value - 1] + co + Ue : uo + Ue);
|
|
5371
5521
|
function J() {
|
|
5372
|
-
var
|
|
5373
|
-
let x = !1,
|
|
5374
|
-
if ((
|
|
5522
|
+
var de;
|
|
5523
|
+
let x = !1, N, W = 0, Q = !1, le = [];
|
|
5524
|
+
if ((de = b.value) != null && de.length) {
|
|
5375
5525
|
for (let oe = 0; oe < b.value.length; oe++) {
|
|
5376
|
-
if (
|
|
5377
|
-
|
|
5526
|
+
if (N = b.value[oe], N.setAttribute("tabindex", "-1"), Q && oe !== y.value) {
|
|
5527
|
+
N.dataset.hidden = "true", le.push(N);
|
|
5378
5528
|
continue;
|
|
5379
5529
|
}
|
|
5380
|
-
if (
|
|
5381
|
-
|
|
5530
|
+
if (W = oe < b.value.length - 1 ? h.value - _.value : h.value, f.value[oe] > W) {
|
|
5531
|
+
N.dataset.hidden = "true", le.push(N), x = !0, Q = !0;
|
|
5382
5532
|
continue;
|
|
5383
5533
|
}
|
|
5384
|
-
|
|
5534
|
+
N.dataset.hidden = "false", N.setAttribute("tabindex", "0");
|
|
5385
5535
|
}
|
|
5386
|
-
|
|
5387
|
-
|
|
5536
|
+
s.value = x, d.value = le, n.value || Ae(() => n.value = !0), setTimeout(() => {
|
|
5537
|
+
Pt(), P(), m.value = !0;
|
|
5388
5538
|
}, m.value ? 25 : 1e3);
|
|
5389
5539
|
}
|
|
5390
5540
|
}
|
|
@@ -5392,155 +5542,155 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5392
5542
|
l("tabChange", x), l("update:modelValue", x);
|
|
5393
5543
|
}
|
|
5394
5544
|
function me(x) {
|
|
5395
|
-
var Q, le,
|
|
5396
|
-
const
|
|
5397
|
-
return
|
|
5545
|
+
var Q, le, de;
|
|
5546
|
+
const N = (de = (le = (Q = b.value[x]) == null ? void 0 : Q.getBoundingClientRect) == null ? void 0 : le.call(Q)) == null ? void 0 : de.width;
|
|
5547
|
+
return N || (x === 0 ? f.value[0] : f.value[x] - f.value[x - 1]) || 0;
|
|
5398
5548
|
}
|
|
5399
5549
|
function ye() {
|
|
5400
5550
|
var x;
|
|
5401
|
-
(x = b.value[
|
|
5551
|
+
(x = b.value[y.value]) == null || x.setAttribute("aria-selected", "true"), J();
|
|
5402
5552
|
}
|
|
5403
5553
|
function ke() {
|
|
5404
5554
|
var x;
|
|
5405
|
-
(x =
|
|
5555
|
+
(x = g.value) == null || x.focus(), o.value = !1;
|
|
5406
5556
|
}
|
|
5407
5557
|
function Ce() {
|
|
5408
5558
|
o.value = !o.value, i.value || (i.value = !0);
|
|
5409
5559
|
}
|
|
5410
|
-
function
|
|
5411
|
-
var
|
|
5412
|
-
o.value = !1, (
|
|
5560
|
+
function se(x) {
|
|
5561
|
+
var N;
|
|
5562
|
+
o.value = !1, (N = g.value) == null || N.focus(), ne(x);
|
|
5413
5563
|
}
|
|
5414
5564
|
function xe(x) {
|
|
5415
5565
|
if (t.withBsTabs)
|
|
5416
5566
|
return;
|
|
5417
|
-
const
|
|
5418
|
-
if (!
|
|
5567
|
+
const N = x.target.closest('[role="tab"]');
|
|
5568
|
+
if (!N || N.getAttribute("aria-selected") === "true")
|
|
5419
5569
|
return;
|
|
5420
|
-
const
|
|
5421
|
-
ne(
|
|
5570
|
+
const W = N.getAttribute("id");
|
|
5571
|
+
ne(W);
|
|
5422
5572
|
}
|
|
5423
5573
|
function Se(x) {
|
|
5424
5574
|
if (x.key === "ArrowLeft" || x.key === "ArrowRight") {
|
|
5425
|
-
const
|
|
5426
|
-
if (
|
|
5575
|
+
const N = S.value.findIndex((W) => W.id === x.target.id);
|
|
5576
|
+
if (N === -1)
|
|
5427
5577
|
return;
|
|
5428
|
-
x.preventDefault(), x.stopPropagation(), x.key === "ArrowLeft" ? F(
|
|
5578
|
+
x.preventDefault(), x.stopPropagation(), x.key === "ArrowLeft" ? F(N) : O(N);
|
|
5429
5579
|
}
|
|
5430
5580
|
}
|
|
5431
5581
|
function O(x) {
|
|
5432
|
-
var
|
|
5433
|
-
const
|
|
5434
|
-
(
|
|
5582
|
+
var W;
|
|
5583
|
+
const N = (x + 1) % S.value.length;
|
|
5584
|
+
(W = S.value[N]) == null || W.focus();
|
|
5435
5585
|
}
|
|
5436
5586
|
function F(x) {
|
|
5437
|
-
var
|
|
5438
|
-
const
|
|
5439
|
-
(
|
|
5587
|
+
var W;
|
|
5588
|
+
const N = x === 0 ? S.value.length - 1 : x - 1;
|
|
5589
|
+
(W = S.value[N]) == null || W.focus();
|
|
5440
5590
|
}
|
|
5441
5591
|
function P() {
|
|
5442
|
-
var
|
|
5443
|
-
const x = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0,
|
|
5444
|
-
let
|
|
5445
|
-
|
|
5592
|
+
var de, oe, it, rt;
|
|
5593
|
+
const x = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0, N = h.value;
|
|
5594
|
+
let W = 300, Q = ((oe = (de = S.value) == null ? void 0 : de[y.value]) == null ? void 0 : oe.offsetLeft) || 0, le = me(y.value);
|
|
5595
|
+
s.value && M.value && (Q = (it = g.value) == null ? void 0 : it.offsetLeft, le = (rt = g.value) == null ? void 0 : rt.offsetWidth), W = Math.max(Math.abs((Q - x) / N * 300), 100), r.value.style.setProperty("--active-line-max-width", `${N}px`), r.value.style.setProperty("--active-line-scale", `${le / N}`), r.value.style.setProperty("--active-line-offset", `${Q}px`), r.value.style.setProperty("--active-line-transition-duration", `${W}ms`);
|
|
5446
5596
|
}
|
|
5447
5597
|
function K() {
|
|
5448
|
-
var x,
|
|
5449
|
-
(
|
|
5598
|
+
var x, N;
|
|
5599
|
+
(N = (x = I.value) == null ? void 0 : x.disconnect) == null || N.call(x), I.value = null;
|
|
5450
5600
|
}
|
|
5451
|
-
function
|
|
5601
|
+
function X() {
|
|
5452
5602
|
const x = Oe(() => {
|
|
5453
5603
|
h.value = r.value.clientWidth, J();
|
|
5454
5604
|
}, 25);
|
|
5455
|
-
|
|
5605
|
+
I.value = new ResizeObserver(x), I.value.observe(document.body);
|
|
5456
5606
|
}
|
|
5457
5607
|
function Te() {
|
|
5458
5608
|
b.value = Array.from(r.value.children).filter((x) => x.role === "tab");
|
|
5459
5609
|
}
|
|
5460
|
-
function
|
|
5610
|
+
function qt() {
|
|
5461
5611
|
let x;
|
|
5462
|
-
b.value.forEach((
|
|
5463
|
-
x =
|
|
5612
|
+
b.value.forEach((N, W) => {
|
|
5613
|
+
x = N.getBoundingClientRect().width + Ue, f.value.push(W ? x + f.value[W - 1] : x);
|
|
5464
5614
|
});
|
|
5465
5615
|
}
|
|
5466
|
-
function
|
|
5467
|
-
var
|
|
5616
|
+
function Pt() {
|
|
5617
|
+
var N, W;
|
|
5468
5618
|
let x = [];
|
|
5469
5619
|
if (typeof window > "u")
|
|
5470
5620
|
return x;
|
|
5471
5621
|
for (let Q of b.value) {
|
|
5472
|
-
if (((
|
|
5622
|
+
if (((N = Q.dataset) == null ? void 0 : N.hidden) === "true" || ((W = Q.dataset) == null ? void 0 : W.hidden) === "" || Q.getAttribute("tabindex") === "-1")
|
|
5473
5623
|
break;
|
|
5474
5624
|
x.push(Q);
|
|
5475
5625
|
}
|
|
5476
|
-
|
|
5626
|
+
s.value && x.push(r.value.querySelector(".bs-tab-list-toggle")), S.value = x;
|
|
5477
5627
|
}
|
|
5478
5628
|
return j(() => t.activeTabId, ye), H(() => {
|
|
5479
5629
|
var x;
|
|
5480
5630
|
try {
|
|
5481
|
-
Te(),
|
|
5482
|
-
} catch (
|
|
5483
|
-
console.log("tab error",
|
|
5631
|
+
Te(), qt(), X(), h.value = r.value.getBoundingClientRect().width, J(), t.withBsTabs || (x = b.value[y.value]) == null || x.setAttribute("aria-selected", "true");
|
|
5632
|
+
} catch (N) {
|
|
5633
|
+
console.log("tab error", N);
|
|
5484
5634
|
}
|
|
5485
|
-
}), $e(K), (x,
|
|
5635
|
+
}), $e(K), (x, N) => (u(), v("div", {
|
|
5486
5636
|
class: "bs-tab-list",
|
|
5487
5637
|
"data-component": "bs-tab-list",
|
|
5488
|
-
id: x.$attrs.id || c(
|
|
5638
|
+
id: x.$attrs.id || c(B),
|
|
5489
5639
|
ref_key: "hostEl",
|
|
5490
5640
|
ref: r,
|
|
5491
5641
|
role: "tablist",
|
|
5492
5642
|
"data-resizing": !n.value || void 0,
|
|
5493
5643
|
onClick: xe,
|
|
5494
|
-
"on:tabClick":
|
|
5644
|
+
"on:tabClick": N[0] || (N[0] = (W) => ne(W.detail)),
|
|
5495
5645
|
onKeydown: Se
|
|
5496
5646
|
}, [
|
|
5497
5647
|
E(x.$slots, "default"),
|
|
5498
|
-
|
|
5499
|
-
"aria-controls": c(
|
|
5648
|
+
$("button", {
|
|
5649
|
+
"aria-controls": c(w),
|
|
5500
5650
|
"aria-expanded": o.value,
|
|
5501
5651
|
class: "bs-tab-list-toggle",
|
|
5502
5652
|
"data-active": M.value || void 0,
|
|
5503
|
-
"data-hidden": !
|
|
5653
|
+
"data-hidden": !s.value,
|
|
5504
5654
|
id: q.value,
|
|
5505
5655
|
ref_key: "dropdownToggle",
|
|
5506
|
-
ref:
|
|
5656
|
+
ref: g,
|
|
5507
5657
|
onClick: Ce
|
|
5508
5658
|
}, [
|
|
5509
|
-
D(c(
|
|
5510
|
-
|
|
5511
|
-
], 8,
|
|
5512
|
-
D(
|
|
5659
|
+
D(c(Ht), { size: "sm" }),
|
|
5660
|
+
U(" " + T(R.value), 1)
|
|
5661
|
+
], 8, so),
|
|
5662
|
+
D(Lt, {
|
|
5513
5663
|
"anchor-id": q.value,
|
|
5514
5664
|
breakout: "",
|
|
5515
|
-
"container-id": x.$attrs.id || c(
|
|
5665
|
+
"container-id": x.$attrs.id || c(B),
|
|
5516
5666
|
"helper-description": e.helperDescription || void 0,
|
|
5517
5667
|
"helper-text": e.helperText,
|
|
5518
|
-
id: c(
|
|
5519
|
-
"options-id":
|
|
5668
|
+
id: c(w),
|
|
5669
|
+
"options-id": V.value,
|
|
5520
5670
|
position: "right",
|
|
5521
5671
|
preloaded: "",
|
|
5522
5672
|
shown: o.value,
|
|
5523
5673
|
width: "content",
|
|
5524
5674
|
onClose: ke,
|
|
5525
|
-
"onUpdate:modelValue":
|
|
5675
|
+
"onUpdate:modelValue": se
|
|
5526
5676
|
}, {
|
|
5527
5677
|
default: L(() => [
|
|
5528
|
-
(u(!0), v(G, null, ee(
|
|
5529
|
-
key:
|
|
5530
|
-
value:
|
|
5531
|
-
"options-id":
|
|
5678
|
+
(u(!0), v(G, null, ee(d.value, (W) => (u(), A(ot, {
|
|
5679
|
+
key: W.id,
|
|
5680
|
+
value: W.id,
|
|
5681
|
+
"options-id": V.value
|
|
5532
5682
|
}, {
|
|
5533
5683
|
default: L(() => [
|
|
5534
|
-
|
|
5684
|
+
U(T(W.textContent), 1)
|
|
5535
5685
|
]),
|
|
5536
5686
|
_: 2
|
|
5537
5687
|
}, 1032, ["value", "options-id"]))), 128))
|
|
5538
5688
|
]),
|
|
5539
5689
|
_: 1
|
|
5540
5690
|
}, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])
|
|
5541
|
-
], 40,
|
|
5691
|
+
], 40, ro));
|
|
5542
5692
|
}
|
|
5543
|
-
},
|
|
5693
|
+
}, fo = ["aria-labelledby", "data-active", "id"], fi = {
|
|
5544
5694
|
__name: "BsTabPanel",
|
|
5545
5695
|
props: {
|
|
5546
5696
|
activeTabId: {
|
|
@@ -5553,8 +5703,8 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5553
5703
|
}
|
|
5554
5704
|
},
|
|
5555
5705
|
setup(e) {
|
|
5556
|
-
const a = e, t =
|
|
5557
|
-
return (i,
|
|
5706
|
+
const a = e, t = re(), l = p(() => a.activeTabId && a.activeTabId === a.tabId), n = p(() => t.id || `${a.tabId}-panel`);
|
|
5707
|
+
return (i, d) => (u(), v("section", {
|
|
5558
5708
|
"aria-labelledby": e.tabId,
|
|
5559
5709
|
"data-active": l.value,
|
|
5560
5710
|
"data-component": "bs-tab-panel",
|
|
@@ -5562,9 +5712,9 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5562
5712
|
role: "tabpanel"
|
|
5563
5713
|
}, [
|
|
5564
5714
|
E(i.$slots, "default")
|
|
5565
|
-
], 8,
|
|
5715
|
+
], 8, fo));
|
|
5566
5716
|
}
|
|
5567
|
-
},
|
|
5717
|
+
}, po = ["data-error", "id", "rows", "value"], ho = {
|
|
5568
5718
|
__name: "BsTextarea",
|
|
5569
5719
|
props: {
|
|
5570
5720
|
error: {
|
|
@@ -5580,17 +5730,17 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5580
5730
|
emits: ["update:modelValue"],
|
|
5581
5731
|
setup(e, { emit: a }) {
|
|
5582
5732
|
const t = e, l = p(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
5583
|
-
return (n, i) => (u(), v("textarea",
|
|
5733
|
+
return (n, i) => (u(), v("textarea", z({
|
|
5584
5734
|
class: "bs-textarea",
|
|
5585
5735
|
"data-component": "bs-textarea",
|
|
5586
5736
|
"data-error": e.error,
|
|
5587
5737
|
id: n.$attrs.id || e.inputId,
|
|
5588
5738
|
rows: n.$attrs.rows || 6,
|
|
5589
5739
|
value: e.value || e.modelValue,
|
|
5590
|
-
onInput: i[0] || (i[0] = (
|
|
5591
|
-
}, l.value), null, 16,
|
|
5740
|
+
onInput: i[0] || (i[0] = (d) => n.$emit("update:modelValue", d.target.value))
|
|
5741
|
+
}, l.value), null, 16, po));
|
|
5592
5742
|
}
|
|
5593
|
-
},
|
|
5743
|
+
}, pi = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5594
5744
|
__name: "BsTextareaField",
|
|
5595
5745
|
props: {
|
|
5596
5746
|
/** 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. */
|
|
@@ -5639,16 +5789,16 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5639
5789
|
},
|
|
5640
5790
|
emits: ["update:modelValue"],
|
|
5641
5791
|
setup(e, { emit: a }) {
|
|
5642
|
-
const t = e, [l, n] =
|
|
5792
|
+
const t = e, [l, n] = Z(2), i = p(() => Ra.concat(t.passAttrs.split(","))), d = p(() => {
|
|
5643
5793
|
var f;
|
|
5644
5794
|
return ((f = t.value || t.modelValue) == null ? void 0 : f.length) || 0;
|
|
5645
5795
|
}), o = p(() => {
|
|
5646
5796
|
var f, m;
|
|
5647
5797
|
return ((m = (f = t.hints) == null ? void 0 : f.join) == null ? void 0 : m.call(f, `
|
|
5648
5798
|
`)) || t.hints;
|
|
5649
|
-
}),
|
|
5650
|
-
return (f, m) => (u(), v("div",
|
|
5651
|
-
e.label || f.$slots.label ? (u(),
|
|
5799
|
+
}), s = p(() => t.error && t.errorMsg || t.hint || o.value || void 0), r = p(() => t.inputId || l.value);
|
|
5800
|
+
return (f, m) => (u(), v("div", z({ "data-component": "bs-textarea-field" }, c(Y)(f.$attrs, i.value).remaining), [
|
|
5801
|
+
e.label || f.$slots.label ? (u(), A(ae, {
|
|
5652
5802
|
key: 0,
|
|
5653
5803
|
for: f.$attrs.id || r.value,
|
|
5654
5804
|
disabled: e.disabled,
|
|
@@ -5656,12 +5806,12 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5656
5806
|
}, {
|
|
5657
5807
|
default: L(() => [
|
|
5658
5808
|
E(f.$slots, "label", {}, () => [
|
|
5659
|
-
|
|
5809
|
+
U(T(e.label), 1)
|
|
5660
5810
|
])
|
|
5661
5811
|
]),
|
|
5662
5812
|
_: 3
|
|
5663
5813
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
5664
|
-
D(
|
|
5814
|
+
D(ho, z({
|
|
5665
5815
|
disabled: e.disabled,
|
|
5666
5816
|
error: e.error,
|
|
5667
5817
|
"hint-id": c(n),
|
|
@@ -5672,9 +5822,9 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5672
5822
|
value: e.value || e.modelValue,
|
|
5673
5823
|
"onUpdate:modelValue": m[0] || (m[0] = (b) => f.$emit("update:modelValue", b))
|
|
5674
5824
|
}, c(Y)(f.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
|
|
5675
|
-
|
|
5825
|
+
s.value || e.charMax ? (u(), A(ge, {
|
|
5676
5826
|
key: 1,
|
|
5677
|
-
"char-count":
|
|
5827
|
+
"char-count": d.value,
|
|
5678
5828
|
"char-max": e.charMax,
|
|
5679
5829
|
"data-disabled": e.disabled,
|
|
5680
5830
|
error: e.error,
|
|
@@ -5685,23 +5835,23 @@ const Hl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Kl = ["data-sta
|
|
|
5685
5835
|
], 16));
|
|
5686
5836
|
}
|
|
5687
5837
|
});
|
|
5688
|
-
function
|
|
5838
|
+
function vo(e) {
|
|
5689
5839
|
const a = /^([01]?[0-9]|2[0-3]):[0-5][0-9]$/.test(e), t = /^([01]?[0-9]|2[0-3])[0-5][0-9]$/.test(e), l = /^([0]?[0-9]|1[0-2]):[0-5][0-9] ?(a|p|am|pm)$/i.test(e), n = /^([0]?[0-9]|1[0-2])[0-5][0-9] ?(a|p|am|pm)$/i.test(e);
|
|
5690
5840
|
return a ? "uFmt" : t ? "uFmtNoColon" : l ? "amPm" : n ? "amPmNoColon" : "";
|
|
5691
5841
|
}
|
|
5692
5842
|
const we = (e) => parseInt(e, 10);
|
|
5693
|
-
function
|
|
5843
|
+
function mo(e = "") {
|
|
5694
5844
|
const a = /[^0-9:apmAPM]/g;
|
|
5695
5845
|
let t, l;
|
|
5696
|
-
switch (e = e.replaceAll(a, "").toLowerCase(),
|
|
5846
|
+
switch (e = e.replaceAll(a, "").toLowerCase(), vo(e)) {
|
|
5697
5847
|
case "uFmt":
|
|
5698
5848
|
case "uFmtNoColon":
|
|
5699
5849
|
l = we(e.slice(-2)), t = we(e.slice(0, -2));
|
|
5700
5850
|
break;
|
|
5701
5851
|
case "amPm":
|
|
5702
5852
|
case "amPmNoColon":
|
|
5703
|
-
const i = e.split(/(a|p|am|pm)/),
|
|
5704
|
-
l = we(i[0].slice(-2)), t = we(i[0].slice(0, -2)), t < 12 &&
|
|
5853
|
+
const i = e.split(/(a|p|am|pm)/), d = e.includes("p");
|
|
5854
|
+
l = we(i[0].slice(-2)), t = we(i[0].slice(0, -2)), t < 12 && d && (t += 12), t === 12 && !d && (t = 0), t === 24 && (t = 0);
|
|
5705
5855
|
break;
|
|
5706
5856
|
}
|
|
5707
5857
|
return {
|
|
@@ -5713,14 +5863,14 @@ function be(e = "") {
|
|
|
5713
5863
|
const a = /[^0-9:]/g;
|
|
5714
5864
|
if (e = e.replaceAll(a, ""), !e)
|
|
5715
5865
|
return "";
|
|
5716
|
-
const [t, l] = e.split(":"), n = we(t), i = we(l),
|
|
5717
|
-
return isNaN(n) || isNaN(i) || n > 23 || i > 59 ? "" : `${n % 12 || 12}:${l} ${
|
|
5866
|
+
const [t, l] = e.split(":"), n = we(t), i = we(l), d = n < 12 ? "AM" : "PM";
|
|
5867
|
+
return isNaN(n) || isNaN(i) || n > 23 || i > 59 ? "" : `${n % 12 || 12}:${l} ${d}`;
|
|
5718
5868
|
}
|
|
5719
|
-
function
|
|
5720
|
-
const { hours: a, minutes: t } =
|
|
5869
|
+
function bo(e = "") {
|
|
5870
|
+
const { hours: a, minutes: t } = mo(e);
|
|
5721
5871
|
return isNaN(a) || isNaN(t) ? "" : `${a.toString().padStart(2, "0")}:${t.toString().padStart(2, "0")}`;
|
|
5722
5872
|
}
|
|
5723
|
-
const
|
|
5873
|
+
const Ge = "excluded", He = "over", mt = "skip", bt = "stop", Ke = "under", go = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5724
5874
|
__name: "BsTimePicker",
|
|
5725
5875
|
props: {
|
|
5726
5876
|
disabled: {
|
|
@@ -5785,102 +5935,102 @@ const We = "excluded", Ge = "over", mt = "skip", bt = "stop", He = "under", mo =
|
|
|
5785
5935
|
},
|
|
5786
5936
|
emits: ["update:modelValue"],
|
|
5787
5937
|
setup(e, { expose: a, emit: t }) {
|
|
5788
|
-
const l = e, n = t, i = k(be(l.modelValue)),
|
|
5938
|
+
const l = e, n = t, i = k(be(l.modelValue)), d = k([]), o = k(""), s = k(!1);
|
|
5789
5939
|
function r() {
|
|
5790
|
-
const
|
|
5791
|
-
let
|
|
5792
|
-
for (let
|
|
5940
|
+
const B = [];
|
|
5941
|
+
let w = !1;
|
|
5942
|
+
for (let y = 0; y < 24 && !w; y++)
|
|
5793
5943
|
for (let M = 0; M < 60; M += l.step) {
|
|
5794
|
-
const
|
|
5944
|
+
const V = b(y, M), q = m(V);
|
|
5795
5945
|
if (q !== mt) {
|
|
5796
5946
|
if (q === bt) {
|
|
5797
|
-
|
|
5947
|
+
w = !0;
|
|
5798
5948
|
break;
|
|
5799
5949
|
}
|
|
5800
|
-
|
|
5801
|
-
label: be(
|
|
5802
|
-
value:
|
|
5950
|
+
B.push({
|
|
5951
|
+
label: be(V),
|
|
5952
|
+
value: V
|
|
5803
5953
|
});
|
|
5804
5954
|
}
|
|
5805
5955
|
}
|
|
5806
|
-
return
|
|
5956
|
+
return B;
|
|
5807
5957
|
}
|
|
5808
|
-
function f(
|
|
5809
|
-
return
|
|
5958
|
+
function f(B) {
|
|
5959
|
+
return B ? l.minTime && B < l.minTime ? Ke : l.maxTime && B > l.maxTime ? He : l.disabledTimes.includes(B) ? Ge : "" : "";
|
|
5810
5960
|
}
|
|
5811
|
-
function m(
|
|
5812
|
-
switch (f(
|
|
5813
|
-
case Ge:
|
|
5814
|
-
return bt;
|
|
5961
|
+
function m(B) {
|
|
5962
|
+
switch (f(B)) {
|
|
5815
5963
|
case He:
|
|
5816
|
-
|
|
5964
|
+
return bt;
|
|
5965
|
+
case Ke:
|
|
5966
|
+
case Ge:
|
|
5817
5967
|
return mt;
|
|
5818
5968
|
default:
|
|
5819
5969
|
return "";
|
|
5820
5970
|
}
|
|
5821
5971
|
}
|
|
5822
|
-
function b(
|
|
5823
|
-
return
|
|
5972
|
+
function b(B, w) {
|
|
5973
|
+
return B = B.toString().padStart(2, "0"), w = w.toString().padStart(2, "0"), `${B}:${w}`;
|
|
5824
5974
|
}
|
|
5825
|
-
function
|
|
5826
|
-
const
|
|
5827
|
-
|
|
5975
|
+
function g(B) {
|
|
5976
|
+
const w = bo(B);
|
|
5977
|
+
w === l.modelValue && (i.value = be(l.modelValue)), I(w);
|
|
5828
5978
|
}
|
|
5829
|
-
function
|
|
5830
|
-
|
|
5979
|
+
function S() {
|
|
5980
|
+
d.value = r();
|
|
5831
5981
|
}
|
|
5832
|
-
function B
|
|
5833
|
-
h(
|
|
5982
|
+
function I(B) {
|
|
5983
|
+
h(B), n("update:modelValue", B);
|
|
5834
5984
|
}
|
|
5835
|
-
function h(
|
|
5836
|
-
switch (f(
|
|
5837
|
-
case Ge:
|
|
5838
|
-
o.value = `Time must be before ${be(l.maxTime)}`, d.value = !0;
|
|
5839
|
-
break;
|
|
5985
|
+
function h(B) {
|
|
5986
|
+
switch (f(B)) {
|
|
5840
5987
|
case He:
|
|
5841
|
-
o.value = `Time must be
|
|
5988
|
+
o.value = `Time must be before ${be(l.maxTime)}`, s.value = !0;
|
|
5989
|
+
break;
|
|
5990
|
+
case Ke:
|
|
5991
|
+
o.value = `Time must be after ${be(l.minTime)}`, s.value = !0;
|
|
5842
5992
|
break;
|
|
5843
|
-
case
|
|
5844
|
-
o.value = `The following times are disabled: ${l.disabledTimes.map((
|
|
5993
|
+
case Ge:
|
|
5994
|
+
o.value = `The following times are disabled: ${l.disabledTimes.map((y) => be(y)).join(", ")}`, s.value = !0;
|
|
5845
5995
|
break;
|
|
5846
5996
|
default:
|
|
5847
|
-
o.value = "",
|
|
5997
|
+
o.value = "", s.value = !1;
|
|
5848
5998
|
}
|
|
5849
5999
|
}
|
|
5850
|
-
return H(
|
|
6000
|
+
return H(S), j([
|
|
5851
6001
|
() => l.disabledTimes,
|
|
5852
6002
|
() => l.maxTime,
|
|
5853
6003
|
() => l.minTime,
|
|
5854
6004
|
() => l.step
|
|
5855
|
-
],
|
|
6005
|
+
], S), j([
|
|
5856
6006
|
() => l.disabledTimes,
|
|
5857
6007
|
() => l.maxTime,
|
|
5858
6008
|
() => l.minTime,
|
|
5859
6009
|
() => l.modelValue
|
|
5860
|
-
], () => h(l.modelValue)), j(() => l.modelValue, (
|
|
5861
|
-
i.value = l.modelValue ? be(
|
|
6010
|
+
], () => h(l.modelValue)), j(() => l.modelValue, (B) => {
|
|
6011
|
+
i.value = l.modelValue ? be(B) : "";
|
|
5862
6012
|
}), a({
|
|
5863
|
-
validationErr:
|
|
6013
|
+
validationErr: s,
|
|
5864
6014
|
validationErrMsg: o
|
|
5865
|
-
}), (
|
|
6015
|
+
}), (B, w) => (u(), A(Ot, {
|
|
5866
6016
|
disabled: e.disabled,
|
|
5867
6017
|
"display-value": i.value,
|
|
5868
6018
|
"dropdown-position": e.dropdownPosition,
|
|
5869
6019
|
"dropdown-width": e.dropdownWidth,
|
|
5870
|
-
error: e.error ||
|
|
6020
|
+
error: e.error || s.value,
|
|
5871
6021
|
"helper-description": e.helperDescription,
|
|
5872
6022
|
"helper-text": e.helperText,
|
|
5873
6023
|
"hint-id": e.hintId,
|
|
5874
6024
|
"input-id": e.inputId,
|
|
5875
6025
|
"model-value": e.modelValue,
|
|
5876
|
-
options:
|
|
6026
|
+
options: d.value,
|
|
5877
6027
|
placeholder: e.placeholder,
|
|
5878
6028
|
required: e.required,
|
|
5879
6029
|
"update-on-input": !1,
|
|
5880
|
-
"onUpdate:modelValue":
|
|
6030
|
+
"onUpdate:modelValue": g
|
|
5881
6031
|
}, null, 8, ["disabled", "display-value", "dropdown-position", "dropdown-width", "error", "helper-description", "helper-text", "hint-id", "input-id", "model-value", "options", "placeholder", "required"]));
|
|
5882
6032
|
}
|
|
5883
|
-
}),
|
|
6033
|
+
}), hi = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5884
6034
|
__name: "BsTimePickerField",
|
|
5885
6035
|
props: {
|
|
5886
6036
|
disabled: {
|
|
@@ -5949,64 +6099,64 @@ const We = "excluded", Ge = "over", mt = "skip", bt = "stop", He = "under", mo =
|
|
|
5949
6099
|
},
|
|
5950
6100
|
emits: ["update:modelValue"],
|
|
5951
6101
|
setup(e, { expose: a, emit: t }) {
|
|
5952
|
-
const l = e, [n, i] =
|
|
5953
|
-
var
|
|
5954
|
-
return (
|
|
6102
|
+
const l = e, [n, i] = Z(2), d = k(null), o = p(() => l.errorMsg || m.value), s = p(() => l.error || b.value), r = p(() => l.inputId || n.value), f = p(() => l.hint || s.value && o.value), m = p(() => {
|
|
6103
|
+
var g;
|
|
6104
|
+
return (g = d.value) == null ? void 0 : g.validationErrMsg;
|
|
5955
6105
|
}), b = p(() => {
|
|
5956
|
-
var
|
|
5957
|
-
return (
|
|
6106
|
+
var g;
|
|
6107
|
+
return (g = d.value) == null ? void 0 : g.validationErr;
|
|
5958
6108
|
});
|
|
5959
6109
|
return a({
|
|
5960
6110
|
validationErr: b,
|
|
5961
6111
|
validationErrMsg: m
|
|
5962
|
-
}), (
|
|
6112
|
+
}), (g, S) => (u(), v("div", z({
|
|
5963
6113
|
"aria-live": "polite",
|
|
5964
6114
|
"data-component": "bs-time-picker-field"
|
|
5965
|
-
}, c(Y)(
|
|
5966
|
-
e.label ||
|
|
6115
|
+
}, c(Y)(g.$attrs, c(ve)).remaining), [
|
|
6116
|
+
e.label || g.$slots.label ? (u(), A(ae, {
|
|
5967
6117
|
key: 0,
|
|
5968
|
-
for:
|
|
6118
|
+
for: g.$attrs.id || r.value,
|
|
5969
6119
|
disabled: e.disabled,
|
|
5970
6120
|
required: e.required
|
|
5971
6121
|
}, {
|
|
5972
6122
|
default: L(() => [
|
|
5973
|
-
E(
|
|
5974
|
-
|
|
6123
|
+
E(g.$slots, "label", {}, () => [
|
|
6124
|
+
U(T(e.label), 1)
|
|
5975
6125
|
])
|
|
5976
6126
|
]),
|
|
5977
6127
|
_: 3
|
|
5978
6128
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
5979
|
-
D(
|
|
6129
|
+
D(go, z({
|
|
5980
6130
|
ref_key: "timePicker",
|
|
5981
|
-
ref:
|
|
6131
|
+
ref: d,
|
|
5982
6132
|
disabled: e.disabled,
|
|
5983
6133
|
"disabled-times": e.disabledTimes,
|
|
5984
6134
|
"dropdown-position": e.dropdownPosition,
|
|
5985
6135
|
"dropdown-width": e.dropdownWidth,
|
|
5986
|
-
error:
|
|
6136
|
+
error: s.value,
|
|
5987
6137
|
"helper-description": e.helperDescription,
|
|
5988
6138
|
"helper-text": e.helperText,
|
|
5989
6139
|
"hint-id": c(i),
|
|
5990
|
-
"input-id":
|
|
6140
|
+
"input-id": g.$attrs.id || r.value,
|
|
5991
6141
|
"max-time": e.maxTime,
|
|
5992
6142
|
"min-time": e.minTime,
|
|
5993
6143
|
"model-value": e.modelValue,
|
|
5994
6144
|
placeholder: e.placeholder,
|
|
5995
6145
|
required: e.required,
|
|
5996
6146
|
step: e.step,
|
|
5997
|
-
"onUpdate:modelValue":
|
|
5998
|
-
}, c(Y)(
|
|
5999
|
-
|
|
6000
|
-
error:
|
|
6147
|
+
"onUpdate:modelValue": S[0] || (S[0] = (I) => g.$emit("update:modelValue", I))
|
|
6148
|
+
}, c(Y)(g.$attrs, c(ve)).filtered), null, 16, ["disabled", "disabled-times", "dropdown-position", "dropdown-width", "error", "helper-description", "helper-text", "hint-id", "input-id", "max-time", "min-time", "model-value", "placeholder", "required", "step"]),
|
|
6149
|
+
ue(D(ge, {
|
|
6150
|
+
error: s.value,
|
|
6001
6151
|
"error-msg": o.value,
|
|
6002
6152
|
hint: e.hint,
|
|
6003
6153
|
"hint-id": c(i)
|
|
6004
6154
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
6005
|
-
[
|
|
6155
|
+
[ce, f.value]
|
|
6006
6156
|
])
|
|
6007
6157
|
], 16));
|
|
6008
6158
|
}
|
|
6009
|
-
}),
|
|
6159
|
+
}), yo = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], So = ["data-status"], wo = { class: "visually-hidden" }, vi = {
|
|
6010
6160
|
__name: "BsTimeline",
|
|
6011
6161
|
props: {
|
|
6012
6162
|
/** @type {Status} */
|
|
@@ -6035,19 +6185,19 @@ const We = "excluded", Ge = "over", mt = "skip", bt = "stop", He = "under", mo =
|
|
|
6035
6185
|
},
|
|
6036
6186
|
setup(e) {
|
|
6037
6187
|
const a = e, t = {
|
|
6038
|
-
cancelled:
|
|
6039
|
-
complete:
|
|
6040
|
-
error:
|
|
6041
|
-
"in-progress":
|
|
6188
|
+
cancelled: Kt,
|
|
6189
|
+
complete: Yt,
|
|
6190
|
+
error: Zt,
|
|
6191
|
+
"in-progress": Xt,
|
|
6042
6192
|
"not-started": dt,
|
|
6043
|
-
ongoing:
|
|
6044
|
-
paused:
|
|
6045
|
-
warning:
|
|
6046
|
-
}, { progressStep: l, progressText: n, getStatus: i } =
|
|
6047
|
-
function
|
|
6048
|
-
return o = i(o,
|
|
6049
|
-
}
|
|
6050
|
-
return (o,
|
|
6193
|
+
ongoing: Qt,
|
|
6194
|
+
paused: Jt,
|
|
6195
|
+
warning: kt
|
|
6196
|
+
}, { progressStep: l, progressText: n, getStatus: i } = Dt(a);
|
|
6197
|
+
function d(o, s) {
|
|
6198
|
+
return o = i(o, s), t[o] || dt;
|
|
6199
|
+
}
|
|
6200
|
+
return (o, s) => (u(), v("div", {
|
|
6051
6201
|
"aria-valuemax": e.steps.length,
|
|
6052
6202
|
"aria-valuenow": c(l),
|
|
6053
6203
|
"aria-valuetext": c(n),
|
|
@@ -6060,18 +6210,18 @@ const We = "excluded", Ge = "over", mt = "skip", bt = "stop", He = "under", mo =
|
|
|
6060
6210
|
key: r.id || r.label,
|
|
6061
6211
|
role: "status"
|
|
6062
6212
|
}, [
|
|
6063
|
-
(u(),
|
|
6213
|
+
(u(), A(te(d(r.status, f)), {
|
|
6064
6214
|
class: "bs-step-icon",
|
|
6065
6215
|
role: "presentation"
|
|
6066
6216
|
})),
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6217
|
+
$("p", null, [
|
|
6218
|
+
U(T(r.label || r) + " ", 1),
|
|
6219
|
+
$("span", wo, " : " + T(c(i)(r.status, f) || "not started"), 1)
|
|
6070
6220
|
])
|
|
6071
|
-
], 8,
|
|
6072
|
-
], 8,
|
|
6221
|
+
], 8, So))), 128))
|
|
6222
|
+
], 8, yo));
|
|
6073
6223
|
}
|
|
6074
|
-
},
|
|
6224
|
+
}, $o = ["data-variant", "data-shown", "data-stacked"], mi = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
6075
6225
|
__name: "BsToast",
|
|
6076
6226
|
props: {
|
|
6077
6227
|
shown: {
|
|
@@ -6119,38 +6269,38 @@ const We = "excluded", Ge = "over", mt = "skip", bt = "stop", He = "under", mo =
|
|
|
6119
6269
|
setup(e, { emit: a }) {
|
|
6120
6270
|
const t = e, l = a, { transition: n } = Le(t);
|
|
6121
6271
|
let i = null;
|
|
6122
|
-
|
|
6123
|
-
const
|
|
6272
|
+
fe("variant", t.variant), fe("handleDismiss", o);
|
|
6273
|
+
const d = pe("stacked", t.stacked);
|
|
6124
6274
|
function o() {
|
|
6125
6275
|
i && (clearTimeout(i), i = null), l("dismiss", t.toastId);
|
|
6126
6276
|
}
|
|
6127
|
-
function
|
|
6277
|
+
function s() {
|
|
6128
6278
|
t.duration > 0 && (i = setTimeout(() => {
|
|
6129
6279
|
o();
|
|
6130
6280
|
}, t.duration)), l("after-enter");
|
|
6131
6281
|
}
|
|
6132
|
-
return (r, f) => (u(),
|
|
6282
|
+
return (r, f) => (u(), A(qe, {
|
|
6133
6283
|
name: "bs-toast",
|
|
6134
6284
|
shown: c(n),
|
|
6135
6285
|
preloaded: e.preloaded,
|
|
6136
|
-
onAfterEnter:
|
|
6286
|
+
onAfterEnter: s,
|
|
6137
6287
|
onAfterLeave: f[0] || (f[0] = (m) => l("after-leave"))
|
|
6138
6288
|
}, {
|
|
6139
6289
|
default: L(() => [
|
|
6140
|
-
|
|
6290
|
+
$("div", z({
|
|
6141
6291
|
class: "bs-toast",
|
|
6142
6292
|
"data-variant": e.variant,
|
|
6143
6293
|
"data-shown": c(n),
|
|
6144
|
-
"data-stacked": c(
|
|
6294
|
+
"data-stacked": c(d) || void 0,
|
|
6145
6295
|
role: "alert"
|
|
6146
6296
|
}, r.$attrs), [
|
|
6147
6297
|
E(r.$slots, "default")
|
|
6148
|
-
], 16,
|
|
6298
|
+
], 16, $o)
|
|
6149
6299
|
]),
|
|
6150
6300
|
_: 3
|
|
6151
6301
|
}, 8, ["shown", "preloaded"]));
|
|
6152
6302
|
}
|
|
6153
|
-
}),
|
|
6303
|
+
}), Bo = ["data-stacked"], bi = {
|
|
6154
6304
|
__name: "BsToastActions",
|
|
6155
6305
|
setup(e) {
|
|
6156
6306
|
const a = k(!1);
|
|
@@ -6159,69 +6309,69 @@ const We = "excluded", Ge = "over", mt = "skip", bt = "stop", He = "under", mo =
|
|
|
6159
6309
|
const l = yt();
|
|
6160
6310
|
((n = l.default) == null ? void 0 : n.call(l).length) > 2 && (a.value = !0);
|
|
6161
6311
|
});
|
|
6162
|
-
const t =
|
|
6312
|
+
const t = pe("handleDismiss");
|
|
6163
6313
|
return (l, n) => (u(), v("div", {
|
|
6164
6314
|
class: "bs-toast-actions",
|
|
6165
6315
|
"data-stacked": a.value || void 0
|
|
6166
6316
|
}, [
|
|
6167
6317
|
E(l.$slots, "default", {}, () => [
|
|
6168
|
-
D(
|
|
6318
|
+
D(ka, {
|
|
6169
6319
|
size: "sm",
|
|
6170
6320
|
"text-btn": "",
|
|
6171
6321
|
onClick: c(t)
|
|
6172
6322
|
}, {
|
|
6173
6323
|
default: L(() => [
|
|
6174
|
-
|
|
6324
|
+
U(" Dismiss ")
|
|
6175
6325
|
]),
|
|
6176
6326
|
_: 1
|
|
6177
6327
|
}, 8, ["onClick"])
|
|
6178
6328
|
])
|
|
6179
|
-
], 8,
|
|
6329
|
+
], 8, Bo));
|
|
6180
6330
|
}
|
|
6181
|
-
},
|
|
6331
|
+
}, Io = (e, a) => {
|
|
6182
6332
|
const t = e.__vccOpts || e;
|
|
6183
6333
|
for (const [l, n] of a)
|
|
6184
6334
|
t[l] = n;
|
|
6185
6335
|
return t;
|
|
6186
|
-
},
|
|
6187
|
-
function
|
|
6188
|
-
return u(), v("div",
|
|
6336
|
+
}, ko = {}, Co = { class: "bs-toast-body" };
|
|
6337
|
+
function xo(e, a) {
|
|
6338
|
+
return u(), v("div", Co, [
|
|
6189
6339
|
E(e.$slots, "default")
|
|
6190
6340
|
]);
|
|
6191
6341
|
}
|
|
6192
|
-
const
|
|
6342
|
+
const gi = /* @__PURE__ */ Io(ko, [["render", xo]]), To = ["data-variant"], yi = {
|
|
6193
6343
|
__name: "BsToastHeader",
|
|
6194
6344
|
setup(e) {
|
|
6195
|
-
const a =
|
|
6345
|
+
const a = pe("variant"), t = p(() => {
|
|
6196
6346
|
switch (a) {
|
|
6197
6347
|
case "warning":
|
|
6198
|
-
return
|
|
6348
|
+
return Xe;
|
|
6199
6349
|
case "positive":
|
|
6200
|
-
return
|
|
6350
|
+
return _t;
|
|
6201
6351
|
case "negative":
|
|
6202
|
-
return
|
|
6352
|
+
return Xe;
|
|
6203
6353
|
default:
|
|
6204
|
-
return
|
|
6354
|
+
return kt;
|
|
6205
6355
|
}
|
|
6206
6356
|
});
|
|
6207
6357
|
return (l, n) => (u(), v("div", {
|
|
6208
6358
|
class: "bs-toast-header",
|
|
6209
6359
|
"data-variant": c(a)
|
|
6210
6360
|
}, [
|
|
6211
|
-
(u(),
|
|
6212
|
-
|
|
6361
|
+
(u(), A(te(t.value), { class: "bs-toast-header-icon" })),
|
|
6362
|
+
$("h5", null, [
|
|
6213
6363
|
E(l.$slots, "default")
|
|
6214
6364
|
])
|
|
6215
|
-
], 8,
|
|
6365
|
+
], 8, To));
|
|
6216
6366
|
}
|
|
6217
|
-
},
|
|
6367
|
+
}, Ao = { class: "bs-toaster" }, Si = {
|
|
6218
6368
|
__name: "BsToaster",
|
|
6219
6369
|
setup(e) {
|
|
6220
|
-
return
|
|
6370
|
+
return fe("stacked", !0), (a, t) => (u(), v("div", Ao, [
|
|
6221
6371
|
E(a.$slots, "default")
|
|
6222
6372
|
]));
|
|
6223
6373
|
}
|
|
6224
|
-
},
|
|
6374
|
+
}, Vo = ["data-position"], Oo = ["id"], wi = {
|
|
6225
6375
|
__name: "BsTooltip",
|
|
6226
6376
|
props: {
|
|
6227
6377
|
tooltipId: {
|
|
@@ -6252,23 +6402,23 @@ const vi = /* @__PURE__ */ $o(Bo, [["render", ko]]), Co = ["data-variant"], mi =
|
|
|
6252
6402
|
let o = "bs-tooltip-text";
|
|
6253
6403
|
return l.value && (a.position === void 0 || a.position === "top" || a.position === "bottom" ? o += " escaped-x" : a.position === "left" || a.position === "right" ? o += " escaped-y" : o += " escaped"), o;
|
|
6254
6404
|
});
|
|
6255
|
-
|
|
6405
|
+
he(["Escape"], () => {
|
|
6256
6406
|
t.value && (t.value = !1, l.value = !0);
|
|
6257
6407
|
});
|
|
6258
6408
|
function i() {
|
|
6259
6409
|
t.value = !0;
|
|
6260
6410
|
}
|
|
6261
|
-
function
|
|
6411
|
+
function d() {
|
|
6262
6412
|
t.value = !1, l.value = !1;
|
|
6263
6413
|
}
|
|
6264
|
-
return (o,
|
|
6414
|
+
return (o, s) => (u(), v("div", {
|
|
6265
6415
|
class: "bs-tooltip",
|
|
6266
6416
|
"data-position": e.position || void 0,
|
|
6267
6417
|
"data-component": "bs-tooltip",
|
|
6268
6418
|
onMouseenter: i,
|
|
6269
6419
|
onFocusin: i,
|
|
6270
|
-
onMouseleave:
|
|
6271
|
-
onFocusout:
|
|
6420
|
+
onMouseleave: d,
|
|
6421
|
+
onFocusout: d
|
|
6272
6422
|
}, [
|
|
6273
6423
|
E(o.$slots, "default"),
|
|
6274
6424
|
e.content ? (u(), v("div", {
|
|
@@ -6276,68 +6426,69 @@ const vi = /* @__PURE__ */ $o(Bo, [["render", ko]]), Co = ["data-variant"], mi =
|
|
|
6276
6426
|
class: ie(n.value),
|
|
6277
6427
|
id: e.tooltipId,
|
|
6278
6428
|
role: "tooltip"
|
|
6279
|
-
},
|
|
6280
|
-
], 40,
|
|
6429
|
+
}, T(e.content), 11, Oo)) : C("", !0)
|
|
6430
|
+
], 40, Vo));
|
|
6281
6431
|
}
|
|
6282
6432
|
};
|
|
6283
6433
|
export {
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6434
|
+
Ro as BsAccordion,
|
|
6435
|
+
wa as BsBadge,
|
|
6436
|
+
Fo as BsBanner,
|
|
6437
|
+
ka as BsButton,
|
|
6438
|
+
jo as BsCalendar,
|
|
6439
|
+
Wo as BsCaretButton,
|
|
6440
|
+
Uo as BsCaretTextButton,
|
|
6441
|
+
Go as BsChartBar,
|
|
6442
|
+
Ho as BsCheckbox,
|
|
6443
|
+
xt as BsCircleButton,
|
|
6294
6444
|
lt as BsDropdown,
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6445
|
+
Ot as BsDropdownCombobox,
|
|
6446
|
+
Ko as BsDropdownComboboxField,
|
|
6447
|
+
Et as BsDropdownMultiselect,
|
|
6298
6448
|
ot as BsDropdownOption,
|
|
6299
6449
|
Pe as BsDropdownOptionBuilder,
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
|
|
6450
|
+
Fe as BsDropdownOptionList,
|
|
6451
|
+
Lt as BsDropdownWithOptions,
|
|
6452
|
+
Vt as BsDropdownWithToggle,
|
|
6453
|
+
Yo as BsEmptyState,
|
|
6304
6454
|
ge as BsFieldDetails,
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6455
|
+
$n as BsFilterButton,
|
|
6456
|
+
Zo as BsFlyout,
|
|
6457
|
+
Xo as BsIconGradientWrapper,
|
|
6308
6458
|
Ie as BsInput,
|
|
6309
6459
|
De as BsInputAddon,
|
|
6310
|
-
|
|
6311
|
-
|
|
6460
|
+
Qo as BsInputField,
|
|
6461
|
+
Jo as BsInputPhone,
|
|
6312
6462
|
el as BsInputSearch,
|
|
6313
|
-
|
|
6463
|
+
_o as BsInputTypeahead,
|
|
6314
6464
|
ae as BsLabel,
|
|
6315
|
-
|
|
6316
|
-
|
|
6465
|
+
ei as BsLoader,
|
|
6466
|
+
ti as BsModal,
|
|
6317
6467
|
bl as BsOverlay,
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6468
|
+
ai as BsPagination,
|
|
6469
|
+
ni as BsPill,
|
|
6470
|
+
li as BsProfile,
|
|
6321
6471
|
Gl as BsProfileDetails,
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
|
|
6472
|
+
At as BsProfileImg,
|
|
6473
|
+
oi as BsProgressBar,
|
|
6474
|
+
ii as BsRadio,
|
|
6325
6475
|
Ql as BsSelect,
|
|
6326
|
-
|
|
6476
|
+
ri as BsSelectField,
|
|
6477
|
+
si as BsSelectWithDropdown,
|
|
6327
6478
|
vt as BsSpinner,
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6479
|
+
di as BsSwitch,
|
|
6480
|
+
ui as BsTab,
|
|
6481
|
+
ci as BsTabList,
|
|
6482
|
+
fi as BsTabPanel,
|
|
6483
|
+
ho as BsTextarea,
|
|
6484
|
+
pi as BsTextareaField,
|
|
6485
|
+
go as BsTimePicker,
|
|
6486
|
+
hi as BsTimePickerField,
|
|
6487
|
+
vi as BsTimeline,
|
|
6488
|
+
mi as BsToast,
|
|
6489
|
+
bi as BsToastActions,
|
|
6490
|
+
gi as BsToastBody,
|
|
6491
|
+
yi as BsToastHeader,
|
|
6492
|
+
Si as BsToaster,
|
|
6493
|
+
wi as BsTooltip
|
|
6343
6494
|
};
|