@mui/x-data-grid-pro 5.5.1 โ 5.7.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 +229 -0
- package/DataGridPro/DataGridPro.d.ts +3 -0
- package/DataGridPro/DataGridPro.js +915 -0
- package/DataGridPro/index.d.ts +2 -0
- package/DataGridPro/index.js +2 -0
- package/DataGridPro/package.json +6 -0
- package/DataGridPro/useDataGridProComponent.d.ts +4 -0
- package/DataGridPro/useDataGridProComponent.js +84 -0
- package/DataGridPro/useDataGridProProps.d.ts +6 -0
- package/DataGridPro/useDataGridProProps.js +49 -0
- package/components/DataGridProColumnHeaders.d.ts +6 -0
- package/components/DataGridProColumnHeaders.js +165 -0
- package/components/DataGridProVirtualScroller.d.ts +8 -0
- package/components/DataGridProVirtualScroller.js +270 -0
- package/components/GridColumnPinningMenuItems.d.ts +11 -0
- package/components/GridColumnPinningMenuItems.js +71 -0
- package/components/GridDetailPanelToggleCell.d.ts +7 -0
- package/components/GridDetailPanelToggleCell.js +125 -0
- package/components/GridGroupingColumnLeafCell.d.ts +4 -0
- package/components/GridGroupingColumnLeafCell.js +22 -0
- package/components/GridGroupingCriteriaCell.d.ts +10 -0
- package/components/GridGroupingCriteriaCell.js +150 -0
- package/components/GridRowGroupableColumnMenuItems.d.ts +11 -0
- package/components/GridRowGroupableColumnMenuItems.js +63 -0
- package/components/GridRowGroupingColumnMenuItems.d.ts +11 -0
- package/components/GridRowGroupingColumnMenuItems.js +58 -0
- package/components/GridTreeDataGroupingCell.d.ts +10 -0
- package/components/GridTreeDataGroupingCell.js +160 -0
- package/components/index.d.ts +3 -0
- package/components/index.js +4 -0
- package/components/package.json +6 -0
- package/hooks/features/columnPinning/gridColumnPinningInterface.d.ts +42 -0
- package/hooks/features/columnPinning/gridColumnPinningInterface.js +11 -0
- package/hooks/features/columnPinning/gridColumnPinningSelector.d.ts +2 -0
- package/hooks/features/columnPinning/gridColumnPinningSelector.js +1 -0
- package/hooks/features/columnPinning/index.d.ts +2 -0
- package/hooks/features/columnPinning/index.js +2 -0
- package/hooks/features/columnPinning/useGridColumnPinning.d.ts +6 -0
- package/hooks/features/columnPinning/useGridColumnPinning.js +274 -0
- package/hooks/features/columnPinning/useGridColumnPinningPreProcessors.d.ts +4 -0
- package/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +45 -0
- package/hooks/features/columnReorder/columnReorderInterfaces.d.ts +6 -0
- package/hooks/features/columnReorder/columnReorderInterfaces.js +1 -0
- package/hooks/features/columnReorder/columnReorderSelector.d.ts +3 -0
- package/hooks/features/columnReorder/columnReorderSelector.js +3 -0
- package/hooks/features/columnReorder/index.d.ts +2 -0
- package/hooks/features/columnReorder/index.js +2 -0
- package/hooks/features/columnReorder/useGridColumnReorder.d.ts +10 -0
- package/hooks/features/columnReorder/useGridColumnReorder.js +165 -0
- package/hooks/features/columnResize/columnResizeSelector.d.ts +3 -0
- package/hooks/features/columnResize/columnResizeSelector.js +3 -0
- package/hooks/features/columnResize/columnResizeState.d.ts +3 -0
- package/hooks/features/columnResize/columnResizeState.js +1 -0
- package/hooks/features/columnResize/index.d.ts +2 -0
- package/hooks/features/columnResize/index.js +2 -0
- package/hooks/features/columnResize/useGridColumnResize.d.ts +11 -0
- package/hooks/features/columnResize/useGridColumnResize.js +305 -0
- package/hooks/features/detailPanel/gridDetailPanelInterface.d.ts +28 -0
- package/hooks/features/detailPanel/gridDetailPanelInterface.js +1 -0
- package/hooks/features/detailPanel/gridDetailPanelSelector.d.ts +5 -0
- package/hooks/features/detailPanel/gridDetailPanelSelector.js +3 -0
- package/hooks/features/detailPanel/gridDetailPanelToggleColDef.d.ts +3 -0
- package/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +26 -0
- package/hooks/features/detailPanel/index.d.ts +3 -0
- package/hooks/features/detailPanel/index.js +3 -0
- package/hooks/features/detailPanel/useGridDetailPanel.d.ts +6 -0
- package/hooks/features/detailPanel/useGridDetailPanel.js +109 -0
- package/hooks/features/detailPanel/useGridDetailPanelCache.d.ts +4 -0
- package/hooks/features/detailPanel/useGridDetailPanelCache.js +57 -0
- package/hooks/features/detailPanel/useGridDetailPanelPreProcessors.d.ts +4 -0
- package/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +28 -0
- package/hooks/features/index.d.ts +6 -0
- package/hooks/features/index.js +7 -0
- package/hooks/features/infiniteLoader/useGridInfiniteLoader.d.ts +10 -0
- package/hooks/features/infiniteLoader/useGridInfiniteLoader.js +52 -0
- package/hooks/features/rowGrouping/createGroupingColDef.d.ts +43 -0
- package/hooks/features/rowGrouping/createGroupingColDef.js +318 -0
- package/hooks/features/rowGrouping/gridRowGroupingInterfaces.d.ts +37 -0
- package/hooks/features/rowGrouping/gridRowGroupingInterfaces.js +1 -0
- package/hooks/features/rowGrouping/gridRowGroupingSelector.d.ts +4 -0
- package/hooks/features/rowGrouping/gridRowGroupingSelector.js +5 -0
- package/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +27 -0
- package/hooks/features/rowGrouping/gridRowGroupingUtils.js +139 -0
- package/hooks/features/rowGrouping/index.d.ts +3 -0
- package/hooks/features/rowGrouping/index.js +3 -0
- package/hooks/features/rowGrouping/useGridRowGrouping.d.ts +13 -0
- package/hooks/features/rowGrouping/useGridRowGrouping.js +204 -0
- package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.d.ts +4 -0
- package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +203 -0
- package/hooks/features/treeData/gridTreeDataGroupColDef.d.ts +7 -0
- package/hooks/features/treeData/gridTreeDataGroupColDef.js +22 -0
- package/hooks/features/treeData/gridTreeDataUtils.d.ts +15 -0
- package/hooks/features/treeData/gridTreeDataUtils.js +88 -0
- package/hooks/features/treeData/index.d.ts +1 -0
- package/hooks/features/treeData/index.js +1 -0
- package/hooks/features/treeData/useGridTreeData.d.ts +6 -0
- package/hooks/features/treeData/useGridTreeData.js +29 -0
- package/hooks/features/treeData/useGridTreeDataPreProcessors.d.ts +4 -0
- package/hooks/features/treeData/useGridTreeDataPreProcessors.js +138 -0
- package/hooks/index.d.ts +1 -0
- package/hooks/index.js +1 -0
- package/hooks/package.json +6 -0
- package/hooks/utils/useGridApiContext.d.ts +4 -0
- package/hooks/utils/useGridApiContext.js +2 -0
- package/hooks/utils/useGridApiRef.d.ts +4 -0
- package/hooks/utils/useGridApiRef.js +2 -0
- package/hooks/utils/useGridRootProps.d.ts +2 -0
- package/hooks/utils/useGridRootProps.js +2 -0
- package/index.d.ts +16 -0
- package/index.js +20 -0
- package/legacy/DataGridPro/DataGridPro.js +915 -0
- package/legacy/DataGridPro/index.js +2 -0
- package/legacy/DataGridPro/useDataGridProComponent.js +84 -0
- package/legacy/DataGridPro/useDataGridProProps.js +58 -0
- package/legacy/components/DataGridProColumnHeaders.js +173 -0
- package/legacy/components/DataGridProVirtualScroller.js +287 -0
- package/legacy/components/GridColumnPinningMenuItems.js +71 -0
- package/legacy/components/GridDetailPanelToggleCell.js +121 -0
- package/legacy/components/GridGroupingColumnLeafCell.js +20 -0
- package/legacy/components/GridGroupingCriteriaCell.js +146 -0
- package/legacy/components/GridRowGroupableColumnMenuItems.js +61 -0
- package/legacy/components/GridRowGroupingColumnMenuItems.js +56 -0
- package/legacy/components/GridTreeDataGroupingCell.js +156 -0
- package/legacy/components/index.js +4 -0
- package/legacy/hooks/features/columnPinning/gridColumnPinningInterface.js +11 -0
- package/legacy/hooks/features/columnPinning/gridColumnPinningSelector.js +3 -0
- package/legacy/hooks/features/columnPinning/index.js +2 -0
- package/legacy/hooks/features/columnPinning/useGridColumnPinning.js +298 -0
- package/legacy/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +48 -0
- package/legacy/hooks/features/columnReorder/columnReorderInterfaces.js +1 -0
- package/legacy/hooks/features/columnReorder/columnReorderSelector.js +7 -0
- package/legacy/hooks/features/columnReorder/index.js +2 -0
- package/legacy/hooks/features/columnReorder/useGridColumnReorder.js +171 -0
- package/legacy/hooks/features/columnResize/columnResizeSelector.js +7 -0
- package/legacy/hooks/features/columnResize/columnResizeState.js +1 -0
- package/legacy/hooks/features/columnResize/index.js +2 -0
- package/legacy/hooks/features/columnResize/useGridColumnResize.js +310 -0
- package/legacy/hooks/features/detailPanel/gridDetailPanelInterface.js +1 -0
- package/legacy/hooks/features/detailPanel/gridDetailPanelSelector.js +9 -0
- package/legacy/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +28 -0
- package/legacy/hooks/features/detailPanel/index.js +3 -0
- package/legacy/hooks/features/detailPanel/useGridDetailPanel.js +114 -0
- package/legacy/hooks/features/detailPanel/useGridDetailPanelCache.js +57 -0
- package/legacy/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +31 -0
- package/legacy/hooks/features/index.js +7 -0
- package/legacy/hooks/features/infiniteLoader/useGridInfiniteLoader.js +51 -0
- package/legacy/hooks/features/rowGrouping/createGroupingColDef.js +319 -0
- package/legacy/hooks/features/rowGrouping/gridRowGroupingInterfaces.js +1 -0
- package/legacy/hooks/features/rowGrouping/gridRowGroupingSelector.js +13 -0
- package/legacy/hooks/features/rowGrouping/gridRowGroupingUtils.js +147 -0
- package/legacy/hooks/features/rowGrouping/index.js +3 -0
- package/legacy/hooks/features/rowGrouping/useGridRowGrouping.js +210 -0
- package/legacy/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +217 -0
- package/legacy/hooks/features/treeData/gridTreeDataGroupColDef.js +24 -0
- package/legacy/hooks/features/treeData/gridTreeDataUtils.js +86 -0
- package/legacy/hooks/features/treeData/index.js +1 -0
- package/legacy/hooks/features/treeData/useGridTreeData.js +29 -0
- package/legacy/hooks/features/treeData/useGridTreeDataPreProcessors.js +153 -0
- package/legacy/hooks/index.js +1 -0
- package/legacy/hooks/utils/useGridApiContext.js +2 -0
- package/legacy/hooks/utils/useGridApiRef.js +2 -0
- package/legacy/hooks/utils/useGridRootProps.js +2 -0
- package/legacy/index.js +20 -0
- package/legacy/models/dataGridProProps.js +1 -0
- package/legacy/models/gridApiPro.js +1 -0
- package/legacy/models/gridGroupingColDefOverride.js +1 -0
- package/legacy/models/gridGroupingValueGetterParams.js +1 -0
- package/legacy/models/gridRowScrollEndParams.js +1 -0
- package/legacy/models/gridStatePro.js +1 -0
- package/legacy/models/index.js +4 -0
- package/legacy/themeAugmentation/index.js +3 -0
- package/legacy/themeAugmentation/overrides.js +1 -0
- package/legacy/themeAugmentation/props.js +1 -0
- package/legacy/typeOverloads/modules.js +1 -0
- package/legacy/typeOverloads/reexports.js +6 -0
- package/legacy/utils/domUtils.js +19 -0
- package/legacy/utils/releaseInfo.js +15 -0
- package/legacy/utils/tree/buildRowTree.js +188 -0
- package/legacy/utils/tree/sortRowTree.js +63 -0
- package/models/dataGridProProps.d.ts +174 -0
- package/models/dataGridProProps.js +1 -0
- package/models/gridApiPro.d.ts +12 -0
- package/models/gridApiPro.js +1 -0
- package/models/gridGroupingColDefOverride.d.ts +30 -0
- package/models/gridGroupingColDefOverride.js +1 -0
- package/models/gridGroupingValueGetterParams.d.ts +31 -0
- package/models/gridGroupingValueGetterParams.js +1 -0
- package/models/gridRowScrollEndParams.d.ts +18 -0
- package/models/gridRowScrollEndParams.js +1 -0
- package/models/gridStatePro.d.ts +20 -0
- package/models/gridStatePro.js +1 -0
- package/models/index.d.ts +4 -0
- package/models/index.js +4 -0
- package/models/package.json +6 -0
- package/modern/DataGridPro/DataGridPro.js +915 -0
- package/modern/DataGridPro/index.js +2 -0
- package/modern/DataGridPro/useDataGridProComponent.js +82 -0
- package/modern/DataGridPro/useDataGridProProps.js +45 -0
- package/modern/components/DataGridProColumnHeaders.js +163 -0
- package/modern/components/DataGridProVirtualScroller.js +268 -0
- package/modern/components/GridColumnPinningMenuItems.js +71 -0
- package/modern/components/GridDetailPanelToggleCell.js +125 -0
- package/modern/components/GridGroupingColumnLeafCell.js +20 -0
- package/modern/components/GridGroupingCriteriaCell.js +148 -0
- package/modern/components/GridRowGroupableColumnMenuItems.js +61 -0
- package/modern/components/GridRowGroupingColumnMenuItems.js +56 -0
- package/modern/components/GridTreeDataGroupingCell.js +158 -0
- package/modern/components/index.js +4 -0
- package/modern/hooks/features/columnPinning/gridColumnPinningInterface.js +11 -0
- package/modern/hooks/features/columnPinning/gridColumnPinningSelector.js +1 -0
- package/modern/hooks/features/columnPinning/index.js +2 -0
- package/modern/hooks/features/columnPinning/useGridColumnPinning.js +268 -0
- package/modern/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +45 -0
- package/modern/hooks/features/columnReorder/columnReorderInterfaces.js +1 -0
- package/modern/hooks/features/columnReorder/columnReorderSelector.js +3 -0
- package/modern/hooks/features/columnReorder/index.js +2 -0
- package/modern/hooks/features/columnReorder/useGridColumnReorder.js +165 -0
- package/modern/hooks/features/columnResize/columnResizeSelector.js +3 -0
- package/modern/hooks/features/columnResize/columnResizeState.js +1 -0
- package/modern/hooks/features/columnResize/index.js +2 -0
- package/modern/hooks/features/columnResize/useGridColumnResize.js +295 -0
- package/modern/hooks/features/detailPanel/gridDetailPanelInterface.js +1 -0
- package/modern/hooks/features/detailPanel/gridDetailPanelSelector.js +3 -0
- package/modern/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +26 -0
- package/modern/hooks/features/detailPanel/index.js +3 -0
- package/modern/hooks/features/detailPanel/useGridDetailPanel.js +105 -0
- package/modern/hooks/features/detailPanel/useGridDetailPanelCache.js +57 -0
- package/modern/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +28 -0
- package/modern/hooks/features/index.js +7 -0
- package/modern/hooks/features/infiniteLoader/useGridInfiniteLoader.js +52 -0
- package/modern/hooks/features/rowGrouping/createGroupingColDef.js +302 -0
- package/modern/hooks/features/rowGrouping/gridRowGroupingInterfaces.js +1 -0
- package/modern/hooks/features/rowGrouping/gridRowGroupingSelector.js +5 -0
- package/modern/hooks/features/rowGrouping/gridRowGroupingUtils.js +137 -0
- package/modern/hooks/features/rowGrouping/index.js +3 -0
- package/modern/hooks/features/rowGrouping/useGridRowGrouping.js +196 -0
- package/modern/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +203 -0
- package/modern/hooks/features/treeData/gridTreeDataGroupColDef.js +22 -0
- package/modern/hooks/features/treeData/gridTreeDataUtils.js +84 -0
- package/modern/hooks/features/treeData/index.js +1 -0
- package/modern/hooks/features/treeData/useGridTreeData.js +27 -0
- package/modern/hooks/features/treeData/useGridTreeDataPreProcessors.js +136 -0
- package/modern/hooks/index.js +1 -0
- package/modern/hooks/utils/useGridApiContext.js +2 -0
- package/modern/hooks/utils/useGridApiRef.js +2 -0
- package/modern/hooks/utils/useGridRootProps.js +2 -0
- package/modern/index.js +20 -0
- package/modern/models/dataGridProProps.js +1 -0
- package/modern/models/gridApiPro.js +1 -0
- package/modern/models/gridGroupingColDefOverride.js +1 -0
- package/modern/models/gridGroupingValueGetterParams.js +1 -0
- package/modern/models/gridRowScrollEndParams.js +1 -0
- package/modern/models/gridStatePro.js +1 -0
- package/modern/models/index.js +4 -0
- package/modern/themeAugmentation/index.js +3 -0
- package/modern/themeAugmentation/overrides.js +1 -0
- package/modern/themeAugmentation/props.js +1 -0
- package/modern/typeOverloads/modules.js +1 -0
- package/modern/typeOverloads/reexports.js +6 -0
- package/modern/utils/domUtils.js +19 -0
- package/modern/utils/releaseInfo.js +15 -0
- package/modern/utils/tree/buildRowTree.js +167 -0
- package/modern/utils/tree/sortRowTree.js +60 -0
- package/node/DataGridPro/DataGridPro.js +939 -0
- package/node/DataGridPro/index.js +30 -0
- package/node/DataGridPro/useDataGridProComponent.js +106 -0
- package/node/DataGridPro/useDataGridProProps.js +69 -0
- package/node/components/DataGridProColumnHeaders.js +189 -0
- package/node/components/DataGridProVirtualScroller.js +297 -0
- package/node/components/GridColumnPinningMenuItems.js +88 -0
- package/node/components/GridDetailPanelToggleCell.js +146 -0
- package/node/components/GridGroupingColumnLeafCell.js +38 -0
- package/node/components/GridGroupingCriteriaCell.js +170 -0
- package/node/components/GridRowGroupableColumnMenuItems.js +82 -0
- package/node/components/GridRowGroupingColumnMenuItems.js +78 -0
- package/node/components/GridTreeDataGroupingCell.js +181 -0
- package/node/components/index.js +44 -0
- package/node/hooks/features/columnPinning/gridColumnPinningInterface.js +17 -0
- package/node/hooks/features/columnPinning/gridColumnPinningSelector.js +10 -0
- package/node/hooks/features/columnPinning/index.js +31 -0
- package/node/hooks/features/columnPinning/useGridColumnPinning.js +297 -0
- package/node/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +66 -0
- package/node/hooks/features/columnReorder/columnReorderInterfaces.js +5 -0
- package/node/hooks/features/columnReorder/columnReorderSelector.js +14 -0
- package/node/hooks/features/columnReorder/index.js +18 -0
- package/node/hooks/features/columnReorder/useGridColumnReorder.js +188 -0
- package/node/hooks/features/columnResize/columnResizeSelector.js +14 -0
- package/node/hooks/features/columnResize/columnResizeState.js +5 -0
- package/node/hooks/features/columnResize/index.js +31 -0
- package/node/hooks/features/columnResize/useGridColumnResize.js +329 -0
- package/node/hooks/features/detailPanel/gridDetailPanelInterface.js +5 -0
- package/node/hooks/features/detailPanel/gridDetailPanelSelector.js +18 -0
- package/node/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +47 -0
- package/node/hooks/features/detailPanel/index.js +44 -0
- package/node/hooks/features/detailPanel/useGridDetailPanel.js +133 -0
- package/node/hooks/features/detailPanel/useGridDetailPanelCache.js +74 -0
- package/node/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +44 -0
- package/node/hooks/features/index.js +83 -0
- package/node/hooks/features/infiniteLoader/useGridInfiniteLoader.js +67 -0
- package/node/hooks/features/rowGrouping/createGroupingColDef.js +341 -0
- package/node/hooks/features/rowGrouping/gridRowGroupingInterfaces.js +5 -0
- package/node/hooks/features/rowGrouping/gridRowGroupingSelector.js +18 -0
- package/node/hooks/features/rowGrouping/gridRowGroupingUtils.js +172 -0
- package/node/hooks/features/rowGrouping/index.js +51 -0
- package/node/hooks/features/rowGrouping/useGridRowGrouping.js +232 -0
- package/node/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +227 -0
- package/node/hooks/features/treeData/gridTreeDataGroupColDef.js +35 -0
- package/node/hooks/features/treeData/gridTreeDataUtils.js +98 -0
- package/node/hooks/features/treeData/index.js +13 -0
- package/node/hooks/features/treeData/useGridTreeData.js +43 -0
- package/node/hooks/features/treeData/useGridTreeDataPreProcessors.js +164 -0
- package/node/hooks/index.js +18 -0
- package/node/hooks/utils/useGridApiContext.js +11 -0
- package/node/hooks/utils/useGridApiRef.js +11 -0
- package/node/hooks/utils/useGridRootProps.js +11 -0
- package/node/index.js +214 -0
- package/node/models/dataGridProProps.js +5 -0
- package/node/models/gridApiPro.js +5 -0
- package/node/models/gridGroupingColDefOverride.js +5 -0
- package/node/models/gridGroupingValueGetterParams.js +5 -0
- package/node/models/gridRowScrollEndParams.js +5 -0
- package/node/models/gridStatePro.js +5 -0
- package/node/models/index.js +44 -0
- package/node/themeAugmentation/index.js +31 -0
- package/node/themeAugmentation/overrides.js +5 -0
- package/node/themeAugmentation/props.js +5 -0
- package/node/typeOverloads/modules.js +5 -0
- package/node/typeOverloads/reexports.js +29 -0
- package/node/utils/domUtils.js +32 -0
- package/node/utils/releaseInfo.js +25 -0
- package/node/utils/tree/buildRowTree.js +185 -0
- package/node/utils/tree/sortRowTree.js +69 -0
- package/package.json +11 -12
- package/themeAugmentation/index.d.ts +2 -2
- package/themeAugmentation/index.js +3 -0
- package/themeAugmentation/overrides.d.ts +8 -8
- package/themeAugmentation/overrides.js +1 -0
- package/themeAugmentation/package.json +6 -0
- package/themeAugmentation/props.d.ts +19 -19
- package/themeAugmentation/props.js +1 -0
- package/typeOverloads/modules.d.ts +41 -0
- package/typeOverloads/modules.js +1 -0
- package/typeOverloads/reexports.d.ts +22 -0
- package/typeOverloads/reexports.js +6 -0
- package/utils/domUtils.d.ts +3 -0
- package/utils/domUtils.js +19 -0
- package/utils/releaseInfo.d.ts +1 -0
- package/utils/releaseInfo.js +15 -0
- package/utils/tree/buildRowTree.d.ts +47 -0
- package/utils/tree/buildRowTree.js +179 -0
- package/utils/tree/sortRowTree.d.ts +10 -0
- package/utils/tree/sortRowTree.js +60 -0
- package/LICENSE +0 -12
- package/index-cjs.js +0 -15
- package/index-esm.js +0 -15
- package/x-data-grid-pro.d.ts +0 -5495
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,235 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 5.7.0
|
|
7
|
+
|
|
8
|
+
_Mar 24, 2022_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights โจ:
|
|
11
|
+
|
|
12
|
+
- โ Add a new editing API with better support for server-side persistence and validation (#3963, #4060) @m4theushw
|
|
13
|
+
|
|
14
|
+
The new API is stable, but to avoid any breaking changes or conflicts with the old API, you must add the following flag to access it:
|
|
15
|
+
|
|
16
|
+
```tsx
|
|
17
|
+
<DataGrid experimentalFeatures={{ newEditingApi: true }} />
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
โ Users relying on the old API (legacy) don't need to worry as it will continue to work until v6.
|
|
21
|
+
|
|
22
|
+
The new API also features brand new documentation with more useful demos and guides explaining how to create custom edit components.
|
|
23
|
+
Visit the new [documentation](https://mui.com/components/data-grid/editing/) for more information.
|
|
24
|
+
|
|
25
|
+
- ๐ Documentation improvements
|
|
26
|
+
- ๐ Bug and typo fixes
|
|
27
|
+
|
|
28
|
+
### `@mui/x-data-grid@v5.7.0` / `@mui/x-data-grid-pro@v5.7.0`
|
|
29
|
+
|
|
30
|
+
#### Changes
|
|
31
|
+
|
|
32
|
+
- [DataGrid] Add column order and dimensions to the portable state (#3816) @flaviendelangle
|
|
33
|
+
- [DataGrid] Add new editing API (#3963) @m4theushw
|
|
34
|
+
- [DataGrid] Allow to customize `ColumnsPanel` with `componentsProps` prop (#4207) @alexfauquette
|
|
35
|
+
- [DataGrid] Do not unselect row when <kbd>Shift</kbd> + click on the last selected row of a range (#4196) @flaviendelangle
|
|
36
|
+
- [DataGrid] Fix `showCellRightBorder` not working in the last row (#4140) @cherniavskii
|
|
37
|
+
- [DataGrid] Fix error overlay not visible when `autoHeight` is enabled (#4110) @cherniavskii
|
|
38
|
+
- [DataGrid] Fix white blank when scrolling (#4158) @alexfauquette
|
|
39
|
+
- [DataGrid] Adjust type of the `description` prop in `GridColumnHeaderTitle` (#4247) @baahrens
|
|
40
|
+
- [DataGrid] Fix focus after stopping row edit mode (#4252) @m4theushw
|
|
41
|
+
- [DataGridPro] Fix pinned columns edge overflow with custom `borderRadius` (#4188) @socramm9
|
|
42
|
+
- [DataGridPro] Fix tab switching order with pinned columns and `editMode="row"` (#4198) @cherniavskii
|
|
43
|
+
- [l10n] Improve Persian (fa-IR) locale (#4227) @SaeedZhiany
|
|
44
|
+
- [l10n] Improve Polish (pl-PL) locale (#4153) @pbmchc
|
|
45
|
+
- [l10n] Improve Arabic (ar-SD) locale (#4212) @shadigaafar
|
|
46
|
+
- [l10n] Improve Korean (ko-KR) locale (#4245) @kyeongsoosoo
|
|
47
|
+
|
|
48
|
+
### Docs
|
|
49
|
+
|
|
50
|
+
- [docs] Clean demo (#4073) @alexfauquette
|
|
51
|
+
- [docs] Delete restore state demos (#4220) @flaviendelangle
|
|
52
|
+
- [docs] Document Print export `X-Frame-Options` limitation (#4222) @DanailH
|
|
53
|
+
- [docs] Add docs for the new editing API (#4060) @m4theushw
|
|
54
|
+
- [docs] Explain how to use `printOptions.pageStyle` (#4138) @alexfauquette
|
|
55
|
+
- [docs] Fix 301 links (#4165) @oliviertassinari
|
|
56
|
+
- [docs] Fix 404 API links (#4164) @oliviertassinari
|
|
57
|
+
- [docs] Fix broken anchor links (#4162) @alexfauquette
|
|
58
|
+
- [docs] Remove useless `apiRef` from demos (#4221) @flaviendelangle
|
|
59
|
+
- [docs] Sync the headers with core (#4195) @oliviertassinari
|
|
60
|
+
|
|
61
|
+
### Core
|
|
62
|
+
|
|
63
|
+
- [core] Add CLI to decode license key (#4126) @flaviendelangle
|
|
64
|
+
- [core] Fix Lerna package change detection (#4202) @oliviertassinari
|
|
65
|
+
- [core] Implement strategy pattern for pre-processors (#4030) @flaviendelangle
|
|
66
|
+
- [core] Keep same reference to the column visibility model if no column has changed (#4154) @m4theushw
|
|
67
|
+
- [core] Prepare `@mui/x-license-pro` for date pickers (#4123) @flaviendelangle
|
|
68
|
+
- [core] Remove datagen from `@mui/x-data-grid-generator` bundle (#4163) @m4theushw
|
|
69
|
+
- [core] Remove lodash `isDeepEqual` (#4159) @flaviendelangle
|
|
70
|
+
- [core] Use a pipe processor for `GridPreferencePanel` children (#4216) @flaviendelangle
|
|
71
|
+
- [core] Add markdown documentation for contributors (#3447) @alexfauquette
|
|
72
|
+
- [test] Add regression test for `showCellRightBorder` (#4191) @cherniavskii
|
|
73
|
+
- [test] Mock `getComputedStyle` to speed up unit tests (#4142) @m4theushw
|
|
74
|
+
- [test] Upgrade CircleCI convenience image (#4143) @m4theushw
|
|
75
|
+
|
|
76
|
+
## 5.6.1
|
|
77
|
+
|
|
78
|
+
_Mar 10, 2022_
|
|
79
|
+
|
|
80
|
+
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights โจ:
|
|
81
|
+
|
|
82
|
+
- โจ Allow to add margins or borders between rows (#3848) @m4theushw
|
|
83
|
+
|
|
84
|
+
```tsx
|
|
85
|
+
<DataGrid getRowSpacing={() => ({ top: 10, bottom: 10 })} />
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Check the [documentation](https://mui.com/components/data-grid/rows/#row-spacing) for more information.
|
|
89
|
+
|
|
90
|
+
### `@mui/x-data-grid@v5.6.1` / `@mui/x-data-grid-pro@v5.6.1`
|
|
91
|
+
|
|
92
|
+
#### Changes
|
|
93
|
+
|
|
94
|
+
- [DataGrid] Display column's filter icon if a filter is applied (#4120) @DanailH
|
|
95
|
+
- [DataGrid] Do not loop through rows to compute top level rows count when the tree is flat (#4081) @flaviendelangle
|
|
96
|
+
- [DataGrid] Rename API method (#4148) @m4theushw
|
|
97
|
+
- [DataGrid] Support extending built-in column types (#4114) @cherniavskii
|
|
98
|
+
- [DataGridPro] Re-export the components removed by mistake during bundle split (#4134) @flaviendelangle
|
|
99
|
+
|
|
100
|
+
### Docs
|
|
101
|
+
|
|
102
|
+
- [docs] Fix links to prevent duplicate search result (#4130) @siriwatknp
|
|
103
|
+
- [docs] Fix outdated links to `localeTextConstants.ts` (#4080) @patilvishal755
|
|
104
|
+
- [docs] Neglect e2e tests related to search (#4118) @siriwatknp
|
|
105
|
+
- [docs] Use regex instead of specific url in e2e-website-tests (#4121) @siriwatknp
|
|
106
|
+
|
|
107
|
+
### Core
|
|
108
|
+
|
|
109
|
+
- [core] Enforce `noImplicitAny` (#4084) @cherniavskii
|
|
110
|
+
- [core] Improve the Pro support issue template (#4082) @oliviertassinari
|
|
111
|
+
- [core] Initialize remaining states before feature hooks (#4036) @m4theushw
|
|
112
|
+
- [core] Merge `page` and `pageSize` state initializer into a single `pagination` state initializer (#4087) @flaviendelangle
|
|
113
|
+
- [core] Prepare `yarn docs:api:build` scripts for multi packages support (#4111) @flaviendelangle
|
|
114
|
+
- [core] Upgrade `@mui/monorepo` (#4149) @cherniavskii
|
|
115
|
+
- [core] Use `buildWarning` and `wrapWithWarningOnCall` for deprecated methods and wrong usages (#4056) @flaviendelangle
|
|
116
|
+
- [test] Make focus state out-of-sync warning opt-in (#4129) @m4theushw
|
|
117
|
+
- [test] Only test custom input keyboard event in edit mode (#4075) @alexfauquette
|
|
118
|
+
|
|
119
|
+
## 5.6.0
|
|
120
|
+
|
|
121
|
+
_Mar 4, 2022_
|
|
122
|
+
|
|
123
|
+
We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights โจ:
|
|
124
|
+
|
|
125
|
+
- ๐ฆ Use the same bundling scripts as those in the [material-ui](https://github.com/mui/material-ui) repository (#3965) @flaviendelangle
|
|
126
|
+
|
|
127
|
+
The code structure and the bundling strategy have been modified to provide better isolation between components.
|
|
128
|
+
The bundle size is slightly reduced, but with tree shaking, the doors are open for significant gains in the future. ๐
|
|
129
|
+
We predict that such modifications could potentially impact edge cases.
|
|
130
|
+
If you encounter problems with your build, please open an issue.
|
|
131
|
+
These issues will have high priority as part of our risk mitigation strategy.
|
|
132
|
+
|
|
133
|
+
- ๐งผ Clean and document the column selectors (#4010) @flaviendelangle
|
|
134
|
+
|
|
135
|
+
Column selectors have been renamed to improve clarity.
|
|
136
|
+
The old names have been deprecated and will be removed in v6.
|
|
137
|
+
Here are the new names and the modifications needed to get the same information with the new selectors.
|
|
138
|
+
|
|
139
|
+
| Old name | New name |
|
|
140
|
+
| ------------------------------- | ----------------------------------------- |
|
|
141
|
+
| `allGridColumnsFieldsSelector` | `gridColumnFieldsSelector` |
|
|
142
|
+
| `allGridColumnsSelector` | `gridColumnDefinitionsSelector` |
|
|
143
|
+
| `visibleGridColumnsSelector` | `gridVisibleColumnDefinitionsSelector` |
|
|
144
|
+
| `filterableGridColumnsSelector` | `gridFilterableColumnDefinitionsSelector` |
|
|
145
|
+
|
|
146
|
+
```diff
|
|
147
|
+
-const { all, lookup, columnVisibilityModel } = gridColumnsSelector(apiRef)
|
|
148
|
+
+const all = gridColumnFieldsSelector(apiRef)
|
|
149
|
+
+const lookup = gridColumnLookupSelector(apiRef)
|
|
150
|
+
+const columnVisibilityModel = gridColumnVisibilityModelSelector(apiRef)
|
|
151
|
+
|
|
152
|
+
-const filterableFields = filterableGridColumnsIdsSelector(apiRef);
|
|
153
|
+
+const lookup = gridFilterableColumnLookupSelector(apiRef);
|
|
154
|
+
+const filterableFields = gridColumnFieldsSelector(apiRef).filter(field => lookup[field]);
|
|
155
|
+
|
|
156
|
+
-const visibleColumnsNumber = visibleGridColumnsLengthSelector(apiRef);
|
|
157
|
+
+const visibleColumnsNumber = gridVisibleColumnDefinitionsSelector(apiRef).length;
|
|
158
|
+
|
|
159
|
+
-const { totalWidth, positions } = gridColumnsMetaSelector(apiRef);
|
|
160
|
+
+const totalWidth = gridColumnsTotalWidthSelector(apiRef);
|
|
161
|
+
+const positions = gridColumnPositionsSelector(apiRef);
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
- ๐ Documentation improvements
|
|
165
|
+
- ๐ Bug and typo fixes
|
|
166
|
+
|
|
167
|
+
### `@mui/x-data-grid@v5.6.0` / `@mui/x-data-grid-pro@v5.6.0`
|
|
168
|
+
|
|
169
|
+
#### Changes
|
|
170
|
+
|
|
171
|
+
- [DataGrid] Add slot for filter panel delete icon (#4069) @Hameezr
|
|
172
|
+
- [DataGrid] Add specific label for `linkOperator` (#3915) @alexfauquette
|
|
173
|
+
- [DataGrid] Allow for truncated and multiline content in grid cells (#3955) @DanailH
|
|
174
|
+
- [DataGrid] Allow to navigate between cells with keyboard once inside an `actions` column (#3375) @m4theushw
|
|
175
|
+
- [DataGrid] Fix desynchronization between rows and header when sorting (#4058) @alexfauquette
|
|
176
|
+
- [DataGrid] Clean and document the columns selector (#4010) @flaviendelangle
|
|
177
|
+
- [DataGrid] Deprecate and stop typing the api params of `GridCellParams`/`GridValueGetterParams` and affiliated (#4089) @ flaviendelangle
|
|
178
|
+
- [DataGrid] Differentiate the Pro and Community versions of `GridState`, `GridApi` and `GridApiRef` (#3648) @flaviendelangle
|
|
179
|
+
- [DataGrid] Fix column selection for print export (#3917) @alexfauquette
|
|
180
|
+
- [DataGrid] Fix horizontal scroll not working on empty grid (#3821) @cherniavskii
|
|
181
|
+
- [DataGrid] Fix input element in custom header (#3624) @alexfauquette
|
|
182
|
+
- [DataGrid] Improve `singleSelect` filter performance (#3956) @cherniavskii
|
|
183
|
+
- [DataGrid] Improve custom overlay slots positioning (#3832) @cherniavskii
|
|
184
|
+
- [DataGrid] Improve `flex` implementation match the W3C standard (#4006) @cherniavskii
|
|
185
|
+
- [DataGrid] Improve the invalid `sortModel` and `filterModel` warnings (#3671) @flaviendelangle
|
|
186
|
+
- [DataGrid] Memoize `Popper` modifiers passed to panel (#3975) @m4theushw
|
|
187
|
+
- [DataGrid] Prevent focus while `Popper` is not fully positioned (#4067) @m4theushw
|
|
188
|
+
- [DataGrid] Remove `GridCell`'s `borderBottom` when it is the last row (#3519) @DanailH
|
|
189
|
+
- [DataGrid] Remove padding from the header title (#3691) @valenfv
|
|
190
|
+
- [DataGrid] Reuse previous `rowNode` when building tree and the new `rowNode` is equal to the previous one (#3961) @flaviendelangle
|
|
191
|
+
- [DataGrid] Remove last filter item when no value to clean and close the filter panel (#3910) @alexfauquette
|
|
192
|
+
- [DataGrid] Send warning when the `rowCount` is not provided while using server pagination (#3902) @alexfauquette
|
|
193
|
+
- [DataGrid] Stop checkbox ripple on blur (#3835) @m4theushw
|
|
194
|
+
- [DataGrid] Stop calling `onRowClick` when clicking in cells with interactive elements (#3929) @m4theushw
|
|
195
|
+
- [DataGrid] Use only `headerName` when available to search column (#3959) @pkratz
|
|
196
|
+
- [DataGrid] Use the bundling scripts as the packages published by the [https://github.com/mui/material-ui](material-ui) repository (#3965) @flaviendelangle
|
|
197
|
+
- [DataGridPro] Add `unstable_setRowHeight` method to `apiRef` (#3751) @cherniavskii
|
|
198
|
+
- [DataGridPro] Always export the `pageSize` and `page` when it has been initialized or is being controlled (#3908) @flaviendelangle
|
|
199
|
+
- [DataGridPro] Disable export for detail panel column (#4057) @gustavhagland
|
|
200
|
+
- [DataGridPremium] Support `valueFormatter` on the grouping column (#4022) @flaviendelangle
|
|
201
|
+
- [l10n] Improve Bulgarian (bg-BG) locale (#3949) @DanailH
|
|
202
|
+
- [l10n] Improve German (de-DE) locale (#4077) @sebastianfrey
|
|
203
|
+
- [l10n] Improve Hebrew (he-IL) locale (#3930) @ColdAtNight
|
|
204
|
+
|
|
205
|
+
### Docs
|
|
206
|
+
|
|
207
|
+
- [docs] Add example of custom operator based on built-in ones (#3911) @flaviendelangle
|
|
208
|
+
- [docs] Add missing words in the filtering page (#4079) @flaviendelangle
|
|
209
|
+
- [docs] Avoid crash in demos using row grouping and custom formatted cells (#4065) @m4theushw
|
|
210
|
+
- [docs] Fix `Commodity` and `Employee` CSV export of the `country` column (#3912) @DanailH
|
|
211
|
+
- [docs] Fix links to the GitHub repository (#4005) @oliviertassinari
|
|
212
|
+
- [docs] Fix typo (#3923) @oliviertassinari
|
|
213
|
+
- [docs] Fix typo (#4016) @MathisBurger
|
|
214
|
+
- [docs] Fix typo in client-side validation example (#4066) @krallj
|
|
215
|
+
- [docs] Remove useless hide id column (#4021) @alexfauquette
|
|
216
|
+
|
|
217
|
+
### Core
|
|
218
|
+
|
|
219
|
+
- [core] Allows to add custom export item (#3891) @alexfauquette
|
|
220
|
+
- [core] Remove the `_modules_` folder (#3953) @flaviendelangle
|
|
221
|
+
- [core] Fix typo in `useGridScroll.ts` (#3973) @HexM7
|
|
222
|
+
- [core] Fix typos, improve wordings and other various fixes (#4062) @flaviendelangle
|
|
223
|
+
- [core] Initialize states before feature hooks (#3896) @m4theushw
|
|
224
|
+
- [code] Make `@mui/x-data-grid-pro` import shared code from `@mui/x-data-grid` (#3688) @flaviendelangle
|
|
225
|
+
- [core] Migrate `@mui/x-license-pro` to the new bundling strategy (#3738) @flaviendelangle
|
|
226
|
+
- [core] Reduce usage of `useGridSelector` inside feature hooks (#3978) @flaviendelangle
|
|
227
|
+
- [core] Retry l10n CI if 502 returned (#3977) @alexfauquette
|
|
228
|
+
- [core] Update release instructions (#3920) @cherniavskii
|
|
229
|
+
- [core] Use international locale format (#3921) @oliviertassinari
|
|
230
|
+
- [core] Fix license generating script (#4055) @Janpot
|
|
231
|
+
- [test] Add screenshot of the filter panel (#4072) @alexfauquette
|
|
232
|
+
- [test] Reduce memory usage to run unit tests (#4031) @m4theushw
|
|
233
|
+
- [test] Skip test on Firefox (#3926) @m4theushw
|
|
234
|
+
|
|
6
235
|
## 5.5.1
|
|
7
236
|
|
|
8
237
|
_Feb 10, 2022_
|