handsontable 12.3.0 → 12.3.1-next-712715f-20230130
Sign up to get free protection for your applications and to get access to all the features.
- package/3rdparty/walkontable/src/border.js +4 -4
- package/3rdparty/walkontable/src/border.mjs +4 -4
- package/3rdparty/walkontable/src/overlays.js +20 -2
- package/3rdparty/walkontable/src/overlays.mjs +20 -2
- package/3rdparty/walkontable/src/selection.js +2 -2
- package/3rdparty/walkontable/src/selection.mjs +2 -2
- package/3rdparty/walkontable/src/table.js +35 -8
- package/3rdparty/walkontable/src/table.mjs +35 -8
- package/CHANGELOG.md +123 -108
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core.js +10 -4
- package/core.mjs +10 -4
- package/dataMap/dataMap.js +1 -1
- package/dataMap/dataMap.mjs +1 -1
- package/dataMap/metaManager/lazyFactoryMap.js +1 -1
- package/dataMap/metaManager/lazyFactoryMap.mjs +1 -1
- package/dataMap/metaManager/metaLayers/cellMeta.js +1 -1
- package/dataMap/metaManager/metaLayers/cellMeta.mjs +1 -1
- package/dataMap/metaManager/metaSchema.js +3 -3
- package/dataMap/metaManager/metaSchema.mjs +3 -3
- package/dist/handsontable.css +7 -5
- package/dist/handsontable.full.css +7 -5
- package/dist/handsontable.full.js +4399 -4182
- package/dist/handsontable.full.min.css +4 -4
- package/dist/handsontable.full.min.js +107 -107
- package/dist/handsontable.js +2491 -2286
- package/dist/handsontable.min.css +4 -4
- package/dist/handsontable.min.js +3 -3
- package/dist/languages/all.js +1 -1
- package/dist/languages/all.min.js +1 -1
- package/dist/languages/ja-JP.js +1 -1
- package/dist/languages/ja-JP.min.js +1 -1
- package/editorManager.js +2 -2
- package/editorManager.mjs +2 -2
- package/editors/baseEditor/baseEditor.js +2 -2
- package/editors/baseEditor/baseEditor.mjs +2 -2
- package/editors/textEditor/textEditor.js +2 -2
- package/editors/textEditor/textEditor.mjs +2 -2
- package/helpers/dom/element.js +1 -1
- package/helpers/dom/element.mjs +1 -1
- package/helpers/mixed.js +5 -6
- package/helpers/mixed.mjs +5 -6
- package/helpers/number.js +1 -1
- package/helpers/number.mjs +1 -1
- package/i18n/languages/ja-JP.js +1 -1
- package/i18n/languages/ja-JP.mjs +2 -2
- package/languages/all.js +1 -1
- package/languages/index.js +1 -1
- package/languages/ja-JP.js +1 -1
- package/languages/ja-JP.mjs +2 -2
- package/package.json +1 -1
- package/plugins/autoColumnSize/autoColumnSize.js +3 -3
- package/plugins/autoColumnSize/autoColumnSize.mjs +3 -3
- package/plugins/autoRowSize/autoRowSize.js +2 -2
- package/plugins/autoRowSize/autoRowSize.mjs +2 -2
- package/plugins/autofill/autofill.js +2 -2
- package/plugins/autofill/autofill.mjs +2 -2
- package/plugins/base/base.js +2 -2
- package/plugins/base/base.mjs +2 -2
- package/plugins/bindRowsWithHeaders/maps/strictBindsMap.js +1 -1
- package/plugins/bindRowsWithHeaders/maps/strictBindsMap.mjs +1 -1
- package/plugins/collapsibleColumns/collapsibleColumns.js +1 -1
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +1 -1
- package/plugins/columnSorting/columnSorting.js +1 -1
- package/plugins/columnSorting/columnSorting.mjs +1 -1
- package/plugins/columnSorting/columnStatesManager.js +2 -2
- package/plugins/columnSorting/columnStatesManager.mjs +2 -2
- package/plugins/columnSorting/rootComparator.js +1 -1
- package/plugins/columnSorting/rootComparator.mjs +1 -1
- package/plugins/contextMenu/predefinedItems/removeColumn.js +2 -2
- package/plugins/contextMenu/predefinedItems/removeColumn.mjs +2 -2
- package/plugins/contextMenu/predefinedItems/removeRow.js +2 -2
- package/plugins/contextMenu/predefinedItems/removeRow.mjs +2 -2
- package/plugins/copyPaste/copyPaste.js +2 -2
- package/plugins/copyPaste/copyPaste.mjs +2 -2
- package/plugins/customBorders/customBorders.js +2 -2
- package/plugins/customBorders/customBorders.mjs +2 -2
- package/plugins/exportFile/dataProvider.js +2 -2
- package/plugins/exportFile/dataProvider.mjs +2 -2
- package/plugins/filters/component/value.js +2 -2
- package/plugins/filters/component/value.mjs +2 -2
- package/plugins/filters/condition/beginsWith.js +2 -2
- package/plugins/filters/condition/beginsWith.mjs +2 -2
- package/plugins/filters/condition/between.js +2 -2
- package/plugins/filters/condition/between.mjs +2 -2
- package/plugins/filters/condition/byValue.js +2 -2
- package/plugins/filters/condition/byValue.mjs +2 -2
- package/plugins/filters/condition/contains.js +2 -2
- package/plugins/filters/condition/contains.mjs +2 -2
- package/plugins/filters/condition/date/after.js +2 -2
- package/plugins/filters/condition/date/after.mjs +2 -2
- package/plugins/filters/condition/date/before.js +2 -2
- package/plugins/filters/condition/date/before.mjs +2 -2
- package/plugins/filters/condition/endsWith.js +2 -2
- package/plugins/filters/condition/endsWith.mjs +2 -2
- package/plugins/filters/condition/equal.js +2 -2
- package/plugins/filters/condition/equal.mjs +2 -2
- package/plugins/filters/condition/greaterThan.js +2 -2
- package/plugins/filters/condition/greaterThan.mjs +2 -2
- package/plugins/filters/condition/greaterThanOrEqual.js +2 -2
- package/plugins/filters/condition/greaterThanOrEqual.mjs +2 -2
- package/plugins/filters/condition/lessThan.js +2 -2
- package/plugins/filters/condition/lessThan.mjs +2 -2
- package/plugins/filters/condition/lessThanOrEqual.js +2 -2
- package/plugins/filters/condition/lessThanOrEqual.mjs +2 -2
- package/plugins/filters/conditionCollection.js +2 -2
- package/plugins/filters/conditionCollection.mjs +2 -2
- package/plugins/filters/filters.js +2 -2
- package/plugins/filters/filters.mjs +2 -2
- package/plugins/filters/ui/multipleSelect.js +1 -1
- package/plugins/filters/ui/multipleSelect.mjs +1 -1
- package/plugins/formulas/formulas.js +2 -2
- package/plugins/formulas/formulas.mjs +2 -2
- package/plugins/hiddenColumns/contextMenuItem/hideColumn.js +2 -2
- package/plugins/hiddenColumns/contextMenuItem/hideColumn.mjs +2 -2
- package/plugins/hiddenColumns/contextMenuItem/showColumn.js +1 -1
- package/plugins/hiddenColumns/contextMenuItem/showColumn.mjs +1 -1
- package/plugins/hiddenRows/contextMenuItem/hideRow.js +2 -2
- package/plugins/hiddenRows/contextMenuItem/hideRow.mjs +2 -2
- package/plugins/hiddenRows/contextMenuItem/showRow.js +1 -1
- package/plugins/hiddenRows/contextMenuItem/showRow.mjs +1 -1
- package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.js +2 -2
- package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.mjs +2 -2
- package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.js +2 -2
- package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.mjs +2 -2
- package/plugins/mergeCells/calculations/autofill.js +2 -2
- package/plugins/mergeCells/calculations/autofill.mjs +2 -2
- package/plugins/mergeCells/cellsCollection.js +1 -1
- package/plugins/mergeCells/cellsCollection.mjs +1 -1
- package/plugins/mergeCells/mergeCells.js +97 -20
- package/plugins/mergeCells/mergeCells.mjs +97 -20
- package/plugins/multiColumnSorting/rootComparator.js +1 -1
- package/plugins/multiColumnSorting/rootComparator.mjs +1 -1
- package/plugins/nestedHeaders/stateManager/headersTree.js +2 -2
- package/plugins/nestedHeaders/stateManager/headersTree.mjs +2 -2
- package/plugins/nestedHeaders/stateManager/settingsNormalizer.js +1 -1
- package/plugins/nestedHeaders/stateManager/settingsNormalizer.mjs +1 -1
- package/plugins/nestedRows/data/dataManager.js +1 -1
- package/plugins/nestedRows/data/dataManager.mjs +1 -1
- package/plugins/nestedRows/nestedRows.js +4 -1
- package/plugins/nestedRows/nestedRows.mjs +4 -1
- package/plugins/nestedRows/ui/collapsing.js +1 -1
- package/plugins/nestedRows/ui/collapsing.mjs +1 -1
- package/plugins/nestedRows/utils/rowMoveController.js +1 -1
- package/plugins/nestedRows/utils/rowMoveController.mjs +1 -1
- package/plugins/registry.js +2 -2
- package/plugins/registry.mjs +2 -2
- package/plugins/search/search.js +1 -1
- package/plugins/search/search.mjs +1 -1
- package/plugins/undoRedo/undoRedo.js +2 -2
- package/plugins/undoRedo/undoRedo.mjs +2 -2
- package/selection/highlight/highlight.js +1 -1
- package/selection/highlight/highlight.mjs +1 -1
- package/selection/selection.js +2 -2
- package/selection/selection.mjs +2 -2
- package/selection/utils.js +2 -2
- package/selection/utils.mjs +2 -2
- package/shortcuts/context.js +2 -2
- package/shortcuts/context.mjs +2 -2
- package/shortcuts/manager.js +9 -0
- package/shortcuts/manager.mjs +9 -0
- package/shortcuts/recorder.js +3 -0
- package/shortcuts/recorder.mjs +3 -0
- package/tableView.js +2 -2
- package/tableView.mjs +2 -2
- package/translations/indexMapper.js +1 -1
- package/translations/indexMapper.mjs +1 -1
- package/translations/maps/linkedPhysicalIndexToValueMap.js +1 -1
- package/translations/maps/linkedPhysicalIndexToValueMap.mjs +1 -1
- package/translations/maps/utils/indexesSequence.js +1 -1
- package/translations/maps/utils/indexesSequence.mjs +1 -1
- package/translations/maps/utils/physicallyIndexed.js +1 -1
- package/translations/maps/utils/physicallyIndexed.mjs +1 -1
- package/utils/dataStructures/priorityMap.js +2 -2
- package/utils/dataStructures/priorityMap.mjs +2 -2
- package/utils/dataStructures/tree.js +1 -1
- package/utils/dataStructures/tree.mjs +1 -1
- package/utils/dataStructures/uniqueMap.js +2 -2
- package/utils/dataStructures/uniqueMap.mjs +2 -2
- package/utils/dataStructures/uniqueSet.js +1 -1
- package/utils/dataStructures/uniqueSet.mjs +1 -1
- package/utils/ghostTable.js +2 -2
- package/utils/ghostTable.mjs +2 -2
- package/utils/parseTable.js +1 -1
- package/utils/parseTable.mjs +1 -1
- package/utils/staticRegister.js +1 -1
- 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++)
|
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)
|
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
|
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
|
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++)
|
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)
|
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
|
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
|
98
|
+
_loop(c);
|
99
99
|
}
|
100
100
|
}
|
101
101
|
|
@@ -163,11 +163,29 @@ var Overlays = /*#__PURE__*/function () {
|
|
163
163
|
}
|
164
164
|
|
165
165
|
/**
|
166
|
-
*
|
166
|
+
* Get the list of references to all overlays.
|
167
167
|
*
|
168
|
-
* @
|
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
|
-
*
|
162
|
+
* Get the list of references to all overlays.
|
163
163
|
*
|
164
|
-
* @
|
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++)
|
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)
|
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++)
|
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)
|
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++)
|
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)
|
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++)
|
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)
|
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
|
*
|