handsontable 0.0.0-next-48677e7-20230509 → 0.0.0-next-c73b24c-20230510
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/{selection/border/border.js → border.js} +12 -7
- package/3rdparty/walkontable/src/{selection/border/border.mjs → border.mjs} +12 -7
- package/3rdparty/walkontable/src/cell/coords.js +13 -40
- package/3rdparty/walkontable/src/cell/coords.mjs +13 -40
- package/3rdparty/walkontable/src/cell/range.js +25 -29
- package/3rdparty/walkontable/src/cell/range.mjs +24 -28
- package/3rdparty/walkontable/src/core/_base.js +3 -9
- package/3rdparty/walkontable/src/core/_base.mjs +3 -9
- package/3rdparty/walkontable/src/core/clone.js +2 -2
- package/3rdparty/walkontable/src/core/clone.mjs +2 -2
- package/3rdparty/walkontable/src/core/core.js +2 -3
- package/3rdparty/walkontable/src/core/core.mjs +2 -3
- package/3rdparty/walkontable/src/event.js +10 -12
- package/3rdparty/walkontable/src/event.mjs +10 -12
- package/3rdparty/walkontable/src/facade/core.js +2 -2
- package/3rdparty/walkontable/src/facade/core.mjs +2 -2
- package/3rdparty/walkontable/src/index.js +2 -10
- package/3rdparty/walkontable/src/index.mjs +2 -2
- package/3rdparty/walkontable/src/overlay/_base.js +7 -8
- package/3rdparty/walkontable/src/overlay/_base.mjs +7 -8
- package/3rdparty/walkontable/src/overlay/bottom.js +6 -7
- package/3rdparty/walkontable/src/overlay/bottom.mjs +6 -7
- package/3rdparty/walkontable/src/overlay/inlineStart.js +4 -2
- package/3rdparty/walkontable/src/overlay/inlineStart.mjs +4 -2
- package/3rdparty/walkontable/src/overlay/top.js +10 -9
- package/3rdparty/walkontable/src/overlay/top.mjs +10 -9
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.js +10 -12
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.mjs +10 -12
- package/3rdparty/walkontable/src/overlays.js +55 -64
- package/3rdparty/walkontable/src/overlays.mjs +55 -64
- package/3rdparty/walkontable/src/renderer/table.js +0 -2
- package/3rdparty/walkontable/src/renderer/table.mjs +0 -2
- package/3rdparty/walkontable/src/scroll.js +20 -23
- package/3rdparty/walkontable/src/scroll.mjs +20 -23
- package/3rdparty/walkontable/src/selection.js +354 -0
- package/3rdparty/walkontable/src/selection.mjs +348 -0
- package/3rdparty/walkontable/src/settings.js +13 -15
- package/3rdparty/walkontable/src/settings.mjs +13 -15
- package/3rdparty/walkontable/src/table/mixin/calculatedColumns.js +0 -9
- package/3rdparty/walkontable/src/table/mixin/calculatedColumns.mjs +0 -9
- package/3rdparty/walkontable/src/table/mixin/calculatedRows.js +0 -9
- package/3rdparty/walkontable/src/table/mixin/calculatedRows.mjs +0 -9
- package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.js +0 -9
- package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.mjs +0 -9
- package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.js +0 -9
- package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.mjs +0 -9
- package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.js +0 -9
- package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.mjs +0 -9
- package/3rdparty/walkontable/src/table.js +101 -33
- package/3rdparty/walkontable/src/table.mjs +102 -34
- package/base.js +2 -4
- package/base.mjs +2 -2
- package/core.d.ts +0 -4
- package/core.js +24 -52
- package/core.mjs +24 -52
- package/dataMap/dataSource.js +5 -5
- package/dataMap/dataSource.mjs +5 -5
- package/dataMap/metaManager/metaSchema.js +1 -8
- package/dataMap/metaManager/metaSchema.mjs +1 -8
- package/dist/handsontable.css +2 -7
- package/dist/handsontable.full.css +2 -7
- package/dist/handsontable.full.js +9101 -9413
- package/dist/handsontable.full.min.css +3 -3
- package/dist/handsontable.full.min.js +123 -115
- package/dist/handsontable.js +8761 -9074
- package/dist/handsontable.min.css +3 -3
- package/dist/handsontable.min.js +11 -3
- package/dist/languages/all.js +133 -0
- package/dist/languages/ar-AR.js +7 -0
- package/dist/languages/cs-CZ.js +7 -0
- package/dist/languages/de-CH.js +7 -0
- package/dist/languages/de-DE.js +7 -0
- package/dist/languages/en-US.js +7 -0
- package/dist/languages/es-MX.js +7 -0
- package/dist/languages/fr-FR.js +7 -0
- package/dist/languages/it-IT.js +7 -0
- package/dist/languages/ja-JP.js +7 -0
- package/dist/languages/ko-KR.js +7 -0
- package/dist/languages/lv-LV.js +7 -0
- package/dist/languages/nb-NO.js +7 -0
- package/dist/languages/nl-NL.js +7 -0
- package/dist/languages/pl-PL.js +7 -0
- package/dist/languages/pt-BR.js +7 -0
- package/dist/languages/ru-RU.js +7 -0
- package/dist/languages/sr-SP.js +7 -0
- package/dist/languages/zh-CN.js +7 -0
- package/dist/languages/zh-TW.js +7 -0
- package/editorManager.js +3 -7
- package/editorManager.mjs +3 -7
- package/editors/textEditor/textEditor.js +16 -3
- package/editors/textEditor/textEditor.mjs +17 -4
- package/helpers/dom/element.js +0 -11
- package/helpers/dom/element.mjs +0 -10
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/i18n/languages/ar-AR.js +7 -1
- package/i18n/languages/cs-CZ.js +7 -1
- package/i18n/languages/de-CH.js +7 -1
- package/i18n/languages/de-DE.js +7 -1
- package/i18n/languages/en-US.js +7 -1
- package/i18n/languages/es-MX.js +7 -1
- package/i18n/languages/fr-FR.js +7 -1
- package/i18n/languages/it-IT.js +7 -1
- package/i18n/languages/ja-JP.js +7 -1
- package/i18n/languages/ko-KR.js +7 -1
- package/i18n/languages/lv-LV.js +7 -1
- package/i18n/languages/nb-NO.js +7 -1
- package/i18n/languages/nl-NL.js +7 -1
- package/i18n/languages/pl-PL.js +7 -1
- package/i18n/languages/pt-BR.js +7 -1
- package/i18n/languages/ru-RU.js +7 -1
- package/i18n/languages/sr-SP.js +7 -1
- package/i18n/languages/zh-CN.js +7 -1
- package/i18n/languages/zh-TW.js +7 -1
- package/languages/all.js +133 -0
- package/languages/ar-AR.js +7 -0
- package/languages/cs-CZ.js +7 -0
- package/languages/de-CH.js +7 -0
- package/languages/de-DE.js +7 -0
- package/languages/en-US.js +7 -0
- package/languages/es-MX.js +7 -0
- package/languages/fr-FR.js +7 -0
- package/languages/index.js +133 -0
- package/languages/it-IT.js +7 -0
- package/languages/ja-JP.js +7 -0
- package/languages/ko-KR.js +7 -0
- package/languages/lv-LV.js +7 -0
- package/languages/nb-NO.js +7 -0
- package/languages/nl-NL.js +7 -0
- package/languages/pl-PL.js +7 -0
- package/languages/pt-BR.js +7 -0
- package/languages/ru-RU.js +7 -0
- package/languages/sr-SP.js +7 -0
- package/languages/zh-CN.js +7 -0
- package/languages/zh-TW.js +7 -0
- package/package.json +3 -2
- package/pluginHooks.js +17 -7
- package/pluginHooks.mjs +16 -4
- package/plugins/autoRowSize/autoRowSize.js +2 -2
- package/plugins/autoRowSize/autoRowSize.mjs +2 -2
- package/plugins/copyPaste/copyPaste.js +93 -12
- package/plugins/copyPaste/copyPaste.mjs +93 -12
- package/plugins/copyPaste/copyableRanges.js +25 -31
- package/plugins/copyPaste/copyableRanges.mjs +18 -24
- package/plugins/copyPaste/focusableElement.js +219 -0
- package/plugins/copyPaste/focusableElement.mjs +213 -0
- package/plugins/customBorders/customBorders.js +2 -6
- package/plugins/customBorders/customBorders.mjs +3 -7
- package/plugins/filters/filters.js +5 -0
- package/plugins/filters/filters.mjs +5 -0
- package/plugins/formulas/formulas.js +190 -168
- package/plugins/formulas/formulas.mjs +190 -168
- package/plugins/formulas/indexSyncer/axisSyncer.js +379 -0
- package/plugins/formulas/indexSyncer/axisSyncer.mjs +374 -0
- package/plugins/formulas/indexSyncer/index.js +225 -0
- package/plugins/formulas/indexSyncer/index.mjs +219 -0
- package/plugins/mergeCells/mergeCells.js +16 -0
- package/plugins/mergeCells/mergeCells.mjs +16 -0
- package/plugins/nestedHeaders/nestedHeaders.js +4 -3
- package/plugins/nestedHeaders/nestedHeaders.mjs +4 -3
- package/plugins/nestedHeaders/stateManager/headersTree.js +23 -26
- package/plugins/nestedHeaders/stateManager/headersTree.mjs +20 -23
- package/plugins/nestedHeaders/stateManager/index.js +3 -3
- package/plugins/nestedHeaders/stateManager/matrixGenerator.js +1 -0
- package/plugins/nestedHeaders/stateManager/settingsNormalizer.js +1 -1
- package/plugins/nestedHeaders/utils/ghostTable.js +30 -35
- package/plugins/nestedHeaders/utils/ghostTable.mjs +30 -35
- package/plugins/registry.js +3 -1
- package/plugins/undoRedo/undoRedo.js +0 -1
- package/plugins/undoRedo/undoRedo.mjs +0 -1
- package/renderers/baseRenderer/baseRenderer.js +0 -3
- package/renderers/baseRenderer/baseRenderer.mjs +0 -3
- package/selection/highlight/constants.js +16 -0
- package/selection/highlight/constants.mjs +6 -0
- package/selection/highlight/highlight.js +133 -335
- package/selection/highlight/highlight.mjs +129 -325
- package/selection/highlight/types/activeHeader.js +9 -10
- package/selection/highlight/types/activeHeader.mjs +8 -10
- package/selection/highlight/types/area.js +27 -12
- package/selection/highlight/types/area.mjs +30 -16
- package/selection/highlight/types/{focus.js → cell.js} +8 -5
- package/selection/highlight/types/{focus.mjs → cell.mjs} +7 -5
- package/selection/highlight/types/customSelection.js +10 -7
- package/selection/highlight/types/customSelection.mjs +9 -7
- package/selection/highlight/types/fill.js +8 -5
- package/selection/highlight/types/fill.mjs +7 -5
- package/selection/highlight/types/header.js +20 -10
- package/selection/highlight/types/header.mjs +19 -10
- package/selection/highlight/types/{row.js → index.js} +31 -27
- package/selection/highlight/types/{row.mjs → index.mjs} +29 -24
- package/selection/highlight/visualSelection.js +21 -12
- package/selection/highlight/visualSelection.mjs +21 -12
- package/selection/index.js +7 -4
- package/selection/index.mjs +3 -2
- package/selection/selection.js +46 -88
- package/selection/selection.mjs +44 -82
- package/settings.d.ts +0 -1
- package/tableView.js +66 -94
- package/tableView.mjs +66 -94
- package/translations/changesObservable/observable.js +41 -46
- package/translations/changesObservable/observable.mjs +36 -41
- package/translations/changesObservable/observer.js +1 -1
- package/translations/indexMapper.js +21 -0
- package/translations/indexMapper.mjs +21 -0
- package/utils/dataStructures/tree.js +15 -18
- package/utils/dataStructures/tree.mjs +15 -18
- package/utils/parseTable.js +5 -1
- package/utils/parseTable.mjs +5 -1
- package/3rdparty/walkontable/src/selection/border/constants.js +0 -18
- package/3rdparty/walkontable/src/selection/border/constants.mjs +0 -13
- package/3rdparty/walkontable/src/selection/constants.js +0 -63
- package/3rdparty/walkontable/src/selection/constants.mjs +0 -51
- package/3rdparty/walkontable/src/selection/index.js +0 -30
- package/3rdparty/walkontable/src/selection/index.mjs +0 -5
- package/3rdparty/walkontable/src/selection/manager.js +0 -334
- package/3rdparty/walkontable/src/selection/manager.mjs +0 -328
- package/3rdparty/walkontable/src/selection/scanner.js +0 -363
- package/3rdparty/walkontable/src/selection/scanner.mjs +0 -359
- package/3rdparty/walkontable/src/selection/selection.js +0 -133
- package/3rdparty/walkontable/src/selection/selection.mjs +0 -127
- package/focusManager.d.ts +0 -12
- package/focusManager.js +0 -249
- package/focusManager.mjs +0 -245
- package/selection/highlight/types/areaLayered.js +0 -54
- package/selection/highlight/types/areaLayered.mjs +0 -49
- package/selection/highlight/types/column.js +0 -50
- package/selection/highlight/types/column.mjs +0 -45
package/core.mjs
CHANGED
@@ -48,7 +48,6 @@ import { toSingleLine } from "./helpers/templateLiteralTag.mjs";
|
|
48
48
|
import EditorManager from "./editorManager.mjs";
|
49
49
|
import EventManager from "./eventManager.mjs";
|
50
50
|
import { deepClone, duckSchema, isObjectEqual, isObject, deepObjectSize, hasOwnProperty, createObjectPropListener, objectEach } from "./helpers/object.mjs";
|
51
|
-
import FocusManager from "./focusManager.mjs";
|
52
51
|
import { arrayMap, arrayEach, arrayReduce, getDifferenceOfArrays, stringToArray, pivot } from "./helpers/array.mjs";
|
53
52
|
import { instanceToHTML } from "./utils/parseTable.mjs";
|
54
53
|
import { getPlugin, getPluginsNames } from "./plugins/registry.mjs";
|
@@ -103,7 +102,7 @@ var deprecationWarns = new Set();
|
|
103
102
|
* :::
|
104
103
|
*
|
105
104
|
* ::: only-for react
|
106
|
-
* ```jsx
|
105
|
+
* ```jsx
|
107
106
|
* import { useRef } from 'react';
|
108
107
|
*
|
109
108
|
* const hotTableComponent = useRef(null);
|
@@ -135,7 +134,6 @@ export default function Core(rootElement, userSettings) {
|
|
135
134
|
var dataSource;
|
136
135
|
var grid;
|
137
136
|
var editorManager;
|
138
|
-
var focusManager;
|
139
137
|
var firstRun = true;
|
140
138
|
if (hasValidParameter(rootInstanceSymbol)) {
|
141
139
|
registerAsRootInstance(this);
|
@@ -260,6 +258,12 @@ export default function Core(rootElement, userSettings) {
|
|
260
258
|
* @type {IndexMapper}
|
261
259
|
*/
|
262
260
|
this.rowIndexMapper = new IndexMapper();
|
261
|
+
this.columnIndexMapper.addLocalHook('indexesSequenceChange', function (source) {
|
262
|
+
instance.runHooks('afterColumnSequenceChange', source);
|
263
|
+
});
|
264
|
+
this.rowIndexMapper.addLocalHook('indexesSequenceChange', function (source) {
|
265
|
+
instance.runHooks('afterRowSequenceChange', source);
|
266
|
+
});
|
263
267
|
dataSource = new DataSource(instance);
|
264
268
|
if (!this.rootElement.id || this.rootElement.id.substring(0, 3) === 'ht_') {
|
265
269
|
this.rootElement.id = this.guid; // if root element does not have an id, assign a random id
|
@@ -306,12 +310,6 @@ export default function Core(rootElement, userSettings) {
|
|
306
310
|
countRowsTranslated: function countRowsTranslated() {
|
307
311
|
return _this.view.countRenderableRows();
|
308
312
|
},
|
309
|
-
countRowHeaders: function countRowHeaders() {
|
310
|
-
return _this.countRowHeaders();
|
311
|
-
},
|
312
|
-
countColHeaders: function countColHeaders() {
|
313
|
-
return _this.countColHeaders();
|
314
|
-
},
|
315
313
|
getShortcutManager: function getShortcutManager() {
|
316
314
|
return instance.getShortcutManager();
|
317
315
|
},
|
@@ -1110,7 +1108,6 @@ export default function Core(rootElement, userSettings) {
|
|
1110
1108
|
this.updateSettings(tableMeta, true);
|
1111
1109
|
this.view = new TableView(this);
|
1112
1110
|
editorManager = EditorManager.getInstance(instance, tableMeta, selection);
|
1113
|
-
focusManager = new FocusManager(instance);
|
1114
1111
|
instance.runHooks('init');
|
1115
1112
|
this.forceFullRender = true; // used when data was changed
|
1116
1113
|
this.view.render();
|
@@ -2446,11 +2443,13 @@ export default function Core(rootElement, userSettings) {
|
|
2446
2443
|
};
|
2447
2444
|
|
2448
2445
|
/**
|
2449
|
-
*
|
2446
|
+
* Gets the value of the currently focused cell.
|
2447
|
+
*
|
2448
|
+
* For column headers and row headers, returns `null`.
|
2450
2449
|
*
|
2451
2450
|
* @memberof Core#
|
2452
2451
|
* @function getValue
|
2453
|
-
* @returns {*}
|
2452
|
+
* @returns {*} The value of the focused cell.
|
2454
2453
|
*/
|
2455
2454
|
this.getValue = function () {
|
2456
2455
|
var sel = instance.getSelectedLast();
|
@@ -2793,6 +2792,11 @@ export default function Core(rootElement, userSettings) {
|
|
2793
2792
|
* __Note__: This method does not participate in data transformation. If the visual data of the table is reordered,
|
2794
2793
|
* sorted or trimmed only physical indexes are correct.
|
2795
2794
|
*
|
2795
|
+
* __Note__: This method may return incorrect values for cells that contain
|
2796
|
+
* [formulas](@/guides/formulas/formula-calculation.md). This is because `getSourceData()`
|
2797
|
+
* operates on source data ([physical indexes](@/api/indexMapper.md)),
|
2798
|
+
* whereas formulas operate on visual data (visual indexes).
|
2799
|
+
*
|
2796
2800
|
* @memberof Core#
|
2797
2801
|
* @function getSourceData
|
2798
2802
|
* @param {number} [row] From physical row index.
|
@@ -3142,7 +3146,13 @@ export default function Core(rootElement, userSettings) {
|
|
3142
3146
|
};
|
3143
3147
|
|
3144
3148
|
/**
|
3145
|
-
* Checks if
|
3149
|
+
* Checks if your [data format](@/guides/getting-started/binding-to-data.md#compatible-data-types)
|
3150
|
+
* and [configuration options](@/guides/getting-started/configuration-options.md)
|
3151
|
+
* allow for changing the number of columns.
|
3152
|
+
*
|
3153
|
+
* Returns `false` when your data is an array of objects,
|
3154
|
+
* or when you use the [`columns`](@/api/options.md#columns) option.
|
3155
|
+
* Otherwise, returns `true`.
|
3146
3156
|
*
|
3147
3157
|
* @memberof Core#
|
3148
3158
|
* @function isColumnModificationAllowed
|
@@ -3708,30 +3718,6 @@ export default function Core(rootElement, userSettings) {
|
|
3708
3718
|
return instance.view._wt.drawn ? instance.view._wt.wtTable.getVisibleColumnsCount() : -1;
|
3709
3719
|
};
|
3710
3720
|
|
3711
|
-
/**
|
3712
|
-
* Returns the number of rendered row headers.
|
3713
|
-
*
|
3714
|
-
* @since 13.0.0
|
3715
|
-
* @memberof Core#
|
3716
|
-
* @function countRowHeaders
|
3717
|
-
* @returns {number} Number of row headers.
|
3718
|
-
*/
|
3719
|
-
this.countRowHeaders = function () {
|
3720
|
-
return this.view.getRowHeadersCount();
|
3721
|
-
};
|
3722
|
-
|
3723
|
-
/**
|
3724
|
-
* Returns the number of rendered column headers.
|
3725
|
-
*
|
3726
|
-
* @since 13.0.0
|
3727
|
-
* @memberof Core#
|
3728
|
-
* @function countColHeaders
|
3729
|
-
* @returns {number} Number of column headers.
|
3730
|
-
*/
|
3731
|
-
this.countColHeaders = function () {
|
3732
|
-
return this.view.getColumnHeadersCount();
|
3733
|
-
};
|
3734
|
-
|
3735
3721
|
/**
|
3736
3722
|
* Returns the number of empty rows. If the optional ending parameter is `true`, returns the
|
3737
3723
|
* number of empty rows at the bottom of the table.
|
@@ -4132,8 +4118,6 @@ export default function Core(rootElement, userSettings) {
|
|
4132
4118
|
if (datamap) {
|
4133
4119
|
datamap.destroy();
|
4134
4120
|
}
|
4135
|
-
instance.rowIndexMapper = null;
|
4136
|
-
instance.columnIndexMapper = null;
|
4137
4121
|
datamap = null;
|
4138
4122
|
grid = null;
|
4139
4123
|
selection = null;
|
@@ -4489,18 +4473,6 @@ export default function Core(rootElement, userSettings) {
|
|
4489
4473
|
this.getShortcutManager = function () {
|
4490
4474
|
return shortcutManager;
|
4491
4475
|
};
|
4492
|
-
|
4493
|
-
/**
|
4494
|
-
* Return the Focus Manager responsible for managing the browser's focus in the table.
|
4495
|
-
*
|
4496
|
-
* @memberof Core#
|
4497
|
-
* @since 13.0.0
|
4498
|
-
* @function getFocusManager
|
4499
|
-
* @returns {FocusManager}
|
4500
|
-
*/
|
4501
|
-
this.getFocusManager = function () {
|
4502
|
-
return focusManager;
|
4503
|
-
};
|
4504
4476
|
var gridContext = shortcutManager.addContext('grid');
|
4505
4477
|
var gridConfig = {
|
4506
4478
|
runOnlyIf: function runOnlyIf() {
|
@@ -4510,7 +4482,7 @@ export default function Core(rootElement, userSettings) {
|
|
4510
4482
|
};
|
4511
4483
|
shortcutManager.setActiveContextName('grid');
|
4512
4484
|
gridContext.addShortcuts([{
|
4513
|
-
keys: [['Control/Meta', 'A']
|
4485
|
+
keys: [['Control/Meta', 'A']],
|
4514
4486
|
callback: function callback() {
|
4515
4487
|
instance.selectAll();
|
4516
4488
|
}
|
package/dataMap/dataSource.js
CHANGED
@@ -195,7 +195,7 @@ var DataSource = /*#__PURE__*/function () {
|
|
195
195
|
}
|
196
196
|
if (this.hot.hasHook('modifySourceData')) {
|
197
197
|
var valueHolder = (0, _object.createObjectPropListener)(value);
|
198
|
-
this.hot.runHooks('modifySourceData', row,
|
198
|
+
this.hot.runHooks('modifySourceData', row, column, valueHolder, 'set');
|
199
199
|
if (valueHolder.isTouched()) {
|
200
200
|
value = valueHolder.value;
|
201
201
|
}
|
@@ -232,7 +232,7 @@ var DataSource = /*#__PURE__*/function () {
|
|
232
232
|
}
|
233
233
|
if (this.hot.hasHook('modifySourceData')) {
|
234
234
|
var valueHolder = (0, _object.createObjectPropListener)(result);
|
235
|
-
this.hot.runHooks('modifySourceData', row,
|
235
|
+
this.hot.runHooks('modifySourceData', row, column, valueHolder, 'get');
|
236
236
|
if (valueHolder.isTouched()) {
|
237
237
|
result = valueHolder.value;
|
238
238
|
}
|
@@ -244,14 +244,14 @@ var DataSource = /*#__PURE__*/function () {
|
|
244
244
|
* Returns a single value from the data.
|
245
245
|
*
|
246
246
|
* @param {number} row Physical row index.
|
247
|
-
* @param {number}
|
247
|
+
* @param {number} columnOrProp Visual column index or property.
|
248
248
|
* @returns {*}
|
249
249
|
*/
|
250
250
|
}, {
|
251
251
|
key: "getAtCell",
|
252
|
-
value: function getAtCell(row,
|
252
|
+
value: function getAtCell(row, columnOrProp) {
|
253
253
|
var dataRow = this.modifyRowData(row);
|
254
|
-
return this.getAtPhysicalCell(row, this.colToProp(
|
254
|
+
return this.getAtPhysicalCell(row, this.colToProp(columnOrProp), dataRow);
|
255
255
|
}
|
256
256
|
|
257
257
|
/**
|
package/dataMap/dataSource.mjs
CHANGED
@@ -191,7 +191,7 @@ var DataSource = /*#__PURE__*/function () {
|
|
191
191
|
}
|
192
192
|
if (this.hot.hasHook('modifySourceData')) {
|
193
193
|
var valueHolder = createObjectPropListener(value);
|
194
|
-
this.hot.runHooks('modifySourceData', row,
|
194
|
+
this.hot.runHooks('modifySourceData', row, column, valueHolder, 'set');
|
195
195
|
if (valueHolder.isTouched()) {
|
196
196
|
value = valueHolder.value;
|
197
197
|
}
|
@@ -228,7 +228,7 @@ var DataSource = /*#__PURE__*/function () {
|
|
228
228
|
}
|
229
229
|
if (this.hot.hasHook('modifySourceData')) {
|
230
230
|
var valueHolder = createObjectPropListener(result);
|
231
|
-
this.hot.runHooks('modifySourceData', row,
|
231
|
+
this.hot.runHooks('modifySourceData', row, column, valueHolder, 'get');
|
232
232
|
if (valueHolder.isTouched()) {
|
233
233
|
result = valueHolder.value;
|
234
234
|
}
|
@@ -240,14 +240,14 @@ var DataSource = /*#__PURE__*/function () {
|
|
240
240
|
* Returns a single value from the data.
|
241
241
|
*
|
242
242
|
* @param {number} row Physical row index.
|
243
|
-
* @param {number}
|
243
|
+
* @param {number} columnOrProp Visual column index or property.
|
244
244
|
* @returns {*}
|
245
245
|
*/
|
246
246
|
}, {
|
247
247
|
key: "getAtCell",
|
248
|
-
value: function getAtCell(row,
|
248
|
+
value: function getAtCell(row, columnOrProp) {
|
249
249
|
var dataRow = this.modifyRowData(row);
|
250
|
-
return this.getAtPhysicalCell(row, this.colToProp(
|
250
|
+
return this.getAtPhysicalCell(row, this.colToProp(columnOrProp), dataRow);
|
251
251
|
}
|
252
252
|
|
253
253
|
/**
|
@@ -21,7 +21,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
21
21
|
* [Configuration options](@/guides/getting-started/configuration-options.md) let you heavily customize your Handsontable instance. For example, you can:
|
22
22
|
*
|
23
23
|
* - Enable and disable built-in features
|
24
|
-
* - Enable and configure additional [plugins](@/
|
24
|
+
* - Enable and configure additional [plugins](@/api/plugins.md)
|
25
25
|
* - Personalize Handsontable's look
|
26
26
|
* - Adjust Handsontable's behavior
|
27
27
|
* - Implement your own custom features
|
@@ -2437,13 +2437,6 @@ var _default = function _default() {
|
|
2437
2437
|
* ```
|
2438
2438
|
*/
|
2439
2439
|
invalidCellClassName: 'htInvalid',
|
2440
|
-
/**
|
2441
|
-
* The `imeFastEdit` option allows using the "fast edit" feature for the IME users. It's disabled by default
|
2442
|
-
* because of its incompatibility with some of the accessibility features.
|
2443
|
-
*
|
2444
|
-
* Enabling this option can make a negative impact on how some screen readers handle reading the table cells.
|
2445
|
-
*/
|
2446
|
-
imeFastEdit: false,
|
2447
2440
|
/**
|
2448
2441
|
* The `isEmptyCol` option lets you define your own custom method
|
2449
2442
|
* for checking if a column at a given visual index is empty.
|
@@ -17,7 +17,7 @@ import { isObjectEqual } from "../../helpers/object.mjs";
|
|
17
17
|
* [Configuration options](@/guides/getting-started/configuration-options.md) let you heavily customize your Handsontable instance. For example, you can:
|
18
18
|
*
|
19
19
|
* - Enable and disable built-in features
|
20
|
-
* - Enable and configure additional [plugins](@/
|
20
|
+
* - Enable and configure additional [plugins](@/api/plugins.md)
|
21
21
|
* - Personalize Handsontable's look
|
22
22
|
* - Adjust Handsontable's behavior
|
23
23
|
* - Implement your own custom features
|
@@ -2433,13 +2433,6 @@ export default (function () {
|
|
2433
2433
|
* ```
|
2434
2434
|
*/
|
2435
2435
|
invalidCellClassName: 'htInvalid',
|
2436
|
-
/**
|
2437
|
-
* The `imeFastEdit` option allows using the "fast edit" feature for the IME users. It's disabled by default
|
2438
|
-
* because of its incompatibility with some of the accessibility features.
|
2439
|
-
*
|
2440
|
-
* Enabling this option can make a negative impact on how some screen readers handle reading the table cells.
|
2441
|
-
*/
|
2442
|
-
imeFastEdit: false,
|
2443
2436
|
/**
|
2444
2437
|
* The `isEmptyCol` option lets you define your own custom method
|
2445
2438
|
* for checking if a column at a given visual index is empty.
|
package/dist/handsontable.css
CHANGED
@@ -25,8 +25,8 @@
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
27
27
|
*
|
28
|
-
* Version: 0.0.0-next-
|
29
|
-
* Release date: 28/03/2023 (built at
|
28
|
+
* Version: 0.0.0-next-c73b24c-20230510
|
29
|
+
* Release date: 28/03/2023 (built at 10/05/2023 12:07:19)
|
30
30
|
*/
|
31
31
|
/**
|
32
32
|
* Fix for bootstrap styles
|
@@ -607,11 +607,6 @@ innerBorderBottom - Property controlled by bottom overlay
|
|
607
607
|
opacity: 0.58;
|
608
608
|
}
|
609
609
|
|
610
|
-
.handsontable tbody th.current,
|
611
|
-
.handsontable thead th.current {
|
612
|
-
box-shadow: inset 0 0 0 2px #5292f7;
|
613
|
-
}
|
614
|
-
|
615
610
|
.handsontable tbody th.ht__highlight,
|
616
611
|
.handsontable thead th.ht__highlight {
|
617
612
|
background-color: #dcdcdc;
|
@@ -25,8 +25,8 @@
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
27
27
|
*
|
28
|
-
* Version: 0.0.0-next-
|
29
|
-
* Release date: 28/03/2023 (built at
|
28
|
+
* Version: 0.0.0-next-c73b24c-20230510
|
29
|
+
* Release date: 28/03/2023 (built at 10/05/2023 12:07:19)
|
30
30
|
*/
|
31
31
|
/**
|
32
32
|
* Fix for bootstrap styles
|
@@ -607,11 +607,6 @@ innerBorderBottom - Property controlled by bottom overlay
|
|
607
607
|
opacity: 0.58;
|
608
608
|
}
|
609
609
|
|
610
|
-
.handsontable tbody th.current,
|
611
|
-
.handsontable thead th.current {
|
612
|
-
box-shadow: inset 0 0 0 2px #5292f7;
|
613
|
-
}
|
614
|
-
|
615
610
|
.handsontable tbody th.ht__highlight,
|
616
611
|
.handsontable thead th.ht__highlight {
|
617
612
|
background-color: #dcdcdc;
|