@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
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
1
3
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
2
|
-
import
|
|
4
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
3
5
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
4
|
-
import
|
|
6
|
+
import 'core-js/modules/esnext.async-iterator.some.js';
|
|
7
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
8
|
+
import 'core-js/modules/esnext.iterator.some.js';
|
|
9
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
10
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
11
|
+
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
12
|
+
import 'core-js/modules/esnext.iterator.map.js';
|
|
13
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
14
|
+
import { useMemo, useRef, useEffect } from 'react';
|
|
5
15
|
import { cx, isFunction } from '@elliemae/ds-utilities';
|
|
6
16
|
import { VariableSizeList } from 'react-window';
|
|
7
17
|
import { ArrowheadDown, ArrowheadRight } from '@elliemae/ds-icons';
|
|
@@ -12,157 +22,118 @@ import ExpandedRow from './ExpandedRow.js';
|
|
|
12
22
|
import ExpandedRowExtra from './ExpandedRowExtra.js';
|
|
13
23
|
import { RowSizes } from '../../rowSizes.js';
|
|
14
24
|
import { useExpandGridState } from './useExpandGridState.js';
|
|
15
|
-
import '
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import '@babel/runtime/helpers/esm/extends';
|
|
21
|
-
import '@elliemae/ds-shared/FocusGroup/FocusGrid';
|
|
22
|
-
import '../pagination/helper.js';
|
|
23
|
-
import '../pagination/usePaginationState.js';
|
|
24
|
-
import '@babel/runtime/helpers/esm/slicedToArray';
|
|
25
|
-
import '../../components/NoResults.js';
|
|
26
|
-
import '@elliemae/ds-system';
|
|
27
|
-
import '../../components/BodyCell.js';
|
|
28
|
-
import 'prop-types';
|
|
29
|
-
import '@elliemae/ds-shared/createDataInstance/utils';
|
|
30
|
-
import '@elliemae/ds-truncated-tooltip-text';
|
|
31
|
-
import '../../index-afbbe9c8.js';
|
|
32
|
-
import '../../components/renderers/defaultClassedRenderers.js';
|
|
33
|
-
import '@elliemae/ds-classnames';
|
|
34
|
-
import '../../blockNames.js';
|
|
35
|
-
import '../../components/renderers/renderRowsLoader.js';
|
|
36
|
-
import '../../components/RowsLoader.js';
|
|
37
|
-
import '@elliemae/ds-spinner';
|
|
38
|
-
import '../../components/TableBody.js';
|
|
39
|
-
import '../../components/tableContext.js';
|
|
40
|
-
import '../../components/Table.js';
|
|
41
|
-
import '../../components/TableHeader.js';
|
|
42
|
-
import '../../components/HeaderCell.js';
|
|
43
|
-
import '../column-sizing/ColumnSizingPlugin.js';
|
|
44
|
-
import '../column-sizing/useStylesheetHelpers.js';
|
|
45
|
-
import 'stylesheet-helpers';
|
|
46
|
-
import '../column-sizing/getColumnNameFromProperty.js';
|
|
47
|
-
import '../../utilities/getScrollbarSize.js';
|
|
48
|
-
import '../column-sizing/useColumnSizeService.js';
|
|
49
|
-
import '../column-sizing/utils.js';
|
|
50
|
-
import '../column-sizing/ext-points/getTableProps.js';
|
|
51
|
-
import '../column-sizing/ext-points/decorateColumn.js';
|
|
52
|
-
import '../column-sizing/columnMeasurerTransformer.js';
|
|
53
|
-
|
|
54
|
-
var _excluded = ["isExpanded"];
|
|
25
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
26
|
+
|
|
27
|
+
const _excluded = ["isExpanded"];
|
|
28
|
+
|
|
29
|
+
var _ArrowheadDown, _ArrowheadRight;
|
|
55
30
|
|
|
56
31
|
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; }
|
|
57
32
|
|
|
58
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(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; }
|
|
59
34
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
35
|
+
const getExpandedRowSizeBySubrows = _ref => {
|
|
36
|
+
let {
|
|
37
|
+
totalAmount,
|
|
38
|
+
amountVisible,
|
|
39
|
+
isShowingAll,
|
|
40
|
+
size = 36
|
|
41
|
+
} = _ref;
|
|
66
42
|
return isShowingAll ? size * (totalAmount + 1) - 6 : size * (amountVisible + 1) + 32;
|
|
67
43
|
};
|
|
68
44
|
|
|
69
|
-
|
|
45
|
+
const ExpandedRows = {
|
|
70
46
|
SingleColumn: ExpandedRow,
|
|
71
47
|
Master: ExpandedRowExtra
|
|
72
48
|
};
|
|
73
49
|
|
|
74
|
-
|
|
75
|
-
return ExpandedRows[type] || ExpandedRows.Master;
|
|
76
|
-
};
|
|
50
|
+
const createExpandedRow = type => ExpandedRows[type] || ExpandedRows.Master;
|
|
77
51
|
|
|
78
|
-
|
|
79
|
-
return columns.some(function (column) {
|
|
80
|
-
return column.expandableColumn;
|
|
81
|
-
});
|
|
82
|
-
};
|
|
52
|
+
const isExpandableSingleColumn = columns => columns.some(column => column.expandableColumn);
|
|
83
53
|
|
|
84
|
-
|
|
54
|
+
const ExpandablePlugin = createInstancePlugin('expandable', {
|
|
85
55
|
registerStateHook: useExpandGridState,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
});
|
|
96
|
-
}).filter(function (col) {
|
|
97
|
-
return !col.expandableColumn;
|
|
98
|
-
});
|
|
99
|
-
}, [columns]);
|
|
56
|
+
|
|
57
|
+
decorateGrid(grid) {
|
|
58
|
+
const {
|
|
59
|
+
decoratedColumns,
|
|
60
|
+
columns
|
|
61
|
+
} = grid.getInstance();
|
|
62
|
+
const detailColumns = useMemo(() => decoratedColumns.map(column => _objectSpread(_objectSpread({}, column), {}, {
|
|
63
|
+
customRenderer: column.detailCustomRenderer
|
|
64
|
+
})).filter(col => !col.expandableColumn), [columns]);
|
|
100
65
|
return {
|
|
101
|
-
detailColumns
|
|
66
|
+
detailColumns
|
|
102
67
|
};
|
|
103
68
|
},
|
|
104
|
-
|
|
69
|
+
|
|
70
|
+
decorateColumns(columns, grid) {
|
|
105
71
|
if (isExpandableSingleColumn(columns)) return columns; // get first column from user
|
|
106
72
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
});
|
|
110
|
-
var firstColumn = columns[firstColumnIndex];
|
|
73
|
+
const firstColumnIndex = columns.findIndex(column => column.isUserColumn);
|
|
74
|
+
const firstColumn = columns[firstColumnIndex];
|
|
111
75
|
firstColumn.formatExpandable = true;
|
|
112
|
-
return [
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
76
|
+
return [...columns.slice(0, firstColumnIndex), appendCellFormatter((value, _ref2) => {
|
|
77
|
+
let {
|
|
78
|
+
isExpanded,
|
|
79
|
+
rowData
|
|
80
|
+
} = _ref2;
|
|
81
|
+
const {
|
|
82
|
+
actions: {
|
|
83
|
+
toggleExpand
|
|
84
|
+
}
|
|
85
|
+
} = grid.getInstance();
|
|
118
86
|
/*
|
|
119
87
|
* should return only 2 elements ../custom-cell-renderer/addCustomRendererToCell.js
|
|
120
88
|
* getRenderer it's checking that length to apply the custom render to value only
|
|
121
89
|
*/
|
|
122
90
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
91
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
92
|
+
children: [/*#__PURE__*/_jsx(DSButton, {
|
|
93
|
+
buttonType: "text",
|
|
94
|
+
className: "expandable-arrow",
|
|
95
|
+
icon: isExpanded ? _ArrowheadDown || (_ArrowheadDown = /*#__PURE__*/_jsx(ArrowheadDown, {})) : _ArrowheadRight || (_ArrowheadRight = /*#__PURE__*/_jsx(ArrowheadRight, {})),
|
|
96
|
+
onClick: e => {
|
|
97
|
+
e.stopPropagation();
|
|
98
|
+
toggleExpand(rowData);
|
|
99
|
+
},
|
|
100
|
+
size: "s"
|
|
101
|
+
}), value]
|
|
102
|
+
});
|
|
103
|
+
}, firstColumn), ...columns.slice(firstColumnIndex + 1)];
|
|
135
104
|
},
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
rowSize =
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
105
|
+
|
|
106
|
+
getBodyProps(bodyProps, grid) {
|
|
107
|
+
const {
|
|
108
|
+
composedRows: rows,
|
|
109
|
+
props: {
|
|
110
|
+
rowKey,
|
|
111
|
+
getChildrenRows,
|
|
112
|
+
rowSize = 'normal',
|
|
113
|
+
subrowSize = 'normal',
|
|
114
|
+
getExpandedRowMinSize,
|
|
115
|
+
getExpandedRowSize,
|
|
116
|
+
expandableSubrowsVisible
|
|
117
|
+
},
|
|
118
|
+
state: {
|
|
119
|
+
expandedRows
|
|
120
|
+
}
|
|
121
|
+
} = grid.getInstance();
|
|
122
|
+
const rowSizePx = RowSizes[rowSize];
|
|
123
|
+
const subrowSizePx = RowSizes[subrowSize];
|
|
124
|
+
const listRef = useRef();
|
|
125
|
+
useEffect(() => {
|
|
155
126
|
if (listRef.current) listRef.current.resetAfterIndex(0, true);
|
|
156
127
|
}); // implementation of expandable row single column with aggregation
|
|
157
128
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
rowData
|
|
129
|
+
const getItemSize = index => {
|
|
130
|
+
const rowData = rows[index];
|
|
131
|
+
const key = rowData[rowKey];
|
|
132
|
+
const children = getChildrenRows({
|
|
133
|
+
rowData
|
|
163
134
|
});
|
|
164
|
-
|
|
165
|
-
rowData
|
|
135
|
+
const expandedSize = getExpandedRowSize ? getExpandedRowSize(index, {
|
|
136
|
+
rowData
|
|
166
137
|
}) // https://jira.elliemae.io/browse/PUI-1659
|
|
167
138
|
: getExpandedRowSizeBySubrows({
|
|
168
139
|
totalAmount: children.length,
|
|
@@ -170,7 +141,7 @@ var ExpandablePlugin = createInstancePlugin('expandable', {
|
|
|
170
141
|
isShowingAll: children.length < expandableSubrowsVisible || expandedRows[key] && expandedRows[key].showAllRows,
|
|
171
142
|
size: subrowSizePx
|
|
172
143
|
});
|
|
173
|
-
|
|
144
|
+
const expandedMinSize = isFunction(getExpandedRowMinSize) && getExpandedRowMinSize(index); // eslint-disable-next-line no-nested-ternary
|
|
174
145
|
|
|
175
146
|
return expandedRows[key] ? expandedMinSize > expandedSize ? expandedMinSize : expandedSize : rowSizePx;
|
|
176
147
|
};
|
|
@@ -184,30 +155,34 @@ var ExpandablePlugin = createInstancePlugin('expandable', {
|
|
|
184
155
|
}
|
|
185
156
|
});
|
|
186
157
|
},
|
|
187
|
-
decorateRenderers: function decorateRenderers(renderers, grid) {
|
|
188
|
-
var Row = renderers.body.row;
|
|
189
|
-
var Cell = renderers.body.cell; // eslint-disable-next-line react/display-name
|
|
190
158
|
|
|
191
|
-
|
|
159
|
+
decorateRenderers(renderers, grid) {
|
|
160
|
+
const Row = renderers.body.row;
|
|
161
|
+
const Cell = renderers.body.cell; // eslint-disable-next-line react/display-name
|
|
162
|
+
|
|
163
|
+
renderers.body.row = useMemo(() => {
|
|
192
164
|
// todo: the expandable grid should be created from another specific grid component
|
|
193
|
-
|
|
194
|
-
|
|
165
|
+
const expandedRowType = isExpandableSingleColumn(grid.decoratedColumns) ? 'SingleColumn' : 'Master';
|
|
166
|
+
const ExpandedRowComponent = createExpandedRow(expandedRowType); // eslint-disable-next-line react/display-name
|
|
195
167
|
|
|
196
|
-
return
|
|
197
|
-
|
|
168
|
+
return _ref3 => {
|
|
169
|
+
let {
|
|
170
|
+
isExpanded
|
|
171
|
+
} = _ref3,
|
|
198
172
|
rowProps = _objectWithoutProperties(_ref3, _excluded);
|
|
199
173
|
|
|
200
174
|
if (isExpanded) {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
detailColumns
|
|
204
|
-
getChildrenRows
|
|
205
|
-
renderRowDetails
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
175
|
+
const {
|
|
176
|
+
props: {
|
|
177
|
+
detailColumns,
|
|
178
|
+
getChildrenRows,
|
|
179
|
+
renderRowDetails
|
|
180
|
+
},
|
|
181
|
+
composedRows
|
|
182
|
+
} = grid.getInstance(); // https://jira.elliemae.io/browse/PUI-1667
|
|
183
|
+
|
|
184
|
+
const rowData = composedRows[rowProps.index] ? composedRows[rowProps.index] : rowProps.rowData;
|
|
185
|
+
return /*#__PURE__*/_jsx(ExpandedRowComponent, {
|
|
211
186
|
cellComponent: Cell,
|
|
212
187
|
detailColumns: detailColumns,
|
|
213
188
|
parentGrid: grid,
|
|
@@ -215,36 +190,42 @@ var ExpandablePlugin = createInstancePlugin('expandable', {
|
|
|
215
190
|
rowComponent: Row,
|
|
216
191
|
rowData: rowData,
|
|
217
192
|
rowProps: _objectSpread({
|
|
218
|
-
rowData
|
|
219
|
-
isExpanded
|
|
193
|
+
rowData,
|
|
194
|
+
isExpanded
|
|
220
195
|
}, rowProps),
|
|
221
196
|
rows: getChildrenRows({
|
|
222
|
-
rowData
|
|
197
|
+
rowData
|
|
223
198
|
})
|
|
224
|
-
}, rowProps.children);
|
|
199
|
+
}, void 0, rowProps.children);
|
|
225
200
|
}
|
|
226
201
|
|
|
227
|
-
return /*#__PURE__*/
|
|
202
|
+
return /*#__PURE__*/jsx(Row, _objectSpread({}, rowProps));
|
|
228
203
|
};
|
|
229
204
|
}, []);
|
|
230
205
|
return renderers;
|
|
231
206
|
},
|
|
232
|
-
getRowProps: function getRowProps(rowProps, grid, _ref4) {
|
|
233
|
-
var rowData = _ref4.rowData;
|
|
234
|
-
|
|
235
|
-
var _grid$getInstance5 = grid.getInstance(),
|
|
236
|
-
rowKey = _grid$getInstance5.props.rowKey,
|
|
237
|
-
expandedRows = _grid$getInstance5.state.expandedRows;
|
|
238
207
|
|
|
239
|
-
|
|
240
|
-
|
|
208
|
+
getRowProps(rowProps, grid, _ref4) {
|
|
209
|
+
let {
|
|
210
|
+
rowData
|
|
211
|
+
} = _ref4;
|
|
212
|
+
const {
|
|
213
|
+
props: {
|
|
214
|
+
rowKey
|
|
215
|
+
},
|
|
216
|
+
state: {
|
|
217
|
+
expandedRows
|
|
218
|
+
}
|
|
219
|
+
} = grid.getInstance();
|
|
220
|
+
const key = rowData[rowKey];
|
|
221
|
+
const isExpanded = !!expandedRows[key];
|
|
241
222
|
return _objectSpread(_objectSpread({}, rowProps), {}, {
|
|
242
223
|
className: cx(rowProps.className, Object.keys(expandedRows).length > 0 && 'expandable-row', isExpanded && 'expanded'),
|
|
243
|
-
isExpanded
|
|
224
|
+
isExpanded,
|
|
244
225
|
showAllRows: expandedRows[key] && expandedRows[key].showAllRows
|
|
245
226
|
});
|
|
246
227
|
}
|
|
228
|
+
|
|
247
229
|
});
|
|
248
230
|
|
|
249
231
|
export { ExpandablePlugin };
|
|
250
|
-
//# sourceMappingURL=ExpandablePlugin.js.map
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
3
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
1
4
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
5
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
|
-
import
|
|
6
|
+
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
7
|
+
import 'core-js/modules/esnext.iterator.map.js';
|
|
8
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
9
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
10
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
11
|
+
import 'react';
|
|
4
12
|
import DSSeparator from '@elliemae/ds-separator';
|
|
5
13
|
import DSButton from '@elliemae/ds-button';
|
|
6
14
|
import styled from 'styled-components';
|
|
@@ -9,67 +17,37 @@ import deferComponentRender from '@elliemae/ds-shared/defer-render-hoc';
|
|
|
9
17
|
import useDataGrid from '@elliemae/ds-shared/useDataGrid';
|
|
10
18
|
import { PaginationPlugin } from '../pagination/PaginationPlugin.js';
|
|
11
19
|
import BodyCell from '../../components/BodyCell.js';
|
|
12
|
-
import {
|
|
20
|
+
import { defaultRenderers } from '../../components/renderers/index.js';
|
|
13
21
|
import TableBody from '../../components/TableBody.js';
|
|
14
22
|
import Table from '../../components/Table.js';
|
|
15
23
|
import { ColumnSizingPlugin } from '../column-sizing/ColumnSizingPlugin.js';
|
|
16
|
-
import '
|
|
17
|
-
import '@elliemae/ds-shared/FocusGroup/FocusGrid';
|
|
18
|
-
import '@elliemae/ds-shared/createDataInstance/createInstancePlugin';
|
|
19
|
-
import '../pagination/helper.js';
|
|
20
|
-
import '../pagination/usePaginationState.js';
|
|
21
|
-
import '@babel/runtime/helpers/esm/slicedToArray';
|
|
22
|
-
import '../../components/NoResults.js';
|
|
23
|
-
import '@elliemae/ds-system';
|
|
24
|
-
import '@babel/runtime/helpers/esm/toConsumableArray';
|
|
25
|
-
import 'prop-types';
|
|
26
|
-
import '@elliemae/ds-shared/createDataInstance/utils';
|
|
27
|
-
import '@elliemae/ds-truncated-tooltip-text';
|
|
28
|
-
import '../../components/renderers/defaultClassedRenderers.js';
|
|
29
|
-
import '@elliemae/ds-classnames';
|
|
30
|
-
import '../../blockNames.js';
|
|
31
|
-
import '../../components/renderers/renderRowsLoader.js';
|
|
32
|
-
import '../../components/RowsLoader.js';
|
|
33
|
-
import '@elliemae/ds-spinner';
|
|
34
|
-
import '../../components/tableContext.js';
|
|
35
|
-
import '../../components/TableHeader.js';
|
|
36
|
-
import '../../components/HeaderCell.js';
|
|
37
|
-
import '../column-sizing/useStylesheetHelpers.js';
|
|
38
|
-
import 'stylesheet-helpers';
|
|
39
|
-
import '../column-sizing/getColumnNameFromProperty.js';
|
|
40
|
-
import '../../utilities/getScrollbarSize.js';
|
|
41
|
-
import '../column-sizing/useColumnSizeService.js';
|
|
42
|
-
import '../column-sizing/utils.js';
|
|
43
|
-
import '../column-sizing/ext-points/getTableProps.js';
|
|
44
|
-
import '../column-sizing/ext-points/decorateColumn.js';
|
|
45
|
-
import '../column-sizing/columnMeasurerTransformer.js';
|
|
24
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
46
25
|
|
|
47
|
-
var
|
|
48
|
-
|
|
26
|
+
var _TableBody, _DSSeparator;
|
|
27
|
+
|
|
28
|
+
const _excluded = ["instanceRef"],
|
|
29
|
+
_excluded2 = ["showAllRows"];
|
|
49
30
|
|
|
50
31
|
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; }
|
|
51
32
|
|
|
52
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(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; }
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
34
|
+
const DetailGrid = deferComponentRender(_ref => {
|
|
35
|
+
let {
|
|
36
|
+
parentGrid,
|
|
37
|
+
parentRowData,
|
|
38
|
+
rows
|
|
39
|
+
} = _ref;
|
|
57
40
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
var parentProps = _objectWithoutProperties(_parentGrid$props, _excluded);
|
|
41
|
+
const _parentGrid$props = parentGrid.props,
|
|
42
|
+
parentProps = _objectWithoutProperties(_parentGrid$props, _excluded);
|
|
61
43
|
|
|
62
|
-
|
|
44
|
+
const grid = useDataGrid(_objectSpread(_objectSpread({
|
|
63
45
|
uuid: parentGrid.getInstance().uuid
|
|
64
46
|
}, parentProps), {}, {
|
|
65
|
-
columns: parentGrid.getInstance().decoratedColumns.filter(
|
|
66
|
-
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
expandableColumn: false
|
|
70
|
-
});
|
|
71
|
-
}),
|
|
72
|
-
rows: rows,
|
|
47
|
+
columns: parentGrid.getInstance().decoratedColumns.filter(col => !col.expandableColumn).map(c => _objectSpread(_objectSpread({}, c), {}, {
|
|
48
|
+
expandableColumn: false
|
|
49
|
+
})),
|
|
50
|
+
rows,
|
|
73
51
|
plugins: [ColumnSizingPlugin, PaginationPlugin],
|
|
74
52
|
renderers: defaultRenderers,
|
|
75
53
|
bindColumnsSizeTo: parentGrid.uuid,
|
|
@@ -79,81 +57,87 @@ var DetailGrid = deferComponentRender(function (_ref) {
|
|
|
79
57
|
perPage: rows.length,
|
|
80
58
|
conditionalPagination: true
|
|
81
59
|
},
|
|
82
|
-
parentRowData
|
|
60
|
+
parentRowData
|
|
61
|
+
}));
|
|
62
|
+
return /*#__PURE__*/jsx(Table, _objectSpread(_objectSpread({}, grid), {}, {
|
|
63
|
+
children: _TableBody || (_TableBody = /*#__PURE__*/_jsx(TableBody, {}))
|
|
83
64
|
}));
|
|
84
|
-
return /*#__PURE__*/React.createElement(Table, grid, /*#__PURE__*/React.createElement(TableBody, null));
|
|
85
65
|
}, null);
|
|
86
|
-
|
|
66
|
+
const DetailsWrapper = /*#__PURE__*/styled.span.withConfig({
|
|
87
67
|
componentId: "sc-1goa4zy-0"
|
|
88
|
-
})(["flex:1;width:", "px;"],
|
|
89
|
-
|
|
90
|
-
});
|
|
91
|
-
var DetailGridWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
68
|
+
})(["flex:1;width:", "px;"], props => props.width);
|
|
69
|
+
const DetailGridWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
92
70
|
componentId: "sc-1goa4zy-1"
|
|
93
|
-
})(["display:flex;height:calc(100% - ", "px);width:", "px;margin:12px 0;"],
|
|
94
|
-
return props.allRowsVisible ? 18 : 60;
|
|
95
|
-
}, function (props) {
|
|
96
|
-
return props.expandableGridDetailWidth;
|
|
97
|
-
});
|
|
71
|
+
})(["display:flex;height:calc(100% - ", "px);width:", "px;margin:12px 0;"], props => props.allRowsVisible ? 18 : 60, props => props.expandableGridDetailWidth);
|
|
98
72
|
|
|
99
73
|
function ExpandedRow(_ref2) {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
rowKey = _parentGrid$getInstan2.rowKey,
|
|
114
|
-
_parentGrid$getInstan3 = _parentGrid$getInstan2.showMoreRowsText,
|
|
115
|
-
showMoreRowsText = _parentGrid$getInstan3 === void 0 ? 'SHOW ALL ROWS' : _parentGrid$getInstan3,
|
|
116
|
-
_parentGrid$getInstan4 = _parentGrid$getInstan2.showLessRowsText,
|
|
117
|
-
showLessRowsText = _parentGrid$getInstan4 === void 0 ? 'SHOW LESS ROWS' : _parentGrid$getInstan4,
|
|
118
|
-
expandableSubrowsVisible = _parentGrid$getInstan2.expandableSubrowsVisible,
|
|
119
|
-
expandableGridDetailWidth = _parentGrid$getInstan.columnSizeService.expandableGridDetailWidth;
|
|
120
|
-
|
|
121
|
-
var showAllRows = rowProps.showAllRows,
|
|
122
|
-
restRowProps = _objectWithoutProperties(rowProps, _excluded2);
|
|
123
|
-
|
|
124
|
-
return /*#__PURE__*/React.createElement(RowComponent, restRowProps, /*#__PURE__*/React.createElement(BodyCell, {
|
|
125
|
-
column: decoratedColumns[0],
|
|
126
|
-
columnIndex: 0,
|
|
127
|
-
component: CellComponent,
|
|
128
|
-
grid: parentGrid,
|
|
129
|
-
rowProps: _objectSpread({
|
|
130
|
-
rowData: rowData
|
|
131
|
-
}, rowProps)
|
|
132
|
-
}), /*#__PURE__*/React.createElement(DetailsWrapper, {
|
|
133
|
-
width: expandableGridDetailWidth
|
|
134
|
-
}, /*#__PURE__*/React.createElement(DetailGridWrapper, {
|
|
135
|
-
allRowsVisible: rows.length < expandableSubrowsVisible || get(expandedRows, [rowKey, 'showAllRows']),
|
|
136
|
-
expandableGridDetailWidth: expandableGridDetailWidth
|
|
137
|
-
}, /*#__PURE__*/React.createElement(DSSeparator, {
|
|
138
|
-
dashed: true,
|
|
139
|
-
orientation: "vertical"
|
|
140
|
-
}), /*#__PURE__*/React.createElement(DetailGrid, {
|
|
141
|
-
detailColumns: detailColumns,
|
|
142
|
-
parentGrid: parentGrid.getInstance(),
|
|
143
|
-
parentRowData: rowData,
|
|
144
|
-
rows: showAllRows ? rows : (rows || []).slice(0, expandableSubrowsVisible)
|
|
145
|
-
})), rows.length > expandableSubrowsVisible && /*#__PURE__*/React.createElement(DSButton, {
|
|
146
|
-
buttonType: "text",
|
|
147
|
-
labelText: showAllRows ? showLessRowsText : showMoreRowsText,
|
|
148
|
-
onClick: function onClick(e) {
|
|
149
|
-
e.stopPropagation();
|
|
150
|
-
toggleShowAllRows(rowData);
|
|
74
|
+
let {
|
|
75
|
+
parentGrid,
|
|
76
|
+
detailColumns,
|
|
77
|
+
rowData,
|
|
78
|
+
rows,
|
|
79
|
+
rowProps,
|
|
80
|
+
cellComponent: CellComponent,
|
|
81
|
+
rowComponent: RowComponent
|
|
82
|
+
} = _ref2;
|
|
83
|
+
const {
|
|
84
|
+
decoratedColumns,
|
|
85
|
+
actions: {
|
|
86
|
+
toggleShowAllRows
|
|
151
87
|
},
|
|
152
|
-
|
|
153
|
-
|
|
88
|
+
state: {
|
|
89
|
+
expandedRows
|
|
90
|
+
},
|
|
91
|
+
props: {
|
|
92
|
+
rowKey,
|
|
93
|
+
showMoreRowsText = 'SHOW ALL ROWS',
|
|
94
|
+
showLessRowsText = 'SHOW LESS ROWS',
|
|
95
|
+
expandableSubrowsVisible
|
|
96
|
+
},
|
|
97
|
+
columnSizeService: {
|
|
98
|
+
expandableGridDetailWidth
|
|
154
99
|
}
|
|
155
|
-
})
|
|
100
|
+
} = parentGrid.getInstance();
|
|
101
|
+
|
|
102
|
+
const {
|
|
103
|
+
showAllRows
|
|
104
|
+
} = rowProps,
|
|
105
|
+
restRowProps = _objectWithoutProperties(rowProps, _excluded2);
|
|
106
|
+
|
|
107
|
+
return /*#__PURE__*/jsxs(RowComponent, _objectSpread(_objectSpread({}, restRowProps), {}, {
|
|
108
|
+
children: [/*#__PURE__*/_jsx(BodyCell, {
|
|
109
|
+
column: decoratedColumns[0],
|
|
110
|
+
columnIndex: 0,
|
|
111
|
+
component: CellComponent,
|
|
112
|
+
grid: parentGrid,
|
|
113
|
+
rowProps: _objectSpread({
|
|
114
|
+
rowData
|
|
115
|
+
}, rowProps)
|
|
116
|
+
}), /*#__PURE__*/_jsx(DetailsWrapper, {
|
|
117
|
+
width: expandableGridDetailWidth
|
|
118
|
+
}, void 0, /*#__PURE__*/_jsx(DetailGridWrapper, {
|
|
119
|
+
allRowsVisible: rows.length < expandableSubrowsVisible || get(expandedRows, [rowKey, 'showAllRows']),
|
|
120
|
+
expandableGridDetailWidth: expandableGridDetailWidth
|
|
121
|
+
}, void 0, _DSSeparator || (_DSSeparator = /*#__PURE__*/_jsx(DSSeparator, {
|
|
122
|
+
dashed: true,
|
|
123
|
+
orientation: "vertical"
|
|
124
|
+
})), /*#__PURE__*/_jsx(DetailGrid, {
|
|
125
|
+
detailColumns: detailColumns,
|
|
126
|
+
parentGrid: parentGrid.getInstance(),
|
|
127
|
+
parentRowData: rowData,
|
|
128
|
+
rows: showAllRows ? rows : (rows || []).slice(0, expandableSubrowsVisible)
|
|
129
|
+
})), rows.length > expandableSubrowsVisible && /*#__PURE__*/_jsx(DSButton, {
|
|
130
|
+
buttonType: "text",
|
|
131
|
+
labelText: showAllRows ? showLessRowsText : showMoreRowsText,
|
|
132
|
+
onClick: e => {
|
|
133
|
+
e.stopPropagation();
|
|
134
|
+
toggleShowAllRows(rowData);
|
|
135
|
+
},
|
|
136
|
+
style: {
|
|
137
|
+
marginBottom: '10px'
|
|
138
|
+
}
|
|
139
|
+
}))]
|
|
140
|
+
}));
|
|
156
141
|
}
|
|
157
142
|
|
|
158
143
|
export { ExpandedRow as default };
|
|
159
|
-
//# sourceMappingURL=ExpandedRow.js.map
|