@wwtdev/bsds-components-vue3 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,67 +1,67 @@
1
- import { defineComponent as Q, ref as f, getCurrentInstance as ee, inject as te, h as se, reactive as R, onMounted as C, watch as L, onBeforeUnmount as E, openBlock as u, createElementBlock as $, Fragment as I, createBlock as m, unref as y, withCtx as B, Teleport as P, renderSlot as h, createCommentVNode as q, createElementVNode as W, mergeProps as k, createVNode as _, normalizeProps as S } from "vue";
2
- import { useAsyncData as O } from "#imports";
3
- import { ClientOnly as g } from "#components";
4
- const X = "update:modelValue", F = "modelValue", ae = "routerLink", Y = "navManager", re = "router", oe = "aria", A = Symbol(), H = { default: A }, K = (s) => (s == null ? void 0 : s.split(" ")) || [], le = (s, v, o = []) => {
1
+ import { defineComponent as ee, ref as f, getCurrentInstance as te, inject as se, h as ae, reactive as R, onMounted as C, watch as L, nextTick as E, onBeforeUnmount as I, openBlock as u, createElementBlock as $, Fragment as P, createBlock as m, unref as y, withCtx as B, Teleport as q, renderSlot as h, createCommentVNode as W, createElementVNode as _, mergeProps as g, createVNode as O, normalizeProps as T } from "vue";
2
+ import { useAsyncData as V } from "#imports";
3
+ import { ClientOnly as k } from "#components";
4
+ const K = "update:modelValue", H = "modelValue", re = "routerLink", Z = "navManager", oe = "router", le = "aria", A = Symbol(), j = { default: A }, J = (s) => (s == null ? void 0 : s.split(" ")) || [], ne = (s, v, o = []) => {
5
5
  var e;
6
6
  return [...Array.from(((e = s.value) == null ? void 0 : e.classList) || []), ...o].filter(
7
7
  (a, r, n) => !v.has(a) && n.indexOf(a) === r
8
8
  );
9
9
  }, c = (s, v, o = [], e, a, r) => {
10
10
  v !== void 0 && v();
11
- const n = Q((i, { attrs: t, slots: d, emit: l }) => {
12
- var U;
11
+ const n = ee((i, { attrs: t, slots: d, emit: l }) => {
12
+ var Y;
13
13
  let p = i[e];
14
- const j = f(), x = new Set(K(t.class)), Z = (w) => {
15
- w.el && (Array.isArray(a) ? a : [a]).forEach((T) => {
16
- w.el.addEventListener(T.toLowerCase(), (b) => {
17
- p = (b == null ? void 0 : b.target)[e], l(X, p), r && l(r, b);
14
+ const G = f(), U = new Set(J(t.class)), Q = (w) => {
15
+ w.el && (Array.isArray(a) ? a : [a]).forEach((S) => {
16
+ w.el.addEventListener(S.toLowerCase(), (b) => {
17
+ p = (b == null ? void 0 : b.target)[e], l(K, p), r && l(r, b);
18
18
  });
19
19
  });
20
- }, D = ee(), G = ((U = D == null ? void 0 : D.appContext) == null ? void 0 : U.provides[Y]) ? te(Y) : void 0, J = (w) => {
21
- const { routerLink: z } = i;
22
- if (z !== A)
23
- if (G !== void 0) {
24
- let T = { event: w };
20
+ }, F = te(), X = ((Y = F == null ? void 0 : F.appContext) == null ? void 0 : Y.provides[Z]) ? se(Z) : void 0, x = (w) => {
21
+ const { routerLink: D } = i;
22
+ if (D !== A)
23
+ if (X !== void 0) {
24
+ let S = { event: w };
25
25
  for (const b in i) {
26
- const N = i[b];
27
- i.hasOwnProperty(b) && b.startsWith(re) && N !== A && (T[b] = N);
26
+ const z = i[b];
27
+ i.hasOwnProperty(b) && b.startsWith(oe) && z !== A && (S[b] = z);
28
28
  }
29
- G.navigate(T);
29
+ X.navigate(S);
30
30
  } else
31
31
  console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.");
32
32
  };
33
33
  return () => {
34
- p = i[e], K(t.class).forEach((b) => {
35
- x.add(b);
34
+ p = i[e], J(t.class).forEach((b) => {
35
+ U.add(b);
36
36
  });
37
- const w = i.onClick, z = (b) => {
38
- w !== void 0 && w(b), b.defaultPrevented || J(b);
37
+ const w = i.onClick, D = (b) => {
38
+ w !== void 0 && w(b), b.defaultPrevented || x(b);
39
39
  };
40
- let T = {
41
- ref: j,
42
- class: le(j, x),
43
- onClick: z,
44
- onVnodeBeforeMount: a ? Z : void 0
40
+ let S = {
41
+ ref: G,
42
+ class: ne(G, U),
43
+ onClick: D,
44
+ onVnodeBeforeMount: a ? Q : void 0
45
45
  };
46
46
  for (const b in i) {
47
- const N = i[b];
48
- (i.hasOwnProperty(b) && N !== A || b.startsWith(oe)) && (T[b] = N);
47
+ const z = i[b];
48
+ (i.hasOwnProperty(b) && z !== A || b.startsWith(le)) && (S[b] = z);
49
49
  }
50
- return e && (i[F] !== A ? T = {
51
- ...T,
52
- [e]: i[F]
53
- } : p !== A && (T = {
54
- ...T,
50
+ return e && (i[H] !== A ? S = {
51
+ ...S,
52
+ [e]: i[H]
53
+ } : p !== A && (S = {
54
+ ...S,
55
55
  [e]: p
56
- })), se(s, T, d.default && d.default());
56
+ })), ae(s, S, d.default && d.default());
57
57
  };
58
58
  });
59
59
  return typeof n != "function" && (n.name = s, n.props = {
60
- [ae]: H
60
+ [re]: j
61
61
  }, o.forEach((i) => {
62
- n.props[i] = H;
63
- }), e && (n.props[F] = H, n.emits = [X, r])), n;
64
- }, Ce = /* @__PURE__ */ c("bs-badge", void 0, [
62
+ n.props[i] = j;
63
+ }), e && (n.props[H] = j, n.emits = [K, r])), n;
64
+ }, Le = /* @__PURE__ */ c("bs-badge", void 0, [
65
65
  "color",
66
66
  "count",
67
67
  "countMax",
@@ -69,10 +69,10 @@ const X = "update:modelValue", F = "modelValue", ae = "routerLink", Y = "navMana
69
69
  "label",
70
70
  "position",
71
71
  "showZero"
72
- ]), Le = /* @__PURE__ */ c("bs-character-count", void 0, [
72
+ ]), Ee = /* @__PURE__ */ c("bs-character-count", void 0, [
73
73
  "charCount",
74
74
  "charMax"
75
- ]), Ee = /* @__PURE__ */ c("bs-chart-bar", void 0, [
75
+ ]), Ie = /* @__PURE__ */ c("bs-chart-bar", void 0, [
76
76
  "chartTitle",
77
77
  "data",
78
78
  "dataIdxLabels",
@@ -83,11 +83,11 @@ const X = "update:modelValue", F = "modelValue", ae = "routerLink", Y = "navMana
83
83
  "stacked",
84
84
  "xLabel",
85
85
  "yLabel"
86
- ]), Ie = /* @__PURE__ */ c("bs-chart-table", void 0, [
86
+ ]), Pe = /* @__PURE__ */ c("bs-chart-table", void 0, [
87
87
  "data",
88
88
  "dataIdxLabels",
89
89
  "tableTitle"
90
- ]), Pe = /* @__PURE__ */ c(
90
+ ]), qe = /* @__PURE__ */ c(
91
91
  "bs-checkbox",
92
92
  void 0,
93
93
  [
@@ -102,7 +102,7 @@ const X = "update:modelValue", F = "modelValue", ae = "routerLink", Y = "navMana
102
102
  ],
103
103
  "checked",
104
104
  "change"
105
- ), qe = /* @__PURE__ */ c("bs-dropdown", void 0, [
105
+ ), We = /* @__PURE__ */ c("bs-dropdown", void 0, [
106
106
  "dropdownId",
107
107
  "shown",
108
108
  "label",
@@ -111,7 +111,7 @@ const X = "update:modelValue", F = "modelValue", ae = "routerLink", Y = "navMana
111
111
  "variant",
112
112
  "dropdownchange",
113
113
  "close"
114
- ]), We = /* @__PURE__ */ c("bs-dropdown-option", void 0, [
114
+ ]), _e = /* @__PURE__ */ c("bs-dropdown-option", void 0, [
115
115
  "value",
116
116
  "variant",
117
117
  "selected",
@@ -121,7 +121,7 @@ const X = "update:modelValue", F = "modelValue", ae = "routerLink", Y = "navMana
121
121
  "dropdownId",
122
122
  "mousefocus",
123
123
  "optionselect"
124
- ]), _e = /* @__PURE__ */ c("bs-dropdown-options", void 0, [
124
+ ]), Oe = /* @__PURE__ */ c("bs-dropdown-options", void 0, [
125
125
  "dropdownId",
126
126
  "shown",
127
127
  "label",
@@ -129,7 +129,7 @@ const X = "update:modelValue", F = "modelValue", ae = "routerLink", Y = "navMana
129
129
  "variant",
130
130
  "dropdownchange",
131
131
  "close"
132
- ]), Oe = /* @__PURE__ */ c("bs-field-layout", void 0, [
132
+ ]), Ve = /* @__PURE__ */ c("bs-field-layout", void 0, [
133
133
  "charCount",
134
134
  "charMax",
135
135
  "disabled",
@@ -139,11 +139,11 @@ const X = "update:modelValue", F = "modelValue", ae = "routerLink", Y = "navMana
139
139
  "labelFor",
140
140
  "required",
141
141
  "hintId"
142
- ]), Ve = /* @__PURE__ */ c("bs-hint", void 0, [
142
+ ]), Me = /* @__PURE__ */ c("bs-hint", void 0, [
143
143
  "error",
144
144
  "hintId",
145
145
  "hints"
146
- ]), Me = /* @__PURE__ */ c(
146
+ ]), Ne = /* @__PURE__ */ c(
147
147
  "bs-input",
148
148
  void 0,
149
149
  [
@@ -158,12 +158,12 @@ const X = "update:modelValue", F = "modelValue", ae = "routerLink", Y = "navMana
158
158
  ],
159
159
  "value",
160
160
  "input"
161
- ), Ne = /* @__PURE__ */ c("bs-input-addon", void 0, [
161
+ ), ze = /* @__PURE__ */ c("bs-input-addon", void 0, [
162
162
  "disabled",
163
163
  "error",
164
164
  "multifocus",
165
165
  "variant"
166
- ]), ze = /* @__PURE__ */ c(
166
+ ]), De = /* @__PURE__ */ c(
167
167
  "bs-input-field",
168
168
  void 0,
169
169
  [
@@ -179,7 +179,7 @@ const X = "update:modelValue", F = "modelValue", ae = "routerLink", Y = "navMana
179
179
  ],
180
180
  "value",
181
181
  "input"
182
- ), De = /* @__PURE__ */ c("bs-input-search", void 0, [
182
+ ), Fe = /* @__PURE__ */ c("bs-input-search", void 0, [
183
183
  "disabled",
184
184
  "passAttrs",
185
185
  "placeholder",
@@ -187,7 +187,7 @@ const X = "update:modelValue", F = "modelValue", ae = "routerLink", Y = "navMana
187
187
  "hintId",
188
188
  "value",
189
189
  "onclear"
190
- ]), Fe = /* @__PURE__ */ c("bs-profile", void 0, [
190
+ ]), He = /* @__PURE__ */ c("bs-profile", void 0, [
191
191
  "layout",
192
192
  "href",
193
193
  "imageSrc",
@@ -197,21 +197,21 @@ const X = "update:modelValue", F = "modelValue", ae = "routerLink", Y = "navMana
197
197
  "company",
198
198
  "jobTitle",
199
199
  "email"
200
- ]), He = /* @__PURE__ */ c("bs-profile-details", void 0, [
200
+ ]), je = /* @__PURE__ */ c("bs-profile-details", void 0, [
201
201
  "profileName",
202
202
  "company",
203
203
  "jobTitle",
204
204
  "email"
205
- ]), je = /* @__PURE__ */ c("bs-profile-img", void 0, [
205
+ ]), Ge = /* @__PURE__ */ c("bs-profile-img", void 0, [
206
206
  "src",
207
207
  "size",
208
208
  "initials",
209
209
  "profileName"
210
- ]), xe = /* @__PURE__ */ c("bs-profile-layout", void 0, [
210
+ ]), Ue = /* @__PURE__ */ c("bs-profile-layout", void 0, [
211
211
  "layout",
212
212
  "href",
213
213
  "passAttrs"
214
- ]), Ge = /* @__PURE__ */ c(
214
+ ]), Xe = /* @__PURE__ */ c(
215
215
  "bs-radio",
216
216
  void 0,
217
217
  [
@@ -226,7 +226,7 @@ const X = "update:modelValue", F = "modelValue", ae = "routerLink", Y = "navMana
226
226
  ],
227
227
  "checked",
228
228
  "change"
229
- ), Ue = /* @__PURE__ */ c(
229
+ ), Ye = /* @__PURE__ */ c(
230
230
  "bs-select-field",
231
231
  void 0,
232
232
  [
@@ -242,7 +242,7 @@ const X = "update:modelValue", F = "modelValue", ae = "routerLink", Y = "navMana
242
242
  ],
243
243
  "value",
244
244
  "change"
245
- ), Xe = /* @__PURE__ */ c(
245
+ ), Ke = /* @__PURE__ */ c(
246
246
  "bs-switch",
247
247
  void 0,
248
248
  [
@@ -256,7 +256,7 @@ const X = "update:modelValue", F = "modelValue", ae = "routerLink", Y = "navMana
256
256
  ],
257
257
  "checked",
258
258
  "change"
259
- ), Ye = /* @__PURE__ */ c(
259
+ ), Ze = /* @__PURE__ */ c(
260
260
  "bs-textarea",
261
261
  void 0,
262
262
  [
@@ -270,7 +270,7 @@ const X = "update:modelValue", F = "modelValue", ae = "routerLink", Y = "navMana
270
270
  ],
271
271
  "value",
272
272
  "input"
273
- ), Ke = /* @__PURE__ */ c(
273
+ ), Je = /* @__PURE__ */ c(
274
274
  "bs-textarea-field",
275
275
  void 0,
276
276
  [
@@ -286,7 +286,7 @@ const X = "update:modelValue", F = "modelValue", ae = "routerLink", Y = "navMana
286
286
  ],
287
287
  "value",
288
288
  "input"
289
- ), Ze = /* @__PURE__ */ c("bs-toast", void 0, [
289
+ ), Qe = /* @__PURE__ */ c("bs-toast", void 0, [
290
290
  "toastId",
291
291
  "shown",
292
292
  "variant",
@@ -303,19 +303,19 @@ const X = "update:modelValue", F = "modelValue", ae = "routerLink", Y = "navMana
303
303
  "dismissAction",
304
304
  "dismiss",
305
305
  "actionclick"
306
- ]), Je = /* @__PURE__ */ c("bs-toaster", void 0), Qe = /* @__PURE__ */ c("bs-tooltip", void 0, [
306
+ ]), xe = /* @__PURE__ */ c("bs-toaster", void 0), et = /* @__PURE__ */ c("bs-tooltip", void 0, [
307
307
  "tooltipId",
308
308
  "content",
309
309
  "position"
310
310
  ]);
311
- function V(s) {
311
+ function M(s) {
312
312
  const { height: v, width: o } = s.value.getBoundingClientRect();
313
313
  s.value.style.minHeight = v + "px", s.value.style.minWidth = o + "px", s.value.replaceChildren();
314
314
  }
315
- function M(s) {
315
+ function N(s) {
316
316
  s.value.style.minHeight = null, s.value.style.minWidth = null;
317
317
  }
318
- const ne = ["controlled", "icon", "header-text", "heading-level", "open-item", "stacked"], ie = {
318
+ const ie = ["controlled", "icon", "header-text", "heading-level", "open-item", "stacked"], de = {
319
319
  __name: "BsAccordionServer",
320
320
  props: {
321
321
  controlled: { default: !1 },
@@ -332,21 +332,21 @@ const ne = ["controlled", "icon", "header-text", "heading-level", "open-item", "
332
332
  e.value || d >= 4 || (e.value = (p = (l = t.value) == null ? void 0 : l.querySelector) == null ? void 0 : p.call(l, "[data-slot]"), e.value || r.push(setTimeout(() => i(t, d + 1), 50)));
333
333
  };
334
334
  return C(() => i(n, 0)), L(e, (t) => {
335
- !t || o.value || (V(e), r.push(setTimeout(() => {
336
- M(e), nextTick(() => {
335
+ !t || o.value || (M(e), r.push(setTimeout(() => {
336
+ N(e), E(() => {
337
337
  a.value = customElements.get("bs-accordion") ? "hydrated superhydrated" : "superhydrated";
338
338
  });
339
339
  }, 100)), o.value = !0);
340
- }, { immediate: !0 }), E(() => r.forEach((t) => clearTimeout(t))), (t, d) => (u(), $(I, null, [
341
- e.value ? (u(), m(y(g), { key: 0 }, {
340
+ }, { immediate: !0 }), I(() => r.forEach((t) => clearTimeout(t))), (t, d) => (u(), $(P, null, [
341
+ e.value ? (u(), m(y(k), { key: 0 }, {
342
342
  default: B(() => [
343
- (u(), m(P, { to: e.value }, [
343
+ (u(), m(q, { to: e.value }, [
344
344
  h(t.$slots, "default")
345
345
  ], 8, ["to"]))
346
346
  ]),
347
347
  _: 3
348
- })) : q("", !0),
349
- W("bs-accordion", k({
348
+ })) : W("", !0),
349
+ _("bs-accordion", g({
350
350
  ref_key: "wcRef",
351
351
  ref: n,
352
352
  class: a.value,
@@ -359,16 +359,16 @@ const ne = ["controlled", "icon", "header-text", "heading-level", "open-item", "
359
359
  stacked: s.stacked,
360
360
  onToggled: d[0] || (d[0] = (l) => v("toggled", l.detail))
361
361
  }, t.$attrs), [
362
- _(y(g), null, {
362
+ O(y(k), null, {
363
363
  fallback: B(() => [
364
364
  h(t.$slots, "default")
365
365
  ]),
366
366
  _: 3
367
367
  })
368
- ], 16, ne)
368
+ ], 16, ie)
369
369
  ], 64));
370
370
  }
371
- }, de = "bs-accordion", et = {
371
+ }, ue = "bs-accordion", tt = {
372
372
  __name: "BsAccordion",
373
373
  props: {
374
374
  controlled: { default: !1 },
@@ -380,24 +380,24 @@ const ne = ["controlled", "icon", "header-text", "heading-level", "open-item", "
380
380
  },
381
381
  emits: ["toggled"],
382
382
  setup(s, { emit: v }) {
383
- const o = s, { data: e } = O(de, () => {
383
+ const o = s, { data: e } = V(ue, () => {
384
384
  if (process.server)
385
385
  return !0;
386
386
  });
387
- return (a, r) => y(e) ? (u(), m(ie, k({ key: 0 }, { ...o, ...a.$attrs }, {
387
+ return (a, r) => y(e) ? (u(), m(de, g({ key: 0 }, { ...o, ...a.$attrs }, {
388
388
  onToggled: r[0] || (r[0] = (n) => v("toggled", n.detail))
389
389
  }), {
390
390
  default: B(() => [
391
391
  h(a.$slots, "default")
392
392
  ]),
393
393
  _: 3
394
- }, 16)) : (u(), $("bs-accordion", k({ key: 1 }, { ...o, ...a.$attrs }, {
394
+ }, 16)) : (u(), $("bs-accordion", g({ key: 1 }, { ...o, ...a.$attrs }, {
395
395
  onToggled: r[1] || (r[1] = (n) => v("toggled", n.detail))
396
396
  }), [
397
397
  h(a.$slots, "default")
398
398
  ], 16));
399
399
  }
400
- }, ue = {
400
+ }, ce = {
401
401
  __name: "BsBannerServer",
402
402
  props: {},
403
403
  emits: ["dismiss"],
@@ -407,28 +407,28 @@ const ne = ["controlled", "icon", "header-text", "heading-level", "open-item", "
407
407
  e.value || d >= 4 || (e.value = (p = (l = t.value) == null ? void 0 : l.querySelector) == null ? void 0 : p.call(l, "[data-slot]"), e.value || r.push(setTimeout(() => i(t, d + 1), 50)));
408
408
  };
409
409
  return C(() => i(n, 0)), L(e, (t) => {
410
- !t || o.value || (V(e), r.push(setTimeout(() => {
411
- M(e), nextTick(() => {
410
+ !t || o.value || (M(e), r.push(setTimeout(() => {
411
+ N(e), E(() => {
412
412
  a.value = customElements.get("bs-banner") ? "hydrated superhydrated" : "superhydrated";
413
413
  });
414
414
  }, 100)), o.value = !0);
415
- }, { immediate: !0 }), E(() => r.forEach((t) => clearTimeout(t))), (t, d) => (u(), $(I, null, [
416
- e.value ? (u(), m(y(g), { key: 0 }, {
415
+ }, { immediate: !0 }), I(() => r.forEach((t) => clearTimeout(t))), (t, d) => (u(), $(P, null, [
416
+ e.value ? (u(), m(y(k), { key: 0 }, {
417
417
  default: B(() => [
418
- (u(), m(P, { to: e.value }, [
418
+ (u(), m(q, { to: e.value }, [
419
419
  h(t.$slots, "default")
420
420
  ], 8, ["to"]))
421
421
  ]),
422
422
  _: 3
423
- })) : q("", !0),
424
- W("bs-banner", k({
423
+ })) : W("", !0),
424
+ _("bs-banner", g({
425
425
  ref_key: "wcRef",
426
426
  ref: n,
427
427
  class: a.value,
428
428
  "data-bsds-ssr": "",
429
429
  onDismiss: d[0] || (d[0] = (l) => v("dismiss", l.detail))
430
430
  }, t.$attrs), [
431
- _(y(g), null, {
431
+ O(y(k), null, {
432
432
  fallback: B(() => [
433
433
  h(t.$slots, "default")
434
434
  ]),
@@ -437,29 +437,29 @@ const ne = ["controlled", "icon", "header-text", "heading-level", "open-item", "
437
437
  ], 16)
438
438
  ], 64));
439
439
  }
440
- }, ce = "bs-banner", tt = {
440
+ }, fe = "bs-banner", st = {
441
441
  __name: "BsBanner",
442
442
  props: {},
443
443
  emits: ["dismiss"],
444
444
  setup(s, { emit: v }) {
445
- const o = s, { data: e } = O(ce, () => {
445
+ const o = s, { data: e } = V(fe, () => {
446
446
  if (process.server)
447
447
  return !0;
448
448
  });
449
- return (a, r) => y(e) ? (u(), m(ue, k({ key: 0 }, { ...o, ...a.$attrs }, {
449
+ return (a, r) => y(e) ? (u(), m(ce, g({ key: 0 }, { ...o, ...a.$attrs }, {
450
450
  onDismiss: r[0] || (r[0] = (n) => v("dismiss", n.detail))
451
451
  }), {
452
452
  default: B(() => [
453
453
  h(a.$slots, "default")
454
454
  ]),
455
455
  _: 3
456
- }, 16)) : (u(), $("bs-banner", k({ key: 1 }, { ...o, ...a.$attrs }, {
456
+ }, 16)) : (u(), $("bs-banner", g({ key: 1 }, { ...o, ...a.$attrs }, {
457
457
  onDismiss: r[1] || (r[1] = (n) => v("dismiss", n.detail))
458
458
  }), [
459
459
  h(a.$slots, "default")
460
460
  ], 16));
461
461
  }
462
- }, fe = ["variant", "disabled", "ghost-btn", "href", "pass-attrs", "text-btn", "size"], ve = {
462
+ }, ve = ["variant", "disabled", "ghost-btn", "href", "pass-attrs", "text-btn", "size"], he = {
463
463
  __name: "BsButtonServer",
464
464
  props: {
465
465
  variant: {},
@@ -477,21 +477,21 @@ const ne = ["controlled", "icon", "header-text", "heading-level", "open-item", "
477
477
  e.value || d >= 4 || (e.value = (p = (l = t.value) == null ? void 0 : l.querySelector) == null ? void 0 : p.call(l, "[data-slot]"), e.value || r.push(setTimeout(() => i(t, d + 1), 50)));
478
478
  };
479
479
  return C(() => i(n, 0)), L(e, (t) => {
480
- !t || o.value || (V(e), r.push(setTimeout(() => {
481
- M(e), nextTick(() => {
480
+ !t || o.value || (M(e), r.push(setTimeout(() => {
481
+ N(e), E(() => {
482
482
  a.value = customElements.get("bs-button") ? "hydrated superhydrated" : "superhydrated";
483
483
  });
484
484
  }, 100)), o.value = !0);
485
- }, { immediate: !0 }), E(() => r.forEach((t) => clearTimeout(t))), (t, d) => (u(), $(I, null, [
486
- e.value ? (u(), m(y(g), { key: 0 }, {
485
+ }, { immediate: !0 }), I(() => r.forEach((t) => clearTimeout(t))), (t, d) => (u(), $(P, null, [
486
+ e.value ? (u(), m(y(k), { key: 0 }, {
487
487
  default: B(() => [
488
- (u(), m(P, { to: e.value }, [
488
+ (u(), m(q, { to: e.value }, [
489
489
  h(t.$slots, "default")
490
490
  ], 8, ["to"]))
491
491
  ]),
492
492
  _: 3
493
- })) : q("", !0),
494
- W("bs-button", k({
493
+ })) : W("", !0),
494
+ _("bs-button", g({
495
495
  ref_key: "wcRef",
496
496
  ref: n,
497
497
  class: a.value,
@@ -504,16 +504,16 @@ const ne = ["controlled", "icon", "header-text", "heading-level", "open-item", "
504
504
  "text-btn": s.textBtn,
505
505
  size: s.size
506
506
  }, t.$attrs), [
507
- _(y(g), null, {
507
+ O(y(k), null, {
508
508
  fallback: B(() => [
509
509
  h(t.$slots, "default")
510
510
  ]),
511
511
  _: 3
512
512
  })
513
- ], 16, fe)
513
+ ], 16, ve)
514
514
  ], 64));
515
515
  }
516
- }, he = "bs-button", st = {
516
+ }, pe = "bs-button", at = {
517
517
  __name: "BsButton",
518
518
  props: {
519
519
  variant: {},
@@ -526,20 +526,20 @@ const ne = ["controlled", "icon", "header-text", "heading-level", "open-item", "
526
526
  },
527
527
  emits: [],
528
528
  setup(s, { emit: v }) {
529
- const o = s, { data: e } = O(he, () => {
529
+ const o = s, { data: e } = V(pe, () => {
530
530
  if (process.server)
531
531
  return !0;
532
532
  });
533
- return (a, r) => y(e) ? (u(), m(ve, S(k({ key: 0 }, { ...o, ...a.$attrs })), {
533
+ return (a, r) => y(e) ? (u(), m(he, T(g({ key: 0 }, { ...o, ...a.$attrs })), {
534
534
  default: B(() => [
535
535
  h(a.$slots, "default")
536
536
  ]),
537
537
  _: 3
538
- }, 16)) : (u(), $("bs-button", S(k({ key: 1 }, { ...o, ...a.$attrs })), [
538
+ }, 16)) : (u(), $("bs-button", T(g({ key: 1 }, { ...o, ...a.$attrs })), [
539
539
  h(a.$slots, "default")
540
540
  ], 16));
541
541
  }
542
- }, pe = ["disabled", "for", "hide", "pass-attrs", "required"], be = {
542
+ }, be = ["disabled", "for", "hide", "pass-attrs", "required"], me = {
543
543
  __name: "BsLabelServer",
544
544
  props: {
545
545
  disabled: {},
@@ -555,21 +555,21 @@ const ne = ["controlled", "icon", "header-text", "heading-level", "open-item", "
555
555
  e.value || d >= 4 || (e.value = (p = (l = t.value) == null ? void 0 : l.querySelector) == null ? void 0 : p.call(l, "[data-slot]"), e.value || r.push(setTimeout(() => i(t, d + 1), 50)));
556
556
  };
557
557
  return C(() => i(n, 0)), L(e, (t) => {
558
- !t || o.value || (V(e), r.push(setTimeout(() => {
559
- M(e), nextTick(() => {
558
+ !t || o.value || (M(e), r.push(setTimeout(() => {
559
+ N(e), E(() => {
560
560
  a.value = customElements.get("bs-label") ? "hydrated superhydrated" : "superhydrated";
561
561
  });
562
562
  }, 100)), o.value = !0);
563
- }, { immediate: !0 }), E(() => r.forEach((t) => clearTimeout(t))), (t, d) => (u(), $(I, null, [
564
- e.value ? (u(), m(y(g), { key: 0 }, {
563
+ }, { immediate: !0 }), I(() => r.forEach((t) => clearTimeout(t))), (t, d) => (u(), $(P, null, [
564
+ e.value ? (u(), m(y(k), { key: 0 }, {
565
565
  default: B(() => [
566
- (u(), m(P, { to: e.value }, [
566
+ (u(), m(q, { to: e.value }, [
567
567
  h(t.$slots, "default")
568
568
  ], 8, ["to"]))
569
569
  ]),
570
570
  _: 3
571
- })) : q("", !0),
572
- W("bs-label", k({
571
+ })) : W("", !0),
572
+ _("bs-label", g({
573
573
  ref_key: "wcRef",
574
574
  ref: n,
575
575
  class: a.value,
@@ -580,16 +580,16 @@ const ne = ["controlled", "icon", "header-text", "heading-level", "open-item", "
580
580
  "pass-attrs": s.passAttrs,
581
581
  required: s.required
582
582
  }, t.$attrs), [
583
- _(y(g), null, {
583
+ O(y(k), null, {
584
584
  fallback: B(() => [
585
585
  h(t.$slots, "default")
586
586
  ]),
587
587
  _: 3
588
588
  })
589
- ], 16, pe)
589
+ ], 16, be)
590
590
  ], 64));
591
591
  }
592
- }, me = "bs-label", at = {
592
+ }, ye = "bs-label", rt = {
593
593
  __name: "BsLabel",
594
594
  props: {
595
595
  disabled: {},
@@ -600,20 +600,20 @@ const ne = ["controlled", "icon", "header-text", "heading-level", "open-item", "
600
600
  },
601
601
  emits: [],
602
602
  setup(s, { emit: v }) {
603
- const o = s, { data: e } = O(me, () => {
603
+ const o = s, { data: e } = V(ye, () => {
604
604
  if (process.server)
605
605
  return !0;
606
606
  });
607
- return (a, r) => y(e) ? (u(), m(be, S(k({ key: 0 }, { ...o, ...a.$attrs })), {
607
+ return (a, r) => y(e) ? (u(), m(me, T(g({ key: 0 }, { ...o, ...a.$attrs })), {
608
608
  default: B(() => [
609
609
  h(a.$slots, "default")
610
610
  ]),
611
611
  _: 3
612
- }, 16)) : (u(), $("bs-label", S(k({ key: 1 }, { ...o, ...a.$attrs })), [
612
+ }, 16)) : (u(), $("bs-label", T(g({ key: 1 }, { ...o, ...a.$attrs })), [
613
613
  h(a.$slots, "default")
614
614
  ], 16));
615
615
  }
616
- }, ye = ["variant", "status", "href", "active", "disabled", "pass-attrs"], Be = {
616
+ }, Be = ["variant", "status", "href", "active", "disabled", "pass-attrs"], ge = {
617
617
  __name: "BsPillServer",
618
618
  props: {
619
619
  variant: {},
@@ -630,21 +630,21 @@ const ne = ["controlled", "icon", "header-text", "heading-level", "open-item", "
630
630
  e.value || d >= 4 || (e.value = (p = (l = t.value) == null ? void 0 : l.querySelector) == null ? void 0 : p.call(l, "[data-slot]"), e.value || r.push(setTimeout(() => i(t, d + 1), 50)));
631
631
  };
632
632
  return C(() => i(n, 0)), L(e, (t) => {
633
- !t || o.value || (V(e), r.push(setTimeout(() => {
634
- M(e), nextTick(() => {
633
+ !t || o.value || (M(e), r.push(setTimeout(() => {
634
+ N(e), E(() => {
635
635
  a.value = customElements.get("bs-pill") ? "hydrated superhydrated" : "superhydrated";
636
636
  });
637
637
  }, 100)), o.value = !0);
638
- }, { immediate: !0 }), E(() => r.forEach((t) => clearTimeout(t))), (t, d) => (u(), $(I, null, [
639
- e.value ? (u(), m(y(g), { key: 0 }, {
638
+ }, { immediate: !0 }), I(() => r.forEach((t) => clearTimeout(t))), (t, d) => (u(), $(P, null, [
639
+ e.value ? (u(), m(y(k), { key: 0 }, {
640
640
  default: B(() => [
641
- (u(), m(P, { to: e.value }, [
641
+ (u(), m(q, { to: e.value }, [
642
642
  h(t.$slots, "default")
643
643
  ], 8, ["to"]))
644
644
  ]),
645
645
  _: 3
646
- })) : q("", !0),
647
- W("bs-pill", k({
646
+ })) : W("", !0),
647
+ _("bs-pill", g({
648
648
  ref_key: "wcRef",
649
649
  ref: n,
650
650
  class: a.value,
@@ -656,16 +656,16 @@ const ne = ["controlled", "icon", "header-text", "heading-level", "open-item", "
656
656
  disabled: s.disabled,
657
657
  "pass-attrs": s.passAttrs
658
658
  }, t.$attrs), [
659
- _(y(g), null, {
659
+ O(y(k), null, {
660
660
  fallback: B(() => [
661
661
  h(t.$slots, "default")
662
662
  ]),
663
663
  _: 3
664
664
  })
665
- ], 16, ye)
665
+ ], 16, Be)
666
666
  ], 64));
667
667
  }
668
- }, ke = "bs-pill", rt = {
668
+ }, ke = "bs-pill", ot = {
669
669
  __name: "BsPill",
670
670
  props: {
671
671
  variant: {},
@@ -677,20 +677,20 @@ const ne = ["controlled", "icon", "header-text", "heading-level", "open-item", "
677
677
  },
678
678
  emits: [],
679
679
  setup(s, { emit: v }) {
680
- const o = s, { data: e } = O(ke, () => {
680
+ const o = s, { data: e } = V(ke, () => {
681
681
  if (process.server)
682
682
  return !0;
683
683
  });
684
- return (a, r) => y(e) ? (u(), m(Be, S(k({ key: 0 }, { ...o, ...a.$attrs })), {
684
+ return (a, r) => y(e) ? (u(), m(ge, T(g({ key: 0 }, { ...o, ...a.$attrs })), {
685
685
  default: B(() => [
686
686
  h(a.$slots, "default")
687
687
  ]),
688
688
  _: 3
689
- }, 16)) : (u(), $("bs-pill", S(k({ key: 1 }, { ...o, ...a.$attrs })), [
689
+ }, 16)) : (u(), $("bs-pill", T(g({ key: 1 }, { ...o, ...a.$attrs })), [
690
690
  h(a.$slots, "default")
691
691
  ], 16));
692
692
  }
693
- }, ge = ["disabled", "required", "error", "hint-id", "value", "pass-attrs"], $e = {
693
+ }, $e = ["disabled", "required", "error", "hint-id", "value", "pass-attrs"], Se = {
694
694
  __name: "BsSelectServer",
695
695
  props: {
696
696
  disabled: { default: !1 },
@@ -707,21 +707,21 @@ const ne = ["controlled", "icon", "header-text", "heading-level", "open-item", "
707
707
  e.value || d >= 4 || (e.value = (p = (l = t.value) == null ? void 0 : l.querySelector) == null ? void 0 : p.call(l, "[data-slot]"), e.value || r.push(setTimeout(() => i(t, d + 1), 50)));
708
708
  };
709
709
  return C(() => i(n, 0)), L(e, (t) => {
710
- !t || o.value || (V(e), r.push(setTimeout(() => {
711
- M(e), nextTick(() => {
710
+ !t || o.value || (M(e), r.push(setTimeout(() => {
711
+ N(e), E(() => {
712
712
  a.value = customElements.get("bs-select") ? "hydrated superhydrated" : "superhydrated";
713
713
  });
714
714
  }, 100)), o.value = !0);
715
- }, { immediate: !0 }), E(() => r.forEach((t) => clearTimeout(t))), (t, d) => (u(), $(I, null, [
716
- e.value ? (u(), m(y(g), { key: 0 }, {
715
+ }, { immediate: !0 }), I(() => r.forEach((t) => clearTimeout(t))), (t, d) => (u(), $(P, null, [
716
+ e.value ? (u(), m(y(k), { key: 0 }, {
717
717
  default: B(() => [
718
- (u(), m(P, { to: e.value }, [
718
+ (u(), m(q, { to: e.value }, [
719
719
  h(t.$slots, "default")
720
720
  ], 8, ["to"]))
721
721
  ]),
722
722
  _: 3
723
- })) : q("", !0),
724
- W("bs-select", k({
723
+ })) : W("", !0),
724
+ _("bs-select", g({
725
725
  ref_key: "wcRef",
726
726
  ref: n,
727
727
  class: a.value,
@@ -733,16 +733,16 @@ const ne = ["controlled", "icon", "header-text", "heading-level", "open-item", "
733
733
  value: s.value,
734
734
  "pass-attrs": s.passAttrs
735
735
  }, t.$attrs), [
736
- _(y(g), null, {
736
+ O(y(k), null, {
737
737
  fallback: B(() => [
738
738
  h(t.$slots, "default")
739
739
  ]),
740
740
  _: 3
741
741
  })
742
- ], 16, ge)
742
+ ], 16, $e)
743
743
  ], 64));
744
744
  }
745
- }, Te = "bs-select", ot = {
745
+ }, Te = "bs-select", lt = {
746
746
  __name: "BsSelect",
747
747
  props: {
748
748
  disabled: { default: !1 },
@@ -754,57 +754,57 @@ const ne = ["controlled", "icon", "header-text", "heading-level", "open-item", "
754
754
  },
755
755
  emits: [],
756
756
  setup(s, { emit: v }) {
757
- const o = s, { data: e } = O(Te, () => {
757
+ const o = s, { data: e } = V(Te, () => {
758
758
  if (process.server)
759
759
  return !0;
760
760
  });
761
- return (a, r) => y(e) ? (u(), m($e, S(k({ key: 0 }, { ...o, ...a.$attrs })), {
761
+ return (a, r) => y(e) ? (u(), m(Se, T(g({ key: 0 }, { ...o, ...a.$attrs })), {
762
762
  default: B(() => [
763
763
  h(a.$slots, "default")
764
764
  ]),
765
765
  _: 3
766
- }, 16)) : (u(), $("bs-select", S(k({ key: 1 }, { ...o, ...a.$attrs })), [
766
+ }, 16)) : (u(), $("bs-select", T(g({ key: 1 }, { ...o, ...a.$attrs })), [
767
767
  h(a.$slots, "default")
768
768
  ], 16));
769
769
  }
770
770
  };
771
771
  export {
772
- et as BsAccordion,
773
- ie as BsAccordionServer,
774
- Ce as BsBadge,
775
- tt as BsBanner,
776
- ue as BsBannerServer,
777
- st as BsButton,
778
- ve as BsButtonServer,
779
- Le as BsCharacterCount,
780
- Ee as BsChartBar,
781
- Ie as BsChartTable,
782
- Pe as BsCheckbox,
783
- qe as BsDropdown,
784
- We as BsDropdownOption,
785
- _e as BsDropdownOptions,
786
- Oe as BsFieldLayout,
787
- Ve as BsHint,
788
- Me as BsInput,
789
- Ne as BsInputAddon,
790
- ze as BsInputField,
791
- De as BsInputSearch,
792
- at as BsLabel,
793
- be as BsLabelServer,
794
- rt as BsPill,
795
- Be as BsPillServer,
796
- Fe as BsProfile,
797
- He as BsProfileDetails,
798
- je as BsProfileImg,
799
- xe as BsProfileLayout,
800
- Ge as BsRadio,
801
- ot as BsSelect,
802
- Ue as BsSelectField,
803
- $e as BsSelectServer,
804
- Xe as BsSwitch,
805
- Ye as BsTextarea,
806
- Ke as BsTextareaField,
807
- Ze as BsToast,
808
- Je as BsToaster,
809
- Qe as BsTooltip
772
+ tt as BsAccordion,
773
+ de as BsAccordionServer,
774
+ Le as BsBadge,
775
+ st as BsBanner,
776
+ ce as BsBannerServer,
777
+ at as BsButton,
778
+ he as BsButtonServer,
779
+ Ee as BsCharacterCount,
780
+ Ie as BsChartBar,
781
+ Pe as BsChartTable,
782
+ qe as BsCheckbox,
783
+ We as BsDropdown,
784
+ _e as BsDropdownOption,
785
+ Oe as BsDropdownOptions,
786
+ Ve as BsFieldLayout,
787
+ Me as BsHint,
788
+ Ne as BsInput,
789
+ ze as BsInputAddon,
790
+ De as BsInputField,
791
+ Fe as BsInputSearch,
792
+ rt as BsLabel,
793
+ me as BsLabelServer,
794
+ ot as BsPill,
795
+ ge as BsPillServer,
796
+ He as BsProfile,
797
+ je as BsProfileDetails,
798
+ Ge as BsProfileImg,
799
+ Ue as BsProfileLayout,
800
+ Xe as BsRadio,
801
+ lt as BsSelect,
802
+ Ye as BsSelectField,
803
+ Se as BsSelectServer,
804
+ Ke as BsSwitch,
805
+ Ze as BsTextarea,
806
+ Je as BsTextareaField,
807
+ Qe as BsToast,
808
+ xe as BsToaster,
809
+ et as BsTooltip
810
810
  };
@@ -1 +1 @@
1
- (function(o,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):(o=typeof globalThis<"u"?globalThis:o||self,e(o.BsdsComponents={},o.Vue,o._imports,o._components))})(this,function(o,e,y,B){"use strict";const E="update:modelValue",$="modelValue",U="routerLink",R="navManager",j="router",H="aria",g=Symbol(),A={default:g},I=s=>(s==null?void 0:s.split(" "))||[],G=(s,h,n=[])=>{var t;return[...Array.from(((t=s.value)==null?void 0:t.classList)||[]),...n].filter((a,l,d)=>!h.has(a)&&d.indexOf(a)===l)},u=(s,h,n=[],t,a,l)=>{h!==void 0&&h();const d=e.defineComponent((c,{attrs:r,slots:f,emit:i})=>{var M;let p=c[t];const D=e.ref(),z=new Set(I(r.class)),qe=k=>{k.el&&(Array.isArray(a)?a:[a]).forEach(b=>{k.el.addEventListener(b.toLowerCase(),m=>{p=(m==null?void 0:m.target)[t],i(E,p),l&&i(l,m)})})},P=e.getCurrentInstance(),F=((M=P==null?void 0:P.appContext)==null?void 0:M.provides[R])?e.inject(R):void 0,Ne=k=>{const{routerLink:T}=c;if(T!==g)if(F!==void 0){let b={event:k};for(const m in c){const C=c[m];c.hasOwnProperty(m)&&m.startsWith(j)&&C!==g&&(b[m]=C)}F.navigate(b)}else console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.")};return()=>{p=c[t],I(r.class).forEach(m=>{z.add(m)});const k=c.onClick,T=m=>{k!==void 0&&k(m),m.defaultPrevented||Ne(m)};let b={ref:D,class:G(D,z),onClick:T,onVnodeBeforeMount:a?qe:void 0};for(const m in c){const C=c[m];(c.hasOwnProperty(m)&&C!==g||m.startsWith(H))&&(b[m]=C)}return t&&(c[$]!==g?b={...b,[t]:c[$]}:p!==g&&(b={...b,[t]:p})),e.h(s,b,f.default&&f.default())}});return typeof d!="function"&&(d.name=s,d.props={[U]:A},n.forEach(c=>{d.props[c]=A}),t&&(d.props[$]=A,d.emits=[E,l])),d},X=u("bs-badge",void 0,["color","count","countMax","dot","label","position","showZero"]),Y=u("bs-character-count",void 0,["charCount","charMax"]),_=u("bs-chart-bar",void 0,["chartTitle","data","dataIdxLabels","showLegend","showTooltips","showXGrid","showYGrid","stacked","xLabel","yLabel"]),K=u("bs-chart-table",void 0,["data","dataIdxLabels","tableTitle"]),Z=u("bs-checkbox",void 0,["label","checked","checkedPartially","disabled","error","passAttrs","required","size"],"checked","change"),J=u("bs-dropdown",void 0,["dropdownId","shown","label","position","justify","variant","dropdownchange","close"]),Q=u("bs-dropdown-option",void 0,["value","variant","selected","shown","focused","index","dropdownId","mousefocus","optionselect"]),x=u("bs-dropdown-options",void 0,["dropdownId","shown","label","position","variant","dropdownchange","close"]),v=u("bs-field-layout",void 0,["charCount","charMax","disabled","error","hints","label","labelFor","required","hintId"]),ee=u("bs-hint",void 0,["error","hintId","hints"]),te=u("bs-input",void 0,["disabled","error","passAttrs","placeholder","required","type","value","hintId"],"value","input"),re=u("bs-input-addon",void 0,["disabled","error","multifocus","variant"]),se=u("bs-input-field",void 0,["disabled","error","hints","label","passAttrs","placeholder","required","type","value"],"value","input"),ae=u("bs-input-search",void 0,["disabled","passAttrs","placeholder","ariaLabel","hintId","value","onclear"]),oe=u("bs-profile",void 0,["layout","href","imageSrc","imageSize","initials","profileName","company","jobTitle","email"]),le=u("bs-profile-details",void 0,["profileName","company","jobTitle","email"]),ne=u("bs-profile-img",void 0,["src","size","initials","profileName"]),ie=u("bs-profile-layout",void 0,["layout","href","passAttrs"]),de=u("bs-radio",void 0,["label","checked","disabled","error","passAttrs","required","size","value"],"checked","change"),ce=u("bs-select-field",void 0,["disabled","error","required","label","hints","placeholder","value","passAttrs","data"],"value","change"),fe=u("bs-switch",void 0,["checked","disabled","innerOnLabel","innerOffLabel","label","passAttrs","size"],"checked","change"),ue=u("bs-textarea",void 0,["disabled","error","passAttrs","placeholder","required","value","hintId"],"value","input"),he=u("bs-textarea-field",void 0,["charMax","disabled","error","hints","label","placeholder","required","value","passAttrs"],"value","input"),pe=u("bs-toast",void 0,["toastId","shown","variant","toastTitle","content","stacked","duration","primaryAction","primaryActionType","secondaryAction","secondaryActionType","tertiaryAction","tertiaryActionType","dismissAction","dismiss","actionclick"]),me=u("bs-toaster",void 0),Be=u("bs-tooltip",void 0,["tooltipId","content","position"]);function S(s){const{height:h,width:n}=s.value.getBoundingClientRect();s.value.style.minHeight=h+"px",s.value.style.minWidth=n+"px",s.value.replaceChildren()}function w(s){s.value.style.minHeight=null,s.value.style.minWidth=null}const be=["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(s,{emit:h}){const n=e.ref(!1),t=e.ref(null),a=e.ref(""),l=e.reactive([]),d=e.ref(null),c=(r,f=0)=>{var i,p;t.value||f>=4||(t.value=(p=(i=r.value)==null?void 0:i.querySelector)==null?void 0:p.call(i,"[data-slot]"),t.value||l.push(setTimeout(()=>c(r,f+1),50)))};return e.onMounted(()=>c(d,0)),e.watch(t,r=>{!r||n.value||(S(t),l.push(setTimeout(()=>{w(t),nextTick(()=>{a.value=customElements.get("bs-accordion")?"hydrated superhydrated":"superhydrated"})},100)),n.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>l.forEach(r=>clearTimeout(r))),(r,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.value?(e.openBlock(),e.createBlock(e.unref(B.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:t.value},[e.renderSlot(r.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-accordion",e.mergeProps({ref_key:"wcRef",ref:d,class:a.value,"data-bsds-ssr":"",controlled:s.controlled,icon:s.icon,"header-text":s.headerText,"heading-level":s.headingLevel,"open-item":s.openItem,stacked:s.stacked,onToggled:f[0]||(f[0]=i=>h("toggled",i.detail))},r.$attrs),[e.createVNode(e.unref(B.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3})],16,be)],64))}},ke="bs-accordion",ye={__name:"BsAccordion",props:{controlled:{default:!1},icon:{},headerText:{},headingLevel:{},openItem:{default:!1},stacked:{default:!1}},emits:["toggled"],setup(s,{emit:h}){const n=s,{data:t}=y.useAsyncData(ke,()=>{if(process.server)return!0});return(a,l)=>e.unref(t)?(e.openBlock(),e.createBlock(L,e.mergeProps({key:0},{...n,...a.$attrs},{onToggled:l[0]||(l[0]=d=>h("toggled",d.detail))}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16)):(e.openBlock(),e.createElementBlock("bs-accordion",e.mergeProps({key:1},{...n,...a.$attrs},{onToggled:l[1]||(l[1]=d=>h("toggled",d.detail))}),[e.renderSlot(a.$slots,"default")],16))}},V={__name:"BsBannerServer",props:{},emits:["dismiss"],setup(s,{emit:h}){const n=e.ref(!1),t=e.ref(null),a=e.ref(""),l=e.reactive([]),d=e.ref(null),c=(r,f=0)=>{var i,p;t.value||f>=4||(t.value=(p=(i=r.value)==null?void 0:i.querySelector)==null?void 0:p.call(i,"[data-slot]"),t.value||l.push(setTimeout(()=>c(r,f+1),50)))};return e.onMounted(()=>c(d,0)),e.watch(t,r=>{!r||n.value||(S(t),l.push(setTimeout(()=>{w(t),nextTick(()=>{a.value=customElements.get("bs-banner")?"hydrated superhydrated":"superhydrated"})},100)),n.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>l.forEach(r=>clearTimeout(r))),(r,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.value?(e.openBlock(),e.createBlock(e.unref(B.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:t.value},[e.renderSlot(r.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-banner",e.mergeProps({ref_key:"wcRef",ref:d,class:a.value,"data-bsds-ssr":"",onDismiss:f[0]||(f[0]=i=>h("dismiss",i.detail))},r.$attrs),[e.createVNode(e.unref(B.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3})],16)],64))}},ge="bs-banner",Se={__name:"BsBanner",props:{},emits:["dismiss"],setup(s,{emit:h}){const n=s,{data:t}=y.useAsyncData(ge,()=>{if(process.server)return!0});return(a,l)=>e.unref(t)?(e.openBlock(),e.createBlock(V,e.mergeProps({key:0},{...n,...a.$attrs},{onDismiss:l[0]||(l[0]=d=>h("dismiss",d.detail))}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16)):(e.openBlock(),e.createElementBlock("bs-banner",e.mergeProps({key:1},{...n,...a.$attrs},{onDismiss:l[1]||(l[1]=d=>h("dismiss",d.detail))}),[e.renderSlot(a.$slots,"default")],16))}},we=["variant","disabled","ghost-btn","href","pass-attrs","text-btn","size"],O={__name:"BsButtonServer",props:{variant:{},disabled:{},ghostBtn:{},href:{},passAttrs:{default:""},textBtn:{},size:{}},emits:[],setup(s,{emit:h}){const n=e.ref(!1),t=e.ref(null),a=e.ref(""),l=e.reactive([]),d=e.ref(null),c=(r,f=0)=>{var i,p;t.value||f>=4||(t.value=(p=(i=r.value)==null?void 0:i.querySelector)==null?void 0:p.call(i,"[data-slot]"),t.value||l.push(setTimeout(()=>c(r,f+1),50)))};return e.onMounted(()=>c(d,0)),e.watch(t,r=>{!r||n.value||(S(t),l.push(setTimeout(()=>{w(t),nextTick(()=>{a.value=customElements.get("bs-button")?"hydrated superhydrated":"superhydrated"})},100)),n.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>l.forEach(r=>clearTimeout(r))),(r,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.value?(e.openBlock(),e.createBlock(e.unref(B.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:t.value},[e.renderSlot(r.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-button",e.mergeProps({ref_key:"wcRef",ref:d,class:a.value,"data-bsds-ssr":"",variant:s.variant,disabled:s.disabled,"ghost-btn":s.ghostBtn,href:s.href,"pass-attrs":s.passAttrs,"text-btn":s.textBtn,size:s.size},r.$attrs),[e.createVNode(e.unref(B.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3})],16,we)],64))}},Ce="bs-button",Te={__name:"BsButton",props:{variant:{},disabled:{},ghostBtn:{},href:{},passAttrs:{default:""},textBtn:{},size:{}},emits:[],setup(s,{emit:h}){const n=s,{data:t}=y.useAsyncData(Ce,()=>{if(process.server)return!0});return(a,l)=>e.unref(t)?(e.openBlock(),e.createBlock(O,e.normalizeProps(e.mergeProps({key:0},{...n,...a.$attrs})),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16)):(e.openBlock(),e.createElementBlock("bs-button",e.normalizeProps(e.mergeProps({key:1},{...n,...a.$attrs})),[e.renderSlot(a.$slots,"default")],16))}},$e=["disabled","for","hide","pass-attrs","required"],q={__name:"BsLabelServer",props:{disabled:{},for:{},hide:{},passAttrs:{default:""},required:{}},emits:[],setup(s,{emit:h}){const n=e.ref(!1),t=e.ref(null),a=e.ref(""),l=e.reactive([]),d=e.ref(null),c=(r,f=0)=>{var i,p;t.value||f>=4||(t.value=(p=(i=r.value)==null?void 0:i.querySelector)==null?void 0:p.call(i,"[data-slot]"),t.value||l.push(setTimeout(()=>c(r,f+1),50)))};return e.onMounted(()=>c(d,0)),e.watch(t,r=>{!r||n.value||(S(t),l.push(setTimeout(()=>{w(t),nextTick(()=>{a.value=customElements.get("bs-label")?"hydrated superhydrated":"superhydrated"})},100)),n.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>l.forEach(r=>clearTimeout(r))),(r,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.value?(e.openBlock(),e.createBlock(e.unref(B.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:t.value},[e.renderSlot(r.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-label",e.mergeProps({ref_key:"wcRef",ref:d,class:a.value,"data-bsds-ssr":"",disabled:s.disabled,for:s.for,hide:s.hide,"pass-attrs":s.passAttrs,required:s.required},r.$attrs),[e.createVNode(e.unref(B.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3})],16,$e)],64))}},Ae="bs-label",Pe={__name:"BsLabel",props:{disabled:{},for:{},hide:{},passAttrs:{default:""},required:{}},emits:[],setup(s,{emit:h}){const n=s,{data:t}=y.useAsyncData(Ae,()=>{if(process.server)return!0});return(a,l)=>e.unref(t)?(e.openBlock(),e.createBlock(q,e.normalizeProps(e.mergeProps({key:0},{...n,...a.$attrs})),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16)):(e.openBlock(),e.createElementBlock("bs-label",e.normalizeProps(e.mergeProps({key:1},{...n,...a.$attrs})),[e.renderSlot(a.$slots,"default")],16))}},Ee=["variant","status","href","active","disabled","pass-attrs"],N={__name:"BsPillServer",props:{variant:{},status:{},href:{},active:{},disabled:{},passAttrs:{default:""}},emits:[],setup(s,{emit:h}){const n=e.ref(!1),t=e.ref(null),a=e.ref(""),l=e.reactive([]),d=e.ref(null),c=(r,f=0)=>{var i,p;t.value||f>=4||(t.value=(p=(i=r.value)==null?void 0:i.querySelector)==null?void 0:p.call(i,"[data-slot]"),t.value||l.push(setTimeout(()=>c(r,f+1),50)))};return e.onMounted(()=>c(d,0)),e.watch(t,r=>{!r||n.value||(S(t),l.push(setTimeout(()=>{w(t),nextTick(()=>{a.value=customElements.get("bs-pill")?"hydrated superhydrated":"superhydrated"})},100)),n.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>l.forEach(r=>clearTimeout(r))),(r,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.value?(e.openBlock(),e.createBlock(e.unref(B.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:t.value},[e.renderSlot(r.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-pill",e.mergeProps({ref_key:"wcRef",ref:d,class:a.value,"data-bsds-ssr":"",variant:s.variant,status:s.status,href:s.href,active:s.active,disabled:s.disabled,"pass-attrs":s.passAttrs},r.$attrs),[e.createVNode(e.unref(B.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3})],16,Ee)],64))}},Re="bs-pill",Ie={__name:"BsPill",props:{variant:{},status:{},href:{},active:{},disabled:{},passAttrs:{default:""}},emits:[],setup(s,{emit:h}){const n=s,{data:t}=y.useAsyncData(Re,()=>{if(process.server)return!0});return(a,l)=>e.unref(t)?(e.openBlock(),e.createBlock(N,e.normalizeProps(e.mergeProps({key:0},{...n,...a.$attrs})),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16)):(e.openBlock(),e.createElementBlock("bs-pill",e.normalizeProps(e.mergeProps({key:1},{...n,...a.$attrs})),[e.renderSlot(a.$slots,"default")],16))}},Le=["disabled","required","error","hint-id","value","pass-attrs"],W={__name:"BsSelectServer",props:{disabled:{default:!1},required:{},error:{},hintId:{},value:{},passAttrs:{default:""}},emits:[],setup(s,{emit:h}){const n=e.ref(!1),t=e.ref(null),a=e.ref(""),l=e.reactive([]),d=e.ref(null),c=(r,f=0)=>{var i,p;t.value||f>=4||(t.value=(p=(i=r.value)==null?void 0:i.querySelector)==null?void 0:p.call(i,"[data-slot]"),t.value||l.push(setTimeout(()=>c(r,f+1),50)))};return e.onMounted(()=>c(d,0)),e.watch(t,r=>{!r||n.value||(S(t),l.push(setTimeout(()=>{w(t),nextTick(()=>{a.value=customElements.get("bs-select")?"hydrated superhydrated":"superhydrated"})},100)),n.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>l.forEach(r=>clearTimeout(r))),(r,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.value?(e.openBlock(),e.createBlock(e.unref(B.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:t.value},[e.renderSlot(r.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-select",e.mergeProps({ref_key:"wcRef",ref:d,class:a.value,"data-bsds-ssr":"",disabled:s.disabled,required:s.required,error:s.error,"hint-id":s.hintId,value:s.value,"pass-attrs":s.passAttrs},r.$attrs),[e.createVNode(e.unref(B.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3})],16,Le)],64))}},Ve="bs-select",Oe={__name:"BsSelect",props:{disabled:{default:!1},required:{},error:{},hintId:{},value:{},passAttrs:{default:""}},emits:[],setup(s,{emit:h}){const n=s,{data:t}=y.useAsyncData(Ve,()=>{if(process.server)return!0});return(a,l)=>e.unref(t)?(e.openBlock(),e.createBlock(W,e.normalizeProps(e.mergeProps({key:0},{...n,...a.$attrs})),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16)):(e.openBlock(),e.createElementBlock("bs-select",e.normalizeProps(e.mergeProps({key:1},{...n,...a.$attrs})),[e.renderSlot(a.$slots,"default")],16))}};o.BsAccordion=ye,o.BsAccordionServer=L,o.BsBadge=X,o.BsBanner=Se,o.BsBannerServer=V,o.BsButton=Te,o.BsButtonServer=O,o.BsCharacterCount=Y,o.BsChartBar=_,o.BsChartTable=K,o.BsCheckbox=Z,o.BsDropdown=J,o.BsDropdownOption=Q,o.BsDropdownOptions=x,o.BsFieldLayout=v,o.BsHint=ee,o.BsInput=te,o.BsInputAddon=re,o.BsInputField=se,o.BsInputSearch=ae,o.BsLabel=Pe,o.BsLabelServer=q,o.BsPill=Ie,o.BsPillServer=N,o.BsProfile=oe,o.BsProfileDetails=le,o.BsProfileImg=ne,o.BsProfileLayout=ie,o.BsRadio=de,o.BsSelect=Oe,o.BsSelectField=ce,o.BsSelectServer=W,o.BsSwitch=fe,o.BsTextarea=ue,o.BsTextareaField=he,o.BsToast=pe,o.BsToaster=me,o.BsTooltip=Be,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
1
+ (function(o,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):(o=typeof globalThis<"u"?globalThis:o||self,e(o.BsdsComponents={},o.Vue,o._imports,o._components))})(this,function(o,e,y,B){"use strict";const E="update:modelValue",$="modelValue",U="routerLink",R="navManager",j="router",H="aria",g=Symbol(),A={default:g},I=s=>(s==null?void 0:s.split(" "))||[],G=(s,h,n=[])=>{var t;return[...Array.from(((t=s.value)==null?void 0:t.classList)||[]),...n].filter((a,l,d)=>!h.has(a)&&d.indexOf(a)===l)},u=(s,h,n=[],t,a,l)=>{h!==void 0&&h();const d=e.defineComponent((c,{attrs:r,slots:f,emit:i})=>{var M;let p=c[t];const D=e.ref(),z=new Set(I(r.class)),qe=k=>{k.el&&(Array.isArray(a)?a:[a]).forEach(b=>{k.el.addEventListener(b.toLowerCase(),m=>{p=(m==null?void 0:m.target)[t],i(E,p),l&&i(l,m)})})},P=e.getCurrentInstance(),F=((M=P==null?void 0:P.appContext)==null?void 0:M.provides[R])?e.inject(R):void 0,Ne=k=>{const{routerLink:T}=c;if(T!==g)if(F!==void 0){let b={event:k};for(const m in c){const C=c[m];c.hasOwnProperty(m)&&m.startsWith(j)&&C!==g&&(b[m]=C)}F.navigate(b)}else console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.")};return()=>{p=c[t],I(r.class).forEach(m=>{z.add(m)});const k=c.onClick,T=m=>{k!==void 0&&k(m),m.defaultPrevented||Ne(m)};let b={ref:D,class:G(D,z),onClick:T,onVnodeBeforeMount:a?qe:void 0};for(const m in c){const C=c[m];(c.hasOwnProperty(m)&&C!==g||m.startsWith(H))&&(b[m]=C)}return t&&(c[$]!==g?b={...b,[t]:c[$]}:p!==g&&(b={...b,[t]:p})),e.h(s,b,f.default&&f.default())}});return typeof d!="function"&&(d.name=s,d.props={[U]:A},n.forEach(c=>{d.props[c]=A}),t&&(d.props[$]=A,d.emits=[E,l])),d},X=u("bs-badge",void 0,["color","count","countMax","dot","label","position","showZero"]),Y=u("bs-character-count",void 0,["charCount","charMax"]),_=u("bs-chart-bar",void 0,["chartTitle","data","dataIdxLabels","showLegend","showTooltips","showXGrid","showYGrid","stacked","xLabel","yLabel"]),K=u("bs-chart-table",void 0,["data","dataIdxLabels","tableTitle"]),Z=u("bs-checkbox",void 0,["label","checked","checkedPartially","disabled","error","passAttrs","required","size"],"checked","change"),J=u("bs-dropdown",void 0,["dropdownId","shown","label","position","justify","variant","dropdownchange","close"]),Q=u("bs-dropdown-option",void 0,["value","variant","selected","shown","focused","index","dropdownId","mousefocus","optionselect"]),x=u("bs-dropdown-options",void 0,["dropdownId","shown","label","position","variant","dropdownchange","close"]),v=u("bs-field-layout",void 0,["charCount","charMax","disabled","error","hints","label","labelFor","required","hintId"]),ee=u("bs-hint",void 0,["error","hintId","hints"]),te=u("bs-input",void 0,["disabled","error","passAttrs","placeholder","required","type","value","hintId"],"value","input"),re=u("bs-input-addon",void 0,["disabled","error","multifocus","variant"]),se=u("bs-input-field",void 0,["disabled","error","hints","label","passAttrs","placeholder","required","type","value"],"value","input"),ae=u("bs-input-search",void 0,["disabled","passAttrs","placeholder","ariaLabel","hintId","value","onclear"]),oe=u("bs-profile",void 0,["layout","href","imageSrc","imageSize","initials","profileName","company","jobTitle","email"]),le=u("bs-profile-details",void 0,["profileName","company","jobTitle","email"]),ne=u("bs-profile-img",void 0,["src","size","initials","profileName"]),ie=u("bs-profile-layout",void 0,["layout","href","passAttrs"]),de=u("bs-radio",void 0,["label","checked","disabled","error","passAttrs","required","size","value"],"checked","change"),ce=u("bs-select-field",void 0,["disabled","error","required","label","hints","placeholder","value","passAttrs","data"],"value","change"),fe=u("bs-switch",void 0,["checked","disabled","innerOnLabel","innerOffLabel","label","passAttrs","size"],"checked","change"),ue=u("bs-textarea",void 0,["disabled","error","passAttrs","placeholder","required","value","hintId"],"value","input"),he=u("bs-textarea-field",void 0,["charMax","disabled","error","hints","label","placeholder","required","value","passAttrs"],"value","input"),pe=u("bs-toast",void 0,["toastId","shown","variant","toastTitle","content","stacked","duration","primaryAction","primaryActionType","secondaryAction","secondaryActionType","tertiaryAction","tertiaryActionType","dismissAction","dismiss","actionclick"]),me=u("bs-toaster",void 0),Be=u("bs-tooltip",void 0,["tooltipId","content","position"]);function S(s){const{height:h,width:n}=s.value.getBoundingClientRect();s.value.style.minHeight=h+"px",s.value.style.minWidth=n+"px",s.value.replaceChildren()}function w(s){s.value.style.minHeight=null,s.value.style.minWidth=null}const be=["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(s,{emit:h}){const n=e.ref(!1),t=e.ref(null),a=e.ref(""),l=e.reactive([]),d=e.ref(null),c=(r,f=0)=>{var i,p;t.value||f>=4||(t.value=(p=(i=r.value)==null?void 0:i.querySelector)==null?void 0:p.call(i,"[data-slot]"),t.value||l.push(setTimeout(()=>c(r,f+1),50)))};return e.onMounted(()=>c(d,0)),e.watch(t,r=>{!r||n.value||(S(t),l.push(setTimeout(()=>{w(t),e.nextTick(()=>{a.value=customElements.get("bs-accordion")?"hydrated superhydrated":"superhydrated"})},100)),n.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>l.forEach(r=>clearTimeout(r))),(r,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.value?(e.openBlock(),e.createBlock(e.unref(B.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:t.value},[e.renderSlot(r.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-accordion",e.mergeProps({ref_key:"wcRef",ref:d,class:a.value,"data-bsds-ssr":"",controlled:s.controlled,icon:s.icon,"header-text":s.headerText,"heading-level":s.headingLevel,"open-item":s.openItem,stacked:s.stacked,onToggled:f[0]||(f[0]=i=>h("toggled",i.detail))},r.$attrs),[e.createVNode(e.unref(B.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3})],16,be)],64))}},ke="bs-accordion",ye={__name:"BsAccordion",props:{controlled:{default:!1},icon:{},headerText:{},headingLevel:{},openItem:{default:!1},stacked:{default:!1}},emits:["toggled"],setup(s,{emit:h}){const n=s,{data:t}=y.useAsyncData(ke,()=>{if(process.server)return!0});return(a,l)=>e.unref(t)?(e.openBlock(),e.createBlock(L,e.mergeProps({key:0},{...n,...a.$attrs},{onToggled:l[0]||(l[0]=d=>h("toggled",d.detail))}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16)):(e.openBlock(),e.createElementBlock("bs-accordion",e.mergeProps({key:1},{...n,...a.$attrs},{onToggled:l[1]||(l[1]=d=>h("toggled",d.detail))}),[e.renderSlot(a.$slots,"default")],16))}},V={__name:"BsBannerServer",props:{},emits:["dismiss"],setup(s,{emit:h}){const n=e.ref(!1),t=e.ref(null),a=e.ref(""),l=e.reactive([]),d=e.ref(null),c=(r,f=0)=>{var i,p;t.value||f>=4||(t.value=(p=(i=r.value)==null?void 0:i.querySelector)==null?void 0:p.call(i,"[data-slot]"),t.value||l.push(setTimeout(()=>c(r,f+1),50)))};return e.onMounted(()=>c(d,0)),e.watch(t,r=>{!r||n.value||(S(t),l.push(setTimeout(()=>{w(t),e.nextTick(()=>{a.value=customElements.get("bs-banner")?"hydrated superhydrated":"superhydrated"})},100)),n.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>l.forEach(r=>clearTimeout(r))),(r,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.value?(e.openBlock(),e.createBlock(e.unref(B.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:t.value},[e.renderSlot(r.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-banner",e.mergeProps({ref_key:"wcRef",ref:d,class:a.value,"data-bsds-ssr":"",onDismiss:f[0]||(f[0]=i=>h("dismiss",i.detail))},r.$attrs),[e.createVNode(e.unref(B.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3})],16)],64))}},ge="bs-banner",Se={__name:"BsBanner",props:{},emits:["dismiss"],setup(s,{emit:h}){const n=s,{data:t}=y.useAsyncData(ge,()=>{if(process.server)return!0});return(a,l)=>e.unref(t)?(e.openBlock(),e.createBlock(V,e.mergeProps({key:0},{...n,...a.$attrs},{onDismiss:l[0]||(l[0]=d=>h("dismiss",d.detail))}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16)):(e.openBlock(),e.createElementBlock("bs-banner",e.mergeProps({key:1},{...n,...a.$attrs},{onDismiss:l[1]||(l[1]=d=>h("dismiss",d.detail))}),[e.renderSlot(a.$slots,"default")],16))}},we=["variant","disabled","ghost-btn","href","pass-attrs","text-btn","size"],O={__name:"BsButtonServer",props:{variant:{},disabled:{},ghostBtn:{},href:{},passAttrs:{default:""},textBtn:{},size:{}},emits:[],setup(s,{emit:h}){const n=e.ref(!1),t=e.ref(null),a=e.ref(""),l=e.reactive([]),d=e.ref(null),c=(r,f=0)=>{var i,p;t.value||f>=4||(t.value=(p=(i=r.value)==null?void 0:i.querySelector)==null?void 0:p.call(i,"[data-slot]"),t.value||l.push(setTimeout(()=>c(r,f+1),50)))};return e.onMounted(()=>c(d,0)),e.watch(t,r=>{!r||n.value||(S(t),l.push(setTimeout(()=>{w(t),e.nextTick(()=>{a.value=customElements.get("bs-button")?"hydrated superhydrated":"superhydrated"})},100)),n.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>l.forEach(r=>clearTimeout(r))),(r,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.value?(e.openBlock(),e.createBlock(e.unref(B.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:t.value},[e.renderSlot(r.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-button",e.mergeProps({ref_key:"wcRef",ref:d,class:a.value,"data-bsds-ssr":"",variant:s.variant,disabled:s.disabled,"ghost-btn":s.ghostBtn,href:s.href,"pass-attrs":s.passAttrs,"text-btn":s.textBtn,size:s.size},r.$attrs),[e.createVNode(e.unref(B.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3})],16,we)],64))}},Ce="bs-button",Te={__name:"BsButton",props:{variant:{},disabled:{},ghostBtn:{},href:{},passAttrs:{default:""},textBtn:{},size:{}},emits:[],setup(s,{emit:h}){const n=s,{data:t}=y.useAsyncData(Ce,()=>{if(process.server)return!0});return(a,l)=>e.unref(t)?(e.openBlock(),e.createBlock(O,e.normalizeProps(e.mergeProps({key:0},{...n,...a.$attrs})),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16)):(e.openBlock(),e.createElementBlock("bs-button",e.normalizeProps(e.mergeProps({key:1},{...n,...a.$attrs})),[e.renderSlot(a.$slots,"default")],16))}},$e=["disabled","for","hide","pass-attrs","required"],q={__name:"BsLabelServer",props:{disabled:{},for:{},hide:{},passAttrs:{default:""},required:{}},emits:[],setup(s,{emit:h}){const n=e.ref(!1),t=e.ref(null),a=e.ref(""),l=e.reactive([]),d=e.ref(null),c=(r,f=0)=>{var i,p;t.value||f>=4||(t.value=(p=(i=r.value)==null?void 0:i.querySelector)==null?void 0:p.call(i,"[data-slot]"),t.value||l.push(setTimeout(()=>c(r,f+1),50)))};return e.onMounted(()=>c(d,0)),e.watch(t,r=>{!r||n.value||(S(t),l.push(setTimeout(()=>{w(t),e.nextTick(()=>{a.value=customElements.get("bs-label")?"hydrated superhydrated":"superhydrated"})},100)),n.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>l.forEach(r=>clearTimeout(r))),(r,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.value?(e.openBlock(),e.createBlock(e.unref(B.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:t.value},[e.renderSlot(r.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-label",e.mergeProps({ref_key:"wcRef",ref:d,class:a.value,"data-bsds-ssr":"",disabled:s.disabled,for:s.for,hide:s.hide,"pass-attrs":s.passAttrs,required:s.required},r.$attrs),[e.createVNode(e.unref(B.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3})],16,$e)],64))}},Ae="bs-label",Pe={__name:"BsLabel",props:{disabled:{},for:{},hide:{},passAttrs:{default:""},required:{}},emits:[],setup(s,{emit:h}){const n=s,{data:t}=y.useAsyncData(Ae,()=>{if(process.server)return!0});return(a,l)=>e.unref(t)?(e.openBlock(),e.createBlock(q,e.normalizeProps(e.mergeProps({key:0},{...n,...a.$attrs})),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16)):(e.openBlock(),e.createElementBlock("bs-label",e.normalizeProps(e.mergeProps({key:1},{...n,...a.$attrs})),[e.renderSlot(a.$slots,"default")],16))}},Ee=["variant","status","href","active","disabled","pass-attrs"],N={__name:"BsPillServer",props:{variant:{},status:{},href:{},active:{},disabled:{},passAttrs:{default:""}},emits:[],setup(s,{emit:h}){const n=e.ref(!1),t=e.ref(null),a=e.ref(""),l=e.reactive([]),d=e.ref(null),c=(r,f=0)=>{var i,p;t.value||f>=4||(t.value=(p=(i=r.value)==null?void 0:i.querySelector)==null?void 0:p.call(i,"[data-slot]"),t.value||l.push(setTimeout(()=>c(r,f+1),50)))};return e.onMounted(()=>c(d,0)),e.watch(t,r=>{!r||n.value||(S(t),l.push(setTimeout(()=>{w(t),e.nextTick(()=>{a.value=customElements.get("bs-pill")?"hydrated superhydrated":"superhydrated"})},100)),n.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>l.forEach(r=>clearTimeout(r))),(r,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.value?(e.openBlock(),e.createBlock(e.unref(B.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:t.value},[e.renderSlot(r.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-pill",e.mergeProps({ref_key:"wcRef",ref:d,class:a.value,"data-bsds-ssr":"",variant:s.variant,status:s.status,href:s.href,active:s.active,disabled:s.disabled,"pass-attrs":s.passAttrs},r.$attrs),[e.createVNode(e.unref(B.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3})],16,Ee)],64))}},Re="bs-pill",Ie={__name:"BsPill",props:{variant:{},status:{},href:{},active:{},disabled:{},passAttrs:{default:""}},emits:[],setup(s,{emit:h}){const n=s,{data:t}=y.useAsyncData(Re,()=>{if(process.server)return!0});return(a,l)=>e.unref(t)?(e.openBlock(),e.createBlock(N,e.normalizeProps(e.mergeProps({key:0},{...n,...a.$attrs})),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16)):(e.openBlock(),e.createElementBlock("bs-pill",e.normalizeProps(e.mergeProps({key:1},{...n,...a.$attrs})),[e.renderSlot(a.$slots,"default")],16))}},Le=["disabled","required","error","hint-id","value","pass-attrs"],W={__name:"BsSelectServer",props:{disabled:{default:!1},required:{},error:{},hintId:{},value:{},passAttrs:{default:""}},emits:[],setup(s,{emit:h}){const n=e.ref(!1),t=e.ref(null),a=e.ref(""),l=e.reactive([]),d=e.ref(null),c=(r,f=0)=>{var i,p;t.value||f>=4||(t.value=(p=(i=r.value)==null?void 0:i.querySelector)==null?void 0:p.call(i,"[data-slot]"),t.value||l.push(setTimeout(()=>c(r,f+1),50)))};return e.onMounted(()=>c(d,0)),e.watch(t,r=>{!r||n.value||(S(t),l.push(setTimeout(()=>{w(t),e.nextTick(()=>{a.value=customElements.get("bs-select")?"hydrated superhydrated":"superhydrated"})},100)),n.value=!0)},{immediate:!0}),e.onBeforeUnmount(()=>l.forEach(r=>clearTimeout(r))),(r,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.value?(e.openBlock(),e.createBlock(e.unref(B.ClientOnly),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{to:t.value},[e.renderSlot(r.$slots,"default")],8,["to"]))]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("bs-select",e.mergeProps({ref_key:"wcRef",ref:d,class:a.value,"data-bsds-ssr":"",disabled:s.disabled,required:s.required,error:s.error,"hint-id":s.hintId,value:s.value,"pass-attrs":s.passAttrs},r.$attrs),[e.createVNode(e.unref(B.ClientOnly),null,{fallback:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3})],16,Le)],64))}},Ve="bs-select",Oe={__name:"BsSelect",props:{disabled:{default:!1},required:{},error:{},hintId:{},value:{},passAttrs:{default:""}},emits:[],setup(s,{emit:h}){const n=s,{data:t}=y.useAsyncData(Ve,()=>{if(process.server)return!0});return(a,l)=>e.unref(t)?(e.openBlock(),e.createBlock(W,e.normalizeProps(e.mergeProps({key:0},{...n,...a.$attrs})),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16)):(e.openBlock(),e.createElementBlock("bs-select",e.normalizeProps(e.mergeProps({key:1},{...n,...a.$attrs})),[e.renderSlot(a.$slots,"default")],16))}};o.BsAccordion=ye,o.BsAccordionServer=L,o.BsBadge=X,o.BsBanner=Se,o.BsBannerServer=V,o.BsButton=Te,o.BsButtonServer=O,o.BsCharacterCount=Y,o.BsChartBar=_,o.BsChartTable=K,o.BsCheckbox=Z,o.BsDropdown=J,o.BsDropdownOption=Q,o.BsDropdownOptions=x,o.BsFieldLayout=v,o.BsHint=ee,o.BsInput=te,o.BsInputAddon=re,o.BsInputField=se,o.BsInputSearch=ae,o.BsLabel=Pe,o.BsLabelServer=q,o.BsPill=Ie,o.BsPillServer=N,o.BsProfile=oe,o.BsProfileDetails=le,o.BsProfileImg=ne,o.BsProfileLayout=ie,o.BsRadio=de,o.BsSelect=Oe,o.BsSelectField=ce,o.BsSelectServer=W,o.BsSwitch=fe,o.BsTextarea=ue,o.BsTextareaField=he,o.BsToast=pe,o.BsToaster=me,o.BsTooltip=Be,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wwtdev/bsds-components-vue3",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
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.5.0"
62
+ "@wwtdev/bsds-components": "^1.5.1"
63
63
  }
64
64
  }