handsontable 14.0.0 → 14.1.0-next-ba8c2b0-20240110

Sign up to get free protection for your applications and to get access to all the features.
Files changed (350) hide show
  1. package/3rdparty/walkontable/src/calculator/index.js +11 -6
  2. package/3rdparty/walkontable/src/calculator/index.mjs +5 -3
  3. package/3rdparty/walkontable/src/calculator/renderAllColumns.js +50 -0
  4. package/3rdparty/walkontable/src/calculator/renderAllColumns.mjs +46 -0
  5. package/3rdparty/walkontable/src/calculator/renderAllRows.js +50 -0
  6. package/3rdparty/walkontable/src/calculator/renderAllRows.mjs +46 -0
  7. package/3rdparty/walkontable/src/calculator/viewportColumns.js +3 -124
  8. package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +4 -126
  9. package/3rdparty/walkontable/src/calculator/viewportRows.js +3 -3
  10. package/3rdparty/walkontable/src/calculator/viewportRows.mjs +4 -5
  11. package/3rdparty/walkontable/src/cell/coords.d.ts +5 -5
  12. package/3rdparty/walkontable/src/cell/coords.js +2 -2
  13. package/3rdparty/walkontable/src/cell/coords.mjs +2 -2
  14. package/3rdparty/walkontable/src/cell/range.d.ts +5 -5
  15. package/3rdparty/walkontable/src/cell/range.js +16 -41
  16. package/3rdparty/walkontable/src/cell/range.mjs +16 -41
  17. package/3rdparty/walkontable/src/core/_base.js +2 -14
  18. package/3rdparty/walkontable/src/core/_base.mjs +2 -14
  19. package/3rdparty/walkontable/src/core/clone.js +2 -2
  20. package/3rdparty/walkontable/src/core/clone.mjs +2 -2
  21. package/3rdparty/walkontable/src/core/core.js +0 -2
  22. package/3rdparty/walkontable/src/core/core.mjs +0 -2
  23. package/3rdparty/walkontable/src/facade/core.js +0 -9
  24. package/3rdparty/walkontable/src/facade/core.mjs +0 -9
  25. package/3rdparty/walkontable/src/filter/column.js +2 -2
  26. package/3rdparty/walkontable/src/filter/column.mjs +2 -2
  27. package/3rdparty/walkontable/src/filter/row.js +2 -2
  28. package/3rdparty/walkontable/src/filter/row.mjs +2 -2
  29. package/3rdparty/walkontable/src/index.js +3 -4
  30. package/3rdparty/walkontable/src/index.mjs +1 -2
  31. package/3rdparty/walkontable/src/overlay/_base.js +2 -2
  32. package/3rdparty/walkontable/src/overlay/_base.mjs +2 -2
  33. package/3rdparty/walkontable/src/overlay/bottom.js +2 -2
  34. package/3rdparty/walkontable/src/overlay/bottom.mjs +2 -2
  35. package/3rdparty/walkontable/src/overlay/top.js +2 -2
  36. package/3rdparty/walkontable/src/overlay/top.mjs +2 -2
  37. package/3rdparty/walkontable/src/overlay/topInlineStartCorner.js +2 -2
  38. package/3rdparty/walkontable/src/overlay/topInlineStartCorner.mjs +2 -2
  39. package/3rdparty/walkontable/src/overlays.js +2 -5
  40. package/3rdparty/walkontable/src/overlays.mjs +2 -6
  41. package/3rdparty/walkontable/src/renderer/_base.js +2 -2
  42. package/3rdparty/walkontable/src/renderer/_base.mjs +2 -2
  43. package/3rdparty/walkontable/src/renderer/cells.js +2 -2
  44. package/3rdparty/walkontable/src/renderer/cells.mjs +2 -2
  45. package/3rdparty/walkontable/src/renderer/colGroup.js +10 -0
  46. package/3rdparty/walkontable/src/renderer/colGroup.mjs +10 -0
  47. package/3rdparty/walkontable/src/renderer/rowHeaders.js +2 -2
  48. package/3rdparty/walkontable/src/renderer/rowHeaders.mjs +2 -2
  49. package/3rdparty/walkontable/src/renderer/rows.js +6 -5
  50. package/3rdparty/walkontable/src/renderer/rows.mjs +6 -5
  51. package/3rdparty/walkontable/src/renderer/table.js +2 -2
  52. package/3rdparty/walkontable/src/renderer/table.mjs +2 -2
  53. package/3rdparty/walkontable/src/scroll.js +4 -60
  54. package/3rdparty/walkontable/src/scroll.mjs +4 -60
  55. package/3rdparty/walkontable/src/selection/manager.js +0 -1
  56. package/3rdparty/walkontable/src/selection/manager.mjs +0 -1
  57. package/3rdparty/walkontable/src/settings.js +5 -2
  58. package/3rdparty/walkontable/src/settings.mjs +4 -2
  59. package/3rdparty/walkontable/src/table.js +2 -3
  60. package/3rdparty/walkontable/src/table.mjs +2 -3
  61. package/3rdparty/walkontable/src/utils/column.js +29 -14
  62. package/3rdparty/walkontable/src/utils/column.mjs +29 -14
  63. package/3rdparty/walkontable/src/utils/columnStretching.js +219 -0
  64. package/3rdparty/walkontable/src/utils/columnStretching.mjs +215 -0
  65. package/3rdparty/walkontable/src/utils/nodesPool.js +2 -2
  66. package/3rdparty/walkontable/src/utils/nodesPool.mjs +2 -2
  67. package/3rdparty/walkontable/src/utils/orderView/view.js +2 -2
  68. package/3rdparty/walkontable/src/utils/orderView/view.mjs +2 -2
  69. package/3rdparty/walkontable/src/utils/orderView/viewSize.js +2 -2
  70. package/3rdparty/walkontable/src/utils/orderView/viewSize.mjs +2 -2
  71. package/3rdparty/walkontable/src/utils/orderView/viewSizeSet.js +2 -2
  72. package/3rdparty/walkontable/src/utils/orderView/viewSizeSet.mjs +2 -2
  73. package/3rdparty/walkontable/src/utils/row.js +2 -2
  74. package/3rdparty/walkontable/src/utils/row.mjs +2 -2
  75. package/3rdparty/walkontable/src/viewport.js +22 -17
  76. package/3rdparty/walkontable/src/viewport.mjs +23 -18
  77. package/CHANGELOG.md +36 -0
  78. package/base.js +4 -2
  79. package/base.mjs +2 -2
  80. package/cellTypes/dropdownType/dropdownType.d.ts +6 -6
  81. package/cellTypes/dropdownType/dropdownType.js +4 -4
  82. package/cellTypes/dropdownType/dropdownType.mjs +4 -4
  83. package/core/focusCatcher/index.js +44 -6
  84. package/core/focusCatcher/index.mjs +44 -6
  85. package/core.d.ts +19 -19
  86. package/core.js +7 -12
  87. package/core.mjs +7 -12
  88. package/dataMap/dataMap.js +3 -2
  89. package/dataMap/dataMap.mjs +2 -2
  90. package/dataMap/dataSource.js +2 -2
  91. package/dataMap/dataSource.mjs +2 -2
  92. package/dataMap/metaManager/lazyFactoryMap.js +2 -2
  93. package/dataMap/metaManager/lazyFactoryMap.mjs +2 -2
  94. package/dataMap/metaManager/metaLayers/cellMeta.js +2 -2
  95. package/dataMap/metaManager/metaLayers/cellMeta.mjs +2 -2
  96. package/dataMap/metaManager/metaLayers/columnMeta.js +2 -2
  97. package/dataMap/metaManager/metaLayers/columnMeta.mjs +2 -2
  98. package/dataMap/metaManager/metaLayers/globalMeta.js +2 -2
  99. package/dataMap/metaManager/metaLayers/globalMeta.mjs +2 -2
  100. package/dataMap/metaManager/metaLayers/tableMeta.js +2 -2
  101. package/dataMap/metaManager/metaLayers/tableMeta.mjs +2 -2
  102. package/dataMap/metaManager/metaSchema.js +40 -25
  103. package/dataMap/metaManager/metaSchema.mjs +40 -25
  104. package/dataMap/metaManager/mods/dynamicCellMeta.js +2 -2
  105. package/dataMap/metaManager/mods/dynamicCellMeta.mjs +2 -2
  106. package/dataMap/metaManager/mods/extendMetaProperties.js +14 -2
  107. package/dataMap/metaManager/mods/extendMetaProperties.mjs +14 -2
  108. package/dist/handsontable.css +5 -5
  109. package/dist/handsontable.full.css +6 -6
  110. package/dist/handsontable.full.js +4835 -4508
  111. package/dist/handsontable.full.min.css +4 -4
  112. package/dist/handsontable.full.min.js +156 -154
  113. package/dist/handsontable.js +3441 -2825
  114. package/dist/handsontable.min.css +3 -3
  115. package/dist/handsontable.min.js +18 -15
  116. package/editorManager.js +5 -6
  117. package/editorManager.mjs +5 -6
  118. package/editors/autocompleteEditor/autocompleteEditor.js +2 -4
  119. package/editors/autocompleteEditor/autocompleteEditor.mjs +2 -4
  120. package/editors/baseEditor/baseEditor.d.ts +1 -1
  121. package/editors/baseEditor/baseEditor.js +2 -2
  122. package/editors/baseEditor/baseEditor.mjs +2 -2
  123. package/editors/dateEditor/dateEditor.d.ts +1 -1
  124. package/editors/dateEditor/dateEditor.js +29 -33
  125. package/editors/dateEditor/dateEditor.mjs +29 -33
  126. package/editors/handsontableEditor/handsontableEditor.js +0 -1
  127. package/editors/handsontableEditor/handsontableEditor.mjs +0 -1
  128. package/editors/selectEditor/selectEditor.js +8 -2
  129. package/editors/selectEditor/selectEditor.mjs +8 -2
  130. package/editors/textEditor/textEditor.js +2 -6
  131. package/editors/textEditor/textEditor.mjs +2 -6
  132. package/eventManager.js +4 -3
  133. package/eventManager.mjs +4 -3
  134. package/helpers/browser.js +5 -2
  135. package/helpers/browser.mjs +5 -2
  136. package/helpers/feature.js +10 -0
  137. package/helpers/feature.mjs +9 -0
  138. package/helpers/mixed.js +2 -2
  139. package/helpers/mixed.mjs +2 -2
  140. package/index.d.ts +12 -0
  141. package/package.json +13 -4
  142. package/pluginHooks.d.ts +10 -9
  143. package/pluginHooks.js +10 -8
  144. package/pluginHooks.mjs +7 -7
  145. package/plugins/autoColumnSize/autoColumnSize.d.ts +2 -2
  146. package/plugins/autoColumnSize/autoColumnSize.js +2 -2
  147. package/plugins/autoColumnSize/autoColumnSize.mjs +2 -2
  148. package/plugins/autoRowSize/autoRowSize.d.ts +3 -3
  149. package/plugins/autoRowSize/autoRowSize.js +2 -2
  150. package/plugins/autoRowSize/autoRowSize.mjs +2 -2
  151. package/plugins/autofill/autofill.js +2 -2
  152. package/plugins/autofill/autofill.mjs +2 -2
  153. package/plugins/base/base.js +2 -2
  154. package/plugins/base/base.mjs +2 -2
  155. package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.d.ts +1 -1
  156. package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +2 -2
  157. package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +2 -2
  158. package/plugins/collapsibleColumns/collapsibleColumns.js +2 -2
  159. package/plugins/collapsibleColumns/collapsibleColumns.mjs +2 -2
  160. package/plugins/columnSorting/columnSorting.js +2 -2
  161. package/plugins/columnSorting/columnSorting.mjs +2 -2
  162. package/plugins/columnSorting/columnStatesManager.js +2 -2
  163. package/plugins/columnSorting/columnStatesManager.mjs +2 -2
  164. package/plugins/columnSummary/columnSummary.d.ts +11 -11
  165. package/plugins/columnSummary/columnSummary.js +20 -5
  166. package/plugins/columnSummary/columnSummary.mjs +20 -5
  167. package/plugins/columnSummary/endpoints.js +19 -5
  168. package/plugins/columnSummary/endpoints.mjs +19 -5
  169. package/plugins/comments/commentEditor.js +2 -2
  170. package/plugins/comments/commentEditor.mjs +2 -2
  171. package/plugins/comments/comments.js +2 -2
  172. package/plugins/comments/comments.mjs +2 -2
  173. package/plugins/comments/displaySwitch.js +2 -2
  174. package/plugins/comments/displaySwitch.mjs +2 -2
  175. package/plugins/contextMenu/commandExecutor.js +2 -2
  176. package/plugins/contextMenu/commandExecutor.mjs +2 -2
  177. package/plugins/contextMenu/contextMenu.js +2 -2
  178. package/plugins/contextMenu/contextMenu.mjs +2 -2
  179. package/plugins/contextMenu/itemsFactory.js +2 -2
  180. package/plugins/contextMenu/itemsFactory.mjs +2 -2
  181. package/plugins/contextMenu/menu/cursor.js +2 -2
  182. package/plugins/contextMenu/menu/cursor.mjs +2 -2
  183. package/plugins/contextMenu/menu/menu.js +2 -2
  184. package/plugins/contextMenu/menu/menu.mjs +2 -2
  185. package/plugins/copyPaste/copyPaste.js +40 -6
  186. package/plugins/copyPaste/copyPaste.mjs +40 -6
  187. package/plugins/customBorders/customBorders.d.ts +17 -8
  188. package/plugins/customBorders/customBorders.js +2 -7
  189. package/plugins/customBorders/customBorders.mjs +2 -7
  190. package/plugins/customBorders/utils.js +0 -1
  191. package/plugins/customBorders/utils.mjs +0 -1
  192. package/plugins/dragToScroll/dragToScroll.d.ts +8 -1
  193. package/plugins/dragToScroll/dragToScroll.js +18 -22
  194. package/plugins/dragToScroll/dragToScroll.mjs +18 -22
  195. package/plugins/dropdownMenu/dropdownMenu.js +2 -2
  196. package/plugins/dropdownMenu/dropdownMenu.mjs +2 -2
  197. package/plugins/exportFile/dataProvider.js +2 -2
  198. package/plugins/exportFile/dataProvider.mjs +2 -2
  199. package/plugins/exportFile/exportFile.d.ts +18 -3
  200. package/plugins/exportFile/types/_base.js +2 -2
  201. package/plugins/exportFile/types/_base.mjs +2 -2
  202. package/plugins/filters/component/_base.js +2 -2
  203. package/plugins/filters/component/_base.mjs +2 -2
  204. package/plugins/filters/component/actionBar.js +2 -2
  205. package/plugins/filters/component/actionBar.mjs +2 -2
  206. package/plugins/filters/component/condition.js +2 -2
  207. package/plugins/filters/component/condition.mjs +2 -2
  208. package/plugins/filters/component/operators.js +2 -2
  209. package/plugins/filters/component/operators.mjs +2 -2
  210. package/plugins/filters/component/value.js +2 -2
  211. package/plugins/filters/component/value.mjs +2 -2
  212. package/plugins/filters/conditionCollection.js +2 -2
  213. package/plugins/filters/conditionCollection.mjs +2 -2
  214. package/plugins/filters/conditionUpdateObserver.js +2 -2
  215. package/plugins/filters/conditionUpdateObserver.mjs +2 -2
  216. package/plugins/filters/dataFilter.js +2 -2
  217. package/plugins/filters/dataFilter.mjs +2 -2
  218. package/plugins/filters/filters.js +2 -2
  219. package/plugins/filters/filters.mjs +2 -2
  220. package/plugins/filters/ui/_base.js +2 -2
  221. package/plugins/filters/ui/_base.mjs +2 -2
  222. package/plugins/filters/ui/radioInput.js +1 -1
  223. package/plugins/filters/ui/radioInput.mjs +1 -1
  224. package/plugins/formulas/formulas.d.ts +1 -0
  225. package/plugins/formulas/formulas.js +2 -4
  226. package/plugins/formulas/formulas.mjs +2 -4
  227. package/plugins/formulas/indexSyncer/axisSyncer.js +0 -1
  228. package/plugins/formulas/indexSyncer/axisSyncer.mjs +0 -1
  229. package/plugins/manualColumnMove/ui/_base.js +2 -2
  230. package/plugins/manualColumnMove/ui/_base.mjs +2 -2
  231. package/plugins/manualColumnResize/manualColumnResize.js +6 -2
  232. package/plugins/manualColumnResize/manualColumnResize.mjs +6 -2
  233. package/plugins/manualRowMove/ui/_base.js +2 -2
  234. package/plugins/manualRowMove/ui/_base.mjs +2 -2
  235. package/plugins/manualRowResize/manualRowResize.js +7 -3
  236. package/plugins/manualRowResize/manualRowResize.mjs +7 -3
  237. package/plugins/mergeCells/calculations/autofill.js +2 -2
  238. package/plugins/mergeCells/calculations/autofill.mjs +2 -2
  239. package/plugins/mergeCells/calculations/selection.js +2 -2
  240. package/plugins/mergeCells/calculations/selection.mjs +2 -2
  241. package/plugins/mergeCells/cellCoords.js +2 -2
  242. package/plugins/mergeCells/cellCoords.mjs +2 -2
  243. package/plugins/mergeCells/cellsCollection.js +2 -2
  244. package/plugins/mergeCells/cellsCollection.mjs +2 -2
  245. package/plugins/mergeCells/mergeCells.js +2 -4
  246. package/plugins/mergeCells/mergeCells.mjs +2 -4
  247. package/plugins/multiColumnSorting/multiColumnSorting.js +2 -2
  248. package/plugins/multiColumnSorting/multiColumnSorting.mjs +2 -2
  249. package/plugins/multipleSelectionHandles/multipleSelectionHandles.d.ts +8 -1
  250. package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +2 -2
  251. package/plugins/multipleSelectionHandles/multipleSelectionHandles.mjs +2 -2
  252. package/plugins/nestedHeaders/nestedHeaders.js +2 -3
  253. package/plugins/nestedHeaders/nestedHeaders.mjs +2 -3
  254. package/plugins/nestedHeaders/stateManager/headersTree.js +0 -1
  255. package/plugins/nestedHeaders/stateManager/headersTree.mjs +0 -1
  256. package/plugins/nestedHeaders/stateManager/sourceSettings.js +1 -1
  257. package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +1 -1
  258. package/plugins/nestedHeaders/utils/ghostTable.js +2 -2
  259. package/plugins/nestedHeaders/utils/ghostTable.mjs +2 -2
  260. package/plugins/nestedRows/data/dataManager.js +2 -2
  261. package/plugins/nestedRows/data/dataManager.mjs +2 -2
  262. package/plugins/nestedRows/nestedRows.js +2 -2
  263. package/plugins/nestedRows/nestedRows.mjs +2 -2
  264. package/plugins/nestedRows/ui/_base.js +2 -2
  265. package/plugins/nestedRows/ui/_base.mjs +2 -2
  266. package/plugins/nestedRows/ui/contextMenu.js +2 -2
  267. package/plugins/nestedRows/ui/contextMenu.mjs +2 -2
  268. package/plugins/nestedRows/utils/rowMoveController.js +2 -2
  269. package/plugins/nestedRows/utils/rowMoveController.mjs +2 -2
  270. package/plugins/persistentState/persistentState.d.ts +5 -2
  271. package/plugins/persistentState/persistentState.js +2 -2
  272. package/plugins/persistentState/persistentState.mjs +2 -2
  273. package/plugins/persistentState/storage.js +2 -2
  274. package/plugins/persistentState/storage.mjs +2 -2
  275. package/plugins/search/search.js +2 -2
  276. package/plugins/search/search.mjs +2 -2
  277. package/plugins/touchScroll/touchScroll.js +2 -2
  278. package/plugins/touchScroll/touchScroll.mjs +2 -2
  279. package/plugins/trimRows/trimRows.js +2 -2
  280. package/plugins/trimRows/trimRows.mjs +2 -2
  281. package/plugins/undoRedo/undoRedo.d.ts +3 -0
  282. package/plugins/undoRedo/undoRedo.js +64 -7
  283. package/plugins/undoRedo/undoRedo.mjs +64 -7
  284. package/renderers/autocompleteRenderer/autocompleteRenderer.d.ts +1 -1
  285. package/renderers/autocompleteRenderer/autocompleteRenderer.js +0 -1
  286. package/renderers/autocompleteRenderer/autocompleteRenderer.mjs +0 -1
  287. package/renderers/baseRenderer/baseRenderer.d.ts +1 -1
  288. package/renderers/checkboxRenderer/checkboxRenderer.d.ts +1 -1
  289. package/renderers/checkboxRenderer/checkboxRenderer.js +0 -2
  290. package/renderers/checkboxRenderer/checkboxRenderer.mjs +0 -2
  291. package/renderers/dateRenderer/dateRenderer.d.ts +1 -1
  292. package/renderers/dropdownRenderer/dropdownRenderer.d.ts +5 -0
  293. package/renderers/dropdownRenderer/dropdownRenderer.js +23 -0
  294. package/renderers/dropdownRenderer/dropdownRenderer.mjs +19 -0
  295. package/renderers/dropdownRenderer/index.d.ts +1 -0
  296. package/renderers/dropdownRenderer/index.js +6 -0
  297. package/renderers/dropdownRenderer/index.mjs +1 -0
  298. package/renderers/handsontableRenderer/handsontableRenderer.d.ts +1 -1
  299. package/renderers/htmlRenderer/htmlRenderer.d.ts +1 -1
  300. package/renderers/index.d.ts +3 -0
  301. package/renderers/index.js +12 -0
  302. package/renderers/index.mjs +7 -1
  303. package/renderers/numericRenderer/numericRenderer.d.ts +1 -1
  304. package/renderers/passwordRenderer/passwordRenderer.d.ts +1 -1
  305. package/renderers/selectRenderer/selectRenderer.d.ts +1 -1
  306. package/renderers/textRenderer/textRenderer.d.ts +1 -1
  307. package/renderers/timeRenderer/timeRenderer.d.ts +1 -1
  308. package/selection/highlight/highlight.js +2 -3
  309. package/selection/highlight/highlight.mjs +2 -3
  310. package/selection/highlight/visualSelection.js +2 -2
  311. package/selection/highlight/visualSelection.mjs +2 -2
  312. package/selection/range.js +2 -2
  313. package/selection/range.mjs +2 -2
  314. package/selection/selection.js +2 -2
  315. package/selection/selection.mjs +2 -2
  316. package/settings.d.ts +27 -14
  317. package/tableView.js +4 -5
  318. package/tableView.mjs +4 -5
  319. package/translations/indexMapper.d.ts +1 -1
  320. package/translations/indexMapper.js +4 -3
  321. package/translations/indexMapper.mjs +2 -2
  322. package/translations/mapCollections/aggregatedCollection.js +2 -2
  323. package/translations/mapCollections/aggregatedCollection.mjs +2 -2
  324. package/translations/mapCollections/mapCollection.js +2 -2
  325. package/translations/mapCollections/mapCollection.mjs +2 -2
  326. package/translations/maps/indexMap.js +2 -2
  327. package/translations/maps/indexMap.mjs +2 -2
  328. package/translations/maps/linkedPhysicalIndexToValueMap.js +2 -2
  329. package/translations/maps/linkedPhysicalIndexToValueMap.mjs +2 -2
  330. package/utils/dataStructures/linkedList.js +2 -2
  331. package/utils/dataStructures/linkedList.mjs +2 -2
  332. package/utils/dataStructures/tree.js +2 -2
  333. package/utils/dataStructures/tree.mjs +2 -2
  334. package/utils/ghostTable.js +2 -2
  335. package/utils/ghostTable.mjs +2 -2
  336. package/utils/interval.js +2 -2
  337. package/utils/interval.mjs +2 -2
  338. package/utils/samplesGenerator.js +2 -2
  339. package/utils/samplesGenerator.mjs +2 -2
  340. package/validators/dropdownValidator/dropdownValidator.d.ts +5 -0
  341. package/validators/dropdownValidator/dropdownValidator.js +18 -0
  342. package/validators/dropdownValidator/dropdownValidator.mjs +14 -0
  343. package/validators/dropdownValidator/index.d.ts +1 -0
  344. package/validators/dropdownValidator/index.js +6 -0
  345. package/validators/dropdownValidator/index.mjs +1 -0
  346. package/validators/index.d.ts +2 -0
  347. package/validators/index.js +4 -0
  348. package/validators/index.mjs +3 -1
  349. package/validators/timeValidator/timeValidator.js +0 -1
  350. package/validators/timeValidator/timeValidator.mjs +0 -1
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.dropdownRenderer = dropdownRenderer;
5
+ var _autocompleteRenderer = require("../autocompleteRenderer");
6
+ const RENDERER_TYPE = exports.RENDERER_TYPE = 'dropdown';
7
+
8
+ /**
9
+ * Dropdown renderer.
10
+ *
11
+ * @private
12
+ * @param {Core} hotInstance The Handsontable instance.
13
+ * @param {HTMLTableCellElement} TD The rendered cell element.
14
+ * @param {number} row The visual row index.
15
+ * @param {number} col The visual column index.
16
+ * @param {number|string} prop The column property (passed when datasource is an array of objects).
17
+ * @param {*} value The rendered value.
18
+ * @param {object} cellProperties The cell meta object ({@see Core#getCellMeta}).
19
+ */
20
+ function dropdownRenderer(hotInstance, TD, row, col, prop, value, cellProperties) {
21
+ _autocompleteRenderer.autocompleteRenderer.apply(this, [hotInstance, TD, row, col, prop, value, cellProperties]);
22
+ }
23
+ dropdownRenderer.RENDERER_TYPE = RENDERER_TYPE;
@@ -0,0 +1,19 @@
1
+ import { autocompleteRenderer } from "../autocompleteRenderer/index.mjs";
2
+ export const RENDERER_TYPE = 'dropdown';
3
+
4
+ /**
5
+ * Dropdown renderer.
6
+ *
7
+ * @private
8
+ * @param {Core} hotInstance The Handsontable instance.
9
+ * @param {HTMLTableCellElement} TD The rendered cell element.
10
+ * @param {number} row The visual row index.
11
+ * @param {number} col The visual column index.
12
+ * @param {number|string} prop The column property (passed when datasource is an array of objects).
13
+ * @param {*} value The rendered value.
14
+ * @param {object} cellProperties The cell meta object ({@see Core#getCellMeta}).
15
+ */
16
+ export function dropdownRenderer(hotInstance, TD, row, col, prop, value, cellProperties) {
17
+ autocompleteRenderer.apply(this, [hotInstance, TD, row, col, prop, value, cellProperties]);
18
+ }
19
+ dropdownRenderer.RENDERER_TYPE = RENDERER_TYPE;
@@ -0,0 +1 @@
1
+ export { RENDERER_TYPE, dropdownRenderer } from './dropdownRenderer';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ var _dropdownRenderer = require("./dropdownRenderer");
5
+ exports.RENDERER_TYPE = _dropdownRenderer.RENDERER_TYPE;
6
+ exports.dropdownRenderer = _dropdownRenderer.dropdownRenderer;
@@ -0,0 +1 @@
1
+ export { RENDERER_TYPE, dropdownRenderer } from "./dropdownRenderer.mjs";
@@ -2,4 +2,4 @@ import Core from '../../core';
2
2
  import { CellProperties } from '../../settings';
3
3
 
4
4
  export const RENDERER_TYPE: 'handsontable';
5
- export function handsontableRenderer(instance: Core, TD: HTMLTableCellElement, row: number, col: number, prop: string | number, value: any, cellProperties: CellProperties): void;
5
+ export function handsontableRenderer(instance: Core, TD: HTMLTableCellElement, row: number, column: number, prop: string | number, value: any, cellProperties: CellProperties): void;
@@ -2,4 +2,4 @@ import Core from '../../core';
2
2
  import { CellProperties } from '../../settings';
3
3
 
4
4
  export const RENDERER_TYPE: 'html';
5
- export function htmlRenderer(instance: Core, TD: HTMLTableCellElement, row: number, col: number, prop: string | number, value: any, cellProperties: CellProperties): void;
5
+ export function htmlRenderer(instance: Core, TD: HTMLTableCellElement, row: number, column: number, prop: string | number, value: any, cellProperties: CellProperties): void;
@@ -1,4 +1,5 @@
1
1
  import { autocompleteRenderer, RENDERER_TYPE as AUTOCOMPLETE_RENDERER } from './autocompleteRenderer';
2
+ import { dropdownRenderer, RENDERER_TYPE as DROPDOWN_RENDERER } from './dropdownRenderer';
2
3
  import { baseRenderer, RENDERER_TYPE as BASE_RENDERER } from './baseRenderer';
3
4
  import { dateRenderer, RENDERER_TYPE as DATE_RENDERER } from './dateRenderer';
4
5
  import { checkboxRenderer, RENDERER_TYPE as CHECKBOX_RENDERER } from './checkboxRenderer';
@@ -14,6 +15,7 @@ export function registerAllRenderers(): void;
14
15
 
15
16
  export interface Renderers {
16
17
  autocomplete: typeof autocompleteRenderer;
18
+ dropdown: typeof dropdownRenderer;
17
19
  base: typeof baseRenderer;
18
20
  checkbox: typeof checkboxRenderer;
19
21
  date: typeof dateRenderer;
@@ -33,6 +35,7 @@ export type RendererType = keyof Renderers;
33
35
 
34
36
  export {
35
37
  autocompleteRenderer, AUTOCOMPLETE_RENDERER,
38
+ dropdownRenderer, DROPDOWN_RENDERER,
36
39
  baseRenderer, BASE_RENDERER,
37
40
  checkboxRenderer, CHECKBOX_RENDERER,
38
41
  dateRenderer, DATE_RENDERER,
@@ -8,9 +8,15 @@ exports.AUTOCOMPLETE_RENDERER = _autocompleteRenderer.RENDERER_TYPE;
8
8
  var _baseRenderer = require("./baseRenderer");
9
9
  exports.baseRenderer = _baseRenderer.baseRenderer;
10
10
  exports.BASE_RENDERER = _baseRenderer.RENDERER_TYPE;
11
+ var _dropdownRenderer = require("./dropdownRenderer");
12
+ exports.dropdownRenderer = _dropdownRenderer.dropdownRenderer;
13
+ exports.DROPDOWN_RENDERER = _dropdownRenderer.RENDERER_TYPE;
11
14
  var _checkboxRenderer = require("./checkboxRenderer");
12
15
  exports.checkboxRenderer = _checkboxRenderer.checkboxRenderer;
13
16
  exports.CHECKBOX_RENDERER = _checkboxRenderer.RENDERER_TYPE;
17
+ var _handsontableRenderer = require("./handsontableRenderer");
18
+ exports.handsontableRenderer = _handsontableRenderer.handsontableRenderer;
19
+ exports.HANDSONTABLE_RENDERER = _handsontableRenderer.RENDERER_TYPE;
14
20
  var _htmlRenderer = require("./htmlRenderer");
15
21
  exports.htmlRenderer = _htmlRenderer.htmlRenderer;
16
22
  exports.HTML_RENDERER = _htmlRenderer.RENDERER_TYPE;
@@ -20,6 +26,9 @@ exports.NUMERIC_RENDERER = _numericRenderer.RENDERER_TYPE;
20
26
  var _passwordRenderer = require("./passwordRenderer");
21
27
  exports.passwordRenderer = _passwordRenderer.passwordRenderer;
22
28
  exports.PASSWORD_RENDERER = _passwordRenderer.RENDERER_TYPE;
29
+ var _selectRenderer = require("./selectRenderer");
30
+ exports.selectRenderer = _selectRenderer.selectRenderer;
31
+ exports.SELECT_RENDERER = _selectRenderer.RENDERER_TYPE;
23
32
  var _textRenderer = require("./textRenderer");
24
33
  exports.textRenderer = _textRenderer.textRenderer;
25
34
  exports.TEXT_RENDERER = _textRenderer.RENDERER_TYPE;
@@ -39,9 +48,12 @@ function registerAllRenderers() {
39
48
  (0, _registry.registerRenderer)(_autocompleteRenderer.autocompleteRenderer);
40
49
  (0, _registry.registerRenderer)(_baseRenderer.baseRenderer);
41
50
  (0, _registry.registerRenderer)(_checkboxRenderer.checkboxRenderer);
51
+ (0, _registry.registerRenderer)(_dropdownRenderer.dropdownRenderer);
52
+ (0, _registry.registerRenderer)(_handsontableRenderer.handsontableRenderer);
42
53
  (0, _registry.registerRenderer)(_htmlRenderer.htmlRenderer);
43
54
  (0, _registry.registerRenderer)(_numericRenderer.numericRenderer);
44
55
  (0, _registry.registerRenderer)(_passwordRenderer.passwordRenderer);
56
+ (0, _registry.registerRenderer)(_selectRenderer.selectRenderer);
45
57
  (0, _registry.registerRenderer)(_textRenderer.textRenderer);
46
58
  (0, _registry.registerRenderer)(_timeRenderer.timeRenderer);
47
59
  }
@@ -1,9 +1,12 @@
1
1
  import { autocompleteRenderer, RENDERER_TYPE as AUTOCOMPLETE_RENDERER } from "./autocompleteRenderer/index.mjs";
2
2
  import { baseRenderer, RENDERER_TYPE as BASE_RENDERER } from "./baseRenderer/index.mjs";
3
+ import { dropdownRenderer, RENDERER_TYPE as DROPDOWN_RENDERER } from "./dropdownRenderer/index.mjs";
3
4
  import { checkboxRenderer, RENDERER_TYPE as CHECKBOX_RENDERER } from "./checkboxRenderer/index.mjs";
5
+ import { handsontableRenderer, RENDERER_TYPE as HANDSONTABLE_RENDERER } from "./handsontableRenderer/index.mjs";
4
6
  import { htmlRenderer, RENDERER_TYPE as HTML_RENDERER } from "./htmlRenderer/index.mjs";
5
7
  import { numericRenderer, RENDERER_TYPE as NUMERIC_RENDERER } from "./numericRenderer/index.mjs";
6
8
  import { passwordRenderer, RENDERER_TYPE as PASSWORD_RENDERER } from "./passwordRenderer/index.mjs";
9
+ import { selectRenderer, RENDERER_TYPE as SELECT_RENDERER } from "./selectRenderer/index.mjs";
7
10
  import { textRenderer, RENDERER_TYPE as TEXT_RENDERER } from "./textRenderer/index.mjs";
8
11
  import { timeRenderer, RENDERER_TYPE as TIME_RENDERER } from "./timeRenderer/index.mjs";
9
12
  import { registerRenderer } from "./registry.mjs";
@@ -14,11 +17,14 @@ export function registerAllRenderers() {
14
17
  registerRenderer(autocompleteRenderer);
15
18
  registerRenderer(baseRenderer);
16
19
  registerRenderer(checkboxRenderer);
20
+ registerRenderer(dropdownRenderer);
21
+ registerRenderer(handsontableRenderer);
17
22
  registerRenderer(htmlRenderer);
18
23
  registerRenderer(numericRenderer);
19
24
  registerRenderer(passwordRenderer);
25
+ registerRenderer(selectRenderer);
20
26
  registerRenderer(textRenderer);
21
27
  registerRenderer(timeRenderer);
22
28
  }
23
- export { autocompleteRenderer, AUTOCOMPLETE_RENDERER, baseRenderer, BASE_RENDERER, checkboxRenderer, CHECKBOX_RENDERER, htmlRenderer, HTML_RENDERER, numericRenderer, NUMERIC_RENDERER, passwordRenderer, PASSWORD_RENDERER, textRenderer, TEXT_RENDERER, timeRenderer, TIME_RENDERER };
29
+ export { autocompleteRenderer, AUTOCOMPLETE_RENDERER, baseRenderer, BASE_RENDERER, dropdownRenderer, DROPDOWN_RENDERER, checkboxRenderer, CHECKBOX_RENDERER, handsontableRenderer, HANDSONTABLE_RENDERER, htmlRenderer, HTML_RENDERER, numericRenderer, NUMERIC_RENDERER, passwordRenderer, PASSWORD_RENDERER, selectRenderer, SELECT_RENDERER, textRenderer, TEXT_RENDERER, timeRenderer, TIME_RENDERER };
24
30
  export { getRegisteredRendererNames, getRegisteredRenderers, getRenderer, hasRenderer, registerRenderer } from "./registry.mjs";
@@ -2,4 +2,4 @@ import Core from '../../core';
2
2
  import { CellProperties } from '../../settings';
3
3
 
4
4
  export const RENDERER_TYPE: 'numeric';
5
- export function numericRenderer(instance: Core, TD: HTMLTableCellElement, row: number, col: number, prop: string | number, value: any, cellProperties: CellProperties): void;
5
+ export function numericRenderer(instance: Core, TD: HTMLTableCellElement, row: number, column: number, prop: string | number, value: any, cellProperties: CellProperties): void;
@@ -2,4 +2,4 @@ import Core from '../../core';
2
2
  import { CellProperties } from '../../settings';
3
3
 
4
4
  export const RENDERER_TYPE: 'password';
5
- export function passwordRenderer(instance: Core, TD: HTMLTableCellElement, row: number, col: number, prop: string | number, value: any, cellProperties: CellProperties): void;
5
+ export function passwordRenderer(instance: Core, TD: HTMLTableCellElement, row: number, column: number, prop: string | number, value: any, cellProperties: CellProperties): void;
@@ -2,4 +2,4 @@ import Core from '../../core';
2
2
  import { CellProperties } from '../../settings';
3
3
 
4
4
  export const RENDERER_TYPE: 'select';
5
- export function selectRenderer(instance: Core, TD: HTMLTableCellElement, row: number, col: number, prop: string | number, value: any, cellProperties: CellProperties): void;
5
+ export function selectRenderer(instance: Core, TD: HTMLTableCellElement, row: number, column: number, prop: string | number, value: any, cellProperties: CellProperties): void;
@@ -2,4 +2,4 @@ import Core from '../../core';
2
2
  import { CellProperties } from '../../settings';
3
3
 
4
4
  export const RENDERER_TYPE: 'text';
5
- export function textRenderer(instance: Core, TD: HTMLTableCellElement, row: number, col: number, prop: string | number, value: any, cellProperties: CellProperties): void;
5
+ export function textRenderer(instance: Core, TD: HTMLTableCellElement, row: number, column: number, prop: string | number, value: any, cellProperties: CellProperties): void;
@@ -2,4 +2,4 @@ import Core from '../../core';
2
2
  import { CellProperties } from '../../settings';
3
3
 
4
4
  export const RENDERER_TYPE: 'time';
5
- export function timeRenderer(instance: Core, TD: HTMLTableCellElement, row: number, col: number, prop: string | number, value: any, cellProperties: CellProperties): void;
5
+ export function timeRenderer(instance: Core, TD: HTMLTableCellElement, row: number, column: number, prop: string | number, value: any, cellProperties: CellProperties): void;
@@ -26,8 +26,8 @@ let _Symbol$iterator;
26
26
  function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
27
27
  function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
28
28
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
29
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
30
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
29
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
30
+ 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); }
31
31
  function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
32
32
  /**
33
33
  * Highlight class responsible for managing Walkontable Selection classes.
@@ -178,7 +178,6 @@ class Highlight {
178
178
  if (highlightType === _src.HIGHLIGHT_FOCUS_TYPE) {
179
179
  type = 'current'; // One from settings for `disableVisualSelection` up to Handsontable 0.36/Handsontable Pro 1.16.0.
180
180
  }
181
-
182
181
  let disableHighlight = this.options.disabledCellSelection(coords.row, coords.col);
183
182
  if (typeof disableHighlight === 'string') {
184
183
  disableHighlight = [disableHighlight];
@@ -4,8 +4,8 @@ import "core-js/modules/es.array.push.js";
4
4
  function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
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
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
8
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
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
9
  function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
10
10
  import { createHighlight as createActiveHighlight } from "./types/activeHeader.mjs";
11
11
  import { createHighlight as createAreaLayeredHighlight } from "./types/areaLayered.mjs";
@@ -169,7 +169,6 @@ class Highlight {
169
169
  if (highlightType === HIGHLIGHT_FOCUS_TYPE) {
170
170
  type = 'current'; // One from settings for `disableVisualSelection` up to Handsontable 0.36/Handsontable Pro 1.16.0.
171
171
  }
172
-
173
172
  let disableHighlight = this.options.disabledCellSelection(coords.row, coords.col);
174
173
  if (typeof disableHighlight === 'string') {
175
174
  disableHighlight = [disableHighlight];
@@ -4,8 +4,8 @@ exports.__esModule = true;
4
4
  require("core-js/modules/es.error.cause.js");
5
5
  var _src = require("./../../3rdparty/walkontable/src");
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
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
8
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
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
9
  class VisualSelection extends _src.Selection {
10
10
  constructor(settings, visualCellRange) {
11
11
  super(settings, null);
@@ -1,7 +1,7 @@
1
1
  import "core-js/modules/es.error.cause.js";
2
2
  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; }
3
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
4
- 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); }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
4
+ 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); }
5
5
  import { Selection } from "./../../3rdparty/walkontable/src/index.mjs";
6
6
  class VisualSelection extends Selection {
7
7
  constructor(settings, visualCellRange) {
@@ -5,8 +5,8 @@ exports.__esModule = true;
5
5
  require("core-js/modules/es.array.push.js");
6
6
  let _Symbol$iterator;
7
7
  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; }
8
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
9
- 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); }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
9
+ 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); }
10
10
  _Symbol$iterator = Symbol.iterator;
11
11
  /**
12
12
  * The SelectionRange class is a simple CellRanges collection designed for easy manipulation of the multiple
@@ -2,8 +2,8 @@ import "core-js/modules/es.error.cause.js";
2
2
  let _Symbol$iterator;
3
3
  import "core-js/modules/es.array.push.js";
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
6
+ 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); }
7
7
  _Symbol$iterator = Symbol.iterator;
8
8
  /**
9
9
  * The SelectionRange class is a simple CellRanges collection designed for easy manipulation of the multiple
@@ -19,8 +19,8 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
19
19
  function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
20
20
  function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
21
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); }
22
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
23
+ 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); }
24
24
  function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
25
25
  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; } }
26
26
  function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
@@ -2,8 +2,8 @@ import "core-js/modules/es.error.cause.js";
2
2
  function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
3
3
  function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
6
+ 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); }
7
7
  function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
8
8
  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; } }
9
9
  function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
package/settings.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PikadayOptions } from 'pikaday';
1
+ import { PikadayOptions } from '@handsontable/pikaday';
2
2
  import Core from './core';
3
3
  import { Events } from './pluginHooks';
4
4
  import {
@@ -14,6 +14,7 @@ import CellCoords from './3rdparty/walkontable/src/cell/coords';
14
14
  import { Settings as AutoColumnSizeSettings } from './plugins/autoColumnSize';
15
15
  import { Settings as AutofillSettings } from './plugins/autofill';
16
16
  import { Settings as AutoRowSizeSettings } from './plugins/autoRowSize';
17
+ import { Settings as BindRowsWithHeadersSettings } from './plugins/bindRowsWithHeaders';
17
18
  import { Settings as CollapsibleColumnsSettings } from './plugins/collapsibleColumns';
18
19
  import { Settings as ColumnSortingSettings } from './plugins/columnSorting';
19
20
  import { Settings as ColumnSummarySettings } from './plugins/columnSummary';
@@ -21,14 +22,25 @@ import { Settings as CommentsSettings, CommentObject } from './plugins/comments'
21
22
  import { Settings as ContextMenuSettings } from './plugins/contextMenu';
22
23
  import { Settings as CopyPasteSettings } from './plugins/copyPaste';
23
24
  import { Settings as CustomBordersSettings } from './plugins/customBorders';
25
+ import { Settings as DragToScrollSettings } from './plugins/dragToScroll';
24
26
  import { Settings as DropdownMenuSettings } from './plugins/dropdownMenu';
27
+ import { Settings as FiltersSettings } from './plugins/filters';
25
28
  import { Settings as FormulasSettings } from './plugins/formulas';
26
29
  import { Settings as HiddenColumnsSettings } from './plugins/hiddenColumns';
27
30
  import { Settings as HiddenRowsSettings } from './plugins/hiddenRows';
31
+ import { Settings as manualColumnFreezeSettings } from './plugins/manualColumnFreeze';
32
+ import { Settings as manualColumnMoveSettings } from './plugins/manualColumnMove';
33
+ import { Settings as manualColumnResizeSettings } from './plugins/manualColumnResize';
34
+ import { Settings as manualRowMoveSettings } from './plugins/manualRowMove';
35
+ import { Settings as manualRowResizeSettings } from './plugins/manualRowResize';
28
36
  import { Settings as MergeCellsSettings } from './plugins/mergeCells';
29
37
  import { Settings as MultiColumnSortingSettings } from './plugins/multiColumnSorting';
30
38
  import { Settings as NestedHeadersSettings } from './plugins/nestedHeaders';
39
+ import { Settings as NestedRowsSettings } from './plugins/nestedRows';
40
+ import { Settings as PersistentStateSettings } from './plugins/persistentState';
31
41
  import { Settings as SearchSettings } from './plugins/search';
42
+ import { Settings as TrimRowsSettings } from './plugins/trimRows';
43
+ import { Settings as UndoRedoSettings } from './plugins/undoRedo';
32
44
  import { EditorType, BaseEditor } from './editors';
33
45
  import { RendererType } from './renderers';
34
46
  import { BaseRenderer } from './renderers/base';
@@ -98,7 +110,7 @@ export interface GridSettings extends Events {
98
110
  autoRowSize?: AutoRowSizeSettings;
99
111
  autoWrapCol?: boolean;
100
112
  autoWrapRow?: boolean;
101
- bindRowsWithHeaders?: boolean | 'loose' | 'strict';
113
+ bindRowsWithHeaders?: BindRowsWithHeadersSettings;
102
114
  cell?: CellSettings[];
103
115
  cells?: (this: CellProperties, row: number, column: number, prop: string | number) => CellMeta;
104
116
  checkedTemplate?: boolean | string | number;
@@ -127,7 +139,7 @@ export interface GridSettings extends Events {
127
139
  defaultDate?: string;
128
140
  tabNavigation?: boolean;
129
141
  disableVisualSelection?: boolean | 'current' | 'area' | 'header' | Array<'current' | 'area' | 'header'>;
130
- dragToScroll?: boolean;
142
+ dragToScroll?: DragToScrollSettings;
131
143
  dropdownMenu?: DropdownMenuSettings;
132
144
  editor?: EditorType | typeof BaseEditor | boolean | string;
133
145
  enterBeginsEditing?: boolean;
@@ -135,7 +147,7 @@ export interface GridSettings extends Events {
135
147
  fillHandle?: AutofillSettings;
136
148
  filter?: boolean;
137
149
  filteringCaseSensitive?: boolean;
138
- filters?: boolean;
150
+ filters?: FiltersSettings;
139
151
  fixedColumnsLeft?: number;
140
152
  fixedColumnsStart?: number;
141
153
  fixedRowsBottom?: number;
@@ -147,18 +159,18 @@ export interface GridSettings extends Events {
147
159
  hiddenRows?: HiddenRowsSettings;
148
160
  invalidCellClassName?: string;
149
161
  imeFastEdit?: boolean;
150
- isEmptyCol?: (this: Core, col: number) => boolean;
162
+ isEmptyCol?: (this: Core, column: number) => boolean;
151
163
  isEmptyRow?: (this: Core, row: number) => boolean;
152
164
  label?: LabelOptions;
153
165
  language?: string;
154
166
  locale?: string;
155
167
  layoutDirection?: 'ltr' | 'rtl' | 'inherit';
156
168
  licenseKey?: string | 'non-commercial-and-evaluation';
157
- manualColumnFreeze?: boolean;
158
- manualColumnMove?: boolean | number[];
159
- manualColumnResize?: boolean | number[];
160
- manualRowMove?: boolean | number[];
161
- manualRowResize?: boolean | number[];
169
+ manualColumnFreeze?: manualColumnFreezeSettings;
170
+ manualColumnMove?: manualColumnMoveSettings;
171
+ manualColumnResize?: manualColumnResizeSettings;
172
+ manualRowMove?: manualRowMoveSettings;
173
+ manualRowResize?: manualRowResizeSettings;
162
174
  maxCols?: number;
163
175
  maxRows?: number;
164
176
  mergeCells?: MergeCellsSettings;
@@ -169,18 +181,19 @@ export interface GridSettings extends Events {
169
181
  multiColumnSorting?: MultiColumnSortingSettings;
170
182
  navigableHeaders?: boolean;
171
183
  nestedHeaders?: NestedHeadersSettings;
172
- nestedRows?: boolean;
184
+ nestedRows?: NestedRowsSettings;
173
185
  noWordWrapClassName?: string;
174
186
  numericFormat?: NumericFormatOptions;
175
187
  observeDOMVisibility?: boolean;
176
188
  outsideClickDeselects?: boolean | ((target: HTMLElement) => boolean);
177
- persistentState?: boolean;
189
+ persistentState?: PersistentStateSettings;
178
190
  placeholder?: string;
179
191
  placeholderCellClassName?: string;
180
192
  preventOverflow?: boolean | 'vertical' | 'horizontal';
181
193
  preventWheel?: boolean;
182
194
  readOnly?: boolean;
183
195
  readOnlyCellClassName?: string;
196
+ renderAllColumns?: boolean;
184
197
  renderAllRows?: boolean;
185
198
  renderer?: RendererType | string | BaseRenderer;
186
199
  rowHeaders?: boolean | string[] | ((index: number) => string);
@@ -201,11 +214,11 @@ export interface GridSettings extends Events {
201
214
  tabMoves?: CellCoords | SimpleCellCoords | ((event: KeyboardEvent) => CellCoords | SimpleCellCoords);
202
215
  title?: string;
203
216
  trimDropdown?: boolean;
204
- trimRows?: boolean | number[];
217
+ trimRows?: TrimRowsSettings;
205
218
  trimWhitespace?: boolean;
206
219
  type?: CellType | string;
207
220
  uncheckedTemplate?: boolean | string | number;
208
- undo?: boolean;
221
+ undo?: UndoRedoSettings;
209
222
  validator?: BaseValidator | RegExp | ValidatorType | string;
210
223
  viewportColumnRenderingOffset?: number | 'auto';
211
224
  viewportRowRenderingOffset?: number | 'auto';
package/tableView.js CHANGED
@@ -15,8 +15,8 @@ function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclarati
15
15
  function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
16
16
  function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
17
17
  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; }
18
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
19
- 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); }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
19
+ 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); }
20
20
  function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
21
21
  function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
22
22
  function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
@@ -280,7 +280,6 @@ class TableView {
280
280
  if (originalStyle) {
281
281
  rootElement.setAttribute('data-originalstyle', originalStyle); // needed to retrieve original style in jsFiddle link generator in HT examples. may be removed in future versions
282
282
  }
283
-
284
283
  (0, _element.addClass)(rootElement, 'handsontable');
285
284
  _classPrivateFieldSet(this, _table, rootDocument.createElement('TABLE'));
286
285
  (0, _element.addClass)(_classPrivateFieldGet(this, _table), 'htCore');
@@ -322,7 +321,6 @@ class TableView {
322
321
  rootWindow.focus(); // make sure that window that contains HOT is active. Important when HOT is in iframe.
323
322
  }
324
323
  });
325
-
326
324
  this.eventManager.addEventListener(rootElement, 'mouseup', () => {
327
325
  _classPrivateFieldSet(this, _selectionMouseDown, false);
328
326
  });
@@ -347,7 +345,7 @@ class TableView {
347
345
  }
348
346
  _classPrivateFieldSet(this, _mouseDown, false);
349
347
  const isOutsideInputElement = (0, _element.isOutsideInput)(rootDocument.activeElement);
350
- if (!isOutsideInputElement) {
348
+ if ((0, _element.isInput)(rootDocument.activeElement) && !isOutsideInputElement) {
351
349
  return;
352
350
  }
353
351
  if (isOutsideInputElement || !selection.isSelected() && !selection.isSelectedByAnyHeader() && !rootElement.contains(event.target) && !(0, _event.isRightClick)(event)) {
@@ -670,6 +668,7 @@ class TableView {
670
668
  },
671
669
  minSpareRows: () => this.settings.minSpareRows,
672
670
  renderAllRows: this.settings.renderAllRows,
671
+ renderAllColumns: this.settings.renderAllColumns,
673
672
  rowHeaders: () => {
674
673
  const headerRenderers = [];
675
674
  if (this.hot.hasRowHeaders()) {
package/tableView.mjs CHANGED
@@ -4,8 +4,8 @@ function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclarati
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
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
8
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
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
9
  function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
10
10
  function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
11
11
  function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
@@ -276,7 +276,6 @@ class TableView {
276
276
  if (originalStyle) {
277
277
  rootElement.setAttribute('data-originalstyle', originalStyle); // needed to retrieve original style in jsFiddle link generator in HT examples. may be removed in future versions
278
278
  }
279
-
280
279
  addClass(rootElement, 'handsontable');
281
280
  _classPrivateFieldSet(this, _table, rootDocument.createElement('TABLE'));
282
281
  addClass(_classPrivateFieldGet(this, _table), 'htCore');
@@ -318,7 +317,6 @@ class TableView {
318
317
  rootWindow.focus(); // make sure that window that contains HOT is active. Important when HOT is in iframe.
319
318
  }
320
319
  });
321
-
322
320
  this.eventManager.addEventListener(rootElement, 'mouseup', () => {
323
321
  _classPrivateFieldSet(this, _selectionMouseDown, false);
324
322
  });
@@ -343,7 +341,7 @@ class TableView {
343
341
  }
344
342
  _classPrivateFieldSet(this, _mouseDown, false);
345
343
  const isOutsideInputElement = isOutsideInput(rootDocument.activeElement);
346
- if (!isOutsideInputElement) {
344
+ if (isInput(rootDocument.activeElement) && !isOutsideInputElement) {
347
345
  return;
348
346
  }
349
347
  if (isOutsideInputElement || !selection.isSelected() && !selection.isSelectedByAnyHeader() && !rootElement.contains(event.target) && !isRightClick(event)) {
@@ -666,6 +664,7 @@ class TableView {
666
664
  },
667
665
  minSpareRows: () => this.settings.minSpareRows,
668
666
  renderAllRows: this.settings.renderAllRows,
667
+ renderAllColumns: this.settings.renderAllColumns,
669
668
  rowHeaders: () => {
670
669
  const headerRenderers = [];
671
670
  if (this.hot.hasRowHeaders()) {
@@ -28,7 +28,7 @@ export class IndexMapper {
28
28
  getVisualFromPhysicalIndex(physicalIndex: number): number;
29
29
  getVisualFromRenderableIndex(renderableIndex: number): number;
30
30
  getRenderableFromVisualIndex(visualIndex: number): number;
31
- getNearestNotHiddenIndex(fromVisualIndex: number, searchDirection: 1|-1,
31
+ getNearestNotHiddenIndex(fromVisualIndex: number, searchDirection: 1 | -1,
32
32
  searchAlsoOtherWayAround?: boolean): number | null;
33
33
  initToLength(length?: number): void;
34
34
  getIndexesSequence(): number[];
@@ -11,13 +11,14 @@ var _mixed = require("../helpers/mixed");
11
11
  var _observable = require("./changesObservable/observable");
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
  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; }
14
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
15
- 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); }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
15
+ 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); }
16
16
  /**
17
17
  * A set of deprecated feature names.
18
18
  *
19
19
  * @type {Set<string>}
20
- */ // eslint-disable-next-line no-unused-vars
20
+ */
21
+ // eslint-disable-next-line no-unused-vars
21
22
  const deprecationWarns = new Set();
22
23
 
23
24
  /**
@@ -1,7 +1,7 @@
1
1
  import "core-js/modules/es.error.cause.js";
2
2
  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; }
3
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
4
- 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); }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
4
+ 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); }
5
5
  import { arrayMap } from "../helpers/array.mjs";
6
6
  import { createIndexMap, getListWithInsertedItems, getListWithRemovedItems, HidingMap, IndexesSequence, TrimmingMap } from "./maps/index.mjs";
7
7
  import { AggregatedCollection, MapCollection } from "./mapCollections/index.mjs";