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.

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