handsontable 12.2.0 → 12.3.0-next-9dc4f5d-20221209

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.
Files changed (659) hide show
  1. package/3rdparty/walkontable/src/border.js +13 -6
  2. package/3rdparty/walkontable/src/border.mjs +12 -5
  3. package/3rdparty/walkontable/src/calculator/viewportColumns.js +10 -1
  4. package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +10 -1
  5. package/3rdparty/walkontable/src/calculator/viewportRows.js +10 -1
  6. package/3rdparty/walkontable/src/calculator/viewportRows.mjs +10 -1
  7. package/3rdparty/walkontable/src/cell/coords.d.ts +1 -1
  8. package/3rdparty/walkontable/src/cell/coords.js +64 -26
  9. package/3rdparty/walkontable/src/cell/coords.mjs +64 -26
  10. package/3rdparty/walkontable/src/cell/range.d.ts +19 -16
  11. package/3rdparty/walkontable/src/cell/range.js +199 -104
  12. package/3rdparty/walkontable/src/cell/range.mjs +201 -106
  13. package/3rdparty/walkontable/src/core/_base.js +17 -3
  14. package/3rdparty/walkontable/src/core/_base.mjs +20 -6
  15. package/3rdparty/walkontable/src/core/clone.js +13 -7
  16. package/3rdparty/walkontable/src/core/clone.mjs +15 -9
  17. package/3rdparty/walkontable/src/core/core.js +8 -2
  18. package/3rdparty/walkontable/src/core/core.mjs +10 -4
  19. package/3rdparty/walkontable/src/event.js +10 -1
  20. package/3rdparty/walkontable/src/event.mjs +10 -1
  21. package/3rdparty/walkontable/src/facade/core.js +16 -2
  22. package/3rdparty/walkontable/src/facade/core.mjs +22 -8
  23. package/3rdparty/walkontable/src/filter/column.js +16 -2
  24. package/3rdparty/walkontable/src/filter/column.mjs +16 -2
  25. package/3rdparty/walkontable/src/filter/row.js +16 -2
  26. package/3rdparty/walkontable/src/filter/row.mjs +16 -2
  27. package/3rdparty/walkontable/src/overlay/_base.js +17 -3
  28. package/3rdparty/walkontable/src/overlay/_base.mjs +24 -10
  29. package/3rdparty/walkontable/src/overlay/bottom.js +13 -7
  30. package/3rdparty/walkontable/src/overlay/bottom.mjs +15 -9
  31. package/3rdparty/walkontable/src/overlay/bottomInlineStartCorner.js +8 -2
  32. package/3rdparty/walkontable/src/overlay/bottomInlineStartCorner.mjs +10 -4
  33. package/3rdparty/walkontable/src/overlay/inlineStart.js +8 -2
  34. package/3rdparty/walkontable/src/overlay/inlineStart.mjs +10 -4
  35. package/3rdparty/walkontable/src/overlay/top.js +13 -7
  36. package/3rdparty/walkontable/src/overlay/top.mjs +15 -9
  37. package/3rdparty/walkontable/src/overlay/topInlineStartCorner.js +13 -7
  38. package/3rdparty/walkontable/src/overlay/topInlineStartCorner.mjs +15 -9
  39. package/3rdparty/walkontable/src/overlays.js +69 -19
  40. package/3rdparty/walkontable/src/overlays.mjs +71 -21
  41. package/3rdparty/walkontable/src/renderer/_base.js +16 -2
  42. package/3rdparty/walkontable/src/renderer/_base.mjs +20 -6
  43. package/3rdparty/walkontable/src/renderer/cells.js +8 -2
  44. package/3rdparty/walkontable/src/renderer/cells.mjs +20 -14
  45. package/3rdparty/walkontable/src/renderer/colGroup.js +8 -2
  46. package/3rdparty/walkontable/src/renderer/colGroup.mjs +19 -13
  47. package/3rdparty/walkontable/src/renderer/columnHeaders.js +8 -2
  48. package/3rdparty/walkontable/src/renderer/columnHeaders.mjs +19 -13
  49. package/3rdparty/walkontable/src/renderer/index.js +16 -2
  50. package/3rdparty/walkontable/src/renderer/index.mjs +20 -6
  51. package/3rdparty/walkontable/src/renderer/rowHeaders.js +8 -2
  52. package/3rdparty/walkontable/src/renderer/rowHeaders.mjs +20 -14
  53. package/3rdparty/walkontable/src/renderer/rows.js +8 -3
  54. package/3rdparty/walkontable/src/renderer/rows.mjs +8 -3
  55. package/3rdparty/walkontable/src/renderer/table.js +16 -2
  56. package/3rdparty/walkontable/src/renderer/table.mjs +16 -2
  57. package/3rdparty/walkontable/src/scroll.js +16 -3
  58. package/3rdparty/walkontable/src/scroll.mjs +18 -5
  59. package/3rdparty/walkontable/src/selection.js +11 -5
  60. package/3rdparty/walkontable/src/selection.mjs +11 -5
  61. package/3rdparty/walkontable/src/settings.js +16 -2
  62. package/3rdparty/walkontable/src/settings.mjs +16 -2
  63. package/3rdparty/walkontable/src/table/bottom.js +8 -2
  64. package/3rdparty/walkontable/src/table/bottom.mjs +13 -7
  65. package/3rdparty/walkontable/src/table/bottomInlineStartCorner.js +8 -2
  66. package/3rdparty/walkontable/src/table/bottomInlineStartCorner.mjs +14 -8
  67. package/3rdparty/walkontable/src/table/inlineStart.js +8 -2
  68. package/3rdparty/walkontable/src/table/inlineStart.mjs +10 -4
  69. package/3rdparty/walkontable/src/table/master.js +8 -2
  70. package/3rdparty/walkontable/src/table/master.mjs +13 -7
  71. package/3rdparty/walkontable/src/table/mixin/calculatedColumns.js +12 -6
  72. package/3rdparty/walkontable/src/table/mixin/calculatedColumns.mjs +12 -6
  73. package/3rdparty/walkontable/src/table/mixin/calculatedRows.js +12 -6
  74. package/3rdparty/walkontable/src/table/mixin/calculatedRows.mjs +12 -6
  75. package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.js +12 -6
  76. package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.mjs +12 -6
  77. package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.js +12 -6
  78. package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.mjs +12 -6
  79. package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.js +12 -6
  80. package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.mjs +12 -6
  81. package/3rdparty/walkontable/src/table/top.js +8 -2
  82. package/3rdparty/walkontable/src/table/top.mjs +13 -7
  83. package/3rdparty/walkontable/src/table/topInlineStartCorner.js +8 -2
  84. package/3rdparty/walkontable/src/table/topInlineStartCorner.mjs +14 -8
  85. package/3rdparty/walkontable/src/table.js +13 -6
  86. package/3rdparty/walkontable/src/table.mjs +21 -14
  87. package/3rdparty/walkontable/src/utils/column.js +12 -2
  88. package/3rdparty/walkontable/src/utils/column.mjs +16 -6
  89. package/3rdparty/walkontable/src/utils/nodesPool.js +16 -2
  90. package/3rdparty/walkontable/src/utils/nodesPool.mjs +16 -2
  91. package/3rdparty/walkontable/src/utils/orderView/sharedView.js +8 -2
  92. package/3rdparty/walkontable/src/utils/orderView/sharedView.mjs +12 -6
  93. package/3rdparty/walkontable/src/utils/orderView/view.js +16 -2
  94. package/3rdparty/walkontable/src/utils/orderView/view.mjs +23 -9
  95. package/3rdparty/walkontable/src/utils/orderView/viewSize.js +16 -2
  96. package/3rdparty/walkontable/src/utils/orderView/viewSize.mjs +16 -2
  97. package/3rdparty/walkontable/src/utils/orderView/viewSizeSet.js +16 -2
  98. package/3rdparty/walkontable/src/utils/orderView/viewSizeSet.mjs +31 -17
  99. package/3rdparty/walkontable/src/utils/row.js +16 -2
  100. package/3rdparty/walkontable/src/utils/row.mjs +16 -2
  101. package/3rdparty/walkontable/src/viewport.js +16 -2
  102. package/3rdparty/walkontable/src/viewport.mjs +18 -4
  103. package/CHANGELOG.md +23 -0
  104. package/base.d.ts +1 -0
  105. package/base.js +7 -2
  106. package/base.mjs +9 -4
  107. package/cellTypes/index.mjs +4 -3
  108. package/core.d.ts +1 -1
  109. package/core.js +234 -122
  110. package/core.mjs +231 -119
  111. package/dataMap/dataMap.js +98 -28
  112. package/dataMap/dataMap.mjs +97 -27
  113. package/dataMap/dataSource.js +14 -2
  114. package/dataMap/dataSource.mjs +17 -5
  115. package/dataMap/metaManager/index.js +15 -2
  116. package/dataMap/metaManager/index.mjs +41 -28
  117. package/dataMap/metaManager/lazyFactoryMap.js +7 -1
  118. package/dataMap/metaManager/lazyFactoryMap.mjs +7 -1
  119. package/dataMap/metaManager/metaLayers/cellMeta.js +13 -8
  120. package/dataMap/metaManager/metaLayers/cellMeta.mjs +12 -7
  121. package/dataMap/metaManager/metaLayers/columnMeta.js +15 -2
  122. package/dataMap/metaManager/metaLayers/columnMeta.mjs +23 -9
  123. package/dataMap/metaManager/metaLayers/globalMeta.js +26 -2
  124. package/dataMap/metaManager/metaLayers/globalMeta.mjs +27 -3
  125. package/dataMap/metaManager/metaLayers/tableMeta.js +17 -3
  126. package/dataMap/metaManager/metaLayers/tableMeta.mjs +41 -27
  127. package/dataMap/metaManager/metaSchema.js +119 -66
  128. package/dataMap/metaManager/metaSchema.mjs +119 -66
  129. package/dataMap/metaManager/mods/dynamicCellMeta.js +12 -2
  130. package/dataMap/metaManager/mods/dynamicCellMeta.mjs +26 -16
  131. package/dataMap/metaManager/mods/extendMetaProperties.js +12 -2
  132. package/dataMap/metaManager/mods/extendMetaProperties.mjs +10 -1
  133. package/dataMap/metaManager/utils.js +44 -14
  134. package/dataMap/metaManager/utils.mjs +51 -20
  135. package/dataMap/replaceData.js +2 -1
  136. package/dataMap/replaceData.mjs +24 -22
  137. package/dist/handsontable.css +9 -9
  138. package/dist/handsontable.full.css +9 -9
  139. package/dist/handsontable.full.js +7350 -10885
  140. package/dist/handsontable.full.min.css +2 -2
  141. package/dist/handsontable.full.min.js +107 -113
  142. package/dist/handsontable.js +5800 -4499
  143. package/dist/handsontable.min.css +2 -2
  144. package/dist/handsontable.min.js +3 -3
  145. package/dist/languages/all.js +111 -65
  146. package/dist/languages/all.min.js +1 -1
  147. package/dist/languages/ar-AR.js +50 -4
  148. package/dist/languages/ar-AR.min.js +1 -1
  149. package/dist/languages/cs-CZ.js +52 -6
  150. package/dist/languages/cs-CZ.min.js +1 -1
  151. package/dist/languages/de-CH.js +52 -6
  152. package/dist/languages/de-CH.min.js +1 -1
  153. package/dist/languages/de-DE.js +53 -7
  154. package/dist/languages/de-DE.min.js +1 -1
  155. package/dist/languages/en-US.js +56 -10
  156. package/dist/languages/en-US.min.js +1 -1
  157. package/dist/languages/es-MX.js +56 -10
  158. package/dist/languages/es-MX.min.js +1 -1
  159. package/dist/languages/fr-FR.js +55 -9
  160. package/dist/languages/fr-FR.min.js +1 -1
  161. package/dist/languages/it-IT.js +55 -9
  162. package/dist/languages/it-IT.min.js +1 -1
  163. package/dist/languages/ja-JP.js +83 -33
  164. package/dist/languages/ja-JP.min.js +1 -1
  165. package/dist/languages/ko-KR.js +84 -33
  166. package/dist/languages/ko-KR.min.js +1 -1
  167. package/dist/languages/lv-LV.js +85 -33
  168. package/dist/languages/lv-LV.min.js +1 -1
  169. package/dist/languages/nb-NO.js +86 -33
  170. package/dist/languages/nb-NO.min.js +1 -1
  171. package/dist/languages/nl-NL.js +87 -33
  172. package/dist/languages/nl-NL.min.js +1 -1
  173. package/dist/languages/pl-PL.js +88 -33
  174. package/dist/languages/pl-PL.min.js +1 -1
  175. package/dist/languages/pt-BR.js +68 -19
  176. package/dist/languages/pt-BR.min.js +1 -1
  177. package/dist/languages/ru-RU.js +68 -19
  178. package/dist/languages/ru-RU.min.js +1 -1
  179. package/dist/languages/sr-SP.js +55 -6
  180. package/dist/languages/sr-SP.min.js +1 -1
  181. package/dist/languages/zh-CN.js +55 -6
  182. package/dist/languages/zh-CN.min.js +1 -1
  183. package/dist/languages/zh-TW.js +55 -6
  184. package/dist/languages/zh-TW.min.js +1 -1
  185. package/editorManager.js +18 -9
  186. package/editorManager.mjs +15 -6
  187. package/editors/autocompleteEditor/autocompleteEditor.js +10 -5
  188. package/editors/autocompleteEditor/autocompleteEditor.mjs +9 -4
  189. package/editors/baseEditor/baseEditor.js +11 -6
  190. package/editors/baseEditor/baseEditor.mjs +10 -5
  191. package/editors/checkboxEditor/checkboxEditor.js +6 -1
  192. package/editors/checkboxEditor/checkboxEditor.mjs +6 -1
  193. package/editors/dateEditor/dateEditor.js +6 -1
  194. package/editors/dateEditor/dateEditor.mjs +6 -1
  195. package/editors/dropdownEditor/dropdownEditor.js +6 -1
  196. package/editors/dropdownEditor/dropdownEditor.mjs +6 -1
  197. package/editors/handsontableEditor/handsontableEditor.js +6 -1
  198. package/editors/handsontableEditor/handsontableEditor.mjs +6 -1
  199. package/editors/index.mjs +4 -3
  200. package/editors/numericEditor/numericEditor.js +6 -1
  201. package/editors/numericEditor/numericEditor.mjs +6 -1
  202. package/editors/passwordEditor/passwordEditor.js +6 -1
  203. package/editors/passwordEditor/passwordEditor.mjs +6 -1
  204. package/editors/registry.js +3 -0
  205. package/editors/registry.mjs +5 -1
  206. package/editors/selectEditor/selectEditor.js +6 -1
  207. package/editors/selectEditor/selectEditor.mjs +6 -1
  208. package/editors/textEditor/caretPositioner.mjs +11 -10
  209. package/editors/textEditor/textEditor.js +7 -2
  210. package/editors/textEditor/textEditor.mjs +7 -2
  211. package/editors/timeEditor/timeEditor.js +6 -1
  212. package/editors/timeEditor/timeEditor.mjs +6 -1
  213. package/eventManager.js +24 -9
  214. package/eventManager.mjs +26 -11
  215. package/helpers/console.mjs +6 -5
  216. package/helpers/data.d.ts +0 -1
  217. package/helpers/data.js +0 -49
  218. package/helpers/data.mjs +1 -49
  219. package/helpers/dom/element.js +23 -0
  220. package/helpers/dom/element.mjs +30 -7
  221. package/helpers/feature.js +9 -36
  222. package/helpers/feature.mjs +3 -30
  223. package/helpers/function.mjs +7 -6
  224. package/helpers/mixed.js +2 -2
  225. package/helpers/mixed.mjs +9 -8
  226. package/helpers/object.js +15 -9
  227. package/helpers/object.mjs +17 -10
  228. package/helpers/string.mjs +7 -6
  229. package/helpers/templateLiteralTag.mjs +8 -7
  230. package/i18n/constants.js +49 -42
  231. package/i18n/constants.mjs +45 -41
  232. package/i18n/languages/ar-AR.js +12 -7
  233. package/i18n/languages/ar-AR.mjs +16 -2
  234. package/i18n/languages/cs-CZ.js +12 -7
  235. package/i18n/languages/cs-CZ.mjs +16 -2
  236. package/i18n/languages/de-CH.js +12 -7
  237. package/i18n/languages/de-CH.mjs +16 -2
  238. package/i18n/languages/de-DE.js +12 -7
  239. package/i18n/languages/de-DE.mjs +16 -2
  240. package/i18n/languages/en-US.js +13 -8
  241. package/i18n/languages/en-US.mjs +17 -3
  242. package/i18n/languages/es-MX.js +13 -8
  243. package/i18n/languages/es-MX.mjs +19 -4
  244. package/i18n/languages/fr-FR.js +12 -7
  245. package/i18n/languages/fr-FR.mjs +16 -2
  246. package/i18n/languages/it-IT.js +12 -7
  247. package/i18n/languages/it-IT.mjs +16 -2
  248. package/i18n/languages/ja-JP.js +12 -7
  249. package/i18n/languages/ja-JP.mjs +16 -2
  250. package/i18n/languages/ko-KR.js +12 -7
  251. package/i18n/languages/ko-KR.mjs +16 -2
  252. package/i18n/languages/lv-LV.js +13 -8
  253. package/i18n/languages/lv-LV.mjs +19 -5
  254. package/i18n/languages/nb-NO.js +12 -7
  255. package/i18n/languages/nb-NO.mjs +16 -2
  256. package/i18n/languages/nl-NL.js +13 -8
  257. package/i18n/languages/nl-NL.mjs +19 -5
  258. package/i18n/languages/pl-PL.js +13 -8
  259. package/i18n/languages/pl-PL.mjs +18 -4
  260. package/i18n/languages/pt-BR.js +12 -7
  261. package/i18n/languages/pt-BR.mjs +16 -2
  262. package/i18n/languages/ru-RU.js +12 -7
  263. package/i18n/languages/ru-RU.mjs +16 -2
  264. package/i18n/languages/sr-SP.js +12 -7
  265. package/i18n/languages/sr-SP.mjs +16 -2
  266. package/i18n/languages/zh-CN.js +12 -7
  267. package/i18n/languages/zh-CN.mjs +16 -2
  268. package/i18n/languages/zh-TW.js +12 -7
  269. package/i18n/languages/zh-TW.mjs +16 -2
  270. package/i18n/phraseFormatters/substituteVariables.mjs +9 -8
  271. package/i18n/utils.mjs +10 -9
  272. package/index.d.ts +9 -0
  273. package/index.js +4 -2
  274. package/index.mjs +2 -1
  275. package/languages/all.js +111 -65
  276. package/languages/ar-AR.js +50 -4
  277. package/languages/ar-AR.mjs +16 -2
  278. package/languages/cs-CZ.js +52 -6
  279. package/languages/cs-CZ.mjs +16 -2
  280. package/languages/de-CH.js +52 -6
  281. package/languages/de-CH.mjs +16 -2
  282. package/languages/de-DE.js +53 -7
  283. package/languages/de-DE.mjs +16 -2
  284. package/languages/en-US.js +56 -10
  285. package/languages/en-US.mjs +17 -3
  286. package/languages/es-MX.js +56 -10
  287. package/languages/es-MX.mjs +19 -4
  288. package/languages/fr-FR.js +55 -9
  289. package/languages/fr-FR.mjs +16 -2
  290. package/languages/index.js +111 -65
  291. package/languages/it-IT.js +55 -9
  292. package/languages/it-IT.mjs +16 -2
  293. package/languages/ja-JP.js +83 -33
  294. package/languages/ja-JP.mjs +16 -2
  295. package/languages/ko-KR.js +84 -33
  296. package/languages/ko-KR.mjs +16 -2
  297. package/languages/lv-LV.js +85 -33
  298. package/languages/lv-LV.mjs +19 -5
  299. package/languages/nb-NO.js +86 -33
  300. package/languages/nb-NO.mjs +16 -2
  301. package/languages/nl-NL.js +87 -33
  302. package/languages/nl-NL.mjs +19 -5
  303. package/languages/pl-PL.js +88 -33
  304. package/languages/pl-PL.mjs +18 -4
  305. package/languages/pt-BR.js +68 -19
  306. package/languages/pt-BR.mjs +16 -2
  307. package/languages/ru-RU.js +68 -19
  308. package/languages/ru-RU.mjs +16 -2
  309. package/languages/sr-SP.js +55 -6
  310. package/languages/sr-SP.mjs +16 -2
  311. package/languages/zh-CN.js +55 -6
  312. package/languages/zh-CN.mjs +16 -2
  313. package/languages/zh-TW.js +55 -6
  314. package/languages/zh-TW.mjs +16 -2
  315. package/mixins/hooksRefRegisterer.js +6 -3
  316. package/mixins/hooksRefRegisterer.mjs +6 -3
  317. package/mixins/localHooks.js +6 -3
  318. package/mixins/localHooks.mjs +6 -3
  319. package/package.json +2 -2
  320. package/pluginHooks.d.ts +7 -2
  321. package/pluginHooks.js +109 -24
  322. package/pluginHooks.mjs +109 -24
  323. package/plugins/autoColumnSize/autoColumnSize.js +7 -2
  324. package/plugins/autoColumnSize/autoColumnSize.mjs +7 -2
  325. package/plugins/autoRowSize/autoRowSize.js +16 -7
  326. package/plugins/autoRowSize/autoRowSize.mjs +16 -7
  327. package/plugins/autofill/autofill.js +7 -2
  328. package/plugins/autofill/autofill.mjs +7 -2
  329. package/plugins/base/base.js +8 -2
  330. package/plugins/base/base.mjs +8 -2
  331. package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +6 -1
  332. package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +6 -1
  333. package/plugins/bindRowsWithHeaders/maps/looseBindsMap.js +6 -1
  334. package/plugins/bindRowsWithHeaders/maps/looseBindsMap.mjs +6 -1
  335. package/plugins/bindRowsWithHeaders/maps/strictBindsMap.js +6 -1
  336. package/plugins/bindRowsWithHeaders/maps/strictBindsMap.mjs +6 -1
  337. package/plugins/collapsibleColumns/collapsibleColumns.js +10 -5
  338. package/plugins/collapsibleColumns/collapsibleColumns.mjs +9 -4
  339. package/plugins/columnSorting/columnSorting.js +8 -4
  340. package/plugins/columnSorting/columnSorting.mjs +8 -4
  341. package/plugins/columnSorting/columnStatesManager.js +12 -6
  342. package/plugins/columnSorting/columnStatesManager.mjs +9 -3
  343. package/plugins/columnSorting/rootComparator.mjs +8 -7
  344. package/plugins/columnSorting/sortFunction/checkbox.mjs +9 -8
  345. package/plugins/columnSorting/sortFunction/date.mjs +9 -8
  346. package/plugins/columnSorting/sortFunction/default.mjs +9 -8
  347. package/plugins/columnSorting/sortFunction/numeric.mjs +9 -8
  348. package/plugins/columnSummary/columnSummary.js +13 -8
  349. package/plugins/columnSummary/columnSummary.mjs +13 -8
  350. package/plugins/columnSummary/endpoints.js +17 -16
  351. package/plugins/columnSummary/endpoints.mjs +22 -21
  352. package/plugins/comments/commentEditor.js +16 -2
  353. package/plugins/comments/commentEditor.mjs +21 -7
  354. package/plugins/comments/comments.js +15 -4
  355. package/plugins/comments/comments.mjs +15 -4
  356. package/plugins/comments/displaySwitch.js +14 -1
  357. package/plugins/comments/displaySwitch.mjs +14 -1
  358. package/plugins/contextMenu/commandExecutor.js +22 -7
  359. package/plugins/contextMenu/commandExecutor.mjs +27 -12
  360. package/plugins/contextMenu/contextMenu.d.ts +4 -3
  361. package/plugins/contextMenu/contextMenu.js +7 -17
  362. package/plugins/contextMenu/contextMenu.mjs +7 -17
  363. package/plugins/contextMenu/cursor.js +16 -2
  364. package/plugins/contextMenu/cursor.mjs +21 -7
  365. package/plugins/contextMenu/itemsFactory.js +23 -8
  366. package/plugins/contextMenu/itemsFactory.mjs +28 -13
  367. package/plugins/contextMenu/menu.js +14 -3
  368. package/plugins/contextMenu/menu.mjs +13 -2
  369. package/plugins/contextMenu/predefinedItems/removeColumn.js +1 -1
  370. package/plugins/contextMenu/predefinedItems/removeColumn.mjs +1 -1
  371. package/plugins/contextMenu/predefinedItems/removeRow.js +1 -1
  372. package/plugins/contextMenu/predefinedItems/removeRow.mjs +1 -1
  373. package/plugins/contextMenu/predefinedItems.js +12 -7
  374. package/plugins/contextMenu/predefinedItems.mjs +14 -1
  375. package/plugins/contextMenu/utils.mjs +5 -4
  376. package/plugins/copyPaste/clipboardData.js +16 -2
  377. package/plugins/copyPaste/clipboardData.mjs +16 -2
  378. package/plugins/copyPaste/contextMenuItem/copy.js +4 -16
  379. package/plugins/copyPaste/contextMenuItem/copy.mjs +8 -7
  380. package/plugins/copyPaste/contextMenuItem/copyColumnHeadersOnly.js +35 -0
  381. package/plugins/copyPaste/contextMenuItem/copyColumnHeadersOnly.mjs +31 -0
  382. package/plugins/copyPaste/contextMenuItem/copyWithColumnGroupHeaders.js +35 -0
  383. package/plugins/copyPaste/contextMenuItem/copyWithColumnGroupHeaders.mjs +31 -0
  384. package/plugins/copyPaste/contextMenuItem/copyWithColumnHeaders.js +35 -0
  385. package/plugins/copyPaste/contextMenuItem/copyWithColumnHeaders.mjs +31 -0
  386. package/plugins/copyPaste/contextMenuItem/cut.mjs +5 -4
  387. package/plugins/copyPaste/copyPaste.d.ts +10 -2
  388. package/plugins/copyPaste/copyPaste.js +303 -202
  389. package/plugins/copyPaste/copyPaste.mjs +303 -202
  390. package/plugins/copyPaste/copyableRanges.js +269 -0
  391. package/plugins/copyPaste/copyableRanges.mjs +264 -0
  392. package/plugins/copyPaste/focusableElement.js +12 -2
  393. package/plugins/copyPaste/focusableElement.mjs +15 -5
  394. package/plugins/copyPaste/pasteEvent.js +16 -2
  395. package/plugins/copyPaste/pasteEvent.mjs +18 -4
  396. package/plugins/customBorders/contextMenuItem/bottom.mjs +5 -4
  397. package/plugins/customBorders/contextMenuItem/left.mjs +5 -4
  398. package/plugins/customBorders/contextMenuItem/noBorders.mjs +5 -4
  399. package/plugins/customBorders/contextMenuItem/right.mjs +5 -4
  400. package/plugins/customBorders/contextMenuItem/top.mjs +5 -4
  401. package/plugins/customBorders/customBorders.js +12 -7
  402. package/plugins/customBorders/customBorders.mjs +11 -6
  403. package/plugins/customBorders/utils.mjs +8 -7
  404. package/plugins/dragToScroll/dragToScroll.js +6 -1
  405. package/plugins/dragToScroll/dragToScroll.mjs +6 -1
  406. package/plugins/dropdownMenu/dropdownMenu.js +6 -1
  407. package/plugins/dropdownMenu/dropdownMenu.mjs +6 -1
  408. package/plugins/exportFile/dataProvider.js +13 -6
  409. package/plugins/exportFile/dataProvider.mjs +12 -5
  410. package/plugins/exportFile/exportFile.js +8 -3
  411. package/plugins/exportFile/exportFile.mjs +6 -1
  412. package/plugins/exportFile/typeFactory.js +14 -1
  413. package/plugins/exportFile/typeFactory.mjs +14 -1
  414. package/plugins/exportFile/types/_base.js +16 -2
  415. package/plugins/exportFile/types/_base.mjs +18 -4
  416. package/plugins/exportFile/types/csv.js +6 -1
  417. package/plugins/exportFile/types/csv.mjs +6 -1
  418. package/plugins/filters/component/_base.js +16 -2
  419. package/plugins/filters/component/_base.mjs +19 -5
  420. package/plugins/filters/component/actionBar.js +10 -4
  421. package/plugins/filters/component/actionBar.mjs +11 -5
  422. package/plugins/filters/component/condition.js +10 -4
  423. package/plugins/filters/component/condition.mjs +11 -5
  424. package/plugins/filters/component/operators.js +8 -3
  425. package/plugins/filters/component/operators.mjs +8 -3
  426. package/plugins/filters/component/value.js +9 -3
  427. package/plugins/filters/component/value.mjs +12 -6
  428. package/plugins/filters/condition/beginsWith.js +1 -1
  429. package/plugins/filters/condition/beginsWith.mjs +1 -1
  430. package/plugins/filters/condition/between.js +1 -1
  431. package/plugins/filters/condition/between.mjs +1 -1
  432. package/plugins/filters/condition/byValue.js +1 -1
  433. package/plugins/filters/condition/byValue.mjs +1 -1
  434. package/plugins/filters/condition/contains.js +1 -1
  435. package/plugins/filters/condition/contains.mjs +1 -1
  436. package/plugins/filters/condition/date/after.js +1 -1
  437. package/plugins/filters/condition/date/after.mjs +1 -1
  438. package/plugins/filters/condition/date/before.js +1 -1
  439. package/plugins/filters/condition/date/before.mjs +1 -1
  440. package/plugins/filters/condition/endsWith.js +1 -1
  441. package/plugins/filters/condition/endsWith.mjs +1 -1
  442. package/plugins/filters/condition/equal.js +1 -1
  443. package/plugins/filters/condition/equal.mjs +1 -1
  444. package/plugins/filters/condition/greaterThan.js +1 -1
  445. package/plugins/filters/condition/greaterThan.mjs +1 -1
  446. package/plugins/filters/condition/greaterThanOrEqual.js +1 -1
  447. package/plugins/filters/condition/greaterThanOrEqual.mjs +1 -1
  448. package/plugins/filters/condition/lessThan.js +1 -1
  449. package/plugins/filters/condition/lessThan.mjs +1 -1
  450. package/plugins/filters/condition/lessThanOrEqual.js +1 -1
  451. package/plugins/filters/condition/lessThanOrEqual.mjs +1 -1
  452. package/plugins/filters/conditionCollection.js +10 -4
  453. package/plugins/filters/conditionCollection.mjs +18 -12
  454. package/plugins/filters/conditionUpdateObserver.js +15 -2
  455. package/plugins/filters/conditionUpdateObserver.mjs +23 -10
  456. package/plugins/filters/constants.js +14 -1
  457. package/plugins/filters/constants.mjs +14 -1
  458. package/plugins/filters/dataFilter.js +16 -2
  459. package/plugins/filters/dataFilter.mjs +19 -5
  460. package/plugins/filters/filters.js +7 -2
  461. package/plugins/filters/filters.mjs +7 -2
  462. package/plugins/filters/ui/_base.js +12 -7
  463. package/plugins/filters/ui/_base.mjs +14 -1
  464. package/plugins/filters/ui/input.js +6 -1
  465. package/plugins/filters/ui/input.mjs +6 -1
  466. package/plugins/filters/ui/link.js +6 -1
  467. package/plugins/filters/ui/link.mjs +6 -1
  468. package/plugins/filters/ui/multipleSelect.js +14 -8
  469. package/plugins/filters/ui/multipleSelect.mjs +6 -1
  470. package/plugins/filters/ui/radioInput.js +6 -1
  471. package/plugins/filters/ui/radioInput.mjs +6 -1
  472. package/plugins/filters/ui/select.js +6 -1
  473. package/plugins/filters/ui/select.mjs +6 -1
  474. package/plugins/formulas/engine/register.mjs +6 -5
  475. package/plugins/formulas/engine/settings.js +12 -1
  476. package/plugins/formulas/engine/settings.mjs +12 -1
  477. package/plugins/formulas/formulas.js +24 -11
  478. package/plugins/formulas/formulas.mjs +24 -11
  479. package/plugins/hiddenColumns/contextMenuItem/hideColumn.js +1 -1
  480. package/plugins/hiddenColumns/contextMenuItem/hideColumn.mjs +6 -5
  481. package/plugins/hiddenColumns/contextMenuItem/showColumn.mjs +5 -4
  482. package/plugins/hiddenColumns/hiddenColumns.js +5 -1
  483. package/plugins/hiddenColumns/hiddenColumns.mjs +5 -1
  484. package/plugins/hiddenRows/contextMenuItem/hideRow.js +1 -1
  485. package/plugins/hiddenRows/contextMenuItem/hideRow.mjs +6 -5
  486. package/plugins/hiddenRows/contextMenuItem/showRow.mjs +5 -4
  487. package/plugins/hiddenRows/hiddenRows.js +5 -1
  488. package/plugins/hiddenRows/hiddenRows.mjs +5 -1
  489. package/plugins/index.mjs +4 -3
  490. package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.js +1 -1
  491. package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.mjs +6 -5
  492. package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.js +1 -1
  493. package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.mjs +6 -5
  494. package/plugins/manualColumnFreeze/manualColumnFreeze.js +6 -1
  495. package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +6 -1
  496. package/plugins/manualColumnMove/manualColumnMove.js +6 -1
  497. package/plugins/manualColumnMove/manualColumnMove.mjs +6 -1
  498. package/plugins/manualColumnMove/ui/_base.js +14 -1
  499. package/plugins/manualColumnMove/ui/_base.mjs +14 -1
  500. package/plugins/manualColumnMove/ui/backlight.js +6 -1
  501. package/plugins/manualColumnMove/ui/backlight.mjs +6 -1
  502. package/plugins/manualColumnMove/ui/guideline.js +6 -1
  503. package/plugins/manualColumnMove/ui/guideline.mjs +6 -1
  504. package/plugins/manualColumnResize/manualColumnResize.js +6 -1
  505. package/plugins/manualColumnResize/manualColumnResize.mjs +6 -1
  506. package/plugins/manualRowMove/manualRowMove.js +6 -1
  507. package/plugins/manualRowMove/manualRowMove.mjs +6 -1
  508. package/plugins/manualRowMove/ui/_base.js +14 -1
  509. package/plugins/manualRowMove/ui/_base.mjs +14 -1
  510. package/plugins/manualRowMove/ui/backlight.js +6 -1
  511. package/plugins/manualRowMove/ui/backlight.mjs +6 -1
  512. package/plugins/manualRowMove/ui/guideline.js +6 -1
  513. package/plugins/manualRowMove/ui/guideline.mjs +6 -1
  514. package/plugins/manualRowResize/manualRowResize.js +6 -1
  515. package/plugins/manualRowResize/manualRowResize.mjs +6 -1
  516. package/plugins/mergeCells/calculations/autofill.js +13 -6
  517. package/plugins/mergeCells/calculations/autofill.mjs +15 -8
  518. package/plugins/mergeCells/calculations/selection.js +16 -2
  519. package/plugins/mergeCells/calculations/selection.mjs +16 -2
  520. package/plugins/mergeCells/cellCoords.js +16 -2
  521. package/plugins/mergeCells/cellCoords.mjs +21 -7
  522. package/plugins/mergeCells/cellsCollection.js +12 -5
  523. package/plugins/mergeCells/cellsCollection.mjs +14 -7
  524. package/plugins/mergeCells/contextMenuItem/toggleMerge.mjs +5 -4
  525. package/plugins/mergeCells/mergeCells.js +7 -2
  526. package/plugins/mergeCells/mergeCells.mjs +7 -2
  527. package/plugins/multiColumnSorting/multiColumnSorting.js +6 -1
  528. package/plugins/multiColumnSorting/multiColumnSorting.mjs +6 -1
  529. package/plugins/multiColumnSorting/rootComparator.mjs +8 -7
  530. package/plugins/multiColumnSorting/utils.mjs +4 -3
  531. package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +6 -1
  532. package/plugins/multipleSelectionHandles/multipleSelectionHandles.mjs +6 -1
  533. package/plugins/nestedHeaders/nestedHeaders.js +124 -16
  534. package/plugins/nestedHeaders/nestedHeaders.mjs +131 -23
  535. package/plugins/nestedHeaders/stateManager/headersTree.js +10 -3
  536. package/plugins/nestedHeaders/stateManager/headersTree.mjs +10 -3
  537. package/plugins/nestedHeaders/stateManager/index.js +34 -14
  538. package/plugins/nestedHeaders/stateManager/index.mjs +67 -47
  539. package/plugins/nestedHeaders/stateManager/matrixGenerator.mjs +33 -31
  540. package/plugins/nestedHeaders/stateManager/nodeModifiers/collapse.mjs +18 -17
  541. package/plugins/nestedHeaders/stateManager/nodeModifiers/expand.mjs +17 -16
  542. package/plugins/nestedHeaders/stateManager/nodeModifiers/hideColumn.mjs +7 -6
  543. package/plugins/nestedHeaders/stateManager/nodeModifiers/index.mjs +2 -1
  544. package/plugins/nestedHeaders/stateManager/nodeModifiers/showColumn.mjs +7 -6
  545. package/plugins/nestedHeaders/stateManager/settingsNormalizer.mjs +41 -39
  546. package/plugins/nestedHeaders/stateManager/sourceSettings.js +11 -3
  547. package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +23 -14
  548. package/plugins/nestedHeaders/utils/ghostTable.js +17 -3
  549. package/plugins/nestedHeaders/utils/ghostTable.mjs +24 -10
  550. package/plugins/nestedRows/data/dataManager.js +10 -4
  551. package/plugins/nestedRows/data/dataManager.mjs +12 -6
  552. package/plugins/nestedRows/nestedRows.js +6 -1
  553. package/plugins/nestedRows/nestedRows.mjs +6 -1
  554. package/plugins/nestedRows/ui/_base.js +16 -2
  555. package/plugins/nestedRows/ui/_base.mjs +16 -2
  556. package/plugins/nestedRows/ui/collapsing.js +8 -2
  557. package/plugins/nestedRows/ui/collapsing.mjs +14 -8
  558. package/plugins/nestedRows/ui/contextMenu.js +7 -2
  559. package/plugins/nestedRows/ui/contextMenu.mjs +6 -1
  560. package/plugins/nestedRows/ui/headers.js +8 -2
  561. package/plugins/nestedRows/ui/headers.mjs +14 -8
  562. package/plugins/nestedRows/utils/rowMoveController.js +11 -4
  563. package/plugins/nestedRows/utils/rowMoveController.mjs +25 -18
  564. package/plugins/persistentState/persistentState.js +6 -1
  565. package/plugins/persistentState/persistentState.mjs +6 -1
  566. package/plugins/persistentState/storage.js +16 -2
  567. package/plugins/persistentState/storage.mjs +19 -5
  568. package/plugins/registry.js +1 -1
  569. package/plugins/registry.mjs +3 -2
  570. package/plugins/search/search.js +6 -1
  571. package/plugins/search/search.mjs +6 -1
  572. package/plugins/touchScroll/touchScroll.js +6 -1
  573. package/plugins/touchScroll/touchScroll.mjs +6 -1
  574. package/plugins/trimRows/trimRows.js +5 -1
  575. package/plugins/trimRows/trimRows.mjs +5 -1
  576. package/plugins/undoRedo/undoRedo.js +50 -32
  577. package/plugins/undoRedo/undoRedo.mjs +50 -32
  578. package/registry.mjs +2 -1
  579. package/renderers/baseRenderer/baseRenderer.mjs +2 -1
  580. package/renderers/index.mjs +4 -3
  581. package/selection/highlight/highlight.js +10 -3
  582. package/selection/highlight/highlight.mjs +24 -17
  583. package/selection/highlight/types/activeHeader.js +13 -2
  584. package/selection/highlight/types/activeHeader.mjs +19 -7
  585. package/selection/highlight/types/area.js +13 -2
  586. package/selection/highlight/types/area.mjs +22 -10
  587. package/selection/highlight/types/cell.js +13 -2
  588. package/selection/highlight/types/cell.mjs +22 -10
  589. package/selection/highlight/types/customSelection.js +13 -2
  590. package/selection/highlight/types/customSelection.mjs +23 -11
  591. package/selection/highlight/types/fill.js +14 -3
  592. package/selection/highlight/types/fill.mjs +22 -10
  593. package/selection/highlight/types/header.js +13 -2
  594. package/selection/highlight/types/header.mjs +24 -12
  595. package/selection/highlight/types/index.js +14 -3
  596. package/selection/highlight/types/index.mjs +14 -3
  597. package/selection/highlight/visualSelection.js +11 -6
  598. package/selection/highlight/visualSelection.mjs +11 -6
  599. package/selection/mouseEventHandler.mjs +14 -13
  600. package/selection/range.js +9 -2
  601. package/selection/range.mjs +9 -2
  602. package/selection/selection.js +13 -6
  603. package/selection/selection.mjs +21 -14
  604. package/selection/transformation.js +16 -2
  605. package/selection/transformation.mjs +24 -10
  606. package/selection/utils.js +1 -1
  607. package/selection/utils.mjs +1 -1
  608. package/shortcuts/context.js +1 -1
  609. package/shortcuts/context.mjs +1 -1
  610. package/shortcuts/keyObserver.js +8 -4
  611. package/shortcuts/keyObserver.mjs +8 -4
  612. package/shortcuts/manager.js +1 -1
  613. package/shortcuts/manager.mjs +1 -1
  614. package/tableView.js +147 -68
  615. package/tableView.mjs +147 -68
  616. package/translations/changesObservable/observable.js +12 -2
  617. package/translations/changesObservable/observable.mjs +19 -9
  618. package/translations/changesObservable/observer.js +12 -2
  619. package/translations/changesObservable/observer.mjs +17 -7
  620. package/translations/indexMapper.js +12 -6
  621. package/translations/indexMapper.mjs +17 -11
  622. package/translations/mapCollections/aggregatedCollection.js +8 -2
  623. package/translations/mapCollections/aggregatedCollection.mjs +11 -5
  624. package/translations/mapCollections/mapCollection.js +10 -1
  625. package/translations/mapCollections/mapCollection.mjs +10 -1
  626. package/translations/maps/hidingMap.js +8 -2
  627. package/translations/maps/hidingMap.mjs +13 -7
  628. package/translations/maps/indexMap.js +16 -2
  629. package/translations/maps/indexMap.mjs +20 -6
  630. package/translations/maps/indexesSequence.js +8 -2
  631. package/translations/maps/indexesSequence.mjs +14 -8
  632. package/translations/maps/linkedPhysicalIndexToValueMap.js +12 -6
  633. package/translations/maps/linkedPhysicalIndexToValueMap.mjs +18 -12
  634. package/translations/maps/physicalIndexToValueMap.js +8 -2
  635. package/translations/maps/physicalIndexToValueMap.mjs +14 -8
  636. package/translations/maps/trimmingMap.js +8 -2
  637. package/translations/maps/trimmingMap.mjs +13 -7
  638. package/translations/maps/utils/actionsOnIndexes.mjs +9 -8
  639. package/translations/maps/utils/indexesSequence.mjs +10 -9
  640. package/translations/maps/utils/physicallyIndexed.mjs +11 -10
  641. package/utils/dataStructures/linkedList.js +21 -7
  642. package/utils/dataStructures/linkedList.mjs +21 -7
  643. package/utils/dataStructures/priorityMap.js +1 -1
  644. package/utils/dataStructures/priorityMap.mjs +1 -1
  645. package/utils/dataStructures/queue.js +16 -2
  646. package/utils/dataStructures/queue.mjs +16 -2
  647. package/utils/dataStructures/stack.js +16 -2
  648. package/utils/dataStructures/stack.mjs +16 -2
  649. package/utils/dataStructures/tree.js +8 -2
  650. package/utils/dataStructures/tree.mjs +8 -2
  651. package/utils/dataStructures/uniqueMap.js +1 -1
  652. package/utils/dataStructures/uniqueMap.mjs +1 -1
  653. package/utils/ghostTable.js +12 -5
  654. package/utils/ghostTable.mjs +12 -5
  655. package/utils/interval.js +23 -8
  656. package/utils/interval.mjs +18 -4
  657. package/utils/samplesGenerator.js +13 -3
  658. package/utils/samplesGenerator.mjs +15 -5
  659. package/validators/index.mjs +4 -3
@@ -1,3 +1,4 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
1
2
  import "core-js/modules/es.array.includes.js";
2
3
  import "core-js/modules/es.string.includes.js";
3
4
  import "core-js/modules/es.array.index-of.js";
@@ -6,23 +7,45 @@ import "core-js/modules/es.object.to-string.js";
6
7
  import "core-js/modules/es.string.iterator.js";
7
8
  import "core-js/modules/es.weak-map.js";
8
9
  import "core-js/modules/web.dom-collections.iterator.js";
10
+ import "core-js/modules/es.symbol.to-primitive.js";
11
+ import "core-js/modules/es.date.to-primitive.js";
12
+ import "core-js/modules/es.symbol.js";
13
+ import "core-js/modules/es.symbol.description.js";
14
+ import "core-js/modules/es.number.constructor.js";
15
+ import "core-js/modules/es.symbol.iterator.js";
9
16
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
17
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
11
18
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
12
19
  function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
13
20
  function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
14
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
22
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
23
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
15
24
  function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
16
25
  function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
17
26
  function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
18
27
  function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
19
28
  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; } }
20
- import CellCoords from "./../cell/coords.mjs"; /**
21
- * CellRange holds cell coordinates as {@link CellCoords} instances. This object represent unit of the selection layer which
22
- * can contains multiple contiguous cells or single cell.
23
- *
24
- * @util
25
- */
29
+ import CellCoords from "./../cell/coords.mjs";
30
+ /* eslint-disable jsdoc/require-description-complete-sentence */
31
+ /**
32
+ * @description
33
+ *
34
+ * The `CellRange` class holds a set of cell coordinates ([`CellCoords`](@/api/cellCoords.md) instances)
35
+ * that form a [selection range](@/guides/cell-features/selection.md#select-ranges).
36
+ *
37
+ * A single `CellRange` instance represents a single unit of selection
38
+ * that contains either a single cell or multiple adjacent cells.
39
+ *
40
+ * To import the `CellRange` class:
41
+ *
42
+ * ```js
43
+ * import Handsontable, { CellRange } from '/handsontable';
44
+ *
45
+ * // or, using modules
46
+ * import Handsontable, { CellRange } from '/handsontable/base';
47
+ * ```
48
+ */
26
49
  var _isRtl = /*#__PURE__*/new WeakMap();
27
50
  var CellRange = /*#__PURE__*/function () {
28
51
  /**
@@ -30,6 +53,7 @@ var CellRange = /*#__PURE__*/function () {
30
53
  * when you press Enter. The highlight cannot point to headers (negative values) so its
31
54
  * coordinates object is normalized while assigning.
32
55
  *
56
+ * @private
33
57
  * @type {CellCoords}
34
58
  */
35
59
 
@@ -37,12 +61,14 @@ var CellRange = /*#__PURE__*/function () {
37
61
  * Usually the same as highlight, but in Excel there is distinction - one can change
38
62
  * highlight within a selection.
39
63
  *
64
+ * @private
40
65
  * @type {CellCoords}
41
66
  */
42
67
 
43
68
  /**
44
69
  * End selection.
45
70
  *
71
+ * @private
46
72
  * @type {CellCoords}
47
73
  */
48
74
 
@@ -69,7 +95,7 @@ var CellRange = /*#__PURE__*/function () {
69
95
  }
70
96
 
71
97
  /**
72
- * Set the new coordinates for highlighting selection.
98
+ * Highlights cell selection at the `coords` coordinates.
73
99
  *
74
100
  * @param {CellCoords} coords Coordinates to use.
75
101
  * @returns {CellRange}
@@ -82,7 +108,7 @@ var CellRange = /*#__PURE__*/function () {
82
108
  }
83
109
 
84
110
  /**
85
- * Set the new coordinates where selection starts from.
111
+ * Sets the `coords` coordinates as the start of your range.
86
112
  *
87
113
  * @param {CellCoords} coords Coordinates to use.
88
114
  * @returns {CellRange}
@@ -95,7 +121,7 @@ var CellRange = /*#__PURE__*/function () {
95
121
  }
96
122
 
97
123
  /**
98
- * Set new coordinates where selection ends from.
124
+ * Sets the `coords` coordinates as the end of your range.
99
125
  *
100
126
  * @param {CellCoords} coords Coordinates to use.
101
127
  * @returns {CellRange}
@@ -108,9 +134,12 @@ var CellRange = /*#__PURE__*/function () {
108
134
  }
109
135
 
110
136
  /**
111
- * Checks if given coordinates are valid in context of a given Walkontable instance.
137
+ * Checks if the coordinates in your `CellRange` instance are valid
138
+ * in the context of a given Walkontable instance.
112
139
  *
113
- * @param {Walkontable} wot The Walkontable instance.
140
+ * See the [`isValid()`](@/api/cellCoords.md#isvalid) method of the [`CellCoords`](@/api/cellCoords.md) class.
141
+ *
142
+ * @param {Walkontable} wot A Walkontable instance.
114
143
  * @returns {boolean}
115
144
  */
116
145
  }, {
@@ -120,7 +149,7 @@ var CellRange = /*#__PURE__*/function () {
120
149
  }
121
150
 
122
151
  /**
123
- * Checks if this cell range is restricted to one cell.
152
+ * Checks if your range is just a single cell.
124
153
  *
125
154
  * @returns {boolean}
126
155
  */
@@ -131,7 +160,7 @@ var CellRange = /*#__PURE__*/function () {
131
160
  }
132
161
 
133
162
  /**
134
- * Returns selected range height (in number of rows including rows' headers).
163
+ * Returns the height of your range (as a number of rows, including row headers).
135
164
  *
136
165
  * @returns {number}
137
166
  */
@@ -142,7 +171,7 @@ var CellRange = /*#__PURE__*/function () {
142
171
  }
143
172
 
144
173
  /**
145
- * Returns selected range width (in number of columns including columns' headers).
174
+ * Returns the width of your range (as a number of columns, including column headers).
146
175
  *
147
176
  * @returns {number}
148
177
  */
@@ -153,33 +182,41 @@ var CellRange = /*#__PURE__*/function () {
153
182
  }
154
183
 
155
184
  /**
156
- * Returns selected range height (in number of rows excluding rows' headers).
185
+ * Returns the height of your range (as a number of rows, excluding row headers).
157
186
  *
158
187
  * @returns {number}
159
188
  */
160
189
  }, {
161
190
  key: "getHeight",
162
191
  value: function getHeight() {
192
+ // if the selection contains only row headers, return 0
193
+ if (this.from.row < 0 && this.to.row < 0) {
194
+ return 0;
195
+ }
163
196
  var fromRow = Math.max(this.from.row, 0);
164
197
  var toRow = Math.max(this.to.row, 0);
165
198
  return Math.max(fromRow, toRow) - Math.min(fromRow, toRow) + 1;
166
199
  }
167
200
 
168
201
  /**
169
- * Returns selected range width (in number of columns excluding columns' headers).
202
+ * Returns the width of your range (as a number of columns, excluding column headers).
170
203
  *
171
204
  * @returns {number}
172
205
  */
173
206
  }, {
174
207
  key: "getWidth",
175
208
  value: function getWidth() {
209
+ // if the selection contains only column headers, return 0
210
+ if (this.from.col < 0 && this.to.col < 0) {
211
+ return 0;
212
+ }
176
213
  var fromCol = Math.max(this.from.col, 0);
177
214
  var toCol = Math.max(this.to.col, 0);
178
215
  return Math.max(fromCol, toCol) - Math.min(fromCol, toCol) + 1;
179
216
  }
180
217
 
181
218
  /**
182
- * Returns the number of cells within the range (excluding the column and row headers, if selected).
219
+ * Returns the number of cells within your range (excluding column and row headers).
183
220
  *
184
221
  * @returns {number}
185
222
  */
@@ -190,9 +227,10 @@ var CellRange = /*#__PURE__*/function () {
190
227
  }
191
228
 
192
229
  /**
193
- * Checks if given cell coordinates are within `from` and `to` cell coordinates of this range.
230
+ * Checks if another set of coordinates (`cellCoords`)
231
+ * is within the `from` and `to` coordinates of your range.
194
232
  *
195
- * @param {CellCoords} cellCoords The cell coordinates to check.
233
+ * @param {CellCoords} cellCoords Coordinates to check.
196
234
  * @returns {boolean}
197
235
  */
198
236
  }, {
@@ -206,9 +244,9 @@ var CellRange = /*#__PURE__*/function () {
206
244
  }
207
245
 
208
246
  /**
209
- * Checks if given range is within of this range.
247
+ * Checks if another range (`cellRange`) is within your range.
210
248
  *
211
- * @param {CellRange} cellRange The cells range to check.
249
+ * @param {CellRange} cellRange A range to check.
212
250
  * @returns {boolean}
213
251
  */
214
252
  }, {
@@ -218,9 +256,9 @@ var CellRange = /*#__PURE__*/function () {
218
256
  }
219
257
 
220
258
  /**
221
- * Checks if given range is equal to this range.
259
+ * Checks if another range (`cellRange`) is equal to your range.
222
260
  *
223
- * @param {CellRange} cellRange The cells range to check.
261
+ * @param {CellRange} cellRange A range to check.
224
262
  * @returns {boolean}
225
263
  */
226
264
  }, {
@@ -230,10 +268,11 @@ var CellRange = /*#__PURE__*/function () {
230
268
  }
231
269
 
232
270
  /**
233
- * Checks if tested range overlaps with the range. Range A is considered to to be overlapping with range B
234
- * if intersection of A and B or B and A is not empty.
271
+ * Checks if another range (`cellRange`) overlaps your range.
272
+ *
273
+ * Range A overlaps range B if the intersection of A and B (or B and A) is not empty.
235
274
  *
236
- * @param {CellRange} cellRange The cells range to check.
275
+ * @param {CellRange} cellRange A range to check.
237
276
  * @returns {boolean}
238
277
  */
239
278
  }, {
@@ -243,9 +282,9 @@ var CellRange = /*#__PURE__*/function () {
243
282
  }
244
283
 
245
284
  /**
246
- * Checks if tested coordinates are positioned in south-east from this cell range.
285
+ * Checks if another range (`cellRange`) is south-east of your range.
247
286
  *
248
- * @param {CellRange} cellRange The cells range to check.
287
+ * @param {CellRange} cellRange A range to check.
249
288
  * @returns {boolean}
250
289
  */
251
290
  }, {
@@ -255,9 +294,9 @@ var CellRange = /*#__PURE__*/function () {
255
294
  }
256
295
 
257
296
  /**
258
- * Checks if tested coordinates are positioned in north-west from this cell range.
297
+ * Checks if another range (`cellRange`) is north-west of your range.
259
298
  *
260
- * @param {CellRange} cellRange The cells range to check.
299
+ * @param {CellRange} cellRange A range to check.
261
300
  * @returns {boolean}
262
301
  */
263
302
  }, {
@@ -267,10 +306,12 @@ var CellRange = /*#__PURE__*/function () {
267
306
  }
268
307
 
269
308
  /**
270
- * Returns `true` if the provided range is overlapping the current range horizontally (e.g. The current range's last
271
- * column is 5 and the provided range's first column is 3).
309
+ * Checks if another range (`cellRange`) overlaps your range horizontally.
272
310
  *
273
- * @param {CellRange} cellRange The cells range to check.
311
+ * For example: returns `true` if the last column of your range is `5`
312
+ * and the first column of the `cellRange` range is `3`.
313
+ *
314
+ * @param {CellRange} cellRange A range to check.
274
315
  * @returns {boolean}
275
316
  */
276
317
  }, {
@@ -280,10 +321,12 @@ var CellRange = /*#__PURE__*/function () {
280
321
  }
281
322
 
282
323
  /**
283
- * Returns `true` if the provided range is overlapping the current range vertically (e.g. The current range's last
284
- * row is 5 and the provided range's first row is 3).
324
+ * Checks if another range (`cellRange`) overlaps your range vertically.
325
+ *
326
+ * For example: returns `true` if the last row of your range is `5`
327
+ * and the first row of the `cellRange` range is `3`.
285
328
  *
286
- * @param {CellRange} cellRange The cells range to check.
329
+ * @param {CellRange} cellRange A range to check.
287
330
  * @returns {boolean}
288
331
  */
289
332
  }, {
@@ -293,9 +336,11 @@ var CellRange = /*#__PURE__*/function () {
293
336
  }
294
337
 
295
338
  /**
296
- * Adds a cell to a range (only if exceeds corners of the range). Returns information if range was expanded.
339
+ * Adds a cell to your range, at `cellCoords` coordinates.
340
+ *
341
+ * The `cellCoords` coordinates must exceed a corner of your range.
297
342
  *
298
- * @param {CellCoords} cellCoords The cell coordinates.
343
+ * @param {CellCoords} cellCoords A new cell's coordinates.
299
344
  * @returns {boolean}
300
345
  */
301
346
  }, {
@@ -312,9 +357,9 @@ var CellRange = /*#__PURE__*/function () {
312
357
  }
313
358
 
314
359
  /**
315
- * Expand the current object by the range passed in the first argument.
360
+ * Expand your range with another range (`expandingRange`).
316
361
  *
317
- * @param {CellRange} expandingRange Object extending the range.
362
+ * @param {CellRange} expandingRange A new range.
318
363
  * @returns {boolean}
319
364
  */
320
365
  }, {
@@ -404,7 +449,7 @@ var CellRange = /*#__PURE__*/function () {
404
449
  }
405
450
 
406
451
  /**
407
- * Gets the vertical direction of the range.
452
+ * Gets the vertical direction of the selection.
408
453
  *
409
454
  * @returns {string} Returns one of the values: `N-S` (north->south), `S-N` (south->north).
410
455
  */
@@ -415,7 +460,7 @@ var CellRange = /*#__PURE__*/function () {
415
460
  }
416
461
 
417
462
  /**
418
- * Gets the horizontal direction of the range.
463
+ * Gets the horizontal direction of the selection.
419
464
  *
420
465
  * @returns {string} Returns one of the values: `W-E` (west->east), `E-W` (east->west).
421
466
  */
@@ -426,7 +471,7 @@ var CellRange = /*#__PURE__*/function () {
426
471
  }
427
472
 
428
473
  /**
429
- * Flip the direction vertically. (e.g. `NW-SE` changes to `SW-NE`).
474
+ * Flips the direction of your range vertically (e.g., `NW-SE` changes to `SW-NE`).
430
475
  */
431
476
  }, {
432
477
  key: "flipDirectionVertically",
@@ -451,7 +496,7 @@ var CellRange = /*#__PURE__*/function () {
451
496
  }
452
497
 
453
498
  /**
454
- * Flip the direction horizontally. (e.g. `NW-SE` changes to `NE-SW`).
499
+ * Flips the direction of your range horizontally (e.g., `NW-SE` changes to `NE-SW`).
455
500
  */
456
501
  }, {
457
502
  key: "flipDirectionHorizontally",
@@ -476,8 +521,10 @@ var CellRange = /*#__PURE__*/function () {
476
521
  }
477
522
 
478
523
  /**
479
- * Gets the top left (in LTR) or top right (in RTL) corner coordinates of this range. If the corner contains
480
- * header coordinates (negative values), the corner coordinates will be normalized to 0.
524
+ * Gets the top-left (in LTR) or top-right (in RTL) corner coordinates of your range.
525
+ *
526
+ * If the corner contains header coordinates (negative values),
527
+ * the corner coordinates are normalized to `0`.
481
528
  *
482
529
  * @returns {CellCoords}
483
530
  */
@@ -488,8 +535,11 @@ var CellRange = /*#__PURE__*/function () {
488
535
  }
489
536
 
490
537
  /**
491
- * Gets the top left corner coordinates of this range, no matter if the code runs in LTR or RTL document mode.
492
- * If the corner contains header coordinates (negative values), the corner coordinates will be normalized to 0.
538
+ * Gets the top-left corner coordinates of your range,
539
+ * both in the LTR and RTL layout direction.
540
+ *
541
+ * If the corner contains header coordinates (negative values),
542
+ * the corner coordinates are normalized to `0`.
493
543
  *
494
544
  * @returns {CellCoords}
495
545
  */
@@ -500,8 +550,10 @@ var CellRange = /*#__PURE__*/function () {
500
550
  }
501
551
 
502
552
  /**
503
- * Gets the bottom right (in LTR) or bottom left (in RTL) corner coordinates of this range. If the corner contains
504
- * header coordinates (negative values), the corner coordinates will be normalized to 0.
553
+ * Gets the bottom right (in LTR) or bottom left (in RTL) corner coordinates of your range.
554
+ *
555
+ * If the corner contains header coordinates (negative values),
556
+ * the corner coordinates are normalized to `0`.
505
557
  *
506
558
  * @returns {CellCoords}
507
559
  */
@@ -512,8 +564,11 @@ var CellRange = /*#__PURE__*/function () {
512
564
  }
513
565
 
514
566
  /**
515
- * Gets the bottom right corner coordinates of this range, no matter if the code runs in LTR or RTL document mode.
516
- * If the corner contains header coordinates (negative values), the corner coordinates will be normalized to 0.
567
+ * Gets the bottom right corner coordinates of your range,
568
+ * both in the LTR and RTL layout direction.
569
+ *
570
+ * If the corner contains header coordinates (negative values),
571
+ * the corner coordinates are normalized to `0`.
517
572
  *
518
573
  * @returns {CellCoords}
519
574
  */
@@ -524,8 +579,10 @@ var CellRange = /*#__PURE__*/function () {
524
579
  }
525
580
 
526
581
  /**
527
- * Gets the top right (in LTR) or top left (in RTL) corner coordinates of this range. If the corner contains
528
- * header coordinates (negative values), the corner coordinates will be normalized to 0.
582
+ * Gets the top right (in LTR) or top left (in RTL) corner coordinates of your range.
583
+ *
584
+ * If the corner contains header coordinates (negative values),
585
+ * the corner coordinates are normalized to `0`.
529
586
  *
530
587
  * @returns {CellCoords}
531
588
  */
@@ -536,8 +593,11 @@ var CellRange = /*#__PURE__*/function () {
536
593
  }
537
594
 
538
595
  /**
539
- * Gets the top right corner coordinates of this range, no matter if the code runs in LTR or RTL document mode.
540
- * If the corner contains header coordinates (negative values), the corner coordinates will be normalized to 0.
596
+ * Gets the top right corner coordinates of your range,
597
+ * both in the LTR and RTL layout direction.
598
+ *
599
+ * If the corner contains header coordinates (negative values),
600
+ * the corner coordinates are normalized to `0`.
541
601
  *
542
602
  * @returns {CellCoords}
543
603
  */
@@ -548,8 +608,10 @@ var CellRange = /*#__PURE__*/function () {
548
608
  }
549
609
 
550
610
  /**
551
- * Gets the bottom left (in LTR) or bottom right (in RTL) corner coordinates of this range. If the corner
552
- * contains header coordinates (negative values), the corner coordinates will be normalized to 0.
611
+ * Gets the bottom left (in LTR) or bottom right (in RTL) corner coordinates of your range.
612
+ *
613
+ * If the corner contains header coordinates (negative values),
614
+ * the corner coordinates are normalized to `0`.
553
615
  *
554
616
  * @returns {CellCoords}
555
617
  */
@@ -560,8 +622,11 @@ var CellRange = /*#__PURE__*/function () {
560
622
  }
561
623
 
562
624
  /**
563
- * Gets the bottom left corner coordinates of this range, no matter if the code runs in LTR or RTL document mode.
564
- * If the corner contains header coordinates (negative values), the corner coordinates will be normalized to 0.
625
+ * Gets the bottom left corner coordinates of your range,
626
+ * both in the LTR and RTL layout direction.
627
+ *
628
+ * If the corner contains header coordinates (negative values),
629
+ * the corner coordinates are normalized to `0`.
565
630
  *
566
631
  * @returns {CellCoords}
567
632
  */
@@ -572,8 +637,10 @@ var CellRange = /*#__PURE__*/function () {
572
637
  }
573
638
 
574
639
  /**
575
- * Gets the top left (in LTR) or top right (in RTL) corner coordinates of this range. If the corner
576
- * contains header coordinates (negative values), then the top and start coordinates will be pointed to that header.
640
+ * Gets the top left (in LTR) or top right (in RTL) corner coordinates of your range.
641
+ *
642
+ * If the corner contains header coordinates (negative values),
643
+ * the top and start coordinates are pointed to that header.
577
644
  *
578
645
  * @returns {CellCoords}
579
646
  */
@@ -584,9 +651,11 @@ var CellRange = /*#__PURE__*/function () {
584
651
  }
585
652
 
586
653
  /**
587
- * Gets the top left corner coordinates of this range, no matter if the code runs in LTR or RTL document mode.
588
- * If the corner contains header coordinates (negative values), then the top and left coordinates will be
589
- * pointed to that header.
654
+ * Gets the top left corner coordinates of your range,
655
+ * both in the LTR and RTL layout direction.
656
+ *
657
+ * If the corner contains header coordinates (negative values),
658
+ * the top and left coordinates are pointed to that header.
590
659
  *
591
660
  * @returns {CellCoords}
592
661
  */
@@ -597,8 +666,10 @@ var CellRange = /*#__PURE__*/function () {
597
666
  }
598
667
 
599
668
  /**
600
- * Gets the bottom right (in LTR) or bottom left (in RTL) corner coordinates of this range. If the corner
601
- * contains header coordinates (negative values), then the top and start coordinates will be pointed to that header.
669
+ * Gets the bottom right (in LTR) or bottom left (in RTL) corner coordinates of your range.
670
+ *
671
+ * If the corner contains header coordinates (negative values),
672
+ * the top and start coordinates are pointed to that header.
602
673
  *
603
674
  * @returns {CellCoords}
604
675
  */
@@ -609,9 +680,11 @@ var CellRange = /*#__PURE__*/function () {
609
680
  }
610
681
 
611
682
  /**
612
- * Gets the bottom right corner coordinates of this range, no matter if the code runs in LTR or RTL document mode.
613
- * If the corner contains header coordinates (negative values), then the top and left coordinates will be
614
- * pointed to that header.
683
+ * Gets the bottom right corner coordinates of your range,
684
+ * both in the LTR and RTL layout direction.
685
+ *
686
+ * If the corner contains header coordinates (negative values),
687
+ * the top and left coordinates are pointed to that header.
615
688
  *
616
689
  * @returns {CellCoords}
617
690
  */
@@ -622,8 +695,10 @@ var CellRange = /*#__PURE__*/function () {
622
695
  }
623
696
 
624
697
  /**
625
- * Gets the top right (in LTR) or top left (in RTL) corner coordinates of this range. If the corner
626
- * contains header coordinates (negative values), then the top and start coordinates will be pointed to that header.
698
+ * Gets the top right (in LTR) or top left (in RTL) corner coordinates of your range.
699
+ *
700
+ * If the corner contains header coordinates (negative values),
701
+ * the top and start coordinates are pointed to that header.
627
702
  *
628
703
  * @returns {CellCoords}
629
704
  */
@@ -634,9 +709,11 @@ var CellRange = /*#__PURE__*/function () {
634
709
  }
635
710
 
636
711
  /**
637
- * Gets the top right corner coordinates of this range, no matter if the code runs in LTR or RTL document mode.
638
- * If the corner contains header coordinates (negative values), then the top and left coordinates will be
639
- * pointed to that header.
712
+ * Gets the top right corner coordinates of your range,
713
+ * both in the LTR and RTL layout direction.
714
+ *
715
+ * If the corner contains header coordinates (negative values),
716
+ * the top and left coordinates are pointed to that header.
640
717
  *
641
718
  * @returns {CellCoords}
642
719
  */
@@ -647,8 +724,10 @@ var CellRange = /*#__PURE__*/function () {
647
724
  }
648
725
 
649
726
  /**
650
- * Gets the bottom left (in LTR) or bottom right (in RTL) corner coordinates of this range. If the corner
651
- * contains header coordinates (negative values), then the top and start coordinates will be pointed to that header.
727
+ * Gets the bottom left (in LTR) or bottom right (in RTL) corner coordinates of your range.
728
+ *
729
+ * If the corner contains header coordinates (negative values),
730
+ * the top and start coordinates are pointed to that header.
652
731
  *
653
732
  * @returns {CellCoords}
654
733
  */
@@ -659,9 +738,11 @@ var CellRange = /*#__PURE__*/function () {
659
738
  }
660
739
 
661
740
  /**
662
- * Gets the bottom left corner coordinates of this range, no matter if the code runs in LTR or RTL document mode.
663
- * If the corner contains header coordinates (negative values), then the top and left coordinates will be
664
- * pointed to that header.
741
+ * Gets the bottom left corner coordinates of your range,
742
+ * both in the LTR and RTL layout direction.
743
+ *
744
+ * If the corner contains header coordinates (negative values),
745
+ * the top and left coordinates are pointed to that header.
665
746
  *
666
747
  * @returns {CellCoords}
667
748
  */
@@ -672,10 +753,10 @@ var CellRange = /*#__PURE__*/function () {
672
753
  }
673
754
 
674
755
  /**
675
- * Checks if coordinates match to one of the 4th corners of this range.
756
+ * Checks if a set of coordinates (`coords`) matches one of the 4 corners of your range.
676
757
  *
677
- * @param {CellCoords} coords Cell coordinates to check.
678
- * @param {CellRange} [expandedRange] The cells range to compare with.
758
+ * @param {CellCoords} coords Coordinates to check.
759
+ * @param {CellRange} [expandedRange] A range to compare with.
679
760
  * @returns {boolean}
680
761
  */
681
762
  }, {
@@ -688,11 +769,13 @@ var CellRange = /*#__PURE__*/function () {
688
769
  }
689
770
 
690
771
  /**
691
- * Gets coordinates of the corner which is opposite to the matched. When the passed coordinates matched to the
692
- * bottom-right corner of this range then the coordinates for top-left will be returned.
772
+ * Gets the coordinates of a range corner opposite to the provided `coords`.
693
773
  *
694
- * @param {CellCoords} coords Cell coordinates to check.
695
- * @param {CellRange} [expandedRange] The cells range to compare with.
774
+ * For example: if the `coords` coordinates match the bottom-right corner of your range,
775
+ * the coordinates of the top-left corner of your range are returned.
776
+ *
777
+ * @param {CellCoords} coords Coordinates to check.
778
+ * @param {CellRange} [expandedRange] A range to compare with.
696
779
  * @returns {CellCoords}
697
780
  */
698
781
  }, {
@@ -731,8 +814,11 @@ var CellRange = /*#__PURE__*/function () {
731
814
  }
732
815
 
733
816
  /**
734
- * @param {CellRange} range The cells range to compare with.
735
- * @returns {Array}
817
+ * Indicates which borders (top, right, bottom, left) are shared between
818
+ * your `CellRange`instance and another `range` that's within your range.
819
+ *
820
+ * @param {CellRange} range A range to compare with.
821
+ * @returns {Array<'top' | 'right' | 'bottom' | 'left'>}
736
822
  */
737
823
  }, {
738
824
  key: "getBordersSharedWith",
@@ -769,9 +855,9 @@ var CellRange = /*#__PURE__*/function () {
769
855
  }
770
856
 
771
857
  /**
772
- * Get inner selected cell coords defined by this range.
858
+ * Gets the coordinates of the inner cells of your range.
773
859
  *
774
- * @returns {Array}
860
+ * @returns {CellCoords[]}
775
861
  */
776
862
  }, {
777
863
  key: "getInner",
@@ -790,9 +876,9 @@ var CellRange = /*#__PURE__*/function () {
790
876
  }
791
877
 
792
878
  /**
793
- * Get all selected cell coords defined by this range.
879
+ * Gets the coordinates of all cells of your range.
794
880
  *
795
- * @returns {Array}
881
+ * @returns {CellCoords[]}
796
882
  */
797
883
  }, {
798
884
  key: "getAll",
@@ -815,10 +901,11 @@ var CellRange = /*#__PURE__*/function () {
815
901
  }
816
902
 
817
903
  /**
818
- * Runs a callback function against all cells in the range. You can break the iteration by returning
819
- * `false` in the callback function.
904
+ * Runs a callback function on all cells within your range.
820
905
  *
821
- * @param {Function} callback The callback function.
906
+ * You can break the iteration by returning `false` in the callback function.
907
+ *
908
+ * @param {function(number, number): boolean} callback A callback function.
822
909
  */
823
910
  }, {
824
911
  key: "forAll",
@@ -836,7 +923,7 @@ var CellRange = /*#__PURE__*/function () {
836
923
  }
837
924
 
838
925
  /**
839
- * Clones the range coordinates.
926
+ * Clones your `CellRange` instance.
840
927
  *
841
928
  * @returns {CellRange}
842
929
  */
@@ -847,10 +934,16 @@ var CellRange = /*#__PURE__*/function () {
847
934
  }
848
935
 
849
936
  /**
850
- * Convert CellRange to literal object.
937
+ * Converts your `CellRange` instance into an object literal with the following properties:
938
+ *
939
+ * - `from`
940
+ * - `row`
941
+ * - `col`
942
+ * - `to`
943
+ * - `row`
944
+ * - `col`
851
945
  *
852
- * @returns {object} Returns a literal object with `from` and `to` properties which each of that object
853
- * contains `row` and `col` keys.
946
+ * @returns {{from: {row: number, col: number}, to: {row: number, col: number}}} An object literal with `from` and `to` properties.
854
947
  */
855
948
  }, {
856
949
  key: "toObject",
@@ -862,12 +955,14 @@ var CellRange = /*#__PURE__*/function () {
862
955
  }
863
956
 
864
957
  /**
865
- * Creates and returns a new instance of the CellCoords object. The object automatically inherits
866
- * the LTR/RTL flag from this CellRange instance.
958
+ * Creates and returns a new instance of the `CellCoords` class.
959
+ *
960
+ * The new `CellCoords` instance automatically inherits the LTR/RTL flag
961
+ * from your `CellRange` instance.
867
962
  *
868
963
  * @private
869
- * @param {number} row The row index.
870
- * @param {number} column The column index.
964
+ * @param {number} row A row index.
965
+ * @param {number} column A column index.
871
966
  * @returns {CellCoords}
872
967
  */
873
968
  }, {