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,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(s, a) { return s.get(_assertClassBrand(s, a)); }
10
- function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
11
- 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"); }
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 _CopyPaste_brand = /*#__PURE__*/new WeakSet();
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, _CopyPaste_brand);
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'` - overwrite the currently-selected cells
110
- * - `'shift_down'` - move currently-selected cells down
111
- * - `'shift_right'` - move currently-selected cells to the 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, false);
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, false);
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, false);
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, 'cells-only');
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, false);
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, false);
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, new CopyableRangesFactory({
176
- countRows: () => this.hot.countRows(),
177
- countColumns: () => this.hot.countCols(),
178
- rowsLimit: () => this.rowsLimit,
179
- columnsLimit: () => this.columnsLimit,
180
- countColumnHeaders: () => this.hot.view.getColumnHeadersCount()
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, false);
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(_enableCopyColumnHeaders, this, !!settings.copyColumnHeaders);
234
- _classPrivateFieldSet(_enableCopyColumnGroupHeaders, this, !!settings.copyColumnGroupHeaders);
235
- _classPrivateFieldSet(_enableCopyColumnHeadersOnly, this, !!settings.copyColumnHeadersOnly);
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 => _assertClassBrand(_CopyPaste_brand, this, _onAfterContextMenuDefaultOptions).call(this, 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 _assertClassBrand(_CopyPaste_brand, _this, _onAfterSelection).call(_this, ...args);
330
+ return _classPrivateMethodGet(_this, _onAfterSelection, _onAfterSelection2).call(_this, ...args);
244
331
  });
245
- this.addHook('afterSelectionEnd', () => _assertClassBrand(_CopyPaste_brand, this, _onAfterSelectionEnd).call(this));
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 _assertClassBrand(_CopyPaste_brand, _this, _onSafariMouseEnter).call(_this, ...args);
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 _assertClassBrand(_CopyPaste_brand, _this, _onSafariMouseLeave).call(_this, ...args);
355
+ return _classPrivateMethodGet(_this, _onSafariMouseLeave, _onSafariMouseLeave2).call(_this, ...args);
269
356
  });
270
- this.addHook('afterSelection', () => _assertClassBrand(_CopyPaste_brand, this, _onSafariAfterSelection).call(this));
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(_copyMode, this, copyMode);
313
- _classPrivateFieldSet(_isTriggeredByCopy, this, true);
314
- _assertClassBrand(_CopyPaste_brand, this, _ensureClipboardEventsGetTriggered).call(this, 'copy');
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(_isTriggeredByCut, this, true);
347
- _assertClassBrand(_CopyPaste_brand, this, _ensureClipboardEventsGetTriggered).call(this, 'cut');
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(_copyableRangesFactory, this).setSelectedRange(selectionRange);
512
+ _classPrivateFieldGet(this, _copyableRangesFactory).setSelectedRange(selectionRange);
426
513
  const groupedRanges = new Map([['headers', null], ['cells', null]]);
427
- if (_classPrivateFieldGet(_copyMode, this) === 'column-headers-only') {
428
- groupedRanges.set('headers', _classPrivateFieldGet(_copyableRangesFactory, this).getMostBottomColumnHeadersRange());
514
+ if (_classPrivateFieldGet(this, _copyMode) === 'column-headers-only') {
515
+ groupedRanges.set('headers', _classPrivateFieldGet(this, _copyableRangesFactory).getMostBottomColumnHeadersRange());
429
516
  } else {
430
- if (_classPrivateFieldGet(_copyMode, this) === 'with-column-headers') {
431
- groupedRanges.set('headers', _classPrivateFieldGet(_copyableRangesFactory, this).getMostBottomColumnHeadersRange());
432
- } else if (_classPrivateFieldGet(_copyMode, this) === 'with-column-group-headers') {
433
- groupedRanges.set('headers', _classPrivateFieldGet(_copyableRangesFactory, this).getAllColumnHeadersRange());
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(_copyableRangesFactory, this).getCellsRange());
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(_preventViewportScrollOnPaste, this, true);
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(_isTriggeredByCopy, this) || this.isEditorOpened()) {
634
+ if (!this.hot.isListening() && !_classPrivateFieldGet(this, _isTriggeredByCopy) || this.isEditorOpened()) {
553
635
  return;
554
636
  }
555
637
  this.setCopyableText();
556
- _classPrivateFieldSet(_isTriggeredByCopy, this, false);
638
+ _classPrivateFieldSet(this, _isTriggeredByCopy, false);
557
639
  const data = this.getRangedData(this.copyableRanges);
558
- const copiedHeadersCount = _assertClassBrand(_CopyPaste_brand, this, _countCopiedHeaders).call(this, this.copyableRanges);
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(_copyMode, this, 'cells-only');
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(_isTriggeredByCut, this) || this.isEditorOpened()) {
664
+ if (!this.hot.isListening() && !_classPrivateFieldGet(this, _isTriggeredByCut) || this.isEditorOpened()) {
583
665
  return;
584
666
  }
585
667
  this.setCopyableText();
586
- _classPrivateFieldSet(_isTriggeredByCut, this, false);
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 _ensureClipboardEventsGetTriggered(eventName) {
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 _addContentEditableToHighlightedCell() {
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 _onAfterContextMenuDefaultOptions(options) {
801
+ function _onAfterContextMenuDefaultOptions2(options) {
738
802
  options.items.push({
739
803
  name: '---------'
740
804
  }, copyItem(this));
741
- if (_classPrivateFieldGet(_enableCopyColumnHeaders, this)) {
805
+ if (_classPrivateFieldGet(this, _enableCopyColumnHeaders)) {
742
806
  options.items.push(copyWithColumnHeadersItem(this));
743
807
  }
744
- if (_classPrivateFieldGet(_enableCopyColumnGroupHeaders, this)) {
808
+ if (_classPrivateFieldGet(this, _enableCopyColumnGroupHeaders)) {
745
809
  options.items.push(copyWithColumnGroupHeadersItem(this));
746
810
  }
747
- if (_classPrivateFieldGet(_enableCopyColumnHeadersOnly, this)) {
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
- * Disables the viewport scroll after pasting the data.
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(_preventViewportScrollOnPaste, this, false);
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
- * `document.body` `mouseenter` callback used to work around a Safari's problem with copying/cutting from the
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
- * `document.body` `mouseleave` callback used to work around a Safari's problem with copying/cutting from the
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
- * `afterSelection` hook callback triggered only on Safari.
795
- */
796
- function _onSafariAfterSelection() {
797
- _assertClassBrand(_CopyPaste_brand, this, _removeContentEditableFromHighlightedCell).call(this);
837
+ function _onSafariAfterSelection2() {
838
+ _classPrivateMethodGet(this, _removeContentEditableFromHighlightedCell, _removeContentEditableFromHighlightedCell2).call(this);
798
839
  }