handsontable 0.0.0-next-fbcf6cd-20260708 → 0.0.0-next-07941cf-20260708
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/3rdparty/walkontable/src/render/cells.js +5 -0
- package/3rdparty/walkontable/src/render/cells.mjs +5 -0
- package/3rdparty/walkontable/src/render/index.d.ts +8 -0
- package/3rdparty/walkontable/src/render/index.js +10 -0
- package/3rdparty/walkontable/src/render/index.mjs +10 -0
- package/3rdparty/walkontable/src/render/rowHeaders.js +5 -0
- package/3rdparty/walkontable/src/render/rowHeaders.mjs +5 -0
- package/3rdparty/walkontable/src/render/tableRenderer.d.ts +18 -0
- package/3rdparty/walkontable/src/render/tableRenderer.js +175 -1
- package/3rdparty/walkontable/src/render/tableRenderer.mjs +175 -1
- package/3rdparty/walkontable/src/table/drawCycle.js +21 -4
- package/3rdparty/walkontable/src/table/drawCycle.mjs +21 -4
- package/3rdparty/walkontable/src/viewport/calculatorFactory.d.ts +1 -0
- package/3rdparty/walkontable/src/viewport/calculatorFactory.js +14 -0
- package/3rdparty/walkontable/src/viewport/calculatorFactory.mjs +14 -0
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core.js +5 -2
- package/core.mjs +5 -2
- package/dataMap/metaManager/metaSchema.js +1 -0
- package/dataMap/metaManager/metaSchema.mjs +1 -0
- package/dist/handsontable.full.js +223 -14
- package/dist/handsontable.full.min.js +95 -95
- package/dist/handsontable.js +223 -14
- package/dist/handsontable.min.js +95 -95
- package/dist/themes/classic.js +2 -2
- package/dist/themes/classic.min.js +2 -2
- package/dist/themes/horizon.js +2 -2
- package/dist/themes/horizon.min.js +2 -2
- package/dist/themes/main.js +2 -2
- package/dist/themes/main.min.js +2 -2
- package/dist/themes/static/variables/colors/ant.js +2 -2
- package/dist/themes/static/variables/colors/ant.min.js +2 -2
- package/dist/themes/static/variables/colors/classic.js +2 -2
- package/dist/themes/static/variables/colors/classic.min.js +2 -2
- package/dist/themes/static/variables/colors/horizon.js +2 -2
- package/dist/themes/static/variables/colors/horizon.min.js +2 -2
- package/dist/themes/static/variables/colors/main.js +2 -2
- package/dist/themes/static/variables/colors/main.min.js +2 -2
- package/dist/themes/static/variables/colors/material.js +2 -2
- package/dist/themes/static/variables/colors/material.min.js +2 -2
- package/dist/themes/static/variables/colors/shadcn.js +2 -2
- package/dist/themes/static/variables/colors/shadcn.min.js +2 -2
- package/dist/themes/static/variables/density.js +2 -2
- package/dist/themes/static/variables/density.min.js +2 -2
- package/dist/themes/static/variables/helpers/iconsMap.js +2 -2
- package/dist/themes/static/variables/helpers/iconsMap.min.js +2 -2
- package/dist/themes/static/variables/icons/horizon.js +2 -2
- package/dist/themes/static/variables/icons/horizon.min.js +2 -2
- package/dist/themes/static/variables/icons/main.js +2 -2
- package/dist/themes/static/variables/icons/main.min.js +2 -2
- package/dist/themes/static/variables/sizing.js +2 -2
- package/dist/themes/static/variables/sizing.min.js +2 -2
- package/dist/themes/static/variables/tokens/classic.js +2 -2
- package/dist/themes/static/variables/tokens/classic.min.js +2 -2
- package/dist/themes/static/variables/tokens/horizon.js +2 -2
- package/dist/themes/static/variables/tokens/horizon.min.js +2 -2
- package/dist/themes/static/variables/tokens/main.js +2 -2
- package/dist/themes/static/variables/tokens/main.min.js +2 -2
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/plugins/collapsibleColumns/collapsibleColumns.d.ts +4 -0
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +4 -0
- package/selection/selection.d.ts +5 -2
- package/selection/selection.js +5 -2
- package/selection/selection.mjs +5 -2
- package/styles/handsontable.css +2 -2
- package/styles/handsontable.min.css +2 -2
- package/styles/handsontableStyles.js +1 -1
- package/styles/handsontableStyles.mjs +1 -1
- package/styles/ht-icons-horizon.min.css +2 -2
- package/styles/ht-icons-main.min.css +2 -2
- package/styles/ht-theme-classic-no-icons.min.css +2 -2
- package/styles/ht-theme-classic.min.css +2 -2
- package/styles/ht-theme-horizon-no-icons.min.css +2 -2
- package/styles/ht-theme-horizon.min.css +2 -2
- package/styles/ht-theme-main-no-icons.min.css +2 -2
- package/styles/ht-theme-main.min.css +2 -2
|
@@ -90,7 +90,7 @@ import { CLONE_BOTTOM, CLONE_BOTTOM_INLINE_START_CORNER } from '../overlay/index
|
|
|
90
90
|
wtSettings.getSetting('beforeDraw', true, skipRender);
|
|
91
91
|
ctx.performRedraw = skipRender.skipRender !== true;
|
|
92
92
|
if (ctx.performRedraw) {
|
|
93
|
-
renderCellBand(table, ctx, filters, isPureVerticalScrollDraw(wtOverlays));
|
|
93
|
+
renderCellBand(table, ctx, filters, isPureVerticalScrollDraw(wtOverlays), isRowDeltaEligible(wtOverlays, wtViewport));
|
|
94
94
|
if (!wtSettings.getSetting('externalRowCalculator')) {
|
|
95
95
|
// Single-pass: the fully/partially-visible calculators were already computed in pass 1
|
|
96
96
|
// (`createCalculators`) from the layout snapshot. On the snapshot path, the only thing that
|
|
@@ -140,8 +140,10 @@ import { CLONE_BOTTOM, CLONE_BOTTOM_INLINE_START_CORNER } from '../overlay/index
|
|
|
140
140
|
table.tableOffset = table.deps.getParentTableOffset();
|
|
141
141
|
const filters = buildRenderFilters(table, ctx);
|
|
142
142
|
// A clone's render is never gated by `skipRender` (that gate is master-only), so it always runs.
|
|
143
|
-
// The scroll-direction flags live on the master's overlays, reached via the clone source.
|
|
144
|
-
|
|
143
|
+
// The scroll-direction flags live on the master's overlays, reached via the clone source. The
|
|
144
|
+
// single-pass predicate reads only shared settings, so the clone's own viewport answers it.
|
|
145
|
+
const cloneSourceOverlays = table.deps.getCloneSource().wtOverlays;
|
|
146
|
+
renderCellBand(table, ctx, filters, isPureVerticalScrollDraw(cloneSourceOverlays), isRowDeltaEligible(cloneSourceOverlays, table.deps.getWtViewport()));
|
|
145
147
|
if (table.is(CLONE_BOTTOM)) {
|
|
146
148
|
table.deps.getCloneSource().wtOverlays.adjustElementsSize();
|
|
147
149
|
}
|
|
@@ -184,6 +186,18 @@ import { CLONE_BOTTOM, CLONE_BOTTOM_INLINE_START_CORNER } from '../overlay/index
|
|
|
184
186
|
*/ function isPureVerticalScrollDraw(wtOverlays) {
|
|
185
187
|
return !!wtOverlays && wtOverlays.isScrollDrivenDraw && wtOverlays.verticalScrolling && !wtOverlays.horizontalScrolling;
|
|
186
188
|
}
|
|
189
|
+
/**
|
|
190
|
+
* Returns `true` when the TBODY row band may be delta-rendered on this draw: it is a pure vertical
|
|
191
|
+
* scroll AND the viewport allows row-delta rendering (`singlePassLayout` on — so no merged cells —
|
|
192
|
+
* and the table is not window-scrolled). `allowsRowDeltaRender` reads only shared settings, so each
|
|
193
|
+
* role can answer it from the viewport it has in hand.
|
|
194
|
+
*
|
|
195
|
+
* @param {Overlays} wtOverlays The master's overlays object (the owner of the scroll-direction flags).
|
|
196
|
+
* @param {Viewport} wtViewport The viewport whose row-delta predicate gates the delta path.
|
|
197
|
+
* @returns {boolean}
|
|
198
|
+
*/ function isRowDeltaEligible(wtOverlays, wtViewport) {
|
|
199
|
+
return isPureVerticalScrollDraw(wtOverlays) && wtViewport.allowsRowDeltaRender();
|
|
200
|
+
}
|
|
187
201
|
/**
|
|
188
202
|
* Renders the header + cell band and measures the rendered rows. Shared by both cycles. The
|
|
189
203
|
* role-specific branches stay inline and verbatim: bottom / bottom-left-corner overlays suppress
|
|
@@ -195,13 +209,16 @@ import { CLONE_BOTTOM, CLONE_BOTTOM_INLINE_START_CORNER } from '../overlay/index
|
|
|
195
209
|
* `buildRenderFilters` (passed non-null rather than re-read off the nullable `table.*Filter`).
|
|
196
210
|
* @param {boolean} columnHeadersRenderSkippable Whether the column-header (THEAD) pass may be skipped
|
|
197
211
|
* for this draw (a pure vertical scroll); resolved per role by the caller.
|
|
198
|
-
|
|
212
|
+
* @param {boolean} rowDeltaRenderable Whether the TBODY row band may be delta-rendered (rotate
|
|
213
|
+
* surviving rows, render only entering rows) for this draw; resolved per role by the caller.
|
|
214
|
+
*/ function renderCellBand(table, ctx, filters, columnHeadersRenderSkippable, rowDeltaRenderable) {
|
|
199
215
|
table.tableRenderer.setHeaderContentRenderers(ctx.rowHeaders, ctx.columnHeaders);
|
|
200
216
|
if (table.is(CLONE_BOTTOM) || table.is(CLONE_BOTTOM_INLINE_START_CORNER)) {
|
|
201
217
|
// do NOT render headers on the bottom or bottom-left corner overlay
|
|
202
218
|
table.tableRenderer.setHeaderContentRenderers(ctx.rowHeaders, []);
|
|
203
219
|
}
|
|
204
220
|
table.tableRenderer.setColumnHeadersRenderSkippable(columnHeadersRenderSkippable);
|
|
221
|
+
table.tableRenderer.setRowDeltaRenderable(rowDeltaRenderable);
|
|
205
222
|
table.resetOversizedRows();
|
|
206
223
|
table.tableRenderer.setActiveOverlayName(table.name).setViewportSize(table.getRenderedRowsCount(), table.getRenderedColumnsCount()).setFilters(filters.rowFilter, filters.columnFilter).render();
|
|
207
224
|
table.adjustColumnHeaderHeights();
|
|
@@ -27,6 +27,7 @@ export interface CalculatorFactory {
|
|
|
27
27
|
createCalculators(fastDraw?: boolean): boolean;
|
|
28
28
|
createVisibleCalculators(): void;
|
|
29
29
|
usesLayoutSnapshotForCalculators(): boolean;
|
|
30
|
+
allowsRowDeltaRender(): boolean;
|
|
30
31
|
areAllProposedVisibleRowsAlreadyRendered(proposedFullyVisibleRowsCalculator: RowsCalculationType | undefined, proposedPartiallyVisibleRowsCalculator: RowsCalculationType | undefined): boolean;
|
|
31
32
|
areAllProposedVisibleColumnsAlreadyRendered(proposedFullyVisibleColumnsCalculator: ColumnsCalculationType | undefined, proposedPartiallyVisibleColumnsCalculator: ColumnsCalculationType | undefined): boolean;
|
|
32
33
|
}
|
|
@@ -231,6 +231,20 @@ const calculatorFactory = {
|
|
|
231
231
|
return this.wtSettings.getSetting('singlePassLayout') && !this.isVerticallyScrollableByWindow() && !this.isHorizontallyScrollableByWindow() && this.wtSettings.getSetting('rowHeightsUniform') && this.wtSettings.getSetting('columnWidthsUniform');
|
|
232
232
|
},
|
|
233
233
|
/**
|
|
234
|
+
* Decides whether the TBODY row band may be delta-rendered on a pure vertical scroll (rotate the
|
|
235
|
+
* surviving TR nodes, render only the entering rows). This is a looser gate than the single-pass
|
|
236
|
+
* layout gate: it drops the uniform-size requirements (row rotation preserves each surviving row's
|
|
237
|
+
* own content and height, and column widths never change on a vertical scroll), but keeps the two
|
|
238
|
+
* conditions that make skipping a survivor's re-render unsafe — `singlePassLayout` off (which
|
|
239
|
+
* `mergeCells` forces, and merged cells recompute their spans per viewport) and window scrolling
|
|
240
|
+
* (a different scroll/offset model). Anything else takes the full band render unchanged.
|
|
241
|
+
*
|
|
242
|
+
* @this Viewport
|
|
243
|
+
* @returns {boolean}
|
|
244
|
+
*/ allowsRowDeltaRender () {
|
|
245
|
+
return this.wtSettings.getSetting('singlePassLayout') && !this.isVerticallyScrollableByWindow() && !this.isHorizontallyScrollableByWindow();
|
|
246
|
+
},
|
|
247
|
+
/**
|
|
234
248
|
* Returns information whether proposedFullyVisibleRowsCalculator viewport
|
|
235
249
|
* is contained inside rows rendered in previous draw (cached in rowsRenderCalculator).
|
|
236
250
|
*
|
|
@@ -225,6 +225,20 @@
|
|
|
225
225
|
return this.wtSettings.getSetting('singlePassLayout') && !this.isVerticallyScrollableByWindow() && !this.isHorizontallyScrollableByWindow() && this.wtSettings.getSetting('rowHeightsUniform') && this.wtSettings.getSetting('columnWidthsUniform');
|
|
226
226
|
},
|
|
227
227
|
/**
|
|
228
|
+
* Decides whether the TBODY row band may be delta-rendered on a pure vertical scroll (rotate the
|
|
229
|
+
* surviving TR nodes, render only the entering rows). This is a looser gate than the single-pass
|
|
230
|
+
* layout gate: it drops the uniform-size requirements (row rotation preserves each surviving row's
|
|
231
|
+
* own content and height, and column widths never change on a vertical scroll), but keeps the two
|
|
232
|
+
* conditions that make skipping a survivor's re-render unsafe — `singlePassLayout` off (which
|
|
233
|
+
* `mergeCells` forces, and merged cells recompute their spans per viewport) and window scrolling
|
|
234
|
+
* (a different scroll/offset model). Anything else takes the full band render unchanged.
|
|
235
|
+
*
|
|
236
|
+
* @this Viewport
|
|
237
|
+
* @returns {boolean}
|
|
238
|
+
*/ allowsRowDeltaRender () {
|
|
239
|
+
return this.wtSettings.getSetting('singlePassLayout') && !this.isVerticallyScrollableByWindow() && !this.isHorizontallyScrollableByWindow();
|
|
240
|
+
},
|
|
241
|
+
/**
|
|
228
242
|
* Returns information whether proposedFullyVisibleRowsCalculator viewport
|
|
229
243
|
* is contained inside rows rendered in previous draw (cached in rowsRenderCalculator).
|
|
230
244
|
*
|
package/base.js
CHANGED
|
@@ -72,8 +72,8 @@ Handsontable.hooks = _hooks.Hooks.getSingleton();
|
|
|
72
72
|
Handsontable.CellCoords = _src.CellCoords;
|
|
73
73
|
Handsontable.CellRange = _src.CellRange;
|
|
74
74
|
Handsontable.packageName = 'handsontable';
|
|
75
|
-
Handsontable.buildDate = "08/07/2026
|
|
76
|
-
Handsontable.version = "0.0.0-next-
|
|
75
|
+
Handsontable.buildDate = "08/07/2026 11:07:20";
|
|
76
|
+
Handsontable.version = "0.0.0-next-07941cf-20260708";
|
|
77
77
|
Handsontable.languages = {
|
|
78
78
|
dictionaryKeys: _registry.dictionaryKeys,
|
|
79
79
|
getLanguageDictionary: _registry.getLanguageDictionary,
|
package/base.mjs
CHANGED
|
@@ -43,8 +43,8 @@ Handsontable.hooks = Hooks.getSingleton();
|
|
|
43
43
|
Handsontable.CellCoords = CellCoords;
|
|
44
44
|
Handsontable.CellRange = CellRange;
|
|
45
45
|
Handsontable.packageName = 'handsontable';
|
|
46
|
-
Handsontable.buildDate = "08/07/2026
|
|
47
|
-
Handsontable.version = "0.0.0-next-
|
|
46
|
+
Handsontable.buildDate = "08/07/2026 11:07:20";
|
|
47
|
+
Handsontable.version = "0.0.0-next-07941cf-20260708";
|
|
48
48
|
Handsontable.languages = {
|
|
49
49
|
dictionaryKeys,
|
|
50
50
|
getLanguageDictionary,
|
package/core.js
CHANGED
|
@@ -4305,7 +4305,8 @@ function Core(rootContainer, userSettings, rootInstanceSymbol = false) {
|
|
|
4305
4305
|
* @param {{row: number, col: number} | boolean} [options.focusPosition] The argument allows changing the cell/header
|
|
4306
4306
|
* focus position. The value takes an object with a `row` and `col` properties from -N to N, where
|
|
4307
4307
|
* negative values point to the headers and positive values point to the cell range. If `false`, the focus
|
|
4308
|
-
* position won't be changed.
|
|
4308
|
+
* position won't be changed. When the {@link Options#navigableHeaders} option is disabled (the default), a
|
|
4309
|
+
* `focusPosition` that points to a header is relocated to the nearest cell in the data set. Example:
|
|
4309
4310
|
* ```js
|
|
4310
4311
|
* hot.selectAll(0, 0, {
|
|
4311
4312
|
* focusPosition: { row: 0, col: 1 },
|
|
@@ -4314,7 +4315,9 @@ function Core(rootContainer, userSettings, rootInstanceSymbol = false) {
|
|
|
4314
4315
|
* ```
|
|
4315
4316
|
*
|
|
4316
4317
|
* @param {boolean} [options.disableHeadersHighlight] If `true`, disables highlighting the headers even when
|
|
4317
|
-
* the logical coordinates points on them.
|
|
4318
|
+
* the logical coordinates points on them. This only suppresses the highlight shown on headers of a fully-selected
|
|
4319
|
+
* row or column. It doesn't affect the focus indicator on the individual cell or header that holds the focus,
|
|
4320
|
+
* which stays visible even when {@link Options#navigableHeaders} moves the focus onto a header.
|
|
4318
4321
|
*/ this.selectAll = function(includeRowHeaders = true, includeColumnHeaders = includeRowHeaders, options) {
|
|
4319
4322
|
viewportScroller.skipNextScrollCycle();
|
|
4320
4323
|
selection.selectAll(includeRowHeaders, includeColumnHeaders, options);
|
package/core.mjs
CHANGED
|
@@ -4290,7 +4290,8 @@ let activeGuid = null;
|
|
|
4290
4290
|
* @param {{row: number, col: number} | boolean} [options.focusPosition] The argument allows changing the cell/header
|
|
4291
4291
|
* focus position. The value takes an object with a `row` and `col` properties from -N to N, where
|
|
4292
4292
|
* negative values point to the headers and positive values point to the cell range. If `false`, the focus
|
|
4293
|
-
* position won't be changed.
|
|
4293
|
+
* position won't be changed. When the {@link Options#navigableHeaders} option is disabled (the default), a
|
|
4294
|
+
* `focusPosition` that points to a header is relocated to the nearest cell in the data set. Example:
|
|
4294
4295
|
* ```js
|
|
4295
4296
|
* hot.selectAll(0, 0, {
|
|
4296
4297
|
* focusPosition: { row: 0, col: 1 },
|
|
@@ -4299,7 +4300,9 @@ let activeGuid = null;
|
|
|
4299
4300
|
* ```
|
|
4300
4301
|
*
|
|
4301
4302
|
* @param {boolean} [options.disableHeadersHighlight] If `true`, disables highlighting the headers even when
|
|
4302
|
-
* the logical coordinates points on them.
|
|
4303
|
+
* the logical coordinates points on them. This only suppresses the highlight shown on headers of a fully-selected
|
|
4304
|
+
* row or column. It doesn't affect the focus indicator on the individual cell or header that holds the focus,
|
|
4305
|
+
* which stays visible even when {@link Options#navigableHeaders} moves the focus onto a header.
|
|
4303
4306
|
*/ this.selectAll = function(includeRowHeaders = true, includeColumnHeaders = includeRowHeaders, options) {
|
|
4304
4307
|
viewportScroller.skipNextScrollCycle();
|
|
4305
4308
|
selection.selectAll(includeRowHeaders, includeColumnHeaders, options);
|
|
@@ -817,6 +817,7 @@ const _default = ()=>{
|
|
|
817
817
|
*
|
|
818
818
|
* Read more:
|
|
819
819
|
* - [Plugins: `CollapsibleColumns`](@/api/collapsibleColumns.md)
|
|
820
|
+
* - [Column groups: Collapsible headers](@/guides/columns/column-groups/column-groups.md#collapsible-headers)
|
|
820
821
|
* - [`nestedHeaders`](#nestedHeaders)
|
|
821
822
|
*
|
|
822
823
|
* @memberof Options#
|
|
@@ -807,6 +807,7 @@ import { isObjectEqual } from '../../helpers/object.mjs';
|
|
|
807
807
|
*
|
|
808
808
|
* Read more:
|
|
809
809
|
* - [Plugins: `CollapsibleColumns`](@/api/collapsibleColumns.md)
|
|
810
|
+
* - [Column groups: Collapsible headers](@/guides/columns/column-groups/column-groups.md#collapsible-headers)
|
|
810
811
|
* - [`nestedHeaders`](#nestedHeaders)
|
|
811
812
|
*
|
|
812
813
|
* @memberof Options#
|