bitboss-ui 2.0.172 → 2.0.174

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 (181) hide show
  1. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +2 -2
  2. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +16 -2
  3. package/dist/components/BbPopover/BbPopover.vue.d.ts +18 -4
  4. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +16 -2
  5. package/dist/components/CommonPopover.vue.d.ts +3 -0
  6. package/dist/index.css +1 -1
  7. package/dist/index106.js +6 -6
  8. package/dist/index111.js +1 -1
  9. package/dist/index113.js +1 -1
  10. package/dist/index121.js +9 -9
  11. package/dist/index129.js +1 -1
  12. package/dist/index13.js +1 -1
  13. package/dist/index131.js +40 -39
  14. package/dist/index133.js +1 -1
  15. package/dist/index139.js +2 -2
  16. package/dist/index15.js +35 -34
  17. package/dist/index17.js +3 -3
  18. package/dist/index19.js +7 -7
  19. package/dist/index209.js +2 -10
  20. package/dist/index21.js +16 -16
  21. package/dist/index210.js +4 -3
  22. package/dist/index211.js +2 -13
  23. package/dist/index212.js +13 -34
  24. package/dist/index213.js +65 -12
  25. package/dist/index215.js +36 -0
  26. package/dist/index216.js +4 -2
  27. package/dist/index217.js +13 -4
  28. package/dist/index218.js +11 -2
  29. package/dist/index219.js +20 -2
  30. package/dist/index220.js +200 -41
  31. package/dist/index222.js +120 -7
  32. package/dist/index224.js +2 -5
  33. package/dist/index225.js +2 -9
  34. package/dist/index226.js +3 -5
  35. package/dist/index227.js +5 -5
  36. package/dist/index228.js +3 -3
  37. package/dist/index229.js +2 -2
  38. package/dist/index23.js +114 -125
  39. package/dist/index230.js +5 -5
  40. package/dist/index231.js +5 -2
  41. package/dist/index232.js +5 -2
  42. package/dist/index233.js +2 -11
  43. package/dist/index234.js +2 -20
  44. package/dist/index235.js +2 -105
  45. package/dist/{index241.js → index236.js} +3 -3
  46. package/dist/index237.js +17 -86
  47. package/dist/index238.js +108 -0
  48. package/dist/index240.js +100 -17
  49. package/dist/index242.js +86 -15
  50. package/dist/index244.js +28 -11
  51. package/dist/index246.js +15 -4
  52. package/dist/index247.js +12 -200
  53. package/dist/index248.js +43 -0
  54. package/dist/index249.js +6 -18
  55. package/dist/index25.js +5 -5
  56. package/dist/index250.js +7 -12
  57. package/dist/index251.js +11 -102
  58. package/dist/index252.js +179 -0
  59. package/dist/index253.js +5 -100
  60. package/dist/index254.js +7 -0
  61. package/dist/index255.js +6 -226
  62. package/dist/index256.js +250 -2
  63. package/dist/index257.js +50 -175
  64. package/dist/index258.js +44 -3
  65. package/dist/index259.js +5 -2
  66. package/dist/index260.js +60 -5
  67. package/dist/index261.js +18 -5
  68. package/dist/index262.js +12 -8
  69. package/dist/index263.js +216 -238
  70. package/dist/index264.js +3 -52
  71. package/dist/index265.js +6 -44
  72. package/dist/index266.js +16 -5
  73. package/dist/index267.js +10 -60
  74. package/dist/index268.js +2 -8
  75. package/dist/index269.js +3 -23
  76. package/dist/index27.js +1 -1
  77. package/dist/index270.js +9 -6
  78. package/dist/index271.js +8 -15
  79. package/dist/index272.js +23 -3
  80. package/dist/index273.js +1 -1
  81. package/dist/index275.js +5 -2
  82. package/dist/index276.js +1 -1
  83. package/dist/index277.js +2 -5
  84. package/dist/index278.js +4 -7
  85. package/dist/index279.js +8 -5
  86. package/dist/index280.js +3 -6
  87. package/dist/index282.js +7 -2
  88. package/dist/index283.js +5 -0
  89. package/dist/index284.js +2 -7
  90. package/dist/index285.js +1 -1
  91. package/dist/index286.js +3 -4
  92. package/dist/index287.js +7 -3
  93. package/dist/index288.js +11 -17
  94. package/dist/index289.js +3 -27
  95. package/dist/index29.js +2 -2
  96. package/dist/index290.js +27 -3
  97. package/dist/index291.js +276 -467
  98. package/dist/index292.js +2 -2
  99. package/dist/index293.js +125 -3
  100. package/dist/index294.js +2 -3
  101. package/dist/index295.js +13 -278
  102. package/dist/index296.js +2 -2
  103. package/dist/index297.js +12 -121
  104. package/dist/index298.js +2 -2
  105. package/dist/index299.js +11 -10
  106. package/dist/index301.js +15 -12
  107. package/dist/index303.js +5 -15
  108. package/dist/index304.js +3 -2
  109. package/dist/index305.js +3 -19
  110. package/dist/index306.js +17 -2
  111. package/dist/index307.js +3 -200
  112. package/dist/index308.js +470 -5
  113. package/dist/index309.js +2 -3
  114. package/dist/index31.js +2 -2
  115. package/dist/index310.js +200 -3
  116. package/dist/index311.js +19 -2
  117. package/dist/index312.js +2 -5
  118. package/dist/index313.js +23 -15
  119. package/dist/index315.js +2 -27
  120. package/dist/index316.js +2 -2
  121. package/dist/index317.js +1 -1
  122. package/dist/index318.js +1 -1
  123. package/dist/index319.js +21 -1
  124. package/dist/index321.js +1 -21
  125. package/dist/index322.js +7 -0
  126. package/dist/index323.js +701 -5
  127. package/dist/index324.js +352 -699
  128. package/dist/index325.js +58 -354
  129. package/dist/index326.js +5 -58
  130. package/dist/index328.js +8 -58
  131. package/dist/index329.js +6 -58
  132. package/dist/index33.js +7 -7
  133. package/dist/index330.js +7 -32
  134. package/dist/index331.js +128 -27
  135. package/dist/index332.js +371 -0
  136. package/dist/index333.js +32 -46
  137. package/dist/index334.js +28 -7
  138. package/dist/index336.js +6 -5
  139. package/dist/index337.js +19 -8
  140. package/dist/index338.js +227 -6
  141. package/dist/index339.js +45 -17
  142. package/dist/index340.js +6 -227
  143. package/dist/index341.js +57 -127
  144. package/dist/index342.js +56 -366
  145. package/dist/index343.js +1 -1
  146. package/dist/index345.js +1 -1
  147. package/dist/index346.js +123 -476
  148. package/dist/index347.js +429 -40
  149. package/dist/index348.js +121 -123
  150. package/dist/index349.js +469 -369
  151. package/dist/index35.js +4 -4
  152. package/dist/index350.js +43 -122
  153. package/dist/index37.js +19 -19
  154. package/dist/index39.js +4 -4
  155. package/dist/index41.js +2 -2
  156. package/dist/index43.js +7 -7
  157. package/dist/index45.js +8 -8
  158. package/dist/index47.js +2 -2
  159. package/dist/index49.js +3 -3
  160. package/dist/index53.js +1 -1
  161. package/dist/index55.js +1 -1
  162. package/dist/index57.js +2 -2
  163. package/dist/index61.js +3 -3
  164. package/dist/index67.js +1 -1
  165. package/dist/index79.js +106 -112
  166. package/dist/index81.js +1 -1
  167. package/dist/index83.js +2 -2
  168. package/dist/index85.js +1 -1
  169. package/dist/index87.js +1 -1
  170. package/dist/index90.js +4 -4
  171. package/dist/index92.js +2 -2
  172. package/dist/index94.js +56 -56
  173. package/package.json +1 -1
  174. package/dist/index214.js +0 -68
  175. package/dist/index221.js +0 -8
  176. package/dist/index223.js +0 -17
  177. package/dist/index239.js +0 -31
  178. package/dist/index243.js +0 -5
  179. package/dist/index281.js +0 -13
  180. package/dist/index320.js +0 -4
  181. package/dist/index335.js +0 -10
package/dist/index79.js CHANGED
@@ -1,17 +1,16 @@
1
- import { defineComponent as U, computed as V, ref as g, createBlock as L, openBlock as b, normalizeClass as R, withCtx as T, createElementBlock as D, createCommentVNode as _, unref as p, normalizeStyle as W, renderSlot as v, Fragment as F, renderList as G, createVNode as J, mergeProps as Q, createElementVNode as X, toDisplayString as Y, normalizeProps as Z, guardReactiveProps as x } from "vue";
2
- import { findRightIndex as H } from "./index268.js";
3
- import { useId as ee } from "./index8.js";
4
- import { useIntersectionObserver as te } from "./index137.js";
5
- import { useUntil as oe } from "./index233.js";
6
- import { wait as ne } from "./index135.js";
1
+ import { defineComponent as N, computed as R, ref as g, watch as W, createBlock as h, openBlock as k, unref as f, normalizeClass as G, withCtx as T, createElementVNode as I, normalizeStyle as J, renderSlot as m, createElementBlock as q, Fragment as F, renderList as Q, createVNode as X, mergeProps as Y, createCommentVNode as A, toDisplayString as Z, normalizeProps as x, guardReactiveProps as ee } from "vue";
2
+ import { findRightIndex as D } from "./index271.js";
3
+ import { useId as te } from "./index8.js";
4
+ import { useUntil as ne } from "./index218.js";
5
+ import { wait as oe } from "./index135.js";
7
6
  import ae from "./index13.js";
8
7
  /* empty css */
9
- import A from "./index85.js";
8
+ import B from "./index85.js";
10
9
  /* empty css */
11
- import le from "./index235.js";
10
+ import le from "./index222.js";
12
11
  /* empty css */
13
- import B from "./index269.js";
14
- const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" }, Ee = /* @__PURE__ */ U({
12
+ import K from "./index272.js";
13
+ const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" }, ge = /* @__PURE__ */ N({
15
14
  __name: "BbDropdown",
16
15
  props: {
17
16
  arrowPadding: { default: 10 },
@@ -29,43 +28,43 @@ const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" },
29
28
  width: { default: 200 }
30
29
  },
31
30
  setup(O) {
32
- const u = O, d = u.id ?? `bb_${ee().id.value}`, c = V(() => {
33
- let e = u.items.findIndex((o) => !o.disabled), a = H(
31
+ const u = O, d = u.id ?? `bb_${te().id.value}`, c = R(() => {
32
+ let e = u.items.findIndex((n) => !n.disabled), o = D(
34
33
  u.items,
35
- (o) => !o.disabled
34
+ (n) => !n.disabled
36
35
  );
37
- return u.items.map((o, t) => {
38
- const n = `${d}-item-${o.key}`, { onClick: C, ...q } = o, z = async () => {
39
- await f();
36
+ return u.items.map((n, t) => {
37
+ const a = `${d}-item-${n.key}`, { onClick: _, ...C } = n, j = async () => {
38
+ await p();
40
39
  const s = document.querySelector(`#${d}`);
41
40
  if (s) s instanceof HTMLElement && s.focus();
42
41
  else return;
43
- C && C();
44
- }, N = (s) => {
42
+ _ && _();
43
+ }, z = (s) => {
45
44
  if (s.target instanceof HTMLElement && s.target.dataset.dropdownItem) {
46
45
  if (!i.value) return;
47
46
  if (s.key === "ArrowDown") {
48
- if (s.preventDefault(), i.value && t !== a) {
47
+ if (s.preventDefault(), i.value && t !== o) {
49
48
  const r = i.value.querySelector(
50
- B.map((y) => `#${n} ~ ${y}`).join(",")
49
+ K.map((v) => `#${a} ~ ${v}`).join(",")
51
50
  );
52
51
  r && r instanceof HTMLElement && r.focus();
53
52
  }
54
53
  } else if (s.key === "ArrowUp") {
55
54
  if (s.preventDefault(), i.value && t !== e) {
56
- const r = H(u.items, (k, h) => h < t && !k.disabled), w = Array.from(
55
+ const r = D(u.items, (w, L) => L < t && !w.disabled), y = Array.from(
57
56
  i.value.querySelectorAll(".bb-dropdown__item")
58
57
  )[r];
59
- w && w instanceof HTMLElement && w.focus();
58
+ y && y instanceof HTMLElement && y.focus();
60
59
  }
61
60
  } else if (s.key === "Tab") {
62
- if (t === a && !s.shiftKey) {
63
- const r = B.join(","), y = Array.from(
61
+ if (t === o && !s.shiftKey) {
62
+ const r = K.join(","), v = Array.from(
64
63
  document.querySelectorAll(r)
65
- ), w = y.findIndex(
66
- (h) => h.id === d
67
- ), k = y[w + 1];
68
- if (k) k instanceof HTMLElement && (s.preventDefault(), f(), k.focus());
64
+ ), y = v.findIndex(
65
+ (L) => L.id === d
66
+ ), w = v[y + 1];
67
+ if (w) w instanceof HTMLElement && (s.preventDefault(), p(), w.focus());
69
68
  else return;
70
69
  } else if (t === e && s.shiftKey) {
71
70
  const r = document.querySelector(`#${d}`);
@@ -76,92 +75,88 @@ const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" },
76
75
  }
77
76
  };
78
77
  return {
79
- ...q,
80
- original: o,
81
- key: o.key.split(/\W+/g).join("_").toLowerCase(),
82
- disabled: q.disabled || u.disabled,
83
- id: n,
84
- onClick: z,
85
- onKeydown: N
78
+ ...C,
79
+ original: n,
80
+ key: n.key.split(/\W+/g).join("_").toLowerCase(),
81
+ disabled: C.disabled || u.disabled,
82
+ id: a,
83
+ onClick: j,
84
+ onKeydown: z
86
85
  };
87
86
  });
88
- }), m = g(), i = g();
89
- te(
90
- m,
91
- ([{ intersectionRatio: e }]) => {
92
- e !== 1 && l.value && f();
93
- },
94
- { threshold: [0, 1] }
95
- );
96
- const l = g(!1), E = oe(l), K = () => {
97
- l.value ? f() : $();
98
- }, P = async (e) => {
99
- let a = u.items.findIndex((t) => !t.disabled), o = H(
87
+ }), b = g(), i = g(), l = g(!1), E = ne(l), P = () => {
88
+ l.value ? p() : $();
89
+ }, V = async (e) => {
90
+ let o = u.items.findIndex((t) => !t.disabled), n = D(
100
91
  u.items,
101
92
  (t) => !t.disabled
102
93
  );
103
94
  if (e.key === "ArrowDown") {
104
- if (e.preventDefault(), l.value || await $(), i.value && c.value.length && a !== -1) {
105
- const t = c.value[a].id, n = i.value.querySelector(`#${t}`);
106
- n && n instanceof HTMLElement && n.focus();
95
+ if (e.preventDefault(), l.value || await $(), i.value && c.value.length && o !== -1) {
96
+ const t = c.value[o].id, a = i.value.querySelector(`#${t}`);
97
+ a && a instanceof HTMLElement && a.focus();
107
98
  }
108
99
  } else if (e.key === "ArrowUp") {
109
- if (e.preventDefault(), l.value || await $(), i.value && c.value.length && o !== -1) {
110
- const t = c.value[o].id, n = i.value.querySelector(`#${t}`);
111
- n && n instanceof HTMLElement && n.focus();
100
+ if (e.preventDefault(), l.value || await $(), i.value && c.value.length && n !== -1) {
101
+ const t = c.value[n].id, a = i.value.querySelector(`#${t}`);
102
+ a && a instanceof HTMLElement && a.focus();
112
103
  }
113
- } else if (e.key === "Tab" && l.value && !e.shiftKey && (e.preventDefault(), i.value && c.value.length && a !== -1)) {
114
- const t = c.value[a].id, n = i.value.querySelector(`#${t}`);
115
- n && n instanceof HTMLElement && n.focus();
104
+ } else if (e.key === "Tab" && l.value && !e.shiftKey && (e.preventDefault(), i.value && c.value.length && o !== -1)) {
105
+ const t = c.value[o].id, a = i.value.querySelector(`#${t}`);
106
+ a && a instanceof HTMLElement && a.focus();
116
107
  }
117
- }, I = (e) => {
118
- const a = e.target;
119
- if (a && a instanceof HTMLElement) {
120
- let o = !0;
121
- m.value && m.value.$el.contains(a) && (o = !1), i.value && i.value.contains(a) && (o = !1), o && f();
108
+ }, H = (e) => {
109
+ const o = e.target;
110
+ if (o && o instanceof HTMLElement) {
111
+ let n = !0;
112
+ b.value && b.value.$el.contains(o) && (n = !1), i.value && i.value.contains(o) && (n = !1), n && p();
122
113
  }
123
114
  }, M = (e) => {
124
- const a = e.target;
125
- if (a && a instanceof HTMLElement) {
126
- let o = !0;
127
- m.value && m.value.$el.contains(a) && (o = !1), o && f();
115
+ const o = e.target;
116
+ if (o && o instanceof HTMLElement) {
117
+ let n = !0;
118
+ b.value && b.value.$el.contains(o) && (n = !1), n && p();
128
119
  }
129
120
  }, S = (e) => {
130
- var a;
121
+ var o;
131
122
  if (l.value && e.key === "Escape") {
132
- if (((a = document.activeElement) == null ? void 0 : a.id) !== d) {
133
- const o = document.querySelector(`#${d}`);
134
- o instanceof HTMLElement && o.focus();
123
+ if (((o = document.activeElement) == null ? void 0 : o.id) !== d) {
124
+ const n = document.querySelector(`#${d}`);
125
+ n instanceof HTMLElement && n.focus();
135
126
  }
136
- f();
127
+ p();
137
128
  }
138
- }, j = g(!1), $ = async () => {
139
- j.value = !0, await ne(50), l.value = !0, document.addEventListener("click", I, { passive: !0 }), document.addEventListener("focusin", M, { passive: !0 }), document.addEventListener("keydown", S, { passive: !0 });
140
- }, f = async () => {
141
- l.value = !1, document.removeEventListener("click", I), document.removeEventListener("focusin", M), document.removeEventListener("keydown", S);
129
+ }, U = g(!1), $ = async () => {
130
+ U.value = !0, await oe(50), l.value = !0, document.addEventListener("click", H, { passive: !0 }), document.addEventListener("focusin", M, { passive: !0 }), document.addEventListener("keydown", S, { passive: !0 });
131
+ }, p = async () => {
132
+ l.value = !1;
142
133
  };
143
- return (e, a) => (b(), L(le, {
134
+ return W(l, (e) => {
135
+ e || (document.removeEventListener("click", H), document.removeEventListener("focusin", M), document.removeEventListener("keydown", S));
136
+ }), (e, o) => (k(), h(le, {
144
137
  ref_key: "wrapper",
145
- ref: m,
138
+ ref: b,
139
+ modelValue: l.value,
140
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => l.value = n),
146
141
  "arrow-padding": e.arrowPadding,
147
142
  block: e.block,
148
- class: R(["bb-dropdown", {
143
+ class: G(["bb-dropdown", {
149
144
  [`bb-dropdown--${e.theme}`]: !0
150
145
  }]),
151
- "model-value": l.value,
152
146
  offset: e.offset,
153
147
  padding: e.padding,
154
148
  placement: e.placement,
149
+ "render-content": f(E),
155
150
  "transition-duration": e.transitionDuration
156
151
  }, {
157
152
  activator: T(() => [
158
- v(e.$slots, "activator", Z(x({
153
+ m(e.$slots, "activator", x(ee({
159
154
  props: {
160
- "aria-expanded": p(E) ? l.value : !1,
161
- "aria-controls": p(E) ? `menu_${p(d)}` : void 0,
162
- id: p(d),
163
- onClick: K,
164
- onKeydown: P,
155
+ "aria-expanded": f(E) ? l.value : !1,
156
+ "aria-controls": f(E) ? `menu_${f(d)}` : void 0,
157
+ id: f(d),
158
+ onClick: P,
159
+ onKeydown: V,
165
160
  disabled: e.disabled
166
161
  },
167
162
  disabled: e.disabled,
@@ -170,86 +165,85 @@ const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" },
170
165
  })))
171
166
  ]),
172
167
  default: T(() => [
173
- p(E) ? (b(), D("span", {
174
- key: 0,
175
- id: `menu_${p(d)}`,
168
+ I("span", {
169
+ id: `menu_${f(d)}`,
176
170
  ref_key: "content",
177
171
  ref: i,
178
- "aria-labelledby": p(d),
172
+ "aria-labelledby": f(d),
179
173
  "aria-role": "menu",
180
174
  class: "bb-dropdown__items-container",
181
175
  inert: !l.value,
182
- style: W({ width: `${e.width}px` })
176
+ style: J({ width: `${e.width}px` })
183
177
  }, [
184
- v(e.$slots, "prepend", {
178
+ m(e.$slots, "prepend", {
185
179
  disabled: e.disabled,
186
180
  open: l.value,
187
181
  placement: e.placement
188
182
  }),
189
- (b(!0), D(F, null, G(c.value, ({ original: o, ...t }, n) => (b(), D(F, {
183
+ (k(!0), q(F, null, Q(c.value, ({ original: n, ...t }, a) => (k(), q(F, {
190
184
  key: t.key
191
185
  }, [
192
- v(e.$slots, "item:prepend", {
186
+ m(e.$slots, "item:prepend", {
193
187
  disabled: t.disabled,
194
- index: n,
195
- item: e.items[n],
188
+ index: a,
189
+ item: e.items[a],
196
190
  open: l.value,
197
191
  placement: e.placement,
198
192
  text: t.text
199
193
  }),
200
- J(ae, Q({
194
+ X(ae, Y({
201
195
  "aria-role": "menuitem",
202
196
  class: ["bb-dropdown__item", {
203
- "bb-dropdown__item--first": n === 0,
204
- "bb-dropdown__item--last": n === e.items.length - 1
197
+ "bb-dropdown__item--first": a === 0,
198
+ "bb-dropdown__item--last": a === e.items.length - 1
205
199
  }],
206
200
  "data-dropdown-item": !0,
207
201
  ref_for: !0
208
202
  }, t), {
209
203
  default: T(() => [
210
- v(e.$slots, t.key, {
204
+ m(e.$slots, t.key, {
211
205
  disabled: t.disabled,
212
- index: n,
213
- item: o,
206
+ index: a,
207
+ item: n,
214
208
  open: l.value,
215
209
  placement: e.placement,
216
210
  text: t.text
217
211
  }, () => [
218
- t["prepend:icon"] ? (b(), L(A, {
212
+ t["prepend:icon"] ? (k(), h(B, {
219
213
  key: 0,
220
214
  class: "item__prepend-icon",
221
215
  type: t["prepend:icon"]
222
- }, null, 8, ["type"])) : _("", !0),
223
- X("span", ie, Y(t.text), 1),
224
- t["append:icon"] ? (b(), L(A, {
216
+ }, null, 8, ["type"])) : A("", !0),
217
+ I("span", ie, Z(t.text), 1),
218
+ t["append:icon"] ? (k(), h(B, {
225
219
  key: 1,
226
220
  class: "item__append-icon",
227
221
  type: t["append:icon"]
228
- }, null, 8, ["type"])) : _("", !0)
222
+ }, null, 8, ["type"])) : A("", !0)
229
223
  ])
230
224
  ]),
231
225
  _: 2
232
226
  }, 1040, ["class"]),
233
- v(e.$slots, "item:append", {
227
+ m(e.$slots, "item:append", {
234
228
  disabled: t.disabled,
235
- index: n,
236
- item: e.items[n],
229
+ index: a,
230
+ item: e.items[a],
237
231
  open: l.value,
238
232
  placement: e.placement,
239
233
  text: t.text
240
234
  })
241
235
  ], 64))), 128)),
242
- v(e.$slots, "append", {
236
+ m(e.$slots, "append", {
243
237
  disabled: e.disabled,
244
238
  open: l.value,
245
239
  placement: e.placement
246
240
  })
247
- ], 12, se)) : _("", !0)
241
+ ], 12, se)
248
242
  ]),
249
243
  _: 3
250
- }, 8, ["arrow-padding", "block", "class", "model-value", "offset", "padding", "placement", "transition-duration"]));
244
+ }, 8, ["modelValue", "arrow-padding", "block", "class", "offset", "padding", "placement", "render-content", "transition-duration"]));
251
245
  }
252
246
  });
253
247
  export {
254
- Ee as default
248
+ ge as default
255
249
  };
package/dist/index81.js CHANGED
@@ -9,7 +9,7 @@ import z from "./index85.js";
9
9
  /* empty css */
10
10
  import I from "./index113.js";
11
11
  /* empty css */
12
- import { useLocale as M } from "./index211.js";
12
+ import { useLocale as M } from "./index217.js";
13
13
  const O = { class: "bb-dropdown-button__content" }, R = {
14
14
  key: 1,
15
15
  class: "bb-dropdown-button__loading-label sr-only"
package/dist/index83.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, ref as g, watch as x, computed as m, createBlock as G, openBlock as V, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
2
- import { findInTree as ae } from "./index271.js";
2
+ import { findInTree as ae } from "./index266.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index111.js";
5
5
  /* empty css */
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
53
53
  const r = a.accept[t];
54
54
  if (r.includes("/")) e.push(r);
55
55
  else {
56
- b || (b = (await import("./index270.js")).default);
56
+ b || (b = (await import("./index265.js")).default);
57
57
  const o = b.getType(r);
58
58
  if (!o)
59
59
  throw new Error(
package/dist/index85.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, createElementBlock as h, openBlock as $, mergeProps as g } from "vue";
2
- import { isCssColor as I } from "./index216.js";
2
+ import { isCssColor as I } from "./index209.js";
3
3
  const B = ["innerHTML"], k = /* @__PURE__ */ v({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index87.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, createBlock as g, openBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
2
- import { throttle as c } from "./index272.js";
2
+ import { throttle as c } from "./index269.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index90.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as ae, ref as l, useAttrs as ne, computed as u, getCurrentInstance as ie, onBeforeUnmount as A, onMounted as re, watch as ue, createBlock as ce, openBlock as g, withCtx as de, createElementVNode as s, mergeProps as E, createElementBlock as $, createCommentVNode as T, renderSlot as n, createTextVNode as fe, toDisplayString as H, unref as ve, nextTick as pe } from "vue";
2
- import { useFocusTrap as be } from "./index220.js";
2
+ import { useFocusTrap as be } from "./index248.js";
3
3
  import { useId as I } from "./index8.js";
4
4
  import { wait as D } from "./index135.js";
5
- import { useModalsState as b } from "./index222.js";
6
- import me from "./index223.js";
5
+ import { useModalsState as b } from "./index250.js";
6
+ import me from "./index251.js";
7
7
  import { useMobile as ye } from "./index9.js";
8
- import { useLocale as he } from "./index211.js";
8
+ import { useLocale as he } from "./index217.js";
9
9
  const ge = ["inert"], _e = { class: "bb-offcanvas-close" }, ke = ["aria-label"], De = /* @__PURE__ */ ae({
10
10
  __name: "BbOffCanvas",
11
11
  props: {
package/dist/index92.js CHANGED
@@ -3,8 +3,8 @@ import { defineComponent as V, mergeModels as W, useModel as U, computed as d, r
3
3
  /* empty css */
4
4
  import P from "./index13.js";
5
5
  /* empty css */
6
- import { debounce as X } from "./index225.js";
7
- import { useLocale as H } from "./index211.js";
6
+ import { debounce as X } from "./index270.js";
7
+ import { useLocale as H } from "./index217.js";
8
8
  import { useRoute as J } from "./index142.js";
9
9
  const K = ["aria-label"], Q = { class: "bb-pagination__page-label sr-only" }, Y = { class: "bb-pagination__page-label" }, Z = { class: "bb-pagination__page-label" }, ee = { class: "bb-pagination__page-label sr-only" }, ue = /* @__PURE__ */ V({
10
10
  __name: "BbPagination",
package/dist/index94.js CHANGED
@@ -1,13 +1,13 @@
1
- import { defineComponent as D, ref as c, computed as h, createBlock as g, openBlock as u, normalizeClass as M, withCtx as f, createElementBlock as z, createCommentVNode as k, unref as y, renderSlot as C, createElementVNode as m, toDisplayString as I, normalizeProps as O, guardReactiveProps as S, nextTick as H } from "vue";
2
- import { useId as N } from "./index8.js";
3
- import { useIntersectionObserver as U } from "./index137.js";
4
- import { useLocale as W } from "./index211.js";
5
- import { useUntil as q } from "./index233.js";
6
- import A from "./index13.js";
1
+ import { defineComponent as V, ref as m, computed as g, createBlock as k, openBlock as y, unref as i, normalizeClass as D, withCtx as v, createElementVNode as d, createCommentVNode as M, renderSlot as C, toDisplayString as z, normalizeProps as I, guardReactiveProps as O, nextTick as S } from "vue";
2
+ import { useId as H } from "./index8.js";
3
+ import { useIntersectionObserver as N } from "./index137.js";
4
+ import { useLocale as U } from "./index217.js";
5
+ import { useUntil as W } from "./index218.js";
6
+ import q from "./index13.js";
7
7
  /* empty css */
8
- import R from "./index235.js";
8
+ import A from "./index222.js";
9
9
  /* empty css */
10
- const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @__PURE__ */ D({
10
+ const R = ["inert"], Z = { class: "bb-popover__close-label sr-only" }, ee = /* @__PURE__ */ V({
11
11
  __name: "BbPopover",
12
12
  props: {
13
13
  arrowPadding: { default: 10 },
@@ -27,75 +27,76 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
27
27
  },
28
28
  emits: ["shown", "hidden"],
29
29
  setup($, { expose: L, emit: _ }) {
30
- const t = $, n = _, { t: B } = W(), { id: P } = N(), i = `bbp_${P.value}`, r = c(), d = c();
31
- U(
30
+ const t = $, n = _, { t: B } = U(), { id: P } = H(), p = `bbp_${P.value}`, r = m(), c = m();
31
+ N(
32
32
  r,
33
33
  async ([{ intersectionRatio: e }]) => {
34
- e !== 1 && o.value && (await l(), n("hidden"));
34
+ e !== 1 && o.value && (await s(), n("hidden"));
35
35
  },
36
36
  { threshold: [0, 1] }
37
37
  );
38
- const o = c(!1), T = q(o), v = (e) => {
38
+ const o = m(!1), u = W(o), b = (e) => {
39
39
  var a;
40
- e.target instanceof HTMLElement && ((a = d.value) != null && a.contains(e.target) || l());
41
- }, E = async () => {
42
- o.value = !0, document.addEventListener("click", v);
43
- }, l = async () => {
44
- o.value = !1, document.removeEventListener("click", v);
45
- }, b = async (e) => {
46
- var w;
40
+ e.target instanceof HTMLElement && ((a = c.value) != null && a.contains(e.target) || s());
41
+ }, T = async () => {
42
+ o.value = !0, document.addEventListener("click", b);
43
+ }, s = async () => {
44
+ o.value = !1, document.removeEventListener("click", b);
45
+ }, w = async (e) => {
46
+ var h;
47
47
  if (o.value) {
48
- await l(), n("hidden");
48
+ await s(), n("hidden");
49
49
  return;
50
50
  }
51
51
  if (t.disabled)
52
52
  return;
53
- e.stopImmediatePropagation(), await E();
53
+ e.stopImmediatePropagation(), await T();
54
54
  let a = t.focusTarget ?? ".bb-popover__close";
55
- await H();
56
- const s = (w = d.value) == null ? void 0 : w.querySelector(a);
57
- s instanceof HTMLElement && (s.focus(), n("shown"));
58
- }, p = async () => {
59
- await l(), n("hidden");
60
- }, V = h(() => {
55
+ await S();
56
+ const l = (h = c.value) == null ? void 0 : h.querySelector(a);
57
+ l instanceof HTMLElement && (l.focus(), n("shown"));
58
+ }, f = async () => {
59
+ await s(), n("hidden");
60
+ }, E = g(() => {
61
61
  if (t.width) {
62
62
  let e;
63
63
  return typeof t.width == "string" && /^\d+[a-zA-Z%]+$/.test(t.width) ? t.width.includes("%") ? r.value ? `${r.value.$el.clientWidth * (+t.width.replace("%", "") / 100)}px` : void 0 : t.width : (e = `${t.width}px`, `${e}px`);
64
64
  }
65
65
  });
66
66
  return L({
67
- open: b,
68
- close: p,
69
- closed: h(() => !o.value)
70
- }), (e, a) => (u(), g(R, {
67
+ open: w,
68
+ close: f,
69
+ closed: g(() => !o.value)
70
+ }), (e, a) => (y(), k(A, {
71
71
  ref_key: "wrapper",
72
72
  ref: r,
73
73
  modelValue: o.value,
74
- "onUpdate:modelValue": a[0] || (a[0] = (s) => o.value = s),
74
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => o.value = l),
75
75
  "arrow-padding": e.arrowPadding,
76
76
  block: e.block,
77
- class: M(["bb-popover", {
77
+ class: D(["bb-popover", {
78
78
  [`bb-popover--${e.theme}`]: !0
79
79
  }]),
80
80
  "container-attributes": {
81
- id: `popover_${i}`,
81
+ id: `popover_${p}`,
82
82
  style: {
83
- width: V.value
83
+ width: E.value
84
84
  }
85
85
  },
86
86
  offset: e.offset,
87
87
  padding: e.padding,
88
88
  placement: e.placement,
89
+ "render-content": i(u),
89
90
  tag: "dialog",
90
91
  "transition-duration": e.transitionDuration
91
92
  }, {
92
- activator: f(() => [
93
- C(e.$slots, "activator", O(S({
93
+ activator: v(() => [
94
+ C(e.$slots, "activator", I(O({
94
95
  props: {
95
- "aria-controls": `popover_${i}`,
96
- "aria-expanded": o.value,
97
- onClick: b,
98
- id: i,
96
+ "aria-expanded": i(u) ? o.value : !1,
97
+ "aria-controls": i(u) ? `popover_${p}` : void 0,
98
+ onClick: w,
99
+ id: p,
99
100
  disabled: !!e.disabled
100
101
  },
101
102
  disabled: !!e.disabled,
@@ -103,27 +104,26 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
103
104
  placement: e.placement
104
105
  })))
105
106
  ]),
106
- default: f(() => [
107
- y(T) ? (u(), z("span", {
108
- key: 0,
107
+ default: v(() => [
108
+ d("span", {
109
109
  ref_key: "content",
110
- ref: d,
110
+ ref: c,
111
111
  class: "bb-popover__content",
112
112
  inert: !o.value
113
113
  }, [
114
- e.showClose ? (u(), g(A, {
114
+ e.showClose ? (y(), k(q, {
115
115
  key: 0,
116
116
  class: "bb-popover__close",
117
- onClick: p
117
+ onClick: f
118
118
  }, {
119
- default: f(() => [
120
- m("span", j, I(e.closeLabel || y(B)("common.closeLabel").value), 1),
121
- a[1] || (a[1] = m("svg", {
119
+ default: v(() => [
120
+ d("span", Z, z(e.closeLabel || i(B)("common.closeLabel").value), 1),
121
+ a[1] || (a[1] = d("svg", {
122
122
  fill: "none",
123
123
  viewBox: "0 0 24 24",
124
124
  xmlns: "http://www.w3.org/2000/svg"
125
125
  }, [
126
- m("path", {
126
+ d("path", {
127
127
  d: "M23 23L1 1M23 1L1 23",
128
128
  stroke: "currentColor",
129
129
  "stroke-linecap": "round",
@@ -132,19 +132,19 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
132
132
  ], -1))
133
133
  ]),
134
134
  _: 1
135
- })) : k("", !0),
135
+ })) : M("", !0),
136
136
  C(e.$slots, "default", {
137
- close: p,
137
+ close: f,
138
138
  disabled: !!e.disabled,
139
139
  open: o.value,
140
140
  placement: e.placement
141
141
  })
142
- ], 8, Z)) : k("", !0)
142
+ ], 8, R)
143
143
  ]),
144
144
  _: 3
145
- }, 8, ["modelValue", "arrow-padding", "block", "class", "container-attributes", "offset", "padding", "placement", "transition-duration"]));
145
+ }, 8, ["modelValue", "arrow-padding", "block", "class", "container-attributes", "offset", "padding", "placement", "render-content", "transition-duration"]));
146
146
  }
147
147
  });
148
148
  export {
149
- oe as default
149
+ ee as default
150
150
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitboss-ui",
3
- "version": "2.0.172",
3
+ "version": "2.0.174",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {