bitboss-ui 2.0.105 → 2.0.106

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 (175) hide show
  1. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +0 -1
  2. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +1 -7
  3. package/dist/components/BbAlert/BbAlert.vue.d.ts +0 -1
  4. package/dist/components/BbChip/BbChip.vue.d.ts +0 -1
  5. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +0 -1
  6. package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
  7. package/dist/components/BbTable/BbTable.vue.d.ts +2 -7
  8. package/dist/components/ListBox.vue.d.ts +0 -2
  9. package/dist/composables/useLocale.d.ts +1 -1
  10. package/dist/i18n/en.d.ts +45 -0
  11. package/dist/i18n/it.d.ts +45 -0
  12. package/dist/index100.js +9 -9
  13. package/dist/index111.js +109 -108
  14. package/dist/index119.js +2 -2
  15. package/dist/index121.js +55 -54
  16. package/dist/index123.js +1 -1
  17. package/dist/index125.js +14 -13
  18. package/dist/index127.js +1 -1
  19. package/dist/index128.js +1 -1
  20. package/dist/index129.js +1 -1
  21. package/dist/index13.js +1 -1
  22. package/dist/index131.js +1 -1
  23. package/dist/index132.js +2 -2
  24. package/dist/index133.js +2 -2
  25. package/dist/index15.js +36 -35
  26. package/dist/index17.js +3 -3
  27. package/dist/index19.js +63 -64
  28. package/dist/index205.js +2 -115
  29. package/dist/index206.js +86 -2
  30. package/dist/index208.js +25 -4
  31. package/dist/index209.js +17 -2
  32. package/dist/index21.js +110 -103
  33. package/dist/index210.js +46 -279
  34. package/dist/index211.js +15 -16
  35. package/dist/index212.js +3 -16
  36. package/dist/index213.js +12 -19
  37. package/dist/index214.js +16 -19
  38. package/dist/index215.js +2 -27
  39. package/dist/index216.js +4 -3
  40. package/dist/index217.js +2 -2
  41. package/dist/index219.js +3 -250
  42. package/dist/index220.js +41 -52
  43. package/dist/index221.js +5 -43
  44. package/dist/index222.js +7 -5
  45. package/dist/index223.js +10 -58
  46. package/dist/index224.js +12 -83
  47. package/dist/index225.js +55 -0
  48. package/dist/index227.js +13 -25
  49. package/dist/index228.js +5 -17
  50. package/dist/index229.js +15 -47
  51. package/dist/index23.js +127 -119
  52. package/dist/index230.js +16 -15
  53. package/dist/index231.js +19 -12
  54. package/dist/index232.js +15 -16
  55. package/dist/index233.js +19 -3
  56. package/dist/index234.js +26 -40
  57. package/dist/index235.js +2 -6
  58. package/dist/index236.js +250 -7
  59. package/dist/index237.js +50 -10
  60. package/dist/index238.js +39 -48
  61. package/dist/index239.js +7 -0
  62. package/dist/index240.js +60 -13
  63. package/dist/index241.js +20 -3
  64. package/dist/index242.js +3 -125
  65. package/dist/index243.js +123 -122
  66. package/dist/index244.js +125 -2
  67. package/dist/index245.js +2 -20
  68. package/dist/index246.js +2 -2
  69. package/dist/index247.js +2 -2
  70. package/dist/index248.js +114 -3
  71. package/dist/index249.js +3 -2
  72. package/dist/index25.js +44 -41
  73. package/dist/index250.js +2 -2
  74. package/dist/index251.js +18 -2
  75. package/dist/index252.js +105 -17
  76. package/dist/{index255.js → index254.js} +2 -2
  77. package/dist/index256.js +14 -0
  78. package/dist/index257.js +2 -12
  79. package/dist/index258.js +2 -10
  80. package/dist/index259.js +9 -2
  81. package/dist/index260.js +3 -6
  82. package/dist/index261.js +3 -16
  83. package/dist/index262.js +17 -9
  84. package/dist/index263.js +8 -8
  85. package/dist/index264.js +28 -23
  86. package/dist/index265.js +4 -89
  87. package/dist/index266.js +433 -0
  88. package/dist/index267.js +2 -4
  89. package/dist/index268.js +88 -5
  90. package/dist/index269.js +7 -2
  91. package/dist/index27.js +1 -1
  92. package/dist/index270.js +11 -2
  93. package/dist/index271.js +3 -2
  94. package/dist/index273.js +7 -2
  95. package/dist/index274.js +200 -2
  96. package/dist/index275.js +281 -2
  97. package/dist/index276.js +6 -2
  98. package/dist/index277.js +2 -2
  99. package/dist/index278.js +2 -2
  100. package/dist/index279.js +2 -28
  101. package/dist/index280.js +2 -22
  102. package/dist/index282.js +2 -7
  103. package/dist/index283.js +2 -3
  104. package/dist/index284.js +2 -7
  105. package/dist/index285.js +2 -11
  106. package/dist/index286.js +2 -17
  107. package/dist/index287.js +2 -9
  108. package/dist/index288.js +20 -429
  109. package/dist/index29.js +3 -3
  110. package/dist/index290.js +8 -88
  111. package/dist/index291.js +23 -3
  112. package/dist/index292.js +91 -0
  113. package/dist/index294.js +171 -195
  114. package/dist/index297.js +22 -176
  115. package/dist/index299.js +11 -0
  116. package/dist/index300.js +6 -8
  117. package/dist/index301.js +15 -435
  118. package/dist/index302.js +8 -127
  119. package/dist/index303.js +224 -3
  120. package/dist/index304.js +436 -3
  121. package/dist/index305.js +126 -212
  122. package/dist/index306.js +3 -3
  123. package/dist/index307.js +3 -3
  124. package/dist/index308.js +212 -56
  125. package/dist/index309.js +67 -7
  126. package/dist/index31.js +2 -2
  127. package/dist/index310.js +2 -19
  128. package/dist/index311.js +5 -66
  129. package/dist/index312.js +4 -6
  130. package/dist/index313.js +8 -2
  131. package/dist/index314.js +6 -4
  132. package/dist/index315.js +18 -7
  133. package/dist/index316.js +45 -0
  134. package/dist/index317.js +47 -2
  135. package/dist/index318.js +7 -5
  136. package/dist/index319.js +32 -2
  137. package/dist/index321.js +2 -32
  138. package/dist/index322.js +3 -47
  139. package/dist/index323.js +3 -2
  140. package/dist/index324.js +49 -471
  141. package/dist/index325.js +49 -0
  142. package/dist/index326.js +2 -424
  143. package/dist/index327.js +479 -46
  144. package/dist/index329.js +426 -0
  145. package/dist/index33.js +45 -45
  146. package/dist/index330.js +49 -0
  147. package/dist/index35.js +56 -55
  148. package/dist/index37.js +166 -165
  149. package/dist/index39.js +5 -5
  150. package/dist/index41.js +2 -2
  151. package/dist/index43.js +70 -71
  152. package/dist/index45.js +7 -7
  153. package/dist/index47.js +2 -2
  154. package/dist/index49.js +2 -2
  155. package/dist/index53.js +28 -27
  156. package/dist/index55.js +1 -1
  157. package/dist/index57.js +2 -2
  158. package/dist/index61.js +32 -31
  159. package/dist/index75.js +3 -3
  160. package/dist/index77.js +87 -86
  161. package/dist/index79.js +2 -2
  162. package/dist/index81.js +1 -1
  163. package/dist/index84.js +45 -44
  164. package/dist/index86.js +67 -66
  165. package/dist/index88.js +69 -67
  166. package/dist/index90.js +1 -1
  167. package/package.json +1 -1
  168. package/dist/index207.js +0 -4
  169. package/dist/index226.js +0 -10
  170. package/dist/index253.js +0 -108
  171. package/dist/index289.js +0 -4
  172. package/dist/index293.js +0 -226
  173. package/dist/index298.js +0 -24
  174. /package/dist/{index272.js → index281.js} +0 -0
  175. /package/dist/{index328.js → index331.js} +0 -0
package/dist/index86.js CHANGED
@@ -1,10 +1,11 @@
1
- import { defineComponent as P, computed as _, ref as g, onMounted as A, onBeforeUnmount as E, openBlock as y, createElementBlock as k, normalizeClass as C, createElementVNode as i, createVNode as V, unref as S, withCtx as h, renderSlot as v, Fragment as W, renderList as R, toDisplayString as M, nextTick as $ } from "vue";
2
- import { debounce as F } from "./index262.js";
1
+ import { defineComponent as E, computed as h, ref as g, onMounted as P, onBeforeUnmount as W, openBlock as k, createElementBlock as V, normalizeClass as $, createElementVNode as i, createVNode as S, unref as v, withCtx as w, renderSlot as c, toDisplayString as m, Fragment as R, renderList as F, nextTick as x } from "vue";
2
+ import { debounce as T } from "./index299.js";
3
3
  /* empty css */
4
4
  /* empty css */
5
- import w from "./index13.js";
5
+ import z from "./index13.js";
6
6
  /* empty css */
7
- const T = ["aria-label"], D = { class: "bb-pagination__page-label" }, G = { class: "bb-pagination__page-label" }, H = /* @__PURE__ */ P({
7
+ import { useLocale as D } from "./index224.js";
8
+ const G = ["aria-label"], I = { class: "bb-pagination__page-label sr-only" }, O = { class: "bb-pagination__page-label" }, j = { class: "bb-pagination__page-label" }, q = { class: "bb-pagination__page-label sr-only" }, Z = /* @__PURE__ */ E({
8
9
  __name: "BbPagination",
9
10
  props: {
10
11
  disabled: { type: Boolean },
@@ -17,75 +18,75 @@ const T = ["aria-label"], D = { class: "bb-pagination__page-label" }, G = { clas
17
18
  totalPages: { default: 1 }
18
19
  },
19
20
  emits: ["update:modelValue"],
20
- setup(B, { emit: x }) {
21
- const l = B, c = x, s = _(() => +l.totalPages), u = g(1), t = g(+l.maxSize), r = g(), d = g(), z = g(1 / 0), f = () => {
22
- r.value && d.value && (r.value.clientWidth < d.value.clientWidth ? t.value - 1 > 3 ? (t.value--, $(f)) : t.value = 3 : t.value < +l.maxSize && /* If there is enough space to fit one */
23
- r.value.clientWidth - d.value.clientWidth > z.value && (t.value = Math.min(t.value + 1, +l.maxSize), $(f)));
21
+ setup(B, { emit: L }) {
22
+ const a = B, f = L, { t: C } = D(), s = h(() => +a.totalPages), r = g(1), t = g(+a.maxSize), u = g(), d = g(), M = g(1 / 0), _ = () => {
23
+ u.value && d.value && (u.value.clientWidth < d.value.clientWidth ? t.value - 1 > 3 ? (t.value--, x(_)) : t.value = 3 : t.value < +a.maxSize && /* If there is enough space to fit one */
24
+ u.value.clientWidth - d.value.clientWidth > M.value && (t.value = Math.min(t.value + 1, +a.maxSize), x(_)));
24
25
  };
25
26
  if (globalThis.ResizeObserver) {
26
- const e = new ResizeObserver(F(f, 200));
27
- A(() => {
28
- if (r.value && d.value) {
29
- const a = r.value.querySelectorAll(
27
+ const e = new ResizeObserver(T(_, 200));
28
+ P(() => {
29
+ if (u.value && d.value) {
30
+ const l = u.value.querySelectorAll(
30
31
  ".bb-pagination__page"
31
32
  )[1];
32
- if (a) {
33
+ if (l) {
33
34
  const p = getComputedStyle(d.value).columnGap.replaceAll(/\D/g, ""), o = Number(p);
34
- z.value = a.clientWidth + o;
35
+ M.value = l.clientWidth + o;
35
36
  }
36
- e.observe(r.value);
37
+ e.observe(u.value);
37
38
  }
38
- }), E(() => {
39
+ }), W(() => {
39
40
  e.disconnect();
40
41
  });
41
42
  }
42
- const L = _(() => {
43
+ const N = h(() => {
43
44
  if (s.value <= 0 || isNaN(s.value) || s.value > Number.MAX_SAFE_INTEGER)
44
45
  return [];
45
- if (t.value <= 1) return [l.modelValue];
46
+ if (t.value <= 1) return [a.modelValue];
46
47
  if (s.value <= t.value)
47
- return b(s.value, u.value);
48
- const e = t.value % 2 === 0, a = e ? t.value / 2 : Math.floor(t.value / 2), n = e ? a : a + 1, p = s.value - a;
49
- if (n - l.modelValue >= 0)
48
+ return b(s.value, r.value);
49
+ const e = t.value % 2 === 0, l = e ? t.value / 2 : Math.floor(t.value / 2), n = e ? l : l + 1, p = s.value - l;
50
+ if (n - a.modelValue >= 0)
50
51
  return [
51
- ...b(Math.max(1, t.value - 1), u.value),
52
- l.ellipsis,
52
+ ...b(Math.max(1, t.value - 1), r.value),
53
+ a.ellipsis,
53
54
  s.value
54
55
  ];
55
- if (l.modelValue - p >= (e ? 1 : 0)) {
56
- const o = t.value - 1, m = s.value - o + u.value;
56
+ if (a.modelValue - p >= (e ? 1 : 0)) {
57
+ const o = t.value - 1, y = s.value - o + r.value;
57
58
  return [
58
- u.value,
59
- l.ellipsis,
60
- ...b(o, m)
59
+ r.value,
60
+ a.ellipsis,
61
+ ...b(o, y)
61
62
  ];
62
63
  } else {
63
- const o = Math.max(1, t.value - 3), m = o === 1 ? l.modelValue : l.modelValue - Math.ceil(o / 2) + u.value;
64
+ const o = Math.max(1, t.value - 3), y = o === 1 ? a.modelValue : a.modelValue - Math.ceil(o / 2) + r.value;
64
65
  return [
65
- u.value,
66
- l.ellipsis,
67
- ...b(o, m),
68
- l.ellipsis,
66
+ r.value,
67
+ a.ellipsis,
68
+ ...b(o, y),
69
+ a.ellipsis,
69
70
  s.value
70
71
  ];
71
72
  }
72
- }), N = _(() => L.value.map((e, a) => typeof e == "string" ? {
73
+ }), A = h(() => N.value.map((e, l) => typeof e == "string" ? {
73
74
  active: !1,
74
- key: `ellipsis-${a}`,
75
+ key: `ellipsis-${l}`,
75
76
  page: e,
76
77
  ellipsis: !0,
77
78
  disabled: !0
78
79
  } : {
79
- active: e === l.modelValue,
80
+ active: e === a.modelValue,
80
81
  key: e,
81
82
  page: e,
82
83
  ellipsis: !1,
83
- disabled: !!l.disabled || +l.totalPages < 2 || l.loading
84
- })), b = (e, a = 0) => Array.from({ length: e }, (n, p) => a + p);
85
- return (e, a) => (y(), k("div", {
84
+ disabled: !!a.disabled || +a.totalPages < 2 || a.loading
85
+ })), b = (e, l = 0) => Array.from({ length: e }, (n, p) => l + p);
86
+ return (e, l) => (k(), V("div", {
86
87
  ref_key: "outercontainer",
87
- ref: r,
88
- class: C(["bb-pagination", {
88
+ ref: u,
89
+ class: $(["bb-pagination", {
89
90
  [`bb-pagination--${e.align}`]: !0,
90
91
  "bb-pagination--disabled": e.disabled
91
92
  }])
@@ -97,15 +98,15 @@ const T = ["aria-label"], D = { class: "bb-pagination__page-label" }, G = { clas
97
98
  class: "bb-pagination__pages"
98
99
  }, [
99
100
  i("li", null, [
100
- V(S(w), {
101
+ S(v(z), {
101
102
  class: "bb-pagination__page bb-pagination__page--previous",
102
- disabled: l.modelValue <= 1 || e.loading || e.disabled,
103
- onClick: a[0] || (a[0] = (n) => c("update:modelValue", l.modelValue - 1))
103
+ disabled: a.modelValue <= 1 || e.loading || e.disabled,
104
+ onClick: l[0] || (l[0] = (n) => f("update:modelValue", a.modelValue - 1))
104
105
  }, {
105
- default: h(() => [
106
- v(e.$slots, "previous", {}, () => [
107
- a[2] || (a[2] = i("span", { class: "bb-pagination__page-label sr-only" }, "Precedente", -1)),
108
- a[3] || (a[3] = i("svg", {
106
+ default: w(() => [
107
+ c(e.$slots, "previous", {}, () => [
108
+ i("span", I, m(v(C)("pagination.previous").value), 1),
109
+ l[2] || (l[2] = i("svg", {
109
110
  class: "bb-pagination__page-chevron",
110
111
  viewBox: "0 0 24 24",
111
112
  xmlns: "http://www.w3.org/2000/svg"
@@ -120,42 +121,42 @@ const T = ["aria-label"], D = { class: "bb-pagination__page-label" }, G = { clas
120
121
  _: 3
121
122
  }, 8, ["disabled"])
122
123
  ]),
123
- (y(!0), k(W, null, R(N.value, (n) => (y(), k("li", {
124
+ (k(!0), V(R, null, F(A.value, (n) => (k(), V("li", {
124
125
  key: n.key
125
126
  }, [
126
- V(S(w), {
127
- class: C(["bb-pagination__page", {
127
+ S(v(z), {
128
+ class: $(["bb-pagination__page", {
128
129
  "bb-pagination__page--active": n.active,
129
130
  "bb-pagination__page--ellipsis": n.ellipsis
130
131
  }]),
131
132
  disabled: n.disabled,
132
- onClick: (p) => c("update:modelValue", n.key)
133
+ onClick: (p) => f("update:modelValue", n.key)
133
134
  }, {
134
- default: h(() => [
135
- n.ellipsis === !0 ? v(e.$slots, "ellipsis", { key: 0 }, () => [
136
- i("span", D, M(l.ellipsis), 1)
137
- ]) : v(e.$slots, "item", {
135
+ default: w(() => [
136
+ n.ellipsis === !0 ? c(e.$slots, "ellipsis", { key: 0 }, () => [
137
+ i("span", O, m(a.ellipsis), 1)
138
+ ]) : c(e.$slots, "item", {
138
139
  key: 1,
139
140
  active: n.active,
140
141
  disabled: n.disabled,
141
142
  item: n.key
142
143
  }, () => [
143
- i("span", G, M(n.key), 1)
144
+ i("span", j, m(n.key), 1)
144
145
  ])
145
146
  ]),
146
147
  _: 2
147
148
  }, 1032, ["class", "disabled", "onClick"])
148
149
  ]))), 128)),
149
150
  i("li", null, [
150
- V(S(w), {
151
+ S(v(z), {
151
152
  class: "bb-pagination__page bb-pagination__page--next",
152
- disabled: l.modelValue >= +s.value || e.loading || e.disabled,
153
- onClick: a[1] || (a[1] = (n) => c("update:modelValue", l.modelValue + 1))
153
+ disabled: a.modelValue >= +s.value || e.loading || e.disabled,
154
+ onClick: l[1] || (l[1] = (n) => f("update:modelValue", a.modelValue + 1))
154
155
  }, {
155
- default: h(() => [
156
- v(e.$slots, "next", {}, () => [
157
- a[4] || (a[4] = i("span", { class: "bb-pagination__page-label sr-only" }, "Successivo", -1)),
158
- a[5] || (a[5] = i("svg", {
156
+ default: w(() => [
157
+ c(e.$slots, "next", {}, () => [
158
+ i("span", q, m(v(C)("pagination.next").value), 1),
159
+ l[3] || (l[3] = i("svg", {
159
160
  class: "bb-pagination__page-chevron",
160
161
  viewBox: "0 0 24 24",
161
162
  xmlns: "http://www.w3.org/2000/svg"
@@ -171,10 +172,10 @@ const T = ["aria-label"], D = { class: "bb-pagination__page-label" }, G = { clas
171
172
  }, 8, ["disabled"])
172
173
  ])
173
174
  ], 512)
174
- ], 8, T)
175
+ ], 8, G)
175
176
  ], 2));
176
177
  }
177
178
  });
178
179
  export {
179
- H as default
180
+ Z as default
180
181
  };
package/dist/index88.js CHANGED
@@ -1,17 +1,19 @@
1
- import { defineComponent as M, ref as n, computed as v, openBlock as k, createElementBlock as O, mergeProps as F, createElementVNode as p, renderSlot as y, normalizeProps as S, guardReactiveProps as H, createVNode as V, withCtx as C, createBlock as q, createCommentVNode as I, nextTick as W } from "vue";
2
- import { useFocusTrap as z } from "./index234.js";
3
- import { useId as A } from "./index8.js";
4
- import { useIntersectionObserver as R } from "./index132.js";
5
- import { waitFor as j } from "./index235.js";
6
- import G from "./index13.js";
1
+ import { defineComponent as O, ref as n, computed as v, openBlock as y, createElementBlock as S, mergeProps as F, createElementVNode as c, renderSlot as k, normalizeProps as H, guardReactiveProps as V, createVNode as q, withCtx as _, createBlock as I, toDisplayString as W, unref as z, createCommentVNode as A, nextTick as R } from "vue";
2
+ import { useFocusTrap as j } from "./index220.js";
3
+ import { useId as G } from "./index8.js";
4
+ import { useIntersectionObserver as J } from "./index132.js";
5
+ import { waitFor as K } from "./index221.js";
6
+ import Q from "./index13.js";
7
7
  /* empty css */
8
- import J from "./index265.js";
8
+ import U from "./index292.js";
9
9
  /* empty css */
10
- import { useDebounceFn as K } from "./index205.js";
11
- const re = /* @__PURE__ */ M({
10
+ import { useLocale as X } from "./index224.js";
11
+ import { useDebounceFn as Y } from "./index248.js";
12
+ const Z = { class: "bb-popover__close-label sr-only" }, pe = /* @__PURE__ */ O({
12
13
  __name: "BbPopover",
13
14
  props: {
14
15
  arrowPadding: { default: 10 },
16
+ closeLabel: {},
15
17
  block: { type: Boolean },
16
18
  disabled: { type: Boolean },
17
19
  eager: { type: Boolean },
@@ -25,8 +27,8 @@ const re = /* @__PURE__ */ M({
25
27
  width: {}
26
28
  },
27
29
  emits: ["shown", "hidden"],
28
- setup(_, { expose: $, emit: T }) {
29
- const t = _, s = T, { id: B } = A(), c = `bbp_${B.value}`, r = n(), i = n(), { activate: P, deactivate: m } = z(i, {
30
+ setup($, { expose: C, emit: T }) {
31
+ const o = $, s = T, { t: B } = X(), { id: L } = G(), p = `bbp_${L.value}`, r = n(), l = n(), { activate: P, deactivate: m } = j(l, {
30
32
  /**
31
33
  * This traps all clicks outside so we are pressing
32
34
  * the trigger we just allow and process that in its
@@ -36,11 +38,11 @@ const re = /* @__PURE__ */ M({
36
38
  */
37
39
  clickOutsideDeactivates: (e) => {
38
40
  var h;
39
- const o = e.target;
40
- return o instanceof HTMLElement && (h = r.value) != null && h.contains(o) || (l(), s("hidden")), !0;
41
+ const t = e.target;
42
+ return t instanceof HTMLElement && (h = r.value) != null && h.contains(t) || (i(), s("hidden")), !0;
41
43
  },
42
- escapeDeactivates: () => (W(async () => {
43
- await l(), u(), s("hidden");
44
+ escapeDeactivates: () => (R(async () => {
45
+ await i(), u(), s("hidden");
44
46
  }), !0),
45
47
  /* We don't return focus so that when
46
48
  * we press a button on tyhe page we can focus
@@ -48,77 +50,77 @@ const re = /* @__PURE__ */ M({
48
50
  */
49
51
  returnFocusOnDeactivate: !1
50
52
  });
51
- R(
53
+ J(
52
54
  r,
53
55
  async ([{ intersectionRatio: e }]) => {
54
- e !== 1 && a.value && (m(), await l(), s("hidden"));
56
+ e !== 1 && a.value && (m(), await i(), s("hidden"));
55
57
  },
56
58
  { threshold: [0, 1] }
57
59
  );
58
- const N = v(() => ({
60
+ const D = v(() => ({
59
61
  class: {
60
- "bb-popover--block": t.block,
61
- [`bb-popover--${t.theme}`]: !0
62
+ "bb-popover--block": o.block,
63
+ [`bb-popover--${o.theme}`]: !0
62
64
  }
63
- })), D = n(!1), d = n(!1), a = n(!1), b = n(!1), w = n(!0), E = async () => {
64
- D.value = !0, await j(() => !!i.value), a.value = !0;
65
- }, l = async () => {
65
+ })), N = n(!1), d = n(!1), a = n(!1), b = n(!1), g = n(!0), E = async () => {
66
+ N.value = !0, await K(() => !!l.value), a.value = !0;
67
+ }, i = async () => {
66
68
  a.value = !1;
67
- }, g = async () => {
69
+ }, w = async () => {
68
70
  if (a.value) {
69
- await l(), u(), s("hidden");
71
+ await i(), u(), s("hidden");
70
72
  return;
71
73
  }
72
- if (d.value || t.disabled) return;
74
+ if (d.value || o.disabled) return;
73
75
  await E();
74
- let e = t.focusTarget ?? ".bb-popover__close";
76
+ let e = o.focusTarget ?? ".bb-popover__close";
75
77
  P({
76
- onPostActivate: K(() => {
77
- if (i.value) {
78
- const o = i.value.querySelector(e);
79
- o instanceof HTMLElement && (o.focus(), s("shown"));
78
+ onPostActivate: Y(() => {
79
+ if (l.value) {
80
+ const t = l.value.querySelector(e);
81
+ t instanceof HTMLElement && (t.focus(), s("shown"));
80
82
  }
81
83
  }, 150)
82
84
  });
83
85
  }, u = () => {
84
- var o;
85
- const e = (o = r.value) == null ? void 0 : o.querySelector(`[aria-controls=popover_${c}]`);
86
+ var t;
87
+ const e = (t = r.value) == null ? void 0 : t.querySelector(`[aria-controls=popover_${p}]`);
86
88
  e instanceof HTMLElement && e.focus({ preventScroll: !0 });
87
89
  }, f = async () => {
88
- m(), await l(), u(), s("hidden");
89
- }, L = v(() => {
90
- if (t.width) {
90
+ m(), await i(), u(), s("hidden");
91
+ }, M = v(() => {
92
+ if (o.width) {
91
93
  let e;
92
- if (typeof t.width == "string" && Number.isNaN(Number(t.width)))
93
- if (t.width.includes("%")) {
94
+ if (typeof o.width == "string" && Number.isNaN(Number(o.width)))
95
+ if (o.width.includes("%")) {
94
96
  if (!r.value) return;
95
- e = `${r.value.clientWidth * (+t.width.replace("%", "") / 100)}`;
97
+ e = `${r.value.clientWidth * (+o.width.replace("%", "") / 100)}`;
96
98
  } else
97
- e = t.width;
99
+ e = o.width;
98
100
  else
99
- e = `${t.width}`;
101
+ e = `${o.width}`;
100
102
  return `${e}px`;
101
103
  }
102
104
  });
103
- return $({
104
- open: g,
105
+ return C({
106
+ open: w,
105
107
  close: f,
106
108
  closed: v(() => !a.value)
107
- }), (e, o) => (k(), O("span", F({ class: "bb-popover" }, N.value), [
108
- p("span", {
109
+ }), (e, t) => (y(), S("span", F({ class: "bb-popover" }, D.value), [
110
+ c("span", {
109
111
  ref_key: "wrapper",
110
112
  ref: r,
111
113
  class: "bb-popover__wrapper"
112
114
  }, [
113
- y(e.$slots, "activator", S(H({
115
+ k(e.$slots, "activator", H(V({
114
116
  props: {
115
- "aria-controls": `popover_${c}`,
117
+ "aria-controls": `popover_${p}`,
116
118
  "aria-expanded": a.value,
117
- onClick: g,
118
- id: c,
119
+ onClick: w,
120
+ id: p,
119
121
  disabled: !!e.disabled
120
122
  },
121
- closed: w.value,
123
+ closed: g.value,
122
124
  closing: b.value,
123
125
  disabled: !!e.disabled,
124
126
  open: a.value,
@@ -126,12 +128,12 @@ const re = /* @__PURE__ */ M({
126
128
  placement: e.placement
127
129
  })))
128
130
  ], 512),
129
- V(J, {
131
+ q(U, {
130
132
  "arrow-padding": e.arrowPadding,
131
133
  "base-class": "bb-popover",
132
134
  "container-attributes": {
133
- id: `popover_${c}`,
134
- style: { width: L.value }
135
+ id: `popover_${p}`,
136
+ style: { width: M.value }
135
137
  },
136
138
  eager: e.eager,
137
139
  offset: e.offset,
@@ -142,37 +144,37 @@ const re = /* @__PURE__ */ M({
142
144
  "transition-duration": e.transitionDuration,
143
145
  wrapper: r.value
144
146
  }, {
145
- default: C(() => [
146
- p("div", {
147
+ default: _(() => [
148
+ c("div", {
147
149
  ref_key: "content",
148
- ref: i,
150
+ ref: l,
149
151
  class: "bb-popover__content"
150
152
  }, [
151
- e.showClose ? (k(), q(G, {
153
+ e.showClose ? (y(), I(Q, {
152
154
  key: 0,
153
155
  class: "bb-popover__close",
154
156
  onClick: f
155
157
  }, {
156
- default: C(() => o[0] || (o[0] = [
157
- p("span", { class: "bb-popover__close-label sr-only" }, "Chiudi", -1),
158
- p("svg", {
158
+ default: _(() => [
159
+ c("span", Z, W(e.closeLabel || z(B)("common.closeLabel").value), 1),
160
+ t[0] || (t[0] = c("svg", {
159
161
  fill: "none",
160
162
  viewBox: "0 0 24 24",
161
163
  xmlns: "http://www.w3.org/2000/svg"
162
164
  }, [
163
- p("path", {
165
+ c("path", {
164
166
  d: "M23 23L1 1M23 1L1 23",
165
167
  stroke: "currentColor",
166
168
  "stroke-linecap": "round",
167
169
  "stroke-width": "2"
168
170
  })
169
- ], -1)
170
- ])),
171
+ ], -1))
172
+ ]),
171
173
  _: 1
172
- })) : I("", !0),
173
- y(e.$slots, "default", {
174
+ })) : A("", !0),
175
+ k(e.$slots, "default", {
174
176
  close: f,
175
- closed: w.value,
177
+ closed: g.value,
176
178
  closing: b.value,
177
179
  disabled: !!e.disabled,
178
180
  open: a.value,
@@ -187,5 +189,5 @@ const re = /* @__PURE__ */ M({
187
189
  }
188
190
  });
189
191
  export {
190
- re as default
192
+ pe as default
191
193
  };
package/dist/index90.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, computed as a, openBlock as l, createElementBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
2
- import { clamp as p } from "./index206.js";
2
+ import { clamp as p } from "./index205.js";
3
3
  import { getAsPercentageBetween as i } from "./index131.js";
4
4
  const _ = /* @__PURE__ */ r({
5
5
  __name: "BbProgress",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitboss-ui",
3
- "version": "2.0.105",
3
+ "version": "2.0.106",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
package/dist/index207.js DELETED
@@ -1,4 +0,0 @@
1
- const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
2
- export {
3
- s as isCssColor
4
- };
package/dist/index226.js DELETED
@@ -1,10 +0,0 @@
1
- import { locales as r } from "./index284.js";
2
- import { _config as t } from "./index4.js";
3
- import { get as e } from "./index285.js";
4
- import { readonly as m, computed as c } from "vue";
5
- const l = (o) => m(c(() => e(r[t.locale], o))), a = () => ({
6
- t: l
7
- });
8
- export {
9
- a as useLocale
10
- };
package/dist/index253.js DELETED
@@ -1,108 +0,0 @@
1
- import { defineComponent as y, ref as F, computed as H, watch as N, openBlock as p, createElementBlock as L, Fragment as S, renderList as V, createBlock as A, normalizeClass as O, withModifiers as P, withCtx as $, createTextVNode as z, toDisplayString as D } from "vue";
2
- import { hash as d } from "./index216.js";
3
- import { isNil as l } from "./index250.js";
4
- import E from "./index125.js";
5
- /* empty css */
6
- const K = /* @__PURE__ */ y({
7
- __name: "ChipsBox",
8
- props: {
9
- options: {}
10
- },
11
- emits: ["option:unselected"],
12
- setup(f, { expose: v, emit: h }) {
13
- const t = f, u = h, n = F(null), i = H(() => t.options.some((e) => !e.disabled)), a = (e = 1) => {
14
- const s = l(n.value) ? -1 : n.value;
15
- let o = (s + e) % t.options.length;
16
- for (; t.options[o].disabled && o !== s; )
17
- o = a(e + 1);
18
- return o;
19
- }, x = () => {
20
- if (!i.value) return;
21
- const e = a();
22
- n.value = e;
23
- }, c = (e = 1) => {
24
- const s = l(n.value) ? 0 : n.value;
25
- let o = (s - e + t.options.length) % t.options.length;
26
- for (; t.options[o].disabled && o !== s; )
27
- o = c(e + 1);
28
- return o;
29
- }, m = async () => {
30
- if (!i.value) return;
31
- const e = c();
32
- n.value = e;
33
- }, w = () => {
34
- if (!i.value) return;
35
- let e = 0;
36
- for (; t.options[e].disabled; )
37
- e++;
38
- n.value = e;
39
- }, b = () => {
40
- if (!i.value) return;
41
- let e = t.options.length - 1;
42
- for (; t.options[e].disabled && e !== 0; )
43
- e--;
44
- n.value = e;
45
- }, I = () => {
46
- if (!i.value) return;
47
- let e = 0;
48
- for (; !t.options[e].selected && t.options.length !== e; )
49
- e++;
50
- n.value = e;
51
- }, g = () => {
52
- if (!i.value) return;
53
- let e = t.options.length - 1;
54
- for (; t.options[e].selected && e !== 0; )
55
- e--;
56
- n.value = e;
57
- }, _ = (e) => {
58
- if (!i.value) return;
59
- const s = t.options.findIndex(
60
- (o) => o.valueHash === e
61
- );
62
- s >= 0 && (n.value = s);
63
- }, r = () => {
64
- n.value = null;
65
- }, k = () => {
66
- if (l(n.value)) return;
67
- const e = t.options[n.value];
68
- e.selected && u("option:unselected", e);
69
- }, C = () => l(n.value) ? void 0 : t.options[n.value];
70
- return N(
71
- () => t.options,
72
- (e, s) => {
73
- d(e) !== d(s) && r();
74
- },
75
- {
76
- flush: "post"
77
- }
78
- ), v({
79
- focusNext: x,
80
- focusPrevious: m,
81
- focusFirst: w,
82
- focusFirstSelected: I,
83
- focusLast: b,
84
- focusLastSelected: g,
85
- blur: r,
86
- confirmOption: k,
87
- focusByHash: _,
88
- getHighlighted: C
89
- }), (e, s) => (p(!0), L(S, null, V(e.options, (o, B) => (p(), A(E, {
90
- key: o.valueHash,
91
- class: O({
92
- "bb-chipsbox-item": !0,
93
- "bb-chipsbox-item--focused": B === n.value
94
- }),
95
- clearable: !0,
96
- text: o.text,
97
- "onClick:clear": P((M) => u("option:unselected", o), ["stop"])
98
- }, {
99
- default: $(() => [
100
- z(D(o.text), 1)
101
- ]),
102
- _: 2
103
- }, 1032, ["class", "text", "onClick:clear"]))), 128));
104
- }
105
- });
106
- export {
107
- K as default
108
- };
package/dist/index289.js DELETED
@@ -1,4 +0,0 @@
1
- import f from "./index237.js";
2
- export {
3
- f as default
4
- };