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.
@@ -9,4 +9,4 @@ export { WindowVirtualizer } from './WindowVirtualizer.js';
9
9
  export type { WindowVirtualizerProps, WindowVirtualizerHandle, } from './WindowVirtualizer.js';
10
10
  export { VGrid } from './VGrid.js';
11
11
  export type { VGridProps, VGridHandle } from './VGrid.js';
12
- export type { VGridSize, VGridSpan } from '../core/index.js';
12
+ export type { GridSize, GridSpan } from '../core/index.js';
package/lib/vue/index.js CHANGED
@@ -1041,49 +1041,51 @@ u), v = e => p(e.t(), e.o()), I = ({l: e, i: t, u: o, p: r, m: n, h: s, t: l, S:
1041
1041
  let $ = 0, R = !e.P(o) && null, T = o + 1, A = !1;
1042
1042
  for (let e = 0; e < J; e++) {
1043
1043
  const n = X[e], l = n < y, i = n >= z, a = i || n >= v && n <= I, f = U.get(u + n);
1044
- if (f ? f.rowIndex !== o || f.colIndex !== n : !(s && a || r || c || l)) continue;
1045
- const w = f ? P(f, g) : o + 1, S = f ? H(f, h) : n + 1, b = w - o > 1, x = S - n > 1, k = b || x, N = k ? w - o : void 0, M = k ? S - n : void 0;
1046
- let C, E;
1047
- T = p(T, w);
1048
- const j = l ? t.u(n) : null, q = i ? t.t() - t.u(S - 1) - t.p(S - 1) : null;
1049
- !1 !== R || b || (C = o, R = !0), !1 !== Q[e] || x || (E = n, Q[e] = !0);
1050
- const B = r ? "columnheader" : n === O && (l || c) ? "rowheader" : "cell", L = "cell" !== B && m && m.rowIndex === o && m.colIndex === n ? m.order : void 0;
1051
- let W;
1052
- if (d) {
1053
- for (;$ < d.length && d[$].de < n; ) $++;
1054
- $ < d.length && (W = d[$]);
1055
- }
1056
- if (!W || W.de !== n || W.pe !== N || W.me !== M || W.ke !== j || W.Oe !== q || W.ae !== C || W.fe !== E || W.ge !== B || W._e !== L) {
1057
- const e = {
1058
- contain: "layout style",
1059
- display: "grid",
1060
- gridArea: k ? "1/l" + n + "/l" + w + "/l" + S : "1/l" + n
1061
- };
1062
- b && (e.height = "0px", e.minHeight = "100%", e.zIndex = 1), x && (e.width = "0px",
1063
- e.minWidth = "100%"), (l || i) && (l ? e.insetInlineStart = j + "px" : e.insetInlineEnd = q + "px",
1064
- e.position = "sticky", e.zIndex = 2), W = {
1065
- de: n,
1066
- pe: N,
1067
- me: M,
1068
- ae: C,
1069
- fe: E,
1070
- ge: B,
1071
- _e: L,
1072
- $e: e,
1073
- ke: j,
1074
- Oe: q
1075
- }, A = !0;
1044
+ if (f ? f.rowIndex === o && f.colIndex === n : s && a || r || c || l) {
1045
+ const s = f ? P(f, g) : o + 1, a = f ? H(f, h) : n + 1, u = s - o > 1, w = a - n > 1, S = u || w, y = S ? s - o : void 0, z = S ? a - n : void 0;
1046
+ let b, x;
1047
+ T = p(T, s);
1048
+ const v = l ? t.u(n) : null, I = i ? t.t() - t.u(a - 1) - t.p(a - 1) : null;
1049
+ !1 !== R || u || (b = o, R = !0), !1 !== Q[e] || w || (x = n, Q[e] = !0);
1050
+ const k = r ? "columnheader" : n === O && (l || c) ? "rowheader" : "cell", N = "cell" !== k && m && m.rowIndex === o && m.colIndex === n ? m.order : void 0;
1051
+ let M;
1052
+ if (d) {
1053
+ for (;$ < d.length && d[$].de < n; ) $++;
1054
+ $ < d.length && (M = d[$]);
1055
+ }
1056
+ if (!M || M.de !== n || M.pe !== y || M.me !== z || M.ke !== v || M.Oe !== I || M.ae !== b || M.fe !== x || M.ge !== k || M._e !== N) {
1057
+ const e = {
1058
+ contain: "layout style",
1059
+ display: "grid",
1060
+ gridArea: S ? "1/l" + n + "/l" + s + "/l" + a : "1/l" + n
1061
+ };
1062
+ u && (e.height = "0px", e.minHeight = "100%", e.zIndex = 1), w && (e.width = "0px",
1063
+ e.minWidth = "100%"), (l || i) && (l ? e.insetInlineStart = v + "px" : e.insetInlineEnd = I + "px",
1064
+ e.position = "sticky", e.zIndex = 2), M = {
1065
+ de: n,
1066
+ pe: y,
1067
+ me: z,
1068
+ ae: b,
1069
+ fe: x,
1070
+ ge: k,
1071
+ _e: N,
1072
+ $e: e,
1073
+ ke: v,
1074
+ Oe: I
1075
+ }, A = !0;
1076
+ }
1077
+ _.push(M);
1076
1078
  }
1077
- _.push(W);
1078
1079
  }
1079
- if (Z.push(R), !_.length) continue;
1080
- const M = f && !A && f.ze.length === _.length && f.Re === a ? f : {
1081
- ye: o,
1082
- ze: _,
1083
- $e: V(o, T, a, "top", 3),
1084
- Re: a
1085
- };
1086
- ne.set(o, M), oe.push(M);
1080
+ if (Z.push(R), _.length) {
1081
+ const e = f && !A && f.ze.length === _.length && f.Re === a ? f : {
1082
+ ye: o,
1083
+ ze: _,
1084
+ $e: V(o, T, a, "top", 3),
1085
+ Re: a
1086
+ };
1087
+ ne.set(o, e), oe.push(e);
1088
+ }
1087
1089
  }
1088
1090
  return C.set(e, ne), {
1089
1091
  Te: W(e, F, Z, $(G), "max-content", g),