handsontable 0.0.0-next-59715d3-20230523 → 0.0.0-next-93e34dc-20230601
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.d.ts +6 -1
- package/3rdparty/walkontable/src/cell/coords.js +61 -12
- package/3rdparty/walkontable/src/cell/coords.mjs +61 -12
- package/3rdparty/walkontable/src/cell/range.d.ts +9 -2
- package/3rdparty/walkontable/src/cell/range.js +44 -7
- package/3rdparty/walkontable/src/cell/range.mjs +44 -7
- package/3rdparty/walkontable/src/core/_base.js +9 -3
- package/3rdparty/walkontable/src/core/_base.mjs +9 -3
- package/3rdparty/walkontable/src/core/clone.js +2 -2
- package/3rdparty/walkontable/src/core/clone.mjs +2 -2
- package/3rdparty/walkontable/src/core/core.js +3 -2
- package/3rdparty/walkontable/src/core/core.mjs +3 -2
- package/3rdparty/walkontable/src/event.js +7 -7
- package/3rdparty/walkontable/src/event.mjs +7 -7
- package/3rdparty/walkontable/src/facade/core.js +2 -2
- package/3rdparty/walkontable/src/facade/core.mjs +2 -2
- package/3rdparty/walkontable/src/index.js +10 -2
- package/3rdparty/walkontable/src/index.mjs +2 -2
- package/3rdparty/walkontable/src/overlay/_base.js +1 -1
- package/3rdparty/walkontable/src/overlay/_base.mjs +1 -1
- package/3rdparty/walkontable/src/overlay/inlineStart.js +2 -4
- package/3rdparty/walkontable/src/overlay/inlineStart.mjs +2 -4
- package/3rdparty/walkontable/src/overlay/top.js +2 -4
- package/3rdparty/walkontable/src/overlay/top.mjs +2 -4
- package/3rdparty/walkontable/src/{border.js → selection/border/border.js} +7 -12
- package/3rdparty/walkontable/src/{border.mjs → selection/border/border.mjs} +7 -12
- package/3rdparty/walkontable/src/selection/border/constants.js +18 -0
- package/3rdparty/walkontable/src/selection/border/constants.mjs +13 -0
- package/3rdparty/walkontable/src/selection/constants.js +63 -0
- package/3rdparty/walkontable/src/selection/constants.mjs +51 -0
- package/3rdparty/walkontable/src/selection/index.js +30 -0
- package/3rdparty/walkontable/src/selection/index.mjs +5 -0
- package/3rdparty/walkontable/src/selection/manager.js +328 -0
- package/3rdparty/walkontable/src/selection/manager.mjs +322 -0
- package/3rdparty/walkontable/src/selection/scanner.js +363 -0
- package/3rdparty/walkontable/src/selection/scanner.mjs +359 -0
- package/3rdparty/walkontable/src/selection/selection.js +133 -0
- package/3rdparty/walkontable/src/selection/selection.mjs +127 -0
- package/3rdparty/walkontable/src/table/mixin/calculatedColumns.js +9 -0
- package/3rdparty/walkontable/src/table/mixin/calculatedColumns.mjs +9 -0
- package/3rdparty/walkontable/src/table/mixin/calculatedRows.js +9 -0
- package/3rdparty/walkontable/src/table/mixin/calculatedRows.mjs +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.js +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.mjs +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.js +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.mjs +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.js +9 -0
- package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.mjs +9 -0
- package/3rdparty/walkontable/src/table.js +7 -79
- package/3rdparty/walkontable/src/table.mjs +8 -80
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core.d.ts +5 -3
- package/core.js +82 -300
- package/core.mjs +82 -300
- package/dataMap/metaManager/metaSchema.js +15 -0
- package/dataMap/metaManager/metaSchema.mjs +15 -0
- package/dist/handsontable.css +8 -3
- package/dist/handsontable.full.css +8 -3
- package/dist/handsontable.full.js +12245 -9953
- package/dist/handsontable.full.min.css +3 -3
- package/dist/handsontable.full.min.js +120 -120
- package/dist/handsontable.js +15898 -13606
- package/dist/handsontable.min.css +3 -3
- package/dist/handsontable.min.js +4 -4
- package/editorManager.js +20 -82
- package/editorManager.mjs +25 -86
- package/editors/textEditor/textEditor.js +3 -11
- package/editors/textEditor/textEditor.mjs +4 -12
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/helpers/number.d.ts +1 -0
- package/helpers/number.js +18 -0
- package/helpers/number.mjs +17 -0
- package/package.json +1 -1
- package/pluginHooks.js +1 -1
- package/pluginHooks.mjs +1 -1
- package/plugins/copyPaste/copyPaste.js +5 -1
- package/plugins/copyPaste/copyPaste.mjs +5 -1
- package/plugins/customBorders/customBorders.js +18 -52
- package/plugins/customBorders/customBorders.mjs +19 -53
- package/plugins/mergeCells/mergeCells.js +5 -18
- package/plugins/mergeCells/mergeCells.mjs +5 -18
- package/plugins/nestedHeaders/nestedHeaders.js +89 -9
- package/plugins/nestedHeaders/nestedHeaders.mjs +89 -9
- package/plugins/nestedHeaders/stateManager/index.js +37 -0
- package/plugins/nestedHeaders/stateManager/index.mjs +37 -0
- package/renderers/checkboxRenderer/checkboxRenderer.js +2 -2
- package/renderers/checkboxRenderer/checkboxRenderer.mjs +1 -1
- package/selection/highlight/highlight.js +311 -88
- package/selection/highlight/highlight.mjs +301 -84
- package/selection/highlight/types/activeHeader.js +10 -9
- package/selection/highlight/types/activeHeader.mjs +10 -8
- package/selection/highlight/types/area.js +12 -27
- package/selection/highlight/types/area.mjs +16 -30
- package/selection/highlight/types/areaLayered.js +54 -0
- package/selection/highlight/types/areaLayered.mjs +49 -0
- package/selection/highlight/types/column.js +50 -0
- package/selection/highlight/types/column.mjs +45 -0
- package/selection/highlight/types/customSelection.js +7 -10
- package/selection/highlight/types/customSelection.mjs +7 -9
- package/selection/highlight/types/fill.js +5 -8
- package/selection/highlight/types/fill.mjs +5 -7
- package/selection/highlight/types/{cell.js → focus.js} +5 -8
- package/selection/highlight/types/{cell.mjs → focus.mjs} +5 -7
- package/selection/highlight/types/header.js +10 -20
- package/selection/highlight/types/header.mjs +10 -19
- package/selection/highlight/types/{index.js → row.js} +27 -31
- package/selection/highlight/types/{index.mjs → row.mjs} +24 -29
- package/selection/highlight/visualSelection.js +23 -28
- package/selection/highlight/visualSelection.mjs +23 -28
- package/selection/index.js +4 -7
- package/selection/index.mjs +2 -3
- package/selection/mouseEventHandler.js +1 -1
- package/selection/mouseEventHandler.mjs +1 -1
- package/selection/range.js +8 -8
- package/selection/range.mjs +8 -8
- package/selection/selection.js +296 -180
- package/selection/selection.mjs +291 -179
- package/selection/transformation.js +233 -96
- package/selection/transformation.mjs +230 -93
- package/selection/utils.js +12 -35
- package/selection/utils.mjs +13 -35
- package/settings.d.ts +1 -0
- package/shortcutContexts/commands/editor/closeAndSave.js +15 -0
- package/shortcutContexts/commands/editor/closeAndSave.mjs +10 -0
- package/shortcutContexts/commands/editor/closeWithoutSaving.js +13 -0
- package/shortcutContexts/commands/editor/closeWithoutSaving.mjs +8 -0
- package/shortcutContexts/commands/editor/fastOpen.js +16 -0
- package/shortcutContexts/commands/editor/fastOpen.mjs +11 -0
- package/shortcutContexts/commands/editor/index.js +16 -0
- package/shortcutContexts/commands/editor/index.mjs +12 -0
- package/shortcutContexts/commands/editor/open.js +29 -0
- package/shortcutContexts/commands/editor/open.mjs +24 -0
- package/shortcutContexts/commands/emptySelectedCells.js +12 -0
- package/shortcutContexts/commands/emptySelectedCells.mjs +7 -0
- package/shortcutContexts/commands/extendCellsSelection/down.js +15 -0
- package/shortcutContexts/commands/extendCellsSelection/down.mjs +10 -0
- package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.js +21 -0
- package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.mjs +16 -0
- package/shortcutContexts/commands/extendCellsSelection/index.js +24 -0
- package/shortcutContexts/commands/extendCellsSelection/index.mjs +20 -0
- package/shortcutContexts/commands/extendCellsSelection/left.js +15 -0
- package/shortcutContexts/commands/extendCellsSelection/left.mjs +10 -0
- package/shortcutContexts/commands/extendCellsSelection/right.js +15 -0
- package/shortcutContexts/commands/extendCellsSelection/right.mjs +10 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +22 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +17 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +17 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +12 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +17 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +12 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +39 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +34 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +39 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +34 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +22 -0
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +17 -0
- package/shortcutContexts/commands/extendCellsSelection/up.js +15 -0
- package/shortcutContexts/commands/extendCellsSelection/up.mjs +10 -0
- package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.js +21 -0
- package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.mjs +16 -0
- package/shortcutContexts/commands/index.js +51 -0
- package/shortcutContexts/commands/index.mjs +47 -0
- package/shortcutContexts/commands/moveCellSelection/down.js +12 -0
- package/shortcutContexts/commands/moveCellSelection/down.mjs +7 -0
- package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.js +11 -0
- package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.mjs +6 -0
- package/shortcutContexts/commands/moveCellSelection/index.js +28 -0
- package/shortcutContexts/commands/moveCellSelection/index.mjs +24 -0
- package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +13 -0
- package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +8 -0
- package/shortcutContexts/commands/moveCellSelection/inlineStart.js +13 -0
- package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +8 -0
- package/shortcutContexts/commands/moveCellSelection/left.js +11 -0
- package/shortcutContexts/commands/moveCellSelection/left.mjs +6 -0
- package/shortcutContexts/commands/moveCellSelection/right.js +11 -0
- package/shortcutContexts/commands/moveCellSelection/right.mjs +6 -0
- package/shortcutContexts/commands/moveCellSelection/toMostBottom.js +16 -0
- package/shortcutContexts/commands/moveCellSelection/toMostBottom.mjs +11 -0
- package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.js +17 -0
- package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.mjs +12 -0
- package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.js +13 -0
- package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.mjs +8 -0
- package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.js +16 -0
- package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.mjs +11 -0
- package/shortcutContexts/commands/moveCellSelection/toMostLeft.js +35 -0
- package/shortcutContexts/commands/moveCellSelection/toMostLeft.mjs +30 -0
- package/shortcutContexts/commands/moveCellSelection/toMostRight.js +35 -0
- package/shortcutContexts/commands/moveCellSelection/toMostRight.mjs +30 -0
- package/shortcutContexts/commands/moveCellSelection/toMostTop.js +16 -0
- package/shortcutContexts/commands/moveCellSelection/toMostTop.mjs +11 -0
- package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.js +18 -0
- package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.mjs +13 -0
- package/shortcutContexts/commands/moveCellSelection/up.js +12 -0
- package/shortcutContexts/commands/moveCellSelection/up.mjs +7 -0
- package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.js +11 -0
- package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.mjs +6 -0
- package/shortcutContexts/commands/populateSelectedCellsData.js +35 -0
- package/shortcutContexts/commands/populateSelectedCellsData.mjs +30 -0
- package/shortcutContexts/commands/selectAll.js +11 -0
- package/shortcutContexts/commands/selectAll.mjs +6 -0
- package/shortcutContexts/constants.js +19 -0
- package/shortcutContexts/constants.mjs +12 -0
- package/shortcutContexts/editor.js +29 -0
- package/shortcutContexts/editor.mjs +25 -0
- package/shortcutContexts/grid.js +232 -0
- package/shortcutContexts/grid.mjs +228 -0
- package/shortcutContexts/index.js +29 -0
- package/shortcutContexts/index.mjs +15 -0
- package/tableView.js +58 -9
- package/tableView.mjs +58 -9
- package/3rdparty/walkontable/src/selection.js +0 -354
- package/3rdparty/walkontable/src/selection.mjs +0 -348
- package/selection/highlight/constants.js +0 -16
- package/selection/highlight/constants.mjs +0 -6
@@ -1,14 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
4
|
-
require("core-js/modules/es.object.keys.js");
|
5
|
-
require("core-js/modules/es.array.index-of.js");
|
6
|
-
require("core-js/modules/es.symbol.js");
|
7
3
|
require("core-js/modules/es.symbol.to-primitive.js");
|
8
4
|
require("core-js/modules/es.date.to-primitive.js");
|
5
|
+
require("core-js/modules/es.symbol.js");
|
9
6
|
require("core-js/modules/es.symbol.description.js");
|
10
7
|
require("core-js/modules/es.object.to-string.js");
|
11
8
|
require("core-js/modules/es.number.constructor.js");
|
9
|
+
require("core-js/modules/es.object.keys.js");
|
12
10
|
require("core-js/modules/es.array.filter.js");
|
13
11
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
14
12
|
require("core-js/modules/web.dom-collections.for-each.js");
|
@@ -17,44 +15,31 @@ require("core-js/modules/es.symbol.iterator.js");
|
|
17
15
|
require("core-js/modules/es.array.iterator.js");
|
18
16
|
require("core-js/modules/es.string.iterator.js");
|
19
17
|
require("core-js/modules/web.dom-collections.iterator.js");
|
18
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
20
19
|
exports.__esModule = true;
|
21
|
-
exports.
|
22
|
-
|
20
|
+
exports.createHighlight = createHighlight;
|
21
|
+
require("core-js/modules/es.object.assign.js");
|
22
|
+
var _src = require("../../../3rdparty/walkontable/src");
|
23
23
|
var _visualSelection = _interopRequireDefault(require("../visualSelection"));
|
24
|
-
var _excluded = ["layerLevel", "areaCornerVisible"];
|
25
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
26
25
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
27
26
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
28
27
|
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; }
|
29
28
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
30
29
|
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); }
|
31
|
-
function
|
32
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
30
|
+
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
33
31
|
/**
|
34
32
|
* Creates the new instance of Selection responsible for highlighting area of the selected multiple cells.
|
35
33
|
*
|
36
34
|
* @param {object} highlightParams A configuration object to create a highlight.
|
37
|
-
* @param {number} highlightParams.layerLevel Layer level.
|
38
35
|
* @param {object} highlightParams.areaCornerVisible Function to determine if area's corner should be visible.
|
39
36
|
* @returns {Selection}
|
40
37
|
*/
|
41
38
|
function createHighlight(_ref) {
|
42
|
-
var
|
43
|
-
|
44
|
-
|
45
|
-
var s = new _visualSelection.default(_objectSpread(_objectSpread({
|
46
|
-
className: 'area',
|
47
|
-
markIntersections: true,
|
48
|
-
layerLevel: Math.min(layerLevel, 7),
|
49
|
-
border: {
|
50
|
-
width: 1,
|
51
|
-
color: '#4b89ff',
|
52
|
-
cornerVisible: areaCornerVisible
|
53
|
-
}
|
39
|
+
var restOptions = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
40
|
+
return new _visualSelection.default(_objectSpread(_objectSpread({
|
41
|
+
className: 'highlight'
|
54
42
|
}, restOptions), {}, {
|
55
|
-
selectionType:
|
43
|
+
selectionType: _src.HIGHLIGHT_AREA_TYPE
|
56
44
|
}));
|
57
|
-
|
58
|
-
}
|
59
|
-
var _default = createHighlight;
|
60
|
-
exports.default = _default;
|
45
|
+
}
|
@@ -1,12 +1,17 @@
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
4
|
+
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; }
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
6
|
+
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
|
+
import "core-js/modules/es.object.assign.js";
|
5
8
|
import "core-js/modules/es.symbol.to-primitive.js";
|
6
9
|
import "core-js/modules/es.date.to-primitive.js";
|
10
|
+
import "core-js/modules/es.symbol.js";
|
7
11
|
import "core-js/modules/es.symbol.description.js";
|
8
12
|
import "core-js/modules/es.object.to-string.js";
|
9
13
|
import "core-js/modules/es.number.constructor.js";
|
14
|
+
import "core-js/modules/es.object.keys.js";
|
10
15
|
import "core-js/modules/es.array.filter.js";
|
11
16
|
import "core-js/modules/es.object.get-own-property-descriptor.js";
|
12
17
|
import "core-js/modules/web.dom-collections.for-each.js";
|
@@ -15,40 +20,21 @@ import "core-js/modules/es.symbol.iterator.js";
|
|
15
20
|
import "core-js/modules/es.array.iterator.js";
|
16
21
|
import "core-js/modules/es.string.iterator.js";
|
17
22
|
import "core-js/modules/web.dom-collections.iterator.js";
|
18
|
-
|
19
|
-
|
20
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
21
|
-
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; }
|
22
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
23
|
-
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); }
|
24
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
25
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
26
|
-
import { AREA_TYPE } from "../constants.mjs";
|
23
|
+
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
24
|
+
import { HIGHLIGHT_AREA_TYPE } from "../../../3rdparty/walkontable/src/index.mjs";
|
27
25
|
import VisualSelection from "../visualSelection.mjs";
|
28
26
|
/**
|
29
27
|
* Creates the new instance of Selection responsible for highlighting area of the selected multiple cells.
|
30
28
|
*
|
31
29
|
* @param {object} highlightParams A configuration object to create a highlight.
|
32
|
-
* @param {number} highlightParams.layerLevel Layer level.
|
33
30
|
* @param {object} highlightParams.areaCornerVisible Function to determine if area's corner should be visible.
|
34
31
|
* @returns {Selection}
|
35
32
|
*/
|
36
|
-
function createHighlight(_ref) {
|
37
|
-
var
|
38
|
-
|
39
|
-
|
40
|
-
var s = new VisualSelection(_objectSpread(_objectSpread({
|
41
|
-
className: 'area',
|
42
|
-
markIntersections: true,
|
43
|
-
layerLevel: Math.min(layerLevel, 7),
|
44
|
-
border: {
|
45
|
-
width: 1,
|
46
|
-
color: '#4b89ff',
|
47
|
-
cornerVisible: areaCornerVisible
|
48
|
-
}
|
33
|
+
export function createHighlight(_ref) {
|
34
|
+
var restOptions = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
35
|
+
return new VisualSelection(_objectSpread(_objectSpread({
|
36
|
+
className: 'highlight'
|
49
37
|
}, restOptions), {}, {
|
50
|
-
selectionType:
|
38
|
+
selectionType: HIGHLIGHT_AREA_TYPE
|
51
39
|
}));
|
52
|
-
|
53
|
-
}
|
54
|
-
export default createHighlight;
|
40
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
4
|
+
require("core-js/modules/es.object.keys.js");
|
5
|
+
require("core-js/modules/es.array.index-of.js");
|
6
|
+
require("core-js/modules/es.symbol.js");
|
7
|
+
require("core-js/modules/es.symbol.to-primitive.js");
|
8
|
+
require("core-js/modules/es.date.to-primitive.js");
|
9
|
+
require("core-js/modules/es.symbol.description.js");
|
10
|
+
require("core-js/modules/es.object.to-string.js");
|
11
|
+
require("core-js/modules/es.number.constructor.js");
|
12
|
+
require("core-js/modules/es.array.filter.js");
|
13
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
14
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
16
|
+
require("core-js/modules/es.symbol.iterator.js");
|
17
|
+
require("core-js/modules/es.array.iterator.js");
|
18
|
+
require("core-js/modules/es.string.iterator.js");
|
19
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
20
|
+
exports.__esModule = true;
|
21
|
+
exports.createHighlight = createHighlight;
|
22
|
+
var _src = require("../../../3rdparty/walkontable/src");
|
23
|
+
var _visualSelection = _interopRequireDefault(require("../visualSelection"));
|
24
|
+
var _excluded = ["areaCornerVisible"];
|
25
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
26
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
27
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
28
|
+
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; }
|
29
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
30
|
+
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); }
|
31
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
32
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
33
|
+
/**
|
34
|
+
* Creates the new instance of Selection responsible for highlighting area of the selected multiple cells.
|
35
|
+
*
|
36
|
+
* @param {object} highlightParams A configuration object to create a highlight.
|
37
|
+
* @param {object} highlightParams.areaCornerVisible Function to determine if area's corner should be visible.
|
38
|
+
* @returns {Selection}
|
39
|
+
*/
|
40
|
+
function createHighlight(_ref) {
|
41
|
+
var areaCornerVisible = _ref.areaCornerVisible,
|
42
|
+
restOptions = _objectWithoutProperties(_ref, _excluded);
|
43
|
+
return new _visualSelection.default(_objectSpread(_objectSpread({
|
44
|
+
className: 'area',
|
45
|
+
createLayers: true,
|
46
|
+
border: {
|
47
|
+
width: 1,
|
48
|
+
color: '#4b89ff',
|
49
|
+
cornerVisible: areaCornerVisible
|
50
|
+
}
|
51
|
+
}, restOptions), {}, {
|
52
|
+
selectionType: _src.HIGHLIGHT_AREA_TYPE
|
53
|
+
}));
|
54
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
2
|
+
import "core-js/modules/es.object.keys.js";
|
3
|
+
import "core-js/modules/es.array.index-of.js";
|
4
|
+
import "core-js/modules/es.symbol.js";
|
5
|
+
import "core-js/modules/es.symbol.to-primitive.js";
|
6
|
+
import "core-js/modules/es.date.to-primitive.js";
|
7
|
+
import "core-js/modules/es.symbol.description.js";
|
8
|
+
import "core-js/modules/es.object.to-string.js";
|
9
|
+
import "core-js/modules/es.number.constructor.js";
|
10
|
+
import "core-js/modules/es.array.filter.js";
|
11
|
+
import "core-js/modules/es.object.get-own-property-descriptor.js";
|
12
|
+
import "core-js/modules/web.dom-collections.for-each.js";
|
13
|
+
import "core-js/modules/es.object.get-own-property-descriptors.js";
|
14
|
+
import "core-js/modules/es.symbol.iterator.js";
|
15
|
+
import "core-js/modules/es.array.iterator.js";
|
16
|
+
import "core-js/modules/es.string.iterator.js";
|
17
|
+
import "core-js/modules/web.dom-collections.iterator.js";
|
18
|
+
var _excluded = ["areaCornerVisible"];
|
19
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
21
|
+
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; }
|
22
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
23
|
+
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); }
|
24
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
25
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
26
|
+
import { HIGHLIGHT_AREA_TYPE } from "../../../3rdparty/walkontable/src/index.mjs";
|
27
|
+
import VisualSelection from "../visualSelection.mjs";
|
28
|
+
/**
|
29
|
+
* Creates the new instance of Selection responsible for highlighting area of the selected multiple cells.
|
30
|
+
*
|
31
|
+
* @param {object} highlightParams A configuration object to create a highlight.
|
32
|
+
* @param {object} highlightParams.areaCornerVisible Function to determine if area's corner should be visible.
|
33
|
+
* @returns {Selection}
|
34
|
+
*/
|
35
|
+
export function createHighlight(_ref) {
|
36
|
+
var areaCornerVisible = _ref.areaCornerVisible,
|
37
|
+
restOptions = _objectWithoutProperties(_ref, _excluded);
|
38
|
+
return new VisualSelection(_objectSpread(_objectSpread({
|
39
|
+
className: 'area',
|
40
|
+
createLayers: true,
|
41
|
+
border: {
|
42
|
+
width: 1,
|
43
|
+
color: '#4b89ff',
|
44
|
+
cornerVisible: areaCornerVisible
|
45
|
+
}
|
46
|
+
}, restOptions), {}, {
|
47
|
+
selectionType: HIGHLIGHT_AREA_TYPE
|
48
|
+
}));
|
49
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
4
|
+
require("core-js/modules/es.object.keys.js");
|
5
|
+
require("core-js/modules/es.array.index-of.js");
|
6
|
+
require("core-js/modules/es.symbol.js");
|
7
|
+
require("core-js/modules/es.symbol.to-primitive.js");
|
8
|
+
require("core-js/modules/es.date.to-primitive.js");
|
9
|
+
require("core-js/modules/es.symbol.description.js");
|
10
|
+
require("core-js/modules/es.object.to-string.js");
|
11
|
+
require("core-js/modules/es.number.constructor.js");
|
12
|
+
require("core-js/modules/es.array.filter.js");
|
13
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
14
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
16
|
+
require("core-js/modules/es.symbol.iterator.js");
|
17
|
+
require("core-js/modules/es.array.iterator.js");
|
18
|
+
require("core-js/modules/es.string.iterator.js");
|
19
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
20
|
+
exports.__esModule = true;
|
21
|
+
exports.createHighlight = createHighlight;
|
22
|
+
var _src = require("../../../3rdparty/walkontable/src");
|
23
|
+
var _visualSelection = _interopRequireDefault(require("../visualSelection"));
|
24
|
+
var _excluded = ["columnClassName"];
|
25
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
26
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
27
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
28
|
+
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; }
|
29
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
30
|
+
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); }
|
31
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
32
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
33
|
+
/**
|
34
|
+
* Creates the new instance of Selection, responsible for highlighting cells in a columns and
|
35
|
+
* column headers.
|
36
|
+
* This type of selection can occur multiple times.
|
37
|
+
*
|
38
|
+
* @param {object} highlightParams A configuration object to create a highlight.
|
39
|
+
* @param {string} highlightParams.columnClassName Highlighted column' class name.
|
40
|
+
* @returns {Selection}
|
41
|
+
*/
|
42
|
+
function createHighlight(_ref) {
|
43
|
+
var columnClassName = _ref.columnClassName,
|
44
|
+
restOptions = _objectWithoutProperties(_ref, _excluded);
|
45
|
+
return new _visualSelection.default(_objectSpread(_objectSpread({
|
46
|
+
className: columnClassName
|
47
|
+
}, restOptions), {}, {
|
48
|
+
selectionType: _src.HIGHLIGHT_COLUMN_TYPE
|
49
|
+
}));
|
50
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
2
|
+
import "core-js/modules/es.object.keys.js";
|
3
|
+
import "core-js/modules/es.array.index-of.js";
|
4
|
+
import "core-js/modules/es.symbol.js";
|
5
|
+
import "core-js/modules/es.symbol.to-primitive.js";
|
6
|
+
import "core-js/modules/es.date.to-primitive.js";
|
7
|
+
import "core-js/modules/es.symbol.description.js";
|
8
|
+
import "core-js/modules/es.object.to-string.js";
|
9
|
+
import "core-js/modules/es.number.constructor.js";
|
10
|
+
import "core-js/modules/es.array.filter.js";
|
11
|
+
import "core-js/modules/es.object.get-own-property-descriptor.js";
|
12
|
+
import "core-js/modules/web.dom-collections.for-each.js";
|
13
|
+
import "core-js/modules/es.object.get-own-property-descriptors.js";
|
14
|
+
import "core-js/modules/es.symbol.iterator.js";
|
15
|
+
import "core-js/modules/es.array.iterator.js";
|
16
|
+
import "core-js/modules/es.string.iterator.js";
|
17
|
+
import "core-js/modules/web.dom-collections.iterator.js";
|
18
|
+
var _excluded = ["columnClassName"];
|
19
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
21
|
+
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; }
|
22
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
23
|
+
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); }
|
24
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
25
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
26
|
+
import { HIGHLIGHT_COLUMN_TYPE } from "../../../3rdparty/walkontable/src/index.mjs";
|
27
|
+
import VisualSelection from "../visualSelection.mjs";
|
28
|
+
/**
|
29
|
+
* Creates the new instance of Selection, responsible for highlighting cells in a columns and
|
30
|
+
* column headers.
|
31
|
+
* This type of selection can occur multiple times.
|
32
|
+
*
|
33
|
+
* @param {object} highlightParams A configuration object to create a highlight.
|
34
|
+
* @param {string} highlightParams.columnClassName Highlighted column' class name.
|
35
|
+
* @returns {Selection}
|
36
|
+
*/
|
37
|
+
export function createHighlight(_ref) {
|
38
|
+
var columnClassName = _ref.columnClassName,
|
39
|
+
restOptions = _objectWithoutProperties(_ref, _excluded);
|
40
|
+
return new VisualSelection(_objectSpread(_objectSpread({
|
41
|
+
className: columnClassName
|
42
|
+
}, restOptions), {}, {
|
43
|
+
selectionType: HIGHLIGHT_COLUMN_TYPE
|
44
|
+
}));
|
45
|
+
}
|
@@ -18,8 +18,8 @@ require("core-js/modules/es.array.iterator.js");
|
|
18
18
|
require("core-js/modules/es.string.iterator.js");
|
19
19
|
require("core-js/modules/web.dom-collections.iterator.js");
|
20
20
|
exports.__esModule = true;
|
21
|
-
exports.
|
22
|
-
var
|
21
|
+
exports.createHighlight = createHighlight;
|
22
|
+
var _src = require("../../../3rdparty/walkontable/src");
|
23
23
|
var _visualSelection = _interopRequireDefault(require("../visualSelection"));
|
24
24
|
var _excluded = ["border", "visualCellRange"];
|
25
25
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
@@ -31,8 +31,8 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
31
31
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
32
32
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
33
33
|
/**
|
34
|
-
* Creates the new instance of Selection responsible for highlighting currently selected cell.
|
35
|
-
* can present on the table only one at the time.
|
34
|
+
* Creates the new instance of Selection responsible for highlighting currently selected cell.
|
35
|
+
* This type of selection can present on the table only one at the time.
|
36
36
|
*
|
37
37
|
* @param {object} highlightParams A configuration object to create a highlight.
|
38
38
|
* @param {object} highlightParams.border Border configuration.
|
@@ -43,10 +43,7 @@ function createHighlight(_ref) {
|
|
43
43
|
var border = _ref.border,
|
44
44
|
visualCellRange = _ref.visualCellRange,
|
45
45
|
restOptions = _objectWithoutProperties(_ref, _excluded);
|
46
|
-
|
47
|
-
selectionType:
|
46
|
+
return new _visualSelection.default(_objectSpread(_objectSpread(_objectSpread({}, border), restOptions), {}, {
|
47
|
+
selectionType: _src.HIGHLIGHT_CUSTOM_SELECTION_TYPE
|
48
48
|
}), visualCellRange);
|
49
|
-
|
50
|
-
}
|
51
|
-
var _default = createHighlight;
|
52
|
-
exports.default = _default;
|
49
|
+
}
|
@@ -23,24 +23,22 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
23
23
|
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); }
|
24
24
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
25
25
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
26
|
-
import {
|
26
|
+
import { HIGHLIGHT_CUSTOM_SELECTION_TYPE } from "../../../3rdparty/walkontable/src/index.mjs";
|
27
27
|
import VisualSelection from "../visualSelection.mjs";
|
28
28
|
/**
|
29
|
-
* Creates the new instance of Selection responsible for highlighting currently selected cell.
|
30
|
-
* can present on the table only one at the time.
|
29
|
+
* Creates the new instance of Selection responsible for highlighting currently selected cell.
|
30
|
+
* This type of selection can present on the table only one at the time.
|
31
31
|
*
|
32
32
|
* @param {object} highlightParams A configuration object to create a highlight.
|
33
33
|
* @param {object} highlightParams.border Border configuration.
|
34
34
|
* @param {object} highlightParams.visualCellRange Function to translate visual to renderable coords.
|
35
35
|
* @returns {Selection}
|
36
36
|
*/
|
37
|
-
function createHighlight(_ref) {
|
37
|
+
export function createHighlight(_ref) {
|
38
38
|
var border = _ref.border,
|
39
39
|
visualCellRange = _ref.visualCellRange,
|
40
40
|
restOptions = _objectWithoutProperties(_ref, _excluded);
|
41
|
-
|
42
|
-
selectionType:
|
41
|
+
return new VisualSelection(_objectSpread(_objectSpread(_objectSpread({}, border), restOptions), {}, {
|
42
|
+
selectionType: HIGHLIGHT_CUSTOM_SELECTION_TYPE
|
43
43
|
}), visualCellRange);
|
44
|
-
|
45
|
-
}
|
46
|
-
export default createHighlight;
|
44
|
+
}
|
@@ -17,9 +17,9 @@ require("core-js/modules/es.string.iterator.js");
|
|
17
17
|
require("core-js/modules/web.dom-collections.iterator.js");
|
18
18
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
19
19
|
exports.__esModule = true;
|
20
|
-
exports.
|
20
|
+
exports.createHighlight = createHighlight;
|
21
21
|
require("core-js/modules/es.object.assign.js");
|
22
|
-
var
|
22
|
+
var _src = require("../../../3rdparty/walkontable/src");
|
23
23
|
var _visualSelection = _interopRequireDefault(require("../visualSelection"));
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
25
25
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
@@ -37,16 +37,13 @@ function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("
|
|
37
37
|
*/
|
38
38
|
function createHighlight(_ref) {
|
39
39
|
var restOptions = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
40
|
-
|
40
|
+
return new _visualSelection.default(_objectSpread(_objectSpread({
|
41
41
|
className: 'fill',
|
42
42
|
border: {
|
43
43
|
width: 1,
|
44
44
|
color: '#ff0000'
|
45
45
|
}
|
46
46
|
}, restOptions), {}, {
|
47
|
-
selectionType:
|
47
|
+
selectionType: _src.HIGHLIGHT_FILL_TYPE
|
48
48
|
}));
|
49
|
-
|
50
|
-
}
|
51
|
-
var _default = createHighlight;
|
52
|
-
exports.default = _default;
|
49
|
+
}
|
@@ -21,7 +21,7 @@ import "core-js/modules/es.array.iterator.js";
|
|
21
21
|
import "core-js/modules/es.string.iterator.js";
|
22
22
|
import "core-js/modules/web.dom-collections.iterator.js";
|
23
23
|
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
24
|
-
import {
|
24
|
+
import { HIGHLIGHT_FILL_TYPE } from "../../../3rdparty/walkontable/src/index.mjs";
|
25
25
|
import VisualSelection from "../visualSelection.mjs";
|
26
26
|
/**
|
27
27
|
* Creates the new instance of Selection, responsible for highlighting cells which are covered by fill handle
|
@@ -30,17 +30,15 @@ import VisualSelection from "../visualSelection.mjs";
|
|
30
30
|
* @param {object} highlightParams A configuration object to create a highlight.
|
31
31
|
* @returns {Selection}
|
32
32
|
*/
|
33
|
-
function createHighlight(_ref) {
|
33
|
+
export function createHighlight(_ref) {
|
34
34
|
var restOptions = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
35
|
-
|
35
|
+
return new VisualSelection(_objectSpread(_objectSpread({
|
36
36
|
className: 'fill',
|
37
37
|
border: {
|
38
38
|
width: 1,
|
39
39
|
color: '#ff0000'
|
40
40
|
}
|
41
41
|
}, restOptions), {}, {
|
42
|
-
selectionType:
|
42
|
+
selectionType: HIGHLIGHT_FILL_TYPE
|
43
43
|
}));
|
44
|
-
|
45
|
-
}
|
46
|
-
export default createHighlight;
|
44
|
+
}
|
@@ -18,8 +18,8 @@ require("core-js/modules/es.array.iterator.js");
|
|
18
18
|
require("core-js/modules/es.string.iterator.js");
|
19
19
|
require("core-js/modules/web.dom-collections.iterator.js");
|
20
20
|
exports.__esModule = true;
|
21
|
-
exports.
|
22
|
-
var
|
21
|
+
exports.createHighlight = createHighlight;
|
22
|
+
var _src = require("../../../3rdparty/walkontable/src");
|
23
23
|
var _visualSelection = _interopRequireDefault(require("../visualSelection"));
|
24
24
|
var _excluded = ["cellCornerVisible"];
|
25
25
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
@@ -41,7 +41,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
41
41
|
function createHighlight(_ref) {
|
42
42
|
var cellCornerVisible = _ref.cellCornerVisible,
|
43
43
|
restOptions = _objectWithoutProperties(_ref, _excluded);
|
44
|
-
|
44
|
+
return new _visualSelection.default(_objectSpread(_objectSpread({
|
45
45
|
className: 'current',
|
46
46
|
border: {
|
47
47
|
width: 2,
|
@@ -49,9 +49,6 @@ function createHighlight(_ref) {
|
|
49
49
|
cornerVisible: cellCornerVisible
|
50
50
|
}
|
51
51
|
}, restOptions), {}, {
|
52
|
-
selectionType:
|
52
|
+
selectionType: _src.HIGHLIGHT_FOCUS_TYPE
|
53
53
|
}));
|
54
|
-
|
55
|
-
}
|
56
|
-
var _default = createHighlight;
|
57
|
-
exports.default = _default;
|
54
|
+
}
|
@@ -23,7 +23,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
23
23
|
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); }
|
24
24
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
25
25
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
26
|
-
import {
|
26
|
+
import { HIGHLIGHT_FOCUS_TYPE } from "../../../3rdparty/walkontable/src/index.mjs";
|
27
27
|
import VisualSelection from "../visualSelection.mjs";
|
28
28
|
/**
|
29
29
|
* Creates the new instance of Selection responsible for highlighting currently selected cell. This type of selection
|
@@ -33,10 +33,10 @@ import VisualSelection from "../visualSelection.mjs";
|
|
33
33
|
* @param {Function} highlightParams.cellCornerVisible Function to determine if cell's corner should be visible.
|
34
34
|
* @returns {Selection}
|
35
35
|
*/
|
36
|
-
function createHighlight(_ref) {
|
36
|
+
export function createHighlight(_ref) {
|
37
37
|
var cellCornerVisible = _ref.cellCornerVisible,
|
38
38
|
restOptions = _objectWithoutProperties(_ref, _excluded);
|
39
|
-
|
39
|
+
return new VisualSelection(_objectSpread(_objectSpread({
|
40
40
|
className: 'current',
|
41
41
|
border: {
|
42
42
|
width: 2,
|
@@ -44,8 +44,6 @@ function createHighlight(_ref) {
|
|
44
44
|
cornerVisible: cellCornerVisible
|
45
45
|
}
|
46
46
|
}, restOptions), {}, {
|
47
|
-
selectionType:
|
47
|
+
selectionType: HIGHLIGHT_FOCUS_TYPE
|
48
48
|
}));
|
49
|
-
|
50
|
-
}
|
51
|
-
export default createHighlight;
|
49
|
+
}
|
@@ -18,10 +18,10 @@ require("core-js/modules/es.array.iterator.js");
|
|
18
18
|
require("core-js/modules/es.string.iterator.js");
|
19
19
|
require("core-js/modules/web.dom-collections.iterator.js");
|
20
20
|
exports.__esModule = true;
|
21
|
-
exports.
|
22
|
-
var
|
21
|
+
exports.createHighlight = createHighlight;
|
22
|
+
var _src = require("../../../3rdparty/walkontable/src");
|
23
23
|
var _visualSelection = _interopRequireDefault(require("../visualSelection"));
|
24
|
-
var _excluded = ["headerClassName"
|
24
|
+
var _excluded = ["headerClassName"];
|
25
25
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
26
26
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
27
27
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
@@ -31,30 +31,20 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
31
31
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
32
32
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
33
33
|
/**
|
34
|
-
* Creates the new instance of Selection, responsible for highlighting
|
35
|
-
*
|
34
|
+
* Creates the new instance of Selection, responsible for highlighting column or row headers when
|
35
|
+
* any cell is selected.
|
36
|
+
* This type of selection can occur multiple times.
|
36
37
|
*
|
37
38
|
* @param {object} highlightParams A configuration object to create a highlight.
|
38
39
|
* @param {string} highlightParams.headerClassName Highlighted headers' class name.
|
39
|
-
* @param {string} highlightParams.rowClassName Highlighted row' class name.
|
40
|
-
* @param {string} highlightParams.columnClassName Highlighted column' class name.
|
41
40
|
* @returns {Selection}
|
42
41
|
*/
|
43
42
|
function createHighlight(_ref) {
|
44
43
|
var headerClassName = _ref.headerClassName,
|
45
|
-
rowClassName = _ref.rowClassName,
|
46
|
-
columnClassName = _ref.columnClassName,
|
47
44
|
restOptions = _objectWithoutProperties(_ref, _excluded);
|
48
|
-
|
49
|
-
className:
|
50
|
-
highlightHeaderClassName: headerClassName,
|
51
|
-
highlightRowClassName: rowClassName,
|
52
|
-
highlightColumnClassName: columnClassName
|
45
|
+
return new _visualSelection.default(_objectSpread(_objectSpread({
|
46
|
+
className: headerClassName
|
53
47
|
}, restOptions), {}, {
|
54
|
-
|
55
|
-
selectionType: _constants.HEADER_TYPE
|
48
|
+
selectionType: _src.HIGHLIGHT_HEADER_TYPE
|
56
49
|
}));
|
57
|
-
|
58
|
-
}
|
59
|
-
var _default = createHighlight;
|
60
|
-
exports.default = _default;
|
50
|
+
}
|