@mui/x-data-grid 9.4.0 → 9.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +251 -0
- package/DataGrid/DataGrid.js +74 -13
- package/DataGrid/DataGrid.mjs +74 -13
- package/colDef/gridColumnTypesRegistry.d.mts +8 -0
- package/colDef/gridColumnTypesRegistry.d.ts +8 -0
- package/colDef/gridColumnTypesRegistry.js +44 -0
- package/colDef/gridColumnTypesRegistry.mjs +34 -0
- package/colDef/gridDefaultColumnTypes.d.mts +1 -1
- package/colDef/gridDefaultColumnTypes.d.ts +1 -1
- package/colDef/gridDefaultColumnTypes.js +11 -23
- package/colDef/gridDefaultColumnTypes.mjs +4 -22
- package/components/GridColumnHeaders.js +1 -1
- package/components/GridColumnHeaders.mjs +1 -1
- package/components/GridColumnUnsortedIcon.js +1 -1
- package/components/GridColumnUnsortedIcon.mjs +1 -1
- package/components/GridFooter.js +1 -1
- package/components/GridFooter.mjs +1 -1
- package/components/GridLoadingOverlay.js +1 -1
- package/components/GridLoadingOverlay.mjs +1 -1
- package/components/GridNoColumnsOverlay.js +1 -1
- package/components/GridNoColumnsOverlay.mjs +1 -1
- package/components/GridNoRowsOverlay.js +1 -1
- package/components/GridNoRowsOverlay.mjs +1 -1
- package/components/GridRow.js +1 -1
- package/components/GridRow.mjs +1 -1
- package/components/GridRowCount.js +1 -1
- package/components/GridRowCount.mjs +1 -1
- package/components/GridRowDragAndDropOverlay.d.mts +1 -1
- package/components/GridRowDragAndDropOverlay.d.ts +1 -1
- package/components/GridSelectedRowCount.js +1 -1
- package/components/GridSelectedRowCount.mjs +1 -1
- package/components/GridShadowScrollArea.js +1 -1
- package/components/GridShadowScrollArea.mjs +1 -1
- package/components/cell/GridActionsCell.js +84 -4
- package/components/cell/GridActionsCell.mjs +84 -4
- package/components/cell/GridActionsCellItem.js +75 -1
- package/components/cell/GridActionsCellItem.mjs +74 -0
- package/components/cell/GridBooleanCell.js +1 -1
- package/components/cell/GridBooleanCell.mjs +1 -1
- package/components/cell/GridCell.js +1 -1
- package/components/cell/GridCell.mjs +1 -1
- package/components/cell/GridEditBooleanCell.js +1 -1
- package/components/cell/GridEditBooleanCell.mjs +1 -1
- package/components/cell/GridEditDateCell.js +1 -1
- package/components/cell/GridEditDateCell.mjs +1 -1
- package/components/cell/GridEditInputCell.js +68 -0
- package/components/cell/GridEditInputCell.mjs +68 -0
- package/components/cell/GridEditLongTextCell.d.mts +3 -0
- package/components/cell/GridEditLongTextCell.d.ts +3 -0
- package/components/cell/GridEditLongTextCell.js +141 -0
- package/components/cell/GridEditLongTextCell.mjs +141 -0
- package/components/cell/GridEditSingleSelectCell.js +1 -1
- package/components/cell/GridEditSingleSelectCell.mjs +1 -1
- package/components/cell/GridLongTextCell.d.mts +3 -0
- package/components/cell/GridLongTextCell.d.ts +3 -0
- package/components/cell/GridLongTextCell.js +68 -0
- package/components/cell/GridLongTextCell.mjs +68 -0
- package/components/cell/GridSkeletonCell.js +3 -2
- package/components/cell/GridSkeletonCell.mjs +3 -2
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.js +2 -2
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.mjs +2 -2
- package/components/columnHeaders/GridColumnHeaderItem.js +1 -1
- package/components/columnHeaders/GridColumnHeaderItem.mjs +1 -1
- package/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
- package/components/columnHeaders/GridColumnHeaderSeparator.mjs +1 -1
- package/components/columnHeaders/GridColumnHeaderSortIcon.js +1 -1
- package/components/columnHeaders/GridColumnHeaderSortIcon.mjs +1 -1
- package/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
- package/components/columnHeaders/GridColumnHeaderTitle.mjs +1 -1
- package/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
- package/components/columnSelection/GridCellCheckboxRenderer.mjs +1 -1
- package/components/columnSelection/GridHeaderCheckbox.js +1 -1
- package/components/columnSelection/GridHeaderCheckbox.mjs +1 -1
- package/components/columnSelection/GridRowCheckbox.js +1 -1
- package/components/columnSelection/GridRowCheckbox.mjs +1 -1
- package/components/columnsManagement/GridColumnsManagement.js +1 -1
- package/components/columnsManagement/GridColumnsManagement.mjs +1 -1
- package/components/columnsPanel/ColumnsPanelTrigger.js +1 -1
- package/components/columnsPanel/ColumnsPanelTrigger.mjs +1 -1
- package/components/containers/GridFooterContainer.js +1 -1
- package/components/containers/GridFooterContainer.mjs +1 -1
- package/components/containers/GridOverlay.js +1 -1
- package/components/containers/GridOverlay.mjs +1 -1
- package/components/containers/GridRoot.js +1 -1
- package/components/containers/GridRoot.mjs +1 -1
- package/components/containers/GridRootStyles.js +32 -2
- package/components/containers/GridRootStyles.mjs +32 -2
- package/components/containers/GridToolbarContainer.js +1 -1
- package/components/containers/GridToolbarContainer.mjs +1 -1
- package/components/export/ExportCsv.js +1 -1
- package/components/export/ExportCsv.mjs +1 -1
- package/components/export/ExportPrint.js +1 -1
- package/components/export/ExportPrint.mjs +1 -1
- package/components/filterPanel/FilterPanelTrigger.js +1 -1
- package/components/filterPanel/FilterPanelTrigger.mjs +1 -1
- package/components/menu/GridMenu.js +1 -1
- package/components/menu/GridMenu.mjs +1 -1
- package/components/menu/columnMenu/GridColumnHeaderMenu.js +1 -1
- package/components/menu/columnMenu/GridColumnHeaderMenu.mjs +1 -1
- package/components/menu/columnMenu/GridColumnMenu.js +2 -2
- package/components/menu/columnMenu/GridColumnMenu.mjs +2 -2
- package/components/menu/columnMenu/GridColumnMenuContainer.js +1 -1
- package/components/menu/columnMenu/GridColumnMenuContainer.mjs +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.mjs +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.mjs +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.mjs +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.mjs +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.mjs +1 -1
- package/components/panel/GridPanel.js +1 -1
- package/components/panel/GridPanel.mjs +1 -1
- package/components/panel/GridPanelContent.js +1 -1
- package/components/panel/GridPanelContent.mjs +1 -1
- package/components/panel/GridPanelFooter.js +1 -1
- package/components/panel/GridPanelFooter.mjs +1 -1
- package/components/panel/GridPanelHeader.js +1 -1
- package/components/panel/GridPanelHeader.mjs +1 -1
- package/components/panel/filterPanel/GridFilterForm.js +1 -1
- package/components/panel/filterPanel/GridFilterForm.mjs +1 -1
- package/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
- package/components/panel/filterPanel/GridFilterInputBoolean.mjs +1 -1
- package/components/panel/filterPanel/GridFilterInputDate.js +1 -1
- package/components/panel/filterPanel/GridFilterInputDate.mjs +1 -1
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.mjs +1 -1
- package/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
- package/components/panel/filterPanel/GridFilterInputMultipleValue.mjs +1 -1
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +3 -5
- package/components/panel/filterPanel/GridFilterInputSingleSelect.mjs +3 -5
- package/components/panel/filterPanel/GridFilterInputValue.js +1 -1
- package/components/panel/filterPanel/GridFilterInputValue.mjs +1 -1
- package/components/panel/filterPanel/GridFilterPanel.js +1 -1
- package/components/panel/filterPanel/GridFilterPanel.mjs +1 -1
- package/components/panel/filterPanel/filterPanelUtils.d.mts +3 -2
- package/components/panel/filterPanel/filterPanelUtils.d.ts +3 -2
- package/components/panel/filterPanel/filterPanelUtils.js +4 -0
- package/components/panel/filterPanel/filterPanelUtils.mjs +3 -0
- package/components/quickFilter/QuickFilter.js +1 -1
- package/components/quickFilter/QuickFilter.mjs +1 -1
- package/components/quickFilter/QuickFilterClear.js +1 -1
- package/components/quickFilter/QuickFilterClear.mjs +1 -1
- package/components/quickFilter/QuickFilterControl.js +1 -1
- package/components/quickFilter/QuickFilterControl.mjs +1 -1
- package/components/quickFilter/QuickFilterTrigger.js +1 -1
- package/components/quickFilter/QuickFilterTrigger.mjs +1 -1
- package/components/toolbar/GridToolbar.js +1 -1
- package/components/toolbar/GridToolbar.mjs +1 -1
- package/components/toolbar/GridToolbarColumnsButton.js +1 -1
- package/components/toolbar/GridToolbarColumnsButton.mjs +1 -1
- package/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/components/toolbar/GridToolbarDensitySelector.mjs +1 -1
- package/components/toolbar/GridToolbarExport.js +3 -3
- package/components/toolbar/GridToolbarExport.mjs +3 -3
- package/components/toolbar/GridToolbarExportContainer.js +1 -1
- package/components/toolbar/GridToolbarExportContainer.mjs +1 -1
- package/components/toolbar/GridToolbarFilterButton.js +1 -1
- package/components/toolbar/GridToolbarFilterButton.mjs +1 -1
- package/components/toolbar/GridToolbarQuickFilter.js +1 -1
- package/components/toolbar/GridToolbarQuickFilter.mjs +1 -1
- package/components/toolbarV8/GridToolbar.js +8 -3
- package/components/toolbarV8/GridToolbar.mjs +8 -3
- package/components/toolbarV8/Toolbar.js +1 -1
- package/components/toolbarV8/Toolbar.mjs +1 -1
- package/components/toolbarV8/ToolbarButton.js +1 -1
- package/components/toolbarV8/ToolbarButton.mjs +1 -1
- package/components/virtualization/GridVirtualScrollbar.js +8 -1
- package/components/virtualization/GridVirtualScrollbar.mjs +8 -1
- package/components/virtualization/GridVirtualScroller.js +12 -0
- package/components/virtualization/GridVirtualScroller.mjs +12 -0
- package/constants/cssVariables.d.mts +3 -0
- package/constants/cssVariables.d.ts +3 -0
- package/constants/cssVariables.js +2 -1
- package/constants/cssVariables.mjs +2 -1
- package/constants/gridClasses.d.mts +48 -0
- package/constants/gridClasses.d.ts +48 -0
- package/constants/gridClasses.js +1 -1
- package/constants/gridClasses.mjs +1 -1
- package/hooks/core/useGridProps.js +5 -3
- package/hooks/core/useGridProps.mjs +5 -3
- package/hooks/features/columns/gridColumnsUtils.js +18 -10
- package/hooks/features/columns/gridColumnsUtils.mjs +19 -11
- package/hooks/features/columns/useGridColumns.js +11 -0
- package/hooks/features/columns/useGridColumns.mjs +11 -0
- package/hooks/features/dataSource/useGridDataSourceBase.js +2 -2
- package/hooks/features/dataSource/useGridDataSourceBase.mjs +2 -2
- package/hooks/features/editing/useGridCellEditing.js +1 -1
- package/hooks/features/editing/useGridCellEditing.mjs +1 -1
- package/hooks/features/editing/useGridRowEditing.js +1 -1
- package/hooks/features/editing/useGridRowEditing.mjs +1 -1
- package/hooks/features/export/serializers/csvSerializer.js +3 -1
- package/hooks/features/export/serializers/csvSerializer.mjs +3 -1
- package/hooks/features/filter/gridFilterUtils.js +5 -3
- package/hooks/features/filter/gridFilterUtils.mjs +5 -3
- package/hooks/features/listView/useGridListView.js +1 -1
- package/hooks/features/listView/useGridListView.mjs +1 -1
- package/hooks/features/sorting/gridSortingUtils.js +3 -1
- package/hooks/features/sorting/gridSortingUtils.mjs +3 -1
- package/hooks/utils/useGridSelector.js +27 -24
- package/hooks/utils/useGridSelector.mjs +26 -24
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/index.d.mts +9 -4
- package/internals/index.d.ts +9 -4
- package/internals/index.js +62 -2
- package/internals/index.mjs +8 -4
- package/internals/utils/propValidation.js +3 -0
- package/internals/utils/propValidation.mjs +3 -0
- package/material/augmentation.d.mts +4 -0
- package/material/augmentation.d.ts +4 -0
- package/material/index.js +42 -26
- package/material/index.mjs +42 -26
- package/material/variables.js +2 -1
- package/material/variables.mjs +2 -1
- package/models/colDef/gridColDef.d.mts +35 -3
- package/models/colDef/gridColDef.d.ts +35 -3
- package/models/colDef/gridColType.d.mts +1 -0
- package/models/colDef/gridColType.d.ts +1 -0
- package/models/colDef/gridColumnTypesRecord.d.mts +1 -1
- package/models/colDef/gridColumnTypesRecord.d.ts +1 -1
- package/models/colDef/index.d.mts +1 -1
- package/models/colDef/index.d.ts +1 -1
- package/models/gridBaseSlots.d.mts +46 -0
- package/models/gridBaseSlots.d.ts +46 -0
- package/models/gridSlotsComponent.d.mts +5 -0
- package/models/gridSlotsComponent.d.ts +5 -0
- package/models/gridSlotsComponentsProps.d.mts +3 -1
- package/models/gridSlotsComponentsProps.d.ts +3 -1
- package/models/gridStateCommunity.d.mts +1 -1
- package/models/gridStateCommunity.d.ts +1 -1
- package/package.json +7 -4
|
@@ -5,6 +5,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
5
5
|
const _excluded = ["label", "icon", "showInMenu", "onClick"],
|
|
6
6
|
_excluded2 = ["label", "icon", "showInMenu", "onClick", "closeMenuOnClick", "closeMenu"];
|
|
7
7
|
import * as React from 'react';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
8
9
|
import { forwardRef } from '@mui/x-internals/forwardRef';
|
|
9
10
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.mjs";
|
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -56,4 +57,77 @@ const GridActionsCellItem = forwardRef((props, ref) => {
|
|
|
56
57
|
}));
|
|
57
58
|
});
|
|
58
59
|
if (process.env.NODE_ENV !== "production") GridActionsCellItem.displayName = "GridActionsCellItem";
|
|
60
|
+
process.env.NODE_ENV !== "production" ? GridActionsCellItem.propTypes /* remove-proptypes */ = {
|
|
61
|
+
// ----------------------------- Warning --------------------------------
|
|
62
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
63
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
64
|
+
// ----------------------------------------------------------------------
|
|
65
|
+
className: PropTypes.string,
|
|
66
|
+
/**
|
|
67
|
+
* from https://mui.com/material-ui/api/button-base/#ButtonBase-prop-component
|
|
68
|
+
*/
|
|
69
|
+
component: PropTypes.elementType,
|
|
70
|
+
disabled: PropTypes.bool,
|
|
71
|
+
icon: PropTypes.oneOfType([PropTypes.element, PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
72
|
+
'__@iterator@659': PropTypes.func.isRequired
|
|
73
|
+
}), PropTypes.shape({
|
|
74
|
+
'__@iterator@659': PropTypes.func.isRequired,
|
|
75
|
+
key: PropTypes.string,
|
|
76
|
+
props: PropTypes.any.isRequired,
|
|
77
|
+
type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired
|
|
78
|
+
}), PropTypes.shape({
|
|
79
|
+
'__@toStringTag@1607': PropTypes.oneOf(['BigInt']).isRequired,
|
|
80
|
+
key: PropTypes.string,
|
|
81
|
+
props: PropTypes.any.isRequired,
|
|
82
|
+
toLocaleString: PropTypes.func.isRequired,
|
|
83
|
+
toString: PropTypes.func.isRequired,
|
|
84
|
+
type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired,
|
|
85
|
+
valueOf: PropTypes.func.isRequired
|
|
86
|
+
}), PropTypes.shape({
|
|
87
|
+
'__@toStringTag@1607': PropTypes.oneOf(['BigInt']).isRequired,
|
|
88
|
+
toLocaleString: PropTypes.func.isRequired,
|
|
89
|
+
toString: PropTypes.func.isRequired,
|
|
90
|
+
valueOf: PropTypes.func.isRequired
|
|
91
|
+
}), PropTypes.shape({
|
|
92
|
+
'__@toStringTag@1607': PropTypes.string.isRequired,
|
|
93
|
+
catch: PropTypes.func.isRequired,
|
|
94
|
+
finally: PropTypes.func.isRequired,
|
|
95
|
+
key: PropTypes.string,
|
|
96
|
+
props: PropTypes.any.isRequired,
|
|
97
|
+
then: PropTypes.func.isRequired,
|
|
98
|
+
type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired
|
|
99
|
+
}), PropTypes.shape({
|
|
100
|
+
'__@toStringTag@1607': PropTypes.string.isRequired,
|
|
101
|
+
catch: PropTypes.func.isRequired,
|
|
102
|
+
finally: PropTypes.func.isRequired,
|
|
103
|
+
then: PropTypes.func.isRequired
|
|
104
|
+
}), PropTypes.shape({
|
|
105
|
+
children: PropTypes.node,
|
|
106
|
+
key: PropTypes.string,
|
|
107
|
+
props: PropTypes.any.isRequired,
|
|
108
|
+
type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired
|
|
109
|
+
}), PropTypes.shape({
|
|
110
|
+
key: PropTypes.string,
|
|
111
|
+
props: PropTypes.any.isRequired,
|
|
112
|
+
toExponential: PropTypes.func.isRequired,
|
|
113
|
+
toFixed: PropTypes.func.isRequired,
|
|
114
|
+
toLocaleString: PropTypes.func.isRequired,
|
|
115
|
+
toPrecision: PropTypes.func.isRequired,
|
|
116
|
+
toString: PropTypes.func.isRequired,
|
|
117
|
+
type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired,
|
|
118
|
+
valueOf: PropTypes.func.isRequired
|
|
119
|
+
}), PropTypes.shape({
|
|
120
|
+
key: PropTypes.string,
|
|
121
|
+
props: PropTypes.any.isRequired,
|
|
122
|
+
type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired
|
|
123
|
+
}), PropTypes.shape({
|
|
124
|
+
key: PropTypes.string,
|
|
125
|
+
props: PropTypes.any.isRequired,
|
|
126
|
+
type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired,
|
|
127
|
+
valueOf: PropTypes.func.isRequired
|
|
128
|
+
}), PropTypes.string, PropTypes.bool]),
|
|
129
|
+
label: PropTypes.node,
|
|
130
|
+
showInMenu: PropTypes.bool,
|
|
131
|
+
style: PropTypes.object
|
|
132
|
+
} : void 0;
|
|
59
133
|
export { GridActionsCellItem };
|
|
@@ -57,7 +57,7 @@ function GridBooleanCellRaw(props) {
|
|
|
57
57
|
"data-value": Boolean(value)
|
|
58
58
|
}, other));
|
|
59
59
|
}
|
|
60
|
-
process.env.NODE_ENV !== "production" ? GridBooleanCellRaw.propTypes = {
|
|
60
|
+
process.env.NODE_ENV !== "production" ? GridBooleanCellRaw.propTypes /* remove-proptypes */ = {
|
|
61
61
|
// ----------------------------- Warning --------------------------------
|
|
62
62
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
63
63
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -49,7 +49,7 @@ function GridBooleanCellRaw(props) {
|
|
|
49
49
|
"data-value": Boolean(value)
|
|
50
50
|
}, other));
|
|
51
51
|
}
|
|
52
|
-
process.env.NODE_ENV !== "production" ? GridBooleanCellRaw.propTypes = {
|
|
52
|
+
process.env.NODE_ENV !== "production" ? GridBooleanCellRaw.propTypes /* remove-proptypes */ = {
|
|
53
53
|
// ----------------------------- Warning --------------------------------
|
|
54
54
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
55
55
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -322,7 +322,7 @@ const GridCell = (0, _forwardRef.forwardRef)(function GridCell(props, ref) {
|
|
|
322
322
|
}));
|
|
323
323
|
});
|
|
324
324
|
if (process.env.NODE_ENV !== "production") GridCell.displayName = "GridCell";
|
|
325
|
-
process.env.NODE_ENV !== "production" ? GridCell.propTypes = {
|
|
325
|
+
process.env.NODE_ENV !== "production" ? GridCell.propTypes /* remove-proptypes */ = {
|
|
326
326
|
// ----------------------------- Warning --------------------------------
|
|
327
327
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
328
328
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -315,7 +315,7 @@ const GridCell = forwardRef(function GridCell(props, ref) {
|
|
|
315
315
|
}));
|
|
316
316
|
});
|
|
317
317
|
if (process.env.NODE_ENV !== "production") GridCell.displayName = "GridCell";
|
|
318
|
-
process.env.NODE_ENV !== "production" ? GridCell.propTypes = {
|
|
318
|
+
process.env.NODE_ENV !== "production" ? GridCell.propTypes /* remove-proptypes */ = {
|
|
319
319
|
// ----------------------------- Warning --------------------------------
|
|
320
320
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
321
321
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -82,7 +82,7 @@ function GridEditBooleanCell(props) {
|
|
|
82
82
|
}, rootProps.slotProps?.baseCheckbox))
|
|
83
83
|
}));
|
|
84
84
|
}
|
|
85
|
-
process.env.NODE_ENV !== "production" ? GridEditBooleanCell.propTypes = {
|
|
85
|
+
process.env.NODE_ENV !== "production" ? GridEditBooleanCell.propTypes /* remove-proptypes */ = {
|
|
86
86
|
// ----------------------------- Warning --------------------------------
|
|
87
87
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
88
88
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -74,7 +74,7 @@ function GridEditBooleanCell(props) {
|
|
|
74
74
|
}, rootProps.slotProps?.baseCheckbox))
|
|
75
75
|
}));
|
|
76
76
|
}
|
|
77
|
-
process.env.NODE_ENV !== "production" ? GridEditBooleanCell.propTypes = {
|
|
77
|
+
process.env.NODE_ENV !== "production" ? GridEditBooleanCell.propTypes /* remove-proptypes */ = {
|
|
78
78
|
// ----------------------------- Warning --------------------------------
|
|
79
79
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
80
80
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -136,7 +136,7 @@ function GridEditDateCell(props) {
|
|
|
136
136
|
}
|
|
137
137
|
}));
|
|
138
138
|
}
|
|
139
|
-
process.env.NODE_ENV !== "production" ? GridEditDateCell.propTypes = {
|
|
139
|
+
process.env.NODE_ENV !== "production" ? GridEditDateCell.propTypes /* remove-proptypes */ = {
|
|
140
140
|
// ----------------------------- Warning --------------------------------
|
|
141
141
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
142
142
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -128,7 +128,7 @@ function GridEditDateCell(props) {
|
|
|
128
128
|
}
|
|
129
129
|
}));
|
|
130
130
|
}
|
|
131
|
-
process.env.NODE_ENV !== "production" ? GridEditDateCell.propTypes = {
|
|
131
|
+
process.env.NODE_ENV !== "production" ? GridEditDateCell.propTypes /* remove-proptypes */ = {
|
|
132
132
|
// ----------------------------- Warning --------------------------------
|
|
133
133
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
134
134
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -10,6 +10,7 @@ exports.renderEditInputCell = exports.GridEditInputCell = void 0;
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
14
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
14
15
|
var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
|
|
15
16
|
var _styles = require("@mui/material/styles");
|
|
@@ -107,6 +108,73 @@ const GridEditInputCell = exports.GridEditInputCell = (0, _forwardRef.forwardRef
|
|
|
107
108
|
}));
|
|
108
109
|
});
|
|
109
110
|
if (process.env.NODE_ENV !== "production") GridEditInputCell.displayName = "GridEditInputCell";
|
|
111
|
+
process.env.NODE_ENV !== "production" ? GridEditInputCell.propTypes /* remove-proptypes */ = {
|
|
112
|
+
// ----------------------------- Warning --------------------------------
|
|
113
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
114
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
115
|
+
// ----------------------------------------------------------------------
|
|
116
|
+
/**
|
|
117
|
+
* GridApi that let you manipulate the grid.
|
|
118
|
+
*/
|
|
119
|
+
api: _propTypes.default.object.isRequired,
|
|
120
|
+
/**
|
|
121
|
+
* The mode of the cell.
|
|
122
|
+
*/
|
|
123
|
+
cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
|
|
124
|
+
changeReason: _propTypes.default.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),
|
|
125
|
+
/**
|
|
126
|
+
* The column of the row that the current cell belongs to.
|
|
127
|
+
*/
|
|
128
|
+
colDef: _propTypes.default.object.isRequired,
|
|
129
|
+
debounceMs: _propTypes.default.number,
|
|
130
|
+
/**
|
|
131
|
+
* The column field of the cell that triggered the event.
|
|
132
|
+
*/
|
|
133
|
+
field: _propTypes.default.string.isRequired,
|
|
134
|
+
/**
|
|
135
|
+
* The cell value formatted with the column valueFormatter.
|
|
136
|
+
*/
|
|
137
|
+
formattedValue: _propTypes.default.any,
|
|
138
|
+
/**
|
|
139
|
+
* If true, the cell is the active element.
|
|
140
|
+
*/
|
|
141
|
+
hasFocus: _propTypes.default.bool.isRequired,
|
|
142
|
+
/**
|
|
143
|
+
* The grid row id.
|
|
144
|
+
*/
|
|
145
|
+
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
146
|
+
/**
|
|
147
|
+
* If true, the cell is editable.
|
|
148
|
+
*/
|
|
149
|
+
isEditable: _propTypes.default.bool,
|
|
150
|
+
isProcessingProps: _propTypes.default.bool,
|
|
151
|
+
isValidating: _propTypes.default.bool,
|
|
152
|
+
/**
|
|
153
|
+
* Callback called when the value is changed by the user.
|
|
154
|
+
* @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
|
|
155
|
+
* @param {Date | null} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
|
|
156
|
+
* @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
|
|
157
|
+
*/
|
|
158
|
+
onValueChange: _propTypes.default.func,
|
|
159
|
+
/**
|
|
160
|
+
* The row model of the row that the current cell belongs to.
|
|
161
|
+
*/
|
|
162
|
+
row: _propTypes.default.any.isRequired,
|
|
163
|
+
/**
|
|
164
|
+
* The node of the row that the current cell belongs to.
|
|
165
|
+
*/
|
|
166
|
+
rowNode: _propTypes.default.object.isRequired,
|
|
167
|
+
slotProps: _propTypes.default.object,
|
|
168
|
+
/**
|
|
169
|
+
* the tabIndex value.
|
|
170
|
+
*/
|
|
171
|
+
tabIndex: _propTypes.default.oneOf([-1, 0]).isRequired,
|
|
172
|
+
/**
|
|
173
|
+
* The cell value.
|
|
174
|
+
* If the column has `valueGetter`, use `params.row` to directly access the fields.
|
|
175
|
+
*/
|
|
176
|
+
value: _propTypes.default.any
|
|
177
|
+
} : void 0;
|
|
110
178
|
const renderEditInputCell = params => /*#__PURE__*/(0, _jsxRuntime.jsx)(GridEditInputCell, (0, _extends2.default)({}, params));
|
|
111
179
|
exports.renderEditInputCell = renderEditInputCell;
|
|
112
180
|
if (process.env.NODE_ENV !== "production") renderEditInputCell.displayName = "renderEditInputCell";
|
|
@@ -4,6 +4,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "hasFocus", "isValidating", "debounceMs", "isProcessingProps", "onValueChange", "slotProps"];
|
|
6
6
|
import * as React from 'react';
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
7
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
8
9
|
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
9
10
|
import { styled } from '@mui/material/styles';
|
|
@@ -100,6 +101,73 @@ const GridEditInputCell = forwardRef((props, ref) => {
|
|
|
100
101
|
}));
|
|
101
102
|
});
|
|
102
103
|
if (process.env.NODE_ENV !== "production") GridEditInputCell.displayName = "GridEditInputCell";
|
|
104
|
+
process.env.NODE_ENV !== "production" ? GridEditInputCell.propTypes /* remove-proptypes */ = {
|
|
105
|
+
// ----------------------------- Warning --------------------------------
|
|
106
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
107
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
108
|
+
// ----------------------------------------------------------------------
|
|
109
|
+
/**
|
|
110
|
+
* GridApi that let you manipulate the grid.
|
|
111
|
+
*/
|
|
112
|
+
api: PropTypes.object.isRequired,
|
|
113
|
+
/**
|
|
114
|
+
* The mode of the cell.
|
|
115
|
+
*/
|
|
116
|
+
cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,
|
|
117
|
+
changeReason: PropTypes.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),
|
|
118
|
+
/**
|
|
119
|
+
* The column of the row that the current cell belongs to.
|
|
120
|
+
*/
|
|
121
|
+
colDef: PropTypes.object.isRequired,
|
|
122
|
+
debounceMs: PropTypes.number,
|
|
123
|
+
/**
|
|
124
|
+
* The column field of the cell that triggered the event.
|
|
125
|
+
*/
|
|
126
|
+
field: PropTypes.string.isRequired,
|
|
127
|
+
/**
|
|
128
|
+
* The cell value formatted with the column valueFormatter.
|
|
129
|
+
*/
|
|
130
|
+
formattedValue: PropTypes.any,
|
|
131
|
+
/**
|
|
132
|
+
* If true, the cell is the active element.
|
|
133
|
+
*/
|
|
134
|
+
hasFocus: PropTypes.bool.isRequired,
|
|
135
|
+
/**
|
|
136
|
+
* The grid row id.
|
|
137
|
+
*/
|
|
138
|
+
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
139
|
+
/**
|
|
140
|
+
* If true, the cell is editable.
|
|
141
|
+
*/
|
|
142
|
+
isEditable: PropTypes.bool,
|
|
143
|
+
isProcessingProps: PropTypes.bool,
|
|
144
|
+
isValidating: PropTypes.bool,
|
|
145
|
+
/**
|
|
146
|
+
* Callback called when the value is changed by the user.
|
|
147
|
+
* @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
|
|
148
|
+
* @param {Date | null} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
|
|
149
|
+
* @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
|
|
150
|
+
*/
|
|
151
|
+
onValueChange: PropTypes.func,
|
|
152
|
+
/**
|
|
153
|
+
* The row model of the row that the current cell belongs to.
|
|
154
|
+
*/
|
|
155
|
+
row: PropTypes.any.isRequired,
|
|
156
|
+
/**
|
|
157
|
+
* The node of the row that the current cell belongs to.
|
|
158
|
+
*/
|
|
159
|
+
rowNode: PropTypes.object.isRequired,
|
|
160
|
+
slotProps: PropTypes.object,
|
|
161
|
+
/**
|
|
162
|
+
* the tabIndex value.
|
|
163
|
+
*/
|
|
164
|
+
tabIndex: PropTypes.oneOf([-1, 0]).isRequired,
|
|
165
|
+
/**
|
|
166
|
+
* The cell value.
|
|
167
|
+
* If the column has `valueGetter`, use `params.row` to directly access the fields.
|
|
168
|
+
*/
|
|
169
|
+
value: PropTypes.any
|
|
170
|
+
} : void 0;
|
|
103
171
|
export { GridEditInputCell };
|
|
104
172
|
export const renderEditInputCell = params => /*#__PURE__*/_jsx(GridEditInputCell, _extends({}, params));
|
|
105
173
|
if (process.env.NODE_ENV !== "production") renderEditInputCell.displayName = "renderEditInputCell";
|
|
@@ -37,5 +37,8 @@ export interface GridEditLongTextCellProps extends GridRenderEditCellParams<any,
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
declare function GridEditLongTextCell(props: GridEditLongTextCellProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
declare namespace GridEditLongTextCell {
|
|
41
|
+
var propTypes: any;
|
|
42
|
+
}
|
|
40
43
|
export { GridEditLongTextCell };
|
|
41
44
|
export declare const renderEditLongTextCell: (params: GridEditLongTextCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -37,5 +37,8 @@ export interface GridEditLongTextCellProps extends GridRenderEditCellParams<any,
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
declare function GridEditLongTextCell(props: GridEditLongTextCellProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
declare namespace GridEditLongTextCell {
|
|
41
|
+
var propTypes: any;
|
|
42
|
+
}
|
|
40
43
|
export { GridEditLongTextCell };
|
|
41
44
|
export declare const renderEditLongTextCell: (params: GridEditLongTextCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,6 +10,7 @@ exports.GridEditLongTextCell = GridEditLongTextCell;
|
|
|
10
10
|
exports.renderEditLongTextCell = void 0;
|
|
11
11
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
14
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
15
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
16
|
var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
|
|
@@ -171,6 +172,76 @@ function GridEditLongTextCell(props) {
|
|
|
171
172
|
}))]
|
|
172
173
|
}));
|
|
173
174
|
}
|
|
175
|
+
process.env.NODE_ENV !== "production" ? GridEditLongTextCell.propTypes /* remove-proptypes */ = {
|
|
176
|
+
// ----------------------------- Warning --------------------------------
|
|
177
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
178
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
179
|
+
// ----------------------------------------------------------------------
|
|
180
|
+
/**
|
|
181
|
+
* GridApi that let you manipulate the grid.
|
|
182
|
+
*/
|
|
183
|
+
api: _propTypes.default.object.isRequired,
|
|
184
|
+
/**
|
|
185
|
+
* The mode of the cell.
|
|
186
|
+
*/
|
|
187
|
+
cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
|
|
188
|
+
changeReason: _propTypes.default.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),
|
|
189
|
+
/**
|
|
190
|
+
* The column of the row that the current cell belongs to.
|
|
191
|
+
*/
|
|
192
|
+
colDef: _propTypes.default.object.isRequired,
|
|
193
|
+
debounceMs: _propTypes.default.number,
|
|
194
|
+
/**
|
|
195
|
+
* The column field of the cell that triggered the event.
|
|
196
|
+
*/
|
|
197
|
+
field: _propTypes.default.string.isRequired,
|
|
198
|
+
/**
|
|
199
|
+
* The cell value formatted with the column valueFormatter.
|
|
200
|
+
*/
|
|
201
|
+
formattedValue: _propTypes.default.string,
|
|
202
|
+
/**
|
|
203
|
+
* If true, the cell is the active element.
|
|
204
|
+
*/
|
|
205
|
+
hasFocus: _propTypes.default.bool.isRequired,
|
|
206
|
+
/**
|
|
207
|
+
* The grid row id.
|
|
208
|
+
*/
|
|
209
|
+
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
210
|
+
/**
|
|
211
|
+
* If true, the cell is editable.
|
|
212
|
+
*/
|
|
213
|
+
isEditable: _propTypes.default.bool,
|
|
214
|
+
isProcessingProps: _propTypes.default.bool,
|
|
215
|
+
isValidating: _propTypes.default.bool,
|
|
216
|
+
/**
|
|
217
|
+
* Callback called when the value is changed by the user.
|
|
218
|
+
* @param {React.ChangeEvent<HTMLTextAreaElement>} event The event source of the callback.
|
|
219
|
+
* @param {string} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
|
|
220
|
+
* @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
|
|
221
|
+
*/
|
|
222
|
+
onValueChange: _propTypes.default.func,
|
|
223
|
+
/**
|
|
224
|
+
* The row model of the row that the current cell belongs to.
|
|
225
|
+
*/
|
|
226
|
+
row: _propTypes.default.any.isRequired,
|
|
227
|
+
/**
|
|
228
|
+
* The node of the row that the current cell belongs to.
|
|
229
|
+
*/
|
|
230
|
+
rowNode: _propTypes.default.object.isRequired,
|
|
231
|
+
/**
|
|
232
|
+
* Props passed to internal components.
|
|
233
|
+
*/
|
|
234
|
+
slotProps: _propTypes.default.object,
|
|
235
|
+
/**
|
|
236
|
+
* the tabIndex value.
|
|
237
|
+
*/
|
|
238
|
+
tabIndex: _propTypes.default.oneOf([-1, 0]).isRequired,
|
|
239
|
+
/**
|
|
240
|
+
* The cell value.
|
|
241
|
+
* If the column has `valueGetter`, use `params.row` to directly access the fields.
|
|
242
|
+
*/
|
|
243
|
+
value: _propTypes.default.string
|
|
244
|
+
} : void 0;
|
|
174
245
|
function GridEditLongTextarea(props) {
|
|
175
246
|
const {
|
|
176
247
|
id,
|
|
@@ -243,6 +314,76 @@ function GridEditLongTextarea(props) {
|
|
|
243
314
|
className: (0, _clsx.default)(classes.textarea, slotProps?.textarea?.className)
|
|
244
315
|
}));
|
|
245
316
|
}
|
|
317
|
+
process.env.NODE_ENV !== "production" ? GridEditLongTextarea.propTypes /* remove-proptypes */ = {
|
|
318
|
+
// ----------------------------- Warning --------------------------------
|
|
319
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
320
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
321
|
+
// ----------------------------------------------------------------------
|
|
322
|
+
/**
|
|
323
|
+
* GridApi that let you manipulate the grid.
|
|
324
|
+
*/
|
|
325
|
+
api: _propTypes.default.object.isRequired,
|
|
326
|
+
/**
|
|
327
|
+
* The mode of the cell.
|
|
328
|
+
*/
|
|
329
|
+
cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
|
|
330
|
+
changeReason: _propTypes.default.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),
|
|
331
|
+
/**
|
|
332
|
+
* The column of the row that the current cell belongs to.
|
|
333
|
+
*/
|
|
334
|
+
colDef: _propTypes.default.object.isRequired,
|
|
335
|
+
debounceMs: _propTypes.default.number,
|
|
336
|
+
/**
|
|
337
|
+
* The column field of the cell that triggered the event.
|
|
338
|
+
*/
|
|
339
|
+
field: _propTypes.default.string.isRequired,
|
|
340
|
+
/**
|
|
341
|
+
* The cell value formatted with the column valueFormatter.
|
|
342
|
+
*/
|
|
343
|
+
formattedValue: _propTypes.default.string,
|
|
344
|
+
/**
|
|
345
|
+
* If true, the cell is the active element.
|
|
346
|
+
*/
|
|
347
|
+
hasFocus: _propTypes.default.bool.isRequired,
|
|
348
|
+
/**
|
|
349
|
+
* The grid row id.
|
|
350
|
+
*/
|
|
351
|
+
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
352
|
+
/**
|
|
353
|
+
* If true, the cell is editable.
|
|
354
|
+
*/
|
|
355
|
+
isEditable: _propTypes.default.bool,
|
|
356
|
+
isProcessingProps: _propTypes.default.bool,
|
|
357
|
+
isValidating: _propTypes.default.bool,
|
|
358
|
+
/**
|
|
359
|
+
* Callback called when the value is changed by the user.
|
|
360
|
+
* @param {React.ChangeEvent<HTMLTextAreaElement>} event The event source of the callback.
|
|
361
|
+
* @param {string} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
|
|
362
|
+
* @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
|
|
363
|
+
*/
|
|
364
|
+
onValueChange: _propTypes.default.func,
|
|
365
|
+
/**
|
|
366
|
+
* The row model of the row that the current cell belongs to.
|
|
367
|
+
*/
|
|
368
|
+
row: _propTypes.default.any.isRequired,
|
|
369
|
+
/**
|
|
370
|
+
* The node of the row that the current cell belongs to.
|
|
371
|
+
*/
|
|
372
|
+
rowNode: _propTypes.default.object.isRequired,
|
|
373
|
+
/**
|
|
374
|
+
* Props passed to internal components.
|
|
375
|
+
*/
|
|
376
|
+
slotProps: _propTypes.default.object,
|
|
377
|
+
/**
|
|
378
|
+
* the tabIndex value.
|
|
379
|
+
*/
|
|
380
|
+
tabIndex: _propTypes.default.oneOf([-1, 0]).isRequired,
|
|
381
|
+
/**
|
|
382
|
+
* The cell value.
|
|
383
|
+
* If the column has `valueGetter`, use `params.row` to directly access the fields.
|
|
384
|
+
*/
|
|
385
|
+
value: _propTypes.default.string
|
|
386
|
+
} : void 0;
|
|
246
387
|
const renderEditLongTextCell = params => /*#__PURE__*/(0, _jsxRuntime.jsx)(GridEditLongTextCell, (0, _extends2.default)({}, params));
|
|
247
388
|
exports.renderEditLongTextCell = renderEditLongTextCell;
|
|
248
389
|
if (process.env.NODE_ENV !== "production") renderEditLongTextCell.displayName = "renderEditLongTextCell";
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import * as React from 'react';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
5
6
|
import clsx from 'clsx';
|
|
6
7
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
8
|
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
@@ -163,6 +164,76 @@ function GridEditLongTextCell(props) {
|
|
|
163
164
|
}))]
|
|
164
165
|
}));
|
|
165
166
|
}
|
|
167
|
+
process.env.NODE_ENV !== "production" ? GridEditLongTextCell.propTypes /* remove-proptypes */ = {
|
|
168
|
+
// ----------------------------- Warning --------------------------------
|
|
169
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
170
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
171
|
+
// ----------------------------------------------------------------------
|
|
172
|
+
/**
|
|
173
|
+
* GridApi that let you manipulate the grid.
|
|
174
|
+
*/
|
|
175
|
+
api: PropTypes.object.isRequired,
|
|
176
|
+
/**
|
|
177
|
+
* The mode of the cell.
|
|
178
|
+
*/
|
|
179
|
+
cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,
|
|
180
|
+
changeReason: PropTypes.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),
|
|
181
|
+
/**
|
|
182
|
+
* The column of the row that the current cell belongs to.
|
|
183
|
+
*/
|
|
184
|
+
colDef: PropTypes.object.isRequired,
|
|
185
|
+
debounceMs: PropTypes.number,
|
|
186
|
+
/**
|
|
187
|
+
* The column field of the cell that triggered the event.
|
|
188
|
+
*/
|
|
189
|
+
field: PropTypes.string.isRequired,
|
|
190
|
+
/**
|
|
191
|
+
* The cell value formatted with the column valueFormatter.
|
|
192
|
+
*/
|
|
193
|
+
formattedValue: PropTypes.string,
|
|
194
|
+
/**
|
|
195
|
+
* If true, the cell is the active element.
|
|
196
|
+
*/
|
|
197
|
+
hasFocus: PropTypes.bool.isRequired,
|
|
198
|
+
/**
|
|
199
|
+
* The grid row id.
|
|
200
|
+
*/
|
|
201
|
+
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
202
|
+
/**
|
|
203
|
+
* If true, the cell is editable.
|
|
204
|
+
*/
|
|
205
|
+
isEditable: PropTypes.bool,
|
|
206
|
+
isProcessingProps: PropTypes.bool,
|
|
207
|
+
isValidating: PropTypes.bool,
|
|
208
|
+
/**
|
|
209
|
+
* Callback called when the value is changed by the user.
|
|
210
|
+
* @param {React.ChangeEvent<HTMLTextAreaElement>} event The event source of the callback.
|
|
211
|
+
* @param {string} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
|
|
212
|
+
* @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
|
|
213
|
+
*/
|
|
214
|
+
onValueChange: PropTypes.func,
|
|
215
|
+
/**
|
|
216
|
+
* The row model of the row that the current cell belongs to.
|
|
217
|
+
*/
|
|
218
|
+
row: PropTypes.any.isRequired,
|
|
219
|
+
/**
|
|
220
|
+
* The node of the row that the current cell belongs to.
|
|
221
|
+
*/
|
|
222
|
+
rowNode: PropTypes.object.isRequired,
|
|
223
|
+
/**
|
|
224
|
+
* Props passed to internal components.
|
|
225
|
+
*/
|
|
226
|
+
slotProps: PropTypes.object,
|
|
227
|
+
/**
|
|
228
|
+
* the tabIndex value.
|
|
229
|
+
*/
|
|
230
|
+
tabIndex: PropTypes.oneOf([-1, 0]).isRequired,
|
|
231
|
+
/**
|
|
232
|
+
* The cell value.
|
|
233
|
+
* If the column has `valueGetter`, use `params.row` to directly access the fields.
|
|
234
|
+
*/
|
|
235
|
+
value: PropTypes.string
|
|
236
|
+
} : void 0;
|
|
166
237
|
function GridEditLongTextarea(props) {
|
|
167
238
|
const {
|
|
168
239
|
id,
|
|
@@ -235,6 +306,76 @@ function GridEditLongTextarea(props) {
|
|
|
235
306
|
className: clsx(classes.textarea, slotProps?.textarea?.className)
|
|
236
307
|
}));
|
|
237
308
|
}
|
|
309
|
+
process.env.NODE_ENV !== "production" ? GridEditLongTextarea.propTypes /* remove-proptypes */ = {
|
|
310
|
+
// ----------------------------- Warning --------------------------------
|
|
311
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
312
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
313
|
+
// ----------------------------------------------------------------------
|
|
314
|
+
/**
|
|
315
|
+
* GridApi that let you manipulate the grid.
|
|
316
|
+
*/
|
|
317
|
+
api: PropTypes.object.isRequired,
|
|
318
|
+
/**
|
|
319
|
+
* The mode of the cell.
|
|
320
|
+
*/
|
|
321
|
+
cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,
|
|
322
|
+
changeReason: PropTypes.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),
|
|
323
|
+
/**
|
|
324
|
+
* The column of the row that the current cell belongs to.
|
|
325
|
+
*/
|
|
326
|
+
colDef: PropTypes.object.isRequired,
|
|
327
|
+
debounceMs: PropTypes.number,
|
|
328
|
+
/**
|
|
329
|
+
* The column field of the cell that triggered the event.
|
|
330
|
+
*/
|
|
331
|
+
field: PropTypes.string.isRequired,
|
|
332
|
+
/**
|
|
333
|
+
* The cell value formatted with the column valueFormatter.
|
|
334
|
+
*/
|
|
335
|
+
formattedValue: PropTypes.string,
|
|
336
|
+
/**
|
|
337
|
+
* If true, the cell is the active element.
|
|
338
|
+
*/
|
|
339
|
+
hasFocus: PropTypes.bool.isRequired,
|
|
340
|
+
/**
|
|
341
|
+
* The grid row id.
|
|
342
|
+
*/
|
|
343
|
+
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
344
|
+
/**
|
|
345
|
+
* If true, the cell is editable.
|
|
346
|
+
*/
|
|
347
|
+
isEditable: PropTypes.bool,
|
|
348
|
+
isProcessingProps: PropTypes.bool,
|
|
349
|
+
isValidating: PropTypes.bool,
|
|
350
|
+
/**
|
|
351
|
+
* Callback called when the value is changed by the user.
|
|
352
|
+
* @param {React.ChangeEvent<HTMLTextAreaElement>} event The event source of the callback.
|
|
353
|
+
* @param {string} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
|
|
354
|
+
* @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
|
|
355
|
+
*/
|
|
356
|
+
onValueChange: PropTypes.func,
|
|
357
|
+
/**
|
|
358
|
+
* The row model of the row that the current cell belongs to.
|
|
359
|
+
*/
|
|
360
|
+
row: PropTypes.any.isRequired,
|
|
361
|
+
/**
|
|
362
|
+
* The node of the row that the current cell belongs to.
|
|
363
|
+
*/
|
|
364
|
+
rowNode: PropTypes.object.isRequired,
|
|
365
|
+
/**
|
|
366
|
+
* Props passed to internal components.
|
|
367
|
+
*/
|
|
368
|
+
slotProps: PropTypes.object,
|
|
369
|
+
/**
|
|
370
|
+
* the tabIndex value.
|
|
371
|
+
*/
|
|
372
|
+
tabIndex: PropTypes.oneOf([-1, 0]).isRequired,
|
|
373
|
+
/**
|
|
374
|
+
* The cell value.
|
|
375
|
+
* If the column has `valueGetter`, use `params.row` to directly access the fields.
|
|
376
|
+
*/
|
|
377
|
+
value: PropTypes.string
|
|
378
|
+
} : void 0;
|
|
238
379
|
export { GridEditLongTextCell };
|
|
239
380
|
export const renderEditLongTextCell = params => /*#__PURE__*/_jsx(GridEditLongTextCell, _extends({}, params));
|
|
240
381
|
if (process.env.NODE_ENV !== "production") renderEditLongTextCell.displayName = "renderEditLongTextCell";
|