@wwtdev/bsds-components-vue3 2.15.0 → 2.16.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 +1143 -1103
- package/lib/components.css +1 -1
- package/package.json +3 -3
package/lib/bsds-components.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { computed as f, ref as
|
|
2
|
-
import { BsIconCaretDown as Me, BsIconWarning as Xe, BsIconClose as $e, BsIconCalendar as Bt, BsIconCaretRight as $t, BsIconCaretLeft as It, BsIconSmallCaretRight as
|
|
3
|
-
import { DatePicker as
|
|
4
|
-
import { Filler as
|
|
1
|
+
import { computed as f, ref as I, onMounted as X, onUnmounted as Be, shallowRef as zt, watch as G, defineAsyncComponent as Je, useId as yt, openBlock as d, createElementBlock as b, unref as c, createElementVNode as w, renderSlot as V, createBlock as O, resolveDynamicComponent as ae, createCommentVNode as C, createTextVNode as U, toDisplayString as T, createVNode as P, normalizeClass as le, useAttrs as re, mergeProps as z, withCtx as D, Fragment as K, toHandlers as Ye, onBeforeUnmount as _e, onBeforeMount as St, nextTick as Ae, createSlots as Ze, useSlots as et, renderList as te, Teleport as Ft, withDirectives as ue, Transition as dt, vShow as ce, provide as fe, inject as pe, withModifiers as wt, isRef as Rt } from "vue";
|
|
2
|
+
import { BsIconCaretDown as Me, BsIconWarning as Xe, BsIconClose as $e, BsIconCalendar as Bt, BsIconCaretRight as $t, BsIconCaretLeft as It, BsIconSmallCaretRight as jt, BsIconSmallCaretLeft as Wt, BsIconSearch as Ut, BsIconCaretSort as Gt, BsIconCaretLeftDouble as Ht, BsIconCaretRightDouble as Kt, BsIconActionEllipsis as Yt, BsIconGraphPieEmpty as ut, BsIconCircleStop as Zt, BsIconCircleCheck as Xt, BsIconCircleX as Qt, BsIconCircleEllipsis as Jt, BsIconCirclePlay as _t, BsIconCirclePause as ea, BsIconCircleExclamation as kt, BsIconThumbsUpStroke as ta } from "@wwtdev/bsds-icons-vue3";
|
|
3
|
+
import { DatePicker as aa } from "v-calendar";
|
|
4
|
+
import { Filler as na, Chart as je, BarController as la, BarElement as oa, CategoryScale as ia, LinearScale as ra, Legend as sa, TimeScale as da, Tooltip as ua } from "chart.js";
|
|
5
5
|
import "chartjs-adapter-date-fns";
|
|
6
6
|
import Ne from "lodash.merge";
|
|
7
|
-
import { getSupportedCallingCodes as
|
|
8
|
-
const
|
|
7
|
+
import { getSupportedCallingCodes as ca, getRegionCodeForCountryCode as fa, parsePhoneNumber as ct } from "awesome-phonenumber";
|
|
8
|
+
const ft = {
|
|
9
9
|
href: "a",
|
|
10
10
|
linkTo: "a",
|
|
11
11
|
onclick: "button",
|
|
@@ -13,20 +13,20 @@ const ct = {
|
|
|
13
13
|
type: "button"
|
|
14
14
|
};
|
|
15
15
|
function ze(e, a, t = "button") {
|
|
16
|
-
const l =
|
|
16
|
+
const l = pa(e, a, t), n = f(() => {
|
|
17
17
|
const o = l.value === "button", s = {};
|
|
18
18
|
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;
|
|
19
19
|
}), i = f(() => {
|
|
20
20
|
const o = { ...a, ...n.value };
|
|
21
21
|
return delete o.href, o;
|
|
22
|
-
}),
|
|
23
|
-
return { rootTag: l, attrsToBind: i, hrefUrl:
|
|
24
|
-
}
|
|
25
|
-
function fa(e, a, t) {
|
|
26
|
-
const l = Object.keys(ct).find((n) => pa(e, a, n));
|
|
27
|
-
return w(ct[l] || t);
|
|
22
|
+
}), u = f(() => e.linkTo || e.href);
|
|
23
|
+
return { rootTag: l, attrsToBind: i, hrefUrl: u };
|
|
28
24
|
}
|
|
29
25
|
function pa(e, a, t) {
|
|
26
|
+
const l = Object.keys(ft).find((n) => ma(e, a, n));
|
|
27
|
+
return I(ft[l] || t);
|
|
28
|
+
}
|
|
29
|
+
function ma(e, a, t) {
|
|
30
30
|
return e[t] || a[t];
|
|
31
31
|
}
|
|
32
32
|
const Ct = (e, a) => {
|
|
@@ -36,7 +36,7 @@ const Ct = (e, a) => {
|
|
|
36
36
|
return (i = n.value) == null ? void 0 : i.contains(l.target);
|
|
37
37
|
}) || a(l);
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
X(() => {
|
|
40
40
|
document.addEventListener("mouseup", t);
|
|
41
41
|
}), Be(() => {
|
|
42
42
|
document.removeEventListener("mouseup", t);
|
|
@@ -44,11 +44,11 @@ const Ct = (e, a) => {
|
|
|
44
44
|
};
|
|
45
45
|
function Fe(e) {
|
|
46
46
|
const a = f(() => e.linkTo || e.href || ""), t = f(() => {
|
|
47
|
-
var i,
|
|
48
|
-
return ((
|
|
47
|
+
var i, u;
|
|
48
|
+
return ((u = (i = a.value) == null ? void 0 : i.startsWith) == null ? void 0 : u.call(i, "/")) || !1;
|
|
49
49
|
}), l = f(() => {
|
|
50
|
-
var i,
|
|
51
|
-
return t.value && ((i = e.router) == null ? void 0 : i.navigateTo) || ((
|
|
50
|
+
var i, u;
|
|
51
|
+
return t.value && ((i = e.router) == null ? void 0 : i.navigateTo) || ((u = e.router) == null ? void 0 : u.push) || null;
|
|
52
52
|
});
|
|
53
53
|
function n(i) {
|
|
54
54
|
if (e.disabled) {
|
|
@@ -60,75 +60,75 @@ function Fe(e) {
|
|
|
60
60
|
}
|
|
61
61
|
return { onLinkClick: n };
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function pt(e) {
|
|
64
64
|
return e.split("-").map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("");
|
|
65
65
|
}
|
|
66
66
|
const Oe = (e, a) => {
|
|
67
67
|
var i;
|
|
68
|
-
function t(
|
|
69
|
-
if (!
|
|
70
|
-
const o =
|
|
68
|
+
function t(u) {
|
|
69
|
+
if (!u) return null;
|
|
70
|
+
const o = u.startsWith("bs-") ? pt(u) : `BsIcon${pt(u)}`;
|
|
71
71
|
return Je(async () => {
|
|
72
72
|
const { [o]: s } = await import("@wwtdev/bsds-icons-vue3");
|
|
73
73
|
return s;
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
const l =
|
|
77
|
-
return l.value = t(n),
|
|
76
|
+
const l = zt(), n = e[a] || ((i = e == null ? void 0 : e.value) == null ? void 0 : i[a]);
|
|
77
|
+
return l.value = t(n), G(
|
|
78
78
|
[
|
|
79
79
|
() => e[a],
|
|
80
80
|
() => {
|
|
81
|
-
var
|
|
82
|
-
return (
|
|
81
|
+
var u;
|
|
82
|
+
return (u = e == null ? void 0 : e.value) == null ? void 0 : u[a];
|
|
83
83
|
}
|
|
84
84
|
],
|
|
85
|
-
async ([
|
|
85
|
+
async ([u, o]) => l.value = t(u || o)
|
|
86
86
|
), { icon: l };
|
|
87
87
|
};
|
|
88
88
|
function Q(e = 1) {
|
|
89
89
|
const a = [];
|
|
90
90
|
for (let t = 0; t < e; t++)
|
|
91
|
-
a.push(
|
|
92
|
-
return
|
|
93
|
-
a.forEach((t) => t.value =
|
|
91
|
+
a.push(I(""));
|
|
92
|
+
return X(() => {
|
|
93
|
+
a.forEach((t) => t.value = yt());
|
|
94
94
|
}), a;
|
|
95
95
|
}
|
|
96
96
|
const me = (e, a, t = void 0) => {
|
|
97
97
|
const l = (n) => {
|
|
98
|
-
var i,
|
|
99
|
-
((i = e == null ? void 0 : e.includes) != null && i.call(e, n.key) || (
|
|
98
|
+
var i, u;
|
|
99
|
+
((i = e == null ? void 0 : e.includes) != null && i.call(e, n.key) || (u = e == null ? void 0 : e.some) != null && u.call(e, (o) => {
|
|
100
100
|
var s;
|
|
101
101
|
return (s = o == null ? void 0 : o.test) == null ? void 0 : s.call(o, n.key);
|
|
102
102
|
})) && a(n);
|
|
103
103
|
};
|
|
104
|
-
|
|
104
|
+
X(() => {
|
|
105
105
|
((t == null ? void 0 : t.value) ?? document).addEventListener("keydown", l);
|
|
106
106
|
}), Be(() => {
|
|
107
107
|
((t == null ? void 0 : t.value) ?? document).removeEventListener("keydown", l);
|
|
108
108
|
});
|
|
109
|
-
},
|
|
109
|
+
}, ba = (e, a, t) => {
|
|
110
110
|
let l = null;
|
|
111
|
-
|
|
111
|
+
X(() => {
|
|
112
112
|
l = new MutationObserver(a), l.observe(e.value, t);
|
|
113
113
|
}), Be(() => {
|
|
114
114
|
l.disconnect();
|
|
115
115
|
});
|
|
116
|
-
},
|
|
117
|
-
const a =
|
|
118
|
-
return
|
|
116
|
+
}, Ee = (e) => {
|
|
117
|
+
const a = I(!1);
|
|
118
|
+
return X(() => {
|
|
119
119
|
e.enterControlled ? a.value = e.enterTrigger : a.value = e.shown;
|
|
120
|
-
}),
|
|
120
|
+
}), G(() => e.shown, (t) => {
|
|
121
121
|
a.value = t;
|
|
122
|
-
}),
|
|
122
|
+
}), G(() => e.enterTrigger, (t) => {
|
|
123
123
|
a.value = t;
|
|
124
|
-
}),
|
|
124
|
+
}), G(() => e.leaveTrigger, (t) => {
|
|
125
125
|
t && (a.value = !1);
|
|
126
126
|
}), { transition: a };
|
|
127
|
-
},
|
|
127
|
+
}, ha = ["id", "data-stacked"], va = ["data-open"], ga = ["aria-controls", "aria-expanded"], ya = {
|
|
128
128
|
key: 0,
|
|
129
129
|
"data-position": "start",
|
|
130
130
|
style: { display: "inline-flex" }
|
|
131
|
-
},
|
|
131
|
+
}, Sa = ["id"], wa = ["aria-labelledby", "data-open", "id"], Oo = {
|
|
132
132
|
__name: "BsAccordion",
|
|
133
133
|
props: {
|
|
134
134
|
controlled: { type: Boolean, default: !1 },
|
|
@@ -145,11 +145,11 @@ const me = (e, a, t = void 0) => {
|
|
|
145
145
|
},
|
|
146
146
|
emits: ["toggled"],
|
|
147
147
|
setup(e, { emit: a }) {
|
|
148
|
-
const t = e, l = a, n =
|
|
148
|
+
const t = e, l = a, n = I(null), i = I(!1), { icon: u } = Oe(t, "icon"), [o] = Q(), s = f(() => o.value + "-content"), r = f(() => o.value + "-title"), m = f(() => t.openItemId && t.openItemId === o.value || t.openItem === !0), g = f(() => t.controlled ? m.value : i.value);
|
|
149
149
|
function v() {
|
|
150
150
|
l("toggled", o.value), t.controlled || (i.value = !i.value);
|
|
151
151
|
}
|
|
152
|
-
return (
|
|
152
|
+
return (h, y) => (d(), b("div", {
|
|
153
153
|
id: c(o),
|
|
154
154
|
ref_key: "containerRef",
|
|
155
155
|
ref: n,
|
|
@@ -157,47 +157,47 @@ const me = (e, a, t = void 0) => {
|
|
|
157
157
|
"data-component": "bs-accordion",
|
|
158
158
|
"data-stacked": e.stacked
|
|
159
159
|
}, [
|
|
160
|
-
|
|
160
|
+
w("header", {
|
|
161
161
|
part: "header",
|
|
162
|
-
"data-open":
|
|
162
|
+
"data-open": g.value
|
|
163
163
|
}, [
|
|
164
|
-
|
|
164
|
+
w("button", {
|
|
165
165
|
"aria-controls": s.value,
|
|
166
|
-
"aria-expanded":
|
|
166
|
+
"aria-expanded": g.value,
|
|
167
167
|
type: "button",
|
|
168
168
|
onClick: v
|
|
169
169
|
}, [
|
|
170
|
-
e.icon ||
|
|
171
|
-
V(
|
|
172
|
-
e.icon ? (
|
|
170
|
+
e.icon || h.$slots.icon ? (d(), b("span", ya, [
|
|
171
|
+
V(h.$slots, "icon", {}, () => [
|
|
172
|
+
e.icon ? (d(), O(ae(c(u) ? c(u) : "span"), { key: 0 })) : C("", !0)
|
|
173
173
|
])
|
|
174
174
|
])) : C("", !0),
|
|
175
|
-
|
|
176
|
-
V(
|
|
177
|
-
|
|
175
|
+
w("span", { id: r.value }, [
|
|
176
|
+
V(h.$slots, "header", {}, () => [
|
|
177
|
+
U(T(e.headerText), 1)
|
|
178
178
|
])
|
|
179
|
-
], 8,
|
|
179
|
+
], 8, Sa),
|
|
180
180
|
P(c(Me), {
|
|
181
181
|
size: "md",
|
|
182
182
|
"data-position": "end"
|
|
183
183
|
})
|
|
184
|
-
], 8,
|
|
185
|
-
], 8,
|
|
186
|
-
|
|
184
|
+
], 8, ga)
|
|
185
|
+
], 8, va),
|
|
186
|
+
w("div", {
|
|
187
187
|
"aria-labelledby": r.value,
|
|
188
188
|
class: "bs-accordion-content",
|
|
189
|
-
"data-open":
|
|
189
|
+
"data-open": g.value,
|
|
190
190
|
id: s.value,
|
|
191
191
|
part: "content",
|
|
192
192
|
role: "region"
|
|
193
193
|
}, [
|
|
194
|
-
|
|
195
|
-
V(
|
|
194
|
+
w("div", null, [
|
|
195
|
+
V(h.$slots, "default")
|
|
196
196
|
])
|
|
197
|
-
], 8,
|
|
198
|
-
], 8,
|
|
197
|
+
], 8, wa)
|
|
198
|
+
], 8, ha));
|
|
199
199
|
}
|
|
200
|
-
},
|
|
200
|
+
}, Ba = ["aria-label", "data-badge-color", "data-count", "data-position", "data-show-zero", "data-variant"], $a = {
|
|
201
201
|
__name: "BsBadge",
|
|
202
202
|
props: {
|
|
203
203
|
/** Pass value to set `data-badge-color`. */
|
|
@@ -244,14 +244,14 @@ const me = (e, a, t = void 0) => {
|
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
246
|
setup(e) {
|
|
247
|
-
const a = e, t =
|
|
247
|
+
const a = e, t = I(null), l = f(() => a.count === 0 ? "0" : !a.count || a.dot ? null : a.count > a.countMax ? a.countMax + "+" : a.count.toString()), n = f(() => {
|
|
248
248
|
var s, r;
|
|
249
|
-
const i = ((r = (s = t.value) == null ? void 0 : s.textContent) == null ? void 0 : r.trim()) || "",
|
|
250
|
-
if (!
|
|
249
|
+
const i = ((r = (s = t.value) == null ? void 0 : s.textContent) == null ? void 0 : r.trim()) || "", u = l.value ? l.value + " " : "";
|
|
250
|
+
if (!u && !a.dot) return i;
|
|
251
251
|
const o = a.count !== 1 ? "s" : "";
|
|
252
|
-
return `${i ? `${i}, ` : ""}${
|
|
252
|
+
return `${i ? `${i}, ` : ""}${u}${a.label}${o}`;
|
|
253
253
|
});
|
|
254
|
-
return (i,
|
|
254
|
+
return (i, u) => (d(), b("span", {
|
|
255
255
|
ref_key: "hostRef",
|
|
256
256
|
ref: t,
|
|
257
257
|
"aria-label": n.value,
|
|
@@ -265,30 +265,30 @@ const me = (e, a, t = void 0) => {
|
|
|
265
265
|
role: "status"
|
|
266
266
|
}, [
|
|
267
267
|
e.variant !== "notext" ? V(i.$slots, "default", { key: 0 }) : C("", !0)
|
|
268
|
-
], 10,
|
|
268
|
+
], 10, Ba));
|
|
269
269
|
}
|
|
270
|
-
},
|
|
270
|
+
}, Ia = {
|
|
271
271
|
key: 0,
|
|
272
272
|
role: "alert",
|
|
273
273
|
class: "bs-banner",
|
|
274
274
|
"data-component": "bs-banner"
|
|
275
|
-
},
|
|
275
|
+
}, ka = { class: "bs-banner-content" }, Ca = { class: "bs-banner-warning-icon" }, Vo = {
|
|
276
276
|
__name: "BsBanner",
|
|
277
277
|
emits: ["dismiss"],
|
|
278
278
|
setup(e, { emit: a }) {
|
|
279
|
-
const t = a, l =
|
|
279
|
+
const t = a, l = I(!1);
|
|
280
280
|
function n() {
|
|
281
281
|
l.value = !0, t("dismiss");
|
|
282
282
|
}
|
|
283
|
-
return (i,
|
|
284
|
-
|
|
285
|
-
|
|
283
|
+
return (i, u) => l.value ? C("", !0) : (d(), b("div", Ia, [
|
|
284
|
+
w("div", ka, [
|
|
285
|
+
w("div", Ca, [
|
|
286
286
|
P(c(Xe), { size: "lg" })
|
|
287
287
|
]),
|
|
288
|
-
|
|
288
|
+
w("p", null, [
|
|
289
289
|
V(i.$slots, "default")
|
|
290
290
|
]),
|
|
291
|
-
|
|
291
|
+
w("button", {
|
|
292
292
|
type: "button",
|
|
293
293
|
title: "Close Banner",
|
|
294
294
|
onClick: n
|
|
@@ -298,7 +298,7 @@ const me = (e, a, t = void 0) => {
|
|
|
298
298
|
])
|
|
299
299
|
]));
|
|
300
300
|
}
|
|
301
|
-
},
|
|
301
|
+
}, xt = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
302
302
|
__name: "BsButton",
|
|
303
303
|
props: {
|
|
304
304
|
disabled: {
|
|
@@ -329,8 +329,8 @@ const me = (e, a, t = void 0) => {
|
|
|
329
329
|
href: { type: String }
|
|
330
330
|
},
|
|
331
331
|
setup(e) {
|
|
332
|
-
const a = e, t = re(), { rootTag: l, attrsToBind: n, hrefUrl: i } = ze(a, t), { onLinkClick:
|
|
333
|
-
return (o, s) => (
|
|
332
|
+
const a = e, t = re(), { rootTag: l, attrsToBind: n, hrefUrl: i } = ze(a, t), { onLinkClick: u } = Fe(a);
|
|
333
|
+
return (o, s) => (d(), O(ae(c(l)), z({
|
|
334
334
|
class: "bs-button",
|
|
335
335
|
"data-component": "bs-button",
|
|
336
336
|
"data-ghost": e.ghostBtn,
|
|
@@ -338,7 +338,7 @@ const me = (e, a, t = void 0) => {
|
|
|
338
338
|
"data-text": e.textBtn,
|
|
339
339
|
"data-variant": e.variant,
|
|
340
340
|
".href": c(i)
|
|
341
|
-
}, c(n), { onClick: c(
|
|
341
|
+
}, c(n), { onClick: c(u) }), {
|
|
342
342
|
default: D(() => [
|
|
343
343
|
V(o.$slots, "default")
|
|
344
344
|
]),
|
|
@@ -369,19 +369,19 @@ const me = (e, a, t = void 0) => {
|
|
|
369
369
|
},
|
|
370
370
|
setup(e) {
|
|
371
371
|
const a = e, t = f(() => a.error && a.errorMsg || a.hint);
|
|
372
|
-
return (l, n) => (
|
|
373
|
-
t.value ? (
|
|
372
|
+
return (l, n) => (d(), b("div", xa, [
|
|
373
|
+
t.value ? (d(), b("span", {
|
|
374
374
|
key: 0,
|
|
375
375
|
id: e.hintId,
|
|
376
376
|
class: "bs-hint",
|
|
377
377
|
"data-error": e.error
|
|
378
|
-
},
|
|
379
|
-
e.charMax ? (
|
|
378
|
+
}, T(t.value), 9, Ta)) : C("", !0),
|
|
379
|
+
e.charMax ? (d(), b("span", {
|
|
380
380
|
key: 1,
|
|
381
381
|
"aria-description": "character count over character limit for the preceding text field",
|
|
382
382
|
class: "bs-character-count",
|
|
383
383
|
"data-error": a.charCount > a.charMax
|
|
384
|
-
},
|
|
384
|
+
}, T(a.charCount || "0") + " / " + T(a.charMax), 9, Aa)) : C("", !0)
|
|
385
385
|
]));
|
|
386
386
|
}
|
|
387
387
|
}, Oa = ["data-disabled", "for"], ne = {
|
|
@@ -393,21 +393,21 @@ const me = (e, a, t = void 0) => {
|
|
|
393
393
|
required: { type: Boolean, default: !1 }
|
|
394
394
|
},
|
|
395
395
|
setup(e) {
|
|
396
|
-
return (a, t) => (
|
|
396
|
+
return (a, t) => (d(), b("label", {
|
|
397
397
|
class: le(["bs-label", e.hide ? "visually-hidden" : ""]),
|
|
398
398
|
"data-component": "bs-label",
|
|
399
399
|
"data-disabled": e.disabled,
|
|
400
400
|
for: e.for
|
|
401
401
|
}, [
|
|
402
|
-
|
|
402
|
+
w("span", null, [
|
|
403
403
|
V(a.$slots, "default")
|
|
404
404
|
]),
|
|
405
|
-
e.required ? (
|
|
406
|
-
t[0] || (t[0] =
|
|
405
|
+
e.required ? (d(), b(K, { key: 0 }, [
|
|
406
|
+
t[0] || (t[0] = w("span", {
|
|
407
407
|
"data-required": "true",
|
|
408
408
|
"aria-hidden": "true"
|
|
409
409
|
}, " *", -1)),
|
|
410
|
-
t[1] || (t[1] =
|
|
410
|
+
t[1] || (t[1] = w("span", { class: "visually-hidden" }, "required", -1))
|
|
411
411
|
], 64)) : C("", !0)
|
|
412
412
|
], 10, Oa));
|
|
413
413
|
}
|
|
@@ -427,20 +427,20 @@ const me = (e, a, t = void 0) => {
|
|
|
427
427
|
emits: ["update:modelValue"],
|
|
428
428
|
setup(e, { emit: a }) {
|
|
429
429
|
const t = e, l = a, n = re(), i = f(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
430
|
-
function
|
|
430
|
+
function u(o) {
|
|
431
431
|
const s = n.type === "number" ? parseInt(o.target.value) : o.target.value;
|
|
432
432
|
l("update:modelValue", s);
|
|
433
433
|
}
|
|
434
|
-
return (o, s) => (
|
|
434
|
+
return (o, s) => (d(), b("input", z({
|
|
435
435
|
class: "bs-input",
|
|
436
436
|
"data-component": "bs-input",
|
|
437
437
|
"data-error": e.error,
|
|
438
438
|
id: o.$attrs.id || e.inputId,
|
|
439
439
|
value: e.value || e.modelValue,
|
|
440
|
-
onInput:
|
|
440
|
+
onInput: u
|
|
441
441
|
}, i.value), null, 16, Va));
|
|
442
442
|
}
|
|
443
|
-
},
|
|
443
|
+
}, La = ["data-autopad", "data-autosize-icons", "data-disabled", "data-error", "data-variant", "data-multifocus"], De = {
|
|
444
444
|
__name: "BsInputAddon",
|
|
445
445
|
props: {
|
|
446
446
|
autopad: { type: Boolean, default: !1 },
|
|
@@ -451,7 +451,7 @@ const me = (e, a, t = void 0) => {
|
|
|
451
451
|
variant: { type: String, validator: (e) => ["inner-bordered", "combobox"].includes(e) }
|
|
452
452
|
},
|
|
453
453
|
setup(e) {
|
|
454
|
-
return (a, t) => (
|
|
454
|
+
return (a, t) => (d(), b("div", {
|
|
455
455
|
class: "bs-input-addon",
|
|
456
456
|
"data-component": "bs-input-addon",
|
|
457
457
|
"data-autopad": e.autopad,
|
|
@@ -462,9 +462,9 @@ const me = (e, a, t = void 0) => {
|
|
|
462
462
|
"data-multifocus": e.multifocus
|
|
463
463
|
}, [
|
|
464
464
|
V(a.$slots, "default")
|
|
465
|
-
], 8,
|
|
465
|
+
], 8, La));
|
|
466
466
|
}
|
|
467
|
-
},
|
|
467
|
+
}, Ea = {
|
|
468
468
|
__name: "BsInputDateSingle",
|
|
469
469
|
props: {
|
|
470
470
|
disabled: {
|
|
@@ -497,7 +497,7 @@ const me = (e, a, t = void 0) => {
|
|
|
497
497
|
}
|
|
498
498
|
},
|
|
499
499
|
setup(e) {
|
|
500
|
-
return (a, t) => (
|
|
500
|
+
return (a, t) => (d(), O(De, {
|
|
501
501
|
disabled: e.disabled,
|
|
502
502
|
error: e.error
|
|
503
503
|
}, {
|
|
@@ -562,20 +562,21 @@ const Da = ["disabled", "id", "model-value"], Pa = ["disabled", "id", "model-val
|
|
|
562
562
|
},
|
|
563
563
|
emits: ["ui-focusin", "ui-input"],
|
|
564
564
|
setup(e, { emit: a }) {
|
|
565
|
-
const t =
|
|
566
|
-
function
|
|
567
|
-
const
|
|
568
|
-
|
|
565
|
+
const t = e, l = a, n = I(null), i = I(null);
|
|
566
|
+
function u(v) {
|
|
567
|
+
const h = new Event("change", { bubbles: !0, cancelable: !0 });
|
|
568
|
+
v.dispatchEvent(h);
|
|
569
569
|
}
|
|
570
|
-
function
|
|
571
|
-
const { value:
|
|
572
|
-
|
|
570
|
+
function o(v) {
|
|
571
|
+
const { value: h } = v.target, [y, B] = h.split(/ to | - /);
|
|
572
|
+
n.value.value = y || "", i.value.value = B || "", u(n.value), u(i.value);
|
|
573
573
|
}
|
|
574
|
-
const
|
|
575
|
-
function
|
|
576
|
-
|
|
574
|
+
const s = Ve(o, 1e3);
|
|
575
|
+
function r(v) {
|
|
576
|
+
l("ui-input"), s(v);
|
|
577
577
|
}
|
|
578
|
-
|
|
578
|
+
const m = f(() => t.listeners.start ? t.listeners.start : {}), g = f(() => t.listeners.end ? t.listeners.end : {});
|
|
579
|
+
return (v, h) => (d(), O(De, {
|
|
579
580
|
disabled: e.disabled,
|
|
580
581
|
error: e.error
|
|
581
582
|
}, {
|
|
@@ -588,26 +589,26 @@ const Da = ["disabled", "id", "model-value"], Pa = ["disabled", "id", "model-val
|
|
|
588
589
|
"model-value": e.inputValueFmt,
|
|
589
590
|
placeholder: e.placeholder,
|
|
590
591
|
required: e.required,
|
|
591
|
-
onFocusin:
|
|
592
|
-
onInput:
|
|
593
|
-
onChange:
|
|
592
|
+
onFocusin: h[0] || (h[0] = (y) => v.$emit("ui-focusin")),
|
|
593
|
+
onInput: r,
|
|
594
|
+
onChange: o
|
|
594
595
|
}, null, 8, ["disabled", "id", "model-value", "placeholder", "required"]),
|
|
595
|
-
|
|
596
|
+
w("input", z({
|
|
596
597
|
ref_key: "hiddenStart",
|
|
597
|
-
ref:
|
|
598
|
+
ref: n,
|
|
598
599
|
type: "hidden",
|
|
599
600
|
disabled: e.disabled,
|
|
600
601
|
id: `${e.inputId}-start`,
|
|
601
602
|
"model-value": e.inputValue.start
|
|
602
|
-
}, Ye(
|
|
603
|
-
|
|
603
|
+
}, Ye(m.value, !0)), null, 16, Da),
|
|
604
|
+
w("input", z({
|
|
604
605
|
ref_key: "hiddenEnd",
|
|
605
|
-
ref:
|
|
606
|
+
ref: i,
|
|
606
607
|
type: "hidden",
|
|
607
608
|
disabled: e.disabled,
|
|
608
609
|
id: `${e.inputId}-end`,
|
|
609
610
|
"model-value": e.inputValue.end
|
|
610
|
-
}, Ye(
|
|
611
|
+
}, Ye(g.value, !0)), null, 16, Pa)
|
|
611
612
|
]),
|
|
612
613
|
_: 1
|
|
613
614
|
}, 8, ["disabled", "error"]));
|
|
@@ -615,8 +616,8 @@ const Da = ["disabled", "id", "model-value"], Pa = ["disabled", "id", "model-val
|
|
|
615
616
|
};
|
|
616
617
|
function Ma(e) {
|
|
617
618
|
function a(n) {
|
|
618
|
-
var i,
|
|
619
|
-
return ((
|
|
619
|
+
var i, u;
|
|
620
|
+
return ((u = (i = n == null ? void 0 : n.classList) == null ? void 0 : i.contains) == null ? void 0 : u.call(i, "vc-arrow")) && (n.classList.contains("vc-prev") || n.classList.contains("vc-next"));
|
|
620
621
|
}
|
|
621
622
|
function t(n) {
|
|
622
623
|
return n === " " || n === "Spacebar" || n === "Enter";
|
|
@@ -624,7 +625,7 @@ function Ma(e) {
|
|
|
624
625
|
function l(n) {
|
|
625
626
|
a(n == null ? void 0 : n.target) && t(n == null ? void 0 : n.key) && n.preventDefault();
|
|
626
627
|
}
|
|
627
|
-
|
|
628
|
+
X(() => {
|
|
628
629
|
var n, i;
|
|
629
630
|
(i = (n = e.value) == null ? void 0 : n.addEventListener) == null || i.call(n, "keydown", l);
|
|
630
631
|
}), _e(() => {
|
|
@@ -634,13 +635,13 @@ function Ma(e) {
|
|
|
634
635
|
}
|
|
635
636
|
function Qe(e, a, t = []) {
|
|
636
637
|
let l;
|
|
637
|
-
|
|
638
|
+
St(() => {
|
|
638
639
|
l = window.matchMedia(e), l.addEventListener("change", a), a(l);
|
|
639
640
|
}), _e(() => {
|
|
640
641
|
l.removeEventListener("change", a), l = null;
|
|
641
|
-
}), t.length &&
|
|
642
|
+
}), t.length && G(t, () => a(l));
|
|
642
643
|
}
|
|
643
|
-
const
|
|
644
|
+
const tt = [
|
|
644
645
|
"aria-describedby",
|
|
645
646
|
"aria-label",
|
|
646
647
|
"data-cy",
|
|
@@ -699,13 +700,13 @@ const et = [
|
|
|
699
700
|
"size",
|
|
700
701
|
"step"
|
|
701
702
|
];
|
|
702
|
-
function
|
|
703
|
+
function Z(e, a = []) {
|
|
703
704
|
const t = {}, l = {};
|
|
704
705
|
return Object.keys(e).forEach((n) => {
|
|
705
706
|
a.includes(n) ? t[n] = e[n] : l[n] = e[n];
|
|
706
707
|
}), { filtered: t, remaining: l };
|
|
707
708
|
}
|
|
708
|
-
const Fa = ["data-range"],
|
|
709
|
+
const Fa = ["data-range"], mt = "(min-width: 752px)", Lo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
709
710
|
__name: "BsCalendar",
|
|
710
711
|
props: {
|
|
711
712
|
disabled: {
|
|
@@ -772,7 +773,7 @@ const Fa = ["data-range"], pt = "(min-width: 752px)", Oo = /* @__PURE__ */ Objec
|
|
|
772
773
|
},
|
|
773
774
|
emits: ["update:modelValue"],
|
|
774
775
|
setup(e, { emit: a }) {
|
|
775
|
-
const t = e, l =
|
|
776
|
+
const t = e, l = I(null), n = I(1), i = I(null), [u, o] = Q(2), s = I(1), { filtered: r, remaining: m } = Z(re(), [
|
|
776
777
|
"attributes",
|
|
777
778
|
"data-cy",
|
|
778
779
|
"expanded",
|
|
@@ -781,18 +782,18 @@ const Fa = ["data-range"], pt = "(min-width: 752px)", Oo = /* @__PURE__ */ Objec
|
|
|
781
782
|
"masks",
|
|
782
783
|
"rows",
|
|
783
784
|
"trim-weeks"
|
|
784
|
-
]),
|
|
785
|
+
]), g = f(() => t.inputId || u.value), v = f(() => ({ range: t.isRange })), h = f(() => !!(t.error && t.errorMsg || t.hint)), y = f(() => t.step), B = f(() => t.variant);
|
|
785
786
|
Ma(i), Qe(
|
|
786
|
-
|
|
787
|
-
($) => n.value = $ != null && $.matches &&
|
|
788
|
-
[
|
|
787
|
+
mt,
|
|
788
|
+
($) => n.value = $ != null && $.matches && B.value == "2-col" ? 2 : 1,
|
|
789
|
+
[B]
|
|
789
790
|
), Qe(
|
|
790
|
-
|
|
791
|
-
($) => s.value = $ != null && $.matches &&
|
|
792
|
-
[y,
|
|
793
|
-
),
|
|
791
|
+
mt,
|
|
792
|
+
($) => s.value = $ != null && $.matches && B.value == "2-col" ? y.value : 1,
|
|
793
|
+
[y, B]
|
|
794
|
+
), X(() => {
|
|
794
795
|
t.inputMode || k();
|
|
795
|
-
}),
|
|
796
|
+
}), G(() => {
|
|
796
797
|
var $, M;
|
|
797
798
|
return (M = ($ = l.value) == null ? void 0 : $.popoverRef) == null ? void 0 : M.isVisible;
|
|
798
799
|
}, ($) => {
|
|
@@ -808,7 +809,7 @@ const Fa = ["data-range"], pt = "(min-width: 752px)", Oo = /* @__PURE__ */ Objec
|
|
|
808
809
|
const $ = i.value.querySelector("button.vc-prev"), M = i.value.querySelector("button.vc-next");
|
|
809
810
|
$ && $.setAttribute("aria-label", "Previous month"), M && M.setAttribute("aria-label", "Next month");
|
|
810
811
|
}
|
|
811
|
-
return ($, M) => (
|
|
812
|
+
return ($, M) => (d(), b("div", z({
|
|
812
813
|
ref_key: "container",
|
|
813
814
|
ref: i,
|
|
814
815
|
class: "bs-calendar",
|
|
@@ -816,20 +817,20 @@ const Fa = ["data-range"], pt = "(min-width: 752px)", Oo = /* @__PURE__ */ Objec
|
|
|
816
817
|
"data-range": e.isRange,
|
|
817
818
|
onFocusout: S
|
|
818
819
|
}, c(m)), [
|
|
819
|
-
e.label || $.$slots.label ? (
|
|
820
|
+
e.label || $.$slots.label ? (d(), O(ne, {
|
|
820
821
|
key: 0,
|
|
821
|
-
for:
|
|
822
|
+
for: g.value,
|
|
822
823
|
disabled: e.disabled,
|
|
823
824
|
required: e.required
|
|
824
825
|
}, {
|
|
825
826
|
default: D(() => [
|
|
826
827
|
V($.$slots, "label", {}, () => [
|
|
827
|
-
|
|
828
|
+
U(T(e.label), 1)
|
|
828
829
|
])
|
|
829
830
|
]),
|
|
830
831
|
_: 3
|
|
831
832
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
832
|
-
P(c(
|
|
833
|
+
P(c(aa), z({
|
|
833
834
|
ref_key: "calendar",
|
|
834
835
|
ref: l,
|
|
835
836
|
columns: n.value,
|
|
@@ -842,30 +843,30 @@ const Fa = ["data-range"], pt = "(min-width: 752px)", Oo = /* @__PURE__ */ Objec
|
|
|
842
843
|
popover: { visibility: "focus" },
|
|
843
844
|
rows: 1,
|
|
844
845
|
step: s.value,
|
|
845
|
-
"onUpdate:modelValue": M[0] || (M[0] = (
|
|
846
|
+
"onUpdate:modelValue": M[0] || (M[0] = (A) => $.$emit("update:modelValue", A))
|
|
846
847
|
}, c(r)), Ze({ _: 2 }, [
|
|
847
848
|
e.inputMode ? {
|
|
848
849
|
name: "default",
|
|
849
|
-
fn: D(({ inputValue:
|
|
850
|
-
e.isRange ? (
|
|
850
|
+
fn: D(({ inputValue: A, inputEvents: L, showPopover: R }) => [
|
|
851
|
+
e.isRange ? (d(), O(qa, {
|
|
851
852
|
key: 1,
|
|
852
853
|
disabled: e.disabled,
|
|
853
854
|
error: e.error,
|
|
854
|
-
"input-id":
|
|
855
|
-
"input-value":
|
|
856
|
-
"input-value-fmt": p(
|
|
857
|
-
listeners:
|
|
855
|
+
"input-id": g.value,
|
|
856
|
+
"input-value": A,
|
|
857
|
+
"input-value-fmt": p(A),
|
|
858
|
+
listeners: L,
|
|
858
859
|
placeholder: e.placeholder,
|
|
859
860
|
required: e.required,
|
|
860
861
|
onUiFocusin: R,
|
|
861
862
|
onUiInput: R
|
|
862
|
-
}, null, 8, ["disabled", "error", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (
|
|
863
|
+
}, null, 8, ["disabled", "error", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (d(), O(Ea, {
|
|
863
864
|
key: 0,
|
|
864
865
|
disabled: e.disabled,
|
|
865
866
|
error: e.error,
|
|
866
|
-
"input-id":
|
|
867
|
-
listeners:
|
|
868
|
-
"model-value": p(
|
|
867
|
+
"input-id": g.value,
|
|
868
|
+
listeners: L,
|
|
869
|
+
"model-value": p(A),
|
|
869
870
|
placeholder: e.placeholder,
|
|
870
871
|
required: e.required
|
|
871
872
|
}, null, 8, ["disabled", "error", "input-id", "listeners", "model-value", "placeholder", "required"]))
|
|
@@ -873,7 +874,7 @@ const Fa = ["data-range"], pt = "(min-width: 752px)", Oo = /* @__PURE__ */ Objec
|
|
|
873
874
|
key: "0"
|
|
874
875
|
} : void 0
|
|
875
876
|
]), 1040, ["columns", "disabled-dates", "max-date", "min-date", "model-value", "model-modifiers", "step"]),
|
|
876
|
-
|
|
877
|
+
h.value ? (d(), O(ge, {
|
|
877
878
|
key: 1,
|
|
878
879
|
error: e.error,
|
|
879
880
|
"error-msg": e.errorMsg,
|
|
@@ -885,7 +886,7 @@ const Fa = ["data-range"], pt = "(min-width: 752px)", Oo = /* @__PURE__ */ Objec
|
|
|
885
886
|
}), Ra = { key: 0 }, ja = {
|
|
886
887
|
class: "bs-circle-button-icon",
|
|
887
888
|
role: "presentation"
|
|
888
|
-
}, Wa = { key: 1 },
|
|
889
|
+
}, Wa = { key: 1 }, Tt = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
889
890
|
__name: "BsCircleButton",
|
|
890
891
|
props: {
|
|
891
892
|
disabled: {
|
|
@@ -910,7 +911,7 @@ const Fa = ["data-range"], pt = "(min-width: 752px)", Oo = /* @__PURE__ */ Objec
|
|
|
910
911
|
},
|
|
911
912
|
label: {
|
|
912
913
|
type: String,
|
|
913
|
-
|
|
914
|
+
default: void 0
|
|
914
915
|
},
|
|
915
916
|
linkTo: {
|
|
916
917
|
type: String
|
|
@@ -934,7 +935,7 @@ const Fa = ["data-range"], pt = "(min-width: 752px)", Oo = /* @__PURE__ */ Objec
|
|
|
934
935
|
}
|
|
935
936
|
},
|
|
936
937
|
setup(e) {
|
|
937
|
-
const a = e, t = re(), l =
|
|
938
|
+
const a = e, t = re(), l = et(), { rootTag: n, attrsToBind: i, hrefUrl: u } = ze(a, t), { onLinkClick: o } = Fe(a), s = f(() => g.value ? {} : a.href ? { title: a.label } : { "aria-label": a.label }), r = f(() => {
|
|
938
939
|
if (a.hoverEffect)
|
|
939
940
|
return a.iconPosition;
|
|
940
941
|
}), m = f(() => {
|
|
@@ -942,39 +943,39 @@ const Fa = ["data-range"], pt = "(min-width: 752px)", Oo = /* @__PURE__ */ Objec
|
|
|
942
943
|
return {
|
|
943
944
|
icon: a.icon || (a.textBtn || a.size == "sm" ? `small-${p}` : p)
|
|
944
945
|
};
|
|
945
|
-
}),
|
|
946
|
-
return (p, S) => (
|
|
946
|
+
}), g = f(() => a.textBtn || !!(l != null && l.default)), v = f(() => g.value && a.iconPosition !== "left"), h = f(() => g.value && a.iconPosition === "left"), y = f(() => a.variant ? `color-${a.variant}` : void 0), { icon: B } = Oe(m, "icon");
|
|
947
|
+
return (p, S) => (d(), O(ae(c(n)), z({
|
|
947
948
|
class: "bs-circle-button",
|
|
948
949
|
"data-disabled": e.disabled,
|
|
949
950
|
"data-direction": r.value,
|
|
950
951
|
"data-ghost": e.ghostBtn,
|
|
951
952
|
"data-size": e.size,
|
|
952
|
-
"data-text":
|
|
953
|
+
"data-text": g.value,
|
|
953
954
|
"data-variant": y.value,
|
|
954
955
|
"data-component": "bs-circle-button",
|
|
955
|
-
".href": c(
|
|
956
|
+
".href": c(u)
|
|
956
957
|
}, { ...c(i), ...s.value }, { onClick: c(o) }), {
|
|
957
958
|
default: D(() => [
|
|
958
|
-
v.value ? (
|
|
959
|
+
v.value ? (d(), b("span", Ra, [
|
|
959
960
|
V(p.$slots, "default", {}, () => [
|
|
960
|
-
|
|
961
|
+
U(T(e.label), 1)
|
|
961
962
|
])
|
|
962
963
|
])) : C("", !0),
|
|
963
|
-
|
|
964
|
+
w("span", ja, [
|
|
964
965
|
V(p.$slots, "icon", {}, () => [
|
|
965
|
-
(
|
|
966
|
+
(d(), O(ae(c(B))))
|
|
966
967
|
])
|
|
967
968
|
]),
|
|
968
|
-
|
|
969
|
+
h.value ? (d(), b("span", Wa, [
|
|
969
970
|
V(p.$slots, "default", {}, () => [
|
|
970
|
-
|
|
971
|
+
U(T(e.label), 1)
|
|
971
972
|
])
|
|
972
973
|
])) : C("", !0)
|
|
973
974
|
]),
|
|
974
975
|
_: 3
|
|
975
976
|
}, 48, ["data-disabled", "data-direction", "data-ghost", "data-size", "data-text", "data-variant", ".href", "onClick"]));
|
|
976
977
|
}
|
|
977
|
-
}),
|
|
978
|
+
}), Eo = {
|
|
978
979
|
__name: "BsCaretButton",
|
|
979
980
|
props: {
|
|
980
981
|
direction: {
|
|
@@ -1008,7 +1009,7 @@ const Fa = ["data-range"], pt = "(min-width: 752px)", Oo = /* @__PURE__ */ Objec
|
|
|
1008
1009
|
}
|
|
1009
1010
|
},
|
|
1010
1011
|
setup(e) {
|
|
1011
|
-
return (a, t) => (
|
|
1012
|
+
return (a, t) => (d(), O(Tt, {
|
|
1012
1013
|
disabled: e.disabled,
|
|
1013
1014
|
"ghost-btn": e.ghostBtn,
|
|
1014
1015
|
"hover-effect": e.hoverEffect,
|
|
@@ -1020,12 +1021,12 @@ const Fa = ["data-range"], pt = "(min-width: 752px)", Oo = /* @__PURE__ */ Objec
|
|
|
1020
1021
|
"text-btn": !1
|
|
1021
1022
|
}, {
|
|
1022
1023
|
icon: D(() => [
|
|
1023
|
-
e.direction == "right" ? (
|
|
1024
|
+
e.direction == "right" ? (d(), O(c($t), { key: 0 })) : (d(), O(c(It), { key: 1 }))
|
|
1024
1025
|
]),
|
|
1025
1026
|
_: 1
|
|
1026
1027
|
}, 8, ["disabled", "ghost-btn", "hover-effect", "icon-position", "label", "link-to", "router", "size"]));
|
|
1027
1028
|
}
|
|
1028
|
-
},
|
|
1029
|
+
}, Do = {
|
|
1029
1030
|
__name: "BsCaretTextButton",
|
|
1030
1031
|
props: {
|
|
1031
1032
|
direction: {
|
|
@@ -1064,7 +1065,7 @@ const Fa = ["data-range"], pt = "(min-width: 752px)", Oo = /* @__PURE__ */ Objec
|
|
|
1064
1065
|
}
|
|
1065
1066
|
},
|
|
1066
1067
|
setup(e) {
|
|
1067
|
-
return (a, t) => (
|
|
1068
|
+
return (a, t) => (d(), O(Tt, {
|
|
1068
1069
|
disabled: e.disabled,
|
|
1069
1070
|
"ghost-btn": e.ghostBtn,
|
|
1070
1071
|
"hover-effect": e.hoverEffect,
|
|
@@ -1077,11 +1078,11 @@ const Fa = ["data-range"], pt = "(min-width: 752px)", Oo = /* @__PURE__ */ Objec
|
|
|
1077
1078
|
variant: e.variant
|
|
1078
1079
|
}, {
|
|
1079
1080
|
icon: D(() => [
|
|
1080
|
-
e.direction == "right" ? (
|
|
1081
|
+
e.direction == "right" ? (d(), O(c(jt), { key: 0 })) : (d(), O(c(Wt), { key: 1 }))
|
|
1081
1082
|
]),
|
|
1082
1083
|
default: D(() => [
|
|
1083
1084
|
V(a.$slots, "default", {}, () => [
|
|
1084
|
-
|
|
1085
|
+
U(T(e.label), 1)
|
|
1085
1086
|
])
|
|
1086
1087
|
]),
|
|
1087
1088
|
_: 3
|
|
@@ -1124,47 +1125,47 @@ const Fa = ["data-range"], pt = "(min-width: 752px)", Oo = /* @__PURE__ */ Objec
|
|
|
1124
1125
|
}
|
|
1125
1126
|
},
|
|
1126
1127
|
setup(e) {
|
|
1127
|
-
const a = e, t =
|
|
1128
|
-
const
|
|
1129
|
-
return `${v} (${
|
|
1128
|
+
const a = e, t = I(!1), l = (m) => {
|
|
1129
|
+
const g = new Date(m), v = g.toTimeString().split(" ")[0], h = g.toDateString().split(" ").slice(1, 3).join(" ");
|
|
1130
|
+
return `${v} (${h})`;
|
|
1130
1131
|
}, n = f(() => {
|
|
1131
1132
|
var m;
|
|
1132
1133
|
return !((m = a.dataIdxLabels) != null && m.length);
|
|
1133
1134
|
});
|
|
1134
1135
|
function i(m) {
|
|
1135
1136
|
try {
|
|
1136
|
-
return m.map((
|
|
1137
|
-
const v =
|
|
1138
|
-
let
|
|
1139
|
-
if (
|
|
1140
|
-
const y =
|
|
1141
|
-
|
|
1137
|
+
return m.map((g) => {
|
|
1138
|
+
const v = g.label;
|
|
1139
|
+
let h = [];
|
|
1140
|
+
if (g.data.some((y) => (y == null ? void 0 : y.x) && (y == null ? void 0 : y.y))) {
|
|
1141
|
+
const y = g.data.reduce((B, p) => (B[p.x] = p.y, B), {});
|
|
1142
|
+
h = a.dataIdxLabels.map((B) => ({ value: y[B] ?? null }));
|
|
1142
1143
|
} else
|
|
1143
|
-
|
|
1144
|
-
return { rowLabel: v, dataCells:
|
|
1144
|
+
h = g.data.map((y) => ({ value: y }));
|
|
1145
|
+
return { rowLabel: v, dataCells: h };
|
|
1145
1146
|
});
|
|
1146
1147
|
} catch {
|
|
1147
1148
|
return [];
|
|
1148
1149
|
}
|
|
1149
1150
|
}
|
|
1150
|
-
function
|
|
1151
|
+
function u(m) {
|
|
1151
1152
|
try {
|
|
1152
|
-
const
|
|
1153
|
-
const p =
|
|
1153
|
+
const g = m.reduce((y, B) => {
|
|
1154
|
+
const p = B.data.map((S) => S == null ? void 0 : S.x);
|
|
1154
1155
|
return [...y, ...p];
|
|
1155
|
-
}, []), v = Array.from(new Set(
|
|
1156
|
-
return (a.xAxisType === "time" || a.xAxisType === "linear") && v.sort((y,
|
|
1157
|
-
const
|
|
1156
|
+
}, []), v = Array.from(new Set(g));
|
|
1157
|
+
return (a.xAxisType === "time" || a.xAxisType === "linear") && v.sort((y, B) => (typeof y == "string" && typeof B == "string" && (y = y.toLowerCase(), B = B.toLowerCase()), y < B ? -1 : y > B ? 1 : 0)), v.map((y) => {
|
|
1158
|
+
const B = { rowLabel: y }, p = [];
|
|
1158
1159
|
return m.forEach((S) => {
|
|
1159
1160
|
const k = { datasetLabel: S.label }, $ = S.data.find((M) => M.x === y);
|
|
1160
1161
|
k.value = $ ? $.y : null, p.push(k);
|
|
1161
|
-
}),
|
|
1162
|
+
}), B.dataCells = p, a.xAxisType === "time" && (B.rowLabelFmt = l(y)), B;
|
|
1162
1163
|
});
|
|
1163
1164
|
} catch {
|
|
1164
1165
|
return [];
|
|
1165
1166
|
}
|
|
1166
1167
|
}
|
|
1167
|
-
const o = f(() => n.value ?
|
|
1168
|
+
const o = f(() => n.value ? u(a.data) : i(a.data)), s = f(() => ({
|
|
1168
1169
|
colspan: n.value ? a.data.length + 1 : a.dataIdxLabels.length + 1,
|
|
1169
1170
|
title: a.tableTitle,
|
|
1170
1171
|
colHeadingFirst: n.value ? a.xLabel : "Dataset",
|
|
@@ -1174,43 +1175,43 @@ const Fa = ["data-range"], pt = "(min-width: 752px)", Oo = /* @__PURE__ */ Objec
|
|
|
1174
1175
|
var m;
|
|
1175
1176
|
return t.value && !!((m = o.value) != null && m.length);
|
|
1176
1177
|
});
|
|
1177
|
-
return
|
|
1178
|
+
return X(() => {
|
|
1178
1179
|
t.value = !0;
|
|
1179
|
-
}), (m,
|
|
1180
|
-
r.value ? (
|
|
1180
|
+
}), (m, g) => (d(), b("div", Ua, [
|
|
1181
|
+
r.value ? (d(), b("table", {
|
|
1181
1182
|
key: 0,
|
|
1182
1183
|
summary: s.value.title
|
|
1183
1184
|
}, [
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1185
|
+
w("thead", null, [
|
|
1186
|
+
w("tr", null, [
|
|
1187
|
+
w("th", {
|
|
1187
1188
|
colspan: s.value.colspan
|
|
1188
|
-
},
|
|
1189
|
+
}, T(s.value.title), 9, Ha)
|
|
1189
1190
|
]),
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
(
|
|
1191
|
+
w("tr", null, [
|
|
1192
|
+
w("th", Ka, T(s.value.colHeadingFirst), 1),
|
|
1193
|
+
(d(!0), b(K, null, te(s.value.colHeadings, (v) => (d(), b("th", {
|
|
1193
1194
|
key: v,
|
|
1194
1195
|
scope: "col"
|
|
1195
|
-
},
|
|
1196
|
+
}, T(v), 1))), 128))
|
|
1196
1197
|
])
|
|
1197
1198
|
]),
|
|
1198
|
-
|
|
1199
|
-
(
|
|
1199
|
+
w("tbody", null, [
|
|
1200
|
+
(d(!0), b(K, null, te(s.value.rows, (v) => (d(), b("tr", {
|
|
1200
1201
|
key: v.rowLabelFmt || v.rowLabel
|
|
1201
1202
|
}, [
|
|
1202
|
-
|
|
1203
|
-
(
|
|
1204
|
-
key: `${v.rowLabelFmt || v.rowLabel}${
|
|
1205
|
-
},
|
|
1203
|
+
w("th", Ya, T(v.rowLabelFmt || v.rowLabel), 1),
|
|
1204
|
+
(d(!0), b(K, null, te(v.dataCells, (h) => (d(), b("td", {
|
|
1205
|
+
key: `${v.rowLabelFmt || v.rowLabel}${h.datasetLabel}${h.value}`
|
|
1206
|
+
}, T(h.value), 1))), 128))
|
|
1206
1207
|
]))), 128))
|
|
1207
1208
|
])
|
|
1208
1209
|
], 8, Ga)) : C("", !0)
|
|
1209
1210
|
]));
|
|
1210
1211
|
}
|
|
1211
|
-
},
|
|
1212
|
+
}, Le = 16, Xa = 20;
|
|
1212
1213
|
function Qa(e, a) {
|
|
1213
|
-
const t =
|
|
1214
|
+
const t = I(null), l = I(!1), n = I(null), i = "(min-width: 1166px)", u = { tickSize: Le }, o = { tickSize: Xa };
|
|
1214
1215
|
let s, r;
|
|
1215
1216
|
function m(p, S) {
|
|
1216
1217
|
let k;
|
|
@@ -1224,9 +1225,9 @@ function Qa(e, a) {
|
|
|
1224
1225
|
default:
|
|
1225
1226
|
throw new Error(`Unsupported chart type: ${p}`);
|
|
1226
1227
|
}
|
|
1227
|
-
return new nn().setCommonConfigs(S).setCustomOptions(S)[k](S).setPlugins([Ja(n),
|
|
1228
|
+
return new nn().setCommonConfigs(S).setCustomOptions(S)[k](S).setPlugins([Ja(n), na]).build();
|
|
1228
1229
|
}
|
|
1229
|
-
function
|
|
1230
|
+
function g(p) {
|
|
1230
1231
|
p.preventDefault(), p.stopImmediatePropagation();
|
|
1231
1232
|
const S = p.target.closest("li");
|
|
1232
1233
|
if (S && s) {
|
|
@@ -1239,29 +1240,29 @@ function Qa(e, a) {
|
|
|
1239
1240
|
const k = `[data-dataset-index="${p}"][data-label-index="${S}"]`, $ = n.value.querySelector(k);
|
|
1240
1241
|
(M = $ == null ? void 0 : $.focus) == null || M.call($);
|
|
1241
1242
|
}
|
|
1242
|
-
function
|
|
1243
|
+
function h(...p) {
|
|
1243
1244
|
!r || !t.value || (je.register(...p), je.defaults.font.family = "'Roobert', sans-serif", s = new je(t.value, r));
|
|
1244
1245
|
}
|
|
1245
1246
|
const y = Ve(function(p) {
|
|
1246
1247
|
r && (r.updateOptions(p), s.options = r.options, s.update());
|
|
1247
|
-
}, 100),
|
|
1248
|
+
}, 100), B = Ve(function(p) {
|
|
1248
1249
|
r && (r.updateData(p), s.data = r.data, s.update());
|
|
1249
1250
|
}, 100);
|
|
1250
1251
|
return Qe(
|
|
1251
1252
|
i,
|
|
1252
1253
|
(p) => l.value = p == null ? void 0 : p.matches,
|
|
1253
1254
|
[l]
|
|
1254
|
-
),
|
|
1255
|
+
), X(() => {
|
|
1255
1256
|
var p;
|
|
1256
1257
|
try {
|
|
1257
|
-
r = m(e, a), (p = n.value) == null || p.addEventListener("click",
|
|
1258
|
+
r = m(e, a), (p = n.value) == null || p.addEventListener("click", g);
|
|
1258
1259
|
} catch (S) {
|
|
1259
1260
|
console.error("Error creating chart config", S), r = null;
|
|
1260
1261
|
}
|
|
1261
|
-
}), me([" ", "Enter"],
|
|
1262
|
+
}), me([" ", "Enter"], g, n), _e(() => {
|
|
1262
1263
|
var p;
|
|
1263
|
-
(p = n.value) == null || p.removeEventListener("click",
|
|
1264
|
-
}),
|
|
1264
|
+
(p = n.value) == null || p.removeEventListener("click", g), s == null || s.destroy();
|
|
1265
|
+
}), G([
|
|
1265
1266
|
() => a.customOptions,
|
|
1266
1267
|
() => a.showTooltips,
|
|
1267
1268
|
() => a.showXGrid,
|
|
@@ -1271,24 +1272,24 @@ function Qa(e, a) {
|
|
|
1271
1272
|
() => a.yLabel,
|
|
1272
1273
|
() => a.yMin,
|
|
1273
1274
|
() => a.yMax
|
|
1274
|
-
], () => y(a)),
|
|
1275
|
+
], () => y(a)), G(
|
|
1275
1276
|
l,
|
|
1276
1277
|
(p) => y(Ne(
|
|
1277
1278
|
{},
|
|
1278
1279
|
a,
|
|
1279
|
-
p ? o :
|
|
1280
|
+
p ? o : u
|
|
1280
1281
|
))
|
|
1281
|
-
),
|
|
1282
|
+
), G(
|
|
1282
1283
|
[
|
|
1283
1284
|
() => a.data,
|
|
1284
1285
|
() => a.dataIdxLabels
|
|
1285
1286
|
],
|
|
1286
|
-
() =>
|
|
1287
|
+
() => B(a),
|
|
1287
1288
|
{ deep: !0 }
|
|
1288
1289
|
), {
|
|
1289
1290
|
canvasRef: t,
|
|
1290
1291
|
legendListRef: n,
|
|
1291
|
-
registerChart:
|
|
1292
|
+
registerChart: h
|
|
1292
1293
|
};
|
|
1293
1294
|
}
|
|
1294
1295
|
const Ja = (e) => ({
|
|
@@ -1299,12 +1300,12 @@ const Ja = (e) => ({
|
|
|
1299
1300
|
n.setAttribute("tabindex", "0"), n.dataset.datasetIndex = l.datasetIndex, n.dataset.labelIndex = l.index;
|
|
1300
1301
|
const i = document.createElement("span");
|
|
1301
1302
|
i.style.setProperty("--legend-item-box-fill", l.fillStyle), i.style.setProperty("--legend-item-box-stroke", l.strokeStyle);
|
|
1302
|
-
const
|
|
1303
|
-
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(
|
|
1303
|
+
const u = document.createTextNode(l.text), o = document.createElement("p");
|
|
1304
|
+
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(u), n.appendChild(i), n.appendChild(o), e.value.appendChild(n);
|
|
1304
1305
|
});
|
|
1305
1306
|
}
|
|
1306
1307
|
});
|
|
1307
|
-
function
|
|
1308
|
+
function at(e, a = 1) {
|
|
1308
1309
|
const t = [
|
|
1309
1310
|
[0, 134, 234],
|
|
1310
1311
|
// 0086ea
|
|
@@ -1358,7 +1359,7 @@ function tt(e, a = 1) {
|
|
|
1358
1359
|
return `rgba(${l.toString()}, ${1 / n})`;
|
|
1359
1360
|
}
|
|
1360
1361
|
function _a(e) {
|
|
1361
|
-
return
|
|
1362
|
+
return at(e);
|
|
1362
1363
|
}
|
|
1363
1364
|
function en(e) {
|
|
1364
1365
|
return {
|
|
@@ -1370,7 +1371,7 @@ function en(e) {
|
|
|
1370
1371
|
}
|
|
1371
1372
|
};
|
|
1372
1373
|
}
|
|
1373
|
-
function
|
|
1374
|
+
function nt() {
|
|
1374
1375
|
return {
|
|
1375
1376
|
plugins: {
|
|
1376
1377
|
legend: {
|
|
@@ -1381,20 +1382,20 @@ function at() {
|
|
|
1381
1382
|
responsive: !0
|
|
1382
1383
|
};
|
|
1383
1384
|
}
|
|
1384
|
-
function
|
|
1385
|
-
var
|
|
1385
|
+
function lt(e) {
|
|
1386
|
+
var h, y;
|
|
1386
1387
|
const {
|
|
1387
1388
|
dataIdxLabels: a,
|
|
1388
1389
|
showXGrid: t,
|
|
1389
1390
|
showYGrid: l,
|
|
1390
1391
|
stacked: n,
|
|
1391
1392
|
xAxisType: i,
|
|
1392
|
-
xLabel:
|
|
1393
|
+
xLabel: u,
|
|
1393
1394
|
yLabel: o,
|
|
1394
1395
|
yMax: s,
|
|
1395
1396
|
yMin: r,
|
|
1396
1397
|
customOptions: m,
|
|
1397
|
-
tickSize:
|
|
1398
|
+
tickSize: g
|
|
1398
1399
|
} = e, v = {
|
|
1399
1400
|
x: {
|
|
1400
1401
|
grid: {
|
|
@@ -1404,12 +1405,12 @@ function nt(e) {
|
|
|
1404
1405
|
stacked: n,
|
|
1405
1406
|
ticks: {
|
|
1406
1407
|
font: {
|
|
1407
|
-
size:
|
|
1408
|
+
size: g || Le
|
|
1408
1409
|
}
|
|
1409
1410
|
},
|
|
1410
1411
|
title: {
|
|
1411
|
-
display: !!
|
|
1412
|
-
text:
|
|
1412
|
+
display: !!u,
|
|
1413
|
+
text: u
|
|
1413
1414
|
},
|
|
1414
1415
|
type: i || "category"
|
|
1415
1416
|
},
|
|
@@ -1424,7 +1425,7 @@ function nt(e) {
|
|
|
1424
1425
|
suggestedMin: r,
|
|
1425
1426
|
ticks: {
|
|
1426
1427
|
font: {
|
|
1427
|
-
size:
|
|
1428
|
+
size: g || Le
|
|
1428
1429
|
}
|
|
1429
1430
|
},
|
|
1430
1431
|
title: {
|
|
@@ -1433,11 +1434,11 @@ function nt(e) {
|
|
|
1433
1434
|
}
|
|
1434
1435
|
}
|
|
1435
1436
|
};
|
|
1436
|
-
return (i === "time" || ((y = (
|
|
1437
|
+
return (i === "time" || ((y = (h = m == null ? void 0 : m.scales) == null ? void 0 : h.x) == null ? void 0 : y.type) === "time") && (v.x.ticks.source = a != null && a.length ? "labels" : "auto", v.x.time = {
|
|
1437
1438
|
tooltipFormat: "dd MMM yyyy : h:mm bbb"
|
|
1438
1439
|
}), v;
|
|
1439
1440
|
}
|
|
1440
|
-
class
|
|
1441
|
+
class At {
|
|
1441
1442
|
/**
|
|
1442
1443
|
* @param {Object} options
|
|
1443
1444
|
* @param {ChartType} options.type
|
|
@@ -1467,50 +1468,50 @@ class Tt {
|
|
|
1467
1468
|
return a;
|
|
1468
1469
|
}
|
|
1469
1470
|
}
|
|
1470
|
-
class tn extends
|
|
1471
|
+
class tn extends At {
|
|
1471
1472
|
constructor({ data: a, options: t, plugins: l }) {
|
|
1472
1473
|
super({ type: "bar", data: a, options: t, plugins: l });
|
|
1473
1474
|
}
|
|
1474
1475
|
fmtDatasets(a) {
|
|
1475
1476
|
return a.map((t, l) => ({
|
|
1476
1477
|
...t,
|
|
1477
|
-
backgroundColor:
|
|
1478
|
+
backgroundColor: at(l),
|
|
1478
1479
|
categoryPercentage: a.length > 1 ? 0.5 : 0.33
|
|
1479
1480
|
}));
|
|
1480
1481
|
}
|
|
1481
1482
|
updateOptions(a) {
|
|
1482
1483
|
super.updateOptions(a);
|
|
1483
|
-
const t =
|
|
1484
|
+
const t = lt(a), l = { x: { ticks: { font: t.x.ticks.font } }, y: { ticks: { font: t.y.ticks.font } } }, n = Ne(
|
|
1484
1485
|
{},
|
|
1485
1486
|
this.options,
|
|
1486
1487
|
{ scales: t },
|
|
1487
1488
|
a.customOptions,
|
|
1488
|
-
|
|
1489
|
+
nt(),
|
|
1489
1490
|
{ scales: l }
|
|
1490
1491
|
);
|
|
1491
1492
|
this.options = n;
|
|
1492
1493
|
}
|
|
1493
1494
|
}
|
|
1494
|
-
class an extends
|
|
1495
|
+
class an extends At {
|
|
1495
1496
|
constructor({ data: a, options: t, plugins: l }) {
|
|
1496
1497
|
super({ type: "line", data: a, options: t, plugins: l });
|
|
1497
1498
|
}
|
|
1498
1499
|
fmtDatasets(a) {
|
|
1499
1500
|
return a.map((t, l) => ({
|
|
1500
1501
|
...t,
|
|
1501
|
-
backgroundColor:
|
|
1502
|
+
backgroundColor: at(l, 2),
|
|
1502
1503
|
borderColor: _a(l),
|
|
1503
1504
|
borderWidth: 4
|
|
1504
1505
|
}));
|
|
1505
1506
|
}
|
|
1506
1507
|
updateOptions(a) {
|
|
1507
1508
|
super.updateOptions(a);
|
|
1508
|
-
const t =
|
|
1509
|
+
const t = lt(a), l = { x: { ticks: { font: t.x.ticks.font } }, y: { ticks: { font: t.y.ticks.font } } }, n = Ne(
|
|
1509
1510
|
{},
|
|
1510
1511
|
this.options,
|
|
1511
1512
|
{ scales: t },
|
|
1512
1513
|
a.customOptions,
|
|
1513
|
-
|
|
1514
|
+
nt(),
|
|
1514
1515
|
{ scales: l }
|
|
1515
1516
|
);
|
|
1516
1517
|
this.options = n;
|
|
@@ -1533,7 +1534,7 @@ class nn {
|
|
|
1533
1534
|
*/
|
|
1534
1535
|
setCommonConfigs(a) {
|
|
1535
1536
|
const { data: t } = a;
|
|
1536
|
-
return this.commonOptionsBasic = en(a), this.commonOptionsStrict =
|
|
1537
|
+
return this.commonOptionsBasic = en(a), this.commonOptionsStrict = nt(), this.datasets = t, this;
|
|
1537
1538
|
}
|
|
1538
1539
|
setCustomOptions(a) {
|
|
1539
1540
|
return this.customOptions = a.customOptions, this;
|
|
@@ -1558,9 +1559,9 @@ class nn {
|
|
|
1558
1559
|
*/
|
|
1559
1560
|
setCartesianAxesOpts(a) {
|
|
1560
1561
|
const { dataIdxLabels: t } = a;
|
|
1561
|
-
return this.dataIdxLabels = t, this.scalesOptions =
|
|
1562
|
-
x: { ticks: { font: { size:
|
|
1563
|
-
y: { ticks: { font: { size:
|
|
1562
|
+
return this.dataIdxLabels = t, this.scalesOptions = lt(a), this.commonOptionsStrict.scales = {
|
|
1563
|
+
x: { ticks: { font: { size: Le } } },
|
|
1564
|
+
y: { ticks: { font: { size: Le } } }
|
|
1564
1565
|
}, this;
|
|
1565
1566
|
}
|
|
1566
1567
|
build() {
|
|
@@ -1596,7 +1597,7 @@ class nn {
|
|
|
1596
1597
|
const ln = {
|
|
1597
1598
|
class: "bs-chart bs-chart-bar",
|
|
1598
1599
|
"data-component": "bs-chart-bar"
|
|
1599
|
-
}, on = ["aria-label"], rn = ["data-hidden"],
|
|
1600
|
+
}, on = ["aria-label"], rn = ["data-hidden"], Po = {
|
|
1600
1601
|
__name: "BsChartBar",
|
|
1601
1602
|
props: {
|
|
1602
1603
|
chartTitle: {
|
|
@@ -1668,25 +1669,25 @@ const ln = {
|
|
|
1668
1669
|
},
|
|
1669
1670
|
setup(e) {
|
|
1670
1671
|
const a = e, { canvasRef: t, legendListRef: l, registerChart: n } = Qa("bar", a), i = f(() => a.chartTitle || `${a.yLabel} / ${a.xLabel}`);
|
|
1671
|
-
return
|
|
1672
|
-
na,
|
|
1672
|
+
return X(() => n(
|
|
1673
1673
|
la,
|
|
1674
1674
|
oa,
|
|
1675
1675
|
ia,
|
|
1676
1676
|
ra,
|
|
1677
1677
|
sa,
|
|
1678
|
-
da
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1678
|
+
da,
|
|
1679
|
+
ua
|
|
1680
|
+
)), (u, o) => (d(), b("div", ln, [
|
|
1681
|
+
w("figure", null, [
|
|
1682
|
+
w("div", null, [
|
|
1683
|
+
w("canvas", {
|
|
1683
1684
|
"aria-label": i.value,
|
|
1684
1685
|
ref_key: "canvasRef",
|
|
1685
1686
|
ref: t,
|
|
1686
1687
|
role: "img"
|
|
1687
1688
|
}, null, 8, on)
|
|
1688
1689
|
]),
|
|
1689
|
-
|
|
1690
|
+
w("div", null, [
|
|
1690
1691
|
P(Za, {
|
|
1691
1692
|
"chart-type": "bar",
|
|
1692
1693
|
data: e.data,
|
|
@@ -1696,10 +1697,10 @@ const ln = {
|
|
|
1696
1697
|
"x-label": e.xLabel,
|
|
1697
1698
|
"y-label": e.yLabel
|
|
1698
1699
|
}, null, 8, ["data", "data-idx-labels", "table-title", "x-axis-type", "x-label", "y-label"]),
|
|
1699
|
-
|
|
1700
|
+
w("figcaption", {
|
|
1700
1701
|
"data-hidden": !e.showLegend
|
|
1701
1702
|
}, [
|
|
1702
|
-
|
|
1703
|
+
w("ul", {
|
|
1703
1704
|
ref_key: "legendListRef",
|
|
1704
1705
|
ref: l
|
|
1705
1706
|
}, null, 512)
|
|
@@ -1708,7 +1709,7 @@ const ln = {
|
|
|
1708
1709
|
])
|
|
1709
1710
|
]));
|
|
1710
1711
|
}
|
|
1711
|
-
}, sn = ["data-disabled", "data-error", "data-size"], dn = ["checked", "data-error", "disabled", "id", "required", "value"],
|
|
1712
|
+
}, sn = ["data-disabled", "data-error", "data-size"], dn = ["checked", "data-error", "disabled", "id", "required", "value"], qo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1712
1713
|
__name: "BsCheckbox",
|
|
1713
1714
|
props: {
|
|
1714
1715
|
/** Sets the label. */
|
|
@@ -1771,31 +1772,31 @@ const ln = {
|
|
|
1771
1772
|
},
|
|
1772
1773
|
emits: ["update:modelValue"],
|
|
1773
1774
|
setup(e, { emit: a }) {
|
|
1774
|
-
const t = e, l = a, [n] = Q(), i = f(() =>
|
|
1775
|
+
const t = e, l = a, [n] = Q(), i = f(() => tt.concat(t.passAttrs.split(","))), u = I(null), o = f(() => t.inputId || n.value), s = f(() => t.checked || g.value), r = f(() => t.indeterminate || t.checkedPartially), m = f(() => Array.isArray(t.modelValue) && t.value), g = f(() => m.value && t.modelValue.includes(t.value) || typeof t.modelValue == "boolean" && t.modelValue);
|
|
1775
1776
|
function v() {
|
|
1776
|
-
|
|
1777
|
+
u.value && (u.value.indeterminate = r.value && !s.value);
|
|
1777
1778
|
}
|
|
1778
|
-
function
|
|
1779
|
+
function h(p) {
|
|
1779
1780
|
l("update:modelValue", p);
|
|
1780
1781
|
}
|
|
1781
1782
|
function y(p) {
|
|
1782
1783
|
const S = [...t.modelValue];
|
|
1783
1784
|
p ? S.push(t.value) : S.splice(S.indexOf(t.value), 1), l("update:modelValue", S);
|
|
1784
1785
|
}
|
|
1785
|
-
function
|
|
1786
|
+
function B(p) {
|
|
1786
1787
|
const { checked: S } = p.target;
|
|
1787
|
-
m.value ? y(S) :
|
|
1788
|
+
m.value ? y(S) : h(S);
|
|
1788
1789
|
}
|
|
1789
|
-
return
|
|
1790
|
+
return G(s, v), G(r, v), X(v), (p, S) => (d(), b("div", z({
|
|
1790
1791
|
class: "bs-boolean",
|
|
1791
1792
|
"data-component": "bs-checkbox",
|
|
1792
1793
|
"data-disabled": e.disabled,
|
|
1793
1794
|
"data-error": e.error,
|
|
1794
1795
|
"data-size": e.size
|
|
1795
|
-
}, c(
|
|
1796
|
-
|
|
1796
|
+
}, c(Z)(p.$attrs, i.value).remaining), [
|
|
1797
|
+
w("input", z({
|
|
1797
1798
|
ref_key: "inputEl",
|
|
1798
|
-
ref:
|
|
1799
|
+
ref: u,
|
|
1799
1800
|
checked: s.value,
|
|
1800
1801
|
"data-error": e.error,
|
|
1801
1802
|
disabled: e.disabled,
|
|
@@ -1803,9 +1804,9 @@ const ln = {
|
|
|
1803
1804
|
required: e.required,
|
|
1804
1805
|
value: e.value || "on",
|
|
1805
1806
|
type: "checkbox",
|
|
1806
|
-
onChange:
|
|
1807
|
-
}, c(
|
|
1808
|
-
e.label || p.$slots.label ? (
|
|
1807
|
+
onChange: B
|
|
1808
|
+
}, c(Z)(p.$attrs, i.value).filtered), null, 16, dn),
|
|
1809
|
+
e.label || p.$slots.label ? (d(), O(ne, {
|
|
1809
1810
|
key: 0,
|
|
1810
1811
|
for: p.$attrs.id || o.value,
|
|
1811
1812
|
disabled: e.disabled,
|
|
@@ -1813,7 +1814,7 @@ const ln = {
|
|
|
1813
1814
|
}, {
|
|
1814
1815
|
default: D(() => [
|
|
1815
1816
|
V(p.$slots, "label", {}, () => [
|
|
1816
|
-
|
|
1817
|
+
U(T(e.label), 1)
|
|
1817
1818
|
])
|
|
1818
1819
|
]),
|
|
1819
1820
|
_: 3
|
|
@@ -1841,16 +1842,16 @@ const ln = {
|
|
|
1841
1842
|
}
|
|
1842
1843
|
},
|
|
1843
1844
|
setup(e, { expose: a }) {
|
|
1844
|
-
const t =
|
|
1845
|
-
return a({ internalContainerRef: t }), (l, n) => (
|
|
1846
|
-
e.breakout && e.breakoutMounted ? (
|
|
1845
|
+
const t = I(null);
|
|
1846
|
+
return a({ internalContainerRef: t }), (l, n) => (d(), b(K, null, [
|
|
1847
|
+
e.breakout && e.breakoutMounted ? (d(), O(Ft, {
|
|
1847
1848
|
key: 0,
|
|
1848
1849
|
to: e.breakoutStub
|
|
1849
1850
|
}, [
|
|
1850
1851
|
V(l.$slots, "default")
|
|
1851
1852
|
], 8, ["to"])) : C("", !0),
|
|
1852
|
-
e.breakout ? C("", !0) : (
|
|
1853
|
-
e.containerId ? V(l.$slots, "default", { key: 0 }) : (
|
|
1853
|
+
e.breakout ? C("", !0) : (d(), b(K, { key: 1 }, [
|
|
1854
|
+
e.containerId ? V(l.$slots, "default", { key: 0 }) : (d(), b("div", {
|
|
1854
1855
|
key: 1,
|
|
1855
1856
|
ref_key: "internalContainerRef",
|
|
1856
1857
|
ref: t,
|
|
@@ -1893,7 +1894,7 @@ const ln = {
|
|
|
1893
1894
|
],
|
|
1894
1895
|
setup(e, { emit: a }) {
|
|
1895
1896
|
const t = a;
|
|
1896
|
-
return (l, n) => e.preloaded ? ue((
|
|
1897
|
+
return (l, n) => e.preloaded ? ue((d(), O(dt, {
|
|
1897
1898
|
key: 0,
|
|
1898
1899
|
name: e.name,
|
|
1899
1900
|
onBeforeEnter: n[0] || (n[0] = (i) => t("before-enter")),
|
|
@@ -1911,7 +1912,7 @@ const ln = {
|
|
|
1911
1912
|
_: 3
|
|
1912
1913
|
}, 8, ["name"])), [
|
|
1913
1914
|
[ce, e.shown]
|
|
1914
|
-
]) : (
|
|
1915
|
+
]) : (d(), O(dt, {
|
|
1915
1916
|
key: 1,
|
|
1916
1917
|
name: e.name,
|
|
1917
1918
|
onBeforeEnter: n[8] || (n[8] = (i) => t("before-enter")),
|
|
@@ -1930,13 +1931,13 @@ const ln = {
|
|
|
1930
1931
|
}, 8, ["name"]));
|
|
1931
1932
|
}
|
|
1932
1933
|
}, cn = (e, a = void 0, t = "relative") => {
|
|
1933
|
-
const l =
|
|
1934
|
-
let
|
|
1935
|
-
return
|
|
1936
|
-
e && (l.value = a ||
|
|
1934
|
+
const l = I(null), n = I(null), i = I(!1);
|
|
1935
|
+
let u = !1;
|
|
1936
|
+
return X(() => {
|
|
1937
|
+
e && (l.value = a || yt(), document.getElementById(l.value) ? (n.value = document.getElementById(l.value), u = !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);
|
|
1937
1938
|
}), Be(() => {
|
|
1938
1939
|
var o;
|
|
1939
|
-
e && !
|
|
1940
|
+
e && !u && ((o = document.getElementById(l.value)) == null || o.remove());
|
|
1940
1941
|
}), { breakoutId: l, breakoutStub: n, breakoutMounted: i };
|
|
1941
1942
|
}, fn = {
|
|
1942
1943
|
key: 0,
|
|
@@ -1994,65 +1995,65 @@ const ln = {
|
|
|
1994
1995
|
"after-leave"
|
|
1995
1996
|
],
|
|
1996
1997
|
setup(e, { emit: a }) {
|
|
1997
|
-
const t = e, l = a, n =
|
|
1998
|
+
const t = e, l = a, n = I(null), i = I(null), u = I(!1), o = I(!1), s = f(() => document.getElementById(t.anchorId)), r = f(() => t.breakout ? g.value : t.containerId ? document.getElementById(t.containerId) : n.value.internalContainerRef), m = f(() => t.width === "anchor" ? void 0 : t.width);
|
|
1998
1999
|
Ct([i, s], () => {
|
|
1999
2000
|
o.value && l("close");
|
|
2000
2001
|
}), me(["Escape"], () => {
|
|
2001
2002
|
o.value && l("close");
|
|
2002
2003
|
});
|
|
2003
|
-
const { breakoutStub:
|
|
2004
|
-
fe("dropdownEnter",
|
|
2005
|
-
const
|
|
2006
|
-
i.value.style.setProperty(
|
|
2004
|
+
const { breakoutStub: g, breakoutMounted: v } = cn(t.breakout, t.containerId);
|
|
2005
|
+
fe("dropdownEnter", u), fe("dropdownAfterEnter", o), fe("dropdownShown", f(() => t.shown));
|
|
2006
|
+
const h = (A, L) => {
|
|
2007
|
+
i.value.style.setProperty(A, L);
|
|
2007
2008
|
};
|
|
2008
2009
|
function y() {
|
|
2009
|
-
const
|
|
2010
|
-
|
|
2010
|
+
const A = r.value.getBoundingClientRect(), L = s.value.getBoundingClientRect(), R = i.value.getBoundingClientRect();
|
|
2011
|
+
B(A, L), p(A, L, R);
|
|
2011
2012
|
}
|
|
2012
|
-
function
|
|
2013
|
+
function B(A, L) {
|
|
2013
2014
|
if (t.position === "top") {
|
|
2014
|
-
const R =
|
|
2015
|
-
|
|
2015
|
+
const R = A.bottom - L.bottom;
|
|
2016
|
+
h("--dropdown-wscreen-top", "auto"), h("--dropdown-wscreen-bottom", `${R + L.height + 8}px`);
|
|
2016
2017
|
} else {
|
|
2017
|
-
const R =
|
|
2018
|
-
|
|
2018
|
+
const R = L.top - A.top;
|
|
2019
|
+
h("--dropdown-wscreen-top", `${R + L.height + 8}px`), h("--dropdown-wscreen-bottom", "auto");
|
|
2019
2020
|
}
|
|
2020
2021
|
}
|
|
2021
|
-
function p(
|
|
2022
|
-
const F =
|
|
2022
|
+
function p(A, L, R) {
|
|
2023
|
+
const F = L.left - A.left;
|
|
2023
2024
|
if (t.position === "center") {
|
|
2024
|
-
const W = (
|
|
2025
|
-
|
|
2025
|
+
const W = (L.width - R.width) / 2;
|
|
2026
|
+
h("--dropdown-wscreen-left", `${F + W}px`), h("--dropdown-wscreen-right", "auto");
|
|
2026
2027
|
} else if (t.position === "right") {
|
|
2027
|
-
const W =
|
|
2028
|
-
|
|
2028
|
+
const W = A.right - L.right;
|
|
2029
|
+
h("--dropdown-wscreen-left", "auto"), h("--dropdown-wscreen-right", `${W}px`);
|
|
2029
2030
|
} else
|
|
2030
|
-
|
|
2031
|
+
h("--dropdown-wscreen-left", `${F}px`), h("--dropdown-wscreen-right", "auto");
|
|
2031
2032
|
}
|
|
2032
2033
|
function S() {
|
|
2033
2034
|
if (t.width === "anchor") {
|
|
2034
|
-
const
|
|
2035
|
-
|
|
2035
|
+
const A = s.value.getBoundingClientRect();
|
|
2036
|
+
h("--dropdown-wscreen-width", `${A.width}px`);
|
|
2036
2037
|
} else
|
|
2037
|
-
|
|
2038
|
+
h("--dropdown-wscreen-width", "");
|
|
2038
2039
|
}
|
|
2039
2040
|
function k() {
|
|
2040
|
-
|
|
2041
|
+
u.value = !0, y(), S(), l("enter");
|
|
2041
2042
|
}
|
|
2042
2043
|
function $() {
|
|
2043
2044
|
o.value = !0, l("after-enter");
|
|
2044
2045
|
}
|
|
2045
2046
|
function M() {
|
|
2046
|
-
|
|
2047
|
+
u.value = !1, o.value = !1, l("after-leave");
|
|
2047
2048
|
}
|
|
2048
|
-
return (
|
|
2049
|
-
e.useMobileStyle && e.shown ? (
|
|
2049
|
+
return (A, L) => (d(), b(K, null, [
|
|
2050
|
+
e.useMobileStyle && e.shown ? (d(), b("div", fn)) : C("", !0),
|
|
2050
2051
|
P(un, {
|
|
2051
2052
|
ref_key: "dropdownContainerRef",
|
|
2052
2053
|
ref: n,
|
|
2053
2054
|
breakout: e.breakout,
|
|
2054
2055
|
breakoutMounted: c(v),
|
|
2055
|
-
breakoutStub: c(
|
|
2056
|
+
breakoutStub: c(g),
|
|
2056
2057
|
containerId: e.containerId
|
|
2057
2058
|
}, {
|
|
2058
2059
|
default: D(() => [
|
|
@@ -2065,28 +2066,28 @@ const ln = {
|
|
|
2065
2066
|
onAfterLeave: M
|
|
2066
2067
|
}, {
|
|
2067
2068
|
default: D(() => [
|
|
2068
|
-
|
|
2069
|
+
w("div", z({
|
|
2069
2070
|
ref_key: "dropdownRef",
|
|
2070
2071
|
ref: i,
|
|
2071
2072
|
class: "bs-dropdown",
|
|
2072
2073
|
"data-width": m.value,
|
|
2073
2074
|
"data-shown": e.shown,
|
|
2074
2075
|
"data-no-mobile": !e.useMobileStyle
|
|
2075
|
-
},
|
|
2076
|
-
e.helperText ? (
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
e.helperDescription ? (
|
|
2076
|
+
}, A.$attrs), [
|
|
2077
|
+
e.helperText ? (d(), b("header", mn, [
|
|
2078
|
+
w("div", null, [
|
|
2079
|
+
w("h3", null, T(e.helperText), 1),
|
|
2080
|
+
e.helperDescription ? (d(), b("p", bn, T(e.helperDescription), 1)) : C("", !0)
|
|
2080
2081
|
]),
|
|
2081
|
-
|
|
2082
|
+
w("button", {
|
|
2082
2083
|
type: "button",
|
|
2083
2084
|
title: "close",
|
|
2084
|
-
onClick:
|
|
2085
|
+
onClick: L[0] || (L[0] = () => l("close"))
|
|
2085
2086
|
}, [
|
|
2086
2087
|
P(c($e))
|
|
2087
2088
|
])
|
|
2088
2089
|
])) : C("", !0),
|
|
2089
|
-
V(
|
|
2090
|
+
V(A.$slots, "default")
|
|
2090
2091
|
], 16, pn)
|
|
2091
2092
|
]),
|
|
2092
2093
|
_: 3
|
|
@@ -2096,7 +2097,7 @@ const ln = {
|
|
|
2096
2097
|
}, 8, ["breakout", "breakoutMounted", "breakoutStub", "containerId"])
|
|
2097
2098
|
], 64));
|
|
2098
2099
|
}
|
|
2099
|
-
}),
|
|
2100
|
+
}), ot = {
|
|
2100
2101
|
__name: "BsDropdown",
|
|
2101
2102
|
props: {
|
|
2102
2103
|
anchorId: {
|
|
@@ -2186,14 +2187,14 @@ const ln = {
|
|
|
2186
2187
|
"after-leave"
|
|
2187
2188
|
],
|
|
2188
2189
|
setup(e, { emit: a }) {
|
|
2189
|
-
const t = e, l = a, { transition: n } =
|
|
2190
|
-
return (s, r) => (
|
|
2190
|
+
const t = e, l = a, { transition: n } = Ee(t), i = f(() => t.width === "toggle" ? "anchor" : t.width), u = f(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = f(() => t.toggleId ? t.toggleId : t.anchorId);
|
|
2191
|
+
return (s, r) => (d(), O(hn, {
|
|
2191
2192
|
"anchor-id": o.value,
|
|
2192
2193
|
breakout: e.breakout,
|
|
2193
2194
|
"container-id": e.containerId,
|
|
2194
2195
|
"helper-description": e.helperDescription,
|
|
2195
2196
|
"helper-text": e.helperText,
|
|
2196
|
-
position:
|
|
2197
|
+
position: u.value,
|
|
2197
2198
|
preloaded: e.preloaded,
|
|
2198
2199
|
shown: c(n),
|
|
2199
2200
|
"use-mobile-style": e.useMobileStyle,
|
|
@@ -2251,7 +2252,7 @@ const ln = {
|
|
|
2251
2252
|
setup(e, { emit: a }) {
|
|
2252
2253
|
const t = e, l = a;
|
|
2253
2254
|
let n = !1;
|
|
2254
|
-
const i =
|
|
2255
|
+
const i = I(null), [u] = Q(1), o = f(() => ({
|
|
2255
2256
|
icon: t.modelValue ? "close" : t.optionsId ? "caret-down" : "",
|
|
2256
2257
|
show: !!(t.modelValue || t.optionsId),
|
|
2257
2258
|
text: t.modelValue ? "Clear this field" : t.optionsId ? "Toggle options dropdown" : ""
|
|
@@ -2259,13 +2260,13 @@ const ln = {
|
|
|
2259
2260
|
function s() {
|
|
2260
2261
|
t.modelValue && l("clear"), n = !0, i.value.$el.focus();
|
|
2261
2262
|
}
|
|
2262
|
-
function r(
|
|
2263
|
-
var y,
|
|
2264
|
-
const v = ((y =
|
|
2265
|
-
!(((
|
|
2263
|
+
function r(g) {
|
|
2264
|
+
var y, B;
|
|
2265
|
+
const v = ((y = g.relatedTarget) == null ? void 0 : y.id) === u.value;
|
|
2266
|
+
!(((B = g.relatedTarget) == null ? void 0 : B.id) === t.optionsId) && (!v || !n) && m(!0), n = !1;
|
|
2266
2267
|
}
|
|
2267
|
-
const m = Ve((
|
|
2268
|
-
return (
|
|
2268
|
+
const m = Ve((g) => l("toggled", g), 200, !0);
|
|
2269
|
+
return (g, v) => (d(), O(De, {
|
|
2269
2270
|
"aria-live": "polite",
|
|
2270
2271
|
disabled: e.disabled,
|
|
2271
2272
|
error: e.error,
|
|
@@ -2291,20 +2292,20 @@ const ln = {
|
|
|
2291
2292
|
required: e.required,
|
|
2292
2293
|
role: e.optionsId ? "combobox" : void 0,
|
|
2293
2294
|
onFocus: r,
|
|
2294
|
-
onInput: v[0] || (v[0] = (
|
|
2295
|
-
},
|
|
2296
|
-
ue(
|
|
2295
|
+
onInput: v[0] || (v[0] = (h) => g.$emit("update:modelValue", h.target.value))
|
|
2296
|
+
}, g.$attrs), null, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup", "aria-invalid", "data-error", "disabled", "model-value", "placeholder", "required", "role"]),
|
|
2297
|
+
ue(w("button", {
|
|
2297
2298
|
"aria-controls": !e.modelValue && e.optionsId ? e.optionsId : void 0,
|
|
2298
2299
|
"aria-expanded": !e.modelValue && e.optionsId ? e.open : void 0,
|
|
2299
2300
|
"data-open": e.modelValue ? void 0 : e.open,
|
|
2300
2301
|
"data-part": "right",
|
|
2301
2302
|
disabled: e.disabled,
|
|
2302
|
-
id: c(
|
|
2303
|
+
id: c(u),
|
|
2303
2304
|
tabindex: e.modelValue ? "0" : "-1",
|
|
2304
2305
|
type: "button",
|
|
2305
2306
|
onClick: s
|
|
2306
2307
|
}, [
|
|
2307
|
-
|
|
2308
|
+
w("span", gn, T(o.value.text), 1),
|
|
2308
2309
|
ue(P(c(Me), {
|
|
2309
2310
|
role: "presentation",
|
|
2310
2311
|
size: "md"
|
|
@@ -2349,12 +2350,12 @@ const ln = {
|
|
|
2349
2350
|
},
|
|
2350
2351
|
size: {
|
|
2351
2352
|
type: String,
|
|
2352
|
-
validator: (e) => ["sm", "xs"].includes(e)
|
|
2353
|
+
validator: (e) => ["", "sm", "xs"].includes(e)
|
|
2353
2354
|
}
|
|
2354
2355
|
},
|
|
2355
2356
|
setup(e) {
|
|
2356
2357
|
const a = e, t = f(() => a.badgeCount > 0);
|
|
2357
|
-
return (l, n) => (
|
|
2358
|
+
return (l, n) => (d(), b("button", {
|
|
2358
2359
|
class: "bs-filter-button",
|
|
2359
2360
|
"aria-controls": e.optionsId,
|
|
2360
2361
|
"aria-expanded": e.open,
|
|
@@ -2365,7 +2366,7 @@ const ln = {
|
|
|
2365
2366
|
disabled: e.disabled,
|
|
2366
2367
|
type: "button"
|
|
2367
2368
|
}, [
|
|
2368
|
-
t.value ? (
|
|
2369
|
+
t.value ? (d(), O($a, {
|
|
2369
2370
|
key: 0,
|
|
2370
2371
|
color: "blue",
|
|
2371
2372
|
count: e.badgeCount,
|
|
@@ -2374,12 +2375,12 @@ const ln = {
|
|
|
2374
2375
|
variant: "notext"
|
|
2375
2376
|
}, null, 8, ["count"])) : C("", !0),
|
|
2376
2377
|
V(l.$slots, "label", {}, () => [
|
|
2377
|
-
|
|
2378
|
+
U(T(e.label), 1)
|
|
2378
2379
|
]),
|
|
2379
2380
|
P(c(Me))
|
|
2380
2381
|
], 8, Sn));
|
|
2381
2382
|
}
|
|
2382
|
-
}, Bn = ["data-value", "data-value-type", "data-variant", "id"],
|
|
2383
|
+
}, Bn = ["data-value", "data-value-type", "data-variant", "id"], it = {
|
|
2383
2384
|
__name: "BsDropdownOption",
|
|
2384
2385
|
props: {
|
|
2385
2386
|
value: {
|
|
@@ -2392,12 +2393,12 @@ const ln = {
|
|
|
2392
2393
|
}
|
|
2393
2394
|
},
|
|
2394
2395
|
setup(e) {
|
|
2395
|
-
const a = e, t =
|
|
2396
|
+
const a = e, t = I(null), l = pe("optionsId", ""), n = pe("handleOptionSelect", () => {
|
|
2396
2397
|
}), i = f(() => `${l.value}-option-${a.value}`);
|
|
2397
|
-
function
|
|
2398
|
+
function u(o) {
|
|
2398
2399
|
n(t.value), o.stopPropagation();
|
|
2399
2400
|
}
|
|
2400
|
-
return (o, s) => (
|
|
2401
|
+
return (o, s) => (d(), b("li", {
|
|
2401
2402
|
ref_key: "optionRef",
|
|
2402
2403
|
ref: t,
|
|
2403
2404
|
"data-component": "bs-dropdown-option",
|
|
@@ -2406,12 +2407,12 @@ const ln = {
|
|
|
2406
2407
|
"data-variant": e.variant || void 0,
|
|
2407
2408
|
id: i.value,
|
|
2408
2409
|
role: "option",
|
|
2409
|
-
onClick:
|
|
2410
|
+
onClick: u
|
|
2410
2411
|
}, [
|
|
2411
2412
|
V(o.$slots, "default")
|
|
2412
2413
|
], 8, Bn));
|
|
2413
2414
|
}
|
|
2414
|
-
}, $n = ["data-img-size", "data-initials", "data-no-img"], In = ["src", "alt"],
|
|
2415
|
+
}, $n = ["data-img-size", "data-initials", "data-no-img"], In = ["src", "alt"], Ot = {
|
|
2415
2416
|
__name: "BsProfileImg",
|
|
2416
2417
|
props: {
|
|
2417
2418
|
src: String,
|
|
@@ -2430,19 +2431,19 @@ const ln = {
|
|
|
2430
2431
|
}
|
|
2431
2432
|
},
|
|
2432
2433
|
setup(e) {
|
|
2433
|
-
const a = e, t =
|
|
2434
|
-
return
|
|
2434
|
+
const a = e, t = I(!1), l = I(!!a.src);
|
|
2435
|
+
return X(() => t.value = !0), (n, i) => (d(), b("div", {
|
|
2435
2436
|
class: "bs-profile-img",
|
|
2436
2437
|
"data-component": "bs-profile-img",
|
|
2437
2438
|
"data-img-size": e.size,
|
|
2438
2439
|
"data-initials": e.initials,
|
|
2439
2440
|
"data-no-img": !l.value
|
|
2440
2441
|
}, [
|
|
2441
|
-
l.value && t.value ? (
|
|
2442
|
+
l.value && t.value ? (d(), b("img", {
|
|
2442
2443
|
key: 0,
|
|
2443
2444
|
src: e.src,
|
|
2444
2445
|
alt: e.useAltText ? e.profileName : "",
|
|
2445
|
-
onError: i[0] || (i[0] = (
|
|
2446
|
+
onError: i[0] || (i[0] = (u) => l.value = !1)
|
|
2446
2447
|
}, null, 40, In)) : C("", !0)
|
|
2447
2448
|
], 8, $n));
|
|
2448
2449
|
}
|
|
@@ -2483,9 +2484,9 @@ const ln = {
|
|
|
2483
2484
|
},
|
|
2484
2485
|
setup(e) {
|
|
2485
2486
|
const a = e, t = {};
|
|
2486
|
-
|
|
2487
|
+
St(() => {
|
|
2487
2488
|
l();
|
|
2488
|
-
}),
|
|
2489
|
+
}), G(() => a.options, () => {
|
|
2489
2490
|
l();
|
|
2490
2491
|
});
|
|
2491
2492
|
function l() {
|
|
@@ -2504,51 +2505,51 @@ const ln = {
|
|
|
2504
2505
|
return s;
|
|
2505
2506
|
});
|
|
2506
2507
|
}
|
|
2507
|
-
function
|
|
2508
|
+
function u(o, s) {
|
|
2508
2509
|
return !!o && o !== s;
|
|
2509
2510
|
}
|
|
2510
|
-
return (o, s) => (
|
|
2511
|
-
(
|
|
2511
|
+
return (o, s) => (d(), b(K, null, [
|
|
2512
|
+
(d(!0), b(K, null, te(e.options, (r) => (d(), O(it, {
|
|
2512
2513
|
"aria-checked": r.checkbox ? r.checkbox.checked : void 0,
|
|
2513
2514
|
key: r.value,
|
|
2514
2515
|
value: r.value,
|
|
2515
2516
|
variant: n(r)
|
|
2516
2517
|
}, {
|
|
2517
2518
|
default: D(() => [
|
|
2518
|
-
r.checkbox ? (
|
|
2519
|
+
r.checkbox ? (d(), b("span", {
|
|
2519
2520
|
key: 0,
|
|
2520
2521
|
id: r.checkbox.inputId,
|
|
2521
2522
|
"aria-hidden": "true",
|
|
2522
2523
|
class: "bs-checkbox",
|
|
2523
2524
|
"data-checked": r.checkbox.checked
|
|
2524
2525
|
}, null, 8, kn)) : C("", !0),
|
|
2525
|
-
r.icon ? (
|
|
2526
|
-
(
|
|
2526
|
+
r.icon ? (d(), b("span", Cn, [
|
|
2527
|
+
(d(), O(ae(t[r.icon])))
|
|
2527
2528
|
])) : C("", !0),
|
|
2528
|
-
r.profileImg ? (
|
|
2529
|
+
r.profileImg ? (d(), O(Ot, {
|
|
2529
2530
|
key: 2,
|
|
2530
2531
|
src: r.profileImg.src,
|
|
2531
2532
|
size: "xs",
|
|
2532
2533
|
initials: r.profileImg.initials,
|
|
2533
2534
|
"profile-name": r.profileImg.profileName,
|
|
2534
|
-
"use-alt-text":
|
|
2535
|
+
"use-alt-text": u(r.profileImg.profileName, r.label)
|
|
2535
2536
|
}, null, 8, ["src", "initials", "profile-name", "use-alt-text"])) : C("", !0),
|
|
2536
|
-
r.labelHtml ? (
|
|
2537
|
+
r.labelHtml ? (d(), b("span", {
|
|
2537
2538
|
key: 3,
|
|
2538
2539
|
innerHTML: r.labelHtml
|
|
2539
|
-
}, null, 8, xn)) : (
|
|
2540
|
-
r.description ? (
|
|
2540
|
+
}, null, 8, xn)) : (d(), b("span", Tn, T(r.label), 1)),
|
|
2541
|
+
r.description ? (d(), b("span", An, T(r.description), 1)) : C("", !0)
|
|
2541
2542
|
]),
|
|
2542
2543
|
_: 2
|
|
2543
2544
|
}, 1032, ["aria-checked", "value", "variant"]))), 128)),
|
|
2544
|
-
e.showNoOptions && e.options.length === 0 ? (
|
|
2545
|
+
e.showNoOptions && e.options.length === 0 ? (d(), b("li", On, [
|
|
2545
2546
|
V(o.$slots, "no-options", {}, () => [
|
|
2546
|
-
s[0] || (s[0] =
|
|
2547
|
+
s[0] || (s[0] = U("No options"))
|
|
2547
2548
|
])
|
|
2548
2549
|
])) : C("", !0)
|
|
2549
2550
|
], 64));
|
|
2550
2551
|
}
|
|
2551
|
-
},
|
|
2552
|
+
}, Vt = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2552
2553
|
__name: "BsInputSearch",
|
|
2553
2554
|
props: {
|
|
2554
2555
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -2588,33 +2589,33 @@ const ln = {
|
|
|
2588
2589
|
variant: {
|
|
2589
2590
|
type: String,
|
|
2590
2591
|
// we may be getting at least one more variant so we'll validate against arr
|
|
2591
|
-
validator: (e) => ["filter"].includes(e)
|
|
2592
|
+
validator: (e) => ["filter", ""].includes(e)
|
|
2592
2593
|
}
|
|
2593
2594
|
},
|
|
2594
2595
|
emits: ["clear", "update:modelValue"],
|
|
2595
2596
|
setup(e, { emit: a }) {
|
|
2596
2597
|
const t = e, l = f(() => be.concat(t.passAttrs.split(","))), n = f(() => !t.disabled && !t.hideClear && t.variant !== "filter");
|
|
2597
|
-
return (i,
|
|
2598
|
+
return (i, u) => (d(), O(De, z({
|
|
2598
2599
|
class: "bs-input-search",
|
|
2599
2600
|
"data-component": "bs-input-search",
|
|
2600
2601
|
"data-variant": e.variant,
|
|
2601
2602
|
disabled: e.disabled
|
|
2602
|
-
}, c(
|
|
2603
|
+
}, c(Z)(i.$attrs, l.value).remaining), {
|
|
2603
2604
|
default: D(() => [
|
|
2604
|
-
e.hideSearchIcon ? C("", !0) : (
|
|
2605
|
+
e.hideSearchIcon ? C("", !0) : (d(), O(c(Ut), { key: 0 })),
|
|
2605
2606
|
P(Ie, z({
|
|
2606
2607
|
"data-autowidth": "",
|
|
2607
2608
|
disabled: e.disabled,
|
|
2608
2609
|
"input-id": i.$attrs.id || e.inputId,
|
|
2609
2610
|
placeholder: e.placeholder,
|
|
2610
2611
|
value: e.value || e.modelValue
|
|
2611
|
-
}, c(
|
|
2612
|
-
"onUpdate:modelValue":
|
|
2612
|
+
}, c(Z)(i.$attrs, l.value).filtered, {
|
|
2613
|
+
"onUpdate:modelValue": u[0] || (u[0] = (o) => i.$emit("update:modelValue", o))
|
|
2613
2614
|
}), null, 16, ["disabled", "input-id", "placeholder", "value"]),
|
|
2614
|
-
ue(
|
|
2615
|
+
ue(w("button", {
|
|
2615
2616
|
title: "Clear",
|
|
2616
2617
|
type: "button",
|
|
2617
|
-
onClick:
|
|
2618
|
+
onClick: u[1] || (u[1] = (o) => i.$emit("clear"))
|
|
2618
2619
|
}, [
|
|
2619
2620
|
P(c($e), { size: "sm" })
|
|
2620
2621
|
], 512), [
|
|
@@ -2624,10 +2625,13 @@ const ln = {
|
|
|
2624
2625
|
_: 1
|
|
2625
2626
|
}, 16, ["data-variant", "disabled"]));
|
|
2626
2627
|
}
|
|
2627
|
-
}), Vn = ["id"],
|
|
2628
|
+
}), Vn = ["id"], Ln = {
|
|
2628
2629
|
key: 0,
|
|
2629
2630
|
class: "filter-input-container"
|
|
2630
|
-
},
|
|
2631
|
+
}, En = {
|
|
2632
|
+
key: 1,
|
|
2633
|
+
class: "mobile-select-button-container"
|
|
2634
|
+
}, Lt = {
|
|
2631
2635
|
__name: "BsDropdownWithToggle",
|
|
2632
2636
|
props: {
|
|
2633
2637
|
anchorId: {
|
|
@@ -2660,6 +2664,10 @@ const ln = {
|
|
|
2660
2664
|
type: Boolean,
|
|
2661
2665
|
default: !1
|
|
2662
2666
|
},
|
|
2667
|
+
filterButtonText: {
|
|
2668
|
+
type: String,
|
|
2669
|
+
default: "Select"
|
|
2670
|
+
},
|
|
2663
2671
|
filterLabel: {
|
|
2664
2672
|
type: String,
|
|
2665
2673
|
default: ""
|
|
@@ -2733,14 +2741,14 @@ const ln = {
|
|
|
2733
2741
|
setup(e, { emit: a }) {
|
|
2734
2742
|
const t = e, l = a;
|
|
2735
2743
|
let n = null;
|
|
2736
|
-
const [i,
|
|
2737
|
-
function
|
|
2744
|
+
const [i, u] = Q(2), o = I(!1), s = I(""), r = I([...t.options]), m = f(() => t.selectedOptions.length), g = f(() => Je(async () => await (t.multiselect ? Promise.resolve().then(() => Nn) : Promise.resolve().then(() => Pn)))), v = f(() => t.optionsId || u.value), h = f(() => t.toggleId || i.value), y = () => n || (n = document.getElementById(h.value));
|
|
2745
|
+
function B() {
|
|
2738
2746
|
const F = document.activeElement;
|
|
2739
2747
|
return !F || F.tagName === "BODY" || F.id === v.value;
|
|
2740
2748
|
}
|
|
2741
2749
|
function p() {
|
|
2742
2750
|
var F, W;
|
|
2743
|
-
o.value = !1, l("close"),
|
|
2751
|
+
o.value = !1, l("close"), B() && ((W = (F = y()) == null ? void 0 : F.focus) == null || W.call(F));
|
|
2744
2752
|
}
|
|
2745
2753
|
function S() {
|
|
2746
2754
|
o.value && p();
|
|
@@ -2756,10 +2764,10 @@ const ln = {
|
|
|
2756
2764
|
const W = [...t.selectedOptions, F];
|
|
2757
2765
|
l("update:selectedOptions", W), l("check-option", F);
|
|
2758
2766
|
}
|
|
2759
|
-
function
|
|
2767
|
+
function A(F) {
|
|
2760
2768
|
t.multiselect || (l("update:selectedOption", F), p());
|
|
2761
2769
|
}
|
|
2762
|
-
function
|
|
2770
|
+
function L() {
|
|
2763
2771
|
s.value = "", r.value = t.options;
|
|
2764
2772
|
}
|
|
2765
2773
|
function R(F) {
|
|
@@ -2768,20 +2776,20 @@ const ln = {
|
|
|
2768
2776
|
return W.label.toLowerCase().startsWith((_ = s.value) == null ? void 0 : _.toLowerCase());
|
|
2769
2777
|
});
|
|
2770
2778
|
}
|
|
2771
|
-
return (F, W) => (
|
|
2779
|
+
return (F, W) => (d(), b("div", {
|
|
2772
2780
|
class: "bs-dropdown-with-toggle",
|
|
2773
2781
|
id: F.$attrs.id
|
|
2774
2782
|
}, [
|
|
2775
2783
|
V(F.$slots, "toggle", {
|
|
2776
2784
|
anchorId: e.anchorId,
|
|
2777
2785
|
optionsId: v.value,
|
|
2778
|
-
toggleId:
|
|
2786
|
+
toggleId: h.value
|
|
2779
2787
|
}, () => [
|
|
2780
2788
|
P(wn, {
|
|
2781
2789
|
"aria-controls": v.value,
|
|
2782
2790
|
"aria-expanded": e.open,
|
|
2783
2791
|
disabled: e.disabled,
|
|
2784
|
-
id:
|
|
2792
|
+
id: h.value,
|
|
2785
2793
|
open: e.open,
|
|
2786
2794
|
"options-id": v.value,
|
|
2787
2795
|
size: e.toggleSize,
|
|
@@ -2790,14 +2798,14 @@ const ln = {
|
|
|
2790
2798
|
}, {
|
|
2791
2799
|
label: D(() => [
|
|
2792
2800
|
V(F.$slots, "toggle-label", {}, () => [
|
|
2793
|
-
|
|
2801
|
+
U(T(e.toggleLabel), 1)
|
|
2794
2802
|
])
|
|
2795
2803
|
]),
|
|
2796
2804
|
_: 3
|
|
2797
2805
|
}, 8, ["aria-controls", "aria-expanded", "disabled", "id", "open", "options-id", "size", "badge-count"])
|
|
2798
2806
|
]),
|
|
2799
|
-
P(
|
|
2800
|
-
"anchor-id": e.anchorId ||
|
|
2807
|
+
P(ot, {
|
|
2808
|
+
"anchor-id": e.anchorId || h.value,
|
|
2801
2809
|
breakout: e.breakout,
|
|
2802
2810
|
"helper-text": e.helperText,
|
|
2803
2811
|
"helper-description": e.helperDescription,
|
|
@@ -2810,16 +2818,16 @@ const ln = {
|
|
|
2810
2818
|
onEnter: k
|
|
2811
2819
|
}, {
|
|
2812
2820
|
default: D(() => [
|
|
2813
|
-
e.filter ? (
|
|
2814
|
-
P(
|
|
2821
|
+
e.filter ? (d(), b("div", Ln, [
|
|
2822
|
+
P(Vt, {
|
|
2815
2823
|
"aria-label": e.filterLabel,
|
|
2816
2824
|
"model-value": s.value,
|
|
2817
2825
|
placeholder: e.filterPlaceholder,
|
|
2818
2826
|
"onUpdate:modelValue": R,
|
|
2819
|
-
onClear:
|
|
2827
|
+
onClear: L
|
|
2820
2828
|
}, null, 8, ["aria-label", "model-value", "placeholder"])
|
|
2821
2829
|
])) : C("", !0),
|
|
2822
|
-
P(c(
|
|
2830
|
+
P(c(g), {
|
|
2823
2831
|
class: le({ "filterable-options": e.filter }),
|
|
2824
2832
|
label: e.dropdownLabel,
|
|
2825
2833
|
"model-value": e.selectedOption,
|
|
@@ -2827,19 +2835,31 @@ const ln = {
|
|
|
2827
2835
|
"options-id": v.value,
|
|
2828
2836
|
"selected-options": e.selectedOptions,
|
|
2829
2837
|
shown: e.open,
|
|
2830
|
-
"onUpdate:modelValue":
|
|
2838
|
+
"onUpdate:modelValue": A,
|
|
2831
2839
|
onCheckOption: M,
|
|
2832
2840
|
onUncheckOption: $,
|
|
2833
2841
|
onClose: W[1] || (W[1] = (_) => e.multiselect ? void 0 : S())
|
|
2834
2842
|
}, {
|
|
2835
2843
|
default: D(() => [
|
|
2836
|
-
e.multiselect ? C("", !0) : (
|
|
2844
|
+
e.multiselect ? C("", !0) : (d(), O(qe, {
|
|
2837
2845
|
key: 0,
|
|
2838
2846
|
options: r.value
|
|
2839
2847
|
}, null, 8, ["options"]))
|
|
2840
2848
|
]),
|
|
2841
2849
|
_: 1
|
|
2842
|
-
}, 8, ["class", "label", "model-value", "options", "options-id", "selected-options", "shown"])
|
|
2850
|
+
}, 8, ["class", "label", "model-value", "options", "options-id", "selected-options", "shown"]),
|
|
2851
|
+
e.multiselect ? (d(), b("div", En, [
|
|
2852
|
+
P(xt, {
|
|
2853
|
+
title: e.filterButtonText,
|
|
2854
|
+
class: "mobile-select-button",
|
|
2855
|
+
onClick: W[2] || (W[2] = () => l("close"))
|
|
2856
|
+
}, {
|
|
2857
|
+
default: D(() => [
|
|
2858
|
+
U(T(e.filterButtonText), 1)
|
|
2859
|
+
]),
|
|
2860
|
+
_: 1
|
|
2861
|
+
}, 8, ["title"])
|
|
2862
|
+
])) : C("", !0)
|
|
2843
2863
|
]),
|
|
2844
2864
|
_: 1
|
|
2845
2865
|
}, 8, ["anchor-id", "breakout", "helper-text", "helper-description", "position", "shown", "use-mobile-style", "width"])
|
|
@@ -2904,24 +2924,24 @@ const ln = {
|
|
|
2904
2924
|
},
|
|
2905
2925
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
2906
2926
|
setup(e, { emit: a }) {
|
|
2907
|
-
const t = e, l = a, [n, i,
|
|
2927
|
+
const t = e, l = a, [n, i, u] = Q(3), o = I(!1), s = f(() => t.inputId || n.value);
|
|
2908
2928
|
function r(y) {
|
|
2909
2929
|
l("combobox:change", y.target.value), l("update:modelValue", y.target.value);
|
|
2910
2930
|
}
|
|
2911
2931
|
function m() {
|
|
2912
2932
|
l("combobox:change", ""), l("update:modelValue", "");
|
|
2913
2933
|
}
|
|
2914
|
-
function
|
|
2915
|
-
var
|
|
2916
|
-
(
|
|
2934
|
+
function g(y) {
|
|
2935
|
+
var B, p;
|
|
2936
|
+
(B = y.relatedTarget) != null && B.closest(`#${u.value}`) || (p = y.relatedTarget) != null && p.closest(`#${i.value}`) || (o.value = !1);
|
|
2917
2937
|
}
|
|
2918
2938
|
function v(y) {
|
|
2919
2939
|
l("combobox:input", y.target.value), t.updateOnInput && l("update:modelValue", y.target.value);
|
|
2920
2940
|
}
|
|
2921
|
-
function
|
|
2941
|
+
function h(y) {
|
|
2922
2942
|
y === !0 || y === !1 ? o.value = y : o.value = !o.value;
|
|
2923
2943
|
}
|
|
2924
|
-
return (y,
|
|
2944
|
+
return (y, B) => (d(), O(Lt, {
|
|
2925
2945
|
"anchor-id": c(i),
|
|
2926
2946
|
disabled: e.disabled,
|
|
2927
2947
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -2931,12 +2951,12 @@ const ln = {
|
|
|
2931
2951
|
multiselect: !1,
|
|
2932
2952
|
open: o.value,
|
|
2933
2953
|
options: e.options,
|
|
2934
|
-
"options-id": c(
|
|
2954
|
+
"options-id": c(u),
|
|
2935
2955
|
"selected-option": e.modelValue,
|
|
2936
2956
|
"toggle-id": y.$attrs.id || s.value,
|
|
2937
|
-
onClose:
|
|
2938
|
-
onFocusout:
|
|
2939
|
-
"onUpdate:selectedOption":
|
|
2957
|
+
onClose: B[0] || (B[0] = (p) => o.value = !1),
|
|
2958
|
+
onFocusout: g,
|
|
2959
|
+
"onUpdate:selectedOption": B[1] || (B[1] = (p) => y.$emit("update:modelValue", p))
|
|
2940
2960
|
}, {
|
|
2941
2961
|
toggle: D(() => [
|
|
2942
2962
|
P(yn, z({
|
|
@@ -2947,19 +2967,19 @@ const ln = {
|
|
|
2947
2967
|
"hint-id": e.hintId,
|
|
2948
2968
|
"model-value": e.displayValue || e.modelValue,
|
|
2949
2969
|
open: o.value,
|
|
2950
|
-
"options-id": c(
|
|
2970
|
+
"options-id": c(u),
|
|
2951
2971
|
placeholder: e.placeholder,
|
|
2952
2972
|
required: e.required,
|
|
2953
2973
|
onChange: r,
|
|
2954
2974
|
onClear: m,
|
|
2955
2975
|
onInput: v,
|
|
2956
|
-
onToggled:
|
|
2976
|
+
onToggled: h
|
|
2957
2977
|
}, y.$attrs), null, 16, ["id", "container-id", "disabled", "error", "hint-id", "model-value", "open", "options-id", "placeholder", "required"])
|
|
2958
2978
|
]),
|
|
2959
2979
|
_: 1
|
|
2960
2980
|
}, 8, ["anchor-id", "disabled", "dropdown-position", "dropdown-width", "helper-description", "helper-text", "open", "options", "options-id", "selected-option", "toggle-id"]));
|
|
2961
2981
|
}
|
|
2962
|
-
}),
|
|
2982
|
+
}), Mo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2963
2983
|
__name: "BsDropdownComboboxField",
|
|
2964
2984
|
props: {
|
|
2965
2985
|
disabled: {
|
|
@@ -3027,17 +3047,17 @@ const ln = {
|
|
|
3027
3047
|
},
|
|
3028
3048
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
3029
3049
|
setup(e, { emit: a }) {
|
|
3030
|
-
const t = e, [l, n] = Q(2), i = f(() => t.error && t.errorMsg || t.hint || void 0),
|
|
3031
|
-
return (o, s) => (
|
|
3032
|
-
e.label || o.$slots.label ? (
|
|
3050
|
+
const t = e, [l, n] = Q(2), i = f(() => t.error && t.errorMsg || t.hint || void 0), u = f(() => t.inputId || l.value);
|
|
3051
|
+
return (o, s) => (d(), b("div", z({ "data-component": "bs-dropdown-combobox-field" }, c(Z)(o.$attrs, c(be)).remaining), [
|
|
3052
|
+
e.label || o.$slots.label ? (d(), O(ne, {
|
|
3033
3053
|
key: 0,
|
|
3034
|
-
for: o.$attrs.id ||
|
|
3054
|
+
for: o.$attrs.id || u.value,
|
|
3035
3055
|
disabled: e.disabled,
|
|
3036
3056
|
required: e.required
|
|
3037
3057
|
}, {
|
|
3038
3058
|
default: D(() => [
|
|
3039
3059
|
V(o.$slots, "label", {}, () => [
|
|
3040
|
-
|
|
3060
|
+
U(T(e.label), 1)
|
|
3041
3061
|
])
|
|
3042
3062
|
]),
|
|
3043
3063
|
_: 3
|
|
@@ -3051,7 +3071,7 @@ const ln = {
|
|
|
3051
3071
|
"helper-text": e.helperText,
|
|
3052
3072
|
"helper-description": e.helperDescription,
|
|
3053
3073
|
"hint-id": c(n),
|
|
3054
|
-
"input-id": o.$attrs.id ||
|
|
3074
|
+
"input-id": o.$attrs.id || u.value,
|
|
3055
3075
|
"model-value": e.modelValue,
|
|
3056
3076
|
options: e.options,
|
|
3057
3077
|
placeholder: e.placeholder,
|
|
@@ -3060,17 +3080,17 @@ const ln = {
|
|
|
3060
3080
|
"onCombobox:change": s[0] || (s[0] = (r) => o.$emit("combobox:change", r)),
|
|
3061
3081
|
"onCombobox:input": s[1] || (s[1] = (r) => o.$emit("combobox:input", r)),
|
|
3062
3082
|
"onUpdate:modelValue": s[2] || (s[2] = (r) => o.$emit("update:modelValue", r))
|
|
3063
|
-
}, c(
|
|
3064
|
-
i.value ? (
|
|
3083
|
+
}, c(Z)(o.$attrs, c(be)).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"]),
|
|
3084
|
+
i.value ? (d(), O(ge, {
|
|
3065
3085
|
key: 1,
|
|
3066
3086
|
error: e.error,
|
|
3067
3087
|
"error-msg": e.errorMsg,
|
|
3068
|
-
hint: e.hint
|
|
3088
|
+
hint: e.hint,
|
|
3069
3089
|
"hint-id": c(n)
|
|
3070
3090
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : C("", !0)
|
|
3071
3091
|
], 16));
|
|
3072
3092
|
}
|
|
3073
|
-
}),
|
|
3093
|
+
}), Dn = ["aria-activedescendant", "aria-label", "data-overflow", "id", "tabindex"], Re = {
|
|
3074
3094
|
__name: "BsDropdownOptionList",
|
|
3075
3095
|
props: {
|
|
3076
3096
|
optionsId: {
|
|
@@ -3106,25 +3126,25 @@ const ln = {
|
|
|
3106
3126
|
"update:modelValue"
|
|
3107
3127
|
],
|
|
3108
3128
|
setup(e, { expose: a, emit: t }) {
|
|
3109
|
-
const l = e, n = t, i =
|
|
3110
|
-
fe("optionsId", f(() => l.optionsId)), fe("handleOptionSelect", ye),
|
|
3129
|
+
const l = e, n = t, i = I(null), u = I(null), o = I(-1), s = I(-1), r = I(null), m = I(!1), g = pe("dropdownEnter", I(!1)), v = pe("dropdownAfterEnter", I(!1)), h = pe("dropdownShown", I(!1));
|
|
3130
|
+
fe("optionsId", f(() => l.optionsId)), fe("handleOptionSelect", ye), ba(i, $, { childList: !0 }), me([" ", "Enter", "NumpadEnter"], ke, i), me(["ArrowDown", "ArrowUp", "Home", "End"], Ce);
|
|
3111
3131
|
const p = [/^[a-zA-Z0-9]{1}$/], S = {
|
|
3112
3132
|
keys: "",
|
|
3113
3133
|
lastTyped: 0
|
|
3114
3134
|
};
|
|
3115
|
-
me(p, (
|
|
3116
|
-
$(), W(
|
|
3117
|
-
}),
|
|
3118
|
-
[
|
|
3119
|
-
var
|
|
3120
|
-
return (
|
|
3135
|
+
me(p, (E) => xe(E, S)), X(() => {
|
|
3136
|
+
$(), W(h.value);
|
|
3137
|
+
}), G(
|
|
3138
|
+
[g, () => {
|
|
3139
|
+
var E;
|
|
3140
|
+
return (E = r.value) == null ? void 0 : E.length;
|
|
3121
3141
|
}],
|
|
3122
|
-
([
|
|
3123
|
-
(
|
|
3142
|
+
([E, j]) => {
|
|
3143
|
+
(E || j > 0) && (m.value = i.value.scrollHeight > i.value.clientHeight);
|
|
3124
3144
|
}
|
|
3125
|
-
),
|
|
3126
|
-
|
|
3127
|
-
}),
|
|
3145
|
+
), G(v, (E) => {
|
|
3146
|
+
E && (M(), A());
|
|
3147
|
+
}), G(h, (E) => W(E));
|
|
3128
3148
|
const k = f(() => l.modelValue || l.selectedValue);
|
|
3129
3149
|
function $() {
|
|
3130
3150
|
r.value = Array.from(
|
|
@@ -3134,65 +3154,65 @@ const ln = {
|
|
|
3134
3154
|
function M() {
|
|
3135
3155
|
i.value.getBoundingClientRect().bottom > window.innerHeight && i.value.scrollIntoView({ block: "nearest" });
|
|
3136
3156
|
}
|
|
3137
|
-
function
|
|
3138
|
-
var
|
|
3139
|
-
o.value > -1 && (M(), (
|
|
3157
|
+
function A() {
|
|
3158
|
+
var E;
|
|
3159
|
+
o.value > -1 && (M(), (E = r.value[o.value]) == null || E.scrollIntoView({ block: "nearest" }));
|
|
3140
3160
|
}
|
|
3141
|
-
function
|
|
3142
|
-
var
|
|
3143
|
-
o.value > -1 && ((
|
|
3161
|
+
function L() {
|
|
3162
|
+
var E, j;
|
|
3163
|
+
o.value > -1 && ((E = r.value[o.value]) == null || E.setAttribute("data-active", ""), u.value = (j = r.value[o.value]) == null ? void 0 : j.id, A());
|
|
3144
3164
|
}
|
|
3145
3165
|
function R() {
|
|
3146
|
-
var
|
|
3147
|
-
o.value > -1 && ((
|
|
3166
|
+
var E;
|
|
3167
|
+
o.value > -1 && ((E = r.value[o.value]) == null || E.removeAttribute("data-active"));
|
|
3148
3168
|
}
|
|
3149
3169
|
function F() {
|
|
3150
|
-
var
|
|
3151
|
-
o.value < 0 && (o.value = 0,
|
|
3170
|
+
var E;
|
|
3171
|
+
o.value < 0 && (o.value = 0, u.value = (E = r.value[0]) == null ? void 0 : E.id), L();
|
|
3152
3172
|
}
|
|
3153
|
-
function W(
|
|
3154
|
-
|
|
3173
|
+
function W(E) {
|
|
3174
|
+
E ? _() : he();
|
|
3155
3175
|
}
|
|
3156
3176
|
function _() {
|
|
3157
|
-
var
|
|
3177
|
+
var E, j;
|
|
3158
3178
|
l.multiselect || (s.value = r.value.findIndex(
|
|
3159
3179
|
(q) => q.getAttribute("data-value") === String(k.value)
|
|
3160
|
-
), !l.multiselect && s.value > -1 && ((
|
|
3180
|
+
), !l.multiselect && s.value > -1 && ((E = r.value[s.value]) == null || E.setAttribute("data-selected", ""), (j = r.value[s.value]) == null || j.setAttribute("aria-selected", "true")), o.value = s.value);
|
|
3161
3181
|
}
|
|
3162
3182
|
function he() {
|
|
3163
|
-
r.value.forEach((
|
|
3164
|
-
|
|
3165
|
-
}), R(), s.value = -1, o.value = -1,
|
|
3183
|
+
r.value.forEach((E) => {
|
|
3184
|
+
E.removeAttribute("data-selected"), E.setAttribute("aria-selected", "false");
|
|
3185
|
+
}), R(), s.value = -1, o.value = -1, u.value = null;
|
|
3166
3186
|
}
|
|
3167
|
-
function ye(
|
|
3187
|
+
function ye(E) {
|
|
3168
3188
|
var q;
|
|
3169
|
-
(q =
|
|
3170
|
-
let j =
|
|
3171
|
-
|
|
3189
|
+
(q = E.querySelector("a")) == null || q.click();
|
|
3190
|
+
let j = E.getAttribute("data-value");
|
|
3191
|
+
E.getAttribute("data-value-type") === "number" && (j = Number(j)), u.value = E.id, R(), n("optselected", j), n("update:modelValue", j), n("close");
|
|
3172
3192
|
}
|
|
3173
|
-
function ke(
|
|
3174
|
-
ye(r.value[o.value]),
|
|
3193
|
+
function ke(E) {
|
|
3194
|
+
ye(r.value[o.value]), E.preventDefault();
|
|
3175
3195
|
}
|
|
3176
|
-
function Ce(
|
|
3177
|
-
if (
|
|
3178
|
-
switch (
|
|
3196
|
+
function Ce(E) {
|
|
3197
|
+
if (h.value)
|
|
3198
|
+
switch (E.key) {
|
|
3179
3199
|
case "ArrowDown":
|
|
3180
|
-
se("down"),
|
|
3200
|
+
se("down"), E.preventDefault();
|
|
3181
3201
|
break;
|
|
3182
3202
|
case "ArrowUp":
|
|
3183
|
-
se("up"),
|
|
3203
|
+
se("up"), E.preventDefault();
|
|
3184
3204
|
break;
|
|
3185
3205
|
case "Home":
|
|
3186
|
-
se("home"),
|
|
3206
|
+
se("home"), E.preventDefault();
|
|
3187
3207
|
break;
|
|
3188
3208
|
case "End":
|
|
3189
|
-
se("end"),
|
|
3209
|
+
se("end"), E.preventDefault();
|
|
3190
3210
|
break;
|
|
3191
3211
|
}
|
|
3192
3212
|
}
|
|
3193
|
-
function se(
|
|
3213
|
+
function se(E) {
|
|
3194
3214
|
let j;
|
|
3195
|
-
switch (
|
|
3215
|
+
switch (E) {
|
|
3196
3216
|
case "up":
|
|
3197
3217
|
j = o.value - 1 < 0 ? r.value.length - 1 : o.value - 1;
|
|
3198
3218
|
break;
|
|
@@ -3208,25 +3228,25 @@ const ln = {
|
|
|
3208
3228
|
}
|
|
3209
3229
|
Se(j);
|
|
3210
3230
|
}
|
|
3211
|
-
function xe(
|
|
3212
|
-
if (!
|
|
3213
|
-
j.keys =
|
|
3214
|
-
const q = r.value.findIndex((
|
|
3231
|
+
function xe(E, j) {
|
|
3232
|
+
if (!h.value) return;
|
|
3233
|
+
j.keys = E.timeStamp - j.lastTyped > 500 ? E.key : j.keys + E.key, j.lastTyped = E.timeStamp;
|
|
3234
|
+
const q = r.value.findIndex((Y) => Y.textContent.replaceAll(/[^a-zA-Z0-9]/g, "").toLowerCase().startsWith(j.keys));
|
|
3215
3235
|
q > -1 && Se(q, !1);
|
|
3216
3236
|
}
|
|
3217
|
-
function Se(
|
|
3218
|
-
R(), o.value =
|
|
3237
|
+
function Se(E, j = !0) {
|
|
3238
|
+
R(), o.value = E, document.activeElement !== i.value && j ? i.value.focus() : L();
|
|
3219
3239
|
}
|
|
3220
3240
|
return a({
|
|
3221
3241
|
activeIndex: o,
|
|
3222
3242
|
optionEls: r,
|
|
3223
3243
|
optionsRef: i,
|
|
3224
3244
|
refreshOptions: $,
|
|
3225
|
-
setCurrentActive:
|
|
3226
|
-
}), (
|
|
3245
|
+
setCurrentActive: L
|
|
3246
|
+
}), (E, j) => (d(), b("ul", {
|
|
3227
3247
|
ref_key: "optionsRef",
|
|
3228
3248
|
ref: i,
|
|
3229
|
-
"aria-activedescendant":
|
|
3249
|
+
"aria-activedescendant": u.value || void 0,
|
|
3230
3250
|
"aria-label": e.label,
|
|
3231
3251
|
"aria-live": "polite",
|
|
3232
3252
|
class: "bs-dropdown-options",
|
|
@@ -3234,23 +3254,23 @@ const ln = {
|
|
|
3234
3254
|
"data-overflow": m.value,
|
|
3235
3255
|
id: e.optionsId,
|
|
3236
3256
|
role: "listbox",
|
|
3237
|
-
tabindex: c(
|
|
3257
|
+
tabindex: c(h) ? 0 : void 0,
|
|
3238
3258
|
onBlur: R,
|
|
3239
3259
|
onFocus: F,
|
|
3240
3260
|
onMousedown: j[0] || (j[0] = wt(() => {
|
|
3241
3261
|
}, ["prevent"]))
|
|
3242
3262
|
}, [
|
|
3243
|
-
V(
|
|
3244
|
-
], 40,
|
|
3263
|
+
V(E.$slots, "default")
|
|
3264
|
+
], 40, Dn));
|
|
3245
3265
|
}
|
|
3246
|
-
},
|
|
3266
|
+
}, Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3247
3267
|
__proto__: null,
|
|
3248
3268
|
default: Re
|
|
3249
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3269
|
+
}, Symbol.toStringTag, { value: "Module" })), qn = { role: "separator" }, Mn = {
|
|
3250
3270
|
key: 1,
|
|
3251
3271
|
role: "option",
|
|
3252
3272
|
"data-no-hover": "true"
|
|
3253
|
-
},
|
|
3273
|
+
}, Dt = {
|
|
3254
3274
|
__name: "BsDropdownMultiselect",
|
|
3255
3275
|
props: {
|
|
3256
3276
|
focusOnOpen: {
|
|
@@ -3284,51 +3304,51 @@ const ln = {
|
|
|
3284
3304
|
"uncheck-option"
|
|
3285
3305
|
],
|
|
3286
3306
|
setup(e, { emit: a }) {
|
|
3287
|
-
const t = e, l = a, n =
|
|
3288
|
-
var
|
|
3289
|
-
return ((
|
|
3307
|
+
const t = e, l = a, n = I(null), i = I([]), u = I([]), o = f(() => {
|
|
3308
|
+
var B, p;
|
|
3309
|
+
return ((B = i.value) == null ? void 0 : B.length) && ((p = u.value) == null ? void 0 : p.length);
|
|
3290
3310
|
}), s = f(() => {
|
|
3291
|
-
var
|
|
3292
|
-
return ((
|
|
3311
|
+
var B, p;
|
|
3312
|
+
return ((B = i.value) == null ? void 0 : B.length) || ((p = u.value) == null ? void 0 : p.length);
|
|
3293
3313
|
});
|
|
3294
3314
|
let r = !1;
|
|
3295
|
-
|
|
3315
|
+
G(() => t.options, () => {
|
|
3296
3316
|
v(t.selectedOptions);
|
|
3297
|
-
}),
|
|
3317
|
+
}), G(
|
|
3298
3318
|
() => t.selectedOptions,
|
|
3299
3319
|
v,
|
|
3300
3320
|
{ immediate: !0 }
|
|
3301
|
-
),
|
|
3302
|
-
|
|
3321
|
+
), G(() => t.shown, (B) => {
|
|
3322
|
+
B && t.focusOnOpen && Ae(m);
|
|
3303
3323
|
});
|
|
3304
3324
|
function m() {
|
|
3305
3325
|
n.value && (n.value.refreshOptions(), n.value.optionsRef.focus());
|
|
3306
3326
|
}
|
|
3307
|
-
function
|
|
3327
|
+
function g() {
|
|
3308
3328
|
n.value && (n.value.refreshOptions(), n.value.setCurrentActive());
|
|
3309
3329
|
}
|
|
3310
|
-
function v(
|
|
3311
|
-
const p = new Set(
|
|
3330
|
+
function v(B = []) {
|
|
3331
|
+
const p = new Set(B), S = [], k = [];
|
|
3312
3332
|
t.options.forEach(($) => {
|
|
3313
|
-
const M = { ...$ },
|
|
3314
|
-
p.has($.value) ? (M.checkbox = { inputId:
|
|
3333
|
+
const M = { ...$ }, A = `${t.optionsId}-${$.value}-cb`;
|
|
3334
|
+
p.has($.value) ? (M.checkbox = { inputId: A, checked: !0 }, S.push(M)) : (M.checkbox = { inputId: A, checked: !1 }, k.push(M));
|
|
3315
3335
|
}), i.value = S, Ae(() => {
|
|
3316
|
-
|
|
3317
|
-
r &&
|
|
3336
|
+
u.value = k, Ae(() => {
|
|
3337
|
+
r && g(), r = !1;
|
|
3318
3338
|
});
|
|
3319
3339
|
});
|
|
3320
3340
|
}
|
|
3321
|
-
function
|
|
3322
|
-
const p = new Set(
|
|
3341
|
+
function h(B = []) {
|
|
3342
|
+
const p = new Set(B), S = [];
|
|
3323
3343
|
return t.options.forEach((k) => {
|
|
3324
3344
|
p.has(k.value) && S.push(k.value);
|
|
3325
3345
|
}), S;
|
|
3326
3346
|
}
|
|
3327
|
-
function y(
|
|
3347
|
+
function y(B) {
|
|
3328
3348
|
let p = [];
|
|
3329
|
-
t.selectedOptions.includes(
|
|
3349
|
+
t.selectedOptions.includes(B) ? (p = t.selectedOptions.filter((S) => S !== B), l("uncheck-option", B)) : (p = h([...t.selectedOptions, B]), l("check-option", B)), r = !0, l("update:selectedOptions", p);
|
|
3330
3350
|
}
|
|
3331
|
-
return (
|
|
3351
|
+
return (B, p) => (d(), O(Re, {
|
|
3332
3352
|
ref_key: "optlist",
|
|
3333
3353
|
ref: n,
|
|
3334
3354
|
"aria-multiselectable": "true",
|
|
@@ -3340,33 +3360,33 @@ const ln = {
|
|
|
3340
3360
|
"onUpdate:modelValue": y
|
|
3341
3361
|
}, {
|
|
3342
3362
|
default: D(() => [
|
|
3343
|
-
s.value ? (
|
|
3363
|
+
s.value ? (d(), b(K, { key: 0 }, [
|
|
3344
3364
|
P(qe, {
|
|
3345
3365
|
options: i.value,
|
|
3346
3366
|
"show-no-options": !1
|
|
3347
3367
|
}, null, 8, ["options"]),
|
|
3348
|
-
ue(
|
|
3349
|
-
|
|
3368
|
+
ue(w("li", qn, p[0] || (p[0] = [
|
|
3369
|
+
w("hr", null, null, -1)
|
|
3350
3370
|
]), 512), [
|
|
3351
3371
|
[ce, o.value]
|
|
3352
3372
|
]),
|
|
3353
3373
|
P(qe, {
|
|
3354
|
-
options:
|
|
3374
|
+
options: u.value,
|
|
3355
3375
|
"show-no-options": !1
|
|
3356
3376
|
}, null, 8, ["options"])
|
|
3357
|
-
], 64)) : (
|
|
3358
|
-
V(
|
|
3359
|
-
p[1] || (p[1] =
|
|
3377
|
+
], 64)) : (d(), b("li", Mn, [
|
|
3378
|
+
V(B.$slots, "no-options", {}, () => [
|
|
3379
|
+
p[1] || (p[1] = U("No options"))
|
|
3360
3380
|
])
|
|
3361
3381
|
]))
|
|
3362
3382
|
]),
|
|
3363
3383
|
_: 3
|
|
3364
3384
|
}, 8, ["label", "options-id", "shown"]));
|
|
3365
3385
|
}
|
|
3366
|
-
},
|
|
3386
|
+
}, Nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3367
3387
|
__proto__: null,
|
|
3368
|
-
default:
|
|
3369
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3388
|
+
default: Dt
|
|
3389
|
+
}, Symbol.toStringTag, { value: "Module" })), zn = {
|
|
3370
3390
|
__name: "BsDropdownWithOptionsNew",
|
|
3371
3391
|
props: {
|
|
3372
3392
|
// DROPDOWN PROPS
|
|
@@ -3441,17 +3461,17 @@ const ln = {
|
|
|
3441
3461
|
"after-leave"
|
|
3442
3462
|
],
|
|
3443
3463
|
setup(e, { emit: a }) {
|
|
3444
|
-
const t = a, l =
|
|
3464
|
+
const t = a, l = I(!1);
|
|
3445
3465
|
function n() {
|
|
3446
3466
|
l.value = !0;
|
|
3447
3467
|
}
|
|
3448
3468
|
function i(o) {
|
|
3449
3469
|
l.value = !1, t("update:modelValue", o), t("close");
|
|
3450
3470
|
}
|
|
3451
|
-
function
|
|
3471
|
+
function u() {
|
|
3452
3472
|
l.value && (l.value = !1, t("close"));
|
|
3453
3473
|
}
|
|
3454
|
-
return (o, s) => (
|
|
3474
|
+
return (o, s) => (d(), O(c(ot), {
|
|
3455
3475
|
"anchor-id": e.anchorId,
|
|
3456
3476
|
breakout: e.breakout,
|
|
3457
3477
|
"container-id": e.containerId,
|
|
@@ -3462,7 +3482,7 @@ const ln = {
|
|
|
3462
3482
|
shown: e.shown,
|
|
3463
3483
|
"use-mobile-style": e.useMobileStyle,
|
|
3464
3484
|
width: e.width,
|
|
3465
|
-
onClose:
|
|
3485
|
+
onClose: u,
|
|
3466
3486
|
onAfterEnter: s[0] || (s[0] = (r) => t("after-enter")),
|
|
3467
3487
|
onEnter: n,
|
|
3468
3488
|
onAfterLeave: s[1] || (s[1] = (r) => t("after-leave"))
|
|
@@ -3475,7 +3495,7 @@ const ln = {
|
|
|
3475
3495
|
"prevent-tab": e.preventTab,
|
|
3476
3496
|
"type-to-focus": e.typeToFocus,
|
|
3477
3497
|
"onUpdate:modelValue": i,
|
|
3478
|
-
onClose:
|
|
3498
|
+
onClose: u
|
|
3479
3499
|
}, {
|
|
3480
3500
|
default: D(() => [
|
|
3481
3501
|
V(o.$slots, "default")
|
|
@@ -3486,7 +3506,7 @@ const ln = {
|
|
|
3486
3506
|
_: 3
|
|
3487
3507
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
|
|
3488
3508
|
}
|
|
3489
|
-
},
|
|
3509
|
+
}, Pt = {
|
|
3490
3510
|
__name: "BsDropdownWithOptions",
|
|
3491
3511
|
props: {
|
|
3492
3512
|
anchorId: {
|
|
@@ -3600,11 +3620,11 @@ const ln = {
|
|
|
3600
3620
|
"after-leave"
|
|
3601
3621
|
],
|
|
3602
3622
|
setup(e, { emit: a }) {
|
|
3603
|
-
const t = e, l = a, { transition: n } =
|
|
3623
|
+
const t = e, l = a, { transition: n } = Ee(t), i = f(() => t.width === "toggle" ? "anchor" : t.width), u = f(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = f(() => t.toggleId ? t.toggleId : t.anchorId), s = f(() => t.selectedValue || t.modelValue);
|
|
3604
3624
|
function r(m) {
|
|
3605
3625
|
l("optselected", m), l("update:modelValue", m);
|
|
3606
3626
|
}
|
|
3607
|
-
return (m,
|
|
3627
|
+
return (m, g) => (d(), O(zn, {
|
|
3608
3628
|
"anchor-id": o.value,
|
|
3609
3629
|
breakout: e.breakout,
|
|
3610
3630
|
"container-id": e.containerId,
|
|
@@ -3613,15 +3633,15 @@ const ln = {
|
|
|
3613
3633
|
label: e.label,
|
|
3614
3634
|
"model-value": s.value,
|
|
3615
3635
|
"options-id": e.optionsId,
|
|
3616
|
-
position:
|
|
3636
|
+
position: u.value,
|
|
3617
3637
|
preloaded: e.preloaded,
|
|
3618
3638
|
"prevent-tab": e.preventTab,
|
|
3619
3639
|
shown: c(n),
|
|
3620
3640
|
"use-mobile-style": e.useMobileStyle,
|
|
3621
3641
|
width: i.value,
|
|
3622
|
-
onClose:
|
|
3623
|
-
onAfterEnter:
|
|
3624
|
-
onAfterLeave:
|
|
3642
|
+
onClose: g[0] || (g[0] = (v) => l("close")),
|
|
3643
|
+
onAfterEnter: g[1] || (g[1] = (v) => l("after-enter")),
|
|
3644
|
+
onAfterLeave: g[2] || (g[2] = (v) => l("after-leave")),
|
|
3625
3645
|
"onUpdate:modelValue": r
|
|
3626
3646
|
}, {
|
|
3627
3647
|
default: D(() => [
|
|
@@ -3630,10 +3650,10 @@ const ln = {
|
|
|
3630
3650
|
_: 3
|
|
3631
3651
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "label", "model-value", "options-id", "position", "preloaded", "prevent-tab", "shown", "use-mobile-style", "width"]));
|
|
3632
3652
|
}
|
|
3633
|
-
},
|
|
3653
|
+
}, Fn = ["data-size"], Rn = { class: "bs-empty-state-icon" }, jn = { class: "bs-empty-state-title" }, Wn = {
|
|
3634
3654
|
key: 0,
|
|
3635
3655
|
class: "bs-empty-state-description"
|
|
3636
|
-
},
|
|
3656
|
+
}, No = {
|
|
3637
3657
|
__name: "BsEmptyState",
|
|
3638
3658
|
props: {
|
|
3639
3659
|
description: {
|
|
@@ -3642,7 +3662,7 @@ const ln = {
|
|
|
3642
3662
|
},
|
|
3643
3663
|
iconName: {
|
|
3644
3664
|
type: String,
|
|
3645
|
-
|
|
3665
|
+
default: ""
|
|
3646
3666
|
},
|
|
3647
3667
|
size: {
|
|
3648
3668
|
type: String,
|
|
@@ -3656,28 +3676,28 @@ const ln = {
|
|
|
3656
3676
|
},
|
|
3657
3677
|
setup(e) {
|
|
3658
3678
|
const a = e, { icon: t } = Oe(a, "iconName");
|
|
3659
|
-
return (l, n) => (
|
|
3679
|
+
return (l, n) => (d(), b("div", {
|
|
3660
3680
|
class: "bs-empty-state",
|
|
3661
3681
|
"data-component": "bs-empty-state",
|
|
3662
3682
|
"data-size": e.size
|
|
3663
3683
|
}, [
|
|
3664
|
-
|
|
3684
|
+
w("div", Rn, [
|
|
3665
3685
|
V(l.$slots, "icon", {}, () => [
|
|
3666
|
-
(
|
|
3686
|
+
(d(), O(ae(c(t)), { size: "auto" }))
|
|
3667
3687
|
])
|
|
3668
3688
|
]),
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
e.size !== "xs" ? (
|
|
3689
|
+
w("div", null, [
|
|
3690
|
+
w("p", jn, T(e.title), 1),
|
|
3691
|
+
e.size !== "xs" ? (d(), b("p", Wn, [
|
|
3672
3692
|
V(l.$slots, "description", {}, () => [
|
|
3673
|
-
|
|
3693
|
+
U(T(e.description), 1)
|
|
3674
3694
|
])
|
|
3675
3695
|
])) : C("", !0),
|
|
3676
3696
|
V(l.$slots, "call-to-action")
|
|
3677
3697
|
])
|
|
3678
|
-
], 8,
|
|
3698
|
+
], 8, Fn));
|
|
3679
3699
|
}
|
|
3680
|
-
},
|
|
3700
|
+
}, Un = ["data-absolute", "data-position", "data-shown", "data-size"], Gn = { class: "bs-flyout-close-container" }, zo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3681
3701
|
__name: "BsFlyout",
|
|
3682
3702
|
props: {
|
|
3683
3703
|
absolute: {
|
|
@@ -3713,18 +3733,18 @@ const ln = {
|
|
|
3713
3733
|
},
|
|
3714
3734
|
emits: ["close"],
|
|
3715
3735
|
setup(e, { emit: a }) {
|
|
3716
|
-
const t = e, l = a, n =
|
|
3717
|
-
Ct([n, i],
|
|
3718
|
-
function
|
|
3736
|
+
const t = e, l = a, n = I(null), i = f(() => document.getElementById(t.toggleId));
|
|
3737
|
+
Ct([n, i], u), me(["Escape"], u);
|
|
3738
|
+
function u() {
|
|
3719
3739
|
t.shown && l("close");
|
|
3720
3740
|
}
|
|
3721
|
-
return (o, s) => (
|
|
3741
|
+
return (o, s) => (d(), O(Pe, {
|
|
3722
3742
|
name: "bs-flyout",
|
|
3723
3743
|
preloaded: e.preloaded,
|
|
3724
3744
|
shown: e.shown
|
|
3725
3745
|
}, {
|
|
3726
3746
|
default: D(() => [
|
|
3727
|
-
|
|
3747
|
+
w("div", z({
|
|
3728
3748
|
ref_key: "flyout",
|
|
3729
3749
|
ref: n,
|
|
3730
3750
|
class: "bs-flyout",
|
|
@@ -3734,34 +3754,34 @@ const ln = {
|
|
|
3734
3754
|
"data-shown": e.shown,
|
|
3735
3755
|
"data-size": e.size
|
|
3736
3756
|
}, o.$attrs), [
|
|
3737
|
-
|
|
3738
|
-
|
|
3757
|
+
w("div", Gn, [
|
|
3758
|
+
w("button", {
|
|
3739
3759
|
type: "button",
|
|
3740
3760
|
title: "Close",
|
|
3741
3761
|
"aria-label": "Close",
|
|
3742
|
-
onClick:
|
|
3762
|
+
onClick: u
|
|
3743
3763
|
}, [
|
|
3744
3764
|
P(c($e))
|
|
3745
3765
|
])
|
|
3746
3766
|
]),
|
|
3747
3767
|
V(o.$slots, "default")
|
|
3748
|
-
], 16,
|
|
3768
|
+
], 16, Un)
|
|
3749
3769
|
]),
|
|
3750
3770
|
_: 3
|
|
3751
3771
|
}, 8, ["preloaded", "shown"]));
|
|
3752
3772
|
}
|
|
3753
|
-
}),
|
|
3773
|
+
}), Hn = ["view-box"], Kn = ["id"], Yn = ["offset", "stop-color"], Fo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3754
3774
|
__name: "BsIconGradientWrapper",
|
|
3755
3775
|
setup(e) {
|
|
3756
|
-
const a =
|
|
3776
|
+
const a = I(null), t = I(null), l = [
|
|
3757
3777
|
{ offset: 0.1326, color: "#EE282A" },
|
|
3758
3778
|
{ offset: 0.5466, color: "#1C0087" },
|
|
3759
3779
|
{ offset: 0.9715, color: "#0086EA" }
|
|
3760
3780
|
], [n] = Q();
|
|
3761
|
-
return
|
|
3781
|
+
return X(() => {
|
|
3762
3782
|
t.value = a.value.querySelector("svg").getAttribute("viewBox") || "0 0 0 0";
|
|
3763
|
-
}), (i,
|
|
3764
|
-
|
|
3783
|
+
}), (i, u) => (d(), b(K, null, [
|
|
3784
|
+
w("span", z({
|
|
3765
3785
|
ref_key: "svgWrapperRef",
|
|
3766
3786
|
ref: a,
|
|
3767
3787
|
class: "bs-icon-gradient-wrapper",
|
|
@@ -3769,13 +3789,13 @@ const ln = {
|
|
|
3769
3789
|
}, i.$attrs), [
|
|
3770
3790
|
V(i.$slots, "default")
|
|
3771
3791
|
], 16),
|
|
3772
|
-
(
|
|
3792
|
+
(d(), b("svg", {
|
|
3773
3793
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3774
3794
|
"view-box": t.value,
|
|
3775
3795
|
width: "0",
|
|
3776
3796
|
height: "0"
|
|
3777
3797
|
}, [
|
|
3778
|
-
|
|
3798
|
+
w("linearGradient", {
|
|
3779
3799
|
id: c(n),
|
|
3780
3800
|
x1: "0",
|
|
3781
3801
|
y1: "0",
|
|
@@ -3783,16 +3803,16 @@ const ln = {
|
|
|
3783
3803
|
y2: "100%",
|
|
3784
3804
|
"gradient-units": "userSpaceOnUse"
|
|
3785
3805
|
}, [
|
|
3786
|
-
(
|
|
3806
|
+
(d(), b(K, null, te(l, (o) => w("stop", {
|
|
3787
3807
|
key: o.offset,
|
|
3788
3808
|
offset: o.offset,
|
|
3789
3809
|
"stop-color": o.color
|
|
3790
|
-
}, null, 8,
|
|
3791
|
-
], 8,
|
|
3792
|
-
], 8,
|
|
3810
|
+
}, null, 8, Yn)), 64))
|
|
3811
|
+
], 8, Kn)
|
|
3812
|
+
], 8, Hn))
|
|
3793
3813
|
], 64));
|
|
3794
3814
|
}
|
|
3795
|
-
}),
|
|
3815
|
+
}), Ro = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3796
3816
|
__name: "BsInputField",
|
|
3797
3817
|
props: {
|
|
3798
3818
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -3839,13 +3859,13 @@ const ln = {
|
|
|
3839
3859
|
},
|
|
3840
3860
|
emits: ["update:modelValue"],
|
|
3841
3861
|
setup(e, { emit: a }) {
|
|
3842
|
-
const t = e, [l, n] = Q(2), i = f(() => be.concat(t.passAttrs.split(",")).concat("type")),
|
|
3862
|
+
const t = e, [l, n] = Q(2), i = f(() => be.concat(t.passAttrs.split(",")).concat("type")), u = f(() => {
|
|
3843
3863
|
var r, m;
|
|
3844
3864
|
return ((m = (r = t.hints) == null ? void 0 : r.join) == null ? void 0 : m.call(r, `
|
|
3845
3865
|
`)) || t.hints;
|
|
3846
|
-
}), o = f(() => t.error && t.errorMsg || t.hint ||
|
|
3847
|
-
return (r, m) => (
|
|
3848
|
-
e.label || r.$slots.label ? (
|
|
3866
|
+
}), o = f(() => t.error && t.errorMsg || t.hint || u.value || void 0), s = f(() => t.inputId || l.value);
|
|
3867
|
+
return (r, m) => (d(), b("div", z({ "data-component": "bs-input-field" }, c(Z)(r.$attrs, i.value).remaining), [
|
|
3868
|
+
e.label || r.$slots.label ? (d(), O(ne, {
|
|
3849
3869
|
key: 0,
|
|
3850
3870
|
for: r.$attrs.id || s.value,
|
|
3851
3871
|
disabled: e.disabled,
|
|
@@ -3853,7 +3873,7 @@ const ln = {
|
|
|
3853
3873
|
}, {
|
|
3854
3874
|
default: D(() => [
|
|
3855
3875
|
V(r.$slots, "label", {}, () => [
|
|
3856
|
-
|
|
3876
|
+
U(T(e.label), 1)
|
|
3857
3877
|
])
|
|
3858
3878
|
]),
|
|
3859
3879
|
_: 3
|
|
@@ -3867,18 +3887,18 @@ const ln = {
|
|
|
3867
3887
|
required: e.required,
|
|
3868
3888
|
type: e.type,
|
|
3869
3889
|
value: e.value || e.modelValue,
|
|
3870
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
3871
|
-
}, c(
|
|
3872
|
-
o.value ? (
|
|
3890
|
+
"onUpdate:modelValue": m[0] || (m[0] = (g) => r.$emit("update:modelValue", g))
|
|
3891
|
+
}, c(Z)(r.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
|
|
3892
|
+
o.value ? (d(), O(ge, {
|
|
3873
3893
|
key: 1,
|
|
3874
3894
|
error: e.error,
|
|
3875
3895
|
"error-msg": e.errorMsg,
|
|
3876
|
-
hint: e.hint ||
|
|
3896
|
+
hint: e.hint || u.value,
|
|
3877
3897
|
"hint-id": c(n)
|
|
3878
3898
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : C("", !0)
|
|
3879
3899
|
], 16));
|
|
3880
3900
|
}
|
|
3881
|
-
}),
|
|
3901
|
+
}), bt = {
|
|
3882
3902
|
A: "🇦",
|
|
3883
3903
|
B: "🇧",
|
|
3884
3904
|
C: "🇨",
|
|
@@ -3931,8 +3951,8 @@ const ln = {
|
|
|
3931
3951
|
* @returns {Country[]} an array of country objects
|
|
3932
3952
|
*/
|
|
3933
3953
|
initSourceData() {
|
|
3934
|
-
return this.data.allCountries || (this.data.allCountries =
|
|
3935
|
-
const a =
|
|
3954
|
+
return this.data.allCountries || (this.data.allCountries = ca().map((e) => {
|
|
3955
|
+
const a = fa(e), t = bt[a[0]] + bt[a[1]] || "";
|
|
3936
3956
|
return {
|
|
3937
3957
|
label: `+${e}`,
|
|
3938
3958
|
flag: t,
|
|
@@ -3946,10 +3966,10 @@ const ln = {
|
|
|
3946
3966
|
this.data[e][t[a]] = t;
|
|
3947
3967
|
}));
|
|
3948
3968
|
}
|
|
3949
|
-
},
|
|
3969
|
+
}, Zn = ["id", "aria-controls", "aria-expanded", "aria-label", "disabled"], Xn = { key: 0 }, Qn = {
|
|
3950
3970
|
"aria-hidden": "true",
|
|
3951
3971
|
style: { width: "1.25rem" }
|
|
3952
|
-
},
|
|
3972
|
+
}, Jn = { "aria-hidden": "true" }, jo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3953
3973
|
__name: "BsInputPhone",
|
|
3954
3974
|
props: {
|
|
3955
3975
|
deferValidation: {
|
|
@@ -4011,70 +4031,70 @@ const ln = {
|
|
|
4011
4031
|
"Escape",
|
|
4012
4032
|
"Home",
|
|
4013
4033
|
"Tab"
|
|
4014
|
-
],
|
|
4034
|
+
], u = I(null), o = I(1), s = I([]), r = I(null), [
|
|
4015
4035
|
m,
|
|
4016
|
-
|
|
4036
|
+
g,
|
|
4017
4037
|
v,
|
|
4018
|
-
|
|
4019
|
-
] = Q(4), y =
|
|
4038
|
+
h
|
|
4039
|
+
] = Q(4), y = I(!1), B = I(""), p = I(""), S = I(!1), k = I(!1), $ = I(!0);
|
|
4020
4040
|
a({
|
|
4021
4041
|
validationErr: S,
|
|
4022
4042
|
validationErrMsg: p
|
|
4023
4043
|
});
|
|
4024
|
-
const M = f(() =>
|
|
4025
|
-
|
|
4044
|
+
const M = f(() => B.value ? `+${o.value}${B.value}` : ""), A = f(() => `Country code: ${o.value}. Click to change.`), L = f(() => $.value ? l.errorMsg || p.value : ""), R = f(() => l.error || S.value), F = f(() => l.hint || R.value && L.value), W = f(() => $.value && R.value);
|
|
4045
|
+
G(M, (q) => {
|
|
4026
4046
|
n("update:modelValue", q), j(q);
|
|
4027
|
-
}),
|
|
4028
|
-
function _(q,
|
|
4029
|
-
q === "" && q !==
|
|
4047
|
+
}), G(() => l.modelValue, _), xe(), X(() => y.value = !0);
|
|
4048
|
+
function _(q, Y) {
|
|
4049
|
+
q === "" && q !== Y && (B.value = "");
|
|
4030
4050
|
}
|
|
4031
4051
|
function he() {
|
|
4032
4052
|
var q;
|
|
4033
|
-
k.value && (k.value = !1, (q =
|
|
4053
|
+
k.value && (k.value = !1, (q = u.value) == null || q.focus());
|
|
4034
4054
|
}
|
|
4035
4055
|
function ye(q) {
|
|
4036
|
-
var
|
|
4037
|
-
o.value = q, k.value = !1, (
|
|
4056
|
+
var Y;
|
|
4057
|
+
o.value = q, k.value = !1, (Y = u.value) == null || Y.focus(), E(q);
|
|
4038
4058
|
}
|
|
4039
4059
|
function ke() {
|
|
4040
4060
|
l.deferValidation && ($.value = !0), n("input-blur");
|
|
4041
4061
|
}
|
|
4042
4062
|
function Ce(q) {
|
|
4043
|
-
|
|
4063
|
+
B.value = q.target.value, l.deferValidation && ($.value = !1);
|
|
4044
4064
|
}
|
|
4045
4065
|
function se(q) {
|
|
4046
|
-
var
|
|
4047
|
-
!((J = (
|
|
4066
|
+
var Y, J;
|
|
4067
|
+
!((J = (Y = q.key) == null ? void 0 : Y.match) != null && J.call(Y, /[0-9]/)) && !i.includes(q.key) && !q.ctrlKey && !q.metaKey && q.preventDefault();
|
|
4048
4068
|
}
|
|
4049
4069
|
function xe() {
|
|
4050
|
-
We.initSourceData(), Se(),
|
|
4070
|
+
We.initSourceData(), Se(), E(o.value), j(M.value);
|
|
4051
4071
|
}
|
|
4052
4072
|
function Se() {
|
|
4053
|
-
var
|
|
4054
|
-
let q =
|
|
4055
|
-
q.valid || q.countryCode && ((J = (
|
|
4073
|
+
var Y, J;
|
|
4074
|
+
let q = ct(l.modelValue);
|
|
4075
|
+
q.valid || q.countryCode && ((J = (Y = l.modelValue) == null ? void 0 : Y.startsWith) != null && J.call(Y, "+")) ? (o.value = q.countryCode, B.value = q.number.significant) : B.value = l.modelValue, s.value = We.data.allCountries.map((Te) => ({
|
|
4056
4076
|
...Te,
|
|
4057
4077
|
isSelected: o.value === Te
|
|
4058
4078
|
}));
|
|
4059
4079
|
}
|
|
4060
|
-
function
|
|
4080
|
+
function E(q) {
|
|
4061
4081
|
r.value = We.getCountryByCountryCode(q);
|
|
4062
4082
|
}
|
|
4063
4083
|
function j(q) {
|
|
4064
|
-
S.value = q ? !
|
|
4084
|
+
S.value = q ? !ct(q).valid : !1, p.value = S.value ? "Invalid phone number" : "";
|
|
4065
4085
|
}
|
|
4066
|
-
return (q,
|
|
4086
|
+
return (q, Y) => (d(), b("div", z({
|
|
4067
4087
|
class: "bs-input-phone",
|
|
4068
4088
|
"data-component": "bs-input-phone"
|
|
4069
|
-
}, c(
|
|
4089
|
+
}, c(Z)(q.$attrs, c(be)).remaining), [
|
|
4070
4090
|
P(ne, {
|
|
4071
|
-
for: q.$attrs.id || e.inputId || c(
|
|
4091
|
+
for: q.$attrs.id || e.inputId || c(h),
|
|
4072
4092
|
required: e.required,
|
|
4073
4093
|
disabled: e.disabled,
|
|
4074
4094
|
class: le({ "visually-hidden": e.hideLabel })
|
|
4075
4095
|
}, {
|
|
4076
4096
|
default: D(() => [
|
|
4077
|
-
|
|
4097
|
+
U(T(e.label), 1)
|
|
4078
4098
|
]),
|
|
4079
4099
|
_: 1
|
|
4080
4100
|
}, 8, ["for", "required", "disabled", "class"]),
|
|
@@ -4087,31 +4107,31 @@ const ln = {
|
|
|
4087
4107
|
default: D(() => {
|
|
4088
4108
|
var J;
|
|
4089
4109
|
return [
|
|
4090
|
-
|
|
4110
|
+
w("button", {
|
|
4091
4111
|
id: c(m),
|
|
4092
4112
|
ref_key: "countryCodesToggle",
|
|
4093
|
-
ref:
|
|
4094
|
-
"aria-controls": c(
|
|
4113
|
+
ref: u,
|
|
4114
|
+
"aria-controls": c(g),
|
|
4095
4115
|
"aria-expanded": k.value,
|
|
4096
4116
|
"aria-haspopup": "listbox",
|
|
4097
|
-
"aria-label":
|
|
4117
|
+
"aria-label": A.value,
|
|
4098
4118
|
disabled: e.disabled,
|
|
4099
4119
|
type: "button",
|
|
4100
|
-
onClick:
|
|
4120
|
+
onClick: Y[0] || (Y[0] = (Te) => k.value = !k.value)
|
|
4101
4121
|
}, [
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
P(c(
|
|
4105
|
-
], 8,
|
|
4122
|
+
w("span", null, T((J = r.value) == null ? void 0 : J.flag), 1),
|
|
4123
|
+
w("span", null, "+" + T(o.value), 1),
|
|
4124
|
+
P(c(Gt), { size: "sm" })
|
|
4125
|
+
], 8, Zn),
|
|
4106
4126
|
P(Ie, z({
|
|
4107
|
-
"input-id": q.$attrs.id || e.inputId || c(
|
|
4127
|
+
"input-id": q.$attrs.id || e.inputId || c(h),
|
|
4108
4128
|
disabled: e.disabled,
|
|
4109
4129
|
"hint-id": c(v),
|
|
4110
4130
|
placeholder: e.placeholder,
|
|
4111
|
-
value:
|
|
4131
|
+
value: B.value,
|
|
4112
4132
|
"data-autowidth": "",
|
|
4113
4133
|
type: "tel"
|
|
4114
|
-
}, c(
|
|
4134
|
+
}, c(Z)(q.$attrs, c(be)).filtered, {
|
|
4115
4135
|
onInput: Ce,
|
|
4116
4136
|
onFocusout: ke,
|
|
4117
4137
|
onKeydown: se
|
|
@@ -4122,19 +4142,19 @@ const ln = {
|
|
|
4122
4142
|
}, 8, ["disabled", "error"]),
|
|
4123
4143
|
ue(P(ge, {
|
|
4124
4144
|
error: R.value,
|
|
4125
|
-
"error-msg":
|
|
4145
|
+
"error-msg": L.value,
|
|
4126
4146
|
hint: e.hint,
|
|
4127
4147
|
"hint-id": c(v)
|
|
4128
4148
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
4129
4149
|
[ce, F.value]
|
|
4130
4150
|
]),
|
|
4131
|
-
y.value ? (
|
|
4132
|
-
P(
|
|
4151
|
+
y.value ? (d(), b("div", Xn, [
|
|
4152
|
+
P(Pt, {
|
|
4133
4153
|
"anchor-id": c(m),
|
|
4134
4154
|
"helper-text": "Country Code",
|
|
4135
4155
|
label: "Country Code",
|
|
4136
4156
|
"model-value": o.value,
|
|
4137
|
-
"options-id": c(
|
|
4157
|
+
"options-id": c(g),
|
|
4138
4158
|
preloaded: "",
|
|
4139
4159
|
shown: k.value,
|
|
4140
4160
|
width: "content",
|
|
@@ -4142,15 +4162,15 @@ const ln = {
|
|
|
4142
4162
|
"onUpdate:modelValue": ye
|
|
4143
4163
|
}, {
|
|
4144
4164
|
default: D(() => [
|
|
4145
|
-
y.value ? (
|
|
4165
|
+
y.value ? (d(!0), b(K, { key: 0 }, te(s.value, (J) => (d(), O(it, {
|
|
4146
4166
|
"aria-label": J.value,
|
|
4147
4167
|
key: J.value,
|
|
4148
4168
|
value: `${J.value}`,
|
|
4149
4169
|
variant: "2-col"
|
|
4150
4170
|
}, {
|
|
4151
4171
|
default: D(() => [
|
|
4152
|
-
|
|
4153
|
-
|
|
4172
|
+
w("span", Qn, T(J == null ? void 0 : J.flag), 1),
|
|
4173
|
+
w("span", Jn, T(J.label), 1)
|
|
4154
4174
|
]),
|
|
4155
4175
|
_: 2
|
|
4156
4176
|
}, 1032, ["aria-label", "value"]))), 128)) : C("", !0)
|
|
@@ -4160,7 +4180,7 @@ const ln = {
|
|
|
4160
4180
|
])) : C("", !0)
|
|
4161
4181
|
], 16));
|
|
4162
4182
|
}
|
|
4163
|
-
}),
|
|
4183
|
+
}), _n = ["data-size", "data-variant"], el = ["stroke"], tl = { key: 0 }, ht = {
|
|
4164
4184
|
__name: "BsSpinner",
|
|
4165
4185
|
props: {
|
|
4166
4186
|
label: {
|
|
@@ -4177,7 +4197,7 @@ const ln = {
|
|
|
4177
4197
|
}
|
|
4178
4198
|
},
|
|
4179
4199
|
setup(e) {
|
|
4180
|
-
return (a, t) => (
|
|
4200
|
+
return (a, t) => (d(), b("svg", {
|
|
4181
4201
|
class: "bs-spinner",
|
|
4182
4202
|
"data-component": "bs-spinner",
|
|
4183
4203
|
"data-size": e.size,
|
|
@@ -4187,24 +4207,24 @@ const ln = {
|
|
|
4187
4207
|
viewBox: "0 0 100 100",
|
|
4188
4208
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4189
4209
|
}, [
|
|
4190
|
-
|
|
4191
|
-
|
|
4210
|
+
w("title", null, T(e.label), 1),
|
|
4211
|
+
w("circle", {
|
|
4192
4212
|
cx: "50",
|
|
4193
4213
|
cy: "50",
|
|
4194
4214
|
pathLength: "100",
|
|
4195
4215
|
r: "45",
|
|
4196
4216
|
stroke: e.variant === "gradient" ? "url(#bs-spinner-gradient)" : void 0
|
|
4197
|
-
}, null, 8,
|
|
4198
|
-
e.variant === "gradient" ? (
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4217
|
+
}, null, 8, el),
|
|
4218
|
+
e.variant === "gradient" ? (d(), b("defs", tl, t[0] || (t[0] = [
|
|
4219
|
+
w("linearGradient", { id: "bs-spinner-gradient" }, [
|
|
4220
|
+
w("stop", { offset: "0%" }),
|
|
4221
|
+
w("stop", { offset: "49%" }),
|
|
4222
|
+
w("stop", { offset: "100%" })
|
|
4203
4223
|
], -1)
|
|
4204
4224
|
]))) : C("", !0)
|
|
4205
|
-
], 8,
|
|
4225
|
+
], 8, _n));
|
|
4206
4226
|
}
|
|
4207
|
-
},
|
|
4227
|
+
}, al = ["id"], nl = { style: { display: "flex", "justify-content": "center" } }, ll = { style: { display: "flex", "justify-content": "center" } }, Wo = {
|
|
4208
4228
|
__name: "BsInputTypeahead",
|
|
4209
4229
|
props: {
|
|
4210
4230
|
characterThreshold: {
|
|
@@ -4276,27 +4296,27 @@ const ln = {
|
|
|
4276
4296
|
},
|
|
4277
4297
|
emits: ["update:inputValue", "update:optionsValue"],
|
|
4278
4298
|
setup(e, { emit: a }) {
|
|
4279
|
-
const t = e, l = a, n =
|
|
4299
|
+
const t = e, l = a, n = I(!1), i = I(!1), [u] = Q();
|
|
4280
4300
|
let o = [];
|
|
4281
|
-
|
|
4301
|
+
G(() => t.inputValue, () => {
|
|
4282
4302
|
i.value ? i.value = !1 : p();
|
|
4283
4303
|
});
|
|
4284
|
-
const s = f(() => t.typeaheadId ||
|
|
4304
|
+
const s = f(() => t.typeaheadId || u.value), r = f(() => `${s.value}-input-container`), m = f(() => `${s.value}-input`), g = f(() => `${s.value}-options`), v = f(() => t.multiselect ? Array.isArray(t.optionsValue) ? t.optionsValue : [t.optionsValue] : t.optionsValue), h = f(() => {
|
|
4285
4305
|
if (n.value) {
|
|
4286
|
-
let
|
|
4287
|
-
const
|
|
4288
|
-
return t.inputValue.length >= t.characterThreshold && (
|
|
4306
|
+
let A = t.options;
|
|
4307
|
+
const L = t.inputValue.toLowerCase(), R = t.filterType === "includes" ? "includes" : "startsWith";
|
|
4308
|
+
return t.inputValue.length >= t.characterThreshold && (A = y(A, L, R), A = A.slice(0, t.maxOptions), A = B(A, L, R), o = A), A;
|
|
4289
4309
|
} else
|
|
4290
4310
|
return o;
|
|
4291
4311
|
});
|
|
4292
|
-
function y(
|
|
4293
|
-
return t.internalFiltering ?
|
|
4312
|
+
function y(A, L, R) {
|
|
4313
|
+
return t.internalFiltering ? A.filter((F) => F.label.toLowerCase()[R](L)) : A;
|
|
4294
4314
|
}
|
|
4295
|
-
function
|
|
4296
|
-
return
|
|
4315
|
+
function B(A, L, R) {
|
|
4316
|
+
return A.map((F) => {
|
|
4297
4317
|
let W = F.label;
|
|
4298
|
-
if (
|
|
4299
|
-
const _ = R === "includes" ? "gi" : "i", he = new RegExp(`(${
|
|
4318
|
+
if (L !== "") {
|
|
4319
|
+
const _ = R === "includes" ? "gi" : "i", he = new RegExp(`(${L})`, _);
|
|
4300
4320
|
W = F.label.replace(he, '<span style="color: var(--bs-blue-base)">$1</span>');
|
|
4301
4321
|
}
|
|
4302
4322
|
return { ...F, labelHtml: W };
|
|
@@ -4308,39 +4328,39 @@ const ln = {
|
|
|
4308
4328
|
function S() {
|
|
4309
4329
|
l("update:inputValue", ""), t.multiselect || l("update:optionsValue", ""), document.getElementById(m.value).focus();
|
|
4310
4330
|
}
|
|
4311
|
-
function k(
|
|
4331
|
+
function k(A) {
|
|
4312
4332
|
i.value = !0;
|
|
4313
|
-
const
|
|
4314
|
-
l("update:inputValue",
|
|
4333
|
+
const L = h.value.find((R) => R.value === A);
|
|
4334
|
+
l("update:inputValue", L.label), l("update:optionsValue", A);
|
|
4315
4335
|
}
|
|
4316
|
-
function $(
|
|
4317
|
-
const
|
|
4318
|
-
l("update:optionsValue",
|
|
4336
|
+
function $(A) {
|
|
4337
|
+
const L = [...v.value, A];
|
|
4338
|
+
l("update:optionsValue", L);
|
|
4319
4339
|
}
|
|
4320
|
-
function M(
|
|
4321
|
-
const
|
|
4322
|
-
l("update:optionsValue",
|
|
4340
|
+
function M(A) {
|
|
4341
|
+
const L = v.value.filter((R) => R !== A);
|
|
4342
|
+
l("update:optionsValue", L);
|
|
4323
4343
|
}
|
|
4324
|
-
return (
|
|
4325
|
-
e.label ||
|
|
4344
|
+
return (A, L) => (d(), b(K, null, [
|
|
4345
|
+
e.label || A.$slots.label ? (d(), O(ne, {
|
|
4326
4346
|
key: 0,
|
|
4327
4347
|
for: m.value,
|
|
4328
4348
|
disabled: e.disabled,
|
|
4329
4349
|
required: e.required
|
|
4330
4350
|
}, {
|
|
4331
4351
|
default: D(() => [
|
|
4332
|
-
V(
|
|
4333
|
-
|
|
4352
|
+
V(A.$slots, "label", {}, () => [
|
|
4353
|
+
U(T(e.label), 1)
|
|
4334
4354
|
])
|
|
4335
4355
|
]),
|
|
4336
4356
|
_: 3
|
|
4337
4357
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
4338
|
-
|
|
4358
|
+
w("div", {
|
|
4339
4359
|
id: r.value,
|
|
4340
4360
|
class: "typeahead-search-wrapper"
|
|
4341
4361
|
}, [
|
|
4342
|
-
P(
|
|
4343
|
-
"aria-controls":
|
|
4362
|
+
P(Vt, z({
|
|
4363
|
+
"aria-controls": g.value,
|
|
4344
4364
|
"aria-expanded": n.value,
|
|
4345
4365
|
"aria-haspopup": "listbox",
|
|
4346
4366
|
autocomplete: "off",
|
|
@@ -4352,27 +4372,27 @@ const ln = {
|
|
|
4352
4372
|
placeholder: e.placeholder,
|
|
4353
4373
|
role: "combobox",
|
|
4354
4374
|
value: e.inputValue
|
|
4355
|
-
},
|
|
4375
|
+
}, A.$attrs, {
|
|
4356
4376
|
onClear: S,
|
|
4357
4377
|
onFocusin: p,
|
|
4358
|
-
"onUpdate:modelValue":
|
|
4378
|
+
"onUpdate:modelValue": L[0] || (L[0] = (R) => l("update:inputValue", R))
|
|
4359
4379
|
}), null, 16, ["aria-controls", "aria-expanded", "disabled", "hide-clear", "hide-search-icon", "input-id", "placeholder", "value"])
|
|
4360
|
-
], 8,
|
|
4361
|
-
P(
|
|
4380
|
+
], 8, al),
|
|
4381
|
+
P(ot, {
|
|
4362
4382
|
"anchor-id": r.value,
|
|
4363
4383
|
preloaded: !0,
|
|
4364
4384
|
shown: n.value,
|
|
4365
4385
|
"use-mobile-style": !1,
|
|
4366
4386
|
width: "toggle",
|
|
4367
|
-
onClose:
|
|
4387
|
+
onClose: L[2] || (L[2] = (R) => n.value = !1)
|
|
4368
4388
|
}, {
|
|
4369
4389
|
default: D(() => [
|
|
4370
|
-
e.multiselect ? (
|
|
4390
|
+
e.multiselect ? (d(), O(Dt, {
|
|
4371
4391
|
key: 0,
|
|
4372
4392
|
"focus-on-open": !1,
|
|
4373
4393
|
label: e.label,
|
|
4374
|
-
options:
|
|
4375
|
-
"options-id":
|
|
4394
|
+
options: h.value,
|
|
4395
|
+
"options-id": g.value,
|
|
4376
4396
|
"selected-options": v.value,
|
|
4377
4397
|
shown: n.value,
|
|
4378
4398
|
onCheckOption: $,
|
|
@@ -4381,41 +4401,41 @@ const ln = {
|
|
|
4381
4401
|
e.loading ? {
|
|
4382
4402
|
name: "no-options",
|
|
4383
4403
|
fn: D(() => [
|
|
4384
|
-
|
|
4385
|
-
P(
|
|
4404
|
+
w("span", nl, [
|
|
4405
|
+
P(ht, { size: "sm" })
|
|
4386
4406
|
])
|
|
4387
4407
|
]),
|
|
4388
4408
|
key: "0"
|
|
4389
4409
|
} : {
|
|
4390
4410
|
name: "no-options",
|
|
4391
4411
|
fn: D(() => [
|
|
4392
|
-
|
|
4412
|
+
L[3] || (L[3] = U("No results found"))
|
|
4393
4413
|
]),
|
|
4394
4414
|
key: "1"
|
|
4395
4415
|
}
|
|
4396
|
-
]), 1032, ["label", "options", "options-id", "selected-options", "shown"])) : (
|
|
4416
|
+
]), 1032, ["label", "options", "options-id", "selected-options", "shown"])) : (d(), O(Re, {
|
|
4397
4417
|
key: 1,
|
|
4398
4418
|
label: e.label,
|
|
4399
4419
|
"model-value": v.value,
|
|
4400
|
-
"options-id":
|
|
4420
|
+
"options-id": g.value,
|
|
4401
4421
|
shown: n.value,
|
|
4402
4422
|
"onUpdate:modelValue": k,
|
|
4403
|
-
onClose:
|
|
4423
|
+
onClose: L[1] || (L[1] = (R) => n.value = !1)
|
|
4404
4424
|
}, {
|
|
4405
4425
|
default: D(() => [
|
|
4406
|
-
P(qe, { options:
|
|
4426
|
+
P(qe, { options: h.value }, Ze({ _: 2 }, [
|
|
4407
4427
|
e.loading ? {
|
|
4408
4428
|
name: "no-options",
|
|
4409
4429
|
fn: D(() => [
|
|
4410
|
-
|
|
4411
|
-
P(
|
|
4430
|
+
w("span", ll, [
|
|
4431
|
+
P(ht, { size: "sm" })
|
|
4412
4432
|
])
|
|
4413
4433
|
]),
|
|
4414
4434
|
key: "0"
|
|
4415
4435
|
} : {
|
|
4416
4436
|
name: "no-options",
|
|
4417
4437
|
fn: D(() => [
|
|
4418
|
-
|
|
4438
|
+
L[4] || (L[4] = U("No results found"))
|
|
4419
4439
|
]),
|
|
4420
4440
|
key: "1"
|
|
4421
4441
|
}
|
|
@@ -4428,7 +4448,7 @@ const ln = {
|
|
|
4428
4448
|
}, 8, ["anchor-id", "shown"])
|
|
4429
4449
|
], 64));
|
|
4430
4450
|
}
|
|
4431
|
-
},
|
|
4451
|
+
}, ol = ["data-size", "data-variant"], Uo = {
|
|
4432
4452
|
__name: "BsLoader",
|
|
4433
4453
|
props: {
|
|
4434
4454
|
size: {
|
|
@@ -4442,20 +4462,20 @@ const ln = {
|
|
|
4442
4462
|
}
|
|
4443
4463
|
},
|
|
4444
4464
|
setup(e) {
|
|
4445
|
-
return (a, t) => (
|
|
4465
|
+
return (a, t) => (d(), b("span", {
|
|
4446
4466
|
class: "bs-loader",
|
|
4447
4467
|
"data-size": e.size,
|
|
4448
4468
|
"data-variant": e.variant,
|
|
4449
4469
|
role: "status"
|
|
4450
4470
|
}, t[0] || (t[0] = [
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
]), 8,
|
|
4471
|
+
w("span", null, null, -1),
|
|
4472
|
+
w("span", null, null, -1),
|
|
4473
|
+
w("span", null, null, -1),
|
|
4474
|
+
w("span", null, null, -1),
|
|
4475
|
+
w("span", { class: "visually-hidden" }, "Loading", -1)
|
|
4476
|
+
]), 8, ol));
|
|
4457
4477
|
}
|
|
4458
|
-
},
|
|
4478
|
+
}, il = ["data-shown"], rl = {
|
|
4459
4479
|
__name: "BsOverlay",
|
|
4460
4480
|
props: {
|
|
4461
4481
|
shown: {
|
|
@@ -4484,16 +4504,16 @@ const ln = {
|
|
|
4484
4504
|
},
|
|
4485
4505
|
emits: ["after-enter", "after-leave"],
|
|
4486
4506
|
setup(e, { emit: a }) {
|
|
4487
|
-
const t = e, l = a, { transition: n } =
|
|
4488
|
-
|
|
4507
|
+
const t = e, l = a, { transition: n } = Ee(t);
|
|
4508
|
+
X(() => {
|
|
4489
4509
|
i();
|
|
4490
|
-
}),
|
|
4510
|
+
}), G(n, () => {
|
|
4491
4511
|
i();
|
|
4492
4512
|
});
|
|
4493
4513
|
function i() {
|
|
4494
4514
|
n.value ? document.body.setAttribute("data-scroll", "false") : document.body.removeAttribute("data-scroll");
|
|
4495
4515
|
}
|
|
4496
|
-
return (
|
|
4516
|
+
return (u, o) => (d(), O(Pe, {
|
|
4497
4517
|
name: "bs-overlay",
|
|
4498
4518
|
shown: c(n),
|
|
4499
4519
|
preloaded: e.preloaded,
|
|
@@ -4501,15 +4521,18 @@ const ln = {
|
|
|
4501
4521
|
onAfterLeave: o[1] || (o[1] = (s) => l("after-leave"))
|
|
4502
4522
|
}, {
|
|
4503
4523
|
default: D(() => [
|
|
4504
|
-
|
|
4524
|
+
w("div", {
|
|
4505
4525
|
class: "bs-overlay",
|
|
4506
4526
|
"data-shown": c(n)
|
|
4507
|
-
}, null, 8,
|
|
4527
|
+
}, null, 8, il)
|
|
4508
4528
|
]),
|
|
4509
4529
|
_: 1
|
|
4510
4530
|
}, 8, ["shown", "preloaded"]));
|
|
4511
4531
|
}
|
|
4512
|
-
},
|
|
4532
|
+
}, sl = ["id", "role", "aria-labelledby", "data-shown", "data-full-width", "data-full-height"], dl = ["id"], ul = {
|
|
4533
|
+
key: 1,
|
|
4534
|
+
class: "modal-footer"
|
|
4535
|
+
}, Go = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4513
4536
|
__name: "BsModal",
|
|
4514
4537
|
props: {
|
|
4515
4538
|
modalId: {
|
|
@@ -4550,26 +4573,34 @@ const ln = {
|
|
|
4550
4573
|
leaveTrigger: {
|
|
4551
4574
|
type: Boolean,
|
|
4552
4575
|
default: !1
|
|
4576
|
+
},
|
|
4577
|
+
fullWidth: {
|
|
4578
|
+
type: Boolean,
|
|
4579
|
+
default: !1
|
|
4580
|
+
},
|
|
4581
|
+
fullHeight: {
|
|
4582
|
+
type: Boolean,
|
|
4583
|
+
default: !1
|
|
4553
4584
|
}
|
|
4554
4585
|
},
|
|
4555
4586
|
emits: ["close", "after-enter", "after-leave"],
|
|
4556
4587
|
setup(e, { emit: a }) {
|
|
4557
|
-
const t =
|
|
4558
|
-
let
|
|
4559
|
-
const
|
|
4560
|
-
|
|
4588
|
+
const t = et(), l = e, n = a, { transition: i } = Ee(l), [u] = Q();
|
|
4589
|
+
let o = !1;
|
|
4590
|
+
const s = I(null), r = (v) => {
|
|
4591
|
+
s.value && v.target.closest(".bs-overlay") && n("close", l.modalId);
|
|
4561
4592
|
};
|
|
4562
|
-
|
|
4563
|
-
document.addEventListener("click",
|
|
4593
|
+
X(() => {
|
|
4594
|
+
document.addEventListener("click", r);
|
|
4564
4595
|
}), Be(() => {
|
|
4565
|
-
document.removeEventListener("click",
|
|
4596
|
+
document.removeEventListener("click", r);
|
|
4566
4597
|
}), me(["Escape"], () => {
|
|
4567
|
-
|
|
4598
|
+
o && n("close", l.modalId);
|
|
4568
4599
|
});
|
|
4569
|
-
const
|
|
4570
|
-
return (
|
|
4571
|
-
P(
|
|
4572
|
-
shown: c(
|
|
4600
|
+
const m = f(() => !l.title && !t.title && l.closeButton), g = f(() => (l.title || t.title) && l.closeButton);
|
|
4601
|
+
return (v, h) => (d(), b(K, null, [
|
|
4602
|
+
P(rl, {
|
|
4603
|
+
shown: c(i),
|
|
4573
4604
|
preloaded: e.preloaded,
|
|
4574
4605
|
"enter-controlled": e.enterControlled,
|
|
4575
4606
|
"enter-trigger": e.enterTrigger,
|
|
@@ -4578,63 +4609,73 @@ const ln = {
|
|
|
4578
4609
|
P(Pe, {
|
|
4579
4610
|
name: "bs-modal",
|
|
4580
4611
|
preloaded: e.preloaded,
|
|
4581
|
-
shown: c(
|
|
4582
|
-
onAfterEnter:
|
|
4583
|
-
onAfterLeave:
|
|
4584
|
-
onEnter:
|
|
4612
|
+
shown: c(i),
|
|
4613
|
+
onAfterEnter: h[1] || (h[1] = (y) => n("after-enter")),
|
|
4614
|
+
onAfterLeave: h[2] || (h[2] = (y) => n("after-leave")),
|
|
4615
|
+
onEnter: h[3] || (h[3] = (y) => Rt(o) ? o.value = !0 : o = !0)
|
|
4585
4616
|
}, {
|
|
4586
4617
|
default: D(() => [
|
|
4587
|
-
|
|
4618
|
+
w("div", z({
|
|
4588
4619
|
id: e.modalId,
|
|
4589
4620
|
class: "bs-modal",
|
|
4590
4621
|
"data-component": "bs-modal",
|
|
4591
4622
|
role: e.alert ? "alertdialog" : "dialog",
|
|
4592
|
-
"aria-labelledby": e.title && !
|
|
4623
|
+
"aria-labelledby": e.title && !v.$attrs["aria-label"] ? c(u) : void 0,
|
|
4593
4624
|
"aria-modal": "true"
|
|
4594
|
-
},
|
|
4625
|
+
}, v.$attrs, {
|
|
4595
4626
|
ref_key: "modalRef",
|
|
4596
|
-
ref:
|
|
4597
|
-
"data-shown": c(
|
|
4627
|
+
ref: s,
|
|
4628
|
+
"data-shown": c(i),
|
|
4629
|
+
"data-full-width": e.fullWidth,
|
|
4630
|
+
"data-full-height": e.fullHeight
|
|
4598
4631
|
}), [
|
|
4599
|
-
e.title || e.closeButton ? (
|
|
4632
|
+
e.title || v.$slots.title || e.closeButton ? (d(), b("header", {
|
|
4600
4633
|
key: 0,
|
|
4601
4634
|
class: le({
|
|
4602
|
-
"only-close-button-modal-header":
|
|
4603
|
-
"modal-header":
|
|
4635
|
+
"only-close-button-modal-header": m.value,
|
|
4636
|
+
"modal-header": g.value
|
|
4604
4637
|
})
|
|
4605
4638
|
}, [
|
|
4606
|
-
|
|
4639
|
+
V(v.$slots, "title", {}, () => [
|
|
4640
|
+
e.title ? (d(), b("span", {
|
|
4641
|
+
key: 0,
|
|
4642
|
+
id: c(u),
|
|
4643
|
+
class: "modal-title"
|
|
4644
|
+
}, T(e.title), 9, dl)) : C("", !0)
|
|
4645
|
+
]),
|
|
4646
|
+
e.closeButton ? (d(), b("button", {
|
|
4607
4647
|
key: 0,
|
|
4608
|
-
id: c(i),
|
|
4609
|
-
class: "modal-title"
|
|
4610
|
-
}, A(e.title), 9, sl)) : C("", !0),
|
|
4611
|
-
e.closeButton ? (u(), b("button", {
|
|
4612
|
-
key: 1,
|
|
4613
4648
|
type: "button",
|
|
4614
4649
|
title: "Close Modal",
|
|
4615
4650
|
"aria-label": "Close Modal",
|
|
4616
|
-
|
|
4651
|
+
class: le({ "full-width-header-close-button": e.fullWidth || e.fullHeight }),
|
|
4652
|
+
onClick: h[0] || (h[0] = (y) => n("close", e.modalId))
|
|
4617
4653
|
}, [
|
|
4618
4654
|
P(c($e), { class: "close-button" })
|
|
4619
|
-
])) : C("", !0)
|
|
4655
|
+
], 2)) : C("", !0)
|
|
4620
4656
|
], 2)) : C("", !0),
|
|
4621
|
-
|
|
4622
|
-
|
|
4657
|
+
w("div", null, [
|
|
4658
|
+
V(v.$slots, "default")
|
|
4659
|
+
]),
|
|
4660
|
+
v.$slots.footer ? (d(), b("footer", ul, [
|
|
4661
|
+
V(v.$slots, "footer")
|
|
4662
|
+
])) : C("", !0)
|
|
4663
|
+
], 16, sl)
|
|
4623
4664
|
]),
|
|
4624
4665
|
_: 3
|
|
4625
4666
|
}, 8, ["preloaded", "shown"])
|
|
4626
4667
|
], 64));
|
|
4627
4668
|
}
|
|
4628
|
-
}),
|
|
4669
|
+
}), cl = ["data-variant", "data-fixed"], fl = {
|
|
4629
4670
|
key: 0,
|
|
4630
4671
|
class: "bs-pagination-carets"
|
|
4631
|
-
},
|
|
4672
|
+
}, pl = ["aria-label", "title", "disabled"], ml = { key: 0 }, bl = ["aria-label", "title", "disabled"], hl = { key: 0 }, vl = {
|
|
4632
4673
|
key: 1,
|
|
4633
4674
|
class: "bs-pagination-page-numbers"
|
|
4634
|
-
},
|
|
4675
|
+
}, gl = ["title", "data-selected", "onClick"], yl = { key: 2 }, Sl = { key: 3 }, wl = { class: "bs-pagination-results-numbers" }, Bl = ["data-selected", "disabled", "onClick"], $l = {
|
|
4635
4676
|
key: 5,
|
|
4636
4677
|
class: "bs-pagination-carets"
|
|
4637
|
-
},
|
|
4678
|
+
}, Il = ["aria-label", "title", "disabled"], kl = { key: 0 }, Cl = ["aria-label", "title", "disabled"], xl = { key: 0 }, Ho = {
|
|
4638
4679
|
__name: "BsPagination",
|
|
4639
4680
|
props: {
|
|
4640
4681
|
// Used for all
|
|
@@ -4720,19 +4761,19 @@ const ln = {
|
|
|
4720
4761
|
},
|
|
4721
4762
|
emits: ["selchange", "update:modelValue"],
|
|
4722
4763
|
setup(e, { emit: a }) {
|
|
4723
|
-
const t = e, l = a, n =
|
|
4724
|
-
|
|
4725
|
-
i.value ? n.value = i.value : t.variant === "results" ? n.value =
|
|
4764
|
+
const t = e, l = a, n = I(null);
|
|
4765
|
+
X(() => {
|
|
4766
|
+
i.value ? n.value = i.value : t.variant === "results" ? n.value = B.value[0] : n.value = 1;
|
|
4726
4767
|
});
|
|
4727
4768
|
const i = f(() => t.modelValue || t.selection);
|
|
4728
|
-
|
|
4769
|
+
G(() => t.selection, (p) => {
|
|
4729
4770
|
n.value = p;
|
|
4730
|
-
}),
|
|
4771
|
+
}), G(() => t.modelValue, (p) => {
|
|
4731
4772
|
n.value = p;
|
|
4732
|
-
}),
|
|
4773
|
+
}), G(n, (p, S) => {
|
|
4733
4774
|
S !== null && (l("selchange", p), l("update:modelValue", p));
|
|
4734
4775
|
});
|
|
4735
|
-
const
|
|
4776
|
+
const u = f(() => {
|
|
4736
4777
|
if (t.variant === "group")
|
|
4737
4778
|
return Math.ceil(t.itemsCount / t.itemsPerGroup);
|
|
4738
4779
|
if (t.variant === "base")
|
|
@@ -4747,11 +4788,11 @@ const ln = {
|
|
|
4747
4788
|
function m() {
|
|
4748
4789
|
n.value = Math.min(
|
|
4749
4790
|
n.value + 1,
|
|
4750
|
-
|
|
4791
|
+
u.value
|
|
4751
4792
|
);
|
|
4752
4793
|
}
|
|
4753
|
-
function
|
|
4754
|
-
n.value =
|
|
4794
|
+
function g() {
|
|
4795
|
+
n.value = u.value;
|
|
4755
4796
|
}
|
|
4756
4797
|
const v = f(() => {
|
|
4757
4798
|
if (t.pageCount <= t.pageRange)
|
|
@@ -4762,18 +4803,18 @@ const ln = {
|
|
|
4762
4803
|
for (let M = k; M <= $; M++)
|
|
4763
4804
|
p.push(M);
|
|
4764
4805
|
return $ < t.pageCount - 1 && p.push(t.breakText), p.push(t.pageCount), p;
|
|
4765
|
-
}),
|
|
4806
|
+
}), h = f(() => `${t.centerLabel ?? "Page"} ${n.value} of ${u.value}`), y = f(() => {
|
|
4766
4807
|
const p = (n.value - 1) * t.itemsPerGroup + 1, S = Math.min(p - 1 + t.itemsPerGroup, t.itemsCount);
|
|
4767
4808
|
return `${t.centerLabel ?? "Results"} ${p} - ${S} of ${t.itemsCount}`;
|
|
4768
|
-
}),
|
|
4769
|
-
return (p, S) => (
|
|
4809
|
+
}), B = f(() => t.resultsIncrements.split(",").map((p) => parseInt(p)));
|
|
4810
|
+
return (p, S) => (d(), b("div", {
|
|
4770
4811
|
class: "bs-pagination",
|
|
4771
4812
|
"data-component": "bs-pagination",
|
|
4772
4813
|
"data-variant": o.value,
|
|
4773
4814
|
"data-fixed": t.fixed
|
|
4774
4815
|
}, [
|
|
4775
|
-
e.variant === "base" || e.variant === "group" ? (
|
|
4776
|
-
e.showFirstLastButtons ? (
|
|
4816
|
+
e.variant === "base" || e.variant === "group" ? (d(), b("div", fl, [
|
|
4817
|
+
e.showFirstLastButtons ? (d(), b("button", {
|
|
4777
4818
|
key: 0,
|
|
4778
4819
|
type: "button",
|
|
4779
4820
|
class: le(e.firstPageText ? "bs-pagination-word-caret" : void 0),
|
|
@@ -4782,10 +4823,10 @@ const ln = {
|
|
|
4782
4823
|
disabled: n.value === 1,
|
|
4783
4824
|
onClick: s
|
|
4784
4825
|
}, [
|
|
4785
|
-
P(c(
|
|
4786
|
-
e.firstPageText ? (
|
|
4787
|
-
], 10,
|
|
4788
|
-
|
|
4826
|
+
P(c(Ht)),
|
|
4827
|
+
e.firstPageText ? (d(), b("span", ml, T(e.firstPageText), 1)) : C("", !0)
|
|
4828
|
+
], 10, pl)) : C("", !0),
|
|
4829
|
+
w("button", {
|
|
4789
4830
|
type: "button",
|
|
4790
4831
|
class: le(e.prevPageText ? "bs-pagination-word-caret" : void 0),
|
|
4791
4832
|
"aria-label": e.prevPageText ? void 0 : "Previous Page",
|
|
@@ -4794,60 +4835,60 @@ const ln = {
|
|
|
4794
4835
|
onClick: r
|
|
4795
4836
|
}, [
|
|
4796
4837
|
P(c(It)),
|
|
4797
|
-
e.prevPageText ? (
|
|
4798
|
-
], 10,
|
|
4838
|
+
e.prevPageText ? (d(), b("span", hl, T(e.prevPageText), 1)) : C("", !0)
|
|
4839
|
+
], 10, bl)
|
|
4799
4840
|
])) : C("", !0),
|
|
4800
|
-
e.variant === "base" && e.centerDisplay === "numbers" ? (
|
|
4801
|
-
(
|
|
4841
|
+
e.variant === "base" && e.centerDisplay === "numbers" ? (d(), b("div", vl, [
|
|
4842
|
+
(d(!0), b(K, null, te(v.value, (k) => (d(), b("button", {
|
|
4802
4843
|
key: `page-${k}-button`,
|
|
4803
4844
|
type: "button",
|
|
4804
4845
|
title: `Page ${k}`,
|
|
4805
4846
|
"data-selected": k === n.value,
|
|
4806
4847
|
onClick: ($) => n.value = k
|
|
4807
|
-
},
|
|
4848
|
+
}, T(k), 9, gl))), 128))
|
|
4808
4849
|
])) : C("", !0),
|
|
4809
|
-
t.variant === "base" && t.centerDisplay === "text" ? (
|
|
4810
|
-
t.variant === "group" ? (
|
|
4811
|
-
t.variant === "results" ? (
|
|
4812
|
-
S[0] || (S[0] =
|
|
4813
|
-
|
|
4814
|
-
(
|
|
4850
|
+
t.variant === "base" && t.centerDisplay === "text" ? (d(), b("span", yl, T(h.value), 1)) : C("", !0),
|
|
4851
|
+
t.variant === "group" ? (d(), b("span", Sl, T(y.value), 1)) : C("", !0),
|
|
4852
|
+
t.variant === "results" ? (d(), b(K, { key: 4 }, [
|
|
4853
|
+
S[0] || (S[0] = w("span", null, "Results Per Page:", -1)),
|
|
4854
|
+
w("div", wl, [
|
|
4855
|
+
(d(!0), b(K, null, te(B.value, (k) => (d(), b("button", {
|
|
4815
4856
|
type: "button",
|
|
4816
4857
|
key: `results-${k}`,
|
|
4817
4858
|
"data-selected": k === n.value,
|
|
4818
4859
|
disabled: n.value === k,
|
|
4819
4860
|
onClick: ($) => n.value = k
|
|
4820
|
-
},
|
|
4861
|
+
}, T(k), 9, Bl))), 128))
|
|
4821
4862
|
])
|
|
4822
4863
|
], 64)) : C("", !0),
|
|
4823
|
-
e.variant === "base" || e.variant === "group" ? (
|
|
4824
|
-
|
|
4864
|
+
e.variant === "base" || e.variant === "group" ? (d(), b("div", $l, [
|
|
4865
|
+
w("button", {
|
|
4825
4866
|
type: "button",
|
|
4826
4867
|
class: le(e.nextPageText ? "bs-pagination-word-caret" : void 0),
|
|
4827
4868
|
"aria-label": e.nextPageText ? void 0 : "Next Page",
|
|
4828
4869
|
title: e.nextPageText,
|
|
4829
|
-
disabled: n.value ===
|
|
4870
|
+
disabled: n.value === u.value,
|
|
4830
4871
|
onClick: m
|
|
4831
4872
|
}, [
|
|
4832
|
-
e.nextPageText ? (
|
|
4873
|
+
e.nextPageText ? (d(), b("span", kl, T(e.nextPageText), 1)) : C("", !0),
|
|
4833
4874
|
P(c($t))
|
|
4834
|
-
], 10,
|
|
4835
|
-
e.showFirstLastButtons ? (
|
|
4875
|
+
], 10, Il),
|
|
4876
|
+
e.showFirstLastButtons ? (d(), b("button", {
|
|
4836
4877
|
key: 0,
|
|
4837
4878
|
type: "button",
|
|
4838
4879
|
class: le(e.lastPageText ? "bs-pagination-word-caret" : void 0),
|
|
4839
4880
|
"aria-label": e.lastPageText ? void 0 : "Last Page",
|
|
4840
4881
|
title: e.lastPageText,
|
|
4841
|
-
disabled: n.value ===
|
|
4842
|
-
onClick:
|
|
4882
|
+
disabled: n.value === u.value,
|
|
4883
|
+
onClick: g
|
|
4843
4884
|
}, [
|
|
4844
|
-
e.lastPageText ? (
|
|
4845
|
-
P(c(
|
|
4846
|
-
], 10,
|
|
4885
|
+
e.lastPageText ? (d(), b("span", xl, T(e.lastPageText), 1)) : C("", !0),
|
|
4886
|
+
P(c(Kt))
|
|
4887
|
+
], 10, Cl)) : C("", !0)
|
|
4847
4888
|
])) : C("", !0)
|
|
4848
|
-
], 8,
|
|
4889
|
+
], 8, cl));
|
|
4849
4890
|
}
|
|
4850
|
-
},
|
|
4891
|
+
}, Tl = ["data-truncate"], Ko = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4851
4892
|
__name: "BsPill",
|
|
4852
4893
|
props: {
|
|
4853
4894
|
active: { type: Boolean, default: !1 },
|
|
@@ -4871,38 +4912,38 @@ const ln = {
|
|
|
4871
4912
|
}
|
|
4872
4913
|
},
|
|
4873
4914
|
setup(e) {
|
|
4874
|
-
const a = e, { onLinkClick: t } = Fe(a), l = re(), { rootTag: n, attrsToBind: i, hrefUrl:
|
|
4875
|
-
return (o, s) => (
|
|
4915
|
+
const a = e, { onLinkClick: t } = Fe(a), l = re(), { rootTag: n, attrsToBind: i, hrefUrl: u } = ze(a, l, "span");
|
|
4916
|
+
return (o, s) => (d(), O(ae(c(n)), z({
|
|
4876
4917
|
class: "bs-pill",
|
|
4877
4918
|
"data-active": e.active,
|
|
4878
4919
|
"data-component": "bs-pill",
|
|
4879
4920
|
"data-status": e.status || void 0,
|
|
4880
4921
|
"data-variant": e.variant || void 0,
|
|
4881
4922
|
disabled: e.disabled,
|
|
4882
|
-
".href": c(
|
|
4923
|
+
".href": c(u)
|
|
4883
4924
|
}, c(i), { onClick: c(t) }), {
|
|
4884
4925
|
default: D(() => [
|
|
4885
|
-
|
|
4926
|
+
w("span", { "data-truncate": e.truncate }, [
|
|
4886
4927
|
V(o.$slots, "default")
|
|
4887
|
-
], 8,
|
|
4928
|
+
], 8, Tl)
|
|
4888
4929
|
]),
|
|
4889
4930
|
_: 3
|
|
4890
4931
|
}, 48, ["data-active", "data-status", "data-variant", "disabled", ".href", "onClick"]));
|
|
4891
4932
|
}
|
|
4892
|
-
}),
|
|
4933
|
+
}), Al = {
|
|
4893
4934
|
class: "bs-profile-details",
|
|
4894
4935
|
"data-component": "bs-profile-details"
|
|
4895
|
-
},
|
|
4936
|
+
}, Ol = {
|
|
4896
4937
|
class: "bs-profile-name",
|
|
4897
4938
|
"data-size": "sm",
|
|
4898
4939
|
"data-weight": "bold"
|
|
4899
|
-
},
|
|
4940
|
+
}, Vl = {
|
|
4900
4941
|
key: 1,
|
|
4901
4942
|
"data-weight": "bold"
|
|
4902
|
-
},
|
|
4943
|
+
}, Ll = { key: 2 }, El = { key: 3 }, Dl = {
|
|
4903
4944
|
key: 4,
|
|
4904
4945
|
"data-icon": "true"
|
|
4905
|
-
},
|
|
4946
|
+
}, Pl = {
|
|
4906
4947
|
__name: "BsProfileDetails",
|
|
4907
4948
|
props: {
|
|
4908
4949
|
profileName: {
|
|
@@ -4920,39 +4961,39 @@ const ln = {
|
|
|
4920
4961
|
emits: ["action-toggled"],
|
|
4921
4962
|
setup(e, { emit: a }) {
|
|
4922
4963
|
const t = e, l = a, { icon: n } = Oe(t, "actionIcon"), { icon: i } = Oe(t, "miscMetaIcon");
|
|
4923
|
-
function
|
|
4964
|
+
function u(o) {
|
|
4924
4965
|
o.target.tagName === "BUTTON" && (o.preventDefault(), o.stopImmediatePropagation(), l("action-toggled"));
|
|
4925
4966
|
}
|
|
4926
|
-
return (o, s) => (
|
|
4927
|
-
e.action || o.$slots.action ? (
|
|
4967
|
+
return (o, s) => (d(), b("div", Al, [
|
|
4968
|
+
e.action || o.$slots.action ? (d(), b("button", {
|
|
4928
4969
|
key: 0,
|
|
4929
4970
|
"data-icon": "true",
|
|
4930
|
-
onClick:
|
|
4971
|
+
onClick: u
|
|
4931
4972
|
}, [
|
|
4932
4973
|
V(o.$slots, "action", {}, () => [
|
|
4933
|
-
e.actionIcon ? (
|
|
4974
|
+
e.actionIcon ? (d(), O(ae(c(n) ? c(n) : "span"), {
|
|
4934
4975
|
key: 0,
|
|
4935
4976
|
class: "bs-icon"
|
|
4936
4977
|
})) : C("", !0),
|
|
4937
|
-
|
|
4978
|
+
U(" " + T(e.action), 1)
|
|
4938
4979
|
])
|
|
4939
4980
|
])) : C("", !0),
|
|
4940
|
-
|
|
4941
|
-
e.company ? (
|
|
4942
|
-
e.jobTitle ? (
|
|
4943
|
-
e.email ? (
|
|
4944
|
-
e.miscMeta || o.$slots.misc ? (
|
|
4981
|
+
w("span", Ol, T(e.profileName), 1),
|
|
4982
|
+
e.company ? (d(), b("span", Vl, T(e.company), 1)) : C("", !0),
|
|
4983
|
+
e.jobTitle ? (d(), b("span", Ll, T(e.jobTitle), 1)) : C("", !0),
|
|
4984
|
+
e.email ? (d(), b("span", El, T(e.email), 1)) : C("", !0),
|
|
4985
|
+
e.miscMeta || o.$slots.misc ? (d(), b("span", Dl, [
|
|
4945
4986
|
V(o.$slots, "misc", {}, () => [
|
|
4946
|
-
e.miscMetaIcon ? (
|
|
4987
|
+
e.miscMetaIcon ? (d(), O(ae(c(i) ? c(i) : "span"), {
|
|
4947
4988
|
key: 0,
|
|
4948
4989
|
class: "bs-icon"
|
|
4949
4990
|
})) : C("", !0),
|
|
4950
|
-
|
|
4991
|
+
U(" " + T(e.miscMeta), 1)
|
|
4951
4992
|
])
|
|
4952
4993
|
])) : C("", !0)
|
|
4953
4994
|
]));
|
|
4954
4995
|
}
|
|
4955
|
-
},
|
|
4996
|
+
}, Yo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4956
4997
|
__name: "BsProfile",
|
|
4957
4998
|
props: {
|
|
4958
4999
|
layout: {
|
|
@@ -4982,22 +5023,22 @@ const ln = {
|
|
|
4982
5023
|
},
|
|
4983
5024
|
emits: ["action-toggled"],
|
|
4984
5025
|
setup(e, { emit: a }) {
|
|
4985
|
-
const t = e, l = a, n = re(), { onLinkClick: i } = Fe(t), { rootTag:
|
|
4986
|
-
return (r, m) => (
|
|
5026
|
+
const t = e, l = a, n = re(), { onLinkClick: i } = Fe(t), { rootTag: u, attrsToBind: o, hrefUrl: s } = ze(t, n, "div");
|
|
5027
|
+
return (r, m) => (d(), O(ae(c(u)), z({
|
|
4987
5028
|
class: "bs-profile",
|
|
4988
5029
|
".href": c(s),
|
|
4989
5030
|
"data-component": "bs-profile",
|
|
4990
5031
|
"data-layout": e.layout
|
|
4991
5032
|
}, c(o), { onClick: c(i) }), {
|
|
4992
5033
|
default: D(() => [
|
|
4993
|
-
P(
|
|
5034
|
+
P(Ot, {
|
|
4994
5035
|
src: e.imageSrc,
|
|
4995
5036
|
size: e.imageSize,
|
|
4996
5037
|
initials: e.initials,
|
|
4997
5038
|
"profile-name": e.profileName,
|
|
4998
5039
|
"use-alt-text": !1
|
|
4999
5040
|
}, null, 8, ["src", "size", "initials", "profile-name"]),
|
|
5000
|
-
P(
|
|
5041
|
+
P(Pl, {
|
|
5001
5042
|
"profile-name": e.profileName,
|
|
5002
5043
|
company: e.company,
|
|
5003
5044
|
"job-title": e.jobTitle,
|
|
@@ -5006,7 +5047,7 @@ const ln = {
|
|
|
5006
5047
|
"action-icon": e.actionIcon,
|
|
5007
5048
|
"misc-meta": e.miscMeta,
|
|
5008
5049
|
"misc-meta-icon": e.miscMetaIcon,
|
|
5009
|
-
onActionToggled: m[0] || (m[0] = (
|
|
5050
|
+
onActionToggled: m[0] || (m[0] = (g) => l("action-toggled"))
|
|
5010
5051
|
}, {
|
|
5011
5052
|
action: D(() => [
|
|
5012
5053
|
V(r.$slots, "action")
|
|
@@ -5021,7 +5062,7 @@ const ln = {
|
|
|
5021
5062
|
}, 48, [".href", "data-layout", "onClick"]));
|
|
5022
5063
|
}
|
|
5023
5064
|
});
|
|
5024
|
-
function
|
|
5065
|
+
function qt(e) {
|
|
5025
5066
|
const a = f(() => {
|
|
5026
5067
|
var n;
|
|
5027
5068
|
switch (e.currentStatus) {
|
|
@@ -5046,7 +5087,7 @@ function Pt(e) {
|
|
|
5046
5087
|
getStatus: l
|
|
5047
5088
|
};
|
|
5048
5089
|
}
|
|
5049
|
-
const
|
|
5090
|
+
const ql = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Ml = ["data-status"], Zo = {
|
|
5050
5091
|
__name: "BsProgressBar",
|
|
5051
5092
|
props: {
|
|
5052
5093
|
/** @type {Status} */
|
|
@@ -5074,8 +5115,8 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5074
5115
|
}
|
|
5075
5116
|
},
|
|
5076
5117
|
setup(e) {
|
|
5077
|
-
const a = e, { progressStep: t, progressText: l, getStatus: n } =
|
|
5078
|
-
return (i,
|
|
5118
|
+
const a = e, { progressStep: t, progressText: l, getStatus: n } = qt(a);
|
|
5119
|
+
return (i, u) => (d(), b("div", {
|
|
5079
5120
|
"aria-valuemax": e.steps.length,
|
|
5080
5121
|
"aria-valuenow": c(t),
|
|
5081
5122
|
"aria-valuetext": c(l),
|
|
@@ -5083,18 +5124,18 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5083
5124
|
"data-component": "bs-progress-bar",
|
|
5084
5125
|
role: "progressbar"
|
|
5085
5126
|
}, [
|
|
5086
|
-
(
|
|
5127
|
+
(d(!0), b(K, null, te(e.steps, (o, s) => (d(), b("div", {
|
|
5087
5128
|
class: "bs-step-item",
|
|
5088
5129
|
"data-status": c(n)(o.status, s),
|
|
5089
5130
|
"data-variant": "progress",
|
|
5090
5131
|
key: o.id || o.label,
|
|
5091
5132
|
role: "status"
|
|
5092
5133
|
}, [
|
|
5093
|
-
|
|
5094
|
-
], 8,
|
|
5095
|
-
], 8,
|
|
5134
|
+
w("span", null, T(o.label || o) + " : " + T(c(n)(o.status, s) || "not started"), 1)
|
|
5135
|
+
], 8, Ml))), 128))
|
|
5136
|
+
], 8, ql));
|
|
5096
5137
|
}
|
|
5097
|
-
},
|
|
5138
|
+
}, Nl = ["data-disabled", "data-error", "data-size"], zl = ["checked", "disabled", "id", "required", "value", "data-error"], Xo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5098
5139
|
__name: "BsRadio",
|
|
5099
5140
|
props: {
|
|
5100
5141
|
label: {
|
|
@@ -5138,26 +5179,26 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5138
5179
|
},
|
|
5139
5180
|
emits: ["update:modelValue"],
|
|
5140
5181
|
setup(e, { emit: a }) {
|
|
5141
|
-
const t = e, [l] = Q(), n = f(() =>
|
|
5142
|
-
return (o, s) => (
|
|
5182
|
+
const t = e, [l] = Q(), n = f(() => tt.concat(t.passAttrs.split(","))), i = f(() => t.inputId || l.value), u = f(() => t.checked || t.modelValue && t.modelValue === t.value);
|
|
5183
|
+
return (o, s) => (d(), b("div", z({
|
|
5143
5184
|
class: "bs-boolean",
|
|
5144
5185
|
"data-component": "bs-radio",
|
|
5145
5186
|
"data-disabled": e.disabled,
|
|
5146
5187
|
"data-error": e.error,
|
|
5147
5188
|
"data-size": e.size
|
|
5148
|
-
}, c(
|
|
5149
|
-
|
|
5150
|
-
checked:
|
|
5189
|
+
}, c(Z)(o.$attrs, n.value).remaining), [
|
|
5190
|
+
w("input", z({
|
|
5191
|
+
checked: u.value,
|
|
5151
5192
|
disabled: e.disabled,
|
|
5152
5193
|
id: o.$attrs.id || i.value,
|
|
5153
5194
|
required: e.required,
|
|
5154
5195
|
type: "radio",
|
|
5155
5196
|
value: e.value,
|
|
5156
5197
|
"data-error": e.error
|
|
5157
|
-
}, c(
|
|
5198
|
+
}, c(Z)(o.$attrs, n.value).filtered, {
|
|
5158
5199
|
onChange: s[0] || (s[0] = (r) => o.$emit("update:modelValue", r.target.value))
|
|
5159
|
-
}), null, 16,
|
|
5160
|
-
e.label || o.$slots.label ? (
|
|
5200
|
+
}), null, 16, zl),
|
|
5201
|
+
e.label || o.$slots.label ? (d(), O(ne, {
|
|
5161
5202
|
key: 0,
|
|
5162
5203
|
for: o.$attrs.id || i.value,
|
|
5163
5204
|
disabled: e.disabled,
|
|
@@ -5165,14 +5206,14 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5165
5206
|
}, {
|
|
5166
5207
|
default: D(() => [
|
|
5167
5208
|
V(o.$slots, "label", {}, () => [
|
|
5168
|
-
|
|
5209
|
+
U(T(e.label), 1)
|
|
5169
5210
|
])
|
|
5170
5211
|
]),
|
|
5171
5212
|
_: 3
|
|
5172
5213
|
}, 8, ["for", "disabled", "required"])) : C("", !0)
|
|
5173
|
-
], 16,
|
|
5214
|
+
], 16, Nl));
|
|
5174
5215
|
}
|
|
5175
|
-
}),
|
|
5216
|
+
}), Fl = ["id", "disabled", "required", "data-error", "value"], Rl = {
|
|
5176
5217
|
__name: "BsSelect",
|
|
5177
5218
|
props: {
|
|
5178
5219
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -5186,7 +5227,7 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5186
5227
|
emits: ["update:modelValue"],
|
|
5187
5228
|
setup(e, { emit: a }) {
|
|
5188
5229
|
const t = e, l = f(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
5189
|
-
return (n, i) => (
|
|
5230
|
+
return (n, i) => (d(), b("select", z({
|
|
5190
5231
|
id: n.$attrs.id || e.inputId,
|
|
5191
5232
|
class: "bs-select",
|
|
5192
5233
|
"data-component": "bs-select",
|
|
@@ -5195,12 +5236,12 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5195
5236
|
"data-error": e.error,
|
|
5196
5237
|
value: e.value || e.modelValue
|
|
5197
5238
|
}, l.value, {
|
|
5198
|
-
onChange: i[0] || (i[0] = (
|
|
5239
|
+
onChange: i[0] || (i[0] = (u) => n.$emit("update:modelValue", u.target.value))
|
|
5199
5240
|
}), [
|
|
5200
5241
|
V(n.$slots, "default")
|
|
5201
|
-
], 16,
|
|
5242
|
+
], 16, Fl));
|
|
5202
5243
|
}
|
|
5203
|
-
},
|
|
5244
|
+
}, jl = ["selected", "disabled"], Wl = ["disabled", "selected", "value"], Qo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5204
5245
|
__name: "BsSelectField",
|
|
5205
5246
|
props: {
|
|
5206
5247
|
data: {
|
|
@@ -5248,9 +5289,9 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5248
5289
|
var r, m;
|
|
5249
5290
|
return ((m = (r = a.hints) == null ? void 0 : r.join) == null ? void 0 : m.call(r, `
|
|
5250
5291
|
`)) || a.hints;
|
|
5251
|
-
}),
|
|
5252
|
-
return (r, m) => (
|
|
5253
|
-
e.label || r.$slots.label ? (
|
|
5292
|
+
}), u = f(() => a.error && a.errorMsg || a.hint || i.value || void 0), o = f(() => a.inputId || t.value), s = f(() => a.value || a.modelValue);
|
|
5293
|
+
return (r, m) => (d(), b("div", z({ "data-component": "bs-select-field" }, c(Z)(r.$attrs, n.value).remaining), [
|
|
5294
|
+
e.label || r.$slots.label ? (d(), O(ne, {
|
|
5254
5295
|
key: 0,
|
|
5255
5296
|
for: r.$attrs.id || o.value,
|
|
5256
5297
|
disabled: e.disabled,
|
|
@@ -5258,36 +5299,36 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5258
5299
|
}, {
|
|
5259
5300
|
default: D(() => [
|
|
5260
5301
|
V(r.$slots, "label", {}, () => [
|
|
5261
|
-
|
|
5302
|
+
U(T(e.label), 1)
|
|
5262
5303
|
])
|
|
5263
5304
|
]),
|
|
5264
5305
|
_: 3
|
|
5265
5306
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
5266
|
-
P(
|
|
5307
|
+
P(Rl, z({
|
|
5267
5308
|
disabled: e.disabled,
|
|
5268
5309
|
error: e.error,
|
|
5269
5310
|
"hint-id": c(l),
|
|
5270
5311
|
"input-id": r.$attrs.id || o.value,
|
|
5271
5312
|
required: e.required,
|
|
5272
5313
|
value: s.value,
|
|
5273
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
5274
|
-
}, c(
|
|
5314
|
+
"onUpdate:modelValue": m[0] || (m[0] = (g) => r.$emit("update:modelValue", g))
|
|
5315
|
+
}, c(Z)(r.$attrs, n.value).filtered), {
|
|
5275
5316
|
default: D(() => [
|
|
5276
|
-
|
|
5317
|
+
w("option", {
|
|
5277
5318
|
selected: !s.value,
|
|
5278
5319
|
value: "",
|
|
5279
5320
|
disabled: !!s.value
|
|
5280
|
-
},
|
|
5281
|
-
(
|
|
5282
|
-
key:
|
|
5283
|
-
disabled:
|
|
5284
|
-
selected: s.value ===
|
|
5285
|
-
value:
|
|
5286
|
-
},
|
|
5321
|
+
}, T(e.disabled ? "" : e.placeholder), 9, jl),
|
|
5322
|
+
(d(!0), b(K, null, te(e.data, (g) => (d(), b("option", {
|
|
5323
|
+
key: g.value,
|
|
5324
|
+
disabled: g.disabled,
|
|
5325
|
+
selected: s.value === g.value,
|
|
5326
|
+
value: g.value
|
|
5327
|
+
}, T(g.label), 9, Wl))), 128))
|
|
5287
5328
|
]),
|
|
5288
5329
|
_: 1
|
|
5289
5330
|
}, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
|
|
5290
|
-
|
|
5331
|
+
u.value ? (d(), O(ge, {
|
|
5291
5332
|
key: 1,
|
|
5292
5333
|
"data-disabled": e.disabled,
|
|
5293
5334
|
error: e.error,
|
|
@@ -5297,7 +5338,7 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5297
5338
|
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : C("", !0)
|
|
5298
5339
|
], 16));
|
|
5299
5340
|
}
|
|
5300
|
-
}),
|
|
5341
|
+
}), Ul = ["id", "name", "value"], Gl = ["aria-controls", "aria-describedby", "aria-expanded", "aria-invalid", "aria-label", "data-cy", "data-disabled", "data-error", "data-open", "data-placeholder", "data-required", "disabled", "id"], Jo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5301
5342
|
__name: "BsSelectWithDropdown",
|
|
5302
5343
|
props: {
|
|
5303
5344
|
breakout: {
|
|
@@ -5373,15 +5414,15 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5373
5414
|
},
|
|
5374
5415
|
emits: ["update:model-value"],
|
|
5375
5416
|
setup(e, { emit: a }) {
|
|
5376
|
-
const t = e, l = a, [n, i] = Q(2),
|
|
5417
|
+
const t = e, l = a, [n, i] = Q(2), u = re(), o = I(!1), s = f(() => t.selectId || u.id || n.value), r = f(() => t.optionsId || i.value), m = f(() => {
|
|
5377
5418
|
if (t.modelValue) {
|
|
5378
|
-
const v = t.options.find((
|
|
5419
|
+
const v = t.options.find((h) => h.value === t.modelValue);
|
|
5379
5420
|
return v ? v.label : t.placeholder;
|
|
5380
5421
|
}
|
|
5381
5422
|
return t.placeholder;
|
|
5382
|
-
}),
|
|
5383
|
-
return (v,
|
|
5384
|
-
e.label || v.$slots.label ? (
|
|
5423
|
+
}), g = f(() => m.value === t.placeholder);
|
|
5424
|
+
return (v, h) => (d(), b("div", null, [
|
|
5425
|
+
e.label || v.$slots.label ? (d(), O(ne, {
|
|
5385
5426
|
key: 0,
|
|
5386
5427
|
disabled: e.disabled,
|
|
5387
5428
|
for: s.value,
|
|
@@ -5389,19 +5430,19 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5389
5430
|
}, {
|
|
5390
5431
|
default: D(() => [
|
|
5391
5432
|
V(v.$slots, "label", {}, () => [
|
|
5392
|
-
|
|
5433
|
+
U(T(e.label), 1)
|
|
5393
5434
|
])
|
|
5394
5435
|
]),
|
|
5395
5436
|
_: 3
|
|
5396
5437
|
}, 8, ["disabled", "for", "required"])) : C("", !0),
|
|
5397
|
-
e.inputName || e.inputId ? (
|
|
5438
|
+
e.inputName || e.inputId ? (d(), b("input", {
|
|
5398
5439
|
key: 1,
|
|
5399
5440
|
id: e.inputId,
|
|
5400
5441
|
name: e.inputName,
|
|
5401
5442
|
type: "hidden",
|
|
5402
5443
|
value: e.modelValue
|
|
5403
|
-
}, null, 8,
|
|
5404
|
-
P(
|
|
5444
|
+
}, null, 8, Ul)) : C("", !0),
|
|
5445
|
+
P(Lt, {
|
|
5405
5446
|
"anchor-id": s.value,
|
|
5406
5447
|
breakout: e.breakout,
|
|
5407
5448
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -5414,11 +5455,11 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5414
5455
|
options: e.options,
|
|
5415
5456
|
"selected-option": e.modelValue,
|
|
5416
5457
|
"toggle-id": s.value,
|
|
5417
|
-
onClose:
|
|
5418
|
-
"onUpdate:selectedOption":
|
|
5458
|
+
onClose: h[1] || (h[1] = (y) => o.value = !1),
|
|
5459
|
+
"onUpdate:selectedOption": h[2] || (h[2] = (y) => l("update:model-value", y))
|
|
5419
5460
|
}, {
|
|
5420
5461
|
toggle: D(() => [
|
|
5421
|
-
|
|
5462
|
+
w("button", z({
|
|
5422
5463
|
"aria-controls": r.value,
|
|
5423
5464
|
"aria-describedby": e.hintId,
|
|
5424
5465
|
"aria-expanded": o.value,
|
|
@@ -5426,30 +5467,30 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5426
5467
|
"aria-invalid": e.error,
|
|
5427
5468
|
"aria-label": `${o.value ? "Close" : "Open"} Combobox`,
|
|
5428
5469
|
class: "bs-select",
|
|
5429
|
-
"data-cy":
|
|
5470
|
+
"data-cy": g.value ? "ignore" : void 0,
|
|
5430
5471
|
"data-disabled": e.disabled,
|
|
5431
5472
|
"data-error": e.error,
|
|
5432
5473
|
"data-open": o.value,
|
|
5433
|
-
"data-placeholder":
|
|
5474
|
+
"data-placeholder": g.value,
|
|
5434
5475
|
"data-required": e.required,
|
|
5435
5476
|
disabled: e.disabled,
|
|
5436
5477
|
id: s.value,
|
|
5437
5478
|
role: "combobox"
|
|
5438
5479
|
}, v.$attrs, {
|
|
5439
|
-
onClick:
|
|
5480
|
+
onClick: h[0] || (h[0] = wt((y) => o.value = !o.value, ["prevent"]))
|
|
5440
5481
|
}), [
|
|
5441
|
-
|
|
5442
|
-
e.disabled ? C("", !0) : (
|
|
5482
|
+
w("span", null, T(m.value), 1),
|
|
5483
|
+
e.disabled ? C("", !0) : (d(), O(c(Me), {
|
|
5443
5484
|
key: 0,
|
|
5444
5485
|
size: "md"
|
|
5445
5486
|
}))
|
|
5446
|
-
], 16,
|
|
5487
|
+
], 16, Gl)
|
|
5447
5488
|
]),
|
|
5448
5489
|
_: 1
|
|
5449
5490
|
}, 8, ["anchor-id", "breakout", "dropdown-position", "dropdown-width", "helper-description", "helper-text", "open", "options-id", "options", "selected-option", "toggle-id"])
|
|
5450
5491
|
]));
|
|
5451
5492
|
}
|
|
5452
|
-
}),
|
|
5493
|
+
}), Hl = ["data-disabled", "data-size"], Kl = ["data-disabled", "data-pending", "data-size"], Yl = ["checked", "disabled", "id"], Zl = ["data-inner-on-label", "data-inner-off-label"], _o = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5453
5494
|
__name: "BsSwitch",
|
|
5454
5495
|
props: {
|
|
5455
5496
|
checked: {
|
|
@@ -5495,49 +5536,49 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5495
5536
|
},
|
|
5496
5537
|
emits: ["update:modelValue"],
|
|
5497
5538
|
setup(e, { emit: a }) {
|
|
5498
|
-
const t = e, l = a, [n] = Q(), i = f(() =>
|
|
5499
|
-
return (s, r) => (
|
|
5539
|
+
const t = e, l = a, [n] = Q(), i = f(() => tt.concat(t.passAttrs.split(","))), u = f(() => t.inputId || n.value), o = f(() => t.checked || t.modelValue);
|
|
5540
|
+
return (s, r) => (d(), b("div", z({
|
|
5500
5541
|
class: "bs-boolean",
|
|
5501
5542
|
"data-component": "bs-switch",
|
|
5502
5543
|
"data-disabled": e.disabled,
|
|
5503
5544
|
"data-size": e.size
|
|
5504
|
-
}, c(
|
|
5505
|
-
e.label || s.$slots.label ? (
|
|
5545
|
+
}, c(Z)(s.$attrs, i.value).remaining), [
|
|
5546
|
+
e.label || s.$slots.label ? (d(), O(ne, {
|
|
5506
5547
|
key: 0,
|
|
5507
|
-
for: s.$attrs.id ||
|
|
5548
|
+
for: s.$attrs.id || u.value,
|
|
5508
5549
|
disabled: e.disabled,
|
|
5509
5550
|
hide: e.hideLabel
|
|
5510
5551
|
}, {
|
|
5511
5552
|
default: D(() => [
|
|
5512
5553
|
V(s.$slots, "label", {}, () => [
|
|
5513
|
-
|
|
5554
|
+
U(T(e.label), 1)
|
|
5514
5555
|
])
|
|
5515
5556
|
]),
|
|
5516
5557
|
_: 3
|
|
5517
5558
|
}, 8, ["for", "disabled", "hide"])) : C("", !0),
|
|
5518
|
-
|
|
5559
|
+
w("div", {
|
|
5519
5560
|
class: "bs-switch",
|
|
5520
5561
|
"data-disabled": e.disabled,
|
|
5521
5562
|
"data-pending": e.pending,
|
|
5522
5563
|
"data-size": e.size
|
|
5523
5564
|
}, [
|
|
5524
|
-
|
|
5565
|
+
w("input", z({
|
|
5525
5566
|
checked: o.value,
|
|
5526
5567
|
disabled: e.disabled,
|
|
5527
|
-
id: s.$attrs.id ||
|
|
5568
|
+
id: s.$attrs.id || u.value,
|
|
5528
5569
|
type: "checkbox"
|
|
5529
|
-
}, c(
|
|
5570
|
+
}, c(Z)(s.$attrs, i.value).filtered, {
|
|
5530
5571
|
onChange: r[0] || (r[0] = (m) => l("update:modelValue", m.target.checked))
|
|
5531
|
-
}), null, 16,
|
|
5532
|
-
|
|
5572
|
+
}), null, 16, Yl),
|
|
5573
|
+
w("span", {
|
|
5533
5574
|
"aria-hidden": "true",
|
|
5534
5575
|
"data-inner-on-label": e.innerOnLabel,
|
|
5535
5576
|
"data-inner-off-label": e.innerOffLabel
|
|
5536
|
-
}, null, 8,
|
|
5537
|
-
], 8,
|
|
5538
|
-
], 16,
|
|
5577
|
+
}, null, 8, Zl)
|
|
5578
|
+
], 8, Kl)
|
|
5579
|
+
], 16, Hl));
|
|
5539
5580
|
}
|
|
5540
|
-
}),
|
|
5581
|
+
}), Xl = ["aria-controls", "aria-selected", "data-hidden"], ei = {
|
|
5541
5582
|
__name: "BsTab",
|
|
5542
5583
|
props: {
|
|
5543
5584
|
activeTabId: {
|
|
@@ -5554,7 +5595,7 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5554
5595
|
},
|
|
5555
5596
|
emits: ["tabClick"],
|
|
5556
5597
|
setup(e, { emit: a }) {
|
|
5557
|
-
const t = e, l = re(), n =
|
|
5598
|
+
const t = e, l = re(), n = I(), i = f(() => t.activeTabId === l.id), u = f(() => t.panelId || `${l.id}-panel`);
|
|
5558
5599
|
function o(r) {
|
|
5559
5600
|
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), s());
|
|
5560
5601
|
}
|
|
@@ -5564,8 +5605,8 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5564
5605
|
n.value.dispatchEvent(r);
|
|
5565
5606
|
}
|
|
5566
5607
|
}
|
|
5567
|
-
return (r, m) => (
|
|
5568
|
-
"aria-controls":
|
|
5608
|
+
return (r, m) => (d(), b("div", {
|
|
5609
|
+
"aria-controls": u.value,
|
|
5569
5610
|
"aria-selected": i.value ? "true" : "false",
|
|
5570
5611
|
"data-hidden": e.hidden || void 0,
|
|
5571
5612
|
"data-component": "bs-tab",
|
|
@@ -5577,9 +5618,9 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5577
5618
|
onKeydown: o
|
|
5578
5619
|
}, [
|
|
5579
5620
|
V(r.$slots, "default")
|
|
5580
|
-
], 40,
|
|
5621
|
+
], 40, Xl));
|
|
5581
5622
|
}
|
|
5582
|
-
},
|
|
5623
|
+
}, Ql = ["id", "data-resizing"], Jl = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], _l = 73, eo = 20, Ue = 16, ti = {
|
|
5583
5624
|
__name: "BsTabList",
|
|
5584
5625
|
props: {
|
|
5585
5626
|
activeTabId: { type: String, required: !0 },
|
|
@@ -5590,10 +5631,10 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5590
5631
|
},
|
|
5591
5632
|
emits: ["tabChange", "update:modelValue"],
|
|
5592
5633
|
setup(e, { emit: a }) {
|
|
5593
|
-
const t = e, l = a, n =
|
|
5634
|
+
const t = e, l = a, n = I(!1), i = I(!1), u = I([]), o = I(!1), s = I(!1), r = I(), m = I([]), g = I(!1), v = I([]), h = I(), y = I([]), B = I(), p = I(), [S, k] = Q(2), $ = f(() => t.activeTabId ? v.value.findIndex((x) => x.id === t.activeTabId) : 0), M = f(() => u.value.some((x) => x.id === t.activeTabId)), A = f(() => `${k.value}-options`), L = f(() => `${k.value}-toggle`), R = f(() => {
|
|
5594
5635
|
var x;
|
|
5595
5636
|
return M.value ? (x = v.value[$.value]) == null ? void 0 : x.textContent : "More";
|
|
5596
|
-
}), F = f(() => M.value ? m.value[$.value] - m.value[$.value - 1] +
|
|
5637
|
+
}), F = f(() => M.value ? m.value[$.value] - m.value[$.value - 1] + eo + Ue : _l + Ue);
|
|
5597
5638
|
function W() {
|
|
5598
5639
|
var de;
|
|
5599
5640
|
let x = !1, N, H = 0, ee = !1, oe = [];
|
|
@@ -5609,9 +5650,9 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5609
5650
|
}
|
|
5610
5651
|
N.dataset.hidden = "false", N.setAttribute("tabindex", "0");
|
|
5611
5652
|
}
|
|
5612
|
-
s.value = x,
|
|
5613
|
-
|
|
5614
|
-
},
|
|
5653
|
+
s.value = x, u.value = oe, n.value || Ae(() => n.value = !0), setTimeout(() => {
|
|
5654
|
+
Nt(), q(), g.value = !0;
|
|
5655
|
+
}, g.value ? 25 : 1e3);
|
|
5615
5656
|
}
|
|
5616
5657
|
}
|
|
5617
5658
|
function _(x) {
|
|
@@ -5628,14 +5669,14 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5628
5669
|
}
|
|
5629
5670
|
function ke() {
|
|
5630
5671
|
var x;
|
|
5631
|
-
(x =
|
|
5672
|
+
(x = h.value) == null || x.focus(), o.value = !1;
|
|
5632
5673
|
}
|
|
5633
5674
|
function Ce() {
|
|
5634
5675
|
o.value = !o.value, i.value || (i.value = !0);
|
|
5635
5676
|
}
|
|
5636
5677
|
function se(x) {
|
|
5637
5678
|
var N;
|
|
5638
|
-
o.value = !1, (N =
|
|
5679
|
+
o.value = !1, (N = h.value) == null || N.focus(), _(x);
|
|
5639
5680
|
}
|
|
5640
5681
|
function xe(x) {
|
|
5641
5682
|
if (t.withBsTabs) return;
|
|
@@ -5648,10 +5689,10 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5648
5689
|
if (x.key === "ArrowLeft" || x.key === "ArrowRight") {
|
|
5649
5690
|
const N = y.value.findIndex((H) => H.id === x.target.id);
|
|
5650
5691
|
if (N === -1) return;
|
|
5651
|
-
x.preventDefault(), x.stopPropagation(), x.key === "ArrowLeft" ? j(N) :
|
|
5692
|
+
x.preventDefault(), x.stopPropagation(), x.key === "ArrowLeft" ? j(N) : E(N);
|
|
5652
5693
|
}
|
|
5653
5694
|
}
|
|
5654
|
-
function
|
|
5695
|
+
function E(x) {
|
|
5655
5696
|
var H;
|
|
5656
5697
|
const N = (x + 1) % y.value.length;
|
|
5657
5698
|
(H = y.value[N]) == null || H.focus();
|
|
@@ -5662,31 +5703,31 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5662
5703
|
(H = y.value[N]) == null || H.focus();
|
|
5663
5704
|
}
|
|
5664
5705
|
function q() {
|
|
5665
|
-
var de, ie,
|
|
5706
|
+
var de, ie, rt, st;
|
|
5666
5707
|
const x = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0, N = p.value;
|
|
5667
5708
|
let H = 300, ee = ((ie = (de = y.value) == null ? void 0 : de[$.value]) == null ? void 0 : ie.offsetLeft) || 0, oe = he($.value);
|
|
5668
|
-
s.value && M.value && (ee = (
|
|
5709
|
+
s.value && M.value && (ee = (rt = h.value) == null ? void 0 : rt.offsetLeft, oe = (st = h.value) == null ? void 0 : st.offsetWidth), H = Math.max(Math.abs((ee - x) / N * 300), 100), r.value.style.setProperty("--active-line-max-width", `${N}px`), r.value.style.setProperty("--active-line-scale", `${oe / N}`), r.value.style.setProperty("--active-line-offset", `${ee}px`), r.value.style.setProperty("--active-line-transition-duration", `${H}ms`);
|
|
5669
5710
|
}
|
|
5670
|
-
function
|
|
5711
|
+
function Y() {
|
|
5671
5712
|
var x, N;
|
|
5672
|
-
(N = (x =
|
|
5713
|
+
(N = (x = B.value) == null ? void 0 : x.disconnect) == null || N.call(x), B.value = null;
|
|
5673
5714
|
}
|
|
5674
5715
|
function J() {
|
|
5675
5716
|
const x = Ve(() => {
|
|
5676
5717
|
p.value = r.value.clientWidth, W();
|
|
5677
5718
|
}, 25);
|
|
5678
|
-
|
|
5719
|
+
B.value = new ResizeObserver(x), B.value.observe(document.body);
|
|
5679
5720
|
}
|
|
5680
5721
|
function Te() {
|
|
5681
5722
|
v.value = Array.from(r.value.children).filter((x) => x.role === "tab");
|
|
5682
5723
|
}
|
|
5683
|
-
function
|
|
5724
|
+
function Mt() {
|
|
5684
5725
|
let x;
|
|
5685
5726
|
v.value.forEach((N, H) => {
|
|
5686
5727
|
x = N.getBoundingClientRect().width + Ue, m.value.push(H ? x + m.value[H - 1] : x);
|
|
5687
5728
|
});
|
|
5688
5729
|
}
|
|
5689
|
-
function
|
|
5730
|
+
function Nt() {
|
|
5690
5731
|
var N, H;
|
|
5691
5732
|
let x = [];
|
|
5692
5733
|
if (typeof window > "u") return x;
|
|
@@ -5696,14 +5737,14 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5696
5737
|
}
|
|
5697
5738
|
s.value && x.push(r.value.querySelector(".bs-tab-list-toggle")), y.value = x;
|
|
5698
5739
|
}
|
|
5699
|
-
return
|
|
5740
|
+
return G(() => t.activeTabId, ye), X(() => {
|
|
5700
5741
|
var x;
|
|
5701
5742
|
try {
|
|
5702
|
-
Te(),
|
|
5743
|
+
Te(), Mt(), J(), p.value = r.value.getBoundingClientRect().width, W(), t.withBsTabs || (x = v.value[$.value]) == null || x.setAttribute("aria-selected", "true");
|
|
5703
5744
|
} catch (N) {
|
|
5704
5745
|
console.log("tab error", N);
|
|
5705
5746
|
}
|
|
5706
|
-
}), Be(
|
|
5747
|
+
}), Be(Y), (x, N) => (d(), b("div", {
|
|
5707
5748
|
class: "bs-tab-list",
|
|
5708
5749
|
"data-component": "bs-tab-list",
|
|
5709
5750
|
id: x.$attrs.id || c(S),
|
|
@@ -5716,28 +5757,28 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5716
5757
|
onKeydown: Se
|
|
5717
5758
|
}, [
|
|
5718
5759
|
V(x.$slots, "default"),
|
|
5719
|
-
|
|
5760
|
+
w("button", {
|
|
5720
5761
|
"aria-controls": c(k),
|
|
5721
5762
|
"aria-expanded": o.value,
|
|
5722
5763
|
class: "bs-tab-list-toggle",
|
|
5723
5764
|
"data-active": M.value || void 0,
|
|
5724
5765
|
"data-hidden": !s.value,
|
|
5725
|
-
id:
|
|
5766
|
+
id: L.value,
|
|
5726
5767
|
ref_key: "dropdownToggle",
|
|
5727
|
-
ref:
|
|
5768
|
+
ref: h,
|
|
5728
5769
|
onClick: Ce
|
|
5729
5770
|
}, [
|
|
5730
|
-
P(c(
|
|
5731
|
-
|
|
5732
|
-
], 8,
|
|
5733
|
-
P(
|
|
5734
|
-
"anchor-id":
|
|
5771
|
+
P(c(Yt), { size: "sm" }),
|
|
5772
|
+
U(" " + T(R.value), 1)
|
|
5773
|
+
], 8, Jl),
|
|
5774
|
+
P(Pt, {
|
|
5775
|
+
"anchor-id": L.value,
|
|
5735
5776
|
breakout: "",
|
|
5736
5777
|
"container-id": x.$attrs.id || c(S),
|
|
5737
5778
|
"helper-description": e.helperDescription || void 0,
|
|
5738
5779
|
"helper-text": e.helperText,
|
|
5739
5780
|
id: c(k),
|
|
5740
|
-
"options-id":
|
|
5781
|
+
"options-id": A.value,
|
|
5741
5782
|
position: "right",
|
|
5742
5783
|
preloaded: "",
|
|
5743
5784
|
shown: o.value,
|
|
@@ -5746,22 +5787,22 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5746
5787
|
"onUpdate:modelValue": se
|
|
5747
5788
|
}, {
|
|
5748
5789
|
default: D(() => [
|
|
5749
|
-
(
|
|
5790
|
+
(d(!0), b(K, null, te(u.value, (H) => (d(), O(it, {
|
|
5750
5791
|
key: H.id,
|
|
5751
5792
|
value: H.id,
|
|
5752
|
-
"options-id":
|
|
5793
|
+
"options-id": A.value
|
|
5753
5794
|
}, {
|
|
5754
5795
|
default: D(() => [
|
|
5755
|
-
|
|
5796
|
+
U(T(H.textContent), 1)
|
|
5756
5797
|
]),
|
|
5757
5798
|
_: 2
|
|
5758
5799
|
}, 1032, ["value", "options-id"]))), 128))
|
|
5759
5800
|
]),
|
|
5760
5801
|
_: 1
|
|
5761
5802
|
}, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])
|
|
5762
|
-
], 40,
|
|
5803
|
+
], 40, Ql));
|
|
5763
5804
|
}
|
|
5764
|
-
},
|
|
5805
|
+
}, to = ["aria-labelledby", "data-active", "id"], ai = {
|
|
5765
5806
|
__name: "BsTabPanel",
|
|
5766
5807
|
props: {
|
|
5767
5808
|
activeTabId: {
|
|
@@ -5775,7 +5816,7 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5775
5816
|
},
|
|
5776
5817
|
setup(e) {
|
|
5777
5818
|
const a = e, t = re(), l = f(() => a.activeTabId && a.activeTabId === a.tabId), n = f(() => t.id || `${a.tabId}-panel`);
|
|
5778
|
-
return (i,
|
|
5819
|
+
return (i, u) => (d(), b("section", {
|
|
5779
5820
|
"aria-labelledby": e.tabId,
|
|
5780
5821
|
"data-active": l.value,
|
|
5781
5822
|
"data-component": "bs-tab-panel",
|
|
@@ -5783,9 +5824,9 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5783
5824
|
role: "tabpanel"
|
|
5784
5825
|
}, [
|
|
5785
5826
|
V(i.$slots, "default")
|
|
5786
|
-
], 8,
|
|
5827
|
+
], 8, to));
|
|
5787
5828
|
}
|
|
5788
|
-
},
|
|
5829
|
+
}, ao = ["data-error", "id", "rows", "value"], no = {
|
|
5789
5830
|
__name: "BsTextarea",
|
|
5790
5831
|
props: {
|
|
5791
5832
|
error: {
|
|
@@ -5801,17 +5842,17 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5801
5842
|
emits: ["update:modelValue"],
|
|
5802
5843
|
setup(e, { emit: a }) {
|
|
5803
5844
|
const t = e, l = f(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
5804
|
-
return (n, i) => (
|
|
5845
|
+
return (n, i) => (d(), b("textarea", z({
|
|
5805
5846
|
class: "bs-textarea",
|
|
5806
5847
|
"data-component": "bs-textarea",
|
|
5807
5848
|
"data-error": e.error,
|
|
5808
5849
|
id: n.$attrs.id || e.inputId,
|
|
5809
5850
|
rows: n.$attrs.rows || 6,
|
|
5810
5851
|
value: e.value || e.modelValue,
|
|
5811
|
-
onInput: i[0] || (i[0] = (
|
|
5812
|
-
}, l.value), null, 16,
|
|
5852
|
+
onInput: i[0] || (i[0] = (u) => n.$emit("update:modelValue", u.target.value))
|
|
5853
|
+
}, l.value), null, 16, ao));
|
|
5813
5854
|
}
|
|
5814
|
-
},
|
|
5855
|
+
}, ni = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5815
5856
|
__name: "BsTextareaField",
|
|
5816
5857
|
props: {
|
|
5817
5858
|
/** 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. */
|
|
@@ -5860,16 +5901,16 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5860
5901
|
},
|
|
5861
5902
|
emits: ["update:modelValue"],
|
|
5862
5903
|
setup(e, { emit: a }) {
|
|
5863
|
-
const t = e, [l, n] = Q(2), i = f(() => za.concat(t.passAttrs.split(","))),
|
|
5904
|
+
const t = e, [l, n] = Q(2), i = f(() => za.concat(t.passAttrs.split(","))), u = f(() => {
|
|
5864
5905
|
var m;
|
|
5865
5906
|
return ((m = t.value || t.modelValue) == null ? void 0 : m.length) || 0;
|
|
5866
5907
|
}), o = f(() => {
|
|
5867
|
-
var m,
|
|
5868
|
-
return ((
|
|
5908
|
+
var m, g;
|
|
5909
|
+
return ((g = (m = t.hints) == null ? void 0 : m.join) == null ? void 0 : g.call(m, `
|
|
5869
5910
|
`)) || t.hints;
|
|
5870
5911
|
}), s = f(() => t.error && t.errorMsg || t.hint || o.value || void 0), r = f(() => t.inputId || l.value);
|
|
5871
|
-
return (m,
|
|
5872
|
-
e.label || m.$slots.label ? (
|
|
5912
|
+
return (m, g) => (d(), b("div", z({ "data-component": "bs-textarea-field" }, c(Z)(m.$attrs, i.value).remaining), [
|
|
5913
|
+
e.label || m.$slots.label ? (d(), O(ne, {
|
|
5873
5914
|
key: 0,
|
|
5874
5915
|
for: m.$attrs.id || r.value,
|
|
5875
5916
|
disabled: e.disabled,
|
|
@@ -5877,12 +5918,12 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5877
5918
|
}, {
|
|
5878
5919
|
default: D(() => [
|
|
5879
5920
|
V(m.$slots, "label", {}, () => [
|
|
5880
|
-
|
|
5921
|
+
U(T(e.label), 1)
|
|
5881
5922
|
])
|
|
5882
5923
|
]),
|
|
5883
5924
|
_: 3
|
|
5884
5925
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
5885
|
-
P(
|
|
5926
|
+
P(no, z({
|
|
5886
5927
|
disabled: e.disabled,
|
|
5887
5928
|
error: e.error,
|
|
5888
5929
|
"hint-id": c(n),
|
|
@@ -5891,11 +5932,11 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5891
5932
|
required: e.required,
|
|
5892
5933
|
rows: e.rows,
|
|
5893
5934
|
value: e.value || e.modelValue,
|
|
5894
|
-
"onUpdate:modelValue":
|
|
5895
|
-
}, c(
|
|
5896
|
-
s.value || e.charMax ? (
|
|
5935
|
+
"onUpdate:modelValue": g[0] || (g[0] = (v) => m.$emit("update:modelValue", v))
|
|
5936
|
+
}, c(Z)(m.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
|
|
5937
|
+
s.value || e.charMax ? (d(), O(ge, {
|
|
5897
5938
|
key: 1,
|
|
5898
|
-
"char-count":
|
|
5939
|
+
"char-count": u.value,
|
|
5899
5940
|
"char-max": e.charMax,
|
|
5900
5941
|
"data-disabled": e.disabled,
|
|
5901
5942
|
error: e.error,
|
|
@@ -5906,23 +5947,23 @@ const Dl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Pl = ["data-sta
|
|
|
5906
5947
|
], 16));
|
|
5907
5948
|
}
|
|
5908
5949
|
});
|
|
5909
|
-
function
|
|
5950
|
+
function lo(e) {
|
|
5910
5951
|
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);
|
|
5911
5952
|
return a ? "uFmt" : t ? "uFmtNoColon" : l ? "amPm" : n ? "amPmNoColon" : "";
|
|
5912
5953
|
}
|
|
5913
5954
|
const we = (e) => parseInt(e, 10);
|
|
5914
|
-
function
|
|
5955
|
+
function oo(e = "") {
|
|
5915
5956
|
const a = /[^0-9:apmAPM]/g;
|
|
5916
5957
|
let t, l;
|
|
5917
|
-
switch (e = e.replaceAll(a, "").toLowerCase(),
|
|
5958
|
+
switch (e = e.replaceAll(a, "").toLowerCase(), lo(e)) {
|
|
5918
5959
|
case "uFmt":
|
|
5919
5960
|
case "uFmtNoColon":
|
|
5920
5961
|
l = we(e.slice(-2)), t = we(e.slice(0, -2));
|
|
5921
5962
|
break;
|
|
5922
5963
|
case "amPm":
|
|
5923
5964
|
case "amPmNoColon":
|
|
5924
|
-
const i = e.split(/(a|p|am|pm)/),
|
|
5925
|
-
l = we(i[0].slice(-2)), t = we(i[0].slice(0, -2)), t < 12 &&
|
|
5965
|
+
const i = e.split(/(a|p|am|pm)/), u = e.includes("p");
|
|
5966
|
+
l = we(i[0].slice(-2)), t = we(i[0].slice(0, -2)), t < 12 && u && (t += 12), t === 12 && !u && (t = 0), t === 24 && (t = 0);
|
|
5926
5967
|
break;
|
|
5927
5968
|
}
|
|
5928
5969
|
return {
|
|
@@ -5933,14 +5974,14 @@ function no(e = "") {
|
|
|
5933
5974
|
function ve(e = "") {
|
|
5934
5975
|
const a = /[^0-9:]/g;
|
|
5935
5976
|
if (e = e.replaceAll(a, ""), !e) return "";
|
|
5936
|
-
const [t, l] = e.split(":"), n = we(t), i = we(l),
|
|
5937
|
-
return isNaN(n) || isNaN(i) || n > 23 || i > 59 ? "" : `${n % 12 || 12}:${l} ${
|
|
5977
|
+
const [t, l] = e.split(":"), n = we(t), i = we(l), u = n < 12 ? "AM" : "PM";
|
|
5978
|
+
return isNaN(n) || isNaN(i) || n > 23 || i > 59 ? "" : `${n % 12 || 12}:${l} ${u}`;
|
|
5938
5979
|
}
|
|
5939
|
-
function
|
|
5940
|
-
const { hours: a, minutes: t } =
|
|
5980
|
+
function io(e = "") {
|
|
5981
|
+
const { hours: a, minutes: t } = oo(e);
|
|
5941
5982
|
return isNaN(a) || isNaN(t) ? "" : `${a.toString().padStart(2, "0")}:${t.toString().padStart(2, "0")}`;
|
|
5942
5983
|
}
|
|
5943
|
-
const Ge = "excluded", He = "over",
|
|
5984
|
+
const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", ro = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5944
5985
|
__name: "BsTimePicker",
|
|
5945
5986
|
props: {
|
|
5946
5987
|
disabled: {
|
|
@@ -6005,21 +6046,21 @@ const Ge = "excluded", He = "over", ht = "skip", vt = "stop", Ke = "under", oo =
|
|
|
6005
6046
|
},
|
|
6006
6047
|
emits: ["update:modelValue"],
|
|
6007
6048
|
setup(e, { expose: a, emit: t }) {
|
|
6008
|
-
const l = e, n = t, i =
|
|
6049
|
+
const l = e, n = t, i = I(ve(l.modelValue)), u = I([]), o = I(""), s = I(!1);
|
|
6009
6050
|
function r() {
|
|
6010
6051
|
const S = [];
|
|
6011
6052
|
let k = !1;
|
|
6012
6053
|
for (let $ = 0; $ < 24 && !k; $++)
|
|
6013
6054
|
for (let M = 0; M < 60; M += l.step) {
|
|
6014
|
-
const
|
|
6015
|
-
if (
|
|
6016
|
-
if (
|
|
6055
|
+
const A = v($, M), L = g(A);
|
|
6056
|
+
if (L !== vt) {
|
|
6057
|
+
if (L === gt) {
|
|
6017
6058
|
k = !0;
|
|
6018
6059
|
break;
|
|
6019
6060
|
}
|
|
6020
6061
|
S.push({
|
|
6021
|
-
label: ve(
|
|
6022
|
-
value:
|
|
6062
|
+
label: ve(A),
|
|
6063
|
+
value: A
|
|
6023
6064
|
});
|
|
6024
6065
|
}
|
|
6025
6066
|
}
|
|
@@ -6028,13 +6069,13 @@ const Ge = "excluded", He = "over", ht = "skip", vt = "stop", Ke = "under", oo =
|
|
|
6028
6069
|
function m(S) {
|
|
6029
6070
|
return S ? l.minTime && S < l.minTime ? Ke : l.maxTime && S > l.maxTime ? He : l.disabledTimes.includes(S) ? Ge : "" : "";
|
|
6030
6071
|
}
|
|
6031
|
-
function
|
|
6072
|
+
function g(S) {
|
|
6032
6073
|
switch (m(S)) {
|
|
6033
6074
|
case He:
|
|
6034
|
-
return
|
|
6075
|
+
return gt;
|
|
6035
6076
|
case Ke:
|
|
6036
6077
|
case Ge:
|
|
6037
|
-
return
|
|
6078
|
+
return vt;
|
|
6038
6079
|
default:
|
|
6039
6080
|
return "";
|
|
6040
6081
|
}
|
|
@@ -6042,14 +6083,14 @@ const Ge = "excluded", He = "over", ht = "skip", vt = "stop", Ke = "under", oo =
|
|
|
6042
6083
|
function v(S, k) {
|
|
6043
6084
|
return S = S.toString().padStart(2, "0"), k = k.toString().padStart(2, "0"), `${S}:${k}`;
|
|
6044
6085
|
}
|
|
6045
|
-
function
|
|
6046
|
-
const k =
|
|
6047
|
-
k === l.modelValue && (i.value = ve(l.modelValue)),
|
|
6086
|
+
function h(S) {
|
|
6087
|
+
const k = io(S);
|
|
6088
|
+
k === l.modelValue && (i.value = ve(l.modelValue)), B(k);
|
|
6048
6089
|
}
|
|
6049
6090
|
function y() {
|
|
6050
|
-
|
|
6091
|
+
u.value = r();
|
|
6051
6092
|
}
|
|
6052
|
-
function
|
|
6093
|
+
function B(S) {
|
|
6053
6094
|
p(S), n("update:modelValue", S);
|
|
6054
6095
|
}
|
|
6055
6096
|
function p(S) {
|
|
@@ -6067,22 +6108,22 @@ const Ge = "excluded", He = "over", ht = "skip", vt = "stop", Ke = "under", oo =
|
|
|
6067
6108
|
o.value = "", s.value = !1;
|
|
6068
6109
|
}
|
|
6069
6110
|
}
|
|
6070
|
-
return
|
|
6111
|
+
return X(y), G([
|
|
6071
6112
|
() => l.disabledTimes,
|
|
6072
6113
|
() => l.maxTime,
|
|
6073
6114
|
() => l.minTime,
|
|
6074
6115
|
() => l.step
|
|
6075
|
-
], y),
|
|
6116
|
+
], y), G([
|
|
6076
6117
|
() => l.disabledTimes,
|
|
6077
6118
|
() => l.maxTime,
|
|
6078
6119
|
() => l.minTime,
|
|
6079
6120
|
() => l.modelValue
|
|
6080
|
-
], () => p(l.modelValue)),
|
|
6121
|
+
], () => p(l.modelValue)), G(() => l.modelValue, (S) => {
|
|
6081
6122
|
i.value = l.modelValue ? ve(S) : "";
|
|
6082
6123
|
}), a({
|
|
6083
6124
|
validationErr: s,
|
|
6084
6125
|
validationErrMsg: o
|
|
6085
|
-
}), (S, k) => (
|
|
6126
|
+
}), (S, k) => (d(), O(Et, {
|
|
6086
6127
|
disabled: e.disabled,
|
|
6087
6128
|
"display-value": i.value,
|
|
6088
6129
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -6093,14 +6134,14 @@ const Ge = "excluded", He = "over", ht = "skip", vt = "stop", Ke = "under", oo =
|
|
|
6093
6134
|
"hint-id": e.hintId,
|
|
6094
6135
|
"input-id": e.inputId,
|
|
6095
6136
|
"model-value": e.modelValue,
|
|
6096
|
-
options:
|
|
6137
|
+
options: u.value,
|
|
6097
6138
|
placeholder: e.placeholder,
|
|
6098
6139
|
required: e.required,
|
|
6099
6140
|
"update-on-input": !1,
|
|
6100
|
-
"onUpdate:modelValue":
|
|
6141
|
+
"onUpdate:modelValue": h
|
|
6101
6142
|
}, null, 8, ["disabled", "display-value", "dropdown-position", "dropdown-width", "error", "helper-description", "helper-text", "hint-id", "input-id", "model-value", "options", "placeholder", "required"]));
|
|
6102
6143
|
}
|
|
6103
|
-
}),
|
|
6144
|
+
}), li = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
6104
6145
|
__name: "BsTimePickerField",
|
|
6105
6146
|
props: {
|
|
6106
6147
|
disabled: {
|
|
@@ -6169,36 +6210,36 @@ const Ge = "excluded", He = "over", ht = "skip", vt = "stop", Ke = "under", oo =
|
|
|
6169
6210
|
},
|
|
6170
6211
|
emits: ["update:modelValue"],
|
|
6171
6212
|
setup(e, { expose: a, emit: t }) {
|
|
6172
|
-
const l = e, [n, i] = Q(2),
|
|
6173
|
-
var
|
|
6174
|
-
return (
|
|
6213
|
+
const l = e, [n, i] = Q(2), u = I(null), o = f(() => l.errorMsg || g.value), s = f(() => l.error || v.value), r = f(() => l.inputId || n.value), m = f(() => l.hint || s.value && o.value), g = f(() => {
|
|
6214
|
+
var h;
|
|
6215
|
+
return (h = u.value) == null ? void 0 : h.validationErrMsg;
|
|
6175
6216
|
}), v = f(() => {
|
|
6176
|
-
var
|
|
6177
|
-
return (
|
|
6217
|
+
var h;
|
|
6218
|
+
return (h = u.value) == null ? void 0 : h.validationErr;
|
|
6178
6219
|
});
|
|
6179
6220
|
return a({
|
|
6180
6221
|
validationErr: v,
|
|
6181
|
-
validationErrMsg:
|
|
6182
|
-
}), (
|
|
6222
|
+
validationErrMsg: g
|
|
6223
|
+
}), (h, y) => (d(), b("div", z({
|
|
6183
6224
|
"aria-live": "polite",
|
|
6184
6225
|
"data-component": "bs-time-picker-field"
|
|
6185
|
-
}, c(
|
|
6186
|
-
e.label ||
|
|
6226
|
+
}, c(Z)(h.$attrs, c(be)).remaining), [
|
|
6227
|
+
e.label || h.$slots.label ? (d(), O(ne, {
|
|
6187
6228
|
key: 0,
|
|
6188
|
-
for:
|
|
6229
|
+
for: h.$attrs.id || r.value,
|
|
6189
6230
|
disabled: e.disabled,
|
|
6190
6231
|
required: e.required
|
|
6191
6232
|
}, {
|
|
6192
6233
|
default: D(() => [
|
|
6193
|
-
V(
|
|
6194
|
-
|
|
6234
|
+
V(h.$slots, "label", {}, () => [
|
|
6235
|
+
U(T(e.label), 1)
|
|
6195
6236
|
])
|
|
6196
6237
|
]),
|
|
6197
6238
|
_: 3
|
|
6198
6239
|
}, 8, ["for", "disabled", "required"])) : C("", !0),
|
|
6199
|
-
P(
|
|
6240
|
+
P(ro, z({
|
|
6200
6241
|
ref_key: "timePicker",
|
|
6201
|
-
ref:
|
|
6242
|
+
ref: u,
|
|
6202
6243
|
disabled: e.disabled,
|
|
6203
6244
|
"disabled-times": e.disabledTimes,
|
|
6204
6245
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -6207,15 +6248,15 @@ const Ge = "excluded", He = "over", ht = "skip", vt = "stop", Ke = "under", oo =
|
|
|
6207
6248
|
"helper-description": e.helperDescription,
|
|
6208
6249
|
"helper-text": e.helperText,
|
|
6209
6250
|
"hint-id": c(i),
|
|
6210
|
-
"input-id":
|
|
6251
|
+
"input-id": h.$attrs.id || r.value,
|
|
6211
6252
|
"max-time": e.maxTime,
|
|
6212
6253
|
"min-time": e.minTime,
|
|
6213
6254
|
"model-value": e.modelValue,
|
|
6214
6255
|
placeholder: e.placeholder,
|
|
6215
6256
|
required: e.required,
|
|
6216
6257
|
step: e.step,
|
|
6217
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
6218
|
-
}, c(
|
|
6258
|
+
"onUpdate:modelValue": y[0] || (y[0] = (B) => h.$emit("update:modelValue", B))
|
|
6259
|
+
}, c(Z)(h.$attrs, c(be)).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"]),
|
|
6219
6260
|
ue(P(ge, {
|
|
6220
6261
|
error: s.value,
|
|
6221
6262
|
"error-msg": o.value,
|
|
@@ -6226,7 +6267,7 @@ const Ge = "excluded", He = "over", ht = "skip", vt = "stop", Ke = "under", oo =
|
|
|
6226
6267
|
])
|
|
6227
6268
|
], 16));
|
|
6228
6269
|
}
|
|
6229
|
-
}),
|
|
6270
|
+
}), so = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], uo = ["data-status"], co = { class: "visually-hidden" }, oi = {
|
|
6230
6271
|
__name: "BsTimeline",
|
|
6231
6272
|
props: {
|
|
6232
6273
|
/** @type {Status} */
|
|
@@ -6255,19 +6296,19 @@ const Ge = "excluded", He = "over", ht = "skip", vt = "stop", Ke = "under", oo =
|
|
|
6255
6296
|
},
|
|
6256
6297
|
setup(e) {
|
|
6257
6298
|
const a = e, t = {
|
|
6258
|
-
cancelled:
|
|
6259
|
-
complete:
|
|
6260
|
-
error:
|
|
6261
|
-
"in-progress":
|
|
6262
|
-
"not-started":
|
|
6263
|
-
ongoing:
|
|
6264
|
-
paused:
|
|
6299
|
+
cancelled: Zt,
|
|
6300
|
+
complete: Xt,
|
|
6301
|
+
error: Qt,
|
|
6302
|
+
"in-progress": Jt,
|
|
6303
|
+
"not-started": ut,
|
|
6304
|
+
ongoing: _t,
|
|
6305
|
+
paused: ea,
|
|
6265
6306
|
warning: kt
|
|
6266
|
-
}, { progressStep: l, progressText: n, getStatus: i } =
|
|
6267
|
-
function
|
|
6268
|
-
return o = i(o, s), t[o] ||
|
|
6307
|
+
}, { progressStep: l, progressText: n, getStatus: i } = qt(a);
|
|
6308
|
+
function u(o, s) {
|
|
6309
|
+
return o = i(o, s), t[o] || ut;
|
|
6269
6310
|
}
|
|
6270
|
-
return (o, s) => (
|
|
6311
|
+
return (o, s) => (d(), b("div", {
|
|
6271
6312
|
"aria-valuemax": e.steps.length,
|
|
6272
6313
|
"aria-valuenow": c(l),
|
|
6273
6314
|
"aria-valuetext": c(n),
|
|
@@ -6275,24 +6316,24 @@ const Ge = "excluded", He = "over", ht = "skip", vt = "stop", Ke = "under", oo =
|
|
|
6275
6316
|
"data-component": "bs-timeline",
|
|
6276
6317
|
role: "progressbar"
|
|
6277
6318
|
}, [
|
|
6278
|
-
(
|
|
6319
|
+
(d(!0), b(K, null, te(e.steps, (r, m) => (d(), b("div", {
|
|
6279
6320
|
class: "bs-step-item",
|
|
6280
6321
|
"data-status": c(i)(r.status, m),
|
|
6281
6322
|
key: r.id || r.label,
|
|
6282
6323
|
role: "status"
|
|
6283
6324
|
}, [
|
|
6284
|
-
(
|
|
6325
|
+
(d(), O(ae(u(r.status, m)), {
|
|
6285
6326
|
class: "bs-step-icon",
|
|
6286
6327
|
role: "presentation"
|
|
6287
6328
|
})),
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6329
|
+
w("p", null, [
|
|
6330
|
+
U(T(r.label || r) + " ", 1),
|
|
6331
|
+
w("span", co, " : " + T(c(i)(r.status, m) || "not started"), 1)
|
|
6291
6332
|
])
|
|
6292
|
-
], 8,
|
|
6293
|
-
], 8,
|
|
6333
|
+
], 8, uo))), 128))
|
|
6334
|
+
], 8, so));
|
|
6294
6335
|
}
|
|
6295
|
-
},
|
|
6336
|
+
}, fo = ["data-variant", "data-shown", "data-stacked"], ii = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
6296
6337
|
__name: "BsToast",
|
|
6297
6338
|
props: {
|
|
6298
6339
|
shown: {
|
|
@@ -6338,10 +6379,10 @@ const Ge = "excluded", He = "over", ht = "skip", vt = "stop", Ke = "under", oo =
|
|
|
6338
6379
|
},
|
|
6339
6380
|
emits: ["dismiss", "after-enter", "after-leave"],
|
|
6340
6381
|
setup(e, { emit: a }) {
|
|
6341
|
-
const t = e, l = a, { transition: n } =
|
|
6382
|
+
const t = e, l = a, { transition: n } = Ee(t);
|
|
6342
6383
|
let i = null;
|
|
6343
6384
|
fe("variant", t.variant), fe("handleDismiss", o);
|
|
6344
|
-
const
|
|
6385
|
+
const u = pe("stacked", t.stacked);
|
|
6345
6386
|
function o() {
|
|
6346
6387
|
i && (clearTimeout(i), i = null), l("dismiss", t.toastId);
|
|
6347
6388
|
}
|
|
@@ -6350,108 +6391,107 @@ const Ge = "excluded", He = "over", ht = "skip", vt = "stop", Ke = "under", oo =
|
|
|
6350
6391
|
o();
|
|
6351
6392
|
}, t.duration)), l("after-enter");
|
|
6352
6393
|
}
|
|
6353
|
-
return (r, m) => (
|
|
6394
|
+
return (r, m) => (d(), O(Pe, {
|
|
6354
6395
|
name: "bs-toast",
|
|
6355
6396
|
shown: c(n),
|
|
6356
6397
|
preloaded: e.preloaded,
|
|
6357
6398
|
onAfterEnter: s,
|
|
6358
|
-
onAfterLeave: m[0] || (m[0] = (
|
|
6399
|
+
onAfterLeave: m[0] || (m[0] = (g) => l("after-leave"))
|
|
6359
6400
|
}, {
|
|
6360
6401
|
default: D(() => [
|
|
6361
|
-
|
|
6402
|
+
w("div", z({
|
|
6362
6403
|
class: "bs-toast",
|
|
6363
6404
|
"data-component": "bs-toast",
|
|
6364
6405
|
"data-variant": e.variant,
|
|
6365
6406
|
"data-shown": c(n),
|
|
6366
|
-
"data-stacked": c(
|
|
6407
|
+
"data-stacked": c(u) || void 0,
|
|
6367
6408
|
role: "alert"
|
|
6368
6409
|
}, r.$attrs), [
|
|
6369
6410
|
V(r.$slots, "default")
|
|
6370
|
-
], 16,
|
|
6411
|
+
], 16, fo)
|
|
6371
6412
|
]),
|
|
6372
6413
|
_: 3
|
|
6373
6414
|
}, 8, ["shown", "preloaded"]));
|
|
6374
6415
|
}
|
|
6375
|
-
}),
|
|
6416
|
+
}), po = ["data-stacked"], ri = {
|
|
6376
6417
|
__name: "BsToastActions",
|
|
6377
6418
|
setup(e) {
|
|
6378
|
-
const a =
|
|
6379
|
-
Y(() => {
|
|
6380
|
-
var n;
|
|
6381
|
-
const l = St();
|
|
6382
|
-
((n = l.default) == null ? void 0 : n.call(l).length) > 2 && (a.value = !0);
|
|
6419
|
+
const a = pe("handleDismiss", () => {
|
|
6383
6420
|
});
|
|
6384
|
-
|
|
6385
|
-
|
|
6421
|
+
function t() {
|
|
6422
|
+
var l, n;
|
|
6423
|
+
return ((n = (l = et()).default) == null ? void 0 : n.call(l).length) > 2 || void 0;
|
|
6424
|
+
}
|
|
6425
|
+
return (l, n) => (d(), b("div", {
|
|
6386
6426
|
class: "bs-toast-actions",
|
|
6387
6427
|
"data-component": "bs-toast-actions",
|
|
6388
|
-
"data-stacked":
|
|
6428
|
+
"data-stacked": t()
|
|
6389
6429
|
}, [
|
|
6390
6430
|
V(l.$slots, "default", {}, () => [
|
|
6391
|
-
P(
|
|
6431
|
+
P(xt, {
|
|
6392
6432
|
size: "sm",
|
|
6393
6433
|
"text-btn": "",
|
|
6394
|
-
onClick: c(
|
|
6434
|
+
onClick: c(a)
|
|
6395
6435
|
}, {
|
|
6396
6436
|
default: D(() => n[0] || (n[0] = [
|
|
6397
|
-
|
|
6437
|
+
U(" Dismiss ")
|
|
6398
6438
|
])),
|
|
6399
6439
|
_: 1
|
|
6400
6440
|
}, 8, ["onClick"])
|
|
6401
6441
|
])
|
|
6402
|
-
], 8,
|
|
6442
|
+
], 8, po));
|
|
6403
6443
|
}
|
|
6404
|
-
},
|
|
6444
|
+
}, mo = (e, a) => {
|
|
6405
6445
|
const t = e.__vccOpts || e;
|
|
6406
6446
|
for (const [l, n] of a)
|
|
6407
6447
|
t[l] = n;
|
|
6408
6448
|
return t;
|
|
6409
|
-
},
|
|
6449
|
+
}, bo = {}, ho = {
|
|
6410
6450
|
class: "bs-toast-body",
|
|
6411
6451
|
"data-component": "bs-toast-body"
|
|
6412
6452
|
};
|
|
6413
|
-
function
|
|
6414
|
-
return
|
|
6453
|
+
function vo(e, a) {
|
|
6454
|
+
return d(), b("div", ho, [
|
|
6415
6455
|
V(e.$slots, "default")
|
|
6416
6456
|
]);
|
|
6417
6457
|
}
|
|
6418
|
-
const
|
|
6458
|
+
const si = /* @__PURE__ */ mo(bo, [["render", vo]]), go = ["data-variant"], di = {
|
|
6419
6459
|
__name: "BsToastHeader",
|
|
6420
6460
|
setup(e) {
|
|
6421
|
-
const a = pe("variant"), t = f(() => {
|
|
6461
|
+
const a = pe("variant", void 0), t = f(() => {
|
|
6422
6462
|
switch (a) {
|
|
6423
6463
|
case "warning":
|
|
6424
6464
|
return Xe;
|
|
6425
6465
|
case "positive":
|
|
6426
|
-
return
|
|
6466
|
+
return ta;
|
|
6427
6467
|
case "negative":
|
|
6428
6468
|
return Xe;
|
|
6429
6469
|
default:
|
|
6430
6470
|
return kt;
|
|
6431
6471
|
}
|
|
6432
6472
|
});
|
|
6433
|
-
return (l, n) => (
|
|
6473
|
+
return (l, n) => (d(), b("div", {
|
|
6434
6474
|
class: "bs-toast-header",
|
|
6435
6475
|
"data-component": "bs-toast-header",
|
|
6436
6476
|
"data-variant": c(a)
|
|
6437
6477
|
}, [
|
|
6438
|
-
(
|
|
6439
|
-
|
|
6478
|
+
(d(), O(ae(t.value), { class: "bs-toast-header-icon" })),
|
|
6479
|
+
w("h5", null, [
|
|
6440
6480
|
V(l.$slots, "default")
|
|
6441
6481
|
])
|
|
6442
|
-
], 8,
|
|
6482
|
+
], 8, go));
|
|
6443
6483
|
}
|
|
6444
|
-
},
|
|
6484
|
+
}, yo = {
|
|
6445
6485
|
class: "bs-toaster",
|
|
6446
6486
|
"data-component": "bs-toaster"
|
|
6447
|
-
},
|
|
6487
|
+
}, ui = {
|
|
6448
6488
|
__name: "BsToaster",
|
|
6449
6489
|
setup(e) {
|
|
6450
|
-
return fe("stacked", !0), (a, t) => (
|
|
6490
|
+
return fe("stacked", !0), (a, t) => (d(), b("div", yo, [
|
|
6451
6491
|
V(a.$slots, "default")
|
|
6452
6492
|
]));
|
|
6453
6493
|
}
|
|
6454
|
-
},
|
|
6494
|
+
}, So = ["data-position"], wo = ["id"], ci = {
|
|
6455
6495
|
__name: "BsTooltip",
|
|
6456
6496
|
props: {
|
|
6457
6497
|
tooltipId: {
|
|
@@ -6478,7 +6518,7 @@ const ii = /* @__PURE__ */ fo(po, [["render", bo]]), ho = ["data-variant"], ri =
|
|
|
6478
6518
|
}
|
|
6479
6519
|
},
|
|
6480
6520
|
setup(e) {
|
|
6481
|
-
const a = e, t =
|
|
6521
|
+
const a = e, t = I(!1), l = I(!1), n = f(() => {
|
|
6482
6522
|
let o = "bs-tooltip-text";
|
|
6483
6523
|
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;
|
|
6484
6524
|
});
|
|
@@ -6488,28 +6528,28 @@ const ii = /* @__PURE__ */ fo(po, [["render", bo]]), ho = ["data-variant"], ri =
|
|
|
6488
6528
|
function i() {
|
|
6489
6529
|
t.value = !0;
|
|
6490
6530
|
}
|
|
6491
|
-
function
|
|
6531
|
+
function u() {
|
|
6492
6532
|
t.value = !1, l.value = !1;
|
|
6493
6533
|
}
|
|
6494
|
-
return (o, s) => (
|
|
6534
|
+
return (o, s) => (d(), b("div", {
|
|
6495
6535
|
class: "bs-tooltip",
|
|
6496
6536
|
"data-position": e.position || void 0,
|
|
6497
6537
|
"data-component": "bs-tooltip",
|
|
6498
6538
|
onMouseenter: i,
|
|
6499
6539
|
onFocusin: i,
|
|
6500
|
-
onMouseleave:
|
|
6501
|
-
onFocusout:
|
|
6540
|
+
onMouseleave: u,
|
|
6541
|
+
onFocusout: u
|
|
6502
6542
|
}, [
|
|
6503
6543
|
V(o.$slots, "default"),
|
|
6504
|
-
e.content ? (
|
|
6544
|
+
e.content ? (d(), b("div", {
|
|
6505
6545
|
key: 0,
|
|
6506
6546
|
class: le(n.value),
|
|
6507
6547
|
id: e.tooltipId,
|
|
6508
6548
|
role: "tooltip"
|
|
6509
|
-
},
|
|
6510
|
-
], 40,
|
|
6549
|
+
}, T(e.content), 11, wo)) : C("", !0)
|
|
6550
|
+
], 40, So));
|
|
6511
6551
|
}
|
|
6512
|
-
},
|
|
6552
|
+
}, Bo = {
|
|
6513
6553
|
accordion: "[data-component=bs-accordion]",
|
|
6514
6554
|
badge: "[data-component=bs-badge]",
|
|
6515
6555
|
banner: "[data-component=bs-banner]",
|
|
@@ -6566,69 +6606,69 @@ const ii = /* @__PURE__ */ fo(po, [["render", bo]]), ho = ["data-variant"], ri =
|
|
|
6566
6606
|
toastHeader: "[data-component=bs-toast-header]",
|
|
6567
6607
|
toaster: "[data-component=bs-toaster]",
|
|
6568
6608
|
tooltip: "[data-component=bs-tooltip]"
|
|
6569
|
-
},
|
|
6570
|
-
bsSelectors:
|
|
6609
|
+
}, fi = {
|
|
6610
|
+
bsSelectors: Bo
|
|
6571
6611
|
};
|
|
6572
6612
|
export {
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6613
|
+
Oo as BsAccordion,
|
|
6614
|
+
$a as BsBadge,
|
|
6615
|
+
Vo as BsBanner,
|
|
6616
|
+
xt as BsButton,
|
|
6617
|
+
Lo as BsCalendar,
|
|
6618
|
+
Eo as BsCaretButton,
|
|
6619
|
+
Do as BsCaretTextButton,
|
|
6620
|
+
Po as BsChartBar,
|
|
6621
|
+
qo as BsCheckbox,
|
|
6622
|
+
Tt as BsCircleButton,
|
|
6623
|
+
ot as BsDropdown,
|
|
6584
6624
|
Et as BsDropdownCombobox,
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6625
|
+
Mo as BsDropdownComboboxField,
|
|
6626
|
+
Dt as BsDropdownMultiselect,
|
|
6627
|
+
it as BsDropdownOption,
|
|
6588
6628
|
qe as BsDropdownOptionBuilder,
|
|
6589
6629
|
Re as BsDropdownOptionList,
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6630
|
+
Pt as BsDropdownWithOptions,
|
|
6631
|
+
Lt as BsDropdownWithToggle,
|
|
6632
|
+
No as BsEmptyState,
|
|
6593
6633
|
ge as BsFieldDetails,
|
|
6594
6634
|
wn as BsFilterButton,
|
|
6595
|
-
|
|
6596
|
-
|
|
6635
|
+
zo as BsFlyout,
|
|
6636
|
+
Fo as BsIconGradientWrapper,
|
|
6597
6637
|
Ie as BsInput,
|
|
6598
6638
|
De as BsInputAddon,
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6639
|
+
Ro as BsInputField,
|
|
6640
|
+
jo as BsInputPhone,
|
|
6641
|
+
Vt as BsInputSearch,
|
|
6642
|
+
Wo as BsInputTypeahead,
|
|
6603
6643
|
ne as BsLabel,
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6644
|
+
Uo as BsLoader,
|
|
6645
|
+
Go as BsModal,
|
|
6646
|
+
rl as BsOverlay,
|
|
6647
|
+
Ho as BsPagination,
|
|
6648
|
+
Ko as BsPill,
|
|
6649
|
+
Yo as BsProfile,
|
|
6650
|
+
Pl as BsProfileDetails,
|
|
6651
|
+
Ot as BsProfileImg,
|
|
6652
|
+
Zo as BsProgressBar,
|
|
6653
|
+
Xo as BsRadio,
|
|
6654
|
+
Rl as BsSelect,
|
|
6655
|
+
Qo as BsSelectField,
|
|
6656
|
+
Jo as BsSelectWithDropdown,
|
|
6657
|
+
ht as BsSpinner,
|
|
6658
|
+
_o as BsSwitch,
|
|
6659
|
+
ei as BsTab,
|
|
6660
|
+
ti as BsTabList,
|
|
6661
|
+
ai as BsTabPanel,
|
|
6662
|
+
no as BsTextarea,
|
|
6663
|
+
ni as BsTextareaField,
|
|
6664
|
+
ro as BsTimePicker,
|
|
6665
|
+
li as BsTimePickerField,
|
|
6666
|
+
oi as BsTimeline,
|
|
6667
|
+
ii as BsToast,
|
|
6668
|
+
ri as BsToastActions,
|
|
6669
|
+
si as BsToastBody,
|
|
6670
|
+
di as BsToastHeader,
|
|
6671
|
+
ui as BsToaster,
|
|
6672
|
+
ci as BsTooltip,
|
|
6673
|
+
fi as bsSelectors
|
|
6634
6674
|
};
|