@mui/x-data-grid 6.0.0-alpha.2 → 6.0.0-alpha.4
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 +493 -141
- package/DataGrid/DataGrid.js +14 -34
- package/DataGrid/useDataGridComponent.js +8 -14
- package/DataGrid/useDataGridProps.js +3 -3
- package/colDef/gridCheckboxSelectionColDef.js +1 -1
- package/colDef/gridNumericOperators.d.ts +1 -1
- package/colDef/gridSingleSelectOperators.d.ts +1 -1
- package/colDef/gridStringOperators.d.ts +1 -1
- package/components/GridFooter.js +1 -1
- package/components/GridRow.js +2 -2
- package/components/base/GridBody.js +2 -2
- package/components/cell/GridEditInputCell.js +3 -8
- package/components/cell/GridEditSingleSelectCell.js +6 -38
- package/components/columnHeaders/GridColumnGroupHeader.d.ts +2 -0
- package/components/columnHeaders/GridColumnGroupHeader.js +32 -5
- package/components/columnSelection/GridHeaderCheckbox.js +3 -3
- package/components/containers/GridRoot.js +4 -3
- package/components/panel/GridColumnsPanel.d.ts +2 -0
- package/components/panel/GridColumnsPanel.js +10 -4
- package/components/panel/filterPanel/GridFilterForm.d.ts +12 -0
- package/components/panel/filterPanel/GridFilterForm.js +29 -7
- package/components/panel/filterPanel/GridFilterPanel.d.ts +12 -0
- package/components/panel/filterPanel/GridFilterPanel.js +64 -19
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.d.ts +1 -1
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.d.ts +1 -1
- package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.d.ts +1 -1
- package/hooks/core/useGridInitialization.d.ts +1 -1
- package/hooks/core/useGridStateInitialization.d.ts +1 -1
- package/hooks/features/columnGrouping/gridColumnGroupsInterfaces.d.ts +10 -1
- package/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +6 -0
- package/hooks/features/columnGrouping/gridColumnGroupsSelector.js +34 -1
- package/hooks/features/columnGrouping/gridColumnGroupsUtils.d.ts +15 -0
- package/hooks/features/columnGrouping/gridColumnGroupsUtils.js +89 -0
- package/hooks/features/columnGrouping/useGridColumnGrouping.d.ts +1 -15
- package/hooks/features/columnGrouping/useGridColumnGrouping.js +66 -66
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +60 -116
- package/hooks/features/density/densitySelector.d.ts +0 -2
- package/hooks/features/density/densitySelector.js +1 -3
- package/hooks/features/density/densityState.d.ts +0 -1
- package/hooks/features/density/useGridDensity.d.ts +1 -1
- package/hooks/features/density/useGridDensity.js +9 -45
- package/hooks/features/dimensions/useGridDimensions.js +3 -2
- package/hooks/features/{editRows/gridEditRowsSelector.d.ts → editing/gridEditingSelectors.d.ts} +0 -0
- package/hooks/features/{editRows/gridEditRowsSelector.js → editing/gridEditingSelectors.js} +0 -0
- package/hooks/features/editing/index.d.ts +1 -0
- package/hooks/features/editing/index.js +1 -0
- package/hooks/features/{editRows/useGridCellEditing.new.d.ts → editing/useGridCellEditing.d.ts} +0 -0
- package/hooks/features/{editRows/useGridCellEditing.new.js → editing/useGridCellEditing.js} +21 -6
- package/hooks/features/{editRows/useGridEditing.new.d.ts → editing/useGridEditing.d.ts} +0 -0
- package/hooks/features/{editRows/useGridEditing.new.js → editing/useGridEditing.js} +3 -3
- package/hooks/features/{editRows/useGridRowEditing.new.d.ts → editing/useGridRowEditing.d.ts} +0 -0
- package/hooks/features/{editRows/useGridRowEditing.new.js → editing/useGridRowEditing.js} +20 -6
- package/hooks/features/export/useGridPrintExport.js +2 -2
- package/hooks/features/focus/gridFocusState.d.ts +6 -0
- package/hooks/features/focus/gridFocusStateSelector.d.ts +2 -0
- package/hooks/features/focus/gridFocusStateSelector.js +6 -2
- package/hooks/features/focus/useGridFocus.js +69 -11
- package/hooks/features/index.d.ts +2 -2
- package/hooks/features/index.js +2 -2
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +135 -1
- package/hooks/features/{selection/gridSelectionSelector.d.ts → rowSelection/gridRowSelectionSelector.d.ts} +1 -1
- package/hooks/features/rowSelection/gridRowSelectionSelector.js +9 -0
- package/hooks/features/rowSelection/index.d.ts +1 -0
- package/hooks/features/rowSelection/index.js +1 -0
- package/hooks/features/rowSelection/useGridRowSelection.d.ts +12 -0
- package/hooks/features/{selection/useGridSelection.js → rowSelection/useGridRowSelection.js} +37 -37
- package/hooks/features/{selection/useGridSelectionPreProcessors.d.ts → rowSelection/useGridRowSelectionPreProcessors.d.ts} +1 -1
- package/hooks/features/{selection/useGridSelectionPreProcessors.js → rowSelection/useGridRowSelectionPreProcessors.js} +1 -1
- package/hooks/features/rows/gridRowsInterfaces.d.ts +4 -0
- package/hooks/features/rows/gridRowsUtils.d.ts +1 -1
- package/hooks/features/rows/gridRowsUtils.js +5 -2
- package/hooks/features/rows/useGridRows.js +23 -7
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +1 -1
- package/hooks/features/virtualization/useGridVirtualScroller.js +2 -2
- package/hooks/utils/useGridApi.d.ts +1 -1
- package/hooks/utils/useGridApiEventHandler.d.ts +2 -2
- package/hooks/utils/useGridApiRef.d.ts +1 -1
- package/hooks/utils/useGridInitializeState.d.ts +1 -1
- package/hooks/utils/useGridNativeEventListener.d.ts +1 -1
- package/hooks/utils/useGridSelector.d.ts +1 -1
- package/hooks/utils/useGridState.d.ts +1 -1
- package/hooks/utils/useGridVisibleRows.d.ts +2 -2
- package/index.js +1 -1
- package/internals/index.d.ts +3 -5
- package/internals/index.js +3 -5
- package/legacy/DataGrid/DataGrid.js +14 -34
- package/legacy/DataGrid/useDataGridComponent.js +8 -14
- package/legacy/DataGrid/useDataGridProps.js +3 -3
- package/legacy/colDef/gridCheckboxSelectionColDef.js +1 -1
- package/legacy/components/GridFooter.js +1 -1
- package/legacy/components/GridRow.js +2 -2
- package/legacy/components/base/GridBody.js +2 -2
- package/legacy/components/cell/GridEditInputCell.js +3 -8
- package/legacy/components/cell/GridEditSingleSelectCell.js +6 -52
- package/legacy/components/columnHeaders/GridColumnGroupHeader.js +46 -13
- package/legacy/components/columnSelection/GridHeaderCheckbox.js +3 -3
- package/legacy/components/containers/GridRoot.js +4 -3
- package/legacy/components/panel/GridColumnsPanel.js +10 -3
- package/legacy/components/panel/filterPanel/GridFilterForm.js +31 -7
- package/legacy/components/panel/filterPanel/GridFilterPanel.js +67 -18
- package/legacy/hooks/features/columnGrouping/gridColumnGroupsSelector.js +33 -1
- package/legacy/hooks/features/columnGrouping/gridColumnGroupsUtils.js +96 -0
- package/legacy/hooks/features/columnGrouping/useGridColumnGrouping.js +64 -64
- package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +70 -122
- package/legacy/hooks/features/density/densitySelector.js +0 -6
- package/legacy/hooks/features/density/useGridDensity.js +6 -44
- package/legacy/hooks/features/dimensions/useGridDimensions.js +3 -2
- package/legacy/hooks/features/{editRows/gridEditRowsSelector.js → editing/gridEditingSelectors.js} +0 -0
- package/legacy/hooks/features/editing/index.js +1 -0
- package/legacy/hooks/features/{editRows/useGridCellEditing.new.js → editing/useGridCellEditing.js} +21 -6
- package/legacy/hooks/features/{editRows/useGridEditing.new.js → editing/useGridEditing.js} +3 -3
- package/legacy/hooks/features/{editRows/useGridRowEditing.new.js → editing/useGridRowEditing.js} +20 -6
- package/legacy/hooks/features/export/useGridPrintExport.js +2 -2
- package/legacy/hooks/features/focus/gridFocusStateSelector.js +8 -0
- package/legacy/hooks/features/focus/useGridFocus.js +72 -11
- package/legacy/hooks/features/index.js +2 -2
- package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +129 -1
- package/legacy/hooks/features/rowSelection/gridRowSelectionSelector.js +19 -0
- package/legacy/hooks/features/rowSelection/index.js +1 -0
- package/legacy/hooks/features/{selection/useGridSelection.js → rowSelection/useGridRowSelection.js} +37 -37
- package/legacy/hooks/features/{selection/useGridSelectionPreProcessors.js → rowSelection/useGridRowSelectionPreProcessors.js} +1 -1
- package/legacy/hooks/features/rows/gridRowsUtils.js +5 -2
- package/legacy/hooks/features/rows/useGridRows.js +25 -7
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +2 -2
- package/legacy/index.js +1 -1
- package/legacy/internals/index.js +3 -5
- package/legacy/locales/trTR.js +17 -17
- package/legacy/models/api/{gridSelectionApi.js → gridRowSelectionApi.js} +0 -0
- package/legacy/models/api/index.js +1 -1
- package/legacy/models/{gridSelectionModel.js → gridRowSelectionModel.js} +0 -0
- package/legacy/models/index.js +1 -1
- package/{models/api/gridSelectionApi.js → legacy/models/params/gridColumnGroupHeaderParams.js} +0 -0
- package/legacy/models/params/gridEditCellParams.js +0 -4
- package/legacy/models/params/index.js +1 -0
- package/locales/trTR.js +17 -17
- package/models/api/gridApiCommon.d.ts +3 -6
- package/models/api/gridApiCommunity.d.ts +1 -7
- package/models/api/gridEditingApi.d.ts +36 -121
- package/models/api/gridFocusApi.d.ts +13 -0
- package/models/api/{gridSelectionApi.d.ts → gridRowSelectionApi.d.ts} +2 -2
- package/models/{gridSelectionModel.js → api/gridRowSelectionApi.js} +0 -0
- package/models/api/index.d.ts +2 -2
- package/models/api/index.js +1 -1
- package/models/colDef/gridColDef.d.ts +0 -8
- package/models/events/gridEventLookup.d.ts +30 -19
- package/models/gridColumnGrouping.d.ts +1 -26
- package/models/gridRowSelectionModel.d.ts +3 -0
- package/{modern/models/api/gridSelectionApi.js → models/gridRowSelectionModel.js} +0 -0
- package/models/gridStateCommunity.d.ts +2 -2
- package/models/index.d.ts +1 -1
- package/models/index.js +1 -1
- package/models/params/gridColumnGroupHeaderParams.d.ts +30 -0
- package/{modern/models/gridSelectionModel.js → models/params/gridColumnGroupHeaderParams.js} +0 -0
- package/models/params/gridEditCellParams.d.ts +4 -17
- package/models/params/gridEditCellParams.js +0 -4
- package/models/params/gridRowParams.d.ts +4 -4
- package/models/params/index.d.ts +1 -0
- package/models/params/index.js +1 -0
- package/models/props/DataGridProps.d.ts +8 -32
- package/modern/DataGrid/DataGrid.js +14 -34
- package/modern/DataGrid/useDataGridComponent.js +8 -12
- package/modern/DataGrid/useDataGridProps.js +3 -3
- package/modern/colDef/gridCheckboxSelectionColDef.js +1 -1
- package/modern/components/GridFooter.js +1 -1
- package/modern/components/GridRow.js +2 -2
- package/modern/components/base/GridBody.js +2 -2
- package/modern/components/cell/GridEditInputCell.js +3 -4
- package/modern/components/cell/GridEditSingleSelectCell.js +6 -34
- package/modern/components/columnHeaders/GridColumnGroupHeader.js +32 -5
- package/modern/components/columnSelection/GridHeaderCheckbox.js +3 -3
- package/modern/components/containers/GridRoot.js +4 -3
- package/modern/components/panel/GridColumnsPanel.js +10 -4
- package/modern/components/panel/filterPanel/GridFilterForm.js +29 -7
- package/modern/components/panel/filterPanel/GridFilterPanel.js +62 -17
- package/modern/hooks/features/columnGrouping/gridColumnGroupsSelector.js +14 -1
- package/modern/hooks/features/columnGrouping/gridColumnGroupsUtils.js +83 -0
- package/modern/hooks/features/columnGrouping/useGridColumnGrouping.js +50 -62
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +58 -98
- package/modern/hooks/features/density/densitySelector.js +1 -3
- package/modern/hooks/features/density/useGridDensity.js +9 -37
- package/modern/hooks/features/dimensions/useGridDimensions.js +3 -2
- package/modern/hooks/features/{editRows/gridEditRowsSelector.js → editing/gridEditingSelectors.js} +0 -0
- package/modern/hooks/features/editing/index.js +1 -0
- package/modern/hooks/features/{editRows/useGridCellEditing.new.js → editing/useGridCellEditing.js} +21 -6
- package/modern/hooks/features/{editRows/useGridEditing.new.js → editing/useGridEditing.js} +3 -3
- package/modern/hooks/features/{editRows/useGridRowEditing.new.js → editing/useGridRowEditing.js} +20 -6
- package/modern/hooks/features/export/useGridPrintExport.js +2 -2
- package/modern/hooks/features/focus/gridFocusStateSelector.js +6 -2
- package/modern/hooks/features/focus/useGridFocus.js +69 -11
- package/modern/hooks/features/index.js +2 -2
- package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +135 -1
- package/modern/hooks/features/rowSelection/gridRowSelectionSelector.js +9 -0
- package/modern/hooks/features/rowSelection/index.js +1 -0
- package/modern/hooks/features/{selection/useGridSelection.js → rowSelection/useGridRowSelection.js} +37 -37
- package/modern/hooks/features/{selection/useGridSelectionPreProcessors.js → rowSelection/useGridRowSelectionPreProcessors.js} +1 -1
- package/modern/hooks/features/rows/gridRowsUtils.js +5 -2
- package/modern/hooks/features/rows/useGridRows.js +23 -7
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +2 -2
- package/modern/index.js +1 -1
- package/modern/internals/index.js +3 -5
- package/modern/locales/trTR.js +17 -17
- package/modern/models/api/gridRowSelectionApi.js +1 -0
- package/modern/models/api/index.js +1 -1
- package/modern/models/gridRowSelectionModel.js +1 -0
- package/modern/models/index.js +1 -1
- package/modern/models/params/gridColumnGroupHeaderParams.js +1 -0
- package/modern/models/params/gridEditCellParams.js +0 -4
- package/modern/models/params/index.js +1 -0
- package/node/DataGrid/DataGrid.js +14 -34
- package/node/DataGrid/useDataGridComponent.js +9 -17
- package/node/DataGrid/useDataGridProps.js +3 -3
- package/node/colDef/gridCheckboxSelectionColDef.js +2 -2
- package/node/components/GridFooter.js +2 -2
- package/node/components/GridRow.js +2 -2
- package/node/components/base/GridBody.js +2 -2
- package/node/components/cell/GridEditInputCell.js +3 -9
- package/node/components/cell/GridEditSingleSelectCell.js +6 -38
- package/node/components/columnHeaders/GridColumnGroupHeader.js +32 -5
- package/node/components/columnSelection/GridHeaderCheckbox.js +3 -3
- package/node/components/containers/GridRoot.js +4 -2
- package/node/components/panel/GridColumnsPanel.js +10 -4
- package/node/components/panel/filterPanel/GridFilterForm.js +30 -7
- package/node/components/panel/filterPanel/GridFilterPanel.js +63 -19
- package/node/hooks/features/columnGrouping/gridColumnGroupsSelector.js +40 -3
- package/node/hooks/features/columnGrouping/gridColumnGroupsUtils.js +102 -0
- package/node/hooks/features/columnGrouping/useGridColumnGrouping.js +68 -71
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +57 -113
- package/node/hooks/features/density/densitySelector.js +2 -6
- package/node/hooks/features/density/useGridDensity.js +9 -48
- package/node/hooks/features/dimensions/useGridDimensions.js +3 -1
- package/node/hooks/features/{editRows/gridEditRowsSelector.js → editing/gridEditingSelectors.js} +0 -0
- package/node/hooks/features/{editRows → editing}/index.js +4 -4
- package/node/hooks/features/{editRows/useGridCellEditing.new.js → editing/useGridCellEditing.js} +28 -13
- package/node/hooks/features/{editRows/useGridEditing.new.js → editing/useGridEditing.js} +4 -4
- package/node/hooks/features/{editRows/useGridRowEditing.new.js → editing/useGridRowEditing.js} +28 -14
- package/node/hooks/features/export/useGridPrintExport.js +2 -2
- package/node/hooks/features/focus/gridFocusStateSelector.js +10 -4
- package/node/hooks/features/focus/useGridFocus.js +68 -10
- package/node/hooks/features/index.js +8 -8
- package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +138 -1
- package/node/hooks/features/{selection/gridSelectionSelector.js → rowSelection/gridRowSelectionSelector.js} +6 -6
- package/node/hooks/features/rowSelection/index.js +18 -0
- package/node/hooks/features/{selection/useGridSelection.js → rowSelection/useGridRowSelection.js} +43 -43
- package/node/hooks/features/{selection/useGridSelectionPreProcessors.js → rowSelection/useGridRowSelectionPreProcessors.js} +3 -3
- package/node/hooks/features/rows/gridRowsUtils.js +5 -2
- package/node/hooks/features/rows/useGridRows.js +23 -7
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +4 -4
- package/node/index.js +1 -1
- package/node/internals/index.js +23 -45
- package/node/locales/trTR.js +17 -17
- package/node/models/api/{gridSelectionApi.js → gridRowSelectionApi.js} +0 -0
- package/node/models/api/index.js +4 -4
- package/node/models/{gridSelectionModel.js → gridRowSelectionModel.js} +0 -0
- package/node/models/index.js +4 -4
- package/node/models/params/gridColumnGroupHeaderParams.js +5 -0
- package/node/models/params/gridEditCellParams.js +0 -3
- package/node/models/params/index.js +13 -0
- package/package.json +2 -2
- package/hooks/features/columnGrouping/useGridColumnGroupingPreProcessors.d.ts +0 -4
- package/hooks/features/columnGrouping/useGridColumnGroupingPreProcessors.js +0 -35
- package/hooks/features/editRows/index.d.ts +0 -1
- package/hooks/features/editRows/index.js +0 -1
- package/hooks/features/editRows/useGridCellEditing.old.d.ts +0 -4
- package/hooks/features/editRows/useGridCellEditing.old.js +0 -359
- package/hooks/features/editRows/useGridEditing.old.d.ts +0 -11
- package/hooks/features/editRows/useGridEditing.old.js +0 -167
- package/hooks/features/editRows/useGridRowEditing.old.d.ts +0 -4
- package/hooks/features/editRows/useGridRowEditing.old.js +0 -334
- package/hooks/features/selection/gridSelectionSelector.js +0 -9
- package/hooks/features/selection/index.d.ts +0 -1
- package/hooks/features/selection/index.js +0 -1
- package/hooks/features/selection/useGridSelection.d.ts +0 -12
- package/legacy/hooks/features/columnGrouping/useGridColumnGroupingPreProcessors.js +0 -35
- package/legacy/hooks/features/editRows/index.js +0 -1
- package/legacy/hooks/features/editRows/useGridCellEditing.old.js +0 -411
- package/legacy/hooks/features/editRows/useGridEditing.old.js +0 -184
- package/legacy/hooks/features/editRows/useGridRowEditing.old.js +0 -505
- package/legacy/hooks/features/selection/gridSelectionSelector.js +0 -19
- package/legacy/hooks/features/selection/index.js +0 -1
- package/models/gridSelectionModel.d.ts +0 -3
- package/modern/hooks/features/columnGrouping/useGridColumnGroupingPreProcessors.js +0 -29
- package/modern/hooks/features/editRows/index.js +0 -1
- package/modern/hooks/features/editRows/useGridCellEditing.old.js +0 -355
- package/modern/hooks/features/editRows/useGridEditing.old.js +0 -163
- package/modern/hooks/features/editRows/useGridRowEditing.old.js +0 -326
- package/modern/hooks/features/selection/gridSelectionSelector.js +0 -9
- package/modern/hooks/features/selection/index.js +0 -1
- package/node/hooks/features/columnGrouping/useGridColumnGroupingPreProcessors.js +0 -55
- package/node/hooks/features/editRows/useGridCellEditing.old.js +0 -380
- package/node/hooks/features/editRows/useGridEditing.old.js +0 -193
- package/node/hooks/features/editRows/useGridRowEditing.old.js +0 -358
- package/node/hooks/features/selection/index.js +0 -18
package/node/internals/index.js
CHANGED
|
@@ -99,18 +99,12 @@ Object.defineProperty(exports, "densityStateInitializer", {
|
|
|
99
99
|
return _useGridDensity.densityStateInitializer;
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
|
-
Object.defineProperty(exports, "
|
|
102
|
+
Object.defineProperty(exports, "editingStateInitializer", {
|
|
103
103
|
enumerable: true,
|
|
104
104
|
get: function () {
|
|
105
105
|
return _useGridEditing.editingStateInitializer;
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
|
-
Object.defineProperty(exports, "editingStateInitializer_old", {
|
|
109
|
-
enumerable: true,
|
|
110
|
-
get: function () {
|
|
111
|
-
return _useGridEditing2.editingStateInitializer;
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
108
|
Object.defineProperty(exports, "exportAs", {
|
|
115
109
|
enumerable: true,
|
|
116
110
|
get: function () {
|
|
@@ -213,22 +207,22 @@ Object.defineProperty(exports, "preferencePanelStateInitializer", {
|
|
|
213
207
|
return _useGridPreferencesPanel.preferencePanelStateInitializer;
|
|
214
208
|
}
|
|
215
209
|
});
|
|
216
|
-
Object.defineProperty(exports, "
|
|
210
|
+
Object.defineProperty(exports, "rowSelectionStateInitializer", {
|
|
217
211
|
enumerable: true,
|
|
218
212
|
get: function () {
|
|
219
|
-
return
|
|
213
|
+
return _useGridRowSelection.rowSelectionStateInitializer;
|
|
220
214
|
}
|
|
221
215
|
});
|
|
222
|
-
Object.defineProperty(exports, "
|
|
216
|
+
Object.defineProperty(exports, "rowsMetaStateInitializer", {
|
|
223
217
|
enumerable: true,
|
|
224
218
|
get: function () {
|
|
225
|
-
return
|
|
219
|
+
return _useGridRowsMeta.rowsMetaStateInitializer;
|
|
226
220
|
}
|
|
227
221
|
});
|
|
228
|
-
Object.defineProperty(exports, "
|
|
222
|
+
Object.defineProperty(exports, "rowsStateInitializer", {
|
|
229
223
|
enumerable: true,
|
|
230
224
|
get: function () {
|
|
231
|
-
return
|
|
225
|
+
return _useGridRows.rowsStateInitializer;
|
|
232
226
|
}
|
|
233
227
|
});
|
|
234
228
|
Object.defineProperty(exports, "sortingStateInitializer", {
|
|
@@ -255,12 +249,6 @@ Object.defineProperty(exports, "useGridColumnGrouping", {
|
|
|
255
249
|
return _useGridColumnGrouping.useGridColumnGrouping;
|
|
256
250
|
}
|
|
257
251
|
});
|
|
258
|
-
Object.defineProperty(exports, "useGridColumnGroupingPreProcessors", {
|
|
259
|
-
enumerable: true,
|
|
260
|
-
get: function () {
|
|
261
|
-
return _useGridColumnGroupingPreProcessors.useGridColumnGroupingPreProcessors;
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
252
|
Object.defineProperty(exports, "useGridColumnHeaders", {
|
|
265
253
|
enumerable: true,
|
|
266
254
|
get: function () {
|
|
@@ -303,18 +291,12 @@ Object.defineProperty(exports, "useGridDimensions", {
|
|
|
303
291
|
return _useGridDimensions.useGridDimensions;
|
|
304
292
|
}
|
|
305
293
|
});
|
|
306
|
-
Object.defineProperty(exports, "
|
|
294
|
+
Object.defineProperty(exports, "useGridEditing", {
|
|
307
295
|
enumerable: true,
|
|
308
296
|
get: function () {
|
|
309
297
|
return _useGridEditing.useGridEditing;
|
|
310
298
|
}
|
|
311
299
|
});
|
|
312
|
-
Object.defineProperty(exports, "useGridEditing_old", {
|
|
313
|
-
enumerable: true,
|
|
314
|
-
get: function () {
|
|
315
|
-
return _useGridEditing2.useGridEditing;
|
|
316
|
-
}
|
|
317
|
-
});
|
|
318
300
|
Object.defineProperty(exports, "useGridEvents", {
|
|
319
301
|
enumerable: true,
|
|
320
302
|
get: function () {
|
|
@@ -387,40 +369,40 @@ Object.defineProperty(exports, "useGridRegisterStrategyProcessor", {
|
|
|
387
369
|
return _strategyProcessing.useGridRegisterStrategyProcessor;
|
|
388
370
|
}
|
|
389
371
|
});
|
|
390
|
-
Object.defineProperty(exports, "
|
|
372
|
+
Object.defineProperty(exports, "useGridRowSelection", {
|
|
391
373
|
enumerable: true,
|
|
392
374
|
get: function () {
|
|
393
|
-
return
|
|
375
|
+
return _useGridRowSelection.useGridRowSelection;
|
|
394
376
|
}
|
|
395
377
|
});
|
|
396
|
-
Object.defineProperty(exports, "
|
|
378
|
+
Object.defineProperty(exports, "useGridRowSelectionPreProcessors", {
|
|
397
379
|
enumerable: true,
|
|
398
380
|
get: function () {
|
|
399
|
-
return
|
|
381
|
+
return _useGridRowSelectionPreProcessors.useGridRowSelectionPreProcessors;
|
|
400
382
|
}
|
|
401
383
|
});
|
|
402
|
-
Object.defineProperty(exports, "
|
|
384
|
+
Object.defineProperty(exports, "useGridRows", {
|
|
403
385
|
enumerable: true,
|
|
404
386
|
get: function () {
|
|
405
|
-
return
|
|
387
|
+
return _useGridRows.useGridRows;
|
|
406
388
|
}
|
|
407
389
|
});
|
|
408
|
-
Object.defineProperty(exports, "
|
|
390
|
+
Object.defineProperty(exports, "useGridRowsMeta", {
|
|
409
391
|
enumerable: true,
|
|
410
392
|
get: function () {
|
|
411
|
-
return
|
|
393
|
+
return _useGridRowsMeta.useGridRowsMeta;
|
|
412
394
|
}
|
|
413
395
|
});
|
|
414
|
-
Object.defineProperty(exports, "
|
|
396
|
+
Object.defineProperty(exports, "useGridRowsPreProcessors", {
|
|
415
397
|
enumerable: true,
|
|
416
398
|
get: function () {
|
|
417
|
-
return
|
|
399
|
+
return _useGridRowsPreProcessors.useGridRowsPreProcessors;
|
|
418
400
|
}
|
|
419
401
|
});
|
|
420
|
-
Object.defineProperty(exports, "
|
|
402
|
+
Object.defineProperty(exports, "useGridScroll", {
|
|
421
403
|
enumerable: true,
|
|
422
404
|
get: function () {
|
|
423
|
-
return
|
|
405
|
+
return _useGridScroll.useGridScroll;
|
|
424
406
|
}
|
|
425
407
|
});
|
|
426
408
|
Object.defineProperty(exports, "useGridSorting", {
|
|
@@ -476,8 +458,6 @@ var _useGridColumnSpanning = require("../hooks/features/columns/useGridColumnSpa
|
|
|
476
458
|
|
|
477
459
|
var _useGridColumnGrouping = require("../hooks/features/columnGrouping/useGridColumnGrouping");
|
|
478
460
|
|
|
479
|
-
var _useGridColumnGroupingPreProcessors = require("../hooks/features/columnGrouping/useGridColumnGroupingPreProcessors");
|
|
480
|
-
|
|
481
461
|
var _useGridDensity = require("../hooks/features/density/useGridDensity");
|
|
482
462
|
|
|
483
463
|
var _useGridCsvExport = require("../hooks/features/export/useGridCsvExport");
|
|
@@ -496,9 +476,7 @@ var _useGridPagination = require("../hooks/features/pagination/useGridPagination
|
|
|
496
476
|
|
|
497
477
|
var _useGridPreferencesPanel = require("../hooks/features/preferencesPanel/useGridPreferencesPanel");
|
|
498
478
|
|
|
499
|
-
var _useGridEditing = require("../hooks/features/
|
|
500
|
-
|
|
501
|
-
var _useGridEditing2 = require("../hooks/features/editRows/useGridEditing.old");
|
|
479
|
+
var _useGridEditing = require("../hooks/features/editing/useGridEditing");
|
|
502
480
|
|
|
503
481
|
var _useGridRows = require("../hooks/features/rows/useGridRows");
|
|
504
482
|
|
|
@@ -512,9 +490,9 @@ var _useGridParamsApi = require("../hooks/features/rows/useGridParamsApi");
|
|
|
512
490
|
|
|
513
491
|
var _gridRowsSelector = require("../hooks/features/rows/gridRowsSelector");
|
|
514
492
|
|
|
515
|
-
var
|
|
493
|
+
var _useGridRowSelection = require("../hooks/features/rowSelection/useGridRowSelection");
|
|
516
494
|
|
|
517
|
-
var
|
|
495
|
+
var _useGridRowSelectionPreProcessors = require("../hooks/features/rowSelection/useGridRowSelectionPreProcessors");
|
|
518
496
|
|
|
519
497
|
var _useGridSorting = require("../hooks/features/sorting/useGridSorting");
|
|
520
498
|
|
package/node/locales/trTR.js
CHANGED
|
@@ -48,7 +48,7 @@ const trTRGrid = {
|
|
|
48
48
|
// Filter panel text
|
|
49
49
|
filterPanelAddFilter: 'Filtre Ekle',
|
|
50
50
|
filterPanelDeleteIconLabel: 'Kaldır',
|
|
51
|
-
|
|
51
|
+
filterPanelLinkOperator: 'Mantıksal operatörler',
|
|
52
52
|
filterPanelOperators: 'Operatör',
|
|
53
53
|
// TODO v6: rename to filterPanelOperator
|
|
54
54
|
filterPanelOperatorAnd: 'Ve',
|
|
@@ -94,13 +94,13 @@ const trTRGrid = {
|
|
|
94
94
|
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} / ${totalCount.toLocaleString()}`,
|
|
95
95
|
// Checkbox selection text
|
|
96
96
|
checkboxSelectionHeaderName: 'Seçim',
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
checkboxSelectionSelectAllRows: 'Tüm satırları seç',
|
|
98
|
+
checkboxSelectionUnselectAllRows: 'Tüm satırların seçimini kaldır',
|
|
99
|
+
checkboxSelectionSelectRow: 'Satırı seç',
|
|
100
|
+
checkboxSelectionUnselectRow: 'Satır seçimini bırak',
|
|
101
101
|
// Boolean cell text
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
booleanCellTrueLabel: 'Evet',
|
|
103
|
+
booleanCellFalseLabel: 'Hayır',
|
|
104
104
|
// Actions cell more text
|
|
105
105
|
actionsCellMore: 'daha fazla',
|
|
106
106
|
// Column pinning text
|
|
@@ -116,18 +116,18 @@ const trTRGrid = {
|
|
|
116
116
|
groupColumn: name => `${name} için grupla`,
|
|
117
117
|
unGroupColumn: name => `${name} için gruplamayı kaldır`,
|
|
118
118
|
// Master/detail
|
|
119
|
-
|
|
119
|
+
detailPanelToggle: 'Detay görünümüne geçiş',
|
|
120
120
|
expandDetailPanel: 'Genişlet',
|
|
121
|
-
collapseDetailPanel: 'Gizle'
|
|
122
|
-
//
|
|
121
|
+
collapseDetailPanel: 'Gizle',
|
|
122
|
+
// Row reordering text
|
|
123
|
+
rowReorderingHeaderName: 'Satırı yeniden sırala',
|
|
123
124
|
// Aggregation
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
125
|
+
aggregationMenuItemHeader: 'Toplama',
|
|
126
|
+
aggregationFunctionLabelSum: 'top',
|
|
127
|
+
aggregationFunctionLabelAvg: 'ort',
|
|
128
|
+
aggregationFunctionLabelMin: 'min',
|
|
129
|
+
aggregationFunctionLabelMax: 'maks',
|
|
130
|
+
aggregationFunctionLabelSize: 'boyut'
|
|
131
131
|
};
|
|
132
132
|
const trTR = (0, _getGridLocalization.getGridLocalization)(trTRGrid, _locale.trTR);
|
|
133
133
|
exports.trTR = trTR;
|
|
File without changes
|
package/node/models/api/index.js
CHANGED
|
@@ -82,15 +82,15 @@ Object.keys(_gridRowsMetaApi).forEach(function (key) {
|
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
|
|
85
|
-
var
|
|
85
|
+
var _gridRowSelectionApi = require("./gridRowSelectionApi");
|
|
86
86
|
|
|
87
|
-
Object.keys(
|
|
87
|
+
Object.keys(_gridRowSelectionApi).forEach(function (key) {
|
|
88
88
|
if (key === "default" || key === "__esModule") return;
|
|
89
|
-
if (key in exports && exports[key] ===
|
|
89
|
+
if (key in exports && exports[key] === _gridRowSelectionApi[key]) return;
|
|
90
90
|
Object.defineProperty(exports, key, {
|
|
91
91
|
enumerable: true,
|
|
92
92
|
get: function () {
|
|
93
|
-
return
|
|
93
|
+
return _gridRowSelectionApi[key];
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
});
|
|
File without changes
|
package/node/models/index.js
CHANGED
|
@@ -134,15 +134,15 @@ Object.keys(_gridRows).forEach(function (key) {
|
|
|
134
134
|
});
|
|
135
135
|
});
|
|
136
136
|
|
|
137
|
-
var
|
|
137
|
+
var _gridRowSelectionModel = require("./gridRowSelectionModel");
|
|
138
138
|
|
|
139
|
-
Object.keys(
|
|
139
|
+
Object.keys(_gridRowSelectionModel).forEach(function (key) {
|
|
140
140
|
if (key === "default" || key === "__esModule") return;
|
|
141
|
-
if (key in exports && exports[key] ===
|
|
141
|
+
if (key in exports && exports[key] === _gridRowSelectionModel[key]) return;
|
|
142
142
|
Object.defineProperty(exports, key, {
|
|
143
143
|
enumerable: true,
|
|
144
144
|
get: function () {
|
|
145
|
-
return
|
|
145
|
+
return _gridRowSelectionModel[key];
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
148
|
});
|
|
@@ -4,13 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.GridCellEditStopReasons = exports.GridCellEditStartReasons = void 0;
|
|
7
|
-
// TODO v6 - remove
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* Params passed to `apiRef.current.setEditCellValue`.
|
|
11
10
|
*/
|
|
12
|
-
// TODO v6 - remove
|
|
13
|
-
// TODO v6 - remove
|
|
14
11
|
var GridCellEditStartReasons;
|
|
15
12
|
/**
|
|
16
13
|
* Params passed to the `cellEditStart` event.
|
|
@@ -17,6 +17,19 @@ Object.keys(_gridColumnHeaderParams).forEach(function (key) {
|
|
|
17
17
|
});
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
+
var _gridColumnGroupHeaderParams = require("./gridColumnGroupHeaderParams");
|
|
21
|
+
|
|
22
|
+
Object.keys(_gridColumnGroupHeaderParams).forEach(function (key) {
|
|
23
|
+
if (key === "default" || key === "__esModule") return;
|
|
24
|
+
if (key in exports && exports[key] === _gridColumnGroupHeaderParams[key]) return;
|
|
25
|
+
Object.defineProperty(exports, key, {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return _gridColumnGroupHeaderParams[key];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
20
33
|
var _gridColumnOrderChangeParams = require("./gridColumnOrderChangeParams");
|
|
21
34
|
|
|
22
35
|
Object.keys(_gridColumnOrderChangeParams).forEach(function (key) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid",
|
|
3
|
-
"version": "6.0.0-alpha.
|
|
3
|
+
"version": "6.0.0-alpha.4",
|
|
4
4
|
"description": "The community edition of the data grid component (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@babel/runtime": "^7.19.0",
|
|
39
|
-
"@mui/utils": "^5.10.
|
|
39
|
+
"@mui/utils": "^5.10.9",
|
|
40
40
|
"clsx": "^1.2.1",
|
|
41
41
|
"prop-types": "^15.8.1",
|
|
42
42
|
"reselect": "^4.1.6"
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DataGridProcessedProps } from '../../../models/props/DataGridProps';
|
|
3
|
-
import { GridApiCommunity } from '../../../models/api/gridApiCommunity';
|
|
4
|
-
export declare const useGridColumnGroupingPreProcessors: (apiRef: React.MutableRefObject<GridApiCommunity>, props: DataGridProcessedProps) => void;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { useGridRegisterPipeProcessor } from '../../core/pipeProcessing';
|
|
4
|
-
import { isDeepEqual } from '../../../utils/utils';
|
|
5
|
-
import { unwrapGroupingColumnModel, hasGroupPath } from './useGridColumnGrouping';
|
|
6
|
-
export const useGridColumnGroupingPreProcessors = (apiRef, props) => {
|
|
7
|
-
var _props$experimentalFe2;
|
|
8
|
-
|
|
9
|
-
const addHeaderGroups = React.useCallback(columnsState => {
|
|
10
|
-
var _props$experimentalFe;
|
|
11
|
-
|
|
12
|
-
if (!((_props$experimentalFe = props.experimentalFeatures) != null && _props$experimentalFe.columnGrouping)) {
|
|
13
|
-
return columnsState;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const unwrappedGroupingModel = unwrapGroupingColumnModel(props.columnGroupingModel);
|
|
17
|
-
columnsState.all.forEach(field => {
|
|
18
|
-
var _unwrappedGroupingMod, _unwrappedGroupingMod2;
|
|
19
|
-
|
|
20
|
-
const newGroupPath = (_unwrappedGroupingMod = unwrappedGroupingModel[field]) != null ? _unwrappedGroupingMod : [];
|
|
21
|
-
const lookupElement = columnsState.lookup[field];
|
|
22
|
-
|
|
23
|
-
if (hasGroupPath(lookupElement) && isDeepEqual(newGroupPath, lookupElement == null ? void 0 : lookupElement.groupPath)) {
|
|
24
|
-
// Avoid modifying the pointer to allow shadow comparison in https://github.com/mui/mui-x/blob/f90afbf10a1264ee8b453d7549dd7cdd6110a4ed/packages/grid/x-data-grid/src/hooks/features/columns/gridColumnsUtils.ts#L446:L453
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
columnsState.lookup[field] = _extends({}, columnsState.lookup[field], {
|
|
29
|
-
groupPath: (_unwrappedGroupingMod2 = unwrappedGroupingModel[field]) != null ? _unwrappedGroupingMod2 : []
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
return columnsState;
|
|
33
|
-
}, [props.columnGroupingModel, (_props$experimentalFe2 = props.experimentalFeatures) == null ? void 0 : _props$experimentalFe2.columnGrouping]);
|
|
34
|
-
useGridRegisterPipeProcessor(apiRef, 'hydrateColumns', addHeaderGroups);
|
|
35
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './gridEditRowsSelector';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './gridEditRowsSelector';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { GridApiCommunity } from '../../../models/api/gridApiCommunity';
|
|
3
|
-
import { DataGridProcessedProps } from '../../../models/props/DataGridProps';
|
|
4
|
-
export declare const useCellEditing: (apiRef: React.MutableRefObject<GridApiCommunity>, props: Pick<DataGridProcessedProps, 'editMode' | 'onCellEditCommit' | 'onCellEditStart' | 'onCellEditStop' | 'experimentalFeatures'>) => void;
|