virtua 0.52.8 → 0.52.9
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/lib/index.cjs +79 -76
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -571,6 +571,7 @@ f), I = e => h(e.t(), e.o()), k = ({l: e, i: t, u: o, h: n, $: r, t: s, p: l, m:
|
|
|
571
571
|
})(e);
|
|
572
572
|
return [ e => o[e], o.length ];
|
|
573
573
|
}, [ e, t ]), se = /*#__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) => {
|
|
574
|
+
"use no memo";
|
|
574
575
|
const [y, x] = re(e, t), b = i(null), R = i(!!g), T = oe(S), C = oe(v), [O, E, L, W] = te(() => {
|
|
575
576
|
const e = !!f, t = M(x, r, d), o = k(t, g);
|
|
576
577
|
return [ o, t, j(o, e), e ];
|
|
@@ -674,6 +675,7 @@ f), I = e => h(e.t(), e.o()), k = ({l: e, i: t, u: o, h: n, $: r, t: s, p: l, m:
|
|
|
674
675
|
children: e
|
|
675
676
|
})
|
|
676
677
|
})), ie = /*#__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) => {
|
|
678
|
+
"use no memo";
|
|
677
679
|
const [w, S] = re(e, t), _ = i(null), v = oe($), z = oe(p), y = i(!!d), [x, b, I, R] = te(() => {
|
|
678
680
|
const e = !!f, t = M(S, r, u), o = k(t, d);
|
|
679
681
|
return [ o, t, D(o, e), e ];
|
|
@@ -772,6 +774,7 @@ f), I = e => h(e.t(), e.o()), k = ({l: e, i: t, u: o, h: n, $: r, t: s, p: l, m:
|
|
|
772
774
|
oe: s
|
|
773
775
|
}, e.ve))
|
|
774
776
|
}), ue = /*#__PURE__*/ e(({children: e, rows: t, cols: o, rowHeight: r, colWidth: f, headerRows: g, sectionRows: $, footerRows: w, headerCols: S, footerCols: _, spans: v, keepMounted: z, bufferSize: y, gap: x = 0, ariaSort: b, onVerticalScroll: R, onHorizontalScroll: T, onScrollEnd: M, style: H, ...Y}, J) => {
|
|
777
|
+
"use no memo";
|
|
775
778
|
const j = i(null), D = oe(R), F = oe(T), G = oe(M), [Z, ee, ne, re, se] = te(() => {
|
|
776
779
|
const e = E(t, r, x), n = E(o, f, x), s = k(e), l = k(n);
|
|
777
780
|
return [ s, l, e, n, U(s, l) ];
|