handsontable 12.4.0 → 13.0.0-next-4dc1066-20230615

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. package/3rdparty/walkontable/src/border.js +1 -0
  2. package/3rdparty/walkontable/src/border.mjs +1 -0
  3. package/3rdparty/walkontable/src/selection.js +1 -0
  4. package/3rdparty/walkontable/src/selection.mjs +1 -0
  5. package/3rdparty/walkontable/src/table.js +1 -0
  6. package/3rdparty/walkontable/src/table.mjs +1 -0
  7. package/CHANGELOG.md +15 -1
  8. package/base.js +2 -2
  9. package/base.mjs +2 -2
  10. package/core.d.ts +3 -4
  11. package/core.js +90 -107
  12. package/core.mjs +94 -111
  13. package/dataMap/dataMap.js +1 -0
  14. package/dataMap/dataMap.mjs +1 -0
  15. package/dataMap/metaManager/lazyFactoryMap.js +1 -0
  16. package/dataMap/metaManager/lazyFactoryMap.mjs +1 -0
  17. package/dataMap/metaManager/metaLayers/cellMeta.js +1 -0
  18. package/dataMap/metaManager/metaLayers/cellMeta.mjs +1 -0
  19. package/dataMap/metaManager/metaSchema.js +6 -6
  20. package/dataMap/metaManager/metaSchema.mjs +6 -6
  21. package/dist/handsontable.css +24 -2
  22. package/dist/handsontable.full.css +24 -2
  23. package/dist/handsontable.full.js +3294 -3169
  24. package/dist/handsontable.full.min.css +4 -4
  25. package/dist/handsontable.full.min.js +96 -92
  26. package/dist/handsontable.js +856 -952
  27. package/dist/handsontable.min.css +4 -4
  28. package/dist/handsontable.min.js +4 -4
  29. package/editorManager.js +1 -0
  30. package/editorManager.mjs +1 -0
  31. package/editors/baseEditor/baseEditor.js +1 -0
  32. package/editors/baseEditor/baseEditor.mjs +1 -0
  33. package/editors/textEditor/textEditor.js +1 -0
  34. package/editors/textEditor/textEditor.mjs +1 -0
  35. package/helpers/mixed.js +2 -2
  36. package/helpers/mixed.mjs +2 -2
  37. package/helpers/object.js +2 -0
  38. package/helpers/object.mjs +2 -0
  39. package/package.json +1 -1
  40. package/pluginHooks.d.ts +0 -1
  41. package/pluginHooks.js +1 -12
  42. package/pluginHooks.mjs +1 -12
  43. package/plugins/autoColumnSize/autoColumnSize.js +1 -0
  44. package/plugins/autoColumnSize/autoColumnSize.mjs +1 -0
  45. package/plugins/autoRowSize/autoRowSize.js +1 -0
  46. package/plugins/autoRowSize/autoRowSize.mjs +1 -0
  47. package/plugins/autofill/autofill.js +2 -2
  48. package/plugins/autofill/autofill.mjs +3 -3
  49. package/plugins/autofill/utils.js +1 -39
  50. package/plugins/autofill/utils.mjs +0 -37
  51. package/plugins/base/base.js +1 -0
  52. package/plugins/base/base.mjs +1 -0
  53. package/plugins/bindRowsWithHeaders/maps/strictBindsMap.js +1 -0
  54. package/plugins/bindRowsWithHeaders/maps/strictBindsMap.mjs +1 -0
  55. package/plugins/collapsibleColumns/collapsibleColumns.js +1 -0
  56. package/plugins/collapsibleColumns/collapsibleColumns.mjs +1 -0
  57. package/plugins/columnSorting/columnSorting.js +1 -0
  58. package/plugins/columnSorting/columnSorting.mjs +1 -0
  59. package/plugins/columnSorting/columnStatesManager.js +1 -0
  60. package/plugins/columnSorting/columnStatesManager.mjs +1 -0
  61. package/plugins/columnSorting/rootComparator.js +1 -0
  62. package/plugins/columnSorting/rootComparator.mjs +1 -0
  63. package/plugins/contextMenu/predefinedItems/removeColumn.js +1 -0
  64. package/plugins/contextMenu/predefinedItems/removeColumn.mjs +1 -0
  65. package/plugins/contextMenu/predefinedItems/removeRow.js +1 -0
  66. package/plugins/contextMenu/predefinedItems/removeRow.mjs +1 -0
  67. package/plugins/copyPaste/copyPaste.js +1 -0
  68. package/plugins/copyPaste/copyPaste.mjs +1 -0
  69. package/plugins/customBorders/customBorders.js +1 -0
  70. package/plugins/customBorders/customBorders.mjs +1 -0
  71. package/plugins/exportFile/dataProvider.js +1 -0
  72. package/plugins/exportFile/dataProvider.mjs +1 -0
  73. package/plugins/filters/component/value.js +1 -0
  74. package/plugins/filters/component/value.mjs +1 -0
  75. package/plugins/filters/condition/beginsWith.js +1 -0
  76. package/plugins/filters/condition/beginsWith.mjs +1 -0
  77. package/plugins/filters/condition/between.js +1 -0
  78. package/plugins/filters/condition/between.mjs +1 -0
  79. package/plugins/filters/condition/byValue.js +1 -0
  80. package/plugins/filters/condition/byValue.mjs +1 -0
  81. package/plugins/filters/condition/contains.js +1 -0
  82. package/plugins/filters/condition/contains.mjs +1 -0
  83. package/plugins/filters/condition/date/after.js +1 -0
  84. package/plugins/filters/condition/date/after.mjs +1 -0
  85. package/plugins/filters/condition/date/before.js +1 -0
  86. package/plugins/filters/condition/date/before.mjs +1 -0
  87. package/plugins/filters/condition/endsWith.js +1 -0
  88. package/plugins/filters/condition/endsWith.mjs +1 -0
  89. package/plugins/filters/condition/equal.js +1 -0
  90. package/plugins/filters/condition/equal.mjs +1 -0
  91. package/plugins/filters/condition/greaterThan.js +1 -0
  92. package/plugins/filters/condition/greaterThan.mjs +1 -0
  93. package/plugins/filters/condition/greaterThanOrEqual.js +1 -0
  94. package/plugins/filters/condition/greaterThanOrEqual.mjs +1 -0
  95. package/plugins/filters/condition/lessThan.js +1 -0
  96. package/plugins/filters/condition/lessThan.mjs +1 -0
  97. package/plugins/filters/condition/lessThanOrEqual.js +1 -0
  98. package/plugins/filters/condition/lessThanOrEqual.mjs +1 -0
  99. package/plugins/filters/conditionCollection.js +1 -0
  100. package/plugins/filters/conditionCollection.mjs +1 -0
  101. package/plugins/filters/filters.js +1 -0
  102. package/plugins/filters/filters.mjs +1 -0
  103. package/plugins/filters/ui/multipleSelect.js +1 -0
  104. package/plugins/filters/ui/multipleSelect.mjs +1 -0
  105. package/plugins/formulas/formulas.js +1 -0
  106. package/plugins/formulas/formulas.mjs +1 -0
  107. package/plugins/hiddenColumns/contextMenuItem/hideColumn.js +1 -0
  108. package/plugins/hiddenColumns/contextMenuItem/hideColumn.mjs +1 -0
  109. package/plugins/hiddenColumns/contextMenuItem/showColumn.js +1 -0
  110. package/plugins/hiddenColumns/contextMenuItem/showColumn.mjs +1 -0
  111. package/plugins/hiddenRows/contextMenuItem/hideRow.js +1 -0
  112. package/plugins/hiddenRows/contextMenuItem/hideRow.mjs +1 -0
  113. package/plugins/hiddenRows/contextMenuItem/showRow.js +1 -0
  114. package/plugins/hiddenRows/contextMenuItem/showRow.mjs +1 -0
  115. package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.js +1 -0
  116. package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.mjs +1 -0
  117. package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.js +1 -0
  118. package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.mjs +1 -0
  119. package/plugins/manualRowMove/manualRowMove.js +5 -1
  120. package/plugins/manualRowMove/manualRowMove.mjs +5 -1
  121. package/plugins/mergeCells/calculations/autofill.js +1 -0
  122. package/plugins/mergeCells/calculations/autofill.mjs +1 -0
  123. package/plugins/mergeCells/cellsCollection.js +1 -0
  124. package/plugins/mergeCells/cellsCollection.mjs +1 -0
  125. package/plugins/mergeCells/mergeCells.js +1 -0
  126. package/plugins/mergeCells/mergeCells.mjs +1 -0
  127. package/plugins/multiColumnSorting/rootComparator.js +1 -0
  128. package/plugins/multiColumnSorting/rootComparator.mjs +1 -0
  129. package/plugins/nestedHeaders/stateManager/headersTree.js +1 -0
  130. package/plugins/nestedHeaders/stateManager/headersTree.mjs +1 -0
  131. package/plugins/nestedHeaders/stateManager/settingsNormalizer.js +1 -0
  132. package/plugins/nestedHeaders/stateManager/settingsNormalizer.mjs +1 -0
  133. package/plugins/nestedRows/data/dataManager.js +1 -0
  134. package/plugins/nestedRows/data/dataManager.mjs +1 -0
  135. package/plugins/nestedRows/nestedRows.js +1 -0
  136. package/plugins/nestedRows/nestedRows.mjs +1 -0
  137. package/plugins/nestedRows/ui/collapsing.js +1 -0
  138. package/plugins/nestedRows/ui/collapsing.mjs +1 -0
  139. package/plugins/nestedRows/utils/rowMoveController.js +1 -0
  140. package/plugins/nestedRows/utils/rowMoveController.mjs +1 -0
  141. package/plugins/persistentState/storage.js +1 -0
  142. package/plugins/persistentState/storage.mjs +1 -0
  143. package/plugins/registry.js +1 -0
  144. package/plugins/registry.mjs +1 -0
  145. package/plugins/undoRedo/undoRedo.js +1 -0
  146. package/plugins/undoRedo/undoRedo.mjs +1 -0
  147. package/selection/highlight/highlight.js +1 -0
  148. package/selection/highlight/highlight.mjs +1 -0
  149. package/selection/selection.js +1 -0
  150. package/selection/selection.mjs +1 -0
  151. package/selection/utils.js +1 -0
  152. package/selection/utils.mjs +1 -0
  153. package/settings.d.ts +1 -0
  154. package/shortcuts/context.js +1 -0
  155. package/shortcuts/context.mjs +1 -0
  156. package/tableView.js +1 -0
  157. package/tableView.mjs +1 -0
  158. package/translations/indexMapper.js +8 -56
  159. package/translations/indexMapper.mjs +9 -56
  160. package/translations/maps/linkedPhysicalIndexToValueMap.js +1 -0
  161. package/translations/maps/linkedPhysicalIndexToValueMap.mjs +1 -0
  162. package/translations/maps/utils/indexesSequence.js +1 -0
  163. package/translations/maps/utils/indexesSequence.mjs +1 -0
  164. package/translations/maps/utils/physicallyIndexed.js +1 -0
  165. package/translations/maps/utils/physicallyIndexed.mjs +1 -0
  166. package/utils/dataStructures/priorityMap.js +1 -0
  167. package/utils/dataStructures/priorityMap.mjs +1 -0
  168. package/utils/dataStructures/tree.js +1 -0
  169. package/utils/dataStructures/tree.mjs +1 -0
  170. package/utils/dataStructures/uniqueMap.js +1 -0
  171. package/utils/dataStructures/uniqueMap.mjs +1 -0
  172. package/utils/dataStructures/uniqueSet.js +1 -0
  173. package/utils/dataStructures/uniqueSet.mjs +1 -0
  174. package/utils/ghostTable.js +1 -0
  175. package/utils/ghostTable.mjs +1 -0
  176. package/utils/staticRegister.js +1 -0
  177. package/utils/staticRegister.mjs +1 -0
package/editorManager.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require("core-js/modules/es.symbol.iterator.js");
4
4
  require("core-js/modules/es.array.slice.js");
5
+ require("core-js/modules/es.regexp.to-string.js");
5
6
  require("core-js/modules/es.function.name.js");
6
7
  require("core-js/modules/es.array.from.js");
7
8
  require("core-js/modules/es.regexp.exec.js");
package/editorManager.mjs CHANGED
@@ -19,6 +19,7 @@ import "core-js/modules/es.symbol.description.js";
19
19
  import "core-js/modules/es.number.constructor.js";
20
20
  import "core-js/modules/es.symbol.iterator.js";
21
21
  import "core-js/modules/es.array.slice.js";
22
+ import "core-js/modules/es.regexp.to-string.js";
22
23
  import "core-js/modules/es.function.name.js";
23
24
  import "core-js/modules/es.array.from.js";
24
25
  import "core-js/modules/es.regexp.exec.js";
@@ -14,6 +14,7 @@ require("core-js/modules/es.array.iterator.js");
14
14
  require("core-js/modules/es.string.iterator.js");
15
15
  require("core-js/modules/web.dom-collections.iterator.js");
16
16
  require("core-js/modules/es.array.slice.js");
17
+ require("core-js/modules/es.regexp.to-string.js");
17
18
  require("core-js/modules/es.array.from.js");
18
19
  require("core-js/modules/es.regexp.exec.js");
19
20
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
@@ -35,6 +35,7 @@ import "core-js/modules/es.array.iterator.js";
35
35
  import "core-js/modules/es.string.iterator.js";
36
36
  import "core-js/modules/web.dom-collections.iterator.js";
37
37
  import "core-js/modules/es.array.slice.js";
38
+ import "core-js/modules/es.regexp.to-string.js";
38
39
  import "core-js/modules/es.array.from.js";
39
40
  import "core-js/modules/es.regexp.exec.js";
40
41
  import { isDefined, stringify } from "../../helpers/mixed.mjs";
@@ -15,6 +15,7 @@ require("core-js/modules/es.array.iterator.js");
15
15
  require("core-js/modules/es.string.iterator.js");
16
16
  require("core-js/modules/web.dom-collections.iterator.js");
17
17
  require("core-js/modules/es.array.slice.js");
18
+ require("core-js/modules/es.regexp.to-string.js");
18
19
  require("core-js/modules/es.function.name.js");
19
20
  require("core-js/modules/es.array.from.js");
20
21
  require("core-js/modules/es.regexp.exec.js");
@@ -16,6 +16,7 @@ import "core-js/modules/es.array.iterator.js";
16
16
  import "core-js/modules/es.string.iterator.js";
17
17
  import "core-js/modules/web.dom-collections.iterator.js";
18
18
  import "core-js/modules/es.array.slice.js";
19
+ import "core-js/modules/es.regexp.to-string.js";
19
20
  import "core-js/modules/es.function.name.js";
20
21
  import "core-js/modules/es.array.from.js";
21
22
  import "core-js/modules/es.regexp.exec.js";
package/helpers/mixed.js CHANGED
@@ -152,7 +152,7 @@ var domMessages = {
152
152
  function _injectProductInfo(key, element) {
153
153
  var hasValidType = !isEmpty(key);
154
154
  var isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
155
- var hotVersion = "12.4.0";
155
+ var hotVersion = "13.0.0-next-4dc1066-20230615";
156
156
  var keyValidityDate;
157
157
  var consoleMessageState = 'invalid';
158
158
  var domMessageState = 'invalid';
@@ -160,7 +160,7 @@ function _injectProductInfo(key, element) {
160
160
  var schemaValidity = _checkKeySchema(key);
161
161
  if (hasValidType || isNonCommercial || schemaValidity) {
162
162
  if (schemaValidity) {
163
- var releaseDate = (0, _moment.default)("23/05/2023", 'DD/MM/YYYY');
163
+ var releaseDate = (0, _moment.default)("22/06/2023", 'DD/MM/YYYY');
164
164
  var releaseDays = Math.floor(releaseDate.toDate().getTime() / 8.64e7);
165
165
  var keyValidityDays = _extractTime(key);
166
166
  keyValidityDate = (0, _moment.default)((keyValidityDays + 1) * 8.64e7, 'x').format('MMMM DD, YYYY');
package/helpers/mixed.mjs CHANGED
@@ -142,7 +142,7 @@ var domMessages = {
142
142
  export function _injectProductInfo(key, element) {
143
143
  var hasValidType = !isEmpty(key);
144
144
  var isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
145
- var hotVersion = "12.4.0";
145
+ var hotVersion = "13.0.0-next-4dc1066-20230615";
146
146
  var keyValidityDate;
147
147
  var consoleMessageState = 'invalid';
148
148
  var domMessageState = 'invalid';
@@ -150,7 +150,7 @@ export function _injectProductInfo(key, element) {
150
150
  var schemaValidity = _checkKeySchema(key);
151
151
  if (hasValidType || isNonCommercial || schemaValidity) {
152
152
  if (schemaValidity) {
153
- var releaseDate = moment("23/05/2023", 'DD/MM/YYYY');
153
+ var releaseDate = moment("22/06/2023", 'DD/MM/YYYY');
154
154
  var releaseDays = Math.floor(releaseDate.toDate().getTime() / 8.64e7);
155
155
  var keyValidityDays = _extractTime(key);
156
156
  keyValidityDate = moment((keyValidityDays + 1) * 8.64e7, 'x').format('MMMM DD, YYYY');
package/helpers/object.js CHANGED
@@ -30,6 +30,8 @@ require("core-js/modules/es.array.fill.js");
30
30
  require("core-js/modules/es.array.includes.js");
31
31
  require("core-js/modules/es.string.includes.js");
32
32
  require("core-js/modules/es.object.to-string.js");
33
+ require("core-js/modules/es.regexp.to-string.js");
34
+ require("core-js/modules/es.object.keys.js");
33
35
  require("core-js/modules/web.dom-collections.for-each.js");
34
36
  var _array = require("./array");
35
37
  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 +6,8 @@ import "core-js/modules/es.array.fill.js";
6
6
  import "core-js/modules/es.array.includes.js";
7
7
  import "core-js/modules/es.string.includes.js";
8
8
  import "core-js/modules/es.object.to-string.js";
9
+ import "core-js/modules/es.regexp.to-string.js";
10
+ import "core-js/modules/es.object.keys.js";
9
11
  import "core-js/modules/web.dom-collections.for-each.js";
10
12
  import "core-js/modules/es.symbol.js";
11
13
  import "core-js/modules/es.symbol.description.js";
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "url": "https://github.com/handsontable/handsontable/issues"
11
11
  },
12
12
  "author": "Handsoncode <hello@handsontable.com>",
13
- "version": "12.4.0",
13
+ "version": "13.0.0-next-4dc1066-20230615",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",
package/pluginHooks.d.ts CHANGED
@@ -155,7 +155,6 @@ export interface Events {
155
155
  afterViewRender?: (isForced: boolean) => void;
156
156
  beforeAddChild?: (parent: RowObject, element?: RowObject, index?: number) => void;
157
157
  beforeAutofill?: (selectionData: CellValue[][], sourceRange: CellRange, targetRange: CellRange, direction: 'up' | 'down' | 'left' | 'right') => CellValue[][] | boolean | void;
158
- beforeAutofillInsidePopulate?: (index: CellCoords, direction: 'up' | 'down' | 'left' | 'right', input: CellValue[][], deltas: any[]) => void;
159
158
  beforeCellAlignment?: (stateBefore: { [row: number]: string[] }, range: CellRange[], type: 'horizontal' | 'vertical',
160
159
  alignmentClass: 'htLeft' | 'htCenter' | 'htRight' | 'htJustify' | 'htTop' | 'htMiddle' | 'htBottom') => void;
161
160
  beforeChange?: (changes: Array<CellChange | null>, source: ChangeSource) => void | boolean;
package/pluginHooks.js CHANGED
@@ -1983,17 +1983,6 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
1983
1983
  * @param {number} rowHeaderWidth Row header width.
1984
1984
  */
1985
1985
  'modifyRowHeaderWidth',
1986
- /**
1987
- * Fired from the `populateFromArray` method during the `autofill` process. Fired for each "autofilled" cell individually.
1988
- *
1989
- * @deprecated
1990
- * @event Hooks#beforeAutofillInsidePopulate
1991
- * @param {object} index Object containing `row` and `col` properties, defining the number of rows/columns from the initial cell of the autofill.
1992
- * @param {string} direction Declares the direction of the autofill. Possible values: `up`, `down`, `left`, `right`.
1993
- * @param {Array[]} input Contains an array of rows with data being used in the autofill.
1994
- * @param {Array} deltas The deltas array passed to the `populateFromArray` method.
1995
- */
1996
- 'beforeAutofillInsidePopulate',
1997
1986
  /**
1998
1987
  * Fired when the start of the selection is being modified (e.g. Moving the selection with the arrow keys).
1999
1988
  *
@@ -2414,7 +2403,7 @@ var REMOVED_HOOKS = new Map([['modifyRow', '8.0.0'], ['modifyCol', '8.0.0'], ['u
2414
2403
  * @type {Map<string, string>}
2415
2404
  */
2416
2405
  /* eslint-enable jsdoc/require-description-complete-sentence */
2417
- var DEPRECATED_HOOKS = new Map([['beforeAutofillInsidePopulate', 'The plugin hook "beforeAutofillInsidePopulate" is deprecated and will be removed in the next major release.']]);
2406
+ var DEPRECATED_HOOKS = new Map([]);
2418
2407
  var Hooks = /*#__PURE__*/function () {
2419
2408
  /**
2420
2409
  *
package/pluginHooks.mjs CHANGED
@@ -1980,17 +1980,6 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
1980
1980
  * @param {number} rowHeaderWidth Row header width.
1981
1981
  */
1982
1982
  'modifyRowHeaderWidth',
1983
- /**
1984
- * Fired from the `populateFromArray` method during the `autofill` process. Fired for each "autofilled" cell individually.
1985
- *
1986
- * @deprecated
1987
- * @event Hooks#beforeAutofillInsidePopulate
1988
- * @param {object} index Object containing `row` and `col` properties, defining the number of rows/columns from the initial cell of the autofill.
1989
- * @param {string} direction Declares the direction of the autofill. Possible values: `up`, `down`, `left`, `right`.
1990
- * @param {Array[]} input Contains an array of rows with data being used in the autofill.
1991
- * @param {Array} deltas The deltas array passed to the `populateFromArray` method.
1992
- */
1993
- 'beforeAutofillInsidePopulate',
1994
1983
  /**
1995
1984
  * Fired when the start of the selection is being modified (e.g. Moving the selection with the arrow keys).
1996
1985
  *
@@ -2411,7 +2400,7 @@ var REMOVED_HOOKS = new Map([['modifyRow', '8.0.0'], ['modifyCol', '8.0.0'], ['u
2411
2400
  * @type {Map<string, string>}
2412
2401
  */
2413
2402
  /* eslint-enable jsdoc/require-description-complete-sentence */
2414
- var DEPRECATED_HOOKS = new Map([['beforeAutofillInsidePopulate', 'The plugin hook "beforeAutofillInsidePopulate" is deprecated and will be removed in the next major release.']]);
2403
+ var DEPRECATED_HOOKS = new Map([]);
2415
2404
  var Hooks = /*#__PURE__*/function () {
2416
2405
  /**
2417
2406
  *
@@ -12,6 +12,7 @@ require("core-js/modules/es.symbol.js");
12
12
  require("core-js/modules/es.symbol.description.js");
13
13
  require("core-js/modules/es.number.constructor.js");
14
14
  require("core-js/modules/es.symbol.iterator.js");
15
+ require("core-js/modules/es.regexp.to-string.js");
15
16
  require("core-js/modules/es.function.name.js");
16
17
  require("core-js/modules/es.regexp.exec.js");
17
18
  exports.__esModule = true;
@@ -39,6 +39,7 @@ import "core-js/modules/es.symbol.js";
39
39
  import "core-js/modules/es.symbol.description.js";
40
40
  import "core-js/modules/es.number.constructor.js";
41
41
  import "core-js/modules/es.symbol.iterator.js";
42
+ import "core-js/modules/es.regexp.to-string.js";
42
43
  import "core-js/modules/es.function.name.js";
43
44
  import "core-js/modules/es.regexp.exec.js";
44
45
  import { BasePlugin } from "../base/index.mjs";
@@ -14,6 +14,7 @@ require("core-js/modules/es.symbol.iterator.js");
14
14
  require("core-js/modules/es.array.iterator.js");
15
15
  require("core-js/modules/es.string.iterator.js");
16
16
  require("core-js/modules/web.dom-collections.iterator.js");
17
+ require("core-js/modules/es.regexp.to-string.js");
17
18
  require("core-js/modules/es.function.name.js");
18
19
  require("core-js/modules/es.array.from.js");
19
20
  require("core-js/modules/es.regexp.exec.js");
@@ -16,6 +16,7 @@ import "core-js/modules/es.symbol.iterator.js";
16
16
  import "core-js/modules/es.array.iterator.js";
17
17
  import "core-js/modules/es.string.iterator.js";
18
18
  import "core-js/modules/web.dom-collections.iterator.js";
19
+ import "core-js/modules/es.regexp.to-string.js";
19
20
  import "core-js/modules/es.function.name.js";
20
21
  import "core-js/modules/es.array.from.js";
21
22
  import "core-js/modules/es.regexp.exec.js";
@@ -15,6 +15,7 @@ require("core-js/modules/es.array.iterator.js");
15
15
  require("core-js/modules/es.string.iterator.js");
16
16
  require("core-js/modules/web.dom-collections.iterator.js");
17
17
  require("core-js/modules/es.array.slice.js");
18
+ require("core-js/modules/es.regexp.to-string.js");
18
19
  require("core-js/modules/es.function.name.js");
19
20
  require("core-js/modules/es.array.from.js");
20
21
  require("core-js/modules/es.regexp.exec.js");
@@ -297,7 +298,6 @@ var Autofill = /*#__PURE__*/function (_BasePlugin) {
297
298
  this.hot.render();
298
299
  return false;
299
300
  }
300
- var deltas = (0, _utils.getDeltas)(startOfDragCoords, endOfDragCoords, selectionData, directionOfDrag);
301
301
  var fillData = beforeAutofillHookResult;
302
302
  var res = beforeAutofillHookResult;
303
303
  if (['up', 'left'].indexOf(directionOfDrag) > -1 && !(res.length === 1 && res[0].length === 0)) {
@@ -319,7 +319,7 @@ var Autofill = /*#__PURE__*/function (_BasePlugin) {
319
319
  }
320
320
  }
321
321
  }
322
- this.hot.populateFromArray(startOfDragCoords.row, startOfDragCoords.col, fillData, endOfDragCoords.row, endOfDragCoords.col, "".concat(this.pluginName, ".fill"), null, directionOfDrag, deltas);
322
+ this.hot.populateFromArray(startOfDragCoords.row, startOfDragCoords.col, fillData, endOfDragCoords.row, endOfDragCoords.col, "".concat(this.pluginName, ".fill"), null);
323
323
  this.setSelection(cornersOfSelectionAndDragAreas);
324
324
  this.hot.runHooks('afterAutofill', fillData, sourceRange, targetRange, directionOfDrag);
325
325
  this.hot.render();
@@ -29,6 +29,7 @@ import "core-js/modules/es.array.iterator.js";
29
29
  import "core-js/modules/es.string.iterator.js";
30
30
  import "core-js/modules/web.dom-collections.iterator.js";
31
31
  import "core-js/modules/es.array.slice.js";
32
+ import "core-js/modules/es.regexp.to-string.js";
32
33
  import "core-js/modules/es.function.name.js";
33
34
  import "core-js/modules/es.array.from.js";
34
35
  import "core-js/modules/es.regexp.exec.js";
@@ -51,7 +52,7 @@ import Hooks from "../../pluginHooks.mjs";
51
52
  import { offset, outerHeight, outerWidth } from "../../helpers/dom/element.mjs";
52
53
  import { arrayEach, arrayMap } from "../../helpers/array.mjs";
53
54
  import EventManager from "../../eventManager.mjs";
54
- import { getDeltas, getDragDirectionAndRange, DIRECTIONS, getMappedFillHandleSetting } from "./utils.mjs";
55
+ import { getDragDirectionAndRange, DIRECTIONS, getMappedFillHandleSetting } from "./utils.mjs";
55
56
  Hooks.getSingleton().register('modifyAutofillRange');
56
57
  Hooks.getSingleton().register('beforeAutofill');
57
58
  Hooks.getSingleton().register('afterAutofill');
@@ -291,7 +292,6 @@ export var Autofill = /*#__PURE__*/function (_BasePlugin) {
291
292
  this.hot.render();
292
293
  return false;
293
294
  }
294
- var deltas = getDeltas(startOfDragCoords, endOfDragCoords, selectionData, directionOfDrag);
295
295
  var fillData = beforeAutofillHookResult;
296
296
  var res = beforeAutofillHookResult;
297
297
  if (['up', 'left'].indexOf(directionOfDrag) > -1 && !(res.length === 1 && res[0].length === 0)) {
@@ -313,7 +313,7 @@ export var Autofill = /*#__PURE__*/function (_BasePlugin) {
313
313
  }
314
314
  }
315
315
  }
316
- this.hot.populateFromArray(startOfDragCoords.row, startOfDragCoords.col, fillData, endOfDragCoords.row, endOfDragCoords.col, "".concat(this.pluginName, ".fill"), null, directionOfDrag, deltas);
316
+ this.hot.populateFromArray(startOfDragCoords.row, startOfDragCoords.col, fillData, endOfDragCoords.row, endOfDragCoords.col, "".concat(this.pluginName, ".fill"), null);
317
317
  this.setSelection(cornersOfSelectionAndDragAreas);
318
318
  this.hot.runHooks('afterAutofill', fillData, sourceRange, targetRange, directionOfDrag);
319
319
  this.hot.render();
@@ -2,10 +2,8 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports.DIRECTIONS = void 0;
5
- exports.getDeltas = getDeltas;
6
5
  exports.getDragDirectionAndRange = getDragDirectionAndRange;
7
6
  exports.getMappedFillHandleSetting = getMappedFillHandleSetting;
8
- require("core-js/modules/es.array.index-of.js");
9
7
  require("core-js/modules/es.object.keys.js");
10
8
  var _object = require("../../helpers/object");
11
9
  var _mixed = require("../../helpers/mixed");
@@ -14,43 +12,6 @@ var DIRECTIONS = {
14
12
  vertical: 'vertical'
15
13
  };
16
14
 
17
- /**
18
- * Get deltas array.
19
- *
20
- * @param {CellCoords} start The point in the grid where the selection starts.
21
- * @param {CellCoords} end The point in the grid where the selection ends.
22
- * @param {Array} data The chunk of the data which belongs to the selected box.
23
- * @param {string} direction The selection direction.
24
- * @returns {Array}
25
- */
26
- exports.DIRECTIONS = DIRECTIONS;
27
- function getDeltas(start, end, data, direction) {
28
- var rowsLength = data.length;
29
- var columnsLength = data ? data[0].length : 0;
30
- var deltas = [];
31
- var diffRow = end.row - start.row;
32
- var diffCol = end.col - start.col;
33
- if (['down', 'up'].indexOf(direction) !== -1) {
34
- var arr = [];
35
- for (var col = 0; col < diffCol; col++) {
36
- var startValue = parseInt(data[0][col], 10);
37
- var endValue = parseInt(data[rowsLength - 1][col], 10);
38
- var delta = (direction === 'down' ? endValue - startValue : startValue - endValue) / (rowsLength - 1) || 0;
39
- arr.push(delta);
40
- }
41
- deltas.push(arr);
42
- }
43
- if (['right', 'left'].indexOf(direction) !== -1) {
44
- for (var row = 0; row < diffRow; row++) {
45
- var _startValue = parseInt(data[row][0], 10);
46
- var _endValue = parseInt(data[row][columnsLength - 1], 10);
47
- var _delta = (direction === 'right' ? _endValue - _startValue : _startValue - _endValue) / (columnsLength - 1) || 0;
48
- deltas.push([_delta]);
49
- }
50
- }
51
- return deltas;
52
- }
53
-
54
15
  /**
55
16
  * Get direction between positions and cords of selections difference (drag area).
56
17
  *
@@ -59,6 +20,7 @@ function getDeltas(start, end, data, direction) {
59
20
  * @param {Function} cellCoordsFactory The function factory for CellCoords objects.
60
21
  * @returns {{direction: string, start: CellCoords, end: CellCoords}}
61
22
  */
23
+ exports.DIRECTIONS = DIRECTIONS;
62
24
  function getDragDirectionAndRange(startSelection, endSelection, cellCoordsFactory) {
63
25
  var startOfDragCoords;
64
26
  var endOfDragCoords;
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.index-of.js";
2
1
  import "core-js/modules/es.object.keys.js";
3
2
  import { isObject } from "../../helpers/object.mjs";
4
3
  import { isDefined } from "../../helpers/mixed.mjs";
@@ -7,42 +6,6 @@ export var DIRECTIONS = {
7
6
  vertical: 'vertical'
8
7
  };
9
8
 
10
- /**
11
- * Get deltas array.
12
- *
13
- * @param {CellCoords} start The point in the grid where the selection starts.
14
- * @param {CellCoords} end The point in the grid where the selection ends.
15
- * @param {Array} data The chunk of the data which belongs to the selected box.
16
- * @param {string} direction The selection direction.
17
- * @returns {Array}
18
- */
19
- export function getDeltas(start, end, data, direction) {
20
- var rowsLength = data.length;
21
- var columnsLength = data ? data[0].length : 0;
22
- var deltas = [];
23
- var diffRow = end.row - start.row;
24
- var diffCol = end.col - start.col;
25
- if (['down', 'up'].indexOf(direction) !== -1) {
26
- var arr = [];
27
- for (var col = 0; col < diffCol; col++) {
28
- var startValue = parseInt(data[0][col], 10);
29
- var endValue = parseInt(data[rowsLength - 1][col], 10);
30
- var delta = (direction === 'down' ? endValue - startValue : startValue - endValue) / (rowsLength - 1) || 0;
31
- arr.push(delta);
32
- }
33
- deltas.push(arr);
34
- }
35
- if (['right', 'left'].indexOf(direction) !== -1) {
36
- for (var row = 0; row < diffRow; row++) {
37
- var _startValue = parseInt(data[row][0], 10);
38
- var _endValue = parseInt(data[row][columnsLength - 1], 10);
39
- var _delta = (direction === 'right' ? _endValue - _startValue : _startValue - _endValue) / (columnsLength - 1) || 0;
40
- deltas.push([_delta]);
41
- }
42
- }
43
- return deltas;
44
- }
45
-
46
9
  /**
47
10
  * Get direction between positions and cords of selections difference (drag area).
48
11
  *
@@ -7,6 +7,7 @@ require("core-js/modules/es.symbol.description.js");
7
7
  require("core-js/modules/es.number.constructor.js");
8
8
  require("core-js/modules/es.symbol.iterator.js");
9
9
  require("core-js/modules/es.array.slice.js");
10
+ require("core-js/modules/es.regexp.to-string.js");
10
11
  require("core-js/modules/es.function.name.js");
11
12
  require("core-js/modules/es.array.from.js");
12
13
  require("core-js/modules/es.regexp.exec.js");
@@ -32,6 +32,7 @@ import "core-js/modules/es.symbol.description.js";
32
32
  import "core-js/modules/es.number.constructor.js";
33
33
  import "core-js/modules/es.symbol.iterator.js";
34
34
  import "core-js/modules/es.array.slice.js";
35
+ import "core-js/modules/es.regexp.to-string.js";
35
36
  import "core-js/modules/es.function.name.js";
36
37
  import "core-js/modules/es.array.from.js";
37
38
  import "core-js/modules/es.regexp.exec.js";
@@ -16,6 +16,7 @@ require("core-js/modules/es.string.iterator.js");
16
16
  require("core-js/modules/web.dom-collections.iterator.js");
17
17
  require("core-js/modules/es.array.from.js");
18
18
  require("core-js/modules/es.array.slice.js");
19
+ require("core-js/modules/es.regexp.to-string.js");
19
20
  require("core-js/modules/es.function.name.js");
20
21
  require("core-js/modules/es.regexp.exec.js");
21
22
  exports.__esModule = true;
@@ -16,6 +16,7 @@ import "core-js/modules/es.string.iterator.js";
16
16
  import "core-js/modules/web.dom-collections.iterator.js";
17
17
  import "core-js/modules/es.array.from.js";
18
18
  import "core-js/modules/es.array.slice.js";
19
+ import "core-js/modules/es.regexp.to-string.js";
19
20
  import "core-js/modules/es.function.name.js";
20
21
  import "core-js/modules/es.regexp.exec.js";
21
22
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
@@ -13,6 +13,7 @@ require("core-js/modules/es.object.get-own-property-descriptor.js");
13
13
  require("core-js/modules/es.symbol.iterator.js");
14
14
  require("core-js/modules/es.array.from.js");
15
15
  require("core-js/modules/es.array.slice.js");
16
+ require("core-js/modules/es.regexp.to-string.js");
16
17
  require("core-js/modules/es.function.name.js");
17
18
  require("core-js/modules/es.regexp.exec.js");
18
19
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
@@ -48,6 +48,7 @@ import "core-js/modules/es.object.get-own-property-descriptor.js";
48
48
  import "core-js/modules/es.symbol.iterator.js";
49
49
  import "core-js/modules/es.array.from.js";
50
50
  import "core-js/modules/es.array.slice.js";
51
+ import "core-js/modules/es.regexp.to-string.js";
51
52
  import "core-js/modules/es.function.name.js";
52
53
  import "core-js/modules/es.regexp.exec.js";
53
54
  import { BasePlugin } from "../base/index.mjs";
@@ -15,6 +15,7 @@ require("core-js/modules/web.dom-collections.for-each.js");
15
15
  require("core-js/modules/es.object.get-own-property-descriptors.js");
16
16
  require("core-js/modules/es.symbol.iterator.js");
17
17
  require("core-js/modules/es.array.from.js");
18
+ require("core-js/modules/es.regexp.to-string.js");
18
19
  require("core-js/modules/es.function.name.js");
19
20
  require("core-js/modules/es.regexp.exec.js");
20
21
  exports.__esModule = true;
@@ -14,6 +14,7 @@ import "core-js/modules/web.dom-collections.for-each.js";
14
14
  import "core-js/modules/es.object.get-own-property-descriptors.js";
15
15
  import "core-js/modules/es.symbol.iterator.js";
16
16
  import "core-js/modules/es.array.from.js";
17
+ import "core-js/modules/es.regexp.to-string.js";
17
18
  import "core-js/modules/es.function.name.js";
18
19
  import "core-js/modules/es.regexp.exec.js";
19
20
  var _excluded = ["column"],
@@ -5,6 +5,7 @@ require("core-js/modules/es.array.iterator.js");
5
5
  require("core-js/modules/es.string.iterator.js");
6
6
  require("core-js/modules/web.dom-collections.iterator.js");
7
7
  require("core-js/modules/es.array.slice.js");
8
+ require("core-js/modules/es.regexp.to-string.js");
8
9
  require("core-js/modules/es.function.name.js");
9
10
  require("core-js/modules/es.array.from.js");
10
11
  require("core-js/modules/es.regexp.exec.js");
@@ -22,6 +22,7 @@ import "core-js/modules/es.array.iterator.js";
22
22
  import "core-js/modules/es.string.iterator.js";
23
23
  import "core-js/modules/web.dom-collections.iterator.js";
24
24
  import "core-js/modules/es.array.slice.js";
25
+ import "core-js/modules/es.regexp.to-string.js";
25
26
  import "core-js/modules/es.function.name.js";
26
27
  import "core-js/modules/es.array.from.js";
27
28
  import "core-js/modules/es.regexp.exec.js";
@@ -8,6 +8,7 @@ require("core-js/modules/es.array.iterator.js");
8
8
  require("core-js/modules/es.string.iterator.js");
9
9
  require("core-js/modules/web.dom-collections.iterator.js");
10
10
  require("core-js/modules/es.array.from.js");
11
+ require("core-js/modules/es.regexp.to-string.js");
11
12
  require("core-js/modules/es.function.name.js");
12
13
  require("core-js/modules/es.regexp.exec.js");
13
14
  exports.__esModule = true;
@@ -7,6 +7,7 @@ import "core-js/modules/es.array.iterator.js";
7
7
  import "core-js/modules/es.string.iterator.js";
8
8
  import "core-js/modules/web.dom-collections.iterator.js";
9
9
  import "core-js/modules/es.array.from.js";
10
+ import "core-js/modules/es.regexp.to-string.js";
10
11
  import "core-js/modules/es.function.name.js";
11
12
  import "core-js/modules/es.regexp.exec.js";
12
13
  function _toArray(arr) { return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest(); }
@@ -9,6 +9,7 @@ require("core-js/modules/es.array.iterator.js");
9
9
  require("core-js/modules/es.string.iterator.js");
10
10
  require("core-js/modules/web.dom-collections.iterator.js");
11
11
  require("core-js/modules/es.array.slice.js");
12
+ require("core-js/modules/es.regexp.to-string.js");
12
13
  require("core-js/modules/es.function.name.js");
13
14
  require("core-js/modules/es.array.from.js");
14
15
  require("core-js/modules/es.regexp.exec.js");
@@ -6,6 +6,7 @@ import "core-js/modules/es.array.iterator.js";
6
6
  import "core-js/modules/es.string.iterator.js";
7
7
  import "core-js/modules/web.dom-collections.iterator.js";
8
8
  import "core-js/modules/es.array.slice.js";
9
+ import "core-js/modules/es.regexp.to-string.js";
9
10
  import "core-js/modules/es.function.name.js";
10
11
  import "core-js/modules/es.array.from.js";
11
12
  import "core-js/modules/es.regexp.exec.js";
@@ -9,6 +9,7 @@ require("core-js/modules/es.array.iterator.js");
9
9
  require("core-js/modules/es.string.iterator.js");
10
10
  require("core-js/modules/web.dom-collections.iterator.js");
11
11
  require("core-js/modules/es.array.slice.js");
12
+ require("core-js/modules/es.regexp.to-string.js");
12
13
  require("core-js/modules/es.function.name.js");
13
14
  require("core-js/modules/es.array.from.js");
14
15
  require("core-js/modules/es.regexp.exec.js");
@@ -6,6 +6,7 @@ import "core-js/modules/es.array.iterator.js";
6
6
  import "core-js/modules/es.string.iterator.js";
7
7
  import "core-js/modules/web.dom-collections.iterator.js";
8
8
  import "core-js/modules/es.array.slice.js";
9
+ import "core-js/modules/es.regexp.to-string.js";
9
10
  import "core-js/modules/es.function.name.js";
10
11
  import "core-js/modules/es.array.from.js";
11
12
  import "core-js/modules/es.regexp.exec.js";
@@ -12,6 +12,7 @@ require("core-js/modules/es.reflect.get.js");
12
12
  require("core-js/modules/es.object.get-own-property-descriptor.js");
13
13
  require("core-js/modules/es.symbol.iterator.js");
14
14
  require("core-js/modules/es.array.slice.js");
15
+ require("core-js/modules/es.regexp.to-string.js");
15
16
  require("core-js/modules/es.function.name.js");
16
17
  exports.__esModule = true;
17
18
  exports.PLUGIN_PRIORITY = exports.PLUGIN_KEY = exports.CopyPaste = void 0;
@@ -54,6 +54,7 @@ import "core-js/modules/es.reflect.get.js";
54
54
  import "core-js/modules/es.object.get-own-property-descriptor.js";
55
55
  import "core-js/modules/es.symbol.iterator.js";
56
56
  import "core-js/modules/es.array.slice.js";
57
+ import "core-js/modules/es.regexp.to-string.js";
57
58
  import "core-js/modules/es.function.name.js";
58
59
  import { BasePlugin } from "../base/index.mjs";
59
60
  import Hooks from "../../pluginHooks.mjs";
@@ -10,6 +10,7 @@ require("core-js/modules/es.array.iterator.js");
10
10
  require("core-js/modules/es.string.iterator.js");
11
11
  require("core-js/modules/web.dom-collections.iterator.js");
12
12
  require("core-js/modules/es.array.slice.js");
13
+ require("core-js/modules/es.regexp.to-string.js");
13
14
  require("core-js/modules/es.function.name.js");
14
15
  require("core-js/modules/es.array.from.js");
15
16
  require("core-js/modules/es.regexp.exec.js");
@@ -26,6 +26,7 @@ import "core-js/modules/es.array.iterator.js";
26
26
  import "core-js/modules/es.string.iterator.js";
27
27
  import "core-js/modules/web.dom-collections.iterator.js";
28
28
  import "core-js/modules/es.array.slice.js";
29
+ import "core-js/modules/es.regexp.to-string.js";
29
30
  import "core-js/modules/es.function.name.js";
30
31
  import "core-js/modules/es.array.from.js";
31
32
  import "core-js/modules/es.regexp.exec.js";
@@ -5,6 +5,7 @@ require("core-js/modules/es.array.iterator.js");
5
5
  require("core-js/modules/es.string.iterator.js");
6
6
  require("core-js/modules/web.dom-collections.iterator.js");
7
7
  require("core-js/modules/es.array.slice.js");
8
+ require("core-js/modules/es.regexp.to-string.js");
8
9
  require("core-js/modules/es.function.name.js");
9
10
  require("core-js/modules/es.array.from.js");
10
11
  require("core-js/modules/es.regexp.exec.js");
@@ -9,6 +9,7 @@ import "core-js/modules/es.array.iterator.js";
9
9
  import "core-js/modules/es.string.iterator.js";
10
10
  import "core-js/modules/web.dom-collections.iterator.js";
11
11
  import "core-js/modules/es.array.slice.js";
12
+ import "core-js/modules/es.regexp.to-string.js";
12
13
  import "core-js/modules/es.function.name.js";
13
14
  import "core-js/modules/es.array.from.js";
14
15
  import "core-js/modules/es.regexp.exec.js";
@@ -14,6 +14,7 @@ require("core-js/modules/es.array.iterator.js");
14
14
  require("core-js/modules/es.string.iterator.js");
15
15
  require("core-js/modules/web.dom-collections.iterator.js");
16
16
  require("core-js/modules/es.array.slice.js");
17
+ require("core-js/modules/es.regexp.to-string.js");
17
18
  require("core-js/modules/es.array.from.js");
18
19
  require("core-js/modules/es.regexp.exec.js");
19
20
  require("core-js/modules/es.weak-map.js");
@@ -23,6 +23,7 @@ import "core-js/modules/es.array.iterator.js";
23
23
  import "core-js/modules/es.string.iterator.js";
24
24
  import "core-js/modules/web.dom-collections.iterator.js";
25
25
  import "core-js/modules/es.array.slice.js";
26
+ import "core-js/modules/es.regexp.to-string.js";
26
27
  import "core-js/modules/es.array.from.js";
27
28
  import "core-js/modules/es.regexp.exec.js";
28
29
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }