handsontable 0.0.0-next-802f59c-20241024 → 0.0.0-next-627918e-20241025
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of handsontable might be problematic. Click here for more details.
- package/3rdparty/walkontable/src/calculator/index.js +1 -2
- package/3rdparty/walkontable/src/calculator/index.mjs +2 -2
- package/3rdparty/walkontable/src/calculator/viewportRows.js +3 -3
- package/3rdparty/walkontable/src/calculator/viewportRows.mjs +3 -3
- package/3rdparty/walkontable/src/core/_base.js +3 -0
- package/3rdparty/walkontable/src/core/_base.mjs +3 -0
- package/3rdparty/walkontable/src/core/clone.js +1 -0
- package/3rdparty/walkontable/src/core/clone.mjs +1 -0
- package/3rdparty/walkontable/src/core/core.js +2 -0
- package/3rdparty/walkontable/src/core/core.mjs +2 -0
- package/3rdparty/walkontable/src/facade/core.js +3 -0
- package/3rdparty/walkontable/src/facade/core.mjs +3 -0
- package/3rdparty/walkontable/src/index.js +0 -1
- package/3rdparty/walkontable/src/index.mjs +2 -2
- package/3rdparty/walkontable/src/overlay/_base.js +3 -1
- package/3rdparty/walkontable/src/overlay/_base.mjs +3 -1
- package/3rdparty/walkontable/src/overlay/bottom.js +2 -2
- package/3rdparty/walkontable/src/overlay/bottom.mjs +2 -2
- package/3rdparty/walkontable/src/overlay/inlineStart.js +1 -1
- package/3rdparty/walkontable/src/overlay/inlineStart.mjs +1 -1
- package/3rdparty/walkontable/src/overlay/top.js +1 -1
- package/3rdparty/walkontable/src/overlay/top.mjs +1 -1
- package/3rdparty/walkontable/src/overlays.js +6 -7
- package/3rdparty/walkontable/src/overlays.mjs +6 -7
- package/3rdparty/walkontable/src/renderer/colGroup.js +1 -1
- package/3rdparty/walkontable/src/renderer/colGroup.mjs +1 -1
- package/3rdparty/walkontable/src/renderer/table.js +1 -1
- package/3rdparty/walkontable/src/renderer/table.mjs +1 -1
- package/3rdparty/walkontable/src/settings.js +8 -2
- package/3rdparty/walkontable/src/settings.mjs +8 -2
- package/3rdparty/walkontable/src/table.js +35 -8
- package/3rdparty/walkontable/src/table.mjs +35 -8
- package/3rdparty/walkontable/src/types.js +1 -0
- package/3rdparty/walkontable/src/types.mjs +1 -0
- package/3rdparty/walkontable/src/utils/column.js +43 -1
- package/3rdparty/walkontable/src/utils/column.mjs +43 -1
- package/3rdparty/walkontable/src/utils/columnStretching.js +197 -0
- package/3rdparty/walkontable/src/utils/columnStretching.mjs +193 -0
- package/3rdparty/walkontable/src/utils/stylesHandler.js +179 -0
- package/3rdparty/walkontable/src/utils/stylesHandler.mjs +175 -0
- package/3rdparty/walkontable/src/viewport.js +88 -66
- package/3rdparty/walkontable/src/viewport.mjs +89 -67
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core/hooks/constants.js +0 -2
- package/core/hooks/constants.mjs +0 -2
- package/core/hooks/index.d.ts +2 -2
- package/core.d.ts +2 -2
- package/core.js +18 -6
- package/core.mjs +18 -6
- package/dataMap/metaManager/metaSchema.js +17 -0
- package/dataMap/metaManager/metaSchema.mjs +17 -0
- package/dist/handsontable.css +17 -9
- package/dist/handsontable.full.css +17 -7
- package/dist/handsontable.full.js +4217 -4534
- package/dist/handsontable.full.min.css +5 -4
- package/dist/handsontable.full.min.js +26 -26
- package/dist/handsontable.js +3923 -4234
- package/dist/handsontable.min.css +5 -4
- package/dist/handsontable.min.js +24 -24
- package/editors/autocompleteEditor/autocompleteEditor.js +1 -1
- package/editors/autocompleteEditor/autocompleteEditor.mjs +1 -1
- package/editors/baseEditor/baseEditor.js +1 -1
- package/editors/baseEditor/baseEditor.mjs +1 -1
- package/editors/dateEditor/dateEditor.js +2 -0
- package/editors/dateEditor/dateEditor.mjs +2 -0
- package/editors/handsontableEditor/handsontableEditor.js +1 -1
- package/editors/handsontableEditor/handsontableEditor.mjs +1 -1
- package/editors/selectEditor/selectEditor.js +20 -9
- package/editors/selectEditor/selectEditor.mjs +20 -9
- package/editors/textEditor/textEditor.js +4 -11
- package/editors/textEditor/textEditor.mjs +4 -11
- package/helpers/mixed.js +2 -2
- package/helpers/mixed.mjs +2 -2
- package/helpers/themes.js +17 -0
- package/helpers/themes.mjs +13 -0
- package/index.d.ts +0 -7
- package/package.json +10 -8
- package/plugins/comments/commentEditor.js +8 -1
- package/plugins/comments/commentEditor.mjs +8 -1
- package/plugins/comments/comments.js +2 -2
- package/plugins/comments/comments.mjs +2 -2
- package/plugins/contextMenu/menu/menu.js +4 -4
- package/plugins/contextMenu/menu/menu.mjs +4 -4
- package/plugins/index.d.ts +0 -3
- package/plugins/index.js +0 -3
- package/plugins/index.mjs +1 -3
- package/plugins/manualColumnMove/manualColumnMove.js +3 -1
- package/plugins/manualColumnMove/manualColumnMove.mjs +3 -1
- package/plugins/manualColumnResize/manualColumnResize.js +12 -24
- package/plugins/manualColumnResize/manualColumnResize.mjs +12 -24
- package/plugins/manualRowMove/manualRowMove.js +1 -1
- package/plugins/manualRowMove/manualRowMove.mjs +1 -1
- package/plugins/manualRowResize/manualRowResize.js +1 -2
- package/plugins/manualRowResize/manualRowResize.mjs +2 -3
- package/plugins/mergeCells/mergeCells.js +1 -1
- package/plugins/mergeCells/mergeCells.mjs +1 -1
- package/plugins/nestedRows/ui/headers.js +3 -1
- package/plugins/nestedRows/ui/headers.mjs +3 -1
- package/settings.d.ts +1 -0
- package/styles/handsontable.css +1983 -0
- package/styles/handsontable.min.css +30 -0
- package/styles/ht-theme-gemini.css +706 -0
- package/styles/ht-theme-gemini.min.css +30 -0
- package/styles/ht-theme-main.css +714 -0
- package/styles/ht-theme-main.min.css +30 -0
- package/stylesManager.js +1 -0
- package/stylesManager.mjs +0 -0
- package/tableView.js +40 -39
- package/tableView.mjs +40 -39
- package/utils/autoResize.js +4 -1
- package/utils/autoResize.mjs +4 -1
- package/utils/ghostTable.js +1 -1
- package/utils/ghostTable.mjs +1 -1
- package/plugins/stretchColumns/calculator.js +0 -159
- package/plugins/stretchColumns/calculator.mjs +0 -155
- package/plugins/stretchColumns/index.d.ts +0 -1
- package/plugins/stretchColumns/index.js +0 -7
- package/plugins/stretchColumns/index.mjs +0 -1
- package/plugins/stretchColumns/strategies/_base.js +0 -85
- package/plugins/stretchColumns/strategies/_base.mjs +0 -81
- package/plugins/stretchColumns/strategies/all.js +0 -68
- package/plugins/stretchColumns/strategies/all.mjs +0 -64
- package/plugins/stretchColumns/strategies/last.js +0 -77
- package/plugins/stretchColumns/strategies/last.mjs +0 -73
- package/plugins/stretchColumns/stretchColumns.d.ts +0 -11
- package/plugins/stretchColumns/stretchColumns.js +0 -211
- package/plugins/stretchColumns/stretchColumns.mjs +0 -207
@@ -339,11 +339,13 @@ class ManualColumnMove extends _base.BasePlugin {
|
|
339
339
|
const columnMapper = this.hot.columnIndexMapper;
|
340
340
|
let columnsWidth = 0;
|
341
341
|
for (let visualColumnIndex = fromColumn; visualColumnIndex <= toColumn; visualColumnIndex += 1) {
|
342
|
+
// We can't use just `getColWidth` (even without indexes translation) as it doesn't return proper values
|
343
|
+
// when column is stretched.
|
342
344
|
const renderableIndex = columnMapper.getRenderableFromVisualIndex(visualColumnIndex);
|
343
345
|
if (visualColumnIndex < 0) {
|
344
346
|
columnsWidth += this.hot.view._wt.wtViewport.getRowHeaderWidth() || 0;
|
345
347
|
} else if (renderableIndex !== null) {
|
346
|
-
columnsWidth += this.hot.view._wt.wtTable.
|
348
|
+
columnsWidth += this.hot.view._wt.wtTable.getStretchedColumnWidth(renderableIndex) || 0;
|
347
349
|
}
|
348
350
|
}
|
349
351
|
return columnsWidth;
|
@@ -335,11 +335,13 @@ export class ManualColumnMove extends BasePlugin {
|
|
335
335
|
const columnMapper = this.hot.columnIndexMapper;
|
336
336
|
let columnsWidth = 0;
|
337
337
|
for (let visualColumnIndex = fromColumn; visualColumnIndex <= toColumn; visualColumnIndex += 1) {
|
338
|
+
// We can't use just `getColWidth` (even without indexes translation) as it doesn't return proper values
|
339
|
+
// when column is stretched.
|
338
340
|
const renderableIndex = columnMapper.getRenderableFromVisualIndex(visualColumnIndex);
|
339
341
|
if (visualColumnIndex < 0) {
|
340
342
|
columnsWidth += this.hot.view._wt.wtViewport.getRowHeaderWidth() || 0;
|
341
343
|
} else if (renderableIndex !== null) {
|
342
|
-
columnsWidth += this.hot.view._wt.wtTable.
|
344
|
+
columnsWidth += this.hot.view._wt.wtTable.getStretchedColumnWidth(renderableIndex) || 0;
|
343
345
|
}
|
344
346
|
}
|
345
347
|
return columnsWidth;
|
@@ -162,31 +162,15 @@ class ManualColumnResize extends _base.BasePlugin {
|
|
162
162
|
* Enables the plugin functionality for this Handsontable instance.
|
163
163
|
*/
|
164
164
|
enablePlugin() {
|
165
|
-
var _this = this;
|
166
165
|
if (this.enabled) {
|
167
166
|
return;
|
168
167
|
}
|
169
168
|
_classPrivateFieldSet(_columnWidthsMap, this, new _translations.PhysicalIndexToValueMap());
|
170
169
|
_classPrivateFieldGet(_columnWidthsMap, this).addLocalHook('init', () => _assertClassBrand(_ManualColumnResize_brand, this, _onMapInit).call(this));
|
171
170
|
this.hot.columnIndexMapper.registerMap(this.pluginName, _classPrivateFieldGet(_columnWidthsMap, this));
|
172
|
-
this.addHook('modifyColWidth',
|
173
|
-
|
174
|
-
|
175
|
-
}
|
176
|
-
return _assertClassBrand(_ManualColumnResize_brand, _this, _onModifyColWidth).call(_this, ...args);
|
177
|
-
}, 1);
|
178
|
-
this.addHook('beforeStretchingColumnWidth', function () {
|
179
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
180
|
-
args[_key2] = arguments[_key2];
|
181
|
-
}
|
182
|
-
return _assertClassBrand(_ManualColumnResize_brand, _this, _onBeforeStretchingColumnWidth).call(_this, ...args);
|
183
|
-
}, 1);
|
184
|
-
this.addHook('beforeColumnResize', function () {
|
185
|
-
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
186
|
-
args[_key3] = arguments[_key3];
|
187
|
-
}
|
188
|
-
return _assertClassBrand(_ManualColumnResize_brand, _this, _onBeforeColumnResize).call(_this, ...args);
|
189
|
-
});
|
171
|
+
this.addHook('modifyColWidth', (width, col) => _assertClassBrand(_ManualColumnResize_brand, this, _onModifyColWidth).call(this, width, col), 1);
|
172
|
+
this.addHook('beforeStretchingColumnWidth', (stretchedWidth, column) => _assertClassBrand(_ManualColumnResize_brand, this, _onBeforeStretchingColumnWidth).call(this, stretchedWidth, column));
|
173
|
+
this.addHook('beforeColumnResize', (newSize, column, isDoubleClick) => _assertClassBrand(_ManualColumnResize_brand, this, _onBeforeColumnResize).call(this, newSize, column, isDoubleClick));
|
190
174
|
this.bindEvents();
|
191
175
|
super.enablePlugin();
|
192
176
|
}
|
@@ -424,7 +408,11 @@ class ManualColumnResize extends _base.BasePlugin {
|
|
424
408
|
if (hookNewSize !== undefined) {
|
425
409
|
_classPrivateFieldSet(_newSize, this, hookNewSize);
|
426
410
|
}
|
427
|
-
this.
|
411
|
+
if (this.hot.getSettings().stretchH === 'all') {
|
412
|
+
this.clearManualSize(column);
|
413
|
+
} else {
|
414
|
+
this.setManualSize(column, _classPrivateFieldGet(_newSize, this)); // double click sets by auto row size plugin
|
415
|
+
}
|
428
416
|
this.saveManualColumnWidths();
|
429
417
|
this.hot.runHooks('afterColumnResize', _classPrivateFieldGet(_newSize, this), column, true);
|
430
418
|
if (forceRender) {
|
@@ -642,11 +630,11 @@ function _onModifyColWidth(width, column) {
|
|
642
630
|
* @returns {number}
|
643
631
|
*/
|
644
632
|
function _onBeforeStretchingColumnWidth(stretchedWidth, column) {
|
645
|
-
|
646
|
-
if (
|
647
|
-
|
633
|
+
let width = _classPrivateFieldGet(_columnWidthsMap, this).getValueAtIndex(column);
|
634
|
+
if (width === null) {
|
635
|
+
width = stretchedWidth;
|
648
636
|
}
|
649
|
-
return
|
637
|
+
return width;
|
650
638
|
}
|
651
639
|
/**
|
652
640
|
* `beforeColumnResize` hook callback.
|
@@ -157,31 +157,15 @@ export class ManualColumnResize extends BasePlugin {
|
|
157
157
|
* Enables the plugin functionality for this Handsontable instance.
|
158
158
|
*/
|
159
159
|
enablePlugin() {
|
160
|
-
var _this = this;
|
161
160
|
if (this.enabled) {
|
162
161
|
return;
|
163
162
|
}
|
164
163
|
_classPrivateFieldSet(_columnWidthsMap, this, new IndexToValueMap());
|
165
164
|
_classPrivateFieldGet(_columnWidthsMap, this).addLocalHook('init', () => _assertClassBrand(_ManualColumnResize_brand, this, _onMapInit).call(this));
|
166
165
|
this.hot.columnIndexMapper.registerMap(this.pluginName, _classPrivateFieldGet(_columnWidthsMap, this));
|
167
|
-
this.addHook('modifyColWidth',
|
168
|
-
|
169
|
-
|
170
|
-
}
|
171
|
-
return _assertClassBrand(_ManualColumnResize_brand, _this, _onModifyColWidth).call(_this, ...args);
|
172
|
-
}, 1);
|
173
|
-
this.addHook('beforeStretchingColumnWidth', function () {
|
174
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
175
|
-
args[_key2] = arguments[_key2];
|
176
|
-
}
|
177
|
-
return _assertClassBrand(_ManualColumnResize_brand, _this, _onBeforeStretchingColumnWidth).call(_this, ...args);
|
178
|
-
}, 1);
|
179
|
-
this.addHook('beforeColumnResize', function () {
|
180
|
-
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
181
|
-
args[_key3] = arguments[_key3];
|
182
|
-
}
|
183
|
-
return _assertClassBrand(_ManualColumnResize_brand, _this, _onBeforeColumnResize).call(_this, ...args);
|
184
|
-
});
|
166
|
+
this.addHook('modifyColWidth', (width, col) => _assertClassBrand(_ManualColumnResize_brand, this, _onModifyColWidth).call(this, width, col), 1);
|
167
|
+
this.addHook('beforeStretchingColumnWidth', (stretchedWidth, column) => _assertClassBrand(_ManualColumnResize_brand, this, _onBeforeStretchingColumnWidth).call(this, stretchedWidth, column));
|
168
|
+
this.addHook('beforeColumnResize', (newSize, column, isDoubleClick) => _assertClassBrand(_ManualColumnResize_brand, this, _onBeforeColumnResize).call(this, newSize, column, isDoubleClick));
|
185
169
|
this.bindEvents();
|
186
170
|
super.enablePlugin();
|
187
171
|
}
|
@@ -419,7 +403,11 @@ export class ManualColumnResize extends BasePlugin {
|
|
419
403
|
if (hookNewSize !== undefined) {
|
420
404
|
_classPrivateFieldSet(_newSize, this, hookNewSize);
|
421
405
|
}
|
422
|
-
this.
|
406
|
+
if (this.hot.getSettings().stretchH === 'all') {
|
407
|
+
this.clearManualSize(column);
|
408
|
+
} else {
|
409
|
+
this.setManualSize(column, _classPrivateFieldGet(_newSize, this)); // double click sets by auto row size plugin
|
410
|
+
}
|
423
411
|
this.saveManualColumnWidths();
|
424
412
|
this.hot.runHooks('afterColumnResize', _classPrivateFieldGet(_newSize, this), column, true);
|
425
413
|
if (forceRender) {
|
@@ -636,11 +624,11 @@ function _onModifyColWidth(width, column) {
|
|
636
624
|
* @returns {number}
|
637
625
|
*/
|
638
626
|
function _onBeforeStretchingColumnWidth(stretchedWidth, column) {
|
639
|
-
|
640
|
-
if (
|
641
|
-
|
627
|
+
let width = _classPrivateFieldGet(_columnWidthsMap, this).getValueAtIndex(column);
|
628
|
+
if (width === null) {
|
629
|
+
width = stretchedWidth;
|
642
630
|
}
|
643
|
-
return
|
631
|
+
return width;
|
644
632
|
}
|
645
633
|
/**
|
646
634
|
* `beforeColumnResize` hook callback.
|
@@ -317,7 +317,7 @@ class ManualRowMove extends _base.BasePlugin {
|
|
317
317
|
for (let visualRowIndex = fromRow; visualRowIndex <= toRow; visualRowIndex++) {
|
318
318
|
const renderableIndex = rowMapper.getRenderableFromVisualIndex(visualRowIndex);
|
319
319
|
if (renderableIndex !== null) {
|
320
|
-
rowsHeight += this.hot.view._wt.wtTable.getRowHeight(renderableIndex) ||
|
320
|
+
rowsHeight += this.hot.view._wt.wtTable.getRowHeight(renderableIndex) || this.hot.view.getDefaultRowHeight();
|
321
321
|
}
|
322
322
|
}
|
323
323
|
return rowsHeight;
|
@@ -313,7 +313,7 @@ export class ManualRowMove extends BasePlugin {
|
|
313
313
|
for (let visualRowIndex = fromRow; visualRowIndex <= toRow; visualRowIndex++) {
|
314
314
|
const renderableIndex = rowMapper.getRenderableFromVisualIndex(visualRowIndex);
|
315
315
|
if (renderableIndex !== null) {
|
316
|
-
rowsHeight += this.hot.view._wt.wtTable.getRowHeight(renderableIndex) ||
|
316
|
+
rowsHeight += this.hot.view._wt.wtTable.getRowHeight(renderableIndex) || this.hot.view.getDefaultRowHeight();
|
317
317
|
}
|
318
318
|
}
|
319
319
|
return rowsHeight;
|
@@ -8,7 +8,6 @@ var _element = require("../../helpers/dom/element");
|
|
8
8
|
var _array = require("../../helpers/array");
|
9
9
|
var _number = require("../../helpers/number");
|
10
10
|
var _translations = require("../../translations");
|
11
|
-
var _src = require("../../3rdparty/walkontable/src");
|
12
11
|
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
13
12
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
14
13
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
@@ -227,7 +226,7 @@ class ManualRowResize extends _base.BasePlugin {
|
|
227
226
|
*/
|
228
227
|
setManualSize(row, height) {
|
229
228
|
const physicalRow = this.hot.toPhysicalRow(row);
|
230
|
-
const newHeight = Math.max(height,
|
229
|
+
const newHeight = Math.max(height, this.hot.view.getDefaultRowHeight());
|
231
230
|
_classPrivateFieldGet(_rowHeightsMap, this).setValueAtIndex(physicalRow, newHeight);
|
232
231
|
return newHeight;
|
233
232
|
}
|
@@ -10,8 +10,7 @@ import { BasePlugin } from "../base/index.mjs";
|
|
10
10
|
import { addClass, closest, hasClass, removeClass, outerWidth, isDetached } from "../../helpers/dom/element.mjs";
|
11
11
|
import { arrayEach } from "../../helpers/array.mjs";
|
12
12
|
import { rangeEach } from "../../helpers/number.mjs";
|
13
|
-
import { PhysicalIndexToValueMap as IndexToValueMap } from "../../translations/index.mjs";
|
14
|
-
import { DEFAULT_ROW_HEIGHT } from "../../3rdparty/walkontable/src/index.mjs"; // Developer note! Whenever you make a change in this file, make an analogous change in manualColumnResize.js
|
13
|
+
import { PhysicalIndexToValueMap as IndexToValueMap } from "../../translations/index.mjs"; // Developer note! Whenever you make a change in this file, make an analogous change in manualColumnResize.js
|
15
14
|
export const PLUGIN_KEY = 'manualRowResize';
|
16
15
|
export const PLUGIN_PRIORITY = 30;
|
17
16
|
const PERSISTENT_STATE_KEY = 'manualRowHeights';
|
@@ -222,7 +221,7 @@ export class ManualRowResize extends BasePlugin {
|
|
222
221
|
*/
|
223
222
|
setManualSize(row, height) {
|
224
223
|
const physicalRow = this.hot.toPhysicalRow(row);
|
225
|
-
const newHeight = Math.max(height,
|
224
|
+
const newHeight = Math.max(height, this.hot.view.getDefaultRowHeight());
|
226
225
|
_classPrivateFieldGet(_rowHeightsMap, this).setValueAtIndex(physicalRow, newHeight);
|
227
226
|
return newHeight;
|
228
227
|
}
|
@@ -1491,7 +1491,7 @@ function _onModifyRowHeightByOverlayName(height, row, overlayType) {
|
|
1491
1491
|
* @returns {number}
|
1492
1492
|
*/
|
1493
1493
|
function _sumCellsHeights(row, rowspan) {
|
1494
|
-
const defaultHeight = this.hot.view.
|
1494
|
+
const defaultHeight = this.hot.view.getDefaultRowHeight();
|
1495
1495
|
const autoRowSizePlugin = this.hot.getPlugin('autoRowSize');
|
1496
1496
|
let height = 0;
|
1497
1497
|
for (let i = row; i < row + rowspan; i++) {
|
@@ -1486,7 +1486,7 @@ function _onModifyRowHeightByOverlayName(height, row, overlayType) {
|
|
1486
1486
|
* @returns {number}
|
1487
1487
|
*/
|
1488
1488
|
function _sumCellsHeights(row, rowspan) {
|
1489
|
-
const defaultHeight = this.hot.view.
|
1489
|
+
const defaultHeight = this.hot.view.getDefaultRowHeight();
|
1490
1490
|
const autoRowSizePlugin = this.hot.getPlugin('autoRowSize');
|
1491
1491
|
let height = 0;
|
1492
1492
|
for (let i = row; i < row + rowspan; i++) {
|
@@ -125,7 +125,9 @@ class HeadersUI extends _base.default {
|
|
125
125
|
if (!deepestLevelIndex) {
|
126
126
|
deepestLevelIndex = this.dataManager.cache.levelCount;
|
127
127
|
}
|
128
|
-
|
128
|
+
const verticalPadding = this.hot.view.getCSSVariableValue('cell-horizontal-padding');
|
129
|
+
const completeVerticalPadding = this.hot.view.isUsingClassicTheme() ? 11 : verticalPadding * 2;
|
130
|
+
this.rowHeaderWidthCache = Math.max(50, completeVerticalPadding + 10 * deepestLevelIndex + 25);
|
129
131
|
this.hot.render();
|
130
132
|
}
|
131
133
|
}
|
@@ -121,7 +121,9 @@ class HeadersUI extends BaseUI {
|
|
121
121
|
if (!deepestLevelIndex) {
|
122
122
|
deepestLevelIndex = this.dataManager.cache.levelCount;
|
123
123
|
}
|
124
|
-
|
124
|
+
const verticalPadding = this.hot.view.getCSSVariableValue('cell-horizontal-padding');
|
125
|
+
const completeVerticalPadding = this.hot.view.isUsingClassicTheme() ? 11 : verticalPadding * 2;
|
126
|
+
this.rowHeaderWidthCache = Math.max(50, completeVerticalPadding + 10 * deepestLevelIndex + 25);
|
125
127
|
this.hot.render();
|
126
128
|
}
|
127
129
|
}
|
package/settings.d.ts
CHANGED
@@ -214,6 +214,7 @@ export interface GridSettings extends Events {
|
|
214
214
|
strict?: boolean;
|
215
215
|
tableClassName?: string | string[];
|
216
216
|
tabMoves?: CellCoords | SimpleCellCoords | ((event: KeyboardEvent) => CellCoords | SimpleCellCoords);
|
217
|
+
themeName?: string;
|
217
218
|
title?: string;
|
218
219
|
trimDropdown?: boolean;
|
219
220
|
trimRows?: TrimRowsSettings;
|