bitboss-ui 2.0.162 → 2.0.163

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 (151) hide show
  1. package/dist/components/BbPagination/BbPagination.vue.d.ts +19 -7
  2. package/dist/index100.js +8 -8
  3. package/dist/index111.js +10 -10
  4. package/dist/index119.js +2 -2
  5. package/dist/index121.js +4 -4
  6. package/dist/index123.js +1 -1
  7. package/dist/index125.js +1 -1
  8. package/dist/index127.js +1 -1
  9. package/dist/index129.js +1 -1
  10. package/dist/index13.js +1 -1
  11. package/dist/index131.js +1 -1
  12. package/dist/index133.js +1 -1
  13. package/dist/index134.js +2 -2
  14. package/dist/index15.js +8 -8
  15. package/dist/index17.js +3 -3
  16. package/dist/index19.js +7 -7
  17. package/dist/index207.js +2 -2
  18. package/dist/index208.js +5 -2
  19. package/dist/index209.js +16 -86
  20. package/dist/index21.js +15 -15
  21. package/dist/{index232.js → index210.js} +2 -2
  22. package/dist/index211.js +18 -28
  23. package/dist/index212.js +14 -16
  24. package/dist/index213.js +18 -50
  25. package/dist/index214.js +27 -15
  26. package/dist/index215.js +1 -1
  27. package/dist/index216.js +2 -12
  28. package/dist/index217.js +8 -16
  29. package/dist/index218.js +250 -4
  30. package/dist/index219.js +52 -41
  31. package/dist/index220.js +43 -19
  32. package/dist/index221.js +5 -94
  33. package/dist/index222.js +62 -0
  34. package/dist/index223.js +12 -199
  35. package/dist/{index247.js → index224.js} +2 -2
  36. package/dist/index225.js +2 -66
  37. package/dist/index226.js +43 -0
  38. package/dist/index227.js +20 -13
  39. package/dist/index228.js +5 -12
  40. package/dist/index229.js +94 -3
  41. package/dist/index23.js +17 -17
  42. package/dist/index231.js +65 -15
  43. package/dist/index233.js +13 -19
  44. package/dist/index234.js +2 -15
  45. package/dist/index235.js +9 -19
  46. package/dist/index236.js +3 -27
  47. package/dist/index237.js +86 -2
  48. package/dist/index239.js +27 -248
  49. package/dist/index240.js +17 -52
  50. package/dist/index241.js +50 -43
  51. package/dist/index242.js +15 -5
  52. package/dist/index243.js +12 -60
  53. package/dist/index244.js +16 -2
  54. package/dist/index245.js +4 -4
  55. package/dist/index246.js +200 -2
  56. package/dist/index248.js +2 -2
  57. package/dist/index249.js +4 -6
  58. package/dist/index25.js +5 -5
  59. package/dist/index250.js +2 -2
  60. package/dist/index251.js +34 -9
  61. package/dist/index252.js +7 -34
  62. package/dist/index253.js +15 -7
  63. package/dist/index254.js +2 -15
  64. package/dist/index255.js +2 -106
  65. package/dist/index256.js +4 -0
  66. package/dist/index257.js +17 -99
  67. package/dist/{index262.js → index258.js} +2 -2
  68. package/dist/index259.js +106 -2
  69. package/dist/index261.js +99 -17
  70. package/dist/index264.js +2 -2
  71. package/dist/index265.js +1 -1
  72. package/dist/index27.js +1 -1
  73. package/dist/index271.js +1 -1
  74. package/dist/index274.js +281 -3
  75. package/dist/index275.js +6 -17
  76. package/dist/index276.js +2 -9
  77. package/dist/index277.js +2 -28
  78. package/dist/index278.js +2 -431
  79. package/dist/index279.js +2 -3
  80. package/dist/index280.js +2 -3
  81. package/dist/index281.js +2 -3
  82. package/dist/index282.js +4 -0
  83. package/dist/index283.js +2 -7
  84. package/dist/index284.js +2 -7
  85. package/dist/index285.js +2 -11
  86. package/dist/index286.js +2 -224
  87. package/dist/index287.js +27 -280
  88. package/dist/index288.js +22 -6
  89. package/dist/index29.js +3 -3
  90. package/dist/index290.js +7 -2
  91. package/dist/index291.js +7 -2
  92. package/dist/index292.js +11 -2
  93. package/dist/index293.js +2 -2
  94. package/dist/index294.js +431 -2
  95. package/dist/index295.js +3 -2
  96. package/dist/index296.js +3 -2
  97. package/dist/index298.js +224 -2
  98. package/dist/index299.js +3 -2
  99. package/dist/index300.js +15 -20
  100. package/dist/index301.js +11 -0
  101. package/dist/index303.js +3 -4
  102. package/dist/index304.js +4 -2
  103. package/dist/index305.js +2 -8
  104. package/dist/index306.js +8 -2
  105. package/dist/index307.js +1 -1
  106. package/dist/index308.js +126 -3
  107. package/dist/index309.js +1 -1
  108. package/dist/index31.js +2 -2
  109. package/dist/index310.js +3 -126
  110. package/dist/index314.js +5 -67
  111. package/dist/index316.js +66 -88
  112. package/dist/index317.js +89 -5
  113. package/dist/index323.js +57 -32
  114. package/dist/index324.js +57 -27
  115. package/dist/index325.js +482 -0
  116. package/dist/index326.js +8 -58
  117. package/dist/index327.js +6 -58
  118. package/dist/index328.js +8 -480
  119. package/dist/index329.js +4 -7
  120. package/dist/index33.js +7 -7
  121. package/dist/index330.js +7 -5
  122. package/dist/index331.js +7 -8
  123. package/dist/index332.js +32 -4
  124. package/dist/index333.js +28 -8
  125. package/dist/index337.js +1 -1
  126. package/dist/index339.js +1 -1
  127. package/dist/index35.js +4 -4
  128. package/dist/index37.js +18 -18
  129. package/dist/index39.js +4 -4
  130. package/dist/index41.js +2 -2
  131. package/dist/index43.js +7 -7
  132. package/dist/index45.js +8 -8
  133. package/dist/index47.js +2 -2
  134. package/dist/index49.js +2 -2
  135. package/dist/index53.js +1 -1
  136. package/dist/index55.js +1 -1
  137. package/dist/index57.js +2 -2
  138. package/dist/index61.js +1 -1
  139. package/dist/index75.js +1 -1
  140. package/dist/index77.js +1 -1
  141. package/dist/index84.js +4 -4
  142. package/dist/index86.js +146 -91
  143. package/dist/index88.js +4 -4
  144. package/dist/index90.js +1 -1
  145. package/package.json +1 -1
  146. package/dist/index230.js +0 -7
  147. package/dist/index238.js +0 -10
  148. package/dist/index260.js +0 -4
  149. package/dist/index289.js +0 -4
  150. package/dist/index297.js +0 -4
  151. package/dist/index334.js +0 -9
package/dist/index37.js CHANGED
@@ -5,31 +5,31 @@ import { useId as Ze } from "./index8.js";
5
5
  import { useMobile as et } from "./index9.js";
6
6
  import tt from "./index128.js";
7
7
  /* empty css */
8
- import { last as lt } from "./index237.js";
9
- import { matchAnyKey as oe } from "./index261.js";
10
- import { useFloating as at } from "./index262.js";
8
+ import { last as lt } from "./index216.js";
9
+ import { matchAnyKey as oe } from "./index257.js";
10
+ import { useFloating as at } from "./index258.js";
11
11
  import { useMounted as ot, useIntersectionObserver as nt } from "./index132.js";
12
12
  import { wait as F } from "./index130.js";
13
- import { when as ut } from "./index245.js";
14
- import rt from "./index255.js";
13
+ import { when as ut } from "./index249.js";
14
+ import rt from "./index259.js";
15
15
  /* empty css */
16
- import it from "./index257.js";
16
+ import it from "./index261.js";
17
17
  /* empty css */
18
- import st from "./index225.js";
18
+ import st from "./index231.js";
19
19
  /* empty css */
20
- import dt from "./index227.js";
21
- import { waitFor as ct } from "./index249.js";
22
- import pt from "./index254.js";
23
- import { useItemsGetter as mt } from "./index211.js";
24
- import { usePrefill as ft } from "./index217.js";
20
+ import dt from "./index233.js";
21
+ import { waitFor as ct } from "./index228.js";
22
+ import pt from "./index253.js";
23
+ import { useItemsGetter as mt } from "./index239.js";
24
+ import { usePrefill as ft } from "./index244.js";
25
25
  import { useArray as vt } from "./index263.js";
26
- import { useBaseOptions as yt } from "./index213.js";
27
- import { useIndexById as ne } from "./index212.js";
28
- import { useCoherence as ht } from "./index214.js";
26
+ import { useBaseOptions as yt } from "./index241.js";
27
+ import { useIndexById as ne } from "./index240.js";
28
+ import { useCoherence as ht } from "./index242.js";
29
29
  import { hash as bt } from "./index215.js";
30
- import { useHashedWatcher as ue } from "./index216.js";
31
- import { useLocale as gt } from "./index228.js";
32
- import { isEmpty as wt } from "./index250.js";
30
+ import { useHashedWatcher as ue } from "./index243.js";
31
+ import { useLocale as gt } from "./index223.js";
32
+ import { isEmpty as wt } from "./index234.js";
33
33
  import Bt from "./index264.js";
34
34
  import { autoUpdate as Vt, flip as kt, offset as It, shift as Ct } from "./index265.js";
35
35
  const St = { class: "bb-base-select__input-container" }, Ot = {
package/dist/index39.js CHANGED
@@ -1,8 +1,8 @@
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 c, Fragment as ee, renderList as ae, createCommentVNode as H, normalizeProps as re, guardReactiveProps as te, unref as b, normalizeClass as F, normalizeStyle as I } from "vue";
2
- import { clamp as le } from "./index208.js";
3
- import { head as O } from "./index260.js";
4
- import { isCssColor as Y } from "./index244.js";
5
- import { isNil as P } from "./index259.js";
2
+ import { clamp as le } from "./index207.js";
3
+ import { head as O } from "./index255.js";
4
+ import { isCssColor as Y } from "./index248.js";
5
+ import { isNil as P } from "./index256.js";
6
6
  import { isNotNil as ne } from "./index135.js";
7
7
  import { transposeValue as y } from "./index131.js";
8
8
  import { hash as J } from "./index215.js";
package/dist/index41.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as I, ref as f, computed as n, watch as S, openBlock as h, createElementBlock as y, normalizeProps as r, guardReactiveProps as d, mergeProps as V, createCommentVNode as A, createElementVNode as l, renderSlot as F } from "vue";
2
- import { isCssColor as b } from "./index244.js";
3
- import { when as N } from "./index245.js";
2
+ import { isCssColor as b } from "./index248.js";
3
+ import { when as N } from "./index249.js";
4
4
  const x = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
5
5
  __name: "BaseSwitch",
6
6
  props: {
package/dist/index43.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as j, ref as k, toRef as d, openBlock as z, createBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as v, guardReactiveProps as b, createVNode as R, mergeProps as w, createSlots as W } from "vue";
2
2
  import K from "./index41.js";
3
3
  /* empty css */
4
- import N from "./index209.js";
4
+ import N from "./index237.js";
5
5
  /* empty css */
6
- import { useItemsGetter as U } from "./index211.js";
7
- import { useIndexById as T } from "./index212.js";
8
- import { useBaseOptions as q } from "./index213.js";
9
- import { useCoherence as J } from "./index214.js";
6
+ import { useItemsGetter as U } from "./index239.js";
7
+ import { useIndexById as T } from "./index240.js";
8
+ import { useBaseOptions as q } from "./index241.js";
9
+ import { useCoherence as J } from "./index242.js";
10
10
  import { hash as Q } from "./index215.js";
11
- import { useHashedWatcher as $ } from "./index216.js";
12
- import { usePrefill as X } from "./index217.js";
11
+ import { useHashedWatcher as $ } from "./index243.js";
12
+ import { usePrefill as X } from "./index244.js";
13
13
  const ue = /* @__PURE__ */ j({
14
14
  __name: "BaseSwitchGroup",
15
15
  props: {
package/dist/index45.js CHANGED
@@ -3,17 +3,17 @@ import { defineComponent as Q, ref as u, computed as f, toRef as E, watch as Z,
3
3
  /* empty css */
4
4
  import ae from "./index128.js";
5
5
  /* empty css */
6
- import { last as le } from "./index237.js";
7
- import { useBaseOptions as ne } from "./index213.js";
8
- import { useIndexById as re } from "./index212.js";
9
- import ie from "./index255.js";
6
+ import { last as le } from "./index216.js";
7
+ import { useBaseOptions as ne } from "./index241.js";
8
+ import { useIndexById as re } from "./index240.js";
9
+ import ie from "./index259.js";
10
10
  /* empty css */
11
- import ue from "./index257.js";
11
+ import ue from "./index261.js";
12
12
  /* empty css */
13
- import se from "./index225.js";
13
+ import se from "./index231.js";
14
14
  /* empty css */
15
- import de from "./index227.js";
16
- import { isEmpty as pe } from "./index250.js";
15
+ import de from "./index233.js";
16
+ import { isEmpty as pe } from "./index234.js";
17
17
  const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], De = /* @__PURE__ */ Q({
18
18
  __name: "BaseTag",
19
19
  props: {
package/dist/index47.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as h, ref as y, computed as u, onMounted as g, watch as B, nextTick as V, openBlock as $, createBlock as k, normalizeClass as C, withCtx as r, renderSlot as t, createVNode as i, unref as T, createElementVNode as v, mergeProps as x } from "vue";
2
- import E from "./index227.js";
3
- import G from "./index225.js";
2
+ import E from "./index233.js";
3
+ import G from "./index231.js";
4
4
  /* empty css */
5
5
  import M from "./index128.js";
6
6
  /* empty css */
package/dist/index49.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as h, ref as V, computed as v, onMounted as B, onBeforeUnmount as M, watch as g, openBlock as i, createElementBlock as r, Fragment as w, createVNode as m, normalizeClass as $, withCtx as n, renderSlot as d, unref as C, mergeProps as b, createElementVNode as q } from "vue";
2
- import E from "./index225.js";
2
+ import E from "./index231.js";
3
3
  /* empty css */
4
- import I from "./index227.js";
4
+ import I from "./index233.js";
5
5
  import { isNotNil as N } from "./index135.js";
6
6
  import { MaskInput as z } from "./index266.js";
7
7
  const D = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type"], L = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type", "value"], U = /* @__PURE__ */ h({
package/dist/index53.js CHANGED
@@ -3,7 +3,7 @@ import B from "./index126.js";
3
3
  /* empty css */
4
4
  import L from "./index127.js";
5
5
  /* empty css */
6
- import { useLocale as g } from "./index228.js";
6
+ import { useLocale as g } from "./index223.js";
7
7
  const $ = {
8
8
  class: "bb-alert__inner-container",
9
9
  role: "alert"
package/dist/index55.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, computed as z, ref as o, onMounted as g, openBlock as l, createElementBlock as i, normalizeProps as _, guardReactiveProps as h, renderSlot as k } from "vue";
2
- import { isCssColor as y } from "./index244.js";
2
+ import { isCssColor as y } from "./index248.js";
3
3
  import { wait as C } from "./index130.js";
4
4
  const w = ["alt", "sizes", "src", "srcset"], B = {
5
5
  key: 1,
package/dist/index57.js CHANGED
@@ -1,6 +1,6 @@
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 "./index244.js";
3
- import { isNil as B } from "./index259.js";
2
+ import { isCssColor as r } from "./index248.js";
3
+ import { isNil as B } from "./index256.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",
6
6
  props: {
package/dist/index61.js CHANGED
@@ -9,7 +9,7 @@ import T from "./index129.js";
9
9
  /* empty css */
10
10
  import { pickBy as W } from "./index267.js";
11
11
  import { noop as w } from "./index268.js";
12
- import { useLocale as D } from "./index228.js";
12
+ import { useLocale as D } from "./index223.js";
13
13
  const E = {
14
14
  key: 2,
15
15
  class: "bb-button__loading-label sr-only"
package/dist/index75.js CHANGED
@@ -6,7 +6,7 @@ import { useIntersectionObserver as ae } from "./index132.js";
6
6
  import le from "./index13.js";
7
7
  /* empty css */
8
8
  import N from "./index270.js";
9
- import se from "./index221.js";
9
+ import se from "./index229.js";
10
10
  /* empty css */
11
11
  import V from "./index127.js";
12
12
  /* empty css */
package/dist/index77.js CHANGED
@@ -9,7 +9,7 @@ import S from "./index127.js";
9
9
  /* empty css */
10
10
  import R from "./index129.js";
11
11
  /* empty css */
12
- import { useLocale as T } from "./index228.js";
12
+ import { useLocale as T } from "./index223.js";
13
13
  const Z = { class: "bb-dropdown-button__content" }, q = {
14
14
  key: 1,
15
15
  class: "bb-dropdown-button__loading-label sr-only"
package/dist/index84.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as ae, ref as l, useAttrs as ne, computed as u, getCurrentInstance as ie, nextTick as re, onBeforeUnmount as A, onMounted as ue, watch as ce, openBlock as g, createBlock as de, withCtx as fe, createElementVNode as s, mergeProps as E, createElementBlock as $, renderSlot as n, createTextVNode as ve, toDisplayString as H, unref as pe, createCommentVNode as T } from "vue";
2
- import { useFocusTrap as be } from "./index219.js";
2
+ import { useFocusTrap as be } from "./index226.js";
3
3
  import { useId as I } from "./index8.js";
4
4
  import { wait as D } from "./index130.js";
5
- import { useModalsState as b } from "./index253.js";
6
- import me from "./index254.js";
5
+ import { useModalsState as b } from "./index252.js";
6
+ import me from "./index253.js";
7
7
  import { useMobile as ye } from "./index9.js";
8
- import { useLocale as he } from "./index228.js";
8
+ import { useLocale as he } from "./index223.js";
9
9
  const ge = ["inert"], _e = { class: "bb-offcanvas-close" }, ke = ["aria-label"], De = /* @__PURE__ */ ae({
10
10
  __name: "BbOffCanvas",
11
11
  props: {
package/dist/index86.js CHANGED
@@ -1,117 +1,183 @@
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 "./index251.js";
1
+ import { defineComponent as F, mergeModels as D, useModel as G, getCurrentInstance as O, computed as d, ref as f, onMounted as j, onBeforeUnmount as X, openBlock as w, createElementBlock as x, normalizeClass as H, createElementVNode as p, createVNode as P, unref as m, normalizeProps as $, guardReactiveProps as N, withCtx as q, renderSlot as h, toDisplayString as _, Fragment as J, renderList as K, mergeProps as Q, nextTick as E } from "vue";
3
2
  /* empty css */
4
3
  /* empty css */
5
- import z from "./index13.js";
4
+ import M from "./index13.js";
6
5
  /* empty css */
7
- import { useLocale as D } from "./index228.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({
6
+ import { debounce as Y } from "./index235.js";
7
+ import { useLocale as Z } from "./index223.js";
8
+ import { useRoute as ee } from "./index137.js";
9
+ const ae = ["aria-label"], le = { class: "bb-pagination__page-label sr-only" }, te = { class: "bb-pagination__page-label" }, ne = { class: "bb-pagination__page-label" }, ie = { class: "bb-pagination__page-label sr-only" }, be = /* @__PURE__ */ F({
9
10
  __name: "BbPagination",
10
- props: {
11
+ props: /* @__PURE__ */ D({
11
12
  disabled: { type: Boolean },
12
13
  loading: { type: Boolean },
13
14
  align: { default: "right" },
14
15
  ellipsis: { default: "..." },
15
16
  label: { default: "Paginazione" },
16
17
  maxSize: { default: 6 },
17
- modelValue: { default: 1 },
18
+ navigation: { type: Boolean },
19
+ replace: { type: Boolean },
20
+ querykey: { default: "page" },
18
21
  totalPages: { default: 1 }
19
- },
22
+ }, {
23
+ modelValue: { default: 1 },
24
+ modelModifiers: {}
25
+ }),
20
26
  emits: ["update:modelValue"],
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(_)));
27
+ setup(z) {
28
+ var C, A;
29
+ const a = z, { t: L } = Z(), n = G(z, "modelValue"), k = !!((A = (C = O()) == null ? void 0 : C.proxy) != null && A.$inertia), r = ee(), v = d(() => +a.totalPages), g = f(1), s = f(+a.maxSize), c = f(), b = f(), B = f(1 / 0), S = () => {
30
+ c.value && b.value && (c.value.clientWidth < b.value.clientWidth ? s.value - 1 > 3 ? (s.value--, E(S)) : s.value = 3 : s.value < +a.maxSize && /* If there is enough space to fit one */
31
+ c.value.clientWidth - b.value.clientWidth > B.value && (s.value = Math.min(s.value + 1, +a.maxSize), E(S)));
25
32
  };
26
33
  if (globalThis.ResizeObserver) {
27
- const e = new ResizeObserver(T(_, 200));
28
- P(() => {
29
- if (u.value && d.value) {
30
- const l = u.value.querySelectorAll(
34
+ const e = new ResizeObserver(Y(S, 200));
35
+ j(() => {
36
+ if (c.value && b.value) {
37
+ const l = c.value.querySelectorAll(
31
38
  ".bb-pagination__page"
32
39
  )[1];
33
40
  if (l) {
34
- const p = getComputedStyle(d.value).columnGap.replaceAll(/\D/g, ""), o = Number(p);
35
- M.value = l.clientWidth + o;
41
+ const o = getComputedStyle(b.value).columnGap.replaceAll(/\D/g, ""), i = Number(o);
42
+ B.value = l.clientWidth + i;
36
43
  }
37
- e.observe(u.value);
44
+ e.observe(c.value);
38
45
  }
39
- }), W(() => {
46
+ }), X(() => {
40
47
  e.disconnect();
41
48
  });
42
49
  }
43
- const N = h(() => {
44
- if (s.value <= 0 || isNaN(s.value) || s.value > Number.MAX_SAFE_INTEGER)
50
+ const T = d(() => {
51
+ if (v.value <= 0 || isNaN(v.value) || v.value > Number.MAX_SAFE_INTEGER)
45
52
  return [];
46
- if (t.value <= 1) return [a.modelValue];
47
- if (s.value <= t.value)
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)
53
+ if (s.value <= 1) return [n.value];
54
+ if (v.value <= s.value)
55
+ return y(v.value, g.value);
56
+ const e = s.value % 2 === 0, l = e ? s.value / 2 : Math.floor(s.value / 2), t = e ? l : l + 1, o = v.value - l;
57
+ if (t - n.value >= 0)
51
58
  return [
52
- ...b(Math.max(1, t.value - 1), r.value),
59
+ ...y(Math.max(1, s.value - 1), g.value),
53
60
  a.ellipsis,
54
- s.value
61
+ v.value
55
62
  ];
56
- if (a.modelValue - p >= (e ? 1 : 0)) {
57
- const o = t.value - 1, y = s.value - o + r.value;
63
+ if (n.value - o >= (e ? 1 : 0)) {
64
+ const i = s.value - 1, u = v.value - i + g.value;
58
65
  return [
59
- r.value,
66
+ g.value,
60
67
  a.ellipsis,
61
- ...b(o, y)
68
+ ...y(i, u)
62
69
  ];
63
70
  } else {
64
- const o = Math.max(1, t.value - 3), y = o === 1 ? a.modelValue : a.modelValue - Math.ceil(o / 2) + r.value;
71
+ const i = Math.max(1, s.value - 3), u = i === 1 ? n.value : n.value - Math.ceil(i / 2) + g.value;
65
72
  return [
66
- r.value,
73
+ g.value,
67
74
  a.ellipsis,
68
- ...b(o, y),
75
+ ...y(i, u),
69
76
  a.ellipsis,
70
- s.value
77
+ v.value
71
78
  ];
72
79
  }
73
- }), A = h(() => N.value.map((e, l) => typeof e == "string" ? {
80
+ }), V = d(() => T.value.map((e, l) => typeof e == "string" ? {
74
81
  active: !1,
75
82
  key: `ellipsis-${l}`,
76
83
  page: e,
77
84
  ellipsis: !0,
78
85
  disabled: !0
79
86
  } : {
80
- active: e === a.modelValue,
87
+ active: e === n.value,
81
88
  key: e,
82
89
  page: e,
83
90
  ellipsis: !1,
84
91
  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", {
92
+ })), y = (e, l = 0) => Array.from({ length: e }, (t, o) => l + o), W = d(() => {
93
+ var l, t, o;
94
+ const e = {
95
+ disabled: n.value <= 1 || a.loading || a.disabled,
96
+ onClick: () => {
97
+ n.value > 1 && (n.value = n.value - 1);
98
+ },
99
+ class: "bb-pagination__page bb-pagination__page--previous"
100
+ };
101
+ if (a.navigation) {
102
+ const i = (n.value - 1).toString();
103
+ if (k) {
104
+ const u = new URL(globalThis.location.href);
105
+ u.searchParams.set(a.querykey, i), e.href = u.toString();
106
+ } else r.value && (e.to = {
107
+ path: (l = r.value) == null ? void 0 : l.path,
108
+ params: (t = r.value) == null ? void 0 : t.params,
109
+ query: { ...(o = r.value) == null ? void 0 : o.query, [a.querykey]: i }
110
+ }, e.replace = a.replace);
111
+ }
112
+ return e;
113
+ }), I = (e) => {
114
+ var t, o, i;
115
+ const l = {
116
+ class: ["bb-pagination__page"],
117
+ disabled: e.disabled,
118
+ onClick: () => {
119
+ typeof e.key == "number" && (n.value = e.key);
120
+ }
121
+ };
122
+ if (e.active && l.class.push("bb-pagination__page--active"), e.ellipsis && l.class.push("bb-pagination__page--ellipsis"), a.navigation) {
123
+ const u = e.key.toString();
124
+ if (k) {
125
+ const R = new URL(globalThis.location.href);
126
+ R.searchParams.set(a.querykey, u), l.href = R.toString();
127
+ } else r.value && (l.to = {
128
+ path: (t = r.value) == null ? void 0 : t.path,
129
+ params: (o = r.value) == null ? void 0 : o.params,
130
+ query: { ...(i = r.value) == null ? void 0 : i.query, [a.querykey]: u }
131
+ }, l.replace = a.replace);
132
+ }
133
+ return l;
134
+ }, U = d(() => {
135
+ var l, t, o;
136
+ const e = {
137
+ disabled: n.value >= v.value || a.loading || a.disabled,
138
+ onClick: () => {
139
+ n.value < v.value && (n.value = n.value + 1);
140
+ },
141
+ class: "bb-pagination__page bb-pagination__page--next"
142
+ };
143
+ if (a.navigation) {
144
+ const i = (n.value + 1).toString();
145
+ if (k) {
146
+ const u = new URL(globalThis.location.href);
147
+ u.searchParams.set(a.querykey, i), e.href = u.toString();
148
+ } else r.value && (e.to = {
149
+ path: (l = r.value) == null ? void 0 : l.path,
150
+ params: (t = r.value) == null ? void 0 : t.params,
151
+ query: { ...(o = r.value) == null ? void 0 : o.query, [a.querykey]: i }
152
+ }, e.replace = a.replace);
153
+ }
154
+ return e;
155
+ });
156
+ return (e, l) => (w(), x("div", {
87
157
  ref_key: "outercontainer",
88
- ref: u,
89
- class: $(["bb-pagination", {
158
+ ref: c,
159
+ class: H(["bb-pagination", {
90
160
  [`bb-pagination--${e.align}`]: !0,
91
161
  "bb-pagination--disabled": e.disabled
92
162
  }])
93
163
  }, [
94
- i("nav", { "aria-label": e.label }, [
95
- i("ul", {
164
+ p("nav", { "aria-label": e.label }, [
165
+ p("ul", {
96
166
  ref_key: "innercontainer",
97
- ref: d,
167
+ ref: b,
98
168
  class: "bb-pagination__pages"
99
169
  }, [
100
- i("li", null, [
101
- S(v(z), {
102
- class: "bb-pagination__page bb-pagination__page--previous",
103
- disabled: a.modelValue <= 1 || e.loading || e.disabled,
104
- onClick: l[0] || (l[0] = (n) => f("update:modelValue", a.modelValue - 1))
105
- }, {
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", {
170
+ p("li", null, [
171
+ P(m(M), $(N(W.value)), {
172
+ default: q(() => [
173
+ h(e.$slots, "previous", {}, () => [
174
+ p("span", le, _(m(L)("pagination.previous").value), 1),
175
+ l[0] || (l[0] = p("svg", {
110
176
  class: "bb-pagination__page-chevron",
111
177
  viewBox: "0 0 24 24",
112
178
  xmlns: "http://www.w3.org/2000/svg"
113
179
  }, [
114
- i("path", {
180
+ p("path", {
115
181
  d: "M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z",
116
182
  fill: "currentColor"
117
183
  })
@@ -119,49 +185,38 @@ const G = ["aria-label"], I = { class: "bb-pagination__page-label sr-only" }, O
119
185
  ])
120
186
  ]),
121
187
  _: 3
122
- }, 8, ["disabled"])
188
+ }, 16)
123
189
  ]),
124
- (k(!0), V(R, null, F(A.value, (n) => (k(), V("li", {
125
- key: n.key
190
+ (w(!0), x(J, null, K(V.value, (t) => (w(), x("li", {
191
+ key: t.key
126
192
  }, [
127
- S(v(z), {
128
- class: $(["bb-pagination__page", {
129
- "bb-pagination__page--active": n.active,
130
- "bb-pagination__page--ellipsis": n.ellipsis
131
- }]),
132
- disabled: n.disabled,
133
- onClick: (p) => f("update:modelValue", n.key)
134
- }, {
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", {
193
+ P(m(M), Q({ ref_for: !0 }, I(t)), {
194
+ default: q(() => [
195
+ t.ellipsis === !0 ? h(e.$slots, "ellipsis", { key: 0 }, () => [
196
+ p("span", te, _(a.ellipsis), 1)
197
+ ]) : h(e.$slots, "item", {
139
198
  key: 1,
140
- active: n.active,
141
- disabled: n.disabled,
142
- item: n.key
199
+ active: t.active,
200
+ disabled: t.disabled,
201
+ item: t.key
143
202
  }, () => [
144
- i("span", j, m(n.key), 1)
203
+ p("span", ne, _(t.key), 1)
145
204
  ])
146
205
  ]),
147
206
  _: 2
148
- }, 1032, ["class", "disabled", "onClick"])
207
+ }, 1040)
149
208
  ]))), 128)),
150
- i("li", null, [
151
- S(v(z), {
152
- class: "bb-pagination__page bb-pagination__page--next",
153
- disabled: a.modelValue >= +s.value || e.loading || e.disabled,
154
- onClick: l[1] || (l[1] = (n) => f("update:modelValue", a.modelValue + 1))
155
- }, {
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", {
209
+ p("li", null, [
210
+ P(m(M), $(N(U.value)), {
211
+ default: q(() => [
212
+ h(e.$slots, "next", {}, () => [
213
+ p("span", ie, _(m(L)("pagination.next").value), 1),
214
+ l[1] || (l[1] = p("svg", {
160
215
  class: "bb-pagination__page-chevron",
161
216
  viewBox: "0 0 24 24",
162
217
  xmlns: "http://www.w3.org/2000/svg"
163
218
  }, [
164
- i("path", {
219
+ p("path", {
165
220
  d: "M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z",
166
221
  fill: "currentColor"
167
222
  })
@@ -169,13 +224,13 @@ const G = ["aria-label"], I = { class: "bb-pagination__page-label sr-only" }, O
169
224
  ])
170
225
  ]),
171
226
  _: 3
172
- }, 8, ["disabled"])
227
+ }, 16)
173
228
  ])
174
229
  ], 512)
175
- ], 8, G)
230
+ ], 8, ae)
176
231
  ], 2));
177
232
  }
178
233
  });
179
234
  export {
180
- Z as default
235
+ be as default
181
236
  };
package/dist/index88.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as O, ref as n, computed as v, openBlock as y, createElementBlock as S, mergeProps as F, createElementVNode as p, renderSlot as k, normalizeProps as H, guardReactiveProps as V, createVNode as q, withCtx as T, createBlock as I, toDisplayString as W, unref as z, createCommentVNode as A, nextTick as R } from "vue";
2
- import { useFocusTrap as j } from "./index219.js";
2
+ import { useFocusTrap as j } from "./index226.js";
3
3
  import { useId as G } from "./index8.js";
4
4
  import { useIntersectionObserver as J } from "./index132.js";
5
- import { waitFor as K } from "./index249.js";
5
+ import { waitFor as K } from "./index228.js";
6
6
  import Q from "./index13.js";
7
7
  /* empty css */
8
- import U from "./index221.js";
8
+ import U from "./index229.js";
9
9
  /* empty css */
10
- import { useLocale as X } from "./index228.js";
10
+ import { useLocale as X } from "./index223.js";
11
11
  import { useDebounceFn as Y } from "./index206.js";
12
12
  const Z = { class: "bb-popover__close-label sr-only" }, ce = /* @__PURE__ */ O({
13
13
  __name: "BbPopover",
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 "./index208.js";
2
+ import { clamp as p } from "./index207.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.162",
3
+ "version": "2.0.163",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
package/dist/index230.js DELETED
@@ -1,7 +0,0 @@
1
- import { getDefaultExportFromCjs as r } from "./index288.js";
2
- import { __require as o } from "./index287.js";
3
- var t = o();
4
- const s = /* @__PURE__ */ r(t);
5
- export {
6
- s as default
7
- };
package/dist/index238.js DELETED
@@ -1,10 +0,0 @@
1
- const o = "bitboss-ui | ", e = () => ({
2
- warn: (r) => console.warn(`${o}${r}`),
3
- error: (r) => console.error(`${o}${r}`),
4
- throw: (r) => {
5
- throw new Error(`${o}${r}`);
6
- }
7
- });
8
- export {
9
- e as useLogger
10
- };
package/dist/index260.js DELETED
@@ -1,4 +0,0 @@
1
- const o = (e) => e[0];
2
- export {
3
- o as head
4
- };
package/dist/index289.js DELETED
@@ -1,4 +0,0 @@
1
- var a = { exports: {} };
2
- export {
3
- a as __module
4
- };
package/dist/index297.js DELETED
@@ -1,4 +0,0 @@
1
- import f from "./index240.js";
2
- export {
3
- f as default
4
- };