@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
|
@@ -61,9 +61,9 @@ export var useGridSelection = function useGridSelection(apiRef, props) {
|
|
|
61
61
|
var checkboxSelection = props.checkboxSelection,
|
|
62
62
|
disableMultipleSelection = props.disableMultipleSelection,
|
|
63
63
|
disableSelectionOnClick = props.disableSelectionOnClick,
|
|
64
|
-
isRowSelectable = props.isRowSelectable,
|
|
65
64
|
pagination = props.pagination,
|
|
66
|
-
paginationMode = props.paginationMode
|
|
65
|
+
paginationMode = props.paginationMode,
|
|
66
|
+
propIsRowSelectable = props.isRowSelectable;
|
|
67
67
|
var canHaveMultipleSelection = !disableMultipleSelection || checkboxSelection;
|
|
68
68
|
var visibleRows = useGridVisibleRows(apiRef, props);
|
|
69
69
|
var expandMouseRowRangeSelection = React.useCallback(function (id) {
|
|
@@ -119,6 +119,19 @@ export var useGridSelection = function useGridSelection(apiRef, props) {
|
|
|
119
119
|
var isRowSelected = React.useCallback(function (id) {
|
|
120
120
|
return gridSelectionStateSelector(apiRef.current.state).includes(id);
|
|
121
121
|
}, [apiRef]);
|
|
122
|
+
var isRowSelectable = React.useCallback(function (id) {
|
|
123
|
+
var _apiRef$current$getRo;
|
|
124
|
+
|
|
125
|
+
if (propIsRowSelectable && !propIsRowSelectable(apiRef.current.getRowParams(id))) {
|
|
126
|
+
return false;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if (((_apiRef$current$getRo = apiRef.current.getRowNode(id)) == null ? void 0 : _apiRef$current$getRo.position) === 'footer') {
|
|
130
|
+
return false;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return true;
|
|
134
|
+
}, [apiRef, propIsRowSelectable]);
|
|
122
135
|
var getSelectedRows = React.useCallback(function () {
|
|
123
136
|
return selectedGridRowsSelector(apiRef);
|
|
124
137
|
}, [apiRef]);
|
|
@@ -126,7 +139,7 @@ export var useGridSelection = function useGridSelection(apiRef, props) {
|
|
|
126
139
|
var isSelected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
127
140
|
var resetSelection = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
128
141
|
|
|
129
|
-
if (
|
|
142
|
+
if (!apiRef.current.isRowSelectable(id)) {
|
|
130
143
|
return;
|
|
131
144
|
}
|
|
132
145
|
|
|
@@ -152,14 +165,14 @@ export var useGridSelection = function useGridSelection(apiRef, props) {
|
|
|
152
165
|
apiRef.current.setSelectionModel(newSelection);
|
|
153
166
|
}
|
|
154
167
|
}
|
|
155
|
-
}, [apiRef,
|
|
168
|
+
}, [apiRef, logger, canHaveMultipleSelection]);
|
|
156
169
|
var selectRows = React.useCallback(function (ids) {
|
|
157
170
|
var isSelected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
158
171
|
var resetSelection = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
159
172
|
logger.debug("Setting selection for several rows");
|
|
160
|
-
var selectableIds =
|
|
161
|
-
return
|
|
162
|
-
})
|
|
173
|
+
var selectableIds = ids.filter(function (id) {
|
|
174
|
+
return apiRef.current.isRowSelectable(id);
|
|
175
|
+
});
|
|
163
176
|
var newSelection;
|
|
164
177
|
|
|
165
178
|
if (resetSelection) {
|
|
@@ -183,7 +196,7 @@ export var useGridSelection = function useGridSelection(apiRef, props) {
|
|
|
183
196
|
if (isSelectionValid) {
|
|
184
197
|
apiRef.current.setSelectionModel(newSelection);
|
|
185
198
|
}
|
|
186
|
-
}, [apiRef,
|
|
199
|
+
}, [apiRef, logger, canHaveMultipleSelection]);
|
|
187
200
|
var selectRowRange = React.useCallback(function (_ref) {
|
|
188
201
|
var startId = _ref.startId,
|
|
189
202
|
endId = _ref.endId;
|
|
@@ -214,7 +227,8 @@ export var useGridSelection = function useGridSelection(apiRef, props) {
|
|
|
214
227
|
selectRowRange: selectRowRange,
|
|
215
228
|
setSelectionModel: setSelectionModel,
|
|
216
229
|
getSelectedRows: getSelectedRows,
|
|
217
|
-
isRowSelected: isRowSelected
|
|
230
|
+
isRowSelected: isRowSelected,
|
|
231
|
+
isRowSelectable: isRowSelectable
|
|
218
232
|
};
|
|
219
233
|
useGridApiMethod(apiRef, selectionApi, 'GridSelectionApi');
|
|
220
234
|
/**
|
|
@@ -398,14 +412,14 @@ export var useGridSelection = function useGridSelection(apiRef, props) {
|
|
|
398
412
|
React.useEffect(function () {
|
|
399
413
|
if (isStateControlled) {
|
|
400
414
|
return;
|
|
401
|
-
} // isRowSelectable changed
|
|
415
|
+
} // props.isRowSelectable changed
|
|
402
416
|
|
|
403
417
|
|
|
404
418
|
var currentSelection = gridSelectionStateSelector(apiRef.current.state);
|
|
405
419
|
|
|
406
420
|
if (isRowSelectable) {
|
|
407
421
|
var newSelection = currentSelection.filter(function (id) {
|
|
408
|
-
return isRowSelectable(
|
|
422
|
+
return isRowSelectable(id);
|
|
409
423
|
});
|
|
410
424
|
|
|
411
425
|
if (newSelection.length < currentSelection.length) {
|
|
@@ -432,7 +446,7 @@ export var useGridSelection = function useGridSelection(apiRef, props) {
|
|
|
432
446
|
var isSelectable = true;
|
|
433
447
|
|
|
434
448
|
if (isRowSelectable) {
|
|
435
|
-
isSelectable = isRowSelectable(
|
|
449
|
+
isSelectable = isRowSelectable(id);
|
|
436
450
|
}
|
|
437
451
|
|
|
438
452
|
return isSelectable && currentPageRowsLookup[id]; // Check if the row is in the current page
|
|
@@ -56,25 +56,24 @@ var parseSortItem = function parseSortItem(sortItem, apiRef) {
|
|
|
56
56
|
comparator: comparator
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
|
+
|
|
59
60
|
/**
|
|
60
61
|
* Compare two rows according to a list of valid sort items.
|
|
61
62
|
* The `row1Params` and `row2Params` must have the same length as `parsedSortItems`,
|
|
62
63
|
* and each of their index must contain the `GridSortCellParams` of the sort item with the same index.
|
|
63
64
|
* @param {GridParsedSortItem[]} parsedSortItems All the sort items with which we want to compare the rows.
|
|
64
|
-
* @param {
|
|
65
|
-
* @param {
|
|
65
|
+
* @param {GridRowAggregatedSortingParams} row1 The node and params of the 1st row for each sort item.
|
|
66
|
+
* @param {GridRowAggregatedSortingParams} row2 The node and params of the 2nd row for each sort item.
|
|
66
67
|
*/
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
var compareRows = function compareRows(parsedSortItems, row1Params, row2Params) {
|
|
68
|
+
var compareRows = function compareRows(parsedSortItems, row1, row2) {
|
|
70
69
|
return parsedSortItems.reduce(function (res, item, index) {
|
|
71
70
|
if (res !== 0) {
|
|
72
71
|
// return the results of the first comparator which distinguish the two rows
|
|
73
72
|
return res;
|
|
74
73
|
}
|
|
75
74
|
|
|
76
|
-
var sortCellParams1 =
|
|
77
|
-
var sortCellParams2 =
|
|
75
|
+
var sortCellParams1 = row1.params[index];
|
|
76
|
+
var sortCellParams2 = row2.params[index];
|
|
78
77
|
res = item.comparator(sortCellParams1.value, sortCellParams2.value, sortCellParams1, sortCellParams2);
|
|
79
78
|
return res;
|
|
80
79
|
}, 0);
|
|
@@ -99,17 +98,17 @@ export var buildAggregatedSortingApplier = function buildAggregatedSortingApplie
|
|
|
99
98
|
}
|
|
100
99
|
|
|
101
100
|
return function (rowList) {
|
|
102
|
-
return rowList.map(function (
|
|
101
|
+
return rowList.map(function (node) {
|
|
103
102
|
return {
|
|
104
|
-
|
|
103
|
+
node: node,
|
|
105
104
|
params: comparatorList.map(function (el) {
|
|
106
|
-
return el.getSortCellParams(
|
|
105
|
+
return el.getSortCellParams(node.id);
|
|
107
106
|
})
|
|
108
107
|
};
|
|
109
108
|
}).sort(function (a, b) {
|
|
110
|
-
return compareRows(comparatorList, a
|
|
109
|
+
return compareRows(comparatorList, a, b);
|
|
111
110
|
}).map(function (row) {
|
|
112
|
-
return row.
|
|
111
|
+
return row.node.id;
|
|
113
112
|
});
|
|
114
113
|
};
|
|
115
114
|
};
|
|
@@ -30,6 +30,8 @@ export var sortingStateInitializer = function sortingStateInitializer(state, pro
|
|
|
30
30
|
*/
|
|
31
31
|
|
|
32
32
|
export var useGridSorting = function useGridSorting(apiRef, props) {
|
|
33
|
+
var _props$initialState3, _props$initialState3$;
|
|
34
|
+
|
|
33
35
|
var logger = useGridLogger(apiRef, 'useGridSorting');
|
|
34
36
|
apiRef.current.unstable_registerControlState({
|
|
35
37
|
stateId: 'sortModel',
|
|
@@ -168,10 +170,17 @@ export var useGridSorting = function useGridSorting(apiRef, props) {
|
|
|
168
170
|
* PRE-PROCESSING
|
|
169
171
|
*/
|
|
170
172
|
|
|
171
|
-
var stateExportPreProcessing = React.useCallback(function (prevState) {
|
|
173
|
+
var stateExportPreProcessing = React.useCallback(function (prevState, context) {
|
|
174
|
+
var _props$initialState2, _props$initialState2$;
|
|
175
|
+
|
|
172
176
|
var sortModelToExport = gridSortModelSelector(apiRef);
|
|
177
|
+
var shouldExportSortModel = // Always export if the `exportOnlyDirtyModels` property is activated
|
|
178
|
+
!context.exportOnlyDirtyModels || // Always export if the model is controlled
|
|
179
|
+
props.sortModel != null || // Always export if the model has been initialized
|
|
180
|
+
((_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
|
|
181
|
+
sortModelToExport.length > 0;
|
|
173
182
|
|
|
174
|
-
if (
|
|
183
|
+
if (!shouldExportSortModel) {
|
|
175
184
|
return prevState;
|
|
176
185
|
}
|
|
177
186
|
|
|
@@ -180,7 +189,7 @@ export var useGridSorting = function useGridSorting(apiRef, props) {
|
|
|
180
189
|
sortModel: sortModelToExport
|
|
181
190
|
}
|
|
182
191
|
});
|
|
183
|
-
}, [apiRef]);
|
|
192
|
+
}, [apiRef, props.sortModel, (_props$initialState3 = props.initialState) == null ? void 0 : (_props$initialState3$ = _props$initialState3.sorting) == null ? void 0 : _props$initialState3$.sortModel]);
|
|
184
193
|
var stateRestorePreProcessing = React.useCallback(function (params, context) {
|
|
185
194
|
var _context$stateToResto;
|
|
186
195
|
|
|
@@ -196,12 +205,31 @@ export var useGridSorting = function useGridSorting(apiRef, props) {
|
|
|
196
205
|
});
|
|
197
206
|
}, [apiRef, props.disableMultipleColumnsSorting]);
|
|
198
207
|
var flatSortingMethod = React.useCallback(function (params) {
|
|
208
|
+
var rowTree = gridRowTreeSelector(apiRef);
|
|
209
|
+
|
|
199
210
|
if (!params.sortRowList) {
|
|
200
|
-
|
|
211
|
+
var bodyRowIds = [];
|
|
212
|
+
var _footerRowIds = [];
|
|
213
|
+
gridRowIdsSelector(apiRef).forEach(function (rowId) {
|
|
214
|
+
if (rowTree[rowId].position === 'footer') {
|
|
215
|
+
_footerRowIds.push(rowId);
|
|
216
|
+
} else {
|
|
217
|
+
bodyRowIds.push(rowId);
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
return [].concat(bodyRowIds, _footerRowIds);
|
|
201
221
|
}
|
|
202
222
|
|
|
203
|
-
var
|
|
204
|
-
|
|
223
|
+
var bodyRows = [];
|
|
224
|
+
var footerRowIds = [];
|
|
225
|
+
Object.values(rowTree).forEach(function (rowNode) {
|
|
226
|
+
if (rowNode.position === 'footer') {
|
|
227
|
+
footerRowIds.push(rowNode.id);
|
|
228
|
+
} else {
|
|
229
|
+
bodyRows.push(rowNode);
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
return [].concat(_toConsumableArray(params.sortRowList(bodyRows)), footerRowIds);
|
|
205
233
|
}, [apiRef]);
|
|
206
234
|
useGridRegisterPipeProcessor(apiRef, 'exportState', stateExportPreProcessing);
|
|
207
235
|
useGridRegisterPipeProcessor(apiRef, 'restoreState', stateRestorePreProcessing);
|
|
@@ -2,7 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import { useGridApiMethod } from '../../utils';
|
|
3
3
|
export var useGridStatePersistence = function useGridStatePersistence(apiRef) {
|
|
4
4
|
var exportState = React.useCallback(function () {
|
|
5
|
-
var
|
|
5
|
+
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
6
|
+
var stateToExport = apiRef.current.unstable_applyPipeProcessors('exportState', {}, params);
|
|
6
7
|
return stateToExport;
|
|
7
8
|
}, [apiRef]);
|
|
8
9
|
var restoreState = React.useCallback(function (stateToRestore) {
|
|
@@ -57,6 +57,8 @@ export var getRenderableIndexes = function getRenderableIndexes(_ref) {
|
|
|
57
57
|
return [clamp(firstIndex - buffer, minFirstIndex, maxLastIndex), clamp(lastIndex + buffer, minFirstIndex, maxLastIndex)];
|
|
58
58
|
};
|
|
59
59
|
export var useGridVirtualScroller = function useGridVirtualScroller(props) {
|
|
60
|
+
var _currentPage$range3, _currentPage$range4;
|
|
61
|
+
|
|
60
62
|
var apiRef = useGridApiContext();
|
|
61
63
|
var rootProps = useGridRootProps();
|
|
62
64
|
var visibleColumns = useGridSelector(apiRef, gridVisibleColumnDefinitionsSelector);
|
|
@@ -99,9 +101,18 @@ export var useGridVirtualScroller = function useGridVirtualScroller(props) {
|
|
|
99
101
|
|
|
100
102
|
var prevTotalWidth = React.useRef(columnsTotalWidth);
|
|
101
103
|
var getNearestIndexToRender = React.useCallback(function (offset) {
|
|
102
|
-
var
|
|
104
|
+
var _currentPage$range, _currentPage$range2;
|
|
105
|
+
|
|
106
|
+
var lastMeasuredIndexRelativeToAllRows = apiRef.current.unstable_getLastMeasuredRowIndex();
|
|
107
|
+
var lastMeasuredIndexRelativeToCurrentPage = lastMeasuredIndexRelativeToAllRows - (((_currentPage$range = currentPage.range) == null ? void 0 : _currentPage$range.firstRowIndex) || 0);
|
|
108
|
+
var lastMeasuredIndex = Math.max(0, lastMeasuredIndexRelativeToCurrentPage);
|
|
103
109
|
var allRowsMeasured = lastMeasuredIndex === Infinity;
|
|
104
110
|
|
|
111
|
+
if ((_currentPage$range2 = currentPage.range) != null && _currentPage$range2.lastRowIndex && !allRowsMeasured) {
|
|
112
|
+
// Check if all rows in this page are already measured
|
|
113
|
+
allRowsMeasured = lastMeasuredIndex >= currentPage.range.lastRowIndex;
|
|
114
|
+
}
|
|
115
|
+
|
|
105
116
|
if (allRowsMeasured || rowsMeta.positions[lastMeasuredIndex] >= offset) {
|
|
106
117
|
// If all rows were measured (when no row has "auto" as height) or all rows before the offset
|
|
107
118
|
// were measured, then use a binary search because it's faster.
|
|
@@ -113,7 +124,7 @@ export var useGridVirtualScroller = function useGridVirtualScroller(props) {
|
|
|
113
124
|
|
|
114
125
|
|
|
115
126
|
return exponentialSearch(offset, rowsMeta.positions, lastMeasuredIndex);
|
|
116
|
-
}, [apiRef, rowsMeta.positions]);
|
|
127
|
+
}, [apiRef, (_currentPage$range3 = currentPage.range) == null ? void 0 : _currentPage$range3.firstRowIndex, (_currentPage$range4 = currentPage.range) == null ? void 0 : _currentPage$range4.lastRowIndex, rowsMeta.positions]);
|
|
117
128
|
var computeRenderContext = React.useCallback(function () {
|
|
118
129
|
if (disableVirtualization) {
|
|
119
130
|
return {
|
|
@@ -330,7 +341,8 @@ export var useGridVirtualScroller = function useGridVirtualScroller(props) {
|
|
|
330
341
|
apiRef.current.unstable_calculateColSpan({
|
|
331
342
|
rowId: row.id,
|
|
332
343
|
minFirstColumn: minFirstColumn,
|
|
333
|
-
maxLastColumn: maxLastColumn
|
|
344
|
+
maxLastColumn: maxLastColumn,
|
|
345
|
+
columns: visibleColumns
|
|
334
346
|
});
|
|
335
347
|
}
|
|
336
348
|
|
|
@@ -355,22 +367,20 @@ export var useGridVirtualScroller = function useGridVirtualScroller(props) {
|
|
|
355
367
|
var renderedColumns = visibleColumns.slice(firstColumnToRender, lastColumnToRender);
|
|
356
368
|
var rows = [];
|
|
357
369
|
|
|
358
|
-
for (var
|
|
370
|
+
for (var i = 0; i < renderedRows.length; i += 1) {
|
|
359
371
|
var _rootProps$components;
|
|
360
372
|
|
|
361
|
-
var _renderedRows$
|
|
362
|
-
_id = _renderedRows$
|
|
363
|
-
_model = _renderedRows$
|
|
364
|
-
var lastVisibleRowIndex = firstRowToRender +
|
|
373
|
+
var _renderedRows$i = renderedRows[i],
|
|
374
|
+
_id = _renderedRows$i.id,
|
|
375
|
+
_model = _renderedRows$i.model;
|
|
376
|
+
var lastVisibleRowIndex = firstRowToRender + i === currentPage.rows.length - 1;
|
|
365
377
|
var baseRowHeight = !apiRef.current.unstable_rowHasAutoHeight(_id) || ignoreAutoHeight ? apiRef.current.unstable_getRowHeight(_id) : 'auto';
|
|
366
378
|
var isSelected = void 0;
|
|
367
379
|
|
|
368
380
|
if (selectedRowsLookup[_id] == null) {
|
|
369
381
|
isSelected = false;
|
|
370
|
-
} else if (typeof rootProps.isRowSelectable === 'function') {
|
|
371
|
-
isSelected = rootProps.isRowSelectable(apiRef.current.getRowParams(_id));
|
|
372
382
|
} else {
|
|
373
|
-
isSelected =
|
|
383
|
+
isSelected = apiRef.current.isRowSelectable(_id);
|
|
374
384
|
}
|
|
375
385
|
|
|
376
386
|
rows.push( /*#__PURE__*/_jsx(rootProps.components.Row, _extends({
|
|
@@ -388,7 +398,7 @@ export var useGridVirtualScroller = function useGridVirtualScroller(props) {
|
|
|
388
398
|
firstColumnToRender: firstColumnToRender,
|
|
389
399
|
lastColumnToRender: lastColumnToRender,
|
|
390
400
|
selected: isSelected,
|
|
391
|
-
index: currentPage.range.firstRowIndex + firstRowToRender +
|
|
401
|
+
index: currentPage.range.firstRowIndex + firstRowToRender + i,
|
|
392
402
|
containerWidth: availableSpace,
|
|
393
403
|
isLastVisible: lastVisibleRowIndex
|
|
394
404
|
}, typeof getRowProps === 'function' ? getRowProps(_id, _model) : {}, (_rootProps$components = rootProps.componentsProps) == null ? void 0 : _rootProps$components.row), _id));
|
|
@@ -4,7 +4,7 @@ export function useGridApiContext() {
|
|
|
4
4
|
var 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;
|
|
@@ -26,7 +26,7 @@ export var useGridNativeEventListener = function useGridNativeEventListener(apiR
|
|
|
26
26
|
targetElement = ref && ref.current ? ref.current : null;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
if (targetElement &&
|
|
29
|
+
if (targetElement && eventName && !added) {
|
|
30
30
|
logger.debug("Binding native ".concat(eventName, " event"));
|
|
31
31
|
targetElement.addEventListener(eventName, wrapHandler, options);
|
|
32
32
|
var boundElem = targetElement;
|
|
@@ -4,7 +4,7 @@ export var useGridRootProps = function useGridRootProps() {
|
|
|
4
4
|
var 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/legacy/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/legacy/locales/arSD.js
CHANGED
|
@@ -123,6 +123,13 @@ var arSDGrid = {
|
|
|
123
123
|
expandDetailPanel: 'توسيع',
|
|
124
124
|
collapseDetailPanel: 'طوي' // Row reordering text
|
|
125
125
|
// rowReorderingHeaderName: 'Row reordering',
|
|
126
|
+
// Aggregation
|
|
127
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
128
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
129
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
130
|
+
// aggregationFunctionLabelMin: 'min',
|
|
131
|
+
// aggregationFunctionLabelMax: 'max',
|
|
132
|
+
// aggregationFunctionLabelSize: 'size',
|
|
126
133
|
|
|
127
134
|
};
|
|
128
135
|
export var arSD = getGridLocalization(arSDGrid, arSDCore);
|
package/legacy/locales/bgBG.js
CHANGED
|
@@ -123,6 +123,13 @@ var bgBGGrid = {
|
|
|
123
123
|
expandDetailPanel: 'Разгъване',
|
|
124
124
|
collapseDetailPanel: 'Свиване' // Row reordering text
|
|
125
125
|
// rowReorderingHeaderName: 'Row reordering',
|
|
126
|
+
// Aggregation
|
|
127
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
128
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
129
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
130
|
+
// aggregationFunctionLabelMin: 'min',
|
|
131
|
+
// aggregationFunctionLabelMax: 'max',
|
|
132
|
+
// aggregationFunctionLabelSize: 'size',
|
|
126
133
|
|
|
127
134
|
};
|
|
128
135
|
export var bgBG = getGridLocalization(bgBGGrid, bgBGCore);
|
package/legacy/locales/csCZ.js
CHANGED
|
@@ -150,6 +150,13 @@ var csCZGrid = {
|
|
|
150
150
|
// collapseDetailPanel: 'Collapse',
|
|
151
151
|
// Row reordering text
|
|
152
152
|
// rowReorderingHeaderName: 'Row reordering',
|
|
153
|
+
// Aggregation
|
|
154
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
155
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
156
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
157
|
+
// aggregationFunctionLabelMin: 'min',
|
|
158
|
+
// aggregationFunctionLabelMax: 'max',
|
|
159
|
+
// aggregationFunctionLabelSize: 'size',
|
|
153
160
|
|
|
154
161
|
};
|
|
155
162
|
export var csCZ = getGridLocalization(csCZGrid, csCZCore);
|
package/legacy/locales/daDK.js
CHANGED
|
@@ -123,6 +123,13 @@ var daDKGrid = {
|
|
|
123
123
|
expandDetailPanel: 'Udvid',
|
|
124
124
|
collapseDetailPanel: 'Kollaps' // Row reordering text
|
|
125
125
|
// rowReorderingHeaderName: 'Row reordering',
|
|
126
|
+
// Aggregation
|
|
127
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
128
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
129
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
130
|
+
// aggregationFunctionLabelMin: 'min',
|
|
131
|
+
// aggregationFunctionLabelMax: 'max',
|
|
132
|
+
// aggregationFunctionLabelSize: 'size',
|
|
126
133
|
|
|
127
134
|
};
|
|
128
135
|
export var daDK = getGridLocalization(daDKGrid, daDKCore);
|
package/legacy/locales/deDE.js
CHANGED
|
@@ -23,9 +23,9 @@ var deDEGrid = {
|
|
|
23
23
|
return count !== 1 ? "".concat(count, " aktive Filter") : "".concat(count, " aktiver Filter");
|
|
24
24
|
},
|
|
25
25
|
// Quick filter toolbar field
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
toolbarQuickFilterPlaceholder: 'Suchen...',
|
|
27
|
+
toolbarQuickFilterLabel: 'Suchen',
|
|
28
|
+
toolbarQuickFilterDeleteIconLabel: 'Löschen',
|
|
29
29
|
// Export selector toolbar button text
|
|
30
30
|
toolbarExport: 'Exportieren',
|
|
31
31
|
toolbarExportLabel: 'Exportieren',
|
|
@@ -119,10 +119,17 @@ var deDEGrid = {
|
|
|
119
119
|
return "Gruppierung nach ".concat(name, " aufheben");
|
|
120
120
|
},
|
|
121
121
|
// Master/detail
|
|
122
|
-
|
|
122
|
+
detailPanelToggle: 'Detailansicht Kippschalter',
|
|
123
123
|
expandDetailPanel: 'Aufklappen',
|
|
124
124
|
collapseDetailPanel: 'Zuklappen',
|
|
125
125
|
// Row reordering text
|
|
126
|
-
rowReorderingHeaderName: 'Reihen neu ordnen'
|
|
126
|
+
rowReorderingHeaderName: 'Reihen neu ordnen' // Aggregation
|
|
127
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
128
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
129
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
130
|
+
// aggregationFunctionLabelMin: 'min',
|
|
131
|
+
// aggregationFunctionLabelMax: 'max',
|
|
132
|
+
// aggregationFunctionLabelSize: 'size',
|
|
133
|
+
|
|
127
134
|
};
|
|
128
135
|
export var deDE = getGridLocalization(deDEGrid, deDECore);
|
package/legacy/locales/elGR.js
CHANGED
|
@@ -118,6 +118,13 @@ var 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
|
export var elGR = getGridLocalization(elGRGrid);
|
package/legacy/locales/esES.js
CHANGED
|
@@ -119,6 +119,13 @@ var esESGrid = {
|
|
|
119
119
|
// collapseDetailPanel: 'Collapse',
|
|
120
120
|
// Row reordering text
|
|
121
121
|
// rowReorderingHeaderName: 'Row reordering',
|
|
122
|
+
// Aggregation
|
|
123
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
124
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
125
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
126
|
+
// aggregationFunctionLabelMin: 'min',
|
|
127
|
+
// aggregationFunctionLabelMax: 'max',
|
|
128
|
+
// aggregationFunctionLabelSize: 'size',
|
|
122
129
|
|
|
123
130
|
};
|
|
124
131
|
export var esES = getGridLocalization(esESGrid, esESCore);
|
package/legacy/locales/faIR.js
CHANGED
|
@@ -123,6 +123,13 @@ var faIRGrid = {
|
|
|
123
123
|
expandDetailPanel: 'بازکردن پنل جزئیات',
|
|
124
124
|
collapseDetailPanel: 'بستن پنل جزئیات' // Row reordering text
|
|
125
125
|
// rowReorderingHeaderName: 'Row reordering',
|
|
126
|
+
// Aggregation
|
|
127
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
128
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
129
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
130
|
+
// aggregationFunctionLabelMin: 'min',
|
|
131
|
+
// aggregationFunctionLabelMax: 'max',
|
|
132
|
+
// aggregationFunctionLabelSize: 'size',
|
|
126
133
|
|
|
127
134
|
};
|
|
128
135
|
export var faIR = getGridLocalization(faIRGrid, faIRCore);
|
package/legacy/locales/fiFI.js
CHANGED
|
@@ -119,6 +119,13 @@ var fiFIGrid = {
|
|
|
119
119
|
// collapseDetailPanel: 'Collapse',
|
|
120
120
|
// Row reordering text
|
|
121
121
|
// rowReorderingHeaderName: 'Row reordering',
|
|
122
|
+
// Aggregation
|
|
123
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
124
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
125
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
126
|
+
// aggregationFunctionLabelMin: 'min',
|
|
127
|
+
// aggregationFunctionLabelMax: 'max',
|
|
128
|
+
// aggregationFunctionLabelSize: 'size',
|
|
122
129
|
|
|
123
130
|
};
|
|
124
131
|
export var fiFI = getGridLocalization(fiFIGrid, fiFICore);
|
package/legacy/locales/frFR.js
CHANGED
|
@@ -31,7 +31,7 @@ var frFRGrid = {
|
|
|
31
31
|
toolbarExportLabel: 'Exporter',
|
|
32
32
|
toolbarExportCSV: 'Télécharger en CSV',
|
|
33
33
|
toolbarExportPrint: 'Imprimer',
|
|
34
|
-
|
|
34
|
+
toolbarExportExcel: 'Télécharger pour Excel',
|
|
35
35
|
// Columns panel text
|
|
36
36
|
columnsPanelTextFieldLabel: 'Chercher colonne',
|
|
37
37
|
columnsPanelTextFieldPlaceholder: 'Titre de la colonne',
|
|
@@ -93,10 +93,10 @@ var frFRGrid = {
|
|
|
93
93
|
},
|
|
94
94
|
// Checkbox selection text
|
|
95
95
|
checkboxSelectionHeaderName: 'Sélection',
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
checkboxSelectionSelectAllRows: 'Sélectionner toutes les lignes',
|
|
97
|
+
checkboxSelectionUnselectAllRows: 'Désélectionner toutes les lignes',
|
|
98
|
+
checkboxSelectionSelectRow: 'Sélectionner la ligne',
|
|
99
|
+
checkboxSelectionUnselectRow: 'Désélectionner la ligne',
|
|
100
100
|
// Boolean cell text
|
|
101
101
|
booleanCellTrueLabel: 'vrai',
|
|
102
102
|
booleanCellFalseLabel: 'faux',
|
|
@@ -117,12 +117,19 @@ var frFRGrid = {
|
|
|
117
117
|
},
|
|
118
118
|
unGroupColumn: function unGroupColumn(name) {
|
|
119
119
|
return "Arr\xEAter de grouper par ".concat(name);
|
|
120
|
-
}
|
|
121
|
-
//
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
},
|
|
121
|
+
// Master/detail
|
|
122
|
+
detailPanelToggle: 'Afficher/masquer les détails',
|
|
123
|
+
expandDetailPanel: 'Afficher',
|
|
124
|
+
collapseDetailPanel: 'Masquer',
|
|
124
125
|
// Row reordering text
|
|
125
|
-
|
|
126
|
+
rowReorderingHeaderName: 'Positionnement des lignes' // Aggregation
|
|
127
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
128
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
129
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
130
|
+
// aggregationFunctionLabelMin: 'min',
|
|
131
|
+
// aggregationFunctionLabelMax: 'max',
|
|
132
|
+
// aggregationFunctionLabelSize: 'size',
|
|
126
133
|
|
|
127
134
|
};
|
|
128
135
|
export var frFR = getGridLocalization(frFRGrid, frFRCore);
|
package/legacy/locales/heIL.js
CHANGED
|
@@ -123,6 +123,13 @@ var heILGrid = {
|
|
|
123
123
|
expandDetailPanel: 'הרחב',
|
|
124
124
|
collapseDetailPanel: 'כווץ',
|
|
125
125
|
// Row reordering text
|
|
126
|
-
rowReorderingHeaderName: 'סידור שורות'
|
|
126
|
+
rowReorderingHeaderName: 'סידור שורות' // Aggregation
|
|
127
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
128
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
129
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
130
|
+
// aggregationFunctionLabelMin: 'min',
|
|
131
|
+
// aggregationFunctionLabelMax: 'max',
|
|
132
|
+
// aggregationFunctionLabelSize: 'size',
|
|
133
|
+
|
|
127
134
|
};
|
|
128
135
|
export var heIL = getGridLocalization(heILGrid, heILCore);
|
package/legacy/locales/huHU.js
CHANGED
|
@@ -123,6 +123,13 @@ var huHUGrid = {
|
|
|
123
123
|
expandDetailPanel: 'Kibontás',
|
|
124
124
|
collapseDetailPanel: 'Összecsukás' // Row reordering text
|
|
125
125
|
// rowReorderingHeaderName: 'Row reordering',
|
|
126
|
+
// Aggregation
|
|
127
|
+
// aggregationMenuItemHeader: 'Aggregation',
|
|
128
|
+
// aggregationFunctionLabelSum: 'sum',
|
|
129
|
+
// aggregationFunctionLabelAvg: 'avg',
|
|
130
|
+
// aggregationFunctionLabelMin: 'min',
|
|
131
|
+
// aggregationFunctionLabelMax: 'max',
|
|
132
|
+
// aggregationFunctionLabelSize: 'size',
|
|
126
133
|
|
|
127
134
|
};
|
|
128
135
|
export var huHU = getGridLocalization(huHUGrid, huHUCore);
|
package/legacy/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';
|