virtua 0.52.0 → 0.52.1

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.
@@ -10,4 +10,4 @@ export type { WindowVirtualizerProps, WindowVirtualizerHandle, } from './WindowV
10
10
  export type * from './types.js';
11
11
  export { VGrid } from './VGrid.js';
12
12
  export type { VGridProps, VGridHandle } from './VGrid.js';
13
- export type { VGridSize, VGridSpan } from '../core/index.js';
13
+ export type { GridSize, GridSpan } from '../core/index.js';
@@ -971,49 +971,51 @@ I), B = e => k(e.l(), e.u()), D = ({h: e, p: t, $: r, m: n, v: o, S: s, l: i, I:
971
971
  let T = 0, R = !e.P(r) && null, M = r + 1, O = !1;
972
972
  for (let e = 0; e < A; e++) {
973
973
  const o = H[e], i = o < $, l = o >= m, u = l || o >= S && o <= x, h = B.get(a + o);
974
- if (h ? h.rowIndex !== r || h.colIndex !== o : !(s && u || n || c || i)) continue;
975
- const p = h ? ee(h, g) : r + 1, v = h ? te(h, d) : o + 1, w = p - r > 1, z = v - o > 1, I = w || z, C = I ? p - r : void 0, L = I ? v - o : void 0;
976
- let W, E;
977
- M = k(M, p);
978
- const q = i ? t.$(o) : null, A = l ? t.l() - t.$(v - 1) - t.m(v - 1) : null;
979
- !1 !== R || w || (W = r, R = !0), !1 !== j[e] || z || (E = o, j[e] = !0);
980
- const D = n ? "columnheader" : o === y && (i || c) ? "rowheader" : "cell", P = "cell" !== D && f && f.rowIndex === r && f.colIndex === o ? f.order : void 0;
981
- let V;
982
- if (_) {
983
- for (;T < _.length && _[T].$e < o; ) T++;
984
- T < _.length && (V = _[T]);
985
- }
986
- if (!V || V.$e !== o || V.we !== C || V.Se !== L || V.Te !== q || V.Re !== A || V.fe !== W || V.ge !== E || V.ve !== D || V.xe !== P) {
987
- const e = {
988
- contain: "layout style",
989
- display: "grid",
990
- gridArea: I ? "1/l" + o + "/l" + p + "/l" + v : "1/l" + o
991
- };
992
- w && (e.height = "0px", e.minHeight = "100%", e.zIndex = 1), z && (e.width = "0px",
993
- e.minWidth = "100%"), (i || l) && (i ? e.insetInlineStart = q + "px" : e.insetInlineEnd = A + "px",
994
- e.position = "sticky", e.zIndex = 2), V = {
995
- $e: o,
996
- we: C,
997
- Se: L,
998
- fe: W,
999
- ge: E,
1000
- ve: D,
1001
- xe: P,
1002
- me: e,
1003
- Te: q,
1004
- Re: A
1005
- }, O = !0;
974
+ if (h ? h.rowIndex === r && h.colIndex === o : s && u || n || c || i) {
975
+ const s = h ? ee(h, g) : r + 1, u = h ? te(h, d) : o + 1, a = s - r > 1, p = u - o > 1, $ = a || p, m = $ ? s - r : void 0, v = $ ? u - o : void 0;
976
+ let w, S;
977
+ M = k(M, s);
978
+ const x = i ? t.$(o) : null, z = l ? t.l() - t.$(u - 1) - t.m(u - 1) : null;
979
+ !1 !== R || a || (w = r, R = !0), !1 !== j[e] || p || (S = o, j[e] = !0);
980
+ const I = n ? "columnheader" : o === y && (i || c) ? "rowheader" : "cell", C = "cell" !== I && f && f.rowIndex === r && f.colIndex === o ? f.order : void 0;
981
+ let L;
982
+ if (_) {
983
+ for (;T < _.length && _[T].$e < o; ) T++;
984
+ T < _.length && (L = _[T]);
985
+ }
986
+ if (!L || L.$e !== o || L.we !== m || L.Se !== v || L.Te !== x || L.Re !== z || L.fe !== w || L.ge !== S || L.ve !== I || L.xe !== C) {
987
+ const e = {
988
+ contain: "layout style",
989
+ display: "grid",
990
+ gridArea: $ ? "1/l" + o + "/l" + s + "/l" + u : "1/l" + o
991
+ };
992
+ a && (e.height = "0px", e.minHeight = "100%", e.zIndex = 1), p && (e.width = "0px",
993
+ e.minWidth = "100%"), (i || l) && (i ? e.insetInlineStart = x + "px" : e.insetInlineEnd = z + "px",
994
+ e.position = "sticky", e.zIndex = 2), L = {
995
+ $e: o,
996
+ we: m,
997
+ Se: v,
998
+ fe: w,
999
+ ge: S,
1000
+ ve: I,
1001
+ xe: C,
1002
+ me: e,
1003
+ Te: x,
1004
+ Re: z
1005
+ }, O = !0;
1006
+ }
1007
+ b.push(L);
1006
1008
  }
1007
- b.push(V);
1008
1009
  }
1009
- if (V.push(R), !b.length) continue;
1010
- const L = I && !O && I.ze.length === b.length && I.Me === u ? I : {
1011
- Ie: r,
1012
- ze: b,
1013
- me: oe(r, M, u, "top", 3),
1014
- Me: u
1015
- };
1016
- ne.set(r, L), Y.push(L);
1010
+ if (V.push(R), b.length) {
1011
+ const e = I && !O && I.ze.length === b.length && I.Me === u ? I : {
1012
+ Ie: r,
1013
+ ze: b,
1014
+ me: oe(r, M, u, "top", 3),
1015
+ Me: u
1016
+ };
1017
+ ne.set(r, e), Y.push(e);
1018
+ }
1017
1019
  }
1018
1020
  return Z.set(e, ne), {
1019
1021
  Oe: re(e, E, V, O(D), "max-content", g),