bitboss-ui 2.0.102 → 2.0.104

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 (163) hide show
  1. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +10 -16
  2. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +109 -7
  3. package/dist/components/BbSelect/BbSelect.vue.d.ts +2 -16
  4. package/dist/composables/useBaseOptions.d.ts +31 -0
  5. package/dist/composables/useCoherence.d.ts +20 -0
  6. package/dist/composables/useHashedWatcher.d.ts +2 -0
  7. package/dist/composables/useIndexById.d.ts +11 -0
  8. package/dist/composables/useItemsGetter.d.ts +12 -0
  9. package/dist/composables/usePrefill.d.ts +12 -0
  10. package/dist/index100.js +88 -60
  11. package/dist/index101.js +10 -13
  12. package/dist/index111.js +154 -126
  13. package/dist/index119.js +2 -2
  14. package/dist/index121.js +5 -5
  15. package/dist/index123.js +1 -1
  16. package/dist/index127.js +1 -1
  17. package/dist/index128.js +1 -1
  18. package/dist/index129.js +1 -1
  19. package/dist/index13.js +22 -22
  20. package/dist/index131.js +1 -1
  21. package/dist/index132.js +69 -65
  22. package/dist/index133.js +2 -2
  23. package/dist/index15.js +4 -4
  24. package/dist/index17.js +3 -3
  25. package/dist/index19.js +126 -82
  26. package/dist/index205.js +2 -81
  27. package/dist/index206.js +115 -2
  28. package/dist/index207.js +2 -2
  29. package/dist/index208.js +2 -2
  30. package/dist/index209.js +2 -2
  31. package/dist/index210.js +3 -3
  32. package/dist/index211.js +2 -2
  33. package/dist/index212.js +2 -2
  34. package/dist/index213.js +1 -1
  35. package/dist/index216.js +3 -3
  36. package/dist/index219.js +2 -2
  37. package/dist/index220.js +1 -1
  38. package/dist/index221.js +124 -51
  39. package/dist/{index235.js → index222.js} +1 -1
  40. package/dist/index223.js +2 -13
  41. package/dist/index224.js +41 -2
  42. package/dist/index225.js +20 -4
  43. package/dist/index226.js +6 -2
  44. package/dist/index227.js +51 -18
  45. package/dist/index229.js +12 -2
  46. package/dist/index23.js +11 -11
  47. package/dist/index230.js +5 -168
  48. package/dist/index231.js +10 -82
  49. package/dist/index232.js +371 -0
  50. package/dist/index233.js +4 -8
  51. package/dist/index234.js +83 -125
  52. package/dist/index236.js +8 -2
  53. package/dist/index237.js +24 -40
  54. package/dist/index238.js +17 -6
  55. package/dist/index239.js +48 -5
  56. package/dist/index240.js +15 -12
  57. package/dist/index241.js +11 -368
  58. package/dist/index242.js +16 -3
  59. package/dist/index243.js +2 -7
  60. package/dist/index244.js +4 -2
  61. package/dist/index245.js +2 -18
  62. package/dist/index246.js +3 -106
  63. package/dist/index247.js +9 -0
  64. package/dist/index248.js +2 -100
  65. package/dist/index249.js +20 -0
  66. package/dist/index25.js +5 -5
  67. package/dist/index250.js +106 -2
  68. package/dist/index252.js +100 -10
  69. package/dist/index254.js +11 -8
  70. package/dist/index255.js +2 -23
  71. package/dist/index256.js +3 -89
  72. package/dist/index257.js +4 -0
  73. package/dist/index258.js +10 -9
  74. package/dist/index259.js +3 -6
  75. package/dist/index260.js +8 -15
  76. package/dist/index261.js +23 -9
  77. package/dist/index262.js +88 -7
  78. package/dist/index264.js +8 -5
  79. package/dist/index265.js +6 -2
  80. package/dist/index266.js +16 -2
  81. package/dist/index267.js +281 -2
  82. package/dist/index268.js +6 -2
  83. package/dist/index269.js +2 -2
  84. package/dist/index27.js +1 -1
  85. package/dist/index271.js +2 -2
  86. package/dist/index272.js +2 -2
  87. package/dist/index273.js +2 -2
  88. package/dist/index274.js +2 -2
  89. package/dist/index275.js +2 -28
  90. package/dist/index276.js +1 -21
  91. package/dist/index277.js +4 -0
  92. package/dist/index278.js +2 -7
  93. package/dist/index279.js +28 -3
  94. package/dist/index280.js +24 -0
  95. package/dist/index282.js +7 -224
  96. package/dist/index283.js +3 -176
  97. package/dist/index284.js +7 -3
  98. package/dist/index285.js +11 -12
  99. package/dist/index286.js +16 -8
  100. package/dist/index287.js +7 -15
  101. package/dist/index288.js +3 -4
  102. package/dist/index29.js +3 -3
  103. package/dist/index290.js +174 -9
  104. package/dist/index293.js +1 -1
  105. package/dist/index296.js +1 -1
  106. package/dist/index297.js +3 -88
  107. package/dist/index298.js +8 -200
  108. package/dist/index301.js +200 -2
  109. package/dist/index302.js +89 -3
  110. package/dist/index303.js +1 -1
  111. package/dist/index304.js +3 -213
  112. package/dist/index305.js +206 -59
  113. package/dist/index306.js +224 -5
  114. package/dist/index307.js +5 -3
  115. package/dist/index308.js +2 -3
  116. package/dist/index309.js +66 -3
  117. package/dist/index31.js +2 -2
  118. package/dist/index310.js +3 -58
  119. package/dist/index311.js +6 -32
  120. package/dist/index312.js +18 -7
  121. package/dist/index313.js +5 -8
  122. package/dist/index314.js +7 -4
  123. package/dist/index315.js +3 -8
  124. package/dist/index316.js +3 -7
  125. package/dist/index317.js +56 -17
  126. package/dist/index318.js +8 -7
  127. package/dist/index319.js +8 -4
  128. package/dist/index320.js +7 -2
  129. package/dist/index321.js +3 -46
  130. package/dist/index322.js +33 -480
  131. package/dist/index323.js +49 -0
  132. package/dist/index324.js +2 -424
  133. package/dist/index325.js +479 -46
  134. package/dist/index327.js +426 -0
  135. package/dist/index328.js +49 -0
  136. package/dist/index33.js +102 -61
  137. package/dist/index35.js +3 -3
  138. package/dist/index37.js +284 -244
  139. package/dist/index39.js +4 -4
  140. package/dist/index41.js +2 -2
  141. package/dist/index43.js +129 -84
  142. package/dist/index45.js +122 -120
  143. package/dist/index47.js +2 -2
  144. package/dist/index49.js +2 -2
  145. package/dist/index55.js +1 -1
  146. package/dist/index57.js +2 -2
  147. package/dist/index61.js +2 -2
  148. package/dist/index75.js +3 -3
  149. package/dist/index79.js +2 -2
  150. package/dist/index81.js +1 -1
  151. package/dist/index84.js +3 -3
  152. package/dist/index86.js +1 -1
  153. package/dist/index88.js +4 -4
  154. package/dist/index90.js +1 -1
  155. package/package.json +1 -1
  156. package/dist/composables/useOptions.d.ts +0 -43
  157. package/dist/index228.js +0 -6
  158. package/dist/index251.js +0 -4
  159. package/dist/index253.js +0 -5
  160. package/dist/index263.js +0 -283
  161. package/dist/index281.js +0 -6
  162. package/dist/index289.js +0 -9
  163. /package/dist/{index326.js → index329.js} +0 -0
package/dist/index13.js CHANGED
@@ -1,8 +1,8 @@
1
- import { defineComponent as h, getCurrentInstance as p, ref as C, watch as x, computed as d, openBlock as S, createBlock as L, resolveDynamicComponent as B, unref as N, mergeProps as $, withCtx as F, renderSlot as w, createTextVNode as A, toDisplayString as P, resolveComponent as f } from "vue";
2
- import { _config as a } from "./index4.js";
3
- import { useLogger as m } from "./index215.js";
1
+ import { defineComponent as h, getCurrentInstance as p, ref as C, watch as x, computed as d, openBlock as S, createBlock as L, resolveDynamicComponent as B, markRaw as N, unref as $, mergeProps as F, withCtx as w, renderSlot as A, createTextVNode as P, toDisplayString as _, resolveComponent as m } from "vue";
2
+ import { _config as o } from "./index4.js";
3
+ import { useLogger as f } from "./index215.js";
4
4
  import { hash as v } from "./index213.js";
5
- const q = /* @__PURE__ */ h({
5
+ const R = /* @__PURE__ */ h({
6
6
  __name: "BaseButton",
7
7
  props: {
8
8
  activeClass: {},
@@ -35,34 +35,34 @@ const q = /* @__PURE__ */ h({
35
35
  setup(g) {
36
36
  var i, l, u, c;
37
37
  const e = g, r = !!((l = (i = p()) == null ? void 0 : i.proxy) != null && l.$inertia), b = !!((c = (u = p()) == null ? void 0 : u.proxy) != null && c.$nuxt);
38
- let o = C();
38
+ let a = C();
39
39
  const s = () => {
40
40
  if (e.href || e.to && e.disabled)
41
41
  if (r && !e.disabled && !e.target) {
42
- const t = f(a.inertiaLinkName);
42
+ const t = m(o.inertiaLinkName);
43
43
  if (typeof t == "string") {
44
- const { warn: n } = m();
44
+ const { warn: n } = f();
45
45
  n(
46
- `Inertia link component "${a.inertiaLinkName}" could not be resolved. Ensure you app registers a link component with the name "${a.inertiaLinkName}" or set bitboss-ui config key "inertiaLinkName" to the correct value globally. Please visit ${a.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
46
+ `Inertia link component "${o.inertiaLinkName}" could not be resolved. Ensure you app registers a link component with the name "${o.inertiaLinkName}" or set bitboss-ui config key "inertiaLinkName" to the correct value globally. Please visit ${o.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
47
47
  );
48
48
  }
49
- o.value = t;
49
+ a.value = t;
50
50
  } else
51
- o.value = "a";
51
+ a.value = "a";
52
52
  else if (e.to)
53
53
  if (b) {
54
- const t = f(a.nuxtLinkName);
54
+ const t = m(o.nuxtLinkName);
55
55
  if (typeof t == "string") {
56
- const { warn: n } = m();
56
+ const { warn: n } = f();
57
57
  n(
58
- `Nuxt link component "${a.nuxtLinkName}" could not be resolved. Ensure you app registers a link component with the name "${a.nuxtLinkName}" or set bitboss-ui config key "nuxtLInkName" to the correct value globally. Please visit ${a.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
58
+ `Nuxt link component "${o.nuxtLinkName}" could not be resolved. Ensure you app registers a link component with the name "${o.nuxtLinkName}" or set bitboss-ui config key "nuxtLInkName" to the correct value globally. Please visit ${o.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
59
59
  );
60
60
  }
61
- o.value = t;
61
+ a.value = t;
62
62
  } else
63
- o.value = "router-link";
63
+ a.value = "router-link";
64
64
  else
65
- o.value = e.tag;
65
+ a.value = e.tag;
66
66
  };
67
67
  s(), x(
68
68
  () => [e.tag, e.to, e.href, e.disabled],
@@ -76,12 +76,12 @@ const q = /* @__PURE__ */ h({
76
76
  "base-btn--disabled": e.disabled
77
77
  })), k = d(() => {
78
78
  const t = {};
79
- return o.value === "button" ? (t.disabled = e.disabled, t.type = e.type) : o.value === "a" || o.value === "router-link" && e.disabled || r && typeof o.value != "string" && o.value.name === "Link" ? e.disabled ? (t["aria-disabled"] = !0, t.role = "link", t.href = null) : (t.href = e.href, t.target = e.target, r && (t.data = e.data, t.headers = e.headers, t.method = e.method, t.onBefore = e.onBefore, t.onCancel = e.onCancel, t.onCancelToken = e.onCancelToken, t.onFinish = e.onFinish, t.only = e.only, t.onProgress = e.onProgress, t.onStart = e.onStart, t.onSuccess = e.onSuccess, t.preserveScroll = e.preserveScroll, t.preserveState = e.preserveState, t.queryStringArrayFormat = e.queryStringArrayFormat, t.replace = e.replace)) : (o.value === "router-link" || typeof o.value != "string" && o.value.name === "NuxtLink") && (t.activeClass = e.activeClass, t.ariaCurrentValue = e.ariaCurrentValue, t.exactActiveClass = e.exactActiveClass, t.replace = e.replace, t.target = e.target, t.to = e.to), t;
79
+ return a.value === "button" ? (t.disabled = e.disabled, t.type = e.type) : a.value === "a" || a.value === "router-link" && e.disabled || r && typeof a.value != "string" && a.value.name === "Link" ? e.disabled ? (t["aria-disabled"] = !0, t.role = "link", t.href = null) : (t.href = e.href, t.target = e.target, r && (t.data = e.data, t.headers = e.headers, t.method = e.method, t.onBefore = e.onBefore, t.onCancel = e.onCancel, t.onCancelToken = e.onCancelToken, t.onFinish = e.onFinish, t.only = e.only, t.onProgress = e.onProgress, t.onStart = e.onStart, t.onSuccess = e.onSuccess, t.preserveScroll = e.preserveScroll, t.preserveState = e.preserveState, t.queryStringArrayFormat = e.queryStringArrayFormat, t.replace = e.replace)) : (a.value === "router-link" || typeof a.value != "string" && a.value.name === "NuxtLink") && (t.activeClass = e.activeClass, t.ariaCurrentValue = e.ariaCurrentValue, t.exactActiveClass = e.exactActiveClass, t.replace = e.replace, t.target = e.target, t.to = e.to), t;
80
80
  });
81
- return (t, n) => (S(), L(B(N(o)), $({ class: y.value }, k.value), {
82
- default: F(() => [
83
- w(t.$slots, "default", {}, () => [
84
- A(P(t.text), 1)
81
+ return (t, n) => (S(), L(B(N($(a))), F({ class: y.value }, k.value), {
82
+ default: w(() => [
83
+ A(t.$slots, "default", {}, () => [
84
+ P(_(t.text), 1)
85
85
  ])
86
86
  ]),
87
87
  _: 3
@@ -89,5 +89,5 @@ const q = /* @__PURE__ */ h({
89
89
  }
90
90
  });
91
91
  export {
92
- q as default
92
+ R as default
93
93
  };
package/dist/index131.js CHANGED
@@ -1,4 +1,4 @@
1
- import { clamp as o } from "./index206.js";
1
+ import { clamp as o } from "./index205.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/index132.js CHANGED
@@ -1,16 +1,16 @@
1
- import { toValue as O, tryOnScopeDispose as R, notNullish as $, noop as M, useDebounceFn as q, useThrottleFn as G, tryOnMounted as X, isObject as J, isClient as K } from "./index205.js";
2
- import { createFilterWrapper as ve, debounceFilter as de, getLifeCycleTarget as pe, throttleFilter as me } from "./index205.js";
3
- import { computed as S, watch as z, ref as w, reactive as k, getCurrentInstance as U, onMounted as Z, watchEffect as ee } from "vue";
1
+ import { toValue as O, tryOnScopeDispose as R, notNullish as $, noop as W, useDebounceFn as q, useThrottleFn as G, tryOnMounted as X, isObject as J, isClient as K } from "./index206.js";
2
+ import { bypassFilter as ve, createFilterWrapper as de, debounceFilter as pe, debouncedWatch as he, getLifeCycleTarget as me, throttleFilter as be, debouncedWatch as ge, watchWithFilter as ye } from "./index206.js";
3
+ import { computed as w, watch as z, ref as S, reactive as k, getCurrentInstance as U, onMounted as Z, watchEffect as ee } from "vue";
4
4
  function L(l) {
5
5
  var o;
6
6
  const n = O(l);
7
7
  return (o = n == null ? void 0 : n.$el) != null ? o : n;
8
8
  }
9
- const W = K ? window : void 0;
9
+ const M = K ? window : void 0;
10
10
  function P(...l) {
11
11
  let o, n, t, e;
12
- if (typeof l[0] == "string" || Array.isArray(l[0]) ? ([n, t, e] = l, o = W) : [o, n, t, e] = l, !o)
13
- return M;
12
+ if (typeof l[0] == "string" || Array.isArray(l[0]) ? ([n, t, e] = l, o = M) : [o, n, t, e] = l, !o)
13
+ return W;
14
14
  Array.isArray(n) || (n = [n]), Array.isArray(t) || (t = [t]);
15
15
  const f = [], a = () => {
16
16
  f.forEach((i) => i()), f.length = 0;
@@ -21,7 +21,7 @@ function P(...l) {
21
21
  return;
22
22
  const d = J(u) ? { ...u } : u;
23
23
  f.push(
24
- ...n.flatMap((b) => t.map((m) => v(i, b, m, d)))
24
+ ...n.flatMap((b) => t.map((h) => v(i, b, h, d)))
25
25
  );
26
26
  },
27
27
  { immediate: !0, flush: "post" }
@@ -31,19 +31,19 @@ function P(...l) {
31
31
  return R(c), c;
32
32
  }
33
33
  function te() {
34
- const l = w(!1), o = U();
34
+ const l = S(!1), o = U();
35
35
  return o && Z(() => {
36
36
  l.value = !0;
37
37
  }, o), l;
38
38
  }
39
39
  function V(l) {
40
40
  const o = te();
41
- return S(() => (o.value, !!l()));
41
+ return w(() => (o.value, !!l()));
42
42
  }
43
43
  function ne(l, o = {}) {
44
- const { window: n = W } = o, t = V(() => n && "matchMedia" in n && typeof n.matchMedia == "function");
44
+ const { window: n = M } = o, t = V(() => n && "matchMedia" in n && typeof n.matchMedia == "function");
45
45
  let e;
46
- const f = w(!1), a = (c) => {
46
+ const f = S(!1), a = (c) => {
47
47
  f.value = c.matches;
48
48
  }, v = () => {
49
49
  e && ("removeEventListener" in e ? e.removeEventListener("change", a) : e.removeListener(a));
@@ -55,11 +55,11 @@ function ne(l, o = {}) {
55
55
  }), f;
56
56
  }
57
57
  function le(l, o, n = {}) {
58
- const { window: t = W, ...e } = n;
58
+ const { window: t = M, ...e } = n;
59
59
  let f;
60
60
  const a = V(() => t && "ResizeObserver" in t), v = () => {
61
61
  f && (f.disconnect(), f = void 0);
62
- }, p = S(() => {
62
+ }, p = w(() => {
63
63
  const u = O(l);
64
64
  return Array.isArray(u) ? u.map((d) => L(d)) : [L(u)];
65
65
  }), c = z(
@@ -85,17 +85,17 @@ function ue(l, o, n = {}) {
85
85
  root: t,
86
86
  rootMargin: e = "0px",
87
87
  threshold: f = 0,
88
- window: a = W,
88
+ window: a = M,
89
89
  immediate: v = !0
90
- } = n, p = V(() => a && "IntersectionObserver" in a), c = S(() => {
91
- const m = O(l);
92
- return (Array.isArray(m) ? m : [m]).map(L).filter($);
90
+ } = n, p = V(() => a && "IntersectionObserver" in a), c = w(() => {
91
+ const h = O(l);
92
+ return (Array.isArray(h) ? h : [h]).map(L).filter($);
93
93
  });
94
- let i = M;
95
- const u = w(v), d = p.value ? z(
94
+ let i = W;
95
+ const u = S(v), d = p.value ? z(
96
96
  () => [c.value, L(t), u.value],
97
- ([m, I]) => {
98
- if (i(), !u.value || !m.length)
97
+ ([h, I]) => {
98
+ if (i(), !u.value || !h.length)
99
99
  return;
100
100
  const T = new IntersectionObserver(
101
101
  o,
@@ -105,12 +105,12 @@ function ue(l, o, n = {}) {
105
105
  threshold: f
106
106
  }
107
107
  );
108
- m.forEach((h) => h && T.observe(h)), i = () => {
109
- T.disconnect(), i = M;
108
+ h.forEach((m) => m && T.observe(m)), i = () => {
109
+ T.disconnect(), i = W;
110
110
  };
111
111
  },
112
112
  { immediate: v, flush: "post" }
113
- ) : M, b = () => {
113
+ ) : W, b = () => {
114
114
  i(), d(), u.value = !1;
115
115
  };
116
116
  return R(b), {
@@ -130,8 +130,8 @@ function se(l, o = {}) {
130
130
  const {
131
131
  throttle: n = 0,
132
132
  idle: t = 200,
133
- onStop: e = M,
134
- onScroll: f = M,
133
+ onStop: e = W,
134
+ onScroll: f = W,
135
135
  offset: a = {
136
136
  left: 0,
137
137
  right: 0,
@@ -143,18 +143,18 @@ function se(l, o = {}) {
143
143
  passive: !0
144
144
  },
145
145
  behavior: p = "auto",
146
- window: c = W,
146
+ window: c = M,
147
147
  onError: i = (r) => {
148
148
  console.error(r);
149
149
  }
150
- } = o, u = w(0), d = w(0), b = S({
150
+ } = o, u = S(0), d = S(0), b = w({
151
151
  get() {
152
152
  return u.value;
153
153
  },
154
154
  set(r) {
155
155
  I(r, void 0);
156
156
  }
157
- }), m = S({
157
+ }), h = w({
158
158
  get() {
159
159
  return d.value;
160
160
  },
@@ -163,21 +163,21 @@ function se(l, o = {}) {
163
163
  }
164
164
  });
165
165
  function I(r, x) {
166
- var g, N, H, A;
166
+ var g, F, N, A;
167
167
  if (!c)
168
168
  return;
169
169
  const E = O(l);
170
170
  if (!E)
171
171
  return;
172
- (H = E instanceof Document ? c.document.body : E) == null || H.scrollTo({
173
- top: (g = O(x)) != null ? g : m.value,
174
- left: (N = O(r)) != null ? N : b.value,
172
+ (N = E instanceof Document ? c.document.body : E) == null || N.scrollTo({
173
+ top: (g = O(x)) != null ? g : h.value,
174
+ left: (F = O(r)) != null ? F : b.value,
175
175
  behavior: O(p)
176
176
  });
177
- const F = ((A = E == null ? void 0 : E.document) == null ? void 0 : A.documentElement) || (E == null ? void 0 : E.documentElement) || E;
178
- b != null && (u.value = F.scrollLeft), m != null && (d.value = F.scrollTop);
177
+ const H = ((A = E == null ? void 0 : E.document) == null ? void 0 : A.documentElement) || (E == null ? void 0 : E.documentElement) || E;
178
+ b != null && (u.value = H.scrollLeft), h != null && (d.value = H.scrollTop);
179
179
  }
180
- const T = w(!1), h = k({
180
+ const T = S(!1), m = k({
181
181
  left: !0,
182
182
  right: !1,
183
183
  top: !0,
@@ -187,26 +187,26 @@ function se(l, o = {}) {
187
187
  right: !1,
188
188
  top: !1,
189
189
  bottom: !1
190
- }), C = (r) => {
190
+ }), D = (r) => {
191
191
  T.value && (T.value = !1, y.left = !1, y.right = !1, y.top = !1, y.bottom = !1, e(r));
192
- }, D = q(C, n + t), s = (r) => {
192
+ }, C = q(D, n + t), s = (r) => {
193
193
  var x;
194
194
  if (!c)
195
195
  return;
196
- const g = ((x = r == null ? void 0 : r.document) == null ? void 0 : x.documentElement) || (r == null ? void 0 : r.documentElement) || L(r), { display: N, flexDirection: H } = getComputedStyle(g), A = g.scrollLeft;
196
+ const g = ((x = r == null ? void 0 : r.document) == null ? void 0 : x.documentElement) || (r == null ? void 0 : r.documentElement) || L(r), { display: F, flexDirection: N } = getComputedStyle(g), A = g.scrollLeft;
197
197
  y.left = A < u.value, y.right = A > u.value;
198
- const E = Math.abs(A) <= (a.left || 0), F = Math.abs(A) + g.clientWidth >= g.scrollWidth - (a.right || 0) - Q;
199
- N === "flex" && H === "row-reverse" ? (h.left = F, h.right = E) : (h.left = E, h.right = F), u.value = A;
198
+ const E = Math.abs(A) <= (a.left || 0), H = Math.abs(A) + g.clientWidth >= g.scrollWidth - (a.right || 0) - Q;
199
+ F === "flex" && N === "row-reverse" ? (m.left = H, m.right = E) : (m.left = E, m.right = H), u.value = A;
200
200
  let _ = g.scrollTop;
201
201
  r === c.document && !_ && (_ = c.document.body.scrollTop), y.top = _ < d.value, y.bottom = _ > d.value;
202
202
  const Y = Math.abs(_) <= (a.top || 0), j = Math.abs(_) + g.clientHeight >= g.scrollHeight - (a.bottom || 0) - Q;
203
- N === "flex" && H === "column-reverse" ? (h.top = j, h.bottom = Y) : (h.top = Y, h.bottom = j), d.value = _;
203
+ F === "flex" && N === "column-reverse" ? (m.top = j, m.bottom = Y) : (m.top = Y, m.bottom = j), d.value = _;
204
204
  }, B = (r) => {
205
205
  var x;
206
206
  if (!c)
207
207
  return;
208
208
  const g = (x = r.target.documentElement) != null ? x : r.target;
209
- s(g), T.value = !0, D(r), f(r);
209
+ s(g), T.value = !0, C(r), f(r);
210
210
  };
211
211
  return P(
212
212
  l,
@@ -225,13 +225,13 @@ function se(l, o = {}) {
225
225
  }), P(
226
226
  l,
227
227
  "scrollend",
228
- C,
228
+ D,
229
229
  v
230
230
  ), {
231
231
  x: b,
232
- y: m,
232
+ y: h,
233
233
  isScrolling: T,
234
- arrivedState: h,
234
+ arrivedState: m,
235
235
  directions: y,
236
236
  measure() {
237
237
  const r = O(l);
@@ -240,7 +240,7 @@ function se(l, o = {}) {
240
240
  };
241
241
  }
242
242
  function ie(l, o) {
243
- const n = w(l), t = S(() => Array.isArray(n.value) ? n.value : Object.keys(n.value)), e = w(t.value.indexOf(o ?? t.value[0])), f = S(() => i(e.value)), a = S(() => e.value === 0), v = S(() => e.value === t.value.length - 1), p = S(() => t.value[e.value + 1]), c = S(() => t.value[e.value - 1]);
243
+ const n = S(l), t = w(() => Array.isArray(n.value) ? n.value : Object.keys(n.value)), e = S(t.value.indexOf(o ?? t.value[0])), f = w(() => i(e.value)), a = w(() => e.value === 0), v = w(() => e.value === t.value.length - 1), p = w(() => t.value[e.value + 1]), c = w(() => t.value[e.value - 1]);
244
244
  function i(s) {
245
245
  return Array.isArray(n.value) ? n.value[s] : n.value[t.value[s]];
246
246
  }
@@ -254,25 +254,25 @@ function ie(l, o) {
254
254
  function b() {
255
255
  v.value || e.value++;
256
256
  }
257
- function m() {
257
+ function h() {
258
258
  a.value || e.value--;
259
259
  }
260
260
  function I(s) {
261
- D(s) && d(s);
261
+ C(s) && d(s);
262
262
  }
263
263
  function T(s) {
264
264
  return t.value.indexOf(s) === e.value + 1;
265
265
  }
266
- function h(s) {
266
+ function m(s) {
267
267
  return t.value.indexOf(s) === e.value - 1;
268
268
  }
269
269
  function y(s) {
270
270
  return t.value.indexOf(s) === e.value;
271
271
  }
272
- function C(s) {
272
+ function D(s) {
273
273
  return e.value < t.value.indexOf(s);
274
274
  }
275
- function D(s) {
275
+ function C(s) {
276
276
  return e.value > t.value.indexOf(s);
277
277
  }
278
278
  return {
@@ -288,24 +288,24 @@ function ie(l, o) {
288
288
  get: u,
289
289
  goTo: d,
290
290
  goToNext: b,
291
- goToPrevious: m,
291
+ goToPrevious: h,
292
292
  goBackTo: I,
293
293
  isNext: T,
294
- isPrevious: h,
294
+ isPrevious: m,
295
295
  isCurrent: y,
296
- isBefore: C,
297
- isAfter: D
296
+ isBefore: D,
297
+ isAfter: C
298
298
  };
299
299
  }
300
300
  function ae(l = {}) {
301
301
  const {
302
- window: o = W,
302
+ window: o = M,
303
303
  initialWidth: n = Number.POSITIVE_INFINITY,
304
304
  initialHeight: t = Number.POSITIVE_INFINITY,
305
305
  listenOrientation: e = !0,
306
306
  includeScrollbar: f = !0,
307
307
  type: a = "inner"
308
- } = l, v = w(n), p = w(t), c = () => {
308
+ } = l, v = S(n), p = S(t), c = () => {
309
309
  o && (a === "outer" ? (v.value = o.outerWidth, p.value = o.outerHeight) : f ? (v.value = o.innerWidth, p.value = o.innerHeight) : (v.value = o.document.documentElement.clientWidth, p.value = o.document.documentElement.clientHeight));
310
310
  };
311
311
  if (c(), X(c), P("resize", c, { passive: !0 }), e) {
@@ -315,15 +315,17 @@ function ae(l = {}) {
315
315
  return { width: v, height: p };
316
316
  }
317
317
  export {
318
- ve as createFilterWrapper,
319
- de as debounceFilter,
320
- W as defaultWindow,
321
- pe as getLifeCycleTarget,
318
+ ve as bypassFilter,
319
+ de as createFilterWrapper,
320
+ pe as debounceFilter,
321
+ he as debouncedWatch,
322
+ M as defaultWindow,
323
+ me as getLifeCycleTarget,
322
324
  K as isClient,
323
325
  J as isObject,
324
- M as noop,
326
+ W as noop,
325
327
  $ as notNullish,
326
- me as throttleFilter,
328
+ be as throttleFilter,
327
329
  O as toValue,
328
330
  X as tryOnMounted,
329
331
  R as tryOnScopeDispose,
@@ -338,5 +340,7 @@ export {
338
340
  ie as useStepper,
339
341
  V as useSupported,
340
342
  G as useThrottleFn,
341
- ae as useWindowSize
343
+ ae as useWindowSize,
344
+ ge as watchDebounced,
345
+ ye as watchWithFilter
342
346
  };
package/dist/index133.js CHANGED
@@ -1,5 +1,5 @@
1
- import { isArray as p } from "./index314.js";
2
- import { isPlainObject as c } from "./index315.js";
1
+ import { isArray as p } from "./index313.js";
2
+ import { isPlainObject as c } from "./index314.js";
3
3
  function i(e, n, u, l, r) {
4
4
  const o = {}.propertyIsEnumerable.call(l, n) ? "enumerable" : "nonenumerable";
5
5
  o === "enumerable" && (e[n] = u), r && o === "nonenumerable" && Object.defineProperty(e, n, {
package/dist/index15.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as k, ref as y, computed as v, watchPostEffect as h, openBlock as g, createElementBlock as C, Fragment as w, createVNode as d, normalizeClass as B, withCtx as n, renderSlot as r, createElementVNode as s, normalizeStyle as V, withModifiers as H, withDirectives as E, mergeProps as q, unref as $ } from "vue";
2
- import z from "./index221.js";
2
+ import z from "./index227.js";
3
3
  /* empty css */
4
- import I from "./index223.js";
5
- import { vMaska as M } from "./index227.js";
6
- import { isHex as D } from "./index228.js";
4
+ import I from "./index229.js";
5
+ import { vMaska as M } from "./index225.js";
6
+ import { isHex as D } from "./index233.js";
7
7
  const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], P = ["aria-invalid", "disabled", "required"], T = /* @__PURE__ */ k({
8
8
  __name: "BaseColorInput",
9
9
  props: {
package/dist/index17.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as E, ref as m, computed as n, watch as _, openBlock as p, createElementBlock as h, normalizeProps as i, guardReactiveProps as f, mergeProps as k, createCommentVNode as I, createElementVNode as l, renderSlot as F } from "vue";
2
- import { isCssColor as y } from "./index224.js";
3
- import { when as N } from "./index225.js";
4
- import { booleanishToBoolean as S } from "./index226.js";
2
+ import { isCssColor as y } from "./index243.js";
3
+ import { when as N } from "./index244.js";
4
+ import { booleanishToBoolean as S } from "./index245.js";
5
5
  const A = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"