@elliemae/ds-datagrids 2.2.0-next.3 → 2.3.0-alpha.1

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 (577) hide show
  1. package/cjs/DSDataGrid.js +395 -635
  2. package/cjs/DSDataGrid.js.map +7 -0
  3. package/cjs/DataGridImpl.js +103 -128
  4. package/cjs/DataGridImpl.js.map +7 -0
  5. package/cjs/PaginatedDataGrid.js +68 -68
  6. package/cjs/PaginatedDataGrid.js.map +7 -0
  7. package/cjs/blockNames.js +39 -11
  8. package/cjs/blockNames.js.map +7 -0
  9. package/cjs/columns/IconColumn.js +78 -62
  10. package/cjs/columns/IconColumn.js.map +7 -0
  11. package/cjs/columns/NumberColumn.js +35 -5
  12. package/cjs/columns/NumberColumn.js.map +7 -0
  13. package/cjs/components/BodyCell.js +83 -80
  14. package/cjs/components/BodyCell.js.map +7 -0
  15. package/cjs/components/BodyList.js +52 -52
  16. package/cjs/components/BodyList.js.map +7 -0
  17. package/cjs/components/ColumnVisibilityMenuOption.js +53 -31
  18. package/cjs/components/ColumnVisibilityMenuOption.js.map +7 -0
  19. package/cjs/components/ColumnsOptionsMenuSection.js +59 -44
  20. package/cjs/components/ColumnsOptionsMenuSection.js.map +7 -0
  21. package/cjs/components/EmptyState.js +81 -50
  22. package/cjs/components/EmptyState.js.map +7 -0
  23. package/cjs/components/HeaderCell.js +64 -58
  24. package/cjs/components/HeaderCell.js.map +7 -0
  25. package/cjs/components/List.js +41 -29
  26. package/cjs/components/List.js.map +7 -0
  27. package/cjs/components/ListItem.js +43 -36
  28. package/cjs/components/ListItem.js.map +7 -0
  29. package/cjs/components/NoResults.js +55 -51
  30. package/cjs/components/NoResults.js.map +7 -0
  31. package/cjs/components/RowsLoader.js +42 -22
  32. package/cjs/components/RowsLoader.js.map +7 -0
  33. package/cjs/components/Table.js +78 -87
  34. package/cjs/components/Table.js.map +7 -0
  35. package/cjs/components/TableBody.js +61 -60
  36. package/cjs/components/TableBody.js.map +7 -0
  37. package/cjs/components/TableHeader.js +47 -30
  38. package/cjs/components/TableHeader.js.map +7 -0
  39. package/cjs/components/footer/addOptionalFooterComponents.js +53 -43
  40. package/cjs/components/footer/addOptionalFooterComponents.js.map +7 -0
  41. package/cjs/components/header/PrimaryControls.js +49 -35
  42. package/cjs/components/header/PrimaryControls.js.map +7 -0
  43. package/cjs/components/header/addOptionalHeaderComponents.js +54 -43
  44. package/cjs/components/header/addOptionalHeaderComponents.js.map +7 -0
  45. package/cjs/components/index.js +43 -17
  46. package/cjs/components/index.js.map +7 -0
  47. package/cjs/components/renderers/defaultClassedRenderers.js +64 -57
  48. package/cjs/components/renderers/defaultClassedRenderers.js.map +7 -0
  49. package/cjs/components/renderers/index.js +44 -17
  50. package/cjs/components/renderers/index.js.map +7 -0
  51. package/cjs/components/renderers/renderRowsLoader.js +39 -18
  52. package/cjs/components/renderers/renderRowsLoader.js.map +7 -0
  53. package/cjs/components/tableContext.js +36 -13
  54. package/cjs/components/tableContext.js.map +7 -0
  55. package/cjs/defaultPlugins.js +44 -12
  56. package/cjs/defaultPlugins.js.map +7 -0
  57. package/cjs/index.js +72 -67
  58. package/cjs/index.js.map +7 -0
  59. package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +102 -114
  60. package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +7 -0
  61. package/cjs/plugins/body-header-scroll-sync/index.js +35 -9
  62. package/cjs/plugins/body-header-scroll-sync/index.js.map +7 -0
  63. package/cjs/plugins/column-dnd/DndColumnsPlugin.js +107 -86
  64. package/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +7 -0
  65. package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +43 -27
  66. package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js.map +7 -0
  67. package/cjs/plugins/column-dnd/index.js +35 -9
  68. package/cjs/plugins/column-dnd/index.js.map +7 -0
  69. package/cjs/plugins/column-sizing/ColumnSizingPlugin.js +59 -55
  70. package/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +7 -0
  71. package/cjs/plugins/column-sizing/columnMeasurerTransformer.js +48 -53
  72. package/cjs/plugins/column-sizing/columnMeasurerTransformer.js.map +7 -0
  73. package/cjs/plugins/column-sizing/ext-points/decorateColumn.js +40 -13
  74. package/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +7 -0
  75. package/cjs/plugins/column-sizing/ext-points/getTableProps.js +55 -54
  76. package/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +7 -0
  77. package/cjs/plugins/column-sizing/getColumnNameFromProperty.js +37 -9
  78. package/cjs/plugins/column-sizing/getColumnNameFromProperty.js.map +7 -0
  79. package/cjs/plugins/column-sizing/index.js +35 -9
  80. package/cjs/plugins/column-sizing/index.js.map +7 -0
  81. package/cjs/plugins/column-sizing/useColumnSizeService.js +72 -86
  82. package/cjs/plugins/column-sizing/useColumnSizeService.js.map +7 -0
  83. package/cjs/plugins/column-sizing/useStylesheetHelpers.js +96 -199
  84. package/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +7 -0
  85. package/cjs/plugins/column-sizing/utils.js +52 -29
  86. package/cjs/plugins/column-sizing/utils.js.map +7 -0
  87. package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +38 -16
  88. package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +7 -0
  89. package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +61 -56
  90. package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +7 -0
  91. package/cjs/plugins/custom-cell-renderer/getRendererComponent.js +58 -60
  92. package/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +7 -0
  93. package/cjs/plugins/custom-cell-renderer/index.js +35 -9
  94. package/cjs/plugins/custom-cell-renderer/index.js.map +7 -0
  95. package/cjs/plugins/editable/EditableComponents/ComboBox.js +50 -53
  96. package/cjs/plugins/editable/EditableComponents/ComboBox.js.map +7 -0
  97. package/cjs/plugins/editable/EditableComponents/TextBox.js +56 -76
  98. package/cjs/plugins/editable/EditableComponents/TextBox.js.map +7 -0
  99. package/cjs/plugins/editable/EditableComponents/index.js +37 -11
  100. package/cjs/plugins/editable/EditableComponents/index.js.map +7 -0
  101. package/cjs/plugins/editable/EditablePlugin.js +60 -75
  102. package/cjs/plugins/editable/EditablePlugin.js.map +7 -0
  103. package/cjs/plugins/editable/decorateEditable.js +61 -98
  104. package/cjs/plugins/editable/decorateEditable.js.map +7 -0
  105. package/cjs/plugins/editable/getEditorComponent.js +70 -76
  106. package/cjs/plugins/editable/getEditorComponent.js.map +7 -0
  107. package/cjs/plugins/editable/index.js +38 -13
  108. package/cjs/plugins/editable/index.js.map +7 -0
  109. package/cjs/plugins/expandable-grid/ExpandableColumn.js +112 -144
  110. package/cjs/plugins/expandable-grid/ExpandableColumn.js.map +7 -0
  111. package/cjs/plugins/expandable-grid/ExpandablePlugin.js +118 -180
  112. package/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +7 -0
  113. package/cjs/plugins/expandable-grid/ExpandedRow.js +117 -139
  114. package/cjs/plugins/expandable-grid/ExpandedRow.js.map +7 -0
  115. package/cjs/plugins/expandable-grid/ExpandedRowExtra.js +54 -52
  116. package/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +7 -0
  117. package/cjs/plugins/expandable-grid/index.js +37 -11
  118. package/cjs/plugins/expandable-grid/index.js.map +7 -0
  119. package/cjs/plugins/expandable-grid/useExpandGridState.js +45 -31
  120. package/cjs/plugins/expandable-grid/useExpandGridState.js.map +7 -0
  121. package/cjs/plugins/export-data/ExportDataPlugin.js +82 -116
  122. package/cjs/plugins/export-data/ExportDataPlugin.js.map +7 -0
  123. package/cjs/plugins/export-data/index.js +35 -12
  124. package/cjs/plugins/export-data/index.js.map +7 -0
  125. package/cjs/plugins/filterable/FilterablePlugin.js +54 -55
  126. package/cjs/plugins/filterable/FilterablePlugin.js.map +7 -0
  127. package/cjs/plugins/filterable/addFilterToColumn.js +40 -28
  128. package/cjs/plugins/filterable/addFilterToColumn.js.map +7 -0
  129. package/cjs/plugins/filterable/components/FilterableHeader.js +119 -107
  130. package/cjs/plugins/filterable/components/FilterableHeader.js.map +7 -0
  131. package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +116 -116
  132. package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +7 -0
  133. package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +97 -73
  134. package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +7 -0
  135. package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +138 -132
  136. package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +7 -0
  137. package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +115 -119
  138. package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +7 -0
  139. package/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +35 -7
  140. package/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +7 -0
  141. package/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +46 -15
  142. package/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +7 -0
  143. package/cjs/plugins/filterable/filterableFormatter.js +61 -51
  144. package/cjs/plugins/filterable/filterableFormatter.js.map +7 -0
  145. package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +60 -55
  146. package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +7 -0
  147. package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +43 -22
  148. package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +7 -0
  149. package/cjs/plugins/filterable/helper.js +68 -79
  150. package/cjs/plugins/filterable/helper.js.map +7 -0
  151. package/cjs/plugins/filterable/index.js +35 -9
  152. package/cjs/plugins/filterable/index.js.map +7 -0
  153. package/cjs/plugins/filterable/useFilterableState.js +62 -66
  154. package/cjs/plugins/filterable/useFilterableState.js.map +7 -0
  155. package/cjs/plugins/grouping-by/GroupingByPlugin.js +40 -23
  156. package/cjs/plugins/grouping-by/GroupingByPlugin.js.map +7 -0
  157. package/cjs/plugins/grouping-grid/GroupingPlugin.js +86 -109
  158. package/cjs/plugins/grouping-grid/GroupingPlugin.js.map +7 -0
  159. package/cjs/plugins/grouping-grid/walkStrategy.js +46 -26
  160. package/cjs/plugins/grouping-grid/walkStrategy.js.map +7 -0
  161. package/cjs/plugins/index.js +68 -48
  162. package/cjs/plugins/index.js.map +7 -0
  163. package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +64 -88
  164. package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +7 -0
  165. package/cjs/plugins/infinite-scrolling/index.js +35 -9
  166. package/cjs/plugins/infinite-scrolling/index.js.map +7 -0
  167. package/cjs/plugins/pagination/PaginationPlugin.js +73 -90
  168. package/cjs/plugins/pagination/PaginationPlugin.js.map +7 -0
  169. package/cjs/plugins/pagination/components/Pagination.js +54 -35
  170. package/cjs/plugins/pagination/components/Pagination.js.map +7 -0
  171. package/cjs/plugins/pagination/components/Paginator.js +59 -44
  172. package/cjs/plugins/pagination/components/Paginator.js.map +7 -0
  173. package/cjs/plugins/pagination/components/PerPageDropdown.js +51 -63
  174. package/cjs/plugins/pagination/components/PerPageDropdown.js.map +7 -0
  175. package/cjs/plugins/pagination/helper.js +45 -24
  176. package/cjs/plugins/pagination/helper.js.map +7 -0
  177. package/cjs/plugins/pagination/index.js +35 -9
  178. package/cjs/plugins/pagination/index.js.map +7 -0
  179. package/cjs/plugins/pagination/usePaginationState.js +46 -38
  180. package/cjs/plugins/pagination/usePaginationState.js.map +7 -0
  181. package/cjs/plugins/resizable/ResizablePlugin.js +51 -55
  182. package/cjs/plugins/resizable/ResizablePlugin.js.map +7 -0
  183. package/cjs/plugins/resizable/decorateResizable.js +49 -53
  184. package/cjs/plugins/resizable/decorateResizable.js.map +7 -0
  185. package/cjs/plugins/resizable/index.js +35 -9
  186. package/cjs/plugins/resizable/index.js.map +7 -0
  187. package/cjs/plugins/resizable/useResizeHandle.js +56 -50
  188. package/cjs/plugins/resizable/useResizeHandle.js.map +7 -0
  189. package/cjs/plugins/resizable/utils.js +49 -28
  190. package/cjs/plugins/resizable/utils.js.map +7 -0
  191. package/cjs/plugins/row-dnd/DndRowsPlugin.js +103 -82
  192. package/cjs/plugins/row-dnd/DndRowsPlugin.js.map +7 -0
  193. package/cjs/plugins/row-dnd/index.js +35 -9
  194. package/cjs/plugins/row-dnd/index.js.map +7 -0
  195. package/cjs/plugins/selectable/SelectablePlugin.js +101 -134
  196. package/cjs/plugins/selectable/SelectablePlugin.js.map +7 -0
  197. package/cjs/plugins/selectable/addSelectableColumn.js +67 -68
  198. package/cjs/plugins/selectable/addSelectableColumn.js.map +7 -0
  199. package/cjs/plugins/selectable/helper.js +50 -39
  200. package/cjs/plugins/selectable/helper.js.map +7 -0
  201. package/cjs/plugins/selectable/index.js +35 -9
  202. package/cjs/plugins/selectable/index.js.map +7 -0
  203. package/cjs/plugins/selectable/selectableFormatter.js +83 -105
  204. package/cjs/plugins/selectable/selectableFormatter.js.map +7 -0
  205. package/cjs/plugins/selectable/useSelectableState.js +67 -94
  206. package/cjs/plugins/selectable/useSelectableState.js.map +7 -0
  207. package/cjs/plugins/sortable/SortablePlugin.js +62 -76
  208. package/cjs/plugins/sortable/SortablePlugin.js.map +7 -0
  209. package/cjs/plugins/sortable/checkIfSortable.js +37 -14
  210. package/cjs/plugins/sortable/checkIfSortable.js.map +7 -0
  211. package/cjs/plugins/sortable/index.js +35 -9
  212. package/cjs/plugins/sortable/index.js.map +7 -0
  213. package/cjs/plugins/sortable/sortHeaderFormatter.js +56 -50
  214. package/cjs/plugins/sortable/sortHeaderFormatter.js.map +7 -0
  215. package/cjs/plugins/sortable/sortTree.js +40 -47
  216. package/cjs/plugins/sortable/sortTree.js.map +7 -0
  217. package/cjs/plugins/sortable/sorter.js +140 -172
  218. package/cjs/plugins/sortable/sorter.js.map +7 -0
  219. package/cjs/plugins/sortable/useSortableState.js +53 -79
  220. package/cjs/plugins/sortable/useSortableState.js.map +7 -0
  221. package/cjs/plugins/toolbar/RowRenderer.js +75 -76
  222. package/cjs/plugins/toolbar/RowRenderer.js.map +7 -0
  223. package/cjs/plugins/toolbar/ToolbarPlugin.js +49 -33
  224. package/cjs/plugins/toolbar/ToolbarPlugin.js.map +7 -0
  225. package/cjs/plugins/toolbar/ToolbarTrigger.js +89 -70
  226. package/cjs/plugins/toolbar/ToolbarTrigger.js.map +7 -0
  227. package/cjs/plugins/toolbar/index.js +35 -9
  228. package/cjs/plugins/toolbar/index.js.map +7 -0
  229. package/cjs/plugins/virtualization/AutoHeightList.js +64 -52
  230. package/cjs/plugins/virtualization/AutoHeightList.js.map +7 -0
  231. package/cjs/plugins/virtualization/VirtualizationPlugin.js +86 -97
  232. package/cjs/plugins/virtualization/VirtualizationPlugin.js.map +7 -0
  233. package/cjs/plugins/virtualization/VirtualizedBody.js +139 -155
  234. package/cjs/plugins/virtualization/VirtualizedBody.js.map +7 -0
  235. package/cjs/plugins/virtualization/VirtualizedBodyRow.js +39 -17
  236. package/cjs/plugins/virtualization/VirtualizedBodyRow.js.map +7 -0
  237. package/cjs/plugins/virtualization/helper.js +35 -7
  238. package/cjs/plugins/virtualization/helper.js.map +7 -0
  239. package/cjs/plugins/virtualization/index.js +35 -9
  240. package/cjs/plugins/virtualization/index.js.map +7 -0
  241. package/cjs/renders/CellWithAddons.js +98 -50
  242. package/cjs/renders/CellWithAddons.js.map +7 -0
  243. package/cjs/renders/index.js +37 -11
  244. package/cjs/renders/index.js.map +7 -0
  245. package/cjs/renders/styled.js +78 -27
  246. package/cjs/renders/styled.js.map +7 -0
  247. package/cjs/rowSizes.js +44 -12
  248. package/cjs/rowSizes.js.map +7 -0
  249. package/cjs/utilities/DataGridUtilities.json +1315 -0
  250. package/cjs/utilities/getPluginsFromProps.js +67 -39
  251. package/cjs/utilities/getPluginsFromProps.js.map +7 -0
  252. package/cjs/utilities/getScrollbarSize.js +44 -25
  253. package/cjs/utilities/getScrollbarSize.js.map +7 -0
  254. package/cjs/utilities/normalizeData.js +44 -34
  255. package/cjs/utilities/normalizeData.js.map +7 -0
  256. package/esm/DSDataGrid.js +337 -597
  257. package/esm/DSDataGrid.js.map +7 -0
  258. package/esm/DataGridImpl.js +68 -113
  259. package/esm/DataGridImpl.js.map +7 -0
  260. package/esm/PaginatedDataGrid.js +39 -59
  261. package/esm/PaginatedDataGrid.js.map +7 -0
  262. package/esm/blockNames.js +10 -5
  263. package/esm/blockNames.js.map +7 -0
  264. package/esm/columns/IconColumn.js +49 -54
  265. package/esm/columns/IconColumn.js.map +7 -0
  266. package/esm/columns/NumberColumn.js +6 -3
  267. package/esm/columns/NumberColumn.js.map +7 -0
  268. package/esm/components/BodyCell.js +51 -68
  269. package/esm/components/BodyCell.js.map +7 -0
  270. package/esm/components/BodyList.js +23 -43
  271. package/esm/components/BodyList.js.map +7 -0
  272. package/esm/components/ColumnVisibilityMenuOption.js +24 -27
  273. package/esm/components/ColumnVisibilityMenuOption.js.map +7 -0
  274. package/esm/components/ColumnsOptionsMenuSection.js +30 -38
  275. package/esm/components/ColumnsOptionsMenuSection.js.map +7 -0
  276. package/esm/components/EmptyState.js +52 -40
  277. package/esm/components/EmptyState.js.map +7 -0
  278. package/esm/components/HeaderCell.js +33 -48
  279. package/esm/components/HeaderCell.js.map +7 -0
  280. package/esm/components/List.js +12 -23
  281. package/esm/components/List.js.map +7 -0
  282. package/esm/components/ListItem.js +14 -30
  283. package/esm/components/ListItem.js.map +7 -0
  284. package/esm/components/NoResults.js +26 -43
  285. package/esm/components/NoResults.js.map +7 -0
  286. package/esm/components/RowsLoader.js +13 -15
  287. package/esm/components/RowsLoader.js.map +7 -0
  288. package/esm/components/Table.js +45 -76
  289. package/esm/components/Table.js.map +7 -0
  290. package/esm/components/TableBody.js +32 -52
  291. package/esm/components/TableBody.js.map +7 -0
  292. package/esm/components/TableHeader.js +17 -23
  293. package/esm/components/TableHeader.js.map +7 -0
  294. package/esm/components/footer/addOptionalFooterComponents.js +24 -37
  295. package/esm/components/footer/addOptionalFooterComponents.js.map +7 -0
  296. package/esm/components/header/PrimaryControls.js +20 -29
  297. package/esm/components/header/PrimaryControls.js.map +7 -0
  298. package/esm/components/header/addOptionalHeaderComponents.js +25 -36
  299. package/esm/components/header/addOptionalHeaderComponents.js.map +7 -0
  300. package/esm/components/index.js +14 -5
  301. package/esm/components/index.js.map +7 -0
  302. package/esm/components/renderers/defaultClassedRenderers.js +41 -46
  303. package/esm/components/renderers/defaultClassedRenderers.js.map +7 -0
  304. package/esm/components/renderers/index.js +16 -5
  305. package/esm/components/renderers/index.js.map +7 -0
  306. package/esm/components/renderers/renderRowsLoader.js +10 -10
  307. package/esm/components/renderers/renderRowsLoader.js.map +7 -0
  308. package/esm/components/tableContext.js +7 -5
  309. package/esm/components/tableContext.js.map +7 -0
  310. package/esm/defaultPlugins.js +15 -8
  311. package/esm/defaultPlugins.js.map +7 -0
  312. package/esm/index.js +63 -27
  313. package/esm/index.js.map +7 -0
  314. package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +71 -101
  315. package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +7 -0
  316. package/esm/plugins/body-header-scroll-sync/index.js +6 -1
  317. package/esm/plugins/body-header-scroll-sync/index.js.map +7 -0
  318. package/esm/plugins/column-dnd/DndColumnsPlugin.js +69 -68
  319. package/esm/plugins/column-dnd/DndColumnsPlugin.js.map +7 -0
  320. package/esm/plugins/column-dnd/decorateGridWithDndColumns.js +16 -18
  321. package/esm/plugins/column-dnd/decorateGridWithDndColumns.js.map +7 -0
  322. package/esm/plugins/column-dnd/index.js +6 -1
  323. package/esm/plugins/column-dnd/index.js.map +7 -0
  324. package/esm/plugins/column-sizing/ColumnSizingPlugin.js +20 -37
  325. package/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +7 -0
  326. package/esm/plugins/column-sizing/columnMeasurerTransformer.js +16 -42
  327. package/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +7 -0
  328. package/esm/plugins/column-sizing/ext-points/decorateColumn.js +9 -7
  329. package/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +7 -0
  330. package/esm/plugins/column-sizing/ext-points/getTableProps.js +23 -43
  331. package/esm/plugins/column-sizing/ext-points/getTableProps.js.map +7 -0
  332. package/esm/plugins/column-sizing/getColumnNameFromProperty.js +8 -7
  333. package/esm/plugins/column-sizing/getColumnNameFromProperty.js.map +7 -0
  334. package/esm/plugins/column-sizing/index.js +6 -1
  335. package/esm/plugins/column-sizing/index.js.map +7 -0
  336. package/esm/plugins/column-sizing/useColumnSizeService.js +34 -71
  337. package/esm/plugins/column-sizing/useColumnSizeService.js.map +7 -0
  338. package/esm/plugins/column-sizing/useStylesheetHelpers.js +64 -171
  339. package/esm/plugins/column-sizing/useStylesheetHelpers.js.map +7 -0
  340. package/esm/plugins/column-sizing/utils.js +23 -21
  341. package/esm/plugins/column-sizing/utils.js.map +7 -0
  342. package/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +8 -7
  343. package/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +7 -0
  344. package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +28 -43
  345. package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +7 -0
  346. package/esm/plugins/custom-cell-renderer/getRendererComponent.js +22 -44
  347. package/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +7 -0
  348. package/esm/plugins/custom-cell-renderer/index.js +6 -1
  349. package/esm/plugins/custom-cell-renderer/index.js.map +7 -0
  350. package/esm/plugins/editable/EditableComponents/ComboBox.js +20 -46
  351. package/esm/plugins/editable/EditableComponents/ComboBox.js.map +7 -0
  352. package/esm/plugins/editable/EditableComponents/TextBox.js +26 -68
  353. package/esm/plugins/editable/EditableComponents/TextBox.js.map +7 -0
  354. package/esm/plugins/editable/EditableComponents/index.js +8 -2
  355. package/esm/plugins/editable/EditableComponents/index.js.map +7 -0
  356. package/esm/plugins/editable/EditablePlugin.js +27 -63
  357. package/esm/plugins/editable/EditablePlugin.js.map +7 -0
  358. package/esm/plugins/editable/decorateEditable.js +32 -68
  359. package/esm/plugins/editable/decorateEditable.js.map +7 -0
  360. package/esm/plugins/editable/getEditorComponent.js +39 -66
  361. package/esm/plugins/editable/getEditorComponent.js.map +7 -0
  362. package/esm/plugins/editable/index.js +9 -3
  363. package/esm/plugins/editable/index.js.map +7 -0
  364. package/esm/plugins/expandable-grid/ExpandableColumn.js +82 -133
  365. package/esm/plugins/expandable-grid/ExpandableColumn.js.map +7 -0
  366. package/esm/plugins/expandable-grid/ExpandablePlugin.js +81 -160
  367. package/esm/plugins/expandable-grid/ExpandablePlugin.js.map +7 -0
  368. package/esm/plugins/expandable-grid/ExpandedRow.js +86 -124
  369. package/esm/plugins/expandable-grid/ExpandedRow.js.map +7 -0
  370. package/esm/plugins/expandable-grid/ExpandedRowExtra.js +25 -44
  371. package/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +7 -0
  372. package/esm/plugins/expandable-grid/index.js +8 -2
  373. package/esm/plugins/expandable-grid/index.js.map +7 -0
  374. package/esm/plugins/expandable-grid/useExpandGridState.js +14 -25
  375. package/esm/plugins/expandable-grid/useExpandGridState.js.map +7 -0
  376. package/esm/plugins/export-data/ExportDataPlugin.js +52 -103
  377. package/esm/plugins/export-data/ExportDataPlugin.js.map +7 -0
  378. package/esm/plugins/export-data/index.js +6 -1
  379. package/esm/plugins/export-data/index.js.map +7 -0
  380. package/esm/plugins/filterable/FilterablePlugin.js +22 -44
  381. package/esm/plugins/filterable/FilterablePlugin.js.map +7 -0
  382. package/esm/plugins/filterable/addFilterToColumn.js +11 -20
  383. package/esm/plugins/filterable/addFilterToColumn.js.map +7 -0
  384. package/esm/plugins/filterable/components/FilterableHeader.js +85 -95
  385. package/esm/plugins/filterable/components/FilterableHeader.js.map +7 -0
  386. package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +83 -103
  387. package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +7 -0
  388. package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +68 -63
  389. package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +7 -0
  390. package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +108 -116
  391. package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +7 -0
  392. package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +84 -106
  393. package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +7 -0
  394. package/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js +6 -3
  395. package/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +7 -0
  396. package/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +16 -12
  397. package/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +7 -0
  398. package/esm/plugins/filterable/filterableFormatter.js +32 -45
  399. package/esm/plugins/filterable/filterableFormatter.js.map +7 -0
  400. package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +29 -44
  401. package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +7 -0
  402. package/esm/plugins/filterable/filtering-helper/strategiesOperators.js +11 -13
  403. package/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +7 -0
  404. package/esm/plugins/filterable/helper.js +42 -62
  405. package/esm/plugins/filterable/helper.js.map +7 -0
  406. package/esm/plugins/filterable/index.js +6 -1
  407. package/esm/plugins/filterable/index.js.map +7 -0
  408. package/esm/plugins/filterable/useFilterableState.js +33 -54
  409. package/esm/plugins/filterable/useFilterableState.js.map +7 -0
  410. package/esm/plugins/grouping-by/GroupingByPlugin.js +10 -14
  411. package/esm/plugins/grouping-by/GroupingByPlugin.js.map +7 -0
  412. package/esm/plugins/grouping-grid/GroupingPlugin.js +53 -94
  413. package/esm/plugins/grouping-grid/GroupingPlugin.js.map +7 -0
  414. package/esm/plugins/grouping-grid/walkStrategy.js +17 -22
  415. package/esm/plugins/grouping-grid/walkStrategy.js.map +7 -0
  416. package/esm/plugins/index.js +39 -19
  417. package/esm/plugins/index.js.map +7 -0
  418. package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +31 -74
  419. package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +7 -0
  420. package/esm/plugins/infinite-scrolling/index.js +6 -1
  421. package/esm/plugins/infinite-scrolling/index.js.map +7 -0
  422. package/esm/plugins/pagination/PaginationPlugin.js +42 -75
  423. package/esm/plugins/pagination/PaginationPlugin.js.map +7 -0
  424. package/esm/plugins/pagination/components/Pagination.js +25 -27
  425. package/esm/plugins/pagination/components/Pagination.js.map +7 -0
  426. package/esm/plugins/pagination/components/Paginator.js +29 -35
  427. package/esm/plugins/pagination/components/Paginator.js.map +7 -0
  428. package/esm/plugins/pagination/components/PerPageDropdown.js +22 -54
  429. package/esm/plugins/pagination/components/PerPageDropdown.js.map +7 -0
  430. package/esm/plugins/pagination/helper.js +16 -19
  431. package/esm/plugins/pagination/helper.js.map +7 -0
  432. package/esm/plugins/pagination/index.js +6 -1
  433. package/esm/plugins/pagination/index.js.map +7 -0
  434. package/esm/plugins/pagination/usePaginationState.js +15 -28
  435. package/esm/plugins/pagination/usePaginationState.js.map +7 -0
  436. package/esm/plugins/resizable/ResizablePlugin.js +20 -45
  437. package/esm/plugins/resizable/ResizablePlugin.js.map +7 -0
  438. package/esm/plugins/resizable/decorateResizable.js +19 -41
  439. package/esm/plugins/resizable/decorateResizable.js.map +7 -0
  440. package/esm/plugins/resizable/index.js +6 -1
  441. package/esm/plugins/resizable/index.js.map +7 -0
  442. package/esm/plugins/resizable/useResizeHandle.js +24 -39
  443. package/esm/plugins/resizable/useResizeHandle.js.map +7 -0
  444. package/esm/plugins/resizable/utils.js +20 -18
  445. package/esm/plugins/resizable/utils.js.map +7 -0
  446. package/esm/plugins/row-dnd/DndRowsPlugin.js +73 -71
  447. package/esm/plugins/row-dnd/DndRowsPlugin.js.map +7 -0
  448. package/esm/plugins/row-dnd/index.js +6 -1
  449. package/esm/plugins/row-dnd/index.js.map +7 -0
  450. package/esm/plugins/selectable/SelectablePlugin.js +64 -117
  451. package/esm/plugins/selectable/SelectablePlugin.js.map +7 -0
  452. package/esm/plugins/selectable/addSelectableColumn.js +39 -57
  453. package/esm/plugins/selectable/addSelectableColumn.js.map +7 -0
  454. package/esm/plugins/selectable/helper.js +19 -25
  455. package/esm/plugins/selectable/helper.js.map +7 -0
  456. package/esm/plugins/selectable/index.js +6 -1
  457. package/esm/plugins/selectable/index.js.map +7 -0
  458. package/esm/plugins/selectable/selectableFormatter.js +54 -97
  459. package/esm/plugins/selectable/selectableFormatter.js.map +7 -0
  460. package/esm/plugins/selectable/useSelectableState.js +34 -78
  461. package/esm/plugins/selectable/useSelectableState.js.map +7 -0
  462. package/esm/plugins/sortable/SortablePlugin.js +30 -43
  463. package/esm/plugins/sortable/SortablePlugin.js.map +7 -0
  464. package/esm/plugins/sortable/checkIfSortable.js +8 -9
  465. package/esm/plugins/sortable/checkIfSortable.js.map +7 -0
  466. package/esm/plugins/sortable/index.js +6 -1
  467. package/esm/plugins/sortable/index.js.map +7 -0
  468. package/esm/plugins/sortable/sortHeaderFormatter.js +27 -43
  469. package/esm/plugins/sortable/sortHeaderFormatter.js.map +7 -0
  470. package/esm/plugins/sortable/sortTree.js +13 -24
  471. package/esm/plugins/sortable/sortTree.js.map +7 -0
  472. package/esm/plugins/sortable/sorter.js +112 -163
  473. package/esm/plugins/sortable/sorter.js.map +7 -0
  474. package/esm/plugins/sortable/useSortableState.js +22 -49
  475. package/esm/plugins/sortable/useSortableState.js.map +7 -0
  476. package/esm/plugins/toolbar/RowRenderer.js +40 -61
  477. package/esm/plugins/toolbar/RowRenderer.js.map +7 -0
  478. package/esm/plugins/toolbar/ToolbarPlugin.js +19 -23
  479. package/esm/plugins/toolbar/ToolbarPlugin.js.map +7 -0
  480. package/esm/plugins/toolbar/ToolbarTrigger.js +59 -57
  481. package/esm/plugins/toolbar/ToolbarTrigger.js.map +7 -0
  482. package/esm/plugins/toolbar/index.js +6 -1
  483. package/esm/plugins/toolbar/index.js.map +7 -0
  484. package/esm/plugins/virtualization/AutoHeightList.js +30 -40
  485. package/esm/plugins/virtualization/AutoHeightList.js.map +7 -0
  486. package/esm/plugins/virtualization/VirtualizationPlugin.js +55 -84
  487. package/esm/plugins/virtualization/VirtualizationPlugin.js.map +7 -0
  488. package/esm/plugins/virtualization/VirtualizedBody.js +94 -132
  489. package/esm/plugins/virtualization/VirtualizedBody.js.map +7 -0
  490. package/esm/plugins/virtualization/VirtualizedBodyRow.js +10 -15
  491. package/esm/plugins/virtualization/VirtualizedBodyRow.js.map +7 -0
  492. package/esm/plugins/virtualization/helper.js +6 -3
  493. package/esm/plugins/virtualization/helper.js.map +7 -0
  494. package/esm/plugins/virtualization/index.js +6 -1
  495. package/esm/plugins/virtualization/index.js.map +7 -0
  496. package/esm/renders/CellWithAddons.js +69 -40
  497. package/esm/renders/CellWithAddons.js.map +7 -0
  498. package/esm/renders/index.js +8 -2
  499. package/esm/renders/index.js.map +7 -0
  500. package/esm/renders/styled.js +49 -16
  501. package/esm/renders/styled.js.map +7 -0
  502. package/esm/rowSizes.js +15 -6
  503. package/esm/rowSizes.js.map +7 -0
  504. package/esm/utilities/DataGridUtilities.json +1315 -0
  505. package/esm/utilities/getPluginsFromProps.js +25 -24
  506. package/esm/utilities/getPluginsFromProps.js.map +7 -0
  507. package/esm/utilities/getScrollbarSize.js +15 -21
  508. package/esm/utilities/getScrollbarSize.js.map +7 -0
  509. package/esm/utilities/normalizeData.js +15 -24
  510. package/esm/utilities/normalizeData.js.map +7 -0
  511. package/package.json +20 -20
  512. package/types/DSDataGrid.d.ts +2 -116
  513. package/types/DataGridImpl.d.ts +3 -2
  514. package/types/PaginatedDataGrid.d.ts +1 -2
  515. package/types/columns/IconColumn.d.ts +3 -2
  516. package/types/components/BodyCell.d.ts +13 -12
  517. package/types/components/ColumnVisibilityMenuOption.d.ts +2 -2
  518. package/types/components/ColumnsOptionsMenuSection.d.ts +1 -0
  519. package/types/components/HeaderCell.d.ts +10 -10
  520. package/types/components/NoResults.d.ts +2 -2
  521. package/types/components/RowsLoader.d.ts +2 -2
  522. package/types/components/Table.d.ts +6 -11
  523. package/types/components/TableBody.d.ts +3 -8
  524. package/types/components/TableHeader.d.ts +2 -1
  525. package/types/components/footer/addOptionalFooterComponents.d.ts +1 -0
  526. package/types/components/header/PrimaryControls.d.ts +1 -0
  527. package/types/components/header/addOptionalHeaderComponents.d.ts +1 -1
  528. package/types/components/renderers/index.d.ts +1 -1
  529. package/types/components/renderers/renderRowsLoader.d.ts +1 -1
  530. package/types/index.d.ts +7 -8
  531. package/types/plugins/body-header-scroll-sync/index.d.ts +1 -1
  532. package/types/plugins/column-dnd/index.d.ts +1 -1
  533. package/types/plugins/column-sizing/getColumnNameFromProperty.d.ts +2 -1
  534. package/types/plugins/column-sizing/index.d.ts +1 -1
  535. package/types/plugins/column-sizing/useColumnSizeService.d.ts +2 -1
  536. package/types/plugins/custom-cell-renderer/addCustomRendererToCell.d.ts +1 -0
  537. package/types/plugins/custom-cell-renderer/getRendererComponent.d.ts +1 -0
  538. package/types/plugins/custom-cell-renderer/index.d.ts +1 -1
  539. package/types/plugins/editable/EditableComponents/ComboBox.d.ts +3 -1
  540. package/types/plugins/editable/EditableComponents/TextBox.d.ts +3 -1
  541. package/types/plugins/editable/getEditorComponent.d.ts +1 -0
  542. package/types/plugins/editable/index.d.ts +2 -2
  543. package/types/plugins/expandable-grid/ExpandableColumn.d.ts +3 -2
  544. package/types/plugins/expandable-grid/ExpandedRow.d.ts +1 -0
  545. package/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +1 -0
  546. package/types/plugins/expandable-grid/index.d.ts +2 -2
  547. package/types/plugins/export-data/index.d.ts +1 -1
  548. package/types/plugins/filterable/components/FilterableHeader.d.ts +15 -15
  549. package/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +1 -0
  550. package/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +1 -0
  551. package/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts +2 -1
  552. package/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +1 -0
  553. package/types/plugins/filterable/components/filterable-menus/getFilterMenuByType.d.ts +2 -1
  554. package/types/plugins/filterable/filterableFormatter.d.ts +3 -2
  555. package/types/plugins/filterable/filtering-helper/filterRowsByQuery.d.ts +2 -1
  556. package/types/plugins/filterable/filtering-helper/strategiesOperators.d.ts +2 -2
  557. package/types/plugins/filterable/index.d.ts +1 -1
  558. package/types/plugins/index.d.ts +16 -16
  559. package/types/plugins/infinite-scrolling/index.d.ts +1 -1
  560. package/types/plugins/pagination/components/Paginator.d.ts +1 -0
  561. package/types/plugins/pagination/components/PerPageDropdown.d.ts +1 -0
  562. package/types/plugins/pagination/helper.d.ts +3 -2
  563. package/types/plugins/pagination/index.d.ts +1 -1
  564. package/types/plugins/resizable/index.d.ts +1 -1
  565. package/types/plugins/row-dnd/index.d.ts +1 -1
  566. package/types/plugins/selectable/index.d.ts +1 -1
  567. package/types/plugins/selectable/selectableFormatter.d.ts +1 -0
  568. package/types/plugins/sortable/index.d.ts +1 -1
  569. package/types/plugins/sortable/sortHeaderFormatter.d.ts +1 -0
  570. package/types/plugins/sortable/sortTree.d.ts +1 -0
  571. package/types/plugins/sortable/sorter.d.ts +1 -1
  572. package/types/plugins/toolbar/index.d.ts +1 -1
  573. package/types/plugins/virtualization/AutoHeightList.d.ts +1 -1
  574. package/types/plugins/virtualization/VirtualizedBody.d.ts +1 -0
  575. package/types/plugins/virtualization/VirtualizedBodyRow.d.ts +2 -2
  576. package/types/plugins/virtualization/index.d.ts +1 -1
  577. package/types/utilities/getPluginsFromProps.d.ts +2 -1
@@ -1,33 +1,14 @@
1
- import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
- import _jsx from '@babel/runtime/helpers/esm/jsx';
3
- import 'core-js/modules/web.dom-collections.iterator.js';
4
- import 'core-js/modules/esnext.async-iterator.reduce.js';
5
- import 'core-js/modules/esnext.iterator.constructor.js';
6
- import 'core-js/modules/esnext.iterator.reduce.js';
7
- import 'core-js/modules/esnext.async-iterator.map.js';
8
- import 'core-js/modules/esnext.iterator.map.js';
9
- import 'core-js/modules/esnext.async-iterator.filter.js';
10
- import 'core-js/modules/esnext.iterator.filter.js';
11
- import 'core-js/modules/esnext.async-iterator.for-each.js';
12
- import 'core-js/modules/esnext.iterator.for-each.js';
13
- import { useState, useRef, useCallback, useEffect, useLayoutEffect } from 'react';
14
- import { debounce, isNaN, mergeRefs } from '@elliemae/ds-utilities';
15
- import NoResults from '../../components/NoResults.js';
16
- import VirtualizedBodyRow from './VirtualizedBodyRow.js';
17
- import { RowSizes } from '../../rowSizes.js';
18
- import { isSafari } from './helper.js';
19
- import { jsx } from 'react/jsx-runtime';
20
-
21
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
22
-
23
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1
+ import * as React from "react";
2
+ import React2, { useEffect, useState, useCallback, useRef, useLayoutEffect } from "react";
3
+ import PropTypes from "prop-types";
4
+ import { mergeRefs, debounce, isNaN } from "@elliemae/ds-utilities";
5
+ import { NoResults } from "../../components/NoResults";
6
+ import { VirtualizedBodyRow } from "./VirtualizedBodyRow";
7
+ import { RowSizes } from "../../rowSizes";
8
+ import { isSafari } from "./helper";
24
9
  const wrapperSafari = {};
25
- const wrapperGeneric = {
26
- overflowY: 'auto',
27
- overflowX: 'visible'
28
- };
29
-
30
- const VirtualizedBody = props => {
10
+ const wrapperGeneric = { overflowY: "auto", overflowX: "visible" };
11
+ const VirtualizedBody = (props) => {
31
12
  const {
32
13
  autoScrollToId,
33
14
  columns,
@@ -45,8 +26,7 @@ const VirtualizedBody = props => {
45
26
  rowRenderer,
46
27
  rowSize,
47
28
  setHasScroll,
48
- filters // hack to reset the scrollTop to 0 if filters change
49
-
29
+ filters
50
30
  } = props;
51
31
  const rowHeight = defaultRowHeight || RowSizes[rowSize];
52
32
  const [scrollTop, setScrollTop] = useState(0);
@@ -54,41 +34,29 @@ const VirtualizedBody = props => {
54
34
  const [hasScrollBar, setHasScrollBar] = useState(false);
55
35
  const rowStyleCache = useRef({});
56
36
  const [renderedIndexes, setRenderedIndexes] = useState([0, 30]);
57
-
58
37
  const getCalculatedHeightBetweenIndexes = (start, end) => {
59
- const {
60
- itemSize = () => rowHeight
61
- } = listProps;
62
-
38
+ const { itemSize = () => rowHeight } = listProps;
63
39
  if (expandable) {
64
- return rows.slice(start, end).map((_, idx) => idx).map(idx => itemSize(idx)).reduce((acc, curr) => acc + curr, 0);
40
+ return rows.slice(start, end).map((_, idx) => idx).map((idx) => itemSize(idx)).reduce((acc, curr) => acc + curr, 0);
65
41
  }
66
-
67
42
  return (end - start) * rowHeight;
68
43
  };
69
-
70
44
  const generateRowPositionMap = () => rows.map((row, idx) => getCalculatedHeightBetweenIndexes(0, idx));
71
-
72
45
  const rowPositionMap = useRef(generateRowPositionMap());
73
46
  const [virtualizedBodyRef, setVirtualizedBodyRef] = useState(null);
74
47
  const handlerRef = useRef();
75
- const autoScrollTo = useCallback(scrollHeight => {
76
- const {
77
- itemSize = () => rowHeight
78
- } = listProps;
79
- const idx = rows.findIndex(item => item[rowKey] === autoScrollToId);
48
+ const autoScrollTo = useCallback((scrollHeight) => {
49
+ const { itemSize = () => rowHeight } = listProps;
50
+ const idx = rows.findIndex((item) => item[rowKey] === autoScrollToId);
80
51
  let val = rowPositionMap.current[idx] || 0;
81
52
  const lastPositionIdx = rowPositionMap.current.length - 1;
82
53
  let lastPosition = 0;
83
-
84
54
  if (lastPositionIdx > -1) {
85
55
  lastPosition = rowPositionMap.current[lastPositionIdx] - scrollHeight + itemSize(lastPositionIdx);
86
56
  }
87
-
88
57
  if (lastPosition < val) {
89
58
  val = lastPosition;
90
59
  }
91
-
92
60
  if (virtualizedBodyRef) {
93
61
  if (idx > -1) {
94
62
  setScrollTop(val);
@@ -99,11 +67,7 @@ const VirtualizedBody = props => {
99
67
  useEffect(() => {
100
68
  autoScrollTo(visibleHeight);
101
69
  }, [autoScrollToId, visibleHeight]);
102
- const handler = useCallback(debounce(_ref => {
103
- let {
104
- target
105
- } = _ref;
106
- // Update coordinates
70
+ const handler = useCallback(debounce(({ target }) => {
107
71
  setScrollTop(target.scrollTop || 0);
108
72
  }, 100), [setScrollTop]);
109
73
  useEffect(() => {
@@ -115,38 +79,31 @@ const VirtualizedBody = props => {
115
79
  useLayoutEffect(() => {
116
80
  let top = Math.ceil(scrollTop / rowHeight);
117
81
  let bot = Math.ceil((scrollTop + visibleHeight) / rowHeight);
118
-
119
82
  if (expandable) {
120
- // updateMapperFirst
121
83
  rowPositionMap.current = generateRowPositionMap();
122
- top = rowPositionMap.current.findIndex(item => item > scrollTop);
123
- bot = rowPositionMap.current.findIndex(item => item > scrollTop + visibleHeight);
124
- if (bot === -1) bot = rowPositionMap.current.length;
84
+ top = rowPositionMap.current.findIndex((item) => item > scrollTop);
85
+ bot = rowPositionMap.current.findIndex((item) => item > scrollTop + visibleHeight);
86
+ if (bot === -1)
87
+ bot = rowPositionMap.current.length;
125
88
  }
126
-
127
89
  let upperBound = top - 1 - overscanCount;
128
90
  let lowerBound = bot - 1 + overscanCount;
129
-
130
91
  if (upperBound < 0) {
131
92
  upperBound = 0;
132
93
  }
133
-
134
94
  if (lowerBound - upperBound < overscanCount) {
135
95
  lowerBound = upperBound + overscanCount;
136
96
  }
137
-
138
97
  if (lowerBound > rows.length) {
139
98
  lowerBound = rows.length;
140
99
  }
141
-
142
100
  setHasScrollBar(visibleHeight < getHeight());
143
101
  setHasScroll(visibleHeight < getHeight());
144
102
  setRenderedIndexes([upperBound, lowerBound]);
145
103
  }, [visibleHeight, scrollTop, rows]);
146
104
  useLayoutEffect(() => {
147
105
  if (virtualizedBodyRef) {
148
- const parsedVisibleHeight = parseFloat(window.getComputedStyle(virtualizedBodyRef, null).getPropertyValue('height')); // eslint-disable-next-line no-restricted-globals
149
-
106
+ const parsedVisibleHeight = parseFloat(window.getComputedStyle(virtualizedBodyRef, null).getPropertyValue("height"));
150
107
  if (!isNaN(parsedVisibleHeight)) {
151
108
  setVisibleHeight(parsedVisibleHeight);
152
109
  autoScrollTo(parsedVisibleHeight);
@@ -155,114 +112,119 @@ const VirtualizedBody = props => {
155
112
  }, [rows, virtualizedBodyRef]);
156
113
  useEffect(() => {
157
114
  if (virtualizedBodyRef) {
158
- const eventListener = event => handlerRef.current(event);
159
-
160
- virtualizedBodyRef.addEventListener('scroll', eventListener);
115
+ const eventListener = (event) => handlerRef.current(event);
116
+ virtualizedBodyRef.addEventListener("scroll", eventListener);
161
117
  return () => {
162
- virtualizedBodyRef.removeEventListener('scroll', eventListener);
118
+ virtualizedBodyRef.removeEventListener("scroll", eventListener);
163
119
  };
164
120
  }
165
-
166
121
  return () => null;
167
122
  }, [virtualizedBodyRef]);
168
-
169
123
  const getHeight = () => {
170
124
  let returnHeight = 0;
171
-
172
125
  if (expandable) {
173
126
  returnHeight = getCalculatedHeightBetweenIndexes(0, rows.length) + 8;
174
127
  } else {
175
128
  returnHeight = rows.length * rowHeight + 8;
176
- } // if (visibleHeight > returnHeight) {
177
- // return visibleHeight;
178
- // }
179
-
180
-
129
+ }
181
130
  if (virtualizedBodyRef && virtualizedBodyRef.scrollHeight > virtualizedBodyRef.clientHeight) {
182
131
  return returnHeight + 10;
183
132
  }
184
-
185
133
  return returnHeight;
186
134
  };
187
-
188
135
  const getRowStyle = (row, index, specificRowHeight) => {
189
- const {
190
- itemSize
191
- } = listProps;
192
-
136
+ const { itemSize } = listProps;
193
137
  if (!expandable && rowStyleCache.current[index]) {
194
138
  return rowStyleCache.current[index];
195
139
  }
196
-
197
140
  rowStyleCache.current[index] = {
198
141
  height: itemSize ? itemSize(index) : specificRowHeight,
199
142
  left: 0,
200
143
  right: 0,
201
144
  top: getCalculatedHeightBetweenIndexes(0, index),
202
- position: 'absolute'
145
+ position: "absolute"
203
146
  };
204
147
  return rowStyleCache.current[index];
205
148
  };
206
-
207
- const generateRenderedRows = () => rows.slice(renderedIndexes[0], renderedIndexes[1] + 1).map((_, index) => /*#__PURE__*/_jsx(VirtualizedBodyRow, {
149
+ const generateRenderedRows = () => rows.slice(renderedIndexes[0], renderedIndexes[1] + 1).map((_, index) => /* @__PURE__ */ React2.createElement(VirtualizedBodyRow, {
208
150
  data: {
209
151
  rows,
210
152
  columns,
211
153
  rowKey,
212
- renderer: {
213
- rowRenderer
214
- }
154
+ renderer: { rowRenderer }
215
155
  },
216
156
  index: renderedIndexes[0] + index,
157
+ key: rows[renderedIndexes[0] + index][rowKey],
217
158
  style: getRowStyle(rows[renderedIndexes[0] + index], renderedIndexes[0] + index, rowHeight)
218
- }, rows[renderedIndexes[0] + index][rowKey]));
219
-
220
- const wrapperStyle = _objectSpread({
221
- height: '100%'
222
- }, isSafari ? wrapperSafari : wrapperGeneric);
223
-
159
+ }));
160
+ const wrapperStyle = {
161
+ height: "100%",
162
+ ...isSafari ? wrapperSafari : wrapperGeneric
163
+ };
224
164
  const bodyStyle = {
225
165
  height: getHeight(),
226
- willChange: 'transform',
227
- backfaceVisibility: 'hidden'
166
+ willChange: "transform",
167
+ backfaceVisibility: "hidden"
228
168
  };
229
- return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, props), {}, {
230
- innerRef: innerRef,
231
- children: !isPlaceholderActive ? /*#__PURE__*/jsx("div", {
232
- className: "virtualized-body-wrapper",
233
- style: wrapperStyle,
234
- ref: elem => {
235
- if (elem) {
236
- if (isSafari) {
237
- setVirtualizedBodyRef(elem.parentElement); // eslint-disable-next-line no-param-reassign
238
-
239
- elem.parentElement.scrollTop = scrollTop;
240
- mergeRefs(listProps.outerRef)(elem.parentElement);
241
- } else {
242
- setVirtualizedBodyRef(elem);
243
- mergeRefs(listProps.outerRef)(elem);
244
- }
169
+ return /* @__PURE__ */ React2.createElement(Component, {
170
+ ...props,
171
+ innerRef
172
+ }, !isPlaceholderActive ? /* @__PURE__ */ React2.createElement("div", {
173
+ className: "virtualized-body-wrapper",
174
+ style: wrapperStyle,
175
+ ref: (elem) => {
176
+ if (elem) {
177
+ if (isSafari) {
178
+ setVirtualizedBodyRef(elem.parentElement);
179
+ elem.parentElement.scrollTop = scrollTop;
180
+ mergeRefs(listProps.outerRef)(elem.parentElement);
181
+ } else {
182
+ setVirtualizedBodyRef(elem);
183
+ mergeRefs(listProps.outerRef)(elem);
245
184
  }
246
- },
247
- children: /*#__PURE__*/jsx("div", {
248
- "data-testid": "virtualized-body",
249
- className: "virtualized-body".concat(hasScrollBar ? ' with-scrollbar' : ''),
250
- style: bodyStyle,
251
- ref: r => {
252
- mergeRefs(innerBody)(r);
253
- },
254
- children: generateRenderedRows()
255
- })
256
- }) : /*#__PURE__*/_jsx(NoResults, {
257
- innerRef: innerRef,
258
- rowRenderer: rowRenderer
259
- }, void 0, noResultsPlaceholder)
260
- }));
185
+ }
186
+ }
187
+ }, /* @__PURE__ */ React2.createElement("div", {
188
+ "data-testid": "virtualized-body",
189
+ className: `virtualized-body${hasScrollBar ? " with-scrollbar" : ""}`,
190
+ style: bodyStyle,
191
+ ref: (r) => {
192
+ mergeRefs(innerBody)(r);
193
+ }
194
+ }, generateRenderedRows())) : /* @__PURE__ */ React2.createElement(NoResults, {
195
+ innerRef,
196
+ rowRenderer
197
+ }, noResultsPlaceholder));
261
198
  };
262
-
263
199
  VirtualizedBody.defaultProps = {
264
200
  rows: [],
265
201
  overscanCount: 10
266
202
  };
267
-
268
- export { VirtualizedBody as default };
203
+ VirtualizedBody.propTypes = {
204
+ autoScrollToId: PropTypes.number,
205
+ columns: PropTypes.arrayOf(PropTypes.shape({})),
206
+ component: PropTypes.element,
207
+ expandable: PropTypes.bool,
208
+ filters: PropTypes.any,
209
+ innerRef: PropTypes.any,
210
+ innerBody: PropTypes.any,
211
+ isPlaceholderActive: PropTypes.bool,
212
+ listProps: PropTypes.shape({
213
+ itemSize: PropTypes.func,
214
+ outerRef: PropTypes.any
215
+ }),
216
+ noResultsPlaceholder: PropTypes.oneOf([PropTypes.string, PropTypes.element]),
217
+ overscanCount: PropTypes.number,
218
+ rows: PropTypes.arrayOf(PropTypes.shape({})),
219
+ rowHeight: PropTypes.number,
220
+ rowKey: PropTypes.string,
221
+ rowRenderer: PropTypes.element,
222
+ rowSize: PropTypes.any,
223
+ setHasScroll: PropTypes.func
224
+ };
225
+ var VirtualizedBody_default = VirtualizedBody;
226
+ export {
227
+ VirtualizedBody,
228
+ VirtualizedBody_default as default
229
+ };
230
+ //# sourceMappingURL=VirtualizedBody.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/virtualization/VirtualizedBody.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\n/* eslint-disable max-statements */\nimport React, { useEffect, useState, useCallback, useRef, useLayoutEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport { mergeRefs, debounce, isNaN } from '@elliemae/ds-utilities';\nimport { NoResults } from '../../components/NoResults';\nimport { VirtualizedBodyRow } from './VirtualizedBodyRow';\nimport { RowSizes } from '../../rowSizes';\nimport { isSafari } from './helper';\n\nconst wrapperSafari = {};\nconst wrapperGeneric = { overflowY: 'auto', overflowX: 'visible' };\n\nconst VirtualizedBody = (props) => {\n const {\n autoScrollToId,\n columns,\n component: Component,\n expandable,\n innerRef,\n innerBody,\n isPlaceholderActive,\n listProps,\n noResultsPlaceholder,\n overscanCount,\n rows,\n rowHeight: defaultRowHeight,\n rowKey,\n rowRenderer,\n rowSize,\n setHasScroll,\n filters, // hack to reset the scrollTop to 0 if filters change\n } = props;\n const rowHeight = defaultRowHeight || RowSizes[rowSize];\n const [scrollTop, setScrollTop] = useState(0);\n const [visibleHeight, setVisibleHeight] = useState(0);\n const [hasScrollBar, setHasScrollBar] = useState(false);\n const rowStyleCache = useRef({});\n const [renderedIndexes, setRenderedIndexes] = useState([0, 30]);\n\n const getCalculatedHeightBetweenIndexes = (start, end) => {\n const { itemSize = () => rowHeight } = listProps;\n if (expandable) {\n return rows\n .slice(start, end)\n .map((_, idx) => idx)\n .map((idx) => itemSize(idx))\n .reduce((acc, curr) => acc + curr, 0);\n }\n return (end - start) * rowHeight;\n };\n\n const generateRowPositionMap = () => rows.map((row, idx) => getCalculatedHeightBetweenIndexes(0, idx));\n\n const rowPositionMap = useRef(generateRowPositionMap());\n const [virtualizedBodyRef, setVirtualizedBodyRef] = useState(null);\n const handlerRef = useRef();\n\n const autoScrollTo = useCallback(\n (scrollHeight) => {\n const { itemSize = () => rowHeight } = listProps;\n const idx = rows.findIndex((item) => item[rowKey] === autoScrollToId);\n let val = rowPositionMap.current[idx] || 0;\n const lastPositionIdx = rowPositionMap.current.length - 1;\n let lastPosition = 0;\n if (lastPositionIdx > -1) {\n lastPosition = rowPositionMap.current[lastPositionIdx] - scrollHeight + itemSize(lastPositionIdx);\n }\n if (lastPosition < val) {\n val = lastPosition;\n }\n if (virtualizedBodyRef) {\n if (idx > -1) {\n setScrollTop(val);\n virtualizedBodyRef.scrollTop = val;\n }\n }\n },\n [rows, virtualizedBodyRef],\n );\n\n useEffect(() => {\n autoScrollTo(visibleHeight);\n }, [autoScrollToId, visibleHeight]);\n\n const handler = useCallback(\n debounce(({ target }) => {\n // Update coordinates\n setScrollTop(target.scrollTop || 0);\n }, 100),\n [setScrollTop],\n );\n\n useEffect(() => {\n setScrollTop(0);\n }, [filters]);\n\n useEffect(() => {\n handlerRef.current = handler;\n }, [handler]);\n\n useLayoutEffect(() => {\n let top = Math.ceil(scrollTop / rowHeight);\n let bot = Math.ceil((scrollTop + visibleHeight) / rowHeight);\n if (expandable) {\n // updateMapperFirst\n rowPositionMap.current = generateRowPositionMap();\n top = rowPositionMap.current.findIndex((item) => item > scrollTop);\n bot = rowPositionMap.current.findIndex((item) => item > scrollTop + visibleHeight);\n if (bot === -1) bot = rowPositionMap.current.length;\n }\n let upperBound = top - 1 - overscanCount;\n let lowerBound = bot - 1 + overscanCount;\n if (upperBound < 0) {\n upperBound = 0;\n }\n if (lowerBound - upperBound < overscanCount) {\n lowerBound = upperBound + overscanCount;\n }\n if (lowerBound > rows.length) {\n lowerBound = rows.length;\n }\n setHasScrollBar(visibleHeight < getHeight());\n setHasScroll(visibleHeight < getHeight());\n setRenderedIndexes([upperBound, lowerBound]);\n }, [visibleHeight, scrollTop, rows]);\n\n useLayoutEffect(() => {\n if (virtualizedBodyRef) {\n const parsedVisibleHeight = parseFloat(\n window.getComputedStyle(virtualizedBodyRef, null).getPropertyValue('height'),\n );\n // eslint-disable-next-line no-restricted-globals\n if (!isNaN(parsedVisibleHeight)) {\n setVisibleHeight(parsedVisibleHeight);\n autoScrollTo(parsedVisibleHeight);\n }\n }\n }, [rows, virtualizedBodyRef]);\n\n useEffect(() => {\n if (virtualizedBodyRef) {\n const eventListener = (event) => handlerRef.current(event);\n virtualizedBodyRef.addEventListener('scroll', eventListener);\n\n return () => {\n virtualizedBodyRef.removeEventListener('scroll', eventListener);\n };\n }\n return () => null;\n }, [virtualizedBodyRef]);\n\n const getHeight = () => {\n let returnHeight = 0;\n if (expandable) {\n returnHeight = getCalculatedHeightBetweenIndexes(0, rows.length) + 8;\n } else {\n returnHeight = rows.length * rowHeight + 8;\n }\n // if (visibleHeight > returnHeight) {\n // return visibleHeight;\n // }\n if (virtualizedBodyRef && virtualizedBodyRef.scrollHeight > virtualizedBodyRef.clientHeight) {\n return returnHeight + 10;\n }\n return returnHeight;\n };\n\n const getRowStyle = (row, index, specificRowHeight) => {\n const { itemSize } = listProps;\n\n if (!expandable && rowStyleCache.current[index]) {\n return rowStyleCache.current[index];\n }\n rowStyleCache.current[index] = {\n height: itemSize ? itemSize(index) : specificRowHeight,\n left: 0,\n right: 0,\n top: getCalculatedHeightBetweenIndexes(0, index),\n position: 'absolute',\n };\n return rowStyleCache.current[index];\n };\n\n const generateRenderedRows = () =>\n rows.slice(renderedIndexes[0], renderedIndexes[1] + 1).map((_, index) => (\n <VirtualizedBodyRow\n data={{\n rows,\n columns,\n rowKey,\n renderer: { rowRenderer },\n }}\n index={renderedIndexes[0] + index}\n key={rows[renderedIndexes[0] + index][rowKey]}\n style={getRowStyle(rows[renderedIndexes[0] + index], renderedIndexes[0] + index, rowHeight)}\n ></VirtualizedBodyRow>\n ));\n\n const wrapperStyle = {\n height: '100%',\n ...(isSafari ? wrapperSafari : wrapperGeneric),\n };\n const bodyStyle = {\n height: getHeight(),\n willChange: 'transform',\n backfaceVisibility: 'hidden',\n };\n\n return (\n <Component {...props} innerRef={innerRef}>\n {!isPlaceholderActive ? (\n <div\n className=\"virtualized-body-wrapper\"\n style={wrapperStyle}\n ref={(elem) => {\n if (elem) {\n if (isSafari) {\n setVirtualizedBodyRef(elem.parentElement);\n // eslint-disable-next-line no-param-reassign\n elem.parentElement.scrollTop = scrollTop;\n mergeRefs(listProps.outerRef)(elem.parentElement);\n } else {\n setVirtualizedBodyRef(elem);\n mergeRefs(listProps.outerRef)(elem);\n }\n }\n }}\n >\n <div\n data-testid=\"virtualized-body\"\n className={`virtualized-body${hasScrollBar ? ' with-scrollbar' : ''}`}\n style={bodyStyle}\n ref={(r) => {\n mergeRefs(innerBody)(r);\n }}\n >\n {generateRenderedRows()}\n </div>\n </div>\n ) : (\n <NoResults innerRef={innerRef} rowRenderer={rowRenderer}>\n {noResultsPlaceholder}\n </NoResults>\n )}\n </Component>\n );\n};\n\nVirtualizedBody.defaultProps = {\n rows: [],\n overscanCount: 10,\n};\n\nVirtualizedBody.propTypes = {\n autoScrollToId: PropTypes.number,\n columns: PropTypes.arrayOf(PropTypes.shape({})),\n component: PropTypes.element,\n expandable: PropTypes.bool,\n filters: PropTypes.any,\n innerRef: PropTypes.any,\n innerBody: PropTypes.any,\n isPlaceholderActive: PropTypes.bool,\n listProps: PropTypes.shape({\n itemSize: PropTypes.func,\n outerRef: PropTypes.any,\n }),\n noResultsPlaceholder: PropTypes.oneOf([PropTypes.string, PropTypes.element]),\n overscanCount: PropTypes.number,\n rows: PropTypes.arrayOf(PropTypes.shape({})),\n rowHeight: PropTypes.number,\n rowKey: PropTypes.string,\n rowRenderer: PropTypes.element,\n rowSize: PropTypes.any,\n setHasScroll: PropTypes.func,\n};\n\nexport { VirtualizedBody };\nexport default VirtualizedBody;\n"],
5
+ "mappings": "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",
6
+ "names": []
7
+ }
@@ -1,16 +1,8 @@
1
- function VirtualizedBodyRow(_ref) {
2
- let {
3
- data,
4
- index,
5
- style,
6
- key,
7
- isScrolling
8
- } = _ref;
1
+ import * as React from "react";
2
+ const VirtualizedBodyRow = ({ data, index, style, key, isScrolling }) => {
9
3
  const {
10
4
  rows,
11
- renderer: {
12
- rowRenderer
13
- }
5
+ renderer: { rowRenderer }
14
6
  } = data;
15
7
  const rowData = rows[index];
16
8
  return rowRenderer(rowData, {
@@ -19,10 +11,13 @@ function VirtualizedBodyRow(_ref) {
19
11
  rowIndex: index,
20
12
  key
21
13
  }, {
22
- // eslint-disable-next-line no-underscore-dangle
23
14
  rowIndex: index,
24
15
  isScrolling
25
16
  });
26
- }
27
-
28
- export { VirtualizedBodyRow as default };
17
+ };
18
+ var VirtualizedBodyRow_default = VirtualizedBodyRow;
19
+ export {
20
+ VirtualizedBodyRow,
21
+ VirtualizedBodyRow_default as default
22
+ };
23
+ //# sourceMappingURL=VirtualizedBodyRow.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/virtualization/VirtualizedBodyRow.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const VirtualizedBodyRow = ({ data, index, style, key, isScrolling }) => {\n const {\n rows,\n renderer: { rowRenderer },\n } = data;\n const rowData = rows[index];\n\n return rowRenderer(\n rowData,\n {\n style,\n index,\n rowIndex: index,\n key,\n },\n {\n // eslint-disable-next-line no-underscore-dangle\n rowIndex: index,\n isScrolling,\n },\n );\n};\n\nexport default VirtualizedBodyRow;\n"],
5
+ "mappings": "AAAA;ACAO,MAAM,qBAAqB,CAAC,EAAE,MAAM,OAAO,OAAO,KAAK,kBAAkB;AAC9E,QAAM;AAAA,IACJ;AAAA,IACA,UAAU,EAAE;AAAA,MACV;AACJ,QAAM,UAAU,KAAK;AAErB,SAAO,YACL,SACA;AAAA,IACE;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV;AAAA,KAEF;AAAA,IAEE,UAAU;AAAA,IACV;AAAA;AAAA;AAKN,IAAO,6BAAQ;",
6
+ "names": []
7
+ }
@@ -1,3 +1,6 @@
1
- const isSafari = navigator.vendor && navigator.vendor.indexOf('Apple') > -1 && navigator.userAgent && navigator.userAgent.indexOf('CriOS') === -1 && navigator.userAgent.indexOf('FxiOS') === -1;
2
-
3
- export { isSafari };
1
+ import * as React from "react";
2
+ const isSafari = navigator.vendor && navigator.vendor.indexOf("Apple") > -1 && navigator.userAgent && navigator.userAgent.indexOf("CriOS") === -1 && navigator.userAgent.indexOf("FxiOS") === -1;
3
+ export {
4
+ isSafari
5
+ };
6
+ //# sourceMappingURL=helper.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/virtualization/helper.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const isSafari =\n navigator.vendor &&\n navigator.vendor.indexOf('Apple') > -1 &&\n navigator.userAgent &&\n navigator.userAgent.indexOf('CriOS') === -1 &&\n navigator.userAgent.indexOf('FxiOS') === -1;\n"],
5
+ "mappings": "AAAA;ACAO,MAAM,WACX,UAAU,UACV,UAAU,OAAO,QAAQ,WAAW,MACpC,UAAU,aACV,UAAU,UAAU,QAAQ,aAAa,MACzC,UAAU,UAAU,QAAQ,aAAa;",
6
+ "names": []
7
+ }
@@ -1 +1,6 @@
1
- export { VirtualizationPlugin } from './VirtualizationPlugin.js';
1
+ import * as React from "react";
2
+ import { VirtualizationPlugin } from "./VirtualizationPlugin";
3
+ export {
4
+ VirtualizationPlugin
5
+ };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/plugins/virtualization/index.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { VirtualizationPlugin } from './VirtualizationPlugin';\n"],
5
+ "mappings": "AAAA;ACAA;",
6
+ "names": []
7
+ }
@@ -1,53 +1,82 @@
1
- import _jsx from '@babel/runtime/helpers/esm/jsx';
2
- import 'react';
3
- import { get } from 'lodash';
4
- import Grid from '@elliemae/ds-grid';
5
- import DSTruncatedTooltipText from '@elliemae/ds-truncated-tooltip-text';
6
- import { CellWrapper, ValueWrapper } from './styled.js';
7
-
8
- const CellWithAddons = _ref => {
9
- let {
10
- leftAddon,
11
- keepLeftPadding,
12
- rightAddon,
13
- badgeAddon,
14
- highLight,
15
- isEdit,
16
- editComponent,
17
- value,
18
- neutralText,
19
- metaData
20
- } = _ref;
1
+ import * as React from "react";
2
+ import React2 from "react";
3
+ import { get } from "lodash";
4
+ import PropTypes from "prop-types";
5
+ import { Grid } from "@elliemae/ds-grid";
6
+ import { DSTruncatedTooltipText } from "@elliemae/ds-truncated-tooltip-text";
7
+ import { CellWrapper, ValueWrapper } from "./styled";
8
+ const CellWithAddons = ({
9
+ leftAddon,
10
+ keepLeftPadding,
11
+ rightAddon,
12
+ badgeAddon,
13
+ highLight,
14
+ isEdit,
15
+ editComponent,
16
+ value,
17
+ neutralText,
18
+ metaData
19
+ }) => {
21
20
  const hasLeftAddon = !!leftAddon || keepLeftPadding;
22
21
  const hasRightAddon = !!rightAddon && !isEdit;
23
22
  const cols = [1];
24
- const shouldBeGray = neutralText || get(metaData, 'rowData.customRowProps.neutralText');
25
- if (hasLeftAddon) cols.unshift('auto');
26
- if (hasRightAddon) cols.push('auto');
27
- return /*#__PURE__*/_jsx(CellWrapper, {
23
+ const shouldBeGray = neutralText || get(metaData, "rowData.customRowProps.neutralText");
24
+ if (hasLeftAddon)
25
+ cols.unshift("auto");
26
+ if (hasRightAddon)
27
+ cols.push("auto");
28
+ return /* @__PURE__ */ React2.createElement(CellWrapper, {
28
29
  noPadding: hasLeftAddon || badgeAddon || highLight || hasRightAddon,
29
- hasLeftAddon: hasLeftAddon,
30
- hasRightAddon: hasRightAddon,
31
- badgeAddon: badgeAddon,
32
- highLight: highLight
33
- }, void 0, /*#__PURE__*/_jsx(Grid, {
30
+ hasLeftAddon,
31
+ hasRightAddon,
32
+ badgeAddon,
33
+ highLight
34
+ }, /* @__PURE__ */ React2.createElement(Grid, {
34
35
  height: "100%",
35
- cols: cols
36
- }, void 0, hasLeftAddon && /*#__PURE__*/_jsx(Grid, {
36
+ cols
37
+ }, hasLeftAddon && /* @__PURE__ */ React2.createElement(Grid, {
37
38
  alignItems: "center",
38
39
  pl: "xxs",
39
40
  pr: "xxs",
40
- width: keepLeftPadding ? '32px' : undefined
41
- }, void 0, hasLeftAddon && leftAddon), /*#__PURE__*/_jsx(Grid, {
41
+ width: keepLeftPadding ? "32px" : void 0
42
+ }, hasLeftAddon && leftAddon), /* @__PURE__ */ React2.createElement(Grid, {
42
43
  alignItems: "center"
43
- }, void 0, /*#__PURE__*/_jsx(ValueWrapper, {
44
+ }, /* @__PURE__ */ React2.createElement(ValueWrapper, {
44
45
  grayText: shouldBeGray
45
- }, void 0, isEdit ? editComponent : /*#__PURE__*/_jsx(DSTruncatedTooltipText, {
46
- value: value
47
- }))), hasRightAddon && /*#__PURE__*/_jsx(Grid, {
46
+ }, isEdit ? editComponent : /* @__PURE__ */ React2.createElement(DSTruncatedTooltipText, {
47
+ value
48
+ }))), hasRightAddon && /* @__PURE__ */ React2.createElement(Grid, {
48
49
  alignItems: "center",
49
50
  pl: "xxs"
50
- }, void 0, rightAddon)));
51
+ }, rightAddon)));
52
+ };
53
+ CellWithAddons.propTypes = {
54
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
55
+ leftAddon: PropTypes.element,
56
+ keepLeftPadding: PropTypes.bool,
57
+ rightAddon: PropTypes.element,
58
+ editComponent: PropTypes.element,
59
+ isEdit: PropTypes.bool,
60
+ badgeAddon: PropTypes.bool,
61
+ highLight: PropTypes.bool,
62
+ neutralText: PropTypes.bool,
63
+ metaData: PropTypes.shape({
64
+ className: PropTypes.string,
65
+ column: PropTypes.object,
66
+ columnIndex: PropTypes.number,
67
+ index: PropTypes.number,
68
+ isScrolling: PropTypes.bool,
69
+ key: PropTypes.string,
70
+ parentRowData: PropTypes.any,
71
+ property: PropTypes.string,
72
+ registerFocus: PropTypes.func,
73
+ rowData: PropTypes.object,
74
+ rowIndex: PropTypes.number,
75
+ rowKey: PropTypes.string,
76
+ style: PropTypes.object
77
+ })
78
+ };
79
+ export {
80
+ CellWithAddons
51
81
  };
52
-
53
- export { CellWithAddons };
82
+ //# sourceMappingURL=CellWithAddons.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/renders/CellWithAddons.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { get } from 'lodash';\nimport PropTypes from 'prop-types';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport { CellWrapper, ValueWrapper } from './styled';\n\n// eslint-disable-next-line complexity\nexport const CellWithAddons = ({\n leftAddon,\n keepLeftPadding,\n rightAddon,\n badgeAddon,\n highLight,\n isEdit,\n editComponent,\n value,\n neutralText,\n metaData,\n}) => {\n const hasLeftAddon = !!leftAddon || keepLeftPadding;\n const hasRightAddon = !!rightAddon && !isEdit;\n const cols = [1];\n const shouldBeGray = neutralText || get(metaData, 'rowData.customRowProps.neutralText');\n if (hasLeftAddon) cols.unshift('auto');\n if (hasRightAddon) cols.push('auto');\n return (\n <CellWrapper\n noPadding={hasLeftAddon || badgeAddon || highLight || hasRightAddon}\n hasLeftAddon={hasLeftAddon}\n hasRightAddon={hasRightAddon}\n badgeAddon={badgeAddon}\n highLight={highLight}\n >\n <Grid height=\"100%\" cols={cols}>\n {hasLeftAddon && (\n <Grid alignItems=\"center\" pl=\"xxs\" pr=\"xxs\" width={keepLeftPadding ? '32px' : undefined}>\n {hasLeftAddon && leftAddon}\n </Grid>\n )}\n <Grid alignItems=\"center\">\n <ValueWrapper grayText={shouldBeGray}>\n {isEdit ? editComponent : <DSTruncatedTooltipText value={value} />}\n </ValueWrapper>\n </Grid>\n {hasRightAddon && (\n <Grid alignItems=\"center\" pl=\"xxs\">\n {rightAddon}\n </Grid>\n )}\n </Grid>\n </CellWrapper>\n );\n};\n\nCellWithAddons.propTypes = {\n /** Text to render inside the cell */\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n /** Left Icon */\n leftAddon: PropTypes.element,\n /** keep the left spacing even if no left addons is addded */\n keepLeftPadding: PropTypes.bool,\n /** Right Icon Button or Dropdown */\n rightAddon: PropTypes.element,\n /** TextBox/InputMask/ComboBox */\n editComponent: PropTypes.element,\n /** if is true it will show editComponent */\n isEdit: PropTypes.bool,\n /** Shows a blue mark in the top left corner */\n badgeAddon: PropTypes.bool,\n /** change background color to light blue */\n highLight: PropTypes.bool,\n /** change text color to light gray */\n neutralText: PropTypes.bool,\n /** data grid meta-information */\n metaData: PropTypes.shape({\n className: PropTypes.string,\n column: PropTypes.object,\n columnIndex: PropTypes.number,\n index: PropTypes.number,\n isScrolling: PropTypes.bool,\n key: PropTypes.string,\n parentRowData: PropTypes.any,\n property: PropTypes.string,\n registerFocus: PropTypes.func,\n rowData: PropTypes.object,\n rowIndex: PropTypes.number,\n rowKey: PropTypes.string,\n style: PropTypes.object,\n }),\n};\n"],
5
+ "mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AAGO,MAAM,iBAAiB,CAAC;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,MACI;AACJ,QAAM,eAAe,CAAC,CAAC,aAAa;AACpC,QAAM,gBAAgB,CAAC,CAAC,cAAc,CAAC;AACvC,QAAM,OAAO,CAAC;AACd,QAAM,eAAe,eAAe,IAAI,UAAU;AAClD,MAAI;AAAc,SAAK,QAAQ;AAC/B,MAAI;AAAe,SAAK,KAAK;AAC7B,SACE,qCAAC,aAAD;AAAA,IACE,WAAW,gBAAgB,cAAc,aAAa;AAAA,IACtD;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,KAEA,qCAAC,MAAD;AAAA,IAAM,QAAO;AAAA,IAAO;AAAA,KACjB,gBACC,qCAAC,MAAD;AAAA,IAAM,YAAW;AAAA,IAAS,IAAG;AAAA,IAAM,IAAG;AAAA,IAAM,OAAO,kBAAkB,SAAS;AAAA,KAC3E,gBAAgB,YAGrB,qCAAC,MAAD;AAAA,IAAM,YAAW;AAAA,KACf,qCAAC,cAAD;AAAA,IAAc,UAAU;AAAA,KACrB,SAAS,gBAAgB,qCAAC,wBAAD;AAAA,IAAwB;AAAA,QAGrD,iBACC,qCAAC,MAAD;AAAA,IAAM,YAAW;AAAA,IAAS,IAAG;AAAA,KAC1B;AAAA;AAQb,eAAe,YAAY;AAAA,EAEzB,OAAO,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU;AAAA,EAExD,WAAW,UAAU;AAAA,EAErB,iBAAiB,UAAU;AAAA,EAE3B,YAAY,UAAU;AAAA,EAEtB,eAAe,UAAU;AAAA,EAEzB,QAAQ,UAAU;AAAA,EAElB,YAAY,UAAU;AAAA,EAEtB,WAAW,UAAU;AAAA,EAErB,aAAa,UAAU;AAAA,EAEvB,UAAU,UAAU,MAAM;AAAA,IACxB,WAAW,UAAU;AAAA,IACrB,QAAQ,UAAU;AAAA,IAClB,aAAa,UAAU;AAAA,IACvB,OAAO,UAAU;AAAA,IACjB,aAAa,UAAU;AAAA,IACvB,KAAK,UAAU;AAAA,IACf,eAAe,UAAU;AAAA,IACzB,UAAU,UAAU;AAAA,IACpB,eAAe,UAAU;AAAA,IACzB,SAAS,UAAU;AAAA,IACnB,UAAU,UAAU;AAAA,IACpB,QAAQ,UAAU;AAAA,IAClB,OAAO,UAAU;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -1,2 +1,8 @@
1
- export { CellWithAddons } from './CellWithAddons.js';
2
- export { CellContainer } from './styled.js';
1
+ import * as React from "react";
2
+ import { CellWithAddons } from "./CellWithAddons";
3
+ import { CellContainer } from "./styled";
4
+ export {
5
+ CellContainer,
6
+ CellWithAddons
7
+ };
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/renders/index.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { CellWithAddons } from './CellWithAddons';\nexport { CellContainer } from './styled';\n"],
5
+ "mappings": "AAAA;ACAA;AACA;",
6
+ "names": []
7
+ }