handsontable 0.0.0-next-53a190b-20240403 → 0.0.0-next-5a535ed-20240403

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 (284) hide show
  1. package/3rdparty/walkontable/src/calculator/viewportColumns.js +17 -12
  2. package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +17 -12
  3. package/3rdparty/walkontable/src/calculator/viewportRows.js +15 -10
  4. package/3rdparty/walkontable/src/calculator/viewportRows.mjs +15 -10
  5. package/3rdparty/walkontable/src/cell/coords.js +17 -12
  6. package/3rdparty/walkontable/src/cell/coords.mjs +17 -12
  7. package/3rdparty/walkontable/src/cell/range.d.ts +1 -2
  8. package/3rdparty/walkontable/src/cell/range.js +28 -40
  9. package/3rdparty/walkontable/src/cell/range.mjs +28 -40
  10. package/3rdparty/walkontable/src/core/_base.js +1 -1
  11. package/3rdparty/walkontable/src/core/_base.mjs +1 -1
  12. package/3rdparty/walkontable/src/event.js +104 -72
  13. package/3rdparty/walkontable/src/event.mjs +104 -72
  14. package/3rdparty/walkontable/src/overlay/inlineStart.js +1 -15
  15. package/3rdparty/walkontable/src/overlay/inlineStart.mjs +2 -16
  16. package/3rdparty/walkontable/src/overlay/top.js +0 -11
  17. package/3rdparty/walkontable/src/overlay/top.mjs +1 -12
  18. package/3rdparty/walkontable/src/overlays.js +4 -46
  19. package/3rdparty/walkontable/src/overlays.mjs +4 -46
  20. package/3rdparty/walkontable/src/scroll.js +17 -15
  21. package/3rdparty/walkontable/src/scroll.mjs +17 -15
  22. package/3rdparty/walkontable/src/selection/manager.js +69 -48
  23. package/3rdparty/walkontable/src/selection/manager.mjs +69 -48
  24. package/3rdparty/walkontable/src/selection/scanner.js +42 -33
  25. package/3rdparty/walkontable/src/selection/scanner.mjs +42 -33
  26. package/3rdparty/walkontable/src/utils/columnStretching.js +44 -27
  27. package/3rdparty/walkontable/src/utils/columnStretching.mjs +44 -27
  28. package/3rdparty/walkontable/src/utils/orderView/view.js +1 -1
  29. package/3rdparty/walkontable/src/utils/orderView/view.mjs +1 -1
  30. package/base.js +2 -2
  31. package/base.mjs +2 -2
  32. package/core/viewportScroll/index.js +1 -4
  33. package/core/viewportScroll/index.mjs +1 -4
  34. package/core.d.ts +3 -4
  35. package/core.js +22 -77
  36. package/core.mjs +22 -77
  37. package/dataMap/dataSource.js +1 -1
  38. package/dataMap/dataSource.mjs +1 -1
  39. package/dataMap/metaManager/metaLayers/cellMeta.js +1 -1
  40. package/dataMap/metaManager/metaLayers/cellMeta.mjs +1 -1
  41. package/dataMap/metaManager/metaSchema.js +1 -1
  42. package/dataMap/metaManager/metaSchema.mjs +1 -1
  43. package/dataMap/replaceData.js +1 -1
  44. package/dataMap/replaceData.mjs +1 -1
  45. package/dist/handsontable.css +4 -4
  46. package/dist/handsontable.full.css +4 -4
  47. package/dist/handsontable.full.js +9121 -9062
  48. package/dist/handsontable.full.min.css +3 -3
  49. package/dist/handsontable.full.min.js +292 -292
  50. package/dist/handsontable.js +6573 -6967
  51. package/dist/handsontable.min.css +3 -3
  52. package/dist/handsontable.min.js +25 -25
  53. package/dist/languages/all.min.js +1 -1
  54. package/dist/languages/ar-AR.min.js +1 -1
  55. package/dist/languages/cs-CZ.min.js +1 -1
  56. package/dist/languages/de-CH.min.js +1 -1
  57. package/dist/languages/de-DE.min.js +1 -1
  58. package/dist/languages/en-US.min.js +1 -1
  59. package/dist/languages/es-MX.min.js +1 -1
  60. package/dist/languages/fr-FR.min.js +1 -1
  61. package/dist/languages/hr-HR.min.js +1 -1
  62. package/dist/languages/it-IT.min.js +1 -1
  63. package/dist/languages/ja-JP.min.js +1 -1
  64. package/dist/languages/ko-KR.min.js +1 -1
  65. package/dist/languages/lv-LV.min.js +1 -1
  66. package/dist/languages/nb-NO.min.js +1 -1
  67. package/dist/languages/nl-NL.min.js +1 -1
  68. package/dist/languages/pl-PL.min.js +1 -1
  69. package/dist/languages/pt-BR.min.js +1 -1
  70. package/dist/languages/ru-RU.min.js +1 -1
  71. package/dist/languages/sr-SP.min.js +1 -1
  72. package/dist/languages/zh-CN.min.js +1 -1
  73. package/dist/languages/zh-TW.min.js +1 -1
  74. package/editorManager.js +23 -25
  75. package/editorManager.mjs +23 -25
  76. package/editors/autocompleteEditor/autocompleteEditor.js +10 -6
  77. package/editors/autocompleteEditor/autocompleteEditor.mjs +10 -6
  78. package/editors/selectEditor/selectEditor.js +19 -20
  79. package/editors/selectEditor/selectEditor.mjs +19 -20
  80. package/eventManager.js +1 -1
  81. package/eventManager.mjs +1 -1
  82. package/focusManager.js +82 -64
  83. package/focusManager.mjs +82 -64
  84. package/helpers/dom/element.js +1 -23
  85. package/helpers/dom/element.mjs +1 -21
  86. package/helpers/mixed.js +1 -1
  87. package/helpers/mixed.mjs +1 -1
  88. package/helpers/object.js +2 -2
  89. package/helpers/object.mjs +2 -2
  90. package/index.d.ts +0 -10
  91. package/package.json +2 -7
  92. package/pluginHooks.d.ts +3 -4
  93. package/pluginHooks.js +38 -99
  94. package/pluginHooks.mjs +38 -99
  95. package/plugins/autoColumnSize/autoColumnSize.js +65 -49
  96. package/plugins/autoColumnSize/autoColumnSize.mjs +65 -49
  97. package/plugins/autoRowSize/autoRowSize.js +34 -28
  98. package/plugins/autoRowSize/autoRowSize.mjs +34 -28
  99. package/plugins/autofill/autofill.js +38 -30
  100. package/plugins/autofill/autofill.mjs +38 -30
  101. package/plugins/base/base.js +17 -12
  102. package/plugins/base/base.mjs +17 -12
  103. package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +5 -5
  104. package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +5 -5
  105. package/plugins/collapsibleColumns/collapsibleColumns.js +50 -59
  106. package/plugins/collapsibleColumns/collapsibleColumns.mjs +50 -59
  107. package/plugins/columnSorting/columnSorting.js +45 -49
  108. package/plugins/columnSorting/columnSorting.mjs +45 -49
  109. package/plugins/columnSummary/columnSummary.js +26 -22
  110. package/plugins/columnSummary/columnSummary.mjs +26 -22
  111. package/plugins/comments/comments.js +158 -116
  112. package/plugins/comments/comments.mjs +158 -116
  113. package/plugins/contextMenu/contextMenu.js +26 -20
  114. package/plugins/contextMenu/contextMenu.mjs +26 -20
  115. package/plugins/contextMenu/itemsFactory.js +1 -1
  116. package/plugins/contextMenu/itemsFactory.mjs +1 -1
  117. package/plugins/contextMenu/menu/defaultShortcutsList.js +10 -26
  118. package/plugins/contextMenu/menu/defaultShortcutsList.mjs +10 -26
  119. package/plugins/contextMenu/menu/menu.js +21 -13
  120. package/plugins/contextMenu/menu/menu.mjs +21 -13
  121. package/plugins/contextMenu/menu/positioner.js +58 -41
  122. package/plugins/contextMenu/menu/positioner.mjs +58 -41
  123. package/plugins/copyPaste/copyPaste.js +157 -116
  124. package/plugins/copyPaste/copyPaste.mjs +157 -116
  125. package/plugins/copyPaste/copyableRanges.js +66 -43
  126. package/plugins/copyPaste/copyableRanges.mjs +66 -43
  127. package/plugins/customBorders/customBorders.js +13 -11
  128. package/plugins/customBorders/customBorders.mjs +13 -11
  129. package/plugins/dragToScroll/dragToScroll.js +6 -6
  130. package/plugins/dragToScroll/dragToScroll.mjs +6 -6
  131. package/plugins/dropdownMenu/dropdownMenu.js +106 -80
  132. package/plugins/dropdownMenu/dropdownMenu.mjs +106 -80
  133. package/plugins/exportFile/dataProvider.js +1 -1
  134. package/plugins/exportFile/dataProvider.mjs +1 -1
  135. package/plugins/filters/component/actionBar.js +9 -9
  136. package/plugins/filters/component/actionBar.mjs +8 -8
  137. package/plugins/filters/component/condition.js +15 -13
  138. package/plugins/filters/component/condition.mjs +15 -13
  139. package/plugins/filters/component/operators.js +6 -6
  140. package/plugins/filters/component/operators.mjs +6 -6
  141. package/plugins/filters/component/value.js +28 -24
  142. package/plugins/filters/component/value.mjs +28 -24
  143. package/plugins/filters/conditionUpdateObserver.js +24 -22
  144. package/plugins/filters/conditionUpdateObserver.mjs +24 -22
  145. package/plugins/filters/dataFilter.js +1 -1
  146. package/plugins/filters/dataFilter.mjs +1 -1
  147. package/plugins/filters/filters.js +95 -81
  148. package/plugins/filters/filters.mjs +95 -81
  149. package/plugins/filters/ui/input.js +19 -13
  150. package/plugins/filters/ui/input.mjs +19 -13
  151. package/plugins/filters/ui/link.js +13 -8
  152. package/plugins/filters/ui/link.mjs +13 -8
  153. package/plugins/filters/ui/multipleSelect.js +112 -85
  154. package/plugins/filters/ui/multipleSelect.mjs +112 -85
  155. package/plugins/filters/ui/radioInput.js +20 -12
  156. package/plugins/filters/ui/radioInput.mjs +20 -12
  157. package/plugins/filters/ui/select.js +72 -50
  158. package/plugins/filters/ui/select.mjs +71 -49
  159. package/plugins/formulas/formulas.js +326 -268
  160. package/plugins/formulas/formulas.mjs +327 -269
  161. package/plugins/formulas/indexSyncer/axisSyncer.js +61 -38
  162. package/plugins/formulas/indexSyncer/axisSyncer.mjs +61 -38
  163. package/plugins/formulas/indexSyncer/index.js +48 -25
  164. package/plugins/formulas/indexSyncer/index.mjs +48 -25
  165. package/plugins/hiddenColumns/hiddenColumns.js +83 -64
  166. package/plugins/hiddenColumns/hiddenColumns.mjs +83 -64
  167. package/plugins/hiddenRows/hiddenRows.js +82 -63
  168. package/plugins/hiddenRows/hiddenRows.mjs +82 -63
  169. package/plugins/manualColumnFreeze/manualColumnFreeze.js +32 -24
  170. package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +33 -25
  171. package/plugins/manualColumnMove/manualColumnMove.js +170 -126
  172. package/plugins/manualColumnMove/manualColumnMove.mjs +170 -126
  173. package/plugins/manualColumnResize/manualColumnResize.js +230 -169
  174. package/plugins/manualColumnResize/manualColumnResize.mjs +230 -169
  175. package/plugins/manualRowMove/manualRowMove.js +128 -99
  176. package/plugins/manualRowMove/manualRowMove.mjs +128 -99
  177. package/plugins/manualRowResize/manualRowResize.js +209 -150
  178. package/plugins/manualRowResize/manualRowResize.mjs +209 -150
  179. package/plugins/mergeCells/calculations/selection.js +71 -2
  180. package/plugins/mergeCells/calculations/selection.mjs +71 -2
  181. package/plugins/mergeCells/cellsCollection.js +1 -117
  182. package/plugins/mergeCells/cellsCollection.mjs +1 -117
  183. package/plugins/mergeCells/contextMenuItem/toggleMerge.js +1 -11
  184. package/plugins/mergeCells/contextMenuItem/toggleMerge.mjs +1 -11
  185. package/plugins/mergeCells/mergeCells.js +397 -499
  186. package/plugins/mergeCells/mergeCells.mjs +397 -499
  187. package/plugins/multiColumnSorting/multiColumnSorting.js +2 -8
  188. package/plugins/multiColumnSorting/multiColumnSorting.mjs +2 -8
  189. package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +1 -1
  190. package/plugins/multipleSelectionHandles/multipleSelectionHandles.mjs +1 -1
  191. package/plugins/nestedHeaders/nestedHeaders.js +253 -205
  192. package/plugins/nestedHeaders/nestedHeaders.mjs +254 -206
  193. package/plugins/nestedHeaders/stateManager/headersTree.js +32 -21
  194. package/plugins/nestedHeaders/stateManager/headersTree.mjs +32 -21
  195. package/plugins/nestedHeaders/stateManager/index.js +41 -30
  196. package/plugins/nestedHeaders/stateManager/index.mjs +41 -30
  197. package/plugins/nestedHeaders/stateManager/sourceSettings.js +30 -19
  198. package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +30 -19
  199. package/plugins/nestedRows/data/dataManager.js +1 -1
  200. package/plugins/nestedRows/data/dataManager.mjs +1 -1
  201. package/plugins/nestedRows/nestedRows.js +182 -151
  202. package/plugins/nestedRows/nestedRows.mjs +183 -152
  203. package/plugins/nestedRows/ui/contextMenu.js +15 -11
  204. package/plugins/nestedRows/ui/contextMenu.mjs +14 -10
  205. package/plugins/nestedRows/utils/rowMoveController.js +1 -1
  206. package/plugins/nestedRows/utils/rowMoveController.mjs +1 -1
  207. package/plugins/persistentState/storage.js +2 -2
  208. package/plugins/persistentState/storage.mjs +2 -2
  209. package/plugins/search/search.js +7 -7
  210. package/plugins/search/search.mjs +7 -7
  211. package/plugins/touchScroll/touchScroll.js +19 -15
  212. package/plugins/touchScroll/touchScroll.mjs +20 -16
  213. package/plugins/trimRows/trimRows.js +6 -6
  214. package/plugins/trimRows/trimRows.mjs +6 -6
  215. package/renderers/checkboxRenderer/checkboxRenderer.js +5 -8
  216. package/renderers/checkboxRenderer/checkboxRenderer.mjs +5 -8
  217. package/selection/highlight/highlight.js +14 -14
  218. package/selection/highlight/highlight.mjs +13 -13
  219. package/selection/highlight/visualSelection.js +0 -2
  220. package/selection/highlight/visualSelection.mjs +0 -2
  221. package/selection/selection.js +67 -225
  222. package/selection/selection.mjs +66 -224
  223. package/selection/transformation.js +118 -149
  224. package/selection/transformation.mjs +118 -149
  225. package/shortcutContexts/commands/editor/closeAndSave.js +2 -2
  226. package/shortcutContexts/commands/editor/closeAndSave.mjs +2 -2
  227. package/shortcutContexts/commands/editor/open.js +3 -18
  228. package/shortcutContexts/commands/editor/open.mjs +3 -18
  229. package/shortcutContexts/commands/extendCellsSelection/down.js +1 -1
  230. package/shortcutContexts/commands/extendCellsSelection/down.mjs +1 -1
  231. package/shortcutContexts/commands/extendCellsSelection/left.js +1 -1
  232. package/shortcutContexts/commands/extendCellsSelection/left.mjs +1 -1
  233. package/shortcutContexts/commands/extendCellsSelection/right.js +1 -1
  234. package/shortcutContexts/commands/extendCellsSelection/right.mjs +1 -1
  235. package/shortcutContexts/commands/extendCellsSelection/toColumns.js +1 -1
  236. package/shortcutContexts/commands/extendCellsSelection/toColumns.mjs +1 -1
  237. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +1 -3
  238. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +1 -3
  239. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +3 -9
  240. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +3 -9
  241. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +3 -10
  242. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +3 -10
  243. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +1 -3
  244. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +1 -3
  245. package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +1 -3
  246. package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +1 -3
  247. package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +1 -3
  248. package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +1 -3
  249. package/shortcutContexts/commands/extendCellsSelection/toRows.js +1 -1
  250. package/shortcutContexts/commands/extendCellsSelection/toRows.mjs +1 -1
  251. package/shortcutContexts/commands/extendCellsSelection/up.js +1 -1
  252. package/shortcutContexts/commands/extendCellsSelection/up.mjs +1 -1
  253. package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +1 -6
  254. package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +1 -6
  255. package/shortcutContexts/commands/moveCellSelection/inlineStart.js +1 -6
  256. package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +1 -6
  257. package/shortcutContexts/grid.js +3 -9
  258. package/shortcutContexts/grid.mjs +3 -9
  259. package/shortcuts/context.js +1 -2
  260. package/shortcuts/context.mjs +1 -2
  261. package/tableView.js +78 -52
  262. package/tableView.mjs +78 -52
  263. package/translations/changesObservable/observable.js +38 -21
  264. package/translations/changesObservable/observable.mjs +38 -21
  265. package/translations/changesObservable/observer.js +12 -7
  266. package/translations/changesObservable/observer.mjs +11 -6
  267. package/translations/mapCollections/aggregatedCollection.js +1 -1
  268. package/translations/mapCollections/aggregatedCollection.mjs +1 -1
  269. package/translations/maps/indexMap.js +1 -1
  270. package/translations/maps/indexMap.mjs +1 -1
  271. package/utils/dataStructures/linkedList.js +1 -6
  272. package/utils/dataStructures/linkedList.mjs +1 -6
  273. package/utils/dataStructures/tree.js +1 -1
  274. package/utils/dataStructures/tree.mjs +1 -1
  275. package/utils/interval.js +44 -26
  276. package/utils/interval.mjs +44 -26
  277. package/core/viewportScroll/scrollStrategies/focusScroll.js +0 -15
  278. package/core/viewportScroll/scrollStrategies/focusScroll.mjs +0 -11
  279. package/i18n/languages/ar-AR.d.ts +0 -5
  280. package/i18n/languages/cs-CZ.d.ts +0 -5
  281. package/i18n/languages/hr-HR.d.ts +0 -5
  282. package/i18n/languages/sr-SP.d.ts +0 -5
  283. package/plugins/mergeCells/focusOrder.js +0 -305
  284. package/plugins/mergeCells/focusOrder.mjs +0 -300
@@ -1,9 +1,11 @@
1
1
  import "core-js/modules/es.error.cause.js";
2
2
  function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
3
3
  function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
4
- function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
5
- function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
6
- function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
4
+ function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
5
+ function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } descriptor.value = value; } }
6
+ function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
7
+ function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
8
+ function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
7
9
  import { mixin } from "../../helpers/object.mjs";
8
10
  import localHooks from "../../mixins/localHooks.mjs";
9
11
  /**
@@ -22,7 +24,10 @@ export class ChangesObserver {
22
24
  *
23
25
  * @type {Array}
24
26
  */
25
- _classPrivateFieldInitSpec(this, _currentInitialChanges, []);
27
+ _classPrivateFieldInitSpec(this, _currentInitialChanges, {
28
+ writable: true,
29
+ value: []
30
+ });
26
31
  }
27
32
  /**
28
33
  * Subscribes to the observer.
@@ -32,7 +37,7 @@ export class ChangesObserver {
32
37
  */
33
38
  subscribe(callback) {
34
39
  this.addLocalHook('change', callback);
35
- this._write(_classPrivateFieldGet(_currentInitialChanges, this));
40
+ this._write(_classPrivateFieldGet(this, _currentInitialChanges));
36
41
  return this;
37
42
  }
38
43
 
@@ -71,7 +76,7 @@ export class ChangesObserver {
71
76
  * @param {object} initialChanges The chunk of changes produced by the ChangesObservable module.
72
77
  */
73
78
  _writeInitialChanges(initialChanges) {
74
- _classPrivateFieldSet(_currentInitialChanges, this, initialChanges);
79
+ _classPrivateFieldSet(this, _currentInitialChanges, initialChanges);
75
80
  }
76
81
  }
77
82
  mixin(ChangesObserver, localHooks);
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- require("core-js/modules/es.error.cause.js");
5
4
  require("core-js/modules/es.array.push.js");
5
+ require("core-js/modules/es.error.cause.js");
6
6
  var _mapCollection = require("./mapCollection");
7
7
  var _array = require("../../helpers/array");
8
8
  var _mixed = require("../../helpers/mixed");
@@ -1,5 +1,5 @@
1
- import "core-js/modules/es.error.cause.js";
2
1
  import "core-js/modules/es.array.push.js";
2
+ import "core-js/modules/es.error.cause.js";
3
3
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
4
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
5
5
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- require("core-js/modules/es.error.cause.js");
5
4
  require("core-js/modules/es.array.push.js");
5
+ require("core-js/modules/es.error.cause.js");
6
6
  var _number = require("../../helpers/number");
7
7
  var _object = require("../../helpers/object");
8
8
  var _function = require("../../helpers/function");
@@ -1,5 +1,5 @@
1
- import "core-js/modules/es.error.cause.js";
2
1
  import "core-js/modules/es.array.push.js";
2
+ import "core-js/modules/es.error.cause.js";
3
3
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
4
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
5
5
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -59,7 +59,6 @@ class LinkedList {
59
59
  * Add data to the end of linked list.
60
60
  *
61
61
  * @param {object} data Data which should be added.
62
- * @returns {NodeStructure} Returns the node which has been added.
63
62
  */
64
63
  push(data) {
65
64
  const node = new NodeStructure(data);
@@ -72,7 +71,6 @@ class LinkedList {
72
71
  node.prev = temp;
73
72
  temp.next = node;
74
73
  }
75
- return node;
76
74
  }
77
75
 
78
76
  /**
@@ -101,10 +99,7 @@ class LinkedList {
101
99
  inorder(callback) {
102
100
  let temp = this.first;
103
101
  while (temp) {
104
- const interrupt = callback(temp);
105
- if (temp === this.last || interrupt === true) {
106
- break;
107
- }
102
+ callback(temp);
108
103
  temp = temp.next;
109
104
  }
110
105
  }
@@ -55,7 +55,6 @@ class LinkedList {
55
55
  * Add data to the end of linked list.
56
56
  *
57
57
  * @param {object} data Data which should be added.
58
- * @returns {NodeStructure} Returns the node which has been added.
59
58
  */
60
59
  push(data) {
61
60
  const node = new NodeStructure(data);
@@ -68,7 +67,6 @@ class LinkedList {
68
67
  node.prev = temp;
69
68
  temp.next = node;
70
69
  }
71
- return node;
72
70
  }
73
71
 
74
72
  /**
@@ -97,10 +95,7 @@ class LinkedList {
97
95
  inorder(callback) {
98
96
  let temp = this.first;
99
97
  while (temp) {
100
- const interrupt = callback(temp);
101
- if (temp === this.last || interrupt === true) {
102
- break;
103
- }
98
+ callback(temp);
104
99
  temp = temp.next;
105
100
  }
106
101
  }
@@ -2,8 +2,8 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports.depthFirstPreOrder = depthFirstPreOrder;
5
- require("core-js/modules/es.error.cause.js");
6
5
  require("core-js/modules/es.array.push.js");
6
+ require("core-js/modules/es.error.cause.js");
7
7
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
8
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
9
9
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -1,8 +1,8 @@
1
1
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
2
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
3
3
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
- import "core-js/modules/es.error.cause.js";
5
4
  import "core-js/modules/es.array.push.js";
5
+ import "core-js/modules/es.error.cause.js";
6
6
  /**
7
7
  * Depth-first pre-order strategy (https://en.wikipedia.org/wiki/Tree_traversal#Pre-order_(NLR)).
8
8
  *
package/utils/interval.js CHANGED
@@ -10,9 +10,12 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
10
10
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
11
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
12
12
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
- function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
14
- function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
15
- function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
13
+ function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
14
+ function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
15
+ function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
16
+ function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
17
+ function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
18
+ function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } descriptor.value = value; } }
16
19
  /**
17
20
  * @class Interval
18
21
  */
@@ -21,7 +24,7 @@ var _func = /*#__PURE__*/new WeakMap();
21
24
  var _stopped = /*#__PURE__*/new WeakMap();
22
25
  var _then = /*#__PURE__*/new WeakMap();
23
26
  var _callback = /*#__PURE__*/new WeakMap();
24
- var _Interval_brand = /*#__PURE__*/new WeakSet();
27
+ var _callback2 = /*#__PURE__*/new WeakSet();
25
28
  class Interval {
26
29
  static create(func, delay) {
27
30
  return new Interval(func, delay);
@@ -37,42 +40,57 @@ class Interval {
37
40
  /**
38
41
  * Loop callback, fired on every animation frame.
39
42
  */
40
- _classPrivateMethodInitSpec(this, _Interval_brand);
43
+ _classPrivateMethodInitSpec(this, _callback2);
41
44
  _defineProperty(this, "delay", void 0);
42
45
  /**
43
46
  * Animation frame request id.
44
47
  *
45
48
  * @type {number}
46
49
  */
47
- _classPrivateFieldInitSpec(this, _timer, null);
50
+ _classPrivateFieldInitSpec(this, _timer, {
51
+ writable: true,
52
+ value: null
53
+ });
48
54
  /**
49
55
  * Function to invoke repeatedly.
50
56
  *
51
57
  * @type {Function}
52
58
  */
53
- _classPrivateFieldInitSpec(this, _func, void 0);
59
+ _classPrivateFieldInitSpec(this, _func, {
60
+ writable: true,
61
+ value: void 0
62
+ });
54
63
  /**
55
64
  * Flag which indicates if interval object was stopped.
56
65
  *
57
66
  * @type {boolean}
58
67
  * @default true
59
68
  */
60
- _classPrivateFieldInitSpec(this, _stopped, true);
69
+ _classPrivateFieldInitSpec(this, _stopped, {
70
+ writable: true,
71
+ value: true
72
+ });
61
73
  /**
62
74
  * Interval time (in milliseconds) of the last callback call.
63
75
  *
64
76
  * @type {number}
65
77
  */
66
- _classPrivateFieldInitSpec(this, _then, null);
78
+ _classPrivateFieldInitSpec(this, _then, {
79
+ writable: true,
80
+ value: null
81
+ });
67
82
  /**
68
83
  * Bounded function `func`.
69
84
  *
70
85
  * @type {Function}
71
86
  */
72
- _classPrivateFieldInitSpec(this, _callback, void 0);
73
- _classPrivateFieldSet(_func, this, func);
87
+ _classPrivateFieldInitSpec(this, _callback, {
88
+ writable: true,
89
+ value: void 0
90
+ });
91
+ _classPrivateFieldSet(this, _func, func);
74
92
  this.delay = parseDelay(delay);
75
- _classPrivateFieldSet(_callback, this, () => _assertClassBrand(_Interval_brand, this, _callback2).call(this));
93
+ _classPrivateFieldSet(this, _callback, () => _classPrivateMethodGet(this, _callback2, _callback3).call(this));
76
94
  }
77
95
 
78
96
  /**
@@ -81,10 +99,10 @@ class Interval {
81
99
  * @returns {Interval}
82
100
  */
83
101
  start() {
84
- if (_classPrivateFieldGet(_stopped, this)) {
85
- _classPrivateFieldSet(_then, this, Date.now());
86
- _classPrivateFieldSet(_stopped, this, false);
87
- _classPrivateFieldSet(_timer, this, (0, _feature.requestAnimationFrame)(_classPrivateFieldGet(_callback, this)));
102
+ if (_classPrivateFieldGet(this, _stopped)) {
103
+ _classPrivateFieldSet(this, _then, Date.now());
104
+ _classPrivateFieldSet(this, _stopped, false);
105
+ _classPrivateFieldSet(this, _timer, (0, _feature.requestAnimationFrame)(_classPrivateFieldGet(this, _callback)));
88
106
  }
89
107
  return this;
90
108
  }
@@ -95,25 +113,25 @@ class Interval {
95
113
  * @returns {Interval}
96
114
  */
97
115
  stop() {
98
- if (!_classPrivateFieldGet(_stopped, this)) {
99
- _classPrivateFieldSet(_stopped, this, true);
100
- (0, _feature.cancelAnimationFrame)(_classPrivateFieldGet(_timer, this));
101
- _classPrivateFieldSet(_timer, this, null);
116
+ if (!_classPrivateFieldGet(this, _stopped)) {
117
+ _classPrivateFieldSet(this, _stopped, true);
118
+ (0, _feature.cancelAnimationFrame)(_classPrivateFieldGet(this, _timer));
119
+ _classPrivateFieldSet(this, _timer, null);
102
120
  }
103
121
  return this;
104
122
  }
105
123
  }
106
- function _callback2() {
107
- _classPrivateFieldSet(_timer, this, (0, _feature.requestAnimationFrame)(_classPrivateFieldGet(_callback, this)));
124
+ function _callback3() {
125
+ _classPrivateFieldSet(this, _timer, (0, _feature.requestAnimationFrame)(_classPrivateFieldGet(this, _callback)));
108
126
  if (this.delay) {
109
127
  const now = Date.now();
110
- const elapsed = now - _classPrivateFieldGet(_then, this);
128
+ const elapsed = now - _classPrivateFieldGet(this, _then);
111
129
  if (elapsed > this.delay) {
112
- _classPrivateFieldSet(_then, this, now - elapsed % this.delay);
113
- _classPrivateFieldGet(_func, this).call(this);
130
+ _classPrivateFieldSet(this, _then, now - elapsed % this.delay);
131
+ _classPrivateFieldGet(this, _func).call(this);
114
132
  }
115
133
  } else {
116
- _classPrivateFieldGet(_func, this).call(this);
134
+ _classPrivateFieldGet(this, _func).call(this);
117
135
  }
118
136
  }
119
137
  var _default = exports.default = Interval;
@@ -5,9 +5,12 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
5
5
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
7
7
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
- function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
9
- function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
10
- function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
8
+ function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
9
+ function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
10
+ function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
11
+ function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
12
+ function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
13
+ function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } descriptor.value = value; } }
11
14
  import { requestAnimationFrame, cancelAnimationFrame } from "./../helpers/feature.mjs";
12
15
  /**
13
16
  * @class Interval
@@ -17,7 +20,7 @@ var _func = /*#__PURE__*/new WeakMap();
17
20
  var _stopped = /*#__PURE__*/new WeakMap();
18
21
  var _then = /*#__PURE__*/new WeakMap();
19
22
  var _callback = /*#__PURE__*/new WeakMap();
20
- var _Interval_brand = /*#__PURE__*/new WeakSet();
23
+ var _callback2 = /*#__PURE__*/new WeakSet();
21
24
  class Interval {
22
25
  static create(func, delay) {
23
26
  return new Interval(func, delay);
@@ -33,42 +36,57 @@ class Interval {
33
36
  /**
34
37
  * Loop callback, fired on every animation frame.
35
38
  */
36
- _classPrivateMethodInitSpec(this, _Interval_brand);
39
+ _classPrivateMethodInitSpec(this, _callback2);
37
40
  _defineProperty(this, "delay", void 0);
38
41
  /**
39
42
  * Animation frame request id.
40
43
  *
41
44
  * @type {number}
42
45
  */
43
- _classPrivateFieldInitSpec(this, _timer, null);
46
+ _classPrivateFieldInitSpec(this, _timer, {
47
+ writable: true,
48
+ value: null
49
+ });
44
50
  /**
45
51
  * Function to invoke repeatedly.
46
52
  *
47
53
  * @type {Function}
48
54
  */
49
- _classPrivateFieldInitSpec(this, _func, void 0);
55
+ _classPrivateFieldInitSpec(this, _func, {
56
+ writable: true,
57
+ value: void 0
58
+ });
50
59
  /**
51
60
  * Flag which indicates if interval object was stopped.
52
61
  *
53
62
  * @type {boolean}
54
63
  * @default true
55
64
  */
56
- _classPrivateFieldInitSpec(this, _stopped, true);
65
+ _classPrivateFieldInitSpec(this, _stopped, {
66
+ writable: true,
67
+ value: true
68
+ });
57
69
  /**
58
70
  * Interval time (in milliseconds) of the last callback call.
59
71
  *
60
72
  * @type {number}
61
73
  */
62
- _classPrivateFieldInitSpec(this, _then, null);
74
+ _classPrivateFieldInitSpec(this, _then, {
75
+ writable: true,
76
+ value: null
77
+ });
63
78
  /**
64
79
  * Bounded function `func`.
65
80
  *
66
81
  * @type {Function}
67
82
  */
68
- _classPrivateFieldInitSpec(this, _callback, void 0);
69
- _classPrivateFieldSet(_func, this, func);
83
+ _classPrivateFieldInitSpec(this, _callback, {
84
+ writable: true,
85
+ value: void 0
86
+ });
87
+ _classPrivateFieldSet(this, _func, func);
70
88
  this.delay = parseDelay(delay);
71
- _classPrivateFieldSet(_callback, this, () => _assertClassBrand(_Interval_brand, this, _callback2).call(this));
89
+ _classPrivateFieldSet(this, _callback, () => _classPrivateMethodGet(this, _callback2, _callback3).call(this));
72
90
  }
73
91
 
74
92
  /**
@@ -77,10 +95,10 @@ class Interval {
77
95
  * @returns {Interval}
78
96
  */
79
97
  start() {
80
- if (_classPrivateFieldGet(_stopped, this)) {
81
- _classPrivateFieldSet(_then, this, Date.now());
82
- _classPrivateFieldSet(_stopped, this, false);
83
- _classPrivateFieldSet(_timer, this, requestAnimationFrame(_classPrivateFieldGet(_callback, this)));
98
+ if (_classPrivateFieldGet(this, _stopped)) {
99
+ _classPrivateFieldSet(this, _then, Date.now());
100
+ _classPrivateFieldSet(this, _stopped, false);
101
+ _classPrivateFieldSet(this, _timer, requestAnimationFrame(_classPrivateFieldGet(this, _callback)));
84
102
  }
85
103
  return this;
86
104
  }
@@ -91,25 +109,25 @@ class Interval {
91
109
  * @returns {Interval}
92
110
  */
93
111
  stop() {
94
- if (!_classPrivateFieldGet(_stopped, this)) {
95
- _classPrivateFieldSet(_stopped, this, true);
96
- cancelAnimationFrame(_classPrivateFieldGet(_timer, this));
97
- _classPrivateFieldSet(_timer, this, null);
112
+ if (!_classPrivateFieldGet(this, _stopped)) {
113
+ _classPrivateFieldSet(this, _stopped, true);
114
+ cancelAnimationFrame(_classPrivateFieldGet(this, _timer));
115
+ _classPrivateFieldSet(this, _timer, null);
98
116
  }
99
117
  return this;
100
118
  }
101
119
  }
102
- function _callback2() {
103
- _classPrivateFieldSet(_timer, this, requestAnimationFrame(_classPrivateFieldGet(_callback, this)));
120
+ function _callback3() {
121
+ _classPrivateFieldSet(this, _timer, requestAnimationFrame(_classPrivateFieldGet(this, _callback)));
104
122
  if (this.delay) {
105
123
  const now = Date.now();
106
- const elapsed = now - _classPrivateFieldGet(_then, this);
124
+ const elapsed = now - _classPrivateFieldGet(this, _then);
107
125
  if (elapsed > this.delay) {
108
- _classPrivateFieldSet(_then, this, now - elapsed % this.delay);
109
- _classPrivateFieldGet(_func, this).call(this);
126
+ _classPrivateFieldSet(this, _then, now - elapsed % this.delay);
127
+ _classPrivateFieldGet(this, _func).call(this);
110
128
  }
111
129
  } else {
112
- _classPrivateFieldGet(_func, this).call(this);
130
+ _classPrivateFieldGet(this, _func).call(this);
113
131
  }
114
132
  }
115
133
  export default Interval;
@@ -1,15 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.focusScrollStrategy = focusScrollStrategy;
5
- /**
6
- * Scroll strategy for changed the focus position of the selection.
7
- *
8
- * @param {Core} hot Handsontable instance.
9
- * @returns {function(): function(CellCoords): void}
10
- */
11
- function focusScrollStrategy(hot) {
12
- return cellCoords => {
13
- hot.scrollViewportTo(cellCoords.toObject());
14
- };
15
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * Scroll strategy for changed the focus position of the selection.
3
- *
4
- * @param {Core} hot Handsontable instance.
5
- * @returns {function(): function(CellCoords): void}
6
- */
7
- export function focusScrollStrategy(hot) {
8
- return cellCoords => {
9
- hot.scrollViewportTo(cellCoords.toObject());
10
- };
11
- }
@@ -1,5 +0,0 @@
1
- export default dictionary;
2
- declare const dictionary: {
3
- [x: string]: string | string[];
4
- languageCode: 'ar-AR';
5
- };
@@ -1,5 +0,0 @@
1
- export default dictionary;
2
- declare const dictionary: {
3
- [x: string]: string | string[];
4
- languageCode: 'cs-CZ';
5
- };
@@ -1,5 +0,0 @@
1
- export default dictionary;
2
- declare const dictionary: {
3
- [x: string]: string | string[];
4
- languageCode: 'hr-HR';
5
- };
@@ -1,5 +0,0 @@
1
- export default dictionary;
2
- declare const dictionary: {
3
- [x: string]: string | string[];
4
- languageCode: 'sr-SP';
5
- };