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/index304.js CHANGED
@@ -1,49 +1,423 @@
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;
11
- 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; )
15
- d = " " + d;
16
- return d;
17
- };
18
- console.info(
19
- `%c⏱ ${s(u, 5)} /${s(a, 5)} ms`,
20
- `
21
- font-size: .6rem;
22
- font-weight: bold;
23
- color: hsl(${Math.max(
24
- 0,
25
- Math.min(120 - 120 * w, 120)
26
- )}deg 100% 31%);`,
27
- e == null ? void 0 : e.key
28
- );
1
+ import { debounce as C, memo as f, notUndefined as b, approxEqual as y } from "./index305.js";
2
+ const T = (r) => r, _ = (r) => {
3
+ const h = Math.max(r.startIndex - r.overscan, 0), e = Math.min(r.endIndex + r.overscan, r.count - 1), s = [];
4
+ for (let t = h; t <= e; t++)
5
+ s.push(t);
6
+ return s;
7
+ }, A = (r, h) => {
8
+ const e = r.scrollElement;
9
+ if (!e)
10
+ return;
11
+ const s = r.targetWindow;
12
+ if (!s)
13
+ return;
14
+ const t = (n) => {
15
+ const { width: o, height: l } = n;
16
+ h({ width: Math.round(o), height: Math.round(l) });
17
+ };
18
+ if (t(e.getBoundingClientRect()), !s.ResizeObserver)
19
+ return () => {
20
+ };
21
+ const i = new s.ResizeObserver((n) => {
22
+ const o = n[0];
23
+ if (o != null && o.borderBoxSize) {
24
+ const l = o.borderBoxSize[0];
25
+ if (l) {
26
+ t({ width: l.inlineSize, height: l.blockSize });
27
+ return;
28
+ }
29
29
  }
30
- return (m = e == null ? void 0 : e.onChange) == null || m.call(e, t), t;
30
+ t(e.getBoundingClientRect());
31
+ });
32
+ return i.observe(e, { box: "border-box" }), () => {
33
+ i.unobserve(e);
31
34
  };
32
- }
33
- function T(n, l) {
34
- if (n === void 0)
35
- throw new Error("Unexpected undefined");
36
- return n;
37
- }
38
- const y = (n, l) => Math.abs(n - l) < 1, M = (n, l, e) => {
39
- let i;
40
- return function(...t) {
41
- n.clearTimeout(i), i = n.setTimeout(() => l.apply(this, t), e);
35
+ }, M = {
36
+ passive: !0
37
+ }, R = typeof window > "u" ? !0 : "onscrollend" in window, F = (r, h) => {
38
+ const e = r.scrollElement;
39
+ if (!e)
40
+ return;
41
+ const s = r.targetWindow;
42
+ if (!s)
43
+ return;
44
+ let t = 0;
45
+ const i = R ? () => {
46
+ } : C(
47
+ s,
48
+ () => {
49
+ h(t, !1);
50
+ },
51
+ r.options.isScrollingResetDelay
52
+ ), n = (c) => () => {
53
+ t = e[r.options.horizontal ? "scrollLeft" : "scrollTop"], i(), h(t, c);
54
+ }, o = n(!0), l = n(!1);
55
+ return l(), e.addEventListener("scroll", o, M), e.addEventListener("scrollend", l, M), () => {
56
+ e.removeEventListener("scroll", o), e.removeEventListener("scrollend", l);
42
57
  };
58
+ }, k = (r, h, e) => {
59
+ if (h != null && h.borderBoxSize) {
60
+ const s = h.borderBoxSize[0];
61
+ if (s)
62
+ return Math.round(
63
+ s[e.options.horizontal ? "inlineSize" : "blockSize"]
64
+ );
65
+ }
66
+ return Math.round(
67
+ r.getBoundingClientRect()[e.options.horizontal ? "width" : "height"]
68
+ );
69
+ }, N = (r, {
70
+ adjustments: h = 0,
71
+ behavior: e
72
+ }, s) => {
73
+ var t, i;
74
+ const n = r + h;
75
+ (i = (t = s.scrollElement) == null ? void 0 : t.scrollTo) == null || i.call(t, {
76
+ [s.options.horizontal ? "left" : "top"]: n,
77
+ behavior: e
78
+ });
43
79
  };
80
+ class j {
81
+ constructor(h) {
82
+ 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__ */ (() => {
83
+ let e = null;
84
+ const s = () => e || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : e = new this.targetWindow.ResizeObserver((t) => {
85
+ t.forEach((i) => {
86
+ this._measureElement(i.target, i);
87
+ });
88
+ }));
89
+ return {
90
+ disconnect: () => {
91
+ var t;
92
+ return (t = s()) == null ? void 0 : t.disconnect();
93
+ },
94
+ observe: (t) => {
95
+ var i;
96
+ return (i = s()) == null ? void 0 : i.observe(t, { box: "border-box" });
97
+ },
98
+ unobserve: (t) => {
99
+ var i;
100
+ return (i = s()) == null ? void 0 : i.unobserve(t);
101
+ }
102
+ };
103
+ })(), this.range = null, this.setOptions = (e) => {
104
+ Object.entries(e).forEach(([s, t]) => {
105
+ typeof t > "u" && delete e[s];
106
+ }), this.options = {
107
+ debug: !1,
108
+ initialOffset: 0,
109
+ overscan: 1,
110
+ paddingStart: 0,
111
+ paddingEnd: 0,
112
+ scrollPaddingStart: 0,
113
+ scrollPaddingEnd: 0,
114
+ horizontal: !1,
115
+ getItemKey: T,
116
+ rangeExtractor: _,
117
+ onChange: () => {
118
+ },
119
+ measureElement: k,
120
+ initialRect: { width: 0, height: 0 },
121
+ scrollMargin: 0,
122
+ gap: 0,
123
+ indexAttribute: "data-index",
124
+ initialMeasurementsCache: [],
125
+ lanes: 1,
126
+ isScrollingResetDelay: 150,
127
+ enabled: !0,
128
+ ...e
129
+ };
130
+ }, this.notify = (e, s) => {
131
+ var t, i;
132
+ const { startIndex: n, endIndex: o } = this.range ?? {
133
+ startIndex: void 0,
134
+ endIndex: void 0
135
+ }, l = this.calculateRange();
136
+ (e || n !== (l == null ? void 0 : l.startIndex) || o !== (l == null ? void 0 : l.endIndex)) && ((i = (t = this.options).onChange) == null || i.call(t, this, s));
137
+ }, this.cleanup = () => {
138
+ this.unsubs.filter(Boolean).forEach((e) => e()), this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.observer.disconnect(), this.elementsCache.clear();
139
+ }, this._didMount = () => () => {
140
+ this.cleanup();
141
+ }, this._willUpdate = () => {
142
+ var e;
143
+ const s = this.options.enabled ? this.options.getScrollElement() : null;
144
+ if (this.scrollElement !== s) {
145
+ if (this.cleanup(), !s) {
146
+ this.notify(!1, !1);
147
+ return;
148
+ }
149
+ this.scrollElement = s, this.scrollElement && "ownerDocument" in this.scrollElement ? this.targetWindow = this.scrollElement.ownerDocument.defaultView : this.targetWindow = ((e = this.scrollElement) == null ? void 0 : e.window) ?? null, this._scrollToOffset(this.getScrollOffset(), {
150
+ adjustments: void 0,
151
+ behavior: void 0
152
+ }), this.unsubs.push(
153
+ this.options.observeElementRect(this, (t) => {
154
+ this.scrollRect = t, this.notify(!1, !1);
155
+ })
156
+ ), this.unsubs.push(
157
+ this.options.observeElementOffset(this, (t, i) => {
158
+ this.scrollAdjustments = 0, this.scrollDirection = i ? this.getScrollOffset() < t ? "forward" : "backward" : null, this.scrollOffset = t;
159
+ const n = this.isScrolling;
160
+ this.isScrolling = i, this.notify(n !== i, i);
161
+ })
162
+ );
163
+ }
164
+ }, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getFurthestMeasurement = (e, s) => {
165
+ const t = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
166
+ for (let n = s - 1; n >= 0; n--) {
167
+ const o = e[n];
168
+ if (t.has(o.lane))
169
+ continue;
170
+ const l = i.get(
171
+ o.lane
172
+ );
173
+ if (l == null || o.end > l.end ? i.set(o.lane, o) : o.end < l.end && t.set(o.lane, !0), t.size === this.options.lanes)
174
+ break;
175
+ }
176
+ 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;
177
+ }, this.getMeasurementOptions = f(
178
+ () => [
179
+ this.options.count,
180
+ this.options.paddingStart,
181
+ this.options.scrollMargin,
182
+ this.options.getItemKey,
183
+ this.options.enabled
184
+ ],
185
+ (e, s, t, i, n) => (this.pendingMeasuredCacheIndexes = [], {
186
+ count: e,
187
+ paddingStart: s,
188
+ scrollMargin: t,
189
+ getItemKey: i,
190
+ enabled: n
191
+ }),
192
+ {
193
+ key: !1
194
+ }
195
+ ), this.getMeasurements = f(
196
+ () => [this.getMeasurementOptions(), this.itemSizeCache],
197
+ ({ count: e, paddingStart: s, scrollMargin: t, getItemKey: i, enabled: n }, o) => {
198
+ var l;
199
+ if (!n)
200
+ return this.measurementsCache = [], this.itemSizeCache.clear(), [];
201
+ this.measurementsCache.length === 0 && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((a) => {
202
+ this.itemSizeCache.set(a.key, a.size);
203
+ }));
204
+ const c = this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
205
+ this.pendingMeasuredCacheIndexes = [];
206
+ const d = this.measurementsCache.slice(0, c);
207
+ for (let a = c; a < e; a++) {
208
+ let p = (l = this.measurementsCache[a]) == null ? void 0 : l.measureElement;
209
+ p || (p = (u) => {
210
+ const v = i(a), m = this.elementsCache.get(v);
211
+ if (!u) {
212
+ m && (this.observer.unobserve(m), this.elementsCache.delete(v));
213
+ return;
214
+ }
215
+ m !== u && (m && this.observer.unobserve(m), this.observer.observe(u), this.elementsCache.set(v, u)), u.isConnected && this.resizeItem(
216
+ a,
217
+ this.options.measureElement(u, void 0, this)
218
+ );
219
+ });
220
+ const x = i(a), g = this.options.lanes === 1 ? d[a - 1] : this.getFurthestMeasurement(d, a), E = g ? g.end + this.options.gap : s + t, I = o.get(x), S = typeof I == "number" ? I : this.options.estimateSize(a), O = E + S, w = g ? g.lane : a % this.options.lanes;
221
+ d[a] = {
222
+ index: a,
223
+ start: E,
224
+ size: S,
225
+ end: O,
226
+ key: x,
227
+ lane: w,
228
+ measureElement: p
229
+ };
230
+ }
231
+ return this.measurementsCache = d, d;
232
+ },
233
+ {
234
+ key: process.env.NODE_ENV !== "production" && "getMeasurements",
235
+ debug: () => this.options.debug
236
+ }
237
+ ), this.calculateRange = f(
238
+ () => [this.getMeasurements(), this.getSize(), this.getScrollOffset()],
239
+ (e, s, t) => this.range = e.length > 0 && s > 0 ? D({
240
+ measurements: e,
241
+ outerSize: s,
242
+ scrollOffset: t
243
+ }) : null,
244
+ {
245
+ key: process.env.NODE_ENV !== "production" && "calculateRange",
246
+ debug: () => this.options.debug
247
+ }
248
+ ), this.getIndexes = f(
249
+ () => [
250
+ this.options.rangeExtractor,
251
+ this.calculateRange(),
252
+ this.options.overscan,
253
+ this.options.count
254
+ ],
255
+ (e, s, t, i) => s === null ? [] : e({
256
+ startIndex: s.startIndex,
257
+ endIndex: s.endIndex,
258
+ overscan: t,
259
+ count: i
260
+ }),
261
+ {
262
+ key: process.env.NODE_ENV !== "production" && "getIndexes",
263
+ debug: () => this.options.debug
264
+ }
265
+ ), this.indexFromElement = (e) => {
266
+ const s = this.options.indexAttribute, t = e.getAttribute(s);
267
+ return t ? parseInt(t, 10) : (console.warn(
268
+ `Missing attribute name '${s}={index}' on measured element.`
269
+ ), -1);
270
+ }, this._measureElement = (e, s) => {
271
+ const t = this.indexFromElement(e), i = this.getMeasurements()[t];
272
+ if (!i || !e.isConnected) {
273
+ this.elementsCache.forEach((o, l) => {
274
+ o === e && (this.observer.unobserve(e), this.elementsCache.delete(l));
275
+ });
276
+ return;
277
+ }
278
+ const n = this.elementsCache.get(i.key);
279
+ n !== e && (n && this.observer.unobserve(n), this.observer.observe(e), this.elementsCache.set(i.key, e)), this.resizeItem(t, this.options.measureElement(e, s, this));
280
+ }, this.resizeItem = (e, s) => {
281
+ const t = this.getMeasurements()[e];
282
+ if (!t)
283
+ return;
284
+ const i = this.itemSizeCache.get(t.key) ?? t.size, n = s - i;
285
+ n !== 0 && ((this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(t, n, this) : t.start < this.getScrollOffset() + this.scrollAdjustments) && (process.env.NODE_ENV !== "production" && this.options.debug && console.info("correction", n), this._scrollToOffset(this.getScrollOffset(), {
286
+ adjustments: this.scrollAdjustments += n,
287
+ behavior: void 0
288
+ })), this.pendingMeasuredCacheIndexes.push(t.index), this.itemSizeCache = new Map(this.itemSizeCache.set(t.key, s)), this.notify(!0, !1));
289
+ }, this.measureElement = (e) => {
290
+ e && this._measureElement(e, void 0);
291
+ }, this.getVirtualItems = f(
292
+ () => [this.getIndexes(), this.getMeasurements()],
293
+ (e, s) => {
294
+ const t = [];
295
+ for (let i = 0, n = e.length; i < n; i++) {
296
+ const o = e[i], l = s[o];
297
+ t.push(l);
298
+ }
299
+ return t;
300
+ },
301
+ {
302
+ key: process.env.NODE_ENV !== "production" && "getIndexes",
303
+ debug: () => this.options.debug
304
+ }
305
+ ), this.getVirtualItemForOffset = (e) => {
306
+ const s = this.getMeasurements();
307
+ if (s.length !== 0)
308
+ return b(
309
+ s[z(
310
+ 0,
311
+ s.length - 1,
312
+ (t) => b(s[t]).start,
313
+ e
314
+ )]
315
+ );
316
+ }, this.getOffsetForAlignment = (e, s) => {
317
+ const t = this.getSize(), i = this.getScrollOffset();
318
+ s === "auto" && (e <= i ? s = "start" : e >= i + t ? s = "end" : s = "start"), s === "start" ? e = e : s === "end" ? e = e - t : s === "center" && (e = e - t / 2);
319
+ const n = this.options.horizontal ? "scrollWidth" : "scrollHeight", l = (this.scrollElement ? "document" in this.scrollElement ? this.scrollElement.document.documentElement[n] : this.scrollElement[n] : 0) - t;
320
+ return Math.max(Math.min(l, e), 0);
321
+ }, this.getOffsetForIndex = (e, s = "auto") => {
322
+ e = Math.max(0, Math.min(e, this.options.count - 1));
323
+ const t = this.getMeasurements()[e];
324
+ if (!t)
325
+ return;
326
+ const i = this.getSize(), n = this.getScrollOffset();
327
+ if (s === "auto")
328
+ if (t.end >= n + i - this.options.scrollPaddingEnd)
329
+ s = "end";
330
+ else if (t.start <= n + this.options.scrollPaddingStart)
331
+ s = "start";
332
+ else
333
+ return [n, s];
334
+ const o = s === "end" ? t.end + this.options.scrollPaddingEnd : t.start - this.options.scrollPaddingStart;
335
+ return [this.getOffsetForAlignment(o, s), s];
336
+ }, this.isDynamicMode = () => this.elementsCache.size > 0, this.cancelScrollToIndex = () => {
337
+ this.scrollToIndexTimeoutId !== null && this.targetWindow && (this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId), this.scrollToIndexTimeoutId = null);
338
+ }, this.scrollToOffset = (e, { align: s = "start", behavior: t } = {}) => {
339
+ this.cancelScrollToIndex(), t === "smooth" && this.isDynamicMode() && console.warn(
340
+ "The `smooth` scroll behavior is not fully supported with dynamic size."
341
+ ), this._scrollToOffset(this.getOffsetForAlignment(e, s), {
342
+ adjustments: void 0,
343
+ behavior: t
344
+ });
345
+ }, this.scrollToIndex = (e, { align: s = "auto", behavior: t } = {}) => {
346
+ e = Math.max(0, Math.min(e, this.options.count - 1)), this.cancelScrollToIndex(), t === "smooth" && this.isDynamicMode() && console.warn(
347
+ "The `smooth` scroll behavior is not fully supported with dynamic size."
348
+ );
349
+ const i = this.getOffsetForIndex(e, s);
350
+ if (!i) return;
351
+ const [n, o] = i;
352
+ this._scrollToOffset(n, { adjustments: void 0, behavior: t }), t !== "smooth" && this.isDynamicMode() && this.targetWindow && (this.scrollToIndexTimeoutId = this.targetWindow.setTimeout(() => {
353
+ if (this.scrollToIndexTimeoutId = null, this.elementsCache.has(
354
+ this.options.getItemKey(e)
355
+ )) {
356
+ const [c] = b(
357
+ this.getOffsetForIndex(e, o)
358
+ );
359
+ y(c, this.getScrollOffset()) || this.scrollToIndex(e, { align: o, behavior: t });
360
+ } else
361
+ this.scrollToIndex(e, { align: o, behavior: t });
362
+ }));
363
+ }, this.scrollBy = (e, { behavior: s } = {}) => {
364
+ this.cancelScrollToIndex(), s === "smooth" && this.isDynamicMode() && console.warn(
365
+ "The `smooth` scroll behavior is not fully supported with dynamic size."
366
+ ), this._scrollToOffset(this.getScrollOffset() + e, {
367
+ adjustments: void 0,
368
+ behavior: s
369
+ });
370
+ }, this.getTotalSize = () => {
371
+ var e;
372
+ const s = this.getMeasurements();
373
+ let t;
374
+ return s.length === 0 ? t = this.options.paddingStart : t = this.options.lanes === 1 ? ((e = s[s.length - 1]) == null ? void 0 : e.end) ?? 0 : Math.max(
375
+ ...s.slice(-this.options.lanes).map((i) => i.end)
376
+ ), t - this.options.scrollMargin + this.options.paddingEnd;
377
+ }, this._scrollToOffset = (e, {
378
+ adjustments: s,
379
+ behavior: t
380
+ }) => {
381
+ this.options.scrollToFn(e, { behavior: t, adjustments: s }, this);
382
+ }, this.measure = () => {
383
+ var e, s;
384
+ this.itemSizeCache = /* @__PURE__ */ new Map(), (s = (e = this.options).onChange) == null || s.call(e, this, !1);
385
+ }, this.setOptions(h);
386
+ }
387
+ }
388
+ const z = (r, h, e, s) => {
389
+ for (; r <= h; ) {
390
+ const t = (r + h) / 2 | 0, i = e(t);
391
+ if (i < s)
392
+ r = t + 1;
393
+ else if (i > s)
394
+ h = t - 1;
395
+ else
396
+ return t;
397
+ }
398
+ return r > 0 ? r - 1 : 0;
399
+ };
400
+ function D({
401
+ measurements: r,
402
+ outerSize: h,
403
+ scrollOffset: e
404
+ }) {
405
+ const s = r.length - 1, i = z(0, s, (o) => r[o].start, e);
406
+ let n = i;
407
+ for (; n < s && r[n].end < e + h; )
408
+ n++;
409
+ return { startIndex: i, endIndex: n };
410
+ }
44
411
  export {
412
+ j as Virtualizer,
45
413
  y as approxEqual,
46
- M as debounce,
47
- D as memo,
48
- T as notUndefined
414
+ C as debounce,
415
+ T as defaultKeyExtractor,
416
+ _ as defaultRangeExtractor,
417
+ N as elementScroll,
418
+ k as measureElement,
419
+ f as memo,
420
+ b as notUndefined,
421
+ F as observeElementOffset,
422
+ A as observeElementRect
49
423
  };
package/dist/index305.js CHANGED
@@ -1,4 +1,49 @@
1
- var e = { exports: {} };
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;
11
+ 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; )
15
+ d = " " + d;
16
+ return d;
17
+ };
18
+ console.info(
19
+ `%c⏱ ${s(u, 5)} /${s(a, 5)} ms`,
20
+ `
21
+ font-size: .6rem;
22
+ font-weight: bold;
23
+ color: hsl(${Math.max(
24
+ 0,
25
+ Math.min(120 - 120 * w, 120)
26
+ )}deg 100% 31%);`,
27
+ e == null ? void 0 : e.key
28
+ );
29
+ }
30
+ return (m = e == null ? void 0 : e.onChange) == null || m.call(e, t), t;
31
+ };
32
+ }
33
+ function T(n, l) {
34
+ if (n === void 0)
35
+ throw new Error("Unexpected undefined");
36
+ return n;
37
+ }
38
+ const y = (n, l) => Math.abs(n - l) < 1, M = (n, l, e) => {
39
+ let i;
40
+ return function(...t) {
41
+ n.clearTimeout(i), i = n.setTimeout(() => l.apply(this, t), e);
42
+ };
43
+ };
2
44
  export {
3
- e as __module
45
+ y as approxEqual,
46
+ M as debounce,
47
+ D as memo,
48
+ T as notUndefined
4
49
  };
package/dist/index31.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as L, ref as m, toRef as l, openBlock as E, createBlock as $, unref as p, withCtx as t, renderSlot as i, normalizeProps as f, guardReactiveProps as b, createVNode as B, mergeProps as v, createSlots as C } from "vue";
2
- import { useOptions as w } from "./index231.js";
2
+ import { useOptions as w } from "./index214.js";
3
3
  import q from "./index29.js";
4
4
  /* empty css */
5
- import z from "./index232.js";
5
+ import z from "./index215.js";
6
6
  /* empty css */
7
7
  const N = /* @__PURE__ */ L({
8
8
  __name: "BaseRadioGroup",
package/dist/index33.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as C, ref as g, computed as f, openBlock as l, createElementBlock as i, mergeProps as h, createElementVNode as r, renderSlot as p, Fragment as I, renderList as V, normalizeClass as B, toDisplayString as M } from "vue";
2
- import { booleanishToBoolean as D } from "./index202.js";
3
- import { identity as F } from "./index224.js";
4
- import { isCssColor as v } from "./index200.js";
2
+ import { booleanishToBoolean as D } from "./index224.js";
3
+ import { identity as F } from "./index230.js";
4
+ import { isCssColor as v } from "./index222.js";
5
5
  import { isNotNil as T } from "./index130.js";
6
6
  const $ = { class: "bb-base-rating__inner-container" }, q = { class: "bb-base-rating__label-text sr-only" }, x = ["id", "aria-describedby", "autofocus", "checked", "disabled", "name", "required", "value"], H = ["height", "width"], N = /* @__PURE__ */ r("path", {
7
7
  d: "m8.243 7.34l-6.38.925l-.113.023a1 1 0 0 0-.44 1.684l4.622 4.499l-1.09 6.355l-.013.11a1 1 0 0 0 1.464.944l5.706-3l5.693 3l.1.046a1 1 0 0 0 1.352-1.1l-1.091-6.355l4.624-4.5l.078-.085a1 1 0 0 0-.633-1.62l-6.38-.926l-2.852-5.78a1 1 0 0 0-1.794 0L8.243 7.34z",
package/dist/index35.js CHANGED
@@ -6,23 +6,23 @@ import { useMobile as We } from "./index9.js";
6
6
  import Re from "./index123.js";
7
7
  /* empty css */
8
8
  import { isNotNil as Je } from "./index130.js";
9
- import { last as Ye } from "./index216.js";
10
- import { matchAnyKey as j } from "./index235.js";
11
- import { useFloating as je } from "./index222.js";
9
+ import { last as Ye } from "./index207.js";
10
+ import { matchAnyKey as j } from "./index236.js";
11
+ import { useFloating as je } from "./index228.js";
12
12
  import { useIntersectionObserver as Ge } from "./index128.js";
13
- import { useLogger as Xe } from "./index203.js";
14
- import { useOptions as Ze } from "./index231.js";
13
+ import { useLogger as Xe } from "./index208.js";
14
+ import { useOptions as Ze } from "./index214.js";
15
15
  import { wait as T } from "./index127.js";
16
- import { when as et } from "./index201.js";
17
- import tt from "./index236.js";
16
+ import { when as et } from "./index223.js";
17
+ import tt from "./index237.js";
18
18
  /* empty css */
19
- import ot from "./index238.js";
19
+ import ot from "./index239.js";
20
20
  /* empty css */
21
- import nt from "./index226.js";
21
+ import nt from "./index225.js";
22
22
  /* empty css */
23
- import lt from "./index228.js";
24
- import { waitFor as at } from "./index207.js";
25
- import { autoUpdate as it, flip as rt, offset as st, shift as ut } from "./index230.js";
23
+ import lt from "./index227.js";
24
+ import { waitFor as at } from "./index219.js";
25
+ import { autoUpdate as it, flip as rt, offset as st, shift as ut } from "./index233.js";
26
26
  const pt = { class: "bb-base-select__input-container" }, ct = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], dt = /* @__PURE__ */ S("svg", {
27
27
  class: "bb-base-select__chevron",
28
28
  viewBox: "0 0 24 24",
@@ -75,7 +75,7 @@ const pt = { class: "bb-base-select__input-container" }, ct = ["id", "aria-contr
75
75
  const t = G, h = X;
76
76
  if (t.multiple && !Array.isArray(t.modelValue))
77
77
  throw new Error('Multiple is set to "true" but modelValue is not an array.');
78
- const Z = Ne(() => import("./index234.js")), A = m(null), B = m(null), a = m(null), N = m(null), x = m(null), u = y(
78
+ const Z = Ne(() => import("./index235.js")), A = m(null), B = m(null), a = m(null), N = m(null), x = m(null), u = y(
79
79
  () => t.comma ? N.value : x.value
80
80
  ), { isMobile: ee } = We(), te = y(
81
81
  () => t.allowWriting === "not-mobile" && ee.value ? "none" : void 0
package/dist/index37.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as U, ref as d, computed as h, onMounted as W, watch as Z, openBlock as g, createElementBlock as w, mergeProps as T, renderSlot as f, createElementVNode as b, Fragment as ee, renderList as ae, createCommentVNode as H, normalizeProps as re, guardReactiveProps as te, unref as c, normalizeClass as F, normalizeStyle as I } from "vue";
2
- import { clamp as le } from "./index199.js";
3
- import { head as O } from "./index240.js";
4
- import { isCssColor as Y } from "./index200.js";
2
+ import { clamp as le } from "./index198.js";
3
+ import { head as O } from "./index234.js";
4
+ import { isCssColor as Y } from "./index222.js";
5
5
  import { isNil as P } from "./index125.js";
6
6
  import { isNotNil as ne } from "./index130.js";
7
7
  import { transposeValue as y } from "./index126.js";
8
- import { hash as J } from "./index215.js";
8
+ import { hash as J } from "./index206.js";
9
9
  const oe = { class: "bb-base-slider__slider-container" }, ie = {
10
10
  key: 0,
11
11
  class: "bb-base-slider__ticks-container"
package/dist/index39.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as I, ref as p, computed as n, watch as S, openBlock as h, createElementBlock as f, normalizeProps as r, guardReactiveProps as c, mergeProps as y, createCommentVNode as q, createElementVNode as l, renderSlot as A } from "vue";
2
- import { isCssColor as d } from "./index200.js";
3
- import { when as F } from "./index201.js";
2
+ import { isCssColor as d } from "./index222.js";
3
+ import { when as F } from "./index223.js";
4
4
  const N = { class: "bb-base-switch-container" }, x = /* @__PURE__ */ l("span", { class: "bb-base-switch-container__icon-thumb" }, null, -1), J = [
5
5
  x
6
6
  ], L = /* @__PURE__ */ I({
package/dist/index41.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as $, ref as p, toRef as l, openBlock as w, createBlock as B, unref as f, withCtx as i, renderSlot as s, normalizeProps as b, guardReactiveProps as h, createVNode as O, mergeProps as v, createSlots as z } from "vue";
2
- import { useOptions as F } from "./index231.js";
2
+ import { useOptions as F } from "./index214.js";
3
3
  import M from "./index39.js";
4
4
  /* empty css */
5
- import S from "./index232.js";
5
+ import S from "./index215.js";
6
6
  /* empty css */
7
7
  const I = /* @__PURE__ */ $({
8
8
  __name: "BaseSwitchGroup",
package/dist/index43.js CHANGED
@@ -4,15 +4,15 @@ import { defineComponent as Y, ref as r, computed as k, toRef as B, openBlock as
4
4
  import ue from "./index123.js";
5
5
  /* empty css */
6
6
  import { isNotNil as se } from "./index130.js";
7
- import { last as de } from "./index216.js";
8
- import { useOptions as pe } from "./index231.js";
9
- import ce from "./index236.js";
7
+ import { last as de } from "./index207.js";
8
+ import { useOptions as pe } from "./index214.js";
9
+ import ce from "./index237.js";
10
10
  /* empty css */
11
- import me from "./index238.js";
11
+ import me from "./index239.js";
12
12
  /* empty css */
13
- import fe from "./index226.js";
13
+ import fe from "./index225.js";
14
14
  /* empty css */
15
- import ve from "./index228.js";
15
+ import ve from "./index227.js";
16
16
  const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], Ne = /* @__PURE__ */ Y({
17
17
  __name: "BaseTag",
18
18
  props: {
package/dist/index45.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as w, ref as g, computed as u, onMounted as y, watch as V, nextTick as k, openBlock as x, createBlock as B, normalizeClass as $, withCtx as r, renderSlot as t, createVNode as i, createElementVNode as C, mergeProps as T } from "vue";
2
- import v from "./index228.js";
3
- import E from "./index226.js";
2
+ import v from "./index227.js";
3
+ import E from "./index225.js";
4
4
  /* empty css */
5
5
  import G from "./index123.js";
6
6
  /* empty css */