@elliemae/ds-datagrids 1.61.0 → 2.0.0-alpha.12
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.
- package/cjs/DSDataGrid.js +142 -424
- package/cjs/DataGridImpl.js +107 -202
- package/cjs/PaginatedDataGrid.js +46 -155
- package/cjs/blockNames.js +3 -4
- package/cjs/columns/IconColumn.js +40 -47
- package/cjs/columns/NumberColumn.js +0 -3
- package/cjs/components/BodyCell.js +65 -82
- package/cjs/components/BodyList.js +37 -25
- package/cjs/components/ColumnVisibilityMenuOption.js +27 -32
- package/cjs/components/ColumnsOptionsMenuSection.js +30 -30
- package/cjs/components/EmptyState.js +22 -39
- package/cjs/components/HeaderCell.js +49 -50
- package/cjs/components/List.js +20 -10
- package/cjs/components/ListItem.js +32 -19
- package/cjs/components/NoResults.js +34 -23
- package/cjs/components/RowsLoader.js +8 -9
- package/cjs/components/Table.js +71 -67
- package/cjs/components/TableBody.js +40 -34
- package/cjs/components/TableHeader.js +20 -14
- package/cjs/components/footer/addOptionalFooterComponents.js +36 -34
- package/cjs/components/header/PrimaryControls.js +17 -16
- package/cjs/components/header/addOptionalHeaderComponents.js +36 -34
- package/cjs/components/index.js +10 -21
- package/cjs/components/renderers/defaultClassedRenderers.js +24 -17
- package/cjs/components/renderers/index.js +17 -12
- package/cjs/components/renderers/renderRowsLoader.js +6 -9
- package/cjs/components/tableContext.js +1 -2
- package/cjs/defaultPlugins.js +5 -38
- package/cjs/index.js +54 -181
- package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +116 -116
- package/cjs/plugins/body-header-scroll-sync/index.js +2 -10
- package/cjs/plugins/column-dnd/DndColumnsPlugin.js +59 -63
- package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js +12 -12
- package/cjs/plugins/column-dnd/index.js +2 -11
- package/cjs/plugins/column-sizing/ColumnSizingPlugin.js +46 -53
- package/cjs/plugins/column-sizing/columnMeasurerTransformer.js +53 -43
- package/cjs/plugins/column-sizing/ext-points/decorateColumn.js +4 -7
- package/cjs/plugins/column-sizing/ext-points/getTableProps.js +25 -23
- package/cjs/plugins/column-sizing/getColumnNameFromProperty.js +2 -1
- package/cjs/plugins/column-sizing/index.js +2 -17
- package/cjs/plugins/column-sizing/useColumnSizeService.js +69 -83
- package/cjs/plugins/column-sizing/useStylesheetHelpers.js +145 -145
- package/cjs/plugins/column-sizing/utils.js +16 -16
- package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js +4 -24
- package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js +46 -58
- package/cjs/plugins/custom-cell-renderer/getRendererComponent.js +41 -34
- package/cjs/plugins/custom-cell-renderer/index.js +2 -22
- package/cjs/plugins/editable/EditableComponents/ComboBox.js +51 -74
- package/cjs/plugins/editable/EditableComponents/TextBox.js +85 -100
- package/cjs/plugins/editable/EditableComponents/index.js +4 -14
- package/cjs/plugins/editable/EditablePlugin.js +66 -78
- package/cjs/plugins/editable/decorateEditable.js +64 -66
- package/cjs/plugins/editable/getEditorComponent.js +36 -36
- package/cjs/plugins/editable/index.js +6 -26
- package/cjs/plugins/expandable-grid/ExpandableColumn.js +100 -89
- package/cjs/plugins/expandable-grid/ExpandablePlugin.js +142 -162
- package/cjs/plugins/expandable-grid/ExpandedRow.js +110 -126
- package/cjs/plugins/expandable-grid/ExpandedRowExtra.js +38 -29
- package/cjs/plugins/expandable-grid/index.js +4 -57
- package/cjs/plugins/expandable-grid/useExpandGridState.js +38 -48
- package/cjs/plugins/export-data/ExportDataPlugin.js +88 -91
- package/cjs/plugins/export-data/index.js +5 -10
- package/cjs/plugins/filterable/FilterablePlugin.js +51 -78
- package/cjs/plugins/filterable/addFilterToColumn.js +11 -35
- package/cjs/plugins/filterable/components/FilterableHeader.js +81 -114
- package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +60 -103
- package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +39 -75
- package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +68 -113
- package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js +68 -118
- package/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js +1 -2
- package/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +9 -31
- package/cjs/plugins/filterable/filterableFormatter.js +36 -56
- package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js +32 -33
- package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js +13 -18
- package/cjs/plugins/filterable/helper.js +48 -53
- package/cjs/plugins/filterable/index.js +2 -42
- package/cjs/plugins/filterable/useFilterableState.js +44 -53
- package/cjs/plugins/grouping-by/GroupingByPlugin.js +21 -19
- package/cjs/plugins/grouping-grid/GroupingPlugin.js +83 -87
- package/cjs/plugins/grouping-grid/walkStrategy.js +19 -30
- package/cjs/plugins/index.js +41 -151
- package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js +53 -72
- package/cjs/plugins/infinite-scrolling/index.js +2 -10
- package/cjs/plugins/pagination/PaginationPlugin.js +70 -69
- package/cjs/plugins/pagination/components/Pagination.js +21 -27
- package/cjs/plugins/pagination/components/Paginator.js +33 -34
- package/cjs/plugins/pagination/components/PerPageDropdown.js +44 -31
- package/cjs/plugins/pagination/helper.js +15 -15
- package/cjs/plugins/pagination/index.js +2 -16
- package/cjs/plugins/pagination/usePaginationState.js +35 -44
- package/cjs/plugins/resizable/ResizablePlugin.js +45 -59
- package/cjs/plugins/resizable/decorateResizable.js +43 -36
- package/cjs/plugins/resizable/index.js +2 -10
- package/cjs/plugins/resizable/useResizeHandle.js +24 -22
- package/cjs/plugins/resizable/utils.js +12 -20
- package/cjs/plugins/row-dnd/DndRowsPlugin.js +51 -52
- package/cjs/plugins/row-dnd/index.js +2 -11
- package/cjs/plugins/selectable/SelectablePlugin.js +129 -120
- package/cjs/plugins/selectable/addSelectableColumn.js +47 -39
- package/cjs/plugins/selectable/helper.js +18 -28
- package/cjs/plugins/selectable/index.js +2 -17
- package/cjs/plugins/selectable/selectableFormatter.js +64 -53
- package/cjs/plugins/selectable/useSelectableState.js +66 -68
- package/cjs/plugins/sortable/SortablePlugin.js +50 -56
- package/cjs/plugins/sortable/checkIfSortable.js +4 -5
- package/cjs/plugins/sortable/index.js +2 -19
- package/cjs/plugins/sortable/sortHeaderFormatter.js +41 -36
- package/cjs/plugins/sortable/sortTree.js +16 -16
- package/cjs/plugins/sortable/sorter.js +82 -95
- package/cjs/plugins/sortable/useSortableState.js +40 -41
- package/cjs/plugins/toolbar/RowRenderer.js +43 -60
- package/cjs/plugins/toolbar/ToolbarPlugin.js +18 -29
- package/cjs/plugins/toolbar/ToolbarTrigger.js +39 -50
- package/cjs/plugins/toolbar/index.js +2 -19
- package/cjs/plugins/virtualization/AutoHeightList.js +31 -23
- package/cjs/plugins/virtualization/VirtualizationPlugin.js +80 -83
- package/cjs/plugins/virtualization/VirtualizedBody.js +136 -195
- package/cjs/plugins/virtualization/VirtualizedBodyRow.js +18 -13
- package/cjs/plugins/virtualization/helper.js +1 -2
- package/cjs/plugins/virtualization/index.js +2 -20
- package/cjs/renders/CellWithAddons.js +29 -75
- package/cjs/renders/index.js +4 -11
- package/cjs/renders/styled.js +7 -24
- package/cjs/rowSizes.js +3 -4
- package/cjs/utilities/getPluginsFromProps.js +33 -139
- package/cjs/utilities/getScrollbarSize.js +4 -5
- package/cjs/utilities/normalizeData.js +22 -22
- package/esm/DSDataGrid.js +140 -422
- package/esm/DataGridImpl.js +93 -186
- package/esm/PaginatedDataGrid.js +36 -145
- package/esm/blockNames.js +3 -4
- package/esm/columns/IconColumn.js +38 -45
- package/esm/columns/NumberColumn.js +0 -3
- package/esm/components/BodyCell.js +61 -75
- package/esm/components/BodyList.js +32 -21
- package/esm/components/ColumnVisibilityMenuOption.js +27 -28
- package/esm/components/ColumnsOptionsMenuSection.js +29 -28
- package/esm/components/EmptyState.js +21 -38
- package/esm/components/HeaderCell.js +47 -47
- package/esm/components/List.js +19 -9
- package/esm/components/ListItem.js +30 -16
- package/esm/components/NoResults.js +31 -19
- package/esm/components/RowsLoader.js +6 -7
- package/esm/components/Table.js +63 -58
- package/esm/components/TableBody.js +35 -28
- package/esm/components/TableHeader.js +19 -12
- package/esm/components/footer/addOptionalFooterComponents.js +34 -32
- package/esm/components/header/PrimaryControls.js +16 -15
- package/esm/components/header/addOptionalHeaderComponents.js +35 -32
- package/esm/components/index.js +0 -11
- package/esm/components/renderers/defaultClassedRenderers.js +24 -17
- package/esm/components/renderers/index.js +17 -8
- package/esm/components/renderers/renderRowsLoader.js +4 -7
- package/esm/components/tableContext.js +1 -2
- package/esm/defaultPlugins.js +1 -34
- package/esm/index.js +0 -127
- package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js +111 -111
- package/esm/plugins/body-header-scroll-sync/index.js +0 -8
- package/esm/plugins/column-dnd/DndColumnsPlugin.js +56 -59
- package/esm/plugins/column-dnd/decorateGridWithDndColumns.js +11 -11
- package/esm/plugins/column-dnd/index.js +0 -9
- package/esm/plugins/column-sizing/ColumnSizingPlugin.js +40 -47
- package/esm/plugins/column-sizing/columnMeasurerTransformer.js +52 -42
- package/esm/plugins/column-sizing/ext-points/decorateColumn.js +2 -5
- package/esm/plugins/column-sizing/ext-points/getTableProps.js +22 -19
- package/esm/plugins/column-sizing/getColumnNameFromProperty.js +2 -1
- package/esm/plugins/column-sizing/index.js +0 -15
- package/esm/plugins/column-sizing/useColumnSizeService.js +66 -79
- package/esm/plugins/column-sizing/useStylesheetHelpers.js +141 -136
- package/esm/plugins/column-sizing/utils.js +16 -16
- package/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js +3 -23
- package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js +46 -58
- package/esm/plugins/custom-cell-renderer/getRendererComponent.js +42 -34
- package/esm/plugins/custom-cell-renderer/index.js +0 -20
- package/esm/plugins/editable/EditableComponents/ComboBox.js +51 -67
- package/esm/plugins/editable/EditableComponents/TextBox.js +84 -93
- package/esm/plugins/editable/EditableComponents/index.js +0 -10
- package/esm/plugins/editable/EditablePlugin.js +64 -75
- package/esm/plugins/editable/decorateEditable.js +56 -56
- package/esm/plugins/editable/getEditorComponent.js +30 -29
- package/esm/plugins/editable/index.js +0 -20
- package/esm/plugins/expandable-grid/ExpandableColumn.js +99 -88
- package/esm/plugins/expandable-grid/ExpandablePlugin.js +137 -156
- package/esm/plugins/expandable-grid/ExpandedRow.js +101 -117
- package/esm/plugins/expandable-grid/ExpandedRowExtra.js +36 -27
- package/esm/plugins/expandable-grid/index.js +0 -53
- package/esm/plugins/expandable-grid/useExpandGridState.js +38 -44
- package/esm/plugins/export-data/ExportDataPlugin.js +87 -89
- package/esm/plugins/export-data/index.js +0 -5
- package/esm/plugins/filterable/FilterablePlugin.js +46 -73
- package/esm/plugins/filterable/addFilterToColumn.js +8 -32
- package/esm/plugins/filterable/components/FilterableHeader.js +79 -110
- package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js +59 -100
- package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js +37 -71
- package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js +67 -110
- package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js +66 -113
- package/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js +1 -2
- package/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js +1 -23
- package/esm/plugins/filterable/filterableFormatter.js +33 -53
- package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js +29 -30
- package/esm/plugins/filterable/filtering-helper/strategiesOperators.js +13 -18
- package/esm/plugins/filterable/helper.js +47 -51
- package/esm/plugins/filterable/index.js +0 -40
- package/esm/plugins/filterable/useFilterableState.js +41 -49
- package/esm/plugins/grouping-by/GroupingByPlugin.js +21 -19
- package/esm/plugins/grouping-grid/GroupingPlugin.js +80 -84
- package/esm/plugins/grouping-grid/walkStrategy.js +19 -26
- package/esm/plugins/index.js +0 -110
- package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js +53 -69
- package/esm/plugins/infinite-scrolling/index.js +0 -8
- package/esm/plugins/pagination/PaginationPlugin.js +60 -59
- package/esm/plugins/pagination/components/Pagination.js +18 -24
- package/esm/plugins/pagination/components/Paginator.js +30 -31
- package/esm/plugins/pagination/components/PerPageDropdown.js +41 -29
- package/esm/plugins/pagination/helper.js +14 -14
- package/esm/plugins/pagination/index.js +0 -14
- package/esm/plugins/pagination/usePaginationState.js +33 -41
- package/esm/plugins/resizable/ResizablePlugin.js +43 -57
- package/esm/plugins/resizable/decorateResizable.js +37 -31
- package/esm/plugins/resizable/index.js +0 -8
- package/esm/plugins/resizable/useResizeHandle.js +26 -24
- package/esm/plugins/resizable/utils.js +11 -19
- package/esm/plugins/row-dnd/DndRowsPlugin.js +50 -50
- package/esm/plugins/row-dnd/index.js +0 -9
- package/esm/plugins/selectable/SelectablePlugin.js +123 -111
- package/esm/plugins/selectable/addSelectableColumn.js +43 -35
- package/esm/plugins/selectable/helper.js +17 -27
- package/esm/plugins/selectable/index.js +0 -15
- package/esm/plugins/selectable/selectableFormatter.js +62 -52
- package/esm/plugins/selectable/useSelectableState.js +60 -61
- package/esm/plugins/sortable/SortablePlugin.js +42 -46
- package/esm/plugins/sortable/checkIfSortable.js +3 -4
- package/esm/plugins/sortable/index.js +0 -17
- package/esm/plugins/sortable/sortHeaderFormatter.js +40 -36
- package/esm/plugins/sortable/sortTree.js +13 -11
- package/esm/plugins/sortable/sorter.js +79 -91
- package/esm/plugins/sortable/useSortableState.js +34 -33
- package/esm/plugins/toolbar/RowRenderer.js +41 -55
- package/esm/plugins/toolbar/ToolbarPlugin.js +15 -25
- package/esm/plugins/toolbar/ToolbarTrigger.js +37 -47
- package/esm/plugins/toolbar/index.js +0 -17
- package/esm/plugins/virtualization/AutoHeightList.js +27 -18
- package/esm/plugins/virtualization/VirtualizationPlugin.js +78 -80
- package/esm/plugins/virtualization/VirtualizedBody.js +131 -187
- package/esm/plugins/virtualization/VirtualizedBodyRow.js +18 -13
- package/esm/plugins/virtualization/helper.js +1 -2
- package/esm/plugins/virtualization/index.js +0 -18
- package/esm/renders/CellWithAddons.js +27 -72
- package/esm/renders/index.js +0 -7
- package/esm/renders/styled.js +7 -24
- package/esm/rowSizes.js +3 -4
- package/esm/utilities/getPluginsFromProps.js +7 -113
- package/esm/utilities/getScrollbarSize.js +4 -5
- package/esm/utilities/normalizeData.js +21 -21
- package/package.json +555 -26
- package/types/DSDataGrid.d.ts +977 -0
- package/types/DataGridImpl.d.ts +12 -0
- package/types/PaginatedDataGrid.d.ts +16 -0
- package/types/blockNames.d.ts +4 -0
- package/types/columns/IconColumn.d.ts +35 -0
- package/types/columns/NumberColumn.d.ts +4 -0
- package/types/components/BodyCell.d.ts +33 -0
- package/types/components/BodyList.d.ts +12 -0
- package/types/components/ColumnVisibilityMenuOption.d.ts +15 -0
- package/types/components/ColumnsOptionsMenuSection.d.ts +8 -0
- package/types/components/EmptyState.d.ts +7 -0
- package/types/components/HeaderCell.d.ts +19 -0
- package/types/components/List.d.ts +3 -0
- package/types/components/ListItem.d.ts +3 -0
- package/types/components/NoResults.d.ts +8 -0
- package/types/components/RowsLoader.d.ts +5 -0
- package/types/components/Table.d.ts +13 -0
- package/types/components/TableBody.d.ts +9 -0
- package/types/components/TableHeader.d.ts +3 -0
- package/types/components/footer/addOptionalFooterComponents.d.ts +6 -0
- package/types/components/header/PrimaryControls.d.ts +5 -0
- package/types/components/header/addOptionalHeaderComponents.d.ts +11 -0
- package/types/components/index.d.ts +5 -0
- package/types/components/renderers/defaultClassedRenderers.d.ts +11 -0
- package/types/components/renderers/index.d.ts +15 -0
- package/types/components/renderers/renderRowsLoader.d.ts +2 -0
- package/types/components/tableContext.d.ts +2 -0
- package/types/components/tests/ColumnVisibilityMenu.test.d.ts +1 -0
- package/types/defaultPlugins.d.ts +1 -0
- package/types/index.d.ts +10 -0
- package/types/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.d.ts +1 -0
- package/types/plugins/body-header-scroll-sync/index.d.ts +1 -0
- package/types/plugins/column-dnd/DndColumnsPlugin.d.ts +1 -0
- package/types/plugins/column-dnd/decorateGridWithDndColumns.d.ts +2 -0
- package/types/plugins/column-dnd/index.d.ts +1 -0
- package/types/plugins/column-sizing/ColumnSizingPlugin.d.ts +1 -0
- package/types/plugins/column-sizing/columnMeasurerTransformer.d.ts +6 -0
- package/types/plugins/column-sizing/ext-points/decorateColumn.d.ts +1 -0
- package/types/plugins/column-sizing/ext-points/getTableProps.d.ts +10 -0
- package/types/plugins/column-sizing/getColumnNameFromProperty.d.ts +1 -0
- package/types/plugins/column-sizing/index.d.ts +1 -0
- package/types/plugins/column-sizing/useColumnSizeService.d.ts +17 -0
- package/types/plugins/column-sizing/useStylesheetHelpers.d.ts +22 -0
- package/types/plugins/column-sizing/utils.d.ts +5 -0
- package/types/plugins/custom-cell-renderer/CustomRendererPlugin.d.ts +1 -0
- package/types/plugins/custom-cell-renderer/addCustomRendererToCell.d.ts +3 -0
- package/types/plugins/custom-cell-renderer/getRendererComponent.d.ts +11 -0
- package/types/plugins/custom-cell-renderer/index.d.ts +1 -0
- package/types/plugins/editable/EditableComponents/ComboBox.d.ts +10 -0
- package/types/plugins/editable/EditableComponents/TextBox.d.ts +22 -0
- package/types/plugins/editable/EditableComponents/index.d.ts +2 -0
- package/types/plugins/editable/EditablePlugin.d.ts +1 -0
- package/types/plugins/editable/decorateEditable.d.ts +7 -0
- package/types/plugins/editable/getEditorComponent.d.ts +6 -0
- package/types/plugins/editable/index.d.ts +2 -0
- package/types/plugins/expandable-grid/ExpandableColumn.d.ts +28 -0
- package/types/plugins/expandable-grid/ExpandablePlugin.d.ts +1 -0
- package/types/plugins/expandable-grid/ExpandedRow.d.ts +11 -0
- package/types/plugins/expandable-grid/ExpandedRowExtra.d.ts +9 -0
- package/types/plugins/expandable-grid/index.d.ts +2 -0
- package/types/plugins/expandable-grid/tests/ExpandablePlugin.test.d.ts +1 -0
- package/types/plugins/expandable-grid/useExpandGridState.d.ts +14 -0
- package/types/plugins/export-data/ExportDataPlugin.d.ts +4 -0
- package/types/plugins/export-data/index.d.ts +1 -0
- package/types/plugins/filterable/FilterablePlugin.d.ts +1 -0
- package/types/plugins/filterable/addFilterToColumn.d.ts +1 -0
- package/types/plugins/filterable/components/FilterableHeader.d.ts +29 -0
- package/types/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.d.ts +30 -0
- package/types/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.d.ts +27 -0
- package/types/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.d.ts +30 -0
- package/types/plugins/filterable/components/filterable-menus/TextFilterMenu.d.ts +35 -0
- package/types/plugins/filterable/components/filterable-menus/defaultDateFormat.d.ts +1 -0
- package/types/plugins/filterable/components/filterable-menus/getFilterMenuByType.d.ts +1 -0
- package/types/plugins/filterable/filterableFormatter.d.ts +11 -0
- package/types/plugins/filterable/filtering-helper/filterRowsByQuery.d.ts +2 -0
- package/types/plugins/filterable/filtering-helper/strategiesOperators.d.ts +2 -0
- package/types/plugins/filterable/helper.d.ts +22 -0
- package/types/plugins/filterable/index.d.ts +1 -0
- package/types/plugins/filterable/useFilterableState.d.ts +18 -0
- package/types/plugins/grouping-by/GroupingByPlugin.d.ts +1 -0
- package/types/plugins/grouping-grid/GroupingPlugin.d.ts +1 -0
- package/types/plugins/grouping-grid/walkStrategy.d.ts +9 -0
- package/types/plugins/index.d.ts +16 -0
- package/types/plugins/infinite-scrolling/InfiniteScrollPlugin.d.ts +1 -0
- package/types/plugins/infinite-scrolling/index.d.ts +1 -0
- package/types/plugins/pagination/PaginationPlugin.d.ts +1 -0
- package/types/plugins/pagination/components/Pagination.d.ts +11 -0
- package/types/plugins/pagination/components/Paginator.d.ts +9 -0
- package/types/plugins/pagination/components/PerPageDropdown.d.ts +9 -0
- package/types/plugins/pagination/helper.d.ts +17 -0
- package/types/plugins/pagination/index.d.ts +1 -0
- package/types/plugins/pagination/usePaginationState.d.ts +9 -0
- package/types/plugins/resizable/ResizablePlugin.d.ts +1 -0
- package/types/plugins/resizable/decorateResizable.d.ts +4 -0
- package/types/plugins/resizable/index.d.ts +1 -0
- package/types/plugins/resizable/useResizeHandle.d.ts +13 -0
- package/types/plugins/resizable/utils.d.ts +3 -0
- package/types/plugins/row-dnd/DndRowsPlugin.d.ts +1 -0
- package/types/plugins/row-dnd/index.d.ts +1 -0
- package/types/plugins/selectable/SelectablePlugin.d.ts +1 -0
- package/types/plugins/selectable/addSelectableColumn.d.ts +30 -0
- package/types/plugins/selectable/helper.d.ts +5 -0
- package/types/plugins/selectable/index.d.ts +1 -0
- package/types/plugins/selectable/selectableFormatter.d.ts +9 -0
- package/types/plugins/selectable/useSelectableState.d.ts +9 -0
- package/types/plugins/sortable/SortablePlugin.d.ts +1 -0
- package/types/plugins/sortable/checkIfSortable.d.ts +2 -0
- package/types/plugins/sortable/index.d.ts +1 -0
- package/types/plugins/sortable/sortHeaderFormatter.d.ts +6 -0
- package/types/plugins/sortable/sortTree.d.ts +2 -0
- package/types/plugins/sortable/sorter.d.ts +12 -0
- package/types/plugins/sortable/useSortableState.d.ts +8 -0
- package/types/plugins/toolbar/RowRenderer.d.ts +11 -0
- package/types/plugins/toolbar/ToolbarPlugin.d.ts +1 -0
- package/types/plugins/toolbar/ToolbarTrigger.d.ts +8 -0
- package/types/plugins/toolbar/index.d.ts +1 -0
- package/types/plugins/virtualization/AutoHeightList.d.ts +3 -0
- package/types/plugins/virtualization/VirtualizationPlugin.d.ts +1 -0
- package/types/plugins/virtualization/VirtualizedBody.d.ts +32 -0
- package/types/plugins/virtualization/VirtualizedBodyRow.d.ts +8 -0
- package/types/plugins/virtualization/helper.d.ts +1 -0
- package/types/plugins/virtualization/index.d.ts +1 -0
- package/types/renders/CellWithAddons.d.ts +52 -0
- package/types/renders/index.d.ts +2 -0
- package/types/renders/styled.d.ts +3 -0
- package/types/rowSizes.d.ts +11 -0
- package/types/stories/datagrids-export.stories.d.ts +1 -0
- package/types/stories/datagrids-selectable-multi.stories.d.ts +1 -0
- package/types/tests/DataGrid-Columns.test.d.ts +1 -0
- package/types/tests/DataGrid-Editable.test.d.ts +1 -0
- package/types/tests/DataGrid-Export.test.d.ts +1 -0
- package/types/tests/DataGrid-Filter-helper.test.d.ts +1 -0
- package/types/tests/DataGrid-Filterable-Dates.test.d.ts +1 -0
- package/types/tests/DataGrid-Filterable-State.test.d.ts +1 -0
- package/types/tests/DataGrid-RowDnd.test.d.ts +1 -0
- package/types/tests/DataGrid-Selectable.test.d.ts +1 -0
- package/types/tests/DataGrid-Sortable.test.d.ts +1 -0
- package/types/tests/DataGrid-Toolbar.test.d.ts +1 -0
- package/types/tests/DataGrid-Virtualization.test.d.ts +1 -0
- package/types/tests/DataGrids-ColumnSizing.test.d.ts +1 -0
- package/types/tests/DataGrids-ConditionalPagination.test.d.ts +1 -0
- package/types/tests/DataGrids-Rows.test.d.ts +1 -0
- package/types/tests/DataGrids.test.d.ts +1 -0
- package/types/utilities/getPluginsFromProps.d.ts +1 -0
- package/types/utilities/getScrollbarSize.d.ts +1 -0
- package/types/utilities/normalizeData.d.ts +3 -0
- package/DSDataGrid/package.json +0 -10
- package/DataGridImpl/package.json +0 -10
- package/PaginatedDataGrid/package.json +0 -10
- package/blockNames/package.json +0 -10
- package/cjs/DSDataGrid.js.map +0 -1
- package/cjs/DataGridImpl.js.map +0 -1
- package/cjs/PaginatedDataGrid.js.map +0 -1
- package/cjs/blockNames.js.map +0 -1
- package/cjs/columns/IconColumn.js.map +0 -1
- package/cjs/columns/NumberColumn.js.map +0 -1
- package/cjs/components/BodyCell.js.map +0 -1
- package/cjs/components/BodyList.js.map +0 -1
- package/cjs/components/ColumnVisibilityMenuOption.js.map +0 -1
- package/cjs/components/ColumnsOptionsMenuSection.js.map +0 -1
- package/cjs/components/EmptyState.js.map +0 -1
- package/cjs/components/HeaderCell.js.map +0 -1
- package/cjs/components/List.js.map +0 -1
- package/cjs/components/ListItem.js.map +0 -1
- package/cjs/components/NoResults.js.map +0 -1
- package/cjs/components/RowsLoader.js.map +0 -1
- package/cjs/components/Table.js.map +0 -1
- package/cjs/components/TableBody.js.map +0 -1
- package/cjs/components/TableHeader.js.map +0 -1
- package/cjs/components/footer/addOptionalFooterComponents.js.map +0 -1
- package/cjs/components/header/PrimaryControls.js.map +0 -1
- package/cjs/components/header/addOptionalHeaderComponents.js.map +0 -1
- package/cjs/components/index.js.map +0 -1
- package/cjs/components/renderers/defaultClassedRenderers.js.map +0 -1
- package/cjs/components/renderers/index.js.map +0 -1
- package/cjs/components/renderers/renderRowsLoader.js.map +0 -1
- package/cjs/components/tableContext.js.map +0 -1
- package/cjs/defaultPlugins.js.map +0 -1
- package/cjs/index-0be12eb8.js +0 -28
- package/cjs/index-0be12eb8.js.map +0 -1
- package/cjs/index.js.map +0 -1
- package/cjs/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +0 -1
- package/cjs/plugins/body-header-scroll-sync/index.js.map +0 -1
- package/cjs/plugins/column-dnd/DndColumnsPlugin.js.map +0 -1
- package/cjs/plugins/column-dnd/decorateGridWithDndColumns.js.map +0 -1
- package/cjs/plugins/column-dnd/index.js.map +0 -1
- package/cjs/plugins/column-sizing/ColumnSizingPlugin.js.map +0 -1
- package/cjs/plugins/column-sizing/columnMeasurerTransformer.js.map +0 -1
- package/cjs/plugins/column-sizing/ext-points/decorateColumn.js.map +0 -1
- package/cjs/plugins/column-sizing/ext-points/getTableProps.js.map +0 -1
- package/cjs/plugins/column-sizing/getColumnNameFromProperty.js.map +0 -1
- package/cjs/plugins/column-sizing/index.js.map +0 -1
- package/cjs/plugins/column-sizing/useColumnSizeService.js.map +0 -1
- package/cjs/plugins/column-sizing/useStylesheetHelpers.js.map +0 -1
- package/cjs/plugins/column-sizing/utils.js.map +0 -1
- package/cjs/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +0 -1
- package/cjs/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +0 -1
- package/cjs/plugins/custom-cell-renderer/getRendererComponent.js.map +0 -1
- package/cjs/plugins/custom-cell-renderer/index.js.map +0 -1
- package/cjs/plugins/editable/EditableComponents/ComboBox.js.map +0 -1
- package/cjs/plugins/editable/EditableComponents/TextBox.js.map +0 -1
- package/cjs/plugins/editable/EditableComponents/index.js.map +0 -1
- package/cjs/plugins/editable/EditablePlugin.js.map +0 -1
- package/cjs/plugins/editable/decorateEditable.js.map +0 -1
- package/cjs/plugins/editable/getEditorComponent.js.map +0 -1
- package/cjs/plugins/editable/index.js.map +0 -1
- package/cjs/plugins/expandable-grid/ExpandableColumn.js.map +0 -1
- package/cjs/plugins/expandable-grid/ExpandablePlugin.js.map +0 -1
- package/cjs/plugins/expandable-grid/ExpandedRow.js.map +0 -1
- package/cjs/plugins/expandable-grid/ExpandedRowExtra.js.map +0 -1
- package/cjs/plugins/expandable-grid/index.js.map +0 -1
- package/cjs/plugins/expandable-grid/useExpandGridState.js.map +0 -1
- package/cjs/plugins/export-data/ExportDataPlugin.js.map +0 -1
- package/cjs/plugins/export-data/index.js.map +0 -1
- package/cjs/plugins/filterable/FilterablePlugin.js.map +0 -1
- package/cjs/plugins/filterable/addFilterToColumn.js.map +0 -1
- package/cjs/plugins/filterable/components/FilterableHeader.js.map +0 -1
- package/cjs/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +0 -1
- package/cjs/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +0 -1
- package/cjs/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +0 -1
- package/cjs/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +0 -1
- package/cjs/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +0 -1
- package/cjs/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +0 -1
- package/cjs/plugins/filterable/filterableFormatter.js.map +0 -1
- package/cjs/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +0 -1
- package/cjs/plugins/filterable/filtering-helper/strategiesOperators.js.map +0 -1
- package/cjs/plugins/filterable/helper.js.map +0 -1
- package/cjs/plugins/filterable/index.js.map +0 -1
- package/cjs/plugins/filterable/useFilterableState.js.map +0 -1
- package/cjs/plugins/grouping-by/GroupingByPlugin.js.map +0 -1
- package/cjs/plugins/grouping-grid/GroupingPlugin.js.map +0 -1
- package/cjs/plugins/grouping-grid/walkStrategy.js.map +0 -1
- package/cjs/plugins/index.js.map +0 -1
- package/cjs/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +0 -1
- package/cjs/plugins/infinite-scrolling/index.js.map +0 -1
- package/cjs/plugins/pagination/PaginationPlugin.js.map +0 -1
- package/cjs/plugins/pagination/components/Pagination.js.map +0 -1
- package/cjs/plugins/pagination/components/Paginator.js.map +0 -1
- package/cjs/plugins/pagination/components/PerPageDropdown.js.map +0 -1
- package/cjs/plugins/pagination/helper.js.map +0 -1
- package/cjs/plugins/pagination/index.js.map +0 -1
- package/cjs/plugins/pagination/usePaginationState.js.map +0 -1
- package/cjs/plugins/resizable/ResizablePlugin.js.map +0 -1
- package/cjs/plugins/resizable/decorateResizable.js.map +0 -1
- package/cjs/plugins/resizable/index.js.map +0 -1
- package/cjs/plugins/resizable/useResizeHandle.js.map +0 -1
- package/cjs/plugins/resizable/utils.js.map +0 -1
- package/cjs/plugins/row-dnd/DndRowsPlugin.js.map +0 -1
- package/cjs/plugins/row-dnd/index.js.map +0 -1
- package/cjs/plugins/selectable/SelectablePlugin.js.map +0 -1
- package/cjs/plugins/selectable/addSelectableColumn.js.map +0 -1
- package/cjs/plugins/selectable/helper.js.map +0 -1
- package/cjs/plugins/selectable/index.js.map +0 -1
- package/cjs/plugins/selectable/selectableFormatter.js.map +0 -1
- package/cjs/plugins/selectable/useSelectableState.js.map +0 -1
- package/cjs/plugins/sortable/SortablePlugin.js.map +0 -1
- package/cjs/plugins/sortable/checkIfSortable.js.map +0 -1
- package/cjs/plugins/sortable/index.js.map +0 -1
- package/cjs/plugins/sortable/sortHeaderFormatter.js.map +0 -1
- package/cjs/plugins/sortable/sortTree.js.map +0 -1
- package/cjs/plugins/sortable/sorter.js.map +0 -1
- package/cjs/plugins/sortable/useSortableState.js.map +0 -1
- package/cjs/plugins/toolbar/RowRenderer.js.map +0 -1
- package/cjs/plugins/toolbar/ToolbarPlugin.js.map +0 -1
- package/cjs/plugins/toolbar/ToolbarTrigger.js.map +0 -1
- package/cjs/plugins/toolbar/index.js.map +0 -1
- package/cjs/plugins/virtualization/AutoHeightList.js.map +0 -1
- package/cjs/plugins/virtualization/VirtualizationPlugin.js.map +0 -1
- package/cjs/plugins/virtualization/VirtualizedBody.js.map +0 -1
- package/cjs/plugins/virtualization/VirtualizedBodyRow.js.map +0 -1
- package/cjs/plugins/virtualization/helper.js.map +0 -1
- package/cjs/plugins/virtualization/index.js.map +0 -1
- package/cjs/renders/CellWithAddons.js.map +0 -1
- package/cjs/renders/index.js.map +0 -1
- package/cjs/renders/styled.js.map +0 -1
- package/cjs/rowSizes.js.map +0 -1
- package/cjs/utilities/getPluginsFromProps.js.map +0 -1
- package/cjs/utilities/getScrollbarSize.js.map +0 -1
- package/cjs/utilities/normalizeData.js.map +0 -1
- package/columns/IconColumn/package.json +0 -10
- package/columns/NumberColumn/package.json +0 -10
- package/components/BodyCell/package.json +0 -10
- package/components/BodyList/package.json +0 -10
- package/components/ColumnVisibilityMenuOption/package.json +0 -10
- package/components/ColumnsOptionsMenuSection/package.json +0 -10
- package/components/EmptyState/package.json +0 -10
- package/components/HeaderCell/package.json +0 -10
- package/components/List/package.json +0 -10
- package/components/ListItem/package.json +0 -10
- package/components/NoResults/package.json +0 -10
- package/components/RowsLoader/package.json +0 -10
- package/components/Table/package.json +0 -10
- package/components/TableBody/package.json +0 -10
- package/components/TableHeader/package.json +0 -10
- package/components/footer/addOptionalFooterComponents/package.json +0 -10
- package/components/header/PrimaryControls/package.json +0 -10
- package/components/header/addOptionalHeaderComponents/package.json +0 -10
- package/components/package.json +0 -10
- package/components/renderers/defaultClassedRenderers/package.json +0 -10
- package/components/renderers/package.json +0 -10
- package/components/renderers/renderRowsLoader/package.json +0 -10
- package/components/tableContext/package.json +0 -10
- package/defaultPlugins/package.json +0 -10
- package/esm/DSDataGrid.js.map +0 -1
- package/esm/DataGridImpl.js.map +0 -1
- package/esm/PaginatedDataGrid.js.map +0 -1
- package/esm/blockNames.js.map +0 -1
- package/esm/columns/IconColumn.js.map +0 -1
- package/esm/columns/NumberColumn.js.map +0 -1
- package/esm/components/BodyCell.js.map +0 -1
- package/esm/components/BodyList.js.map +0 -1
- package/esm/components/ColumnVisibilityMenuOption.js.map +0 -1
- package/esm/components/ColumnsOptionsMenuSection.js.map +0 -1
- package/esm/components/EmptyState.js.map +0 -1
- package/esm/components/HeaderCell.js.map +0 -1
- package/esm/components/List.js.map +0 -1
- package/esm/components/ListItem.js.map +0 -1
- package/esm/components/NoResults.js.map +0 -1
- package/esm/components/RowsLoader.js.map +0 -1
- package/esm/components/Table.js.map +0 -1
- package/esm/components/TableBody.js.map +0 -1
- package/esm/components/TableHeader.js.map +0 -1
- package/esm/components/footer/addOptionalFooterComponents.js.map +0 -1
- package/esm/components/header/PrimaryControls.js.map +0 -1
- package/esm/components/header/addOptionalHeaderComponents.js.map +0 -1
- package/esm/components/index.js.map +0 -1
- package/esm/components/renderers/defaultClassedRenderers.js.map +0 -1
- package/esm/components/renderers/index.js.map +0 -1
- package/esm/components/renderers/renderRowsLoader.js.map +0 -1
- package/esm/components/tableContext.js.map +0 -1
- package/esm/defaultPlugins.js.map +0 -1
- package/esm/index-afbbe9c8.js +0 -25
- package/esm/index-afbbe9c8.js.map +0 -1
- package/esm/index.js.map +0 -1
- package/esm/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin.js.map +0 -1
- package/esm/plugins/body-header-scroll-sync/index.js.map +0 -1
- package/esm/plugins/column-dnd/DndColumnsPlugin.js.map +0 -1
- package/esm/plugins/column-dnd/decorateGridWithDndColumns.js.map +0 -1
- package/esm/plugins/column-dnd/index.js.map +0 -1
- package/esm/plugins/column-sizing/ColumnSizingPlugin.js.map +0 -1
- package/esm/plugins/column-sizing/columnMeasurerTransformer.js.map +0 -1
- package/esm/plugins/column-sizing/ext-points/decorateColumn.js.map +0 -1
- package/esm/plugins/column-sizing/ext-points/getTableProps.js.map +0 -1
- package/esm/plugins/column-sizing/getColumnNameFromProperty.js.map +0 -1
- package/esm/plugins/column-sizing/index.js.map +0 -1
- package/esm/plugins/column-sizing/useColumnSizeService.js.map +0 -1
- package/esm/plugins/column-sizing/useStylesheetHelpers.js.map +0 -1
- package/esm/plugins/column-sizing/utils.js.map +0 -1
- package/esm/plugins/custom-cell-renderer/CustomRendererPlugin.js.map +0 -1
- package/esm/plugins/custom-cell-renderer/addCustomRendererToCell.js.map +0 -1
- package/esm/plugins/custom-cell-renderer/getRendererComponent.js.map +0 -1
- package/esm/plugins/custom-cell-renderer/index.js.map +0 -1
- package/esm/plugins/editable/EditableComponents/ComboBox.js.map +0 -1
- package/esm/plugins/editable/EditableComponents/TextBox.js.map +0 -1
- package/esm/plugins/editable/EditableComponents/index.js.map +0 -1
- package/esm/plugins/editable/EditablePlugin.js.map +0 -1
- package/esm/plugins/editable/decorateEditable.js.map +0 -1
- package/esm/plugins/editable/getEditorComponent.js.map +0 -1
- package/esm/plugins/editable/index.js.map +0 -1
- package/esm/plugins/expandable-grid/ExpandableColumn.js.map +0 -1
- package/esm/plugins/expandable-grid/ExpandablePlugin.js.map +0 -1
- package/esm/plugins/expandable-grid/ExpandedRow.js.map +0 -1
- package/esm/plugins/expandable-grid/ExpandedRowExtra.js.map +0 -1
- package/esm/plugins/expandable-grid/index.js.map +0 -1
- package/esm/plugins/expandable-grid/useExpandGridState.js.map +0 -1
- package/esm/plugins/export-data/ExportDataPlugin.js.map +0 -1
- package/esm/plugins/export-data/index.js.map +0 -1
- package/esm/plugins/filterable/FilterablePlugin.js.map +0 -1
- package/esm/plugins/filterable/addFilterToColumn.js.map +0 -1
- package/esm/plugins/filterable/components/FilterableHeader.js.map +0 -1
- package/esm/plugins/filterable/components/filterable-menus/DateRangeFilterMenu.js.map +0 -1
- package/esm/plugins/filterable/components/filterable-menus/SingleDateFilterMenu.js.map +0 -1
- package/esm/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu.js.map +0 -1
- package/esm/plugins/filterable/components/filterable-menus/TextFilterMenu.js.map +0 -1
- package/esm/plugins/filterable/components/filterable-menus/defaultDateFormat.js.map +0 -1
- package/esm/plugins/filterable/components/filterable-menus/getFilterMenuByType.js.map +0 -1
- package/esm/plugins/filterable/filterableFormatter.js.map +0 -1
- package/esm/plugins/filterable/filtering-helper/filterRowsByQuery.js.map +0 -1
- package/esm/plugins/filterable/filtering-helper/strategiesOperators.js.map +0 -1
- package/esm/plugins/filterable/helper.js.map +0 -1
- package/esm/plugins/filterable/index.js.map +0 -1
- package/esm/plugins/filterable/useFilterableState.js.map +0 -1
- package/esm/plugins/grouping-by/GroupingByPlugin.js.map +0 -1
- package/esm/plugins/grouping-grid/GroupingPlugin.js.map +0 -1
- package/esm/plugins/grouping-grid/walkStrategy.js.map +0 -1
- package/esm/plugins/index.js.map +0 -1
- package/esm/plugins/infinite-scrolling/InfiniteScrollPlugin.js.map +0 -1
- package/esm/plugins/infinite-scrolling/index.js.map +0 -1
- package/esm/plugins/pagination/PaginationPlugin.js.map +0 -1
- package/esm/plugins/pagination/components/Pagination.js.map +0 -1
- package/esm/plugins/pagination/components/Paginator.js.map +0 -1
- package/esm/plugins/pagination/components/PerPageDropdown.js.map +0 -1
- package/esm/plugins/pagination/helper.js.map +0 -1
- package/esm/plugins/pagination/index.js.map +0 -1
- package/esm/plugins/pagination/usePaginationState.js.map +0 -1
- package/esm/plugins/resizable/ResizablePlugin.js.map +0 -1
- package/esm/plugins/resizable/decorateResizable.js.map +0 -1
- package/esm/plugins/resizable/index.js.map +0 -1
- package/esm/plugins/resizable/useResizeHandle.js.map +0 -1
- package/esm/plugins/resizable/utils.js.map +0 -1
- package/esm/plugins/row-dnd/DndRowsPlugin.js.map +0 -1
- package/esm/plugins/row-dnd/index.js.map +0 -1
- package/esm/plugins/selectable/SelectablePlugin.js.map +0 -1
- package/esm/plugins/selectable/addSelectableColumn.js.map +0 -1
- package/esm/plugins/selectable/helper.js.map +0 -1
- package/esm/plugins/selectable/index.js.map +0 -1
- package/esm/plugins/selectable/selectableFormatter.js.map +0 -1
- package/esm/plugins/selectable/useSelectableState.js.map +0 -1
- package/esm/plugins/sortable/SortablePlugin.js.map +0 -1
- package/esm/plugins/sortable/checkIfSortable.js.map +0 -1
- package/esm/plugins/sortable/index.js.map +0 -1
- package/esm/plugins/sortable/sortHeaderFormatter.js.map +0 -1
- package/esm/plugins/sortable/sortTree.js.map +0 -1
- package/esm/plugins/sortable/sorter.js.map +0 -1
- package/esm/plugins/sortable/useSortableState.js.map +0 -1
- package/esm/plugins/toolbar/RowRenderer.js.map +0 -1
- package/esm/plugins/toolbar/ToolbarPlugin.js.map +0 -1
- package/esm/plugins/toolbar/ToolbarTrigger.js.map +0 -1
- package/esm/plugins/toolbar/index.js.map +0 -1
- package/esm/plugins/virtualization/AutoHeightList.js.map +0 -1
- package/esm/plugins/virtualization/VirtualizationPlugin.js.map +0 -1
- package/esm/plugins/virtualization/VirtualizedBody.js.map +0 -1
- package/esm/plugins/virtualization/VirtualizedBodyRow.js.map +0 -1
- package/esm/plugins/virtualization/helper.js.map +0 -1
- package/esm/plugins/virtualization/index.js.map +0 -1
- package/esm/renders/CellWithAddons.js.map +0 -1
- package/esm/renders/index.js.map +0 -1
- package/esm/renders/styled.js.map +0 -1
- package/esm/rowSizes.js.map +0 -1
- package/esm/utilities/getPluginsFromProps.js.map +0 -1
- package/esm/utilities/getScrollbarSize.js.map +0 -1
- package/esm/utilities/normalizeData.js.map +0 -1
- package/plugins/body-header-scroll-sync/BodyHeaderScrollSyncPlugin/package.json +0 -10
- package/plugins/body-header-scroll-sync/package.json +0 -10
- package/plugins/column-dnd/DndColumnsPlugin/package.json +0 -10
- package/plugins/column-dnd/decorateGridWithDndColumns/package.json +0 -10
- package/plugins/column-dnd/package.json +0 -10
- package/plugins/column-sizing/ColumnSizingPlugin/package.json +0 -10
- package/plugins/column-sizing/columnMeasurerTransformer/package.json +0 -10
- package/plugins/column-sizing/ext-points/decorateColumn/package.json +0 -10
- package/plugins/column-sizing/ext-points/getTableProps/package.json +0 -10
- package/plugins/column-sizing/getColumnNameFromProperty/package.json +0 -10
- package/plugins/column-sizing/package.json +0 -10
- package/plugins/column-sizing/useColumnSizeService/package.json +0 -10
- package/plugins/column-sizing/useStylesheetHelpers/package.json +0 -10
- package/plugins/column-sizing/utils/package.json +0 -10
- package/plugins/custom-cell-renderer/CustomRendererPlugin/package.json +0 -10
- package/plugins/custom-cell-renderer/addCustomRendererToCell/package.json +0 -10
- package/plugins/custom-cell-renderer/getRendererComponent/package.json +0 -10
- package/plugins/custom-cell-renderer/package.json +0 -10
- package/plugins/editable/EditableComponents/ComboBox/package.json +0 -10
- package/plugins/editable/EditableComponents/TextBox/package.json +0 -10
- package/plugins/editable/EditableComponents/package.json +0 -10
- package/plugins/editable/EditablePlugin/package.json +0 -10
- package/plugins/editable/decorateEditable/package.json +0 -10
- package/plugins/editable/getEditorComponent/package.json +0 -10
- package/plugins/editable/package.json +0 -10
- package/plugins/expandable-grid/ExpandableColumn/package.json +0 -10
- package/plugins/expandable-grid/ExpandablePlugin/package.json +0 -10
- package/plugins/expandable-grid/ExpandedRow/package.json +0 -10
- package/plugins/expandable-grid/ExpandedRowExtra/package.json +0 -10
- package/plugins/expandable-grid/package.json +0 -10
- package/plugins/expandable-grid/useExpandGridState/package.json +0 -10
- package/plugins/export-data/ExportDataPlugin/package.json +0 -10
- package/plugins/export-data/package.json +0 -10
- package/plugins/filterable/FilterablePlugin/package.json +0 -10
- package/plugins/filterable/addFilterToColumn/package.json +0 -10
- package/plugins/filterable/components/FilterableHeader/package.json +0 -10
- package/plugins/filterable/components/filterable-menus/DateRangeFilterMenu/package.json +0 -10
- package/plugins/filterable/components/filterable-menus/SingleDateFilterMenu/package.json +0 -10
- package/plugins/filterable/components/filterable-menus/SingleRangeSwitcherMenu/package.json +0 -10
- package/plugins/filterable/components/filterable-menus/TextFilterMenu/package.json +0 -10
- package/plugins/filterable/components/filterable-menus/defaultDateFormat/package.json +0 -10
- package/plugins/filterable/components/filterable-menus/getFilterMenuByType/package.json +0 -10
- package/plugins/filterable/filterableFormatter/package.json +0 -10
- package/plugins/filterable/filtering-helper/filterRowsByQuery/package.json +0 -10
- package/plugins/filterable/filtering-helper/strategiesOperators/package.json +0 -10
- package/plugins/filterable/helper/package.json +0 -10
- package/plugins/filterable/package.json +0 -10
- package/plugins/filterable/useFilterableState/package.json +0 -10
- package/plugins/grouping-by/GroupingByPlugin/package.json +0 -10
- package/plugins/grouping-grid/GroupingPlugin/package.json +0 -10
- package/plugins/grouping-grid/walkStrategy/package.json +0 -10
- package/plugins/infinite-scrolling/InfiniteScrollPlugin/package.json +0 -10
- package/plugins/infinite-scrolling/package.json +0 -10
- package/plugins/package.json +0 -10
- package/plugins/pagination/PaginationPlugin/package.json +0 -10
- package/plugins/pagination/components/Pagination/package.json +0 -10
- package/plugins/pagination/components/Paginator/package.json +0 -10
- package/plugins/pagination/components/PerPageDropdown/package.json +0 -10
- package/plugins/pagination/helper/package.json +0 -10
- package/plugins/pagination/package.json +0 -10
- package/plugins/pagination/usePaginationState/package.json +0 -10
- package/plugins/resizable/ResizablePlugin/package.json +0 -10
- package/plugins/resizable/decorateResizable/package.json +0 -10
- package/plugins/resizable/package.json +0 -10
- package/plugins/resizable/useResizeHandle/package.json +0 -10
- package/plugins/resizable/utils/package.json +0 -10
- package/plugins/row-dnd/DndRowsPlugin/package.json +0 -10
- package/plugins/row-dnd/package.json +0 -10
- package/plugins/selectable/SelectablePlugin/package.json +0 -10
- package/plugins/selectable/addSelectableColumn/package.json +0 -10
- package/plugins/selectable/helper/package.json +0 -10
- package/plugins/selectable/package.json +0 -10
- package/plugins/selectable/selectableFormatter/package.json +0 -10
- package/plugins/selectable/useSelectableState/package.json +0 -10
- package/plugins/sortable/SortablePlugin/package.json +0 -10
- package/plugins/sortable/checkIfSortable/package.json +0 -10
- package/plugins/sortable/package.json +0 -10
- package/plugins/sortable/sortHeaderFormatter/package.json +0 -10
- package/plugins/sortable/sortTree/package.json +0 -10
- package/plugins/sortable/sorter/package.json +0 -10
- package/plugins/sortable/useSortableState/package.json +0 -10
- package/plugins/toolbar/RowRenderer/package.json +0 -10
- package/plugins/toolbar/ToolbarPlugin/package.json +0 -10
- package/plugins/toolbar/ToolbarTrigger/package.json +0 -10
- package/plugins/toolbar/package.json +0 -10
- package/plugins/virtualization/AutoHeightList/package.json +0 -10
- package/plugins/virtualization/VirtualizationPlugin/package.json +0 -10
- package/plugins/virtualization/VirtualizedBody/package.json +0 -10
- package/plugins/virtualization/VirtualizedBodyRow/package.json +0 -10
- package/plugins/virtualization/helper/package.json +0 -10
- package/plugins/virtualization/package.json +0 -10
- package/renders/CellWithAddons/package.json +0 -10
- package/renders/package.json +0 -10
- package/renders/styled/package.json +0 -10
- package/rowSizes/package.json +0 -10
- package/utilities/getPluginsFromProps/package.json +0 -10
- package/utilities/getScrollbarSize/package.json +0 -10
- package/utilities/normalizeData/package.json +0 -10
|
@@ -2,110 +2,107 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
6
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
7
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
8
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
9
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
10
|
+
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
11
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
7
12
|
var React = require('react');
|
|
8
13
|
var lodash = require('lodash');
|
|
9
14
|
var FocusGridManager = require('@elliemae/ds-shared/FocusGroup/FocusGrid');
|
|
10
15
|
var dsUtilities = require('@elliemae/ds-utilities');
|
|
11
16
|
var createInstancePlugin = require('@elliemae/ds-shared/createDataInstance/createInstancePlugin');
|
|
12
|
-
var
|
|
13
|
-
require('
|
|
14
|
-
require('prop-types');
|
|
15
|
-
require('../../components/NoResults.js');
|
|
16
|
-
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
17
|
-
require('styled-components');
|
|
18
|
-
require('@elliemae/ds-system');
|
|
19
|
-
require('./VirtualizedBodyRow.js');
|
|
20
|
-
require('../../rowSizes.js');
|
|
21
|
-
require('./helper.js');
|
|
17
|
+
var VirtualizedBody = require('./VirtualizedBody.js');
|
|
18
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
22
19
|
|
|
23
20
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
24
21
|
|
|
25
|
-
var
|
|
22
|
+
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
26
23
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
27
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
28
24
|
var FocusGridManager__default = /*#__PURE__*/_interopDefaultLegacy(FocusGridManager);
|
|
29
25
|
var createInstancePlugin__default = /*#__PURE__*/_interopDefaultLegacy(createInstancePlugin);
|
|
30
26
|
|
|
31
27
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
32
28
|
|
|
33
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default[
|
|
34
|
-
|
|
35
|
-
decorateRenderers
|
|
36
|
-
|
|
29
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
30
|
+
const VirtualizationPlugin = createInstancePlugin__default["default"]('virtualization', {
|
|
31
|
+
decorateRenderers(renderers, grid) {
|
|
32
|
+
const BodyWrapper = renderers.body.wrapper; // eslint-disable-next-line react/display-name
|
|
37
33
|
|
|
38
|
-
renderers.body.wrapper = React.useMemo(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
renderers.body.wrapper = React.useMemo(() => props => {
|
|
35
|
+
const {
|
|
36
|
+
listProps = {},
|
|
37
|
+
rows
|
|
38
|
+
} = props;
|
|
39
|
+
const {
|
|
40
|
+
hotKeys,
|
|
41
|
+
props: {
|
|
42
|
+
autoHeight,
|
|
43
|
+
autoScrollToId,
|
|
44
|
+
expandable,
|
|
45
|
+
overscanCount,
|
|
46
|
+
rowSize
|
|
47
|
+
},
|
|
48
|
+
refs: {
|
|
49
|
+
innerBody
|
|
50
|
+
},
|
|
51
|
+
setHasScroll,
|
|
52
|
+
state: {
|
|
53
|
+
filters
|
|
54
|
+
}
|
|
55
|
+
} = grid.getInstance();
|
|
56
|
+
const listRef = React.useRef();
|
|
43
57
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
autoHeight = _grid$getInstance$pro.autoHeight,
|
|
48
|
-
autoScrollToId = _grid$getInstance$pro.autoScrollToId,
|
|
49
|
-
expandable = _grid$getInstance$pro.expandable,
|
|
50
|
-
overscanCount = _grid$getInstance$pro.overscanCount,
|
|
51
|
-
rowSize = _grid$getInstance$pro.rowSize,
|
|
52
|
-
innerBody = _grid$getInstance.refs.innerBody,
|
|
53
|
-
setHasScroll = _grid$getInstance.setHasScroll,
|
|
54
|
-
filters = _grid$getInstance.state.filters;
|
|
58
|
+
const nextListProps = _objectSpread(_objectSpread({}, listProps), {}, {
|
|
59
|
+
ref: dsUtilities.mergeRefs(listRef, listProps.ref)
|
|
60
|
+
});
|
|
55
61
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
expandable: expandable,
|
|
97
|
-
innerBody: innerBody,
|
|
98
|
-
listProps: nextListProps,
|
|
99
|
-
overscanCount: overscanCount,
|
|
100
|
-
rowSize: rowSize,
|
|
101
|
-
setHasScroll: setHasScroll,
|
|
102
|
-
filters: filters
|
|
103
|
-
})));
|
|
104
|
-
};
|
|
62
|
+
return /*#__PURE__*/_jsx__default["default"](FocusGridManager__default["default"], {
|
|
63
|
+
hotKeys: hotKeys,
|
|
64
|
+
keyBindings: _ref => {
|
|
65
|
+
let {
|
|
66
|
+
defaultBindings
|
|
67
|
+
} = _ref;
|
|
68
|
+
return _objectSpread(_objectSpread({}, defaultBindings), {}, {
|
|
69
|
+
// todo: this is kind of hacky, since it's virtualized and there's
|
|
70
|
+
// the possibility that the firsts or lasts rows aren't rendered
|
|
71
|
+
Home: dsUtilities.runAll(e => {
|
|
72
|
+
if (e.ctrlKey) {
|
|
73
|
+
listRef.current.scrollToItem(0);
|
|
74
|
+
setTimeout(() => defaultBindings.Home(e), 10);
|
|
75
|
+
} else {
|
|
76
|
+
defaultBindings.Home(e);
|
|
77
|
+
}
|
|
78
|
+
}),
|
|
79
|
+
End: dsUtilities.runAll(e => {
|
|
80
|
+
if (e.ctrlKey) {
|
|
81
|
+
listRef.current.scrollToItem(rows.length - 1);
|
|
82
|
+
setTimeout(() => defaultBindings.End(e), 10);
|
|
83
|
+
} else {
|
|
84
|
+
defaultBindings.End(e);
|
|
85
|
+
}
|
|
86
|
+
})
|
|
87
|
+
});
|
|
88
|
+
},
|
|
89
|
+
shouldRefocus: false
|
|
90
|
+
}, void 0, /*#__PURE__*/jsxRuntime.jsx(VirtualizedBody, _objectSpread(_objectSpread({}, props), {}, {
|
|
91
|
+
autoScrollToId: autoScrollToId,
|
|
92
|
+
autoHeight: autoHeight,
|
|
93
|
+
component: BodyWrapper,
|
|
94
|
+
expandable: expandable,
|
|
95
|
+
innerBody: innerBody,
|
|
96
|
+
listProps: nextListProps,
|
|
97
|
+
overscanCount: overscanCount,
|
|
98
|
+
rowSize: rowSize,
|
|
99
|
+
setHasScroll: setHasScroll,
|
|
100
|
+
filters: filters
|
|
101
|
+
})));
|
|
105
102
|
}, [lodash.get(grid.getInstance(), 'rows.length')]);
|
|
106
103
|
return renderers;
|
|
107
104
|
}
|
|
105
|
+
|
|
108
106
|
});
|
|
109
107
|
|
|
110
108
|
exports.VirtualizationPlugin = VirtualizationPlugin;
|
|
111
|
-
//# sourceMappingURL=VirtualizationPlugin.js.map
|
|
@@ -1,122 +1,92 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _extends = require('@babel/runtime/helpers/extends');
|
|
4
3
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
5
|
-
var
|
|
4
|
+
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
5
|
+
require('core-js/modules/web.dom-collections.iterator.js');
|
|
6
|
+
require('core-js/modules/esnext.async-iterator.reduce.js');
|
|
7
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
8
|
+
require('core-js/modules/esnext.iterator.reduce.js');
|
|
9
|
+
require('core-js/modules/esnext.async-iterator.map.js');
|
|
10
|
+
require('core-js/modules/esnext.iterator.map.js');
|
|
11
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
12
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
13
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
14
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
6
15
|
var React = require('react');
|
|
7
|
-
var PropTypes = require('prop-types');
|
|
8
16
|
var dsUtilities = require('@elliemae/ds-utilities');
|
|
9
|
-
var
|
|
10
|
-
var
|
|
17
|
+
var NoResults = require('../../components/NoResults.js');
|
|
18
|
+
var VirtualizedBodyRow = require('./VirtualizedBodyRow.js');
|
|
11
19
|
var rowSizes = require('../../rowSizes.js');
|
|
12
|
-
var
|
|
13
|
-
require('
|
|
14
|
-
require('styled-components');
|
|
15
|
-
require('@elliemae/ds-system');
|
|
20
|
+
var helper = require('./helper.js');
|
|
21
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
16
22
|
|
|
17
23
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
18
24
|
|
|
19
|
-
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
20
25
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
21
|
-
var
|
|
22
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
23
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
26
|
+
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
24
27
|
|
|
25
28
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
26
29
|
|
|
27
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default[
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
31
|
+
const wrapperSafari = {};
|
|
32
|
+
const wrapperGeneric = {
|
|
30
33
|
overflowY: 'auto',
|
|
31
34
|
overflowX: 'visible'
|
|
32
35
|
};
|
|
33
36
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
hasScrollBar = _useState6[0],
|
|
67
|
-
setHasScrollBar = _useState6[1];
|
|
68
|
-
|
|
69
|
-
var rowStyleCache = React.useRef({});
|
|
70
|
-
|
|
71
|
-
var _useState7 = React.useState([0, 30]),
|
|
72
|
-
_useState8 = _slicedToArray__default['default'](_useState7, 2),
|
|
73
|
-
renderedIndexes = _useState8[0],
|
|
74
|
-
setRenderedIndexes = _useState8[1];
|
|
75
|
-
|
|
76
|
-
var getCalculatedHeightBetweenIndexes = function getCalculatedHeightBetweenIndexes(start, end) {
|
|
77
|
-
var _listProps$itemSize = listProps.itemSize,
|
|
78
|
-
itemSize = _listProps$itemSize === void 0 ? function () {
|
|
79
|
-
return rowHeight;
|
|
80
|
-
} : _listProps$itemSize;
|
|
37
|
+
const VirtualizedBody = props => {
|
|
38
|
+
const {
|
|
39
|
+
autoScrollToId,
|
|
40
|
+
columns,
|
|
41
|
+
component: Component,
|
|
42
|
+
expandable,
|
|
43
|
+
innerRef,
|
|
44
|
+
innerBody,
|
|
45
|
+
isPlaceholderActive,
|
|
46
|
+
listProps,
|
|
47
|
+
noResultsPlaceholder,
|
|
48
|
+
overscanCount,
|
|
49
|
+
rows,
|
|
50
|
+
rowHeight: defaultRowHeight,
|
|
51
|
+
rowKey,
|
|
52
|
+
rowRenderer,
|
|
53
|
+
rowSize,
|
|
54
|
+
setHasScroll,
|
|
55
|
+
filters // hack to reset the scrollTop to 0 if filters change
|
|
56
|
+
|
|
57
|
+
} = props;
|
|
58
|
+
const rowHeight = defaultRowHeight || rowSizes.RowSizes[rowSize];
|
|
59
|
+
const [scrollTop, setScrollTop] = React.useState(0);
|
|
60
|
+
const [visibleHeight, setVisibleHeight] = React.useState(0);
|
|
61
|
+
const [hasScrollBar, setHasScrollBar] = React.useState(false);
|
|
62
|
+
const rowStyleCache = React.useRef({});
|
|
63
|
+
const [renderedIndexes, setRenderedIndexes] = React.useState([0, 30]);
|
|
64
|
+
|
|
65
|
+
const getCalculatedHeightBetweenIndexes = (start, end) => {
|
|
66
|
+
const {
|
|
67
|
+
itemSize = () => rowHeight
|
|
68
|
+
} = listProps;
|
|
81
69
|
|
|
82
70
|
if (expandable) {
|
|
83
|
-
return rows.slice(start, end).map(
|
|
84
|
-
return idx;
|
|
85
|
-
}).map(function (idx) {
|
|
86
|
-
return itemSize(idx);
|
|
87
|
-
}).reduce(function (acc, curr) {
|
|
88
|
-
return acc + curr;
|
|
89
|
-
}, 0);
|
|
71
|
+
return rows.slice(start, end).map((_, idx) => idx).map(idx => itemSize(idx)).reduce((acc, curr) => acc + curr, 0);
|
|
90
72
|
}
|
|
91
73
|
|
|
92
74
|
return (end - start) * rowHeight;
|
|
93
75
|
};
|
|
94
76
|
|
|
95
|
-
|
|
96
|
-
return rows.map(function (row, idx) {
|
|
97
|
-
return getCalculatedHeightBetweenIndexes(0, idx);
|
|
98
|
-
});
|
|
99
|
-
};
|
|
77
|
+
const generateRowPositionMap = () => rows.map((row, idx) => getCalculatedHeightBetweenIndexes(0, idx));
|
|
100
78
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
return rowHeight;
|
|
113
|
-
} : _listProps$itemSize2;
|
|
114
|
-
var idx = rows.findIndex(function (item) {
|
|
115
|
-
return item[rowKey] === autoScrollToId;
|
|
116
|
-
});
|
|
117
|
-
var val = rowPositionMap.current[idx] || 0;
|
|
118
|
-
var lastPositionIdx = rowPositionMap.current.length - 1;
|
|
119
|
-
var lastPosition = 0;
|
|
79
|
+
const rowPositionMap = React.useRef(generateRowPositionMap());
|
|
80
|
+
const [virtualizedBodyRef, setVirtualizedBodyRef] = React.useState(null);
|
|
81
|
+
const handlerRef = React.useRef();
|
|
82
|
+
const autoScrollTo = React.useCallback(scrollHeight => {
|
|
83
|
+
const {
|
|
84
|
+
itemSize = () => rowHeight
|
|
85
|
+
} = listProps;
|
|
86
|
+
const idx = rows.findIndex(item => item[rowKey] === autoScrollToId);
|
|
87
|
+
let val = rowPositionMap.current[idx] || 0;
|
|
88
|
+
const lastPositionIdx = rowPositionMap.current.length - 1;
|
|
89
|
+
let lastPosition = 0;
|
|
120
90
|
|
|
121
91
|
if (lastPositionIdx > -1) {
|
|
122
92
|
lastPosition = rowPositionMap.current[lastPositionIdx] - scrollHeight + itemSize(lastPositionIdx);
|
|
@@ -133,38 +103,36 @@ var VirtualizedBody = function VirtualizedBody(props) {
|
|
|
133
103
|
}
|
|
134
104
|
}
|
|
135
105
|
}, [rows, virtualizedBodyRef]);
|
|
136
|
-
React.useEffect(
|
|
106
|
+
React.useEffect(() => {
|
|
137
107
|
autoScrollTo(visibleHeight);
|
|
138
108
|
}, [autoScrollToId, visibleHeight]);
|
|
139
|
-
|
|
140
|
-
|
|
109
|
+
const handler = React.useCallback(dsUtilities.debounce(_ref => {
|
|
110
|
+
let {
|
|
111
|
+
target
|
|
112
|
+
} = _ref;
|
|
141
113
|
// Update coordinates
|
|
142
114
|
setScrollTop(target.scrollTop || 0);
|
|
143
115
|
}, 100), [setScrollTop]);
|
|
144
|
-
React.useEffect(
|
|
116
|
+
React.useEffect(() => {
|
|
145
117
|
setScrollTop(0);
|
|
146
118
|
}, [filters]);
|
|
147
|
-
React.useEffect(
|
|
119
|
+
React.useEffect(() => {
|
|
148
120
|
handlerRef.current = handler;
|
|
149
121
|
}, [handler]);
|
|
150
|
-
React.useLayoutEffect(
|
|
151
|
-
|
|
152
|
-
|
|
122
|
+
React.useLayoutEffect(() => {
|
|
123
|
+
let top = Math.ceil(scrollTop / rowHeight);
|
|
124
|
+
let bot = Math.ceil((scrollTop + visibleHeight) / rowHeight);
|
|
153
125
|
|
|
154
126
|
if (expandable) {
|
|
155
127
|
// updateMapperFirst
|
|
156
128
|
rowPositionMap.current = generateRowPositionMap();
|
|
157
|
-
top = rowPositionMap.current.findIndex(
|
|
158
|
-
|
|
159
|
-
});
|
|
160
|
-
bot = rowPositionMap.current.findIndex(function (item) {
|
|
161
|
-
return item > scrollTop + visibleHeight;
|
|
162
|
-
});
|
|
129
|
+
top = rowPositionMap.current.findIndex(item => item > scrollTop);
|
|
130
|
+
bot = rowPositionMap.current.findIndex(item => item > scrollTop + visibleHeight);
|
|
163
131
|
if (bot === -1) bot = rowPositionMap.current.length;
|
|
164
132
|
}
|
|
165
133
|
|
|
166
|
-
|
|
167
|
-
|
|
134
|
+
let upperBound = top - 1 - overscanCount;
|
|
135
|
+
let lowerBound = bot - 1 + overscanCount;
|
|
168
136
|
|
|
169
137
|
if (upperBound < 0) {
|
|
170
138
|
upperBound = 0;
|
|
@@ -182,9 +150,9 @@ var VirtualizedBody = function VirtualizedBody(props) {
|
|
|
182
150
|
setHasScroll(visibleHeight < getHeight());
|
|
183
151
|
setRenderedIndexes([upperBound, lowerBound]);
|
|
184
152
|
}, [visibleHeight, scrollTop, rows]);
|
|
185
|
-
React.useLayoutEffect(
|
|
153
|
+
React.useLayoutEffect(() => {
|
|
186
154
|
if (virtualizedBodyRef) {
|
|
187
|
-
|
|
155
|
+
const parsedVisibleHeight = parseFloat(window.getComputedStyle(virtualizedBodyRef, null).getPropertyValue('height')); // eslint-disable-next-line no-restricted-globals
|
|
188
156
|
|
|
189
157
|
if (!dsUtilities.isNaN(parsedVisibleHeight)) {
|
|
190
158
|
setVisibleHeight(parsedVisibleHeight);
|
|
@@ -192,25 +160,21 @@ var VirtualizedBody = function VirtualizedBody(props) {
|
|
|
192
160
|
}
|
|
193
161
|
}
|
|
194
162
|
}, [rows, virtualizedBodyRef]);
|
|
195
|
-
React.useEffect(
|
|
163
|
+
React.useEffect(() => {
|
|
196
164
|
if (virtualizedBodyRef) {
|
|
197
|
-
|
|
198
|
-
return handlerRef.current(event);
|
|
199
|
-
};
|
|
165
|
+
const eventListener = event => handlerRef.current(event);
|
|
200
166
|
|
|
201
167
|
virtualizedBodyRef.addEventListener('scroll', eventListener);
|
|
202
|
-
return
|
|
168
|
+
return () => {
|
|
203
169
|
virtualizedBodyRef.removeEventListener('scroll', eventListener);
|
|
204
170
|
};
|
|
205
171
|
}
|
|
206
172
|
|
|
207
|
-
return
|
|
208
|
-
return null;
|
|
209
|
-
};
|
|
173
|
+
return () => null;
|
|
210
174
|
}, [virtualizedBodyRef]);
|
|
211
175
|
|
|
212
|
-
|
|
213
|
-
|
|
176
|
+
const getHeight = () => {
|
|
177
|
+
let returnHeight = 0;
|
|
214
178
|
|
|
215
179
|
if (expandable) {
|
|
216
180
|
returnHeight = getCalculatedHeightBetweenIndexes(0, rows.length) + 8;
|
|
@@ -228,8 +192,10 @@ var VirtualizedBody = function VirtualizedBody(props) {
|
|
|
228
192
|
return returnHeight;
|
|
229
193
|
};
|
|
230
194
|
|
|
231
|
-
|
|
232
|
-
|
|
195
|
+
const getRowStyle = (row, index, specificRowHeight) => {
|
|
196
|
+
const {
|
|
197
|
+
itemSize
|
|
198
|
+
} = listProps;
|
|
233
199
|
|
|
234
200
|
if (!expandable && rowStyleCache.current[index]) {
|
|
235
201
|
return rowStyleCache.current[index];
|
|
@@ -245,90 +211,65 @@ var VirtualizedBody = function VirtualizedBody(props) {
|
|
|
245
211
|
return rowStyleCache.current[index];
|
|
246
212
|
};
|
|
247
213
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
key: rows[renderedIndexes[0] + index][rowKey],
|
|
261
|
-
style: getRowStyle(rows[renderedIndexes[0] + index], renderedIndexes[0] + index, rowHeight)
|
|
262
|
-
});
|
|
263
|
-
});
|
|
264
|
-
};
|
|
214
|
+
const generateRenderedRows = () => rows.slice(renderedIndexes[0], renderedIndexes[1] + 1).map((_, index) => /*#__PURE__*/_jsx__default["default"](VirtualizedBodyRow, {
|
|
215
|
+
data: {
|
|
216
|
+
rows,
|
|
217
|
+
columns,
|
|
218
|
+
rowKey,
|
|
219
|
+
renderer: {
|
|
220
|
+
rowRenderer
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
index: renderedIndexes[0] + index,
|
|
224
|
+
style: getRowStyle(rows[renderedIndexes[0] + index], renderedIndexes[0] + index, rowHeight)
|
|
225
|
+
}, rows[renderedIndexes[0] + index][rowKey]));
|
|
265
226
|
|
|
266
|
-
|
|
227
|
+
const wrapperStyle = _objectSpread({
|
|
267
228
|
height: '100%'
|
|
268
|
-
},
|
|
229
|
+
}, helper.isSafari ? wrapperSafari : wrapperGeneric);
|
|
269
230
|
|
|
270
|
-
|
|
231
|
+
const bodyStyle = {
|
|
271
232
|
height: getHeight(),
|
|
272
233
|
willChange: 'transform',
|
|
273
234
|
backfaceVisibility: 'hidden'
|
|
274
235
|
};
|
|
275
|
-
return /*#__PURE__*/
|
|
276
|
-
innerRef: innerRef
|
|
277
|
-
}), !isPlaceholderActive ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
278
|
-
className: "virtualized-body-wrapper",
|
|
279
|
-
style: wrapperStyle,
|
|
280
|
-
ref: function ref(elem) {
|
|
281
|
-
if (elem) {
|
|
282
|
-
if (plugins_virtualization_helper.isSafari) {
|
|
283
|
-
setVirtualizedBodyRef(elem.parentElement); // eslint-disable-next-line no-param-reassign
|
|
284
|
-
|
|
285
|
-
elem.parentElement.scrollTop = scrollTop;
|
|
286
|
-
dsUtilities.mergeRefs(listProps.outerRef)(elem.parentElement);
|
|
287
|
-
} else {
|
|
288
|
-
setVirtualizedBodyRef(elem);
|
|
289
|
-
dsUtilities.mergeRefs(listProps.outerRef)(elem);
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
294
|
-
"data-testid": "virtualized-body",
|
|
295
|
-
className: "virtualized-body".concat(hasScrollBar ? ' with-scrollbar' : ''),
|
|
296
|
-
style: bodyStyle,
|
|
297
|
-
ref: function ref(r) {
|
|
298
|
-
dsUtilities.mergeRefs(innerBody)(r);
|
|
299
|
-
}
|
|
300
|
-
}, generateRenderedRows())) : /*#__PURE__*/React__default['default'].createElement(components_NoResults, {
|
|
236
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread(_objectSpread({}, props), {}, {
|
|
301
237
|
innerRef: innerRef,
|
|
302
|
-
|
|
303
|
-
|
|
238
|
+
children: !isPlaceholderActive ? /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
239
|
+
className: "virtualized-body-wrapper",
|
|
240
|
+
style: wrapperStyle,
|
|
241
|
+
ref: elem => {
|
|
242
|
+
if (elem) {
|
|
243
|
+
if (helper.isSafari) {
|
|
244
|
+
setVirtualizedBodyRef(elem.parentElement); // eslint-disable-next-line no-param-reassign
|
|
245
|
+
|
|
246
|
+
elem.parentElement.scrollTop = scrollTop;
|
|
247
|
+
dsUtilities.mergeRefs(listProps.outerRef)(elem.parentElement);
|
|
248
|
+
} else {
|
|
249
|
+
setVirtualizedBodyRef(elem);
|
|
250
|
+
dsUtilities.mergeRefs(listProps.outerRef)(elem);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
255
|
+
"data-testid": "virtualized-body",
|
|
256
|
+
className: "virtualized-body".concat(hasScrollBar ? ' with-scrollbar' : ''),
|
|
257
|
+
style: bodyStyle,
|
|
258
|
+
ref: r => {
|
|
259
|
+
dsUtilities.mergeRefs(innerBody)(r);
|
|
260
|
+
},
|
|
261
|
+
children: generateRenderedRows()
|
|
262
|
+
})
|
|
263
|
+
}) : /*#__PURE__*/_jsx__default["default"](NoResults, {
|
|
264
|
+
innerRef: innerRef,
|
|
265
|
+
rowRenderer: rowRenderer
|
|
266
|
+
}, void 0, noResultsPlaceholder)
|
|
267
|
+
}));
|
|
304
268
|
};
|
|
305
269
|
|
|
306
270
|
VirtualizedBody.defaultProps = {
|
|
307
271
|
rows: [],
|
|
308
272
|
overscanCount: 10
|
|
309
273
|
};
|
|
310
|
-
VirtualizedBody.propTypes = {
|
|
311
|
-
autoScrollToId: PropTypes__default['default'].number,
|
|
312
|
-
columns: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({})),
|
|
313
|
-
component: PropTypes__default['default'].element,
|
|
314
|
-
expandable: PropTypes__default['default'].bool,
|
|
315
|
-
filters: PropTypes__default['default'].any,
|
|
316
|
-
innerRef: PropTypes__default['default'].any,
|
|
317
|
-
innerBody: PropTypes__default['default'].any,
|
|
318
|
-
isPlaceholderActive: PropTypes__default['default'].bool,
|
|
319
|
-
listProps: PropTypes__default['default'].shape({
|
|
320
|
-
itemSize: PropTypes__default['default'].func,
|
|
321
|
-
outerRef: PropTypes__default['default'].any
|
|
322
|
-
}),
|
|
323
|
-
noResultsPlaceholder: PropTypes__default['default'].oneOf([PropTypes__default['default'].string, PropTypes__default['default'].element]),
|
|
324
|
-
overscanCount: PropTypes__default['default'].number,
|
|
325
|
-
rows: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({})),
|
|
326
|
-
rowHeight: PropTypes__default['default'].number,
|
|
327
|
-
rowKey: PropTypes__default['default'].string,
|
|
328
|
-
rowRenderer: PropTypes__default['default'].element,
|
|
329
|
-
rowSize: PropTypes__default['default'].any,
|
|
330
|
-
setHasScroll: PropTypes__default['default'].func
|
|
331
|
-
};
|
|
332
274
|
|
|
333
275
|
module.exports = VirtualizedBody;
|
|
334
|
-
//# sourceMappingURL=VirtualizedBody.js.map
|