bitboss-ui 2.0.73 → 2.0.76

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 (136) hide show
  1. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +5 -0
  2. package/dist/components/BbTeleport.vue.d.ts +9 -0
  3. package/dist/index108.js +52 -57
  4. package/dist/index110.js +5 -5
  5. package/dist/index118.js +1 -1
  6. package/dist/index120.js +5 -5
  7. package/dist/index122.js +1 -1
  8. package/dist/index126.js +21 -19
  9. package/dist/index127.js +1 -1
  10. package/dist/index128.js +1 -1
  11. package/dist/index13.js +1 -1
  12. package/dist/index130.js +1 -1
  13. package/dist/index132.js +2 -2
  14. package/dist/index133.js +2 -2
  15. package/dist/index15.js +2 -2
  16. package/dist/index17.js +3 -3
  17. package/dist/index19.js +2 -2
  18. package/dist/index204.js +81 -2
  19. package/dist/index205.js +2 -2
  20. package/dist/index206.js +8 -4
  21. package/dist/index207.js +164 -2
  22. package/dist/index208.js +84 -3
  23. package/dist/index21.js +14 -14
  24. package/dist/index210.js +1 -1
  25. package/dist/index212.js +1 -1
  26. package/dist/index213.js +20 -5
  27. package/dist/index214.js +4 -16
  28. package/dist/index215.js +2 -16
  29. package/dist/index216.js +4 -19
  30. package/dist/index217.js +2 -19
  31. package/dist/index218.js +278 -24
  32. package/dist/index219.js +16 -3
  33. package/dist/index220.js +16 -2
  34. package/dist/index221.js +19 -249
  35. package/dist/index222.js +18 -51
  36. package/dist/index223.js +27 -44
  37. package/dist/index224.js +3 -5
  38. package/dist/index225.js +2 -60
  39. package/dist/index226.js +245 -122
  40. package/dist/index227.js +51 -124
  41. package/dist/index228.js +44 -2
  42. package/dist/index229.js +5 -41
  43. package/dist/index23.js +13 -13
  44. package/dist/index230.js +58 -18
  45. package/dist/index231.js +126 -6
  46. package/dist/index232.js +125 -5
  47. package/dist/index233.js +2 -369
  48. package/dist/index234.js +41 -3
  49. package/dist/index235.js +6 -7
  50. package/dist/index236.js +5 -164
  51. package/dist/index237.js +368 -83
  52. package/dist/index238.js +5 -0
  53. package/dist/index239.js +7 -4
  54. package/dist/index240.js +3 -81
  55. package/dist/index241.js +1 -1
  56. package/dist/index243.js +1 -1
  57. package/dist/index245.js +1 -1
  58. package/dist/index25.js +5 -5
  59. package/dist/index250.js +3 -4
  60. package/dist/index251.js +12 -224
  61. package/dist/index252.js +9 -3
  62. package/dist/{index279.js → index253.js} +1 -1
  63. package/dist/index254.js +17 -7
  64. package/dist/index255.js +3 -280
  65. package/dist/index263.js +1 -1
  66. package/dist/index264.js +1 -1
  67. package/dist/index265.js +1 -1
  68. package/dist/index266.js +1 -1
  69. package/dist/index27.js +1 -1
  70. package/dist/index270.js +7 -2
  71. package/dist/index271.js +4 -126
  72. package/dist/index272.js +3 -431
  73. package/dist/index274.js +176 -22
  74. package/dist/index275.js +4 -0
  75. package/dist/index276.js +126 -3
  76. package/dist/index277.js +430 -11
  77. package/dist/index278.js +21 -8
  78. package/dist/index280.js +6 -17
  79. package/dist/index281.js +16 -4
  80. package/dist/index282.js +3 -200
  81. package/dist/index283.js +7 -434
  82. package/dist/index284.js +23 -127
  83. package/dist/index285.js +9 -3
  84. package/dist/index286.js +224 -9
  85. package/dist/index287.js +200 -23
  86. package/dist/index288.js +428 -81
  87. package/dist/index289.js +127 -6
  88. package/dist/index29.js +1 -1
  89. package/dist/index290.js +89 -16
  90. package/dist/index291.js +3 -9
  91. package/dist/index292.js +1 -1
  92. package/dist/index293.js +211 -3
  93. package/dist/index294.js +2 -211
  94. package/dist/index295.js +66 -5
  95. package/dist/index296.js +5 -66
  96. package/dist/index297.js +7 -2
  97. package/dist/index298.js +32 -4
  98. package/dist/index299.js +4 -7
  99. package/dist/index300.js +7 -32
  100. package/dist/index303.js +10 -6
  101. package/dist/index305.js +4 -11
  102. package/dist/index306.js +4 -84
  103. package/dist/index307.js +61 -0
  104. package/dist/index308.js +88 -4
  105. package/dist/index31.js +2 -2
  106. package/dist/index310.js +45 -57
  107. package/dist/index311.js +2 -47
  108. package/dist/index313.js +14 -0
  109. package/dist/index314.js +1 -1
  110. package/dist/index315.js +1 -1
  111. package/dist/index316.js +2 -47
  112. package/dist/index317.js +47 -2
  113. package/dist/index318.js +4 -0
  114. package/dist/index33.js +2 -2
  115. package/dist/index35.js +3 -3
  116. package/dist/index37.js +7 -7
  117. package/dist/index39.js +3 -3
  118. package/dist/index41.js +2 -2
  119. package/dist/index43.js +2 -2
  120. package/dist/index45.js +2 -2
  121. package/dist/index55.js +1 -1
  122. package/dist/index57.js +1 -1
  123. package/dist/index59.js +21 -20
  124. package/dist/index75.js +3 -3
  125. package/dist/index79.js +2 -2
  126. package/dist/index81.js +1 -1
  127. package/dist/index84.js +2 -2
  128. package/dist/index86.js +1 -1
  129. package/dist/index88.js +4 -4
  130. package/dist/index90.js +1 -1
  131. package/dist/style.css +1 -1
  132. package/package.json +1 -1
  133. package/dist/index209.js +0 -10
  134. package/dist/index273.js +0 -178
  135. package/dist/index309.js +0 -6
  136. package/dist/index312.js +0 -4
@@ -17,12 +17,17 @@ export type BbBreadcrumbsProps = Pick<CommonProps, 'disabled'> & {
17
17
  * through `a` or `router-link`.
18
18
  */
19
19
  items: Item[];
20
+ /**
21
+ * Label of the breadcrumbs
22
+ */
23
+ label?: string;
20
24
  /**
21
25
  * Text content of the divider
22
26
  */
23
27
  divider?: string;
24
28
  };
25
29
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<BbBreadcrumbsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BbBreadcrumbsProps> & Readonly<{}>, {
30
+ label: string;
26
31
  divider: string;
27
32
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<{
28
33
  'item:prepend'?: ((props: {
@@ -0,0 +1,9 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
2
+ default?(_: {}): any;
3
+ }>;
4
+ export default _default;
5
+ type __VLS_WithTemplateSlots<T, S> = T & {
6
+ new (): {
7
+ $slots: S;
8
+ };
9
+ };
package/dist/index108.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as te, ref as r, computed as $, getCurrentInstance as le, watch as f, nextTick as ae, onMounted as ie, openBlock as h, createElementBlock as p, unref as se, normalizeClass as T, createElementVNode as c, renderSlot as k, normalizeProps as U, guardReactiveProps as W, normalizeStyle as K, Fragment as O, renderList as J, createVNode as M, withCtx as I, toDisplayString as ne, createBlock as re, Transition as oe, createCommentVNode as ue } from "vue";
1
+ import { defineComponent as ee, ref as n, computed as $, getCurrentInstance as te, watch as b, nextTick as le, onMounted as ae, openBlock as f, createElementBlock as p, unref as ie, normalizeClass as T, createElementVNode as h, renderSlot as k, normalizeProps as U, guardReactiveProps as W, normalizeStyle as se, Fragment as K, renderList as O, createVNode as J, withCtx as I, toDisplayString as re, createBlock as ne, Transition as oe, createCommentVNode as ue } from "vue";
2
2
  import { useId as de } from "./index8.js";
3
3
  import { useRoute as ce } from "./index136.js";
4
4
  import { useRouter as be } from "./index137.js";
@@ -8,7 +8,7 @@ import me from "./index13.js";
8
8
  /* empty css */
9
9
  import ve from "./index127.js";
10
10
  /* empty css */
11
- const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-tab__label" }, _e = { class: "bb-tab__panes-container" }, we = ["id", "aria-labelledby"], Re = /* @__PURE__ */ te({
11
+ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-tab__label" }, _e = { class: "bb-tab__panes-container" }, we = ["id", "aria-labelledby"], Re = /* @__PURE__ */ ee({
12
12
  __name: "BbTab",
13
13
  props: {
14
14
  disabled: { type: Boolean },
@@ -23,13 +23,13 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
23
23
  replace: { type: Boolean }
24
24
  },
25
25
  emits: ["update:modelValue"],
26
- setup(j, { expose: G, emit: Q }) {
26
+ setup(M, { expose: j, emit: G }) {
27
27
  var A, H;
28
- const t = j, X = Q, d = ce(), q = be(), S = r(), L = t.id ?? de().id.value, g = `bb-tab_${L}`, b = r(), { isScrolling: Y, arrivedState: V } = he(b), B = $(() => ({
29
- isScrolling: Y.value,
28
+ const t = M, Q = G, d = ce(), q = be(), S = n(), L = t.id ?? de().id.value, g = `bb-tab_${L}`, c = n(), { isScrolling: X, arrivedState: V } = he(c), B = $(() => ({
29
+ isScrolling: X.value,
30
30
  left: V.left,
31
31
  right: V.right
32
- })), C = !!((H = (A = le()) == null ? void 0 : A.proxy) != null && H.$inertia), i = r(null), o = $(
32
+ })), C = !!((H = (A = te()) == null ? void 0 : A.proxy) != null && H.$inertia), i = n(null), o = $(
33
33
  () => t.items.findIndex((e) => e.key === i.value)
34
34
  ), _ = $(() => o.value === 0), w = $(() => o.value === t.items.length - 1);
35
35
  t.items.forEach((e) => {
@@ -37,9 +37,9 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
37
37
  throw console.error("A tab item has no key", e), new Error("A tab item has no key " + JSON.stringify(e));
38
38
  });
39
39
  const R = () => {
40
- var e, a, l, n, s;
40
+ var e, a, l, r, s;
41
41
  if (t.navigation && ((a = (e = d.value) == null ? void 0 : e.query) != null && a[t.querykey]))
42
- i.value = (n = (l = d.value) == null ? void 0 : l.query) == null ? void 0 : n[t.querykey];
42
+ i.value = (r = (l = d.value) == null ? void 0 : l.query) == null ? void 0 : r[t.querykey];
43
43
  else if (t.navigation && C && ((s = globalThis == null ? void 0 : globalThis.location) != null && s.href) && new URL(globalThis.location.href).searchParams.get(t.querykey))
44
44
  i.value = new URL(globalThis.location.href).searchParams.get(
45
45
  t.querykey
@@ -47,7 +47,7 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
47
47
  else if (t.modelValue)
48
48
  i.value = t.modelValue;
49
49
  else if (t.items[0]) {
50
- const m = t.items.find((ee) => !ee.disabled);
50
+ const m = t.items.find((Z) => !Z.disabled);
51
51
  if (!m)
52
52
  throw new Error(
53
53
  "No tab has been selected so it defaulted to the first available. Still, all the tabs are disabled so no tab can be selected."
@@ -58,8 +58,8 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
58
58
  };
59
59
  R();
60
60
  const y = async (e, a = !1) => {
61
- var l, n, s, m;
62
- if (t.navigation && d.value && ((n = (l = d.value) == null ? void 0 : l.query) == null ? void 0 : n[t.querykey]) !== e)
61
+ var l, r, s, m;
62
+ if (t.navigation && d.value && ((r = (l = d.value) == null ? void 0 : l.query) == null ? void 0 : r[t.querykey]) !== e)
63
63
  q == null || q.push({
64
64
  ...d,
65
65
  query: { ...(s = d.value) == null ? void 0 : s.query, [t.querykey]: e },
@@ -71,7 +71,7 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
71
71
  a ? history.replaceState({}, "", v.toString()) : history.pushState({}, "", v.toString());
72
72
  });
73
73
  }
74
- t.modelValue !== e && X("update:modelValue", e), i.value = e;
74
+ t.modelValue !== e && Q("update:modelValue", e), i.value = e;
75
75
  };
76
76
  i.value && y(i.value, !0);
77
77
  const u = (e) => {
@@ -101,11 +101,11 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
101
101
  if (a === null)
102
102
  throw new Error("Could not navigate to next tab");
103
103
  if (t.items[a].disabled) return;
104
- const l = t.items[a].key, n = document.querySelector(
104
+ const l = t.items[a].key, r = document.querySelector(
105
105
  `#${g}_tab_${l}`
106
106
  );
107
- n == null || n.focus(), y(l, t.replace);
108
- }, Z = (e) => {
107
+ r == null || r.focus(), y(l, t.replace);
108
+ }, Y = (e) => {
109
109
  if (!t.disabled)
110
110
  if (e.key === "ArrowRight")
111
111
  u("next");
@@ -118,12 +118,12 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
118
118
  else
119
119
  return;
120
120
  };
121
- f(
121
+ b(
122
122
  () => t.modelValue,
123
123
  (e) => {
124
124
  e && y(e, t.replace);
125
125
  }
126
- ), f(
126
+ ), b(
127
127
  () => {
128
128
  var e, a;
129
129
  return (a = (e = d.value) == null ? void 0 : e.query) == null ? void 0 : a[t.querykey];
@@ -131,14 +131,14 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
131
131
  (e) => {
132
132
  e && typeof e == "string" && y(e, t.replace);
133
133
  }
134
- ), f(
134
+ ), b(
135
135
  i,
136
136
  async () => {
137
137
  if (S.value) {
138
138
  const e = S.value.querySelector(
139
139
  "[role=tablist] .bb-tab__btn--active"
140
140
  );
141
- e && (await ae(), e.scrollIntoView({
141
+ e && (await le(), e.scrollIntoView({
142
142
  behavior: "smooth",
143
143
  block: "nearest",
144
144
  inline: "nearest"
@@ -147,28 +147,28 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
147
147
  },
148
148
  { flush: "post" }
149
149
  );
150
- const P = r("right");
151
- f(
150
+ const P = n("right");
151
+ b(
152
152
  i,
153
153
  (e, a) => {
154
154
  if (e && a) {
155
- const l = t.items.findIndex((s) => s.key === e), n = t.items.findIndex((s) => s.key === a);
156
- P.value = l > n ? "right" : "left";
155
+ const l = t.items.findIndex((s) => s.key === e), r = t.items.findIndex((s) => s.key === a);
156
+ P.value = l > r ? "right" : "left";
157
157
  }
158
158
  },
159
159
  { flush: "sync" }
160
160
  );
161
- const E = r(0), z = r(0), D = r(0), F = r(0), N = r(0), x = () => {
162
- if (!b.value)
161
+ const E = n(0), z = n(0), D = n(0), F = n(0), N = n(0), x = () => {
162
+ if (!c.value)
163
163
  return;
164
- const e = b.value.querySelector(
164
+ const e = c.value.querySelector(
165
165
  ".bb-tab__btn--active"
166
166
  );
167
- e && (D.value = e.offsetLeft, F.value = e.offsetTop, E.value = e.clientWidth, z.value = e.clientHeight, N.value = b.value.scrollWidth);
167
+ e && (D.value = e.offsetLeft, F.value = e.offsetTop, E.value = e.clientWidth, z.value = e.clientHeight, N.value = c.value.scrollWidth);
168
168
  };
169
- return ie(x), f(i, x, { flush: "post" }), ye(b, () => {
169
+ return ae(x), b(i, x, { flush: "post" }), ye(c, () => {
170
170
  x();
171
- }), f(
171
+ }), b(
172
172
  () => t.items,
173
173
  () => {
174
174
  i.value && !t.items.find((e) => e.key === i.value) && R();
@@ -177,14 +177,14 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
177
177
  immediate: !0,
178
178
  deep: !0
179
179
  }
180
- ), G({
180
+ ), j({
181
181
  isFirst: _,
182
182
  isLast: w,
183
183
  current: i,
184
184
  currentIndex: o,
185
185
  goTo: u
186
- }), (e, a) => (h(), p("div", {
187
- id: se(L),
186
+ }), (e, a) => (f(), p("div", {
187
+ id: ie(L),
188
188
  ref_key: "tabs",
189
189
  ref: S,
190
190
  class: T(["bb-tab", {
@@ -192,41 +192,36 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
192
192
  "bb-tab--disabled": !0
193
193
  }])
194
194
  }, [
195
- c("div", ke, [
196
- c("span", null, [
195
+ h("div", ke, [
196
+ h("span", null, [
197
197
  k(e.$slots, "header:prepend", U(W(B.value)))
198
198
  ]),
199
- c("ul", {
199
+ h("ul", {
200
200
  ref_key: "tablist",
201
- ref: b,
201
+ ref: c,
202
202
  class: "bb-tab__label-container",
203
203
  role: "tablist",
204
- style: K({
205
- "--inner-width": `${N.value}px`
204
+ style: se({
205
+ "--inner-width": `${N.value}px`,
206
+ "--width": `${E.value}px`,
207
+ "--height": `${z.value}px`,
208
+ "--left": `${D.value}px`,
209
+ "--top": `${F.value}px`
206
210
  })
207
211
  }, [
208
- c("span", {
209
- class: "bb-tab__highlight",
210
- style: K({
211
- "--width": `${E.value}px`,
212
- "--height": `${z.value}px`,
213
- "--left": `${D.value}px`,
214
- "--top": `${F.value}px`
215
- })
216
- }, null, 4),
217
- (h(!0), p(O, null, J(e.items, (l) => (h(), p("li", {
212
+ (f(!0), p(K, null, O(e.items, (l) => (f(), p("li", {
218
213
  key: l.key,
219
214
  role: "presentation"
220
215
  }, [
221
- M(me, {
216
+ J(me, {
222
217
  id: `${g}_tab_${l.key}`,
223
218
  "aria-selected": i.value === l.key,
224
219
  class: T(["bb-tab__btn", { "bb-tab__btn--active": i.value === l.key }]),
225
220
  disabled: l.disabled || e.disabled,
226
221
  role: "tab",
227
222
  tabindex: i.value === l.key ? 0 : -1,
228
- onClick: (n) => y(l.key, t.replace),
229
- onKeydown: Z
223
+ onClick: (r) => y(l.key, t.replace),
224
+ onKeydown: Y
230
225
  }, {
231
226
  default: I(() => [
232
227
  k(e.$slots, `label-${l.key}`, {
@@ -251,7 +246,7 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
251
246
  text: l.label,
252
247
  value: l.key
253
248
  }, () => [
254
- c("span", ge, ne(l.label), 1)
249
+ h("span", ge, re(l.label), 1)
255
250
  ])
256
251
  ])
257
252
  ]),
@@ -259,20 +254,20 @@ const pe = ["id"], ke = { class: "bb-tab__label-boundary" }, ge = { class: "bb-t
259
254
  }, 1032, ["id", "aria-selected", "class", "disabled", "tabindex", "onClick"])
260
255
  ]))), 128))
261
256
  ], 4),
262
- c("span", null, [
257
+ h("span", null, [
263
258
  k(e.$slots, "header:append", U(W(B.value)))
264
259
  ])
265
260
  ]),
266
- c("div", _e, [
267
- M(ve, null, {
261
+ h("div", _e, [
262
+ J(ve, null, {
268
263
  default: I(() => [
269
- (h(!0), p(O, null, J(e.items, (l) => (h(), re(oe, {
264
+ (f(!0), p(K, null, O(e.items, (l) => (f(), ne(oe, {
270
265
  key: l.key,
271
266
  css: e.animate,
272
267
  name: `tab-slide-${P.value}`
273
268
  }, {
274
269
  default: I(() => [
275
- i.value === l.key || e.eager || l.eager ? (h(), p("section", {
270
+ i.value === l.key || e.eager || l.eager ? (f(), p("section", {
276
271
  key: 0,
277
272
  id: `${g}_tabpanel_${l.key}`,
278
273
  "aria-labelledby": `${g}_tab_${l.key}`,
package/dist/index110.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as oe, ref as j, computed as m, toRef as B, watch as ne, openBlock as n, createBlock as de, resolveDynamicComponent as ce, normalizeClass as r, unref as y, withCtx as ie, createElementBlock as d, toDisplayString as u, createCommentVNode as _, createElementVNode as o, renderSlot as p, createVNode as R, Fragment as w, renderList as T, createTextVNode as be, mergeProps as re } from "vue";
2
- import { add as ue } from "./index297.js";
3
- import { clamp as pe } from "./index204.js";
2
+ import { add as ue } from "./index294.js";
3
+ import { clamp as pe } from "./index205.js";
4
4
  import { isNil as M } from "./index129.js";
5
5
  import { useId as fe } from "./index8.js";
6
- import { useItemValue as me } from "./index279.js";
7
- import { when as ye } from "./index206.js";
6
+ import { useItemValue as me } from "./index253.js";
7
+ import { when as ye } from "./index216.js";
8
8
  import J from "./index17.js";
9
9
  /* empty css */
10
10
  import he from "./index31.js";
11
11
  /* empty css */
12
- import { useOptions as ke } from "./index236.js";
12
+ import { useOptions as ke } from "./index207.js";
13
13
  const _e = {
14
14
  key: 0,
15
15
  class: "sr-only"
package/dist/index118.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as s, openBlock as e, createBlock as o, Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as f, Fragment as d, renderList as _, unref as r, mergeProps as b } from "vue";
2
2
  import { state as k, useToast as C } from "./index11.js";
3
- import B from "./index296.js";
3
+ import B from "./index295.js";
4
4
  const N = /* @__PURE__ */ s({
5
5
  __name: "BbToast",
6
6
  props: {
package/dist/index120.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as V, defineAsyncComponent as H, ref as o, watch as z, computed as A, openBlock as C, createElementBlock as I, mergeProps as R, createElementVNode as c, renderSlot as B, normalizeProps as S, guardReactiveProps as U, unref as u, createVNode as W, withCtx as E, createBlock as j, createCommentVNode as q } from "vue";
2
- import { useFloating as G, arrow as J } from "./index226.js";
2
+ import { useFloating as G, arrow as J } from "./index231.js";
3
3
  import { useId as K } from "./index8.js";
4
4
  import { wait as D } from "./index131.js";
5
5
  import Q from "./index13.js";
6
6
  /* empty css */
7
- import { throttle as m } from "./index234.js";
8
- import { waitFor as X } from "./index231.js";
9
- import { autoUpdate as Y, flip as Z, shift as x, hide as ee } from "./index233.js";
7
+ import { throttle as m } from "./index238.js";
8
+ import { waitFor as X } from "./index235.js";
9
+ import { autoUpdate as Y, flip as Z, shift as x, hide as ee } from "./index237.js";
10
10
  const de = /* @__PURE__ */ V({
11
11
  __name: "BbTooltip",
12
12
  props: {
@@ -24,7 +24,7 @@ const de = /* @__PURE__ */ V({
24
24
  },
25
25
  setup(L) {
26
26
  const M = H(
27
- () => import("./index285.js")
27
+ () => import("./index282.js")
28
28
  ), t = L, v = `bb_${t.id ?? K().id.value}`, s = o(), d = o(), P = o(), { placement: b, middlewareData: _ } = G(s, d, {
29
29
  placement: t.placement,
30
30
  whileElementsMounted: Y,
package/dist/index122.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
2
- import { flattenTree as T } from "./index295.js";
2
+ import { flattenTree as T } from "./index296.js";
3
3
  const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
4
4
  __name: "BbTree",
5
5
  props: {
package/dist/index126.js CHANGED
@@ -1,46 +1,48 @@
1
- import { defineComponent as m, getCurrentInstance as d, inject as x, computed as l, ref as y, watchEffect as z, openBlock as _, createElementBlock as b, mergeProps as h } from "vue";
2
- import { isCssColor as w } from "./index205.js";
3
- const g = ["innerHTML"], $ = /* @__PURE__ */ m({
1
+ import { defineComponent as d, getCurrentInstance as x, inject as y, computed as p, ref as z, onServerPrefetch as _, onBeforeMount as b, watch as h, openBlock as v, createElementBlock as w, mergeProps as g } from "vue";
2
+ import { isCssColor as I } from "./index215.js";
3
+ const B = ["innerHTML"], N = /* @__PURE__ */ d({
4
4
  __name: "BbIcon",
5
5
  props: {
6
6
  size: { default: "md" },
7
7
  color: {},
8
8
  type: {}
9
9
  },
10
- setup(p) {
11
- var i, r;
12
- const e = p;
10
+ setup(u) {
11
+ var r, c;
12
+ const e = u;
13
13
  let t;
14
- !!((r = (i = d()) == null ? void 0 : i.proxy) != null && r.$nuxt) ? process.client && (t = useNuxtApp().$icons) : t = x("icons");
15
- const u = {
14
+ !!((c = (r = x()) == null ? void 0 : r.proxy) != null && c.$nuxt) ? process.client && (t = useNuxtApp().$icons) : t = y("icons");
15
+ const f = {
16
16
  xs: 12,
17
17
  sm: 16,
18
18
  md: 24,
19
19
  lg: 28,
20
20
  xl: 36,
21
21
  xxl: 40
22
- }, f = l(() => {
23
- const s = {
22
+ }, a = p(() => {
23
+ const i = {
24
24
  "bb-icon": !0
25
25
  };
26
- let c = { "--size": l(() => {
26
+ let l = { "--size": p(() => {
27
27
  let o;
28
- return typeof e.size == "string" ? o = u[e.size] ?? parseInt(e.size, 10) : typeof e.size == "number" ? o = e.size : o = 24, o + "px";
28
+ return typeof e.size == "string" ? o = f[e.size] ?? parseInt(e.size, 10) : typeof e.size == "number" ? o = e.size : o = 24, o + "px";
29
29
  }).value };
30
- return e.color && (w(e.color) ? c.color = e.color : s[`bb-icon--${e.color}`] = !0), {
31
- class: s,
32
- style: c
30
+ return e.color && (I(e.color) ? l.color = e.color : i[`bb-icon--${e.color}`] = !0), {
31
+ class: i,
32
+ style: l
33
33
  };
34
- }), n = y(null);
35
- return z(async () => {
34
+ }), n = z(null), s = async () => {
36
35
  if (t) {
37
36
  if (typeof t[e.type] > "u")
38
37
  throw new Error(`Icon "${e.type}" does not exist.`);
39
38
  n.value = await t[e.type]();
40
39
  }
41
- }), (s, a) => (_(), b("i", h(f.value, { innerHTML: n.value }), null, 16, g));
40
+ };
41
+ return _(s), b(() => {
42
+ n.value || s();
43
+ }), h(() => e.type, s), (i, m) => (v(), w("i", g(a.value, { innerHTML: n.value }), null, 16, B));
42
44
  }
43
45
  });
44
46
  export {
45
- $ as default
47
+ N as default
46
48
  };
package/dist/index127.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
2
- import { throttle as g } from "./index234.js";
2
+ import { throttle as g } from "./index238.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index128.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as s, openBlock as b, createElementBlock as a, normalizeProps as _, guardReactiveProps as x, createStaticVNode as m } from "vue";
2
- import { isCssColor as u } from "./index205.js";
2
+ import { isCssColor as u } from "./index215.js";
3
3
  const f = /* @__PURE__ */ p({
4
4
  __name: "BbSpinner",
5
5
  props: {
package/dist/index13.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as k, getCurrentInstance as u, resolveComponent as p, computed as d, openBlock as v, createBlock as h, resolveDynamicComponent as C, unref as x, mergeProps as S, withCtx as L, renderSlot as B, createTextVNode as N, toDisplayString as $ } from "vue";
2
2
  import { _config as n } from "./index4.js";
3
- import { useLogger as m } from "./index209.js";
3
+ import { useLogger as m } from "./index206.js";
4
4
  const _ = /* @__PURE__ */ k({
5
5
  __name: "BaseButton",
6
6
  props: {
package/dist/index130.js CHANGED
@@ -1,4 +1,4 @@
1
- import { clamp as o } from "./index204.js";
1
+ import { clamp as o } from "./index205.js";
2
2
  const r = (t, e) => t * 100 / e, p = (t, e) => t / 100 * e, l = (t, e, n) => r(t - e, n - e), P = ({
3
3
  value: t = 0,
4
4
  originalBounds: e,
package/dist/index132.js CHANGED
@@ -1,5 +1,5 @@
1
- import { toValue as O, tryOnScopeDispose as R, notNullish as $, noop as M, useDebounceFn as q, useThrottleFn as G, tryOnMounted as X, isClient as J, isObject as K } from "./index240.js";
2
- import { createFilterWrapper as ve, debounceFilter as de, getLifeCycleTarget as pe, throttleFilter as me } from "./index240.js";
1
+ import { toValue as O, tryOnScopeDispose as R, notNullish as $, noop as M, useDebounceFn as q, useThrottleFn as G, tryOnMounted as X, isClient as J, isObject as K } from "./index204.js";
2
+ import { createFilterWrapper as ve, debounceFilter as de, getLifeCycleTarget as pe, throttleFilter as me } from "./index204.js";
3
3
  import { computed as S, watch as z, ref as w, reactive as k, getCurrentInstance as U, onMounted as Z, watchEffect as ee } from "vue";
4
4
  function L(l) {
5
5
  var o;
package/dist/index133.js CHANGED
@@ -1,5 +1,5 @@
1
- import { isArray as p } from "./index298.js";
2
- import { isPlainObject as c } from "./index299.js";
1
+ import { isArray as p } from "./index299.js";
2
+ import { isPlainObject as c } from "./index300.js";
3
3
  function i(e, n, u, l, r) {
4
4
  const o = {}.propertyIsEnumerable.call(l, n) ? "enumerable" : "nonenumerable";
5
5
  o === "enumerable" && (e[n] = u), r && o === "nonenumerable" && Object.defineProperty(e, n, {
package/dist/index15.js CHANGED
@@ -2,8 +2,8 @@ import { defineComponent as k, ref as y, computed as v, watchPostEffect as h, op
2
2
  import z from "./index210.js";
3
3
  /* empty css */
4
4
  import I from "./index212.js";
5
- import { vMaska as M } from "./index230.js";
6
- import { isHex as D } from "./index239.js";
5
+ import { vMaska as M } from "./index213.js";
6
+ import { isHex as D } from "./index214.js";
7
7
  const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], P = ["aria-invalid", "disabled", "required"], T = /* @__PURE__ */ k({
8
8
  __name: "BaseColorInput",
9
9
  props: {
package/dist/index17.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as E, ref as m, computed as n, watch as _, openBlock as p, createElementBlock as h, normalizeProps as i, guardReactiveProps as f, mergeProps as k, createCommentVNode as I, createElementVNode as s, renderSlot as q } from "vue";
2
- import { isCssColor as y } from "./index205.js";
3
- import { when as F } from "./index206.js";
4
- import { booleanishToBoolean as N } from "./index207.js";
2
+ import { isCssColor as y } from "./index215.js";
3
+ import { when as F } from "./index216.js";
4
+ import { booleanishToBoolean as N } from "./index217.js";
5
5
  const S = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"
package/dist/index19.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as $, ref as p, toRef as l, openBlock as B, createBlock as w, unref as f, withCtx as i, renderSlot as s, normalizeProps as b, guardReactiveProps as h, createVNode as O, mergeProps as v } from "vue";
2
- import { useOptions as z } from "./index236.js";
2
+ import { useOptions as z } from "./index207.js";
3
3
  import F from "./index17.js";
4
4
  /* empty css */
5
- import M from "./index237.js";
5
+ import M from "./index208.js";
6
6
  /* empty css */
7
7
  const A = /* @__PURE__ */ $({
8
8
  __name: "BaseCheckboxGroup",
package/dist/index204.js CHANGED
@@ -1,4 +1,83 @@
1
- const n = (t, a, m) => Math.min(Math.max(t, a), m);
1
+ import { getCurrentScope as g, onScopeDispose as D, unref as x, onMounted as O, nextTick as S, isRef as C, getCurrentInstance as F } from "vue";
2
+ function G(e) {
3
+ return g() ? (D(e), !0) : !1;
4
+ }
5
+ function d(e) {
6
+ return typeof e == "function" ? e() : x(e);
7
+ }
8
+ const L = typeof window < "u" && typeof document < "u";
9
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
10
+ const V = (e) => e != null, P = Object.prototype.toString, A = (e) => P.call(e) === "[object Object]", m = () => {
11
+ };
12
+ function h(e, r) {
13
+ function t(...n) {
14
+ return new Promise((o, i) => {
15
+ Promise.resolve(e(() => r.apply(this, n), { fn: r, thisArg: this, args: n })).then(o).catch(i);
16
+ });
17
+ }
18
+ return t;
19
+ }
20
+ function W(e, r = {}) {
21
+ let t, n, o = m;
22
+ const i = (l) => {
23
+ clearTimeout(l), o(), o = m;
24
+ };
25
+ return (l) => {
26
+ const c = d(e), u = d(r.maxWait);
27
+ return t && i(t), c <= 0 || u !== void 0 && u <= 0 ? (n && (i(n), n = null), Promise.resolve(l())) : new Promise((s, T) => {
28
+ o = r.rejectOnCancel ? T : s, u && !n && (n = setTimeout(() => {
29
+ t && i(t), n = null, s(l());
30
+ }, u)), t = setTimeout(() => {
31
+ n && i(n), n = null, s(l());
32
+ }, c);
33
+ });
34
+ };
35
+ }
36
+ function M(...e) {
37
+ let r = 0, t, n = !0, o = m, i, a, l, c, u;
38
+ !C(e[0]) && typeof e[0] == "object" ? { delay: a, trailing: l = !0, leading: c = !0, rejectOnCancel: u = !1 } = e[0] : [a, l = !0, c = !0, u = !1] = e;
39
+ const s = () => {
40
+ t && (clearTimeout(t), t = void 0, o(), o = m);
41
+ };
42
+ return (w) => {
43
+ const f = d(a), y = Date.now() - r, p = () => i = w();
44
+ return s(), f <= 0 ? (r = Date.now(), p()) : (y > f && (c || !n) ? (r = Date.now(), p()) : l && (i = new Promise((b, j) => {
45
+ o = u ? j : b, t = setTimeout(() => {
46
+ r = Date.now(), n = !0, b(p()), s();
47
+ }, Math.max(0, f - y));
48
+ })), !c && !t && (t = setTimeout(() => n = !0, f)), n = !1, i);
49
+ };
50
+ }
51
+ function R(e) {
52
+ return F();
53
+ }
54
+ function E(e, r = 200, t = {}) {
55
+ return h(
56
+ W(r, t),
57
+ e
58
+ );
59
+ }
60
+ function I(e, r = 200, t = !1, n = !0, o = !1) {
61
+ return h(
62
+ M(r, t, n, o),
63
+ e
64
+ );
65
+ }
66
+ function N(e, r = !0, t) {
67
+ R() ? O(e, t) : r ? e() : S(e);
68
+ }
2
69
  export {
3
- n as clamp
70
+ h as createFilterWrapper,
71
+ W as debounceFilter,
72
+ R as getLifeCycleTarget,
73
+ L as isClient,
74
+ A as isObject,
75
+ m as noop,
76
+ V as notNullish,
77
+ M as throttleFilter,
78
+ d as toValue,
79
+ N as tryOnMounted,
80
+ G as tryOnScopeDispose,
81
+ E as useDebounceFn,
82
+ I as useThrottleFn
4
83
  };
package/dist/index205.js CHANGED
@@ -1,4 +1,4 @@
1
- const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
1
+ const n = (t, a, m) => Math.min(Math.max(t, a), m);
2
2
  export {
3
- s as isCssColor
3
+ n as clamp
4
4
  };
package/dist/index206.js CHANGED
@@ -1,6 +1,10 @@
1
- import { curry as e } from "./index250.js";
2
- const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
1
+ const o = "bitboss-ui | ", e = () => ({
2
+ warn: (r) => console.warn(`${o}${r}`),
3
+ error: (r) => console.error(`${o}${r}`),
4
+ throw: (r) => {
5
+ throw new Error(`${o}${r}`);
6
+ }
7
+ });
3
8
  export {
4
- t as baseWhen,
5
- s as when
9
+ e as useLogger
6
10
  };