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
@@ -1,4 +1,8 @@
|
|
1
1
|
import "core-js/modules/es.array.push.js";
|
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); }
|
2
6
|
import { fastInnerText } from "../../../../helpers/dom/element.mjs";
|
3
7
|
import { randomString } from "../../../../helpers/string.mjs";
|
4
8
|
import EventManager from "../../../../eventManager.mjs";
|
@@ -10,37 +14,6 @@ import CellRange from "../cell/range.mjs";
|
|
10
14
|
* @class Walkontable
|
11
15
|
*/
|
12
16
|
export default class CoreAbstract {
|
13
|
-
wtTable;
|
14
|
-
wtScroll;
|
15
|
-
wtViewport;
|
16
|
-
wtOverlays;
|
17
|
-
selections;
|
18
|
-
wtEvent;
|
19
|
-
/**
|
20
|
-
* The walkontable instance id.
|
21
|
-
*
|
22
|
-
* @public
|
23
|
-
* @type {Readonly<string>}
|
24
|
-
*/
|
25
|
-
guid = `wt_${randomString()}`;
|
26
|
-
drawInterrupted = false;
|
27
|
-
drawn = false;
|
28
|
-
|
29
|
-
/**
|
30
|
-
* The DOM bindings.
|
31
|
-
*
|
32
|
-
* @public
|
33
|
-
* @type {DomBindings}
|
34
|
-
*/
|
35
|
-
domBindings;
|
36
|
-
|
37
|
-
/**
|
38
|
-
* Settings.
|
39
|
-
*
|
40
|
-
* @public
|
41
|
-
* @type {Settings}
|
42
|
-
*/
|
43
|
-
wtSettings;
|
44
17
|
get eventManager() {
|
45
18
|
return new EventManager(this);
|
46
19
|
}
|
@@ -50,6 +23,35 @@ export default class CoreAbstract {
|
|
50
23
|
* @param {Settings} settings The Walkontable settings.
|
51
24
|
*/
|
52
25
|
constructor(table, settings) {
|
26
|
+
_defineProperty(this, "wtTable", void 0);
|
27
|
+
_defineProperty(this, "wtScroll", void 0);
|
28
|
+
_defineProperty(this, "wtViewport", void 0);
|
29
|
+
_defineProperty(this, "wtOverlays", void 0);
|
30
|
+
_defineProperty(this, "selections", void 0);
|
31
|
+
_defineProperty(this, "wtEvent", void 0);
|
32
|
+
/**
|
33
|
+
* The walkontable instance id.
|
34
|
+
*
|
35
|
+
* @public
|
36
|
+
* @type {Readonly<string>}
|
37
|
+
*/
|
38
|
+
_defineProperty(this, "guid", `wt_${randomString()}`);
|
39
|
+
_defineProperty(this, "drawInterrupted", false);
|
40
|
+
_defineProperty(this, "drawn", false);
|
41
|
+
/**
|
42
|
+
* The DOM bindings.
|
43
|
+
*
|
44
|
+
* @public
|
45
|
+
* @type {DomBindings}
|
46
|
+
*/
|
47
|
+
_defineProperty(this, "domBindings", void 0);
|
48
|
+
/**
|
49
|
+
* Settings.
|
50
|
+
*
|
51
|
+
* @public
|
52
|
+
* @type {Settings}
|
53
|
+
*/
|
54
|
+
_defineProperty(this, "wtSettings", void 0);
|
53
55
|
this.domBindings = {
|
54
56
|
rootTable: table,
|
55
57
|
rootDocument: table.ownerDocument,
|
@@ -1,16 +1,17 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
+
require("core-js/modules/es.error.cause.js");
|
4
5
|
var _event = _interopRequireDefault(require("../event"));
|
5
6
|
var _base = _interopRequireDefault(require("./_base"));
|
6
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
8
|
+
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; }
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
10
|
+
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); }
|
7
11
|
/**
|
8
12
|
* @class Walkontable
|
9
13
|
*/
|
10
14
|
class Clone extends _base.default {
|
11
|
-
cloneSource;
|
12
|
-
cloneOverlay;
|
13
|
-
|
14
15
|
/**
|
15
16
|
* @param {HTMLTableElement} table Main table.
|
16
17
|
* @param {SettingsPure|Settings} settings The Walkontable settings.
|
@@ -18,6 +19,8 @@ class Clone extends _base.default {
|
|
18
19
|
*/
|
19
20
|
constructor(table, settings, clone) {
|
20
21
|
super(table, settings);
|
22
|
+
_defineProperty(this, "cloneSource", void 0);
|
23
|
+
_defineProperty(this, "cloneOverlay", void 0);
|
21
24
|
const facadeGetter = this.wtSettings.getSetting('facade', this);
|
22
25
|
this.cloneSource = clone.source;
|
23
26
|
this.cloneOverlay = clone.overlay;
|
@@ -1,12 +1,13 @@
|
|
1
|
+
import "core-js/modules/es.error.cause.js";
|
2
|
+
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; }
|
3
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
4
|
+
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); }
|
1
5
|
import Event from "../event.mjs";
|
2
6
|
import CoreAbstract from "./_base.mjs";
|
3
7
|
/**
|
4
8
|
* @class Walkontable
|
5
9
|
*/
|
6
10
|
export default class Clone extends CoreAbstract {
|
7
|
-
cloneSource;
|
8
|
-
cloneOverlay;
|
9
|
-
|
10
11
|
/**
|
11
12
|
* @param {HTMLTableElement} table Main table.
|
12
13
|
* @param {SettingsPure|Settings} settings The Walkontable settings.
|
@@ -14,6 +15,8 @@ export default class Clone extends CoreAbstract {
|
|
14
15
|
*/
|
15
16
|
constructor(table, settings, clone) {
|
16
17
|
super(table, settings);
|
18
|
+
_defineProperty(this, "cloneSource", void 0);
|
19
|
+
_defineProperty(this, "cloneOverlay", void 0);
|
17
20
|
const facadeGetter = this.wtSettings.getSetting('facade', this);
|
18
21
|
this.cloneSource = clone.source;
|
19
22
|
this.cloneOverlay = clone.overlay;
|
@@ -288,8 +288,9 @@ class Event {
|
|
288
288
|
* @param {MouseEvent} event The mouse event object.
|
289
289
|
*/
|
290
290
|
onTouchEnd(event) {
|
291
|
+
var _this$parentCell;
|
291
292
|
const target = event.target;
|
292
|
-
const parentCellCoords = this.parentCell(target)
|
293
|
+
const parentCellCoords = (_this$parentCell = this.parentCell(target)) === null || _this$parentCell === void 0 ? void 0 : _this$parentCell.coords;
|
293
294
|
const isCellsRange = (0, _mixed.isDefined)(parentCellCoords) && parentCellCoords.row >= 0 && parentCellCoords.col >= 0;
|
294
295
|
const isEventCancelable = event.cancelable && isCellsRange && this.wtSettings.getSetting('isDataViewInstance');
|
295
296
|
|
@@ -285,8 +285,9 @@ class Event {
|
|
285
285
|
* @param {MouseEvent} event The mouse event object.
|
286
286
|
*/
|
287
287
|
onTouchEnd(event) {
|
288
|
+
var _this$parentCell;
|
288
289
|
const target = event.target;
|
289
|
-
const parentCellCoords = this.parentCell(target)
|
290
|
+
const parentCellCoords = (_this$parentCell = this.parentCell(target)) === null || _this$parentCell === void 0 ? void 0 : _this$parentCell.coords;
|
290
291
|
const isCellsRange = isDefined(parentCellCoords) && parentCellCoords.row >= 0 && parentCellCoords.col >= 0;
|
291
292
|
const isEventCancelable = event.cancelable && isCellsRange && this.wtSettings.getSetting('isDataViewInstance');
|
292
293
|
|
@@ -9,6 +9,9 @@ var _console = require("../../../../helpers/console");
|
|
9
9
|
var _constants = require("./constants");
|
10
10
|
var _clone = _interopRequireDefault(require("../core/clone"));
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
12
|
+
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; }
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
14
|
+
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); }
|
12
15
|
/**
|
13
16
|
* Creates an overlay over the original Walkontable instance. The overlay renders the clone of the original Walkontable
|
14
17
|
* and (optionally) implements behavior needed for native horizontal and vertical scrolling.
|
@@ -18,14 +21,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
18
21
|
* @property {Walkontable} wot The Walkontable instance.
|
19
22
|
*/
|
20
23
|
class Overlay {
|
21
|
-
/**
|
22
|
-
* The Walkontable settings.
|
23
|
-
*
|
24
|
-
* @private
|
25
|
-
* @type {Settings}
|
26
|
-
*/
|
27
|
-
wtSettings = null;
|
28
|
-
|
29
24
|
/**
|
30
25
|
* @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
|
31
26
|
* @param {FacadeGetter} facadeGetter Function which return proper facade.
|
@@ -34,6 +29,13 @@ class Overlay {
|
|
34
29
|
* @param {DomBindings} domBindings Dom elements bound to the current instance.
|
35
30
|
*/
|
36
31
|
constructor(wotInstance, facadeGetter, type, wtSettings, domBindings) {
|
32
|
+
/**
|
33
|
+
* The Walkontable settings.
|
34
|
+
*
|
35
|
+
* @private
|
36
|
+
* @type {Settings}
|
37
|
+
*/
|
38
|
+
_defineProperty(this, "wtSettings", null);
|
37
39
|
(0, _object.defineGetter)(this, 'wot', wotInstance, {
|
38
40
|
writable: false
|
39
41
|
});
|
@@ -1,4 +1,7 @@
|
|
1
1
|
import "core-js/modules/es.error.cause.js";
|
2
|
+
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; }
|
3
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
4
|
+
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); }
|
2
5
|
import { getScrollableElement, getTrimmingContainer, getScrollbarWidth } from "../../../../helpers/dom/element.mjs";
|
3
6
|
import { defineGetter } from "../../../../helpers/object.mjs";
|
4
7
|
import { arrayEach } from "../../../../helpers/array.mjs";
|
@@ -14,14 +17,6 @@ import Clone from "../core/clone.mjs";
|
|
14
17
|
* @property {Walkontable} wot The Walkontable instance.
|
15
18
|
*/
|
16
19
|
export class Overlay {
|
17
|
-
/**
|
18
|
-
* The Walkontable settings.
|
19
|
-
*
|
20
|
-
* @private
|
21
|
-
* @type {Settings}
|
22
|
-
*/
|
23
|
-
wtSettings = null;
|
24
|
-
|
25
20
|
/**
|
26
21
|
* @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
|
27
22
|
* @param {FacadeGetter} facadeGetter Function which return proper facade.
|
@@ -30,6 +25,13 @@ export class Overlay {
|
|
30
25
|
* @param {DomBindings} domBindings Dom elements bound to the current instance.
|
31
26
|
*/
|
32
27
|
constructor(wotInstance, facadeGetter, type, wtSettings, domBindings) {
|
28
|
+
/**
|
29
|
+
* The Walkontable settings.
|
30
|
+
*
|
31
|
+
* @private
|
32
|
+
* @type {Settings}
|
33
|
+
*/
|
34
|
+
_defineProperty(this, "wtSettings", null);
|
33
35
|
defineGetter(this, 'wot', wotInstance, {
|
34
36
|
writable: false
|
35
37
|
});
|
@@ -7,18 +7,13 @@ var _bottom = _interopRequireDefault(require("./../table/bottom"));
|
|
7
7
|
var _base = require("./_base");
|
8
8
|
var _constants = require("./constants");
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
10
|
+
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; }
|
11
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
12
|
+
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); }
|
10
13
|
/**
|
11
14
|
* @class BottomOverlay
|
12
15
|
*/
|
13
16
|
class BottomOverlay extends _base.Overlay {
|
14
|
-
/**
|
15
|
-
* Cached value which holds the previous value of the `fixedRowsBottom` option.
|
16
|
-
* It is used as a comparison value that can be used to detect changes in that value.
|
17
|
-
*
|
18
|
-
* @type {number}
|
19
|
-
*/
|
20
|
-
cachedFixedRowsBottom = -1;
|
21
|
-
|
22
17
|
/**
|
23
18
|
* @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
|
24
19
|
* @param {FacadeGetter} facadeGetter Function which return proper facade.
|
@@ -27,6 +22,13 @@ class BottomOverlay extends _base.Overlay {
|
|
27
22
|
*/
|
28
23
|
constructor(wotInstance, facadeGetter, wtSettings, domBindings) {
|
29
24
|
super(wotInstance, facadeGetter, _constants.CLONE_BOTTOM, wtSettings, domBindings);
|
25
|
+
/**
|
26
|
+
* Cached value which holds the previous value of the `fixedRowsBottom` option.
|
27
|
+
* It is used as a comparison value that can be used to detect changes in that value.
|
28
|
+
*
|
29
|
+
* @type {number}
|
30
|
+
*/
|
31
|
+
_defineProperty(this, "cachedFixedRowsBottom", -1);
|
30
32
|
this.cachedFixedRowsBottom = this.wtSettings.getSetting('fixedRowsBottom');
|
31
33
|
}
|
32
34
|
|
@@ -1,4 +1,7 @@
|
|
1
1
|
import "core-js/modules/es.error.cause.js";
|
2
|
+
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; }
|
3
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
4
|
+
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); }
|
2
5
|
import { addClass, getScrollbarWidth, getScrollTop, getWindowScrollLeft, hasClass, outerHeight, removeClass } from "../../../../helpers/dom/element.mjs";
|
3
6
|
import BottomOverlayTable from "./../table/bottom.mjs";
|
4
7
|
import { Overlay } from "./_base.mjs";
|
@@ -7,14 +10,6 @@ import { CLONE_BOTTOM } from "./constants.mjs";
|
|
7
10
|
* @class BottomOverlay
|
8
11
|
*/
|
9
12
|
export class BottomOverlay extends Overlay {
|
10
|
-
/**
|
11
|
-
* Cached value which holds the previous value of the `fixedRowsBottom` option.
|
12
|
-
* It is used as a comparison value that can be used to detect changes in that value.
|
13
|
-
*
|
14
|
-
* @type {number}
|
15
|
-
*/
|
16
|
-
cachedFixedRowsBottom = -1;
|
17
|
-
|
18
13
|
/**
|
19
14
|
* @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
|
20
15
|
* @param {FacadeGetter} facadeGetter Function which return proper facade.
|
@@ -23,6 +18,13 @@ export class BottomOverlay extends Overlay {
|
|
23
18
|
*/
|
24
19
|
constructor(wotInstance, facadeGetter, wtSettings, domBindings) {
|
25
20
|
super(wotInstance, facadeGetter, CLONE_BOTTOM, wtSettings, domBindings);
|
21
|
+
/**
|
22
|
+
* Cached value which holds the previous value of the `fixedRowsBottom` option.
|
23
|
+
* It is used as a comparison value that can be used to detect changes in that value.
|
24
|
+
*
|
25
|
+
* @type {number}
|
26
|
+
*/
|
27
|
+
_defineProperty(this, "cachedFixedRowsBottom", -1);
|
26
28
|
this.cachedFixedRowsBottom = this.wtSettings.getSetting('fixedRowsBottom');
|
27
29
|
}
|
28
30
|
|
@@ -180,7 +180,7 @@ class InlineStartOverlay extends _base.Overlay {
|
|
180
180
|
selections
|
181
181
|
} = this.wot;
|
182
182
|
const facade = this.facadeGetter();
|
183
|
-
const selectionCornerOffset = Math.abs((_selections$getCell$g = selections
|
183
|
+
const selectionCornerOffset = Math.abs((_selections$getCell$g = selections === null || selections === void 0 ? void 0 : selections.getCell().getBorder(facade).cornerCenterPointOffset) !== null && _selections$getCell$g !== void 0 ? _selections$getCell$g : 0);
|
184
184
|
this.clone.wtTable.hider.style.height = this.hider.style.height;
|
185
185
|
holder.style.height = holder.parentNode.style.height;
|
186
186
|
// Add selection corner protruding part to the holder total width to make sure that
|
@@ -176,7 +176,7 @@ export class InlineStartOverlay extends Overlay {
|
|
176
176
|
selections
|
177
177
|
} = this.wot;
|
178
178
|
const facade = this.facadeGetter();
|
179
|
-
const selectionCornerOffset = Math.abs((_selections$getCell$g = selections
|
179
|
+
const selectionCornerOffset = Math.abs((_selections$getCell$g = selections === null || selections === void 0 ? void 0 : selections.getCell().getBorder(facade).cornerCenterPointOffset) !== null && _selections$getCell$g !== void 0 ? _selections$getCell$g : 0);
|
180
180
|
this.clone.wtTable.hider.style.height = this.hider.style.height;
|
181
181
|
holder.style.height = holder.parentNode.style.height;
|
182
182
|
// Add selection corner protruding part to the holder total width to make sure that
|
@@ -7,18 +7,13 @@ var _top = _interopRequireDefault(require("./../table/top"));
|
|
7
7
|
var _base = require("./_base");
|
8
8
|
var _constants = require("./constants");
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
10
|
+
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; }
|
11
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
12
|
+
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); }
|
10
13
|
/**
|
11
14
|
* @class TopOverlay
|
12
15
|
*/
|
13
16
|
class TopOverlay extends _base.Overlay {
|
14
|
-
/**
|
15
|
-
* Cached value which holds the previous value of the `fixedRowsTop` option.
|
16
|
-
* It is used as a comparison value that can be used to detect changes in this value.
|
17
|
-
*
|
18
|
-
* @type {number}
|
19
|
-
*/
|
20
|
-
cachedFixedRowsTop = -1;
|
21
|
-
|
22
17
|
/**
|
23
18
|
* @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
|
24
19
|
* @param {FacadeGetter} facadeGetter Function which return proper facade.
|
@@ -27,6 +22,13 @@ class TopOverlay extends _base.Overlay {
|
|
27
22
|
*/
|
28
23
|
constructor(wotInstance, facadeGetter, wtSettings, domBindings) {
|
29
24
|
super(wotInstance, facadeGetter, _constants.CLONE_TOP, wtSettings, domBindings);
|
25
|
+
/**
|
26
|
+
* Cached value which holds the previous value of the `fixedRowsTop` option.
|
27
|
+
* It is used as a comparison value that can be used to detect changes in this value.
|
28
|
+
*
|
29
|
+
* @type {number}
|
30
|
+
*/
|
31
|
+
_defineProperty(this, "cachedFixedRowsTop", -1);
|
30
32
|
this.cachedFixedRowsTop = this.wtSettings.getSetting('fixedRowsTop');
|
31
33
|
}
|
32
34
|
|
@@ -205,7 +207,7 @@ class TopOverlay extends _base.Overlay {
|
|
205
207
|
selections
|
206
208
|
} = this.wot;
|
207
209
|
const facade = this.facadeGetter();
|
208
|
-
const selectionCornerOffset = Math.abs((_selections$getCell$g = selections
|
210
|
+
const selectionCornerOffset = Math.abs((_selections$getCell$g = selections === null || selections === void 0 ? void 0 : selections.getCell().getBorder(facade).cornerCenterPointOffset) !== null && _selections$getCell$g !== void 0 ? _selections$getCell$g : 0);
|
209
211
|
this.clone.wtTable.hider.style.width = this.hider.style.width;
|
210
212
|
holder.style.width = holder.parentNode.style.width;
|
211
213
|
// Add selection corner protruding part to the holder total height to make sure that
|
@@ -1,4 +1,7 @@
|
|
1
1
|
import "core-js/modules/es.error.cause.js";
|
2
|
+
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; }
|
3
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
4
|
+
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); }
|
2
5
|
import { addClass, getScrollbarWidth, getScrollTop, getWindowScrollLeft, hasClass, outerHeight, removeClass, setOverlayPosition, resetCssTransform } from "../../../../helpers/dom/element.mjs";
|
3
6
|
import TopOverlayTable from "./../table/top.mjs";
|
4
7
|
import { Overlay } from "./_base.mjs";
|
@@ -7,14 +10,6 @@ import { CLONE_TOP } from "./constants.mjs";
|
|
7
10
|
* @class TopOverlay
|
8
11
|
*/
|
9
12
|
export class TopOverlay extends Overlay {
|
10
|
-
/**
|
11
|
-
* Cached value which holds the previous value of the `fixedRowsTop` option.
|
12
|
-
* It is used as a comparison value that can be used to detect changes in this value.
|
13
|
-
*
|
14
|
-
* @type {number}
|
15
|
-
*/
|
16
|
-
cachedFixedRowsTop = -1;
|
17
|
-
|
18
13
|
/**
|
19
14
|
* @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
|
20
15
|
* @param {FacadeGetter} facadeGetter Function which return proper facade.
|
@@ -23,6 +18,13 @@ export class TopOverlay extends Overlay {
|
|
23
18
|
*/
|
24
19
|
constructor(wotInstance, facadeGetter, wtSettings, domBindings) {
|
25
20
|
super(wotInstance, facadeGetter, CLONE_TOP, wtSettings, domBindings);
|
21
|
+
/**
|
22
|
+
* Cached value which holds the previous value of the `fixedRowsTop` option.
|
23
|
+
* It is used as a comparison value that can be used to detect changes in this value.
|
24
|
+
*
|
25
|
+
* @type {number}
|
26
|
+
*/
|
27
|
+
_defineProperty(this, "cachedFixedRowsTop", -1);
|
26
28
|
this.cachedFixedRowsTop = this.wtSettings.getSetting('fixedRowsTop');
|
27
29
|
}
|
28
30
|
|
@@ -201,7 +203,7 @@ export class TopOverlay extends Overlay {
|
|
201
203
|
selections
|
202
204
|
} = this.wot;
|
203
205
|
const facade = this.facadeGetter();
|
204
|
-
const selectionCornerOffset = Math.abs((_selections$getCell$g = selections
|
206
|
+
const selectionCornerOffset = Math.abs((_selections$getCell$g = selections === null || selections === void 0 ? void 0 : selections.getCell().getBorder(facade).cornerCenterPointOffset) !== null && _selections$getCell$g !== void 0 ? _selections$getCell$g : 0);
|
205
207
|
this.clone.wtTable.hider.style.width = this.hider.style.width;
|
206
208
|
holder.style.width = holder.parentNode.style.width;
|
207
209
|
// Add selection corner protruding part to the holder total height to make sure that
|
@@ -1,28 +1,19 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
+
require("core-js/modules/es.error.cause.js");
|
4
5
|
var _element = require("../../../../helpers/dom/element");
|
5
6
|
var _topInlineStartCorner = _interopRequireDefault(require("../table/topInlineStartCorner"));
|
6
7
|
var _base = require("./_base");
|
7
8
|
var _constants = require("./constants");
|
8
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
10
|
+
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; }
|
11
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
12
|
+
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); }
|
9
13
|
/**
|
10
14
|
* @class TopInlineStartCornerOverlay
|
11
15
|
*/
|
12
16
|
class TopInlineStartCornerOverlay extends _base.Overlay {
|
13
|
-
/**
|
14
|
-
* The instance of the Top overlay.
|
15
|
-
*
|
16
|
-
* @type {TopOverlay}
|
17
|
-
*/
|
18
|
-
topOverlay;
|
19
|
-
/**
|
20
|
-
* The instance of the InlineStart overlay.
|
21
|
-
*
|
22
|
-
* @type {InlineStartOverlay}
|
23
|
-
*/
|
24
|
-
inlineStartOverlay;
|
25
|
-
|
26
17
|
/**
|
27
18
|
* @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
|
28
19
|
* @param {FacadeGetter} facadeGetter Function which return proper facade.
|
@@ -33,6 +24,18 @@ class TopInlineStartCornerOverlay extends _base.Overlay {
|
|
33
24
|
*/
|
34
25
|
constructor(wotInstance, facadeGetter, wtSettings, domBindings, topOverlay, inlineStartOverlay) {
|
35
26
|
super(wotInstance, facadeGetter, _constants.CLONE_TOP_INLINE_START_CORNER, wtSettings, domBindings);
|
27
|
+
/**
|
28
|
+
* The instance of the Top overlay.
|
29
|
+
*
|
30
|
+
* @type {TopOverlay}
|
31
|
+
*/
|
32
|
+
_defineProperty(this, "topOverlay", void 0);
|
33
|
+
/**
|
34
|
+
* The instance of the InlineStart overlay.
|
35
|
+
*
|
36
|
+
* @type {InlineStartOverlay}
|
37
|
+
*/
|
38
|
+
_defineProperty(this, "inlineStartOverlay", void 0);
|
36
39
|
this.topOverlay = topOverlay;
|
37
40
|
this.inlineStartOverlay = inlineStartOverlay;
|
38
41
|
}
|
@@ -1,3 +1,7 @@
|
|
1
|
+
import "core-js/modules/es.error.cause.js";
|
2
|
+
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; }
|
3
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
4
|
+
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); }
|
1
5
|
import { outerHeight, outerWidth, setOverlayPosition, resetCssTransform } from "../../../../helpers/dom/element.mjs";
|
2
6
|
import TopInlineStartCornerOverlayTable from "../table/topInlineStartCorner.mjs";
|
3
7
|
import { Overlay } from "./_base.mjs";
|
@@ -6,19 +10,6 @@ import { CLONE_TOP_INLINE_START_CORNER } from "./constants.mjs";
|
|
6
10
|
* @class TopInlineStartCornerOverlay
|
7
11
|
*/
|
8
12
|
export class TopInlineStartCornerOverlay extends Overlay {
|
9
|
-
/**
|
10
|
-
* The instance of the Top overlay.
|
11
|
-
*
|
12
|
-
* @type {TopOverlay}
|
13
|
-
*/
|
14
|
-
topOverlay;
|
15
|
-
/**
|
16
|
-
* The instance of the InlineStart overlay.
|
17
|
-
*
|
18
|
-
* @type {InlineStartOverlay}
|
19
|
-
*/
|
20
|
-
inlineStartOverlay;
|
21
|
-
|
22
13
|
/**
|
23
14
|
* @param {Walkontable} wotInstance The Walkontable instance. @TODO refactoring: check if can be deleted.
|
24
15
|
* @param {FacadeGetter} facadeGetter Function which return proper facade.
|
@@ -29,6 +20,18 @@ export class TopInlineStartCornerOverlay extends Overlay {
|
|
29
20
|
*/
|
30
21
|
constructor(wotInstance, facadeGetter, wtSettings, domBindings, topOverlay, inlineStartOverlay) {
|
31
22
|
super(wotInstance, facadeGetter, CLONE_TOP_INLINE_START_CORNER, wtSettings, domBindings);
|
23
|
+
/**
|
24
|
+
* The instance of the Top overlay.
|
25
|
+
*
|
26
|
+
* @type {TopOverlay}
|
27
|
+
*/
|
28
|
+
_defineProperty(this, "topOverlay", void 0);
|
29
|
+
/**
|
30
|
+
* The instance of the InlineStart overlay.
|
31
|
+
*
|
32
|
+
* @type {InlineStartOverlay}
|
33
|
+
*/
|
34
|
+
_defineProperty(this, "inlineStartOverlay", void 0);
|
32
35
|
this.topOverlay = topOverlay;
|
33
36
|
this.inlineStartOverlay = inlineStartOverlay;
|
34
37
|
}
|