virtua 0.51.2 → 0.52.0
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/README.md +37 -13
- package/lib/angular/VGrid.d.ts +249 -0
- package/lib/angular/VList.d.ts +3 -3
- package/lib/angular/Virtualizer.d.ts +3 -3
- package/lib/angular/WindowVirtualizer.d.ts +3 -3
- package/lib/angular/index.d.ts +2 -0
- package/lib/angular/index.js +1150 -332
- package/lib/angular/index.js.map +1 -1
- package/lib/core/grid.d.ts +30 -0
- package/lib/core/index.cjs +480 -271
- package/lib/core/index.cjs.map +1 -1
- package/lib/core/index.d.ts +5 -3
- package/lib/core/index.js +436 -228
- package/lib/core/index.js.map +1 -1
- package/lib/core/layouts/grid.d.ts +21 -0
- package/lib/core/scroll-to.d.ts +50 -1
- package/lib/core/types.d.ts +0 -25
- package/lib/index.cjs +763 -565
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +734 -518
- package/lib/index.js.map +1 -1
- package/lib/react/VGrid.d.ts +105 -80
- package/lib/react/index.d.ts +3 -2
- package/lib/solid/VGrid.d.ts +193 -0
- package/lib/solid/index.cjs +825 -301
- package/lib/solid/index.cjs.map +1 -1
- package/lib/solid/index.d.ts +3 -0
- package/lib/solid/index.js +797 -286
- package/lib/solid/index.js.map +1 -1
- package/lib/solid/index.jsx +760 -142
- package/lib/solid/index.jsx.map +1 -1
- package/lib/svelte/GridCell.svelte +44 -0
- package/lib/svelte/GridRow.svelte +42 -0
- package/lib/svelte/GridRowGroup.svelte +42 -0
- package/lib/svelte/VGrid.svelte +238 -0
- package/lib/svelte/VGrid.type.d.ts +185 -0
- package/lib/svelte/index.d.ts +3 -0
- package/lib/svelte/index.js +2 -1
- package/lib/vue/VGrid.d.ts +194 -0
- package/lib/vue/index.cjs +873 -368
- package/lib/vue/index.cjs.map +1 -1
- package/lib/vue/index.d.ts +3 -0
- package/lib/vue/index.js +861 -357
- package/lib/vue/index.js.map +1 -1
- package/package.json +4 -3
package/lib/index.js
CHANGED
|
@@ -1,761 +1,977 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { forwardRef as e, memo as t, useEffect as
|
|
3
|
+
import { forwardRef as e, memo as t, useEffect as o, useImperativeHandle as n, useLayoutEffect as r, useMemo as s, useReducer as l, useRef as i } from "react";
|
|
4
4
|
|
|
5
5
|
import { jsx as c } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
|
-
import { flushSync as
|
|
7
|
+
import { flushSync as a } from "react-dom";
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var f, u = [], {min: d, max: h, abs: g, floor: $} = Math, p = (e, t, o) => d(o, h(t, e)), m = e => e.sort((e, t) => e - t), w = setTimeout, S = clearTimeout, _ = "function" == typeof queueMicrotask ? queueMicrotask : e => {
|
|
10
10
|
Promise.resolve().then(e);
|
|
11
|
-
},
|
|
11
|
+
}, v = () => {
|
|
12
12
|
let e;
|
|
13
13
|
return [ new Promise(t => {
|
|
14
14
|
e = t;
|
|
15
15
|
}), e ];
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
let
|
|
19
|
-
const M = /* @__PURE__ */ new Set,
|
|
20
|
-
e && (
|
|
16
|
+
}, z = "undefined" != typeof window, y = e => e.ownerDocument, x = e => e.defaultView, I = () => (null == f && (f = /iP(hone|od|ad)/.test(navigator.userAgent) || "MacIntel" === navigator.platform && navigator.maxTouchPoints > 0),
|
|
17
|
+
f), b = e => h(e.t(), e.o()), k = ({l: e, i: t, u: o, h: n, $: r, p: s, t: l, m: i, S: c, _: a}, f = 0) => {
|
|
18
|
+
let u = !!a, $ = !!f, p = 1, m = 0, w = 0, S = 0, _ = 0, v = 0, z = 0, y = 0, x = 0, b = null, k = [ 0, $ ? h(f - 1, 0) : -1 ], R = 0, T = !1;
|
|
19
|
+
const M = /* @__PURE__ */ new Set, C = () => S - w, O = () => C() + v + _, E = e => o(e) - v, L = e => {
|
|
20
|
+
e && (I() && 0 !== y || b && 1 === x ? v += e : _ += e);
|
|
21
21
|
};
|
|
22
22
|
return {
|
|
23
|
-
|
|
23
|
+
v: () => {
|
|
24
24
|
M.clear();
|
|
25
25
|
},
|
|
26
26
|
I: () => p,
|
|
27
|
-
|
|
28
|
-
if (!
|
|
29
|
-
let
|
|
30
|
-
if (z) [
|
|
31
|
-
let r =
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
l: (t = 200) => {
|
|
28
|
+
if (!T || $) return k;
|
|
29
|
+
let o, n;
|
|
30
|
+
if (z) [o, n] = k; else {
|
|
31
|
+
let r = h(0, O()), s = r + m;
|
|
32
|
+
u || (t = h(0, t), 1 !== y && (r -= t), 2 !== y && (s += t)), [o, n] = k = e(h(0, r), h(0, s)),
|
|
33
|
+
b && (o = d(o, b[0]), n = h(n, b[1]));
|
|
34
34
|
}
|
|
35
|
-
return [
|
|
35
|
+
return [ h(o, 0), d(n, i() - 1) ];
|
|
36
36
|
},
|
|
37
|
-
k: e => t(e -
|
|
38
|
-
R:
|
|
37
|
+
k: e => t(e - w),
|
|
38
|
+
R: s,
|
|
39
39
|
u: E,
|
|
40
|
-
h:
|
|
41
|
-
|
|
42
|
-
M: () =>
|
|
43
|
-
|
|
44
|
-
o: () =>
|
|
45
|
-
O: () =>
|
|
46
|
-
t:
|
|
47
|
-
L: () => (z =
|
|
48
|
-
|
|
49
|
-
const
|
|
50
|
-
return M.add(
|
|
51
|
-
M.delete(
|
|
40
|
+
h: n,
|
|
41
|
+
T: i,
|
|
42
|
+
M: () => S,
|
|
43
|
+
C: () => 0 !== y,
|
|
44
|
+
o: () => m,
|
|
45
|
+
O: () => w,
|
|
46
|
+
t: l,
|
|
47
|
+
L: () => (z = _, _ = 0, [ z, 2 === x ]),
|
|
48
|
+
A: (e, t) => {
|
|
49
|
+
const o = [ e, t ];
|
|
50
|
+
return M.add(o), () => {
|
|
51
|
+
M.delete(o);
|
|
52
52
|
};
|
|
53
53
|
},
|
|
54
|
-
W: (
|
|
55
|
-
let
|
|
56
|
-
switch (
|
|
54
|
+
W: (o, i) => {
|
|
55
|
+
let f, d, h = 0;
|
|
56
|
+
switch (o) {
|
|
57
57
|
case 1:
|
|
58
58
|
{
|
|
59
|
-
if (
|
|
59
|
+
if (i === S && 0 === x) break;
|
|
60
60
|
const e = z;
|
|
61
61
|
z = 0;
|
|
62
|
-
const t =
|
|
63
|
-
e &&
|
|
64
|
-
const
|
|
65
|
-
|
|
62
|
+
const t = i - S, o = g(t);
|
|
63
|
+
e && o < g(e) + 1 || 0 !== x || (y = t < 0 ? 2 : 1), $ && ($ = !1), S = i, h = 4;
|
|
64
|
+
const n = C();
|
|
65
|
+
n >= -m && n <= l() && (h += 1, d = o > m);
|
|
66
66
|
break;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
case 2:
|
|
70
|
-
|
|
70
|
+
h = 8, 0 !== y && (f = !0, h += 1), y = 0, x = 0, b = null;
|
|
71
71
|
break;
|
|
72
72
|
|
|
73
73
|
case 3:
|
|
74
74
|
{
|
|
75
|
-
const e =
|
|
75
|
+
const e = i.filter(([e, t]) => !s(e, t));
|
|
76
76
|
if (!e.length) break;
|
|
77
|
-
L(e.reduce((e, [t,
|
|
77
|
+
L(e.reduce((e, [t, o]) => {
|
|
78
78
|
let r;
|
|
79
|
-
if (2 ===
|
|
80
|
-
const e =
|
|
81
|
-
r = 1 !==
|
|
79
|
+
if (2 === x) r = !0; else if (b && 1 === x) r = t < b[0]; else {
|
|
80
|
+
const e = C(), o = E(t), s = n(t);
|
|
81
|
+
r = 1 !== y && 0 === x ? o + s <= e : o < e && o + s < e + m;
|
|
82
82
|
}
|
|
83
|
-
return r && (e +=
|
|
83
|
+
return r && (e += o - n(t)), e;
|
|
84
84
|
}, 0));
|
|
85
|
-
for (const [t,
|
|
86
|
-
const e =
|
|
87
|
-
|
|
85
|
+
for (const [t, o] of e) {
|
|
86
|
+
const e = n(t), s = r(t, o);
|
|
87
|
+
u && (R += s ? o : o - e);
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
u && m && R > m && (L(a(t(O()))), u = !1), h = 3, d = !0;
|
|
90
90
|
break;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
case 4:
|
|
94
|
-
|
|
94
|
+
m !== i && (m || (T = d = !0), m = i, h = 3);
|
|
95
95
|
break;
|
|
96
96
|
|
|
97
97
|
case 5:
|
|
98
|
-
|
|
98
|
+
i[1] ? (L(c(i[0], !0)), x = 2, h = 1) : (c(i[0]), h = 1);
|
|
99
99
|
break;
|
|
100
100
|
|
|
101
101
|
case 6:
|
|
102
|
-
|
|
102
|
+
w = i;
|
|
103
103
|
break;
|
|
104
104
|
|
|
105
105
|
case 7:
|
|
106
|
-
|
|
106
|
+
x = 1;
|
|
107
|
+
break;
|
|
108
|
+
|
|
109
|
+
case 9:
|
|
110
|
+
L(i), h = 3;
|
|
107
111
|
break;
|
|
108
112
|
|
|
109
113
|
case 8:
|
|
110
|
-
|
|
114
|
+
b = e(i, i + m), h = 1;
|
|
111
115
|
}
|
|
112
|
-
|
|
113
|
-
|
|
116
|
+
h && (p = 1 + (2147483647 & p), f && v && (_ += v, v = 0), M.forEach(([e, t]) => {
|
|
117
|
+
h & e && t(d);
|
|
114
118
|
}));
|
|
115
119
|
}
|
|
116
120
|
};
|
|
117
|
-
},
|
|
118
|
-
let
|
|
119
|
-
for (;
|
|
120
|
-
const t =
|
|
121
|
-
e(t) <=
|
|
121
|
+
}, R = (e, t, o, n = 0, r = t - 1) => {
|
|
122
|
+
let s = n;
|
|
123
|
+
for (;n <= r; ) {
|
|
124
|
+
const t = $((n + r) / 2);
|
|
125
|
+
e(t) <= o ? (s = t, n = t + 1) : r = t - 1;
|
|
122
126
|
}
|
|
123
|
-
return
|
|
124
|
-
},
|
|
125
|
-
const
|
|
126
|
-
for (let
|
|
127
|
+
return p(s, 0, t - 1);
|
|
128
|
+
}, T = (e, t, o) => {
|
|
129
|
+
const n = o ? "unshift" : "push";
|
|
130
|
+
for (let o = 0; o < t; o++) e[n](-1);
|
|
127
131
|
return e;
|
|
128
|
-
},
|
|
129
|
-
let
|
|
130
|
-
const
|
|
131
|
-
const t =
|
|
132
|
-
return -1 === t ?
|
|
133
|
-
},
|
|
132
|
+
}, M = (e, t, o) => {
|
|
133
|
+
let n = o && o[1] || t || 40, r = -1, s = 0;
|
|
134
|
+
const l = o && o[0], i = l ? T(l.slice(0, d(e, l.length)), h(0, e - l.length)) : T([], e), c = T([], e + 1), a = e => {
|
|
135
|
+
const t = i[e];
|
|
136
|
+
return -1 === t ? n : t;
|
|
137
|
+
}, f = t => {
|
|
134
138
|
if (!e) return 0;
|
|
135
139
|
if (r >= t) return c[t];
|
|
136
140
|
r < 0 && (c[0] = 0, r = 0);
|
|
137
|
-
let
|
|
138
|
-
for (;
|
|
139
|
-
return r = t,
|
|
141
|
+
let o = r, n = c[o];
|
|
142
|
+
for (;o < t; ) n += a(o), c[++o] = n;
|
|
143
|
+
return r = t, n;
|
|
140
144
|
};
|
|
141
145
|
return {
|
|
142
|
-
|
|
143
|
-
let
|
|
144
|
-
return
|
|
145
|
-
r =
|
|
146
|
-
},
|
|
147
|
-
|
|
148
|
-
u:
|
|
149
|
-
h:
|
|
150
|
-
|
|
151
|
-
const
|
|
152
|
-
return
|
|
153
|
-
},
|
|
154
|
-
p: (e, t = -1) =>
|
|
155
|
-
t: () =>
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
const
|
|
159
|
-
return r =
|
|
160
|
-
(
|
|
161
|
-
},
|
|
162
|
-
|
|
146
|
+
l: (t, o) => {
|
|
147
|
+
let n, r;
|
|
148
|
+
return s = d(s, e - 1), f(s) <= t ? (r = R(f, e, o, s), n = R(f, e, t, s, r)) : (n = R(f, e, t, void 0, s),
|
|
149
|
+
r = R(f, e, o, n)), s = n, [ n, r ];
|
|
150
|
+
},
|
|
151
|
+
i: t => R(f, e, t),
|
|
152
|
+
u: f,
|
|
153
|
+
h: a,
|
|
154
|
+
$: (e, t) => {
|
|
155
|
+
const o = -1 === i[e];
|
|
156
|
+
return i[e] = t, r = d(e, r), o;
|
|
157
|
+
},
|
|
158
|
+
p: (e, t = -1) => i[e] === t,
|
|
159
|
+
t: () => f(e),
|
|
160
|
+
m: () => e,
|
|
161
|
+
S: (t, o) => {
|
|
162
|
+
const s = t - e;
|
|
163
|
+
return r = o ? -1 : d(t - 1, r), e = t, s > 0 ? (T(c, s), T(i, s, o), n * s) : (c.splice(s),
|
|
164
|
+
(o ? i.splice(0, -s) : i.splice(s)).reduce((e, t) => e - (-1 === t ? n : t), 0));
|
|
165
|
+
},
|
|
166
|
+
_: t ? void 0 : e => {
|
|
163
167
|
let t = 0;
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
-1 !==
|
|
167
|
-
}), r = -1;
|
|
168
|
-
const
|
|
169
|
-
return ((
|
|
170
|
-
},
|
|
171
|
-
|
|
168
|
+
const o = [];
|
|
169
|
+
i.forEach((n, r) => {
|
|
170
|
+
-1 !== n && (n && o.push(n), r < e && t++);
|
|
171
|
+
}), r = -1, m(o);
|
|
172
|
+
const s = o.length, l = s / 2 | 0, c = s % 2 == 0 ? (o[l - 1] + o[l]) / 2 : o[l], a = n;
|
|
173
|
+
return ((n = c) - a) * h(e - t, 0);
|
|
174
|
+
},
|
|
175
|
+
H: () => [ i.slice(), n ]
|
|
176
|
+
};
|
|
177
|
+
}, C = e => "number" == typeof e ? e : e.length, O = (e, t) => "number" == typeof e ? t : e[t], E = (e, t, o = 0) => {
|
|
178
|
+
if ("number" == typeof t) {
|
|
179
|
+
let n = C(e), r = t;
|
|
180
|
+
const s = e => r + o ? p($(e / (r + o)), 0, n - 1) : 0;
|
|
181
|
+
return {
|
|
182
|
+
l: (e, t) => [ s(e), s(t) ],
|
|
183
|
+
i: s,
|
|
184
|
+
u: e => e * (r + o),
|
|
185
|
+
h: () => r,
|
|
186
|
+
$: () => !1,
|
|
187
|
+
p: () => !1,
|
|
188
|
+
t: () => n ? n * (r + o) - o : 0,
|
|
189
|
+
m: () => n,
|
|
190
|
+
S: e => (n = e, 0),
|
|
191
|
+
q: () => !1,
|
|
192
|
+
B: (e, t, o) => {
|
|
193
|
+
if ("number" != typeof t || t === r) return;
|
|
194
|
+
const n = s(o) * (t - r);
|
|
195
|
+
return r = t, n;
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
const n = "auto" === t;
|
|
200
|
+
let r, s = t;
|
|
201
|
+
const l = C(e), i = [], c = M(l, void 0, [ [], 40 + o ]), a = e => n || !!i[e], f = {
|
|
202
|
+
l: c.l,
|
|
203
|
+
i: c.i,
|
|
204
|
+
u: c.u,
|
|
205
|
+
h: e => c.h(e) - o,
|
|
206
|
+
$: (e, t) => a(e) && c.$(e, t + o),
|
|
207
|
+
p: (e, t) => c.p(e, t + o),
|
|
208
|
+
t: () => c.m() ? c.t() - o : 0,
|
|
209
|
+
m: c.m,
|
|
210
|
+
S: c.S,
|
|
211
|
+
_: n ? c._ : void 0,
|
|
212
|
+
q: a,
|
|
213
|
+
B: (e, t, l, a) => {
|
|
214
|
+
if (n) return;
|
|
215
|
+
const f = "number" == typeof t || "auto" === t ? s : t, u = c.m();
|
|
216
|
+
if (!a && e === r && f === s && u === i.length) return;
|
|
217
|
+
r = e, s = f, i.length = u;
|
|
218
|
+
const d = c.i(l), h = c.u(d);
|
|
219
|
+
let g;
|
|
220
|
+
for (let t = 0; t < u; t++) {
|
|
221
|
+
const n = e[t], r = null !== n && "object" == typeof n ? n[f] : null, s = "number" != typeof r;
|
|
222
|
+
if (!s || !i[t]) {
|
|
223
|
+
i[t] = s;
|
|
224
|
+
const e = s ? -1 : r + o;
|
|
225
|
+
c.p(t, e) || (c.$(t, e), g = !0);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
return g ? c.u(d) - h : void 0;
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
return f.B(e, t, 0), f;
|
|
232
|
+
}, L = (e, t, o, n, r) => {
|
|
233
|
+
const s = C(o);
|
|
234
|
+
s !== e.T() && e.W(5, [ s ]);
|
|
235
|
+
const l = t.B(o, n, e.M() - e.u(0), r);
|
|
236
|
+
null != l && e.W(9, l);
|
|
237
|
+
}, A = /*#__PURE__*/ new WeakMap, W = (e, t, o, n, r, s, l) => {
|
|
238
|
+
if (t < n || h(t, r) < d(o, s + 1) || l < o) return !0;
|
|
239
|
+
for (const n of e) if (n >= t && n < o) return !0;
|
|
240
|
+
return !1;
|
|
241
|
+
}, H = (e, t, o) => {
|
|
242
|
+
const n = [];
|
|
243
|
+
for (const r of e) r >= t && r < o && n.push(r);
|
|
244
|
+
return m(n);
|
|
245
|
+
}, q = (e, t, o) => {
|
|
246
|
+
if (t >= o) return -1;
|
|
247
|
+
let n = 0, r = e.length;
|
|
248
|
+
for (;n < r; ) {
|
|
249
|
+
const o = n + r >> 1;
|
|
250
|
+
e[o] <= t ? n = o + 1 : r = o;
|
|
251
|
+
}
|
|
252
|
+
return n - 1;
|
|
253
|
+
}, B = (e, t, o, n) => {
|
|
254
|
+
const r = q(t, o, n);
|
|
255
|
+
r >= 0 && e.push(t[r]);
|
|
256
|
+
}, D = (e, t, o, n, r, s) => {
|
|
257
|
+
const l = [];
|
|
258
|
+
for (let e = 0; e < o; e++) l.push(e);
|
|
259
|
+
const i = e.length;
|
|
260
|
+
let c = 0, a = o - 1;
|
|
261
|
+
for (;c < i && e[c] < n; c++) {
|
|
262
|
+
const t = e[c];
|
|
263
|
+
t > a && (l.push(t), a = t);
|
|
264
|
+
}
|
|
265
|
+
for (let e = n; e <= r; e++) l.push(e);
|
|
266
|
+
for (a = r; c < i && e[c] < s; c++) {
|
|
267
|
+
const t = e[c];
|
|
268
|
+
t > a && (l.push(t), a = t);
|
|
269
|
+
}
|
|
270
|
+
for (let e = s; e < t; e++) l.push(e);
|
|
271
|
+
return l;
|
|
272
|
+
}, P = (e, t) => d(e.rowIndex + (e.rowSpan || 1), t), V = (e, t) => d(e.colIndex + (e.colSpan || 1), t), X = (e, t, o, n, r, s) => {
|
|
273
|
+
const l = t.length, i = n.length;
|
|
274
|
+
let c = "[l0]", a = 0, f = 0, u = 0;
|
|
275
|
+
for (;f < l || u < i; ) {
|
|
276
|
+
const h = f < l ? t[f] : s, g = u < i ? n[u] : s;
|
|
277
|
+
if (g <= a) u++; else {
|
|
278
|
+
let t, n;
|
|
279
|
+
if (h === a) {
|
|
280
|
+
t = a + 1;
|
|
281
|
+
const s = o[f];
|
|
282
|
+
n = null == s ? e.h(a) + "px" : s ? r : "minmax(" + e.h(a) + "px,auto)", f++;
|
|
283
|
+
} else t = d(h, g), n = "minmax(" + (e.u(t - 1) + e.h(t - 1) - e.u(a)) + "px,auto)";
|
|
284
|
+
c += " " + n + " [l" + t + "]", a = t;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
return a < s && (c += " minmax(" + (e.t() - e.u(a)) + "px,auto) [l" + s + "]"),
|
|
288
|
+
c;
|
|
289
|
+
}, Y = (e, t, o, n, r) => {
|
|
290
|
+
const s = {
|
|
291
|
+
display: "grid",
|
|
292
|
+
gridTemplateRows: "subgrid",
|
|
293
|
+
gridTemplateColumns: "subgrid",
|
|
294
|
+
gridColumn: "1/-1",
|
|
295
|
+
gridRow: "l" + e + "/l" + t
|
|
172
296
|
};
|
|
173
|
-
|
|
297
|
+
return null != o && (s.position = "sticky", s[n] = o + "px", s.zIndex = r), s;
|
|
298
|
+
}, j = e => {
|
|
174
299
|
let t;
|
|
175
300
|
return {
|
|
176
|
-
|
|
177
|
-
(t || (t = new (
|
|
301
|
+
D(o) {
|
|
302
|
+
(t || (t = new (x(y(o)).ResizeObserver)(e))).observe(o);
|
|
178
303
|
},
|
|
179
|
-
|
|
304
|
+
P(e) {
|
|
180
305
|
t.unobserve(e);
|
|
181
306
|
},
|
|
182
|
-
|
|
307
|
+
V() {
|
|
183
308
|
t && t.disconnect();
|
|
184
309
|
}
|
|
185
310
|
};
|
|
186
|
-
},
|
|
187
|
-
let
|
|
188
|
-
const g = Date.now,
|
|
189
|
-
|
|
190
|
-
[p]:
|
|
311
|
+
}, J = (e, t, o, n, r, s, l) => {
|
|
312
|
+
let i, c, a = 0, f = !1, u = !1, d = !1, h = !1;
|
|
313
|
+
const g = Date.now, $ = n ? "scrollLeft" : "scrollTop", p = n ? "left" : "top", m = e => r ? -e : e, v = () => m(o[$]), z = (e, t) => {
|
|
314
|
+
o.scrollTo({
|
|
315
|
+
[p]: m(e),
|
|
191
316
|
behavior: t ? "smooth" : "instant"
|
|
192
317
|
});
|
|
193
|
-
},
|
|
194
|
-
if (
|
|
318
|
+
}, y = () => {
|
|
319
|
+
if (f || u) return f = !1, void x();
|
|
195
320
|
d = !1, e.W(2);
|
|
196
|
-
}, b = () => {
|
|
197
|
-
$(c), c = v(I, 150);
|
|
198
321
|
}, x = () => {
|
|
199
|
-
|
|
322
|
+
S(c), c = w(y, 150);
|
|
323
|
+
}, b = () => {
|
|
324
|
+
a = g(), d && (h = !0), l && e.W(6, l()), e.W(1, v()), x();
|
|
200
325
|
}, k = t => {
|
|
201
|
-
if (
|
|
202
|
-
const
|
|
203
|
-
150 >
|
|
326
|
+
if (f || !e.C() || t.ctrlKey) return;
|
|
327
|
+
const o = g() - a;
|
|
328
|
+
150 > o && 50 < o && (n ? t.deltaX : t.deltaY) && (f = !0);
|
|
204
329
|
}, R = () => {
|
|
205
330
|
u = !0, d = h = !1;
|
|
206
|
-
},
|
|
207
|
-
u = !1,
|
|
331
|
+
}, T = () => {
|
|
332
|
+
u = !1, I() && (d = !0);
|
|
208
333
|
};
|
|
209
|
-
return t.addEventListener("scroll",
|
|
334
|
+
return t.addEventListener("scroll", b), t.addEventListener("wheel", k, {
|
|
210
335
|
passive: !0
|
|
211
336
|
}), t.addEventListener("touchstart", R, {
|
|
212
337
|
passive: !0
|
|
213
|
-
}), t.addEventListener("touchend",
|
|
338
|
+
}), t.addEventListener("touchend", T, {
|
|
214
339
|
passive: !0
|
|
215
340
|
}), {
|
|
216
|
-
|
|
217
|
-
t.removeEventListener("scroll",
|
|
218
|
-
t.removeEventListener("touchend",
|
|
341
|
+
V: () => {
|
|
342
|
+
t.removeEventListener("scroll", b), t.removeEventListener("wheel", k), t.removeEventListener("touchstart", R),
|
|
343
|
+
t.removeEventListener("touchend", T), S(c);
|
|
219
344
|
},
|
|
220
|
-
|
|
221
|
-
const [t,
|
|
345
|
+
X: () => {
|
|
346
|
+
const [t, n] = e.L();
|
|
222
347
|
if (!t) return;
|
|
223
|
-
h &&
|
|
348
|
+
h && s && s(), h = !1;
|
|
224
349
|
const r = e.M() + t;
|
|
225
|
-
r <= 0 || r >= e.O() + e.t() - e.o() ? z(r) :
|
|
226
|
-
[p]:
|
|
350
|
+
r <= 0 || r >= e.O() + e.t() - e.o() ? z(r) : o.scrollBy({
|
|
351
|
+
[p]: m(t),
|
|
227
352
|
behavior: "instant"
|
|
228
|
-
}),
|
|
353
|
+
}), n && (i && i(), e.o() > e.t() && e.W(1, v()));
|
|
229
354
|
},
|
|
230
|
-
|
|
231
|
-
let
|
|
232
|
-
|
|
233
|
-
const
|
|
234
|
-
|
|
355
|
+
Y: (t, o) => {
|
|
356
|
+
let n, r, s;
|
|
357
|
+
i && i();
|
|
358
|
+
const l = i = () => {
|
|
359
|
+
n = !0, S(r), s && s();
|
|
235
360
|
}, c = () => {
|
|
236
|
-
if (!
|
|
237
|
-
if (e.o() && (
|
|
238
|
-
for (let [t,
|
|
239
|
-
|
|
361
|
+
if (!n) {
|
|
362
|
+
if (e.o() && (S(r), r = w(l, 150)), o) {
|
|
363
|
+
for (let [t, o] = e.l(0); t <= o; t++) if (e.R(t)) return;
|
|
364
|
+
l();
|
|
240
365
|
}
|
|
241
|
-
e.W(7), z(t(),
|
|
366
|
+
e.W(7), z(t(), o);
|
|
242
367
|
}
|
|
243
|
-
},
|
|
244
|
-
if (
|
|
368
|
+
}, a = () => {
|
|
369
|
+
if (n) return;
|
|
245
370
|
let t;
|
|
246
|
-
|
|
247
|
-
t || (t = !0,
|
|
371
|
+
s = e.A(2, () => {
|
|
372
|
+
t || (t = !0, _(() => {
|
|
248
373
|
t = !1, c();
|
|
249
374
|
}));
|
|
250
375
|
}), c();
|
|
251
376
|
};
|
|
252
|
-
|
|
377
|
+
o ? (e.W(8, t()), _(a)) : a();
|
|
253
378
|
}
|
|
254
379
|
};
|
|
255
|
-
},
|
|
256
|
-
let
|
|
257
|
-
const
|
|
258
|
-
const
|
|
259
|
-
for (const {target:
|
|
260
|
-
const e = s.get(
|
|
261
|
-
null != e &&
|
|
380
|
+
}, U = (e, t) => {
|
|
381
|
+
let o, n, r = v();
|
|
382
|
+
const s = /* @__PURE__ */ new WeakMap, l = j(n => {
|
|
383
|
+
const r = [];
|
|
384
|
+
for (const {target: l, contentRect: {width: i, height: c}} of n) if (l === o) (i || c) && e.W(4, t ? i : c); else if (l.offsetParent) {
|
|
385
|
+
const e = s.get(l);
|
|
386
|
+
null != e && r.push([ e, t ? i : c ]);
|
|
262
387
|
}
|
|
263
|
-
|
|
388
|
+
r.length && e.W(3, r);
|
|
264
389
|
});
|
|
265
390
|
return {
|
|
266
|
-
|
|
267
|
-
l.
|
|
268
|
-
const e = t ? "overflowX" : "overflowY",
|
|
269
|
-
|
|
270
|
-
|
|
391
|
+
j(s, i = s.parentElement) {
|
|
392
|
+
l.D(o = i), n = J(e, i, i, t, t && "rtl" === getComputedStyle(i).direction, () => {
|
|
393
|
+
const e = t ? "overflowX" : "overflowY", o = i.style, n = o[e];
|
|
394
|
+
o[e] = "hidden", w(() => {
|
|
395
|
+
o[e] = n;
|
|
271
396
|
});
|
|
272
397
|
}), r[1](!0);
|
|
273
398
|
},
|
|
274
|
-
|
|
275
|
-
l.
|
|
399
|
+
v() {
|
|
400
|
+
l.V(), n && n.V(), r[1](!1), r = v();
|
|
276
401
|
},
|
|
277
|
-
|
|
278
|
-
s.delete(e), l.
|
|
402
|
+
J: (e, t) => (s.set(e, t), l.D(e), () => {
|
|
403
|
+
s.delete(e), l.P(e);
|
|
279
404
|
}),
|
|
280
|
-
async
|
|
281
|
-
await r[0] &&
|
|
405
|
+
async U(e, t) {
|
|
406
|
+
await r[0] && n.Y(e, t);
|
|
282
407
|
},
|
|
283
|
-
|
|
284
|
-
|
|
408
|
+
F() {
|
|
409
|
+
n && n.X();
|
|
285
410
|
},
|
|
286
411
|
G: e.O
|
|
287
412
|
};
|
|
288
|
-
},
|
|
289
|
-
let
|
|
290
|
-
const c =
|
|
291
|
-
const
|
|
292
|
-
for (const {target: e, contentRect:
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
continue;
|
|
296
|
-
}
|
|
297
|
-
if (!e.offsetParent) continue;
|
|
298
|
-
const t = f.get(e);
|
|
299
|
-
null != t && o.push([ t, r[c] ]);
|
|
413
|
+
}, F = (e, t) => {
|
|
414
|
+
let o, n, r, s, l, i = v();
|
|
415
|
+
const c = /* @__PURE__ */ new WeakMap, a = j(n => {
|
|
416
|
+
const r = [];
|
|
417
|
+
for (const {target: e, contentRect: {width: s, height: i}} of n) if (e === o) l && l(); else if (e.offsetParent) {
|
|
418
|
+
const o = c.get(e);
|
|
419
|
+
null != o && r.push([ o, t ? s : i ]);
|
|
300
420
|
}
|
|
301
|
-
|
|
421
|
+
r.length && e.W(3, r);
|
|
302
422
|
});
|
|
303
423
|
return {
|
|
304
|
-
|
|
305
|
-
const f =
|
|
306
|
-
const
|
|
307
|
-
return e !==
|
|
308
|
-
},
|
|
424
|
+
j(c) {
|
|
425
|
+
const f = y(c), u = x(f), d = o = f.scrollingElement, h = t && "rtl" === getComputedStyle(d).direction, g = (e, t, o, n, r = 0) => {
|
|
426
|
+
const s = n ? "offsetLeft" : "offsetTop", l = r + (h ? t.clientWidth - e[s] - e.offsetWidth : e[s]), i = e.offsetParent;
|
|
427
|
+
return e !== o && i ? g(i, t, o, n, l) : l;
|
|
428
|
+
}, $ = s = () => g(c, d, f.body, t), p = l = () => {
|
|
309
429
|
e.W(4, d[t ? "clientWidth" : "clientHeight"]);
|
|
310
430
|
};
|
|
311
|
-
u.addEventListener("resize", p), a.
|
|
431
|
+
u.addEventListener("resize", p), a.D(d), r = () => {
|
|
312
432
|
u.removeEventListener("resize", p);
|
|
313
|
-
},
|
|
433
|
+
}, n = J(e, u, d, t, h, null, $), i[1](!0);
|
|
314
434
|
},
|
|
315
|
-
|
|
316
|
-
r && r(), a.
|
|
435
|
+
v() {
|
|
436
|
+
r && r(), a.V(), n && n.V(), i[1](!1), i = v();
|
|
317
437
|
},
|
|
318
|
-
|
|
319
|
-
|
|
438
|
+
J: (e, t) => (c.set(e, t), a.D(e), () => {
|
|
439
|
+
c.delete(e), a.P(e);
|
|
320
440
|
}),
|
|
321
|
-
async
|
|
322
|
-
await
|
|
441
|
+
async U(e, t) {
|
|
442
|
+
await i[0] && n.Y(e, t);
|
|
323
443
|
},
|
|
324
|
-
|
|
325
|
-
|
|
444
|
+
F() {
|
|
445
|
+
n && n.X();
|
|
326
446
|
},
|
|
327
|
-
G: () =>
|
|
447
|
+
G: () => s()
|
|
328
448
|
};
|
|
329
|
-
},
|
|
330
|
-
let
|
|
331
|
-
const
|
|
332
|
-
const r =
|
|
333
|
-
for (const {target:
|
|
334
|
-
t.W(4,
|
|
335
|
-
const e =
|
|
336
|
-
|
|
337
|
-
const [t, n] = e, o = a(t, n), s = f.get(o);
|
|
338
|
-
let l, d;
|
|
339
|
-
s ? (s[0] !== u && (l = !0), s[1] !== c && (d = !0)) : l = d = !0, l && r.add(t),
|
|
340
|
-
d && i.add(n), (l || d) && f.set(o, [ u, c ]);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
if (r.size) {
|
|
344
|
-
const t = [];
|
|
345
|
-
r.forEach(e => {
|
|
346
|
-
let n = 0;
|
|
347
|
-
c.forEach(t => {
|
|
348
|
-
const o = f.get(a(e, t));
|
|
349
|
-
o && (n = d(n, o[0]));
|
|
350
|
-
}), n && t.push([ e, n ]);
|
|
351
|
-
}), e.W(3, t);
|
|
352
|
-
}
|
|
353
|
-
if (i.size) {
|
|
354
|
-
const e = [];
|
|
355
|
-
i.forEach(t => {
|
|
356
|
-
let n = 0;
|
|
357
|
-
l.forEach(e => {
|
|
358
|
-
const o = f.get(a(e, t));
|
|
359
|
-
o && (n = d(n, o[1]));
|
|
360
|
-
}), n && e.push([ t, n ]);
|
|
361
|
-
}), t.W(3, e);
|
|
449
|
+
}, G = (e, t) => {
|
|
450
|
+
let o, n, r, s = v();
|
|
451
|
+
const l = /* @__PURE__ */ new WeakMap, i = /* @__PURE__ */ new WeakMap, c = j(n => {
|
|
452
|
+
const r = [], s = [];
|
|
453
|
+
for (const {target: c, contentRect: {width: a, height: f}} of n) if (c === o) (a || f) && (e.W(4, f),
|
|
454
|
+
t.W(4, a)); else if (c.offsetParent) {
|
|
455
|
+
const e = l.get(c), t = i.get(c);
|
|
456
|
+
null != e && r.push([ e, f ]), null != t && s.push([ t, a ]);
|
|
362
457
|
}
|
|
458
|
+
r.length && e.W(3, r), s.length && t.W(3, s);
|
|
363
459
|
});
|
|
364
460
|
return {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
461
|
+
async U(e, t) {
|
|
462
|
+
await s[0] && (e ? r : n).Y(t);
|
|
463
|
+
},
|
|
464
|
+
j(l) {
|
|
465
|
+
const i = o = l.parentElement;
|
|
466
|
+
c.D(i);
|
|
467
|
+
const a = (e, t) => J(e, i, i, t, t && "rtl" === getComputedStyle(i).direction, () => {
|
|
468
|
+
const e = t ? "overflowX" : "overflowY", o = i.style, n = o[e];
|
|
469
|
+
o[e] = "hidden", w(() => {
|
|
470
|
+
o[e] = n;
|
|
371
471
|
});
|
|
372
|
-
};
|
|
373
|
-
|
|
472
|
+
});
|
|
473
|
+
n = a(e, !1), r = a(t, !0), s[1](!0);
|
|
374
474
|
},
|
|
375
|
-
|
|
376
|
-
|
|
475
|
+
v() {
|
|
476
|
+
c.V(), n && n.V(), r && r.V(), s[1](!1), s = v();
|
|
377
477
|
},
|
|
378
|
-
|
|
379
|
-
|
|
478
|
+
J: (e, t, o) => (null != t && l.set(e, t), null != o && i.set(e, o), c.D(e), () => {
|
|
479
|
+
l.delete(e), i.delete(e), c.P(e);
|
|
380
480
|
}),
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
e.W(3, n);
|
|
384
|
-
},
|
|
385
|
-
F(n) {
|
|
386
|
-
for (const [t] of n) for (let n = 0; n < e.C(); n++) f.delete(a(n, t));
|
|
387
|
-
t.W(3, n);
|
|
388
|
-
},
|
|
389
|
-
async K(e, t) {
|
|
390
|
-
await i[0] && r.D(e, t);
|
|
391
|
-
},
|
|
392
|
-
async N(e, t) {
|
|
393
|
-
await i[0] && o.D(e, t);
|
|
394
|
-
},
|
|
395
|
-
j() {
|
|
396
|
-
o && o.Y(), r && r.Y();
|
|
481
|
+
F() {
|
|
482
|
+
n && n.X(), r && r.X();
|
|
397
483
|
}
|
|
398
484
|
};
|
|
399
|
-
},
|
|
400
|
-
e.
|
|
401
|
-
},
|
|
402
|
-
if (
|
|
403
|
-
const e = t.u(
|
|
404
|
-
if (e < r)
|
|
405
|
-
if (!(e + t.h(
|
|
406
|
-
|
|
485
|
+
}, K = (e, t) => {
|
|
486
|
+
e.U(() => t);
|
|
487
|
+
}, N = (e, t, o, {align: n, smooth: r, offset: s = 0} = {}) => {
|
|
488
|
+
if (o = p(o, 0, t.T() - 1), "nearest" === n) {
|
|
489
|
+
const e = t.u(o), r = t.M();
|
|
490
|
+
if (e < r) n = "start"; else {
|
|
491
|
+
if (!(e + t.h(o) > r + t.o())) return;
|
|
492
|
+
n = "end";
|
|
407
493
|
}
|
|
408
494
|
}
|
|
409
|
-
e.
|
|
410
|
-
},
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
const n =
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
495
|
+
e.U(() => s + e.G() + t.u(o) + ("end" === n ? t.h(o) - t.o() : "center" === n ? (t.h(o) - t.o()) / 2 : 0), r);
|
|
496
|
+
}, Q = (e, t, o, n, r, s, l, i) => {
|
|
497
|
+
const c = t.T(), a = d(o, c), f = h(c - r, a);
|
|
498
|
+
s = p(s, 0, c - 1);
|
|
499
|
+
const u = H(n, a, f), g = q(u, s, f), $ = g < 0 ? -1 : u[g], m = () => [ t.u(a) - t.u(0) + ($ < 0 || $ === s ? 0 : t.u($ + 1) - t.u($)), t.u(c) - t.u(f) ];
|
|
500
|
+
if ("nearest" === l) {
|
|
501
|
+
if (s < a || s >= f) return;
|
|
502
|
+
const [e, o] = m(), n = t.M(), r = t.h(s);
|
|
503
|
+
let i = t.u(s);
|
|
504
|
+
if ($ === s) {
|
|
505
|
+
const o = (g + 1 < u.length ? u[g + 1] : f) - 1;
|
|
506
|
+
i = h(i, d(n + e, t.u(o) + t.h(o) - r));
|
|
507
|
+
}
|
|
508
|
+
if (i < n + e) l = "start"; else {
|
|
509
|
+
if (!(i + r > n + t.o() - o)) return;
|
|
510
|
+
l = "end";
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
e.U(i, () => {
|
|
514
|
+
const [e, o] = m(), n = t.h(s) - t.o();
|
|
515
|
+
return t.u(s) + ("end" === l ? n + o : "center" === l ? (n + o - e) / 2 : -e);
|
|
516
|
+
});
|
|
517
|
+
}, Z = z ? r : o, ee = "current", te = (e, t) => {
|
|
518
|
+
if (Array.isArray(e)) for (const o of e) te(o, t); else null == e || "boolean" == typeof e || t.push(e);
|
|
519
|
+
}, oe = (e, t) => {
|
|
520
|
+
const o = e.key;
|
|
521
|
+
return null != o ? o : "_" + t;
|
|
522
|
+
}, ne = e => {
|
|
523
|
+
const t = i(null);
|
|
417
524
|
return t.current || (t.current = e());
|
|
418
|
-
},
|
|
419
|
-
const t =
|
|
420
|
-
return
|
|
421
|
-
t[
|
|
525
|
+
}, re = e => {
|
|
526
|
+
const t = i(e);
|
|
527
|
+
return Z(() => {
|
|
528
|
+
t[ee] = e;
|
|
422
529
|
}, [ e ]), t;
|
|
423
|
-
},
|
|
424
|
-
const u =
|
|
425
|
-
|
|
426
|
-
const d =
|
|
530
|
+
}, se = /*#__PURE__*/ t(({K: e, N: t, Z: o, ee: n, te: r, oe: l, ne: a, re: f}) => {
|
|
531
|
+
const u = i(null);
|
|
532
|
+
Z(() => t(u[ee], o), [ o ]);
|
|
533
|
+
const d = s(() => {
|
|
427
534
|
const e = {
|
|
428
535
|
contain: "layout style",
|
|
429
|
-
position: r &&
|
|
430
|
-
[
|
|
431
|
-
[
|
|
432
|
-
[
|
|
433
|
-
visibility: !r ||
|
|
536
|
+
position: r && f ? void 0 : "absolute",
|
|
537
|
+
[a ? "height" : "width"]: "100%",
|
|
538
|
+
[a ? "top" : "left"]: 0,
|
|
539
|
+
[a ? "insetInlineStart" : "top"]: n,
|
|
540
|
+
visibility: !r || f ? void 0 : "hidden"
|
|
434
541
|
};
|
|
435
|
-
return
|
|
436
|
-
}, [
|
|
542
|
+
return a && (e.display = "inline-flex"), e;
|
|
543
|
+
}, [ n, r, f, a ]);
|
|
437
544
|
/* @__PURE__ */
|
|
438
|
-
return c(
|
|
545
|
+
return c(l, "string" == typeof l ? {
|
|
439
546
|
ref: u,
|
|
440
547
|
style: d,
|
|
441
548
|
children: e
|
|
442
549
|
} : {
|
|
443
550
|
ref: u,
|
|
444
551
|
style: d,
|
|
445
|
-
index:
|
|
552
|
+
index: o,
|
|
446
553
|
children: e
|
|
447
554
|
});
|
|
448
|
-
}),
|
|
449
|
-
if ("function" == typeof e) return [
|
|
450
|
-
const
|
|
555
|
+
}), le = (e, t) => s(() => {
|
|
556
|
+
if ("function" == typeof e) return [ o => e(t[o], o), t.length ];
|
|
557
|
+
const o = (e => {
|
|
451
558
|
const t = [];
|
|
452
|
-
return
|
|
559
|
+
return te(e, t), t;
|
|
453
560
|
})(e);
|
|
454
|
-
return [ e =>
|
|
455
|
-
}, [ e, t ]),
|
|
456
|
-
const [
|
|
457
|
-
const e = !!
|
|
458
|
-
return [
|
|
561
|
+
return [ e => o[e], o.length ];
|
|
562
|
+
}, [ e, t ]), ie = /*#__PURE__*/ e(({children: e, data: t, bufferSize: o, itemSize: r, shift: s, horizontal: f, keepMounted: u, cache: d, startMargin: h = 0, ssrCount: g, as: $ = "div", item: p = "div", scrollRef: w, onScroll: S, onScrollEnd: v}, z) => {
|
|
563
|
+
const [y, x] = le(e, t), I = i(null), R = i(!!g), T = re(S), C = re(v), [O, E, L, A] = ne(() => {
|
|
564
|
+
const e = !!f, t = M(x, r, d), o = k(t, g);
|
|
565
|
+
return [ o, t, U(o, e), e ];
|
|
459
566
|
});
|
|
460
|
-
|
|
461
|
-
const [
|
|
462
|
-
const t =
|
|
567
|
+
x !== O.T() && O.W(5, [ x, s ]), h !== O.O() && O.W(6, h);
|
|
568
|
+
const [W, H] = l(O.I, void 0, O.I), q = O.C(), B = O.t(), D = [], P = e => {
|
|
569
|
+
const t = y(e);
|
|
463
570
|
/* @__PURE__ */
|
|
464
|
-
return c(
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
},
|
|
571
|
+
return c(se, {
|
|
572
|
+
N: L.J,
|
|
573
|
+
Z: e,
|
|
574
|
+
ee: O.u(e),
|
|
575
|
+
te: O.R(e),
|
|
576
|
+
oe: p,
|
|
577
|
+
K: t,
|
|
578
|
+
ne: A,
|
|
579
|
+
re: R[ee]
|
|
580
|
+
}, oe(t, e));
|
|
474
581
|
};
|
|
475
|
-
if (
|
|
476
|
-
R[
|
|
477
|
-
e ?
|
|
478
|
-
}),
|
|
479
|
-
|
|
480
|
-
}),
|
|
481
|
-
|
|
582
|
+
if (Z(() => {
|
|
583
|
+
R[ee] = !1, O.A(1, e => {
|
|
584
|
+
e ? a(H) : H();
|
|
585
|
+
}), O.A(4, () => {
|
|
586
|
+
T.current && T.current(O.M());
|
|
587
|
+
}), O.A(8, () => {
|
|
588
|
+
C.current && C.current();
|
|
482
589
|
});
|
|
483
|
-
const e =
|
|
484
|
-
return
|
|
485
|
-
|
|
486
|
-
}) :
|
|
487
|
-
|
|
590
|
+
const e = I[ee];
|
|
591
|
+
return w ? _(() => {
|
|
592
|
+
w.current && L.j(e, w[ee]);
|
|
593
|
+
}) : L.j(e), () => {
|
|
594
|
+
O.v(), L.v();
|
|
488
595
|
};
|
|
489
|
-
}, []),
|
|
490
|
-
|
|
491
|
-
}, [
|
|
596
|
+
}, []), Z(() => {
|
|
597
|
+
L.F();
|
|
598
|
+
}, [ W ]), n(z, () => ({
|
|
492
599
|
get cache() {
|
|
493
|
-
return
|
|
600
|
+
return E.H();
|
|
494
601
|
},
|
|
495
602
|
get scrollOffset() {
|
|
496
|
-
return
|
|
603
|
+
return O.M();
|
|
497
604
|
},
|
|
498
605
|
get scrollSize() {
|
|
499
|
-
return b(
|
|
606
|
+
return b(O);
|
|
500
607
|
},
|
|
501
608
|
get viewportSize() {
|
|
502
|
-
return
|
|
503
|
-
},
|
|
504
|
-
findItemIndex:
|
|
505
|
-
getItemOffset:
|
|
506
|
-
getItemSize:
|
|
507
|
-
scrollToIndex: (e, t) =>
|
|
508
|
-
scrollTo: e =>
|
|
509
|
-
scrollBy: e => ((e, t,
|
|
510
|
-
|
|
511
|
-
})(
|
|
609
|
+
return O.o();
|
|
610
|
+
},
|
|
611
|
+
findItemIndex: O.k,
|
|
612
|
+
getItemOffset: O.u,
|
|
613
|
+
getItemSize: O.h,
|
|
614
|
+
scrollToIndex: (e, t) => N(L, O, e, t),
|
|
615
|
+
scrollTo: e => K(L, e),
|
|
616
|
+
scrollBy: e => ((e, t, o) => {
|
|
617
|
+
K(e, o + t.M());
|
|
618
|
+
})(L, O, e)
|
|
512
619
|
}), []), u) {
|
|
513
620
|
const e = new Set(u);
|
|
514
|
-
for (let [t,
|
|
515
|
-
|
|
516
|
-
e <
|
|
621
|
+
for (let [t, n] = O.l(o); t <= n; t++) e.add(t);
|
|
622
|
+
m([ ...e ]).forEach(e => {
|
|
623
|
+
e < x && D.push(P(e));
|
|
517
624
|
});
|
|
518
|
-
} else for (let [e, t] =
|
|
625
|
+
} else for (let [e, t] = O.l(o); e <= t; e++) D.push(P(e));
|
|
519
626
|
/* @__PURE__ */
|
|
520
|
-
return c(
|
|
521
|
-
ref:
|
|
627
|
+
return c($, {
|
|
628
|
+
ref: I,
|
|
522
629
|
style: {
|
|
523
630
|
contain: "size style",
|
|
524
631
|
overflowAnchor: "none",
|
|
525
632
|
flex: "none",
|
|
526
633
|
position: "relative",
|
|
527
|
-
width:
|
|
528
|
-
height:
|
|
529
|
-
pointerEvents:
|
|
634
|
+
width: A ? B : "100%",
|
|
635
|
+
height: A ? "100%" : B,
|
|
636
|
+
pointerEvents: q ? "none" : void 0
|
|
530
637
|
},
|
|
531
|
-
children:
|
|
638
|
+
children: D
|
|
532
639
|
});
|
|
533
|
-
}),
|
|
640
|
+
}), ce = /*#__PURE__*/ e(({children: e, data: t, bufferSize: o, itemSize: n, shift: r, horizontal: s, keepMounted: l, cache: i, ssrCount: a, item: f, onScroll: u, onScrollEnd: d, style: h, ...g}, $) => /* @__PURE__ */ c("div", {
|
|
534
641
|
...g,
|
|
535
642
|
style: {
|
|
536
|
-
display:
|
|
537
|
-
[
|
|
643
|
+
display: s ? "inline-block" : "block",
|
|
644
|
+
[s ? "overflowX" : "overflowY"]: "auto",
|
|
538
645
|
contain: "strict",
|
|
539
646
|
width: "100%",
|
|
540
647
|
height: "100%",
|
|
541
648
|
...h
|
|
542
649
|
},
|
|
543
|
-
children: /* @__PURE__ */ c(
|
|
544
|
-
ref:
|
|
650
|
+
children: /* @__PURE__ */ c(ie, {
|
|
651
|
+
ref: $,
|
|
545
652
|
data: t,
|
|
546
|
-
bufferSize:
|
|
547
|
-
itemSize:
|
|
653
|
+
bufferSize: o,
|
|
654
|
+
itemSize: n,
|
|
548
655
|
shift: r,
|
|
549
|
-
horizontal:
|
|
550
|
-
keepMounted:
|
|
551
|
-
cache:
|
|
552
|
-
ssrCount:
|
|
553
|
-
item:
|
|
656
|
+
horizontal: s,
|
|
657
|
+
keepMounted: l,
|
|
658
|
+
cache: i,
|
|
659
|
+
ssrCount: a,
|
|
660
|
+
item: f,
|
|
554
661
|
onScroll: u,
|
|
555
662
|
onScrollEnd: d,
|
|
556
663
|
children: e
|
|
557
664
|
})
|
|
558
|
-
})),
|
|
559
|
-
const [
|
|
560
|
-
const e = !!
|
|
561
|
-
return [
|
|
665
|
+
})), ae = /*#__PURE__*/ e(({children: e, data: t, bufferSize: o, itemSize: r, shift: s, horizontal: f, cache: u, ssrCount: d, as: h = "div", item: g = "div", onScroll: $, onScrollEnd: p}, m) => {
|
|
666
|
+
const [w, S] = le(e, t), _ = i(null), v = re($), z = re(p), y = i(!!d), [x, I, b, R] = ne(() => {
|
|
667
|
+
const e = !!f, t = M(S, r, u), o = k(t, d);
|
|
668
|
+
return [ o, t, F(o, e), e ];
|
|
562
669
|
});
|
|
563
|
-
|
|
564
|
-
const [
|
|
565
|
-
|
|
566
|
-
e ?
|
|
567
|
-
}),
|
|
568
|
-
|
|
569
|
-
}),
|
|
670
|
+
S !== x.T() && x.W(5, [ S, s ]);
|
|
671
|
+
const [T, C] = l(x.I, void 0, x.I), O = x.C(), E = x.t(), L = [];
|
|
672
|
+
Z(() => (y[ee] = !1, x.A(1, e => {
|
|
673
|
+
e ? a(C) : C();
|
|
674
|
+
}), x.A(4, () => {
|
|
675
|
+
v.current && v.current();
|
|
676
|
+
}), x.A(8, () => {
|
|
570
677
|
z.current && z.current();
|
|
571
|
-
}),
|
|
572
|
-
|
|
573
|
-
}), []),
|
|
574
|
-
|
|
575
|
-
}, [
|
|
678
|
+
}), b.j(_[ee]), () => {
|
|
679
|
+
x.v(), b.v();
|
|
680
|
+
}), []), Z(() => {
|
|
681
|
+
b.F();
|
|
682
|
+
}, [ T ]), n(m, () => ({
|
|
576
683
|
get cache() {
|
|
577
|
-
return
|
|
684
|
+
return I.H();
|
|
578
685
|
},
|
|
579
686
|
get scrollOffset() {
|
|
580
|
-
return
|
|
687
|
+
return x.M();
|
|
581
688
|
},
|
|
582
689
|
get viewportSize() {
|
|
583
|
-
return
|
|
690
|
+
return x.o();
|
|
584
691
|
},
|
|
585
|
-
findItemIndex:
|
|
586
|
-
getItemOffset:
|
|
587
|
-
getItemSize:
|
|
588
|
-
scrollToIndex: (e, t) =>
|
|
692
|
+
findItemIndex: x.k,
|
|
693
|
+
getItemOffset: x.u,
|
|
694
|
+
getItemSize: x.h,
|
|
695
|
+
scrollToIndex: (e, t) => N(b, x, e, t)
|
|
589
696
|
}), []);
|
|
590
|
-
for (let [e, t] =
|
|
591
|
-
const t =
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
},
|
|
697
|
+
for (let [e, t] = x.l(o); e <= t; e++) {
|
|
698
|
+
const t = w(e);
|
|
699
|
+
L.push(/* @__PURE__ */ c(se, {
|
|
700
|
+
N: b.J,
|
|
701
|
+
Z: e,
|
|
702
|
+
ee: x.u(e),
|
|
703
|
+
te: x.R(e),
|
|
704
|
+
oe: g,
|
|
705
|
+
K: t,
|
|
706
|
+
ne: R,
|
|
707
|
+
re: y[ee]
|
|
708
|
+
}, oe(t, e)));
|
|
602
709
|
}
|
|
603
710
|
/* @__PURE__ */
|
|
604
711
|
return c(h, {
|
|
605
|
-
ref:
|
|
712
|
+
ref: _,
|
|
606
713
|
style: {
|
|
607
714
|
contain: "size style",
|
|
608
715
|
overflowAnchor: "none",
|
|
609
716
|
flex: "none",
|
|
610
717
|
position: "relative",
|
|
611
|
-
width: R ?
|
|
612
|
-
height: R ? "100%" :
|
|
718
|
+
width: R ? E : "100%",
|
|
719
|
+
height: R ? "100%" : E,
|
|
613
720
|
pointerEvents: O ? "none" : void 0
|
|
614
721
|
},
|
|
615
|
-
children:
|
|
722
|
+
children: L
|
|
616
723
|
});
|
|
617
|
-
}),
|
|
618
|
-
const
|
|
619
|
-
return
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
724
|
+
}), fe = /*#__PURE__*/ t(({se: {le: e, ie: t, ce: o, ae: n, fe: r, ue: s, de: l, he: a}, K: f, ge: u, $e: d, pe: h, N: g}) => {
|
|
725
|
+
const $ = i(null);
|
|
726
|
+
return Z(() => {
|
|
727
|
+
if (null != n || null != r) return g($[ee], n, r);
|
|
728
|
+
}, [ n, r, g ]), /* @__PURE__ */ c("div", {
|
|
729
|
+
ref: $,
|
|
730
|
+
role: s,
|
|
731
|
+
"aria-colindex": e + 1,
|
|
732
|
+
"aria-rowspan": t,
|
|
733
|
+
"aria-colspan": o,
|
|
734
|
+
"aria-sort": l,
|
|
735
|
+
style: a,
|
|
736
|
+
children: f(u, d, {
|
|
737
|
+
rowIndex: h,
|
|
738
|
+
colIndex: e
|
|
739
|
+
})
|
|
632
740
|
});
|
|
633
|
-
}),
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
741
|
+
}), ue = /*#__PURE__*/ t(({se: {me: e, we: t, he: o}, K: n, ge: r, Se: s, N: l}) => /* @__PURE__ */ c("div", {
|
|
742
|
+
role: "row",
|
|
743
|
+
"aria-rowindex": e + 1,
|
|
744
|
+
style: o,
|
|
745
|
+
children: t.map(t => /* @__PURE__ */ c(fe, {
|
|
746
|
+
se: t,
|
|
747
|
+
K: n,
|
|
748
|
+
ge: r,
|
|
749
|
+
$e: O(s, t.le),
|
|
750
|
+
pe: e,
|
|
751
|
+
N: l
|
|
752
|
+
}, t.le))
|
|
753
|
+
})), de = ({se: {_e: e, he: t}, K: o, ve: n, Se: r, N: s}) => /* @__PURE__ */ c("div", {
|
|
754
|
+
role: "rowgroup",
|
|
755
|
+
style: t,
|
|
756
|
+
children: e.map(e => /* @__PURE__ */ c(ue, {
|
|
757
|
+
se: e,
|
|
758
|
+
K: o,
|
|
759
|
+
ge: O(n, e.me),
|
|
760
|
+
Se: r,
|
|
761
|
+
N: s
|
|
762
|
+
}, e.me))
|
|
763
|
+
}), he = /*#__PURE__*/ e(({children: e, rows: t, cols: o, rowHeight: r, colWidth: s, headerRows: f, sectionRows: g, footerRows: $, headerCols: w, footerCols: S, spans: _, keepMounted: v, bufferSize: z, gap: y = 0, ariaSort: x, onVerticalScroll: I, onHorizontalScroll: R, onScrollEnd: T, style: M, ...C}, j) => {
|
|
764
|
+
const J = i(null), U = re(I), F = re(R), K = re(T), [N, te, oe, se, le] = ne(() => {
|
|
765
|
+
const e = E(t, r, y), n = E(o, s, y), l = k(e), i = k(n);
|
|
766
|
+
return [ l, i, e, n, G(l, i) ];
|
|
637
767
|
});
|
|
638
|
-
|
|
639
|
-
const
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
768
|
+
L(N, oe, t, r), L(te, se, o, s);
|
|
769
|
+
const ie = () => N.I() + te.I(), [ce, ae] = l(ie, void 0, ie), fe = N.C() || te.C(), he = N.u(0), ge = te.u(0), $e = N.T(), pe = te.T(), me = ((e, t, o, n, r = 0, s = u, l = 0, i = 0, c = 0, a = u, f = u, g) => {
|
|
770
|
+
const $ = e.m(), w = t.m(), S = d(r, $), _ = h($ - l, S), v = d(i, w), z = h(w - c, v), y = p(o[0], S, _), x = d(o[1], _ - 1), I = p(n[0], v, z), b = d(n[1], z - 1), k = H(s, S, _), R = h(v - 1, 0), T = [], M = [], C = [];
|
|
771
|
+
for (const e of f) e.rowIndex < $ && e.colIndex < w && C.push(e);
|
|
772
|
+
const O = k.length;
|
|
773
|
+
O && (B(T, k, y, _), M.push(R));
|
|
774
|
+
let E = a, L = 0;
|
|
775
|
+
do {
|
|
776
|
+
for (;L < C.length; L++) {
|
|
777
|
+
const {rowIndex: e, colIndex: t} = C[L];
|
|
778
|
+
T.push(e), B(T, k, e, _), M.push(t);
|
|
779
|
+
}
|
|
780
|
+
const e = [];
|
|
781
|
+
for (const t of E) {
|
|
782
|
+
const o = t.rowIndex, n = t.colIndex, r = P(t, $), s = V(t, w);
|
|
783
|
+
if (o < $ && n < w && (r - o > 1 || s - n > 1)) if (W(T, o, r, S, y, x, _)) if (W(M, n, s, v, I, b, z)) C.push(t); else {
|
|
784
|
+
const n = q(k, r - 1, _);
|
|
785
|
+
(o < S || n >= 0 && k[n] >= o) && e.push(t);
|
|
786
|
+
} else n < v && e.push(t);
|
|
787
|
+
}
|
|
788
|
+
E = e;
|
|
789
|
+
} while (L < C.length);
|
|
790
|
+
m(T), m(M);
|
|
791
|
+
const j = D(T, $, S, y, x, _), J = D(M, w, v, I, b, z), U = j.length, F = J.length, G = /* @__PURE__ */ new Map, K = [], N = [];
|
|
792
|
+
for (const e of C) {
|
|
793
|
+
const t = P(e, $), o = V(e, w);
|
|
794
|
+
K.push(t), N.push(o);
|
|
795
|
+
const n = J.indexOf(e.colIndex);
|
|
796
|
+
for (let r = j.indexOf(e.rowIndex); r < U && j[r] < t; r++) {
|
|
797
|
+
const t = j[r] * w;
|
|
798
|
+
for (let r = n; r < F && J[r] < o; r++) G.set(t + J[r], e);
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
const Q = [];
|
|
802
|
+
for (const e of J) Q.push(!t.q(e) && null);
|
|
803
|
+
const Z = [], ee = e.u(S), te = [];
|
|
804
|
+
let oe = te;
|
|
805
|
+
const ne = A.get(e), re = /* @__PURE__ */ new Map;
|
|
806
|
+
for (const o of j) {
|
|
807
|
+
const n = o < S, r = o >= _, s = r || o >= y && o <= x, l = q(k, o, _), i = n ? 0 : r ? _ : l < 0 ? -1 : k[l];
|
|
808
|
+
if (o === i) {
|
|
809
|
+
const e = n ? S : r ? $ : l + 1 < O ? k[l + 1] : _;
|
|
810
|
+
K.push(e);
|
|
811
|
+
const t = [];
|
|
812
|
+
te.push({
|
|
813
|
+
ze: n ? -1 : r ? -2 : -3 - i,
|
|
814
|
+
_e: t,
|
|
815
|
+
he: Y(i, e, n || r ? 0 : null, r ? "bottom" : "top", 4)
|
|
816
|
+
}), oe = t;
|
|
817
|
+
} else i < 0 && (oe = te);
|
|
818
|
+
const c = l >= 0 && o === i, a = c ? ee : null, f = o * w, u = ne && ne.get(o), d = u && u.we, p = [];
|
|
819
|
+
let m = 0, T = !e.q(o) && null, M = o + 1, C = !1;
|
|
820
|
+
for (let e = 0; e < F; e++) {
|
|
821
|
+
const r = J[e], l = r < v, i = r >= z, a = i || r >= I && r <= b, u = G.get(f + r);
|
|
822
|
+
if (u ? u.rowIndex !== o || u.colIndex !== r : !(s && a || n || c || l)) continue;
|
|
823
|
+
const S = u ? P(u, $) : o + 1, _ = u ? V(u, w) : r + 1, y = S - o > 1, x = _ - r > 1, k = y || x, O = k ? S - o : void 0, E = k ? _ - r : void 0;
|
|
824
|
+
let L, A;
|
|
825
|
+
M = h(M, S);
|
|
826
|
+
const W = l ? t.u(r) : null, H = i ? t.t() - t.u(_ - 1) - t.h(_ - 1) : null;
|
|
827
|
+
!1 !== T || y || (L = o, T = !0), !1 !== Q[e] || x || (A = r, Q[e] = !0);
|
|
828
|
+
const q = n ? "columnheader" : r === R && (l || c) ? "rowheader" : "cell", B = "cell" !== q && g && g.rowIndex === o && g.colIndex === r ? g.order : void 0;
|
|
829
|
+
let D;
|
|
830
|
+
if (d) {
|
|
831
|
+
for (;m < d.length && d[m].le < r; ) m++;
|
|
832
|
+
m < d.length && (D = d[m]);
|
|
833
|
+
}
|
|
834
|
+
if (!D || D.le !== r || D.ie !== O || D.ce !== E || D.ye !== W || D.xe !== H || D.ae !== L || D.fe !== A || D.ue !== q || D.de !== B) {
|
|
835
|
+
const e = {
|
|
836
|
+
contain: "layout style",
|
|
837
|
+
display: "grid",
|
|
838
|
+
gridArea: k ? "1/l" + r + "/l" + S + "/l" + _ : "1/l" + r
|
|
839
|
+
};
|
|
840
|
+
y && (e.height = "0px", e.minHeight = "100%", e.zIndex = 1), x && (e.width = "0px",
|
|
841
|
+
e.minWidth = "100%"), (l || i) && (l ? e.insetInlineStart = W + "px" : e.insetInlineEnd = H + "px",
|
|
842
|
+
e.position = "sticky", e.zIndex = 2), D = {
|
|
843
|
+
le: r,
|
|
844
|
+
ie: O,
|
|
845
|
+
ce: E,
|
|
846
|
+
ae: L,
|
|
847
|
+
fe: A,
|
|
848
|
+
ue: q,
|
|
849
|
+
de: B,
|
|
850
|
+
he: e,
|
|
851
|
+
ye: W,
|
|
852
|
+
xe: H
|
|
853
|
+
}, C = !0;
|
|
854
|
+
}
|
|
855
|
+
p.push(D);
|
|
856
|
+
}
|
|
857
|
+
if (Z.push(T), !p.length) continue;
|
|
858
|
+
const E = u && !C && u.we.length === p.length && u.Ie === a ? u : {
|
|
859
|
+
me: o,
|
|
860
|
+
we: p,
|
|
861
|
+
he: Y(o, M, a, "top", 3),
|
|
862
|
+
Ie: a
|
|
863
|
+
};
|
|
864
|
+
re.set(o, E), oe.push(E);
|
|
865
|
+
}
|
|
866
|
+
return A.set(e, re), {
|
|
867
|
+
be: X(e, j, Z, m(K), "max-content", $),
|
|
868
|
+
ke: X(t, J, Q, m(N), "minmax(max-content,auto)", w),
|
|
869
|
+
Re: te
|
|
870
|
+
};
|
|
871
|
+
})(oe, se, N.l(z), te.l(z), f, g, $, w, S, _, v, x), we = re(e => ((e, t, o, n = 0, r = u, s = 0, l = 0, i = 0, {rowIndex: c, colIndex: a, rowAlign: f, colAlign: d}) => {
|
|
872
|
+
null != c && Q(e, t, n, r, s, c, f, !1), null != a && Q(e, o, l, u, i, a, d, !0);
|
|
873
|
+
})(le, N, te, f, g, $, w, S, e));
|
|
874
|
+
return Z(() => {
|
|
875
|
+
const e = e => {
|
|
876
|
+
e ? a(ae) : ae();
|
|
877
|
+
};
|
|
878
|
+
N.A(1, e), te.A(1, e);
|
|
879
|
+
let t = !1;
|
|
880
|
+
N.A(4, () => {
|
|
881
|
+
t = !0, U.current && U.current(N.M());
|
|
882
|
+
}), te.A(4, () => {
|
|
883
|
+
t = !0, F.current && F.current(te.M());
|
|
649
884
|
});
|
|
650
|
-
const
|
|
651
|
-
|
|
652
|
-
z._(), I._(), y._();
|
|
885
|
+
const o = () => {
|
|
886
|
+
!t || N.C() || te.C() || (t = !1, K.current && K.current());
|
|
653
887
|
};
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
888
|
+
return N.A(8, o), te.A(8, o), le.j(J[ee]), () => {
|
|
889
|
+
N.v(), te.v(), le.v();
|
|
890
|
+
};
|
|
891
|
+
}, []), Z(() => {
|
|
892
|
+
le.F();
|
|
893
|
+
}, [ ce ]), n(j, () => ({
|
|
894
|
+
get verticalScrollOffset() {
|
|
895
|
+
return N.M();
|
|
659
896
|
},
|
|
660
|
-
get
|
|
661
|
-
return
|
|
897
|
+
get horizontalScrollOffset() {
|
|
898
|
+
return te.M();
|
|
662
899
|
},
|
|
663
900
|
get scrollHeight() {
|
|
664
|
-
return b(
|
|
901
|
+
return b(N);
|
|
665
902
|
},
|
|
666
903
|
get scrollWidth() {
|
|
667
|
-
return b(
|
|
904
|
+
return b(te);
|
|
668
905
|
},
|
|
669
906
|
get viewportHeight() {
|
|
670
|
-
return
|
|
907
|
+
return N.o();
|
|
671
908
|
},
|
|
672
909
|
get viewportWidth() {
|
|
673
|
-
return
|
|
674
|
-
},
|
|
675
|
-
findRowIndex:
|
|
676
|
-
findColIndex:
|
|
677
|
-
getRowOffset:
|
|
678
|
-
getColOffset:
|
|
679
|
-
getRowSize:
|
|
680
|
-
getColSize:
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
const n = S(o, 0, t.C() - 1);
|
|
690
|
-
e.N(() => t.u(n));
|
|
691
|
-
}
|
|
692
|
-
if (null != r) {
|
|
693
|
-
const t = S(r, 0, n.C() - 1);
|
|
694
|
-
e.K(() => n.u(t));
|
|
695
|
-
}
|
|
696
|
-
})(y, z, I, e, t),
|
|
697
|
-
scrollTo: (e, t) => ((e, t, n) => {
|
|
698
|
-
null != t && e.N(() => t), null != n && e.K(() => n);
|
|
699
|
-
})(y, e, t),
|
|
700
|
-
scrollBy: (e, t) => ((e, t, n, o, r) => {
|
|
701
|
-
if (null != o) {
|
|
702
|
-
const n = o + t.M();
|
|
703
|
-
e.N(() => n);
|
|
910
|
+
return te.o();
|
|
911
|
+
},
|
|
912
|
+
findRowIndex: N.k,
|
|
913
|
+
findColIndex: te.k,
|
|
914
|
+
getRowOffset: N.u,
|
|
915
|
+
getColOffset: te.u,
|
|
916
|
+
getRowSize: N.h,
|
|
917
|
+
getColSize: te.h,
|
|
918
|
+
scrollToIndex: e => we[ee](e),
|
|
919
|
+
scrollTo: ({vertical: e, horizontal: t}) => ((e, t, o) => {
|
|
920
|
+
null != t && e.U(!1, () => t), null != o && e.U(!0, () => o);
|
|
921
|
+
})(le, e, t),
|
|
922
|
+
scrollBy: ({vertical: e, horizontal: t}) => ((e, t, o, n, r) => {
|
|
923
|
+
if (null != n) {
|
|
924
|
+
const o = n + t.M();
|
|
925
|
+
e.U(!1, () => o);
|
|
704
926
|
}
|
|
705
927
|
if (null != r) {
|
|
706
|
-
const t = r +
|
|
707
|
-
e.
|
|
928
|
+
const t = r + o.M();
|
|
929
|
+
e.U(!0, () => t);
|
|
708
930
|
}
|
|
709
|
-
})(
|
|
710
|
-
}), [])
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
return r || t.set(U(n, o), r = e({
|
|
716
|
-
rowIndex: n,
|
|
717
|
-
colIndex: o
|
|
718
|
-
})), r;
|
|
719
|
-
};
|
|
720
|
-
}, [ e ]), [J, j] = z.i(u), [G, K] = I.i(u), N = [];
|
|
721
|
-
for (let e = J; e <= j; e++) for (let t = G; t <= K; t++) N.push(/* @__PURE__ */ c(F, {
|
|
722
|
-
ee: y.V,
|
|
723
|
-
le: e,
|
|
724
|
-
ce: t,
|
|
725
|
-
fe: z.u(e),
|
|
726
|
-
ae: I.u(t),
|
|
727
|
-
ue: z.h(e),
|
|
728
|
-
de: I.h(t),
|
|
729
|
-
oe: z.R(e) || I.R(t),
|
|
730
|
-
he: g,
|
|
731
|
-
Z: V(e, t)
|
|
732
|
-
}, U(e, t)));
|
|
733
|
-
/* @__PURE__ */
|
|
734
|
-
return c("div", {
|
|
735
|
-
ref: p,
|
|
736
|
-
...w,
|
|
931
|
+
})(le, N, te, e, t)
|
|
932
|
+
}), []), /* @__PURE__ */ c("div", {
|
|
933
|
+
role: "table",
|
|
934
|
+
"aria-rowcount": $e,
|
|
935
|
+
"aria-colcount": pe,
|
|
936
|
+
...C,
|
|
737
937
|
style: {
|
|
738
938
|
overflow: "auto",
|
|
739
939
|
contain: "strict",
|
|
740
940
|
width: "100%",
|
|
741
941
|
height: "100%",
|
|
742
|
-
...
|
|
942
|
+
...M
|
|
743
943
|
},
|
|
744
944
|
children: /* @__PURE__ */ c("div", {
|
|
745
|
-
ref:
|
|
945
|
+
ref: J,
|
|
746
946
|
style: {
|
|
747
947
|
contain: "size style",
|
|
748
948
|
overflowAnchor: "none",
|
|
749
949
|
flex: "none",
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
950
|
+
display: "grid",
|
|
951
|
+
gridTemplateRows: me.be,
|
|
952
|
+
gridTemplateColumns: me.ke,
|
|
953
|
+
gap: y,
|
|
954
|
+
marginTop: he,
|
|
955
|
+
marginInlineStart: ge,
|
|
956
|
+
height: b(N) - he,
|
|
957
|
+
pointerEvents: fe ? "none" : void 0
|
|
754
958
|
},
|
|
755
|
-
children:
|
|
959
|
+
children: me.Re.map(n => "_e" in n ? /* @__PURE__ */ c(de, {
|
|
960
|
+
se: n,
|
|
961
|
+
K: e,
|
|
962
|
+
ve: t,
|
|
963
|
+
Se: o,
|
|
964
|
+
N: le.J
|
|
965
|
+
}, n.ze) : /* @__PURE__ */ c(ue, {
|
|
966
|
+
se: n,
|
|
967
|
+
K: e,
|
|
968
|
+
ge: O(t, n.me),
|
|
969
|
+
Se: o,
|
|
970
|
+
N: le.J
|
|
971
|
+
}, n.me))
|
|
756
972
|
})
|
|
757
973
|
});
|
|
758
974
|
});
|
|
759
975
|
|
|
760
|
-
export {
|
|
976
|
+
export { he as VGrid, ce as VList, ie as Virtualizer, ae as WindowVirtualizer };
|
|
761
977
|
//# sourceMappingURL=index.js.map
|