virtua 0.52.1 → 0.52.3
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/angular/index.js +237 -232
- package/lib/angular/index.js.map +1 -1
- package/lib/core/index.cjs +241 -236
- package/lib/core/index.cjs.map +1 -1
- package/lib/core/index.js +235 -230
- package/lib/core/index.js.map +1 -1
- package/lib/index.cjs +414 -409
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +406 -401
- package/lib/index.js.map +1 -1
- package/lib/solid/index.cjs +437 -432
- package/lib/solid/index.cjs.map +1 -1
- package/lib/solid/index.js +404 -399
- package/lib/solid/index.js.map +1 -1
- package/lib/solid/index.jsx +177 -181
- package/lib/solid/index.jsx.map +1 -1
- package/lib/svelte/VGrid.svelte +20 -10
- package/lib/vue/index.cjs +400 -395
- package/lib/vue/index.cjs.map +1 -1
- package/lib/vue/index.js +410 -405
- package/lib/vue/index.js.map +1 -1
- package/package.json +1 -1
package/lib/svelte/VGrid.svelte
CHANGED
|
@@ -84,10 +84,26 @@
|
|
|
84
84
|
|
|
85
85
|
// The sizes read from the items are tracked, so the items mutated in place are followed.
|
|
86
86
|
$effect.pre(() => {
|
|
87
|
-
updateGridAxis(
|
|
87
|
+
updateGridAxis(
|
|
88
|
+
rowStore,
|
|
89
|
+
rowLayout,
|
|
90
|
+
rows,
|
|
91
|
+
rowHeight,
|
|
92
|
+
headerRows,
|
|
93
|
+
footerRows,
|
|
94
|
+
true,
|
|
95
|
+
);
|
|
88
96
|
});
|
|
89
97
|
$effect.pre(() => {
|
|
90
|
-
updateGridAxis(
|
|
98
|
+
updateGridAxis(
|
|
99
|
+
colStore,
|
|
100
|
+
colLayout,
|
|
101
|
+
cols,
|
|
102
|
+
colWidth,
|
|
103
|
+
headerCols,
|
|
104
|
+
footerCols,
|
|
105
|
+
true,
|
|
106
|
+
);
|
|
91
107
|
});
|
|
92
108
|
let rowCount = $derived(stateVersion && rowStore.$getItemsLength());
|
|
93
109
|
let colCount = $derived(stateVersion && colStore.$getItemsLength());
|
|
@@ -98,11 +114,7 @@
|
|
|
98
114
|
colLayout,
|
|
99
115
|
rowStore.$getRange(bufferSize),
|
|
100
116
|
colStore.$getRange(bufferSize),
|
|
101
|
-
headerRows,
|
|
102
117
|
sectionRows,
|
|
103
|
-
footerRows,
|
|
104
|
-
headerCols,
|
|
105
|
-
footerCols,
|
|
106
118
|
spans,
|
|
107
119
|
keepMounted,
|
|
108
120
|
ariaSort,
|
|
@@ -155,11 +167,9 @@
|
|
|
155
167
|
driver,
|
|
156
168
|
rowStore,
|
|
157
169
|
colStore,
|
|
158
|
-
|
|
170
|
+
rowLayout,
|
|
171
|
+
colLayout,
|
|
159
172
|
sectionRows,
|
|
160
|
-
footerRows,
|
|
161
|
-
headerCols,
|
|
162
|
-
footerCols,
|
|
163
173
|
opts,
|
|
164
174
|
);
|
|
165
175
|
export const scrollTo: VGridHandle["scrollTo"] = ({ vertical, horizontal }) =>
|