@mui/x-data-grid 6.9.2 → 6.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +301 -114
- package/DataGrid/DataGrid.js +1 -0
- package/components/panel/GridPanel.js +2 -2
- package/components/panel/filterPanel/GridFilterForm.js +2 -2
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +2 -2
- package/components/toolbar/GridToolbarQuickFilter.d.ts +1 -1
- package/components/toolbar/GridToolbarQuickFilter.js +12 -9
- package/hooks/core/pipeProcessing/useGridPipeProcessing.js +4 -1
- package/hooks/core/useGridApiInitialization.d.ts +1 -0
- package/hooks/core/useGridApiInitialization.js +59 -36
- package/hooks/features/columns/gridColumnsUtils.js +17 -7
- package/hooks/features/columns/useGridColumns.js +4 -4
- package/hooks/features/dimensions/useGridDimensions.js +1 -1
- package/hooks/features/editing/useGridCellEditing.js +4 -4
- package/hooks/features/export/serializers/csvSerializer.d.ts +9 -6
- package/hooks/features/export/serializers/csvSerializer.js +81 -20
- package/hooks/features/export/useGridCsvExport.js +4 -3
- package/hooks/features/export/useGridPrintExport.js +10 -3
- package/hooks/features/export/utils.js +2 -2
- package/hooks/features/filter/gridFilterSelector.js +1 -1
- package/hooks/features/filter/gridFilterUtils.js +43 -15
- package/hooks/features/filter/useGridFilter.js +22 -9
- package/hooks/features/focus/useGridFocus.js +30 -1
- package/hooks/features/pagination/useGridPagination.js +6 -6
- package/hooks/features/rows/gridRowsSelector.js +3 -3
- package/hooks/features/rows/gridRowsUtils.js +3 -3
- package/hooks/features/rows/useGridRowsMeta.js +2 -2
- package/hooks/features/sorting/useGridSorting.js +6 -6
- package/hooks/features/virtualization/useGridVirtualScroller.js +1 -1
- package/hooks/utils/useGridApiMethod.js +7 -23
- package/index.js +1 -1
- package/internals/index.d.ts +1 -0
- package/internals/index.js +1 -0
- package/joy/joySlots.js +2 -2
- package/legacy/DataGrid/DataGrid.js +1 -0
- package/legacy/components/panel/GridPanel.js +2 -2
- package/legacy/components/panel/filterPanel/GridFilterForm.js +2 -2
- package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +2 -2
- package/legacy/components/toolbar/GridToolbarQuickFilter.js +12 -12
- package/legacy/hooks/core/pipeProcessing/useGridPipeProcessing.js +4 -1
- package/legacy/hooks/core/useGridApiInitialization.js +62 -39
- package/legacy/hooks/features/columns/gridColumnsUtils.js +17 -7
- package/legacy/hooks/features/columns/useGridColumns.js +4 -4
- package/legacy/hooks/features/dimensions/useGridDimensions.js +1 -1
- package/legacy/hooks/features/editing/useGridCellEditing.js +4 -4
- package/legacy/hooks/features/export/serializers/csvSerializer.js +88 -17
- package/legacy/hooks/features/export/useGridCsvExport.js +4 -3
- package/legacy/hooks/features/export/useGridPrintExport.js +16 -4
- package/legacy/hooks/features/export/utils.js +2 -2
- package/legacy/hooks/features/filter/gridFilterSelector.js +1 -1
- package/legacy/hooks/features/filter/gridFilterUtils.js +36 -15
- package/legacy/hooks/features/filter/useGridFilter.js +22 -11
- package/legacy/hooks/features/focus/useGridFocus.js +32 -1
- package/legacy/hooks/features/pagination/useGridPagination.js +6 -6
- package/legacy/hooks/features/rows/gridRowsSelector.js +3 -3
- package/legacy/hooks/features/rows/gridRowsUtils.js +3 -3
- package/legacy/hooks/features/rows/useGridRowsMeta.js +2 -2
- package/legacy/hooks/features/sorting/useGridSorting.js +6 -6
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +1 -1
- package/legacy/hooks/utils/useGridApiMethod.js +7 -25
- package/legacy/index.js +1 -1
- package/legacy/internals/index.js +1 -0
- package/legacy/joy/joySlots.js +2 -2
- package/legacy/locales/plPL.js +7 -7
- package/legacy/utils/getGridLocalization.js +2 -2
- package/locales/plPL.js +7 -7
- package/models/events/gridEventLookup.d.ts +0 -1
- package/models/gridExport.d.ts +8 -1
- package/models/gridFilterModel.d.ts +5 -0
- package/modern/DataGrid/DataGrid.js +1 -0
- package/modern/components/toolbar/GridToolbarQuickFilter.js +12 -9
- package/modern/hooks/core/pipeProcessing/useGridPipeProcessing.js +4 -1
- package/modern/hooks/core/useGridApiInitialization.js +58 -36
- package/modern/hooks/features/columns/gridColumnsUtils.js +15 -5
- package/modern/hooks/features/dimensions/useGridDimensions.js +1 -1
- package/modern/hooks/features/export/serializers/csvSerializer.js +81 -20
- package/modern/hooks/features/export/useGridCsvExport.js +3 -2
- package/modern/hooks/features/export/useGridPrintExport.js +8 -1
- package/modern/hooks/features/filter/gridFilterUtils.js +40 -12
- package/modern/hooks/features/filter/useGridFilter.js +16 -3
- package/modern/hooks/features/focus/useGridFocus.js +30 -1
- package/modern/hooks/features/rows/gridRowsUtils.js +1 -1
- package/modern/hooks/utils/useGridApiMethod.js +7 -23
- package/modern/index.js +1 -1
- package/modern/internals/index.js +1 -0
- package/modern/locales/plPL.js +7 -7
- package/node/DataGrid/DataGrid.js +1 -0
- package/node/components/toolbar/GridToolbarQuickFilter.js +12 -9
- package/node/hooks/core/pipeProcessing/useGridPipeProcessing.js +4 -1
- package/node/hooks/core/useGridApiInitialization.js +59 -36
- package/node/hooks/features/columns/gridColumnsUtils.js +15 -5
- package/node/hooks/features/dimensions/useGridDimensions.js +1 -1
- package/node/hooks/features/export/serializers/csvSerializer.js +81 -20
- package/node/hooks/features/export/useGridCsvExport.js +3 -2
- package/node/hooks/features/export/useGridPrintExport.js +8 -1
- package/node/hooks/features/filter/gridFilterUtils.js +39 -11
- package/node/hooks/features/filter/useGridFilter.js +16 -3
- package/node/hooks/features/focus/useGridFocus.js +29 -0
- package/node/hooks/features/rows/gridRowsUtils.js +1 -1
- package/node/hooks/utils/useGridApiMethod.js +7 -23
- package/node/index.js +1 -1
- package/node/internals/index.js +8 -0
- package/node/locales/plPL.js +7 -7
- package/package.json +3 -3
- package/utils/getGridLocalization.js +2 -2
package/node/index.js
CHANGED
package/node/internals/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var _exportNames = {
|
|
|
15
15
|
useGridRegisterStrategyProcessor: true,
|
|
16
16
|
GRID_DEFAULT_STRATEGY: true,
|
|
17
17
|
useGridInitialization: true,
|
|
18
|
+
unwrapPrivateAPI: true,
|
|
18
19
|
useGridClipboard: true,
|
|
19
20
|
useGridColumnHeaders: true,
|
|
20
21
|
unstable_gridHeaderFilteringEditFieldSelector: true,
|
|
@@ -403,6 +404,12 @@ Object.defineProperty(exports, "unstable_resetCreateSelectorCache", {
|
|
|
403
404
|
return _createSelector.unstable_resetCreateSelectorCache;
|
|
404
405
|
}
|
|
405
406
|
});
|
|
407
|
+
Object.defineProperty(exports, "unwrapPrivateAPI", {
|
|
408
|
+
enumerable: true,
|
|
409
|
+
get: function () {
|
|
410
|
+
return _useGridApiInitialization.unwrapPrivateAPI;
|
|
411
|
+
}
|
|
412
|
+
});
|
|
406
413
|
Object.defineProperty(exports, "useGridClipboard", {
|
|
407
414
|
enumerable: true,
|
|
408
415
|
get: function () {
|
|
@@ -617,6 +624,7 @@ var _GridFilterPanel = require("../components/panel/filterPanel/GridFilterPanel"
|
|
|
617
624
|
var _pipeProcessing = require("../hooks/core/pipeProcessing");
|
|
618
625
|
var _strategyProcessing = require("../hooks/core/strategyProcessing");
|
|
619
626
|
var _useGridInitialization = require("../hooks/core/useGridInitialization");
|
|
627
|
+
var _useGridApiInitialization = require("../hooks/core/useGridApiInitialization");
|
|
620
628
|
var _useGridClipboard = require("../hooks/features/clipboard/useGridClipboard");
|
|
621
629
|
var _useGridColumnHeaders = require("../hooks/features/columnHeaders/useGridColumnHeaders");
|
|
622
630
|
var _gridHeaderFilteringSelectors = require("../hooks/features/headerFiltering/gridHeaderFilteringSelectors");
|
package/node/locales/plPL.js
CHANGED
|
@@ -43,7 +43,7 @@ const plPLGrid = {
|
|
|
43
43
|
columnsPanelHideAllButton: 'Ukryj wszystko',
|
|
44
44
|
// Filter panel text
|
|
45
45
|
filterPanelAddFilter: 'Dodaj filtr',
|
|
46
|
-
|
|
46
|
+
filterPanelRemoveAll: 'Usuń wszystkie',
|
|
47
47
|
filterPanelDeleteIconLabel: 'Usuń',
|
|
48
48
|
filterPanelLogicOperator: 'Operator logiczny',
|
|
49
49
|
filterPanelOperator: 'Operator',
|
|
@@ -74,12 +74,12 @@ const plPLGrid = {
|
|
|
74
74
|
// 'filterOperator<=': '<=',
|
|
75
75
|
|
|
76
76
|
// Header filter operators text
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
headerFilterOperatorContains: 'Zawiera',
|
|
78
|
+
headerFilterOperatorEquals: 'Równa się',
|
|
79
|
+
headerFilterOperatorStartsWith: 'Zaczyna się od',
|
|
80
|
+
headerFilterOperatorEndsWith: 'Kończy się na',
|
|
81
81
|
// headerFilterOperatorIs: 'Is',
|
|
82
|
-
|
|
82
|
+
headerFilterOperatorNot: 'Niepuste',
|
|
83
83
|
// headerFilterOperatorAfter: 'Is after',
|
|
84
84
|
// headerFilterOperatorOnOrAfter: 'Is on or after',
|
|
85
85
|
// headerFilterOperatorBefore: 'Is before',
|
|
@@ -101,7 +101,7 @@ const plPLGrid = {
|
|
|
101
101
|
// Column menu text
|
|
102
102
|
columnMenuLabel: 'Menu',
|
|
103
103
|
columnMenuShowColumns: 'Pokaż wszystkie kolumny',
|
|
104
|
-
|
|
104
|
+
columnMenuManageColumns: 'Zarządzaj kolumnami',
|
|
105
105
|
columnMenuFilter: 'Filtr',
|
|
106
106
|
columnMenuHideColumn: 'Ukryj',
|
|
107
107
|
columnMenuUnsort: 'Anuluj sortowanie',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.10.1",
|
|
4
4
|
"description": "The community edition of the data grid component (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"directory": "packages/grid/x-data-grid"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@babel/runtime": "^7.22.
|
|
39
|
-
"@mui/utils": "^5.13.
|
|
38
|
+
"@babel/runtime": "^7.22.6",
|
|
39
|
+
"@mui/utils": "^5.13.7",
|
|
40
40
|
"clsx": "^1.2.1",
|
|
41
41
|
"prop-types": "^15.8.1",
|
|
42
42
|
"reselect": "^4.1.8"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
export const getGridLocalization = (gridTranslations, coreTranslations) => {
|
|
3
|
-
var _coreTranslations$com
|
|
3
|
+
var _coreTranslations$com;
|
|
4
4
|
return {
|
|
5
5
|
components: {
|
|
6
6
|
MuiDataGrid: {
|
|
7
7
|
defaultProps: {
|
|
8
8
|
localeText: _extends({}, gridTranslations, {
|
|
9
|
-
MuiTablePagination: (coreTranslations == null
|
|
9
|
+
MuiTablePagination: (coreTranslations == null || (_coreTranslations$com = coreTranslations.components) == null || (_coreTranslations$com = _coreTranslations$com.MuiTablePagination) == null ? void 0 : _coreTranslations$com.defaultProps) || {}
|
|
10
10
|
})
|
|
11
11
|
}
|
|
12
12
|
}
|