handsontable 12.3.0 → 12.3.1-next-712715f-20230130

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.
Files changed (188) hide show
  1. package/3rdparty/walkontable/src/border.js +4 -4
  2. package/3rdparty/walkontable/src/border.mjs +4 -4
  3. package/3rdparty/walkontable/src/overlays.js +20 -2
  4. package/3rdparty/walkontable/src/overlays.mjs +20 -2
  5. package/3rdparty/walkontable/src/selection.js +2 -2
  6. package/3rdparty/walkontable/src/selection.mjs +2 -2
  7. package/3rdparty/walkontable/src/table.js +35 -8
  8. package/3rdparty/walkontable/src/table.mjs +35 -8
  9. package/CHANGELOG.md +123 -108
  10. package/base.js +2 -2
  11. package/base.mjs +2 -2
  12. package/core.js +10 -4
  13. package/core.mjs +10 -4
  14. package/dataMap/dataMap.js +1 -1
  15. package/dataMap/dataMap.mjs +1 -1
  16. package/dataMap/metaManager/lazyFactoryMap.js +1 -1
  17. package/dataMap/metaManager/lazyFactoryMap.mjs +1 -1
  18. package/dataMap/metaManager/metaLayers/cellMeta.js +1 -1
  19. package/dataMap/metaManager/metaLayers/cellMeta.mjs +1 -1
  20. package/dataMap/metaManager/metaSchema.js +3 -3
  21. package/dataMap/metaManager/metaSchema.mjs +3 -3
  22. package/dist/handsontable.css +7 -5
  23. package/dist/handsontable.full.css +7 -5
  24. package/dist/handsontable.full.js +4399 -4182
  25. package/dist/handsontable.full.min.css +4 -4
  26. package/dist/handsontable.full.min.js +107 -107
  27. package/dist/handsontable.js +2491 -2286
  28. package/dist/handsontable.min.css +4 -4
  29. package/dist/handsontable.min.js +3 -3
  30. package/dist/languages/all.js +1 -1
  31. package/dist/languages/all.min.js +1 -1
  32. package/dist/languages/ja-JP.js +1 -1
  33. package/dist/languages/ja-JP.min.js +1 -1
  34. package/editorManager.js +2 -2
  35. package/editorManager.mjs +2 -2
  36. package/editors/baseEditor/baseEditor.js +2 -2
  37. package/editors/baseEditor/baseEditor.mjs +2 -2
  38. package/editors/textEditor/textEditor.js +2 -2
  39. package/editors/textEditor/textEditor.mjs +2 -2
  40. package/helpers/dom/element.js +1 -1
  41. package/helpers/dom/element.mjs +1 -1
  42. package/helpers/mixed.js +5 -6
  43. package/helpers/mixed.mjs +5 -6
  44. package/helpers/number.js +1 -1
  45. package/helpers/number.mjs +1 -1
  46. package/i18n/languages/ja-JP.js +1 -1
  47. package/i18n/languages/ja-JP.mjs +2 -2
  48. package/languages/all.js +1 -1
  49. package/languages/index.js +1 -1
  50. package/languages/ja-JP.js +1 -1
  51. package/languages/ja-JP.mjs +2 -2
  52. package/package.json +1 -1
  53. package/plugins/autoColumnSize/autoColumnSize.js +3 -3
  54. package/plugins/autoColumnSize/autoColumnSize.mjs +3 -3
  55. package/plugins/autoRowSize/autoRowSize.js +2 -2
  56. package/plugins/autoRowSize/autoRowSize.mjs +2 -2
  57. package/plugins/autofill/autofill.js +2 -2
  58. package/plugins/autofill/autofill.mjs +2 -2
  59. package/plugins/base/base.js +2 -2
  60. package/plugins/base/base.mjs +2 -2
  61. package/plugins/bindRowsWithHeaders/maps/strictBindsMap.js +1 -1
  62. package/plugins/bindRowsWithHeaders/maps/strictBindsMap.mjs +1 -1
  63. package/plugins/collapsibleColumns/collapsibleColumns.js +1 -1
  64. package/plugins/collapsibleColumns/collapsibleColumns.mjs +1 -1
  65. package/plugins/columnSorting/columnSorting.js +1 -1
  66. package/plugins/columnSorting/columnSorting.mjs +1 -1
  67. package/plugins/columnSorting/columnStatesManager.js +2 -2
  68. package/plugins/columnSorting/columnStatesManager.mjs +2 -2
  69. package/plugins/columnSorting/rootComparator.js +1 -1
  70. package/plugins/columnSorting/rootComparator.mjs +1 -1
  71. package/plugins/contextMenu/predefinedItems/removeColumn.js +2 -2
  72. package/plugins/contextMenu/predefinedItems/removeColumn.mjs +2 -2
  73. package/plugins/contextMenu/predefinedItems/removeRow.js +2 -2
  74. package/plugins/contextMenu/predefinedItems/removeRow.mjs +2 -2
  75. package/plugins/copyPaste/copyPaste.js +2 -2
  76. package/plugins/copyPaste/copyPaste.mjs +2 -2
  77. package/plugins/customBorders/customBorders.js +2 -2
  78. package/plugins/customBorders/customBorders.mjs +2 -2
  79. package/plugins/exportFile/dataProvider.js +2 -2
  80. package/plugins/exportFile/dataProvider.mjs +2 -2
  81. package/plugins/filters/component/value.js +2 -2
  82. package/plugins/filters/component/value.mjs +2 -2
  83. package/plugins/filters/condition/beginsWith.js +2 -2
  84. package/plugins/filters/condition/beginsWith.mjs +2 -2
  85. package/plugins/filters/condition/between.js +2 -2
  86. package/plugins/filters/condition/between.mjs +2 -2
  87. package/plugins/filters/condition/byValue.js +2 -2
  88. package/plugins/filters/condition/byValue.mjs +2 -2
  89. package/plugins/filters/condition/contains.js +2 -2
  90. package/plugins/filters/condition/contains.mjs +2 -2
  91. package/plugins/filters/condition/date/after.js +2 -2
  92. package/plugins/filters/condition/date/after.mjs +2 -2
  93. package/plugins/filters/condition/date/before.js +2 -2
  94. package/plugins/filters/condition/date/before.mjs +2 -2
  95. package/plugins/filters/condition/endsWith.js +2 -2
  96. package/plugins/filters/condition/endsWith.mjs +2 -2
  97. package/plugins/filters/condition/equal.js +2 -2
  98. package/plugins/filters/condition/equal.mjs +2 -2
  99. package/plugins/filters/condition/greaterThan.js +2 -2
  100. package/plugins/filters/condition/greaterThan.mjs +2 -2
  101. package/plugins/filters/condition/greaterThanOrEqual.js +2 -2
  102. package/plugins/filters/condition/greaterThanOrEqual.mjs +2 -2
  103. package/plugins/filters/condition/lessThan.js +2 -2
  104. package/plugins/filters/condition/lessThan.mjs +2 -2
  105. package/plugins/filters/condition/lessThanOrEqual.js +2 -2
  106. package/plugins/filters/condition/lessThanOrEqual.mjs +2 -2
  107. package/plugins/filters/conditionCollection.js +2 -2
  108. package/plugins/filters/conditionCollection.mjs +2 -2
  109. package/plugins/filters/filters.js +2 -2
  110. package/plugins/filters/filters.mjs +2 -2
  111. package/plugins/filters/ui/multipleSelect.js +1 -1
  112. package/plugins/filters/ui/multipleSelect.mjs +1 -1
  113. package/plugins/formulas/formulas.js +2 -2
  114. package/plugins/formulas/formulas.mjs +2 -2
  115. package/plugins/hiddenColumns/contextMenuItem/hideColumn.js +2 -2
  116. package/plugins/hiddenColumns/contextMenuItem/hideColumn.mjs +2 -2
  117. package/plugins/hiddenColumns/contextMenuItem/showColumn.js +1 -1
  118. package/plugins/hiddenColumns/contextMenuItem/showColumn.mjs +1 -1
  119. package/plugins/hiddenRows/contextMenuItem/hideRow.js +2 -2
  120. package/plugins/hiddenRows/contextMenuItem/hideRow.mjs +2 -2
  121. package/plugins/hiddenRows/contextMenuItem/showRow.js +1 -1
  122. package/plugins/hiddenRows/contextMenuItem/showRow.mjs +1 -1
  123. package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.js +2 -2
  124. package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.mjs +2 -2
  125. package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.js +2 -2
  126. package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.mjs +2 -2
  127. package/plugins/mergeCells/calculations/autofill.js +2 -2
  128. package/plugins/mergeCells/calculations/autofill.mjs +2 -2
  129. package/plugins/mergeCells/cellsCollection.js +1 -1
  130. package/plugins/mergeCells/cellsCollection.mjs +1 -1
  131. package/plugins/mergeCells/mergeCells.js +97 -20
  132. package/plugins/mergeCells/mergeCells.mjs +97 -20
  133. package/plugins/multiColumnSorting/rootComparator.js +1 -1
  134. package/plugins/multiColumnSorting/rootComparator.mjs +1 -1
  135. package/plugins/nestedHeaders/stateManager/headersTree.js +2 -2
  136. package/plugins/nestedHeaders/stateManager/headersTree.mjs +2 -2
  137. package/plugins/nestedHeaders/stateManager/settingsNormalizer.js +1 -1
  138. package/plugins/nestedHeaders/stateManager/settingsNormalizer.mjs +1 -1
  139. package/plugins/nestedRows/data/dataManager.js +1 -1
  140. package/plugins/nestedRows/data/dataManager.mjs +1 -1
  141. package/plugins/nestedRows/nestedRows.js +4 -1
  142. package/plugins/nestedRows/nestedRows.mjs +4 -1
  143. package/plugins/nestedRows/ui/collapsing.js +1 -1
  144. package/plugins/nestedRows/ui/collapsing.mjs +1 -1
  145. package/plugins/nestedRows/utils/rowMoveController.js +1 -1
  146. package/plugins/nestedRows/utils/rowMoveController.mjs +1 -1
  147. package/plugins/registry.js +2 -2
  148. package/plugins/registry.mjs +2 -2
  149. package/plugins/search/search.js +1 -1
  150. package/plugins/search/search.mjs +1 -1
  151. package/plugins/undoRedo/undoRedo.js +2 -2
  152. package/plugins/undoRedo/undoRedo.mjs +2 -2
  153. package/selection/highlight/highlight.js +1 -1
  154. package/selection/highlight/highlight.mjs +1 -1
  155. package/selection/selection.js +2 -2
  156. package/selection/selection.mjs +2 -2
  157. package/selection/utils.js +2 -2
  158. package/selection/utils.mjs +2 -2
  159. package/shortcuts/context.js +2 -2
  160. package/shortcuts/context.mjs +2 -2
  161. package/shortcuts/manager.js +9 -0
  162. package/shortcuts/manager.mjs +9 -0
  163. package/shortcuts/recorder.js +3 -0
  164. package/shortcuts/recorder.mjs +3 -0
  165. package/tableView.js +2 -2
  166. package/tableView.mjs +2 -2
  167. package/translations/indexMapper.js +1 -1
  168. package/translations/indexMapper.mjs +1 -1
  169. package/translations/maps/linkedPhysicalIndexToValueMap.js +1 -1
  170. package/translations/maps/linkedPhysicalIndexToValueMap.mjs +1 -1
  171. package/translations/maps/utils/indexesSequence.js +1 -1
  172. package/translations/maps/utils/indexesSequence.mjs +1 -1
  173. package/translations/maps/utils/physicallyIndexed.js +1 -1
  174. package/translations/maps/utils/physicallyIndexed.mjs +1 -1
  175. package/utils/dataStructures/priorityMap.js +2 -2
  176. package/utils/dataStructures/priorityMap.mjs +2 -2
  177. package/utils/dataStructures/tree.js +1 -1
  178. package/utils/dataStructures/tree.mjs +1 -1
  179. package/utils/dataStructures/uniqueMap.js +2 -2
  180. package/utils/dataStructures/uniqueMap.mjs +2 -2
  181. package/utils/dataStructures/uniqueSet.js +1 -1
  182. package/utils/dataStructures/uniqueSet.mjs +1 -1
  183. package/utils/ghostTable.js +2 -2
  184. package/utils/ghostTable.mjs +2 -2
  185. package/utils/parseTable.js +1 -1
  186. package/utils/parseTable.mjs +1 -1
  187. package/utils/staticRegister.js +1 -1
  188. package/utils/staticRegister.mjs +1 -1
@@ -25,8 +25,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
25
25
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
26
26
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
27
27
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
28
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
29
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
28
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
29
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
30
30
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
31
31
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
32
32
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
@@ -92,14 +92,14 @@ var Border = /*#__PURE__*/function () {
92
92
  this.eventManager.addEventListener(documentBody, 'mouseup', function () {
93
93
  return _this2.onMouseUp();
94
94
  });
95
- var _loop = function _loop(c, len) {
95
+ var _loop = function _loop(c) {
96
96
  var element = _this2.main.childNodes[c];
97
97
  _this2.eventManager.addEventListener(element, 'mouseenter', function (event) {
98
98
  return _this2.onMouseEnter(event, _this2.main.childNodes[c]);
99
99
  });
100
100
  };
101
101
  for (var c = 0, len = this.main.childNodes.length; c < len; c++) {
102
- _loop(c, len);
102
+ _loop(c);
103
103
  }
104
104
  }
105
105
 
@@ -2,8 +2,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
2
2
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3
3
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
4
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
6
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
5
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
6
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
7
7
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
8
  import "core-js/modules/es.array.join.js";
9
9
  import "core-js/modules/es.symbol.to-primitive.js";
@@ -88,14 +88,14 @@ var Border = /*#__PURE__*/function () {
88
88
  this.eventManager.addEventListener(documentBody, 'mouseup', function () {
89
89
  return _this2.onMouseUp();
90
90
  });
91
- var _loop = function _loop(c, len) {
91
+ var _loop = function _loop(c) {
92
92
  var element = _this2.main.childNodes[c];
93
93
  _this2.eventManager.addEventListener(element, 'mouseenter', function (event) {
94
94
  return _this2.onMouseEnter(event, _this2.main.childNodes[c]);
95
95
  });
96
96
  };
97
97
  for (var c = 0, len = this.main.childNodes.length; c < len; c++) {
98
- _loop(c, len);
98
+ _loop(c);
99
99
  }
100
100
  }
101
101
 
@@ -163,11 +163,29 @@ var Overlays = /*#__PURE__*/function () {
163
163
  }
164
164
 
165
165
  /**
166
- * Retrieve browser line height and apply its value to `browserLineHeight`.
166
+ * Get the list of references to all overlays.
167
167
  *
168
- * @private
168
+ * @param {boolean} [includeMaster = false] If set to `true`, the list will contain the master table as the last
169
+ * element.
170
+ * @returns {(TopOverlay|TopInlineStartCornerOverlay|InlineStartOverlay|BottomOverlay|BottomInlineStartCornerOverlay)[]}
169
171
  */
170
172
  _createClass(Overlays, [{
173
+ key: "getOverlays",
174
+ value: function getOverlays() {
175
+ var includeMaster = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
176
+ var overlays = [this.topOverlay, this.topInlineStartCornerOverlay, this.inlineStartOverlay, this.bottomOverlay, this.bottomInlineStartCornerOverlay];
177
+ if (includeMaster) {
178
+ overlays.push(this.wtTable);
179
+ }
180
+ return overlays;
181
+ }
182
+
183
+ /**
184
+ * Retrieve browser line height and apply its value to `browserLineHeight`.
185
+ *
186
+ * @private
187
+ */
188
+ }, {
171
189
  key: "initBrowserLineHeight",
172
190
  value: function initBrowserLineHeight() {
173
191
  var _this$domBindings2 = this.domBindings,
@@ -159,11 +159,29 @@ var Overlays = /*#__PURE__*/function () {
159
159
  }
160
160
 
161
161
  /**
162
- * Retrieve browser line height and apply its value to `browserLineHeight`.
162
+ * Get the list of references to all overlays.
163
163
  *
164
- * @private
164
+ * @param {boolean} [includeMaster = false] If set to `true`, the list will contain the master table as the last
165
+ * element.
166
+ * @returns {(TopOverlay|TopInlineStartCornerOverlay|InlineStartOverlay|BottomOverlay|BottomInlineStartCornerOverlay)[]}
165
167
  */
166
168
  _createClass(Overlays, [{
169
+ key: "getOverlays",
170
+ value: function getOverlays() {
171
+ var includeMaster = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
172
+ var overlays = [this.topOverlay, this.topInlineStartCornerOverlay, this.inlineStartOverlay, this.bottomOverlay, this.bottomInlineStartCornerOverlay];
173
+ if (includeMaster) {
174
+ overlays.push(this.wtTable);
175
+ }
176
+ return overlays;
177
+ }
178
+
179
+ /**
180
+ * Retrieve browser line height and apply its value to `browserLineHeight`.
181
+ *
182
+ * @private
183
+ */
184
+ }, {
167
185
  key: "initBrowserLineHeight",
168
186
  value: function initBrowserLineHeight() {
169
187
  var _this$domBindings2 = this.domBindings,
@@ -27,8 +27,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
27
27
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
28
28
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
29
29
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
30
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
31
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
30
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
31
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
32
32
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
33
33
  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); }
34
34
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -1,8 +1,8 @@
1
1
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
2
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
3
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
5
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import "core-js/modules/es.array.includes.js";
8
8
  import "core-js/modules/es.string.includes.js";
@@ -35,8 +35,8 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
35
35
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
36
36
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
37
37
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
38
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
39
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
38
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
39
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
40
40
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
41
41
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
42
42
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
@@ -594,12 +594,7 @@ var Table = /*#__PURE__*/function () {
594
594
  // column after rendered columns
595
595
  return -4;
596
596
  }
597
- var TR;
598
- if (row < 0) {
599
- TR = this.THEAD.childNodes[this.rowFilter.sourceRowToVisibleColHeadedRow(row)];
600
- } else {
601
- TR = this.TBODY.childNodes[this.rowFilter.sourceToRendered(row)];
602
- }
597
+ var TR = this.getRow(row);
603
598
  if (!TR && row >= 0) {
604
599
  throw new Error('TR was expected to be rendered but is not');
605
600
  }
@@ -610,6 +605,38 @@ var Table = /*#__PURE__*/function () {
610
605
  return TD;
611
606
  }
612
607
 
608
+ /**
609
+ * Get the DOM element of the row with the provided index.
610
+ *
611
+ * @param {number} rowIndex Row index.
612
+ * @returns {HTMLTableRowElement|boolean} Return the row's DOM element or `false` if the row with the provided
613
+ * index doesn't exist.
614
+ */
615
+ }, {
616
+ key: "getRow",
617
+ value: function getRow(rowIndex) {
618
+ var renderedRowIndex = null;
619
+ var parentElement = null;
620
+ if (rowIndex < 0) {
621
+ var _this$rowFilter;
622
+ renderedRowIndex = (_this$rowFilter = this.rowFilter) === null || _this$rowFilter === void 0 ? void 0 : _this$rowFilter.sourceRowToVisibleColHeadedRow(rowIndex);
623
+ parentElement = this.THEAD;
624
+ } else {
625
+ var _this$rowFilter2;
626
+ renderedRowIndex = (_this$rowFilter2 = this.rowFilter) === null || _this$rowFilter2 === void 0 ? void 0 : _this$rowFilter2.sourceToRendered(rowIndex);
627
+ parentElement = this.TBODY;
628
+ }
629
+ if (renderedRowIndex !== void 0 && parentElement !== void 0) {
630
+ if (parentElement.childNodes.length < renderedRowIndex + 1) {
631
+ return false;
632
+ } else {
633
+ return parentElement.childNodes[renderedRowIndex];
634
+ }
635
+ } else {
636
+ return false;
637
+ }
638
+ }
639
+
613
640
  /**
614
641
  * GetColumnHeader.
615
642
  *
@@ -6,8 +6,8 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
6
6
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
7
7
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
8
8
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
9
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
10
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
9
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
10
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
11
11
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
12
  import "core-js/modules/es.function.name.js";
13
13
  import "core-js/modules/es.array.from.js";
@@ -589,12 +589,7 @@ var Table = /*#__PURE__*/function () {
589
589
  // column after rendered columns
590
590
  return -4;
591
591
  }
592
- var TR;
593
- if (row < 0) {
594
- TR = this.THEAD.childNodes[this.rowFilter.sourceRowToVisibleColHeadedRow(row)];
595
- } else {
596
- TR = this.TBODY.childNodes[this.rowFilter.sourceToRendered(row)];
597
- }
592
+ var TR = this.getRow(row);
598
593
  if (!TR && row >= 0) {
599
594
  throw new Error('TR was expected to be rendered but is not');
600
595
  }
@@ -605,6 +600,38 @@ var Table = /*#__PURE__*/function () {
605
600
  return TD;
606
601
  }
607
602
 
603
+ /**
604
+ * Get the DOM element of the row with the provided index.
605
+ *
606
+ * @param {number} rowIndex Row index.
607
+ * @returns {HTMLTableRowElement|boolean} Return the row's DOM element or `false` if the row with the provided
608
+ * index doesn't exist.
609
+ */
610
+ }, {
611
+ key: "getRow",
612
+ value: function getRow(rowIndex) {
613
+ var renderedRowIndex = null;
614
+ var parentElement = null;
615
+ if (rowIndex < 0) {
616
+ var _this$rowFilter;
617
+ renderedRowIndex = (_this$rowFilter = this.rowFilter) === null || _this$rowFilter === void 0 ? void 0 : _this$rowFilter.sourceRowToVisibleColHeadedRow(rowIndex);
618
+ parentElement = this.THEAD;
619
+ } else {
620
+ var _this$rowFilter2;
621
+ renderedRowIndex = (_this$rowFilter2 = this.rowFilter) === null || _this$rowFilter2 === void 0 ? void 0 : _this$rowFilter2.sourceToRendered(rowIndex);
622
+ parentElement = this.TBODY;
623
+ }
624
+ if (renderedRowIndex !== void 0 && parentElement !== void 0) {
625
+ if (parentElement.childNodes.length < renderedRowIndex + 1) {
626
+ return false;
627
+ } else {
628
+ return parentElement.childNodes[renderedRowIndex];
629
+ }
630
+ } else {
631
+ return false;
632
+ }
633
+ }
634
+
608
635
  /**
609
636
  * GetColumnHeader.
610
637
  *