@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,6 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import * as React from 'react';
|
|
4
|
+
import { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';
|
|
4
5
|
import { useGridApiEventHandler } from '../../utils/useGridApiEventHandler';
|
|
5
6
|
import { useGridApiMethod } from '../../utils/useGridApiMethod';
|
|
6
7
|
import { useGridLogger } from '../../utils/useGridLogger';
|
|
@@ -21,11 +22,21 @@ export var filterStateInitializer = function filterStateInitializer(state, props
|
|
|
21
22
|
return _extends({}, state, {
|
|
22
23
|
filter: {
|
|
23
24
|
filterModel: sanitizeFilterModel(filterModel, props.disableMultipleColumnsFiltering, apiRef),
|
|
24
|
-
visibleRowsLookup: {},
|
|
25
25
|
filteredDescendantCountLookup: {}
|
|
26
|
-
}
|
|
26
|
+
},
|
|
27
|
+
visibleRowsLookup: {}
|
|
27
28
|
});
|
|
28
29
|
};
|
|
30
|
+
var getVisibleRowsLookup = function getVisibleRowsLookup(params) {
|
|
31
|
+
// For flat tree, the `visibleRowsLookup` and the `filteredRowsLookup` are equals since no row is collapsed.
|
|
32
|
+
return params.filteredRowsLookup;
|
|
33
|
+
};
|
|
34
|
+
function getVisibleRowsLookupState(apiRef, state) {
|
|
35
|
+
return apiRef.current.applyStrategyProcessor('visibleRowsLookupCreation', {
|
|
36
|
+
tree: state.rows.tree,
|
|
37
|
+
filteredRowsLookup: state.filter.filteredRowsLookup
|
|
38
|
+
});
|
|
39
|
+
}
|
|
29
40
|
|
|
30
41
|
/**
|
|
31
42
|
* @requires useGridColumns (method, event)
|
|
@@ -50,9 +61,13 @@ export var useGridFilter = function useGridFilter(apiRef, props) {
|
|
|
50
61
|
isRowMatchingFilters: isRowMatchingFilters,
|
|
51
62
|
filterModel: filterModel != null ? filterModel : getDefaultGridFilterModel()
|
|
52
63
|
});
|
|
53
|
-
|
|
64
|
+
var newState = _extends({}, state, {
|
|
54
65
|
filter: _extends({}, state.filter, filteringResult)
|
|
55
66
|
});
|
|
67
|
+
var visibleRowsLookupState = getVisibleRowsLookupState(apiRef, newState);
|
|
68
|
+
return _extends({}, newState, {
|
|
69
|
+
visibleRowsLookup: visibleRowsLookupState
|
|
70
|
+
});
|
|
56
71
|
});
|
|
57
72
|
apiRef.current.publishEvent('filteredRowsSet');
|
|
58
73
|
}, [props.filterMode, apiRef]);
|
|
@@ -114,7 +129,7 @@ export var useGridFilter = function useGridFilter(apiRef, props) {
|
|
|
114
129
|
items: items
|
|
115
130
|
}), 'deleteFilterItem');
|
|
116
131
|
}, [apiRef]);
|
|
117
|
-
var showFilterPanel = React.useCallback(function (targetColumnField) {
|
|
132
|
+
var showFilterPanel = React.useCallback(function (targetColumnField, panelId, labelId) {
|
|
118
133
|
logger.debug('Displaying filter panel');
|
|
119
134
|
if (targetColumnField) {
|
|
120
135
|
var filterModel = gridFilterModelSelector(apiRef);
|
|
@@ -164,7 +179,7 @@ export var useGridFilter = function useGridFilter(apiRef, props) {
|
|
|
164
179
|
items: newFilterItems
|
|
165
180
|
}));
|
|
166
181
|
}
|
|
167
|
-
apiRef.current.showPreferences(GridPreferencePanelsValue.filters);
|
|
182
|
+
apiRef.current.showPreferences(GridPreferencePanelsValue.filters, panelId, labelId);
|
|
168
183
|
}, [apiRef, logger, props.disableMultipleColumnsFiltering]);
|
|
169
184
|
var hideFilterPanel = React.useCallback(function () {
|
|
170
185
|
logger.debug('Hiding filter panel');
|
|
@@ -272,13 +287,10 @@ export var useGridFilter = function useGridFilter(apiRef, props) {
|
|
|
272
287
|
}
|
|
273
288
|
return {
|
|
274
289
|
filteredRowsLookup: filteredRowsLookup,
|
|
275
|
-
// For flat tree, the `visibleRowsLookup` and the `filteredRowsLookup` are equals since no row is collapsed.
|
|
276
|
-
visibleRowsLookup: filteredRowsLookup,
|
|
277
290
|
filteredDescendantCountLookup: {}
|
|
278
291
|
};
|
|
279
292
|
}
|
|
280
293
|
return {
|
|
281
|
-
visibleRowsLookup: {},
|
|
282
294
|
filteredRowsLookup: {},
|
|
283
295
|
filteredDescendantCountLookup: {}
|
|
284
296
|
};
|
|
@@ -288,6 +300,7 @@ export var useGridFilter = function useGridFilter(apiRef, props) {
|
|
|
288
300
|
useGridRegisterPipeProcessor(apiRef, 'restoreState', stateRestorePreProcessing);
|
|
289
301
|
useGridRegisterPipeProcessor(apiRef, 'preferencePanel', preferencePanelPreProcessing);
|
|
290
302
|
useGridRegisterStrategyProcessor(apiRef, GRID_DEFAULT_STRATEGY, 'filtering', flatFilteringMethod);
|
|
303
|
+
useGridRegisterStrategyProcessor(apiRef, GRID_DEFAULT_STRATEGY, 'visibleRowsLookupCreation', getVisibleRowsLookup);
|
|
291
304
|
|
|
292
305
|
/**
|
|
293
306
|
* EVENTS
|
|
@@ -310,13 +323,21 @@ export var useGridFilter = function useGridFilter(apiRef, props) {
|
|
|
310
323
|
apiRef.current.unstable_applyFilters();
|
|
311
324
|
}
|
|
312
325
|
}, [apiRef]);
|
|
326
|
+
var updateVisibleRowsLookupState = React.useCallback(function () {
|
|
327
|
+
apiRef.current.setState(function (state) {
|
|
328
|
+
return _extends({}, state, {
|
|
329
|
+
visibleRowsLookup: getVisibleRowsLookupState(apiRef, state)
|
|
330
|
+
});
|
|
331
|
+
});
|
|
332
|
+
apiRef.current.forceUpdate();
|
|
333
|
+
}, [apiRef]);
|
|
313
334
|
|
|
314
335
|
// Do not call `apiRef.current.forceUpdate` to avoid re-render before updating the sorted rows.
|
|
315
336
|
// Otherwise, the state is not consistent during the render
|
|
316
337
|
useGridApiEventHandler(apiRef, 'rowsSet', updateFilteredRows);
|
|
317
|
-
useGridApiEventHandler(apiRef, 'rowExpansionChange', apiRef.current.unstable_applyFilters);
|
|
318
338
|
useGridApiEventHandler(apiRef, 'columnsChange', handleColumnsChange);
|
|
319
339
|
useGridApiEventHandler(apiRef, 'activeStrategyProcessorChange', handleStrategyProcessorChange);
|
|
340
|
+
useGridApiEventHandler(apiRef, 'rowExpansionChange', updateVisibleRowsLookupState);
|
|
320
341
|
|
|
321
342
|
/**
|
|
322
343
|
* 1ST RENDER
|
|
@@ -328,7 +349,7 @@ export var useGridFilter = function useGridFilter(apiRef, props) {
|
|
|
328
349
|
/**
|
|
329
350
|
* EFFECTS
|
|
330
351
|
*/
|
|
331
|
-
|
|
352
|
+
useEnhancedEffect(function () {
|
|
332
353
|
if (props.filterModel !== undefined) {
|
|
333
354
|
apiRef.current.setFilterModel(props.filterModel);
|
|
334
355
|
}
|
|
@@ -362,6 +362,7 @@ export var useGridFocus = function useGridFocus(apiRef, props) {
|
|
|
362
362
|
};
|
|
363
363
|
}, [apiRef, handleDocumentClick]);
|
|
364
364
|
useGridApiEventHandler(apiRef, 'columnHeaderBlur', handleBlur);
|
|
365
|
+
useGridApiEventHandler(apiRef, 'headerFilterBlur', handleBlur);
|
|
365
366
|
useGridApiEventHandler(apiRef, 'cellDoubleClick', handleCellDoubleClick);
|
|
366
367
|
useGridApiEventHandler(apiRef, 'cellMouseDown', handleCellMouseDown);
|
|
367
368
|
useGridApiEventHandler(apiRef, 'cellKeyDown', handleCellKeyDown);
|
|
@@ -56,14 +56,16 @@ export var useGridPreferencesPanel = function useGridPreferencesPanel(apiRef, pr
|
|
|
56
56
|
var hidePreferencesDelayed = React.useCallback(function () {
|
|
57
57
|
hideTimeout.current = setTimeout(hidePreferences, 100);
|
|
58
58
|
}, [hidePreferences]);
|
|
59
|
-
var showPreferences = React.useCallback(function (newValue) {
|
|
59
|
+
var showPreferences = React.useCallback(function (newValue, panelId, labelId) {
|
|
60
60
|
logger.debug('Opening Preferences Panel');
|
|
61
61
|
doNotHidePanel();
|
|
62
62
|
apiRef.current.setState(function (state) {
|
|
63
63
|
return _extends({}, state, {
|
|
64
64
|
preferencePanel: _extends({}, state.preferencePanel, {
|
|
65
65
|
open: true,
|
|
66
|
-
openedPanelValue: newValue
|
|
66
|
+
openedPanelValue: newValue,
|
|
67
|
+
panelId: panelId,
|
|
68
|
+
labelId: labelId
|
|
67
69
|
})
|
|
68
70
|
});
|
|
69
71
|
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
2
|
import * as React from 'react';
|
|
4
3
|
import { unstable_debounce as debounce, unstable_capitalize as capitalize } from '@mui/utils';
|
|
@@ -42,7 +41,7 @@ export var useGridRowsMeta = function useGridRowsMeta(apiRef, props) {
|
|
|
42
41
|
var getRowHeightProp = props.getRowHeight,
|
|
43
42
|
getRowSpacing = props.getRowSpacing,
|
|
44
43
|
getEstimatedRowHeight = props.getEstimatedRowHeight;
|
|
45
|
-
var rowsHeightLookup = React.useRef(
|
|
44
|
+
var rowsHeightLookup = React.useRef(Object.create(null));
|
|
46
45
|
|
|
47
46
|
// Inspired by https://github.com/bvaughn/react-virtualized/blob/master/source/Grid/utils/CellSizeAndPositionManager.js
|
|
48
47
|
var lastMeasuredRowIndex = React.useRef(-1);
|
|
@@ -105,20 +104,14 @@ export var useGridRowsMeta = function useGridRowsMeta(apiRef, props) {
|
|
|
105
104
|
} else {
|
|
106
105
|
rowsHeightLookup.current[row.id].needsFirstMeasurement = false;
|
|
107
106
|
}
|
|
108
|
-
var
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
acc[key] = size;
|
|
107
|
+
var initialHeights = {};
|
|
108
|
+
/* eslint-disable-next-line no-restricted-syntax */
|
|
109
|
+
for (var _key in sizes) {
|
|
110
|
+
if (/^base[A-Z]/.test(_key)) {
|
|
111
|
+
initialHeights[_key] = sizes[_key];
|
|
114
112
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
// We use an object to make simple to check if a height is already added or not
|
|
119
|
-
var initialHeights = _extends({}, existingBaseSizes, {
|
|
120
|
-
baseCenter: baseRowHeight
|
|
121
|
-
});
|
|
113
|
+
}
|
|
114
|
+
initialHeights.baseCenter = baseRowHeight;
|
|
122
115
|
if (getRowSpacing) {
|
|
123
116
|
var _spacing$top, _spacing$bottom;
|
|
124
117
|
var indexRelativeToCurrentPage = apiRef.current.getRowIndexRelativeToVisibleRows(row.id);
|
|
@@ -140,16 +133,15 @@ export var useGridRowsMeta = function useGridRowsMeta(apiRef, props) {
|
|
|
140
133
|
var maximumBaseSize = 0;
|
|
141
134
|
var otherSizes = 0;
|
|
142
135
|
var processedSizes = calculateRowProcessedSizes(row);
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
if (/^base[A-Z]/.test(size)) {
|
|
136
|
+
/* eslint-disable-next-line no-restricted-syntax, guard-for-in */
|
|
137
|
+
for (var _key2 in processedSizes) {
|
|
138
|
+
var value = processedSizes[_key2];
|
|
139
|
+
if (/^base[A-Z]/.test(_key2)) {
|
|
148
140
|
maximumBaseSize = value > maximumBaseSize ? value : maximumBaseSize;
|
|
149
141
|
} else {
|
|
150
142
|
otherSizes += value;
|
|
151
143
|
}
|
|
152
|
-
}
|
|
144
|
+
}
|
|
153
145
|
return acc + maximumBaseSize + otherSizes;
|
|
154
146
|
}, 0);
|
|
155
147
|
pinnedRows == null ? void 0 : (_pinnedRows$top = pinnedRows.top) == null ? void 0 : _pinnedRows$top.forEach(function (row) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import * as React from 'react';
|
|
4
|
+
import { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';
|
|
4
5
|
import { isEnterKey } from '../../../utils/keyboardUtils';
|
|
5
6
|
import { useGridApiEventHandler } from '../../utils/useGridApiEventHandler';
|
|
6
7
|
import { useGridApiMethod } from '../../utils/useGridApiMethod';
|
|
@@ -261,7 +262,7 @@ export var useGridSorting = function useGridSorting(apiRef, props) {
|
|
|
261
262
|
/**
|
|
262
263
|
* EFFECTS
|
|
263
264
|
*/
|
|
264
|
-
|
|
265
|
+
useEnhancedEffect(function () {
|
|
265
266
|
if (props.sortModel !== undefined) {
|
|
266
267
|
apiRef.current.setSortModel(props.sortModel);
|
|
267
268
|
}
|
|
@@ -99,7 +99,7 @@ export var useGridVirtualScroller = function useGridVirtualScroller(props) {
|
|
|
99
99
|
containerDimensions = _React$useState4[0],
|
|
100
100
|
setContainerDimensions = _React$useState4[1];
|
|
101
101
|
var prevTotalWidth = React.useRef(columnsTotalWidth);
|
|
102
|
-
var rowStyleCache = React.useRef(
|
|
102
|
+
var rowStyleCache = React.useRef(Object.create(null));
|
|
103
103
|
var prevGetRowProps = React.useRef();
|
|
104
104
|
var prevRootRowStyle = React.useRef();
|
|
105
105
|
var getRenderedColumnsRef = React.useRef(defaultMemoize(function (columns, firstColumnToRender, lastColumnToRender) {
|
|
@@ -401,7 +401,7 @@ export var useGridVirtualScroller = function useGridVirtualScroller(props) {
|
|
|
401
401
|
rootRowProps = _objectWithoutProperties(_ref4, _excluded);
|
|
402
402
|
var invalidatesCachedRowStyle = prevGetRowProps.current !== getRowProps || prevRootRowStyle.current !== rootRowStyle;
|
|
403
403
|
if (invalidatesCachedRowStyle) {
|
|
404
|
-
rowStyleCache.current =
|
|
404
|
+
rowStyleCache.current = Object.create(null);
|
|
405
405
|
}
|
|
406
406
|
var rows = [];
|
|
407
407
|
for (var _i = 0; _i < renderedRows.length; _i += 1) {
|
package/legacy/index.js
CHANGED
|
@@ -1,11 +1,33 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
var _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
|
+
var _props$forwardedProps;
|
|
7
|
+
var keys = Object.keys(props);
|
|
8
|
+
if (!keys.some(function (key) {
|
|
9
|
+
return key.startsWith('aria-') || key.startsWith('data-');
|
|
10
|
+
})) {
|
|
11
|
+
return props;
|
|
12
|
+
}
|
|
13
|
+
var newProps = {};
|
|
14
|
+
var forwardedProps = (_props$forwardedProps = props.forwardedProps) != null ? _props$forwardedProps : {};
|
|
15
|
+
for (var i = 0; i < keys.length; i += 1) {
|
|
16
|
+
var _key = keys[i];
|
|
17
|
+
if (_key.startsWith('aria-') || _key.startsWith('data-')) {
|
|
18
|
+
forwardedProps[_key] = props[_key];
|
|
19
|
+
} else {
|
|
20
|
+
newProps[_key] = props[_key];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
newProps.forwardedProps = forwardedProps;
|
|
24
|
+
return newProps;
|
|
25
|
+
}
|
|
4
26
|
export function useProps(allProps) {
|
|
5
27
|
return React.useMemo(function () {
|
|
6
28
|
var components = allProps.components,
|
|
7
29
|
componentsProps = allProps.componentsProps,
|
|
8
30
|
themedProps = _objectWithoutProperties(allProps, _excluded);
|
|
9
|
-
return [components, componentsProps, themedProps];
|
|
31
|
+
return [components, componentsProps, groupForwardedProps(themedProps)];
|
|
10
32
|
}, [allProps]);
|
|
11
33
|
}
|
package/legacy/locales/arSD.js
CHANGED
|
@@ -62,12 +62,12 @@ var arSDGrid = {
|
|
|
62
62
|
filterOperatorIsEmpty: 'خالي',
|
|
63
63
|
filterOperatorIsNotEmpty: 'غير خالي',
|
|
64
64
|
filterOperatorIsAnyOf: 'أي من',
|
|
65
|
-
// filterOperator
|
|
66
|
-
// filterOperator
|
|
67
|
-
// filterOperator
|
|
68
|
-
// filterOperator
|
|
69
|
-
// filterOperator
|
|
70
|
-
// filterOperator
|
|
65
|
+
// 'filterOperator=': '=',
|
|
66
|
+
// 'filterOperator!=': '!=',
|
|
67
|
+
// 'filterOperator>': '>',
|
|
68
|
+
// 'filterOperator>=': '>=',
|
|
69
|
+
// 'filterOperator<': '<',
|
|
70
|
+
// 'filterOperator<=': '<=',
|
|
71
71
|
|
|
72
72
|
// Header filter operators text
|
|
73
73
|
// headerFilterOperatorContains: 'Contains',
|
|
@@ -83,12 +83,12 @@ var arSDGrid = {
|
|
|
83
83
|
// headerFilterOperatorIsEmpty: 'Is empty',
|
|
84
84
|
// headerFilterOperatorIsNotEmpty: 'Is not empty',
|
|
85
85
|
// headerFilterOperatorIsAnyOf: 'Is any of',
|
|
86
|
-
// headerFilterOperator
|
|
87
|
-
// headerFilterOperator
|
|
88
|
-
// headerFilterOperator
|
|
89
|
-
// headerFilterOperator
|
|
90
|
-
// headerFilterOperator
|
|
91
|
-
// headerFilterOperator
|
|
86
|
+
// 'headerFilterOperator=': 'Equals',
|
|
87
|
+
// 'headerFilterOperator!=': 'Not equals',
|
|
88
|
+
// 'headerFilterOperator>': 'Greater than',
|
|
89
|
+
// 'headerFilterOperator>=': 'Greater than or equal to',
|
|
90
|
+
// 'headerFilterOperator<': 'Less than',
|
|
91
|
+
// 'headerFilterOperator<=': 'Less than or equal to',
|
|
92
92
|
|
|
93
93
|
// Filter values text
|
|
94
94
|
filterValueAny: 'أي',
|
package/legacy/locales/beBY.js
CHANGED
|
@@ -76,12 +76,12 @@ var beBYGrid = {
|
|
|
76
76
|
filterOperatorIsEmpty: 'пусты',
|
|
77
77
|
filterOperatorIsNotEmpty: 'не пусты',
|
|
78
78
|
filterOperatorIsAnyOf: 'усякі з',
|
|
79
|
-
// filterOperator
|
|
80
|
-
// filterOperator
|
|
81
|
-
// filterOperator
|
|
82
|
-
// filterOperator
|
|
83
|
-
// filterOperator
|
|
84
|
-
// filterOperator
|
|
79
|
+
// 'filterOperator=': '=',
|
|
80
|
+
// 'filterOperator!=': '!=',
|
|
81
|
+
// 'filterOperator>': '>',
|
|
82
|
+
// 'filterOperator>=': '>=',
|
|
83
|
+
// 'filterOperator<': '<',
|
|
84
|
+
// 'filterOperator<=': '<=',
|
|
85
85
|
|
|
86
86
|
// Header filter operators text
|
|
87
87
|
// headerFilterOperatorContains: 'Contains',
|
|
@@ -97,12 +97,12 @@ var beBYGrid = {
|
|
|
97
97
|
// headerFilterOperatorIsEmpty: 'Is empty',
|
|
98
98
|
// headerFilterOperatorIsNotEmpty: 'Is not empty',
|
|
99
99
|
// headerFilterOperatorIsAnyOf: 'Is any of',
|
|
100
|
-
// headerFilterOperator
|
|
101
|
-
// headerFilterOperator
|
|
102
|
-
// headerFilterOperator
|
|
103
|
-
// headerFilterOperator
|
|
104
|
-
// headerFilterOperator
|
|
105
|
-
// headerFilterOperator
|
|
100
|
+
// 'headerFilterOperator=': 'Equals',
|
|
101
|
+
// 'headerFilterOperator!=': 'Not equals',
|
|
102
|
+
// 'headerFilterOperator>': 'Greater than',
|
|
103
|
+
// 'headerFilterOperator>=': 'Greater than or equal to',
|
|
104
|
+
// 'headerFilterOperator<': 'Less than',
|
|
105
|
+
// 'headerFilterOperator<=': 'Less than or equal to',
|
|
106
106
|
|
|
107
107
|
// Filter values text
|
|
108
108
|
filterValueAny: 'усякі',
|
package/legacy/locales/bgBG.js
CHANGED
|
@@ -62,12 +62,12 @@ var bgBGGrid = {
|
|
|
62
62
|
filterOperatorIsEmpty: 'е празен',
|
|
63
63
|
filterOperatorIsNotEmpty: 'не е празен',
|
|
64
64
|
filterOperatorIsAnyOf: 'е някой от',
|
|
65
|
-
// filterOperator
|
|
66
|
-
// filterOperator
|
|
67
|
-
// filterOperator
|
|
68
|
-
// filterOperator
|
|
69
|
-
// filterOperator
|
|
70
|
-
// filterOperator
|
|
65
|
+
// 'filterOperator=': '=',
|
|
66
|
+
// 'filterOperator!=': '!=',
|
|
67
|
+
// 'filterOperator>': '>',
|
|
68
|
+
// 'filterOperator>=': '>=',
|
|
69
|
+
// 'filterOperator<': '<',
|
|
70
|
+
// 'filterOperator<=': '<=',
|
|
71
71
|
|
|
72
72
|
// Header filter operators text
|
|
73
73
|
// headerFilterOperatorContains: 'Contains',
|
|
@@ -83,12 +83,12 @@ var bgBGGrid = {
|
|
|
83
83
|
// headerFilterOperatorIsEmpty: 'Is empty',
|
|
84
84
|
// headerFilterOperatorIsNotEmpty: 'Is not empty',
|
|
85
85
|
// headerFilterOperatorIsAnyOf: 'Is any of',
|
|
86
|
-
// headerFilterOperator
|
|
87
|
-
// headerFilterOperator
|
|
88
|
-
// headerFilterOperator
|
|
89
|
-
// headerFilterOperator
|
|
90
|
-
// headerFilterOperator
|
|
91
|
-
// headerFilterOperator
|
|
86
|
+
// 'headerFilterOperator=': 'Equals',
|
|
87
|
+
// 'headerFilterOperator!=': 'Not equals',
|
|
88
|
+
// 'headerFilterOperator>': 'Greater than',
|
|
89
|
+
// 'headerFilterOperator>=': 'Greater than or equal to',
|
|
90
|
+
// 'headerFilterOperator<': 'Less than',
|
|
91
|
+
// 'headerFilterOperator<=': 'Less than or equal to',
|
|
92
92
|
|
|
93
93
|
// Filter values text
|
|
94
94
|
filterValueAny: 'всякакви',
|
package/legacy/locales/csCZ.js
CHANGED
|
@@ -68,34 +68,32 @@ var 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/legacy/locales/daDK.js
CHANGED
|
@@ -62,12 +62,12 @@ var daDKGrid = {
|
|
|
62
62
|
filterOperatorIsEmpty: 'Indeholder ikke data',
|
|
63
63
|
filterOperatorIsNotEmpty: 'Indeholder data',
|
|
64
64
|
filterOperatorIsAnyOf: 'indeholder en af',
|
|
65
|
-
// filterOperator
|
|
66
|
-
// filterOperator
|
|
67
|
-
// filterOperator
|
|
68
|
-
// filterOperator
|
|
69
|
-
// filterOperator
|
|
70
|
-
// filterOperator
|
|
65
|
+
// 'filterOperator=': '=',
|
|
66
|
+
// 'filterOperator!=': '!=',
|
|
67
|
+
// 'filterOperator>': '>',
|
|
68
|
+
// 'filterOperator>=': '>=',
|
|
69
|
+
// 'filterOperator<': '<',
|
|
70
|
+
// 'filterOperator<=': '<=',
|
|
71
71
|
|
|
72
72
|
// Header filter operators text
|
|
73
73
|
// headerFilterOperatorContains: 'Contains',
|
|
@@ -83,12 +83,12 @@ var daDKGrid = {
|
|
|
83
83
|
// headerFilterOperatorIsEmpty: 'Is empty',
|
|
84
84
|
// headerFilterOperatorIsNotEmpty: 'Is not empty',
|
|
85
85
|
// headerFilterOperatorIsAnyOf: 'Is any of',
|
|
86
|
-
// headerFilterOperator
|
|
87
|
-
// headerFilterOperator
|
|
88
|
-
// headerFilterOperator
|
|
89
|
-
// headerFilterOperator
|
|
90
|
-
// headerFilterOperator
|
|
91
|
-
// headerFilterOperator
|
|
86
|
+
// 'headerFilterOperator=': 'Equals',
|
|
87
|
+
// 'headerFilterOperator!=': 'Not equals',
|
|
88
|
+
// 'headerFilterOperator>': 'Greater than',
|
|
89
|
+
// 'headerFilterOperator>=': 'Greater than or equal to',
|
|
90
|
+
// 'headerFilterOperator<': 'Less than',
|
|
91
|
+
// 'headerFilterOperator<=': 'Less than or equal to',
|
|
92
92
|
|
|
93
93
|
// Filter values text
|
|
94
94
|
filterValueAny: 'hvilken som helst',
|
package/legacy/locales/deDE.js
CHANGED
|
@@ -62,34 +62,32 @@ var deDEGrid = {
|
|
|
62
62
|
filterOperatorIsEmpty: 'ist leer',
|
|
63
63
|
filterOperatorIsNotEmpty: 'ist nicht leer',
|
|
64
64
|
filterOperatorIsAnyOf: 'ist einer der Werte',
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
65
|
+
'filterOperator=': '=',
|
|
66
|
+
'filterOperator!=': '!=',
|
|
67
|
+
'filterOperator>': '>',
|
|
68
|
+
'filterOperator>=': '>=',
|
|
69
|
+
'filterOperator<': '<',
|
|
70
|
+
'filterOperator<=': '<=',
|
|
72
71
|
// Header filter operators text
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
72
|
+
headerFilterOperatorContains: 'Enthält',
|
|
73
|
+
headerFilterOperatorEquals: 'Gleich',
|
|
74
|
+
headerFilterOperatorStartsWith: 'Beginnt mit',
|
|
75
|
+
headerFilterOperatorEndsWith: 'Endet mit',
|
|
76
|
+
headerFilterOperatorIs: 'Ist',
|
|
77
|
+
headerFilterOperatorNot: 'Ist nicht',
|
|
78
|
+
headerFilterOperatorAfter: 'Ist nach',
|
|
79
|
+
headerFilterOperatorOnOrAfter: 'Ist am oder nach',
|
|
80
|
+
headerFilterOperatorBefore: 'Ist vor',
|
|
81
|
+
headerFilterOperatorOnOrBefore: 'Ist am oder vor',
|
|
82
|
+
headerFilterOperatorIsEmpty: 'Ist leer',
|
|
83
|
+
headerFilterOperatorIsNotEmpty: 'Ist nicht leer',
|
|
84
|
+
headerFilterOperatorIsAnyOf: 'Ist eines von',
|
|
85
|
+
'headerFilterOperator=': 'Gleich',
|
|
86
|
+
'headerFilterOperator!=': 'Ungleich',
|
|
87
|
+
'headerFilterOperator>': 'Größer als',
|
|
88
|
+
'headerFilterOperator>=': 'Größer als oder gleich',
|
|
89
|
+
'headerFilterOperator<': 'Kleiner als',
|
|
90
|
+
'headerFilterOperator<=': 'Kleiner als oder gleich',
|
|
93
91
|
// Filter values text
|
|
94
92
|
filterValueAny: 'Beliebig',
|
|
95
93
|
filterValueTrue: 'Ja',
|
package/legacy/locales/elGR.js
CHANGED
|
@@ -63,12 +63,12 @@ var elGRGrid = {
|
|
|
63
63
|
filterOperatorIsEmpty: 'είναι κενό',
|
|
64
64
|
filterOperatorIsNotEmpty: 'δεν είναι κενό',
|
|
65
65
|
// filterOperatorIsAnyOf: 'is any of',
|
|
66
|
-
// filterOperator
|
|
67
|
-
// filterOperator
|
|
68
|
-
// filterOperator
|
|
69
|
-
// filterOperator
|
|
70
|
-
// filterOperator
|
|
71
|
-
// filterOperator
|
|
66
|
+
// 'filterOperator=': '=',
|
|
67
|
+
// 'filterOperator!=': '!=',
|
|
68
|
+
// 'filterOperator>': '>',
|
|
69
|
+
// 'filterOperator>=': '>=',
|
|
70
|
+
// 'filterOperator<': '<',
|
|
71
|
+
// 'filterOperator<=': '<=',
|
|
72
72
|
|
|
73
73
|
// Header filter operators text
|
|
74
74
|
// headerFilterOperatorContains: 'Contains',
|
|
@@ -84,12 +84,12 @@ var elGRGrid = {
|
|
|
84
84
|
// headerFilterOperatorIsEmpty: 'Is empty',
|
|
85
85
|
// headerFilterOperatorIsNotEmpty: 'Is not empty',
|
|
86
86
|
// headerFilterOperatorIsAnyOf: 'Is any of',
|
|
87
|
-
// headerFilterOperator
|
|
88
|
-
// headerFilterOperator
|
|
89
|
-
// headerFilterOperator
|
|
90
|
-
// headerFilterOperator
|
|
91
|
-
// headerFilterOperator
|
|
92
|
-
// headerFilterOperator
|
|
87
|
+
// 'headerFilterOperator=': 'Equals',
|
|
88
|
+
// 'headerFilterOperator!=': 'Not equals',
|
|
89
|
+
// 'headerFilterOperator>': 'Greater than',
|
|
90
|
+
// 'headerFilterOperator>=': 'Greater than or equal to',
|
|
91
|
+
// 'headerFilterOperator<': 'Less than',
|
|
92
|
+
// 'headerFilterOperator<=': 'Less than or equal to',
|
|
93
93
|
|
|
94
94
|
// Filter values text
|
|
95
95
|
// filterValueAny: 'any',
|