@mui/x-data-grid 5.13.1 → 5.15.1
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 -6
- package/DataGrid/DataGrid.js +6 -0
- package/DataGrid/useDataGridComponent.js +1 -1
- package/DataGrid/useDataGridProps.js +1 -0
- 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/gridStringColDef.d.ts +3 -0
- package/colDef/gridStringColDef.js +6 -0
- package/components/GridRow.js +5 -1
- package/components/base/GridOverlays.js +4 -1
- 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/GridEditInputCell.d.ts +2 -5
- package/components/cell/GridEditInputCell.js +13 -14
- package/components/cell/GridEditSingleSelectCell.d.ts +4 -0
- package/components/cell/GridEditSingleSelectCell.js +11 -4
- package/components/cell/index.d.ts +1 -0
- package/components/cell/index.js +1 -0
- package/components/columnSelection/GridCellCheckboxRenderer.js +12 -1
- package/components/containers/GridRoot.js +4 -2
- package/components/containers/GridRootStyles.js +10 -0
- package/components/toolbar/GridToolbarDensitySelector.js +13 -4
- package/components/toolbar/GridToolbarExport.js +20 -10
- package/components/toolbar/GridToolbarExportContainer.js +13 -2
- package/constants/envConstants.d.ts +1 -1
- package/constants/envConstants.js +2 -11
- package/constants/gridClasses.d.ts +41 -1
- package/constants/gridClasses.js +1 -1
- package/constants/localeTextConstants.js +9 -2
- 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 +6 -1
- package/hooks/features/editRows/useGridCellEditing.new.d.ts +1 -1
- package/hooks/features/editRows/useGridCellEditing.new.js +11 -9
- package/hooks/features/editRows/useGridCellEditing.old.js +2 -2
- package/hooks/features/editRows/useGridEditing.new.d.ts +1 -1
- package/hooks/features/editRows/useGridEditing.new.js +4 -0
- package/hooks/features/editRows/useGridEditing.old.js +1 -1
- package/hooks/features/editRows/useGridRowEditing.new.d.ts +1 -1
- package/hooks/features/editRows/useGridRowEditing.new.js +7 -8
- package/hooks/features/export/utils.d.ts +1 -1
- package/hooks/features/export/utils.js +16 -2
- package/hooks/features/filter/gridFilterUtils.js +6 -0
- package/hooks/features/filter/useGridFilter.d.ts +1 -1
- package/hooks/features/filter/useGridFilter.js +11 -4
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +1 -1
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +42 -34
- package/hooks/features/pagination/useGridPage.js +4 -3
- package/hooks/features/pagination/useGridPageSize.js +7 -4
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.d.ts +1 -1
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.js +12 -4
- package/hooks/features/rows/gridRowsSelector.d.ts +14 -0
- package/hooks/features/rows/gridRowsSelector.js +20 -1
- package/hooks/features/rows/gridRowsState.d.ts +8 -1
- package/hooks/features/rows/gridRowsUtils.d.ts +5 -1
- package/hooks/features/rows/gridRowsUtils.js +21 -3
- package/hooks/features/rows/index.d.ts +1 -1
- package/hooks/features/rows/index.js +1 -1
- package/hooks/features/rows/useGridRowsMeta.js +19 -4
- package/hooks/features/rows/useGridRowsPreProcessors.js +2 -1
- package/hooks/features/scroll/useGridScroll.js +7 -2
- package/hooks/features/selection/useGridSelection.js +28 -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 +42 -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.d.ts +3 -1
- package/hooks/features/virtualization/useGridVirtualScroller.js +32 -18
- package/hooks/utils/useGridApiEventHandler.d.ts +2 -2
- package/hooks/utils/useGridNativeEventListener.d.ts +1 -1
- package/hooks/utils/useGridNativeEventListener.js +1 -1
- package/index.js +1 -1
- package/internals/index.d.ts +6 -3
- package/internals/index.js +5 -2
- package/legacy/DataGrid/DataGrid.js +6 -0
- package/legacy/DataGrid/useDataGridComponent.js +1 -1
- package/legacy/DataGrid/useDataGridProps.js +1 -0
- package/legacy/colDef/gridActionsColDef.js +2 -0
- package/legacy/colDef/gridBooleanColDef.js +3 -1
- package/legacy/colDef/gridCheckboxSelectionColDef.js +2 -0
- package/legacy/colDef/gridStringColDef.js +6 -0
- package/legacy/components/GridRow.js +5 -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/GridEditInputCell.js +13 -14
- package/legacy/components/cell/GridEditSingleSelectCell.js +11 -3
- package/legacy/components/cell/index.js +1 -0
- package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +11 -1
- package/legacy/components/containers/GridRoot.js +4 -2
- package/legacy/components/containers/GridRootStyles.js +3 -3
- package/legacy/components/toolbar/GridToolbarDensitySelector.js +14 -5
- package/legacy/components/toolbar/GridToolbarExport.js +20 -10
- package/legacy/components/toolbar/GridToolbarExportContainer.js +15 -2
- package/legacy/constants/envConstants.js +2 -11
- package/legacy/constants/gridClasses.js +1 -1
- package/legacy/constants/localeTextConstants.js +9 -2
- 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 +6 -1
- package/legacy/hooks/features/editRows/useGridCellEditing.new.js +11 -9
- package/legacy/hooks/features/editRows/useGridCellEditing.old.js +2 -2
- package/legacy/hooks/features/editRows/useGridEditing.new.js +4 -0
- package/legacy/hooks/features/editRows/useGridEditing.old.js +1 -1
- package/legacy/hooks/features/editRows/useGridRowEditing.new.js +7 -8
- package/legacy/hooks/features/export/utils.js +21 -2
- package/legacy/hooks/features/filter/gridFilterUtils.js +6 -0
- package/legacy/hooks/features/filter/useGridFilter.js +11 -4
- package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +47 -34
- package/legacy/hooks/features/pagination/useGridPage.js +4 -3
- package/legacy/hooks/features/pagination/useGridPageSize.js +7 -4
- package/legacy/hooks/features/preferencesPanel/useGridPreferencesPanel.js +12 -4
- package/legacy/hooks/features/rows/gridRowsSelector.js +23 -0
- package/legacy/hooks/features/rows/gridRowsUtils.js +21 -3
- package/legacy/hooks/features/rows/index.js +1 -1
- package/legacy/hooks/features/rows/useGridRowsMeta.js +19 -4
- package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +2 -1
- package/legacy/hooks/features/scroll/useGridScroll.js +7 -2
- package/legacy/hooks/features/selection/useGridSelection.js +30 -12
- package/legacy/hooks/features/sorting/gridSortingUtils.js +11 -12
- package/legacy/hooks/features/sorting/useGridSorting.js +42 -6
- package/legacy/hooks/features/statePersistence/useGridStatePersistence.js +2 -1
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +33 -18
- package/legacy/hooks/utils/useGridNativeEventListener.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/internals/index.js +5 -2
- package/legacy/locales/arSD.js +8 -1
- package/legacy/locales/bgBG.js +8 -1
- package/legacy/locales/csCZ.js +8 -1
- package/legacy/locales/daDK.js +8 -1
- package/legacy/locales/deDE.js +9 -2
- package/legacy/locales/elGR.js +8 -1
- package/legacy/locales/esES.js +8 -1
- package/legacy/locales/faIR.js +8 -1
- package/legacy/locales/fiFI.js +8 -1
- package/legacy/locales/frFR.js +9 -2
- package/legacy/locales/heIL.js +9 -2
- package/legacy/locales/huHU.js +8 -1
- package/legacy/locales/index.js +2 -1
- package/legacy/locales/itIT.js +21 -14
- package/legacy/locales/jaJP.js +11 -4
- package/legacy/locales/koKR.js +35 -24
- package/legacy/locales/nbNO.js +9 -2
- package/legacy/locales/nlNL.js +9 -2
- package/legacy/locales/plPL.js +8 -1
- package/legacy/locales/ptBR.js +9 -2
- package/legacy/locales/roRO.js +9 -2
- package/legacy/locales/ruRU.js +8 -1
- package/legacy/locales/skSK.js +9 -2
- package/legacy/locales/svSE.js +9 -2
- package/legacy/locales/trTR.js +8 -1
- package/legacy/locales/ukUA.js +8 -1
- package/legacy/locales/viVN.js +8 -1
- package/legacy/locales/zhCN.js +38 -27
- package/legacy/locales/zhTW.js +135 -0
- package/legacy/models/events/gridEvents.js +1 -0
- package/legacy/utils/keyboardUtils.js +8 -5
- package/locales/arSD.js +8 -1
- package/locales/bgBG.js +8 -1
- package/locales/csCZ.js +8 -1
- package/locales/daDK.js +8 -1
- package/locales/deDE.js +9 -2
- package/locales/elGR.js +8 -1
- package/locales/esES.js +8 -1
- package/locales/faIR.js +8 -1
- package/locales/fiFI.js +8 -1
- package/locales/frFR.js +9 -2
- package/locales/heIL.js +9 -2
- package/locales/huHU.js +8 -1
- package/locales/index.d.ts +1 -0
- package/locales/index.js +2 -1
- package/locales/itIT.js +21 -14
- package/locales/jaJP.js +11 -4
- package/locales/koKR.js +31 -24
- package/locales/nbNO.js +9 -2
- package/locales/nlNL.js +9 -2
- package/locales/plPL.js +8 -1
- package/locales/ptBR.js +9 -2
- package/locales/roRO.js +9 -2
- package/locales/ruRU.js +8 -1
- package/locales/skSK.js +9 -2
- package/locales/svSE.js +9 -2
- package/locales/trTR.js +8 -1
- package/locales/ukUA.js +8 -1
- package/locales/viVN.js +8 -1
- package/locales/zhCN.js +34 -27
- 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/gridRows.d.ts +15 -1
- package/models/params/gridCellParams.d.ts +4 -4
- package/models/props/DataGridProps.d.ts +5 -0
- package/modern/DataGrid/DataGrid.js +6 -0
- package/modern/DataGrid/useDataGridComponent.js +1 -1
- package/modern/DataGrid/useDataGridProps.js +1 -0
- package/modern/colDef/gridActionsColDef.js +2 -0
- package/modern/colDef/gridBooleanColDef.js +3 -1
- package/modern/colDef/gridCheckboxSelectionColDef.js +2 -0
- package/modern/colDef/gridStringColDef.js +6 -0
- package/modern/components/GridRow.js +5 -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/GridEditInputCell.js +13 -14
- package/modern/components/cell/GridEditSingleSelectCell.js +11 -4
- package/modern/components/cell/index.js +1 -0
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +12 -1
- package/modern/components/containers/GridRoot.js +4 -2
- package/modern/components/containers/GridRootStyles.js +10 -0
- package/modern/components/toolbar/GridToolbarDensitySelector.js +11 -4
- package/modern/components/toolbar/GridToolbarExport.js +20 -10
- package/modern/components/toolbar/GridToolbarExportContainer.js +11 -2
- package/modern/constants/envConstants.js +2 -11
- package/modern/constants/gridClasses.js +1 -1
- package/modern/constants/localeTextConstants.js +9 -2
- 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 +6 -1
- package/modern/hooks/features/editRows/useGridCellEditing.new.js +9 -9
- package/modern/hooks/features/editRows/useGridCellEditing.old.js +2 -2
- package/modern/hooks/features/editRows/useGridEditing.new.js +4 -0
- package/modern/hooks/features/editRows/useGridEditing.old.js +1 -1
- package/modern/hooks/features/editRows/useGridRowEditing.new.js +7 -8
- package/modern/hooks/features/export/utils.js +10 -2
- package/modern/hooks/features/filter/gridFilterUtils.js +6 -0
- package/modern/hooks/features/filter/useGridFilter.js +8 -3
- package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +42 -30
- package/modern/hooks/features/pagination/useGridPage.js +4 -3
- package/modern/hooks/features/pagination/useGridPageSize.js +7 -4
- package/modern/hooks/features/preferencesPanel/useGridPreferencesPanel.js +8 -4
- package/modern/hooks/features/rows/gridRowsSelector.js +18 -1
- package/modern/hooks/features/rows/gridRowsUtils.js +19 -3
- package/modern/hooks/features/rows/index.js +1 -1
- package/modern/hooks/features/rows/useGridRowsMeta.js +17 -4
- package/modern/hooks/features/rows/useGridRowsPreProcessors.js +2 -1
- package/modern/hooks/features/scroll/useGridScroll.js +5 -2
- package/modern/hooks/features/selection/useGridSelection.js +28 -10
- package/modern/hooks/features/sorting/gridSortingUtils.js +10 -11
- package/modern/hooks/features/sorting/useGridSorting.js +38 -6
- package/modern/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +31 -17
- package/modern/hooks/utils/useGridNativeEventListener.js +1 -1
- package/modern/index.js +1 -1
- package/modern/internals/index.js +5 -2
- package/modern/locales/arSD.js +8 -1
- package/modern/locales/bgBG.js +8 -1
- package/modern/locales/csCZ.js +8 -1
- package/modern/locales/daDK.js +8 -1
- package/modern/locales/deDE.js +9 -2
- package/modern/locales/elGR.js +8 -1
- package/modern/locales/esES.js +8 -1
- package/modern/locales/faIR.js +8 -1
- package/modern/locales/fiFI.js +8 -1
- package/modern/locales/frFR.js +9 -2
- package/modern/locales/heIL.js +9 -2
- package/modern/locales/huHU.js +8 -1
- package/modern/locales/index.js +2 -1
- package/modern/locales/itIT.js +21 -14
- package/modern/locales/jaJP.js +11 -4
- package/modern/locales/koKR.js +31 -24
- package/modern/locales/nbNO.js +9 -2
- package/modern/locales/nlNL.js +9 -2
- package/modern/locales/plPL.js +8 -1
- package/modern/locales/ptBR.js +9 -2
- package/modern/locales/roRO.js +9 -2
- package/modern/locales/ruRU.js +8 -1
- package/modern/locales/skSK.js +9 -2
- package/modern/locales/svSE.js +9 -2
- package/modern/locales/trTR.js +8 -1
- package/modern/locales/ukUA.js +8 -1
- package/modern/locales/viVN.js +8 -1
- package/modern/locales/zhCN.js +34 -27
- package/modern/locales/zhTW.js +123 -0
- package/modern/models/events/gridEvents.js +1 -0
- package/modern/utils/keyboardUtils.js +7 -2
- package/node/DataGrid/DataGrid.js +6 -0
- package/node/DataGrid/useDataGridComponent.js +1 -1
- package/node/DataGrid/useDataGridProps.js +1 -0
- package/node/colDef/gridActionsColDef.js +2 -0
- package/node/colDef/gridBooleanColDef.js +3 -1
- package/node/colDef/gridCheckboxSelectionColDef.js +2 -0
- package/node/colDef/gridStringColDef.js +5 -0
- package/node/components/GridRow.js +5 -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/GridEditInputCell.js +15 -16
- package/node/components/cell/GridEditSingleSelectCell.js +10 -4
- package/node/components/cell/index.js +13 -0
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +12 -1
- package/node/components/containers/GridRoot.js +3 -1
- package/node/components/containers/GridRootStyles.js +10 -0
- package/node/components/toolbar/GridToolbarDensitySelector.js +13 -4
- package/node/components/toolbar/GridToolbarExport.js +16 -10
- package/node/components/toolbar/GridToolbarExportContainer.js +13 -2
- package/node/constants/envConstants.js +2 -13
- package/node/constants/gridClasses.js +1 -1
- package/node/constants/localeTextConstants.js +9 -2
- 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 +7 -1
- package/node/hooks/features/editRows/useGridCellEditing.new.js +11 -9
- package/node/hooks/features/editRows/useGridCellEditing.old.js +2 -2
- package/node/hooks/features/editRows/useGridEditing.new.js +4 -0
- package/node/hooks/features/editRows/useGridEditing.old.js +1 -1
- package/node/hooks/features/editRows/useGridRowEditing.new.js +7 -8
- package/node/hooks/features/export/utils.js +17 -2
- package/node/hooks/features/filter/gridFilterUtils.js +7 -0
- package/node/hooks/features/filter/useGridFilter.js +11 -4
- package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +43 -34
- package/node/hooks/features/pagination/useGridPage.js +4 -3
- package/node/hooks/features/pagination/useGridPageSize.js +8 -4
- package/node/hooks/features/preferencesPanel/useGridPreferencesPanel.js +12 -4
- package/node/hooks/features/rows/gridRowsSelector.js +24 -2
- package/node/hooks/features/rows/gridRowsUtils.js +23 -2
- package/node/hooks/features/rows/index.js +70 -12
- package/node/hooks/features/rows/useGridRowsMeta.js +20 -4
- package/node/hooks/features/rows/useGridRowsPreProcessors.js +2 -1
- package/node/hooks/features/scroll/useGridScroll.js +7 -1
- package/node/hooks/features/selection/useGridSelection.js +28 -10
- package/node/hooks/features/sorting/gridSortingUtils.js +10 -11
- package/node/hooks/features/sorting/useGridSorting.js +42 -6
- package/node/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +32 -18
- package/node/hooks/utils/useGridNativeEventListener.js +1 -1
- package/node/index.js +1 -1
- package/node/internals/index.js +46 -0
- package/node/locales/arSD.js +8 -1
- package/node/locales/bgBG.js +8 -1
- package/node/locales/csCZ.js +8 -1
- package/node/locales/daDK.js +8 -1
- package/node/locales/deDE.js +9 -2
- package/node/locales/elGR.js +8 -1
- package/node/locales/esES.js +8 -1
- package/node/locales/faIR.js +8 -1
- package/node/locales/fiFI.js +8 -1
- package/node/locales/frFR.js +9 -2
- package/node/locales/heIL.js +9 -2
- package/node/locales/huHU.js +8 -1
- package/node/locales/index.js +13 -0
- package/node/locales/itIT.js +21 -14
- package/node/locales/jaJP.js +11 -4
- package/node/locales/koKR.js +31 -24
- package/node/locales/nbNO.js +9 -2
- package/node/locales/nlNL.js +9 -2
- package/node/locales/plPL.js +8 -1
- package/node/locales/ptBR.js +9 -2
- package/node/locales/roRO.js +9 -2
- package/node/locales/ruRU.js +8 -1
- package/node/locales/skSK.js +9 -2
- package/node/locales/svSE.js +9 -2
- package/node/locales/trTR.js +8 -1
- package/node/locales/ukUA.js +8 -1
- package/node/locales/viVN.js +8 -1
- package/node/locales/zhCN.js +34 -27
- package/node/locales/zhTW.js +133 -0
- package/node/models/events/gridEvents.js +1 -0
- package/node/utils/keyboardUtils.js +10 -4
- package/package.json +1 -1
- package/utils/getGridLocalization.d.ts +1 -1
- package/utils/keyboardUtils.d.ts +2 -2
- package/utils/keyboardUtils.js +7 -2
|
@@ -91,9 +91,9 @@ const useGridSelection = (apiRef, props) => {
|
|
|
91
91
|
checkboxSelection,
|
|
92
92
|
disableMultipleSelection,
|
|
93
93
|
disableSelectionOnClick,
|
|
94
|
-
isRowSelectable,
|
|
95
94
|
pagination,
|
|
96
|
-
paginationMode
|
|
95
|
+
paginationMode,
|
|
96
|
+
isRowSelectable: propIsRowSelectable
|
|
97
97
|
} = props;
|
|
98
98
|
const canHaveMultipleSelection = !disableMultipleSelection || checkboxSelection;
|
|
99
99
|
const visibleRows = (0, _useGridVisibleRows.useGridVisibleRows)(apiRef, props);
|
|
@@ -142,9 +142,22 @@ const useGridSelection = (apiRef, props) => {
|
|
|
142
142
|
}
|
|
143
143
|
}, [apiRef, logger]);
|
|
144
144
|
const isRowSelected = React.useCallback(id => (0, _gridSelectionSelector.gridSelectionStateSelector)(apiRef.current.state).includes(id), [apiRef]);
|
|
145
|
+
const isRowSelectable = React.useCallback(id => {
|
|
146
|
+
if (propIsRowSelectable && !propIsRowSelectable(apiRef.current.getRowParams(id))) {
|
|
147
|
+
return false;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
const rowNode = apiRef.current.getRowNode(id);
|
|
151
|
+
|
|
152
|
+
if ((rowNode == null ? void 0 : rowNode.position) === 'footer' || rowNode != null && rowNode.isPinned) {
|
|
153
|
+
return false;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
return true;
|
|
157
|
+
}, [apiRef, propIsRowSelectable]);
|
|
145
158
|
const getSelectedRows = React.useCallback(() => (0, _gridSelectionSelector.selectedGridRowsSelector)(apiRef), [apiRef]);
|
|
146
159
|
const selectRow = React.useCallback((id, isSelected = true, resetSelection = false) => {
|
|
147
|
-
if (
|
|
160
|
+
if (!apiRef.current.isRowSelectable(id)) {
|
|
148
161
|
return;
|
|
149
162
|
}
|
|
150
163
|
|
|
@@ -168,10 +181,10 @@ const useGridSelection = (apiRef, props) => {
|
|
|
168
181
|
apiRef.current.setSelectionModel(newSelection);
|
|
169
182
|
}
|
|
170
183
|
}
|
|
171
|
-
}, [apiRef,
|
|
184
|
+
}, [apiRef, logger, canHaveMultipleSelection]);
|
|
172
185
|
const selectRows = React.useCallback((ids, isSelected = true, resetSelection = false) => {
|
|
173
186
|
logger.debug(`Setting selection for several rows`);
|
|
174
|
-
const selectableIds =
|
|
187
|
+
const selectableIds = ids.filter(id => apiRef.current.isRowSelectable(id));
|
|
175
188
|
let newSelection;
|
|
176
189
|
|
|
177
190
|
if (resetSelection) {
|
|
@@ -194,7 +207,7 @@ const useGridSelection = (apiRef, props) => {
|
|
|
194
207
|
if (isSelectionValid) {
|
|
195
208
|
apiRef.current.setSelectionModel(newSelection);
|
|
196
209
|
}
|
|
197
|
-
}, [apiRef,
|
|
210
|
+
}, [apiRef, logger, canHaveMultipleSelection]);
|
|
198
211
|
const selectRowRange = React.useCallback(({
|
|
199
212
|
startId,
|
|
200
213
|
endId
|
|
@@ -218,7 +231,8 @@ const useGridSelection = (apiRef, props) => {
|
|
|
218
231
|
selectRowRange,
|
|
219
232
|
setSelectionModel,
|
|
220
233
|
getSelectedRows,
|
|
221
|
-
isRowSelected
|
|
234
|
+
isRowSelected,
|
|
235
|
+
isRowSelectable
|
|
222
236
|
};
|
|
223
237
|
(0, _useGridApiMethod.useGridApiMethod)(apiRef, selectionApi, 'GridSelectionApi');
|
|
224
238
|
/**
|
|
@@ -285,6 +299,10 @@ const useGridSelection = (apiRef, props) => {
|
|
|
285
299
|
}
|
|
286
300
|
}
|
|
287
301
|
|
|
302
|
+
if (params.rowNode.isPinned) {
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
|
|
288
306
|
if (event.shiftKey && (canHaveMultipleSelection || checkboxSelection)) {
|
|
289
307
|
expandMouseRowRangeSelection(params.id);
|
|
290
308
|
} else {
|
|
@@ -399,13 +417,13 @@ const useGridSelection = (apiRef, props) => {
|
|
|
399
417
|
React.useEffect(() => {
|
|
400
418
|
if (isStateControlled) {
|
|
401
419
|
return;
|
|
402
|
-
} // isRowSelectable changed
|
|
420
|
+
} // props.isRowSelectable changed
|
|
403
421
|
|
|
404
422
|
|
|
405
423
|
const currentSelection = (0, _gridSelectionSelector.gridSelectionStateSelector)(apiRef.current.state);
|
|
406
424
|
|
|
407
425
|
if (isRowSelectable) {
|
|
408
|
-
const newSelection = currentSelection.filter(id => isRowSelectable(
|
|
426
|
+
const newSelection = currentSelection.filter(id => isRowSelectable(id));
|
|
409
427
|
|
|
410
428
|
if (newSelection.length < currentSelection.length) {
|
|
411
429
|
apiRef.current.setSelectionModel(newSelection);
|
|
@@ -432,7 +450,7 @@ const useGridSelection = (apiRef, props) => {
|
|
|
432
450
|
let isSelectable = true;
|
|
433
451
|
|
|
434
452
|
if (isRowSelectable) {
|
|
435
|
-
isSelectable = isRowSelectable(
|
|
453
|
+
isSelectable = isRowSelectable(id);
|
|
436
454
|
}
|
|
437
455
|
|
|
438
456
|
return isSelectable && currentPageRowsLookup[id]; // Check if the row is in the current page
|
|
@@ -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,39 @@ 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].isPinned) {
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
if (rowTree[rowId].position === 'footer') {
|
|
233
|
+
footerRowIds.push(rowId);
|
|
234
|
+
} else {
|
|
235
|
+
bodyRowIds.push(rowId);
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
return [...bodyRowIds, ...footerRowIds];
|
|
215
239
|
}
|
|
216
240
|
|
|
217
|
-
const
|
|
218
|
-
|
|
241
|
+
const bodyRows = [];
|
|
242
|
+
const footerRowIds = [];
|
|
243
|
+
Object.values(rowTree).forEach(rowNode => {
|
|
244
|
+
if (rowNode.isPinned) {
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
if (rowNode.position === 'footer') {
|
|
249
|
+
footerRowIds.push(rowNode.id);
|
|
250
|
+
} else {
|
|
251
|
+
bodyRows.push(rowNode);
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
return [...params.sortRowList(bodyRows), ...footerRowIds];
|
|
219
255
|
}, [apiRef]);
|
|
220
256
|
(0, _pipeProcessing.useGridRegisterPipeProcessor)(apiRef, 'exportState', stateExportPreProcessing);
|
|
221
257
|
(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 => {
|
|
@@ -207,10 +207,8 @@ const useGridVirtualScroller = props => {
|
|
|
207
207
|
React.useEffect(() => {
|
|
208
208
|
setContainerWidth(rootRef.current.clientWidth);
|
|
209
209
|
}, [rowsMeta.currentPageTotalHeight]);
|
|
210
|
-
const handleResize = React.useCallback(
|
|
211
|
-
|
|
212
|
-
setContainerWidth(rootRef.current.clientWidth);
|
|
213
|
-
}
|
|
210
|
+
const handleResize = React.useCallback(params => {
|
|
211
|
+
setContainerWidth(params.width);
|
|
214
212
|
}, []);
|
|
215
213
|
(0, _useGridApiEventHandler.useGridApiEventHandler)(apiRef, 'resize', handleResize);
|
|
216
214
|
const updateRenderZonePosition = React.useCallback(nextRenderContext => {
|
|
@@ -326,10 +324,11 @@ const useGridVirtualScroller = props => {
|
|
|
326
324
|
minFirstColumn = renderZoneMinColumnIndex,
|
|
327
325
|
maxLastColumn = renderZoneMaxColumnIndex,
|
|
328
326
|
availableSpace = containerWidth,
|
|
329
|
-
ignoreAutoHeight
|
|
327
|
+
ignoreAutoHeight,
|
|
328
|
+
rowIndexOffset = 0
|
|
330
329
|
} = params;
|
|
331
330
|
|
|
332
|
-
if (!
|
|
331
|
+
if (!nextRenderContext || availableSpace == null) {
|
|
333
332
|
return null;
|
|
334
333
|
}
|
|
335
334
|
|
|
@@ -344,14 +343,31 @@ const useGridVirtualScroller = props => {
|
|
|
344
343
|
});
|
|
345
344
|
const renderedRows = [];
|
|
346
345
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
346
|
+
if (params.rows) {
|
|
347
|
+
params.rows.forEach(row => {
|
|
348
|
+
renderedRows.push(row);
|
|
349
|
+
apiRef.current.unstable_calculateColSpan({
|
|
350
|
+
rowId: row.id,
|
|
351
|
+
minFirstColumn,
|
|
352
|
+
maxLastColumn,
|
|
353
|
+
columns: visibleColumns
|
|
354
|
+
});
|
|
354
355
|
});
|
|
356
|
+
} else {
|
|
357
|
+
if (!currentPage.range) {
|
|
358
|
+
return null;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
for (let i = firstRowToRender; i < lastRowToRender; i += 1) {
|
|
362
|
+
const row = currentPage.rows[i];
|
|
363
|
+
renderedRows.push(row);
|
|
364
|
+
apiRef.current.unstable_calculateColSpan({
|
|
365
|
+
rowId: row.id,
|
|
366
|
+
minFirstColumn,
|
|
367
|
+
maxLastColumn,
|
|
368
|
+
columns: visibleColumns
|
|
369
|
+
});
|
|
370
|
+
}
|
|
355
371
|
}
|
|
356
372
|
|
|
357
373
|
const [initialFirstColumnToRender, lastColumnToRender] = getRenderableIndexes({
|
|
@@ -372,7 +388,7 @@ const useGridVirtualScroller = props => {
|
|
|
372
388
|
const rows = [];
|
|
373
389
|
|
|
374
390
|
for (let i = 0; i < renderedRows.length; i += 1) {
|
|
375
|
-
var _rootProps$components;
|
|
391
|
+
var _currentPage$range5, _rootProps$components;
|
|
376
392
|
|
|
377
393
|
const {
|
|
378
394
|
id,
|
|
@@ -384,10 +400,8 @@ const useGridVirtualScroller = props => {
|
|
|
384
400
|
|
|
385
401
|
if (selectedRowsLookup[id] == null) {
|
|
386
402
|
isSelected = false;
|
|
387
|
-
} else if (typeof rootProps.isRowSelectable === 'function') {
|
|
388
|
-
isSelected = rootProps.isRowSelectable(apiRef.current.getRowParams(id));
|
|
389
403
|
} else {
|
|
390
|
-
isSelected =
|
|
404
|
+
isSelected = apiRef.current.isRowSelectable(id);
|
|
391
405
|
}
|
|
392
406
|
|
|
393
407
|
rows.push( /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.components.Row, (0, _extends2.default)({
|
|
@@ -405,7 +419,7 @@ const useGridVirtualScroller = props => {
|
|
|
405
419
|
firstColumnToRender: firstColumnToRender,
|
|
406
420
|
lastColumnToRender: lastColumnToRender,
|
|
407
421
|
selected: isSelected,
|
|
408
|
-
index: currentPage.range.firstRowIndex + firstRowToRender + i,
|
|
422
|
+
index: rowIndexOffset + ((currentPage == null ? void 0 : (_currentPage$range5 = currentPage.range) == null ? void 0 : _currentPage$range5.firstRowIndex) || 0) + firstRowToRender + i,
|
|
409
423
|
containerWidth: availableSpace,
|
|
410
424
|
isLastVisible: lastVisibleRowIndex
|
|
411
425
|
}, typeof getRowProps === 'function' ? getRowProps(id, model) : {}, (_rootProps$components = rootProps.componentsProps) == null ? void 0 : _rootProps$components.row), id));
|
|
@@ -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;
|
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 () {
|
|
@@ -39,6 +45,12 @@ Object.defineProperty(exports, "buildWarning", {
|
|
|
39
45
|
return _warning.buildWarning;
|
|
40
46
|
}
|
|
41
47
|
});
|
|
48
|
+
Object.defineProperty(exports, "calculatePinnedRowsHeight", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _gridRowsUtils.calculatePinnedRowsHeight;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
42
54
|
Object.defineProperty(exports, "clamp", {
|
|
43
55
|
enumerable: true,
|
|
44
56
|
get: function () {
|
|
@@ -117,18 +129,48 @@ Object.defineProperty(exports, "getColumnsToExport", {
|
|
|
117
129
|
return _utils.getColumnsToExport;
|
|
118
130
|
}
|
|
119
131
|
});
|
|
132
|
+
Object.defineProperty(exports, "getRowIdFromRowModel", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function () {
|
|
135
|
+
return _gridRowsUtils.getRowIdFromRowModel;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "gridAdditionalRowGroupsSelector", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () {
|
|
141
|
+
return _gridRowsSelector.gridAdditionalRowGroupsSelector;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "gridPinnedRowsSelector", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () {
|
|
147
|
+
return _gridRowsSelector.gridPinnedRowsSelector;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
120
150
|
Object.defineProperty(exports, "isDeepEqual", {
|
|
121
151
|
enumerable: true,
|
|
122
152
|
get: function () {
|
|
123
153
|
return _utils2.isDeepEqual;
|
|
124
154
|
}
|
|
125
155
|
});
|
|
156
|
+
Object.defineProperty(exports, "isFunction", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function () {
|
|
159
|
+
return _utils2.isFunction;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
126
162
|
Object.defineProperty(exports, "isNavigationKey", {
|
|
127
163
|
enumerable: true,
|
|
128
164
|
get: function () {
|
|
129
165
|
return _keyboardUtils.isNavigationKey;
|
|
130
166
|
}
|
|
131
167
|
});
|
|
168
|
+
Object.defineProperty(exports, "isNumber", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function () {
|
|
171
|
+
return _utils2.isNumber;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
132
174
|
Object.defineProperty(exports, "paginationStateInitializer", {
|
|
133
175
|
enumerable: true,
|
|
134
176
|
get: function () {
|
|
@@ -418,6 +460,10 @@ var _useGridRowsMeta = require("../hooks/features/rows/useGridRowsMeta");
|
|
|
418
460
|
|
|
419
461
|
var _useGridParamsApi = require("../hooks/features/rows/useGridParamsApi");
|
|
420
462
|
|
|
463
|
+
var _gridRowsUtils = require("../hooks/features/rows/gridRowsUtils");
|
|
464
|
+
|
|
465
|
+
var _gridRowsSelector = require("../hooks/features/rows/gridRowsSelector");
|
|
466
|
+
|
|
421
467
|
var _useGridSelection = require("../hooks/features/selection/useGridSelection");
|
|
422
468
|
|
|
423
469
|
var _useGridSelectionPreProcessors = require("../hooks/features/selection/useGridSelectionPreProcessors");
|
package/node/locales/arSD.js
CHANGED
|
@@ -30,7 +30,7 @@ const arSDGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'اظهر المرشِحات',
|
|
31
31
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} من المرشِحات النشطة` : `مرشِح نشط`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
33
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
34
34
|
// toolbarQuickFilterLabel: 'Search',
|
|
35
35
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
36
36
|
// Export selector toolbar button text
|
|
@@ -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
|
@@ -30,7 +30,7 @@ const bgBGGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Покажи Филтрите',
|
|
31
31
|
toolbarFiltersTooltipActive: count => `${count} активни филтри`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
33
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
34
34
|
// toolbarQuickFilterLabel: 'Search',
|
|
35
35
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
36
36
|
// Export selector toolbar button text
|
|
@@ -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
|
@@ -40,7 +40,7 @@ const csCZGrid = {
|
|
|
40
40
|
return `${count} ${pluralForm}`;
|
|
41
41
|
},
|
|
42
42
|
// Quick filter toolbar field
|
|
43
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
43
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
44
44
|
// toolbarQuickFilterLabel: 'Search',
|
|
45
45
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
46
46
|
// Export selector toolbar button text
|
|
@@ -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
|
@@ -30,7 +30,7 @@ const daDKGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Vis filtre',
|
|
31
31
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktive filtre` : `${count} aktivt filter`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
33
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
34
34
|
// toolbarQuickFilterLabel: 'Search',
|
|
35
35
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
36
36
|
// Export selector toolbar button text
|
|
@@ -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,7 +30,7 @@ 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
|
-
toolbarQuickFilterPlaceholder: 'Suchen
|
|
33
|
+
toolbarQuickFilterPlaceholder: 'Suchen…',
|
|
34
34
|
toolbarQuickFilterLabel: 'Suchen',
|
|
35
35
|
toolbarQuickFilterDeleteIconLabel: 'Löschen',
|
|
36
36
|
// Export selector toolbar button text
|
|
@@ -120,7 +120,14 @@ const deDEGrid = {
|
|
|
120
120
|
expandDetailPanel: 'Aufklappen',
|
|
121
121
|
collapseDetailPanel: 'Zuklappen',
|
|
122
122
|
// Row reordering text
|
|
123
|
-
rowReorderingHeaderName: 'Reihen neu ordnen'
|
|
123
|
+
rowReorderingHeaderName: 'Reihen neu ordnen',
|
|
124
|
+
// Aggregation
|
|
125
|
+
aggregationMenuItemHeader: 'Aggregation',
|
|
126
|
+
aggregationFunctionLabelSum: 'Summe',
|
|
127
|
+
aggregationFunctionLabelAvg: 'Mittelwert',
|
|
128
|
+
aggregationFunctionLabelMin: 'Minimum',
|
|
129
|
+
aggregationFunctionLabelMax: 'Maximum',
|
|
130
|
+
aggregationFunctionLabelSize: 'Anzahl'
|
|
124
131
|
};
|
|
125
132
|
const deDE = (0, _getGridLocalization.getGridLocalization)(deDEGrid, _locale.deDE);
|
|
126
133
|
exports.deDE = deDE;
|
package/node/locales/elGR.js
CHANGED
|
@@ -28,7 +28,7 @@ const elGRGrid = {
|
|
|
28
28
|
toolbarFiltersTooltipShow: 'Εμφάνιση φίλτρων',
|
|
29
29
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} ενεργά φίλτρα` : `${count} ενεργό φίλτρο`,
|
|
30
30
|
// Quick filter toolbar field
|
|
31
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
31
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
32
32
|
// toolbarQuickFilterLabel: 'Search',
|
|
33
33
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
34
34
|
// Export selector toolbar button text
|
|
@@ -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
|
@@ -30,7 +30,7 @@ const esESGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Mostrar filtros',
|
|
31
31
|
toolbarFiltersTooltipActive: count => count > 1 ? `${count} filtros activos` : `${count} filtro activo`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
33
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
34
34
|
// toolbarQuickFilterLabel: 'Search',
|
|
35
35
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
36
36
|
// Export selector toolbar button text
|
|
@@ -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
|
@@ -30,7 +30,7 @@ const faIRGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'نمایش فیلترها',
|
|
31
31
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} فیلترهای فعال` : `${count} فیلتر فعال`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
33
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
34
34
|
// toolbarQuickFilterLabel: 'Search',
|
|
35
35
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
36
36
|
// Export selector toolbar button text
|
|
@@ -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
|
@@ -30,7 +30,7 @@ const fiFIGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Näytä suodattimet',
|
|
31
31
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktiivista suodatinta` : `${count} aktiivinen suodatin`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
33
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
34
34
|
// toolbarQuickFilterLabel: 'Search',
|
|
35
35
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
36
36
|
// Export selector toolbar button text
|
|
@@ -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);
|