@elliemae/ds-datagrids 2.2.0-alpha.4 → 3.0.0-next.2

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 +635 -395
  2. package/cjs/DataGridImpl.js +128 -103
  3. package/cjs/PaginatedDataGrid.js +68 -68
  4. package/cjs/blockNames.js +11 -39
  5. package/cjs/columns/IconColumn.js +62 -78
  6. package/cjs/columns/NumberColumn.js +5 -35
  7. package/cjs/components/BodyCell.js +80 -83
  8. package/cjs/components/BodyList.js +52 -52
  9. package/cjs/components/ColumnVisibilityMenuOption.js +31 -53
  10. package/cjs/components/ColumnsOptionsMenuSection.js +44 -59
  11. package/cjs/components/EmptyState.js +50 -81
  12. package/cjs/components/HeaderCell.js +58 -64
  13. package/cjs/components/List.js +29 -41
  14. package/cjs/components/ListItem.js +36 -43
  15. package/cjs/components/NoResults.js +51 -55
  16. package/cjs/components/RowsLoader.js +22 -42
  17. package/cjs/components/Table.js +87 -78
  18. package/cjs/components/TableBody.js +60 -61
  19. package/cjs/components/TableHeader.js +30 -47
  20. package/cjs/components/footer/addOptionalFooterComponents.js +43 -53
  21. package/cjs/components/header/PrimaryControls.js +35 -49
  22. package/cjs/components/header/addOptionalHeaderComponents.js +43 -54
  23. package/cjs/components/index.js +17 -43
  24. package/cjs/components/renderers/defaultClassedRenderers.js +57 -64
  25. package/cjs/components/renderers/index.js +17 -44
  26. package/cjs/components/renderers/renderRowsLoader.js +18 -39
  27. package/cjs/components/tableContext.js +13 -36
  28. package/cjs/defaultPlugins.js +12 -44
  29. package/cjs/index.js +67 -72
  30. package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +114 -102
  31. package/cjs/plugins/body-header-scroll-sync/index.js +9 -35
  32. package/cjs/plugins/column-dnd/DndColumnsPlugin.js +86 -107
  33. package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +27 -43
  34. package/cjs/plugins/column-dnd/index.js +9 -35
  35. package/cjs/plugins/column-sizing/ColumnSizingPlugin.js +55 -59
  36. package/cjs/plugins/column-sizing/columnMeasurerTransformer.js +53 -48
  37. package/cjs/plugins/column-sizing/ext-points/decorateColumn.js +13 -40
  38. package/cjs/plugins/column-sizing/ext-points/getTableProps.js +54 -55
  39. package/cjs/plugins/column-sizing/getColumnNameFromProperty.js +9 -37
  40. package/cjs/plugins/column-sizing/index.js +9 -35
  41. package/cjs/plugins/column-sizing/useColumnSizeService.js +86 -72
  42. package/cjs/plugins/column-sizing/useStylesheetHelpers.js +199 -96
  43. package/cjs/plugins/column-sizing/utils.js +29 -52
  44. package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +16 -38
  45. package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +56 -61
  46. package/cjs/plugins/custom-cell-renderer/getRendererComponent.js +60 -58
  47. package/cjs/plugins/custom-cell-renderer/index.js +9 -35
  48. package/cjs/plugins/editable/EditableComponents/ComboBox.js +53 -50
  49. package/cjs/plugins/editable/EditableComponents/TextBox.js +76 -56
  50. package/cjs/plugins/editable/EditableComponents/index.js +11 -37
  51. package/cjs/plugins/editable/EditablePlugin.js +75 -60
  52. package/cjs/plugins/editable/decorateEditable.js +98 -61
  53. package/cjs/plugins/editable/getEditorComponent.js +76 -70
  54. package/cjs/plugins/editable/index.js +13 -38
  55. package/cjs/plugins/expandable-grid/ExpandableColumn.js +144 -112
  56. package/cjs/plugins/expandable-grid/ExpandablePlugin.js +180 -118
  57. package/cjs/plugins/expandable-grid/ExpandedRow.js +139 -117
  58. package/cjs/plugins/expandable-grid/ExpandedRowExtra.js +52 -54
  59. package/cjs/plugins/expandable-grid/index.js +11 -37
  60. package/cjs/plugins/expandable-grid/useExpandGridState.js +31 -45
  61. package/cjs/plugins/export-data/ExportDataPlugin.js +116 -82
  62. package/cjs/plugins/export-data/index.js +12 -35
  63. package/cjs/plugins/filterable/FilterablePlugin.js +55 -54
  64. package/cjs/plugins/filterable/addFilterToColumn.js +28 -40
  65. package/cjs/plugins/filterable/components/FilterableHeader.js +107 -119
  66. package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +116 -116
  67. package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +73 -97
  68. package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +132 -138
  69. package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +119 -115
  70. package/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +7 -35
  71. package/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +15 -46
  72. package/cjs/plugins/filterable/filterableFormatter.js +51 -61
  73. package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +55 -60
  74. package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +22 -43
  75. package/cjs/plugins/filterable/helper.js +79 -68
  76. package/cjs/plugins/filterable/index.js +9 -35
  77. package/cjs/plugins/filterable/useFilterableState.js +66 -62
  78. package/cjs/plugins/grouping-by/GroupingByPlugin.js +23 -40
  79. package/cjs/plugins/grouping-grid/GroupingPlugin.js +109 -86
  80. package/cjs/plugins/grouping-grid/walkStrategy.js +26 -46
  81. package/cjs/plugins/index.js +48 -68
  82. package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +88 -64
  83. package/cjs/plugins/infinite-scrolling/index.js +9 -35
  84. package/cjs/plugins/pagination/PaginationPlugin.js +90 -73
  85. package/cjs/plugins/pagination/components/Pagination.js +35 -54
  86. package/cjs/plugins/pagination/components/Paginator.js +44 -59
  87. package/cjs/plugins/pagination/components/PerPageDropdown.js +63 -51
  88. package/cjs/plugins/pagination/helper.js +24 -45
  89. package/cjs/plugins/pagination/index.js +9 -35
  90. package/cjs/plugins/pagination/usePaginationState.js +38 -46
  91. package/cjs/plugins/resizable/ResizablePlugin.js +55 -51
  92. package/cjs/plugins/resizable/decorateResizable.js +53 -49
  93. package/cjs/plugins/resizable/index.js +9 -35
  94. package/cjs/plugins/resizable/useResizeHandle.js +50 -56
  95. package/cjs/plugins/resizable/utils.js +28 -49
  96. package/cjs/plugins/row-dnd/DndRowsPlugin.js +82 -103
  97. package/cjs/plugins/row-dnd/index.js +9 -35
  98. package/cjs/plugins/selectable/SelectablePlugin.js +134 -101
  99. package/cjs/plugins/selectable/addSelectableColumn.js +68 -67
  100. package/cjs/plugins/selectable/helper.js +39 -50
  101. package/cjs/plugins/selectable/index.js +9 -35
  102. package/cjs/plugins/selectable/selectableFormatter.js +105 -83
  103. package/cjs/plugins/selectable/useSelectableState.js +94 -67
  104. package/cjs/plugins/sortable/SortablePlugin.js +76 -62
  105. package/cjs/plugins/sortable/checkIfSortable.js +14 -37
  106. package/cjs/plugins/sortable/index.js +9 -35
  107. package/cjs/plugins/sortable/sortHeaderFormatter.js +50 -56
  108. package/cjs/plugins/sortable/sortTree.js +47 -40
  109. package/cjs/plugins/sortable/sorter.js +172 -140
  110. package/cjs/plugins/sortable/useSortableState.js +79 -53
  111. package/cjs/plugins/toolbar/RowRenderer.js +76 -75
  112. package/cjs/plugins/toolbar/ToolbarPlugin.js +33 -49
  113. package/cjs/plugins/toolbar/ToolbarTrigger.js +70 -89
  114. package/cjs/plugins/toolbar/index.js +9 -35
  115. package/cjs/plugins/virtualization/AutoHeightList.js +52 -64
  116. package/cjs/plugins/virtualization/VirtualizationPlugin.js +97 -86
  117. package/cjs/plugins/virtualization/VirtualizedBody.js +155 -139
  118. package/cjs/plugins/virtualization/VirtualizedBodyRow.js +17 -39
  119. package/cjs/plugins/virtualization/helper.js +7 -35
  120. package/cjs/plugins/virtualization/index.js +9 -35
  121. package/cjs/renders/CellWithAddons.js +50 -98
  122. package/cjs/renders/index.js +11 -37
  123. package/cjs/renders/styled.js +27 -78
  124. package/cjs/rowSizes.js +12 -44
  125. package/cjs/utilities/getPluginsFromProps.js +39 -67
  126. package/cjs/utilities/getScrollbarSize.js +25 -44
  127. package/cjs/utilities/normalizeData.js +34 -44
  128. package/esm/DSDataGrid.js +597 -337
  129. package/esm/DataGridImpl.js +113 -68
  130. package/esm/PaginatedDataGrid.js +59 -39
  131. package/esm/blockNames.js +5 -10
  132. package/esm/columns/IconColumn.js +54 -49
  133. package/esm/columns/NumberColumn.js +3 -6
  134. package/esm/components/BodyCell.js +68 -51
  135. package/esm/components/BodyList.js +43 -23
  136. package/esm/components/ColumnVisibilityMenuOption.js +27 -24
  137. package/esm/components/ColumnsOptionsMenuSection.js +38 -30
  138. package/esm/components/EmptyState.js +40 -52
  139. package/esm/components/HeaderCell.js +48 -33
  140. package/esm/components/List.js +23 -12
  141. package/esm/components/ListItem.js +30 -14
  142. package/esm/components/NoResults.js +43 -26
  143. package/esm/components/RowsLoader.js +15 -13
  144. package/esm/components/Table.js +76 -45
  145. package/esm/components/TableBody.js +52 -32
  146. package/esm/components/TableHeader.js +23 -17
  147. package/esm/components/footer/addOptionalFooterComponents.js +37 -24
  148. package/esm/components/header/PrimaryControls.js +29 -20
  149. package/esm/components/header/addOptionalHeaderComponents.js +36 -25
  150. package/esm/components/index.js +5 -14
  151. package/esm/components/renderers/defaultClassedRenderers.js +46 -41
  152. package/esm/components/renderers/index.js +5 -16
  153. package/esm/components/renderers/renderRowsLoader.js +10 -10
  154. package/esm/components/tableContext.js +5 -7
  155. package/esm/defaultPlugins.js +8 -15
  156. package/esm/index.js +27 -63
  157. package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +101 -71
  158. package/esm/plugins/body-header-scroll-sync/index.js +1 -6
  159. package/esm/plugins/column-dnd/DndColumnsPlugin.js +68 -69
  160. package/esm/plugins/column-dnd/decorateGridWithDndColumns.js +18 -16
  161. package/esm/plugins/column-dnd/index.js +1 -6
  162. package/esm/plugins/column-sizing/ColumnSizingPlugin.js +37 -20
  163. package/esm/plugins/column-sizing/columnMeasurerTransformer.js +42 -16
  164. package/esm/plugins/column-sizing/ext-points/decorateColumn.js +7 -9
  165. package/esm/plugins/column-sizing/ext-points/getTableProps.js +43 -23
  166. package/esm/plugins/column-sizing/getColumnNameFromProperty.js +7 -8
  167. package/esm/plugins/column-sizing/index.js +1 -6
  168. package/esm/plugins/column-sizing/useColumnSizeService.js +71 -34
  169. package/esm/plugins/column-sizing/useStylesheetHelpers.js +171 -64
  170. package/esm/plugins/column-sizing/utils.js +21 -23
  171. package/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +7 -8
  172. package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +43 -28
  173. package/esm/plugins/custom-cell-renderer/getRendererComponent.js +44 -22
  174. package/esm/plugins/custom-cell-renderer/index.js +1 -6
  175. package/esm/plugins/editable/EditableComponents/ComboBox.js +46 -20
  176. package/esm/plugins/editable/EditableComponents/TextBox.js +68 -26
  177. package/esm/plugins/editable/EditableComponents/index.js +2 -8
  178. package/esm/plugins/editable/EditablePlugin.js +63 -27
  179. package/esm/plugins/editable/decorateEditable.js +68 -32
  180. package/esm/plugins/editable/getEditorComponent.js +66 -39
  181. package/esm/plugins/editable/index.js +3 -9
  182. package/esm/plugins/expandable-grid/ExpandableColumn.js +133 -82
  183. package/esm/plugins/expandable-grid/ExpandablePlugin.js +160 -81
  184. package/esm/plugins/expandable-grid/ExpandedRow.js +124 -86
  185. package/esm/plugins/expandable-grid/ExpandedRowExtra.js +44 -25
  186. package/esm/plugins/expandable-grid/index.js +2 -8
  187. package/esm/plugins/expandable-grid/useExpandGridState.js +25 -14
  188. package/esm/plugins/export-data/ExportDataPlugin.js +103 -52
  189. package/esm/plugins/export-data/index.js +1 -6
  190. package/esm/plugins/filterable/FilterablePlugin.js +44 -22
  191. package/esm/plugins/filterable/addFilterToColumn.js +20 -11
  192. package/esm/plugins/filterable/components/FilterableHeader.js +95 -85
  193. package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +103 -83
  194. package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +63 -68
  195. package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +116 -108
  196. package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +106 -84
  197. package/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js +3 -6
  198. package/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +12 -16
  199. package/esm/plugins/filterable/filterableFormatter.js +45 -32
  200. package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +44 -29
  201. package/esm/plugins/filterable/filtering-helper/strategiesOperators.js +13 -11
  202. package/esm/plugins/filterable/helper.js +62 -42
  203. package/esm/plugins/filterable/index.js +1 -6
  204. package/esm/plugins/filterable/useFilterableState.js +54 -33
  205. package/esm/plugins/grouping-by/GroupingByPlugin.js +14 -10
  206. package/esm/plugins/grouping-grid/GroupingPlugin.js +94 -53
  207. package/esm/plugins/grouping-grid/walkStrategy.js +22 -17
  208. package/esm/plugins/index.js +19 -39
  209. package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +74 -31
  210. package/esm/plugins/infinite-scrolling/index.js +1 -6
  211. package/esm/plugins/pagination/PaginationPlugin.js +75 -42
  212. package/esm/plugins/pagination/components/Pagination.js +27 -25
  213. package/esm/plugins/pagination/components/Paginator.js +35 -29
  214. package/esm/plugins/pagination/components/PerPageDropdown.js +54 -22
  215. package/esm/plugins/pagination/helper.js +19 -16
  216. package/esm/plugins/pagination/index.js +1 -6
  217. package/esm/plugins/pagination/usePaginationState.js +28 -15
  218. package/esm/plugins/resizable/ResizablePlugin.js +45 -20
  219. package/esm/plugins/resizable/decorateResizable.js +41 -19
  220. package/esm/plugins/resizable/index.js +1 -6
  221. package/esm/plugins/resizable/useResizeHandle.js +39 -24
  222. package/esm/plugins/resizable/utils.js +18 -20
  223. package/esm/plugins/row-dnd/DndRowsPlugin.js +71 -73
  224. package/esm/plugins/row-dnd/index.js +1 -6
  225. package/esm/plugins/selectable/SelectablePlugin.js +117 -64
  226. package/esm/plugins/selectable/addSelectableColumn.js +57 -39
  227. package/esm/plugins/selectable/helper.js +25 -19
  228. package/esm/plugins/selectable/index.js +1 -6
  229. package/esm/plugins/selectable/selectableFormatter.js +97 -54
  230. package/esm/plugins/selectable/useSelectableState.js +78 -34
  231. package/esm/plugins/sortable/SortablePlugin.js +43 -30
  232. package/esm/plugins/sortable/checkIfSortable.js +9 -8
  233. package/esm/plugins/sortable/index.js +1 -6
  234. package/esm/plugins/sortable/sortHeaderFormatter.js +43 -27
  235. package/esm/plugins/sortable/sortTree.js +24 -13
  236. package/esm/plugins/sortable/sorter.js +163 -112
  237. package/esm/plugins/sortable/useSortableState.js +49 -22
  238. package/esm/plugins/toolbar/RowRenderer.js +61 -40
  239. package/esm/plugins/toolbar/ToolbarPlugin.js +23 -19
  240. package/esm/plugins/toolbar/ToolbarTrigger.js +57 -59
  241. package/esm/plugins/toolbar/index.js +1 -6
  242. package/esm/plugins/virtualization/AutoHeightList.js +40 -30
  243. package/esm/plugins/virtualization/VirtualizationPlugin.js +84 -55
  244. package/esm/plugins/virtualization/VirtualizedBody.js +132 -94
  245. package/esm/plugins/virtualization/VirtualizedBodyRow.js +15 -10
  246. package/esm/plugins/virtualization/helper.js +3 -6
  247. package/esm/plugins/virtualization/index.js +1 -6
  248. package/esm/renders/CellWithAddons.js +40 -69
  249. package/esm/renders/index.js +2 -8
  250. package/esm/renders/styled.js +16 -49
  251. package/esm/rowSizes.js +6 -15
  252. package/esm/utilities/getPluginsFromProps.js +24 -25
  253. package/esm/utilities/getScrollbarSize.js +21 -15
  254. package/esm/utilities/normalizeData.js +24 -15
  255. package/package.json +20 -20
  256. package/types/DSDataGrid.d.ts +1 -1
  257. package/types/DataGridImpl.d.ts +2 -3
  258. package/types/PaginatedDataGrid.d.ts +2 -1
  259. package/types/columns/IconColumn.d.ts +2 -3
  260. package/types/components/BodyCell.d.ts +12 -13
  261. package/types/components/ColumnVisibilityMenuOption.d.ts +2 -2
  262. package/types/components/ColumnsOptionsMenuSection.d.ts +0 -1
  263. package/types/components/HeaderCell.d.ts +10 -10
  264. package/types/components/NoResults.d.ts +2 -2
  265. package/types/components/RowsLoader.d.ts +2 -2
  266. package/types/components/Table.d.ts +11 -6
  267. package/types/components/TableBody.d.ts +8 -3
  268. package/types/components/TableHeader.d.ts +1 -2
  269. package/types/components/footer/addOptionalFooterComponents.d.ts +0 -1
  270. package/types/components/header/PrimaryControls.d.ts +0 -1
  271. package/types/components/header/addOptionalHeaderComponents.d.ts +1 -1
  272. package/types/components/renderers/index.d.ts +1 -1
  273. package/types/components/renderers/renderRowsLoader.d.ts +1 -1
  274. package/types/index.d.ts +8 -7
  275. package/types/plugins/body-header-scroll-sync/index.d.ts +1 -1
  276. package/types/plugins/column-dnd/index.d.ts +1 -1
  277. package/types/plugins/column-sizing/getColumnNameFromProperty.d.ts +1 -2
  278. package/types/plugins/column-sizing/index.d.ts +1 -1
  279. package/types/plugins/column-sizing/useColumnSizeService.d.ts +1 -2
  280. package/types/plugins/custom-cell-renderer/addCustomRendererToCell.d.ts +0 -1
  281. package/types/plugins/custom-cell-renderer/getRendererComponent.d.ts +0 -1
  282. package/types/plugins/custom-cell-renderer/index.d.ts +1 -1
  283. package/types/plugins/editable/EditableComponents/ComboBox.d.ts +1 -3
  284. package/types/plugins/editable/EditableComponents/TextBox.d.ts +1 -3
  285. package/types/plugins/editable/getEditorComponent.d.ts +0 -1
  286. package/types/plugins/editable/index.d.ts +2 -2
  287. package/types/plugins/expandable-grid/ExpandableColumn.d.ts +2 -3
  288. package/types/plugins/expandable-grid/ExpandedRow.d.ts +0 -1
  289. package/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +0 -1
  290. package/types/plugins/expandable-grid/index.d.ts +2 -2
  291. package/types/plugins/export-data/index.d.ts +1 -1
  292. package/types/plugins/filterable/components/FilterableHeader.d.ts +15 -15
  293. package/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +0 -1
  294. package/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +0 -1
  295. package/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts +1 -2
  296. package/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +0 -1
  297. package/types/plugins/filterable/components/filterable-menus/getFilterMenuByType.d.ts +1 -2
  298. package/types/plugins/filterable/filterableFormatter.d.ts +2 -3
  299. package/types/plugins/filterable/filtering-helper/filterRowsByQuery.d.ts +1 -2
  300. package/types/plugins/filterable/filtering-helper/strategiesOperators.d.ts +2 -2
  301. package/types/plugins/filterable/index.d.ts +1 -1
  302. package/types/plugins/index.d.ts +16 -16
  303. package/types/plugins/infinite-scrolling/index.d.ts +1 -1
  304. package/types/plugins/pagination/components/Paginator.d.ts +0 -1
  305. package/types/plugins/pagination/components/PerPageDropdown.d.ts +0 -1
  306. package/types/plugins/pagination/helper.d.ts +2 -3
  307. package/types/plugins/pagination/index.d.ts +1 -1
  308. package/types/plugins/resizable/index.d.ts +1 -1
  309. package/types/plugins/row-dnd/index.d.ts +1 -1
  310. package/types/plugins/selectable/index.d.ts +1 -1
  311. package/types/plugins/selectable/selectableFormatter.d.ts +0 -1
  312. package/types/plugins/sortable/index.d.ts +1 -1
  313. package/types/plugins/sortable/sortHeaderFormatter.d.ts +0 -1
  314. package/types/plugins/sortable/sortTree.d.ts +0 -1
  315. package/types/plugins/sortable/sorter.d.ts +1 -1
  316. package/types/plugins/toolbar/index.d.ts +1 -1
  317. package/types/plugins/virtualization/AutoHeightList.d.ts +1 -1
  318. package/types/plugins/virtualization/VirtualizedBody.d.ts +0 -1
  319. package/types/plugins/virtualization/VirtualizedBodyRow.d.ts +2 -2
  320. package/types/plugins/virtualization/index.d.ts +1 -1
  321. package/types/utilities/getPluginsFromProps.d.ts +1 -2
  322. package/cjs/DSDataGrid.js.map +0 -7
  323. package/cjs/DataGridImpl.js.map +0 -7
  324. package/cjs/PaginatedDataGrid.js.map +0 -7
  325. package/cjs/blockNames.js.map +0 -7
  326. package/cjs/columns/IconColumn.js.map +0 -7
  327. package/cjs/columns/NumberColumn.js.map +0 -7
  328. package/cjs/components/BodyCell.js.map +0 -7
  329. package/cjs/components/BodyList.js.map +0 -7
  330. package/cjs/components/ColumnVisibilityMenuOption.js.map +0 -7
  331. package/cjs/components/ColumnsOptionsMenuSection.js.map +0 -7
  332. package/cjs/components/EmptyState.js.map +0 -7
  333. package/cjs/components/HeaderCell.js.map +0 -7
  334. package/cjs/components/List.js.map +0 -7
  335. package/cjs/components/ListItem.js.map +0 -7
  336. package/cjs/components/NoResults.js.map +0 -7
  337. package/cjs/components/RowsLoader.js.map +0 -7
  338. package/cjs/components/Table.js.map +0 -7
  339. package/cjs/components/TableBody.js.map +0 -7
  340. package/cjs/components/TableHeader.js.map +0 -7
  341. package/cjs/components/footer/addOptionalFooterComponents.js.map +0 -7
  342. package/cjs/components/header/PrimaryControls.js.map +0 -7
  343. package/cjs/components/header/addOptionalHeaderComponents.js.map +0 -7
  344. package/cjs/components/index.js.map +0 -7
  345. package/cjs/components/renderers/defaultClassedRenderers.js.map +0 -7
  346. package/cjs/components/renderers/index.js.map +0 -7
  347. package/cjs/components/renderers/renderRowsLoader.js.map +0 -7
  348. package/cjs/components/tableContext.js.map +0 -7
  349. package/cjs/defaultPlugins.js.map +0 -7
  350. package/cjs/index.js.map +0 -7
  351. package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +0 -7
  352. package/cjs/plugins/body-header-scroll-sync/index.js.map +0 -7
  353. package/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +0 -7
  354. package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js.map +0 -7
  355. package/cjs/plugins/column-dnd/index.js.map +0 -7
  356. package/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +0 -7
  357. package/cjs/plugins/column-sizing/columnMeasurerTransformer.js.map +0 -7
  358. package/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +0 -7
  359. package/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +0 -7
  360. package/cjs/plugins/column-sizing/getColumnNameFromProperty.js.map +0 -7
  361. package/cjs/plugins/column-sizing/index.js.map +0 -7
  362. package/cjs/plugins/column-sizing/useColumnSizeService.js.map +0 -7
  363. package/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +0 -7
  364. package/cjs/plugins/column-sizing/utils.js.map +0 -7
  365. package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +0 -7
  366. package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +0 -7
  367. package/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +0 -7
  368. package/cjs/plugins/custom-cell-renderer/index.js.map +0 -7
  369. package/cjs/plugins/editable/EditableComponents/ComboBox.js.map +0 -7
  370. package/cjs/plugins/editable/EditableComponents/TextBox.js.map +0 -7
  371. package/cjs/plugins/editable/EditableComponents/index.js.map +0 -7
  372. package/cjs/plugins/editable/EditablePlugin.js.map +0 -7
  373. package/cjs/plugins/editable/decorateEditable.js.map +0 -7
  374. package/cjs/plugins/editable/getEditorComponent.js.map +0 -7
  375. package/cjs/plugins/editable/index.js.map +0 -7
  376. package/cjs/plugins/expandable-grid/ExpandableColumn.js.map +0 -7
  377. package/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +0 -7
  378. package/cjs/plugins/expandable-grid/ExpandedRow.js.map +0 -7
  379. package/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +0 -7
  380. package/cjs/plugins/expandable-grid/index.js.map +0 -7
  381. package/cjs/plugins/expandable-grid/useExpandGridState.js.map +0 -7
  382. package/cjs/plugins/export-data/ExportDataPlugin.js.map +0 -7
  383. package/cjs/plugins/export-data/index.js.map +0 -7
  384. package/cjs/plugins/filterable/FilterablePlugin.js.map +0 -7
  385. package/cjs/plugins/filterable/addFilterToColumn.js.map +0 -7
  386. package/cjs/plugins/filterable/components/FilterableHeader.js.map +0 -7
  387. package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +0 -7
  388. package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +0 -7
  389. package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +0 -7
  390. package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +0 -7
  391. package/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +0 -7
  392. package/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +0 -7
  393. package/cjs/plugins/filterable/filterableFormatter.js.map +0 -7
  394. package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +0 -7
  395. package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +0 -7
  396. package/cjs/plugins/filterable/helper.js.map +0 -7
  397. package/cjs/plugins/filterable/index.js.map +0 -7
  398. package/cjs/plugins/filterable/useFilterableState.js.map +0 -7
  399. package/cjs/plugins/grouping-by/GroupingByPlugin.js.map +0 -7
  400. package/cjs/plugins/grouping-grid/GroupingPlugin.js.map +0 -7
  401. package/cjs/plugins/grouping-grid/walkStrategy.js.map +0 -7
  402. package/cjs/plugins/index.js.map +0 -7
  403. package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +0 -7
  404. package/cjs/plugins/infinite-scrolling/index.js.map +0 -7
  405. package/cjs/plugins/pagination/PaginationPlugin.js.map +0 -7
  406. package/cjs/plugins/pagination/components/Pagination.js.map +0 -7
  407. package/cjs/plugins/pagination/components/Paginator.js.map +0 -7
  408. package/cjs/plugins/pagination/components/PerPageDropdown.js.map +0 -7
  409. package/cjs/plugins/pagination/helper.js.map +0 -7
  410. package/cjs/plugins/pagination/index.js.map +0 -7
  411. package/cjs/plugins/pagination/usePaginationState.js.map +0 -7
  412. package/cjs/plugins/resizable/ResizablePlugin.js.map +0 -7
  413. package/cjs/plugins/resizable/decorateResizable.js.map +0 -7
  414. package/cjs/plugins/resizable/index.js.map +0 -7
  415. package/cjs/plugins/resizable/useResizeHandle.js.map +0 -7
  416. package/cjs/plugins/resizable/utils.js.map +0 -7
  417. package/cjs/plugins/row-dnd/DndRowsPlugin.js.map +0 -7
  418. package/cjs/plugins/row-dnd/index.js.map +0 -7
  419. package/cjs/plugins/selectable/SelectablePlugin.js.map +0 -7
  420. package/cjs/plugins/selectable/addSelectableColumn.js.map +0 -7
  421. package/cjs/plugins/selectable/helper.js.map +0 -7
  422. package/cjs/plugins/selectable/index.js.map +0 -7
  423. package/cjs/plugins/selectable/selectableFormatter.js.map +0 -7
  424. package/cjs/plugins/selectable/useSelectableState.js.map +0 -7
  425. package/cjs/plugins/sortable/SortablePlugin.js.map +0 -7
  426. package/cjs/plugins/sortable/checkIfSortable.js.map +0 -7
  427. package/cjs/plugins/sortable/index.js.map +0 -7
  428. package/cjs/plugins/sortable/sortHeaderFormatter.js.map +0 -7
  429. package/cjs/plugins/sortable/sortTree.js.map +0 -7
  430. package/cjs/plugins/sortable/sorter.js.map +0 -7
  431. package/cjs/plugins/sortable/useSortableState.js.map +0 -7
  432. package/cjs/plugins/toolbar/RowRenderer.js.map +0 -7
  433. package/cjs/plugins/toolbar/ToolbarPlugin.js.map +0 -7
  434. package/cjs/plugins/toolbar/ToolbarTrigger.js.map +0 -7
  435. package/cjs/plugins/toolbar/index.js.map +0 -7
  436. package/cjs/plugins/virtualization/AutoHeightList.js.map +0 -7
  437. package/cjs/plugins/virtualization/VirtualizationPlugin.js.map +0 -7
  438. package/cjs/plugins/virtualization/VirtualizedBody.js.map +0 -7
  439. package/cjs/plugins/virtualization/VirtualizedBodyRow.js.map +0 -7
  440. package/cjs/plugins/virtualization/helper.js.map +0 -7
  441. package/cjs/plugins/virtualization/index.js.map +0 -7
  442. package/cjs/renders/CellWithAddons.js.map +0 -7
  443. package/cjs/renders/index.js.map +0 -7
  444. package/cjs/renders/styled.js.map +0 -7
  445. package/cjs/rowSizes.js.map +0 -7
  446. package/cjs/utilities/DataGridUtilities.json +0 -1315
  447. package/cjs/utilities/getPluginsFromProps.js.map +0 -7
  448. package/cjs/utilities/getScrollbarSize.js.map +0 -7
  449. package/cjs/utilities/normalizeData.js.map +0 -7
  450. package/esm/DSDataGrid.js.map +0 -7
  451. package/esm/DataGridImpl.js.map +0 -7
  452. package/esm/PaginatedDataGrid.js.map +0 -7
  453. package/esm/blockNames.js.map +0 -7
  454. package/esm/columns/IconColumn.js.map +0 -7
  455. package/esm/columns/NumberColumn.js.map +0 -7
  456. package/esm/components/BodyCell.js.map +0 -7
  457. package/esm/components/BodyList.js.map +0 -7
  458. package/esm/components/ColumnVisibilityMenuOption.js.map +0 -7
  459. package/esm/components/ColumnsOptionsMenuSection.js.map +0 -7
  460. package/esm/components/EmptyState.js.map +0 -7
  461. package/esm/components/HeaderCell.js.map +0 -7
  462. package/esm/components/List.js.map +0 -7
  463. package/esm/components/ListItem.js.map +0 -7
  464. package/esm/components/NoResults.js.map +0 -7
  465. package/esm/components/RowsLoader.js.map +0 -7
  466. package/esm/components/Table.js.map +0 -7
  467. package/esm/components/TableBody.js.map +0 -7
  468. package/esm/components/TableHeader.js.map +0 -7
  469. package/esm/components/footer/addOptionalFooterComponents.js.map +0 -7
  470. package/esm/components/header/PrimaryControls.js.map +0 -7
  471. package/esm/components/header/addOptionalHeaderComponents.js.map +0 -7
  472. package/esm/components/index.js.map +0 -7
  473. package/esm/components/renderers/defaultClassedRenderers.js.map +0 -7
  474. package/esm/components/renderers/index.js.map +0 -7
  475. package/esm/components/renderers/renderRowsLoader.js.map +0 -7
  476. package/esm/components/tableContext.js.map +0 -7
  477. package/esm/defaultPlugins.js.map +0 -7
  478. package/esm/index.js.map +0 -7
  479. package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +0 -7
  480. package/esm/plugins/body-header-scroll-sync/index.js.map +0 -7
  481. package/esm/plugins/column-dnd/DndColumnsPlugin.js.map +0 -7
  482. package/esm/plugins/column-dnd/decorateGridWithDndColumns.js.map +0 -7
  483. package/esm/plugins/column-dnd/index.js.map +0 -7
  484. package/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +0 -7
  485. package/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +0 -7
  486. package/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +0 -7
  487. package/esm/plugins/column-sizing/ext-points/getTableProps.js.map +0 -7
  488. package/esm/plugins/column-sizing/getColumnNameFromProperty.js.map +0 -7
  489. package/esm/plugins/column-sizing/index.js.map +0 -7
  490. package/esm/plugins/column-sizing/useColumnSizeService.js.map +0 -7
  491. package/esm/plugins/column-sizing/useStylesheetHelpers.js.map +0 -7
  492. package/esm/plugins/column-sizing/utils.js.map +0 -7
  493. package/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +0 -7
  494. package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +0 -7
  495. package/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +0 -7
  496. package/esm/plugins/custom-cell-renderer/index.js.map +0 -7
  497. package/esm/plugins/editable/EditableComponents/ComboBox.js.map +0 -7
  498. package/esm/plugins/editable/EditableComponents/TextBox.js.map +0 -7
  499. package/esm/plugins/editable/EditableComponents/index.js.map +0 -7
  500. package/esm/plugins/editable/EditablePlugin.js.map +0 -7
  501. package/esm/plugins/editable/decorateEditable.js.map +0 -7
  502. package/esm/plugins/editable/getEditorComponent.js.map +0 -7
  503. package/esm/plugins/editable/index.js.map +0 -7
  504. package/esm/plugins/expandable-grid/ExpandableColumn.js.map +0 -7
  505. package/esm/plugins/expandable-grid/ExpandablePlugin.js.map +0 -7
  506. package/esm/plugins/expandable-grid/ExpandedRow.js.map +0 -7
  507. package/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +0 -7
  508. package/esm/plugins/expandable-grid/index.js.map +0 -7
  509. package/esm/plugins/expandable-grid/useExpandGridState.js.map +0 -7
  510. package/esm/plugins/export-data/ExportDataPlugin.js.map +0 -7
  511. package/esm/plugins/export-data/index.js.map +0 -7
  512. package/esm/plugins/filterable/FilterablePlugin.js.map +0 -7
  513. package/esm/plugins/filterable/addFilterToColumn.js.map +0 -7
  514. package/esm/plugins/filterable/components/FilterableHeader.js.map +0 -7
  515. package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +0 -7
  516. package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +0 -7
  517. package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +0 -7
  518. package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +0 -7
  519. package/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +0 -7
  520. package/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +0 -7
  521. package/esm/plugins/filterable/filterableFormatter.js.map +0 -7
  522. package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +0 -7
  523. package/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +0 -7
  524. package/esm/plugins/filterable/helper.js.map +0 -7
  525. package/esm/plugins/filterable/index.js.map +0 -7
  526. package/esm/plugins/filterable/useFilterableState.js.map +0 -7
  527. package/esm/plugins/grouping-by/GroupingByPlugin.js.map +0 -7
  528. package/esm/plugins/grouping-grid/GroupingPlugin.js.map +0 -7
  529. package/esm/plugins/grouping-grid/walkStrategy.js.map +0 -7
  530. package/esm/plugins/index.js.map +0 -7
  531. package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +0 -7
  532. package/esm/plugins/infinite-scrolling/index.js.map +0 -7
  533. package/esm/plugins/pagination/PaginationPlugin.js.map +0 -7
  534. package/esm/plugins/pagination/components/Pagination.js.map +0 -7
  535. package/esm/plugins/pagination/components/Paginator.js.map +0 -7
  536. package/esm/plugins/pagination/components/PerPageDropdown.js.map +0 -7
  537. package/esm/plugins/pagination/helper.js.map +0 -7
  538. package/esm/plugins/pagination/index.js.map +0 -7
  539. package/esm/plugins/pagination/usePaginationState.js.map +0 -7
  540. package/esm/plugins/resizable/ResizablePlugin.js.map +0 -7
  541. package/esm/plugins/resizable/decorateResizable.js.map +0 -7
  542. package/esm/plugins/resizable/index.js.map +0 -7
  543. package/esm/plugins/resizable/useResizeHandle.js.map +0 -7
  544. package/esm/plugins/resizable/utils.js.map +0 -7
  545. package/esm/plugins/row-dnd/DndRowsPlugin.js.map +0 -7
  546. package/esm/plugins/row-dnd/index.js.map +0 -7
  547. package/esm/plugins/selectable/SelectablePlugin.js.map +0 -7
  548. package/esm/plugins/selectable/addSelectableColumn.js.map +0 -7
  549. package/esm/plugins/selectable/helper.js.map +0 -7
  550. package/esm/plugins/selectable/index.js.map +0 -7
  551. package/esm/plugins/selectable/selectableFormatter.js.map +0 -7
  552. package/esm/plugins/selectable/useSelectableState.js.map +0 -7
  553. package/esm/plugins/sortable/SortablePlugin.js.map +0 -7
  554. package/esm/plugins/sortable/checkIfSortable.js.map +0 -7
  555. package/esm/plugins/sortable/index.js.map +0 -7
  556. package/esm/plugins/sortable/sortHeaderFormatter.js.map +0 -7
  557. package/esm/plugins/sortable/sortTree.js.map +0 -7
  558. package/esm/plugins/sortable/sorter.js.map +0 -7
  559. package/esm/plugins/sortable/useSortableState.js.map +0 -7
  560. package/esm/plugins/toolbar/RowRenderer.js.map +0 -7
  561. package/esm/plugins/toolbar/ToolbarPlugin.js.map +0 -7
  562. package/esm/plugins/toolbar/ToolbarTrigger.js.map +0 -7
  563. package/esm/plugins/toolbar/index.js.map +0 -7
  564. package/esm/plugins/virtualization/AutoHeightList.js.map +0 -7
  565. package/esm/plugins/virtualization/VirtualizationPlugin.js.map +0 -7
  566. package/esm/plugins/virtualization/VirtualizedBody.js.map +0 -7
  567. package/esm/plugins/virtualization/VirtualizedBodyRow.js.map +0 -7
  568. package/esm/plugins/virtualization/helper.js.map +0 -7
  569. package/esm/plugins/virtualization/index.js.map +0 -7
  570. package/esm/renders/CellWithAddons.js.map +0 -7
  571. package/esm/renders/index.js.map +0 -7
  572. package/esm/renders/styled.js.map +0 -7
  573. package/esm/rowSizes.js.map +0 -7
  574. package/esm/utilities/DataGridUtilities.json +0 -1315
  575. package/esm/utilities/getPluginsFromProps.js.map +0 -7
  576. package/esm/utilities/getScrollbarSize.js.map +0 -7
  577. package/esm/utilities/normalizeData.js.map +0 -7
@@ -1,14 +1,33 @@
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";
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; }
9
24
  const wrapperSafari = {};
10
- const wrapperGeneric = { overflowY: "auto", overflowX: "visible" };
11
- const VirtualizedBody = (props) => {
25
+ const wrapperGeneric = {
26
+ overflowY: 'auto',
27
+ overflowX: 'visible'
28
+ };
29
+
30
+ const VirtualizedBody = props => {
12
31
  const {
13
32
  autoScrollToId,
14
33
  columns,
@@ -26,7 +45,8 @@ const VirtualizedBody = (props) => {
26
45
  rowRenderer,
27
46
  rowSize,
28
47
  setHasScroll,
29
- filters
48
+ filters // hack to reset the scrollTop to 0 if filters change
49
+
30
50
  } = props;
31
51
  const rowHeight = defaultRowHeight || RowSizes[rowSize];
32
52
  const [scrollTop, setScrollTop] = useState(0);
@@ -34,29 +54,41 @@ const VirtualizedBody = (props) => {
34
54
  const [hasScrollBar, setHasScrollBar] = useState(false);
35
55
  const rowStyleCache = useRef({});
36
56
  const [renderedIndexes, setRenderedIndexes] = useState([0, 30]);
57
+
37
58
  const getCalculatedHeightBetweenIndexes = (start, end) => {
38
- const { itemSize = () => rowHeight } = listProps;
59
+ const {
60
+ itemSize = () => rowHeight
61
+ } = listProps;
62
+
39
63
  if (expandable) {
40
- return rows.slice(start, end).map((_, idx) => idx).map((idx) => itemSize(idx)).reduce((acc, curr) => acc + curr, 0);
64
+ return rows.slice(start, end).map((_, idx) => idx).map(idx => itemSize(idx)).reduce((acc, curr) => acc + curr, 0);
41
65
  }
66
+
42
67
  return (end - start) * rowHeight;
43
68
  };
69
+
44
70
  const generateRowPositionMap = () => rows.map((row, idx) => getCalculatedHeightBetweenIndexes(0, idx));
71
+
45
72
  const rowPositionMap = useRef(generateRowPositionMap());
46
73
  const [virtualizedBodyRef, setVirtualizedBodyRef] = useState(null);
47
74
  const handlerRef = useRef();
48
- const autoScrollTo = useCallback((scrollHeight) => {
49
- const { itemSize = () => rowHeight } = listProps;
50
- const idx = rows.findIndex((item) => item[rowKey] === autoScrollToId);
75
+ const autoScrollTo = useCallback(scrollHeight => {
76
+ const {
77
+ itemSize = () => rowHeight
78
+ } = listProps;
79
+ const idx = rows.findIndex(item => item[rowKey] === autoScrollToId);
51
80
  let val = rowPositionMap.current[idx] || 0;
52
81
  const lastPositionIdx = rowPositionMap.current.length - 1;
53
82
  let lastPosition = 0;
83
+
54
84
  if (lastPositionIdx > -1) {
55
85
  lastPosition = rowPositionMap.current[lastPositionIdx] - scrollHeight + itemSize(lastPositionIdx);
56
86
  }
87
+
57
88
  if (lastPosition < val) {
58
89
  val = lastPosition;
59
90
  }
91
+
60
92
  if (virtualizedBodyRef) {
61
93
  if (idx > -1) {
62
94
  setScrollTop(val);
@@ -67,7 +99,11 @@ const VirtualizedBody = (props) => {
67
99
  useEffect(() => {
68
100
  autoScrollTo(visibleHeight);
69
101
  }, [autoScrollToId, visibleHeight]);
70
- const handler = useCallback(debounce(({ target }) => {
102
+ const handler = useCallback(debounce(_ref => {
103
+ let {
104
+ target
105
+ } = _ref;
106
+ // Update coordinates
71
107
  setScrollTop(target.scrollTop || 0);
72
108
  }, 100), [setScrollTop]);
73
109
  useEffect(() => {
@@ -79,31 +115,38 @@ const VirtualizedBody = (props) => {
79
115
  useLayoutEffect(() => {
80
116
  let top = Math.ceil(scrollTop / rowHeight);
81
117
  let bot = Math.ceil((scrollTop + visibleHeight) / rowHeight);
118
+
82
119
  if (expandable) {
120
+ // updateMapperFirst
83
121
  rowPositionMap.current = generateRowPositionMap();
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;
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;
88
125
  }
126
+
89
127
  let upperBound = top - 1 - overscanCount;
90
128
  let lowerBound = bot - 1 + overscanCount;
129
+
91
130
  if (upperBound < 0) {
92
131
  upperBound = 0;
93
132
  }
133
+
94
134
  if (lowerBound - upperBound < overscanCount) {
95
135
  lowerBound = upperBound + overscanCount;
96
136
  }
137
+
97
138
  if (lowerBound > rows.length) {
98
139
  lowerBound = rows.length;
99
140
  }
141
+
100
142
  setHasScrollBar(visibleHeight < getHeight());
101
143
  setHasScroll(visibleHeight < getHeight());
102
144
  setRenderedIndexes([upperBound, lowerBound]);
103
145
  }, [visibleHeight, scrollTop, rows]);
104
146
  useLayoutEffect(() => {
105
147
  if (virtualizedBodyRef) {
106
- const parsedVisibleHeight = parseFloat(window.getComputedStyle(virtualizedBodyRef, null).getPropertyValue("height"));
148
+ const parsedVisibleHeight = parseFloat(window.getComputedStyle(virtualizedBodyRef, null).getPropertyValue('height')); // eslint-disable-next-line no-restricted-globals
149
+
107
150
  if (!isNaN(parsedVisibleHeight)) {
108
151
  setVisibleHeight(parsedVisibleHeight);
109
152
  autoScrollTo(parsedVisibleHeight);
@@ -112,119 +155,114 @@ const VirtualizedBody = (props) => {
112
155
  }, [rows, virtualizedBodyRef]);
113
156
  useEffect(() => {
114
157
  if (virtualizedBodyRef) {
115
- const eventListener = (event) => handlerRef.current(event);
116
- virtualizedBodyRef.addEventListener("scroll", eventListener);
158
+ const eventListener = event => handlerRef.current(event);
159
+
160
+ virtualizedBodyRef.addEventListener('scroll', eventListener);
117
161
  return () => {
118
- virtualizedBodyRef.removeEventListener("scroll", eventListener);
162
+ virtualizedBodyRef.removeEventListener('scroll', eventListener);
119
163
  };
120
164
  }
165
+
121
166
  return () => null;
122
167
  }, [virtualizedBodyRef]);
168
+
123
169
  const getHeight = () => {
124
170
  let returnHeight = 0;
171
+
125
172
  if (expandable) {
126
173
  returnHeight = getCalculatedHeightBetweenIndexes(0, rows.length) + 8;
127
174
  } else {
128
175
  returnHeight = rows.length * rowHeight + 8;
129
- }
176
+ } // if (visibleHeight > returnHeight) {
177
+ // return visibleHeight;
178
+ // }
179
+
180
+
130
181
  if (virtualizedBodyRef && virtualizedBodyRef.scrollHeight > virtualizedBodyRef.clientHeight) {
131
182
  return returnHeight + 10;
132
183
  }
184
+
133
185
  return returnHeight;
134
186
  };
187
+
135
188
  const getRowStyle = (row, index, specificRowHeight) => {
136
- const { itemSize } = listProps;
189
+ const {
190
+ itemSize
191
+ } = listProps;
192
+
137
193
  if (!expandable && rowStyleCache.current[index]) {
138
194
  return rowStyleCache.current[index];
139
195
  }
196
+
140
197
  rowStyleCache.current[index] = {
141
198
  height: itemSize ? itemSize(index) : specificRowHeight,
142
199
  left: 0,
143
200
  right: 0,
144
201
  top: getCalculatedHeightBetweenIndexes(0, index),
145
- position: "absolute"
202
+ position: 'absolute'
146
203
  };
147
204
  return rowStyleCache.current[index];
148
205
  };
149
- const generateRenderedRows = () => rows.slice(renderedIndexes[0], renderedIndexes[1] + 1).map((_, index) => /* @__PURE__ */ React2.createElement(VirtualizedBodyRow, {
206
+
207
+ const generateRenderedRows = () => rows.slice(renderedIndexes[0], renderedIndexes[1] + 1).map((_, index) => /*#__PURE__*/_jsx(VirtualizedBodyRow, {
150
208
  data: {
151
209
  rows,
152
210
  columns,
153
211
  rowKey,
154
- renderer: { rowRenderer }
212
+ renderer: {
213
+ rowRenderer
214
+ }
155
215
  },
156
216
  index: renderedIndexes[0] + index,
157
- key: rows[renderedIndexes[0] + index][rowKey],
158
217
  style: getRowStyle(rows[renderedIndexes[0] + index], renderedIndexes[0] + index, rowHeight)
159
- }));
160
- const wrapperStyle = {
161
- height: "100%",
162
- ...isSafari ? wrapperSafari : wrapperGeneric
163
- };
218
+ }, rows[renderedIndexes[0] + index][rowKey]));
219
+
220
+ const wrapperStyle = _objectSpread({
221
+ height: '100%'
222
+ }, isSafari ? wrapperSafari : wrapperGeneric);
223
+
164
224
  const bodyStyle = {
165
225
  height: getHeight(),
166
- willChange: "transform",
167
- backfaceVisibility: "hidden"
226
+ willChange: 'transform',
227
+ backfaceVisibility: 'hidden'
168
228
  };
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);
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
+ }
184
245
  }
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));
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
+ }));
198
261
  };
262
+
199
263
  VirtualizedBody.defaultProps = {
200
264
  rows: [],
201
265
  overscanCount: 10
202
266
  };
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
267
+
268
+ export { VirtualizedBody as default };
@@ -1,8 +1,16 @@
1
- import * as React from "react";
2
- const VirtualizedBodyRow = ({ data, index, style, key, isScrolling }) => {
1
+ function VirtualizedBodyRow(_ref) {
2
+ let {
3
+ data,
4
+ index,
5
+ style,
6
+ key,
7
+ isScrolling
8
+ } = _ref;
3
9
  const {
4
10
  rows,
5
- renderer: { rowRenderer }
11
+ renderer: {
12
+ rowRenderer
13
+ }
6
14
  } = data;
7
15
  const rowData = rows[index];
8
16
  return rowRenderer(rowData, {
@@ -11,13 +19,10 @@ const VirtualizedBodyRow = ({ data, index, style, key, isScrolling }) => {
11
19
  rowIndex: index,
12
20
  key
13
21
  }, {
22
+ // eslint-disable-next-line no-underscore-dangle
14
23
  rowIndex: index,
15
24
  isScrolling
16
25
  });
17
- };
18
- var VirtualizedBodyRow_default = VirtualizedBodyRow;
19
- export {
20
- VirtualizedBodyRow,
21
- VirtualizedBodyRow_default as default
22
- };
23
- //# sourceMappingURL=VirtualizedBodyRow.js.map
26
+ }
27
+
28
+ export { VirtualizedBodyRow as default };
@@ -1,6 +1,3 @@
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
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,6 +1 @@
1
- import * as React from "react";
2
- import { VirtualizationPlugin } from "./VirtualizationPlugin";
3
- export {
4
- VirtualizationPlugin
5
- };
6
- //# sourceMappingURL=index.js.map
1
+ export { VirtualizationPlugin } from './VirtualizationPlugin.js';
@@ -1,82 +1,53 @@
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
- }) => {
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;
20
21
  const hasLeftAddon = !!leftAddon || keepLeftPadding;
21
22
  const hasRightAddon = !!rightAddon && !isEdit;
22
23
  const cols = [1];
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, {
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, {
29
28
  noPadding: hasLeftAddon || badgeAddon || highLight || hasRightAddon,
30
- hasLeftAddon,
31
- hasRightAddon,
32
- badgeAddon,
33
- highLight
34
- }, /* @__PURE__ */ React2.createElement(Grid, {
29
+ hasLeftAddon: hasLeftAddon,
30
+ hasRightAddon: hasRightAddon,
31
+ badgeAddon: badgeAddon,
32
+ highLight: highLight
33
+ }, void 0, /*#__PURE__*/_jsx(Grid, {
35
34
  height: "100%",
36
- cols
37
- }, hasLeftAddon && /* @__PURE__ */ React2.createElement(Grid, {
35
+ cols: cols
36
+ }, void 0, hasLeftAddon && /*#__PURE__*/_jsx(Grid, {
38
37
  alignItems: "center",
39
38
  pl: "xxs",
40
39
  pr: "xxs",
41
- width: keepLeftPadding ? "32px" : void 0
42
- }, hasLeftAddon && leftAddon), /* @__PURE__ */ React2.createElement(Grid, {
40
+ width: keepLeftPadding ? '32px' : undefined
41
+ }, void 0, hasLeftAddon && leftAddon), /*#__PURE__*/_jsx(Grid, {
43
42
  alignItems: "center"
44
- }, /* @__PURE__ */ React2.createElement(ValueWrapper, {
43
+ }, void 0, /*#__PURE__*/_jsx(ValueWrapper, {
45
44
  grayText: shouldBeGray
46
- }, isEdit ? editComponent : /* @__PURE__ */ React2.createElement(DSTruncatedTooltipText, {
47
- value
48
- }))), hasRightAddon && /* @__PURE__ */ React2.createElement(Grid, {
45
+ }, void 0, isEdit ? editComponent : /*#__PURE__*/_jsx(DSTruncatedTooltipText, {
46
+ value: value
47
+ }))), hasRightAddon && /*#__PURE__*/_jsx(Grid, {
49
48
  alignItems: "center",
50
49
  pl: "xxs"
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
50
+ }, void 0, rightAddon)));
81
51
  };
82
- //# sourceMappingURL=CellWithAddons.js.map
52
+
53
+ export { CellWithAddons };
@@ -1,8 +1,2 @@
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
1
+ export { CellWithAddons } from './CellWithAddons.js';
2
+ export { CellContainer } from './styled.js';
@@ -1,49 +1,16 @@
1
- import * as React from "react";
2
- import styled from "styled-components";
3
- import { Grid } from "@elliemae/ds-grid";
4
- const m = "0.61538rem";
5
- const m2 = "1.23076rem";
6
- const CellWrapper = styled.div`
7
- max-height: 36px;
8
- height: 100%;
9
- width: ${(props) => props.noPadding ? `calc(100% + ${m2})` : "100%"};
10
- margin-left: ${(props) => props.noPadding ? `-${m}` : "0"};
11
- margin-right: ${(props) => props.noPadding ? `-${m}` : "0"};
12
- padding-left: ${(props) => !props.hasLeftAddon && (props.badgeAddon || props.highLight || props.hasRightAddon) ? m : "0"};
13
- padding-right: ${(props) => !props.hasRightAddon && (props.badgeAddon || props.highLight || props.hasLeftAddon) ? m : "0"};
14
- ${(props) => props.highLight ? `background: ${props.theme.colors.brand["200"]}` : ""};
15
- ${(props) => props.badgeAddon ? `
16
- position: relative;
17
- &::before {
18
- display: block;
19
- content: '';
20
- position: absolute;
21
- top: 0;
22
- left:0;
23
- border-style: solid;
24
- border-width: ${props.theme.space.xxs} ${props.theme.space.xxs} ${props.theme.space.xxs} 0;
25
- border-color: ${props.theme.colors.brand["600"]} transparent transparent ${props.theme.colors.brand["600"]};
26
- }
27
- ` : ""}
28
- `;
29
- const ValueWrapper = styled.div`
30
- display: flex;
31
- align-items: center;
32
- overflow: hidden;
33
- & > span {
34
- display: inline-flex;
35
- align-items: center;
36
- }
37
- ${(props) => props.grayText ? `color: ${props.theme.colors.neutral["500"]};` : ""}
38
- `;
39
- const CellContainer = styled(Grid)`
40
- padding-left: ${m};
41
- padding-right: ${m};
42
- position: relative;
43
- `;
44
- export {
45
- CellContainer,
46
- CellWrapper,
47
- ValueWrapper
48
- };
49
- //# sourceMappingURL=styled.js.map
1
+ import styled from 'styled-components';
2
+ import Grid from '@elliemae/ds-grid';
3
+
4
+ const m = '0.61538rem';
5
+ const m2 = '1.23076rem';
6
+ const CellWrapper = /*#__PURE__*/styled.div.withConfig({
7
+ componentId: "sc-1n8exyf-0"
8
+ })(["max-height:36px;height:100%;width:", ";margin-left:", ";margin-right:", ";padding-left:", ";padding-right:", ";", ";", ""], props => props.noPadding ? "calc(100% + ".concat(m2, ")") : '100%', props => props.noPadding ? "-".concat(m) : '0', props => props.noPadding ? "-".concat(m) : '0', props => !props.hasLeftAddon && (props.badgeAddon || props.highLight || props.hasRightAddon) ? m : '0', props => !props.hasRightAddon && (props.badgeAddon || props.highLight || props.hasLeftAddon) ? m : '0', props => props.highLight ? "background: ".concat(props.theme.colors.brand['200']) : '', props => props.badgeAddon ? "\n position: relative; \n &::before {\n display: block;\n content: '';\n position: absolute;\n top: 0;\n left:0;\n border-style: solid;\n border-width: ".concat(props.theme.space.xxs, " ").concat(props.theme.space.xxs, " ").concat(props.theme.space.xxs, " 0;\n border-color: ").concat(props.theme.colors.brand['600'], " transparent transparent ").concat(props.theme.colors.brand['600'], ";\n }\n ") : '');
9
+ const ValueWrapper = /*#__PURE__*/styled.div.withConfig({
10
+ componentId: "sc-1n8exyf-1"
11
+ })(["display:flex;align-items:center;overflow:hidden;& > span{display:inline-flex;align-items:center;}", ""], props => props.grayText ? "color: ".concat(props.theme.colors.neutral['500'], ";") : '');
12
+ const CellContainer = /*#__PURE__*/styled(Grid).withConfig({
13
+ componentId: "sc-1n8exyf-2"
14
+ })(["padding-left:", ";padding-right:", ";position:relative;"], m, m);
15
+
16
+ export { CellContainer, CellWrapper, ValueWrapper };
package/esm/rowSizes.js CHANGED
@@ -1,22 +1,13 @@
1
- import * as React from "react";
2
1
  const RowSizes = {
3
2
  compact: 28,
4
3
  normal: 36,
5
4
  extend: 56
6
5
  };
7
6
  const RowSizesOptions = {
8
- compact: "compact",
9
- normal: "normal",
10
- extend: "extend"
7
+ compact: 'compact',
8
+ normal: 'normal',
9
+ extend: 'extend'
11
10
  };
12
- const RowSizesOptionsArr = [
13
- RowSizesOptions.compact,
14
- RowSizesOptions.normal,
15
- RowSizesOptions.extend
16
- ];
17
- export {
18
- RowSizes,
19
- RowSizesOptions,
20
- RowSizesOptionsArr
21
- };
22
- //# sourceMappingURL=rowSizes.js.map
11
+ const RowSizesOptionsArr = [RowSizesOptions.compact, RowSizesOptions.normal, RowSizesOptions.extend];
12
+
13
+ export { RowSizes, RowSizesOptions, RowSizesOptionsArr };