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.
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +2 -2
- package/dist/index.css +1 -1
- package/dist/index106.js +9 -9
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +11 -11
- package/dist/index129.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index131.js +4 -4
- package/dist/index136.js +1 -1
- package/dist/index137.js +2 -2
- package/dist/index139.js +6 -6
- package/dist/index15.js +8 -8
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index206.js +138 -2
- package/dist/index208.js +2 -138
- package/dist/index209.js +12 -85
- package/dist/index21.js +16 -16
- package/dist/index210.js +15 -0
- package/dist/index211.js +9 -27
- package/dist/index212.js +2 -17
- package/dist/index213.js +4 -51
- package/dist/index214.js +2 -15
- package/dist/index215.js +66 -3
- package/dist/index217.js +13 -16
- package/dist/index218.js +183 -2
- package/dist/index219.js +5 -4
- package/dist/index220.js +5 -2
- package/dist/index221.js +5 -4
- package/dist/index222.js +5 -13
- package/dist/index223.js +5 -11
- package/dist/index224.js +5 -20
- package/dist/index225.js +2 -197
- package/dist/index226.js +4 -0
- package/dist/index227.js +2 -66
- package/dist/index228.js +22 -0
- package/dist/index229.js +113 -13
- package/dist/index23.js +155 -153
- package/dist/index231.js +6 -0
- package/dist/index232.js +196 -12
- package/dist/index234.js +84 -32
- package/dist/index236.js +29 -5
- package/dist/index237.js +17 -5
- package/dist/index238.js +51 -5
- package/dist/index239.js +15 -5
- package/dist/index240.js +3 -5
- package/dist/index241.js +12 -2
- package/dist/index242.js +16 -2
- package/dist/index243.js +10 -2
- package/dist/index244.js +2 -17
- package/dist/index245.js +2 -12
- package/dist/index246.js +9 -6
- package/dist/index247.js +23 -106
- package/dist/index248.js +11 -0
- package/dist/index249.js +7 -99
- package/dist/index25.js +3 -3
- package/dist/{index233.js → index250.js} +1 -1
- package/dist/index251.js +89 -211
- package/dist/index253.js +99 -176
- package/dist/index255.js +5 -4
- package/dist/index256.js +15 -7
- package/dist/index257.js +30 -246
- package/dist/index258.js +3 -52
- package/dist/index259.js +5 -44
- package/dist/index260.js +5 -5
- package/dist/index261.js +6 -58
- package/dist/index262.js +250 -2
- package/dist/index263.js +52 -7
- package/dist/index264.js +44 -7
- package/dist/index265.js +5 -9
- package/dist/index266.js +60 -23
- package/dist/index267.js +9 -10
- package/dist/index268.js +17 -2
- package/dist/index269.js +12 -3
- package/dist/index27.js +1 -1
- package/dist/index270.js +6 -6
- package/dist/index271.js +229 -15
- package/dist/index272.js +2 -9
- package/dist/index273.js +7 -8
- package/dist/index274.js +6 -8
- package/dist/index277.js +67 -5
- package/dist/index278.js +4 -7
- package/dist/index279.js +8 -67
- package/dist/index280.js +4 -3
- package/dist/index281.js +7 -17
- package/dist/index282.js +10 -27
- package/dist/index283.js +3 -4
- package/dist/index285.js +7 -3
- package/dist/{index284.js → index286.js} +1 -1
- package/dist/index287.js +3 -7
- package/dist/index288.js +4 -3
- package/dist/index289.js +280 -7
- package/dist/index29.js +4 -4
- package/dist/index290.js +2 -11
- package/dist/index291.js +124 -3
- package/dist/index292.js +2 -5
- package/dist/index293.js +15 -2
- package/dist/index294.js +2 -280
- package/dist/index295.js +16 -2
- package/dist/index296.js +2 -125
- package/dist/index297.js +16 -2
- package/dist/index298.js +2 -15
- package/dist/index299.js +19 -2
- package/dist/index300.js +2 -16
- package/dist/index301.js +3 -2
- package/dist/index302.js +17 -16
- package/dist/index303.js +28 -2
- package/dist/index304.js +5 -18
- package/dist/index305.js +5 -2
- package/dist/index306.js +3 -6
- package/dist/index307.js +1 -1
- package/dist/index308.js +718 -3
- package/dist/index309.js +366 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +57 -18
- package/dist/index311.js +2 -2
- package/dist/index312.js +5 -27
- package/dist/index313.js +19 -2
- package/dist/index314.js +2 -2
- package/dist/index315.js +27 -2
- package/dist/index316.js +2 -2
- package/dist/index317.js +1 -1
- package/dist/index318.js +1 -21
- package/dist/index319.js +4 -0
- package/dist/index320.js +2 -5
- package/dist/index321.js +22 -701
- package/dist/index323.js +2 -58
- package/dist/index324.js +1 -1
- package/dist/index325.js +1 -1
- package/dist/index326.js +1 -1
- package/dist/index328.js +128 -7
- package/dist/index329.js +368 -5
- package/dist/index33.js +8 -8
- package/dist/index330.js +57 -7
- package/dist/index331.js +57 -128
- package/dist/index332.js +7 -368
- package/dist/index333.js +6 -58
- package/dist/index334.js +7 -57
- package/dist/index335.js +86 -221
- package/dist/index336.js +227 -6
- package/dist/index337.js +6 -18
- package/dist/index338.js +17 -45
- package/dist/index340.js +46 -92
- package/dist/index346.js +97 -91
- package/dist/index347.js +28 -25
- package/dist/index35.js +4 -4
- package/dist/index37.js +230 -232
- package/dist/index39.js +8 -8
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +8 -8
- package/dist/index47.js +2 -2
- package/dist/index49.js +3 -3
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +3 -3
- package/dist/index67.js +1 -1
- package/dist/index79.js +4 -4
- package/dist/index81.js +1 -1
- package/dist/index83.js +2 -2
- package/dist/index85.js +1 -1
- package/dist/index87.js +1 -1
- package/dist/index90.js +3 -3
- package/dist/index92.js +2 -2
- package/dist/index94.js +3 -3
- package/dist/index96.js +1 -1
- package/package.json +17 -17
- package/dist/index216.js +0 -14
- package/dist/index230.js +0 -115
- package/dist/index235.js +0 -7
- package/dist/index252.js +0 -4
- package/dist/index254.js +0 -7
- package/dist/index322.js +0 -356
package/dist/index340.js
CHANGED
@@ -1,95 +1,49 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
}
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
}
|
38
|
-
|
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
|
-
|
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
|
2
|
-
const
|
3
|
-
const
|
4
|
-
|
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
|
-
},
|
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:
|
16
|
-
|
18
|
+
const { width: o, height: a } = n;
|
19
|
+
h({ width: Math.round(o), height: Math.round(a) });
|
17
20
|
};
|
18
|
-
if (e(t
|
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
|
24
|
-
if (
|
25
|
-
const c =
|
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
|
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
|
-
},
|
41
|
+
}, x = {
|
39
42
|
passive: !0
|
40
|
-
}, E = typeof window > "u" ? !0 : "onscrollend" in window,
|
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
|
-
} :
|
52
|
+
} : M(
|
50
53
|
s,
|
51
54
|
() => {
|
52
|
-
|
55
|
+
h(e, !1);
|
53
56
|
},
|
54
57
|
r.options.isScrollingResetDelay
|
55
|
-
), n = (
|
56
|
-
const { horizontal:
|
57
|
-
e =
|
58
|
-
}, o = n(!0),
|
59
|
-
|
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",
|
62
|
-
t.removeEventListener("scroll", o), c && t.removeEventListener("scrollend",
|
64
|
+
return c && t.addEventListener("scrollend", a, x), () => {
|
65
|
+
t.removeEventListener("scroll", o), c && t.removeEventListener("scrollend", a);
|
63
66
|
};
|
64
|
-
},
|
65
|
-
if (
|
66
|
-
const s =
|
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
|
73
|
-
|
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 +
|
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
|
87
|
-
constructor(
|
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:
|
126
|
+
rangeExtractor: w,
|
126
127
|
onChange: () => {
|
127
128
|
},
|
128
|
-
measureElement:
|
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: !
|
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
|
197
|
+
const a = i.get(
|
197
198
|
o.lane
|
198
199
|
);
|
199
|
-
if (
|
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((
|
227
|
-
this.itemSizeCache.set(
|
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
|
230
|
+
const a = this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
|
230
231
|
this.pendingMeasuredCacheIndexes = [];
|
231
|
-
const c = this.measurementsCache.slice(0,
|
232
|
-
for (let
|
233
|
-
const
|
234
|
-
c[
|
235
|
-
index:
|
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:
|
239
|
-
key:
|
240
|
-
lane:
|
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 ?
|
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],
|
322
|
-
e.push(
|
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
|
334
|
-
s[
|
334
|
+
return m(
|
335
|
+
s[S(
|
335
336
|
0,
|
336
337
|
s.length - 1,
|
337
|
-
(e) =>
|
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.
|
345
|
-
return Math.max(Math.min(
|
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] =
|
385
|
+
const [c] = m(
|
385
386
|
this.getOffsetForIndex(t, o)
|
386
|
-
);
|
387
|
-
|
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
|
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(
|
427
|
+
}, this.setOptions(h);
|
427
428
|
}
|
428
429
|
}
|
429
|
-
const
|
430
|
-
for (; r <=
|
431
|
-
const e = (r +
|
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
|
-
|
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
|
442
|
+
function T({
|
442
443
|
measurements: r,
|
443
|
-
outerSize:
|
444
|
+
outerSize: h,
|
444
445
|
scrollOffset: t,
|
445
446
|
lanes: s
|
446
447
|
}) {
|
447
|
-
const e = r.length - 1;
|
448
|
-
|
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
|
-
|
457
|
+
i,
|
452
458
|
t
|
453
459
|
), o = n;
|
454
460
|
if (s === 1)
|
455
|
-
for (; o < e && r[o].end < t +
|
461
|
+
for (; o < e && r[o].end < t + h; )
|
456
462
|
o++;
|
457
463
|
else if (s > 1) {
|
458
|
-
const
|
459
|
-
for (; o < e &&
|
460
|
-
const
|
461
|
-
l
|
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 +
|
464
|
-
for (; n
|
465
|
-
const
|
466
|
-
c[
|
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
|
-
|
474
|
-
|
475
|
-
|
479
|
+
N as Virtualizer,
|
480
|
+
y as approxEqual,
|
481
|
+
M as debounce,
|
476
482
|
z as defaultKeyExtractor,
|
477
|
-
|
478
|
-
|
479
|
-
|
483
|
+
w as defaultRangeExtractor,
|
484
|
+
D as elementScroll,
|
485
|
+
C as measureElement,
|
480
486
|
d as memo,
|
481
|
-
|
482
|
-
|
483
|
-
|
487
|
+
m as notUndefined,
|
488
|
+
A as observeElementOffset,
|
489
|
+
_ as observeElementRect
|
484
490
|
};
|
package/dist/index347.js
CHANGED
@@ -1,49 +1,52 @@
|
|
1
|
-
function
|
2
|
-
let
|
3
|
-
|
4
|
-
var
|
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
|
-
|
13
|
-
|
14
|
-
|
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⏱ ${
|
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 *
|
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 (
|
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
|
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
|
39
|
-
let
|
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(
|
44
|
+
n.clearTimeout(l), l = n.setTimeout(() => i.apply(this, t), e);
|
42
45
|
};
|
43
46
|
};
|
44
47
|
export {
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
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 "./
|
3
|
-
import { identity as $ } from "./
|
4
|
-
import { isCssColor as k } from "./
|
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 "./
|
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: {
|