bitboss-ui 2.0.47 → 2.0.49

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/index108.js +129 -115
  2. package/dist/index110.js +4 -4
  3. package/dist/index118.js +1 -1
  4. package/dist/index120.js +5 -5
  5. package/dist/index122.js +1 -1
  6. package/dist/index126.js +1 -1
  7. package/dist/index127.js +1 -1
  8. package/dist/index128.js +1 -1
  9. package/dist/index13.js +1 -1
  10. package/dist/index133.js +2 -2
  11. package/dist/index15.js +4 -4
  12. package/dist/index17.js +3 -3
  13. package/dist/index19.js +2 -2
  14. package/dist/index206.js +5 -8
  15. package/dist/index207.js +16 -2
  16. package/dist/index208.js +16 -4
  17. package/dist/index209.js +19 -2
  18. package/dist/index21.js +14 -14
  19. package/dist/index210.js +19 -5
  20. package/dist/index211.js +24 -13
  21. package/dist/index212.js +3 -16
  22. package/dist/index213.js +2 -19
  23. package/dist/index214.js +8 -19
  24. package/dist/index215.js +247 -25
  25. package/dist/index216.js +52 -3
  26. package/dist/index217.js +44 -2
  27. package/dist/index218.js +5 -249
  28. package/dist/index219.js +40 -43
  29. package/dist/index220.js +3 -44
  30. package/dist/index221.js +3 -5
  31. package/dist/index222.js +41 -49
  32. package/dist/index223.js +5 -52
  33. package/dist/index224.js +9 -0
  34. package/dist/index225.js +158 -13
  35. package/dist/index226.js +83 -19
  36. package/dist/index228.js +53 -3
  37. package/dist/index23.js +15 -15
  38. package/dist/index230.js +13 -6
  39. package/dist/index231.js +20 -7
  40. package/dist/index232.js +4 -3
  41. package/dist/index233.js +2 -158
  42. package/dist/index234.js +4 -84
  43. package/dist/index235.js +4 -0
  44. package/dist/index236.js +126 -2
  45. package/dist/index237.js +122 -123
  46. package/dist/index238.js +2 -125
  47. package/dist/index239.js +5 -2
  48. package/dist/index240.js +369 -5
  49. package/dist/index241.js +2 -369
  50. package/dist/index242.js +18 -2
  51. package/dist/index243.js +105 -17
  52. package/dist/{index246.js → index245.js} +1 -1
  53. package/dist/index247.js +4 -0
  54. package/dist/index25.js +5 -5
  55. package/dist/index250.js +9 -6
  56. package/dist/index251.js +3 -16
  57. package/dist/index252.js +6 -3
  58. package/dist/index253.js +15 -8
  59. package/dist/index254.js +9 -23
  60. package/dist/index255.js +23 -9
  61. package/dist/index256.js +224 -3
  62. package/dist/index257.js +283 -0
  63. package/dist/index258.js +6 -7
  64. package/dist/index259.js +2 -176
  65. package/dist/index260.js +2 -4
  66. package/dist/index261.js +2 -281
  67. package/dist/index262.js +2 -6
  68. package/dist/index263.js +2 -2
  69. package/dist/index265.js +2 -2
  70. package/dist/index266.js +2 -2
  71. package/dist/index267.js +2 -2
  72. package/dist/index268.js +2 -2
  73. package/dist/index269.js +28 -2
  74. package/dist/index27.js +1 -1
  75. package/dist/index270.js +21 -1
  76. package/dist/index272.js +7 -2
  77. package/dist/index273.js +3 -28
  78. package/dist/index274.js +12 -22
  79. package/dist/index275.js +11 -0
  80. package/dist/index276.js +9 -224
  81. package/dist/index277.js +17 -3
  82. package/dist/index278.js +430 -11
  83. package/dist/index279.js +87 -7
  84. package/dist/index280.js +3 -9
  85. package/dist/index282.js +168 -423
  86. package/dist/index283.js +3 -88
  87. package/dist/index285.js +2 -66
  88. package/dist/index286.js +126 -2
  89. package/dist/index287.js +22 -5
  90. package/dist/index289.js +427 -117
  91. package/dist/index29.js +2 -2
  92. package/dist/index290.js +126 -21
  93. package/dist/index291.js +5 -0
  94. package/dist/index292.js +3 -436
  95. package/dist/index293.js +210 -126
  96. package/dist/index294.js +5 -3
  97. package/dist/index295.js +2 -3
  98. package/dist/index296.js +59 -204
  99. package/dist/index297.js +79 -4
  100. package/dist/index299.js +4 -59
  101. package/dist/index300.js +4 -79
  102. package/dist/index301.js +61 -0
  103. package/dist/index302.js +6 -4
  104. package/dist/index303.js +18 -7
  105. package/dist/index304.js +4 -32
  106. package/dist/index305.js +7 -6
  107. package/dist/index306.js +5 -17
  108. package/dist/index307.js +10 -6
  109. package/dist/index308.js +3 -10
  110. package/dist/index309.js +33 -2
  111. package/dist/index31.js +2 -2
  112. package/dist/index310.js +46 -3
  113. package/dist/index311.js +2 -47
  114. package/dist/index312.js +2 -2
  115. package/dist/index314.js +1 -1
  116. package/dist/index315.js +47 -2
  117. package/dist/index316.js +2 -47
  118. package/dist/index33.js +2 -2
  119. package/dist/index35.js +3 -3
  120. package/dist/index37.js +13 -13
  121. package/dist/index39.js +3 -3
  122. package/dist/index41.js +2 -2
  123. package/dist/index43.js +2 -2
  124. package/dist/index45.js +6 -6
  125. package/dist/index47.js +2 -2
  126. package/dist/index49.js +2 -2
  127. package/dist/index55.js +1 -1
  128. package/dist/index57.js +1 -1
  129. package/dist/index75.js +3 -3
  130. package/dist/index79.js +2 -2
  131. package/dist/index81.js +1 -1
  132. package/dist/index84.js +2 -2
  133. package/dist/index86.js +1 -1
  134. package/dist/index88.js +3 -3
  135. package/package.json +2 -2
  136. package/dist/index227.js +0 -6
  137. package/dist/index229.js +0 -43
  138. package/dist/index244.js +0 -108
  139. package/dist/index271.js +0 -4
  140. package/dist/index281.js +0 -19
  141. package/dist/index288.js +0 -4
  142. package/dist/index298.js +0 -6
package/dist/index108.js CHANGED
@@ -1,15 +1,15 @@
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
- import { useId as fe } from "./index8.js";
3
- import { useRoute as ye } from "./index136.js";
4
- import { useRouter as me } from "./index137.js";
5
- import { wait as ve } from "./index131.js";
6
- import { useScroll as pe, useWindowSize as ke } from "./index132.js";
7
- import ge from "./index13.js";
1
+ import { defineComponent as le, ref as r, computed as $, getCurrentInstance as ae, watch as b, nextTick as ie, onMounted as se, openBlock as h, createElementBlock as p, unref as ne, normalizeClass as T, createElementVNode as c, renderSlot as k, normalizeProps as H, guardReactiveProps as U, normalizeStyle as K, Fragment as J, renderList as M, createVNode as O, withCtx as I, toDisplayString as re, createBlock as oe, Transition as ue, createCommentVNode as de } from "vue";
2
+ import { useId as ce } from "./index8.js";
3
+ import { useRoute as be } from "./index136.js";
4
+ import { useRouter as he } from "./index137.js";
5
+ import { wait as fe } from "./index131.js";
6
+ import { useScroll as ye, useWindowSize as me } from "./index132.js";
7
+ import ve from "./index13.js";
8
8
  /* empty css */
9
- import _e from "./index127.js";
9
+ import pe from "./index127.js";
10
10
  /* empty css */
11
- import { throttledWatch as we } from "./index204.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({
11
+ import { throttledWatch as ke } from "./index204.js";
12
+ const ge = ["id"], _e = { class: "bb-tab__label-boundary" }, we = { class: "bb-tab__label" }, $e = { class: "bb-tab__panes-container" }, Se = ["id", "aria-labelledby"], We = /* @__PURE__ */ le({
13
13
  __name: "BbTab",
14
14
  props: {
15
15
  disabled: { type: Boolean },
@@ -24,52 +24,57 @@ const $e = ["id"], Se = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
24
24
  replace: { type: Boolean }
25
25
  },
26
26
  emits: ["update:modelValue"],
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
- left: L.left,
32
- right: L.right
33
- })), B = !!((F = (D = re()) == null ? void 0 : D.proxy) != null && F.$inertia), i = n(null), o = _(
27
+ setup(j, { expose: G, emit: Q }) {
28
+ var N, A;
29
+ const t = j, X = Q, d = be(), S = he(), q = r(), L = t.id ?? ce().id.value, g = `bb-tab_${L}`, f = r(), { isScrolling: Y, arrivedState: V } = ye(f), B = $(() => ({
30
+ isScrolling: Y.value,
31
+ left: V.left,
32
+ right: V.right
33
+ })), C = !!((A = (N = ae()) == null ? void 0 : N.proxy) != null && A.$inertia), i = r(null), o = $(
34
34
  () => t.items.findIndex((e) => e.key === i.value)
35
- ), k = _(() => o.value === 0), g = _(() => o.value === t.items.length - 1);
36
- if (t.items.forEach((e) => {
35
+ ), _ = $(() => o.value === 0), w = $(() => o.value === t.items.length - 1);
36
+ 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
- }), t.navigation && ((A = (N = d.value) == null ? void 0 : N.query) != null && A[t.querykey]))
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
- t.querykey
44
- );
45
- else if (t.modelValue)
46
- i.value = t.modelValue;
47
- else if (t.items[0]) {
48
- const e = t.items.find((l) => !l.disabled);
49
- if (!e)
50
- throw new Error(
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."
39
+ });
40
+ const P = () => {
41
+ var e, a, l, n, s;
42
+ if (t.navigation && ((a = (e = d.value) == null ? void 0 : e.query) != null && a[t.querykey]))
43
+ i.value = (n = (l = d.value) == null ? void 0 : l.query) == null ? void 0 : n[t.querykey];
44
+ else if (t.navigation && C && ((s = globalThis == null ? void 0 : globalThis.location) != null && s.href) && new URL(globalThis.location.href).searchParams.get(t.querykey))
45
+ i.value = new URL(globalThis.location.href).searchParams.get(
46
+ t.querykey
52
47
  );
53
- const a = e.key;
54
- i.value = a;
55
- }
56
- const f = async (e, a = !1) => {
57
- var l, r, s, J;
58
- if (t.navigation && d.value && ((r = (l = d.value) == null ? void 0 : l.query) == null ? void 0 : r[t.querykey]) !== e)
59
- w == null || w.push({
48
+ else if (t.modelValue)
49
+ i.value = t.modelValue;
50
+ else if (t.items[0]) {
51
+ const m = t.items.find((te) => !te.disabled);
52
+ if (!m)
53
+ throw new Error(
54
+ "No tab has been selected so it defaulted to the first available. Still, all the tabs are disabled so no tab can be selected."
55
+ );
56
+ const v = m.key;
57
+ i.value = v;
58
+ }
59
+ };
60
+ P();
61
+ const y = async (e, a = !1) => {
62
+ var l, n, s, m;
63
+ if (t.navigation && d.value && ((n = (l = d.value) == null ? void 0 : l.query) == null ? void 0 : n[t.querykey]) !== e)
64
+ S == null || S.push({
60
65
  ...d,
61
66
  query: { ...(s = d.value) == null ? void 0 : s.query, [t.querykey]: e },
62
67
  replace: a
63
68
  });
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());
69
+ else if (t.navigation && C && ((m = globalThis == null ? void 0 : globalThis.location) != null && m.href) && new URL(globalThis.location.href).searchParams.get(t.querykey) !== e) {
70
+ const v = new URL(globalThis.location.href);
71
+ v.searchParams.set(t.querykey, e), fe(0).then(() => {
72
+ a ? history.replaceState({}, "", v.toString()) : history.pushState({}, "", v.toString());
68
73
  });
69
74
  }
70
- t.modelValue !== e && te("update:modelValue", e), i.value = e;
75
+ t.modelValue !== e && X("update:modelValue", e), i.value = e;
71
76
  };
72
- i.value && f(i.value, !0);
77
+ i.value && y(i.value, !0);
73
78
  const u = (e) => {
74
79
  var a = null;
75
80
  switch (e) {
@@ -97,11 +102,11 @@ const $e = ["id"], Se = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
97
102
  if (a === null)
98
103
  throw new Error("Could not navigate to next tab");
99
104
  if (t.items[a].disabled) return;
100
- const l = t.items[a].key, r = document.querySelector(
101
- `#${p}_tab_${l}`
105
+ const l = t.items[a].key, n = document.querySelector(
106
+ `#${g}_tab_${l}`
102
107
  );
103
- r == null || r.focus(), f(l, t.replace);
104
- }, ae = (e) => {
108
+ n == null || n.focus(), y(l, t.replace);
109
+ }, Z = (e) => {
105
110
  if (!t.disabled)
106
111
  if (e.key === "ArrowRight")
107
112
  u("next");
@@ -114,27 +119,27 @@ const $e = ["id"], Se = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
114
119
  else
115
120
  return;
116
121
  };
117
- y(
122
+ b(
118
123
  () => t.modelValue,
119
124
  (e) => {
120
- e && f(e, t.replace);
125
+ e && y(e, t.replace);
121
126
  }
122
- ), y(
127
+ ), b(
123
128
  () => {
124
129
  var e, a;
125
130
  return (a = (e = d.value) == null ? void 0 : e.query) == null ? void 0 : a[t.querykey];
126
131
  },
127
132
  (e) => {
128
- e && typeof e == "string" && f(e, t.replace);
133
+ e && typeof e == "string" && y(e, t.replace);
129
134
  }
130
- ), y(
135
+ ), b(
131
136
  i,
132
137
  async () => {
133
- if ($.value) {
134
- const e = $.value.querySelector(
138
+ if (q.value) {
139
+ const e = q.value.querySelector(
135
140
  "[role=tablist] .bb-tab__btn--active"
136
141
  );
137
- e && (await ne(), e.scrollIntoView({
142
+ e && (await ie(), e.scrollIntoView({
138
143
  behavior: "smooth",
139
144
  block: "nearest",
140
145
  inline: "nearest"
@@ -143,101 +148,110 @@ const $e = ["id"], Se = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
143
148
  },
144
149
  { flush: "post" }
145
150
  );
146
- const C = n("right");
147
- y(
151
+ const R = r("right");
152
+ b(
148
153
  i,
149
154
  (e, a) => {
150
155
  if (e && a) {
151
- const l = t.items.findIndex((s) => s.key === e), r = t.items.findIndex((s) => s.key === a);
152
- C.value = l > r ? "right" : "left";
156
+ const l = t.items.findIndex((s) => s.key === e), n = t.items.findIndex((s) => s.key === a);
157
+ R.value = l > n ? "right" : "left";
153
158
  }
154
159
  },
155
160
  { flush: "sync" }
156
161
  );
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(
162
+ const E = r(0), W = r(0), z = r(0), D = r(0), F = r(0), x = () => {
163
+ if (!f.value) return;
164
+ const e = f.value.querySelector(
160
165
  ".bb-tab__btn--active"
161
166
  );
162
- e && (P.value = e.offsetLeft, W.value = e.offsetTop, R.value = e.clientWidth, E.value = e.clientHeight, z.value = h.value.scrollWidth);
167
+ e && (z.value = e.offsetLeft, D.value = e.offsetTop, E.value = e.clientWidth, W.value = e.clientHeight, F.value = f.value.scrollWidth);
163
168
  };
164
- oe(S), y(i, S, { flush: "post" });
165
- const { width: ie } = ke();
166
- return we(ie, S, { throttle: 100 }), Z({
167
- isFirst: k,
168
- isLast: g,
169
+ se(x), b(i, x, { flush: "post" });
170
+ const { width: ee } = me();
171
+ return ke(ee, x, { throttle: 100 }), b(
172
+ () => t.items,
173
+ () => {
174
+ i.value && !t.items.find((e) => e.key === i.value) && P();
175
+ },
176
+ {
177
+ immediate: !0,
178
+ deep: !0
179
+ }
180
+ ), G({
181
+ isFirst: _,
182
+ isLast: w,
169
183
  current: i,
170
184
  currentIndex: o,
171
185
  goTo: u
172
- }), (e, a) => (b(), m("div", {
173
- id: ue(I),
186
+ }), (e, a) => (h(), p("div", {
187
+ id: ne(L),
174
188
  ref_key: "tabs",
175
- ref: $,
176
- class: x(["bb-tab", {
189
+ ref: q,
190
+ class: T(["bb-tab", {
177
191
  [`bb-tab--${e.direction}`]: !0,
178
192
  "bb-tab--disabled": !0
179
193
  }])
180
194
  }, [
181
- c("div", Se, [
195
+ c("div", _e, [
182
196
  c("span", null, [
183
- v(e.$slots, "header:prepend", M(O(V.value)))
197
+ k(e.$slots, "header:prepend", H(U(B.value)))
184
198
  ]),
185
199
  c("ul", {
186
200
  ref_key: "tablist",
187
- ref: h,
201
+ ref: f,
188
202
  class: "bb-tab__label-container",
189
203
  role: "tablist",
190
- style: j({
191
- "--inner-width": `${z.value}px`
204
+ style: K({
205
+ "--inner-width": `${F.value}px`
192
206
  })
193
207
  }, [
194
208
  c("span", {
195
209
  class: "bb-tab__highlight",
196
- style: j({
197
- "--width": `${R.value}px`,
198
- "--height": `${E.value}px`,
199
- "--left": `${P.value}px`,
200
- "--top": `${W.value}px`
210
+ style: K({
211
+ "--width": `${E.value}px`,
212
+ "--height": `${W.value}px`,
213
+ "--left": `${z.value}px`,
214
+ "--top": `${D.value}px`
201
215
  })
202
216
  }, null, 4),
203
- (b(!0), m(G, null, Q(e.items, (l) => (b(), m("li", {
217
+ (h(!0), p(J, null, M(e.items, (l) => (h(), p("li", {
204
218
  key: l.key,
205
219
  role: "presentation"
206
220
  }, [
207
- X(ge, {
208
- id: `${p}_tab_${l.key}`,
221
+ O(ve, {
222
+ id: `${g}_tab_${l.key}`,
209
223
  "aria-selected": i.value === l.key,
210
- class: x(["bb-tab__btn", { "bb-tab__btn--active": i.value === l.key }]),
224
+ class: T(["bb-tab__btn", { "bb-tab__btn--active": i.value === l.key }]),
211
225
  disabled: l.disabled || e.disabled,
212
226
  role: "tab",
213
227
  tabindex: i.value === l.key ? 0 : -1,
214
- onClick: (r) => f(l.key, t.replace),
215
- onKeydown: ae
228
+ onClick: (n) => y(l.key, t.replace),
229
+ onKeydown: Z
216
230
  }, {
217
- default: T(() => [
218
- v(e.$slots, `label-${l.key}`, {
231
+ default: I(() => [
232
+ k(e.$slots, `label-${l.key}`, {
219
233
  current: i.value,
220
234
  currentIndex: o.value,
221
235
  disabled: !!(l.disabled || e.disabled),
222
236
  goTo: u,
223
- isFirst: k.value,
224
- isLast: g.value,
237
+ isFirst: _.value,
238
+ isLast: w.value,
225
239
  selected: i.value === l.key,
226
240
  text: l.label,
227
241
  value: l.key
228
242
  }, () => [
229
- v(e.$slots, "label", {
243
+ k(e.$slots, "label", {
230
244
  current: i.value,
231
245
  currentIndex: o.value,
232
246
  disabled: !!(l.disabled || e.disabled),
233
247
  goTo: u,
234
- isFirst: k.value,
235
- isLast: g.value,
248
+ isFirst: _.value,
249
+ isLast: w.value,
236
250
  selected: i.value === l.key,
237
251
  text: l.label,
238
252
  value: l.key
239
253
  }, () => [
240
- c("span", qe, de(l.label), 1)
254
+ c("span", we, re(l.label), 1)
241
255
  ])
242
256
  ])
243
257
  ]),
@@ -246,40 +260,40 @@ const $e = ["id"], Se = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
246
260
  ]))), 128))
247
261
  ], 4),
248
262
  c("span", null, [
249
- v(e.$slots, "header:append", M(O(V.value)))
263
+ k(e.$slots, "header:append", H(U(B.value)))
250
264
  ])
251
265
  ]),
252
- c("div", xe, [
253
- X(_e, null, {
254
- default: T(() => [
255
- (b(!0), m(G, null, Q(e.items, (l) => (b(), ce(be, {
266
+ c("div", $e, [
267
+ O(pe, null, {
268
+ default: I(() => [
269
+ (h(!0), p(J, null, M(e.items, (l) => (h(), oe(ue, {
256
270
  key: l.key,
257
271
  css: e.animate,
258
- name: `tab-slide-${C.value}`
272
+ name: `tab-slide-${R.value}`
259
273
  }, {
260
- default: T(() => [
261
- i.value === l.key || e.eager || l.eager ? (b(), m("section", {
274
+ default: I(() => [
275
+ i.value === l.key || e.eager || l.eager ? (h(), p("section", {
262
276
  key: 0,
263
- id: `${p}_tabpanel_${l.key}`,
264
- "aria-labelledby": `${p}_tab_${l.key}`,
265
- class: x(["bb-tab__pane", {
277
+ id: `${g}_tabpanel_${l.key}`,
278
+ "aria-labelledby": `${g}_tab_${l.key}`,
279
+ class: T(["bb-tab__pane", {
266
280
  "bb-tab__pane--shown": i.value === l.key
267
281
  }]),
268
282
  role: "tabpanel",
269
283
  tabindex: "0"
270
284
  }, [
271
- v(e.$slots, l.key, {
285
+ k(e.$slots, l.key, {
272
286
  current: i.value,
273
287
  currentIndex: o.value,
274
288
  disabled: !!(l.disabled || e.disabled),
275
289
  goTo: u,
276
- isFirst: k.value,
277
- isLast: g.value,
290
+ isFirst: _.value,
291
+ isLast: w.value,
278
292
  selected: i.value === l.key,
279
293
  text: l.label,
280
294
  value: l.key
281
295
  })
282
- ], 10, Te)) : he("", !0)
296
+ ], 10, Se)) : de("", !0)
283
297
  ]),
284
298
  _: 2
285
299
  }, 1032, ["css", "name"]))), 128))
@@ -287,9 +301,9 @@ const $e = ["id"], Se = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
287
301
  _: 3
288
302
  })
289
303
  ])
290
- ], 10, $e));
304
+ ], 10, ge));
291
305
  }
292
306
  });
293
307
  export {
294
- Fe as default
308
+ We as default
295
309
  };
package/dist/index110.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as oe, ref as x, computed as y, 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 _, createElementVNode as o, 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 "./index286.js";
2
+ import { add as ue } from "./index295.js";
3
3
  import { clamp as pe } from "./index205.js";
4
4
  import { isNil as M } from "./index129.js";
5
5
  import { useId as fe } from "./index8.js";
6
- import { useItemValue as me } from "./index280.js";
7
- import { when as ye } from "./index208.js";
6
+ import { useItemValue as me } from "./index276.js";
7
+ import { when as ye } from "./index234.js";
8
8
  import J from "./index17.js";
9
9
  /* empty css */
10
10
  import he from "./index31.js";
11
11
  /* empty css */
12
- import { useOptions as ke } from "./index233.js";
12
+ import { useOptions as ke } from "./index225.js";
13
13
  const _e = {
14
14
  key: 0,
15
15
  class: "sr-only"
package/dist/index118.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as s, openBlock as e, createBlock as o, Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as f, Fragment as d, renderList as _, unref as r, mergeProps as b } from "vue";
2
2
  import { state as k, useToast as C } from "./index11.js";
3
- import B from "./index285.js";
3
+ import B from "./index296.js";
4
4
  const N = /* @__PURE__ */ s({
5
5
  __name: "BbToast",
6
6
  props: {
package/dist/index120.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as z, defineAsyncComponent as A, ref as a, watch as I, computed as R, openBlock as v, createElementBlock as S, mergeProps as U, createElementVNode as c, renderSlot as E, normalizeProps as W, guardReactiveProps as j, unref as u, createBlock as D, withCtx as L, createCommentVNode as M } from "vue";
2
- import { useFloating as q, arrow as G } from "./index237.js";
2
+ import { useFloating as q, arrow as G } from "./index236.js";
3
3
  import { useId as J } from "./index8.js";
4
4
  import { wait as P } from "./index131.js";
5
5
  import K from "./index13.js";
6
6
  /* empty css */
7
- import { throttle as b } from "./index228.js";
8
- import { waitFor as Q } from "./index230.js";
9
- import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index241.js";
7
+ import { throttle as b } from "./index221.js";
8
+ import { waitFor as Q } from "./index223.js";
9
+ import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index240.js";
10
10
  const ue = /* @__PURE__ */ z({
11
11
  __name: "BbTooltip",
12
12
  props: {
@@ -24,7 +24,7 @@ const ue = /* @__PURE__ */ z({
24
24
  },
25
25
  setup(F) {
26
26
  const O = A(
27
- () => import("./index252.js")
27
+ () => import("./index251.js")
28
28
  ), t = F, w = `bb_${t.id ?? J().id.value}`, s = a(), d = a(), _ = a(), { placement: g, middlewareData: $ } = q(s, d, {
29
29
  placement: t.placement,
30
30
  whileElementsMounted: X,
package/dist/index122.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
2
- import { flattenTree as T } from "./index287.js";
2
+ import { flattenTree as T } from "./index294.js";
3
3
  const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
4
4
  __name: "BbTree",
5
5
  props: {
package/dist/index126.js CHANGED
@@ -1,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 "./index207.js";
2
+ import { isCssColor as w } from "./index233.js";
3
3
  const g = ["innerHTML"], $ = /* @__PURE__ */ m({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index127.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
2
- import { throttle as g } from "./index228.js";
2
+ import { throttle as g } from "./index221.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index128.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as s, openBlock as b, createElementBlock as a, normalizeProps as _, guardReactiveProps as x, createStaticVNode as m } from "vue";
2
- import { isCssColor as u } from "./index207.js";
2
+ import { isCssColor as u } from "./index233.js";
3
3
  const f = /* @__PURE__ */ p({
4
4
  __name: "BbSpinner",
5
5
  props: {
package/dist/index13.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as 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 "./index206.js";
3
+ import { useLogger as m } from "./index214.js";
4
4
  const P = /* @__PURE__ */ y({
5
5
  __name: "BaseButton",
6
6
  props: {
package/dist/index133.js CHANGED
@@ -1,5 +1,5 @@
1
- import { isArray as p } from "./index302.js";
2
- import { isPlainObject as c } from "./index303.js";
1
+ import { isArray as p } from "./index304.js";
2
+ import { isPlainObject as c } from "./index305.js";
3
3
  function i(e, n, u, l, r) {
4
4
  const o = {}.propertyIsEnumerable.call(l, n) ? "enumerable" : "nonenumerable";
5
5
  o === "enumerable" && (e[n] = u), r && o === "nonenumerable" && Object.defineProperty(e, n, {
package/dist/index15.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as k, ref as y, computed as v, watchPostEffect as h, openBlock as g, createElementBlock as C, Fragment as w, createVNode as d, normalizeClass as V, withCtx as n, renderSlot as l, createElementVNode as s, normalizeStyle as H, withModifiers as B, withDirectives as E, mergeProps as q, unref as $ } from "vue";
2
- import z from "./index223.js";
2
+ import z from "./index228.js";
3
3
  /* empty css */
4
- import I from "./index225.js";
5
- import { vMaska as M } from "./index226.js";
6
- import { isHex as D } from "./index227.js";
4
+ import I from "./index230.js";
5
+ import { vMaska as M } from "./index231.js";
6
+ import { isHex as D } from "./index232.js";
7
7
  const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], P = ["aria-invalid", "disabled", "required"], T = /* @__PURE__ */ k({
8
8
  __name: "BaseColorInput",
9
9
  props: {
package/dist/index17.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as E, ref as m, computed as n, watch as _, openBlock as p, createElementBlock as h, normalizeProps as i, guardReactiveProps as f, mergeProps as k, createCommentVNode as I, createElementVNode as s, renderSlot as q } from "vue";
2
- import { isCssColor as y } from "./index207.js";
3
- import { when as F } from "./index208.js";
4
- import { booleanishToBoolean as N } from "./index209.js";
2
+ import { isCssColor as y } from "./index233.js";
3
+ import { when as F } from "./index234.js";
4
+ import { booleanishToBoolean as N } from "./index235.js";
5
5
  const S = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"
package/dist/index19.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as $, ref as p, toRef as l, openBlock as B, createBlock as w, unref as f, withCtx as i, renderSlot as s, normalizeProps as b, guardReactiveProps as h, createVNode as O, mergeProps as v } from "vue";
2
- import { useOptions as z } from "./index233.js";
2
+ import { useOptions as z } from "./index225.js";
3
3
  import F from "./index17.js";
4
4
  /* empty css */
5
- import M from "./index234.js";
5
+ import M from "./index226.js";
6
6
  /* empty css */
7
7
  const G = /* @__PURE__ */ $({
8
8
  __name: "BaseCheckboxGroup",
package/dist/index206.js CHANGED
@@ -1,10 +1,7 @@
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 { getDefaultExportFromCjs as r } from "./index258.js";
2
+ import { __require as o } from "./index257.js";
3
+ var t = o();
4
+ const s = /* @__PURE__ */ r(t);
8
5
  export {
9
- e as useLogger
6
+ s as default
10
7
  };
package/dist/index207.js CHANGED
@@ -1,4 +1,18 @@
1
- const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
1
+ import { getDefaultExportFromCjs as f, commonjsGlobal as n } from "./index258.js";
2
+ import { __module as e } from "./index260.js";
3
+ (function(s, a) {
4
+ (function(i, t) {
5
+ s.exports = t();
6
+ })(n, function() {
7
+ return function(i, t) {
8
+ t.prototype.isSameOrAfter = function(r, o) {
9
+ return this.isSame(r, o) || this.isAfter(r, o);
10
+ };
11
+ };
12
+ });
13
+ })(e);
14
+ var m = e.exports;
15
+ const c = /* @__PURE__ */ f(m);
2
16
  export {
3
- s as isCssColor
17
+ c as default
4
18
  };
package/dist/index208.js CHANGED
@@ -1,6 +1,18 @@
1
- import { curry as e } from "./index260.js";
2
- const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
1
+ import { getDefaultExportFromCjs as i, commonjsGlobal as n } from "./index258.js";
2
+ import { __module as t } from "./index261.js";
3
+ (function(s, a) {
4
+ (function(f, o) {
5
+ s.exports = o();
6
+ })(n, function() {
7
+ return function(f, o) {
8
+ o.prototype.isSameOrBefore = function(e, r) {
9
+ return this.isSame(e, r) || this.isBefore(e, r);
10
+ };
11
+ };
12
+ });
13
+ })(t);
14
+ var m = t.exports;
15
+ const c = /* @__PURE__ */ i(m);
3
16
  export {
4
- t as baseWhen,
5
- s as when
17
+ c as default
6
18
  };
package/dist/index209.js CHANGED
@@ -1,4 +1,21 @@
1
- const o = (e) => typeof e == "boolean" ? e : e === "true";
1
+ import { getDefaultExportFromCjs as i, commonjsGlobal as m } from "./index258.js";
2
+ import { __module as _ } from "./index262.js";
3
+ import { __require as s } from "./index257.js";
4
+ (function(n, d) {
5
+ (function(t, o) {
6
+ n.exports = o(s());
7
+ })(m, function(t) {
8
+ function o(e) {
9
+ return e && typeof e == "object" && "default" in e ? e : { default: e };
10
+ }
11
+ var a = o(t), r = { name: "it", weekdays: "domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"), weekdaysShort: "dom_lun_mar_mer_gio_ven_sab".split("_"), weekdaysMin: "do_lu_ma_me_gi_ve_sa".split("_"), months: "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"), weekStart: 1, monthsShort: "gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"), formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, relativeTime: { future: "tra %s", past: "%s fa", s: "qualche secondo", m: "un minuto", mm: "%d minuti", h: "un' ora", hh: "%d ore", d: "un giorno", dd: "%d giorni", M: "un mese", MM: "%d mesi", y: "un anno", yy: "%d anni" }, ordinal: function(e) {
12
+ return e + "º";
13
+ } };
14
+ return a.default.locale(r, null, !0), r;
15
+ });
16
+ })(_);
17
+ var u = _.exports;
18
+ const p = /* @__PURE__ */ i(u);
2
19
  export {
3
- o as booleanishToBoolean
20
+ p as default
4
21
  };