@elliemae/ds-legacy-datagrids 1.0.0-rc.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 (657) hide show
  1. package/dist/cjs/DSDataGrid.js +589 -0
  2. package/dist/cjs/DSDataGrid.js.map +7 -0
  3. package/dist/cjs/DataGridImpl.js +156 -0
  4. package/dist/cjs/DataGridImpl.js.map +7 -0
  5. package/dist/cjs/PaginatedDataGrid.js +84 -0
  6. package/dist/cjs/PaginatedDataGrid.js.map +7 -0
  7. package/dist/cjs/blockNames.js +40 -0
  8. package/dist/cjs/blockNames.js.map +7 -0
  9. package/dist/cjs/columns/IconColumn.js +109 -0
  10. package/dist/cjs/columns/IconColumn.js.map +7 -0
  11. package/dist/cjs/columns/NumberColumn.js +37 -0
  12. package/dist/cjs/columns/NumberColumn.js.map +7 -0
  13. package/dist/cjs/components/BodyCell.js +114 -0
  14. package/dist/cjs/components/BodyCell.js.map +7 -0
  15. package/dist/cjs/components/BodyList.js +48 -0
  16. package/dist/cjs/components/BodyList.js.map +7 -0
  17. package/dist/cjs/components/ColumnVisibilityMenuOption.js +65 -0
  18. package/dist/cjs/components/ColumnVisibilityMenuOption.js.map +7 -0
  19. package/dist/cjs/components/ColumnsOptionsMenuSection.js +63 -0
  20. package/dist/cjs/components/ColumnsOptionsMenuSection.js.map +7 -0
  21. package/dist/cjs/components/EmptyState.js +81 -0
  22. package/dist/cjs/components/EmptyState.js.map +7 -0
  23. package/dist/cjs/components/HeaderCell.js +79 -0
  24. package/dist/cjs/components/HeaderCell.js.map +7 -0
  25. package/dist/cjs/components/List.js +43 -0
  26. package/dist/cjs/components/List.js.map +7 -0
  27. package/dist/cjs/components/ListItem.js +49 -0
  28. package/dist/cjs/components/ListItem.js.map +7 -0
  29. package/dist/cjs/components/NoResults.js +53 -0
  30. package/dist/cjs/components/NoResults.js.map +7 -0
  31. package/dist/cjs/components/RowsLoader.js +41 -0
  32. package/dist/cjs/components/RowsLoader.js.map +7 -0
  33. package/dist/cjs/components/Table.js +125 -0
  34. package/dist/cjs/components/Table.js.map +7 -0
  35. package/dist/cjs/components/TableBody.js +71 -0
  36. package/dist/cjs/components/TableBody.js.map +7 -0
  37. package/dist/cjs/components/TableHeader.js +60 -0
  38. package/dist/cjs/components/TableHeader.js.map +7 -0
  39. package/dist/cjs/components/footer/addOptionalFooterComponents.js +60 -0
  40. package/dist/cjs/components/footer/addOptionalFooterComponents.js.map +7 -0
  41. package/dist/cjs/components/header/PrimaryControls.js +54 -0
  42. package/dist/cjs/components/header/PrimaryControls.js.map +7 -0
  43. package/dist/cjs/components/header/addOptionalHeaderComponents.js +62 -0
  44. package/dist/cjs/components/header/addOptionalHeaderComponents.js.map +7 -0
  45. package/dist/cjs/components/index.js +44 -0
  46. package/dist/cjs/components/index.js.map +7 -0
  47. package/dist/cjs/components/renderers/defaultClassedRenderers.js +67 -0
  48. package/dist/cjs/components/renderers/defaultClassedRenderers.js.map +7 -0
  49. package/dist/cjs/components/renderers/index.js +51 -0
  50. package/dist/cjs/components/renderers/index.js.map +7 -0
  51. package/dist/cjs/components/renderers/renderRowsLoader.js +38 -0
  52. package/dist/cjs/components/renderers/renderRowsLoader.js.map +7 -0
  53. package/dist/cjs/components/tableContext.js +37 -0
  54. package/dist/cjs/components/tableContext.js.map +7 -0
  55. package/dist/cjs/defaultPlugins.js +40 -0
  56. package/dist/cjs/defaultPlugins.js.map +7 -0
  57. package/dist/cjs/index.js +73 -0
  58. package/dist/cjs/index.js.map +7 -0
  59. package/dist/cjs/package.json +7 -0
  60. package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +145 -0
  61. package/dist/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +7 -0
  62. package/dist/cjs/plugins/body-header-scroll-sync/index.js +36 -0
  63. package/dist/cjs/plugins/body-header-scroll-sync/index.js.map +7 -0
  64. package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js +159 -0
  65. package/dist/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +7 -0
  66. package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +48 -0
  67. package/dist/cjs/plugins/column-dnd/decorateGridWithDndColumns.js.map +7 -0
  68. package/dist/cjs/plugins/column-dnd/index.js +36 -0
  69. package/dist/cjs/plugins/column-dnd/index.js.map +7 -0
  70. package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js +93 -0
  71. package/dist/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +7 -0
  72. package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js +70 -0
  73. package/dist/cjs/plugins/column-sizing/columnMeasurerTransformer.js.map +7 -0
  74. package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js +45 -0
  75. package/dist/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +7 -0
  76. package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js +65 -0
  77. package/dist/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +7 -0
  78. package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js +38 -0
  79. package/dist/cjs/plugins/column-sizing/getColumnNameFromProperty.js.map +7 -0
  80. package/dist/cjs/plugins/column-sizing/index.js +36 -0
  81. package/dist/cjs/plugins/column-sizing/index.js.map +7 -0
  82. package/dist/cjs/plugins/column-sizing/useColumnSizeService.js +148 -0
  83. package/dist/cjs/plugins/column-sizing/useColumnSizeService.js.map +7 -0
  84. package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js +181 -0
  85. package/dist/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +7 -0
  86. package/dist/cjs/plugins/column-sizing/utils.js +69 -0
  87. package/dist/cjs/plugins/column-sizing/utils.js.map +7 -0
  88. package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +41 -0
  89. package/dist/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +7 -0
  90. package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +79 -0
  91. package/dist/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +7 -0
  92. package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js +60 -0
  93. package/dist/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +7 -0
  94. package/dist/cjs/plugins/custom-cell-renderer/index.js +36 -0
  95. package/dist/cjs/plugins/custom-cell-renderer/index.js.map +7 -0
  96. package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js +73 -0
  97. package/dist/cjs/plugins/editable/EditableComponents/ComboBox.js.map +7 -0
  98. package/dist/cjs/plugins/editable/EditableComponents/TextBox.js +95 -0
  99. package/dist/cjs/plugins/editable/EditableComponents/TextBox.js.map +7 -0
  100. package/dist/cjs/plugins/editable/EditableComponents/index.js +38 -0
  101. package/dist/cjs/plugins/editable/EditableComponents/index.js.map +7 -0
  102. package/dist/cjs/plugins/editable/EditablePlugin.js +112 -0
  103. package/dist/cjs/plugins/editable/EditablePlugin.js.map +7 -0
  104. package/dist/cjs/plugins/editable/decorateEditable.js +96 -0
  105. package/dist/cjs/plugins/editable/decorateEditable.js.map +7 -0
  106. package/dist/cjs/plugins/editable/getEditorComponent.js +60 -0
  107. package/dist/cjs/plugins/editable/getEditorComponent.js.map +7 -0
  108. package/dist/cjs/plugins/editable/index.js +39 -0
  109. package/dist/cjs/plugins/editable/index.js.map +7 -0
  110. package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js +131 -0
  111. package/dist/cjs/plugins/expandable-grid/ExpandableColumn.js.map +7 -0
  112. package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js +197 -0
  113. package/dist/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +7 -0
  114. package/dist/cjs/plugins/expandable-grid/ExpandedRow.js +147 -0
  115. package/dist/cjs/plugins/expandable-grid/ExpandedRow.js.map +7 -0
  116. package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js +57 -0
  117. package/dist/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +7 -0
  118. package/dist/cjs/plugins/expandable-grid/index.js +38 -0
  119. package/dist/cjs/plugins/expandable-grid/index.js.map +7 -0
  120. package/dist/cjs/plugins/expandable-grid/useExpandGridState.js +94 -0
  121. package/dist/cjs/plugins/expandable-grid/useExpandGridState.js.map +7 -0
  122. package/dist/cjs/plugins/export-data/ExportDataPlugin.js +135 -0
  123. package/dist/cjs/plugins/export-data/ExportDataPlugin.js.map +7 -0
  124. package/dist/cjs/plugins/export-data/index.js +36 -0
  125. package/dist/cjs/plugins/export-data/index.js.map +7 -0
  126. package/dist/cjs/plugins/filterable/FilterablePlugin.js +84 -0
  127. package/dist/cjs/plugins/filterable/FilterablePlugin.js.map +7 -0
  128. package/dist/cjs/plugins/filterable/addFilterToColumn.js +44 -0
  129. package/dist/cjs/plugins/filterable/addFilterToColumn.js.map +7 -0
  130. package/dist/cjs/plugins/filterable/components/FilterableHeader.js +133 -0
  131. package/dist/cjs/plugins/filterable/components/FilterableHeader.js.map +7 -0
  132. package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +179 -0
  133. package/dist/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +7 -0
  134. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +133 -0
  135. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +7 -0
  136. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +231 -0
  137. package/dist/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +7 -0
  138. package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +183 -0
  139. package/dist/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +7 -0
  140. package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +36 -0
  141. package/dist/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +7 -0
  142. package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +48 -0
  143. package/dist/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +7 -0
  144. package/dist/cjs/plugins/filterable/filterableFormatter.js +69 -0
  145. package/dist/cjs/plugins/filterable/filterableFormatter.js.map +7 -0
  146. package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +83 -0
  147. package/dist/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +7 -0
  148. package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +45 -0
  149. package/dist/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +7 -0
  150. package/dist/cjs/plugins/filterable/helper.js +113 -0
  151. package/dist/cjs/plugins/filterable/helper.js.map +7 -0
  152. package/dist/cjs/plugins/filterable/index.js +36 -0
  153. package/dist/cjs/plugins/filterable/index.js.map +7 -0
  154. package/dist/cjs/plugins/filterable/useFilterableState.js +112 -0
  155. package/dist/cjs/plugins/filterable/useFilterableState.js.map +7 -0
  156. package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js +58 -0
  157. package/dist/cjs/plugins/grouping-by/GroupingByPlugin.js.map +7 -0
  158. package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js +134 -0
  159. package/dist/cjs/plugins/grouping-grid/GroupingPlugin.js.map +7 -0
  160. package/dist/cjs/plugins/grouping-grid/walkStrategy.js +77 -0
  161. package/dist/cjs/plugins/grouping-grid/walkStrategy.js.map +7 -0
  162. package/dist/cjs/plugins/index.js +69 -0
  163. package/dist/cjs/plugins/index.js.map +7 -0
  164. package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +101 -0
  165. package/dist/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +7 -0
  166. package/dist/cjs/plugins/infinite-scrolling/index.js +36 -0
  167. package/dist/cjs/plugins/infinite-scrolling/index.js.map +7 -0
  168. package/dist/cjs/plugins/pagination/PaginationPlugin.js +90 -0
  169. package/dist/cjs/plugins/pagination/PaginationPlugin.js.map +7 -0
  170. package/dist/cjs/plugins/pagination/components/Pagination.js +57 -0
  171. package/dist/cjs/plugins/pagination/components/Pagination.js.map +7 -0
  172. package/dist/cjs/plugins/pagination/components/Paginator.js +73 -0
  173. package/dist/cjs/plugins/pagination/components/Paginator.js.map +7 -0
  174. package/dist/cjs/plugins/pagination/components/PerPageDropdown.js +74 -0
  175. package/dist/cjs/plugins/pagination/components/PerPageDropdown.js.map +7 -0
  176. package/dist/cjs/plugins/pagination/helper.js +63 -0
  177. package/dist/cjs/plugins/pagination/helper.js.map +7 -0
  178. package/dist/cjs/plugins/pagination/index.js +36 -0
  179. package/dist/cjs/plugins/pagination/index.js.map +7 -0
  180. package/dist/cjs/plugins/pagination/usePaginationState.js +83 -0
  181. package/dist/cjs/plugins/pagination/usePaginationState.js.map +7 -0
  182. package/dist/cjs/plugins/resizable/ResizablePlugin.js +116 -0
  183. package/dist/cjs/plugins/resizable/ResizablePlugin.js.map +7 -0
  184. package/dist/cjs/plugins/resizable/decorateResizable.js +57 -0
  185. package/dist/cjs/plugins/resizable/decorateResizable.js.map +7 -0
  186. package/dist/cjs/plugins/resizable/index.js +36 -0
  187. package/dist/cjs/plugins/resizable/index.js.map +7 -0
  188. package/dist/cjs/plugins/resizable/useResizeHandle.js +75 -0
  189. package/dist/cjs/plugins/resizable/useResizeHandle.js.map +7 -0
  190. package/dist/cjs/plugins/resizable/utils.js +55 -0
  191. package/dist/cjs/plugins/resizable/utils.js.map +7 -0
  192. package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js +140 -0
  193. package/dist/cjs/plugins/row-dnd/DndRowsPlugin.js.map +7 -0
  194. package/dist/cjs/plugins/row-dnd/index.js +36 -0
  195. package/dist/cjs/plugins/row-dnd/index.js.map +7 -0
  196. package/dist/cjs/plugins/selectable/SelectablePlugin.js +170 -0
  197. package/dist/cjs/plugins/selectable/SelectablePlugin.js.map +7 -0
  198. package/dist/cjs/plugins/selectable/addSelectableColumn.js +105 -0
  199. package/dist/cjs/plugins/selectable/addSelectableColumn.js.map +7 -0
  200. package/dist/cjs/plugins/selectable/helper.js +55 -0
  201. package/dist/cjs/plugins/selectable/helper.js.map +7 -0
  202. package/dist/cjs/plugins/selectable/index.js +36 -0
  203. package/dist/cjs/plugins/selectable/index.js.map +7 -0
  204. package/dist/cjs/plugins/selectable/selectableFormatter.js +99 -0
  205. package/dist/cjs/plugins/selectable/selectableFormatter.js.map +7 -0
  206. package/dist/cjs/plugins/selectable/useSelectableState.js +128 -0
  207. package/dist/cjs/plugins/selectable/useSelectableState.js.map +7 -0
  208. package/dist/cjs/plugins/sortable/SortablePlugin.js +98 -0
  209. package/dist/cjs/plugins/sortable/SortablePlugin.js.map +7 -0
  210. package/dist/cjs/plugins/sortable/checkIfSortable.js +46 -0
  211. package/dist/cjs/plugins/sortable/checkIfSortable.js.map +7 -0
  212. package/dist/cjs/plugins/sortable/index.js +36 -0
  213. package/dist/cjs/plugins/sortable/index.js.map +7 -0
  214. package/dist/cjs/plugins/sortable/sortHeaderFormatter.js +66 -0
  215. package/dist/cjs/plugins/sortable/sortHeaderFormatter.js.map +7 -0
  216. package/dist/cjs/plugins/sortable/sortTree.js +49 -0
  217. package/dist/cjs/plugins/sortable/sortTree.js.map +7 -0
  218. package/dist/cjs/plugins/sortable/sorter.js +154 -0
  219. package/dist/cjs/plugins/sortable/sorter.js.map +7 -0
  220. package/dist/cjs/plugins/sortable/useSortableState.js +74 -0
  221. package/dist/cjs/plugins/sortable/useSortableState.js.map +7 -0
  222. package/dist/cjs/plugins/toolbar/RowRenderer.js +109 -0
  223. package/dist/cjs/plugins/toolbar/RowRenderer.js.map +7 -0
  224. package/dist/cjs/plugins/toolbar/ToolbarPlugin.js +63 -0
  225. package/dist/cjs/plugins/toolbar/ToolbarPlugin.js.map +7 -0
  226. package/dist/cjs/plugins/toolbar/ToolbarTrigger.js +115 -0
  227. package/dist/cjs/plugins/toolbar/ToolbarTrigger.js.map +7 -0
  228. package/dist/cjs/plugins/toolbar/index.js +36 -0
  229. package/dist/cjs/plugins/toolbar/index.js.map +7 -0
  230. package/dist/cjs/plugins/virtualization/AutoHeightList.js +78 -0
  231. package/dist/cjs/plugins/virtualization/AutoHeightList.js.map +7 -0
  232. package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js +109 -0
  233. package/dist/cjs/plugins/virtualization/VirtualizationPlugin.js.map +7 -0
  234. package/dist/cjs/plugins/virtualization/VirtualizedBody.js +275 -0
  235. package/dist/cjs/plugins/virtualization/VirtualizedBody.js.map +7 -0
  236. package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js +58 -0
  237. package/dist/cjs/plugins/virtualization/VirtualizedBodyRow.js.map +7 -0
  238. package/dist/cjs/plugins/virtualization/helper.js +36 -0
  239. package/dist/cjs/plugins/virtualization/helper.js.map +7 -0
  240. package/dist/cjs/plugins/virtualization/index.js +36 -0
  241. package/dist/cjs/plugins/virtualization/index.js.map +7 -0
  242. package/dist/cjs/renders/CellWithAddons.js +113 -0
  243. package/dist/cjs/renders/CellWithAddons.js.map +7 -0
  244. package/dist/cjs/renders/index.js +38 -0
  245. package/dist/cjs/renders/index.js.map +7 -0
  246. package/dist/cjs/renders/styled.js +79 -0
  247. package/dist/cjs/renders/styled.js.map +7 -0
  248. package/dist/cjs/rowSizes.js +48 -0
  249. package/dist/cjs/rowSizes.js.map +7 -0
  250. package/dist/cjs/utilities/DataGridUtilities.json +1315 -0
  251. package/dist/cjs/utilities/getPluginsFromProps.js +73 -0
  252. package/dist/cjs/utilities/getPluginsFromProps.js.map +7 -0
  253. package/dist/cjs/utilities/getScrollbarSize.js +47 -0
  254. package/dist/cjs/utilities/getScrollbarSize.js.map +7 -0
  255. package/dist/cjs/utilities/normalizeData.js +50 -0
  256. package/dist/cjs/utilities/normalizeData.js.map +7 -0
  257. package/dist/esm/DSDataGrid.js +559 -0
  258. package/dist/esm/DSDataGrid.js.map +7 -0
  259. package/dist/esm/DataGridImpl.js +126 -0
  260. package/dist/esm/DataGridImpl.js.map +7 -0
  261. package/dist/esm/PaginatedDataGrid.js +54 -0
  262. package/dist/esm/PaginatedDataGrid.js.map +7 -0
  263. package/dist/esm/blockNames.js +10 -0
  264. package/dist/esm/blockNames.js.map +7 -0
  265. package/dist/esm/columns/IconColumn.js +79 -0
  266. package/dist/esm/columns/IconColumn.js.map +7 -0
  267. package/dist/esm/columns/NumberColumn.js +7 -0
  268. package/dist/esm/columns/NumberColumn.js.map +7 -0
  269. package/dist/esm/components/BodyCell.js +84 -0
  270. package/dist/esm/components/BodyCell.js.map +7 -0
  271. package/dist/esm/components/BodyList.js +18 -0
  272. package/dist/esm/components/BodyList.js.map +7 -0
  273. package/dist/esm/components/ColumnVisibilityMenuOption.js +35 -0
  274. package/dist/esm/components/ColumnVisibilityMenuOption.js.map +7 -0
  275. package/dist/esm/components/ColumnsOptionsMenuSection.js +33 -0
  276. package/dist/esm/components/ColumnsOptionsMenuSection.js.map +7 -0
  277. package/dist/esm/components/EmptyState.js +51 -0
  278. package/dist/esm/components/EmptyState.js.map +7 -0
  279. package/dist/esm/components/HeaderCell.js +49 -0
  280. package/dist/esm/components/HeaderCell.js.map +7 -0
  281. package/dist/esm/components/List.js +13 -0
  282. package/dist/esm/components/List.js.map +7 -0
  283. package/dist/esm/components/ListItem.js +19 -0
  284. package/dist/esm/components/ListItem.js.map +7 -0
  285. package/dist/esm/components/NoResults.js +23 -0
  286. package/dist/esm/components/NoResults.js.map +7 -0
  287. package/dist/esm/components/RowsLoader.js +11 -0
  288. package/dist/esm/components/RowsLoader.js.map +7 -0
  289. package/dist/esm/components/Table.js +95 -0
  290. package/dist/esm/components/Table.js.map +7 -0
  291. package/dist/esm/components/TableBody.js +41 -0
  292. package/dist/esm/components/TableBody.js.map +7 -0
  293. package/dist/esm/components/TableHeader.js +30 -0
  294. package/dist/esm/components/TableHeader.js.map +7 -0
  295. package/dist/esm/components/footer/addOptionalFooterComponents.js +30 -0
  296. package/dist/esm/components/footer/addOptionalFooterComponents.js.map +7 -0
  297. package/dist/esm/components/header/PrimaryControls.js +24 -0
  298. package/dist/esm/components/header/PrimaryControls.js.map +7 -0
  299. package/dist/esm/components/header/addOptionalHeaderComponents.js +32 -0
  300. package/dist/esm/components/header/addOptionalHeaderComponents.js.map +7 -0
  301. package/dist/esm/components/index.js +14 -0
  302. package/dist/esm/components/index.js.map +7 -0
  303. package/dist/esm/components/renderers/defaultClassedRenderers.js +37 -0
  304. package/dist/esm/components/renderers/defaultClassedRenderers.js.map +7 -0
  305. package/dist/esm/components/renderers/index.js +29 -0
  306. package/dist/esm/components/renderers/index.js.map +7 -0
  307. package/dist/esm/components/renderers/renderRowsLoader.js +8 -0
  308. package/dist/esm/components/renderers/renderRowsLoader.js.map +7 -0
  309. package/dist/esm/components/tableContext.js +7 -0
  310. package/dist/esm/components/tableContext.js.map +7 -0
  311. package/dist/esm/defaultPlugins.js +10 -0
  312. package/dist/esm/defaultPlugins.js.map +7 -0
  313. package/dist/esm/index.js +63 -0
  314. package/dist/esm/index.js.map +7 -0
  315. package/dist/esm/package.json +7 -0
  316. package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +115 -0
  317. package/dist/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +7 -0
  318. package/dist/esm/plugins/body-header-scroll-sync/index.js +6 -0
  319. package/dist/esm/plugins/body-header-scroll-sync/index.js.map +7 -0
  320. package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js +129 -0
  321. package/dist/esm/plugins/column-dnd/DndColumnsPlugin.js.map +7 -0
  322. package/dist/esm/plugins/column-dnd/decorateGridWithDndColumns.js +18 -0
  323. package/dist/esm/plugins/column-dnd/decorateGridWithDndColumns.js.map +7 -0
  324. package/dist/esm/plugins/column-dnd/index.js +6 -0
  325. package/dist/esm/plugins/column-dnd/index.js.map +7 -0
  326. package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js +63 -0
  327. package/dist/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +7 -0
  328. package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js +40 -0
  329. package/dist/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +7 -0
  330. package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js +15 -0
  331. package/dist/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +7 -0
  332. package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js +35 -0
  333. package/dist/esm/plugins/column-sizing/ext-points/getTableProps.js.map +7 -0
  334. package/dist/esm/plugins/column-sizing/getColumnNameFromProperty.js +8 -0
  335. package/dist/esm/plugins/column-sizing/getColumnNameFromProperty.js.map +7 -0
  336. package/dist/esm/plugins/column-sizing/index.js +6 -0
  337. package/dist/esm/plugins/column-sizing/index.js.map +7 -0
  338. package/dist/esm/plugins/column-sizing/useColumnSizeService.js +118 -0
  339. package/dist/esm/plugins/column-sizing/useColumnSizeService.js.map +7 -0
  340. package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js +151 -0
  341. package/dist/esm/plugins/column-sizing/useStylesheetHelpers.js.map +7 -0
  342. package/dist/esm/plugins/column-sizing/utils.js +39 -0
  343. package/dist/esm/plugins/column-sizing/utils.js.map +7 -0
  344. package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +11 -0
  345. package/dist/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +7 -0
  346. package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +49 -0
  347. package/dist/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +7 -0
  348. package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js +30 -0
  349. package/dist/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +7 -0
  350. package/dist/esm/plugins/custom-cell-renderer/index.js +6 -0
  351. package/dist/esm/plugins/custom-cell-renderer/index.js.map +7 -0
  352. package/dist/esm/plugins/editable/EditableComponents/ComboBox.js +43 -0
  353. package/dist/esm/plugins/editable/EditableComponents/ComboBox.js.map +7 -0
  354. package/dist/esm/plugins/editable/EditableComponents/TextBox.js +65 -0
  355. package/dist/esm/plugins/editable/EditableComponents/TextBox.js.map +7 -0
  356. package/dist/esm/plugins/editable/EditableComponents/index.js +8 -0
  357. package/dist/esm/plugins/editable/EditableComponents/index.js.map +7 -0
  358. package/dist/esm/plugins/editable/EditablePlugin.js +82 -0
  359. package/dist/esm/plugins/editable/EditablePlugin.js.map +7 -0
  360. package/dist/esm/plugins/editable/decorateEditable.js +66 -0
  361. package/dist/esm/plugins/editable/decorateEditable.js.map +7 -0
  362. package/dist/esm/plugins/editable/getEditorComponent.js +30 -0
  363. package/dist/esm/plugins/editable/getEditorComponent.js.map +7 -0
  364. package/dist/esm/plugins/editable/index.js +9 -0
  365. package/dist/esm/plugins/editable/index.js.map +7 -0
  366. package/dist/esm/plugins/expandable-grid/ExpandableColumn.js +101 -0
  367. package/dist/esm/plugins/expandable-grid/ExpandableColumn.js.map +7 -0
  368. package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js +167 -0
  369. package/dist/esm/plugins/expandable-grid/ExpandablePlugin.js.map +7 -0
  370. package/dist/esm/plugins/expandable-grid/ExpandedRow.js +117 -0
  371. package/dist/esm/plugins/expandable-grid/ExpandedRow.js.map +7 -0
  372. package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js +27 -0
  373. package/dist/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +7 -0
  374. package/dist/esm/plugins/expandable-grid/index.js +8 -0
  375. package/dist/esm/plugins/expandable-grid/index.js.map +7 -0
  376. package/dist/esm/plugins/expandable-grid/useExpandGridState.js +64 -0
  377. package/dist/esm/plugins/expandable-grid/useExpandGridState.js.map +7 -0
  378. package/dist/esm/plugins/export-data/ExportDataPlugin.js +105 -0
  379. package/dist/esm/plugins/export-data/ExportDataPlugin.js.map +7 -0
  380. package/dist/esm/plugins/export-data/index.js +6 -0
  381. package/dist/esm/plugins/export-data/index.js.map +7 -0
  382. package/dist/esm/plugins/filterable/FilterablePlugin.js +54 -0
  383. package/dist/esm/plugins/filterable/FilterablePlugin.js.map +7 -0
  384. package/dist/esm/plugins/filterable/addFilterToColumn.js +14 -0
  385. package/dist/esm/plugins/filterable/addFilterToColumn.js.map +7 -0
  386. package/dist/esm/plugins/filterable/components/FilterableHeader.js +103 -0
  387. package/dist/esm/plugins/filterable/components/FilterableHeader.js.map +7 -0
  388. package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +149 -0
  389. package/dist/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +7 -0
  390. package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +103 -0
  391. package/dist/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +7 -0
  392. package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +205 -0
  393. package/dist/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +7 -0
  394. package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +153 -0
  395. package/dist/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +7 -0
  396. package/dist/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js +6 -0
  397. package/dist/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +7 -0
  398. package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +18 -0
  399. package/dist/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +7 -0
  400. package/dist/esm/plugins/filterable/filterableFormatter.js +39 -0
  401. package/dist/esm/plugins/filterable/filterableFormatter.js.map +7 -0
  402. package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +53 -0
  403. package/dist/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +7 -0
  404. package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js +15 -0
  405. package/dist/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +7 -0
  406. package/dist/esm/plugins/filterable/helper.js +83 -0
  407. package/dist/esm/plugins/filterable/helper.js.map +7 -0
  408. package/dist/esm/plugins/filterable/index.js +6 -0
  409. package/dist/esm/plugins/filterable/index.js.map +7 -0
  410. package/dist/esm/plugins/filterable/useFilterableState.js +82 -0
  411. package/dist/esm/plugins/filterable/useFilterableState.js.map +7 -0
  412. package/dist/esm/plugins/grouping-by/GroupingByPlugin.js +28 -0
  413. package/dist/esm/plugins/grouping-by/GroupingByPlugin.js.map +7 -0
  414. package/dist/esm/plugins/grouping-grid/GroupingPlugin.js +104 -0
  415. package/dist/esm/plugins/grouping-grid/GroupingPlugin.js.map +7 -0
  416. package/dist/esm/plugins/grouping-grid/walkStrategy.js +47 -0
  417. package/dist/esm/plugins/grouping-grid/walkStrategy.js.map +7 -0
  418. package/dist/esm/plugins/index.js +39 -0
  419. package/dist/esm/plugins/index.js.map +7 -0
  420. package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +71 -0
  421. package/dist/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +7 -0
  422. package/dist/esm/plugins/infinite-scrolling/index.js +6 -0
  423. package/dist/esm/plugins/infinite-scrolling/index.js.map +7 -0
  424. package/dist/esm/plugins/pagination/PaginationPlugin.js +60 -0
  425. package/dist/esm/plugins/pagination/PaginationPlugin.js.map +7 -0
  426. package/dist/esm/plugins/pagination/components/Pagination.js +27 -0
  427. package/dist/esm/plugins/pagination/components/Pagination.js.map +7 -0
  428. package/dist/esm/plugins/pagination/components/Paginator.js +43 -0
  429. package/dist/esm/plugins/pagination/components/Paginator.js.map +7 -0
  430. package/dist/esm/plugins/pagination/components/PerPageDropdown.js +44 -0
  431. package/dist/esm/plugins/pagination/components/PerPageDropdown.js.map +7 -0
  432. package/dist/esm/plugins/pagination/helper.js +33 -0
  433. package/dist/esm/plugins/pagination/helper.js.map +7 -0
  434. package/dist/esm/plugins/pagination/index.js +6 -0
  435. package/dist/esm/plugins/pagination/index.js.map +7 -0
  436. package/dist/esm/plugins/pagination/usePaginationState.js +53 -0
  437. package/dist/esm/plugins/pagination/usePaginationState.js.map +7 -0
  438. package/dist/esm/plugins/resizable/ResizablePlugin.js +86 -0
  439. package/dist/esm/plugins/resizable/ResizablePlugin.js.map +7 -0
  440. package/dist/esm/plugins/resizable/decorateResizable.js +27 -0
  441. package/dist/esm/plugins/resizable/decorateResizable.js.map +7 -0
  442. package/dist/esm/plugins/resizable/index.js +6 -0
  443. package/dist/esm/plugins/resizable/index.js.map +7 -0
  444. package/dist/esm/plugins/resizable/useResizeHandle.js +45 -0
  445. package/dist/esm/plugins/resizable/useResizeHandle.js.map +7 -0
  446. package/dist/esm/plugins/resizable/utils.js +25 -0
  447. package/dist/esm/plugins/resizable/utils.js.map +7 -0
  448. package/dist/esm/plugins/row-dnd/DndRowsPlugin.js +110 -0
  449. package/dist/esm/plugins/row-dnd/DndRowsPlugin.js.map +7 -0
  450. package/dist/esm/plugins/row-dnd/index.js +6 -0
  451. package/dist/esm/plugins/row-dnd/index.js.map +7 -0
  452. package/dist/esm/plugins/selectable/SelectablePlugin.js +140 -0
  453. package/dist/esm/plugins/selectable/SelectablePlugin.js.map +7 -0
  454. package/dist/esm/plugins/selectable/addSelectableColumn.js +75 -0
  455. package/dist/esm/plugins/selectable/addSelectableColumn.js.map +7 -0
  456. package/dist/esm/plugins/selectable/helper.js +25 -0
  457. package/dist/esm/plugins/selectable/helper.js.map +7 -0
  458. package/dist/esm/plugins/selectable/index.js +6 -0
  459. package/dist/esm/plugins/selectable/index.js.map +7 -0
  460. package/dist/esm/plugins/selectable/selectableFormatter.js +69 -0
  461. package/dist/esm/plugins/selectable/selectableFormatter.js.map +7 -0
  462. package/dist/esm/plugins/selectable/useSelectableState.js +98 -0
  463. package/dist/esm/plugins/selectable/useSelectableState.js.map +7 -0
  464. package/dist/esm/plugins/sortable/SortablePlugin.js +68 -0
  465. package/dist/esm/plugins/sortable/SortablePlugin.js.map +7 -0
  466. package/dist/esm/plugins/sortable/checkIfSortable.js +16 -0
  467. package/dist/esm/plugins/sortable/checkIfSortable.js.map +7 -0
  468. package/dist/esm/plugins/sortable/index.js +6 -0
  469. package/dist/esm/plugins/sortable/index.js.map +7 -0
  470. package/dist/esm/plugins/sortable/sortHeaderFormatter.js +36 -0
  471. package/dist/esm/plugins/sortable/sortHeaderFormatter.js.map +7 -0
  472. package/dist/esm/plugins/sortable/sortTree.js +19 -0
  473. package/dist/esm/plugins/sortable/sortTree.js.map +7 -0
  474. package/dist/esm/plugins/sortable/sorter.js +124 -0
  475. package/dist/esm/plugins/sortable/sorter.js.map +7 -0
  476. package/dist/esm/plugins/sortable/useSortableState.js +44 -0
  477. package/dist/esm/plugins/sortable/useSortableState.js.map +7 -0
  478. package/dist/esm/plugins/toolbar/RowRenderer.js +79 -0
  479. package/dist/esm/plugins/toolbar/RowRenderer.js.map +7 -0
  480. package/dist/esm/plugins/toolbar/ToolbarPlugin.js +33 -0
  481. package/dist/esm/plugins/toolbar/ToolbarPlugin.js.map +7 -0
  482. package/dist/esm/plugins/toolbar/ToolbarTrigger.js +85 -0
  483. package/dist/esm/plugins/toolbar/ToolbarTrigger.js.map +7 -0
  484. package/dist/esm/plugins/toolbar/index.js +6 -0
  485. package/dist/esm/plugins/toolbar/index.js.map +7 -0
  486. package/dist/esm/plugins/virtualization/AutoHeightList.js +48 -0
  487. package/dist/esm/plugins/virtualization/AutoHeightList.js.map +7 -0
  488. package/dist/esm/plugins/virtualization/VirtualizationPlugin.js +79 -0
  489. package/dist/esm/plugins/virtualization/VirtualizationPlugin.js.map +7 -0
  490. package/dist/esm/plugins/virtualization/VirtualizedBody.js +245 -0
  491. package/dist/esm/plugins/virtualization/VirtualizedBody.js.map +7 -0
  492. package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js +28 -0
  493. package/dist/esm/plugins/virtualization/VirtualizedBodyRow.js.map +7 -0
  494. package/dist/esm/plugins/virtualization/helper.js +6 -0
  495. package/dist/esm/plugins/virtualization/helper.js.map +7 -0
  496. package/dist/esm/plugins/virtualization/index.js +6 -0
  497. package/dist/esm/plugins/virtualization/index.js.map +7 -0
  498. package/dist/esm/renders/CellWithAddons.js +83 -0
  499. package/dist/esm/renders/CellWithAddons.js.map +7 -0
  500. package/dist/esm/renders/index.js +8 -0
  501. package/dist/esm/renders/index.js.map +7 -0
  502. package/dist/esm/renders/styled.js +49 -0
  503. package/dist/esm/renders/styled.js.map +7 -0
  504. package/dist/esm/rowSizes.js +18 -0
  505. package/dist/esm/rowSizes.js.map +7 -0
  506. package/dist/esm/utilities/DataGridUtilities.json +1315 -0
  507. package/dist/esm/utilities/getPluginsFromProps.js +43 -0
  508. package/dist/esm/utilities/getPluginsFromProps.js.map +7 -0
  509. package/dist/esm/utilities/getScrollbarSize.js +17 -0
  510. package/dist/esm/utilities/getScrollbarSize.js.map +7 -0
  511. package/dist/esm/utilities/normalizeData.js +20 -0
  512. package/dist/esm/utilities/normalizeData.js.map +7 -0
  513. package/dist/types/DSDataGrid.d.ts +452 -0
  514. package/dist/types/DataGridImpl.d.ts +12 -0
  515. package/dist/types/PaginatedDataGrid.d.ts +14 -0
  516. package/dist/types/blockNames.d.ts +4 -0
  517. package/dist/types/columns/IconColumn.d.ts +35 -0
  518. package/dist/types/columns/NumberColumn.d.ts +4 -0
  519. package/dist/types/components/BodyCell.d.ts +33 -0
  520. package/dist/types/components/BodyList.d.ts +11 -0
  521. package/dist/types/components/ColumnVisibilityMenuOption.d.ts +15 -0
  522. package/dist/types/components/ColumnsOptionsMenuSection.d.ts +8 -0
  523. package/dist/types/components/EmptyState.d.ts +6 -0
  524. package/dist/types/components/HeaderCell.d.ts +18 -0
  525. package/dist/types/components/List.d.ts +2 -0
  526. package/dist/types/components/ListItem.d.ts +2 -0
  527. package/dist/types/components/NoResults.d.ts +7 -0
  528. package/dist/types/components/RowsLoader.d.ts +4 -0
  529. package/dist/types/components/Table.d.ts +8 -0
  530. package/dist/types/components/TableBody.d.ts +4 -0
  531. package/dist/types/components/TableHeader.d.ts +3 -0
  532. package/dist/types/components/footer/addOptionalFooterComponents.d.ts +6 -0
  533. package/dist/types/components/header/PrimaryControls.d.ts +5 -0
  534. package/dist/types/components/header/addOptionalHeaderComponents.d.ts +10 -0
  535. package/dist/types/components/index.d.ts +5 -0
  536. package/dist/types/components/renderers/defaultClassedRenderers.d.ts +11 -0
  537. package/dist/types/components/renderers/index.d.ts +15 -0
  538. package/dist/types/components/renderers/renderRowsLoader.d.ts +1 -0
  539. package/dist/types/components/tableContext.d.ts +2 -0
  540. package/dist/types/components/tests/ColumnVisibilityMenu.test.d.ts +1 -0
  541. package/dist/types/defaultPlugins.d.ts +1 -0
  542. package/dist/types/index.d.ts +9 -0
  543. package/dist/types/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.d.ts +1 -0
  544. package/dist/types/plugins/body-header-scroll-sync/index.d.ts +1 -0
  545. package/dist/types/plugins/column-dnd/DndColumnsPlugin.d.ts +1 -0
  546. package/dist/types/plugins/column-dnd/decorateGridWithDndColumns.d.ts +2 -0
  547. package/dist/types/plugins/column-dnd/index.d.ts +1 -0
  548. package/dist/types/plugins/column-sizing/ColumnSizingPlugin.d.ts +1 -0
  549. package/dist/types/plugins/column-sizing/columnMeasurerTransformer.d.ts +6 -0
  550. package/dist/types/plugins/column-sizing/ext-points/decorateColumn.d.ts +1 -0
  551. package/dist/types/plugins/column-sizing/ext-points/getTableProps.d.ts +10 -0
  552. package/dist/types/plugins/column-sizing/getColumnNameFromProperty.d.ts +2 -0
  553. package/dist/types/plugins/column-sizing/index.d.ts +1 -0
  554. package/dist/types/plugins/column-sizing/useColumnSizeService.d.ts +18 -0
  555. package/dist/types/plugins/column-sizing/useStylesheetHelpers.d.ts +22 -0
  556. package/dist/types/plugins/column-sizing/utils.d.ts +5 -0
  557. package/dist/types/plugins/custom-cell-renderer/CustomRendererPlugin.d.ts +1 -0
  558. package/dist/types/plugins/custom-cell-renderer/addCustomRendererToCell.d.ts +4 -0
  559. package/dist/types/plugins/custom-cell-renderer/getRendererComponent.d.ts +11 -0
  560. package/dist/types/plugins/custom-cell-renderer/index.d.ts +1 -0
  561. package/dist/types/plugins/editable/EditableComponents/ComboBox.d.ts +12 -0
  562. package/dist/types/plugins/editable/EditableComponents/TextBox.d.ts +24 -0
  563. package/dist/types/plugins/editable/EditableComponents/index.d.ts +2 -0
  564. package/dist/types/plugins/editable/EditablePlugin.d.ts +1 -0
  565. package/dist/types/plugins/editable/decorateEditable.d.ts +7 -0
  566. package/dist/types/plugins/editable/getEditorComponent.d.ts +7 -0
  567. package/dist/types/plugins/editable/index.d.ts +2 -0
  568. package/dist/types/plugins/expandable-grid/ExpandableColumn.d.ts +28 -0
  569. package/dist/types/plugins/expandable-grid/ExpandablePlugin.d.ts +1 -0
  570. package/dist/types/plugins/expandable-grid/ExpandedRow.d.ts +11 -0
  571. package/dist/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +9 -0
  572. package/dist/types/plugins/expandable-grid/index.d.ts +2 -0
  573. package/dist/types/plugins/expandable-grid/tests/ExpandablePlugin.test.d.ts +1 -0
  574. package/dist/types/plugins/expandable-grid/useExpandGridState.d.ts +16 -0
  575. package/dist/types/plugins/export-data/ExportDataPlugin.d.ts +4 -0
  576. package/dist/types/plugins/export-data/index.d.ts +1 -0
  577. package/dist/types/plugins/filterable/FilterablePlugin.d.ts +1 -0
  578. package/dist/types/plugins/filterable/addFilterToColumn.d.ts +1 -0
  579. package/dist/types/plugins/filterable/components/FilterableHeader.d.ts +28 -0
  580. package/dist/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +30 -0
  581. package/dist/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +27 -0
  582. package/dist/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts +31 -0
  583. package/dist/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +35 -0
  584. package/dist/types/plugins/filterable/components/filterable-menus/defaultDateFormat.d.ts +1 -0
  585. package/dist/types/plugins/filterable/components/filterable-menus/getFilterMenuByType.d.ts +2 -0
  586. package/dist/types/plugins/filterable/filterableFormatter.d.ts +11 -0
  587. package/dist/types/plugins/filterable/filtering-helper/filterRowsByQuery.d.ts +3 -0
  588. package/dist/types/plugins/filterable/filtering-helper/strategiesOperators.d.ts +2 -0
  589. package/dist/types/plugins/filterable/helper.d.ts +22 -0
  590. package/dist/types/plugins/filterable/index.d.ts +1 -0
  591. package/dist/types/plugins/filterable/useFilterableState.d.ts +18 -0
  592. package/dist/types/plugins/grouping-by/GroupingByPlugin.d.ts +1 -0
  593. package/dist/types/plugins/grouping-grid/GroupingPlugin.d.ts +1 -0
  594. package/dist/types/plugins/grouping-grid/walkStrategy.d.ts +9 -0
  595. package/dist/types/plugins/index.d.ts +16 -0
  596. package/dist/types/plugins/infinite-scrolling/InfiniteScrollPlugin.d.ts +1 -0
  597. package/dist/types/plugins/infinite-scrolling/index.d.ts +1 -0
  598. package/dist/types/plugins/pagination/PaginationPlugin.d.ts +1 -0
  599. package/dist/types/plugins/pagination/components/Pagination.d.ts +10 -0
  600. package/dist/types/plugins/pagination/components/Paginator.d.ts +9 -0
  601. package/dist/types/plugins/pagination/components/PerPageDropdown.d.ts +9 -0
  602. package/dist/types/plugins/pagination/helper.d.ts +18 -0
  603. package/dist/types/plugins/pagination/index.d.ts +1 -0
  604. package/dist/types/plugins/pagination/usePaginationState.d.ts +9 -0
  605. package/dist/types/plugins/resizable/ResizablePlugin.d.ts +1 -0
  606. package/dist/types/plugins/resizable/decorateResizable.d.ts +3 -0
  607. package/dist/types/plugins/resizable/index.d.ts +1 -0
  608. package/dist/types/plugins/resizable/useResizeHandle.d.ts +13 -0
  609. package/dist/types/plugins/resizable/utils.d.ts +3 -0
  610. package/dist/types/plugins/row-dnd/DndRowsPlugin.d.ts +1 -0
  611. package/dist/types/plugins/row-dnd/index.d.ts +1 -0
  612. package/dist/types/plugins/selectable/SelectablePlugin.d.ts +1 -0
  613. package/dist/types/plugins/selectable/addSelectableColumn.d.ts +30 -0
  614. package/dist/types/plugins/selectable/helper.d.ts +6 -0
  615. package/dist/types/plugins/selectable/index.d.ts +1 -0
  616. package/dist/types/plugins/selectable/selectableFormatter.d.ts +9 -0
  617. package/dist/types/plugins/selectable/useSelectableState.d.ts +12 -0
  618. package/dist/types/plugins/sortable/SortablePlugin.d.ts +1 -0
  619. package/dist/types/plugins/sortable/checkIfSortable.d.ts +2 -0
  620. package/dist/types/plugins/sortable/index.d.ts +1 -0
  621. package/dist/types/plugins/sortable/sortHeaderFormatter.d.ts +6 -0
  622. package/dist/types/plugins/sortable/sortTree.d.ts +3 -0
  623. package/dist/types/plugins/sortable/sorter.d.ts +12 -0
  624. package/dist/types/plugins/sortable/useSortableState.d.ts +8 -0
  625. package/dist/types/plugins/toolbar/RowRenderer.d.ts +10 -0
  626. package/dist/types/plugins/toolbar/ToolbarPlugin.d.ts +1 -0
  627. package/dist/types/plugins/toolbar/ToolbarTrigger.d.ts +7 -0
  628. package/dist/types/plugins/toolbar/index.d.ts +1 -0
  629. package/dist/types/plugins/virtualization/AutoHeightList.d.ts +3 -0
  630. package/dist/types/plugins/virtualization/VirtualizationPlugin.d.ts +1 -0
  631. package/dist/types/plugins/virtualization/VirtualizedBody.d.ts +32 -0
  632. package/dist/types/plugins/virtualization/VirtualizedBodyRow.d.ts +8 -0
  633. package/dist/types/plugins/virtualization/helper.d.ts +1 -0
  634. package/dist/types/plugins/virtualization/index.d.ts +1 -0
  635. package/dist/types/renders/CellWithAddons.d.ts +51 -0
  636. package/dist/types/renders/index.d.ts +2 -0
  637. package/dist/types/renders/styled.d.ts +4 -0
  638. package/dist/types/rowSizes.d.ts +11 -0
  639. package/dist/types/tests/DataGrid-Columns.test.d.ts +1 -0
  640. package/dist/types/tests/DataGrid-Editable.test.d.ts +1 -0
  641. package/dist/types/tests/DataGrid-Export.test.d.ts +1 -0
  642. package/dist/types/tests/DataGrid-Filter-helper.test.d.ts +1 -0
  643. package/dist/types/tests/DataGrid-Filterable-Dates.test.d.ts +1 -0
  644. package/dist/types/tests/DataGrid-Filterable-State.test.d.ts +1 -0
  645. package/dist/types/tests/DataGrid-RowDnd.test.d.ts +1 -0
  646. package/dist/types/tests/DataGrid-Selectable.test.d.ts +1 -0
  647. package/dist/types/tests/DataGrid-Sortable.test.d.ts +1 -0
  648. package/dist/types/tests/DataGrid-Toolbar.test.d.ts +1 -0
  649. package/dist/types/tests/DataGrid-Virtualization.test.d.ts +1 -0
  650. package/dist/types/tests/DataGrids-ColumnSizing.test.d.ts +1 -0
  651. package/dist/types/tests/DataGrids-ConditionalPagination.test.d.ts +1 -0
  652. package/dist/types/tests/DataGrids-Rows.test.d.ts +1 -0
  653. package/dist/types/tests/DataGrids.test.d.ts +1 -0
  654. package/dist/types/utilities/getPluginsFromProps.d.ts +2 -0
  655. package/dist/types/utilities/getScrollbarSize.d.ts +1 -0
  656. package/dist/types/utilities/normalizeData.d.ts +3 -0
  657. package/package.json +600 -0
@@ -0,0 +1,245 @@
1
+ import * as React from "react";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { useEffect, useState, useCallback, useRef, useLayoutEffect } from "react";
4
+ import PropTypes from "prop-types";
5
+ import { mergeRefs, debounce, isNaN } from "@elliemae/ds-legacy-utilities";
6
+ import { NoResults } from "../../components/NoResults.js";
7
+ import { VirtualizedBodyRow } from "./VirtualizedBodyRow.js";
8
+ import { RowSizes } from "../../rowSizes.js";
9
+ import { isSafari } from "./helper.js";
10
+ const wrapperSafari = {};
11
+ const wrapperGeneric = { overflowY: "auto", overflowX: "visible" };
12
+ const VirtualizedBody = (props) => {
13
+ const {
14
+ autoScrollToId,
15
+ columns,
16
+ component: Component,
17
+ expandable,
18
+ innerRef,
19
+ innerBody,
20
+ isPlaceholderActive,
21
+ listProps,
22
+ noResultsPlaceholder,
23
+ overscanCount,
24
+ rows,
25
+ rowHeight: defaultRowHeight,
26
+ rowKey,
27
+ rowRenderer,
28
+ rowSize,
29
+ setHasScroll,
30
+ filters
31
+ // hack to reset the scrollTop to 0 if filters change
32
+ } = props;
33
+ const rowHeight = defaultRowHeight || RowSizes[rowSize];
34
+ const [scrollTop, setScrollTop] = useState(0);
35
+ const [visibleHeight, setVisibleHeight] = useState(0);
36
+ const [hasScrollBar, setHasScrollBar] = useState(false);
37
+ const rowStyleCache = useRef({});
38
+ const [renderedIndexes, setRenderedIndexes] = useState([0, 30]);
39
+ const getCalculatedHeightBetweenIndexes = (start, end) => {
40
+ const { itemSize = () => rowHeight } = listProps;
41
+ if (expandable) {
42
+ return rows.slice(start, end).map((_, idx) => idx).map((idx) => itemSize(idx)).reduce((acc, curr) => acc + curr, 0);
43
+ }
44
+ return (end - start) * rowHeight;
45
+ };
46
+ const generateRowPositionMap = () => rows.map((row, idx) => getCalculatedHeightBetweenIndexes(0, idx));
47
+ const rowPositionMap = useRef(generateRowPositionMap());
48
+ const [virtualizedBodyRef, setVirtualizedBodyRef] = useState(null);
49
+ const handlerRef = useRef();
50
+ const autoScrollTo = useCallback(
51
+ (scrollHeight) => {
52
+ const { itemSize = () => rowHeight } = listProps;
53
+ const idx = rows.findIndex((item) => item[rowKey] === autoScrollToId);
54
+ let val = rowPositionMap.current[idx] || 0;
55
+ const lastPositionIdx = rowPositionMap.current.length - 1;
56
+ let lastPosition = 0;
57
+ if (lastPositionIdx > -1) {
58
+ lastPosition = rowPositionMap.current[lastPositionIdx] - scrollHeight + itemSize(lastPositionIdx);
59
+ }
60
+ if (lastPosition < val) {
61
+ val = lastPosition;
62
+ }
63
+ if (virtualizedBodyRef) {
64
+ if (idx > -1) {
65
+ setScrollTop(val);
66
+ virtualizedBodyRef.scrollTop = val;
67
+ }
68
+ }
69
+ },
70
+ [rows, virtualizedBodyRef]
71
+ );
72
+ useEffect(() => {
73
+ autoScrollTo(visibleHeight);
74
+ }, [autoScrollToId, visibleHeight]);
75
+ const handler = useCallback(
76
+ debounce(({ target }) => {
77
+ setScrollTop(target.scrollTop || 0);
78
+ }, 100),
79
+ [setScrollTop]
80
+ );
81
+ useEffect(() => {
82
+ setScrollTop(0);
83
+ }, [filters]);
84
+ useEffect(() => {
85
+ handlerRef.current = handler;
86
+ }, [handler]);
87
+ useLayoutEffect(() => {
88
+ let top = Math.ceil(scrollTop / rowHeight);
89
+ let bot = Math.ceil((scrollTop + visibleHeight) / rowHeight);
90
+ if (expandable) {
91
+ rowPositionMap.current = generateRowPositionMap();
92
+ top = rowPositionMap.current.findIndex((item) => item > scrollTop);
93
+ bot = rowPositionMap.current.findIndex((item) => item > scrollTop + visibleHeight);
94
+ if (bot === -1)
95
+ bot = rowPositionMap.current.length;
96
+ }
97
+ let upperBound = top - 1 - overscanCount;
98
+ let lowerBound = bot - 1 + overscanCount;
99
+ if (upperBound < 0) {
100
+ upperBound = 0;
101
+ }
102
+ if (lowerBound - upperBound < overscanCount) {
103
+ lowerBound = upperBound + overscanCount;
104
+ }
105
+ if (lowerBound > rows.length) {
106
+ lowerBound = rows.length;
107
+ }
108
+ setHasScrollBar(visibleHeight < getHeight());
109
+ setHasScroll(visibleHeight < getHeight());
110
+ setRenderedIndexes([upperBound, lowerBound]);
111
+ }, [visibleHeight, scrollTop, rows]);
112
+ useLayoutEffect(() => {
113
+ if (virtualizedBodyRef) {
114
+ const parsedVisibleHeight = parseFloat(
115
+ window.getComputedStyle(virtualizedBodyRef, null).getPropertyValue("height")
116
+ );
117
+ if (!isNaN(parsedVisibleHeight)) {
118
+ setVisibleHeight(parsedVisibleHeight);
119
+ autoScrollTo(parsedVisibleHeight);
120
+ }
121
+ }
122
+ }, [rows, virtualizedBodyRef]);
123
+ useEffect(() => {
124
+ if (virtualizedBodyRef) {
125
+ const eventListener = (event) => handlerRef.current(event);
126
+ virtualizedBodyRef.addEventListener("scroll", eventListener);
127
+ return () => {
128
+ virtualizedBodyRef.removeEventListener("scroll", eventListener);
129
+ };
130
+ }
131
+ return () => null;
132
+ }, [virtualizedBodyRef]);
133
+ const getHeight = () => {
134
+ let returnHeight = 0;
135
+ if (expandable) {
136
+ returnHeight = getCalculatedHeightBetweenIndexes(0, rows.length) + 8;
137
+ } else {
138
+ returnHeight = rows.length * rowHeight + 8;
139
+ }
140
+ if (virtualizedBodyRef && virtualizedBodyRef.scrollHeight > virtualizedBodyRef.clientHeight) {
141
+ return returnHeight + 10;
142
+ }
143
+ return returnHeight;
144
+ };
145
+ const getRowStyle = (row, index, specificRowHeight) => {
146
+ const { itemSize } = listProps;
147
+ if (!expandable && rowStyleCache.current[index]) {
148
+ return rowStyleCache.current[index];
149
+ }
150
+ rowStyleCache.current[index] = {
151
+ height: itemSize ? itemSize(index) : specificRowHeight,
152
+ left: 0,
153
+ right: 0,
154
+ top: getCalculatedHeightBetweenIndexes(0, index),
155
+ position: "absolute"
156
+ };
157
+ return rowStyleCache.current[index];
158
+ };
159
+ const generateRenderedRows = () => rows.slice(renderedIndexes[0], renderedIndexes[1] + 1).map((_, index) => /* @__PURE__ */ jsx(
160
+ VirtualizedBodyRow,
161
+ {
162
+ data: {
163
+ rows,
164
+ columns,
165
+ rowKey,
166
+ renderer: { rowRenderer }
167
+ },
168
+ index: renderedIndexes[0] + index,
169
+ style: getRowStyle(rows[renderedIndexes[0] + index], renderedIndexes[0] + index, rowHeight)
170
+ },
171
+ rows[renderedIndexes[0] + index][rowKey]
172
+ ));
173
+ const wrapperStyle = {
174
+ height: "100%",
175
+ ...isSafari ? wrapperSafari : wrapperGeneric
176
+ };
177
+ const bodyStyle = {
178
+ height: getHeight(),
179
+ willChange: "transform",
180
+ backfaceVisibility: "hidden"
181
+ };
182
+ return /* @__PURE__ */ jsx(Component, { ...props, innerRef, children: !isPlaceholderActive ? /* @__PURE__ */ jsx(
183
+ "div",
184
+ {
185
+ className: "virtualized-body-wrapper",
186
+ style: wrapperStyle,
187
+ ref: (elem) => {
188
+ if (elem) {
189
+ if (isSafari) {
190
+ setVirtualizedBodyRef(elem.parentElement);
191
+ elem.parentElement.scrollTop = scrollTop;
192
+ mergeRefs(listProps.outerRef)(elem.parentElement);
193
+ } else {
194
+ setVirtualizedBodyRef(elem);
195
+ mergeRefs(listProps.outerRef)(elem);
196
+ }
197
+ }
198
+ },
199
+ children: /* @__PURE__ */ jsx(
200
+ "div",
201
+ {
202
+ "data-testid": "virtualized-body",
203
+ className: `virtualized-body${hasScrollBar ? " with-scrollbar" : ""}`,
204
+ style: bodyStyle,
205
+ ref: (r) => {
206
+ mergeRefs(innerBody)(r);
207
+ },
208
+ children: generateRenderedRows()
209
+ }
210
+ )
211
+ }
212
+ ) : /* @__PURE__ */ jsx(NoResults, { innerRef, rowRenderer, children: noResultsPlaceholder }) });
213
+ };
214
+ VirtualizedBody.defaultProps = {
215
+ rows: [],
216
+ overscanCount: 10
217
+ };
218
+ VirtualizedBody.propTypes = {
219
+ autoScrollToId: PropTypes.number,
220
+ columns: PropTypes.arrayOf(PropTypes.shape({})),
221
+ component: PropTypes.element,
222
+ expandable: PropTypes.bool,
223
+ filters: PropTypes.any,
224
+ innerRef: PropTypes.any,
225
+ innerBody: PropTypes.any,
226
+ isPlaceholderActive: PropTypes.bool,
227
+ listProps: PropTypes.shape({
228
+ itemSize: PropTypes.func,
229
+ outerRef: PropTypes.any
230
+ }),
231
+ noResultsPlaceholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
232
+ overscanCount: PropTypes.number,
233
+ rows: PropTypes.arrayOf(PropTypes.shape({})),
234
+ rowHeight: PropTypes.number,
235
+ rowKey: PropTypes.string,
236
+ rowRenderer: PropTypes.element,
237
+ rowSize: PropTypes.any,
238
+ setHasScroll: PropTypes.func
239
+ };
240
+ var VirtualizedBody_default = VirtualizedBody;
241
+ export {
242
+ VirtualizedBody,
243
+ VirtualizedBody_default as default
244
+ };
245
+ //# 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-legacy-utilities';\nimport { NoResults } from '../../components/NoResults.js';\nimport { VirtualizedBodyRow } from './VirtualizedBodyRow.js';\nimport { RowSizes } from '../../rowSizes.js';\nimport { isSafari } from './helper.js';\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.oneOfType([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": "AAAA,YAAY,WAAW;AC0LjB;AAxLN,SAAgB,WAAW,UAAU,aAAa,QAAQ,uBAAuB;AACjF,OAAO,eAAe;AACtB,SAAS,WAAW,UAAU,aAAa;AAC3C,SAAS,iBAAiB;AAC1B,SAAS,0BAA0B;AACnC,SAAS,gBAAgB;AACzB,SAAS,gBAAgB;AAEzB,MAAM,gBAAgB,CAAC;AACvB,MAAM,iBAAiB,EAAE,WAAW,QAAQ,WAAW,UAAU;AAEjE,MAAM,kBAAkB,CAAC,UAAU;AACjC,QAAM;AAAA,IACJ;AAAA,IACA;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AW,mBAAmB,eAAe,oBAAoB;AAAA,UACjE,OAAO;AAAA,UACP,KAAK,CAAC,MAAM;AACV,sBAAU,SAAS,EAAE,CAAC;AAAA,UACxB;AAAA,UAEC,+BAAqB;AAAA;AAAA,MACxB;AAAA;AAAA,EACF,IAEA,oBAAC,aAAU,UAAoB,aAC5B,gCACH,GAEJ;AAEJ;AAEA,gBAAgB,eAAe;AAAA,EAC7B,MAAM,CAAC;AAAA,EACP,eAAe;AACjB;AAEA,gBAAgB,YAAY;AAAA,EAC1B,gBAAgB,UAAU;AAAA,EAC1B,SAAS,UAAU,QAAQ,UAAU,MAAM,CAAC,CAAC,CAAC;AAAA,EAC9C,WAAW,UAAU;AAAA,EACrB,YAAY,UAAU;AAAA,EACtB,SAAS,UAAU;AAAA,EACnB,UAAU,UAAU;AAAA,EACpB,WAAW,UAAU;AAAA,EACrB,qBAAqB,UAAU;AAAA,EAC/B,WAAW,UAAU,MAAM;AAAA,IACzB,UAAU,UAAU;AAAA,IACpB,UAAU,UAAU;AAAA,EACtB,CAAC;AAAA,EACD,sBAAsB,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,OAAO,CAAC;AAAA,EAC/E,eAAe,UAAU;AAAA,EACzB,MAAM,UAAU,QAAQ,UAAU,MAAM,CAAC,CAAC,CAAC;AAAA,EAC3C,WAAW,UAAU;AAAA,EACrB,QAAQ,UAAU;AAAA,EAClB,aAAa,UAAU;AAAA,EACvB,SAAS,UAAU;AAAA,EACnB,cAAc,UAAU;AAC1B;AAGA,IAAO,0BAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,28 @@
1
+ import * as React from "react";
2
+ const VirtualizedBodyRow = ({ data, index, style, key, isScrolling }) => {
3
+ const {
4
+ rows,
5
+ renderer: { rowRenderer }
6
+ } = data;
7
+ const rowData = rows[index];
8
+ return rowRenderer(
9
+ rowData,
10
+ {
11
+ style,
12
+ index,
13
+ rowIndex: index,
14
+ key
15
+ },
16
+ {
17
+ // eslint-disable-next-line no-underscore-dangle
18
+ rowIndex: index,
19
+ isScrolling
20
+ }
21
+ );
22
+ };
23
+ var VirtualizedBodyRow_default = VirtualizedBodyRow;
24
+ export {
25
+ VirtualizedBodyRow,
26
+ VirtualizedBodyRow_default as default
27
+ };
28
+ //# 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,YAAY,WAAW;ACAhB,MAAM,qBAAqB,CAAC,EAAE,MAAM,OAAO,OAAO,KAAK,YAAY,MAAM;AAC9E,QAAM;AAAA,IACJ;AAAA,IACA,UAAU,EAAE,YAAY;AAAA,EAC1B,IAAI;AACJ,QAAM,UAAU,KAAK,KAAK;AAE1B,SAAO;AAAA,IACL;AAAA,IACA;AAAA,MACE;AAAA,MACA;AAAA,MACA,UAAU;AAAA,MACV;AAAA,IACF;AAAA,IACA;AAAA;AAAA,MAEE,UAAU;AAAA,MACV;AAAA,IACF;AAAA,EACF;AACF;AAEA,IAAO,6BAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,6 @@
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,YAAY,WAAW;ACAhB,MAAM,WACX,UAAU,UACV,UAAU,OAAO,QAAQ,OAAO,IAAI,MACpC,UAAU,aACV,UAAU,UAAU,QAAQ,OAAO,MAAM,MACzC,UAAU,UAAU,QAAQ,OAAO,MAAM;",
6
+ "names": []
7
+ }
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ import { VirtualizationPlugin } from "./VirtualizationPlugin.js";
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.js';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,4BAA4B;",
6
+ "names": []
7
+ }
@@ -0,0 +1,83 @@
1
+ import * as React from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { get } from "lodash";
4
+ import PropTypes from "prop-types";
5
+ import { Grid } from "@elliemae/ds-legacy-grid";
6
+ import { DSTruncatedTooltipText } from "@elliemae/ds-legacy-truncated-tooltip-text";
7
+ import { CellWrapper, ValueWrapper } from "./styled.js";
8
+ const CellWithAddons = ({
9
+ leftAddon,
10
+ keepLeftPadding,
11
+ rightAddon,
12
+ badgeAddon,
13
+ highLight,
14
+ isEdit,
15
+ editComponent,
16
+ value,
17
+ neutralText,
18
+ metaData
19
+ }) => {
20
+ const hasLeftAddon = !!leftAddon || keepLeftPadding;
21
+ const hasRightAddon = !!rightAddon && !isEdit;
22
+ 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__ */ jsx(
29
+ CellWrapper,
30
+ {
31
+ noPadding: hasLeftAddon || badgeAddon || highLight || hasRightAddon,
32
+ hasLeftAddon,
33
+ hasRightAddon,
34
+ badgeAddon,
35
+ highLight,
36
+ children: /* @__PURE__ */ jsxs(Grid, { height: "100%", cols, children: [
37
+ hasLeftAddon && /* @__PURE__ */ jsx(Grid, { alignItems: "center", pl: "xxs", pr: "xxs", width: keepLeftPadding ? "32px" : void 0, children: hasLeftAddon && leftAddon }),
38
+ /* @__PURE__ */ jsx(Grid, { alignItems: "center", children: /* @__PURE__ */ jsx(ValueWrapper, { grayText: shouldBeGray, children: isEdit ? editComponent : /* @__PURE__ */ jsx(DSTruncatedTooltipText, { value }) }) }),
39
+ hasRightAddon && /* @__PURE__ */ jsx(Grid, { alignItems: "center", pl: "xxs", children: rightAddon })
40
+ ] })
41
+ }
42
+ );
43
+ };
44
+ CellWithAddons.propTypes = {
45
+ /** Text to render inside the cell */
46
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
47
+ /** Left Icon */
48
+ leftAddon: PropTypes.element,
49
+ /** keep the left spacing even if no left addons is addded */
50
+ keepLeftPadding: PropTypes.bool,
51
+ /** Right Icon Button or Dropdown */
52
+ rightAddon: PropTypes.element,
53
+ /** TextBox/InputMask/ComboBox */
54
+ editComponent: PropTypes.element,
55
+ /** if is true it will show editComponent */
56
+ isEdit: PropTypes.bool,
57
+ /** Shows a blue mark in the top left corner */
58
+ badgeAddon: PropTypes.bool,
59
+ /** change background color to light blue */
60
+ highLight: PropTypes.bool,
61
+ /** change text color to light gray */
62
+ neutralText: PropTypes.bool,
63
+ /** data grid meta-information */
64
+ metaData: PropTypes.shape({
65
+ className: PropTypes.string,
66
+ column: PropTypes.object,
67
+ columnIndex: PropTypes.number,
68
+ index: PropTypes.number,
69
+ isScrolling: PropTypes.bool,
70
+ key: PropTypes.string,
71
+ parentRowData: PropTypes.any,
72
+ property: PropTypes.string,
73
+ registerFocus: PropTypes.func,
74
+ rowData: PropTypes.object,
75
+ rowIndex: PropTypes.number,
76
+ rowKey: PropTypes.string,
77
+ style: PropTypes.object
78
+ })
79
+ };
80
+ export {
81
+ CellWithAddons
82
+ };
83
+ //# 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-legacy-grid';\nimport { DSTruncatedTooltipText } from '@elliemae/ds-legacy-truncated-tooltip-text';\nimport { CellWrapper, ValueWrapper } from './styled.js';\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,YAAY,WAAW;ACkCjB,SAEI,KAFJ;AAjCN,SAAS,WAAW;AACpB,OAAO,eAAe;AACtB,SAAS,YAAY;AACrB,SAAS,8BAA8B;AACvC,SAAS,aAAa,oBAAoB;AAGnC,MAAM,iBAAiB,CAAC;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,Q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AU;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,EACnB,CAAC;AACH;",
6
+ "names": []
7
+ }
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import { CellWithAddons } from "./CellWithAddons.js";
3
+ import { CellContainer } from "./styled.js";
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.js';\nexport { CellContainer } from './styled.js';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,sBAAsB;AAC/B,SAAS,qBAAqB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,49 @@
1
+ import * as React from "react";
2
+ import { styled } from "@elliemae/ds-legacy-system";
3
+ import { Grid } from "@elliemae/ds-legacy-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
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/renders/styled.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { styled } from '@elliemae/ds-legacy-system';\nimport { Grid } from '@elliemae/ds-legacy-grid';\n\nconst m = '0.61538rem';\nconst m2 = '1.23076rem';\n\nexport const CellWrapper = styled.div`\n max-height: 36px;\n height: 100%;\n width: ${(props) => (props.noPadding ? `calc(100% + ${m2})` : '100%')};\n margin-left: ${(props) => (props.noPadding ? `-${m}` : '0')};\n margin-right: ${(props) => (props.noPadding ? `-${m}` : '0')};\n padding-left: ${(props) =>\n !props.hasLeftAddon && (props.badgeAddon || props.highLight || props.hasRightAddon) ? m : '0'};\n padding-right: ${(props) =>\n !props.hasRightAddon && (props.badgeAddon || props.highLight || props.hasLeftAddon) ? m : '0'};\n ${(props) => (props.highLight ? `background: ${props.theme.colors.brand['200']}` : '')};\n ${(props) =>\n props.badgeAddon\n ? `\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: ${props.theme.space.xxs} ${props.theme.space.xxs} ${props.theme.space.xxs} 0;\n border-color: ${props.theme.colors.brand['600']} transparent transparent ${props.theme.colors.brand['600']};\n }\n `\n : ''}\n`;\n\nexport const ValueWrapper = styled.div`\n display: flex;\n align-items: center;\n overflow: hidden;\n & > span {\n display: inline-flex;\n align-items: center;\n }\n ${(props) => (props.grayText ? `color: ${props.theme.colors.neutral['500']};` : '')}\n`;\n\nexport const CellContainer = styled(Grid)`\n padding-left: ${m};\n padding-right: ${m};\n position: relative;\n`;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,cAAc;AACvB,SAAS,YAAY;AAErB,MAAM,IAAI;AACV,MAAM,KAAK;AAEJ,MAAM,cAAc,OAAO;AAAA;AAAA;AAAA,WAGvB,CAAC,UAAW,MAAM,YAAY,eAAe,QAAQ;AAAA,iBAC/C,CAAC,UAAW,MAAM,YAAY,IAAI,MAAM;AAAA,kBACvC,CAAC,UAAW,MAAM,YAAY,IAAI,MAAM;AAAA,kBACxC,CAAC,UACf,CAAC,MAAM,iBAAiB,MAAM,cAAc,MAAM,aAAa,MAAM,iBAAiB,IAAI;AAAA,mBAC3E,CAAC,UAChB,CAAC,MAAM,kBAAkB,MAAM,cAAc,MAAM,aAAa,MAAM,gBAAgB,IAAI;AAAA,IAC1F,CAAC,UAAW,MAAM,YAAY,eAAe,MAAM,MAAM,OAAO,MAAM,KAAK,MAAM;AAAA,IACjF,CAAC,UACD,MAAM,aACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBASa,MAAM,MAAM,MAAM,OAAO,MAAM,MAAM,MAAM,QAAQ,MAAM,MAAM,MAAM;AAAA,oBACtE,MAAM,MAAM,OAAO,MAAM,KAAK,8BAA8B,MAAM,MAAM,OAAO,MAAM,KAAK;AAAA;AAAA,MAGtG;AAAA;AAGD,MAAM,eAAe,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQ/B,CAAC,UAAW,MAAM,WAAW,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK,OAAO;AAAA;AAG3E,MAAM,gBAAgB,OAAO,IAAI;AAAA,kBACtB;AAAA,mBACC;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,18 @@
1
+ import * as React from "react";
2
+ const RowSizes = {
3
+ compact: 28,
4
+ normal: 36,
5
+ extend: 56
6
+ };
7
+ const RowSizesOptions = {
8
+ compact: "compact",
9
+ normal: "normal",
10
+ extend: "extend"
11
+ };
12
+ const RowSizesOptionsArr = [RowSizesOptions.compact, RowSizesOptions.normal, RowSizesOptions.extend];
13
+ export {
14
+ RowSizes,
15
+ RowSizesOptions,
16
+ RowSizesOptionsArr
17
+ };
18
+ //# sourceMappingURL=rowSizes.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/rowSizes.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const RowSizes = {\n compact: 28,\n normal: 36,\n extend: 56,\n};\n\nexport const RowSizesOptions = {\n compact: 'compact',\n normal: 'normal',\n extend: 'extend',\n};\n\nexport const RowSizesOptionsArr = [RowSizesOptions.compact, RowSizesOptions.normal, RowSizesOptions.extend];\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,WAAW;AAAA,EACtB,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AACV;AAEO,MAAM,kBAAkB;AAAA,EAC7B,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AACV;AAEO,MAAM,qBAAqB,CAAC,gBAAgB,SAAS,gBAAgB,QAAQ,gBAAgB,MAAM;",
6
+ "names": []
7
+ }