handsontable 12.3.3 → 12.4.0-next-ddbea0c-20230512
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.
- package/3rdparty/walkontable/src/cell/coords.js +13 -16
- package/3rdparty/walkontable/src/cell/coords.mjs +13 -16
- package/3rdparty/walkontable/src/cell/range.js +25 -29
- package/3rdparty/walkontable/src/cell/range.mjs +24 -28
- package/3rdparty/walkontable/src/core/_base.js +16 -20
- package/3rdparty/walkontable/src/core/_base.mjs +16 -20
- package/3rdparty/walkontable/src/event.js +4 -0
- package/3rdparty/walkontable/src/event.mjs +4 -0
- package/3rdparty/walkontable/src/overlay/_base.js +6 -7
- package/3rdparty/walkontable/src/overlay/_base.mjs +6 -7
- package/3rdparty/walkontable/src/overlay/bottom.js +6 -7
- package/3rdparty/walkontable/src/overlay/bottom.mjs +6 -7
- package/3rdparty/walkontable/src/overlay/top.js +6 -7
- package/3rdparty/walkontable/src/overlay/top.mjs +6 -7
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.js +10 -12
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.mjs +10 -12
- package/3rdparty/walkontable/src/overlays.js +55 -64
- package/3rdparty/walkontable/src/overlays.mjs +55 -64
- package/3rdparty/walkontable/src/scroll.js +20 -23
- package/3rdparty/walkontable/src/scroll.mjs +20 -23
- package/3rdparty/walkontable/src/settings.js +13 -15
- package/3rdparty/walkontable/src/settings.mjs +13 -15
- package/3rdparty/walkontable/src/table.js +22 -26
- package/3rdparty/walkontable/src/table.mjs +22 -26
- package/CHANGELOG.md +14 -0
- package/base.js +2 -4
- package/base.mjs +2 -2
- package/core.js +23 -6
- package/core.mjs +23 -6
- package/dataMap/dataSource.js +5 -5
- package/dataMap/dataSource.mjs +5 -5
- package/dataMap/metaManager/metaSchema.js +9 -7
- package/dataMap/metaManager/metaSchema.mjs +9 -7
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +7364 -5992
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +256 -234
- package/dist/handsontable.js +4326 -3275
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +11 -3
- package/dist/languages/all.js +133 -0
- package/dist/languages/ar-AR.js +7 -0
- package/dist/languages/cs-CZ.js +7 -0
- package/dist/languages/de-CH.js +7 -0
- package/dist/languages/de-DE.js +7 -0
- package/dist/languages/en-US.js +7 -0
- package/dist/languages/es-MX.js +7 -0
- package/dist/languages/fr-FR.js +7 -0
- package/dist/languages/it-IT.js +7 -0
- package/dist/languages/ja-JP.js +7 -0
- package/dist/languages/ko-KR.js +7 -0
- package/dist/languages/lv-LV.js +7 -0
- package/dist/languages/nb-NO.js +7 -0
- package/dist/languages/nl-NL.js +7 -0
- package/dist/languages/pl-PL.js +7 -0
- package/dist/languages/pt-BR.js +7 -0
- package/dist/languages/ru-RU.js +7 -0
- package/dist/languages/sr-SP.js +7 -0
- package/dist/languages/zh-CN.js +7 -0
- package/dist/languages/zh-TW.js +7 -0
- package/editors/autocompleteEditor/autocompleteEditor.js +8 -9
- package/editors/autocompleteEditor/autocompleteEditor.mjs +8 -9
- package/helpers/mixed.js +2 -2
- package/helpers/mixed.mjs +2 -2
- package/i18n/languages/ar-AR.js +7 -1
- package/i18n/languages/cs-CZ.js +7 -1
- package/i18n/languages/de-CH.js +7 -1
- package/i18n/languages/de-DE.js +7 -1
- package/i18n/languages/en-US.js +7 -1
- package/i18n/languages/es-MX.js +7 -1
- package/i18n/languages/fr-FR.js +7 -1
- package/i18n/languages/it-IT.js +7 -1
- package/i18n/languages/ja-JP.js +7 -1
- package/i18n/languages/ko-KR.js +7 -1
- package/i18n/languages/lv-LV.js +7 -1
- package/i18n/languages/nb-NO.js +7 -1
- package/i18n/languages/nl-NL.js +7 -1
- package/i18n/languages/pl-PL.js +7 -1
- package/i18n/languages/pt-BR.js +7 -1
- package/i18n/languages/ru-RU.js +7 -1
- package/i18n/languages/sr-SP.js +7 -1
- package/i18n/languages/zh-CN.js +7 -1
- package/i18n/languages/zh-TW.js +7 -1
- package/languages/all.js +133 -0
- package/languages/ar-AR.js +7 -0
- package/languages/cs-CZ.js +7 -0
- package/languages/de-CH.js +7 -0
- package/languages/de-DE.js +7 -0
- package/languages/en-US.js +7 -0
- package/languages/es-MX.js +7 -0
- package/languages/fr-FR.js +7 -0
- package/languages/index.js +133 -0
- package/languages/it-IT.js +7 -0
- package/languages/ja-JP.js +7 -0
- package/languages/ko-KR.js +7 -0
- package/languages/lv-LV.js +7 -0
- package/languages/nb-NO.js +7 -0
- package/languages/nl-NL.js +7 -0
- package/languages/pl-PL.js +7 -0
- package/languages/pt-BR.js +7 -0
- package/languages/ru-RU.js +7 -0
- package/languages/sr-SP.js +7 -0
- package/languages/zh-CN.js +7 -0
- package/languages/zh-TW.js +7 -0
- package/package.json +3 -2
- package/pluginHooks.js +16 -6
- package/pluginHooks.mjs +15 -3
- package/plugins/autoRowSize/autoRowSize.js +2 -2
- package/plugins/autoRowSize/autoRowSize.mjs +2 -2
- package/plugins/base/base.js +9 -10
- package/plugins/base/base.mjs +9 -10
- package/plugins/collapsibleColumns/collapsibleColumns.js +24 -7
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +24 -7
- package/plugins/copyPaste/copyPaste.js +92 -16
- package/plugins/copyPaste/copyPaste.mjs +92 -16
- package/plugins/copyPaste/copyableRanges.js +39 -39
- package/plugins/copyPaste/copyableRanges.mjs +32 -32
- package/plugins/customBorders/customBorders.d.ts +2 -0
- package/plugins/customBorders/customBorders.js +6 -7
- package/plugins/customBorders/customBorders.mjs +6 -7
- package/plugins/filters/filters.js +5 -0
- package/plugins/filters/filters.mjs +5 -0
- package/plugins/formulas/engine/register.js +9 -0
- package/plugins/formulas/engine/register.mjs +13 -4
- package/plugins/formulas/engine/settings.js +18 -3
- package/plugins/formulas/engine/settings.mjs +16 -3
- package/plugins/formulas/formulas.js +308 -162
- package/plugins/formulas/formulas.mjs +308 -163
- package/plugins/formulas/indexSyncer/axisSyncer.js +379 -0
- package/plugins/formulas/indexSyncer/axisSyncer.mjs +374 -0
- package/plugins/formulas/indexSyncer/index.js +225 -0
- package/plugins/formulas/indexSyncer/index.mjs +219 -0
- package/plugins/formulas/utils.js +81 -0
- package/plugins/formulas/utils.mjs +74 -0
- package/plugins/hiddenColumns/hiddenColumns.js +12 -7
- package/plugins/hiddenColumns/hiddenColumns.mjs +12 -7
- package/plugins/hiddenRows/hiddenRows.js +12 -7
- package/plugins/hiddenRows/hiddenRows.mjs +12 -7
- package/plugins/manualRowMove/manualRowMove.js +26 -11
- package/plugins/manualRowMove/manualRowMove.mjs +27 -12
- package/plugins/nestedHeaders/nestedHeaders.js +26 -7
- package/plugins/nestedHeaders/nestedHeaders.mjs +26 -7
- package/plugins/nestedHeaders/stateManager/headersTree.js +23 -26
- package/plugins/nestedHeaders/stateManager/headersTree.mjs +20 -23
- package/plugins/nestedHeaders/stateManager/index.js +21 -3
- package/plugins/nestedHeaders/stateManager/index.mjs +18 -0
- package/plugins/nestedHeaders/stateManager/matrixGenerator.js +1 -0
- package/plugins/nestedHeaders/stateManager/settingsNormalizer.js +1 -1
- package/plugins/nestedHeaders/stateManager/sourceSettings.js +19 -0
- package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +19 -0
- package/plugins/nestedHeaders/utils/ghostTable.js +30 -35
- package/plugins/nestedHeaders/utils/ghostTable.mjs +30 -35
- package/plugins/registry.js +3 -1
- package/plugins/undoRedo/undoRedo.js +0 -1
- package/plugins/undoRedo/undoRedo.mjs +0 -1
- package/selection/highlight/visualSelection.js +5 -6
- package/selection/highlight/visualSelection.mjs +5 -6
- package/tableView.js +62 -72
- package/tableView.mjs +62 -72
- package/translations/changesObservable/observable.js +41 -46
- package/translations/changesObservable/observable.mjs +36 -41
- package/translations/changesObservable/observer.js +8 -1
- package/translations/changesObservable/observer.mjs +7 -0
- package/translations/indexMapper.js +21 -0
- package/translations/indexMapper.mjs +21 -0
- package/translations/maps/linkedPhysicalIndexToValueMap.js +6 -0
- package/translations/maps/linkedPhysicalIndexToValueMap.mjs +6 -0
- package/utils/dataStructures/tree.js +15 -18
- package/utils/dataStructures/tree.mjs +15 -18
- package/utils/parseTable.js +5 -1
- package/utils/parseTable.mjs +5 -1
@@ -47,27 +47,24 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
47
47
|
* ```
|
48
48
|
*/
|
49
49
|
var CellCoords = /*#__PURE__*/function () {
|
50
|
-
/**
|
51
|
-
* A visual row index.
|
52
|
-
*
|
53
|
-
* @type {number}
|
54
|
-
*/
|
55
|
-
|
56
|
-
/**
|
57
|
-
* A visual column index.
|
58
|
-
*
|
59
|
-
* @type {number}
|
60
|
-
*/
|
61
|
-
|
62
|
-
/**
|
63
|
-
* @type {boolean}
|
64
|
-
*/
|
65
|
-
|
66
50
|
function CellCoords(row, column) {
|
67
51
|
var isRtl = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
68
52
|
_classCallCheck(this, CellCoords);
|
53
|
+
/**
|
54
|
+
* A visual row index.
|
55
|
+
*
|
56
|
+
* @type {number}
|
57
|
+
*/
|
69
58
|
_defineProperty(this, "row", null);
|
59
|
+
/**
|
60
|
+
* A visual column index.
|
61
|
+
*
|
62
|
+
* @type {number}
|
63
|
+
*/
|
70
64
|
_defineProperty(this, "col", null);
|
65
|
+
/**
|
66
|
+
* @type {boolean}
|
67
|
+
*/
|
71
68
|
_classPrivateFieldInitSpec(this, _isRtl, {
|
72
69
|
writable: true,
|
73
70
|
value: false
|
@@ -43,27 +43,24 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
43
43
|
* ```
|
44
44
|
*/
|
45
45
|
var CellCoords = /*#__PURE__*/function () {
|
46
|
-
/**
|
47
|
-
* A visual row index.
|
48
|
-
*
|
49
|
-
* @type {number}
|
50
|
-
*/
|
51
|
-
|
52
|
-
/**
|
53
|
-
* A visual column index.
|
54
|
-
*
|
55
|
-
* @type {number}
|
56
|
-
*/
|
57
|
-
|
58
|
-
/**
|
59
|
-
* @type {boolean}
|
60
|
-
*/
|
61
|
-
|
62
46
|
function CellCoords(row, column) {
|
63
47
|
var isRtl = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
64
48
|
_classCallCheck(this, CellCoords);
|
49
|
+
/**
|
50
|
+
* A visual row index.
|
51
|
+
*
|
52
|
+
* @type {number}
|
53
|
+
*/
|
65
54
|
_defineProperty(this, "row", null);
|
55
|
+
/**
|
56
|
+
* A visual column index.
|
57
|
+
*
|
58
|
+
* @type {number}
|
59
|
+
*/
|
66
60
|
_defineProperty(this, "col", null);
|
61
|
+
/**
|
62
|
+
* @type {boolean}
|
63
|
+
*/
|
67
64
|
_classPrivateFieldInitSpec(this, _isRtl, {
|
68
65
|
writable: true,
|
69
66
|
value: false
|
@@ -32,7 +32,6 @@ function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) {
|
|
32
32
|
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
|
33
33
|
function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
|
34
34
|
function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } descriptor.value = value; } }
|
35
|
-
var _isRtl = /*#__PURE__*/new WeakMap();
|
36
35
|
/* eslint-disable jsdoc/require-description-complete-sentence */
|
37
36
|
/**
|
38
37
|
* @description
|
@@ -52,43 +51,40 @@ var _isRtl = /*#__PURE__*/new WeakMap();
|
|
52
51
|
* import Handsontable, { CellRange } from '/handsontable/base';
|
53
52
|
* ```
|
54
53
|
*/
|
54
|
+
var _isRtl = /*#__PURE__*/new WeakMap();
|
55
55
|
var CellRange = /*#__PURE__*/function () {
|
56
|
-
/**
|
57
|
-
* Used to draw bold border around a cell where selection was started and to edit the cell
|
58
|
-
* when you press Enter. The highlight cannot point to headers (negative values) so its
|
59
|
-
* coordinates object is normalized while assigning.
|
60
|
-
*
|
61
|
-
* @private
|
62
|
-
* @type {CellCoords}
|
63
|
-
*/
|
64
|
-
|
65
|
-
/**
|
66
|
-
* Usually the same as highlight, but in Excel there is distinction - one can change
|
67
|
-
* highlight within a selection.
|
68
|
-
*
|
69
|
-
* @private
|
70
|
-
* @type {CellCoords}
|
71
|
-
*/
|
72
|
-
|
73
|
-
/**
|
74
|
-
* End selection.
|
75
|
-
*
|
76
|
-
* @private
|
77
|
-
* @type {CellCoords}
|
78
|
-
*/
|
79
|
-
|
80
|
-
/**
|
81
|
-
* @type {boolean}
|
82
|
-
*/
|
83
|
-
|
84
56
|
function CellRange(highlight) {
|
85
57
|
var from = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : highlight;
|
86
58
|
var to = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : highlight;
|
87
59
|
var isRtl = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
88
60
|
_classCallCheck(this, CellRange);
|
61
|
+
/**
|
62
|
+
* Used to draw bold border around a cell where selection was started and to edit the cell
|
63
|
+
* when you press Enter. The highlight cannot point to headers (negative values) so its
|
64
|
+
* coordinates object is normalized while assigning.
|
65
|
+
*
|
66
|
+
* @private
|
67
|
+
* @type {CellCoords}
|
68
|
+
*/
|
89
69
|
_defineProperty(this, "highlight", null);
|
70
|
+
/**
|
71
|
+
* Usually the same as highlight, but in Excel there is distinction - one can change
|
72
|
+
* highlight within a selection.
|
73
|
+
*
|
74
|
+
* @private
|
75
|
+
* @type {CellCoords}
|
76
|
+
*/
|
90
77
|
_defineProperty(this, "from", null);
|
78
|
+
/**
|
79
|
+
* End selection.
|
80
|
+
*
|
81
|
+
* @private
|
82
|
+
* @type {CellCoords}
|
83
|
+
*/
|
91
84
|
_defineProperty(this, "to", null);
|
85
|
+
/**
|
86
|
+
* @type {boolean}
|
87
|
+
*/
|
92
88
|
_classPrivateFieldInitSpec(this, _isRtl, {
|
93
89
|
writable: true,
|
94
90
|
value: false
|
@@ -48,42 +48,38 @@ import CellCoords from "./../cell/coords.mjs";
|
|
48
48
|
*/
|
49
49
|
var _isRtl = /*#__PURE__*/new WeakMap();
|
50
50
|
var CellRange = /*#__PURE__*/function () {
|
51
|
-
/**
|
52
|
-
* Used to draw bold border around a cell where selection was started and to edit the cell
|
53
|
-
* when you press Enter. The highlight cannot point to headers (negative values) so its
|
54
|
-
* coordinates object is normalized while assigning.
|
55
|
-
*
|
56
|
-
* @private
|
57
|
-
* @type {CellCoords}
|
58
|
-
*/
|
59
|
-
|
60
|
-
/**
|
61
|
-
* Usually the same as highlight, but in Excel there is distinction - one can change
|
62
|
-
* highlight within a selection.
|
63
|
-
*
|
64
|
-
* @private
|
65
|
-
* @type {CellCoords}
|
66
|
-
*/
|
67
|
-
|
68
|
-
/**
|
69
|
-
* End selection.
|
70
|
-
*
|
71
|
-
* @private
|
72
|
-
* @type {CellCoords}
|
73
|
-
*/
|
74
|
-
|
75
|
-
/**
|
76
|
-
* @type {boolean}
|
77
|
-
*/
|
78
|
-
|
79
51
|
function CellRange(highlight) {
|
80
52
|
var from = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : highlight;
|
81
53
|
var to = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : highlight;
|
82
54
|
var isRtl = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
83
55
|
_classCallCheck(this, CellRange);
|
56
|
+
/**
|
57
|
+
* Used to draw bold border around a cell where selection was started and to edit the cell
|
58
|
+
* when you press Enter. The highlight cannot point to headers (negative values) so its
|
59
|
+
* coordinates object is normalized while assigning.
|
60
|
+
*
|
61
|
+
* @private
|
62
|
+
* @type {CellCoords}
|
63
|
+
*/
|
84
64
|
_defineProperty(this, "highlight", null);
|
65
|
+
/**
|
66
|
+
* Usually the same as highlight, but in Excel there is distinction - one can change
|
67
|
+
* highlight within a selection.
|
68
|
+
*
|
69
|
+
* @private
|
70
|
+
* @type {CellCoords}
|
71
|
+
*/
|
85
72
|
_defineProperty(this, "from", null);
|
73
|
+
/**
|
74
|
+
* End selection.
|
75
|
+
*
|
76
|
+
* @private
|
77
|
+
* @type {CellCoords}
|
78
|
+
*/
|
86
79
|
_defineProperty(this, "to", null);
|
80
|
+
/**
|
81
|
+
* @type {boolean}
|
82
|
+
*/
|
87
83
|
_classPrivateFieldInitSpec(this, _isRtl, {
|
88
84
|
writable: true,
|
89
85
|
value: false
|
@@ -43,44 +43,40 @@ var CoreAbstract = /*#__PURE__*/function () {
|
|
43
43
|
_defineProperty(this, "wtOverlays", void 0);
|
44
44
|
_defineProperty(this, "selections", void 0);
|
45
45
|
_defineProperty(this, "wtEvent", void 0);
|
46
|
-
_defineProperty(this, "guid", "wt_".concat((0, _string.randomString)()));
|
47
|
-
_defineProperty(this, "drawInterrupted", false);
|
48
|
-
_defineProperty(this, "drawn", false);
|
49
|
-
_defineProperty(this, "domBindings", void 0);
|
50
|
-
_defineProperty(this, "wtSettings", void 0);
|
51
|
-
this.domBindings = {
|
52
|
-
rootTable: table,
|
53
|
-
rootDocument: table.ownerDocument,
|
54
|
-
rootWindow: table.ownerDocument.defaultView
|
55
|
-
};
|
56
|
-
this.wtSettings = settings;
|
57
|
-
this.wtScroll = new _scroll.default(this.createScrollDao());
|
58
|
-
}
|
59
|
-
_createClass(CoreAbstract, [{
|
60
|
-
key: "eventManager",
|
61
|
-
get:
|
62
46
|
/**
|
63
47
|
* The walkontable instance id.
|
64
48
|
*
|
65
49
|
* @public
|
66
50
|
* @type {Readonly<string>}
|
67
51
|
*/
|
68
|
-
|
52
|
+
_defineProperty(this, "guid", "wt_".concat((0, _string.randomString)()));
|
53
|
+
_defineProperty(this, "drawInterrupted", false);
|
54
|
+
_defineProperty(this, "drawn", false);
|
69
55
|
/**
|
70
56
|
* The DOM bindings.
|
71
57
|
*
|
72
58
|
* @public
|
73
59
|
* @type {DomBindings}
|
74
60
|
*/
|
75
|
-
|
61
|
+
_defineProperty(this, "domBindings", void 0);
|
76
62
|
/**
|
77
63
|
* Settings.
|
78
64
|
*
|
79
65
|
* @public
|
80
66
|
* @type {Settings}
|
81
67
|
*/
|
82
|
-
|
83
|
-
|
68
|
+
_defineProperty(this, "wtSettings", void 0);
|
69
|
+
this.domBindings = {
|
70
|
+
rootTable: table,
|
71
|
+
rootDocument: table.ownerDocument,
|
72
|
+
rootWindow: table.ownerDocument.defaultView
|
73
|
+
};
|
74
|
+
this.wtSettings = settings;
|
75
|
+
this.wtScroll = new _scroll.default(this.createScrollDao());
|
76
|
+
}
|
77
|
+
_createClass(CoreAbstract, [{
|
78
|
+
key: "eventManager",
|
79
|
+
get: function get() {
|
84
80
|
return new _eventManager.default(this);
|
85
81
|
}
|
86
82
|
}, {
|
@@ -38,44 +38,40 @@ var CoreAbstract = /*#__PURE__*/function () {
|
|
38
38
|
_defineProperty(this, "wtOverlays", void 0);
|
39
39
|
_defineProperty(this, "selections", void 0);
|
40
40
|
_defineProperty(this, "wtEvent", void 0);
|
41
|
-
_defineProperty(this, "guid", "wt_".concat(randomString()));
|
42
|
-
_defineProperty(this, "drawInterrupted", false);
|
43
|
-
_defineProperty(this, "drawn", false);
|
44
|
-
_defineProperty(this, "domBindings", void 0);
|
45
|
-
_defineProperty(this, "wtSettings", void 0);
|
46
|
-
this.domBindings = {
|
47
|
-
rootTable: table,
|
48
|
-
rootDocument: table.ownerDocument,
|
49
|
-
rootWindow: table.ownerDocument.defaultView
|
50
|
-
};
|
51
|
-
this.wtSettings = settings;
|
52
|
-
this.wtScroll = new Scroll(this.createScrollDao());
|
53
|
-
}
|
54
|
-
_createClass(CoreAbstract, [{
|
55
|
-
key: "eventManager",
|
56
|
-
get:
|
57
41
|
/**
|
58
42
|
* The walkontable instance id.
|
59
43
|
*
|
60
44
|
* @public
|
61
45
|
* @type {Readonly<string>}
|
62
46
|
*/
|
63
|
-
|
47
|
+
_defineProperty(this, "guid", "wt_".concat(randomString()));
|
48
|
+
_defineProperty(this, "drawInterrupted", false);
|
49
|
+
_defineProperty(this, "drawn", false);
|
64
50
|
/**
|
65
51
|
* The DOM bindings.
|
66
52
|
*
|
67
53
|
* @public
|
68
54
|
* @type {DomBindings}
|
69
55
|
*/
|
70
|
-
|
56
|
+
_defineProperty(this, "domBindings", void 0);
|
71
57
|
/**
|
72
58
|
* Settings.
|
73
59
|
*
|
74
60
|
* @public
|
75
61
|
* @type {Settings}
|
76
62
|
*/
|
77
|
-
|
78
|
-
|
63
|
+
_defineProperty(this, "wtSettings", void 0);
|
64
|
+
this.domBindings = {
|
65
|
+
rootTable: table,
|
66
|
+
rootDocument: table.ownerDocument,
|
67
|
+
rootWindow: table.ownerDocument.defaultView
|
68
|
+
};
|
69
|
+
this.wtSettings = settings;
|
70
|
+
this.wtScroll = new Scroll(this.createScrollDao());
|
71
|
+
}
|
72
|
+
_createClass(CoreAbstract, [{
|
73
|
+
key: "eventManager",
|
74
|
+
get: function get() {
|
79
75
|
return new EventManager(this);
|
80
76
|
}
|
81
77
|
}, {
|
@@ -279,8 +279,12 @@ var Event = /*#__PURE__*/function () {
|
|
279
279
|
var table = this.wtTable.TABLE;
|
280
280
|
var lastTD = (0, _element.closestDown)(event.target, ['TD', 'TH'], table);
|
281
281
|
var nextTD = (0, _element.closestDown)(event.relatedTarget, ['TD', 'TH'], table);
|
282
|
+
var parent = this.parent || this;
|
282
283
|
if (lastTD && lastTD !== nextTD && (0, _element.isChildOf)(lastTD, table)) {
|
283
284
|
this.callListener('onCellMouseOut', event, this.wtTable.getCoords(lastTD), lastTD);
|
285
|
+
if (nextTD === null) {
|
286
|
+
parent.lastMouseOver = null;
|
287
|
+
}
|
284
288
|
}
|
285
289
|
}
|
286
290
|
|
@@ -275,8 +275,12 @@ var Event = /*#__PURE__*/function () {
|
|
275
275
|
var table = this.wtTable.TABLE;
|
276
276
|
var lastTD = closestDown(event.target, ['TD', 'TH'], table);
|
277
277
|
var nextTD = closestDown(event.relatedTarget, ['TD', 'TH'], table);
|
278
|
+
var parent = this.parent || this;
|
278
279
|
if (lastTD && lastTD !== nextTD && isChildOf(lastTD, table)) {
|
279
280
|
this.callListener('onCellMouseOut', event, this.wtTable.getCoords(lastTD), lastTD);
|
281
|
+
if (nextTD === null) {
|
282
|
+
parent.lastMouseOver = null;
|
283
|
+
}
|
280
284
|
}
|
281
285
|
}
|
282
286
|
|
@@ -36,13 +36,6 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
36
36
|
* @property {Walkontable} wot The Walkontable instance.
|
37
37
|
*/
|
38
38
|
var Overlay = /*#__PURE__*/function () {
|
39
|
-
/**
|
40
|
-
* The Walkontable settings.
|
41
|
-
*
|
42
|
-
* @private
|
43
|
-
* @type {Settings}
|
44
|
-
*/
|
45
|
-
|
46
39
|
/**
|
47
40
|
* @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
|
48
41
|
* @param {FacadeGetter} facadeGetter Function which return proper facade.
|
@@ -52,6 +45,12 @@ var Overlay = /*#__PURE__*/function () {
|
|
52
45
|
*/
|
53
46
|
function Overlay(wotInstance, facadeGetter, type, wtSettings, domBindings) {
|
54
47
|
_classCallCheck(this, Overlay);
|
48
|
+
/**
|
49
|
+
* The Walkontable settings.
|
50
|
+
*
|
51
|
+
* @private
|
52
|
+
* @type {Settings}
|
53
|
+
*/
|
55
54
|
_defineProperty(this, "wtSettings", null);
|
56
55
|
(0, _object.defineGetter)(this, 'wot', wotInstance, {
|
57
56
|
writable: false
|
@@ -31,13 +31,6 @@ import Clone from "../core/clone.mjs";
|
|
31
31
|
* @property {Walkontable} wot The Walkontable instance.
|
32
32
|
*/
|
33
33
|
export var Overlay = /*#__PURE__*/function () {
|
34
|
-
/**
|
35
|
-
* The Walkontable settings.
|
36
|
-
*
|
37
|
-
* @private
|
38
|
-
* @type {Settings}
|
39
|
-
*/
|
40
|
-
|
41
34
|
/**
|
42
35
|
* @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
|
43
36
|
* @param {FacadeGetter} facadeGetter Function which return proper facade.
|
@@ -47,6 +40,12 @@ export var Overlay = /*#__PURE__*/function () {
|
|
47
40
|
*/
|
48
41
|
function Overlay(wotInstance, facadeGetter, type, wtSettings, domBindings) {
|
49
42
|
_classCallCheck(this, Overlay);
|
43
|
+
/**
|
44
|
+
* The Walkontable settings.
|
45
|
+
*
|
46
|
+
* @private
|
47
|
+
* @type {Settings}
|
48
|
+
*/
|
50
49
|
_defineProperty(this, "wtSettings", null);
|
51
50
|
defineGetter(this, 'wot', wotInstance, {
|
52
51
|
writable: false
|
@@ -41,13 +41,6 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
41
41
|
var BottomOverlay = /*#__PURE__*/function (_Overlay) {
|
42
42
|
_inherits(BottomOverlay, _Overlay);
|
43
43
|
var _super = _createSuper(BottomOverlay);
|
44
|
-
/**
|
45
|
-
* Cached value which holds the previous value of the `fixedRowsBottom` option.
|
46
|
-
* It is used as a comparison value that can be used to detect changes in that value.
|
47
|
-
*
|
48
|
-
* @type {number}
|
49
|
-
*/
|
50
|
-
|
51
44
|
/**
|
52
45
|
* @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
|
53
46
|
* @param {FacadeGetter} facadeGetter Function which return proper facade.
|
@@ -58,6 +51,12 @@ var BottomOverlay = /*#__PURE__*/function (_Overlay) {
|
|
58
51
|
var _this;
|
59
52
|
_classCallCheck(this, BottomOverlay);
|
60
53
|
_this = _super.call(this, wotInstance, facadeGetter, _constants.CLONE_BOTTOM, wtSettings, domBindings);
|
54
|
+
/**
|
55
|
+
* Cached value which holds the previous value of the `fixedRowsBottom` option.
|
56
|
+
* It is used as a comparison value that can be used to detect changes in that value.
|
57
|
+
*
|
58
|
+
* @type {number}
|
59
|
+
*/
|
61
60
|
_defineProperty(_assertThisInitialized(_this), "cachedFixedRowsBottom", -1);
|
62
61
|
_this.cachedFixedRowsBottom = _this.wtSettings.getSetting('fixedRowsBottom');
|
63
62
|
return _this;
|
@@ -36,13 +36,6 @@ import { CLONE_BOTTOM } from "./constants.mjs";
|
|
36
36
|
export var BottomOverlay = /*#__PURE__*/function (_Overlay) {
|
37
37
|
_inherits(BottomOverlay, _Overlay);
|
38
38
|
var _super = _createSuper(BottomOverlay);
|
39
|
-
/**
|
40
|
-
* Cached value which holds the previous value of the `fixedRowsBottom` option.
|
41
|
-
* It is used as a comparison value that can be used to detect changes in that value.
|
42
|
-
*
|
43
|
-
* @type {number}
|
44
|
-
*/
|
45
|
-
|
46
39
|
/**
|
47
40
|
* @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
|
48
41
|
* @param {FacadeGetter} facadeGetter Function which return proper facade.
|
@@ -53,6 +46,12 @@ export var BottomOverlay = /*#__PURE__*/function (_Overlay) {
|
|
53
46
|
var _this;
|
54
47
|
_classCallCheck(this, BottomOverlay);
|
55
48
|
_this = _super.call(this, wotInstance, facadeGetter, CLONE_BOTTOM, wtSettings, domBindings);
|
49
|
+
/**
|
50
|
+
* Cached value which holds the previous value of the `fixedRowsBottom` option.
|
51
|
+
* It is used as a comparison value that can be used to detect changes in that value.
|
52
|
+
*
|
53
|
+
* @type {number}
|
54
|
+
*/
|
56
55
|
_defineProperty(_assertThisInitialized(_this), "cachedFixedRowsBottom", -1);
|
57
56
|
_this.cachedFixedRowsBottom = _this.wtSettings.getSetting('fixedRowsBottom');
|
58
57
|
return _this;
|
@@ -41,13 +41,6 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
41
41
|
var TopOverlay = /*#__PURE__*/function (_Overlay) {
|
42
42
|
_inherits(TopOverlay, _Overlay);
|
43
43
|
var _super = _createSuper(TopOverlay);
|
44
|
-
/**
|
45
|
-
* Cached value which holds the previous value of the `fixedRowsTop` option.
|
46
|
-
* It is used as a comparison value that can be used to detect changes in this value.
|
47
|
-
*
|
48
|
-
* @type {number}
|
49
|
-
*/
|
50
|
-
|
51
44
|
/**
|
52
45
|
* @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
|
53
46
|
* @param {FacadeGetter} facadeGetter Function which return proper facade.
|
@@ -58,6 +51,12 @@ var TopOverlay = /*#__PURE__*/function (_Overlay) {
|
|
58
51
|
var _this;
|
59
52
|
_classCallCheck(this, TopOverlay);
|
60
53
|
_this = _super.call(this, wotInstance, facadeGetter, _constants.CLONE_TOP, wtSettings, domBindings);
|
54
|
+
/**
|
55
|
+
* Cached value which holds the previous value of the `fixedRowsTop` option.
|
56
|
+
* It is used as a comparison value that can be used to detect changes in this value.
|
57
|
+
*
|
58
|
+
* @type {number}
|
59
|
+
*/
|
61
60
|
_defineProperty(_assertThisInitialized(_this), "cachedFixedRowsTop", -1);
|
62
61
|
_this.cachedFixedRowsTop = _this.wtSettings.getSetting('fixedRowsTop');
|
63
62
|
return _this;
|
@@ -36,13 +36,6 @@ import { CLONE_TOP } from "./constants.mjs";
|
|
36
36
|
export var TopOverlay = /*#__PURE__*/function (_Overlay) {
|
37
37
|
_inherits(TopOverlay, _Overlay);
|
38
38
|
var _super = _createSuper(TopOverlay);
|
39
|
-
/**
|
40
|
-
* Cached value which holds the previous value of the `fixedRowsTop` option.
|
41
|
-
* It is used as a comparison value that can be used to detect changes in this value.
|
42
|
-
*
|
43
|
-
* @type {number}
|
44
|
-
*/
|
45
|
-
|
46
39
|
/**
|
47
40
|
* @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
|
48
41
|
* @param {FacadeGetter} facadeGetter Function which return proper facade.
|
@@ -53,6 +46,12 @@ export var TopOverlay = /*#__PURE__*/function (_Overlay) {
|
|
53
46
|
var _this;
|
54
47
|
_classCallCheck(this, TopOverlay);
|
55
48
|
_this = _super.call(this, wotInstance, facadeGetter, CLONE_TOP, wtSettings, domBindings);
|
49
|
+
/**
|
50
|
+
* Cached value which holds the previous value of the `fixedRowsTop` option.
|
51
|
+
* It is used as a comparison value that can be used to detect changes in this value.
|
52
|
+
*
|
53
|
+
* @type {number}
|
54
|
+
*/
|
56
55
|
_defineProperty(_assertThisInitialized(_this), "cachedFixedRowsTop", -1);
|
57
56
|
_this.cachedFixedRowsTop = _this.wtSettings.getSetting('fixedRowsTop');
|
58
57
|
return _this;
|
@@ -41,18 +41,6 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
41
41
|
var TopInlineStartCornerOverlay = /*#__PURE__*/function (_Overlay) {
|
42
42
|
_inherits(TopInlineStartCornerOverlay, _Overlay);
|
43
43
|
var _super = _createSuper(TopInlineStartCornerOverlay);
|
44
|
-
/**
|
45
|
-
* The instance of the Top overlay.
|
46
|
-
*
|
47
|
-
* @type {TopOverlay}
|
48
|
-
*/
|
49
|
-
|
50
|
-
/**
|
51
|
-
* The instance of the InlineStart overlay.
|
52
|
-
*
|
53
|
-
* @type {InlineStartOverlay}
|
54
|
-
*/
|
55
|
-
|
56
44
|
/**
|
57
45
|
* @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
|
58
46
|
* @param {FacadeGetter} facadeGetter Function which return proper facade.
|
@@ -65,7 +53,17 @@ var TopInlineStartCornerOverlay = /*#__PURE__*/function (_Overlay) {
|
|
65
53
|
var _this;
|
66
54
|
_classCallCheck(this, TopInlineStartCornerOverlay);
|
67
55
|
_this = _super.call(this, wotInstance, facadeGetter, _constants.CLONE_TOP_INLINE_START_CORNER, wtSettings, domBindings);
|
56
|
+
/**
|
57
|
+
* The instance of the Top overlay.
|
58
|
+
*
|
59
|
+
* @type {TopOverlay}
|
60
|
+
*/
|
68
61
|
_defineProperty(_assertThisInitialized(_this), "topOverlay", void 0);
|
62
|
+
/**
|
63
|
+
* The instance of the InlineStart overlay.
|
64
|
+
*
|
65
|
+
* @type {InlineStartOverlay}
|
66
|
+
*/
|
69
67
|
_defineProperty(_assertThisInitialized(_this), "inlineStartOverlay", void 0);
|
70
68
|
_this.topOverlay = topOverlay;
|
71
69
|
_this.inlineStartOverlay = inlineStartOverlay;
|
@@ -36,18 +36,6 @@ import { CLONE_TOP_INLINE_START_CORNER } from "./constants.mjs";
|
|
36
36
|
export var TopInlineStartCornerOverlay = /*#__PURE__*/function (_Overlay) {
|
37
37
|
_inherits(TopInlineStartCornerOverlay, _Overlay);
|
38
38
|
var _super = _createSuper(TopInlineStartCornerOverlay);
|
39
|
-
/**
|
40
|
-
* The instance of the Top overlay.
|
41
|
-
*
|
42
|
-
* @type {TopOverlay}
|
43
|
-
*/
|
44
|
-
|
45
|
-
/**
|
46
|
-
* The instance of the InlineStart overlay.
|
47
|
-
*
|
48
|
-
* @type {InlineStartOverlay}
|
49
|
-
*/
|
50
|
-
|
51
39
|
/**
|
52
40
|
* @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
|
53
41
|
* @param {FacadeGetter} facadeGetter Function which return proper facade.
|
@@ -60,7 +48,17 @@ export var TopInlineStartCornerOverlay = /*#__PURE__*/function (_Overlay) {
|
|
60
48
|
var _this;
|
61
49
|
_classCallCheck(this, TopInlineStartCornerOverlay);
|
62
50
|
_this = _super.call(this, wotInstance, facadeGetter, CLONE_TOP_INLINE_START_CORNER, wtSettings, domBindings);
|
51
|
+
/**
|
52
|
+
* The instance of the Top overlay.
|
53
|
+
*
|
54
|
+
* @type {TopOverlay}
|
55
|
+
*/
|
63
56
|
_defineProperty(_assertThisInitialized(_this), "topOverlay", void 0);
|
57
|
+
/**
|
58
|
+
* The instance of the InlineStart overlay.
|
59
|
+
*
|
60
|
+
* @type {InlineStartOverlay}
|
61
|
+
*/
|
64
62
|
_defineProperty(_assertThisInitialized(_this), "inlineStartOverlay", void 0);
|
65
63
|
_this.topOverlay = topOverlay;
|
66
64
|
_this.inlineStartOverlay = inlineStartOverlay;
|