handsontable 0.0.0-next-7026906-20231107 → 0.0.0-next-7b93b7d-20231107

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 (316) hide show
  1. package/3rdparty/SheetClip/SheetClip.js +2 -2
  2. package/3rdparty/SheetClip/SheetClip.mjs +2 -2
  3. package/3rdparty/autoResize/autoResize.js +2 -2
  4. package/3rdparty/autoResize/autoResize.mjs +2 -2
  5. package/3rdparty/walkontable/src/calculator/viewportColumns.js +108 -85
  6. package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +108 -85
  7. package/3rdparty/walkontable/src/calculator/viewportRows.js +60 -52
  8. package/3rdparty/walkontable/src/calculator/viewportRows.mjs +60 -52
  9. package/3rdparty/walkontable/src/core/clone.js +6 -0
  10. package/3rdparty/walkontable/src/core/clone.mjs +6 -0
  11. package/3rdparty/walkontable/src/event.js +125 -74
  12. package/3rdparty/walkontable/src/event.mjs +125 -74
  13. package/3rdparty/walkontable/src/filter/column.js +16 -0
  14. package/3rdparty/walkontable/src/filter/column.mjs +16 -0
  15. package/3rdparty/walkontable/src/filter/row.js +16 -0
  16. package/3rdparty/walkontable/src/filter/row.mjs +16 -0
  17. package/3rdparty/walkontable/src/overlay/bottom.js +1 -1
  18. package/3rdparty/walkontable/src/overlay/bottom.mjs +1 -1
  19. package/3rdparty/walkontable/src/overlay/top.js +1 -1
  20. package/3rdparty/walkontable/src/overlay/top.mjs +1 -1
  21. package/3rdparty/walkontable/src/renderer/_base.js +12 -5
  22. package/3rdparty/walkontable/src/renderer/_base.mjs +12 -5
  23. package/3rdparty/walkontable/src/renderer/cells.js +6 -2
  24. package/3rdparty/walkontable/src/renderer/cells.mjs +6 -2
  25. package/3rdparty/walkontable/src/renderer/rowHeaders.js +6 -2
  26. package/3rdparty/walkontable/src/renderer/rowHeaders.mjs +6 -2
  27. package/3rdparty/walkontable/src/renderer/rows.js +5 -0
  28. package/3rdparty/walkontable/src/renderer/rows.mjs +5 -0
  29. package/3rdparty/walkontable/src/renderer/table.js +24 -17
  30. package/3rdparty/walkontable/src/renderer/table.mjs +24 -17
  31. package/3rdparty/walkontable/src/scroll.js +2 -2
  32. package/3rdparty/walkontable/src/scroll.mjs +2 -2
  33. package/3rdparty/walkontable/src/selection/border/border.js +1 -1
  34. package/3rdparty/walkontable/src/selection/border/border.mjs +1 -1
  35. package/3rdparty/walkontable/src/settings.js +10 -10
  36. package/3rdparty/walkontable/src/settings.mjs +10 -10
  37. package/3rdparty/walkontable/src/table.js +3 -3
  38. package/3rdparty/walkontable/src/table.mjs +3 -3
  39. package/3rdparty/walkontable/src/utils/column.js +19 -4
  40. package/3rdparty/walkontable/src/utils/column.mjs +19 -4
  41. package/3rdparty/walkontable/src/utils/nodesPool.js +5 -0
  42. package/3rdparty/walkontable/src/utils/nodesPool.mjs +5 -0
  43. package/3rdparty/walkontable/src/utils/orderView/view.js +13 -6
  44. package/3rdparty/walkontable/src/utils/orderView/view.mjs +13 -6
  45. package/3rdparty/walkontable/src/utils/orderView/viewSize.js +9 -6
  46. package/3rdparty/walkontable/src/utils/orderView/viewSize.mjs +9 -6
  47. package/3rdparty/walkontable/src/utils/orderView/viewSizeSet.js +7 -4
  48. package/3rdparty/walkontable/src/utils/orderView/viewSizeSet.mjs +7 -4
  49. package/3rdparty/walkontable/src/utils/row.js +14 -2
  50. package/3rdparty/walkontable/src/utils/row.mjs +14 -2
  51. package/3rdparty/walkontable/src/viewport.js +9 -9
  52. package/3rdparty/walkontable/src/viewport.mjs +9 -9
  53. package/base.js +2 -2
  54. package/base.mjs +2 -2
  55. package/core.js +25 -25
  56. package/core.mjs +25 -25
  57. package/dataMap/dataMap.js +99 -90
  58. package/dataMap/dataMap.mjs +99 -90
  59. package/dataMap/dataSource.js +14 -8
  60. package/dataMap/dataSource.mjs +14 -8
  61. package/dataMap/metaManager/lazyFactoryMap.js +19 -7
  62. package/dataMap/metaManager/lazyFactoryMap.mjs +19 -7
  63. package/dataMap/metaManager/metaLayers/cellMeta.js +8 -3
  64. package/dataMap/metaManager/metaLayers/cellMeta.mjs +8 -3
  65. package/dataMap/metaManager/metaLayers/columnMeta.js +7 -1
  66. package/dataMap/metaManager/metaLayers/columnMeta.mjs +7 -1
  67. package/dataMap/metaManager/metaLayers/globalMeta.js +6 -1
  68. package/dataMap/metaManager/metaLayers/globalMeta.mjs +6 -1
  69. package/dataMap/metaManager/metaLayers/tableMeta.js +6 -2
  70. package/dataMap/metaManager/metaLayers/tableMeta.mjs +6 -2
  71. package/dataMap/metaManager/metaSchema.js +55 -55
  72. package/dataMap/metaManager/metaSchema.mjs +55 -55
  73. package/dataMap/metaManager/mods/dynamicCellMeta.js +7 -2
  74. package/dataMap/metaManager/mods/dynamicCellMeta.mjs +7 -2
  75. package/dataMap/metaManager/mods/extendMetaProperties.js +8 -4
  76. package/dataMap/metaManager/mods/extendMetaProperties.mjs +8 -4
  77. package/dataMap/metaManager/utils.js +2 -2
  78. package/dataMap/metaManager/utils.mjs +2 -2
  79. package/dist/handsontable.css +2 -2
  80. package/dist/handsontable.full.css +2 -2
  81. package/dist/handsontable.full.js +7244 -6347
  82. package/dist/handsontable.full.min.css +2 -2
  83. package/dist/handsontable.full.min.js +120 -120
  84. package/dist/handsontable.js +7243 -6346
  85. package/dist/handsontable.min.css +2 -2
  86. package/dist/handsontable.min.js +28 -28
  87. package/editorManager.js +105 -95
  88. package/editorManager.mjs +105 -95
  89. package/editors/autocompleteEditor/autocompleteEditor.js +47 -46
  90. package/editors/autocompleteEditor/autocompleteEditor.mjs +46 -45
  91. package/editors/baseEditor/baseEditor.js +23 -26
  92. package/editors/baseEditor/baseEditor.mjs +23 -26
  93. package/editors/dateEditor/dateEditor.js +24 -15
  94. package/editors/dateEditor/dateEditor.mjs +24 -15
  95. package/editors/dropdownEditor/dropdownEditor.js +1 -1
  96. package/editors/dropdownEditor/dropdownEditor.mjs +1 -1
  97. package/editors/handsontableEditor/handsontableEditor.js +4 -4
  98. package/editors/handsontableEditor/handsontableEditor.mjs +4 -4
  99. package/editors/textEditor/textEditor.js +23 -17
  100. package/editors/textEditor/textEditor.mjs +24 -18
  101. package/eventManager.js +8 -0
  102. package/eventManager.mjs +8 -0
  103. package/helpers/array.js +2 -2
  104. package/helpers/array.mjs +2 -2
  105. package/helpers/dom/element.js +7 -7
  106. package/helpers/dom/element.mjs +7 -7
  107. package/helpers/function.js +1 -1
  108. package/helpers/function.mjs +1 -1
  109. package/helpers/mixed.js +1 -1
  110. package/helpers/mixed.mjs +1 -1
  111. package/helpers/object.js +4 -4
  112. package/helpers/object.mjs +4 -4
  113. package/helpers/string.js +1 -1
  114. package/helpers/string.mjs +1 -1
  115. package/package.json +1 -1
  116. package/pluginHooks.d.ts +0 -2
  117. package/pluginHooks.js +12 -3
  118. package/pluginHooks.mjs +12 -3
  119. package/plugins/autoColumnSize/autoColumnSize.js +141 -130
  120. package/plugins/autoColumnSize/autoColumnSize.mjs +140 -129
  121. package/plugins/autoRowSize/autoRowSize.js +112 -125
  122. package/plugins/autoRowSize/autoRowSize.mjs +110 -123
  123. package/plugins/autofill/autofill.js +97 -102
  124. package/plugins/autofill/autofill.mjs +96 -101
  125. package/plugins/base/base.js +57 -22
  126. package/plugins/base/base.mjs +56 -22
  127. package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +29 -24
  128. package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +28 -23
  129. package/plugins/collapsibleColumns/collapsibleColumns.js +104 -107
  130. package/plugins/collapsibleColumns/collapsibleColumns.mjs +102 -104
  131. package/plugins/columnSorting/columnSorting.js +105 -98
  132. package/plugins/columnSorting/columnSorting.mjs +104 -97
  133. package/plugins/columnSorting/columnStatesManager.js +12 -6
  134. package/plugins/columnSorting/columnStatesManager.mjs +12 -6
  135. package/plugins/columnSummary/columnSummary.js +71 -58
  136. package/plugins/columnSummary/columnSummary.mjs +70 -57
  137. package/plugins/columnSummary/endpoints.js +20 -14
  138. package/plugins/columnSummary/endpoints.mjs +20 -14
  139. package/plugins/comments/commentEditor.js +30 -2
  140. package/plugins/comments/commentEditor.mjs +30 -2
  141. package/plugins/comments/comments.js +158 -169
  142. package/plugins/comments/comments.mjs +157 -168
  143. package/plugins/comments/displaySwitch.js +7 -3
  144. package/plugins/comments/displaySwitch.mjs +7 -3
  145. package/plugins/contextMenu/commandExecutor.js +15 -2
  146. package/plugins/contextMenu/commandExecutor.mjs +15 -2
  147. package/plugins/contextMenu/contextMenu.js +91 -101
  148. package/plugins/contextMenu/contextMenu.mjs +90 -100
  149. package/plugins/contextMenu/itemsFactory.js +19 -4
  150. package/plugins/contextMenu/itemsFactory.mjs +19 -4
  151. package/plugins/contextMenu/menu/cursor.js +36 -0
  152. package/plugins/contextMenu/menu/cursor.mjs +36 -0
  153. package/plugins/contextMenu/menu/menu.js +57 -5
  154. package/plugins/contextMenu/menu/menu.mjs +57 -5
  155. package/plugins/copyPaste/copyPaste.js +74 -75
  156. package/plugins/copyPaste/copyPaste.mjs +74 -75
  157. package/plugins/customBorders/customBorders.js +49 -48
  158. package/plugins/customBorders/customBorders.mjs +48 -47
  159. package/plugins/dragToScroll/dragToScroll.js +50 -54
  160. package/plugins/dragToScroll/dragToScroll.mjs +49 -52
  161. package/plugins/dropdownMenu/dropdownMenu.js +132 -129
  162. package/plugins/dropdownMenu/dropdownMenu.mjs +132 -129
  163. package/plugins/exportFile/dataProvider.js +7 -2
  164. package/plugins/exportFile/dataProvider.mjs +7 -2
  165. package/plugins/exportFile/exportFile.js +1 -1
  166. package/plugins/exportFile/exportFile.mjs +1 -1
  167. package/plugins/exportFile/types/_base.js +14 -6
  168. package/plugins/exportFile/types/_base.mjs +14 -6
  169. package/plugins/filters/component/actionBar.js +9 -0
  170. package/plugins/filters/component/actionBar.mjs +9 -0
  171. package/plugins/filters/component/condition.js +13 -0
  172. package/plugins/filters/component/condition.mjs +13 -0
  173. package/plugins/filters/component/operators.js +9 -0
  174. package/plugins/filters/component/operators.mjs +9 -0
  175. package/plugins/filters/component/value.js +9 -0
  176. package/plugins/filters/component/value.mjs +9 -0
  177. package/plugins/filters/conditionCollection.js +9 -4
  178. package/plugins/filters/conditionCollection.mjs +9 -4
  179. package/plugins/filters/conditionUpdateObserver.js +53 -42
  180. package/plugins/filters/conditionUpdateObserver.mjs +53 -42
  181. package/plugins/filters/dataFilter.js +9 -3
  182. package/plugins/filters/dataFilter.mjs +9 -3
  183. package/plugins/filters/filters.js +184 -189
  184. package/plugins/filters/filters.mjs +182 -187
  185. package/plugins/filters/ui/_base.js +1 -1
  186. package/plugins/filters/ui/_base.mjs +1 -1
  187. package/plugins/filters/utils.js +1 -1
  188. package/plugins/filters/utils.mjs +1 -1
  189. package/plugins/formulas/engine/settings.js +1 -1
  190. package/plugins/formulas/engine/settings.mjs +1 -1
  191. package/plugins/formulas/formulas.js +684 -602
  192. package/plugins/formulas/formulas.mjs +682 -600
  193. package/plugins/hiddenColumns/hiddenColumns.js +174 -169
  194. package/plugins/hiddenColumns/hiddenColumns.mjs +173 -168
  195. package/plugins/hiddenRows/hiddenRows.js +170 -165
  196. package/plugins/hiddenRows/hiddenRows.mjs +169 -164
  197. package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.js +1 -1
  198. package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.mjs +1 -1
  199. package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.js +1 -1
  200. package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.mjs +1 -1
  201. package/plugins/manualColumnFreeze/manualColumnFreeze.js +67 -54
  202. package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +64 -51
  203. package/plugins/manualColumnMove/manualColumnMove.js +287 -232
  204. package/plugins/manualColumnMove/manualColumnMove.mjs +286 -231
  205. package/plugins/manualColumnMove/ui/_base.js +9 -3
  206. package/plugins/manualColumnMove/ui/_base.mjs +9 -3
  207. package/plugins/manualColumnResize/manualColumnResize.js +291 -246
  208. package/plugins/manualColumnResize/manualColumnResize.mjs +290 -244
  209. package/plugins/manualRowMove/manualRowMove.js +223 -208
  210. package/plugins/manualRowMove/manualRowMove.mjs +222 -207
  211. package/plugins/manualRowMove/ui/_base.js +10 -5
  212. package/plugins/manualRowMove/ui/_base.mjs +10 -5
  213. package/plugins/manualRowResize/manualRowResize.js +254 -209
  214. package/plugins/manualRowResize/manualRowResize.mjs +253 -207
  215. package/plugins/mergeCells/calculations/autofill.js +9 -3
  216. package/plugins/mergeCells/calculations/autofill.mjs +9 -3
  217. package/plugins/mergeCells/calculations/selection.js +10 -4
  218. package/plugins/mergeCells/calculations/selection.mjs +10 -4
  219. package/plugins/mergeCells/cellCoords.js +16 -6
  220. package/plugins/mergeCells/cellCoords.mjs +16 -6
  221. package/plugins/mergeCells/cellsCollection.js +10 -4
  222. package/plugins/mergeCells/cellsCollection.mjs +10 -4
  223. package/plugins/mergeCells/mergeCells.js +582 -502
  224. package/plugins/mergeCells/mergeCells.mjs +580 -500
  225. package/plugins/multiColumnSorting/multiColumnSorting.js +13 -10
  226. package/plugins/multiColumnSorting/multiColumnSorting.mjs +13 -10
  227. package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +16 -28
  228. package/plugins/multipleSelectionHandles/multipleSelectionHandles.mjs +16 -27
  229. package/plugins/nestedHeaders/nestedHeaders.js +542 -499
  230. package/plugins/nestedHeaders/nestedHeaders.mjs +554 -511
  231. package/plugins/nestedHeaders/stateManager/index.js +1 -1
  232. package/plugins/nestedHeaders/stateManager/index.mjs +1 -1
  233. package/plugins/nestedRows/data/dataManager.js +21 -15
  234. package/plugins/nestedRows/data/dataManager.mjs +21 -15
  235. package/plugins/nestedRows/nestedRows.js +326 -278
  236. package/plugins/nestedRows/nestedRows.mjs +325 -277
  237. package/plugins/nestedRows/ui/_base.js +7 -1
  238. package/plugins/nestedRows/ui/_base.mjs +7 -1
  239. package/plugins/nestedRows/ui/collapsing.js +2 -2
  240. package/plugins/nestedRows/ui/collapsing.mjs +2 -2
  241. package/plugins/nestedRows/ui/contextMenu.js +28 -18
  242. package/plugins/nestedRows/ui/contextMenu.mjs +28 -18
  243. package/plugins/nestedRows/utils/rowMoveController.js +12 -4
  244. package/plugins/nestedRows/utils/rowMoveController.mjs +12 -4
  245. package/plugins/persistentState/persistentState.js +14 -11
  246. package/plugins/persistentState/persistentState.mjs +14 -11
  247. package/plugins/persistentState/storage.js +11 -6
  248. package/plugins/persistentState/storage.mjs +11 -6
  249. package/plugins/registry.js +2 -2
  250. package/plugins/registry.mjs +2 -2
  251. package/plugins/search/search.js +57 -46
  252. package/plugins/search/search.mjs +56 -45
  253. package/plugins/touchScroll/touchScroll.js +102 -100
  254. package/plugins/touchScroll/touchScroll.mjs +100 -98
  255. package/plugins/trimRows/trimRows.js +33 -28
  256. package/plugins/trimRows/trimRows.mjs +32 -27
  257. package/plugins/undoRedo/undoRedo.js +2 -2
  258. package/plugins/undoRedo/undoRedo.mjs +2 -2
  259. package/renderers/autocompleteRenderer/autocompleteRenderer.js +11 -11
  260. package/renderers/autocompleteRenderer/autocompleteRenderer.mjs +11 -11
  261. package/renderers/baseRenderer/baseRenderer.js +2 -2
  262. package/renderers/baseRenderer/baseRenderer.mjs +2 -2
  263. package/renderers/checkboxRenderer/checkboxRenderer.js +23 -23
  264. package/renderers/checkboxRenderer/checkboxRenderer.mjs +23 -23
  265. package/renderers/dateRenderer/dateRenderer.js +4 -4
  266. package/renderers/dateRenderer/dateRenderer.mjs +4 -4
  267. package/renderers/handsontableRenderer/handsontableRenderer.js +4 -4
  268. package/renderers/handsontableRenderer/handsontableRenderer.mjs +4 -4
  269. package/renderers/htmlRenderer/htmlRenderer.js +4 -4
  270. package/renderers/htmlRenderer/htmlRenderer.mjs +4 -4
  271. package/renderers/numericRenderer/numericRenderer.js +3 -3
  272. package/renderers/numericRenderer/numericRenderer.mjs +3 -3
  273. package/renderers/passwordRenderer/passwordRenderer.js +3 -3
  274. package/renderers/passwordRenderer/passwordRenderer.mjs +3 -3
  275. package/renderers/selectRenderer/selectRenderer.js +4 -4
  276. package/renderers/selectRenderer/selectRenderer.mjs +4 -4
  277. package/renderers/textRenderer/textRenderer.js +5 -5
  278. package/renderers/textRenderer/textRenderer.mjs +5 -5
  279. package/renderers/timeRenderer/timeRenderer.js +3 -3
  280. package/renderers/timeRenderer/timeRenderer.mjs +3 -3
  281. package/selection/range.js +12 -2
  282. package/selection/range.mjs +12 -2
  283. package/selection/selection.js +3 -3
  284. package/selection/selection.mjs +3 -3
  285. package/tableView.js +208 -200
  286. package/tableView.mjs +208 -200
  287. package/translations/changesObservable/utils.js +2 -2
  288. package/translations/changesObservable/utils.mjs +2 -2
  289. package/translations/indexMapper.js +25 -22
  290. package/translations/indexMapper.mjs +25 -22
  291. package/translations/mapCollections/aggregatedCollection.js +8 -2
  292. package/translations/mapCollections/aggregatedCollection.mjs +8 -2
  293. package/translations/mapCollections/mapCollection.js +5 -2
  294. package/translations/mapCollections/mapCollection.mjs +5 -2
  295. package/translations/maps/indexMap.js +6 -1
  296. package/translations/maps/indexMap.mjs +6 -1
  297. package/translations/maps/utils/physicallyIndexed.js +2 -2
  298. package/translations/maps/utils/physicallyIndexed.mjs +2 -2
  299. package/utils/dataStructures/linkedList.js +10 -6
  300. package/utils/dataStructures/linkedList.mjs +10 -6
  301. package/utils/dataStructures/queue.js +1 -1
  302. package/utils/dataStructures/queue.mjs +1 -1
  303. package/utils/dataStructures/stack.js +1 -1
  304. package/utils/dataStructures/stack.mjs +1 -1
  305. package/utils/ghostTable.js +2 -2
  306. package/utils/ghostTable.mjs +2 -2
  307. package/utils/interval.js +73 -36
  308. package/utils/interval.mjs +73 -36
  309. package/utils/parseTable.js +1 -1
  310. package/utils/parseTable.mjs +1 -1
  311. package/validators/autocompleteValidator/autocompleteValidator.js +1 -1
  312. package/validators/autocompleteValidator/autocompleteValidator.mjs +1 -1
  313. package/validators/dateValidator/dateValidator.js +1 -1
  314. package/validators/dateValidator/dateValidator.mjs +1 -1
  315. package/validators/numericValidator/numericValidator.js +1 -1
  316. package/validators/numericValidator/numericValidator.mjs +1 -1
package/core.js CHANGED
@@ -1242,7 +1242,7 @@ function Core(rootElement, userSettings) {
1242
1242
  /* eslint-disable no-continue */
1243
1243
  continue;
1244
1244
  }
1245
- if ((changes[i][2] === null || changes[i][2] === void 0) && (changes[i][3] === null || changes[i][3] === void 0)) {
1245
+ if ((changes[i][2] === null || changes[i][2] === undefined) && (changes[i][3] === null || changes[i][3] === undefined)) {
1246
1246
  /* eslint-disable no-continue */
1247
1247
  continue;
1248
1248
  }
@@ -1250,7 +1250,7 @@ function Core(rootElement, userSettings) {
1250
1250
  while (changes[i][0] > instance.countRows() - 1) {
1251
1251
  const {
1252
1252
  delta: numberOfCreatedRows
1253
- } = datamap.createRow(void 0, void 0, {
1253
+ } = datamap.createRow(undefined, undefined, {
1254
1254
  source
1255
1255
  });
1256
1256
  if (numberOfCreatedRows === 0) {
@@ -1263,7 +1263,7 @@ function Core(rootElement, userSettings) {
1263
1263
  while (datamap.propToCol(changes[i][1]) > instance.countCols() - 1) {
1264
1264
  const {
1265
1265
  delta: numberOfCreatedColumns
1266
- } = datamap.createCol(void 0, void 0, {
1266
+ } = datamap.createCol(undefined, undefined, {
1267
1267
  source
1268
1268
  });
1269
1269
  if (numberOfCreatedColumns === 0) {
@@ -2359,11 +2359,11 @@ function Core(rootElement, userSettings) {
2359
2359
  }
2360
2360
 
2361
2361
  // Load data or create data map
2362
- if (settings.data === void 0 && tableMeta.data === void 0) {
2362
+ if (settings.data === undefined && tableMeta.data === undefined) {
2363
2363
  dataUpdateFunction(null, 'updateSettings'); // data source created just now
2364
- } else if (settings.data !== void 0) {
2364
+ } else if (settings.data !== undefined) {
2365
2365
  dataUpdateFunction(settings.data, 'updateSettings'); // data source given as option
2366
- } else if (settings.columns !== void 0) {
2366
+ } else if (settings.columns !== undefined) {
2367
2367
  datamap.createMap();
2368
2368
 
2369
2369
  // The `column` property has changed - dataset may be expanded or narrowed down. The `loadData` do the same.
@@ -2378,7 +2378,7 @@ function Core(rootElement, userSettings) {
2378
2378
  }
2379
2379
 
2380
2380
  // Clear cell meta cache
2381
- if (settings.cell !== void 0 || settings.cells !== void 0 || settings.columns !== void 0) {
2381
+ if (settings.cell !== undefined || settings.cells !== undefined || settings.columns !== undefined) {
2382
2382
  metaManager.clearCache();
2383
2383
  }
2384
2384
  if (clen > 0) {
@@ -2421,7 +2421,7 @@ function Core(rootElement, userSettings) {
2421
2421
  instance.rootElement.style.height = '';
2422
2422
  instance.rootElement.style.overflow = '';
2423
2423
  }
2424
- } else if (height !== void 0) {
2424
+ } else if (height !== undefined) {
2425
2425
  instance.rootElement.style.height = isNaN(height) ? `${height}` : `${height}px`;
2426
2426
  instance.rootElement.style.overflow = 'hidden';
2427
2427
  }
@@ -2447,7 +2447,7 @@ function Core(rootElement, userSettings) {
2447
2447
  instance.view._wt.wtOverlays.adjustElementsSize();
2448
2448
  editorManager.unlockEditor();
2449
2449
  }
2450
- if (!init && instance.view && (currentHeight === '' || height === '' || height === void 0) && currentHeight !== height) {
2450
+ if (!init && instance.view && (currentHeight === '' || height === '' || height === undefined) && currentHeight !== height) {
2451
2451
  instance.view._wt.wtOverlays.updateMainScrollableElements();
2452
2452
  }
2453
2453
  };
@@ -2810,7 +2810,7 @@ function Core(rootElement, userSettings) {
2810
2810
  */
2811
2811
  this.getSourceData = function (row, column, row2, column2) {
2812
2812
  let data;
2813
- if (row === void 0) {
2813
+ if (row === undefined) {
2814
2814
  data = dataSource.getData();
2815
2815
  } else {
2816
2816
  data = dataSource.getByRange(instance._createCellCoords(row, column), instance._createCellCoords(row2, column2));
@@ -2836,7 +2836,7 @@ function Core(rootElement, userSettings) {
2836
2836
  */
2837
2837
  this.getSourceDataArray = function (row, column, row2, column2) {
2838
2838
  let data;
2839
- if (row === void 0) {
2839
+ if (row === undefined) {
2840
2840
  data = dataSource.getData(true);
2841
2841
  } else {
2842
2842
  data = dataSource.getByRange(instance._createCellCoords(row, column), instance._createCellCoords(row2, column2), true);
@@ -2956,15 +2956,15 @@ function Core(rootElement, userSettings) {
2956
2956
  * @returns {string} Cell type (e.q: `'mixed'`, `'text'`, `'numeric'`, `'autocomplete'`).
2957
2957
  */
2958
2958
  this.getDataType = function (rowFrom, columnFrom, rowTo, columnTo) {
2959
- const coords = rowFrom === void 0 ? [0, 0, this.countRows(), this.countCols()] : [rowFrom, columnFrom, rowTo, columnTo];
2959
+ const coords = rowFrom === undefined ? [0, 0, this.countRows(), this.countCols()] : [rowFrom, columnFrom, rowTo, columnTo];
2960
2960
  const [rowStart, columnStart] = coords;
2961
2961
  let [,, rowEnd, columnEnd] = coords;
2962
2962
  let previousType = null;
2963
2963
  let currentType = null;
2964
- if (rowEnd === void 0) {
2964
+ if (rowEnd === undefined) {
2965
2965
  rowEnd = rowStart;
2966
2966
  }
2967
- if (columnEnd === void 0) {
2967
+ if (columnEnd === undefined) {
2968
2968
  columnEnd = columnStart;
2969
2969
  }
2970
2970
  let type = 'mixed';
@@ -3362,15 +3362,15 @@ function Core(rootElement, userSettings) {
3362
3362
  this.getRowHeader = function (row) {
3363
3363
  let rowHeader = tableMeta.rowHeaders;
3364
3364
  let physicalRow = row;
3365
- if (physicalRow !== void 0) {
3365
+ if (physicalRow !== undefined) {
3366
3366
  physicalRow = instance.runHooks('modifyRowHeader', physicalRow);
3367
3367
  }
3368
- if (physicalRow === void 0) {
3368
+ if (physicalRow === undefined) {
3369
3369
  rowHeader = [];
3370
3370
  (0, _number.rangeEach)(instance.countRows() - 1, i => {
3371
3371
  rowHeader.push(instance.getRowHeader(i));
3372
3372
  });
3373
- } else if (Array.isArray(rowHeader) && rowHeader[physicalRow] !== void 0) {
3373
+ } else if (Array.isArray(rowHeader) && rowHeader[physicalRow] !== undefined) {
3374
3374
  rowHeader = rowHeader[physicalRow];
3375
3375
  } else if ((0, _function.isFunction)(rowHeader)) {
3376
3376
  rowHeader = rowHeader(physicalRow);
@@ -3399,7 +3399,7 @@ function Core(rootElement, userSettings) {
3399
3399
  * @returns {boolean} `true` if the instance has the column headers enabled, `false` otherwise.
3400
3400
  */
3401
3401
  this.hasColHeaders = function () {
3402
- if (tableMeta.colHeaders !== void 0 && tableMeta.colHeaders !== null) {
3402
+ if (tableMeta.colHeaders !== undefined && tableMeta.colHeaders !== null) {
3403
3403
  // Polymer has empty value = null
3404
3404
  return !!tableMeta.colHeaders;
3405
3405
  }
@@ -3453,7 +3453,7 @@ function Core(rootElement, userSettings) {
3453
3453
  this.getColHeader = function (column) {
3454
3454
  let headerLevel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1;
3455
3455
  const columnIndex = instance.runHooks('modifyColHeader', column);
3456
- if (columnIndex === void 0) {
3456
+ if (columnIndex === undefined) {
3457
3457
  const out = [];
3458
3458
  const ilen = instance.countCols();
3459
3459
  for (let i = 0; i < ilen; i++) {
@@ -3481,7 +3481,7 @@ function Core(rootElement, userSettings) {
3481
3481
  result = tableMeta.columns(prop).title;
3482
3482
  } else if (tableMeta.columns && tableMeta.columns[physicalColumn] && tableMeta.columns[physicalColumn].title) {
3483
3483
  result = tableMeta.columns[physicalColumn].title;
3484
- } else if (Array.isArray(tableMeta.colHeaders) && tableMeta.colHeaders[physicalColumn] !== void 0) {
3484
+ } else if (Array.isArray(tableMeta.colHeaders) && tableMeta.colHeaders[physicalColumn] !== undefined) {
3485
3485
  result = tableMeta.colHeaders[physicalColumn];
3486
3486
  } else if ((0, _function.isFunction)(tableMeta.colHeaders)) {
3487
3487
  result = tableMeta.colHeaders(physicalColumn);
@@ -3510,10 +3510,10 @@ function Core(rootElement, userSettings) {
3510
3510
  const cellProperties = instance.getCellMeta(0, col);
3511
3511
  width = cellProperties.width;
3512
3512
  }
3513
- if (width === void 0 || width === tableMeta.width) {
3513
+ if (width === undefined || width === tableMeta.width) {
3514
3514
  width = tableMeta.colWidths;
3515
3515
  }
3516
- if (width !== void 0 && width !== null) {
3516
+ if (width !== undefined && width !== null) {
3517
3517
  switch (typeof width) {
3518
3518
  case 'object':
3519
3519
  // array
@@ -3544,7 +3544,7 @@ function Core(rootElement, userSettings) {
3544
3544
  this.getColWidth = function (column) {
3545
3545
  let width = instance._getColWidthFromSettings(column);
3546
3546
  width = instance.runHooks('modifyColWidth', width, column);
3547
- if (width === void 0) {
3547
+ if (width === undefined) {
3548
3548
  width = _src.ViewportColumnsCalculator.DEFAULT_WIDTH;
3549
3549
  }
3550
3550
  return width;
@@ -3563,11 +3563,11 @@ function Core(rootElement, userSettings) {
3563
3563
  // let cellProperties = instance.getCellMeta(row, 0);
3564
3564
  // let height = cellProperties.height;
3565
3565
  //
3566
- // if (height === void 0 || height === tableMeta.height) {
3566
+ // if (height === undefined || height === tableMeta.height) {
3567
3567
  // height = cellProperties.rowHeights;
3568
3568
  // }
3569
3569
  let height = tableMeta.rowHeights;
3570
- if (height !== void 0 && height !== null) {
3570
+ if (height !== undefined && height !== null) {
3571
3571
  switch (typeof height) {
3572
3572
  case 'object':
3573
3573
  // array
package/core.mjs CHANGED
@@ -1237,7 +1237,7 @@ export default function Core(rootElement, userSettings) {
1237
1237
  /* eslint-disable no-continue */
1238
1238
  continue;
1239
1239
  }
1240
- if ((changes[i][2] === null || changes[i][2] === void 0) && (changes[i][3] === null || changes[i][3] === void 0)) {
1240
+ if ((changes[i][2] === null || changes[i][2] === undefined) && (changes[i][3] === null || changes[i][3] === undefined)) {
1241
1241
  /* eslint-disable no-continue */
1242
1242
  continue;
1243
1243
  }
@@ -1245,7 +1245,7 @@ export default function Core(rootElement, userSettings) {
1245
1245
  while (changes[i][0] > instance.countRows() - 1) {
1246
1246
  const {
1247
1247
  delta: numberOfCreatedRows
1248
- } = datamap.createRow(void 0, void 0, {
1248
+ } = datamap.createRow(undefined, undefined, {
1249
1249
  source
1250
1250
  });
1251
1251
  if (numberOfCreatedRows === 0) {
@@ -1258,7 +1258,7 @@ export default function Core(rootElement, userSettings) {
1258
1258
  while (datamap.propToCol(changes[i][1]) > instance.countCols() - 1) {
1259
1259
  const {
1260
1260
  delta: numberOfCreatedColumns
1261
- } = datamap.createCol(void 0, void 0, {
1261
+ } = datamap.createCol(undefined, undefined, {
1262
1262
  source
1263
1263
  });
1264
1264
  if (numberOfCreatedColumns === 0) {
@@ -2354,11 +2354,11 @@ export default function Core(rootElement, userSettings) {
2354
2354
  }
2355
2355
 
2356
2356
  // Load data or create data map
2357
- if (settings.data === void 0 && tableMeta.data === void 0) {
2357
+ if (settings.data === undefined && tableMeta.data === undefined) {
2358
2358
  dataUpdateFunction(null, 'updateSettings'); // data source created just now
2359
- } else if (settings.data !== void 0) {
2359
+ } else if (settings.data !== undefined) {
2360
2360
  dataUpdateFunction(settings.data, 'updateSettings'); // data source given as option
2361
- } else if (settings.columns !== void 0) {
2361
+ } else if (settings.columns !== undefined) {
2362
2362
  datamap.createMap();
2363
2363
 
2364
2364
  // The `column` property has changed - dataset may be expanded or narrowed down. The `loadData` do the same.
@@ -2373,7 +2373,7 @@ export default function Core(rootElement, userSettings) {
2373
2373
  }
2374
2374
 
2375
2375
  // Clear cell meta cache
2376
- if (settings.cell !== void 0 || settings.cells !== void 0 || settings.columns !== void 0) {
2376
+ if (settings.cell !== undefined || settings.cells !== undefined || settings.columns !== undefined) {
2377
2377
  metaManager.clearCache();
2378
2378
  }
2379
2379
  if (clen > 0) {
@@ -2416,7 +2416,7 @@ export default function Core(rootElement, userSettings) {
2416
2416
  instance.rootElement.style.height = '';
2417
2417
  instance.rootElement.style.overflow = '';
2418
2418
  }
2419
- } else if (height !== void 0) {
2419
+ } else if (height !== undefined) {
2420
2420
  instance.rootElement.style.height = isNaN(height) ? `${height}` : `${height}px`;
2421
2421
  instance.rootElement.style.overflow = 'hidden';
2422
2422
  }
@@ -2442,7 +2442,7 @@ export default function Core(rootElement, userSettings) {
2442
2442
  instance.view._wt.wtOverlays.adjustElementsSize();
2443
2443
  editorManager.unlockEditor();
2444
2444
  }
2445
- if (!init && instance.view && (currentHeight === '' || height === '' || height === void 0) && currentHeight !== height) {
2445
+ if (!init && instance.view && (currentHeight === '' || height === '' || height === undefined) && currentHeight !== height) {
2446
2446
  instance.view._wt.wtOverlays.updateMainScrollableElements();
2447
2447
  }
2448
2448
  };
@@ -2805,7 +2805,7 @@ export default function Core(rootElement, userSettings) {
2805
2805
  */
2806
2806
  this.getSourceData = function (row, column, row2, column2) {
2807
2807
  let data;
2808
- if (row === void 0) {
2808
+ if (row === undefined) {
2809
2809
  data = dataSource.getData();
2810
2810
  } else {
2811
2811
  data = dataSource.getByRange(instance._createCellCoords(row, column), instance._createCellCoords(row2, column2));
@@ -2831,7 +2831,7 @@ export default function Core(rootElement, userSettings) {
2831
2831
  */
2832
2832
  this.getSourceDataArray = function (row, column, row2, column2) {
2833
2833
  let data;
2834
- if (row === void 0) {
2834
+ if (row === undefined) {
2835
2835
  data = dataSource.getData(true);
2836
2836
  } else {
2837
2837
  data = dataSource.getByRange(instance._createCellCoords(row, column), instance._createCellCoords(row2, column2), true);
@@ -2951,15 +2951,15 @@ export default function Core(rootElement, userSettings) {
2951
2951
  * @returns {string} Cell type (e.q: `'mixed'`, `'text'`, `'numeric'`, `'autocomplete'`).
2952
2952
  */
2953
2953
  this.getDataType = function (rowFrom, columnFrom, rowTo, columnTo) {
2954
- const coords = rowFrom === void 0 ? [0, 0, this.countRows(), this.countCols()] : [rowFrom, columnFrom, rowTo, columnTo];
2954
+ const coords = rowFrom === undefined ? [0, 0, this.countRows(), this.countCols()] : [rowFrom, columnFrom, rowTo, columnTo];
2955
2955
  const [rowStart, columnStart] = coords;
2956
2956
  let [,, rowEnd, columnEnd] = coords;
2957
2957
  let previousType = null;
2958
2958
  let currentType = null;
2959
- if (rowEnd === void 0) {
2959
+ if (rowEnd === undefined) {
2960
2960
  rowEnd = rowStart;
2961
2961
  }
2962
- if (columnEnd === void 0) {
2962
+ if (columnEnd === undefined) {
2963
2963
  columnEnd = columnStart;
2964
2964
  }
2965
2965
  let type = 'mixed';
@@ -3357,15 +3357,15 @@ export default function Core(rootElement, userSettings) {
3357
3357
  this.getRowHeader = function (row) {
3358
3358
  let rowHeader = tableMeta.rowHeaders;
3359
3359
  let physicalRow = row;
3360
- if (physicalRow !== void 0) {
3360
+ if (physicalRow !== undefined) {
3361
3361
  physicalRow = instance.runHooks('modifyRowHeader', physicalRow);
3362
3362
  }
3363
- if (physicalRow === void 0) {
3363
+ if (physicalRow === undefined) {
3364
3364
  rowHeader = [];
3365
3365
  rangeEach(instance.countRows() - 1, i => {
3366
3366
  rowHeader.push(instance.getRowHeader(i));
3367
3367
  });
3368
- } else if (Array.isArray(rowHeader) && rowHeader[physicalRow] !== void 0) {
3368
+ } else if (Array.isArray(rowHeader) && rowHeader[physicalRow] !== undefined) {
3369
3369
  rowHeader = rowHeader[physicalRow];
3370
3370
  } else if (isFunction(rowHeader)) {
3371
3371
  rowHeader = rowHeader(physicalRow);
@@ -3394,7 +3394,7 @@ export default function Core(rootElement, userSettings) {
3394
3394
  * @returns {boolean} `true` if the instance has the column headers enabled, `false` otherwise.
3395
3395
  */
3396
3396
  this.hasColHeaders = function () {
3397
- if (tableMeta.colHeaders !== void 0 && tableMeta.colHeaders !== null) {
3397
+ if (tableMeta.colHeaders !== undefined && tableMeta.colHeaders !== null) {
3398
3398
  // Polymer has empty value = null
3399
3399
  return !!tableMeta.colHeaders;
3400
3400
  }
@@ -3448,7 +3448,7 @@ export default function Core(rootElement, userSettings) {
3448
3448
  this.getColHeader = function (column) {
3449
3449
  let headerLevel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1;
3450
3450
  const columnIndex = instance.runHooks('modifyColHeader', column);
3451
- if (columnIndex === void 0) {
3451
+ if (columnIndex === undefined) {
3452
3452
  const out = [];
3453
3453
  const ilen = instance.countCols();
3454
3454
  for (let i = 0; i < ilen; i++) {
@@ -3476,7 +3476,7 @@ export default function Core(rootElement, userSettings) {
3476
3476
  result = tableMeta.columns(prop).title;
3477
3477
  } else if (tableMeta.columns && tableMeta.columns[physicalColumn] && tableMeta.columns[physicalColumn].title) {
3478
3478
  result = tableMeta.columns[physicalColumn].title;
3479
- } else if (Array.isArray(tableMeta.colHeaders) && tableMeta.colHeaders[physicalColumn] !== void 0) {
3479
+ } else if (Array.isArray(tableMeta.colHeaders) && tableMeta.colHeaders[physicalColumn] !== undefined) {
3480
3480
  result = tableMeta.colHeaders[physicalColumn];
3481
3481
  } else if (isFunction(tableMeta.colHeaders)) {
3482
3482
  result = tableMeta.colHeaders(physicalColumn);
@@ -3505,10 +3505,10 @@ export default function Core(rootElement, userSettings) {
3505
3505
  const cellProperties = instance.getCellMeta(0, col);
3506
3506
  width = cellProperties.width;
3507
3507
  }
3508
- if (width === void 0 || width === tableMeta.width) {
3508
+ if (width === undefined || width === tableMeta.width) {
3509
3509
  width = tableMeta.colWidths;
3510
3510
  }
3511
- if (width !== void 0 && width !== null) {
3511
+ if (width !== undefined && width !== null) {
3512
3512
  switch (typeof width) {
3513
3513
  case 'object':
3514
3514
  // array
@@ -3539,7 +3539,7 @@ export default function Core(rootElement, userSettings) {
3539
3539
  this.getColWidth = function (column) {
3540
3540
  let width = instance._getColWidthFromSettings(column);
3541
3541
  width = instance.runHooks('modifyColWidth', width, column);
3542
- if (width === void 0) {
3542
+ if (width === undefined) {
3543
3543
  width = ViewportColumnsCalculator.DEFAULT_WIDTH;
3544
3544
  }
3545
3545
  return width;
@@ -3558,11 +3558,11 @@ export default function Core(rootElement, userSettings) {
3558
3558
  // let cellProperties = instance.getCellMeta(row, 0);
3559
3559
  // let height = cellProperties.height;
3560
3560
  //
3561
- // if (height === void 0 || height === tableMeta.height) {
3561
+ // if (height === undefined || height === tableMeta.height) {
3562
3562
  // height = cellProperties.rowHeights;
3563
3563
  // }
3564
3564
  let height = tableMeta.rowHeights;
3565
- if (height !== void 0 && height !== null) {
3565
+ if (height !== undefined && height !== null) {
3566
3566
  switch (typeof height) {
3567
3567
  case 'object':
3568
3568
  // array