bitboss-ui 2.0.71 → 2.0.73

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 (149) hide show
  1. package/dist/components/BbPagination/BbPagination.vue.d.ts +5 -0
  2. package/dist/index106.js +16 -16
  3. package/dist/index110.js +59 -60
  4. package/dist/index118.js +1 -1
  5. package/dist/index120.js +57 -58
  6. package/dist/index122.js +1 -1
  7. package/dist/index126.js +1 -1
  8. package/dist/index127.js +1 -1
  9. package/dist/index128.js +1 -1
  10. package/dist/index13.js +1 -1
  11. package/dist/index130.js +1 -1
  12. package/dist/index132.js +2 -2
  13. package/dist/index133.js +2 -2
  14. package/dist/index15.js +4 -4
  15. package/dist/index17.js +3 -3
  16. package/dist/index19.js +3 -3
  17. package/dist/index204.js +2 -81
  18. package/dist/index205.js +2 -2
  19. package/dist/index206.js +4 -8
  20. package/dist/index207.js +2 -164
  21. package/dist/index208.js +3 -84
  22. package/dist/index209.js +10 -0
  23. package/dist/index21.js +12 -12
  24. package/dist/index210.js +51 -124
  25. package/dist/index212.js +13 -125
  26. package/dist/index213.js +5 -19
  27. package/dist/index214.js +2 -2
  28. package/dist/index215.js +2 -2
  29. package/dist/index216.js +19 -2
  30. package/dist/index217.js +19 -2
  31. package/dist/index218.js +26 -40
  32. package/dist/index219.js +3 -20
  33. package/dist/index220.js +2 -6
  34. package/dist/index221.js +243 -47
  35. package/dist/index222.js +54 -0
  36. package/dist/index223.js +44 -13
  37. package/dist/index224.js +4 -4
  38. package/dist/index225.js +59 -368
  39. package/dist/index226.js +126 -2
  40. package/dist/index227.js +125 -4
  41. package/dist/index228.js +2 -2
  42. package/dist/index229.js +41 -3
  43. package/dist/index23.js +13 -13
  44. package/dist/index230.js +20 -7
  45. package/dist/index231.js +6 -3
  46. package/dist/index232.js +5 -19
  47. package/dist/index233.js +367 -25
  48. package/dist/index234.js +3 -3
  49. package/dist/index235.js +7 -249
  50. package/dist/index236.js +162 -50
  51. package/dist/index237.js +78 -38
  52. package/dist/index239.js +4 -60
  53. package/dist/index240.js +80 -3
  54. package/dist/index241.js +2 -2
  55. package/dist/index242.js +18 -2
  56. package/dist/index243.js +105 -17
  57. package/dist/{index246.js → index245.js} +1 -1
  58. package/dist/index247.js +4 -0
  59. package/dist/index25.js +5 -5
  60. package/dist/index250.js +4 -3
  61. package/dist/index251.js +224 -9
  62. package/dist/index252.js +3 -23
  63. package/dist/index254.js +7 -16
  64. package/dist/index255.js +280 -8
  65. package/dist/index256.js +6 -3
  66. package/dist/index257.js +2 -12
  67. package/dist/index258.js +2 -9
  68. package/dist/index259.js +2 -9
  69. package/dist/index260.js +2 -17
  70. package/dist/index261.js +2 -4
  71. package/dist/index262.js +2 -281
  72. package/dist/index263.js +2 -6
  73. package/dist/index264.js +2 -2
  74. package/dist/index265.js +2 -2
  75. package/dist/index266.js +2 -2
  76. package/dist/index267.js +28 -2
  77. package/dist/index268.js +22 -2
  78. package/dist/index27.js +1 -1
  79. package/dist/index270.js +2 -431
  80. package/dist/index271.js +121 -171
  81. package/dist/index272.js +431 -3
  82. package/dist/index273.js +178 -0
  83. package/dist/index274.js +22 -7
  84. package/dist/index276.js +5 -0
  85. package/dist/index277.js +11 -3
  86. package/dist/index278.js +7 -434
  87. package/dist/index279.js +8 -126
  88. package/dist/index280.js +14 -197
  89. package/dist/index281.js +3 -88
  90. package/dist/index282.js +200 -224
  91. package/dist/index283.js +436 -2
  92. package/dist/index284.js +127 -2
  93. package/dist/index285.js +3 -2
  94. package/dist/index286.js +9 -2
  95. package/dist/index287.js +23 -2
  96. package/dist/index288.js +89 -2
  97. package/dist/index289.js +6 -28
  98. package/dist/index29.js +18 -19
  99. package/dist/index290.js +15 -21
  100. package/dist/index291.js +11 -0
  101. package/dist/index292.js +3 -2
  102. package/dist/index293.js +3 -5
  103. package/dist/index294.js +204 -59
  104. package/dist/index295.js +5 -3
  105. package/dist/index296.js +65 -2
  106. package/dist/index297.js +2 -211
  107. package/dist/index298.js +5 -79
  108. package/dist/index299.js +10 -0
  109. package/dist/index300.js +33 -4
  110. package/dist/index301.js +7 -4
  111. package/dist/index302.js +17 -57
  112. package/dist/index303.js +6 -4
  113. package/dist/index304.js +3 -7
  114. package/dist/index305.js +10 -32
  115. package/dist/index306.js +84 -4
  116. package/dist/index308.js +4 -11
  117. package/dist/index309.js +4 -7
  118. package/dist/index31.js +2 -2
  119. package/dist/index310.js +57 -17
  120. package/dist/index311.js +47 -2
  121. package/dist/index312.js +2 -47
  122. package/dist/{index313.js → index314.js} +1 -1
  123. package/dist/index33.js +13 -13
  124. package/dist/index35.js +3 -3
  125. package/dist/index37.js +13 -13
  126. package/dist/index39.js +4 -4
  127. package/dist/index41.js +2 -2
  128. package/dist/index43.js +11 -11
  129. package/dist/index45.js +6 -6
  130. package/dist/index47.js +2 -2
  131. package/dist/index49.js +2 -2
  132. package/dist/index55.js +1 -1
  133. package/dist/index57.js +1 -1
  134. package/dist/index61.js +21 -23
  135. package/dist/index75.js +47 -48
  136. package/dist/index79.js +4 -7
  137. package/dist/index81.js +1 -1
  138. package/dist/index84.js +2 -2
  139. package/dist/index86.js +27 -26
  140. package/dist/index88.js +86 -86
  141. package/dist/index90.js +1 -1
  142. package/package.json +1 -1
  143. package/dist/index211.js +0 -7
  144. package/dist/index238.js +0 -7
  145. package/dist/index244.js +0 -108
  146. package/dist/index253.js +0 -8
  147. package/dist/index269.js +0 -128
  148. package/dist/index275.js +0 -24
  149. package/dist/index307.js +0 -9
package/dist/index86.js CHANGED
@@ -1,29 +1,30 @@
1
- import { defineComponent as A, computed as _, ref as g, onMounted as E, onBeforeUnmount as P, openBlock as y, createElementBlock as k, normalizeClass as C, createElementVNode as i, createVNode as V, unref as S, withCtx as h, renderSlot as b, Fragment as W, renderList as R, toDisplayString as M, nextTick as $ } from "vue";
2
- import { debounce as F } from "./index255.js";
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 "./index291.js";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  import w from "./index13.js";
6
6
  /* empty css */
7
- const T = { "aria-label": "Navigazione" }, D = { class: "bb-pagination__page-label" }, G = { class: "bb-pagination__page-label" }, H = /* @__PURE__ */ A({
7
+ const T = ["aria-label"], D = { class: "bb-pagination__page-label" }, G = { class: "bb-pagination__page-label" }, H = /* @__PURE__ */ P({
8
8
  __name: "BbPagination",
9
9
  props: {
10
10
  disabled: { type: Boolean },
11
11
  loading: { type: Boolean },
12
12
  align: { default: "right" },
13
13
  ellipsis: { default: "..." },
14
+ label: { default: "Paginazione" },
14
15
  maxSize: { default: 6 },
15
16
  modelValue: { default: 1 },
16
17
  totalPages: { default: 1 }
17
18
  },
18
19
  emits: ["update:modelValue"],
19
- setup(x, { emit: B }) {
20
- const l = x, c = B, s = _(() => +l.totalPages), u = g(1), t = g(+l.maxSize), r = g(), d = g(), z = g(1 / 0), m = () => {
21
- r.value && d.value && (r.value.clientWidth < d.value.clientWidth ? t.value - 1 > 3 ? (t.value--, $(m)) : t.value = 3 : t.value < +l.maxSize && /* If there is enough space to fit one */
22
- r.value.clientWidth - d.value.clientWidth > z.value && (t.value = Math.min(t.value + 1, +l.maxSize), $(m)));
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)));
23
24
  };
24
25
  if (globalThis.ResizeObserver) {
25
- const e = new ResizeObserver(F(m, 200));
26
- E(() => {
26
+ const e = new ResizeObserver(F(f, 200));
27
+ A(() => {
27
28
  if (r.value && d.value) {
28
29
  const a = r.value.querySelectorAll(
29
30
  ".bb-pagination__page"
@@ -34,41 +35,41 @@ const T = { "aria-label": "Navigazione" }, D = { class: "bb-pagination__page-lab
34
35
  }
35
36
  e.observe(r.value);
36
37
  }
37
- }), P(() => {
38
+ }), E(() => {
38
39
  e.disconnect();
39
40
  });
40
41
  }
41
- const N = _(() => {
42
+ const L = _(() => {
42
43
  if (s.value <= 0 || isNaN(s.value) || s.value > Number.MAX_SAFE_INTEGER)
43
44
  return [];
44
45
  if (t.value <= 1) return [l.modelValue];
45
46
  if (s.value <= t.value)
46
- return v(s.value, u.value);
47
+ return b(s.value, u.value);
47
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;
48
49
  if (n - l.modelValue >= 0)
49
50
  return [
50
- ...v(Math.max(1, t.value - 1), u.value),
51
+ ...b(Math.max(1, t.value - 1), u.value),
51
52
  l.ellipsis,
52
53
  s.value
53
54
  ];
54
55
  if (l.modelValue - p >= (e ? 1 : 0)) {
55
- const o = t.value - 1, f = s.value - o + u.value;
56
+ const o = t.value - 1, m = s.value - o + u.value;
56
57
  return [
57
58
  u.value,
58
59
  l.ellipsis,
59
- ...v(o, f)
60
+ ...b(o, m)
60
61
  ];
61
62
  } else {
62
- const o = Math.max(1, t.value - 3), f = o === 1 ? l.modelValue : l.modelValue - Math.ceil(o / 2) + u.value;
63
+ const o = Math.max(1, t.value - 3), m = o === 1 ? l.modelValue : l.modelValue - Math.ceil(o / 2) + u.value;
63
64
  return [
64
65
  u.value,
65
66
  l.ellipsis,
66
- ...v(o, f),
67
+ ...b(o, m),
67
68
  l.ellipsis,
68
69
  s.value
69
70
  ];
70
71
  }
71
- }), L = _(() => N.value.map((e, a) => typeof e == "string" ? {
72
+ }), N = _(() => L.value.map((e, a) => typeof e == "string" ? {
72
73
  active: !1,
73
74
  key: `ellipsis-${a}`,
74
75
  page: e,
@@ -80,7 +81,7 @@ const T = { "aria-label": "Navigazione" }, D = { class: "bb-pagination__page-lab
80
81
  page: e,
81
82
  ellipsis: !1,
82
83
  disabled: !!l.disabled || +l.totalPages < 2 || l.loading
83
- })), v = (e, a = 0) => Array.from({ length: e }, (n, p) => a + p);
84
+ })), b = (e, a = 0) => Array.from({ length: e }, (n, p) => a + p);
84
85
  return (e, a) => (y(), k("div", {
85
86
  ref_key: "outercontainer",
86
87
  ref: r,
@@ -89,7 +90,7 @@ const T = { "aria-label": "Navigazione" }, D = { class: "bb-pagination__page-lab
89
90
  "bb-pagination--disabled": e.disabled
90
91
  }])
91
92
  }, [
92
- i("nav", T, [
93
+ i("nav", { "aria-label": e.label }, [
93
94
  i("ul", {
94
95
  ref_key: "innercontainer",
95
96
  ref: d,
@@ -102,7 +103,7 @@ const T = { "aria-label": "Navigazione" }, D = { class: "bb-pagination__page-lab
102
103
  onClick: a[0] || (a[0] = (n) => c("update:modelValue", l.modelValue - 1))
103
104
  }, {
104
105
  default: h(() => [
105
- b(e.$slots, "previous", {}, () => [
106
+ v(e.$slots, "previous", {}, () => [
106
107
  a[2] || (a[2] = i("span", { class: "bb-pagination__page-label sr-only" }, "Precedente", -1)),
107
108
  a[3] || (a[3] = i("svg", {
108
109
  class: "bb-pagination__page-chevron",
@@ -119,7 +120,7 @@ const T = { "aria-label": "Navigazione" }, D = { class: "bb-pagination__page-lab
119
120
  _: 3
120
121
  }, 8, ["disabled"])
121
122
  ]),
122
- (y(!0), k(W, null, R(L.value, (n) => (y(), k("li", {
123
+ (y(!0), k(W, null, R(N.value, (n) => (y(), k("li", {
123
124
  key: n.key
124
125
  }, [
125
126
  V(S(w), {
@@ -131,9 +132,9 @@ const T = { "aria-label": "Navigazione" }, D = { class: "bb-pagination__page-lab
131
132
  onClick: (p) => c("update:modelValue", n.key)
132
133
  }, {
133
134
  default: h(() => [
134
- n.ellipsis === !0 ? b(e.$slots, "ellipsis", { key: 0 }, () => [
135
+ n.ellipsis === !0 ? v(e.$slots, "ellipsis", { key: 0 }, () => [
135
136
  i("span", D, M(l.ellipsis), 1)
136
- ]) : b(e.$slots, "item", {
137
+ ]) : v(e.$slots, "item", {
137
138
  key: 1,
138
139
  active: n.active,
139
140
  disabled: n.disabled,
@@ -152,7 +153,7 @@ const T = { "aria-label": "Navigazione" }, D = { class: "bb-pagination__page-lab
152
153
  onClick: a[1] || (a[1] = (n) => c("update:modelValue", l.modelValue + 1))
153
154
  }, {
154
155
  default: h(() => [
155
- b(e.$slots, "next", {}, () => [
156
+ v(e.$slots, "next", {}, () => [
156
157
  a[4] || (a[4] = i("span", { class: "bb-pagination__page-label sr-only" }, "Successivo", -1)),
157
158
  a[5] || (a[5] = i("svg", {
158
159
  class: "bb-pagination__page-chevron",
@@ -170,7 +171,7 @@ const T = { "aria-label": "Navigazione" }, D = { class: "bb-pagination__page-lab
170
171
  }, 8, ["disabled"])
171
172
  ])
172
173
  ], 512)
173
- ])
174
+ ], 8, T)
174
175
  ], 2));
175
176
  }
176
177
  });
package/dist/index88.js CHANGED
@@ -1,11 +1,12 @@
1
- import { defineComponent as S, defineAsyncComponent as H, ref as n, computed as m, openBlock as b, createElementBlock as q, mergeProps as A, createElementVNode as p, renderSlot as y, normalizeProps as I, guardReactiveProps as V, createBlock as C, unref as W, withCtx as $, createCommentVNode as T, nextTick as z } from "vue";
2
- import { useFocusTrap as R } from "./index218.js";
3
- import { useId as j } from "./index8.js";
4
- import { useIntersectionObserver as G } from "./index132.js";
5
- import { waitFor as J } from "./index220.js";
6
- import K from "./index13.js";
1
+ import { defineComponent as M, defineAsyncComponent as O, ref as r, computed as v, openBlock as y, createElementBlock as S, mergeProps as H, createElementVNode as c, renderSlot as k, normalizeProps as V, guardReactiveProps as q, createVNode as A, unref as I, withCtx as C, createBlock as W, createCommentVNode as z, nextTick as R } from "vue";
2
+ import { useFocusTrap as j } from "./index229.js";
3
+ import { useId as G } from "./index8.js";
4
+ import { useIntersectionObserver as J } from "./index132.js";
5
+ import { waitFor as K } from "./index231.js";
6
+ import Q from "./index13.js";
7
7
  /* empty css */
8
- const te = /* @__PURE__ */ S({
8
+ import { useDebounceFn as U } from "./index240.js";
9
+ const ne = /* @__PURE__ */ M({
9
10
  __name: "BbPopover",
10
11
  props: {
11
12
  arrowPadding: { default: 10 },
@@ -22,10 +23,10 @@ const te = /* @__PURE__ */ S({
22
23
  width: {}
23
24
  },
24
25
  emits: ["shown", "hidden"],
25
- setup(B, { expose: P, emit: _ }) {
26
- const N = H(
27
- () => import("./index250.js")
28
- ), t = B, s = _, { id: D } = j(), c = `bbp_${D.value}`, r = n(), l = n(), { activate: E, deactivate: L } = R(l, {
26
+ setup($, { expose: T, emit: _ }) {
27
+ const B = O(
28
+ () => import("./index285.js")
29
+ ), o = $, s = _, { id: P } = G(), p = `bbp_${P.value}`, n = r(), i = r(), { activate: N, deactivate: m } = j(i, {
29
30
  /**
30
31
  * This traps all clicks outside so we are pressing
31
32
  * the trigger we just allow and process that in its
@@ -34,12 +35,12 @@ const te = /* @__PURE__ */ S({
34
35
  * close the popover and be done
35
36
  */
36
37
  clickOutsideDeactivates: (e) => {
37
- var k;
38
- const o = e.target;
39
- return o instanceof HTMLElement && (k = r.value) != null && k.contains(o) || (i(), s("hidden")), !0;
38
+ var h;
39
+ const t = e.target;
40
+ return t instanceof HTMLElement && (h = n.value) != null && h.contains(t) || (l(), s("hidden")), !0;
40
41
  },
41
- escapeDeactivates: () => (z(async () => {
42
- await i(), f(), s("hidden");
42
+ escapeDeactivates: () => (R(async () => {
43
+ await l(), u(), s("hidden");
43
44
  }), !0),
44
45
  /* We don't return focus so that when
45
46
  * we press a button on tyhe page we can focus
@@ -47,91 +48,90 @@ const te = /* @__PURE__ */ S({
47
48
  */
48
49
  returnFocusOnDeactivate: !1
49
50
  });
50
- G(
51
- r,
52
- ([{ intersectionRatio: e }]) => {
53
- e !== 1 && a.value && i();
51
+ J(
52
+ n,
53
+ async ([{ intersectionRatio: e }]) => {
54
+ e !== 1 && a.value && (m(), await l(), s("hidden"));
54
55
  },
55
56
  { threshold: [0, 1] }
56
57
  );
57
- const M = m(() => ({
58
+ const D = v(() => ({
58
59
  class: {
59
- "bb-popover--block": t.block,
60
- [`bb-popover--${t.theme}`]: !0
60
+ "bb-popover--block": o.block,
61
+ [`bb-popover--${o.theme}`]: !0
61
62
  }
62
- })), d = n(!1), u = n(!1), a = n(!1), g = n(!1), w = n(!0), O = async () => {
63
- d.value = !0, await J(() => !!l.value), a.value = !0;
64
- }, i = async () => {
63
+ })), E = r(!1), d = r(!1), a = r(!1), b = r(!1), g = r(!0), F = async () => {
64
+ E.value = !0, await K(() => !!i.value), a.value = !0;
65
+ }, l = async () => {
65
66
  a.value = !1;
66
- }, h = async () => {
67
+ }, w = async () => {
67
68
  if (a.value) {
68
- await i(), f(), s("hidden");
69
+ await l(), u(), s("hidden");
69
70
  return;
70
71
  }
71
- if (u.value || t.disabled) return;
72
- d.value = !0, await O();
73
- let e = t.focusTarget ?? ".bb-popover__close";
74
- E({
75
- onPostActivate: () => {
76
- if (l.value) {
77
- const o = l.value.querySelector(e);
78
- o instanceof HTMLElement && (o.focus(), s("shown"));
72
+ if (d.value || o.disabled) return;
73
+ await F();
74
+ let e = o.focusTarget ?? ".bb-popover__close";
75
+ N({
76
+ onPostActivate: U(() => {
77
+ if (i.value) {
78
+ const t = i.value.querySelector(e);
79
+ t instanceof HTMLElement && (t.focus(), s("shown"));
79
80
  }
80
- }
81
+ }, 150)
81
82
  });
82
- }, f = () => {
83
- var o;
84
- const e = (o = r.value) == null ? void 0 : o.querySelector(`[aria-controls=popover_${c}]`);
83
+ }, u = () => {
84
+ var t;
85
+ const e = (t = n.value) == null ? void 0 : t.querySelector(`[aria-controls=popover_${p}]`);
85
86
  e instanceof HTMLElement && e.focus({ preventScroll: !0 });
86
- }, v = async () => {
87
- L(), await i(), f(), s("hidden");
88
- }, F = m(() => {
89
- if (t.width) {
87
+ }, f = async () => {
88
+ m(), await l(), u(), s("hidden");
89
+ }, L = v(() => {
90
+ if (o.width) {
90
91
  let e;
91
- if (typeof t.width == "string" && Number.isNaN(Number(t.width)))
92
- if (t.width.includes("%")) {
93
- if (!r.value) return;
94
- e = `${r.value.clientWidth * (+t.width.replace("%", "") / 100)}`;
92
+ if (typeof o.width == "string" && Number.isNaN(Number(o.width)))
93
+ if (o.width.includes("%")) {
94
+ if (!n.value) return;
95
+ e = `${n.value.clientWidth * (+o.width.replace("%", "") / 100)}`;
95
96
  } else
96
- e = t.width;
97
+ e = o.width;
97
98
  else
98
- e = `${t.width}`;
99
+ e = `${o.width}`;
99
100
  return `${e}px`;
100
101
  }
101
102
  });
102
- return P({
103
- open: h,
104
- close: v,
105
- closed: m(() => !a.value)
106
- }), (e, o) => (b(), q("span", A({ class: "bb-popover" }, M.value), [
107
- p("span", {
103
+ return T({
104
+ open: w,
105
+ close: f,
106
+ closed: v(() => !a.value)
107
+ }), (e, t) => (y(), S("span", H({ class: "bb-popover" }, D.value), [
108
+ c("span", {
108
109
  ref_key: "wrapper",
109
- ref: r,
110
+ ref: n,
110
111
  class: "bb-popover__wrapper"
111
112
  }, [
112
- y(e.$slots, "activator", I(V({
113
+ k(e.$slots, "activator", V(q({
113
114
  props: {
114
- "aria-controls": `popover_${c}`,
115
+ "aria-controls": `popover_${p}`,
115
116
  "aria-expanded": a.value,
116
- onClick: h,
117
- id: c,
117
+ onClick: w,
118
+ id: p,
118
119
  disabled: !!e.disabled
119
120
  },
120
- closed: w.value,
121
- closing: g.value,
121
+ closed: g.value,
122
+ closing: b.value,
122
123
  disabled: !!e.disabled,
123
124
  open: a.value,
124
- opening: u.value,
125
+ opening: d.value,
125
126
  placement: e.placement
126
127
  })))
127
128
  ], 512),
128
- d.value || e.eager ? (b(), C(W(N), {
129
- key: 0,
129
+ A(I(B), {
130
130
  "arrow-padding": e.arrowPadding,
131
131
  "base-class": "bb-popover",
132
132
  "container-attributes": {
133
- id: `popover_${c}`,
134
- style: { width: F.value }
133
+ id: `popover_${p}`,
134
+ style: { width: L.value }
135
135
  },
136
136
  eager: e.eager,
137
137
  offset: e.offset,
@@ -140,27 +140,27 @@ const te = /* @__PURE__ */ S({
140
140
  placement: e.placement,
141
141
  theme: e.theme,
142
142
  "transition-duration": e.transitionDuration,
143
- wrapper: r.value
143
+ wrapper: n.value
144
144
  }, {
145
- default: $(() => [
146
- p("div", {
145
+ default: C(() => [
146
+ c("div", {
147
147
  ref_key: "content",
148
- ref: l,
148
+ ref: i,
149
149
  class: "bb-popover__content"
150
150
  }, [
151
- e.showClose ? (b(), C(K, {
151
+ e.showClose ? (y(), W(Q, {
152
152
  key: 0,
153
153
  class: "bb-popover__close",
154
- onClick: v
154
+ onClick: f
155
155
  }, {
156
- default: $(() => o[0] || (o[0] = [
157
- p("span", { class: "bb-popover__close-label sr-only" }, "Chiudi", -1),
158
- p("svg", {
156
+ default: C(() => t[0] || (t[0] = [
157
+ c("span", { class: "bb-popover__close-label sr-only" }, "Chiudi", -1),
158
+ c("svg", {
159
159
  fill: "none",
160
160
  viewBox: "0 0 24 24",
161
161
  xmlns: "http://www.w3.org/2000/svg"
162
162
  }, [
163
- p("path", {
163
+ c("path", {
164
164
  d: "M23 23L1 1M23 1L1 23",
165
165
  stroke: "currentColor",
166
166
  "stroke-linecap": "round",
@@ -169,23 +169,23 @@ const te = /* @__PURE__ */ S({
169
169
  ], -1)
170
170
  ])),
171
171
  _: 1
172
- })) : T("", !0),
173
- y(e.$slots, "default", {
174
- close: v,
175
- closed: w.value,
176
- closing: g.value,
172
+ })) : z("", !0),
173
+ k(e.$slots, "default", {
174
+ close: f,
175
+ closed: g.value,
176
+ closing: b.value,
177
177
  disabled: !!e.disabled,
178
178
  open: a.value,
179
- opening: u.value,
179
+ opening: d.value,
180
180
  placement: e.placement
181
181
  })
182
182
  ], 512)
183
183
  ]),
184
184
  _: 3
185
- }, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "theme", "transition-duration", "wrapper"])) : T("", !0)
185
+ }, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "theme", "transition-duration", "wrapper"])
186
186
  ], 16));
187
187
  }
188
188
  });
189
189
  export {
190
- te as default
190
+ ne as default
191
191
  };
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 "./index205.js";
2
+ import { clamp as p } from "./index204.js";
3
3
  import { getAsPercentageBetween as i } from "./index130.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.71",
3
+ "version": "2.0.73",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
package/dist/index211.js DELETED
@@ -1,7 +0,0 @@
1
- import { getDefaultExportFromCjs as r } from "./index263.js";
2
- import { __require as o } from "./index262.js";
3
- var t = o();
4
- const s = /* @__PURE__ */ r(t);
5
- export {
6
- s as default
7
- };
package/dist/index238.js DELETED
@@ -1,7 +0,0 @@
1
- import o from "./index290.js";
2
- /* empty css */
3
- import t from "./index274.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c6b13bd"]]);
5
- export {
6
- m as default
7
- };
package/dist/index244.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 "./index234.js";
3
- import { isNil as l } from "./index129.js";
4
- import E from "./index124.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/index253.js DELETED
@@ -1,8 +0,0 @@
1
- import e from "./index300.js";
2
- import r from "./index301.js";
3
- import o from "./index302.js";
4
- const f = new o(r, e)._freeze();
5
- export {
6
- o as Mime,
7
- f as default
8
- };