bitboss-ui 2.1.9 → 2.1.11

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 (175) hide show
  1. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +2 -2
  2. package/dist/index.css +1 -1
  3. package/dist/index106.js +9 -9
  4. package/dist/index111.js +1 -1
  5. package/dist/index113.js +1 -1
  6. package/dist/index121.js +11 -11
  7. package/dist/index129.js +1 -1
  8. package/dist/index13.js +1 -1
  9. package/dist/index131.js +4 -4
  10. package/dist/index136.js +1 -1
  11. package/dist/index137.js +2 -2
  12. package/dist/index139.js +6 -6
  13. package/dist/index15.js +8 -8
  14. package/dist/index17.js +3 -3
  15. package/dist/index19.js +8 -8
  16. package/dist/index206.js +138 -2
  17. package/dist/index208.js +2 -138
  18. package/dist/index209.js +12 -85
  19. package/dist/index21.js +16 -16
  20. package/dist/index210.js +15 -0
  21. package/dist/index211.js +9 -27
  22. package/dist/index212.js +2 -17
  23. package/dist/index213.js +4 -51
  24. package/dist/index214.js +2 -15
  25. package/dist/index215.js +66 -3
  26. package/dist/index217.js +13 -16
  27. package/dist/index218.js +183 -2
  28. package/dist/index219.js +5 -4
  29. package/dist/index220.js +5 -2
  30. package/dist/index221.js +5 -4
  31. package/dist/index222.js +5 -13
  32. package/dist/index223.js +5 -11
  33. package/dist/index224.js +5 -20
  34. package/dist/index225.js +2 -197
  35. package/dist/index226.js +4 -0
  36. package/dist/index227.js +2 -66
  37. package/dist/index228.js +22 -0
  38. package/dist/index229.js +113 -13
  39. package/dist/index23.js +155 -153
  40. package/dist/index231.js +6 -0
  41. package/dist/index232.js +196 -12
  42. package/dist/index234.js +84 -32
  43. package/dist/index236.js +29 -5
  44. package/dist/index237.js +17 -5
  45. package/dist/index238.js +51 -5
  46. package/dist/index239.js +15 -5
  47. package/dist/index240.js +3 -5
  48. package/dist/index241.js +12 -2
  49. package/dist/index242.js +16 -2
  50. package/dist/index243.js +10 -2
  51. package/dist/index244.js +2 -17
  52. package/dist/index245.js +2 -12
  53. package/dist/index246.js +9 -6
  54. package/dist/index247.js +23 -106
  55. package/dist/index248.js +11 -0
  56. package/dist/index249.js +7 -99
  57. package/dist/index25.js +3 -3
  58. package/dist/{index233.js → index250.js} +1 -1
  59. package/dist/index251.js +89 -211
  60. package/dist/index253.js +99 -176
  61. package/dist/index255.js +5 -4
  62. package/dist/index256.js +15 -7
  63. package/dist/index257.js +30 -246
  64. package/dist/index258.js +3 -52
  65. package/dist/index259.js +5 -44
  66. package/dist/index260.js +5 -5
  67. package/dist/index261.js +6 -58
  68. package/dist/index262.js +250 -2
  69. package/dist/index263.js +52 -7
  70. package/dist/index264.js +44 -7
  71. package/dist/index265.js +5 -9
  72. package/dist/index266.js +60 -23
  73. package/dist/index267.js +9 -10
  74. package/dist/index268.js +17 -2
  75. package/dist/index269.js +12 -3
  76. package/dist/index27.js +1 -1
  77. package/dist/index270.js +6 -6
  78. package/dist/index271.js +229 -15
  79. package/dist/index272.js +2 -9
  80. package/dist/index273.js +7 -8
  81. package/dist/index274.js +6 -8
  82. package/dist/index277.js +67 -5
  83. package/dist/index278.js +4 -7
  84. package/dist/index279.js +8 -67
  85. package/dist/index280.js +4 -3
  86. package/dist/index281.js +7 -17
  87. package/dist/index282.js +10 -27
  88. package/dist/index283.js +3 -4
  89. package/dist/index285.js +7 -3
  90. package/dist/{index284.js → index286.js} +1 -1
  91. package/dist/index287.js +3 -7
  92. package/dist/index288.js +4 -3
  93. package/dist/index289.js +280 -7
  94. package/dist/index29.js +4 -4
  95. package/dist/index290.js +2 -11
  96. package/dist/index291.js +124 -3
  97. package/dist/index292.js +2 -5
  98. package/dist/index293.js +15 -2
  99. package/dist/index294.js +2 -280
  100. package/dist/index295.js +16 -2
  101. package/dist/index296.js +2 -125
  102. package/dist/index297.js +16 -2
  103. package/dist/index298.js +2 -15
  104. package/dist/index299.js +19 -2
  105. package/dist/index300.js +2 -16
  106. package/dist/index301.js +3 -2
  107. package/dist/index302.js +17 -16
  108. package/dist/index303.js +28 -2
  109. package/dist/index304.js +5 -18
  110. package/dist/index305.js +5 -2
  111. package/dist/index306.js +3 -6
  112. package/dist/index307.js +1 -1
  113. package/dist/index308.js +718 -3
  114. package/dist/index309.js +366 -2
  115. package/dist/index31.js +2 -2
  116. package/dist/index310.js +57 -18
  117. package/dist/index311.js +2 -2
  118. package/dist/index312.js +5 -27
  119. package/dist/index313.js +19 -2
  120. package/dist/index314.js +2 -2
  121. package/dist/index315.js +27 -2
  122. package/dist/index316.js +2 -2
  123. package/dist/index317.js +1 -1
  124. package/dist/index318.js +1 -21
  125. package/dist/index319.js +4 -0
  126. package/dist/index320.js +2 -5
  127. package/dist/index321.js +22 -701
  128. package/dist/index323.js +2 -58
  129. package/dist/index324.js +1 -1
  130. package/dist/index325.js +1 -1
  131. package/dist/index326.js +1 -1
  132. package/dist/index328.js +128 -7
  133. package/dist/index329.js +368 -5
  134. package/dist/index33.js +8 -8
  135. package/dist/index330.js +57 -7
  136. package/dist/index331.js +57 -128
  137. package/dist/index332.js +7 -368
  138. package/dist/index333.js +6 -58
  139. package/dist/index334.js +7 -57
  140. package/dist/index335.js +86 -221
  141. package/dist/index336.js +227 -6
  142. package/dist/index337.js +6 -18
  143. package/dist/index338.js +17 -45
  144. package/dist/index340.js +46 -92
  145. package/dist/index346.js +97 -91
  146. package/dist/index347.js +28 -25
  147. package/dist/index35.js +4 -4
  148. package/dist/index37.js +230 -232
  149. package/dist/index39.js +8 -8
  150. package/dist/index41.js +2 -2
  151. package/dist/index43.js +8 -8
  152. package/dist/index45.js +8 -8
  153. package/dist/index47.js +2 -2
  154. package/dist/index49.js +3 -3
  155. package/dist/index53.js +1 -1
  156. package/dist/index55.js +1 -1
  157. package/dist/index57.js +2 -2
  158. package/dist/index61.js +3 -3
  159. package/dist/index67.js +1 -1
  160. package/dist/index79.js +4 -4
  161. package/dist/index81.js +1 -1
  162. package/dist/index83.js +2 -2
  163. package/dist/index85.js +1 -1
  164. package/dist/index87.js +1 -1
  165. package/dist/index90.js +3 -3
  166. package/dist/index92.js +2 -2
  167. package/dist/index94.js +3 -3
  168. package/dist/index96.js +1 -1
  169. package/package.json +17 -17
  170. package/dist/index216.js +0 -14
  171. package/dist/index230.js +0 -115
  172. package/dist/index235.js +0 -7
  173. package/dist/index252.js +0 -4
  174. package/dist/index254.js +0 -7
  175. package/dist/index322.js +0 -356
package/dist/index340.js CHANGED
@@ -1,95 +1,49 @@
1
- import { commonjsGlobal as y } from "./index306.js";
2
- var p, _;
3
- function Z() {
4
- if (_) return p;
5
- _ = 1;
6
- var x = "Expected a function", I = NaN, W = "[object Symbol]", C = /^\s+|\s+$/g, M = /^[-+]0x[0-9a-f]+$/i, N = /^0b[01]+$/i, R = /^0o[0-7]+$/i, $ = parseInt, q = typeof y == "object" && y && y.Object === Object && y, A = typeof self == "object" && self && self.Object === Object && self, B = q || A || Function("return this")(), F = Object.prototype, G = F.toString, P = Math.max, D = Math.min, h = function() {
7
- return B.Date.now();
8
- };
9
- function H(e, r, n) {
10
- var f, a, g, c, i, u, s = 0, S = !1, d = !1, j = !0;
11
- if (typeof e != "function")
12
- throw new TypeError(x);
13
- r = O(r) || 0, m(n) && (S = !!n.leading, d = "maxWait" in n, g = d ? P(O(n.maxWait) || 0, r) : g, j = "trailing" in n ? !!n.trailing : j);
14
- function v(t) {
15
- var o = f, l = a;
16
- return f = a = void 0, s = t, c = e.apply(l, o), c;
17
- }
18
- function J(t) {
19
- return s = t, i = setTimeout(b, r), S ? v(t) : c;
20
- }
21
- function K(t) {
22
- var o = t - u, l = t - s, L = r - o;
23
- return d ? D(L, g - l) : L;
24
- }
25
- function E(t) {
26
- var o = t - u, l = t - s;
27
- return u === void 0 || o >= r || o < 0 || d && l >= g;
28
- }
29
- function b() {
30
- var t = h();
31
- if (E(t))
32
- return k(t);
33
- i = setTimeout(b, K(t));
34
- }
35
- function k(t) {
36
- return i = void 0, j && f ? v(t) : (f = a = void 0, c);
37
- }
38
- function Q() {
39
- i !== void 0 && clearTimeout(i), s = 0, f = u = a = i = void 0;
40
- }
41
- function V() {
42
- return i === void 0 ? c : k(h());
43
- }
44
- function T() {
45
- var t = h(), o = E(t);
46
- if (f = arguments, a = this, u = t, o) {
47
- if (i === void 0)
48
- return J(u);
49
- if (d)
50
- return i = setTimeout(b, r), v(u);
51
- }
52
- return i === void 0 && (i = setTimeout(b, r)), c;
53
- }
54
- return T.cancel = Q, T.flush = V, T;
55
- }
56
- function U(e, r, n) {
57
- var f = !0, a = !0;
58
- if (typeof e != "function")
59
- throw new TypeError(x);
60
- return m(n) && (f = "leading" in n ? !!n.leading : f, a = "trailing" in n ? !!n.trailing : a), H(e, r, {
61
- leading: f,
62
- maxWait: r,
63
- trailing: a
64
- });
65
- }
66
- function m(e) {
67
- var r = typeof e;
68
- return !!e && (r == "object" || r == "function");
69
- }
70
- function X(e) {
71
- return !!e && typeof e == "object";
72
- }
73
- function z(e) {
74
- return typeof e == "symbol" || X(e) && G.call(e) == W;
75
- }
76
- function O(e) {
77
- if (typeof e == "number")
78
- return e;
79
- if (z(e))
80
- return I;
81
- if (m(e)) {
82
- var r = typeof e.valueOf == "function" ? e.valueOf() : e;
83
- e = m(r) ? r + "" : r;
84
- }
85
- if (typeof e != "string")
86
- return e === 0 ? e : +e;
87
- e = e.replace(C, "");
88
- var n = N.test(e);
89
- return n || R.test(e) ? $(e.slice(2), n ? 2 : 8) : M.test(e) ? I : +e;
90
- }
91
- return p = U, p;
1
+ import { elementScroll as f, observeElementOffset as s, observeElementRect as d, Virtualizer as p } from "./index346.js";
2
+ import { defaultKeyExtractor as S, defaultRangeExtractor as V, measureElement as b } from "./index346.js";
3
+ import { computed as g, unref as l, shallowRef as E, watch as o, triggerRef as i, onScopeDispose as v } from "vue";
4
+ function w(e) {
5
+ const t = new p(l(e)), a = E(t), u = t._didMount();
6
+ return o(
7
+ () => l(e).getScrollElement(),
8
+ (r) => {
9
+ r && t._willUpdate();
10
+ },
11
+ {
12
+ immediate: !0
13
+ }
14
+ ), o(
15
+ () => l(e),
16
+ (r) => {
17
+ t.setOptions({
18
+ ...r,
19
+ onChange: (c, m) => {
20
+ var n;
21
+ i(a), (n = r.onChange) == null || n.call(r, c, m);
22
+ }
23
+ }), t._willUpdate(), i(a);
24
+ },
25
+ {
26
+ immediate: !0
27
+ }
28
+ ), v(u), a;
29
+ }
30
+ function z(e) {
31
+ return w(
32
+ g(() => ({
33
+ observeElementRect: d,
34
+ observeElementOffset: s,
35
+ scrollToFn: f,
36
+ ...l(e)
37
+ }))
38
+ );
92
39
  }
93
40
  export {
94
- Z as __require
41
+ p as Virtualizer,
42
+ S as defaultKeyExtractor,
43
+ V as defaultRangeExtractor,
44
+ f as elementScroll,
45
+ b as measureElement,
46
+ s as observeElementOffset,
47
+ d as observeElementRect,
48
+ z as useVirtualizer
95
49
  };
package/dist/index346.js CHANGED
@@ -1,10 +1,13 @@
1
- import { debounce as I, memo as d, notUndefined as f, approxEqual as M } from "./index347.js";
2
- const z = (r) => r, y = (r) => {
3
- const a = Math.max(r.startIndex - r.overscan, 0), t = Math.min(r.endIndex + r.overscan, r.count - 1), s = [];
4
- for (let e = a; e <= t; e++)
1
+ import { debounce as M, memo as d, notUndefined as m, approxEqual as y } from "./index347.js";
2
+ const b = (r) => {
3
+ const { offsetWidth: h, offsetHeight: t } = r;
4
+ return { width: h, height: t };
5
+ }, z = (r) => r, w = (r) => {
6
+ const h = Math.max(r.startIndex - r.overscan, 0), t = Math.min(r.endIndex + r.overscan, r.count - 1), s = [];
7
+ for (let e = h; e <= t; e++)
5
8
  s.push(e);
6
9
  return s;
7
- }, R = (r, a) => {
10
+ }, _ = (r, h) => {
8
11
  const t = r.scrollElement;
9
12
  if (!t)
10
13
  return;
@@ -12,32 +15,32 @@ const z = (r) => r, y = (r) => {
12
15
  if (!s)
13
16
  return;
14
17
  const e = (n) => {
15
- const { width: o, height: l } = n;
16
- a({ width: Math.round(o), height: Math.round(l) });
18
+ const { width: o, height: a } = n;
19
+ h({ width: Math.round(o), height: Math.round(a) });
17
20
  };
18
- if (e(t.getBoundingClientRect()), !s.ResizeObserver)
21
+ if (e(b(t)), !s.ResizeObserver)
19
22
  return () => {
20
23
  };
21
24
  const i = new s.ResizeObserver((n) => {
22
25
  const o = () => {
23
- const l = n[0];
24
- if (l != null && l.borderBoxSize) {
25
- const c = l.borderBoxSize[0];
26
+ const a = n[0];
27
+ if (a != null && a.borderBoxSize) {
28
+ const c = a.borderBoxSize[0];
26
29
  if (c) {
27
30
  e({ width: c.inlineSize, height: c.blockSize });
28
31
  return;
29
32
  }
30
33
  }
31
- e(t.getBoundingClientRect());
34
+ e(b(t));
32
35
  };
33
36
  r.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(o) : o();
34
37
  });
35
38
  return i.observe(t, { box: "border-box" }), () => {
36
39
  i.unobserve(t);
37
40
  };
38
- }, b = {
41
+ }, x = {
39
42
  passive: !0
40
- }, E = typeof window > "u" ? !0 : "onscrollend" in window, _ = (r, a) => {
43
+ }, E = typeof window > "u" ? !0 : "onscrollend" in window, A = (r, h) => {
41
44
  const t = r.scrollElement;
42
45
  if (!t)
43
46
  return;
@@ -46,45 +49,43 @@ const z = (r) => r, y = (r) => {
46
49
  return;
47
50
  let e = 0;
48
51
  const i = r.options.useScrollendEvent && E ? () => {
49
- } : I(
52
+ } : M(
50
53
  s,
51
54
  () => {
52
- a(e, !1);
55
+ h(e, !1);
53
56
  },
54
57
  r.options.isScrollingResetDelay
55
- ), n = (h) => () => {
56
- const { horizontal: m, isRtl: u } = r.options;
57
- e = m ? t.scrollLeft * (u && -1 || 1) : t.scrollTop, i(), a(e, h);
58
- }, o = n(!0), l = n(!1);
59
- l(), t.addEventListener("scroll", o, b);
58
+ ), n = (l) => () => {
59
+ const { horizontal: f, isRtl: u } = r.options;
60
+ e = f ? t.scrollLeft * (u && -1 || 1) : t.scrollTop, i(), h(e, l);
61
+ }, o = n(!0), a = n(!1);
62
+ a(), t.addEventListener("scroll", o, x);
60
63
  const c = r.options.useScrollendEvent && E;
61
- return c && t.addEventListener("scrollend", l, b), () => {
62
- t.removeEventListener("scroll", o), c && t.removeEventListener("scrollend", l);
64
+ return c && t.addEventListener("scrollend", a, x), () => {
65
+ t.removeEventListener("scroll", o), c && t.removeEventListener("scrollend", a);
63
66
  };
64
- }, w = (r, a, t) => {
65
- if (a != null && a.borderBoxSize) {
66
- const s = a.borderBoxSize[0];
67
+ }, C = (r, h, t) => {
68
+ if (h != null && h.borderBoxSize) {
69
+ const s = h.borderBoxSize[0];
67
70
  if (s)
68
71
  return Math.round(
69
72
  s[t.options.horizontal ? "inlineSize" : "blockSize"]
70
73
  );
71
74
  }
72
- return Math.round(
73
- r.getBoundingClientRect()[t.options.horizontal ? "width" : "height"]
74
- );
75
- }, A = (r, {
76
- adjustments: a = 0,
75
+ return r[t.options.horizontal ? "offsetWidth" : "offsetHeight"];
76
+ }, D = (r, {
77
+ adjustments: h = 0,
77
78
  behavior: t
78
79
  }, s) => {
79
80
  var e, i;
80
- const n = r + a;
81
+ const n = r + h;
81
82
  (i = (e = s.scrollElement) == null ? void 0 : e.scrollTo) == null || i.call(e, {
82
83
  [s.options.horizontal ? "left" : "top"]: n,
83
84
  behavior: t
84
85
  });
85
86
  };
86
- class D {
87
- constructor(a) {
87
+ class N {
88
+ constructor(h) {
88
89
  this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollToIndexTimeoutId = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
89
90
  let t = null;
90
91
  const s = () => t || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : t = new this.targetWindow.ResizeObserver((e) => {
@@ -122,10 +123,10 @@ class D {
122
123
  scrollPaddingEnd: 0,
123
124
  horizontal: !1,
124
125
  getItemKey: z,
125
- rangeExtractor: y,
126
+ rangeExtractor: w,
126
127
  onChange: () => {
127
128
  },
128
- measureElement: w,
129
+ measureElement: C,
129
130
  initialRect: { width: 0, height: 0 },
130
131
  scrollMargin: 0,
131
132
  gap: 0,
@@ -135,7 +136,7 @@ class D {
135
136
  isScrollingResetDelay: 150,
136
137
  enabled: !0,
137
138
  isRtl: !1,
138
- useScrollendEvent: !0,
139
+ useScrollendEvent: !1,
139
140
  useAnimationFrameWithResizeObserver: !1,
140
141
  ...t
141
142
  };
@@ -193,10 +194,10 @@ class D {
193
194
  const o = t[n];
194
195
  if (e.has(o.lane))
195
196
  continue;
196
- const l = i.get(
197
+ const a = i.get(
197
198
  o.lane
198
199
  );
199
- if (l == null || o.end > l.end ? i.set(o.lane, o) : o.end < l.end && e.set(o.lane, !0), e.size === this.options.lanes)
200
+ if (a == null || o.end > a.end ? i.set(o.lane, o) : o.end < a.end && e.set(o.lane, !0), e.size === this.options.lanes)
200
201
  break;
201
202
  }
202
203
  return i.size === this.options.lanes ? Array.from(i.values()).sort((n, o) => n.end === o.end ? n.index - o.index : n.end - o.end)[0] : void 0;
@@ -223,21 +224,21 @@ class D {
223
224
  ({ count: t, paddingStart: s, scrollMargin: e, getItemKey: i, enabled: n }, o) => {
224
225
  if (!n)
225
226
  return this.measurementsCache = [], this.itemSizeCache.clear(), [];
226
- this.measurementsCache.length === 0 && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((h) => {
227
- this.itemSizeCache.set(h.key, h.size);
227
+ this.measurementsCache.length === 0 && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((l) => {
228
+ this.itemSizeCache.set(l.key, l.size);
228
229
  }));
229
- const l = this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
230
+ const a = this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
230
231
  this.pendingMeasuredCacheIndexes = [];
231
- const c = this.measurementsCache.slice(0, l);
232
- for (let h = l; h < t; h++) {
233
- const m = i(h), u = this.options.lanes === 1 ? c[h - 1] : this.getFurthestMeasurement(c, h), g = u ? u.end + this.options.gap : s + e, p = o.get(m), v = typeof p == "number" ? p : this.options.estimateSize(h), S = g + v, O = u ? u.lane : h % this.options.lanes;
234
- c[h] = {
235
- index: h,
232
+ const c = this.measurementsCache.slice(0, a);
233
+ for (let l = a; l < t; l++) {
234
+ const f = i(l), u = this.options.lanes === 1 ? c[l - 1] : this.getFurthestMeasurement(c, l), g = u ? u.end + this.options.gap : s + e, p = o.get(f), v = typeof p == "number" ? p : this.options.estimateSize(l), O = g + v, I = u ? u.lane : l % this.options.lanes;
235
+ c[l] = {
236
+ index: l,
236
237
  start: g,
237
238
  size: v,
238
- end: S,
239
- key: m,
240
- lane: O
239
+ end: O,
240
+ key: f,
241
+ lane: I
241
242
  };
242
243
  }
243
244
  return this.measurementsCache = c, c;
@@ -253,7 +254,7 @@ class D {
253
254
  this.getScrollOffset(),
254
255
  this.options.lanes
255
256
  ],
256
- (t, s, e, i) => this.range = t.length > 0 && s > 0 ? C({
257
+ (t, s, e, i) => this.range = t.length > 0 && s > 0 ? T({
257
258
  measurements: t,
258
259
  outerSize: s,
259
260
  scrollOffset: e,
@@ -267,7 +268,7 @@ class D {
267
268
  () => {
268
269
  let t = null, s = null;
269
270
  const e = this.calculateRange();
270
- return e && (t = e.startIndex, s = e.endIndex), [
271
+ return e && (t = e.startIndex, s = e.endIndex), this.maybeNotify.updateDeps([this.isScrolling, t, s]), [
271
272
  this.options.rangeExtractor,
272
273
  this.options.overscan,
273
274
  this.options.count,
@@ -318,8 +319,8 @@ class D {
318
319
  (t, s) => {
319
320
  const e = [];
320
321
  for (let i = 0, n = t.length; i < n; i++) {
321
- const o = t[i], l = s[o];
322
- e.push(l);
322
+ const o = t[i], a = s[o];
323
+ e.push(a);
323
324
  }
324
325
  return e;
325
326
  },
@@ -330,19 +331,19 @@ class D {
330
331
  ), this.getVirtualItemForOffset = (t) => {
331
332
  const s = this.getMeasurements();
332
333
  if (s.length !== 0)
333
- return f(
334
- s[x(
334
+ return m(
335
+ s[S(
335
336
  0,
336
337
  s.length - 1,
337
- (e) => f(s[e]).start,
338
+ (e) => m(s[e]).start,
338
339
  t
339
340
  )]
340
341
  );
341
342
  }, this.getOffsetForAlignment = (t, s, e = 0) => {
342
343
  const i = this.getSize(), n = this.getScrollOffset();
343
344
  s === "auto" && (s = t >= n + i ? "end" : "start"), s === "center" ? t += (e - i) / 2 : s === "end" && (t -= i);
344
- const o = this.options.horizontal ? "scrollWidth" : "scrollHeight", c = (this.scrollElement ? "document" in this.scrollElement ? this.scrollElement.document.documentElement[o] : this.scrollElement[o] : 0) - i;
345
- return Math.max(Math.min(c, t), 0);
345
+ const o = this.getTotalSize() - i;
346
+ return Math.max(Math.min(o, t), 0);
346
347
  }, this.getOffsetForIndex = (t, s = "auto") => {
347
348
  t = Math.max(0, Math.min(t, this.options.count - 1));
348
349
  const e = this.measurementsCache[t];
@@ -381,10 +382,10 @@ class D {
381
382
  if (this.scrollToIndexTimeoutId = null, this.elementsCache.has(
382
383
  this.options.getItemKey(t)
383
384
  )) {
384
- const [c] = f(
385
+ const [c] = m(
385
386
  this.getOffsetForIndex(t, o)
386
- );
387
- M(c, this.getScrollOffset()) || this.scrollToIndex(t, { align: o, behavior: e });
387
+ ), l = this.getScrollOffset();
388
+ y(c, l) || this.scrollToIndex(t, { align: o, behavior: e });
388
389
  } else
389
390
  this.scrollToIndex(t, { align: o, behavior: e });
390
391
  }));
@@ -406,7 +407,7 @@ class D {
406
407
  else {
407
408
  const i = Array(this.options.lanes).fill(null);
408
409
  let n = s.length - 1;
409
- for (; n > 0 && i.some((o) => o === null); ) {
410
+ for (; n >= 0 && i.some((o) => o === null); ) {
410
411
  const o = s[n];
411
412
  i[o.lane] === null && (i[o.lane] = o.end), n--;
412
413
  }
@@ -423,62 +424,67 @@ class D {
423
424
  this.options.scrollToFn(t, { behavior: e, adjustments: s }, this);
424
425
  }, this.measure = () => {
425
426
  this.itemSizeCache = /* @__PURE__ */ new Map(), this.notify(!1);
426
- }, this.setOptions(a);
427
+ }, this.setOptions(h);
427
428
  }
428
429
  }
429
- const x = (r, a, t, s) => {
430
- for (; r <= a; ) {
431
- const e = (r + a) / 2 | 0, i = t(e);
430
+ const S = (r, h, t, s) => {
431
+ for (; r <= h; ) {
432
+ const e = (r + h) / 2 | 0, i = t(e);
432
433
  if (i < s)
433
434
  r = e + 1;
434
435
  else if (i > s)
435
- a = e - 1;
436
+ h = e - 1;
436
437
  else
437
438
  return e;
438
439
  }
439
440
  return r > 0 ? r - 1 : 0;
440
441
  };
441
- function C({
442
+ function T({
442
443
  measurements: r,
443
- outerSize: a,
444
+ outerSize: h,
444
445
  scrollOffset: t,
445
446
  lanes: s
446
447
  }) {
447
- const e = r.length - 1;
448
- let n = x(
448
+ const e = r.length - 1, i = (a) => r[a].start;
449
+ if (r.length <= s)
450
+ return {
451
+ startIndex: 0,
452
+ endIndex: e
453
+ };
454
+ let n = S(
449
455
  0,
450
456
  e,
451
- (l) => r[l].start,
457
+ i,
452
458
  t
453
459
  ), o = n;
454
460
  if (s === 1)
455
- for (; o < e && r[o].end < t + a; )
461
+ for (; o < e && r[o].end < t + h; )
456
462
  o++;
457
463
  else if (s > 1) {
458
- const l = Array(s).fill(0);
459
- for (; o < e && l.some((h) => h < t + a); ) {
460
- const h = r[o];
461
- l[h.lane] = h.end, o++;
464
+ const a = Array(s).fill(0);
465
+ for (; o < e && a.some((l) => l < t + h); ) {
466
+ const l = r[o];
467
+ a[l.lane] = l.end, o++;
462
468
  }
463
- const c = Array(s).fill(t + a);
464
- for (; n > 0 && c.some((h) => h >= t); ) {
465
- const h = r[n];
466
- c[h.lane] = h.start, n--;
469
+ const c = Array(s).fill(t + h);
470
+ for (; n >= 0 && c.some((l) => l >= t); ) {
471
+ const l = r[n];
472
+ c[l.lane] = l.start, n--;
467
473
  }
468
474
  n = Math.max(0, n - n % s), o = Math.min(e, o + (s - 1 - o % s));
469
475
  }
470
476
  return { startIndex: n, endIndex: o };
471
477
  }
472
478
  export {
473
- D as Virtualizer,
474
- M as approxEqual,
475
- I as debounce,
479
+ N as Virtualizer,
480
+ y as approxEqual,
481
+ M as debounce,
476
482
  z as defaultKeyExtractor,
477
- y as defaultRangeExtractor,
478
- A as elementScroll,
479
- w as measureElement,
483
+ w as defaultRangeExtractor,
484
+ D as elementScroll,
485
+ C as measureElement,
480
486
  d as memo,
481
- f as notUndefined,
482
- _ as observeElementOffset,
483
- R as observeElementRect
487
+ m as notUndefined,
488
+ A as observeElementOffset,
489
+ _ as observeElementRect
484
490
  };
package/dist/index347.js CHANGED
@@ -1,49 +1,52 @@
1
- function D(n, l, e) {
2
- let i = e.initialDeps ?? [], t;
3
- return () => {
4
- var r, c, h, m;
5
- let f;
6
- e.key && ((r = e.debug) != null && r.call(e)) && (f = Date.now());
7
- const o = n();
8
- if (!(o.length !== i.length || o.some((a, u) => i[u] !== a)))
9
- return t;
10
- i = o;
1
+ function T(n, i, e) {
2
+ let l = e.initialDeps ?? [], t;
3
+ function r() {
4
+ var o, m, h, f;
11
5
  let g;
12
- if (e.key && ((c = e.debug) != null && c.call(e)) && (g = Date.now()), t = l(...o), e.key && ((h = e.debug) != null && h.call(e))) {
13
- const a = Math.round((Date.now() - f) * 100) / 100, u = Math.round((Date.now() - g) * 100) / 100, w = u / 16, s = (d, b) => {
14
- for (d = String(d); d.length < b; )
6
+ e.key && ((o = e.debug) != null && o.call(e)) && (g = Date.now());
7
+ const u = n();
8
+ if (!(u.length !== l.length || u.some((c, a) => l[a] !== c)))
9
+ return t;
10
+ l = u;
11
+ let s;
12
+ if (e.key && ((m = e.debug) != null && m.call(e)) && (s = Date.now()), t = i(...u), e.key && ((h = e.debug) != null && h.call(e))) {
13
+ const c = Math.round((Date.now() - g) * 100) / 100, a = Math.round((Date.now() - s) * 100) / 100, b = a / 16, w = (d, v) => {
14
+ for (d = String(d); d.length < v; )
15
15
  d = " " + d;
16
16
  return d;
17
17
  };
18
18
  console.info(
19
- `%c⏱ ${s(u, 5)} /${s(a, 5)} ms`,
19
+ `%c⏱ ${w(a, 5)} /${w(c, 5)} ms`,
20
20
  `
21
21
  font-size: .6rem;
22
22
  font-weight: bold;
23
23
  color: hsl(${Math.max(
24
24
  0,
25
- Math.min(120 - 120 * w, 120)
25
+ Math.min(120 - 120 * b, 120)
26
26
  )}deg 100% 31%);`,
27
27
  e == null ? void 0 : e.key
28
28
  );
29
29
  }
30
- return (m = e == null ? void 0 : e.onChange) == null || m.call(e, t), t;
31
- };
30
+ return (f = e == null ? void 0 : e.onChange) == null || f.call(e, t), t;
31
+ }
32
+ return r.updateDeps = (o) => {
33
+ l = o;
34
+ }, r;
32
35
  }
33
- function T(n, l) {
36
+ function y(n, i) {
34
37
  if (n === void 0)
35
38
  throw new Error("Unexpected undefined");
36
39
  return n;
37
40
  }
38
- const y = (n, l) => Math.abs(n - l) < 1, M = (n, l, e) => {
39
- let i;
41
+ const M = (n, i) => Math.abs(n - i) <= 1, k = (n, i, e) => {
42
+ let l;
40
43
  return function(...t) {
41
- n.clearTimeout(i), i = n.setTimeout(() => l.apply(this, t), e);
44
+ n.clearTimeout(l), l = n.setTimeout(() => i.apply(this, t), e);
42
45
  };
43
46
  };
44
47
  export {
45
- y as approxEqual,
46
- M as debounce,
47
- D as memo,
48
- T as notUndefined
48
+ M as approxEqual,
49
+ k as debounce,
50
+ T as memo,
51
+ y as notUndefined
49
52
  };
package/dist/index35.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as I, ref as v, computed as f, createElementBlock as l, openBlock as r, mergeProps as h, createElementVNode as i, renderSlot as p, Fragment as V, renderList as M, normalizeClass as D, toDisplayString as F, unref as y } from "vue";
2
- import { booleanishToBoolean as T } from "./index220.js";
3
- import { identity as $ } from "./index241.js";
4
- import { isCssColor as k } from "./index218.js";
2
+ import { booleanishToBoolean as T } from "./index214.js";
3
+ import { identity as $ } from "./index225.js";
4
+ import { isCssColor as k } from "./index212.js";
5
5
  import { isNotNil as q } from "./index140.js";
6
- import { useLocale as x } from "./index222.js";
6
+ import { useLocale as x } from "./index210.js";
7
7
  const H = { class: "bb-base-rating__inner-container" }, S = { class: "bb-base-rating__label-text sr-only" }, N = ["id", "aria-describedby", "autofocus", "checked", "disabled", "name", "required", "value"], j = ["height", "width"], W = /* @__PURE__ */ I({
8
8
  __name: "BaseRating",
9
9
  props: {