@mui/x-data-grid 5.12.3 → 5.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 +147 -1
- package/DataGrid/DataGrid.js +4 -4
- package/DataGrid/useDataGridComponent.js +1 -1
- package/colDef/gridActionsColDef.js +2 -0
- package/colDef/gridBooleanColDef.js +3 -1
- package/colDef/gridCheckboxSelectionColDef.js +2 -0
- package/colDef/gridDateOperators.d.ts +1 -1
- package/colDef/gridDateOperators.js +4 -2
- package/colDef/gridNumericOperators.js +4 -2
- package/colDef/gridStringColDef.d.ts +3 -0
- package/colDef/gridStringColDef.js +6 -0
- package/colDef/gridStringOperators.d.ts +1 -1
- package/colDef/gridStringOperators.js +15 -8
- package/components/GridRow.js +1 -1
- package/components/base/GridOverlays.js +4 -1
- package/components/cell/GridActionsCellItem.d.ts +2 -2
- package/components/cell/GridBooleanCell.d.ts +5 -2
- package/components/cell/GridBooleanCell.js +93 -2
- package/components/cell/GridEditDateCell.js +5 -1
- package/components/cell/index.d.ts +1 -0
- package/components/cell/index.js +1 -0
- package/components/columnSelection/GridCellCheckboxRenderer.js +7 -1
- package/components/containers/GridRootStyles.js +10 -0
- package/components/panel/GridPanel.d.ts +1 -1
- package/components/panel/filterPanel/GridFilterForm.js +11 -4
- package/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
- package/components/panel/filterPanel/GridFilterInputDate.js +4 -2
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +3 -8
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +30 -14
- package/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +3 -7
- package/components/panel/filterPanel/GridFilterInputMultipleValue.js +32 -14
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
- package/components/panel/filterPanel/GridFilterInputValue.js +4 -2
- package/components/panel/filterPanel/GridFilterInputValueProps.d.ts +6 -3
- package/components/panel/filterPanel/filterPanelUtils.d.ts +1 -1
- package/components/toolbar/GridToolbarColumnsButton.d.ts +1 -1
- package/components/toolbar/GridToolbarDensitySelector.d.ts +1 -1
- package/components/toolbar/GridToolbarExport.js +20 -10
- package/components/toolbar/GridToolbarExportContainer.d.ts +1 -1
- package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
- package/constants/gridClasses.d.ts +25 -1
- package/constants/gridClasses.js +1 -1
- package/constants/localeTextConstants.js +8 -1
- package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +2 -1
- package/hooks/features/columns/useGridColumnSpanning.js +9 -7
- package/hooks/features/columns/useGridColumns.d.ts +1 -1
- package/hooks/features/columns/useGridColumns.js +13 -6
- package/hooks/features/dimensions/useGridDimensions.js +28 -15
- package/hooks/features/editRows/useGridCellEditing.new.js +7 -1
- package/hooks/features/editRows/useGridCellEditing.old.js +6 -0
- package/hooks/features/editRows/useGridRowEditing.new.js +7 -1
- package/hooks/features/editRows/useGridRowEditing.old.js +6 -0
- package/hooks/features/export/utils.d.ts +1 -1
- package/hooks/features/export/utils.js +9 -2
- package/hooks/features/filter/gridFilterUtils.js +6 -0
- package/hooks/features/filter/useGridFilter.d.ts +1 -1
- package/hooks/features/filter/useGridFilter.js +30 -5
- package/hooks/features/pagination/useGridPage.js +4 -3
- package/hooks/features/pagination/useGridPageSize.js +4 -3
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.d.ts +1 -1
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.js +12 -4
- package/hooks/features/rows/gridRowsUtils.d.ts +1 -1
- package/hooks/features/rows/useGridRows.js +1 -1
- package/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
- package/hooks/features/selection/useGridSelection.js +24 -10
- package/hooks/features/sorting/gridSortingUtils.d.ts +1 -0
- package/hooks/features/sorting/gridSortingUtils.js +10 -11
- package/hooks/features/sorting/useGridSorting.d.ts +1 -1
- package/hooks/features/sorting/useGridSorting.js +34 -6
- package/hooks/features/statePersistence/gridStatePersistenceInterface.d.ts +12 -1
- package/hooks/features/statePersistence/index.d.ts +1 -1
- package/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
- package/hooks/features/virtualization/useGridVirtualScroller.js +17 -7
- package/hooks/utils/useGridApiContext.js +1 -1
- package/hooks/utils/useGridApiEventHandler.d.ts +2 -2
- package/hooks/utils/useGridNativeEventListener.d.ts +1 -1
- package/hooks/utils/useGridNativeEventListener.js +1 -1
- package/hooks/utils/useGridRootProps.js +1 -1
- package/index.js +1 -1
- package/internals/index.d.ts +2 -2
- package/internals/index.js +2 -2
- package/legacy/DataGrid/DataGrid.js +4 -4
- package/legacy/DataGrid/useDataGridComponent.js +1 -1
- package/legacy/colDef/gridActionsColDef.js +2 -0
- package/legacy/colDef/gridBooleanColDef.js +3 -1
- package/legacy/colDef/gridCheckboxSelectionColDef.js +2 -0
- package/legacy/colDef/gridDateOperators.js +4 -2
- package/legacy/colDef/gridNumericOperators.js +4 -2
- package/legacy/colDef/gridStringColDef.js +6 -0
- package/legacy/colDef/gridStringOperators.js +17 -7
- package/legacy/components/GridRow.js +1 -1
- package/legacy/components/base/GridOverlays.js +4 -1
- package/legacy/components/cell/GridBooleanCell.js +93 -2
- package/legacy/components/cell/GridEditDateCell.js +5 -1
- package/legacy/components/cell/index.js +1 -0
- package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +6 -1
- package/legacy/components/containers/GridRootStyles.js +3 -3
- package/legacy/components/panel/filterPanel/GridFilterForm.js +9 -4
- package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
- package/legacy/components/panel/filterPanel/GridFilterInputDate.js +4 -2
- package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +22 -7
- package/legacy/components/panel/filterPanel/GridFilterInputMultipleValue.js +24 -7
- package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
- package/legacy/components/panel/filterPanel/GridFilterInputValue.js +4 -2
- package/legacy/components/toolbar/GridToolbarExport.js +20 -10
- package/legacy/constants/gridClasses.js +1 -1
- package/legacy/constants/localeTextConstants.js +8 -1
- package/legacy/hooks/features/columns/useGridColumnSpanning.js +9 -7
- package/legacy/hooks/features/columns/useGridColumns.js +13 -8
- package/legacy/hooks/features/dimensions/useGridDimensions.js +27 -15
- package/legacy/hooks/features/editRows/useGridCellEditing.new.js +7 -1
- package/legacy/hooks/features/editRows/useGridCellEditing.old.js +16 -8
- package/legacy/hooks/features/editRows/useGridRowEditing.new.js +7 -1
- package/legacy/hooks/features/editRows/useGridRowEditing.old.js +22 -14
- package/legacy/hooks/features/export/utils.js +9 -2
- package/legacy/hooks/features/filter/gridFilterUtils.js +6 -0
- package/legacy/hooks/features/filter/useGridFilter.js +30 -5
- package/legacy/hooks/features/pagination/useGridPage.js +4 -3
- package/legacy/hooks/features/pagination/useGridPageSize.js +4 -3
- package/legacy/hooks/features/preferencesPanel/useGridPreferencesPanel.js +12 -4
- package/legacy/hooks/features/rows/useGridRows.js +1 -1
- package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
- package/legacy/hooks/features/selection/useGridSelection.js +26 -12
- package/legacy/hooks/features/sorting/gridSortingUtils.js +11 -12
- package/legacy/hooks/features/sorting/useGridSorting.js +34 -6
- package/legacy/hooks/features/statePersistence/useGridStatePersistence.js +2 -1
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +22 -12
- package/legacy/hooks/utils/useGridApiContext.js +1 -1
- package/legacy/hooks/utils/useGridNativeEventListener.js +1 -1
- package/legacy/hooks/utils/useGridRootProps.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/internals/index.js +2 -2
- package/legacy/locales/arSD.js +7 -0
- package/legacy/locales/bgBG.js +7 -0
- package/legacy/locales/csCZ.js +7 -0
- package/legacy/locales/daDK.js +7 -0
- package/legacy/locales/deDE.js +12 -5
- package/legacy/locales/elGR.js +7 -0
- package/legacy/locales/esES.js +7 -0
- package/legacy/locales/faIR.js +7 -0
- package/legacy/locales/fiFI.js +7 -0
- package/legacy/locales/frFR.js +17 -10
- package/legacy/locales/heIL.js +8 -1
- package/legacy/locales/huHU.js +7 -0
- package/legacy/locales/index.js +4 -1
- package/legacy/locales/itIT.js +7 -0
- package/legacy/locales/jaJP.js +8 -1
- package/legacy/locales/koKR.js +7 -0
- package/legacy/locales/nbNO.js +8 -1
- package/legacy/locales/nlNL.js +21 -14
- package/legacy/locales/plPL.js +7 -0
- package/legacy/locales/ptBR.js +17 -10
- package/legacy/locales/roRO.js +135 -0
- package/legacy/locales/ruRU.js +7 -0
- package/legacy/locales/skSK.js +22 -15
- package/legacy/locales/svSE.js +8 -1
- package/legacy/locales/trTR.js +7 -0
- package/legacy/locales/ukUA.js +7 -0
- package/legacy/locales/viVN.js +7 -0
- package/legacy/locales/zhCN.js +7 -0
- package/legacy/locales/zhTW.js +135 -0
- package/legacy/models/events/gridEvents.js +1 -0
- package/legacy/utils/keyboardUtils.js +4 -3
- package/locales/arSD.js +7 -0
- package/locales/bgBG.js +7 -0
- package/locales/csCZ.js +7 -0
- package/locales/daDK.js +7 -0
- package/locales/deDE.js +12 -5
- package/locales/elGR.js +7 -0
- package/locales/esES.js +7 -0
- package/locales/faIR.js +7 -0
- package/locales/fiFI.js +7 -0
- package/locales/frFR.js +17 -10
- package/locales/heIL.js +8 -1
- package/locales/huHU.js +7 -0
- package/locales/index.d.ts +3 -0
- package/locales/index.js +4 -1
- package/locales/itIT.js +7 -0
- package/locales/jaJP.js +8 -1
- package/locales/koKR.js +7 -0
- package/locales/nbNO.js +8 -1
- package/locales/nlNL.js +21 -14
- package/locales/plPL.js +7 -0
- package/locales/ptBR.js +17 -10
- package/locales/roRO.d.ts +2 -0
- package/locales/roRO.js +123 -0
- package/locales/ruRU.js +7 -0
- package/locales/skSK.js +22 -15
- package/locales/svSE.js +8 -1
- package/locales/trTR.js +7 -0
- package/locales/ukUA.js +7 -0
- package/locales/viVN.js +7 -0
- package/locales/zhCN.js +7 -0
- package/locales/zhTW.d.ts +2 -0
- package/locales/zhTW.js +123 -0
- package/models/api/gridColumnSpanning.d.ts +2 -0
- package/models/api/gridLocaleTextApi.d.ts +8 -2
- package/models/api/gridSelectionApi.d.ts +6 -0
- package/models/events/gridEvents.d.ts +1 -0
- package/models/events/gridEvents.js +1 -0
- package/models/gridFilterOperator.d.ts +6 -0
- package/models/gridRows.d.ts +10 -1
- package/models/params/gridCellParams.d.ts +4 -4
- package/modern/DataGrid/DataGrid.js +4 -4
- package/modern/DataGrid/useDataGridComponent.js +1 -1
- package/modern/colDef/gridActionsColDef.js +2 -0
- package/modern/colDef/gridBooleanColDef.js +3 -1
- package/modern/colDef/gridCheckboxSelectionColDef.js +2 -0
- package/modern/colDef/gridDateOperators.js +4 -2
- package/modern/colDef/gridNumericOperators.js +4 -2
- package/modern/colDef/gridStringColDef.js +6 -0
- package/modern/colDef/gridStringOperators.js +15 -8
- package/modern/components/GridRow.js +1 -1
- package/modern/components/base/GridOverlays.js +4 -1
- package/modern/components/cell/GridBooleanCell.js +93 -2
- package/modern/components/cell/GridEditDateCell.js +5 -1
- package/modern/components/cell/index.js +1 -0
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +7 -1
- package/modern/components/containers/GridRootStyles.js +10 -0
- package/modern/components/panel/filterPanel/GridFilterForm.js +11 -4
- package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterInputDate.js +4 -2
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +20 -8
- package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +22 -8
- package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
- package/modern/components/panel/filterPanel/GridFilterInputValue.js +4 -2
- package/modern/components/toolbar/GridToolbarExport.js +20 -10
- package/modern/constants/gridClasses.js +1 -1
- package/modern/constants/localeTextConstants.js +8 -1
- package/modern/hooks/features/columns/useGridColumnSpanning.js +9 -7
- package/modern/hooks/features/columns/useGridColumns.js +10 -5
- package/modern/hooks/features/dimensions/useGridDimensions.js +28 -15
- package/modern/hooks/features/editRows/useGridCellEditing.new.js +7 -1
- package/modern/hooks/features/editRows/useGridCellEditing.old.js +6 -0
- package/modern/hooks/features/editRows/useGridRowEditing.new.js +7 -1
- package/modern/hooks/features/editRows/useGridRowEditing.old.js +6 -0
- package/modern/hooks/features/export/utils.js +5 -2
- package/modern/hooks/features/filter/gridFilterUtils.js +6 -0
- package/modern/hooks/features/filter/useGridFilter.js +25 -4
- package/modern/hooks/features/pagination/useGridPage.js +4 -3
- package/modern/hooks/features/pagination/useGridPageSize.js +4 -3
- package/modern/hooks/features/preferencesPanel/useGridPreferencesPanel.js +8 -4
- package/modern/hooks/features/rows/useGridRows.js +1 -1
- package/modern/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
- package/modern/hooks/features/selection/useGridSelection.js +22 -10
- package/modern/hooks/features/sorting/gridSortingUtils.js +10 -11
- package/modern/hooks/features/sorting/useGridSorting.js +30 -6
- package/modern/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +13 -7
- package/modern/hooks/utils/useGridApiContext.js +1 -1
- package/modern/hooks/utils/useGridNativeEventListener.js +1 -1
- package/modern/hooks/utils/useGridRootProps.js +1 -1
- package/modern/index.js +1 -1
- package/modern/internals/index.js +2 -2
- package/modern/locales/arSD.js +7 -0
- package/modern/locales/bgBG.js +7 -0
- package/modern/locales/csCZ.js +7 -0
- package/modern/locales/daDK.js +7 -0
- package/modern/locales/deDE.js +12 -5
- package/modern/locales/elGR.js +7 -0
- package/modern/locales/esES.js +7 -0
- package/modern/locales/faIR.js +7 -0
- package/modern/locales/fiFI.js +7 -0
- package/modern/locales/frFR.js +17 -10
- package/modern/locales/heIL.js +8 -1
- package/modern/locales/huHU.js +7 -0
- package/modern/locales/index.js +4 -1
- package/modern/locales/itIT.js +7 -0
- package/modern/locales/jaJP.js +8 -1
- package/modern/locales/koKR.js +7 -0
- package/modern/locales/nbNO.js +8 -1
- package/modern/locales/nlNL.js +21 -14
- package/modern/locales/plPL.js +7 -0
- package/modern/locales/ptBR.js +17 -10
- package/modern/locales/roRO.js +123 -0
- package/modern/locales/ruRU.js +7 -0
- package/modern/locales/skSK.js +22 -15
- package/modern/locales/svSE.js +8 -1
- package/modern/locales/trTR.js +7 -0
- package/modern/locales/ukUA.js +7 -0
- package/modern/locales/viVN.js +7 -0
- package/modern/locales/zhCN.js +7 -0
- package/modern/locales/zhTW.js +123 -0
- package/modern/models/events/gridEvents.js +1 -0
- package/modern/utils/keyboardUtils.js +4 -3
- package/node/DataGrid/DataGrid.js +4 -4
- package/node/DataGrid/useDataGridComponent.js +1 -1
- package/node/colDef/gridActionsColDef.js +2 -0
- package/node/colDef/gridBooleanColDef.js +3 -1
- package/node/colDef/gridCheckboxSelectionColDef.js +2 -0
- package/node/colDef/gridDateOperators.js +4 -2
- package/node/colDef/gridNumericOperators.js +4 -2
- package/node/colDef/gridStringColDef.js +5 -0
- package/node/colDef/gridStringOperators.js +15 -8
- package/node/components/GridRow.js +1 -1
- package/node/components/base/GridOverlays.js +4 -1
- package/node/components/cell/GridBooleanCell.js +93 -2
- package/node/components/cell/GridEditDateCell.js +7 -1
- package/node/components/cell/index.js +13 -0
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +7 -1
- package/node/components/containers/GridRootStyles.js +10 -0
- package/node/components/panel/filterPanel/GridFilterForm.js +9 -4
- package/node/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
- package/node/components/panel/filterPanel/GridFilterInputDate.js +4 -2
- package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +31 -15
- package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +33 -15
- package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
- package/node/components/panel/filterPanel/GridFilterInputValue.js +4 -2
- package/node/components/toolbar/GridToolbarExport.js +16 -10
- package/node/constants/gridClasses.js +1 -1
- package/node/constants/localeTextConstants.js +8 -1
- package/node/hooks/features/columns/useGridColumnSpanning.js +9 -7
- package/node/hooks/features/columns/useGridColumns.js +13 -6
- package/node/hooks/features/dimensions/useGridDimensions.js +28 -15
- package/node/hooks/features/editRows/useGridCellEditing.new.js +7 -1
- package/node/hooks/features/editRows/useGridCellEditing.old.js +6 -0
- package/node/hooks/features/editRows/useGridRowEditing.new.js +7 -1
- package/node/hooks/features/editRows/useGridRowEditing.old.js +6 -0
- package/node/hooks/features/export/utils.js +10 -2
- package/node/hooks/features/filter/gridFilterUtils.js +7 -0
- package/node/hooks/features/filter/useGridFilter.js +30 -5
- package/node/hooks/features/pagination/useGridPage.js +4 -3
- package/node/hooks/features/pagination/useGridPageSize.js +4 -3
- package/node/hooks/features/preferencesPanel/useGridPreferencesPanel.js +12 -4
- package/node/hooks/features/rows/useGridRows.js +1 -1
- package/node/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
- package/node/hooks/features/selection/useGridSelection.js +24 -10
- package/node/hooks/features/sorting/gridSortingUtils.js +10 -11
- package/node/hooks/features/sorting/useGridSorting.js +34 -6
- package/node/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +17 -7
- package/node/hooks/utils/useGridApiContext.js +1 -1
- package/node/hooks/utils/useGridNativeEventListener.js +1 -1
- package/node/hooks/utils/useGridRootProps.js +1 -1
- package/node/index.js +1 -1
- package/node/internals/index.js +18 -0
- package/node/locales/arSD.js +7 -0
- package/node/locales/bgBG.js +7 -0
- package/node/locales/csCZ.js +7 -0
- package/node/locales/daDK.js +7 -0
- package/node/locales/deDE.js +12 -5
- package/node/locales/elGR.js +7 -0
- package/node/locales/esES.js +7 -0
- package/node/locales/faIR.js +7 -0
- package/node/locales/fiFI.js +7 -0
- package/node/locales/frFR.js +17 -10
- package/node/locales/heIL.js +8 -1
- package/node/locales/huHU.js +7 -0
- package/node/locales/index.js +39 -0
- package/node/locales/itIT.js +7 -0
- package/node/locales/jaJP.js +8 -1
- package/node/locales/koKR.js +7 -0
- package/node/locales/nbNO.js +8 -1
- package/node/locales/nlNL.js +21 -14
- package/node/locales/plPL.js +7 -0
- package/node/locales/ptBR.js +17 -10
- package/node/locales/roRO.js +133 -0
- package/node/locales/ruRU.js +7 -0
- package/node/locales/skSK.js +22 -15
- package/node/locales/svSE.js +8 -1
- package/node/locales/trTR.js +7 -0
- package/node/locales/ukUA.js +7 -0
- package/node/locales/viVN.js +7 -0
- package/node/locales/zhCN.js +7 -0
- package/node/locales/zhTW.js +133 -0
- package/node/models/events/gridEvents.js +1 -0
- package/node/utils/keyboardUtils.js +4 -3
- package/package.json +3 -3
- package/utils/getGridLocalization.d.ts +1 -1
- package/utils/keyboardUtils.js +4 -3
|
@@ -146,10 +146,15 @@ export const useGridSorting = (apiRef, props) => {
|
|
|
146
146
|
* PRE-PROCESSING
|
|
147
147
|
*/
|
|
148
148
|
|
|
149
|
-
const stateExportPreProcessing = React.useCallback(prevState => {
|
|
149
|
+
const stateExportPreProcessing = React.useCallback((prevState, context) => {
|
|
150
150
|
const sortModelToExport = gridSortModelSelector(apiRef);
|
|
151
|
+
const shouldExportSortModel = // Always export if the `exportOnlyDirtyModels` property is activated
|
|
152
|
+
!context.exportOnlyDirtyModels || // Always export if the model is controlled
|
|
153
|
+
props.sortModel != null || // Always export if the model has been initialized
|
|
154
|
+
props.initialState?.sorting?.sortModel != null || // Export if the model is not empty
|
|
155
|
+
sortModelToExport.length > 0;
|
|
151
156
|
|
|
152
|
-
if (
|
|
157
|
+
if (!shouldExportSortModel) {
|
|
153
158
|
return prevState;
|
|
154
159
|
}
|
|
155
160
|
|
|
@@ -158,7 +163,7 @@ export const useGridSorting = (apiRef, props) => {
|
|
|
158
163
|
sortModel: sortModelToExport
|
|
159
164
|
}
|
|
160
165
|
});
|
|
161
|
-
}, [apiRef]);
|
|
166
|
+
}, [apiRef, props.sortModel, props.initialState?.sorting?.sortModel]);
|
|
162
167
|
const stateRestorePreProcessing = React.useCallback((params, context) => {
|
|
163
168
|
const sortModel = context.stateToRestore.sorting?.sortModel;
|
|
164
169
|
|
|
@@ -172,12 +177,31 @@ export const useGridSorting = (apiRef, props) => {
|
|
|
172
177
|
});
|
|
173
178
|
}, [apiRef, props.disableMultipleColumnsSorting]);
|
|
174
179
|
const flatSortingMethod = React.useCallback(params => {
|
|
180
|
+
const rowTree = gridRowTreeSelector(apiRef);
|
|
181
|
+
|
|
175
182
|
if (!params.sortRowList) {
|
|
176
|
-
|
|
183
|
+
const bodyRowIds = [];
|
|
184
|
+
const footerRowIds = [];
|
|
185
|
+
gridRowIdsSelector(apiRef).forEach(rowId => {
|
|
186
|
+
if (rowTree[rowId].position === 'footer') {
|
|
187
|
+
footerRowIds.push(rowId);
|
|
188
|
+
} else {
|
|
189
|
+
bodyRowIds.push(rowId);
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
return [...bodyRowIds, ...footerRowIds];
|
|
177
193
|
}
|
|
178
194
|
|
|
179
|
-
const
|
|
180
|
-
|
|
195
|
+
const bodyRows = [];
|
|
196
|
+
const footerRowIds = [];
|
|
197
|
+
Object.values(rowTree).forEach(rowNode => {
|
|
198
|
+
if (rowNode.position === 'footer') {
|
|
199
|
+
footerRowIds.push(rowNode.id);
|
|
200
|
+
} else {
|
|
201
|
+
bodyRows.push(rowNode);
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
return [...params.sortRowList(bodyRows), ...footerRowIds];
|
|
181
205
|
}, [apiRef]);
|
|
182
206
|
useGridRegisterPipeProcessor(apiRef, 'exportState', stateExportPreProcessing);
|
|
183
207
|
useGridRegisterPipeProcessor(apiRef, 'restoreState', stateRestorePreProcessing);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useGridApiMethod } from '../../utils';
|
|
3
3
|
export const useGridStatePersistence = apiRef => {
|
|
4
|
-
const exportState = React.useCallback(() => {
|
|
5
|
-
const stateToExport = apiRef.current.unstable_applyPipeProcessors('exportState', {});
|
|
4
|
+
const exportState = React.useCallback((params = {}) => {
|
|
5
|
+
const stateToExport = apiRef.current.unstable_applyPipeProcessors('exportState', {}, params);
|
|
6
6
|
return stateToExport;
|
|
7
7
|
}, [apiRef]);
|
|
8
8
|
const restoreState = React.useCallback(stateToRestore => {
|
|
@@ -86,8 +86,15 @@ export const useGridVirtualScroller = props => {
|
|
|
86
86
|
const [containerWidth, setContainerWidth] = React.useState(null);
|
|
87
87
|
const prevTotalWidth = React.useRef(columnsTotalWidth);
|
|
88
88
|
const getNearestIndexToRender = React.useCallback(offset => {
|
|
89
|
-
const
|
|
90
|
-
const
|
|
89
|
+
const lastMeasuredIndexRelativeToAllRows = apiRef.current.unstable_getLastMeasuredRowIndex();
|
|
90
|
+
const lastMeasuredIndexRelativeToCurrentPage = lastMeasuredIndexRelativeToAllRows - (currentPage.range?.firstRowIndex || 0);
|
|
91
|
+
const lastMeasuredIndex = Math.max(0, lastMeasuredIndexRelativeToCurrentPage);
|
|
92
|
+
let allRowsMeasured = lastMeasuredIndex === Infinity;
|
|
93
|
+
|
|
94
|
+
if (currentPage.range?.lastRowIndex && !allRowsMeasured) {
|
|
95
|
+
// Check if all rows in this page are already measured
|
|
96
|
+
allRowsMeasured = lastMeasuredIndex >= currentPage.range.lastRowIndex;
|
|
97
|
+
}
|
|
91
98
|
|
|
92
99
|
if (allRowsMeasured || rowsMeta.positions[lastMeasuredIndex] >= offset) {
|
|
93
100
|
// If all rows were measured (when no row has "auto" as height) or all rows before the offset
|
|
@@ -100,7 +107,7 @@ export const useGridVirtualScroller = props => {
|
|
|
100
107
|
|
|
101
108
|
|
|
102
109
|
return exponentialSearch(offset, rowsMeta.positions, lastMeasuredIndex);
|
|
103
|
-
}, [apiRef, rowsMeta.positions]);
|
|
110
|
+
}, [apiRef, currentPage.range?.firstRowIndex, currentPage.range?.lastRowIndex, rowsMeta.positions]);
|
|
104
111
|
const computeRenderContext = React.useCallback(() => {
|
|
105
112
|
if (disableVirtualization) {
|
|
106
113
|
return {
|
|
@@ -302,7 +309,8 @@ export const useGridVirtualScroller = props => {
|
|
|
302
309
|
apiRef.current.unstable_calculateColSpan({
|
|
303
310
|
rowId: row.id,
|
|
304
311
|
minFirstColumn,
|
|
305
|
-
maxLastColumn
|
|
312
|
+
maxLastColumn,
|
|
313
|
+
columns: visibleColumns
|
|
306
314
|
});
|
|
307
315
|
}
|
|
308
316
|
|
|
@@ -334,10 +342,8 @@ export const useGridVirtualScroller = props => {
|
|
|
334
342
|
|
|
335
343
|
if (selectedRowsLookup[id] == null) {
|
|
336
344
|
isSelected = false;
|
|
337
|
-
} else if (typeof rootProps.isRowSelectable === 'function') {
|
|
338
|
-
isSelected = rootProps.isRowSelectable(apiRef.current.getRowParams(id));
|
|
339
345
|
} else {
|
|
340
|
-
isSelected =
|
|
346
|
+
isSelected = apiRef.current.isRowSelectable(id);
|
|
341
347
|
}
|
|
342
348
|
|
|
343
349
|
rows.push( /*#__PURE__*/_jsx(rootProps.components.Row, _extends({
|
|
@@ -4,7 +4,7 @@ export function useGridApiContext() {
|
|
|
4
4
|
const apiRef = React.useContext(GridApiContext);
|
|
5
5
|
|
|
6
6
|
if (apiRef === undefined) {
|
|
7
|
-
throw new Error(['MUI: Could not find the data grid context.', 'It looks like you rendered your component outside of a DataGrid or
|
|
7
|
+
throw new Error(['MUI: Could not find the data grid context.', 'It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.', 'This can also happen if you are bundling multiple versions of the data grid.'].join('\n'));
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
return apiRef;
|
|
@@ -20,7 +20,7 @@ export const useGridNativeEventListener = (apiRef, ref, eventName, handler, opti
|
|
|
20
20
|
targetElement = ref && ref.current ? ref.current : null;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
if (targetElement &&
|
|
23
|
+
if (targetElement && eventName && !added) {
|
|
24
24
|
logger.debug(`Binding native ${eventName} event`);
|
|
25
25
|
targetElement.addEventListener(eventName, wrapHandler, options);
|
|
26
26
|
const boundElem = targetElement;
|
|
@@ -4,7 +4,7 @@ export const useGridRootProps = () => {
|
|
|
4
4
|
const contextValue = React.useContext(GridRootPropsContext);
|
|
5
5
|
|
|
6
6
|
if (!contextValue) {
|
|
7
|
-
throw new Error('MUI: useGridRootProps should only be used inside the DataGrid
|
|
7
|
+
throw new Error('MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.');
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
return contextValue;
|
package/modern/index.js
CHANGED
|
@@ -4,7 +4,7 @@ export { GridVirtualScrollerRenderZone } from '../components/virtualization/Grid
|
|
|
4
4
|
export { GridColumnHeaders } from '../components/columnHeaders/GridColumnHeaders';
|
|
5
5
|
export { GridColumnHeadersInner } from '../components/columnHeaders/GridColumnHeadersInner';
|
|
6
6
|
export { useGridRegisterPipeProcessor } from '../hooks/core/pipeProcessing';
|
|
7
|
-
export { useGridRegisterStrategyProcessor } from '../hooks/core/strategyProcessing';
|
|
7
|
+
export { useGridRegisterStrategyProcessor, GRID_DEFAULT_STRATEGY } from '../hooks/core/strategyProcessing';
|
|
8
8
|
export { useGridInitialization } from '../hooks/core/useGridInitialization';
|
|
9
9
|
export { useGridClipboard } from '../hooks/features/clipboard/useGridClipboard';
|
|
10
10
|
export { useGridColumnHeaders } from '../hooks/features/columnHeaders/useGridColumnHeaders';
|
|
@@ -39,6 +39,6 @@ export { getColumnsToExport, defaultGetRowsToExport } from '../hooks/features/ex
|
|
|
39
39
|
export { createSelector, unstable_resetCreateSelectorCache } from '../utils/createSelector';
|
|
40
40
|
export { findParentElementFromClassName } from '../utils/domUtils';
|
|
41
41
|
export { isNavigationKey } from '../utils/keyboardUtils';
|
|
42
|
-
export { clamp, isDeepEqual } from '../utils/utils';
|
|
42
|
+
export { clamp, isDeepEqual, isNumber, isFunction } from '../utils/utils';
|
|
43
43
|
export { buildWarning } from '../utils/warning';
|
|
44
44
|
export { exportAs } from '../utils/exportAs';
|
package/modern/locales/arSD.js
CHANGED
|
@@ -111,6 +111,13 @@ const arSDGrid = {
|
|
|
111
111
|
expandDetailPanel: 'توسيع',
|
|
112
112
|
collapseDetailPanel: 'طوي' // Row reordering text
|
|
113
113
|
// rowReorderingHeaderName: 'Row reordering',
|
|
114
|
+
// Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
114
121
|
|
|
115
122
|
};
|
|
116
123
|
export const arSD = getGridLocalization(arSDGrid, arSDCore);
|
package/modern/locales/bgBG.js
CHANGED
|
@@ -111,6 +111,13 @@ const bgBGGrid = {
|
|
|
111
111
|
expandDetailPanel: 'Разгъване',
|
|
112
112
|
collapseDetailPanel: 'Свиване' // Row reordering text
|
|
113
113
|
// rowReorderingHeaderName: 'Row reordering',
|
|
114
|
+
// Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
114
121
|
|
|
115
122
|
};
|
|
116
123
|
export const bgBG = getGridLocalization(bgBGGrid, bgBGCore);
|
package/modern/locales/csCZ.js
CHANGED
|
@@ -146,6 +146,13 @@ const csCZGrid = {
|
|
|
146
146
|
// collapseDetailPanel: 'Collapse',
|
|
147
147
|
// Row reordering text
|
|
148
148
|
// rowReorderingHeaderName: 'Row reordering',
|
|
149
|
+
// Aggregation
|
|
150
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
151
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
152
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
153
|
+
// aggregationFunctionLabelMin: 'min',
|
|
154
|
+
// aggregationFunctionLabelMax: 'max',
|
|
155
|
+
// aggregationFunctionLabelSize: 'size',
|
|
149
156
|
|
|
150
157
|
};
|
|
151
158
|
export const csCZ = getGridLocalization(csCZGrid, csCZCore);
|
package/modern/locales/daDK.js
CHANGED
|
@@ -111,6 +111,13 @@ const daDKGrid = {
|
|
|
111
111
|
expandDetailPanel: 'Udvid',
|
|
112
112
|
collapseDetailPanel: 'Kollaps' // Row reordering text
|
|
113
113
|
// rowReorderingHeaderName: 'Row reordering',
|
|
114
|
+
// Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
114
121
|
|
|
115
122
|
};
|
|
116
123
|
export const daDK = getGridLocalization(daDKGrid, daDKCore);
|
package/modern/locales/deDE.js
CHANGED
|
@@ -21,9 +21,9 @@ const deDEGrid = {
|
|
|
21
21
|
toolbarFiltersTooltipShow: 'Zeige Filter',
|
|
22
22
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktive Filter` : `${count} aktiver Filter`,
|
|
23
23
|
// Quick filter toolbar field
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
toolbarQuickFilterPlaceholder: 'Suchen...',
|
|
25
|
+
toolbarQuickFilterLabel: 'Suchen',
|
|
26
|
+
toolbarQuickFilterDeleteIconLabel: 'Löschen',
|
|
27
27
|
// Export selector toolbar button text
|
|
28
28
|
toolbarExport: 'Exportieren',
|
|
29
29
|
toolbarExportLabel: 'Exportieren',
|
|
@@ -107,10 +107,17 @@ const deDEGrid = {
|
|
|
107
107
|
groupColumn: name => `Gruppieren nach ${name}`,
|
|
108
108
|
unGroupColumn: name => `Gruppierung nach ${name} aufheben`,
|
|
109
109
|
// Master/detail
|
|
110
|
-
|
|
110
|
+
detailPanelToggle: 'Detailansicht Kippschalter',
|
|
111
111
|
expandDetailPanel: 'Aufklappen',
|
|
112
112
|
collapseDetailPanel: 'Zuklappen',
|
|
113
113
|
// Row reordering text
|
|
114
|
-
rowReorderingHeaderName: 'Reihen neu ordnen'
|
|
114
|
+
rowReorderingHeaderName: 'Reihen neu ordnen' // Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
121
|
+
|
|
115
122
|
};
|
|
116
123
|
export const deDE = getGridLocalization(deDEGrid, deDECore);
|
package/modern/locales/elGR.js
CHANGED
|
@@ -110,6 +110,13 @@ const elGRGrid = {
|
|
|
110
110
|
// collapseDetailPanel: 'Collapse',
|
|
111
111
|
// Row reordering text
|
|
112
112
|
// rowReorderingHeaderName: 'Row reordering',
|
|
113
|
+
// Aggregation
|
|
114
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
115
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
116
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
117
|
+
// aggregationFunctionLabelMin: 'min',
|
|
118
|
+
// aggregationFunctionLabelMax: 'max',
|
|
119
|
+
// aggregationFunctionLabelSize: 'size',
|
|
113
120
|
|
|
114
121
|
};
|
|
115
122
|
export const elGR = getGridLocalization(elGRGrid);
|
package/modern/locales/esES.js
CHANGED
|
@@ -111,6 +111,13 @@ const esESGrid = {
|
|
|
111
111
|
// collapseDetailPanel: 'Collapse',
|
|
112
112
|
// Row reordering text
|
|
113
113
|
// rowReorderingHeaderName: 'Row reordering',
|
|
114
|
+
// Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
114
121
|
|
|
115
122
|
};
|
|
116
123
|
export const esES = getGridLocalization(esESGrid, esESCore);
|
package/modern/locales/faIR.js
CHANGED
|
@@ -111,6 +111,13 @@ const faIRGrid = {
|
|
|
111
111
|
expandDetailPanel: 'بازکردن پنل جزئیات',
|
|
112
112
|
collapseDetailPanel: 'بستن پنل جزئیات' // Row reordering text
|
|
113
113
|
// rowReorderingHeaderName: 'Row reordering',
|
|
114
|
+
// Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
114
121
|
|
|
115
122
|
};
|
|
116
123
|
export const faIR = getGridLocalization(faIRGrid, faIRCore);
|
package/modern/locales/fiFI.js
CHANGED
|
@@ -111,6 +111,13 @@ const fiFIGrid = {
|
|
|
111
111
|
// collapseDetailPanel: 'Collapse',
|
|
112
112
|
// Row reordering text
|
|
113
113
|
// rowReorderingHeaderName: 'Row reordering',
|
|
114
|
+
// Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
114
121
|
|
|
115
122
|
};
|
|
116
123
|
export const fiFI = getGridLocalization(fiFIGrid, fiFICore);
|
package/modern/locales/frFR.js
CHANGED
|
@@ -29,7 +29,7 @@ const frFRGrid = {
|
|
|
29
29
|
toolbarExportLabel: 'Exporter',
|
|
30
30
|
toolbarExportCSV: 'Télécharger en CSV',
|
|
31
31
|
toolbarExportPrint: 'Imprimer',
|
|
32
|
-
|
|
32
|
+
toolbarExportExcel: 'Télécharger pour Excel',
|
|
33
33
|
// Columns panel text
|
|
34
34
|
columnsPanelTextFieldLabel: 'Chercher colonne',
|
|
35
35
|
columnsPanelTextFieldPlaceholder: 'Titre de la colonne',
|
|
@@ -85,10 +85,10 @@ const frFRGrid = {
|
|
|
85
85
|
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} sur ${totalCount.toLocaleString()}`,
|
|
86
86
|
// Checkbox selection text
|
|
87
87
|
checkboxSelectionHeaderName: 'Sélection',
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
checkboxSelectionSelectAllRows: 'Sélectionner toutes les lignes',
|
|
89
|
+
checkboxSelectionUnselectAllRows: 'Désélectionner toutes les lignes',
|
|
90
|
+
checkboxSelectionSelectRow: 'Sélectionner la ligne',
|
|
91
|
+
checkboxSelectionUnselectRow: 'Désélectionner la ligne',
|
|
92
92
|
// Boolean cell text
|
|
93
93
|
booleanCellTrueLabel: 'vrai',
|
|
94
94
|
booleanCellFalseLabel: 'faux',
|
|
@@ -105,12 +105,19 @@ const frFRGrid = {
|
|
|
105
105
|
// Grouping columns
|
|
106
106
|
groupingColumnHeaderName: 'Groupe',
|
|
107
107
|
groupColumn: name => `Grouper par ${name}`,
|
|
108
|
-
unGroupColumn: name => `Arrêter de grouper par ${name}
|
|
109
|
-
//
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
unGroupColumn: name => `Arrêter de grouper par ${name}`,
|
|
109
|
+
// Master/detail
|
|
110
|
+
detailPanelToggle: 'Afficher/masquer les détails',
|
|
111
|
+
expandDetailPanel: 'Afficher',
|
|
112
|
+
collapseDetailPanel: 'Masquer',
|
|
112
113
|
// Row reordering text
|
|
113
|
-
|
|
114
|
+
rowReorderingHeaderName: 'Positionnement des lignes' // Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
114
121
|
|
|
115
122
|
};
|
|
116
123
|
export const frFR = getGridLocalization(frFRGrid, frFRCore);
|
package/modern/locales/heIL.js
CHANGED
|
@@ -111,6 +111,13 @@ const heILGrid = {
|
|
|
111
111
|
expandDetailPanel: 'הרחב',
|
|
112
112
|
collapseDetailPanel: 'כווץ',
|
|
113
113
|
// Row reordering text
|
|
114
|
-
rowReorderingHeaderName: 'סידור שורות'
|
|
114
|
+
rowReorderingHeaderName: 'סידור שורות' // Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
121
|
+
|
|
115
122
|
};
|
|
116
123
|
export const heIL = getGridLocalization(heILGrid, heILCore);
|
package/modern/locales/huHU.js
CHANGED
|
@@ -111,6 +111,13 @@ const huHUGrid = {
|
|
|
111
111
|
expandDetailPanel: 'Kibontás',
|
|
112
112
|
collapseDetailPanel: 'Összecsukás' // Row reordering text
|
|
113
113
|
// rowReorderingHeaderName: 'Row reordering',
|
|
114
|
+
// Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
114
121
|
|
|
115
122
|
};
|
|
116
123
|
export const huHU = getGridLocalization(huHUGrid, huHUCore);
|
package/modern/locales/index.js
CHANGED
|
@@ -15,13 +15,16 @@ export * from './huHU';
|
|
|
15
15
|
export * from './itIT';
|
|
16
16
|
export * from './jaJP';
|
|
17
17
|
export * from './koKR';
|
|
18
|
+
export * from './nbNO';
|
|
18
19
|
export * from './nlNL';
|
|
19
20
|
export * from './plPL';
|
|
20
21
|
export * from './ptBR';
|
|
22
|
+
export * from './roRO';
|
|
21
23
|
export * from './ruRU';
|
|
22
24
|
export * from './skSK';
|
|
23
25
|
export * from './svSE';
|
|
24
26
|
export * from './trTR';
|
|
25
27
|
export * from './ukUA';
|
|
26
28
|
export * from './viVN';
|
|
27
|
-
export * from './zhCN';
|
|
29
|
+
export * from './zhCN';
|
|
30
|
+
export * from './zhTW';
|
package/modern/locales/itIT.js
CHANGED
|
@@ -111,6 +111,13 @@ const itITGrid = {
|
|
|
111
111
|
// collapseDetailPanel: 'Collapse',
|
|
112
112
|
// Row reordering text
|
|
113
113
|
// rowReorderingHeaderName: 'Row reordering',
|
|
114
|
+
// Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
114
121
|
|
|
115
122
|
};
|
|
116
123
|
export const itIT = getGridLocalization(itITGrid, itITCore);
|
package/modern/locales/jaJP.js
CHANGED
|
@@ -111,6 +111,13 @@ const jaJPGrid = {
|
|
|
111
111
|
expandDetailPanel: '展開',
|
|
112
112
|
collapseDetailPanel: '折りたたみ',
|
|
113
113
|
// Row reordering text
|
|
114
|
-
rowReorderingHeaderName: '行並び替え'
|
|
114
|
+
rowReorderingHeaderName: '行並び替え' // Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
121
|
+
|
|
115
122
|
};
|
|
116
123
|
export const jaJP = getGridLocalization(jaJPGrid, jaJPCore);
|
package/modern/locales/koKR.js
CHANGED
|
@@ -111,6 +111,13 @@ const koKRGrid = {
|
|
|
111
111
|
// collapseDetailPanel: 'Collapse',
|
|
112
112
|
// Row reordering text
|
|
113
113
|
// rowReorderingHeaderName: 'Row reordering',
|
|
114
|
+
// Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
114
121
|
|
|
115
122
|
};
|
|
116
123
|
export const koKR = getGridLocalization(koKRGrid, koKRCore);
|
package/modern/locales/nbNO.js
CHANGED
|
@@ -111,6 +111,13 @@ const nbNOGrid = {
|
|
|
111
111
|
expandDetailPanel: 'Utvid',
|
|
112
112
|
collapseDetailPanel: 'Kollaps',
|
|
113
113
|
// Row reordering text
|
|
114
|
-
rowReorderingHeaderName: 'Rad reorganisering'
|
|
114
|
+
rowReorderingHeaderName: 'Rad reorganisering' // Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
121
|
+
|
|
115
122
|
};
|
|
116
123
|
export const nbNO = getGridLocalization(nbNOGrid, nbNOCore);
|
package/modern/locales/nlNL.js
CHANGED
|
@@ -21,15 +21,15 @@ const nlNLGrid = {
|
|
|
21
21
|
toolbarFiltersTooltipShow: 'Toon filters',
|
|
22
22
|
toolbarFiltersTooltipActive: count => count > 1 ? `${count} actieve filters` : `${count} filter actief`,
|
|
23
23
|
// Quick filter toolbar field
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
toolbarQuickFilterPlaceholder: 'Zoeken...',
|
|
25
|
+
toolbarQuickFilterLabel: 'Zoeken',
|
|
26
|
+
toolbarQuickFilterDeleteIconLabel: 'Wissen',
|
|
27
27
|
// Export selector toolbar button text
|
|
28
28
|
toolbarExport: 'Exporteren',
|
|
29
29
|
toolbarExportLabel: 'Exporteren',
|
|
30
30
|
toolbarExportCSV: 'Exporteer naar CSV',
|
|
31
31
|
toolbarExportPrint: 'Print',
|
|
32
|
-
|
|
32
|
+
toolbarExportExcel: 'Downloaden als Excel-bestand',
|
|
33
33
|
// Columns panel text
|
|
34
34
|
columnsPanelTextFieldLabel: 'Zoek kolom',
|
|
35
35
|
columnsPanelTextFieldPlaceholder: 'Kolomtitel',
|
|
@@ -39,7 +39,7 @@ const nlNLGrid = {
|
|
|
39
39
|
// Filter panel text
|
|
40
40
|
filterPanelAddFilter: 'Filter toevoegen',
|
|
41
41
|
filterPanelDeleteIconLabel: 'Verwijderen',
|
|
42
|
-
|
|
42
|
+
filterPanelLinkOperator: 'Logische operator',
|
|
43
43
|
filterPanelOperators: 'Operatoren',
|
|
44
44
|
// TODO v6: rename to filterPanelOperator
|
|
45
45
|
filterPanelOperatorAnd: 'En',
|
|
@@ -60,7 +60,7 @@ const nlNLGrid = {
|
|
|
60
60
|
filterOperatorOnOrBefore: 'is gelijk of er voor',
|
|
61
61
|
filterOperatorIsEmpty: 'is leeg',
|
|
62
62
|
filterOperatorIsNotEmpty: 'is niet leeg',
|
|
63
|
-
|
|
63
|
+
filterOperatorIsAnyOf: 'is een van',
|
|
64
64
|
// Filter values text
|
|
65
65
|
filterValueAny: 'alles',
|
|
66
66
|
filterValueTrue: 'waar',
|
|
@@ -85,10 +85,10 @@ const nlNLGrid = {
|
|
|
85
85
|
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} van ${totalCount.toLocaleString()}`,
|
|
86
86
|
// Checkbox selection text
|
|
87
87
|
checkboxSelectionHeaderName: 'Checkbox selectie',
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
checkboxSelectionSelectAllRows: 'Alle rijen selecteren',
|
|
89
|
+
checkboxSelectionUnselectAllRows: 'Alle rijen de-selecteren',
|
|
90
|
+
checkboxSelectionSelectRow: 'Rij selecteren',
|
|
91
|
+
checkboxSelectionUnselectRow: 'Rij de-selecteren',
|
|
92
92
|
// Boolean cell text
|
|
93
93
|
booleanCellTrueLabel: 'waar',
|
|
94
94
|
booleanCellFalseLabel: 'onwaar',
|
|
@@ -105,12 +105,19 @@ const nlNLGrid = {
|
|
|
105
105
|
// Grouping columns
|
|
106
106
|
groupingColumnHeaderName: 'Groep',
|
|
107
107
|
groupColumn: name => `Groepeer op ${name}`,
|
|
108
|
-
unGroupColumn: name => `Stop groeperen op ${name}
|
|
108
|
+
unGroupColumn: name => `Stop groeperen op ${name}`,
|
|
109
|
+
// Master/detail
|
|
109
110
|
// detailPanelToggle: 'Detail panel toggle',
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
expandDetailPanel: 'Uitklappen',
|
|
112
|
+
collapseDetailPanel: 'Inklappen',
|
|
112
113
|
// Row reordering text
|
|
113
|
-
|
|
114
|
+
rowReorderingHeaderName: 'Rijen hersorteren' // Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
114
121
|
|
|
115
122
|
};
|
|
116
123
|
export const nlNL = getGridLocalization(nlNLGrid, nlNLCore);
|
package/modern/locales/plPL.js
CHANGED
|
@@ -111,6 +111,13 @@ const plPLGrid = {
|
|
|
111
111
|
expandDetailPanel: 'Rozwiń',
|
|
112
112
|
collapseDetailPanel: 'Zwiń' // Row reordering text
|
|
113
113
|
// rowReorderingHeaderName: 'Row reordering',
|
|
114
|
+
// Aggregation
|
|
115
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
117
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
118
|
+
// aggregationFunctionLabelMin: 'min',
|
|
119
|
+
// aggregationFunctionLabelMax: 'max',
|
|
120
|
+
// aggregationFunctionLabelSize: 'size',
|
|
114
121
|
|
|
115
122
|
};
|
|
116
123
|
export const plPL = getGridLocalization(plPLGrid, plPLCore);
|