bitboss-ui 2.0.31 → 2.0.32

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 (142) hide show
  1. package/dist/index104.js +46 -50
  2. package/dist/index106.js +5 -5
  3. package/dist/index114.js +1 -1
  4. package/dist/index116.js +5 -5
  5. package/dist/index118.js +1 -1
  6. package/dist/index122.js +1 -1
  7. package/dist/index123.js +1 -1
  8. package/dist/index124.js +1 -1
  9. package/dist/index126.js +1 -1
  10. package/dist/index128.js +91 -87
  11. package/dist/index129.js +1 -1
  12. package/dist/index13.js +1 -1
  13. package/dist/index15.js +3 -3
  14. package/dist/index17.js +2 -2
  15. package/dist/index19.js +14 -14
  16. package/dist/index198.js +2 -81
  17. package/dist/index199.js +115 -2
  18. package/dist/index200.js +5 -2
  19. package/dist/index201.js +16 -4
  20. package/dist/index202.js +16 -2
  21. package/dist/index203.js +19 -8
  22. package/dist/index204.js +19 -3
  23. package/dist/index205.js +27 -3
  24. package/dist/index206.js +3 -35
  25. package/dist/index207.js +2 -6
  26. package/dist/index208.js +8 -7
  27. package/dist/index209.js +245 -277
  28. package/dist/index21.js +15 -15
  29. package/dist/index210.js +51 -15
  30. package/dist/index211.js +44 -16
  31. package/dist/index212.js +5 -19
  32. package/dist/index213.js +49 -19
  33. package/dist/index214.js +156 -25
  34. package/dist/index215.js +84 -3
  35. package/dist/index217.js +3 -249
  36. package/dist/index218.js +35 -52
  37. package/dist/index219.js +5 -43
  38. package/dist/index220.js +7 -5
  39. package/dist/index221.js +3 -49
  40. package/dist/index222.js +2 -126
  41. package/dist/index223.js +4 -123
  42. package/dist/index224.js +2 -2
  43. package/dist/index225.js +43 -174
  44. package/dist/index227.js +15 -0
  45. package/dist/index228.js +126 -13
  46. package/dist/index229.js +123 -5
  47. package/dist/index23.js +5 -5
  48. package/dist/index230.js +2 -369
  49. package/dist/index231.js +168 -152
  50. package/dist/index232.js +5 -84
  51. package/dist/index233.js +371 -0
  52. package/dist/index234.js +2 -2
  53. package/dist/index235.js +2 -18
  54. package/dist/index236.js +17 -105
  55. package/dist/index237.js +108 -0
  56. package/dist/{index238.js → index239.js} +1 -1
  57. package/dist/index243.js +281 -3
  58. package/dist/index244.js +6 -9
  59. package/dist/index245.js +2 -23
  60. package/dist/index246.js +2 -6
  61. package/dist/index247.js +2 -16
  62. package/dist/index248.js +2 -9
  63. package/dist/index249.js +2 -4
  64. package/dist/index25.js +1 -1
  65. package/dist/index250.js +2 -224
  66. package/dist/index251.js +2 -431
  67. package/dist/index252.js +2 -89
  68. package/dist/index253.js +2 -2
  69. package/dist/index254.js +2 -9
  70. package/dist/index255.js +27 -5
  71. package/dist/index256.js +22 -2
  72. package/dist/index258.js +7 -2
  73. package/dist/index259.js +3 -2
  74. package/dist/index260.js +12 -2
  75. package/dist/index261.js +9 -2
  76. package/dist/index262.js +9 -2
  77. package/dist/index263.js +17 -2
  78. package/dist/index264.js +224 -2
  79. package/dist/index265.js +431 -2
  80. package/dist/index266.js +85 -24
  81. package/dist/index267.js +4 -22
  82. package/dist/index268.js +8 -0
  83. package/dist/index269.js +16 -7
  84. package/dist/index27.js +3 -3
  85. package/dist/index270.js +3 -200
  86. package/dist/index271.js +8 -65
  87. package/dist/index272.js +23 -5
  88. package/dist/index273.js +9 -2
  89. package/dist/index274.js +196 -122
  90. package/dist/index275.js +1 -1
  91. package/dist/index277.js +2 -22
  92. package/dist/index278.js +128 -0
  93. package/dist/index279.js +22 -3
  94. package/dist/index281.js +434 -7
  95. package/dist/index282.js +126 -16
  96. package/dist/index283.js +3 -436
  97. package/dist/index284.js +3 -127
  98. package/dist/index285.js +211 -3
  99. package/dist/index286.js +2 -3
  100. package/dist/index287.js +15 -211
  101. package/dist/index288.js +5 -79
  102. package/dist/index29.js +2 -2
  103. package/dist/index290.js +7 -4
  104. package/dist/index291.js +19 -4
  105. package/dist/index292.js +64 -57
  106. package/dist/index293.js +10 -14
  107. package/dist/index294.js +4 -2
  108. package/dist/index295.js +4 -7
  109. package/dist/index296.js +57 -17
  110. package/dist/index297.js +79 -11
  111. package/dist/index299.js +34 -46
  112. package/dist/index300.js +46 -34
  113. package/dist/index301.js +2 -480
  114. package/dist/index302.js +482 -0
  115. package/dist/index304.js +416 -42
  116. package/dist/index305.js +47 -2
  117. package/dist/index31.js +2 -2
  118. package/dist/index33.js +3 -3
  119. package/dist/index35.js +13 -13
  120. package/dist/index37.js +4 -4
  121. package/dist/index39.js +2 -2
  122. package/dist/index41.js +2 -2
  123. package/dist/index43.js +6 -6
  124. package/dist/index45.js +2 -2
  125. package/dist/index47.js +2 -2
  126. package/dist/index53.js +1 -1
  127. package/dist/index55.js +1 -1
  128. package/dist/index71.js +3 -3
  129. package/dist/index75.js +2 -2
  130. package/dist/index77.js +1 -1
  131. package/dist/index80.js +2 -2
  132. package/dist/index82.js +1 -1
  133. package/dist/index84.js +3 -3
  134. package/dist/index86.js +1 -1
  135. package/package.json +1 -1
  136. package/dist/index216.js +0 -4
  137. package/dist/index226.js +0 -45
  138. package/dist/index240.js +0 -4
  139. package/dist/index280.js +0 -14
  140. package/dist/index303.js +0 -423
  141. /package/dist/{index298.js → index289.js} +0 -0
  142. /package/dist/{index257.js → index306.js} +0 -0
package/dist/index104.js CHANGED
@@ -1,15 +1,15 @@
1
- import { defineComponent as ae, ref as u, computed as _, getCurrentInstance as se, watch as h, nextTick as ie, onMounted as ne, onBeforeUnmount as re, openBlock as b, createElementBlock as y, unref as oe, normalizeClass as x, createElementVNode as c, renderSlot as m, normalizeProps as M, guardReactiveProps as O, normalizeStyle as ue, Fragment as j, renderList as G, createVNode as Q, withCtx as T, toDisplayString as de, createBlock as ce, Transition as be, createCommentVNode as fe } from "vue";
2
- import { useId as he } from "./index8.js";
3
- import { useRoute as ye } from "./index132.js";
4
- import { useRouter as me } from "./index133.js";
5
- import { wait as ve } from "./index127.js";
6
- import { useScroll as pe } from "./index128.js";
1
+ import { defineComponent as ae, ref as u, computed as _, getCurrentInstance as se, watch as h, nextTick as ie, onMounted as ne, openBlock as b, createElementBlock as y, unref as re, normalizeClass as x, createElementVNode as c, renderSlot as m, normalizeProps as J, guardReactiveProps as M, normalizeStyle as oe, Fragment as O, renderList as j, createVNode as G, withCtx as T, toDisplayString as ue, createBlock as de, Transition as ce, createCommentVNode as be } from "vue";
2
+ import { useId as fe } from "./index8.js";
3
+ import { useRoute as he } from "./index132.js";
4
+ import { useRouter as ye } from "./index133.js";
5
+ import { wait as me } from "./index127.js";
6
+ import { useScroll as ve, useWindowSize as pe } from "./index128.js";
7
7
  import ke from "./index13.js";
8
8
  /* empty css */
9
9
  import ge from "./index123.js";
10
10
  /* empty css */
11
- import { useDebounceFn as _e } from "./index198.js";
12
- const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-tab__label" }, Se = { class: "bb-tab__panes-container" }, xe = ["id", "aria-labelledby"], Fe = /* @__PURE__ */ ae({
11
+ import { debouncedWatch as _e } from "./index199.js";
12
+ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, Se = { class: "bb-tab__label" }, qe = { class: "bb-tab__panes-container" }, xe = ["id", "aria-labelledby"], Fe = /* @__PURE__ */ ae({
13
13
  __name: "BbTab",
14
14
  props: {
15
15
  disabled: { type: Boolean },
@@ -24,21 +24,21 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
24
24
  replace: { type: Boolean }
25
25
  },
26
26
  emits: ["update:modelValue"],
27
- setup(X, { expose: Y, emit: Z }) {
28
- var F, N, U, A, H, K, W;
29
- const t = X, ee = Z, d = ye(), w = me(), $ = u(), L = t.id ?? he().id.value, v = `bb-tab_${L}`, p = u(), { isScrolling: te, arrivedState: I } = pe(p), B = _(() => ({
30
- isScrolling: te.value,
31
- left: I.left,
32
- right: I.right
33
- })), V = !!((N = (F = se()) == null ? void 0 : F.proxy) != null && N.$inertia), s = u(null), r = _(
27
+ setup(Q, { expose: X, emit: Y }) {
28
+ var z, F, N, A, H, U, W;
29
+ const t = Q, Z = Y, d = he(), w = ye(), $ = u(), I = t.id ?? fe().id.value, v = `bb-tab_${I}`, p = u(), { isScrolling: ee, arrivedState: L } = ve(p), V = _(() => ({
30
+ isScrolling: ee.value,
31
+ left: L.left,
32
+ right: L.right
33
+ })), B = !!((F = (z = se()) == null ? void 0 : z.proxy) != null && F.$inertia), s = u(null), r = _(
34
34
  () => t.items.findIndex((e) => e.key === s.value)
35
35
  ), k = _(() => r.value === 0), g = _(() => r.value === t.items.length - 1);
36
36
  if (t.items.forEach((e) => {
37
37
  if (!e.key)
38
38
  throw console.error("A tab item has no key", e), new Error("A tab item has no key " + JSON.stringify(e));
39
- }), t.navigation && ((A = (U = d.value) == null ? void 0 : U.query) != null && A[t.querykey]))
40
- s.value = (K = (H = d.value) == null ? void 0 : H.query) == null ? void 0 : K[t.querykey];
41
- else if (t.navigation && V && ((W = globalThis == null ? void 0 : globalThis.location) != null && W.href) && new URL(globalThis.location.href).searchParams.get(t.querykey))
39
+ }), t.navigation && ((A = (N = d.value) == null ? void 0 : N.query) != null && A[t.querykey]))
40
+ s.value = (U = (H = d.value) == null ? void 0 : H.query) == null ? void 0 : U[t.querykey];
41
+ else if (t.navigation && B && ((W = globalThis == null ? void 0 : globalThis.location) != null && W.href) && new URL(globalThis.location.href).searchParams.get(t.querykey))
42
42
  s.value = new URL(globalThis.location.href).searchParams.get(
43
43
  t.querykey
44
44
  );
@@ -54,20 +54,20 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
54
54
  s.value = a;
55
55
  }
56
56
  const f = async (e, a = !1) => {
57
- var l, n, i, J;
57
+ var l, n, i, K;
58
58
  if (t.navigation && d.value && ((n = (l = d.value) == null ? void 0 : l.query) == null ? void 0 : n[t.querykey]) !== e)
59
59
  w == null || w.push({
60
60
  ...d,
61
61
  query: { ...(i = d.value) == null ? void 0 : i.query, [t.querykey]: e },
62
62
  replace: a
63
63
  });
64
- else if (t.navigation && V && ((J = globalThis == null ? void 0 : globalThis.location) != null && J.href) && new URL(globalThis.location.href).searchParams.get(t.querykey) !== e) {
65
- const S = new URL(globalThis.location.href);
66
- S.searchParams.set(t.querykey, e), ve(0).then(() => {
67
- a ? history.replaceState({}, "", S.toString()) : history.pushState({}, "", S.toString());
64
+ else if (t.navigation && B && ((K = globalThis == null ? void 0 : globalThis.location) != null && K.href) && new URL(globalThis.location.href).searchParams.get(t.querykey) !== e) {
65
+ const q = new URL(globalThis.location.href);
66
+ q.searchParams.set(t.querykey, e), me(0).then(() => {
67
+ a ? history.replaceState({}, "", q.toString()) : history.pushState({}, "", q.toString());
68
68
  });
69
69
  }
70
- t.modelValue !== e && ee("update:modelValue", e), s.value = e;
70
+ t.modelValue !== e && Z("update:modelValue", e), s.value = e;
71
71
  };
72
72
  s.value && f(s.value, !0);
73
73
  const o = (e) => {
@@ -101,7 +101,7 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
101
101
  `#${v}_tab_${l}`
102
102
  );
103
103
  n == null || n.focus(), f(l, t.replace);
104
- }, le = (e) => {
104
+ }, te = (e) => {
105
105
  if (!t.disabled)
106
106
  if (e.key === "ArrowRight")
107
107
  o("next");
@@ -154,27 +154,23 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
154
154
  },
155
155
  { flush: "sync" }
156
156
  );
157
- const E = u(0), R = u(0), z = u(0), P = u(0), q = () => {
157
+ const R = u(0), E = u(0), P = u(0), D = u(0), S = () => {
158
158
  if (!p.value) return;
159
159
  const e = p.value.querySelector(
160
160
  ".bb-tab__btn--active"
161
161
  );
162
- e && (z.value = e.offsetLeft, P.value = e.offsetTop, E.value = e.clientWidth, R.value = e.clientHeight);
162
+ e && (P.value = e.offsetLeft, D.value = e.offsetTop, R.value = e.clientWidth, E.value = e.clientHeight);
163
163
  };
164
- ne(() => {
165
- q(), document.addEventListener("resize", D, { passive: !0 });
166
- }), re(() => {
167
- document.removeEventListener("resize", D, { passive: !0 });
168
- }), h(s, q, { flush: "post" });
169
- const D = _e(q, 200);
170
- return Y({
164
+ ne(S), h(s, S, { flush: "post" });
165
+ const { width: le } = pe();
166
+ return _e(le, S, { debounce: 200 }), X({
171
167
  isFirst: k,
172
168
  isLast: g,
173
169
  current: s,
174
170
  currentIndex: r,
175
171
  goTo: o
176
172
  }), (e, a) => (b(), y("div", {
177
- id: oe(L),
173
+ id: re(I),
178
174
  ref_key: "tabs",
179
175
  ref: $,
180
176
  class: x(["bb-tab", {
@@ -184,7 +180,7 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
184
180
  }, [
185
181
  c("div", $e, [
186
182
  c("span", null, [
187
- m(e.$slots, "header:prepend", M(O(B.value)))
183
+ m(e.$slots, "header:prepend", J(M(V.value)))
188
184
  ]),
189
185
  c("ul", {
190
186
  ref_key: "tablist",
@@ -194,18 +190,18 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
194
190
  }, [
195
191
  c("span", {
196
192
  class: "bb-tab__highlight",
197
- style: ue({
198
- "--width": `${E.value}px`,
199
- "--height": `${R.value}px`,
200
- "--left": `${z.value}px`,
201
- "--top": `${P.value}px`
193
+ style: oe({
194
+ "--width": `${R.value}px`,
195
+ "--height": `${E.value}px`,
196
+ "--left": `${P.value}px`,
197
+ "--top": `${D.value}px`
202
198
  })
203
199
  }, null, 4),
204
- (b(!0), y(j, null, G(e.items, (l) => (b(), y("li", {
200
+ (b(!0), y(O, null, j(e.items, (l) => (b(), y("li", {
205
201
  key: l.key,
206
202
  role: "presentation"
207
203
  }, [
208
- Q(ke, {
204
+ G(ke, {
209
205
  id: `${v}_tab_${l.key}`,
210
206
  "aria-selected": s.value === l.key,
211
207
  class: x(["bb-tab__btn", { "bb-tab__btn--active": s.value === l.key }]),
@@ -213,7 +209,7 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
213
209
  role: "tab",
214
210
  tabindex: s.value === l.key ? 0 : -1,
215
211
  onClick: (n) => f(l.key, t.replace),
216
- onKeydown: le
212
+ onKeydown: te
217
213
  }, {
218
214
  default: T(() => [
219
215
  m(e.$slots, `label-${l.key}`, {
@@ -238,7 +234,7 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
238
234
  text: l.label,
239
235
  value: l.key
240
236
  }, () => [
241
- c("span", qe, de(l.label), 1)
237
+ c("span", Se, ue(l.label), 1)
242
238
  ])
243
239
  ])
244
240
  ]),
@@ -247,13 +243,13 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
247
243
  ]))), 128))
248
244
  ], 512),
249
245
  c("span", null, [
250
- m(e.$slots, "header:append", M(O(B.value)))
246
+ m(e.$slots, "header:append", J(M(V.value)))
251
247
  ])
252
248
  ]),
253
- c("div", Se, [
254
- Q(ge, null, {
249
+ c("div", qe, [
250
+ G(ge, null, {
255
251
  default: T(() => [
256
- (b(!0), y(j, null, G(e.items, (l) => (b(), ce(be, {
252
+ (b(!0), y(O, null, j(e.items, (l) => (b(), de(ce, {
257
253
  key: l.key,
258
254
  css: e.animate,
259
255
  name: `tab-slide-${C.value}`
@@ -280,7 +276,7 @@ const we = ["id"], $e = { class: "bb-tab__label-boundary" }, qe = { class: "bb-t
280
276
  text: l.label,
281
277
  value: l.key
282
278
  })
283
- ], 10, xe)) : fe("", !0)
279
+ ], 10, xe)) : be("", !0)
284
280
  ]),
285
281
  _: 2
286
282
  }, 1032, ["css", "name"]))), 128))
package/dist/index106.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as oe, ref as x, computed as h, toRef as B, watch as ne, openBlock as n, createBlock as de, resolveDynamicComponent as ce, normalizeClass as r, unref as u, withCtx as ie, createElementBlock as d, toDisplayString as p, createCommentVNode as k, createElementVNode as s, renderSlot as f, createVNode as I, Fragment as w, renderList as T, createTextVNode as be, mergeProps as re } from "vue";
2
- import { add as ue } from "./index253.js";
3
- import { clamp as pe } from "./index199.js";
2
+ import { add as ue } from "./index286.js";
3
+ import { clamp as pe } from "./index198.js";
4
4
  import { isNil as M } from "./index125.js";
5
5
  import { useId as fe } from "./index8.js";
6
- import { useItemValue as me } from "./index254.js";
7
- import { when as he } from "./index201.js";
6
+ import { useItemValue as me } from "./index262.js";
7
+ import { when as he } from "./index223.js";
8
8
  import J from "./index15.js";
9
9
  /* empty css */
10
10
  import ye from "./index29.js";
11
11
  /* empty css */
12
- import { useOptions as _e } from "./index231.js";
12
+ import { useOptions as _e } from "./index214.js";
13
13
  const ke = {
14
14
  key: 0,
15
15
  class: "sr-only"
package/dist/index114.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as s, openBlock as e, createBlock as o, Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as f, Fragment as d, renderList as _, unref as r, mergeProps as b } from "vue";
2
2
  import { state as k, useToast as C } from "./index11.js";
3
- import B from "./index271.js";
3
+ import B from "./index292.js";
4
4
  const N = /* @__PURE__ */ s({
5
5
  __name: "BbToast",
6
6
  props: {
package/dist/index116.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as z, defineAsyncComponent as A, ref as a, computed as _, watch as I, openBlock as b, createElementBlock as R, mergeProps as U, createElementVNode as c, renderSlot as D, normalizeProps as W, guardReactiveProps as j, unref as u, createBlock as L, withCtx as $, createCommentVNode as M } from "vue";
2
- import { useFloating as q, arrow as G } from "./index222.js";
2
+ import { useFloating as q, arrow as G } from "./index228.js";
3
3
  import { useId as J } from "./index8.js";
4
4
  import { wait as P } from "./index127.js";
5
5
  import K from "./index13.js";
6
6
  /* empty css */
7
- import { throttle as w } from "./index205.js";
8
- import { waitFor as Q } from "./index207.js";
9
- import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index230.js";
7
+ import { throttle as w } from "./index217.js";
8
+ import { waitFor as Q } from "./index219.js";
9
+ import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index233.js";
10
10
  const ee = /* @__PURE__ */ c("svg", {
11
11
  fill: "none",
12
12
  viewBox: "0 0 24 24",
@@ -35,7 +35,7 @@ const ee = /* @__PURE__ */ c("svg", {
35
35
  },
36
36
  setup(F) {
37
37
  const O = A(
38
- () => import("./index243.js")
38
+ () => import("./index270.js")
39
39
  ), t = F, g = `bb_${t.id ?? J().id.value}`, s = a(), d = a(), T = a(), { floatingStyles: te, placement: h, middlewareData: f } = q(
40
40
  s,
41
41
  d,
package/dist/index118.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
2
- import { flattenTree as T } from "./index272.js";
2
+ import { flattenTree as T } from "./index288.js";
3
3
  const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
4
4
  __name: "BbTree",
5
5
  props: {
package/dist/index122.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, getCurrentInstance as d, inject as x, computed as l, ref as y, watchEffect as z, openBlock as _, createElementBlock as b, mergeProps as h } from "vue";
2
- import { isCssColor as w } from "./index200.js";
2
+ import { isCssColor as w } from "./index222.js";
3
3
  const g = ["innerHTML"], $ = /* @__PURE__ */ m({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index123.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
2
- import { throttle as g } from "./index205.js";
2
+ import { throttle as g } from "./index217.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index124.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as l, openBlock as _, createElementBlock as a, normalizeProps as b, guardReactiveProps as x, createStaticVNode as m } from "vue";
2
- import { isCssColor as u } from "./index200.js";
2
+ import { isCssColor as u } from "./index222.js";
3
3
  const y = /* @__PURE__ */ m('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle class="bb-spinner__circle" cx="12" cy="3" r="0"></circle><circle class="bb-spinner__circle circle--1" cx="16.50" cy="4.21" r="0"></circle><circle class="bb-spinner__circle circle--2" cx="7.50" cy="4.21" r="0"></circle><circle class="bb-spinner__circle circle--3" cx="19.79" cy="7.50" r="0"></circle><circle class="bb-spinner__circle circle--4" cx="4.21" cy="7.50" r="0"></circle><circle class="bb-spinner__circle circle--5" cx="21.00" cy="12.00" r="0"></circle><circle class="bb-spinner__circle circle--6" cx="3.00" cy="12.00" r="0"></circle><circle class="bb-spinner__circle circle--7" cx="19.79" cy="16.50" r="0"></circle><circle class="bb-spinner__circle circle--8" cx="4.21" cy="16.50" r="0"></circle><circle class="bb-spinner__circle circle--9" cx="16.50" cy="19.79" r="0"></circle><circle class="bb-spinner__circle circle--10" cx="7.50" cy="19.79" r="0"></circle><circle class="bb-spinner__circle circle--11" cx="12" cy="21" r="0"></circle></svg>', 1), d = [
4
4
  y
5
5
  ], g = /* @__PURE__ */ p({
package/dist/index126.js CHANGED
@@ -1,4 +1,4 @@
1
- import { clamp as o } from "./index199.js";
1
+ import { clamp as o } from "./index198.js";
2
2
  const r = (t, e) => t * 100 / e, p = (t, e) => t / 100 * e, l = (t, e, n) => r(t - e, n - e), P = ({
3
3
  value: t = 0,
4
4
  originalBounds: e,
package/dist/index128.js CHANGED
@@ -1,27 +1,27 @@
1
- import { toValue as S, notNullish as $, noop as _, tryOnScopeDispose as R, useDebounceFn as q, useThrottleFn as G, tryOnMounted as Q, isClient as J, isObject as K } from "./index198.js";
2
- import { createFilterWrapper as fe, debounceFilter as ve, getLifeCycleTarget as de, throttleFilter as me } from "./index198.js";
3
- import { computed as O, ref as T, watch as V, reactive as k, getCurrentInstance as U, onMounted as Z, watchEffect as ee } from "vue";
4
- function F(l) {
1
+ import { toValue as S, notNullish as $, noop as _, tryOnScopeDispose as R, useDebounceFn as q, useThrottleFn as G, tryOnMounted as Q, isClient as J, isObject as K } from "./index199.js";
2
+ import { bypassFilter as fe, createFilterWrapper as ve, debounceFilter as de, debouncedWatch as he, getLifeCycleTarget as me, throttleFilter as pe, debouncedWatch as be, watchWithFilter as ge } from "./index199.js";
3
+ import { computed as O, ref as T, watch as V, reactive as k, watchEffect as U, getCurrentInstance as Z, onMounted as ee } from "vue";
4
+ function N(l) {
5
5
  var r;
6
6
  const t = S(l);
7
7
  return (r = t == null ? void 0 : t.$el) != null ? r : t;
8
8
  }
9
- const H = J ? window : void 0;
9
+ const D = J ? window : void 0;
10
10
  function P(...l) {
11
11
  let r, t, n, e;
12
- if (typeof l[0] == "string" || Array.isArray(l[0]) ? ([t, n, e] = l, r = H) : [r, t, n, e] = l, !r)
12
+ if (typeof l[0] == "string" || Array.isArray(l[0]) ? ([t, n, e] = l, r = D) : [r, t, n, e] = l, !r)
13
13
  return _;
14
14
  Array.isArray(t) || (t = [t]), Array.isArray(n) || (n = [n]);
15
15
  const v = [], i = () => {
16
16
  v.forEach((a) => a()), v.length = 0;
17
- }, f = (a, s, m, g) => (a.addEventListener(s, m, g), () => a.removeEventListener(s, m, g)), d = V(
18
- () => [F(r), S(e)],
17
+ }, f = (a, s, h, b) => (a.addEventListener(s, h, b), () => a.removeEventListener(s, h, b)), d = V(
18
+ () => [N(r), S(e)],
19
19
  ([a, s]) => {
20
20
  if (i(), !a)
21
21
  return;
22
- const m = K(s) ? { ...s } : s;
22
+ const h = K(s) ? { ...s } : s;
23
23
  v.push(
24
- ...t.flatMap((g) => n.map((p) => f(a, g, p, m)))
24
+ ...t.flatMap((b) => n.map((m) => f(a, b, m, h)))
25
25
  );
26
26
  },
27
27
  { immediate: !0, flush: "post" }
@@ -31,8 +31,8 @@ function P(...l) {
31
31
  return R(c), c;
32
32
  }
33
33
  function te() {
34
- const l = T(!1), r = U();
35
- return r && Z(() => {
34
+ const l = T(!1), r = Z();
35
+ return r && ee(() => {
36
36
  l.value = !0;
37
37
  }, r), l;
38
38
  }
@@ -41,13 +41,13 @@ function X(l) {
41
41
  return O(() => (r.value, !!l()));
42
42
  }
43
43
  function ne(l, r = {}) {
44
- const { window: t = H } = r, n = X(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
44
+ const { window: t = D } = r, n = X(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
45
45
  let e;
46
46
  const v = T(!1), i = (c) => {
47
47
  v.value = c.matches;
48
48
  }, f = () => {
49
49
  e && ("removeEventListener" in e ? e.removeEventListener("change", i) : e.removeListener(i));
50
- }, d = ee(() => {
50
+ }, d = U(() => {
51
51
  n.value && (f(), e = t.matchMedia(S(l)), "addEventListener" in e ? e.addEventListener("change", i) : e.addListener(i), v.value = e.matches);
52
52
  });
53
53
  return R(() => {
@@ -59,35 +59,35 @@ function le(l, r, t = {}) {
59
59
  root: n,
60
60
  rootMargin: e = "0px",
61
61
  threshold: v = 0.1,
62
- window: i = H,
62
+ window: i = D,
63
63
  immediate: f = !0
64
64
  } = t, d = X(() => i && "IntersectionObserver" in i), c = O(() => {
65
- const p = S(l);
66
- return (Array.isArray(p) ? p : [p]).map(F).filter($);
65
+ const m = S(l);
66
+ return (Array.isArray(m) ? m : [m]).map(N).filter($);
67
67
  });
68
68
  let a = _;
69
- const s = T(f), m = d.value ? V(
70
- () => [c.value, F(n), s.value],
71
- ([p, I]) => {
72
- if (a(), !s.value || !p.length)
69
+ const s = T(f), h = d.value ? V(
70
+ () => [c.value, N(n), s.value],
71
+ ([m, I]) => {
72
+ if (a(), !s.value || !m.length)
73
73
  return;
74
- const x = new IntersectionObserver(
74
+ const w = new IntersectionObserver(
75
75
  r,
76
76
  {
77
- root: F(I),
77
+ root: N(I),
78
78
  rootMargin: e,
79
79
  threshold: v
80
80
  }
81
81
  );
82
- p.forEach((h) => h && x.observe(h)), a = () => {
83
- x.disconnect(), a = _;
82
+ m.forEach((p) => p && w.observe(p)), a = () => {
83
+ w.disconnect(), a = _;
84
84
  };
85
85
  },
86
86
  { immediate: f, flush: "post" }
87
- ) : _, g = () => {
88
- a(), m(), s.value = !1;
87
+ ) : _, b = () => {
88
+ a(), h(), s.value = !1;
89
89
  };
90
- return R(g), {
90
+ return R(b), {
91
91
  isSupported: d,
92
92
  isActive: s,
93
93
  pause() {
@@ -96,7 +96,7 @@ function le(l, r, t = {}) {
96
96
  resume() {
97
97
  s.value = !0;
98
98
  },
99
- stop: g
99
+ stop: b
100
100
  };
101
101
  }
102
102
  const z = 1;
@@ -117,70 +117,70 @@ function ue(l, r = {}) {
117
117
  passive: !0
118
118
  },
119
119
  behavior: d = "auto",
120
- window: c = H,
120
+ window: c = D,
121
121
  onError: a = (o) => {
122
122
  console.error(o);
123
123
  }
124
- } = r, s = T(0), m = T(0), g = O({
124
+ } = r, s = T(0), h = T(0), b = O({
125
125
  get() {
126
126
  return s.value;
127
127
  },
128
128
  set(o) {
129
129
  I(o, void 0);
130
130
  }
131
- }), p = O({
131
+ }), m = O({
132
132
  get() {
133
- return m.value;
133
+ return h.value;
134
134
  },
135
135
  set(o) {
136
136
  I(void 0, o);
137
137
  }
138
138
  });
139
139
  function I(o, A) {
140
- var b, M, W, w;
140
+ var g, M, W, x;
141
141
  if (!c)
142
142
  return;
143
- const y = S(l);
144
- if (!y)
143
+ const E = S(l);
144
+ if (!E)
145
145
  return;
146
- (W = y instanceof Document ? c.document.body : y) == null || W.scrollTo({
147
- top: (b = S(A)) != null ? b : p.value,
148
- left: (M = S(o)) != null ? M : g.value,
146
+ (W = E instanceof Document ? c.document.body : E) == null || W.scrollTo({
147
+ top: (g = S(A)) != null ? g : m.value,
148
+ left: (M = S(o)) != null ? M : b.value,
149
149
  behavior: S(d)
150
150
  });
151
- const N = ((w = y == null ? void 0 : y.document) == null ? void 0 : w.documentElement) || (y == null ? void 0 : y.documentElement) || y;
152
- g != null && (s.value = N.scrollLeft), p != null && (m.value = N.scrollTop);
151
+ const F = ((x = E == null ? void 0 : E.document) == null ? void 0 : x.documentElement) || (E == null ? void 0 : E.documentElement) || E;
152
+ b != null && (s.value = F.scrollLeft), m != null && (h.value = F.scrollTop);
153
153
  }
154
- const x = T(!1), h = k({
154
+ const w = T(!1), p = k({
155
155
  left: !0,
156
156
  right: !1,
157
157
  top: !0,
158
158
  bottom: !1
159
- }), E = k({
159
+ }), y = k({
160
160
  left: !1,
161
161
  right: !1,
162
162
  top: !1,
163
163
  bottom: !1
164
- }), C = (o) => {
165
- x.value && (x.value = !1, E.left = !1, E.right = !1, E.top = !1, E.bottom = !1, e(o));
166
- }, D = q(C, t + n), u = (o) => {
164
+ }), H = (o) => {
165
+ w.value && (w.value = !1, y.left = !1, y.right = !1, y.top = !1, y.bottom = !1, e(o));
166
+ }, C = q(H, t + n), u = (o) => {
167
167
  var A;
168
168
  if (!c)
169
169
  return;
170
- const b = ((A = o == null ? void 0 : o.document) == null ? void 0 : A.documentElement) || (o == null ? void 0 : o.documentElement) || F(o), { display: M, flexDirection: W } = getComputedStyle(b), w = b.scrollLeft;
171
- E.left = w < s.value, E.right = w > s.value;
172
- const y = Math.abs(w) <= (i.left || 0), N = Math.abs(w) + b.clientWidth >= b.scrollWidth - (i.right || 0) - z;
173
- M === "flex" && W === "row-reverse" ? (h.left = N, h.right = y) : (h.left = y, h.right = N), s.value = w;
174
- let L = b.scrollTop;
175
- o === c.document && !L && (L = c.document.body.scrollTop), E.top = L < m.value, E.bottom = L > m.value;
176
- const Y = Math.abs(L) <= (i.top || 0), j = Math.abs(L) + b.clientHeight >= b.scrollHeight - (i.bottom || 0) - z;
177
- M === "flex" && W === "column-reverse" ? (h.top = j, h.bottom = Y) : (h.top = Y, h.bottom = j), m.value = L;
170
+ const g = ((A = o == null ? void 0 : o.document) == null ? void 0 : A.documentElement) || (o == null ? void 0 : o.documentElement) || N(o), { display: M, flexDirection: W } = getComputedStyle(g), x = g.scrollLeft;
171
+ y.left = x < s.value, y.right = x > s.value;
172
+ const E = Math.abs(x) <= (i.left || 0), F = Math.abs(x) + g.clientWidth >= g.scrollWidth - (i.right || 0) - z;
173
+ M === "flex" && W === "row-reverse" ? (p.left = F, p.right = E) : (p.left = E, p.right = F), s.value = x;
174
+ let L = g.scrollTop;
175
+ o === c.document && !L && (L = c.document.body.scrollTop), y.top = L < h.value, y.bottom = L > h.value;
176
+ const Y = Math.abs(L) <= (i.top || 0), j = Math.abs(L) + g.clientHeight >= g.scrollHeight - (i.bottom || 0) - z;
177
+ M === "flex" && W === "column-reverse" ? (p.top = j, p.bottom = Y) : (p.top = Y, p.bottom = j), h.value = L;
178
178
  }, B = (o) => {
179
179
  var A;
180
180
  if (!c)
181
181
  return;
182
- const b = (A = o.target.documentElement) != null ? A : o.target;
183
- u(b), x.value = !0, D(o), v(o);
182
+ const g = (A = o.target.documentElement) != null ? A : o.target;
183
+ u(g), w.value = !0, C(o), v(o);
184
184
  };
185
185
  return P(
186
186
  l,
@@ -199,14 +199,14 @@ function ue(l, r = {}) {
199
199
  }), P(
200
200
  l,
201
201
  "scrollend",
202
- C,
202
+ H,
203
203
  f
204
204
  ), {
205
- x: g,
206
- y: p,
207
- isScrolling: x,
208
- arrivedState: h,
209
- directions: E,
205
+ x: b,
206
+ y: m,
207
+ isScrolling: w,
208
+ arrivedState: p,
209
+ directions: y,
210
210
  measure() {
211
211
  const o = S(l);
212
212
  c && o && u(o);
@@ -222,31 +222,31 @@ function ie(l, r) {
222
222
  if (n.value.includes(u))
223
223
  return a(n.value.indexOf(u));
224
224
  }
225
- function m(u) {
225
+ function h(u) {
226
226
  n.value.includes(u) && (e.value = n.value.indexOf(u));
227
227
  }
228
- function g() {
228
+ function b() {
229
229
  f.value || e.value++;
230
230
  }
231
- function p() {
231
+ function m() {
232
232
  i.value || e.value--;
233
233
  }
234
234
  function I(u) {
235
- D(u) && m(u);
235
+ C(u) && h(u);
236
236
  }
237
- function x(u) {
237
+ function w(u) {
238
238
  return n.value.indexOf(u) === e.value + 1;
239
239
  }
240
- function h(u) {
240
+ function p(u) {
241
241
  return n.value.indexOf(u) === e.value - 1;
242
242
  }
243
- function E(u) {
243
+ function y(u) {
244
244
  return n.value.indexOf(u) === e.value;
245
245
  }
246
- function C(u) {
246
+ function H(u) {
247
247
  return e.value < n.value.indexOf(u);
248
248
  }
249
- function D(u) {
249
+ function C(u) {
250
250
  return e.value > n.value.indexOf(u);
251
251
  }
252
252
  return {
@@ -260,20 +260,20 @@ function ie(l, r) {
260
260
  isLast: f,
261
261
  at: a,
262
262
  get: s,
263
- goTo: m,
264
- goToNext: g,
265
- goToPrevious: p,
263
+ goTo: h,
264
+ goToNext: b,
265
+ goToPrevious: m,
266
266
  goBackTo: I,
267
- isNext: x,
268
- isPrevious: h,
269
- isCurrent: E,
270
- isBefore: C,
271
- isAfter: D
267
+ isNext: w,
268
+ isPrevious: p,
269
+ isCurrent: y,
270
+ isBefore: H,
271
+ isAfter: C
272
272
  };
273
273
  }
274
274
  function se(l = {}) {
275
275
  const {
276
- window: r = H,
276
+ window: r = D,
277
277
  initialWidth: t = Number.POSITIVE_INFINITY,
278
278
  initialHeight: n = Number.POSITIVE_INFINITY,
279
279
  listenOrientation: e = !0,
@@ -288,19 +288,21 @@ function se(l = {}) {
288
288
  return { width: i, height: f };
289
289
  }
290
290
  export {
291
- fe as createFilterWrapper,
292
- ve as debounceFilter,
293
- H as defaultWindow,
294
- de as getLifeCycleTarget,
291
+ fe as bypassFilter,
292
+ ve as createFilterWrapper,
293
+ de as debounceFilter,
294
+ he as debouncedWatch,
295
+ D as defaultWindow,
296
+ me as getLifeCycleTarget,
295
297
  J as isClient,
296
298
  K as isObject,
297
299
  _ as noop,
298
300
  $ as notNullish,
299
- me as throttleFilter,
301
+ pe as throttleFilter,
300
302
  S as toValue,
301
303
  Q as tryOnMounted,
302
304
  R as tryOnScopeDispose,
303
- F as unrefElement,
305
+ N as unrefElement,
304
306
  q as useDebounceFn,
305
307
  P as useEventListener,
306
308
  le as useIntersectionObserver,
@@ -310,5 +312,7 @@ export {
310
312
  ie as useStepper,
311
313
  X as useSupported,
312
314
  G as useThrottleFn,
313
- se as useWindowSize
315
+ se as useWindowSize,
316
+ be as watchDebounced,
317
+ ge as watchWithFilter
314
318
  };