@mui/x-data-grid-pro 8.0.0-beta.3 → 8.1.0
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 +388 -96
- package/DataGridPro/DataGridPro.js +8 -7
- package/DataGridPro/useDataGridProComponent.d.ts +2 -2
- package/DataGridPro/useDataGridProComponent.js +2 -3
- package/components/GridDetailPanel.js +1 -2
- package/components/headerFiltering/GridHeaderFilterMenu.js +2 -2
- package/esm/DataGridPro/DataGridPro.js +9 -8
- package/esm/DataGridPro/useDataGridProComponent.d.ts +2 -2
- package/esm/DataGridPro/useDataGridProComponent.js +2 -3
- package/esm/components/GridDetailPanel.js +1 -2
- package/esm/components/headerFiltering/GridHeaderFilterMenu.js +2 -2
- package/esm/hooks/features/dataSource/useGridDataSourceBasePro.d.ts +3 -6
- package/esm/hooks/features/dataSource/useGridDataSourceBasePro.js +36 -8
- package/esm/hooks/features/dataSource/utils.d.ts +3 -2
- package/esm/hooks/features/dataSource/utils.js +13 -1
- package/esm/hooks/features/detailPanel/useGridDetailPanel.js +4 -3
- package/esm/hooks/features/lazyLoader/useGridLazyLoader.d.ts +1 -1
- package/esm/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.d.ts +1 -1
- package/esm/hooks/features/rowPinning/useGridRowPinning.d.ts +1 -1
- package/esm/hooks/features/serverSideLazyLoader/useGridDataSourceLazyLoader.js +38 -1
- package/esm/index.js +1 -1
- package/esm/internals/index.d.ts +1 -0
- package/esm/internals/index.js +1 -0
- package/esm/material/icons.d.ts +3 -6
- package/esm/material/icons.js +1 -1
- package/esm/material/index.d.ts +2 -2
- package/esm/models/dataGridProProps.d.ts +3 -3
- package/esm/models/gridProIconSlotsComponent.d.ts +6 -3
- package/esm/package.json +1 -1
- package/hooks/features/dataSource/useGridDataSourceBasePro.d.ts +3 -6
- package/hooks/features/dataSource/useGridDataSourceBasePro.js +34 -6
- package/hooks/features/dataSource/utils.d.ts +3 -2
- package/hooks/features/dataSource/utils.js +15 -2
- package/hooks/features/detailPanel/useGridDetailPanel.js +4 -3
- package/hooks/features/lazyLoader/useGridLazyLoader.d.ts +1 -1
- package/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.d.ts +1 -1
- package/hooks/features/rowPinning/useGridRowPinning.d.ts +1 -1
- package/hooks/features/serverSideLazyLoader/useGridDataSourceLazyLoader.js +37 -0
- package/index.js +1 -1
- package/internals/index.d.ts +1 -0
- package/internals/index.js +15 -7
- package/material/icons.d.ts +3 -6
- package/material/icons.js +3 -3
- package/material/index.d.ts +2 -2
- package/models/dataGridProProps.d.ts +3 -3
- package/models/gridProIconSlotsComponent.d.ts +6 -3
- package/package.json +8 -14
- package/esm/utils/releaseInfo.d.ts +0 -1
- package/esm/utils/releaseInfo.js +0 -13
- package/modern/DataGridPro/DataGrid.d.ts +0 -8
- package/modern/DataGridPro/DataGrid.js +0 -19
- package/modern/DataGridPro/DataGridPro.d.ts +0 -16
- package/modern/DataGridPro/DataGridPro.js +0 -1020
- package/modern/DataGridPro/index.d.ts +0 -3
- package/modern/DataGridPro/index.js +0 -3
- package/modern/DataGridPro/useDataGridProComponent.d.ts +0 -4
- package/modern/DataGridPro/useDataGridProComponent.js +0 -105
- package/modern/DataGridPro/useDataGridProProps.d.ts +0 -7
- package/modern/DataGridPro/useDataGridProProps.js +0 -54
- package/modern/components/GridColumnHeaders.d.ts +0 -5
- package/modern/components/GridColumnHeaders.js +0 -92
- package/modern/components/GridColumnMenuPinningItem.d.ts +0 -7
- package/modern/components/GridColumnMenuPinningItem.js +0 -77
- package/modern/components/GridDataSourceTreeDataGroupingCell.d.ts +0 -12
- package/modern/components/GridDataSourceTreeDataGroupingCell.js +0 -107
- package/modern/components/GridDetailPanel.d.ts +0 -14
- package/modern/components/GridDetailPanel.js +0 -53
- package/modern/components/GridDetailPanelToggleCell.d.ts +0 -7
- package/modern/components/GridDetailPanelToggleCell.js +0 -121
- package/modern/components/GridDetailPanels.d.ts +0 -3
- package/modern/components/GridDetailPanels.js +0 -67
- package/modern/components/GridPinnedRows.d.ts +0 -6
- package/modern/components/GridPinnedRows.js +0 -40
- package/modern/components/GridProColumnMenu.d.ts +0 -24
- package/modern/components/GridProColumnMenu.js +0 -21
- package/modern/components/GridRowReorderCell.d.ts +0 -8
- package/modern/components/GridRowReorderCell.js +0 -140
- package/modern/components/GridTreeDataGroupingCell.d.ts +0 -15
- package/modern/components/GridTreeDataGroupingCell.js +0 -133
- package/modern/components/headerFiltering/GridHeaderFilterCell.d.ts +0 -26
- package/modern/components/headerFiltering/GridHeaderFilterCell.js +0 -362
- package/modern/components/headerFiltering/GridHeaderFilterClearButton.d.ts +0 -6
- package/modern/components/headerFiltering/GridHeaderFilterClearButton.js +0 -17
- package/modern/components/headerFiltering/GridHeaderFilterMenu.d.ts +0 -30
- package/modern/components/headerFiltering/GridHeaderFilterMenu.js +0 -137
- package/modern/components/headerFiltering/GridHeaderFilterMenuContainer.d.ts +0 -17
- package/modern/components/headerFiltering/GridHeaderFilterMenuContainer.js +0 -138
- package/modern/components/headerFiltering/index.d.ts +0 -3
- package/modern/components/headerFiltering/index.js +0 -3
- package/modern/components/index.d.ts +0 -6
- package/modern/components/index.js +0 -7
- package/modern/components/reexports.d.ts +0 -1
- package/modern/components/reexports.js +0 -1
- package/modern/constants/dataGridProDefaultSlotsComponents.d.ts +0 -2
- package/modern/constants/dataGridProDefaultSlotsComponents.js +0 -17
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +0 -12
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +0 -143
- package/modern/hooks/features/columnPinning/gridColumnPinningInterface.d.ts +0 -40
- package/modern/hooks/features/columnPinning/gridColumnPinningInterface.js +0 -1
- package/modern/hooks/features/columnPinning/index.d.ts +0 -1
- package/modern/hooks/features/columnPinning/index.js +0 -1
- package/modern/hooks/features/columnPinning/useGridColumnPinning.d.ts +0 -6
- package/modern/hooks/features/columnPinning/useGridColumnPinning.js +0 -228
- package/modern/hooks/features/columnPinning/useGridColumnPinningPreProcessors.d.ts +0 -4
- package/modern/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +0 -105
- package/modern/hooks/features/columnReorder/columnReorderInterfaces.d.ts +0 -6
- package/modern/hooks/features/columnReorder/columnReorderInterfaces.js +0 -1
- package/modern/hooks/features/columnReorder/columnReorderSelector.d.ts +0 -3
- package/modern/hooks/features/columnReorder/columnReorderSelector.js +0 -3
- package/modern/hooks/features/columnReorder/index.d.ts +0 -2
- package/modern/hooks/features/columnReorder/index.js +0 -2
- package/modern/hooks/features/columnReorder/useGridColumnReorder.d.ts +0 -9
- package/modern/hooks/features/columnReorder/useGridColumnReorder.js +0 -242
- package/modern/hooks/features/dataSource/gridDataSourceSelector.d.ts +0 -7
- package/modern/hooks/features/dataSource/gridDataSourceSelector.js +0 -6
- package/modern/hooks/features/dataSource/models.d.ts +0 -75
- package/modern/hooks/features/dataSource/models.js +0 -1
- package/modern/hooks/features/dataSource/useGridDataSourceBasePro.d.ts +0 -33
- package/modern/hooks/features/dataSource/useGridDataSourceBasePro.js +0 -179
- package/modern/hooks/features/dataSource/useGridDataSourcePro.d.ts +0 -6
- package/modern/hooks/features/dataSource/useGridDataSourcePro.js +0 -35
- package/modern/hooks/features/dataSource/utils.d.ts +0 -29
- package/modern/hooks/features/dataSource/utils.js +0 -82
- package/modern/hooks/features/detailPanel/gridDetailPanelInterface.d.ts +0 -41
- package/modern/hooks/features/detailPanel/gridDetailPanelInterface.js +0 -1
- package/modern/hooks/features/detailPanel/gridDetailPanelSelector.d.ts +0 -14
- package/modern/hooks/features/detailPanel/gridDetailPanelSelector.js +0 -5
- package/modern/hooks/features/detailPanel/gridDetailPanelToggleColDef.d.ts +0 -4
- package/modern/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +0 -34
- package/modern/hooks/features/detailPanel/index.d.ts +0 -3
- package/modern/hooks/features/detailPanel/index.js +0 -3
- package/modern/hooks/features/detailPanel/useGridDetailPanel.d.ts +0 -6
- package/modern/hooks/features/detailPanel/useGridDetailPanel.js +0 -191
- package/modern/hooks/features/detailPanel/useGridDetailPanelPreProcessors.d.ts +0 -4
- package/modern/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +0 -43
- package/modern/hooks/features/index.d.ts +0 -7
- package/modern/hooks/features/index.js +0 -8
- package/modern/hooks/features/infiniteLoader/useGridInfiniteLoader.d.ts +0 -9
- package/modern/hooks/features/infiniteLoader/useGridInfiniteLoader.js +0 -104
- package/modern/hooks/features/lazyLoader/useGridLazyLoader.d.ts +0 -10
- package/modern/hooks/features/lazyLoader/useGridLazyLoader.js +0 -90
- package/modern/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.d.ts +0 -5
- package/modern/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js +0 -34
- package/modern/hooks/features/lazyLoader/utils.d.ts +0 -18
- package/modern/hooks/features/lazyLoader/utils.js +0 -34
- package/modern/hooks/features/rowPinning/gridRowPinningInterface.d.ts +0 -17
- package/modern/hooks/features/rowPinning/gridRowPinningInterface.js +0 -1
- package/modern/hooks/features/rowPinning/gridRowPinningSelector.d.ts +0 -1
- package/modern/hooks/features/rowPinning/gridRowPinningSelector.js +0 -1
- package/modern/hooks/features/rowPinning/index.d.ts +0 -1
- package/modern/hooks/features/rowPinning/index.js +0 -1
- package/modern/hooks/features/rowPinning/useGridRowPinning.d.ts +0 -6
- package/modern/hooks/features/rowPinning/useGridRowPinning.js +0 -52
- package/modern/hooks/features/rowPinning/useGridRowPinningPreProcessors.d.ts +0 -38
- package/modern/hooks/features/rowPinning/useGridRowPinningPreProcessors.js +0 -119
- package/modern/hooks/features/rowReorder/gridRowReorderColDef.d.ts +0 -2
- package/modern/hooks/features/rowReorder/gridRowReorderColDef.js +0 -20
- package/modern/hooks/features/rowReorder/index.d.ts +0 -1
- package/modern/hooks/features/rowReorder/index.js +0 -1
- package/modern/hooks/features/rowReorder/useGridRowReorder.d.ts +0 -8
- package/modern/hooks/features/rowReorder/useGridRowReorder.js +0 -141
- package/modern/hooks/features/rowReorder/useGridRowReorderPreProcessors.d.ts +0 -4
- package/modern/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +0 -46
- package/modern/hooks/features/rows/index.d.ts +0 -1
- package/modern/hooks/features/rows/index.js +0 -1
- package/modern/hooks/features/rows/useGridRowAriaAttributes.d.ts +0 -3
- package/modern/hooks/features/rows/useGridRowAriaAttributes.js +0 -37
- package/modern/hooks/features/serverSideLazyLoader/useGridDataSourceLazyLoader.d.ts +0 -10
- package/modern/hooks/features/serverSideLazyLoader/useGridDataSourceLazyLoader.js +0 -325
- package/modern/hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.d.ts +0 -4
- package/modern/hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js +0 -148
- package/modern/hooks/features/serverSideTreeData/utils.d.ts +0 -7
- package/modern/hooks/features/serverSideTreeData/utils.js +0 -18
- package/modern/hooks/features/treeData/gridTreeDataGroupColDef.d.ts +0 -8
- package/modern/hooks/features/treeData/gridTreeDataGroupColDef.js +0 -27
- package/modern/hooks/features/treeData/gridTreeDataUtils.d.ts +0 -22
- package/modern/hooks/features/treeData/gridTreeDataUtils.js +0 -95
- package/modern/hooks/features/treeData/index.d.ts +0 -1
- package/modern/hooks/features/treeData/index.js +0 -1
- package/modern/hooks/features/treeData/useGridTreeData.d.ts +0 -4
- package/modern/hooks/features/treeData/useGridTreeData.js +0 -22
- package/modern/hooks/features/treeData/useGridTreeDataPreProcessors.d.ts +0 -4
- package/modern/hooks/features/treeData/useGridTreeDataPreProcessors.js +0 -148
- package/modern/hooks/index.d.ts +0 -1
- package/modern/hooks/index.js +0 -1
- package/modern/hooks/utils/useGridApiContext.d.ts +0 -4
- package/modern/hooks/utils/useGridApiContext.js +0 -2
- package/modern/hooks/utils/useGridApiRef.d.ts +0 -4
- package/modern/hooks/utils/useGridApiRef.js +0 -2
- package/modern/hooks/utils/useGridAriaAttributes.d.ts +0 -2
- package/modern/hooks/utils/useGridAriaAttributes.js +0 -11
- package/modern/hooks/utils/useGridPrivateApiContext.d.ts +0 -2
- package/modern/hooks/utils/useGridPrivateApiContext.js +0 -2
- package/modern/hooks/utils/useGridRootProps.d.ts +0 -2
- package/modern/hooks/utils/useGridRootProps.js +0 -2
- package/modern/index.d.ts +0 -22
- package/modern/index.js +0 -25
- package/modern/internals/index.d.ts +0 -33
- package/modern/internals/index.js +0 -38
- package/modern/internals/propValidation.d.ts +0 -3
- package/modern/internals/propValidation.js +0 -2
- package/modern/locales.d.ts +0 -1
- package/modern/locales.js +0 -1
- package/modern/material/icons.d.ts +0 -6
- package/modern/material/icons.js +0 -17
- package/modern/material/index.d.ts +0 -5
- package/modern/material/index.js +0 -8
- package/modern/models/dataGridProProps.d.ts +0 -222
- package/modern/models/dataGridProProps.js +0 -1
- package/modern/models/gridApiPro.d.ts +0 -11
- package/modern/models/gridApiPro.js +0 -1
- package/modern/models/gridFetchRowsParams.d.ts +0 -22
- package/modern/models/gridFetchRowsParams.js +0 -1
- package/modern/models/gridGroupingColDefOverride.d.ts +0 -30
- package/modern/models/gridGroupingColDefOverride.js +0 -1
- package/modern/models/gridProIconSlotsComponent.d.ts +0 -13
- package/modern/models/gridProIconSlotsComponent.js +0 -1
- package/modern/models/gridProSlotProps.d.ts +0 -8
- package/modern/models/gridProSlotProps.js +0 -1
- package/modern/models/gridProSlotsComponent.d.ts +0 -18
- package/modern/models/gridProSlotsComponent.js +0 -1
- package/modern/models/gridRowOrderChangeParams.d.ts +0 -18
- package/modern/models/gridRowOrderChangeParams.js +0 -1
- package/modern/models/gridRowScrollEndParams.d.ts +0 -18
- package/modern/models/gridRowScrollEndParams.js +0 -1
- package/modern/models/gridStatePro.d.ts +0 -19
- package/modern/models/gridStatePro.js +0 -1
- package/modern/models/index.d.ts +0 -7
- package/modern/models/index.js +0 -7
- package/modern/package.json +0 -1
- package/modern/themeAugmentation/index.d.ts +0 -2
- package/modern/themeAugmentation/index.js +0 -4
- package/modern/themeAugmentation/overrides.d.ts +0 -7
- package/modern/themeAugmentation/overrides.js +0 -1
- package/modern/themeAugmentation/props.d.ts +0 -15
- package/modern/themeAugmentation/props.js +0 -1
- package/modern/typeOverloads/index.d.ts +0 -1
- package/modern/typeOverloads/index.js +0 -1
- package/modern/typeOverloads/modules.d.ts +0 -70
- package/modern/typeOverloads/modules.js +0 -1
- package/modern/typeOverloads/reexports.d.ts +0 -17
- package/modern/typeOverloads/reexports.js +0 -15
- package/modern/utils/index.d.ts +0 -1
- package/modern/utils/index.js +0 -1
- package/modern/utils/releaseInfo.d.ts +0 -1
- package/modern/utils/releaseInfo.js +0 -13
- package/modern/utils/tree/createRowTree.d.ts +0 -17
- package/modern/utils/tree/createRowTree.js +0 -37
- package/modern/utils/tree/index.d.ts +0 -1
- package/modern/utils/tree/index.js +0 -1
- package/modern/utils/tree/insertDataRowInTree.d.ts +0 -69
- package/modern/utils/tree/insertDataRowInTree.js +0 -141
- package/modern/utils/tree/models.d.ts +0 -14
- package/modern/utils/tree/models.js +0 -1
- package/modern/utils/tree/removeDataRowFromTree.d.ts +0 -45
- package/modern/utils/tree/removeDataRowFromTree.js +0 -94
- package/modern/utils/tree/sortRowTree.d.ts +0 -15
- package/modern/utils/tree/sortRowTree.js +0 -114
- package/modern/utils/tree/updateRowTree.d.ts +0 -20
- package/modern/utils/tree/updateRowTree.js +0 -88
- package/modern/utils/tree/utils.d.ts +0 -54
- package/modern/utils/tree/utils.js +0 -197
- package/tsconfig.build.tsbuildinfo +0 -1
- package/utils/releaseInfo.d.ts +0 -1
- package/utils/releaseInfo.js +0 -20
- /package/esm/{locales.d.ts → locales/index.d.ts} +0 -0
- /package/esm/{locales.js → locales/index.js} +0 -0
- /package/{locales.d.ts → locales/index.d.ts} +0 -0
- /package/{locales.js → locales/index.js} +0 -0
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export * from '@mui/x-data-grid/internals';
|
|
2
|
-
export { GridColumnHeaders } from "../components/GridColumnHeaders.js";
|
|
3
|
-
export { DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS } from "../constants/dataGridProDefaultSlotsComponents.js";
|
|
4
|
-
export { useGridColumnHeaders } from "../hooks/features/columnHeaders/useGridColumnHeaders.js";
|
|
5
|
-
export { useGridAriaAttributes } from "../hooks/utils/useGridAriaAttributes.js";
|
|
6
|
-
export { useGridRowAriaAttributes } from "../hooks/features/rows/useGridRowAriaAttributes.js";
|
|
7
|
-
export { useGridColumnPinning, columnPinningStateInitializer } from "../hooks/features/columnPinning/useGridColumnPinning.js";
|
|
8
|
-
export { useGridColumnPinningPreProcessors } from "../hooks/features/columnPinning/useGridColumnPinningPreProcessors.js";
|
|
9
|
-
export { useGridColumnReorder, columnReorderStateInitializer } from "../hooks/features/columnReorder/useGridColumnReorder.js";
|
|
10
|
-
export { useGridDataSourceTreeDataPreProcessors } from "../hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js";
|
|
11
|
-
export { useGridDetailPanel, detailPanelStateInitializer } from "../hooks/features/detailPanel/useGridDetailPanel.js";
|
|
12
|
-
export { useGridDetailPanelPreProcessors } from "../hooks/features/detailPanel/useGridDetailPanelPreProcessors.js";
|
|
13
|
-
export { useGridInfiniteLoader } from "../hooks/features/infiniteLoader/useGridInfiniteLoader.js";
|
|
14
|
-
export { useGridRowReorder } from "../hooks/features/rowReorder/useGridRowReorder.js";
|
|
15
|
-
export { useGridRowReorderPreProcessors } from "../hooks/features/rowReorder/useGridRowReorderPreProcessors.js";
|
|
16
|
-
export { useGridTreeData } from "../hooks/features/treeData/useGridTreeData.js";
|
|
17
|
-
export { useGridTreeDataPreProcessors } from "../hooks/features/treeData/useGridTreeDataPreProcessors.js";
|
|
18
|
-
export { useGridRowPinning, rowPinningStateInitializer } from "../hooks/features/rowPinning/useGridRowPinning.js";
|
|
19
|
-
export { useGridRowPinningPreProcessors, addPinnedRow } from "../hooks/features/rowPinning/useGridRowPinningPreProcessors.js";
|
|
20
|
-
export { useGridLazyLoader } from "../hooks/features/lazyLoader/useGridLazyLoader.js";
|
|
21
|
-
export { useGridLazyLoaderPreProcessors } from "../hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js";
|
|
22
|
-
export { useGridDataSourceLazyLoader } from "../hooks/features/serverSideLazyLoader/useGridDataSourceLazyLoader.js";
|
|
23
|
-
export { dataSourceStateInitializer } from "../hooks/features/dataSource/useGridDataSourcePro.js";
|
|
24
|
-
export { useGridDataSourceBasePro } from "../hooks/features/dataSource/useGridDataSourceBasePro.js";
|
|
25
|
-
export { gridDataSourceErrorSelector, gridDataSourceLoadingIdSelector } from "../hooks/features/dataSource/gridDataSourceSelector.js";
|
|
26
|
-
export type { GridExperimentalProFeatures, DataGridProPropsWithoutDefaultValue, DataGridProPropsWithDefaultValue } from '../models/dataGridProProps';
|
|
27
|
-
export { createRowTree } from "../utils/tree/createRowTree.js";
|
|
28
|
-
export { updateRowTree } from "../utils/tree/updateRowTree.js";
|
|
29
|
-
export { sortRowTree } from "../utils/tree/sortRowTree.js";
|
|
30
|
-
export { insertNodeInTree, removeNodeFromTree, getVisibleRowsLookup } from "../utils/tree/utils.js";
|
|
31
|
-
export type { RowTreeBuilderGroupingCriterion } from '../utils/tree/models';
|
|
32
|
-
export { skipSorting, skipFiltering } from "../hooks/features/serverSideTreeData/utils.js";
|
|
33
|
-
export * from "./propValidation.js";
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line import/export
|
|
2
|
-
export * from '@mui/x-data-grid/internals';
|
|
3
|
-
export { GridColumnHeaders } from "../components/GridColumnHeaders.js";
|
|
4
|
-
export { DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS } from "../constants/dataGridProDefaultSlotsComponents.js";
|
|
5
|
-
|
|
6
|
-
/* eslint-disable import/export --
|
|
7
|
-
* x-data-grid-pro internals that are overriding the x-data-grid internals
|
|
8
|
-
*/
|
|
9
|
-
export { useGridColumnHeaders } from "../hooks/features/columnHeaders/useGridColumnHeaders.js";
|
|
10
|
-
export { useGridAriaAttributes } from "../hooks/utils/useGridAriaAttributes.js";
|
|
11
|
-
export { useGridRowAriaAttributes } from "../hooks/features/rows/useGridRowAriaAttributes.js";
|
|
12
|
-
// eslint-enable import/export
|
|
13
|
-
|
|
14
|
-
export { useGridColumnPinning, columnPinningStateInitializer } from "../hooks/features/columnPinning/useGridColumnPinning.js";
|
|
15
|
-
export { useGridColumnPinningPreProcessors } from "../hooks/features/columnPinning/useGridColumnPinningPreProcessors.js";
|
|
16
|
-
export { useGridColumnReorder, columnReorderStateInitializer } from "../hooks/features/columnReorder/useGridColumnReorder.js";
|
|
17
|
-
export { useGridDataSourceTreeDataPreProcessors } from "../hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js";
|
|
18
|
-
export { useGridDetailPanel, detailPanelStateInitializer } from "../hooks/features/detailPanel/useGridDetailPanel.js";
|
|
19
|
-
export { useGridDetailPanelPreProcessors } from "../hooks/features/detailPanel/useGridDetailPanelPreProcessors.js";
|
|
20
|
-
export { useGridInfiniteLoader } from "../hooks/features/infiniteLoader/useGridInfiniteLoader.js";
|
|
21
|
-
export { useGridRowReorder } from "../hooks/features/rowReorder/useGridRowReorder.js";
|
|
22
|
-
export { useGridRowReorderPreProcessors } from "../hooks/features/rowReorder/useGridRowReorderPreProcessors.js";
|
|
23
|
-
export { useGridTreeData } from "../hooks/features/treeData/useGridTreeData.js";
|
|
24
|
-
export { useGridTreeDataPreProcessors } from "../hooks/features/treeData/useGridTreeDataPreProcessors.js";
|
|
25
|
-
export { useGridRowPinning, rowPinningStateInitializer } from "../hooks/features/rowPinning/useGridRowPinning.js";
|
|
26
|
-
export { useGridRowPinningPreProcessors, addPinnedRow } from "../hooks/features/rowPinning/useGridRowPinningPreProcessors.js";
|
|
27
|
-
export { useGridLazyLoader } from "../hooks/features/lazyLoader/useGridLazyLoader.js";
|
|
28
|
-
export { useGridLazyLoaderPreProcessors } from "../hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js";
|
|
29
|
-
export { useGridDataSourceLazyLoader } from "../hooks/features/serverSideLazyLoader/useGridDataSourceLazyLoader.js";
|
|
30
|
-
export { dataSourceStateInitializer } from "../hooks/features/dataSource/useGridDataSourcePro.js";
|
|
31
|
-
export { useGridDataSourceBasePro } from "../hooks/features/dataSource/useGridDataSourceBasePro.js";
|
|
32
|
-
export { gridDataSourceErrorSelector, gridDataSourceLoadingIdSelector } from "../hooks/features/dataSource/gridDataSourceSelector.js";
|
|
33
|
-
export { createRowTree } from "../utils/tree/createRowTree.js";
|
|
34
|
-
export { updateRowTree } from "../utils/tree/updateRowTree.js";
|
|
35
|
-
export { sortRowTree } from "../utils/tree/sortRowTree.js";
|
|
36
|
-
export { insertNodeInTree, removeNodeFromTree, getVisibleRowsLookup } from "../utils/tree/utils.js";
|
|
37
|
-
export { skipSorting, skipFiltering } from "../hooks/features/serverSideTreeData/utils.js";
|
|
38
|
-
export * from "./propValidation.js";
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { GridSignature, isNumber, propValidatorsDataGrid } from '@mui/x-data-grid/internals';
|
|
2
|
-
export const propValidatorsDataGridPro = [...propValidatorsDataGrid, props => props.pagination && props.hideFooterRowCount && 'MUI X: The `hideFooterRowCount` prop has no effect when the pagination is enabled.' || undefined, props => props.treeData && props.filterMode === 'server' && !props.dataSource && 'MUI X: The `filterMode="server"` prop is not available when the `treeData` is enabled.' || undefined, props => !props.pagination && props.checkboxSelectionVisibleOnly && 'MUI X: The `checkboxSelectionVisibleOnly` prop has no effect when the pagination is not enabled.' || undefined, props => props.signature !== GridSignature.DataGrid && props.paginationMode === 'client' && props.rowsLoadingMode !== 'server' && isNumber(props.rowCount) && 'MUI X: Usage of the `rowCount` prop with client side pagination (`paginationMode="client"`) has no effect. `rowCount` is only meant to be used with `paginationMode="server"`.' || undefined, props => props.signature !== GridSignature.DataGrid && (props.rowsLoadingMode === 'server' || props.onRowsScrollEnd) && props.lazyLoading && 'MUI X: Usage of the client side lazy loading (`rowsLoadingMode="server"` or `onRowsScrollEnd=...`) cannot be used together with server side lazy loading `lazyLoading="true"`.' || undefined];
|
package/modern/locales.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@mui/x-data-grid/locales';
|
package/modern/locales.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@mui/x-data-grid/locales';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const GridPushPinRightIcon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
-
muiName: string;
|
|
3
|
-
};
|
|
4
|
-
export declare const GridPushPinLeftIcon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
5
|
-
muiName: string;
|
|
6
|
-
};
|
package/modern/material/icons.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { createSvgIcon } from '@mui/material/utils';
|
|
3
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
export const GridPushPinRightIcon = createSvgIcon(/*#__PURE__*/_jsx("g", {
|
|
5
|
-
transform: "rotate(-30 15 10)",
|
|
6
|
-
children: /*#__PURE__*/_jsx("path", {
|
|
7
|
-
d: "M16,9V4l1,0c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1H7C6.45,2,6,2.45,6,3v0 c0,0.55,0.45,1,1,1l1,0v5c0,1.66-1.34,3-3,3h0v2h5.97v7l1,1l1-1v-7H19v-2h0C17.34,12,16,10.66,16,9z",
|
|
8
|
-
fillRule: "evenodd"
|
|
9
|
-
})
|
|
10
|
-
}), 'PushPinRight');
|
|
11
|
-
export const GridPushPinLeftIcon = createSvgIcon(/*#__PURE__*/_jsx("g", {
|
|
12
|
-
transform: "rotate(30 8 12)",
|
|
13
|
-
children: /*#__PURE__*/_jsx("path", {
|
|
14
|
-
d: "M16,9V4l1,0c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1H7C6.45,2,6,2.45,6,3v0 c0,0.55,0.45,1,1,1l1,0v5c0,1.66-1.34,3-3,3h0v2h5.97v7l1,1l1-1v-7H19v-2h0C17.34,12,16,10.66,16,9z",
|
|
15
|
-
fillRule: "evenodd"
|
|
16
|
-
})
|
|
17
|
-
}), 'PushPinLeft');
|
package/modern/material/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import { GridPushPinRightIcon, GridPushPinLeftIcon } from "./icons.js";
|
|
3
|
-
const iconSlots = {
|
|
4
|
-
columnMenuPinRightIcon: GridPushPinRightIcon,
|
|
5
|
-
columnMenuPinLeftIcon: GridPushPinLeftIcon
|
|
6
|
-
};
|
|
7
|
-
const materialSlots = _extends({}, iconSlots);
|
|
8
|
-
export default materialSlots;
|
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { RefObject } from '@mui/x-internals/types';
|
|
3
|
-
import { GridEventListener, GridCallbackDetails, GridRowParams, GridRowId, GridValidRowModel, GridGroupNode, GridFeatureMode, GridListViewColDef, GridGetRowsError, GridUpdateRowError } from '@mui/x-data-grid';
|
|
4
|
-
import type { GridExperimentalFeatures, DataGridPropsWithoutDefaultValue, DataGridPropsWithDefaultValues, DataGridPropsWithComplexDefaultValueAfterProcessing, DataGridPropsWithComplexDefaultValueBeforeProcessing, GridPinnedColumnFields, DataGridProSharedPropsWithDefaultValue, DataGridProSharedPropsWithoutDefaultValue } from '@mui/x-data-grid/internals';
|
|
5
|
-
import type { GridPinnedRowsProp } from '../hooks/features/rowPinning';
|
|
6
|
-
import { GridApiPro } from "./gridApiPro.js";
|
|
7
|
-
import { GridGroupingColDefOverride, GridGroupingColDefOverrideParams } from "./gridGroupingColDefOverride.js";
|
|
8
|
-
import { GridInitialStatePro } from "./gridStatePro.js";
|
|
9
|
-
import { GridProSlotsComponent } from "./gridProSlotsComponent.js";
|
|
10
|
-
import type { GridProSlotProps } from './gridProSlotProps';
|
|
11
|
-
import { GridDataSourcePro as GridDataSource, GridGetRowsParamsPro as GridGetRowsParams } from "../hooks/features/dataSource/models.js";
|
|
12
|
-
export interface GridExperimentalProFeatures extends GridExperimentalFeatures {}
|
|
13
|
-
interface DataGridProPropsWithComplexDefaultValueBeforeProcessing extends Omit<DataGridPropsWithComplexDefaultValueBeforeProcessing, 'components'> {
|
|
14
|
-
/**
|
|
15
|
-
* Overridable components.
|
|
16
|
-
*/
|
|
17
|
-
slots?: Partial<GridProSlotsComponent>;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* The props users can give to the `DataGridProProps` component.
|
|
21
|
-
*/
|
|
22
|
-
export interface DataGridProProps<R extends GridValidRowModel = any> extends Omit<Partial<DataGridProPropsWithDefaultValue<R>> & DataGridProPropsWithComplexDefaultValueBeforeProcessing & DataGridProPropsWithoutDefaultValue<R>, DataGridProForcedPropsKey> {}
|
|
23
|
-
interface DataGridProPropsWithComplexDefaultValueAfterProcessing extends Omit<DataGridPropsWithComplexDefaultValueAfterProcessing, 'slots'> {
|
|
24
|
-
slots: GridProSlotsComponent;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* The props of the Data Grid Pro component after the pre-processing phase.
|
|
28
|
-
*/
|
|
29
|
-
export interface DataGridProProcessedProps<R extends GridValidRowModel = any> extends DataGridProPropsWithDefaultValue<R>, DataGridProPropsWithComplexDefaultValueAfterProcessing, Omit<DataGridProPropsWithoutDefaultValue<R>, 'componentsProps'> {}
|
|
30
|
-
export type DataGridProForcedPropsKey = 'signature';
|
|
31
|
-
/**
|
|
32
|
-
* The Data Grid Pro options with a default value overridable through props
|
|
33
|
-
* None of the entry of this interface should be optional, they all have default values and `DataGridProps` already applies a `Partial<DataGridSimpleOptions>` for the public interface
|
|
34
|
-
* The controlled model do not have a default value at the prop processing level, so they must be defined in `DataGridOtherProps`
|
|
35
|
-
*/
|
|
36
|
-
export interface DataGridProPropsWithDefaultValue<R extends GridValidRowModel = any> extends DataGridPropsWithDefaultValues<R>, DataGridProSharedPropsWithDefaultValue {
|
|
37
|
-
/**
|
|
38
|
-
* Set the area in `px` at the bottom of the grid viewport where onRowsScrollEnd is called.
|
|
39
|
-
* If combined with `lazyLoading`, it defines the area where the next data request is triggered.
|
|
40
|
-
* @default 80
|
|
41
|
-
*/
|
|
42
|
-
scrollEndThreshold: number;
|
|
43
|
-
/**
|
|
44
|
-
* If `true`, the rows will be gathered in a tree structure according to the `getTreeDataPath` prop.
|
|
45
|
-
* @default false
|
|
46
|
-
*/
|
|
47
|
-
treeData: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* If above 0, the row children will be expanded up to this depth.
|
|
50
|
-
* If equal to -1, all the row children will be expanded.
|
|
51
|
-
* @default 0
|
|
52
|
-
*/
|
|
53
|
-
defaultGroupingExpansionDepth: number;
|
|
54
|
-
/**
|
|
55
|
-
* Determines if a group should be expanded after its creation.
|
|
56
|
-
* This prop takes priority over the `defaultGroupingExpansionDepth` prop.
|
|
57
|
-
* @param {GridGroupNode} node The node of the group to test.
|
|
58
|
-
* @returns {boolean} A boolean indicating if the group is expanded.
|
|
59
|
-
*/
|
|
60
|
-
isGroupExpandedByDefault?: (node: GridGroupNode) => boolean;
|
|
61
|
-
/**
|
|
62
|
-
* If `true`, the column pinning is disabled.
|
|
63
|
-
* @default false
|
|
64
|
-
*/
|
|
65
|
-
disableColumnPinning: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* If `true`, the filtering will only be applied to the top level rows when grouping rows with the `treeData` prop.
|
|
68
|
-
* @default false
|
|
69
|
-
*/
|
|
70
|
-
disableChildrenFiltering: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* If `true`, the sorting will only be applied to the top level rows when grouping rows with the `treeData` prop.
|
|
73
|
-
* @default false
|
|
74
|
-
*/
|
|
75
|
-
disableChildrenSorting: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Function that returns the height of the row detail panel.
|
|
78
|
-
* @param {GridRowParams} params With all properties from [[GridRowParams]].
|
|
79
|
-
* @returns {number | string} The height in pixels or "auto" to use the content height.
|
|
80
|
-
* @default "() => 500"
|
|
81
|
-
*/
|
|
82
|
-
getDetailPanelHeight: (params: GridRowParams) => number | 'auto';
|
|
83
|
-
/**
|
|
84
|
-
* If `true`, the reordering of rows is enabled.
|
|
85
|
-
* @default false
|
|
86
|
-
*/
|
|
87
|
-
rowReordering: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* Loading rows can be processed on the server or client-side.
|
|
90
|
-
* Set it to 'client' if you would like enable infnite loading.
|
|
91
|
-
* Set it to 'server' if you would like to enable lazy loading.
|
|
92
|
-
* @default "client"
|
|
93
|
-
* @deprecated Use the {@link https://next.mui.com/x/react-data-grid/server-side-data/lazy-loading/#viewport-loading Server-side data-Viewport loading} instead.
|
|
94
|
-
*/
|
|
95
|
-
rowsLoadingMode: GridFeatureMode;
|
|
96
|
-
/**
|
|
97
|
-
* If `true`, moving the mouse pointer outside the grid before releasing the mouse button
|
|
98
|
-
* in a column re-order action will not cause the column to jump back to its original position.
|
|
99
|
-
* @default false
|
|
100
|
-
*/
|
|
101
|
-
keepColumnPositionIfDraggedOutside: boolean;
|
|
102
|
-
/**
|
|
103
|
-
* Used together with `dataSource` to enable lazy loading.
|
|
104
|
-
* If enabled, the grid stops adding `paginationModel` to the data requests (`getRows`)
|
|
105
|
-
* and starts sending `start` and `end` values depending on the loading mode and the scroll position.
|
|
106
|
-
* @default false
|
|
107
|
-
*/
|
|
108
|
-
lazyLoading: boolean;
|
|
109
|
-
/**
|
|
110
|
-
* If positive, the Data Grid will throttle data source requests on rendered rows interval change.
|
|
111
|
-
* @default 500
|
|
112
|
-
*/
|
|
113
|
-
lazyLoadingRequestThrottleMs: number;
|
|
114
|
-
/**
|
|
115
|
-
* If `true`, displays the data in a list view.
|
|
116
|
-
* Use in combination with `listViewColumn`.
|
|
117
|
-
*/
|
|
118
|
-
listView: boolean;
|
|
119
|
-
}
|
|
120
|
-
interface DataGridProRegularProps<R extends GridValidRowModel> {
|
|
121
|
-
/**
|
|
122
|
-
* Determines the path of a row in the tree data.
|
|
123
|
-
* For instance, a row with the path ["A", "B"] is the child of the row with the path ["A"].
|
|
124
|
-
* Note that all paths must contain at least one element.
|
|
125
|
-
* @template R
|
|
126
|
-
* @param {R} row The row from which we want the path.
|
|
127
|
-
* @returns {string[]} The path to the row.
|
|
128
|
-
*/
|
|
129
|
-
getTreeDataPath?: (row: R) => readonly string[];
|
|
130
|
-
}
|
|
131
|
-
export interface DataGridProPropsWithoutDefaultValue<R extends GridValidRowModel = any> extends Omit<DataGridPropsWithoutDefaultValue<R>, 'initialState' | 'componentsProps' | 'slotProps' | 'dataSource' | 'onDataSourceError'>, DataGridProRegularProps<R>, DataGridProSharedPropsWithoutDefaultValue {
|
|
132
|
-
/**
|
|
133
|
-
* The ref object that allows grid manipulation. Can be instantiated with `useGridApiRef()`.
|
|
134
|
-
*/
|
|
135
|
-
apiRef?: RefObject<GridApiPro | null>;
|
|
136
|
-
/**
|
|
137
|
-
* The initial state of the DataGridPro.
|
|
138
|
-
* The data in it will be set in the state on initialization but will not be controlled.
|
|
139
|
-
* If one of the data in `initialState` is also being controlled, then the control state wins.
|
|
140
|
-
*/
|
|
141
|
-
initialState?: GridInitialStatePro;
|
|
142
|
-
/**
|
|
143
|
-
* Unstable features, breaking changes might be introduced.
|
|
144
|
-
* For each feature, if the flag is not explicitly set to `true`, the feature will be fully disabled and any property / method call will not have any effect.
|
|
145
|
-
*/
|
|
146
|
-
experimentalFeatures?: Partial<GridExperimentalProFeatures>;
|
|
147
|
-
/**
|
|
148
|
-
* Callback fired when scrolling to the bottom of the grid viewport.
|
|
149
|
-
* @param {GridRowScrollEndParams} params With all properties from [[GridRowScrollEndParams]].
|
|
150
|
-
* @param {MuiEvent<{}>} event The event object.
|
|
151
|
-
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
152
|
-
* @deprecated Use the {@link https://next.mui.com/x/react-data-grid/server-side-data/lazy-loading/#infinite-loading Server-side data-Infinite loading} instead.
|
|
153
|
-
*/
|
|
154
|
-
onRowsScrollEnd?: GridEventListener<'rowsScrollEnd'>;
|
|
155
|
-
/**
|
|
156
|
-
* The column fields to display pinned to left or right.
|
|
157
|
-
*/
|
|
158
|
-
pinnedColumns?: GridPinnedColumnFields;
|
|
159
|
-
/**
|
|
160
|
-
* Callback fired when the pinned columns have changed.
|
|
161
|
-
* @param {GridPinnedColumnFields} pinnedColumns The changed pinned columns.
|
|
162
|
-
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
163
|
-
*/
|
|
164
|
-
onPinnedColumnsChange?: (pinnedColumns: GridPinnedColumnFields, details: GridCallbackDetails) => void;
|
|
165
|
-
/**
|
|
166
|
-
* The grouping column used by the tree data.
|
|
167
|
-
*/
|
|
168
|
-
groupingColDef?: GridGroupingColDefOverride<R> | ((params: GridGroupingColDefOverrideParams) => GridGroupingColDefOverride<R> | undefined | null);
|
|
169
|
-
/**
|
|
170
|
-
* The row ids to show the detail panel.
|
|
171
|
-
*/
|
|
172
|
-
detailPanelExpandedRowIds?: Set<GridRowId>;
|
|
173
|
-
/**
|
|
174
|
-
* Callback fired when the detail panel of a row is opened or closed.
|
|
175
|
-
* @param {GridRowId[]} ids The ids of the rows which have the detail panel open.
|
|
176
|
-
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
177
|
-
*/
|
|
178
|
-
onDetailPanelExpandedRowIdsChange?: (ids: Set<GridRowId>, details: GridCallbackDetails) => void;
|
|
179
|
-
/**
|
|
180
|
-
* Function that returns the element to render in row detail.
|
|
181
|
-
* @param {GridRowParams} params With all properties from [[GridRowParams]].
|
|
182
|
-
* @returns {React.JSX.Element} The row detail element.
|
|
183
|
-
*/
|
|
184
|
-
getDetailPanelContent?: (params: GridRowParams<R>) => React.ReactNode;
|
|
185
|
-
/**
|
|
186
|
-
* Callback fired when a row is being reordered.
|
|
187
|
-
* @param {GridRowOrderChangeParams} params With all properties from [[GridRowOrderChangeParams]].
|
|
188
|
-
* @param {MuiEvent<{}>} event The event object.
|
|
189
|
-
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
190
|
-
*/
|
|
191
|
-
onRowOrderChange?: GridEventListener<'rowOrderChange'>;
|
|
192
|
-
/**
|
|
193
|
-
* Callback fired when rowCount is set and the next batch of virtualized rows is rendered.
|
|
194
|
-
* @param {GridFetchRowsParams} params With all properties from [[GridFetchRowsParams]].
|
|
195
|
-
* @param {MuiEvent<{}>} event The event object.
|
|
196
|
-
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
197
|
-
* @deprecated Use the {@link https://next.mui.com/x/react-data-grid/server-side-data/lazy-loading/#viewport-loading Server-side data-Viewport loading} instead.
|
|
198
|
-
*/
|
|
199
|
-
onFetchRows?: GridEventListener<'fetchRows'>;
|
|
200
|
-
/**
|
|
201
|
-
* Rows data to pin on top or bottom.
|
|
202
|
-
*/
|
|
203
|
-
pinnedRows?: GridPinnedRowsProp<R>;
|
|
204
|
-
/**
|
|
205
|
-
* Overridable components props dynamically passed to the component at rendering.
|
|
206
|
-
*/
|
|
207
|
-
slotProps?: GridProSlotProps;
|
|
208
|
-
/**
|
|
209
|
-
* Definition of the column rendered when the `listView` prop is enabled.
|
|
210
|
-
*/
|
|
211
|
-
listViewColumn?: GridListViewColDef<R>;
|
|
212
|
-
/**
|
|
213
|
-
* The data source of the Data Grid Pro.
|
|
214
|
-
*/
|
|
215
|
-
dataSource?: GridDataSource;
|
|
216
|
-
/**
|
|
217
|
-
* Callback fired when a data source request fails.
|
|
218
|
-
* @param {GridGetRowsError | GridUpdateRowError} error The data source error object.
|
|
219
|
-
*/
|
|
220
|
-
onDataSourceError?: (error: GridGetRowsError<GridGetRowsParams> | GridUpdateRowError) => void;
|
|
221
|
-
}
|
|
222
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { GridApiCommon, GridColumnReorderApi, GridRowMultiSelectionApi, GridRowProApi } from '@mui/x-data-grid';
|
|
2
|
-
import { GridPrivateOnlyApiCommon, GridInfiniteLoaderPrivateApi } from '@mui/x-data-grid/internals';
|
|
3
|
-
import { GridInitialStatePro, GridStatePro } from "./gridStatePro.js";
|
|
4
|
-
import type { GridColumnPinningApi, GridDetailPanelApi, GridRowPinningApi, GridDetailPanelPrivateApi } from '../hooks';
|
|
5
|
-
import type { GridDataSourceApiPro, GridDataSourcePrivateApiPro } from '../hooks/features/dataSource/models';
|
|
6
|
-
import type { DataGridProProcessedProps } from './dataGridProProps';
|
|
7
|
-
/**
|
|
8
|
-
* The api of Data Grid Pro.
|
|
9
|
-
*/
|
|
10
|
-
export interface GridApiPro extends GridApiCommon<GridStatePro, GridInitialStatePro>, GridRowProApi, GridColumnPinningApi, GridDetailPanelApi, GridRowPinningApi, GridDataSourceApiPro, GridRowMultiSelectionApi, GridColumnReorderApi {}
|
|
11
|
-
export interface GridPrivateApiPro extends GridApiPro, GridPrivateOnlyApiCommon<GridApiPro, GridPrivateApiPro, DataGridProProcessedProps>, GridDetailPanelPrivateApi, GridInfiniteLoaderPrivateApi, GridDataSourcePrivateApiPro {}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { GridFilterModel, GridSortModel } from '@mui/x-data-grid/models';
|
|
2
|
-
/**
|
|
3
|
-
* Object passed as parameter to the [[onFetchRows]] option.
|
|
4
|
-
*/
|
|
5
|
-
export interface GridFetchRowsParams {
|
|
6
|
-
/**
|
|
7
|
-
* The index of the first row to render.
|
|
8
|
-
*/
|
|
9
|
-
firstRowToRender: number;
|
|
10
|
-
/**
|
|
11
|
-
* The index of the last row to render.
|
|
12
|
-
*/
|
|
13
|
-
lastRowToRender: number;
|
|
14
|
-
/**
|
|
15
|
-
* The sort model used to sort the grid.
|
|
16
|
-
*/
|
|
17
|
-
sortModel: GridSortModel;
|
|
18
|
-
/**
|
|
19
|
-
* The filter model.
|
|
20
|
-
*/
|
|
21
|
-
filterModel: GridFilterModel;
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { GridColDef, GridValidRowModel } from '@mui/x-data-grid';
|
|
2
|
-
export interface GridGroupingColDefOverride<R extends GridValidRowModel = any> extends Omit<GridColDef<R>, 'editable' | 'valueSetter' | 'field' | 'type' | 'preProcessEditCellProps' | 'renderEditCell' | 'groupable'> {
|
|
3
|
-
/**
|
|
4
|
-
* The field from which we want to apply the sorting and the filtering for the grouping column.
|
|
5
|
-
* It is only useful when `props.rowGroupingColumnMode === "multiple"` to decide which grouping criteria should be used for sorting and filtering.
|
|
6
|
-
* Do not have any effect when building the tree with the `props.treeData` feature.
|
|
7
|
-
* @default The sorting and filtering is applied based on the leaf field in any, otherwise based on top level grouping criteria.
|
|
8
|
-
*/
|
|
9
|
-
mainGroupingCriteria?: string;
|
|
10
|
-
/**
|
|
11
|
-
* The field from which we want to render the leaves of the tree.
|
|
12
|
-
* Do not have any effect when building the tree with the `props.treeData` feature.
|
|
13
|
-
*/
|
|
14
|
-
leafField?: string;
|
|
15
|
-
/**
|
|
16
|
-
* If `true`, the grouping cells will not render the amount of descendants.
|
|
17
|
-
* @default false
|
|
18
|
-
*/
|
|
19
|
-
hideDescendantCount?: boolean;
|
|
20
|
-
}
|
|
21
|
-
export interface GridGroupingColDefOverrideParams {
|
|
22
|
-
/**
|
|
23
|
-
* The name of the grouping algorithm currently building the grouping column.
|
|
24
|
-
*/
|
|
25
|
-
groupingName: string;
|
|
26
|
-
/**
|
|
27
|
-
* The fields of the columns from which we want to group the values on this new grouping column.
|
|
28
|
-
*/
|
|
29
|
-
fields: string[];
|
|
30
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface GridProIconSlotsComponent {
|
|
3
|
-
/**
|
|
4
|
-
* Icon displayed in column menu for left pinning
|
|
5
|
-
* @default GridPushPinLeftIcon
|
|
6
|
-
*/
|
|
7
|
-
columnMenuPinLeftIcon: React.JSXElementConstructor<any>;
|
|
8
|
-
/**
|
|
9
|
-
* Icon displayed in column menu for right pinning
|
|
10
|
-
* @default GridPushPinRightIcon
|
|
11
|
-
*/
|
|
12
|
-
columnMenuPinRightIcon: React.JSXElementConstructor<any>;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { GridSlotsComponentsProps } from '@mui/x-data-grid/internals';
|
|
2
|
-
import type { GridHeaderFilterCellProps } from '../components/headerFiltering/GridHeaderFilterCell';
|
|
3
|
-
export interface HeaderFilterCellPropsOverrides {}
|
|
4
|
-
type SlotProps<Props, Overrides> = Partial<Props & Overrides>;
|
|
5
|
-
export interface GridProSlotProps extends GridSlotsComponentsProps {
|
|
6
|
-
headerFilterCell?: SlotProps<GridHeaderFilterCellProps, HeaderFilterCellPropsOverrides>;
|
|
7
|
-
}
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { GridSlotsComponent } from '@mui/x-data-grid';
|
|
2
|
-
import { GridProIconSlotsComponent } from "./gridProIconSlotsComponent.js";
|
|
3
|
-
/**
|
|
4
|
-
* Grid components React prop interface containing all the overridable components
|
|
5
|
-
* for Pro package
|
|
6
|
-
*/
|
|
7
|
-
export interface GridProSlotsComponent extends GridSlotsComponent, GridProIconSlotsComponent {
|
|
8
|
-
/**
|
|
9
|
-
* Component responsible for showing menu adornment in Header filter row
|
|
10
|
-
* @default GridHeaderFilterCell
|
|
11
|
-
*/
|
|
12
|
-
headerFilterCell: React.JSXElementConstructor<any>;
|
|
13
|
-
/**
|
|
14
|
-
* Component responsible for showing menu in Header filter row
|
|
15
|
-
* @default GridHeaderFilterMenu
|
|
16
|
-
*/
|
|
17
|
-
headerFilterMenu: React.JSXElementConstructor<any> | null;
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { GridRowModel } from '@mui/x-data-grid';
|
|
2
|
-
/**
|
|
3
|
-
* Object passed as parameter of the row order change event.
|
|
4
|
-
*/
|
|
5
|
-
export interface GridRowOrderChangeParams {
|
|
6
|
-
/**
|
|
7
|
-
* The row data.
|
|
8
|
-
*/
|
|
9
|
-
row: GridRowModel;
|
|
10
|
-
/**
|
|
11
|
-
* The target row index.
|
|
12
|
-
*/
|
|
13
|
-
targetIndex: number;
|
|
14
|
-
/**
|
|
15
|
-
* The old row index.
|
|
16
|
-
*/
|
|
17
|
-
oldIndex: number;
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { GridColDef } from '@mui/x-data-grid';
|
|
2
|
-
/**
|
|
3
|
-
* Object passed as parameter in the onRowsScrollEnd callback.
|
|
4
|
-
*/
|
|
5
|
-
export interface GridRowScrollEndParams {
|
|
6
|
-
/**
|
|
7
|
-
* The number of rows that fit in the viewport.
|
|
8
|
-
*/
|
|
9
|
-
viewportPageSize: number;
|
|
10
|
-
/**
|
|
11
|
-
* The number of rows allocated for the rendered zone.
|
|
12
|
-
*/
|
|
13
|
-
visibleRowsCount: number;
|
|
14
|
-
/**
|
|
15
|
-
* The grid visible columns.
|
|
16
|
-
*/
|
|
17
|
-
visibleColumns: GridColDef[];
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { GridInitialState as GridInitialStateCommunity, GridState as GridStateCommunity, GridColumnPinningState, GridPinnedColumnFields } from '@mui/x-data-grid';
|
|
2
|
-
import type { GridDetailPanelState, GridDetailPanelInitialState, GridColumnReorderState } from '../hooks';
|
|
3
|
-
import type { GridDataSourceState } from '../hooks/features/dataSource/models';
|
|
4
|
-
/**
|
|
5
|
-
* The state of Data Grid Pro.
|
|
6
|
-
*/
|
|
7
|
-
export interface GridStatePro extends GridStateCommunity {
|
|
8
|
-
columnReorder: GridColumnReorderState;
|
|
9
|
-
pinnedColumns: GridColumnPinningState;
|
|
10
|
-
detailPanel: GridDetailPanelState;
|
|
11
|
-
dataSource: GridDataSourceState;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* The initial state of Data Grid Pro.
|
|
15
|
-
*/
|
|
16
|
-
export interface GridInitialStatePro extends GridInitialStateCommunity {
|
|
17
|
-
pinnedColumns?: GridPinnedColumnFields;
|
|
18
|
-
detailPanel?: GridDetailPanelInitialState;
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/modern/models/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "./gridApiPro.js";
|
|
2
|
-
export * from "./gridGroupingColDefOverride.js";
|
|
3
|
-
export * from "./gridRowScrollEndParams.js";
|
|
4
|
-
export * from "./gridRowOrderChangeParams.js";
|
|
5
|
-
export * from "./gridFetchRowsParams.js";
|
|
6
|
-
export * from "./gridProSlotsComponent.js";
|
|
7
|
-
export * from "./gridProIconSlotsComponent.js";
|
package/modern/models/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "./gridApiPro.js";
|
|
2
|
-
export * from "./gridGroupingColDefOverride.js";
|
|
3
|
-
export * from "./gridRowScrollEndParams.js";
|
|
4
|
-
export * from "./gridRowOrderChangeParams.js";
|
|
5
|
-
export * from "./gridFetchRowsParams.js";
|
|
6
|
-
export * from "./gridProSlotsComponent.js";
|
|
7
|
-
export * from "./gridProIconSlotsComponent.js";
|
package/modern/package.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"module","sideEffects":false}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ComponentsOverrides, ComponentsProps } from '@mui/material/styles';
|
|
2
|
-
import { DataGridProProps } from "../models/dataGridProProps.js";
|
|
3
|
-
export interface DataGridProComponentsPropsList {
|
|
4
|
-
MuiDataGrid: DataGridProProps;
|
|
5
|
-
}
|
|
6
|
-
export interface DataGridProComponents<Theme = unknown> {
|
|
7
|
-
MuiDataGrid?: {
|
|
8
|
-
defaultProps?: ComponentsProps['MuiDataGrid'];
|
|
9
|
-
styleOverrides?: ComponentsOverrides<Theme>['MuiDataGrid'];
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
declare module '@mui/material/styles' {
|
|
13
|
-
interface ComponentsPropsList extends DataGridProComponentsPropsList {}
|
|
14
|
-
interface Components<Theme = unknown> extends DataGridProComponents<Theme> {}
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./modules.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./modules.js";
|