@mui/x-data-grid 7.4.0 → 7.5.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 +132 -5395
- package/DataGrid/DataGrid.js +10 -5
- package/components/GridColumnHeaders.js +1 -1
- package/components/GridFooter.js +1 -1
- package/components/GridLoadingOverlay.js +1 -1
- package/components/GridNoRowsOverlay.js +1 -1
- package/components/GridPagination.js +1 -1
- package/components/GridRow.js +1 -1
- package/components/GridRowCount.js +1 -1
- package/components/GridScrollArea.d.ts +2 -5
- package/components/GridScrollArea.js +1 -10
- package/components/GridSelectedRowCount.js +1 -1
- package/components/base/GridOverlays.js +1 -1
- package/components/cell/GridActionsCell.js +1 -1
- package/components/cell/GridActionsCellItem.js +1 -1
- package/components/cell/GridBooleanCell.js +1 -1
- package/components/cell/GridCell.js +1 -1
- package/components/cell/GridEditBooleanCell.js +1 -1
- package/components/cell/GridEditDateCell.js +1 -1
- package/components/cell/GridEditInputCell.js +1 -1
- package/components/cell/GridEditSingleSelectCell.js +1 -1
- package/components/cell/GridSkeletonCell.js +1 -1
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.js +1 -1
- package/components/columnHeaders/GridColumnHeaderItem.js +1 -1
- package/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
- package/components/columnHeaders/GridColumnHeaderSortIcon.js +1 -1
- package/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
- package/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
- package/components/columnSelection/GridHeaderCheckbox.js +1 -1
- package/components/columnsManagement/GridColumnsManagement.js +1 -1
- package/components/containers/GridFooterContainer.js +1 -1
- package/components/containers/GridOverlay.js +1 -1
- package/components/containers/GridRoot.js +1 -1
- package/components/containers/GridToolbarContainer.js +1 -1
- package/components/menu/GridMenu.js +1 -1
- package/components/menu/columnMenu/GridColumnHeaderMenu.js +1 -1
- package/components/menu/columnMenu/GridColumnMenu.js +1 -1
- package/components/menu/columnMenu/GridColumnMenuContainer.js +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
- package/components/panel/GridColumnsPanel.js +1 -1
- package/components/panel/GridPanel.js +1 -1
- package/components/panel/GridPanelContent.js +1 -1
- package/components/panel/GridPanelFooter.js +1 -1
- package/components/panel/GridPanelHeader.js +1 -1
- package/components/panel/GridPanelWrapper.js +1 -1
- package/components/panel/filterPanel/GridFilterForm.js +1 -1
- package/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
- package/components/panel/filterPanel/GridFilterInputDate.js +1 -1
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
- package/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +1 -1
- package/components/panel/filterPanel/GridFilterInputValue.js +1 -1
- package/components/panel/filterPanel/GridFilterPanel.js +1 -1
- package/components/toolbar/GridToolbar.js +1 -1
- package/components/toolbar/GridToolbarColumnsButton.js +1 -1
- package/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/components/toolbar/GridToolbarExport.js +1 -1
- package/components/toolbar/GridToolbarExportContainer.js +1 -1
- package/components/toolbar/GridToolbarFilterButton.js +1 -1
- package/components/toolbar/GridToolbarQuickFilter.js +1 -1
- package/hooks/features/clipboard/useGridClipboard.js +8 -5
- package/hooks/features/editing/useGridRowEditing.js +5 -1
- package/hooks/features/export/serializers/csvSerializer.d.ts +3 -6
- package/hooks/features/export/serializers/csvSerializer.js +28 -32
- package/hooks/features/export/useGridCsvExport.js +8 -5
- package/index.js +1 -1
- package/internals/utils/propValidation.d.ts +2 -2
- package/internals/utils/propValidation.js +6 -9
- package/locales/esES.js +4 -4
- package/locales/nbNO.js +4 -5
- package/models/gridExport.d.ts +7 -0
- package/modern/DataGrid/DataGrid.js +10 -5
- package/modern/components/GridColumnHeaders.js +1 -1
- package/modern/components/GridFooter.js +1 -1
- package/modern/components/GridLoadingOverlay.js +1 -1
- package/modern/components/GridNoRowsOverlay.js +1 -1
- package/modern/components/GridPagination.js +1 -1
- package/modern/components/GridRow.js +1 -1
- package/modern/components/GridRowCount.js +1 -1
- package/modern/components/GridScrollArea.js +1 -10
- package/modern/components/GridSelectedRowCount.js +1 -1
- package/modern/components/base/GridOverlays.js +1 -1
- package/modern/components/cell/GridActionsCell.js +1 -1
- package/modern/components/cell/GridActionsCellItem.js +1 -1
- package/modern/components/cell/GridBooleanCell.js +1 -1
- package/modern/components/cell/GridCell.js +1 -1
- package/modern/components/cell/GridEditBooleanCell.js +1 -1
- package/modern/components/cell/GridEditDateCell.js +1 -1
- package/modern/components/cell/GridEditInputCell.js +1 -1
- package/modern/components/cell/GridEditSingleSelectCell.js +1 -1
- package/modern/components/cell/GridSkeletonCell.js +1 -1
- package/modern/components/columnHeaders/GridColumnHeaderFilterIconButton.js +1 -1
- package/modern/components/columnHeaders/GridColumnHeaderItem.js +1 -1
- package/modern/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
- package/modern/components/columnHeaders/GridColumnHeaderSortIcon.js +1 -1
- package/modern/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
- package/modern/components/columnSelection/GridHeaderCheckbox.js +1 -1
- package/modern/components/columnsManagement/GridColumnsManagement.js +1 -1
- package/modern/components/containers/GridFooterContainer.js +1 -1
- package/modern/components/containers/GridOverlay.js +1 -1
- package/modern/components/containers/GridRoot.js +1 -1
- package/modern/components/containers/GridToolbarContainer.js +1 -1
- package/modern/components/menu/GridMenu.js +1 -1
- package/modern/components/menu/columnMenu/GridColumnHeaderMenu.js +1 -1
- package/modern/components/menu/columnMenu/GridColumnMenu.js +1 -1
- package/modern/components/menu/columnMenu/GridColumnMenuContainer.js +1 -1
- package/modern/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +1 -1
- package/modern/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -1
- package/modern/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -1
- package/modern/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -1
- package/modern/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
- package/modern/components/panel/GridColumnsPanel.js +1 -1
- package/modern/components/panel/GridPanel.js +1 -1
- package/modern/components/panel/GridPanelContent.js +1 -1
- package/modern/components/panel/GridPanelFooter.js +1 -1
- package/modern/components/panel/GridPanelHeader.js +1 -1
- package/modern/components/panel/GridPanelWrapper.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterForm.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterInputDate.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterInputValue.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterPanel.js +1 -1
- package/modern/components/toolbar/GridToolbar.js +1 -1
- package/modern/components/toolbar/GridToolbarColumnsButton.js +1 -1
- package/modern/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/modern/components/toolbar/GridToolbarExport.js +1 -1
- package/modern/components/toolbar/GridToolbarExportContainer.js +1 -1
- package/modern/components/toolbar/GridToolbarFilterButton.js +1 -1
- package/modern/components/toolbar/GridToolbarQuickFilter.js +1 -1
- package/modern/hooks/features/clipboard/useGridClipboard.js +8 -5
- package/modern/hooks/features/editing/useGridRowEditing.js +5 -1
- package/modern/hooks/features/export/serializers/csvSerializer.js +28 -32
- package/modern/hooks/features/export/useGridCsvExport.js +8 -5
- package/modern/index.js +1 -1
- package/modern/internals/utils/propValidation.js +6 -9
- package/modern/locales/esES.js +4 -4
- package/modern/locales/nbNO.js +4 -5
- package/node/DataGrid/DataGrid.js +10 -5
- package/node/components/GridColumnHeaders.js +1 -1
- package/node/components/GridFooter.js +1 -1
- package/node/components/GridLoadingOverlay.js +1 -1
- package/node/components/GridNoRowsOverlay.js +1 -1
- package/node/components/GridPagination.js +1 -1
- package/node/components/GridRow.js +1 -1
- package/node/components/GridRowCount.js +1 -1
- package/node/components/GridScrollArea.js +0 -8
- package/node/components/GridSelectedRowCount.js +1 -1
- package/node/components/base/GridOverlays.js +1 -1
- package/node/components/cell/GridActionsCell.js +1 -1
- package/node/components/cell/GridActionsCellItem.js +1 -1
- package/node/components/cell/GridBooleanCell.js +1 -1
- package/node/components/cell/GridCell.js +1 -1
- package/node/components/cell/GridEditBooleanCell.js +1 -1
- package/node/components/cell/GridEditDateCell.js +1 -1
- package/node/components/cell/GridEditInputCell.js +1 -1
- package/node/components/cell/GridEditSingleSelectCell.js +1 -1
- package/node/components/cell/GridSkeletonCell.js +1 -1
- package/node/components/columnHeaders/GridColumnHeaderFilterIconButton.js +1 -1
- package/node/components/columnHeaders/GridColumnHeaderItem.js +1 -1
- package/node/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
- package/node/components/columnHeaders/GridColumnHeaderSortIcon.js +1 -1
- package/node/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
- package/node/components/columnSelection/GridHeaderCheckbox.js +1 -1
- package/node/components/columnsManagement/GridColumnsManagement.js +1 -1
- package/node/components/containers/GridFooterContainer.js +1 -1
- package/node/components/containers/GridOverlay.js +1 -1
- package/node/components/containers/GridRoot.js +1 -1
- package/node/components/containers/GridToolbarContainer.js +1 -1
- package/node/components/menu/GridMenu.js +1 -1
- package/node/components/menu/columnMenu/GridColumnHeaderMenu.js +1 -1
- package/node/components/menu/columnMenu/GridColumnMenu.js +1 -1
- package/node/components/menu/columnMenu/GridColumnMenuContainer.js +1 -1
- package/node/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +1 -1
- package/node/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -1
- package/node/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -1
- package/node/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -1
- package/node/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
- package/node/components/panel/GridColumnsPanel.js +1 -1
- package/node/components/panel/GridPanel.js +1 -1
- package/node/components/panel/GridPanelContent.js +1 -1
- package/node/components/panel/GridPanelFooter.js +1 -1
- package/node/components/panel/GridPanelHeader.js +1 -1
- package/node/components/panel/GridPanelWrapper.js +1 -1
- package/node/components/panel/filterPanel/GridFilterForm.js +1 -1
- package/node/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
- package/node/components/panel/filterPanel/GridFilterInputDate.js +1 -1
- package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
- package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
- package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +1 -1
- package/node/components/panel/filterPanel/GridFilterInputValue.js +1 -1
- package/node/components/panel/filterPanel/GridFilterPanel.js +1 -1
- package/node/components/toolbar/GridToolbar.js +1 -1
- package/node/components/toolbar/GridToolbarColumnsButton.js +1 -1
- package/node/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/node/components/toolbar/GridToolbarExport.js +1 -1
- package/node/components/toolbar/GridToolbarExportContainer.js +1 -1
- package/node/components/toolbar/GridToolbarFilterButton.js +1 -1
- package/node/components/toolbar/GridToolbarQuickFilter.js +1 -1
- package/node/hooks/features/clipboard/useGridClipboard.js +8 -5
- package/node/hooks/features/editing/useGridRowEditing.js +5 -1
- package/node/hooks/features/export/serializers/csvSerializer.js +28 -32
- package/node/hooks/features/export/useGridCsvExport.js +8 -5
- package/node/index.js +1 -1
- package/node/internals/utils/propValidation.js +9 -12
- package/node/locales/esES.js +4 -4
- package/node/locales/nbNO.js +4 -5
- package/package.json +2 -2
|
@@ -57,7 +57,7 @@ function GridColumnHeaderMenu({
|
|
|
57
57
|
process.env.NODE_ENV !== "production" ? GridColumnHeaderMenu.propTypes = {
|
|
58
58
|
// ----------------------------- Warning --------------------------------
|
|
59
59
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
60
|
-
// | To update them edit the TypeScript types and run "
|
|
60
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
61
61
|
// ----------------------------------------------------------------------
|
|
62
62
|
columnMenuButtonId: _propTypes.default.string,
|
|
63
63
|
columnMenuId: _propTypes.default.string,
|
|
@@ -64,7 +64,7 @@ const GridColumnMenu = exports.GridColumnMenu = /*#__PURE__*/React.forwardRef(fu
|
|
|
64
64
|
process.env.NODE_ENV !== "production" ? GridColumnMenu.propTypes = {
|
|
65
65
|
// ----------------------------- Warning --------------------------------
|
|
66
66
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
67
|
-
// | To update them edit the TypeScript types and run "
|
|
67
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
68
68
|
// ----------------------------------------------------------------------
|
|
69
69
|
colDef: _propTypes.default.object.isRequired,
|
|
70
70
|
hideMenu: _propTypes.default.func.isRequired,
|
|
@@ -53,7 +53,7 @@ const GridColumnMenuContainer = exports.GridColumnMenuContainer = /*#__PURE__*/R
|
|
|
53
53
|
process.env.NODE_ENV !== "production" ? GridColumnMenuContainer.propTypes = {
|
|
54
54
|
// ----------------------------- Warning --------------------------------
|
|
55
55
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
56
|
-
// | To update them edit the TypeScript types and run "
|
|
56
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
57
57
|
// ----------------------------------------------------------------------
|
|
58
58
|
colDef: _propTypes.default.object.isRequired,
|
|
59
59
|
hideMenu: _propTypes.default.func.isRequired,
|
|
@@ -21,7 +21,7 @@ function GridColumnMenuColumnsItem(props) {
|
|
|
21
21
|
process.env.NODE_ENV !== "production" ? GridColumnMenuColumnsItem.propTypes = {
|
|
22
22
|
// ----------------------------- Warning --------------------------------
|
|
23
23
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
24
|
-
// | To update them edit the TypeScript types and run "
|
|
24
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
25
25
|
// ----------------------------------------------------------------------
|
|
26
26
|
colDef: _propTypes.default.object.isRequired,
|
|
27
27
|
onClick: _propTypes.default.func.isRequired
|
|
@@ -43,7 +43,7 @@ function GridColumnMenuFilterItem(props) {
|
|
|
43
43
|
process.env.NODE_ENV !== "production" ? GridColumnMenuFilterItem.propTypes = {
|
|
44
44
|
// ----------------------------- Warning --------------------------------
|
|
45
45
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
46
|
-
// | To update them edit the TypeScript types and run "
|
|
46
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
47
47
|
// ----------------------------------------------------------------------
|
|
48
48
|
colDef: _propTypes.default.object.isRequired,
|
|
49
49
|
onClick: _propTypes.default.func.isRequired
|
|
@@ -60,7 +60,7 @@ function GridColumnMenuHideItem(props) {
|
|
|
60
60
|
process.env.NODE_ENV !== "production" ? GridColumnMenuHideItem.propTypes = {
|
|
61
61
|
// ----------------------------- Warning --------------------------------
|
|
62
62
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
63
|
-
// | To update them edit the TypeScript types and run "
|
|
63
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
64
64
|
// ----------------------------------------------------------------------
|
|
65
65
|
colDef: _propTypes.default.object.isRequired,
|
|
66
66
|
onClick: _propTypes.default.func.isRequired
|
|
@@ -43,7 +43,7 @@ function GridColumnMenuManageItem(props) {
|
|
|
43
43
|
process.env.NODE_ENV !== "production" ? GridColumnMenuManageItem.propTypes = {
|
|
44
44
|
// ----------------------------- Warning --------------------------------
|
|
45
45
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
46
|
-
// | To update them edit the TypeScript types and run "
|
|
46
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
47
47
|
// ----------------------------------------------------------------------
|
|
48
48
|
colDef: _propTypes.default.object.isRequired,
|
|
49
49
|
onClick: _propTypes.default.func.isRequired
|
|
@@ -77,7 +77,7 @@ function GridColumnMenuSortItem(props) {
|
|
|
77
77
|
process.env.NODE_ENV !== "production" ? GridColumnMenuSortItem.propTypes = {
|
|
78
78
|
// ----------------------------- Warning --------------------------------
|
|
79
79
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
80
|
-
// | To update them edit the TypeScript types and run "
|
|
80
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
81
81
|
// ----------------------------------------------------------------------
|
|
82
82
|
colDef: _propTypes.default.object.isRequired,
|
|
83
83
|
onClick: _propTypes.default.func.isRequired
|
|
@@ -23,7 +23,7 @@ function GridColumnsPanel(props) {
|
|
|
23
23
|
process.env.NODE_ENV !== "production" ? GridColumnsPanel.propTypes = {
|
|
24
24
|
// ----------------------------- Warning --------------------------------
|
|
25
25
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
26
|
-
// | To update them edit the TypeScript types and run "
|
|
26
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
27
27
|
// ----------------------------------------------------------------------
|
|
28
28
|
slotProps: _propTypes.default.object
|
|
29
29
|
} : void 0;
|
|
@@ -112,7 +112,7 @@ const GridPanel = exports.GridPanel = /*#__PURE__*/React.forwardRef((props, ref)
|
|
|
112
112
|
process.env.NODE_ENV !== "production" ? GridPanel.propTypes = {
|
|
113
113
|
// ----------------------------- Warning --------------------------------
|
|
114
114
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
115
|
-
// | To update them edit the TypeScript types and run "
|
|
115
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
116
116
|
// ----------------------------------------------------------------------
|
|
117
117
|
/**
|
|
118
118
|
* Popper render function or node.
|
|
@@ -53,7 +53,7 @@ function GridPanelContent(props) {
|
|
|
53
53
|
process.env.NODE_ENV !== "production" ? GridPanelContent.propTypes = {
|
|
54
54
|
// ----------------------------- Warning --------------------------------
|
|
55
55
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
56
|
-
// | To update them edit the TypeScript types and run "
|
|
56
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
57
57
|
// ----------------------------------------------------------------------
|
|
58
58
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
|
|
59
59
|
} : void 0;
|
|
@@ -53,7 +53,7 @@ function GridPanelFooter(props) {
|
|
|
53
53
|
process.env.NODE_ENV !== "production" ? GridPanelFooter.propTypes = {
|
|
54
54
|
// ----------------------------- Warning --------------------------------
|
|
55
55
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
56
|
-
// | To update them edit the TypeScript types and run "
|
|
56
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
57
57
|
// ----------------------------------------------------------------------
|
|
58
58
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
|
|
59
59
|
} : void 0;
|
|
@@ -51,7 +51,7 @@ function GridPanelHeader(props) {
|
|
|
51
51
|
process.env.NODE_ENV !== "production" ? GridPanelHeader.propTypes = {
|
|
52
52
|
// ----------------------------- Warning --------------------------------
|
|
53
53
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
54
|
-
// | To update them edit the TypeScript types and run "
|
|
54
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
55
55
|
// ----------------------------------------------------------------------
|
|
56
56
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
|
|
57
57
|
} : void 0;
|
|
@@ -65,7 +65,7 @@ const GridPanelWrapper = exports.GridPanelWrapper = /*#__PURE__*/React.forwardRe
|
|
|
65
65
|
process.env.NODE_ENV !== "production" ? GridPanelWrapper.propTypes = {
|
|
66
66
|
// ----------------------------- Warning --------------------------------
|
|
67
67
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
68
|
-
// | To update them edit the TypeScript types and run "
|
|
68
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
69
69
|
// ----------------------------------------------------------------------
|
|
70
70
|
slotProps: _propTypes.default.object
|
|
71
71
|
} : void 0;
|
|
@@ -392,7 +392,7 @@ const GridFilterForm = exports.GridFilterForm = /*#__PURE__*/React.forwardRef(fu
|
|
|
392
392
|
process.env.NODE_ENV !== "production" ? GridFilterForm.propTypes = {
|
|
393
393
|
// ----------------------------- Warning --------------------------------
|
|
394
394
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
395
|
-
// | To update them edit the TypeScript types and run "
|
|
395
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
396
396
|
// ----------------------------------------------------------------------
|
|
397
397
|
/**
|
|
398
398
|
* Callback called when the operator, column field or value is changed.
|
|
@@ -97,7 +97,7 @@ function GridFilterInputBoolean(props) {
|
|
|
97
97
|
process.env.NODE_ENV !== "production" ? GridFilterInputBoolean.propTypes = {
|
|
98
98
|
// ----------------------------- Warning --------------------------------
|
|
99
99
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
100
|
-
// | To update them edit the TypeScript types and run "
|
|
100
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
101
101
|
// ----------------------------------------------------------------------
|
|
102
102
|
apiRef: _propTypes.default.shape({
|
|
103
103
|
current: _propTypes.default.object.isRequired
|
|
@@ -102,7 +102,7 @@ function GridFilterInputDate(props) {
|
|
|
102
102
|
process.env.NODE_ENV !== "production" ? GridFilterInputDate.propTypes = {
|
|
103
103
|
// ----------------------------- Warning --------------------------------
|
|
104
104
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
105
|
-
// | To update them edit the TypeScript types and run "
|
|
105
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
106
106
|
// ----------------------------------------------------------------------
|
|
107
107
|
apiRef: _propTypes.default.shape({
|
|
108
108
|
current: _propTypes.default.object.isRequired
|
|
@@ -103,7 +103,7 @@ function GridFilterInputMultipleSingleSelect(props) {
|
|
|
103
103
|
process.env.NODE_ENV !== "production" ? GridFilterInputMultipleSingleSelect.propTypes = {
|
|
104
104
|
// ----------------------------- Warning --------------------------------
|
|
105
105
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
106
|
-
// | To update them edit the TypeScript types and run "
|
|
106
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
107
107
|
// ----------------------------------------------------------------------
|
|
108
108
|
apiRef: _propTypes.default.shape({
|
|
109
109
|
current: _propTypes.default.object.isRequired
|
|
@@ -84,7 +84,7 @@ function GridFilterInputMultipleValue(props) {
|
|
|
84
84
|
process.env.NODE_ENV !== "production" ? GridFilterInputMultipleValue.propTypes = {
|
|
85
85
|
// ----------------------------- Warning --------------------------------
|
|
86
86
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
87
|
-
// | To update them edit the TypeScript types and run "
|
|
87
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
88
88
|
// ----------------------------------------------------------------------
|
|
89
89
|
apiRef: _propTypes.default.shape({
|
|
90
90
|
current: _propTypes.default.object.isRequired
|
|
@@ -132,7 +132,7 @@ function GridFilterInputSingleSelect(props) {
|
|
|
132
132
|
process.env.NODE_ENV !== "production" ? GridFilterInputSingleSelect.propTypes = {
|
|
133
133
|
// ----------------------------- Warning --------------------------------
|
|
134
134
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
135
|
-
// | To update them edit the TypeScript types and run "
|
|
135
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
136
136
|
// ----------------------------------------------------------------------
|
|
137
137
|
apiRef: _propTypes.default.shape({
|
|
138
138
|
current: _propTypes.default.object.isRequired
|
|
@@ -85,7 +85,7 @@ function GridFilterInputValue(props) {
|
|
|
85
85
|
process.env.NODE_ENV !== "production" ? GridFilterInputValue.propTypes = {
|
|
86
86
|
// ----------------------------- Warning --------------------------------
|
|
87
87
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
88
|
-
// | To update them edit the TypeScript types and run "
|
|
88
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
89
89
|
// ----------------------------------------------------------------------
|
|
90
90
|
apiRef: _propTypes.default.shape({
|
|
91
91
|
current: _propTypes.default.object.isRequired
|
|
@@ -197,7 +197,7 @@ const GridFilterPanel = exports.GridFilterPanel = /*#__PURE__*/React.forwardRef(
|
|
|
197
197
|
process.env.NODE_ENV !== "production" ? GridFilterPanel.propTypes = {
|
|
198
198
|
// ----------------------------- Warning --------------------------------
|
|
199
199
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
200
|
-
// | To update them edit the TypeScript types and run "
|
|
200
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
201
201
|
// ----------------------------------------------------------------------
|
|
202
202
|
/**
|
|
203
203
|
* @ignore - do not document.
|
|
@@ -55,7 +55,7 @@ const GridToolbar = exports.GridToolbar = /*#__PURE__*/React.forwardRef(function
|
|
|
55
55
|
process.env.NODE_ENV !== "production" ? GridToolbar.propTypes = {
|
|
56
56
|
// ----------------------------- Warning --------------------------------
|
|
57
57
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
58
|
-
// | To update them edit the TypeScript types and run "
|
|
58
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
59
59
|
// ----------------------------------------------------------------------
|
|
60
60
|
/**
|
|
61
61
|
* Props passed to the quick filter component.
|
|
@@ -65,7 +65,7 @@ const GridToolbarColumnsButton = exports.GridToolbarColumnsButton = /*#__PURE__*
|
|
|
65
65
|
process.env.NODE_ENV !== "production" ? GridToolbarColumnsButton.propTypes = {
|
|
66
66
|
// ----------------------------- Warning --------------------------------
|
|
67
67
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
68
|
-
// | To update them edit the TypeScript types and run "
|
|
68
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
69
69
|
// ----------------------------------------------------------------------
|
|
70
70
|
/**
|
|
71
71
|
* The props used for each slot inside.
|
|
@@ -128,7 +128,7 @@ const GridToolbarDensitySelector = exports.GridToolbarDensitySelector = /*#__PUR
|
|
|
128
128
|
process.env.NODE_ENV !== "production" ? GridToolbarDensitySelector.propTypes = {
|
|
129
129
|
// ----------------------------- Warning --------------------------------
|
|
130
130
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
131
|
-
// | To update them edit the TypeScript types and run "
|
|
131
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
132
132
|
// ----------------------------------------------------------------------
|
|
133
133
|
/**
|
|
134
134
|
* The props used for each slot inside.
|
|
@@ -78,7 +78,7 @@ const GridToolbarExport = exports.GridToolbarExport = /*#__PURE__*/React.forward
|
|
|
78
78
|
process.env.NODE_ENV !== "production" ? GridToolbarExport.propTypes = {
|
|
79
79
|
// ----------------------------- Warning --------------------------------
|
|
80
80
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
81
|
-
// | To update them edit the TypeScript types and run "
|
|
81
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
82
82
|
// ----------------------------------------------------------------------
|
|
83
83
|
csvOptions: _propTypes.default.object,
|
|
84
84
|
printOptions: _propTypes.default.object,
|
|
@@ -93,7 +93,7 @@ const GridToolbarExportContainer = exports.GridToolbarExportContainer = /*#__PUR
|
|
|
93
93
|
process.env.NODE_ENV !== "production" ? GridToolbarExportContainer.propTypes = {
|
|
94
94
|
// ----------------------------- Warning --------------------------------
|
|
95
95
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
96
|
-
// | To update them edit the TypeScript types and run "
|
|
96
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
97
97
|
// ----------------------------------------------------------------------
|
|
98
98
|
/**
|
|
99
99
|
* The props used for each slot inside.
|
|
@@ -128,7 +128,7 @@ const GridToolbarFilterButton = exports.GridToolbarFilterButton = /*#__PURE__*/R
|
|
|
128
128
|
process.env.NODE_ENV !== "production" ? GridToolbarFilterButton.propTypes = {
|
|
129
129
|
// ----------------------------- Warning --------------------------------
|
|
130
130
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
131
|
-
// | To update them edit the TypeScript types and run "
|
|
131
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
132
132
|
// ----------------------------------------------------------------------
|
|
133
133
|
/**
|
|
134
134
|
* The props used for each slot inside.
|
|
@@ -136,7 +136,7 @@ function GridToolbarQuickFilter(props) {
|
|
|
136
136
|
process.env.NODE_ENV !== "production" ? GridToolbarQuickFilter.propTypes = {
|
|
137
137
|
// ----------------------------- Warning --------------------------------
|
|
138
138
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
139
|
-
// | To update them edit the TypeScript types and run "
|
|
139
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
140
140
|
// ----------------------------------------------------------------------
|
|
141
141
|
/**
|
|
142
142
|
* The debounce time in milliseconds.
|
|
@@ -74,18 +74,21 @@ const useGridClipboard = (apiRef, props) => {
|
|
|
74
74
|
if (selectedRows.size > 0) {
|
|
75
75
|
textToCopy = apiRef.current.getDataAsCsv({
|
|
76
76
|
includeHeaders: false,
|
|
77
|
-
// TODO: make it configurable
|
|
78
77
|
delimiter: clipboardCopyCellDelimiter,
|
|
79
|
-
shouldAppendQuotes: false
|
|
78
|
+
shouldAppendQuotes: false,
|
|
79
|
+
escapeFormulas: false
|
|
80
80
|
});
|
|
81
81
|
} else {
|
|
82
82
|
const focusedCell = (0, _gridFocusStateSelector.gridFocusCellSelector)(apiRef);
|
|
83
83
|
if (focusedCell) {
|
|
84
84
|
const cellParams = apiRef.current.getCellParams(focusedCell.id, focusedCell.field);
|
|
85
85
|
textToCopy = (0, _csvSerializer.serializeCellValue)(cellParams, {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
csvOptions: {
|
|
87
|
+
delimiter: clipboardCopyCellDelimiter,
|
|
88
|
+
shouldAppendQuotes: false,
|
|
89
|
+
escapeFormulas: false
|
|
90
|
+
},
|
|
91
|
+
ignoreValueFormatter
|
|
89
92
|
});
|
|
90
93
|
}
|
|
91
94
|
}
|
|
@@ -559,7 +559,11 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
559
559
|
const copyOfPrevRowModesModel = prevRowModesModel.current;
|
|
560
560
|
prevRowModesModel.current = (0, _utils2.deepClone)(rowModesModel); // Do a deep-clone because the attributes might be changed later
|
|
561
561
|
|
|
562
|
-
Object.
|
|
562
|
+
const ids = new Set([...Object.keys(rowModesModel), ...Object.keys(copyOfPrevRowModesModel)]);
|
|
563
|
+
Array.from(ids).forEach(id => {
|
|
564
|
+
const params = rowModesModel[id] ?? {
|
|
565
|
+
mode: _gridEditRowModel.GridRowModes.View
|
|
566
|
+
};
|
|
563
567
|
const prevMode = copyOfPrevRowModesModel[id]?.mode || _gridEditRowModel.GridRowModes.View;
|
|
564
568
|
const originalId = idToIdLookup[id] ?? id;
|
|
565
569
|
if (params.mode === _gridEditRowModel.GridRowModes.Edit && prevMode === _gridEditRowModel.GridRowModes.View) {
|
|
@@ -7,14 +7,20 @@ exports.buildCSV = buildCSV;
|
|
|
7
7
|
exports.serializeCellValue = void 0;
|
|
8
8
|
var _colDef = require("../../../../colDef");
|
|
9
9
|
var _warning = require("../../../../utils/warning");
|
|
10
|
-
function sanitizeCellValue(value,
|
|
10
|
+
function sanitizeCellValue(value, csvOptions) {
|
|
11
11
|
if (typeof value === 'string') {
|
|
12
|
-
if (shouldAppendQuotes) {
|
|
12
|
+
if (csvOptions.shouldAppendQuotes || csvOptions.escapeFormulas) {
|
|
13
13
|
const escapedValue = value.replace(/"/g, '""');
|
|
14
|
-
// Make sure value containing delimiter or line break won't be split into multiple
|
|
15
|
-
if ([
|
|
14
|
+
// Make sure value containing delimiter or line break won't be split into multiple cells
|
|
15
|
+
if ([csvOptions.delimiter, '\n', '\r', '"'].some(delimiter => value.includes(delimiter))) {
|
|
16
16
|
return `"${escapedValue}"`;
|
|
17
17
|
}
|
|
18
|
+
if (csvOptions.escapeFormulas) {
|
|
19
|
+
// See https://owasp.org/www-community/attacks/CSV_Injection
|
|
20
|
+
if (['=', '+', '-', '@', '\t', '\r'].includes(escapedValue[0])) {
|
|
21
|
+
return `'${escapedValue}`;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
18
24
|
return escapedValue;
|
|
19
25
|
}
|
|
20
26
|
return value;
|
|
@@ -23,9 +29,8 @@ function sanitizeCellValue(value, delimiterCharacter, shouldAppendQuotes) {
|
|
|
23
29
|
}
|
|
24
30
|
const serializeCellValue = (cellParams, options) => {
|
|
25
31
|
const {
|
|
26
|
-
|
|
27
|
-
ignoreValueFormatter
|
|
28
|
-
shouldAppendQuotes
|
|
32
|
+
csvOptions,
|
|
33
|
+
ignoreValueFormatter
|
|
29
34
|
} = options;
|
|
30
35
|
let value;
|
|
31
36
|
if (ignoreValueFormatter) {
|
|
@@ -42,7 +47,7 @@ const serializeCellValue = (cellParams, options) => {
|
|
|
42
47
|
} else {
|
|
43
48
|
value = cellParams.formattedValue;
|
|
44
49
|
}
|
|
45
|
-
return sanitizeCellValue(value,
|
|
50
|
+
return sanitizeCellValue(value, csvOptions);
|
|
46
51
|
};
|
|
47
52
|
exports.serializeCellValue = serializeCellValue;
|
|
48
53
|
const objectFormattedValueWarning = (0, _warning.buildWarning)(['MUI X: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.', 'You can provide a `valueFormatter` with a string representation to be used.']);
|
|
@@ -55,12 +60,12 @@ class CSVRow {
|
|
|
55
60
|
}
|
|
56
61
|
addValue(value) {
|
|
57
62
|
if (!this.isEmpty) {
|
|
58
|
-
this.rowString += this.options.
|
|
63
|
+
this.rowString += this.options.csvOptions.delimiter;
|
|
59
64
|
}
|
|
60
65
|
if (value === null || value === undefined) {
|
|
61
66
|
this.rowString += '';
|
|
62
67
|
} else if (typeof this.options.sanitizeCellValue === 'function') {
|
|
63
|
-
this.rowString += this.options.sanitizeCellValue(value, this.options.
|
|
68
|
+
this.rowString += this.options.sanitizeCellValue(value, this.options.csvOptions);
|
|
64
69
|
} else {
|
|
65
70
|
this.rowString += value;
|
|
66
71
|
}
|
|
@@ -74,13 +79,11 @@ const serializeRow = ({
|
|
|
74
79
|
id,
|
|
75
80
|
columns,
|
|
76
81
|
getCellParams,
|
|
77
|
-
|
|
78
|
-
ignoreValueFormatter
|
|
79
|
-
shouldAppendQuotes
|
|
82
|
+
csvOptions,
|
|
83
|
+
ignoreValueFormatter
|
|
80
84
|
}) => {
|
|
81
85
|
const row = new CSVRow({
|
|
82
|
-
|
|
83
|
-
shouldAppendQuotes
|
|
86
|
+
csvOptions
|
|
84
87
|
});
|
|
85
88
|
columns.forEach(column => {
|
|
86
89
|
const cellParams = getCellParams(id, column.field);
|
|
@@ -90,9 +93,8 @@ const serializeRow = ({
|
|
|
90
93
|
}
|
|
91
94
|
}
|
|
92
95
|
row.addValue(serializeCellValue(cellParams, {
|
|
93
|
-
delimiterCharacter,
|
|
94
96
|
ignoreValueFormatter,
|
|
95
|
-
|
|
97
|
+
csvOptions
|
|
96
98
|
}));
|
|
97
99
|
});
|
|
98
100
|
return row.getRowString();
|
|
@@ -101,27 +103,23 @@ function buildCSV(options) {
|
|
|
101
103
|
const {
|
|
102
104
|
columns,
|
|
103
105
|
rowIds,
|
|
104
|
-
|
|
105
|
-
includeHeaders,
|
|
106
|
-
includeColumnGroupsHeaders,
|
|
106
|
+
csvOptions,
|
|
107
107
|
ignoreValueFormatter,
|
|
108
|
-
apiRef
|
|
109
|
-
shouldAppendQuotes
|
|
108
|
+
apiRef
|
|
110
109
|
} = options;
|
|
111
110
|
const CSVBody = rowIds.reduce((acc, id) => `${acc}${serializeRow({
|
|
112
111
|
id,
|
|
113
112
|
columns,
|
|
114
113
|
getCellParams: apiRef.current.getCellParams,
|
|
115
|
-
delimiterCharacter,
|
|
116
114
|
ignoreValueFormatter,
|
|
117
|
-
|
|
115
|
+
csvOptions
|
|
118
116
|
})}\r\n`, '').trim();
|
|
119
|
-
if (!includeHeaders) {
|
|
117
|
+
if (!csvOptions.includeHeaders) {
|
|
120
118
|
return CSVBody;
|
|
121
119
|
}
|
|
122
120
|
const filteredColumns = columns.filter(column => column.field !== _colDef.GRID_CHECKBOX_SELECTION_COL_DEF.field);
|
|
123
121
|
const headerRows = [];
|
|
124
|
-
if (includeColumnGroupsHeaders) {
|
|
122
|
+
if (csvOptions.includeColumnGroupsHeaders) {
|
|
125
123
|
const columnGroupLookup = apiRef.current.getAllGroupDetails();
|
|
126
124
|
let maxColumnGroupsDepth = 0;
|
|
127
125
|
const columnGroupPathsLookup = filteredColumns.reduce((acc, column) => {
|
|
@@ -132,9 +130,8 @@ function buildCSV(options) {
|
|
|
132
130
|
}, {});
|
|
133
131
|
for (let i = 0; i < maxColumnGroupsDepth; i += 1) {
|
|
134
132
|
const headerGroupRow = new CSVRow({
|
|
135
|
-
|
|
136
|
-
sanitizeCellValue
|
|
137
|
-
shouldAppendQuotes
|
|
133
|
+
csvOptions,
|
|
134
|
+
sanitizeCellValue
|
|
138
135
|
});
|
|
139
136
|
headerRows.push(headerGroupRow);
|
|
140
137
|
filteredColumns.forEach(column => {
|
|
@@ -145,9 +142,8 @@ function buildCSV(options) {
|
|
|
145
142
|
}
|
|
146
143
|
}
|
|
147
144
|
const mainHeaderRow = new CSVRow({
|
|
148
|
-
|
|
149
|
-
sanitizeCellValue
|
|
150
|
-
shouldAppendQuotes
|
|
145
|
+
csvOptions,
|
|
146
|
+
sanitizeCellValue
|
|
151
147
|
});
|
|
152
148
|
filteredColumns.forEach(column => {
|
|
153
149
|
mainHeaderRow.addValue(column.headerName || column.field);
|
|
@@ -39,12 +39,15 @@ const useGridCsvExport = (apiRef, props) => {
|
|
|
39
39
|
return (0, _csvSerializer.buildCSV)({
|
|
40
40
|
columns: exportedColumns,
|
|
41
41
|
rowIds: exportedRowIds,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
csvOptions: {
|
|
43
|
+
delimiter: options.delimiter || ',',
|
|
44
|
+
shouldAppendQuotes: options.shouldAppendQuotes ?? true,
|
|
45
|
+
includeHeaders: options.includeHeaders ?? true,
|
|
46
|
+
includeColumnGroupsHeaders: options.includeColumnGroupsHeaders ?? true,
|
|
47
|
+
escapeFormulas: options.escapeFormulas ?? true
|
|
48
|
+
},
|
|
45
49
|
ignoreValueFormatter,
|
|
46
|
-
apiRef
|
|
47
|
-
shouldAppendQuotes: options.shouldAppendQuotes ?? true
|
|
50
|
+
apiRef
|
|
48
51
|
});
|
|
49
52
|
}, [logger, apiRef, ignoreValueFormatter]);
|
|
50
53
|
const exportDataAsCsv = React.useCallback(options => {
|
package/node/index.js
CHANGED
|
@@ -3,30 +3,27 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.clearWarningsCache = clearWarningsCache;
|
|
7
|
+
exports.propValidatorsDataGrid = void 0;
|
|
8
|
+
exports.validateProps = validateProps;
|
|
7
9
|
var _utils = require("../../utils/utils");
|
|
8
10
|
var _useGridApiEventHandler = require("../../hooks/utils/useGridApiEventHandler");
|
|
9
11
|
const propValidatorsDataGrid = exports.propValidatorsDataGrid = [props => props.autoPageSize && props.autoHeight && ['MUI X: `<DataGrid autoPageSize={true} autoHeight={true} />` are not valid props.', 'You cannot use both the `autoPageSize` and `autoHeight` props at the same time because `autoHeight` scales the height of the Data Grid according to the `pageSize`.', '', 'Please remove one of these two props.'].join('\n') || undefined, props => props.paginationMode === 'client' && props.paginationMeta != null && ['MUI X: Usage of the `paginationMeta` prop with client-side pagination (`paginationMode="client"`) has no effect.', '`paginationMeta` is only meant to be used with `paginationMode="server"`.'].join('\n') || undefined, props => props.signature === _useGridApiEventHandler.GridSignature.DataGrid && props.paginationMode === 'client' && (0, _utils.isNumber)(props.rowCount) && ['MUI X: Usage of the `rowCount` prop with client side pagination (`paginationMode="client"`) has no effect.', '`rowCount` is only meant to be used with `paginationMode="server"`.'].join('\n') || undefined, props => props.paginationMode === 'server' && props.rowCount == null && ["MUI X: The `rowCount` prop must be passed using `paginationMode='server'`", 'For more detail, see http://mui.com/components/data-grid/pagination/#index-based-pagination'].join('\n') || undefined];
|
|
10
12
|
const warnedOnceCache = new Set();
|
|
11
|
-
|
|
13
|
+
function warnOnce(message) {
|
|
12
14
|
if (!warnedOnceCache.has(message)) {
|
|
13
15
|
console.error(message);
|
|
14
16
|
warnedOnceCache.add(message);
|
|
15
17
|
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
if (process.env.NODE_ENV === 'production') {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
18
|
+
}
|
|
19
|
+
function validateProps(props, validators) {
|
|
21
20
|
validators.forEach(validator => {
|
|
22
21
|
const warning = validator(props);
|
|
23
22
|
if (warning) {
|
|
24
23
|
warnOnce(warning);
|
|
25
24
|
}
|
|
26
25
|
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const clearWarningsCache = () => {
|
|
26
|
+
}
|
|
27
|
+
function clearWarningsCache() {
|
|
30
28
|
warnedOnceCache.clear();
|
|
31
|
-
}
|
|
32
|
-
exports.clearWarningsCache = clearWarningsCache;
|
|
29
|
+
}
|
package/node/locales/esES.js
CHANGED
|
@@ -146,10 +146,10 @@ const esESGrid = {
|
|
|
146
146
|
rowReorderingHeaderName: 'Reordenar filas',
|
|
147
147
|
// Aggregation
|
|
148
148
|
aggregationMenuItemHeader: 'Agregación',
|
|
149
|
-
aggregationFunctionLabelSum: '
|
|
150
|
-
aggregationFunctionLabelAvg: '
|
|
151
|
-
aggregationFunctionLabelMin: '
|
|
152
|
-
aggregationFunctionLabelMax: '
|
|
149
|
+
aggregationFunctionLabelSum: 'suma',
|
|
150
|
+
aggregationFunctionLabelAvg: 'promedio',
|
|
151
|
+
aggregationFunctionLabelMin: 'mínimo',
|
|
152
|
+
aggregationFunctionLabelMax: 'máximo',
|
|
153
153
|
aggregationFunctionLabelSize: 'tamaño'
|
|
154
154
|
};
|
|
155
155
|
const esES = exports.esES = (0, _getGridLocalization.getGridLocalization)(esESGrid, _locale.esES);
|
package/node/locales/nbNO.js
CHANGED
|
@@ -36,11 +36,10 @@ const nbNOGrid = {
|
|
|
36
36
|
toolbarExportPrint: 'Skriv ut',
|
|
37
37
|
toolbarExportExcel: 'Last ned som Excel',
|
|
38
38
|
// Columns management text
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
columnsManagementSearchTitle: 'Søk',
|
|
40
|
+
columnsManagementNoColumns: 'Ingen kolonner',
|
|
41
|
+
columnsManagementShowHideAllText: 'Vis/skjul alle',
|
|
42
|
+
columnsManagementReset: 'Nullstill',
|
|
44
43
|
// Filter panel text
|
|
45
44
|
filterPanelAddFilter: 'Legg til filter',
|
|
46
45
|
filterPanelRemoveAll: 'Fjern alle',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.5.1",
|
|
4
4
|
"description": "The Community plan edition of the Data Grid components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"directory": "packages/x-data-grid"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@babel/runtime": "^7.24.
|
|
40
|
+
"@babel/runtime": "^7.24.5",
|
|
41
41
|
"@mui/system": "^5.15.14",
|
|
42
42
|
"@mui/utils": "^5.15.14",
|
|
43
43
|
"clsx": "^2.1.1",
|