handsontable 0.0.0-next-b66c79f-20230713 → 0.0.0-next-85c3085-20230713

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.

Files changed (133) hide show
  1. package/3rdparty/walkontable/src/cell/coords.js +37 -22
  2. package/3rdparty/walkontable/src/cell/coords.mjs +37 -22
  3. package/3rdparty/walkontable/src/cell/range.js +54 -39
  4. package/3rdparty/walkontable/src/cell/range.mjs +54 -39
  5. package/3rdparty/walkontable/src/core/_base.js +33 -31
  6. package/3rdparty/walkontable/src/core/_base.mjs +33 -31
  7. package/3rdparty/walkontable/src/core/clone.js +6 -3
  8. package/3rdparty/walkontable/src/core/clone.mjs +6 -3
  9. package/3rdparty/walkontable/src/event.js +2 -1
  10. package/3rdparty/walkontable/src/event.mjs +2 -1
  11. package/3rdparty/walkontable/src/overlay/_base.js +10 -8
  12. package/3rdparty/walkontable/src/overlay/_base.mjs +10 -8
  13. package/3rdparty/walkontable/src/overlay/bottom.js +10 -8
  14. package/3rdparty/walkontable/src/overlay/bottom.mjs +10 -8
  15. package/3rdparty/walkontable/src/overlay/inlineStart.js +1 -1
  16. package/3rdparty/walkontable/src/overlay/inlineStart.mjs +1 -1
  17. package/3rdparty/walkontable/src/overlay/top.js +11 -9
  18. package/3rdparty/walkontable/src/overlay/top.mjs +11 -9
  19. package/3rdparty/walkontable/src/overlay/topInlineStartCorner.js +16 -13
  20. package/3rdparty/walkontable/src/overlay/topInlineStartCorner.mjs +16 -13
  21. package/3rdparty/walkontable/src/overlays.js +75 -80
  22. package/3rdparty/walkontable/src/overlays.mjs +75 -80
  23. package/3rdparty/walkontable/src/scroll.js +27 -24
  24. package/3rdparty/walkontable/src/scroll.mjs +27 -24
  25. package/3rdparty/walkontable/src/settings.js +18 -17
  26. package/3rdparty/walkontable/src/settings.mjs +18 -17
  27. package/3rdparty/walkontable/src/table.js +42 -37
  28. package/3rdparty/walkontable/src/table.mjs +42 -37
  29. package/base.js +2 -2
  30. package/base.mjs +2 -2
  31. package/core.js +8 -8
  32. package/core.mjs +8 -8
  33. package/dataMap/metaManager/metaLayers/cellMeta.js +2 -1
  34. package/dataMap/metaManager/metaLayers/cellMeta.mjs +2 -1
  35. package/dataMap/metaManager/metaLayers/globalMeta.js +1 -1
  36. package/dataMap/metaManager/metaLayers/globalMeta.mjs +1 -1
  37. package/dataMap/metaManager/mods/dynamicCellMeta.js +3 -2
  38. package/dataMap/metaManager/mods/dynamicCellMeta.mjs +3 -2
  39. package/dataMap/metaManager/utils.js +4 -2
  40. package/dataMap/metaManager/utils.mjs +4 -2
  41. package/dist/handsontable.css +2 -2
  42. package/dist/handsontable.full.css +2 -2
  43. package/dist/handsontable.full.js +3247 -2847
  44. package/dist/handsontable.full.min.css +2 -2
  45. package/dist/handsontable.full.min.js +17 -17
  46. package/dist/handsontable.js +3249 -2849
  47. package/dist/handsontable.min.css +2 -2
  48. package/dist/handsontable.min.js +17 -17
  49. package/editors/autocompleteEditor/autocompleteEditor.js +70 -67
  50. package/editors/autocompleteEditor/autocompleteEditor.mjs +70 -67
  51. package/editors/baseEditor/baseEditor.js +1 -1
  52. package/editors/baseEditor/baseEditor.mjs +1 -1
  53. package/editors/dateEditor/dateEditor.js +2 -1
  54. package/editors/dateEditor/dateEditor.mjs +2 -1
  55. package/helpers/mixed.js +1 -1
  56. package/helpers/mixed.mjs +1 -1
  57. package/helpers/object.js +1 -0
  58. package/helpers/object.mjs +1 -0
  59. package/index.js +5 -5
  60. package/index.mjs +5 -5
  61. package/package.json +1 -1
  62. package/plugins/autoColumnSize/autoColumnSize.js +4 -1
  63. package/plugins/autoColumnSize/autoColumnSize.mjs +4 -1
  64. package/plugins/collapsibleColumns/collapsibleColumns.js +54 -38
  65. package/plugins/collapsibleColumns/collapsibleColumns.mjs +54 -38
  66. package/plugins/columnSorting/columnSorting.js +2 -1
  67. package/plugins/columnSorting/columnSorting.mjs +2 -1
  68. package/plugins/columnSorting/columnStatesManager.js +2 -1
  69. package/plugins/columnSorting/columnStatesManager.mjs +2 -1
  70. package/plugins/comments/comments.js +2 -2
  71. package/plugins/comments/comments.mjs +2 -2
  72. package/plugins/copyPaste/copyPaste.js +6 -4
  73. package/plugins/copyPaste/copyPaste.mjs +6 -4
  74. package/plugins/customBorders/customBorders.js +13 -9
  75. package/plugins/customBorders/customBorders.mjs +13 -9
  76. package/plugins/customBorders/utils.js +3 -3
  77. package/plugins/customBorders/utils.mjs +3 -3
  78. package/plugins/filters/conditionCollection.js +6 -5
  79. package/plugins/filters/conditionCollection.mjs +6 -5
  80. package/plugins/filters/filters.js +13 -7
  81. package/plugins/filters/filters.mjs +13 -7
  82. package/plugins/formulas/engine/register.js +3 -3
  83. package/plugins/formulas/engine/register.mjs +3 -3
  84. package/plugins/formulas/engine/settings.js +6 -3
  85. package/plugins/formulas/engine/settings.mjs +6 -3
  86. package/plugins/formulas/formulas.js +151 -143
  87. package/plugins/formulas/formulas.mjs +151 -143
  88. package/plugins/formulas/indexSyncer/axisSyncer.js +115 -79
  89. package/plugins/formulas/indexSyncer/axisSyncer.mjs +115 -79
  90. package/plugins/formulas/indexSyncer/index.js +100 -64
  91. package/plugins/formulas/indexSyncer/index.mjs +100 -64
  92. package/plugins/hiddenColumns/contextMenuItem/showColumn.js +2 -2
  93. package/plugins/hiddenColumns/contextMenuItem/showColumn.mjs +2 -2
  94. package/plugins/hiddenColumns/hiddenColumns.js +51 -34
  95. package/plugins/hiddenColumns/hiddenColumns.mjs +51 -34
  96. package/plugins/hiddenRows/contextMenuItem/showRow.js +2 -2
  97. package/plugins/hiddenRows/contextMenuItem/showRow.mjs +2 -2
  98. package/plugins/hiddenRows/hiddenRows.js +50 -33
  99. package/plugins/hiddenRows/hiddenRows.mjs +50 -33
  100. package/plugins/manualRowResize/manualRowResize.js +2 -1
  101. package/plugins/manualRowResize/manualRowResize.mjs +2 -1
  102. package/plugins/mergeCells/mergeCells.js +1 -1
  103. package/plugins/mergeCells/mergeCells.mjs +1 -1
  104. package/plugins/nestedHeaders/nestedHeaders.js +88 -67
  105. package/plugins/nestedHeaders/nestedHeaders.mjs +87 -66
  106. package/plugins/nestedHeaders/stateManager/headersTree.js +58 -38
  107. package/plugins/nestedHeaders/stateManager/headersTree.mjs +58 -38
  108. package/plugins/nestedHeaders/stateManager/index.js +70 -49
  109. package/plugins/nestedHeaders/stateManager/index.mjs +68 -47
  110. package/plugins/nestedHeaders/stateManager/nodeModifiers/collapse.js +1 -1
  111. package/plugins/nestedHeaders/stateManager/nodeModifiers/collapse.mjs +1 -1
  112. package/plugins/nestedHeaders/stateManager/sourceSettings.js +57 -37
  113. package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +57 -37
  114. package/plugins/nestedHeaders/utils/ghostTable.js +39 -35
  115. package/plugins/nestedHeaders/utils/ghostTable.mjs +39 -35
  116. package/plugins/nestedRows/data/dataManager.js +4 -2
  117. package/plugins/nestedRows/data/dataManager.mjs +4 -2
  118. package/plugins/persistentState/storage.js +1 -0
  119. package/plugins/persistentState/storage.mjs +1 -0
  120. package/plugins/undoRedo/undoRedo.js +2 -1
  121. package/plugins/undoRedo/undoRedo.mjs +2 -1
  122. package/selection/highlight/visualSelection.js +10 -6
  123. package/selection/highlight/visualSelection.mjs +10 -6
  124. package/tableView.js +98 -80
  125. package/tableView.mjs +98 -80
  126. package/translations/changesObservable/observable.js +82 -54
  127. package/translations/changesObservable/observable.mjs +82 -54
  128. package/translations/changesObservable/observer.js +24 -11
  129. package/translations/changesObservable/observer.mjs +24 -11
  130. package/translations/maps/linkedPhysicalIndexToValueMap.js +14 -8
  131. package/translations/maps/linkedPhysicalIndexToValueMap.mjs +14 -8
  132. package/utils/dataStructures/tree.js +21 -18
  133. package/utils/dataStructures/tree.mjs +21 -18
@@ -64,8 +64,8 @@ class ConditionCollection {
64
64
  isMatch(value, column) {
65
65
  var _stateForColumn$condi;
66
66
  const stateForColumn = this.filteringStates.getValueAtIndex(column);
67
- const conditions = (_stateForColumn$condi = stateForColumn?.conditions) != null ? _stateForColumn$condi : [];
68
- const operation = stateForColumn?.operation;
67
+ const conditions = (_stateForColumn$condi = stateForColumn === null || stateForColumn === void 0 ? void 0 : stateForColumn.conditions) !== null && _stateForColumn$condi !== void 0 ? _stateForColumn$condi : [];
68
+ const operation = stateForColumn === null || stateForColumn === void 0 ? void 0 : stateForColumn.operation;
69
69
  return this.isMatchInConditions(conditions, value, operation);
70
70
  }
71
71
 
@@ -146,8 +146,8 @@ class ConditionCollection {
146
146
  * @returns {Array} Returns conditions collection as an array.
147
147
  */
148
148
  getConditions(column) {
149
- var _this$filteringStates;
150
- return (_this$filteringStates = this.filteringStates.getValueAtIndex(column)?.conditions) != null ? _this$filteringStates : [];
149
+ var _this$filteringStates, _this$filteringStates2;
150
+ return (_this$filteringStates = (_this$filteringStates2 = this.filteringStates.getValueAtIndex(column)) === null || _this$filteringStates2 === void 0 ? void 0 : _this$filteringStates2.conditions) !== null && _this$filteringStates !== void 0 ? _this$filteringStates : [];
151
151
  }
152
152
 
153
153
  /**
@@ -157,7 +157,8 @@ class ConditionCollection {
157
157
  * @returns {string|undefined}
158
158
  */
159
159
  getOperation(column) {
160
- return this.filteringStates.getValueAtIndex(column)?.operation;
160
+ var _this$filteringStates3;
161
+ return (_this$filteringStates3 = this.filteringStates.getValueAtIndex(column)) === null || _this$filteringStates3 === void 0 ? void 0 : _this$filteringStates3.operation;
161
162
  }
162
163
 
163
164
  /**
@@ -218,7 +218,8 @@ class Filters extends _base.BasePlugin {
218
218
  */
219
219
  disablePlugin() {
220
220
  if (this.enabled) {
221
- if (this.dropdownMenuPlugin?.enabled) {
221
+ var _this$dropdownMenuPlu;
222
+ if ((_this$dropdownMenuPlu = this.dropdownMenuPlugin) !== null && _this$dropdownMenuPlu !== void 0 && _this$dropdownMenuPlu.enabled) {
222
223
  this.dropdownMenuPlugin.menu.clearLocalHooks();
223
224
  }
224
225
  this.components.forEach((component, key) => {
@@ -432,7 +433,8 @@ class Filters extends _base.BasePlugin {
432
433
  * the index of the column.
433
434
  */
434
435
  getSelectedColumn() {
435
- const highlight = this.hot.getSelectedRangeLast()?.highlight;
436
+ var _this$hot$getSelected;
437
+ const highlight = (_this$hot$getSelected = this.hot.getSelectedRangeLast()) === null || _this$hot$getSelected === void 0 ? void 0 : _this$hot$getSelected.highlight;
436
438
  if (!highlight) {
437
439
  return null;
438
440
  }
@@ -475,7 +477,7 @@ class Filters extends _base.BasePlugin {
475
477
  dateFormat,
476
478
  locale
477
479
  } = this.hot.getCellMeta(rowIndex, visualColumn);
478
- const dataValue = (_this$hot$getDataAtCe = this.hot.getDataAtCell(this.hot.toVisualRow(rowIndex), visualColumn)) != null ? _this$hot$getDataAtCe : value;
480
+ const dataValue = (_this$hot$getDataAtCe = this.hot.getDataAtCell(this.hot.toVisualRow(rowIndex), visualColumn)) !== null && _this$hot$getDataAtCe !== void 0 ? _this$hot$getDataAtCe : value;
479
481
  data.push({
480
482
  meta: {
481
483
  row,
@@ -530,7 +532,8 @@ class Filters extends _base.BasePlugin {
530
532
  * @param {Array} components List of components.
531
533
  */
532
534
  restoreComponents(components) {
533
- const physicalIndex = this.getSelectedColumn()?.physicalIndex;
535
+ var _this$getSelectedColu;
536
+ const physicalIndex = (_this$getSelectedColu = this.getSelectedColumn()) === null || _this$getSelectedColu === void 0 ? void 0 : _this$getSelectedColu.physicalIndex;
534
537
  components.forEach(component => {
535
538
  if (component.isHidden()) {
536
539
  return;
@@ -618,10 +621,12 @@ class Filters extends _base.BasePlugin {
618
621
  * @param {string} submitType The submit type.
619
622
  */
620
623
  onActionBarSubmit(submitType) {
624
+ var _this$dropdownMenuPlu3;
621
625
  if (submitType === 'accept') {
622
626
  const selectedColumn = this.getSelectedColumn();
623
627
  if (selectedColumn === null) {
624
- this.dropdownMenuPlugin?.close();
628
+ var _this$dropdownMenuPlu2;
629
+ (_this$dropdownMenuPlu2 = this.dropdownMenuPlugin) === null || _this$dropdownMenuPlu2 === void 0 ? void 0 : _this$dropdownMenuPlu2.close();
625
630
  return;
626
631
  }
627
632
  const {
@@ -651,7 +656,7 @@ class Filters extends _base.BasePlugin {
651
656
  this.filtersRowsMap.clear();
652
657
  this.filter();
653
658
  }
654
- this.dropdownMenuPlugin?.close();
659
+ (_this$dropdownMenuPlu3 = this.dropdownMenuPlugin) === null || _this$dropdownMenuPlu3 === void 0 ? void 0 : _this$dropdownMenuPlu3.close();
655
660
  }
656
661
 
657
662
  /**
@@ -744,7 +749,8 @@ class Filters extends _base.BasePlugin {
744
749
  * @param {object} conditionsState An object with the state generated by UI components.
745
750
  */
746
751
  updateComponents(conditionsState) {
747
- if (!this.dropdownMenuPlugin?.enabled) {
752
+ var _this$dropdownMenuPlu4;
753
+ if (!((_this$dropdownMenuPlu4 = this.dropdownMenuPlugin) !== null && _this$dropdownMenuPlu4 !== void 0 && _this$dropdownMenuPlu4.enabled)) {
748
754
  return;
749
755
  }
750
756
  const {
@@ -210,7 +210,8 @@ export class Filters extends BasePlugin {
210
210
  */
211
211
  disablePlugin() {
212
212
  if (this.enabled) {
213
- if (this.dropdownMenuPlugin?.enabled) {
213
+ var _this$dropdownMenuPlu;
214
+ if ((_this$dropdownMenuPlu = this.dropdownMenuPlugin) !== null && _this$dropdownMenuPlu !== void 0 && _this$dropdownMenuPlu.enabled) {
214
215
  this.dropdownMenuPlugin.menu.clearLocalHooks();
215
216
  }
216
217
  this.components.forEach((component, key) => {
@@ -424,7 +425,8 @@ export class Filters extends BasePlugin {
424
425
  * the index of the column.
425
426
  */
426
427
  getSelectedColumn() {
427
- const highlight = this.hot.getSelectedRangeLast()?.highlight;
428
+ var _this$hot$getSelected;
429
+ const highlight = (_this$hot$getSelected = this.hot.getSelectedRangeLast()) === null || _this$hot$getSelected === void 0 ? void 0 : _this$hot$getSelected.highlight;
428
430
  if (!highlight) {
429
431
  return null;
430
432
  }
@@ -467,7 +469,7 @@ export class Filters extends BasePlugin {
467
469
  dateFormat,
468
470
  locale
469
471
  } = this.hot.getCellMeta(rowIndex, visualColumn);
470
- const dataValue = (_this$hot$getDataAtCe = this.hot.getDataAtCell(this.hot.toVisualRow(rowIndex), visualColumn)) != null ? _this$hot$getDataAtCe : value;
472
+ const dataValue = (_this$hot$getDataAtCe = this.hot.getDataAtCell(this.hot.toVisualRow(rowIndex), visualColumn)) !== null && _this$hot$getDataAtCe !== void 0 ? _this$hot$getDataAtCe : value;
471
473
  data.push({
472
474
  meta: {
473
475
  row,
@@ -522,7 +524,8 @@ export class Filters extends BasePlugin {
522
524
  * @param {Array} components List of components.
523
525
  */
524
526
  restoreComponents(components) {
525
- const physicalIndex = this.getSelectedColumn()?.physicalIndex;
527
+ var _this$getSelectedColu;
528
+ const physicalIndex = (_this$getSelectedColu = this.getSelectedColumn()) === null || _this$getSelectedColu === void 0 ? void 0 : _this$getSelectedColu.physicalIndex;
526
529
  components.forEach(component => {
527
530
  if (component.isHidden()) {
528
531
  return;
@@ -610,10 +613,12 @@ export class Filters extends BasePlugin {
610
613
  * @param {string} submitType The submit type.
611
614
  */
612
615
  onActionBarSubmit(submitType) {
616
+ var _this$dropdownMenuPlu3;
613
617
  if (submitType === 'accept') {
614
618
  const selectedColumn = this.getSelectedColumn();
615
619
  if (selectedColumn === null) {
616
- this.dropdownMenuPlugin?.close();
620
+ var _this$dropdownMenuPlu2;
621
+ (_this$dropdownMenuPlu2 = this.dropdownMenuPlugin) === null || _this$dropdownMenuPlu2 === void 0 ? void 0 : _this$dropdownMenuPlu2.close();
617
622
  return;
618
623
  }
619
624
  const {
@@ -643,7 +648,7 @@ export class Filters extends BasePlugin {
643
648
  this.filtersRowsMap.clear();
644
649
  this.filter();
645
650
  }
646
- this.dropdownMenuPlugin?.close();
651
+ (_this$dropdownMenuPlu3 = this.dropdownMenuPlugin) === null || _this$dropdownMenuPlu3 === void 0 ? void 0 : _this$dropdownMenuPlu3.close();
647
652
  }
648
653
 
649
654
  /**
@@ -736,7 +741,8 @@ export class Filters extends BasePlugin {
736
741
  * @param {object} conditionsState An object with the state generated by UI components.
737
742
  */
738
743
  updateComponents(conditionsState) {
739
- if (!this.dropdownMenuPlugin?.enabled) {
744
+ var _this$dropdownMenuPlu4;
745
+ if (!((_this$dropdownMenuPlu4 = this.dropdownMenuPlugin) !== null && _this$dropdownMenuPlu4 !== void 0 && _this$dropdownMenuPlu4.enabled)) {
740
746
  return;
741
747
  }
742
748
  const {
@@ -56,7 +56,7 @@ function getSharedEngineUsageRegistry() {
56
56
  function setupEngine(hotInstance) {
57
57
  const hotSettings = hotInstance.getSettings();
58
58
  const pluginSettings = hotSettings[_formulas.PLUGIN_KEY];
59
- const engineConfigItem = pluginSettings?.engine;
59
+ const engineConfigItem = pluginSettings === null || pluginSettings === void 0 ? void 0 : pluginSettings.engine;
60
60
  if (pluginSettings === true) {
61
61
  return null;
62
62
  }
@@ -67,7 +67,7 @@ function setupEngine(hotInstance) {
67
67
  // `engine.hyperformula` or `engine` is the engine class
68
68
  if (typeof engineConfigItem.hyperformula === 'function' || typeof engineConfigItem === 'function') {
69
69
  var _engineConfigItem$hyp;
70
- return registerEngine((_engineConfigItem$hyp = engineConfigItem.hyperformula) != null ? _engineConfigItem$hyp : engineConfigItem, hotSettings, hotInstance);
70
+ return registerEngine((_engineConfigItem$hyp = engineConfigItem.hyperformula) !== null && _engineConfigItem$hyp !== void 0 ? _engineConfigItem$hyp : engineConfigItem, hotSettings, hotInstance);
71
71
 
72
72
  // `engine` is the engine instance
73
73
  } else if (typeof engineConfigItem === 'object' && (0, _mixed.isUndefined)(engineConfigItem.hyperformula)) {
@@ -137,7 +137,7 @@ function registerEngine(engineClass, hotSettings, hotInstance) {
137
137
  function getRegisteredHotInstances(engine) {
138
138
  var _engineRegistry$get;
139
139
  const engineRegistry = getEngineRelationshipRegistry();
140
- const hotInstances = engineRegistry.size === 0 ? [] : Array.from((_engineRegistry$get = engineRegistry.get(engine)) != null ? _engineRegistry$get : []);
140
+ const hotInstances = engineRegistry.size === 0 ? [] : Array.from((_engineRegistry$get = engineRegistry.get(engine)) !== null && _engineRegistry$get !== void 0 ? _engineRegistry$get : []);
141
141
  return new Map(hotInstances.map(hot => [hot.getPlugin('formulas').sheetId, hot]));
142
142
  }
143
143
 
@@ -44,7 +44,7 @@ function getSharedEngineUsageRegistry() {
44
44
  export function setupEngine(hotInstance) {
45
45
  const hotSettings = hotInstance.getSettings();
46
46
  const pluginSettings = hotSettings[PLUGIN_KEY];
47
- const engineConfigItem = pluginSettings?.engine;
47
+ const engineConfigItem = pluginSettings === null || pluginSettings === void 0 ? void 0 : pluginSettings.engine;
48
48
  if (pluginSettings === true) {
49
49
  return null;
50
50
  }
@@ -55,7 +55,7 @@ export function setupEngine(hotInstance) {
55
55
  // `engine.hyperformula` or `engine` is the engine class
56
56
  if (typeof engineConfigItem.hyperformula === 'function' || typeof engineConfigItem === 'function') {
57
57
  var _engineConfigItem$hyp;
58
- return registerEngine((_engineConfigItem$hyp = engineConfigItem.hyperformula) != null ? _engineConfigItem$hyp : engineConfigItem, hotSettings, hotInstance);
58
+ return registerEngine((_engineConfigItem$hyp = engineConfigItem.hyperformula) !== null && _engineConfigItem$hyp !== void 0 ? _engineConfigItem$hyp : engineConfigItem, hotSettings, hotInstance);
59
59
 
60
60
  // `engine` is the engine instance
61
61
  } else if (typeof engineConfigItem === 'object' && isUndefined(engineConfigItem.hyperformula)) {
@@ -125,7 +125,7 @@ export function registerEngine(engineClass, hotSettings, hotInstance) {
125
125
  export function getRegisteredHotInstances(engine) {
126
126
  var _engineRegistry$get;
127
127
  const engineRegistry = getEngineRelationshipRegistry();
128
- const hotInstances = engineRegistry.size === 0 ? [] : Array.from((_engineRegistry$get = engineRegistry.get(engine)) != null ? _engineRegistry$get : []);
128
+ const hotInstances = engineRegistry.size === 0 ? [] : Array.from((_engineRegistry$get = engineRegistry.get(engine)) !== null && _engineRegistry$get !== void 0 ? _engineRegistry$get : []);
129
129
  return new Map(hotInstances.map(hot => [hot.getPlugin('formulas').sheetId, hot]));
130
130
  }
131
131
 
@@ -43,10 +43,11 @@ const DEFAULT_SETTINGS = {
43
43
  */
44
44
  exports.DEFAULT_SETTINGS = DEFAULT_SETTINGS;
45
45
  function getEngineSettingsOverrides(hotSettings) {
46
+ var _hotSettings$PLUGIN_K;
46
47
  return {
47
48
  maxColumns: hotSettings.maxColumns,
48
49
  maxRows: hotSettings.maxRows,
49
- language: hotSettings[_formulas.PLUGIN_KEY]?.language?.langCode
50
+ language: (_hotSettings$PLUGIN_K = hotSettings[_formulas.PLUGIN_KEY]) === null || _hotSettings$PLUGIN_K === void 0 || (_hotSettings$PLUGIN_K = _hotSettings$PLUGIN_K.language) === null || _hotSettings$PLUGIN_K === void 0 ? void 0 : _hotSettings$PLUGIN_K.langCode
50
51
  };
51
52
  }
52
53
 
@@ -82,8 +83,9 @@ function cleanEngineSettings(pluginSettings) {
82
83
  * @returns {object} The final engine settings.
83
84
  */
84
85
  function getEngineSettingsWithDefaultsAndOverrides(hotSettings) {
86
+ var _pluginSettings$engin;
85
87
  const pluginSettings = hotSettings[_formulas.PLUGIN_KEY];
86
- const userSettings = cleanEngineSettings(pluginSettings?.engine?.hyperformula ? pluginSettings.engine : {});
88
+ const userSettings = cleanEngineSettings(pluginSettings !== null && pluginSettings !== void 0 && (_pluginSettings$engin = pluginSettings.engine) !== null && _pluginSettings$engin !== void 0 && _pluginSettings$engin.hyperformula ? pluginSettings.engine : {});
87
89
  const overrides = getEngineSettingsOverrides(hotSettings);
88
90
  return {
89
91
  ...DEFAULT_SETTINGS,
@@ -99,8 +101,9 @@ function getEngineSettingsWithDefaultsAndOverrides(hotSettings) {
99
101
  * @returns {object}
100
102
  */
101
103
  function getEngineSettingsWithOverrides(hotSettings) {
104
+ var _pluginSettings$engin2;
102
105
  const pluginSettings = hotSettings[_formulas.PLUGIN_KEY];
103
- const userSettings = cleanEngineSettings(pluginSettings?.engine?.hyperformula ? pluginSettings.engine : {});
106
+ const userSettings = cleanEngineSettings(pluginSettings !== null && pluginSettings !== void 0 && (_pluginSettings$engin2 = pluginSettings.engine) !== null && _pluginSettings$engin2 !== void 0 && _pluginSettings$engin2.hyperformula ? pluginSettings.engine : {});
104
107
  const overrides = getEngineSettingsOverrides(hotSettings);
105
108
  return {
106
109
  ...userSettings,
@@ -34,10 +34,11 @@ export const DEFAULT_SETTINGS = {
34
34
  * @returns {object} Object containing the overriding options.
35
35
  */
36
36
  export function getEngineSettingsOverrides(hotSettings) {
37
+ var _hotSettings$PLUGIN_K;
37
38
  return {
38
39
  maxColumns: hotSettings.maxColumns,
39
40
  maxRows: hotSettings.maxRows,
40
- language: hotSettings[PLUGIN_KEY]?.language?.langCode
41
+ language: (_hotSettings$PLUGIN_K = hotSettings[PLUGIN_KEY]) === null || _hotSettings$PLUGIN_K === void 0 || (_hotSettings$PLUGIN_K = _hotSettings$PLUGIN_K.language) === null || _hotSettings$PLUGIN_K === void 0 ? void 0 : _hotSettings$PLUGIN_K.langCode
41
42
  };
42
43
  }
43
44
 
@@ -73,8 +74,9 @@ function cleanEngineSettings(pluginSettings) {
73
74
  * @returns {object} The final engine settings.
74
75
  */
75
76
  export function getEngineSettingsWithDefaultsAndOverrides(hotSettings) {
77
+ var _pluginSettings$engin;
76
78
  const pluginSettings = hotSettings[PLUGIN_KEY];
77
- const userSettings = cleanEngineSettings(pluginSettings?.engine?.hyperformula ? pluginSettings.engine : {});
79
+ const userSettings = cleanEngineSettings(pluginSettings !== null && pluginSettings !== void 0 && (_pluginSettings$engin = pluginSettings.engine) !== null && _pluginSettings$engin !== void 0 && _pluginSettings$engin.hyperformula ? pluginSettings.engine : {});
78
80
  const overrides = getEngineSettingsOverrides(hotSettings);
79
81
  return {
80
82
  ...DEFAULT_SETTINGS,
@@ -90,8 +92,9 @@ export function getEngineSettingsWithDefaultsAndOverrides(hotSettings) {
90
92
  * @returns {object}
91
93
  */
92
94
  export function getEngineSettingsWithOverrides(hotSettings) {
95
+ var _pluginSettings$engin2;
93
96
  const pluginSettings = hotSettings[PLUGIN_KEY];
94
- const userSettings = cleanEngineSettings(pluginSettings?.engine?.hyperformula ? pluginSettings.engine : {});
97
+ const userSettings = cleanEngineSettings(pluginSettings !== null && pluginSettings !== void 0 && (_pluginSettings$engin2 = pluginSettings.engine) !== null && _pluginSettings$engin2 !== void 0 && _pluginSettings$engin2.hyperformula ? pluginSettings.engine : {});
95
98
  const overrides = getEngineSettingsOverrides(hotSettings);
96
99
  return {
97
100
  ...userSettings,