@wwtdev/bsds-components-vue3 1.6.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/nuxt/bsds-components.mjs +201 -192
- package/nuxt/bsds-components.umd.js +1 -1
- package/package.json +2 -2
package/nuxt/bsds-components.mjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { defineComponent as ae, ref as v, getCurrentInstance as se, inject as le, h as re, openBlock as
|
|
2
|
-
import { useAsyncData as
|
|
3
|
-
import { ClientOnly as
|
|
4
|
-
const K = "update:modelValue", F = "modelValue", ne = "routerLink", J = "navManager", ie = "router", oe = "aria",
|
|
1
|
+
import { defineComponent as ae, ref as v, getCurrentInstance as se, inject as le, h as re, openBlock as o, createElementBlock as f, mergeProps as d, renderSlot as m, computed as Z, unref as b, reactive as C, onMounted as S, watch as I, nextTick as A, onBeforeUnmount as q, Fragment as L, createBlock as g, withCtx as k, Teleport as V, createCommentVNode as R, createElementVNode as x, createVNode as z, normalizeProps as j } from "vue";
|
|
2
|
+
import { useAsyncData as P } from "#imports";
|
|
3
|
+
import { ClientOnly as B } from "#components";
|
|
4
|
+
const K = "update:modelValue", F = "modelValue", ne = "routerLink", J = "navManager", ie = "router", oe = "aria", T = Symbol(), H = { default: T }, Q = (e) => (e == null ? void 0 : e.split(" ")) || [], de = (e, n, a = []) => {
|
|
5
5
|
var t;
|
|
6
6
|
return [...Array.from(((t = e.value) == null ? void 0 : t.classList) || []), ...a].filter(
|
|
7
|
-
(s, r,
|
|
7
|
+
(s, r, i) => !n.has(s) && i.indexOf(s) === r
|
|
8
8
|
);
|
|
9
9
|
}, _ = (e, n, a = [], t, s, r) => {
|
|
10
10
|
n !== void 0 && n();
|
|
11
|
-
const
|
|
11
|
+
const i = ae((u, { attrs: l, slots: h, emit: c }) => {
|
|
12
12
|
var U;
|
|
13
13
|
let y = u[t];
|
|
14
14
|
const G = v(), X = new Set(Q(l.class)), ee = (p) => {
|
|
15
15
|
p.el && (Array.isArray(s) ? s : [s]).forEach((w) => {
|
|
16
16
|
p.el.addEventListener(w.toLowerCase(), ($) => {
|
|
17
|
-
y = ($ == null ? void 0 : $.target)[t],
|
|
17
|
+
y = ($ == null ? void 0 : $.target)[t], c(K, y), r && c(r, $);
|
|
18
18
|
});
|
|
19
19
|
});
|
|
20
20
|
}, N = se(), Y = ((U = N == null ? void 0 : N.appContext) == null ? void 0 : U.provides[J]) ? le(J) : void 0, te = (p) => {
|
|
21
21
|
const { routerLink: M } = u;
|
|
22
|
-
if (M !==
|
|
22
|
+
if (M !== T)
|
|
23
23
|
if (Y !== void 0) {
|
|
24
24
|
let w = { event: p };
|
|
25
25
|
for (const $ in u) {
|
|
26
|
-
const
|
|
27
|
-
u.hasOwnProperty($) && $.startsWith(ie) &&
|
|
26
|
+
const E = u[$];
|
|
27
|
+
u.hasOwnProperty($) && $.startsWith(ie) && E !== T && (w[$] = E);
|
|
28
28
|
}
|
|
29
29
|
Y.navigate(w);
|
|
30
30
|
} else
|
|
@@ -44,23 +44,23 @@ const K = "update:modelValue", F = "modelValue", ne = "routerLink", J = "navMana
|
|
|
44
44
|
onVnodeBeforeMount: s ? ee : void 0
|
|
45
45
|
};
|
|
46
46
|
for (const $ in u) {
|
|
47
|
-
const
|
|
48
|
-
(u.hasOwnProperty($) &&
|
|
47
|
+
const E = u[$];
|
|
48
|
+
(u.hasOwnProperty($) && E !== T || $.startsWith(oe)) && (w[$] = E);
|
|
49
49
|
}
|
|
50
|
-
return t && (u[F] !==
|
|
50
|
+
return t && (u[F] !== T ? w = {
|
|
51
51
|
...w,
|
|
52
52
|
[t]: u[F]
|
|
53
|
-
} : y !==
|
|
53
|
+
} : y !== T && (w = {
|
|
54
54
|
...w,
|
|
55
55
|
[t]: y
|
|
56
56
|
})), re(e, w, h.default && h.default());
|
|
57
57
|
};
|
|
58
58
|
});
|
|
59
|
-
return typeof
|
|
59
|
+
return typeof i != "function" && (i.name = e, i.props = {
|
|
60
60
|
[ne]: H
|
|
61
61
|
}, a.forEach((u) => {
|
|
62
|
-
|
|
63
|
-
}), t && (
|
|
62
|
+
i.props[u] = H;
|
|
63
|
+
}), t && (i.props[F] = H, i.emits = [K, r])), i;
|
|
64
64
|
}, at = /* @__PURE__ */ _("bs-input-addon", void 0, [
|
|
65
65
|
"disabled",
|
|
66
66
|
"error",
|
|
@@ -79,7 +79,7 @@ const K = "update:modelValue", F = "modelValue", ne = "routerLink", J = "navMana
|
|
|
79
79
|
},
|
|
80
80
|
emits: [],
|
|
81
81
|
setup(e, { emit: n }) {
|
|
82
|
-
return (a, t) => (
|
|
82
|
+
return (a, t) => (o(), f("bs-badge", d(a.$attrs, {
|
|
83
83
|
color: e.color,
|
|
84
84
|
count: e.count,
|
|
85
85
|
"count-max": e.countMax,
|
|
@@ -99,7 +99,7 @@ const K = "update:modelValue", F = "modelValue", ne = "routerLink", J = "navMana
|
|
|
99
99
|
},
|
|
100
100
|
emits: [],
|
|
101
101
|
setup(e, { emit: n }) {
|
|
102
|
-
return (a, t) => (
|
|
102
|
+
return (a, t) => (o(), f("bs-character-count", d(a.$attrs, {
|
|
103
103
|
"char-count": e.charCount,
|
|
104
104
|
"char-max": e.charMax
|
|
105
105
|
}), null, 16, ce));
|
|
@@ -120,7 +120,7 @@ const K = "update:modelValue", F = "modelValue", ne = "routerLink", J = "navMana
|
|
|
120
120
|
},
|
|
121
121
|
emits: [],
|
|
122
122
|
setup(e, { emit: n }) {
|
|
123
|
-
return (a, t) => (
|
|
123
|
+
return (a, t) => (o(), f("bs-chart-bar", d(a.$attrs, {
|
|
124
124
|
"chart-title": e.chartTitle,
|
|
125
125
|
data: e.data,
|
|
126
126
|
dataIdxLabels: e.dataIdxLabels,
|
|
@@ -142,7 +142,7 @@ const K = "update:modelValue", F = "modelValue", ne = "routerLink", J = "navMana
|
|
|
142
142
|
},
|
|
143
143
|
emits: [],
|
|
144
144
|
setup(e, { emit: n }) {
|
|
145
|
-
return (a, t) => (
|
|
145
|
+
return (a, t) => (o(), f("bs-chart-table", d(a.$attrs, {
|
|
146
146
|
data: e.data,
|
|
147
147
|
dataIdxLabels: e.dataIdxLabels,
|
|
148
148
|
"table-title": e.tableTitle
|
|
@@ -163,7 +163,7 @@ const K = "update:modelValue", F = "modelValue", ne = "routerLink", J = "navMana
|
|
|
163
163
|
},
|
|
164
164
|
emits: ["update:modelValue"],
|
|
165
165
|
setup(e, { emit: n }) {
|
|
166
|
-
return (a, t) => (
|
|
166
|
+
return (a, t) => (o(), f("bs-checkbox", d(a.$attrs, {
|
|
167
167
|
label: e.label,
|
|
168
168
|
checked: e.checked || e.modelValue,
|
|
169
169
|
"checked-partially": e.checkedPartially,
|
|
@@ -176,7 +176,7 @@ const K = "update:modelValue", F = "modelValue", ne = "routerLink", J = "navMana
|
|
|
176
176
|
}), null, 16, me));
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
|
-
function
|
|
179
|
+
function W(e) {
|
|
180
180
|
const n = Z(() => {
|
|
181
181
|
var s, r;
|
|
182
182
|
return ((r = (s = e.href) == null ? void 0 : s.startsWith) == null ? void 0 : r.call(s, "/")) || !1;
|
|
@@ -185,8 +185,8 @@ function O(e) {
|
|
|
185
185
|
return n.value && ((s = e.router) == null ? void 0 : s.navigateTo) || ((r = e.router) == null ? void 0 : r.push) || null;
|
|
186
186
|
});
|
|
187
187
|
function t(s) {
|
|
188
|
-
var r,
|
|
189
|
-
a.value && ((
|
|
188
|
+
var r, i, u, l, h;
|
|
189
|
+
a.value && ((i = (r = s.target.href) == null ? void 0 : r.endsWith) != null && i.call(r, e.href) || (h = (l = (u = s.target.closest("a")) == null ? void 0 : u.href) == null ? void 0 : l.endsWith) != null && h.call(l, e.href)) && (s.preventDefault(), a.value(e.href));
|
|
190
190
|
}
|
|
191
191
|
return { onLinkClick: t };
|
|
192
192
|
}
|
|
@@ -207,8 +207,8 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
207
207
|
},
|
|
208
208
|
emits: [],
|
|
209
209
|
setup(e, { emit: n }) {
|
|
210
|
-
const a = e, { onLinkClick: t } =
|
|
211
|
-
return (s, r) => (
|
|
210
|
+
const a = e, { onLinkClick: t } = W(a);
|
|
211
|
+
return (s, r) => (o(), f("bs-circle-button", d(s.$attrs, {
|
|
212
212
|
disabled: e.disabled,
|
|
213
213
|
"ghost-btn": e.ghostBtn,
|
|
214
214
|
"hover-effect": e.hoverEffect,
|
|
@@ -219,7 +219,7 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
219
219
|
"pass-attrs": e.passAttrs,
|
|
220
220
|
"text-btn": e.textBtn,
|
|
221
221
|
size: e.size,
|
|
222
|
-
onClick: r[0] || (r[0] = (...
|
|
222
|
+
onClick: r[0] || (r[0] = (...i) => b(t) && b(t)(...i))
|
|
223
223
|
}), null, 16, be));
|
|
224
224
|
}
|
|
225
225
|
}, ve = ["dropdown-id", "shown", "label", "position", "justify", "variant"], ut = {
|
|
@@ -234,7 +234,7 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
234
234
|
},
|
|
235
235
|
emits: ["dropdownchange", "close"],
|
|
236
236
|
setup(e, { emit: n }) {
|
|
237
|
-
return (a, t) => (
|
|
237
|
+
return (a, t) => (o(), f("bs-dropdown", d(a.$attrs, {
|
|
238
238
|
"dropdown-id": e.dropdownId,
|
|
239
239
|
shown: e.shown,
|
|
240
240
|
label: e.label,
|
|
@@ -260,7 +260,7 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
260
260
|
},
|
|
261
261
|
emits: ["mousefocus", "optionselect"],
|
|
262
262
|
setup(e, { emit: n }) {
|
|
263
|
-
return (a, t) => (
|
|
263
|
+
return (a, t) => (o(), f("bs-dropdown-option", d(a.$attrs, {
|
|
264
264
|
value: e.value,
|
|
265
265
|
variant: e.variant,
|
|
266
266
|
selected: e.selected,
|
|
@@ -285,7 +285,7 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
285
285
|
},
|
|
286
286
|
emits: ["dropdownchange", "close"],
|
|
287
287
|
setup(e, { emit: n }) {
|
|
288
|
-
return (a, t) => (
|
|
288
|
+
return (a, t) => (o(), f("bs-dropdown-options", d(a.$attrs, {
|
|
289
289
|
"dropdown-id": e.dropdownId,
|
|
290
290
|
shown: e.shown,
|
|
291
291
|
label: e.label,
|
|
@@ -297,7 +297,7 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
297
297
|
m(a.$slots, "default")
|
|
298
298
|
], 16, $e));
|
|
299
299
|
}
|
|
300
|
-
},
|
|
300
|
+
}, ge = ["char-count", "char-max", "disabled", "error", "hints", "label", "label-for", "required", "hint-id"], ht = {
|
|
301
301
|
__name: "BsFieldLayout",
|
|
302
302
|
props: {
|
|
303
303
|
charCount: {},
|
|
@@ -312,7 +312,7 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
312
312
|
},
|
|
313
313
|
emits: [],
|
|
314
314
|
setup(e, { emit: n }) {
|
|
315
|
-
return (a, t) => (
|
|
315
|
+
return (a, t) => (o(), f("bs-field-layout", d(a.$attrs, {
|
|
316
316
|
"char-count": e.charCount,
|
|
317
317
|
"char-max": e.charMax,
|
|
318
318
|
disabled: e.disabled,
|
|
@@ -324,9 +324,9 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
324
324
|
"hint-id": e.hintId
|
|
325
325
|
}), [
|
|
326
326
|
m(a.$slots, "default")
|
|
327
|
-
], 16,
|
|
327
|
+
], 16, ge));
|
|
328
328
|
}
|
|
329
|
-
},
|
|
329
|
+
}, ke = ["error", "hint-id", "hints"], mt = {
|
|
330
330
|
__name: "BsHint",
|
|
331
331
|
props: {
|
|
332
332
|
error: {},
|
|
@@ -335,13 +335,13 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
335
335
|
},
|
|
336
336
|
emits: [],
|
|
337
337
|
setup(e, { emit: n }) {
|
|
338
|
-
return (a, t) => (
|
|
338
|
+
return (a, t) => (o(), f("bs-hint", d(a.$attrs, {
|
|
339
339
|
error: e.error,
|
|
340
340
|
"hint-id": e.hintId,
|
|
341
341
|
hints: e.hints
|
|
342
|
-
}), null, 16,
|
|
342
|
+
}), null, 16, ke));
|
|
343
343
|
}
|
|
344
|
-
},
|
|
344
|
+
}, Be = ["disabled", "error", "pass-attrs", "placeholder", "required", "type", "value", "hint-id"], bt = {
|
|
345
345
|
__name: "BsInput",
|
|
346
346
|
props: {
|
|
347
347
|
disabled: { default: !1 },
|
|
@@ -356,7 +356,7 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
356
356
|
},
|
|
357
357
|
emits: ["update:modelValue"],
|
|
358
358
|
setup(e, { emit: n }) {
|
|
359
|
-
return (a, t) => (
|
|
359
|
+
return (a, t) => (o(), f("bs-input", d(a.$attrs, {
|
|
360
360
|
disabled: e.disabled,
|
|
361
361
|
error: e.error,
|
|
362
362
|
"pass-attrs": e.passAttrs,
|
|
@@ -366,7 +366,7 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
366
366
|
value: e.value || e.modelValue,
|
|
367
367
|
"hint-id": e.hintId,
|
|
368
368
|
onInput: t[0] || (t[0] = (s) => n("update:modelValue", s.target.value))
|
|
369
|
-
}), null, 16,
|
|
369
|
+
}), null, 16, Be));
|
|
370
370
|
}
|
|
371
371
|
}, we = ["disabled", "error", "hints", "label", "pass-attrs", "placeholder", "required", "type", "value"], vt = {
|
|
372
372
|
__name: "BsInputField",
|
|
@@ -384,7 +384,7 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
384
384
|
},
|
|
385
385
|
emits: ["update:modelValue"],
|
|
386
386
|
setup(e, { emit: n }) {
|
|
387
|
-
return (a, t) => (
|
|
387
|
+
return (a, t) => (o(), f("bs-input-field", d(a.$attrs, {
|
|
388
388
|
disabled: e.disabled,
|
|
389
389
|
error: e.error,
|
|
390
390
|
hints: e.hints,
|
|
@@ -409,7 +409,7 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
409
409
|
},
|
|
410
410
|
emits: ["onclear"],
|
|
411
411
|
setup(e, { emit: n }) {
|
|
412
|
-
return (a, t) => (
|
|
412
|
+
return (a, t) => (o(), f("bs-input-search", d(a.$attrs, {
|
|
413
413
|
disabled: e.disabled,
|
|
414
414
|
"pass-attrs": e.passAttrs,
|
|
415
415
|
placeholder: e.placeholder,
|
|
@@ -435,8 +435,8 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
435
435
|
},
|
|
436
436
|
emits: [],
|
|
437
437
|
setup(e, { emit: n }) {
|
|
438
|
-
const a = e, { onLinkClick: t } =
|
|
439
|
-
return (s, r) => (
|
|
438
|
+
const a = e, { onLinkClick: t } = W(a);
|
|
439
|
+
return (s, r) => (o(), f("bs-profile", d(s.$attrs, {
|
|
440
440
|
layout: e.layout,
|
|
441
441
|
href: e.href,
|
|
442
442
|
"image-src": e.imageSrc,
|
|
@@ -446,10 +446,10 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
446
446
|
company: e.company,
|
|
447
447
|
"job-title": e.jobTitle,
|
|
448
448
|
email: e.email,
|
|
449
|
-
onClick: r[0] || (r[0] = (...
|
|
449
|
+
onClick: r[0] || (r[0] = (...i) => b(t) && b(t)(...i))
|
|
450
450
|
}), null, 16, Ae));
|
|
451
451
|
}
|
|
452
|
-
}, Te = ["profile-name", "company", "job-title", "email"],
|
|
452
|
+
}, Te = ["profile-name", "company", "job-title", "email"], gt = {
|
|
453
453
|
__name: "BsProfileDetails",
|
|
454
454
|
props: {
|
|
455
455
|
profileName: {},
|
|
@@ -459,14 +459,14 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
459
459
|
},
|
|
460
460
|
emits: [],
|
|
461
461
|
setup(e, { emit: n }) {
|
|
462
|
-
return (a, t) => (
|
|
462
|
+
return (a, t) => (o(), f("bs-profile-details", d(a.$attrs, {
|
|
463
463
|
"profile-name": e.profileName,
|
|
464
464
|
company: e.company,
|
|
465
465
|
"job-title": e.jobTitle,
|
|
466
466
|
email: e.email
|
|
467
467
|
}), null, 16, Te));
|
|
468
468
|
}
|
|
469
|
-
}, Ce = ["src", "size", "initials", "profile-name"],
|
|
469
|
+
}, Ce = ["src", "size", "initials", "profile-name"], kt = {
|
|
470
470
|
__name: "BsProfileImg",
|
|
471
471
|
props: {
|
|
472
472
|
src: {},
|
|
@@ -476,14 +476,14 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
476
476
|
},
|
|
477
477
|
emits: [],
|
|
478
478
|
setup(e, { emit: n }) {
|
|
479
|
-
return (a, t) => (
|
|
479
|
+
return (a, t) => (o(), f("bs-profile-img", d(a.$attrs, {
|
|
480
480
|
src: e.src,
|
|
481
481
|
size: e.size,
|
|
482
482
|
initials: e.initials,
|
|
483
483
|
"profile-name": e.profileName
|
|
484
484
|
}), null, 16, Ce));
|
|
485
485
|
}
|
|
486
|
-
}, Se = ["layout", "href", "pass-attrs"],
|
|
486
|
+
}, Se = ["layout", "href", "pass-attrs"], Bt = {
|
|
487
487
|
__name: "BsProfileLayout",
|
|
488
488
|
props: {
|
|
489
489
|
layout: { default: "vertical" },
|
|
@@ -493,12 +493,12 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
493
493
|
},
|
|
494
494
|
emits: [],
|
|
495
495
|
setup(e, { emit: n }) {
|
|
496
|
-
const a = e, { onLinkClick: t } =
|
|
497
|
-
return (s, r) => (
|
|
496
|
+
const a = e, { onLinkClick: t } = W(a);
|
|
497
|
+
return (s, r) => (o(), f("bs-profile-layout", d(s.$attrs, {
|
|
498
498
|
layout: e.layout,
|
|
499
499
|
href: e.href,
|
|
500
500
|
"pass-attrs": e.passAttrs,
|
|
501
|
-
onClick: r[0] || (r[0] = (...
|
|
501
|
+
onClick: r[0] || (r[0] = (...i) => b(t) && b(t)(...i))
|
|
502
502
|
}), [
|
|
503
503
|
m(s.$slots, "default")
|
|
504
504
|
], 16, Se));
|
|
@@ -518,7 +518,7 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
518
518
|
},
|
|
519
519
|
emits: ["update:modelValue"],
|
|
520
520
|
setup(e, { emit: n }) {
|
|
521
|
-
return (a, t) => (
|
|
521
|
+
return (a, t) => (o(), f("bs-radio", d(a.$attrs, {
|
|
522
522
|
label: e.label,
|
|
523
523
|
checked: e.checked || e.modelValue === e.value,
|
|
524
524
|
disabled: e.disabled,
|
|
@@ -546,7 +546,7 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
546
546
|
},
|
|
547
547
|
emits: ["update:modelValue"],
|
|
548
548
|
setup(e, { emit: n }) {
|
|
549
|
-
return (a, t) => (
|
|
549
|
+
return (a, t) => (o(), f("bs-select-field", d(a.$attrs, {
|
|
550
550
|
disabled: e.disabled,
|
|
551
551
|
error: e.error,
|
|
552
552
|
required: e.required,
|
|
@@ -573,7 +573,7 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
573
573
|
},
|
|
574
574
|
emits: ["update:modelValue"],
|
|
575
575
|
setup(e, { emit: n }) {
|
|
576
|
-
return (a, t) => (
|
|
576
|
+
return (a, t) => (o(), f("bs-switch", d(a.$attrs, {
|
|
577
577
|
checked: e.checked || e.modelValue,
|
|
578
578
|
disabled: e.disabled,
|
|
579
579
|
"inner-on-label": e.innerOnLabel,
|
|
@@ -598,7 +598,7 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
598
598
|
},
|
|
599
599
|
emits: ["update:modelValue"],
|
|
600
600
|
setup(e, { emit: n }) {
|
|
601
|
-
return (a, t) => (
|
|
601
|
+
return (a, t) => (o(), f("bs-textarea", d(a.$attrs, {
|
|
602
602
|
disabled: e.disabled,
|
|
603
603
|
error: e.error,
|
|
604
604
|
"pass-attrs": e.passAttrs,
|
|
@@ -625,7 +625,7 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
625
625
|
},
|
|
626
626
|
emits: ["update:modelValue"],
|
|
627
627
|
setup(e, { emit: n }) {
|
|
628
|
-
return (a, t) => (
|
|
628
|
+
return (a, t) => (o(), f("bs-textarea-field", d(a.$attrs, {
|
|
629
629
|
"char-max": e.charMax,
|
|
630
630
|
disabled: e.disabled,
|
|
631
631
|
error: e.error,
|
|
@@ -638,7 +638,7 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
638
638
|
onInput: t[0] || (t[0] = (s) => n("update:modelValue", s.target.value))
|
|
639
639
|
}), null, 16, Re));
|
|
640
640
|
}
|
|
641
|
-
},
|
|
641
|
+
}, xe = ["toast-id", "shown", "variant", "toast-title", "content", "stacked", "duration", "primary-action", "primary-action-type", "secondary-action", "secondary-action-type", "tertiary-action", "tertiary-action-type", "dismiss-action"], St = {
|
|
642
642
|
__name: "BsToast",
|
|
643
643
|
props: {
|
|
644
644
|
toastId: {},
|
|
@@ -658,7 +658,7 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
658
658
|
},
|
|
659
659
|
emits: ["dismiss", "actionclick"],
|
|
660
660
|
setup(e, { emit: n }) {
|
|
661
|
-
return (a, t) => (
|
|
661
|
+
return (a, t) => (o(), f("bs-toast", d(a.$attrs, {
|
|
662
662
|
"toast-id": e.toastId,
|
|
663
663
|
shown: e.shown,
|
|
664
664
|
variant: e.variant,
|
|
@@ -677,9 +677,9 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
677
677
|
onActionclick: t[1] || (t[1] = (s) => n("actionclick", s.detail))
|
|
678
678
|
}), [
|
|
679
679
|
m(a.$slots, "default")
|
|
680
|
-
], 16,
|
|
680
|
+
], 16, xe));
|
|
681
681
|
}
|
|
682
|
-
},
|
|
682
|
+
}, ze = ["tooltip-id", "content", "position"], It = {
|
|
683
683
|
__name: "BsTooltip",
|
|
684
684
|
props: {
|
|
685
685
|
tooltipId: {},
|
|
@@ -688,23 +688,23 @@ const be = ["disabled", "ghost-btn", "hover-effect", "href", "icon", "icon-posit
|
|
|
688
688
|
},
|
|
689
689
|
emits: [],
|
|
690
690
|
setup(e, { emit: n }) {
|
|
691
|
-
return (a, t) => (
|
|
691
|
+
return (a, t) => (o(), f("bs-tooltip", d(a.$attrs, {
|
|
692
692
|
"tooltip-id": e.tooltipId,
|
|
693
693
|
content: e.content,
|
|
694
694
|
position: e.position
|
|
695
695
|
}), [
|
|
696
696
|
m(a.$slots, "default")
|
|
697
|
-
], 16,
|
|
697
|
+
], 16, ze));
|
|
698
698
|
}
|
|
699
699
|
};
|
|
700
|
-
function
|
|
700
|
+
function D(e) {
|
|
701
701
|
const { height: n, width: a } = e.value.getBoundingClientRect();
|
|
702
702
|
e.value.style.minHeight = n + "px", e.value.style.minWidth = a + "px", e.value.replaceChildren();
|
|
703
703
|
}
|
|
704
|
-
function
|
|
704
|
+
function O(e) {
|
|
705
705
|
e.value.style.minHeight = null, e.value.style.minWidth = null;
|
|
706
706
|
}
|
|
707
|
-
const
|
|
707
|
+
const Pe = ["controlled", "icon", "header-text", "heading-level", "open-item", "stacked"], Ee = {
|
|
708
708
|
__name: "BsAccordionServer",
|
|
709
709
|
props: {
|
|
710
710
|
controlled: { default: !1 },
|
|
@@ -716,28 +716,28 @@ const xe = ["controlled", "icon", "header-text", "heading-level", "open-item", "
|
|
|
716
716
|
},
|
|
717
717
|
emits: ["toggled"],
|
|
718
718
|
setup(e, { emit: n }) {
|
|
719
|
-
const a = v(!1), t = v(null), s = v(""), r =
|
|
720
|
-
var
|
|
721
|
-
t.value || h >= 4 || (t.value = (y = (
|
|
719
|
+
const a = v(!1), t = v(null), s = v(""), r = C([]), i = v(null), u = (l, h = 0) => {
|
|
720
|
+
var c, y;
|
|
721
|
+
t.value || h >= 4 || (t.value = (y = (c = l.value) == null ? void 0 : c.querySelector) == null ? void 0 : y.call(c, "[data-slot]"), t.value || r.push(setTimeout(() => u(l, h + 1), 50)));
|
|
722
722
|
};
|
|
723
|
-
return
|
|
724
|
-
!l || a.value || (
|
|
725
|
-
|
|
723
|
+
return S(() => u(i, 0)), I(t, (l) => {
|
|
724
|
+
!l || a.value || (D(t), r.push(setTimeout(() => {
|
|
725
|
+
O(t), A(() => {
|
|
726
726
|
s.value = customElements.get("bs-accordion") ? "hydrated superhydrated" : "superhydrated";
|
|
727
727
|
});
|
|
728
728
|
}, 100)), a.value = !0);
|
|
729
|
-
}, { immediate: !0 }), q(() => r.forEach((l) => clearTimeout(l))), (l, h) => (
|
|
730
|
-
t.value ? (
|
|
731
|
-
default:
|
|
732
|
-
(
|
|
729
|
+
}, { immediate: !0 }), q(() => r.forEach((l) => clearTimeout(l))), (l, h) => (o(), f(L, null, [
|
|
730
|
+
t.value ? (o(), g(b(B), { key: 0 }, {
|
|
731
|
+
default: k(() => [
|
|
732
|
+
(o(), g(V, { to: t.value }, [
|
|
733
733
|
m(l.$slots, "default")
|
|
734
734
|
], 8, ["to"]))
|
|
735
735
|
]),
|
|
736
736
|
_: 3
|
|
737
737
|
})) : R("", !0),
|
|
738
|
-
|
|
738
|
+
x("bs-accordion", d({
|
|
739
739
|
ref_key: "wcRef",
|
|
740
|
-
ref:
|
|
740
|
+
ref: i,
|
|
741
741
|
class: s.value,
|
|
742
742
|
"data-bsds-ssr": "",
|
|
743
743
|
controlled: e.controlled,
|
|
@@ -746,15 +746,15 @@ const xe = ["controlled", "icon", "header-text", "heading-level", "open-item", "
|
|
|
746
746
|
"heading-level": e.headingLevel,
|
|
747
747
|
"open-item": e.openItem,
|
|
748
748
|
stacked: e.stacked,
|
|
749
|
-
onToggled: h[0] || (h[0] = (
|
|
749
|
+
onToggled: h[0] || (h[0] = (c) => n("toggled", c.detail))
|
|
750
750
|
}, l.$attrs), [
|
|
751
|
-
|
|
752
|
-
fallback:
|
|
751
|
+
z(b(B), null, {
|
|
752
|
+
fallback: k(() => [
|
|
753
753
|
m(l.$slots, "default")
|
|
754
754
|
]),
|
|
755
755
|
_: 3
|
|
756
756
|
})
|
|
757
|
-
], 16,
|
|
757
|
+
], 16, Pe)
|
|
758
758
|
], 64));
|
|
759
759
|
}
|
|
760
760
|
}, We = "bs-accordion", qt = {
|
|
@@ -769,19 +769,19 @@ const xe = ["controlled", "icon", "header-text", "heading-level", "open-item", "
|
|
|
769
769
|
},
|
|
770
770
|
emits: ["toggled"],
|
|
771
771
|
setup(e, { emit: n }) {
|
|
772
|
-
const a = e, { data: t } =
|
|
772
|
+
const a = e, { data: t } = P(We, () => {
|
|
773
773
|
if (process.server)
|
|
774
774
|
return !0;
|
|
775
775
|
});
|
|
776
|
-
return (s, r) => b(t) ? (
|
|
777
|
-
onToggled: r[0] || (r[0] = (
|
|
776
|
+
return (s, r) => b(t) ? (o(), g(Ee, d({ key: 0 }, { ...a, ...s.$attrs }, {
|
|
777
|
+
onToggled: r[0] || (r[0] = (i) => n("toggled", i.detail))
|
|
778
778
|
}), {
|
|
779
|
-
default:
|
|
779
|
+
default: k(() => [
|
|
780
780
|
m(s.$slots, "default")
|
|
781
781
|
]),
|
|
782
782
|
_: 3
|
|
783
|
-
}, 16)) : (
|
|
784
|
-
onToggled: r[1] || (r[1] = (
|
|
783
|
+
}, 16)) : (o(), f("bs-accordion", d({ key: 1 }, { ...a, ...s.$attrs }, {
|
|
784
|
+
onToggled: r[1] || (r[1] = (i) => n("toggled", i.detail))
|
|
785
785
|
}), [
|
|
786
786
|
m(s.$slots, "default")
|
|
787
787
|
], 16));
|
|
@@ -791,34 +791,34 @@ const xe = ["controlled", "icon", "header-text", "heading-level", "open-item", "
|
|
|
791
791
|
props: {},
|
|
792
792
|
emits: ["dismiss"],
|
|
793
793
|
setup(e, { emit: n }) {
|
|
794
|
-
const a = v(!1), t = v(null), s = v(""), r =
|
|
795
|
-
var
|
|
796
|
-
t.value || h >= 4 || (t.value = (y = (
|
|
794
|
+
const a = v(!1), t = v(null), s = v(""), r = C([]), i = v(null), u = (l, h = 0) => {
|
|
795
|
+
var c, y;
|
|
796
|
+
t.value || h >= 4 || (t.value = (y = (c = l.value) == null ? void 0 : c.querySelector) == null ? void 0 : y.call(c, "[data-slot]"), t.value || r.push(setTimeout(() => u(l, h + 1), 50)));
|
|
797
797
|
};
|
|
798
|
-
return
|
|
799
|
-
!l || a.value || (
|
|
800
|
-
|
|
798
|
+
return S(() => u(i, 0)), I(t, (l) => {
|
|
799
|
+
!l || a.value || (D(t), r.push(setTimeout(() => {
|
|
800
|
+
O(t), A(() => {
|
|
801
801
|
s.value = customElements.get("bs-banner") ? "hydrated superhydrated" : "superhydrated";
|
|
802
802
|
});
|
|
803
803
|
}, 100)), a.value = !0);
|
|
804
|
-
}, { immediate: !0 }), q(() => r.forEach((l) => clearTimeout(l))), (l, h) => (
|
|
805
|
-
t.value ? (
|
|
806
|
-
default:
|
|
807
|
-
(
|
|
804
|
+
}, { immediate: !0 }), q(() => r.forEach((l) => clearTimeout(l))), (l, h) => (o(), f(L, null, [
|
|
805
|
+
t.value ? (o(), g(b(B), { key: 0 }, {
|
|
806
|
+
default: k(() => [
|
|
807
|
+
(o(), g(V, { to: t.value }, [
|
|
808
808
|
m(l.$slots, "default")
|
|
809
809
|
], 8, ["to"]))
|
|
810
810
|
]),
|
|
811
811
|
_: 3
|
|
812
812
|
})) : R("", !0),
|
|
813
|
-
|
|
813
|
+
x("bs-banner", d({
|
|
814
814
|
ref_key: "wcRef",
|
|
815
|
-
ref:
|
|
815
|
+
ref: i,
|
|
816
816
|
class: s.value,
|
|
817
817
|
"data-bsds-ssr": "",
|
|
818
|
-
onDismiss: h[0] || (h[0] = (
|
|
818
|
+
onDismiss: h[0] || (h[0] = (c) => n("dismiss", c.detail))
|
|
819
819
|
}, l.$attrs), [
|
|
820
|
-
|
|
821
|
-
fallback:
|
|
820
|
+
z(b(B), null, {
|
|
821
|
+
fallback: k(() => [
|
|
822
822
|
m(l.$slots, "default")
|
|
823
823
|
]),
|
|
824
824
|
_: 3
|
|
@@ -831,19 +831,19 @@ const xe = ["controlled", "icon", "header-text", "heading-level", "open-item", "
|
|
|
831
831
|
props: {},
|
|
832
832
|
emits: ["dismiss"],
|
|
833
833
|
setup(e, { emit: n }) {
|
|
834
|
-
const a = e, { data: t } =
|
|
834
|
+
const a = e, { data: t } = P(Oe, () => {
|
|
835
835
|
if (process.server)
|
|
836
836
|
return !0;
|
|
837
837
|
});
|
|
838
|
-
return (s, r) => b(t) ? (
|
|
839
|
-
onDismiss: r[0] || (r[0] = (
|
|
838
|
+
return (s, r) => b(t) ? (o(), g(De, d({ key: 0 }, { ...a, ...s.$attrs }, {
|
|
839
|
+
onDismiss: r[0] || (r[0] = (i) => n("dismiss", i.detail))
|
|
840
840
|
}), {
|
|
841
|
-
default:
|
|
841
|
+
default: k(() => [
|
|
842
842
|
m(s.$slots, "default")
|
|
843
843
|
]),
|
|
844
844
|
_: 3
|
|
845
|
-
}, 16)) : (
|
|
846
|
-
onDismiss: r[1] || (r[1] = (
|
|
845
|
+
}, 16)) : (o(), f("bs-banner", d({ key: 1 }, { ...a, ...s.$attrs }, {
|
|
846
|
+
onDismiss: r[1] || (r[1] = (i) => n("dismiss", i.detail))
|
|
847
847
|
}), [
|
|
848
848
|
m(s.$slots, "default")
|
|
849
849
|
], 16));
|
|
@@ -861,28 +861,37 @@ const xe = ["controlled", "icon", "header-text", "heading-level", "open-item", "
|
|
|
861
861
|
},
|
|
862
862
|
emits: [],
|
|
863
863
|
setup(e, { emit: n }) {
|
|
864
|
-
const a = v(!1), t = v(null), s = v(""), r =
|
|
865
|
-
var
|
|
866
|
-
t.value || h >= 4 || (t.value = (y = (
|
|
864
|
+
const a = v(!1), t = v(null), s = v(""), r = C([]), i = v(null), u = (l, h = 0) => {
|
|
865
|
+
var c, y;
|
|
866
|
+
t.value || h >= 4 || (t.value = (y = (c = l.value) == null ? void 0 : c.querySelector) == null ? void 0 : y.call(c, "[data-slot]"), t.value || r.push(setTimeout(() => u(l, h + 1), 50)));
|
|
867
867
|
};
|
|
868
|
-
return
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
868
|
+
return S(() => {
|
|
869
|
+
var l;
|
|
870
|
+
if ((l = i.value) != null && l.getBoundingClientRect) {
|
|
871
|
+
const { height: h, width: c } = i.value.getBoundingClientRect();
|
|
872
|
+
i.value.style.minHeight = h + "px", i.value.style.maxWidth = c + "px";
|
|
873
|
+
}
|
|
874
|
+
u(i, 0);
|
|
875
|
+
}), I(t, (l) => {
|
|
876
|
+
!l || a.value || (t.value.replaceChildren(), r.push(setTimeout(() => {
|
|
877
|
+
A(() => {
|
|
878
|
+
s.value = customElements.get("bs-button") ? "hydrated superhydrated" : "superhydrated", A(() => {
|
|
879
|
+
i.value.style.minHeight = null, i.value.style.maxWidth = null;
|
|
880
|
+
});
|
|
872
881
|
});
|
|
873
882
|
}, 100)), a.value = !0);
|
|
874
|
-
}, { immediate: !0 }), q(() => r.forEach((l) => clearTimeout(l))), (l, h) => (
|
|
875
|
-
t.value ? (
|
|
876
|
-
default:
|
|
877
|
-
(
|
|
883
|
+
}, { immediate: !0 }), q(() => r.forEach((l) => clearTimeout(l))), (l, h) => (o(), f(L, null, [
|
|
884
|
+
t.value ? (o(), g(b(B), { key: 0 }, {
|
|
885
|
+
default: k(() => [
|
|
886
|
+
(o(), g(V, { to: t.value }, [
|
|
878
887
|
m(l.$slots, "default")
|
|
879
888
|
], 8, ["to"]))
|
|
880
889
|
]),
|
|
881
890
|
_: 3
|
|
882
891
|
})) : R("", !0),
|
|
883
|
-
|
|
892
|
+
x("bs-button", d({
|
|
884
893
|
ref_key: "wcRef",
|
|
885
|
-
ref:
|
|
894
|
+
ref: i,
|
|
886
895
|
class: s.value,
|
|
887
896
|
"data-bsds-ssr": "",
|
|
888
897
|
variant: e.variant,
|
|
@@ -893,8 +902,8 @@ const xe = ["controlled", "icon", "header-text", "heading-level", "open-item", "
|
|
|
893
902
|
"text-btn": e.textBtn,
|
|
894
903
|
size: e.size
|
|
895
904
|
}, l.$attrs), [
|
|
896
|
-
|
|
897
|
-
fallback:
|
|
905
|
+
z(b(B), null, {
|
|
906
|
+
fallback: k(() => [
|
|
898
907
|
m(l.$slots, "default")
|
|
899
908
|
]),
|
|
900
909
|
_: 3
|
|
@@ -916,17 +925,17 @@ const xe = ["controlled", "icon", "header-text", "heading-level", "open-item", "
|
|
|
916
925
|
},
|
|
917
926
|
emits: [],
|
|
918
927
|
setup(e, { emit: n }) {
|
|
919
|
-
const a = e, { onLinkClick: t } =
|
|
928
|
+
const a = e, { onLinkClick: t } = W(a), { data: s } = P(Ne, () => {
|
|
920
929
|
if (process.server)
|
|
921
930
|
return !0;
|
|
922
931
|
});
|
|
923
|
-
return (r,
|
|
924
|
-
default:
|
|
932
|
+
return (r, i) => b(s) ? (o(), g(je, d({ key: 0 }, { ...a, ...r.$attrs, router: void 0 }, { onClick: b(t) }), {
|
|
933
|
+
default: k(() => [
|
|
925
934
|
m(r.$slots, "default")
|
|
926
935
|
]),
|
|
927
936
|
_: 3
|
|
928
|
-
}, 16, ["onClick"])) : (
|
|
929
|
-
onClick:
|
|
937
|
+
}, 16, ["onClick"])) : (o(), f("bs-button", d({ key: 1 }, { ...a, ...r.$attrs, router: void 0 }, {
|
|
938
|
+
onClick: i[0] || (i[0] = (...u) => b(t) && b(t)(...u))
|
|
930
939
|
}), [
|
|
931
940
|
m(r.$slots, "default")
|
|
932
941
|
], 16));
|
|
@@ -942,28 +951,28 @@ const xe = ["controlled", "icon", "header-text", "heading-level", "open-item", "
|
|
|
942
951
|
},
|
|
943
952
|
emits: [],
|
|
944
953
|
setup(e, { emit: n }) {
|
|
945
|
-
const a = v(!1), t = v(null), s = v(""), r =
|
|
946
|
-
var
|
|
947
|
-
t.value || h >= 4 || (t.value = (y = (
|
|
954
|
+
const a = v(!1), t = v(null), s = v(""), r = C([]), i = v(null), u = (l, h = 0) => {
|
|
955
|
+
var c, y;
|
|
956
|
+
t.value || h >= 4 || (t.value = (y = (c = l.value) == null ? void 0 : c.querySelector) == null ? void 0 : y.call(c, "[data-slot]"), t.value || r.push(setTimeout(() => u(l, h + 1), 50)));
|
|
948
957
|
};
|
|
949
|
-
return
|
|
950
|
-
!l || a.value || (
|
|
951
|
-
|
|
958
|
+
return S(() => u(i, 0)), I(t, (l) => {
|
|
959
|
+
!l || a.value || (D(t), r.push(setTimeout(() => {
|
|
960
|
+
O(t), A(() => {
|
|
952
961
|
s.value = customElements.get("bs-label") ? "hydrated superhydrated" : "superhydrated";
|
|
953
962
|
});
|
|
954
963
|
}, 100)), a.value = !0);
|
|
955
|
-
}, { immediate: !0 }), q(() => r.forEach((l) => clearTimeout(l))), (l, h) => (
|
|
956
|
-
t.value ? (
|
|
957
|
-
default:
|
|
958
|
-
(
|
|
964
|
+
}, { immediate: !0 }), q(() => r.forEach((l) => clearTimeout(l))), (l, h) => (o(), f(L, null, [
|
|
965
|
+
t.value ? (o(), g(b(B), { key: 0 }, {
|
|
966
|
+
default: k(() => [
|
|
967
|
+
(o(), g(V, { to: t.value }, [
|
|
959
968
|
m(l.$slots, "default")
|
|
960
969
|
], 8, ["to"]))
|
|
961
970
|
]),
|
|
962
971
|
_: 3
|
|
963
972
|
})) : R("", !0),
|
|
964
|
-
|
|
973
|
+
x("bs-label", d({
|
|
965
974
|
ref_key: "wcRef",
|
|
966
|
-
ref:
|
|
975
|
+
ref: i,
|
|
967
976
|
class: s.value,
|
|
968
977
|
"data-bsds-ssr": "",
|
|
969
978
|
disabled: e.disabled,
|
|
@@ -972,8 +981,8 @@ const xe = ["controlled", "icon", "header-text", "heading-level", "open-item", "
|
|
|
972
981
|
"pass-attrs": e.passAttrs,
|
|
973
982
|
required: e.required
|
|
974
983
|
}, l.$attrs), [
|
|
975
|
-
|
|
976
|
-
fallback:
|
|
984
|
+
z(b(B), null, {
|
|
985
|
+
fallback: k(() => [
|
|
977
986
|
m(l.$slots, "default")
|
|
978
987
|
]),
|
|
979
988
|
_: 3
|
|
@@ -992,16 +1001,16 @@ const xe = ["controlled", "icon", "header-text", "heading-level", "open-item", "
|
|
|
992
1001
|
},
|
|
993
1002
|
emits: [],
|
|
994
1003
|
setup(e, { emit: n }) {
|
|
995
|
-
const a = e, { data: t } =
|
|
1004
|
+
const a = e, { data: t } = P(Ge, () => {
|
|
996
1005
|
if (process.server)
|
|
997
1006
|
return !0;
|
|
998
1007
|
});
|
|
999
|
-
return (s, r) => b(t) ? (
|
|
1000
|
-
default:
|
|
1008
|
+
return (s, r) => b(t) ? (o(), g(He, j(d({ key: 0 }, { ...a, ...s.$attrs })), {
|
|
1009
|
+
default: k(() => [
|
|
1001
1010
|
m(s.$slots, "default")
|
|
1002
1011
|
]),
|
|
1003
1012
|
_: 3
|
|
1004
|
-
}, 16)) : (
|
|
1013
|
+
}, 16)) : (o(), f("bs-label", j(d({ key: 1 }, { ...a, ...s.$attrs })), [
|
|
1005
1014
|
m(s.$slots, "default")
|
|
1006
1015
|
], 16));
|
|
1007
1016
|
}
|
|
@@ -1017,28 +1026,28 @@ const xe = ["controlled", "icon", "header-text", "heading-level", "open-item", "
|
|
|
1017
1026
|
},
|
|
1018
1027
|
emits: [],
|
|
1019
1028
|
setup(e, { emit: n }) {
|
|
1020
|
-
const a = v(!1), t = v(null), s = v(""), r =
|
|
1021
|
-
var
|
|
1022
|
-
t.value || h >= 4 || (t.value = (y = (
|
|
1029
|
+
const a = v(!1), t = v(null), s = v(""), r = C([]), i = v(null), u = (l, h = 0) => {
|
|
1030
|
+
var c, y;
|
|
1031
|
+
t.value || h >= 4 || (t.value = (y = (c = l.value) == null ? void 0 : c.querySelector) == null ? void 0 : y.call(c, "[data-slot]"), t.value || r.push(setTimeout(() => u(l, h + 1), 50)));
|
|
1023
1032
|
};
|
|
1024
|
-
return
|
|
1025
|
-
!l || a.value || (
|
|
1026
|
-
|
|
1033
|
+
return S(() => u(i, 0)), I(t, (l) => {
|
|
1034
|
+
!l || a.value || (D(t), r.push(setTimeout(() => {
|
|
1035
|
+
O(t), A(() => {
|
|
1027
1036
|
s.value = customElements.get("bs-pill") ? "hydrated superhydrated" : "superhydrated";
|
|
1028
1037
|
});
|
|
1029
1038
|
}, 100)), a.value = !0);
|
|
1030
|
-
}, { immediate: !0 }), q(() => r.forEach((l) => clearTimeout(l))), (l, h) => (
|
|
1031
|
-
t.value ? (
|
|
1032
|
-
default:
|
|
1033
|
-
(
|
|
1039
|
+
}, { immediate: !0 }), q(() => r.forEach((l) => clearTimeout(l))), (l, h) => (o(), f(L, null, [
|
|
1040
|
+
t.value ? (o(), g(b(B), { key: 0 }, {
|
|
1041
|
+
default: k(() => [
|
|
1042
|
+
(o(), g(V, { to: t.value }, [
|
|
1034
1043
|
m(l.$slots, "default")
|
|
1035
1044
|
], 8, ["to"]))
|
|
1036
1045
|
]),
|
|
1037
1046
|
_: 3
|
|
1038
1047
|
})) : R("", !0),
|
|
1039
|
-
|
|
1048
|
+
x("bs-pill", d({
|
|
1040
1049
|
ref_key: "wcRef",
|
|
1041
|
-
ref:
|
|
1050
|
+
ref: i,
|
|
1042
1051
|
class: s.value,
|
|
1043
1052
|
"data-bsds-ssr": "",
|
|
1044
1053
|
variant: e.variant,
|
|
@@ -1048,8 +1057,8 @@ const xe = ["controlled", "icon", "header-text", "heading-level", "open-item", "
|
|
|
1048
1057
|
disabled: e.disabled,
|
|
1049
1058
|
"pass-attrs": e.passAttrs
|
|
1050
1059
|
}, l.$attrs), [
|
|
1051
|
-
|
|
1052
|
-
fallback:
|
|
1060
|
+
z(b(B), null, {
|
|
1061
|
+
fallback: k(() => [
|
|
1053
1062
|
m(l.$slots, "default")
|
|
1054
1063
|
]),
|
|
1055
1064
|
_: 3
|
|
@@ -1057,7 +1066,7 @@ const xe = ["controlled", "icon", "header-text", "heading-level", "open-item", "
|
|
|
1057
1066
|
], 16, Xe)
|
|
1058
1067
|
], 64));
|
|
1059
1068
|
}
|
|
1060
|
-
}, Ue = "bs-pill",
|
|
1069
|
+
}, Ue = "bs-pill", xt = {
|
|
1061
1070
|
__name: "BsPill",
|
|
1062
1071
|
props: {
|
|
1063
1072
|
variant: {},
|
|
@@ -1070,17 +1079,17 @@ const xe = ["controlled", "icon", "header-text", "heading-level", "open-item", "
|
|
|
1070
1079
|
},
|
|
1071
1080
|
emits: [],
|
|
1072
1081
|
setup(e, { emit: n }) {
|
|
1073
|
-
const a = e, { onLinkClick: t } =
|
|
1082
|
+
const a = e, { onLinkClick: t } = W(a), { data: s } = P(Ue, () => {
|
|
1074
1083
|
if (process.server)
|
|
1075
1084
|
return !0;
|
|
1076
1085
|
});
|
|
1077
|
-
return (r,
|
|
1078
|
-
default:
|
|
1086
|
+
return (r, i) => b(s) ? (o(), g(Ye, d({ key: 0 }, { ...a, ...r.$attrs, router: void 0 }, { onClick: b(t) }), {
|
|
1087
|
+
default: k(() => [
|
|
1079
1088
|
m(r.$slots, "default")
|
|
1080
1089
|
]),
|
|
1081
1090
|
_: 3
|
|
1082
|
-
}, 16, ["onClick"])) : (
|
|
1083
|
-
onClick:
|
|
1091
|
+
}, 16, ["onClick"])) : (o(), f("bs-pill", d({ key: 1 }, { ...a, ...r.$attrs, router: void 0 }, {
|
|
1092
|
+
onClick: i[0] || (i[0] = (...u) => b(t) && b(t)(...u))
|
|
1084
1093
|
}), [
|
|
1085
1094
|
m(r.$slots, "default")
|
|
1086
1095
|
], 16));
|
|
@@ -1097,28 +1106,28 @@ const xe = ["controlled", "icon", "header-text", "heading-level", "open-item", "
|
|
|
1097
1106
|
},
|
|
1098
1107
|
emits: [],
|
|
1099
1108
|
setup(e, { emit: n }) {
|
|
1100
|
-
const a = v(!1), t = v(null), s = v(""), r =
|
|
1101
|
-
var
|
|
1102
|
-
t.value || h >= 4 || (t.value = (y = (
|
|
1109
|
+
const a = v(!1), t = v(null), s = v(""), r = C([]), i = v(null), u = (l, h = 0) => {
|
|
1110
|
+
var c, y;
|
|
1111
|
+
t.value || h >= 4 || (t.value = (y = (c = l.value) == null ? void 0 : c.querySelector) == null ? void 0 : y.call(c, "[data-slot]"), t.value || r.push(setTimeout(() => u(l, h + 1), 50)));
|
|
1103
1112
|
};
|
|
1104
|
-
return
|
|
1105
|
-
!l || a.value || (
|
|
1106
|
-
|
|
1113
|
+
return S(() => u(i, 0)), I(t, (l) => {
|
|
1114
|
+
!l || a.value || (D(t), r.push(setTimeout(() => {
|
|
1115
|
+
O(t), A(() => {
|
|
1107
1116
|
s.value = customElements.get("bs-select") ? "hydrated superhydrated" : "superhydrated";
|
|
1108
1117
|
});
|
|
1109
1118
|
}, 100)), a.value = !0);
|
|
1110
|
-
}, { immediate: !0 }), q(() => r.forEach((l) => clearTimeout(l))), (l, h) => (
|
|
1111
|
-
t.value ? (
|
|
1112
|
-
default:
|
|
1113
|
-
(
|
|
1119
|
+
}, { immediate: !0 }), q(() => r.forEach((l) => clearTimeout(l))), (l, h) => (o(), f(L, null, [
|
|
1120
|
+
t.value ? (o(), g(b(B), { key: 0 }, {
|
|
1121
|
+
default: k(() => [
|
|
1122
|
+
(o(), g(V, { to: t.value }, [
|
|
1114
1123
|
m(l.$slots, "default")
|
|
1115
1124
|
], 8, ["to"]))
|
|
1116
1125
|
]),
|
|
1117
1126
|
_: 3
|
|
1118
1127
|
})) : R("", !0),
|
|
1119
|
-
|
|
1128
|
+
x("bs-select", d({
|
|
1120
1129
|
ref_key: "wcRef",
|
|
1121
|
-
ref:
|
|
1130
|
+
ref: i,
|
|
1122
1131
|
class: s.value,
|
|
1123
1132
|
"data-bsds-ssr": "",
|
|
1124
1133
|
disabled: e.disabled,
|
|
@@ -1128,8 +1137,8 @@ const xe = ["controlled", "icon", "header-text", "heading-level", "open-item", "
|
|
|
1128
1137
|
value: e.value,
|
|
1129
1138
|
"pass-attrs": e.passAttrs
|
|
1130
1139
|
}, l.$attrs), [
|
|
1131
|
-
|
|
1132
|
-
fallback:
|
|
1140
|
+
z(b(B), null, {
|
|
1141
|
+
fallback: k(() => [
|
|
1133
1142
|
m(l.$slots, "default")
|
|
1134
1143
|
]),
|
|
1135
1144
|
_: 3
|
|
@@ -1137,7 +1146,7 @@ const xe = ["controlled", "icon", "header-text", "heading-level", "open-item", "
|
|
|
1137
1146
|
], 16, Ze)
|
|
1138
1147
|
], 64));
|
|
1139
1148
|
}
|
|
1140
|
-
}, Je = "bs-select",
|
|
1149
|
+
}, Je = "bs-select", zt = {
|
|
1141
1150
|
__name: "BsSelect",
|
|
1142
1151
|
props: {
|
|
1143
1152
|
disabled: { default: !1 },
|
|
@@ -1149,16 +1158,16 @@ const xe = ["controlled", "icon", "header-text", "heading-level", "open-item", "
|
|
|
1149
1158
|
},
|
|
1150
1159
|
emits: [],
|
|
1151
1160
|
setup(e, { emit: n }) {
|
|
1152
|
-
const a = e, { data: t } =
|
|
1161
|
+
const a = e, { data: t } = P(Je, () => {
|
|
1153
1162
|
if (process.server)
|
|
1154
1163
|
return !0;
|
|
1155
1164
|
});
|
|
1156
|
-
return (s, r) => b(t) ? (
|
|
1157
|
-
default:
|
|
1165
|
+
return (s, r) => b(t) ? (o(), g(Ke, j(d({ key: 0 }, { ...a, ...s.$attrs })), {
|
|
1166
|
+
default: k(() => [
|
|
1158
1167
|
m(s.$slots, "default")
|
|
1159
1168
|
]),
|
|
1160
1169
|
_: 3
|
|
1161
|
-
}, 16)) : (
|
|
1170
|
+
}, 16)) : (o(), f("bs-select", j(d({ key: 1 }, { ...a, ...s.$attrs })), [
|
|
1162
1171
|
m(s.$slots, "default")
|
|
1163
1172
|
], 16));
|
|
1164
1173
|
}
|
|
@@ -1187,14 +1196,14 @@ export {
|
|
|
1187
1196
|
yt as BsInputSearch,
|
|
1188
1197
|
Rt as BsLabel,
|
|
1189
1198
|
He as BsLabelServer,
|
|
1190
|
-
|
|
1199
|
+
xt as BsPill,
|
|
1191
1200
|
Ye as BsPillServer,
|
|
1192
1201
|
$t as BsProfile,
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1202
|
+
gt as BsProfileDetails,
|
|
1203
|
+
kt as BsProfileImg,
|
|
1204
|
+
Bt as BsProfileLayout,
|
|
1196
1205
|
wt as BsRadio,
|
|
1197
|
-
|
|
1206
|
+
zt as BsSelect,
|
|
1198
1207
|
pt as BsSelectField,
|
|
1199
1208
|
Ke as BsSelectServer,
|
|
1200
1209
|
At as BsSwitch,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(d,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("#imports"),require("#components")):typeof define=="function"&&define.amd?define(["exports","vue","#imports","#components"],e):(d=typeof globalThis<"u"?globalThis:d||self,e(d.BsdsComponents={},d.Vue,d._imports,d._components))})(this,function(d,e,y,b){"use strict";const E="update:modelValue",T="modelValue",x="routerLink",V="navManager",U="router",H="aria",g=Symbol(),P={default:g},I=t=>(t==null?void 0:t.split(" "))||[],G=(t,o,l=[])=>{var a;return[...Array.from(((a=t.value)==null?void 0:a.classList)||[]),...l].filter((r,n,i)=>!o.has(r)&&i.indexOf(r)===n)},q=(t,o,l=[],a,r,n)=>{o!==void 0&&o();const i=e.defineComponent((c,{attrs:s,slots:f,emit:u})=>{var j;let m=c[a];const W=e.ref(),M=new Set(I(s.class)),ot=B=>{B.el&&(Array.isArray(r)?r:[r]).forEach(k=>{B.el.addEventListener(k.toLowerCase(),h=>{m=(h==null?void 0:h.target)[a],u(E,m),n&&u(n,h)})})},A=e.getCurrentInstance(),F=((j=A==null?void 0:A.appContext)==null?void 0:j.provides[V])?e.inject(V):void 0,it=B=>{const{routerLink:S}=c;if(S!==g)if(F!==void 0){let k={event:B};for(const h in c){const C=c[h];c.hasOwnProperty(h)&&h.startsWith(U)&&C!==g&&(k[h]=C)}F.navigate(k)}else console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.")};return()=>{m=c[a],I(s.class).forEach(h=>{M.add(h)});const B=c.onClick,S=h=>{B!==void 0&&B(h),h.defaultPrevented||it(h)};let k={ref:W,class:G(W,M),onClick:S,onVnodeBeforeMount:r?ot:void 0};for(const h in c){const C=c[h];(c.hasOwnProperty(h)&&C!==g||h.startsWith(H))&&(k[h]=C)}return a&&(c[T]!==g?k={...k,[a]:c[T]}:m!==g&&(k={...k,[a]:m})),e.h(t,k,f.default&&f.default())}});return typeof i!="function"&&(i.name=t,i.props={[x]:P},l.forEach(c=>{i.props[c]=P}),a&&(i.props[T]=P,i.emits=[E,n])),i},X=q("bs-input-addon",void 0,["disabled","error","multifocus","variant"]),Y=q("bs-toaster",void 0),Z=["color","count","count-max","dot","label","position","show-zero"],K={__name:"BsBadge",props:{color:{},count:{},countMax:{default:99},dot:{},label:{default:"item"},position:{},showZero:{}},emits:[],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-badge",e.mergeProps(l.$attrs,{color:t.color,count:t.count,"count-max":t.countMax,dot:t.dot,label:t.label,position:t.position,"show-zero":t.showZero}),[e.renderSlot(l.$slots,"default")],16,Z))}},J=["char-count","char-max"],Q={__name:"BsCharacterCount",props:{charCount:{},charMax:{}},emits:[],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-character-count",e.mergeProps(l.$attrs,{"char-count":t.charCount,"char-max":t.charMax}),null,16,J))}},v=["chart-title","data","dataIdxLabels","show-legend","show-tooltips","show-x-grid","show-y-grid","stacked","x-label","y-label"],_={__name:"BsChartBar",props:{chartTitle:{},data:{},dataIdxLabels:{},showLegend:{default:!0},showTooltips:{default:!0},showXGrid:{default:!1},showYGrid:{default:!1},stacked:{default:!1},xLabel:{default:""},yLabel:{default:""}},emits:[],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-chart-bar",e.mergeProps(l.$attrs,{"chart-title":t.chartTitle,data:t.data,dataIdxLabels:t.dataIdxLabels,"show-legend":t.showLegend,"show-tooltips":t.showTooltips,"show-x-grid":t.showXGrid,"show-y-grid":t.showYGrid,stacked:t.stacked,"x-label":t.xLabel,"y-label":t.yLabel}),null,16,v))}},ee=["data","dataIdxLabels","table-title"],te={__name:"BsChartTable",props:{data:{},dataIdxLabels:{},tableTitle:{default:""}},emits:[],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-chart-table",e.mergeProps(l.$attrs,{data:t.data,dataIdxLabels:t.dataIdxLabels,"table-title":t.tableTitle}),null,16,ee))}},ae=["label","checked","checked-partially","disabled","error","pass-attrs","required","size"],le={__name:"BsCheckbox",props:{label:{},checked:{default:!1},checkedPartially:{default:!1},disabled:{default:!1},error:{},passAttrs:{default:""},required:{},size:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-checkbox",e.mergeProps(l.$attrs,{label:t.label,checked:t.checked||t.modelValue,"checked-partially":t.checkedPartially,disabled:t.disabled,error:t.error,"pass-attrs":t.passAttrs,required:t.required,size:t.size,onChange:a[0]||(a[0]=r=>o("update:modelValue",r.target.checked))}),null,16,ae))}};function w(t){const o=e.computed(()=>{var r,n;return((n=(r=t.href)==null?void 0:r.startsWith)==null?void 0:n.call(r,"/"))||!1}),l=e.computed(()=>{var r,n;return o.value&&((r=t.router)==null?void 0:r.navigateTo)||((n=t.router)==null?void 0:n.push)||null});function a(r){var n,i,c,s,f;l.value&&((i=(n=r.target.href)==null?void 0:n.endsWith)!=null&&i.call(n,t.href)||(f=(s=(c=r.target.closest("a"))==null?void 0:c.href)==null?void 0:s.endsWith)!=null&&f.call(s,t.href))&&(r.preventDefault(),l.value(t.href))}return{onLinkClick:a}}const re=["disabled","ghost-btn","hover-effect","href","icon","icon-position","label","pass-attrs","text-btn","size"],se={__name:"BsCircleButton",props:{disabled:{},ghostBtn:{},hoverEffect:{default:!1},href:{},icon:{},iconPosition:{},label:{},passAttrs:{default:""},textBtn:{},size:{},router:{}},emits:[],setup(t,{emit:o}){const l=t,{onLinkClick:a}=w(l);return(r,n)=>(e.openBlock(),e.createElementBlock("bs-circle-button",e.mergeProps(r.$attrs,{disabled:t.disabled,"ghost-btn":t.ghostBtn,"hover-effect":t.hoverEffect,href:t.href,icon:t.icon,"icon-position":t.iconPosition,label:t.label,"pass-attrs":t.passAttrs,"text-btn":t.textBtn,size:t.size,onClick:n[0]||(n[0]=(...i)=>e.unref(a)&&e.unref(a)(...i))}),null,16,re))}},ne=["dropdown-id","shown","label","position","justify","variant"],oe={__name:"BsDropdown",props:{dropdownId:{},shown:{},label:{},position:{},justify:{},variant:{}},emits:["dropdownchange","close"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-dropdown",e.mergeProps(l.$attrs,{"dropdown-id":t.dropdownId,shown:t.shown,label:t.label,position:t.position,justify:t.justify,variant:t.variant,onDropdownchange:a[0]||(a[0]=r=>o("dropdownchange",r.detail)),onClose:a[1]||(a[1]=r=>o("close",r.detail))}),[e.renderSlot(l.$slots,"default")],16,ne))}},ie=["value","variant","selected","shown","focused","index","dropdown-id"],de={__name:"BsDropdownOption",props:{value:{},variant:{},selected:{default:!1},shown:{},focused:{},index:{},dropdownId:{}},emits:["mousefocus","optionselect"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-dropdown-option",e.mergeProps(l.$attrs,{value:t.value,variant:t.variant,selected:t.selected,shown:t.shown,focused:t.focused,index:t.index,"dropdown-id":t.dropdownId,onMousefocus:a[0]||(a[0]=r=>o("mousefocus",r.detail)),onOptionselect:a[1]||(a[1]=r=>o("optionselect",r.detail))}),[e.renderSlot(l.$slots,"default")],16,ie))}},ce=["dropdown-id","shown","label","position","variant"],ue={__name:"BsDropdownOptions",props:{dropdownId:{},shown:{},label:{},position:{},variant:{}},emits:["dropdownchange","close"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-dropdown-options",e.mergeProps(l.$attrs,{"dropdown-id":t.dropdownId,shown:t.shown,label:t.label,position:t.position,variant:t.variant,onDropdownchange:a[0]||(a[0]=r=>o("dropdownchange",r.detail)),onClose:a[1]||(a[1]=r=>o("close",r.detail))}),[e.renderSlot(l.$slots,"default")],16,ce))}},fe=["char-count","char-max","disabled","error","hints","label","label-for","required","hint-id"],me={__name:"BsFieldLayout",props:{charCount:{},charMax:{},disabled:{default:!1},error:{},hints:{},label:{},labelFor:{},required:{},hintId:{}},emits:[],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-field-layout",e.mergeProps(l.$attrs,{"char-count":t.charCount,"char-max":t.charMax,disabled:t.disabled,error:t.error,hints:t.hints,label:t.label,"label-for":t.labelFor,required:t.required,"hint-id":t.hintId}),[e.renderSlot(l.$slots,"default")],16,fe))}},he=["error","hint-id","hints"],be={__name:"BsHint",props:{error:{},hintId:{},hints:{}},emits:[],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-hint",e.mergeProps(l.$attrs,{error:t.error,"hint-id":t.hintId,hints:t.hints}),null,16,he))}},ke=["disabled","error","pass-attrs","placeholder","required","type","value","hint-id"],Be={__name:"BsInput",props:{disabled:{default:!1},error:{},passAttrs:{default:""},placeholder:{},required:{},type:{default:"text"},value:{},hintId:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-input",e.mergeProps(l.$attrs,{disabled:t.disabled,error:t.error,"pass-attrs":t.passAttrs,placeholder:t.placeholder,required:t.required,type:t.type,value:t.value||t.modelValue,"hint-id":t.hintId,onInput:a[0]||(a[0]=r=>o("update:modelValue",r.target.value))}),null,16,ke))}},ye=["disabled","error","hints","label","pass-attrs","placeholder","required","type","value"],ge={__name:"BsInputField",props:{disabled:{default:!1},error:{},hints:{},label:{},passAttrs:{default:""},placeholder:{},required:{},type:{default:"text"},value:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-input-field",e.mergeProps(l.$attrs,{disabled:t.disabled,error:t.error,hints:t.hints,label:t.label,"pass-attrs":t.passAttrs,placeholder:t.placeholder,required:t.required,type:t.type,value:t.value||t.modelValue,onInput:a[0]||(a[0]=r=>o("update:modelValue",r.target.value))}),null,16,ye))}},$e=["disabled","pass-attrs","placeholder","aria-label","hint-id","value"],pe={__name:"BsInputSearch",props:{disabled:{default:!1},passAttrs:{default:""},placeholder:{default:"Search Items"},ariaLabel:{default:"Search Items"},hintId:{},value:{default:""}},emits:["onclear"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-input-search",e.mergeProps(l.$attrs,{disabled:t.disabled,"pass-attrs":t.passAttrs,placeholder:t.placeholder,"aria-label":t.ariaLabel,"hint-id":t.hintId,value:t.value,onOnclear:a[0]||(a[0]=r=>o("onclear",r.detail))}),null,16,$e))}},we=["layout","href","image-src","image-size","initials","profile-name","company","job-title","email"],Ce={__name:"BsProfile",props:{layout:{},href:{},imageSrc:{},imageSize:{default:"lg"},initials:{},profileName:{},company:{},jobTitle:{},email:{},router:{}},emits:[],setup(t,{emit:o}){const l=t,{onLinkClick:a}=w(l);return(r,n)=>(e.openBlock(),e.createElementBlock("bs-profile",e.mergeProps(r.$attrs,{layout:t.layout,href:t.href,"image-src":t.imageSrc,"image-size":t.imageSize,initials:t.initials,"profile-name":t.profileName,company:t.company,"job-title":t.jobTitle,email:t.email,onClick:n[0]||(n[0]=(...i)=>e.unref(a)&&e.unref(a)(...i))}),null,16,we))}},Se=["profile-name","company","job-title","email"],Te={__name:"BsProfileDetails",props:{profileName:{},company:{},jobTitle:{},email:{}},emits:[],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-profile-details",e.mergeProps(l.$attrs,{"profile-name":t.profileName,company:t.company,"job-title":t.jobTitle,email:t.email}),null,16,Se))}},Pe=["src","size","initials","profile-name"],Ae={__name:"BsProfileImg",props:{src:{},size:{},initials:{},profileName:{}},emits:[],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-profile-img",e.mergeProps(l.$attrs,{src:t.src,size:t.size,initials:t.initials,"profile-name":t.profileName}),null,16,Pe))}},Ee=["layout","href","pass-attrs"],Ve={__name:"BsProfileLayout",props:{layout:{default:"vertical"},href:{},passAttrs:{default:""},router:{}},emits:[],setup(t,{emit:o}){const l=t,{onLinkClick:a}=w(l);return(r,n)=>(e.openBlock(),e.createElementBlock("bs-profile-layout",e.mergeProps(r.$attrs,{layout:t.layout,href:t.href,"pass-attrs":t.passAttrs,onClick:n[0]||(n[0]=(...i)=>e.unref(a)&&e.unref(a)(...i))}),[e.renderSlot(r.$slots,"default")],16,Ee))}},Ie=["label","checked","disabled","error","pass-attrs","required","size","value"],qe={__name:"BsRadio",props:{label:{},checked:{default:!1},disabled:{default:!1},error:{},passAttrs:{default:""},required:{},size:{},value:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-radio",e.mergeProps(l.$attrs,{label:t.label,checked:t.checked||t.modelValue===t.value,disabled:t.disabled,error:t.error,"pass-attrs":t.passAttrs,required:t.required,size:t.size,value:t.value,onChange:a[0]||(a[0]=r=>o("update:modelValue",r.target.value))}),null,16,Ie))}},Le=["disabled","error","required","label","hints","placeholder","value","pass-attrs","data"],ze={__name:"BsSelectField",props:{disabled:{default:!1},error:{},required:{},label:{},hints:{},placeholder:{default:""},value:{},passAttrs:{default:""},data:{default:[]},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-select-field",e.mergeProps(l.$attrs,{disabled:t.disabled,error:t.error,required:t.required,label:t.label,hints:t.hints,placeholder:t.placeholder,value:t.value||t.modelValue,"pass-attrs":t.passAttrs,data:t.data,onChange:a[0]||(a[0]=r=>o("update:modelValue",r.target.value))}),null,16,Le))}},Re=["checked","disabled","inner-on-label","inner-off-label","label","pass-attrs","size"],Oe={__name:"BsSwitch",props:{checked:{default:!1},disabled:{default:!1},innerOnLabel:{},innerOffLabel:{},label:{},passAttrs:{default:""},size:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-switch",e.mergeProps(l.$attrs,{checked:t.checked||t.modelValue,disabled:t.disabled,"inner-on-label":t.innerOnLabel,"inner-off-label":t.innerOffLabel,label:t.label,"pass-attrs":t.passAttrs,size:t.size,onChange:a[0]||(a[0]=r=>o("update:modelValue",r.target.checked))}),null,16,Re))}},Ne=["disabled","error","pass-attrs","placeholder","required","value","hint-id"],De={__name:"BsTextarea",props:{disabled:{default:!1},error:{},passAttrs:{default:""},placeholder:{},required:{},value:{},hintId:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-textarea",e.mergeProps(l.$attrs,{disabled:t.disabled,error:t.error,"pass-attrs":t.passAttrs,placeholder:t.placeholder,required:t.required,value:t.value||t.modelValue,"hint-id":t.hintId,onInput:a[0]||(a[0]=r=>o("update:modelValue",r.target.value))}),null,16,Ne))}},We=["char-max","disabled","error","hints","label","placeholder","required","value","pass-attrs"],Me={__name:"BsTextareaField",props:{charMax:{},disabled:{default:!1},error:{},hints:{},label:{},placeholder:{},required:{},value:{default:""},passAttrs:{default:""},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-textarea-field",e.mergeProps(l.$attrs,{"char-max":t.charMax,disabled:t.disabled,error:t.error,hints:t.hints,label:t.label,placeholder:t.placeholder,required:t.required,value:t.value||t.modelValue,"pass-attrs":t.passAttrs,onInput:a[0]||(a[0]=r=>o("update:modelValue",r.target.value))}),null,16,We))}},Fe=["toast-id","shown","variant","toast-title","content","stacked","duration","primary-action","primary-action-type","secondary-action","secondary-action-type","tertiary-action","tertiary-action-type","dismiss-action"],je={__name:"BsToast",props:{toastId:{},shown:{},variant:{},toastTitle:{},content:{},stacked:{default:!1},duration:{default:1e4},primaryAction:{default:"Dismiss"},primaryActionType:{default:"text"},secondaryAction:{},secondaryActionType:{default:"text"},tertiaryAction:{},tertiaryActionType:{default:"text"},dismissAction:{default:"Dismiss"}},emits:["dismiss","actionclick"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-toast",e.mergeProps(l.$attrs,{"toast-id":t.toastId,shown:t.shown,variant:t.variant,"toast-title":t.toastTitle,content:t.content,stacked:t.stacked,duration:t.duration,"primary-action":t.primaryAction,"primary-action-type":t.primaryActionType,"secondary-action":t.secondaryAction,"secondary-action-type":t.secondaryActionType,"tertiary-action":t.tertiaryAction,"tertiary-action-type":t.tertiaryActionType,"dismiss-action":t.dismissAction,onDismiss:a[0]||(a[0]=r=>o("dismiss",r.detail)),onActionclick:a[1]||(a[1]=r=>o("actionclick",r.detail))}),[e.renderSlot(l.$slots,"default")],16,Fe))}},xe=["tooltip-id","content","position"],Ue={__name:"BsTooltip",props:{tooltipId:{},content:{},position:{}},emits:[],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-tooltip",e.mergeProps(l.$attrs,{"tooltip-id":t.tooltipId,content:t.content,position:t.position}),[e.renderSlot(l.$slots,"default")],16,xe))}};function $(t){const{height:o,width:l}=t.value.getBoundingClientRect();t.value.style.minHeight=o+"px",t.value.style.minWidth=l+"px",t.value.replaceChildren()}function p(t){t.value.style.minHeight=null,t.value.style.minWidth=null}const He=["controlled","icon","header-text","heading-level","open-item","stacked"],L={__name:"BsAccordionServer",props:{controlled:{default:!1},icon:{},headerText:{},headingLevel:{},openItem:{default:!1},stacked:{default:!1}},emits:["toggled"],setup(t,{emit:o}){const l=e.ref(!1),a=e.ref(null),r=e.ref(""),n=e.reactive([]),i=e.ref(null),c=(s,f=0)=>{var u,m;a.value||f>=4||(a.value=(m=(u=s.value)==null?void 0:u.querySelector)==null?void 0:m.call(u,"[data-slot]"),a.value||n.push(setTimeout(()=>c(s,f+1),50)))};return e.onMounted(()=>c(i,0)),e.watch(a,s=>{!s||l.value||($(a),n.push(setTimeout(()=>{p(a),e.nextTick(()=>{r.value=customElements.get("bs-accordion")?"hydrated superhydrated":"superhydrated"})},100)),l.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>n.forEach(s=>clearTimeout(s))),(s,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.value?(e.openBlock(),e.createBlock(e.unref(b.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:a.value},[e.renderSlot(s.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-accordion",e.mergeProps({ref_key:"wcRef",ref:i,class:r.value,"data-bsds-ssr":"",controlled:t.controlled,icon:t.icon,"header-text":t.headerText,"heading-level":t.headingLevel,"open-item":t.openItem,stacked:t.stacked,onToggled:f[0]||(f[0]=u=>o("toggled",u.detail))},s.$attrs),[e.createVNode(e.unref(b.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3})],16,He)],64))}},Ge="bs-accordion",Xe={__name:"BsAccordion",props:{controlled:{default:!1},icon:{},headerText:{},headingLevel:{},openItem:{default:!1},stacked:{default:!1}},emits:["toggled"],setup(t,{emit:o}){const l=t,{data:a}=y.useAsyncData(Ge,()=>{if(process.server)return!0});return(r,n)=>e.unref(a)?(e.openBlock(),e.createBlock(L,e.mergeProps({key:0},{...l,...r.$attrs},{onToggled:n[0]||(n[0]=i=>o("toggled",i.detail))}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16)):(e.openBlock(),e.createElementBlock("bs-accordion",e.mergeProps({key:1},{...l,...r.$attrs},{onToggled:n[1]||(n[1]=i=>o("toggled",i.detail))}),[e.renderSlot(r.$slots,"default")],16))}},z={__name:"BsBannerServer",props:{},emits:["dismiss"],setup(t,{emit:o}){const l=e.ref(!1),a=e.ref(null),r=e.ref(""),n=e.reactive([]),i=e.ref(null),c=(s,f=0)=>{var u,m;a.value||f>=4||(a.value=(m=(u=s.value)==null?void 0:u.querySelector)==null?void 0:m.call(u,"[data-slot]"),a.value||n.push(setTimeout(()=>c(s,f+1),50)))};return e.onMounted(()=>c(i,0)),e.watch(a,s=>{!s||l.value||($(a),n.push(setTimeout(()=>{p(a),e.nextTick(()=>{r.value=customElements.get("bs-banner")?"hydrated superhydrated":"superhydrated"})},100)),l.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>n.forEach(s=>clearTimeout(s))),(s,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.value?(e.openBlock(),e.createBlock(e.unref(b.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:a.value},[e.renderSlot(s.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-banner",e.mergeProps({ref_key:"wcRef",ref:i,class:r.value,"data-bsds-ssr":"",onDismiss:f[0]||(f[0]=u=>o("dismiss",u.detail))},s.$attrs),[e.createVNode(e.unref(b.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3})],16)],64))}},Ye="bs-banner",Ze={__name:"BsBanner",props:{},emits:["dismiss"],setup(t,{emit:o}){const l=t,{data:a}=y.useAsyncData(Ye,()=>{if(process.server)return!0});return(r,n)=>e.unref(a)?(e.openBlock(),e.createBlock(z,e.mergeProps({key:0},{...l,...r.$attrs},{onDismiss:n[0]||(n[0]=i=>o("dismiss",i.detail))}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16)):(e.openBlock(),e.createElementBlock("bs-banner",e.mergeProps({key:1},{...l,...r.$attrs},{onDismiss:n[1]||(n[1]=i=>o("dismiss",i.detail))}),[e.renderSlot(r.$slots,"default")],16))}},Ke=["variant","disabled","ghost-btn","href","pass-attrs","text-btn","size"],R={__name:"BsButtonServer",props:{variant:{},disabled:{},ghostBtn:{},href:{},passAttrs:{default:""},textBtn:{},size:{}},emits:[],setup(t,{emit:o}){const l=e.ref(!1),a=e.ref(null),r=e.ref(""),n=e.reactive([]),i=e.ref(null),c=(s,f=0)=>{var u,m;a.value||f>=4||(a.value=(m=(u=s.value)==null?void 0:u.querySelector)==null?void 0:m.call(u,"[data-slot]"),a.value||n.push(setTimeout(()=>c(s,f+1),50)))};return e.onMounted(()=>c(i,0)),e.watch(a,s=>{!s||l.value||($(a),n.push(setTimeout(()=>{p(a),e.nextTick(()=>{r.value=customElements.get("bs-button")?"hydrated superhydrated":"superhydrated"})},100)),l.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>n.forEach(s=>clearTimeout(s))),(s,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.value?(e.openBlock(),e.createBlock(e.unref(b.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:a.value},[e.renderSlot(s.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-button",e.mergeProps({ref_key:"wcRef",ref:i,class:r.value,"data-bsds-ssr":"",variant:t.variant,disabled:t.disabled,"ghost-btn":t.ghostBtn,href:t.href,"pass-attrs":t.passAttrs,"text-btn":t.textBtn,size:t.size},s.$attrs),[e.createVNode(e.unref(b.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3})],16,Ke)],64))}},Je="bs-button",Qe={__name:"BsButton",props:{variant:{},disabled:{},ghostBtn:{},href:{},passAttrs:{default:""},textBtn:{},size:{},router:{}},emits:[],setup(t,{emit:o}){const l=t,{onLinkClick:a}=w(l),{data:r}=y.useAsyncData(Je,()=>{if(process.server)return!0});return(n,i)=>e.unref(r)?(e.openBlock(),e.createBlock(R,e.mergeProps({key:0},{...l,...n.$attrs,router:void 0},{onClick:e.unref(a)}),{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},16,["onClick"])):(e.openBlock(),e.createElementBlock("bs-button",e.mergeProps({key:1},{...l,...n.$attrs,router:void 0},{onClick:i[0]||(i[0]=(...c)=>e.unref(a)&&e.unref(a)(...c))}),[e.renderSlot(n.$slots,"default")],16))}},ve=["disabled","for","hide","pass-attrs","required"],O={__name:"BsLabelServer",props:{disabled:{},for:{},hide:{},passAttrs:{default:""},required:{}},emits:[],setup(t,{emit:o}){const l=e.ref(!1),a=e.ref(null),r=e.ref(""),n=e.reactive([]),i=e.ref(null),c=(s,f=0)=>{var u,m;a.value||f>=4||(a.value=(m=(u=s.value)==null?void 0:u.querySelector)==null?void 0:m.call(u,"[data-slot]"),a.value||n.push(setTimeout(()=>c(s,f+1),50)))};return e.onMounted(()=>c(i,0)),e.watch(a,s=>{!s||l.value||($(a),n.push(setTimeout(()=>{p(a),e.nextTick(()=>{r.value=customElements.get("bs-label")?"hydrated superhydrated":"superhydrated"})},100)),l.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>n.forEach(s=>clearTimeout(s))),(s,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.value?(e.openBlock(),e.createBlock(e.unref(b.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:a.value},[e.renderSlot(s.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-label",e.mergeProps({ref_key:"wcRef",ref:i,class:r.value,"data-bsds-ssr":"",disabled:t.disabled,for:t.for,hide:t.hide,"pass-attrs":t.passAttrs,required:t.required},s.$attrs),[e.createVNode(e.unref(b.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3})],16,ve)],64))}},_e="bs-label",et={__name:"BsLabel",props:{disabled:{},for:{},hide:{},passAttrs:{default:""},required:{}},emits:[],setup(t,{emit:o}){const l=t,{data:a}=y.useAsyncData(_e,()=>{if(process.server)return!0});return(r,n)=>e.unref(a)?(e.openBlock(),e.createBlock(O,e.normalizeProps(e.mergeProps({key:0},{...l,...r.$attrs})),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16)):(e.openBlock(),e.createElementBlock("bs-label",e.normalizeProps(e.mergeProps({key:1},{...l,...r.$attrs})),[e.renderSlot(r.$slots,"default")],16))}},tt=["variant","status","href","active","disabled","pass-attrs"],N={__name:"BsPillServer",props:{variant:{},status:{},href:{},active:{},disabled:{},passAttrs:{default:""}},emits:[],setup(t,{emit:o}){const l=e.ref(!1),a=e.ref(null),r=e.ref(""),n=e.reactive([]),i=e.ref(null),c=(s,f=0)=>{var u,m;a.value||f>=4||(a.value=(m=(u=s.value)==null?void 0:u.querySelector)==null?void 0:m.call(u,"[data-slot]"),a.value||n.push(setTimeout(()=>c(s,f+1),50)))};return e.onMounted(()=>c(i,0)),e.watch(a,s=>{!s||l.value||($(a),n.push(setTimeout(()=>{p(a),e.nextTick(()=>{r.value=customElements.get("bs-pill")?"hydrated superhydrated":"superhydrated"})},100)),l.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>n.forEach(s=>clearTimeout(s))),(s,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.value?(e.openBlock(),e.createBlock(e.unref(b.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:a.value},[e.renderSlot(s.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-pill",e.mergeProps({ref_key:"wcRef",ref:i,class:r.value,"data-bsds-ssr":"",variant:t.variant,status:t.status,href:t.href,active:t.active,disabled:t.disabled,"pass-attrs":t.passAttrs},s.$attrs),[e.createVNode(e.unref(b.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3})],16,tt)],64))}},at="bs-pill",lt={__name:"BsPill",props:{variant:{},status:{},href:{},active:{},disabled:{},passAttrs:{default:""},router:{}},emits:[],setup(t,{emit:o}){const l=t,{onLinkClick:a}=w(l),{data:r}=y.useAsyncData(at,()=>{if(process.server)return!0});return(n,i)=>e.unref(r)?(e.openBlock(),e.createBlock(N,e.mergeProps({key:0},{...l,...n.$attrs,router:void 0},{onClick:e.unref(a)}),{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},16,["onClick"])):(e.openBlock(),e.createElementBlock("bs-pill",e.mergeProps({key:1},{...l,...n.$attrs,router:void 0},{onClick:i[0]||(i[0]=(...c)=>e.unref(a)&&e.unref(a)(...c))}),[e.renderSlot(n.$slots,"default")],16))}},rt=["disabled","required","error","hint-id","value","pass-attrs"],D={__name:"BsSelectServer",props:{disabled:{default:!1},required:{},error:{},hintId:{},value:{},passAttrs:{default:""}},emits:[],setup(t,{emit:o}){const l=e.ref(!1),a=e.ref(null),r=e.ref(""),n=e.reactive([]),i=e.ref(null),c=(s,f=0)=>{var u,m;a.value||f>=4||(a.value=(m=(u=s.value)==null?void 0:u.querySelector)==null?void 0:m.call(u,"[data-slot]"),a.value||n.push(setTimeout(()=>c(s,f+1),50)))};return e.onMounted(()=>c(i,0)),e.watch(a,s=>{!s||l.value||($(a),n.push(setTimeout(()=>{p(a),e.nextTick(()=>{r.value=customElements.get("bs-select")?"hydrated superhydrated":"superhydrated"})},100)),l.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>n.forEach(s=>clearTimeout(s))),(s,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.value?(e.openBlock(),e.createBlock(e.unref(b.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:a.value},[e.renderSlot(s.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-select",e.mergeProps({ref_key:"wcRef",ref:i,class:r.value,"data-bsds-ssr":"",disabled:t.disabled,required:t.required,error:t.error,"hint-id":t.hintId,value:t.value,"pass-attrs":t.passAttrs},s.$attrs),[e.createVNode(e.unref(b.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3})],16,rt)],64))}},st="bs-select",nt={__name:"BsSelect",props:{disabled:{default:!1},required:{},error:{},hintId:{},value:{},passAttrs:{default:""}},emits:[],setup(t,{emit:o}){const l=t,{data:a}=y.useAsyncData(st,()=>{if(process.server)return!0});return(r,n)=>e.unref(a)?(e.openBlock(),e.createBlock(D,e.normalizeProps(e.mergeProps({key:0},{...l,...r.$attrs})),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16)):(e.openBlock(),e.createElementBlock("bs-select",e.normalizeProps(e.mergeProps({key:1},{...l,...r.$attrs})),[e.renderSlot(r.$slots,"default")],16))}};d.BsAccordion=Xe,d.BsAccordionServer=L,d.BsBadge=K,d.BsBanner=Ze,d.BsBannerServer=z,d.BsButton=Qe,d.BsButtonServer=R,d.BsCharacterCount=Q,d.BsChartBar=_,d.BsChartTable=te,d.BsCheckbox=le,d.BsCircleButton=se,d.BsDropdown=oe,d.BsDropdownOption=de,d.BsDropdownOptions=ue,d.BsFieldLayout=me,d.BsHint=be,d.BsInput=Be,d.BsInputAddon=X,d.BsInputField=ge,d.BsInputSearch=pe,d.BsLabel=et,d.BsLabelServer=O,d.BsPill=lt,d.BsPillServer=N,d.BsProfile=Ce,d.BsProfileDetails=Te,d.BsProfileImg=Ae,d.BsProfileLayout=Ve,d.BsRadio=qe,d.BsSelect=nt,d.BsSelectField=ze,d.BsSelectServer=D,d.BsSwitch=Oe,d.BsTextarea=De,d.BsTextareaField=Me,d.BsToast=je,d.BsToaster=Y,d.BsTooltip=Ue,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(d,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("#imports"),require("#components")):typeof define=="function"&&define.amd?define(["exports","vue","#imports","#components"],e):(d=typeof globalThis<"u"?globalThis:d||self,e(d.BsdsComponents={},d.Vue,d._imports,d._components))})(this,function(d,e,y,b){"use strict";const E="update:modelValue",T="modelValue",j="routerLink",V="navManager",H="router",U="aria",g=Symbol(),P={default:g},I=t=>(t==null?void 0:t.split(" "))||[],G=(t,o,l=[])=>{var a;return[...Array.from(((a=t.value)==null?void 0:a.classList)||[]),...l].filter((r,n,i)=>!o.has(r)&&i.indexOf(r)===n)},q=(t,o,l=[],a,r,n)=>{o!==void 0&&o();const i=e.defineComponent((c,{attrs:s,slots:f,emit:u})=>{var F;let m=c[a];const D=e.ref(),M=new Set(I(s.class)),ot=k=>{k.el&&(Array.isArray(r)?r:[r]).forEach(B=>{k.el.addEventListener(B.toLowerCase(),h=>{m=(h==null?void 0:h.target)[a],u(E,m),n&&u(n,h)})})},A=e.getCurrentInstance(),x=((F=A==null?void 0:A.appContext)==null?void 0:F.provides[V])?e.inject(V):void 0,it=k=>{const{routerLink:S}=c;if(S!==g)if(x!==void 0){let B={event:k};for(const h in c){const C=c[h];c.hasOwnProperty(h)&&h.startsWith(H)&&C!==g&&(B[h]=C)}x.navigate(B)}else console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.")};return()=>{m=c[a],I(s.class).forEach(h=>{M.add(h)});const k=c.onClick,S=h=>{k!==void 0&&k(h),h.defaultPrevented||it(h)};let B={ref:D,class:G(D,M),onClick:S,onVnodeBeforeMount:r?ot:void 0};for(const h in c){const C=c[h];(c.hasOwnProperty(h)&&C!==g||h.startsWith(U))&&(B[h]=C)}return a&&(c[T]!==g?B={...B,[a]:c[T]}:m!==g&&(B={...B,[a]:m})),e.h(t,B,f.default&&f.default())}});return typeof i!="function"&&(i.name=t,i.props={[j]:P},l.forEach(c=>{i.props[c]=P}),a&&(i.props[T]=P,i.emits=[E,n])),i},X=q("bs-input-addon",void 0,["disabled","error","multifocus","variant"]),Y=q("bs-toaster",void 0),Z=["color","count","count-max","dot","label","position","show-zero"],K={__name:"BsBadge",props:{color:{},count:{},countMax:{default:99},dot:{},label:{default:"item"},position:{},showZero:{}},emits:[],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-badge",e.mergeProps(l.$attrs,{color:t.color,count:t.count,"count-max":t.countMax,dot:t.dot,label:t.label,position:t.position,"show-zero":t.showZero}),[e.renderSlot(l.$slots,"default")],16,Z))}},J=["char-count","char-max"],Q={__name:"BsCharacterCount",props:{charCount:{},charMax:{}},emits:[],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-character-count",e.mergeProps(l.$attrs,{"char-count":t.charCount,"char-max":t.charMax}),null,16,J))}},v=["chart-title","data","dataIdxLabels","show-legend","show-tooltips","show-x-grid","show-y-grid","stacked","x-label","y-label"],_={__name:"BsChartBar",props:{chartTitle:{},data:{},dataIdxLabels:{},showLegend:{default:!0},showTooltips:{default:!0},showXGrid:{default:!1},showYGrid:{default:!1},stacked:{default:!1},xLabel:{default:""},yLabel:{default:""}},emits:[],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-chart-bar",e.mergeProps(l.$attrs,{"chart-title":t.chartTitle,data:t.data,dataIdxLabels:t.dataIdxLabels,"show-legend":t.showLegend,"show-tooltips":t.showTooltips,"show-x-grid":t.showXGrid,"show-y-grid":t.showYGrid,stacked:t.stacked,"x-label":t.xLabel,"y-label":t.yLabel}),null,16,v))}},ee=["data","dataIdxLabels","table-title"],te={__name:"BsChartTable",props:{data:{},dataIdxLabels:{},tableTitle:{default:""}},emits:[],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-chart-table",e.mergeProps(l.$attrs,{data:t.data,dataIdxLabels:t.dataIdxLabels,"table-title":t.tableTitle}),null,16,ee))}},ae=["label","checked","checked-partially","disabled","error","pass-attrs","required","size"],le={__name:"BsCheckbox",props:{label:{},checked:{default:!1},checkedPartially:{default:!1},disabled:{default:!1},error:{},passAttrs:{default:""},required:{},size:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-checkbox",e.mergeProps(l.$attrs,{label:t.label,checked:t.checked||t.modelValue,"checked-partially":t.checkedPartially,disabled:t.disabled,error:t.error,"pass-attrs":t.passAttrs,required:t.required,size:t.size,onChange:a[0]||(a[0]=r=>o("update:modelValue",r.target.checked))}),null,16,ae))}};function $(t){const o=e.computed(()=>{var r,n;return((n=(r=t.href)==null?void 0:r.startsWith)==null?void 0:n.call(r,"/"))||!1}),l=e.computed(()=>{var r,n;return o.value&&((r=t.router)==null?void 0:r.navigateTo)||((n=t.router)==null?void 0:n.push)||null});function a(r){var n,i,c,s,f;l.value&&((i=(n=r.target.href)==null?void 0:n.endsWith)!=null&&i.call(n,t.href)||(f=(s=(c=r.target.closest("a"))==null?void 0:c.href)==null?void 0:s.endsWith)!=null&&f.call(s,t.href))&&(r.preventDefault(),l.value(t.href))}return{onLinkClick:a}}const re=["disabled","ghost-btn","hover-effect","href","icon","icon-position","label","pass-attrs","text-btn","size"],se={__name:"BsCircleButton",props:{disabled:{},ghostBtn:{},hoverEffect:{default:!1},href:{},icon:{},iconPosition:{},label:{},passAttrs:{default:""},textBtn:{},size:{},router:{}},emits:[],setup(t,{emit:o}){const l=t,{onLinkClick:a}=$(l);return(r,n)=>(e.openBlock(),e.createElementBlock("bs-circle-button",e.mergeProps(r.$attrs,{disabled:t.disabled,"ghost-btn":t.ghostBtn,"hover-effect":t.hoverEffect,href:t.href,icon:t.icon,"icon-position":t.iconPosition,label:t.label,"pass-attrs":t.passAttrs,"text-btn":t.textBtn,size:t.size,onClick:n[0]||(n[0]=(...i)=>e.unref(a)&&e.unref(a)(...i))}),null,16,re))}},ne=["dropdown-id","shown","label","position","justify","variant"],oe={__name:"BsDropdown",props:{dropdownId:{},shown:{},label:{},position:{},justify:{},variant:{}},emits:["dropdownchange","close"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-dropdown",e.mergeProps(l.$attrs,{"dropdown-id":t.dropdownId,shown:t.shown,label:t.label,position:t.position,justify:t.justify,variant:t.variant,onDropdownchange:a[0]||(a[0]=r=>o("dropdownchange",r.detail)),onClose:a[1]||(a[1]=r=>o("close",r.detail))}),[e.renderSlot(l.$slots,"default")],16,ne))}},ie=["value","variant","selected","shown","focused","index","dropdown-id"],de={__name:"BsDropdownOption",props:{value:{},variant:{},selected:{default:!1},shown:{},focused:{},index:{},dropdownId:{}},emits:["mousefocus","optionselect"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-dropdown-option",e.mergeProps(l.$attrs,{value:t.value,variant:t.variant,selected:t.selected,shown:t.shown,focused:t.focused,index:t.index,"dropdown-id":t.dropdownId,onMousefocus:a[0]||(a[0]=r=>o("mousefocus",r.detail)),onOptionselect:a[1]||(a[1]=r=>o("optionselect",r.detail))}),[e.renderSlot(l.$slots,"default")],16,ie))}},ce=["dropdown-id","shown","label","position","variant"],ue={__name:"BsDropdownOptions",props:{dropdownId:{},shown:{},label:{},position:{},variant:{}},emits:["dropdownchange","close"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-dropdown-options",e.mergeProps(l.$attrs,{"dropdown-id":t.dropdownId,shown:t.shown,label:t.label,position:t.position,variant:t.variant,onDropdownchange:a[0]||(a[0]=r=>o("dropdownchange",r.detail)),onClose:a[1]||(a[1]=r=>o("close",r.detail))}),[e.renderSlot(l.$slots,"default")],16,ce))}},fe=["char-count","char-max","disabled","error","hints","label","label-for","required","hint-id"],me={__name:"BsFieldLayout",props:{charCount:{},charMax:{},disabled:{default:!1},error:{},hints:{},label:{},labelFor:{},required:{},hintId:{}},emits:[],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-field-layout",e.mergeProps(l.$attrs,{"char-count":t.charCount,"char-max":t.charMax,disabled:t.disabled,error:t.error,hints:t.hints,label:t.label,"label-for":t.labelFor,required:t.required,"hint-id":t.hintId}),[e.renderSlot(l.$slots,"default")],16,fe))}},he=["error","hint-id","hints"],be={__name:"BsHint",props:{error:{},hintId:{},hints:{}},emits:[],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-hint",e.mergeProps(l.$attrs,{error:t.error,"hint-id":t.hintId,hints:t.hints}),null,16,he))}},Be=["disabled","error","pass-attrs","placeholder","required","type","value","hint-id"],ke={__name:"BsInput",props:{disabled:{default:!1},error:{},passAttrs:{default:""},placeholder:{},required:{},type:{default:"text"},value:{},hintId:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-input",e.mergeProps(l.$attrs,{disabled:t.disabled,error:t.error,"pass-attrs":t.passAttrs,placeholder:t.placeholder,required:t.required,type:t.type,value:t.value||t.modelValue,"hint-id":t.hintId,onInput:a[0]||(a[0]=r=>o("update:modelValue",r.target.value))}),null,16,Be))}},ye=["disabled","error","hints","label","pass-attrs","placeholder","required","type","value"],ge={__name:"BsInputField",props:{disabled:{default:!1},error:{},hints:{},label:{},passAttrs:{default:""},placeholder:{},required:{},type:{default:"text"},value:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-input-field",e.mergeProps(l.$attrs,{disabled:t.disabled,error:t.error,hints:t.hints,label:t.label,"pass-attrs":t.passAttrs,placeholder:t.placeholder,required:t.required,type:t.type,value:t.value||t.modelValue,onInput:a[0]||(a[0]=r=>o("update:modelValue",r.target.value))}),null,16,ye))}},$e=["disabled","pass-attrs","placeholder","aria-label","hint-id","value"],pe={__name:"BsInputSearch",props:{disabled:{default:!1},passAttrs:{default:""},placeholder:{default:"Search Items"},ariaLabel:{default:"Search Items"},hintId:{},value:{default:""}},emits:["onclear"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-input-search",e.mergeProps(l.$attrs,{disabled:t.disabled,"pass-attrs":t.passAttrs,placeholder:t.placeholder,"aria-label":t.ariaLabel,"hint-id":t.hintId,value:t.value,onOnclear:a[0]||(a[0]=r=>o("onclear",r.detail))}),null,16,$e))}},we=["layout","href","image-src","image-size","initials","profile-name","company","job-title","email"],Ce={__name:"BsProfile",props:{layout:{},href:{},imageSrc:{},imageSize:{default:"lg"},initials:{},profileName:{},company:{},jobTitle:{},email:{},router:{}},emits:[],setup(t,{emit:o}){const l=t,{onLinkClick:a}=$(l);return(r,n)=>(e.openBlock(),e.createElementBlock("bs-profile",e.mergeProps(r.$attrs,{layout:t.layout,href:t.href,"image-src":t.imageSrc,"image-size":t.imageSize,initials:t.initials,"profile-name":t.profileName,company:t.company,"job-title":t.jobTitle,email:t.email,onClick:n[0]||(n[0]=(...i)=>e.unref(a)&&e.unref(a)(...i))}),null,16,we))}},Se=["profile-name","company","job-title","email"],Te={__name:"BsProfileDetails",props:{profileName:{},company:{},jobTitle:{},email:{}},emits:[],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-profile-details",e.mergeProps(l.$attrs,{"profile-name":t.profileName,company:t.company,"job-title":t.jobTitle,email:t.email}),null,16,Se))}},Pe=["src","size","initials","profile-name"],Ae={__name:"BsProfileImg",props:{src:{},size:{},initials:{},profileName:{}},emits:[],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-profile-img",e.mergeProps(l.$attrs,{src:t.src,size:t.size,initials:t.initials,"profile-name":t.profileName}),null,16,Pe))}},Ee=["layout","href","pass-attrs"],Ve={__name:"BsProfileLayout",props:{layout:{default:"vertical"},href:{},passAttrs:{default:""},router:{}},emits:[],setup(t,{emit:o}){const l=t,{onLinkClick:a}=$(l);return(r,n)=>(e.openBlock(),e.createElementBlock("bs-profile-layout",e.mergeProps(r.$attrs,{layout:t.layout,href:t.href,"pass-attrs":t.passAttrs,onClick:n[0]||(n[0]=(...i)=>e.unref(a)&&e.unref(a)(...i))}),[e.renderSlot(r.$slots,"default")],16,Ee))}},Ie=["label","checked","disabled","error","pass-attrs","required","size","value"],qe={__name:"BsRadio",props:{label:{},checked:{default:!1},disabled:{default:!1},error:{},passAttrs:{default:""},required:{},size:{},value:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-radio",e.mergeProps(l.$attrs,{label:t.label,checked:t.checked||t.modelValue===t.value,disabled:t.disabled,error:t.error,"pass-attrs":t.passAttrs,required:t.required,size:t.size,value:t.value,onChange:a[0]||(a[0]=r=>o("update:modelValue",r.target.value))}),null,16,Ie))}},Le=["disabled","error","required","label","hints","placeholder","value","pass-attrs","data"],Re={__name:"BsSelectField",props:{disabled:{default:!1},error:{},required:{},label:{},hints:{},placeholder:{default:""},value:{},passAttrs:{default:""},data:{default:[]},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-select-field",e.mergeProps(l.$attrs,{disabled:t.disabled,error:t.error,required:t.required,label:t.label,hints:t.hints,placeholder:t.placeholder,value:t.value||t.modelValue,"pass-attrs":t.passAttrs,data:t.data,onChange:a[0]||(a[0]=r=>o("update:modelValue",r.target.value))}),null,16,Le))}},ze=["checked","disabled","inner-on-label","inner-off-label","label","pass-attrs","size"],Oe={__name:"BsSwitch",props:{checked:{default:!1},disabled:{default:!1},innerOnLabel:{},innerOffLabel:{},label:{},passAttrs:{default:""},size:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-switch",e.mergeProps(l.$attrs,{checked:t.checked||t.modelValue,disabled:t.disabled,"inner-on-label":t.innerOnLabel,"inner-off-label":t.innerOffLabel,label:t.label,"pass-attrs":t.passAttrs,size:t.size,onChange:a[0]||(a[0]=r=>o("update:modelValue",r.target.checked))}),null,16,ze))}},Ne=["disabled","error","pass-attrs","placeholder","required","value","hint-id"],We={__name:"BsTextarea",props:{disabled:{default:!1},error:{},passAttrs:{default:""},placeholder:{},required:{},value:{},hintId:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-textarea",e.mergeProps(l.$attrs,{disabled:t.disabled,error:t.error,"pass-attrs":t.passAttrs,placeholder:t.placeholder,required:t.required,value:t.value||t.modelValue,"hint-id":t.hintId,onInput:a[0]||(a[0]=r=>o("update:modelValue",r.target.value))}),null,16,Ne))}},De=["char-max","disabled","error","hints","label","placeholder","required","value","pass-attrs"],Me={__name:"BsTextareaField",props:{charMax:{},disabled:{default:!1},error:{},hints:{},label:{},placeholder:{},required:{},value:{default:""},passAttrs:{default:""},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-textarea-field",e.mergeProps(l.$attrs,{"char-max":t.charMax,disabled:t.disabled,error:t.error,hints:t.hints,label:t.label,placeholder:t.placeholder,required:t.required,value:t.value||t.modelValue,"pass-attrs":t.passAttrs,onInput:a[0]||(a[0]=r=>o("update:modelValue",r.target.value))}),null,16,De))}},xe=["toast-id","shown","variant","toast-title","content","stacked","duration","primary-action","primary-action-type","secondary-action","secondary-action-type","tertiary-action","tertiary-action-type","dismiss-action"],Fe={__name:"BsToast",props:{toastId:{},shown:{},variant:{},toastTitle:{},content:{},stacked:{default:!1},duration:{default:1e4},primaryAction:{default:"Dismiss"},primaryActionType:{default:"text"},secondaryAction:{},secondaryActionType:{default:"text"},tertiaryAction:{},tertiaryActionType:{default:"text"},dismissAction:{default:"Dismiss"}},emits:["dismiss","actionclick"],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-toast",e.mergeProps(l.$attrs,{"toast-id":t.toastId,shown:t.shown,variant:t.variant,"toast-title":t.toastTitle,content:t.content,stacked:t.stacked,duration:t.duration,"primary-action":t.primaryAction,"primary-action-type":t.primaryActionType,"secondary-action":t.secondaryAction,"secondary-action-type":t.secondaryActionType,"tertiary-action":t.tertiaryAction,"tertiary-action-type":t.tertiaryActionType,"dismiss-action":t.dismissAction,onDismiss:a[0]||(a[0]=r=>o("dismiss",r.detail)),onActionclick:a[1]||(a[1]=r=>o("actionclick",r.detail))}),[e.renderSlot(l.$slots,"default")],16,xe))}},je=["tooltip-id","content","position"],He={__name:"BsTooltip",props:{tooltipId:{},content:{},position:{}},emits:[],setup(t,{emit:o}){return(l,a)=>(e.openBlock(),e.createElementBlock("bs-tooltip",e.mergeProps(l.$attrs,{"tooltip-id":t.tooltipId,content:t.content,position:t.position}),[e.renderSlot(l.$slots,"default")],16,je))}};function p(t){const{height:o,width:l}=t.value.getBoundingClientRect();t.value.style.minHeight=o+"px",t.value.style.minWidth=l+"px",t.value.replaceChildren()}function w(t){t.value.style.minHeight=null,t.value.style.minWidth=null}const Ue=["controlled","icon","header-text","heading-level","open-item","stacked"],L={__name:"BsAccordionServer",props:{controlled:{default:!1},icon:{},headerText:{},headingLevel:{},openItem:{default:!1},stacked:{default:!1}},emits:["toggled"],setup(t,{emit:o}){const l=e.ref(!1),a=e.ref(null),r=e.ref(""),n=e.reactive([]),i=e.ref(null),c=(s,f=0)=>{var u,m;a.value||f>=4||(a.value=(m=(u=s.value)==null?void 0:u.querySelector)==null?void 0:m.call(u,"[data-slot]"),a.value||n.push(setTimeout(()=>c(s,f+1),50)))};return e.onMounted(()=>c(i,0)),e.watch(a,s=>{!s||l.value||(p(a),n.push(setTimeout(()=>{w(a),e.nextTick(()=>{r.value=customElements.get("bs-accordion")?"hydrated superhydrated":"superhydrated"})},100)),l.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>n.forEach(s=>clearTimeout(s))),(s,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.value?(e.openBlock(),e.createBlock(e.unref(b.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:a.value},[e.renderSlot(s.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-accordion",e.mergeProps({ref_key:"wcRef",ref:i,class:r.value,"data-bsds-ssr":"",controlled:t.controlled,icon:t.icon,"header-text":t.headerText,"heading-level":t.headingLevel,"open-item":t.openItem,stacked:t.stacked,onToggled:f[0]||(f[0]=u=>o("toggled",u.detail))},s.$attrs),[e.createVNode(e.unref(b.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3})],16,Ue)],64))}},Ge="bs-accordion",Xe={__name:"BsAccordion",props:{controlled:{default:!1},icon:{},headerText:{},headingLevel:{},openItem:{default:!1},stacked:{default:!1}},emits:["toggled"],setup(t,{emit:o}){const l=t,{data:a}=y.useAsyncData(Ge,()=>{if(process.server)return!0});return(r,n)=>e.unref(a)?(e.openBlock(),e.createBlock(L,e.mergeProps({key:0},{...l,...r.$attrs},{onToggled:n[0]||(n[0]=i=>o("toggled",i.detail))}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16)):(e.openBlock(),e.createElementBlock("bs-accordion",e.mergeProps({key:1},{...l,...r.$attrs},{onToggled:n[1]||(n[1]=i=>o("toggled",i.detail))}),[e.renderSlot(r.$slots,"default")],16))}},R={__name:"BsBannerServer",props:{},emits:["dismiss"],setup(t,{emit:o}){const l=e.ref(!1),a=e.ref(null),r=e.ref(""),n=e.reactive([]),i=e.ref(null),c=(s,f=0)=>{var u,m;a.value||f>=4||(a.value=(m=(u=s.value)==null?void 0:u.querySelector)==null?void 0:m.call(u,"[data-slot]"),a.value||n.push(setTimeout(()=>c(s,f+1),50)))};return e.onMounted(()=>c(i,0)),e.watch(a,s=>{!s||l.value||(p(a),n.push(setTimeout(()=>{w(a),e.nextTick(()=>{r.value=customElements.get("bs-banner")?"hydrated superhydrated":"superhydrated"})},100)),l.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>n.forEach(s=>clearTimeout(s))),(s,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.value?(e.openBlock(),e.createBlock(e.unref(b.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:a.value},[e.renderSlot(s.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-banner",e.mergeProps({ref_key:"wcRef",ref:i,class:r.value,"data-bsds-ssr":"",onDismiss:f[0]||(f[0]=u=>o("dismiss",u.detail))},s.$attrs),[e.createVNode(e.unref(b.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3})],16)],64))}},Ye="bs-banner",Ze={__name:"BsBanner",props:{},emits:["dismiss"],setup(t,{emit:o}){const l=t,{data:a}=y.useAsyncData(Ye,()=>{if(process.server)return!0});return(r,n)=>e.unref(a)?(e.openBlock(),e.createBlock(R,e.mergeProps({key:0},{...l,...r.$attrs},{onDismiss:n[0]||(n[0]=i=>o("dismiss",i.detail))}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16)):(e.openBlock(),e.createElementBlock("bs-banner",e.mergeProps({key:1},{...l,...r.$attrs},{onDismiss:n[1]||(n[1]=i=>o("dismiss",i.detail))}),[e.renderSlot(r.$slots,"default")],16))}},Ke=["variant","disabled","ghost-btn","href","pass-attrs","text-btn","size"],z={__name:"BsButtonServer",props:{variant:{},disabled:{},ghostBtn:{},href:{},passAttrs:{default:""},textBtn:{},size:{}},emits:[],setup(t,{emit:o}){const l=e.ref(!1),a=e.ref(null),r=e.ref(""),n=e.reactive([]),i=e.ref(null),c=(s,f=0)=>{var u,m;a.value||f>=4||(a.value=(m=(u=s.value)==null?void 0:u.querySelector)==null?void 0:m.call(u,"[data-slot]"),a.value||n.push(setTimeout(()=>c(s,f+1),50)))};return e.onMounted(()=>{var s;if((s=i.value)!=null&&s.getBoundingClientRect){const{height:f,width:u}=i.value.getBoundingClientRect();i.value.style.minHeight=f+"px",i.value.style.maxWidth=u+"px"}c(i,0)}),e.watch(a,s=>{!s||l.value||(a.value.replaceChildren(),n.push(setTimeout(()=>{e.nextTick(()=>{r.value=customElements.get("bs-button")?"hydrated superhydrated":"superhydrated",e.nextTick(()=>{i.value.style.minHeight=null,i.value.style.maxWidth=null})})},100)),l.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>n.forEach(s=>clearTimeout(s))),(s,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.value?(e.openBlock(),e.createBlock(e.unref(b.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:a.value},[e.renderSlot(s.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-button",e.mergeProps({ref_key:"wcRef",ref:i,class:r.value,"data-bsds-ssr":"",variant:t.variant,disabled:t.disabled,"ghost-btn":t.ghostBtn,href:t.href,"pass-attrs":t.passAttrs,"text-btn":t.textBtn,size:t.size},s.$attrs),[e.createVNode(e.unref(b.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3})],16,Ke)],64))}},Je="bs-button",Qe={__name:"BsButton",props:{variant:{},disabled:{},ghostBtn:{},href:{},passAttrs:{default:""},textBtn:{},size:{},router:{}},emits:[],setup(t,{emit:o}){const l=t,{onLinkClick:a}=$(l),{data:r}=y.useAsyncData(Je,()=>{if(process.server)return!0});return(n,i)=>e.unref(r)?(e.openBlock(),e.createBlock(z,e.mergeProps({key:0},{...l,...n.$attrs,router:void 0},{onClick:e.unref(a)}),{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},16,["onClick"])):(e.openBlock(),e.createElementBlock("bs-button",e.mergeProps({key:1},{...l,...n.$attrs,router:void 0},{onClick:i[0]||(i[0]=(...c)=>e.unref(a)&&e.unref(a)(...c))}),[e.renderSlot(n.$slots,"default")],16))}},ve=["disabled","for","hide","pass-attrs","required"],O={__name:"BsLabelServer",props:{disabled:{},for:{},hide:{},passAttrs:{default:""},required:{}},emits:[],setup(t,{emit:o}){const l=e.ref(!1),a=e.ref(null),r=e.ref(""),n=e.reactive([]),i=e.ref(null),c=(s,f=0)=>{var u,m;a.value||f>=4||(a.value=(m=(u=s.value)==null?void 0:u.querySelector)==null?void 0:m.call(u,"[data-slot]"),a.value||n.push(setTimeout(()=>c(s,f+1),50)))};return e.onMounted(()=>c(i,0)),e.watch(a,s=>{!s||l.value||(p(a),n.push(setTimeout(()=>{w(a),e.nextTick(()=>{r.value=customElements.get("bs-label")?"hydrated superhydrated":"superhydrated"})},100)),l.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>n.forEach(s=>clearTimeout(s))),(s,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.value?(e.openBlock(),e.createBlock(e.unref(b.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:a.value},[e.renderSlot(s.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-label",e.mergeProps({ref_key:"wcRef",ref:i,class:r.value,"data-bsds-ssr":"",disabled:t.disabled,for:t.for,hide:t.hide,"pass-attrs":t.passAttrs,required:t.required},s.$attrs),[e.createVNode(e.unref(b.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3})],16,ve)],64))}},_e="bs-label",et={__name:"BsLabel",props:{disabled:{},for:{},hide:{},passAttrs:{default:""},required:{}},emits:[],setup(t,{emit:o}){const l=t,{data:a}=y.useAsyncData(_e,()=>{if(process.server)return!0});return(r,n)=>e.unref(a)?(e.openBlock(),e.createBlock(O,e.normalizeProps(e.mergeProps({key:0},{...l,...r.$attrs})),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16)):(e.openBlock(),e.createElementBlock("bs-label",e.normalizeProps(e.mergeProps({key:1},{...l,...r.$attrs})),[e.renderSlot(r.$slots,"default")],16))}},tt=["variant","status","href","active","disabled","pass-attrs"],N={__name:"BsPillServer",props:{variant:{},status:{},href:{},active:{},disabled:{},passAttrs:{default:""}},emits:[],setup(t,{emit:o}){const l=e.ref(!1),a=e.ref(null),r=e.ref(""),n=e.reactive([]),i=e.ref(null),c=(s,f=0)=>{var u,m;a.value||f>=4||(a.value=(m=(u=s.value)==null?void 0:u.querySelector)==null?void 0:m.call(u,"[data-slot]"),a.value||n.push(setTimeout(()=>c(s,f+1),50)))};return e.onMounted(()=>c(i,0)),e.watch(a,s=>{!s||l.value||(p(a),n.push(setTimeout(()=>{w(a),e.nextTick(()=>{r.value=customElements.get("bs-pill")?"hydrated superhydrated":"superhydrated"})},100)),l.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>n.forEach(s=>clearTimeout(s))),(s,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.value?(e.openBlock(),e.createBlock(e.unref(b.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:a.value},[e.renderSlot(s.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-pill",e.mergeProps({ref_key:"wcRef",ref:i,class:r.value,"data-bsds-ssr":"",variant:t.variant,status:t.status,href:t.href,active:t.active,disabled:t.disabled,"pass-attrs":t.passAttrs},s.$attrs),[e.createVNode(e.unref(b.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3})],16,tt)],64))}},at="bs-pill",lt={__name:"BsPill",props:{variant:{},status:{},href:{},active:{},disabled:{},passAttrs:{default:""},router:{}},emits:[],setup(t,{emit:o}){const l=t,{onLinkClick:a}=$(l),{data:r}=y.useAsyncData(at,()=>{if(process.server)return!0});return(n,i)=>e.unref(r)?(e.openBlock(),e.createBlock(N,e.mergeProps({key:0},{...l,...n.$attrs,router:void 0},{onClick:e.unref(a)}),{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},16,["onClick"])):(e.openBlock(),e.createElementBlock("bs-pill",e.mergeProps({key:1},{...l,...n.$attrs,router:void 0},{onClick:i[0]||(i[0]=(...c)=>e.unref(a)&&e.unref(a)(...c))}),[e.renderSlot(n.$slots,"default")],16))}},rt=["disabled","required","error","hint-id","value","pass-attrs"],W={__name:"BsSelectServer",props:{disabled:{default:!1},required:{},error:{},hintId:{},value:{},passAttrs:{default:""}},emits:[],setup(t,{emit:o}){const l=e.ref(!1),a=e.ref(null),r=e.ref(""),n=e.reactive([]),i=e.ref(null),c=(s,f=0)=>{var u,m;a.value||f>=4||(a.value=(m=(u=s.value)==null?void 0:u.querySelector)==null?void 0:m.call(u,"[data-slot]"),a.value||n.push(setTimeout(()=>c(s,f+1),50)))};return e.onMounted(()=>c(i,0)),e.watch(a,s=>{!s||l.value||(p(a),n.push(setTimeout(()=>{w(a),e.nextTick(()=>{r.value=customElements.get("bs-select")?"hydrated superhydrated":"superhydrated"})},100)),l.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>n.forEach(s=>clearTimeout(s))),(s,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.value?(e.openBlock(),e.createBlock(e.unref(b.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:a.value},[e.renderSlot(s.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-select",e.mergeProps({ref_key:"wcRef",ref:i,class:r.value,"data-bsds-ssr":"",disabled:t.disabled,required:t.required,error:t.error,"hint-id":t.hintId,value:t.value,"pass-attrs":t.passAttrs},s.$attrs),[e.createVNode(e.unref(b.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3})],16,rt)],64))}},st="bs-select",nt={__name:"BsSelect",props:{disabled:{default:!1},required:{},error:{},hintId:{},value:{},passAttrs:{default:""}},emits:[],setup(t,{emit:o}){const l=t,{data:a}=y.useAsyncData(st,()=>{if(process.server)return!0});return(r,n)=>e.unref(a)?(e.openBlock(),e.createBlock(W,e.normalizeProps(e.mergeProps({key:0},{...l,...r.$attrs})),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16)):(e.openBlock(),e.createElementBlock("bs-select",e.normalizeProps(e.mergeProps({key:1},{...l,...r.$attrs})),[e.renderSlot(r.$slots,"default")],16))}};d.BsAccordion=Xe,d.BsAccordionServer=L,d.BsBadge=K,d.BsBanner=Ze,d.BsBannerServer=R,d.BsButton=Qe,d.BsButtonServer=z,d.BsCharacterCount=Q,d.BsChartBar=_,d.BsChartTable=te,d.BsCheckbox=le,d.BsCircleButton=se,d.BsDropdown=oe,d.BsDropdownOption=de,d.BsDropdownOptions=ue,d.BsFieldLayout=me,d.BsHint=be,d.BsInput=ke,d.BsInputAddon=X,d.BsInputField=ge,d.BsInputSearch=pe,d.BsLabel=et,d.BsLabelServer=O,d.BsPill=lt,d.BsPillServer=N,d.BsProfile=Ce,d.BsProfileDetails=Te,d.BsProfileImg=Ae,d.BsProfileLayout=Ve,d.BsRadio=qe,d.BsSelect=nt,d.BsSelectField=Re,d.BsSelectServer=W,d.BsSwitch=Oe,d.BsTextarea=We,d.BsTextareaField=Me,d.BsToast=Fe,d.BsToaster=Y,d.BsTooltip=He,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wwtdev/bsds-components-vue3",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"description": "BSDS Vue3 Components",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -59,6 +59,6 @@
|
|
|
59
59
|
"wwt-package-publisher": "^4.1.2"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@wwtdev/bsds-components": "^1.6.
|
|
62
|
+
"@wwtdev/bsds-components": "^1.6.3"
|
|
63
63
|
}
|
|
64
64
|
}
|