bitboss-ui 2.0.28 → 2.0.30

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 (139) hide show
  1. package/dist/index104.js +68 -61
  2. package/dist/index106.js +4 -4
  3. package/dist/index114.js +1 -1
  4. package/dist/index116.js +5 -5
  5. package/dist/index118.js +1 -1
  6. package/dist/index121.js +4 -4
  7. package/dist/index122.js +1 -1
  8. package/dist/index123.js +1 -1
  9. package/dist/index124.js +1 -1
  10. package/dist/index126.js +1 -1
  11. package/dist/index128.js +2 -2
  12. package/dist/index129.js +1 -1
  13. package/dist/index13.js +1 -1
  14. package/dist/index15.js +3 -3
  15. package/dist/index17.js +2 -2
  16. package/dist/index19.js +14 -14
  17. package/dist/index198.js +7 -80
  18. package/dist/index199.js +2 -2
  19. package/dist/index200.js +4 -8
  20. package/dist/index201.js +2 -3
  21. package/dist/index202.js +126 -3
  22. package/dist/index203.js +5 -35
  23. package/dist/index204.js +123 -6
  24. package/dist/index205.js +19 -7
  25. package/dist/index206.js +16 -43
  26. package/dist/index207.js +18 -0
  27. package/dist/index208.js +2 -13
  28. package/dist/index209.js +2 -281
  29. package/dist/index21.js +15 -15
  30. package/dist/index210.js +35 -16
  31. package/dist/index211.js +172 -14
  32. package/dist/index212.js +6 -19
  33. package/dist/index213.js +43 -19
  34. package/dist/index215.js +13 -3
  35. package/dist/index216.js +5 -2
  36. package/dist/index217.js +366 -246
  37. package/dist/index218.js +80 -51
  38. package/dist/index219.js +2 -44
  39. package/dist/index220.js +19 -5
  40. package/dist/index221.js +27 -49
  41. package/dist/index222.js +3 -126
  42. package/dist/index223.js +244 -118
  43. package/dist/index224.js +52 -2
  44. package/dist/index225.js +43 -173
  45. package/dist/index226.js +4 -4
  46. package/dist/index227.js +49 -369
  47. package/dist/index228.js +3 -158
  48. package/dist/index229.js +3 -84
  49. package/dist/index23.js +5 -5
  50. package/dist/index230.js +9 -0
  51. package/dist/index231.js +158 -2
  52. package/dist/index232.js +84 -4
  53. package/dist/index234.js +1 -1
  54. package/dist/index236.js +1 -1
  55. package/dist/index238.js +1 -1
  56. package/dist/index243.js +3 -224
  57. package/dist/index244.js +4 -3
  58. package/dist/index245.js +6 -9
  59. package/dist/index246.js +16 -23
  60. package/dist/index247.js +9 -6
  61. package/dist/index248.js +23 -16
  62. package/dist/index25.js +39 -36
  63. package/dist/index250.js +277 -427
  64. package/dist/index251.js +5 -88
  65. package/dist/index252.js +2 -3
  66. package/dist/index253.js +4 -0
  67. package/dist/index254.js +2 -7
  68. package/dist/index255.js +2 -200
  69. package/dist/index256.js +2 -6
  70. package/dist/index257.js +126 -2
  71. package/dist/index258.js +431 -2
  72. package/dist/index259.js +3 -2
  73. package/dist/index261.js +7 -2
  74. package/dist/index262.js +22 -2
  75. package/dist/index264.js +2 -2
  76. package/dist/index265.js +2 -2
  77. package/dist/index266.js +1 -1
  78. package/dist/index267.js +2 -28
  79. package/dist/index268.js +1 -21
  80. package/dist/index269.js +4 -0
  81. package/dist/index27.js +3 -3
  82. package/dist/index270.js +28 -2
  83. package/dist/index271.js +21 -125
  84. package/dist/index273.js +226 -0
  85. package/dist/index274.js +436 -3
  86. package/dist/index275.js +126 -11
  87. package/dist/index276.js +199 -8
  88. package/dist/index277.js +89 -9
  89. package/dist/index278.js +3 -17
  90. package/dist/index279.js +11 -3
  91. package/dist/index280.js +7 -434
  92. package/dist/index281.js +8 -126
  93. package/dist/index282.js +17 -5
  94. package/dist/index283.js +5 -66
  95. package/dist/index285.js +65 -2
  96. package/dist/index286.js +1 -1
  97. package/dist/index287.js +3 -211
  98. package/dist/index288.js +211 -15
  99. package/dist/index289.js +15 -79
  100. package/dist/index29.js +2 -2
  101. package/dist/index290.js +81 -0
  102. package/dist/index292.js +4 -4
  103. package/dist/index293.js +4 -59
  104. package/dist/index294.js +58 -6
  105. package/dist/index295.js +34 -6
  106. package/dist/index296.js +6 -18
  107. package/dist/index297.js +18 -34
  108. package/dist/index298.js +6 -10
  109. package/dist/index299.js +2 -2
  110. package/dist/index300.js +1 -1
  111. package/dist/index301.js +10 -479
  112. package/dist/index302.js +482 -0
  113. package/dist/index304.js +416 -42
  114. package/dist/index305.js +47 -2
  115. package/dist/index31.js +2 -2
  116. package/dist/index33.js +3 -3
  117. package/dist/index35.js +9 -9
  118. package/dist/index37.js +3 -3
  119. package/dist/index39.js +2 -2
  120. package/dist/index41.js +2 -2
  121. package/dist/index43.js +4 -4
  122. package/dist/index45.js +2 -2
  123. package/dist/index47.js +2 -2
  124. package/dist/index53.js +1 -1
  125. package/dist/index55.js +1 -1
  126. package/dist/index71.js +3 -3
  127. package/dist/index75.js +2 -2
  128. package/dist/index77.js +1 -1
  129. package/dist/index80.js +2 -2
  130. package/dist/index84.js +3 -3
  131. package/dist/index86.js +1 -1
  132. package/package.json +1 -1
  133. package/dist/index214.js +0 -29
  134. package/dist/index233.js +0 -4
  135. package/dist/index263.js +0 -4
  136. package/dist/index272.js +0 -24
  137. package/dist/index291.js +0 -6
  138. package/dist/index303.js +0 -423
  139. /package/dist/{index260.js → index306.js} +0 -0
package/dist/index104.js CHANGED
@@ -1,14 +1,15 @@
1
- import { defineComponent as le, ref as u, computed as _, getCurrentInstance as ae, watch as h, nextTick as se, onMounted as ie, openBlock as b, createElementBlock as y, unref as re, normalizeClass as S, createElementVNode as c, renderSlot as m, normalizeProps as J, guardReactiveProps as M, normalizeStyle as ne, Fragment as O, renderList as j, createVNode as G, withCtx as x, toDisplayString as oe, createBlock as ue, Transition as de, createCommentVNode as ce } from "vue";
2
- import { useId as be } from "./index8.js";
3
- import { useRoute as fe } from "./index132.js";
4
- import { useRouter as he } from "./index133.js";
5
- import { wait as ye } from "./index127.js";
6
- import { useScroll as me } from "./index128.js";
7
- import ve from "./index13.js";
1
+ import { defineComponent as ae, ref as u, computed as _, getCurrentInstance as se, watch as h, nextTick as ie, onMounted as ne, onBeforeUnmount as re, openBlock as b, createElementBlock as y, unref as oe, normalizeClass as S, createElementVNode as c, renderSlot as m, normalizeProps as M, guardReactiveProps as O, normalizeStyle as ue, Fragment as j, renderList as G, createVNode as Q, withCtx as x, toDisplayString as de, createBlock as ce, Transition as be, createCommentVNode as fe } from "vue";
2
+ import { useId as he } from "./index8.js";
3
+ import { useRoute as ye } from "./index132.js";
4
+ import { useRouter as me } from "./index133.js";
5
+ import { wait as ve } from "./index127.js";
6
+ import { useScroll as pe } from "./index128.js";
7
+ import ke from "./index13.js";
8
8
  /* empty css */
9
- import pe from "./index123.js";
9
+ import ge from "./index123.js";
10
10
  /* empty css */
11
- const ke = ["id"], ge = { class: "bb-tab__label-boundary" }, _e = { class: "bb-tab__label" }, we = { class: "bb-tab__panes-container" }, $e = ["id", "aria-labelledby"], Ee = /* @__PURE__ */ le({
11
+ import { useDebounceFn as _e } from "./index218.js";
12
+ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-tab__label" }, Se = { class: "bb-tab__panes-container" }, xe = ["id", "aria-labelledby"], Fe = /* @__PURE__ */ ae({
12
13
  __name: "BbTab",
13
14
  props: {
14
15
  disabled: { type: Boolean },
@@ -23,21 +24,21 @@ const ke = ["id"], ge = { class: "bb-tab__label-boundary" }, _e = { class: "bb-t
23
24
  replace: { type: Boolean }
24
25
  },
25
26
  emits: ["update:modelValue"],
26
- setup(Q, { expose: X, emit: Y }) {
27
- var F, N, z, A, H, U, K;
28
- const t = Q, Z = Y, d = fe(), w = he(), $ = u(), T = t.id ?? be().id.value, v = `bb-tab_${T}`, p = u(), { isScrolling: ee, arrivedState: I } = me(p), L = _(() => ({
29
- isScrolling: ee.value,
30
- left: I.left,
31
- right: I.right
32
- })), V = !!((N = (F = ae()) == null ? void 0 : F.proxy) != null && N.$inertia), s = u(null), n = _(
27
+ setup(X, { expose: Y, emit: Z }) {
28
+ var F, N, U, A, H, K, W;
29
+ const t = X, ee = Z, d = ye(), w = me(), $ = u(), T = t.id ?? he().id.value, v = `bb-tab_${T}`, p = u(), { isScrolling: te, arrivedState: L } = pe(p), I = _(() => ({
30
+ isScrolling: te.value,
31
+ left: L.left,
32
+ right: L.right
33
+ })), B = !!((N = (F = se()) == null ? void 0 : F.proxy) != null && N.$inertia), s = u(null), r = _(
33
34
  () => t.items.findIndex((e) => e.key === s.value)
34
- ), k = _(() => n.value === 0), g = _(() => n.value === t.items.length - 1);
35
+ ), k = _(() => r.value === 0), g = _(() => r.value === t.items.length - 1);
35
36
  if (t.items.forEach((e) => {
36
37
  if (!e.key)
37
38
  throw console.error("A tab item has no key", e), new Error("A tab item has no key " + JSON.stringify(e));
38
- }), t.navigation && ((A = (z = d.value) == null ? void 0 : z.query) != null && A[t.querykey]))
39
- s.value = (U = (H = d.value) == null ? void 0 : H.query) == null ? void 0 : U[t.querykey];
40
- else if (t.navigation && V && ((K = globalThis == null ? void 0 : globalThis.location) != null && K.href) && new URL(globalThis.location.href).searchParams.get(t.querykey))
39
+ }), t.navigation && ((A = (U = d.value) == null ? void 0 : U.query) != null && A[t.querykey]))
40
+ s.value = (K = (H = d.value) == null ? void 0 : H.query) == null ? void 0 : K[t.querykey];
41
+ else if (t.navigation && B && ((W = globalThis == null ? void 0 : globalThis.location) != null && W.href) && new URL(globalThis.location.href).searchParams.get(t.querykey))
41
42
  s.value = new URL(globalThis.location.href).searchParams.get(
42
43
  t.querykey
43
44
  );
@@ -53,20 +54,20 @@ const ke = ["id"], ge = { class: "bb-tab__label-boundary" }, _e = { class: "bb-t
53
54
  s.value = a;
54
55
  }
55
56
  const f = async (e, a = !1) => {
56
- var l, r, i, W;
57
- if (t.navigation && d.value && ((r = (l = d.value) == null ? void 0 : l.query) == null ? void 0 : r[t.querykey]) !== e)
57
+ var l, n, i, J;
58
+ if (t.navigation && d.value && ((n = (l = d.value) == null ? void 0 : l.query) == null ? void 0 : n[t.querykey]) !== e)
58
59
  w == null || w.push({
59
60
  ...d,
60
61
  query: { ...(i = d.value) == null ? void 0 : i.query, [t.querykey]: e },
61
62
  replace: a
62
63
  });
63
- else if (t.navigation && V && ((W = globalThis == null ? void 0 : globalThis.location) != null && W.href) && new URL(globalThis.location.href).searchParams.get(t.querykey) !== e) {
64
+ else if (t.navigation && B && ((J = globalThis == null ? void 0 : globalThis.location) != null && J.href) && new URL(globalThis.location.href).searchParams.get(t.querykey) !== e) {
64
65
  const q = new URL(globalThis.location.href);
65
- q.searchParams.set(t.querykey, e), ye(0).then(() => {
66
+ q.searchParams.set(t.querykey, e), ve(0).then(() => {
66
67
  a ? history.replaceState({}, "", q.toString()) : history.pushState({}, "", q.toString());
67
68
  });
68
69
  }
69
- t.modelValue !== e && Z("update:modelValue", e), s.value = e;
70
+ t.modelValue !== e && ee("update:modelValue", e), s.value = e;
70
71
  };
71
72
  s.value && f(s.value, !0);
72
73
  const o = (e) => {
@@ -78,13 +79,13 @@ const ke = ["id"], ge = { class: "bb-tab__label-boundary" }, _e = { class: "bb-t
78
79
  break;
79
80
  case "previous": {
80
81
  let i = 1;
81
- for (; i < t.items.length && (a = (n.value + t.items.length - i) % t.items.length, t.items[a].disabled); )
82
+ for (; i < t.items.length && (a = (r.value + t.items.length - i) % t.items.length, t.items[a].disabled); )
82
83
  i++;
83
84
  break;
84
85
  }
85
86
  case "next": {
86
87
  let i = 1;
87
- for (; i < t.items.length && (a = (n.value + i) % t.items.length, t.items[a].disabled); )
88
+ for (; i < t.items.length && (a = (r.value + i) % t.items.length, t.items[a].disabled); )
88
89
  i++;
89
90
  break;
90
91
  }
@@ -96,11 +97,11 @@ const ke = ["id"], ge = { class: "bb-tab__label-boundary" }, _e = { class: "bb-t
96
97
  if (a === null)
97
98
  throw new Error("Could not navigate to next tab");
98
99
  if (t.items[a].disabled) return;
99
- const l = t.items[a].key, r = document.querySelector(
100
+ const l = t.items[a].key, n = document.querySelector(
100
101
  `#${v}_tab_${l}`
101
102
  );
102
- r == null || r.focus(), f(l, t.replace);
103
- }, te = (e) => {
103
+ n == null || n.focus(), f(l, t.replace);
104
+ }, le = (e) => {
104
105
  if (!t.disabled)
105
106
  if (e.key === "ArrowRight")
106
107
  o("next");
@@ -133,7 +134,7 @@ const ke = ["id"], ge = { class: "bb-tab__label-boundary" }, _e = { class: "bb-t
133
134
  const e = $.value.querySelector(
134
135
  "[role=tablist] .bb-tab__btn--active"
135
136
  );
136
- e && (await se(), e.scrollIntoView({
137
+ e && (await ie(), e.scrollIntoView({
137
138
  behavior: "smooth",
138
139
  block: "nearest",
139
140
  inline: "nearest"
@@ -142,32 +143,38 @@ const ke = ["id"], ge = { class: "bb-tab__label-boundary" }, _e = { class: "bb-t
142
143
  },
143
144
  { flush: "post" }
144
145
  );
145
- const B = u("right");
146
+ const V = u("right");
146
147
  h(
147
148
  s,
148
149
  (e, a) => {
149
150
  if (e && a) {
150
- const l = t.items.findIndex((i) => i.key === e), r = t.items.findIndex((i) => i.key === a);
151
- B.value = l > r ? "right" : "left";
151
+ const l = t.items.findIndex((i) => i.key === e), n = t.items.findIndex((i) => i.key === a);
152
+ V.value = l > n ? "right" : "left";
152
153
  }
153
154
  },
154
155
  { flush: "sync" }
155
156
  );
156
- const C = u(0), R = u(0), E = u(0), P = u(0), D = () => {
157
+ const C = u(0), E = u(0), R = u(0), z = u(0), P = () => {
157
158
  if (!p.value) return;
158
159
  const e = p.value.querySelector(
159
160
  ".bb-tab__btn--active"
160
161
  );
161
- e && (E.value = e.offsetLeft, P.value = e.offsetTop, C.value = e.clientWidth, R.value = e.clientHeight);
162
+ e && (R.value = e.offsetLeft, z.value = e.offsetTop, C.value = e.clientWidth, E.value = e.clientHeight);
162
163
  };
163
- return ie(D), h(s, D, { flush: "post" }), X({
164
+ ne(() => {
165
+ document.addEventListener("resize", D, { passive: !0 });
166
+ }), re(() => {
167
+ document.removeEventListener("resize", D, { passive: !0 });
168
+ }), h(s, P, { flush: "post" });
169
+ const D = _e(P, 200);
170
+ return Y({
164
171
  isFirst: k,
165
172
  isLast: g,
166
173
  current: s,
167
- currentIndex: n,
174
+ currentIndex: r,
168
175
  goTo: o
169
176
  }), (e, a) => (b(), y("div", {
170
- id: re(T),
177
+ id: oe(T),
171
178
  ref_key: "tabs",
172
179
  ref: $,
173
180
  class: S(["bb-tab", {
@@ -175,9 +182,9 @@ const ke = ["id"], ge = { class: "bb-tab__label-boundary" }, _e = { class: "bb-t
175
182
  "bb-tab--disabled": !0
176
183
  }])
177
184
  }, [
178
- c("div", ge, [
185
+ c("div", $e, [
179
186
  c("span", null, [
180
- m(e.$slots, "header:prepend", J(M(L.value)))
187
+ m(e.$slots, "header:prepend", M(O(I.value)))
181
188
  ]),
182
189
  c("ul", {
183
190
  ref_key: "tablist",
@@ -187,31 +194,31 @@ const ke = ["id"], ge = { class: "bb-tab__label-boundary" }, _e = { class: "bb-t
187
194
  }, [
188
195
  c("span", {
189
196
  class: "bb-tab__highlight",
190
- style: ne({
197
+ style: ue({
191
198
  "--width": `${C.value}px`,
192
- "--height": `${R.value}px`,
193
- "--left": `${E.value}px`,
194
- "--top": `${P.value}px`
199
+ "--height": `${E.value}px`,
200
+ "--left": `${R.value}px`,
201
+ "--top": `${z.value}px`
195
202
  })
196
203
  }, null, 4),
197
- (b(!0), y(O, null, j(e.items, (l) => (b(), y("li", {
204
+ (b(!0), y(j, null, G(e.items, (l) => (b(), y("li", {
198
205
  key: l.key,
199
206
  role: "presentation"
200
207
  }, [
201
- G(ve, {
208
+ Q(ke, {
202
209
  id: `${v}_tab_${l.key}`,
203
210
  "aria-selected": s.value === l.key,
204
211
  class: S(["bb-tab__btn", { "bb-tab__btn--active": s.value === l.key }]),
205
212
  disabled: l.disabled || e.disabled,
206
213
  role: "tab",
207
214
  tabindex: s.value === l.key ? 0 : -1,
208
- onClick: (r) => f(l.key, t.replace),
209
- onKeydown: te
215
+ onClick: (n) => f(l.key, t.replace),
216
+ onKeydown: le
210
217
  }, {
211
218
  default: x(() => [
212
219
  m(e.$slots, `label-${l.key}`, {
213
220
  current: s.value,
214
- currentIndex: n.value,
221
+ currentIndex: r.value,
215
222
  disabled: !!(l.disabled || e.disabled),
216
223
  goTo: o,
217
224
  isFirst: k.value,
@@ -222,7 +229,7 @@ const ke = ["id"], ge = { class: "bb-tab__label-boundary" }, _e = { class: "bb-t
222
229
  }, () => [
223
230
  m(e.$slots, "label", {
224
231
  current: s.value,
225
- currentIndex: n.value,
232
+ currentIndex: r.value,
226
233
  disabled: !!(l.disabled || e.disabled),
227
234
  goTo: o,
228
235
  isFirst: k.value,
@@ -231,7 +238,7 @@ const ke = ["id"], ge = { class: "bb-tab__label-boundary" }, _e = { class: "bb-t
231
238
  text: l.label,
232
239
  value: l.key
233
240
  }, () => [
234
- c("span", _e, oe(l.label), 1)
241
+ c("span", qe, de(l.label), 1)
235
242
  ])
236
243
  ])
237
244
  ]),
@@ -240,16 +247,16 @@ const ke = ["id"], ge = { class: "bb-tab__label-boundary" }, _e = { class: "bb-t
240
247
  ]))), 128))
241
248
  ], 512),
242
249
  c("span", null, [
243
- m(e.$slots, "header:append", J(M(L.value)))
250
+ m(e.$slots, "header:append", M(O(I.value)))
244
251
  ])
245
252
  ]),
246
- c("div", we, [
247
- G(pe, null, {
253
+ c("div", Se, [
254
+ Q(ge, null, {
248
255
  default: x(() => [
249
- (b(!0), y(O, null, j(e.items, (l) => (b(), ue(de, {
256
+ (b(!0), y(j, null, G(e.items, (l) => (b(), ce(be, {
250
257
  key: l.key,
251
258
  css: e.animate,
252
- name: `tab-slide-${B.value}`
259
+ name: `tab-slide-${V.value}`
253
260
  }, {
254
261
  default: x(() => [
255
262
  s.value === l.key || e.eager || l.eager ? (b(), y("section", {
@@ -264,7 +271,7 @@ const ke = ["id"], ge = { class: "bb-tab__label-boundary" }, _e = { class: "bb-t
264
271
  }, [
265
272
  m(e.$slots, l.key, {
266
273
  current: s.value,
267
- currentIndex: n.value,
274
+ currentIndex: r.value,
268
275
  disabled: !!(l.disabled || e.disabled),
269
276
  goTo: o,
270
277
  isFirst: k.value,
@@ -273,7 +280,7 @@ const ke = ["id"], ge = { class: "bb-tab__label-boundary" }, _e = { class: "bb-t
273
280
  text: l.label,
274
281
  value: l.key
275
282
  })
276
- ], 10, $e)) : ce("", !0)
283
+ ], 10, xe)) : fe("", !0)
277
284
  ]),
278
285
  _: 2
279
286
  }, 1032, ["css", "name"]))), 128))
@@ -281,9 +288,9 @@ const ke = ["id"], ge = { class: "bb-tab__label-boundary" }, _e = { class: "bb-t
281
288
  _: 3
282
289
  })
283
290
  ])
284
- ], 10, ke));
291
+ ], 10, we));
285
292
  }
286
293
  });
287
294
  export {
288
- Ee as default
295
+ Fe as default
289
296
  };
package/dist/index106.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as oe, ref as x, computed as h, toRef as B, watch as ne, openBlock as n, createBlock as de, resolveDynamicComponent as ce, normalizeClass as r, unref as u, withCtx as ie, createElementBlock as d, toDisplayString as p, createCommentVNode as k, createElementVNode as s, renderSlot as f, createVNode as I, Fragment as w, renderList as T, createTextVNode as be, mergeProps as re } from "vue";
2
2
  import { add as ue } from "./index284.js";
3
- import { clamp as pe } from "./index199.js";
3
+ import { clamp as pe } from "./index219.js";
4
4
  import { isNil as M } from "./index125.js";
5
5
  import { useId as fe } from "./index8.js";
6
- import { useItemValue as me } from "./index277.js";
7
- import { when as he } from "./index232.js";
6
+ import { useItemValue as me } from "./index281.js";
7
+ import { when as he } from "./index200.js";
8
8
  import J from "./index15.js";
9
9
  /* empty css */
10
10
  import ye from "./index29.js";
11
11
  /* empty css */
12
- import { useOptions as _e } from "./index228.js";
12
+ import { useOptions as _e } from "./index231.js";
13
13
  const ke = {
14
14
  key: 0,
15
15
  class: "sr-only"
package/dist/index114.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 "./index283.js";
3
+ import B from "./index285.js";
4
4
  const N = /* @__PURE__ */ s({
5
5
  __name: "BbToast",
6
6
  props: {
package/dist/index116.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as z, defineAsyncComponent as A, ref as a, computed as _, watch as I, openBlock as b, createElementBlock as R, mergeProps as U, createElementVNode as c, renderSlot as D, normalizeProps as W, guardReactiveProps as j, unref as u, createBlock as L, withCtx as $, createCommentVNode as M } from "vue";
2
- import { useFloating as q, arrow as G } from "./index222.js";
2
+ import { useFloating as q, arrow as G } from "./index202.js";
3
3
  import { useId as J } from "./index8.js";
4
4
  import { wait as P } from "./index127.js";
5
5
  import K from "./index13.js";
6
6
  /* empty css */
7
- import { throttle as w } from "./index202.js";
8
- import { waitFor as Q } from "./index204.js";
9
- import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index227.js";
7
+ import { throttle as w } from "./index229.js";
8
+ import { waitFor as Q } from "./index212.js";
9
+ import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index217.js";
10
10
  const ee = /* @__PURE__ */ c("svg", {
11
11
  fill: "none",
12
12
  viewBox: "0 0 24 24",
@@ -35,7 +35,7 @@ const ee = /* @__PURE__ */ c("svg", {
35
35
  },
36
36
  setup(F) {
37
37
  const O = A(
38
- () => import("./index244.js")
38
+ () => import("./index243.js")
39
39
  ), t = F, g = `bb_${t.id ?? J().id.value}`, s = a(), d = a(), T = a(), { floatingStyles: te, placement: h, middlewareData: f } = q(
40
40
  s,
41
41
  d,
package/dist/index118.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 "./index282.js";
2
+ import { flattenTree as T } from "./index283.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/index121.js CHANGED
@@ -8,13 +8,13 @@ const C = /* @__PURE__ */ d({
8
8
  tag: { default: "div" }
9
9
  },
10
10
  setup(p) {
11
- const l = p, t = s(l.modelValue), a = s(t.value), o = m(
11
+ const l = p, o = s(l.modelValue), t = s(o.value), a = m(
12
12
  () => l.modelValue,
13
13
  (e) => {
14
- e && (a.value = !0, o());
14
+ e && (console.log("run"), t.value = !0, a());
15
15
  }
16
16
  );
17
- t.value && o();
17
+ o.value && a();
18
18
  const n = b(() => ({
19
19
  class: {
20
20
  "bb-collapsible": !0,
@@ -32,7 +32,7 @@ const C = /* @__PURE__ */ d({
32
32
  style: y(n.value.style)
33
33
  }, {
34
34
  default: c(() => [
35
- e.eager || a.value ? g(e.$slots, "default", { key: 0 }) : V("", !0)
35
+ e.eager || t.value ? g(e.$slots, "default", { key: 0 }) : V("", !0)
36
36
  ]),
37
37
  _: 3
38
38
  }, 8, ["style"]))
package/dist/index122.js CHANGED
@@ -1,5 +1,5 @@
1
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 "./index231.js";
2
+ import { isCssColor as w } from "./index199.js";
3
3
  const g = ["innerHTML"], $ = /* @__PURE__ */ m({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index123.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 "./index202.js";
2
+ import { throttle as g } from "./index229.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index124.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as l, openBlock as _, createElementBlock as a, normalizeProps as b, guardReactiveProps as x, createStaticVNode as m } from "vue";
2
- import { isCssColor as u } from "./index231.js";
2
+ import { isCssColor as u } from "./index199.js";
3
3
  const y = /* @__PURE__ */ m('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle class="bb-spinner__circle" cx="12" cy="3" r="0"></circle><circle class="bb-spinner__circle circle--1" cx="16.50" cy="4.21" r="0"></circle><circle class="bb-spinner__circle circle--2" cx="7.50" cy="4.21" r="0"></circle><circle class="bb-spinner__circle circle--3" cx="19.79" cy="7.50" r="0"></circle><circle class="bb-spinner__circle circle--4" cx="4.21" cy="7.50" r="0"></circle><circle class="bb-spinner__circle circle--5" cx="21.00" cy="12.00" r="0"></circle><circle class="bb-spinner__circle circle--6" cx="3.00" cy="12.00" r="0"></circle><circle class="bb-spinner__circle circle--7" cx="19.79" cy="16.50" r="0"></circle><circle class="bb-spinner__circle circle--8" cx="4.21" cy="16.50" r="0"></circle><circle class="bb-spinner__circle circle--9" cx="16.50" cy="19.79" r="0"></circle><circle class="bb-spinner__circle circle--10" cx="7.50" cy="19.79" r="0"></circle><circle class="bb-spinner__circle circle--11" cx="12" cy="21" r="0"></circle></svg>', 1), d = [
4
4
  y
5
5
  ], g = /* @__PURE__ */ p({
package/dist/index126.js CHANGED
@@ -1,4 +1,4 @@
1
- import { clamp as o } from "./index199.js";
1
+ import { clamp as o } from "./index219.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/index128.js CHANGED
@@ -1,5 +1,5 @@
1
- import { toValue as S, notNullish as $, noop as _, tryOnScopeDispose as R, useDebounceFn as q, useThrottleFn as G, tryOnMounted as Q, isClient as J, isObject as K } from "./index198.js";
2
- import { createFilterWrapper as fe, debounceFilter as ve, getLifeCycleTarget as de, throttleFilter as me } from "./index198.js";
1
+ import { toValue as S, notNullish as $, noop as _, tryOnScopeDispose as R, useDebounceFn as q, useThrottleFn as G, tryOnMounted as Q, isClient as J, isObject as K } from "./index218.js";
2
+ import { createFilterWrapper as fe, debounceFilter as ve, getLifeCycleTarget as de, throttleFilter as me } from "./index218.js";
3
3
  import { computed as O, ref as T, watch as V, reactive as k, getCurrentInstance as U, onMounted as Z, watchEffect as ee } from "vue";
4
4
  function F(l) {
5
5
  var r;
package/dist/index129.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isArray as b, isPlainObject as m } from "./index288.js";
1
+ import { isArray as b, isPlainObject as m } from "./index289.js";
2
2
  function i(e, n, l, o, r) {
3
3
  const u = {}.propertyIsEnumerable.call(o, n) ? "enumerable" : "nonenumerable";
4
4
  u === "enumerable" && (e[n] = l), r && u === "nonenumerable" && Object.defineProperty(e, n, {
package/dist/index13.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, getCurrentInstance as p, computed as s, resolveComponent as d, openBlock as k, createBlock as h, resolveDynamicComponent as C, mergeProps as x, withCtx as S, renderSlot as L, createTextVNode as B, toDisplayString as N } from "vue";
2
2
  import { _config as o } from "./index4.js";
3
- import { useLogger as m } from "./index200.js";
3
+ import { useLogger as m } from "./index198.js";
4
4
  const P = /* @__PURE__ */ y({
5
5
  __name: "BaseButton",
6
6
  props: {
package/dist/index15.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as C, ref as b, computed as n, watch as E, openBlock as m, createElementBlock as p, normalizeProps as c, guardReactiveProps as h, mergeProps as f, createCommentVNode as I, createElementVNode as s, renderSlot as q } from "vue";
2
- import { isCssColor as k } from "./index231.js";
3
- import { when as F } from "./index232.js";
4
- import { booleanishToBoolean as N } from "./index233.js";
2
+ import { isCssColor as k } from "./index199.js";
3
+ import { when as F } from "./index200.js";
4
+ import { booleanishToBoolean as N } from "./index201.js";
5
5
  const S = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"
package/dist/index17.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 "./index228.js";
2
+ import { useOptions as z } from "./index231.js";
3
3
  import F from "./index15.js";
4
4
  /* empty css */
5
- import M from "./index229.js";
5
+ import M from "./index232.js";
6
6
  /* empty css */
7
7
  const G = /* @__PURE__ */ $({
8
8
  __name: "BaseCheckboxGroup",
package/dist/index19.js CHANGED
@@ -3,20 +3,20 @@ import { defineComponent as $, ref as f, watch as x, openBlock as u, createEleme
3
3
  /* empty css */
4
4
  import p from "./index13.js";
5
5
  /* empty css */
6
- import r from "./index209.js";
7
- import z from "./index210.js";
8
- import U from "./index211.js";
9
- import W from "./index212.js";
10
- import E from "./index213.js";
11
- import T from "./index214.js";
12
- import { hash as g } from "./index215.js";
13
- import { last as j } from "./index216.js";
14
- import { useLogger as H } from "./index200.js";
15
- import P from "./index217.js";
16
- import Z from "./index218.js";
17
- import q from "./index219.js";
18
- import w from "./index220.js";
19
- import F from "./index221.js";
6
+ import r from "./index203.js";
7
+ import z from "./index206.js";
8
+ import U from "./index207.js";
9
+ import W from "./index205.js";
10
+ import E from "./index220.js";
11
+ import T from "./index221.js";
12
+ import { hash as g } from "./index222.js";
13
+ import { last as j } from "./index209.js";
14
+ import { useLogger as H } from "./index198.js";
15
+ import P from "./index223.js";
16
+ import Z from "./index224.js";
17
+ import q from "./index225.js";
18
+ import w from "./index226.js";
19
+ import F from "./index227.js";
20
20
  const G = { class: "bb-base-date-picker" }, I = { class: "bb-base-date-picker__body" }, J = { class: "bb-base-date-picker__controls" }, K = /* @__PURE__ */ l("span", { class: "sr-only" }, "Seleziona un mese", -1), Q = /* @__PURE__ */ l("svg", {
21
21
  fill: "none",
22
22
  height: "6",
package/dist/index198.js CHANGED
@@ -1,83 +1,10 @@
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
- });
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}`);
17
6
  }
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
- }
7
+ });
69
8
  export {
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
9
+ e as useLogger
83
10
  };
package/dist/index199.js CHANGED
@@ -1,4 +1,4 @@
1
- const n = (t, a, m) => Math.min(Math.max(t, a), m);
1
+ const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
2
2
  export {
3
- n as clamp
3
+ s as isCssColor
4
4
  };
package/dist/index200.js CHANGED
@@ -1,10 +1,6 @@
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
- });
1
+ import { curry as e } from "./index244.js";
2
+ const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
8
3
  export {
9
- e as useLogger
4
+ t as baseWhen,
5
+ s as when
10
6
  };
package/dist/index201.js CHANGED
@@ -1,5 +1,4 @@
1
- import r from "./index243.js";
2
- const t = r;
1
+ const o = (e) => typeof e == "boolean" ? e : e === "true";
3
2
  export {
4
- t as deburr
3
+ o as booleanishToBoolean
5
4
  };