handsontable 0.0.0-next-bfb0e3a-20240403 → 0.0.0-next-5a535ed-20240403
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of handsontable might be problematic. Click here for more details.
- package/3rdparty/walkontable/src/calculator/viewportColumns.js +17 -12
- package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +17 -12
- package/3rdparty/walkontable/src/calculator/viewportRows.js +15 -10
- package/3rdparty/walkontable/src/calculator/viewportRows.mjs +15 -10
- package/3rdparty/walkontable/src/cell/coords.js +17 -12
- package/3rdparty/walkontable/src/cell/coords.mjs +17 -12
- package/3rdparty/walkontable/src/cell/range.d.ts +1 -2
- package/3rdparty/walkontable/src/cell/range.js +28 -40
- package/3rdparty/walkontable/src/cell/range.mjs +28 -40
- package/3rdparty/walkontable/src/core/_base.js +1 -1
- package/3rdparty/walkontable/src/core/_base.mjs +1 -1
- package/3rdparty/walkontable/src/event.js +104 -72
- package/3rdparty/walkontable/src/event.mjs +104 -72
- package/3rdparty/walkontable/src/overlays.js +1 -1
- package/3rdparty/walkontable/src/overlays.mjs +1 -1
- package/3rdparty/walkontable/src/scroll.js +17 -15
- package/3rdparty/walkontable/src/scroll.mjs +17 -15
- package/3rdparty/walkontable/src/selection/manager.js +69 -48
- package/3rdparty/walkontable/src/selection/manager.mjs +69 -48
- package/3rdparty/walkontable/src/selection/scanner.js +42 -33
- package/3rdparty/walkontable/src/selection/scanner.mjs +42 -33
- package/3rdparty/walkontable/src/utils/columnStretching.js +44 -27
- package/3rdparty/walkontable/src/utils/columnStretching.mjs +44 -27
- package/3rdparty/walkontable/src/utils/orderView/view.js +1 -1
- package/3rdparty/walkontable/src/utils/orderView/view.mjs +1 -1
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core/viewportScroll/index.js +1 -4
- package/core/viewportScroll/index.mjs +1 -4
- package/core.d.ts +3 -4
- package/core.js +22 -77
- package/core.mjs +22 -77
- package/dataMap/dataSource.js +1 -1
- package/dataMap/dataSource.mjs +1 -1
- package/dataMap/metaManager/metaLayers/cellMeta.js +1 -1
- package/dataMap/metaManager/metaLayers/cellMeta.mjs +1 -1
- package/dataMap/metaManager/metaSchema.js +1 -1
- package/dataMap/metaManager/metaSchema.mjs +1 -1
- package/dataMap/replaceData.js +1 -1
- package/dataMap/replaceData.mjs +1 -1
- package/dist/handsontable.css +4 -4
- package/dist/handsontable.full.css +4 -4
- package/dist/handsontable.full.js +9117 -8969
- package/dist/handsontable.full.min.css +3 -3
- package/dist/handsontable.full.min.js +292 -292
- package/dist/handsontable.js +6569 -6874
- package/dist/handsontable.min.css +3 -3
- package/dist/handsontable.min.js +25 -25
- package/dist/languages/all.min.js +1 -1
- package/dist/languages/ar-AR.min.js +1 -1
- package/dist/languages/cs-CZ.min.js +1 -1
- package/dist/languages/de-CH.min.js +1 -1
- package/dist/languages/de-DE.min.js +1 -1
- package/dist/languages/en-US.min.js +1 -1
- package/dist/languages/es-MX.min.js +1 -1
- package/dist/languages/fr-FR.min.js +1 -1
- package/dist/languages/hr-HR.min.js +1 -1
- package/dist/languages/it-IT.min.js +1 -1
- package/dist/languages/ja-JP.min.js +1 -1
- package/dist/languages/ko-KR.min.js +1 -1
- package/dist/languages/lv-LV.min.js +1 -1
- package/dist/languages/nb-NO.min.js +1 -1
- package/dist/languages/nl-NL.min.js +1 -1
- package/dist/languages/pl-PL.min.js +1 -1
- package/dist/languages/pt-BR.min.js +1 -1
- package/dist/languages/ru-RU.min.js +1 -1
- package/dist/languages/sr-SP.min.js +1 -1
- package/dist/languages/zh-CN.min.js +1 -1
- package/dist/languages/zh-TW.min.js +1 -1
- package/editorManager.js +23 -25
- package/editorManager.mjs +23 -25
- package/editors/autocompleteEditor/autocompleteEditor.js +10 -6
- package/editors/autocompleteEditor/autocompleteEditor.mjs +10 -6
- package/editors/selectEditor/selectEditor.js +19 -20
- package/editors/selectEditor/selectEditor.mjs +19 -20
- package/eventManager.js +1 -1
- package/eventManager.mjs +1 -1
- package/focusManager.js +82 -64
- package/focusManager.mjs +82 -64
- package/helpers/dom/element.js +1 -1
- package/helpers/dom/element.mjs +1 -1
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/helpers/object.js +2 -2
- package/helpers/object.mjs +2 -2
- package/index.d.ts +0 -10
- package/package.json +2 -7
- package/pluginHooks.d.ts +3 -4
- package/pluginHooks.js +38 -99
- package/pluginHooks.mjs +38 -99
- package/plugins/autoColumnSize/autoColumnSize.js +65 -49
- package/plugins/autoColumnSize/autoColumnSize.mjs +65 -49
- package/plugins/autoRowSize/autoRowSize.js +34 -28
- package/plugins/autoRowSize/autoRowSize.mjs +34 -28
- package/plugins/autofill/autofill.js +38 -30
- package/plugins/autofill/autofill.mjs +38 -30
- package/plugins/base/base.js +17 -12
- package/plugins/base/base.mjs +17 -12
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +5 -5
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +5 -5
- package/plugins/collapsibleColumns/collapsibleColumns.js +50 -59
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +50 -59
- package/plugins/columnSorting/columnSorting.js +45 -49
- package/plugins/columnSorting/columnSorting.mjs +45 -49
- package/plugins/columnSummary/columnSummary.js +26 -22
- package/plugins/columnSummary/columnSummary.mjs +26 -22
- package/plugins/comments/comments.js +158 -116
- package/plugins/comments/comments.mjs +158 -116
- package/plugins/contextMenu/contextMenu.js +26 -20
- package/plugins/contextMenu/contextMenu.mjs +26 -20
- package/plugins/contextMenu/itemsFactory.js +1 -1
- package/plugins/contextMenu/itemsFactory.mjs +1 -1
- package/plugins/contextMenu/menu/defaultShortcutsList.js +10 -26
- package/plugins/contextMenu/menu/defaultShortcutsList.mjs +10 -26
- package/plugins/contextMenu/menu/menu.js +21 -13
- package/plugins/contextMenu/menu/menu.mjs +21 -13
- package/plugins/contextMenu/menu/positioner.js +58 -41
- package/plugins/contextMenu/menu/positioner.mjs +58 -41
- package/plugins/copyPaste/copyPaste.js +157 -116
- package/plugins/copyPaste/copyPaste.mjs +157 -116
- package/plugins/copyPaste/copyableRanges.js +66 -43
- package/plugins/copyPaste/copyableRanges.mjs +66 -43
- package/plugins/customBorders/customBorders.js +13 -11
- package/plugins/customBorders/customBorders.mjs +13 -11
- package/plugins/dragToScroll/dragToScroll.js +6 -6
- package/plugins/dragToScroll/dragToScroll.mjs +6 -6
- package/plugins/dropdownMenu/dropdownMenu.js +106 -80
- package/plugins/dropdownMenu/dropdownMenu.mjs +106 -80
- package/plugins/exportFile/dataProvider.js +1 -1
- package/plugins/exportFile/dataProvider.mjs +1 -1
- package/plugins/filters/component/actionBar.js +9 -9
- package/plugins/filters/component/actionBar.mjs +8 -8
- package/plugins/filters/component/condition.js +15 -13
- package/plugins/filters/component/condition.mjs +15 -13
- package/plugins/filters/component/operators.js +6 -6
- package/plugins/filters/component/operators.mjs +6 -6
- package/plugins/filters/component/value.js +28 -24
- package/plugins/filters/component/value.mjs +28 -24
- package/plugins/filters/conditionUpdateObserver.js +24 -22
- package/plugins/filters/conditionUpdateObserver.mjs +24 -22
- package/plugins/filters/dataFilter.js +1 -1
- package/plugins/filters/dataFilter.mjs +1 -1
- package/plugins/filters/filters.js +95 -81
- package/plugins/filters/filters.mjs +95 -81
- package/plugins/filters/ui/input.js +19 -13
- package/plugins/filters/ui/input.mjs +19 -13
- package/plugins/filters/ui/link.js +13 -8
- package/plugins/filters/ui/link.mjs +13 -8
- package/plugins/filters/ui/multipleSelect.js +112 -85
- package/plugins/filters/ui/multipleSelect.mjs +112 -85
- package/plugins/filters/ui/radioInput.js +20 -12
- package/plugins/filters/ui/radioInput.mjs +20 -12
- package/plugins/filters/ui/select.js +72 -50
- package/plugins/filters/ui/select.mjs +71 -49
- package/plugins/formulas/formulas.js +326 -268
- package/plugins/formulas/formulas.mjs +327 -269
- package/plugins/formulas/indexSyncer/axisSyncer.js +61 -38
- package/plugins/formulas/indexSyncer/axisSyncer.mjs +61 -38
- package/plugins/formulas/indexSyncer/index.js +48 -25
- package/plugins/formulas/indexSyncer/index.mjs +48 -25
- package/plugins/hiddenColumns/hiddenColumns.js +83 -64
- package/plugins/hiddenColumns/hiddenColumns.mjs +83 -64
- package/plugins/hiddenRows/hiddenRows.js +82 -63
- package/plugins/hiddenRows/hiddenRows.mjs +82 -63
- package/plugins/manualColumnFreeze/manualColumnFreeze.js +32 -24
- package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +33 -25
- package/plugins/manualColumnMove/manualColumnMove.js +170 -126
- package/plugins/manualColumnMove/manualColumnMove.mjs +170 -126
- package/plugins/manualColumnResize/manualColumnResize.js +230 -169
- package/plugins/manualColumnResize/manualColumnResize.mjs +230 -169
- package/plugins/manualRowMove/manualRowMove.js +128 -99
- package/plugins/manualRowMove/manualRowMove.mjs +128 -99
- package/plugins/manualRowResize/manualRowResize.js +209 -150
- package/plugins/manualRowResize/manualRowResize.mjs +209 -150
- package/plugins/mergeCells/calculations/selection.js +71 -2
- package/plugins/mergeCells/calculations/selection.mjs +71 -2
- package/plugins/mergeCells/cellsCollection.js +1 -117
- package/plugins/mergeCells/cellsCollection.mjs +1 -117
- package/plugins/mergeCells/contextMenuItem/toggleMerge.js +1 -11
- package/plugins/mergeCells/contextMenuItem/toggleMerge.mjs +1 -11
- package/plugins/mergeCells/mergeCells.js +397 -499
- package/plugins/mergeCells/mergeCells.mjs +397 -499
- package/plugins/multiColumnSorting/multiColumnSorting.js +2 -8
- package/plugins/multiColumnSorting/multiColumnSorting.mjs +2 -8
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +1 -1
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.mjs +1 -1
- package/plugins/nestedHeaders/nestedHeaders.js +253 -205
- package/plugins/nestedHeaders/nestedHeaders.mjs +254 -206
- package/plugins/nestedHeaders/stateManager/headersTree.js +32 -21
- package/plugins/nestedHeaders/stateManager/headersTree.mjs +32 -21
- package/plugins/nestedHeaders/stateManager/index.js +41 -30
- package/plugins/nestedHeaders/stateManager/index.mjs +41 -30
- package/plugins/nestedHeaders/stateManager/sourceSettings.js +30 -19
- package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +30 -19
- package/plugins/nestedRows/data/dataManager.js +1 -1
- package/plugins/nestedRows/data/dataManager.mjs +1 -1
- package/plugins/nestedRows/nestedRows.js +182 -151
- package/plugins/nestedRows/nestedRows.mjs +183 -152
- package/plugins/nestedRows/ui/contextMenu.js +15 -11
- package/plugins/nestedRows/ui/contextMenu.mjs +14 -10
- package/plugins/nestedRows/utils/rowMoveController.js +1 -1
- package/plugins/nestedRows/utils/rowMoveController.mjs +1 -1
- package/plugins/persistentState/storage.js +2 -2
- package/plugins/persistentState/storage.mjs +2 -2
- package/plugins/search/search.js +7 -7
- package/plugins/search/search.mjs +7 -7
- package/plugins/touchScroll/touchScroll.js +19 -15
- package/plugins/touchScroll/touchScroll.mjs +20 -16
- package/plugins/trimRows/trimRows.js +6 -6
- package/plugins/trimRows/trimRows.mjs +6 -6
- package/renderers/checkboxRenderer/checkboxRenderer.js +5 -8
- package/renderers/checkboxRenderer/checkboxRenderer.mjs +5 -8
- package/selection/highlight/highlight.js +14 -14
- package/selection/highlight/highlight.mjs +13 -13
- package/selection/highlight/visualSelection.js +0 -2
- package/selection/highlight/visualSelection.mjs +0 -2
- package/selection/selection.js +67 -225
- package/selection/selection.mjs +66 -224
- package/selection/transformation.js +118 -149
- package/selection/transformation.mjs +118 -149
- package/shortcutContexts/commands/editor/closeAndSave.js +2 -2
- package/shortcutContexts/commands/editor/closeAndSave.mjs +2 -2
- package/shortcutContexts/commands/editor/open.js +3 -18
- package/shortcutContexts/commands/editor/open.mjs +3 -18
- package/shortcutContexts/commands/extendCellsSelection/down.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/down.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/left.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/left.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/right.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/right.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/toColumns.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/toColumns.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +1 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +1 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +3 -9
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +3 -9
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +3 -10
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +3 -10
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +1 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +1 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +1 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +1 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +1 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +1 -3
- package/shortcutContexts/commands/extendCellsSelection/toRows.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/toRows.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/up.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/up.mjs +1 -1
- package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +1 -6
- package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +1 -6
- package/shortcutContexts/commands/moveCellSelection/inlineStart.js +1 -6
- package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +1 -6
- package/shortcutContexts/grid.js +3 -9
- package/shortcutContexts/grid.mjs +3 -9
- package/shortcuts/context.js +1 -2
- package/shortcuts/context.mjs +1 -2
- package/tableView.js +78 -52
- package/tableView.mjs +78 -52
- package/translations/changesObservable/observable.js +38 -21
- package/translations/changesObservable/observable.mjs +38 -21
- package/translations/changesObservable/observer.js +12 -7
- package/translations/changesObservable/observer.mjs +11 -6
- package/translations/mapCollections/aggregatedCollection.js +1 -1
- package/translations/mapCollections/aggregatedCollection.mjs +1 -1
- package/translations/maps/indexMap.js +1 -1
- package/translations/maps/indexMap.mjs +1 -1
- package/utils/dataStructures/linkedList.js +1 -6
- package/utils/dataStructures/linkedList.mjs +1 -6
- package/utils/dataStructures/tree.js +1 -1
- package/utils/dataStructures/tree.mjs +1 -1
- package/utils/interval.js +44 -26
- package/utils/interval.mjs +44 -26
- package/core/viewportScroll/scrollStrategies/focusScroll.js +0 -15
- package/core/viewportScroll/scrollStrategies/focusScroll.mjs +0 -11
- package/i18n/languages/ar-AR.d.ts +0 -5
- package/i18n/languages/cs-CZ.d.ts +0 -5
- package/i18n/languages/hr-HR.d.ts +0 -5
- package/i18n/languages/sr-SP.d.ts +0 -5
- package/plugins/mergeCells/focusOrder.js +0 -305
- package/plugins/mergeCells/focusOrder.mjs +0 -300
@@ -1,14 +1,17 @@
|
|
1
|
-
import "core-js/modules/es.error.cause.js";
|
2
1
|
import "core-js/modules/es.array.push.js";
|
2
|
+
import "core-js/modules/es.error.cause.js";
|
3
3
|
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
4
4
|
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
5
5
|
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
6
6
|
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; }
|
7
7
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
8
8
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
9
|
-
function _classPrivateFieldGet(
|
10
|
-
function
|
11
|
-
function
|
9
|
+
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
|
10
|
+
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
|
11
|
+
function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
|
12
|
+
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
|
13
|
+
function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
|
14
|
+
function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } descriptor.value = value; } }
|
12
15
|
import { BasePlugin } from "../base/index.mjs";
|
13
16
|
import Hooks from "../../pluginHooks.mjs";
|
14
17
|
import { stringify, parse } from "../../3rdparty/SheetClip/index.mjs";
|
@@ -80,16 +83,76 @@ var _isTriggeredByCopy = /*#__PURE__*/new WeakMap();
|
|
80
83
|
var _isTriggeredByCut = /*#__PURE__*/new WeakMap();
|
81
84
|
var _copyableRangesFactory = /*#__PURE__*/new WeakMap();
|
82
85
|
var _preventViewportScrollOnPaste = /*#__PURE__*/new WeakMap();
|
83
|
-
var
|
86
|
+
var _ensureClipboardEventsGetTriggered = /*#__PURE__*/new WeakSet();
|
87
|
+
var _countCopiedHeaders = /*#__PURE__*/new WeakSet();
|
88
|
+
var _addContentEditableToHighlightedCell = /*#__PURE__*/new WeakSet();
|
89
|
+
var _removeContentEditableFromHighlightedCell = /*#__PURE__*/new WeakSet();
|
90
|
+
var _onAfterContextMenuDefaultOptions = /*#__PURE__*/new WeakSet();
|
91
|
+
var _onAfterSelection = /*#__PURE__*/new WeakSet();
|
92
|
+
var _onAfterSelectionEnd = /*#__PURE__*/new WeakSet();
|
93
|
+
var _onSafariMouseEnter = /*#__PURE__*/new WeakSet();
|
94
|
+
var _onSafariMouseLeave = /*#__PURE__*/new WeakSet();
|
95
|
+
var _onSafariAfterSelection = /*#__PURE__*/new WeakSet();
|
84
96
|
export class CopyPaste extends BasePlugin {
|
85
97
|
constructor() {
|
86
98
|
super(...arguments);
|
99
|
+
/**
|
100
|
+
* `afterSelection` hook callback triggered only on Safari.
|
101
|
+
*/
|
102
|
+
_classPrivateMethodInitSpec(this, _onSafariAfterSelection);
|
103
|
+
/**
|
104
|
+
* `document.body` `mouseleave` callback used to work around a Safari's problem with copying/cutting from the
|
105
|
+
* browser's menu.
|
106
|
+
*/
|
107
|
+
_classPrivateMethodInitSpec(this, _onSafariMouseLeave);
|
108
|
+
/**
|
109
|
+
* `document.body` `mouseenter` callback used to work around a Safari's problem with copying/cutting from the
|
110
|
+
* browser's menu.
|
111
|
+
*/
|
112
|
+
_classPrivateMethodInitSpec(this, _onSafariMouseEnter);
|
113
|
+
/**
|
114
|
+
* Force focus on focusableElement after end of the selection.
|
115
|
+
*/
|
116
|
+
_classPrivateMethodInitSpec(this, _onAfterSelectionEnd);
|
117
|
+
/**
|
118
|
+
* Disables the viewport scroll after pasting the data.
|
119
|
+
*
|
120
|
+
* @param {number} fromRow Selection start row visual index.
|
121
|
+
* @param {number} fromColumn Selection start column visual index.
|
122
|
+
* @param {number} toRow Selection end row visual index.
|
123
|
+
* @param {number} toColumn Selection end column visual index.
|
124
|
+
* @param {object} preventScrolling Object with `value` property. If `true`, the viewport scroll will be prevented.
|
125
|
+
*/
|
126
|
+
_classPrivateMethodInitSpec(this, _onAfterSelection);
|
127
|
+
/**
|
128
|
+
* Add copy and cut options to the Context Menu.
|
129
|
+
*
|
130
|
+
* @param {object} options Contains default added options of the Context Menu.
|
131
|
+
*/
|
132
|
+
_classPrivateMethodInitSpec(this, _onAfterContextMenuDefaultOptions);
|
133
|
+
/**
|
134
|
+
* Remove the `contenteditable` attribute from the highlighted cell and deselect its content.
|
135
|
+
*/
|
136
|
+
_classPrivateMethodInitSpec(this, _removeContentEditableFromHighlightedCell);
|
137
|
+
/**
|
138
|
+
* Add the `contenteditable` attribute to the highlighted cell and select its content.
|
139
|
+
*/
|
140
|
+
_classPrivateMethodInitSpec(this, _addContentEditableToHighlightedCell);
|
141
|
+
/**
|
142
|
+
* Counts how many column headers will be copied based on the passed range.
|
143
|
+
*
|
144
|
+
* @private
|
145
|
+
* @param {Array<{startRow: number, startCol: number, endRow: number, endCol: number}>} ranges Array of objects with properties `startRow`, `startCol`, `endRow` and `endCol`.
|
146
|
+
* @returns {{ columnHeadersCount: number }} Returns an object with keys that holds
|
147
|
+
* information with the number of copied headers.
|
148
|
+
*/
|
149
|
+
_classPrivateMethodInitSpec(this, _countCopiedHeaders);
|
87
150
|
/**
|
88
151
|
* Ensure that the `copy`/`cut` events get triggered properly in Safari.
|
89
152
|
*
|
90
153
|
* @param {string} eventName Name of the event to get triggered.
|
91
154
|
*/
|
92
|
-
_classPrivateMethodInitSpec(this,
|
155
|
+
_classPrivateMethodInitSpec(this, _ensureClipboardEventsGetTriggered);
|
93
156
|
/**
|
94
157
|
* The maximum number of columns than can be copied to the clipboard.
|
95
158
|
*
|
@@ -106,9 +169,9 @@ export class CopyPaste extends BasePlugin {
|
|
106
169
|
_defineProperty(this, "rowsLimit", Infinity);
|
107
170
|
/**
|
108
171
|
* When pasting:
|
109
|
-
* - `'overwrite'
|
110
|
-
* - `'shift_down'
|
111
|
-
* - `'shift_right'
|
172
|
+
* - `'overwrite'`: overwrite the currently-selected cells
|
173
|
+
* - `'shift_down'`: move currently-selected cells down
|
174
|
+
* - `'shift_right'`: move currently-selected cells to the right
|
112
175
|
*
|
113
176
|
* @type {string}
|
114
177
|
* @default 'overwrite'
|
@@ -127,7 +190,10 @@ export class CopyPaste extends BasePlugin {
|
|
127
190
|
* @type {boolean}
|
128
191
|
* @default false
|
129
192
|
*/
|
130
|
-
_classPrivateFieldInitSpec(this, _enableCopyColumnHeaders,
|
193
|
+
_classPrivateFieldInitSpec(this, _enableCopyColumnHeaders, {
|
194
|
+
writable: true,
|
195
|
+
value: false
|
196
|
+
});
|
131
197
|
/**
|
132
198
|
* Shows the "Copy with group headers" item in the context menu and extends the context menu with the
|
133
199
|
* `'copy_with_column_group headers'` option that can be used for creating custom menus arrangements.
|
@@ -135,7 +201,10 @@ export class CopyPaste extends BasePlugin {
|
|
135
201
|
* @type {boolean}
|
136
202
|
* @default false
|
137
203
|
*/
|
138
|
-
_classPrivateFieldInitSpec(this, _enableCopyColumnGroupHeaders,
|
204
|
+
_classPrivateFieldInitSpec(this, _enableCopyColumnGroupHeaders, {
|
205
|
+
writable: true,
|
206
|
+
value: false
|
207
|
+
});
|
139
208
|
/**
|
140
209
|
* Shows the "Copy headers only" item in the context menu and extends the context menu with the
|
141
210
|
* `'copy_column_headers_only'` option that can be used for creating custom menus arrangements.
|
@@ -143,7 +212,10 @@ export class CopyPaste extends BasePlugin {
|
|
143
212
|
* @type {boolean}
|
144
213
|
* @default false
|
145
214
|
*/
|
146
|
-
_classPrivateFieldInitSpec(this, _enableCopyColumnHeadersOnly,
|
215
|
+
_classPrivateFieldInitSpec(this, _enableCopyColumnHeadersOnly, {
|
216
|
+
writable: true,
|
217
|
+
value: false
|
218
|
+
});
|
147
219
|
/**
|
148
220
|
* Defines the data range to copy. Possible values:
|
149
221
|
* * `'cells-only'` Copy selected cells only;
|
@@ -153,38 +225,53 @@ export class CopyPaste extends BasePlugin {
|
|
153
225
|
*
|
154
226
|
* @type {'cells-only' | 'column-headers-only' | 'with-column-group-headers' | 'with-column-headers'}
|
155
227
|
*/
|
156
|
-
_classPrivateFieldInitSpec(this, _copyMode,
|
228
|
+
_classPrivateFieldInitSpec(this, _copyMode, {
|
229
|
+
writable: true,
|
230
|
+
value: 'cells-only'
|
231
|
+
});
|
157
232
|
/**
|
158
233
|
* Flag that is used to prevent copying when the native shortcut was not pressed.
|
159
234
|
*
|
160
235
|
* @type {boolean}
|
161
236
|
*/
|
162
|
-
_classPrivateFieldInitSpec(this, _isTriggeredByCopy,
|
237
|
+
_classPrivateFieldInitSpec(this, _isTriggeredByCopy, {
|
238
|
+
writable: true,
|
239
|
+
value: false
|
240
|
+
});
|
163
241
|
/**
|
164
242
|
* Flag that is used to prevent cutting when the native shortcut was not pressed.
|
165
243
|
*
|
166
244
|
* @type {boolean}
|
167
245
|
*/
|
168
|
-
_classPrivateFieldInitSpec(this, _isTriggeredByCut,
|
246
|
+
_classPrivateFieldInitSpec(this, _isTriggeredByCut, {
|
247
|
+
writable: true,
|
248
|
+
value: false
|
249
|
+
});
|
169
250
|
/**
|
170
251
|
* Class that helps generate copyable ranges based on the current selection for different copy mode
|
171
252
|
* types.
|
172
253
|
*
|
173
254
|
* @type {CopyableRangesFactory}
|
174
255
|
*/
|
175
|
-
_classPrivateFieldInitSpec(this, _copyableRangesFactory,
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
256
|
+
_classPrivateFieldInitSpec(this, _copyableRangesFactory, {
|
257
|
+
writable: true,
|
258
|
+
value: new CopyableRangesFactory({
|
259
|
+
countRows: () => this.hot.countRows(),
|
260
|
+
countColumns: () => this.hot.countCols(),
|
261
|
+
rowsLimit: () => this.rowsLimit,
|
262
|
+
columnsLimit: () => this.columnsLimit,
|
263
|
+
countColumnHeaders: () => this.hot.view.getColumnHeadersCount()
|
264
|
+
})
|
265
|
+
});
|
182
266
|
/**
|
183
267
|
* Flag that indicates if the viewport scroll should be prevented after pasting the data.
|
184
268
|
*
|
185
269
|
* @type {boolean}
|
186
270
|
*/
|
187
|
-
_classPrivateFieldInitSpec(this, _preventViewportScrollOnPaste,
|
271
|
+
_classPrivateFieldInitSpec(this, _preventViewportScrollOnPaste, {
|
272
|
+
writable: true,
|
273
|
+
value: false
|
274
|
+
});
|
188
275
|
/**
|
189
276
|
* Ranges of the cells coordinates, which should be used to copy/cut/paste actions.
|
190
277
|
*
|
@@ -230,19 +317,19 @@ export class CopyPaste extends BasePlugin {
|
|
230
317
|
this.pasteMode = (_settings$pasteMode = settings.pasteMode) !== null && _settings$pasteMode !== void 0 ? _settings$pasteMode : this.pasteMode;
|
231
318
|
this.rowsLimit = isNaN(settings.rowsLimit) ? this.rowsLimit : settings.rowsLimit;
|
232
319
|
this.columnsLimit = isNaN(settings.columnsLimit) ? this.columnsLimit : settings.columnsLimit;
|
233
|
-
_classPrivateFieldSet(
|
234
|
-
_classPrivateFieldSet(
|
235
|
-
_classPrivateFieldSet(
|
320
|
+
_classPrivateFieldSet(this, _enableCopyColumnHeaders, !!settings.copyColumnHeaders);
|
321
|
+
_classPrivateFieldSet(this, _enableCopyColumnGroupHeaders, !!settings.copyColumnGroupHeaders);
|
322
|
+
_classPrivateFieldSet(this, _enableCopyColumnHeadersOnly, !!settings.copyColumnHeadersOnly);
|
236
323
|
this.uiContainer = (_settings$uiContainer = settings.uiContainer) !== null && _settings$uiContainer !== void 0 ? _settings$uiContainer : this.uiContainer;
|
237
324
|
}
|
238
|
-
this.addHook('afterContextMenuDefaultOptions', options =>
|
325
|
+
this.addHook('afterContextMenuDefaultOptions', options => _classPrivateMethodGet(this, _onAfterContextMenuDefaultOptions, _onAfterContextMenuDefaultOptions2).call(this, options));
|
239
326
|
this.addHook('afterSelection', function () {
|
240
327
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
241
328
|
args[_key] = arguments[_key];
|
242
329
|
}
|
243
|
-
return
|
330
|
+
return _classPrivateMethodGet(_this, _onAfterSelection, _onAfterSelection2).call(_this, ...args);
|
244
331
|
});
|
245
|
-
this.addHook('afterSelectionEnd', () =>
|
332
|
+
this.addHook('afterSelectionEnd', () => _classPrivateMethodGet(this, _onAfterSelectionEnd, _onAfterSelectionEnd2).call(this));
|
246
333
|
this.eventManager.addEventListener(this.hot.rootDocument, 'copy', function () {
|
247
334
|
return _this.onCopy(...arguments);
|
248
335
|
});
|
@@ -259,15 +346,15 @@ export class CopyPaste extends BasePlugin {
|
|
259
346
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
260
347
|
args[_key2] = arguments[_key2];
|
261
348
|
}
|
262
|
-
return
|
349
|
+
return _classPrivateMethodGet(_this, _onSafariMouseEnter, _onSafariMouseEnter2).call(_this, ...args);
|
263
350
|
});
|
264
351
|
this.eventManager.addEventListener(this.hot.rootDocument.body, 'mouseleave', function () {
|
265
352
|
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
266
353
|
args[_key3] = arguments[_key3];
|
267
354
|
}
|
268
|
-
return
|
355
|
+
return _classPrivateMethodGet(_this, _onSafariMouseLeave, _onSafariMouseLeave2).call(_this, ...args);
|
269
356
|
});
|
270
|
-
this.addHook('afterSelection', () =>
|
357
|
+
this.addHook('afterSelection', () => _classPrivateMethodGet(this, _onSafariAfterSelection, _onSafariAfterSelection2).call(this));
|
271
358
|
}
|
272
359
|
super.enablePlugin();
|
273
360
|
}
|
@@ -309,9 +396,9 @@ export class CopyPaste extends BasePlugin {
|
|
309
396
|
*/
|
310
397
|
copy() {
|
311
398
|
let copyMode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'cells-only';
|
312
|
-
_classPrivateFieldSet(
|
313
|
-
_classPrivateFieldSet(
|
314
|
-
|
399
|
+
_classPrivateFieldSet(this, _copyMode, copyMode);
|
400
|
+
_classPrivateFieldSet(this, _isTriggeredByCopy, true);
|
401
|
+
_classPrivateMethodGet(this, _ensureClipboardEventsGetTriggered, _ensureClipboardEventsGetTriggered2).call(this, 'copy');
|
315
402
|
}
|
316
403
|
|
317
404
|
/**
|
@@ -343,8 +430,8 @@ export class CopyPaste extends BasePlugin {
|
|
343
430
|
* Cuts the contents of the selected cells to the system clipboard.
|
344
431
|
*/
|
345
432
|
cut() {
|
346
|
-
_classPrivateFieldSet(
|
347
|
-
|
433
|
+
_classPrivateFieldSet(this, _isTriggeredByCut, true);
|
434
|
+
_classPrivateMethodGet(this, _ensureClipboardEventsGetTriggered, _ensureClipboardEventsGetTriggered2).call(this, 'cut');
|
348
435
|
}
|
349
436
|
|
350
437
|
/**
|
@@ -422,17 +509,17 @@ export class CopyPaste extends BasePlugin {
|
|
422
509
|
this.copyableRanges = [];
|
423
510
|
return;
|
424
511
|
}
|
425
|
-
_classPrivateFieldGet(
|
512
|
+
_classPrivateFieldGet(this, _copyableRangesFactory).setSelectedRange(selectionRange);
|
426
513
|
const groupedRanges = new Map([['headers', null], ['cells', null]]);
|
427
|
-
if (_classPrivateFieldGet(
|
428
|
-
groupedRanges.set('headers', _classPrivateFieldGet(
|
514
|
+
if (_classPrivateFieldGet(this, _copyMode) === 'column-headers-only') {
|
515
|
+
groupedRanges.set('headers', _classPrivateFieldGet(this, _copyableRangesFactory).getMostBottomColumnHeadersRange());
|
429
516
|
} else {
|
430
|
-
if (_classPrivateFieldGet(
|
431
|
-
groupedRanges.set('headers', _classPrivateFieldGet(
|
432
|
-
} else if (_classPrivateFieldGet(
|
433
|
-
groupedRanges.set('headers', _classPrivateFieldGet(
|
517
|
+
if (_classPrivateFieldGet(this, _copyMode) === 'with-column-headers') {
|
518
|
+
groupedRanges.set('headers', _classPrivateFieldGet(this, _copyableRangesFactory).getMostBottomColumnHeadersRange());
|
519
|
+
} else if (_classPrivateFieldGet(this, _copyMode) === 'with-column-group-headers') {
|
520
|
+
groupedRanges.set('headers', _classPrivateFieldGet(this, _copyableRangesFactory).getAllColumnHeadersRange());
|
434
521
|
}
|
435
|
-
groupedRanges.set('cells', _classPrivateFieldGet(
|
522
|
+
groupedRanges.set('cells', _classPrivateFieldGet(this, _copyableRangesFactory).getCellsRange());
|
436
523
|
}
|
437
524
|
this.copyableRanges = Array.from(groupedRanges.values()).filter(range => range !== null).map(_ref => {
|
438
525
|
let {
|
@@ -533,15 +620,10 @@ export class CopyPaste extends BasePlugin {
|
|
533
620
|
}
|
534
621
|
newRows.push(newRow);
|
535
622
|
}
|
536
|
-
_classPrivateFieldSet(
|
623
|
+
_classPrivateFieldSet(this, _preventViewportScrollOnPaste, true);
|
537
624
|
this.hot.populateFromArray(startRow, startColumn, newRows, undefined, undefined, 'CopyPaste.paste', this.pasteMode);
|
538
625
|
return [startRow, startColumn, lastVisualRow, lastVisualColumn];
|
539
626
|
}
|
540
|
-
|
541
|
-
/**
|
542
|
-
* Add the `contenteditable` attribute to the highlighted cell and select its content.
|
543
|
-
*/
|
544
|
-
|
545
627
|
/**
|
546
628
|
* `copy` event callback on textarea element.
|
547
629
|
*
|
@@ -549,13 +631,13 @@ export class CopyPaste extends BasePlugin {
|
|
549
631
|
* @private
|
550
632
|
*/
|
551
633
|
onCopy(event) {
|
552
|
-
if (!this.hot.isListening() && !_classPrivateFieldGet(
|
634
|
+
if (!this.hot.isListening() && !_classPrivateFieldGet(this, _isTriggeredByCopy) || this.isEditorOpened()) {
|
553
635
|
return;
|
554
636
|
}
|
555
637
|
this.setCopyableText();
|
556
|
-
_classPrivateFieldSet(
|
638
|
+
_classPrivateFieldSet(this, _isTriggeredByCopy, false);
|
557
639
|
const data = this.getRangedData(this.copyableRanges);
|
558
|
-
const copiedHeadersCount =
|
640
|
+
const copiedHeadersCount = _classPrivateMethodGet(this, _countCopiedHeaders, _countCopiedHeaders2).call(this, this.copyableRanges);
|
559
641
|
const allowCopying = !!this.hot.runHooks('beforeCopy', data, this.copyableRanges, copiedHeadersCount);
|
560
642
|
if (allowCopying) {
|
561
643
|
const textPlain = stringify(data);
|
@@ -568,7 +650,7 @@ export class CopyPaste extends BasePlugin {
|
|
568
650
|
}
|
569
651
|
this.hot.runHooks('afterCopy', data, this.copyableRanges, copiedHeadersCount);
|
570
652
|
}
|
571
|
-
_classPrivateFieldSet(
|
653
|
+
_classPrivateFieldSet(this, _copyMode, 'cells-only');
|
572
654
|
event.preventDefault();
|
573
655
|
}
|
574
656
|
|
@@ -579,11 +661,11 @@ export class CopyPaste extends BasePlugin {
|
|
579
661
|
* @private
|
580
662
|
*/
|
581
663
|
onCut(event) {
|
582
|
-
if (!this.hot.isListening() && !_classPrivateFieldGet(
|
664
|
+
if (!this.hot.isListening() && !_classPrivateFieldGet(this, _isTriggeredByCut) || this.isEditorOpened()) {
|
583
665
|
return;
|
584
666
|
}
|
585
667
|
this.setCopyableText();
|
586
|
-
_classPrivateFieldSet(
|
668
|
+
_classPrivateFieldSet(this, _isTriggeredByCut, false);
|
587
669
|
const rangedData = this.getRangedData(this.copyableRanges);
|
588
670
|
const allowCuttingOut = !!this.hot.runHooks('beforeCut', rangedData, this.copyableRanges);
|
589
671
|
if (allowCuttingOut) {
|
@@ -643,13 +725,6 @@ export class CopyPaste extends BasePlugin {
|
|
643
725
|
this.hot.selectCell(startRow, startColumn, Math.min(this.hot.countRows() - 1, endRow), Math.min(this.hot.countCols() - 1, endColumn));
|
644
726
|
this.hot.runHooks('afterPaste', pastedData, this.copyableRanges);
|
645
727
|
}
|
646
|
-
|
647
|
-
/**
|
648
|
-
* Add copy and cut options to the Context Menu.
|
649
|
-
*
|
650
|
-
* @param {object} options Contains default added options of the Context Menu.
|
651
|
-
*/
|
652
|
-
|
653
728
|
/**
|
654
729
|
* Destroys the `CopyPaste` plugin instance.
|
655
730
|
*/
|
@@ -657,7 +732,7 @@ export class CopyPaste extends BasePlugin {
|
|
657
732
|
super.destroy();
|
658
733
|
}
|
659
734
|
}
|
660
|
-
function
|
735
|
+
function _ensureClipboardEventsGetTriggered2(eventName) {
|
661
736
|
// Without this workaround Safari (tested on Safari@16.5.2) does not trigger the 'copy' event.
|
662
737
|
if (isSafari()) {
|
663
738
|
const lastSelectedRange = this.hot.getSelectedRangeLast();
|
@@ -677,15 +752,7 @@ function _ensureClipboardEventsGetTriggered(eventName) {
|
|
677
752
|
this.hot.rootDocument.execCommand(eventName);
|
678
753
|
}
|
679
754
|
}
|
680
|
-
|
681
|
-
* Counts how many column headers will be copied based on the passed range.
|
682
|
-
*
|
683
|
-
* @private
|
684
|
-
* @param {Array<{startRow: number, startCol: number, endRow: number, endCol: number}>} ranges Array of objects with properties `startRow`, `startCol`, `endRow` and `endCol`.
|
685
|
-
* @returns {{ columnHeadersCount: number }} Returns an object with keys that holds
|
686
|
-
* information with the number of copied headers.
|
687
|
-
*/
|
688
|
-
function _countCopiedHeaders(ranges) {
|
755
|
+
function _countCopiedHeaders2(ranges) {
|
689
756
|
const {
|
690
757
|
rows
|
691
758
|
} = normalizeRanges(ranges);
|
@@ -700,7 +767,7 @@ function _countCopiedHeaders(ranges) {
|
|
700
767
|
columnHeadersCount
|
701
768
|
};
|
702
769
|
}
|
703
|
-
function
|
770
|
+
function _addContentEditableToHighlightedCell2() {
|
704
771
|
if (this.hot.isListening()) {
|
705
772
|
const lastSelectedRange = this.hot.getSelectedRangeLast();
|
706
773
|
if (lastSelectedRange) {
|
@@ -715,10 +782,7 @@ function _addContentEditableToHighlightedCell() {
|
|
715
782
|
}
|
716
783
|
}
|
717
784
|
}
|
718
|
-
|
719
|
-
* Remove the `contenteditable` attribute from the highlighted cell and deselect its content.
|
720
|
-
*/
|
721
|
-
function _removeContentEditableFromHighlightedCell() {
|
785
|
+
function _removeContentEditableFromHighlightedCell2() {
|
722
786
|
// If the instance is not listening, the workaround is not needed.
|
723
787
|
if (this.hot.isListening()) {
|
724
788
|
const lastSelectedRange = this.hot.getSelectedRangeLast();
|
@@ -734,40 +798,28 @@ function _removeContentEditableFromHighlightedCell() {
|
|
734
798
|
}
|
735
799
|
}
|
736
800
|
}
|
737
|
-
function
|
801
|
+
function _onAfterContextMenuDefaultOptions2(options) {
|
738
802
|
options.items.push({
|
739
803
|
name: '---------'
|
740
804
|
}, copyItem(this));
|
741
|
-
if (_classPrivateFieldGet(
|
805
|
+
if (_classPrivateFieldGet(this, _enableCopyColumnHeaders)) {
|
742
806
|
options.items.push(copyWithColumnHeadersItem(this));
|
743
807
|
}
|
744
|
-
if (_classPrivateFieldGet(
|
808
|
+
if (_classPrivateFieldGet(this, _enableCopyColumnGroupHeaders)) {
|
745
809
|
options.items.push(copyWithColumnGroupHeadersItem(this));
|
746
810
|
}
|
747
|
-
if (_classPrivateFieldGet(
|
811
|
+
if (_classPrivateFieldGet(this, _enableCopyColumnHeadersOnly)) {
|
748
812
|
options.items.push(copyColumnHeadersOnlyItem(this));
|
749
813
|
}
|
750
814
|
options.items.push(cutItem(this));
|
751
815
|
}
|
752
|
-
|
753
|
-
|
754
|
-
*
|
755
|
-
* @param {number} fromRow Selection start row visual index.
|
756
|
-
* @param {number} fromColumn Selection start column visual index.
|
757
|
-
* @param {number} toRow Selection end row visual index.
|
758
|
-
* @param {number} toColumn Selection end column visual index.
|
759
|
-
* @param {object} preventScrolling Object with `value` property. If `true`, the viewport scroll will be prevented.
|
760
|
-
*/
|
761
|
-
function _onAfterSelection(fromRow, fromColumn, toRow, toColumn, preventScrolling) {
|
762
|
-
if (_classPrivateFieldGet(_preventViewportScrollOnPaste, this)) {
|
816
|
+
function _onAfterSelection2(fromRow, fromColumn, toRow, toColumn, preventScrolling) {
|
817
|
+
if (_classPrivateFieldGet(this, _preventViewportScrollOnPaste)) {
|
763
818
|
preventScrolling.value = true;
|
764
819
|
}
|
765
|
-
_classPrivateFieldSet(
|
820
|
+
_classPrivateFieldSet(this, _preventViewportScrollOnPaste, false);
|
766
821
|
}
|
767
|
-
|
768
|
-
* Force focus on focusableElement after end of the selection.
|
769
|
-
*/
|
770
|
-
function _onAfterSelectionEnd() {
|
822
|
+
function _onAfterSelectionEnd2() {
|
771
823
|
if (this.isEditorOpened()) {
|
772
824
|
return;
|
773
825
|
}
|
@@ -776,23 +828,12 @@ function _onAfterSelectionEnd() {
|
|
776
828
|
}
|
777
829
|
this.setCopyableText();
|
778
830
|
}
|
779
|
-
|
780
|
-
|
781
|
-
* browser's menu.
|
782
|
-
*/
|
783
|
-
function _onSafariMouseEnter() {
|
784
|
-
_assertClassBrand(_CopyPaste_brand, this, _removeContentEditableFromHighlightedCell).call(this);
|
831
|
+
function _onSafariMouseEnter2() {
|
832
|
+
_classPrivateMethodGet(this, _removeContentEditableFromHighlightedCell, _removeContentEditableFromHighlightedCell2).call(this);
|
785
833
|
}
|
786
|
-
|
787
|
-
|
788
|
-
* browser's menu.
|
789
|
-
*/
|
790
|
-
function _onSafariMouseLeave() {
|
791
|
-
_assertClassBrand(_CopyPaste_brand, this, _addContentEditableToHighlightedCell).call(this);
|
834
|
+
function _onSafariMouseLeave2() {
|
835
|
+
_classPrivateMethodGet(this, _addContentEditableToHighlightedCell, _addContentEditableToHighlightedCell2).call(this);
|
792
836
|
}
|
793
|
-
|
794
|
-
|
795
|
-
*/
|
796
|
-
function _onSafariAfterSelection() {
|
797
|
-
_assertClassBrand(_CopyPaste_brand, this, _removeContentEditableFromHighlightedCell).call(this);
|
837
|
+
function _onSafariAfterSelection2() {
|
838
|
+
_classPrivateMethodGet(this, _removeContentEditableFromHighlightedCell, _removeContentEditableFromHighlightedCell2).call(this);
|
798
839
|
}
|