@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
|
@@ -63,25 +63,24 @@ const parseSortItem = (sortItem, apiRef) => {
|
|
|
63
63
|
comparator
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
|
+
|
|
66
67
|
/**
|
|
67
68
|
* Compare two rows according to a list of valid sort items.
|
|
68
69
|
* The `row1Params` and `row2Params` must have the same length as `parsedSortItems`,
|
|
69
70
|
* and each of their index must contain the `GridSortCellParams` of the sort item with the same index.
|
|
70
71
|
* @param {GridParsedSortItem[]} parsedSortItems All the sort items with which we want to compare the rows.
|
|
71
|
-
* @param {
|
|
72
|
-
* @param {
|
|
72
|
+
* @param {GridRowAggregatedSortingParams} row1 The node and params of the 1st row for each sort item.
|
|
73
|
+
* @param {GridRowAggregatedSortingParams} row2 The node and params of the 2nd row for each sort item.
|
|
73
74
|
*/
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
const compareRows = (parsedSortItems, row1Params, row2Params) => {
|
|
75
|
+
const compareRows = (parsedSortItems, row1, row2) => {
|
|
77
76
|
return parsedSortItems.reduce((res, item, index) => {
|
|
78
77
|
if (res !== 0) {
|
|
79
78
|
// return the results of the first comparator which distinguish the two rows
|
|
80
79
|
return res;
|
|
81
80
|
}
|
|
82
81
|
|
|
83
|
-
const sortCellParams1 =
|
|
84
|
-
const sortCellParams2 =
|
|
82
|
+
const sortCellParams1 = row1.params[index];
|
|
83
|
+
const sortCellParams2 = row2.params[index];
|
|
85
84
|
res = item.comparator(sortCellParams1.value, sortCellParams2.value, sortCellParams1, sortCellParams2);
|
|
86
85
|
return res;
|
|
87
86
|
}, 0);
|
|
@@ -101,10 +100,10 @@ const buildAggregatedSortingApplier = (sortModel, apiRef) => {
|
|
|
101
100
|
return null;
|
|
102
101
|
}
|
|
103
102
|
|
|
104
|
-
return rowList => rowList.map(
|
|
105
|
-
|
|
106
|
-
params: comparatorList.map(el => el.getSortCellParams(
|
|
107
|
-
})).sort((a, b) => compareRows(comparatorList, a
|
|
103
|
+
return rowList => rowList.map(node => ({
|
|
104
|
+
node,
|
|
105
|
+
params: comparatorList.map(el => el.getSortCellParams(node.id))
|
|
106
|
+
})).sort((a, b) => compareRows(comparatorList, a, b)).map(row => row.node.id);
|
|
108
107
|
};
|
|
109
108
|
|
|
110
109
|
exports.buildAggregatedSortingApplier = buildAggregatedSortingApplier;
|
|
@@ -59,6 +59,8 @@ const sortingStateInitializer = (state, props) => {
|
|
|
59
59
|
exports.sortingStateInitializer = sortingStateInitializer;
|
|
60
60
|
|
|
61
61
|
const useGridSorting = (apiRef, props) => {
|
|
62
|
+
var _props$initialState3, _props$initialState3$;
|
|
63
|
+
|
|
62
64
|
const logger = (0, _useGridLogger.useGridLogger)(apiRef, 'useGridSorting');
|
|
63
65
|
apiRef.current.unstable_registerControlState({
|
|
64
66
|
stateId: 'sortModel',
|
|
@@ -182,10 +184,17 @@ const useGridSorting = (apiRef, props) => {
|
|
|
182
184
|
* PRE-PROCESSING
|
|
183
185
|
*/
|
|
184
186
|
|
|
185
|
-
const stateExportPreProcessing = React.useCallback(prevState => {
|
|
187
|
+
const stateExportPreProcessing = React.useCallback((prevState, context) => {
|
|
188
|
+
var _props$initialState2, _props$initialState2$;
|
|
189
|
+
|
|
186
190
|
const sortModelToExport = (0, _gridSortingSelector.gridSortModelSelector)(apiRef);
|
|
191
|
+
const shouldExportSortModel = // Always export if the `exportOnlyDirtyModels` property is activated
|
|
192
|
+
!context.exportOnlyDirtyModels || // Always export if the model is controlled
|
|
193
|
+
props.sortModel != null || // Always export if the model has been initialized
|
|
194
|
+
((_props$initialState2 = props.initialState) == null ? void 0 : (_props$initialState2$ = _props$initialState2.sorting) == null ? void 0 : _props$initialState2$.sortModel) != null || // Export if the model is not empty
|
|
195
|
+
sortModelToExport.length > 0;
|
|
187
196
|
|
|
188
|
-
if (
|
|
197
|
+
if (!shouldExportSortModel) {
|
|
189
198
|
return prevState;
|
|
190
199
|
}
|
|
191
200
|
|
|
@@ -194,7 +203,7 @@ const useGridSorting = (apiRef, props) => {
|
|
|
194
203
|
sortModel: sortModelToExport
|
|
195
204
|
}
|
|
196
205
|
});
|
|
197
|
-
}, [apiRef]);
|
|
206
|
+
}, [apiRef, props.sortModel, (_props$initialState3 = props.initialState) == null ? void 0 : (_props$initialState3$ = _props$initialState3.sorting) == null ? void 0 : _props$initialState3$.sortModel]);
|
|
198
207
|
const stateRestorePreProcessing = React.useCallback((params, context) => {
|
|
199
208
|
var _context$stateToResto;
|
|
200
209
|
|
|
@@ -210,12 +219,31 @@ const useGridSorting = (apiRef, props) => {
|
|
|
210
219
|
});
|
|
211
220
|
}, [apiRef, props.disableMultipleColumnsSorting]);
|
|
212
221
|
const flatSortingMethod = React.useCallback(params => {
|
|
222
|
+
const rowTree = (0, _rows.gridRowTreeSelector)(apiRef);
|
|
223
|
+
|
|
213
224
|
if (!params.sortRowList) {
|
|
214
|
-
|
|
225
|
+
const bodyRowIds = [];
|
|
226
|
+
const footerRowIds = [];
|
|
227
|
+
(0, _rows.gridRowIdsSelector)(apiRef).forEach(rowId => {
|
|
228
|
+
if (rowTree[rowId].position === 'footer') {
|
|
229
|
+
footerRowIds.push(rowId);
|
|
230
|
+
} else {
|
|
231
|
+
bodyRowIds.push(rowId);
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
return [...bodyRowIds, ...footerRowIds];
|
|
215
235
|
}
|
|
216
236
|
|
|
217
|
-
const
|
|
218
|
-
|
|
237
|
+
const bodyRows = [];
|
|
238
|
+
const footerRowIds = [];
|
|
239
|
+
Object.values(rowTree).forEach(rowNode => {
|
|
240
|
+
if (rowNode.position === 'footer') {
|
|
241
|
+
footerRowIds.push(rowNode.id);
|
|
242
|
+
} else {
|
|
243
|
+
bodyRows.push(rowNode);
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
return [...params.sortRowList(bodyRows), ...footerRowIds];
|
|
219
247
|
}, [apiRef]);
|
|
220
248
|
(0, _pipeProcessing.useGridRegisterPipeProcessor)(apiRef, 'exportState', stateExportPreProcessing);
|
|
221
249
|
(0, _pipeProcessing.useGridRegisterPipeProcessor)(apiRef, 'restoreState', stateRestorePreProcessing);
|
|
@@ -14,8 +14,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
15
|
|
|
16
16
|
const useGridStatePersistence = apiRef => {
|
|
17
|
-
const exportState = React.useCallback(() => {
|
|
18
|
-
const stateToExport = apiRef.current.unstable_applyPipeProcessors('exportState', {});
|
|
17
|
+
const exportState = React.useCallback((params = {}) => {
|
|
18
|
+
const stateToExport = apiRef.current.unstable_applyPipeProcessors('exportState', {}, params);
|
|
19
19
|
return stateToExport;
|
|
20
20
|
}, [apiRef]);
|
|
21
21
|
const restoreState = React.useCallback(stateToRestore => {
|
|
@@ -91,6 +91,8 @@ const getRenderableIndexes = ({
|
|
|
91
91
|
exports.getRenderableIndexes = getRenderableIndexes;
|
|
92
92
|
|
|
93
93
|
const useGridVirtualScroller = props => {
|
|
94
|
+
var _currentPage$range3, _currentPage$range4;
|
|
95
|
+
|
|
94
96
|
const apiRef = (0, _useGridApiContext.useGridApiContext)();
|
|
95
97
|
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
96
98
|
const visibleColumns = (0, _useGridSelector.useGridSelector)(apiRef, _gridColumnsSelector.gridVisibleColumnDefinitionsSelector);
|
|
@@ -123,8 +125,17 @@ const useGridVirtualScroller = props => {
|
|
|
123
125
|
const [containerWidth, setContainerWidth] = React.useState(null);
|
|
124
126
|
const prevTotalWidth = React.useRef(columnsTotalWidth);
|
|
125
127
|
const getNearestIndexToRender = React.useCallback(offset => {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
+
var _currentPage$range, _currentPage$range2;
|
|
129
|
+
|
|
130
|
+
const lastMeasuredIndexRelativeToAllRows = apiRef.current.unstable_getLastMeasuredRowIndex();
|
|
131
|
+
const lastMeasuredIndexRelativeToCurrentPage = lastMeasuredIndexRelativeToAllRows - (((_currentPage$range = currentPage.range) == null ? void 0 : _currentPage$range.firstRowIndex) || 0);
|
|
132
|
+
const lastMeasuredIndex = Math.max(0, lastMeasuredIndexRelativeToCurrentPage);
|
|
133
|
+
let allRowsMeasured = lastMeasuredIndex === Infinity;
|
|
134
|
+
|
|
135
|
+
if ((_currentPage$range2 = currentPage.range) != null && _currentPage$range2.lastRowIndex && !allRowsMeasured) {
|
|
136
|
+
// Check if all rows in this page are already measured
|
|
137
|
+
allRowsMeasured = lastMeasuredIndex >= currentPage.range.lastRowIndex;
|
|
138
|
+
}
|
|
128
139
|
|
|
129
140
|
if (allRowsMeasured || rowsMeta.positions[lastMeasuredIndex] >= offset) {
|
|
130
141
|
// If all rows were measured (when no row has "auto" as height) or all rows before the offset
|
|
@@ -137,7 +148,7 @@ const useGridVirtualScroller = props => {
|
|
|
137
148
|
|
|
138
149
|
|
|
139
150
|
return exponentialSearch(offset, rowsMeta.positions, lastMeasuredIndex);
|
|
140
|
-
}, [apiRef, rowsMeta.positions]);
|
|
151
|
+
}, [apiRef, (_currentPage$range3 = currentPage.range) == null ? void 0 : _currentPage$range3.firstRowIndex, (_currentPage$range4 = currentPage.range) == null ? void 0 : _currentPage$range4.lastRowIndex, rowsMeta.positions]);
|
|
141
152
|
const computeRenderContext = React.useCallback(() => {
|
|
142
153
|
if (disableVirtualization) {
|
|
143
154
|
return {
|
|
@@ -339,7 +350,8 @@ const useGridVirtualScroller = props => {
|
|
|
339
350
|
apiRef.current.unstable_calculateColSpan({
|
|
340
351
|
rowId: row.id,
|
|
341
352
|
minFirstColumn,
|
|
342
|
-
maxLastColumn
|
|
353
|
+
maxLastColumn,
|
|
354
|
+
columns: visibleColumns
|
|
343
355
|
});
|
|
344
356
|
}
|
|
345
357
|
|
|
@@ -373,10 +385,8 @@ const useGridVirtualScroller = props => {
|
|
|
373
385
|
|
|
374
386
|
if (selectedRowsLookup[id] == null) {
|
|
375
387
|
isSelected = false;
|
|
376
|
-
} else if (typeof rootProps.isRowSelectable === 'function') {
|
|
377
|
-
isSelected = rootProps.isRowSelectable(apiRef.current.getRowParams(id));
|
|
378
388
|
} else {
|
|
379
|
-
isSelected =
|
|
389
|
+
isSelected = apiRef.current.isRowSelectable(id);
|
|
380
390
|
}
|
|
381
391
|
|
|
382
392
|
rows.push( /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.components.Row, (0, _extends2.default)({
|
|
@@ -17,7 +17,7 @@ function useGridApiContext() {
|
|
|
17
17
|
const apiRef = React.useContext(_GridApiContext.GridApiContext);
|
|
18
18
|
|
|
19
19
|
if (apiRef === undefined) {
|
|
20
|
-
throw new Error(['MUI: Could not find the data grid context.', 'It looks like you rendered your component outside of a DataGrid or
|
|
20
|
+
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'));
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
return apiRef;
|
|
@@ -34,7 +34,7 @@ const useGridNativeEventListener = (apiRef, ref, eventName, handler, options) =>
|
|
|
34
34
|
targetElement = ref && ref.current ? ref.current : null;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
if (targetElement &&
|
|
37
|
+
if (targetElement && eventName && !added) {
|
|
38
38
|
logger.debug(`Binding native ${eventName} event`);
|
|
39
39
|
targetElement.addEventListener(eventName, wrapHandler, options);
|
|
40
40
|
const boundElem = targetElement;
|
|
@@ -17,7 +17,7 @@ const useGridRootProps = () => {
|
|
|
17
17
|
const contextValue = React.useContext(_GridRootPropsContext.GridRootPropsContext);
|
|
18
18
|
|
|
19
19
|
if (!contextValue) {
|
|
20
|
-
throw new Error('MUI: useGridRootProps should only be used inside the DataGrid
|
|
20
|
+
throw new Error('MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.');
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
return contextValue;
|
package/node/index.js
CHANGED
package/node/internals/index.js
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "GRID_DEFAULT_STRATEGY", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _strategyProcessing.GRID_DEFAULT_STRATEGY;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
6
12
|
Object.defineProperty(exports, "GridColumnHeaders", {
|
|
7
13
|
enumerable: true,
|
|
8
14
|
get: function () {
|
|
@@ -123,12 +129,24 @@ Object.defineProperty(exports, "isDeepEqual", {
|
|
|
123
129
|
return _utils2.isDeepEqual;
|
|
124
130
|
}
|
|
125
131
|
});
|
|
132
|
+
Object.defineProperty(exports, "isFunction", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function () {
|
|
135
|
+
return _utils2.isFunction;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
126
138
|
Object.defineProperty(exports, "isNavigationKey", {
|
|
127
139
|
enumerable: true,
|
|
128
140
|
get: function () {
|
|
129
141
|
return _keyboardUtils.isNavigationKey;
|
|
130
142
|
}
|
|
131
143
|
});
|
|
144
|
+
Object.defineProperty(exports, "isNumber", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () {
|
|
147
|
+
return _utils2.isNumber;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
132
150
|
Object.defineProperty(exports, "paginationStateInitializer", {
|
|
133
151
|
enumerable: true,
|
|
134
152
|
get: function () {
|
package/node/locales/arSD.js
CHANGED
|
@@ -120,6 +120,13 @@ const arSDGrid = {
|
|
|
120
120
|
expandDetailPanel: 'توسيع',
|
|
121
121
|
collapseDetailPanel: 'طوي' // Row reordering text
|
|
122
122
|
// rowReorderingHeaderName: 'Row reordering',
|
|
123
|
+
// Aggregation
|
|
124
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
125
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
126
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
127
|
+
// aggregationFunctionLabelMin: 'min',
|
|
128
|
+
// aggregationFunctionLabelMax: 'max',
|
|
129
|
+
// aggregationFunctionLabelSize: 'size',
|
|
123
130
|
|
|
124
131
|
};
|
|
125
132
|
const arSD = (0, _getGridLocalization.getGridLocalization)(arSDGrid, _locale.arSD);
|
package/node/locales/bgBG.js
CHANGED
|
@@ -120,6 +120,13 @@ const bgBGGrid = {
|
|
|
120
120
|
expandDetailPanel: 'Разгъване',
|
|
121
121
|
collapseDetailPanel: 'Свиване' // Row reordering text
|
|
122
122
|
// rowReorderingHeaderName: 'Row reordering',
|
|
123
|
+
// Aggregation
|
|
124
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
125
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
126
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
127
|
+
// aggregationFunctionLabelMin: 'min',
|
|
128
|
+
// aggregationFunctionLabelMax: 'max',
|
|
129
|
+
// aggregationFunctionLabelSize: 'size',
|
|
123
130
|
|
|
124
131
|
};
|
|
125
132
|
const bgBG = (0, _getGridLocalization.getGridLocalization)(bgBGGrid, _locale.bgBG);
|
package/node/locales/csCZ.js
CHANGED
|
@@ -155,6 +155,13 @@ const csCZGrid = {
|
|
|
155
155
|
// collapseDetailPanel: 'Collapse',
|
|
156
156
|
// Row reordering text
|
|
157
157
|
// rowReorderingHeaderName: 'Row reordering',
|
|
158
|
+
// Aggregation
|
|
159
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
160
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
161
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
162
|
+
// aggregationFunctionLabelMin: 'min',
|
|
163
|
+
// aggregationFunctionLabelMax: 'max',
|
|
164
|
+
// aggregationFunctionLabelSize: 'size',
|
|
158
165
|
|
|
159
166
|
};
|
|
160
167
|
const csCZ = (0, _getGridLocalization.getGridLocalization)(csCZGrid, _locale.csCZ);
|
package/node/locales/daDK.js
CHANGED
|
@@ -120,6 +120,13 @@ const daDKGrid = {
|
|
|
120
120
|
expandDetailPanel: 'Udvid',
|
|
121
121
|
collapseDetailPanel: 'Kollaps' // Row reordering text
|
|
122
122
|
// rowReorderingHeaderName: 'Row reordering',
|
|
123
|
+
// Aggregation
|
|
124
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
125
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
126
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
127
|
+
// aggregationFunctionLabelMin: 'min',
|
|
128
|
+
// aggregationFunctionLabelMax: 'max',
|
|
129
|
+
// aggregationFunctionLabelSize: 'size',
|
|
123
130
|
|
|
124
131
|
};
|
|
125
132
|
const daDK = (0, _getGridLocalization.getGridLocalization)(daDKGrid, _locale.daDK);
|
package/node/locales/deDE.js
CHANGED
|
@@ -30,9 +30,9 @@ const deDEGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Zeige Filter',
|
|
31
31
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktive Filter` : `${count} aktiver Filter`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
toolbarQuickFilterPlaceholder: 'Suchen...',
|
|
34
|
+
toolbarQuickFilterLabel: 'Suchen',
|
|
35
|
+
toolbarQuickFilterDeleteIconLabel: 'Löschen',
|
|
36
36
|
// Export selector toolbar button text
|
|
37
37
|
toolbarExport: 'Exportieren',
|
|
38
38
|
toolbarExportLabel: 'Exportieren',
|
|
@@ -116,11 +116,18 @@ const deDEGrid = {
|
|
|
116
116
|
groupColumn: name => `Gruppieren nach ${name}`,
|
|
117
117
|
unGroupColumn: name => `Gruppierung nach ${name} aufheben`,
|
|
118
118
|
// Master/detail
|
|
119
|
-
|
|
119
|
+
detailPanelToggle: 'Detailansicht Kippschalter',
|
|
120
120
|
expandDetailPanel: 'Aufklappen',
|
|
121
121
|
collapseDetailPanel: 'Zuklappen',
|
|
122
122
|
// Row reordering text
|
|
123
|
-
rowReorderingHeaderName: 'Reihen neu ordnen'
|
|
123
|
+
rowReorderingHeaderName: 'Reihen neu ordnen' // Aggregation
|
|
124
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
125
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
126
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
127
|
+
// aggregationFunctionLabelMin: 'min',
|
|
128
|
+
// aggregationFunctionLabelMax: 'max',
|
|
129
|
+
// aggregationFunctionLabelSize: 'size',
|
|
130
|
+
|
|
124
131
|
};
|
|
125
132
|
const deDE = (0, _getGridLocalization.getGridLocalization)(deDEGrid, _locale.deDE);
|
|
126
133
|
exports.deDE = deDE;
|
package/node/locales/elGR.js
CHANGED
|
@@ -118,6 +118,13 @@ const elGRGrid = {
|
|
|
118
118
|
// collapseDetailPanel: 'Collapse',
|
|
119
119
|
// Row reordering text
|
|
120
120
|
// rowReorderingHeaderName: 'Row reordering',
|
|
121
|
+
// Aggregation
|
|
122
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
123
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
124
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
125
|
+
// aggregationFunctionLabelMin: 'min',
|
|
126
|
+
// aggregationFunctionLabelMax: 'max',
|
|
127
|
+
// aggregationFunctionLabelSize: 'size',
|
|
121
128
|
|
|
122
129
|
};
|
|
123
130
|
const elGR = (0, _getGridLocalization.getGridLocalization)(elGRGrid);
|
package/node/locales/esES.js
CHANGED
|
@@ -120,6 +120,13 @@ const esESGrid = {
|
|
|
120
120
|
// collapseDetailPanel: 'Collapse',
|
|
121
121
|
// Row reordering text
|
|
122
122
|
// rowReorderingHeaderName: 'Row reordering',
|
|
123
|
+
// Aggregation
|
|
124
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
125
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
126
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
127
|
+
// aggregationFunctionLabelMin: 'min',
|
|
128
|
+
// aggregationFunctionLabelMax: 'max',
|
|
129
|
+
// aggregationFunctionLabelSize: 'size',
|
|
123
130
|
|
|
124
131
|
};
|
|
125
132
|
const esES = (0, _getGridLocalization.getGridLocalization)(esESGrid, _locale.esES);
|
package/node/locales/faIR.js
CHANGED
|
@@ -120,6 +120,13 @@ const faIRGrid = {
|
|
|
120
120
|
expandDetailPanel: 'بازکردن پنل جزئیات',
|
|
121
121
|
collapseDetailPanel: 'بستن پنل جزئیات' // Row reordering text
|
|
122
122
|
// rowReorderingHeaderName: 'Row reordering',
|
|
123
|
+
// Aggregation
|
|
124
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
125
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
126
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
127
|
+
// aggregationFunctionLabelMin: 'min',
|
|
128
|
+
// aggregationFunctionLabelMax: 'max',
|
|
129
|
+
// aggregationFunctionLabelSize: 'size',
|
|
123
130
|
|
|
124
131
|
};
|
|
125
132
|
const faIR = (0, _getGridLocalization.getGridLocalization)(faIRGrid, _locale.faIR);
|
package/node/locales/fiFI.js
CHANGED
|
@@ -120,6 +120,13 @@ const fiFIGrid = {
|
|
|
120
120
|
// collapseDetailPanel: 'Collapse',
|
|
121
121
|
// Row reordering text
|
|
122
122
|
// rowReorderingHeaderName: 'Row reordering',
|
|
123
|
+
// Aggregation
|
|
124
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
125
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
126
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
127
|
+
// aggregationFunctionLabelMin: 'min',
|
|
128
|
+
// aggregationFunctionLabelMax: 'max',
|
|
129
|
+
// aggregationFunctionLabelSize: 'size',
|
|
123
130
|
|
|
124
131
|
};
|
|
125
132
|
const fiFI = (0, _getGridLocalization.getGridLocalization)(fiFIGrid, _locale.fiFI);
|
package/node/locales/frFR.js
CHANGED
|
@@ -38,7 +38,7 @@ const frFRGrid = {
|
|
|
38
38
|
toolbarExportLabel: 'Exporter',
|
|
39
39
|
toolbarExportCSV: 'Télécharger en CSV',
|
|
40
40
|
toolbarExportPrint: 'Imprimer',
|
|
41
|
-
|
|
41
|
+
toolbarExportExcel: 'Télécharger pour Excel',
|
|
42
42
|
// Columns panel text
|
|
43
43
|
columnsPanelTextFieldLabel: 'Chercher colonne',
|
|
44
44
|
columnsPanelTextFieldPlaceholder: 'Titre de la colonne',
|
|
@@ -94,10 +94,10 @@ const frFRGrid = {
|
|
|
94
94
|
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} sur ${totalCount.toLocaleString()}`,
|
|
95
95
|
// Checkbox selection text
|
|
96
96
|
checkboxSelectionHeaderName: 'Sélection',
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
checkboxSelectionSelectAllRows: 'Sélectionner toutes les lignes',
|
|
98
|
+
checkboxSelectionUnselectAllRows: 'Désélectionner toutes les lignes',
|
|
99
|
+
checkboxSelectionSelectRow: 'Sélectionner la ligne',
|
|
100
|
+
checkboxSelectionUnselectRow: 'Désélectionner la ligne',
|
|
101
101
|
// Boolean cell text
|
|
102
102
|
booleanCellTrueLabel: 'vrai',
|
|
103
103
|
booleanCellFalseLabel: 'faux',
|
|
@@ -114,12 +114,19 @@ const frFRGrid = {
|
|
|
114
114
|
// Grouping columns
|
|
115
115
|
groupingColumnHeaderName: 'Groupe',
|
|
116
116
|
groupColumn: name => `Grouper par ${name}`,
|
|
117
|
-
unGroupColumn: name => `Arrêter de grouper par ${name}
|
|
118
|
-
//
|
|
119
|
-
|
|
120
|
-
|
|
117
|
+
unGroupColumn: name => `Arrêter de grouper par ${name}`,
|
|
118
|
+
// Master/detail
|
|
119
|
+
detailPanelToggle: 'Afficher/masquer les détails',
|
|
120
|
+
expandDetailPanel: 'Afficher',
|
|
121
|
+
collapseDetailPanel: 'Masquer',
|
|
121
122
|
// Row reordering text
|
|
122
|
-
|
|
123
|
+
rowReorderingHeaderName: 'Positionnement des lignes' // Aggregation
|
|
124
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
125
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
126
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
127
|
+
// aggregationFunctionLabelMin: 'min',
|
|
128
|
+
// aggregationFunctionLabelMax: 'max',
|
|
129
|
+
// aggregationFunctionLabelSize: 'size',
|
|
123
130
|
|
|
124
131
|
};
|
|
125
132
|
const frFR = (0, _getGridLocalization.getGridLocalization)(frFRGrid, _locale.frFR);
|
package/node/locales/heIL.js
CHANGED
|
@@ -120,7 +120,14 @@ const heILGrid = {
|
|
|
120
120
|
expandDetailPanel: 'הרחב',
|
|
121
121
|
collapseDetailPanel: 'כווץ',
|
|
122
122
|
// Row reordering text
|
|
123
|
-
rowReorderingHeaderName: 'סידור שורות'
|
|
123
|
+
rowReorderingHeaderName: 'סידור שורות' // Aggregation
|
|
124
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
125
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
126
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
127
|
+
// aggregationFunctionLabelMin: 'min',
|
|
128
|
+
// aggregationFunctionLabelMax: 'max',
|
|
129
|
+
// aggregationFunctionLabelSize: 'size',
|
|
130
|
+
|
|
124
131
|
};
|
|
125
132
|
const heIL = (0, _getGridLocalization.getGridLocalization)(heILGrid, _locale.heIL);
|
|
126
133
|
exports.heIL = heIL;
|
package/node/locales/huHU.js
CHANGED
|
@@ -120,6 +120,13 @@ const huHUGrid = {
|
|
|
120
120
|
expandDetailPanel: 'Kibontás',
|
|
121
121
|
collapseDetailPanel: 'Összecsukás' // Row reordering text
|
|
122
122
|
// rowReorderingHeaderName: 'Row reordering',
|
|
123
|
+
// Aggregation
|
|
124
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
125
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
126
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
127
|
+
// aggregationFunctionLabelMin: 'min',
|
|
128
|
+
// aggregationFunctionLabelMax: 'max',
|
|
129
|
+
// aggregationFunctionLabelSize: 'size',
|
|
123
130
|
|
|
124
131
|
};
|
|
125
132
|
const huHU = (0, _getGridLocalization.getGridLocalization)(huHUGrid, _locale.huHU);
|
package/node/locales/index.js
CHANGED
|
@@ -212,6 +212,19 @@ Object.keys(_koKR).forEach(function (key) {
|
|
|
212
212
|
});
|
|
213
213
|
});
|
|
214
214
|
|
|
215
|
+
var _nbNO = require("./nbNO");
|
|
216
|
+
|
|
217
|
+
Object.keys(_nbNO).forEach(function (key) {
|
|
218
|
+
if (key === "default" || key === "__esModule") return;
|
|
219
|
+
if (key in exports && exports[key] === _nbNO[key]) return;
|
|
220
|
+
Object.defineProperty(exports, key, {
|
|
221
|
+
enumerable: true,
|
|
222
|
+
get: function () {
|
|
223
|
+
return _nbNO[key];
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
});
|
|
227
|
+
|
|
215
228
|
var _nlNL = require("./nlNL");
|
|
216
229
|
|
|
217
230
|
Object.keys(_nlNL).forEach(function (key) {
|
|
@@ -251,6 +264,19 @@ Object.keys(_ptBR).forEach(function (key) {
|
|
|
251
264
|
});
|
|
252
265
|
});
|
|
253
266
|
|
|
267
|
+
var _roRO = require("./roRO");
|
|
268
|
+
|
|
269
|
+
Object.keys(_roRO).forEach(function (key) {
|
|
270
|
+
if (key === "default" || key === "__esModule") return;
|
|
271
|
+
if (key in exports && exports[key] === _roRO[key]) return;
|
|
272
|
+
Object.defineProperty(exports, key, {
|
|
273
|
+
enumerable: true,
|
|
274
|
+
get: function () {
|
|
275
|
+
return _roRO[key];
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
|
|
254
280
|
var _ruRU = require("./ruRU");
|
|
255
281
|
|
|
256
282
|
Object.keys(_ruRU).forEach(function (key) {
|
|
@@ -340,4 +366,17 @@ Object.keys(_zhCN).forEach(function (key) {
|
|
|
340
366
|
return _zhCN[key];
|
|
341
367
|
}
|
|
342
368
|
});
|
|
369
|
+
});
|
|
370
|
+
|
|
371
|
+
var _zhTW = require("./zhTW");
|
|
372
|
+
|
|
373
|
+
Object.keys(_zhTW).forEach(function (key) {
|
|
374
|
+
if (key === "default" || key === "__esModule") return;
|
|
375
|
+
if (key in exports && exports[key] === _zhTW[key]) return;
|
|
376
|
+
Object.defineProperty(exports, key, {
|
|
377
|
+
enumerable: true,
|
|
378
|
+
get: function () {
|
|
379
|
+
return _zhTW[key];
|
|
380
|
+
}
|
|
381
|
+
});
|
|
343
382
|
});
|
package/node/locales/itIT.js
CHANGED
|
@@ -120,6 +120,13 @@ const itITGrid = {
|
|
|
120
120
|
// collapseDetailPanel: 'Collapse',
|
|
121
121
|
// Row reordering text
|
|
122
122
|
// rowReorderingHeaderName: 'Row reordering',
|
|
123
|
+
// Aggregation
|
|
124
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
125
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
126
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
127
|
+
// aggregationFunctionLabelMin: 'min',
|
|
128
|
+
// aggregationFunctionLabelMax: 'max',
|
|
129
|
+
// aggregationFunctionLabelSize: 'size',
|
|
123
130
|
|
|
124
131
|
};
|
|
125
132
|
const itIT = (0, _getGridLocalization.getGridLocalization)(itITGrid, _locale.itIT);
|
package/node/locales/jaJP.js
CHANGED
|
@@ -120,7 +120,14 @@ const jaJPGrid = {
|
|
|
120
120
|
expandDetailPanel: '展開',
|
|
121
121
|
collapseDetailPanel: '折りたたみ',
|
|
122
122
|
// Row reordering text
|
|
123
|
-
rowReorderingHeaderName: '行並び替え'
|
|
123
|
+
rowReorderingHeaderName: '行並び替え' // Aggregation
|
|
124
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
125
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
126
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
127
|
+
// aggregationFunctionLabelMin: 'min',
|
|
128
|
+
// aggregationFunctionLabelMax: 'max',
|
|
129
|
+
// aggregationFunctionLabelSize: 'size',
|
|
130
|
+
|
|
124
131
|
};
|
|
125
132
|
const jaJP = (0, _getGridLocalization.getGridLocalization)(jaJPGrid, _locale.jaJP);
|
|
126
133
|
exports.jaJP = jaJP;
|
package/node/locales/koKR.js
CHANGED
|
@@ -120,6 +120,13 @@ const koKRGrid = {
|
|
|
120
120
|
// collapseDetailPanel: 'Collapse',
|
|
121
121
|
// Row reordering text
|
|
122
122
|
// rowReorderingHeaderName: 'Row reordering',
|
|
123
|
+
// Aggregation
|
|
124
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
125
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
126
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
127
|
+
// aggregationFunctionLabelMin: 'min',
|
|
128
|
+
// aggregationFunctionLabelMax: 'max',
|
|
129
|
+
// aggregationFunctionLabelSize: 'size',
|
|
123
130
|
|
|
124
131
|
};
|
|
125
132
|
const koKR = (0, _getGridLocalization.getGridLocalization)(koKRGrid, _locale.koKR);
|
package/node/locales/nbNO.js
CHANGED
|
@@ -120,7 +120,14 @@ const nbNOGrid = {
|
|
|
120
120
|
expandDetailPanel: 'Utvid',
|
|
121
121
|
collapseDetailPanel: 'Kollaps',
|
|
122
122
|
// Row reordering text
|
|
123
|
-
rowReorderingHeaderName: 'Rad reorganisering'
|
|
123
|
+
rowReorderingHeaderName: 'Rad reorganisering' // Aggregation
|
|
124
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
125
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
126
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
127
|
+
// aggregationFunctionLabelMin: 'min',
|
|
128
|
+
// aggregationFunctionLabelMax: 'max',
|
|
129
|
+
// aggregationFunctionLabelSize: 'size',
|
|
130
|
+
|
|
124
131
|
};
|
|
125
132
|
const nbNO = (0, _getGridLocalization.getGridLocalization)(nbNOGrid, _locale.nbNO);
|
|
126
133
|
exports.nbNO = nbNO;
|