@mui/x-data-grid 6.5.0 → 6.7.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 +150 -2
- package/DataGrid/DataGrid.js +10 -3
- package/README.md +2 -2
- package/components/GridColumnHeaders.js +4 -9
- package/components/GridHeader.d.ts +2 -2
- package/components/base/GridBody.d.ts +1 -1
- package/components/base/GridFooterPlaceholder.d.ts +2 -2
- package/components/base/GridOverlays.d.ts +2 -2
- package/components/cell/GridActionsCell.d.ts +3 -3
- package/components/cell/GridActionsCell.js +3 -3
- package/components/cell/GridBooleanCell.d.ts +1 -1
- package/components/cell/GridEditBooleanCell.d.ts +2 -2
- package/components/cell/GridEditDateCell.d.ts +2 -2
- package/components/cell/GridEditInputCell.d.ts +1 -1
- package/components/cell/GridEditSingleSelectCell.d.ts +3 -3
- package/components/cell/GridEditSingleSelectCell.js +5 -5
- package/components/cell/GridSkeletonCell.d.ts +1 -1
- package/components/columnHeaders/ColumnHeaderMenuIcon.d.ts +1 -1
- package/components/columnHeaders/ColumnHeaderMenuIcon.js +3 -3
- package/components/columnHeaders/GridColumnGroupHeader.d.ts +2 -2
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.d.ts +1 -1
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.js +13 -4
- package/components/columnHeaders/GridColumnHeaderItem.d.ts +2 -2
- package/components/columnHeaders/GridColumnHeaderSeparator.d.ts +1 -1
- package/components/columnHeaders/GridColumnHeaderSortIcon.d.ts +1 -1
- package/components/columnHeaders/GridColumnHeaderTitle.d.ts +1 -1
- package/components/containers/GridRoot.js +1 -3
- package/components/containers/GridRootStyles.js +8 -1
- package/components/index.d.ts +0 -1
- package/components/index.js +1 -2
- package/components/menu/GridMenu.d.ts +1 -1
- package/components/menu/columnMenu/GridColumnHeaderMenu.d.ts +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.d.ts +2 -2
- package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.d.ts +2 -2
- package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.d.ts +2 -2
- package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.d.ts +2 -2
- package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.d.ts +2 -2
- package/components/panel/GridColumnsPanel.d.ts +16 -2
- package/components/panel/GridColumnsPanel.js +14 -0
- package/components/panel/GridPanelContent.d.ts +1 -1
- package/components/panel/GridPanelFooter.d.ts +1 -1
- package/components/panel/GridPanelHeader.d.ts +1 -1
- package/components/panel/GridPreferencesPanel.js +3 -1
- package/components/panel/filterPanel/GridFilterInputBoolean.d.ts +1 -2
- package/components/panel/filterPanel/GridFilterInputBoolean.js +6 -7
- package/components/panel/filterPanel/GridFilterInputDate.d.ts +1 -2
- package/components/panel/filterPanel/GridFilterInputDate.js +1 -6
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +2 -2
- package/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +2 -2
- package/components/panel/filterPanel/GridFilterInputSingleSelect.d.ts +1 -2
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +6 -6
- package/components/panel/filterPanel/GridFilterInputValue.d.ts +1 -2
- package/components/panel/filterPanel/GridFilterInputValue.js +1 -6
- package/components/panel/filterPanel/GridFilterPanel.d.ts +8 -0
- package/components/panel/filterPanel/GridFilterPanel.js +8 -0
- package/components/toolbar/GridToolbarColumnsButton.js +11 -6
- package/components/toolbar/GridToolbarDensitySelector.js +2 -2
- package/components/toolbar/GridToolbarExport.d.ts +2 -2
- package/components/toolbar/GridToolbarExportContainer.js +7 -7
- package/components/toolbar/GridToolbarFilterButton.js +11 -4
- package/components/toolbar/GridToolbarQuickFilter.d.ts +2 -2
- package/constants/gridClasses.d.ts +4 -0
- package/constants/gridClasses.js +1 -1
- package/constants/localeTextConstants.js +4 -4
- package/context/GridContextProvider.d.ts +1 -1
- package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +10 -2
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.js +2 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
- package/hooks/features/filter/gridFilterSelector.d.ts +2 -2
- package/hooks/features/filter/gridFilterSelector.js +2 -2
- package/hooks/features/filter/gridFilterState.d.ts +6 -6
- package/hooks/features/filter/gridFilterState.js +6 -0
- package/hooks/features/filter/useGridFilter.js +31 -10
- package/hooks/features/focus/useGridFocus.js +1 -0
- package/hooks/features/preferencesPanel/gridPreferencePanelState.d.ts +2 -0
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.js +4 -2
- package/hooks/features/rows/useGridRowsMeta.js +12 -13
- package/hooks/features/sorting/useGridSorting.js +2 -1
- package/hooks/features/virtualization/useGridVirtualScroller.js +2 -2
- package/index.js +1 -1
- package/internals/utils/useProps.js +21 -1
- package/legacy/DataGrid/DataGrid.js +10 -3
- package/legacy/components/GridColumnHeaders.js +4 -9
- package/legacy/components/cell/GridActionsCell.js +3 -3
- package/legacy/components/cell/GridEditSingleSelectCell.js +5 -5
- package/legacy/components/columnHeaders/ColumnHeaderMenuIcon.js +3 -3
- package/legacy/components/columnHeaders/GridColumnHeaderFilterIconButton.js +13 -4
- package/legacy/components/containers/GridRoot.js +1 -3
- package/legacy/components/containers/GridRootStyles.js +8 -4
- package/legacy/components/index.js +1 -2
- package/legacy/components/panel/GridColumnsPanel.js +14 -0
- package/legacy/components/panel/GridPreferencesPanel.js +3 -1
- package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +7 -7
- package/legacy/components/panel/filterPanel/GridFilterInputDate.js +1 -5
- package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +7 -6
- package/legacy/components/panel/filterPanel/GridFilterInputValue.js +1 -5
- package/legacy/components/panel/filterPanel/GridFilterPanel.js +8 -0
- package/legacy/components/toolbar/GridToolbarColumnsButton.js +11 -5
- package/legacy/components/toolbar/GridToolbarDensitySelector.js +2 -2
- package/legacy/components/toolbar/GridToolbarExportContainer.js +7 -7
- package/legacy/components/toolbar/GridToolbarFilterButton.js +11 -4
- package/legacy/constants/gridClasses.js +1 -1
- package/legacy/constants/localeTextConstants.js +4 -4
- package/legacy/hooks/core/strategyProcessing/useGridStrategyProcessing.js +2 -1
- package/legacy/hooks/features/filter/gridFilterSelector.js +4 -4
- package/legacy/hooks/features/filter/gridFilterState.js +6 -0
- package/legacy/hooks/features/filter/useGridFilter.js +31 -10
- package/legacy/hooks/features/focus/useGridFocus.js +1 -0
- package/legacy/hooks/features/preferencesPanel/useGridPreferencesPanel.js +4 -2
- package/legacy/hooks/features/rows/useGridRowsMeta.js +13 -21
- package/legacy/hooks/features/sorting/useGridSorting.js +2 -1
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +2 -2
- package/legacy/index.js +1 -1
- package/legacy/internals/utils/useProps.js +23 -1
- package/legacy/locales/arSD.js +12 -12
- package/legacy/locales/beBY.js +12 -12
- package/legacy/locales/bgBG.js +12 -12
- package/legacy/locales/csCZ.js +25 -27
- package/legacy/locales/daDK.js +12 -12
- package/legacy/locales/deDE.js +25 -27
- package/legacy/locales/elGR.js +12 -12
- package/legacy/locales/esES.js +12 -12
- package/legacy/locales/faIR.js +12 -12
- package/legacy/locales/fiFI.js +12 -12
- package/legacy/locales/frFR.js +25 -27
- package/legacy/locales/heIL.js +12 -12
- package/legacy/locales/huHU.js +12 -12
- package/legacy/locales/itIT.js +12 -12
- package/legacy/locales/jaJP.js +12 -12
- package/legacy/locales/koKR.js +12 -12
- package/legacy/locales/nbNO.js +12 -12
- package/legacy/locales/nlNL.js +25 -27
- package/legacy/locales/plPL.js +12 -12
- package/legacy/locales/ptBR.js +12 -12
- package/legacy/locales/roRO.js +12 -12
- package/legacy/locales/ruRU.js +12 -12
- package/legacy/locales/skSK.js +12 -12
- package/legacy/locales/svSE.js +12 -12
- package/legacy/locales/trTR.js +18 -19
- package/legacy/locales/ukUA.js +12 -12
- package/legacy/locales/urPK.js +12 -12
- package/legacy/locales/viVN.js +12 -12
- package/legacy/locales/zhCN.js +12 -12
- package/legacy/locales/zhTW.js +12 -12
- package/legacy/models/gridFilterItem.js +1 -1
- package/legacy/utils/EventManager.js +2 -2
- package/locales/arSD.js +12 -12
- package/locales/beBY.js +12 -12
- package/locales/bgBG.js +12 -12
- package/locales/csCZ.js +25 -27
- package/locales/daDK.js +12 -12
- package/locales/deDE.js +25 -27
- package/locales/elGR.js +12 -12
- package/locales/esES.js +12 -12
- package/locales/faIR.js +12 -12
- package/locales/fiFI.js +12 -12
- package/locales/frFR.js +25 -27
- package/locales/heIL.js +12 -12
- package/locales/huHU.js +12 -12
- package/locales/itIT.js +12 -12
- package/locales/jaJP.js +12 -12
- package/locales/koKR.js +12 -12
- package/locales/nbNO.js +12 -12
- package/locales/nlNL.js +25 -27
- package/locales/plPL.js +12 -12
- package/locales/ptBR.js +12 -12
- package/locales/roRO.js +12 -12
- package/locales/ruRU.js +12 -12
- package/locales/skSK.js +12 -12
- package/locales/svSE.js +12 -12
- package/locales/trTR.js +18 -19
- package/locales/ukUA.js +12 -12
- package/locales/urPK.js +12 -12
- package/locales/viVN.js +12 -12
- package/locales/zhCN.js +12 -12
- package/locales/zhTW.js +12 -12
- package/material/components/MUISelectOption.d.ts +2 -2
- package/models/api/gridFilterApi.d.ts +3 -1
- package/models/api/gridPreferencesPanelApi.d.ts +3 -1
- package/models/events/gridEventLookup.d.ts +8 -0
- package/models/gridFilterItem.d.ts +1 -1
- package/models/gridFilterItem.js +1 -1
- package/models/gridFilterOperator.d.ts +1 -1
- package/models/gridStateCommunity.d.ts +2 -0
- package/models/props/DataGridProps.d.ts +5 -0
- package/modern/DataGrid/DataGrid.js +10 -3
- package/modern/components/GridColumnHeaders.js +4 -9
- package/modern/components/cell/GridActionsCell.js +3 -3
- package/modern/components/cell/GridEditSingleSelectCell.js +5 -5
- package/modern/components/columnHeaders/ColumnHeaderMenuIcon.js +3 -3
- package/modern/components/columnHeaders/GridColumnHeaderFilterIconButton.js +13 -4
- package/modern/components/containers/GridRoot.js +1 -3
- package/modern/components/containers/GridRootStyles.js +8 -1
- package/modern/components/index.js +1 -2
- package/modern/components/panel/GridColumnsPanel.js +14 -0
- package/modern/components/panel/GridPreferencesPanel.js +3 -1
- package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +6 -7
- package/modern/components/panel/filterPanel/GridFilterInputDate.js +1 -6
- package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +6 -6
- package/modern/components/panel/filterPanel/GridFilterInputValue.js +1 -6
- package/modern/components/panel/filterPanel/GridFilterPanel.js +8 -0
- package/modern/components/toolbar/GridToolbarColumnsButton.js +11 -6
- package/modern/components/toolbar/GridToolbarDensitySelector.js +2 -2
- package/modern/components/toolbar/GridToolbarExportContainer.js +7 -7
- package/modern/components/toolbar/GridToolbarFilterButton.js +11 -4
- package/modern/constants/gridClasses.js +1 -1
- package/modern/constants/localeTextConstants.js +4 -4
- package/modern/hooks/core/strategyProcessing/useGridStrategyProcessing.js +2 -1
- package/modern/hooks/features/filter/gridFilterSelector.js +2 -2
- package/modern/hooks/features/filter/gridFilterState.js +6 -0
- package/modern/hooks/features/filter/useGridFilter.js +31 -10
- package/modern/hooks/features/focus/useGridFocus.js +1 -0
- package/modern/hooks/features/preferencesPanel/useGridPreferencesPanel.js +4 -2
- package/modern/hooks/features/rows/useGridRowsMeta.js +12 -13
- package/modern/hooks/features/sorting/useGridSorting.js +2 -1
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +2 -2
- package/modern/index.js +1 -1
- package/modern/internals/utils/useProps.js +20 -1
- package/modern/locales/arSD.js +12 -12
- package/modern/locales/beBY.js +12 -12
- package/modern/locales/bgBG.js +12 -12
- package/modern/locales/csCZ.js +25 -27
- package/modern/locales/daDK.js +12 -12
- package/modern/locales/deDE.js +25 -27
- package/modern/locales/elGR.js +12 -12
- package/modern/locales/esES.js +12 -12
- package/modern/locales/faIR.js +12 -12
- package/modern/locales/fiFI.js +12 -12
- package/modern/locales/frFR.js +25 -27
- package/modern/locales/heIL.js +12 -12
- package/modern/locales/huHU.js +12 -12
- package/modern/locales/itIT.js +12 -12
- package/modern/locales/jaJP.js +12 -12
- package/modern/locales/koKR.js +12 -12
- package/modern/locales/nbNO.js +12 -12
- package/modern/locales/nlNL.js +25 -27
- package/modern/locales/plPL.js +12 -12
- package/modern/locales/ptBR.js +12 -12
- package/modern/locales/roRO.js +12 -12
- package/modern/locales/ruRU.js +12 -12
- package/modern/locales/skSK.js +12 -12
- package/modern/locales/svSE.js +12 -12
- package/modern/locales/trTR.js +18 -19
- package/modern/locales/ukUA.js +12 -12
- package/modern/locales/urPK.js +12 -12
- package/modern/locales/viVN.js +12 -12
- package/modern/locales/zhCN.js +12 -12
- package/modern/locales/zhTW.js +12 -12
- package/modern/models/gridFilterItem.js +1 -1
- package/modern/utils/EventManager.js +2 -2
- package/node/DataGrid/DataGrid.js +10 -3
- package/node/components/GridColumnHeaders.js +3 -8
- package/node/components/cell/GridActionsCell.js +3 -3
- package/node/components/cell/GridEditSingleSelectCell.js +5 -5
- package/node/components/columnHeaders/ColumnHeaderMenuIcon.js +3 -3
- package/node/components/columnHeaders/GridColumnHeaderFilterIconButton.js +12 -3
- package/node/components/containers/GridRoot.js +1 -3
- package/node/components/containers/GridRootStyles.js +8 -1
- package/node/components/index.js +0 -11
- package/node/components/panel/GridColumnsPanel.js +14 -0
- package/node/components/panel/GridPreferencesPanel.js +3 -1
- package/node/components/panel/filterPanel/GridFilterInputBoolean.js +6 -7
- package/node/components/panel/filterPanel/GridFilterInputDate.js +1 -6
- package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +6 -6
- package/node/components/panel/filterPanel/GridFilterInputValue.js +1 -6
- package/node/components/panel/filterPanel/GridFilterPanel.js +8 -0
- package/node/components/toolbar/GridToolbarColumnsButton.js +11 -6
- package/node/components/toolbar/GridToolbarDensitySelector.js +2 -2
- package/node/components/toolbar/GridToolbarExportContainer.js +7 -7
- package/node/components/toolbar/GridToolbarFilterButton.js +10 -3
- package/node/constants/gridClasses.js +1 -1
- package/node/constants/localeTextConstants.js +4 -4
- package/node/hooks/core/strategyProcessing/useGridStrategyProcessing.js +2 -1
- package/node/hooks/features/filter/gridFilterSelector.js +2 -2
- package/node/hooks/features/filter/gridFilterState.js +6 -0
- package/node/hooks/features/filter/useGridFilter.js +35 -14
- package/node/hooks/features/focus/useGridFocus.js +1 -0
- package/node/hooks/features/preferencesPanel/useGridPreferencesPanel.js +4 -2
- package/node/hooks/features/rows/useGridRowsMeta.js +12 -13
- package/node/hooks/features/sorting/useGridSorting.js +2 -1
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +2 -2
- package/node/index.js +1 -1
- package/node/internals/utils/useProps.js +20 -1
- package/node/locales/arSD.js +12 -12
- package/node/locales/beBY.js +12 -12
- package/node/locales/bgBG.js +12 -12
- package/node/locales/csCZ.js +25 -27
- package/node/locales/daDK.js +12 -12
- package/node/locales/deDE.js +25 -27
- package/node/locales/elGR.js +12 -12
- package/node/locales/esES.js +12 -12
- package/node/locales/faIR.js +12 -12
- package/node/locales/fiFI.js +12 -12
- package/node/locales/frFR.js +25 -27
- package/node/locales/heIL.js +12 -12
- package/node/locales/huHU.js +12 -12
- package/node/locales/itIT.js +12 -12
- package/node/locales/jaJP.js +12 -12
- package/node/locales/koKR.js +12 -12
- package/node/locales/nbNO.js +12 -12
- package/node/locales/nlNL.js +25 -27
- package/node/locales/plPL.js +12 -12
- package/node/locales/ptBR.js +12 -12
- package/node/locales/roRO.js +12 -12
- package/node/locales/ruRU.js +12 -12
- package/node/locales/skSK.js +12 -12
- package/node/locales/svSE.js +12 -12
- package/node/locales/trTR.js +18 -19
- package/node/locales/ukUA.js +12 -12
- package/node/locales/urPK.js +12 -12
- package/node/locales/viVN.js +12 -12
- package/node/locales/zhCN.js +12 -12
- package/node/locales/zhTW.js +12 -12
- package/node/models/gridFilterItem.js +1 -1
- package/node/utils/EventManager.js +2 -2
- package/package.json +4 -4
- package/themeAugmentation/overrides.d.ts +1 -1
- package/utils/EventManager.js +2 -2
- package/components/GridScrollArea.d.ts +0 -10
- package/components/GridScrollArea.js +0 -117
- package/legacy/components/GridScrollArea.js +0 -119
- package/legacy/lib/createDetectElementResize/index.js +0 -145
- package/lib/createDetectElementResize/index.d.ts +0 -18
- package/lib/createDetectElementResize/index.js +0 -145
- package/lib/createDetectElementResize/types.d.ts +0 -9
- package/modern/components/GridScrollArea.js +0 -117
- package/modern/lib/createDetectElementResize/index.js +0 -145
- package/node/components/GridScrollArea.js +0 -126
- package/node/lib/createDetectElementResize/index.js +0 -151
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';
|
|
3
4
|
import { useGridApiEventHandler } from '../../utils/useGridApiEventHandler';
|
|
4
5
|
import { useGridApiMethod } from '../../utils/useGridApiMethod';
|
|
5
6
|
import { useGridLogger } from '../../utils/useGridLogger';
|
|
@@ -19,11 +20,21 @@ export const filterStateInitializer = (state, props, apiRef) => {
|
|
|
19
20
|
return _extends({}, state, {
|
|
20
21
|
filter: {
|
|
21
22
|
filterModel: sanitizeFilterModel(filterModel, props.disableMultipleColumnsFiltering, apiRef),
|
|
22
|
-
visibleRowsLookup: {},
|
|
23
23
|
filteredDescendantCountLookup: {}
|
|
24
|
-
}
|
|
24
|
+
},
|
|
25
|
+
visibleRowsLookup: {}
|
|
25
26
|
});
|
|
26
27
|
};
|
|
28
|
+
const getVisibleRowsLookup = params => {
|
|
29
|
+
// For flat tree, the `visibleRowsLookup` and the `filteredRowsLookup` are equals since no row is collapsed.
|
|
30
|
+
return params.filteredRowsLookup;
|
|
31
|
+
};
|
|
32
|
+
function getVisibleRowsLookupState(apiRef, state) {
|
|
33
|
+
return apiRef.current.applyStrategyProcessor('visibleRowsLookupCreation', {
|
|
34
|
+
tree: state.rows.tree,
|
|
35
|
+
filteredRowsLookup: state.filter.filteredRowsLookup
|
|
36
|
+
});
|
|
37
|
+
}
|
|
27
38
|
|
|
28
39
|
/**
|
|
29
40
|
* @requires useGridColumns (method, event)
|
|
@@ -47,9 +58,13 @@ export const useGridFilter = (apiRef, props) => {
|
|
|
47
58
|
isRowMatchingFilters,
|
|
48
59
|
filterModel: filterModel ?? getDefaultGridFilterModel()
|
|
49
60
|
});
|
|
50
|
-
|
|
61
|
+
const newState = _extends({}, state, {
|
|
51
62
|
filter: _extends({}, state.filter, filteringResult)
|
|
52
63
|
});
|
|
64
|
+
const visibleRowsLookupState = getVisibleRowsLookupState(apiRef, newState);
|
|
65
|
+
return _extends({}, newState, {
|
|
66
|
+
visibleRowsLookup: visibleRowsLookupState
|
|
67
|
+
});
|
|
53
68
|
});
|
|
54
69
|
apiRef.current.publishEvent('filteredRowsSet');
|
|
55
70
|
}, [props.filterMode, apiRef]);
|
|
@@ -105,7 +120,7 @@ export const useGridFilter = (apiRef, props) => {
|
|
|
105
120
|
items
|
|
106
121
|
}), 'deleteFilterItem');
|
|
107
122
|
}, [apiRef]);
|
|
108
|
-
const showFilterPanel = React.useCallback(targetColumnField => {
|
|
123
|
+
const showFilterPanel = React.useCallback((targetColumnField, panelId, labelId) => {
|
|
109
124
|
logger.debug('Displaying filter panel');
|
|
110
125
|
if (targetColumnField) {
|
|
111
126
|
const filterModel = gridFilterModelSelector(apiRef);
|
|
@@ -150,7 +165,7 @@ export const useGridFilter = (apiRef, props) => {
|
|
|
150
165
|
items: newFilterItems
|
|
151
166
|
}));
|
|
152
167
|
}
|
|
153
|
-
apiRef.current.showPreferences(GridPreferencePanelsValue.filters);
|
|
168
|
+
apiRef.current.showPreferences(GridPreferencePanelsValue.filters, panelId, labelId);
|
|
154
169
|
}, [apiRef, logger, props.disableMultipleColumnsFiltering]);
|
|
155
170
|
const hideFilterPanel = React.useCallback(() => {
|
|
156
171
|
logger.debug('Hiding filter panel');
|
|
@@ -256,13 +271,10 @@ export const useGridFilter = (apiRef, props) => {
|
|
|
256
271
|
}
|
|
257
272
|
return {
|
|
258
273
|
filteredRowsLookup,
|
|
259
|
-
// For flat tree, the `visibleRowsLookup` and the `filteredRowsLookup` are equals since no row is collapsed.
|
|
260
|
-
visibleRowsLookup: filteredRowsLookup,
|
|
261
274
|
filteredDescendantCountLookup: {}
|
|
262
275
|
};
|
|
263
276
|
}
|
|
264
277
|
return {
|
|
265
|
-
visibleRowsLookup: {},
|
|
266
278
|
filteredRowsLookup: {},
|
|
267
279
|
filteredDescendantCountLookup: {}
|
|
268
280
|
};
|
|
@@ -272,6 +284,7 @@ export const useGridFilter = (apiRef, props) => {
|
|
|
272
284
|
useGridRegisterPipeProcessor(apiRef, 'restoreState', stateRestorePreProcessing);
|
|
273
285
|
useGridRegisterPipeProcessor(apiRef, 'preferencePanel', preferencePanelPreProcessing);
|
|
274
286
|
useGridRegisterStrategyProcessor(apiRef, GRID_DEFAULT_STRATEGY, 'filtering', flatFilteringMethod);
|
|
287
|
+
useGridRegisterStrategyProcessor(apiRef, GRID_DEFAULT_STRATEGY, 'visibleRowsLookupCreation', getVisibleRowsLookup);
|
|
275
288
|
|
|
276
289
|
/**
|
|
277
290
|
* EVENTS
|
|
@@ -292,13 +305,21 @@ export const useGridFilter = (apiRef, props) => {
|
|
|
292
305
|
apiRef.current.unstable_applyFilters();
|
|
293
306
|
}
|
|
294
307
|
}, [apiRef]);
|
|
308
|
+
const updateVisibleRowsLookupState = React.useCallback(() => {
|
|
309
|
+
apiRef.current.setState(state => {
|
|
310
|
+
return _extends({}, state, {
|
|
311
|
+
visibleRowsLookup: getVisibleRowsLookupState(apiRef, state)
|
|
312
|
+
});
|
|
313
|
+
});
|
|
314
|
+
apiRef.current.forceUpdate();
|
|
315
|
+
}, [apiRef]);
|
|
295
316
|
|
|
296
317
|
// Do not call `apiRef.current.forceUpdate` to avoid re-render before updating the sorted rows.
|
|
297
318
|
// Otherwise, the state is not consistent during the render
|
|
298
319
|
useGridApiEventHandler(apiRef, 'rowsSet', updateFilteredRows);
|
|
299
|
-
useGridApiEventHandler(apiRef, 'rowExpansionChange', apiRef.current.unstable_applyFilters);
|
|
300
320
|
useGridApiEventHandler(apiRef, 'columnsChange', handleColumnsChange);
|
|
301
321
|
useGridApiEventHandler(apiRef, 'activeStrategyProcessorChange', handleStrategyProcessorChange);
|
|
322
|
+
useGridApiEventHandler(apiRef, 'rowExpansionChange', updateVisibleRowsLookupState);
|
|
302
323
|
|
|
303
324
|
/**
|
|
304
325
|
* 1ST RENDER
|
|
@@ -310,7 +331,7 @@ export const useGridFilter = (apiRef, props) => {
|
|
|
310
331
|
/**
|
|
311
332
|
* EFFECTS
|
|
312
333
|
*/
|
|
313
|
-
|
|
334
|
+
useEnhancedEffect(() => {
|
|
314
335
|
if (props.filterModel !== undefined) {
|
|
315
336
|
apiRef.current.setFilterModel(props.filterModel);
|
|
316
337
|
}
|
|
@@ -350,6 +350,7 @@ export const useGridFocus = (apiRef, props) => {
|
|
|
350
350
|
};
|
|
351
351
|
}, [apiRef, handleDocumentClick]);
|
|
352
352
|
useGridApiEventHandler(apiRef, 'columnHeaderBlur', handleBlur);
|
|
353
|
+
useGridApiEventHandler(apiRef, 'headerFilterBlur', handleBlur);
|
|
353
354
|
useGridApiEventHandler(apiRef, 'cellDoubleClick', handleCellDoubleClick);
|
|
354
355
|
useGridApiEventHandler(apiRef, 'cellMouseDown', handleCellMouseDown);
|
|
355
356
|
useGridApiEventHandler(apiRef, 'cellKeyDown', handleCellKeyDown);
|
|
@@ -48,13 +48,15 @@ export const useGridPreferencesPanel = (apiRef, props) => {
|
|
|
48
48
|
const hidePreferencesDelayed = React.useCallback(() => {
|
|
49
49
|
hideTimeout.current = setTimeout(hidePreferences, 100);
|
|
50
50
|
}, [hidePreferences]);
|
|
51
|
-
const showPreferences = React.useCallback(newValue => {
|
|
51
|
+
const showPreferences = React.useCallback((newValue, panelId, labelId) => {
|
|
52
52
|
logger.debug('Opening Preferences Panel');
|
|
53
53
|
doNotHidePanel();
|
|
54
54
|
apiRef.current.setState(state => _extends({}, state, {
|
|
55
55
|
preferencePanel: _extends({}, state.preferencePanel, {
|
|
56
56
|
open: true,
|
|
57
|
-
openedPanelValue: newValue
|
|
57
|
+
openedPanelValue: newValue,
|
|
58
|
+
panelId,
|
|
59
|
+
labelId
|
|
58
60
|
})
|
|
59
61
|
}));
|
|
60
62
|
apiRef.current.publishEvent('preferencePanelOpen', {
|
|
@@ -41,7 +41,7 @@ export const useGridRowsMeta = (apiRef, props) => {
|
|
|
41
41
|
getRowSpacing,
|
|
42
42
|
getEstimatedRowHeight
|
|
43
43
|
} = props;
|
|
44
|
-
const rowsHeightLookup = React.useRef(
|
|
44
|
+
const rowsHeightLookup = React.useRef(Object.create(null));
|
|
45
45
|
|
|
46
46
|
// Inspired by https://github.com/bvaughn/react-virtualized/blob/master/source/Grid/utils/CellSizeAndPositionManager.js
|
|
47
47
|
const lastMeasuredRowIndex = React.useRef(-1);
|
|
@@ -104,17 +104,14 @@ export const useGridRowsMeta = (apiRef, props) => {
|
|
|
104
104
|
} else {
|
|
105
105
|
rowsHeightLookup.current[row.id].needsFirstMeasurement = false;
|
|
106
106
|
}
|
|
107
|
-
const
|
|
107
|
+
const initialHeights = {};
|
|
108
|
+
/* eslint-disable-next-line no-restricted-syntax */
|
|
109
|
+
for (const key in sizes) {
|
|
108
110
|
if (/^base[A-Z]/.test(key)) {
|
|
109
|
-
|
|
111
|
+
initialHeights[key] = sizes[key];
|
|
110
112
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
// We use an object to make simple to check if a height is already added or not
|
|
115
|
-
const initialHeights = _extends({}, existingBaseSizes, {
|
|
116
|
-
baseCenter: baseRowHeight
|
|
117
|
-
});
|
|
113
|
+
}
|
|
114
|
+
initialHeights.baseCenter = baseRowHeight;
|
|
118
115
|
if (getRowSpacing) {
|
|
119
116
|
const indexRelativeToCurrentPage = apiRef.current.getRowIndexRelativeToVisibleRows(row.id);
|
|
120
117
|
const spacing = getRowSpacing(_extends({}, row, {
|
|
@@ -135,13 +132,15 @@ export const useGridRowsMeta = (apiRef, props) => {
|
|
|
135
132
|
let maximumBaseSize = 0;
|
|
136
133
|
let otherSizes = 0;
|
|
137
134
|
const processedSizes = calculateRowProcessedSizes(row);
|
|
138
|
-
|
|
139
|
-
|
|
135
|
+
/* eslint-disable-next-line no-restricted-syntax, guard-for-in */
|
|
136
|
+
for (const key in processedSizes) {
|
|
137
|
+
const value = processedSizes[key];
|
|
138
|
+
if (/^base[A-Z]/.test(key)) {
|
|
140
139
|
maximumBaseSize = value > maximumBaseSize ? value : maximumBaseSize;
|
|
141
140
|
} else {
|
|
142
141
|
otherSizes += value;
|
|
143
142
|
}
|
|
144
|
-
}
|
|
143
|
+
}
|
|
145
144
|
return acc + maximumBaseSize + otherSizes;
|
|
146
145
|
}, 0);
|
|
147
146
|
pinnedRows?.top?.forEach(row => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';
|
|
3
4
|
import { isEnterKey } from '../../../utils/keyboardUtils';
|
|
4
5
|
import { useGridApiEventHandler } from '../../utils/useGridApiEventHandler';
|
|
5
6
|
import { useGridApiMethod } from '../../utils/useGridApiMethod';
|
|
@@ -238,7 +239,7 @@ export const useGridSorting = (apiRef, props) => {
|
|
|
238
239
|
/**
|
|
239
240
|
* EFFECTS
|
|
240
241
|
*/
|
|
241
|
-
|
|
242
|
+
useEnhancedEffect(() => {
|
|
242
243
|
if (props.sortModel !== undefined) {
|
|
243
244
|
apiRef.current.setSortModel(props.sortModel);
|
|
244
245
|
}
|
|
@@ -90,7 +90,7 @@ export const useGridVirtualScroller = props => {
|
|
|
90
90
|
height: null
|
|
91
91
|
});
|
|
92
92
|
const prevTotalWidth = React.useRef(columnsTotalWidth);
|
|
93
|
-
const rowStyleCache = React.useRef(
|
|
93
|
+
const rowStyleCache = React.useRef(Object.create(null));
|
|
94
94
|
const prevGetRowProps = React.useRef();
|
|
95
95
|
const prevRootRowStyle = React.useRef();
|
|
96
96
|
const getRenderedColumnsRef = React.useRef(defaultMemoize((columns, firstColumnToRender, lastColumnToRender) => {
|
|
@@ -374,7 +374,7 @@ export const useGridVirtualScroller = props => {
|
|
|
374
374
|
rootRowProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
375
375
|
const invalidatesCachedRowStyle = prevGetRowProps.current !== getRowProps || prevRootRowStyle.current !== rootRowStyle;
|
|
376
376
|
if (invalidatesCachedRowStyle) {
|
|
377
|
-
rowStyleCache.current =
|
|
377
|
+
rowStyleCache.current = Object.create(null);
|
|
378
378
|
}
|
|
379
379
|
const rows = [];
|
|
380
380
|
for (let i = 0; i < renderedRows.length; i += 1) {
|
package/modern/index.js
CHANGED
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
const _excluded = ["components", "componentsProps"];
|
|
3
3
|
import * as React from 'react';
|
|
4
|
+
/** Gathers props for the root element into a single `.forwardedProps` field */
|
|
5
|
+
function groupForwardedProps(props) {
|
|
6
|
+
const keys = Object.keys(props);
|
|
7
|
+
if (!keys.some(key => key.startsWith('aria-') || key.startsWith('data-'))) {
|
|
8
|
+
return props;
|
|
9
|
+
}
|
|
10
|
+
const newProps = {};
|
|
11
|
+
const forwardedProps = props.forwardedProps ?? {};
|
|
12
|
+
for (let i = 0; i < keys.length; i += 1) {
|
|
13
|
+
const key = keys[i];
|
|
14
|
+
if (key.startsWith('aria-') || key.startsWith('data-')) {
|
|
15
|
+
forwardedProps[key] = props[key];
|
|
16
|
+
} else {
|
|
17
|
+
newProps[key] = props[key];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
newProps.forwardedProps = forwardedProps;
|
|
21
|
+
return newProps;
|
|
22
|
+
}
|
|
4
23
|
export function useProps(allProps) {
|
|
5
24
|
return React.useMemo(() => {
|
|
6
25
|
const {
|
|
@@ -8,6 +27,6 @@ export function useProps(allProps) {
|
|
|
8
27
|
componentsProps
|
|
9
28
|
} = allProps,
|
|
10
29
|
themedProps = _objectWithoutPropertiesLoose(allProps, _excluded);
|
|
11
|
-
return [components, componentsProps, themedProps];
|
|
30
|
+
return [components, componentsProps, groupForwardedProps(themedProps)];
|
|
12
31
|
}, [allProps]);
|
|
13
32
|
}
|
package/modern/locales/arSD.js
CHANGED
|
@@ -60,12 +60,12 @@ const arSDGrid = {
|
|
|
60
60
|
filterOperatorIsEmpty: 'خالي',
|
|
61
61
|
filterOperatorIsNotEmpty: 'غير خالي',
|
|
62
62
|
filterOperatorIsAnyOf: 'أي من',
|
|
63
|
-
// filterOperator
|
|
64
|
-
// filterOperator
|
|
65
|
-
// filterOperator
|
|
66
|
-
// filterOperator
|
|
67
|
-
// filterOperator
|
|
68
|
-
// filterOperator
|
|
63
|
+
// 'filterOperator=': '=',
|
|
64
|
+
// 'filterOperator!=': '!=',
|
|
65
|
+
// 'filterOperator>': '>',
|
|
66
|
+
// 'filterOperator>=': '>=',
|
|
67
|
+
// 'filterOperator<': '<',
|
|
68
|
+
// 'filterOperator<=': '<=',
|
|
69
69
|
|
|
70
70
|
// Header filter operators text
|
|
71
71
|
// headerFilterOperatorContains: 'Contains',
|
|
@@ -81,12 +81,12 @@ const arSDGrid = {
|
|
|
81
81
|
// headerFilterOperatorIsEmpty: 'Is empty',
|
|
82
82
|
// headerFilterOperatorIsNotEmpty: 'Is not empty',
|
|
83
83
|
// headerFilterOperatorIsAnyOf: 'Is any of',
|
|
84
|
-
// headerFilterOperator
|
|
85
|
-
// headerFilterOperator
|
|
86
|
-
// headerFilterOperator
|
|
87
|
-
// headerFilterOperator
|
|
88
|
-
// headerFilterOperator
|
|
89
|
-
// headerFilterOperator
|
|
84
|
+
// 'headerFilterOperator=': 'Equals',
|
|
85
|
+
// 'headerFilterOperator!=': 'Not equals',
|
|
86
|
+
// 'headerFilterOperator>': 'Greater than',
|
|
87
|
+
// 'headerFilterOperator>=': 'Greater than or equal to',
|
|
88
|
+
// 'headerFilterOperator<': 'Less than',
|
|
89
|
+
// 'headerFilterOperator<=': 'Less than or equal to',
|
|
90
90
|
|
|
91
91
|
// Filter values text
|
|
92
92
|
filterValueAny: 'أي',
|
package/modern/locales/beBY.js
CHANGED
|
@@ -74,12 +74,12 @@ const beBYGrid = {
|
|
|
74
74
|
filterOperatorIsEmpty: 'пусты',
|
|
75
75
|
filterOperatorIsNotEmpty: 'не пусты',
|
|
76
76
|
filterOperatorIsAnyOf: 'усякі з',
|
|
77
|
-
// filterOperator
|
|
78
|
-
// filterOperator
|
|
79
|
-
// filterOperator
|
|
80
|
-
// filterOperator
|
|
81
|
-
// filterOperator
|
|
82
|
-
// filterOperator
|
|
77
|
+
// 'filterOperator=': '=',
|
|
78
|
+
// 'filterOperator!=': '!=',
|
|
79
|
+
// 'filterOperator>': '>',
|
|
80
|
+
// 'filterOperator>=': '>=',
|
|
81
|
+
// 'filterOperator<': '<',
|
|
82
|
+
// 'filterOperator<=': '<=',
|
|
83
83
|
|
|
84
84
|
// Header filter operators text
|
|
85
85
|
// headerFilterOperatorContains: 'Contains',
|
|
@@ -95,12 +95,12 @@ const beBYGrid = {
|
|
|
95
95
|
// headerFilterOperatorIsEmpty: 'Is empty',
|
|
96
96
|
// headerFilterOperatorIsNotEmpty: 'Is not empty',
|
|
97
97
|
// headerFilterOperatorIsAnyOf: 'Is any of',
|
|
98
|
-
// headerFilterOperator
|
|
99
|
-
// headerFilterOperator
|
|
100
|
-
// headerFilterOperator
|
|
101
|
-
// headerFilterOperator
|
|
102
|
-
// headerFilterOperator
|
|
103
|
-
// headerFilterOperator
|
|
98
|
+
// 'headerFilterOperator=': 'Equals',
|
|
99
|
+
// 'headerFilterOperator!=': 'Not equals',
|
|
100
|
+
// 'headerFilterOperator>': 'Greater than',
|
|
101
|
+
// 'headerFilterOperator>=': 'Greater than or equal to',
|
|
102
|
+
// 'headerFilterOperator<': 'Less than',
|
|
103
|
+
// 'headerFilterOperator<=': 'Less than or equal to',
|
|
104
104
|
|
|
105
105
|
// Filter values text
|
|
106
106
|
filterValueAny: 'усякі',
|
package/modern/locales/bgBG.js
CHANGED
|
@@ -60,12 +60,12 @@ const bgBGGrid = {
|
|
|
60
60
|
filterOperatorIsEmpty: 'е празен',
|
|
61
61
|
filterOperatorIsNotEmpty: 'не е празен',
|
|
62
62
|
filterOperatorIsAnyOf: 'е някой от',
|
|
63
|
-
// filterOperator
|
|
64
|
-
// filterOperator
|
|
65
|
-
// filterOperator
|
|
66
|
-
// filterOperator
|
|
67
|
-
// filterOperator
|
|
68
|
-
// filterOperator
|
|
63
|
+
// 'filterOperator=': '=',
|
|
64
|
+
// 'filterOperator!=': '!=',
|
|
65
|
+
// 'filterOperator>': '>',
|
|
66
|
+
// 'filterOperator>=': '>=',
|
|
67
|
+
// 'filterOperator<': '<',
|
|
68
|
+
// 'filterOperator<=': '<=',
|
|
69
69
|
|
|
70
70
|
// Header filter operators text
|
|
71
71
|
// headerFilterOperatorContains: 'Contains',
|
|
@@ -81,12 +81,12 @@ const bgBGGrid = {
|
|
|
81
81
|
// headerFilterOperatorIsEmpty: 'Is empty',
|
|
82
82
|
// headerFilterOperatorIsNotEmpty: 'Is not empty',
|
|
83
83
|
// headerFilterOperatorIsAnyOf: 'Is any of',
|
|
84
|
-
// headerFilterOperator
|
|
85
|
-
// headerFilterOperator
|
|
86
|
-
// headerFilterOperator
|
|
87
|
-
// headerFilterOperator
|
|
88
|
-
// headerFilterOperator
|
|
89
|
-
// headerFilterOperator
|
|
84
|
+
// 'headerFilterOperator=': 'Equals',
|
|
85
|
+
// 'headerFilterOperator!=': 'Not equals',
|
|
86
|
+
// 'headerFilterOperator>': 'Greater than',
|
|
87
|
+
// 'headerFilterOperator>=': 'Greater than or equal to',
|
|
88
|
+
// 'headerFilterOperator<': 'Less than',
|
|
89
|
+
// 'headerFilterOperator<=': 'Less than or equal to',
|
|
90
90
|
|
|
91
91
|
// Filter values text
|
|
92
92
|
filterValueAny: 'всякакви',
|
package/modern/locales/csCZ.js
CHANGED
|
@@ -68,34 +68,32 @@ const csCZGrid = {
|
|
|
68
68
|
filterOperatorIsEmpty: 'je prázdný',
|
|
69
69
|
filterOperatorIsNotEmpty: 'není prázdný',
|
|
70
70
|
filterOperatorIsAnyOf: 'je jeden z',
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
71
|
+
'filterOperator=': '=',
|
|
72
|
+
'filterOperator!=': '!=',
|
|
73
|
+
'filterOperator>': '>',
|
|
74
|
+
'filterOperator>=': '>=',
|
|
75
|
+
'filterOperator<': '<',
|
|
76
|
+
'filterOperator<=': '<=',
|
|
78
77
|
// Header filter operators text
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
78
|
+
headerFilterOperatorContains: 'Obsahuje',
|
|
79
|
+
headerFilterOperatorEquals: 'Rovná se',
|
|
80
|
+
headerFilterOperatorStartsWith: 'Začíná na',
|
|
81
|
+
headerFilterOperatorEndsWith: 'Končí na',
|
|
82
|
+
headerFilterOperatorIs: 'Je',
|
|
83
|
+
headerFilterOperatorNot: 'Není',
|
|
84
|
+
headerFilterOperatorAfter: 'Je po',
|
|
85
|
+
headerFilterOperatorOnOrAfter: 'Je po včetně',
|
|
86
|
+
headerFilterOperatorBefore: 'Je před',
|
|
87
|
+
headerFilterOperatorOnOrBefore: 'Je před včetně',
|
|
88
|
+
headerFilterOperatorIsEmpty: 'Je prázdný',
|
|
89
|
+
headerFilterOperatorIsNotEmpty: 'Není prázdný',
|
|
90
|
+
headerFilterOperatorIsAnyOf: 'Je jeden z',
|
|
91
|
+
'headerFilterOperator=': 'Rovná se',
|
|
92
|
+
'headerFilterOperator!=': 'Nerovná se',
|
|
93
|
+
'headerFilterOperator>': 'Větší než',
|
|
94
|
+
'headerFilterOperator>=': 'Větší než nebo rovno',
|
|
95
|
+
'headerFilterOperator<': 'Menší než',
|
|
96
|
+
'headerFilterOperator<=': 'Menší než nebo rovno',
|
|
99
97
|
// Filter values text
|
|
100
98
|
filterValueAny: 'jakýkoliv',
|
|
101
99
|
filterValueTrue: 'ano',
|
package/modern/locales/daDK.js
CHANGED
|
@@ -60,12 +60,12 @@ const daDKGrid = {
|
|
|
60
60
|
filterOperatorIsEmpty: 'Indeholder ikke data',
|
|
61
61
|
filterOperatorIsNotEmpty: 'Indeholder data',
|
|
62
62
|
filterOperatorIsAnyOf: 'indeholder en af',
|
|
63
|
-
// filterOperator
|
|
64
|
-
// filterOperator
|
|
65
|
-
// filterOperator
|
|
66
|
-
// filterOperator
|
|
67
|
-
// filterOperator
|
|
68
|
-
// filterOperator
|
|
63
|
+
// 'filterOperator=': '=',
|
|
64
|
+
// 'filterOperator!=': '!=',
|
|
65
|
+
// 'filterOperator>': '>',
|
|
66
|
+
// 'filterOperator>=': '>=',
|
|
67
|
+
// 'filterOperator<': '<',
|
|
68
|
+
// 'filterOperator<=': '<=',
|
|
69
69
|
|
|
70
70
|
// Header filter operators text
|
|
71
71
|
// headerFilterOperatorContains: 'Contains',
|
|
@@ -81,12 +81,12 @@ const daDKGrid = {
|
|
|
81
81
|
// headerFilterOperatorIsEmpty: 'Is empty',
|
|
82
82
|
// headerFilterOperatorIsNotEmpty: 'Is not empty',
|
|
83
83
|
// headerFilterOperatorIsAnyOf: 'Is any of',
|
|
84
|
-
// headerFilterOperator
|
|
85
|
-
// headerFilterOperator
|
|
86
|
-
// headerFilterOperator
|
|
87
|
-
// headerFilterOperator
|
|
88
|
-
// headerFilterOperator
|
|
89
|
-
// headerFilterOperator
|
|
84
|
+
// 'headerFilterOperator=': 'Equals',
|
|
85
|
+
// 'headerFilterOperator!=': 'Not equals',
|
|
86
|
+
// 'headerFilterOperator>': 'Greater than',
|
|
87
|
+
// 'headerFilterOperator>=': 'Greater than or equal to',
|
|
88
|
+
// 'headerFilterOperator<': 'Less than',
|
|
89
|
+
// 'headerFilterOperator<=': 'Less than or equal to',
|
|
90
90
|
|
|
91
91
|
// Filter values text
|
|
92
92
|
filterValueAny: 'hvilken som helst',
|
package/modern/locales/deDE.js
CHANGED
|
@@ -60,34 +60,32 @@ const deDEGrid = {
|
|
|
60
60
|
filterOperatorIsEmpty: 'ist leer',
|
|
61
61
|
filterOperatorIsNotEmpty: 'ist nicht leer',
|
|
62
62
|
filterOperatorIsAnyOf: 'ist einer der Werte',
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
'filterOperator=': '=',
|
|
64
|
+
'filterOperator!=': '!=',
|
|
65
|
+
'filterOperator>': '>',
|
|
66
|
+
'filterOperator>=': '>=',
|
|
67
|
+
'filterOperator<': '<',
|
|
68
|
+
'filterOperator<=': '<=',
|
|
70
69
|
// Header filter operators text
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
70
|
+
headerFilterOperatorContains: 'Enthält',
|
|
71
|
+
headerFilterOperatorEquals: 'Gleich',
|
|
72
|
+
headerFilterOperatorStartsWith: 'Beginnt mit',
|
|
73
|
+
headerFilterOperatorEndsWith: 'Endet mit',
|
|
74
|
+
headerFilterOperatorIs: 'Ist',
|
|
75
|
+
headerFilterOperatorNot: 'Ist nicht',
|
|
76
|
+
headerFilterOperatorAfter: 'Ist nach',
|
|
77
|
+
headerFilterOperatorOnOrAfter: 'Ist am oder nach',
|
|
78
|
+
headerFilterOperatorBefore: 'Ist vor',
|
|
79
|
+
headerFilterOperatorOnOrBefore: 'Ist am oder vor',
|
|
80
|
+
headerFilterOperatorIsEmpty: 'Ist leer',
|
|
81
|
+
headerFilterOperatorIsNotEmpty: 'Ist nicht leer',
|
|
82
|
+
headerFilterOperatorIsAnyOf: 'Ist eines von',
|
|
83
|
+
'headerFilterOperator=': 'Gleich',
|
|
84
|
+
'headerFilterOperator!=': 'Ungleich',
|
|
85
|
+
'headerFilterOperator>': 'Größer als',
|
|
86
|
+
'headerFilterOperator>=': 'Größer als oder gleich',
|
|
87
|
+
'headerFilterOperator<': 'Kleiner als',
|
|
88
|
+
'headerFilterOperator<=': 'Kleiner als oder gleich',
|
|
91
89
|
// Filter values text
|
|
92
90
|
filterValueAny: 'Beliebig',
|
|
93
91
|
filterValueTrue: 'Ja',
|
package/modern/locales/elGR.js
CHANGED
|
@@ -61,12 +61,12 @@ const elGRGrid = {
|
|
|
61
61
|
filterOperatorIsEmpty: 'είναι κενό',
|
|
62
62
|
filterOperatorIsNotEmpty: 'δεν είναι κενό',
|
|
63
63
|
// filterOperatorIsAnyOf: 'is any of',
|
|
64
|
-
// filterOperator
|
|
65
|
-
// filterOperator
|
|
66
|
-
// filterOperator
|
|
67
|
-
// filterOperator
|
|
68
|
-
// filterOperator
|
|
69
|
-
// filterOperator
|
|
64
|
+
// 'filterOperator=': '=',
|
|
65
|
+
// 'filterOperator!=': '!=',
|
|
66
|
+
// 'filterOperator>': '>',
|
|
67
|
+
// 'filterOperator>=': '>=',
|
|
68
|
+
// 'filterOperator<': '<',
|
|
69
|
+
// 'filterOperator<=': '<=',
|
|
70
70
|
|
|
71
71
|
// Header filter operators text
|
|
72
72
|
// headerFilterOperatorContains: 'Contains',
|
|
@@ -82,12 +82,12 @@ const elGRGrid = {
|
|
|
82
82
|
// headerFilterOperatorIsEmpty: 'Is empty',
|
|
83
83
|
// headerFilterOperatorIsNotEmpty: 'Is not empty',
|
|
84
84
|
// headerFilterOperatorIsAnyOf: 'Is any of',
|
|
85
|
-
// headerFilterOperator
|
|
86
|
-
// headerFilterOperator
|
|
87
|
-
// headerFilterOperator
|
|
88
|
-
// headerFilterOperator
|
|
89
|
-
// headerFilterOperator
|
|
90
|
-
// headerFilterOperator
|
|
85
|
+
// 'headerFilterOperator=': 'Equals',
|
|
86
|
+
// 'headerFilterOperator!=': 'Not equals',
|
|
87
|
+
// 'headerFilterOperator>': 'Greater than',
|
|
88
|
+
// 'headerFilterOperator>=': 'Greater than or equal to',
|
|
89
|
+
// 'headerFilterOperator<': 'Less than',
|
|
90
|
+
// 'headerFilterOperator<=': 'Less than or equal to',
|
|
91
91
|
|
|
92
92
|
// Filter values text
|
|
93
93
|
// filterValueAny: 'any',
|
package/modern/locales/esES.js
CHANGED
|
@@ -60,12 +60,12 @@ const esESGrid = {
|
|
|
60
60
|
filterOperatorIsEmpty: 'está vacío',
|
|
61
61
|
filterOperatorIsNotEmpty: 'no esta vacío',
|
|
62
62
|
filterOperatorIsAnyOf: 'es cualquiera de',
|
|
63
|
-
// filterOperator
|
|
64
|
-
// filterOperator
|
|
65
|
-
// filterOperator
|
|
66
|
-
// filterOperator
|
|
67
|
-
// filterOperator
|
|
68
|
-
// filterOperator
|
|
63
|
+
// 'filterOperator=': '=',
|
|
64
|
+
// 'filterOperator!=': '!=',
|
|
65
|
+
// 'filterOperator>': '>',
|
|
66
|
+
// 'filterOperator>=': '>=',
|
|
67
|
+
// 'filterOperator<': '<',
|
|
68
|
+
// 'filterOperator<=': '<=',
|
|
69
69
|
|
|
70
70
|
// Header filter operators text
|
|
71
71
|
// headerFilterOperatorContains: 'Contains',
|
|
@@ -81,12 +81,12 @@ const esESGrid = {
|
|
|
81
81
|
// headerFilterOperatorIsEmpty: 'Is empty',
|
|
82
82
|
// headerFilterOperatorIsNotEmpty: 'Is not empty',
|
|
83
83
|
// headerFilterOperatorIsAnyOf: 'Is any of',
|
|
84
|
-
// headerFilterOperator
|
|
85
|
-
// headerFilterOperator
|
|
86
|
-
// headerFilterOperator
|
|
87
|
-
// headerFilterOperator
|
|
88
|
-
// headerFilterOperator
|
|
89
|
-
// headerFilterOperator
|
|
84
|
+
// 'headerFilterOperator=': 'Equals',
|
|
85
|
+
// 'headerFilterOperator!=': 'Not equals',
|
|
86
|
+
// 'headerFilterOperator>': 'Greater than',
|
|
87
|
+
// 'headerFilterOperator>=': 'Greater than or equal to',
|
|
88
|
+
// 'headerFilterOperator<': 'Less than',
|
|
89
|
+
// 'headerFilterOperator<=': 'Less than or equal to',
|
|
90
90
|
|
|
91
91
|
// Filter values text
|
|
92
92
|
filterValueAny: 'cualquiera',
|