@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
package/modern/locales/skSK.js
CHANGED
|
@@ -68,12 +68,12 @@ const skSKGrid = {
|
|
|
68
68
|
filterOperatorIsEmpty: 'je prázdny',
|
|
69
69
|
filterOperatorIsNotEmpty: 'nie je prázdny',
|
|
70
70
|
filterOperatorIsAnyOf: 'je jeden z',
|
|
71
|
-
// filterOperator
|
|
72
|
-
// filterOperator
|
|
73
|
-
// filterOperator
|
|
74
|
-
// filterOperator
|
|
75
|
-
// filterOperator
|
|
76
|
-
// filterOperator
|
|
71
|
+
// 'filterOperator=': '=',
|
|
72
|
+
// 'filterOperator!=': '!=',
|
|
73
|
+
// 'filterOperator>': '>',
|
|
74
|
+
// 'filterOperator>=': '>=',
|
|
75
|
+
// 'filterOperator<': '<',
|
|
76
|
+
// 'filterOperator<=': '<=',
|
|
77
77
|
|
|
78
78
|
// Header filter operators text
|
|
79
79
|
// headerFilterOperatorContains: 'Contains',
|
|
@@ -89,12 +89,12 @@ const skSKGrid = {
|
|
|
89
89
|
// headerFilterOperatorIsEmpty: 'Is empty',
|
|
90
90
|
// headerFilterOperatorIsNotEmpty: 'Is not empty',
|
|
91
91
|
// headerFilterOperatorIsAnyOf: 'Is any of',
|
|
92
|
-
// headerFilterOperator
|
|
93
|
-
// headerFilterOperator
|
|
94
|
-
// headerFilterOperator
|
|
95
|
-
// headerFilterOperator
|
|
96
|
-
// headerFilterOperator
|
|
97
|
-
// headerFilterOperator
|
|
92
|
+
// 'headerFilterOperator=': 'Equals',
|
|
93
|
+
// 'headerFilterOperator!=': 'Not equals',
|
|
94
|
+
// 'headerFilterOperator>': 'Greater than',
|
|
95
|
+
// 'headerFilterOperator>=': 'Greater than or equal to',
|
|
96
|
+
// 'headerFilterOperator<': 'Less than',
|
|
97
|
+
// 'headerFilterOperator<=': 'Less than or equal to',
|
|
98
98
|
|
|
99
99
|
// Filter values text
|
|
100
100
|
filterValueAny: 'akýkoľvek',
|
package/modern/locales/svSE.js
CHANGED
|
@@ -60,12 +60,12 @@ const svSEGrid = {
|
|
|
60
60
|
filterOperatorIsEmpty: 'är tom',
|
|
61
61
|
filterOperatorIsNotEmpty: 'är inte tom',
|
|
62
62
|
filterOperatorIsAnyOf: 'är någon av',
|
|
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 svSEGrid = {
|
|
|
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: 'något',
|
package/modern/locales/trTR.js
CHANGED
|
@@ -60,18 +60,17 @@ const trTRGrid = {
|
|
|
60
60
|
filterOperatorIsEmpty: 'boş',
|
|
61
61
|
filterOperatorIsNotEmpty: 'dolu',
|
|
62
62
|
filterOperatorIsAnyOf: 'herhangi biri',
|
|
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
|
-
|
|
70
|
+
headerFilterOperatorContains: 'Şunu içerir',
|
|
71
|
+
headerFilterOperatorEquals: 'Şuna eşittir',
|
|
72
|
+
headerFilterOperatorStartsWith: 'Şununla başlar',
|
|
73
|
+
headerFilterOperatorEndsWith: 'Şununla biter',
|
|
75
74
|
// headerFilterOperatorIs: 'Is',
|
|
76
75
|
// headerFilterOperatorNot: 'Is not',
|
|
77
76
|
// headerFilterOperatorAfter: 'Is after',
|
|
@@ -81,12 +80,12 @@ const trTRGrid = {
|
|
|
81
80
|
// headerFilterOperatorIsEmpty: 'Is empty',
|
|
82
81
|
// headerFilterOperatorIsNotEmpty: 'Is not empty',
|
|
83
82
|
// headerFilterOperatorIsAnyOf: 'Is any of',
|
|
84
|
-
// headerFilterOperator
|
|
85
|
-
// headerFilterOperator
|
|
86
|
-
// headerFilterOperator
|
|
87
|
-
// headerFilterOperator
|
|
88
|
-
// headerFilterOperator
|
|
89
|
-
// headerFilterOperator
|
|
83
|
+
// 'headerFilterOperator=': 'Equals',
|
|
84
|
+
// 'headerFilterOperator!=': 'Not equals',
|
|
85
|
+
// 'headerFilterOperator>': 'Greater than',
|
|
86
|
+
// 'headerFilterOperator>=': 'Greater than or equal to',
|
|
87
|
+
// 'headerFilterOperator<': 'Less than',
|
|
88
|
+
// 'headerFilterOperator<=': 'Less than or equal to',
|
|
90
89
|
|
|
91
90
|
// Filter values text
|
|
92
91
|
filterValueAny: 'herhangi',
|
|
@@ -96,9 +95,9 @@ const trTRGrid = {
|
|
|
96
95
|
columnMenuLabel: 'Menü',
|
|
97
96
|
columnMenuShowColumns: 'Sütunları göster',
|
|
98
97
|
columnMenuManageColumns: 'Sütunları yönet',
|
|
99
|
-
columnMenuFilter: 'Filtre
|
|
98
|
+
columnMenuFilter: 'Filtre Ekle',
|
|
100
99
|
columnMenuHideColumn: 'Gizle',
|
|
101
|
-
columnMenuUnsort: 'Sıralama',
|
|
100
|
+
columnMenuUnsort: 'Varsayılan Sıralama',
|
|
102
101
|
columnMenuSortAsc: 'Sırala - Artan',
|
|
103
102
|
columnMenuSortDesc: 'Sırala - Azalan',
|
|
104
103
|
// Column header text
|
package/modern/locales/ukUA.js
CHANGED
|
@@ -74,12 +74,12 @@ const ukUAGrid = {
|
|
|
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 ukUAGrid = {
|
|
|
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/urPK.js
CHANGED
|
@@ -60,12 +60,12 @@ const urPKGrid = {
|
|
|
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 urPKGrid = {
|
|
|
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/viVN.js
CHANGED
|
@@ -60,12 +60,12 @@ const viVNGrid = {
|
|
|
60
60
|
filterOperatorIsEmpty: 'Rỗng',
|
|
61
61
|
filterOperatorIsNotEmpty: 'Khác rỗng',
|
|
62
62
|
// filterOperatorIsAnyOf: 'is any of',
|
|
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 viVNGrid = {
|
|
|
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: 'bất kỳ giá trị nào',
|
package/modern/locales/zhCN.js
CHANGED
|
@@ -60,12 +60,12 @@ const zhCNGrid = {
|
|
|
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 zhCNGrid = {
|
|
|
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/zhTW.js
CHANGED
|
@@ -60,12 +60,12 @@ const zhTWGrid = {
|
|
|
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 zhTWGrid = {
|
|
|
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: '任何值',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Filter item definition interface.
|
|
3
3
|
* @demos
|
|
4
|
-
* - [Custom filter operator](/x/react-data-grid/filtering/#create-a-custom-operator)
|
|
4
|
+
* - [Custom filter operator](/x/react-data-grid/filtering/customization/#create-a-custom-operator)
|
|
5
5
|
*/
|
|
6
6
|
var GridLogicOperator = /*#__PURE__*/function (GridLogicOperator) {
|
|
7
7
|
GridLogicOperator["And"] = "and";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// the Node.js (https://nodejs.org/api/events.html) polyfill used by webpack.
|
|
4
4
|
export class EventManager {
|
|
5
5
|
constructor() {
|
|
6
|
-
this.maxListeners =
|
|
6
|
+
this.maxListeners = 20;
|
|
7
7
|
this.warnOnce = false;
|
|
8
8
|
this.events = {};
|
|
9
9
|
}
|
|
@@ -25,7 +25,7 @@ export class EventManager {
|
|
|
25
25
|
const collectionSize = collection.highPriority.size + collection.regular.size;
|
|
26
26
|
if (collectionSize > this.maxListeners && !this.warnOnce) {
|
|
27
27
|
this.warnOnce = true;
|
|
28
|
-
console.warn([`Possible EventEmitter memory leak detected. ${collectionSize} ${eventName} listeners added
|
|
28
|
+
console.warn([`Possible EventEmitter memory leak detected. ${collectionSize} ${eventName} listeners added.`].join('\n'));
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.DataGrid = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
9
|
var React = _interopRequireWildcard(require("react"));
|
|
9
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
11
|
var _utils = require("@mui/utils");
|
|
@@ -22,15 +23,16 @@ const DataGridRaw = /*#__PURE__*/React.forwardRef(function DataGrid(inProps, ref
|
|
|
22
23
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridContextProvider.GridContextProvider, {
|
|
23
24
|
privateApiRef: privateApiRef,
|
|
24
25
|
props: props,
|
|
25
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.GridRoot, {
|
|
26
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.GridRoot, (0, _extends2.default)({
|
|
26
27
|
className: props.className,
|
|
27
28
|
style: props.style,
|
|
28
29
|
sx: props.sx,
|
|
29
|
-
ref: ref
|
|
30
|
+
ref: ref
|
|
31
|
+
}, props.forwardedProps, {
|
|
30
32
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.GridHeader, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.GridBody, {
|
|
31
33
|
VirtualScrollerComponent: _DataGridVirtualScroller.DataGridVirtualScroller
|
|
32
34
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.GridFooterPlaceholder, {})]
|
|
33
|
-
})
|
|
35
|
+
}))
|
|
34
36
|
});
|
|
35
37
|
});
|
|
36
38
|
const DataGrid = /*#__PURE__*/React.memo(DataGridRaw);
|
|
@@ -191,6 +193,11 @@ DataGridRaw.propTypes = {
|
|
|
191
193
|
quickFilterLogicOperator: _propTypes.default.oneOf(['and', 'or']),
|
|
192
194
|
quickFilterValues: _propTypes.default.array
|
|
193
195
|
}),
|
|
196
|
+
/**
|
|
197
|
+
* Forwarded props for the grid root element.
|
|
198
|
+
* @ignore - do not document.
|
|
199
|
+
*/
|
|
200
|
+
forwardedProps: _propTypes.default.object,
|
|
194
201
|
/**
|
|
195
202
|
* Function that applies CSS classes dynamically on cells.
|
|
196
203
|
* @param {GridCellParams} params With all properties from [[GridCellParams]].
|
|
@@ -10,7 +10,6 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
12
|
var _useGridColumnHeaders = require("../hooks/features/columnHeaders/useGridColumnHeaders");
|
|
13
|
-
var _GridScrollArea = require("./GridScrollArea");
|
|
14
13
|
var _GridBaseColumnHeaders = require("./columnHeaders/GridBaseColumnHeaders");
|
|
15
14
|
var _GridColumnHeadersInner = require("./columnHeaders/GridColumnHeadersInner");
|
|
16
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -59,18 +58,14 @@ const GridColumnHeaders = /*#__PURE__*/React.forwardRef(function GridColumnsHead
|
|
|
59
58
|
columnGroupsHeaderStructure,
|
|
60
59
|
hasOtherElementInTabSequence
|
|
61
60
|
});
|
|
62
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
61
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridBaseColumnHeaders.GridBaseColumnHeaders, (0, _extends2.default)({
|
|
63
62
|
ref: ref
|
|
64
63
|
}, getRootProps(other), {
|
|
65
|
-
children:
|
|
66
|
-
scrollDirection: "left"
|
|
67
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_GridColumnHeadersInner.GridColumnHeadersInner, (0, _extends2.default)({
|
|
64
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_GridColumnHeadersInner.GridColumnHeadersInner, (0, _extends2.default)({
|
|
68
65
|
isDragging: isDragging
|
|
69
66
|
}, getInnerProps(), {
|
|
70
67
|
children: [getColumnGroupHeaders(), getColumnHeaders()]
|
|
71
|
-
}))
|
|
72
|
-
scrollDirection: "right"
|
|
73
|
-
})]
|
|
68
|
+
}))
|
|
74
69
|
}));
|
|
75
70
|
});
|
|
76
71
|
exports.GridColumnHeaders = GridColumnHeaders;
|
|
@@ -160,9 +160,9 @@ function GridActionsCell(props) {
|
|
|
160
160
|
ref: buttonRef,
|
|
161
161
|
id: buttonId,
|
|
162
162
|
"aria-label": apiRef.current.getLocaleText('actionsCellMore'),
|
|
163
|
-
"aria-
|
|
164
|
-
"aria-expanded": open
|
|
165
|
-
"aria-
|
|
163
|
+
"aria-haspopup": "menu",
|
|
164
|
+
"aria-expanded": open,
|
|
165
|
+
"aria-controls": open ? menuId : undefined,
|
|
166
166
|
role: "menuitem",
|
|
167
167
|
size: "small",
|
|
168
168
|
onClick: showMenu,
|
|
@@ -11,6 +11,7 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
var _utils = require("@mui/utils");
|
|
14
|
+
var _gridEditCellParams = require("../../models/params/gridEditCellParams");
|
|
14
15
|
var _keyboardUtils = require("../../utils/keyboardUtils");
|
|
15
16
|
var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
|
|
16
17
|
var _gridEditRowModel = require("../../models/gridEditRowModel");
|
|
@@ -97,11 +98,10 @@ function GridEditSingleSelectCell(props) {
|
|
|
97
98
|
return;
|
|
98
99
|
}
|
|
99
100
|
if (reason === 'backdropClick' || (0, _keyboardUtils.isEscapeKey)(event.key)) {
|
|
100
|
-
apiRef.current.
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
});
|
|
101
|
+
const params = apiRef.current.getCellParams(id, field);
|
|
102
|
+
apiRef.current.publishEvent('cellEditStop', (0, _extends2.default)({}, params, {
|
|
103
|
+
reason: (0, _keyboardUtils.isEscapeKey)(event.key) ? _gridEditCellParams.GridCellEditStopReasons.escapeKeyDown : _gridEditCellParams.GridCellEditStopReasons.cellFocusOut
|
|
104
|
+
}));
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
107
|
const handleOpen = event => {
|
|
@@ -57,9 +57,9 @@ const ColumnHeaderMenuIcon = /*#__PURE__*/React.memo(props => {
|
|
|
57
57
|
"aria-label": apiRef.current.getLocaleText('columnMenuLabel'),
|
|
58
58
|
size: "small",
|
|
59
59
|
onClick: handleMenuIconClick,
|
|
60
|
-
"aria-
|
|
61
|
-
"aria-
|
|
62
|
-
"aria-controls": columnMenuId,
|
|
60
|
+
"aria-haspopup": "menu",
|
|
61
|
+
"aria-expanded": open,
|
|
62
|
+
"aria-controls": open ? columnMenuId : undefined,
|
|
63
63
|
id: columnMenuButtonId
|
|
64
64
|
}, rootProps.slotProps?.baseIconButton, {
|
|
65
65
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.columnMenuIcon, {
|
|
@@ -10,6 +10,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
var _utils = require("@mui/utils");
|
|
12
12
|
var _Badge = _interopRequireDefault(require("@mui/material/Badge"));
|
|
13
|
+
var _hooks = require("../../hooks");
|
|
13
14
|
var _gridPreferencePanelSelector = require("../../hooks/features/preferencesPanel/gridPreferencePanelSelector");
|
|
14
15
|
var _gridPreferencePanelsValue = require("../../hooks/features/preferencesPanel/gridPreferencePanelsValue");
|
|
15
16
|
var _useGridApiContext = require("../../hooks/utils/useGridApiContext");
|
|
@@ -40,6 +41,9 @@ function GridColumnHeaderFilterIconButton(props) {
|
|
|
40
41
|
classes: rootProps.classes
|
|
41
42
|
});
|
|
42
43
|
const classes = useUtilityClasses(ownerState);
|
|
44
|
+
const preferencePanel = (0, _hooks.useGridSelector)(apiRef, _gridPreferencePanelSelector.gridPreferencePanelStateSelector);
|
|
45
|
+
const labelId = (0, _utils.unstable_useId)();
|
|
46
|
+
const panelId = (0, _utils.unstable_useId)();
|
|
43
47
|
const toggleFilter = React.useCallback(event => {
|
|
44
48
|
event.preventDefault();
|
|
45
49
|
event.stopPropagation();
|
|
@@ -50,21 +54,26 @@ function GridColumnHeaderFilterIconButton(props) {
|
|
|
50
54
|
if (open && openedPanelValue === _gridPreferencePanelsValue.GridPreferencePanelsValue.filters) {
|
|
51
55
|
apiRef.current.hideFilterPanel();
|
|
52
56
|
} else {
|
|
53
|
-
apiRef.current.showFilterPanel();
|
|
57
|
+
apiRef.current.showFilterPanel(undefined, panelId, labelId);
|
|
54
58
|
}
|
|
55
59
|
if (onClick) {
|
|
56
60
|
onClick(apiRef.current.getColumnHeaderParams(field), event);
|
|
57
61
|
}
|
|
58
|
-
}, [apiRef, field, onClick]);
|
|
62
|
+
}, [apiRef, field, onClick, panelId, labelId]);
|
|
59
63
|
if (!counter) {
|
|
60
64
|
return null;
|
|
61
65
|
}
|
|
66
|
+
const open = preferencePanel.open && preferencePanel.labelId === labelId;
|
|
62
67
|
const iconButton = /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseIconButton, (0, _extends2.default)({
|
|
68
|
+
id: labelId,
|
|
63
69
|
onClick: toggleFilter,
|
|
64
70
|
color: "default",
|
|
65
71
|
"aria-label": apiRef.current.getLocaleText('columnHeaderFiltersLabel'),
|
|
66
72
|
size: "small",
|
|
67
|
-
tabIndex: -1
|
|
73
|
+
tabIndex: -1,
|
|
74
|
+
"aria-haspopup": "menu",
|
|
75
|
+
"aria-expanded": open,
|
|
76
|
+
"aria-controls": open ? panelId : undefined
|
|
68
77
|
}, rootProps.slotProps?.baseIconButton, {
|
|
69
78
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.columnFilteredIcon, {
|
|
70
79
|
className: classes.icon,
|
|
@@ -73,9 +73,7 @@ const GridRoot = /*#__PURE__*/React.forwardRef(function GridRoot(props, ref) {
|
|
|
73
73
|
role: "grid",
|
|
74
74
|
"aria-colcount": visibleColumns.length,
|
|
75
75
|
"aria-rowcount": headerGroupingMaxDepth + 1 + pinnedRowsCount + totalRowCount,
|
|
76
|
-
"aria-multiselectable": !rootProps.disableMultipleRowSelection
|
|
77
|
-
"aria-label": rootProps['aria-label'],
|
|
78
|
-
"aria-labelledby": rootProps['aria-labelledby']
|
|
76
|
+
"aria-multiselectable": !rootProps.disableMultipleRowSelection
|
|
79
77
|
}, other, {
|
|
80
78
|
children: children
|
|
81
79
|
}));
|
|
@@ -84,6 +84,8 @@ const GridRootStyles = (0, _styles.styled)('div', {
|
|
|
84
84
|
[`& .${_gridClasses.gridClasses['columnHeader--sorted']}`]: styles['columnHeader--sorted']
|
|
85
85
|
}, {
|
|
86
86
|
[`& .${_gridClasses.gridClasses.columnHeader}`]: styles.columnHeader
|
|
87
|
+
}, {
|
|
88
|
+
[`& .${_gridClasses.gridClasses.headerFilterRow}`]: styles.headerFilterRow
|
|
87
89
|
}, {
|
|
88
90
|
[`& .${_gridClasses.gridClasses.columnHeaderCheckbox}`]: styles.columnHeaderCheckbox
|
|
89
91
|
}, {
|
|
@@ -156,7 +158,9 @@ const GridRootStyles = (0, _styles.styled)('div', {
|
|
|
156
158
|
outline: 'none',
|
|
157
159
|
height: '100%',
|
|
158
160
|
display: 'flex',
|
|
159
|
-
|
|
161
|
+
minWidth: 0,
|
|
162
|
+
// See https://github.com/mui/mui-x/issues/8547
|
|
163
|
+
minHeight: 0,
|
|
160
164
|
flexDirection: 'column',
|
|
161
165
|
overflowAnchor: 'none',
|
|
162
166
|
// Keep the same scrolling position
|
|
@@ -234,6 +238,9 @@ const GridRootStyles = (0, _styles.styled)('div', {
|
|
|
234
238
|
borderBottomStyle: 'solid',
|
|
235
239
|
boxSizing: 'border-box'
|
|
236
240
|
},
|
|
241
|
+
[`& .${_gridClasses.gridClasses.headerFilterRow}`]: {
|
|
242
|
+
borderTop: `1px solid ${borderColor}`
|
|
243
|
+
},
|
|
237
244
|
[`& .${_gridClasses.gridClasses.sortIcon}, & .${_gridClasses.gridClasses.filterIcon}`]: {
|
|
238
245
|
fontSize: 'inherit'
|
|
239
246
|
},
|
package/node/components/index.js
CHANGED
|
@@ -200,15 +200,4 @@ Object.keys(_GridSelectedRowCount).forEach(function (key) {
|
|
|
200
200
|
return _GridSelectedRowCount[key];
|
|
201
201
|
}
|
|
202
202
|
});
|
|
203
|
-
});
|
|
204
|
-
var _GridScrollArea = require("./GridScrollArea");
|
|
205
|
-
Object.keys(_GridScrollArea).forEach(function (key) {
|
|
206
|
-
if (key === "default" || key === "__esModule") return;
|
|
207
|
-
if (key in exports && exports[key] === _GridScrollArea[key]) return;
|
|
208
|
-
Object.defineProperty(exports, key, {
|
|
209
|
-
enumerable: true,
|
|
210
|
-
get: function () {
|
|
211
|
-
return _GridScrollArea[key];
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
203
|
});
|
|
@@ -202,8 +202,22 @@ process.env.NODE_ENV !== "production" ? GridColumnsPanel.propTypes = {
|
|
|
202
202
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
203
203
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
204
204
|
// ----------------------------------------------------------------------
|
|
205
|
+
/**
|
|
206
|
+
* If `true`, the column search field will be focused automatically.
|
|
207
|
+
* If `false`, the first column switch input will be focused automatically.
|
|
208
|
+
* This helps to avoid input keyboard panel to popup automatically on touch devices.
|
|
209
|
+
* @default true
|
|
210
|
+
*/
|
|
205
211
|
autoFocusSearchField: _propTypes.default.bool,
|
|
212
|
+
/**
|
|
213
|
+
* If `true`, the `Hide all` button will not be displayed.
|
|
214
|
+
* @default false
|
|
215
|
+
*/
|
|
206
216
|
disableHideAllButton: _propTypes.default.bool,
|
|
217
|
+
/**
|
|
218
|
+
* If `true`, the `Show all` button will be disabled
|
|
219
|
+
* @default false
|
|
220
|
+
*/
|
|
207
221
|
disableShowAllButton: _propTypes.default.bool,
|
|
208
222
|
/**
|
|
209
223
|
* Returns the list of togglable columns.
|
|
@@ -25,7 +25,9 @@ const GridPreferencesPanel = /*#__PURE__*/React.forwardRef(function GridPreferen
|
|
|
25
25
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.panel, (0, _extends2.default)({
|
|
26
26
|
ref: ref,
|
|
27
27
|
as: rootProps.slots.basePopper,
|
|
28
|
-
open: columns.length > 0 && preferencePanelState.open
|
|
28
|
+
open: columns.length > 0 && preferencePanelState.open,
|
|
29
|
+
id: preferencePanelState.panelId,
|
|
30
|
+
"aria-labelledby": preferencePanelState.labelId
|
|
29
31
|
}, rootProps.slotProps?.panel, props, rootProps.slotProps?.basePopper, {
|
|
30
32
|
children: panelContent
|
|
31
33
|
}));
|