bitboss-ui 2.0.30 → 2.0.31

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 (135) hide show
  1. package/dist/index104.js +32 -32
  2. package/dist/index106.js +4 -4
  3. package/dist/index114.js +1 -1
  4. package/dist/index116.js +4 -4
  5. package/dist/index118.js +1 -1
  6. package/dist/index122.js +1 -1
  7. package/dist/index123.js +1 -1
  8. package/dist/index124.js +1 -1
  9. package/dist/index126.js +1 -1
  10. package/dist/index128.js +2 -2
  11. package/dist/index129.js +1 -1
  12. package/dist/index13.js +1 -1
  13. package/dist/index15.js +3 -3
  14. package/dist/index19.js +14 -14
  15. package/dist/index198.js +80 -7
  16. package/dist/index199.js +2 -2
  17. package/dist/index200.js +2 -4
  18. package/dist/index201.js +4 -2
  19. package/dist/index202.js +2 -126
  20. package/dist/index203.js +8 -5
  21. package/dist/index204.js +3 -123
  22. package/dist/index205.js +3 -19
  23. package/dist/index206.js +35 -16
  24. package/dist/index207.js +6 -16
  25. package/dist/index208.js +7 -2
  26. package/dist/index209.js +281 -2
  27. package/dist/index21.js +15 -15
  28. package/dist/index210.js +16 -35
  29. package/dist/index211.js +14 -172
  30. package/dist/index212.js +19 -6
  31. package/dist/index213.js +19 -43
  32. package/dist/index214.js +29 -0
  33. package/dist/index215.js +3 -13
  34. package/dist/index216.js +2 -5
  35. package/dist/index217.js +246 -366
  36. package/dist/index218.js +51 -80
  37. package/dist/index219.js +44 -2
  38. package/dist/index220.js +5 -19
  39. package/dist/index221.js +49 -27
  40. package/dist/index222.js +126 -3
  41. package/dist/index223.js +118 -244
  42. package/dist/index224.js +2 -52
  43. package/dist/index225.js +173 -43
  44. package/dist/index226.js +42 -4
  45. package/dist/index228.js +13 -3
  46. package/dist/index229.js +5 -3
  47. package/dist/index23.js +5 -5
  48. package/dist/index230.js +369 -7
  49. package/dist/index231.js +6 -6
  50. package/dist/index234.js +1 -1
  51. package/dist/index236.js +1 -1
  52. package/dist/index238.js +1 -1
  53. package/dist/index243.js +1 -1
  54. package/dist/index244.js +8 -3
  55. package/dist/index245.js +23 -6
  56. package/dist/index246.js +6 -16
  57. package/dist/index247.js +15 -8
  58. package/dist/index248.js +9 -23
  59. package/dist/index249.js +4 -9
  60. package/dist/index25.js +1 -1
  61. package/dist/index250.js +223 -280
  62. package/dist/index251.js +430 -5
  63. package/dist/index252.js +89 -2
  64. package/dist/index253.js +2 -2
  65. package/dist/index254.js +9 -2
  66. package/dist/index255.js +6 -2
  67. package/dist/index256.js +2 -2
  68. package/dist/index257.js +2 -126
  69. package/dist/index258.js +2 -431
  70. package/dist/index259.js +2 -3
  71. package/dist/index261.js +2 -7
  72. package/dist/index262.js +1 -21
  73. package/dist/index263.js +4 -0
  74. package/dist/index264.js +2 -2
  75. package/dist/index265.js +2 -2
  76. package/dist/index266.js +28 -2
  77. package/dist/index267.js +21 -1
  78. package/dist/index269.js +7 -2
  79. package/dist/index27.js +3 -3
  80. package/dist/index270.js +197 -25
  81. package/dist/index271.js +61 -17
  82. package/dist/index272.js +7 -0
  83. package/dist/index273.js +2 -224
  84. package/dist/index274.js +117 -427
  85. package/dist/index275.js +3 -127
  86. package/dist/index277.js +22 -89
  87. package/dist/index279.js +3 -12
  88. package/dist/index280.js +12 -9
  89. package/dist/index281.js +8 -8
  90. package/dist/index282.js +1 -1
  91. package/dist/index283.js +436 -5
  92. package/dist/index284.js +127 -2
  93. package/dist/index285.js +2 -65
  94. package/dist/index286.js +1 -1
  95. package/dist/index287.js +211 -3
  96. package/dist/index288.js +72 -204
  97. package/dist/index29.js +2 -2
  98. package/dist/index290.js +4 -79
  99. package/dist/index291.js +6 -0
  100. package/dist/index292.js +59 -4
  101. package/dist/index293.js +15 -4
  102. package/dist/index294.js +2 -59
  103. package/dist/index295.js +6 -34
  104. package/dist/index296.js +18 -6
  105. package/dist/index297.js +10 -18
  106. package/dist/index299.js +2 -2
  107. package/dist/index300.js +35 -2
  108. package/dist/index301.js +479 -10
  109. package/dist/index303.js +423 -0
  110. package/dist/index304.js +42 -416
  111. package/dist/index305.js +2 -47
  112. package/dist/index33.js +3 -3
  113. package/dist/index35.js +8 -8
  114. package/dist/index37.js +3 -3
  115. package/dist/index39.js +2 -2
  116. package/dist/index43.js +3 -3
  117. package/dist/index45.js +2 -2
  118. package/dist/index47.js +2 -2
  119. package/dist/index53.js +1 -1
  120. package/dist/index55.js +1 -1
  121. package/dist/index71.js +2 -2
  122. package/dist/index75.js +2 -2
  123. package/dist/index77.js +1 -1
  124. package/dist/index80.js +2 -2
  125. package/dist/index82.js +1 -1
  126. package/dist/index84.js +2 -2
  127. package/dist/index86.js +1 -1
  128. package/package.json +1 -1
  129. package/dist/index227.js +0 -51
  130. package/dist/index268.js +0 -4
  131. package/dist/index276.js +0 -202
  132. package/dist/index278.js +0 -5
  133. package/dist/index289.js +0 -17
  134. package/dist/index302.js +0 -482
  135. /package/dist/{index306.js → index260.js} +0 -0
package/dist/index104.js CHANGED
@@ -1,4 +1,4 @@
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";
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 x, 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 T, toDisplayString as de, createBlock as ce, Transition as be, createCommentVNode as fe } from "vue";
2
2
  import { useId as he } from "./index8.js";
3
3
  import { useRoute as ye } from "./index132.js";
4
4
  import { useRouter as me } from "./index133.js";
@@ -8,7 +8,7 @@ import ke from "./index13.js";
8
8
  /* empty css */
9
9
  import ge from "./index123.js";
10
10
  /* empty css */
11
- import { useDebounceFn as _e } from "./index218.js";
11
+ import { useDebounceFn as _e } from "./index198.js";
12
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({
13
13
  __name: "BbTab",
14
14
  props: {
@@ -26,11 +26,11 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
26
26
  emits: ["update:modelValue"],
27
27
  setup(X, { expose: Y, emit: Z }) {
28
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 = _(() => ({
29
+ const t = X, ee = Z, d = ye(), w = me(), $ = u(), L = t.id ?? he().id.value, v = `bb-tab_${L}`, p = u(), { isScrolling: te, arrivedState: I } = pe(p), B = _(() => ({
30
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 = _(
31
+ left: I.left,
32
+ right: I.right
33
+ })), V = !!((N = (F = se()) == null ? void 0 : F.proxy) != null && N.$inertia), s = u(null), r = _(
34
34
  () => t.items.findIndex((e) => e.key === s.value)
35
35
  ), k = _(() => r.value === 0), g = _(() => r.value === t.items.length - 1);
36
36
  if (t.items.forEach((e) => {
@@ -38,7 +38,7 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
38
38
  throw console.error("A tab item has no key", e), new Error("A tab item has no key " + JSON.stringify(e));
39
39
  }), t.navigation && ((A = (U = d.value) == null ? void 0 : U.query) != null && A[t.querykey]))
40
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
+ else if (t.navigation && V && ((W = globalThis == null ? void 0 : globalThis.location) != null && W.href) && new URL(globalThis.location.href).searchParams.get(t.querykey))
42
42
  s.value = new URL(globalThis.location.href).searchParams.get(
43
43
  t.querykey
44
44
  );
@@ -61,10 +61,10 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
61
61
  query: { ...(i = d.value) == null ? void 0 : i.query, [t.querykey]: e },
62
62
  replace: a
63
63
  });
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) {
65
- const q = new URL(globalThis.location.href);
66
- q.searchParams.set(t.querykey, e), ve(0).then(() => {
67
- a ? history.replaceState({}, "", q.toString()) : history.pushState({}, "", q.toString());
64
+ else if (t.navigation && V && ((J = globalThis == null ? void 0 : globalThis.location) != null && J.href) && new URL(globalThis.location.href).searchParams.get(t.querykey) !== e) {
65
+ const S = new URL(globalThis.location.href);
66
+ S.searchParams.set(t.querykey, e), ve(0).then(() => {
67
+ a ? history.replaceState({}, "", S.toString()) : history.pushState({}, "", S.toString());
68
68
  });
69
69
  }
70
70
  t.modelValue !== e && ee("update:modelValue", e), s.value = e;
@@ -143,30 +143,30 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
143
143
  },
144
144
  { flush: "post" }
145
145
  );
146
- const V = u("right");
146
+ const C = u("right");
147
147
  h(
148
148
  s,
149
149
  (e, a) => {
150
150
  if (e && a) {
151
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
+ C.value = l > n ? "right" : "left";
153
153
  }
154
154
  },
155
155
  { flush: "sync" }
156
156
  );
157
- const C = u(0), E = u(0), R = u(0), z = u(0), P = () => {
157
+ const E = u(0), R = u(0), z = u(0), P = u(0), q = () => {
158
158
  if (!p.value) return;
159
159
  const e = p.value.querySelector(
160
160
  ".bb-tab__btn--active"
161
161
  );
162
- e && (R.value = e.offsetLeft, z.value = e.offsetTop, C.value = e.clientWidth, E.value = e.clientHeight);
162
+ e && (z.value = e.offsetLeft, P.value = e.offsetTop, E.value = e.clientWidth, R.value = e.clientHeight);
163
163
  };
164
164
  ne(() => {
165
- document.addEventListener("resize", D, { passive: !0 });
165
+ q(), document.addEventListener("resize", D, { passive: !0 });
166
166
  }), re(() => {
167
167
  document.removeEventListener("resize", D, { passive: !0 });
168
- }), h(s, P, { flush: "post" });
169
- const D = _e(P, 200);
168
+ }), h(s, q, { flush: "post" });
169
+ const D = _e(q, 200);
170
170
  return Y({
171
171
  isFirst: k,
172
172
  isLast: g,
@@ -174,17 +174,17 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
174
174
  currentIndex: r,
175
175
  goTo: o
176
176
  }), (e, a) => (b(), y("div", {
177
- id: oe(T),
177
+ id: oe(L),
178
178
  ref_key: "tabs",
179
179
  ref: $,
180
- class: S(["bb-tab", {
180
+ class: x(["bb-tab", {
181
181
  [`bb-tab--${e.direction}`]: !0,
182
182
  "bb-tab--disabled": !0
183
183
  }])
184
184
  }, [
185
185
  c("div", $e, [
186
186
  c("span", null, [
187
- m(e.$slots, "header:prepend", M(O(I.value)))
187
+ m(e.$slots, "header:prepend", M(O(B.value)))
188
188
  ]),
189
189
  c("ul", {
190
190
  ref_key: "tablist",
@@ -195,10 +195,10 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
195
195
  c("span", {
196
196
  class: "bb-tab__highlight",
197
197
  style: ue({
198
- "--width": `${C.value}px`,
199
- "--height": `${E.value}px`,
200
- "--left": `${R.value}px`,
201
- "--top": `${z.value}px`
198
+ "--width": `${E.value}px`,
199
+ "--height": `${R.value}px`,
200
+ "--left": `${z.value}px`,
201
+ "--top": `${P.value}px`
202
202
  })
203
203
  }, null, 4),
204
204
  (b(!0), y(j, null, G(e.items, (l) => (b(), y("li", {
@@ -208,14 +208,14 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
208
208
  Q(ke, {
209
209
  id: `${v}_tab_${l.key}`,
210
210
  "aria-selected": s.value === l.key,
211
- class: S(["bb-tab__btn", { "bb-tab__btn--active": s.value === l.key }]),
211
+ class: x(["bb-tab__btn", { "bb-tab__btn--active": s.value === l.key }]),
212
212
  disabled: l.disabled || e.disabled,
213
213
  role: "tab",
214
214
  tabindex: s.value === l.key ? 0 : -1,
215
215
  onClick: (n) => f(l.key, t.replace),
216
216
  onKeydown: le
217
217
  }, {
218
- default: x(() => [
218
+ default: T(() => [
219
219
  m(e.$slots, `label-${l.key}`, {
220
220
  current: s.value,
221
221
  currentIndex: r.value,
@@ -247,23 +247,23 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
247
247
  ]))), 128))
248
248
  ], 512),
249
249
  c("span", null, [
250
- m(e.$slots, "header:append", M(O(I.value)))
250
+ m(e.$slots, "header:append", M(O(B.value)))
251
251
  ])
252
252
  ]),
253
253
  c("div", Se, [
254
254
  Q(ge, null, {
255
- default: x(() => [
255
+ default: T(() => [
256
256
  (b(!0), y(j, null, G(e.items, (l) => (b(), ce(be, {
257
257
  key: l.key,
258
258
  css: e.animate,
259
- name: `tab-slide-${V.value}`
259
+ name: `tab-slide-${C.value}`
260
260
  }, {
261
- default: x(() => [
261
+ default: T(() => [
262
262
  s.value === l.key || e.eager || l.eager ? (b(), y("section", {
263
263
  key: 0,
264
264
  id: `${v}_tabpanel_${l.key}`,
265
265
  "aria-labelledby": `${v}_tab_${l.key}`,
266
- class: S(["bb-tab__pane", {
266
+ class: x(["bb-tab__pane", {
267
267
  "bb-tab__pane--shown": s.value === l.key
268
268
  }]),
269
269
  role: "tabpanel",
package/dist/index106.js CHANGED
@@ -1,10 +1,10 @@
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
- import { add as ue } from "./index284.js";
3
- import { clamp as pe } from "./index219.js";
2
+ import { add as ue } from "./index253.js";
3
+ import { clamp as pe } from "./index199.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 "./index281.js";
7
- import { when as he } from "./index200.js";
6
+ import { useItemValue as me } from "./index254.js";
7
+ import { when as he } from "./index201.js";
8
8
  import J from "./index15.js";
9
9
  /* empty css */
10
10
  import ye from "./index29.js";
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 "./index285.js";
3
+ import B from "./index271.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 "./index202.js";
2
+ import { useFloating as q, arrow as G } from "./index222.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 "./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";
7
+ import { throttle as w } from "./index205.js";
8
+ import { waitFor as Q } from "./index207.js";
9
+ import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index230.js";
10
10
  const ee = /* @__PURE__ */ c("svg", {
11
11
  fill: "none",
12
12
  viewBox: "0 0 24 24",
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 "./index283.js";
2
+ import { flattenTree as T } from "./index272.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/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 "./index199.js";
2
+ import { isCssColor as w } from "./index200.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 "./index229.js";
2
+ import { throttle as g } from "./index205.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 "./index199.js";
2
+ import { isCssColor as u } from "./index200.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 "./index219.js";
1
+ import { clamp as o } from "./index199.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 "./index218.js";
2
- import { createFilterWrapper as fe, debounceFilter as ve, getLifeCycleTarget as de, throttleFilter as me } from "./index218.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 "./index198.js";
2
+ import { createFilterWrapper as fe, debounceFilter as ve, getLifeCycleTarget as de, throttleFilter as me } from "./index198.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 "./index289.js";
1
+ import { isArray as b, isPlainObject as m } from "./index293.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 "./index198.js";
3
+ import { useLogger as m } from "./index203.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 "./index199.js";
3
- import { when as F } from "./index200.js";
4
- import { booleanishToBoolean as N } from "./index201.js";
2
+ import { isCssColor as k } from "./index200.js";
3
+ import { when as F } from "./index201.js";
4
+ import { booleanishToBoolean as N } from "./index202.js";
5
5
  const S = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"
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 "./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";
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 "./index203.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";
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,10 +1,83 @@
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}`);
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
+ });
6
17
  }
7
- });
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
+ }
8
69
  export {
9
- e as useLogger
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
10
83
  };
package/dist/index199.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/index200.js CHANGED
@@ -1,6 +1,4 @@
1
- import { curry as e } from "./index244.js";
2
- const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
1
+ const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
3
2
  export {
4
- t as baseWhen,
5
- s as when
3
+ s as isCssColor
6
4
  };
package/dist/index201.js CHANGED
@@ -1,4 +1,6 @@
1
- const o = (e) => typeof e == "boolean" ? e : e === "true";
1
+ import { curry as e } from "./index249.js";
2
+ const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
2
3
  export {
3
- o as booleanishToBoolean
4
+ t as baseWhen,
5
+ s as when
4
6
  };
package/dist/index202.js CHANGED
@@ -1,128 +1,4 @@
1
- import { arrow as j, computePosition as A } from "./index217.js";
2
- import { autoUpdate as W, flip as X, hide as Y, offset as Z, platform as ee, shift as ne } from "./index217.js";
3
- import { isNode as B, getNodeName as F } from "./index257.js";
4
- import { getOverflowAncestors as le } from "./index257.js";
5
- import { computed as a, ref as f, shallowRef as I, watch as h, getCurrentScope as U, onScopeDispose as k, shallowReadonly as r, unref as q } from "vue";
6
- function z(e) {
7
- return e != null && typeof e == "object" && "$el" in e;
8
- }
9
- function g(e) {
10
- if (z(e)) {
11
- const l = e.$el;
12
- return B(l) && F(l) === "#comment" ? null : l;
13
- }
14
- return e;
15
- }
16
- function o(e) {
17
- return typeof e == "function" ? e() : q(e);
18
- }
19
- function K(e) {
20
- return {
21
- name: "arrow",
22
- options: e,
23
- fn(l) {
24
- const t = g(o(e.element));
25
- return t == null ? {} : j({
26
- element: t,
27
- padding: e.padding
28
- }).fn(l);
29
- }
30
- };
31
- }
32
- function M(e) {
33
- return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
34
- }
35
- function C(e, l) {
36
- const t = M(e);
37
- return Math.round(l * t) / t;
38
- }
39
- function L(e, l, t) {
40
- t === void 0 && (t = {});
41
- const x = t.whileElementsMounted, V = a(() => {
42
- var n;
43
- return (n = o(t.open)) != null ? n : !0;
44
- }), D = a(() => o(t.middleware)), d = a(() => {
45
- var n;
46
- return (n = o(t.placement)) != null ? n : "bottom";
47
- }), v = a(() => {
48
- var n;
49
- return (n = o(t.strategy)) != null ? n : "absolute";
50
- }), S = a(() => {
51
- var n;
52
- return (n = o(t.transform)) != null ? n : !0;
53
- }), i = a(() => g(e.value)), u = a(() => g(l.value)), p = f(0), w = f(0), c = f(v.value), O = f(d.value), P = I({}), y = f(!1), _ = a(() => {
54
- const n = {
55
- position: c.value,
56
- left: "0",
57
- top: "0"
58
- };
59
- if (!u.value)
60
- return n;
61
- const R = C(u.value, p.value), b = C(u.value, w.value);
62
- return S.value ? {
63
- ...n,
64
- transform: "translate(" + R + "px, " + b + "px)",
65
- ...M(u.value) >= 1.5 && {
66
- willChange: "transform"
67
- }
68
- } : {
69
- position: c.value,
70
- left: R + "px",
71
- top: b + "px"
72
- };
73
- });
74
- let s;
75
- function m() {
76
- i.value == null || u.value == null || A(i.value, u.value, {
77
- middleware: D.value,
78
- placement: d.value,
79
- strategy: v.value
80
- }).then((n) => {
81
- p.value = n.x, w.value = n.y, c.value = n.strategy, O.value = n.placement, P.value = n.middlewareData, y.value = !0;
82
- });
83
- }
84
- function E() {
85
- typeof s == "function" && (s(), s = void 0);
86
- }
87
- function N() {
88
- if (E(), x === void 0) {
89
- m();
90
- return;
91
- }
92
- if (i.value != null && u.value != null) {
93
- s = x(i.value, u.value, m);
94
- return;
95
- }
96
- }
97
- function $() {
98
- V.value || (y.value = !1);
99
- }
100
- return h([D, d, v], m, {
101
- flush: "sync"
102
- }), h([i, u], N, {
103
- flush: "sync"
104
- }), h(V, $, {
105
- flush: "sync"
106
- }), U() && k(E), {
107
- x: r(p),
108
- y: r(w),
109
- strategy: r(c),
110
- placement: r(O),
111
- middlewareData: r(P),
112
- isPositioned: r(y),
113
- floatingStyles: _,
114
- update: m
115
- };
116
- }
1
+ const o = (e) => typeof e == "boolean" ? e : e === "true";
117
2
  export {
118
- K as arrow,
119
- W as autoUpdate,
120
- A as computePosition,
121
- X as flip,
122
- le as getOverflowAncestors,
123
- Y as hide,
124
- Z as offset,
125
- ee as platform,
126
- ne as shift,
127
- L as useFloating
3
+ o as booleanishToBoolean
128
4
  };
package/dist/index203.js CHANGED
@@ -1,7 +1,10 @@
1
- import { getDefaultExportFromCjs as r } from "./index251.js";
2
- import { __require as o } from "./index250.js";
3
- var t = o();
4
- const s = /* @__PURE__ */ r(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
+ });
5
8
  export {
6
- s as default
9
+ e as useLogger
7
10
  };