@mui/x-data-grid-pro 7.12.1 → 7.14.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 +162 -1
- package/DataGridPro/DataGridPro.js +10 -1
- package/components/GridDataSourceTreeDataGroupingCell.js +4 -4
- package/components/headerFiltering/GridHeaderFilterCell.js +2 -1
- package/esm/DataGridPro/DataGridPro.js +10 -1
- package/esm/components/GridDataSourceTreeDataGroupingCell.js +4 -4
- package/esm/components/headerFiltering/GridHeaderFilterCell.js +2 -1
- package/esm/hooks/features/dataSource/gridDataSourceSelector.js +4 -2
- package/esm/hooks/features/rows/index.js +1 -0
- package/esm/hooks/features/rows/useGridRowAriaAttributes.js +37 -0
- package/esm/hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js +1 -1
- package/esm/hooks/features/serverSideTreeData/utils.js +3 -0
- package/esm/hooks/features/treeData/gridTreeDataUtils.js +7 -0
- package/esm/hooks/utils/useGridAriaAttributes.js +11 -0
- package/esm/internals/index.js +7 -1
- package/esm/utils/releaseInfo.js +1 -1
- package/esm/utils/tree/createRowTree.js +1 -1
- package/esm/utils/tree/insertDataRowInTree.js +3 -3
- package/esm/utils/tree/updateRowTree.js +4 -4
- package/hooks/features/dataSource/gridDataSourceSelector.d.ts +5 -3
- package/hooks/features/dataSource/gridDataSourceSelector.js +4 -2
- package/hooks/features/rows/index.d.ts +1 -0
- package/hooks/features/rows/index.js +16 -0
- package/hooks/features/rows/useGridRowAriaAttributes.d.ts +3 -0
- package/hooks/features/rows/useGridRowAriaAttributes.js +46 -0
- package/hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js +1 -1
- package/hooks/features/serverSideTreeData/utils.d.ts +1 -0
- package/hooks/features/serverSideTreeData/utils.js +3 -0
- package/hooks/features/treeData/gridTreeDataUtils.js +7 -0
- package/hooks/utils/useGridAriaAttributes.d.ts +2 -0
- package/hooks/utils/useGridAriaAttributes.js +19 -0
- package/index.js +1 -1
- package/internals/index.d.ts +2 -0
- package/internals/index.js +16 -0
- package/models/dataGridProProps.d.ts +1 -1
- package/modern/DataGridPro/DataGridPro.js +10 -1
- package/modern/components/GridDataSourceTreeDataGroupingCell.js +4 -4
- package/modern/components/headerFiltering/GridHeaderFilterCell.js +2 -1
- package/modern/hooks/features/dataSource/gridDataSourceSelector.js +4 -2
- package/modern/hooks/features/rows/index.js +1 -0
- package/modern/hooks/features/rows/useGridRowAriaAttributes.js +37 -0
- package/modern/hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js +1 -1
- package/modern/hooks/features/serverSideTreeData/utils.js +3 -0
- package/modern/hooks/features/treeData/gridTreeDataUtils.js +7 -0
- package/modern/hooks/utils/useGridAriaAttributes.js +11 -0
- package/modern/index.js +1 -1
- package/modern/internals/index.js +7 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/modern/utils/tree/createRowTree.js +1 -1
- package/modern/utils/tree/insertDataRowInTree.js +3 -3
- package/modern/utils/tree/updateRowTree.js +4 -4
- package/package.json +6 -6
- package/utils/releaseInfo.js +1 -1
- package/utils/tree/createRowTree.js +1 -1
- package/utils/tree/insertDataRowInTree.d.ts +2 -2
- package/utils/tree/insertDataRowInTree.js +3 -3
- package/utils/tree/models.d.ts +1 -1
- package/utils/tree/updateRowTree.js +4 -4
package/utils/tree/models.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface RowTreeBuilderGroupingCriterion {
|
|
|
6
6
|
export interface RowTreeBuilderNode {
|
|
7
7
|
id: GridRowId;
|
|
8
8
|
path: RowTreeBuilderGroupingCriterion[];
|
|
9
|
-
|
|
9
|
+
serverChildrenCount?: number;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Callback called when trying to insert a data row in the tree in place of an already existing data row.
|
|
@@ -20,7 +20,7 @@ const updateRowTree = params => {
|
|
|
20
20
|
const {
|
|
21
21
|
id,
|
|
22
22
|
path,
|
|
23
|
-
|
|
23
|
+
serverChildrenCount
|
|
24
24
|
} = params.nodes.inserted[i];
|
|
25
25
|
(0, _insertDataRowInTree.insertDataRowInTree)({
|
|
26
26
|
previousTree: params.previousTree,
|
|
@@ -29,7 +29,7 @@ const updateRowTree = params => {
|
|
|
29
29
|
updatedGroupsManager,
|
|
30
30
|
id,
|
|
31
31
|
path,
|
|
32
|
-
|
|
32
|
+
serverChildrenCount,
|
|
33
33
|
onDuplicatePath: params.onDuplicatePath,
|
|
34
34
|
isGroupExpandedByDefault: params.isGroupExpandedByDefault,
|
|
35
35
|
defaultGroupingExpansionDepth: params.defaultGroupingExpansionDepth,
|
|
@@ -49,7 +49,7 @@ const updateRowTree = params => {
|
|
|
49
49
|
const {
|
|
50
50
|
id,
|
|
51
51
|
path,
|
|
52
|
-
|
|
52
|
+
serverChildrenCount
|
|
53
53
|
} = params.nodes.modified[i];
|
|
54
54
|
const pathInPreviousTree = (0, _utils.getNodePathInTree)({
|
|
55
55
|
tree,
|
|
@@ -70,7 +70,7 @@ const updateRowTree = params => {
|
|
|
70
70
|
updatedGroupsManager,
|
|
71
71
|
id,
|
|
72
72
|
path,
|
|
73
|
-
|
|
73
|
+
serverChildrenCount,
|
|
74
74
|
onDuplicatePath: params.onDuplicatePath,
|
|
75
75
|
isGroupExpandedByDefault: params.isGroupExpandedByDefault,
|
|
76
76
|
defaultGroupingExpansionDepth: params.defaultGroupingExpansionDepth,
|