handsontable 0.0.0-next-b66c79f-20230713 → 0.0.0-next-85c3085-20230713
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of handsontable might be problematic. Click here for more details.
- package/3rdparty/walkontable/src/cell/coords.js +37 -22
- package/3rdparty/walkontable/src/cell/coords.mjs +37 -22
- package/3rdparty/walkontable/src/cell/range.js +54 -39
- package/3rdparty/walkontable/src/cell/range.mjs +54 -39
- package/3rdparty/walkontable/src/core/_base.js +33 -31
- package/3rdparty/walkontable/src/core/_base.mjs +33 -31
- package/3rdparty/walkontable/src/core/clone.js +6 -3
- package/3rdparty/walkontable/src/core/clone.mjs +6 -3
- package/3rdparty/walkontable/src/event.js +2 -1
- package/3rdparty/walkontable/src/event.mjs +2 -1
- package/3rdparty/walkontable/src/overlay/_base.js +10 -8
- package/3rdparty/walkontable/src/overlay/_base.mjs +10 -8
- package/3rdparty/walkontable/src/overlay/bottom.js +10 -8
- package/3rdparty/walkontable/src/overlay/bottom.mjs +10 -8
- package/3rdparty/walkontable/src/overlay/inlineStart.js +1 -1
- package/3rdparty/walkontable/src/overlay/inlineStart.mjs +1 -1
- package/3rdparty/walkontable/src/overlay/top.js +11 -9
- package/3rdparty/walkontable/src/overlay/top.mjs +11 -9
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.js +16 -13
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.mjs +16 -13
- package/3rdparty/walkontable/src/overlays.js +75 -80
- package/3rdparty/walkontable/src/overlays.mjs +75 -80
- package/3rdparty/walkontable/src/scroll.js +27 -24
- package/3rdparty/walkontable/src/scroll.mjs +27 -24
- package/3rdparty/walkontable/src/settings.js +18 -17
- package/3rdparty/walkontable/src/settings.mjs +18 -17
- package/3rdparty/walkontable/src/table.js +42 -37
- package/3rdparty/walkontable/src/table.mjs +42 -37
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core.js +8 -8
- package/core.mjs +8 -8
- package/dataMap/metaManager/metaLayers/cellMeta.js +2 -1
- package/dataMap/metaManager/metaLayers/cellMeta.mjs +2 -1
- package/dataMap/metaManager/metaLayers/globalMeta.js +1 -1
- package/dataMap/metaManager/metaLayers/globalMeta.mjs +1 -1
- package/dataMap/metaManager/mods/dynamicCellMeta.js +3 -2
- package/dataMap/metaManager/mods/dynamicCellMeta.mjs +3 -2
- package/dataMap/metaManager/utils.js +4 -2
- package/dataMap/metaManager/utils.mjs +4 -2
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +3247 -2847
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +17 -17
- package/dist/handsontable.js +3249 -2849
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +17 -17
- package/editors/autocompleteEditor/autocompleteEditor.js +70 -67
- package/editors/autocompleteEditor/autocompleteEditor.mjs +70 -67
- package/editors/baseEditor/baseEditor.js +1 -1
- package/editors/baseEditor/baseEditor.mjs +1 -1
- package/editors/dateEditor/dateEditor.js +2 -1
- package/editors/dateEditor/dateEditor.mjs +2 -1
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/helpers/object.js +1 -0
- package/helpers/object.mjs +1 -0
- package/index.js +5 -5
- package/index.mjs +5 -5
- package/package.json +1 -1
- package/plugins/autoColumnSize/autoColumnSize.js +4 -1
- package/plugins/autoColumnSize/autoColumnSize.mjs +4 -1
- package/plugins/collapsibleColumns/collapsibleColumns.js +54 -38
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +54 -38
- package/plugins/columnSorting/columnSorting.js +2 -1
- package/plugins/columnSorting/columnSorting.mjs +2 -1
- package/plugins/columnSorting/columnStatesManager.js +2 -1
- package/plugins/columnSorting/columnStatesManager.mjs +2 -1
- package/plugins/comments/comments.js +2 -2
- package/plugins/comments/comments.mjs +2 -2
- package/plugins/copyPaste/copyPaste.js +6 -4
- package/plugins/copyPaste/copyPaste.mjs +6 -4
- package/plugins/customBorders/customBorders.js +13 -9
- package/plugins/customBorders/customBorders.mjs +13 -9
- package/plugins/customBorders/utils.js +3 -3
- package/plugins/customBorders/utils.mjs +3 -3
- package/plugins/filters/conditionCollection.js +6 -5
- package/plugins/filters/conditionCollection.mjs +6 -5
- package/plugins/filters/filters.js +13 -7
- package/plugins/filters/filters.mjs +13 -7
- package/plugins/formulas/engine/register.js +3 -3
- package/plugins/formulas/engine/register.mjs +3 -3
- package/plugins/formulas/engine/settings.js +6 -3
- package/plugins/formulas/engine/settings.mjs +6 -3
- package/plugins/formulas/formulas.js +151 -143
- package/plugins/formulas/formulas.mjs +151 -143
- package/plugins/formulas/indexSyncer/axisSyncer.js +115 -79
- package/plugins/formulas/indexSyncer/axisSyncer.mjs +115 -79
- package/plugins/formulas/indexSyncer/index.js +100 -64
- package/plugins/formulas/indexSyncer/index.mjs +100 -64
- package/plugins/hiddenColumns/contextMenuItem/showColumn.js +2 -2
- package/plugins/hiddenColumns/contextMenuItem/showColumn.mjs +2 -2
- package/plugins/hiddenColumns/hiddenColumns.js +51 -34
- package/plugins/hiddenColumns/hiddenColumns.mjs +51 -34
- package/plugins/hiddenRows/contextMenuItem/showRow.js +2 -2
- package/plugins/hiddenRows/contextMenuItem/showRow.mjs +2 -2
- package/plugins/hiddenRows/hiddenRows.js +50 -33
- package/plugins/hiddenRows/hiddenRows.mjs +50 -33
- package/plugins/manualRowResize/manualRowResize.js +2 -1
- package/plugins/manualRowResize/manualRowResize.mjs +2 -1
- package/plugins/mergeCells/mergeCells.js +1 -1
- package/plugins/mergeCells/mergeCells.mjs +1 -1
- package/plugins/nestedHeaders/nestedHeaders.js +88 -67
- package/plugins/nestedHeaders/nestedHeaders.mjs +87 -66
- package/plugins/nestedHeaders/stateManager/headersTree.js +58 -38
- package/plugins/nestedHeaders/stateManager/headersTree.mjs +58 -38
- package/plugins/nestedHeaders/stateManager/index.js +70 -49
- package/plugins/nestedHeaders/stateManager/index.mjs +68 -47
- package/plugins/nestedHeaders/stateManager/nodeModifiers/collapse.js +1 -1
- package/plugins/nestedHeaders/stateManager/nodeModifiers/collapse.mjs +1 -1
- package/plugins/nestedHeaders/stateManager/sourceSettings.js +57 -37
- package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +57 -37
- package/plugins/nestedHeaders/utils/ghostTable.js +39 -35
- package/plugins/nestedHeaders/utils/ghostTable.mjs +39 -35
- package/plugins/nestedRows/data/dataManager.js +4 -2
- package/plugins/nestedRows/data/dataManager.mjs +4 -2
- package/plugins/persistentState/storage.js +1 -0
- package/plugins/persistentState/storage.mjs +1 -0
- package/plugins/undoRedo/undoRedo.js +2 -1
- package/plugins/undoRedo/undoRedo.mjs +2 -1
- package/selection/highlight/visualSelection.js +10 -6
- package/selection/highlight/visualSelection.mjs +10 -6
- package/tableView.js +98 -80
- package/tableView.mjs +98 -80
- package/translations/changesObservable/observable.js +82 -54
- package/translations/changesObservable/observable.mjs +82 -54
- package/translations/changesObservable/observer.js +24 -11
- package/translations/changesObservable/observer.mjs +24 -11
- package/translations/maps/linkedPhysicalIndexToValueMap.js +14 -8
- package/translations/maps/linkedPhysicalIndexToValueMap.mjs +14 -8
- package/utils/dataStructures/tree.js +21 -18
- package/utils/dataStructures/tree.mjs +21 -18
@@ -12,6 +12,9 @@ var _column2 = _interopRequireDefault(require("./utils/column"));
|
|
12
12
|
var _row2 = _interopRequireDefault(require("./utils/row"));
|
13
13
|
var _overlay = require("./overlay");
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
15
|
+
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; }
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
17
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
15
18
|
/**
|
16
19
|
* @todo These mixes are never added to the class Table, however their members are used here.
|
17
20
|
* @todo Continue: Potentially it works only, because some of these mixes are added to every inherited class.
|
@@ -24,38 +27,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
24
27
|
* @abstract
|
25
28
|
*/
|
26
29
|
class Table {
|
27
|
-
/**
|
28
|
-
* The walkontable settings.
|
29
|
-
*
|
30
|
-
* @protected
|
31
|
-
* @type {Settings}
|
32
|
-
*/
|
33
|
-
wtSettings = null;
|
34
|
-
domBindings;
|
35
|
-
TBODY = null;
|
36
|
-
THEAD = null;
|
37
|
-
COLGROUP = null;
|
38
|
-
/**
|
39
|
-
* Indicates if the table has height bigger than 0px.
|
40
|
-
*
|
41
|
-
* @type {boolean}
|
42
|
-
*/
|
43
|
-
hasTableHeight = true;
|
44
|
-
/**
|
45
|
-
* Indicates if the table has width bigger than 0px.
|
46
|
-
*
|
47
|
-
* @type {boolean}
|
48
|
-
*/
|
49
|
-
hasTableWidth = true;
|
50
|
-
/**
|
51
|
-
* Indicates if the table is visible. By visible, it means that the holder
|
52
|
-
* element has CSS 'display' property different than 'none'.
|
53
|
-
*
|
54
|
-
* @type {boolean}
|
55
|
-
*/
|
56
|
-
isTableVisible = false;
|
57
|
-
tableOffset = 0;
|
58
|
-
holderOffset = 0;
|
59
30
|
/**
|
60
31
|
*
|
61
32
|
* @abstract
|
@@ -66,6 +37,38 @@ class Table {
|
|
66
37
|
* @param {'master'|CLONE_TYPES_ENUM} name Overlay name.
|
67
38
|
*/
|
68
39
|
constructor(dataAccessObject, facadeGetter, domBindings, wtSettings, name) {
|
40
|
+
/**
|
41
|
+
* The walkontable settings.
|
42
|
+
*
|
43
|
+
* @protected
|
44
|
+
* @type {Settings}
|
45
|
+
*/
|
46
|
+
_defineProperty(this, "wtSettings", null);
|
47
|
+
_defineProperty(this, "domBindings", void 0);
|
48
|
+
_defineProperty(this, "TBODY", null);
|
49
|
+
_defineProperty(this, "THEAD", null);
|
50
|
+
_defineProperty(this, "COLGROUP", null);
|
51
|
+
/**
|
52
|
+
* Indicates if the table has height bigger than 0px.
|
53
|
+
*
|
54
|
+
* @type {boolean}
|
55
|
+
*/
|
56
|
+
_defineProperty(this, "hasTableHeight", true);
|
57
|
+
/**
|
58
|
+
* Indicates if the table has width bigger than 0px.
|
59
|
+
*
|
60
|
+
* @type {boolean}
|
61
|
+
*/
|
62
|
+
_defineProperty(this, "hasTableWidth", true);
|
63
|
+
/**
|
64
|
+
* Indicates if the table is visible. By visible, it means that the holder
|
65
|
+
* element has CSS 'display' property different than 'none'.
|
66
|
+
*
|
67
|
+
* @type {boolean}
|
68
|
+
*/
|
69
|
+
_defineProperty(this, "isTableVisible", false);
|
70
|
+
_defineProperty(this, "tableOffset", 0);
|
71
|
+
_defineProperty(this, "holderOffset", 0);
|
69
72
|
this.domBindings = domBindings;
|
70
73
|
/**
|
71
74
|
* Indicates if this instance is of type `MasterTable` (i.e. It is NOT an overlay).
|
@@ -564,10 +567,12 @@ class Table {
|
|
564
567
|
let renderedRowIndex = null;
|
565
568
|
let parentElement = null;
|
566
569
|
if (rowIndex < 0) {
|
567
|
-
|
570
|
+
var _this$rowFilter;
|
571
|
+
renderedRowIndex = (_this$rowFilter = this.rowFilter) === null || _this$rowFilter === void 0 ? void 0 : _this$rowFilter.sourceRowToVisibleColHeadedRow(rowIndex);
|
568
572
|
parentElement = this.THEAD;
|
569
573
|
} else {
|
570
|
-
|
574
|
+
var _this$rowFilter2;
|
575
|
+
renderedRowIndex = (_this$rowFilter2 = this.rowFilter) === null || _this$rowFilter2 === void 0 ? void 0 : _this$rowFilter2.sourceToRendered(rowIndex);
|
571
576
|
parentElement = this.TBODY;
|
572
577
|
}
|
573
578
|
if (renderedRowIndex !== void 0 && parentElement !== void 0) {
|
@@ -591,7 +596,7 @@ class Table {
|
|
591
596
|
getColumnHeader(col) {
|
592
597
|
let level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
593
598
|
const TR = this.THEAD.childNodes[level];
|
594
|
-
return TR
|
599
|
+
return TR === null || TR === void 0 ? void 0 : TR.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(col)];
|
595
600
|
}
|
596
601
|
|
597
602
|
/**
|
@@ -630,7 +635,7 @@ class Table {
|
|
630
635
|
return;
|
631
636
|
}
|
632
637
|
const TR = this.TBODY.childNodes[this.rowFilter.sourceToRendered(row)];
|
633
|
-
return TR
|
638
|
+
return TR === null || TR === void 0 ? void 0 : TR.childNodes[level];
|
634
639
|
}
|
635
640
|
|
636
641
|
/**
|
@@ -647,7 +652,7 @@ class Table {
|
|
647
652
|
const rowHeadersCount = this.wtSettings.getSetting('rowHeaders').length;
|
648
653
|
for (let renderedRowIndex = 0; renderedRowIndex < rowHeadersCount; renderedRowIndex++) {
|
649
654
|
const TR = this.TBODY.childNodes[this.rowFilter.sourceToRendered(row)];
|
650
|
-
const TH = TR
|
655
|
+
const TH = TR === null || TR === void 0 ? void 0 : TR.childNodes[renderedRowIndex];
|
651
656
|
if (TH) {
|
652
657
|
THs.push(TH);
|
653
658
|
}
|
@@ -1,5 +1,8 @@
|
|
1
1
|
import "core-js/modules/es.array.push.js";
|
2
2
|
import "core-js/modules/es.error.cause.js";
|
3
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
4
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
5
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
3
6
|
import { hasClass, index, offset, removeClass, removeTextNodes, overlayContainsElement, closest, outerHeight, outerWidth, innerHeight, isVisible } from "../../../helpers/dom/element.mjs";
|
4
7
|
import { isFunction } from "../../../helpers/function.mjs";
|
5
8
|
import ColumnFilter from "./filter/column.mjs";
|
@@ -20,38 +23,6 @@ import { CLONE_TOP, CLONE_BOTTOM, CLONE_INLINE_START, CLONE_TOP_INLINE_START_COR
|
|
20
23
|
* @abstract
|
21
24
|
*/
|
22
25
|
class Table {
|
23
|
-
/**
|
24
|
-
* The walkontable settings.
|
25
|
-
*
|
26
|
-
* @protected
|
27
|
-
* @type {Settings}
|
28
|
-
*/
|
29
|
-
wtSettings = null;
|
30
|
-
domBindings;
|
31
|
-
TBODY = null;
|
32
|
-
THEAD = null;
|
33
|
-
COLGROUP = null;
|
34
|
-
/**
|
35
|
-
* Indicates if the table has height bigger than 0px.
|
36
|
-
*
|
37
|
-
* @type {boolean}
|
38
|
-
*/
|
39
|
-
hasTableHeight = true;
|
40
|
-
/**
|
41
|
-
* Indicates if the table has width bigger than 0px.
|
42
|
-
*
|
43
|
-
* @type {boolean}
|
44
|
-
*/
|
45
|
-
hasTableWidth = true;
|
46
|
-
/**
|
47
|
-
* Indicates if the table is visible. By visible, it means that the holder
|
48
|
-
* element has CSS 'display' property different than 'none'.
|
49
|
-
*
|
50
|
-
* @type {boolean}
|
51
|
-
*/
|
52
|
-
isTableVisible = false;
|
53
|
-
tableOffset = 0;
|
54
|
-
holderOffset = 0;
|
55
26
|
/**
|
56
27
|
*
|
57
28
|
* @abstract
|
@@ -62,6 +33,38 @@ class Table {
|
|
62
33
|
* @param {'master'|CLONE_TYPES_ENUM} name Overlay name.
|
63
34
|
*/
|
64
35
|
constructor(dataAccessObject, facadeGetter, domBindings, wtSettings, name) {
|
36
|
+
/**
|
37
|
+
* The walkontable settings.
|
38
|
+
*
|
39
|
+
* @protected
|
40
|
+
* @type {Settings}
|
41
|
+
*/
|
42
|
+
_defineProperty(this, "wtSettings", null);
|
43
|
+
_defineProperty(this, "domBindings", void 0);
|
44
|
+
_defineProperty(this, "TBODY", null);
|
45
|
+
_defineProperty(this, "THEAD", null);
|
46
|
+
_defineProperty(this, "COLGROUP", null);
|
47
|
+
/**
|
48
|
+
* Indicates if the table has height bigger than 0px.
|
49
|
+
*
|
50
|
+
* @type {boolean}
|
51
|
+
*/
|
52
|
+
_defineProperty(this, "hasTableHeight", true);
|
53
|
+
/**
|
54
|
+
* Indicates if the table has width bigger than 0px.
|
55
|
+
*
|
56
|
+
* @type {boolean}
|
57
|
+
*/
|
58
|
+
_defineProperty(this, "hasTableWidth", true);
|
59
|
+
/**
|
60
|
+
* Indicates if the table is visible. By visible, it means that the holder
|
61
|
+
* element has CSS 'display' property different than 'none'.
|
62
|
+
*
|
63
|
+
* @type {boolean}
|
64
|
+
*/
|
65
|
+
_defineProperty(this, "isTableVisible", false);
|
66
|
+
_defineProperty(this, "tableOffset", 0);
|
67
|
+
_defineProperty(this, "holderOffset", 0);
|
65
68
|
this.domBindings = domBindings;
|
66
69
|
/**
|
67
70
|
* Indicates if this instance is of type `MasterTable` (i.e. It is NOT an overlay).
|
@@ -560,10 +563,12 @@ class Table {
|
|
560
563
|
let renderedRowIndex = null;
|
561
564
|
let parentElement = null;
|
562
565
|
if (rowIndex < 0) {
|
563
|
-
|
566
|
+
var _this$rowFilter;
|
567
|
+
renderedRowIndex = (_this$rowFilter = this.rowFilter) === null || _this$rowFilter === void 0 ? void 0 : _this$rowFilter.sourceRowToVisibleColHeadedRow(rowIndex);
|
564
568
|
parentElement = this.THEAD;
|
565
569
|
} else {
|
566
|
-
|
570
|
+
var _this$rowFilter2;
|
571
|
+
renderedRowIndex = (_this$rowFilter2 = this.rowFilter) === null || _this$rowFilter2 === void 0 ? void 0 : _this$rowFilter2.sourceToRendered(rowIndex);
|
567
572
|
parentElement = this.TBODY;
|
568
573
|
}
|
569
574
|
if (renderedRowIndex !== void 0 && parentElement !== void 0) {
|
@@ -587,7 +592,7 @@ class Table {
|
|
587
592
|
getColumnHeader(col) {
|
588
593
|
let level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
589
594
|
const TR = this.THEAD.childNodes[level];
|
590
|
-
return TR
|
595
|
+
return TR === null || TR === void 0 ? void 0 : TR.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(col)];
|
591
596
|
}
|
592
597
|
|
593
598
|
/**
|
@@ -626,7 +631,7 @@ class Table {
|
|
626
631
|
return;
|
627
632
|
}
|
628
633
|
const TR = this.TBODY.childNodes[this.rowFilter.sourceToRendered(row)];
|
629
|
-
return TR
|
634
|
+
return TR === null || TR === void 0 ? void 0 : TR.childNodes[level];
|
630
635
|
}
|
631
636
|
|
632
637
|
/**
|
@@ -643,7 +648,7 @@ class Table {
|
|
643
648
|
const rowHeadersCount = this.wtSettings.getSetting('rowHeaders').length;
|
644
649
|
for (let renderedRowIndex = 0; renderedRowIndex < rowHeadersCount; renderedRowIndex++) {
|
645
650
|
const TR = this.TBODY.childNodes[this.rowFilter.sourceToRendered(row)];
|
646
|
-
const TH = TR
|
651
|
+
const TH = TR === null || TR === void 0 ? void 0 : TR.childNodes[renderedRowIndex];
|
647
652
|
if (TH) {
|
648
653
|
THs.push(TH);
|
649
654
|
}
|
package/base.js
CHANGED
@@ -43,8 +43,8 @@ Handsontable.hooks = _pluginHooks.default.getSingleton();
|
|
43
43
|
Handsontable.CellCoords = _src.CellCoords;
|
44
44
|
Handsontable.CellRange = _src.CellRange;
|
45
45
|
Handsontable.packageName = 'handsontable';
|
46
|
-
Handsontable.buildDate = "13/07/2023
|
47
|
-
Handsontable.version = "0.0.0-next-
|
46
|
+
Handsontable.buildDate = "13/07/2023 08:33:45";
|
47
|
+
Handsontable.version = "0.0.0-next-85c3085-20230713";
|
48
48
|
Handsontable.languages = {
|
49
49
|
dictionaryKeys: _registry.dictionaryKeys,
|
50
50
|
getLanguageDictionary: _registry.getLanguageDictionary,
|
package/base.mjs
CHANGED
@@ -35,8 +35,8 @@ Handsontable.hooks = Hooks.getSingleton();
|
|
35
35
|
Handsontable.CellCoords = CellCoords;
|
36
36
|
Handsontable.CellRange = CellRange;
|
37
37
|
Handsontable.packageName = 'handsontable';
|
38
|
-
Handsontable.buildDate = "13/07/2023
|
39
|
-
Handsontable.version = "0.0.0-next-
|
38
|
+
Handsontable.buildDate = "13/07/2023 08:33:53";
|
39
|
+
Handsontable.version = "0.0.0-next-85c3085-20230713";
|
40
40
|
Handsontable.languages = {
|
41
41
|
dictionaryKeys,
|
42
42
|
getLanguageDictionary,
|
package/core.js
CHANGED
@@ -161,7 +161,7 @@ function Core(rootElement, userSettings) {
|
|
161
161
|
* @type {number}
|
162
162
|
*/
|
163
163
|
this.executionSuspendedCounter = 0;
|
164
|
-
const layoutDirection = (_userSettings$layoutD = userSettings
|
164
|
+
const layoutDirection = (_userSettings$layoutD = userSettings === null || userSettings === void 0 ? void 0 : userSettings.layoutDirection) !== null && _userSettings$layoutD !== void 0 ? _userSettings$layoutD : 'inherit';
|
165
165
|
const rootElementDirection = ['rtl', 'ltr'].includes(layoutDirection) ? layoutDirection : this.rootWindow.getComputedStyle(this.rootElement).direction;
|
166
166
|
this.rootElement.setAttribute('dir', rootElementDirection);
|
167
167
|
|
@@ -460,7 +460,7 @@ function Core(rootElement, userSettings) {
|
|
460
460
|
|
461
461
|
// Calling the `insert_row_above` action adds a new row at the beginning of the data set.
|
462
462
|
// eslint-disable-next-line no-param-reassign
|
463
|
-
index = (_index = index)
|
463
|
+
index = (_index = index) !== null && _index !== void 0 ? _index : insertRowMode === 'below' ? numberOfSourceRows : 0;
|
464
464
|
const {
|
465
465
|
delta: rowDelta,
|
466
466
|
startPhysicalIndex: startRowPhysicalIndex
|
@@ -470,8 +470,8 @@ function Core(rootElement, userSettings) {
|
|
470
470
|
});
|
471
471
|
if (rowDelta) {
|
472
472
|
const currentSelectedRange = selection.selectedRange.current();
|
473
|
-
const currentFromRange = currentSelectedRange
|
474
|
-
const currentFromRow = currentFromRange
|
473
|
+
const currentFromRange = currentSelectedRange === null || currentSelectedRange === void 0 ? void 0 : currentSelectedRange.from;
|
474
|
+
const currentFromRow = currentFromRange === null || currentFromRange === void 0 ? void 0 : currentFromRange.row;
|
475
475
|
const startVisualRowIndex = instance.toVisualRow(startRowPhysicalIndex);
|
476
476
|
if (selection.isSelectedByCorner()) {
|
477
477
|
instance.selectAll();
|
@@ -508,7 +508,7 @@ function Core(rootElement, userSettings) {
|
|
508
508
|
|
509
509
|
// Calling the `insert_col_start` action adds a new column to the left of the data set.
|
510
510
|
// eslint-disable-next-line no-param-reassign
|
511
|
-
index = (_index2 = index)
|
511
|
+
index = (_index2 = index) !== null && _index2 !== void 0 ? _index2 : insertColumnMode === 'end' ? instance.countSourceCols() : 0;
|
512
512
|
const {
|
513
513
|
delta: colDelta,
|
514
514
|
startPhysicalIndex: startColumnPhysicalIndex
|
@@ -524,8 +524,8 @@ function Core(rootElement, userSettings) {
|
|
524
524
|
}
|
525
525
|
|
526
526
|
const currentSelectedRange = selection.selectedRange.current();
|
527
|
-
const currentFromRange = currentSelectedRange
|
528
|
-
const currentFromColumn = currentFromRange
|
527
|
+
const currentFromRange = currentSelectedRange === null || currentSelectedRange === void 0 ? void 0 : currentSelectedRange.from;
|
528
|
+
const currentFromColumn = currentFromRange === null || currentFromRange === void 0 ? void 0 : currentFromRange.col;
|
529
529
|
const startVisualColumnIndex = instance.toVisualColumn(startColumnPhysicalIndex);
|
530
530
|
if (selection.isSelectedByCorner()) {
|
531
531
|
instance.selectAll();
|
@@ -4338,7 +4338,7 @@ function Core(rootElement, userSettings) {
|
|
4338
4338
|
const shortcutManager = (0, _shortcuts.createShortcutManager)({
|
4339
4339
|
handleEvent(event) {
|
4340
4340
|
const isListening = instance.isListening();
|
4341
|
-
const isKeyboardEventWithKey = event
|
4341
|
+
const isKeyboardEventWithKey = (event === null || event === void 0 ? void 0 : event.key) !== void 0;
|
4342
4342
|
return isListening && isKeyboardEventWithKey;
|
4343
4343
|
},
|
4344
4344
|
beforeKeyDown: event => {
|
package/core.mjs
CHANGED
@@ -156,7 +156,7 @@ export default function Core(rootElement, userSettings) {
|
|
156
156
|
* @type {number}
|
157
157
|
*/
|
158
158
|
this.executionSuspendedCounter = 0;
|
159
|
-
const layoutDirection = (_userSettings$layoutD = userSettings
|
159
|
+
const layoutDirection = (_userSettings$layoutD = userSettings === null || userSettings === void 0 ? void 0 : userSettings.layoutDirection) !== null && _userSettings$layoutD !== void 0 ? _userSettings$layoutD : 'inherit';
|
160
160
|
const rootElementDirection = ['rtl', 'ltr'].includes(layoutDirection) ? layoutDirection : this.rootWindow.getComputedStyle(this.rootElement).direction;
|
161
161
|
this.rootElement.setAttribute('dir', rootElementDirection);
|
162
162
|
|
@@ -455,7 +455,7 @@ export default function Core(rootElement, userSettings) {
|
|
455
455
|
|
456
456
|
// Calling the `insert_row_above` action adds a new row at the beginning of the data set.
|
457
457
|
// eslint-disable-next-line no-param-reassign
|
458
|
-
index = (_index = index)
|
458
|
+
index = (_index = index) !== null && _index !== void 0 ? _index : insertRowMode === 'below' ? numberOfSourceRows : 0;
|
459
459
|
const {
|
460
460
|
delta: rowDelta,
|
461
461
|
startPhysicalIndex: startRowPhysicalIndex
|
@@ -465,8 +465,8 @@ export default function Core(rootElement, userSettings) {
|
|
465
465
|
});
|
466
466
|
if (rowDelta) {
|
467
467
|
const currentSelectedRange = selection.selectedRange.current();
|
468
|
-
const currentFromRange = currentSelectedRange
|
469
|
-
const currentFromRow = currentFromRange
|
468
|
+
const currentFromRange = currentSelectedRange === null || currentSelectedRange === void 0 ? void 0 : currentSelectedRange.from;
|
469
|
+
const currentFromRow = currentFromRange === null || currentFromRange === void 0 ? void 0 : currentFromRange.row;
|
470
470
|
const startVisualRowIndex = instance.toVisualRow(startRowPhysicalIndex);
|
471
471
|
if (selection.isSelectedByCorner()) {
|
472
472
|
instance.selectAll();
|
@@ -503,7 +503,7 @@ export default function Core(rootElement, userSettings) {
|
|
503
503
|
|
504
504
|
// Calling the `insert_col_start` action adds a new column to the left of the data set.
|
505
505
|
// eslint-disable-next-line no-param-reassign
|
506
|
-
index = (_index2 = index)
|
506
|
+
index = (_index2 = index) !== null && _index2 !== void 0 ? _index2 : insertColumnMode === 'end' ? instance.countSourceCols() : 0;
|
507
507
|
const {
|
508
508
|
delta: colDelta,
|
509
509
|
startPhysicalIndex: startColumnPhysicalIndex
|
@@ -519,8 +519,8 @@ export default function Core(rootElement, userSettings) {
|
|
519
519
|
}
|
520
520
|
|
521
521
|
const currentSelectedRange = selection.selectedRange.current();
|
522
|
-
const currentFromRange = currentSelectedRange
|
523
|
-
const currentFromColumn = currentFromRange
|
522
|
+
const currentFromRange = currentSelectedRange === null || currentSelectedRange === void 0 ? void 0 : currentSelectedRange.from;
|
523
|
+
const currentFromColumn = currentFromRange === null || currentFromRange === void 0 ? void 0 : currentFromRange.col;
|
524
524
|
const startVisualColumnIndex = instance.toVisualColumn(startColumnPhysicalIndex);
|
525
525
|
if (selection.isSelectedByCorner()) {
|
526
526
|
instance.selectAll();
|
@@ -4333,7 +4333,7 @@ export default function Core(rootElement, userSettings) {
|
|
4333
4333
|
const shortcutManager = createShortcutManager({
|
4334
4334
|
handleEvent(event) {
|
4335
4335
|
const isListening = instance.isListening();
|
4336
|
-
const isKeyboardEventWithKey = event
|
4336
|
+
const isKeyboardEventWithKey = (event === null || event === void 0 ? void 0 : event.key) !== void 0;
|
4337
4337
|
return isListening && isKeyboardEventWithKey;
|
4338
4338
|
},
|
4339
4339
|
beforeKeyDown: event => {
|
@@ -137,8 +137,9 @@ class CellMeta {
|
|
137
137
|
* @param {*} value Value to save.
|
138
138
|
*/
|
139
139
|
setMeta(physicalRow, physicalColumn, key, value) {
|
140
|
+
var _cellMeta$_automatica;
|
140
141
|
const cellMeta = this.metas.obtain(physicalRow).obtain(physicalColumn);
|
141
|
-
cellMeta._automaticallyAssignedMetaProps
|
142
|
+
(_cellMeta$_automatica = cellMeta._automaticallyAssignedMetaProps) === null || _cellMeta$_automatica === void 0 ? void 0 : _cellMeta$_automatica.delete(key);
|
142
143
|
cellMeta[key] = value;
|
143
144
|
}
|
144
145
|
|
@@ -133,8 +133,9 @@ export default class CellMeta {
|
|
133
133
|
* @param {*} value Value to save.
|
134
134
|
*/
|
135
135
|
setMeta(physicalRow, physicalColumn, key, value) {
|
136
|
+
var _cellMeta$_automatica;
|
136
137
|
const cellMeta = this.metas.obtain(physicalRow).obtain(physicalColumn);
|
137
|
-
cellMeta._automaticallyAssignedMetaProps
|
138
|
+
(_cellMeta$_automatica = cellMeta._automaticallyAssignedMetaProps) === null || _cellMeta$_automatica === void 0 ? void 0 : _cellMeta$_automatica.delete(key);
|
138
139
|
cellMeta[key] = value;
|
139
140
|
}
|
140
141
|
|
@@ -85,7 +85,7 @@ class GlobalMeta {
|
|
85
85
|
(0, _object.extend)(this.meta, settings);
|
86
86
|
(0, _utils.extendByMetaType)(this.meta, {
|
87
87
|
...settings,
|
88
|
-
type: (_settings$type = settings.type)
|
88
|
+
type: (_settings$type = settings.type) !== null && _settings$type !== void 0 ? _settings$type : this.meta.type
|
89
89
|
}, settings);
|
90
90
|
}
|
91
91
|
}
|
@@ -81,7 +81,7 @@ export default class GlobalMeta {
|
|
81
81
|
extend(this.meta, settings);
|
82
82
|
extendByMetaType(this.meta, {
|
83
83
|
...settings,
|
84
|
-
type: (_settings$type = settings.type)
|
84
|
+
type: (_settings$type = settings.type) !== null && _settings$type !== void 0 ? _settings$type : this.meta.type
|
85
85
|
}, settings);
|
86
86
|
}
|
87
87
|
}
|
@@ -50,11 +50,12 @@ class DynamicCellMetaMod {
|
|
50
50
|
* @param {object} cellMeta The cell meta object.
|
51
51
|
*/
|
52
52
|
extendCellMeta(cellMeta) {
|
53
|
+
var _this$metaSyncMemo$ge;
|
53
54
|
const {
|
54
55
|
row: physicalRow,
|
55
56
|
col: physicalColumn
|
56
57
|
} = cellMeta;
|
57
|
-
if (this.metaSyncMemo.get(physicalRow)
|
58
|
+
if ((_this$metaSyncMemo$ge = this.metaSyncMemo.get(physicalRow)) !== null && _this$metaSyncMemo$ge !== void 0 && _this$metaSyncMemo$ge.has(physicalColumn)) {
|
58
59
|
return;
|
59
60
|
}
|
60
61
|
const {
|
@@ -72,7 +73,7 @@ class DynamicCellMetaMod {
|
|
72
73
|
if (cellType) {
|
73
74
|
if (cellSettings) {
|
74
75
|
var _cellSettings$type;
|
75
|
-
cellSettings.type = (_cellSettings$type = cellSettings.type)
|
76
|
+
cellSettings.type = (_cellSettings$type = cellSettings.type) !== null && _cellSettings$type !== void 0 ? _cellSettings$type : cellType;
|
76
77
|
} else {
|
77
78
|
cellSettings = {
|
78
79
|
type: cellType
|
@@ -46,11 +46,12 @@ export class DynamicCellMetaMod {
|
|
46
46
|
* @param {object} cellMeta The cell meta object.
|
47
47
|
*/
|
48
48
|
extendCellMeta(cellMeta) {
|
49
|
+
var _this$metaSyncMemo$ge;
|
49
50
|
const {
|
50
51
|
row: physicalRow,
|
51
52
|
col: physicalColumn
|
52
53
|
} = cellMeta;
|
53
|
-
if (this.metaSyncMemo.get(physicalRow)
|
54
|
+
if ((_this$metaSyncMemo$ge = this.metaSyncMemo.get(physicalRow)) !== null && _this$metaSyncMemo$ge !== void 0 && _this$metaSyncMemo$ge.has(physicalColumn)) {
|
54
55
|
return;
|
55
56
|
}
|
56
57
|
const {
|
@@ -68,7 +69,7 @@ export class DynamicCellMetaMod {
|
|
68
69
|
if (cellType) {
|
69
70
|
if (cellSettings) {
|
70
71
|
var _cellSettings$type;
|
71
|
-
cellSettings.type = (_cellSettings$type = cellSettings.type)
|
72
|
+
cellSettings.type = (_cellSettings$type = cellSettings.type) !== null && _cellSettings$type !== void 0 ? _cellSettings$type : cellType;
|
72
73
|
} else {
|
73
74
|
cellSettings = {
|
74
75
|
type: cellType
|
@@ -17,10 +17,11 @@ var _registry = require("../../cellTypes/registry");
|
|
17
17
|
* @returns {boolean}
|
18
18
|
*/
|
19
19
|
function canBeOverwritten(propertyName, metaObject) {
|
20
|
+
var _metaObject$_automati;
|
20
21
|
if (propertyName === 'CELL_TYPE') {
|
21
22
|
return false;
|
22
23
|
}
|
23
|
-
return metaObject._automaticallyAssignedMetaProps
|
24
|
+
return ((_metaObject$_automati = metaObject._automaticallyAssignedMetaProps) === null || _metaObject$_automati === void 0 ? void 0 : _metaObject$_automati.has(propertyName)) || !(0, _object.hasOwnProperty)(metaObject, propertyName);
|
24
25
|
}
|
25
26
|
|
26
27
|
/**
|
@@ -52,8 +53,9 @@ function extendByMetaType(metaObject, settings) {
|
|
52
53
|
const expandedType = {};
|
53
54
|
(0, _object.objectEach)(validType, (value, property) => {
|
54
55
|
if (canBeOverwritten(property, settingsToCompareWith)) {
|
56
|
+
var _metaObject$_automati2;
|
55
57
|
expandedType[property] = value;
|
56
|
-
metaObject._automaticallyAssignedMetaProps
|
58
|
+
(_metaObject$_automati2 = metaObject._automaticallyAssignedMetaProps) === null || _metaObject$_automati2 === void 0 ? void 0 : _metaObject$_automati2.add(property);
|
57
59
|
}
|
58
60
|
});
|
59
61
|
(0, _object.extend)(metaObject, expandedType);
|
@@ -9,10 +9,11 @@ import { getCellType } from "../../cellTypes/registry.mjs";
|
|
9
9
|
* @returns {boolean}
|
10
10
|
*/
|
11
11
|
function canBeOverwritten(propertyName, metaObject) {
|
12
|
+
var _metaObject$_automati;
|
12
13
|
if (propertyName === 'CELL_TYPE') {
|
13
14
|
return false;
|
14
15
|
}
|
15
|
-
return metaObject._automaticallyAssignedMetaProps
|
16
|
+
return ((_metaObject$_automati = metaObject._automaticallyAssignedMetaProps) === null || _metaObject$_automati === void 0 ? void 0 : _metaObject$_automati.has(propertyName)) || !hasOwnProperty(metaObject, propertyName);
|
16
17
|
}
|
17
18
|
|
18
19
|
/**
|
@@ -44,8 +45,9 @@ export function extendByMetaType(metaObject, settings) {
|
|
44
45
|
const expandedType = {};
|
45
46
|
objectEach(validType, (value, property) => {
|
46
47
|
if (canBeOverwritten(property, settingsToCompareWith)) {
|
48
|
+
var _metaObject$_automati2;
|
47
49
|
expandedType[property] = value;
|
48
|
-
metaObject._automaticallyAssignedMetaProps
|
50
|
+
(_metaObject$_automati2 = metaObject._automaticallyAssignedMetaProps) === null || _metaObject$_automati2 === void 0 ? void 0 : _metaObject$_automati2.add(property);
|
49
51
|
}
|
50
52
|
});
|
51
53
|
extend(metaObject, expandedType);
|
package/dist/handsontable.css
CHANGED
@@ -25,8 +25,8 @@
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
27
27
|
*
|
28
|
-
* Version: 0.0.0-next-
|
29
|
-
* Release date: 22/06/2023 (built at 13/07/2023
|
28
|
+
* Version: 0.0.0-next-85c3085-20230713
|
29
|
+
* Release date: 22/06/2023 (built at 13/07/2023 08:33:59)
|
30
30
|
*/
|
31
31
|
/**
|
32
32
|
* Fix for bootstrap styles
|
@@ -25,8 +25,8 @@
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
27
27
|
*
|
28
|
-
* Version: 0.0.0-next-
|
29
|
-
* Release date: 22/06/2023 (built at 13/07/2023
|
28
|
+
* Version: 0.0.0-next-85c3085-20230713
|
29
|
+
* Release date: 22/06/2023 (built at 13/07/2023 08:33:59)
|
30
30
|
*/
|
31
31
|
/**
|
32
32
|
* Fix for bootstrap styles
|