handsontable 0.0.0-next-88f4ae4-20250313 → 0.0.0-next-a1cc3b8-20250314

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.

Potentially problematic release.


This version of handsontable might be problematic. Click here for more details.

Files changed (41) hide show
  1. package/base.js +2 -2
  2. package/base.mjs +2 -2
  3. package/core.d.ts +1 -1
  4. package/core.js +7 -1
  5. package/core.mjs +7 -1
  6. package/dataMap/metaManager/index.js +8 -9
  7. package/dataMap/metaManager/index.mjs +8 -9
  8. package/dataMap/metaManager/mods/dynamicCellMeta.js +4 -1
  9. package/dataMap/metaManager/mods/dynamicCellMeta.mjs +4 -1
  10. package/dist/handsontable.css +2 -2
  11. package/dist/handsontable.full.css +2 -2
  12. package/dist/handsontable.full.js +143 -108
  13. package/dist/handsontable.full.min.css +2 -2
  14. package/dist/handsontable.full.min.js +12 -12
  15. package/dist/handsontable.js +143 -108
  16. package/dist/handsontable.min.css +2 -2
  17. package/dist/handsontable.min.js +13 -13
  18. package/editors/textEditor/textEditor.js +1 -1
  19. package/editors/textEditor/textEditor.mjs +2 -2
  20. package/helpers/dom/element.js +2 -2
  21. package/helpers/dom/element.mjs +1 -1
  22. package/helpers/mixed.js +1 -1
  23. package/helpers/mixed.mjs +1 -1
  24. package/package.json +1 -1
  25. package/plugins/autoColumnSize/autoColumnSize.js +37 -16
  26. package/plugins/autoColumnSize/autoColumnSize.mjs +37 -16
  27. package/plugins/autoRowSize/autoRowSize.js +11 -0
  28. package/plugins/autoRowSize/autoRowSize.mjs +11 -0
  29. package/plugins/copyPaste/copyPaste.js +6 -12
  30. package/plugins/copyPaste/copyPaste.mjs +7 -13
  31. package/plugins/formulas/formulas.d.ts +1 -1
  32. package/plugins/formulas/formulas.js +57 -60
  33. package/plugins/formulas/formulas.mjs +59 -62
  34. package/plugins/formulas/indexSyncer/axisSyncer.js +5 -1
  35. package/plugins/formulas/indexSyncer/axisSyncer.mjs +5 -1
  36. package/styles/handsontable.css +2 -2
  37. package/styles/handsontable.min.css +2 -2
  38. package/styles/ht-theme-horizon.css +2 -2
  39. package/styles/ht-theme-horizon.min.css +2 -2
  40. package/styles/ht-theme-main.css +2 -2
  41. package/styles/ht-theme-main.min.css +2 -2
package/base.js CHANGED
@@ -45,8 +45,8 @@ Handsontable.hooks = _hooks.Hooks.getSingleton();
45
45
  Handsontable.CellCoords = _src.CellCoords;
46
46
  Handsontable.CellRange = _src.CellRange;
47
47
  Handsontable.packageName = 'handsontable';
48
- Handsontable.buildDate = "13/03/2025 08:17:25";
49
- Handsontable.version = "0.0.0-next-88f4ae4-20250313";
48
+ Handsontable.buildDate = "14/03/2025 11:34:25";
49
+ Handsontable.version = "0.0.0-next-a1cc3b8-20250314";
50
50
  Handsontable.languages = {
51
51
  dictionaryKeys: _registry.dictionaryKeys,
52
52
  getLanguageDictionary: _registry.getLanguageDictionary,
package/base.mjs CHANGED
@@ -35,8 +35,8 @@ Handsontable.hooks = Hooks.getSingleton();
35
35
  Handsontable.CellCoords = CellCoords;
36
36
  Handsontable.CellRange = CellRange;
37
37
  Handsontable.packageName = 'handsontable';
38
- Handsontable.buildDate = "13/03/2025 08:17:31";
39
- Handsontable.version = "0.0.0-next-88f4ae4-20250313";
38
+ Handsontable.buildDate = "14/03/2025 11:34:30";
39
+ Handsontable.version = "0.0.0-next-a1cc3b8-20250314";
40
40
  Handsontable.languages = {
41
41
  dictionaryKeys,
42
42
  getLanguageDictionary,
package/core.d.ts CHANGED
@@ -59,7 +59,7 @@ export default class Core {
59
59
  getCell(row: number, column: number, topmost?: boolean): HTMLTableCellElement | null;
60
60
  getCellEditor(cellMeta: CellMeta): BaseEditor;
61
61
  getCellEditor(row: number, column: number): BaseEditor;
62
- getCellMeta(row: number, column: number): CellProperties;
62
+ getCellMeta(row: number, column: number, options?: { skipMetaExtension: boolean }): CellProperties;
63
63
  getCellMetaAtRow(row: number): CellProperties[];
64
64
  getCellRenderer(cellMeta: CellMeta): BaseRenderer;
65
65
  getCellRenderer(row: number, column: number): BaseRenderer;
package/core.js CHANGED
@@ -3085,11 +3085,16 @@ function Core(rootElement, userSettings) {
3085
3085
  * @function getCellMeta
3086
3086
  * @param {number} row Visual row index.
3087
3087
  * @param {number} column Visual column index.
3088
+ * @param {object} options Execution options for the `getCellMeta` method.
3089
+ * @param {boolean} [options.skipMetaExtension=false] If `true`, skips extending the cell meta object. This means, the `cells` function, as well as the `afterGetCellMeta` and `beforeGetCellMeta` hooks, will not be called.
3088
3090
  * @returns {object} The cell properties object.
3089
3091
  * @fires Hooks#beforeGetCellMeta
3090
3092
  * @fires Hooks#afterGetCellMeta
3091
3093
  */
3092
3094
  this.getCellMeta = function (row, column) {
3095
+ let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
3096
+ skipMetaExtension: false
3097
+ };
3093
3098
  let physicalRow = this.toPhysicalRow(row);
3094
3099
  let physicalColumn = this.toPhysicalColumn(column);
3095
3100
  if (physicalRow === null) {
@@ -3100,7 +3105,8 @@ function Core(rootElement, userSettings) {
3100
3105
  }
3101
3106
  return metaManager.getCellMeta(physicalRow, physicalColumn, {
3102
3107
  visualRow: row,
3103
- visualColumn: column
3108
+ visualColumn: column,
3109
+ ...options
3104
3110
  });
3105
3111
  };
3106
3112
 
package/core.mjs CHANGED
@@ -3080,11 +3080,16 @@ export default function Core(rootElement, userSettings) {
3080
3080
  * @function getCellMeta
3081
3081
  * @param {number} row Visual row index.
3082
3082
  * @param {number} column Visual column index.
3083
+ * @param {object} options Execution options for the `getCellMeta` method.
3084
+ * @param {boolean} [options.skipMetaExtension=false] If `true`, skips extending the cell meta object. This means, the `cells` function, as well as the `afterGetCellMeta` and `beforeGetCellMeta` hooks, will not be called.
3083
3085
  * @returns {object} The cell properties object.
3084
3086
  * @fires Hooks#beforeGetCellMeta
3085
3087
  * @fires Hooks#afterGetCellMeta
3086
3088
  */
3087
3089
  this.getCellMeta = function (row, column) {
3090
+ let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
3091
+ skipMetaExtension: false
3092
+ };
3088
3093
  let physicalRow = this.toPhysicalRow(row);
3089
3094
  let physicalColumn = this.toPhysicalColumn(column);
3090
3095
  if (physicalRow === null) {
@@ -3095,7 +3100,8 @@ export default function Core(rootElement, userSettings) {
3095
3100
  }
3096
3101
  return metaManager.getCellMeta(physicalRow, physicalColumn, {
3097
3102
  visualRow: row,
3098
- visualColumn: column
3103
+ visualColumn: column,
3104
+ ...options
3099
3105
  });
3100
3106
  };
3101
3107
 
@@ -139,22 +139,21 @@ class MetaManager {
139
139
  *
140
140
  * @param {number} physicalRow The physical row index.
141
141
  * @param {number} physicalColumn The physical column index.
142
- * @param {object} options Additional options that are used to extend the cell meta object.
142
+ * @param {object} options Options for the `getCellMeta` method.
143
143
  * @param {number} options.visualRow The visual row index of the currently requested cell meta object.
144
144
  * @param {number} options.visualColumn The visual column index of the currently requested cell meta object.
145
+ * @param {boolean} [options.skipMetaExtension=false] If `true`, omits the `afterGetCellMeta` hook which calls the `extendCellMeta` method.
145
146
  * @returns {object}
146
147
  */
147
- getCellMeta(physicalRow, physicalColumn, _ref) {
148
- let {
149
- visualRow,
150
- visualColumn
151
- } = _ref;
148
+ getCellMeta(physicalRow, physicalColumn, options) {
152
149
  const cellMeta = this.cellMeta.getMeta(physicalRow, physicalColumn);
153
- cellMeta.visualRow = visualRow;
154
- cellMeta.visualCol = visualColumn;
150
+ cellMeta.visualRow = options.visualRow;
151
+ cellMeta.visualCol = options.visualColumn;
155
152
  cellMeta.row = physicalRow;
156
153
  cellMeta.col = physicalColumn;
157
- this.runLocalHooks('afterGetCellMeta', cellMeta);
154
+ if (!options.skipMetaExtension) {
155
+ this.runLocalHooks('afterGetCellMeta', cellMeta);
156
+ }
158
157
  return cellMeta;
159
158
  }
160
159
 
@@ -135,22 +135,21 @@ export default class MetaManager {
135
135
  *
136
136
  * @param {number} physicalRow The physical row index.
137
137
  * @param {number} physicalColumn The physical column index.
138
- * @param {object} options Additional options that are used to extend the cell meta object.
138
+ * @param {object} options Options for the `getCellMeta` method.
139
139
  * @param {number} options.visualRow The visual row index of the currently requested cell meta object.
140
140
  * @param {number} options.visualColumn The visual column index of the currently requested cell meta object.
141
+ * @param {boolean} [options.skipMetaExtension=false] If `true`, omits the `afterGetCellMeta` hook which calls the `extendCellMeta` method.
141
142
  * @returns {object}
142
143
  */
143
- getCellMeta(physicalRow, physicalColumn, _ref) {
144
- let {
145
- visualRow,
146
- visualColumn
147
- } = _ref;
144
+ getCellMeta(physicalRow, physicalColumn, options) {
148
145
  const cellMeta = this.cellMeta.getMeta(physicalRow, physicalColumn);
149
- cellMeta.visualRow = visualRow;
150
- cellMeta.visualCol = visualColumn;
146
+ cellMeta.visualRow = options.visualRow;
147
+ cellMeta.visualCol = options.visualColumn;
151
148
  cellMeta.row = physicalRow;
152
149
  cellMeta.col = physicalColumn;
153
- this.runLocalHooks('afterGetCellMeta', cellMeta);
150
+ if (!options.skipMetaExtension) {
151
+ this.runLocalHooks('afterGetCellMeta', cellMeta);
152
+ }
154
153
  return cellMeta;
155
154
  }
156
155
 
@@ -32,6 +32,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
32
32
  */
33
33
  class DynamicCellMetaMod {
34
34
  constructor(metaManager) {
35
+ var _this = this;
35
36
  /**
36
37
  * @type {MetaManager}
37
38
  */
@@ -41,7 +42,9 @@ class DynamicCellMetaMod {
41
42
  */
42
43
  _defineProperty(this, "metaSyncMemo", new Map());
43
44
  this.metaManager = metaManager;
44
- metaManager.addLocalHook('afterGetCellMeta', cellMeta => this.extendCellMeta(cellMeta));
45
+ metaManager.addLocalHook('afterGetCellMeta', function () {
46
+ return _this.extendCellMeta(...arguments);
47
+ });
45
48
  _hooks.Hooks.getSingleton().add('beforeRender', forceFullRender => {
46
49
  if (forceFullRender) {
47
50
  this.metaSyncMemo.clear();
@@ -29,6 +29,7 @@ import { isFunction } from "../../../helpers/function.mjs";
29
29
  */
30
30
  export class DynamicCellMetaMod {
31
31
  constructor(metaManager) {
32
+ var _this = this;
32
33
  /**
33
34
  * @type {MetaManager}
34
35
  */
@@ -38,7 +39,9 @@ export class DynamicCellMetaMod {
38
39
  */
39
40
  _defineProperty(this, "metaSyncMemo", new Map());
40
41
  this.metaManager = metaManager;
41
- metaManager.addLocalHook('afterGetCellMeta', cellMeta => this.extendCellMeta(cellMeta));
42
+ metaManager.addLocalHook('afterGetCellMeta', function () {
43
+ return _this.extendCellMeta(...arguments);
44
+ });
42
45
  Hooks.getSingleton().add('beforeRender', forceFullRender => {
43
46
  if (forceFullRender) {
44
47
  this.metaSyncMemo.clear();
@@ -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-88f4ae4-20250313
29
- * Release date: 20/02/2025 (built at 13/03/2025 08:17:53)
28
+ * Version: 0.0.0-next-a1cc3b8-20250314
29
+ * Release date: 20/02/2025 (built at 14/03/2025 11:34:53)
30
30
  */
31
31
  /**
32
32
  * Fix for bootstrap styles
@@ -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-88f4ae4-20250313
29
- * Release date: 20/02/2025 (built at 13/03/2025 08:17:53)
28
+ * Version: 0.0.0-next-a1cc3b8-20250314
29
+ * Release date: 20/02/2025 (built at 14/03/2025 11:34:53)
30
30
  */
31
31
  /**
32
32
  * Fix for bootstrap styles