bitboss-ui 2.0.77 → 2.0.79

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.
Files changed (162) hide show
  1. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +1 -1
  2. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +1 -1
  3. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +1 -1
  4. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +1 -1
  5. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +1 -1
  6. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
  7. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +1 -1
  8. package/dist/components/BbSelect/BbSelect.vue.d.ts +1 -1
  9. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
  10. package/dist/components/OptionsContainer.vue.d.ts +1 -1
  11. package/dist/index110.js +5 -5
  12. package/dist/index118.js +25 -21
  13. package/dist/index120.js +51 -51
  14. package/dist/index122.js +1 -1
  15. package/dist/index126.js +1 -1
  16. package/dist/index127.js +1 -1
  17. package/dist/index128.js +1 -1
  18. package/dist/index13.js +1 -1
  19. package/dist/index130.js +1 -1
  20. package/dist/index132.js +2 -2
  21. package/dist/index133.js +2 -2
  22. package/dist/index15.js +4 -4
  23. package/dist/index17.js +3 -3
  24. package/dist/index19.js +2 -2
  25. package/dist/index204.js +2 -81
  26. package/dist/index205.js +5 -2
  27. package/dist/index206.js +14 -124
  28. package/dist/index207.js +16 -5
  29. package/dist/index208.js +17 -123
  30. package/dist/index209.js +18 -18
  31. package/dist/index21.js +14 -14
  32. package/dist/index210.js +24 -13
  33. package/dist/index211.js +3 -16
  34. package/dist/index212.js +2 -2
  35. package/dist/index213.js +8 -2
  36. package/dist/index214.js +248 -40
  37. package/dist/index215.js +50 -18
  38. package/dist/index216.js +43 -5
  39. package/dist/index217.js +4 -52
  40. package/dist/{index239.js → index218.js} +1 -1
  41. package/dist/index219.js +52 -12
  42. package/dist/index221.js +13 -369
  43. package/dist/index222.js +18 -162
  44. package/dist/index223.js +4 -84
  45. package/dist/index224.js +128 -0
  46. package/dist/index225.js +125 -3
  47. package/dist/index226.js +2 -3
  48. package/dist/index227.js +41 -7
  49. package/dist/index228.js +5 -7
  50. package/dist/index229.js +5 -2
  51. package/dist/index23.js +187 -186
  52. package/dist/index230.js +12 -4
  53. package/dist/index231.js +369 -2
  54. package/dist/index232.js +81 -19
  55. package/dist/index233.js +3 -27
  56. package/dist/index234.js +2 -3
  57. package/dist/index235.js +4 -249
  58. package/dist/index236.js +2 -52
  59. package/dist/index237.js +163 -43
  60. package/dist/index238.js +84 -5
  61. package/dist/index240.js +3 -4
  62. package/dist/index241.js +7 -2
  63. package/dist/index242.js +2 -18
  64. package/dist/index243.js +17 -105
  65. package/dist/index244.js +108 -0
  66. package/dist/{index245.js → index246.js} +1 -1
  67. package/dist/index248.js +2 -10
  68. package/dist/index249.js +9 -2
  69. package/dist/index25.js +109 -105
  70. package/dist/index250.js +3 -281
  71. package/dist/index251.js +6 -6
  72. package/dist/index252.js +16 -2
  73. package/dist/index253.js +9 -2
  74. package/dist/index254.js +23 -2
  75. package/dist/index255.js +89 -2
  76. package/dist/index257.js +7 -124
  77. package/dist/index258.js +3 -431
  78. package/dist/index260.js +7 -3
  79. package/dist/index262.js +281 -7
  80. package/dist/index263.js +6 -22
  81. package/dist/index264.js +4 -0
  82. package/dist/index265.js +2 -3
  83. package/dist/index266.js +2 -12
  84. package/dist/index267.js +2 -9
  85. package/dist/index268.js +2 -9
  86. package/dist/index269.js +2 -17
  87. package/dist/index27.js +1 -1
  88. package/dist/index270.js +2 -4
  89. package/dist/index271.js +2 -224
  90. package/dist/index272.js +2 -436
  91. package/dist/index273.js +2 -127
  92. package/dist/index274.js +25 -197
  93. package/dist/index275.js +22 -89
  94. package/dist/index277.js +2 -2
  95. package/dist/index278.js +126 -2
  96. package/dist/index279.js +431 -2
  97. package/dist/index280.js +21 -1
  98. package/dist/index282.js +1 -1
  99. package/dist/index283.js +222 -26
  100. package/dist/index284.js +199 -21
  101. package/dist/index285.js +438 -0
  102. package/dist/index286.js +125 -7
  103. package/dist/index287.js +4 -3
  104. package/dist/index288.js +3 -9
  105. package/dist/index289.js +12 -23
  106. package/dist/index29.js +3 -3
  107. package/dist/index290.js +9 -6
  108. package/dist/index291.js +8 -15
  109. package/dist/index292.js +17 -3
  110. package/dist/index293.js +4 -3
  111. package/dist/index294.js +88 -210
  112. package/dist/index295.js +3 -5
  113. package/dist/index296.js +2 -65
  114. package/dist/index297.js +211 -2
  115. package/dist/index298.js +2 -33
  116. package/dist/index299.js +5 -5
  117. package/dist/index300.js +66 -8
  118. package/dist/index301.js +4 -7
  119. package/dist/index302.js +4 -19
  120. package/dist/index303.js +58 -6
  121. package/dist/index304.js +3 -11
  122. package/dist/index305.js +4 -3
  123. package/dist/index306.js +8 -89
  124. package/dist/index307.js +9 -0
  125. package/dist/index308.js +7 -4
  126. package/dist/index309.js +19 -4
  127. package/dist/index31.js +2 -2
  128. package/dist/index310.js +32 -58
  129. package/dist/index311.js +3 -46
  130. package/dist/index312.js +47 -2
  131. package/dist/index313.js +13 -0
  132. package/dist/index314.js +2 -12
  133. package/dist/index315.js +1 -1
  134. package/dist/index317.js +424 -2
  135. package/dist/index33.js +2 -2
  136. package/dist/index35.js +3 -3
  137. package/dist/index37.js +99 -98
  138. package/dist/index39.js +4 -4
  139. package/dist/index41.js +2 -2
  140. package/dist/index43.js +2 -2
  141. package/dist/index45.js +8 -8
  142. package/dist/index47.js +2 -2
  143. package/dist/index49.js +2 -2
  144. package/dist/index55.js +1 -1
  145. package/dist/index57.js +1 -1
  146. package/dist/index61.js +2 -2
  147. package/dist/index75.js +35 -35
  148. package/dist/index79.js +2 -2
  149. package/dist/index81.js +1 -1
  150. package/dist/index84.js +110 -106
  151. package/dist/index86.js +1 -1
  152. package/dist/index88.js +62 -62
  153. package/dist/index90.js +1 -1
  154. package/dist/style.css +1 -1
  155. package/package.json +1 -1
  156. package/dist/index220.js +0 -7
  157. package/dist/index247.js +0 -4
  158. package/dist/index256.js +0 -4
  159. package/dist/index276.js +0 -6
  160. package/dist/index281.js +0 -4
  161. package/dist/index316.js +0 -426
  162. /package/dist/{index259.js → index261.js} +0 -0
package/dist/index243.js CHANGED
@@ -1,108 +1,20 @@
1
- import { defineComponent as y, ref as F, computed as H, watch as N, openBlock as p, createElementBlock as L, Fragment as S, renderList as V, createBlock as A, normalizeClass as O, withModifiers as P, withCtx as $, createTextVNode as z, toDisplayString as D } from "vue";
2
- import { hash as d } from "./index234.js";
3
- import { isNil as l } from "./index129.js";
4
- import E from "./index124.js";
5
- /* empty css */
6
- const K = /* @__PURE__ */ y({
7
- __name: "ChipsBox",
8
- props: {
9
- options: {}
10
- },
11
- emits: ["option:unselected"],
12
- setup(f, { expose: v, emit: h }) {
13
- const t = f, u = h, n = F(null), i = H(() => t.options.some((e) => !e.disabled)), a = (e = 1) => {
14
- const s = l(n.value) ? -1 : n.value;
15
- let o = (s + e) % t.options.length;
16
- for (; t.options[o].disabled && o !== s; )
17
- o = a(e + 1);
18
- return o;
19
- }, x = () => {
20
- if (!i.value) return;
21
- const e = a();
22
- n.value = e;
23
- }, c = (e = 1) => {
24
- const s = l(n.value) ? 0 : n.value;
25
- let o = (s - e + t.options.length) % t.options.length;
26
- for (; t.options[o].disabled && o !== s; )
27
- o = c(e + 1);
28
- return o;
29
- }, m = async () => {
30
- if (!i.value) return;
31
- const e = c();
32
- n.value = e;
33
- }, w = () => {
34
- if (!i.value) return;
35
- let e = 0;
36
- for (; t.options[e].disabled; )
37
- e++;
38
- n.value = e;
39
- }, b = () => {
40
- if (!i.value) return;
41
- let e = t.options.length - 1;
42
- for (; t.options[e].disabled && e !== 0; )
43
- e--;
44
- n.value = e;
45
- }, I = () => {
46
- if (!i.value) return;
47
- let e = 0;
48
- for (; !t.options[e].selected && t.options.length !== e; )
49
- e++;
50
- n.value = e;
51
- }, g = () => {
52
- if (!i.value) return;
53
- let e = t.options.length - 1;
54
- for (; t.options[e].selected && e !== 0; )
55
- e--;
56
- n.value = e;
57
- }, _ = (e) => {
58
- if (!i.value) return;
59
- const s = t.options.findIndex(
60
- (o) => o.valueHash === e
61
- );
62
- s >= 0 && (n.value = s);
63
- }, r = () => {
64
- n.value = null;
65
- }, k = () => {
66
- if (l(n.value)) return;
67
- const e = t.options[n.value];
68
- e.selected && u("option:unselected", e);
69
- }, C = () => l(n.value) ? void 0 : t.options[n.value];
70
- return N(
71
- () => t.options,
72
- (e, s) => {
73
- d(e) !== d(s) && r();
74
- },
75
- {
76
- flush: "post"
77
- }
78
- ), v({
79
- focusNext: x,
80
- focusPrevious: m,
81
- focusFirst: w,
82
- focusFirstSelected: I,
83
- focusLast: b,
84
- focusLastSelected: g,
85
- blur: r,
86
- confirmOption: k,
87
- focusByHash: _,
88
- getHighlighted: C
89
- }), (e, s) => (p(!0), L(S, null, V(e.options, (o, B) => (p(), A(E, {
90
- key: o.valueHash,
91
- class: O({
92
- "bb-chipsbox-item": !0,
93
- "bb-chipsbox-item--focused": B === n.value
94
- }),
95
- clearable: !0,
96
- text: o.text,
97
- "onClick:clear": P((M) => u("option:unselected", o), ["stop"])
98
- }, {
99
- default: $(() => [
100
- z(D(o.text), 1)
101
- ]),
102
- _: 2
103
- }, 1032, ["class", "text", "onClick:clear"]))), 128));
1
+ import { isNil as c } from "./index129.js";
2
+ const a = (t, r) => {
3
+ if (!Object.prototype.hasOwnProperty.call(t, r))
4
+ throw new Error(
5
+ `Object ${JSON.stringify(t, null, 2)} has no property named "${r.toString()}"`
6
+ );
7
+ }, l = (t) => typeof t == "string" ? t.toLocaleLowerCase() : JSON.stringify(t).toLowerCase(), y = (t, r, s) => {
8
+ const i = s.toLocaleLowerCase();
9
+ for (let e = 0; e < r.length; e++) {
10
+ const n = r[e];
11
+ a(t, n);
12
+ const o = t[n];
13
+ if (c(o)) continue;
14
+ if (l(o).includes(i)) return !0;
104
15
  }
105
- });
16
+ return !1;
17
+ };
106
18
  export {
107
- K as default
19
+ y as matchAnyKey
108
20
  };
@@ -0,0 +1,108 @@
1
+ import { defineComponent as y, ref as F, computed as H, watch as N, openBlock as p, createElementBlock as L, Fragment as S, renderList as V, createBlock as A, normalizeClass as O, withModifiers as P, withCtx as $, createTextVNode as z, toDisplayString as D } from "vue";
2
+ import { hash as d } from "./index211.js";
3
+ import { isNil as l } from "./index129.js";
4
+ import E from "./index124.js";
5
+ /* empty css */
6
+ const K = /* @__PURE__ */ y({
7
+ __name: "ChipsBox",
8
+ props: {
9
+ options: {}
10
+ },
11
+ emits: ["option:unselected"],
12
+ setup(f, { expose: v, emit: h }) {
13
+ const t = f, u = h, n = F(null), i = H(() => t.options.some((e) => !e.disabled)), a = (e = 1) => {
14
+ const s = l(n.value) ? -1 : n.value;
15
+ let o = (s + e) % t.options.length;
16
+ for (; t.options[o].disabled && o !== s; )
17
+ o = a(e + 1);
18
+ return o;
19
+ }, x = () => {
20
+ if (!i.value) return;
21
+ const e = a();
22
+ n.value = e;
23
+ }, c = (e = 1) => {
24
+ const s = l(n.value) ? 0 : n.value;
25
+ let o = (s - e + t.options.length) % t.options.length;
26
+ for (; t.options[o].disabled && o !== s; )
27
+ o = c(e + 1);
28
+ return o;
29
+ }, m = async () => {
30
+ if (!i.value) return;
31
+ const e = c();
32
+ n.value = e;
33
+ }, w = () => {
34
+ if (!i.value) return;
35
+ let e = 0;
36
+ for (; t.options[e].disabled; )
37
+ e++;
38
+ n.value = e;
39
+ }, b = () => {
40
+ if (!i.value) return;
41
+ let e = t.options.length - 1;
42
+ for (; t.options[e].disabled && e !== 0; )
43
+ e--;
44
+ n.value = e;
45
+ }, I = () => {
46
+ if (!i.value) return;
47
+ let e = 0;
48
+ for (; !t.options[e].selected && t.options.length !== e; )
49
+ e++;
50
+ n.value = e;
51
+ }, g = () => {
52
+ if (!i.value) return;
53
+ let e = t.options.length - 1;
54
+ for (; t.options[e].selected && e !== 0; )
55
+ e--;
56
+ n.value = e;
57
+ }, _ = (e) => {
58
+ if (!i.value) return;
59
+ const s = t.options.findIndex(
60
+ (o) => o.valueHash === e
61
+ );
62
+ s >= 0 && (n.value = s);
63
+ }, r = () => {
64
+ n.value = null;
65
+ }, k = () => {
66
+ if (l(n.value)) return;
67
+ const e = t.options[n.value];
68
+ e.selected && u("option:unselected", e);
69
+ }, C = () => l(n.value) ? void 0 : t.options[n.value];
70
+ return N(
71
+ () => t.options,
72
+ (e, s) => {
73
+ d(e) !== d(s) && r();
74
+ },
75
+ {
76
+ flush: "post"
77
+ }
78
+ ), v({
79
+ focusNext: x,
80
+ focusPrevious: m,
81
+ focusFirst: w,
82
+ focusFirstSelected: I,
83
+ focusLast: b,
84
+ focusLastSelected: g,
85
+ blur: r,
86
+ confirmOption: k,
87
+ focusByHash: _,
88
+ getHighlighted: C
89
+ }), (e, s) => (p(!0), L(S, null, V(e.options, (o, B) => (p(), A(E, {
90
+ key: o.valueHash,
91
+ class: O({
92
+ "bb-chipsbox-item": !0,
93
+ "bb-chipsbox-item--focused": B === n.value
94
+ }),
95
+ clearable: !0,
96
+ text: o.text,
97
+ "onClick:clear": P((M) => u("option:unselected", o), ["stop"])
98
+ }, {
99
+ default: $(() => [
100
+ z(D(o.text), 1)
101
+ ]),
102
+ _: 2
103
+ }, 1032, ["class", "text", "onClick:clear"]))), 128));
104
+ }
105
+ });
106
+ export {
107
+ K as default
108
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as F, ref as H, computed as L, watch as N, openBlock as d, createElementBlock as v, Fragment as S, renderList as A, normalizeClass as O, withModifiers as P, toDisplayString as V } from "vue";
2
- import { hash as f } from "./index234.js";
2
+ import { hash as f } from "./index211.js";
3
3
  import { isNil as i } from "./index129.js";
4
4
  const z = ["text", "onClick:clear"], j = /* @__PURE__ */ F({
5
5
  __name: "CommaBox",
package/dist/index248.js CHANGED
@@ -1,12 +1,4 @@
1
- const o = (t, r) => {
2
- const e = {};
3
- for (const c in t)
4
- if (Object.prototype.hasOwnProperty.call(t, c)) {
5
- const n = t[c];
6
- r(n, c, t) && (e[c] = n);
7
- }
8
- return e;
9
- };
1
+ const o = (e) => e[0];
10
2
  export {
11
- o as pickBy
3
+ o as head
12
4
  };
package/dist/index249.js CHANGED
@@ -1,5 +1,12 @@
1
- const o = () => {
1
+ const o = (t, r) => {
2
+ const e = {};
3
+ for (const c in t)
4
+ if (Object.prototype.hasOwnProperty.call(t, c)) {
5
+ const n = t[c];
6
+ r(n, c, t) && (e[c] = n);
7
+ }
8
+ return e;
2
9
  };
3
10
  export {
4
- o as noop
11
+ o as pickBy
5
12
  };
package/dist/index25.js CHANGED
@@ -1,12 +1,13 @@
1
- import { defineComponent as ae, ref as o, getCurrentInstance as se, computed as m, nextTick as N, useAttrs as ne, onMounted as ie, onBeforeUnmount as F, watch as re, openBlock as k, createBlock as ue, Teleport as de, createElementVNode as a, mergeProps as G, createElementBlock as T, renderSlot as u, createTextVNode as ce, toDisplayString as P, createCommentVNode as z } from "vue";
2
- import { throttle as ve } from "./index226.js";
3
- import { useFocusTrap as fe } from "./index214.js";
1
+ import { defineComponent as ae, ref as o, getCurrentInstance as se, computed as m, nextTick as N, useAttrs as ne, onMounted as ie, onBeforeUnmount as F, watch as re, openBlock as k, createBlock as ue, withCtx as de, createElementVNode as a, mergeProps as G, createElementBlock as $, renderSlot as u, createTextVNode as ce, toDisplayString as P, createCommentVNode as z } from "vue";
2
+ import { throttle as ve } from "./index240.js";
3
+ import { useFocusTrap as fe } from "./index227.js";
4
4
  import { useId as K } from "./index8.js";
5
5
  import { wait as H } from "./index131.js";
6
- import { waitFor as be } from "./index216.js";
7
- import { useModalsState as C } from "./index227.js";
8
- import { useLogger as pe } from "./index228.js";
9
- const me = { class: "bb-base-dialog-close" }, ge = ["aria-label"], De = /* @__PURE__ */ ae({
6
+ import { waitFor as be } from "./index228.js";
7
+ import { useModalsState as _ } from "./index241.js";
8
+ import { useLogger as pe } from "./index213.js";
9
+ import me from "./index230.js";
10
+ const ge = { class: "bb-base-dialog-close" }, ye = ["aria-label"], ze = /* @__PURE__ */ ae({
10
11
  __name: "BaseDialog",
11
12
  props: {
12
13
  closeLabel: { default: "Chiudi modale" },
@@ -29,10 +30,10 @@ const me = { class: "bb-base-dialog-close" }, ge = ["aria-label"], De = /* @__PU
29
30
  emits: ["shown", "hidden", "update:modelValue"],
30
31
  setup(U, { emit: j }) {
31
32
  var I, R;
32
- const t = U, d = j, _ = `title_${K().id.value}`, B = `description_${K().id.value}`, g = o(null), c = o(null), $ = o(null), y = o(null), v = o(null), s = o(null), f = o(null), q = o(null), L = !!((R = (I = se()) == null ? void 0 : I.proxy) != null && R.$nuxt), h = o(0), J = m(() => {
33
- const { openedModals: e } = C();
33
+ const t = U, d = j, C = `title_${K().id.value}`, B = `description_${K().id.value}`, g = o(null), c = o(null), T = o(null), y = o(null), v = o(null), s = o(null), f = o(null), q = o(null), L = !!((R = (I = se()) == null ? void 0 : I.proxy) != null && R.$nuxt), h = o(0), J = m(() => {
34
+ const { openedModals: e } = _();
34
35
  return e.value && e.value === h.value;
35
- }), { activate: Q, deactivate: M } = fe($, {
36
+ }), { activate: Q, deactivate: M } = fe(T, {
36
37
  initialFocus: t.focusTarget ?? void 0,
37
38
  clickOutsideDeactivates: (e) => e.target === c.value,
38
39
  allowOutsideClick: !0,
@@ -46,28 +47,28 @@ const me = { class: "bb-base-dialog-close" }, ge = ["aria-label"], De = /* @__PU
46
47
  }), F(() => {
47
48
  window.removeEventListener("resize", r);
48
49
  });
49
- const V = o(!1), b = o(!1), D = o(!0), p = o(!1), i = o(t.eager || t.modelValue), O = m(() => b.value || p.value), Z = () => {
50
+ const V = o(!1), b = o(!1), D = o(!0), p = o(!1), i = o(t.eager || t.modelValue), x = m(() => b.value || p.value), Z = () => {
50
51
  if (!globalThis.document) return;
51
52
  const e = window.innerWidth - document.documentElement.clientWidth;
52
53
  document.body.style.overflow = "hidden", document.body.style.paddingRight = `${e}px`;
53
- }, x = () => {
54
+ }, O = () => {
54
55
  globalThis.document && (document.body.style.overflow = "auto", document.body.style.paddingRight = "0px");
55
56
  };
56
57
  F(() => {
57
58
  if (t.modelValue) {
58
- const { openedModals: e, modalHasClosed: l } = C();
59
- e.value && (l(), h.value = 0, x());
59
+ const { openedModals: e, modalHasClosed: l } = _();
60
+ e.value && (l(), h.value = 0, O());
60
61
  }
61
62
  });
62
63
  const S = async () => {
63
64
  if (t.modelValue) {
64
65
  i.value || (i.value = !0, await be(() => !!s.value), await N(), s.value && (g.value = new ResizeObserver(r), g.value.observe(s.value))), D.value = !1, p.value = !1, b.value = !0;
65
- const { modalHasOpened: e, openedModals: l } = C();
66
+ const { modalHasOpened: e, openedModals: l } = _();
66
67
  e(), h.value = l.value, Z(), await H(t.transitionDuration), b.value = !1, V.value = !0, d("shown"), Q();
67
68
  } else {
68
69
  M(), b.value = !1, V.value = !1, p.value = !0, await H(t.transitionDuration), p.value = !1, D.value = !0;
69
- const { modalHasClosed: e, openedModals: l } = C();
70
- e(), h.value = 0, l.value || x(), d("hidden");
70
+ const { modalHasClosed: e, openedModals: l } = _();
71
+ e(), h.value = 0, l.value || O(), d("hidden");
71
72
  }
72
73
  };
73
74
  re(
@@ -80,9 +81,9 @@ const me = { class: "bb-base-dialog-close" }, ge = ["aria-label"], De = /* @__PU
80
81
  const w = (e) => {
81
82
  e.target === c.value && e.preventDefault();
82
83
  }, ee = (e) => {
83
- t.disabled || O.value || c.value && e.target === c.value && (t.persistent || d("update:modelValue", !1));
84
+ t.disabled || x.value || c.value && e.target === c.value && (t.persistent || d("update:modelValue", !1));
84
85
  }, A = () => {
85
- t.disabled || O.value || (M(), d("update:modelValue", !1));
86
+ t.disabled || x.value || (M(), d("update:modelValue", !1));
86
87
  }, te = m(() => {
87
88
  const e = [
88
89
  {
@@ -122,7 +123,7 @@ const me = { class: "bb-base-dialog-close" }, ge = ["aria-label"], De = /* @__PU
122
123
  role: "dialog",
123
124
  "aria-modal": !0
124
125
  };
125
- i.value && (t.title && (l["aria-labelledby"] = _), t.description && (l["aria-describedby"] = B));
126
+ i.value && (t.title && (l["aria-labelledby"] = C), t.description && (l["aria-describedby"] = B));
126
127
  let n;
127
128
  const W = {
128
129
  sm: 384,
@@ -164,98 +165,101 @@ const me = { class: "bb-base-dialog-close" }, ge = ["aria-label"], De = /* @__PU
164
165
  200,
165
166
  { trailing: !0 }
166
167
  );
167
- return (e, l) => (k(), ue(de, { to: "body" }, [
168
- a("div", G(te.value, {
169
- ref_key: "overlay",
170
- ref: c
171
- }), [
172
- a("div", G(le.value, {
173
- ref_key: "panel",
174
- ref: $
168
+ return (e, l) => (k(), ue(me, null, {
169
+ default: de(() => [
170
+ a("div", G(te.value, {
171
+ ref_key: "overlay",
172
+ ref: c
175
173
  }), [
176
- i.value ? (k(), T("div", {
177
- key: 0,
178
- ref_key: "content",
179
- ref: y,
180
- class: "bb-base-dialog__content"
181
- }, [
182
- a("div", {
183
- ref_key: "header",
184
- ref: v,
185
- class: "bb-base-dialog__header"
174
+ a("div", G(le.value, {
175
+ ref_key: "panel",
176
+ ref: T
177
+ }), [
178
+ i.value ? (k(), $("div", {
179
+ key: 0,
180
+ ref_key: "content",
181
+ ref: y,
182
+ class: "bb-base-dialog__content"
186
183
  }, [
187
- u(e.$slots, "header", {
188
- close: A,
189
- title: e.title,
190
- titleId: _
191
- }, () => [
192
- a("span", {
193
- id: _,
194
- class: "bb-base-dialog__title"
195
- }, [
196
- u(e.$slots, "title", { text: e.title }, () => [
197
- ce(P(e.title), 1)
198
- ])
199
- ]),
200
- a("span", me, [
201
- e.showClose ? (k(), T("button", {
202
- key: 0,
203
- "aria-label": Y.value,
204
- type: "button",
205
- onClick: A
184
+ a("div", {
185
+ ref_key: "header",
186
+ ref: v,
187
+ class: "bb-base-dialog__header"
188
+ }, [
189
+ u(e.$slots, "header", {
190
+ close: A,
191
+ title: e.title,
192
+ titleId: C
193
+ }, () => [
194
+ a("span", {
195
+ id: C,
196
+ class: "bb-base-dialog__title"
206
197
  }, [
207
- u(e.$slots, "close", {}, () => [
208
- l[0] || (l[0] = a("span", { class: "bb-base-dialog-close__icon" }, [
209
- a("svg", {
210
- "aria-hidden": "true",
211
- fill: "none",
212
- viewBox: "0 0 24 24",
213
- xmlns: "http://www.w3.org/2000/svg"
214
- }, [
215
- a("path", {
216
- d: "M23 23L1 1M23 1L1 23",
217
- stroke: "currentColor",
218
- "stroke-linecap": "round",
219
- "stroke-width": "2"
220
- })
221
- ])
222
- ], -1))
198
+ u(e.$slots, "title", { text: e.title }, () => [
199
+ ce(P(e.title), 1)
223
200
  ])
224
- ], 8, ge)) : z("", !0)
201
+ ]),
202
+ a("span", ge, [
203
+ e.showClose ? (k(), $("button", {
204
+ key: 0,
205
+ "aria-label": Y.value,
206
+ type: "button",
207
+ onClick: A
208
+ }, [
209
+ u(e.$slots, "close", {}, () => [
210
+ l[0] || (l[0] = a("span", { class: "bb-base-dialog-close__icon" }, [
211
+ a("svg", {
212
+ "aria-hidden": "true",
213
+ fill: "none",
214
+ viewBox: "0 0 24 24",
215
+ xmlns: "http://www.w3.org/2000/svg"
216
+ }, [
217
+ a("path", {
218
+ d: "M23 23L1 1M23 1L1 23",
219
+ stroke: "currentColor",
220
+ "stroke-linecap": "round",
221
+ "stroke-width": "2"
222
+ })
223
+ ])
224
+ ], -1))
225
+ ])
226
+ ], 8, ye)) : z("", !0)
227
+ ])
225
228
  ])
226
- ])
227
- ], 512),
228
- a("div", {
229
- ref_key: "body",
230
- ref: s,
231
- class: "bb-base-dialog__body scrollbar-border"
232
- }, [
233
- u(e.$slots, "description", {
234
- descriptionId: B,
235
- text: e.description
236
- }, () => [
237
- e.description ? (k(), T("div", {
238
- key: 0,
239
- id: B,
240
- class: "bb-base-dialog__description sr-only"
241
- }, P(e.description), 1)) : z("", !0)
242
- ]),
243
- u(e.$slots, "default")
244
- ], 512),
245
- l[1] || (l[1] = a("div", { style: { flex: "10000 10000 0%" } }, null, -1)),
246
- a("div", {
247
- ref_key: "footer",
248
- ref: f,
249
- class: "bb-base-dialog__footer"
250
- }, [
251
- u(e.$slots, "footer")
252
- ], 512)
253
- ], 512)) : z("", !0)
229
+ ], 512),
230
+ a("div", {
231
+ ref_key: "body",
232
+ ref: s,
233
+ class: "bb-base-dialog__body scrollbar-border"
234
+ }, [
235
+ u(e.$slots, "description", {
236
+ descriptionId: B,
237
+ text: e.description
238
+ }, () => [
239
+ e.description ? (k(), $("div", {
240
+ key: 0,
241
+ id: B,
242
+ class: "bb-base-dialog__description sr-only"
243
+ }, P(e.description), 1)) : z("", !0)
244
+ ]),
245
+ u(e.$slots, "default")
246
+ ], 512),
247
+ l[1] || (l[1] = a("div", { style: { flex: "10000 10000 0%" } }, null, -1)),
248
+ a("div", {
249
+ ref_key: "footer",
250
+ ref: f,
251
+ class: "bb-base-dialog__footer"
252
+ }, [
253
+ u(e.$slots, "footer")
254
+ ], 512)
255
+ ], 512)) : z("", !0)
256
+ ], 16)
254
257
  ], 16)
255
- ], 16)
256
- ]));
258
+ ]),
259
+ _: 3
260
+ }));
257
261
  }
258
262
  });
259
263
  export {
260
- De as default
264
+ ze as default
261
265
  };