bitboss-ui 2.0.164 → 2.0.165

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 (164) hide show
  1. package/dist/index100.js +8 -8
  2. package/dist/index111.js +11 -11
  3. package/dist/index119.js +2 -2
  4. package/dist/index121.js +4 -4
  5. package/dist/index123.js +1 -1
  6. package/dist/index125.js +1 -1
  7. package/dist/index127.js +1 -1
  8. package/dist/index128.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/index132.js +2 -2
  13. package/dist/index133.js +1 -1
  14. package/dist/index134.js +2 -2
  15. package/dist/index15.js +8 -8
  16. package/dist/index17.js +3 -3
  17. package/dist/index19.js +8 -8
  18. package/dist/index206.js +115 -2
  19. package/dist/index207.js +2 -4
  20. package/dist/index208.js +3 -40
  21. package/dist/index209.js +41 -20
  22. package/dist/index21.js +16 -16
  23. package/dist/index210.js +19 -93
  24. package/dist/index211.js +96 -0
  25. package/dist/{index212.js → index213.js} +4 -4
  26. package/dist/{index214.js → index215.js} +2 -2
  27. package/dist/index217.js +13 -13
  28. package/dist/index218.js +13 -3
  29. package/dist/index219.js +5 -6
  30. package/dist/index220.js +16 -7
  31. package/dist/index221.js +16 -15
  32. package/dist/index222.js +19 -86
  33. package/dist/index223.js +17 -0
  34. package/dist/index224.js +19 -29
  35. package/dist/index225.js +26 -16
  36. package/dist/index226.js +3 -51
  37. package/dist/index227.js +2 -15
  38. package/dist/index228.js +8 -3
  39. package/dist/index229.js +250 -12
  40. package/dist/index23.js +17 -17
  41. package/dist/index230.js +52 -16
  42. package/dist/index231.js +44 -2
  43. package/dist/index232.js +5 -4
  44. package/dist/index233.js +60 -2
  45. package/dist/index234.js +3 -5
  46. package/dist/index235.js +86 -16
  47. package/dist/index237.js +28 -18
  48. package/dist/index238.js +16 -14
  49. package/dist/index239.js +50 -18
  50. package/dist/index240.js +15 -27
  51. package/dist/index241.js +12 -2
  52. package/dist/index242.js +16 -8
  53. package/dist/index243.js +120 -245
  54. package/dist/index244.js +2 -52
  55. package/dist/index245.js +5 -43
  56. package/dist/index246.js +2 -5
  57. package/dist/index247.js +9 -60
  58. package/dist/index248.js +2 -34
  59. package/dist/index249.js +4 -2
  60. package/dist/index25.js +5 -5
  61. package/dist/index250.js +2 -125
  62. package/dist/index251.js +7 -2
  63. package/dist/index252.js +15 -2
  64. package/dist/index253.js +34 -9
  65. package/dist/index254.js +2 -115
  66. package/dist/index258.js +2 -2
  67. package/dist/index259.js +1 -1
  68. package/dist/index261.js +1 -1
  69. package/dist/index264.js +2 -2
  70. package/dist/index265.js +3 -3
  71. package/dist/index269.js +9 -6
  72. package/dist/index27.js +1 -1
  73. package/dist/index270.js +23 -16
  74. package/dist/index271.js +3 -9
  75. package/dist/index272.js +6 -23
  76. package/dist/index273.js +16 -3
  77. package/dist/index274.js +280 -223
  78. package/dist/index275.js +5 -430
  79. package/dist/index276.js +2 -3
  80. package/dist/index277.js +2 -3
  81. package/dist/index278.js +2 -3
  82. package/dist/index280.js +2 -7
  83. package/dist/index281.js +2 -7
  84. package/dist/index282.js +2 -11
  85. package/dist/index283.js +1 -1
  86. package/dist/index284.js +2 -200
  87. package/dist/index285.js +2 -3
  88. package/dist/index286.js +2 -17
  89. package/dist/index287.js +27 -8
  90. package/dist/index288.js +21 -27
  91. package/dist/index29.js +3 -3
  92. package/dist/index290.js +7 -281
  93. package/dist/index291.js +7 -6
  94. package/dist/index292.js +11 -2
  95. package/dist/index293.js +431 -2
  96. package/dist/index294.js +3 -2
  97. package/dist/index295.js +3 -2
  98. package/dist/index296.js +3 -2
  99. package/dist/index298.js +224 -2
  100. package/dist/index299.js +3 -2
  101. package/dist/index300.js +17 -2
  102. package/dist/index301.js +9 -2
  103. package/dist/index302.js +200 -2
  104. package/dist/index303.js +2 -22
  105. package/dist/index305.js +1 -1
  106. package/dist/index306.js +2 -8
  107. package/dist/index307.js +8 -5
  108. package/dist/index308.js +126 -2
  109. package/dist/index309.js +2 -66
  110. package/dist/index31.js +2 -2
  111. package/dist/index310.js +3 -2
  112. package/dist/index311.js +2 -126
  113. package/dist/index312.js +436 -3
  114. package/dist/index313.js +127 -3
  115. package/dist/index314.js +2 -2
  116. package/dist/index315.js +65 -434
  117. package/dist/index316.js +5 -127
  118. package/dist/index317.js +89 -3
  119. package/dist/index318.js +3 -3
  120. package/dist/index319.js +3 -58
  121. package/dist/index320.js +55 -86
  122. package/dist/index321.js +32 -7
  123. package/dist/index322.js +28 -6
  124. package/dist/index324.js +1 -1
  125. package/dist/index325.js +6 -4
  126. package/dist/index326.js +6 -7
  127. package/dist/index327.js +18 -32
  128. package/dist/index328.js +8 -28
  129. package/dist/index329.js +8 -0
  130. package/dist/index33.js +8 -8
  131. package/dist/index330.js +7 -57
  132. package/dist/index331.js +33 -33
  133. package/dist/index332.js +58 -4
  134. package/dist/index333.js +4 -6
  135. package/dist/index334.js +7 -6
  136. package/dist/index335.js +3 -18
  137. package/dist/index337.js +1 -1
  138. package/dist/index339.js +1 -1
  139. package/dist/index35.js +4 -4
  140. package/dist/index37.js +15 -15
  141. package/dist/index39.js +3 -3
  142. package/dist/index41.js +2 -2
  143. package/dist/index43.js +8 -8
  144. package/dist/index45.js +6 -6
  145. package/dist/index47.js +2 -2
  146. package/dist/index49.js +2 -2
  147. package/dist/index53.js +1 -1
  148. package/dist/index55.js +1 -1
  149. package/dist/index57.js +1 -1
  150. package/dist/index61.js +1 -1
  151. package/dist/index75.js +3 -3
  152. package/dist/index77.js +1 -1
  153. package/dist/index79.js +2 -2
  154. package/dist/index81.js +1 -1
  155. package/dist/index84.js +4 -4
  156. package/dist/index86.js +93 -90
  157. package/dist/index88.js +5 -5
  158. package/dist/index90.js +1 -1
  159. package/package.json +1 -1
  160. package/dist/index216.js +0 -15
  161. package/dist/index236.js +0 -18
  162. package/dist/index323.js +0 -10
  163. /package/dist/{index297.js → index279.js} +0 -0
  164. /package/dist/{index289.js → index304.js} +0 -0
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 "./index222.js";
4
+ import N from "./index235.js";
5
5
  /* empty css */
6
- import { useItemsGetter as U } from "./index224.js";
7
- import { useIndexById as T } from "./index225.js";
8
- import { useBaseOptions as q } from "./index226.js";
9
- import { useCoherence as J } from "./index227.js";
10
- import { hash as Q } from "./index228.js";
11
- import { useHashedWatcher as $ } from "./index229.js";
12
- import { usePrefill as X } from "./index230.js";
6
+ import { useItemsGetter as U } from "./index237.js";
7
+ import { useIndexById as T } from "./index238.js";
8
+ import { useBaseOptions as q } from "./index239.js";
9
+ import { useCoherence as J } from "./index240.js";
10
+ import { hash as Q } from "./index226.js";
11
+ import { useHashedWatcher as $ } from "./index241.js";
12
+ import { usePrefill as X } from "./index242.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 "./index241.js";
7
- import { useBaseOptions as ne } from "./index226.js";
8
- import { useIndexById as re } from "./index225.js";
6
+ import { last as le } from "./index227.js";
7
+ import { useBaseOptions as ne } from "./index239.js";
8
+ import { useIndexById as re } from "./index238.js";
9
9
  import ie from "./index259.js";
10
10
  /* empty css */
11
11
  import ue from "./index261.js";
12
12
  /* empty css */
13
- import se from "./index214.js";
13
+ import se from "./index215.js";
14
14
  /* empty css */
15
- import de from "./index216.js";
16
- import { isEmpty as pe } from "./index252.js";
15
+ import de from "./index217.js";
16
+ import { isEmpty as pe } from "./index246.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 "./index216.js";
3
- import G from "./index214.js";
2
+ import E from "./index217.js";
3
+ import G from "./index215.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 "./index214.js";
2
+ import E from "./index215.js";
3
3
  /* empty css */
4
- import I from "./index216.js";
4
+ import I from "./index217.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 "./index217.js";
6
+ import { useLocale as g } from "./index218.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 "./index231.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,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 "./index248.js";
3
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",
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 "./index217.js";
12
+ import { useLocale as D } from "./index218.js";
13
13
  const E = {
14
14
  key: 2,
15
15
  class: "bb-button__loading-label sr-only"
package/dist/index75.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as X, computed as F, ref as y, openBlock as h, createElementBlock as D, mergeProps as A, createElementVNode as _, renderSlot as g, normalizeProps as Y, guardReactiveProps as Z, unref as $, createVNode as B, withCtx as O, normalizeStyle as x, Fragment as K, renderList as ee, createBlock as P, createCommentVNode as j, toDisplayString as te } from "vue";
2
- import { findRightIndex as H } from "./index271.js";
2
+ import { findRightIndex as H } from "./index269.js";
3
3
  import { useId as ne } from "./index8.js";
4
4
  import { wait as oe } from "./index130.js";
5
5
  import { useIntersectionObserver as ae } from "./index132.js";
6
6
  import le from "./index13.js";
7
7
  /* empty css */
8
- import N from "./index272.js";
9
- import se from "./index210.js";
8
+ import N from "./index270.js";
9
+ import se from "./index211.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 "./index217.js";
12
+ import { useLocale as T } from "./index218.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/index79.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 "./index270.js";
2
+ import { findInTree as ae } from "./index273.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index128.js";
5
5
  /* empty css */
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
53
53
  const r = a.accept[t];
54
54
  if (r.includes("/")) e.push(r);
55
55
  else {
56
- b || (b = (await import("./index269.js")).default);
56
+ b || (b = (await import("./index272.js")).default);
57
57
  const o = b.getType(r);
58
58
  if (!o)
59
59
  throw new Error(
package/dist/index81.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 "./index273.js";
2
+ import { throttle as c } from "./index271.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
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 "./index208.js";
2
+ import { useFocusTrap as be } from "./index209.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 "./index220.js";
6
- import me from "./index221.js";
5
+ import { useModalsState as b } from "./index251.js";
6
+ import me from "./index252.js";
7
7
  import { useMobile as ye } from "./index9.js";
8
- import { useLocale as he } from "./index217.js";
8
+ import { useLocale as he } from "./index218.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,14 +1,14 @@
1
- import { defineComponent as U, mergeModels as F, useModel as D, getCurrentInstance as G, computed as d, ref as f, onMounted as O, onBeforeUnmount as j, openBlock as w, createElementBlock as x, normalizeClass as X, createElementVNode as r, createVNode as P, unref as m, normalizeProps as R, guardReactiveProps as $, withCtx as q, renderSlot as _, toDisplayString as h, Fragment as H, renderList as J, mergeProps as K, nextTick as N } from "vue";
1
+ import { defineComponent as V, mergeModels as W, useModel as U, computed as d, ref as f, onMounted as F, onBeforeUnmount as D, openBlock as S, createElementBlock as w, normalizeClass as G, createElementVNode as r, createVNode as q, unref as y, normalizeProps as B, guardReactiveProps as A, withCtx as x, renderSlot as m, toDisplayString as _, Fragment as I, renderList as O, mergeProps as j, nextTick as C } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import M from "./index13.js";
4
+ import P from "./index13.js";
5
5
  /* empty css */
6
- import { debounce as Q } from "./index253.js";
7
- import { useLocale as Y } from "./index217.js";
8
- import { useRoute as Z } from "./index137.js";
9
- const ee = ["aria-label"], ae = { class: "bb-pagination__page-label sr-only" }, le = { class: "bb-pagination__page-label" }, te = { class: "bb-pagination__page-label" }, ne = { class: "bb-pagination__page-label sr-only" }, ge = /* @__PURE__ */ U({
6
+ import { debounce as X } from "./index247.js";
7
+ import { useLocale as H } from "./index218.js";
8
+ import { useRoute as J } from "./index137.js";
9
+ const K = ["aria-label"], Q = { class: "bb-pagination__page-label sr-only" }, Y = { class: "bb-pagination__page-label" }, Z = { class: "bb-pagination__page-label" }, ee = { class: "bb-pagination__page-label sr-only" }, ue = /* @__PURE__ */ V({
10
10
  __name: "BbPagination",
11
- props: /* @__PURE__ */ F({
11
+ props: /* @__PURE__ */ W({
12
12
  disabled: { type: Boolean },
13
13
  loading: { type: Boolean },
14
14
  align: { default: "right" },
@@ -24,60 +24,59 @@ const ee = ["aria-label"], ae = { class: "bb-pagination__page-label sr-only" },
24
24
  modelModifiers: {}
25
25
  }),
26
26
  emits: ["update:modelValue"],
27
- setup(z) {
28
- var C, A;
29
- const a = z, { t: L } = Y(), n = D(z, "modelValue"), k = !!((A = (C = G()) == null ? void 0 : C.proxy) != null && A.$inertia), u = Z(), p = 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--, N(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), N(S)));
27
+ setup(M) {
28
+ const a = M, { t: z } = H(), n = U(M, "modelValue"), p = J(), u = d(() => +a.totalPages), c = f(1), s = f(+a.maxSize), v = f(), g = f(), L = f(1 / 0), k = () => {
29
+ v.value && g.value && (v.value.clientWidth < g.value.clientWidth ? s.value - 1 > 3 ? (s.value--, C(k)) : s.value = 3 : s.value < +a.maxSize && /* If there is enough space to fit one */
30
+ v.value.clientWidth - g.value.clientWidth > L.value && (s.value = Math.min(s.value + 1, +a.maxSize), C(k)));
32
31
  };
33
32
  if (globalThis.ResizeObserver) {
34
- const e = new ResizeObserver(Q(S, 200));
35
- O(() => {
36
- if (c.value && b.value) {
37
- const l = c.value.querySelectorAll(
33
+ const e = new ResizeObserver(X(k, 200));
34
+ F(() => {
35
+ if (v.value && g.value) {
36
+ const l = v.value.querySelectorAll(
38
37
  ".bb-pagination__page"
39
38
  )[1];
40
39
  if (l) {
41
- const o = getComputedStyle(b.value).columnGap.replaceAll(/\D/g, ""), i = Number(o);
42
- B.value = l.clientWidth + i;
40
+ const o = getComputedStyle(g.value).columnGap.replaceAll(/\D/g, ""), i = Number(o);
41
+ L.value = l.clientWidth + i;
43
42
  }
44
- e.observe(c.value);
43
+ e.observe(v.value);
45
44
  }
46
- }), j(() => {
45
+ }), D(() => {
47
46
  e.disconnect();
48
47
  });
49
48
  }
50
- const E = d(() => {
51
- if (p.value <= 0 || isNaN(p.value) || p.value > Number.MAX_SAFE_INTEGER)
49
+ const R = d(() => {
50
+ if (u.value <= 0 || isNaN(u.value) || u.value > Number.MAX_SAFE_INTEGER)
52
51
  return [];
53
52
  if (s.value <= 1) return [n.value];
54
- if (p.value <= s.value)
55
- return y(p.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 = p.value - l;
53
+ if (u.value <= s.value)
54
+ return h(u.value, c.value);
55
+ const e = s.value % 2 === 0, l = e ? s.value / 2 : Math.floor(s.value / 2), t = e ? l : l + 1, o = u.value - l;
57
56
  if (t - n.value >= 0)
58
57
  return [
59
- ...y(Math.max(1, s.value - 1), g.value),
58
+ ...h(Math.max(1, s.value - 1), c.value),
60
59
  a.ellipsis,
61
- p.value
60
+ u.value
62
61
  ];
63
62
  if (n.value - o >= (e ? 1 : 0)) {
64
- const i = s.value - 1, v = p.value - i + g.value;
63
+ const i = s.value - 1, b = u.value - i + c.value;
65
64
  return [
66
- g.value,
65
+ c.value,
67
66
  a.ellipsis,
68
- ...y(i, v)
67
+ ...h(i, b)
69
68
  ];
70
69
  } else {
71
- const i = Math.max(1, s.value - 3), v = i === 1 ? n.value : n.value - Math.ceil(i / 2) + g.value;
70
+ const i = Math.max(1, s.value - 3), b = i === 1 ? n.value : n.value - Math.ceil(i / 2) + c.value;
72
71
  return [
73
- g.value,
72
+ c.value,
74
73
  a.ellipsis,
75
- ...y(i, v),
74
+ ...h(i, b),
76
75
  a.ellipsis,
77
- p.value
76
+ u.value
78
77
  ];
79
78
  }
80
- }), T = d(() => E.value.map((e, l) => typeof e == "string" ? {
79
+ }), N = d(() => R.value.map((e, l) => typeof e == "string" ? {
81
80
  active: !1,
82
81
  key: `ellipsis-${l}`,
83
82
  page: e,
@@ -89,8 +88,8 @@ const ee = ["aria-label"], ae = { class: "bb-pagination__page-label sr-only" },
89
88
  page: e,
90
89
  ellipsis: !1,
91
90
  disabled: !!a.disabled || +a.totalPages < 2 || a.loading
92
- })), y = (e, l = 0) => Array.from({ length: e }, (t, o) => l + o), V = d(() => {
93
- var l, t, o;
91
+ })), h = (e, l = 0) => Array.from({ length: e }, (t, o) => l + o), $ = d(() => {
92
+ var l, t;
94
93
  const e = {
95
94
  disabled: n.value <= 1 || a.loading || a.disabled,
96
95
  onClick: () => {
@@ -99,19 +98,20 @@ const ee = ["aria-label"], ae = { class: "bb-pagination__page-label sr-only" },
99
98
  class: "bb-pagination__page bb-pagination__page--previous"
100
99
  };
101
100
  if (a.navigation) {
102
- const i = (n.value - 1).toString();
103
- if (k) {
104
- const v = new URL(globalThis.location.href);
105
- v.searchParams.set(a.querykey, i), e.href = v.toString();
106
- } else u.value && (e.to = {
107
- path: (l = u.value) == null ? void 0 : l.path,
108
- params: (t = u.value) == null ? void 0 : t.params,
109
- query: { ...(o = u.value) == null ? void 0 : o.query, [a.querykey]: i }
110
- }, e.replace = a.replace);
101
+ const o = (n.value - 1).toString();
102
+ if (p.value)
103
+ e.to = {
104
+ path: (l = p.value) == null ? void 0 : l.path,
105
+ query: { ...(t = p.value) == null ? void 0 : t.query, [a.querykey]: o }
106
+ }, e.replace = a.replace;
107
+ else {
108
+ const i = new URL(globalThis.location.href);
109
+ i.searchParams.set(a.querykey, o), e.href = i.toString();
110
+ }
111
111
  }
112
112
  return e;
113
- }), W = (e) => {
114
- var t;
113
+ }), E = (e) => {
114
+ var t, o;
115
115
  const l = {
116
116
  class: ["bb-pagination__page"],
117
117
  disabled: e.disabled,
@@ -120,42 +120,45 @@ const ee = ["aria-label"], ae = { class: "bb-pagination__page-label sr-only" },
120
120
  }
121
121
  };
122
122
  if (e.active && l.class.push("bb-pagination__page--active"), e.ellipsis && l.class.push("bb-pagination__page--ellipsis"), a.navigation) {
123
- const o = e.key.toString();
124
- if (k) {
125
- const i = new URL(globalThis.location.href);
126
- i.searchParams.set(a.querykey, o), l.href = i.toString();
127
- } else u.value && (l.to = {
128
- ...u.value,
129
- query: { ...(t = u.value) == null ? void 0 : t.query, [a.querykey]: o }
130
- }, l.replace = a.replace);
123
+ const i = e.key.toString();
124
+ if (p.value)
125
+ l.to = {
126
+ path: (t = p.value) == null ? void 0 : t.path,
127
+ query: { ...(o = p.value) == null ? void 0 : o.query, [a.querykey]: i }
128
+ }, l.replace = a.replace;
129
+ else {
130
+ const b = new URL(globalThis.location.href);
131
+ b.searchParams.set(a.querykey, i), l.href = b.toString();
132
+ }
131
133
  }
132
134
  return l;
133
- }, I = d(() => {
134
- var l, t, o;
135
+ }, T = d(() => {
136
+ var l, t;
135
137
  const e = {
136
- disabled: n.value >= p.value || a.loading || a.disabled,
138
+ disabled: n.value >= u.value || a.loading || a.disabled,
137
139
  onClick: () => {
138
- n.value < p.value && (n.value = n.value + 1);
140
+ n.value < u.value && (n.value = n.value + 1);
139
141
  },
140
142
  class: "bb-pagination__page bb-pagination__page--next"
141
143
  };
142
144
  if (a.navigation) {
143
- const i = (n.value + 1).toString();
144
- if (k) {
145
- const v = new URL(globalThis.location.href);
146
- v.searchParams.set(a.querykey, i), e.href = v.toString();
147
- } else u.value && (e.to = {
148
- path: (l = u.value) == null ? void 0 : l.path,
149
- params: (t = u.value) == null ? void 0 : t.params,
150
- query: { ...(o = u.value) == null ? void 0 : o.query, [a.querykey]: i }
151
- }, e.replace = a.replace);
145
+ const o = (n.value + 1).toString();
146
+ if (p.value)
147
+ e.to = {
148
+ path: (l = p.value) == null ? void 0 : l.path,
149
+ query: { ...(t = p.value) == null ? void 0 : t.query, [a.querykey]: o }
150
+ }, e.replace = a.replace;
151
+ else {
152
+ const i = new URL(globalThis.location.href);
153
+ i.searchParams.set(a.querykey, o), e.href = i.toString();
154
+ }
152
155
  }
153
156
  return e;
154
157
  });
155
- return (e, l) => (w(), x("div", {
158
+ return (e, l) => (S(), w("div", {
156
159
  ref_key: "outercontainer",
157
- ref: c,
158
- class: X(["bb-pagination", {
160
+ ref: v,
161
+ class: G(["bb-pagination", {
159
162
  [`bb-pagination--${e.align}`]: !0,
160
163
  "bb-pagination--disabled": e.disabled
161
164
  }])
@@ -163,14 +166,14 @@ const ee = ["aria-label"], ae = { class: "bb-pagination__page-label sr-only" },
163
166
  r("nav", { "aria-label": e.label }, [
164
167
  r("ul", {
165
168
  ref_key: "innercontainer",
166
- ref: b,
169
+ ref: g,
167
170
  class: "bb-pagination__pages"
168
171
  }, [
169
172
  r("li", null, [
170
- P(m(M), R($(V.value)), {
171
- default: q(() => [
172
- _(e.$slots, "previous", {}, () => [
173
- r("span", ae, h(m(L)("pagination.previous").value), 1),
173
+ q(y(P), B(A($.value)), {
174
+ default: x(() => [
175
+ m(e.$slots, "previous", {}, () => [
176
+ r("span", Q, _(y(z)("pagination.previous").value), 1),
174
177
  l[0] || (l[0] = r("svg", {
175
178
  class: "bb-pagination__page-chevron",
176
179
  viewBox: "0 0 24 24",
@@ -186,30 +189,30 @@ const ee = ["aria-label"], ae = { class: "bb-pagination__page-label sr-only" },
186
189
  _: 3
187
190
  }, 16)
188
191
  ]),
189
- (w(!0), x(H, null, J(T.value, (t) => (w(), x("li", {
192
+ (S(!0), w(I, null, O(N.value, (t) => (S(), w("li", {
190
193
  key: t.key
191
194
  }, [
192
- P(m(M), K({ ref_for: !0 }, W(t)), {
193
- default: q(() => [
194
- t.ellipsis === !0 ? _(e.$slots, "ellipsis", { key: 0 }, () => [
195
- r("span", le, h(a.ellipsis), 1)
196
- ]) : _(e.$slots, "item", {
195
+ q(y(P), j({ ref_for: !0 }, E(t)), {
196
+ default: x(() => [
197
+ t.ellipsis === !0 ? m(e.$slots, "ellipsis", { key: 0 }, () => [
198
+ r("span", Y, _(a.ellipsis), 1)
199
+ ]) : m(e.$slots, "item", {
197
200
  key: 1,
198
201
  active: t.active,
199
202
  disabled: t.disabled,
200
203
  item: t.key
201
204
  }, () => [
202
- r("span", te, h(t.key), 1)
205
+ r("span", Z, _(t.key), 1)
203
206
  ])
204
207
  ]),
205
208
  _: 2
206
209
  }, 1040)
207
210
  ]))), 128)),
208
211
  r("li", null, [
209
- P(m(M), R($(I.value)), {
210
- default: q(() => [
211
- _(e.$slots, "next", {}, () => [
212
- r("span", ne, h(m(L)("pagination.next").value), 1),
212
+ q(y(P), B(A(T.value)), {
213
+ default: x(() => [
214
+ m(e.$slots, "next", {}, () => [
215
+ r("span", ee, _(y(z)("pagination.next").value), 1),
213
216
  l[1] || (l[1] = r("svg", {
214
217
  class: "bb-pagination__page-chevron",
215
218
  viewBox: "0 0 24 24",
@@ -226,10 +229,10 @@ const ee = ["aria-label"], ae = { class: "bb-pagination__page-label sr-only" },
226
229
  }, 16)
227
230
  ])
228
231
  ], 512)
229
- ], 8, ee)
232
+ ], 8, K)
230
233
  ], 2));
231
234
  }
232
235
  });
233
236
  export {
234
- ge as default
237
+ ue as default
235
238
  };
package/dist/index88.js CHANGED
@@ -1,14 +1,14 @@
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 "./index208.js";
2
+ import { useFocusTrap as j } from "./index209.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 "./index219.js";
5
+ import { waitFor as K } from "./index245.js";
6
6
  import Q from "./index13.js";
7
7
  /* empty css */
8
- import U from "./index210.js";
8
+ import U from "./index211.js";
9
9
  /* empty css */
10
- import { useLocale as X } from "./index217.js";
11
- import { useDebounceFn as Y } from "./index254.js";
10
+ import { useLocale as X } from "./index218.js";
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",
14
14
  props: {
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 "./index249.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.164",
3
+ "version": "2.0.165",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
package/dist/index216.js DELETED
@@ -1,15 +0,0 @@
1
- import { openBlock as t, createElementBlock as n, renderSlot as e } from "vue";
2
- /* empty css */
3
- import r from "./index280.js";
4
- const s = {}, c = { class: "bb-common-input-outer-container" };
5
- function p(o, a) {
6
- return t(), n("span", c, [
7
- e(o.$slots, "prepend-outer"),
8
- e(o.$slots, "default"),
9
- e(o.$slots, "append-outer")
10
- ]);
11
- }
12
- const i = /* @__PURE__ */ r(s, [["render", p]]);
13
- export {
14
- i as default
15
- };
package/dist/index236.js DELETED
@@ -1,18 +0,0 @@
1
- import { getDefaultExportFromCjs as i, commonjsGlobal as n } from "./index291.js";
2
- import { __module as t } from "./index294.js";
3
- (function(s, a) {
4
- (function(f, o) {
5
- s.exports = o();
6
- })(n, function() {
7
- return function(f, o) {
8
- o.prototype.isSameOrBefore = function(e, r) {
9
- return this.isSame(e, r) || this.isBefore(e, r);
10
- };
11
- };
12
- });
13
- })(t);
14
- var m = t.exports;
15
- const c = /* @__PURE__ */ i(m);
16
- export {
17
- c as default
18
- };
package/dist/index323.js DELETED
@@ -1,10 +0,0 @@
1
- const i = (r, s, a) => {
2
- const t = a / 100, c = s * Math.min(t, 1 - t) / 100, n = (h) => {
3
- const o = (h + r / 30) % 12, e = t - c * Math.max(Math.min(o - 3, 9 - o, 1), -1);
4
- return Math.round(255 * e).toString(16).padStart(2, "0");
5
- };
6
- return `#${n(0)}${n(8)}${n(4)}`;
7
- };
8
- export {
9
- i as hslToHex
10
- };
File without changes
File without changes