@wwtdev/bsds-components-vue3 2.6.1 → 2.7.0
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/README.md +56 -0
- package/lib/bsds-components.js +1054 -927
- package/lib/components.css +1 -1
- package/package.json +2 -2
package/lib/bsds-components.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { computed as v, ref as y, onMounted as
|
|
1
|
+
import { computed as v, ref as y, onMounted as Y, onUnmounted as me, shallowRef as Bt, watch as R, defineAsyncComponent as He, openBlock as u, createElementBlock as h, unref as f, createElementVNode as S, renderSlot as P, createBlock as E, resolveDynamicComponent as ee, createCommentVNode as I, toDisplayString as A, createVNode as V, normalizeClass as oe, useAttrs as pe, mergeProps as N, withCtx as O, Fragment as G, toHandlers as Ue, onBeforeUnmount as ut, onBeforeMount as ct, nextTick as xe, createTextVNode as H, createSlots as ft, renderList as _, Teleport as $t, withDirectives as de, Transition as et, vShow as se, provide as ue, inject as ce, withModifiers as It, isRef as kt, useSlots as Tt } from "vue";
|
|
2
2
|
import { v4 as pt } from "uuid";
|
|
3
|
-
import { BsIconCaretDown as Ke, BsIconWarning as Ge, BsIconClose as Ve, BsIconCalendar as vt, BsIconCaretSort as
|
|
4
|
-
import { DatePicker as
|
|
5
|
-
import { Chart as Ne, BarController as
|
|
6
|
-
import { getSupportedCallingCodes as
|
|
3
|
+
import { BsIconCaretDown as Ke, BsIconWarning as Ge, BsIconClose as Ve, BsIconCalendar as vt, BsIconCaretSort as Ct, BsIconSearch as xt, BsIconCaretLeftDouble as At, BsIconCaretLeft as Vt, BsIconCaretRight as Et, BsIconCaretRightDouble as Pt, BsIconActionEllipsis as Ot, BsIconGraphPieEmpty as tt, BsIconCircleStop as Lt, BsIconCircleCheck as qt, BsIconCircleX as Dt, BsIconCircleEllipsis as Mt, BsIconCirclePlay as Nt, BsIconCirclePause as zt, BsIconCircleExclamation as ht, BsIconThumbsUpStroke as Rt } from "@wwtdev/bsds-icons-vue3";
|
|
4
|
+
import { DatePicker as Ft } from "v-calendar";
|
|
5
|
+
import { Chart as Ne, BarController as jt, BarElement as Wt, CategoryScale as Ut, LinearScale as Gt, Legend as Ht, Tooltip as Kt } from "chart.js";
|
|
6
|
+
import { getSupportedCallingCodes as Yt, getRegionCodeForCountryCode as Xt, parsePhoneNumber as at } from "awesome-phonenumber";
|
|
7
7
|
const nt = {
|
|
8
8
|
href: "a",
|
|
9
9
|
linkTo: "a",
|
|
@@ -12,42 +12,42 @@ const nt = {
|
|
|
12
12
|
type: "button"
|
|
13
13
|
};
|
|
14
14
|
function qe(e, n, t = "button") {
|
|
15
|
-
const a =
|
|
16
|
-
const o = a.value === "button",
|
|
17
|
-
return o ? (
|
|
15
|
+
const a = Zt(e, n, t), l = v(() => {
|
|
16
|
+
const o = a.value === "button", s = {};
|
|
17
|
+
return o ? (s.type = n.type || "button", s.autocomplete = "off", e.disabled && (s.disabled = !0)) : e.disabled && (s["aria-disabled"] = "true", s.tabindex = "-1"), s;
|
|
18
18
|
}), i = v(() => {
|
|
19
19
|
const o = { ...n, ...l.value };
|
|
20
20
|
return delete o.href, o;
|
|
21
|
-
}),
|
|
22
|
-
return { rootTag: a, attrsToBind: i, hrefUrl:
|
|
21
|
+
}), d = v(() => e.linkTo || e.href);
|
|
22
|
+
return { rootTag: a, attrsToBind: i, hrefUrl: d };
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
const a = Object.keys(nt).find((l) =>
|
|
24
|
+
function Zt(e, n, t) {
|
|
25
|
+
const a = Object.keys(nt).find((l) => Qt(e, n, l));
|
|
26
26
|
return y(nt[a] || t);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function Qt(e, n, t) {
|
|
29
29
|
return e[t] || n[t];
|
|
30
30
|
}
|
|
31
|
-
const
|
|
31
|
+
const Jt = (e, n) => {
|
|
32
32
|
const t = (a) => {
|
|
33
33
|
e.some((l) => {
|
|
34
34
|
var i;
|
|
35
35
|
return (i = l.value) == null ? void 0 : i.contains(a.target);
|
|
36
36
|
}) || n(a);
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
Y(() => {
|
|
39
39
|
document.addEventListener("click", t);
|
|
40
|
-
}),
|
|
40
|
+
}), me(() => {
|
|
41
41
|
document.removeEventListener("click", t);
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
function De(e) {
|
|
45
45
|
const n = v(() => e.linkTo || e.href || ""), t = v(() => {
|
|
46
|
-
var i,
|
|
47
|
-
return ((
|
|
46
|
+
var i, d;
|
|
47
|
+
return ((d = (i = n.value) == null ? void 0 : i.startsWith) == null ? void 0 : d.call(i, "/")) || !1;
|
|
48
48
|
}), a = v(() => {
|
|
49
|
-
var i,
|
|
50
|
-
return t.value && ((i = e.router) == null ? void 0 : i.navigateTo) || ((
|
|
49
|
+
var i, d;
|
|
50
|
+
return t.value && ((i = e.router) == null ? void 0 : i.navigateTo) || ((d = e.router) == null ? void 0 : d.push) || null;
|
|
51
51
|
});
|
|
52
52
|
function l(i) {
|
|
53
53
|
if (e.disabled) {
|
|
@@ -63,14 +63,14 @@ function De(e) {
|
|
|
63
63
|
function lt(e) {
|
|
64
64
|
return e.split("-").map((a) => a.charAt(0).toUpperCase() + a.slice(1)).join("");
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const Oe = (e, n) => {
|
|
67
67
|
function t(l) {
|
|
68
68
|
if (!l)
|
|
69
69
|
return null;
|
|
70
70
|
const i = l.startsWith("bs-") ? lt(l) : `BsIcon${lt(l)}`;
|
|
71
71
|
return He(async () => {
|
|
72
|
-
const { [i]:
|
|
73
|
-
return
|
|
72
|
+
const { [i]: d } = await import("@wwtdev/bsds-icons-vue3");
|
|
73
|
+
return d;
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
const a = Bt();
|
|
@@ -80,33 +80,33 @@ function Z(e = 1) {
|
|
|
80
80
|
const n = [];
|
|
81
81
|
for (let t = 0; t < e; t++)
|
|
82
82
|
n.push(y(""));
|
|
83
|
-
return
|
|
83
|
+
return Y(() => {
|
|
84
84
|
n.forEach((t) => t.value = `id-${pt()}`);
|
|
85
85
|
}), n;
|
|
86
86
|
}
|
|
87
|
-
const
|
|
87
|
+
const we = (e, n, t = void 0) => {
|
|
88
88
|
const a = (l) => {
|
|
89
|
-
var i,
|
|
90
|
-
((i = e == null ? void 0 : e.includes) != null && i.call(e, l.key) || (
|
|
91
|
-
var
|
|
92
|
-
return (
|
|
89
|
+
var i, d;
|
|
90
|
+
((i = e == null ? void 0 : e.includes) != null && i.call(e, l.key) || (d = e == null ? void 0 : e.some) != null && d.call(e, (o) => {
|
|
91
|
+
var s;
|
|
92
|
+
return (s = o == null ? void 0 : o.test) == null ? void 0 : s.call(o, l.key);
|
|
93
93
|
})) && n(l);
|
|
94
94
|
};
|
|
95
|
-
|
|
95
|
+
Y(() => {
|
|
96
96
|
((t == null ? void 0 : t.value) ?? document).addEventListener("keydown", a);
|
|
97
|
-
}),
|
|
97
|
+
}), me(() => {
|
|
98
98
|
((t == null ? void 0 : t.value) ?? document).removeEventListener("keydown", a);
|
|
99
99
|
});
|
|
100
|
-
},
|
|
100
|
+
}, _t = (e, n, t) => {
|
|
101
101
|
let a = null;
|
|
102
|
-
|
|
102
|
+
Y(() => {
|
|
103
103
|
a = new MutationObserver(n), a.observe(e.value, t);
|
|
104
|
-
}),
|
|
104
|
+
}), me(() => {
|
|
105
105
|
a.disconnect();
|
|
106
106
|
});
|
|
107
107
|
}, Ee = (e) => {
|
|
108
108
|
const n = y(!1);
|
|
109
|
-
return
|
|
109
|
+
return Y(() => {
|
|
110
110
|
e.enterControlled ? n.value = e.enterTrigger : n.value = e.shown;
|
|
111
111
|
}), R(() => e.shown, (t) => {
|
|
112
112
|
n.value = t;
|
|
@@ -115,11 +115,11 @@ const ye = (e, n, t = void 0) => {
|
|
|
115
115
|
}), R(() => e.leaveTrigger, (t) => {
|
|
116
116
|
t && (n.value = !1);
|
|
117
117
|
}), { transition: n };
|
|
118
|
-
},
|
|
118
|
+
}, ea = ["id", "data-stacked"], ta = ["data-open"], aa = ["aria-controls", "aria-expanded"], na = {
|
|
119
119
|
key: 0,
|
|
120
120
|
"data-position": "start",
|
|
121
121
|
style: { display: "inline-flex" }
|
|
122
|
-
},
|
|
122
|
+
}, la = ["id"], oa = ["aria-labelledby", "data-open", "id"], co = {
|
|
123
123
|
__name: "BsAccordion",
|
|
124
124
|
props: {
|
|
125
125
|
controlled: { type: Boolean, default: !1 },
|
|
@@ -136,11 +136,11 @@ const ye = (e, n, t = void 0) => {
|
|
|
136
136
|
},
|
|
137
137
|
emits: ["toggled"],
|
|
138
138
|
setup(e, { emit: n }) {
|
|
139
|
-
const t = e, a = n, l = y(null), i = y(!1), { icon:
|
|
140
|
-
function
|
|
139
|
+
const t = e, a = n, l = y(null), i = y(!1), { icon: d } = Oe(t, "icon"), [o] = Z(), s = v(() => o.value + "-content"), r = v(() => o.value + "-title"), c = v(() => t.openItemId && t.openItemId === o.value || t.openItem === !0), p = v(() => t.controlled ? c.value : i.value);
|
|
140
|
+
function w() {
|
|
141
141
|
a("toggled", o.value), t.controlled || (i.value = !i.value);
|
|
142
142
|
}
|
|
143
|
-
return (g,
|
|
143
|
+
return (g, k) => (u(), h("div", {
|
|
144
144
|
id: f(o),
|
|
145
145
|
ref_key: "containerRef",
|
|
146
146
|
ref: l,
|
|
@@ -153,38 +153,38 @@ const ye = (e, n, t = void 0) => {
|
|
|
153
153
|
"data-open": p.value
|
|
154
154
|
}, [
|
|
155
155
|
S("button", {
|
|
156
|
-
"aria-controls":
|
|
156
|
+
"aria-controls": s.value,
|
|
157
157
|
"aria-expanded": p.value,
|
|
158
158
|
type: "button",
|
|
159
|
-
onClick:
|
|
159
|
+
onClick: w
|
|
160
160
|
}, [
|
|
161
|
-
e.icon || g.$slots.icon ? (
|
|
162
|
-
|
|
163
|
-
e.icon ? (
|
|
161
|
+
e.icon || g.$slots.icon ? (u(), h("span", na, [
|
|
162
|
+
P(g.$slots, "icon", {}, () => [
|
|
163
|
+
e.icon ? (u(), E(ee(f(d) ? f(d) : "span"), { key: 0 })) : I("", !0)
|
|
164
164
|
])
|
|
165
|
-
])) :
|
|
166
|
-
S("span", { id: r.value }, A(e.headerText), 9,
|
|
165
|
+
])) : I("", !0),
|
|
166
|
+
S("span", { id: r.value }, A(e.headerText), 9, la),
|
|
167
167
|
V(f(Ke), {
|
|
168
168
|
size: "md",
|
|
169
169
|
"data-position": "end"
|
|
170
170
|
})
|
|
171
|
-
], 8,
|
|
172
|
-
], 8,
|
|
171
|
+
], 8, aa)
|
|
172
|
+
], 8, ta),
|
|
173
173
|
S("div", {
|
|
174
174
|
"aria-labelledby": r.value,
|
|
175
175
|
class: "bs-accordion-content",
|
|
176
176
|
"data-open": p.value,
|
|
177
|
-
id:
|
|
177
|
+
id: s.value,
|
|
178
178
|
part: "content",
|
|
179
179
|
role: "region"
|
|
180
180
|
}, [
|
|
181
181
|
S("div", null, [
|
|
182
|
-
|
|
182
|
+
P(g.$slots, "default")
|
|
183
183
|
])
|
|
184
|
-
], 8,
|
|
185
|
-
], 8,
|
|
184
|
+
], 8, oa)
|
|
185
|
+
], 8, ea));
|
|
186
186
|
}
|
|
187
|
-
},
|
|
187
|
+
}, ia = ["aria-label", "data-badge-color", "data-count", "data-position", "data-show-zero", "data-variant"], ra = {
|
|
188
188
|
__name: "BsBadge",
|
|
189
189
|
props: {
|
|
190
190
|
/** Pass value to set `data-badge-color`. */
|
|
@@ -232,14 +232,14 @@ const ye = (e, n, t = void 0) => {
|
|
|
232
232
|
},
|
|
233
233
|
setup(e) {
|
|
234
234
|
const n = e, t = y(null), a = v(() => n.count === 0 ? "0" : !n.count || n.dot ? null : n.count > n.countMax ? n.countMax + "+" : n.count.toString()), l = v(() => {
|
|
235
|
-
var
|
|
236
|
-
const i = ((r = (
|
|
237
|
-
if (!
|
|
235
|
+
var s, r;
|
|
236
|
+
const i = ((r = (s = t.value) == null ? void 0 : s.textContent) == null ? void 0 : r.trim()) || "", d = a.value ? a.value + " " : "";
|
|
237
|
+
if (!d && !n.dot)
|
|
238
238
|
return i;
|
|
239
239
|
const o = n.count !== 1 ? "s" : "";
|
|
240
|
-
return `${i ? `${i}, ` : ""}${
|
|
240
|
+
return `${i ? `${i}, ` : ""}${d}${n.label}${o}`;
|
|
241
241
|
});
|
|
242
|
-
return (i,
|
|
242
|
+
return (i, d) => (u(), h("span", {
|
|
243
243
|
ref_key: "hostRef",
|
|
244
244
|
ref: t,
|
|
245
245
|
"aria-label": l.value,
|
|
@@ -252,14 +252,14 @@ const ye = (e, n, t = void 0) => {
|
|
|
252
252
|
"data-variant": e.variant,
|
|
253
253
|
role: "status"
|
|
254
254
|
}, [
|
|
255
|
-
e.variant !== "notext" ?
|
|
256
|
-
], 10,
|
|
255
|
+
e.variant !== "notext" ? P(i.$slots, "default", { key: 0 }) : I("", !0)
|
|
256
|
+
], 10, ia));
|
|
257
257
|
}
|
|
258
|
-
},
|
|
258
|
+
}, da = {
|
|
259
259
|
key: 0,
|
|
260
260
|
role: "alert",
|
|
261
261
|
class: "bs-banner"
|
|
262
|
-
}, sa = { class: "bs-banner-content" },
|
|
262
|
+
}, sa = { class: "bs-banner-content" }, ua = { class: "bs-banner-warning-icon" }, fo = {
|
|
263
263
|
__name: "BsBanner",
|
|
264
264
|
emits: ["dismiss"],
|
|
265
265
|
setup(e, { emit: n }) {
|
|
@@ -267,13 +267,13 @@ const ye = (e, n, t = void 0) => {
|
|
|
267
267
|
function l() {
|
|
268
268
|
a.value = !0, t("dismiss");
|
|
269
269
|
}
|
|
270
|
-
return (i,
|
|
270
|
+
return (i, d) => a.value ? I("", !0) : (u(), h("div", da, [
|
|
271
271
|
S("div", sa, [
|
|
272
|
-
S("div",
|
|
272
|
+
S("div", ua, [
|
|
273
273
|
V(f(Ge), { size: "lg" })
|
|
274
274
|
]),
|
|
275
275
|
S("p", null, [
|
|
276
|
-
|
|
276
|
+
P(i.$slots, "default")
|
|
277
277
|
]),
|
|
278
278
|
S("button", {
|
|
279
279
|
type: "button",
|
|
@@ -285,7 +285,7 @@ const ye = (e, n, t = void 0) => {
|
|
|
285
285
|
])
|
|
286
286
|
]));
|
|
287
287
|
}
|
|
288
|
-
},
|
|
288
|
+
}, ca = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
289
289
|
__name: "BsButton",
|
|
290
290
|
props: {
|
|
291
291
|
variant: { type: String },
|
|
@@ -299,8 +299,8 @@ const ye = (e, n, t = void 0) => {
|
|
|
299
299
|
size: { type: String, validator: (e) => ["sm", "xs", "xxs"].includes(e) }
|
|
300
300
|
},
|
|
301
301
|
setup(e) {
|
|
302
|
-
const n = e, t =
|
|
303
|
-
return (o,
|
|
302
|
+
const n = e, t = pe(), { rootTag: a, attrsToBind: l, hrefUrl: i } = qe(n, t), { onLinkClick: d } = De(n);
|
|
303
|
+
return (o, s) => (u(), E(ee(f(a)), N({
|
|
304
304
|
class: "bs-button",
|
|
305
305
|
"data-component": "bs-button",
|
|
306
306
|
"data-ghost": e.ghostBtn,
|
|
@@ -308,17 +308,17 @@ const ye = (e, n, t = void 0) => {
|
|
|
308
308
|
"data-text": e.textBtn,
|
|
309
309
|
"data-variant": e.variant,
|
|
310
310
|
".href": f(i)
|
|
311
|
-
}, f(l), { onClick: f(
|
|
312
|
-
default:
|
|
313
|
-
|
|
311
|
+
}, f(l), { onClick: f(d) }), {
|
|
312
|
+
default: O(() => [
|
|
313
|
+
P(o.$slots, "default")
|
|
314
314
|
]),
|
|
315
315
|
_: 3
|
|
316
316
|
}, 48, ["data-ghost", "data-size", "data-text", "data-variant", ".href", "onClick"]));
|
|
317
317
|
}
|
|
318
|
-
}),
|
|
318
|
+
}), fa = {
|
|
319
319
|
class: "bs-field-details",
|
|
320
320
|
"data-component": "bs-field-details"
|
|
321
|
-
},
|
|
321
|
+
}, pa = ["id", "data-error"], va = ["data-error"], be = {
|
|
322
322
|
__name: "BsFieldDetails",
|
|
323
323
|
props: {
|
|
324
324
|
/** The number of characters that have been entered by the user. */
|
|
@@ -339,25 +339,25 @@ const ye = (e, n, t = void 0) => {
|
|
|
339
339
|
},
|
|
340
340
|
setup(e) {
|
|
341
341
|
const n = e, t = v(() => n.error && n.errorMsg || n.hint);
|
|
342
|
-
return (a, l) => (
|
|
343
|
-
t.value ? (
|
|
342
|
+
return (a, l) => (u(), h("div", fa, [
|
|
343
|
+
t.value ? (u(), h("span", {
|
|
344
344
|
key: 0,
|
|
345
345
|
id: e.hintId,
|
|
346
346
|
class: "bs-hint",
|
|
347
347
|
"data-error": e.error
|
|
348
|
-
}, A(t.value), 9,
|
|
349
|
-
e.charMax ? (
|
|
348
|
+
}, A(t.value), 9, pa)) : I("", !0),
|
|
349
|
+
e.charMax ? (u(), h("span", {
|
|
350
350
|
key: 1,
|
|
351
351
|
"aria-description": "character count over character limit for the preceding text field",
|
|
352
352
|
class: "bs-character-count",
|
|
353
353
|
"data-error": n.charCount > n.charMax
|
|
354
|
-
}, A(n.charCount || "0") + " / " + A(n.charMax), 9,
|
|
354
|
+
}, A(n.charCount || "0") + " / " + A(n.charMax), 9, va)) : I("", !0)
|
|
355
355
|
]));
|
|
356
356
|
}
|
|
357
|
-
},
|
|
357
|
+
}, ha = ["data-disabled", "for"], ma = /* @__PURE__ */ S("span", {
|
|
358
358
|
"data-required": "true",
|
|
359
359
|
"aria-hidden": "true"
|
|
360
|
-
}, " *", -1),
|
|
360
|
+
}, " *", -1), ba = /* @__PURE__ */ S("span", { class: "visually-hidden" }, "required", -1), te = {
|
|
361
361
|
__name: "BsLabel",
|
|
362
362
|
props: {
|
|
363
363
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -366,22 +366,22 @@ const ye = (e, n, t = void 0) => {
|
|
|
366
366
|
required: { type: Boolean, default: !1 }
|
|
367
367
|
},
|
|
368
368
|
setup(e) {
|
|
369
|
-
return (n, t) => (
|
|
369
|
+
return (n, t) => (u(), h("label", {
|
|
370
370
|
class: oe(["bs-label", e.hide ? "visually-hidden" : ""]),
|
|
371
371
|
"data-component": "bs-label",
|
|
372
372
|
"data-disabled": e.disabled,
|
|
373
373
|
for: e.for
|
|
374
374
|
}, [
|
|
375
375
|
S("span", null, [
|
|
376
|
-
|
|
376
|
+
P(n.$slots, "default")
|
|
377
377
|
]),
|
|
378
|
-
e.required ? (
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
], 64)) :
|
|
382
|
-
], 10,
|
|
378
|
+
e.required ? (u(), h(G, { key: 0 }, [
|
|
379
|
+
ma,
|
|
380
|
+
ba
|
|
381
|
+
], 64)) : I("", !0)
|
|
382
|
+
], 10, ha));
|
|
383
383
|
}
|
|
384
|
-
},
|
|
384
|
+
}, ga = ["data-error", "id", "value"], Be = {
|
|
385
385
|
__name: "BsInput",
|
|
386
386
|
props: {
|
|
387
387
|
error: {
|
|
@@ -396,21 +396,21 @@ const ye = (e, n, t = void 0) => {
|
|
|
396
396
|
},
|
|
397
397
|
emits: ["update:modelValue"],
|
|
398
398
|
setup(e, { emit: n }) {
|
|
399
|
-
const t = e, a = n, l =
|
|
400
|
-
function
|
|
401
|
-
const
|
|
402
|
-
a("update:modelValue",
|
|
399
|
+
const t = e, a = n, l = pe(), i = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
400
|
+
function d(o) {
|
|
401
|
+
const s = l.type === "number" ? parseInt(o.target.value) : o.target.value;
|
|
402
|
+
a("update:modelValue", s);
|
|
403
403
|
}
|
|
404
|
-
return (o,
|
|
404
|
+
return (o, s) => (u(), h("input", N({
|
|
405
405
|
class: "bs-input",
|
|
406
406
|
"data-component": "bs-input",
|
|
407
407
|
"data-error": e.error,
|
|
408
408
|
id: o.$attrs.id || e.inputId,
|
|
409
409
|
value: e.value || e.modelValue,
|
|
410
|
-
onInput:
|
|
411
|
-
}, i.value), null, 16,
|
|
410
|
+
onInput: d
|
|
411
|
+
}, i.value), null, 16, ga));
|
|
412
412
|
}
|
|
413
|
-
},
|
|
413
|
+
}, ya = ["data-autopad", "data-autosize-icons", "data-disabled", "data-error", "data-variant", "data-multifocus"], Pe = {
|
|
414
414
|
__name: "BsInputAddon",
|
|
415
415
|
props: {
|
|
416
416
|
autopad: { type: Boolean, default: !1 },
|
|
@@ -421,7 +421,7 @@ const ye = (e, n, t = void 0) => {
|
|
|
421
421
|
variant: { type: String, validator: (e) => ["inner-bordered", "combobox"].includes(e) }
|
|
422
422
|
},
|
|
423
423
|
setup(e) {
|
|
424
|
-
return (n, t) => (
|
|
424
|
+
return (n, t) => (u(), h("div", {
|
|
425
425
|
class: "bs-input-addon",
|
|
426
426
|
"data-component": "bs-input-addon",
|
|
427
427
|
"data-autopad": e.autopad,
|
|
@@ -431,10 +431,10 @@ const ye = (e, n, t = void 0) => {
|
|
|
431
431
|
"data-variant": e.variant,
|
|
432
432
|
"data-multifocus": e.multifocus
|
|
433
433
|
}, [
|
|
434
|
-
|
|
435
|
-
], 8,
|
|
434
|
+
P(n.$slots, "default")
|
|
435
|
+
], 8, ya));
|
|
436
436
|
}
|
|
437
|
-
},
|
|
437
|
+
}, Sa = {
|
|
438
438
|
__name: "BsInputDateSingle",
|
|
439
439
|
props: {
|
|
440
440
|
disabled: {
|
|
@@ -467,13 +467,13 @@ const ye = (e, n, t = void 0) => {
|
|
|
467
467
|
}
|
|
468
468
|
},
|
|
469
469
|
setup(e) {
|
|
470
|
-
return (n, t) => (
|
|
470
|
+
return (n, t) => (u(), E(Pe, {
|
|
471
471
|
disabled: e.disabled,
|
|
472
472
|
error: e.error
|
|
473
473
|
}, {
|
|
474
|
-
default:
|
|
474
|
+
default: O(() => [
|
|
475
475
|
V(f(vt)),
|
|
476
|
-
V(
|
|
476
|
+
V(Be, N({
|
|
477
477
|
"data-autowidth": "",
|
|
478
478
|
disabled: e.disabled,
|
|
479
479
|
id: e.inputId,
|
|
@@ -495,7 +495,7 @@ function Ae(e, n, t) {
|
|
|
495
495
|
}, n);
|
|
496
496
|
};
|
|
497
497
|
}
|
|
498
|
-
const
|
|
498
|
+
const wa = ["disabled", "id", "model-value"], Ba = ["disabled", "id", "model-value"], $a = {
|
|
499
499
|
__name: "BsInputDateRange",
|
|
500
500
|
props: {
|
|
501
501
|
disabled: {
|
|
@@ -537,21 +537,21 @@ const Sa = ["disabled", "id", "model-value"], Ba = ["disabled", "id", "model-val
|
|
|
537
537
|
const c = new Event("change", { bubbles: !0, cancelable: !0 });
|
|
538
538
|
r.dispatchEvent(c);
|
|
539
539
|
}
|
|
540
|
-
function
|
|
541
|
-
const { value: c } = r.target, [p,
|
|
542
|
-
a.value.value = p || "", l.value.value =
|
|
540
|
+
function d(r) {
|
|
541
|
+
const { value: c } = r.target, [p, w] = c.split(/ to | - /);
|
|
542
|
+
a.value.value = p || "", l.value.value = w || "", i(a.value), i(l.value);
|
|
543
543
|
}
|
|
544
|
-
const o = Ae(
|
|
545
|
-
function
|
|
544
|
+
const o = Ae(d, 1e3);
|
|
545
|
+
function s(r) {
|
|
546
546
|
t("ui-input"), o(r);
|
|
547
547
|
}
|
|
548
|
-
return (r, c) => (
|
|
548
|
+
return (r, c) => (u(), E(Pe, {
|
|
549
549
|
disabled: e.disabled,
|
|
550
550
|
error: e.error
|
|
551
551
|
}, {
|
|
552
|
-
default:
|
|
552
|
+
default: O(() => [
|
|
553
553
|
V(f(vt)),
|
|
554
|
-
V(
|
|
554
|
+
V(Be, {
|
|
555
555
|
"data-autowidth": "",
|
|
556
556
|
disabled: e.disabled,
|
|
557
557
|
id: e.inputId,
|
|
@@ -559,8 +559,8 @@ const Sa = ["disabled", "id", "model-value"], Ba = ["disabled", "id", "model-val
|
|
|
559
559
|
placeholder: e.placeholder,
|
|
560
560
|
required: e.required,
|
|
561
561
|
onFocusin: c[0] || (c[0] = (p) => r.$emit("ui-focusin")),
|
|
562
|
-
onInput:
|
|
563
|
-
onChange:
|
|
562
|
+
onInput: s,
|
|
563
|
+
onChange: d
|
|
564
564
|
}, null, 8, ["disabled", "id", "model-value", "placeholder", "required"]),
|
|
565
565
|
S("input", N({
|
|
566
566
|
ref_key: "hiddenStart",
|
|
@@ -569,7 +569,7 @@ const Sa = ["disabled", "id", "model-value"], Ba = ["disabled", "id", "model-val
|
|
|
569
569
|
disabled: e.disabled,
|
|
570
570
|
id: `${e.inputId}-start`,
|
|
571
571
|
"model-value": e.inputValue.start
|
|
572
|
-
}, Ue(e.listeners.start, !0)), null, 16,
|
|
572
|
+
}, Ue(e.listeners.start, !0)), null, 16, wa),
|
|
573
573
|
S("input", N({
|
|
574
574
|
ref_key: "hiddenEnd",
|
|
575
575
|
ref: l,
|
|
@@ -583,10 +583,10 @@ const Sa = ["disabled", "id", "model-value"], Ba = ["disabled", "id", "model-val
|
|
|
583
583
|
}, 8, ["disabled", "error"]));
|
|
584
584
|
}
|
|
585
585
|
};
|
|
586
|
-
function
|
|
586
|
+
function Ia(e) {
|
|
587
587
|
function n(l) {
|
|
588
|
-
var i,
|
|
589
|
-
return ((
|
|
588
|
+
var i, d;
|
|
589
|
+
return ((d = (i = l == null ? void 0 : l.classList) == null ? void 0 : i.contains) == null ? void 0 : d.call(i, "vc-arrow")) && (l.classList.contains("vc-prev") || l.classList.contains("vc-next"));
|
|
590
590
|
}
|
|
591
591
|
function t(l) {
|
|
592
592
|
return l === " " || l === "Spacebar" || l === "Enter";
|
|
@@ -594,7 +594,7 @@ function $a(e) {
|
|
|
594
594
|
function a(l) {
|
|
595
595
|
n(l == null ? void 0 : l.target) && t(l == null ? void 0 : l.key) && l.preventDefault();
|
|
596
596
|
}
|
|
597
|
-
|
|
597
|
+
Y(() => {
|
|
598
598
|
var l, i;
|
|
599
599
|
(i = (l = e.value) == null ? void 0 : l.addEventListener) == null || i.call(l, "keydown", a);
|
|
600
600
|
}), ut(() => {
|
|
@@ -616,7 +616,7 @@ const Ye = [
|
|
|
616
616
|
"form",
|
|
617
617
|
"id",
|
|
618
618
|
"name"
|
|
619
|
-
],
|
|
619
|
+
], ka = [
|
|
620
620
|
"aria-describedby",
|
|
621
621
|
"aria-label",
|
|
622
622
|
"autocomplete",
|
|
@@ -626,7 +626,7 @@ const Ye = [
|
|
|
626
626
|
"multiple",
|
|
627
627
|
"name",
|
|
628
628
|
"size"
|
|
629
|
-
],
|
|
629
|
+
], Ta = [
|
|
630
630
|
"aria-describedby",
|
|
631
631
|
"aria-label",
|
|
632
632
|
"autocapitalize",
|
|
@@ -644,7 +644,7 @@ const Ye = [
|
|
|
644
644
|
"rows",
|
|
645
645
|
"spellcheck",
|
|
646
646
|
"wrap"
|
|
647
|
-
],
|
|
647
|
+
], fe = [
|
|
648
648
|
"aria-describedby",
|
|
649
649
|
"aria-label",
|
|
650
650
|
"autocapitalize",
|
|
@@ -671,7 +671,7 @@ function K(e, n = []) {
|
|
|
671
671
|
n.includes(l) ? t[l] = e[l] : a[l] = e[l];
|
|
672
672
|
}), { filtered: t, remaining: a };
|
|
673
673
|
}
|
|
674
|
-
const
|
|
674
|
+
const Ca = ["data-range"], it = "(min-width: 752px)", po = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
675
675
|
__name: "BsCalendar",
|
|
676
676
|
props: {
|
|
677
677
|
disabled: {
|
|
@@ -738,7 +738,7 @@ const Ta = ["data-range"], it = "(min-width: 752px)", po = /* @__PURE__ */ Objec
|
|
|
738
738
|
},
|
|
739
739
|
emits: ["update:modelValue"],
|
|
740
740
|
setup(e, { emit: n }) {
|
|
741
|
-
const t = e, a = y(null), l = y(1), i = y(null), [
|
|
741
|
+
const t = e, a = y(null), l = y(1), i = y(null), [d, o] = Z(2), s = y(1), { filtered: r, remaining: c } = K(pe(), [
|
|
742
742
|
"attributes",
|
|
743
743
|
"expanded",
|
|
744
744
|
"first-day-of-week",
|
|
@@ -746,22 +746,24 @@ const Ta = ["data-range"], it = "(min-width: 752px)", po = /* @__PURE__ */ Objec
|
|
|
746
746
|
"masks",
|
|
747
747
|
"rows",
|
|
748
748
|
"trim-weeks"
|
|
749
|
-
]), p = v(() => t.inputId ||
|
|
750
|
-
|
|
749
|
+
]), p = v(() => t.inputId || d.value), w = v(() => ({ range: t.isRange })), g = v(() => !!(t.error && t.errorMsg || t.hint)), k = v(() => t.step), C = v(() => t.variant);
|
|
750
|
+
Ia(i), ot(
|
|
751
751
|
it,
|
|
752
752
|
(b) => l.value = b != null && b.matches && C.value == "2-col" ? 2 : 1,
|
|
753
753
|
[C]
|
|
754
754
|
), ot(
|
|
755
755
|
it,
|
|
756
|
-
(b) =>
|
|
757
|
-
[
|
|
758
|
-
),
|
|
756
|
+
(b) => s.value = b != null && b.matches && C.value == "2-col" ? k.value : 1,
|
|
757
|
+
[k, C]
|
|
758
|
+
), Y(() => {
|
|
759
|
+
t.inputMode || m();
|
|
760
|
+
}), R(() => {
|
|
759
761
|
var b, q;
|
|
760
762
|
return (q = (b = a.value) == null ? void 0 : b.popoverRef) == null ? void 0 : q.isVisible;
|
|
761
763
|
}, (b) => {
|
|
762
764
|
b && xe(m);
|
|
763
765
|
});
|
|
764
|
-
function
|
|
766
|
+
function B(b) {
|
|
765
767
|
return t.isRange && b.start && b.end ? `${b.start} to ${b.end}` : !t.isRange && b ? b : "";
|
|
766
768
|
}
|
|
767
769
|
function T(b) {
|
|
@@ -771,27 +773,27 @@ const Ta = ["data-range"], it = "(min-width: 752px)", po = /* @__PURE__ */ Objec
|
|
|
771
773
|
const b = i.value.querySelector("button.vc-prev"), q = i.value.querySelector("button.vc-next");
|
|
772
774
|
b && b.setAttribute("aria-label", "Previous month"), q && q.setAttribute("aria-label", "Next month");
|
|
773
775
|
}
|
|
774
|
-
return (b, q) => (
|
|
776
|
+
return (b, q) => (u(), h("div", N({
|
|
775
777
|
ref_key: "container",
|
|
776
778
|
ref: i,
|
|
777
779
|
class: "bs-calendar",
|
|
778
780
|
"data-range": e.isRange,
|
|
779
781
|
onFocusout: T
|
|
780
782
|
}, f(c)), [
|
|
781
|
-
e.label || b.$slots.label ? (
|
|
783
|
+
e.label || b.$slots.label ? (u(), E(te, {
|
|
782
784
|
key: 0,
|
|
783
785
|
for: p.value,
|
|
784
786
|
disabled: e.disabled,
|
|
785
787
|
required: e.required
|
|
786
788
|
}, {
|
|
787
|
-
default:
|
|
788
|
-
|
|
789
|
+
default: O(() => [
|
|
790
|
+
P(b.$slots, "label", {}, () => [
|
|
789
791
|
H(A(e.label), 1)
|
|
790
792
|
])
|
|
791
793
|
]),
|
|
792
794
|
_: 3
|
|
793
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
794
|
-
V(f(
|
|
795
|
+
}, 8, ["for", "disabled", "required"])) : I("", !0),
|
|
796
|
+
V(f(Ft), N({
|
|
795
797
|
ref_key: "calendar",
|
|
796
798
|
ref: a,
|
|
797
799
|
columns: l.value,
|
|
@@ -800,34 +802,34 @@ const Ta = ["data-range"], it = "(min-width: 752px)", po = /* @__PURE__ */ Objec
|
|
|
800
802
|
"min-date": e.minDate,
|
|
801
803
|
mode: "date",
|
|
802
804
|
"model-value": e.modelValue,
|
|
803
|
-
"model-modifiers":
|
|
805
|
+
"model-modifiers": w.value,
|
|
804
806
|
popover: { visibility: "focus" },
|
|
805
807
|
rows: 1,
|
|
806
|
-
step:
|
|
808
|
+
step: s.value,
|
|
807
809
|
"onUpdate:modelValue": q[0] || (q[0] = (M) => b.$emit("update:modelValue", M))
|
|
808
810
|
}, f(r)), ft({ _: 2 }, [
|
|
809
811
|
e.inputMode ? {
|
|
810
812
|
name: "default",
|
|
811
|
-
fn:
|
|
812
|
-
e.isRange ? (
|
|
813
|
+
fn: O(({ inputValue: M, inputEvents: z, showPopover: W }) => [
|
|
814
|
+
e.isRange ? (u(), E($a, {
|
|
813
815
|
key: 1,
|
|
814
816
|
disabled: e.disabled,
|
|
815
817
|
error: e.error,
|
|
816
818
|
"input-id": p.value,
|
|
817
819
|
"input-value": M,
|
|
818
|
-
"input-value-fmt":
|
|
820
|
+
"input-value-fmt": B(M),
|
|
819
821
|
listeners: z,
|
|
820
822
|
placeholder: e.placeholder,
|
|
821
823
|
required: e.required,
|
|
822
824
|
onUiFocusin: W,
|
|
823
825
|
onUiInput: W
|
|
824
|
-
}, null, 8, ["disabled", "error", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (
|
|
826
|
+
}, null, 8, ["disabled", "error", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (u(), E(Sa, {
|
|
825
827
|
key: 0,
|
|
826
828
|
disabled: e.disabled,
|
|
827
829
|
error: e.error,
|
|
828
830
|
"input-id": p.value,
|
|
829
831
|
listeners: z,
|
|
830
|
-
"model-value":
|
|
832
|
+
"model-value": B(M),
|
|
831
833
|
placeholder: e.placeholder,
|
|
832
834
|
required: e.required
|
|
833
835
|
}, null, 8, ["disabled", "error", "input-id", "listeners", "model-value", "placeholder", "required"]))
|
|
@@ -835,16 +837,16 @@ const Ta = ["data-range"], it = "(min-width: 752px)", po = /* @__PURE__ */ Objec
|
|
|
835
837
|
key: "0"
|
|
836
838
|
} : void 0
|
|
837
839
|
]), 1040, ["columns", "disabled-dates", "max-date", "min-date", "model-value", "model-modifiers", "step"]),
|
|
838
|
-
g.value ? (
|
|
840
|
+
g.value ? (u(), E(be, {
|
|
839
841
|
key: 1,
|
|
840
842
|
error: e.error,
|
|
841
843
|
"error-msg": e.errorMsg,
|
|
842
844
|
hint: e.hint,
|
|
843
845
|
"hint-id": f(o)
|
|
844
|
-
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) :
|
|
845
|
-
], 16,
|
|
846
|
+
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : I("", !0)
|
|
847
|
+
], 16, Ca));
|
|
846
848
|
}
|
|
847
|
-
}),
|
|
849
|
+
}), xa = { "data-component": "bs-chart-table" }, Aa = ["summary"], Va = ["colspan"], Ea = /* @__PURE__ */ S("th", { scope: "col" }, " Dataset ", -1), Pa = { scope: "row" }, Oa = {
|
|
848
850
|
__name: "BsChartTable",
|
|
849
851
|
props: {
|
|
850
852
|
data: {
|
|
@@ -863,33 +865,33 @@ const Ta = ["data-range"], it = "(min-width: 752px)", po = /* @__PURE__ */ Objec
|
|
|
863
865
|
setup(e) {
|
|
864
866
|
return (n, t) => {
|
|
865
867
|
var a;
|
|
866
|
-
return
|
|
868
|
+
return u(), h("div", xa, [
|
|
867
869
|
S("table", { summary: e.tableTitle }, [
|
|
868
870
|
S("thead", null, [
|
|
869
871
|
S("tr", null, [
|
|
870
872
|
S("th", {
|
|
871
873
|
colspan: ((a = e.dataIdxLabels) == null ? void 0 : a.length) + 1
|
|
872
|
-
}, A(e.tableTitle), 9,
|
|
874
|
+
}, A(e.tableTitle), 9, Va)
|
|
873
875
|
]),
|
|
874
876
|
S("tr", null, [
|
|
875
|
-
|
|
876
|
-
(
|
|
877
|
+
Ea,
|
|
878
|
+
(u(!0), h(G, null, _(e.dataIdxLabels, (l) => (u(), h("th", {
|
|
877
879
|
key: l,
|
|
878
880
|
scope: "col"
|
|
879
881
|
}, A(l), 1))), 128))
|
|
880
882
|
])
|
|
881
883
|
]),
|
|
882
884
|
S("tbody", null, [
|
|
883
|
-
(
|
|
885
|
+
(u(!0), h(G, null, _(e.data, (l) => (u(), h("tr", {
|
|
884
886
|
key: l.label
|
|
885
887
|
}, [
|
|
886
|
-
S("th",
|
|
887
|
-
(
|
|
888
|
-
key: `${i}${
|
|
888
|
+
S("th", Pa, A(l.label), 1),
|
|
889
|
+
(u(!0), h(G, null, _(l.data, (i, d) => (u(), h("td", {
|
|
890
|
+
key: `${i}${d}`
|
|
889
891
|
}, A(i), 1))), 128))
|
|
890
892
|
]))), 128))
|
|
891
893
|
])
|
|
892
|
-
], 8,
|
|
894
|
+
], 8, Aa)
|
|
893
895
|
]);
|
|
894
896
|
};
|
|
895
897
|
}
|
|
@@ -899,16 +901,16 @@ const Ta = ["data-range"], it = "(min-width: 752px)", po = /* @__PURE__ */ Objec
|
|
|
899
901
|
e.innerHTML = "", e.style.setProperty("--legend-padding", `${n.scales.x.left}px`), n.options.plugins.legend.labels.generateLabels(n).forEach((a) => {
|
|
900
902
|
const l = document.createElement("li");
|
|
901
903
|
l.onclick = () => {
|
|
902
|
-
const { type:
|
|
903
|
-
|
|
904
|
+
const { type: s } = n.config._config;
|
|
905
|
+
s === "pie" || s === "doughnut" ? n.toggleDataVisibility(a.index) : n.setDatasetVisibility(a.datasetIndex, !n.isDatasetVisible(a.datasetIndex)), n.update();
|
|
904
906
|
};
|
|
905
907
|
const i = document.createElement("span");
|
|
906
908
|
i.style.setProperty("--item-box-fill", a.fillStyle), i.style.setProperty("--item-box-stroke", a.strokeStyle);
|
|
907
|
-
const
|
|
908
|
-
o.style.setProperty("--item-text-color", "var(--bs-ink-base)"), o.style.setProperty("--item-text-decoration", a.hidden ? "line-through" : "none"), o.appendChild(
|
|
909
|
+
const d = document.createTextNode(a.text), o = document.createElement("p");
|
|
910
|
+
o.style.setProperty("--item-text-color", "var(--bs-ink-base)"), o.style.setProperty("--item-text-decoration", a.hidden ? "line-through" : "none"), o.appendChild(d), l.appendChild(i), l.appendChild(o), e.appendChild(l);
|
|
909
911
|
});
|
|
910
912
|
}
|
|
911
|
-
}),
|
|
913
|
+
}), qa = ({ type: e, datasets: n, labels: t, tooltips: a }) => ({
|
|
912
914
|
type: e,
|
|
913
915
|
data: {
|
|
914
916
|
datasets: n,
|
|
@@ -927,7 +929,7 @@ const Ta = ["data-range"], it = "(min-width: 752px)", po = /* @__PURE__ */ Objec
|
|
|
927
929
|
responsive: !0
|
|
928
930
|
}
|
|
929
931
|
});
|
|
930
|
-
function
|
|
932
|
+
function Da(e) {
|
|
931
933
|
const n = [
|
|
932
934
|
"rgba(209, 26, 111, 1)",
|
|
933
935
|
"rgba(130, 18, 196, 1)",
|
|
@@ -940,10 +942,10 @@ function qa(e) {
|
|
|
940
942
|
], t = n[e % n.length];
|
|
941
943
|
return e >= n.length ? t.replace("1)", "0.5)") : t;
|
|
942
944
|
}
|
|
943
|
-
const
|
|
945
|
+
const Ma = {
|
|
944
946
|
class: "bs-chart-bar",
|
|
945
947
|
"data-component": "bs-chart-bar"
|
|
946
|
-
},
|
|
948
|
+
}, Na = ["aria-label"], za = ["data-hidden"], vo = {
|
|
947
949
|
__name: "BsChartBar",
|
|
948
950
|
props: {
|
|
949
951
|
chartTitle: {
|
|
@@ -1001,11 +1003,11 @@ const Da = {
|
|
|
1001
1003
|
let l;
|
|
1002
1004
|
const i = v(() => {
|
|
1003
1005
|
const c = {
|
|
1004
|
-
datasets:
|
|
1006
|
+
datasets: d.value,
|
|
1005
1007
|
labels: n.dataIdxLabels,
|
|
1006
1008
|
type: "bar",
|
|
1007
1009
|
tooltips: n.showTooltips
|
|
1008
|
-
}, p =
|
|
1010
|
+
}, p = qa(c);
|
|
1009
1011
|
return p.plugins = [La(a.value)], p.options.scales = {
|
|
1010
1012
|
x: {
|
|
1011
1013
|
grid: {
|
|
@@ -1028,18 +1030,18 @@ const Da = {
|
|
|
1028
1030
|
}
|
|
1029
1031
|
}
|
|
1030
1032
|
}, p;
|
|
1031
|
-
}),
|
|
1033
|
+
}), d = v(() => n.data.map((c, p) => ({
|
|
1032
1034
|
...c,
|
|
1033
|
-
backgroundColor:
|
|
1035
|
+
backgroundColor: Da(p),
|
|
1034
1036
|
categoryPercentage: n.data.length > 1 ? 0.5 : 0.33
|
|
1035
|
-
}))), o = v(() => n.chartTitle || `${n.yLabel} / ${n.xLabel}`),
|
|
1037
|
+
}))), o = v(() => n.chartTitle || `${n.yLabel} / ${n.xLabel}`), s = Ae(function(c, p) {
|
|
1036
1038
|
!l || c === p || (l.options = i.value.options, l.update());
|
|
1037
1039
|
}, 100), r = Ae(function() {
|
|
1038
1040
|
l && (l.data = i.value.data, l.update());
|
|
1039
1041
|
}, 100);
|
|
1040
|
-
return
|
|
1041
|
-
Ne.register(
|
|
1042
|
-
}), R(() => n.showLegend,
|
|
1042
|
+
return Y(() => {
|
|
1043
|
+
Ne.register(jt, Wt, Ut, Gt, Ht, Kt), Ne.defaults.font.family = "'Roobert', sans-serif", l = new Ne(t.value, i.value);
|
|
1044
|
+
}), R(() => n.showLegend, s), R(() => n.showTooltips, s), R(() => n.showXGrid, s), R(() => n.showYGrid, s), R(() => n.stacked, s), R(() => n.xLabel, s), R(() => n.yLabel, s), R(() => n.data, r), R(() => n.dataIdxLabels, r), (c, p) => (u(), h("div", Ma, [
|
|
1043
1045
|
S("figure", null, [
|
|
1044
1046
|
S("div", null, [
|
|
1045
1047
|
S("canvas", {
|
|
@@ -1047,10 +1049,10 @@ const Da = {
|
|
|
1047
1049
|
ref_key: "canvas",
|
|
1048
1050
|
ref: t,
|
|
1049
1051
|
role: "img"
|
|
1050
|
-
}, null, 8,
|
|
1052
|
+
}, null, 8, Na)
|
|
1051
1053
|
]),
|
|
1052
1054
|
S("div", null, [
|
|
1053
|
-
V(
|
|
1055
|
+
V(Oa, {
|
|
1054
1056
|
data: e.data,
|
|
1055
1057
|
"data-idx-labels": e.dataIdxLabels,
|
|
1056
1058
|
"table-title": o.value
|
|
@@ -1062,12 +1064,12 @@ const Da = {
|
|
|
1062
1064
|
ref_key: "legendList",
|
|
1063
1065
|
ref: a
|
|
1064
1066
|
}, null, 512)
|
|
1065
|
-
], 8,
|
|
1067
|
+
], 8, za)
|
|
1066
1068
|
])
|
|
1067
1069
|
])
|
|
1068
1070
|
]));
|
|
1069
1071
|
}
|
|
1070
|
-
},
|
|
1072
|
+
}, Ra = ["data-disabled", "data-error", "data-size"], Fa = ["checked", "data-error", "disabled", "id", "required", "value"], ho = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1071
1073
|
__name: "BsCheckbox",
|
|
1072
1074
|
props: {
|
|
1073
1075
|
/** Sets the label. */
|
|
@@ -1130,54 +1132,56 @@ const Da = {
|
|
|
1130
1132
|
},
|
|
1131
1133
|
emits: ["update:modelValue"],
|
|
1132
1134
|
setup(e, { emit: n }) {
|
|
1133
|
-
const t = e, a = n, [l] = Z(), i = v(() => Ye.concat(t.passAttrs.split(","))),
|
|
1134
|
-
function
|
|
1135
|
-
|
|
1135
|
+
const t = e, a = n, [l] = Z(), i = v(() => Ye.concat(t.passAttrs.split(","))), d = y(null), o = v(() => t.inputId || l.value), s = v(() => t.checked || p.value), r = v(() => t.indeterminate || t.checkedPartially), c = v(() => Array.isArray(t.modelValue) && t.value), p = v(() => c.value && t.modelValue.includes(t.value) || typeof t.modelValue == "boolean" && t.modelValue);
|
|
1136
|
+
function w() {
|
|
1137
|
+
d.value && (d.value.indeterminate = r.value && !s.value);
|
|
1136
1138
|
}
|
|
1137
|
-
function g(
|
|
1138
|
-
a("update:modelValue",
|
|
1139
|
+
function g(B) {
|
|
1140
|
+
a("update:modelValue", B);
|
|
1139
1141
|
}
|
|
1140
|
-
function
|
|
1142
|
+
function k(B) {
|
|
1141
1143
|
const T = [...t.modelValue];
|
|
1142
|
-
|
|
1144
|
+
B ? T.push(t.value) : T.splice(T.indexOf(t.value), 1), a("update:modelValue", T);
|
|
1143
1145
|
}
|
|
1144
|
-
function C(
|
|
1145
|
-
const { checked: T } =
|
|
1146
|
-
c.value ?
|
|
1146
|
+
function C(B) {
|
|
1147
|
+
const { checked: T } = B.target;
|
|
1148
|
+
c.value ? k(T) : g(T);
|
|
1147
1149
|
}
|
|
1148
|
-
return R(
|
|
1150
|
+
return R(s, w), R(r, w), Y(w), (B, T) => (u(), h("div", N({
|
|
1149
1151
|
class: "bs-boolean",
|
|
1150
1152
|
"data-component": "bs-checkbox",
|
|
1153
|
+
"data-disabled": e.disabled,
|
|
1154
|
+
"data-error": e.error,
|
|
1151
1155
|
"data-size": e.size
|
|
1152
|
-
}, f(K)(
|
|
1156
|
+
}, f(K)(B.$attrs, i.value).remaining), [
|
|
1153
1157
|
S("input", N({
|
|
1154
1158
|
ref_key: "inputEl",
|
|
1155
|
-
ref:
|
|
1156
|
-
checked:
|
|
1159
|
+
ref: d,
|
|
1160
|
+
checked: s.value,
|
|
1157
1161
|
"data-error": e.error,
|
|
1158
1162
|
disabled: e.disabled,
|
|
1159
|
-
id:
|
|
1163
|
+
id: B.$attrs.id || o.value,
|
|
1160
1164
|
required: e.required,
|
|
1161
1165
|
value: e.value || "on",
|
|
1162
1166
|
type: "checkbox",
|
|
1163
1167
|
onChange: C
|
|
1164
|
-
}, f(K)(
|
|
1165
|
-
e.label ||
|
|
1168
|
+
}, f(K)(B.$attrs, i.value).filtered), null, 16, Fa),
|
|
1169
|
+
e.label || B.$slots.label ? (u(), E(te, {
|
|
1166
1170
|
key: 0,
|
|
1167
|
-
for:
|
|
1171
|
+
for: B.$attrs.id || o.value,
|
|
1168
1172
|
disabled: e.disabled,
|
|
1169
1173
|
required: e.required
|
|
1170
1174
|
}, {
|
|
1171
|
-
default:
|
|
1172
|
-
|
|
1175
|
+
default: O(() => [
|
|
1176
|
+
P(B.$slots, "label", {}, () => [
|
|
1173
1177
|
H(A(e.label), 1)
|
|
1174
1178
|
])
|
|
1175
1179
|
]),
|
|
1176
1180
|
_: 3
|
|
1177
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
1178
|
-
], 16,
|
|
1181
|
+
}, 8, ["for", "disabled", "required"])) : I("", !0)
|
|
1182
|
+
], 16, Ra));
|
|
1179
1183
|
}
|
|
1180
|
-
}),
|
|
1184
|
+
}), ja = { key: 0 }, Wa = { class: "bs-circle-button-icon" }, Ua = { key: 1 }, mo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1181
1185
|
__name: "BsCircleButton",
|
|
1182
1186
|
props: {
|
|
1183
1187
|
disabled: {
|
|
@@ -1223,11 +1227,11 @@ const Da = {
|
|
|
1223
1227
|
}
|
|
1224
1228
|
},
|
|
1225
1229
|
setup(e) {
|
|
1226
|
-
const n = e, t =
|
|
1230
|
+
const n = e, t = pe(), { rootTag: a, attrsToBind: l, hrefUrl: i } = qe(n, t), { icon: d } = Oe(n, "icon"), { onLinkClick: o } = De(n), s = v(() => n.textBtn ? {} : n.href ? { title: n.label } : { "aria-label": n.label }), r = v(() => {
|
|
1227
1231
|
if (n.hoverEffect)
|
|
1228
1232
|
return n.iconPosition;
|
|
1229
1233
|
}), c = v(() => n.textBtn && n.iconPosition !== "left"), p = v(() => n.textBtn && n.iconPosition === "left");
|
|
1230
|
-
return (
|
|
1234
|
+
return (w, g) => (u(), E(ee(f(a)), N({
|
|
1231
1235
|
class: "bs-circle-button",
|
|
1232
1236
|
"data-disabled": e.disabled,
|
|
1233
1237
|
"data-direction": r.value,
|
|
@@ -1235,20 +1239,20 @@ const Da = {
|
|
|
1235
1239
|
"data-size": e.size,
|
|
1236
1240
|
"data-text": e.textBtn,
|
|
1237
1241
|
".href": f(i)
|
|
1238
|
-
}, { ...f(l), ...
|
|
1239
|
-
default:
|
|
1240
|
-
c.value ? (
|
|
1241
|
-
S("span",
|
|
1242
|
-
|
|
1243
|
-
(
|
|
1242
|
+
}, { ...f(l), ...s.value }, { onClick: f(o) }), {
|
|
1243
|
+
default: O(() => [
|
|
1244
|
+
c.value ? (u(), h("span", ja, A(e.label), 1)) : I("", !0),
|
|
1245
|
+
S("span", Wa, [
|
|
1246
|
+
P(w.$slots, "icon", {}, () => [
|
|
1247
|
+
(u(), E(ee(f(d)), { size: e.size }, null, 8, ["size"]))
|
|
1244
1248
|
])
|
|
1245
1249
|
]),
|
|
1246
|
-
p.value ? (
|
|
1250
|
+
p.value ? (u(), h("span", Ua, A(e.label), 1)) : I("", !0)
|
|
1247
1251
|
]),
|
|
1248
1252
|
_: 3
|
|
1249
1253
|
}, 48, ["data-disabled", "data-direction", "data-ghost", "data-size", "data-text", ".href", "onClick"]));
|
|
1250
1254
|
}
|
|
1251
|
-
}),
|
|
1255
|
+
}), Ga = {
|
|
1252
1256
|
__name: "BsDropdownContainer",
|
|
1253
1257
|
props: {
|
|
1254
1258
|
breakout: {
|
|
@@ -1270,21 +1274,21 @@ const Da = {
|
|
|
1270
1274
|
},
|
|
1271
1275
|
setup(e, { expose: n }) {
|
|
1272
1276
|
const t = y(null);
|
|
1273
|
-
return n({ internalContainerRef: t }), (a, l) => (
|
|
1274
|
-
e.breakout && e.breakoutMounted ? (
|
|
1277
|
+
return n({ internalContainerRef: t }), (a, l) => (u(), h(G, null, [
|
|
1278
|
+
e.breakout && e.breakoutMounted ? (u(), E($t, {
|
|
1275
1279
|
key: 0,
|
|
1276
1280
|
to: e.breakoutStub
|
|
1277
1281
|
}, [
|
|
1278
|
-
|
|
1279
|
-
], 8, ["to"])) :
|
|
1280
|
-
e.breakout ?
|
|
1281
|
-
e.containerId ?
|
|
1282
|
+
P(a.$slots, "default")
|
|
1283
|
+
], 8, ["to"])) : I("", !0),
|
|
1284
|
+
e.breakout ? I("", !0) : (u(), h(G, { key: 1 }, [
|
|
1285
|
+
e.containerId ? P(a.$slots, "default", { key: 0 }) : (u(), h("div", {
|
|
1282
1286
|
key: 1,
|
|
1283
1287
|
ref_key: "internalContainerRef",
|
|
1284
1288
|
ref: t,
|
|
1285
1289
|
style: { position: "relative" }
|
|
1286
1290
|
}, [
|
|
1287
|
-
|
|
1291
|
+
P(a.$slots, "default")
|
|
1288
1292
|
], 512))
|
|
1289
1293
|
], 64))
|
|
1290
1294
|
], 64));
|
|
@@ -1333,10 +1337,10 @@ const Da = {
|
|
|
1333
1337
|
],
|
|
1334
1338
|
setup(e, { emit: n }) {
|
|
1335
1339
|
const t = e, a = n, l = [], i = t.preloaded && t.shown;
|
|
1336
|
-
function
|
|
1337
|
-
const { duration: p, enterClass:
|
|
1340
|
+
function d(r, c) {
|
|
1341
|
+
const { duration: p, enterClass: w, enterAttribute: g } = t;
|
|
1338
1342
|
l.push(setTimeout(() => {
|
|
1339
|
-
|
|
1343
|
+
w && r.classList.add(w), g && r.setAttribute(g, ""), l.push(setTimeout(() => {
|
|
1340
1344
|
c();
|
|
1341
1345
|
}, p)), a("enter", r);
|
|
1342
1346
|
}));
|
|
@@ -1344,74 +1348,74 @@ const Da = {
|
|
|
1344
1348
|
function o(r, c) {
|
|
1345
1349
|
const {
|
|
1346
1350
|
duration: p,
|
|
1347
|
-
enterClass:
|
|
1351
|
+
enterClass: w,
|
|
1348
1352
|
enterAttribute: g,
|
|
1349
|
-
leaveClass:
|
|
1353
|
+
leaveClass: k,
|
|
1350
1354
|
leaveAttribute: C
|
|
1351
1355
|
} = t;
|
|
1352
|
-
r.classList.remove(
|
|
1356
|
+
r.classList.remove(w), r.removeAttribute(g), k && r.classList.add(k), C && r.setAttribute(C, ""), l.push(setTimeout(() => {
|
|
1353
1357
|
c();
|
|
1354
1358
|
}, p)), a("leave", r);
|
|
1355
1359
|
}
|
|
1356
|
-
function
|
|
1360
|
+
function s(r) {
|
|
1357
1361
|
const { leaveClass: c, leaveAttribute: p } = t;
|
|
1358
1362
|
r.classList.remove(c), r.removeAttribute(p), a("after-leave", r);
|
|
1359
1363
|
}
|
|
1360
|
-
return
|
|
1364
|
+
return me(() => {
|
|
1361
1365
|
l.forEach((r) => {
|
|
1362
1366
|
clearTimeout(r);
|
|
1363
1367
|
});
|
|
1364
|
-
}), (r, c) => e.preloaded ?
|
|
1368
|
+
}), (r, c) => e.preloaded ? de((u(), E(et, {
|
|
1365
1369
|
key: 0,
|
|
1366
1370
|
appear: f(i),
|
|
1367
1371
|
css: !1,
|
|
1368
1372
|
onBeforeEnter: c[0] || (c[0] = (p) => a("before-enter", p)),
|
|
1369
|
-
onEnter:
|
|
1373
|
+
onEnter: d,
|
|
1370
1374
|
onAfterEnter: c[1] || (c[1] = (p) => a("after-enter", p)),
|
|
1371
1375
|
onEnterCancelled: c[2] || (c[2] = (p) => a("enter-cancelled", p)),
|
|
1372
1376
|
onBeforeLeave: c[3] || (c[3] = (p) => a("before-leave", p)),
|
|
1373
1377
|
onLeave: o,
|
|
1374
|
-
onAfterLeave:
|
|
1378
|
+
onAfterLeave: s,
|
|
1375
1379
|
onLeaveCancelled: c[4] || (c[4] = (p) => a("leave-cancelled", p))
|
|
1376
1380
|
}, {
|
|
1377
|
-
default:
|
|
1378
|
-
|
|
1381
|
+
default: O(() => [
|
|
1382
|
+
P(r.$slots, "default")
|
|
1379
1383
|
]),
|
|
1380
1384
|
_: 3
|
|
1381
1385
|
}, 8, ["appear"])), [
|
|
1382
|
-
[
|
|
1383
|
-
]) : (
|
|
1386
|
+
[se, e.shown]
|
|
1387
|
+
]) : (u(), E(et, {
|
|
1384
1388
|
key: 1,
|
|
1385
1389
|
appear: !0,
|
|
1386
1390
|
css: !1,
|
|
1387
1391
|
onBeforeEnter: c[5] || (c[5] = (p) => a("before-enter", p)),
|
|
1388
|
-
onEnter:
|
|
1392
|
+
onEnter: d,
|
|
1389
1393
|
onAfterEnter: c[6] || (c[6] = (p) => a("after-enter", p)),
|
|
1390
1394
|
onEnterCancelled: c[7] || (c[7] = (p) => a("enter-cancelled", p)),
|
|
1391
1395
|
onBeforeLeave: c[8] || (c[8] = (p) => a("before-leave", p)),
|
|
1392
1396
|
onLeave: o,
|
|
1393
|
-
onAfterLeave:
|
|
1397
|
+
onAfterLeave: s,
|
|
1394
1398
|
onLeaveCancelled: c[9] || (c[9] = (p) => a("leave-cancelled", p))
|
|
1395
1399
|
}, {
|
|
1396
|
-
default:
|
|
1397
|
-
e.shown ?
|
|
1400
|
+
default: O(() => [
|
|
1401
|
+
e.shown ? P(r.$slots, "default", { key: 0 }) : I("", !0)
|
|
1398
1402
|
]),
|
|
1399
1403
|
_: 3
|
|
1400
1404
|
}));
|
|
1401
1405
|
}
|
|
1402
|
-
},
|
|
1406
|
+
}, Ha = (e, n = void 0, t = "relative") => {
|
|
1403
1407
|
const a = y(null), l = y(null), i = y(!1);
|
|
1404
|
-
let
|
|
1405
|
-
return
|
|
1406
|
-
e && (a.value = n || pt(), document.getElementById(a.value) ? (l.value = document.getElementById(a.value),
|
|
1407
|
-
}),
|
|
1408
|
+
let d = !1;
|
|
1409
|
+
return Y(() => {
|
|
1410
|
+
e && (a.value = n || pt(), document.getElementById(a.value) ? (l.value = document.getElementById(a.value), d = !0) : (l.value = document.createElement("div"), l.value.id = a.value, l.value.style.position = t, document.body.insertAdjacentElement("afterbegin", l.value)), i.value = !0);
|
|
1411
|
+
}), me(() => {
|
|
1408
1412
|
var o;
|
|
1409
|
-
e && !
|
|
1413
|
+
e && !d && ((o = document.getElementById(a.value)) == null || o.remove());
|
|
1410
1414
|
}), { breakoutId: a, breakoutStub: l, breakoutMounted: i };
|
|
1411
|
-
},
|
|
1415
|
+
}, Ka = {
|
|
1412
1416
|
key: 0,
|
|
1413
1417
|
class: "bs-dropdown-backdrop"
|
|
1414
|
-
},
|
|
1418
|
+
}, Ya = ["data-width", "data-no-mobile"], Xa = { key: 0 }, Za = { key: 0 }, Qa = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1415
1419
|
__name: "BsDropdownNew",
|
|
1416
1420
|
props: {
|
|
1417
1421
|
anchorId: {
|
|
@@ -1464,20 +1468,20 @@ const Da = {
|
|
|
1464
1468
|
"after-leave"
|
|
1465
1469
|
],
|
|
1466
1470
|
setup(e, { emit: n }) {
|
|
1467
|
-
const t = e, a = n, l = y(null), i = y(null),
|
|
1468
|
-
|
|
1471
|
+
const t = e, a = n, l = y(null), i = y(null), d = y(!1), o = y(!1), s = v(() => document.getElementById(t.anchorId)), r = v(() => t.breakout ? p.value : t.containerId ? document.getElementById(t.containerId) : l.value.internalContainerRef), c = v(() => t.width === "anchor" ? void 0 : t.width);
|
|
1472
|
+
Jt([i, s], () => {
|
|
1469
1473
|
o.value && a("close");
|
|
1470
|
-
}),
|
|
1474
|
+
}), we(["Escape"], () => {
|
|
1471
1475
|
o.value && a("close");
|
|
1472
1476
|
});
|
|
1473
|
-
const { breakoutStub: p, breakoutMounted:
|
|
1474
|
-
ue("dropdownEnter",
|
|
1477
|
+
const { breakoutStub: p, breakoutMounted: w } = Ha(t.breakout, t.containerId);
|
|
1478
|
+
ue("dropdownEnter", d), ue("dropdownAfterEnter", o), ue("dropdownShown", v(() => t.shown));
|
|
1475
1479
|
const g = (M, z) => {
|
|
1476
1480
|
i.value.style.setProperty(M, z);
|
|
1477
1481
|
};
|
|
1478
|
-
function
|
|
1479
|
-
const M = r.value.getBoundingClientRect(), z =
|
|
1480
|
-
C(M, z),
|
|
1482
|
+
function k() {
|
|
1483
|
+
const M = r.value.getBoundingClientRect(), z = s.value.getBoundingClientRect(), W = i.value.getBoundingClientRect();
|
|
1484
|
+
C(M, z), B(M, z, W);
|
|
1481
1485
|
}
|
|
1482
1486
|
function C(M, z) {
|
|
1483
1487
|
if (t.position === "top") {
|
|
@@ -1488,46 +1492,46 @@ const Da = {
|
|
|
1488
1492
|
g("--dropdown-wscreen-top", `${W + z.height + 8}px`), g("--dropdown-wscreen-bottom", "auto");
|
|
1489
1493
|
}
|
|
1490
1494
|
}
|
|
1491
|
-
function
|
|
1495
|
+
function B(M, z, W) {
|
|
1492
1496
|
if (t.width !== "anchor") {
|
|
1493
|
-
const
|
|
1497
|
+
const ae = z.left - M.left;
|
|
1494
1498
|
if (t.position === "center") {
|
|
1495
1499
|
const J = (z.width - W.width) / 2;
|
|
1496
|
-
g("--dropdown-wscreen-left", `${
|
|
1500
|
+
g("--dropdown-wscreen-left", `${ae + J}px`), g("--dropdown-wscreen-right", "auto");
|
|
1497
1501
|
} else if (t.position === "right") {
|
|
1498
1502
|
const J = M.right - z.right;
|
|
1499
1503
|
g("--dropdown-wscreen-left", "auto"), g("--dropdown-wscreen-right", `${J}px`);
|
|
1500
1504
|
} else
|
|
1501
|
-
g("--dropdown-wscreen-left", `${
|
|
1505
|
+
g("--dropdown-wscreen-left", `${ae}px`), g("--dropdown-wscreen-right", "auto");
|
|
1502
1506
|
}
|
|
1503
1507
|
}
|
|
1504
1508
|
function T() {
|
|
1505
1509
|
if (t.width === "anchor") {
|
|
1506
|
-
const M =
|
|
1510
|
+
const M = s.value.getBoundingClientRect();
|
|
1507
1511
|
g("--dropdown-wscreen-width", `${M.width}px`);
|
|
1508
1512
|
} else
|
|
1509
1513
|
g("--dropdown-wscreen-width", "");
|
|
1510
1514
|
}
|
|
1511
1515
|
function m() {
|
|
1512
|
-
|
|
1516
|
+
d.value = !0, k(), T(), a("enter");
|
|
1513
1517
|
}
|
|
1514
1518
|
function b() {
|
|
1515
1519
|
o.value = !0, a("after-enter");
|
|
1516
1520
|
}
|
|
1517
1521
|
function q() {
|
|
1518
|
-
|
|
1522
|
+
d.value = !1, o.value = !1, a("after-leave");
|
|
1519
1523
|
}
|
|
1520
|
-
return (M, z) => (
|
|
1521
|
-
e.useMobileStyle && e.shown ? (
|
|
1522
|
-
V(
|
|
1524
|
+
return (M, z) => (u(), h(G, null, [
|
|
1525
|
+
e.useMobileStyle && e.shown ? (u(), h("div", Ka)) : I("", !0),
|
|
1526
|
+
V(Ga, {
|
|
1523
1527
|
ref_key: "dropdownContainerRef",
|
|
1524
1528
|
ref: l,
|
|
1525
1529
|
breakout: e.breakout,
|
|
1526
|
-
breakoutMounted: f(
|
|
1530
|
+
breakoutMounted: f(w),
|
|
1527
1531
|
breakoutStub: f(p),
|
|
1528
1532
|
containerId: e.containerId
|
|
1529
1533
|
}, {
|
|
1530
|
-
default:
|
|
1534
|
+
default: O(() => [
|
|
1531
1535
|
V(Me, {
|
|
1532
1536
|
shown: e.shown,
|
|
1533
1537
|
preloaded: e.preloaded,
|
|
@@ -1537,7 +1541,7 @@ const Da = {
|
|
|
1537
1541
|
onEnter: m,
|
|
1538
1542
|
onAfterLeave: q
|
|
1539
1543
|
}, {
|
|
1540
|
-
default:
|
|
1544
|
+
default: O(() => [
|
|
1541
1545
|
S("div", N({
|
|
1542
1546
|
ref_key: "dropdownRef",
|
|
1543
1547
|
ref: i,
|
|
@@ -1545,10 +1549,10 @@ const Da = {
|
|
|
1545
1549
|
"data-width": c.value,
|
|
1546
1550
|
"data-no-mobile": !e.useMobileStyle
|
|
1547
1551
|
}, M.$attrs), [
|
|
1548
|
-
e.helperText ? (
|
|
1552
|
+
e.helperText ? (u(), h("header", Xa, [
|
|
1549
1553
|
S("div", null, [
|
|
1550
1554
|
S("h3", null, A(e.helperText), 1),
|
|
1551
|
-
e.helperDescription ? (
|
|
1555
|
+
e.helperDescription ? (u(), h("p", Za, A(e.helperDescription), 1)) : I("", !0)
|
|
1552
1556
|
]),
|
|
1553
1557
|
S("button", {
|
|
1554
1558
|
type: "button",
|
|
@@ -1557,9 +1561,9 @@ const Da = {
|
|
|
1557
1561
|
}, [
|
|
1558
1562
|
V(f(Ve))
|
|
1559
1563
|
])
|
|
1560
|
-
])) :
|
|
1561
|
-
|
|
1562
|
-
], 16,
|
|
1564
|
+
])) : I("", !0),
|
|
1565
|
+
P(M.$slots, "default")
|
|
1566
|
+
], 16, Ya)
|
|
1563
1567
|
]),
|
|
1564
1568
|
_: 3
|
|
1565
1569
|
}, 8, ["shown", "preloaded"])
|
|
@@ -1658,14 +1662,14 @@ const Da = {
|
|
|
1658
1662
|
"after-leave"
|
|
1659
1663
|
],
|
|
1660
1664
|
setup(e, { emit: n }) {
|
|
1661
|
-
const t = e, a = n, { transition: l } = Ee(t), i = v(() => t.width === "toggle" ? "anchor" : t.width),
|
|
1662
|
-
return (
|
|
1665
|
+
const t = e, a = n, { transition: l } = Ee(t), i = v(() => t.width === "toggle" ? "anchor" : t.width), d = v(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = v(() => t.toggleId ? t.toggleId : t.anchorId);
|
|
1666
|
+
return (s, r) => (u(), E(Qa, {
|
|
1663
1667
|
"anchor-id": o.value,
|
|
1664
1668
|
breakout: e.breakout,
|
|
1665
1669
|
"container-id": e.containerId,
|
|
1666
1670
|
"helper-description": e.helperDescription,
|
|
1667
1671
|
"helper-text": e.helperText,
|
|
1668
|
-
position:
|
|
1672
|
+
position: d.value,
|
|
1669
1673
|
preloaded: e.preloaded,
|
|
1670
1674
|
shown: f(l),
|
|
1671
1675
|
"use-mobile-style": e.useMobileStyle,
|
|
@@ -1675,13 +1679,13 @@ const Da = {
|
|
|
1675
1679
|
onAfterEnter: r[2] || (r[2] = () => a("after-enter")),
|
|
1676
1680
|
onAfterLeave: r[3] || (r[3] = () => a("after-leave"))
|
|
1677
1681
|
}, {
|
|
1678
|
-
default:
|
|
1679
|
-
|
|
1682
|
+
default: O(() => [
|
|
1683
|
+
P(s.$slots, "default")
|
|
1680
1684
|
]),
|
|
1681
1685
|
_: 3
|
|
1682
1686
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "position", "preloaded", "shown", "use-mobile-style", "width"]));
|
|
1683
1687
|
}
|
|
1684
|
-
},
|
|
1688
|
+
}, Ja = ["aria-controls", "aria-expanded", "data-open", "disabled", "id", "tabindex"], _a = { class: "visually-hidden" }, en = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1685
1689
|
__name: "BsInputCombobox",
|
|
1686
1690
|
props: {
|
|
1687
1691
|
containerId: {
|
|
@@ -1723,21 +1727,21 @@ const Da = {
|
|
|
1723
1727
|
setup(e, { emit: n }) {
|
|
1724
1728
|
const t = e, a = n;
|
|
1725
1729
|
let l = !1;
|
|
1726
|
-
const i = y(null), [
|
|
1730
|
+
const i = y(null), [d] = Z(1), o = v(() => ({
|
|
1727
1731
|
icon: t.modelValue ? "close" : t.optionsId ? "caret-down" : "",
|
|
1728
1732
|
show: !!(t.modelValue || t.optionsId),
|
|
1729
1733
|
text: t.modelValue ? "Clear this field" : t.optionsId ? "Toggle options dropdown" : ""
|
|
1730
1734
|
}));
|
|
1731
|
-
function
|
|
1735
|
+
function s() {
|
|
1732
1736
|
t.modelValue && a("clear"), l = !0, i.value.$el.focus();
|
|
1733
1737
|
}
|
|
1734
1738
|
function r(p) {
|
|
1735
|
-
var
|
|
1736
|
-
const
|
|
1737
|
-
!(((C = p.relatedTarget) == null ? void 0 : C.id) === t.optionsId) && (!
|
|
1739
|
+
var k, C;
|
|
1740
|
+
const w = ((k = p.relatedTarget) == null ? void 0 : k.id) === d.value;
|
|
1741
|
+
!(((C = p.relatedTarget) == null ? void 0 : C.id) === t.optionsId) && (!w || !l) && c(!0), l = !1;
|
|
1738
1742
|
}
|
|
1739
1743
|
const c = Ae((p) => a("toggled", p), 200, !0);
|
|
1740
|
-
return (p,
|
|
1744
|
+
return (p, w) => (u(), E(Pe, {
|
|
1741
1745
|
"aria-live": "polite",
|
|
1742
1746
|
disabled: e.disabled,
|
|
1743
1747
|
error: e.error,
|
|
@@ -1746,8 +1750,8 @@ const Da = {
|
|
|
1746
1750
|
variant: "combobox",
|
|
1747
1751
|
onClick: f(c)
|
|
1748
1752
|
}, {
|
|
1749
|
-
default:
|
|
1750
|
-
V(
|
|
1753
|
+
default: O(() => [
|
|
1754
|
+
V(Be, N({
|
|
1751
1755
|
ref_key: "inputRef",
|
|
1752
1756
|
ref: i,
|
|
1753
1757
|
"aria-controls": e.optionsId,
|
|
@@ -1763,40 +1767,40 @@ const Da = {
|
|
|
1763
1767
|
required: e.required,
|
|
1764
1768
|
role: e.optionsId ? "combobox" : void 0,
|
|
1765
1769
|
onFocus: r,
|
|
1766
|
-
onInput:
|
|
1770
|
+
onInput: w[0] || (w[0] = (g) => p.$emit("update:modelValue", g.target.value))
|
|
1767
1771
|
}, p.$attrs), null, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup", "aria-invalid", "data-error", "disabled", "model-value", "placeholder", "required", "role"]),
|
|
1768
|
-
|
|
1772
|
+
de(S("button", {
|
|
1769
1773
|
"aria-controls": !e.modelValue && e.optionsId ? e.optionsId : void 0,
|
|
1770
1774
|
"aria-expanded": !e.modelValue && e.optionsId ? e.open : void 0,
|
|
1771
1775
|
"data-open": e.modelValue ? void 0 : e.open,
|
|
1772
1776
|
"data-part": "right",
|
|
1773
1777
|
disabled: e.disabled,
|
|
1774
|
-
id: f(
|
|
1778
|
+
id: f(d),
|
|
1775
1779
|
tabindex: e.modelValue ? "0" : "-1",
|
|
1776
1780
|
type: "button",
|
|
1777
|
-
onClick:
|
|
1781
|
+
onClick: s
|
|
1778
1782
|
}, [
|
|
1779
|
-
S("span",
|
|
1780
|
-
|
|
1783
|
+
S("span", _a, A(o.value.text), 1),
|
|
1784
|
+
de(V(f(Ke), {
|
|
1781
1785
|
role: "presentation",
|
|
1782
1786
|
size: "md"
|
|
1783
1787
|
}, null, 512), [
|
|
1784
|
-
[
|
|
1788
|
+
[se, o.value.icon == "caret-down"]
|
|
1785
1789
|
]),
|
|
1786
|
-
|
|
1790
|
+
de(V(f(Ve), {
|
|
1787
1791
|
role: "presentation",
|
|
1788
1792
|
size: "md"
|
|
1789
1793
|
}, null, 512), [
|
|
1790
|
-
[
|
|
1794
|
+
[se, o.value.icon == "close"]
|
|
1791
1795
|
])
|
|
1792
|
-
], 8,
|
|
1793
|
-
[
|
|
1796
|
+
], 8, Ja), [
|
|
1797
|
+
[se, o.value.show]
|
|
1794
1798
|
])
|
|
1795
1799
|
]),
|
|
1796
1800
|
_: 1
|
|
1797
1801
|
}, 8, ["disabled", "error", "id", "onClick"]));
|
|
1798
1802
|
}
|
|
1799
|
-
}),
|
|
1803
|
+
}), tn = ["aria-controls", "aria-expanded", "data-open", "data-size", "disabled"], an = {
|
|
1800
1804
|
__name: "BsFilterButton",
|
|
1801
1805
|
props: {
|
|
1802
1806
|
badgeCount: {
|
|
@@ -1826,7 +1830,7 @@ const Da = {
|
|
|
1826
1830
|
},
|
|
1827
1831
|
setup(e) {
|
|
1828
1832
|
const n = e, t = v(() => n.badgeCount > 0);
|
|
1829
|
-
return (a, l) => (
|
|
1833
|
+
return (a, l) => (u(), h("button", {
|
|
1830
1834
|
class: "bs-filter-button",
|
|
1831
1835
|
"aria-controls": e.optionsId,
|
|
1832
1836
|
"aria-expanded": e.open,
|
|
@@ -1836,21 +1840,21 @@ const Da = {
|
|
|
1836
1840
|
disabled: e.disabled,
|
|
1837
1841
|
type: "button"
|
|
1838
1842
|
}, [
|
|
1839
|
-
t.value ? (
|
|
1843
|
+
t.value ? (u(), E(ra, {
|
|
1840
1844
|
key: 0,
|
|
1841
1845
|
color: "blue",
|
|
1842
1846
|
count: e.badgeCount,
|
|
1843
1847
|
label: "active filter",
|
|
1844
1848
|
position: "left",
|
|
1845
1849
|
variant: "notext"
|
|
1846
|
-
}, null, 8, ["count"])) :
|
|
1847
|
-
|
|
1850
|
+
}, null, 8, ["count"])) : I("", !0),
|
|
1851
|
+
P(a.$slots, "label", {}, () => [
|
|
1848
1852
|
H(A(e.label), 1)
|
|
1849
1853
|
]),
|
|
1850
1854
|
V(f(Ke))
|
|
1851
|
-
], 8,
|
|
1855
|
+
], 8, tn));
|
|
1852
1856
|
}
|
|
1853
|
-
},
|
|
1857
|
+
}, nn = ["data-value", "data-value-type", "data-variant", "id"], Xe = {
|
|
1854
1858
|
__name: "BsDropdownOption",
|
|
1855
1859
|
props: {
|
|
1856
1860
|
value: {
|
|
@@ -1865,10 +1869,10 @@ const Da = {
|
|
|
1865
1869
|
setup(e) {
|
|
1866
1870
|
const n = e, t = y(null), a = ce("optionsId", ""), l = ce("handleOptionSelect", () => {
|
|
1867
1871
|
}), i = v(() => `${a.value}-option-${n.value}`);
|
|
1868
|
-
function
|
|
1872
|
+
function d(o) {
|
|
1869
1873
|
l(t.value), o.stopPropagation();
|
|
1870
1874
|
}
|
|
1871
|
-
return (o,
|
|
1875
|
+
return (o, s) => (u(), h("li", {
|
|
1872
1876
|
ref_key: "optionRef",
|
|
1873
1877
|
ref: t,
|
|
1874
1878
|
"data-component": "bs-dropdown-option",
|
|
@@ -1877,12 +1881,12 @@ const Da = {
|
|
|
1877
1881
|
"data-variant": e.variant || void 0,
|
|
1878
1882
|
id: i.value,
|
|
1879
1883
|
role: "option",
|
|
1880
|
-
onClick:
|
|
1884
|
+
onClick: d
|
|
1881
1885
|
}, [
|
|
1882
|
-
|
|
1883
|
-
], 8,
|
|
1886
|
+
P(o.$slots, "default")
|
|
1887
|
+
], 8, nn));
|
|
1884
1888
|
}
|
|
1885
|
-
},
|
|
1889
|
+
}, ln = ["data-img-size", "data-initials", "data-no-img"], on = ["src", "alt"], bt = {
|
|
1886
1890
|
__name: "BsProfileImg",
|
|
1887
1891
|
props: {
|
|
1888
1892
|
src: String,
|
|
@@ -1902,25 +1906,25 @@ const Da = {
|
|
|
1902
1906
|
},
|
|
1903
1907
|
setup(e) {
|
|
1904
1908
|
const n = e, t = y(!1), a = y(!!n.src);
|
|
1905
|
-
return
|
|
1909
|
+
return Y(() => t.value = !0), (l, i) => (u(), h("div", {
|
|
1906
1910
|
class: "bs-profile-img",
|
|
1907
1911
|
"data-img-size": e.size,
|
|
1908
1912
|
"data-initials": e.initials,
|
|
1909
1913
|
"data-no-img": !a.value
|
|
1910
1914
|
}, [
|
|
1911
|
-
a.value && t.value ? (
|
|
1915
|
+
a.value && t.value ? (u(), h("img", {
|
|
1912
1916
|
key: 0,
|
|
1913
1917
|
src: e.src,
|
|
1914
1918
|
alt: e.useAltText ? e.profileName : "",
|
|
1915
|
-
onError: i[0] || (i[0] = (
|
|
1916
|
-
}, null, 40,
|
|
1917
|
-
], 8,
|
|
1919
|
+
onError: i[0] || (i[0] = (d) => a.value = !1)
|
|
1920
|
+
}, null, 40, on)) : I("", !0)
|
|
1921
|
+
], 8, ln));
|
|
1918
1922
|
}
|
|
1919
|
-
},
|
|
1923
|
+
}, rn = ["id", "data-checked"], dn = { key: 1 }, sn = ["innerHTML"], un = { key: 4 }, cn = { key: 5 }, fn = {
|
|
1920
1924
|
key: 0,
|
|
1921
1925
|
role: "option",
|
|
1922
1926
|
"data-no-hover": ""
|
|
1923
|
-
},
|
|
1927
|
+
}, Le = {
|
|
1924
1928
|
__name: "BsDropdownOptionBuilder",
|
|
1925
1929
|
props: {
|
|
1926
1930
|
// Array of objects with the following properties (either label or labelHtml
|
|
@@ -1960,65 +1964,65 @@ const Da = {
|
|
|
1960
1964
|
});
|
|
1961
1965
|
function a() {
|
|
1962
1966
|
n.options.forEach((o) => {
|
|
1963
|
-
const { icon:
|
|
1964
|
-
|
|
1967
|
+
const { icon: s } = o;
|
|
1968
|
+
s && !t[s] && (t[s] = i(s));
|
|
1965
1969
|
});
|
|
1966
1970
|
}
|
|
1967
1971
|
function l(o) {
|
|
1968
|
-
let
|
|
1969
|
-
return r += o.checkbox ? 1 : 0, r += o.icon ? 1 : 0, r += o.profileImg ? 1 : 0, r > 1 && (
|
|
1972
|
+
let s = "", r = 1;
|
|
1973
|
+
return r += o.checkbox ? 1 : 0, r += o.icon ? 1 : 0, r += o.profileImg ? 1 : 0, r > 1 && (s += ` ${r}-col`), o.checkbox && (s += " checkbox"), o.description && (s += " description"), o.negative && (s += " negative"), s;
|
|
1970
1974
|
}
|
|
1971
1975
|
function i(o) {
|
|
1972
1976
|
return He(async () => {
|
|
1973
|
-
const { [`BsIcon${o}`]:
|
|
1974
|
-
return
|
|
1977
|
+
const { [`BsIcon${o}`]: s } = await import("@wwtdev/bsds-icons-vue3");
|
|
1978
|
+
return s;
|
|
1975
1979
|
});
|
|
1976
1980
|
}
|
|
1977
|
-
function
|
|
1978
|
-
return !!o && o !==
|
|
1981
|
+
function d(o, s) {
|
|
1982
|
+
return !!o && o !== s;
|
|
1979
1983
|
}
|
|
1980
|
-
return (o,
|
|
1981
|
-
(
|
|
1984
|
+
return (o, s) => (u(), h(G, null, [
|
|
1985
|
+
(u(!0), h(G, null, _(e.options, (r) => (u(), E(Xe, {
|
|
1982
1986
|
"aria-checked": r.checkbox ? r.checkbox.checked : void 0,
|
|
1983
1987
|
key: r.value,
|
|
1984
1988
|
value: r.value,
|
|
1985
1989
|
variant: l(r)
|
|
1986
1990
|
}, {
|
|
1987
|
-
default:
|
|
1988
|
-
r.checkbox ? (
|
|
1991
|
+
default: O(() => [
|
|
1992
|
+
r.checkbox ? (u(), h("span", {
|
|
1989
1993
|
key: 0,
|
|
1990
1994
|
id: r.checkbox.inputId,
|
|
1991
1995
|
"aria-hidden": "true",
|
|
1992
1996
|
class: "bs-checkbox",
|
|
1993
1997
|
"data-checked": r.checkbox.checked
|
|
1994
|
-
}, null, 8,
|
|
1995
|
-
r.icon ? (
|
|
1996
|
-
(
|
|
1997
|
-
])) :
|
|
1998
|
-
r.profileImg ? (
|
|
1998
|
+
}, null, 8, rn)) : I("", !0),
|
|
1999
|
+
r.icon ? (u(), h("span", dn, [
|
|
2000
|
+
(u(), E(ee(t[r.icon])))
|
|
2001
|
+
])) : I("", !0),
|
|
2002
|
+
r.profileImg ? (u(), E(bt, {
|
|
1999
2003
|
key: 2,
|
|
2000
2004
|
src: r.profileImg.src,
|
|
2001
2005
|
size: "xs",
|
|
2002
2006
|
initials: r.profileImg.initials,
|
|
2003
2007
|
"profile-name": r.profileImg.profileName,
|
|
2004
|
-
"use-alt-text":
|
|
2005
|
-
}, null, 8, ["src", "initials", "profile-name", "use-alt-text"])) :
|
|
2006
|
-
r.labelHtml ? (
|
|
2008
|
+
"use-alt-text": d(r.profileImg.profileName, r.label)
|
|
2009
|
+
}, null, 8, ["src", "initials", "profile-name", "use-alt-text"])) : I("", !0),
|
|
2010
|
+
r.labelHtml ? (u(), h("span", {
|
|
2007
2011
|
key: 3,
|
|
2008
2012
|
innerHTML: r.labelHtml
|
|
2009
|
-
}, null, 8, sn)) : (
|
|
2010
|
-
r.description ? (
|
|
2013
|
+
}, null, 8, sn)) : (u(), h("span", un, A(r.label), 1)),
|
|
2014
|
+
r.description ? (u(), h("span", cn, A(r.description), 1)) : I("", !0)
|
|
2011
2015
|
]),
|
|
2012
2016
|
_: 2
|
|
2013
2017
|
}, 1032, ["aria-checked", "value", "variant"]))), 128)),
|
|
2014
|
-
e.showNoOptions && e.options.length === 0 ? (
|
|
2015
|
-
|
|
2018
|
+
e.showNoOptions && e.options.length === 0 ? (u(), h("li", fn, [
|
|
2019
|
+
P(o.$slots, "no-options", {}, () => [
|
|
2016
2020
|
H("No options")
|
|
2017
2021
|
])
|
|
2018
|
-
])) :
|
|
2022
|
+
])) : I("", !0)
|
|
2019
2023
|
], 64));
|
|
2020
2024
|
}
|
|
2021
|
-
},
|
|
2025
|
+
}, pn = ["id"], vn = {
|
|
2022
2026
|
__name: "BsDropdownWithToggle",
|
|
2023
2027
|
props: {
|
|
2024
2028
|
anchorId: {
|
|
@@ -2092,37 +2096,37 @@ const Da = {
|
|
|
2092
2096
|
setup(e, { emit: n }) {
|
|
2093
2097
|
const t = e, a = n;
|
|
2094
2098
|
let l = null;
|
|
2095
|
-
const [i,
|
|
2096
|
-
function
|
|
2099
|
+
const [i, d] = Z(2), o = y(!1), s = () => l || (l = document.getElementById(p.value)), r = v(() => He(async () => await (t.multiselect ? Promise.resolve().then(() => wn) : Promise.resolve().then(() => mn)))), c = v(() => t.optionsId || d.value), p = v(() => t.toggleId || i.value);
|
|
2100
|
+
function w() {
|
|
2097
2101
|
const m = document.activeElement;
|
|
2098
2102
|
return !m || m.tagName === "BODY" || m.id === c.value;
|
|
2099
2103
|
}
|
|
2100
2104
|
function g() {
|
|
2101
2105
|
var m, b;
|
|
2102
|
-
o.value = !1, a("close"),
|
|
2106
|
+
o.value = !1, a("close"), w() && ((b = (m = s()) == null ? void 0 : m.focus) == null || b.call(m));
|
|
2103
2107
|
}
|
|
2104
|
-
function
|
|
2108
|
+
function k() {
|
|
2105
2109
|
o.value && g();
|
|
2106
2110
|
}
|
|
2107
2111
|
function C() {
|
|
2108
2112
|
o.value = !0;
|
|
2109
2113
|
}
|
|
2110
|
-
function
|
|
2114
|
+
function B(m) {
|
|
2111
2115
|
a("update:selectedOptions", m);
|
|
2112
2116
|
}
|
|
2113
2117
|
function T(m) {
|
|
2114
2118
|
t.multiselect || (a("update:selectedOption", m), g());
|
|
2115
2119
|
}
|
|
2116
|
-
return (m, b) => (
|
|
2120
|
+
return (m, b) => (u(), h("div", {
|
|
2117
2121
|
class: "bs-dropdown-with-toggle",
|
|
2118
2122
|
id: m.$attrs.id
|
|
2119
2123
|
}, [
|
|
2120
|
-
|
|
2124
|
+
P(m.$slots, "toggle", {
|
|
2121
2125
|
anchorId: e.anchorId,
|
|
2122
2126
|
optionsId: c.value,
|
|
2123
2127
|
toggleId: p.value
|
|
2124
2128
|
}, () => [
|
|
2125
|
-
V(
|
|
2129
|
+
V(an, {
|
|
2126
2130
|
"aria-controls": c.value,
|
|
2127
2131
|
"aria-expanded": e.open,
|
|
2128
2132
|
disabled: e.disabled,
|
|
@@ -2132,8 +2136,8 @@ const Da = {
|
|
|
2132
2136
|
size: e.toggleSize,
|
|
2133
2137
|
onClick: b[0] || (b[0] = (q) => m.$emit("toggled"))
|
|
2134
2138
|
}, {
|
|
2135
|
-
label:
|
|
2136
|
-
|
|
2139
|
+
label: O(() => [
|
|
2140
|
+
P(m.$slots, "toggle-label", {}, () => [
|
|
2137
2141
|
H(A(e.toggleLabel), 1)
|
|
2138
2142
|
])
|
|
2139
2143
|
]),
|
|
@@ -2150,10 +2154,10 @@ const Da = {
|
|
|
2150
2154
|
shown: e.open,
|
|
2151
2155
|
"use-mobile-style": e.useMobileStyle,
|
|
2152
2156
|
width: e.dropdownWidth,
|
|
2153
|
-
onClose:
|
|
2157
|
+
onClose: k,
|
|
2154
2158
|
onEnter: C
|
|
2155
2159
|
}, {
|
|
2156
|
-
default:
|
|
2160
|
+
default: O(() => [
|
|
2157
2161
|
V(f(r), {
|
|
2158
2162
|
label: e.dropdownLabel,
|
|
2159
2163
|
"model-value": e.selectedOption,
|
|
@@ -2162,11 +2166,11 @@ const Da = {
|
|
|
2162
2166
|
"selected-options": e.selectedOptions,
|
|
2163
2167
|
shown: e.open,
|
|
2164
2168
|
"onUpdate:modelValue": T,
|
|
2165
|
-
"onUpdate:selectedOptions":
|
|
2166
|
-
onClose: b[1] || (b[1] = (q) => e.multiselect ? void 0 :
|
|
2169
|
+
"onUpdate:selectedOptions": B,
|
|
2170
|
+
onClose: b[1] || (b[1] = (q) => e.multiselect ? void 0 : k())
|
|
2167
2171
|
}, {
|
|
2168
|
-
default:
|
|
2169
|
-
e.multiselect ?
|
|
2172
|
+
default: O(() => [
|
|
2173
|
+
e.multiselect ? I("", !0) : (u(), E(Le, {
|
|
2170
2174
|
key: 0,
|
|
2171
2175
|
options: e.options
|
|
2172
2176
|
}, null, 8, ["options"]))
|
|
@@ -2176,9 +2180,9 @@ const Da = {
|
|
|
2176
2180
|
]),
|
|
2177
2181
|
_: 1
|
|
2178
2182
|
}, 8, ["anchor-id", "breakout", "helper-text", "helper-description", "position", "shown", "use-mobile-style", "width"])
|
|
2179
|
-
], 8,
|
|
2183
|
+
], 8, pn));
|
|
2180
2184
|
}
|
|
2181
|
-
},
|
|
2185
|
+
}, gt = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2182
2186
|
__name: "BsDropdownCombobox",
|
|
2183
2187
|
props: {
|
|
2184
2188
|
disabled: {
|
|
@@ -2237,24 +2241,24 @@ const Da = {
|
|
|
2237
2241
|
},
|
|
2238
2242
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
2239
2243
|
setup(e, { emit: n }) {
|
|
2240
|
-
const t = e, a = n, [l, i,
|
|
2241
|
-
function r(
|
|
2242
|
-
a("combobox:change",
|
|
2244
|
+
const t = e, a = n, [l, i, d] = Z(3), o = y(!1), s = v(() => t.inputId || l.value);
|
|
2245
|
+
function r(k) {
|
|
2246
|
+
a("combobox:change", k.target.value), a("update:modelValue", k.target.value);
|
|
2243
2247
|
}
|
|
2244
2248
|
function c() {
|
|
2245
2249
|
a("combobox:change", ""), a("update:modelValue", "");
|
|
2246
2250
|
}
|
|
2247
|
-
function p(
|
|
2248
|
-
var C,
|
|
2249
|
-
(C =
|
|
2251
|
+
function p(k) {
|
|
2252
|
+
var C, B;
|
|
2253
|
+
(C = k.relatedTarget) != null && C.closest(`#${d.value}`) || (B = k.relatedTarget) != null && B.closest(`#${i.value}`) || (o.value = !1);
|
|
2250
2254
|
}
|
|
2251
|
-
function
|
|
2252
|
-
a("combobox:input",
|
|
2255
|
+
function w(k) {
|
|
2256
|
+
a("combobox:input", k.target.value), t.updateOnInput && a("update:modelValue", k.target.value);
|
|
2253
2257
|
}
|
|
2254
|
-
function g(
|
|
2255
|
-
|
|
2258
|
+
function g(k) {
|
|
2259
|
+
k === !0 || k === !1 ? o.value = k : o.value = !o.value;
|
|
2256
2260
|
}
|
|
2257
|
-
return (
|
|
2261
|
+
return (k, C) => (u(), E(vn, {
|
|
2258
2262
|
"anchor-id": f(i),
|
|
2259
2263
|
disabled: e.disabled,
|
|
2260
2264
|
"dropdown-position": e.dropdownPosition,
|
|
@@ -2264,34 +2268,145 @@ const Da = {
|
|
|
2264
2268
|
multiselect: !1,
|
|
2265
2269
|
open: o.value,
|
|
2266
2270
|
options: e.options,
|
|
2267
|
-
"options-id": f(
|
|
2271
|
+
"options-id": f(d),
|
|
2268
2272
|
"selected-option": e.modelValue,
|
|
2269
|
-
"toggle-id":
|
|
2270
|
-
onClose: C[0] || (C[0] = (
|
|
2273
|
+
"toggle-id": k.$attrs.id || s.value,
|
|
2274
|
+
onClose: C[0] || (C[0] = (B) => o.value = !1),
|
|
2271
2275
|
onFocusout: p,
|
|
2272
|
-
"onUpdate:selectedOption": C[1] || (C[1] = (
|
|
2276
|
+
"onUpdate:selectedOption": C[1] || (C[1] = (B) => k.$emit("update:modelValue", B))
|
|
2273
2277
|
}, {
|
|
2274
|
-
toggle:
|
|
2275
|
-
V(
|
|
2276
|
-
id:
|
|
2278
|
+
toggle: O(() => [
|
|
2279
|
+
V(en, N({
|
|
2280
|
+
id: k.$attrs.id || s.value,
|
|
2277
2281
|
"container-id": f(i),
|
|
2278
2282
|
disabled: e.disabled,
|
|
2279
2283
|
error: e.error,
|
|
2280
2284
|
"hint-id": e.hintId,
|
|
2281
2285
|
"model-value": e.displayValue || e.modelValue,
|
|
2282
2286
|
open: o.value,
|
|
2283
|
-
"options-id": f(
|
|
2287
|
+
"options-id": f(d),
|
|
2284
2288
|
placeholder: e.placeholder,
|
|
2285
2289
|
required: e.required,
|
|
2286
2290
|
onChange: r,
|
|
2287
2291
|
onClear: c,
|
|
2288
|
-
onInput:
|
|
2292
|
+
onInput: w,
|
|
2289
2293
|
onToggled: g
|
|
2290
|
-
},
|
|
2294
|
+
}, k.$attrs), null, 16, ["id", "container-id", "disabled", "error", "hint-id", "model-value", "open", "options-id", "placeholder", "required"])
|
|
2291
2295
|
]),
|
|
2292
2296
|
_: 1
|
|
2293
2297
|
}, 8, ["anchor-id", "disabled", "dropdown-position", "dropdown-width", "helper-description", "helper-text", "open", "options", "options-id", "selected-option", "toggle-id"]));
|
|
2294
2298
|
}
|
|
2299
|
+
}), bo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2300
|
+
__name: "BsDropdownComboboxField",
|
|
2301
|
+
props: {
|
|
2302
|
+
disabled: {
|
|
2303
|
+
type: Boolean,
|
|
2304
|
+
default: !1
|
|
2305
|
+
},
|
|
2306
|
+
displayValue: {
|
|
2307
|
+
type: String,
|
|
2308
|
+
default: ""
|
|
2309
|
+
},
|
|
2310
|
+
dropdownPosition: {
|
|
2311
|
+
type: String,
|
|
2312
|
+
validator: (e) => ["", "top", "center", "right"].includes(e)
|
|
2313
|
+
},
|
|
2314
|
+
dropdownWidth: {
|
|
2315
|
+
type: String,
|
|
2316
|
+
validator: (e) => ["", "sm", "md", "lg", "content", "anchor"].includes(e)
|
|
2317
|
+
},
|
|
2318
|
+
error: {
|
|
2319
|
+
type: Boolean,
|
|
2320
|
+
default: !1
|
|
2321
|
+
},
|
|
2322
|
+
errorMsg: {
|
|
2323
|
+
type: String
|
|
2324
|
+
},
|
|
2325
|
+
helperText: {
|
|
2326
|
+
type: String,
|
|
2327
|
+
default: ""
|
|
2328
|
+
},
|
|
2329
|
+
helperDescription: {
|
|
2330
|
+
type: String,
|
|
2331
|
+
default: ""
|
|
2332
|
+
},
|
|
2333
|
+
hint: {
|
|
2334
|
+
type: String
|
|
2335
|
+
},
|
|
2336
|
+
hintId: {
|
|
2337
|
+
type: String
|
|
2338
|
+
},
|
|
2339
|
+
inputId: {
|
|
2340
|
+
type: String
|
|
2341
|
+
},
|
|
2342
|
+
label: {
|
|
2343
|
+
type: String
|
|
2344
|
+
},
|
|
2345
|
+
modelValue: {
|
|
2346
|
+
type: String,
|
|
2347
|
+
default: ""
|
|
2348
|
+
},
|
|
2349
|
+
options: {
|
|
2350
|
+
type: Array,
|
|
2351
|
+
default: () => []
|
|
2352
|
+
},
|
|
2353
|
+
placeholder: {
|
|
2354
|
+
type: String
|
|
2355
|
+
},
|
|
2356
|
+
required: {
|
|
2357
|
+
type: Boolean,
|
|
2358
|
+
default: !1
|
|
2359
|
+
},
|
|
2360
|
+
updateOnInput: {
|
|
2361
|
+
type: Boolean,
|
|
2362
|
+
default: !1
|
|
2363
|
+
}
|
|
2364
|
+
},
|
|
2365
|
+
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
2366
|
+
setup(e, { emit: n }) {
|
|
2367
|
+
const t = e, [a, l] = Z(2), i = v(() => t.error && t.errorMsg || t.hint || void 0), d = v(() => t.inputId || a.value);
|
|
2368
|
+
return (o, s) => (u(), h("div", N({ "data-component": "bs-dropdown-combobox-field" }, f(K)(o.$attrs, f(fe)).remaining), [
|
|
2369
|
+
e.label || o.$slots.label ? (u(), E(te, {
|
|
2370
|
+
key: 0,
|
|
2371
|
+
for: o.$attrs.id || d.value,
|
|
2372
|
+
disabled: e.disabled,
|
|
2373
|
+
required: e.required
|
|
2374
|
+
}, {
|
|
2375
|
+
default: O(() => [
|
|
2376
|
+
P(o.$slots, "label", {}, () => [
|
|
2377
|
+
H(A(e.label), 1)
|
|
2378
|
+
])
|
|
2379
|
+
]),
|
|
2380
|
+
_: 3
|
|
2381
|
+
}, 8, ["for", "disabled", "required"])) : I("", !0),
|
|
2382
|
+
V(gt, N({
|
|
2383
|
+
disabled: e.disabled,
|
|
2384
|
+
"display-value": e.displayValue,
|
|
2385
|
+
"dropdown-position": e.dropdownPosition,
|
|
2386
|
+
"dropdown-width": e.dropdownWidth,
|
|
2387
|
+
error: e.error,
|
|
2388
|
+
"helper-text": e.helperText,
|
|
2389
|
+
"helper-description": e.helperDescription,
|
|
2390
|
+
"hint-id": f(l),
|
|
2391
|
+
"input-id": o.$attrs.id || d.value,
|
|
2392
|
+
"model-value": e.modelValue,
|
|
2393
|
+
options: e.options,
|
|
2394
|
+
placeholder: e.placeholder,
|
|
2395
|
+
required: e.required,
|
|
2396
|
+
"update-on-input": e.updateOnInput,
|
|
2397
|
+
"onCombobox:change": s[0] || (s[0] = (r) => o.$emit("combobox:change", r)),
|
|
2398
|
+
"onCombobox:input": s[1] || (s[1] = (r) => o.$emit("combobox:input", r)),
|
|
2399
|
+
"onUpdate:modelValue": s[2] || (s[2] = (r) => o.$emit("update:modelValue", r))
|
|
2400
|
+
}, f(K)(o.$attrs, f(fe)).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"]),
|
|
2401
|
+
i.value ? (u(), E(be, {
|
|
2402
|
+
key: 1,
|
|
2403
|
+
error: e.error,
|
|
2404
|
+
"error-msg": e.errorMsg,
|
|
2405
|
+
hint: e.hint || o.hintDeprecated,
|
|
2406
|
+
"hint-id": f(l)
|
|
2407
|
+
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : I("", !0)
|
|
2408
|
+
], 16));
|
|
2409
|
+
}
|
|
2295
2410
|
}), hn = ["aria-activedescendant", "aria-label", "data-overflow", "id", "tabindex"], Ze = {
|
|
2296
2411
|
__name: "BsDropdownOptionList",
|
|
2297
2412
|
props: {
|
|
@@ -2328,13 +2443,13 @@ const Da = {
|
|
|
2328
2443
|
"update:modelValue"
|
|
2329
2444
|
],
|
|
2330
2445
|
setup(e, { expose: n, emit: t }) {
|
|
2331
|
-
const a = e, l = t, i = y(null),
|
|
2332
|
-
ue("optionsId", v(() => a.optionsId)), ue("handleOptionSelect",
|
|
2333
|
-
const
|
|
2446
|
+
const a = e, l = t, i = y(null), d = y(null), o = y(-1), s = y(-1), r = y(null), c = y(!1), p = ce("dropdownEnter", y(!1)), w = ce("dropdownAfterEnter", y(!1)), g = ce("dropdownShown", y(!1));
|
|
2447
|
+
ue("optionsId", v(() => a.optionsId)), ue("handleOptionSelect", ge), _t(i, b, { childList: !0 }), we([" ", "Enter", "NumpadEnter"], Ie, i), we(["ArrowDown", "ArrowUp", "Home", "End"], ke);
|
|
2448
|
+
const B = [/^[a-zA-Z0-9]{1}$/], T = {
|
|
2334
2449
|
keys: "",
|
|
2335
2450
|
lastTyped: 0
|
|
2336
2451
|
};
|
|
2337
|
-
|
|
2452
|
+
we(B, (x) => Te(x, T)), Y(() => {
|
|
2338
2453
|
b(), J(g.value);
|
|
2339
2454
|
}), R(
|
|
2340
2455
|
[p, () => {
|
|
@@ -2344,7 +2459,7 @@ const Da = {
|
|
|
2344
2459
|
([x, F]) => {
|
|
2345
2460
|
(x || F > 0) && (c.value = i.value.scrollHeight > i.value.clientHeight);
|
|
2346
2461
|
}
|
|
2347
|
-
), R(
|
|
2462
|
+
), R(w, (x) => {
|
|
2348
2463
|
x && (q(), M());
|
|
2349
2464
|
}), R(g, (x) => J(x));
|
|
2350
2465
|
const m = v(() => a.modelValue || a.selectedValue);
|
|
@@ -2354,7 +2469,7 @@ const Da = {
|
|
|
2354
2469
|
);
|
|
2355
2470
|
}
|
|
2356
2471
|
function q() {
|
|
2357
|
-
i.value.getBoundingClientRect().bottom > window.innerHeight && i.value.scrollIntoView();
|
|
2472
|
+
i.value.getBoundingClientRect().bottom > window.innerHeight && i.value.scrollIntoView({ block: "nearest" });
|
|
2358
2473
|
}
|
|
2359
2474
|
function M() {
|
|
2360
2475
|
var x;
|
|
@@ -2362,38 +2477,38 @@ const Da = {
|
|
|
2362
2477
|
}
|
|
2363
2478
|
function z() {
|
|
2364
2479
|
var x;
|
|
2365
|
-
o.value > -1 && ((x = r.value[o.value]) == null || x.setAttribute("data-active", ""),
|
|
2480
|
+
o.value > -1 && ((x = r.value[o.value]) == null || x.setAttribute("data-active", ""), d.value = r.value[o.value].id, M());
|
|
2366
2481
|
}
|
|
2367
2482
|
function W() {
|
|
2368
2483
|
var x;
|
|
2369
2484
|
o.value > -1 && ((x = r.value[o.value]) == null || x.removeAttribute("data-active"));
|
|
2370
2485
|
}
|
|
2371
|
-
function
|
|
2486
|
+
function ae() {
|
|
2372
2487
|
var x;
|
|
2373
|
-
o.value < 0 && (o.value = 0,
|
|
2488
|
+
o.value < 0 && (o.value = 0, d.value = (x = r.value[0]) == null ? void 0 : x.id), z();
|
|
2374
2489
|
}
|
|
2375
2490
|
function J(x) {
|
|
2376
|
-
x ?
|
|
2491
|
+
x ? ve() : $e();
|
|
2377
2492
|
}
|
|
2378
|
-
function
|
|
2493
|
+
function ve() {
|
|
2379
2494
|
var x, F;
|
|
2380
|
-
a.multiselect || (
|
|
2381
|
-
(
|
|
2382
|
-
), !a.multiselect &&
|
|
2495
|
+
a.multiselect || (s.value = r.value.findIndex(
|
|
2496
|
+
(L) => L.getAttribute("data-value") === String(m.value)
|
|
2497
|
+
), !a.multiselect && s.value > -1 && ((x = r.value[s.value]) == null || x.setAttribute("data-selected", ""), (F = r.value[s.value]) == null || F.setAttribute("aria-selected", "true")), o.value = s.value);
|
|
2383
2498
|
}
|
|
2384
2499
|
function $e() {
|
|
2385
2500
|
r.value.forEach((x) => {
|
|
2386
2501
|
x.removeAttribute("data-selected"), x.setAttribute("aria-selected", "false");
|
|
2387
|
-
}), W(),
|
|
2502
|
+
}), W(), s.value = -1, o.value = -1, d.value = null;
|
|
2388
2503
|
}
|
|
2389
|
-
function
|
|
2390
|
-
var
|
|
2391
|
-
(
|
|
2504
|
+
function ge(x) {
|
|
2505
|
+
var L;
|
|
2506
|
+
(L = x.querySelector("a")) == null || L.click();
|
|
2392
2507
|
let F = x.getAttribute("data-value");
|
|
2393
|
-
x.getAttribute("data-value-type") === "number" && (F = Number(F)),
|
|
2508
|
+
x.getAttribute("data-value-type") === "number" && (F = Number(F)), d.value = x.id, W(), l("optselected", F), l("update:modelValue", F), l("close");
|
|
2394
2509
|
}
|
|
2395
2510
|
function Ie(x) {
|
|
2396
|
-
|
|
2511
|
+
ge(r.value[o.value]), x.preventDefault();
|
|
2397
2512
|
}
|
|
2398
2513
|
function ke(x) {
|
|
2399
2514
|
if (g.value)
|
|
@@ -2428,16 +2543,16 @@ const Da = {
|
|
|
2428
2543
|
F = r.value.length - 1;
|
|
2429
2544
|
break;
|
|
2430
2545
|
}
|
|
2431
|
-
|
|
2546
|
+
ye(F);
|
|
2432
2547
|
}
|
|
2433
2548
|
function Te(x, F) {
|
|
2434
2549
|
if (!g.value)
|
|
2435
2550
|
return;
|
|
2436
2551
|
F.keys = x.timeStamp - F.lastTyped > 500 ? x.key : F.keys + x.key, F.lastTyped = x.timeStamp;
|
|
2437
|
-
const
|
|
2438
|
-
|
|
2552
|
+
const L = r.value.findIndex((U) => U.textContent.replaceAll(/[^a-zA-Z0-9]/g, "").toLowerCase().startsWith(F.keys));
|
|
2553
|
+
L > -1 && ye(L, !1);
|
|
2439
2554
|
}
|
|
2440
|
-
function
|
|
2555
|
+
function ye(x, F = !0) {
|
|
2441
2556
|
W(), o.value = x, document.activeElement !== i.value && F ? i.value.focus() : z();
|
|
2442
2557
|
}
|
|
2443
2558
|
return n({
|
|
@@ -2446,10 +2561,10 @@ const Da = {
|
|
|
2446
2561
|
optionsRef: i,
|
|
2447
2562
|
refreshOptions: b,
|
|
2448
2563
|
setCurrentActive: z
|
|
2449
|
-
}), (x, F) => (
|
|
2564
|
+
}), (x, F) => (u(), h("ul", {
|
|
2450
2565
|
ref_key: "optionsRef",
|
|
2451
2566
|
ref: i,
|
|
2452
|
-
"aria-activedescendant":
|
|
2567
|
+
"aria-activedescendant": d.value || void 0,
|
|
2453
2568
|
"aria-label": e.label,
|
|
2454
2569
|
class: "bs-dropdown-options",
|
|
2455
2570
|
"data-overflow": c.value,
|
|
@@ -2457,11 +2572,11 @@ const Da = {
|
|
|
2457
2572
|
role: "listbox",
|
|
2458
2573
|
tabindex: f(g) ? 0 : void 0,
|
|
2459
2574
|
onBlur: W,
|
|
2460
|
-
onFocus:
|
|
2461
|
-
onMousedown: F[0] || (F[0] =
|
|
2575
|
+
onFocus: ae,
|
|
2576
|
+
onMousedown: F[0] || (F[0] = It(() => {
|
|
2462
2577
|
}, ["prevent"]))
|
|
2463
2578
|
}, [
|
|
2464
|
-
|
|
2579
|
+
P(x.$slots, "default")
|
|
2465
2580
|
], 40, hn));
|
|
2466
2581
|
}
|
|
2467
2582
|
}, mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -2495,7 +2610,7 @@ const Da = {
|
|
|
2495
2610
|
},
|
|
2496
2611
|
emits: ["update:selectedOptions"],
|
|
2497
2612
|
setup(e, { emit: n }) {
|
|
2498
|
-
const t = e, a = n, l = y(null), i = y([]),
|
|
2613
|
+
const t = e, a = n, l = y(null), i = y([]), d = y([]);
|
|
2499
2614
|
let o = !1;
|
|
2500
2615
|
R(() => t.options, () => {
|
|
2501
2616
|
c(t.selectedOptions);
|
|
@@ -2504,36 +2619,36 @@ const Da = {
|
|
|
2504
2619
|
c,
|
|
2505
2620
|
{ immediate: !0 }
|
|
2506
2621
|
), R(() => t.shown, (g) => {
|
|
2507
|
-
g && xe(
|
|
2622
|
+
g && xe(s);
|
|
2508
2623
|
});
|
|
2509
|
-
function
|
|
2624
|
+
function s() {
|
|
2510
2625
|
l.value && (l.value.refreshOptions(), l.value.optionsRef.focus());
|
|
2511
2626
|
}
|
|
2512
2627
|
function r() {
|
|
2513
2628
|
l.value && (l.value.refreshOptions(), l.value.setCurrentActive());
|
|
2514
2629
|
}
|
|
2515
2630
|
function c(g = []) {
|
|
2516
|
-
const
|
|
2631
|
+
const k = new Set(g), C = [], B = [];
|
|
2517
2632
|
t.options.forEach((T) => {
|
|
2518
2633
|
const m = { ...T }, b = `${t.optionsId}-${T.value}-cb`;
|
|
2519
|
-
|
|
2634
|
+
k.has(T.value) ? (m.checkbox = { inputId: b, checked: !0 }, C.push(m)) : (m.checkbox = { inputId: b, checked: !1 }, B.push(m));
|
|
2520
2635
|
}), i.value = C, xe(() => {
|
|
2521
|
-
|
|
2636
|
+
d.value = B, xe(() => {
|
|
2522
2637
|
o && r(), o = !1;
|
|
2523
2638
|
});
|
|
2524
2639
|
});
|
|
2525
2640
|
}
|
|
2526
2641
|
function p(g = []) {
|
|
2527
|
-
const
|
|
2528
|
-
return t.options.forEach((
|
|
2529
|
-
|
|
2642
|
+
const k = new Set(g), C = [];
|
|
2643
|
+
return t.options.forEach((B) => {
|
|
2644
|
+
k.has(B.value) && C.push(B.value);
|
|
2530
2645
|
}), C;
|
|
2531
2646
|
}
|
|
2532
|
-
function
|
|
2533
|
-
const
|
|
2534
|
-
o = !0, a("update:selectedOptions",
|
|
2647
|
+
function w(g) {
|
|
2648
|
+
const k = t.selectedOptions.includes(g) ? t.selectedOptions.filter((C) => C !== g) : p([...t.selectedOptions, g]);
|
|
2649
|
+
o = !0, a("update:selectedOptions", k);
|
|
2535
2650
|
}
|
|
2536
|
-
return (g,
|
|
2651
|
+
return (g, k) => (u(), E(Ze, {
|
|
2537
2652
|
ref_key: "optlist",
|
|
2538
2653
|
ref: l,
|
|
2539
2654
|
"aria-multiselectable": "true",
|
|
@@ -2542,20 +2657,20 @@ const Da = {
|
|
|
2542
2657
|
multiselect: "",
|
|
2543
2658
|
"options-id": e.optionsId,
|
|
2544
2659
|
shown: e.shown,
|
|
2545
|
-
"onUpdate:modelValue":
|
|
2660
|
+
"onUpdate:modelValue": w
|
|
2546
2661
|
}, {
|
|
2547
|
-
default:
|
|
2662
|
+
default: O(() => {
|
|
2548
2663
|
var C;
|
|
2549
2664
|
return [
|
|
2550
|
-
V(
|
|
2665
|
+
V(Le, {
|
|
2551
2666
|
options: i.value,
|
|
2552
2667
|
"show-no-options": !1
|
|
2553
2668
|
}, null, 8, ["options"]),
|
|
2554
|
-
|
|
2555
|
-
[
|
|
2669
|
+
de(S("li", bn, yn, 512), [
|
|
2670
|
+
[se, (C = i.value) == null ? void 0 : C.length]
|
|
2556
2671
|
]),
|
|
2557
|
-
V(
|
|
2558
|
-
options:
|
|
2672
|
+
V(Le, {
|
|
2673
|
+
options: d.value,
|
|
2559
2674
|
"show-no-options": !1
|
|
2560
2675
|
}, null, 8, ["options"])
|
|
2561
2676
|
];
|
|
@@ -2563,10 +2678,10 @@ const Da = {
|
|
|
2563
2678
|
_: 1
|
|
2564
2679
|
}, 8, ["label", "options-id", "shown"]));
|
|
2565
2680
|
}
|
|
2566
|
-
},
|
|
2681
|
+
}, wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2567
2682
|
__proto__: null,
|
|
2568
2683
|
default: Sn
|
|
2569
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2684
|
+
}, Symbol.toStringTag, { value: "Module" })), Bn = {
|
|
2570
2685
|
__name: "BsDropdownWithOptionsNew",
|
|
2571
2686
|
props: {
|
|
2572
2687
|
// DROPDOWN PROPS
|
|
@@ -2648,10 +2763,10 @@ const Da = {
|
|
|
2648
2763
|
function i(o) {
|
|
2649
2764
|
a.value = !1, t("update:modelValue", o), t("close");
|
|
2650
2765
|
}
|
|
2651
|
-
function
|
|
2766
|
+
function d() {
|
|
2652
2767
|
a.value && (a.value = !1, t("close"));
|
|
2653
2768
|
}
|
|
2654
|
-
return (o,
|
|
2769
|
+
return (o, s) => (u(), E(f(mt), {
|
|
2655
2770
|
"anchor-id": e.anchorId,
|
|
2656
2771
|
breakout: e.breakout,
|
|
2657
2772
|
"container-id": e.containerId,
|
|
@@ -2662,12 +2777,12 @@ const Da = {
|
|
|
2662
2777
|
shown: e.shown,
|
|
2663
2778
|
"use-mobile-style": e.useMobileStyle,
|
|
2664
2779
|
width: e.width,
|
|
2665
|
-
onClose:
|
|
2666
|
-
onAfterEnter:
|
|
2780
|
+
onClose: d,
|
|
2781
|
+
onAfterEnter: s[0] || (s[0] = (r) => t("after-enter")),
|
|
2667
2782
|
onEnter: l,
|
|
2668
|
-
onAfterLeave:
|
|
2783
|
+
onAfterLeave: s[1] || (s[1] = (r) => t("after-leave"))
|
|
2669
2784
|
}, {
|
|
2670
|
-
default:
|
|
2785
|
+
default: O(() => [
|
|
2671
2786
|
V(f(Ze), {
|
|
2672
2787
|
label: e.label,
|
|
2673
2788
|
"model-value": e.modelValue,
|
|
@@ -2675,10 +2790,10 @@ const Da = {
|
|
|
2675
2790
|
"prevent-tab": e.preventTab,
|
|
2676
2791
|
"type-to-focus": e.typeToFocus,
|
|
2677
2792
|
"onUpdate:modelValue": i,
|
|
2678
|
-
onClose:
|
|
2793
|
+
onClose: d
|
|
2679
2794
|
}, {
|
|
2680
|
-
default:
|
|
2681
|
-
|
|
2795
|
+
default: O(() => [
|
|
2796
|
+
P(o.$slots, "default")
|
|
2682
2797
|
]),
|
|
2683
2798
|
_: 3
|
|
2684
2799
|
}, 8, ["label", "model-value", "options-id", "prevent-tab", "type-to-focus"])
|
|
@@ -2800,37 +2915,37 @@ const Da = {
|
|
|
2800
2915
|
"after-leave"
|
|
2801
2916
|
],
|
|
2802
2917
|
setup(e, { emit: n }) {
|
|
2803
|
-
const t = e, a = n, { transition: l } = Ee(t), i = v(() => t.width === "toggle" ? "anchor" : t.width),
|
|
2918
|
+
const t = e, a = n, { transition: l } = Ee(t), i = v(() => t.width === "toggle" ? "anchor" : t.width), d = v(() => t.top ? "top" : t.center ? "center" : t.right ? "right" : t.position), o = v(() => t.toggleId ? t.toggleId : t.anchorId), s = v(() => t.selectedValue || t.modelValue);
|
|
2804
2919
|
function r(c) {
|
|
2805
2920
|
a("optselected", c), a("update:modelValue", c);
|
|
2806
2921
|
}
|
|
2807
|
-
return (c, p) => (
|
|
2922
|
+
return (c, p) => (u(), E(Bn, {
|
|
2808
2923
|
"anchor-id": o.value,
|
|
2809
2924
|
breakout: e.breakout,
|
|
2810
2925
|
"container-id": e.containerId,
|
|
2811
2926
|
"helper-description": e.helperDescription,
|
|
2812
2927
|
"helper-text": e.helperText,
|
|
2813
2928
|
label: e.label,
|
|
2814
|
-
"model-value":
|
|
2929
|
+
"model-value": s.value,
|
|
2815
2930
|
"options-id": e.optionsId,
|
|
2816
|
-
position:
|
|
2931
|
+
position: d.value,
|
|
2817
2932
|
preloaded: e.preloaded,
|
|
2818
2933
|
"prevent-tab": e.preventTab,
|
|
2819
2934
|
shown: f(l),
|
|
2820
2935
|
"use-mobile-style": e.useMobileStyle,
|
|
2821
2936
|
width: i.value,
|
|
2822
|
-
onClose: p[0] || (p[0] = (
|
|
2823
|
-
onAfterEnter: p[1] || (p[1] = (
|
|
2824
|
-
onAfterLeave: p[2] || (p[2] = (
|
|
2937
|
+
onClose: p[0] || (p[0] = (w) => a("close")),
|
|
2938
|
+
onAfterEnter: p[1] || (p[1] = (w) => a("after-enter")),
|
|
2939
|
+
onAfterLeave: p[2] || (p[2] = (w) => a("after-leave")),
|
|
2825
2940
|
"onUpdate:modelValue": r
|
|
2826
2941
|
}, {
|
|
2827
|
-
default:
|
|
2828
|
-
|
|
2942
|
+
default: O(() => [
|
|
2943
|
+
P(c.$slots, "default")
|
|
2829
2944
|
]),
|
|
2830
2945
|
_: 3
|
|
2831
2946
|
}, 8, ["anchor-id", "breakout", "container-id", "helper-description", "helper-text", "label", "model-value", "options-id", "position", "preloaded", "prevent-tab", "shown", "use-mobile-style", "width"]));
|
|
2832
2947
|
}
|
|
2833
|
-
}, $n = ["view-box"], In = ["id"], kn = ["offset", "stop-color"],
|
|
2948
|
+
}, $n = ["view-box"], In = ["id"], kn = ["offset", "stop-color"], go = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2834
2949
|
__name: "BsIconGradientWrapper",
|
|
2835
2950
|
setup(e) {
|
|
2836
2951
|
const n = y(null), t = y(null), a = [
|
|
@@ -2838,18 +2953,18 @@ const Da = {
|
|
|
2838
2953
|
{ offset: 0.5466, color: "#1C0087" },
|
|
2839
2954
|
{ offset: 0.9715, color: "#0086EA" }
|
|
2840
2955
|
], [l] = Z();
|
|
2841
|
-
return
|
|
2956
|
+
return Y(() => {
|
|
2842
2957
|
t.value = n.value.querySelector("svg").getAttribute("viewBox") || "0 0 0 0";
|
|
2843
|
-
}), (i,
|
|
2958
|
+
}), (i, d) => (u(), h(G, null, [
|
|
2844
2959
|
S("span", N({
|
|
2845
2960
|
ref_key: "svgWrapperRef",
|
|
2846
2961
|
ref: n,
|
|
2847
2962
|
class: "bs-icon-gradient-wrapper",
|
|
2848
2963
|
style: `fill: url(#${f(l)});`
|
|
2849
2964
|
}, i.$attrs), [
|
|
2850
|
-
|
|
2965
|
+
P(i.$slots, "default")
|
|
2851
2966
|
], 16),
|
|
2852
|
-
(
|
|
2967
|
+
(u(), h("svg", {
|
|
2853
2968
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2854
2969
|
"view-box": t.value,
|
|
2855
2970
|
width: "0",
|
|
@@ -2863,7 +2978,7 @@ const Da = {
|
|
|
2863
2978
|
y2: "100%",
|
|
2864
2979
|
"gradient-units": "userSpaceOnUse"
|
|
2865
2980
|
}, [
|
|
2866
|
-
(
|
|
2981
|
+
(u(), h(G, null, _(a, (o) => S("stop", {
|
|
2867
2982
|
key: o.offset,
|
|
2868
2983
|
offset: o.offset,
|
|
2869
2984
|
"stop-color": o.color
|
|
@@ -2872,7 +2987,7 @@ const Da = {
|
|
|
2872
2987
|
], 8, $n))
|
|
2873
2988
|
], 64));
|
|
2874
2989
|
}
|
|
2875
|
-
}),
|
|
2990
|
+
}), yo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
2876
2991
|
__name: "BsInputField",
|
|
2877
2992
|
props: {
|
|
2878
2993
|
/** Sets the disabled state on input, disabled styles on label. */
|
|
@@ -2919,43 +3034,43 @@ const Da = {
|
|
|
2919
3034
|
},
|
|
2920
3035
|
emits: ["update:modelValue"],
|
|
2921
3036
|
setup(e, { emit: n }) {
|
|
2922
|
-
const t = e, [a, l] = Z(2), i = v(() =>
|
|
3037
|
+
const t = e, [a, l] = Z(2), i = v(() => fe.concat(t.passAttrs.split(",")).concat("type")), d = v(() => {
|
|
2923
3038
|
var r, c;
|
|
2924
3039
|
return ((c = (r = t.hints) == null ? void 0 : r.join) == null ? void 0 : c.call(r, `
|
|
2925
3040
|
`)) || t.hints;
|
|
2926
|
-
}), o = v(() => t.error && t.errorMsg || t.hint ||
|
|
2927
|
-
return (r, c) => (
|
|
2928
|
-
e.label || r.$slots.label ? (
|
|
3041
|
+
}), o = v(() => t.error && t.errorMsg || t.hint || d.value || void 0), s = v(() => t.inputId || a.value);
|
|
3042
|
+
return (r, c) => (u(), h("div", N({ "data-component": "bs-input-field" }, f(K)(r.$attrs, i.value).remaining), [
|
|
3043
|
+
e.label || r.$slots.label ? (u(), E(te, {
|
|
2929
3044
|
key: 0,
|
|
2930
|
-
for: r.$attrs.id ||
|
|
3045
|
+
for: r.$attrs.id || s.value,
|
|
2931
3046
|
disabled: e.disabled,
|
|
2932
3047
|
required: e.required
|
|
2933
3048
|
}, {
|
|
2934
|
-
default:
|
|
2935
|
-
|
|
3049
|
+
default: O(() => [
|
|
3050
|
+
P(r.$slots, "label", {}, () => [
|
|
2936
3051
|
H(A(e.label), 1)
|
|
2937
3052
|
])
|
|
2938
3053
|
]),
|
|
2939
3054
|
_: 3
|
|
2940
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
2941
|
-
V(
|
|
3055
|
+
}, 8, ["for", "disabled", "required"])) : I("", !0),
|
|
3056
|
+
V(Be, N({
|
|
2942
3057
|
disabled: e.disabled,
|
|
2943
3058
|
error: e.error,
|
|
2944
3059
|
"hint-id": f(l),
|
|
2945
|
-
id: r.$attrs.id ||
|
|
3060
|
+
id: r.$attrs.id || s.value,
|
|
2946
3061
|
placeholder: e.placeholder,
|
|
2947
3062
|
required: e.required,
|
|
2948
3063
|
type: e.type,
|
|
2949
3064
|
value: e.value || e.modelValue,
|
|
2950
3065
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => r.$emit("update:modelValue", p))
|
|
2951
3066
|
}, f(K)(r.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "type", "value"]),
|
|
2952
|
-
o.value ? (
|
|
3067
|
+
o.value ? (u(), E(be, {
|
|
2953
3068
|
key: 1,
|
|
2954
3069
|
error: e.error,
|
|
2955
3070
|
"error-msg": e.errorMsg,
|
|
2956
|
-
hint: e.hint ||
|
|
3071
|
+
hint: e.hint || d.value,
|
|
2957
3072
|
"hint-id": f(l)
|
|
2958
|
-
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) :
|
|
3073
|
+
}, null, 8, ["error", "error-msg", "hint", "hint-id"])) : I("", !0)
|
|
2959
3074
|
], 16));
|
|
2960
3075
|
}
|
|
2961
3076
|
}), rt = {
|
|
@@ -3011,8 +3126,8 @@ const Da = {
|
|
|
3011
3126
|
* @returns {Country[]} an array of country objects
|
|
3012
3127
|
*/
|
|
3013
3128
|
initSourceData() {
|
|
3014
|
-
return this.data.allCountries || (this.data.allCountries =
|
|
3015
|
-
const n =
|
|
3129
|
+
return this.data.allCountries || (this.data.allCountries = Yt().map((e) => {
|
|
3130
|
+
const n = Xt(e), t = rt[n[0]] + rt[n[1]] || "";
|
|
3016
3131
|
return {
|
|
3017
3132
|
label: `+${e}`,
|
|
3018
3133
|
flag: t,
|
|
@@ -3029,7 +3144,7 @@ const Da = {
|
|
|
3029
3144
|
}, Tn = ["id", "aria-controls", "aria-expanded", "aria-label", "disabled"], Cn = { key: 0 }, xn = {
|
|
3030
3145
|
"aria-hidden": "true",
|
|
3031
3146
|
style: { width: "1.25rem" }
|
|
3032
|
-
}, An = { "aria-hidden": "true" },
|
|
3147
|
+
}, An = { "aria-hidden": "true" }, So = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3033
3148
|
__name: "BsInputPhone",
|
|
3034
3149
|
props: {
|
|
3035
3150
|
deferValidation: {
|
|
@@ -3091,69 +3206,69 @@ const Da = {
|
|
|
3091
3206
|
"Escape",
|
|
3092
3207
|
"Home",
|
|
3093
3208
|
"Tab"
|
|
3094
|
-
],
|
|
3209
|
+
], d = y(null), o = y(1), s = y([]), r = y(null), [
|
|
3095
3210
|
c,
|
|
3096
3211
|
p,
|
|
3097
|
-
|
|
3212
|
+
w,
|
|
3098
3213
|
g
|
|
3099
|
-
] = Z(4),
|
|
3214
|
+
] = Z(4), k = y(!1), C = y(""), B = y(""), T = y(!1), m = y(!1), b = y(!0);
|
|
3100
3215
|
n({
|
|
3101
3216
|
validationErr: T,
|
|
3102
|
-
validationErrMsg:
|
|
3217
|
+
validationErrMsg: B
|
|
3103
3218
|
});
|
|
3104
|
-
const q = v(() => C.value ? `+${o.value}${C.value}` : ""), M = v(() => `Country code: ${o.value}. Click to change.`), z = v(() => b.value ? a.errorMsg ||
|
|
3105
|
-
R(q, (
|
|
3106
|
-
l("update:modelValue",
|
|
3107
|
-
}), R(() => a.modelValue,
|
|
3108
|
-
function
|
|
3109
|
-
|
|
3219
|
+
const q = v(() => C.value ? `+${o.value}${C.value}` : ""), M = v(() => `Country code: ${o.value}. Click to change.`), z = v(() => b.value ? a.errorMsg || B.value : ""), W = v(() => a.error || T.value), ae = v(() => a.hint || W.value && z.value), J = v(() => b.value && W.value);
|
|
3220
|
+
R(q, (L) => {
|
|
3221
|
+
l("update:modelValue", L), F(L);
|
|
3222
|
+
}), R(() => a.modelValue, ve), Te(), Y(() => k.value = !0);
|
|
3223
|
+
function ve(L, U) {
|
|
3224
|
+
L === "" && L !== U && (C.value = "");
|
|
3110
3225
|
}
|
|
3111
3226
|
function $e() {
|
|
3112
|
-
var
|
|
3113
|
-
m.value && (m.value = !1, (
|
|
3227
|
+
var L;
|
|
3228
|
+
m.value && (m.value = !1, (L = d.value) == null || L.focus());
|
|
3114
3229
|
}
|
|
3115
|
-
function
|
|
3230
|
+
function ge(L) {
|
|
3116
3231
|
var U;
|
|
3117
|
-
o.value =
|
|
3232
|
+
o.value = L, m.value = !1, (U = d.value) == null || U.focus(), x(L);
|
|
3118
3233
|
}
|
|
3119
3234
|
function Ie() {
|
|
3120
3235
|
a.deferValidation && (b.value = !0), l("input-blur");
|
|
3121
3236
|
}
|
|
3122
|
-
function ke(
|
|
3123
|
-
C.value =
|
|
3237
|
+
function ke(L) {
|
|
3238
|
+
C.value = L.target.value, a.deferValidation && (b.value = !1);
|
|
3124
3239
|
}
|
|
3125
|
-
function ie(
|
|
3126
|
-
var U,
|
|
3127
|
-
!((
|
|
3240
|
+
function ie(L) {
|
|
3241
|
+
var U, X;
|
|
3242
|
+
!((X = (U = L.key) == null ? void 0 : U.match) != null && X.call(U, /[0-9]/)) && !i.includes(L.key) && !L.ctrlKey && !L.metaKey && L.preventDefault();
|
|
3128
3243
|
}
|
|
3129
3244
|
function Te() {
|
|
3130
|
-
ze.initSourceData(),
|
|
3245
|
+
ze.initSourceData(), ye(), x(o.value), F(q.value);
|
|
3131
3246
|
}
|
|
3132
|
-
function
|
|
3133
|
-
var U,
|
|
3134
|
-
let
|
|
3135
|
-
|
|
3247
|
+
function ye() {
|
|
3248
|
+
var U, X;
|
|
3249
|
+
let L = at(a.modelValue);
|
|
3250
|
+
L.valid || L.countryCode && ((X = (U = a.modelValue) == null ? void 0 : U.startsWith) != null && X.call(U, "+")) ? (o.value = L.countryCode, C.value = L.number.significant) : C.value = a.modelValue, s.value = ze.data.allCountries.map((Ce) => ({
|
|
3136
3251
|
...Ce,
|
|
3137
3252
|
isSelected: o.value === Ce
|
|
3138
3253
|
}));
|
|
3139
3254
|
}
|
|
3140
|
-
function x(
|
|
3141
|
-
r.value = ze.getCountryByCountryCode(
|
|
3255
|
+
function x(L) {
|
|
3256
|
+
r.value = ze.getCountryByCountryCode(L);
|
|
3142
3257
|
}
|
|
3143
|
-
function F(
|
|
3144
|
-
T.value =
|
|
3258
|
+
function F(L) {
|
|
3259
|
+
T.value = L ? !at(L).valid : !1, B.value = T.value ? "Invalid phone number" : "";
|
|
3145
3260
|
}
|
|
3146
|
-
return (
|
|
3261
|
+
return (L, U) => (u(), h("div", N({
|
|
3147
3262
|
class: "bs-input-phone",
|
|
3148
3263
|
"data-component": "bs-input-phone"
|
|
3149
|
-
}, f(K)(
|
|
3150
|
-
V(
|
|
3151
|
-
for:
|
|
3264
|
+
}, f(K)(L.$attrs, f(fe)).remaining), [
|
|
3265
|
+
V(te, {
|
|
3266
|
+
for: L.$attrs.id || e.inputId || f(g),
|
|
3152
3267
|
required: e.required,
|
|
3153
3268
|
disabled: e.disabled,
|
|
3154
3269
|
class: oe({ "visually-hidden": e.hideLabel })
|
|
3155
3270
|
}, {
|
|
3156
|
-
default:
|
|
3271
|
+
default: O(() => [
|
|
3157
3272
|
H(A(e.label), 1)
|
|
3158
3273
|
]),
|
|
3159
3274
|
_: 1
|
|
@@ -3164,13 +3279,13 @@ const Da = {
|
|
|
3164
3279
|
multifocus: !0,
|
|
3165
3280
|
variant: "inner-bordered"
|
|
3166
3281
|
}, {
|
|
3167
|
-
default:
|
|
3168
|
-
var
|
|
3282
|
+
default: O(() => {
|
|
3283
|
+
var X;
|
|
3169
3284
|
return [
|
|
3170
3285
|
S("button", {
|
|
3171
3286
|
id: f(c),
|
|
3172
3287
|
ref_key: "countryCodesToggle",
|
|
3173
|
-
ref:
|
|
3288
|
+
ref: d,
|
|
3174
3289
|
"aria-controls": f(p),
|
|
3175
3290
|
"aria-expanded": m.value,
|
|
3176
3291
|
"aria-haspopup": "listbox",
|
|
@@ -3179,19 +3294,19 @@ const Da = {
|
|
|
3179
3294
|
type: "button",
|
|
3180
3295
|
onClick: U[0] || (U[0] = (Ce) => m.value = !m.value)
|
|
3181
3296
|
}, [
|
|
3182
|
-
S("span", null, A((
|
|
3297
|
+
S("span", null, A((X = r.value) == null ? void 0 : X.flag), 1),
|
|
3183
3298
|
S("span", null, "+" + A(o.value), 1),
|
|
3184
|
-
V(f(
|
|
3299
|
+
V(f(Ct), { size: "sm" })
|
|
3185
3300
|
], 8, Tn),
|
|
3186
|
-
V(
|
|
3187
|
-
"input-id":
|
|
3301
|
+
V(Be, N({
|
|
3302
|
+
"input-id": L.$attrs.id || e.inputId || f(g),
|
|
3188
3303
|
disabled: e.disabled,
|
|
3189
|
-
"hint-id": f(
|
|
3304
|
+
"hint-id": f(w),
|
|
3190
3305
|
placeholder: e.placeholder,
|
|
3191
3306
|
value: C.value,
|
|
3192
3307
|
"data-autowidth": "",
|
|
3193
3308
|
type: "tel"
|
|
3194
|
-
}, f(K)(
|
|
3309
|
+
}, f(K)(L.$attrs, f(fe)).filtered, {
|
|
3195
3310
|
onInput: ke,
|
|
3196
3311
|
onFocusout: Ie,
|
|
3197
3312
|
onKeydown: ie
|
|
@@ -3200,15 +3315,15 @@ const Da = {
|
|
|
3200
3315
|
}),
|
|
3201
3316
|
_: 1
|
|
3202
3317
|
}, 8, ["disabled", "error"]),
|
|
3203
|
-
|
|
3318
|
+
de(V(be, {
|
|
3204
3319
|
error: W.value,
|
|
3205
3320
|
"error-msg": z.value,
|
|
3206
3321
|
hint: e.hint,
|
|
3207
|
-
"hint-id": f(
|
|
3322
|
+
"hint-id": f(w)
|
|
3208
3323
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
3209
|
-
[
|
|
3324
|
+
[se, ae.value]
|
|
3210
3325
|
]),
|
|
3211
|
-
|
|
3326
|
+
k.value ? (u(), h("div", Cn, [
|
|
3212
3327
|
V(Qe, {
|
|
3213
3328
|
"anchor-id": f(c),
|
|
3214
3329
|
"helper-text": "Country Code",
|
|
@@ -3219,25 +3334,25 @@ const Da = {
|
|
|
3219
3334
|
shown: m.value,
|
|
3220
3335
|
width: "content",
|
|
3221
3336
|
onClose: $e,
|
|
3222
|
-
"onUpdate:modelValue":
|
|
3337
|
+
"onUpdate:modelValue": ge
|
|
3223
3338
|
}, {
|
|
3224
|
-
default:
|
|
3225
|
-
|
|
3226
|
-
"aria-label":
|
|
3227
|
-
key:
|
|
3228
|
-
value: `${
|
|
3339
|
+
default: O(() => [
|
|
3340
|
+
k.value ? (u(!0), h(G, { key: 0 }, _(s.value, (X) => (u(), E(Xe, {
|
|
3341
|
+
"aria-label": X.value,
|
|
3342
|
+
key: X.value,
|
|
3343
|
+
value: `${X.value}`,
|
|
3229
3344
|
variant: "2-col"
|
|
3230
3345
|
}, {
|
|
3231
|
-
default:
|
|
3232
|
-
S("span", xn, A(
|
|
3233
|
-
S("span", An, A(
|
|
3346
|
+
default: O(() => [
|
|
3347
|
+
S("span", xn, A(X == null ? void 0 : X.flag), 1),
|
|
3348
|
+
S("span", An, A(X.label), 1)
|
|
3234
3349
|
]),
|
|
3235
3350
|
_: 2
|
|
3236
|
-
}, 1032, ["aria-label", "value"]))), 128)) :
|
|
3351
|
+
}, 1032, ["aria-label", "value"]))), 128)) : I("", !0)
|
|
3237
3352
|
]),
|
|
3238
3353
|
_: 1
|
|
3239
3354
|
}, 8, ["anchor-id", "model-value", "options-id", "shown"])
|
|
3240
|
-
])) :
|
|
3355
|
+
])) : I("", !0)
|
|
3241
3356
|
], 16));
|
|
3242
3357
|
}
|
|
3243
3358
|
}), Vn = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
@@ -3285,41 +3400,41 @@ const Da = {
|
|
|
3285
3400
|
},
|
|
3286
3401
|
emits: ["clear", "update:modelValue"],
|
|
3287
3402
|
setup(e, { emit: n }) {
|
|
3288
|
-
const t = e, a = v(() =>
|
|
3289
|
-
return (i,
|
|
3403
|
+
const t = e, a = v(() => fe.concat(t.passAttrs.split(","))), l = v(() => !t.disabled && !t.hideClear && t.variant !== "filter");
|
|
3404
|
+
return (i, d) => (u(), E(Pe, N({
|
|
3290
3405
|
class: "bs-input-search",
|
|
3291
3406
|
"data-component": "bs-input-search",
|
|
3292
3407
|
"data-variant": e.variant,
|
|
3293
3408
|
disabled: e.disabled
|
|
3294
3409
|
}, f(K)(i.$attrs, a.value).remaining), {
|
|
3295
|
-
default:
|
|
3296
|
-
e.hideSearchIcon ?
|
|
3297
|
-
V(
|
|
3410
|
+
default: O(() => [
|
|
3411
|
+
e.hideSearchIcon ? I("", !0) : (u(), E(f(xt), { key: 0 })),
|
|
3412
|
+
V(Be, N({
|
|
3298
3413
|
"data-autowidth": "",
|
|
3299
3414
|
disabled: e.disabled,
|
|
3300
3415
|
"input-id": i.$attrs.id || e.inputId,
|
|
3301
3416
|
placeholder: e.placeholder,
|
|
3302
3417
|
value: e.value || e.modelValue
|
|
3303
3418
|
}, f(K)(i.$attrs, a.value).filtered, {
|
|
3304
|
-
"onUpdate:modelValue":
|
|
3419
|
+
"onUpdate:modelValue": d[0] || (d[0] = (o) => i.$emit("update:modelValue", o))
|
|
3305
3420
|
}), null, 16, ["disabled", "input-id", "placeholder", "value"]),
|
|
3306
|
-
|
|
3421
|
+
de(S("button", {
|
|
3307
3422
|
title: "Clear",
|
|
3308
3423
|
type: "button",
|
|
3309
|
-
onClick:
|
|
3424
|
+
onClick: d[1] || (d[1] = (o) => i.$emit("clear"))
|
|
3310
3425
|
}, [
|
|
3311
3426
|
V(f(Ve), { size: "sm" })
|
|
3312
3427
|
], 512), [
|
|
3313
|
-
[
|
|
3428
|
+
[se, l.value]
|
|
3314
3429
|
])
|
|
3315
3430
|
]),
|
|
3316
3431
|
_: 1
|
|
3317
3432
|
}, 16, ["data-variant", "disabled"]));
|
|
3318
3433
|
}
|
|
3319
|
-
}), En = ["data-size", "data-variant"], Pn = /* @__PURE__ */ S("span", null, null, -1),
|
|
3434
|
+
}), En = ["data-size", "data-variant"], Pn = /* @__PURE__ */ S("span", null, null, -1), On = /* @__PURE__ */ S("span", null, null, -1), Ln = /* @__PURE__ */ S("span", null, null, -1), qn = /* @__PURE__ */ S("span", null, null, -1), Dn = /* @__PURE__ */ S("span", { class: "visually-hidden" }, "Loading", -1), Mn = [
|
|
3320
3435
|
Pn,
|
|
3321
|
-
Ln,
|
|
3322
3436
|
On,
|
|
3437
|
+
Ln,
|
|
3323
3438
|
qn,
|
|
3324
3439
|
Dn
|
|
3325
3440
|
], Nn = {
|
|
@@ -3336,14 +3451,14 @@ const Da = {
|
|
|
3336
3451
|
}
|
|
3337
3452
|
},
|
|
3338
3453
|
setup(e) {
|
|
3339
|
-
return (n, t) => (
|
|
3454
|
+
return (n, t) => (u(), h("span", {
|
|
3340
3455
|
class: "bs-loader",
|
|
3341
3456
|
"data-size": e.size,
|
|
3342
3457
|
"data-variant": e.variant,
|
|
3343
3458
|
role: "status"
|
|
3344
3459
|
}, Mn, 8, En));
|
|
3345
3460
|
}
|
|
3346
|
-
}, zn = ["id"],
|
|
3461
|
+
}, zn = ["id"], wo = {
|
|
3347
3462
|
__name: "BsInputTypeahead",
|
|
3348
3463
|
props: {
|
|
3349
3464
|
characterThreshold: {
|
|
@@ -3400,6 +3515,10 @@ const Da = {
|
|
|
3400
3515
|
type: Boolean,
|
|
3401
3516
|
default: !1
|
|
3402
3517
|
},
|
|
3518
|
+
showDropdownOnFocus: {
|
|
3519
|
+
type: Boolean,
|
|
3520
|
+
default: !1
|
|
3521
|
+
},
|
|
3403
3522
|
typeaheadId: {
|
|
3404
3523
|
type: String,
|
|
3405
3524
|
default: void 0
|
|
@@ -3407,59 +3526,63 @@ const Da = {
|
|
|
3407
3526
|
},
|
|
3408
3527
|
emits: ["update:inputValue", "update:optionsValue"],
|
|
3409
3528
|
setup(e, { emit: n }) {
|
|
3410
|
-
const t = e, a = n, l = y(!1), i = y(!1), [
|
|
3529
|
+
const t = e, a = n, l = y(!1), i = y(!1), [d] = Z();
|
|
3411
3530
|
let o = [];
|
|
3412
3531
|
R(() => t.inputValue, () => {
|
|
3413
3532
|
i.value ? i.value = !1 : C();
|
|
3414
3533
|
});
|
|
3415
|
-
const
|
|
3534
|
+
const s = v(() => t.typeaheadId || d.value), r = v(() => `${s.value}-input-container`), c = v(() => `${s.value}-input`), p = v(() => `${s.value}-options`), w = v(() => {
|
|
3416
3535
|
if (l.value) {
|
|
3417
3536
|
let m = t.options;
|
|
3418
3537
|
const b = t.inputValue.toLowerCase(), q = t.filterType === "includes" ? "includes" : "startsWith";
|
|
3419
|
-
return m = g(m, b, q), m = m.slice(0, t.maxOptions), m =
|
|
3538
|
+
return t.inputValue.length >= t.characterThreshold && (m = g(m, b, q), m = m.slice(0, t.maxOptions), m = k(m, b, q), o = m), m;
|
|
3420
3539
|
} else
|
|
3421
3540
|
return o;
|
|
3422
3541
|
});
|
|
3423
3542
|
function g(m, b, q) {
|
|
3424
3543
|
return t.internalFiltering ? m.filter((M) => M.label.toLowerCase()[q](b)) : m;
|
|
3425
3544
|
}
|
|
3426
|
-
function
|
|
3545
|
+
function k(m, b, q) {
|
|
3427
3546
|
return m.map((M) => {
|
|
3428
3547
|
let z = M.label;
|
|
3429
3548
|
if (b !== "") {
|
|
3430
|
-
const W = q === "includes" ? "gi" : "i",
|
|
3431
|
-
z = M.label.replace(
|
|
3549
|
+
const W = q === "includes" ? "gi" : "i", ae = new RegExp(`(${b})`, W);
|
|
3550
|
+
z = M.label.replace(ae, '<span style="color: var(--bs-blue-base)">$1</span>');
|
|
3432
3551
|
}
|
|
3433
3552
|
return { ...M, labelHtml: z };
|
|
3434
3553
|
});
|
|
3435
3554
|
}
|
|
3436
3555
|
function C() {
|
|
3437
|
-
t.inputValue.length >= t.characterThreshold ? l.value = !0 : l.value = !1;
|
|
3556
|
+
t.showDropdownOnFocus || t.inputValue.length >= t.characterThreshold ? l.value = !0 : l.value = !1;
|
|
3438
3557
|
}
|
|
3439
|
-
function
|
|
3558
|
+
function B() {
|
|
3440
3559
|
a("update:inputValue", ""), a("update:optionsValue", ""), document.getElementById(c.value).focus();
|
|
3441
3560
|
}
|
|
3442
3561
|
function T(m) {
|
|
3443
3562
|
i.value = !0, l.value = !1;
|
|
3444
|
-
const b =
|
|
3563
|
+
const b = w.value.find((q) => q.value === m);
|
|
3445
3564
|
a("update:inputValue", b.label), a("update:optionsValue", m);
|
|
3446
3565
|
}
|
|
3447
|
-
return (m, b) => (
|
|
3448
|
-
e.label || m.$slots.label ? (
|
|
3566
|
+
return (m, b) => (u(), h(G, null, [
|
|
3567
|
+
e.label || m.$slots.label ? (u(), E(te, {
|
|
3449
3568
|
key: 0,
|
|
3450
3569
|
for: c.value,
|
|
3451
3570
|
disabled: e.disabled,
|
|
3452
3571
|
required: e.required
|
|
3453
3572
|
}, {
|
|
3454
|
-
default:
|
|
3455
|
-
|
|
3573
|
+
default: O(() => [
|
|
3574
|
+
P(m.$slots, "label", {}, () => [
|
|
3456
3575
|
H(A(e.label), 1)
|
|
3457
3576
|
])
|
|
3458
3577
|
]),
|
|
3459
3578
|
_: 3
|
|
3460
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
3461
|
-
S("div", {
|
|
3579
|
+
}, 8, ["for", "disabled", "required"])) : I("", !0),
|
|
3580
|
+
S("div", {
|
|
3581
|
+
id: r.value,
|
|
3582
|
+
class: "typeahead-search-wrapper"
|
|
3583
|
+
}, [
|
|
3462
3584
|
V(Vn, N({
|
|
3585
|
+
id: r.value,
|
|
3463
3586
|
"aria-controls": p.value,
|
|
3464
3587
|
"aria-expanded": l.value,
|
|
3465
3588
|
"aria-haspopup": "listbox",
|
|
@@ -3473,10 +3596,10 @@ const Da = {
|
|
|
3473
3596
|
role: "combobox",
|
|
3474
3597
|
value: e.inputValue
|
|
3475
3598
|
}, m.$attrs, {
|
|
3476
|
-
onClear:
|
|
3599
|
+
onClear: B,
|
|
3477
3600
|
onFocusin: C,
|
|
3478
3601
|
"onUpdate:modelValue": b[0] || (b[0] = (q) => a("update:inputValue", q))
|
|
3479
|
-
}), null, 16, ["aria-controls", "aria-expanded", "disabled", "hide-clear", "hide-search-icon", "input-id", "placeholder", "value"])
|
|
3602
|
+
}), null, 16, ["id", "aria-controls", "aria-expanded", "disabled", "hide-clear", "hide-search-icon", "input-id", "placeholder", "value"])
|
|
3480
3603
|
], 8, zn),
|
|
3481
3604
|
V(Qe, {
|
|
3482
3605
|
"anchor-id": r.value,
|
|
@@ -3490,17 +3613,17 @@ const Da = {
|
|
|
3490
3613
|
onClose: b[1] || (b[1] = (q) => l.value = !1),
|
|
3491
3614
|
"onUpdate:modelValue": T
|
|
3492
3615
|
}, {
|
|
3493
|
-
default:
|
|
3494
|
-
V(
|
|
3616
|
+
default: O(() => [
|
|
3617
|
+
V(Le, { options: w.value }, ft({ _: 2 }, [
|
|
3495
3618
|
e.loading ? {
|
|
3496
3619
|
name: "no-options",
|
|
3497
|
-
fn:
|
|
3620
|
+
fn: O(() => [
|
|
3498
3621
|
V(Nn, { size: "xs" })
|
|
3499
3622
|
]),
|
|
3500
3623
|
key: "0"
|
|
3501
3624
|
} : {
|
|
3502
3625
|
name: "no-options",
|
|
3503
|
-
fn:
|
|
3626
|
+
fn: O(() => [
|
|
3504
3627
|
H("No results found")
|
|
3505
3628
|
]),
|
|
3506
3629
|
key: "1"
|
|
@@ -3543,15 +3666,15 @@ const Da = {
|
|
|
3543
3666
|
const t = e, a = n, { transition: l } = Ee(t);
|
|
3544
3667
|
return R(l, (i) => {
|
|
3545
3668
|
i ? document.body.setAttribute("data-scroll", "false") : document.body.removeAttribute("data-scroll");
|
|
3546
|
-
}), (i,
|
|
3669
|
+
}), (i, d) => (u(), E(f(Me), {
|
|
3547
3670
|
shown: f(l),
|
|
3548
3671
|
preloaded: e.preloaded,
|
|
3549
3672
|
duration: 75,
|
|
3550
3673
|
"enter-attribute": "data-shown",
|
|
3551
|
-
onAfterEnter:
|
|
3552
|
-
onAfterLeave:
|
|
3674
|
+
onAfterEnter: d[0] || (d[0] = (o) => a("after-enter")),
|
|
3675
|
+
onAfterLeave: d[1] || (d[1] = (o) => a("after-leave"))
|
|
3553
3676
|
}, {
|
|
3554
|
-
default:
|
|
3677
|
+
default: O(() => [
|
|
3555
3678
|
Rn
|
|
3556
3679
|
]),
|
|
3557
3680
|
_: 1
|
|
@@ -3603,19 +3726,19 @@ const Da = {
|
|
|
3603
3726
|
emits: ["close", "after-enter", "after-leave"],
|
|
3604
3727
|
setup(e, { emit: n }) {
|
|
3605
3728
|
const t = e, a = n, { transition: l } = Ee(t), [i] = Z();
|
|
3606
|
-
let
|
|
3607
|
-
const o = y(null),
|
|
3729
|
+
let d = !1;
|
|
3730
|
+
const o = y(null), s = (p) => {
|
|
3608
3731
|
o.value && p.target.closest(".bs-overlay") && a("close", t.modalId);
|
|
3609
3732
|
};
|
|
3610
|
-
|
|
3611
|
-
document.addEventListener("click",
|
|
3612
|
-
}),
|
|
3613
|
-
document.removeEventListener("click",
|
|
3614
|
-
}),
|
|
3615
|
-
|
|
3733
|
+
Y(() => {
|
|
3734
|
+
document.addEventListener("click", s);
|
|
3735
|
+
}), me(() => {
|
|
3736
|
+
document.removeEventListener("click", s);
|
|
3737
|
+
}), we(["Escape"], () => {
|
|
3738
|
+
d && a("close", t.modalId);
|
|
3616
3739
|
});
|
|
3617
3740
|
const r = () => !t.title && t.closeButton, c = () => t.title && t.closeButton;
|
|
3618
|
-
return (p,
|
|
3741
|
+
return (p, w) => (u(), h(G, null, [
|
|
3619
3742
|
V(Fn, {
|
|
3620
3743
|
shown: f(l),
|
|
3621
3744
|
preloaded: e.preloaded,
|
|
@@ -3628,11 +3751,11 @@ const Da = {
|
|
|
3628
3751
|
preloaded: e.preloaded,
|
|
3629
3752
|
duration: 75,
|
|
3630
3753
|
"enter-attribute": "data-shown",
|
|
3631
|
-
onEnter:
|
|
3632
|
-
onAfterEnter:
|
|
3633
|
-
onAfterLeave:
|
|
3754
|
+
onEnter: w[1] || (w[1] = (g) => kt(d) ? d.value = !0 : d = !0),
|
|
3755
|
+
onAfterEnter: w[2] || (w[2] = (g) => a("after-enter")),
|
|
3756
|
+
onAfterLeave: w[3] || (w[3] = (g) => a("after-leave"))
|
|
3634
3757
|
}, {
|
|
3635
|
-
default:
|
|
3758
|
+
default: O(() => [
|
|
3636
3759
|
S("div", N({
|
|
3637
3760
|
id: e.modalId,
|
|
3638
3761
|
class: "bs-modal",
|
|
@@ -3643,29 +3766,29 @@ const Da = {
|
|
|
3643
3766
|
ref_key: "modalRef",
|
|
3644
3767
|
ref: o
|
|
3645
3768
|
}), [
|
|
3646
|
-
e.title || e.closeButton ? (
|
|
3769
|
+
e.title || e.closeButton ? (u(), h("header", {
|
|
3647
3770
|
key: 0,
|
|
3648
3771
|
class: oe({
|
|
3649
3772
|
"only-close-button-modal-header": r,
|
|
3650
3773
|
"modal-header": c
|
|
3651
3774
|
})
|
|
3652
3775
|
}, [
|
|
3653
|
-
e.title ? (
|
|
3776
|
+
e.title ? (u(), h("span", {
|
|
3654
3777
|
key: 0,
|
|
3655
3778
|
id: f(i),
|
|
3656
3779
|
class: "modal-title"
|
|
3657
|
-
}, A(e.title), 9, Wn)) :
|
|
3658
|
-
e.closeButton ? (
|
|
3780
|
+
}, A(e.title), 9, Wn)) : I("", !0),
|
|
3781
|
+
e.closeButton ? (u(), h("button", {
|
|
3659
3782
|
key: 1,
|
|
3660
3783
|
type: "button",
|
|
3661
3784
|
title: "Close Modal",
|
|
3662
3785
|
"aria-label": "Close Modal",
|
|
3663
|
-
onClick:
|
|
3786
|
+
onClick: w[0] || (w[0] = (g) => a("close", e.modalId))
|
|
3664
3787
|
}, [
|
|
3665
3788
|
V(f(Ve), { class: "close-button" })
|
|
3666
|
-
])) :
|
|
3667
|
-
], 2)) :
|
|
3668
|
-
|
|
3789
|
+
])) : I("", !0)
|
|
3790
|
+
], 2)) : I("", !0),
|
|
3791
|
+
P(p.$slots, "default")
|
|
3669
3792
|
], 16, jn)
|
|
3670
3793
|
]),
|
|
3671
3794
|
_: 3
|
|
@@ -3681,7 +3804,7 @@ const Da = {
|
|
|
3681
3804
|
}, Qn = ["title", "data-selected", "onClick"], Jn = { key: 2 }, _n = { key: 3 }, el = /* @__PURE__ */ S("span", null, "Results Per Page:", -1), tl = { class: "bs-pagination-results-numbers" }, al = ["data-selected", "disabled", "onClick"], nl = {
|
|
3682
3805
|
key: 5,
|
|
3683
3806
|
class: "bs-pagination-carets"
|
|
3684
|
-
}, ll = ["aria-label", "title", "disabled"], ol = { key: 0 }, il = ["aria-label", "title", "disabled"], rl = { key: 0 },
|
|
3807
|
+
}, ll = ["aria-label", "title", "disabled"], ol = { key: 0 }, il = ["aria-label", "title", "disabled"], rl = { key: 0 }, $o = {
|
|
3685
3808
|
__name: "BsPagination",
|
|
3686
3809
|
props: {
|
|
3687
3810
|
// Used for all
|
|
@@ -3768,24 +3891,24 @@ const Da = {
|
|
|
3768
3891
|
emits: ["selchange", "update:modelValue"],
|
|
3769
3892
|
setup(e, { emit: n }) {
|
|
3770
3893
|
const t = e, a = n, l = y(null);
|
|
3771
|
-
|
|
3894
|
+
Y(() => {
|
|
3772
3895
|
i.value ? l.value = i.value : t.variant === "results" ? l.value = C.value[0] : l.value = 1;
|
|
3773
3896
|
});
|
|
3774
3897
|
const i = v(() => t.modelValue || t.selection);
|
|
3775
|
-
R(() => t.selection, (
|
|
3776
|
-
l.value =
|
|
3777
|
-
}), R(() => t.modelValue, (
|
|
3778
|
-
l.value =
|
|
3779
|
-
}), R(l, (
|
|
3780
|
-
T !== null && (a("selchange",
|
|
3898
|
+
R(() => t.selection, (B) => {
|
|
3899
|
+
l.value = B;
|
|
3900
|
+
}), R(() => t.modelValue, (B) => {
|
|
3901
|
+
l.value = B;
|
|
3902
|
+
}), R(l, (B, T) => {
|
|
3903
|
+
T !== null && (a("selchange", B), a("update:modelValue", B));
|
|
3781
3904
|
});
|
|
3782
|
-
const
|
|
3905
|
+
const d = v(() => {
|
|
3783
3906
|
if (t.variant === "group")
|
|
3784
3907
|
return Math.ceil(t.itemsCount / t.itemsPerGroup);
|
|
3785
3908
|
if (t.variant === "base")
|
|
3786
3909
|
return t.pageCount;
|
|
3787
3910
|
}), o = v(() => t.variant === "base" ? t.centerDisplay === "text" ? "group" : void 0 : t.variant);
|
|
3788
|
-
function
|
|
3911
|
+
function s() {
|
|
3789
3912
|
l.value = 1;
|
|
3790
3913
|
}
|
|
3791
3914
|
function r() {
|
|
@@ -3794,43 +3917,43 @@ const Da = {
|
|
|
3794
3917
|
function c() {
|
|
3795
3918
|
l.value = Math.min(
|
|
3796
3919
|
l.value + 1,
|
|
3797
|
-
|
|
3920
|
+
d.value
|
|
3798
3921
|
);
|
|
3799
3922
|
}
|
|
3800
3923
|
function p() {
|
|
3801
|
-
l.value =
|
|
3924
|
+
l.value = d.value;
|
|
3802
3925
|
}
|
|
3803
|
-
const
|
|
3926
|
+
const w = v(() => {
|
|
3804
3927
|
if (t.pageCount <= t.pageRange)
|
|
3805
3928
|
return [...Array(t.pageCount + 1).keys()].slice(1);
|
|
3806
|
-
const
|
|
3929
|
+
const B = [1], T = (t.pageRange - 1) / 2;
|
|
3807
3930
|
let m = l.value - T, b = l.value + T;
|
|
3808
|
-
m < 1 && (b += 1 - m, m = 1), b > t.pageCount && (m -= b - t.pageCount, b = t.pageCount), m = Math.max(m, 2), b = Math.min(b, t.pageCount - 1), m > 2 &&
|
|
3931
|
+
m < 1 && (b += 1 - m, m = 1), b > t.pageCount && (m -= b - t.pageCount, b = t.pageCount), m = Math.max(m, 2), b = Math.min(b, t.pageCount - 1), m > 2 && B.push(t.breakText);
|
|
3809
3932
|
for (let q = m; q <= b; q++)
|
|
3810
|
-
|
|
3811
|
-
return b < t.pageCount - 1 &&
|
|
3812
|
-
}), g = v(() => `${t.centerLabel ?? "Page"} ${l.value} of ${
|
|
3813
|
-
const
|
|
3814
|
-
return `${t.centerLabel ?? "Results"} ${
|
|
3815
|
-
}), C = v(() => t.resultsIncrements.split(",").map((
|
|
3816
|
-
return (
|
|
3933
|
+
B.push(q);
|
|
3934
|
+
return b < t.pageCount - 1 && B.push(t.breakText), B.push(t.pageCount), B;
|
|
3935
|
+
}), g = v(() => `${t.centerLabel ?? "Page"} ${l.value} of ${d.value}`), k = v(() => {
|
|
3936
|
+
const B = (l.value - 1) * t.itemsPerGroup + 1, T = Math.min(B - 1 + t.itemsPerGroup, t.itemsCount);
|
|
3937
|
+
return `${t.centerLabel ?? "Results"} ${B} - ${T} of ${t.itemsCount}`;
|
|
3938
|
+
}), C = v(() => t.resultsIncrements.split(",").map((B) => parseInt(B)));
|
|
3939
|
+
return (B, T) => (u(), h("div", {
|
|
3817
3940
|
class: "bs-pagination",
|
|
3818
3941
|
"data-variant": o.value,
|
|
3819
3942
|
"data-fixed": t.fixed
|
|
3820
3943
|
}, [
|
|
3821
|
-
e.variant === "base" || e.variant === "group" ? (
|
|
3822
|
-
e.showFirstLastButtons ? (
|
|
3944
|
+
e.variant === "base" || e.variant === "group" ? (u(), h("div", Gn, [
|
|
3945
|
+
e.showFirstLastButtons ? (u(), h("button", {
|
|
3823
3946
|
key: 0,
|
|
3824
3947
|
type: "button",
|
|
3825
3948
|
class: oe(e.firstPageText ? "bs-pagination-word-caret" : void 0),
|
|
3826
3949
|
"aria-label": e.firstPageText ? void 0 : "First Page",
|
|
3827
3950
|
title: e.firstPageText,
|
|
3828
3951
|
disabled: l.value === 1,
|
|
3829
|
-
onClick:
|
|
3952
|
+
onClick: s
|
|
3830
3953
|
}, [
|
|
3831
|
-
V(f(
|
|
3832
|
-
e.firstPageText ? (
|
|
3833
|
-
], 10, Hn)) :
|
|
3954
|
+
V(f(At)),
|
|
3955
|
+
e.firstPageText ? (u(), h("span", Kn, A(e.firstPageText), 1)) : I("", !0)
|
|
3956
|
+
], 10, Hn)) : I("", !0),
|
|
3834
3957
|
S("button", {
|
|
3835
3958
|
type: "button",
|
|
3836
3959
|
class: oe(e.prevPageText ? "bs-pagination-word-caret" : void 0),
|
|
@@ -3839,25 +3962,25 @@ const Da = {
|
|
|
3839
3962
|
disabled: l.value === 1,
|
|
3840
3963
|
onClick: r
|
|
3841
3964
|
}, [
|
|
3842
|
-
V(f(
|
|
3843
|
-
e.prevPageText ? (
|
|
3965
|
+
V(f(Vt)),
|
|
3966
|
+
e.prevPageText ? (u(), h("span", Xn, A(e.prevPageText), 1)) : I("", !0)
|
|
3844
3967
|
], 10, Yn)
|
|
3845
|
-
])) :
|
|
3846
|
-
e.variant === "base" && e.centerDisplay === "numbers" ? (
|
|
3847
|
-
(
|
|
3968
|
+
])) : I("", !0),
|
|
3969
|
+
e.variant === "base" && e.centerDisplay === "numbers" ? (u(), h("div", Zn, [
|
|
3970
|
+
(u(!0), h(G, null, _(w.value, (m) => (u(), h("button", {
|
|
3848
3971
|
key: `page-${m}-button`,
|
|
3849
3972
|
type: "button",
|
|
3850
3973
|
title: `Page ${m}`,
|
|
3851
3974
|
"data-selected": m === l.value,
|
|
3852
3975
|
onClick: (b) => l.value = m
|
|
3853
3976
|
}, A(m), 9, Qn))), 128))
|
|
3854
|
-
])) :
|
|
3855
|
-
t.variant === "base" && t.centerDisplay === "text" ? (
|
|
3856
|
-
t.variant === "group" ? (
|
|
3857
|
-
t.variant === "results" ? (
|
|
3977
|
+
])) : I("", !0),
|
|
3978
|
+
t.variant === "base" && t.centerDisplay === "text" ? (u(), h("span", Jn, A(g.value), 1)) : I("", !0),
|
|
3979
|
+
t.variant === "group" ? (u(), h("span", _n, A(k.value), 1)) : I("", !0),
|
|
3980
|
+
t.variant === "results" ? (u(), h(G, { key: 4 }, [
|
|
3858
3981
|
el,
|
|
3859
3982
|
S("div", tl, [
|
|
3860
|
-
(
|
|
3983
|
+
(u(!0), h(G, null, _(C.value, (m) => (u(), h("button", {
|
|
3861
3984
|
type: "button",
|
|
3862
3985
|
key: `results-${m}`,
|
|
3863
3986
|
"data-selected": m === l.value,
|
|
@@ -3865,35 +3988,35 @@ const Da = {
|
|
|
3865
3988
|
onClick: (b) => l.value = m
|
|
3866
3989
|
}, A(m), 9, al))), 128))
|
|
3867
3990
|
])
|
|
3868
|
-
], 64)) :
|
|
3869
|
-
e.variant === "base" || e.variant === "group" ? (
|
|
3991
|
+
], 64)) : I("", !0),
|
|
3992
|
+
e.variant === "base" || e.variant === "group" ? (u(), h("div", nl, [
|
|
3870
3993
|
S("button", {
|
|
3871
3994
|
type: "button",
|
|
3872
3995
|
class: oe(e.nextPageText ? "bs-pagination-word-caret" : void 0),
|
|
3873
3996
|
"aria-label": e.nextPageText ? void 0 : "Next Page",
|
|
3874
3997
|
title: e.nextPageText,
|
|
3875
|
-
disabled: l.value ===
|
|
3998
|
+
disabled: l.value === d.value,
|
|
3876
3999
|
onClick: c
|
|
3877
4000
|
}, [
|
|
3878
|
-
e.nextPageText ? (
|
|
3879
|
-
V(f(
|
|
4001
|
+
e.nextPageText ? (u(), h("span", ol, A(e.nextPageText), 1)) : I("", !0),
|
|
4002
|
+
V(f(Et))
|
|
3880
4003
|
], 10, ll),
|
|
3881
|
-
e.showFirstLastButtons ? (
|
|
4004
|
+
e.showFirstLastButtons ? (u(), h("button", {
|
|
3882
4005
|
key: 0,
|
|
3883
4006
|
type: "button",
|
|
3884
4007
|
class: oe(e.lastPageText ? "bs-pagination-word-caret" : void 0),
|
|
3885
4008
|
"aria-label": e.lastPageText ? void 0 : "Last Page",
|
|
3886
4009
|
title: e.lastPageText,
|
|
3887
|
-
disabled: l.value ===
|
|
4010
|
+
disabled: l.value === d.value,
|
|
3888
4011
|
onClick: p
|
|
3889
4012
|
}, [
|
|
3890
|
-
e.lastPageText ? (
|
|
3891
|
-
V(f(
|
|
3892
|
-
], 10, il)) :
|
|
3893
|
-
])) :
|
|
4013
|
+
e.lastPageText ? (u(), h("span", rl, A(e.lastPageText), 1)) : I("", !0),
|
|
4014
|
+
V(f(Pt))
|
|
4015
|
+
], 10, il)) : I("", !0)
|
|
4016
|
+
])) : I("", !0)
|
|
3894
4017
|
], 8, Un));
|
|
3895
4018
|
}
|
|
3896
|
-
},
|
|
4019
|
+
}, dl = ["data-truncate"], Io = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3897
4020
|
__name: "BsPill",
|
|
3898
4021
|
props: {
|
|
3899
4022
|
active: { type: Boolean, default: !1 },
|
|
@@ -3917,25 +4040,25 @@ const Da = {
|
|
|
3917
4040
|
}
|
|
3918
4041
|
},
|
|
3919
4042
|
setup(e) {
|
|
3920
|
-
const n = e, { onLinkClick: t } = De(n), a =
|
|
3921
|
-
return (o,
|
|
4043
|
+
const n = e, { onLinkClick: t } = De(n), a = pe(), { rootTag: l, attrsToBind: i, hrefUrl: d } = qe(n, a, "span");
|
|
4044
|
+
return (o, s) => (u(), E(ee(f(l)), N({
|
|
3922
4045
|
class: "bs-pill",
|
|
3923
4046
|
"data-active": e.active,
|
|
3924
4047
|
"data-component": "bs-pill",
|
|
3925
4048
|
"data-status": e.status || void 0,
|
|
3926
4049
|
"data-variant": e.variant || void 0,
|
|
3927
4050
|
disabled: e.disabled,
|
|
3928
|
-
".href": f(
|
|
4051
|
+
".href": f(d)
|
|
3929
4052
|
}, f(i), { onClick: f(t) }), {
|
|
3930
|
-
default:
|
|
4053
|
+
default: O(() => [
|
|
3931
4054
|
S("span", { "data-truncate": e.truncate }, [
|
|
3932
|
-
|
|
3933
|
-
], 8,
|
|
4055
|
+
P(o.$slots, "default")
|
|
4056
|
+
], 8, dl)
|
|
3934
4057
|
]),
|
|
3935
4058
|
_: 3
|
|
3936
4059
|
}, 48, ["data-active", "data-status", "data-variant", "disabled", ".href", "onClick"]));
|
|
3937
4060
|
}
|
|
3938
|
-
}),
|
|
4061
|
+
}), sl = { class: "bs-profile-details" }, ul = {
|
|
3939
4062
|
class: "bs-profile-name",
|
|
3940
4063
|
"data-size": "sm",
|
|
3941
4064
|
"data-weight": "bold"
|
|
@@ -3962,40 +4085,40 @@ const Da = {
|
|
|
3962
4085
|
},
|
|
3963
4086
|
emits: ["action-toggled"],
|
|
3964
4087
|
setup(e, { emit: n }) {
|
|
3965
|
-
const t = e, a = n, { icon: l } =
|
|
3966
|
-
function
|
|
4088
|
+
const t = e, a = n, { icon: l } = Oe(t, "actionIcon"), { icon: i } = Oe(t, "miscMetaIcon");
|
|
4089
|
+
function d(o) {
|
|
3967
4090
|
o.target.tagName === "BUTTON" && (o.preventDefault(), o.stopImmediatePropagation(), a("action-toggled"));
|
|
3968
4091
|
}
|
|
3969
|
-
return (o,
|
|
3970
|
-
e.action || o.$slots.action ? (
|
|
4092
|
+
return (o, s) => (u(), h("div", sl, [
|
|
4093
|
+
e.action || o.$slots.action ? (u(), h("button", {
|
|
3971
4094
|
key: 0,
|
|
3972
4095
|
"data-icon": "true",
|
|
3973
|
-
onClick:
|
|
4096
|
+
onClick: d
|
|
3974
4097
|
}, [
|
|
3975
|
-
|
|
3976
|
-
e.actionIcon ? (
|
|
4098
|
+
P(o.$slots, "action", {}, () => [
|
|
4099
|
+
e.actionIcon ? (u(), E(ee(f(l) ? f(l) : "span"), {
|
|
3977
4100
|
key: 0,
|
|
3978
4101
|
class: "bs-icon"
|
|
3979
|
-
})) :
|
|
4102
|
+
})) : I("", !0),
|
|
3980
4103
|
H(" " + A(e.action), 1)
|
|
3981
4104
|
])
|
|
3982
|
-
])) :
|
|
4105
|
+
])) : I("", !0),
|
|
3983
4106
|
S("span", ul, A(e.profileName), 1),
|
|
3984
|
-
e.company ? (
|
|
3985
|
-
e.jobTitle ? (
|
|
3986
|
-
e.email ? (
|
|
3987
|
-
e.miscMeta || o.$slots.misc ? (
|
|
3988
|
-
|
|
3989
|
-
e.miscMetaIcon ? (
|
|
4107
|
+
e.company ? (u(), h("span", cl, A(e.company), 1)) : I("", !0),
|
|
4108
|
+
e.jobTitle ? (u(), h("span", fl, A(e.jobTitle), 1)) : I("", !0),
|
|
4109
|
+
e.email ? (u(), h("span", pl, A(e.email), 1)) : I("", !0),
|
|
4110
|
+
e.miscMeta || o.$slots.misc ? (u(), h("span", vl, [
|
|
4111
|
+
P(o.$slots, "misc", {}, () => [
|
|
4112
|
+
e.miscMetaIcon ? (u(), E(ee(f(i) ? f(i) : "span"), {
|
|
3990
4113
|
key: 0,
|
|
3991
4114
|
class: "bs-icon"
|
|
3992
|
-
})) :
|
|
4115
|
+
})) : I("", !0),
|
|
3993
4116
|
H(" " + A(e.miscMeta), 1)
|
|
3994
4117
|
])
|
|
3995
|
-
])) :
|
|
4118
|
+
])) : I("", !0)
|
|
3996
4119
|
]));
|
|
3997
4120
|
}
|
|
3998
|
-
},
|
|
4121
|
+
}, ko = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
3999
4122
|
__name: "BsProfile",
|
|
4000
4123
|
props: {
|
|
4001
4124
|
layout: {
|
|
@@ -4009,7 +4132,7 @@ const Da = {
|
|
|
4009
4132
|
imageSize: {
|
|
4010
4133
|
type: String,
|
|
4011
4134
|
default: "lg",
|
|
4012
|
-
validator: (e) => ["sm", "md", "lg"].includes(e)
|
|
4135
|
+
validator: (e) => ["xs", "sm", "md", "lg", "xl"].includes(e)
|
|
4013
4136
|
},
|
|
4014
4137
|
initials: String,
|
|
4015
4138
|
linkTo: String,
|
|
@@ -4025,13 +4148,13 @@ const Da = {
|
|
|
4025
4148
|
},
|
|
4026
4149
|
emits: ["action-toggled"],
|
|
4027
4150
|
setup(e, { emit: n }) {
|
|
4028
|
-
const t = e, a = n, l =
|
|
4029
|
-
return (r, c) => (
|
|
4151
|
+
const t = e, a = n, l = pe(), { onLinkClick: i } = De(t), { rootTag: d, attrsToBind: o, hrefUrl: s } = qe(t, l, "div");
|
|
4152
|
+
return (r, c) => (u(), E(ee(f(d)), N({
|
|
4030
4153
|
class: "bs-profile",
|
|
4031
|
-
".href": f(
|
|
4154
|
+
".href": f(s),
|
|
4032
4155
|
"data-layout": e.layout
|
|
4033
4156
|
}, f(o), { onClick: f(i) }), {
|
|
4034
|
-
default:
|
|
4157
|
+
default: O(() => [
|
|
4035
4158
|
V(bt, {
|
|
4036
4159
|
src: e.imageSrc,
|
|
4037
4160
|
size: e.imageSize,
|
|
@@ -4050,11 +4173,11 @@ const Da = {
|
|
|
4050
4173
|
"misc-meta-icon": e.miscMetaIcon,
|
|
4051
4174
|
onActionToggled: c[0] || (c[0] = (p) => a("action-toggled"))
|
|
4052
4175
|
}, {
|
|
4053
|
-
action:
|
|
4054
|
-
|
|
4176
|
+
action: O(() => [
|
|
4177
|
+
P(r.$slots, "action")
|
|
4055
4178
|
]),
|
|
4056
|
-
misc:
|
|
4057
|
-
|
|
4179
|
+
misc: O(() => [
|
|
4180
|
+
P(r.$slots, "misc")
|
|
4058
4181
|
]),
|
|
4059
4182
|
_: 3
|
|
4060
4183
|
}, 8, ["profile-name", "company", "job-title", "email", "action", "action-icon", "misc-meta", "misc-meta-icon"])
|
|
@@ -4063,7 +4186,7 @@ const Da = {
|
|
|
4063
4186
|
}, 48, [".href", "data-layout", "onClick"]));
|
|
4064
4187
|
}
|
|
4065
4188
|
});
|
|
4066
|
-
function
|
|
4189
|
+
function yt(e) {
|
|
4067
4190
|
const n = v(() => {
|
|
4068
4191
|
var l;
|
|
4069
4192
|
switch (e.currentStatus) {
|
|
@@ -4088,7 +4211,7 @@ function gt(e) {
|
|
|
4088
4211
|
getStatus: a
|
|
4089
4212
|
};
|
|
4090
4213
|
}
|
|
4091
|
-
const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-status"],
|
|
4214
|
+
const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-status"], To = {
|
|
4092
4215
|
__name: "BsProgressBar",
|
|
4093
4216
|
props: {
|
|
4094
4217
|
/** @type {Status} */
|
|
@@ -4116,26 +4239,26 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4116
4239
|
}
|
|
4117
4240
|
},
|
|
4118
4241
|
setup(e) {
|
|
4119
|
-
const n = e, { progressStep: t, progressText: a, getStatus: l } =
|
|
4120
|
-
return (i,
|
|
4242
|
+
const n = e, { progressStep: t, progressText: a, getStatus: l } = yt(n);
|
|
4243
|
+
return (i, d) => (u(), h("div", {
|
|
4121
4244
|
"aria-valuemax": e.steps.length,
|
|
4122
4245
|
"aria-valuenow": f(t),
|
|
4123
4246
|
"aria-valuetext": f(a),
|
|
4124
4247
|
class: "bs-progress-bar",
|
|
4125
4248
|
role: "progressbar"
|
|
4126
4249
|
}, [
|
|
4127
|
-
(
|
|
4250
|
+
(u(!0), h(G, null, _(e.steps, (o, s) => (u(), h("div", {
|
|
4128
4251
|
class: "bs-step-item",
|
|
4129
|
-
"data-status": f(l)(o.status,
|
|
4252
|
+
"data-status": f(l)(o.status, s),
|
|
4130
4253
|
"data-variant": "progress",
|
|
4131
4254
|
key: o.id || o.label,
|
|
4132
4255
|
role: "status"
|
|
4133
4256
|
}, [
|
|
4134
|
-
S("span", null, A(o.label || o) + " : " + A(f(l)(o.status,
|
|
4257
|
+
S("span", null, A(o.label || o) + " : " + A(f(l)(o.status, s) || "not started"), 1)
|
|
4135
4258
|
], 8, bl))), 128))
|
|
4136
4259
|
], 8, ml));
|
|
4137
4260
|
}
|
|
4138
|
-
}, gl = ["data-size"], yl = ["checked", "disabled", "id", "required", "value", "data-error"],
|
|
4261
|
+
}, gl = ["data-disabled", "data-error", "data-size"], yl = ["checked", "disabled", "id", "required", "value", "data-error"], Co = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4139
4262
|
__name: "BsRadio",
|
|
4140
4263
|
props: {
|
|
4141
4264
|
label: {
|
|
@@ -4179,14 +4302,16 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4179
4302
|
},
|
|
4180
4303
|
emits: ["update:modelValue"],
|
|
4181
4304
|
setup(e, { emit: n }) {
|
|
4182
|
-
const t = e, [a] = Z(), l = v(() => Ye.concat(t.passAttrs.split(","))), i = v(() => t.inputId || a.value),
|
|
4183
|
-
return (o,
|
|
4305
|
+
const t = e, [a] = Z(), l = v(() => Ye.concat(t.passAttrs.split(","))), i = v(() => t.inputId || a.value), d = v(() => t.checked || t.modelValue && t.modelValue === t.value);
|
|
4306
|
+
return (o, s) => (u(), h("div", N({
|
|
4184
4307
|
class: "bs-boolean",
|
|
4185
4308
|
"data-component": "bs-radio",
|
|
4309
|
+
"data-disabled": e.disabled,
|
|
4310
|
+
"data-error": e.error,
|
|
4186
4311
|
"data-size": e.size
|
|
4187
4312
|
}, f(K)(o.$attrs, l.value).remaining), [
|
|
4188
4313
|
S("input", N({
|
|
4189
|
-
checked:
|
|
4314
|
+
checked: d.value,
|
|
4190
4315
|
disabled: e.disabled,
|
|
4191
4316
|
id: o.$attrs.id || i.value,
|
|
4192
4317
|
required: e.required,
|
|
@@ -4194,24 +4319,24 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4194
4319
|
value: e.value,
|
|
4195
4320
|
"data-error": e.error
|
|
4196
4321
|
}, f(K)(o.$attrs, l.value).filtered, {
|
|
4197
|
-
onChange:
|
|
4322
|
+
onChange: s[0] || (s[0] = (r) => o.$emit("update:modelValue", r.target.value))
|
|
4198
4323
|
}), null, 16, yl),
|
|
4199
|
-
e.label || o.$slots.label ? (
|
|
4324
|
+
e.label || o.$slots.label ? (u(), E(te, {
|
|
4200
4325
|
key: 0,
|
|
4201
4326
|
for: o.$attrs.id || i.value,
|
|
4202
4327
|
disabled: e.disabled,
|
|
4203
4328
|
required: e.required
|
|
4204
4329
|
}, {
|
|
4205
|
-
default:
|
|
4206
|
-
|
|
4330
|
+
default: O(() => [
|
|
4331
|
+
P(o.$slots, "label", {}, () => [
|
|
4207
4332
|
H(A(e.label), 1)
|
|
4208
4333
|
])
|
|
4209
4334
|
]),
|
|
4210
4335
|
_: 3
|
|
4211
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
4336
|
+
}, 8, ["for", "disabled", "required"])) : I("", !0)
|
|
4212
4337
|
], 16, gl));
|
|
4213
4338
|
}
|
|
4214
|
-
}), Sl = ["id", "disabled", "required", "data-error", "value"],
|
|
4339
|
+
}), Sl = ["id", "disabled", "required", "data-error", "value"], wl = {
|
|
4215
4340
|
__name: "BsSelect",
|
|
4216
4341
|
props: {
|
|
4217
4342
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -4225,7 +4350,7 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4225
4350
|
emits: ["update:modelValue"],
|
|
4226
4351
|
setup(e, { emit: n }) {
|
|
4227
4352
|
const t = e, a = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
4228
|
-
return (l, i) => (
|
|
4353
|
+
return (l, i) => (u(), h("select", N({
|
|
4229
4354
|
id: l.$attrs.id || e.inputId,
|
|
4230
4355
|
class: "bs-select",
|
|
4231
4356
|
"data-component": "bs-select",
|
|
@@ -4234,12 +4359,12 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4234
4359
|
"data-error": e.error,
|
|
4235
4360
|
value: e.value || e.modelValue
|
|
4236
4361
|
}, a.value, {
|
|
4237
|
-
onChange: i[0] || (i[0] = (
|
|
4362
|
+
onChange: i[0] || (i[0] = (d) => l.$emit("update:modelValue", d.target.value))
|
|
4238
4363
|
}), [
|
|
4239
|
-
|
|
4364
|
+
P(l.$slots, "default")
|
|
4240
4365
|
], 16, Sl));
|
|
4241
4366
|
}
|
|
4242
|
-
},
|
|
4367
|
+
}, Bl = ["selected", "disabled"], $l = ["disabled", "selected", "value"], xo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4243
4368
|
__name: "BsSelectField",
|
|
4244
4369
|
props: {
|
|
4245
4370
|
data: {
|
|
@@ -4283,57 +4408,57 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4283
4408
|
modelValue: [String, Number]
|
|
4284
4409
|
},
|
|
4285
4410
|
setup(e) {
|
|
4286
|
-
const n = e, [t, a] = Z(2), l = v(() =>
|
|
4411
|
+
const n = e, [t, a] = Z(2), l = v(() => ka.concat(n.passAttrs.split(","))), i = v(() => {
|
|
4287
4412
|
var r, c;
|
|
4288
4413
|
return ((c = (r = n.hints) == null ? void 0 : r.join) == null ? void 0 : c.call(r, `
|
|
4289
4414
|
`)) || n.hints;
|
|
4290
|
-
}),
|
|
4291
|
-
return (r, c) => (
|
|
4292
|
-
e.label || r.$slots.label ? (
|
|
4415
|
+
}), d = v(() => n.error && n.errorMsg || n.hint || i.value || void 0), o = v(() => n.inputId || t.value), s = v(() => n.value || n.modelValue);
|
|
4416
|
+
return (r, c) => (u(), h("div", N({ "data-component": "bs-select-field" }, f(K)(r.$attrs, l.value).remaining), [
|
|
4417
|
+
e.label || r.$slots.label ? (u(), E(te, {
|
|
4293
4418
|
key: 0,
|
|
4294
4419
|
for: r.$attrs.id || o.value,
|
|
4295
4420
|
disabled: e.disabled,
|
|
4296
4421
|
required: e.required
|
|
4297
4422
|
}, {
|
|
4298
|
-
default:
|
|
4299
|
-
|
|
4423
|
+
default: O(() => [
|
|
4424
|
+
P(r.$slots, "label", {}, () => [
|
|
4300
4425
|
H(A(e.label), 1)
|
|
4301
4426
|
])
|
|
4302
4427
|
]),
|
|
4303
4428
|
_: 3
|
|
4304
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
4305
|
-
V(
|
|
4429
|
+
}, 8, ["for", "disabled", "required"])) : I("", !0),
|
|
4430
|
+
V(wl, N({
|
|
4306
4431
|
disabled: e.disabled,
|
|
4307
4432
|
error: e.error,
|
|
4308
4433
|
"hint-id": f(a),
|
|
4309
4434
|
"input-id": r.$attrs.id || o.value,
|
|
4310
4435
|
required: e.required,
|
|
4311
|
-
value:
|
|
4436
|
+
value: s.value,
|
|
4312
4437
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => r.$emit("update:modelValue", p))
|
|
4313
4438
|
}, f(K)(r.$attrs, l.value).filtered), {
|
|
4314
|
-
default:
|
|
4439
|
+
default: O(() => [
|
|
4315
4440
|
S("option", {
|
|
4316
|
-
selected: !
|
|
4441
|
+
selected: !s.value,
|
|
4317
4442
|
value: "",
|
|
4318
|
-
disabled: !!
|
|
4319
|
-
}, A(e.disabled ? "" : e.placeholder), 9,
|
|
4320
|
-
(
|
|
4443
|
+
disabled: !!s.value
|
|
4444
|
+
}, A(e.disabled ? "" : e.placeholder), 9, Bl),
|
|
4445
|
+
(u(!0), h(G, null, _(e.data, (p) => (u(), h("option", {
|
|
4321
4446
|
key: p.value,
|
|
4322
4447
|
disabled: p.disabled,
|
|
4323
|
-
selected:
|
|
4448
|
+
selected: s.value === p.value,
|
|
4324
4449
|
value: p.value
|
|
4325
4450
|
}, A(p.label), 9, $l))), 128))
|
|
4326
4451
|
]),
|
|
4327
4452
|
_: 1
|
|
4328
4453
|
}, 16, ["disabled", "error", "hint-id", "input-id", "required", "value"]),
|
|
4329
|
-
|
|
4454
|
+
d.value ? (u(), E(be, {
|
|
4330
4455
|
key: 1,
|
|
4331
4456
|
"data-disabled": e.disabled,
|
|
4332
4457
|
error: e.error,
|
|
4333
4458
|
"error-msg": e.errorMsg,
|
|
4334
4459
|
hint: e.hint || i.value,
|
|
4335
4460
|
"hint-id": f(a)
|
|
4336
|
-
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) :
|
|
4461
|
+
}, null, 8, ["data-disabled", "error", "error-msg", "hint", "hint-id"])) : I("", !0)
|
|
4337
4462
|
], 16));
|
|
4338
4463
|
}
|
|
4339
4464
|
}), Il = ["data-size", "data-variant"], kl = ["stroke"], Tl = { key: 0 }, Cl = /* @__PURE__ */ S("linearGradient", { id: "bs-spinner-gradient" }, [
|
|
@@ -4342,7 +4467,7 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4342
4467
|
/* @__PURE__ */ S("stop", { offset: "100%" })
|
|
4343
4468
|
], -1), xl = [
|
|
4344
4469
|
Cl
|
|
4345
|
-
],
|
|
4470
|
+
], Ao = {
|
|
4346
4471
|
__name: "BsSpinner",
|
|
4347
4472
|
props: {
|
|
4348
4473
|
label: {
|
|
@@ -4359,7 +4484,7 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4359
4484
|
}
|
|
4360
4485
|
},
|
|
4361
4486
|
setup(e) {
|
|
4362
|
-
return (n, t) => (
|
|
4487
|
+
return (n, t) => (u(), h("svg", {
|
|
4363
4488
|
class: "bs-spinner",
|
|
4364
4489
|
"data-size": e.size,
|
|
4365
4490
|
"data-variant": e.variant,
|
|
@@ -4376,10 +4501,10 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4376
4501
|
r: "45",
|
|
4377
4502
|
stroke: e.variant === "gradient" ? "url(#bs-spinner-gradient)" : void 0
|
|
4378
4503
|
}, null, 8, kl),
|
|
4379
|
-
e.variant === "gradient" ? (
|
|
4504
|
+
e.variant === "gradient" ? (u(), h("defs", Tl, xl)) : I("", !0)
|
|
4380
4505
|
], 8, Il));
|
|
4381
4506
|
}
|
|
4382
|
-
}, Al = ["data-size"], Vl = ["data-disabled", "data-pending", "data-size"], El = ["checked", "disabled", "id"], Pl = ["data-inner-on-label", "data-inner-off-label"],
|
|
4507
|
+
}, Al = ["data-disabled", "data-size"], Vl = ["data-disabled", "data-pending", "data-size"], El = ["checked", "disabled", "id"], Pl = ["data-inner-on-label", "data-inner-off-label"], Vo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4383
4508
|
__name: "BsSwitch",
|
|
4384
4509
|
props: {
|
|
4385
4510
|
checked: {
|
|
@@ -4425,25 +4550,26 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4425
4550
|
},
|
|
4426
4551
|
emits: ["update:modelValue"],
|
|
4427
4552
|
setup(e, { emit: n }) {
|
|
4428
|
-
const t = e, a = n, [l] = Z(), i = v(() => Ye.concat(t.passAttrs.split(","))),
|
|
4429
|
-
return (
|
|
4553
|
+
const t = e, a = n, [l] = Z(), i = v(() => Ye.concat(t.passAttrs.split(","))), d = v(() => t.inputId || l.value), o = v(() => t.checked || t.modelValue);
|
|
4554
|
+
return (s, r) => (u(), h("div", N({
|
|
4430
4555
|
class: "bs-boolean",
|
|
4431
4556
|
"data-component": "bs-switch",
|
|
4557
|
+
"data-disabled": e.disabled,
|
|
4432
4558
|
"data-size": e.size
|
|
4433
|
-
}, f(K)(
|
|
4434
|
-
e.label ||
|
|
4559
|
+
}, f(K)(s.$attrs, i.value).remaining), [
|
|
4560
|
+
e.label || s.$slots.label ? (u(), E(te, {
|
|
4435
4561
|
key: 0,
|
|
4436
|
-
for:
|
|
4562
|
+
for: s.$attrs.id || d.value,
|
|
4437
4563
|
disabled: e.disabled,
|
|
4438
4564
|
hide: e.hideLabel
|
|
4439
4565
|
}, {
|
|
4440
|
-
default:
|
|
4441
|
-
|
|
4566
|
+
default: O(() => [
|
|
4567
|
+
P(s.$slots, "label", {}, () => [
|
|
4442
4568
|
H(A(e.label), 1)
|
|
4443
4569
|
])
|
|
4444
4570
|
]),
|
|
4445
4571
|
_: 3
|
|
4446
|
-
}, 8, ["for", "disabled", "hide"])) :
|
|
4572
|
+
}, 8, ["for", "disabled", "hide"])) : I("", !0),
|
|
4447
4573
|
S("div", {
|
|
4448
4574
|
class: "bs-switch",
|
|
4449
4575
|
"data-disabled": e.disabled,
|
|
@@ -4453,9 +4579,9 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4453
4579
|
S("input", N({
|
|
4454
4580
|
checked: o.value,
|
|
4455
4581
|
disabled: e.disabled,
|
|
4456
|
-
id:
|
|
4582
|
+
id: s.$attrs.id || d.value,
|
|
4457
4583
|
type: "checkbox"
|
|
4458
|
-
}, f(K)(
|
|
4584
|
+
}, f(K)(s.$attrs, i.value).filtered, {
|
|
4459
4585
|
onChange: r[0] || (r[0] = (c) => a("update:modelValue", c.target.checked))
|
|
4460
4586
|
}), null, 16, El),
|
|
4461
4587
|
S("span", {
|
|
@@ -4466,7 +4592,7 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4466
4592
|
], 8, Vl)
|
|
4467
4593
|
], 16, Al));
|
|
4468
4594
|
}
|
|
4469
|
-
}),
|
|
4595
|
+
}), Ol = ["aria-controls", "aria-selected", "data-hidden"], Eo = {
|
|
4470
4596
|
__name: "BsTab",
|
|
4471
4597
|
props: {
|
|
4472
4598
|
activeTabId: {
|
|
@@ -4483,18 +4609,18 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4483
4609
|
},
|
|
4484
4610
|
emits: ["tabClick"],
|
|
4485
4611
|
setup(e, { emit: n }) {
|
|
4486
|
-
const t = e, a =
|
|
4612
|
+
const t = e, a = pe(), l = y(), i = v(() => t.activeTabId === a.id), d = v(() => t.panelId || `${a.id}-panel`);
|
|
4487
4613
|
function o(r) {
|
|
4488
|
-
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(),
|
|
4614
|
+
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), s());
|
|
4489
4615
|
}
|
|
4490
|
-
function
|
|
4616
|
+
function s() {
|
|
4491
4617
|
if (t.activeTabId !== a.id) {
|
|
4492
4618
|
const r = new CustomEvent("tabClick", { detail: a.id, bubbles: !0 });
|
|
4493
4619
|
l.value.dispatchEvent(r);
|
|
4494
4620
|
}
|
|
4495
4621
|
}
|
|
4496
|
-
return (r, c) => (
|
|
4497
|
-
"aria-controls":
|
|
4622
|
+
return (r, c) => (u(), h("div", {
|
|
4623
|
+
"aria-controls": d.value,
|
|
4498
4624
|
"aria-selected": i.value ? "true" : "false",
|
|
4499
4625
|
"data-hidden": e.hidden || void 0,
|
|
4500
4626
|
"data-component": "bs-tab",
|
|
@@ -4502,13 +4628,13 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4502
4628
|
tabindex: "0",
|
|
4503
4629
|
ref_key: "hostEl",
|
|
4504
4630
|
ref: l,
|
|
4505
|
-
onClick:
|
|
4631
|
+
onClick: s,
|
|
4506
4632
|
onKeydown: o
|
|
4507
4633
|
}, [
|
|
4508
|
-
|
|
4509
|
-
], 40,
|
|
4634
|
+
P(r.$slots, "default")
|
|
4635
|
+
], 40, Ol));
|
|
4510
4636
|
}
|
|
4511
|
-
},
|
|
4637
|
+
}, Ll = ["id", "data-resizing"], ql = ["aria-controls", "aria-expanded", "data-active", "data-hidden", "id"], Dl = 73, Ml = 20, Re = 16, Po = {
|
|
4512
4638
|
__name: "BsTabList",
|
|
4513
4639
|
props: {
|
|
4514
4640
|
activeTabId: { type: String, required: !0 },
|
|
@@ -4519,41 +4645,41 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4519
4645
|
},
|
|
4520
4646
|
emits: ["tabChange", "update:modelValue"],
|
|
4521
4647
|
setup(e, { emit: n }) {
|
|
4522
|
-
const t = e, a = n, l = y(!1), i = y(!1),
|
|
4648
|
+
const t = e, a = n, l = y(!1), i = y(!1), d = y([]), o = y(!1), s = y(!1), r = y(), c = y([]), p = y(!1), w = y([]), g = y(), k = y([]), C = y(), B = y(), [T, m] = Z(2), b = v(() => t.activeTabId ? w.value.findIndex(($) => $.id === t.activeTabId) : 0), q = v(() => d.value.some(($) => $.id === t.activeTabId)), M = v(() => `${m.value}-options`), z = v(() => `${m.value}-toggle`), W = v(() => {
|
|
4523
4649
|
var $;
|
|
4524
|
-
return q.value ? ($ =
|
|
4525
|
-
}),
|
|
4650
|
+
return q.value ? ($ = w.value[b.value]) == null ? void 0 : $.textContent : "More";
|
|
4651
|
+
}), ae = v(() => q.value ? c.value[b.value] - c.value[b.value - 1] + Ml + Re : Dl + Re);
|
|
4526
4652
|
function J() {
|
|
4527
4653
|
var re;
|
|
4528
4654
|
let $ = !1, D, j = 0, Q = !1, ne = [];
|
|
4529
|
-
if ((re =
|
|
4530
|
-
for (let le = 0; le <
|
|
4531
|
-
if (D =
|
|
4655
|
+
if ((re = w.value) != null && re.length) {
|
|
4656
|
+
for (let le = 0; le < w.value.length; le++) {
|
|
4657
|
+
if (D = w.value[le], D.setAttribute("tabindex", "-1"), Q && le !== b.value) {
|
|
4532
4658
|
D.dataset.hidden = "true", ne.push(D);
|
|
4533
4659
|
continue;
|
|
4534
4660
|
}
|
|
4535
|
-
if (j = le <
|
|
4661
|
+
if (j = le < w.value.length - 1 ? B.value - ae.value : B.value, c.value[le] > j) {
|
|
4536
4662
|
D.dataset.hidden = "true", ne.push(D), $ = !0, Q = !0;
|
|
4537
4663
|
continue;
|
|
4538
4664
|
}
|
|
4539
4665
|
D.dataset.hidden = "false", D.setAttribute("tabindex", "0");
|
|
4540
4666
|
}
|
|
4541
|
-
|
|
4542
|
-
|
|
4667
|
+
s.value = $, d.value = ne, l.value || xe(() => l.value = !0), setTimeout(() => {
|
|
4668
|
+
wt(), L(), p.value = !0;
|
|
4543
4669
|
}, p.value ? 25 : 1e3);
|
|
4544
4670
|
}
|
|
4545
4671
|
}
|
|
4546
|
-
function
|
|
4672
|
+
function ve($) {
|
|
4547
4673
|
a("tabChange", $), a("update:modelValue", $);
|
|
4548
4674
|
}
|
|
4549
4675
|
function $e($) {
|
|
4550
4676
|
var Q, ne, re;
|
|
4551
|
-
const D = (re = (ne = (Q =
|
|
4677
|
+
const D = (re = (ne = (Q = w.value[$]) == null ? void 0 : Q.getBoundingClientRect) == null ? void 0 : ne.call(Q)) == null ? void 0 : re.width;
|
|
4552
4678
|
return D || ($ === 0 ? c.value[0] : c.value[$] - c.value[$ - 1]) || 0;
|
|
4553
4679
|
}
|
|
4554
|
-
function
|
|
4680
|
+
function ge() {
|
|
4555
4681
|
var $;
|
|
4556
|
-
($ =
|
|
4682
|
+
($ = w.value[b.value]) == null || $.setAttribute("aria-selected", "true"), J();
|
|
4557
4683
|
}
|
|
4558
4684
|
function Ie() {
|
|
4559
4685
|
var $;
|
|
@@ -4564,7 +4690,7 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4564
4690
|
}
|
|
4565
4691
|
function ie($) {
|
|
4566
4692
|
var D;
|
|
4567
|
-
o.value = !1, (D = g.value) == null || D.focus(),
|
|
4693
|
+
o.value = !1, (D = g.value) == null || D.focus(), ve($);
|
|
4568
4694
|
}
|
|
4569
4695
|
function Te($) {
|
|
4570
4696
|
if (t.withBsTabs)
|
|
@@ -4573,11 +4699,11 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4573
4699
|
if (!D || D.getAttribute("aria-selected") === "true")
|
|
4574
4700
|
return;
|
|
4575
4701
|
const j = D.getAttribute("id");
|
|
4576
|
-
|
|
4702
|
+
ve(j);
|
|
4577
4703
|
}
|
|
4578
|
-
function
|
|
4704
|
+
function ye($) {
|
|
4579
4705
|
if ($.key === "ArrowLeft" || $.key === "ArrowRight") {
|
|
4580
|
-
const D =
|
|
4706
|
+
const D = k.value.findIndex((j) => j.id === $.target.id);
|
|
4581
4707
|
if (D === -1)
|
|
4582
4708
|
return;
|
|
4583
4709
|
$.preventDefault(), $.stopPropagation(), $.key === "ArrowLeft" ? F(D) : x(D);
|
|
@@ -4585,59 +4711,59 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4585
4711
|
}
|
|
4586
4712
|
function x($) {
|
|
4587
4713
|
var j;
|
|
4588
|
-
const D = ($ + 1) %
|
|
4589
|
-
(j =
|
|
4714
|
+
const D = ($ + 1) % k.value.length;
|
|
4715
|
+
(j = k.value[D]) == null || j.focus();
|
|
4590
4716
|
}
|
|
4591
4717
|
function F($) {
|
|
4592
4718
|
var j;
|
|
4593
|
-
const D = $ === 0 ?
|
|
4594
|
-
(j =
|
|
4719
|
+
const D = $ === 0 ? k.value.length - 1 : $ - 1;
|
|
4720
|
+
(j = k.value[D]) == null || j.focus();
|
|
4595
4721
|
}
|
|
4596
|
-
function
|
|
4722
|
+
function L() {
|
|
4597
4723
|
var re, le, Je, _e;
|
|
4598
|
-
const $ = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0, D =
|
|
4599
|
-
let j = 300, Q = ((le = (re =
|
|
4600
|
-
|
|
4724
|
+
const $ = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0, D = B.value;
|
|
4725
|
+
let j = 300, Q = ((le = (re = k.value) == null ? void 0 : re[b.value]) == null ? void 0 : le.offsetLeft) || 0, ne = $e(b.value);
|
|
4726
|
+
s.value && q.value && (Q = (Je = g.value) == null ? void 0 : Je.offsetLeft, ne = (_e = g.value) == null ? void 0 : _e.offsetWidth), j = Math.max(Math.abs((Q - $) / D * 300), 100), r.value.style.setProperty("--active-line-max-width", `${D}px`), r.value.style.setProperty("--active-line-scale", `${ne / D}`), r.value.style.setProperty("--active-line-offset", `${Q}px`), r.value.style.setProperty("--active-line-transition-duration", `${j}ms`);
|
|
4601
4727
|
}
|
|
4602
4728
|
function U() {
|
|
4603
4729
|
var $, D;
|
|
4604
4730
|
(D = ($ = C.value) == null ? void 0 : $.disconnect) == null || D.call($), C.value = null;
|
|
4605
4731
|
}
|
|
4606
|
-
function
|
|
4732
|
+
function X() {
|
|
4607
4733
|
const $ = Ae(() => {
|
|
4608
|
-
|
|
4734
|
+
B.value = r.value.clientWidth, J();
|
|
4609
4735
|
}, 25);
|
|
4610
4736
|
C.value = new ResizeObserver($), C.value.observe(document.body);
|
|
4611
4737
|
}
|
|
4612
4738
|
function Ce() {
|
|
4613
|
-
|
|
4739
|
+
w.value = Array.from(r.value.children).filter(($) => $.role === "tab");
|
|
4614
4740
|
}
|
|
4615
|
-
function
|
|
4741
|
+
function St() {
|
|
4616
4742
|
let $;
|
|
4617
|
-
|
|
4743
|
+
w.value.forEach((D, j) => {
|
|
4618
4744
|
$ = D.getBoundingClientRect().width + Re, c.value.push(j ? $ + c.value[j - 1] : $);
|
|
4619
4745
|
});
|
|
4620
4746
|
}
|
|
4621
|
-
function
|
|
4747
|
+
function wt() {
|
|
4622
4748
|
var D, j;
|
|
4623
4749
|
let $ = [];
|
|
4624
4750
|
if (typeof window > "u")
|
|
4625
4751
|
return $;
|
|
4626
|
-
for (let Q of
|
|
4752
|
+
for (let Q of w.value) {
|
|
4627
4753
|
if (((D = Q.dataset) == null ? void 0 : D.hidden) === "true" || ((j = Q.dataset) == null ? void 0 : j.hidden) === "" || Q.getAttribute("tabindex") === "-1")
|
|
4628
4754
|
break;
|
|
4629
4755
|
$.push(Q);
|
|
4630
4756
|
}
|
|
4631
|
-
|
|
4757
|
+
s.value && $.push(r.value.querySelector(".bs-tab-list-toggle")), k.value = $;
|
|
4632
4758
|
}
|
|
4633
|
-
return R(() => t.activeTabId,
|
|
4759
|
+
return R(() => t.activeTabId, ge), Y(() => {
|
|
4634
4760
|
var $;
|
|
4635
4761
|
try {
|
|
4636
|
-
Ce(),
|
|
4762
|
+
Ce(), St(), X(), B.value = r.value.getBoundingClientRect().width, J(), t.withBsTabs || ($ = w.value[b.value]) == null || $.setAttribute("aria-selected", "true");
|
|
4637
4763
|
} catch (D) {
|
|
4638
4764
|
console.log("tab error", D);
|
|
4639
4765
|
}
|
|
4640
|
-
}),
|
|
4766
|
+
}), me(U), ($, D) => (u(), h("div", {
|
|
4641
4767
|
class: "bs-tab-list",
|
|
4642
4768
|
"data-component": "bs-tab-list",
|
|
4643
4769
|
id: $.$attrs.id || f(T),
|
|
@@ -4646,22 +4772,22 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4646
4772
|
role: "tablist",
|
|
4647
4773
|
"data-resizing": !l.value || void 0,
|
|
4648
4774
|
onClick: Te,
|
|
4649
|
-
"on:tabClick": D[0] || (D[0] = (j) =>
|
|
4650
|
-
onKeydown:
|
|
4775
|
+
"on:tabClick": D[0] || (D[0] = (j) => ve(j.detail)),
|
|
4776
|
+
onKeydown: ye
|
|
4651
4777
|
}, [
|
|
4652
|
-
|
|
4778
|
+
P($.$slots, "default"),
|
|
4653
4779
|
S("button", {
|
|
4654
4780
|
"aria-controls": f(m),
|
|
4655
4781
|
"aria-expanded": o.value,
|
|
4656
4782
|
class: "bs-tab-list-toggle",
|
|
4657
4783
|
"data-active": q.value || void 0,
|
|
4658
|
-
"data-hidden": !
|
|
4784
|
+
"data-hidden": !s.value,
|
|
4659
4785
|
id: z.value,
|
|
4660
4786
|
ref_key: "dropdownToggle",
|
|
4661
4787
|
ref: g,
|
|
4662
4788
|
onClick: ke
|
|
4663
4789
|
}, [
|
|
4664
|
-
V(f(
|
|
4790
|
+
V(f(Ot), { size: "sm" }),
|
|
4665
4791
|
H(" " + A(W.value), 1)
|
|
4666
4792
|
], 8, ql),
|
|
4667
4793
|
V(Qe, {
|
|
@@ -4679,13 +4805,13 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4679
4805
|
onClose: Ie,
|
|
4680
4806
|
"onUpdate:modelValue": ie
|
|
4681
4807
|
}, {
|
|
4682
|
-
default:
|
|
4683
|
-
(
|
|
4808
|
+
default: O(() => [
|
|
4809
|
+
(u(!0), h(G, null, _(d.value, (j) => (u(), E(Xe, {
|
|
4684
4810
|
key: j.id,
|
|
4685
4811
|
value: j.id,
|
|
4686
4812
|
"options-id": M.value
|
|
4687
4813
|
}, {
|
|
4688
|
-
default:
|
|
4814
|
+
default: O(() => [
|
|
4689
4815
|
H(A(j.textContent), 1)
|
|
4690
4816
|
]),
|
|
4691
4817
|
_: 2
|
|
@@ -4693,9 +4819,9 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4693
4819
|
]),
|
|
4694
4820
|
_: 1
|
|
4695
4821
|
}, 8, ["anchor-id", "container-id", "helper-description", "helper-text", "id", "options-id", "shown"])
|
|
4696
|
-
], 40,
|
|
4822
|
+
], 40, Ll));
|
|
4697
4823
|
}
|
|
4698
|
-
}, Nl = ["aria-labelledby", "data-active", "id"],
|
|
4824
|
+
}, Nl = ["aria-labelledby", "data-active", "id"], Oo = {
|
|
4699
4825
|
__name: "BsTabPanel",
|
|
4700
4826
|
props: {
|
|
4701
4827
|
activeTabId: {
|
|
@@ -4708,15 +4834,15 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4708
4834
|
}
|
|
4709
4835
|
},
|
|
4710
4836
|
setup(e) {
|
|
4711
|
-
const n = e, t =
|
|
4712
|
-
return (i,
|
|
4837
|
+
const n = e, t = pe(), a = v(() => n.activeTabId && n.activeTabId === n.tabId), l = v(() => t.id || `${n.tabId}-panel`);
|
|
4838
|
+
return (i, d) => (u(), h("section", {
|
|
4713
4839
|
"aria-labelledby": e.tabId,
|
|
4714
4840
|
"data-active": a.value,
|
|
4715
4841
|
"data-component": "bs-tab-panel",
|
|
4716
4842
|
id: l.value,
|
|
4717
4843
|
role: "tabpanel"
|
|
4718
4844
|
}, [
|
|
4719
|
-
|
|
4845
|
+
P(i.$slots, "default")
|
|
4720
4846
|
], 8, Nl));
|
|
4721
4847
|
}
|
|
4722
4848
|
}, zl = ["data-error", "id", "rows", "value"], Rl = {
|
|
@@ -4735,14 +4861,14 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4735
4861
|
emits: ["update:modelValue"],
|
|
4736
4862
|
setup(e, { emit: n }) {
|
|
4737
4863
|
const t = e, a = v(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
4738
|
-
return (l, i) => (
|
|
4864
|
+
return (l, i) => (u(), h("textarea", N({
|
|
4739
4865
|
class: "bs-textarea",
|
|
4740
4866
|
"data-component": "bs-textarea",
|
|
4741
4867
|
"data-error": e.error,
|
|
4742
4868
|
id: l.$attrs.id || e.inputId,
|
|
4743
4869
|
rows: l.$attrs.rows || 6,
|
|
4744
4870
|
value: e.value || e.modelValue,
|
|
4745
|
-
onInput: i[0] || (i[0] = (
|
|
4871
|
+
onInput: i[0] || (i[0] = (d) => l.$emit("update:modelValue", d.target.value))
|
|
4746
4872
|
}, a.value), null, 16, zl));
|
|
4747
4873
|
}
|
|
4748
4874
|
}, Lo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
@@ -4794,28 +4920,28 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4794
4920
|
},
|
|
4795
4921
|
emits: ["update:modelValue"],
|
|
4796
4922
|
setup(e, { emit: n }) {
|
|
4797
|
-
const t = e, [a, l] = Z(2), i = v(() =>
|
|
4923
|
+
const t = e, [a, l] = Z(2), i = v(() => Ta.concat(t.passAttrs.split(","))), d = v(() => {
|
|
4798
4924
|
var c;
|
|
4799
4925
|
return ((c = t.value || t.modelValue) == null ? void 0 : c.length) || 0;
|
|
4800
4926
|
}), o = v(() => {
|
|
4801
4927
|
var c, p;
|
|
4802
4928
|
return ((p = (c = t.hints) == null ? void 0 : c.join) == null ? void 0 : p.call(c, `
|
|
4803
4929
|
`)) || t.hints;
|
|
4804
|
-
}),
|
|
4805
|
-
return (c, p) => (
|
|
4806
|
-
e.label || c.$slots.label ? (
|
|
4930
|
+
}), s = v(() => t.error && t.errorMsg || t.hint || o.value || void 0), r = v(() => t.inputId || a.value);
|
|
4931
|
+
return (c, p) => (u(), h("div", N({ "data-component": "bs-textarea-field" }, f(K)(c.$attrs, i.value).remaining), [
|
|
4932
|
+
e.label || c.$slots.label ? (u(), E(te, {
|
|
4807
4933
|
key: 0,
|
|
4808
4934
|
for: c.$attrs.id || r.value,
|
|
4809
4935
|
disabled: e.disabled,
|
|
4810
4936
|
required: e.required
|
|
4811
4937
|
}, {
|
|
4812
|
-
default:
|
|
4813
|
-
|
|
4938
|
+
default: O(() => [
|
|
4939
|
+
P(c.$slots, "label", {}, () => [
|
|
4814
4940
|
H(A(e.label), 1)
|
|
4815
4941
|
])
|
|
4816
4942
|
]),
|
|
4817
4943
|
_: 3
|
|
4818
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
4944
|
+
}, 8, ["for", "disabled", "required"])) : I("", !0),
|
|
4819
4945
|
V(Rl, N({
|
|
4820
4946
|
disabled: e.disabled,
|
|
4821
4947
|
error: e.error,
|
|
@@ -4825,18 +4951,18 @@ const ml = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], bl = ["data-sta
|
|
|
4825
4951
|
required: e.required,
|
|
4826
4952
|
rows: e.rows,
|
|
4827
4953
|
value: e.value || e.modelValue,
|
|
4828
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
4954
|
+
"onUpdate:modelValue": p[0] || (p[0] = (w) => c.$emit("update:modelValue", w))
|
|
4829
4955
|
}, f(K)(c.$attrs, i.value).filtered), null, 16, ["disabled", "error", "hint-id", "id", "placeholder", "required", "rows", "value"]),
|
|
4830
|
-
|
|
4956
|
+
s.value || e.charMax ? (u(), E(be, {
|
|
4831
4957
|
key: 1,
|
|
4832
|
-
"char-count":
|
|
4958
|
+
"char-count": d.value,
|
|
4833
4959
|
"char-max": e.charMax,
|
|
4834
4960
|
"data-disabled": e.disabled,
|
|
4835
4961
|
error: e.error,
|
|
4836
4962
|
"error-msg": e.errorMsg,
|
|
4837
4963
|
hint: e.hint || o.value,
|
|
4838
4964
|
"hint-id": f(l)
|
|
4839
|
-
}, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) :
|
|
4965
|
+
}, null, 8, ["char-count", "char-max", "data-disabled", "error", "error-msg", "hint", "hint-id"])) : I("", !0)
|
|
4840
4966
|
], 16));
|
|
4841
4967
|
}
|
|
4842
4968
|
});
|
|
@@ -4844,19 +4970,19 @@ function Fl(e) {
|
|
|
4844
4970
|
const n = /^([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), a = /^([0]?[0-9]|1[0-2]):[0-5][0-9] ?(a|p|am|pm)$/i.test(e), l = /^([0]?[0-9]|1[0-2])[0-5][0-9] ?(a|p|am|pm)$/i.test(e);
|
|
4845
4971
|
return n ? "uFmt" : t ? "uFmtNoColon" : a ? "amPm" : l ? "amPmNoColon" : "";
|
|
4846
4972
|
}
|
|
4847
|
-
const
|
|
4973
|
+
const Se = (e) => parseInt(e, 10);
|
|
4848
4974
|
function jl(e = "") {
|
|
4849
4975
|
const n = /[^0-9:apmAPM]/g;
|
|
4850
4976
|
let t, a;
|
|
4851
4977
|
switch (e = e.replaceAll(n, "").toLowerCase(), Fl(e)) {
|
|
4852
4978
|
case "uFmt":
|
|
4853
4979
|
case "uFmtNoColon":
|
|
4854
|
-
a =
|
|
4980
|
+
a = Se(e.slice(-2)), t = Se(e.slice(0, -2));
|
|
4855
4981
|
break;
|
|
4856
4982
|
case "amPm":
|
|
4857
4983
|
case "amPmNoColon":
|
|
4858
|
-
const i = e.split(/(a|p|am|pm)/),
|
|
4859
|
-
a =
|
|
4984
|
+
const i = e.split(/(a|p|am|pm)/), d = e.includes("p");
|
|
4985
|
+
a = Se(i[0].slice(-2)), t = Se(i[0].slice(0, -2)), t < 12 && d && (t += 12), t === 12 && !d && (t = 0), t === 24 && (t = 0);
|
|
4860
4986
|
break;
|
|
4861
4987
|
}
|
|
4862
4988
|
return {
|
|
@@ -4864,18 +4990,18 @@ function jl(e = "") {
|
|
|
4864
4990
|
minutes: a
|
|
4865
4991
|
};
|
|
4866
4992
|
}
|
|
4867
|
-
function
|
|
4993
|
+
function he(e = "") {
|
|
4868
4994
|
const n = /[^0-9:]/g;
|
|
4869
4995
|
if (e = e.replaceAll(n, ""), !e)
|
|
4870
4996
|
return "";
|
|
4871
|
-
const [t, a] = e.split(":"), l =
|
|
4872
|
-
return isNaN(l) || isNaN(i) || l > 23 || i > 59 ? "" : `${l % 12 || 12}:${a} ${
|
|
4997
|
+
const [t, a] = e.split(":"), l = Se(t), i = Se(a), d = l < 12 ? "AM" : "PM";
|
|
4998
|
+
return isNaN(l) || isNaN(i) || l > 23 || i > 59 ? "" : `${l % 12 || 12}:${a} ${d}`;
|
|
4873
4999
|
}
|
|
4874
5000
|
function Wl(e = "") {
|
|
4875
5001
|
const { hours: n, minutes: t } = jl(e);
|
|
4876
5002
|
return isNaN(n) || isNaN(t) ? "" : `${n.toString().padStart(2, "0")}:${t.toString().padStart(2, "0")}`;
|
|
4877
5003
|
}
|
|
4878
|
-
const Fe = "excluded", je = "over",
|
|
5004
|
+
const Fe = "excluded", je = "over", dt = "skip", st = "stop", We = "under", Ul = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
4879
5005
|
__name: "BsTimePicker",
|
|
4880
5006
|
props: {
|
|
4881
5007
|
disabled: {
|
|
@@ -4940,20 +5066,20 @@ const Fe = "excluded", je = "over", st = "skip", dt = "stop", We = "under", Ul =
|
|
|
4940
5066
|
},
|
|
4941
5067
|
emits: ["update:modelValue"],
|
|
4942
5068
|
setup(e, { expose: n, emit: t }) {
|
|
4943
|
-
const a = e, l = t, i = y(
|
|
5069
|
+
const a = e, l = t, i = y(he(a.modelValue)), d = y([]), o = y(""), s = y(!1);
|
|
4944
5070
|
function r() {
|
|
4945
5071
|
const T = [];
|
|
4946
5072
|
let m = !1;
|
|
4947
5073
|
for (let b = 0; b < 24 && !m; b++)
|
|
4948
5074
|
for (let q = 0; q < 60; q += a.step) {
|
|
4949
|
-
const M =
|
|
4950
|
-
if (z !==
|
|
4951
|
-
if (z ===
|
|
5075
|
+
const M = w(b, q), z = p(M);
|
|
5076
|
+
if (z !== dt) {
|
|
5077
|
+
if (z === st) {
|
|
4952
5078
|
m = !0;
|
|
4953
5079
|
break;
|
|
4954
5080
|
}
|
|
4955
5081
|
T.push({
|
|
4956
|
-
label:
|
|
5082
|
+
label: he(M),
|
|
4957
5083
|
value: M
|
|
4958
5084
|
});
|
|
4959
5085
|
}
|
|
@@ -4966,76 +5092,76 @@ const Fe = "excluded", je = "over", st = "skip", dt = "stop", We = "under", Ul =
|
|
|
4966
5092
|
function p(T) {
|
|
4967
5093
|
switch (c(T)) {
|
|
4968
5094
|
case je:
|
|
4969
|
-
return
|
|
5095
|
+
return st;
|
|
4970
5096
|
case We:
|
|
4971
5097
|
case Fe:
|
|
4972
|
-
return
|
|
5098
|
+
return dt;
|
|
4973
5099
|
default:
|
|
4974
5100
|
return "";
|
|
4975
5101
|
}
|
|
4976
5102
|
}
|
|
4977
|
-
function
|
|
5103
|
+
function w(T, m) {
|
|
4978
5104
|
return T = T.toString().padStart(2, "0"), m = m.toString().padStart(2, "0"), `${T}:${m}`;
|
|
4979
5105
|
}
|
|
4980
5106
|
function g(T) {
|
|
4981
5107
|
const m = Wl(T);
|
|
4982
|
-
m === a.modelValue && (i.value =
|
|
5108
|
+
m === a.modelValue && (i.value = he(a.modelValue)), C(m);
|
|
4983
5109
|
}
|
|
4984
|
-
function
|
|
4985
|
-
|
|
5110
|
+
function k() {
|
|
5111
|
+
d.value = r();
|
|
4986
5112
|
}
|
|
4987
5113
|
function C(T) {
|
|
4988
|
-
|
|
5114
|
+
B(T), l("update:modelValue", T);
|
|
4989
5115
|
}
|
|
4990
|
-
function
|
|
5116
|
+
function B(T) {
|
|
4991
5117
|
switch (c(T)) {
|
|
4992
5118
|
case je:
|
|
4993
|
-
o.value = `Time must be before ${
|
|
5119
|
+
o.value = `Time must be before ${he(a.maxTime)}`, s.value = !0;
|
|
4994
5120
|
break;
|
|
4995
5121
|
case We:
|
|
4996
|
-
o.value = `Time must be after ${
|
|
5122
|
+
o.value = `Time must be after ${he(a.minTime)}`, s.value = !0;
|
|
4997
5123
|
break;
|
|
4998
5124
|
case Fe:
|
|
4999
|
-
o.value = `The following times are disabled: ${a.disabledTimes.map((b) =>
|
|
5125
|
+
o.value = `The following times are disabled: ${a.disabledTimes.map((b) => he(b)).join(", ")}`, s.value = !0;
|
|
5000
5126
|
break;
|
|
5001
5127
|
default:
|
|
5002
|
-
o.value = "",
|
|
5128
|
+
o.value = "", s.value = !1;
|
|
5003
5129
|
}
|
|
5004
5130
|
}
|
|
5005
|
-
return
|
|
5131
|
+
return Y(k), R([
|
|
5006
5132
|
() => a.disabledTimes,
|
|
5007
5133
|
() => a.maxTime,
|
|
5008
5134
|
() => a.minTime,
|
|
5009
5135
|
() => a.step
|
|
5010
|
-
],
|
|
5136
|
+
], k), R([
|
|
5011
5137
|
() => a.disabledTimes,
|
|
5012
5138
|
() => a.maxTime,
|
|
5013
5139
|
() => a.minTime,
|
|
5014
5140
|
() => a.modelValue
|
|
5015
|
-
], () =>
|
|
5016
|
-
i.value = a.modelValue ?
|
|
5141
|
+
], () => B(a.modelValue)), R(() => a.modelValue, (T) => {
|
|
5142
|
+
i.value = a.modelValue ? he(T) : "";
|
|
5017
5143
|
}), n({
|
|
5018
|
-
validationErr:
|
|
5144
|
+
validationErr: s,
|
|
5019
5145
|
validationErrMsg: o
|
|
5020
|
-
}), (T, m) => (
|
|
5146
|
+
}), (T, m) => (u(), E(gt, {
|
|
5021
5147
|
disabled: e.disabled,
|
|
5022
5148
|
"display-value": i.value,
|
|
5023
5149
|
"dropdown-position": e.dropdownPosition,
|
|
5024
5150
|
"dropdown-width": e.dropdownWidth,
|
|
5025
|
-
error: e.error ||
|
|
5151
|
+
error: e.error || s.value,
|
|
5026
5152
|
"helper-description": e.helperDescription,
|
|
5027
5153
|
"helper-text": e.helperText,
|
|
5028
5154
|
"hint-id": e.hintId,
|
|
5029
5155
|
"input-id": e.inputId,
|
|
5030
5156
|
"model-value": e.modelValue,
|
|
5031
|
-
options:
|
|
5157
|
+
options: d.value,
|
|
5032
5158
|
placeholder: e.placeholder,
|
|
5033
5159
|
required: e.required,
|
|
5034
5160
|
"update-on-input": !1,
|
|
5035
5161
|
"onUpdate:modelValue": g
|
|
5036
5162
|
}, null, 8, ["disabled", "display-value", "dropdown-position", "dropdown-width", "error", "helper-description", "helper-text", "hint-id", "input-id", "model-value", "options", "placeholder", "required"]));
|
|
5037
5163
|
}
|
|
5038
|
-
}),
|
|
5164
|
+
}), qo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5039
5165
|
__name: "BsTimePickerField",
|
|
5040
5166
|
props: {
|
|
5041
5167
|
disabled: {
|
|
@@ -5104,41 +5230,41 @@ const Fe = "excluded", je = "over", st = "skip", dt = "stop", We = "under", Ul =
|
|
|
5104
5230
|
},
|
|
5105
5231
|
emits: ["update:modelValue"],
|
|
5106
5232
|
setup(e, { expose: n, emit: t }) {
|
|
5107
|
-
const a = e, [l, i] = Z(2),
|
|
5233
|
+
const a = e, [l, i] = Z(2), d = y(null), o = v(() => a.errorMsg || p.value), s = v(() => a.error || w.value), r = v(() => a.inputId || l.value), c = v(() => a.hint || s.value && o.value), p = v(() => {
|
|
5108
5234
|
var g;
|
|
5109
|
-
return (g =
|
|
5110
|
-
}),
|
|
5235
|
+
return (g = d.value) == null ? void 0 : g.validationErrMsg;
|
|
5236
|
+
}), w = v(() => {
|
|
5111
5237
|
var g;
|
|
5112
|
-
return (g =
|
|
5238
|
+
return (g = d.value) == null ? void 0 : g.validationErr;
|
|
5113
5239
|
});
|
|
5114
5240
|
return n({
|
|
5115
|
-
validationErr:
|
|
5241
|
+
validationErr: w,
|
|
5116
5242
|
validationErrMsg: p
|
|
5117
|
-
}), (g,
|
|
5243
|
+
}), (g, k) => (u(), h("div", N({
|
|
5118
5244
|
"aria-live": "polite",
|
|
5119
5245
|
"data-component": "bs-time-picker-field"
|
|
5120
|
-
}, f(K)(g.$attrs, f(
|
|
5121
|
-
e.label || g.$slots.label ? (
|
|
5246
|
+
}, f(K)(g.$attrs, f(fe)).remaining), [
|
|
5247
|
+
e.label || g.$slots.label ? (u(), E(te, {
|
|
5122
5248
|
key: 0,
|
|
5123
5249
|
for: g.$attrs.id || r.value,
|
|
5124
5250
|
disabled: e.disabled,
|
|
5125
5251
|
required: e.required
|
|
5126
5252
|
}, {
|
|
5127
|
-
default:
|
|
5128
|
-
|
|
5253
|
+
default: O(() => [
|
|
5254
|
+
P(g.$slots, "label", {}, () => [
|
|
5129
5255
|
H(A(e.label), 1)
|
|
5130
5256
|
])
|
|
5131
5257
|
]),
|
|
5132
5258
|
_: 3
|
|
5133
|
-
}, 8, ["for", "disabled", "required"])) :
|
|
5259
|
+
}, 8, ["for", "disabled", "required"])) : I("", !0),
|
|
5134
5260
|
V(Ul, N({
|
|
5135
5261
|
ref_key: "timePicker",
|
|
5136
|
-
ref:
|
|
5262
|
+
ref: d,
|
|
5137
5263
|
disabled: e.disabled,
|
|
5138
5264
|
"disabled-times": e.disabledTimes,
|
|
5139
5265
|
"dropdown-position": e.dropdownPosition,
|
|
5140
5266
|
"dropdown-width": e.dropdownWidth,
|
|
5141
|
-
error:
|
|
5267
|
+
error: s.value,
|
|
5142
5268
|
"helper-description": e.helperDescription,
|
|
5143
5269
|
"helper-text": e.helperText,
|
|
5144
5270
|
"hint-id": f(i),
|
|
@@ -5149,19 +5275,19 @@ const Fe = "excluded", je = "over", st = "skip", dt = "stop", We = "under", Ul =
|
|
|
5149
5275
|
placeholder: e.placeholder,
|
|
5150
5276
|
required: e.required,
|
|
5151
5277
|
step: e.step,
|
|
5152
|
-
"onUpdate:modelValue":
|
|
5153
|
-
}, f(K)(g.$attrs, f(
|
|
5154
|
-
|
|
5155
|
-
error:
|
|
5278
|
+
"onUpdate:modelValue": k[0] || (k[0] = (C) => g.$emit("update:modelValue", C))
|
|
5279
|
+
}, f(K)(g.$attrs, f(fe)).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"]),
|
|
5280
|
+
de(V(be, {
|
|
5281
|
+
error: s.value,
|
|
5156
5282
|
"error-msg": o.value,
|
|
5157
5283
|
hint: e.hint,
|
|
5158
5284
|
"hint-id": f(i)
|
|
5159
5285
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
5160
|
-
[
|
|
5286
|
+
[se, c.value]
|
|
5161
5287
|
])
|
|
5162
5288
|
], 16));
|
|
5163
5289
|
}
|
|
5164
|
-
}), Gl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Hl = ["data-status"], Kl = { class: "visually-hidden" },
|
|
5290
|
+
}), Gl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Hl = ["data-status"], Kl = { class: "visually-hidden" }, Do = {
|
|
5165
5291
|
__name: "BsTimeline",
|
|
5166
5292
|
props: {
|
|
5167
5293
|
/** @type {Status} */
|
|
@@ -5191,31 +5317,31 @@ const Fe = "excluded", je = "over", st = "skip", dt = "stop", We = "under", Ul =
|
|
|
5191
5317
|
setup(e) {
|
|
5192
5318
|
const n = e, t = {
|
|
5193
5319
|
cancelled: Lt,
|
|
5194
|
-
complete:
|
|
5195
|
-
error:
|
|
5196
|
-
"in-progress":
|
|
5320
|
+
complete: qt,
|
|
5321
|
+
error: Dt,
|
|
5322
|
+
"in-progress": Mt,
|
|
5197
5323
|
"not-started": tt,
|
|
5198
|
-
ongoing:
|
|
5199
|
-
paused:
|
|
5324
|
+
ongoing: Nt,
|
|
5325
|
+
paused: zt,
|
|
5200
5326
|
warning: ht
|
|
5201
|
-
}, { progressStep: a, progressText: l, getStatus: i } =
|
|
5202
|
-
function
|
|
5203
|
-
return o = i(o,
|
|
5327
|
+
}, { progressStep: a, progressText: l, getStatus: i } = yt(n);
|
|
5328
|
+
function d(o, s) {
|
|
5329
|
+
return o = i(o, s), t[o] || tt;
|
|
5204
5330
|
}
|
|
5205
|
-
return (o,
|
|
5331
|
+
return (o, s) => (u(), h("div", {
|
|
5206
5332
|
"aria-valuemax": e.steps.length,
|
|
5207
5333
|
"aria-valuenow": f(a),
|
|
5208
5334
|
"aria-valuetext": f(l),
|
|
5209
5335
|
class: "bs-timeline",
|
|
5210
5336
|
role: "progressbar"
|
|
5211
5337
|
}, [
|
|
5212
|
-
(
|
|
5338
|
+
(u(!0), h(G, null, _(e.steps, (r, c) => (u(), h("div", {
|
|
5213
5339
|
class: "bs-step-item",
|
|
5214
5340
|
"data-status": f(i)(r.status, c),
|
|
5215
5341
|
key: r.id || r.label,
|
|
5216
5342
|
role: "status"
|
|
5217
5343
|
}, [
|
|
5218
|
-
(
|
|
5344
|
+
(u(), E(ee(d(r.status, c)), {
|
|
5219
5345
|
class: "bs-step-icon",
|
|
5220
5346
|
role: "presentation"
|
|
5221
5347
|
})),
|
|
@@ -5226,7 +5352,7 @@ const Fe = "excluded", je = "over", st = "skip", dt = "stop", We = "under", Ul =
|
|
|
5226
5352
|
], 8, Hl))), 128))
|
|
5227
5353
|
], 8, Gl));
|
|
5228
5354
|
}
|
|
5229
|
-
}, Yl = ["data-variant", "data-stacked"],
|
|
5355
|
+
}, Yl = ["data-variant", "data-stacked"], Mo = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
5230
5356
|
__name: "BsToast",
|
|
5231
5357
|
props: {
|
|
5232
5358
|
shown: {
|
|
@@ -5275,57 +5401,57 @@ const Fe = "excluded", je = "over", st = "skip", dt = "stop", We = "under", Ul =
|
|
|
5275
5401
|
const t = e, a = n, { transition: l } = Ee(t);
|
|
5276
5402
|
let i = null;
|
|
5277
5403
|
ue("variant", t.variant), ue("handleDismiss", o);
|
|
5278
|
-
const
|
|
5404
|
+
const d = ce("stacked", t.stacked);
|
|
5279
5405
|
function o() {
|
|
5280
5406
|
i && (clearTimeout(i), i = null), a("dismiss", t.toastId);
|
|
5281
5407
|
}
|
|
5282
|
-
function
|
|
5408
|
+
function s() {
|
|
5283
5409
|
t.duration > 0 && (i = setTimeout(() => {
|
|
5284
5410
|
o();
|
|
5285
5411
|
}, t.duration)), a("after-enter");
|
|
5286
5412
|
}
|
|
5287
|
-
return (r, c) => (
|
|
5413
|
+
return (r, c) => (u(), E(f(Me), {
|
|
5288
5414
|
shown: f(l),
|
|
5289
5415
|
preloaded: e.preloaded,
|
|
5290
5416
|
duration: 200,
|
|
5291
5417
|
"enter-attribute": "data-shown",
|
|
5292
|
-
onAfterEnter:
|
|
5418
|
+
onAfterEnter: s,
|
|
5293
5419
|
onAfterLeave: c[0] || (c[0] = (p) => a("after-leave"))
|
|
5294
5420
|
}, {
|
|
5295
|
-
default:
|
|
5421
|
+
default: O(() => [
|
|
5296
5422
|
S("div", N({
|
|
5297
5423
|
class: "bs-toast",
|
|
5298
5424
|
"data-variant": e.variant,
|
|
5299
|
-
"data-stacked": f(
|
|
5425
|
+
"data-stacked": f(d) || void 0,
|
|
5300
5426
|
role: "alert"
|
|
5301
5427
|
}, r.$attrs), [
|
|
5302
|
-
|
|
5428
|
+
P(r.$slots, "default")
|
|
5303
5429
|
], 16, Yl)
|
|
5304
5430
|
]),
|
|
5305
5431
|
_: 3
|
|
5306
5432
|
}, 8, ["shown", "preloaded"]));
|
|
5307
5433
|
}
|
|
5308
|
-
}), Xl = ["data-stacked"],
|
|
5434
|
+
}), Xl = ["data-stacked"], No = {
|
|
5309
5435
|
__name: "BsToastActions",
|
|
5310
5436
|
setup(e) {
|
|
5311
5437
|
const n = y(!1);
|
|
5312
|
-
|
|
5438
|
+
Y(() => {
|
|
5313
5439
|
var l;
|
|
5314
|
-
const a =
|
|
5440
|
+
const a = Tt();
|
|
5315
5441
|
((l = a.default) == null ? void 0 : l.call(a).length) > 2 && (n.value = !0);
|
|
5316
5442
|
});
|
|
5317
5443
|
const t = ce("handleDismiss");
|
|
5318
|
-
return (a, l) => (
|
|
5444
|
+
return (a, l) => (u(), h("div", {
|
|
5319
5445
|
class: "bs-toast-actions",
|
|
5320
5446
|
"data-stacked": n.value || void 0
|
|
5321
5447
|
}, [
|
|
5322
|
-
|
|
5323
|
-
V(
|
|
5448
|
+
P(a.$slots, "default", {}, () => [
|
|
5449
|
+
V(ca, {
|
|
5324
5450
|
size: "sm",
|
|
5325
5451
|
"text-btn": "",
|
|
5326
5452
|
onClick: f(t)
|
|
5327
5453
|
}, {
|
|
5328
|
-
default:
|
|
5454
|
+
default: O(() => [
|
|
5329
5455
|
H(" Dismiss ")
|
|
5330
5456
|
]),
|
|
5331
5457
|
_: 1
|
|
@@ -5340,11 +5466,11 @@ const Fe = "excluded", je = "over", st = "skip", dt = "stop", We = "under", Ul =
|
|
|
5340
5466
|
return t;
|
|
5341
5467
|
}, Ql = {}, Jl = { class: "bs-toast-body" };
|
|
5342
5468
|
function _l(e, n) {
|
|
5343
|
-
return
|
|
5344
|
-
|
|
5469
|
+
return u(), h("div", Jl, [
|
|
5470
|
+
P(e.$slots, "default")
|
|
5345
5471
|
]);
|
|
5346
5472
|
}
|
|
5347
|
-
const
|
|
5473
|
+
const zo = /* @__PURE__ */ Zl(Ql, [["render", _l]]), eo = ["data-variant"], Ro = {
|
|
5348
5474
|
__name: "BsToastHeader",
|
|
5349
5475
|
setup(e) {
|
|
5350
5476
|
const n = ce("variant"), t = v(() => {
|
|
@@ -5352,31 +5478,31 @@ const No = /* @__PURE__ */ Zl(Ql, [["render", _l]]), eo = ["data-variant"], zo =
|
|
|
5352
5478
|
case "warning":
|
|
5353
5479
|
return Ge;
|
|
5354
5480
|
case "positive":
|
|
5355
|
-
return
|
|
5481
|
+
return Rt;
|
|
5356
5482
|
case "negative":
|
|
5357
5483
|
return Ge;
|
|
5358
5484
|
default:
|
|
5359
5485
|
return ht;
|
|
5360
5486
|
}
|
|
5361
5487
|
});
|
|
5362
|
-
return (a, l) => (
|
|
5488
|
+
return (a, l) => (u(), h("div", {
|
|
5363
5489
|
class: "bs-toast-header",
|
|
5364
5490
|
"data-variant": f(n)
|
|
5365
5491
|
}, [
|
|
5366
|
-
(
|
|
5492
|
+
(u(), E(ee(t.value), { class: "bs-toast-header-icon" })),
|
|
5367
5493
|
S("h5", null, [
|
|
5368
|
-
|
|
5494
|
+
P(a.$slots, "default")
|
|
5369
5495
|
])
|
|
5370
5496
|
], 8, eo));
|
|
5371
5497
|
}
|
|
5372
|
-
}, to = { class: "bs-toaster" },
|
|
5498
|
+
}, to = { class: "bs-toaster" }, Fo = {
|
|
5373
5499
|
__name: "BsToaster",
|
|
5374
5500
|
setup(e) {
|
|
5375
|
-
return ue("stacked", !0), (n, t) => (
|
|
5376
|
-
|
|
5501
|
+
return ue("stacked", !0), (n, t) => (u(), h("div", to, [
|
|
5502
|
+
P(n.$slots, "default")
|
|
5377
5503
|
]));
|
|
5378
5504
|
}
|
|
5379
|
-
}, ao = ["data-position"], no = ["id"],
|
|
5505
|
+
}, ao = ["data-position"], no = ["id"], jo = {
|
|
5380
5506
|
__name: "BsTooltip",
|
|
5381
5507
|
props: {
|
|
5382
5508
|
tooltipId: {
|
|
@@ -5407,88 +5533,89 @@ const No = /* @__PURE__ */ Zl(Ql, [["render", _l]]), eo = ["data-variant"], zo =
|
|
|
5407
5533
|
let o = "bs-tooltip-text";
|
|
5408
5534
|
return a.value && (n.position === void 0 || n.position === "top" || n.position === "bottom" ? o += " escaped-x" : n.position === "left" || n.position === "right" ? o += " escaped-y" : o += " escaped"), o;
|
|
5409
5535
|
});
|
|
5410
|
-
|
|
5536
|
+
we(["Escape"], () => {
|
|
5411
5537
|
t.value && (t.value = !1, a.value = !0);
|
|
5412
5538
|
});
|
|
5413
5539
|
function i() {
|
|
5414
5540
|
t.value = !0;
|
|
5415
5541
|
}
|
|
5416
|
-
function
|
|
5542
|
+
function d() {
|
|
5417
5543
|
t.value = !1, a.value = !1;
|
|
5418
5544
|
}
|
|
5419
|
-
return (o,
|
|
5545
|
+
return (o, s) => (u(), h("div", {
|
|
5420
5546
|
class: "bs-tooltip",
|
|
5421
5547
|
"data-position": e.position || void 0,
|
|
5422
5548
|
"data-component": "bs-tooltip",
|
|
5423
5549
|
onMouseenter: i,
|
|
5424
5550
|
onFocusin: i,
|
|
5425
|
-
onMouseleave:
|
|
5426
|
-
onFocusout:
|
|
5551
|
+
onMouseleave: d,
|
|
5552
|
+
onFocusout: d
|
|
5427
5553
|
}, [
|
|
5428
|
-
|
|
5429
|
-
e.content ? (
|
|
5554
|
+
P(o.$slots, "default"),
|
|
5555
|
+
e.content ? (u(), h("div", {
|
|
5430
5556
|
key: 0,
|
|
5431
5557
|
class: oe(l.value),
|
|
5432
5558
|
id: e.tooltipId,
|
|
5433
5559
|
role: "tooltip"
|
|
5434
|
-
}, A(e.content), 11, no)) :
|
|
5560
|
+
}, A(e.content), 11, no)) : I("", !0)
|
|
5435
5561
|
], 40, ao));
|
|
5436
5562
|
}
|
|
5437
5563
|
};
|
|
5438
5564
|
export {
|
|
5439
5565
|
co as BsAccordion,
|
|
5440
|
-
|
|
5566
|
+
ra as BsBadge,
|
|
5441
5567
|
fo as BsBanner,
|
|
5442
|
-
|
|
5568
|
+
ca as BsButton,
|
|
5443
5569
|
po as BsCalendar,
|
|
5444
5570
|
vo as BsChartBar,
|
|
5445
5571
|
ho as BsCheckbox,
|
|
5446
5572
|
mo as BsCircleButton,
|
|
5447
5573
|
mt as BsDropdown,
|
|
5448
|
-
|
|
5574
|
+
gt as BsDropdownCombobox,
|
|
5575
|
+
bo as BsDropdownComboboxField,
|
|
5449
5576
|
Sn as BsDropdownMultiselect,
|
|
5450
5577
|
Xe as BsDropdownOption,
|
|
5451
|
-
|
|
5578
|
+
Le as BsDropdownOptionBuilder,
|
|
5452
5579
|
Ze as BsDropdownOptionList,
|
|
5453
5580
|
Qe as BsDropdownWithOptions,
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5581
|
+
vn as BsDropdownWithToggle,
|
|
5582
|
+
be as BsFieldDetails,
|
|
5583
|
+
an as BsFilterButton,
|
|
5584
|
+
go as BsIconGradientWrapper,
|
|
5585
|
+
Be as BsInput,
|
|
5459
5586
|
Pe as BsInputAddon,
|
|
5460
|
-
|
|
5461
|
-
|
|
5587
|
+
yo as BsInputField,
|
|
5588
|
+
So as BsInputPhone,
|
|
5462
5589
|
Vn as BsInputSearch,
|
|
5463
|
-
|
|
5464
|
-
|
|
5590
|
+
wo as BsInputTypeahead,
|
|
5591
|
+
te as BsLabel,
|
|
5465
5592
|
Nn as BsLoader,
|
|
5466
5593
|
Bo as BsModal,
|
|
5467
5594
|
Fn as BsOverlay,
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5595
|
+
$o as BsPagination,
|
|
5596
|
+
Io as BsPill,
|
|
5597
|
+
ko as BsProfile,
|
|
5471
5598
|
hl as BsProfileDetails,
|
|
5472
5599
|
bt as BsProfileImg,
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5600
|
+
To as BsProgressBar,
|
|
5601
|
+
Co as BsRadio,
|
|
5602
|
+
wl as BsSelect,
|
|
5603
|
+
xo as BsSelectField,
|
|
5604
|
+
Ao as BsSpinner,
|
|
5605
|
+
Vo as BsSwitch,
|
|
5606
|
+
Eo as BsTab,
|
|
5607
|
+
Po as BsTabList,
|
|
5608
|
+
Oo as BsTabPanel,
|
|
5482
5609
|
Rl as BsTextarea,
|
|
5483
5610
|
Lo as BsTextareaField,
|
|
5484
5611
|
Ul as BsTimePicker,
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5612
|
+
qo as BsTimePickerField,
|
|
5613
|
+
Do as BsTimeline,
|
|
5614
|
+
Mo as BsToast,
|
|
5615
|
+
No as BsToastActions,
|
|
5616
|
+
zo as BsToastBody,
|
|
5617
|
+
Ro as BsToastHeader,
|
|
5618
|
+
Fo as BsToaster,
|
|
5619
|
+
jo as BsTooltip,
|
|
5493
5620
|
Me as BsTransition
|
|
5494
5621
|
};
|