@mui/x-data-grid 8.0.0-alpha.7 → 8.0.0-alpha.8
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 +115 -0
- package/DataGrid/DataGrid.js +4 -5
- package/DataGrid/useDataGridComponent.js +1 -1
- package/components/GridHeaders.js +2 -2
- package/components/GridRow.d.ts +5 -9
- package/components/GridRow.js +26 -78
- package/components/GridSkeletonLoadingOverlay.js +18 -18
- package/components/cell/GridCell.d.ts +9 -16
- package/components/cell/GridCell.js +17 -35
- package/components/columnHeaders/GridColumnGroupHeader.d.ts +5 -5
- package/components/columnHeaders/GridColumnGroupHeader.js +7 -10
- package/components/columnHeaders/GridColumnHeaderItem.d.ts +5 -5
- package/components/columnHeaders/GridColumnHeaderItem.js +13 -12
- package/components/columnSelection/GridCellCheckboxRenderer.js +2 -2
- package/components/containers/GridRoot.d.ts +2 -2
- package/components/containers/GridRoot.js +14 -6
- package/components/containers/GridRootStyles.js +7 -0
- package/components/panel/filterPanel/GridFilterInputBoolean.d.ts +1 -0
- package/components/panel/filterPanel/GridFilterInputBoolean.js +12 -16
- package/components/panel/filterPanel/GridFilterInputDate.d.ts +2 -1
- package/components/panel/filterPanel/GridFilterInputDate.js +32 -29
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
- package/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
- package/components/panel/filterPanel/GridFilterInputSingleSelect.d.ts +1 -0
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +13 -17
- package/components/panel/filterPanel/GridFilterInputValue.d.ts +1 -0
- package/components/panel/filterPanel/GridFilterInputValue.js +34 -28
- package/components/panel/filterPanel/GridFilterInputValueProps.d.ts +1 -1
- package/components/virtualization/GridVirtualScrollbar.js +11 -12
- package/components/virtualization/GridVirtualScroller.js +4 -4
- package/constants/gridClasses.d.ts +12 -0
- package/constants/gridClasses.js +1 -1
- package/constants/localeTextConstants.js +1 -0
- package/context/GridContextProvider.d.ts +1 -1
- package/hooks/features/clipboard/useGridClipboard.d.ts +1 -1
- package/hooks/features/columnGrouping/useGridColumnGrouping.d.ts +1 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +5 -7
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +34 -76
- package/hooks/features/columnMenu/useGridColumnMenu.d.ts +1 -1
- package/hooks/features/columns/gridColumnsUtils.d.ts +3 -3
- package/hooks/features/columns/useGridColumnSpanning.d.ts +1 -1
- package/hooks/features/columns/useGridColumns.d.ts +1 -1
- package/hooks/features/density/useGridDensity.d.ts +1 -1
- package/hooks/features/dimensions/useGridDimensions.d.ts +1 -1
- package/hooks/features/editing/useGridCellEditing.d.ts +1 -1
- package/hooks/features/editing/useGridCellEditing.js +1 -1
- package/hooks/features/editing/useGridEditing.d.ts +1 -1
- package/hooks/features/editing/useGridRowEditing.d.ts +1 -1
- package/hooks/features/editing/useGridRowEditing.js +1 -1
- package/hooks/features/events/useGridEvents.d.ts +1 -1
- package/hooks/features/export/serializers/csvSerializer.d.ts +1 -1
- package/hooks/features/export/useGridCsvExport.d.ts +1 -1
- package/hooks/features/export/useGridPrintExport.d.ts +1 -1
- package/hooks/features/export/utils.d.ts +1 -1
- package/hooks/features/filter/gridFilterSelector.d.ts +1 -1
- package/hooks/features/filter/gridFilterSelector.js +6 -1
- package/hooks/features/filter/gridFilterUtils.d.ts +6 -6
- package/hooks/features/filter/gridFilterUtils.js +3 -3
- package/hooks/features/filter/useGridFilter.d.ts +1 -1
- package/hooks/features/focus/useGridFocus.d.ts +1 -1
- package/hooks/features/headerFiltering/useGridHeaderFiltering.d.ts +1 -1
- package/hooks/features/keyboardNavigation/utils.d.ts +2 -2
- package/hooks/features/listView/useGridListView.d.ts +1 -1
- package/hooks/features/pagination/gridPaginationInterfaces.d.ts +3 -0
- package/hooks/features/pagination/gridPaginationSelector.d.ts +21 -2
- package/hooks/features/pagination/gridPaginationSelector.js +39 -1
- package/hooks/features/pagination/useGridPagination.d.ts +2 -2
- package/hooks/features/pagination/useGridPagination.js +5 -3
- package/hooks/features/pagination/useGridPaginationMeta.d.ts +1 -1
- package/hooks/features/pagination/useGridPaginationModel.d.ts +1 -1
- package/hooks/features/pagination/useGridPaginationModel.js +23 -1
- package/hooks/features/pagination/useGridRowCount.d.ts +1 -1
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.d.ts +1 -1
- package/hooks/features/rowSelection/useGridRowSelection.d.ts +1 -1
- package/hooks/features/rowSelection/utils.d.ts +2 -2
- package/hooks/features/rows/gridRowSpanningUtils.d.ts +1 -1
- package/hooks/features/rows/gridRowsSelector.js +1 -1
- package/hooks/features/rows/gridRowsUtils.d.ts +3 -3
- package/hooks/features/rows/useGridParamsApi.d.ts +1 -1
- package/hooks/features/rows/useGridRowSpanning.d.ts +1 -1
- package/hooks/features/rows/useGridRows.d.ts +1 -1
- package/hooks/features/rows/useGridRows.js +2 -2
- package/hooks/features/rows/useGridRowsMeta.d.ts +1 -1
- package/hooks/features/scroll/useGridScroll.d.ts +1 -1
- package/hooks/features/sorting/gridSortingUtils.d.ts +2 -2
- package/hooks/features/sorting/gridSortingUtils.js +2 -2
- package/hooks/features/sorting/useGridSorting.d.ts +1 -1
- package/hooks/features/statePersistence/useGridStatePersistence.d.ts +1 -1
- package/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +6 -0
- package/hooks/features/virtualization/gridFocusedVirtualCellSelector.js +42 -0
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +2 -1
- package/hooks/features/virtualization/useGridVirtualScroller.js +91 -42
- package/hooks/features/virtualization/useGridVirtualization.d.ts +1 -1
- package/hooks/utils/useGridApiContext.d.ts +1 -1
- package/hooks/utils/useGridApiEventHandler.d.ts +3 -3
- package/hooks/utils/useGridNativeEventListener.d.ts +1 -1
- package/hooks/utils/useGridPrivateApiContext.d.ts +1 -1
- package/hooks/utils/useGridSelector.d.ts +1 -1
- package/hooks/utils/useGridVisibleRows.d.ts +7 -5
- package/hooks/utils/useGridVisibleRows.js +5 -28
- package/index.js +1 -1
- package/internals/constants.d.ts +6 -0
- package/internals/constants.js +8 -1
- package/internals/index.d.ts +1 -0
- package/internals/index.js +1 -0
- package/internals/utils/attachPinnedStyle.d.ts +2 -0
- package/internals/utils/attachPinnedStyle.js +9 -0
- package/internals/utils/getPinnedCellOffset.d.ts +3 -3
- package/internals/utils/getPinnedCellOffset.js +6 -7
- package/internals/utils/index.d.ts +1 -0
- package/internals/utils/index.js +2 -1
- package/locales/arSD.js +2 -0
- package/locales/beBY.js +1 -0
- package/locales/bgBG.js +2 -0
- package/locales/csCZ.js +2 -0
- package/locales/daDK.js +2 -0
- package/locales/deDE.js +2 -0
- package/locales/elGR.js +2 -0
- package/locales/esES.js +2 -0
- package/locales/faIR.js +2 -0
- package/locales/fiFI.js +2 -0
- package/locales/frFR.js +2 -0
- package/locales/heIL.js +2 -0
- package/locales/hrHR.js +2 -0
- package/locales/huHU.js +2 -0
- package/locales/isIS.js +2 -0
- package/locales/itIT.js +2 -0
- package/locales/jaJP.js +2 -0
- package/locales/koKR.js +2 -0
- package/locales/nbNO.js +2 -0
- package/locales/nlNL.js +2 -0
- package/locales/nnNO.js +2 -0
- package/locales/plPL.js +2 -0
- package/locales/ptBR.js +2 -0
- package/locales/ptPT.js +2 -0
- package/locales/roRO.js +2 -0
- package/locales/ruRU.js +2 -0
- package/locales/skSK.js +2 -0
- package/locales/svSE.js +2 -0
- package/locales/trTR.js +2 -0
- package/locales/ukUA.js +2 -0
- package/locales/urPK.js +2 -0
- package/locales/viVN.js +2 -0
- package/locales/zhCN.js +2 -0
- package/locales/zhHK.js +2 -0
- package/locales/zhTW.js +2 -0
- package/material/index.js +2 -1
- package/models/api/gridLocaleTextApi.d.ts +1 -0
- package/models/colDef/gridColDef.d.ts +8 -8
- package/models/events/gridEventLookup.d.ts +6 -1
- package/models/gridExport.d.ts +1 -1
- package/models/gridFilterOperator.d.ts +1 -1
- package/models/gridIconSlotsComponent.d.ts +5 -0
- package/models/gridStateCommunity.d.ts +4 -0
- package/modern/DataGrid/DataGrid.js +4 -5
- package/modern/DataGrid/useDataGridComponent.js +1 -1
- package/modern/components/GridHeaders.js +2 -2
- package/modern/components/GridRow.js +26 -78
- package/modern/components/GridSkeletonLoadingOverlay.js +18 -18
- package/modern/components/cell/GridCell.js +17 -35
- package/modern/components/columnHeaders/GridColumnGroupHeader.js +7 -10
- package/modern/components/columnHeaders/GridColumnHeaderItem.js +13 -12
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +2 -2
- package/modern/components/containers/GridRoot.js +14 -6
- package/modern/components/containers/GridRootStyles.js +7 -0
- package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +12 -16
- package/modern/components/panel/filterPanel/GridFilterInputDate.js +32 -29
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +13 -17
- package/modern/components/panel/filterPanel/GridFilterInputValue.js +34 -28
- package/modern/components/virtualization/GridVirtualScrollbar.js +11 -12
- package/modern/components/virtualization/GridVirtualScroller.js +4 -4
- package/modern/constants/gridClasses.js +1 -1
- package/modern/constants/localeTextConstants.js +1 -0
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +34 -76
- package/modern/hooks/features/editing/useGridCellEditing.js +1 -1
- package/modern/hooks/features/editing/useGridRowEditing.js +1 -1
- package/modern/hooks/features/filter/gridFilterSelector.js +6 -1
- package/modern/hooks/features/filter/gridFilterUtils.js +3 -3
- package/modern/hooks/features/pagination/gridPaginationSelector.js +39 -1
- package/modern/hooks/features/pagination/useGridPagination.js +5 -3
- package/modern/hooks/features/pagination/useGridPaginationModel.js +23 -1
- package/modern/hooks/features/rows/gridRowsSelector.js +1 -1
- package/modern/hooks/features/rows/useGridRows.js +2 -2
- package/modern/hooks/features/sorting/gridSortingUtils.js +2 -2
- package/modern/hooks/features/virtualization/gridFocusedVirtualCellSelector.js +42 -0
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +91 -42
- package/modern/hooks/utils/useGridVisibleRows.js +5 -28
- package/modern/index.js +1 -1
- package/modern/internals/constants.js +8 -1
- package/modern/internals/index.js +1 -0
- package/modern/internals/utils/attachPinnedStyle.js +9 -0
- package/modern/internals/utils/getPinnedCellOffset.js +6 -7
- package/modern/internals/utils/index.js +2 -1
- package/modern/locales/arSD.js +2 -0
- package/modern/locales/beBY.js +1 -0
- package/modern/locales/bgBG.js +2 -0
- package/modern/locales/csCZ.js +2 -0
- package/modern/locales/daDK.js +2 -0
- package/modern/locales/deDE.js +2 -0
- package/modern/locales/elGR.js +2 -0
- package/modern/locales/esES.js +2 -0
- package/modern/locales/faIR.js +2 -0
- package/modern/locales/fiFI.js +2 -0
- package/modern/locales/frFR.js +2 -0
- package/modern/locales/heIL.js +2 -0
- package/modern/locales/hrHR.js +2 -0
- package/modern/locales/huHU.js +2 -0
- package/modern/locales/isIS.js +2 -0
- package/modern/locales/itIT.js +2 -0
- package/modern/locales/jaJP.js +2 -0
- package/modern/locales/koKR.js +2 -0
- package/modern/locales/nbNO.js +2 -0
- package/modern/locales/nlNL.js +2 -0
- package/modern/locales/nnNO.js +2 -0
- package/modern/locales/plPL.js +2 -0
- package/modern/locales/ptBR.js +2 -0
- package/modern/locales/ptPT.js +2 -0
- package/modern/locales/roRO.js +2 -0
- package/modern/locales/ruRU.js +2 -0
- package/modern/locales/skSK.js +2 -0
- package/modern/locales/svSE.js +2 -0
- package/modern/locales/trTR.js +2 -0
- package/modern/locales/ukUA.js +2 -0
- package/modern/locales/urPK.js +2 -0
- package/modern/locales/viVN.js +2 -0
- package/modern/locales/zhCN.js +2 -0
- package/modern/locales/zhHK.js +2 -0
- package/modern/locales/zhTW.js +2 -0
- package/modern/material/index.js +2 -1
- package/modern/utils/cellBorderUtils.js +5 -5
- package/modern/utils/domUtils.js +7 -2
- package/modern/utils/rtlFlipSide.js +22 -0
- package/node/DataGrid/DataGrid.js +2 -3
- package/node/DataGrid/useDataGridComponent.js +1 -1
- package/node/components/GridHeaders.js +2 -2
- package/node/components/GridRow.js +25 -77
- package/node/components/GridSkeletonLoadingOverlay.js +17 -17
- package/node/components/cell/GridCell.js +18 -36
- package/node/components/columnHeaders/GridColumnGroupHeader.js +7 -10
- package/node/components/columnHeaders/GridColumnHeaderItem.js +13 -12
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
- package/node/components/containers/GridRoot.js +14 -6
- package/node/components/containers/GridRootStyles.js +7 -0
- package/node/components/panel/filterPanel/GridFilterInputBoolean.js +12 -16
- package/node/components/panel/filterPanel/GridFilterInputDate.js +31 -28
- package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
- package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
- package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +13 -17
- package/node/components/panel/filterPanel/GridFilterInputValue.js +33 -27
- package/node/components/virtualization/GridVirtualScrollbar.js +11 -12
- package/node/components/virtualization/GridVirtualScroller.js +4 -4
- package/node/constants/gridClasses.js +1 -1
- package/node/constants/localeTextConstants.js +1 -0
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +32 -74
- package/node/hooks/features/editing/useGridCellEditing.js +1 -1
- package/node/hooks/features/editing/useGridRowEditing.js +1 -1
- package/node/hooks/features/filter/gridFilterSelector.js +6 -1
- package/node/hooks/features/filter/gridFilterUtils.js +3 -3
- package/node/hooks/features/pagination/gridPaginationSelector.js +41 -3
- package/node/hooks/features/pagination/useGridPagination.js +5 -3
- package/node/hooks/features/pagination/useGridPaginationModel.js +23 -1
- package/node/hooks/features/rows/gridRowsSelector.js +1 -1
- package/node/hooks/features/rows/useGridRows.js +1 -1
- package/node/hooks/features/sorting/gridSortingUtils.js +2 -2
- package/node/hooks/features/virtualization/gridFocusedVirtualCellSelector.js +49 -0
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +91 -42
- package/node/hooks/utils/useGridVisibleRows.js +3 -28
- package/node/index.js +1 -1
- package/node/internals/constants.js +9 -2
- package/node/internals/index.js +12 -0
- package/node/internals/utils/attachPinnedStyle.js +15 -0
- package/node/internals/utils/getPinnedCellOffset.js +6 -7
- package/node/internals/utils/index.js +11 -0
- package/node/locales/arSD.js +2 -0
- package/node/locales/beBY.js +1 -0
- package/node/locales/bgBG.js +2 -0
- package/node/locales/csCZ.js +2 -0
- package/node/locales/daDK.js +2 -0
- package/node/locales/deDE.js +2 -0
- package/node/locales/elGR.js +2 -0
- package/node/locales/esES.js +2 -0
- package/node/locales/faIR.js +2 -0
- package/node/locales/fiFI.js +2 -0
- package/node/locales/frFR.js +2 -0
- package/node/locales/heIL.js +2 -0
- package/node/locales/hrHR.js +2 -0
- package/node/locales/huHU.js +2 -0
- package/node/locales/isIS.js +2 -0
- package/node/locales/itIT.js +2 -0
- package/node/locales/jaJP.js +2 -0
- package/node/locales/koKR.js +2 -0
- package/node/locales/nbNO.js +2 -0
- package/node/locales/nlNL.js +2 -0
- package/node/locales/nnNO.js +2 -0
- package/node/locales/plPL.js +2 -0
- package/node/locales/ptBR.js +2 -0
- package/node/locales/ptPT.js +2 -0
- package/node/locales/roRO.js +2 -0
- package/node/locales/ruRU.js +2 -0
- package/node/locales/skSK.js +2 -0
- package/node/locales/svSE.js +2 -0
- package/node/locales/trTR.js +2 -0
- package/node/locales/ukUA.js +2 -0
- package/node/locales/urPK.js +2 -0
- package/node/locales/viVN.js +2 -0
- package/node/locales/zhCN.js +2 -0
- package/node/locales/zhHK.js +2 -0
- package/node/locales/zhTW.js +2 -0
- package/node/material/index.js +2 -1
- package/node/utils/cellBorderUtils.js +5 -5
- package/node/utils/domUtils.js +7 -2
- package/node/utils/rtlFlipSide.js +29 -0
- package/package.json +2 -2
- package/utils/cellBorderUtils.d.ts +3 -3
- package/utils/cellBorderUtils.js +5 -5
- package/utils/createSelector.d.ts +1 -1
- package/utils/domUtils.js +7 -2
- package/utils/getPublicApiRef.d.ts +1 -1
- package/utils/rtlFlipSide.d.ts +2 -0
- package/utils/rtlFlipSide.js +22 -0
package/locales/csCZ.js
CHANGED
|
@@ -110,6 +110,8 @@ const csCZGrid = {
|
|
|
110
110
|
'headerFilterOperator>=': 'Větší než nebo rovno',
|
|
111
111
|
'headerFilterOperator<': 'Menší než',
|
|
112
112
|
'headerFilterOperator<=': 'Menší než nebo rovno',
|
|
113
|
+
// headerFilterClear: 'Clear filter',
|
|
114
|
+
|
|
113
115
|
// Filter values text
|
|
114
116
|
filterValueAny: 'jakýkoliv',
|
|
115
117
|
filterValueTrue: 'ano',
|
package/locales/daDK.js
CHANGED
|
@@ -102,6 +102,8 @@ const daDKGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Større end eller lig med',
|
|
103
103
|
'headerFilterOperator<': 'Mindre end',
|
|
104
104
|
'headerFilterOperator<=': 'Mindre end eller lig med',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'hvilken som helst',
|
|
107
109
|
filterValueTrue: 'positiv',
|
package/locales/deDE.js
CHANGED
|
@@ -100,6 +100,8 @@ const deDEGrid = {
|
|
|
100
100
|
'headerFilterOperator>=': 'Größer als oder gleich',
|
|
101
101
|
'headerFilterOperator<': 'Kleiner als',
|
|
102
102
|
'headerFilterOperator<=': 'Kleiner als oder gleich',
|
|
103
|
+
// headerFilterClear: 'Clear filter',
|
|
104
|
+
|
|
103
105
|
// Filter values text
|
|
104
106
|
filterValueAny: 'Beliebig',
|
|
105
107
|
filterValueTrue: 'Ja',
|
package/locales/elGR.js
CHANGED
|
@@ -102,6 +102,8 @@ const elGRGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Μεγαλύτερο ή ίσο με',
|
|
103
103
|
'headerFilterOperator<': 'Μικρότερο από',
|
|
104
104
|
'headerFilterOperator<=': 'Μικρότερο ή ίσο με',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'οποιοδήποτε',
|
|
107
109
|
filterValueTrue: 'αληθές',
|
package/locales/esES.js
CHANGED
|
@@ -100,6 +100,8 @@ const esESGrid = {
|
|
|
100
100
|
'headerFilterOperator>=': 'Es mayor o igual que',
|
|
101
101
|
'headerFilterOperator<': 'Es menor que',
|
|
102
102
|
'headerFilterOperator<=': 'Es menor o igual que',
|
|
103
|
+
// headerFilterClear: 'Clear filter',
|
|
104
|
+
|
|
103
105
|
// Filter values text
|
|
104
106
|
filterValueAny: 'cualquiera',
|
|
105
107
|
filterValueTrue: 'verdadero',
|
package/locales/faIR.js
CHANGED
|
@@ -102,6 +102,8 @@ const faIRGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'بزرگتر یا مساوی',
|
|
103
103
|
'headerFilterOperator<': 'کوچکتر',
|
|
104
104
|
'headerFilterOperator<=': 'کوچکتر یا مساوی',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'هرچیزی',
|
|
107
109
|
filterValueTrue: 'صحیح',
|
package/locales/fiFI.js
CHANGED
|
@@ -102,6 +102,8 @@ const fiFIGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Enemmän tai yhtä paljon kuin',
|
|
103
103
|
'headerFilterOperator<': 'Vähemmän kuin',
|
|
104
104
|
'headerFilterOperator<=': 'Vähemmän tai yhtä paljon kuin',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'mikä tahansa',
|
|
107
109
|
filterValueTrue: 'tosi',
|
package/locales/frFR.js
CHANGED
|
@@ -102,6 +102,8 @@ const frFRGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Est supérieur ou égal à',
|
|
103
103
|
'headerFilterOperator<': 'Est inférieur à',
|
|
104
104
|
'headerFilterOperator<=': 'Est inférieur ou égal à',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'tous',
|
|
107
109
|
filterValueTrue: 'vrai',
|
package/locales/heIL.js
CHANGED
|
@@ -100,6 +100,8 @@ const heILGrid = {
|
|
|
100
100
|
'headerFilterOperator>=': 'גדול שווה ל-',
|
|
101
101
|
'headerFilterOperator<': 'קטן מ-',
|
|
102
102
|
'headerFilterOperator<=': 'קטן שווה ל-',
|
|
103
|
+
// headerFilterClear: 'Clear filter',
|
|
104
|
+
|
|
103
105
|
// Filter values text
|
|
104
106
|
filterValueAny: 'כל ערך',
|
|
105
107
|
filterValueTrue: 'כן',
|
package/locales/hrHR.js
CHANGED
|
@@ -110,6 +110,8 @@ const hrHRGrid = {
|
|
|
110
110
|
'headerFilterOperator>=': 'Veće ili jednako',
|
|
111
111
|
'headerFilterOperator<': 'Manje od',
|
|
112
112
|
'headerFilterOperator<=': 'Manje od ili jednako',
|
|
113
|
+
// headerFilterClear: 'Clear filter',
|
|
114
|
+
|
|
113
115
|
// Filter values text
|
|
114
116
|
filterValueAny: 'bilo koji',
|
|
115
117
|
filterValueTrue: 'tačno',
|
package/locales/huHU.js
CHANGED
|
@@ -102,6 +102,8 @@ const huHUGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Nagyobb vagy egyenlő',
|
|
103
103
|
'headerFilterOperator<': 'Kisebb mint',
|
|
104
104
|
'headerFilterOperator<=': 'Kisebb vagy egyenlő',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'bármilyen',
|
|
107
109
|
filterValueTrue: 'igaz',
|
package/locales/isIS.js
CHANGED
|
@@ -102,6 +102,8 @@ const isISGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Stærra en eða jafnt og',
|
|
103
103
|
'headerFilterOperator<': 'Minna en',
|
|
104
104
|
'headerFilterOperator<=': 'Minna en eða jafnt og',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'hvað sem er',
|
|
107
109
|
filterValueTrue: 'satt',
|
package/locales/itIT.js
CHANGED
|
@@ -102,6 +102,8 @@ const itITGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Maggiore o uguale a',
|
|
103
103
|
'headerFilterOperator<': 'Minore di',
|
|
104
104
|
'headerFilterOperator<=': 'Minore o uguale a',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'qualunque',
|
|
107
109
|
filterValueTrue: 'vero',
|
package/locales/jaJP.js
CHANGED
package/locales/koKR.js
CHANGED
|
@@ -100,6 +100,8 @@ const koKRGrid = {
|
|
|
100
100
|
'headerFilterOperator>=': '같거나 더 큰',
|
|
101
101
|
'headerFilterOperator<': '더 작은',
|
|
102
102
|
'headerFilterOperator<=': '같거나 더 작은',
|
|
103
|
+
// headerFilterClear: 'Clear filter',
|
|
104
|
+
|
|
103
105
|
// Filter values text
|
|
104
106
|
filterValueAny: '아무값',
|
|
105
107
|
filterValueTrue: '참',
|
package/locales/nbNO.js
CHANGED
|
@@ -102,6 +102,8 @@ const nbNOGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Større enn eller lik',
|
|
103
103
|
'headerFilterOperator<': 'Mindre enn',
|
|
104
104
|
'headerFilterOperator<=': 'Mindre enn eller lik',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'noen',
|
|
107
109
|
filterValueTrue: 'sant',
|
package/locales/nlNL.js
CHANGED
|
@@ -101,6 +101,8 @@ const nlNLGrid = {
|
|
|
101
101
|
'headerFilterOperator>=': 'Is groter dan of gelijk aan',
|
|
102
102
|
'headerFilterOperator<': 'Is kleiner dan',
|
|
103
103
|
'headerFilterOperator<=': 'Is kleiner dan of gelijk aan',
|
|
104
|
+
// headerFilterClear: 'Clear filter',
|
|
105
|
+
|
|
104
106
|
// Filter values text
|
|
105
107
|
filterValueAny: 'alles',
|
|
106
108
|
filterValueTrue: 'waar',
|
package/locales/nnNO.js
CHANGED
|
@@ -102,6 +102,8 @@ const nnNOGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Større enn eller lik',
|
|
103
103
|
'headerFilterOperator<': 'Mindre enn',
|
|
104
104
|
'headerFilterOperator<=': 'Mindre enn eller lik',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'nokon',
|
|
107
109
|
filterValueTrue: 'sant',
|
package/locales/plPL.js
CHANGED
|
@@ -103,6 +103,8 @@ const plPLGrid = {
|
|
|
103
103
|
'headerFilterOperator>=': 'Większy lub równy',
|
|
104
104
|
'headerFilterOperator<': 'Mniejszy niż',
|
|
105
105
|
'headerFilterOperator<=': 'Mniejszy lub równe',
|
|
106
|
+
// headerFilterClear: 'Clear filter',
|
|
107
|
+
|
|
106
108
|
// Filter values text
|
|
107
109
|
filterValueAny: 'dowolny',
|
|
108
110
|
filterValueTrue: 'prawda',
|
package/locales/ptBR.js
CHANGED
|
@@ -100,6 +100,8 @@ const ptBRGrid = {
|
|
|
100
100
|
'headerFilterOperator>=': 'Maior que ou igual a',
|
|
101
101
|
'headerFilterOperator<': 'Menor que',
|
|
102
102
|
'headerFilterOperator<=': 'Menor que ou igual a',
|
|
103
|
+
// headerFilterClear: 'Clear filter',
|
|
104
|
+
|
|
103
105
|
// Filter values text
|
|
104
106
|
filterValueAny: 'qualquer',
|
|
105
107
|
filterValueTrue: 'verdadeiro',
|
package/locales/ptPT.js
CHANGED
|
@@ -100,6 +100,8 @@ const ptPTGrid = {
|
|
|
100
100
|
'headerFilterOperator>=': 'Melhor que ou igual a',
|
|
101
101
|
'headerFilterOperator<': 'Menor que',
|
|
102
102
|
'headerFilterOperator<=': 'Menos que ou igual a',
|
|
103
|
+
// headerFilterClear: 'Clear filter',
|
|
104
|
+
|
|
103
105
|
// Filter values text
|
|
104
106
|
filterValueAny: 'qualquer',
|
|
105
107
|
filterValueTrue: 'verdadeiro',
|
package/locales/roRO.js
CHANGED
|
@@ -100,6 +100,8 @@ const roROGrid = {
|
|
|
100
100
|
'headerFilterOperator>=': 'Mai mare sau egal cu',
|
|
101
101
|
'headerFilterOperator<': 'Mai mic decât',
|
|
102
102
|
'headerFilterOperator<=': 'Mai mic sau egal cu',
|
|
103
|
+
// headerFilterClear: 'Clear filter',
|
|
104
|
+
|
|
103
105
|
// Filter values text
|
|
104
106
|
filterValueAny: 'Aleatoriu',
|
|
105
107
|
filterValueTrue: 'Da',
|
package/locales/ruRU.js
CHANGED
|
@@ -117,6 +117,8 @@ const ruRUGrid = {
|
|
|
117
117
|
'headerFilterOperator>=': 'больше или равно',
|
|
118
118
|
'headerFilterOperator<': 'меньше чем',
|
|
119
119
|
'headerFilterOperator<=': 'меньше или равно',
|
|
120
|
+
// headerFilterClear: 'Clear filter',
|
|
121
|
+
|
|
120
122
|
// Filter values text
|
|
121
123
|
filterValueAny: 'любой',
|
|
122
124
|
filterValueTrue: 'истина',
|
package/locales/skSK.js
CHANGED
|
@@ -110,6 +110,8 @@ const skSKGrid = {
|
|
|
110
110
|
'headerFilterOperator>=': 'Väčší ako alebo rovný',
|
|
111
111
|
'headerFilterOperator<': 'Menší ako',
|
|
112
112
|
'headerFilterOperator<=': 'Menší ako alebo rovný',
|
|
113
|
+
// headerFilterClear: 'Clear filter',
|
|
114
|
+
|
|
113
115
|
// Filter values text
|
|
114
116
|
filterValueAny: 'akýkoľvek',
|
|
115
117
|
filterValueTrue: 'áno',
|
package/locales/svSE.js
CHANGED
|
@@ -102,6 +102,8 @@ const svSEGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Större eller lika med',
|
|
103
103
|
'headerFilterOperator<': 'Mindre än',
|
|
104
104
|
'headerFilterOperator<=': 'Mindre eller lika med',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'något',
|
|
107
109
|
filterValueTrue: 'sant',
|
package/locales/trTR.js
CHANGED
|
@@ -100,6 +100,8 @@ const trTRGrid = {
|
|
|
100
100
|
'headerFilterOperator>=': 'Büyük veya eşit',
|
|
101
101
|
'headerFilterOperator<': 'Küçüktür',
|
|
102
102
|
'headerFilterOperator<=': 'Küçük veya eşit',
|
|
103
|
+
// headerFilterClear: 'Clear filter',
|
|
104
|
+
|
|
103
105
|
// Filter values text
|
|
104
106
|
filterValueAny: 'herhangi',
|
|
105
107
|
filterValueTrue: 'doğru',
|
package/locales/ukUA.js
CHANGED
|
@@ -117,6 +117,8 @@ const ukUAGrid = {
|
|
|
117
117
|
'headerFilterOperator>=': 'Більше або дорівнює',
|
|
118
118
|
'headerFilterOperator<': 'Менше ніж',
|
|
119
119
|
'headerFilterOperator<=': 'Менше або дорівнює',
|
|
120
|
+
// headerFilterClear: 'Clear filter',
|
|
121
|
+
|
|
120
122
|
// Filter values text
|
|
121
123
|
filterValueAny: 'будь-який',
|
|
122
124
|
filterValueTrue: 'так',
|
package/locales/urPK.js
CHANGED
|
@@ -102,6 +102,8 @@ const urPKGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'ذیادہ یا برابر ہے',
|
|
103
103
|
'headerFilterOperator<': 'کم ہے',
|
|
104
104
|
'headerFilterOperator<=': 'کم یا برابر ہے',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'کوئی بھی',
|
|
107
109
|
filterValueTrue: 'صحیح',
|
package/locales/viVN.js
CHANGED
|
@@ -102,6 +102,8 @@ const viVNGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': 'Lớn hơn hoặc bằng',
|
|
103
103
|
'headerFilterOperator<': 'Nhỏ hơn',
|
|
104
104
|
'headerFilterOperator<=': 'Nhỏ hơn hoặc bằng',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: 'bất kỳ giá trị nào',
|
|
107
109
|
filterValueTrue: 'Có',
|
package/locales/zhCN.js
CHANGED
|
@@ -100,6 +100,8 @@ const zhCNGrid = {
|
|
|
100
100
|
'headerFilterOperator>=': '大于或等于',
|
|
101
101
|
'headerFilterOperator<': '小于',
|
|
102
102
|
'headerFilterOperator<=': '小于或等于',
|
|
103
|
+
// headerFilterClear: 'Clear filter',
|
|
104
|
+
|
|
103
105
|
// Filter values text
|
|
104
106
|
filterValueAny: '任何',
|
|
105
107
|
filterValueTrue: '真',
|
package/locales/zhHK.js
CHANGED
|
@@ -102,6 +102,8 @@ const zhHKGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': '大於或等於',
|
|
103
103
|
'headerFilterOperator<': '少於',
|
|
104
104
|
'headerFilterOperator<=': '小於或等於',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: '任何',
|
|
107
109
|
filterValueTrue: '真的',
|
package/locales/zhTW.js
CHANGED
|
@@ -102,6 +102,8 @@ const zhTWGrid = {
|
|
|
102
102
|
'headerFilterOperator>=': '大於或等於',
|
|
103
103
|
'headerFilterOperator<': '小於',
|
|
104
104
|
'headerFilterOperator<=': '小於或等於',
|
|
105
|
+
// headerFilterClear: 'Clear filter',
|
|
106
|
+
|
|
105
107
|
// Filter values text
|
|
106
108
|
filterValueAny: '任何值',
|
|
107
109
|
filterValueTrue: '真',
|
package/material/index.js
CHANGED
|
@@ -61,7 +61,8 @@ const iconSlots = {
|
|
|
61
61
|
loadIcon: GridLoadIcon,
|
|
62
62
|
filterPanelAddIcon: GridAddIcon,
|
|
63
63
|
filterPanelRemoveAllIcon: GridDeleteForeverIcon,
|
|
64
|
-
columnReorderIcon: GridDragIcon
|
|
64
|
+
columnReorderIcon: GridDragIcon,
|
|
65
|
+
menuItemCheckIcon: GridCheckIcon
|
|
65
66
|
};
|
|
66
67
|
const baseSlots = {
|
|
67
68
|
baseBadge: MUIBadge,
|
|
@@ -97,6 +97,7 @@ export interface GridLocaleText {
|
|
|
97
97
|
'headerFilterOperator>=': string;
|
|
98
98
|
'headerFilterOperator<': string;
|
|
99
99
|
'headerFilterOperator<=': string;
|
|
100
|
+
headerFilterClear: string;
|
|
100
101
|
filterValueAny: string;
|
|
101
102
|
filterValueTrue: string;
|
|
102
103
|
filterValueFalse: string;
|
|
@@ -24,13 +24,13 @@ export type ValueOptions = string | number | {
|
|
|
24
24
|
* Value that can be used as a key for grouping rows
|
|
25
25
|
*/
|
|
26
26
|
export type GridKeyValue = string | number | boolean;
|
|
27
|
-
export type GridApplyQuickFilter<R extends GridValidRowModel = GridValidRowModel, V = any> = (value: V, row: R, column: GridColDef, apiRef: React.
|
|
28
|
-
export type GetApplyQuickFilterFn<R extends GridValidRowModel = GridValidRowModel, V = any> = (value: any, colDef: GridStateColDef<R, V>, apiRef: React.
|
|
29
|
-
export type GridValueGetter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V, TValue = never> = (value: TValue, row: R, column: GridColDef<R, V, F>, apiRef: React.
|
|
30
|
-
export type GridValueFormatter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V, TValue = never> = (value: TValue, row: R, column: GridColDef<R, V, F>, apiRef: React.
|
|
31
|
-
export type GridValueSetter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef: React.
|
|
32
|
-
export type GridValueParser<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: F | undefined, row: R | undefined, column: GridColDef<R, V, F>, apiRef: React.
|
|
33
|
-
export type GridColSpanFn<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef: React.
|
|
27
|
+
export type GridApplyQuickFilter<R extends GridValidRowModel = GridValidRowModel, V = any> = (value: V, row: R, column: GridColDef, apiRef: React.RefObject<GridApiCommunity>) => boolean;
|
|
28
|
+
export type GetApplyQuickFilterFn<R extends GridValidRowModel = GridValidRowModel, V = any> = (value: any, colDef: GridStateColDef<R, V>, apiRef: React.RefObject<GridApiCommunity>) => null | GridApplyQuickFilter<R, V>;
|
|
29
|
+
export type GridValueGetter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V, TValue = never> = (value: TValue, row: R, column: GridColDef<R, V, F>, apiRef: React.RefObject<GridApiCommunity>) => V;
|
|
30
|
+
export type GridValueFormatter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V, TValue = never> = (value: TValue, row: R, column: GridColDef<R, V, F>, apiRef: React.RefObject<GridApiCommunity>) => F;
|
|
31
|
+
export type GridValueSetter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef: React.RefObject<GridApiCommunity>) => R;
|
|
32
|
+
export type GridValueParser<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: F | undefined, row: R | undefined, column: GridColDef<R, V, F>, apiRef: React.RefObject<GridApiCommunity>) => V;
|
|
33
|
+
export type GridColSpanFn<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef: React.RefObject<GridApiCommunity>) => number | undefined;
|
|
34
34
|
/**
|
|
35
35
|
* Column Definition base interface.
|
|
36
36
|
*/
|
|
@@ -217,7 +217,7 @@ export interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel,
|
|
|
217
217
|
* This function can return `null` to skip filtering for this value and column.
|
|
218
218
|
* @param {any} value The value with which we want to filter the column.
|
|
219
219
|
* @param {GridStateColDef} colDef The column from which we want to filter the rows.
|
|
220
|
-
* @param {React.
|
|
220
|
+
* @param {React.RefObject<GridApiCommunity>} apiRef Deprecated: The API of the grid.
|
|
221
221
|
* @returns {null | GridApplyQuickFilter} The function to call to check if a row pass this filter value or not.
|
|
222
222
|
*/
|
|
223
223
|
getApplyQuickFilterFn?: GetApplyQuickFilterFn<R, V>;
|
|
@@ -584,7 +584,12 @@ export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEve
|
|
|
584
584
|
* Fired when the content size used by the `GridVirtualScroller` changes.
|
|
585
585
|
* @ignore - do not document.
|
|
586
586
|
*/
|
|
587
|
-
virtualScrollerContentSizeChange: {
|
|
587
|
+
virtualScrollerContentSizeChange: {
|
|
588
|
+
params: {
|
|
589
|
+
columnsTotalWidth: number;
|
|
590
|
+
contentHeight: number;
|
|
591
|
+
};
|
|
592
|
+
};
|
|
588
593
|
/**
|
|
589
594
|
* Fired when the content is scrolled by the mouse wheel.
|
|
590
595
|
* It's attached to the "mousewheel" event.
|
package/models/gridExport.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export interface GridGetRowsToExportParams<Api extends GridApiCommon = GridApiCo
|
|
|
49
49
|
/**
|
|
50
50
|
* The API of the grid.
|
|
51
51
|
*/
|
|
52
|
-
apiRef: React.
|
|
52
|
+
apiRef: React.RefObject<Api>;
|
|
53
53
|
}
|
|
54
54
|
export interface GridCsvGetRowsToExportParams<Api extends GridApiCommon = GridApiCommunity> extends GridGetRowsToExportParams<Api> {
|
|
55
55
|
}
|
|
@@ -3,7 +3,7 @@ import { GridFilterItem } from './gridFilterItem';
|
|
|
3
3
|
import type { GridColDef } from './colDef/gridColDef';
|
|
4
4
|
import type { GridValidRowModel } from './gridRows';
|
|
5
5
|
import type { GridApiCommunity } from './api/gridApiCommunity';
|
|
6
|
-
type ApplyFilterFn<R extends GridValidRowModel = any, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef: React.
|
|
6
|
+
type ApplyFilterFn<R extends GridValidRowModel = any, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef: React.RefObject<GridApiCommunity>) => boolean;
|
|
7
7
|
export type GetApplyFilterFn<R extends GridValidRowModel = any, V = any, F = V> = (filterItem: GridFilterItem, column: GridColDef<R, V, F>) => null | ApplyFilterFn<R, V, F>;
|
|
8
8
|
/**
|
|
9
9
|
* Filter operator definition interface.
|
|
@@ -178,4 +178,9 @@ export interface GridIconSlotsComponent {
|
|
|
178
178
|
* @default GridDragIcon
|
|
179
179
|
*/
|
|
180
180
|
columnReorderIcon: React.JSXElementConstructor<any>;
|
|
181
|
+
/**
|
|
182
|
+
* Icon displayed to indicate that a menu item is selected.
|
|
183
|
+
* @default GridCheckIcon
|
|
184
|
+
*/
|
|
185
|
+
menuItemCheckIcon: React.JSXElementConstructor<any>;
|
|
181
186
|
}
|
|
@@ -4,14 +4,14 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { forwardRef } from '@mui/x-internals/forwardRef';
|
|
7
|
-
import {
|
|
7
|
+
import { GridRoot } from "../components/index.js";
|
|
8
8
|
import { useGridAriaAttributes } from "../hooks/utils/useGridAriaAttributes.js";
|
|
9
9
|
import { useGridRowAriaAttributes } from "../hooks/features/rows/useGridRowAriaAttributes.js";
|
|
10
10
|
import { GridContextProvider } from "../context/GridContextProvider.js";
|
|
11
11
|
import { useDataGridComponent } from "./useDataGridComponent.js";
|
|
12
12
|
import { useDataGridProps } from "./useDataGridProps.js";
|
|
13
13
|
import { propValidatorsDataGrid, validateProps } from "../internals/utils/propValidation.js";
|
|
14
|
-
import { jsx as _jsx
|
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
const configuration = {
|
|
16
16
|
hooks: {
|
|
17
17
|
useGridAriaAttributes,
|
|
@@ -34,13 +34,12 @@ const DataGridRaw = forwardRef(function DataGrid(inProps, ref) {
|
|
|
34
34
|
privateApiRef: privateApiRef,
|
|
35
35
|
configuration: configuration,
|
|
36
36
|
props: props,
|
|
37
|
-
children: /*#__PURE__*/
|
|
37
|
+
children: /*#__PURE__*/_jsx(GridRoot, _extends({
|
|
38
38
|
className: props.className,
|
|
39
39
|
style: props.style,
|
|
40
40
|
sx: props.sx
|
|
41
41
|
}, props.slotProps?.root, {
|
|
42
|
-
ref: ref
|
|
43
|
-
children: [/*#__PURE__*/_jsx(GridHeader, {}), /*#__PURE__*/_jsx(GridBody, {}), /*#__PURE__*/_jsx(GridFooterPlaceholder, {})]
|
|
42
|
+
ref: ref
|
|
44
43
|
}))
|
|
45
44
|
});
|
|
46
45
|
});
|
|
@@ -44,6 +44,7 @@ export const useDataGridComponent = (inputApiRef, props) => {
|
|
|
44
44
|
useGridInitializeState(dimensionsStateInitializer, apiRef, props);
|
|
45
45
|
useGridInitializeState(rowSelectionStateInitializer, apiRef, props);
|
|
46
46
|
useGridInitializeState(columnsStateInitializer, apiRef, props);
|
|
47
|
+
useGridInitializeState(paginationStateInitializer, apiRef, props);
|
|
47
48
|
useGridInitializeState(rowsStateInitializer, apiRef, props);
|
|
48
49
|
useGridInitializeState(editingStateInitializer, apiRef, props);
|
|
49
50
|
useGridInitializeState(focusStateInitializer, apiRef, props);
|
|
@@ -53,7 +54,6 @@ export const useDataGridComponent = (inputApiRef, props) => {
|
|
|
53
54
|
useGridInitializeState(rowSpanningStateInitializer, apiRef, props);
|
|
54
55
|
useGridInitializeState(densityStateInitializer, apiRef, props);
|
|
55
56
|
useGridInitializeState(columnResizeStateInitializer, apiRef, props);
|
|
56
|
-
useGridInitializeState(paginationStateInitializer, apiRef, props);
|
|
57
57
|
useGridInitializeState(rowsMetaStateInitializer, apiRef, props);
|
|
58
58
|
useGridInitializeState(columnMenuStateInitializer, apiRef, props);
|
|
59
59
|
useGridInitializeState(columnGroupsStateInitializer, apiRef, props);
|
|
@@ -18,7 +18,7 @@ function GridHeaders() {
|
|
|
18
18
|
const filterColumnLookup = useGridSelector(apiRef, gridFilterActiveItemsLookupSelector);
|
|
19
19
|
const sortColumnLookup = useGridSelector(apiRef, gridSortColumnLookupSelector);
|
|
20
20
|
const columnHeaderTabIndexState = useGridSelector(apiRef, gridTabIndexColumnHeaderSelector);
|
|
21
|
-
const
|
|
21
|
+
const hasNoCellTabIndexState = useGridSelector(apiRef, () => gridTabIndexCellSelector(apiRef) === null);
|
|
22
22
|
const columnGroupHeaderTabIndexState = useGridSelector(apiRef, gridTabIndexColumnGroupHeaderSelector);
|
|
23
23
|
const columnHeaderFocus = useGridSelector(apiRef, gridFocusColumnHeaderSelector);
|
|
24
24
|
const columnGroupHeaderFocus = useGridSelector(apiRef, gridFocusColumnGroupHeaderSelector);
|
|
@@ -26,7 +26,7 @@ function GridHeaders() {
|
|
|
26
26
|
const columnMenuState = useGridSelector(apiRef, gridColumnMenuSelector);
|
|
27
27
|
const columnVisibility = useGridSelector(apiRef, gridColumnVisibilityModelSelector);
|
|
28
28
|
const columnGroupsHeaderStructure = useGridSelector(apiRef, gridColumnGroupsHeaderStructureSelector);
|
|
29
|
-
const hasOtherElementInTabSequence = !(columnGroupHeaderTabIndexState === null && columnHeaderTabIndexState === null &&
|
|
29
|
+
const hasOtherElementInTabSequence = !(columnGroupHeaderTabIndexState === null && columnHeaderTabIndexState === null && hasNoCellTabIndexState);
|
|
30
30
|
const columnsContainerRef = apiRef.current.columnHeadersContainerRef;
|
|
31
31
|
return /*#__PURE__*/_jsx(rootProps.slots.columnHeaders, _extends({
|
|
32
32
|
ref: columnsContainerRef,
|