bitboss-ui 2.0.34 → 2.0.36

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