@mui/x-data-grid 8.0.0-alpha.12 → 8.0.0-alpha.14
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/CHANGELOG.md +430 -0
- package/DataGrid/DataGrid.js +31 -22
- package/DataGrid/useDataGridProps.js +1 -1
- package/colDef/gridActionsColDef.js +1 -1
- package/colDef/gridBooleanColDef.js +1 -1
- package/colDef/gridCheckboxSelectionColDef.js +2 -4
- package/components/GridFooter.js +1 -1
- package/components/GridHeader.js +1 -1
- package/components/GridPagination.js +5 -6
- package/components/GridRowCount.js +4 -5
- package/components/GridScrollArea.js +4 -3
- package/components/GridSelectedRowCount.js +5 -6
- package/components/GridShadowScrollArea.d.ts +8 -0
- package/components/GridShadowScrollArea.js +82 -0
- package/components/cell/GridEditInputCell.js +2 -3
- package/components/columnSelection/GridHeaderCheckbox.js +51 -17
- package/components/columnsManagement/GridColumnsManagement.js +60 -61
- package/components/columnsPanel/ColumnsPanelTrigger.d.ts +33 -0
- package/components/columnsPanel/ColumnsPanelTrigger.js +209 -0
- package/components/columnsPanel/index.d.ts +1 -0
- package/components/columnsPanel/index.js +16 -0
- package/components/containers/GridOverlay.js +6 -8
- package/components/containers/GridRoot.js +4 -2
- package/components/containers/GridRootStyles.d.ts +1 -2
- package/components/containers/GridRootStyles.js +77 -100
- package/components/containers/GridToolbarContainer.js +5 -6
- package/components/export/ExportCsv.d.ts +30 -0
- package/components/export/ExportCsv.js +196 -0
- package/components/export/ExportPrint.d.ts +30 -0
- package/components/export/ExportPrint.js +196 -0
- package/components/export/index.d.ts +2 -0
- package/components/export/index.js +27 -0
- package/components/filterPanel/FilterPanelTrigger.d.ts +37 -0
- package/components/filterPanel/FilterPanelTrigger.js +212 -0
- package/components/filterPanel/index.d.ts +1 -0
- package/components/filterPanel/index.js +16 -0
- package/components/index.d.ts +6 -1
- package/components/index.js +60 -0
- package/components/menu/GridMenu.js +7 -6
- package/components/menu/columnMenu/GridColumnHeaderMenu.js +4 -3
- package/components/panel/GridPanel.js +18 -20
- package/components/panel/GridPanelContent.js +6 -8
- package/components/panel/GridPanelFooter.js +5 -6
- package/components/panel/GridPanelHeader.js +4 -5
- package/components/panel/filterPanel/GridFilterForm.js +13 -20
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +2 -2
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +10 -39
- package/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +2 -2
- package/components/panel/filterPanel/GridFilterInputMultipleValue.js +20 -45
- package/components/panel/filterPanel/GridFilterInputValue.js +3 -6
- package/components/quickFilter/QuickFilter.d.ts +41 -0
- package/components/quickFilter/QuickFilter.js +110 -0
- package/components/quickFilter/QuickFilterClear.d.ts +28 -0
- package/components/quickFilter/QuickFilterClear.js +161 -0
- package/components/quickFilter/QuickFilterContext.d.ts +13 -0
- package/components/quickFilter/QuickFilterContext.js +17 -0
- package/components/quickFilter/QuickFilterControl.d.ts +28 -0
- package/components/quickFilter/QuickFilterControl.js +104 -0
- package/components/quickFilter/index.d.ts +3 -0
- package/components/quickFilter/index.js +38 -0
- package/components/toolbar/GridToolbar.d.ts +1 -1
- package/components/toolbar/GridToolbar.js +2 -2
- package/components/toolbar/GridToolbarFilterButton.js +5 -6
- package/components/toolbar/GridToolbarQuickFilter.js +57 -97
- package/components/toolbarV8/GridToolbar.d.ts +11 -0
- package/components/toolbarV8/GridToolbar.js +142 -0
- package/components/toolbarV8/Toolbar.d.ts +32 -0
- package/components/toolbarV8/Toolbar.js +132 -0
- package/components/toolbarV8/ToolbarButton.d.ts +23 -0
- package/components/toolbarV8/ToolbarButton.js +179 -0
- package/components/toolbarV8/ToolbarContext.d.ts +9 -0
- package/components/toolbarV8/ToolbarContext.js +17 -0
- package/components/toolbarV8/index.d.ts +2 -0
- package/components/toolbarV8/index.js +27 -0
- package/components/virtualization/GridVirtualScrollbar.js +15 -6
- package/components/virtualization/GridVirtualScrollerFiller.js +2 -1
- package/constants/cssVariables.d.ts +294 -0
- package/constants/cssVariables.js +168 -0
- package/constants/dataGridPropsDefaultValues.js +1 -0
- package/constants/defaultGridSlotsComponents.js +2 -1
- package/constants/gridClasses.d.ts +17 -0
- package/constants/gridClasses.js +1 -1
- package/context/GridContextProvider.js +4 -1
- package/esm/DataGrid/DataGrid.js +31 -22
- package/esm/DataGrid/useDataGridProps.js +1 -1
- package/esm/colDef/gridActionsColDef.js +1 -1
- package/esm/colDef/gridBooleanColDef.js +1 -1
- package/esm/colDef/gridCheckboxSelectionColDef.js +2 -4
- package/esm/components/GridFooter.js +2 -2
- package/esm/components/GridHeader.js +1 -1
- package/esm/components/GridPagination.js +5 -6
- package/esm/components/GridRowCount.js +4 -5
- package/esm/components/GridScrollArea.js +2 -1
- package/esm/components/GridSelectedRowCount.js +5 -6
- package/esm/components/GridShadowScrollArea.d.ts +8 -0
- package/esm/components/GridShadowScrollArea.js +74 -0
- package/esm/components/cell/GridEditInputCell.js +2 -3
- package/esm/components/columnSelection/GridHeaderCheckbox.js +51 -17
- package/esm/components/columnsManagement/GridColumnsManagement.js +61 -62
- package/esm/components/columnsPanel/ColumnsPanelTrigger.d.ts +33 -0
- package/esm/components/columnsPanel/ColumnsPanelTrigger.js +202 -0
- package/esm/components/columnsPanel/index.d.ts +1 -0
- package/esm/components/columnsPanel/index.js +1 -0
- package/esm/components/containers/GridOverlay.js +6 -8
- package/esm/components/containers/GridRoot.js +4 -2
- package/esm/components/containers/GridRootStyles.d.ts +1 -2
- package/esm/components/containers/GridRootStyles.js +78 -101
- package/esm/components/containers/GridToolbarContainer.js +5 -6
- package/esm/components/export/ExportCsv.d.ts +30 -0
- package/esm/components/export/ExportCsv.js +189 -0
- package/esm/components/export/ExportPrint.d.ts +30 -0
- package/esm/components/export/ExportPrint.js +189 -0
- package/esm/components/export/index.d.ts +2 -0
- package/esm/components/export/index.js +2 -0
- package/esm/components/filterPanel/FilterPanelTrigger.d.ts +37 -0
- package/esm/components/filterPanel/FilterPanelTrigger.js +205 -0
- package/esm/components/filterPanel/index.d.ts +1 -0
- package/esm/components/filterPanel/index.js +1 -0
- package/esm/components/index.d.ts +6 -1
- package/esm/components/index.js +6 -1
- package/esm/components/menu/GridMenu.js +7 -6
- package/esm/components/menu/columnMenu/GridColumnHeaderMenu.js +2 -1
- package/esm/components/panel/GridPanel.js +18 -20
- package/esm/components/panel/GridPanelContent.js +6 -8
- package/esm/components/panel/GridPanelFooter.js +5 -6
- package/esm/components/panel/GridPanelHeader.js +4 -5
- package/esm/components/panel/filterPanel/GridFilterForm.js +13 -20
- package/esm/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +2 -2
- package/esm/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +10 -39
- package/esm/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +2 -2
- package/esm/components/panel/filterPanel/GridFilterInputMultipleValue.js +19 -44
- package/esm/components/panel/filterPanel/GridFilterInputValue.js +3 -6
- package/esm/components/quickFilter/QuickFilter.d.ts +41 -0
- package/esm/components/quickFilter/QuickFilter.js +103 -0
- package/esm/components/quickFilter/QuickFilterClear.d.ts +28 -0
- package/esm/components/quickFilter/QuickFilterClear.js +154 -0
- package/esm/components/quickFilter/QuickFilterContext.d.ts +13 -0
- package/esm/components/quickFilter/QuickFilterContext.js +9 -0
- package/esm/components/quickFilter/QuickFilterControl.d.ts +28 -0
- package/esm/components/quickFilter/QuickFilterControl.js +97 -0
- package/esm/components/quickFilter/index.d.ts +3 -0
- package/esm/components/quickFilter/index.js +3 -0
- package/esm/components/toolbar/GridToolbar.d.ts +1 -1
- package/esm/components/toolbar/GridToolbar.js +2 -2
- package/esm/components/toolbar/GridToolbarFilterButton.js +5 -6
- package/esm/components/toolbar/GridToolbarQuickFilter.js +59 -97
- package/esm/components/toolbarV8/GridToolbar.d.ts +11 -0
- package/esm/components/toolbarV8/GridToolbar.js +135 -0
- package/esm/components/toolbarV8/Toolbar.d.ts +32 -0
- package/esm/components/toolbarV8/Toolbar.js +125 -0
- package/esm/components/toolbarV8/ToolbarButton.d.ts +23 -0
- package/esm/components/toolbarV8/ToolbarButton.js +172 -0
- package/esm/components/toolbarV8/ToolbarContext.d.ts +9 -0
- package/esm/components/toolbarV8/ToolbarContext.js +9 -0
- package/esm/components/toolbarV8/index.d.ts +2 -0
- package/esm/components/toolbarV8/index.js +2 -0
- package/esm/components/virtualization/GridVirtualScrollbar.js +10 -2
- package/esm/components/virtualization/GridVirtualScrollerFiller.js +2 -1
- package/esm/constants/cssVariables.d.ts +294 -0
- package/esm/constants/cssVariables.js +161 -0
- package/esm/constants/dataGridPropsDefaultValues.js +1 -0
- package/esm/constants/defaultGridSlotsComponents.js +2 -1
- package/esm/constants/gridClasses.d.ts +17 -0
- package/esm/constants/gridClasses.js +1 -1
- package/esm/context/GridContextProvider.js +4 -1
- package/esm/hooks/features/clipboard/useGridClipboard.js +3 -2
- package/esm/hooks/features/columnHeaders/useGridColumnHeaders.js +2 -2
- package/esm/hooks/features/columnResize/useGridColumnResize.js +2 -1
- package/esm/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -0
- package/esm/hooks/features/columns/gridColumnsSelector.d.ts +7 -0
- package/esm/hooks/features/columns/gridColumnsSelector.js +8 -0
- package/esm/hooks/features/columns/gridColumnsUtils.d.ts +3 -1
- package/esm/hooks/features/columns/gridColumnsUtils.js +6 -3
- package/esm/hooks/features/columns/index.d.ts +1 -1
- package/esm/hooks/features/columns/index.js +1 -1
- package/esm/hooks/features/columns/useGridColumns.js +4 -2
- package/esm/hooks/features/dataSource/gridDataSourceError.d.ts +31 -0
- package/esm/hooks/features/dataSource/gridDataSourceError.js +32 -0
- package/esm/hooks/features/dataSource/index.d.ts +2 -0
- package/esm/hooks/features/dataSource/index.js +2 -0
- package/esm/hooks/features/dataSource/models.d.ts +1 -1
- package/esm/hooks/features/dataSource/useGridDataSourceBase.d.ts +1 -1
- package/esm/hooks/features/dataSource/useGridDataSourceBase.js +27 -17
- package/esm/hooks/features/dimensions/useGridDimensions.js +11 -10
- package/esm/hooks/features/editing/useGridCellEditing.js +2 -1
- package/esm/hooks/features/editing/useGridRowEditing.js +2 -1
- package/esm/hooks/features/export/utils.js +4 -2
- package/esm/hooks/features/focus/useGridFocus.js +3 -2
- package/esm/hooks/features/index.d.ts +1 -1
- package/esm/hooks/features/index.js +1 -1
- package/esm/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +3 -3
- package/esm/hooks/features/rowSelection/gridRowSelectionSelector.js +27 -7
- package/esm/hooks/features/rowSelection/useGridRowSelection.js +148 -81
- package/esm/hooks/features/rowSelection/utils.d.ts +2 -2
- package/esm/hooks/features/rowSelection/utils.js +11 -11
- package/esm/hooks/features/rows/gridRowsInterfaces.d.ts +1 -1
- package/esm/hooks/features/rows/gridRowsUtils.d.ts +2 -1
- package/esm/hooks/features/rows/gridRowsUtils.js +8 -0
- package/esm/hooks/features/rows/useGridParamsApi.js +2 -8
- package/esm/hooks/features/rows/useGridRowAriaAttributes.js +2 -4
- package/esm/hooks/features/rows/useGridRows.d.ts +2 -2
- package/esm/hooks/features/rows/useGridRows.js +7 -7
- package/esm/hooks/features/rows/useGridRowsMeta.js +8 -0
- package/esm/hooks/features/virtualization/useGridVirtualScroller.d.ts +0 -2
- package/esm/hooks/features/virtualization/useGridVirtualScroller.js +5 -11
- package/esm/hooks/utils/index.d.ts +2 -1
- package/esm/hooks/utils/useGridComponentRenderer.d.ts +12 -0
- package/esm/hooks/utils/useGridComponentRenderer.js +36 -0
- package/esm/hooks/utils/useGridSelector.js +4 -1
- package/esm/hooks/utils/useIsSSR.js +4 -1
- package/esm/index.js +1 -1
- package/esm/internals/demo/TailwindDemoContainer.d.ts +11 -0
- package/esm/internals/demo/TailwindDemoContainer.js +55 -0
- package/esm/internals/demo/index.d.ts +1 -0
- package/esm/internals/demo/index.js +1 -0
- package/esm/internals/index.d.ts +6 -1
- package/esm/internals/index.js +5 -1
- package/esm/internals/utils/propValidation.js +1 -1
- package/esm/locales/bnBD.d.ts +2 -0
- package/esm/locales/bnBD.js +167 -0
- package/esm/locales/deDE.js +3 -5
- package/esm/locales/huHU.js +10 -13
- package/esm/locales/index.d.ts +1 -0
- package/esm/locales/index.js +1 -0
- package/esm/locales/ruRU.js +17 -21
- package/esm/material/icons/index.d.ts +3 -3
- package/esm/material/icons/index.js +6 -6
- package/esm/material/index.d.ts +1 -0
- package/esm/material/index.js +167 -52
- package/esm/material/variables.d.ts +5 -0
- package/esm/material/variables.js +89 -0
- package/esm/models/api/gridRowSelectionApi.d.ts +4 -2
- package/esm/models/api/gridSortApi.d.ts +1 -1
- package/esm/models/configuration/gridConfiguration.d.ts +7 -1
- package/esm/models/gridBaseSlots.d.ts +61 -7
- package/esm/models/gridDataSource.d.ts +9 -4
- package/esm/models/gridIconSlotsComponent.d.ts +1 -1
- package/esm/models/gridRowSelectionManager.d.ts +9 -0
- package/esm/models/gridRowSelectionManager.js +36 -0
- package/esm/models/gridRowSelectionModel.d.ts +4 -2
- package/esm/models/gridSlotsComponent.d.ts +7 -28
- package/esm/models/gridSlotsComponentsProps.d.ts +3 -11
- package/esm/models/gridSortModel.d.ts +1 -1
- package/esm/models/index.d.ts +2 -1
- package/esm/models/index.js +2 -3
- package/esm/models/props/DataGridProps.d.ts +22 -17
- package/esm/utils/css/context.d.ts +14 -0
- package/esm/utils/css/context.js +54 -0
- package/esm/utils/index.d.ts +2 -1
- package/esm/utils/index.js +1 -1
- package/hooks/features/clipboard/useGridClipboard.js +3 -2
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +2 -2
- package/hooks/features/columnResize/useGridColumnResize.js +28 -27
- package/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -0
- package/hooks/features/columns/gridColumnsSelector.d.ts +7 -0
- package/hooks/features/columns/gridColumnsSelector.js +9 -1
- package/hooks/features/columns/gridColumnsUtils.d.ts +3 -1
- package/hooks/features/columns/gridColumnsUtils.js +6 -3
- package/hooks/features/columns/index.d.ts +1 -1
- package/hooks/features/columns/index.js +94 -10
- package/hooks/features/columns/useGridColumns.js +4 -2
- package/hooks/features/dataSource/gridDataSourceError.d.ts +31 -0
- package/hooks/features/dataSource/gridDataSourceError.js +40 -0
- package/hooks/features/dataSource/index.d.ts +2 -0
- package/hooks/features/dataSource/index.js +25 -0
- package/hooks/features/dataSource/models.d.ts +1 -1
- package/hooks/features/dataSource/useGridDataSourceBase.d.ts +1 -1
- package/hooks/features/dataSource/useGridDataSourceBase.js +27 -17
- package/hooks/features/dimensions/useGridDimensions.js +19 -18
- package/hooks/features/editing/useGridCellEditing.js +10 -9
- package/hooks/features/editing/useGridRowEditing.js +11 -10
- package/hooks/features/export/utils.js +4 -2
- package/hooks/features/focus/useGridFocus.js +8 -7
- package/hooks/features/index.d.ts +1 -1
- package/hooks/features/index.js +11 -28
- package/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +3 -3
- package/hooks/features/rowSelection/gridRowSelectionSelector.js +27 -7
- package/hooks/features/rowSelection/useGridRowSelection.js +146 -79
- package/hooks/features/rowSelection/utils.d.ts +2 -2
- package/hooks/features/rowSelection/utils.js +10 -10
- package/hooks/features/rows/gridRowsInterfaces.d.ts +1 -1
- package/hooks/features/rows/gridRowsUtils.d.ts +2 -1
- package/hooks/features/rows/gridRowsUtils.js +10 -1
- package/hooks/features/rows/useGridParamsApi.js +2 -8
- package/hooks/features/rows/useGridRowAriaAttributes.js +2 -4
- package/hooks/features/rows/useGridRows.d.ts +2 -2
- package/hooks/features/rows/useGridRows.js +7 -7
- package/hooks/features/rows/useGridRowsMeta.js +8 -0
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +0 -2
- package/hooks/features/virtualization/useGridVirtualScroller.js +21 -27
- package/hooks/utils/index.d.ts +2 -1
- package/hooks/utils/useGridComponentRenderer.d.ts +12 -0
- package/hooks/utils/useGridComponentRenderer.js +44 -0
- package/hooks/utils/useGridSelector.js +6 -2
- package/hooks/utils/useIsSSR.js +6 -2
- package/index.js +1 -1
- package/internals/demo/TailwindDemoContainer.d.ts +11 -0
- package/internals/demo/TailwindDemoContainer.js +63 -0
- package/internals/demo/index.d.ts +1 -0
- package/internals/demo/index.js +12 -0
- package/internals/index.d.ts +6 -1
- package/internals/index.js +43 -0
- package/internals/utils/propValidation.js +1 -1
- package/locales/bnBD.d.ts +2 -0
- package/locales/bnBD.js +173 -0
- package/locales/deDE.js +3 -5
- package/locales/huHU.js +10 -13
- package/locales/index.d.ts +1 -0
- package/locales/index.js +11 -0
- package/locales/ruRU.js +17 -21
- package/material/icons/index.d.ts +3 -3
- package/material/icons/index.js +7 -7
- package/material/index.d.ts +1 -0
- package/material/index.js +172 -51
- package/material/variables.d.ts +5 -0
- package/material/variables.js +95 -0
- package/models/api/gridRowSelectionApi.d.ts +4 -2
- package/models/api/gridSortApi.d.ts +1 -1
- package/models/configuration/gridConfiguration.d.ts +7 -1
- package/models/gridBaseSlots.d.ts +61 -7
- package/models/gridDataSource.d.ts +9 -4
- package/models/gridIconSlotsComponent.d.ts +1 -1
- package/models/gridRowSelectionManager.d.ts +9 -0
- package/models/gridRowSelectionManager.js +43 -0
- package/models/gridRowSelectionModel.d.ts +4 -2
- package/models/gridSlotsComponent.d.ts +7 -28
- package/models/gridSlotsComponentsProps.d.ts +3 -11
- package/models/gridSortModel.d.ts +1 -1
- package/models/index.d.ts +2 -1
- package/models/index.js +34 -11
- package/models/props/DataGridProps.d.ts +22 -17
- package/modern/DataGrid/DataGrid.js +31 -22
- package/modern/DataGrid/useDataGridProps.js +1 -1
- package/modern/colDef/gridActionsColDef.js +1 -1
- package/modern/colDef/gridBooleanColDef.js +1 -1
- package/modern/colDef/gridCheckboxSelectionColDef.js +2 -4
- package/modern/components/GridFooter.js +2 -2
- package/modern/components/GridHeader.js +1 -1
- package/modern/components/GridPagination.js +5 -6
- package/modern/components/GridRowCount.js +4 -5
- package/modern/components/GridScrollArea.js +2 -1
- package/modern/components/GridSelectedRowCount.js +5 -6
- package/modern/components/GridShadowScrollArea.d.ts +8 -0
- package/modern/components/GridShadowScrollArea.js +74 -0
- package/modern/components/cell/GridEditInputCell.js +2 -3
- package/modern/components/columnSelection/GridHeaderCheckbox.js +51 -17
- package/modern/components/columnsManagement/GridColumnsManagement.js +61 -62
- package/modern/components/columnsPanel/ColumnsPanelTrigger.d.ts +33 -0
- package/modern/components/columnsPanel/ColumnsPanelTrigger.js +202 -0
- package/modern/components/columnsPanel/index.d.ts +1 -0
- package/modern/components/columnsPanel/index.js +1 -0
- package/modern/components/containers/GridOverlay.js +6 -8
- package/modern/components/containers/GridRoot.js +4 -2
- package/modern/components/containers/GridRootStyles.d.ts +1 -2
- package/modern/components/containers/GridRootStyles.js +78 -101
- package/modern/components/containers/GridToolbarContainer.js +5 -6
- package/modern/components/export/ExportCsv.d.ts +30 -0
- package/modern/components/export/ExportCsv.js +189 -0
- package/modern/components/export/ExportPrint.d.ts +30 -0
- package/modern/components/export/ExportPrint.js +189 -0
- package/modern/components/export/index.d.ts +2 -0
- package/modern/components/export/index.js +2 -0
- package/modern/components/filterPanel/FilterPanelTrigger.d.ts +37 -0
- package/modern/components/filterPanel/FilterPanelTrigger.js +205 -0
- package/modern/components/filterPanel/index.d.ts +1 -0
- package/modern/components/filterPanel/index.js +1 -0
- package/modern/components/index.d.ts +6 -1
- package/modern/components/index.js +6 -1
- package/modern/components/menu/GridMenu.js +7 -6
- package/modern/components/menu/columnMenu/GridColumnHeaderMenu.js +2 -1
- package/modern/components/panel/GridPanel.js +18 -20
- package/modern/components/panel/GridPanelContent.js +6 -8
- package/modern/components/panel/GridPanelFooter.js +5 -6
- package/modern/components/panel/GridPanelHeader.js +4 -5
- package/modern/components/panel/filterPanel/GridFilterForm.js +13 -20
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +2 -2
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +10 -39
- package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +2 -2
- package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +19 -44
- package/modern/components/panel/filterPanel/GridFilterInputValue.js +3 -6
- package/modern/components/quickFilter/QuickFilter.d.ts +41 -0
- package/modern/components/quickFilter/QuickFilter.js +103 -0
- package/modern/components/quickFilter/QuickFilterClear.d.ts +28 -0
- package/modern/components/quickFilter/QuickFilterClear.js +154 -0
- package/modern/components/quickFilter/QuickFilterContext.d.ts +13 -0
- package/modern/components/quickFilter/QuickFilterContext.js +9 -0
- package/modern/components/quickFilter/QuickFilterControl.d.ts +28 -0
- package/modern/components/quickFilter/QuickFilterControl.js +97 -0
- package/modern/components/quickFilter/index.d.ts +3 -0
- package/modern/components/quickFilter/index.js +3 -0
- package/modern/components/toolbar/GridToolbar.d.ts +1 -1
- package/modern/components/toolbar/GridToolbar.js +2 -2
- package/modern/components/toolbar/GridToolbarFilterButton.js +5 -6
- package/modern/components/toolbar/GridToolbarQuickFilter.js +59 -97
- package/modern/components/toolbarV8/GridToolbar.d.ts +11 -0
- package/modern/components/toolbarV8/GridToolbar.js +135 -0
- package/modern/components/toolbarV8/Toolbar.d.ts +32 -0
- package/modern/components/toolbarV8/Toolbar.js +125 -0
- package/modern/components/toolbarV8/ToolbarButton.d.ts +23 -0
- package/modern/components/toolbarV8/ToolbarButton.js +172 -0
- package/modern/components/toolbarV8/ToolbarContext.d.ts +9 -0
- package/modern/components/toolbarV8/ToolbarContext.js +9 -0
- package/modern/components/toolbarV8/index.d.ts +2 -0
- package/modern/components/toolbarV8/index.js +2 -0
- package/modern/components/virtualization/GridVirtualScrollbar.js +10 -2
- package/modern/components/virtualization/GridVirtualScrollerFiller.js +2 -1
- package/modern/constants/cssVariables.d.ts +294 -0
- package/modern/constants/cssVariables.js +161 -0
- package/modern/constants/dataGridPropsDefaultValues.js +1 -0
- package/modern/constants/defaultGridSlotsComponents.js +2 -1
- package/modern/constants/gridClasses.d.ts +17 -0
- package/modern/constants/gridClasses.js +1 -1
- package/modern/context/GridContextProvider.js +4 -1
- package/modern/hooks/features/clipboard/useGridClipboard.js +3 -2
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +2 -2
- package/modern/hooks/features/columnResize/useGridColumnResize.js +2 -1
- package/modern/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -0
- package/modern/hooks/features/columns/gridColumnsSelector.d.ts +7 -0
- package/modern/hooks/features/columns/gridColumnsSelector.js +8 -0
- package/modern/hooks/features/columns/gridColumnsUtils.d.ts +3 -1
- package/modern/hooks/features/columns/gridColumnsUtils.js +6 -3
- package/modern/hooks/features/columns/index.d.ts +1 -1
- package/modern/hooks/features/columns/index.js +1 -1
- package/modern/hooks/features/columns/useGridColumns.js +4 -2
- package/modern/hooks/features/dataSource/gridDataSourceError.d.ts +31 -0
- package/modern/hooks/features/dataSource/gridDataSourceError.js +32 -0
- package/modern/hooks/features/dataSource/index.d.ts +2 -0
- package/modern/hooks/features/dataSource/index.js +2 -0
- package/modern/hooks/features/dataSource/models.d.ts +1 -1
- package/modern/hooks/features/dataSource/useGridDataSourceBase.d.ts +1 -1
- package/modern/hooks/features/dataSource/useGridDataSourceBase.js +27 -17
- package/modern/hooks/features/dimensions/useGridDimensions.js +11 -10
- package/modern/hooks/features/editing/useGridCellEditing.js +2 -1
- package/modern/hooks/features/editing/useGridRowEditing.js +2 -1
- package/modern/hooks/features/export/utils.js +4 -2
- package/modern/hooks/features/focus/useGridFocus.js +3 -2
- package/modern/hooks/features/index.d.ts +1 -1
- package/modern/hooks/features/index.js +1 -1
- package/modern/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +3 -3
- package/modern/hooks/features/rowSelection/gridRowSelectionSelector.js +27 -7
- package/modern/hooks/features/rowSelection/useGridRowSelection.js +148 -81
- package/modern/hooks/features/rowSelection/utils.d.ts +2 -2
- package/modern/hooks/features/rowSelection/utils.js +11 -11
- package/modern/hooks/features/rows/gridRowsInterfaces.d.ts +1 -1
- package/modern/hooks/features/rows/gridRowsUtils.d.ts +2 -1
- package/modern/hooks/features/rows/gridRowsUtils.js +8 -0
- package/modern/hooks/features/rows/useGridParamsApi.js +2 -8
- package/modern/hooks/features/rows/useGridRowAriaAttributes.js +2 -4
- package/modern/hooks/features/rows/useGridRows.d.ts +2 -2
- package/modern/hooks/features/rows/useGridRows.js +7 -7
- package/modern/hooks/features/rows/useGridRowsMeta.js +8 -0
- package/modern/hooks/features/virtualization/useGridVirtualScroller.d.ts +0 -2
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +5 -11
- package/modern/hooks/utils/index.d.ts +2 -1
- package/modern/hooks/utils/useGridComponentRenderer.d.ts +12 -0
- package/modern/hooks/utils/useGridComponentRenderer.js +36 -0
- package/modern/hooks/utils/useGridSelector.js +4 -1
- package/modern/hooks/utils/useIsSSR.js +4 -1
- package/modern/index.js +1 -1
- package/modern/internals/demo/TailwindDemoContainer.d.ts +11 -0
- package/modern/internals/demo/TailwindDemoContainer.js +55 -0
- package/modern/internals/demo/index.d.ts +1 -0
- package/modern/internals/demo/index.js +1 -0
- package/modern/internals/index.d.ts +6 -1
- package/modern/internals/index.js +5 -1
- package/modern/internals/utils/propValidation.js +1 -1
- package/modern/locales/bnBD.d.ts +2 -0
- package/modern/locales/bnBD.js +167 -0
- package/modern/locales/deDE.js +3 -5
- package/modern/locales/huHU.js +10 -13
- package/modern/locales/index.d.ts +1 -0
- package/modern/locales/index.js +1 -0
- package/modern/locales/ruRU.js +17 -21
- package/modern/material/icons/index.d.ts +3 -3
- package/modern/material/icons/index.js +6 -6
- package/modern/material/index.d.ts +1 -0
- package/modern/material/index.js +167 -52
- package/modern/material/variables.d.ts +5 -0
- package/modern/material/variables.js +89 -0
- package/modern/models/api/gridRowSelectionApi.d.ts +4 -2
- package/modern/models/api/gridSortApi.d.ts +1 -1
- package/modern/models/configuration/gridConfiguration.d.ts +7 -1
- package/modern/models/gridBaseSlots.d.ts +61 -7
- package/modern/models/gridDataSource.d.ts +9 -4
- package/modern/models/gridIconSlotsComponent.d.ts +1 -1
- package/modern/models/gridRowSelectionManager.d.ts +9 -0
- package/modern/models/gridRowSelectionManager.js +36 -0
- package/modern/models/gridRowSelectionModel.d.ts +4 -2
- package/modern/models/gridSlotsComponent.d.ts +7 -28
- package/modern/models/gridSlotsComponentsProps.d.ts +3 -11
- package/modern/models/gridSortModel.d.ts +1 -1
- package/modern/models/index.d.ts +2 -1
- package/modern/models/index.js +2 -3
- package/modern/models/props/DataGridProps.d.ts +22 -17
- package/modern/utils/css/context.d.ts +14 -0
- package/modern/utils/css/context.js +54 -0
- package/modern/utils/index.d.ts +2 -1
- package/modern/utils/index.js +1 -1
- package/package.json +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/utils/css/context.d.ts +14 -0
- package/utils/css/context.js +64 -0
- package/utils/index.d.ts +2 -1
- package/utils/index.js +8 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { GridRowId } from './gridRows';
|
|
2
|
+
import type { GridRowSelectionModel } from './gridRowSelectionModel';
|
|
3
|
+
export interface RowSelectionManager {
|
|
4
|
+
data: Set<GridRowId>;
|
|
5
|
+
has(id: GridRowId): boolean;
|
|
6
|
+
select(id: GridRowId): void;
|
|
7
|
+
unselect(id: GridRowId): void;
|
|
8
|
+
}
|
|
9
|
+
export declare const createRowSelectionManager: (model: GridRowSelectionModel) => RowSelectionManager;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createRowSelectionManager = void 0;
|
|
7
|
+
class IncludeManager {
|
|
8
|
+
constructor(model) {
|
|
9
|
+
this.data = void 0;
|
|
10
|
+
this.data = model.ids;
|
|
11
|
+
}
|
|
12
|
+
has(id) {
|
|
13
|
+
return this.data.has(id);
|
|
14
|
+
}
|
|
15
|
+
select(id) {
|
|
16
|
+
this.data.add(id);
|
|
17
|
+
}
|
|
18
|
+
unselect(id) {
|
|
19
|
+
this.data.delete(id);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
class ExcludeManager {
|
|
23
|
+
constructor(model) {
|
|
24
|
+
this.data = void 0;
|
|
25
|
+
this.data = model.ids;
|
|
26
|
+
}
|
|
27
|
+
has(id) {
|
|
28
|
+
return !this.data.has(id);
|
|
29
|
+
}
|
|
30
|
+
select(id) {
|
|
31
|
+
this.data.delete(id);
|
|
32
|
+
}
|
|
33
|
+
unselect(id) {
|
|
34
|
+
this.data.add(id);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const createRowSelectionManager = model => {
|
|
38
|
+
if (model.type === 'include') {
|
|
39
|
+
return new IncludeManager(model);
|
|
40
|
+
}
|
|
41
|
+
return new ExcludeManager(model);
|
|
42
|
+
};
|
|
43
|
+
exports.createRowSelectionManager = createRowSelectionManager;
|
|
@@ -3,5 +3,7 @@ export type GridRowSelectionPropagation = {
|
|
|
3
3
|
descendants?: boolean;
|
|
4
4
|
parents?: boolean;
|
|
5
5
|
};
|
|
6
|
-
export type
|
|
7
|
-
|
|
6
|
+
export type GridRowSelectionModel = {
|
|
7
|
+
type: 'include' | 'exclude';
|
|
8
|
+
ids: Set<GridRowId>;
|
|
9
|
+
};
|
|
@@ -3,6 +3,11 @@ import type { GridSlotProps } from './gridSlotsComponentsProps';
|
|
|
3
3
|
import type { GridIconSlotsComponent } from './gridIconSlotsComponent';
|
|
4
4
|
export type { GridSlotProps } from './gridSlotsComponentsProps';
|
|
5
5
|
export interface GridBaseSlots {
|
|
6
|
+
/**
|
|
7
|
+
* The custom Autocomplete component used in the grid for both header and cells.
|
|
8
|
+
* @default Autocomplete
|
|
9
|
+
*/
|
|
10
|
+
baseAutocomplete: React.JSXElementConstructor<GridSlotProps['baseAutocomplete']>;
|
|
6
11
|
/**
|
|
7
12
|
* The custom Badge component used in the grid for both header and cells.
|
|
8
13
|
* @default Badge
|
|
@@ -18,11 +23,6 @@ export interface GridBaseSlots {
|
|
|
18
23
|
* @default CircularProgress
|
|
19
24
|
*/
|
|
20
25
|
baseCircularProgress: React.JSXElementConstructor<GridSlotProps['baseCircularProgress']>;
|
|
21
|
-
/**
|
|
22
|
-
* The custom Chip component used in the grid.
|
|
23
|
-
* @default Chip
|
|
24
|
-
*/
|
|
25
|
-
baseChip: React.JSXElementConstructor<GridSlotProps['baseChip']>;
|
|
26
26
|
/**
|
|
27
27
|
* The custom Divider component used in the grid.
|
|
28
28
|
* @default Divider
|
|
@@ -43,21 +43,11 @@ export interface GridBaseSlots {
|
|
|
43
43
|
* @default MenuItem
|
|
44
44
|
*/
|
|
45
45
|
baseMenuItem: React.JSXElementConstructor<GridSlotProps['baseMenuItem']>;
|
|
46
|
-
/**
|
|
47
|
-
* The custom InputAdornment component used in the grid.
|
|
48
|
-
* @default InputAdornment
|
|
49
|
-
*/
|
|
50
|
-
baseInputAdornment: React.JSXElementConstructor<GridSlotProps['baseInputAdornment']>;
|
|
51
46
|
/**
|
|
52
47
|
* The custom TextField component used in the grid.
|
|
53
48
|
* @default TextField
|
|
54
49
|
*/
|
|
55
50
|
baseTextField: React.JSXElementConstructor<GridSlotProps['baseTextField']>;
|
|
56
|
-
/**
|
|
57
|
-
* The custom FormControl component used in the grid.
|
|
58
|
-
* @default FormControl
|
|
59
|
-
*/
|
|
60
|
-
baseFormControl: React.JSXElementConstructor<GridSlotProps['baseFormControl']>;
|
|
61
51
|
/**
|
|
62
52
|
* The custom Select component used in the grid.
|
|
63
53
|
* @default Select
|
|
@@ -88,11 +78,6 @@ export interface GridBaseSlots {
|
|
|
88
78
|
* @default Popper
|
|
89
79
|
*/
|
|
90
80
|
basePopper: React.JSXElementConstructor<GridSlotProps['basePopper']>;
|
|
91
|
-
/**
|
|
92
|
-
* The custom InputLabel component used in the grid.
|
|
93
|
-
* @default InputLabel
|
|
94
|
-
*/
|
|
95
|
-
baseInputLabel: React.JSXElementConstructor<GridSlotProps['baseInputLabel']>;
|
|
96
81
|
/**
|
|
97
82
|
* The custom SelectOption component used in the grid.
|
|
98
83
|
* @default SelectOption
|
|
@@ -113,11 +98,6 @@ export interface GridBaseSlots {
|
|
|
113
98
|
* Grid components React prop interface containing all the overridable components.
|
|
114
99
|
*/
|
|
115
100
|
export interface GridSlotsComponent extends GridBaseSlots, GridIconSlotsComponent {
|
|
116
|
-
/**
|
|
117
|
-
* The custom Chip component used in the grid.
|
|
118
|
-
* @default Chip
|
|
119
|
-
*/
|
|
120
|
-
baseChip: React.JSXElementConstructor<GridSlotProps['baseChip']>;
|
|
121
101
|
/**
|
|
122
102
|
* Component rendered for the bottom container.
|
|
123
103
|
* @default GridBottomContainer
|
|
@@ -169,10 +149,9 @@ export interface GridSlotsComponent extends GridBaseSlots, GridIconSlotsComponen
|
|
|
169
149
|
*/
|
|
170
150
|
footerRowCount: React.JSXElementConstructor<GridSlotProps['footerRowCount']>;
|
|
171
151
|
/**
|
|
172
|
-
* Toolbar component rendered
|
|
173
|
-
* @default null
|
|
152
|
+
* Toolbar component rendered in the grid header.
|
|
174
153
|
*/
|
|
175
|
-
toolbar: React.JSXElementConstructor<GridSlotProps['toolbar']
|
|
154
|
+
toolbar: React.JSXElementConstructor<GridSlotProps['toolbar']>;
|
|
176
155
|
/**
|
|
177
156
|
* Pinned rows container.
|
|
178
157
|
* @ignore - do not document
|
|
@@ -4,13 +4,9 @@ import type { ButtonProps as MUIButtonProps } from '@mui/material/Button';
|
|
|
4
4
|
import type { CircularProgressProps as MUICircularProgressProps } from '@mui/material/CircularProgress';
|
|
5
5
|
import type { LinearProgressProps as MUILinearProgressProps } from '@mui/material/LinearProgress';
|
|
6
6
|
import type { MenuItemProps as MUIMenuItemProps } from '@mui/material/MenuItem';
|
|
7
|
-
import type { FormControlProps } from '@mui/material/FormControl';
|
|
8
7
|
import type { IconButtonProps as MUIIconButtonProps } from '@mui/material/IconButton';
|
|
9
|
-
import type { InputAdornmentProps } from '@mui/material/InputAdornment';
|
|
10
8
|
import type { TooltipProps as MUITooltipProps } from '@mui/material/Tooltip';
|
|
11
|
-
import type { InputLabelProps } from '@mui/material/InputLabel';
|
|
12
9
|
import type { TablePaginationProps } from '@mui/material/TablePagination';
|
|
13
|
-
import type { ChipProps } from '@mui/material/Chip';
|
|
14
10
|
import type { GridToolbarProps } from '../components/toolbar/GridToolbar';
|
|
15
11
|
import type { ColumnHeaderFilterIconButtonProps } from '../components/columnHeaders/GridColumnHeaderFilterIconButton';
|
|
16
12
|
import type { GridColumnMenuProps } from '../components/menu/columnMenu/GridColumnMenuProps';
|
|
@@ -30,9 +26,10 @@ import type { GridLoadingOverlayProps } from '../components/GridLoadingOverlay';
|
|
|
30
26
|
import type { GridRowCountProps } from '../components/GridRowCount';
|
|
31
27
|
import type { GridColumnHeaderSortIconProps } from '../components/columnHeaders/GridColumnHeaderSortIcon';
|
|
32
28
|
import type { GridBottomContainerProps } from '../components/virtualization/GridBottomContainer';
|
|
33
|
-
import type { BadgeProps, ButtonProps, CheckboxProps, CircularProgressProps, DividerProps, IconButtonProps, InputProps, LinearProgressProps, MenuListProps, MenuItemProps, PopperProps, SelectProps, SelectOptionProps, SkeletonProps, SwitchProps, TooltipProps, TextFieldProps } from './gridBaseSlots';
|
|
29
|
+
import type { AutocompleteProps, BadgeProps, ButtonProps, CheckboxProps, CircularProgressProps, DividerProps, IconButtonProps, InputProps, LinearProgressProps, MenuListProps, MenuItemProps, PopperProps, SelectProps, SelectOptionProps, SkeletonProps, SwitchProps, TooltipProps, TextFieldProps } from './gridBaseSlots';
|
|
34
30
|
type RootProps = React.HTMLAttributes<HTMLDivElement> & Record<`data-${string}`, string>;
|
|
35
31
|
type MainProps = React.HTMLAttributes<HTMLDivElement> & Record<`data-${string}`, string>;
|
|
32
|
+
export interface BaseAutocompletePropsOverrides {}
|
|
36
33
|
export interface BaseBadgePropsOverrides {}
|
|
37
34
|
export interface BaseCheckboxPropsOverrides {}
|
|
38
35
|
export interface BaseCircularProgressPropsOverrides {}
|
|
@@ -41,12 +38,10 @@ export interface BaseLinearProgressPropsOverrides {}
|
|
|
41
38
|
export interface BaseMenuListPropsOverrides {}
|
|
42
39
|
export interface BaseMenuItemPropsOverrides {}
|
|
43
40
|
export interface BaseTextFieldPropsOverrides {}
|
|
44
|
-
export interface BaseFormControlPropsOverrides {}
|
|
45
41
|
export interface BaseSelectPropsOverrides {}
|
|
46
42
|
export interface BaseSwitchPropsOverrides {}
|
|
47
43
|
export interface BaseButtonPropsOverrides {}
|
|
48
44
|
export interface BaseIconButtonPropsOverrides {}
|
|
49
|
-
export interface BaseInputAdornmentPropsOverrides {}
|
|
50
45
|
export interface BaseTooltipPropsOverrides {}
|
|
51
46
|
export interface BasePopperPropsOverrides {}
|
|
52
47
|
export interface BaseInputPropsOverrides {}
|
|
@@ -76,6 +71,7 @@ export interface SkeletonCellPropsOverrides {}
|
|
|
76
71
|
export interface RowPropsOverrides {}
|
|
77
72
|
export interface BottomContainerPropsOverrides {}
|
|
78
73
|
interface BaseSlotProps {
|
|
74
|
+
baseAutocomplete: AutocompleteProps<string, true, false, true> & BaseAutocompletePropsOverrides;
|
|
79
75
|
baseBadge: BadgeProps & BaseBadgePropsOverrides;
|
|
80
76
|
baseCheckbox: CheckboxProps & BaseCheckboxPropsOverrides;
|
|
81
77
|
baseCircularProgress: CircularProgressProps & BaseCircularProgressPropsOverrides;
|
|
@@ -84,19 +80,15 @@ interface BaseSlotProps {
|
|
|
84
80
|
baseMenuList: MenuListProps & BaseMenuListPropsOverrides;
|
|
85
81
|
baseMenuItem: MenuItemProps & BaseMenuItemPropsOverrides;
|
|
86
82
|
baseTextField: TextFieldProps & BaseTextFieldPropsOverrides;
|
|
87
|
-
baseFormControl: FormControlProps & BaseFormControlPropsOverrides;
|
|
88
83
|
baseSwitch: SwitchProps & BaseSwitchPropsOverrides;
|
|
89
84
|
baseButton: ButtonProps & BaseButtonPropsOverrides;
|
|
90
85
|
baseIconButton: IconButtonProps & BaseIconButtonPropsOverrides;
|
|
91
86
|
basePopper: PopperProps & BasePopperPropsOverrides;
|
|
92
87
|
baseTooltip: TooltipProps & BaseTooltipPropsOverrides;
|
|
93
88
|
baseInput: InputProps & BaseInputPropsOverrides;
|
|
94
|
-
baseInputLabel: InputLabelProps & BaseInputLabelPropsOverrides;
|
|
95
|
-
baseInputAdornment: InputAdornmentProps & BaseInputAdornmentPropsOverrides;
|
|
96
89
|
baseSelect: SelectProps & BaseSelectPropsOverrides;
|
|
97
90
|
baseSelectOption: SelectOptionProps & BaseSelectOptionPropsOverrides;
|
|
98
91
|
baseSkeleton: SkeletonProps & BaseSkeletonPropsOverrides;
|
|
99
|
-
baseChip: ChipProps & BaseChipPropsOverrides;
|
|
100
92
|
}
|
|
101
93
|
interface MaterialSlotProps {
|
|
102
94
|
baseBadge: MUIBadgeProps;
|
package/models/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from "./gridPaginationProps.js";
|
|
|
10
10
|
export * from "./gridRenderContextProps.js";
|
|
11
11
|
export * from "./gridRows.js";
|
|
12
12
|
export * from "./gridRowSelectionModel.js";
|
|
13
|
+
export { createRowSelectionManager } from "./gridRowSelectionManager.js";
|
|
13
14
|
export * from "./params/index.js";
|
|
14
15
|
export * from "./gridCellClass.js";
|
|
15
16
|
export * from "./gridCell.js";
|
|
@@ -22,7 +23,7 @@ export * from "./gridDensity.js";
|
|
|
22
23
|
export * from "./logger.js";
|
|
23
24
|
export * from "./muiEvent.js";
|
|
24
25
|
export * from "./events/index.js";
|
|
25
|
-
export
|
|
26
|
+
export type { GridSortCellParams, GridSortDirection, GridComparatorFn, GridSortModel } from './gridSortModel';
|
|
26
27
|
export * from "./gridColumnGrouping.js";
|
|
27
28
|
export type { GridDataSourceCache } from './gridDataSource';
|
|
28
29
|
export type { GridExportOptions, GridFileExportOptions, GridGetRowsToExportParams, GridCsvGetRowsToExportParams, GridPrintGetRowsToExportParams, GridCsvExportOptions, GridPrintExportOptions } from './gridExport';
|
package/models/index.js
CHANGED
|
@@ -3,9 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
createRowSelectionManager: true
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "createRowSelectionManager", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () {
|
|
12
|
+
return _gridRowSelectionManager.createRowSelectionManager;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
6
15
|
var _colDef = require("./colDef");
|
|
7
16
|
Object.keys(_colDef).forEach(function (key) {
|
|
8
17
|
if (key === "default" || key === "__esModule") return;
|
|
18
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
9
19
|
if (key in exports && exports[key] === _colDef[key]) return;
|
|
10
20
|
Object.defineProperty(exports, key, {
|
|
11
21
|
enumerable: true,
|
|
@@ -17,6 +27,7 @@ Object.keys(_colDef).forEach(function (key) {
|
|
|
17
27
|
var _cursorCoordinates = require("./cursorCoordinates");
|
|
18
28
|
Object.keys(_cursorCoordinates).forEach(function (key) {
|
|
19
29
|
if (key === "default" || key === "__esModule") return;
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
20
31
|
if (key in exports && exports[key] === _cursorCoordinates[key]) return;
|
|
21
32
|
Object.defineProperty(exports, key, {
|
|
22
33
|
enumerable: true,
|
|
@@ -28,6 +39,7 @@ Object.keys(_cursorCoordinates).forEach(function (key) {
|
|
|
28
39
|
var _elementSize = require("./elementSize");
|
|
29
40
|
Object.keys(_elementSize).forEach(function (key) {
|
|
30
41
|
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
31
43
|
if (key in exports && exports[key] === _elementSize[key]) return;
|
|
32
44
|
Object.defineProperty(exports, key, {
|
|
33
45
|
enumerable: true,
|
|
@@ -39,6 +51,7 @@ Object.keys(_elementSize).forEach(function (key) {
|
|
|
39
51
|
var _gridEditRowModel = require("./gridEditRowModel");
|
|
40
52
|
Object.keys(_gridEditRowModel).forEach(function (key) {
|
|
41
53
|
if (key === "default" || key === "__esModule") return;
|
|
54
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
42
55
|
if (key in exports && exports[key] === _gridEditRowModel[key]) return;
|
|
43
56
|
Object.defineProperty(exports, key, {
|
|
44
57
|
enumerable: true,
|
|
@@ -50,6 +63,7 @@ Object.keys(_gridEditRowModel).forEach(function (key) {
|
|
|
50
63
|
var _gridFeatureMode = require("./gridFeatureMode");
|
|
51
64
|
Object.keys(_gridFeatureMode).forEach(function (key) {
|
|
52
65
|
if (key === "default" || key === "__esModule") return;
|
|
66
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
53
67
|
if (key in exports && exports[key] === _gridFeatureMode[key]) return;
|
|
54
68
|
Object.defineProperty(exports, key, {
|
|
55
69
|
enumerable: true,
|
|
@@ -61,6 +75,7 @@ Object.keys(_gridFeatureMode).forEach(function (key) {
|
|
|
61
75
|
var _gridFilterItem = require("./gridFilterItem");
|
|
62
76
|
Object.keys(_gridFilterItem).forEach(function (key) {
|
|
63
77
|
if (key === "default" || key === "__esModule") return;
|
|
78
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
64
79
|
if (key in exports && exports[key] === _gridFilterItem[key]) return;
|
|
65
80
|
Object.defineProperty(exports, key, {
|
|
66
81
|
enumerable: true,
|
|
@@ -72,6 +87,7 @@ Object.keys(_gridFilterItem).forEach(function (key) {
|
|
|
72
87
|
var _gridFilterModel = require("./gridFilterModel");
|
|
73
88
|
Object.keys(_gridFilterModel).forEach(function (key) {
|
|
74
89
|
if (key === "default" || key === "__esModule") return;
|
|
90
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
75
91
|
if (key in exports && exports[key] === _gridFilterModel[key]) return;
|
|
76
92
|
Object.defineProperty(exports, key, {
|
|
77
93
|
enumerable: true,
|
|
@@ -83,6 +99,7 @@ Object.keys(_gridFilterModel).forEach(function (key) {
|
|
|
83
99
|
var _gridPaginationProps = require("./gridPaginationProps");
|
|
84
100
|
Object.keys(_gridPaginationProps).forEach(function (key) {
|
|
85
101
|
if (key === "default" || key === "__esModule") return;
|
|
102
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
86
103
|
if (key in exports && exports[key] === _gridPaginationProps[key]) return;
|
|
87
104
|
Object.defineProperty(exports, key, {
|
|
88
105
|
enumerable: true,
|
|
@@ -94,6 +111,7 @@ Object.keys(_gridPaginationProps).forEach(function (key) {
|
|
|
94
111
|
var _gridRenderContextProps = require("./gridRenderContextProps");
|
|
95
112
|
Object.keys(_gridRenderContextProps).forEach(function (key) {
|
|
96
113
|
if (key === "default" || key === "__esModule") return;
|
|
114
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
97
115
|
if (key in exports && exports[key] === _gridRenderContextProps[key]) return;
|
|
98
116
|
Object.defineProperty(exports, key, {
|
|
99
117
|
enumerable: true,
|
|
@@ -105,6 +123,7 @@ Object.keys(_gridRenderContextProps).forEach(function (key) {
|
|
|
105
123
|
var _gridRows = require("./gridRows");
|
|
106
124
|
Object.keys(_gridRows).forEach(function (key) {
|
|
107
125
|
if (key === "default" || key === "__esModule") return;
|
|
126
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
108
127
|
if (key in exports && exports[key] === _gridRows[key]) return;
|
|
109
128
|
Object.defineProperty(exports, key, {
|
|
110
129
|
enumerable: true,
|
|
@@ -116,6 +135,7 @@ Object.keys(_gridRows).forEach(function (key) {
|
|
|
116
135
|
var _gridRowSelectionModel = require("./gridRowSelectionModel");
|
|
117
136
|
Object.keys(_gridRowSelectionModel).forEach(function (key) {
|
|
118
137
|
if (key === "default" || key === "__esModule") return;
|
|
138
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
119
139
|
if (key in exports && exports[key] === _gridRowSelectionModel[key]) return;
|
|
120
140
|
Object.defineProperty(exports, key, {
|
|
121
141
|
enumerable: true,
|
|
@@ -124,9 +144,11 @@ Object.keys(_gridRowSelectionModel).forEach(function (key) {
|
|
|
124
144
|
}
|
|
125
145
|
});
|
|
126
146
|
});
|
|
147
|
+
var _gridRowSelectionManager = require("./gridRowSelectionManager");
|
|
127
148
|
var _params = require("./params");
|
|
128
149
|
Object.keys(_params).forEach(function (key) {
|
|
129
150
|
if (key === "default" || key === "__esModule") return;
|
|
151
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
130
152
|
if (key in exports && exports[key] === _params[key]) return;
|
|
131
153
|
Object.defineProperty(exports, key, {
|
|
132
154
|
enumerable: true,
|
|
@@ -138,6 +160,7 @@ Object.keys(_params).forEach(function (key) {
|
|
|
138
160
|
var _gridCellClass = require("./gridCellClass");
|
|
139
161
|
Object.keys(_gridCellClass).forEach(function (key) {
|
|
140
162
|
if (key === "default" || key === "__esModule") return;
|
|
163
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
141
164
|
if (key in exports && exports[key] === _gridCellClass[key]) return;
|
|
142
165
|
Object.defineProperty(exports, key, {
|
|
143
166
|
enumerable: true,
|
|
@@ -149,6 +172,7 @@ Object.keys(_gridCellClass).forEach(function (key) {
|
|
|
149
172
|
var _gridCell = require("./gridCell");
|
|
150
173
|
Object.keys(_gridCell).forEach(function (key) {
|
|
151
174
|
if (key === "default" || key === "__esModule") return;
|
|
175
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
152
176
|
if (key in exports && exports[key] === _gridCell[key]) return;
|
|
153
177
|
Object.defineProperty(exports, key, {
|
|
154
178
|
enumerable: true,
|
|
@@ -160,6 +184,7 @@ Object.keys(_gridCell).forEach(function (key) {
|
|
|
160
184
|
var _gridColumnHeaderClass = require("./gridColumnHeaderClass");
|
|
161
185
|
Object.keys(_gridColumnHeaderClass).forEach(function (key) {
|
|
162
186
|
if (key === "default" || key === "__esModule") return;
|
|
187
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
163
188
|
if (key in exports && exports[key] === _gridColumnHeaderClass[key]) return;
|
|
164
189
|
Object.defineProperty(exports, key, {
|
|
165
190
|
enumerable: true,
|
|
@@ -171,6 +196,7 @@ Object.keys(_gridColumnHeaderClass).forEach(function (key) {
|
|
|
171
196
|
var _api = require("./api");
|
|
172
197
|
Object.keys(_api).forEach(function (key) {
|
|
173
198
|
if (key === "default" || key === "__esModule") return;
|
|
199
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
174
200
|
if (key in exports && exports[key] === _api[key]) return;
|
|
175
201
|
Object.defineProperty(exports, key, {
|
|
176
202
|
enumerable: true,
|
|
@@ -182,6 +208,7 @@ Object.keys(_api).forEach(function (key) {
|
|
|
182
208
|
var _gridIconSlotsComponent = require("./gridIconSlotsComponent");
|
|
183
209
|
Object.keys(_gridIconSlotsComponent).forEach(function (key) {
|
|
184
210
|
if (key === "default" || key === "__esModule") return;
|
|
211
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
185
212
|
if (key in exports && exports[key] === _gridIconSlotsComponent[key]) return;
|
|
186
213
|
Object.defineProperty(exports, key, {
|
|
187
214
|
enumerable: true,
|
|
@@ -193,6 +220,7 @@ Object.keys(_gridIconSlotsComponent).forEach(function (key) {
|
|
|
193
220
|
var _gridSlotsComponentsProps = require("./gridSlotsComponentsProps");
|
|
194
221
|
Object.keys(_gridSlotsComponentsProps).forEach(function (key) {
|
|
195
222
|
if (key === "default" || key === "__esModule") return;
|
|
223
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
196
224
|
if (key in exports && exports[key] === _gridSlotsComponentsProps[key]) return;
|
|
197
225
|
Object.defineProperty(exports, key, {
|
|
198
226
|
enumerable: true,
|
|
@@ -204,6 +232,7 @@ Object.keys(_gridSlotsComponentsProps).forEach(function (key) {
|
|
|
204
232
|
var _gridDensity = require("./gridDensity");
|
|
205
233
|
Object.keys(_gridDensity).forEach(function (key) {
|
|
206
234
|
if (key === "default" || key === "__esModule") return;
|
|
235
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
207
236
|
if (key in exports && exports[key] === _gridDensity[key]) return;
|
|
208
237
|
Object.defineProperty(exports, key, {
|
|
209
238
|
enumerable: true,
|
|
@@ -215,6 +244,7 @@ Object.keys(_gridDensity).forEach(function (key) {
|
|
|
215
244
|
var _logger = require("./logger");
|
|
216
245
|
Object.keys(_logger).forEach(function (key) {
|
|
217
246
|
if (key === "default" || key === "__esModule") return;
|
|
247
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
218
248
|
if (key in exports && exports[key] === _logger[key]) return;
|
|
219
249
|
Object.defineProperty(exports, key, {
|
|
220
250
|
enumerable: true,
|
|
@@ -226,6 +256,7 @@ Object.keys(_logger).forEach(function (key) {
|
|
|
226
256
|
var _muiEvent = require("./muiEvent");
|
|
227
257
|
Object.keys(_muiEvent).forEach(function (key) {
|
|
228
258
|
if (key === "default" || key === "__esModule") return;
|
|
259
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
229
260
|
if (key in exports && exports[key] === _muiEvent[key]) return;
|
|
230
261
|
Object.defineProperty(exports, key, {
|
|
231
262
|
enumerable: true,
|
|
@@ -237,6 +268,7 @@ Object.keys(_muiEvent).forEach(function (key) {
|
|
|
237
268
|
var _events = require("./events");
|
|
238
269
|
Object.keys(_events).forEach(function (key) {
|
|
239
270
|
if (key === "default" || key === "__esModule") return;
|
|
271
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
240
272
|
if (key in exports && exports[key] === _events[key]) return;
|
|
241
273
|
Object.defineProperty(exports, key, {
|
|
242
274
|
enumerable: true,
|
|
@@ -245,20 +277,10 @@ Object.keys(_events).forEach(function (key) {
|
|
|
245
277
|
}
|
|
246
278
|
});
|
|
247
279
|
});
|
|
248
|
-
var _gridSortModel = require("./gridSortModel");
|
|
249
|
-
Object.keys(_gridSortModel).forEach(function (key) {
|
|
250
|
-
if (key === "default" || key === "__esModule") return;
|
|
251
|
-
if (key in exports && exports[key] === _gridSortModel[key]) return;
|
|
252
|
-
Object.defineProperty(exports, key, {
|
|
253
|
-
enumerable: true,
|
|
254
|
-
get: function () {
|
|
255
|
-
return _gridSortModel[key];
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
});
|
|
259
280
|
var _gridColumnGrouping = require("./gridColumnGrouping");
|
|
260
281
|
Object.keys(_gridColumnGrouping).forEach(function (key) {
|
|
261
282
|
if (key === "default" || key === "__esModule") return;
|
|
283
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
262
284
|
if (key in exports && exports[key] === _gridColumnGrouping[key]) return;
|
|
263
285
|
Object.defineProperty(exports, key, {
|
|
264
286
|
enumerable: true,
|
|
@@ -270,6 +292,7 @@ Object.keys(_gridColumnGrouping).forEach(function (key) {
|
|
|
270
292
|
var _gridFilterOperator = require("./gridFilterOperator");
|
|
271
293
|
Object.keys(_gridFilterOperator).forEach(function (key) {
|
|
272
294
|
if (key === "default" || key === "__esModule") return;
|
|
295
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
273
296
|
if (key in exports && exports[key] === _gridFilterOperator[key]) return;
|
|
274
297
|
Object.defineProperty(exports, key, {
|
|
275
298
|
enumerable: true,
|
|
@@ -18,7 +18,7 @@ import { GridClasses } from "../../constants/gridClasses.js";
|
|
|
18
18
|
import { GridRowHeightParams, GridRowHeightReturnValue, GridRowParams, GridRowSpacing, GridRowSpacingParams, GridRowClassNameParams } from "../params/index.js";
|
|
19
19
|
import { GridCellParams } from "../params/gridCellParams.js";
|
|
20
20
|
import { GridFilterModel } from "../gridFilterModel.js";
|
|
21
|
-
import {
|
|
21
|
+
import { GridRowSelectionModel } from "../gridRowSelectionModel.js";
|
|
22
22
|
import { GridInitialStateCommunity } from "../gridStateCommunity.js";
|
|
23
23
|
import { GridSlotsComponentsProps } from "../gridSlotsComponentsProps.js";
|
|
24
24
|
import { GridColumnVisibilityModel } from "../../hooks/features/columns/gridColumnsInterfaces.js";
|
|
@@ -26,8 +26,9 @@ import { GridCellModesModel, GridRowModesModel } from "../api/gridEditingApi.js"
|
|
|
26
26
|
import { GridColumnGroupingModel } from "../gridColumnGrouping.js";
|
|
27
27
|
import { GridPaginationMeta, GridPaginationModel } from "../gridPaginationProps.js";
|
|
28
28
|
import type { GridAutosizeOptions } from '../../hooks/features/columnResize';
|
|
29
|
-
import type { GridDataSource, GridDataSourceCache
|
|
29
|
+
import type { GridDataSource, GridDataSourceCache } from '../gridDataSource';
|
|
30
30
|
import type { GridRowSelectionPropagation } from '../gridRowSelectionModel';
|
|
31
|
+
import type { GridGetRowsError, GridUpdateRowError } from '../../hooks/features/dataSource/gridDataSourceError';
|
|
31
32
|
export interface GridExperimentalFeatures {
|
|
32
33
|
/**
|
|
33
34
|
* Emits a warning if the cell receives focus without also syncing the focus state.
|
|
@@ -291,6 +292,11 @@ export interface DataGridPropsWithDefaultValues<R extends GridValidRowModel = an
|
|
|
291
292
|
* @default false
|
|
292
293
|
*/
|
|
293
294
|
showColumnVerticalBorder: boolean;
|
|
295
|
+
/**
|
|
296
|
+
* If `true`, the toolbar is displayed.
|
|
297
|
+
* @default false
|
|
298
|
+
*/
|
|
299
|
+
showToolbar: boolean;
|
|
294
300
|
/**
|
|
295
301
|
* The order of the sorting sequence.
|
|
296
302
|
* @default ['asc', 'desc', null]
|
|
@@ -381,6 +387,14 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
|
|
|
381
387
|
* Override or extend the styles applied to the component.
|
|
382
388
|
*/
|
|
383
389
|
classes?: Partial<GridClasses>;
|
|
390
|
+
/**
|
|
391
|
+
* The data source object.
|
|
392
|
+
*/
|
|
393
|
+
dataSource?: GridDataSource;
|
|
394
|
+
/**
|
|
395
|
+
* Data source cache object.
|
|
396
|
+
*/
|
|
397
|
+
dataSourceCache?: GridDataSourceCache | null;
|
|
384
398
|
/**
|
|
385
399
|
* Set the density of the Data Grid.
|
|
386
400
|
* @default "standard"
|
|
@@ -464,6 +478,11 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
|
|
|
464
478
|
* @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
|
|
465
479
|
*/
|
|
466
480
|
onCellEditStop?: GridEventListener<'cellEditStop'>;
|
|
481
|
+
/**
|
|
482
|
+
* Callback fired when a data source request fails.
|
|
483
|
+
* @param {GridGetRowsError | GridUpdateRowError} error The data source error object.
|
|
484
|
+
*/
|
|
485
|
+
onDataSourceError?: (error: GridGetRowsError | GridUpdateRowError) => void;
|
|
467
486
|
/**
|
|
468
487
|
* Callback fired when the row turns to edit mode.
|
|
469
488
|
* @param {GridRowParams} params With all properties from [[GridRowParams]].
|
|
@@ -673,7 +692,7 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
|
|
|
673
692
|
/**
|
|
674
693
|
* Sets the row selection model of the Data Grid.
|
|
675
694
|
*/
|
|
676
|
-
rowSelectionModel?:
|
|
695
|
+
rowSelectionModel?: GridRowSelectionModel;
|
|
677
696
|
/**
|
|
678
697
|
* Callback fired when the selection state of one or multiple rows changes.
|
|
679
698
|
* @param {GridRowSelectionModel} rowSelectionModel With all the row ids [[GridSelectionModel]].
|
|
@@ -787,20 +806,6 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
|
|
|
787
806
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
788
807
|
*/
|
|
789
808
|
onColumnWidthChange?: GridEventListener<'columnWidthChange'>;
|
|
790
|
-
/**
|
|
791
|
-
* The data source object.
|
|
792
|
-
*/
|
|
793
|
-
unstable_dataSource?: GridDataSource;
|
|
794
|
-
/**
|
|
795
|
-
* Data source cache object.
|
|
796
|
-
*/
|
|
797
|
-
unstable_dataSourceCache?: GridDataSourceCache | null;
|
|
798
|
-
/**
|
|
799
|
-
* Callback fired when the data source request fails.
|
|
800
|
-
* @param {Error} error The error object.
|
|
801
|
-
* @param {GridGetRowsParams} params With all properties from [[GridGetRowsParams]].
|
|
802
|
-
*/
|
|
803
|
-
unstable_onDataSourceError?: (error: Error, params: GridGetRowsParams) => void;
|
|
804
809
|
}
|
|
805
810
|
export interface DataGridProSharedPropsWithDefaultValue {
|
|
806
811
|
/**
|
|
@@ -11,9 +11,11 @@ import { GridContextProvider } from "../context/GridContextProvider.js";
|
|
|
11
11
|
import { useDataGridComponent } from "./useDataGridComponent.js";
|
|
12
12
|
import { useDataGridProps } from "./useDataGridProps.js";
|
|
13
13
|
import { propValidatorsDataGrid, validateProps } from "../internals/utils/propValidation.js";
|
|
14
|
+
import { useMaterialCSSVariables } from "../material/variables.js";
|
|
14
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
16
|
const configuration = {
|
|
16
17
|
hooks: {
|
|
18
|
+
useCSSVariables: useMaterialCSSVariables,
|
|
17
19
|
useGridAriaAttributes,
|
|
18
20
|
useGridRowAriaAttributes
|
|
19
21
|
}
|
|
@@ -138,6 +140,21 @@ DataGridRaw.propTypes = {
|
|
|
138
140
|
* If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
|
|
139
141
|
*/
|
|
140
142
|
columnVisibilityModel: PropTypes.object,
|
|
143
|
+
/**
|
|
144
|
+
* The data source object.
|
|
145
|
+
*/
|
|
146
|
+
dataSource: PropTypes.shape({
|
|
147
|
+
getRows: PropTypes.func.isRequired,
|
|
148
|
+
updateRow: PropTypes.func
|
|
149
|
+
}),
|
|
150
|
+
/**
|
|
151
|
+
* Data source cache object.
|
|
152
|
+
*/
|
|
153
|
+
dataSourceCache: PropTypes.shape({
|
|
154
|
+
clear: PropTypes.func.isRequired,
|
|
155
|
+
get: PropTypes.func.isRequired,
|
|
156
|
+
set: PropTypes.func.isRequired
|
|
157
|
+
}),
|
|
141
158
|
/**
|
|
142
159
|
* Set the density of the Data Grid.
|
|
143
160
|
* @default "standard"
|
|
@@ -490,6 +507,11 @@ DataGridRaw.propTypes = {
|
|
|
490
507
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
491
508
|
*/
|
|
492
509
|
onColumnWidthChange: PropTypes.func,
|
|
510
|
+
/**
|
|
511
|
+
* Callback fired when a data source request fails.
|
|
512
|
+
* @param {GridGetRowsError | GridUpdateRowError} error The data source error object.
|
|
513
|
+
*/
|
|
514
|
+
onDataSourceError: PropTypes.func,
|
|
493
515
|
/**
|
|
494
516
|
* Callback fired when the density changes.
|
|
495
517
|
* @param {GridDensity} density New density value.
|
|
@@ -687,7 +709,10 @@ DataGridRaw.propTypes = {
|
|
|
687
709
|
/**
|
|
688
710
|
* Sets the row selection model of the Data Grid.
|
|
689
711
|
*/
|
|
690
|
-
rowSelectionModel: PropTypes
|
|
712
|
+
rowSelectionModel: PropTypes /* @typescript-to-proptypes-ignore */.shape({
|
|
713
|
+
ids: PropTypes.instanceOf(Set).isRequired,
|
|
714
|
+
type: PropTypes.oneOf(['exclude', 'include']).isRequired
|
|
715
|
+
}),
|
|
691
716
|
/**
|
|
692
717
|
* Sets the type of space between rows added by `getRowSpacing`.
|
|
693
718
|
* @default "margin"
|
|
@@ -712,6 +737,11 @@ DataGridRaw.propTypes = {
|
|
|
712
737
|
* @default false
|
|
713
738
|
*/
|
|
714
739
|
showColumnVerticalBorder: PropTypes.bool,
|
|
740
|
+
/**
|
|
741
|
+
* If `true`, the toolbar is displayed.
|
|
742
|
+
* @default false
|
|
743
|
+
*/
|
|
744
|
+
showToolbar: PropTypes.bool,
|
|
715
745
|
/**
|
|
716
746
|
* Overridable components props dynamically passed to the component at rendering.
|
|
717
747
|
*/
|
|
@@ -743,27 +773,6 @@ DataGridRaw.propTypes = {
|
|
|
743
773
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
744
774
|
*/
|
|
745
775
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
746
|
-
/**
|
|
747
|
-
* The data source object.
|
|
748
|
-
*/
|
|
749
|
-
unstable_dataSource: PropTypes.shape({
|
|
750
|
-
getRows: PropTypes.func.isRequired,
|
|
751
|
-
updateRow: PropTypes.func
|
|
752
|
-
}),
|
|
753
|
-
/**
|
|
754
|
-
* Data source cache object.
|
|
755
|
-
*/
|
|
756
|
-
unstable_dataSourceCache: PropTypes.shape({
|
|
757
|
-
clear: PropTypes.func.isRequired,
|
|
758
|
-
get: PropTypes.func.isRequired,
|
|
759
|
-
set: PropTypes.func.isRequired
|
|
760
|
-
}),
|
|
761
|
-
/**
|
|
762
|
-
* Callback fired when the data source request fails.
|
|
763
|
-
* @param {Error} error The error object.
|
|
764
|
-
* @param {GridGetRowsParams} params With all properties from [[GridGetRowsParams]].
|
|
765
|
-
*/
|
|
766
|
-
unstable_onDataSourceError: PropTypes.func,
|
|
767
776
|
/**
|
|
768
777
|
* If `true`, the Data Grid enables column virtualization when `getRowHeight` is set to `() => 'auto'`.
|
|
769
778
|
* By default, column virtualization is disabled when dynamic row height is enabled to measure the row height correctly.
|
|
@@ -17,7 +17,7 @@ const DATA_GRID_FORCED_PROPS = {
|
|
|
17
17
|
signature: 'DataGrid',
|
|
18
18
|
unstable_listView: false
|
|
19
19
|
};
|
|
20
|
-
const getDataGridForcedProps = themedProps => _extends({}, DATA_GRID_FORCED_PROPS, themedProps.
|
|
20
|
+
const getDataGridForcedProps = themedProps => _extends({}, DATA_GRID_FORCED_PROPS, themedProps.dataSource ? {
|
|
21
21
|
filterMode: 'server',
|
|
22
22
|
sortingMode: 'server',
|
|
23
23
|
paginationMode: 'server'
|
|
@@ -33,7 +33,7 @@ export const GRID_BOOLEAN_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
|
|
|
33
33
|
sortComparator: gridNumberComparator,
|
|
34
34
|
valueFormatter: gridBooleanFormatter,
|
|
35
35
|
filterOperators: getGridBooleanOperators(),
|
|
36
|
-
getApplyQuickFilterFn:
|
|
36
|
+
getApplyQuickFilterFn: () => null,
|
|
37
37
|
// @ts-ignore
|
|
38
38
|
aggregable: false,
|
|
39
39
|
// @ts-ignore
|