bitboss-ui 2.0.21 → 2.0.22

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 (247) hide show
  1. package/dist/index107.js +5 -5
  2. package/dist/index115.js +1 -1
  3. package/dist/index117.js +5 -5
  4. package/dist/index119.js +1 -1
  5. package/dist/index123.js +1 -1
  6. package/dist/index124.js +1 -1
  7. package/dist/index125.js +1 -1
  8. package/dist/index127.js +1 -1
  9. package/dist/index129.js +2 -2
  10. package/dist/index130.js +1 -1
  11. package/dist/index14.js +1 -1
  12. package/dist/index16.js +3 -3
  13. package/dist/index18.js +2 -2
  14. package/dist/index199.js +81 -2
  15. package/dist/index199.js.map +1 -1
  16. package/dist/index20.js +14 -14
  17. package/dist/index200.js +8 -5
  18. package/dist/index200.js.map +1 -1
  19. package/dist/index201.js +3 -16
  20. package/dist/index201.js.map +1 -1
  21. package/dist/index202.js +2 -16
  22. package/dist/index202.js.map +1 -1
  23. package/dist/index203.js +44 -19
  24. package/dist/index203.js.map +1 -1
  25. package/dist/index205.js +13 -27
  26. package/dist/index205.js.map +1 -1
  27. package/dist/index206.js +158 -3
  28. package/dist/index206.js.map +1 -1
  29. package/dist/index207.js +84 -2
  30. package/dist/index207.js.map +1 -1
  31. package/dist/index209.js +3 -249
  32. package/dist/index209.js.map +1 -1
  33. package/dist/index210.js +35 -52
  34. package/dist/index210.js.map +1 -1
  35. package/dist/index211.js +5 -43
  36. package/dist/index211.js.map +1 -1
  37. package/dist/index212.js +7 -5
  38. package/dist/index212.js.map +1 -1
  39. package/dist/index213.js +281 -49
  40. package/dist/index213.js.map +1 -1
  41. package/dist/index214.js +14 -124
  42. package/dist/index214.js.map +1 -1
  43. package/dist/index215.js +13 -120
  44. package/dist/index215.js.map +1 -1
  45. package/dist/index216.js +19 -2
  46. package/dist/index216.js.map +1 -1
  47. package/dist/index217.js +19 -35
  48. package/dist/index217.js.map +1 -1
  49. package/dist/index218.js +25 -172
  50. package/dist/index218.js.map +1 -1
  51. package/dist/index219.js +3 -6
  52. package/dist/index219.js.map +1 -1
  53. package/dist/index22.js +15 -15
  54. package/dist/index220.js +2 -44
  55. package/dist/index220.js.map +1 -1
  56. package/dist/index221.js +252 -0
  57. package/dist/index221.js.map +1 -0
  58. package/dist/index222.js +52 -13
  59. package/dist/index222.js.map +1 -1
  60. package/dist/index223.js +44 -5
  61. package/dist/index223.js.map +1 -1
  62. package/dist/index224.js +5 -369
  63. package/dist/index224.js.map +1 -1
  64. package/dist/index225.js +48 -80
  65. package/dist/index225.js.map +1 -1
  66. package/dist/index226.js +2 -3
  67. package/dist/index226.js.map +1 -1
  68. package/dist/index227.js +4 -7
  69. package/dist/index227.js.map +1 -1
  70. package/dist/index228.js +2 -158
  71. package/dist/index228.js.map +1 -1
  72. package/dist/index229.js +125 -83
  73. package/dist/index229.js.map +1 -1
  74. package/dist/index230.js +126 -0
  75. package/dist/index230.js.map +1 -0
  76. package/dist/index231.js +2 -2
  77. package/dist/index231.js.map +1 -1
  78. package/dist/index232.js +174 -4
  79. package/dist/index232.js.map +1 -1
  80. package/dist/index233.js +5 -2
  81. package/dist/index233.js.map +1 -1
  82. package/dist/index234.js +369 -3
  83. package/dist/index234.js.map +1 -1
  84. package/dist/index235.js +2 -2
  85. package/dist/index235.js.map +1 -1
  86. package/dist/index236.js +2 -18
  87. package/dist/index236.js.map +1 -1
  88. package/dist/index237.js +17 -105
  89. package/dist/index237.js.map +1 -1
  90. package/dist/index238.js +109 -0
  91. package/dist/index238.js.map +1 -0
  92. package/dist/index24.js +5 -5
  93. package/dist/{index239.js → index240.js} +2 -2
  94. package/dist/{index239.js.map → index240.js.map} +1 -1
  95. package/dist/index244.js +6 -3
  96. package/dist/index244.js.map +1 -1
  97. package/dist/index245.js +15 -8
  98. package/dist/index245.js.map +1 -1
  99. package/dist/index246.js +9 -23
  100. package/dist/index246.js.map +1 -1
  101. package/dist/index247.js +3 -281
  102. package/dist/index247.js.map +1 -1
  103. package/dist/index248.js +9 -6
  104. package/dist/index248.js.map +1 -1
  105. package/dist/index249.js +23 -2
  106. package/dist/index249.js.map +1 -1
  107. package/dist/index250.js +224 -2
  108. package/dist/index250.js.map +1 -1
  109. package/dist/index251.js +3 -2
  110. package/dist/index251.js.map +1 -1
  111. package/dist/index253.js +7 -2
  112. package/dist/index253.js.map +1 -1
  113. package/dist/index254.js +3 -2
  114. package/dist/index254.js.map +1 -1
  115. package/dist/index255.js +12 -2
  116. package/dist/index255.js.map +1 -1
  117. package/dist/index256.js +9 -2
  118. package/dist/index256.js.map +1 -1
  119. package/dist/index257.js +9 -2
  120. package/dist/index257.js.map +1 -1
  121. package/dist/index258.js +17 -2
  122. package/dist/index258.js.map +1 -1
  123. package/dist/index259.js +2 -28
  124. package/dist/index259.js.map +1 -1
  125. package/dist/index26.js +1 -1
  126. package/dist/index260.js +61 -17
  127. package/dist/index260.js.map +1 -1
  128. package/dist/index261.js +8 -0
  129. package/dist/index261.js.map +1 -0
  130. package/dist/index262.js +429 -5
  131. package/dist/index262.js.map +1 -1
  132. package/dist/index263.js +89 -6
  133. package/dist/index263.js.map +1 -1
  134. package/dist/index264.js +6 -16
  135. package/dist/index264.js.map +1 -1
  136. package/dist/index265.js +2 -2
  137. package/dist/index266.js +2 -126
  138. package/dist/index266.js.map +1 -1
  139. package/dist/index267.js +2 -431
  140. package/dist/index267.js.map +1 -1
  141. package/dist/index268.js +2 -3
  142. package/dist/index268.js.map +1 -1
  143. package/dist/{index252.js → index269.js} +1 -1
  144. package/dist/index269.js.map +1 -0
  145. package/dist/index270.js +2 -22
  146. package/dist/index270.js.map +1 -1
  147. package/dist/index271.js +5 -0
  148. package/dist/index271.js.map +1 -0
  149. package/dist/index272.js +2 -89
  150. package/dist/index272.js.map +1 -1
  151. package/dist/index273.js +2 -200
  152. package/dist/index273.js.map +1 -1
  153. package/dist/index274.js +2 -436
  154. package/dist/index274.js.map +1 -1
  155. package/dist/index275.js +26 -125
  156. package/dist/index275.js.map +1 -1
  157. package/dist/index276.js +22 -3
  158. package/dist/index276.js.map +1 -1
  159. package/dist/index278.js +199 -8
  160. package/dist/index278.js.map +1 -1
  161. package/dist/index279.js +4 -9
  162. package/dist/index279.js.map +1 -1
  163. package/dist/index28.js +3 -3
  164. package/dist/index280.js +2 -17
  165. package/dist/index280.js.map +1 -1
  166. package/dist/index281.js +126 -4
  167. package/dist/index281.js.map +1 -1
  168. package/dist/index282.js +22 -9
  169. package/dist/index282.js.map +1 -1
  170. package/dist/index284.js +436 -2
  171. package/dist/index284.js.map +1 -1
  172. package/dist/index285.js +126 -65
  173. package/dist/index285.js.map +1 -1
  174. package/dist/index286.js +1 -1
  175. package/dist/index287.js +1 -1
  176. package/dist/index288.js +2 -2
  177. package/dist/index289.js +15 -5
  178. package/dist/index289.js.map +1 -1
  179. package/dist/index290.js +4 -15
  180. package/dist/index290.js.map +1 -1
  181. package/dist/index291.js +4 -79
  182. package/dist/index291.js.map +1 -1
  183. package/dist/index292.js +62 -0
  184. package/dist/index292.js.map +1 -0
  185. package/dist/index293.js +79 -7
  186. package/dist/index293.js.map +1 -1
  187. package/dist/index295.js +2 -4
  188. package/dist/index295.js.map +1 -1
  189. package/dist/index296.js +11 -4
  190. package/dist/index296.js.map +1 -1
  191. package/dist/index297.js +34 -58
  192. package/dist/index297.js.map +1 -1
  193. package/dist/index298.js +6 -6
  194. package/dist/index298.js.map +1 -1
  195. package/dist/index299.js +18 -34
  196. package/dist/index299.js.map +1 -1
  197. package/dist/index30.js +2 -2
  198. package/dist/index300.js +46 -10
  199. package/dist/index300.js.map +1 -1
  200. package/dist/index301.js +6 -46
  201. package/dist/index301.js.map +1 -1
  202. package/dist/index302.js +480 -2
  203. package/dist/index302.js.map +1 -1
  204. package/dist/index304.js +424 -0
  205. package/dist/index304.js.map +1 -0
  206. package/dist/index305.js +42 -416
  207. package/dist/index305.js.map +1 -1
  208. package/dist/index306.js +2 -47
  209. package/dist/index306.js.map +1 -1
  210. package/dist/index32.js +2 -2
  211. package/dist/index34.js +3 -3
  212. package/dist/index36.js +13 -13
  213. package/dist/index38.js +4 -4
  214. package/dist/index40.js +2 -2
  215. package/dist/index42.js +2 -2
  216. package/dist/index44.js +6 -6
  217. package/dist/index46.js +2 -2
  218. package/dist/index48.js +2 -2
  219. package/dist/index54.js +1 -1
  220. package/dist/index56.js +1 -1
  221. package/dist/index72.js +3 -3
  222. package/dist/index76.js +2 -2
  223. package/dist/index78.js +1 -1
  224. package/dist/index81.js +2 -2
  225. package/dist/index83.js +76 -65
  226. package/dist/index83.js.map +1 -1
  227. package/dist/index85.js +3 -3
  228. package/dist/index87.js +1 -1
  229. package/dist/style.css +1 -1
  230. package/package.json +1 -1
  231. package/dist/index204.js +0 -22
  232. package/dist/index204.js.map +0 -1
  233. package/dist/index208.js +0 -11
  234. package/dist/index208.js.map +0 -1
  235. package/dist/index241.js +0 -5
  236. package/dist/index241.js.map +0 -1
  237. package/dist/index252.js.map +0 -1
  238. package/dist/index277.js +0 -15
  239. package/dist/index277.js.map +0 -1
  240. package/dist/index283.js +0 -227
  241. package/dist/index283.js.map +0 -1
  242. package/dist/index294.js +0 -22
  243. package/dist/index294.js.map +0 -1
  244. package/dist/index303.js +0 -483
  245. package/dist/index303.js.map +0 -1
  246. package/dist/index307.js +0 -5
  247. package/dist/index307.js.map +0 -1
package/dist/index34.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as C, ref as g, computed as f, openBlock as l, createElementBlock as i, mergeProps as h, createElementVNode as r, renderSlot as p, Fragment as I, renderList as V, normalizeClass as B, toDisplayString as M } from "vue";
2
- import { booleanishToBoolean as D } from "./index233.js";
3
- import { identity as F } from "./index216.js";
4
- import { isCssColor as v } from "./index231.js";
2
+ import { booleanishToBoolean as D } from "./index228.js";
3
+ import { identity as F } from "./index231.js";
4
+ import { isCssColor as v } from "./index226.js";
5
5
  import { isNotNil as T } from "./index131.js";
6
6
  const $ = { class: "bb-base-rating__inner-container" }, q = { class: "bb-base-rating__label-text sr-only" }, x = ["id", "aria-describedby", "autofocus", "checked", "disabled", "name", "required", "value"], H = ["height", "width"], N = /* @__PURE__ */ r("path", {
7
7
  d: "m8.243 7.34l-6.38.925l-.113.023a1 1 0 0 0-.44 1.684l4.622 4.499l-1.09 6.355l-.013.11a1 1 0 0 0 1.464.944l5.706-3l5.693 3l.1.046a1 1 0 0 0 1.352-1.1l-1.091-6.355l4.624-4.5l.078-.085a1 1 0 0 0-.633-1.62l-6.38-.926l-2.852-5.78a1 1 0 0 0-1.794 0L8.243 7.34z",
package/dist/index36.js CHANGED
@@ -7,23 +7,23 @@ import { useMobile as We } from "./index10.js";
7
7
  import Re from "./index124.js";
8
8
  /* empty css */
9
9
  import { isNotNil as Je } from "./index131.js";
10
- import { last as Ye } from "./index207.js";
11
- import { matchAnyKey as j } from "./index236.js";
12
- import { useFloating as je } from "./index214.js";
10
+ import { last as Ye } from "./index220.js";
11
+ import { matchAnyKey as j } from "./index237.js";
12
+ import { useFloating as je } from "./index229.js";
13
13
  import { useIntersectionObserver as Ge } from "./index129.js";
14
- import { useLogger as Xe } from "./index208.js";
15
- import { useOptions as Ze } from "./index228.js";
14
+ import { useLogger as Xe } from "./index200.js";
15
+ import { useOptions as Ze } from "./index206.js";
16
16
  import { wait as T } from "./index128.js";
17
- import { when as et } from "./index232.js";
18
- import tt from "./index237.js";
17
+ import { when as et } from "./index227.js";
18
+ import tt from "./index238.js";
19
19
  /* empty css */
20
- import ot from "./index239.js";
20
+ import ot from "./index240.js";
21
21
  /* empty css */
22
- import nt from "./index220.js";
22
+ import nt from "./index203.js";
23
23
  /* empty css */
24
- import lt from "./index222.js";
25
- import { waitFor as at } from "./index219.js";
26
- import { autoUpdate as it, flip as rt, offset as st, shift as ut } from "./index224.js";
24
+ import lt from "./index205.js";
25
+ import { waitFor as at } from "./index211.js";
26
+ import { autoUpdate as it, flip as rt, offset as st, shift as ut } from "./index234.js";
27
27
  const pt = { class: "bb-base-select__input-container" }, ct = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], dt = /* @__PURE__ */ S("svg", {
28
28
  class: "bb-base-select__chevron",
29
29
  viewBox: "0 0 24 24",
@@ -76,7 +76,7 @@ const pt = { class: "bb-base-select__input-container" }, ct = ["id", "aria-contr
76
76
  const t = G, h = X;
77
77
  if (t.multiple && !Array.isArray(t.modelValue))
78
78
  throw new Error('Multiple is set to "true" but modelValue is not an array.');
79
- const Z = Ne(() => import("./index235.js")), A = m(null), B = m(null), a = m(null), N = m(null), x = m(null), u = y(
79
+ const Z = Ne(() => import("./index236.js")), A = m(null), B = m(null), a = m(null), N = m(null), x = m(null), u = y(
80
80
  () => t.comma ? N.value : x.value
81
81
  ), { isMobile: ee } = We(), te = y(
82
82
  () => t.allowWriting === "not-mobile" && ee.value ? "none" : void 0
package/dist/index38.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as U, ref as d, computed as h, onMounted as W, watch as Z, openBlock as g, createElementBlock as w, mergeProps as T, renderSlot as f, createElementVNode as b, Fragment as ee, renderList as ae, createCommentVNode as H, normalizeProps as re, guardReactiveProps as te, unref as c, normalizeClass as F, normalizeStyle as I } from "vue";
2
- import { clamp as le } from "./index199.js";
3
- import { head as O } from "./index241.js";
4
- import { isCssColor as Y } from "./index231.js";
2
+ import { clamp as le } from "./index202.js";
3
+ import { head as O } from "./index235.js";
4
+ import { isCssColor as Y } from "./index226.js";
5
5
  import { isNil as P } from "./index126.js";
6
6
  import { isNotNil as ne } from "./index131.js";
7
7
  import { transposeValue as y } from "./index127.js";
8
- import { hash as J } from "./index206.js";
8
+ import { hash as J } from "./index219.js";
9
9
  const oe = { class: "bb-base-slider__slider-container" }, ie = {
10
10
  key: 0,
11
11
  class: "bb-base-slider__ticks-container"
package/dist/index40.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as I, ref as p, computed as n, watch as S, openBlock as h, createElementBlock as f, normalizeProps as r, guardReactiveProps as c, mergeProps as y, createCommentVNode as q, createElementVNode as l, renderSlot as A } from "vue";
2
- import { isCssColor as d } from "./index231.js";
3
- import { when as F } from "./index232.js";
2
+ import { isCssColor as d } from "./index226.js";
3
+ import { when as F } from "./index227.js";
4
4
  const N = { class: "bb-base-switch-container" }, x = /* @__PURE__ */ l("span", { class: "bb-base-switch-container__icon-thumb" }, null, -1), J = [
5
5
  x
6
6
  ], L = /* @__PURE__ */ I({
package/dist/index42.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as $, ref as p, toRef as l, openBlock as w, createBlock as B, unref as f, withCtx as i, renderSlot as s, normalizeProps as b, guardReactiveProps as h, createVNode as O, mergeProps as v, createSlots as z } from "vue";
2
- import { useOptions as F } from "./index228.js";
2
+ import { useOptions as F } from "./index206.js";
3
3
  import M from "./index40.js";
4
4
  /* empty css */
5
- import S from "./index229.js";
5
+ import S from "./index207.js";
6
6
  /* empty css */
7
7
  const I = /* @__PURE__ */ $({
8
8
  __name: "BaseSwitchGroup",
package/dist/index44.js CHANGED
@@ -5,15 +5,15 @@ import { defineComponent as Y, ref as r, computed as k, toRef as B, openBlock as
5
5
  import ue from "./index124.js";
6
6
  /* empty css */
7
7
  import { isNotNil as se } from "./index131.js";
8
- import { last as de } from "./index207.js";
9
- import { useOptions as pe } from "./index228.js";
10
- import ce from "./index237.js";
8
+ import { last as de } from "./index220.js";
9
+ import { useOptions as pe } from "./index206.js";
10
+ import ce from "./index238.js";
11
11
  /* empty css */
12
- import me from "./index239.js";
12
+ import me from "./index240.js";
13
13
  /* empty css */
14
- import fe from "./index220.js";
14
+ import fe from "./index203.js";
15
15
  /* empty css */
16
- import ve from "./index222.js";
16
+ import ve from "./index205.js";
17
17
  const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], qe = /* @__PURE__ */ Y({
18
18
  __name: "BaseTag",
19
19
  props: {
package/dist/index46.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as w, ref as g, computed as u, onMounted as y, watch as V, nextTick as k, openBlock as x, createBlock as B, normalizeClass as $, withCtx as r, renderSlot as t, createVNode as i, createElementVNode as C, mergeProps as T } from "vue";
2
- import v from "./index222.js";
3
- import E from "./index220.js";
2
+ import v from "./index205.js";
3
+ import E from "./index203.js";
4
4
  /* empty css */
5
5
  import G from "./index124.js";
6
6
  /* empty css */
package/dist/index48.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as i, computed as c, openBlock as m, createElementBlock as b, Fragment as f, createVNode as r, normalizeClass as y, withCtx as n, renderSlot as t, createElementVNode as p, mergeProps as h } from "vue";
2
- import g from "./index220.js";
2
+ import g from "./index203.js";
3
3
  /* empty css */
4
- import B from "./index222.js";
4
+ import B from "./index205.js";
5
5
  const k = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "type", "value"], w = /* @__PURE__ */ p("span", null, null, -1), q = /* @__PURE__ */ i({
6
6
  __name: "BaseTextInput",
7
7
  props: {
package/dist/index54.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as z, computed as b, ref as o, onMounted as g, openBlock as l, createElementBlock as i, normalizeProps as h, guardReactiveProps as k, renderSlot as y } from "vue";
2
- import { isCssColor as _ } from "./index231.js";
2
+ import { isCssColor as _ } from "./index226.js";
3
3
  import { wait as C } from "./index128.js";
4
4
  const w = ["alt", "sizes", "src", "srcset"], B = {
5
5
  key: 1,
package/dist/index56.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, useSlots as d, computed as n, openBlock as m, createElementBlock as u, normalizeClass as g, createElementVNode as s, renderSlot as l, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
2
- import { isCssColor as r } from "./index231.js";
2
+ import { isCssColor as r } from "./index226.js";
3
3
  import { isNil as B } from "./index126.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",
package/dist/index72.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as Q, defineAsyncComponent as W, computed as A, ref as g, openBlock as $, createElementBlock as D, mergeProps as B, createElementVNode as O, renderSlot as w, normalizeProps as X, guardReactiveProps as Y, unref as h, createBlock as Z, withCtx as K, normalizeStyle as _, Fragment as P, renderList as x, createVNode as ee, createCommentVNode as te } from "vue";
2
- import { findRightIndex as H } from "./index245.js";
2
+ import { findRightIndex as H } from "./index248.js";
3
3
  import { useId as ne } from "./index9.js";
4
4
  import { wait as oe } from "./index128.js";
5
5
  import { useIntersectionObserver as ae } from "./index129.js";
6
6
  import le from "./index14.js";
7
7
  /* empty css */
8
- import N from "./index246.js";
8
+ import N from "./index249.js";
9
9
  const me = /* @__PURE__ */ Q({
10
10
  __name: "BbDropdown",
11
11
  props: {
@@ -24,7 +24,7 @@ const me = /* @__PURE__ */ Q({
24
24
  },
25
25
  setup(V) {
26
26
  const j = W(
27
- () => import("./index244.js")
27
+ () => import("./index247.js")
28
28
  ), r = V, d = r.id ?? `bb_${ne().id.value}`, m = A(() => {
29
29
  let e = r.items.findIndex((t) => !t.disabled), o = H(
30
30
  r.items,
package/dist/index76.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, ref as g, watch as x, computed as m, openBlock as V, createBlock as G, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
2
- import { findInTree as ae } from "./index264.js";
2
+ import { findInTree as ae } from "./index245.js";
3
3
  import { useId as re } from "./index9.js";
4
4
  import oe from "./index124.js";
5
5
  /* empty css */
@@ -56,7 +56,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = {
56
56
  const r = t.accept[a];
57
57
  if (r.includes("/")) e.push(r);
58
58
  else {
59
- b || (b = (await import("./index263.js")).default);
59
+ b || (b = (await import("./index244.js")).default);
60
60
  const o = b.getType(r);
61
61
  if (!o)
62
62
  throw new Error(
package/dist/index78.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, openBlock as g, createBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
2
- import { throttle as c } from "./index226.js";
2
+ import { throttle as c } from "./index209.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index81.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as te, ref as s, useAttrs as oe, getCurrentInstance as se, computed as v, nextTick as ae, onBeforeUnmount as x, onMounted as le, watch as ne, openBlock as _, createBlock as ie, Teleport as re, createElementVNode as a, mergeProps as O, createElementBlock as V, renderSlot as n, createTextVNode as ue, toDisplayString as S, createCommentVNode as z } from "vue";
2
- import { useFocusTrap as ce } from "./index217.js";
2
+ import { useFocusTrap as ce } from "./index210.js";
3
3
  import { useId as A } from "./index9.js";
4
4
  import { wait as E } from "./index128.js";
5
- import { useModalsState as p } from "./index227.js";
5
+ import { useModalsState as p } from "./index212.js";
6
6
  const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"], pe = /* @__PURE__ */ a("span", { class: "bb-offcanvas-close__icon" }, [
7
7
  /* @__PURE__ */ a("svg", {
8
8
  "aria-hidden": "true",
package/dist/index83.js CHANGED
@@ -1,13 +1,29 @@
1
- import { defineComponent as W, computed as y, ref as c, onMounted as w, onBeforeUnmount as R, openBlock as k, createElementBlock as V, normalizeClass as C, createElementVNode as o, createVNode as v, unref as g, withCtx as S, renderSlot as m, Fragment as F, renderList as L, toDisplayString as M, nextTick as N } from "vue";
2
- import { debounce as T } from "./index282.js";
1
+ import { defineComponent as A, computed as f, ref as c, onMounted as E, onBeforeUnmount as P, openBlock as h, createElementBlock as y, normalizeClass as C, createElementVNode as i, createVNode as k, unref as V, withCtx as S, renderSlot as v, Fragment as W, renderList as R, toDisplayString as M, nextTick as $ } from "vue";
2
+ import { debounce as F } from "./index246.js";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
6
- import $ from "./index14.js";
6
+ import w from "./index14.js";
7
7
  /* empty css */
8
- import A from "./index123.js";
9
- /* empty css */
10
- const D = { "aria-label": "Navigazione" }, G = /* @__PURE__ */ o("span", { class: "bb-pagination__page-label" }, "Precedente", -1), I = { class: "bb-pagination__page-label" }, O = { class: "bb-pagination__page-label" }, j = /* @__PURE__ */ o("span", { class: "bb-pagination__page-label" }, "Successivo", -1), ee = /* @__PURE__ */ W({
8
+ const T = { "aria-label": "Navigazione" }, D = /* @__PURE__ */ i("span", { class: "bb-pagination__page-label sr-only" }, "Precedente", -1), G = /* @__PURE__ */ i("svg", {
9
+ class: "bb-pagination__page-chevron",
10
+ viewBox: "0 0 24 24",
11
+ xmlns: "http://www.w3.org/2000/svg"
12
+ }, [
13
+ /* @__PURE__ */ i("path", {
14
+ d: "M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z",
15
+ fill: "currentColor"
16
+ })
17
+ ], -1), I = { class: "bb-pagination__page-label" }, O = { class: "bb-pagination__page-label" }, j = /* @__PURE__ */ i("span", { class: "bb-pagination__page-label sr-only" }, "Successivo", -1), q = /* @__PURE__ */ i("svg", {
18
+ class: "bb-pagination__page-chevron",
19
+ viewBox: "0 0 24 24",
20
+ xmlns: "http://www.w3.org/2000/svg"
21
+ }, [
22
+ /* @__PURE__ */ i("path", {
23
+ d: "M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z",
24
+ fill: "currentColor"
25
+ })
26
+ ], -1), Z = /* @__PURE__ */ A({
11
27
  __name: "BbPagination",
12
28
  props: {
13
29
  disabled: { type: Boolean },
@@ -19,59 +35,59 @@ const D = { "aria-label": "Navigazione" }, G = /* @__PURE__ */ o("span", { class
19
35
  totalPages: { default: 1 }
20
36
  },
21
37
  emits: ["update:modelValue"],
22
- setup(B, { emit: E }) {
23
- const a = B, _ = E, i = y(() => +a.totalPages), r = c(1), n = c(+a.maxSize), u = c(), d = c(), z = c(1 / 0), f = () => {
24
- u.value && d.value && (u.value.clientWidth < d.value.clientWidth ? n.value - 1 > 3 ? (n.value--, N(f)) : n.value = 3 : n.value < +a.maxSize && /* If there is enough space to fit one */
25
- u.value.clientWidth - d.value.clientWidth > z.value && (n.value = Math.min(n.value + 1, +a.maxSize), N(f)));
38
+ setup(x, { emit: B }) {
39
+ const a = x, b = B, s = f(() => +a.totalPages), u = c(1), n = c(+a.maxSize), r = c(), d = c(), z = c(1 / 0), m = () => {
40
+ r.value && d.value && (r.value.clientWidth < d.value.clientWidth ? n.value - 1 > 3 ? (n.value--, $(m)) : n.value = 3 : n.value < +a.maxSize && /* If there is enough space to fit one */
41
+ r.value.clientWidth - d.value.clientWidth > z.value && (n.value = Math.min(n.value + 1, +a.maxSize), $(m)));
26
42
  };
27
43
  if (globalThis.ResizeObserver) {
28
- const e = new ResizeObserver(T(f, 200));
29
- w(() => {
30
- if (u.value && d.value) {
31
- const t = u.value.querySelectorAll(
44
+ const e = new ResizeObserver(F(m, 200));
45
+ E(() => {
46
+ if (r.value && d.value) {
47
+ const t = r.value.querySelectorAll(
32
48
  ".bb-pagination__page"
33
49
  )[1];
34
50
  if (t) {
35
- const p = getComputedStyle(d.value).columnGap.replaceAll(/\D/g, ""), s = Number(p);
36
- z.value = t.clientWidth + s;
51
+ const p = getComputedStyle(d.value).columnGap.replaceAll(/\D/g, ""), o = Number(p);
52
+ z.value = t.clientWidth + o;
37
53
  }
38
- e.observe(u.value);
54
+ e.observe(r.value);
39
55
  }
40
- }), R(() => {
56
+ }), P(() => {
41
57
  e.disconnect();
42
58
  });
43
59
  }
44
- const P = y(() => {
45
- if (i.value <= 0 || isNaN(i.value) || i.value > Number.MAX_SAFE_INTEGER)
60
+ const N = f(() => {
61
+ if (s.value <= 0 || isNaN(s.value) || s.value > Number.MAX_SAFE_INTEGER)
46
62
  return [];
47
63
  if (n.value <= 1) return [a.modelValue];
48
- if (i.value <= n.value)
49
- return b(i.value, r.value);
50
- const e = n.value % 2 === 0, t = e ? n.value / 2 : Math.floor(n.value / 2), l = e ? t : t + 1, p = i.value - t;
64
+ if (s.value <= n.value)
65
+ return g(s.value, u.value);
66
+ const e = n.value % 2 === 0, t = e ? n.value / 2 : Math.floor(n.value / 2), l = e ? t : t + 1, p = s.value - t;
51
67
  if (l - a.modelValue >= 0)
52
68
  return [
53
- ...b(Math.max(1, n.value - 1), r.value),
69
+ ...g(Math.max(1, n.value - 1), u.value),
54
70
  a.ellipsis,
55
- i.value
71
+ s.value
56
72
  ];
57
73
  if (a.modelValue - p >= (e ? 1 : 0)) {
58
- const s = n.value - 1, h = i.value - s + r.value;
74
+ const o = n.value - 1, _ = s.value - o + u.value;
59
75
  return [
60
- r.value,
76
+ u.value,
61
77
  a.ellipsis,
62
- ...b(s, h)
78
+ ...g(o, _)
63
79
  ];
64
80
  } else {
65
- const s = Math.max(1, n.value - 3), h = s === 1 ? a.modelValue : a.modelValue - Math.ceil(s / 2) + r.value;
81
+ const o = Math.max(1, n.value - 3), _ = o === 1 ? a.modelValue : a.modelValue - Math.ceil(o / 2) + u.value;
66
82
  return [
67
- r.value,
83
+ u.value,
68
84
  a.ellipsis,
69
- ...b(s, h),
85
+ ...g(o, _),
70
86
  a.ellipsis,
71
- i.value
87
+ s.value
72
88
  ];
73
89
  }
74
- }), x = y(() => P.value.map((e, t) => typeof e == "string" ? {
90
+ }), L = f(() => N.value.map((e, t) => typeof e == "string" ? {
75
91
  active: !1,
76
92
  key: `ellipsis-${t}`,
77
93
  page: e,
@@ -83,77 +99,72 @@ const D = { "aria-label": "Navigazione" }, G = /* @__PURE__ */ o("span", { class
83
99
  page: e,
84
100
  ellipsis: !1,
85
101
  disabled: !!a.disabled || +a.totalPages < 2 || a.loading
86
- })), b = (e, t = 0) => Array.from({ length: e }, (l, p) => t + p);
87
- return (e, t) => (k(), V("div", {
102
+ })), g = (e, t = 0) => Array.from({ length: e }, (l, p) => t + p);
103
+ return (e, t) => (h(), y("div", {
88
104
  ref_key: "outercontainer",
89
- ref: u,
105
+ ref: r,
90
106
  class: C(["bb-pagination", {
91
- [`bb-pagination--${e.align}`]: !0
107
+ [`bb-pagination--${e.align}`]: !0,
108
+ "bb-pagination--disabled": e.disabled
92
109
  }])
93
110
  }, [
94
- o("nav", D, [
95
- o("ul", {
111
+ i("nav", T, [
112
+ i("ul", {
96
113
  ref_key: "innercontainer",
97
114
  ref: d,
98
115
  class: "bb-pagination__pages"
99
116
  }, [
100
- o("li", null, [
101
- v(g($), {
117
+ i("li", null, [
118
+ k(V(w), {
102
119
  class: "bb-pagination__page bb-pagination__page--previous",
103
120
  disabled: a.modelValue <= 1 || e.loading || e.disabled,
104
- onClick: t[0] || (t[0] = (l) => _("update:modelValue", a.modelValue - 1))
121
+ onClick: t[0] || (t[0] = (l) => b("update:modelValue", a.modelValue - 1))
105
122
  }, {
106
123
  default: S(() => [
107
- m(e.$slots, "previous", {}, () => [
108
- G,
109
- v(g(A), {
110
- class: "bb-pagination__page-chevron",
111
- type: "chevron_down"
112
- })
124
+ v(e.$slots, "previous", {}, () => [
125
+ D,
126
+ G
113
127
  ])
114
128
  ]),
115
129
  _: 3
116
130
  }, 8, ["disabled"])
117
131
  ]),
118
- (k(!0), V(F, null, L(x.value, (l) => (k(), V("li", {
132
+ (h(!0), y(W, null, R(L.value, (l) => (h(), y("li", {
119
133
  key: l.key
120
134
  }, [
121
- v(g($), {
135
+ k(V(w), {
122
136
  class: C(["bb-pagination__page", {
123
137
  "bb-pagination__page--active": l.active,
124
138
  "bb-pagination__page--ellipsis": l.ellipsis
125
139
  }]),
126
140
  disabled: l.disabled,
127
- onClick: (p) => _("update:modelValue", l.key)
141
+ onClick: (p) => b("update:modelValue", l.key)
128
142
  }, {
129
143
  default: S(() => [
130
- l.ellipsis === !0 ? m(e.$slots, "ellipsis", { key: 0 }, () => [
131
- o("span", I, M(a.ellipsis), 1)
132
- ]) : m(e.$slots, "item", {
144
+ l.ellipsis === !0 ? v(e.$slots, "ellipsis", { key: 0 }, () => [
145
+ i("span", I, M(a.ellipsis), 1)
146
+ ]) : v(e.$slots, "item", {
133
147
  key: 1,
134
148
  active: l.active,
135
149
  disabled: l.disabled,
136
150
  item: l.key
137
151
  }, () => [
138
- o("span", O, M(l.key), 1)
152
+ i("span", O, M(l.key), 1)
139
153
  ])
140
154
  ]),
141
155
  _: 2
142
156
  }, 1032, ["class", "disabled", "onClick"])
143
157
  ]))), 128)),
144
- o("li", null, [
145
- v(g($), {
158
+ i("li", null, [
159
+ k(V(w), {
146
160
  class: "bb-pagination__page bb-pagination__page--next",
147
- disabled: a.modelValue >= +i.value || e.loading || e.disabled,
148
- onClick: t[1] || (t[1] = (l) => _("update:modelValue", a.modelValue + 1))
161
+ disabled: a.modelValue >= +s.value || e.loading || e.disabled,
162
+ onClick: t[1] || (t[1] = (l) => b("update:modelValue", a.modelValue + 1))
149
163
  }, {
150
164
  default: S(() => [
151
- m(e.$slots, "next", {}, () => [
165
+ v(e.$slots, "next", {}, () => [
152
166
  j,
153
- v(g(A), {
154
- class: "bb-pagination__page-chevron",
155
- type: "chevron_down"
156
- })
167
+ q
157
168
  ])
158
169
  ]),
159
170
  _: 3
@@ -165,6 +176,6 @@ const D = { "aria-label": "Navigazione" }, G = /* @__PURE__ */ o("span", { class
165
176
  }
166
177
  });
167
178
  export {
168
- ee as default
179
+ Z as default
169
180
  };
170
181
  //# sourceMappingURL=index83.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index83.js","sources":["../src/components/BbPagination/BbPagination.vue"],"sourcesContent":["<template>\n\t<div\n\t\tref=\"outercontainer\"\n\t\tclass=\"bb-pagination\"\n\t\t:class=\"{\n\t\t\t[`bb-pagination--${align}`]: true,\n\t\t}\"\n\t>\n\t\t<nav aria-label=\"Navigazione\">\n\t\t\t<ul ref=\"innercontainer\" class=\"bb-pagination__pages\">\n\t\t\t\t<li>\n\t\t\t\t\t<BaseButton\n\t\t\t\t\t\tclass=\"bb-pagination__page bb-pagination__page--previous\"\n\t\t\t\t\t\t:disabled=\"props.modelValue <= 1 || loading || disabled\"\n\t\t\t\t\t\t@click=\"emit('update:modelValue', props.modelValue - 1)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot name=\"previous\">\n\t\t\t\t\t\t\t<span class=\"bb-pagination__page-label\">Precedente</span>\n\t\t\t\t\t\t\t<BbIcon class=\"bb-pagination__page-chevron\" type=\"chevron_down\" />\n\t\t\t\t\t\t</slot>\n\t\t\t\t\t</BaseButton>\n\t\t\t\t</li>\n\t\t\t\t<li v-for=\"item in items\" :key=\"item.key\">\n\t\t\t\t\t<BaseButton\n\t\t\t\t\t\tclass=\"bb-pagination__page\"\n\t\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t\t'bb-pagination__page--active': item.active,\n\t\t\t\t\t\t\t'bb-pagination__page--ellipsis': item.ellipsis,\n\t\t\t\t\t\t}\"\n\t\t\t\t\t\t:disabled=\"item.disabled\"\n\t\t\t\t\t\t@click=\"emit('update:modelValue', item.key)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<template v-if=\"item.ellipsis === true\">\n\t\t\t\t\t\t\t<slot name=\"ellipsis\">\n\t\t\t\t\t\t\t\t<span class=\"bb-pagination__page-label\">{{\n\t\t\t\t\t\t\t\t\tprops.ellipsis\n\t\t\t\t\t\t\t\t}}</span>\n\t\t\t\t\t\t\t</slot>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t\t<template v-else>\n\t\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\t\t:active=\"item.active\"\n\t\t\t\t\t\t\t\t:disabled=\"item.disabled\"\n\t\t\t\t\t\t\t\t:item=\"item.key\"\n\t\t\t\t\t\t\t\tname=\"item\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<span class=\"bb-pagination__page-label\">{{ item.key }}</span>\n\t\t\t\t\t\t\t</slot>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</BaseButton>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<BaseButton\n\t\t\t\t\t\tclass=\"bb-pagination__page bb-pagination__page--next\"\n\t\t\t\t\t\t:disabled=\"props.modelValue >= +totalPages || loading || disabled\"\n\t\t\t\t\t\t@click=\"emit('update:modelValue', props.modelValue + 1)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot name=\"next\">\n\t\t\t\t\t\t\t<span class=\"bb-pagination__page-label\">Successivo</span>\n\t\t\t\t\t\t\t<BbIcon class=\"bb-pagination__page-chevron\" type=\"chevron_down\" />\n\t\t\t\t\t\t</slot>\n\t\t\t\t\t</BaseButton>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</nav>\n\t</div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, nextTick, onBeforeUnmount, onMounted, ref } from 'vue';\nimport { debounce } from '@/utilities/functions/debounce';\nimport type { CommonProps } from '@/types/CommonProps';\nimport { BaseButton, BbIcon } from '@/index';\n\nexport type BbPaginationProps = Pick<CommonProps, 'disabled' | 'loading'> & {\n\talign?: 'left' | 'right' | 'center';\n\t/**\n\t * String of text displayed in place of hidden pages\n\t */\n\tellipsis?: string;\n\t/**\n\t * Maximum number of clickable pages displayed at all times.\n\t * This has a tolerance of +/- 1 for odd / even numbering.\n\t * It does not include ellipses.\n\t */\n\tmaxSize?: number | string;\n\t/**\n\t * Used by v-model. Indicates the current page.\n\t */\n\tmodelValue: number;\n\t/**\n\t * Total number of pages there is.\n\t */\n\ttotalPages?: number | string;\n};\n\nconst props = withDefaults(defineProps<BbPaginationProps>(), {\n\talign: 'right',\n\tmodelValue: 1,\n\ttotalPages: 1,\n\tellipsis: '...',\n\tmaxSize: 6,\n});\n\nexport type BbPaginationEvents = {\n\t(e: 'update:modelValue', value: number): void;\n};\n\nconst emit = defineEmits(['update:modelValue']);\n\ndefineSlots<{\n\tprevious?: (props: object) => any;\n\tnext?: (props: object) => any;\n\titem?: (props: { active: boolean; disabled: boolean; item: number }) => any;\n\tellipsis?: (props: object) => any;\n}>();\n\nconst totalPages = computed(() => +props.totalPages);\nconst start = ref(1);\nconst maxSize = ref(+props.maxSize);\n\nconst outercontainer = ref<HTMLElement>();\nconst innercontainer = ref<HTMLElement>();\n\nconst buttonFootprint = ref<number>(Infinity);\n\n/**\n * Adjusts how many buttons to show.\n * if current buttons can't fit subtract maxSize until they do or until minimum is reached\n * if more buttons could fit add buttons until the don't\n * If minimum or maximum is reached just quit until next resize\n */\nconst adjustMaxElements = () => {\n\tif (outercontainer.value && innercontainer.value) {\n\t\t/* If some buttons do not fit */\n\t\tif (outercontainer.value.clientWidth < innercontainer.value.clientWidth) {\n\t\t\tif (maxSize.value - 1 > 3) {\n\t\t\t\tmaxSize.value--;\n\t\t\t\tnextTick(adjustMaxElements);\n\t\t\t} else {\n\t\t\t\tmaxSize.value = 3;\n\t\t\t}\n\t\t\t/* If all current buttons do fit */\n\t\t} else {\n\t\t\t/* If some buttons have been hidden */\n\t\t\tif (maxSize.value < +props.maxSize) {\n\t\t\t\tif (\n\t\t\t\t\t/* If there is enough space to fit one */\n\t\t\t\t\toutercontainer.value.clientWidth - innercontainer.value.clientWidth >\n\t\t\t\t\tbuttonFootprint.value\n\t\t\t\t) {\n\t\t\t\t\tmaxSize.value = Math.min(maxSize.value + 1, +props.maxSize);\n\t\t\t\t\tnextTick(adjustMaxElements);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\nif (globalThis.ResizeObserver) {\n\tconst observer = new ResizeObserver(debounce(adjustMaxElements, 200));\n\tonMounted(() => {\n\t\tif (outercontainer.value && innercontainer.value) {\n\t\t\tconst button = outercontainer.value.querySelectorAll(\n\t\t\t\t'.bb-pagination__page'\n\t\t\t)[1];\n\t\t\tif (button) {\n\t\t\t\t/* Compute the footprint necessary to render a new button */\n\t\t\t\tconst gapString = getComputedStyle(innercontainer.value).columnGap;\n\t\t\t\tconst numberAsString = gapString.replaceAll(/\\D/g, '');\n\t\t\t\tconst gap = Number(numberAsString);\n\t\t\t\tbuttonFootprint.value = button.clientWidth + gap;\n\t\t\t}\n\t\t\tobserver.observe(outercontainer.value);\n\t\t}\n\t});\n\tonBeforeUnmount(() => {\n\t\tobserver.disconnect();\n\t});\n}\n\nconst range = computed(() => {\n\tif (\n\t\ttotalPages.value <= 0 ||\n\t\tisNaN(totalPages.value) ||\n\t\ttotalPages.value > Number.MAX_SAFE_INTEGER\n\t)\n\t\treturn [];\n\n\tif (maxSize.value <= 1) return [props.modelValue];\n\n\tif (totalPages.value <= maxSize.value) {\n\t\treturn createRange(totalPages.value, start.value);\n\t}\n\n\tconst even = maxSize.value % 2 === 0;\n\tconst middle = even ? maxSize.value / 2 : Math.floor(maxSize.value / 2);\n\tconst left = even ? middle : middle + 1;\n\tconst right = totalPages.value - middle;\n\n\tif (left - props.modelValue >= 0) {\n\t\treturn [\n\t\t\t...createRange(Math.max(1, maxSize.value - 1), start.value),\n\t\t\tprops.ellipsis,\n\t\t\ttotalPages.value,\n\t\t];\n\t} else if (props.modelValue - right >= (even ? 1 : 0)) {\n\t\tconst rangeLength = maxSize.value - 1;\n\t\tconst rangeStart = totalPages.value - rangeLength + start.value;\n\t\treturn [\n\t\t\tstart.value,\n\t\t\tprops.ellipsis,\n\t\t\t...createRange(rangeLength, rangeStart),\n\t\t];\n\t} else {\n\t\tconst rangeLength = Math.max(1, maxSize.value - 3);\n\t\tconst rangeStart =\n\t\t\trangeLength === 1\n\t\t\t\t? props.modelValue\n\t\t\t\t: props.modelValue - Math.ceil(rangeLength / 2) + start.value;\n\t\treturn [\n\t\t\tstart.value,\n\t\t\tprops.ellipsis,\n\t\t\t...createRange(rangeLength, rangeStart),\n\t\t\tprops.ellipsis,\n\t\t\ttotalPages.value,\n\t\t];\n\t}\n});\n\ntype Item =\n\t| {\n\t\t\tactive: boolean;\n\t\t\tkey: string;\n\t\t\tpage: string;\n\t\t\tellipsis: true;\n\t\t\tdisabled: boolean;\n\t }\n\t| {\n\t\t\tactive: boolean;\n\t\t\tkey: number;\n\t\t\tpage: number;\n\t\t\tellipsis: false;\n\t\t\tdisabled: boolean;\n\t };\n\nconst items = computed<Item[]>(() => {\n\treturn range.value.map((item, index) => {\n\t\tif (typeof item === 'string') {\n\t\t\treturn {\n\t\t\t\tactive: false,\n\t\t\t\tkey: `ellipsis-${index}`,\n\t\t\t\tpage: item,\n\t\t\t\tellipsis: true,\n\t\t\t\tdisabled: true,\n\t\t\t};\n\t\t} else {\n\t\t\tconst active = item === props.modelValue;\n\t\t\treturn {\n\t\t\t\tactive,\n\t\t\t\tkey: item,\n\t\t\t\tpage: item,\n\t\t\t\tellipsis: false,\n\t\t\t\tdisabled: !!props.disabled || +props.totalPages < 2 || props.loading,\n\t\t\t};\n\t\t}\n\t});\n});\n\nconst createRange = (length: number, start = 0): number[] => {\n\treturn Array.from({ length }, (_, k) => start + k);\n};\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BbPagination';\n</style>\n"],"names":["props","__props","emit","__emit","totalPages","computed","start","ref","maxSize","outercontainer","innercontainer","buttonFootprint","adjustMaxElements","nextTick","observer","debounce","onMounted","button","numberAsString","gap","onBeforeUnmount","range","createRange","even","middle","left","right","rangeLength","rangeStart","items","item","index","length","_","k"],"mappings":"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"}
1
+ {"version":3,"file":"index83.js","sources":["../src/components/BbPagination/BbPagination.vue"],"sourcesContent":["<template>\n\t<div\n\t\tref=\"outercontainer\"\n\t\tclass=\"bb-pagination\"\n\t\t:class=\"{\n\t\t\t[`bb-pagination--${align}`]: true,\n\t\t\t'bb-pagination--disabled': disabled,\n\t\t}\"\n\t>\n\t\t<nav aria-label=\"Navigazione\">\n\t\t\t<ul ref=\"innercontainer\" class=\"bb-pagination__pages\">\n\t\t\t\t<li>\n\t\t\t\t\t<BaseButton\n\t\t\t\t\t\tclass=\"bb-pagination__page bb-pagination__page--previous\"\n\t\t\t\t\t\t:disabled=\"props.modelValue <= 1 || loading || disabled\"\n\t\t\t\t\t\t@click=\"emit('update:modelValue', props.modelValue - 1)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot name=\"previous\">\n\t\t\t\t\t\t\t<span class=\"bb-pagination__page-label sr-only\">Precedente</span>\n\t\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\t\tclass=\"bb-pagination__page-chevron\"\n\t\t\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\td=\"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z\"\n\t\t\t\t\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t</slot>\n\t\t\t\t\t</BaseButton>\n\t\t\t\t</li>\n\t\t\t\t<li v-for=\"item in items\" :key=\"item.key\">\n\t\t\t\t\t<BaseButton\n\t\t\t\t\t\tclass=\"bb-pagination__page\"\n\t\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t\t'bb-pagination__page--active': item.active,\n\t\t\t\t\t\t\t'bb-pagination__page--ellipsis': item.ellipsis,\n\t\t\t\t\t\t}\"\n\t\t\t\t\t\t:disabled=\"item.disabled\"\n\t\t\t\t\t\t@click=\"emit('update:modelValue', item.key)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<template v-if=\"item.ellipsis === true\">\n\t\t\t\t\t\t\t<slot name=\"ellipsis\">\n\t\t\t\t\t\t\t\t<span class=\"bb-pagination__page-label\">{{\n\t\t\t\t\t\t\t\t\tprops.ellipsis\n\t\t\t\t\t\t\t\t}}</span>\n\t\t\t\t\t\t\t</slot>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t\t<template v-else>\n\t\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\t\t:active=\"item.active\"\n\t\t\t\t\t\t\t\t:disabled=\"item.disabled\"\n\t\t\t\t\t\t\t\t:item=\"item.key\"\n\t\t\t\t\t\t\t\tname=\"item\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<span class=\"bb-pagination__page-label\">{{ item.key }}</span>\n\t\t\t\t\t\t\t</slot>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</BaseButton>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<BaseButton\n\t\t\t\t\t\tclass=\"bb-pagination__page bb-pagination__page--next\"\n\t\t\t\t\t\t:disabled=\"props.modelValue >= +totalPages || loading || disabled\"\n\t\t\t\t\t\t@click=\"emit('update:modelValue', props.modelValue + 1)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot name=\"next\">\n\t\t\t\t\t\t\t<span class=\"bb-pagination__page-label sr-only\">Successivo</span>\n\t\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\t\tclass=\"bb-pagination__page-chevron\"\n\t\t\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\td=\"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z\"\n\t\t\t\t\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t</slot>\n\t\t\t\t\t</BaseButton>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</nav>\n\t</div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, nextTick, onBeforeUnmount, onMounted, ref } from 'vue';\nimport { debounce } from '@/utilities/functions/debounce';\nimport type { CommonProps } from '@/types/CommonProps';\nimport { BaseButton } from '@/index';\n\nexport type BbPaginationProps = Pick<CommonProps, 'disabled' | 'loading'> & {\n\talign?: 'left' | 'right' | 'center';\n\t/**\n\t * String of text displayed in place of hidden pages\n\t */\n\tellipsis?: string;\n\t/**\n\t * Maximum number of clickable pages displayed at all times.\n\t * This has a tolerance of +/- 1 for odd / even numbering.\n\t * It does not include ellipses.\n\t */\n\tmaxSize?: number | string;\n\t/**\n\t * Used by v-model. Indicates the current page.\n\t */\n\tmodelValue: number;\n\t/**\n\t * Total number of pages there is.\n\t */\n\ttotalPages?: number | string;\n};\n\nconst props = withDefaults(defineProps<BbPaginationProps>(), {\n\talign: 'right',\n\tmodelValue: 1,\n\ttotalPages: 1,\n\tellipsis: '...',\n\tmaxSize: 6,\n});\n\nexport type BbPaginationEvents = {\n\t(e: 'update:modelValue', value: number): void;\n};\n\nconst emit = defineEmits(['update:modelValue']);\n\ndefineSlots<{\n\tprevious?: (props: object) => any;\n\tnext?: (props: object) => any;\n\titem?: (props: { active: boolean; disabled: boolean; item: number }) => any;\n\tellipsis?: (props: object) => any;\n}>();\n\nconst totalPages = computed(() => +props.totalPages);\nconst start = ref(1);\nconst maxSize = ref(+props.maxSize);\n\nconst outercontainer = ref<HTMLElement>();\nconst innercontainer = ref<HTMLElement>();\n\nconst buttonFootprint = ref<number>(Infinity);\n\n/**\n * Adjusts how many buttons to show.\n * if current buttons can't fit subtract maxSize until they do or until minimum is reached\n * if more buttons could fit add buttons until the don't\n * If minimum or maximum is reached just quit until next resize\n */\nconst adjustMaxElements = () => {\n\tif (outercontainer.value && innercontainer.value) {\n\t\t/* If some buttons do not fit */\n\t\tif (outercontainer.value.clientWidth < innercontainer.value.clientWidth) {\n\t\t\tif (maxSize.value - 1 > 3) {\n\t\t\t\tmaxSize.value--;\n\t\t\t\tnextTick(adjustMaxElements);\n\t\t\t} else {\n\t\t\t\tmaxSize.value = 3;\n\t\t\t}\n\t\t\t/* If all current buttons do fit */\n\t\t} else {\n\t\t\t/* If some buttons have been hidden */\n\t\t\tif (maxSize.value < +props.maxSize) {\n\t\t\t\tif (\n\t\t\t\t\t/* If there is enough space to fit one */\n\t\t\t\t\toutercontainer.value.clientWidth - innercontainer.value.clientWidth >\n\t\t\t\t\tbuttonFootprint.value\n\t\t\t\t) {\n\t\t\t\t\tmaxSize.value = Math.min(maxSize.value + 1, +props.maxSize);\n\t\t\t\t\tnextTick(adjustMaxElements);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\nif (globalThis.ResizeObserver) {\n\tconst observer = new ResizeObserver(debounce(adjustMaxElements, 200));\n\tonMounted(() => {\n\t\tif (outercontainer.value && innercontainer.value) {\n\t\t\tconst button = outercontainer.value.querySelectorAll(\n\t\t\t\t'.bb-pagination__page'\n\t\t\t)[1];\n\t\t\tif (button) {\n\t\t\t\t/* Compute the footprint necessary to render a new button */\n\t\t\t\tconst gapString = getComputedStyle(innercontainer.value).columnGap;\n\t\t\t\tconst numberAsString = gapString.replaceAll(/\\D/g, '');\n\t\t\t\tconst gap = Number(numberAsString);\n\t\t\t\tbuttonFootprint.value = button.clientWidth + gap;\n\t\t\t}\n\t\t\tobserver.observe(outercontainer.value);\n\t\t}\n\t});\n\tonBeforeUnmount(() => {\n\t\tobserver.disconnect();\n\t});\n}\n\nconst range = computed(() => {\n\tif (\n\t\ttotalPages.value <= 0 ||\n\t\tisNaN(totalPages.value) ||\n\t\ttotalPages.value > Number.MAX_SAFE_INTEGER\n\t)\n\t\treturn [];\n\n\tif (maxSize.value <= 1) return [props.modelValue];\n\n\tif (totalPages.value <= maxSize.value) {\n\t\treturn createRange(totalPages.value, start.value);\n\t}\n\n\tconst even = maxSize.value % 2 === 0;\n\tconst middle = even ? maxSize.value / 2 : Math.floor(maxSize.value / 2);\n\tconst left = even ? middle : middle + 1;\n\tconst right = totalPages.value - middle;\n\n\tif (left - props.modelValue >= 0) {\n\t\treturn [\n\t\t\t...createRange(Math.max(1, maxSize.value - 1), start.value),\n\t\t\tprops.ellipsis,\n\t\t\ttotalPages.value,\n\t\t];\n\t} else if (props.modelValue - right >= (even ? 1 : 0)) {\n\t\tconst rangeLength = maxSize.value - 1;\n\t\tconst rangeStart = totalPages.value - rangeLength + start.value;\n\t\treturn [\n\t\t\tstart.value,\n\t\t\tprops.ellipsis,\n\t\t\t...createRange(rangeLength, rangeStart),\n\t\t];\n\t} else {\n\t\tconst rangeLength = Math.max(1, maxSize.value - 3);\n\t\tconst rangeStart =\n\t\t\trangeLength === 1\n\t\t\t\t? props.modelValue\n\t\t\t\t: props.modelValue - Math.ceil(rangeLength / 2) + start.value;\n\t\treturn [\n\t\t\tstart.value,\n\t\t\tprops.ellipsis,\n\t\t\t...createRange(rangeLength, rangeStart),\n\t\t\tprops.ellipsis,\n\t\t\ttotalPages.value,\n\t\t];\n\t}\n});\n\ntype Item =\n\t| {\n\t\t\tactive: boolean;\n\t\t\tkey: string;\n\t\t\tpage: string;\n\t\t\tellipsis: true;\n\t\t\tdisabled: boolean;\n\t }\n\t| {\n\t\t\tactive: boolean;\n\t\t\tkey: number;\n\t\t\tpage: number;\n\t\t\tellipsis: false;\n\t\t\tdisabled: boolean;\n\t };\n\nconst items = computed<Item[]>(() => {\n\treturn range.value.map((item, index) => {\n\t\tif (typeof item === 'string') {\n\t\t\treturn {\n\t\t\t\tactive: false,\n\t\t\t\tkey: `ellipsis-${index}`,\n\t\t\t\tpage: item,\n\t\t\t\tellipsis: true,\n\t\t\t\tdisabled: true,\n\t\t\t};\n\t\t} else {\n\t\t\tconst active = item === props.modelValue;\n\t\t\treturn {\n\t\t\t\tactive,\n\t\t\t\tkey: item,\n\t\t\t\tpage: item,\n\t\t\t\tellipsis: false,\n\t\t\t\tdisabled: !!props.disabled || +props.totalPages < 2 || props.loading,\n\t\t\t};\n\t\t}\n\t});\n});\n\nconst createRange = (length: number, start = 0): number[] => {\n\treturn Array.from({ length }, (_, k) => start + k);\n};\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BbPagination';\n</style>\n"],"names":["props","__props","emit","__emit","totalPages","computed","start","ref","maxSize","outercontainer","innercontainer","buttonFootprint","adjustMaxElements","nextTick","observer","debounce","onMounted","button","numberAsString","gap","onBeforeUnmount","range","createRange","even","middle","left","right","rangeLength","rangeStart","items","item","index","length","_","k"],"mappings":"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"}
package/dist/index85.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as F, defineAsyncComponent as S, ref as n, computed as w, openBlock as v, createElementBlock as H, mergeProps as q, createElementVNode as c, renderSlot as k, normalizeProps as A, guardReactiveProps as I, createBlock as y, unref as V, withCtx as _, createCommentVNode as C, nextTick as W } from "vue";
2
- import { useFocusTrap as z } from "./index217.js";
2
+ import { useFocusTrap as z } from "./index210.js";
3
3
  import { useId as R } from "./index9.js";
4
4
  import { useIntersectionObserver as j } from "./index129.js";
5
- import { waitFor as G } from "./index219.js";
5
+ import { waitFor as G } from "./index211.js";
6
6
  import J from "./index14.js";
7
7
  /* empty css */
8
8
  const K = /* @__PURE__ */ c("span", { class: "bb-popover__close-label sr-only" }, "Chiudi", -1), Q = /* @__PURE__ */ c("svg", {
@@ -35,7 +35,7 @@ const K = /* @__PURE__ */ c("span", { class: "bb-popover__close-label sr-only" }
35
35
  emits: ["shown", "hidden"],
36
36
  setup($, { emit: T }) {
37
37
  const B = S(
38
- () => import("./index244.js")
38
+ () => import("./index247.js")
39
39
  ), t = $, s = T, { id: P } = R(), p = `bbp_${P.value}`, r = n(), i = n(), { activate: N, deactivate: D } = z(i, {
40
40
  /**
41
41
  * This traps all clicks outside so we are pressing
package/dist/index87.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 "./index199.js";
2
+ import { clamp as p } from "./index202.js";
3
3
  import { getAsPercentageBetween as i } from "./index127.js";
4
4
  const _ = /* @__PURE__ */ r({
5
5
  __name: "BbProgress",